PageSourceSearch

https://www.bibracte.fr/main.3917c5b0b6edd181703c.js

js bibracte.fr collected 2026-10-02 06:58:56 UTC 2,126,927 bytes, 147 lines download raw bytes

vendor: 7,937 bytes, line 1
1(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},"4ZJM":function(t,e,n){t.exports=function(){"use strict";var t,e,n;function i(i,r){if(t)if(e){var s="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/api/#transpiling-v2'); }; var sharedChunk = {}; ("+t+")(sharedChunk); ("+e+")(sharedChunk); self.onerror = null;",o={};t(o),n=r(o),"undefined"!=typeof window&&(n.workerUrl=window.URL.createObjectURL(new Blob([s],{type:"text/javascript"})))}else e=r;else t=r}return i(0,function(t){var e="2.3.0",n=i;function i(t,e,n,i){this.cx=3*t,this.bx=3*(n-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(i-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=i,this.p2x=n,this.p2y=i}i.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},i.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},i.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},i.prototype.solveCurveX=function(t,e){var n,i,r,s,o;for(void 0===e&&(e=1e-6),r=t,o=0;o<8;o++){if(s=this.sampleCurveX(r)-t,Math.abs(s)<e)return r;var a=this.sampleCurveDerivativeX(r);if(Math.abs(a)<1e-6)break;r-=s/a}if((r=t)<(n=0))return n;if(r>(i=1))return i;for(;n<i;){if(s=this.sampleCurveX(r),Math.abs(s-t)<e)return r;t>s?n=r:i=r,r=.5*(i-n)+n}return r},i.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var r=s;function s(t,e){this.x=t,this.y=e}s.prototype={clone:function(){return new s(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,n=t.y-this.y;return e*e+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),n=Math.sin(t),i=n*this.x+e*this.y;return this.x=e*this.x-n*this.y,this.y=i,this},_rotateAround:function(t,e){var n=Math.cos(t),i=Math.sin(t),r=e.y+i*(this.x-e.x)+n*(this.y-e.y);return this.x=e.x+n*(this.x-e.x)-i*(this.y-e.y),this.y=r,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},s.convert=function(t){return t instanceof s?t:Array.isArray(t)?new s(t[0],t[1]):t};var o="undefined"!=typeof self?self:{};const a=Math.pow(2,53)-1,l=Math.PI/180,c=180/Math.PI;function u(t){return t*l}const h=[[0,0],[1,0],[1,1],[0,1]];function d(t){if(t<=0)return 0;if(t>=1)return 1;const e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}function p(t,e,i,r){const s=new n(t,e,i,r);return function(t){return s.solve(t)}}const m=p(.25,.1,.25,1);function g(t,e,n){return Math.min(n,Math.max(e,t))}function f(t,e,n){const i=n-e,r=((t-e)%i+i)%i+e;return r===e?n:r}function _(t,e,n){if(!t.length)return n(null,[]);let i=t.length;const r=new Array(t.length);let s=null;t.forEach((t,o)=>{e(t,(t,e)=>{t&&(s=t),r[o]=e,0==--i&&n(s,r)})})}function v(t){const e=[];for(const n in t)e.push(t[n]);return e}function y(t,...e){for(const n of e)for(const e in n)t[e]=n[e];return t}let x=1;function b(){return x++}function w(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function C(t){return t<=1?1:Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function P(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function M(t,e){t.forEach(t=>{e[t]&&(e[t]=e[t].bind(e))})}function O(t,e){return-1!==t.indexOf(e,t.length-e.length)}function S(t,e,n){const i={};for(const r in t)i[r]=e.call(n||this,t[r],r,t);return i}function k(t,e,n){const i={};for(const r in t)e.call(n||this,t[r],r,t)&&(i[r]=t[r]);return i}function T(t){return Array.isArray(t)?t.map(T):"object"==typeof t&&t?S(t,T):t}const E={};function I(t){E[t]||("undefined"!=typeof console&&console.warn(t),E[t]=!0)}function A(t,e,n){return(n.y-t.y)*(e.x-t.x)>(e.y-t.y)*(n.x-t.x)}function z(t){let e=0;for(let n,i,r=0,s=t.length,o=s-1;r<s;o=r++)n=t[r],i=t[o],e+=(i.x-n.x)*(n.y+i.y);return e}function D(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function L(t){const e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(t,n,i,r)=>{const s=i||r;return e[n]=!s||s.toLowerCase(),""}),e["max-age"]){const t=parseInt(e["max-age"],10);isNaN(t)?delete e["max-age"]:e["max-age"]=t}return e}let R,F,B,N=null;function U(t){if(null==N){const e=t.navigator?t.navigator.userAgent:null;N=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return N}function H(t){try{const e=o[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(t){return!1}}const j={now:()=>void 0!==B?B:o.performance.now(),setNow(t){B=t},restoreNow(){B=void 0},frame(t){const e=o.requestAnimationFrame(t);return{cancel:()=>o.cancelAnimationFrame(e)}},getImageData(t,e=0){const n=o.document.createElement("canvas"),i=n.getContext("2d");if(!i)throw new Error("failed to create canvas 2d context");return n.width=t.width,n.height=t.height,i.drawImage(t,0,0,t.width,t.height),i.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:t=>(R||(R=o.document.createElement("a")),R.href=t,R.href),get devicePixelRatio(){return o.devicePixelRatio},get prefersReducedMotion(){return!!o.matchMedia&&(null==F&&(F=o.matchMedia("(prefers-reduced-motion: reduce)")),F.matches)}};let V;const $={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(null==V){const t=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{V=null!=process.env.API_URL_REGEX?new RegExp(process.env.API_URL_REGEX):t}catch(e){V=t}}return V},get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},q={supported:!1,testSupport:function(t){!W&&Z&&(X?Q(t):G=t)}};let G,Z,W=!1,X=!1;function Q(t){const e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,Z),t.isContextLost())return;q.supported=!0}
1catch(t){}t.deleteTexture(e),W=!0}o.document&&(Z=o.document.createElement("img"),Z.onload=function(){G&&Q(G),G=null,X=!0},Z.onerror=function(){W=!0,G=null},Z.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const K="01",Y="NO_ACCESS_TOKEN";function J(t){return 0===t.indexOf("mapbox:")}function tt(t){return $.API_URL_REGEX.test(t)}const et=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function nt(t){const e=t.match(et);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function it(t){const e=t.params.length?`?${t.params.join("&")}`:"";return`${t.protocol}://${t.authority}${t.path}${e}`}function rt(t){if(!t)return null;const e=t.split(".");if(!e||3!==e.length)return null;try{return JSON.parse(decodeURIComponent(o.atob(e[1]).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch(t){return null}}class st{constructor(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(t){const e=rt($.ACCESS_TOKEN);let n="";return n=e&&e.u?o.btoa(encodeURIComponent(e.u).replace(/%([0-9A-F]{2})/g,(t,e)=>String.fromCharCode(Number("0x"+e)))):$.ACCESS_TOKEN||"",t?`mapbox.eventData.${t}:${n}`:`mapbox.eventData:${n}`}fetchEventData(){const t=H("localStorage"),e=this.getStorageKey(),n=this.getStorageKey("uuid");if(t)try{const t=o.localStorage.getItem(e);t&&(this.eventData=JSON.parse(t));const i=o.localStorage.getItem(n);i&&(this.anonId=i)}catch(t){I("Unable to read from LocalStorage")}}saveEventData(){const t=H("localStorage"),e=this.getStorageKey(),n=this.getStorageKey("uuid");if(t)try{o.localStorage.setItem(n,this.anonId),Object.keys(this.eventData).length>=1&&o.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){I("Unable to write to LocalStorage")}}processRequests(t){}postEvent(t,n,i,r){if(!$.EVENTS_URL)return;const s=nt($.EVENTS_URL);s.params.push(`access_token=${r||$.ACCESS_TOKEN||""}`);const o={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:e,skuId:K,userId:this.anonId},a=n?y(o,n):o,l={url:it(s),headers:{"Content-Type":"text/plain"},body:JSON.stringify([a])};this.pendingRequest=Ot(l,t=>{this.pendingRequest=null,i(t),this.saveEventData(),this.processRequests(r)})}queueRequest(t,e){this.queue.push(t),this.processRequests(e)}}const ot=new class extends st{constructor(t){super("appUserTurnstile"),this._customAccessToken=t}postTurnstileEvent(t,e){$.EVENTS_URL&&$.ACCESS_TOKEN&&Array.isArray(t)&&t.some(t=>J(t)||tt(t))&&this.queueRequest(Date.now(),e)}processRequests(t){if(this.pendingRequest||0===this.queue.length)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const e=rt($.ACCESS_TOKEN),n=e?e.u:$.ACCESS_TOKEN;let i=n!==this.eventData.tokenU;P(this.anonId)||(this.anonId=w(),i=!0);const r=this.queue.shift();if(this.eventData.lastSuccess){const t=new Date(this.eventData.lastSuccess),e=new Date(r),n=(r-this.eventData.lastSuccess)/864e5;i=i||n>=1||n<-1||t.getDate()!==e.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(r,{"enabled.telemetry":!1},t=>{t||(this.eventData.lastSuccess=r,this.eventData.tokenU=n)},t)}},at=ot.postTurnstileEvent.bind(ot),lt=new class extends st{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(t,e,n,i){this.skuToken=e,this.errorCb=i,$.EVENTS_URL&&(n||$.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},n):this.errorCb(new Error(Y)))}processRequests(t){if(this.pendingRequest||0===this.queue.length)return;const{id:e,timestamp:n}=this.queue.shift();e&&this.success[e]||(this.anonId||this.fetchEventData(),P(this.anonId)||(this.anonId=w()),this.postEvent(n,{skuToken:this.skuToken},t=>{t?this.errorCb(t):e&&(this.success[e]=!0)},t))}},ct=lt.postMapLoadEvent.bind(lt),ut=new class extends st{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(t,e,n,i){if(!$.API_URL||!$.SESSION_PATH)return;const r=nt($.API_URL+$.SESSION_PATH);r.params.push(`sku=${e||""}`),r.params.push(`access_token=${i||$.ACCESS_TOKEN||""}`);const s={url:it(r),headers:{"Content-Type":"text/plain"}};this.pendingRequest=St(s,t=>{this.pendingRequest=null,n(t),this.saveEventData(),this.processRequests(i)})}getSessionAPI(t,e,n,i){this.skuToken=e,this.errorCb=i,$.SESSION_PATH&&$.API_URL&&(n||$.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},n):this.errorCb(new Error(Y)))}processRequests(t){if(this.pendingRequest||0===this.queue.length)return;const{id:e,timestamp:n}=this.queue.shift();
1e&&this.success[e]||this.getSession(n,this.skuToken,t=>{t?this.errorCb(t):e&&(this.success[e]=!0)},t)}},ht=ut.getSessionAPI.bind(ut),dt=new Set,pt="mapbox-tiles";let mt,gt,ft=500,_t=50;function vt(){o.caches&&!mt&&(mt=o.caches.open(pt))}function yt(t){const e=t.indexOf("?");return e<0?t:t.slice(0,e)}let xt=1/0;const bt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(bt);class wt extends Error{constructor(t,e,n){401===e&&tt(n)&&(t+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),super(t),this.status=e,this.url=n}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Ct=D()?()=>self.worker&&self.worker.referrer:()=>("blob:"===o.location.protocol?o.parent:o).location.href,Pt=function(t,e){if(!(/^file:/.test(n=t.url)||/^file:/.test(Ct())&&!/^\w+:/.test(n))){if(o.fetch&&o.Request&&o.AbortController&&o.Request.prototype.hasOwnProperty("signal"))return function(t,e){const n=new o.AbortController,i=new o.Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,referrer:Ct(),signal:n.signal});let r=!1,s=!1;const a=(l=i.url).indexOf("sku=")>0&&tt(l);var l;"json"===t.type&&i.headers.set("Accept","application/json");const c=(n,r,l)=>{if(s)return;if(n&&"SecurityError"!==n.message&&I(n),r&&l)return u(r);const c=Date.now();o.fetch(i).then(n=>{if(n.ok){const t=a?n.clone():null;return u(n,t,c)}return e(new wt(n.statusText,n.status,t.url))}).catch(t=>{20!==t.code&&e(new Error(t.message))})},u=(n,a,l)=>{("arrayBuffer"===t.type?n.arrayBuffer():"json"===t.type?n.json():n.text()).then(t=>{s||(a&&l&&function(t,e,n){if(vt(),!mt)return;const i={status:e.status,statusText:e.statusText,headers:new o.Headers};e.headers.forEach((t,e)=>i.headers.set(e,t));const r=L(e.headers.get("Cache-Control")||"");r["no-store"]||(r["max-age"]&&i.headers.set("Expires",new Date(n+1e3*r["max-age"]).toUTCString()),new Date(i.headers.get("Expires")).getTime()-n<42e4||function(t,e){if(void 0===gt)try{new Response(new ReadableStream),gt=!0}catch(t){gt=!1}gt?e(t.body):t.blob().then(e)}(e,e=>{const n=new o.Response(e,i);vt(),mt&&mt.then(e=>e.put(yt(t.url),n)).catch(t=>I(t.message))}))}(i,a,l),r=!0,e(null,t,n.headers.get("Cache-Control"),n.headers.get("Expires")))}).catch(t=>{s||e(new Error(t.message))})};return a?function(t,e){if(vt(),!mt)return e(null);const n=yt(t.url);mt.then(t=>{t.match(n).then(i=>{const r=function(t){if(!t)return!1;const e=new Date(t.headers.get("Expires")||0),n=L(t.headers.get("Cache-Control")||"");return e>Date.now()&&!n["no-cache"]}(i);t.delete(n),r&&t.put(n,i.clone()),e(null,i,r)}).catch(e)}).catch(e)}(i,c):c(null,null),{cancel:()=>{s=!0,r||n.abort()}}}(t,e);if(D()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e,void 0,!0)}var n;return function(t,e){const n=new o.XMLHttpRequest;n.open(t.method||"GET",t.url,!0),"arrayBuffer"===t.type&&(n.responseType="arraybuffer");for(const i in t.headers)n.setRequestHeader(i,t.headers[i]);return"json"===t.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===t.credentials,n.onerror=()=>{e(new Error(n.statusText))},n.onload=()=>{if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){let i=n.response;if("json"===t.type)try{i=JSON.parse(n.response)}catch(t){return e(t)}e(null,i,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else e(new wt(n.statusText,n.status,t.url))},n.send(t.body),{cancel:()=>n.abort()}}(t,e)},Mt=function(t,e){return Pt(y(t,{type:"arrayBuffer"}),e)},Ot=function(t,e){return Pt(y(t,{method:"POST"}),e)},St=function(t,e){return Pt(y(t,{method:"GET"}),e)};function kt(t){const e=o.document.createElement("a");return e.href=t,e.protocol===o.document.location.protocol&&e.host===o.document.location.host}const Tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Et,It;Et=[],It=0;const At=function(t,e){if(q.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),It>=$.MAX_PARALLEL_IMAGE_REQUESTS){const n={requestParameters:t,callback:e,cancelled:!1,cancel(){this.cancelled=!0}};return Et.push(n),n}It++;let n=!1;const i=()=>
1{if(!n)for(n=!0,It--;Et.length&&It<$.MAX_PARALLEL_IMAGE_REQUESTS;){const t=Et.shift(),{requestParameters:e,callback:n,cancelled:i}=t;i||(t.cancel=At(e,n).cancel)}},r=Mt(t,(t,n,r,s)=>{i(),t?e(t):n&&(o.createImageBitmap?function(t,e){const n=new o.Blob([new Uint8Array(t)],{type:"image/png"});o.createImageBitmap(n).then(t=>{e(null,t)}).catch(t=>{e(new Error(`Could not load image because of ${t.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(n,(t,n)=>e(t,n,r,s)):function(t,e){const n=new o.Image,i=o.URL;n.onload=()=>{e(null,n),i.revokeObjectURL(n.src),n.onload=null,o.requestAnimationFrame(()=>{n.src=Tt})},n.onerror=()=>e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const r=new o.Blob([new Uint8Array(t)],{type:"image/png"});n.src=t.byteLength?i.createObjectURL(r):Tt}(n,(t,n)=>e(t,n,r,s)))});return{cancel:()=>{r.cancel(),i()}}};function zt(t,e,n){n[t]&&-1!==n[t].indexOf(e)||(n[t]=n[t]||[],n[t].push(e))}function Dt(t,e,n){if(n&&n[t]){const i=n[t].indexOf(e);-1!==i&&n[t].splice(i,1)}}class Lt{constructor(t,e={}){y(this,e),this.type=t}}class Rt extends Lt{constructor(t,e={}){super("error",y({error:t},e))}}class Ft{on(t,e){return this._listeners=this._listeners||{},zt(t,e,this._listeners),this}off(t,e){return Dt(t,e,this._listeners),Dt(t,e,this._oneTimeListeners),this}once(t,e){return e?(this._oneTimeListeners=this._oneTimeListeners||{},zt(t,e,this._oneTimeListeners),this):new Promise(e=>this.once(t,e))}fire(t,e){"string"==typeof t&&(t=new Lt(t,e||{}));const n=t.type;if(this.listens(n)){t.target=this;const e=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];for(const n of e)n.call(this,t);const i=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];for(const s of i)Dt(n,s,this._oneTimeListeners),s.call(this,t);const r=this._eventedParent;r&&(y(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),r.fire(t))}else t instanceof Rt&&console.error(t.error);return this}listens(t){return!!(this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t))}setEventedParent(t,e){return this._eventedParent=t,this._eventedParentData=e,this}}var Bt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},fog:{type:"fog"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0}
vendor: 5,290 bytes, line 1
1,clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"}
vendor: 4,085 bytes, line 1
1,"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}
vendor: 7,012 bytes, line 1
1,"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:.1,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven
vendor: 8,689 bytes, line 1
1"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},
1"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};class Nt{constructor(t,e,n,i){this.message=(t?`${t}: `:"")+n,i&&(this.identifier=i),null!=e&&e.__line__&&(this.line=e.__line__)}}function Ut(t){const e=t.value;return e?[new Nt(t.key,e,"constants have been deprecated as of v8")]:[]}function Ht(t,...e){for(const n of e)for(const e in n)t[e]=n[e];return t}function jt(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function Vt(t){if(Array.isArray(t))return t.map(Vt);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){const e={};for(const n in t)e[n]=Vt(t[n]);return e}return jt(t)}
vendor: 8,808 bytes, line 1
1class $t extends Error{constructor(t,e){super(e),this.message=e,this.key=t}}class qt{constructor(t,e=[]){this.parent=t,this.bindings={};for(const[n,i]of e)this.bindings[n]=i}concat(t){return new qt(this,t)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(`${t} not found in scope.`)}has(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)}}const Gt={kind:"null"},Zt={kind:"number"},Wt={kind:"string"},Xt={kind:"boolean"},Qt={kind:"color"},Kt={kind:"object"},Yt={kind:"value"},Jt={kind:"collator"},te={kind:"formatted"},ee={kind:"resolvedImage"};function ne(t,e){return{kind:"array",itemType:t,N:e}}function ie(t){if("array"===t.kind){const e=ie(t.itemType);return"number"==typeof t.N?`array<${e}, ${t.N}>`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}const re=[Gt,Zt,Wt,Xt,Qt,te,Kt,ne(Yt),ee];function se(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!se(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(const t of re)if(!se(t,e))return null}return`Expected ${ie(t)} but found ${ie(e)} instead.`}function oe(t,e){return e.some(e=>e.kind===t.kind)}function ae(t,e){return e.some(e=>"null"===e?null===t:"array"===e?Array.isArray(t):"object"===e?t&&!Array.isArray(t)&&"object"==typeof t:e===typeof t)}function le(t){var e={exports:{}};return t(e,e.exports),e.exports}var ce=le(function(t,e){var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function i(t){return(t=Math.round(t))<0?0:t>255?255:t}function r(t){return i("%"===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function s(t){return(e="%"===t[t.length-1]?parseFloat(t)/100:parseFloat(t))<0?0:e>1?1:e;var e}function o(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}try{e.parseCSSColor=function(t){var e,a=t.replace(/ /g,"").toLowerCase();if(a in n)return n[a].slice();if("#"===a[0])return 4===a.length?(e=parseInt(a.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===a.length&&(e=parseInt(a.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var l=a.indexOf("("),c=a.indexOf(")");if(-1!==l&&c+1===a.length){var u=a.substr(0,l),h=a.substr(l+1,c-(l+1)).split(","),d=1;switch(u){case"rgba":if(4!==h.length)return null;d=s(h.pop());case"rgb":return 3!==h.length?null:[r(h[0]),r(h[1]),r(h[2]),d];case"hsla":if(4!==h.length)return null;d=s(h.pop());case"hsl":if(3!==h.length)return null;var p=(parseFloat(h[0])%360+360)%360/360,m=s(h[1]),g=s(h[2]),f=g<=.5?g*(m+1):g+m-g*m,_=2*g-f;return[i(255*o(_,f,p+1/3)),i(255*o(_,f,p)),i(255*o(_,f,p-1/3)),d];default:return null}}return null}}catch(t){}});class ue{constructor(t,e,n,i=1){this.r=t,this.g=e,this.b=n,this.a=i}static parse(t){if(!t)return;if(t instanceof ue)return t;if("string"!=typeof t)return;const e=ce.parseCSSColor(t);return e?new ue(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3]):void 0}toString(){const[t,e,n,i]=this.toArray();return`rgba(${Math.round(t)},${Math.round(e)},${Math.round(n)},${i})`}toArray(){const{r:t,g:e,b:n,a:i}=this;return 0===i?[0,0,0,0]:[255*t/i,255*e/i,255*n/i,i]}}ue.black=new ue(0,0,0,1),ue.white=new ue(1,1,1,1),ue.transparent=new ue(0,0,0,0),ue.red=new ue(1,0,0,1),ue.blue=new ue(0,0,1,1);class he{constructor(t,e,n){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(t,e){return this.collator.compare(t,e)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class de{constructor(t,e,n,i,r){this.text=t,this.image=e,this.scale=n,this.fontStack=i,this.textColor=r}}class pe{constructor(t){this.sections=t}static fromString(t){return new pe([new de(t,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(t=>0!==t.text.length||t.image&&0!==t.image.name.length)}static factory(t){return t instanceof pe?t:pe.fromString(t)}toString(){return 0===this.sections.length?"":this.sections.map(t=>t.text).join("")}serialize(){const t=["format"];for(const e of this.sections){if(e.image){t.push(["image",e.image.name]);continue}t.push(e.text);const n={};e.fontStack&&(n["text-font"]=["literal",e.fontStack.split(",")]),e.scale&&(n["font-scale"]=e.scale),e.textColor&&(n["text-color"]=["rgba"].concat(e.textColor.toArray())),t.push(n)}return t}}class me{constructor(t){this.name=t.name,this.available=t.available}toString(){return this.name}static fromString(t){return t?new me({name:t,available:!1}):null}serialize(){return["image",this.name]}}function ge(t,e,n,i){return"number"==typeof t&&t>=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===i||"number"==typeof i&&i>=0&&i<=1?null:`Invalid rgba value [${[t,e,n,i].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof i?[t,e,n,i]:[t,e,n]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function fe(t){if(null===t)return!0;
vendor: 5,817 bytes, line 1
1if("string"==typeof t)return!0;if("boolean"==typeof t)return!0;if("number"==typeof t)return!0;if(t instanceof ue)return!0;if(t instanceof he)return!0;if(t instanceof pe)return!0;if(t instanceof me)return!0;if(Array.isArray(t)){for(const e of t)if(!fe(e))return!1;return!0}if("object"==typeof t){for(const e in t)if(!fe(t[e]))return!1;return!0}return!1}function _e(t){if(null===t)return Gt;if("string"==typeof t)return Wt;if("boolean"==typeof t)return Xt;if("number"==typeof t)return Zt;if(t instanceof ue)return Qt;if(t instanceof he)return Jt;if(t instanceof pe)return te;if(t instanceof me)return ee;if(Array.isArray(t)){const e=t.length;let n;for(const i of t){const t=_e(i);if(n){if(n===t)continue;n=Yt;break}n=t}return ne(n||Yt,e)}return Kt}function ve(t){const e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof ue||t instanceof pe||t instanceof me?t.toString():JSON.stringify(t)}class ye{constructor(t,e){this.type=t,this.value=e}static parse(t,e){if(2!==t.length)return e.error(`'literal' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!fe(t[1]))return e.error("invalid value");const n=t[1];let i=_e(n);const r=e.expectedType;return"array"!==i.kind||0!==i.N||!r||"array"!==r.kind||"number"==typeof r.N&&0!==r.N||(i=r),new ye(i,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof ue?["rgba"].concat(this.value.toArray()):this.value instanceof pe?this.value.serialize():this.value}}class xe{constructor(t){this.name="ExpressionEvaluationError",this.message=t}toJSON(){return this.message}}const be={string:Wt,number:Zt,boolean:Xt,object:Kt};class we{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");let n,i=1;const r=t[0];if("array"===r){let r,s;if(t.length>2){const n=t[1];if("string"!=typeof n||!(n in be)||"object"===n)return e.error('The item type argument of "array" must be one of string, number, boolean',1);r=be[n],i++}else r=Yt;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);s=t[2],i++}n=ne(r,s)}else n=be[r];const s=[];for(;i<t.length;i++){const n=e.parse(t[i],i,Yt);if(!n)return null;s.push(n)}return new we(n,s)}evaluate(t){for(let e=0;e<this.args.length;e++){const n=this.args[e].evaluate(t);if(!se(this.type,_e(n)))return n;if(e===this.args.length-1)throw new xe(`Expected value to be of type ${ie(this.type)}, but found ${ie(_e(n))} instead.`)}return null}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}serialize(){const t=this.type,e=[t.kind];if("array"===t.kind){const n=t.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){e.push(n.kind);const i=t.N;("number"==typeof i||this.args.length>1)&&e.push(i)}}return e.concat(this.args.map(t=>t.serialize()))}}class Ce{constructor(t){this.type=te,this.sections=t}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");const n=t[1];if(!Array.isArray(n)&&"object"==typeof n)return e.error("First argument must be an image or text section.");const i=[];let r=!1;for(let s=1;s<=t.length-1;++s){const n=t[s];if(r&&"object"==typeof n&&!Array.isArray(n)){r=!1;let t=null;if(n["font-scale"]&&(t=e.parse(n["font-scale"],1,Zt),!t))return null;let s=null;if(n["text-font"]&&(s=e.parse(n["text-font"],1,ne(Wt)),!s))return null;let o=null;if(n["text-color"]&&(o=e.parse(n["text-color"],1,Qt),!o))return null;const a=i[i.length-1];a.scale=t,a.font=s,a.textColor=o}else{const n=e.parse(t[s],1,Yt);if(!n)return null;const o=n.type.kind;if("string"!==o&&"value"!==o&&"null"!==o&&"resolvedImage"!==o)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");r=!0,i.push({content:n,scale:null,font:null,textColor:null})}}return new Ce(i)}evaluate(t){return new pe(this.sections.map(e=>{const n=e.content.evaluate(t);return _e(n)===ee?new de("",n,null,null,null):new de(ve(n),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)}))}eachChild(t){for(const e of this.sections)t(e.content),e.scale&&t(e.scale),e.font&&t(e.font),e.textColor&&t(e.textColor)}outputDefined(){return!1}serialize(){const t=["format"];for(const e of this.sections){t.push(e.content.serialize());const n={};e.scale&&(n["font-scale"]=e.scale.serialize()),e.font&&(n["text-font"]=e.font.serialize()),e.textColor&&(n["text-color"]=e.textColor.serialize()),t.push(n)}return t}}class Pe{constructor(t){this.type=ee,this.input=t}static parse(t,e){if(2!==t.length)return e.error("Expected two arguments.");const n=e.parse(t[1],1,Wt);return n?new Pe(n):e.error("No image name provided.")}evaluate(t){const e=this.input.evaluate(t),n=me.fromString(e);return n&&t.availableImages&&(n.available=t.availableImages.indexOf(e)>-1),n}eachChild(t){t(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Me={"to-boolean":Xt,"to-color":Qt,"to-number":Zt,"to-string":Wt};class Oe{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");const n=t[0];if(("to-boolean"===n||"to-string"===n)&&2!==t.length)return e.error("Expected one argument.");const i=Me[n],r=[];for(let s=1;s<t.length;s++){const n=e.parse(t[s],s,Yt);if(!n)return null;r.push(n)}return new Oe(i,r)}evaluate(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){let e,n;for(const i of this.args){if(e=i.evaluate(t),n=null,e instanceof ue)return e;if("string"==typeof e){const n=t.parseColor(e);
vendor: 7,486 bytes, line 1
1if(n)return n}else if(Array.isArray(e)&&(n=e.length<3||e.length>4?`Invalid rbga value ${JSON.stringify(e)}: expected an array containing either three or four numeric values.`:ge(e[0],e[1],e[2],e[3]),!n))return new ue(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new xe(n||`Could not parse color from value '${"string"==typeof e?e:String(JSON.stringify(e))}'`)}if("number"===this.type.kind){let e=null;for(const n of this.args){if(e=n.evaluate(t),null===e)return 0;const i=Number(e);if(!isNaN(i))return i}throw new xe(`Could not convert ${JSON.stringify(e)} to number.`)}return"formatted"===this.type.kind?pe.fromString(ve(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?me.fromString(ve(this.args[0].evaluate(t))):ve(this.args[0].evaluate(t))}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}serialize(){if("formatted"===this.type.kind)return new Ce([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Pe(this.args[0]).serialize();const t=[`to-${this.type.kind}`];return this.eachChild(e=>{t.push(e.serialize())}),t}}const Se=["Unknown","Point","LineString","Polygon"];class ke{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Se[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(t){let e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=ue.parse(t)),e}}class Te{constructor(t,e,n,i){this.name=t,this.type=e,this._evaluate=n,this.args=i}evaluate(t){return this._evaluate(t,this.args)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(t=>t.serialize()))}static parse(t,e){const n=t[0],i=Te.definitions[n];if(!i)return e.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const r=Array.isArray(i)?i[0]:i.type,s=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,o=s.filter(([e])=>!Array.isArray(e)||e.length===t.length-1);let a=null;for(const[l,c]of o){a=new Ye(e.registry,e.path,null,e.scope);const i=[];let s=!1;for(let e=1;e<t.length;e++){const n=t[e],r=Array.isArray(l)?l[e-1]:l.type,o=a.parse(n,1+i.length,r);if(!o){s=!0;break}i.push(o)}if(!s)if(Array.isArray(l)&&l.length!==i.length)a.error(`Expected ${l.length} arguments, but found ${i.length} instead.`);else{for(let t=0;t<i.length;t++){const e=Array.isArray(l)?l[t]:l.type,n=i[t];a.concat(t+1).checkSubtype(e,n.type)}if(0===a.errors.length)return new Te(n,r,c,i)}}if(1===o.length)e.errors.push(...a.errors);else{const n=(o.length?o:s).map(([t])=>{return e=t,Array.isArray(e)?`(${e.map(ie).join(", ")})`:`(${ie(e.type)}...)`;var e}).join(" | "),i=[];for(let r=1;r<t.length;r++){const n=e.parse(t[r],1+i.length);if(!n)return null;i.push(ie(n.type))}e.error(`Expected arguments of type ${n}, but found (${i.join(", ")}) instead.`)}return null}static register(t,e){Te.definitions=e;for(const n in e)t[n]=Te}}class Ee{constructor(t,e,n){this.type=Jt,this.locale=n,this.caseSensitive=t,this.diacriticSensitive=e}static parse(t,e){if(2!==t.length)return e.error("Expected one argument.");const n=t[1];if("object"!=typeof n||Array.isArray(n))return e.error("Collator options argument must be an object.");const i=e.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,Xt);if(!i)return null;const r=e.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,Xt);if(!r)return null;let s=null;return n.locale&&(s=e.parse(n.locale,1,Wt),!s)?null:new Ee(i,r,s)}evaluate(t){return new he(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}serialize(){const t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]}}const Ie=8192;function Ae(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function ze(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function De(t,e){const n=(180+t[0])/360,i=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,r=Math.pow(2,e.z);return[Math.round(n*r*Ie),Math.round(i*r*Ie)]}function Le(t,e,n){const i=t[0]-e[0],r=t[1]-e[1],s=t[0]-n[0],o=t[1]-n[1];return i*o-s*r==0&&i*s<=0&&r*o<=0}function Re(t,e){let n=!1;for(let o=0,a=e.length;o<a;o++){const a=e[o];for(let e=0,o=a.length;e<o-1;e++){if(Le(t,a[e],a[e+1]))return!1;(r=a[e])[1]>(i=t)[1]!=(s=a[e+1])[1]>i[1]&&i[0]<(s[0]-r[0])*(i[1]-r[1])/(s[1]-r[1])+r[0]&&(n=!n)}}var i,r,s;return n}function Fe(t,e){for(let n=0;n<e.length;n++)if(Re(t,e[n]))return!0;return!1}function Be(t,e,n,i){const r=i[0]-n[0],s=i[1]-n[1],o=(t[0]-n[0])*s-r*(t[1]-n[1]),a=(e[0]-n[0])*s-r*(e[1]-n[1]);return o>0&&a<0||o<0&&a>0}function Ne(t,e,n){for(const c of n)for(let n=0;n<c.length-1;++n)if(0!=(a=[(o=c[n+1])[0]-(s=c[n])[0],o[1]-s[1]])[0]*(l=[(r=e)[0]-(i=t)[0],r[1]-i[1]])[1]-a[1]*l[0]&&Be(i,r,s,o)&&Be(s,o,i,r))return!0;var i,r,s,o,a,l;return!1}function Ue(t,e){for(let n=0;n<t.length;++n)if(!Re(t[n],e))return!1;for(let n=0;n<t.length-1;++n)if(Ne(t[n],t[n+1],e))return!1;return!0}function He(t,e){for(let n=0;n<e.length;n++)if(Ue(t,e[n]))return!0;return!1}function je(t,e,n){const i=[];for(let r=0;r<t.length;r++){const s=[];for(let i=0;i<t[r].length;i++){const o=De(t[r][i],n);Ae(e,o),s.push(o)}i.push(s)}return i}function Ve(t,e,n){const i=[];for(let r=0;r<t.length;r++){const s=je(t[r],e,n);i.push(s)}return i}function $e(t,e,n,i){if(t[0]<n[0]||t[0]>n[2]){const e=.5*i;let r=t[0]-n[0]>e?-i:n[0]-t[0]>e?i:0;0===r&&(r=t[0]-n[2]>e?-i:n[2]-t[0]>e?i:0),t[0]+=r}Ae(e,t)}function qe(t,e,n,i){const r=Math.pow(2,i.z)*Ie,s=[i.x*Ie,i.y*Ie],o=[];for(const a of t)for(const t of a){const i=[t.x+s[0],t.y+s[1]];$e(i,e,n,r),o.push(i)}return o}function Ge(t,e,n,i){const r=Math.pow(2,i.z)*Ie,s=[i.x*Ie,i.y*Ie],o=[];for(const l of t){const t=[];for(const n of l){const i=[n.x+s[0],n.y+s[1]];Ae(e,i),t.push(i)}o.push(t)}if(e[2]-e[0]<=r/2){(a=e)[0]=a[1]=1/0,a[2]=a[3]=-1/0;for(const t of o)for(const i of t)$e(i,e,n,r)}var a;return o}class Ze{constructor(t,e){this.type=Xt,this.geojson=t,this.geometries=e}static parse(t,e){if(2!==t.length)return e.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(fe(t[1])){const e=t[1];if("FeatureCollection"===e.type)for(let t=0;t<e.features.length;++t){const n=e.features[t].geometry.type;if("Polygon"===n||"MultiPolygon"===n)return new Ze(e,e.features[t].geometry)}else if("Feature"===e.type){const t=e.geometry.type;if("Polygon"===t||"MultiPolygon"===t)return new Ze(e,e.geometry)}else if("Polygon"===e.type||"MultiPolygon"===e.type)return new Ze(e,e)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,e){const n=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],r=t.canonicalID();
vendor: 5,241 bytes, line 1
1if("Polygon"===e.type){const s=je(e.coordinates,i,r),o=qe(t.geometry(),n,i,r);if(!ze(n,i))return!1;for(const t of o)if(!Re(t,s))return!1}if("MultiPolygon"===e.type){const s=Ve(e.coordinates,i,r),o=qe(t.geometry(),n,i,r);if(!ze(n,i))return!1;for(const t of o)if(!Fe(t,s))return!1}return!0}(t,this.geometries);if("LineString"===t.geometryType())return function(t,e){const n=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],r=t.canonicalID();if("Polygon"===e.type){const s=je(e.coordinates,i,r),o=Ge(t.geometry(),n,i,r);if(!ze(n,i))return!1;for(const t of o)if(!Ue(t,s))return!1}if("MultiPolygon"===e.type){const s=Ve(e.coordinates,i,r),o=Ge(t.geometry(),n,i,r);if(!ze(n,i))return!1;for(const t of o)if(!He(t,s))return!1}return!0}(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}function We(t){if(t instanceof Te){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof Ze)return!1;let e=!0;return t.eachChild(t=>{e&&!We(t)&&(e=!1)}),e}function Xe(t){if(t instanceof Te&&"feature-state"===t.name)return!1;let e=!0;return t.eachChild(t=>{e&&!Xe(t)&&(e=!1)}),e}function Qe(t,e){if(t instanceof Te&&e.indexOf(t.name)>=0)return!1;let n=!0;return t.eachChild(t=>{n&&!Qe(t,e)&&(n=!1)}),n}class Ke{constructor(t,e){this.type=e.type,this.name=t,this.boundExpression=e}static parse(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");const n=t[1];return e.scope.has(n)?new Ke(n,e.scope.get(n)):e.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(t){return this.boundExpression.evaluate(t)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class Ye{constructor(t,e=[],n,i=new qt,r=[]){this.registry=t,this.path=e,this.key=e.map(t=>`[${t}]`).join(""),this.scope=i,this.errors=r,this.expectedType=n}parse(t,e,n,i,r={}){return e?this.concat(e,n,i)._parse(t,r):this._parse(t,r)}_parse(t,e){function n(t,e,n){return"assert"===n?new we(e,[t]):"coerce"===n?new Oe(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const i=t[0];if("string"!=typeof i)return this.error(`Expression name must be a string, but found ${typeof i} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const r=this.registry[i];if(r){let i=r.parse(t,this);if(!i)return null;if(this.expectedType){const t=this.expectedType,r=i.type;if("string"!==t.kind&&"number"!==t.kind&&"boolean"!==t.kind&&"object"!==t.kind&&"array"!==t.kind||"value"!==r.kind)if("color"!==t.kind&&"formatted"!==t.kind&&"resolvedImage"!==t.kind||"value"!==r.kind&&"string"!==r.kind){if(this.checkSubtype(t,r))return null}else i=n(i,t,e.typeAnnotation||"coerce");else i=n(i,t,e.typeAnnotation||"assert")}if(!(i instanceof ye)&&"resolvedImage"!==i.type.kind&&Je(i)){const e=new ke;try{i=new ye(i.type,i.evaluate(e))}catch(t){return this.error(t.message),null}}return i}return this.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===t?"'undefined' value invalid. Use null instead.":"object"==typeof t?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof t} instead.`)}concat(t,e,n){const i="number"==typeof t?this.path.concat(t):this.path,r=n?this.scope.concat(n):this.scope;return new Ye(this.registry,i,e||null,r,this.errors)}error(t,...e){const n=`${this.key}${e.map(t=>`[${t}]`).join("")}`;this.errors.push(new $t(n,t))}checkSubtype(t,e){const n=se(t,e);return n&&this.error(n),n}}function Je(t){if(t instanceof Ke)return Je(t.boundExpression);if(t instanceof Te&&"error"===t.name)return!1;if(t instanceof Ee)return!1;if(t instanceof Ze)return!1;const e=t instanceof Oe||t instanceof we;let n=!0;return t.eachChild(t=>{n=e?n&&Je(t):n&&t instanceof ye}),!!n&&We(t)&&Qe(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script"])}function tn(t,e){const n=t.length-1;let i,r,s=0,o=n,a=0;for(;s<=o;)if(a=Math.floor((s+o)/2),i=t[a],r=t[a+1],i<=e){if(a===n||e<r)return a;s=a+1}else{if(!(i>e))throw new xe("Input is not a number.");o=a-1}return 0}class en{constructor(t,e,n){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(const[i,r]of n)this.labels.push(i),this.outputs.push(r)}static parse(t,e){if(t.length-1<4)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");const n=e.parse(t[1],1,Zt);if(!n)return null;const i=[];let r=null;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(let s=1;s<t.length;s+=2){const n=1===s?-1/0:t[s],o=t[s+1],a=s,l=s+1;if("number"!=typeof n)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not c
1omputed expressions) for the input values.',a);if(i.length&&i[i.length-1][0]>=n)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',a);const c=e.parse(o,l,r);if(!c)return null;r=r||c.type,i.push([n,c])}return new en(r,n,i)}evaluate(t){const e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);const i=this.input.evaluate(t);if(i<=e[0])return n[0].evaluate(t);const r=e.length;return i>=e[r-1]?n[r-1].evaluate(t):n[tn(e,i)].evaluate(t)}eachChild(t){t(this.input);for(const e of this.outputs)t(e)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}serialize(){const t=["step",this.input.serialize()];for(let e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t}}function nn(t,e,n){return t*(1-n)+e*n}var rn=Object.freeze({__proto__:null,number:nn,color:function(t,e,n){return new ue(nn(t.r,e.r,n),nn(t.g,e.g,n),nn(t.b,e.b,n),nn(t.a,e.a,n))},array:function(t,e,n){return t.map((t,i)=>nn(t,e[i],n))}});const sn=.95047,on=1.08883,an=4/29,ln=6/29,cn=3*ln*ln,un=Math.PI/180,hn=180/Math.PI;function dn(t){return t>.008856451679035631?Math.pow(t,1/3):t/cn+an}function pn(t){return t>ln?t*t*t:cn*(t-an)}
vendor: 4,836 bytes, line 1
1function mn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function gn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function fn(t){const e=gn(t.r),n=gn(t.g),i=gn(t.b),r=dn((.4124564*e+.3575761*n+.1804375*i)/sn),s=dn((.2126729*e+.7151522*n+.072175*i)/1);return{l:116*s-16,a:500*(r-s),b:200*(s-dn((.0193339*e+.119192*n+.9503041*i)/on)),alpha:t.a}}function _n(t){let e=(t.l+16)/116,n=isNaN(t.a)?e:e+t.a/500,i=isNaN(t.b)?e:e-t.b/200;return e=1*pn(e),n=sn*pn(n),i=on*pn(i),new ue(mn(3.2404542*n-1.5371385*e-.4985314*i),mn(-.969266*n+1.8760108*e+.041556*i),mn(.0556434*n-.2040259*e+1.0572252*i),t.alpha)}function vn(t,e,n){const i=e-t;return t+n*(i>180||i<-180?i-360*Math.round(i/360):i)}const yn={forward:fn,reverse:_n,interpolate:function(t,e,n){return{l:nn(t.l,e.l,n),a:nn(t.a,e.a,n),b:nn(t.b,e.b,n),alpha:nn(t.alpha,e.alpha,n)}}},xn={forward:function(t){const{l:e,a:n,b:i}=fn(t),r=Math.atan2(i,n)*hn;return{h:r<0?r+360:r,c:Math.sqrt(n*n+i*i),l:e,alpha:t.a}},reverse:function(t){const e=t.h*un,n=t.c;return _n({l:t.l,a:Math.cos(e)*n,b:Math.sin(e)*n,alpha:t.alpha})},interpolate:function(t,e,n){return{h:vn(t.h,e.h,n),c:nn(t.c,e.c,n),l:nn(t.l,e.l,n),alpha:nn(t.alpha,e.alpha,n)}}};var bn=Object.freeze({__proto__:null,lab:yn,hcl:xn});class wn{constructor(t,e,n,i,r){this.type=t,this.operator=e,this.interpolation=n,this.input=i,this.labels=[],this.outputs=[];for(const[s,o]of r)this.labels.push(s),this.outputs.push(o)}static interpolationFactor(t,e,i,r){let s=0;if("exponential"===t.name)s=Cn(e,t.base,i,r);else if("linear"===t.name)s=Cn(e,1,i,r);else if("cubic-bezier"===t.name){const o=t.controlPoints;s=new n(o[0],o[1],o[2],o[3]).solve(Cn(e,1,i,r))}return s}static parse(t,e){let[n,i,r,...s]=t;if(!Array.isArray(i)||0===i.length)return e.error("Expected an interpolation type expression.",1);if("linear"===i[0])i={name:"linear"};else if("exponential"===i[0]){const t=i[1];if("number"!=typeof t)return e.error("Exponential interpolation requires a numeric base.",1,1);i={name:"exponential",base:t}}else{if("cubic-bezier"!==i[0])return e.error(`Unknown interpolation type ${String(i[0])}`,1,0);{const t=i.slice(1);if(4!==t.length||t.some(t=>"number"!=typeof t||t<0||t>1))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);i={name:"cubic-bezier",controlPoints:t}}}if(t.length-1<4)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(r=e.parse(r,2,Zt),!r)return null;const o=[];let a=null;"interpolate-hcl"===n||"interpolate-lab"===n?a=Qt:e.expectedType&&"value"!==e.expectedType.kind&&(a=e.expectedType);for(let l=0;l<s.length;l+=2){const t=s[l],n=s[l+1],i=l+3,r=l+4;if("number"!=typeof t)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',i);if(o.length&&o[o.length-1][0]>=t)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',i);const c=e.parse(n,r,a);if(!c)return null;a=a||c.type,o.push([t,c])}return"number"===a.kind||"color"===a.kind||"array"===a.kind&&"number"===a.itemType.kind&&"number"==typeof a.N?new wn(a,n,i,r,o):e.error(`Type ${ie(a)} is not interpolatable.`)}evaluate(t){const e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);const i=this.input.evaluate(t);if(i<=e[0])return n[0].evaluate(t);const r=e.length;if(i>=e[r-1])return n[r-1].evaluate(t);const s=tn(e,i),o=wn.interpolationFactor(this.interpolation,i,e[s],e[s+1]),a=n[s].evaluate(t),l=n[s+1].evaluate(t);return"interpolate"===this.operator?rn[this.type.kind.toLowerCase()](a,l,o):"interpolate-hcl"===this.operator?xn.reverse(xn.interpolate(xn.forward(a),xn.forward(l),o)):yn.reverse(yn.interpolate(yn.forward(a),yn.forward(l),o))}eachChild(t){t(this.input);for(const e of this.outputs)t(e)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}serialize(){let t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const e=[this.operator,t,this.input.serialize()];for(let n=0;n<this.labels.length;n++)e.push(this.labels[n],this.outputs[n].serialize());return e}}function Cn(t,e,n,i){const r=i-n,s=t-n;return 0===r?0:1===e?s/r:(Math.pow(e,s)-1)/(Math.pow(e,r)-1)}class Pn{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error("Expectected at least one argument.");let n=null;const i=e.expectedType;i&&"value"!==i.kind&&(n=i);const r=[];for(const o of t.slice(1)){const t=e.parse(o,1+r.length,n,void 0,{typeAnnotation:"omit"});if(!t)return null;
vendor: 21,401 bytes, line 1
1n=n||t.type,r.push(t)}const s=i&&r.some(t=>se(i,t.type));return new Pn(s?Yt:n,r)}evaluate(t){let e,n=null,i=0;for(const r of this.args)if(i++,n=r.evaluate(t),n&&n instanceof me&&!n.available&&(e||(e=n.name),n=null,i===this.args.length&&(n=e)),null!==n)break;return n}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}serialize(){const t=["coalesce"];return this.eachChild(e=>{t.push(e.serialize())}),t}}class Mn{constructor(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(const e of this.bindings)t(e[1]);t(this.result)}static parse(t,e){if(t.length<4)return e.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);const n=[];for(let r=1;r<t.length-1;r+=2){const i=t[r];if("string"!=typeof i)return e.error(`Expected string, but found ${typeof i} instead.`,r);if(/[^a-zA-Z0-9_]/.test(i))return e.error("Variable names must contain only alphanumeric characters or '_'.",r);const s=e.parse(t[r+1],r+1);if(!s)return null;n.push([i,s])}const i=e.parse(t[t.length-1],t.length-1,e.expectedType,n);return i?new Mn(n,i):null}outputDefined(){return this.result.outputDefined()}serialize(){const t=["let"];for(const[e,n]of this.bindings)t.push(e,n.serialize());return t.push(this.result.serialize()),t}}class On{constructor(t,e,n){this.type=t,this.index=e,this.input=n}static parse(t,e){if(3!==t.length)return e.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const n=e.parse(t[1],1,Zt),i=e.parse(t[2],2,ne(e.expectedType||Yt));return n&&i?new On(i.type.itemType,n,i):null}evaluate(t){const e=this.index.evaluate(t),n=this.input.evaluate(t);if(e<0)throw new xe(`Array index out of bounds: ${e} < 0.`);if(e>=n.length)throw new xe(`Array index out of bounds: ${e} > ${n.length-1}.`);if(e!==Math.floor(e))throw new xe(`Array index must be an integer, but found ${e} instead.`);return n[e]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class Sn{constructor(t,e){this.type=Xt,this.needle=t,this.haystack=e}static parse(t,e){if(3!==t.length)return e.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const n=e.parse(t[1],1,Yt),i=e.parse(t[2],2,Yt);return n&&i?oe(n.type,[Xt,Wt,Zt,Gt,Yt])?new Sn(n,i):e.error(`Expected first argument to be of type boolean, string, number or null, but found ${ie(n.type)} instead`):null}evaluate(t){const e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!n)return!1;if(!ae(e,["boolean","string","number","null"]))throw new xe(`Expected first argument to be of type boolean, string, number or null, but found ${ie(_e(e))} instead.`);if(!ae(n,["string","array"]))throw new xe(`Expected second argument to be of type array or string, but found ${ie(_e(n))} instead.`);return n.indexOf(e)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class kn{constructor(t,e,n){this.type=Zt,this.needle=t,this.haystack=e,this.fromIndex=n}static parse(t,e){if(t.length<=2||t.length>=5)return e.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`);const n=e.parse(t[1],1,Yt),i=e.parse(t[2],2,Yt);if(!n||!i)return null;if(!oe(n.type,[Xt,Wt,Zt,Gt,Yt]))return e.error(`Expected first argument to be of type boolean, string, number or null, but found ${ie(n.type)} instead`);if(4===t.length){const r=e.parse(t[3],3,Zt);return r?new kn(n,i,r):null}return new kn(n,i)}evaluate(t){const e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!ae(e,["boolean","string","number","null"]))throw new xe(`Expected first argument to be of type boolean, string, number or null, but found ${ie(_e(e))} instead.`);if(!ae(n,["string","array"]))throw new xe(`Expected second argument to be of type array or string, but found ${ie(_e(n))} instead.`);if(this.fromIndex){const i=this.fromIndex.evaluate(t);return n.indexOf(e,i)}return n.indexOf(e)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class Tn{constructor(t,e,n,i,r,s){this.inputType=t,this.type=e,this.input=n,this.cases=i,this.outputs=r,this.otherwise=s}static parse(t,e){if(t.length<5)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return e.error("Expected an even number of arguments.");let n,i;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);const r={},s=[];for(let l=2;l<t.length-1;l+=2){let o=t[l];const a=t[l+1];Array.isArray(o)||(o=[o]);const c=e.concat(l);if(0===o.length)return c.error("Expected at least one branch label.");for(const t of o){if("number"!=typeof t&&"string"!=typeof t)return c.error("Branch labels must be numbers or strings.");if("number"==typeof t&&Math.abs(t)>Number.MAX_SAFE_INTEGER)return c.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof t&&Math.floor(t)!==t)return c.error("Numeric branch labels must be integer values.");if(n){if(c.checkSubtype(n,_e(t)))return null}else n=_e(t);if(void 0!==r[String(t)])return c.error("Branch labels must be unique.");r[String(t)]=s.length}const u=e.parse(a,l,i);if(!u)return null;i=i||u.type,s.push(u)}const o=e.parse(t[1],1,Yt);if(!o)return null;const a=e.parse(t[t.length-1],t.length-1,i);return a?"value"!==o.type.kind&&e.concat(1).checkSubtype(n,o.type)?null:new Tn(n,i,o,r,s,a):null}evaluate(t){const e=this.input.evaluate(t);return(_e(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}serialize(){const t=["match",this.input.serialize()],e=Object.keys(this.cases).sort(),n=[],i={};for(const s of e){const t=i[this.cases[s]];void 0===t?(i[this.cases[s]]=n.length,n.push([this.cases[s],[s]])):n[t][1].push(s)}const r=t=>"number"===this.inputType.kind?Number(t):t;for(const[s,o]of n)t.push(1===o.length?r(o[0]):o.map(r)),t.push(this.outputs[s].serialize());return t.push(this.otherwise.serialize()),t}}class En{constructor(t,e,n){this.type=t,this.branches=e,this.otherwise=n}static parse(t,e){if(t.length<4)return e.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!=0)return e.error("Expected an odd number of arguments.");let n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);const i=[];for(let s=1;s<t.length-1;s+=2){const r=e.parse(t[s],s,Xt);if(!r)return null;const o=e.parse(t[s+1],s+1,n);if(!o)return null;i.push([r,o]),n=n||o.type}const r=e.parse(t[t.length-1],t.length-1,n);return r?new En(n,i,r):null}evaluate(t){for(const[e,n]of this.branches)if(e.evaluate(t))return n.evaluate(t);return this.otherwise.evaluate(t)}eachChild(t){for(const[e,n]of this.branches)t(e),t(n);t(this.otherwise)}outputDefined(){return this.branches.every(([t,e])=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const t=["case"];return this.eachChild(e=>{t.push(e.serialize())}),t}}class In{constructor(t,e,n,i){this.type=t,this.input=e,this.beginIndex=n,this.endIndex=i}static parse(t,e){if(t.length<=2||t.length>=5)return e.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`);const n=e.parse(t[1],1,Yt),i=e.parse(t[2],2,Zt);if(!n||!i)return null;if(!oe(n.type,[ne(Yt),Wt,Yt]))return e.error(`Expected first argument to be of type array or string, but found ${ie(n.type)} instead`);if(4===t.length){const r=e.parse(t[3],3,Zt);return r?new In(n.type,n,i,r):null}return new In(n.type,n,i)}evaluate(t){const e=this.input.evaluate(t),n=this.beginIndex.evaluate(t);if(!ae(e,["string","array"]))throw new xe(`Expected first argument to be of type array or string, but found ${ie(_e(e))} instead.`);if(this.endIndex){const i=this.endIndex.evaluate(t);return e.slice(n,i)}return e.slice(n)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}function An(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function zn(t,e,n,i){return 0===i.compare(e,n)}function Dn(t,e,n){const i="=="!==t&&"!="!==t;return class r{constructor(t,e,n){this.type=Xt,this.lhs=t,this.rhs=e,this.collator=n,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}static parse(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");const n=t[0];let s=e.parse(t[1],1,Yt);if(!s)return null;if(!An(n,s.type))return e.concat(1).error(`"${n}" comparisons are not supported for type '${ie(s.type)}'.`);let o=e.parse(t[2],2,Yt);if(!o)return null;if(!An(n,o.type))return e.concat(2).error(`"${n}" comparisons are not supported for type '${ie(o.type)}'.`);if(s.type.kind!==o.type.kind&&"value"!==s.type.kind&&"value"!==o.type.kind)return e.error(`Cannot compare types '${ie(s.type)}' and '${ie(o.type)}'.`);i&&("value"===s.type.kind&&"value"!==o.type.kind?s=new we(o.type,[s]):"value"!==s.type.kind&&"value"===o.type.kind&&(o=new we(s.type,[o])));let a=null;if(4===t.length){if("string"!==s.type.kind&&"string"!==o.type.kind&&"value"!==s.type.kind&&"value"!==o.type.kind)return e.error("Cannot use collator to compare non-string types.");if(a=e.parse(t[3],3,Jt),!a)return null}return new r(s,o,a)}evaluate(r){const s=this.lhs.evaluate(r),o=this.rhs.evaluate(r);if(i&&this.hasUntypedArgument){const e=_e(s),n=_e(o);if(e.kind!==n.kind||"string"!==e.kind&&"number"!==e.kind)throw new xe(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${e.kind}, ${n.kind}) instead.`)}if(this.collator&&!i&&this.hasUntypedArgument){const t=_e(s),n=_e(o);if("string"!==t.kind||"string"!==n.kind)return e(r,s,o)}return this.collator?n(r,s,o,this.collator.evaluate(r)):e(r,s,o)}eachChild(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)}outputDefined(){return!0}serialize(){const e=[t];return this.eachChild(t=>{e.push(t.serialize())}),e}}}const Ln=Dn("==",function(t,e,n){return e===n},zn),Rn=Dn("!=",function(t,e,n){return e!==n},function(t,e,n,i){return!zn(0,e,n,i)}),Fn=Dn("<",function(t,e,n){return e<n},function(t,e,n,i){return i.compare(e,n)<0}),Bn=Dn(">",function(t,e,n){return e>n},function(t,e,n,i){return i.compare(e,n)>0}),Nn=Dn("<=",function(t,e,n){return e<=n},function(t,e,n,i){return i.compare(e,n)<=0}),Un=Dn(">=",function(t,e,n){return e>=n},function(t,e,n,i){return i.compare(e,n)>=0});class Hn{constructor(t,e,n,i,r){this.type=Wt,this.number=t,this.locale=e,this.currency=n,this.minFractionDigits=i,this.maxFractionDigits=r}static parse(t,e){if(3!==t.length)return e.error("Expected two arguments.");const n=e.parse(t[1],1,Zt);if(!n)return null;const i=t[2];if("object"!=typeof i||Array.isArray(i))return e.error("NumberFormat options argument must be an object.");let r=null;if(i.locale&&(r=e.parse(i.locale,1,Wt),!r))return null;let s=null;if(i.currency&&(s=e.parse(i.currency,1,Wt),!s))return null;let o=null;if(i["min-fraction-digits"]&&(o=e.parse(i["min-fraction-digits"],1,Zt),!o))return null;let a=null;return i["max-fraction-digits"]&&(a=e.parse(i["max-fraction-digits"],1,Zt),!a)?null:new Hn(n,r,s,o,a)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]}}class jn{constructor(t){this.type=Zt,this.input=t}static parse(t,e){if(2!==t.length)return e.error(`Expected 1 argument, but found ${t.length-1} instead.`);const n=e.parse(t[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?e.error(`Expected argument of type string or array, but found ${ie(n.type)} instead.`):new jn(n):null}evaluate(t){const e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new xe(`Expected value to be of type string or array, but found ${ie(_e(e))} instead.`)}eachChild(t){t(this.input)}outputDefined(){return!1}serialize(){const t=["length"];return this.eachChild(e=>{t.push(e.serialize())}),t}}const Vn={"==":Ln,"!=":Rn,">":Bn,"<":Fn,">=":Un,"<=":Nn,array:we,at:On,boolean:we,case:En,coalesce:Pn,collator:Ee,format:Ce,image:Pe,in:Sn,"index-of":kn,interpolate:wn,"interpolate-hcl":wn,"interpolate-lab":wn,length:jn,let:Mn,literal:ye,match:Tn,number:we,"number-format":Hn,object:we,slice:In,step:en,string:we,"to-boolean":Oe,"to-color":Oe,"to-number":Oe,"to-string":Oe,var:Ke,within:Ze};function $n(t,[e,n,i,r]){e=e.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);const s=r?r.evaluate(t):1,o=ge(e,n,i,s);if(o)throw new xe(o);return new ue(e/255*s,n/255*s,i/255*s,s)}function qn(t,e){return t in e}function Gn(t,e){const n=e[t];return void 0===n?null:n}function Zn(t){return{type:t}}function Wn(t){return{result:"success",value:t}}function Xn(t){return{result:"error",value:t}}function Qn(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function Kn(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Yn(t){return!!t.expression&&t.expression.interpolated}function Jn(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function ti(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function ei(t){return t}function ni(t,e){const n="color"===e.type,i=t.stops&&"object"==typeof t.stops[0][0],r=i||!(i||void 0!==t.property),s=t.type||(Yn(e)?"exponential":"interval");if(n&&((t=Ht({},t)).stops&&(t.stops=t.stops.map(t=>[t[0],ue.parse(t[1])])),t.default=ue.parse(t.default?t.default:e.default)),t.colorSpace&&"rgb"!==t.colorSpace&&!bn[t.colorSpace])throw new Error(`Unknown color space: ${t.colorSpace}`);let o,a,l;if("exponential"===s)o=oi;else if("interval"===s)o=si;else if("categorical"===s){o=ri,a=Object.create(null);for(const e of t.stops)a[e[0]]=e[1];l=typeof t.stops[0][0]}else{if("identity"!==s)throw new Error(`Unknown function type "${s}"`);o=ai}if(i){const n={},i=[];for(let e=0;e<t.stops.length;e++){const r=t.stops[e],s=r[0].zoom;void 0===n[s]&&(n[s]={zoom:s,type:t.type,property:t.property,default:t.default,stops:[]},i.push(s)),n[s].stops.push([r[0].value,r[1]])}const r=[];for(const t of i)r.push([n[t].zoom,ni(n[t],e)]);const s={name:"linear"};return{kind:"composite",interpolationType:s,interpolationFactor:wn.interpolationFactor.bind(void 0,s),zoomStops:r.map(t=>t[0]),evaluate:({zoom:n},i)=>oi({stops:r,base:t.base},e,n).evaluate(n,i)}}if(r){const n="exponential"===s?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return{kind:"camera",interpolationType:n,interpolationFactor:wn.interpolationFactor.bind(void 0,n),zoomStops:t.stops.map(t=>t[0]),evaluate:({zoom:n})=>o(t,e,n,a,l)}}return{kind:"source",evaluate(n,i){const r=i&&i.properties?i.properties[t.property]:void 0;return void 0===r?ii(t.default,e.default):o(t,e,r,a,l)}}}function ii(t,e,n){return void 0!==t?t:void 0!==e?e:void 0!==n?n:void 0}function ri(t,e,n,i,r){return ii(typeof n===r?i[n]:void 0,t.default,e.default)}function si(t,e,n){if("number"!==Jn(n))return ii(t.default,e.default);const i=t.stops.length;if(1===i)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[i-1][0])return t.stops[i-1][1];const r=tn(t.stops.map(t=>t[0]),n);return t.stops[r][1]}function oi(t,e,n){const i=void 0!==t.base?t.base:1;if("number"!==Jn(n))return ii(t.default,e.default);const r=t.stops.length;if(1===r)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[r-1][0])return t.stops[r-1][1];const s=tn(t.stops.map(t=>t[0]),n),o=function(t,e,n,i){const r=i-n,s=t-n;return 0===r?0:1===e?s/r:(Math.pow(e,s)-1)/(Math.pow(e,r)-1)}(n,i,t.stops[s][0],t.stops[s+1][0]),a=t.stops[s][1],l=t.stops[s+1][1];let c=rn[e.type]||ei;if(t.colorSpace&&"rgb"!==t.colorSpace){const e=bn[t.colorSpace];c=(t,n)=>e.reverse(e.interpolate(e.forward(t),e.forward(n),o))}return"function"==typeof a.evaluate?{evaluate(...t){const e=a.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==e&&void 0!==n)return c(e,n,o)}}:c(a,l,o)}function ai(t,e,n){return"color"===e.type?n=ue.parse(n):"formatted"===e.type?n=pe.fromString(n.toString()):"resolvedImage"===e.type?n=me.fromString(n.toString()):Jn(n)===e.type||"enum"===e.type&&e.values[n]||(n=void 0),ii(n,t.default,e.default)}Te.register(Vn,{error:[{kind:"error"},[Wt],(t,[e])=>{throw new xe(e.evaluate(t))}],typeof:[Wt,[Yt],(t,[e])=>ie(_e(e.evaluate(t)))],"to-rgba":[ne(Zt,4),[Qt],(t,[e])=>e.evaluate(t).toArray()],rgb:[Qt,[Zt,Zt,Zt],$n],rgba:[Qt,[Zt,Zt,Zt,Zt],$n],has:{type:Xt,overloads:[[[Wt],(t,[e])=>qn(e.evaluate(t),t.properties())],[[Wt,Kt],(t,[e,n])=>qn(e.evaluate(t),n.evaluate(t))]]},get:{type:Yt,overloads:[[[Wt],(t,[e])=>Gn(e.evaluate(t),t.properties())],[[Wt,Kt],(t,[e,n])=>Gn(e.evaluate(t),n.evaluate(t))]]},"feature-state":[Yt,[Wt],(t,[e])=>Gn(e.evaluate(t),t.featureState||{})],properties:[Kt,[],t=>t.properties()],"geometry-type":[Wt,[],t=>t.geometryType()],id:[Yt,[],t=>t.id()],zoom:[Zt,[],t=>t.globals.zoom],"heatmap-density":[Zt,[],t=>t.globals.heatmapDensity||0],"line-progress":[Zt,[],t=>t.globals.lineProgress||0],"sky-radial-progress":[Zt,[],t=>t.globals.skyRadialProgress||0],accumulated:[Yt,[],t=>void 0===t.globals.accumulated?null:t.globals.accumulated],"+":[Zt,Zn(Zt),(t,e)=>{let n=0;for(const i of e)n+=i.evaluate(t);return n}],"*":[Zt,Zn(Zt),(t,e)=>{let n=1;for(const i of e)n*=i.evaluate(t);return n}],"-":{type:Zt,overloads:[[[Zt,Zt],(t,[e,n])=>e.evaluate(t)-n.evaluate(t)],[[Zt],(t,[e])=>-e.evaluate(t)]]},"/":[Zt,[Zt,Zt],(t,[e,n])=>e.evaluate(t)/n.evaluate(t)],"%":[Zt,[Zt,Zt],(t,[e,n])=>e.evaluate(t)%n.evaluate(t)],ln2:[Zt,[],()=>Math.LN2],pi:[Zt,[],()=>Math.PI],e:[Zt,[],()=>Math.E],"^":[Zt,[Zt,Zt],(t,[e,n])=>Math.pow(e.evaluate(t),n.evaluate(t))],sqrt:[Zt,[Zt],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[Zt,[Zt],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[Zt,[Zt],(t,[e])=>Math.log(e.evaluate(t))],log2:[Zt,[Zt],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[Zt,[Zt],(t,[e])=>Math.sin(e.evaluate(t))],cos:[Zt,[Zt],(t,[e])=>Math.cos(e.evaluate(t))],tan:[Zt,[Zt],(t,[e])=>Math.tan(e.evaluate(t))],asin:[Zt,[Zt],(t,[e])=>Math.asin(e.evaluate(t))],acos:[Zt,[Zt],(t,[e])=>Math.acos(e.evaluate(t))],atan:[Zt,[Zt],(t,[e])=>Math.atan(e.evaluate(t))],min:[Zt,Zn(Zt),(t,e)=>Math.min(...e.map(e=>e.evaluate(t)))],max:[Zt,Zn(Zt),(t,e)=>Math.max(...e.map(e=>e.evaluate(t)))],abs:[Zt,[Zt],(t,[e])=>Math.abs(e.evaluate(t))],round:[Zt,[Zt],(t,[e])=>{const n=e.evaluate(t);return n<0?-Math.round(-n):Math.round(n)}],floor:[Zt,[Zt],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[Zt,[Zt],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[Xt,[Wt,Yt],(t,[e,n])=>t.properties()[e.value]===n.value],"filter-id-==":[Xt,[Yt],(t,[e])=>t.id()===e.value],"filter-type-==":[Xt,[Wt],(t,[e])=>t.geometryType()===e.value],"filter-<":[Xt,[Wt,Yt],(t,[e,n])=>{const i=t.properties()[e.value],r=n.value;return typeof i==typeof r&&i<r}],"filter-id-<":[Xt,[Yt],(t,[e])=>{const n=t.id(),i=e.value;return typeof n==typeof i&&n<i}],"filter->":[Xt,[Wt,Yt],(t,[e,n])=>{const i=t.properties()[e.value],r=n.value;return typeof i==typeof r&&i>r}],"filter-id->":[Xt,[Yt],(t,[e])=>{const n=t.id(),i=e.value;return typeof n==typeof i&&n>i}],"filter-<=":[Xt,[Wt,Yt],(t,[e,n])=>{const i=t.properties()[e.value],r=n.value;return typeof i==typeof r&&i<=r}],"filter-id-<=":[Xt,[Yt],(t,[e])=>{const n=t.id(),i=e.value;return typeof n==typeof i&&n<=i}],"filter->=":[Xt,[Wt,Yt],(t,[e,n])=>{const i=t.properties()[e.value],r=n.value;return typeof i==typeof r&&i>=r}],"filter-id->=":[Xt,[Yt],(t,[e])=>{const n=t.id(),i=e.value;return typeof n==typeof i&&n>=i}],"filter-has":[Xt,[Yt],(t,[e])=>e.value in t.properties()],"filter-has-id":[Xt,[],t=>null!==t.id()&&void 0!==t.id()],"filter-type-in":[Xt,[ne(Wt)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[Xt,[ne(Yt)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[Xt,[Wt,ne(Yt)],(t,[e,n])=>n.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[Xt,[Wt,ne(Yt)],(t,[e,n])=>function(t,e,n,i){for(;n<=i;){const r=n+i>>1;
vendor: 4,276 bytes, line 1
1if(e[r]===t)return!0;e[r]>t?i=r-1:n=r+1}return!1}(t.properties()[e.value],n.value,0,n.value.length-1)],all:{type:Xt,overloads:[[[Xt,Xt],(t,[e,n])=>e.evaluate(t)&&n.evaluate(t)],[Zn(Xt),(t,e)=>{for(const n of e)if(!n.evaluate(t))return!1;return!0}]]},any:{type:Xt,overloads:[[[Xt,Xt],(t,[e,n])=>e.evaluate(t)||n.evaluate(t)],[Zn(Xt),(t,e)=>{for(const n of e)if(n.evaluate(t))return!0;return!1}]]},"!":[Xt,[Xt],(t,[e])=>!e.evaluate(t)],"is-supported-script":[Xt,[Wt],(t,[e])=>{const n=t.globals&&t.globals.isSupportedScript;return!n||n(e.evaluate(t))}],upcase:[Wt,[Wt],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[Wt,[Wt],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[Wt,Zn(Yt),(t,e)=>e.map(e=>ve(e.evaluate(t))).join("")],"resolved-locale":[Wt,[Jt],(t,[e])=>e.evaluate(t).resolvedLocale()]});class li{constructor(t,e){this.expression=t,this._warningHistory={},this._evaluator=new ke,this._defaultValue=e?function(t){return"color"===t.type&&ti(t.default)?new ue(0,0,0,0):"color"===t.type?ue.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&&"enum"===e.type?e.values:null}evaluateWithoutErrorHandling(t,e,n,i,r,s){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=n,this._evaluator.canonical=i,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=s,this.expression.evaluate(this._evaluator)}evaluate(t,e,n,i,r,s){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=n||null,this._evaluator.canonical=i,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=s||null;try{const t=this.expression.evaluate(this._evaluator);if(null==t||"number"==typeof t&&t!=t)return this._defaultValue;if(this._enumValues&&!(t in this._enumValues))throw new xe(`Expected value to be one of ${Object.keys(this._enumValues).map(t=>JSON.stringify(t)).join(", ")}, but found ${JSON.stringify(t)} instead.`);return t}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}}}function ci(t){return Array.isArray(t)&&t.length>0&&"string"==typeof t[0]&&t[0]in Vn}function ui(t,e){const n=new Ye(Vn,[],e?function(t){const e={color:Qt,string:Wt,number:Zt,enum:Wt,boolean:Xt,formatted:te,resolvedImage:ee};return"array"===t.type?ne(e[t.value]||Yt,t.length):e[t.type]}(e):void 0),i=n.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return i?Wn(new li(i,e)):Xn(n.errors)}class hi{constructor(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Xe(e.expression)}evaluateWithoutErrorHandling(t,e,n,i,r,s){return this._styleExpression.evaluateWithoutErrorHandling(t,e,n,i,r,s)}evaluate(t,e,n,i,r,s){return this._styleExpression.evaluate(t,e,n,i,r,s)}}class di{constructor(t,e,n,i){this.kind=t,this.zoomStops=n,this._styleExpression=e,this.isStateDependent="camera"!==t&&!Xe(e.expression),this.interpolationType=i}evaluateWithoutErrorHandling(t,e,n,i,r,s){return this._styleExpression.evaluateWithoutErrorHandling(t,e,n,i,r,s)}evaluate(t,e,n,i,r,s){return this._styleExpression.evaluate(t,e,n,i,r,s)}interpolationFactor(t,e,n){return this.interpolationType?wn.interpolationFactor(this.interpolationType,t,e,n):0}}function pi(t,e){if("error"===(t=ui(t,e)).result)return t;const n=t.value.expression,i=We(n);if(!i&&!Qn(e))return Xn([new $t("","data expressions not supported")]);const r=Qe(n,["zoom"]);if(!r&&!Kn(e))return Xn([new $t("","zoom expressions not supported")]);const s=gi(n);return s||r?s instanceof $t?Xn([s]):s instanceof wn&&!Yn(e)?Xn([new $t("",'"interpolate" expressions cannot be used with this property')]):Wn(s?new di(i?"camera":"composite",t.value,s.labels,s instanceof wn?s.interpolation:void 0):new hi(i?"constant":"source",t.value)):Xn([new $t("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class mi{constructor(t,e){this._parameters=t,this._specification=e,Ht(this,ni(this._parameters,this._specification))}static deserialize(t){return new mi(t._parameters,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification}}}function gi(t){let e=null;if(t instanceof Mn)e=gi(t.result);
vendor: 4,654 bytes, line 1
1else if(t instanceof Pn){for(const n of t.args)if(e=gi(n),e)break}else(t instanceof en||t instanceof wn)&&t.input instanceof Te&&"zoom"===t.input.name&&(e=t);return e instanceof $t||t.eachChild(t=>{const n=gi(t);n instanceof $t?e=n:!e&&n?e=new $t("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&n&&e!==n&&(e=new $t("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}function fi(t){const e=t.key,n=t.value,i=t.valueSpec||{},r=t.objectElementValidators||{},s=t.style,o=t.styleSpec;let a=[];const l=Jn(n);if("object"!==l)return[new Nt(e,n,`object expected, ${l} found`)];for(const c in n){const t=c.split(".")[0],l=i[t]||i["*"];let u;if(r[t])u=r[t];else if(i[t])u=qi;else if(r["*"])u=r["*"];else{if(!i["*"]){a.push(new Nt(e,n[c],`unknown property "${c}"`));continue}u=qi}a=a.concat(u({key:(e?`${e}.`:e)+c,value:n[c],valueSpec:l,style:s,styleSpec:o,object:n,objectKey:c},n))}for(const c in i)r[c]||i[c].required&&void 0===i[c].default&&void 0===n[c]&&a.push(new Nt(e,n,`missing required property "${c}"`));return a}function _i(t){const e=t.value,n=t.valueSpec,i=t.style,r=t.styleSpec,s=t.key,o=t.arrayElementValidator||qi;if("array"!==Jn(e))return[new Nt(s,e,`array expected, ${Jn(e)} found`)];if(n.length&&e.length!==n.length)return[new Nt(s,e,`array length ${n.length} expected, length ${e.length} found`)];if(n["min-length"]&&e.length<n["min-length"])return[new Nt(s,e,`array length at least ${n["min-length"]} expected, length ${e.length} found`)];let a={type:n.value,values:n.values,minimum:n.minimum,maximum:n.maximum};r.$version<7&&(a.function=n.function),"object"===Jn(n.value)&&(a=n.value);let l=[];for(let c=0;c<e.length;c++)l=l.concat(o({array:e,arrayIndex:c,value:e[c],valueSpec:a,style:i,styleSpec:r,key:`${s}[${c}]`}));return l}function vi(t){const e=t.key,n=t.value,i=t.valueSpec;let r=Jn(n);if("number"===r&&n!=n&&(r="NaN"),"number"!==r)return[new Nt(e,n,`number expected, ${r} found`)];if("minimum"in i){let r=i.minimum;if("array"===Jn(i.minimum)&&(r=i.minimum[t.arrayIndex]),n<r)return[new Nt(e,n,`${n} is less than the minimum value ${r}`)]}if("maximum"in i){let r=i.maximum;if("array"===Jn(i.maximum)&&(r=i.maximum[t.arrayIndex]),n>r)return[new Nt(e,n,`${n} is greater than the maximum value ${r}`)]}return[]}function yi(t){const e=t.valueSpec,n=jt(t.value.type);let i,r,s,o={};const a="categorical"!==n&&void 0===t.value.property,l=!a,c="array"===Jn(t.value.stops)&&"array"===Jn(t.value.stops[0])&&"object"===Jn(t.value.stops[0][0]),u=fi({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===n)return[new Nt(t.key,t.value,'identity function may not have a "stops" property')];let e=[];const i=t.value;return e=e.concat(_i({key:t.key,value:i,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:h})),"array"===Jn(i)&&0===i.length&&e.push(new Nt(t.key,i,"array must have at least one stop")),e},default:function(t){return qi({key:t.key,value:t.value,valueSpec:e,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===n&&a&&u.push(new Nt(t.key,t.value,'missing required property "property"')),"identity"===n||t.value.stops||u.push(new Nt(t.key,t.value,'missing required property "stops"')),"exponential"===n&&t.valueSpec.expression&&!Yn(t.valueSpec)&&u.push(new Nt(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!Qn(t.valueSpec)?u.push(new Nt(t.key,t.value,"property functions not supported")):a&&!Kn(t.valueSpec)&&u.push(new Nt(t.key,t.value,"zoom functions not supported"))),"categorical"!==n&&!c||void 0!==t.value.property||u.push(new Nt(t.key,t.value,'"property" property is required')),u;function h(t){let n=[];const i=t.value,a=t.key;if("array"!==Jn(i))return[new Nt(a,i,`array expected, ${Jn(i)} found`)];if(2!==i.length)return[new Nt(a,i,`array length 2 expected, length ${i.length} found`)];if(c){if("object"!==Jn(i[0]))return[new Nt(a,i,`object expected, ${Jn(i[0])} found`)];if(void 0===i[0].zoom)return[new Nt(a,i,"object stop key must have zoom")];if(void 0===i[0].value)return[new Nt(a,i,"object stop key must have value")];if(s&&s>jt(i[0].zoom))return[new Nt(a,i[0].zoom,"stop zoom values must appear in ascending order")];jt(i[0].zoom)!==s&&(s=jt(i[0].zoom),r=void 0,o={}),n=n.concat(fi({key:`${a}[0]`,value:i[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:vi,value:d}}))}else n=n.concat(d({key:`${a}[0]`,value:i[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},i));return ci(Vt(i[1]))?n.concat([new Nt(`${a}
1[1]`,i[1],"expressions are not allowed in function stops.")]):n.concat(qi({key:`${a}[1]`,value:i[1],valueSpec:e,style:t.style,styleSpec:t.styleSpec}))}function d(t,s){const a=Jn(t.value),l=jt(t.value),c=null!==t.value?t.value:s;if(i){if(a!==i)return[new Nt(t.key,c,`${a} stop domain type must match previous stop domain type ${i}`)]}else i=a;if("number"!==a&&"string"!==a&&"boolean"!==a)return[new Nt(t.key,c,"stop domain value must be a number, string, or boolean")];if("number"!==a&&"categorical"!==n){let i=`number expected, ${a} found`;return Qn(e)&&void 0===n&&(i+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Nt(t.key,c,i)]}return"categorical"!==n||"number"!==a||isFinite(l)&&Math.floor(l)===l?"categorical"!==n&&"number"===a&&void 0!==r&&l<r?[new Nt(t.key,c,"stop domain values must appear in ascending order")]:(r=l,"categorical"===n&&l in o?[new Nt(t.key,c,"stop domain values must be unique")]:(o[l]=!0,[])):[new Nt(t.key,c,`integer expected, found ${l}`)]}}function xi(t){const e=("property"===t.expressionContext?pi:ui)(Vt(t.value),t.valueSpec);if("error"===e.result)return e.value.map(e=>new Nt(`${t.key}${e.key}`,t.value,e.message));const n=e.value.expression||e.value._styleExpression.expression;if("property"===t.expressionContext&&"text-font"===t.propertyKey&&!n.outputDefined())return[new Nt(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===t.expressionContext&&"layout"===t.propertyType&&!Xe(n))return[new Nt(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext&&!Xe(n))return[new Nt(t.key,t.value,'"feature-state" data expressions are not supported with filters.')];if(t.expressionContext&&0===t.expressionContext.indexOf("cluster")){if(!Qe(n,["zoom","feature-state"]))return[new Nt(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===t.expressionContext&&!We(n))return[new Nt(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function bi(t){const e=t.key,n=t.value,i=t.valueSpec,r=[];return Array.isArray(i.values)?-1===i.values.indexOf(jt(n))&&r.push(new Nt(e,n,`expected one of [${i.values.join(", ")}], ${JSON.stringify(n)} found`)):-1===Object.keys(i.values).indexOf(jt(n))&&r.push(new Nt(e,n,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(n)} found`)),r}function wi(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(const e of t.slice(1))if(!wi(e)&&"boolean"!=typeof e)return!1;return!0;default:return!0}}const Ci={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Pi(t){if(null==t)return{filter:()=>!0,needGeometry:!1};wi(t)||(t=Si(t));const e=ui(t,Ci);if("error"===e.result)throw new Error(e.value.map(t=>`${t.key}: ${t.message}`).join(", "));return{filter:(t,n,i)=>e.value.evaluate(t,n,{},i),needGeometry:Oi(t)}}function Mi(t,e){return t<e?-1:t>e?1:0}function Oi(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(let e=1;e<t.length;e++)if(Oi(t[e]))return!0;return!1}function Si(t){if(!t)return!0;const e=t[0];return t.length<=1?"any"!==e:"=="===e?ki(t[1],t[2],"=="):"!="===e?Ii(ki(t[1],t[2],"==")):"<"===e||">"===e||"<="===e||">="===e?ki(t[1],t[2],e):"any"===e?(n=t.slice(1),["any"].concat(n.map(Si))):"all"===e?["all"].concat(t.slice(1).map(Si)):"none"===e?["all"].concat(t.slice(1).map(Si).map(Ii)):"in"===e?Ti(t[1],t.slice(2)):"!in"===e?Ii(Ti(t[1],t.slice(2))):"has"===e?Ei(t[1]):"!has"===e?Ii(Ei(t[1])):"within"!==e||t;var n}function ki(t,e,n){switch(t){case"$type":return[`filter-type-${n}`,e];case"$id":return[`filter-id-${n}`,e];default:return[`filter-${n}`,t,e]}}function Ti(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(t=>typeof t!=typeof e[0])?["filter-in-large",t,["literal",e.sort(Mi)]]:["filter-in-small",t,["literal",e]]}}function Ei(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Ii(t){return["!",t]}function Ai(t){return wi(Vt(t.value))?xi(Ht({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):zi(t)}function zi(t){const e=t.value,n=t.key;if("array"!==Jn(e))return[new Nt(n,e,`array expected, ${Jn(e)} found`)];const i=t.styleSpec;let r,s=[];if(e.length<1)return[new Nt(n,e,"filter array must have at least 1 element")];switch(s=s.concat(bi({key:`${n}[0]`,value:e[0],valueSpec:i.filter_operator,style:t.style,styleSpec:t.styleSpec})),jt(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&"$type"===jt(e[1])&&s.push(new Nt(n,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":3!==e.length&&s.push(new Nt(n,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(r=Jn(e[1]),"string"!==r&&s.push(new Nt(`${n}[1]`,e[1],`string expected, ${r} found`)));for(let o=2;o<e.length;o++)r=Jn(e[o]),"$type"===jt(e[1])?s=s.concat(bi({key:`${n}[${o}]`,value:e[o],valueSpec:i.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==r&&"number"!==r&&"boolean"!==r&&s.push(new Nt(`${n}[${o}
vendor: 5,089 bytes, line 1
1]`,e[o],`string, number, or boolean expected, ${r} found`));break;case"any":case"all":case"none":for(let i=1;i<e.length;i++)s=s.concat(zi({key:`${n}[${i}]`,value:e[i],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":r=Jn(e[1]),2!==e.length?s.push(new Nt(n,e,`filter array for "${e[0]}" operator must have 2 elements`)):"string"!==r&&s.push(new Nt(`${n}[1]`,e[1],`string expected, ${r} found`));break;case"within":r=Jn(e[1]),2!==e.length?s.push(new Nt(n,e,`filter array for "${e[0]}" operator must have 2 elements`)):"object"!==r&&s.push(new Nt(`${n}[1]`,e[1],`object expected, ${r} found`))}return s}function Di(t,e){const n=t.key,i=t.style,r=t.styleSpec,s=t.value,o=t.objectKey,a=r[`${e}_${t.layerType}`];if(!a)return[];const l=o.match(/^(.*)-transition$/);if("paint"===e&&l&&a[l[1]]&&a[l[1]].transition)return qi({key:n,value:s,valueSpec:r.transition,style:i,styleSpec:r});const c=t.valueSpec||a[o];if(!c)return[new Nt(n,s,`unknown property "${o}"`)];let u;if("string"===Jn(s)&&Qn(c)&&!c.tokens&&(u=/^{([^}]+)}$/.exec(s)))return[new Nt(n,s,`"${o}" does not support interpolation syntax\nUse an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(u[1])} }\`.`)];const h=[];return"symbol"===t.layerType&&("text-field"===o&&i&&!i.glyphs&&h.push(new Nt(n,s,'use of "text-field" requires a style "glyphs" property')),"text-font"===o&&ti(Vt(s))&&"identity"===jt(s.type)&&h.push(new Nt(n,s,'"text-font" does not support identity functions'))),h.concat(qi({key:t.key,value:s,valueSpec:c,style:i,styleSpec:r,expressionContext:"property",propertyType:e,propertyKey:o}))}function Li(t){return Di(t,"paint")}function Ri(t){return Di(t,"layout")}function Fi(t){let e=[];const n=t.value,i=t.key,r=t.style,s=t.styleSpec;n.type||n.ref||e.push(new Nt(i,n,'either "type" or "ref" is required'));let o=jt(n.type);const a=jt(n.ref);if(n.id){const s=jt(n.id);for(let o=0;o<t.arrayIndex;o++){const t=r.layers[o];jt(t.id)===s&&e.push(new Nt(i,n.id,`duplicate layer id "${n.id}", previously used at line ${t.id.__line__}`))}}if("ref"in n){let t;["type","source","source-layer","filter","layout"].forEach(t=>{t in n&&e.push(new Nt(i,n[t],`"${t}" is prohibited for ref layers`))}),r.layers.forEach(e=>{jt(e.id)===a&&(t=e)}),t?t.ref?e.push(new Nt(i,n.ref,"ref cannot reference another ref layer")):o=jt(t.type):e.push(new Nt(i,n.ref,`ref layer "${a}" not found`))}else if("background"!==o&&"sky"!==o)if(n.source){const t=r.sources&&r.sources[n.source],s=t&&jt(t.type);t?"vector"===s&&"raster"===o?e.push(new Nt(i,n.source,`layer "${n.id}" requires a raster source`)):"raster"===s&&"raster"!==o?e.push(new Nt(i,n.source,`layer "${n.id}" requires a vector source`)):"vector"!==s||n["source-layer"]?"raster-dem"===s&&"hillshade"!==o?e.push(new Nt(i,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==o||!n.paint||!n.paint["line-gradient"]||"geojson"===s&&t.lineMetrics||e.push(new Nt(i,n,`layer "${n.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new Nt(i,n,`layer "${n.id}" must specify a "source-layer"`)):e.push(new Nt(i,n.source,`source "${n.source}" not found`))}else e.push(new Nt(i,n,'missing required property "source"'));return e=e.concat(fi({key:i,value:n,valueSpec:s.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":()=>[],type:()=>qi({key:`${i}.type`,value:n.type,valueSpec:s.layer.type,style:t.style,styleSpec:t.styleSpec,object:n,objectKey:"type"}),filter:Ai,layout:t=>fi({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":t=>Ri(Ht({layerType:o},t))}}),paint:t=>fi({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":t=>Li(Ht({layerType:o},t))}})}})),e}function Bi(t){const e=t.value,n=t.key,i=Jn(e);return"string"!==i?[new Nt(n,e,`string expected, ${i} found`)]:[]}const Ni={promoteId:function({key:t,value:e}){if("string"===Jn(e))return Bi({key:t,value:e});{const n=[];for(const i in e)n.push(...Bi({key:`${t}.${i}`,value:e[i]}));return n}}};function Ui(t){const e=t.value,n=t.key,i=t.styleSpec,r=t.style;if(!e.type)return[new Nt(n,e,'"type" is required')];const s=jt(e.type);let o;switch(s){case"vector":case"raster":case"raster-dem":return o=fi({key:n,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:t.style,styleSpec:i,objectElementValidators:Ni}),o;case"geojson":if(o=fi({key:n,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,objectElementValidators:Ni}),e.cluster)for(const t in e.clusterProperties){const[i,r]=e.clusterProperties[t],s="string"==typeof i?[i,["accumulated"],["get",t]]:i;o.push(...xi({key:`${n}.${t}.map`,value:r,expressionContext:"cluster-map"})),o.push(...xi({key:`${n}.${t}.reduce`,value:s,expressionContext:"cluster-reduce"}))}return o;case"video":return fi({key:n,value:e,valueSpec:i.source_video,style:r,styleSpec:i});case"image":return fi({key:n,value:e,valueSpec:i.source_image,style:r,styleSpec:i});case"canvas":return[new Nt(n,null,"Please use runtime APIs to add canvas sources, rather than 
1including them in stylesheets.","source.canvas")];default:return bi({key:`${n}.type`,value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:r,styleSpec:i})}}function Hi(t){const e=t.value,n=t.styleSpec,i=n.light,r=t.style;let s=[];const o=Jn(e);if(void 0===e)return s;if("object"!==o)return s=s.concat([new Nt("light",e,`object expected, ${o} found`)]),s;for(const a in e){const t=a.match(/^(.*)-transition$/);s=s.concat(t&&i[t[1]]&&i[t[1]].transition?qi({key:a,value:e[a],valueSpec:n.transition,style:r,styleSpec:n}):i[a]?qi({key:a,value:e[a],valueSpec:i[a],style:r,styleSpec:n}):[new Nt(a,e[a],`unknown property "${a}"`)])}return s}function ji(t){const e=t.value,n=t.key,i=t.style,r=t.styleSpec,s=r.terrain;let o=[];const a=Jn(e);if(void 0===e)return o;if("object"!==a)return o=o.concat([new Nt("terrain",e,`object expected, ${a} found`)]),o;for(const l in e){const t=l.match(/^(.*)-transition$/);o=o.concat(t&&s[t[1]]&&s[t[1]].transition?qi({key:l,value:e[l],valueSpec:r.transition,style:i,styleSpec:r}):s[l]?qi({key:l,value:e[l],valueSpec:s[l],style:i,styleSpec:r}):[new Nt(l,e[l],`unknown property "${l}"`)])}if(e.source){const t=i.sources&&i.sources[e.source],r=t&&jt(t.type);t?"raster-dem"!==r&&o.push(new Nt(n,e.source,`terrain cannot be used with a source of type ${r}, it only be used with a "raster-dem" source type`)):o.push(new Nt(n,e.source,`source "${e.source}" not found`))}else o.push(new Nt(n,e,'terrain is missing required property "source"'));return o}function Vi(t){const e=t.value,n=t.style,i=t.styleSpec,r=i.fog;let s=[];const o=Jn(e);if(void 0===e)return s;if("object"!==o)return s=s.concat([new Nt("fog",e,`object expected, ${o} found`)]),s;e.range&&!ci(Vt(e.range))&&e.range[0]>=e.range[1]&&(s=s.concat([new Nt("fog",e,"fog.range[0] can't be greater than or equal to fog.range[1]")]));for(const a in e){const t=a.match(/^(.*)-transition$/);s=s.concat(t&&r[t[1]]&&r[t[1]].transition?qi({key:a,value:e[a],valueSpec:i.transition,style:n,styleSpec:i}):r[a]?qi({key:a,value:e[a],valueSpec:r[a],style:n,styleSpec:i}):[new Nt(a,e[a],`unknown property "${a}"`)])}return s}const $i={"*":()=>[],array:_i,boolean:function(t){const e=t.value,n=t.key,i=Jn(e);return"boolean"!==i?[new Nt(n,e,`boolean expected, ${i} found`)]:[]},number:vi,color:function(t){const e=t.key,n=t.value,i=Jn(n);return"string"!==i?[new Nt(e,n,`color expected, ${i} found`)]:null===ce.parseCSSColor(n)?[new Nt(e,n,`color expected, "${n}" found`)]:[]},constants:Ut,enum:bi,filter:Ai,function:yi,layer:Fi,object:fi,source:Ui,light:Hi,terrain:ji,fog:Vi,string:Bi,formatted:function(t){return 0===Bi(t).length?[]:xi(t)},resolvedImage:function(t){return 0===Bi(t).length?[]:xi(t)}};function qi(t){const e=t.value,n=t.valueSpec,i=t.styleSpec;return n.expression&&ti(jt(e))?yi(t):n.expression&&ci(Vt(e))?xi(t):n.type&&$i[n.type]?$i[n.type](t):fi(Ht({},t,{valueSpec:n.type?i[n.type]:n}))}function Gi(t){const e=t.value,n=t.key,i=Bi(t);return i.length||(-1===e.indexOf("{fontstack}")&&i.push(new Nt(n,e,'"glyphs" url must include a "{fontstack}" token')),-1===e.indexOf("{range}")&&i.push(new Nt(n,e,'"glyphs" url must include a "{range}" token'))),i}function Zi(t,e=Bt){let n=[];return n=n.concat(qi({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:Gi,"*":()=>[]}})),t.constants&&(n=n.concat(Ut({key:"constants",value:t.constants,style:t,styleSpec:e}))),Wi(n)}function Wi(t){return[].concat(t).sort((t,e)=>t.line-e.line)}function Xi(t){return function(...e){return Wi(t.apply(this,e))}}Zi.source=Xi(Ui),Zi.light=Xi(Hi),Zi.terrain=Xi(ji),Zi.fog=Xi(Vi),Zi.layer=Xi(Fi),Zi.filter=Xi(Ai),Zi.paintProperty=Xi(Li),Zi.layoutProperty=Xi(Ri);const Qi=Zi,Ki=Qi.light,Yi=Qi.fog,Ji=Qi.paintProperty,tr=Qi.layoutProperty;function er(t,e){let n=!1;if(e&&e.length)for(const i of e)t.fire(new Rt(new Error(i.message))),n=!0;return n}var nr=ir;function ir(t,e,n){var i=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var r=new Int32Array(this.arrayBuffer);t=r[0],this.d=(e=r[1])+2*(n=r[2]);for(var s=0;s<this.d*this.d;s++){var o=r[3+s],a=r[3+s+1];i.push(o===a?null:r.subarray(o,a))}var l=r[3+i.length+1];this.keys=r.subarray(r[3+i.length],l),this.bboxes=r.subarray(l),this.insert=this._insertReadonly}else{this.d=e+2*n;for(var c=0;c<this.d*this.d;c++)i.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=n,this.scale=e/t,this.uid=0;var u=n/e*t;this.min=-u,this.max=t+u}
1ir.prototype.insert=function(t,e,n,i,r){this._forEachCell(e,n,i,r,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(n),this.bboxes.push(i),this.bboxes.push(r)},ir.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},ir.prototype._insertCell=function(t,e,n,i,r,s){this.cells[r].push(s)},ir.prototype.query=function(t,e,n,i,r){var s=this.min,o=this.max;if(t<=s&&e<=s&&o<=n&&o<=i&&!r)return Array.prototype.slice.call(this.keys);var a=[];return this._forEachCell(t,e,n,i,this._queryCell,a,{},r),a},ir.prototype._queryCell=function(t,e,n,i,r,s,o,a){var l=this.cells[r];if(null!==l)for(var c=this.keys,u=this.bboxes,h=0;h<l.length;h++){var d=l[h];if(void 0===o[d]){var p=4*d;(a?a(u[p+0],u[p+1],u[p+2],u[p+3]):t<=u[p+2]&&e<=u[p+3]&&n>=u[p+0]&&i>=u[p+1])?(o[d]=!0,s.push(c[d])):o[d]=!1}}},ir.prototype._forEachCell=function(t,e,n,i,r,s,o,a){for(var l=this._convertToCellCoord(t),c=this._convertToCellCoord(e),u=this._convertToCellCoord(n),h=this._convertToCellCoord(i),d=l;d<=u;d++)for(var p=c;p<=h;p++){var m=this.d*p+d;if((!a||a(this._convertFromCellCoord(d),this._convertFromCellCoord(p),this._convertFromCellCoord(d+1),this._convertFromCellCoord(p+1)))&&r.call(this,t,e,n,i,m,s,o,a))return}},ir.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},ir.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},ir.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,n=0,i=0;i<this.cells.length;i++)n+=this.cells[i].length;var r=new Int32Array(e+n+this.keys.length+this.bboxes.length);r[0]=this.extent,r[1]=this.n,r[2]=this.padding;for(var s=e,o=0;o<t.length;o++){var a=t[o];r[3+o]=s,r.set(a,s),s+=a.length}return r[3+t.length]=s,r.set(this.keys,s),r[3+t.length+1]=s+=this.keys.length,r.set(this.bboxes,s),s+=this.bboxes.length,r.buffer};const{ImageData:rr,ImageBitmap:sr}=o,or={};function ar(t,e,n={}){Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),or[t]={klass:e,omit:n.omit||[],shallow:n.shallow||[]}}ar("Object",Object),nr.serialize=function(t,e){const n=t.toArrayBuffer();return e&&e.push(n),{buffer:n}},nr.deserialize=function(t){return new nr(t.buffer)},ar("Grid",nr),ar("Color",ue),ar("Error",Error),ar("ResolvedImage",me),ar("StylePropertyFunction",mi),ar("StyleExpression",li,{omit:["_evaluator"]}),ar("ZoomDependentExpression",di),ar("ZoomConstantExpression",hi),ar("CompoundExpression",Te,{omit:["_evaluate"]});for(const Td in Vn)Vn[Td]._classRegistryKey||ar(`Expression_${Td}`,Vn[Td]);function lr(t){return t&&"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}function cr(t){return sr&&t instanceof sr}function ur(t,e){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(lr(t)||cr(t))return e&&e.push(t),t;if(ArrayBuffer.isView(t)){const n=t;return e&&e.push(n.buffer),n}if(t instanceof rr)return e&&e.push(t.data.buffer),t;if(Array.isArray(t)){const n=[];for(const i of t)n.push(ur(i,e));return n}if("object"==typeof t){const n=t.constructor,i=n._classRegistryKey;if(!i)throw new Error("can't serialize object of unregistered class");const r=n.serialize?n.serialize(t,e):{};if(!n.serialize){for(const n in t){if(!t.hasOwnProperty(n))continue;if(or[i].omit.indexOf(n)>=0)continue;const s=t[n];r[n]=or[i].shallow.indexOf(n)>=0?s:ur(s,e)}t instanceof Error&&(r.message=t.message)}if(r.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==i&&(r.$name=i),r}throw new Error("can't serialize object of type "+typeof t)}function hr(t){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||lr(t)||cr(t)||ArrayBuffer.isView(t)||t instanceof rr)return t;if(Array.isArray(t))return t.map(hr);if("object"==typeof t){const e=t.$name||"Object",{klass:n}=or[e];if(!n)throw new Error(`can't deserialize unregistered class ${e}`);if(n.deserialize)return n.deserialize(t);const i=Object.create(n.prototype);for(const r of Object.keys(t)){if("$name"===r)continue;const n=t[r];
vendor: 18,305 bytes, line 1
1i[r]=or[e].shallow.indexOf(r)>=0?n:hr(n)}return i}throw new Error("can't deserialize object of type "+typeof t)}class dr{constructor(){this.first=!0}update(t,e){const n=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=e):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=e),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=n,!0))}}const pr=t=>t>=1536&&t<=1791,mr=t=>t>=1872&&t<=1919,gr=t=>t>=2208&&t<=2303,fr=t=>t>=11904&&t<=12031,_r=t=>t>=12032&&t<=12255,vr=t=>t>=12272&&t<=12287,yr=t=>t>=12288&&t<=12351,xr=t=>t>=12352&&t<=12447,br=t=>t>=12448&&t<=12543,wr=t=>t>=12544&&t<=12591,Cr=t=>t>=12704&&t<=12735,Pr=t=>t>=12736&&t<=12783,Mr=t=>t>=12784&&t<=12799,Or=t=>t>=12800&&t<=13055,Sr=t=>t>=13056&&t<=13311,kr=t=>t>=13312&&t<=19903,Tr=t=>t>=19968&&t<=40959,Er=t=>t>=40960&&t<=42127,Ir=t=>t>=42128&&t<=42191,Ar=t=>t>=44032&&t<=55215,zr=t=>t>=63744&&t<=64255,Dr=t=>t>=64336&&t<=65023,Lr=t=>t>=65040&&t<=65055,Rr=t=>t>=65072&&t<=65103,Fr=t=>t>=65104&&t<=65135,Br=t=>t>=65136&&t<=65279,Nr=t=>t>=65280&&t<=65519;function Ur(t){for(const e of t)if(Vr(e.charCodeAt(0)))return!0;return!1}function Hr(t){for(const e of t)if(!jr(e.charCodeAt(0)))return!1;return!0}function jr(t){return!(pr(t)||mr(t)||gr(t)||Dr(t)||Br(t))}function Vr(t){return!(746!==t&&747!==t&&(t<4352||!(Cr(t)||wr(t)||Rr(t)&&!(t>=65097&&t<=65103)||zr(t)||Sr(t)||fr(t)||Pr(t)||!(!yr(t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||kr(t)||Tr(t)||Or(t)||(t=>t>=12592&&t<=12687)(t)||(t=>t>=43360&&t<=43391)(t)||(t=>t>=55216&&t<=55295)(t)||(t=>t>=4352&&t<=4607)(t)||Ar(t)||xr(t)||vr(t)||(t=>t>=12688&&t<=12703)(t)||_r(t)||Mr(t)||br(t)&&12540!==t||!(!Nr(t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!Fr(t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||(t=>t>=5120&&t<=5759)(t)||(t=>t>=6320&&t<=6399)(t)||Lr(t)||(t=>t>=19904&&t<=19967)(t)||Er(t)||Ir(t))))}function $r(t){return!(Vr(t)||function(t){return!!((t=>t>=128&&t<=255)(t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||(t=>t>=8192&&t<=8303)(t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||(t=>t>=8448&&t<=8527)(t)||(t=>t>=8528&&t<=8591)(t)||(t=>t>=8960&&t<=9215)(t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||(t=>t>=9216&&t<=9279)(t)&&9251!==t||(t=>t>=9280&&t<=9311)(t)||(t=>t>=9312&&t<=9471)(t)||(t=>t>=9632&&t<=9727)(t)||(t=>t>=9728&&t<=9983)(t)&&!(t>=9754&&t<=9759)||(t=>t>=11008&&t<=11263)(t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||yr(t)||br(t)||(t=>t>=57344&&t<=63743)(t)||Rr(t)||Fr(t)||Nr(t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)}(t))}function qr(t){return t>=1424&&t<=2303||Dr(t)||Br(t)}function Gr(t,e){return!(!e&&qr(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||(t=>t>=6016&&t<=6143)(t))}function Zr(t){for(const e of t)if(qr(e.charCodeAt(0)))return!0;return!1}const Wr="deferred",Xr="loading",Qr="loaded";let Kr=null,Yr="unavailable",Jr=null;const ts=function(t){t&&"string"==typeof t&&t.indexOf("NetworkError")>-1&&(Yr="error"),Kr&&Kr(t)};function es(){ns.fire(new Lt("pluginStateChange",{pluginStatus:Yr,pluginURL:Jr}))}const ns=new Ft,is=function(){return Yr},rs=function(){if(Yr!==Wr||!Jr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Yr=Xr,es(),Jr&&Mt({url:Jr},t=>{t?ts(t):(Yr=Qr,es())})},ss={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Yr===Qr||null!=ss.applyArabicShaping,isLoading:()=>Yr===Xr,setState(t){Yr=t.pluginStatus,Jr=t.pluginURL},isParsed:()=>null!=ss.applyArabicShaping&&null!=ss.processBidirectionalText&&null!=ss.processStyledBidirectionalText,getPluginURL:()=>Jr};class os{constructor(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new dr,this.transition={})}isSupportedScript(t){return function(t,e){for(const n of t)if(!Gr(n.charCodeAt(0),e))return!1;return!0}(t,ss.isLoaded())}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const t=this.zoom,e=t-Math.floor(t),n=this.crossFadingFactor();return t>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*e}}}class as{constructor(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(ti(t))return new mi(t,e);if(ci(t)){const n=pi(t,e);if("error"===n.result)throw new Error(n.value.map(t=>`${t.key}: ${t.message}`).join(", "));return n.value}{let n=t;return"string"==typeof t&&"color"===e.type&&(n=ue.parse(t)),{kind:"constant",evaluate:()=>n}}}(void 0===e?t.specification.default:e,t.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(t,e,n){return this.property.possiblyEvaluate(this,t,e,n)}}class ls{constructor(t){this.property=t,this.value=new as(t,void 0)}transitioned(t,e){return new us(this.property,this.value,e,y({},t.transition,this.transition),t.now)}untransitioned(){return new us(this.property,this.value,null,{},0)}}class cs{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)}getValue(t){return T(this._values[t].value.value)}setValue(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new ls(this._values[t].property)),this._values[t].value=new as(this._values[t].property,null===e?void 0:T(e))}getTransition(t){return T(this._values[t].transition)}setTransition(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new ls(this._values[t].property)),this._values[t].transition=T(e)||void 0}serialize(){const t={};for(const e of Object.keys(this._values)){const n=this.getValue(e);void 0!==n&&(t[e]=n);const i=this.getTransition(e);void 0!==i&&(t[`${e}-transition`]=i)}return t}transitioned(t,e){const n=new hs(this._properties);for(const i of Object.keys(this._values))n._values[i]=this._values[i].transitioned(t,e._values[i]);return n}untransitioned(){const t=new hs(this._properties);for(const e of Object.keys(this._values))t._values[e]=this._values[e].untransitioned();return t}}class us{constructor(t,e,n,i,r){const s=i.delay||0,o=i.duration||0;r=r||0,this.property=t,this.value=e,this.begin=r+s,this.end=this.begin+o,t.specification.transition&&(i.delay||i.duration)&&(this.prior=n)}possiblyEvaluate(t,e,n){const i=t.now||0,r=this.value.possiblyEvaluate(t,e,n),s=this.prior;if(s){if(i>this.end)return this.prior=null,r;if(this.value.isDataDriven())return this.prior=null,r;if(i<this.begin)return s.possiblyEvaluate(t,e,n);{const o=(i-this.begin)/(this.end-this.begin);return this.property.interpolate(s.possiblyEvaluate(t,e,n),r,d(o))}}return r}}class hs{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)}possiblyEvaluate(t,e,n){const i=new ms(this._properties);for(const r of Object.keys(this._values))i._values[r]=this._values[r].possiblyEvaluate(t,e,n);return i}hasTransition(){for(const t of Object.keys(this._values))if(this._values[t].prior)return!0;return!1}}class ds{constructor(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)}getValue(t){return T(this._values[t].value)}setValue(t,e){this._values[t]=new as(this._values[t].property,null===e?void 0:T(e))}serialize(){const t={};for(const e of Object.keys(this._values)){const n=this.getValue(e);void 0!==n&&(t[e]=n)}return t}possiblyEvaluate(t,e,n){const i=new ms(this._properties);for(const r of Object.keys(this._values))i._values[r]=this._values[r].possiblyEvaluate(t,e,n);return i}}class ps{constructor(t,e,n){this.property=t,this.value=e,this.parameters=n}isConstant(){return"constant"===this.value.kind}constantOr(t){return"constant"===this.value.kind?this.value.value:t}evaluate(t,e,n,i){return this.property.evaluate(this.value,this.parameters,t,e,n,i)}}class ms{constructor(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)}get(t){return this._values[t]}}class gs{constructor(t){this.specification=t}possiblyEvaluate(t,e){return t.expression.evaluate(e)}interpolate(t,e,n){const i=rn[this.specification.type];return i?i(t,e,n):t}}class fs{constructor(t,e){this.specification=t,this.overrides=e}possiblyEvaluate(t,e,n,i){return new ps(this,"constant"===t.expression.kind||"camera"===t.expression.kind?{kind:"constant",value:t.expression.evaluate(e,null,{},n,i)}:t.expression,e)}interpolate(t,e,n){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new ps(this,{kind:"constant",value:void 0},t.parameters);const i=rn[this.specification.type];return i?new ps(this,{kind:"constant",value:i(t.value.value,e.value.value,n)},t.parameters):t}evaluate(t,e,n,i,r,s){return"constant"===t.kind?t.value:t.evaluate(e,n,i,r,s)}}class _s extends fs{possiblyEvaluate(t,e,n,i){if(void 0===t.value)return new ps(this,{kind:"constant",value:void 0},e);if("constant"===t.expression.kind){const r=t.expression.evaluate(e,null,{},n,i),s="resolvedImage"===t.property.specification.type&&"string"!=typeof r?r.name:r,o=this._calculate(s,s,s,e);return new ps(this,{kind:"constant",value:o},e)}if("camera"===t.expression.kind){const n=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new ps(this,{kind:"constant",value:n},e)}return new ps(this,t.expression,e)}evaluate(t,e,n,i,r,s){if("source"===t.kind){const o=t.evaluate(e,n,i,r,s);return this._calculate(o,o,o,e)}return"composite"===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},n,i),t.evaluate({zoom:Math.floor(e.zoom)},n,i),t.evaluate({zoom:Math.floor(e.zoom)+1},n,i),e):t.value}_calculate(t,e,n,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:t,to:e,other:n}:{from:n,to:e,other:t}}interpolate(t){return t}}class vs{constructor(t){this.specification=t}possiblyEvaluate(t,e,n,i){if(void 0!==t.value){if("constant"===t.expression.kind){const r=t.expression.evaluate(e,null,{},n,i);return this._calculate(r,r,r,e)}return this._calculate(t.expression.evaluate(new os(Math.floor(e.zoom-1),e)),t.expression.evaluate(new os(Math.floor(e.zoom),e)),t.expression.evaluate(new os(Math.floor(e.zoom+1),e)),e)}}_calculate(t,e,n,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:n,to:e}}interpolate(t){return t}}class ys{constructor(t){this.specification=t}possiblyEvaluate(t,e,n,i){return!!t.expression.evaluate(e,null,{},n,i)}interpolate(){return!1}}class xs{constructor(t){this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const e in t){const n=t[e];n.specification.overridable&&this.overridableProperties.push(e);const i=this.defaultPropertyValues[e]=new as(n,void 0),r=this.defaultTransitionablePropertyValues[e]=new ls(n);this.defaultTransitioningPropertyValues[e]=r.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=i.possiblyEvaluate({})}}}function bs(t,e){return 256*(t=g(Math.floor(t),0,255))+g(Math.floor(e),0,255)}ar("DataDrivenProperty",fs),ar("DataConstantProperty",gs),ar("CrossFadedDataDrivenProperty",_s),ar("CrossFadedProperty",vs),ar("ColorRampProperty",ys);const ws={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Cs{constructor(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Ps{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}static deserialize(t){const e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(t){this.reserve(t),this.length=t}reserve(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function Ms(t,e=1){let n=0,i=0;return{members:t.map(t=>{const r=ws[t.type].BYTES_PER_ELEMENT,s=n=Os(n,Math.max(e,r)),o=t.components||1;return i=Math.max(i,r),n+=r*o,{name:t.name,type:t.type,components:o,offset:s}}),size:Os(n,Math.max(i,e)),alignment:e}}function Os(t,e){return Math.ceil(t/e)*e}class Ss extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e){const n=this.length;return this.resize(n+1),this.emplace(n,t,e)}emplace(t,e,n){const i=2*t;return this.int16[i+0]=e,this.int16[i+1]=n,t}}Ss.prototype.bytesPerElement=4,ar("StructArrayLayout2i4",Ss);class ks extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,t,e,n,i)}emplace(t,e,n,i,r){const s=4*t;return this.int16[s+0]=e,this.int16[s+1]=n,this.int16[s+2]=i,this.int16[s+3]=r,t}}ks.prototype.bytesPerElement=8,ar("StructArrayLayout4i8",ks);class Ts extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,n,i,r,s,o){const a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,i,r,s,o)}emplace(t,e,n,i,r,s,o,a){const l=6*t,c=12*t,u=3*t;return this.int16[l+0]=e,this.int16[l+1]=n,this.uint8[c+4]=i,this.uint8[c+5]=r,this.uint8[c+6]=s,this.uint8[c+7]=o,this.float32[u+2]=a,t}}Ts.prototype.bytesPerElement=12,ar("StructArrayLayout2i4ub1f12",Ts);class Es extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e){const n=this.length;return this.resize(n+1),this.emplace(n,t,e)}emplace(t,e,n){const i=2*t;return this.float32[i+0]=e,this.float32[i+1]=n,t}}Es.prototype.bytesPerElement=8,ar("StructArrayLayout2f8",Es);class Is extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,n,i,r,s,o,a,l,c){const u=this.length;return this.resize(u+1),this.emplace(u,t,e,n,i,r,s,o,a,l,c)}emplace(t,e,n,i,r,s,o,a,l,c,u){const h=10*t;return this.uint16[h+0]=e,this.uint16[h+1]=n,this.uint16[h+2]=i,this.uint16[h+3]=r,this.uint16[h+4]=s,this.uint16[h+5]=o,this.uint16[h+6]=a,this.uint16[h+7]=l,this.uint16[h+8]=c,this.uint16[h+9]=u,t}}Is.prototype.bytesPerElement=20,ar("StructArrayLayout10ui20",Is);class As extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,n,i,r,s,o,a){const l=this.length;return this.resize(l+1),this.emplace(l,t,e,n,i,r,s,o,a)}emplace(t,e,n,i,r,s,o,a,l){const c=8*t;return this.uint16[c+0]=e,this.uint16[c+1]=n,this.uint16[c+2]=i,this.uint16[c+3]=r,this.uint16[c+4]=s,this.uint16[c+5]=o,this.uint16[c+6]=a,this.uint16[c+7]=l,t}}As.prototype.bytesPerElement=16,ar("StructArrayLayout8ui16",As);class zs extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,n,i,r,s,o,a,l,c,u,h){const d=this.length;return this.resize(d+1),this.emplace(d,t,e,n,i,r,s,o,a,l,c,u,h)}emplace(t,e,n,i,r,s,o,a,l,c,u,h,d){const p=12*t;return this.int16[p+0]=e,this.int16[p+1]=n,this.int16[p+2]=i,this.int16[p+3]=r,this.uint16[p+4]=s,this.uint16[p+5]=o,this.uint16[p+6]=a,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=u,this.int16[p+10]=h,this.int16[p+11]=d,t}}zs.prototype.bytesPerElement=24,ar("StructArrayLayout4i4ui4i24",zs);class Ds extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,n){const i=this.length;return this.resize(i+1),this.emplace(i,t,e,n)}emplace(t,e,n,i){const r=3*t;return this.float32[r+0]=e,this.float32[r+1]=n,this.float32[r+2]=i,t}}Ds.prototype.bytesPerElement=12,ar("StructArrayLayout3f12",Ds);class Ls extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t){const e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){return this.uint32[1*t+0]=e,t}}Ls.prototype.bytesPerElement=4,ar("StructArrayLayout1ul4",Ls);class Rs extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,n,i,r,s,o,a,l,c){const u=this.length;return this.resize(u+1),this.emplace(u,t,e,n,i,r,s,o,a,l,c)}emplace(t,e,n,i,r,s,o,a,l,c,u){const h=16*t,d=8*t;return this.int16[h+0]=e,this.int16[h+1]=n,this.float32[d+1]=i,this.float32[d+2]=r,this.float32[d+3]=s,this.float32[d+4]=o,this.int16[h+10]=a,this.uint32[d+6]=l,this.uint16[h+14]=c,this.uint16[h+15]=u,t}}Rs.prototype.bytesPerElement=32,ar("StructArrayLayout2i4f1i1ul2ui32",Rs);class Fs extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,n,i,r,s){const o=this.length;return this.resize(o+1),this.emplace(o,t,e,n,i,r,s)}emplace(t,e,n,i,r,s,o){const a=6*t;return this.int16[a+0]=e,this.int16[a+1]=n,this.int16[a+2]=i,this.int16[a+3]=r,this.int16[a+4]=s,this.int16[a+
vendor: 8,499 bytes, line 1
15]=o,t}}Fs.prototype.bytesPerElement=12,ar("StructArrayLayout2i2i2i12",Fs);class Bs extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,n,i,r){const s=this.length;return this.resize(s+1),this.emplace(s,t,e,n,i,r)}emplace(t,e,n,i,r,s){const o=4*t,a=8*t;return this.float32[o+0]=e,this.float32[o+1]=n,this.float32[o+2]=i,this.int16[a+6]=r,this.int16[a+7]=s,t}}Bs.prototype.bytesPerElement=16,ar("StructArrayLayout2f1f2i16",Bs);class Ns extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,t,e,n,i)}emplace(t,e,n,i,r){const s=12*t,o=3*t;return this.uint8[s+0]=e,this.uint8[s+1]=n,this.float32[o+1]=i,this.float32[o+2]=r,t}}Ns.prototype.bytesPerElement=12,ar("StructArrayLayout2ub2f12",Ns);class Us extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,n){const i=this.length;return this.resize(i+1),this.emplace(i,t,e,n)}emplace(t,e,n,i){const r=3*t;return this.uint16[r+0]=e,this.uint16[r+1]=n,this.uint16[r+2]=i,t}}Us.prototype.bytesPerElement=6,ar("StructArrayLayout3ui6",Us);class Hs extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,n,i,r,s,o,a,l,c,u,h,d,p,m,g,f){const _=this.length;return this.resize(_+1),this.emplace(_,t,e,n,i,r,s,o,a,l,c,u,h,d,p,m,g,f)}emplace(t,e,n,i,r,s,o,a,l,c,u,h,d,p,m,g,f,_){const v=24*t,y=12*t,x=48*t;return this.int16[v+0]=e,this.int16[v+1]=n,this.uint16[v+2]=i,this.uint16[v+3]=r,this.uint32[y+2]=s,this.uint32[y+3]=o,this.uint32[y+4]=a,this.uint16[v+10]=l,this.uint16[v+11]=c,this.uint16[v+12]=u,this.float32[y+7]=h,this.float32[y+8]=d,this.uint8[x+36]=p,this.uint8[x+37]=m,this.uint8[x+38]=g,this.uint32[y+10]=f,this.int16[v+22]=_,t}}Hs.prototype.bytesPerElement=48,ar("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Hs);class js extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,n,i,r,s,o,a,l,c,u,h,d,p,m,g,f,_,v,y,x,b,w,C,P,M,O,S){const k=this.length;return this.resize(k+1),this.emplace(k,t,e,n,i,r,s,o,a,l,c,u,h,d,p,m,g,f,_,v,y,x,b,w,C,P,M,O,S)}emplace(t,e,n,i,r,s,o,a,l,c,u,h,d,p,m,g,f,_,v,y,x,b,w,C,P,M,O,S,k){const T=34*t,E=17*t;return this.int16[T+0]=e,this.int16[T+1]=n,this.int16[T+2]=i,this.int16[T+3]=r,this.int16[T+4]=s,this.int16[T+5]=o,this.int16[T+6]=a,this.int16[T+7]=l,this.uint16[T+8]=c,this.uint16[T+9]=u,this.uint16[T+10]=h,this.uint16[T+11]=d,this.uint16[T+12]=p,this.uint16[T+13]=m,this.uint16[T+14]=g,this.uint16[T+15]=f,this.uint16[T+16]=_,this.uint16[T+17]=v,this.uint16[T+18]=y,this.uint16[T+19]=x,this.uint16[T+20]=b,this.uint16[T+21]=w,this.uint16[T+22]=C,this.uint32[E+12]=P,this.float32[E+13]=M,this.float32[E+14]=O,this.float32[E+15]=S,this.float32[E+16]=k,t}}js.prototype.bytesPerElement=68,ar("StructArrayLayout8i15ui1ul4f68",js);class Vs extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t){const e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){return this.float32[1*t+0]=e,t}}Vs.prototype.bytesPerElement=4,ar("StructArrayLayout1f4",Vs);class $s extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,n){const i=this.length;return this.resize(i+1),this.emplace(i,t,e,n)}emplace(t,e,n,i){const r=3*t;return this.int16[r+0]=e,this.int16[r+1]=n,this.int16[r+2]=i,t}}$s.prototype.bytesPerElement=6,ar("StructArrayLayout3i6",$s);class qs extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,t,e,n,i)}emplace(t,e,n,i,r){const s=6*t;return this.uint32[3*t+0]=e,this.uint16[s+2]=n,this.uint16[s+3]=i,this.uint16[s+4]=r,t}}qs.prototype.bytesPerElement=12,ar("StructArrayLayout1ul3ui12",qs);class Gs extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e){const n=this.length;return this.resize(n+1),this.emplace(n,t,e)}emplace(t,e,n){const i=2*t;return this.uint16[i+0]=e,this.uint16[i+1]=n,t}}Gs.prototype.bytesPerElement=4,ar("StructArrayLayout2ui4",Gs);class Zs extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t){const e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){return this.uint16[1*t+0]=e,t}}Zs.prototype.bytesPerElement=2,ar("StructArrayLayout1ui2",Zs);class Ws extends Ps{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,t,e,n,i)}emplace(t,e,n,i,r){const s=4*t;return this.float32[s+0]=e,this.float32[s+1]=n,this.float32[s+2]=i,this.float32[s+3]=r,t}}Ws.prototype.bytesPerElement=16,ar("StructArrayLayout4f16",Ws);class Xs extends Cs{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.float32[this._pos4+1]}get y1(){return this._structArray.float32[this._pos4+2]}get x2(){return this._structArray.float32[this._pos4+3]}get y2(){return this._structArray.float32[this._pos4+4]}get padding(){return this._structArray.int16[this._pos2+10]}get featureIndex(){return this._structArray.uint32[this._pos4+6]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+14]}get bucketIndex(){return this._structArray.uint16[this._pos2+15]}get anchorPoint(){return new r(this.anchorPointX,this.anchorPointY)}}Xs.prototype.size=32;class Qs extends Rs{get(t){return new Xs(this,t)}}ar("CollisionBoxArray",Qs);class Ks extends Cs{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(t){this._structArray.uint8[this._pos1+37]=t}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(t){this._structArray.uint8[this._pos1+38]=t}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(t){this._structArray.uint32[this._pos4+10]=t}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Ks.prototype.size=48;class Ys extends Hs{get(t){return new Ks(this,t)}}ar("PlacedSymbolArray",Ys);class Js extends Cs{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}
vendor: 4,375 bytes, line 1
1get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(t){this._structArray.uint32[this._pos4+12]=t}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get textOffset0(){return this._structArray.float32[this._pos4+14]}get textOffset1(){return this._structArray.float32[this._pos4+15]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+16]}}Js.prototype.size=68;class to extends js{get(t){return new Js(this,t)}}ar("SymbolInstanceArray",to);class eo extends Vs{getoffsetX(t){return this.float32[1*t+0]}}ar("GlyphOffsetArray",eo);class no extends $s{getx(t){return this.int16[3*t+0]}gety(t){return this.int16[3*t+1]}gettileUnitDistanceFromAnchor(t){return this.int16[3*t+2]}}ar("SymbolLineVertexArray",no);class io extends Cs{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}io.prototype.size=12;class ro extends qs{get(t){return new io(this,t)}}ar("FeatureIndexArray",ro);class so extends Cs{get a_centroid_pos0(){return this._structArray.uint16[this._pos2+0]}get a_centroid_pos1(){return this._structArray.uint16[this._pos2+1]}}so.prototype.size=4;class oo extends Gs{get(t){return new so(this,t)}}ar("FillExtrusionCentroidArray",oo);const ao=Ms([{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"}]),lo=Ms([{name:"a_dash_to",components:4,type:"Uint16"},{name:"a_dash_from",components:4,type:"Uint16"}]);var co=le(function(t){t.exports=function(t,e){var n,i,r,s,o,a,l,c;for(i=t.length-(n=3&t.length),r=e,o=3432918353,a=461845907,c=0;c<i;)l=255&t.charCodeAt(c)|(255&t.charCodeAt(++c))<<8|(255&t.charCodeAt(++c))<<16|(255&t.charCodeAt(++c))<<24,++c,r=27492+(65535&(s=5*(65535&(r=(r^=l=(65535&(l=(l=(65535&l)*o+(((l>>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<13|r>>>19))+((5*(r>>>16)&65535)<<16)&4294967295))+((58964+(s>>>16)&65535)<<16);switch(l=0,n){case 3:l^=(255&t.charCodeAt(c+2))<<16;case 2:l^=(255&t.charCodeAt(c+1))<<8;case 1:r^=l=(65535&(l=(l=(65535&(l^=255&t.charCodeAt(c)))*o+(((l>>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295}return r^=t.length,r=2246822507*(65535&(r^=r>>>16))+((2246822507*(r>>>16)&65535)<<16)&4294967295,r=3266489909*(65535&(r^=r>>>13))+((3266489909*(r>>>16)&65535)<<16)&4294967295,(r^=r>>>16)>>>0}}),uo=le(function(t){t.exports=function(t,e){for(var n,i=t.length,r=e^i,s=0;i>=4;)n=1540483477*(65535&(n=255&t.charCodeAt(s)|(255&t.charCodeAt(++s))<<8|(255&t.charCodeAt(++s))<<16|(255&t.charCodeAt(++s))<<24))+((1540483477*(n>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),i-=4,++s;switch(i){case 3:r^=(255&t.charCodeAt(s+2))<<16;case 2:r^=(255&t.charCodeAt(s+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(s)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}}),ho=co,po=uo;ho.murmur3=co,ho.murmur2=po;class mo{constructor(){this.ids=[],this.positions=[],this.indexed=!1}
vendor: 11,535 bytes, line 1
1add(t,e,n,i){this.ids.push(go(t)),this.positions.push(e,n,i)}getPositions(t){const e=go(t);let n=0,i=this.ids.length-1;for(;n<i;){const t=n+i>>1;this.ids[t]>=e?i=t:n=t+1}const r=[];for(;this.ids[n]===e;)r.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return r}static serialize(t,e){const n=new Float64Array(t.ids),i=new Uint32Array(t.positions);return fo(n,i,0,n.length-1),e&&e.push(n.buffer,i.buffer),{ids:n,positions:i}}static deserialize(t){const e=new mo;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e}}function go(t){const e=+t;return!isNaN(e)&&e<=a?e:ho(String(t))}function fo(t,e,n,i){for(;n<i;){const r=t[n+i>>1];let s=n-1,o=i+1;for(;;){do{s++}while(t[s]<r);do{o--}while(t[o]>r);if(s>=o)break;_o(t,s,o),_o(e,3*s,3*o),_o(e,3*s+1,3*o+1),_o(e,3*s+2,3*o+2)}o-n<i-o?(fo(t,e,n,o),n=o+1):(fo(t,e,o+1,i),i=o)}}function _o(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}ar("FeaturePositionMap",mo);class vo{constructor(t,e){this.gl=t.gl,this.location=e}}class yo extends vo{constructor(t,e){super(t,e),this.current=0}set(t){this.current!==t&&(this.current=t,this.gl.uniform1f(this.location,t))}}class xo extends vo{constructor(t,e){super(t,e),this.current=[0,0,0,0]}set(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]&&t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))}}class bo extends vo{constructor(t,e){super(t,e),this.current=ue.transparent}set(t){t.r===this.current.r&&t.g===this.current.g&&t.b===this.current.b&&t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))}}const wo=new Float32Array(16),Co=new Float32Array(9);function Po(t){return[bs(255*t.r,255*t.g),bs(255*t.b,255*t.a)]}class Mo{constructor(t,e,n){this.value=t,this.uniformNames=e.map(t=>`u_${t}`),this.type=n}setUniform(t,e,n){t.set(n.constantOr(this.value))}getBinding(t,e,n){return"color"===this.type?new bo(t,e):new yo(t,e)}}class Oo{constructor(t,e){this.uniformNames=e.map(t=>`u_${t}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tl.concat(e.br),this.patternTo=t.tl.concat(t.br)}setUniform(t,e,n,i){const r="u_pattern_to"===i||"u_dash_to"===i?this.patternTo:"u_pattern_from"===i||"u_dash_from"===i?this.patternFrom:"u_pixel_ratio_to"===i?this.pixelRatioTo:"u_pixel_ratio_from"===i?this.pixelRatioFrom:null;r&&t.set(r)}getBinding(t,e,n){return"u_pattern_from"===n||"u_pattern_to"===n||"u_dash_from"===n||"u_dash_to"===n?new xo(t,e):new yo(t,e)}}class So{constructor(t,e,n,i){this.expression=t,this.type=n,this.maxValue=0,this.paintVertexAttributes=e.map(t=>({name:`a_${t}`,type:"Float32",components:"color"===n?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(t,e,n,i,r){const s=this.paintVertexArray.length,o=this.expression.evaluate(new os(0),e,{},i,[],r);this.paintVertexArray.resize(t),this._setPaintValue(s,t,o)}updatePaintArray(t,e,n,i){const r=this.expression.evaluate({zoom:0},n,i);this._setPaintValue(t,e,r)}_setPaintValue(t,e,n){if("color"===this.type){const i=Po(n);for(let n=t;n<e;n++)this.paintVertexArray.emplace(n,i[0],i[1])}else{for(let i=t;i<e;i++)this.paintVertexArray.emplace(i,n);this.maxValue=Math.max(this.maxValue,Math.abs(n))}}upload(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class ko{constructor(t,e,n,i,r,s){this.expression=t,this.uniformNames=e.map(t=>`u_${t}_t`),this.type=n,this.useIntegerZoom=i,this.zoom=r,this.maxValue=0,this.paintVertexAttributes=e.map(t=>({name:`a_${t}`,type:"Float32",components:"color"===n?4:2,offset:0})),this.paintVertexArray=new s}populatePaintArray(t,e,n,i,r){const s=this.expression.evaluate(new os(this.zoom),e,{},i,[],r),o=this.expression.evaluate(new os(this.zoom+1),e,{},i,[],r),a=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(a,t,s,o)}updatePaintArray(t,e,n,i){const r=this.expression.evaluate({zoom:this.zoom},n,i),s=this.expression.evaluate({zoom:this.zoom+1},n,i);this._setPaintValue(t,e,r,s)}_setPaintValue(t,e,n,i){if("color"===this.type){const r=Po(n),s=Po(i);for(let n=t;n<e;n++)this.paintVertexArray.emplace(n,r[0],r[1],s[0],s[1])}else{for(let r=t;r<e;r++)this.paintVertexArray.emplace(r,n,i);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(i))}}upload(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(t,e){const n=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,i=g(this.expression.interpolationFactor(n,this.zoom,this.zoom+1),0,1);t.set(i)}getBinding(t,e,n){return new yo(t,e)}}class To{constructor(t,e,n,i,r,s,o){this.expression=t,this.type=n,this.useIntegerZoom=i,this.zoom=r,this.layerId=o,this.paintVertexAttributes=("array"===n?lo:ao).members;for(let a=0;a<e.length;++a);this.zoomInPaintVertexArray=new s,this.zoomOutPaintVertexArray=new s}populatePaintArray(t,e,n){const i=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(i,t,e.patterns&&e.patterns[this.layerId],n)}updatePaintArray(t,e,n,i,r){this._setPaintValues(t,e,n.patterns&&n.patterns[this.layerId],r)}_setPaintValues(t,e,n,i){if(!i||!n)return;const{min:r,mid:s,max:o}=n,a=i[r],l=i[s],c=i[o];if(a&&l&&c)for(let u=t;u<e;u++)this._setPaintValue(this.zoomInPaintVertexArray,u,l,a),this._setPaintValue(this.zoomOutPaintVertexArray,u,l,c)}_setPaintValue(t,e,n,i){t.emplace(e,n.tl[0],n.tl[1],n.br[0],n.br[1],i.tl[0],i.tl[1],i.br[0],i.br[1],n.pixelRatio,i.pixelRatio)}upload(t){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()}}class Eo{constructor(t,e,n=(()=>!0)){this.binders={},this._buffers=[];const i=[];for(const r in t.paint._values){if(!n(r))continue;const s=t.paint.get(r);if(!(s instanceof ps&&Qn(s.property.specification)))continue;const o=zo(r,t.type),a=s.value,l=s.property.specification.type,c=s.property.useIntegerZoom,u=s.property.specification["property-type"],h="cross-faded"===u||"cross-faded-data-driven"===u,d="line-dasharray"===String(r)&&"constant"!==t.layout.get("line-cap").value.kind;if("constant"!==a.kind||d)if("source"===a.kind||d||h){const n=Ro(r,l,"source");this.binders[r]=h?new To(a,o,l,c,e,n,t.id):new So(a,o,l,n),i.push(`/a_${r}`)}else{const t=Ro(r,l,"composite");this.binders[r]=new ko(a,o,l,c,e,t),i.push(`/z_${r}`)}else this.binders[r]=h?new Oo(a.value,o):new Mo(a.value,o,l),i.push(`/u_${r}`)}this.cacheKey=i.sort().join("")}getMaxValue(t){const e=this.binders[t];return e instanceof So||e instanceof ko?e.maxValue:0}populatePaintArrays(t,e,n,i,r){for(const s in this.binders){const o=this.binders[s];(o instanceof So||o instanceof ko||o instanceof To)&&o.populatePaintArray(t,e,n,i,r)}}setConstantPatternPositions(t,e){for(const n in this.binders){const i=this.binders[n];i instanceof Oo&&i.setConstantPatternPositions(t,e)}}updatePaintArrays(t,e,n,i,r){let s=!1;for(const o in t){const a=e.getPositions(o);for(const e of a){const a=n.feature(e.index);for(const n in this.binders){const l=this.binders[n];if((l instanceof So||l instanceof ko||l instanceof To)&&!0===l.expression.isStateDependent){const c=i.paint.get(n);l.expression=c.value,l.updatePaintArray(e.start,e.end,a,t[o],r),s=!0}}}}return s}defines(){const t=[];for(const e in this.binders){const n=this.binders[e];(n instanceof Mo||n instanceof Oo)&&t.push(...n.uniformNames.map(t=>`#define HAS_UNIFORM_${t}`))}return t}getBinderAttributes(){const t=[];for(const e in this.binders){const n=this.binders[e];if(n instanceof So||n instanceof ko||n instanceof To)for(let e=0;e<n.paintVertexAttributes.length;e++)t.push(n.paintVertexAttributes[e].name)}return t}getBinderUniforms(){const t=[];for(const e in this.binders){const n=this.binders[e];if(n instanceof Mo||n instanceof Oo||n instanceof ko)for(const e of n.uniformNames)t.push(e)}return t}getPaintVertexBuffers(){return this._buffers}getUniforms(t,e){const n=[];for(const i in this.binders){const r=this.binders[i];if(r instanceof Mo||r instanceof Oo||r instanceof ko)for(const s of r.uniformNames)if(e[s]){const o=r.getBinding(t,e[s],s);n.push({name:s,property:i,binding:o})}}return n}setUniforms(t,e,n,i){for(const{name:r,property:s,binding:o}of e)this.binders[s].setUniform(o,i,n.get(s),r)}updatePaintBuffers(t){this._buffers=[];for(const e in this.binders){const n=this.binders[e];if(t&&n instanceof To){const e=2===t.fromScale?n.zoomInPaintVertexBuffer:n.zoomOutPaintVertexBuffer;e&&this._buffers.push(e)}else(n instanceof So||n instanceof ko)&&n.paintVertexBuffer&&this._buffers.push(n.paintVertexBuffer)}}upload(t){for(const e in this.binders){const n=this.binders[e];(n instanceof So||n instanceof ko||n instanceof To)&&n.upload(t)}this.updatePaintBuffers()}destroy(){for(const t in this.binders){const e=this.binders[t];(e instanceof So||e instanceof ko||e instanceof To)&&e.destroy()}}}class Io{constructor(t,e,n=(()=>!0)){this.programConfigurations={};for(const i of t)this.programConfigurations[i.id]=new Eo(i,e,n);this.needsUpload=!1,this._featureMap=new mo,this._bufferOffset=0}populatePaintArrays(t,e,n,i,r,s){for(const o in this.programConfigurations)this.programConfigurations[o].populatePaintArrays(t,e,i,r,s);void 0!==e.id&&this._featureMap.add(e.id,n,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0}updatePaintArrays(t,e,n,i){for(const r of n)this.needsUpload=this.programConfigurations[r.id].updatePaintArrays(t,this._featureMap,e,r,i)||this.needsUpload}get(t){return this.programConfigurations[t]}upload(t){if(this.needsUpload){for(const e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}}destroy(){for(const t in this.programConfigurations)this.programConfigurations[t].destroy()}}const Ao={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"line-dasharray":["dash_to","dash_from"]};function zo(t,e){return Ao[t]||[t.replace(`${e}
1-`,"").replace(/-/g,"_")]}const Do={"line-pattern":{source:Is,composite:Is},"fill-pattern":{source:Is,composite:Is},"fill-extrusion-pattern":{source:Is,composite:Is},"line-dasharray":{source:As,composite:As}},Lo={color:{source:Es,composite:Ws},number:{source:Vs,composite:Es}};function Ro(t,e,n){const i=Do[t];return i&&i[n]||Lo[e][n]}ar("ConstantBinder",Mo),ar("CrossFadedConstantBinder",Oo),ar("SourceExpressionBinder",So),ar("CrossFadedCompositeBinder",To),ar("CompositeExpressionBinder",ko),ar("ProgramConfiguration",Eo,{omit:["_buffers"]}),ar("ProgramConfigurationSet",Io);const Fo="-transition";class Bo extends Ft{constructor(t,e){if(super(),this.id=t.id,this.type=t.type,this._featureFilter={filter:()=>!0,needGeometry:!1},"custom"!==t.type&&(this.metadata=(t=t).metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&"sky"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter),e.layout&&(this._unevaluatedLayout=new ds(e.layout)),e.paint)){this._transitionablePaint=new cs(e.paint);for(const e in t.paint)this.setPaintProperty(e,t.paint[e],{validate:!1});for(const e in t.layout)this.setLayoutProperty(e,t.layout[e],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new ms(e.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)}setLayoutProperty(t,e,n={}){null!=e&&this._validate(tr,`layers.${this.id}.layout.${t}`,t,e,n)||("visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)}getPaintProperty(t){return O(t,Fo)?this._transitionablePaint.getTransition(t.slice(0,-Fo.length)):this._transitionablePaint.getValue(t)}setPaintProperty(t,e,n={}){if(null!=e&&this._validate(Ji,`layers.${this.id}.paint.${t}`,t,e,n))return!1;if(O(t,Fo))return this._transitionablePaint.setTransition(t.slice(0,-Fo.length),e||void 0),!1;{const n=this._transitionablePaint._values[t],i="cross-faded-data-driven"===n.property.specification["property-type"],r=n.value.isDataDriven(),s=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);const o=this._transitionablePaint._values[t].value;return o.isDataDriven()||r||i||this._handleOverridablePaintPropertyUpdate(t,s,o)}}_handleSpecialPaintPropertyUpdate(t){}getProgramIds(){return null}getProgramConfiguration(t){return null}_handleOverridablePaintPropertyUpdate(t,e,n){return!1}isHidden(t){return!!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||"none"===this.visibility}updateTransitions(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)}
1serialize(){const t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),k(t,(t,e)=>!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length))}_validate(t,e,n,i,r={}){return(!r||!1!==r.validate)&&er(this,t.call(Qi,{key:e,layerType:this.type,objectKey:n,value:i,styleSpec:Bt,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const t in this.paint._values){const e=this.paint.get(t);if(e instanceof ps&&Qn(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1}}const No=Ms([{name:"a_pos",components:2,type:"Int16"}],4),{members:Uo}=No;class Ho{constructor(t=[]){this.segments=t}prepareSegment(t,e,n,i){let r=this.segments[this.segments.length-1];return t>Ho.MAX_VERTEX_ARRAY_LENGTH&&I(`Max vertices per segment is ${Ho.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${t}`),(!r||r.vertexLength+t>Ho.MAX_VERTEX_ARRAY_LENGTH||r.sortKey!==i)&&(r={vertexOffset:e.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==i&&(r.sortKey=i),this.segments.push(r)),r}get(){return this.segments}destroy(){for(const t of this.segments)for(const e in t.vaos)t.vaos[e].destroy()}static simpleSegment(t,e,n,i){return new Ho([{vertexOffset:t,primitiveOffset:e,vertexLength:n,primitiveLength:i,vaos:{},sortKey:0}])}}Ho.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,ar("SegmentVector",Ho);var jo=8192;const Vo=Math.pow(2,14)-1,$o=-Vo-1;function qo(t){const e=jo/t.extent,n=t.loadGeometry();for(let i=0;i<n.length;i++){const t=n[i];for(let n=0;n<t.length;n++){const i=t[n],r=Math.round(i.x*e),s=Math.round(i.y*e);i.x=g(r,$o,Vo),i.y=g(s,$o,Vo),(r<i.x||r>i.x+1||s<i.y||s>i.y+1)&&I("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return n}function Go(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?qo(t):[]}}function Zo(t,e,n,i,r){t.emplaceBack(2*e+(i+1)/2,2*n+(r+1)/2)}class Wo{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Ss,this.indexArray=new Us,this.segments=new Ho,this.programConfigurations=new Io(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,e,n){const i=this.layers[0],r=[];let s=null;"circle"===i.type&&(s=i.layout.get("circle-sort-key"));for(const{feature:o,id:a,index:l,sourceLayerIndex:c}of t){const t=this.layers[0]._featureFilter.needGeometry,e=Go(o,t);
vendor: 65,594 bytes, line 1
1if(!this.layers[0]._featureFilter.filter(new os(this.zoom),e,n))continue;const i=s?s.evaluate(e,{},n):void 0,u={id:a,properties:o.properties,type:o.type,sourceLayerIndex:c,index:l,geometry:t?e.geometry:qo(o),patterns:{},sortKey:i};r.push(u)}s&&r.sort((t,e)=>t.sortKey-e.sortKey);for(const o of r){const{geometry:i,index:r,sourceLayerIndex:s}=o,a=t[r].feature;this.addFeature(o,i,r,n),e.featureIndex.insert(a,i,r,s,this.index)}}update(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Uo),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(t,e,n,i){for(const r of e)for(const e of r){const n=e.x,i=e.y;if(n<0||n>=jo||i<0||i>=jo)continue;const r=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),s=r.vertexLength;Zo(this.layoutVertexArray,n,i,-1,-1),Zo(this.layoutVertexArray,n,i,1,-1),Zo(this.layoutVertexArray,n,i,1,1),Zo(this.layoutVertexArray,n,i,-1,1),this.indexArray.emplaceBack(s,s+1,s+2),this.indexArray.emplaceBack(s,s+3,s+2),r.vertexLength+=4,r.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{},i)}}function Xo(t,e){for(let n=0;n<t.length;n++)if(ra(e,t[n]))return!0;for(let n=0;n<e.length;n++)if(ra(t,e[n]))return!0;return!!Jo(t,e)}function Qo(t,e,n){return!!ra(t,e)||!!ea(e,t,n)}function Ko(t,e){if(1===t.length)return ia(e,t[0]);for(let n=0;n<e.length;n++){const i=e[n];for(let e=0;e<i.length;e++)if(ra(t,i[e]))return!0}for(let n=0;n<t.length;n++)if(ia(e,t[n]))return!0;for(let n=0;n<e.length;n++)if(Jo(t,e[n]))return!0;return!1}function Yo(t,e,n){if(t.length>1){if(Jo(t,e))return!0;for(let i=0;i<e.length;i++)if(ea(e[i],t,n))return!0}for(let i=0;i<t.length;i++)if(ea(t[i],e,n))return!0;return!1}function Jo(t,e){if(0===t.length||0===e.length)return!1;for(let n=0;n<t.length-1;n++){const i=t[n],r=t[n+1];for(let t=0;t<e.length-1;t++)if(ta(i,r,e[t],e[t+1]))return!0}return!1}function ta(t,e,n,i){return A(t,n,i)!==A(e,n,i)&&A(t,e,n)!==A(t,e,i)}function ea(t,e,n){const i=n*n;if(1===e.length)return t.distSqr(e[0])<i;for(let r=1;r<e.length;r++)if(na(t,e[r-1],e[r])<i)return!0;return!1}function na(t,e,n){const i=e.distSqr(n);if(0===i)return t.distSqr(e);const r=((t.x-e.x)*(n.x-e.x)+(t.y-e.y)*(n.y-e.y))/i;return t.distSqr(r<0?e:r>1?n:n.sub(e)._mult(r)._add(e))}function ia(t,e){let n,i,r,s=!1;for(let o=0;o<t.length;o++){n=t[o];for(let t=0,o=n.length-1;t<n.length;o=t++)i=n[t],r=n[o],i.y>e.y!=r.y>e.y&&e.x<(r.x-i.x)*(e.y-i.y)/(r.y-i.y)+i.x&&(s=!s)}return s}function ra(t,e){let n=!1;for(let i=0,r=t.length-1;i<t.length;r=i++){const s=t[i],o=t[r];s.y>e.y!=o.y>e.y&&e.x<(o.x-s.x)*(e.y-s.y)/(o.y-s.y)+s.x&&(n=!n)}return n}function sa(t,e,n,i,s){for(const r of t)if(e<=r.x&&n<=r.y&&i>=r.x&&s>=r.y)return!0;const o=[new r(e,n),new r(e,s),new r(i,s),new r(i,n)];if(t.length>2)for(const r of o)if(ra(t,r))return!0;for(let r=0;r<t.length-1;r++)if(oa(t[r],t[r+1],o))return!0;return!1}function oa(t,e,n){const i=n[0],r=n[2];if(t.x<i.x&&e.x<i.x||t.x>r.x&&e.x>r.x||t.y<i.y&&e.y<i.y||t.y>r.y&&e.y>r.y)return!1;const s=A(t,e,n[0]);return s!==A(t,e,n[1])||s!==A(t,e,n[2])||s!==A(t,e,n[3])}function aa(t,e,n){const i=e.paint.get(t).value;return"constant"===i.kind?i.value:n.programConfigurations.get(e.id).getMaxValue(t)}function la(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ca(t,e,n,i,s){if(!e[0]&&!e[1])return t;const o=r.convert(e)._mult(s);"viewport"===n&&o._rotate(-i);const a=[];for(let r=0;r<t.length;r++)a.push(t[r].sub(o));return a}function ua(t,e,n,i){const s=r.convert(t)._mult(i);return"viewport"===e&&s._rotate(-n),s}ar("CircleBucket",Wo,{omit:["layers"]});const ha=new xs({"circle-sort-key":new fs(Bt.layout_circle["circle-sort-key"])});var da={paint:new xs({"circle-radius":new fs(Bt.paint_circle["circle-radius"]),"circle-color":new fs(Bt.paint_circle["circle-color"]),"circle-blur":new fs(Bt.paint_circle["circle-blur"]),"circle-opacity":new fs(Bt.paint_circle["circle-opacity"]),"circle-translate":new gs(Bt.paint_circle["circle-translate"]),"circle-translate-anchor":new gs(Bt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new gs(Bt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new gs(Bt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new fs(Bt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new fs(Bt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new fs(Bt.paint_circle["circle-stroke-opacity"])}),layout:ha},pa="undefined"!=typeof Float32Array?Float32Array:Array;function ma(){var t=new pa(9);return pa!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function ga(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function fa(t,e,n){var i=e[0],r=e[1],s=e[2],o=e[3],a=e[4],l=e[5],c=e[6],u=e[7],h=e[8],d=e[9],p=e[10],m=e[11],g=e[12],f=e[13],_=e[14],v=e[15],y=n[0],x=n[1],b=n[2],w=n[3];return t[0]=y*i+x*a+b*h+w*g,t[1]=y*r+x*l+b*d+w*f,t[2]=y*s+x*c+b*p+w*_,t[3]=y*o+x*u+b*m+w*v,t[4]=(y=n[4])*i+(x=n[5])*a+(b=n[6])*h+(w=n[7])*g,t[5]=y*r+x*l+b*d+w*f,t[6]=y*s+x*c+b*p+w*_,t[7]=y*o+x*u+b*m+w*v,t[8]=(y=n[8])*i+(x=n[9])*a+(b=n[10])*h+(w=n[11])*g,t[9]=y*r+x*l+b*d+w*f,t[10]=y*s+x*c+b*p+w*_,t[11]=y*o+x*u+b*m+w*v,t[12]=(y=n[12])*i+(x=n[13])*a+(b=n[14])*h+(w=n[15])*g,t[13]=y*r+x*l+b*d+w*f,t[14]=y*s+x*c+b*p+w*_,t[15]=y*o+x*u+b*m+w*v,t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var _a=fa;function va(){var t=new pa(3);return pa!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function ya(t){return Math.hypot(t[0],t[1],t[2])}function xa(t,e,n){var i=new pa(3);return i[0]=t,i[1]=e,i[2]=n,i}function ba(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function wa(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function Ca(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}function Pa(t,e){var n=e[0],i=e[1],r=e[2],s=n*n+i*i+r*r;return s>0&&(s=1/Math.sqrt(s)),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t}function Ma(t,e,n){var i=n[0],r=n[1],s=n[2],o=e[0],a=e[1],l=e[2],c=r*l-s*a,u=s*o-i*l,h=i*a-r*o,d=r*h-s*u,p=s*c-i*h,m=i*u-r*c,g=2*n[3];return u*=g,h*=g,p*=2,m*=2,t[0]=o+(c*=g)+(d*=2),t[1]=a+u+p,t[2]=l+h+m,t}var Oa,Sa=ba,ka=wa,Ta=ya;function Ea(t,e,n){var i=e[0],r=e[1],s=e[2],o=e[3];return t[0]=n[0]*i+n[4]*r+n[8]*s+n[12]*o,t[1]=n[1]*i+n[5]*r+n[9]*s+n[13]*o,t[2]=n[2]*i+n[6]*r+n[10]*s+n[14]*o,t[3]=n[3]*i+n[7]*r+n[11]*s+n[15]*o,t}function Ia(){var t=new pa(4);return pa!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function Aa(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}function za(t,e,n){n*=.5;var i=e[0],r=e[1],s=e[2],o=e[3],a=Math.sin(n),l=Math.cos(n);return t[0]=i*l+o*a,t[1]=r*l+s*a,t[2]=s*l-r*a,t[3]=o*l-i*a,t}function Da(t,e,n){const i=Ea([],[t.x,t.y,e,1],n);return new r(i[0]/i[3],i[1]/i[3])}va(),Oa=new pa(4),pa!=Float32Array&&(Oa[0]=0,Oa[1]=0,Oa[2]=0,Oa[3]=0),va(),xa(1,0,0),xa(0,1,0),Ia(),Ia(),ma();const La=xa(0,0,0),Ra=xa(0,0,1);function Fa(t,e){const n=va();return La[2]=e,t.intersectsPlane(La,Ra,n),new r(n[0],n[1])}class Ba extends Wo{}function Na(t,{width:e,height:n},i,r){if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==e*n*i)throw new RangeError("mismatched image size")}else r=new Uint8Array(e*n*i);return t.width=e,t.height=n,t.data=r,t}function Ua(t,{width:e,height:n},i){if(e===t.width&&n===t.height)return;const r=Na({},{width:e,height:n},i);Ha(t,r,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,e),height:Math.min(t.height,n)},i),t.width=e,t.height=n,t.data=r.data}function Ha(t,e,n,i,r,s){if(0===r.width||0===r.height)return e;if(r.width>t.width||r.height>t.height||n.x>t.width-r.width||n.y>t.height-r.height)throw new RangeError("out of range source coordinates for image copy");if(r.width>e.width||r.height>e.height||i.x>e.width-r.width||i.y>e.height-r.height)throw new RangeError("out of range destination coordinates for image copy");const o=t.data,a=e.data;for(let l=0;l<r.height;l++){const c=((n.y+l)*t.width+n.x)*s,u=((i.y+l)*e.width+i.x)*s;for(let t=0;t<r.width*s;t++)a[u+t]=o[c+t]}return e}ar("HeatmapBucket",Ba,{omit:["layers"]});class ja{constructor(t,e){Na(this,t,1,e)}resize(t){Ua(this,t,1)}clone(){return new ja({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,e,n,i,r){Ha(t,e,n,i,r,1)}}class Va{constructor(t,e){Na(this,t,4,e)}resize(t){Ua(this,t,4)}replace(t,e){e?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new Va({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,e,n,i,r){Ha(t,e,n,i,r,4)}}ar("AlphaImage",ja),ar("RGBAImage",Va);var $a={paint:new xs({"heatmap-radius":new fs(Bt.paint_heatmap["heatmap-radius"]),"heatmap-weight":new fs(Bt.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new gs(Bt.paint_heatmap["heatmap-intensity"]),"heatmap-color":new ys(Bt.paint_heatmap["heatmap-color"]),"heatmap-opacity":new gs(Bt.paint_heatmap["heatmap-opacity"])})};function qa(t){const e={},n=t.resolution||256,i=t.clips?t.clips.length:1,r=t.image||new Va({width:n,height:i}),s=(n,i,s)=>{e[t.evaluationKey]=s;const o=t.expression.evaluate(e);r.data[n+i+0]=Math.floor(255*o.r/o.a),r.data[n+i+1]=Math.floor(255*o.g/o.a),r.data[n+i+2]=Math.floor(255*o.b/o.a),r.data[n+i+3]=Math.floor(255*o.a)};if(t.clips)for(let o=0,a=0;o<i;++o,a+=4*n)for(let e=0,i=0;e<n;e++,i+=4){const r=e/(n-1),{start:l,end:c}=t.clips[o];s(a,i,l*(1-r)+c*r)}else for(let o=0,a=0;o<n;o++,a+=4)s(0,a,o/(n-1));return r}var Ga={paint:new xs({"hillshade-illumination-direction":new gs(Bt.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new gs(Bt.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new gs(Bt.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new gs(Bt.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new gs(Bt.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new gs(Bt.paint_hillshade["hillshade-accent-color"])})};const Za=Ms([{name:"a_pos",components:2,type:"Int16"}],4),{members:Wa}=Za;var Xa=Ka,Qa=Ka;function Ka(t,e,n){n=n||2;var i,r,s,o,a,l,c,u=e&&e.length,h=u?e[0]*n:t.length,d=Ya(t,0,h,n,!0),p=[];if(!d||d.next===d.prev)return p;if(u&&(d=function(t,e,n,i){var r,s,o,a=[];for(r=0,s=e.length;r<s;r++)(o=Ya(t,e[r]*i,r<s-1?e[r+1]*i:t.length,i,!1))===o.next&&(o.steiner=!0),a.push(cl(o));for(a.sort(sl),r=0;r<a.length;r++)ol(a[r],n),n=Ja(n,n.next);return n}(t,e,d,n)),t.length>80*n){i=s=t[0],r=o=t[1];for(var m=n;m<h;m+=n)(a=t[m])<i&&(i=a),(l=t[m+1])<r&&(r=l),a>s&&(s=a),l>o&&(o=l);c=0!==(c=Math.max(s-i,o-r))?1/c:0}return tl(d,p,n,i,r,c),p}function Ya(t,e,n,i,r){var s,o;if(r===wl(t,e,n,i)>0)for(s=e;s<n;s+=i)o=yl(s,t[s],t[s+1],o);else for(s=n-i;s>=e;s-=i)o=yl(s,t[s],t[s+1],o);return o&&pl(o,o.next)&&(xl(o),o=o.next),o}function Ja(t,e){if(!t)return t;e||(e=t);var n,i=t;do{if(n=!1,i.steiner||!pl(i,i.next)&&0!==dl(i.prev,i,i.next))i=i.next;else{if(xl(i),(i=e=i.prev)===i.next)break;n=!0}}while(n||i!==e);return e}function tl(t,e,n,i,r,s,o){if(t){!o&&s&&function(t,e,n,i){var r=t;do{null===r.z&&(r.z=ll(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,n,i,r,s,o,a,l,c=1;do{for(n=t,t=null,s=null,o=0;n;){for(o++,i=n,a=0,e=0;e<c&&(a++,i=i.nextZ);e++);for(l=c;a>0||l>0&&i;)0!==a&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,a--):(r=i,i=i.nextZ,l--),s?s.nextZ=r:t=r,r.prevZ=s,s=r;n=i}s.nextZ=null,c*=2}while(o>1)}(r)}(t,i,r,s);for(var a,l,c=t;t.prev!==t.next;)if(a=t.prev,l=t.next,s?nl(t,i,r,s):el(t))e.push(a.i/n),e.push(t.i/n),e.push(l.i/n),xl(t),t=l.next,c=l.next;else if((t=l)===c){o?1===o?tl(t=il(Ja(t),e,n),e,n,i,r,s,2):2===o&&rl(t,e,n,i,r,s):tl(Ja(t),e,n,i,r,s,1);break}}}function el(t){var e=t.prev,n=t,i=t.next;if(dl(e,n,i)>=0)return!1;for(var r=t.next.next;r!==t.prev;){if(ul(e.x,e.y,n.x,n.y,i.x,i.y,r.x,r.y)&&dl(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function nl(t,e,n,i){var r=t.prev,s=t,o=t.next;if(dl(r,s,o)>=0)return!1;for(var a=r.x>s.x?r.x>o.x?r.x:o.x:s.x>o.x?s.x:o.x,l=r.y>s.y?r.y>o.y?r.y:o.y:s.y>o.y?s.y:o.y,c=ll(r.x<s.x?r.x<o.x?r.x:o.x:s.x<o.x?s.x:o.x,r.y<s.y?r.y<o.y?r.y:o.y:s.y<o.y?s.y:o.y,e,n,i),u=ll(a,l,e,n,i),h=t.prevZ,d=t.nextZ;h&&h.z>=c&&d&&d.z<=u;){if(h!==t.prev&&h!==t.next&&ul(r.x,r.y,s.x,s.y,o.x,o.y,h.x,h.y)&&dl(h.prev,h,h.next)>=0)return!1;if(h=h.prevZ,d!==t.prev&&d!==t.next&&ul(r.x,r.y,s.x,s.y,o.x,o.y,d.x,d.y)&&dl(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;h&&h.z>=c;){if(h!==t.prev&&h!==t.next&&ul(r.x,r.y,s.x,s.y,o.x,o.y,h.x,h.y)&&dl(h.prev,h,h.next)>=0)return!1;h=h.prevZ}for(;d&&d.z<=u;){if(d!==t.prev&&d!==t.next&&ul(r.x,r.y,s.x,s.y,o.x,o.y,d.x,d.y)&&dl(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function il(t,e,n){var i=t;do{var r=i.prev,s=i.next.next;!pl(r,s)&&ml(r,i,i.next,s)&&_l(r,s)&&_l(s,r)&&(e.push(r.i/n),e.push(i.i/n),e.push(s.i/n),xl(i),xl(i.next),i=t=s),i=i.next}while(i!==t);return Ja(i)}function rl(t,e,n,i,r,s){var o=t;do{for(var a=o.next.next;a!==o.prev;){if(o.i!==a.i&&hl(o,a)){var l=vl(o,a);return o=Ja(o,o.next),l=Ja(l,l.next),tl(o,e,n,i,r,s),void tl(l,e,n,i,r,s)}a=a.next}o=o.next}while(o!==t)}function sl(t,e){return t.x-e.x}function ol(t,e){if(e=function(t,e){var n,i=e,r=t.x,s=t.y,o=-1/0;do{if(s<=i.y&&s>=i.next.y&&i.next.y!==i.y){var a=i.x+(s-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(a<=r&&a>o){if(o=a,a===r){if(s===i.y)return i;if(s===i.next.y)return i.next}n=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!n)return null;if(r===o)return n;var l,c=n,u=n.x,h=n.y,d=1/0;i=n;do{r>=i.x&&i.x>=u&&r!==i.x&&ul(s<h?r:o,s,u,h,s<h?o:r,s,i.x,i.y)&&(l=Math.abs(s-i.y)/(r-i.x),_l(i,t)&&(l<d||l===d&&(i.x>n.x||i.x===n.x&&al(n,i)))&&(n=i,d=l)),i=i.next}while(i!==c);return n}(t,e)){var n=vl(e,t);Ja(e,e.next),Ja(n,n.next)}}function al(t,e){return dl(t.prev,t,e.prev)<0&&dl(e.next,t,t.next)<0}function ll(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)*r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function cl(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function ul(t,e,n,i,r,s,o,a){return(r-o)*(e-a)-(t-o)*(s-a)>=0&&(t-o)*(i-a)-(n-o)*(e-a)>=0&&(n-o)*(s-a)-(r-o)*(i-a)>=0}function hl(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&ml(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(_l(t,e)&&_l(e,t)&&function(t,e){var n=t,i=!1,r=(t.x+e.x)/2,s=(t.y+e.y)/2;do{n.y>s!=n.next.y>s&&n.next.y!==n.y&&r<(n.next.x-n.x)*(s-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}(t,e)&&(dl(t.prev,t,e.prev)||dl(t,e.prev,e))||pl(t,e)&&dl(t.prev,t,t.next)>0&&dl(e.prev,e,e.next)>0)}function dl(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function pl(t,e){return t.x===e.x&&t.y===e.y}function ml(t,e,n,i){var r=fl(dl(t,e,n)),s=fl(dl(t,e,i)),o=fl(dl(n,i,t)),a=fl(dl(n,i,e));return r!==s&&o!==a||!(0!==r||!gl(t,n,e))||!(0!==s||!gl(t,i,e))||!(0!==o||!gl(n,t,i))||!(0!==a||!gl(n,e,i))}function gl(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function fl(t){return t>0?1:t<0?-1:0}function _l(t,e){return dl(t.prev,t,t.next)<0?dl(t,e,t.next)>=0&&dl(t,t.prev,e)>=0:dl(t,e,t.prev)<0||dl(t,t.next,e)<0}function vl(t,e){var n=new bl(t.i,t.x,t.y),i=new bl(e.i,e.x,e.y),r=t.next,s=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,s.next=i,i.prev=s,i}function yl(t,e,n,i){var r=new bl(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function xl(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function bl(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function wl(t,e,n,i){for(var r=0,s=e,o=n-i;s<n;s+=i)r+=(t[o]-t[s])*(t[s+1]+t[o+1]),o=s;return r}function Cl(t,e,n,i,r){Pl(t,e,n||0,i||t.length-1,r||Ol)}function Pl(t,e,n,i,r){for(;i>n;){if(i-n>600){var s=i-n+1,o=e-n+1,a=Math.log(s),l=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*l*(s-l)/s)*(o-s/2<0?-1:1);Pl(t,e,Math.max(n,Math.floor(e-o*l/s+c)),Math.min(i,Math.floor(e+(s-o)*l/s+c)),r)}var u=t[e],h=n,d=i;for(Ml(t,n,e),r(t[i],u)>0&&Ml(t,n,i);h<d;){for(Ml(t,h,d),h++,d--;r(t[h],u)<0;)h++;for(;r(t[d],u)>0;)d--}0===r(t[n],u)?Ml(t,n,d):Ml(t,++d,i),d<=e&&(n=d+1),e<=d&&(i=d-1)}}function Ml(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function Ol(t,e){return t<e?-1:t>e?1:0}function Sl(t,e){const n=t.length;if(n<=1)return[t];const i=[];let r,s;for(let o=0;o<n;o++){const e=z(t[o]);0!==e&&(t[o].area=Math.abs(e),void 0===s&&(s=e<0),s===e<0?(r&&i.push(r),r=[t[o]]):r.push(t[o]))}if(r&&i.push(r),e>1)for(let o=0;o<i.length;o++)i[o].length<=e||(Cl(i[o],e,1,i[o].length-1,kl),i[o]=i[o].slice(0,e));return i}function kl(t,e){return e.area-t.area}function Tl(t,e,n){const i=n.patternDependencies;let r=!1;for(const s of e){const e=s.paint.get(`${t}-pattern`);e.isConstant()||(r=!0);const n=e.constantOr(null);n&&(r=!0,i[n.to]=!0,i[n.from]=!0)}return r}function El(t,e,n,i,r){const s=r.patternDependencies;for(const o of e){const e=o.paint.get(`${t}-pattern`).value;if("constant"!==e.kind){let t=e.evaluate({zoom:i-1},n,{},r.availableImages),a=e.evaluate({zoom:i},n,{},r.availableImages),l=e.evaluate({zoom:i+1},n,{},r.availableImages);t=t&&t.name?t.name:t,a=a&&a.name?a.name:a,l=l&&l.name?l.name:l,s[t]=!0,s[a]=!0,s[l]=!0,n.patterns[o.id]={min:t,mid:a,max:l}}}return n}Ka.deviation=function(t,e,n,i){var r=e&&e.length,s=Math.abs(wl(t,0,r?e[0]*n:t.length,n));if(r)for(var o=0,a=e.length;o<a;o++)s-=Math.abs(wl(t,e[o]*n,o<a-1?e[o+1]*n:t.length,n));var l=0;for(o=0;o<i.length;o+=3){var c=i[o]*n,u=i[o+1]*n,h=i[o+2]*n;l+=Math.abs((t[c]-t[h])*(t[u+1]-t[c+1])-(t[c]-t[u])*(t[h+1]-t[c+1]))}return 0===s&&0===l?0:Math.abs((l-s)/s)},Ka.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},i=0,r=0;r<t.length;r++){for(var s=0;s<t[r].length;s++)for(var o=0;o<e;o++)n.vertices.push(t[r][s][o]);r>0&&n.holes.push(i+=t[r-1].length)}return n},Xa.default=Qa;class Il{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Ss,this.indexArray=new Us,this.indexArray2=new Gs,this.programConfigurations=new Io(t.layers,t.zoom),this.segments=new Ho,this.segments2=new Ho,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,e,n){this.hasPattern=Tl("fill",this.layers,e);const i=this.layers[0].layout.get("fill-sort-key"),r=[];for(const{feature:s,id:o,index:a,sourceLayerIndex:l}of t){const t=this.layers[0]._featureFilter.needGeometry,c=Go(s,t);if(!this.layers[0]._featureFilter.filter(new os(this.zoom),c,n))continue;const u=i?i.evaluate(c,{},n,e.availableImages):void 0,h={id:o,properties:s.properties,type:s.type,sourceLayerIndex:l,index:a,geometry:t?c.geometry:qo(s),patterns:{},sortKey:u};r.push(h)}i&&r.sort((t,e)=>t.sortKey-e.sortKey);for(const s of r){const{geometry:i,index:r,sourceLayerIndex:o}=s;if(this.hasPattern){const t=El("fill",this.layers,s,this.zoom,e);this.patternFeatures.push(t)}else this.addFeature(s,i,r,n,{});e.featureIndex.insert(t[r].feature,i,r,o,this.index)}}update(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)}addFeatures(t,e,n){for(const i of this.patternFeatures)this.addFeature(i,i.geometry,i.index,e,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Wa),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(t,e,n,i,r){for(const s of Sl(e,500)){let t=0;for(const a of s)t+=a.length;const e=this.segments.prepareSegment(t,this.layoutVertexArray,this.indexArray),n=e.vertexLength,i=[],r=[];for(const a of s){if(0===a.length)continue;a!==s[0]&&r.push(i.length/2);const t=this.segments2.prepareSegment(a.length,this.layoutVertexArray,this.indexArray2),e=t.vertexLength;this.layoutVertexArray.emplaceBack(a[0].x,a[0].y),this.indexArray2.emplaceBack(e+a.length-1,e),i.push(a[0].x),i.push(a[0].y);for(let n=1;n<a.length;n++)this.layoutVertexArray.emplaceBack(a[n].x,a[n].y),this.indexArray2.emplaceBack(e+n-1,e+n),i.push(a[n].x),i.push(a[n].y);t.vertexLength+=a.length,t.primitiveLength+=a.length}const o=Xa(i,r);for(let s=0;s<o.length;s+=3)this.indexArray.emplaceBack(n+o[s],n+o[s+1],n+o[s+2]);e.vertexLength+=t,e.primitiveLength+=o.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,r,i)}}ar("FillBucket",Il,{omit:["layers","patternFeatures"]});const Al=new xs({"fill-sort-key":new fs(Bt.layout_fill["fill-sort-key"])});var zl={paint:new xs({"fill-antialias":new gs(Bt.paint_fill["fill-antialias"]),"fill-opacity":new fs(Bt.paint_fill["fill-opacity"]),"fill-color":new fs(Bt.paint_fill["fill-color"]),"fill-outline-color":new fs(Bt.paint_fill["fill-outline-color"]),"fill-translate":new gs(Bt.paint_fill["fill-translate"]),"fill-translate-anchor":new gs(Bt.paint_fill["fill-translate-anchor"]),"fill-pattern":new _s(Bt.paint_fill["fill-pattern"])}),layout:Al};const Dl=Ms([{name:"a_pos_normal_ed",components:4,type:"Int16"}]),Ll=Ms([{name:"a_centroid_pos",components:2,type:"Uint16"}]),{members:Rl}=Dl;var Fl=Bl;function Bl(t,e,n,i,r){this.properties={},this.extent=n,this.type=0,this._pbf=t,this._geometry=-1,this._keys=i,this._values=r,t.readFields(Nl,this,e)}function Nl(t,e,n){1==t?e.id=n.readVarint():2==t?function(t,e){for(var n=t.readVarint()+t.pos;t.pos<n;){var i=e._keys[t.readVarint()],r=e._values[t.readVarint()];e.properties[i]=r}}(n,e):3==t?e.type=n.readVarint():4==t&&(e._geometry=n.pos)}function Ul(t){for(var e,n,i=0,r=0,s=t.length,o=s-1;r<s;o=r++)i+=((n=t[o]).x-(e=t[r]).x)*(e.y+n.y);return i}Bl.types=["Unknown","Point","LineString","Polygon"],Bl.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,n=t.readVarint()+t.pos,i=1,s=0,o=0,a=0,l=[];t.pos<n;){if(s<=0){var c=t.readVarint();i=7&c,s=c>>3}if(s--,1===i||2===i)o+=t.readSVarint(),a+=t.readSVarint(),1===i&&(e&&l.push(e),e=[]),e.push(new r(o,a));else{if(7!==i)throw new Error("unknown command "+i);e&&e.push(e[0].clone())}}return e&&l.push(e),l},Bl.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,n=1,i=0,r=0,s=0,o=1/0,a=-1/0,l=1/0,c=-1/0;t.pos<e;){if(i<=0){var u=t.readVarint();n=7&u,i=u>>3}if(i--,1===n||2===n)(r+=t.readSVarint())<o&&(o=r),r>a&&(a=r),(s+=t.readSVarint())<l&&(l=s),s>c&&(c=s);else if(7!==n)throw new Error("unknown command "+n)}return[o,l,a,c]},Bl.prototype.toGeoJSON=function(t,e,n){var i,r,s=this.extent*Math.pow(2,n),o=this.extent*t,a=this.extent*e,l=this.loadGeometry(),c=Bl.types[this.type];function u(t){for(var e=0;e<t.length;e++){var n=t[e];t[e]=[360*(n.x+o)/s-180,360/Math.PI*Math.atan(Math.exp((180-360*(n.y+a)/s)*Math.PI/180))-90]}}switch(this.type){case 1:var h=[];for(i=0;i<l.length;i++)h[i]=l[i][0];u(l=h);break;case 2:for(i=0;i<l.length;i++)u(l[i]);break;case 3:for(l=function(t){var e=t.length;if(e<=1)return[t];for(var n,i,r=[],s=0;s<e;s++){var o=Ul(t[s]);0!==o&&(void 0===i&&(i=o<0),i===o<0?(n&&r.push(n),n=[t[s]]):n.push(t[s]))}return n&&r.push(n),r}(l),i=0;i<l.length;i++)for(r=0;r<l[i].length;r++)u(l[i][r])}1===l.length?l=l[0]:c="Multi"+c;var d={type:"Feature",geometry:{type:c,coordinates:l},properties:this.properties};return"id"in this&&(d.id=this.id),d};var Hl=jl;function jl(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(Vl,this,e),this.length=this._features.length}function Vl(t,e,n){15===t?e.version=n.readVarint():1===t?e.name=n.readString():5===t?e.extent=n.readVarint():2===t?e._features.push(n.pos):3===t?e._keys.push(n.readString()):4===t&&e._values.push(function(t){for(var e=null,n=t.readVarint()+t.pos;t.pos<n;){var i=t.readVarint()>>3;e=1===i?t.readString():2===i?t.readFloat():3===i?t.readDouble():4===i?t.readVarint64():5===i?t.readVarint():6===i?t.readSVarint():7===i?t.readBoolean():null}return e}(n))}function $l(t,e,n){if(3===t){var i=new Hl(n,n.readVarint()+n.pos);i.length&&(e[i.name]=i)}}jl.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new Fl(this._pbf,e,this.extent,this._keys,this._values)};var ql={VectorTile:function(t,e){this.layers=t.readFields($l,{},e)},VectorTileFeature:Fl,VectorTileLayer:Hl};const Gl=ql.VectorTileFeature.types,Zl=Math.pow(2,13);function Wl(t,e,n,i,r,s,o,a){t.emplaceBack((e<<1)+o,(n<<1)+s,(Math.floor(i*Zl)<<1)+r,Math.round(a))}class Xl{constructor(){this.acc=new r(0,0),this.polyCount=[]}startRing(t){this.currentPolyCount={edges:0,top:0},this.polyCount.push(this.currentPolyCount),this.min||(this.min=new r(t.x,t.y),this.max=new r(t.x,t.y))}append(t,e){this.currentPolyCount.edges++,this.acc._add(t);let n=!!this.borders;const i=this.min,r=this.max;t.x<i.x?(i.x=t.x,n=!0):t.x>r.x&&(r.x=t.x,n=!0),t.y<i.y?(i.y=t.y,n=!0):t.y>r.y&&(r.y=t.y,n=!0),((0===t.x||t.x===jo)&&t.x===e.x)!=((0===t.y||t.y===jo)&&t.y===e.y)&&this.processBorderOverlap(t,e),n&&this.checkBorderIntersection(t,e)}checkBorderIntersection(t,e){e.x<0!=t.x<0&&this.addBorderIntersection(0,nn(e.y,t.y,(0-e.x)/(t.x-e.x))),e.x>jo!=t.x>jo&&this.addBorderIntersection(1,nn(e.y,t.y,(jo-e.x)/(t.x-e.x))),e.y<0!=t.y<0&&this.addBorderIntersection(2,nn(e.x,t.x,(0-e.y)/(t.y-e.y))),e.y>jo!=t.y>jo&&this.addBorderIntersection(3,nn(e.x,t.x,(jo-e.y)/(t.y-e.y)))}addBorderIntersection(t,e){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);const n=this.borders[t];e<n[0]&&(n[0]=e),e>n[1]&&(n[1]=e)}processBorderOverlap(t,e){if(t.x===e.x){if(t.y===e.y)return;const n=0===t.x?0:1;this.addBorderIntersection(n,e.y),this.addBorderIntersection(n,t.y)}else{const n=0===t.y?2:3;this.addBorderIntersection(n,e.x),this.addBorderIntersection(n,t.x)}}centroid(){const t=this.polyCount.reduce((t,e)=>t+e.edges,0);return 0!==t?this.acc.div(t)._round():new r(0,0)}span(){return new r(this.max.x-this.min.x,this.max.y-this.min.y)}intersectsCount(){return this.borders.reduce((t,e)=>t+ +(e[0]!==Number.MAX_VALUE),0)}}class Ql{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new ks,this.centroidVertexArray=new oo,this.indexArray=new Us,this.programConfigurations=new Io(t.layers,t.zoom),this.segments=new Ho,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id),this.enableTerrain=t.enableTerrain}populate(t,e,n){this.features=[],this.hasPattern=Tl("fill-extrusion",this.layers,e),this.featuresOnBorder=[],this.borders=[[],[],[],[]],this.borderDone=[!1,!1,!1,!1],this.tileToMeter=function(t){const e=Math.exp(Math.PI*(1-t.y/(1<<t.z)*2));return 80150034*e/(e*e+1)/jo/(1<<t.z)}(n);for(const{feature:i,id:r,index:s,sourceLayerIndex:o}of t){const t=this.layers[0]._featureFilter.needGeometry,a=Go(i,t);if(!this.layers[0]._featureFilter.filter(new os(this.zoom),a,n))continue;const l={id:r,sourceLayerIndex:o,index:s,geometry:t?a.geometry:qo(i),properties:i.properties,type:i.type,patterns:{}},c=this.layoutVertexArray.length;this.hasPattern?this.features.push(El("fill-extrusion",this.layers,l,this.zoom,e)):this.addFeature(l,l.geometry,s,n,{}),e.featureIndex.insert(i,l.geometry,s,o,this.index,c)}this.sortBorders()}addFeatures(t,e,n){for(const i of this.features){const{geometry:t}=i;this.addFeature(i,t,i.index,e,n)}this.sortBorders()}update(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Rl),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}uploadCentroid(t){0!==this.centroidVertexArray.length&&(this.centroidVertexBuffer?this.needsCentroidUpdate&&this.centroidVertexBuffer.updateData(this.centroidVertexArray):this.centroidVertexBuffer=t.createVertexBuffer(this.centroidVertexArray,Ll.members,!0),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(t,e,n,i,r){const s=this.enableTerrain&&t.properties&&"Polygon"===Gl[t.type]?new Xl:null;for(const a of Sl(e,500)){let e=0,n=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);if(0===a.length||(o=a[0]).every(t=>t.x<=0)||o.every(t=>t.x>=jo)||o.every(t=>t.y<=0)||o.every(t=>t.y>=jo))continue;for(let t=0;t<a.length;t++){const i=a[t];if(0===i.length)continue;e+=i.length;let r=0;s&&s.startRing(i[0]);for(let t=0;t<i.length;t++){const e=i[t];if(t>=1){const o=i[t-1];if(!Kl(e,o)){s&&s.append(e,o),n.vertexLength+4>Ho.MAX_VERTEX_ARRAY_LENGTH&&(n=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const t=e.sub(o)._perp(),i=t.x/(Math.abs(t.x)+Math.abs(t.y)),a=t.y>0?1:0,l=o.dist(e);r+l>32768&&(r=0),Wl(this.layoutVertexArray,e.x,e.y,i,a,0,0,r),Wl(this.layoutVertexArray,e.x,e.y,i,a,0,1,r),r+=l,Wl(this.layoutVertexArray,o.x,o.y,i,a,0,0,r),Wl(this.layoutVertexArray,o.x,o.y,i,a,0,1,r);const c=n.vertexLength;this.indexArray.emplaceBack(c,c+2,c+1),this.indexArray.emplaceBack(c+1,c+2,c+3),n.vertexLength+=4,n.primitiveLength+=2}}}}if(n.vertexLength+e>Ho.MAX_VERTEX_ARRAY_LENGTH&&(n=this.segments.prepareSegment(e,this.layoutVertexArray,this.indexArray)),"Polygon"!==Gl[t.type])continue;const i=[],r=[],l=n.vertexLength;for(let t=0;t<a.length;t++){const e=a[t];if(0!==e.length){e!==a[0]&&r.push(i.length/2);for(let t=0;t<e.length;t++){const n=e[t];Wl(this.layoutVertexArray,n.x,n.y,0,0,1,1,0),i.push(n.x),i.push(n.y),s&&s.currentPolyCount.top++}}}const c=Xa(i,r);for(let t=0;t<c.length;t+=3)this.indexArray.emplaceBack(l+c[t],l+c[t+2],l+c[t+1]);n.primitiveLength+=c.length/3,n.vertexLength+=e}var o;if(s&&s.polyCount.length>0){if(s.borders){s.vertexArrayOffset=this.centroidVertexArray.length;const t=s.borders,e=this.featuresOnBorder.push(s)-1;for(let n=0;n<4;n++)t[n][0]!==Number.MAX_VALUE&&this.borders[n].push(e)}this.encodeCentroid(s.borders?void 0:s.centroid(),s)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,r,i)}sortBorders(){for(let t=0;t<4;t++)this.borders[t].sort((e,n)=>this.featuresOnBorder[e].borders[t][0]-this.featuresOnBorder[n].borders[t][0])}encodeCentroid(t,e,n=!0){let i,r;if(t)if(0!==t.y){const n=e.span()._mult(this.tileToMeter);i=(Math.max(t.x,1)<<3)+Math.min(7,Math.round(n.x/10)),r=(Math.max(t.y,1)<<3)+Math.min(7,Math.round(n.y/10))}else i=Math.ceil(7*(t.x+450)),r=0;else i=0,r=+n;let s=n?this.centroidVertexArray.length:e.vertexArrayOffset;for(const o of e.polyCount){n&&this.centroidVertexArray.resize(this.centroidVertexArray.length+4*o.edges+o.top);for(let t=0;t<2*o.edges;t++)this.centroidVertexArray.emplace(s++,0,r),this.centroidVertexArray.emplace(s++,i,r);for(let t=0;t<o.top;t++)this.centroidVertexArray.emplace(s++,i,r)}}}function Kl(t,e){return t.x===e.x&&(t.x<0||t.x>jo)||t.y===e.y&&(t.y<0||t.y>jo)}ar("FillExtrusionBucket",Ql,{omit:["layers","features"]}),ar("PartMetadata",Xl);var Yl={paint:new xs({"fill-extrusion-opacity":new gs(Bt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new fs(Bt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new gs(Bt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new gs(Bt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new _s(Bt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new fs(Bt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new fs(Bt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new gs(Bt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})};function Jl(t,e){return t.x*e.x+t.y*e.y}function tc(t,e){if(1===t.length){let n=0;const i=e[n++];let r;for(;!r||i.equals(r);)if(r=e[n++],!r)return 1/0;for(;n<e.length;n++){const s=e[n],o=t[0],a=r.sub(i),l=s.sub(i),c=o.sub(i),u=Jl(a,a),h=Jl(a,l),d=Jl(l,l),p=Jl(c,a),m=Jl(c,l),g=u*d-h*h,f=(d*p-h*m)/g,_=(u*m-h*p)/g,v=i.z*(1-f-_)+r.z*f+s.z*_;if(isFinite(v))return v}return 1/0}{let t=1/0;for(const n of e)t=Math.min(t,n.z);return t}}function ec(t){const e=new r(t[0],t[1]);return e.z=t[2],e}function nc(t,e,n,i,r,s,o,a){const l=o*r.getElevationAt(t,e,!0,!0),c=0!==s[0],u=c?0===s[1]?o*(s[0]/7-450):o*function(t,e,n){const i=Math.floor(e[0]/8),r=Math.floor(e[1]/8),s=10*(e[0]-8*i),o=10*(e[1]-8*r),a=t.getElevationAt(i,r,!0,!0),l=t.getMeterToDEM(n),c=Math.floor(.5*(s*l-1)),u=Math.floor(.5*(o*l-1)),h=t.tileCoordToPixel(i,r),d=2*c+1,p=2*u+1,m=function(t,e,n,i,r){return[t.getElevationAtPixel(e,n,!0),t.getElevationAtPixel(e+r,n,!0),t.getElevationAtPixel(e,n+r,!0),t.getElevationAtPixel(e+i,n+r,!0)]}(t,h.x-c,h.y-u,d,p),g=Math.abs(m[0]-m[1]),f=Math.abs(m[2]-m[3]),_=Math.abs(m[0]-m[2])+Math.abs(m[1]-m[3]),v=Math.min(.25,.5*l*(g+f)/d),y=Math.min(.25,.5*l*_/p);return a+Math.max(v*s,y*o)}(r,s,a):l;return{base:l+(0===n)?-1:n,top:c?Math.max(u+i,l+n+2):l+i}}const ic=Ms([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"},{name:"a_linesofar",components:1,type:"Float32"}],4),{members:rc}=ic,sc=Ms([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),{members:oc}=sc,ac=ql.VectorTileFeature.types,lc=Math.cos(Math.PI/180*37.5);class cc{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(t=>{this.gradients[t.id]={}}),this.layoutVertexArray=new Ts,this.layoutVertexArray2=new Es,this.indexArray=new Us,this.programConfigurations=new Io(t.layers,t.zoom),this.segments=new Ho,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,e,n){this.hasPattern=Tl("line",this.layers,e);const i=this.layers[0].layout.get("line-sort-key"),r=[];for(const{feature:l,id:c,index:u,sourceLayerIndex:h}of t){const t=this.layers[0]._featureFilter.needGeometry,e=Go(l,t);if(!this.layers[0]._featureFilter.filter(new os(this.zoom),e,n))continue;const s=i?i.evaluate(e,{},n):void 0,o={id:c,properties:l.properties,type:l.type,sourceLayerIndex:h,index:u,geometry:t?e.geometry:qo(l),patterns:{},sortKey:s};r.push(o)}i&&r.sort((t,e)=>t.sortKey-e.sortKey);const{lineAtlas:s,featureIndex:o}=e,a=this.addConstantDashes(s);for(const l of r){const{geometry:i,index:r,sourceLayerIndex:c}=l;if(a&&this.addFeatureDashes(l,s),this.hasPattern){const t=El("line",this.layers,l,this.zoom,e);this.patternFeatures.push(t)}else this.addFeature(l,i,r,n,s.positions);o.insert(t[r].feature,i,r,c,this.index)}}addConstantDashes(t){let e=!1;for(const n of this.layers){const i=n.paint.get("line-dasharray").value,r=n.layout.get("line-cap").value;if("constant"!==i.kind||"constant"!==r.kind)e=!0;else{const e=r.value,n=i.value;if(!n)continue;t.addDash(n.from,e),t.addDash(n.to,e),n.other&&t.addDash(n.other,e)}}return e}addFeatureDashes(t,e){const n=this.zoom;for(const i of this.layers){const r=i.paint.get("line-dasharray").value,s=i.layout.get("line-cap").value;if("constant"===r.kind&&"constant"===s.kind)continue;let o,a,l,c,u,h;if("constant"===r.kind){const t=r.value;if(!t)continue;o=t.other||t.to,a=t.to,l=t.from}else o=r.evaluate({zoom:n-1},t),a=r.evaluate({zoom:n},t),l=r.evaluate({zoom:n+1},t);"constant"===s.kind?c=u=h=s.value:(c=s.evaluate({zoom:n-1},t),u=s.evaluate({zoom:n},t),h=s.evaluate({zoom:n+1},t)),e.addDash(o,c),e.addDash(a,u),e.addDash(l,h);const d=e.getKey(o,c),p=e.getKey(a,u),m=e.getKey(l,h);t.patterns[i.id]={min:d,mid:p,max:m}}}update(t,e,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,n)}addFeatures(t,e,n){for(const i of this.patternFeatures)this.addFeature(i,i.geometry,i.index,e,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,oc)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,rc),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(t){if(t.properties&&t.properties.hasOwnProperty("mapbox_clip_start")&&t.properties.hasOwnProperty("mapbox_clip_end"))return{start:+t.properties.mapbox_clip_start,end:+t.properties.mapbox_clip_end}}addFeature(t,e,n,i,r){const s=this.layers[0].layout,o=s.get("line-join").evaluate(t,{}),a=s.get("line-cap").evaluate(t,{}),l=s.get("line-miter-limit"),c=s.get("line-round-limit");this.lineClips=this.lineFeatureClips(t);for(const u of e)this.addLine(u,t,o,a,l,c);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,r,i)}addLine(t,e,n,i,r,s){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let e=0;e<t.length-1;e++)this.totalDistance+=t[e].dist(t[e+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}const o="Polygon"===ac[e.type];let a=t.length;for(;a>=2&&t[a-1].equals(t[a-2]);)a--;let l=0;for(;l<a-1&&t[l].equals(t[l+1]);)l++;if(a<(o?3:2))return;"bevel"===n&&(r=1.05);const c=this.overscaling<=16?122880/(512*this.overscaling):0,u=this.segments.prepareSegment(10*a,this.layoutVertexArray,this.indexArray);let h,d,p,m,g;this.e1=this.e2=-1,o&&(h=t[a-2],g=t[l].sub(h)._unit()._perp());for(let f=l;f<a;f++){if(p=f===a-1?o?t[l+1]:void 0:t[f+1],p&&t[f].equals(p))continue;g&&(m=g),h&&(d=h),h=t[f],g=p?p.sub(h)._unit()._perp():m,m=m||g;let e=m.add(g);0===e.x&&0===e.y||e._unit();const _=m.x*g.x+m.y*g.y,v=e.x*g.x+e.y*g.y,y=0!==v?1/v:1/0,x=2*Math.sqrt(2-2*v),b=v<lc&&d&&p,w=m.x*g.y-m.y*g.x>0;if(b&&f>l){const t=h.dist(d);if(t>2*c){const e=h.sub(h.sub(d)._mult(c/t)._round());this.updateDistance(d,e),this.addCurrentVertex(e,m,0,0,u),d=e}}const C=d&&p;let P=C?n:o?"butt":i;if(C&&"round"===P&&(y<s?P="miter":y<=2&&(P="fakeround")),"miter"===P&&y>r&&(P="bevel"),"bevel"===P&&(y>2&&(P="flipbevel"),y<r&&(P="miter")),d&&this.updateDistance(d,h),"miter"===P)e._mult(y),this.addCurrentVertex(h,e,0,0,u);else if("flipbevel"===P){if(y>100)e=g.mult(-1);else{const t=y*m.add(g).mag()/m.sub(g).mag();e._perp()._mult(t*(w?-1:1))}this.addCurrentVertex(h,e,0,0,u),this.addCurrentVertex(h,e.mult(-1),0,0,u)}else if("bevel"===P||"fakeround"===P){const t=-Math.sqrt(y*y-1),e=w?t:0,n=w?0:t;if(d&&this.addCurrentVertex(h,m,e,n,u),"fakeround"===P){const t=Math.round(180*x/Math.PI/20);for(let e=1;e<t;e++){let n=e/t;if(.5!==n){const t=n-.5;n+=n*t*(n-1)*((1.0904+_*(_*(3.55645-1.43519*_)-3.2452))*t*t+(.848013+_*(.215638*_-1.06021)))}const i=g.sub(m)._mult(n)._add(m)._unit()._mult(w?-1:1);this.addHalfVertex(h,i.x,i.y,!1,w,0,u)}}p&&this.addCurrentVertex(h,g,-e,-n,u)}else if("butt"===P)this.addCurrentVertex(h,e,0,0,u);else if("square"===P){const t=d?1:-1;d||this.addCurrentVertex(h,e,t,t,u),this.addCurrentVertex(h,e,0,0,u),d&&this.addCurrentVertex(h,e,t,t,u)}else"round"===P&&(d&&(this.addCurrentVertex(h,m,0,0,u),this.addCurrentVertex(h,m,1,1,u,!0)),p&&(this.addCurrentVertex(h,g,-1,-1,u,!0),this.addCurrentVertex(h,g,0,0,u)));if(b&&f<a-1){const t=h.dist(p);if(t>2*c){const e=h.add(p.sub(h)._mult(c/t)._round());this.updateDistance(h,e),this.addCurrentVertex(e,g,0,0,u),h=e}}}}addCurrentVertex(t,e,n,i,r,s=!1){const o=e.y*i-e.x,a=-e.y-e.x*i;this.addHalfVertex(t,e.x+e.y*n,e.y-e.x*n,s,!1,n,r),this.addHalfVertex(t,o,a,s,!0,-i,r)}addHalfVertex({x:t,y:e},n,i,r,s,o,a){this.layoutVertexArray.emplaceBack((t<<1)+(r?1:0),(e<<1)+(s?1:0),Math.round(63*n)+128,Math.round(63*i)+128,1+(0===o?0:o<0?-1:1),0,this.lineSoFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length);const l=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,l),a.primitiveLength++),s?this.e2=l:this.e1=l}updateScaledDistance(){if(this.lineClips){const t=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=t*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(t,e){this.distance+=t.dist(e),this.updateScaledDistance()}}ar("LineBucket",cc,{omit:["layers","patternFeatures"]});const uc=new xs({"line-cap":new fs(Bt.layout_line["line-cap"]),"line-join":new fs(Bt.layout_line["line-join"]),"line-miter-limit":new gs(Bt.layout_line["line-miter-limit"]),"line-round-limit":new gs(Bt.layout_line["line-round-limit"]),"line-sort-key":new fs(Bt.layout_line["line-sort-key"])});var hc={paint:new xs({"line-opacity":new fs(Bt.paint_line["line-opacity"]),"line-color":new fs(Bt.paint_line["line-color"]),"line-translate":new gs(Bt.paint_line["line-translate"]),"line-translate-anchor":new gs(Bt.paint_line["line-translate-anchor"]),"line-width":new fs(Bt.paint_line["line-width"]),"line-gap-width":new fs(Bt.paint_line["line-gap-width"]),"line-offset":new fs(Bt.paint_line["line-offset"]),"line-blur":new fs(Bt.paint_line["line-blur"]),"line-dasharray":new _s(Bt.paint_line["line-dasharray"]),"line-pattern":new _s(Bt.paint_line["line-pattern"]),"line-gradient":new ys(Bt.paint_line["line-gradient"])}),layout:uc};const dc=new class extends fs{possiblyEvaluate(t,e){return e=new os(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,zoomHistory:e.zoomHistory,transition:e.transition}),super.possiblyEvaluate(t,e)}evaluate(t,e,n,i){return e=y({},e,{zoom:Math.floor(e.zoom)}),super.evaluate(t,e,n,i)}}(hc.paint.properties["line-width"].specification);function pc(t,e){return e>0?e+2*t:t}dc.useIntegerZoom=!0;const mc=Ms([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),gc=Ms([{name:"a_projected_pos",components:3,type:"Float32"}],4);Ms([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const fc=Ms([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]),_c=Ms([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"}]);Ms([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const vc=Ms([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),yc=Ms([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Ms([{name:"triangle",components:3,type:"Uint16"}]),Ms([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Ms([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Ms([{type:"Float32",name:"offsetX"}]),Ms([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var xc=24;const bc=128;function wc(t,e){const{expression:n}=e;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new os(t+1))};if("source"===n.kind)return{kind:"source"};{const{zoomStops:e,interpolationType:i}=n;let r=0;for(;r<e.length&&e[r]<=t;)r++;r=Math.max(0,r-1);let s=r;for(;s<e.length&&e[s]<t+1;)s++;s=Math.min(e.length-1,s);const o=e[r],a=e[s];return"composite"===n.kind?{kind:"composite",minZoom:o,maxZoom:a,interpolationType:i}:{kind:"camera",minZoom:o,maxZoom:a,minSize:n.evaluate(new os(o)),maxSize:n.evaluate(new os(a)),interpolationType:i}}}function Cc(t,{uSize:e,uSizeT:n},{lowerSize:i,upperSize:r}){return"source"===t.kind?i/bc:"composite"===t.kind?nn(i/bc,r/bc,n):e}function Pc(t,e){let n=0,i=0;if("constant"===t.kind)i=t.layoutSize;else if("source"!==t.kind){const{interpolationType:r,minZoom:s,maxZoom:o}=t,a=r?g(wn.interpolationFactor(r,e,s,o),0,1):0;"camera"===t.kind?i=nn(t.minSize,t.maxSize,a):n=a}return{uSizeT:n,uSize:i}}var Mc=Object.freeze({__proto__:null,getSizeData:wc,evaluateSizeForFeature:Cc,evaluateSizeForZoom:Pc,SIZE_PACK_FACTOR:bc});function Oc(t,e,n){return t.sections.forEach(t=>{t.text=function(t,e,n){const i=e.layout.get("text-transform").evaluate(n,{});return"uppercase"===i?t=t.toLocaleUpperCase():"lowercase"===i&&(t=t.toLocaleLowerCase()),ss.applyArabicShaping&&(t=ss.applyArabicShaping(t)),t}(t.text,e,n)}),t}const Sc={"!":"\ufe15","#":"\uff03",$:"\uff04","%":"\uff05","&":"\uff06","(":"\ufe35",")":"\ufe36","*":"\uff0a","+":"\uff0b",",":"\ufe10","-":"\ufe32",".":"\u30fb","/":"\uff0f",":":"\ufe13",";":"\ufe14","<":"\ufe3f","=":"\uff1d",">":"\ufe40","?":"\ufe16","@":"\uff20","[":"\ufe47","\\":"\uff3c","]":"\ufe48","^":"\uff3e",_:"\ufe33","`":"\uff40","{":"\ufe37","|":"\u2015","}":"\ufe38","~":"\uff5e","\xa2":"\uffe0","\xa3":"\uffe1","\xa5":"\uffe5","\xa6":"\uffe4","\xac":"\uffe2","\xaf":"\uffe3","\u2013":"\ufe32","\u2014":"\ufe31","\u2018":"\ufe43","\u2019":"\ufe44","\u201c":"\ufe41","\u201d":"\ufe42","\u2026":"\ufe19","\u2027":"\u30fb","\u20a9":"\uffe6","\u3001":"\ufe11","\u3002":"\ufe12","\u3008":"\ufe3f","\u3009":"\ufe40","\u300a":"\ufe3d","\u300b":"\ufe3e","\u300c":"\ufe41","\u300d":"\ufe42","\u300e":"\ufe43","\u300f":"\ufe44","\u3010":"\ufe3b","\u3011":"\ufe3c","\u3014":"\ufe39","\u3015":"\ufe3a","\u3016":"\ufe17","\u3017":"\ufe18","\uff01":"\ufe15","\uff08":"\ufe35","\uff09":"\ufe36","\uff0c":"\ufe10","\uff0d":"\ufe32","\uff0e":"\u30fb","\uff1a":"\ufe13","\uff1b":"\ufe14","\uff1c":"\ufe3f","\uff1e":"\ufe40","\uff1f":"\ufe16","\uff3b":"\ufe47","\uff3d":"\ufe48","\uff3f":"\ufe33","\uff5b":"\ufe37","\uff5c":"\u2015","\uff5d":"\ufe38","\uff5f":"\ufe35","\uff60":"\ufe36","\uff61":"\ufe12","\uff62":"\ufe41","\uff63":"\ufe42"};var kc=function(t,e,n,i,r){var s,o,a=8*r-i-1,l=(1<<a)-1,c=l>>1,u=-7,h=n?r-1:0,d=n?-1:1,p=t[e+h];for(h+=d,s=p&(1<<-u)-1,p>>=-u,u+=a;u>0;s=256*s+t[e+h],h+=d,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=i;u>0;o=256*o+t[e+h],h+=d,u-=8);if(0===s)s=1-c;else{if(s===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,i),s-=c}return(p?-1:1)*o*Math.pow(2,s-i)},Tc=function(t,e,n,i,r,s){var o,a,l,c=8*s-r-1,u=(1<<c)-1,h=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:s-1,m=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=u?(a=0,o=u):o+h>=1?(a=(e*l-1)*Math.pow(2,r),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,r),o=0));r>=8;t[n+p]=255&a,p+=m,a/=256,r-=8);for(o=o<<r|a,c+=r;c>0;t[n+p]=255&o,p+=m,o/=256,c-=8);t[n+p-m]|=128*g},Ec=Ic;function Ic(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Ic.Varint=0,Ic.Fixed64=1,Ic.Bytes=2,Ic.Fixed32=5;var Ac=4294967296,zc=1/Ac,Dc="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Lc(t){return t.type===Ic.Bytes?t.readVarint()+t.pos:t.pos+1}function Rc(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function Fc(t,e,n){var i=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));n.realloc(i);for(var r=n.pos-1;r>=t;r--)n.buf[r+i]=n.buf[r]}function Bc(t,e){for(var n=0;n<t.length;n++)e.writeVarint(t[n])}function Nc(t,e){for(var n=0;n<t.length;n++)e.writeSVarint(t[n])}function Uc(t,e){for(var n=0;n<t.length;n++)e.writeFloat(t[n])}function Hc(t,e){for(var n=0;n<t.length;n++)e.writeDouble(t[n])}function jc(t,e){for(var n=0;n<t.length;n++)e.writeBoolean(t[n])}function Vc(t,e){for(var n=0;n<t.length;n++)e.writeFixed32(t[n])}function $c(t,e){for(var n=0;n<t.length;n++)e.writeSFixed32(t[n])}function qc(t,e){for(var n=0;n<t.length;n++)e.writeFixed64(t[n])}function Gc(t,e){for(var n=0;n<t.length;n++)e.writeSFixed64(t[n])}function Zc(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function Wc(t,e,n){t[n]=e,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function Xc(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function Qc(t,e,n){1===t&&n.readMessage(Kc,e)}function Kc(t,e,n){if(3===t){const{id:t,bitmap:i,width:r,height:s,left:o,top:a,advance:l}=n.readMessage(Yc,{});e.push({id:t,bitmap:new ja({width:r+6,height:s+6},i),metrics:{width:r,height:s,left:o,top:a,advance:l}})}}function Yc(t,e,n){1===t?e.id=n.readVarint():2===t?e.bitmap=n.readBytes():3===t?e.width=n.readVarint():4===t?e.height=n.readVarint():5===t?e.left=n.readSVarint():6===t?e.top=n.readSVarint():7===t&&(e.advance=n.readVarint())}function Jc(t){let e=0,n=0;for(const o of t)e+=o.w*o.h,n=Math.max(n,o.w);t.sort((t,e)=>e.h-t.h);const i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),n),h:1/0}];let r=0,s=0;for(const o of t)for(let t=i.length-1;t>=0;t--){const e=i[t];if(!(o.w>e.w||o.h>e.h)){if(o.x=e.x,o.y=e.y,s=Math.max(s,o.y+o.h),r=Math.max(r,o.x+o.w),o.w===e.w&&o.h===e.h){const e=i.pop();t<i.length&&(i[t]=e)}else o.h===e.h?(e.x+=o.w,e.w-=o.w):o.w===e.w?(e.y+=o.h,e.h-=o.h):(i.push({x:e.x+o.w,y:e.y,w:e.w-o.w,h:o.h}),e.y+=o.h,e.h-=o.h);break}}return{w:r,h:s,fill:e/(r*s)||0}}Ic.prototype={destroy:function(){this.buf=null},readFields:function(t,e,n){for(n=n||this.length;this.pos<n;){var i=this.readVarint(),r=i>>3,s=this.pos;this.type=7&i,t(r,e,this),this.pos===s&&this.skip(i)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=Zc(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=Xc(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=Zc(this.buf,this.pos)+Zc(this.buf,this.pos+4)*Ac;return this.pos+=8,t},readSFixed64:function(){var t=Zc(this.buf,this.pos)+Xc(this.buf,this.pos+4)*Ac;return this.pos+=8,t},readFloat:function(){var t=kc(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=kc(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,i=this.buf;return e=127&(n=i[this.pos++]),n<128?e:(e|=(127&(n=i[this.pos++]))<<7,n<128?e:(e|=(127&(n=i[this.pos++]))<<14,n<128?e:(e|=(127&(n=i[this.pos++]))<<21,n<128?e:function(t,e,n){var i,r,s=n.buf;if(i=(112&(r=s[n.pos++]))>>4,r<128)return Rc(t,i,e);if(i|=(127&(r=s[n.pos++]))<<3,r<128)return Rc(t,i,e);if(i|=(127&(r=s[n.pos++]))<<10,r<128)return Rc(t,i,e);if(i|=(127&(r=s[n.pos++]))<<17,r<128)return Rc(t,i,e);if(i|=(127&(r=s[n.pos++]))<<24,r<128)return Rc(t,i,e);if(i|=(1&(r=s[n.pos++]))<<31,r<128)return Rc(t,i,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(n=i[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&Dc?function(t,e,n){return Dc.decode(t.subarray(e,n))}(this.buf,e,t):function(t,e,n){for(var i="",r=e;r<n;){var s,o,a,l=t[r],c=null,u=l>239?4:l>223?3:l>191?2:1;if(r+u>n)break;1===u?l<128&&(c=l):2===u?128==(192&(s=t[r+1]))&&(c=(31&l)<<6|63&s)<=127&&(c=null):3===u?(o=t[r+2],128==(192&(s=t[r+1]))&&128==(192&o)&&((c=(15&l)<<12|(63&s)<<6|63&o)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(o=t[r+2],a=t[r+3],128==(192&(s=t[r+1]))&&128==(192&o)&&128==(192&a)&&((c=(15&l)<<18|(63&s)<<12|(63&o)<<6|63&a)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,i+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),i+=String.fromCharCode(c),r+=u}return i}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Ic.Bytes)return t.push(this.readVarint(e));var n=Lc(this);for(t=t||[];this.pos<n;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==Ic.Bytes)return t.push(this.readSVarint());var e=Lc(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==Ic.Bytes)return t.push(this.readBoolean());var e=Lc(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==Ic.Bytes)return t.push(this.readFloat());var e=Lc(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==Ic.Bytes)return t.push(this.readDouble());var e=Lc(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==Ic.Bytes)return t.push(this.readFixed32());var e=Lc(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==Ic.Bytes)return t.push(this.readSFixed32());var e=Lc(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==Ic.Bytes)return t.push(this.readFixed64());var e=Lc(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==Ic.Bytes)return t.push(this.readSFixed64());var e=Lc(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===Ic.Varint)for(;this.buf[this.pos++]>127;);else if(e===Ic.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Ic.Fixed32)this.pos+=4;else{if(e!==Ic.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var n=new Uint8Array(e);n.set(this.buf),this.buf=n,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),Wc(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),Wc(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),Wc(this.buf,-1&t,this.pos),Wc(this.buf,Math.floor(t*zc),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),Wc(this.buf,-1&t,this.pos),Wc(this.buf,Math.floor(t*zc),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var n,i;if(t>=0?(n=t%4294967296|0,i=t/4294967296|0):(i=~(-t/4294967296),4294967295^(n=~(-t%4294967296))?n=n+1|0:(n=0,i=i+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,n){n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,n.buf[n.pos]=127&(t>>>=7)}(n,0,e),function(t,e){var n=(7&t)<<4;e.buf[e.pos++]|=n|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(i,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,n){for(var i,r,s=0;s<e.length;s++){if((i=e.charCodeAt(s))>55295&&i<57344){if(!r){i>56319||s+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):r=i;continue}if(i<56320){t[n++]=239,t[n++]=191,t[n++]=189,r=i;continue}i=r-55296<<10|i-56320|65536,r=null}else r&&(t[n++]=239,t[n++]=191,t[n++]=189,r=null);i<128?t[n++]=i:(i<2048?t[n++]=i>>6|192:(i<65536?t[n++]=i>>12|224:(t[n++]=i>>18|240,t[n++]=i>>12&63|128),t[n++]=i>>6&63|128),t[n++]=63&i|128)}return n}(this.buf,t,this.pos);var n=this.pos-e;n>=128&&Fc(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),Tc(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),Tc(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var n=0;n<e;n++)this.buf[this.pos++]=t[n]},writeRawMessage:function(t,e){this.pos++;var n=this.pos;t(e,this);var i=this.pos-n;i>=128&&Fc(n,i,this),this.pos=n-1,this.writeVarint(i),this.pos+=i},writeMessage:function(t,e,n){this.writeTag(t,Ic.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,Bc,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,Nc,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,jc,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,Uc,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,Hc,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,Vc,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,$c,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,qc,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,Gc,e)},writeBytesField:function(t,e){this.writeTag(t,Ic.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Ic.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Ic.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Ic.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Ic.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Ic.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Ic.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Ic.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Ic.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Ic.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};class tu{constructor(t,{pixelRatio:e,version:n,stretchX:i,stretchY:r,content:s}){this.paddedRect=t,this.pixelRatio=e,this.stretchX=i,this.stretchY=r,this.content=s,this.version=n}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}}class eu{constructor(t,e){const n={},i={};this.haveRenderCallbacks=[];const r=[];this.addImages(t,n,r),this.addImages(e,i,r);const{w:s,h:o}=Jc(r),a=new Va({width:s||1,height:o||1});for(const l in t){const e=t[l],i=n[l].paddedRect;Va.copy(e.data,a,{x:0,y:0},{x:i.x+1,y:i.y+1},e.data)}for(const l in e){const t=e[l],n=i[l].paddedRect,r=n.x+1,s=n.y+1,o=t.data.width,c=t.data.height;Va.copy(t.data,a,{x:0,y:0},{x:r,y:s},t.data),Va.copy(t.data,a,{x:0,y:c-1},{x:r,y:s-1},{width:o,height:1}),Va.copy(t.data,a,{x:0,y:0},{x:r,y:s+c},{width:o,height:1}),Va.copy(t.data,a,{x:o-1,y:0},{x:r-1,y:s},{width:1,height:c}),Va.copy(t.data,a,{x:0,y:0},{x:r+o,y:s},{width:1,height:c})}this.image=a,this.iconPositions=n,this.patternPositions=i}addImages(t,e,n){for(const i in t){const r=t[i],s={x:0,y:0,w:r.data.width+2,h:r.data.height+2};n.push(s),e[i]=new tu(s,r),r.hasRenderCallback&&this.haveRenderCallbacks.push(i)}}patchUpdatedImages(t,e){t.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const n in t.updatedImages)this.patchUpdatedImage(this.iconPositions[n],t.getImage(n),e),this.patchUpdatedImage(this.patternPositions[n],t.getImage(n),e)}patchUpdatedImage(t,e,n){if(!t||!e)return;if(t.version===e.version)return;t.version=e.version;const[i,r]=t.tl;n.update(e.data,void 0,{x:i,y:r})}}ar("ImagePosition",tu),ar("ImageAtlas",eu);const nu={horizontal:1,vertical:2,horizontalOnly:3},iu=-17;class ru{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(t,e){const n=new ru;return n.scale=t||1,n.fontStack=e,n}static forImage(t){const e=new ru;return e.imageName=t,e}}class su{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(t,e){const n=new su;for(let i=0;i<t.sections.length;i++){const r=t.sections[i];r.image?n.addImageSection(r):n.addTextSection(r,e)}return n}length(){return this.text.length}getSection(t){return this.sections[this.sectionIndex[t]]}getSectionIndex(t){return this.sectionIndex[t]}getCharCode(t){return this.text.charCodeAt(t)}verticalizePunctuation(){this.text=function(t){let e="";for(let n=0;n<t.length;n++){const i=t.charCodeAt(n+1)||null,r=t.charCodeAt(n-1)||null;e+=i&&$r(i)&&!Sc[t[n+1]]||r&&$r(r)&&!Sc[t[n-1]]||!Sc[t[n]]?t[n]:Sc[t[n]]}return e}(this.text)}trim(){let t=0;for(let n=0;n<this.text.length&&au[this.text.charCodeAt(n)];n++)t++;let e=this.text.length;for(let n=this.text.length-1;n>=0&&n>=t&&au[this.text.charCodeAt(n)];n--)e--;this.text=this.text.substring(t,e),this.sectionIndex=this.sectionIndex.slice(t,e)}substring(t,e){const n=new su;return n.text=this.text.substring(t,e),n.sectionIndex=this.sectionIndex.slice(t,e),n.sections=this.sections,n}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((t,e)=>Math.max(t,this.sections[e].scale),0)}addTextSection(t,e){this.text+=t.text,this.sections.push(ru.forText(t.scale,t.fontStack||e));const n=this.sections.length-1;for(let i=0;i<t.text.length;++i)this.sectionIndex.push(n)}addImageSection(t){const e=t.image?t.image.name:"";if(0===e.length)return void I("Can't add FormattedSection with an empty image.");const n=this.getNextImageSectionCharCode();n?(this.text+=String.fromCharCode(n),this.sections.push(ru.forImage(e)),this.sectionIndex.push(this.sections.length-1)):I("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function ou(t,e,n,i,r,s,o,a,l,c,u,h,d,p,m,g){const f=su.fromFeature(t,r);let _;h===nu.vertical&&f.verticalizePunctuation();const{processBidirectionalText:v,processStyledBidirectionalText:y}=ss;if(v&&1===f.sections.length){_=[];const t=v(f.toString(),mu(f,c,s,e,i,p,m));for(const e of t){const t=new su;t.text=e,t.sections=f.sections;for(let n=0;n<e.length;
vendor: 2,828 bytes, line 1
1n++)t.sectionIndex.push(0);_.push(t)}}else if(y){_=[];const t=y(f.text,f.sectionIndex,mu(f,c,s,e,i,p,m));for(const e of t){const t=new su;t.text=e[0],t.sectionIndex=e[1],t.sections=f.sections,_.push(t)}}else _=function(t,e){const n=[],i=t.text;let r=0;for(const s of e)n.push(t.substring(r,s)),r=s;return r<i.length&&n.push(t.substring(r,i.length)),n}(f,mu(f,c,s,e,i,p,m));const x=[],b={positionedLines:x,text:f.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:h,iconsInText:!1,verticalizable:!1};return function(t,e,n,i,r,s,o,a,l,c,u,h){let d=0,p=iu,m=0,g=0;const f="right"===a?1:"left"===a?0:.5;let _=0;for(const w of r){w.trim();const r=w.getMaxScale(),o=(r-1)*xc,a={positionedGlyphs:[],lineOffset:0};t.positionedLines[_]=a;const y=a.positionedGlyphs;let x=0;if(!w.length()){p+=s,++_;continue}for(let s=0;s<w.length();s++){const a=w.getSection(s),m=w.getSectionIndex(s),g=w.getCharCode(s);let f=0,_=null,b=null,C=null,P=xc;const M=!(l===nu.horizontal||!u&&!Vr(g)||u&&(au[g]||(v=g,pr(v)||mr(v)||gr(v)||Dr(v)||Br(v))));if(a.imageName){const e=i[a.imageName];if(!e)continue;C=a.imageName,t.iconsInText=t.iconsInText||!0,b=e.paddedRect;const n=e.displaySize;a.scale=a.scale*xc/h,_={width:n[0],height:n[1],left:1,top:-3,advance:M?n[1]:n[0],localGlyph:!1},f=o+(xc-n[1]*a.scale),P=_.advance;const s=M?n[0]*a.scale-xc*r:n[1]*a.scale-xc*r;s>0&&s>x&&(x=s)}else{const t=n[a.fontStack],i=t&&t[g];if(i&&i.rect)b=i.rect,_=i.metrics;else{const t=e[a.fontStack],n=t&&t[g];if(!n)continue;_=n.metrics}f=(r-a.scale)*xc}M?(t.verticalizable=!0,y.push({glyph:g,imageName:C,x:d,y:p+f,vertical:M,scale:a.scale,localGlyph:_.localGlyph,fontStack:a.fontStack,sectionIndex:m,metrics:_,rect:b}),d+=P*a.scale+c):(y.push({glyph:g,imageName:C,x:d,y:p+f,vertical:M,scale:a.scale,localGlyph:_.localGlyph,fontStack:a.fontStack,sectionIndex:m,metrics:_,rect:b}),d+=_.advance*a.scale+c)}0!==y.length&&(m=Math.max(d-c,m),fu(y,0,y.length-1,f,x)),d=0;const b=s*r+x;a.lineOffset=Math.max(x,o),p+=b,g=Math.max(b,g),++_}var v;const y=p-iu,{horizontalAlign:x,verticalAlign:b}=gu(o);(function(t,e,n,i,r,s,o,a,l){const c=(e-n)*r;let u=0;u=s!==o?-a*i-iu:(-i*l+.5)*o;for(const h of t)for(const t of h.positionedGlyphs)t.x+=c,t.y+=u})(t.positionedLines,f,x,b,m,g,s,y,r.length),t.top+=-b*y,t.bottom=t.top+y,t.left+=-x*m,t.right=t.left+m}(b,e,n,i,_,o,a,l,h,c,d,g),!function(t){for(const e of t)if(0!==e.positionedGlyphs.length)return!1;return!0}(x)&&b}const au={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},lu={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function cu(t,e,n,i,r,s){if(e.imageName){const t=i[e.imageName];return t?t.displaySize[0]*e.scale*xc/s+r:0}{const i=n[e.fontStack],s=i&&i[t];return s?s.metrics.advance*e.scale+r:0}}function uu(t,e,n,i){const r=Math.pow(t-e,2);return i?t<e?r/2:2*r:r+Math.abs(n)*n}
1function hu(t,e,n){let i=0;return 10===t&&(i-=1e4),n&&(i+=150),40!==t&&65288!==t||(i+=50),41!==e&&65289!==e||(i+=50),i}function du(t,e,n,i,r,s){let o=null,a=uu(e,n,r,s);for(const l of i){const t=uu(e-l.x,n,r,s)+l.badness;t<=a&&(o=l,a=t)}return{index:t,x:e,priorBreak:o,badness:a}}function pu(t){return t?pu(t.priorBreak).concat(t.index):[]}function mu(t,e,n,i,r,s,o){if("point"!==s)return[];if(!t)return[];const a=[],l=function(t,e,n,i,r,s){let o=0;for(let a=0;a<t.length();a++){const n=t.getSection(a);o+=cu(t.getCharCode(a),n,i,r,e,s)}return o/Math.max(1,Math.ceil(o/n))}(t,e,n,i,r,o),c=t.text.indexOf("\u200b")>=0;let u=0;for(let d=0;d<t.length();d++){const n=t.getSection(d),s=t.getCharCode(d);if(au[s]||(u+=cu(s,n,i,r,e,o)),d<t.length()-1){const e=!((h=s)<11904||!(Cr(h)||wr(h)||Rr(h)||zr(h)||Sr(h)||fr(h)||Pr(h)||yr(h)||kr(h)||Tr(h)||Or(h)||Nr(h)||xr(h)||vr(h)||_r(h)||Mr(h)||br(h)||Lr(h)||Ir(h)||Er(h)));(lu[s]||e||n.imageName)&&a.push(du(d+1,u,l,a,hu(s,t.getCharCode(d+1),e&&c),!1))}}var h;return pu(du(t.length(),u,l,a,0,!0))}function gu(t){let e=.5,n=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:e,verticalAlign:n}}function fu(t,e,n,i,r){if(!i&&!r)return;const s=t[n],o=(t[n].x+s.metrics.advance*s.scale)*i;for(let a=e;a<=n;a++)t[a].x-=o,t[a].y+=r}function _u(t,e,n){const{horizontalAlign:i,verticalAlign:r}=gu(n),s=e[0]-t.displaySize[0]*i,o=e[1]-t.displaySize[1]*r;return{image:t,top:o,bottom:o+t.displaySize[1],left:s,right:s+t.displaySize[0]}}function vu(t,e,n,i,r,s){const o=t.image;let a;if(o.content){const t=o.content,e=o.pixelRatio||1;a=[t[0]/e,t[1]/e,o.displaySize[0]-t[2]/e,o.displaySize[1]-t[3]/e]}const l=e.left*s,c=e.right*s;let u,h,d,p;"width"===n||"both"===n?(p=r[0]+l-i[3],h=r[0]+c+i[1]):(p=r[0]+(l+c-o.displaySize[0])/2,h=p+o.displaySize[0]);const m=e.top*s,g=e.bottom*s;return"height"===n||"both"===n?(u=r[1]+m-i[0],d=r[1]+g+i[2]):(u=r[1]+(m+g-o.displaySize[1])/2,d=u+o.displaySize[1]),{image:o,top:u,right:h,bottom:d,left:p,collisionPadding:a}}class yu extends r{constructor(t,e,n,i){super(t,e),this.angle=n,void 0!==i&&(this.segment=i)}clone(){return new yu(this.x,this.y,this.angle,this.segment)}}function xu(t,e,n,i,r){if(void 0===e.segment)return!0;let s=e,o=e.segment+1,a=0;for(;a>-n/2;){if(o--,o<0)return!1;a-=t[o].dist(s),s=t[o]}a+=t[o].dist(t[o+1]),o++;const l=[];let c=0;for(;a<n/2;){const e=t[o],n=t[o+1];if(!n)return!1;let s=t[o-1].angleTo(e)-e.angleTo(n);for(s=Math.abs((s+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:a,angleDelta:s}),c+=s;a-l[0].distance>i;)c-=l.shift().angleDelta;if(c>r)return!1;o++,a+=e.dist(n)}return!0}function bu(t){let e=0;for(let n=0;n<t.length-1;n++)e+=t[n].dist(t[n+1]);return e}function wu(t,e,n){return t?.6*e*n:0}function Cu(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function Pu(t,e,n,i,r,s){const o=wu(n,r,s),a=Cu(n,i)*s;let l=0;const c=bu(t)/2;for(let u=0;u<t.length-1;u++){const n=t[u],i=t[u+1],r=n.dist(i);if(l+r>c){const s=(c-l)/r,h=nn(n.x,i.x,s),d=nn(n.y,i.y,s),p=new yu(h,d,i.angleTo(n),u);return p._round(),!o||xu(t,p,a,o,e)?p:void 0}l+=r}}function Mu(t,e,n,i,r,s,o,a,l){const c=wu(i,s,o),u=Cu(i,r),h=u*o,d=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-h<e/4&&(e=h+e/4),Ou(t,d?e/2*a%e:(u/2+2*s)*o*a%e,e,c,n,h,d,!1,l)}function Ou(t,e,n,i,r,s,o,a,l){const c=s/2,u=bu(t);let h=0,d=e-n,p=[];for(let m=0;m<t.length-1;m++){const e=t[m],o=t[m+1],a=e.dist(o),g=o.angleTo(e);for(;d+n<h+a;){d+=n;const f=(d-h)/a,_=nn(e.x,o.x,f),v=nn(e.y,o.y,f);if(_>=0&&_<l&&v>=0&&v<l&&d-c>=0&&d+c<=u){const e=new yu(_,v,g,m);e._round(),i&&!xu(t,e,s,i,r)||p.push(e)}}h+=a}return a||p.length||o||(p=Ou(t,h/2,n,i,r,s,o,!0,l)),p}function Su(t,e,n,i,s){const o=[];for(let a=0;a<t.length;a++){const l=t[a];let c;for(let t=0;t<l.length-1;t++){let a=l[t],u=l[t+1];a.x<e&&u.x<e||(a.x<e?a=new r(e,a.y+(e-a.x)/(u.x-a.x)*(u.y-a.y))._round():u.x<e&&(u=new r(e,a.y+(e-a.x)/(u.x-a.x)*(u.y-a.y))._round()),a.y<n&&u.y<n||(a.y<n?a=new r(a.x+(n-a.y)/(u.y-a.y)*(u.x-a.x),n)._round():u.y<n&&(u=new r(a.x+(n-a.y)/(u.y-a.y)*(u.x-a.x),n)._round()),a.x>=i&&u.x>=i||(a.x>=i?a=new r(i,a.y+(i-a.x)/(u.x-a.x)*(u.y-a.y))._round():u.x>=i&&(u=new r(i,a.y+(i-a.x)/(u.x-a.x)*(u.y-a.y))._round()),a.y>=s&&u.y>=s||(a.y>=s?a=new r(a.x+(s-a.y)/(u.y-a.y)*(u.x-a.x),s)._round():u.y>=s&&(u=new r(a.x+(s-a.y)/(u.y-a.y)*(u.x-a.x),s)._round()),c&&a.equals(c[c.length-1])||(c=[a],o.push(c)),c.push(u)))))}}return o}ar("Anchor",yu);var ku=Iu,Tu=Iu,Eu=1e20;function Iu(t,e,n,i,r,s){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=i||.25,this.fontFamily=r||"sans-serif",this.fontWeight=s||"normal",this.radius=n||8;var o=this.size=this.fontSize+2*this.buffer,a=o+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Uint16Array(a),this.useMetrics=void 0!==this.ctx.measureText("A").actualBoundingBoxLeft,this.middle=Math.round(o/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function Au(t,e,n,i,r,s){for(var o=0;o<e;o++)zu(t,o,e,n,i,r,s);for(var a=0;a<n;a++)zu(t,a*e,1,e,i,r,s)}function zu(t,e,n,i,r,s,o){var a,l,c,u;for(s[0]=0,o[0]=-Eu,o[1]=Eu,a=0;a<i;a++)r[a]=t[e+a*n];for(a=1,l=0,c=0;a<i;a++){do{c=(r[a]-r[u=s[l]]+a*a-u*u)/(a-u)/2}while(c<=o[l]&&--l>-1);s[++l]=a,o[l]=c,o[l+1]=Eu}for(a=0,l=0;a<i;a++){for(;o[l+1]<a;)l++;t[e+a*n]=r[u=s[l]]+(a-u)*(a-u)}}Iu.prototype._draw=function(t,e){var n,i,r,s,o,a,l,c,u,h=this.ctx.measureText(t),d=h.width,p=2*this.buffer;e&&this.useMetrics?(o=Math.floor(h.actualBoundingBoxAscent),c=this.buffer+Math.ceil(h.actualBoundingBoxAscent),a=this.buffer,l=this.buffer,n=(i=Math.min(this.size,Math.ceil(h.actualBoundingBoxRight-h.actualBoundingBoxLeft)))+p,r=(s=Math.min(this.size-a,Math.ceil(h.actualBoundingBoxAscent+h.actualBoundingBoxDescent)))+p,this.ctx.textBaseline="alphabetic"):(n=i=this.size,r=s=this.size,o=19*this.fontSize/24,a=l
1=0,c=this.middle,this.ctx.textBaseline="middle"),i&&s&&(this.ctx.clearRect(l,a,i,s),this.ctx.fillText(t,this.buffer,c),u=this.ctx.getImageData(l,a,i,s));var m=new Uint8ClampedArray(n*r);return function(t,e,n,i,r,s,o){s.fill(Eu,0,e*n),o.fill(0,0,e*n);for(var a=(e-i)/2,l=0;l<r;l++)for(var c=0;c<i;c++){var u=(l+a)*e+c+a,h=t.data[4*(l*i+c)+3]/255;if(1===h)s[u]=0,o[u]=Eu;else if(0===h)s[u]=Eu,o[u]=0;else{var d=Math.max(0,.5-h),p=Math.max(0,h-.5);s[u]=d*d,o[u]=p*p}}}(u,n,r,i,s,this.gridOuter,this.gridInner),Au(this.gridOuter,n,r,this.f,this.v,this.z),Au(this.gridInner,n,r,this.f,this.v,this.z),function(t,e,n,i,r,s,o){for(var a=0;a<e*n;a++){var l=Math.sqrt(i[a])-Math.sqrt(r[a]);t[a]=Math.round(255-255*(l/s+o))}}(m,n,r,this.gridOuter,this.gridInner,this.radius,this.cutoff),{data:m,metrics:{width:i,height:s,sdfWidth:n,sdfHeight:r,top:o,left:0,advance:d}}},Iu.prototype.draw=function(t){return this._draw(t,!1).data},Iu.prototype.drawWithMetrics=function(t){return this._draw(t,!0)},ku.default=Tu;const Du={none:0,ideographs:1,all:2};class Lu{constructor(t,e,n){this.requestManager=t,this.localGlyphMode=e,this.localFontFamily=n,this.entries={},this.localGlyphs={200:{},400:{},500:{},900:{}}}setURL(t){this.url=t}getGlyphs(t,e){const n=[];for(const i in t)for(const e of t[i])n.push({stack:i,id:e});_(n,({stack:t,id:e},n)=>{let i=this.entries[t];
1i||(i=this.entries[t]={glyphs:{},requests:{},ranges:{}});let r=i.glyphs[e];if(void 0!==r)return void n(null,{stack:t,id:e,glyph:r});if(r=this._tinySDF(i,t,e),r)return i.glyphs[e]=r,void n(null,{stack:t,id:e,glyph:r});const s=Math.floor(e/256);if(256*s>65535)return void n(new Error("glyphs > 65535 not supported"));if(i.ranges[s])return void n(null,{stack:t,id:e,glyph:r});let o=i.requests[s];o||(o=i.requests[s]=[],Lu.loadGlyphRange(t,s,this.url,this.requestManager,(t,e)=>{if(e){for(const t in e)this._doesCharSupportLocalGlyph(+t)||(i.glyphs[+t]=e[+t]);i.ranges[s]=!0}for(const n of o)n(t,e);delete i.requests[s]})),o.push((i,r)=>{i?n(i):r&&n(null,{stack:t,id:e,glyph:r[e]||null})})},(t,n)=>{if(t)e(t);else if(n){const t={};for(const{stack:e,id:i,glyph:r}of n)(t[e]||(t[e]={}))[i]=r&&{id:r.id,bitmap:r.bitmap.clone(),metrics:r.metrics};e(null,t)}})}_doesCharSupportLocalGlyph(t){return this.localGlyphMode!==Du.none&&(this.localGlyphMode===Du.all?!!this.localFontFamily:!!this.localFontFamily&&(Tr(t)||Ar(t)||xr(t)||br(t)))}_tinySDF(t,e,n){const i=this.localFontFamily;if(!i)return;if(!this._doesCharSupportLocalGlyph(n))return;let r=t.tinySDF;if(!r){let n="400";/bold/i.test(e)?n="900":/medium/i.test(e)?n="500":/light/i.test(e)&&(n="200"),r=t.tinySDF=new Lu.TinySDF(48,6,16,.25,i,n)}if(this.localGlyphs[r.fontWeight][n])return this.localGlyphs[r.fontWeight][n];const{data:s,metrics:o}=r.drawWithMetrics(String.fromCharCode(n)),{sdfWidth:a,sdfHeight:l,width:c,height:u,left:h,top:d,advance:p}=o;return this.localGlyphs[r.fontWeight][n]={id:n,bitmap:new ja({width:a,height:l},s),metrics:{width:c/2,height:u/2,left:h/2,top:d/2-27,advance:p/2,localGlyph:!0}}}}function Ru(t,e,n,i){const s=[],o=t.image,a=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,u=t.right-t.left,h=t.bottom-t.top,d=o.stretchX||[[0,l]],p=o.stretchY||[[0,c]],m=(t,e)=>t+e[1]-e[0],g=d.reduce(m,0),f=p.reduce(m,0),_=l-g,v=c-f;let y=0,x=g,b=0,w=f,C=0,P=_,M=0,O=v;if(o.content&&i){const t=o.content;y=Fu(d,0,t[0]),b=Fu(p,0,t[1]),x=Fu(d,t[0],t[2]),w=Fu(p,t[1],t[3]),C=t[0]-y,M=t[1]-b,P=t[2]-t[0]-x,O=t[3]-t[1]-w}const S=(i,s,l,c)=>{const d=Nu(i.stretch-y,x,u,t.left),p=Uu(i.fixed-C,P,i.stretch,g),m=Nu(s.stretch-b,w,h,t.top),_=Uu(s.fixed-M,O,s.stretch,f),v=Nu(l.stretch-y,x,u,t.left),S=Uu(l.fixed-C,P,l.stretch,g),k=Nu(c.stretch-b,w,h,t.top),T=Uu(c.fixed-M,O,c.stretch,f),E=new r(d,m),I=new r(v,m),A=new r(v,k),z=new r(d,k),D=new r(p/a,_/a),L=new r(S/a,T/a),R=e*Math.PI/180;if(R){const t=Math.sin(R),e=Math.cos(R),n=[e,-t,t,e];E._matMult(n),I._matMult(n),z._matMult(n),A._matMult(n)}const F=i.stretch+i.fixed,B=s.stretch+s.fixed;return{tl:E,tr:I,bl:z,br:A,tex:{x:o.paddedRect.x+1+F,y:o.paddedRect.y+1+B,w:l.stretch+l.fixed-F,h:c.stretch+c.fixed-B},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:D,pixelOffsetBR:L,minFontScaleX:P/a/u,minFontScaleY:O/a/h,isSDF:n}};if(i&&(o.stretchX||o.stretchY)){const t=Bu(d,_,g),e=Bu(p,v,f);for(let n=0;n<t.length-1;n++){const i=t[n],r=t[n+1];for(let t=0;t<e.length-1;t++)s.push(S(i,e[t],r,e[t+1]))}}else s.push(S({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return s}function Fu(t,e,n){let i=0;for(const r of t)i+=Math.max(e,Math.min(n,r[1]))-Math.max(e,Math.min(n,r[0]));return i}function Bu(t,e,n){const i=[{fixed:-1,stretch:0}];for(const[r,s]of t){const t=i[i.length-1];i.push({fixed:r-t.stretch,stretch:t.stretch}
vendor: 4,758 bytes, line 1
1),i.push({fixed:r-t.stretch,stretch:t.stretch+(s-r)})}return i.push({fixed:e+1,stretch:n}),i}function Nu(t,e,n,i){return t/e*n+i}function Uu(t,e,n,i){return t-e*n/i}Lu.loadGlyphRange=function(t,e,n,i,r){const s=256*e,o=s+255,a=i.transformRequest(i.normalizeGlyphsURL(n).replace("{fontstack}",t).replace("{range}",`${s}-${o}`),bt.Glyphs);Mt(a,(t,e)=>{if(t)r(t);else if(e){const t={};for(const n of function(t){return new Ec(t).readFields(Qc,[])}(e))t[n.id]=n;r(null,t)}})},Lu.TinySDF=ku;class Hu{constructor(t=[],e=ju){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(t){this.data.push(t),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){const{data:e,compare:n}=this,i=e[t];for(;t>0;){const r=t-1>>1,s=e[r];if(n(i,s)>=0)break;e[t]=s,t=r}e[t]=i}_down(t){const{data:e,compare:n}=this,i=this.length>>1,r=e[t];for(;t<i;){let i=1+(t<<1),s=e[i];const o=i+1;if(o<this.length&&n(e[o],s)<0&&(i=o,s=e[o]),n(s,r)>=0)break;e[t]=s,t=i}e[t]=r}}function ju(t,e){return t<e?-1:t>e?1:0}function Vu(t,e=1,n=!1){let i=1/0,s=1/0,o=-1/0,a=-1/0;const l=t[0];for(let r=0;r<l.length;r++){const t=l[r];(!r||t.x<i)&&(i=t.x),(!r||t.y<s)&&(s=t.y),(!r||t.x>o)&&(o=t.x),(!r||t.y>a)&&(a=t.y)}const c=Math.min(o-i,a-s);let u=c/2;const h=new Hu([],$u);if(0===c)return new r(i,s);for(let r=i;r<o;r+=c)for(let e=s;e<a;e+=c)h.push(new qu(r+u,e+u,u,t));let d=function(t){let e=0,n=0,i=0;const r=t[0];for(let s=0,o=r.length,a=o-1;s<o;a=s++){const t=r[s],o=r[a],l=t.x*o.y-o.x*t.y;n+=(t.x+o.x)*l,i+=(t.y+o.y)*l,e+=3*l}return new qu(n/e,i/e,0,t)}(t),p=h.length;for(;h.length;){const i=h.pop();(i.d>d.d||!d.d)&&(d=i,n&&console.log("found best %d after %d probes",Math.round(1e4*i.d)/1e4,p)),i.max-d.d<=e||(u=i.h/2,h.push(new qu(i.p.x-u,i.p.y-u,u,t)),h.push(new qu(i.p.x+u,i.p.y-u,u,t)),h.push(new qu(i.p.x-u,i.p.y+u,u,t)),h.push(new qu(i.p.x+u,i.p.y+u,u,t)),p+=4)}return n&&(console.log(`num probes: ${p}`),console.log(`best distance: ${d.d}`)),d.p}function $u(t,e){return e.max-t.max}function qu(t,e,n,i){this.p=new r(t,e),this.h=n,this.d=function(t,e){let n=!1,i=1/0;for(let r=0;r<e.length;r++){const s=e[r];for(let e=0,r=s.length,o=r-1;e<r;o=e++){const r=s[e],a=s[o];r.y>t.y!=a.y>t.y&&t.x<(a.x-r.x)*(t.y-r.y)/(a.y-r.y)+r.x&&(n=!n),i=Math.min(i,na(t,r,a))}}return(n?1:-1)*Math.sqrt(i)}(this.p,i),this.max=this.d+this.h*Math.SQRT2}const Gu=Number.POSITIVE_INFINITY;function Zu(t,e){return e[1]!==Gu?function(t,e,n){let i=0,r=0;switch(e=Math.abs(e),n=Math.abs(n),t){case"top-right":case"top-left":case"top":r=n-7;break;case"bottom-right":case"bottom-left":case"bottom":r=7-n}switch(t){case"top-right":case"bottom-right":case"right":i=-e;break;case"top-left":case"bottom-left":case"left":i=e}return[i,r]}(t,e[0],e[1]):function(t,e){let n=0,i=0;e<0&&(e=0);const r=e/Math.sqrt(2);switch(t){case"top-right":case"top-left":i=r-7;break;case"bottom-right":case"bottom-left":i=7-r;break;case"bottom":i=7-e;break;case"top":i=e-7}switch(t){case"top-right":case"bottom-right":n=-r;break;case"top-left":case"bottom-left":n=r;break;case"left":n=e;break;case"right":n=-e}return[n,i]}(t,e[0])}function Wu(t,e,n,i,r,s,o,a){t.createArrays(),t.tilePixelRatio=jo/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;const l=t.layers[0].layout,c=t.layers[0]._unevaluatedLayout._values,u={};if("composite"===t.textSizeData.kind){const{minZoom:e,maxZoom:n}=t.textSizeData;u.compositeTextSizes=[c["text-size"].possiblyEvaluate(new os(e),o),c["text-size"].possiblyEvaluate(new os(n),o)]}if("composite"===t.iconSizeData.kind){const{minZoom:e,maxZoom:n}=t.iconSizeData;u.compositeIconSizes=[c["icon-size"].possiblyEvaluate(new os(e),o),c["icon-size"].possiblyEvaluate(new os(n),o)]}u.layoutTextSize=c["text-size"].possiblyEvaluate(new os(a+1),o),u.layoutIconSize=c["icon-size"].possiblyEvaluate(new os(a+1),o),u.textMaxSize=c["text-size"].possiblyEvaluate(new os(18),o);const h="map"===l.get("text-rotation-alignment")&&"point"!==l.get("symbol-placement"),d=l.get("text-keep-upright"),p=l.get("text-size");for(const m of t.features){const s=l.get("text-font").evaluate(m,{},o).join(","),a=p.evaluate(m,{},o),c=u.layoutTextSize.evaluate(m,{},o),g=(u.layoutIconSize.evaluate(m,{},o),{horizontal:{},vertical:void 0}),f=m.text;let _,v=[0,0];if(f){const i=f.toString(),u=l.get("text-letter-spacing").evaluate(m,{},o)*xc,p=l.get("text-line-height").evaluate(m,{},o)*xc,_=Hr(i)?u:0,y=l.get("text-anchor").evaluate(m,{},o),x=l.get("text-variable-anchor");if(!x){const t=l.get("text-radial-offset").evaluate(m,{},o);v=t?Zu(y,[t*xc,Gu]):l.get("text-offset").evaluate(m,{},o).map(t=>t*xc)}
1let b=h?"center":l.get("text-justify").evaluate(m,{},o);const w=l.get("symbol-placement"),C="point"===w?l.get("text-max-width").evaluate(m,{},o)*xc:0,P=()=>{t.allowVerticalPlacement&&Ur(i)&&(g.vertical=ou(f,e,n,r,s,C,p,y,"left",_,v,nu.vertical,!0,w,c,a))};if(!h&&x){const t="auto"===b?x.map(t=>Xu(t)):[b];let i=!1;for(let o=0;o<t.length;o++){const l=t[o];if(!g.horizontal[l])if(i)g.horizontal[l]=g.horizontal[0];else{const t=ou(f,e,n,r,s,C,p,"center",l,_,v,nu.horizontal,!1,w,c,a);t&&(g.horizontal[l]=t,i=1===t.positionedLines.length)}}P()}else{"auto"===b&&(b=Xu(y));const t=ou(f,e,n,r,s,C,p,y,b,_,v,nu.horizontal,!1,w,c,a);t&&(g.horizontal[b]=t),P(),Ur(i)&&h&&d&&(g.vertical=ou(f,e,n,r,s,C,p,y,b,_,v,nu.vertical,!1,w,c,a))}}let y=!1;if(m.icon&&m.icon.name){const e=i[m.icon.name];e&&(_=_u(r[m.icon.name],l.get("icon-offset").evaluate(m,{},o),l.get("icon-anchor").evaluate(m,{},o)),y=e.sdf,void 0===t.sdfIcons?t.sdfIcons=e.sdf:t.sdfIcons!==e.sdf&&I("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(e.pixelRatio!==t.pixelRatio||0!==l.get("icon-rotate").constantOr(1))&&(t.iconsNeedLinear=!0))}const x=Ju(g.horizontal)||g.vertical;t.iconsInText||(t.iconsInText=!!x&&x.iconsInText),(x||_)&&Qu(t,m,g,_,i,u,c,0,v,y,o)}s&&t.generateCollisionDebugBuffers(a,t.collisionBoxArray)}function Xu(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Qu(t,e,n,i,r,s,o,a,l,c,h){let d=s.textMaxSize.evaluate(e,{},h);void 0===d&&(d=o);const p=t.layers[0].layout,m=p.get("icon-offset").evaluate(e,{},h),g=Ju(n.horizontal),f=o/24,_=t.tilePixelRatio*f,v=t.tilePixelRatio*d/24,y=t.tilePixelRatio*p.get("symbol-spacing"),x=p.get("text-padding")*t.tilePixelRatio,b=p.get("icon-padding")*t.tilePixelRatio,w=u(p.get("text-max-angle")),C="map"===p.get("text-rotation-alignment")&&"point"!==p.get("symbol-placement"),P="map"===p.get("icon-rotation-alignment")&&"point"!==p.get("symbol-placement"),M=p.get("symbol-placement"),O=y/2,S=p.get("icon-text-fit");let k;i&&"none"!==S&&(t.allowVerticalPlacement&&n.vertical&&(k=vu(i,n.vertical,S,p.get("icon-text-fit-padding"),m,f)),g&&(i=vu(i,g,S,p.get("icon-text-fit-padding"),m,f)));const T=(a,u)=>{u.x<0||u.x>=jo||u.y<0||u.y>=jo||function(t,e,n,i,r,s,o,a,l,c,u,h,d,p,m,g,f,_,v,y,x,b,w,C,P){const M=t.addToLineVertexArray(e,n);let O,S,k,T,E,A,z,D=0,L=0,R=0,F=0,B=-1,N=-1;const U={};let H=ho(""),j=0,V=0;if(void 0===a._unevaluatedLayout.getValue("text-radial-offset")?[j,V]=a.layout.get("text-offset").evaluate(x,{},C).map(t=>t*xc):(j=a.layout.get("text-radial-offset").evaluate(x,{},C)*xc,V=Gu),t.allowVerticalPlacement&&i.vertical){const t=i.vertical;if(m)A=eh(t),o&&(z=eh(o));else{const n=a.layout.get("text-rotate").evaluate(x,{},C)+90;k=th(l,e,c,u,h,t,0,p,n),o&&(T=th(l,e,c,u,h,o,0,_,n))}}if(r){const n=a.layout.get("icon-rotate").evaluate(x,{},C),i="none"!==a.layout.get("icon-text-fit"),s=Ru(r,n,w,i),d=o?Ru(o,n,w,i):void 0;S=th(l,e,c,u,h,r,0,_,n),D=4*s.length;const p=t.iconSizeData;let m=null;"source"===p.kind?(m=[bc*a.layout.get("icon-size").evaluate(x,{},C)],m[0]>Ku&&I(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):"composite"===p.kind&&(m=[bc*b.compositeIconSizes[0].evaluate(x,{},C),bc*b.compositeIconSizes[1].evaluate(x,{},C)],(m[0]>Ku||m[1]>Ku)&&I(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),t.addSymbols(t.icon,s,m,y,v,x,!1,e,M.lineStartIndex,M.lineLength,-1,C),B=t.icon.placedSymbolArray.length-1,d&&(L=4*d.length,t.addSymbols(t.icon,d,m,y,v,x,nu.vertical,e,M.lineStartIndex,M.lineLength,-1,C),N=t.icon.placedSymbolArray.length-1)}for(const I in i.horizontal){const n=i.horizontal[I];O||(H=ho(n.text),m?E=eh(n):O=th(l,e,c,u,h,n,0,p,a.layout.get("text-rotate").evaluate(x,{},C)));const r=1===n.positionedLines.length;if(R+=Yu(t,e,n,s,a,m,x,g,M,i.vertical?nu.horizontal:nu.horizontalOnly,r?Object.keys(i.horizontal):[I],U,B,b,C),r)break}i.vertical&&(F+=Yu(t,e,i.vertical,s,a,m,x,g,M,nu.vertical,["vertical"],U,N,b,C));let $=-1;const q=(t,e)=>t?Math.max(t,e):e;$=q(E,$),$=q(A,$),$=q(z,$);const G=$>-1?1:0;G&&($*=P/xc),t.glyphOffsetArray.length>=uh.MAX_GLYPHS&&I("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==x.sortKey&&t.addToSortKey
1Ranges(t.symbolInstances.length,x.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,U.right>=0?U.right:-1,U.center>=0?U.center:-1,U.left>=0?U.left:-1,U.vertical||-1,B,N,H,void 0!==O?O:t.collisionBoxArray.length,void 0!==O?O+1:t.collisionBoxArray.length,void 0!==k?k:t.collisionBoxArray.length,void 0!==k?k+1:t.collisionBoxArray.length,void 0!==S?S:t.collisionBoxArray.length,void 0!==S?S+1:t.collisionBoxArray.length,T||t.collisionBoxArray.length,T?T+1:t.collisionBoxArray.length,c,R,F,D,L,G,0,d,j,V,$)}(t,u,a,n,i,r,k,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,_,x,C,l,0,b,P,m,e,s,c,h,o)};if("line"===M)for(const u of Su(e.geometry,0,0,jo,jo)){const e=Mu(u,y,w,n.vertical||g,i,24,v,t.overscaling,jo);for(const n of e){const e=g;e&&nh(t,e.text,O,n)||T(u,n)}}else if("line-center"===M){for(const u of e.geometry)if(u.length>1){const t=Pu(u,w,n.vertical||g,i,24,v);t&&T(u,t)}}else if("Polygon"===e.type)for(const u of Sl(e.geometry,0)){const t=Vu(u,16);T(u[0],new yu(t.x,t.y,0))}else if("LineString"===e.type)for(const u of e.geometry)T(u,new yu(u[0].x,u[0].y,0));else if("Point"===e.type)for(const u of e.geometry)for(const t of u)T([t],new yu(t.x,t.y,0))}const Ku=32640;function Yu(t,e,n,i,s,o,a,l,c,u,h,d,p,m,g){const f=function(t,e,n,i,s,o,a,l){const c=i.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,u=[];for(const h of e.positionedLines)for(const t of h.positionedGlyphs){if(!t.rect)continue;const i=t.rect||{};let o=4,d=!0,p=1,m=0;const g=(s||l)&&t.vertical,f=t.metrics.advance*t.scale/2;if(l&&e.verticalizable){const e=(t.scale-1)*xc,n=(xc-t.metrics.width*t.scale)/2;m=h.lineOffset/2-(t.imageName?-n:e)}if(t.imageName){const e=a[t.imageName];d=e.sdf,p=e.pixelRatio,o=1/p}const _=s?[t.x+f,t.y]:[0,0];let v=s?[0,0]:[t.x+f+n[0],t.y+n[1]-m],y=[0,0];g&&(y=v,v=[0,0]);const x=(t.metrics.left-o)*t.scale-f+v[0],b=(-t.metrics.top-o)*t.scale+v[1],w=x+i.w*t.scale/(p*(t.localGlyph?2:1)),C=b+i.h*t.scale/(p*(t.localGlyph?2:1)),P=new r(x,b),M=new r(w,b),O=new r(x,C),S=new r(w,C);if(g){const e=new r(-f,f-iu),n=-Math.PI/2,i=12-f,s=new r(22-i,-(t.imageName?i:0)),o=new r(...y);P._rotateAround(n,e)._add(s)._add(o),M._rotateAround(n,e)._add(s)._add(o),O._rotateAround(n,e)._add(s)._add(o),S._rotateAround(n,e)._add(s)._add(o)}if(c){const t=Math.sin(c),e=Math.cos(c),n=[e,-t,t,e];P._matMult(n),M._matMult(n),O._matMult(n),S._matMult(n)}const k=new r(0,0),T=new r(0,0);u.push({tl:P,tr:M,bl:O,br:S,tex:i,writingMode:e.writingMode,glyphOffset:_,sectionIndex:t.sectionIndex,isSDF:d,pixelOffsetTL:k,pixelOffsetBR:T,minFontScaleX:0,minFontScaleY:0})}return u}(0,n,l,s,o,a,i,t.allowVerticalPlacement),_=t.textSizeData;let v=null;"source"===_.kind?(v=[bc*s.layout.get("text-size").evaluate(a,{},g)],v[0]>Ku&&I(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):"composite"===_.kind&&(v=[bc*m.compositeTextSizes[0].evaluate(a,{},g),bc*m.compositeTextSizes[1].evaluate(a,{},g)],(v[0]>Ku||v[1]>Ku)&&I(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),t.addSymbols(t.text,f,v,l,o,a,u,e,c.lineStartIndex,c.lineLength,p,g);for(const r of h)d[r]=t.text.placedSymbolArray.length-1;return 4*f.length}function Ju(t){for(const e in t)return t[e];return null}function th(t,e,n,i,s,o,a,l,c){let h=o.top,d=o.bottom,p=o.left,m=o.right;const g=o.collisionPadding;if(g&&(p-=g[0],h-=g[1],m+=g[2],d+=g[3]),c){const t=new r(p,h),e=new r(m,h),n=new r(p,d),i=new r(m,d),s=u(c);t._rotate(s),e._rotate(s),n._rotate(s),i._rotate(s),p=Math.min(t.x,e.x,n.x,i.x),m=Math.max(t.x,e.x,n.x,i.x),h=Math.min(t.y,e.y,n.y,i.y),d=Math.max(t.y,e.y,n.y,i.y)}return t.emplaceBack(e.x,e.y,p,h,m,d,l,n,i,s),t.length-1}function eh(t){t.collisionPadding&&(t.top-=t.collisionPadding[1],t.bottom+=t.collisionPadding[3]);const e=t.bottom-t.top;return e>0?Math.max(10,e):null}function nh(t,e,n,i){const r=t.compareText;if(e in r){const t=r[e];for(let e=t.length-1;e>=0;e--)if(i.dist(t[e])<n)return!0}else r[e]=[];return r[e].push(i),!1}const ih=ql.VectorTileFeature.types,rh=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function sh(t,e,n,i,r,s,o,a,l,c,u,h,d){const p=a?Math.min(Ku,Math.round(a[0])):0,m=a?Math.min(Ku,Math.round(a[1])):0;t.emplaceBack(e,n,Math.round(32*i),Math.round(32*r),s,o,(p<<1)+(l?1:0),m,16*c,16*u,256*h,256*d)}function oh(t,e,n){t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n)}function ah(t){for(const e of t.sections)if(Zr(e.text))return!0;return!1}class lh{constructor(t){this.layoutVertexArray=new zs,this.indexArray=new Us,this.programConfigurations=t,this.segments=new Ho,this.dynamicLayoutVertexArray=new Ds,this.opacityVertexArray=new Ls,this.placedSymbolArray=new Ys}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(t,e,n,i){this.isEmpty()||(n&&(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,mc.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,gc.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,rh,!0),this.opacityVertexBuffer.itemSize=1),(n||i)&&this.programConfigurations.upload(t))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}}ar("SymbolBuffers",lh);class ch{constructor(t,e,n){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new n,this.segments=new Ho,this.collisionVertexArray=new Ns,this.collisionVertexArrayExt=new Ds}upload(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,fc.members,!0),this.collisionVertexBufferExt=t.createVertexBuffer(this.collisionVertexArrayExt,_c.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.de
vendor: 6,353 bytes, line 1
1stroy())}}ar("CollisionBuffers",ch);class uh{constructor(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=ga([]),this.placementViewportMatrix=ga([]);const e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=wc(this.zoom,e["text-size"]),this.iconSizeData=wc(this.zoom,e["icon-size"]);const n=this.layers[0].layout,i=n.get("symbol-sort-key"),r=n.get("symbol-z-order");this.canOverlap=n.get("text-allow-overlap")||n.get("icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==r&&void 0!==i.constantOr(1),this.sortFeaturesByY=("viewport-y"===r||"auto"===r&&!this.sortFeaturesByKey)&&this.canOverlap,"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map(t=>nu[t])),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id),this.sourceID=t.sourceID}createArrays(){this.text=new lh(new Io(this.layers,this.zoom,t=>/^text/.test(t))),this.icon=new lh(new Io(this.layers,this.zoom,t=>/^icon/.test(t))),this.glyphOffsetArray=new eo,this.lineVertexArray=new no,this.symbolInstances=new to}calculateGlyphDependencies(t,e,n,i,r){for(let s=0;s<t.length;s++)if(e[t.charCodeAt(s)]=!0,(n||i)&&r){const n=Sc[t.charAt(s)];n&&(e[n.charCodeAt(0)]=!0)}}populate(t,e,n){const i=this.layers[0],r=i.layout,s=r.get("text-font"),o=r.get("text-field"),a=r.get("icon-image"),l=("constant"!==o.value.kind||o.value.value instanceof pe&&!o.value.value.isEmpty()||o.value.value.toString().length>0)&&("constant"!==s.value.kind||s.value.value.length>0),c="constant"!==a.value.kind||!!a.value.value||Object.keys(a.parameters).length>0,u=r.get("symbol-sort-key");if(this.features=[],!l&&!c)return;const h=e.iconDependencies,d=e.glyphDependencies,p=e.availableImages,m=new os(this.zoom);for(const{feature:g,id:f,index:_,sourceLayerIndex:v}of t){const t=i._featureFilter.needGeometry,e=Go(g,t);if(!i._featureFilter.filter(m,e,n))continue;let o,a;if(t||(e.geometry=qo(g)),l){const t=i.getValueAndResolveTokens("text-field",e,n,p),r=pe.factory(t);ah(r)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===is()||this.hasRTLText&&ss.isParsed())&&(o=Oc(r,i,e))}if(c){const t=i.getValueAndResolveTokens("icon-image",e,n,p);a=t instanceof me?t:me.fromString(t)}if(!o&&!a)continue;const y=this.sortFeaturesByKey?u.evaluate(e,{},n):void 0;if(this.features.push({id:f,text:o,icon:a,index:_,sourceLayerIndex:v,geometry:e.geometry,properties:g.properties,type:ih[g.type],sortKey:y}),a&&(h[a.name]=!0),o){const t=s.evaluate(e,{},n).join(","),i="map"===r.get("text-rotation-alignment")&&"point"!==r.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(nu.vertical)>=0;for(const e of o.sections)if(e.image)h[e.image.name]=!0;else{const n=Ur(o.toString()),r=e.fontStack||t,s=d[r]=d[r]||{};this.calculateGlyphDependencies(e.text,s,i,this.allowVerticalPlacement,n)}}}"line"===r.get("symbol-placement")&&(this.features=function(t){const e={},n={},i=[];let r=0;function s(e){i.push(t[e]),r++}function o(t,e,r){const s=n[t];return delete n[t],n[e]=s,i[s].geometry[0].pop(),i[s].geometry[0]=i[s].geometry[0].concat(r[0]),s}function a(t,n,r){const s=e[n];return delete e[n],e[t]=s,i[s].geometry[0].shift(),i[s].geometry[0]=r[0].concat(i[s].geometry[0]),s}function l(t,e,n){const i=n?e[0][e[0].length-1]:e[0][0];return`${t}:${i.x}:${i.y}`}for(let c=0;c<t.length;c++){const u=t[c],h=u.geometry,d=u.text?u.text.toString():null;if(!d){s(c);continue}const p=l(d,h),m=l(d,h,!0);if(p in n&&m in e&&n[p]!==e[m]){const t=a(p,m,h),r=o(p,m,i[t].geometry);delete e[p],delete n[m],n[l(d,i[r].geometry,!0)]=r,i[t].geometry=null}else p in n?o(p,m,h):m in e?a(p,m,h):(s(c),e[p]=r-1,n[m]=r-1)}return i.filter(t=>t.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((t,e)=>t.sortKey-e.sortKey)}update(t,e,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,n),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,n))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(t,e){const n=this.lineVertexArray.length;if(void 0!==t.segment){let n=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]);const r={};for(let s=t.segment+1;s<e.length;s++)r[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:n},s<e.length-1&&(n+=e[s+1].dist(e[s]));for(let s=t.segment||0;s>=0;s--)r[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s>0&&(i+=e[s-1].dist(e[s]));for(let t=0;t<e.length;t++){const e=r[t];this.lineVertexArray.emplaceBack(e.x,e.y,e.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}}addSymbols(t,e,n,i,r,s,o,a,l,c,u,h){const d=t.indexArray,p=t.layoutVertexArray,m=t.segments.prepareSegment(4*e.length,p,d,this.canOverlap?s.sortKey:void 0),g=this.glyphOffsetArray.length,f=m.vertexLength,_=this.allowVerticalPlacement&&o===nu.vertical?Math.PI/2:0,v=s.text&&s.text.sections;for(let y=0;y<e.length;y++){const{tl:i,tr:r,bl:o,br:l,tex:c,pixelOffsetTL:u,pixelOffsetBR:g,minFontScaleX:f,minFontScaleY:x,glyphOffset:b,isSDF:w,sectionIndex:C}=e[y],P=m.vertexLength,M=b[1];sh(p,a.x,a.y,i.x,M+i.y,c.x,c.y,n,w,u.x,u.y,f,x),sh(p,a.x,a.y,r.x,M+r.y,c.x+c.w,c.y,n,w,g.x,u.y,f,x),sh(p,a.x,a.y,o.x,M+o.y,c.x,c.y+c.h,n,w,u.x,g.y,f,x),sh(p,a.x,a.y,l.x,M+l.y,c.x+c.w,c.y+c.h,n,w,g.x,g.y,f,x),oh(t.dynamicLayoutVertexArray,a,_),d.emplaceBack(P,P+1,P+2),d.emplaceBack(P
vendor: 16,837 bytes, line 1
1+1,P+2,P+3),m.vertexLength+=4,m.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(b[0]),y!==e.length-1&&C===e[y+1].sectionIndex||t.programConfigurations.populatePaintArrays(p.length,s,s.index,{},h,v&&v[C])}t.placedSymbolArray.emplaceBack(a.x,a.y,g,this.glyphOffsetArray.length-g,f,l,c,a.segment,n?n[0]:0,n?n[1]:0,i[0],i[1],o,0,!1,0,u)}_commitLayoutVertex(t,e,n,i,r){t.emplaceBack(e.x,e.y,n,i,Math.round(r.x),Math.round(r.y))}_addCollisionDebugVertices(t,e,n,i,s){const o=n.segments.prepareSegment(4,n.layoutVertexArray,n.indexArray),a=o.vertexLength,l=s.anchorX,c=s.anchorY;for(let r=0;r<4;r++)n.collisionVertexArray.emplaceBack(0,0,0,0);n.collisionVertexArrayExt.emplaceBack(e,-t.padding,-t.padding),n.collisionVertexArrayExt.emplaceBack(e,t.padding,-t.padding),n.collisionVertexArrayExt.emplaceBack(e,t.padding,t.padding),n.collisionVertexArrayExt.emplaceBack(e,-t.padding,t.padding),this._commitLayoutVertex(n.layoutVertexArray,i,l,c,new r(t.x1,t.y1)),this._commitLayoutVertex(n.layoutVertexArray,i,l,c,new r(t.x2,t.y1)),this._commitLayoutVertex(n.layoutVertexArray,i,l,c,new r(t.x2,t.y2)),this._commitLayoutVertex(n.layoutVertexArray,i,l,c,new r(t.x1,t.y2)),o.vertexLength+=4;const u=n.indexArray;u.emplaceBack(a,a+1),u.emplaceBack(a+1,a+2),u.emplaceBack(a+2,a+3),u.emplaceBack(a+3,a),o.primitiveLength+=4}_addTextDebugCollisionBoxes(t,e,n,i,r,s){for(let o=i;o<r;o++){const i=n.get(o),r=this.getSymbolInstanceTextSize(t,s,e,o);this._addCollisionDebugVertices(i,r,this.textCollisionBox,i.anchorPoint,s)}}_addIconDebugCollisionBoxes(t,e,n,i,r,s){for(let o=i;o<r;o++){const i=n.get(o),r=this.getSymbolInstanceIconSize(t,e,o);this._addCollisionDebugVertices(i,r,this.iconCollisionBox,i.anchorPoint,s)}}generateCollisionDebugBuffers(t,e){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new ch(Fs,vc.members,Gs),this.iconCollisionBox=new ch(Fs,vc.members,Gs);const n=Pc(this.iconSizeData,t),i=Pc(this.textSizeData,t);for(let r=0;r<this.symbolInstances.length;r++){const s=this.symbolInstances.get(r);this._addTextDebugCollisionBoxes(i,t,e,s.textBoxStartIndex,s.textBoxEndIndex,s),this._addTextDebugCollisionBoxes(i,t,e,s.verticalTextBoxStartIndex,s.verticalTextBoxEndIndex,s),this._addIconDebugCollisionBoxes(n,t,e,s.iconBoxStartIndex,s.iconBoxEndIndex,s),this._addIconDebugCollisionBoxes(n,t,e,s.verticalIconBoxStartIndex,s.verticalIconBoxEndIndex,s)}}getSymbolInstanceTextSize(t,e,n,i){const r=this.text.placedSymbolArray.get(e.rightJustifiedTextSymbolIndex>=0?e.rightJustifiedTextSymbolIndex:e.centerJustifiedTextSymbolIndex>=0?e.centerJustifiedTextSymbolIndex:e.leftJustifiedTextSymbolIndex>=0?e.leftJustifiedTextSymbolIndex:e.verticalPlacedTextSymbolIndex>=0?e.verticalPlacedTextSymbolIndex:i),s=Cc(this.textSizeData,t,r)/xc;return this.tilePixelRatio*s}getSymbolInstanceIconSize(t,e,n){const i=this.icon.placedSymbolArray.get(n),r=Cc(this.iconSizeData,t,i);return this.tilePixelRatio*r}_commitDebugCollisionVertexUpdate(t,e,n){t.emplaceBack(e,-n,-n),t.emplaceBack(e,n,-n),t.emplaceBack(e,n,n),t.emplaceBack(e,-n,n)}_updateTextDebugCollisionBoxes(t,e,n,i,r,s){for(let o=i;o<r;o++){const i=n.get(o),r=this.getSymbolInstanceTextSize(t,s,e,o);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,r,i.padding)}}_updateIconDebugCollisionBoxes(t,e,n,i,r){for(let s=i;s<r;s++){const i=n.get(s),r=this.getSymbolInstanceIconSize(t,e,s);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,r,i.padding)}}updateCollisionDebugBuffers(t,e){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();const n=Pc(this.iconSizeData,t),i=Pc(this.textSizeData,t);for(let r=0;r<this.symbolInstances.length;r++){const s=this.symbolInstances.get(r);this._updateTextDebugCollisionBoxes(i,t,e,s.textBoxStartIndex,s.textBoxEndIndex,s),this._updateTextDebugCollisionBoxes(i,t,e,s.verticalTextBoxStartIndex,s.verticalTextBoxEndIndex,s),this._updateIconDebugCollisionBoxes(n,t,e,s.iconBoxStartIndex,s.iconBoxEndIndex),this._updateIconDebugCollisionBoxes(n,t,e,s.verticalIconBoxStartIndex,s.verticalIconBoxEndIndex)}this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexBufferExt&&this.textCollisionBox.collisionVertexBufferExt.updateData(this.textCollisionBox.collisionVertexArrayExt),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexBufferExt&&this.iconCollisionBox.collisionVertexBufferExt.updateData(this.iconCollisionBox.collisionVertexArrayExt)}_deserializeCollisionBoxesForSymbol(t,e,n,i,r,s,o,a,l){const c={};for(let u=e;u<n;u++){const e=t.get(u);c.textBox={x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,padding:e.padding,anchorPointX:e.anchorPointX,anchorPointY:e.anchorPointY},c.textFeatureIndex=e.featureIndex;break}for(let u=i;u<r;u++){const e=t.get(u);c.verticalTextBox={x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,padding:e.padding,anchorPointX:e.anchorPointX,anchorPointY:e.anchorPointY},c.verticalTextFeatureIndex=e.featureIndex;break}for(let u=s;u<o;u++){const e=t.get(u);c.iconBox={x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,padding:e.padding,anchorPointX:e.anchorPointX,anchorPointY:e.anchorPointY},c.iconFeatureIndex=e.featureIndex;break}for(let u=a;u<l;u++){const e=t.get(u);c.verticalIconBox={x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,padding:e.padding,anchorPointX:e.anchorPointX,anchorPointY:e.anchorPointY},c.verticalIconFeatureIndex=e.featureIndex;break}return c}deserializeCollisionBoxes(t){this.collisionArrays=[];for(let e=0;e<this.symbolInstances.length;e++){const n=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(t,e){const n=t.placedSymbolArray.get(e),i=n.vertexStartIndex+4*n.numGlyphs;for(let r=n.vertexStartIndex;r<i;r+=4)t.indexArray.emplaceBack(r,r+1,r+2),t.indexArray.emplaceBack(r+1,r+2,r+3)}getSortedSymbolIndexes(t){if(this.sortedAngle===t&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;const e=Math.sin(t),n=Math.cos(t),i=[],r=[],s=[];for(let o=0;o<this.symbolInstances.length;++o){s.push(o);const t=this.symbolInstances.get(o);i.push(0|Math.round(e*t.anchorX+n*t.anchorY)),r.push(t.featureIndex)}return s.sort((t,e)=>i[t]-i[e]||r[e]-r[t]),s}addToSortKeyRanges(t,e){const n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===e?n.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})}sortFeatures(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const t of this.symbolInstanceIndexes){const e=this.symbolInstances.get(t);this.featureSortOrder.push(e.featureIndex),[e.rightJustifiedTextSymbolIndex,e.centerJustifiedTextSymbolIndex,e.leftJustifiedTextSymbolIndex].forEach((t,e,n)=>{t>=0&&n.indexOf(t)===e&&this.addIndicesForPlacedSymbol(this.text,t)}),e.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,e.verticalPlacedTextSymbolIndex),e.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,e.placedIconSymbolIndex),e.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,e.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}ar("SymbolBucket",uh,{omit:["layers","collisionBoxArray","features","compareText"]}),uh.MAX_GLYPHS=65535,uh.addDynamicAttributes=oh;const hh=new xs({"symbol-placement":new gs(Bt.layout_symbol["symbol-placement"]),"symbol-spacing":new gs(Bt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new gs(Bt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new fs(Bt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new gs(Bt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new gs(Bt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new gs(Bt.layout_symbol["icon-ignore-placement"]),"icon-optional":new gs(Bt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new gs(Bt.layout_symbol["icon-rotation-alignment"]),"icon-size":new fs(Bt.layout_symbol["icon-size"]),"icon-text-fit":new gs(Bt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new gs(Bt.layout_symbol["icon-text-fit-padding"]),"icon-image":new fs(Bt.layout_symbol["icon-image"]),"icon-rotate":new fs(Bt.layout_symbol["icon-rotate"]),"icon-padding":new gs(Bt.layout_symbol["icon-padding"]),"icon-keep-upright":new gs(Bt.layout_symbol["icon-keep-upright"]),"icon-offset":new fs(Bt.layout_symbol["icon-offset"]),"icon-anchor":new fs(Bt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new gs(Bt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new gs(Bt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new gs(Bt.layout_symbol["text-rotation-alignment"]),"text-field":new fs(Bt.layout_symbol["text-field"]),"text-font":new fs(Bt.layout_symbol["text-font"]),"text-size":new fs(Bt.layout_symbol["text-size"]),"text-max-width":new fs(Bt.layout_symbol["text-max-width"]),"text-line-height":new fs(Bt.layout_symbol["text-line-height"]),"text-letter-spacing":new fs(Bt.layout_symbol["text-letter-spacing"]),"text-justify":new fs(Bt.layout_symbol["text-justify"]),"text-radial-offset":new fs(Bt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new gs(Bt.layout_symbol["text-variable-anchor"]),"text-anchor":new fs(Bt.layout_symbol["text-anchor"]),"text-max-angle":new gs(Bt.layout_symbol["text-max-angle"]),"text-writing-mode":new gs(Bt.layout_symbol["text-writing-mode"]),"text-rotate":new fs(Bt.layout_symbol["text-rotate"]),"text-padding":new gs(Bt.layout_symbol["text-padding"]),"text-keep-upright":new gs(Bt.layout_symbol["text-keep-upright"]),"text-transform":new fs(Bt.layout_symbol["text-transform"]),"text-offset":new fs(Bt.layout_symbol["text-offset"]),"text-allow-overlap":new gs(Bt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new gs(Bt.layout_symbol["text-ignore-placement"]),"text-optional":new gs(Bt.layout_symbol["text-optional"])});var dh={paint:new xs({"icon-opacity":new fs(Bt.paint_symbol["icon-opacity"]),"icon-color":new fs(Bt.paint_symbol["icon-color"]),"icon-halo-color":new fs(Bt.paint_symbol["icon-halo-color"]),"icon-halo-width":new fs(Bt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new fs(Bt.paint_symbol["icon-halo-blur"]),"icon-translate":new gs(Bt.paint_symbol["icon-translate"]),"icon-translate-anchor":new gs(Bt.paint_symbol["icon-translate-anchor"]),"text-opacity":new fs(Bt.paint_symbol["text-opacity"]),"text-color":new fs(Bt.paint_symbol["text-color"],{runtimeType:Qt,getOverride:t=>t.textColor,hasOverride:t=>!!t.textColor}),"text-halo-color":new fs(Bt.paint_symbol["text-halo-color"]),"text-halo-width":new fs(Bt.paint_symbol["text-halo-width"]),"text-halo-blur":new fs(Bt.paint_symbol["text-halo-blur"]),"text-translate":new gs(Bt.paint_symbol["text-translate"]),"text-translate-anchor":new gs(Bt.paint_symbol["text-translate-anchor"])}),layout:hh};class ph{constructor(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Gt,this.defaultValue=t}evaluate(t){if(t.formattedSection){const e=this.defaultValue.property.overrides;if(e&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default}eachChild(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}ar("FormatSectionOverride",ph,{omit:["defaultValue"]});class mh extends Bo{constructor(t){super(t,dh)}recalculate(t,e){if(super.recalculate(t,e),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){const t=this.layout.get("text-writing-mode");if(t){const e=[];for(const n of t)e.indexOf(n)<0&&e.push(n);this.layout._values["text-writing-mode"]=e}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(t,e,n,i){const r=this.layout.get(t).evaluate(e,{},n,i),s=this._unevaluatedLayout._values[t];return s.isDataDriven()||ci(s.value)||!r?r:function(t,e){return e.replace(/{([^{}]+)}/g,(e,n)=>n in t?String(t[n]):"")}(e.properties,r)}createBucket(t){return new uh(t)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const t of dh.paint.overridableProperties){if(!mh.hasPaintOverride(this.layout,t))continue;const e=this.paint.get(t),n=new ph(e),i=new li(n,e.property.specification);let r=null;r="constant"===e.value.kind||"source"===e.value.kind?new hi("source",i):new di("composite",i,e.value.zoomStops,e.value._interpolationType),this.paint._values[t]=new ps(e.property,r,e.parameters)}}_handleOverridablePaintPropertyUpdate(t,e,n){return!(!this.layout||e.isDataDriven()||n.isDataDriven())&&mh.hasPaintOverride(this.layout,t)}static hasPaintOverride(t,e){const n=t.get("text-field"),i=dh.paint.properties[e];let r=!1;const s=t=>{for(const e of t)if(i.overrides&&i.overrides.hasOverride(e))return void(r=!0)};if("constant"===n.value.kind&&n.value.value instanceof pe)s(n.value.value.sections);else if("source"===n.value.kind){const t=e=>{r||(e instanceof ye&&_e(e.value)===te?s(e.value.sections):e instanceof Ce?s(e.sections):e.eachChild(t))},e=n.value;e._styleExpression&&t(e._styleExpression.expression)}return r}getProgramConfiguration(t){return new Eo(this,t)}}var gh={paint:new xs({"background-color":new gs(Bt.paint_background["background-color"]),"background-pattern":new vs(Bt.paint_background["background-pattern"]),"background-opacity":new gs(Bt.paint_background["background-opacity"])})},fh={paint:new xs({"raster-opacity":new gs(Bt.paint_raster["raster-opacity"]),"raster-hue-rotate":new gs(Bt.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new gs(Bt.paint_raster["raster-brightness-min"]),"raster-brightness-max":new gs(Bt.paint_raster["raster-brightness-max"]),"raster-saturation":new gs(Bt.paint_raster["raster-saturation"]),"raster-contrast":new gs(Bt.paint_raster["raster-contrast"]),"raster-resampling":new gs(Bt.paint_raster["raster-resampling"]),"raster-fade-duration":new gs(Bt.paint_raster["raster-fade-duration"])})};class _h extends Bo{constructor(t){super(t,{}),this.implementation=t}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){}serialize(){}onAdd(t){this.implementation.onAdd&&this.implementation.onAdd(t,t.painter.context.gl)}onRemove(t){this.implementation.onRemove&&this.implementation.onRemove(t,t.painter.context.gl)}}var vh={paint:new xs({"sky-type":new gs(Bt.paint_sky["sky-type"]),"sky-atmosphere-sun":new gs(Bt.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new gs(Bt.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new gs(Bt.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new gs(Bt.paint_sky["sky-gradient-radius"]),"sky-gradient":new ys(Bt.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new gs(Bt.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new gs(Bt.paint_sky["sky-atmosphere-color"]),"sky-opacity":new gs(Bt.paint_sky["sky-opacity"])})};function yh(t,e,n){const i=xa(0,0,1),r=Aa(Ia());return function(t,e,n){n*=.5;var i=e[0],r=e[1],s=e[2],o=e[3],a=Math.sin(n),l=Math.cos(n);t[0]=i*l-s*a,t[1]=r*l+o*a,t[2]=s*l+i*a,t[3]=o*l-r*a}(r,r,n?-u(t)+Math.PI:u(t)),za(r,r,-u(e)),Ma(i,i,r),Pa(i,i)}
1const xh={circle:class extends Bo{constructor(t){super(t,da)}createBucket(t){return new Wo(t)}queryRadius(t){const e=t;return aa("circle-radius",this,e)+aa("circle-stroke-width",this,e)+la(this.paint.get("circle-translate"))}queryIntersectsFeature(t,e,n,i,r,s,o,a){const l="map"===this.paint.get("circle-pitch-alignment");if(l&&t.queryGeometry.isAboveHorizon)return!1;const c=ua(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),s.angle,t.pixelToTileUnitsFactor),u=this.paint.get("circle-radius").evaluate(e,n)+this.paint.get("circle-stroke-width").evaluate(e,n),h=l?u*t.pixelToTileUnitsFactor:u;for(const d of i)for(const e of d){const n=e.add(c),i=a&&s.elevation?s.elevation.exaggeration()*a.getElevationAt(n.x,n.y,!0):0,r=l?n:Da(n,i,o),u=l?t.tilespaceRays.map(t=>Fa(t,i)):t.queryGeometry.screenGeometry;let d=h;const p=Ea([],[e.x,e.y,i,1],o);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?d*=p[3]/s.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(d*=s.cameraToCenterDistance/p[3]),Qo(u,r,d))return!0}return!1}getProgramIds(){return["circle"]}getProgramConfiguration(t){return new Eo(this,t)}},heatmap:class extends Bo{createBucket(t){return new Ba(t)}constructor(t){super(t,$a),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(t){"heatmap-color"===t&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=qa({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(){return 0}queryIntersectsFeature(){return!1}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getProgramConfiguration(t){return new Eo(this,t)}},hillshade:class extends Bo{constructor(t){super(t,Ga)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare"]}getProgramConfiguration(t){return new Eo(this,t)}},fill:class extends Bo{constructor(t){super(t,zl)}getProgramIds(){const t=this.paint.get("fill-pattern"),e=t&&t.constantOr(1),n=[e?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&n.push(e&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),n}getProgramConfiguration(t){return new Eo(this,t)}recalculate(t,e){super.recalculate(t,e);const n=this.paint._values["fill-outline-color"];"constant"===n.value.kind&&void 0===n.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(t){return new Il(t)}queryRadius(){return la(this.paint.get("fill-translate"))}queryIntersectsFeature(t,e,n,i,r,s){return!t.queryGeometry.isAboveHorizon&&Ko(ca(t.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),s.angle,t.pixelToTileUnitsFactor),i)}isTileClipped(){return!0}},"fill-extrusion":class extends Bo{constructor(t){super(t,Yl)}createBucket(t){return new Ql(t)}queryRadius(){return la(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}getProgramConfiguration(t){return new Eo(this,t)}queryIntersectsFeature(t,e,n,i,s,o,a,l,c){const u=ua(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),o.angle,t.pixelToTileUnitsFactor),h=this.paint.get("fill-extrusion-height").evaluate(e,n),d=this.paint.get("fill-extrusion-base").evaluate(e,n),p=[0,0],m=l&&o.elevation,g=o.elevation?o.elevation.exaggeration():1;if(m){const e=t.tile.getBucket(this).centroidVertexArray,n=c+1;if(n<e.length){const t=e.get(n);p[0]=t.a_centroid_pos0,p[1]=t.a_centroid_pos1}}if(0===p[0]&&1===p[1])return!1;const f=function(t,e,n,i,s,o,a,l,c){return o?function(t,e,n,i,r,s,o,a,l){const c=[],u=[],h=[0,0,0,1];for(const d of t){const t=[],p=[];for(const c of d){const u=c.x+i.x,d=c.y+i.y,m=nc(u,d,e,n,s,o,a,l);h[0]=u,h[1]=d,h[2]=m.base,h[3]=1,Ea(h,h,r),h[3]=Math.max(h[3],1e-5);const g=ec([h[0]/h[3],h[1]/h[3],h[2]/h[3]]);h[0]=u,h[1]=d,h[2]=m.top,h[3]=1,Ea(h,h,r),h[3]=Math.max(h[3],1e-5);const f=ec([h[0]/h[3],h[1]/h[3],h[2]/h[3]]);t.push(g),p.push(f)}c.push(t),u.push(p)}return[c,u]}(t,e,n,i,s,o,a,l,c):function(t,e,n,i,s){const o=[],a=[],l=s[8]*e,c=s[9]*e,u=s[10]*e,h=s[11]*e,d=s[8]*n,p=s[9]*n,m=s[10]*n,g=s[11]*n;for(const f of t){const t=[],e=[];for(const n of f){const o=n.x+i.x,a=n.y+i.y,f=s[0]*o+s[4]*a+s[12],_=s[1]*o+s[5]*a+s[13],v=s[2]*o+s[6]*a+s[14],y=s[3]*o+s[7]*a+s[15],x=f+l,b=_+c,w=v+u,C=Math.max(y+h,1e-5),P=f+d,M=_+p,O=v+m,
vendor: 10,966 bytes, line 1
1S=Math.max(y+g,1e-5),k=new r(x/C,b/C);k.z=w/C,t.push(k);const T=new r(P/S,M/S);T.z=O/S,e.push(T)}o.push(t),a.push(e)}return[o,a]}(t,e,n,i,s)}(i,d,h,u,a,m?l:null,p,g,o.center.lat),_=t.queryGeometry;return function(t,e,n){let i=1/0;Ko(n,e)&&(i=tc(n,e[0]));for(let r=0;r<e.length;r++){const s=e[r],o=t[r];for(let t=0;t<s.length-1;t++){const e=s[t],r=[e,s[t+1],o[t+1],o[t],e];Xo(n,r)&&(i=Math.min(i,tc(n,r)))}}return i!==1/0&&i}(f[0],f[1],_.isPointQuery()?_.screenBounds:_.screenGeometry)}},line:class extends Bo{constructor(t){super(t,hc),this.gradientVersion=0}_handleSpecialPaintPropertyUpdate(t){if("line-gradient"===t){const t=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=t._styleExpression&&t._styleExpression.expression instanceof en,this.gradientVersion=(this.gradientVersion+1)%a}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(t,e){super.recalculate(t,e),this.paint._values["line-floorwidth"]=dc.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)}createBucket(t){return new cc(t)}getProgramIds(){const t=this.paint.get("line-dasharray"),e=this.paint.get("line-pattern").constantOr(1),n=this.paint.get("line-gradient");return[e?"linePattern":t?"lineSDF":n?"lineGradient":"line"]}getProgramConfiguration(t){return new Eo(this,t)}queryRadius(t){const e=t,n=pc(aa("line-width",this,e),aa("line-gap-width",this,e)),i=aa("line-offset",this,e);return n/2+Math.abs(i)+la(this.paint.get("line-translate"))}queryIntersectsFeature(t,e,n,i,s,o){if(t.queryGeometry.isAboveHorizon)return!1;const a=ca(t.tilespaceGeometry,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),o.angle,t.pixelToTileUnitsFactor),l=t.pixelToTileUnitsFactor/2*pc(this.paint.get("line-width").evaluate(e,n),this.paint.get("line-gap-width").evaluate(e,n)),c=this.paint.get("line-offset").evaluate(e,n);return c&&(i=function(t,e){const n=[],i=new r(0,0);for(let r=0;r<t.length;r++){const s=t[r],o=[];for(let t=0;t<s.length;t++){const n=s[t-1],r=s[t],a=s[t+1],l=0===t?i:r.sub(n)._unit()._perp(),c=t===s.length-1?i:a.sub(r)._unit()._perp(),u=l._add(c)._unit();u._mult(1/(u.x*c.x+u.y*c.y)),o.push(u._mult(e)._add(r))}n.push(o)}return n}(i,c*t.pixelToTileUnitsFactor)),function(t,e,n){for(let i=0;i<e.length;i++){const r=e[i];if(t.length>=3)for(let e=0;e<r.length;e++)if(ra(t,r[e]))return!0;if(Yo(t,r,n))return!0}return!1}(a,i,l)}isTileClipped(){return!0}},symbol:mh,background:class extends Bo{constructor(t){super(t,gh)}getProgramIds(){return[this.paint.get("background-pattern")?"backgroundPattern":"background"]}},raster:class extends Bo{constructor(t){super(t,fh)}getProgramIds(){return["raster"]}},sky:class extends Bo{constructor(t){super(t,vh),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(t){"sky-gradient"===t?this._updateColorRamp():"sky-atmosphere-sun"!==t&&"sky-atmosphere-halo-color"!==t&&"sky-atmosphere-color"!==t&&"sky-atmosphere-sun-intensity"!==t||(this._skyboxInvalidated=!0)}_updateColorRamp(){this.colorRamp=qa({expression:this._transitionablePaint._values["sky-gradient"].value.expression,evaluationKey:"skyRadialProgress"}),this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null)}needsSkyboxCapture(t){if(this._skyboxInvalidated||!this.skyboxTexture||!this.skyboxGeometry)return!0;if(!this.paint.get("sky-atmosphere-sun")){const e=t.style.light.properties.get("position");return this._lightPosition.azimuthal!==e.azimuthal||this._lightPosition.polar!==e.polar}}getCenter(t,e){const n=this.paint.get("sky-type");if("atmosphere"===n){const n=this.paint.get("sky-atmosphere-sun"),i=!n,r=t.style.light,s=r.properties.get("position");return i&&"viewport"===r.properties.get("anchor")&&I("The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly."),i?yh(s.azimuthal,90-s.polar,e):yh(n[0],90-n[1],e)}if("gradient"===n){const t=this.paint.get("sky-gradient-center");return yh(t[0],90-t[1],e)}}is3D(){return!1}isSky(){return!0}markSkyboxValid(t){this._skyboxInvalidated=!1,this._lightPosition=t.style.light.properties.get("position")}hasOffscreenPass(){return!0}getProgramIds(){const t=this.paint.get("sky-type");return"atmosphere"===t?["skyboxCapture","skybox"]:"gradient"===t?["skyboxGradient"]:null}}},{HTMLImageElement:bh,HTMLCanvasElement:wh,HTMLVideoElement:Ch,ImageData:Ph,ImageBitmap:Mh}=o;class Oh{constructor(t,e,n,i){this.context=t,this.format=n,this.texture=t.gl.createTexture(),this.update(e,i)}update(t,e,n){const{width:i,height:r}=t,s=!(this.size&&this.size[0]===i&&this.size[1]===r||n),{context:o}=this,{gl:a}=o;if(this.useMipmap=Boolean(e&&e.useMipmap),a.bindTexture(a.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===a.RGBA&&(!e||!1!==e.premultiply)),s)this.size=[i,r],t instanceof bh||t instanceof wh||t instanceof Ch||t instanceof Ph||Mh&&t instanceof Mh?a.texImage2D(a.TEXTURE_2D,0,this.format,this.format,a.UNSIGNED_BYTE,t):a.texImage2D(a.TEXTURE_2D,0,this.format,i,r,0,this.format,a.UNSIGNED_BYTE,t.data);else{const{x:e,y:s}=n||{x:0,y:0};t instanceof bh||t instanceof wh||t instanceof Ch||t instanceof Ph||Mh&&t instanceof Mh?a.texSubImage2D(a.TEXTURE_2D,0,e,s,a.RGBA,a.UNSIGNED_BYTE,t):a.texSubImage2D(a.TEXTURE_2D,0,e,s,i,r,a.RGBA,a.UNSIGNED_BYTE,t.data)}this.useMipmap&&this.isSizePowerOfTwo()&&a.generateMipmap(a.TEXTURE_2D)}bind(t,e,n){const{context:i}=this,{gl:r}=i;r.bindTexture(r.TEXTURE_2D,this.texture),n!==r.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(n=r.LINEAR),t!==this.filter&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,n||t),this.filter=t),e!==this.wrap&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,e),this.wrap=e)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null}}class Sh{constructor(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))}setNorthEast(t){return this._ne=t instanceof Th?new Th(t.lng,t.lat):Th.convert(t),this}setSouthWest(t){return this._sw=t instanceof Th?new Th(t.lng,t.lat):Th.convert(t),this}extend(t){const e=this._sw,n=this._ne;let i,r;if(t instanceof Th)i=t,r=t;else{if(!(t instanceof Sh))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Sh.convert(t)):this.extend(Th.convert(t)):this;if(i=t._sw,r=t._ne,!i||!r)return this}return e||n?(e.lng=Math.min(i.lng,e.lng),e.lat=Math.min(i.lat,e.lat),n.lng=Math.max(r.lng,n.lng),n.lat=Math.max(r.lat,n.lat)):(this._sw=new Th(i.lng,i.lat),this._ne=new Th(r.lng,r.lat)),this}getCenter(){return new Th((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new Th(this.getWest(),this.getNorth())}getSouthEast(){return new Th(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){const{lng:e,lat:n}=Th.convert(t);let i=this._sw.lng<=e&&e<=this._ne.lng;return this._sw.lng>this._ne.lng&&(i=this._sw.lng>=e&&e>=this._ne.lng),this._sw.lat<=n&&n<=this._ne.lat&&i}static convert(t){return!t||t instanceof Sh?t:new Sh(t)}}const kh=6371008.8;class Th{constructor(t,e){if(isNaN(t)||isNaN(e))throw new Error(`Invalid LngLat object: (${t}, ${e})`);if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Th(f(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(t){const e=Math.PI/180,n=this.lat*e,i=t.lat*e,r=Math.sin(n)*Math.sin(i)+Math.cos(n)*Math.cos(i)*Math.cos((t.lng-this.lng)*e);return kh*Math.acos(Math.min(r,1))}toBounds(t=0){const e=360*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return new Sh(new Th(this.lng-n,this.lat-e),new Th(this.lng+n,this.lat+e))}static convert(t){if(t instanceof Th)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new Th(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new Th(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}const Eh=2*Math.PI*kh;function Ih(t){return Eh*Math.cos(t*Math.PI/180)}function Ah(t){return(180+t)/360}function zh(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Dh(t,e){return t/Ih(e)}function Lh(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}function Rh(t,e){return t*Ih(Lh(e))}class Fh{constructor(t,e,n=0){this.x=+t,this.y=+e,this.z=+n}static fromLngLat(t,e=0){const n=Th.convert(t);return new Fh(Ah(n.lng),zh(n.lat),Dh(e,n.lat))}toLngLat(){return new Th(360*this.x-180,Lh(this.y))}toAltitude(){return Rh(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Eh*(t=Lh(this.y),1/Math.cos(t*Math.PI/180));var t}}class Bh{constructor(t,e){this.width=t,this.height=e,this.nextRow=0,this.image=new ja({width:t,height:e}),this.positions={},this.uploaded=!1}getDash(t,e){const n=this.getKey(t,e);return this.positions[n]}trim(){const t=this.width,e=this.height=C(this.nextRow);this.image.resize({width:t,height:e})}getKey(t,e){return t.join(",")+e}getDashRanges(t,e,n){const i=[];let r=t.length%2==1?-t[t.length-1]*n:0,s=t[0]*n,o=!0;i.push({left:r,right:s,isDash:o,zeroLength:0===t[0]});let a=t[0];for(let l=1;l<t.length;l++){o=!o;const e=t[l];r=a*n,a+=e,s=a*n,i.push({left:r,right:s,isDash:o,zeroLength:0===e})}return i}addRoundDash(t,e,n){const i=e/2;for(let r=-n;r<=n;r++){const e=this.width*(this.nextRow+n+r);let s=0,o=t[s];for(let a=0;a<this.width;a++){a/o.right>1&&(o=t[++s]);const l=Math.abs(a-o.left),c=Math.abs(a-o.right),u=Math.min(l,c);let h;const d=r/n*(i+1);if(o.isDash){const t=i-Math.abs(d);h=Math.sqrt(u*u+t*t)}else h=i-Math.sqrt(u*u+d*d);this.image.data[e+a]=Math.max(0,Math.min(255,h+128))}}}addRegularDash(t,e){for(let a=t.length-1;a>=0;--a){const e=t[a],n=t[a+1];e.zeroLength?t.splice(a,1):n&&n.isDash===e.isDash&&(n.left=e.left,t.splice(a,1))}const n=t[0],i=t[t.length-1];n.isDash===i.isDash&&(n.left=i.left-this.width,i.right=n.right+this.width);const r=this.width*this.nextRow;let s=0,o=t[s];for(let a=0;a<this.width;a++){a/o.right>1&&(o=t[++s]);const n=Math.abs(a-o.left),i=Math.abs(a-o.right),l=Math.min(n,i);this.image.data[r+a]=Math.max(0,Math.min(255,(o.isDash?l:-l)+e+128))}}
1addDash(t,e){const n=this.getKey(t,e);if(this.positions[n])return this.positions[n];const i="round"===e,r=i?7:0,s=2*r+1;if(this.nextRow+s>this.height)return I("LineAtlas out of space"),null;0===t.length&&t.push(1);let o=0;for(let c=0;c<t.length;c++)t[c]<0&&(I("Negative value is found in line dasharray, replacing values with 0"),t[c]=0),o+=t[c];if(0!==o){const n=this.width/o,s=this.getDashRanges(t,this.width,n);i?this.addRoundDash(s,n,r):this.addRegularDash(s,"square"===e?.5*n:0)}const a=this.nextRow+r;this.nextRow+=s;const l={tl:[a,r],br:[o,0]};return this.positions[n]=l,l}}ar("LineAtlas",Bh);class Nh{constructor(t){this._callback=t,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){delete this._channel,this._callback=()=>{}}}const Uh=o.performance;function Hh(t){const e=t?t.url.toString():void 0;return Uh.getEntriesByName(e)}class jh{constructor(){this.tasks={},this.taskQueue=[],M(["process"],this),this.invoker=new Nh(this.process),this.nextId=0}add(t,e){const n=this.nextId++,i=function({type:t,isSymbolTile:e,zoom:n}){return n=n||0,"message"===t?0:"maybePrepare"!==t||e?"parseTile"!==t||e?"parseTile"===t&&e?300-n:"maybePrepare"===t&&e?400-n:500:200-n:100-n}(e);if(0===i){D();try{t()}finally{}return{cancel:()=>{}}}return this.tasks[n]={fn:t,metadata:e,priority:i,id:n},this.taskQueue.push(n),this.invoker.trigger(),{cancel:()=>{delete this.tasks[n]}}}process(){D();try{if(this.taskQueue=this.taskQueue.filter(t=>!!this.tasks[t]),!this.taskQueue.length)return;const t=this.pick();if(null===t)return;const e=this.tasks[t];if(delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),!e)return;e.fn()}finally{}}pick(){let t=null,e=1/0;for(let i=0;i<this.taskQueue.length;i++){const n=this.tasks[this.taskQueue[i]];n.priority<e&&(e=n.priority,t=i)}if(null===t)return null;const n=this.taskQueue[t];return this.taskQueue.splice(t,1),n}remove(){this.invoker.remove()}}function Vh(t,e,n){var i=2*Math.PI*6378137/256/Math.pow(2,n);return[t*i-2*Math.PI*6378137/2,e*i-2*Math.PI*6378137/2]}class $h{constructor(t,e,n){this.z=t,this.x=e,this.y=n,this.key=Zh(0,t,t,e,n)}equals(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}url(t,e){const n=(r=this.y,s=this.z,o=Vh(256*(i=this.x),256*(r=Math.pow(2,s)-r-1),s),a=Vh(256*(i+1),256*(r+1),s),o[0]+","+o[1]+","+a[0]+","+a[1]);var i,r,s,o,a;const l=function(t,e,n){let i,r="";for(let s=t;s>0;s--)i=1<<s-1,r+=(e&i?1:0)+(n&i?2:0);return r}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===e?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",l).replace("{bbox-epsg-3857}",n)}getTilePoint(t){const e=Math.pow(2,this.z);return new r((t.x*e-this.x)*jo,(t.y*e-this.y)*jo)}getTileVec3(t){const e=Math.pow(2,this.z);return xa((t.x*e-this.x)*jo,(t.y*e-this.y)*jo,Rh(t.z,t.y))}toString(){return`${this.z}/${this.x}/${this.y}`}}class qh{constructor(t,e){this.wrap=t,this.canonical=e,this.key=Zh(t,e.z,e.z,e.x,e.y)}}class Gh{constructor(t,e,n,i,r){this.overscaledZ=t,this.wrap=e,this.canonical=new $h(n,+i,+r),this.key=0===e&&t===n?this.canonical.key:Zh(e,t,n,i,r)}equals(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)}scaledTo(t){const e=this.canonical.z-t;return t>this.canonical.z?new Gh(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Gh(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)}calculateScaledKey(t,e=!0){if(this.overscaledZ===t&&e)return this.key;if(t>this.canonical.z)return Zh(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y);{const n=this.canonical.z-t;return Zh(this.wrap*+e,t,t,this.canonical.x>>n,this.canonical.y>>n)}}isChildOf(t){if(t.wrap!==this.wrap)return!1;const e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ<this.overscaledZ&&t.canonical.x===this.canonical.x>>e&&t.canonical.y===this.canonical.y>>e}children(t){if(this.overscaledZ>=t)return[new Gh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const e=this.canonical.z+1,n=2*this.canonical.x,i=2*this.canonical.y;return[new Gh(e,this.wrap,e,n,i),new Gh(e,this.wrap,e,n+1,i),new Gh(e,this.wrap,e,n,i+1),new Gh(e,this.wrap,e,n+1,i+1)]}isLessThan(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>
1t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))}wrapped(){return new Gh(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(t){return new Gh(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new qh(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}getTilePoint(t){return this.canonical.getTilePoint(new Fh(t.x-this.wrap,t.y))}getTileVec3(t){return this.canonical.getTileVec3(new Fh(t.x-this.wrap,t.y,t.z))}}function Zh(t,e,n,i,r){const s=1<<Math.min(n,22);let o=s*(r%s)+i%s;return t&&n<22&&(o+=s*s*((t<0?-2*t-1:2*t)%(1<<2*(22-n)))),16*(32*o+n)+(e-n)}ar("CanonicalTileID",$h),ar("OverscaledTileID",Gh,{omit:["projMatrix"]});class Wh{constructor(t){this._stringToNumber={},this._numberToString=[];for(let e=0;e<t.length;e++){const n=t[e];this._stringToNumber[n]=e,this._numberToString[e]=n}}encode(t){return this._stringToNumber[t]}decode(t){return this._numberToString[t]}}class Xh{constructor(t,e,n,i,r){this.type="Feature",this._vectorTileFeature=t,t._z=e,t._x=n,t._y=i,this.properties=t.properties,this.id=r}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(t){this._geometry=t}toJSON(){const t={geometry:this.geometry};for(const e in this)"_geometry"!==e&&"_vectorTileFeature"!==e&&(t[e]=this[e]);return t}}var Qh=Ms([{name:"a_pos",type:"Int16",components:2}]);class Kh{constructor(t,e,n){this.tileID=t,this.uid=b(),this.uses=0,this.tileSize=e,this.tileZoom=n,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(t){const e=t+this.timeAdded;e<j.now()||this.fadeEndTime&&e<this.fadeEndTime||(this.fadeEndTime=e)}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}loadVectorData(t,e,n){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",t){t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){const n={};if(!e)return n;for(const i of t){const t=i.layerIds.map(t=>e.getLayer(t)).filter(Boolean);if(0!==t.length){i.layers=t,i.stateDependentLayerIds&&(i.stateDependentLayers=i.stateDependentLayerIds.map(e=>t.filter(t=>t.id===e)[0]));for(const e of t)n[e.id]=i}}return n}(t.buckets,e.style),this.hasSymbolBuckets=!1;for(const t in this.buckets){const e=this.buckets[t];if(e instanceof uh){if(this.hasSymbolBuckets=!0,!n)break;e.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const t in this.buckets){const e=this.buckets[t];if(e instanceof uh&&e.hasRTLText){this.hasRTLText=!0,ss.isLoading()||ss.isLoaded()||"deferred"!==is()||rs();break}}this.queryPadding=0;for(const t in this.buckets){const n=this.buckets[t];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(t).queryRadius(n))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage),t.lineAtlas&&(this.lineAtlas=t.lineAtlas)}else this.collisionBoxArray=new Qs}unloadVectorData(){for(const t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(t){return this.buckets[t.id]}upload(t){for(const n in this.buckets){const e=this.buckets[n];e.uploadPending()&&e.upload(t)}const e=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Oh(t,this.imageAtlas.image,e.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Oh(t,this.glyphAtlasImage,e.ALPHA),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new Oh(t,this.lineAtlas.image,e.ALPHA),this.lineAtlas.uploaded=!0)}prepare(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)}queryRenderedFeatures(t,e,n,i,r,s,o,a){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:i,pixelPosMatrix:o,transform:s,params:r},t,e,n):{}}querySourceFeatures(t,e){const n=this.latestFeatureIndex;if(!n||!n.rawTileData)return;const i=n.loadVTLayers(),r=e?e.sourceLayer:"",s=i._geojsonTileLayer||i[r];if(!s)return;const o=Pi(e&&e.filter),{z:a,x:l,y:c}=this.tileID.canonical,u={z:a,x:l,y:c};for(let h=0;h<s.length;h++){const e=s.feature(h);if(o.needGeometry){const t=Go(e,!0);
vendor: 11,400 bytes, line 1
1if(!o.filter(new os(this.tileID.overscaledZ),t,this.tileID.canonical))continue}else if(!o.filter(new os(this.tileID.overscaledZ),e))continue;const i=n.getId(e,r),d=new Xh(e,a,l,c,i);d.tile=u,t.push(d)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(t){const e=this.expirationTime;if(t.cacheControl){const e=L(t.cacheControl);e["max-age"]&&(this.expirationTime=Date.now()+1e3*e["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){const t=Date.now();let n=!1;if(this.expirationTime>t)n=!1;else if(e)if(this.expirationTime<e)n=!0;else{const i=this.expirationTime-e;i?this.expirationTime=t+Math.max(i,3e4):n=!0}else n=!0;n?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)}setFeatureState(t,e){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData||0===Object.keys(t).length)return;const n=this.latestFeatureIndex.loadVTLayers();for(const i in this.buckets){if(!e.style.hasLayer(i))continue;const r=this.buckets[i],s=r.layers[0].sourceLayer||"_geojsonTileLayer",o=n[s],a=t[s];if(!o||!a||0===Object.keys(a).length)continue;r.update(a,o,this.imageAtlas&&this.imageAtlas.patternPositions||{});const l=e&&e.style&&e.style.getLayer(i);l&&(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(r)))}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<j.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(t){this.symbolFadeHoldUntil=j.now()+t}setDependencies(t,e){const n={};for(const i of e)n[i]=!0;this.dependencies[t]=n}hasDependency(t,e){for(const n of t){const t=this.dependencies[n];if(t)for(const n of e)if(t[n])return!0}return!1}clearQueryDebugViz(){}}class Yh{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(t,e,n){const i=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][i]=this.stateChanges[t][i]||{},y(this.stateChanges[t][i],n),null===this.deletedStates[t]){this.deletedStates[t]={};for(const e in this.state[t])e!==i&&(this.deletedStates[t][e]=null)}else if(this.deletedStates[t]&&null===this.deletedStates[t][i]){this.deletedStates[t][i]={};for(const e in this.state[t][i])n[e]||(this.deletedStates[t][i][e]=null)}else for(const r in n)this.deletedStates[t]&&this.deletedStates[t][i]&&null===this.deletedStates[t][i][r]&&delete this.deletedStates[t][i][r]}removeFeatureState(t,e,n){if(null===this.deletedStates[t])return;const i=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},n&&void 0!==e)null!==this.deletedStates[t][i]&&(this.deletedStates[t][i]=this.deletedStates[t][i]||{},this.deletedStates[t][i][n]=null);else if(void 0!==e)if(this.stateChanges[t]&&this.stateChanges[t][i])for(n in this.deletedStates[t][i]={},this.stateChanges[t][i])this.deletedStates[t][i][n]=null;else this.deletedStates[t][i]=null;else this.deletedStates[t]=null}getState(t,e){const n=String(e),i=y({},(this.state[t]||{})[n],(this.stateChanges[t]||{})[n]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){const n=this.deletedStates[t][e];if(null===n)return{};for(const t in n)delete i[t]}return i}initializeTileState(t,e){t.setFeatureState(this.state,e)}coalesceChanges(t,e){const n={};for(const i in this.stateChanges){this.state[i]=this.state[i]||{};const t={};for(const e in this.stateChanges[i])this.state[i][e]||(this.state[i][e]={}),y(this.state[i][e],this.stateChanges[i][e]),t[e]=this.state[i][e];n[i]=t}for(const i in this.deletedStates){this.state[i]=this.state[i]||{};const t={};if(null===this.deletedStates[i])for(const e in this.state[i])t[e]={},this.state[i][e]={};else for(const e in this.deletedStates[i]){if(null===this.deletedStates[i][e])this.state[i][e]={};else for(const t of Object.keys(this.deletedStates[i][e]))delete this.state[i][e][t];t[e]=this.state[i][e]}n[i]=n[i]||{},y(n[i],t)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(const i in t)t[i].setFeatureState(n,e)}}class Jh{constructor(t){this.size=t,this.minimums=[],this.maximums=[],this.leaves=[]}getElevation(t,e){const n=this.toIdx(t,e);return{min:this.minimums[n],max:this.maximums[n]}}isLeaf(t,e){return this.leaves[this.toIdx(t,e)]}toIdx(t,e){return e*this.size+t}}function td(t,e,n,i){let r=0,s=Number.MAX_VALUE;for(let o=0;o<3;o++)if(Math.abs(i[o])<1e-15){if(n[o]<t[o]||n[o]>e[o])return null}else{const a=1/i[o];let l=(t[o]-n[o])*a,c=(e[o]-n[o])*a;if(l>c){const t=l;l=c,c=t}if(l>r&&(r=l),c<s&&(s=c),r>s)return null}return r}function ed(t,e,n,i,r,s,o,a,l,c,u){const h=i-t,d=r-e,p=s-n,m=o-t,g=a-e,f=l-n,_=u[1]*f-u[2]*g,v=u[2]*m-u[0]*f,y=u[0]*g-u[1]*m,x=h*_+d*v+p*y;if(Math.abs(x)<1e-15)return null;const b=1/x,w=c[0]-t,C=c[1]-e,P=c[2]-n,M=(w*_+C*v+P*y)*b;if(M<0||M>1)return null;const O=C*p-P*d,S=P*h-w*p,k=w*d-C*h,T=(u[0]*O+u[1]*S+u[2]*k)*b;return T<0||M+T>1?null:(m*O+g*S+f*k)*b}function nd(t,e,n){return(t-e)/(n-e)}function id(t,e,n,i,r,s,o,a,l){const c=1<<n,u=s-i,h=o-r,d=(t+1)/c*u+i,p=(e+0)/c*h+r,m=(e+1)/c*h+r;a[0]=(t+0)/c*u+i,a[1]=p,l[0]=d,l[1]=m}class rd{constructor(t){if(this.maximums=[],this.minimums=[],this.leaves=[],this.childOffsets=[],this.nodeCount=0,this.dem=t,this._siblingOffset=[[0,0],[1,0],[0,1],[1,1]],!this.dem)return;const e=function(t){const e=Math.ceil(Math.log2(t.dim/8)),n=[];let i=Math.ceil(Math.pow(2,e));const r=1/i,s=(t,e,n,i,r)=>{const s=i?1:0,o=(t+1)*n-s,a=e*n,l=(e+1)*n-s;r[0]=t*n,r[1]=a,r[2]=o,r[3]=l};let o=new Jh(i);const a=[];for(let l=0;l<i*i;l++){s(l%i,Math.floor(l/i),r,!1,a);const e=od(a[0],a[1],t),n=od(a[2],a[1],t),c=od(a[2],a[3],t),u=od(a[0],a[3],t);o.minimums.push(Math.min(e,n,c,u)),o.maximums.push(Math.max(e,n,c,u)),o.leaves.push(1)}for(n.push(o),i/=2;i>=1;i/=2){const t=n[n.length-1];o=new Jh(i);for(let e=0;e<i*i;e++){s(e%i,Math.floor(e/i),2,!0,a);const n=t.getElevation(a[0],a[1]),r=t.getElevation(a[2],a[1]),l=t.getElevation(a[2],a[3]),c=t.getElevation(a[0],a[3]),u=t.isLeaf(a[0],a[1]),h=t.isLeaf(a[2],a[1]),d=t.isLeaf(a[2],a[3]),p=t.isLeaf(a[0],a[3]),m=Math.min(n.min,r.min,l.min,c.min),g=Math.max(n.max,r.max,l.max,c.max),f=u&&h&&d&&p;o.maximums.push(g),o.minimums.push(m),o.leaves.push(g-m<=5&&f?1:0)}n.push(o)}return n}(this.dem),n=e.length-1,i=e[n];this._addNode(i.minimums[0],i.maximums[0],i.leaves[0]),this._construct(e,0,0,n,0)}raycastRoot(t,e,n,i,r,s,o=1){return td([t,e,-100],[n,i,this.maximums[0]*o],r,s)}raycast(t,e,n,i,r,s,o=1){if(!this.nodeCount)return null;const a=this.raycastRoot(t,e,n,i,r,s,o);if(null==a)return null;const l=[],c=[],u=[],h=[],d=[{idx:0,t:a,nodex:0,nodey:0,depth:0}];for(;d.length>0;){const{idx:a,t:p,nodex:m,nodey:g,depth:f}=d.pop();if(this.leaves[a]){id(m,g,f,t,e,n,i,u,h);const a=1<<f,l=(m+0)/a,c=(m+1)/a,d=(g+0)/a,_=(g+1)/a,v=od(l,d,this.dem)*o,y=od(c,d,this.dem)*o,x=od(c,_,this.dem)*o,b=od(l,_,this.dem)*o,w=ed(u[0],u[1],v,h[0],u[1],y,h[0],h[1],x,r,s),C=ed(h[0],h[1],x,u[0],h[1],b,u[0],u[1],v,r,s),P=Math.min(null!==w?w:Number.MAX_VALUE,null!==C?C:Number.MAX_VALUE);if(P!==Number.MAX_VALUE)return P;{const t=Ca([],r,s,p);if(sd(v,y,b,x,nd(t[0],u[0],h[0]),nd(t[1],u[1],h[1]))>=t[2])return p}continue}let _=0;for(let d=0;d<this._siblingOffset.length;d++){id((m<<1)+this._siblingOffset[d][0],(g<<1)+this._siblingOffset[d][1],f+1,t,e,n,i,u,h),u[2]=-100,h[2]=this.maximums[this.childOffsets[a]+d]*o;const p=td(u,h,r,s);if(null!=p){const t=p;l[d]=t;let e=!1;for(let n=0;n<_&&!e;n++)t>=l[c[n]]&&(c.splice(n,0,d),e=!0);e||(c[_]=d),_++}}for(let t=0;t<_;t++){const e=c[t];d.push({idx:this.childOffsets[a]+e,t:l[e],nodex:(m<<1)+this._siblingOffset[e][0],nodey:(g<<1)+this._siblingOffset[e][1],depth:f+1})}}return null}_addNode(t,e,n){return this.minimums.push(t),this.maximums.push(e),this.leaves.push(n),this.childOffsets.push(0),this.nodeCount++}_construct(t,e,n,i,r){if(1===t[i].isLeaf(e,n))return;this.childOffsets[r]||(this.childOffsets[r]=this.nodeCount);const s=i-1,o=t[s];let a,l=0;for(let c=0;c<this._siblingOffset.length;c++){const t=2*e+this._siblingOffset[c][0],i=2*n+this._siblingOffset[c][1],r=o.getElevation(t,i),s=o.isLeaf(t,i),u=this._addNode(r.min,r.max,s);s&&(l|=1<<c),a||(a=u)}for(let c=0;c<this._siblingOffset.length;c++)l&1<<c||this._construct(t,2*e+this._siblingOffset[c][0],2*n+this._siblingOffset[c][1],s,a+c)}}function sd(t,e,n,i,r,s){return nn(nn(t,n,s),nn(e,i,s),r)}function od(t,e,n){const i=n.dim,r=g(t*i-.5,0,i-1),s=g(e*i-.5,0,i-1),o=Math.floor(r),a=Math.floor(s),l=Math.min(o+1,i-1),c=Math.min(a+1,i-1);return sd(n.get(o,a),n.get(l,a),n.get(o,c),n.get(l,c),r-o,s-a)}const ad={mapbox:[6553.6,25.6,.1,1e4],terrarium:[256,1,1/256,32768]};class ld{get tree(){return this._tree||this._buildQuadTree(),this._tree}constructor(t,e,n,i=!1,r=!1){if(this.uid=t,e.height!==e.width)throw new RangeError("DEM tiles must be square");if(n&&"mapbox"!==n&&"terrarium"!==n)return I(`"${n}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);this.stride=e.height;const s=this.dim=e.height-2;if(this.data=new Uint32Array(e.data.buffer),this.encoding=n||"mapbox",this.borderReady=i,!i){for(let t=0;t<s;t++)this.data[this._idx(-1,t)]=this.data[this._idx(0,t)],this.data[this._idx(s,t)]=this.data[this._idx(s-1,t)],this.data[this._idx(t,-1)]=this.data[this._idx(t,0)],this.data[this._idx(t,s)]=this.data[this._idx(t,s-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(s,-1)]=this.data[this._idx(s-1,0)],this.data[this._idx(-1,s)]=this.data[this._idx(0,s-1)],this.data[this._idx(s,s)]=this.data[this._idx(s-1,s-1)],r&&this._buildQuadTree()}}_buildQuadTree(){this._tree=new rd(this)}get(t,e,n=!1){const i=new Uint8Array(this.data.buffer);n&&(t=g(t,-1,this.dim),e=g(e,-1,this.dim));const r=4*this._idx(t,e);return("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(i[r],i[r+1],i[r+2])}static getUnpackVector(t){return ad[t]}get unpackVector(){return ad[this.encoding]}_idx(t,e){if(t<-1||t>=this.dim+1||e<-1||e>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(e+1)*this.stride+(t+1)}_unpackMapbox(t,e,n){return(256*t*256+256*e+n)/10-1e4}_unpackTerrarium(t,e,n){return 256*t+e+n/256-32768}static pack(t,e){const n=[0,0,0,0],i=ld.getUnpackVector(e);let r=Math.floor((t+i[3])/i[2]);return n[2]=r%256,r=Math.floor(r/256),n[1]=r%256,r=Math.floor(r/256),n[0]=r,n}getPixels(){return new Va({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(t,e,n){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");let i=e*this.dim,r=e*this.dim+this.dim,s=n*this.dim,o=n*this.dim+this.dim;switch(e){case-1:i=r-1;break;case 1:r=i+1}switch(n){case-1:s=o-1;break;case 1:o=s+1}const a=-e*this.dim,l=-n*this.dim;for(let c=s;c<o;c++)for(let e=i;e<r;e++)this.data[this._idx(e,c)]=t.data[this._idx(e+a,c+l)]}onDeserialize(){this._tree&&(this._tree.dem=this)}}ar("DEMData",ld),ar("DemMinMaxQuadTree",rd,{omit:["dem"]});class cd{constructor(t,e){this.max=t,this.onRemove=e,this.reset()}reset(){for(const t in this.data)for(const e of this.data[t])e.timeout&&clearTimeout(e.timeout),this.onRemove(e.value);return this.data={},this.order=[],this}
1add(t,e,n){const i=t.wrapped().key;void 0===this.data[i]&&(this.data[i]=[]);const r={value:e,timeout:void 0};if(void 0!==n&&(r.timeout=setTimeout(()=>{this.remove(t,r)},n)),this.data[i].push(r),this.order.push(i),this.order.length>this.max){const t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}has(t){return t.wrapped().key in this.data}getAndRemove(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null}_getAndRemoveByKey(t){const e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value}getByKey(t){const e=this.data[t];return e?e[0].value:null}get(t){return this.has(t)?this.data[t.wrapped().key][0].value:null}remove(t,e){if(!this.has(t))return this;const n=t.wrapped().key,i=void 0===e?0:this.data[n].indexOf(e),r=this.data[n][i];return this.data[n].splice(i,1),r.timeout&&clearTimeout(r.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(r.value),this.order.splice(this.order.indexOf(n),1),this}setMaxSize(t){for(this.max=t;this.order.length>this.max;){const t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}filter(t){const e=[];for(const n in this.data)for(const i of this.data[n])t(i.value)||e.push(i);for(const n of e)this.remove(n.value.tileID,n)}}class ud{constructor(t,e,n){this.func=t,this.mask=e,this.range=n}}ud.ReadOnly=!1,ud.ReadWrite=!0,ud.disabled=new ud(519,ud.ReadOnly,[0,1]);const hd=7680;class dd{constructor(t,e,n,i,r,s){this.test=t,this.ref=e,this.mask=n,this.fail=i,this.depthFail=r,this.pass=s}}dd.disabled=new dd({func:519,mask:0},0,0,hd,hd,hd);class pd{constructor(t,e,n){this.blendFunction=t,this.blendColor=e,this.mask=n}}pd.Replace=[1,0],pd.disabled=new pd(pd.Replace,ue.transparent,[!1,!1,!1,!1]),pd.unblended=new pd(pd.Replace,ue.transparent,[!0,!0,!0,!0]),pd.alphaBlended=new pd([1,771],ue.transparent,[!0,!0,!0,!0]);const md=1029,gd=2305;class fd{constructor(t,e,n){this.enable=t,this.mode=e,this.frontFace=n}}fd.disabled=new fd(!1,md,gd),fd.backCCW=new fd(!0,md,gd),fd.backCW=new fd(!0,md,2304),fd.frontCW=new fd(!0,1028,2304),fd.frontCCW=new fd(!0,1028,gd);class _d extends Ft{constructor(t,e,n){super(),this.id=t,this._onlySymbols=n,e.on("data",t=>{"source"===t.dataType&&"metadata"===t.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===t.dataType&&"content"===t.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))}),e.on("error",()=>{this._sourceErrored=!0}),this._source=e,this._tiles={},this._cache=new cd(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new Yh}onAdd(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(const t in this._tiles){const e=this._tiles[t];if("loaded"!==e.state&&"errored"!==e.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(t,e){return t.isSymbolTile=this._onlySymbols,this._source.loadTile(t,e)}_unloadTile(t){if(this._source.unloadTile)return this._source.unloadTile(t,()=>{})}_abortTile(t){if(this._source.abortTile)return this._source.abortTile(t,()=>{})}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const e in this._tiles){const n=this._tiles[e];n.upload(t),n.prepare(this.map.style.imageManager)}}getIds(){return v(this._tiles).map(t=>t.tileID).sort(vd).map(t=>t.key)}getRenderableIds(t){const e=[];for(const n in this._tiles)this._isIdRenderable(+n,t)&&e.push(this._tiles[n]);return t?e.sort((t,e)=>{const n=t.tileID,i=e.tileID,s=new r(n.canonical.x,n.canonical.y)._rotate(this.transform.angle),o=new r(i.canonical.x,i.canonical.y)._rotate(this.transform.angle);return n.overscaledZ-i.overscaledZ||o.y-s.y||o.x-s.x}).map(t=>t.tileID.key):e.map(t=>t.tileID).sort(vd).map(t=>t.key)}hasRenderableParent(t){const e=this.findLoadedParent(t,0);return!!e&&this._isIdRenderable(e.tileID.key)}_isIdRenderable(t,e){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]&&(e||!this._tiles[t].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const t in this._tiles)"errored"!==this._tiles[t].state&&this._reloadTile(+t,"reloading")}}_reloadTile(t,e){const n=this._tiles[t];
vendor: 10,001 bytes, line 1
1n&&("loading"!==n.state&&(n.state=e),this._loadTile(n,this._tileLoaded.bind(this,n,t,e)))}_tileLoaded(t,e,n,i){if(i)return t.state="errored",void(404!==i.status?this._source.fire(new Rt(i,{tile:t})):this.update(this.transform));t.timeAdded=j.now(),"expired"===n&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(e,t),"raster-dem"===this.getSource().type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),this._source.fire(new Lt("data",{dataType:"source",tile:t,coord:t.tileID,sourceCacheId:this.id}))}_backfillDEM(t){const e=this.getRenderableIds();for(let i=0;i<e.length;i++){const r=e[i];if(t.neighboringTiles&&t.neighboringTiles[r]){const e=this.getTileByID(r);n(t,e),n(e,t)}}function n(t,e){if(!t.dem||t.dem.borderReady)return;t.needsHillshadePrepare=!0,t.needsDEMTextureUpload=!0;let n=e.tileID.canonical.x-t.tileID.canonical.x;const i=e.tileID.canonical.y-t.tileID.canonical.y,r=Math.pow(2,t.tileID.canonical.z),s=e.tileID.key;0===n&&0===i||Math.abs(i)>1||(Math.abs(n)>1&&(1===Math.abs(n+r)?n+=r:1===Math.abs(n-r)&&(n-=r)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,n,i),t.neighboringTiles&&t.neighboringTiles[s]&&(t.neighboringTiles[s].backfilled=!0)))}}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._tiles[t]}_retainLoadedChildren(t,e,n,i){for(const r in this._tiles){let s=this._tiles[r];if(i[r]||!s.hasData()||s.tileID.overscaledZ<=e||s.tileID.overscaledZ>n)continue;let o=s.tileID;for(;s&&s.tileID.overscaledZ>e+1;){const t=s.tileID.scaledTo(s.tileID.overscaledZ-1);s=this._tiles[t.key],s&&s.hasData()&&(o=t)}let a=o;for(;a.overscaledZ>e;)if(a=a.scaledTo(a.overscaledZ-1),t[a.key]){i[o.key]=o;break}}}findLoadedParent(t,e){if(t.key in this._loadedParentTiles){const n=this._loadedParentTiles[t.key];return n&&n.tileID.overscaledZ>=e?n:null}for(let n=t.overscaledZ-1;n>=e;n--){const e=t.scaledTo(n),i=this._getLoadedTile(e);if(i)return i}}_getLoadedTile(t){const e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(this._source.reparseOverscaled?t.wrapped().key:t.canonical.key)}updateCacheSize(t,e){e=e||this._source.tileSize;const n=Math.ceil(t.width/e)+1,i=Math.ceil(t.height/e)+1,r=Math.floor(n*i*5),s="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(s)}handleWrapJump(t){const e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){const t={};for(const n in this._tiles){const i=this._tiles[n];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),t[i.tileID.key]=i}this._tiles=t;for(const e in this._timers)clearTimeout(this._timers[e]),delete this._timers[e];for(const e in this._tiles)this._setTileReloadTimer(+e,this._tiles[e])}}update(t,e,n){if(this.transform=t,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage)return;if(this.usedForTerrain&&!n)return;let i;this.updateCacheSize(t,e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?i=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(t=>new Gh(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)):(i=t.coveringTiles({tileSize:e||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!n,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(i=i.filter(t=>this._source.hasTile(t)))):i=[];const r=this._updateRetainedTiles(i);if(yd(this._source.type)&&0!==i.length){const t={},e={},n=Object.keys(r);for(const i of n){const n=r[i],s=this._tiles[i];if(!s||s.fadeEndTime&&s.fadeEndTime<=j.now())continue;const o=this.findLoadedParent(n,Math.max(n.overscaledZ-_d.maxOverzooming,this._source.minzoom));o&&(this._addTile(o.tileID),t[o.tileID.key]=o.tileID),e[i]=n}const s=i[i.length-1].overscaledZ;for(const i in this._tiles){const t=this._tiles[i];if(r[i]||!t.hasData())continue;let n=t.tileID;for(;n.overscaledZ>s;){n=n.scaledTo(n.overscaledZ-1);const s=this._tiles[n.key];if(s&&s.hasData()&&e[n.key]){r[i]=t.tileID;break}}}for(const i in t)r[i]||(this._coveredTiles[i]=!0,r[i]=t[i])}for(const o in r)this._tiles[o].clearFadeHold();const s=function(t,e){const n=[];for(const i in t)i in e||n.push(i);return n}(this._tiles,r);for(const o of s){const t=this._tiles[o];t.hasSymbolBuckets&&!t.holdingForFade()?t.setHoldDuration(this.map._fadeDuration):t.hasSymbolBuckets&&!t.symbolFadeFinished()||this._removeTile(+o)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const t in this._tiles)this._tiles[t].holdingForFade()&&this._removeTile(+t)}_updateRetainedTiles(t){const e={};if(0===t.length)return e;const n={},i=t[t.length-1].overscaledZ,r=t[0].overscaledZ,s=Math.max(r-_d.maxOverzooming,this._source.minzoom),o=Math.max(r+_d.maxUnderzooming,this._source.minzoom),a={};for(const l of t){const t=this._addTile(l);e[l.key]=l,t.hasData()||i<this._source.maxzoom&&(a[l.key]=l)}this._retainLoadedChildren(a,i,o,e);for(const l of t){let t=this._tiles[l.key];if(t.hasData())continue;if(l.canonical.z>=this._source.maxzoom){const t=l.children(this._source.maxzoom)[0],n=this.getTile(t);if(n&&n.hasData()){e[t.key]=t;continue}}else{const t=l.children(this._source.maxzoom);if(e[t[0].key]&&e[t[1].key]&&e[t[2].key]&&e[t[3].key])continue}let i=t.wasRequested();for(let r=l.overscaledZ-1;r>=s;--r){const s=l.scaledTo(r);if(n[s.key])break;if(n[s.key]=!0,t=this.getTile(s),!t&&i&&(t=this._addTile(s)),t&&(e[s.key]=s,i=t.wasRequested(),t.hasData()))break}}return e}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const t in this._tiles){const e=[];let n,i=this._tiles[t].tileID;for(;i.overscaledZ>0;){if(i.key in this._loadedParentTiles){n=this._loadedParentTiles[i.key];break}e.push(i.key);const t=i.scaledTo(i.overscaledZ-1);if(n=this._getLoadedTile(t),n)break;i=t}for(const t of e)this._loadedParentTiles[t]=n}}_addTile(t){let e=this._tiles[t.key];if(e)return e;e=this._cache.getAndRemove(t),e&&(this._setTileReloadTimer(t.key,e),e.tileID=t,this._state.initializeTileState(e,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,e)));const n=Boolean(e);return n||(e=new Kh(t,this._source.tileSize*t.overscaleFactor(),this.transform.tileZoom),this._loadTile(e,this._tileLoaded.bind(this,e,t.key,e.state))),e?(e.uses++,this._tiles[t.key]=e,n||this._source.fire(new Lt("dataloading",{tile:e,coord:e.tileID,dataType:"source"})),e):null}_setTileReloadTimer(t,e){t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);const n=e.getExpiryTimeout();n&&(this._timers[t]=setTimeout(()=>{this._reloadTile(t,"expired"),delete this._timers[t]},n))}_removeTile(t){const e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses>0||(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const t in this._tiles)this._removeTile(+t);this._cache.reset()}tilesIn(t,e,n){const i=[],r=this.transform;if(!r)return i;for(const s in this._tiles){const o=this._tiles[s];if(n&&o.clearQueryDebugViz(),o.holdingForFade())continue;const a=t.containsTile(o,r,e);a&&i.push(a)}return i}getVisibleCoordinates(t){const e=this.getRenderableIds(t).map(t=>this._tiles[t].tileID);for(const n of e)n.projMatrix=this.transform.calculateProjMatrix(n.toUnwrapped());return e}hasTransition(){if(this._source.hasTransition())return!0;if(yd(this._source.type))for(const t in this._tiles){const e=this._tiles[t];if(void 0!==e.fadeEndTime&&e.fadeEndTime>=j.now())return!0}return!1}setFeatureState(t,e,n){this._state.updateState(t=t||"_geojsonTileLayer",e,n)}removeFeatureState(t,e,n){this._state.removeFeatureState(t=t||"_geojsonTileLayer",e,n)}getFeatureState(t,e){return this._state.getState(t=t||"_geojsonTileLayer",e)}setDependencies(t,e,n){const i=this._tiles[t];i&&i.setDependencies(e,n)}reloadTilesForDependencies(t,e){for(const n in this._tiles)this._tiles[n].hasDependency(t,e)&&this._reloadTile(+n,"reloading");this._cache.filter(n=>!n.hasDependency(t,e))}}function vd(t,e){const n=Math.abs(2*t.wrap)-+(t.wrap<0),i=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||i-n||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function yd(t){return"raster"===t||"image"===t||"video"===t}_d.maxOverzooming=10,_d.maxUnderzooming=3;class xd{constructor(t,e,n){this._demTile=t,this._dem=this._demTile.dem,this._scale=e,this._offset=n}static create(t,e,n){const i=n||t.findDEMTileFor(e);if(!i||!i.dem)return;const r=i.dem,s=i.tileID,o=1<<e.canonical.z-s.canonical.z;return new xd(i,i.tileSize/jo/o,[(e.canonical.x/o-s.canonical.x)*r.dim,(e.canonical.y/o-s.canonical.y)*r.dim])}tileCoordToPixel(t,e){const n=e*this._scale+this._offset[1],i=Math.floor(t*this._scale+this._offset[0]),s=Math.floor(n);return new r(i,s)}getElevationAt(t,e,n,i){const r=t*this._scale+this._offset[0],s=e*this._scale+this._offset[1],o=Math.floor(r),a=Math.floor(s),l=this._dem;return i=!!i,n?nn(nn(l.get(o,a,i),l.get(o,a+1,i),s-a),nn(l.get(o+1,a,i),l.get(o+1,a+1,i),s-a),r-o):l.get(o,a,i)}getElevationAtPixel(t,e,n){return this._dem.get(t,e,!!n)}getMeterToDEM(t){return(1<<this._demTile.tileID.canonical.z)*Dh(1,t)*this._dem.stride}}class bd{constructor(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new nr(jo,16,0),this.featureIndexArray=new ro,this.promoteId=e}insert(t,e,n,i,r,s=0){const o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,i,r,s);const a=this.grid;for(let l=0;l<e.length;l++){const t=e[l],n=[1/0,1/0,-1/0,-1/0];for(let e=0;e<t.length;e++){const i=t[e];n[0]=Math.min(n[0],i.x),n[1]=Math.min(n[1],i.y),n[2]=Math.max(n[2],i.x),n[3]=Math.max(n[3],i.y)}n[0]<jo&&n[1]<jo&&n[2]>=0&&n[3]>
1=0&&a.insert(o,n[0],n[1],n[2],n[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new ql.VectorTile(new Ec(this.rawTileData)).layers,this.sourceLayerCoder=new Wh(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(t,e,n,i){this.loadVTLayers();const r=t.params||{},s=Pi(r.filter),o=t.tileResult,a=t.transform,l=o.bufferedTilespaceBounds,c=this.grid.query(l.min.x,l.min.y,l.max.x,l.max.y,(t,e,n,i)=>sa(o.bufferedTilespaceGeometry,t,e,n,i));c.sort(Cd);let u=null;a.elevation&&c.length>0&&(u=xd.create(a.elevation,this.tileID));const h={};let d;for(let p=0;p<c.length;p++){const a=c[p];if(a===d)continue;d=a;const l=this.featureIndexArray.get(a);let m=null;this.loadMatchingFeature(h,l,s,r.layers,r.availableImages,e,n,i,(e,n,i,r=0)=>(m||(m=qo(e)),n.queryIntersectsFeature(o,e,i,m,this.z,t.transform,t.pixelPosMatrix,u,r)))}return h}loadMatchingFeature(t,e,n,i,r,s,o,a,l){const{featureIndex:c,bucketIndex:u,sourceLayerIndex:h,layoutVertexArrayOffset:d}=e,p=this.bucketLayerIDs[u];if(i&&!function(t,e){for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>=0)return!0;return!1}(i,p))return;const m=this.sourceLayerCoder.decode(h),g=this.vtLayers[m].feature(c);if(n.needGeometry){const t=Go(g,!0);if(!n.filter(new os(this.tileID.overscaledZ),t,this.tileID.canonical))return}else if(!n.filter(new os(this.tileID.overscaledZ),g))return;const f=this.getId(g,m);for(let _=0;_<p.length;_++){const e=p[_];if(i&&i.indexOf(e)<0)continue;const n=s[e];if(!n)continue;let u={};void 0!==f&&a&&(u=a.getState(n.sourceLayer||"_geojsonTileLayer",f));const h=y({},o[e]);h.paint=wd(h.paint,n.paint,g,u,r),h.layout=wd(h.layout,n.layout,g,u,r);const m=!l||l(g,n,u,d);if(!m)continue;const v=new Xh(g,this.z,this.x,this.y,f);v.layer=h;let x=t[e];void 0===x&&(x=t[e]=[]),x.push({featureIndex:c,feature:v,intersectionZ:m})}}lookupSymbolFeatures(t,e,n,i,r,s,o,a){const l={};this.loadVTLayers();const c=Pi(r);for(const u of t)this.loadMatchingFeature(l,{bucketIndex:n,sourceLayerIndex:i,featureIndex:u,layoutVertexArrayOffset:0},c,s,o,a,e);return l}hasLayer(t){for(const e of this.bucketLayerIDs)for(const n of e)if(t===n)return!0;return!1}getId(t,e){let n=t.id;return this.promoteId&&(n=t.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[e]],"boolean"==typeof n&&(n=Number(n))),n}}function wd(t,e,n,i,r){return S(t,(t,s)=>{const o=e instanceof ms?e.get(s):null;return o&&o.evaluate?o.evaluate(n,i,r):o})}function Cd(t,e){return e-t}ar("FeatureIndex",bd,{omit:["rawTileData","sourceLayerCoder"]});class Pd{constructor(t){const e={},n=[];for(const o in t){const i=t[o],r=e[o]={};for(const t in i){const e=i[+t];if(!e||0===e.bitmap.width||0===e.bitmap.height)continue;const s=e.metrics.localGlyph?2:1,o={x:0,y:0,w:e.bitmap.width+2*s,h:e.bitmap.height+2*s};n.push(o),r[t]={rect:o,metrics:e.metrics}}}const{w:i,h:r}=Jc(n),s=new ja({width:i||1,height:r||1});for(const o in t){const n=t[o];for(const t in n){const i=n[+t];if(!i||0===i.bitmap.width||0===i.bitmap.height)continue;const r=e[o][t].rect,a=i.metrics.localGlyph?2:1;ja.copy(i.bitmap,s,{x:0,y:0},{x:r.x+a,y:r.y+a},i.bitmap)}}this.image=s,this.positions=e}}ar("GlyphAtlas",Pd);class Md{constructor(t){this.tileID=new Gh(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.tileZoom=t.tileZoom,this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId,this.enableTerrain=!!t.enableTerrain,this.isSymbolTile=t.isSymbolTile}parse(t,e,n,i,r){this.status="parsing",this.data=t,this.collisionBoxArray=new Qs;const s=new Wh(Object.keys(t.layers).sort()),o=new bd(this.tileID,this.promoteId);o.bucketLayerIDs=[];const a={},l=new Bh(256,256),c={featureIndex:o,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:l,availableImages:n},u=e.familiesBySource[this.source];for(const v in u){const e=t.layers[v];if(!e)continue;let i=!1,r=!1;for(const t of u[v])"symbol"===t[0].type?i=!0:r=!0;if(!0===this.isSymbolTile&&!i)continue;if(!1===this.isSymbolTile&&!r)continue;1===e.version&&I(`Vector tile source "${this.source}" layer "${v}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const l=s.encode(v),h=[];for(let t=0;t<e.length;t++){const n=e.feature(t),i=o.getId(n,v);h.push({feature:n,id:i,index:t,sourceLayerIndex:l})}for(const t of u[v]){const e=t[0];void 0!==this.isSymbolTile&&"symbol"===e.type!==this.isSymbolTile||e.minzoom&&this.zoom<Math.floor(e.minzoom)||e.maxzoom&&this.zoom>=e.maxzoom||"none"!==e.visibility&&(Od(t,this.zoom,n),(a[e.id]=e.createBucket({index:o.bucketLayerIDs.length,layers:t,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:l,sourceID:this.source,enableTerrain:this.enableTerrain})).populate(h,c,this.tileID.canonical),o.bucketLayerIDs.push(t.map(t=>
vendor: 16,969 bytes, line 1
1t.id)))}}let h,d,p,m;l.trim();const g={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},f=S(c.glyphDependencies,t=>Object.keys(t).map(Number));Object.keys(f).length?i.send("getGlyphs",{uid:this.uid,stacks:f},(t,e)=>{h||(h=t,d=e,x.call(this))},void 0,!1,g):d={};const _=Object.keys(c.iconDependencies);_.length?i.send("getImages",{icons:_,source:this.source,tileID:this.tileID,type:"icons"},(t,e)=>{h||(h=t,p=e,x.call(this))},void 0,!1,g):p={};const y=Object.keys(c.patternDependencies);function x(){if(h)return r(h);if(d&&p&&m){const t=new Pd(d),e=new eu(p,m);for(const i in a){const r=a[i];r instanceof uh?(Od(r.layers,this.zoom,n),Wu(r,d,t.positions,p,e.iconPositions,this.showCollisionBoxes,this.tileID.canonical,this.tileZoom)):r.hasPattern&&(r instanceof cc||r instanceof Il||r instanceof Ql)&&(Od(r.layers,this.zoom,n),r.addFeatures(c,this.tileID.canonical,e.patternPositions))}this.status="done",r(null,{buckets:v(a).filter(t=>!t.isEmpty()),featureIndex:o,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,lineAtlas:l,imageAtlas:e,glyphMap:this.returnDependencies?d:null,iconMap:this.returnDependencies?p:null,glyphPositions:this.returnDependencies?t.positions:null})}}y.length?i.send("getImages",{icons:y,source:this.source,tileID:this.tileID,type:"patterns"},(t,e)=>{h||(h=t,m=e,x.call(this))},void 0,!1,g):m={},x.call(this)}}function Od(t,e,n){const i=new os(e);for(const r of t)r.recalculate(i,n)}class Sd{constructor(t){this.entries={},this.scheduler=t}request(t,e,n,i){const r=this.entries[t]=this.entries[t]||{callbacks:[]};if(r.result){const[t,n]=r.result;return this.scheduler?this.scheduler.add(()=>{i(t,n)},e):i(t,n),()=>{}}return r.callbacks.push(i),r.cancel||(r.cancel=n((n,i)=>{r.result=[n,i];for(const t of r.callbacks)this.scheduler?this.scheduler.add(()=>{t(n,i)},e):t(n,i);setTimeout(()=>delete this.entries[t],3e3)})),()=>{r.result||(r.callbacks=r.callbacks.filter(t=>t!==i),r.callbacks.length||(r.cancel(),delete this.entries[t]))}}}function kd(t,e,n){const i=JSON.stringify(t.request);return t.data&&(this.deduped.entries[i]={result:[null,t.data]}),this.deduped.request(i,{type:"parseTile",isSymbolTile:t.isSymbolTile,zoom:t.tileZoom},e=>{const i=Mt(t.request,(t,i,r,s)=>{t?e(t):i&&e(null,{vectorTile:n?void 0:new ql.VectorTile(new Ec(i)),rawData:i,cacheControl:r,expires:s})});return()=>{i.cancel(),e()}},e)}t.ARRAY_TYPE=pa,t.AUTH_ERR_MSG=Y,t.Actor=class{constructor(t,e,n){this.target=t,this.parent=e,this.mapId=n,this.callbacks={},this.cancelCallbacks={},M(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.globalScope=D()?t:o,this.scheduler=new jh}send(t,e,n,i,r=!1,s){const o=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(n.metadata=s,this.callbacks[o]=n);const a=U(this.globalScope)?void 0:[];return this.target.postMessage({id:o,type:t,hasCallback:!!n,targetMapId:i,mustQueue:r,sourceMapId:this.mapId,data:ur(e,a)},a),{cancel:()=>{n&&delete this.callbacks[o],this.target.postMessage({id:o,type:"<cancel>",targetMapId:i,sourceMapId:this.mapId})}}}receive(t){const e=t.data,n=e.id;if(n&&(!e.targetMapId||this.mapId===e.targetMapId))if("<cancel>"===e.type){const t=this.cancelCallbacks[n];delete this.cancelCallbacks[n],t&&t.cancel()}else if(e.mustQueue||D()){const t=this.callbacks[n];this.cancelCallbacks[n]=this.scheduler.add(()=>this.processTask(n,e),t&&t.metadata||{type:"message"})}else this.processTask(n,e)}processTask(t,e){if("<response>"===e.type){const n=this.callbacks[t];delete this.callbacks[t],n&&(e.error?n(hr(e.error)):n(null,hr(e.data)))}else{const n=U(this.globalScope)?void 0:[],i=e.hasCallback?(e,i)=>{delete this.cancelCallbacks[t],this.target.postMessage({id:t,type:"<response>",sourceMapId:this.mapId,error:e?ur(e):null,data:ur(i,n)},n)}:t=>{},r=hr(e.data);if(this.parent[e.type])this.parent[e.type](e.sourceMapId,r,i);else if(this.parent.getWorkerSource){const t=e.type.split(".");this.parent.getWorkerSource(e.sourceMapId,t[0],r.source)[t[1]](r,i)}else i(new Error(`Could not find function ${e.type}`))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},t.CanonicalTileID=$h,t.Color=ue,t.ColorMode=pd,t.CullFaceMode=fd,t.DEMData=ld,t.DataConstantProperty=gs,t.DedupedRequest=Sd,t.DepthMode=ud,t.EXTENT=jo,t.Elevation=class{getAtPointOrZero(t,e=0){return this.getAtPoint(t,e)||0}getAtPoint(t,e,n=!0){null==e&&(e=null);const i=this._source();if(!i)return e;if(t.y<0||t.y>1)return e;const r=i.getSource().maxzoom,s=1<<r,o=Math.floor(t.x),a=t.x-o,l=new Gh(r,o,r,Math.floor(a*s),Math.floor(t.y*s)),c=this.findDEMTileFor(l);if(!c||!c.dem)return e;const u=c.dem,h=1<<c.tileID.canonical.z,d=(a*h-c.tileID.canonical.x)*u.dim,p=(t.y*h-c.tileID.canonical.y)*u.dim,m=Math.floor(d),g=Math.floor(p);return(n?this.exaggeration():1)*nn(nn(u.get(m,g),u.get(m,g+1),p-g),nn(u.get(m+1,g),u.get(m+1,g+1),p-g),d-m)}getAtTileOffset(t,e,n){const i=1<<t.canonical.z;return this.getAtPointOrZero(new Fh(t.wrap+(t.canonical.x+e/jo)/i,(t.canonical.y+n/jo)/i))}getForTilePoints(t,e,n,i){const r=xd.create(this,t,i);return!!r&&(e.forEach(t=>{t[2]=this.exaggeration()*r.getElevationAt(t[0],t[1],n)}),!0)}getMinMaxForTile(t){const e=this.findDEMTileFor(t);if(!e||!e.dem)return null;const n=e.dem.tree,i=e.tileID,r=1<<t.canonical.z-i.canonical.z;let s=t.canonical.x/r-i.canonical.x,o=t.canonical.y/r-i.canonical.y,a=0;for(let l=0;l<t.canonical.z-i.canonical.z&&!n.leaves[a];l++){s*=2,o*=2;const t=2*Math.floor(o)+Math.floor(s);a=n.childOffsets[a]+t,s%=1,o%=1}return{min:this.exaggeration()*n.minimums[a],max:this.exaggeration()*n.maximums[a]}}getMinElevationBelowMSL(){throw new Error("Pure virtual method called.")}raycast(t,e,n){throw new Error("Pure virtual method called.")}pointCoordinate(t){throw new Error("Pure virtual method called.")}_source(){throw new Error("Pure virtual method called.")}exaggeration(){throw new Error("Pure virtual method called.")}findDEMTileFor(t){throw new Error("Pure virtual method called.")}get visibleDemTiles(){throw new Error("Getter must be implemented in subclass.")}},t.ErrorEvent=Rt,t.EvaluationParameters=os,t.Event=Lt,t.Evented=Ft,t.GlyphManager=Lu,t.ImagePosition=tu,t.LineAtlas=Bh,t.LngLat=Th,t.LngLatBounds=Sh,t.LocalGlyphMode=Du,t.MAX_SAFE_INTEGER=a,t.MercatorCoordinate=Fh,t.ONE_EM=xc,t.OverscaledTileID=Gh,t.Properties=xs,t.RGBAImage=Va,t.RequestManager=class{constructor(t,e,n){this._transformRequestFn=t,this._customAccessToken=e,this._silenceAuthErrors=!!n,this._createSkuToken()}_createSkuToken(){const t=function(){let t="";for(let e=0;e<10;e++)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",K,t].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}}normalizeStyleURL(t,e){if(!J(t))return t;const n=nt(t);return n.path=`/styles/v1${n.path}`,this._makeAPIURL(n,this._customAccessToken||e)}normalizeGlyphsURL(t,e){if(!J(t))return t;const n=nt(t);return n.path=`/fonts/v1${n.path}`,this._makeAPIURL(n,this._customAccessToken||e)}normalizeSourceURL(t,e){if(!J(t))return t;const n=nt(t);return n.path=`/v4/${n.authority}.json`,n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||e)}normalizeSpriteURL(t,e,n,i){const r=nt(t);return J(t)?(r.path=`/styles/v1${r.path}/sprite${e}${n}`,this._makeAPIURL(r,this._customAccessToken||i)):(r.path+=`${e}${n}`,it(r))}normalizeTileURL(t,e,n){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!J(t))return t;const i=nt(t);i.path=i.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${e||n&&"raster"!==i.authority&&512===n?"@2x":""}${q.supported?".webp":"$1"}`),"raster"===i.authority?i.path=`/${$.RASTER_URL_PREFIX}${i.path}`:(i.path=i.path.replace(/^.+\/v4\//,"/"),i.path=`/${$.TILE_URL_VERSION}${i.path}`);const r=this._customAccessToken||function(t){for(const e of t){const t=e.match(/^access_token=(.*)$/);if(t)return t[1]}return null}(i.params)||$.ACCESS_TOKEN;return $.REQUIRE_ACCESS_TOKEN&&r&&this._skuToken&&i.params.push(`sku=${this._skuToken}`),this._makeAPIURL(i,r)}canonicalizeTileURL(t,e){const n=nt(t);if(!n.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!n.path.match(/\.[\w]+$/))return t;let i="mapbox://";n.path.match(/^\/raster\/v1\//)?i+=`raster/${n.path.replace(`/${$.RASTER_URL_PREFIX}/`,"")}`:i+=`tiles/${n.path.replace(`/${$.TILE_URL_VERSION}/`,"")}`;let r=n.params;return e&&(r=r.filter(t=>!t.match(/^access_token=/))),r.length&&(i+=`?${r.join("&")}`),i}canonicalizeTileset(t,e){const n=!!e&&J(e),i=[];for(const r of t.tiles||[])tt(r)?i.push(this.canonicalizeTileURL(r,n)):i.push(r);return i}_makeAPIURL(t,e){const n="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",i=nt($.API_URL);if(t.protocol=i.protocol,t.authority=i.authority,"http"===t.protocol){const e=t.params.indexOf("secure");e>=0&&t.params.splice(e,1)}if("/"!==i.path&&(t.path=`${i.path}${t.path}`),!$.REQUIRE_ACCESS_TOKEN)return it(t);if(e=e||$.ACCESS_TOKEN,!this._silenceAuthErrors){if(!e)throw new Error(`An API access token is required to use Mapbox GL. ${n}`);if("s"===e[0])throw new Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${n}`)}return t.params=t.params.filter(t=>-1===t.indexOf("access_token")),t.params.push(`access_token=${e||""}`),it(t)}},t.ResourceType=bt,t.SegmentVector=Ho,t.SourceCache=_d,t.StencilMode=dd,t.StructArrayLayout1ui2=Zs,t.StructArrayLayout2f1f2i16=Bs,t.StructArrayLayout2i4=Ss,t.StructArrayLayout2ui4=Gs,t.StructArrayLayout3f12=Ds,t.StructArrayLayout3ui6=Us,t.StructArrayLayout4i8=ks,t.Texture=Oh,t.Tile=Kh,t.Transitionable=cs,t.Uniform1f=yo,t.Uniform1i=class extends vo{constructor(t,e){super(t,e),this.current=0}set(t){this.current!==t&&(this.current=t,this.gl.uniform1i(this.location,t))}},t.Uniform2f=class extends vo{constructor(t,e){super(t,e),this.current=[0,0]}set(t){t[0]===this.current[0]&&t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))}},t.Uniform3f=class extends vo{constructor(t,e){super(t,e),this.current=[0,0,0]}set(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))}},t.Uniform4f=xo,t.UniformColor=bo,t.UniformMatrix3f=class extends vo{constructor(t,e){super(t,e),this.current=Co}set(t){for(let e=0;e<9;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix3fv(this.location,!1,t);break}}},t.UniformMatrix4f=class extends vo{constructor(t,e){super(t,e),this.current=wo}set(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(let e=1;e<16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}}},t.UnwrappedTileID=qh,t.ValidationError=Nt,t.VectorTileWorkerSource=class extends Ft{constructor(t,e,n,i,r){super(),this.actor=t,this.layerIndex=e,this.availableImages=n,this.loadVectorData=r||kd,this.loading={},this.loaded={},this.deduped=new Sd(t.scheduler),this.isSpriteLoaded=i,this.scheduler=t.scheduler}loadTile(t,e){const n=t.uid,i=t&&t.request,r=i&&i.collectResourceTiming,s=this.loading[n]=new Md(t);s.abort=this.loadVectorData(t,(o,a)=>{const l=!this.loading[n];if(delete this.loading[n],l||o||!a)return s.status="done",l||(this.loaded[n]=s),e(o);const c=a.rawData,u={};a.expires&&(u.expires=a.expires),a.cacheControl&&(u.cacheControl=a.cacheControl),s.vectorTile=a.vectorTile||new ql.VectorTile(new Ec(c));const h=()=>{s.parse(s.vectorTile,this.layerIndex,this.availableImages,this.actor,(t,n)=>{if(t||!n)return e(t);const s={};if(r){const t=Hh(i);t.length>0&&(s.resourceTiming=JSON.parse(JSON.stringify(t)))}e(null,y({rawTileData:c.slice(0)},n,u,s))})};this.isSpriteLoaded?h():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(h,{type:"parseTile",isSymbolTile:t.isSymbolTile,zoom:t.tileZoom}):h()}),this.loaded=this.loaded||{},this.loaded[n]=s})}reloadTile(t,e){const n=this.loaded,i=t.uid,r=this;if(n&&n[i]){const s=n[i];s.showCollisionBoxes=t.showCollisionBoxes,s.enableTerrain=!!t.enableTerrain;const o=(t,n)=>{const i=s.reloadCallback;i&&(delete s.reloadCallback,s.parse(s.vectorTile,r.layerIndex,this.availableImages,r.actor,i)),e(t,n)};"parsing"===s.status?s.reloadCallback=o:"done"===s.status&&(s.vectorTile?s.parse(s.vectorTile,this.layerIndex,this.availableImages,this.actor,o):o())}}abortTile(t,e){const n=t.uid,i=this.loading[n];i&&(i.abort&&i.abort(),delete this.loading[n]),e()}removeTile(t,e){const n=this.loaded,i=t.uid;n&&n[i]&&delete n[i],e()}},t.WritingMode=nu,t.ZoomHistory=dr,t.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},t.addDynamicAttributes=oh,t.altitudeFromMercatorZ=Rh,t.asyncAll=_,t.bezier=p,t.bindAll=M,t.bufferConvexPolygon=function(t,e){const n=[];for(let i=0;i<t.length;i++){const r=f(i-1,-1,t.length-1),s=f(i+1,-1,t.length-1),o=t[i],a=t[s],l=t[r].sub(o).unit(),c=a.sub(o).unit(),u=c.angleWithSep(l.x,l.y),h=l.add(c).unit().mult(-1*e/Math.sin(u/2));n.push(o.add(h))}return n},t.cacheEntryPossiblyAdded=function(t){xt++,xt>_t&&(t.getActor().send("enforceCacheSizeLimit",ft),xt=0)},t.clamp=g,t.clearTileCache=function(t){const e=o.caches.delete(pt);t&&e.catch(t).then(()=>t())},t.clipLine=Su,t.clone=function(t){var e=new pa(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.clone$1=function(t){var e=new pa(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$2=T,t.collisionCircleLayout=yc,t.config=$,t.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},t.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},t.create=va,t.create$1=function(){var t=new pa(16);return pa!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$2=ma,t.createExpression=ui,t.createFilter=Pi,t.createLayout=Ms,t.createStyleLayer=function(t){return"custom"===t.type?new _h(t):new xh[t.type](t)},t.cross=function(t,e,n){var i=e[0],r=e[1],s=e[2],o=n[0],a=n[1],l=n[2];return t[0]=r*l-s*a,t[1]=s*o-i*l,t[2]=i*a-r*o,t},t.degToRad=u,t.div=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.dot$1=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=m,t.easeCubicInOut=d,t.emitValidationErrors=er,t.endsWith=O,t.enforceCacheSizeLimit=function(t){vt(),mt&&mt.then(e=>{e.keys().then(n=>{for(let i=0;i<n.length-t;i++)e.delete(n[i])})})},t.evaluateSizeForFeature=Cc,t.evaluateSizeForZoom=Pc,t.evaluateVariableOffset=Zu,t.evented=ns,t.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},t.exactEquals$1=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},t.exported=j,t.exported$1=q,t.extend=y,t.filterObject=k,t.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},t.fromQuat=function(t,e){var n=e[0],i=e[1],r=e[2],s=e[3],o=n+n,a=i+i,l=r+r,c=n*o,u=i*o,h=i*a,d=r*o,p=r*a,m=r*l,g=s*o,f=s*a,_=s*l;return t[0]=1-h-m,t[1]=u+_,t[2]=d-f,t[3]=0,t[4]=u-_,t[5]=1-c-m,t[6]=p+g,t[7]=0,t[8]=d+f,t[9]=p-g,t[10]=1-c-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},t.fromRotation=function(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},t.furthestTileCorner=function(t){const e=Math.round((t+45+360)%360/90)%4;return h[e]},t.getAABBPointSquareDist=function(t,e,n){let i=0;for(let r=0;r<2;++r){const s=n?n[r]:0;t[r]>s&&(i+=(t[r]-s)*(t[r]-s)),e[r]<s&&(i+=(s-e[r])*(s-e[r]))}return i},t.getAnchorAlignment=gu,t.getAnchorJustification=Xu,t.getBounds=function(t){let e=1/0,n=1/0,i=-1/0,s=-1/0;for(const r of t)e=Math.min(e,r.x),n=Math.min(n,r.y),i=Math.max(i,r.x),s=Math.max(s,r.y);return{min:new r(e,n),max:new r(i,s)}},t.getImage=At,t.getJSON=function(t,e){return Pt(y(t,{type:"json"}),e)},t.getMapSessionAPI=ht,t.getPerformanceMeasurement=Hh,t.getRTLTextPluginStatus=is,t.getReferrer=Ct,t.getVideo=function(t,e){const n=o.document.createElement("video");n.muted=!0,n.onloadstart=function(){e(null,n)};for(let i=0;i<t.length;i++){const e=o.document.createElement("source");kt(t[i])||(n.crossOrigin="Anonymous"),e.src=t[i],n.appendChild(e)}return{cancel:()=>{}}},t.identity=ga,t.identity$1=Aa,t.invert=function(t,e){var n=e[0],i=e[1],r=e[2],s=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=e[8],h=e[9],d=e[10],p=e[11],m=e[12],g=e[13],f=e[14],_=e[15],v=n*a-i*o,y=n*l-r*o,x=n*c-s*o,b=i*l-r*a,w=i*c-s*a,C=r*c-s*l,P=u*g-h*m,M=u*f-d*m,O=u*_-p*m,S=h*f-d*g,k=h*_-p*g,T=d*_
1-p*f,E=v*T-y*k+x*S+b*O-w*M+C*P;return E?(t[0]=(a*T-l*k+c*S)*(E=1/E),t[1]=(r*k-i*T-s*S)*E,t[2]=(g*C-f*w+_*b)*E,t[3]=(d*w-h*C-p*b)*E,t[4]=(l*O-o*T-c*M)*E,t[5]=(n*T-r*O+s*M)*E,t[6]=(f*x-m*C-_*y)*E,t[7]=(u*C-d*x+p*y)*E,t[8]=(o*k-a*O+c*P)*E,t[9]=(i*O-n*k-s*P)*E,t[10]=(m*w-g*x+_*v)*E,t[11]=(h*x-u*w-p*v)*E,t[12]=(a*M-o*S-l*P)*E,t[13]=(n*S-i*M+r*P)*E,t[14]=(g*y-m*b-f*v)*E,t[15]=(u*b-h*y+d*v)*E,t):null},t.isMapAuthenticated=function(t){return dt.has(t)},t.isMapboxURL=J,t.latFromMercatorY=Lh,t.len=Ta,t.length=ya,t.length$1=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},t.loadVectorTile=kd,t.makeRequest=Pt,t.mercatorXfromLng=Ah,t.mercatorYfromLat=zh,t.mercatorZfromAltitude=Dh,t.mul=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t},t.mul$1=_a,t.mul$2=ka,t.multiply=fa,t.multiply$1=wa,t.nextPowerOfTwo=C,t.normalize=Pa,t.normalize$1=function(t,e){var n=e[0],i=e[1],r=e[2],s=e[3],o=n*n+i*i+r*r+s*s;return o>0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=i*o,t[2]=r*o,t[3]=s*o,t},t.number=nn,t.ortho=function(t,e,n,i,r,s,o){var a=1/(e-n),l=1/(i-r),c=1/(s-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*a,t[13]=(r+i)*l,t[14]=(o+s)*c,t[15]=1,t},t.pbf=Ec,t.perspective=function(t,e,n,i,r){var s,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=r&&r!==1/0?(t[10]=(r+i)*(s=1/(i-r)),t[14]=2*r*i*s):(t[10]=-1,t[14]=-2*i),t},t.pick=function(t,e){const n={};for(let i=0;i<e.length;i++){const r=e[i];r in t&&(n[r]=t[r])}return n},t.plugin=ss,t.pointGeometry=r,t.polygonIntersectsBox=sa,t.polygonIntersectsPolygon=Xo,t.polygonizeBounds=function(t,e,n=0,i=!0){const s=new r(n,n),o=t.sub(s),a=e.add(s),l=[o,new r(a.x,o.y),a,new r(o.x,a.y)];return i&&l.push(o),l},t.posAttributes=Qh,t.postMapLoadEvent=ct,t.postTurnstileEvent=at,t.potpack=Jc,t.prevPowerOfTwo=function(t){return t<=1?1:Math.pow(2,Math.floor(Math.log(t)/Math.LN2))},t.radToDeg=function(t){return t*c},t.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],t.registerForPluginStateChange=function(t){return t({pluginStatus:Yr,pluginURL:Jr}),ns.on("pluginStateChange",t),t},t.removeAuthState=function(t){dt.delete(t)},t.renderColorRamp=qa,t.rotateX=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),s=e[4],o=e[5],a=e[6],l=e[7],c=e[8],u=e[9],h=e[10],d=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*r+c*i,t[5]=o*r+u*i,t[6]=a*r+h*i,t[7]=l*r+d*i,t[8]=c*r-s*i,t[9]=u*r-o*i,t[10]=h*r-a*i,t[11]=d*r-l*i,t},t.rotateX$1=za,t.rotateY=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),s=e[0],o=e[1],a=e[2],l=e[3],c=e[8],u=e[9],h=e[10],d=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*r-c*i,t[1]=o*r-u*i,t[2]=a*r-h*i,t[3]=l*r-d*i,t[8]=s*i+c*r,t[9]=o*i+u*r,t[10]=a*i+h*r,t[11]=l*i+d*r,t},t.rotateZ=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),s=e[0],o=e[1],a=e[2],l=e[3],c=e[4],u=e[5],h=e[6],d=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*r+c*i,t[1]=o*r+u*i,t[2]=a*r+h*i,t[3]=l*r+d*i,t[4]=c*r-s*i,t[5]=u*r-o*i,t[6]=h*r-a*i,t[7]=d*r-l*i,t},t.rotateZ$1=function(t,e,n){n*=.5;var i=e[0],r=e[1],s=e[2],o=e[3],a=Math.sin(n),l=Math.cos(n);return t[0]=i*l+r*a,t[1]=r*l-i*a,t[2]=s*l+o*a,t[3]=o*l-s*a,t},t.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},t.scale$1=function(t,e,n){var i=n[0],r=n[1],s=n[2];return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$2=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},t.scaleAndAdd=Ca,t.setCacheLimits=function(t,e){ft=t,_t=e},t.setRTLTextPlugin=function(t,e,n=!1){if(Yr===Wr||Yr===Xr||Yr===Qr)throw new Error("setRTLTextPlugin cannot be called multiple times.");Jr=j.resolveURL(t),Yr=Wr,Kr=e,es(),n||rs()},t.smoothstep=function(t,e,n){return(n=g((n-t)/(e-t),0,1))*n*(3-2*n)},t.spec=Bt,t.storeAuthState=function(t,e){e?dt.add(t):dt.delete(t)},t.sub=Sa,t.subtract=ba,t.symbolSize=Mc,t.transformMat3=function(t,e,n){var i=e[0],r=e[1],s=e[2];return t[0]=i*n[0]+r*n[3]+s*n[6],t[1]=i*n[1]+r*n[4]+s*n[7],t[2]=i*n[2]+r*n[5]+s*n[8],t},t.transformMat4=Ea,t.transformMat4$1=function(t,e,n){var i=e[0],r=e[1],s=e[2],o=n[3]*i+n[7]*r+n[11]*s+n[15];return t[0]=(n[0]*i+n[4]*r+n[8]*s+n[12])/(o=o||1),t[1]=(n[1]*i+n[5]*r+n[9]*s+n[13])/o,t[2]=(n[2]*i+n[6]*r+n[10]*s+n[14])/o,t},t.transformQuat=Ma,t.translate=function(t,e,n){var i,r,s,o,a,l,c,u,h,d,p,m,g=n[0],f=n[1],_=n[2];return e===t?(t[12]=e[0]*g+e[4]*f+e[8]*_+e[12],t[13]=e[1]*g+e[5]*f+e[9]*_+e[13],t[14]=e[2]*g+e[6]*f+e[10]*_+e[14],t[15]=e[3]*g+e[7]*f+e[11]*_+e[15]):(r=e[1],s=e[2],o=e[3],a=e[4],l=e[5],c=e[6],u=e[7],h=e[8],d=e[9],p=e[10],m=e[11],t[0]=i=e[0],t[1]=r,t[2]=s,t[3]=o,t[4]=a,t[5]=l,t[6]=c,t[7]=u,t[8]=h,t[9]=d,t[10]=p,t[11]=m,t[12]=i*g+a*f+h*_+e[12],t[13]=r*g+l*f+d*_+e[13],t[14]=s*g+c*f+p*_+e[14],t[15]=o*g+u*f+m*_+e[15]),t},t.triggerPluginCompletionEvent=ts,t.uniqueId=b,t.validateCustomStyleLayer=function(t){const e=[],n=t.id;return void 0===n&&e.push({message:`layers.${n}: missing required property "id"`}),void 0===t.render&&e.push({message:`layers.${n}: missing required method "render"`}),t.renderingMode&&"2d"!==t.renderingMode&&"3d"!==t.renderingMode&&e.push({message:`layers.${n}: property "renderingMode" must be either "2d" or "3d"`}),e},t.validateFog=Yi,t.validateLight=Ki,t.validateStyle=Qi,t.values=v,t.vectorTile=ql,t.version=e,t.warnOnce=I,t.window=o,t.wrap=f}),i(0,function(t){function e(t){const n=typeof t;if("number"===n||"boolean"===n||"string"===n||null==t)return JSON.stringify(t);if(Array.isArray(t)){let n="[";for(const i of t)n+=`${e(i)},`;return`${n}]`}const i=Object.keys(t).sort();let r="{";for(let s=0;s<i.length;s++)r+=`${JSON.stringify(i[s])}:${e(t[i[s]])},`;return`${r}}`}function n(n){let i="";for(const r of t.refProperties)i+=`/${e(n[r])}`;return i}class i{constructor(t){this.keyCache={},t&&this.replace(t)}replace(t){this._layerConfigs={},this._layers={},this.update(t,[])}update(e,i){for(const n of e){this._layerConfigs[n.id]=n;const e=this._layers[n.id]=t.createStyleLayer(n);e._featureFilter=t.createFilter(e.filter),this.keyCache[n.id]&&delete this.keyCache[n.id]}for(const t of i)delete this.keyCache[t],delete this._layerConfigs[t],delete this._layers[t];this.familiesBySource={};const r=function(t,e){const i={};for(let s=0;s<t.length;s++){const r=e&&e[t[s].id]||n(t[s]);e&&(e[t[s].id]=r);let o=i[r];o||(o=i[r]=[]),o.push(t[s])}const r=[];for(const n in i)r.push(i[n]);return r}(t.values(this._layerConfigs),this.keyCache);for(const t of r){const e=t.map(t=>this._layers[t.id]),n=e[0];if("none"===n.visibility)continue;const i=n.source||"";let r=this.familiesBySource[i];r||(r=this.familiesBySource[i]={});const s=n.sourceLayer||"_geojsonTileLayer";let o=r[s];o||(o=r[s]=[]),o.push(e)}}}const{ImageBitmap:r}=t.window;class s{loadTile(e,n){const{uid:i,encoding:s,rawImageData:o,padding:a,buildQuadTree:l}=e,c=r&&o instanceof r?this.getImageData(o,a):o;n(null,new t.DEMData(i,c,s,a<1,l))}getImageData(e,n){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);const i=this.offscreenCanvasContext.getImageData(-n,-n,e.width+2*n,e.height+2*n);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:i.width,height:i.height},i.data)}}var o=function t(e,n){var i,r=e&&e.type;if("FeatureCollection"===r)for(i=0;i<e.features.length;i++)t(e.features[i],n);else if("GeometryCollection"===r)for(i=0;i<e.geometries.length;i++)t(e.geometries[i],n);else if("Feature"===r)t(e.geometry,n);else if("Polygon"===r)a(e.coordinates,n);else if("MultiPolygon"===r)for(i=0;i<e.coordinates.length;i++)a(e.coordinates[i],n);return e};function a(t,e){if(0!==t.length){l(t[0],e);for(var n=1;n<t.length;n++)l(t[n],!e)}}function l(t,e){for(var n=0,i=0,r=t.length,s=r-1;i<r;s=i++)n+=(t[i][0]-t[s][0])*(t[s][1]+t[i][1]);n>=0!=!!e&&t.reverse()}const c=t.vectorTile.VectorTileFeature.prototype.toGeoJSON;class u{constructor(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=p
vendor: 26,445 bytes, line 1
1arseInt(e.id,10))}loadGeometry(){if(1===this._feature.type){const e=[];for(const n of this._feature.geometry)e.push([new t.pointGeometry(n[0],n[1])]);return e}{const e=[];for(const n of this._feature.geometry){const i=[];for(const e of n)i.push(new t.pointGeometry(e[0],e[1]));e.push(i)}return e}}toGeoJSON(t,e,n){return c.call(this,t,e,n)}}class h{constructor(e){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=t.EXTENT,this.length=e.length,this._features=e}feature(t){return new u(this._features[t])}}var d=t.vectorTile.VectorTileFeature,p=m;function m(t,e){this.options=e||{},this.features=t,this.length=t.length}function g(t,e){this.id="number"==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}m.prototype.feature=function(t){return new g(this.features[t],this.options.extent)},g.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var n=0;n<e.length;n++){for(var i=e[n],r=[],s=0;s<i.length;s++)r.push(new t.pointGeometry(i[s][0],i[s][1]));this.geometry.push(r)}return this.geometry},g.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,n=-1/0,i=1/0,r=-1/0,s=0;s<t.length;s++)for(var o=t[s],a=0;a<o.length;a++){var l=o[a];e=Math.min(e,l.x),n=Math.max(n,l.x),i=Math.min(i,l.y),r=Math.max(r,l.y)}return[e,i,n,r]},g.prototype.toGeoJSON=d.prototype.toGeoJSON;var f=v,_=p;function v(e){var n=new t.pbf;return function(t,e){for(var n in t.layers)e.writeMessage(3,y,t.layers[n])}(e,n),n.finish()}function y(t,e){var n;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);var i={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<t.length;n++)i.feature=t.feature(n),e.writeMessage(2,x,i);var r=i.keys;for(n=0;n<r.length;n++)e.writeStringField(3,r[n]);var s=i.values;for(n=0;n<s.length;n++)e.writeMessage(4,M,s[n])}function x(t,e){var n=t.feature;void 0!==n.id&&e.writeVarintField(1,n.id),e.writeMessage(2,b,t),e.writeVarintField(3,n.type),e.writeMessage(4,P,n)}function b(t,e){var n=t.feature,i=t.keys,r=t.values,s=t.keycache,o=t.valuecache;for(var a in n.properties){var l=s[a];void 0===l&&(i.push(a),s[a]=l=i.length-1),e.writeVarint(l);var c=n.properties[a],u=typeof c;"string"!==u&&"boolean"!==u&&"number"!==u&&(c=JSON.stringify(c));var h=u+":"+c,d=o[h];void 0===d&&(r.push(c),o[h]=d=r.length-1),e.writeVarint(d)}}function w(t,e){return(e<<3)+(7&t)}function C(t){return t<<1^t>>31}function P(t,e){for(var n=t.loadGeometry(),i=t.type,r=0,s=0,o=n.length,a=0;a<o;a++){var l=n[a],c=1;1===i&&(c=l.length),e.writeVarint(w(1,c));for(var u=3===i?l.length-1:l.length,h=0;h<u;h++){1===h&&1!==i&&e.writeVarint(w(2,u-1));var d=l[h].x-r,p=l[h].y-s;e.writeVarint(C(d)),e.writeVarint(C(p)),r+=d,s+=p}3===i&&e.writeVarint(w(7,1))}}function M(t,e){var n=typeof t;"string"===n?e.writeStringField(1,t):"boolean"===n?e.writeBooleanField(7,t):"number"===n&&(t%1!=0?e.writeDoubleField(3,t):t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function O(t,e,n,i,r,s){if(r-i<=n)return;const o=i+r>>1;S(t,e,o,i,r,s%2),O(t,e,n,i,o-1,s+1),O(t,e,n,o+1,r,s+1)}function S(t,e,n,i,r,s){for(;r>i;){if(r-i>600){const o=r-i+1,a=n-i+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(a-o/2<0?-1:1);S(t,e,n,Math.max(i,Math.floor(n-a*c/o+u)),Math.min(r,Math.floor(n+(o-a)*c/o+u)),s)}const o=e[2*n+s];let a=i,l=r;for(k(t,e,i,n),e[2*r+s]>o&&k(t,e,i,r);a<l;){for(k(t,e,a,l),a++,l--;e[2*a+s]<o;)a++;for(;e[2*l+s]>o;)l--}e[2*i+s]===o?k(t,e,i,l):(l++,k(t,e,l,r)),l<=n&&(i=l+1),n<=l&&(r=l-1)}}function k(t,e,n,i){T(t,n,i),T(e,2*n,2*i),T(e,2*n+1,2*i+1)}function T(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function E(t,e,n,i){const r=t-n,s=e-i;return r*r+s*s}f.fromVectorTileJs=v,f.fromGeojsonVt=function(t,e){e=e||{};var n={};for(var i in t)n[i]=new p(t[i].features,e),n[i].name=i,n[i].version=e.version,n[i].extent=e.extent;return v({layers:n})},f.GeoJSONWrapper=_;const I=t=>t[0],A=t=>t[1];class z{constructor(t,e=I,n=A,i=64,r=Float64Array){this.nodeSize=i,this.points=t;const s=t.length<65536?Uint16Array:Uint32Array,o=this.ids=new s(t.length),a=this.coords=new r(2*t.length);for(let l=0;l<t.length;l++)o[l]=l,a[2*l]=e(t[l]),a[2*l+1]=n(t[l]);O(o,a,i,0,o.length-1,0)}range(t,e,n,i){return function(t,e,n,i,r,s,o){const a=[0,t.length-1,0],l=[];let c,u;for(;a.length;){const h=a.pop(),d=a.pop(),p=a.pop();if(d-p<=o){for(let o=p;o<=d;o++)c=e[2*o],u=e[2*o+1],c>=n&&c<=r&&u>=i&&u<=s&&l.push(t[o]);continue}const m=Math.floor((p+d)/2);c=e[2*m],u=e[2*m+1],c>=n&&c<=r&&u>=i&&u<=s&&l.push(t[m]);const g=(h+1)%2;(0===h?n<=c:i<=u)&&(a.push(p),a.push(m-1),a.push(g)),(0===h?r>=c:s>=u)&&(a.push(m+1),a.push(d),a.push(g))}return l}(this.ids,this.coords,t,e,n,i,this.nodeSize)}within(t,e,n){return function(t,e,n,i,r,s){const o=[0,t.length-1,0],a=[],l=r*r;for(;o.length;){const c=o.pop(),u=o.pop(),h=o.pop();if(u-h<=s){for(let r=h;r<=u;r++)E(e[2*r],e[2*r+1],n,i)<=l&&a.push(t[r]);continue}const d=Math.floor((h+u)/2),p=e[2*d],m=e[2*d+1];E(p,m,n,i)<=l&&a.push(t[d]);const g=(c+1)%2;(0===c?n-r<=p:i-r<=m)&&(o.push(h),o.push(d-1),o.push(g)),(0===c?n+r>=p:i+r>=m)&&(o.push(d+1),o.push(u),o.push(g))}return a}(this.ids,this.coords,t,e,n,this.nodeSize)}}const D={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},L=Math.fround||(R=new Float32Array(1),t=>(R[0]=+t,R[0]));var R;class F{constructor(t){this.options=q(Object.create(D),t),this.trees=new Array(this.options.maxZoom+1)}load(t){const{log:e,minZoom:n,maxZoom:i,nodeSize:r}=this.options;e&&console.time("total time");const s=`prepare ${t.length} points`;e&&console.time(s),this.points=t;let o=[];for(let a=0;a<t.length;a++)t[a].geometry&&o.push(N(t[a],a));this.trees[i+1]=new z(o,G,Z,r,Float32Array),e&&console.timeEnd(s);for(let a=i;a>=n;a--){const t=+Date.now();o=this._cluster(o,a),this.trees[a]=new z(o,G,Z,r,Float32Array),e&&console.log("z%d: %d clusters in %dms",a,o.length,+Date.now()-t)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let n=((t[0]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[1]));let r=180===t[2]?180:((t[2]+180)%360+360)%360-180;const s=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)n=-180,r=180;else if(n>r){const t=this.getClusters([n,i,180,s],e),o=this.getClusters([-180,i,r,s],e);return t.concat(o)}const o=this.trees[this._limitZoom(e)],a=o.range(j(n),V(s),j(r),V(i)),l=[];for(const c of a){const t=o.points[c];l.push(t.numPoints?U(t):this.points[t.index])}return l}getChildren(t){const e=this._getOriginId(t),n=this._getOriginZoom(t),i="No cluster with the specified id.",r=this.trees[n];if(!r)throw new Error(i);const s=r.points[e];if(!s)throw new Error(i);const o=this.options.radius/(this.options.extent*Math.pow(2,n-1)),a=r.within(s.x,s.y,o),l=[];for(const c of a){const e=r.points[c];e.parentId===t&&l.push(e.numPoints?U(e):this.points[e.index])}if(0===l.length)throw new Error(i);return l}getLeaves(t,e,n){const i=[];return this._appendLeaves(i,t,e=e||10,n=n||0,0),i}getTile(t,e,n){const i=this.trees[this._limitZoom(t)],r=Math.pow(2,t),{extent:s,radius:o}=this.options,a=o/s,l=(n-a)/r,c=(n+1+a)/r,u={features:[]};return this._addTileFeatures(i.range((e-a)/r,l,(e+1+a)/r,c),i.points,e,n,r,u),0===e&&this._addTileFeatures(i.range(1-a/r,l,1,c),i.points,r,n,r,u),e===r-1&&this._addTileFeatures(i.range(0,l,a/r,c),i.points,-1,n,r,u),u.features.length?u:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const n=this.getChildren(t);if(e++,1!==n.length)break;t=n[0].properties.cluster_id}return e}_appendLeaves(t,e,n,i,r){const s=this.getChildren(e);for(const o of s){const e=o.properties;if(e&&e.cluster?r+e.point_count<=i?r+=e.point_count:r=this._appendLeaves(t,e.cluster_id,n,i,r):r<i?r++:t.push(o),t.length===n)break}return r}_addTileFeatures(t,e,n,i,r,s){for(const o of t){const t=e[o],a=t.numPoints;let l,c,u;if(a)l=H(t),c=t.x,u=t.y;else{const e=this.points[t.index];l=e.properties,c=j(e.geometry.coordinates[0]),u=V(e.geometry.coordinates[1])}const h={type:1,geometry:[[Math.round(this.options.extent*(c*r-n)),Math.round(this.options.extent*(u*r-i))]],tags:l};let d;a?d=t.id:this.options.generateId?d=t.index:this.points[t.index].id&&(d=this.points[t.index].id),void 0!==d&&(h.id=d),s.features.push(h)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(+t,this.options.maxZoom+1))}_cluster(t,e){const n=[],{radius:i,extent:r,reduce:s,minPoints:o}=this.options,a=i/(r*Math.pow(2,e));for(let l=0;l<t.length;l++){const i=t[l];if(i.zoom<=e)continue;i.zoom=e;const r=this.trees[e+1],c=r.within(i.x,i.y,a),u=i.numPoints||1;let h=u;for(const t of c){const n=r.points[t];n.zoom>e&&(h+=n.numPoints||1)}if(h>=o){let t=i.x*u,o=i.y*u,a=s&&u>1?this._map(i,!0):null;const d=(l<<5)+(e+1)+this.points.length;for(const n of c){const l=r.points[n];if(l.zoom<=e)continue;l.zoom=e;const c=l.numPoints||1;t+=l.x*c,o+=l.y*c,l.parentId=d,s&&(a||(a=this._map(i,!0)),s(a,this._map(l)))}i.parentId=d,n.push(B(t/h,o/h,d,h,a))}else if(n.push(i),h>1)for(const t of c){const i=r.points[t];i.zoom<=e||(i.zoom=e,n.push(i))}}return n}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e){if(t.numPoints)return e?q({},t.properties):t.properties;const n=this.points[t.index].properties,i=this.options.map(n);return e&&i===n?q({},i):i}}function B(t,e,n,i,r){return{x:L(t),y:L(e),zoom:1/0,id:n,parentId:-1,numPoints:i,properties:r}}function N(t,e){const[n,i]=t.geometry.coordinates;return{x:L(j(n)),y:L(V(i)),zoom:1/0,index:e,parentId:-1}}function U(t){return{type:"Feature",id:t.id,properties:H(t),geometry:{type:"Point",coordinates:[(e=t.x,360*(e-.5)),$(t.y)]}};var e}function H(t){const e=t.numPoints,n=e>=1e4?`${Math.round(e/1e3)}k`:e>=1e3?Math.round(e/100)/10+"k":e;return q(q({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:n})}function j(t){return t/360+.5}function V(t){const e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function $(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function q(t,e){for(const n in e)t[n]=e[n];return t}function G(t){return t.x}function Z(t){return t.y}function W(t,e,n,i){for(var r,s=i,o=n-e>>1,a=n-e,l=t[e],c=t[e+1],u=t[n],h=t[n+1],d=e+3;d<n;d+=3){var p=X(t[d],t[d+1],l,c,u,h);if(p>s)r=d,s=p;else if(p===s){var m=Math.abs(d-o);m<a&&(r=d,a=m)}}s>i&&(r-e>3&&W(t,e,r,i),t[r+2]=s,n-r>3&&W(t,r,n,i))}function X(t,e,n,i,r,s){var o=r-n,a=s-i;if(0!==o||0!==a){var l=((t-n)*o+(e-i)*a)/(o*o+a*a);l>1?(n=r,i=s):l>0&&(n+=o*l,i+=a*l)}return(o=t-n)*o+(a=e-i)*a}function Q(t,e,n,i){var r={id:void 0===t?null:t,type:e,geometry:n,tags:i,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,n=t.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)K(t,e);else if("Polygon"===n||"MultiLineString"===n)for(var i=0;i<e.length;i++)K(t,e[i]);else if("MultiPolygon"===n)for(i=0;i<e.length;i++)for(var r=0;r<e[i].length;r++)K(t,e[i][r])}(r),r}function K(t,e){for(var n=0;n<e.length;n+=3)t.minX=Math.min(t.minX,e[n]),t.minY=Math.min(t.minY,e[n+1]),t.maxX=Math.max(t.maxX,e[n]),t.maxY=Math.max(t.maxY,e[n+1])}function Y(t,e,n,i){if(e.geometry){var r=e.geometry.coordinates,s=e.geometry.type,o=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),a=[],l=e.id;if(n.promoteId?l=e.properties[n.promoteId]:n.generateId&&(l=i||0),"Point"===s)J(r,a);else if("MultiPoint"===s)for(var c=0;c<r.length;c++)J(r[c],a);else if("LineString"===s)tt(r,a,o,!1);else if("MultiLineString"===s){if(n.lineMetrics){for(c=0;c<r.length;c++)tt(r[c],a=[],o,!1),t.push(Q(l,"LineString",a,e.properties));return}et(r,a,o,!1)}else if("Polygon"===s)et(r,a,o,!0);else{if("MultiPolygon"!==s){if("GeometryCollection"===s){for(c=0;c<e.geometry.geometries.length;c++)Y(t,{id:l,geometry:e.geometry.geometries[c],properties:e.properties},n,i);return}throw new Error("Input data is not a valid GeoJSON object.")}for(c=0;c<r.length;c++){var u=[];et(r[c],u,o,!0),a.push(u)}}t.push(Q(l,s,a,e.properties))}}function J(t,e){e.push(nt(t[0])),e.push(it(t[1])),e.push(0)}function tt(t,e,n,i){for(var r,s,o=0,a=0;a<t.length;a++){var l=nt(t[a][0]),c=it(t[a][1]);e.push(l),e.push(c),e.push(0),a>0&&(o+=i?(r*c-l*s)/2:Math.sqrt(Math.pow(l-r,2)+Math.pow(c-s,2))),r=l,s=c}var u=e.length-3;e[2]=1,W(e,0,u,n),e[u+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function et(t,e,n,i){for(var r=0;r<t.length;r++){var s=[];tt(t[r],s,n,i),e.push(s)}}function nt(t){return t/360+.5}function it(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function rt(t,e,n,i,r,s,o,a){if(i/=e,s>=(n/=e)&&o<i)return t;if(o<n||s>=i)return null;for(var l=[],c=0;c<t.length;c++){var u=t[c],h=u.geometry,d=u.type,p=0===r?u.minX:u.minY,m=0===r?u.maxX:u.maxY;if(p>=n&&m<i)l.push(u);else if(!(m<n||p>=i)){var g=[];if("Point"===d||"MultiPoint"===d)st(h,g,n,i,r);else if("LineString"===d)ot(h,g,n,i,r,!1,a.lineMetrics);else if("MultiLineString"===d)lt(h,g,n,i,r,!1);else if("Polygon"===d)lt(h,g,n,i,r,!0);else if("MultiPolygon"===d)for(var f=0;f<h.length;f++){var _=[];lt(h[f],_,n,i,r,!0),_.length&&g.push(_)}if(g.length){if(a.lineMetrics&&"LineString"===d){for(f=0;f<g.length;f++)l.push(Q(u.id,d,g[f],u.tags));continue}"LineString"!==d&&"MultiLineString"!==d||(1===g.length?(d="LineString",g=g[0]):d="MultiLineString"),"Point"!==d&&"MultiPoint"!==d||(d=3===g.length?"Point":"MultiPoint"),l.push(Q(u.id,d,g,u.tags))}}}return l.length?l:null}function st(t,e,n,i,r){for(var s=0;s<t.length;s+=3){var o=t[s+r];o>=n&&o<=i&&(e.push(t[s]),e.push(t[s+1]),e.push(t[s+2]))}}function ot(t,e,n,i,r,s,o){for(var a,l,c=at(t),u=0===r?ut:ht,h=t.start,d=0;d<t.length-3;d+=3){var p=t[d],m=t[d+1],g=t[d+2],f=t[d+3],_=t[d+4],v=0===r?p:m,y=0===r?f:_,x=!1;o&&(a=Math.sqrt(Math.pow(p-f,2)+Math.pow(m-_,2))),v<n?y>n&&(l=u(c,p,m,f,_,n),o&&(c.start=h+a*l)):v>i?y<i&&(l=u(c,p,m,f,_,i),o&&(c.start=h+a*l)):ct(c,p,m,g),y<n&&v>=n&&(l=u(c,p,m,f,_,n),x=!0),y>i&&v<=i&&(l=u(c,p,m,f,_,i),x=!0),!s&&x&&(o&&(c.end=h+a*l),e.push(c),c=at(t)),o&&(h+=a)}var b=t.length-3;p=t[b],m=t[b+1],g=t[b+2],(v=0===r?p:m)>=n&&v<=i&&ct(c,p,m,g),b=c.length-3,s&&b>=3&&(c[b]!==c[0]||c[b+1]!==c[1])&&ct(c,c[0],c[1],c[2]),c.length&&e.push(c)}function at(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function lt(t,e,n,i,r,s){for(var o=0;o<t.length;o++)ot(t[o],e,n,i,r,s,!1)}function ct(t,e,n,i){t.push(e),t.push(n),t.push(i)}function ut(t,e,n,i,r,s){var o=(s-e)/(i-e);return t.push(s),t.push(n+(r-n)*o),t.push(1),o}function ht(t,e,n,i,r,s){var o=(s-n)/(r-n);return t.push(e+(i-e)*o),t.push(s),t.push(1),o}function dt(t,e){for(var n=[],i=0;i<t.length;i++){var r,s=t[i],o=s.type;if("Point"===o||"MultiPoint"===o||"LineString"===o)r=pt(s.geometry,e);else if("MultiLineString"===o||"Polygon"===o){r=[];for(var a=0;a<s.geometry.length;a++)r.push(pt(s.geometry[a],e))}else if("MultiPolygon"===o)for(r=[],a=0;a<s.geometry.length;a++){for(var l=[],c=0;c<s.geometry[a].length;c++)l.push(pt(s.geometry[a][c],e));r.push(l)}n.push(Q(s.id,o,r,s.tags))}return n}function pt(t,e){var n=[];n.size=t.size,void 0!==t.start&&(n.start=t.start,n.end=t.end);for(var i=0;i<t.length;i+=3)n.push(t[i]+e,t[i+1],t[i+2]);return n}function mt(t,e){if(t.transformed)return t;var n,i,r,s=1<<t.z,o=t.x,a=t.y;for(n=0;n<t.features.length;n++){var l=t.features[n],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(i=0;i<c.length;i+=2)l.geometry.push(gt(c[i],c[i+1],e,s,o,a));else for(i=0;i<c.length;i++){var h=[];for(r=0;r<c[i].length;r+=2)h.push(gt(c[i][r],c[i][r+1],e,s,o,a));l.geometry.push(h)}}return t.transformed=!0,t}function gt(t,e,n,i,r,s){return[Math.round(n*(t*i-r)),Math.round(n*(e*i-s))]}function ft(t,e,n,i,r){for(var s=e===r.maxZoom?0:r.tolerance/((1<<e)*r.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:i,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},a=0;a<t.length;a++){o.numFeatures++,_t(o,t[a],s,r);var l=t[a].minX,c=t[a].minY,u=t[a].maxX,h=t[a].maxY;l<o.minX&&(o.minX=l),c<o.minY&&(o.minY=c),u>o.maxX&&(o.maxX=u),h>o.maxY&&(o.maxY=h)}return o}function _t(t,e,n,i){var r=e.geometry,s=e.type,o=[];if("Point"===s||"MultiPoint"===s)for(var a=0;a<r.length;a+=3)o.push(r[a]),o.push(r[a+1]),t.numPoints++,t.numSimplified++;else if("LineString"===s)vt(o,r,t,n,!1,!1);else if("MultiLineString"===s||"Polygon"===s)for(a=0;a<r.length;a++)vt(o,r[a],t,n,"Polygon"===s,0===a);else if("MultiPolygon"===s)for(var l=0;l<r.length;l++){var c=r[l];for(a=0;a<c.length;a++)vt(o,c[a],t,n,!0,0===a)}if(o.length){var u=e.tags||null;if("LineString"===s&&i.lineMetrics){for(var h in u={},e.tags)u[h]=e.tags[h];u.mapbox_clip_start=r.start/r.size,u.mapbox_clip_end=r.end/r.size}var d={geometry:o,type:"Polygon"===s||"MultiPolygon"===s?3:"LineString"===s||"MultiLineString"===s?2:1,tags:u};null!==e.id&&(d.id=e.id),t.features.push(d)}}function vt(t,e,n,i,r,s){var o=i*i;if(i>0&&e.size<(r?o:i))n.numPoints+=e.length/3;else{for(var a=[],l=0;l<e.length;l+=3)(0===i||e[l+2]>o)&&(n.numSimplified++,a.push(e[l]),a.push(e[l+1])),n.numPoints++;r&&function(t,e){for(var n=0,i=0,r=t.length,s=r-2;i<r;s=i,i+=2)n+=(t[i]-t[s])*(t[i+1]+t[s+1]);if(n>0===e)for(i=0,r=t.length;i<r/2;i+=2){var o=t[i],a=t[i+1];t[i]=t[r-2-i],t[i+1]=t[r-1-i],t[r-2-i]=o,t[r-1-i]=a}}(a,s),t.push(a)}}function yt(t,e){var n=(e=this.options=function(t,e){for(var n in e)t[n]=e[n];return t}(Object.create(this.options),e)).debug;if(n&&console.time("preprocess data"),e.maxZoom<0||e.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var i=function(t,e){var n=[];if("FeatureCollection"===t.type)for(var i=0;i<t.features.length;i++)Y(n,t.features[i],e,i);else Y(n,"Feature"===t.type?t:{geometry:t},e);return n}(t,e);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(i=function(t,e){var n=e.buffer/e.extent,i=t,r=rt(t,1,-1-n,n,0,-1,2,e),s=rt(t,1,1-n,2+n,0,-1,2,e);return(r||s)&&(i=rt(t,1,-n,1+n,0,-1,2,e)||[],r&&(i=dt(r,1).concat(i)),s&&(i=i.concat(dt(s,-1)))),i}(i,e)).length&&this.splitTile(i,0,0,0),n&&(i.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function xt(t,e,n){return 32*((1<<t)*n+e)+t}function bt(t,e){const n=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);const i=this._geoJSONIndex.getTile(n.z,n.x,n.y);if(!i)return e(null,null);const r=new h(i.features);let s=f(r);0===s.byteOffset&&s.byteLength===s.buffer.byteLength||(s=new Uint8Array(s)),e(null,{vectorTile:r,rawData:s.buffer})}yt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},yt.prototype.splitTile=function(t,e,n,i,r,s,o){for(var a=[t,e,n,i],l=this.options,c=l.debug;a.length;){i=a.pop(),n=a.pop(),e=a.pop(),t=a.pop();var u=1<<e,h=xt(e,n,i),d=this.tiles[h];if(!d&&(c>1&&console.time("creation"),d=this.tiles[h]=ft(t,e,n,i,l),this.tileCoords.push({z:e,x:n,y:i}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,n,i,d.numFeatures,d.numPoints,d.numSimplified),console.timeEnd("creation"));var p="z"+e;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(d.source=t,r){if(e===l.maxZoom||e===r)continue;var m=1<<r-e;if(n!==Math.floor(s/m)||i!==Math.floor(o/m))continue}else if(e===l.indexMaxZoom||d.numPoints<=l.indexMaxPoints)continue;if(d.source=null,0!==t.length){c>1&&console.time("clipping");var g,f,_,v,y,x,b=.5*l.buffer/l.extent,w=.5-b,C=.5+b,P=1+b;g=f=_=v=null,y=rt(t,u,n-b,n+C,0,d.minX,d.maxX,l),x=rt(t,u,n+w,n+P,0,d.minX,d.maxX,l),t=null,y&&(g=rt(y,u,i-b,i+C,1,d.minY,d.maxY,l),f=rt(y,u,i+w,i+P,1,d.minY,d.maxY,l),y=null),x&&(_=rt(x,u,i-b,i+C,1,d.minY,d.maxY,l),v=rt(x,u,i+w,i+P,1,d.minY,d.maxY,l),x=null),c>1&&console.timeEnd("clipping"),a.push(g||[],e+1,2*n,2*i),a.push(f||[],e+1,2*n,2*i+1),a.push(_||[],e+1,2*n+1,2*i),a.push(v||[],e+1,2*n+1,2*i+1)}}},yt.prototype.getTile=function(t,e,n){var i=this.options,r=i.extent,s=i.debug;if(t<0||t>24)return null;var o=1<<t,a=xt(t,e=(e%o+o)%o,n);if(this.tiles[a])return mt(this.tiles[a],r);s>1&&console.log("drilling down to z%d-%d-%d",t,e,n);for(var l,c=t,u=e,h=n;!l&&c>0;)c--,u=Math.floor(u/2),h=Math.floor(h/2),l=this.tiles[xt(c,u,h)];return l&&l.source?(s>1&&console.log("found parent tile z%d-%d-%d",c,u,h),s>1&&console.time("drilling down"),this.splitTile(l.source,c,u,h,t,e,n),s>1&&console.timeEnd("drilling down"),this.tiles[a]?mt(this.tiles[a],r):null):null};class wt extends t.VectorTileWorkerSource{constructor(t,e,n,i,r){super(t,e,n,i,bt),r&&(this.loadGeoJSON=r)}loadData(e,n){const i=e&&e.request,r=i&&i.collectResourceTiming;this.loadGeoJSON(e,(s,a)=>{if(s||!a)return n(s);if("object"!=typeof a)return n(new Error(`Input data given to '${e.source}' is not a valid GeoJSON object.`));{o(a,!0);try{if(e.filter){const n=t.createExpression(e.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===n.result)throw new Error(n.value.map(t=>`${t.key}: ${t.message}`).join(", "));const i=a.features.filter(t=>n.value.evaluate({zoom:0},t));a={type:"FeatureCollection",features:i}}this._geoJSONIndex=e.cluster?new F(function({superclusterOptions:e,clusterProperties:n}){if(!n||!e)return e;const i={},r={},s={accumulated:null,zoom:0},o={properties:null},a=Object.keys(n);for(const l of a){const[e,s]=n[l],o=t.createExpression(s),a=t.createExpression("string"==typeof e?[e,["accumulated"],["get",l]]:e);i[l]=o.value,r[l]=a.value}return e.map=t=>{o.properties=t;const e={};for(const n of a)e[n]=i[n].evaluate(s,o);return e},e.reduce=(t,e)=>{o.properties=e;for(const n of a)s.accumulated=t[n],t[n]=r[n].evaluate(s,o)},e}(e)).load(a.features):function(t,e){return new yt(t,e)}(a,e.geojsonVtOptions)}catch(s){return n(s)}this.loaded={};const l={};if(r){const n=t.getPerformanceMeasurement(i);n&&(l.resourceTiming={},l.resourceTiming[e.source]=JSON.parse(JSON.stringify(n)))}n(null,l)}})}reloadTile(t,e){const n=this.loaded;return n&&n[t.uid]?super.reloadTile(t,e):this.loadTile(t,e)}loadGeoJSON(e,n){if(e.request)t.getJSON(e.request,n);else{if("string"!=typeof e.data)return n(new Error(`Input data given to '${e.source}' is not a valid GeoJSON object.`));try{return n(null,JSON.parse(e.data))}catch(t){return n(new Error(`Input data given to '${e.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}}getClusterChildren(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}}getClusterLeaves(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}}}class Ct{constructor(e){this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded=!1,this.workerSourceTypes={vector:t.VectorTileWorkerSource,geojson:wt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(t,e)=>{if(this.workerSourceTypes[t])throw new Error(`Worker source with name "${t}" already registered.`);this.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=e=>{if(t.plugin.isParsed())throw new Error("RTL text plugin already registered.");t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}}checkIfReady(t,e,n){n()}setReferrer(t,e){this.referrer=e}spriteLoaded(e,n){this.isSpriteLoaded=n;for(const i in this.workerSources[e]){const r=this.workerSources[e][i];for(const e in r)r[e]instanceof t.VectorTileWorkerSource&&(r[e].isSpriteLoaded=n,r[e].fire(new t.Event("isSpriteLoaded")))}}setImages(t,e,n){this.availableImages[t]=e;for(const i in this.workerSources[t]){const n=this.workerSources[t][i];for(const t in n)n[t].availableImages=e}n()}enableTerrain(t,e,n){this.terrain=e,n()}setLayers(t,e,n){this.getLayerIndex(t).replace(e),n()}updateLayers(t,e,n){this.getLayerIndex(t).update(e.layers,e.removedIds),n()}loadTile(e,n,i){const r=this.enableTerrain?t.extend({enableTerrain:this.terrain},n):n;this.getWorkerSource(e,n.type,n.source).loadTile(r,i)}loadDEMTile(e,n,i){const r=this.enableTerrain?t.extend({buildQuadTree:this.terrain},n):n;this.getDEMWorkerSource(e,n.source).loadTile(r,i)}reloadTile(e,n,i){const r=this.enableTerrain?t.extend({enableTerrain:this.terrain},n):n;this.getWorkerSource(e,n.type,n.source).reloadTile(r,i)}abortTile(t,e,n){this.getWorkerSource(t,e.type,e.source).abortTile(e,n)}removeTile(t,e,n){this.getWorkerSource(t,e.type,e.source).removeTile(e,n)}removeSource(t,e,n){if(!this.workerSources[t]||!this.workerSources[t][e.type]||!this.workerSources[t][e.type][e.source])return;const i=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==i.removeSource?i.removeSource(e,n):n()}loadWorkerSource(t,e,n){try{this.self.importScripts(e.url),n()}catch(t){n(t.toString())}}syncRTLPluginState(e,n,i){try{t.plugin.setState(n);const e=t.plugin.getPluginURL();if(t.plugin.isLoaded()&&!t.plugin.isParsed()&&null!=e){this.self.importScripts(e);const n=t.plugin.isParsed();i(n?void 0:new Error(`RTL Text Plugin failed to import scripts from ${e}`),n)}}catch(t){i(t.toString())}}getAvailableImages(t){let e=this.availableImages[t];return e||(e=[]),e}getLayerIndex(t){let e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new i),e}getWorkerSource(t,e,n){return this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),this.workerSources[t][e][n]||(this.workerSources[t][e][n]=new this.workerSourceTypes[e]({send:(e,n,i,r,s,o)=>{this.actor.send(e,n,i,t,s,o)},scheduler:this.actor.scheduler},this.getLayerIndex(t),this.getAvailableImages(t),this.isSpriteLoaded)),this.workerSources[t][e][n]}getDEMWorkerSource(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new s),this.demWorkerSources[t][e]}enforceCacheSizeLimit(e,n){t.enforceCacheSizeLimit(n)}getWorkerPerformanceMetrics(t,e,n){n(void 0,void 0)}}return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new Ct
1(self)),Ct}),i(0,function(t){var e=n;function n(t){return!function(t){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var t,e,n=new Blob([""],{type:"text/javascript"}),i=URL.createObjectURL(n);try{e=new Worker(i),t=!0}catch(e){t=!1}return e&&e.terminate(),URL.revokeObjectURL(i),t}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var t=document.createElement("canvas");t.width=t.height=1;var e=t.getContext("2d");if(!e)return!1;var n=e.getImageData(0,0,1,1);return n&&n.width===t.width}()?(void 0===i[e=t&&t.failIfMajorPerformanceCaveat]&&(i[e]=function(t){var e,i=function(t){var e=document.createElement("canvas"),i=Object.create(n.webGLContextAttributes);return i.failIfMajorPerformanceCaveat=t,e.getContext("webgl",i)||e.getContext("experimental-webgl",i)}(t);if(!i)return!1;try{e=i.createShader(i.VERTEX_SHADER)}catch(t){return!1}return!(!e||i.isContextLost())&&(i.shaderSource(e,"void main() {}"),i.compileShader(e),!0===i.getShaderParameter(e,i.COMPILE_STATUS))}(e)),i[e]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var e}(t)}var i={};function r(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1;return!0}if("object"==typeof t&&null!==t&&null!==e){if("object"!=typeof e)return!1;if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!r(t[n],e[n]))return!1;return!0}return t===e}n.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const s={create:function(e,n,i){const r=t.window.document.createElement(e);return void 0!==n&&(r.className=n),i&&i.appendChild(r),r},createNS:function(e,n){return t.window.document.createElementNS(e,n)}},o=t.window.document&&t.window.document.documentElement.style,a=o&&void 0!==o.userSelect?"userSelect":"WebkitUserSelect";let l;s.disableDrag=function(){o&&a&&(l=o[a],o[a]="none")},s.enableDrag=function(){o&&a&&(o[a]=l)},s.setTransform=function(t,e){t.style.transform=e};let c=!1;try{const e=Object.defineProperty({},"passive",{get(){c=!0}});t.window.addEventListener("test",e,e),t.window.removeEventListener("test",e,e)}catch(t){c=!1}s.addEventListener=function(t,e,n,i={}){t.addEventListener(e,n,"passive"in i&&c?i:i.capture)},s.removeEventListener=function(t,e,n,i={}){t.removeEventListener(e,n,"passive"in i&&c?i:i.capture)};const u=function(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener("click",u,!0)};function h(e,n,i){const r=e.offsetWidth===n.width?1:e.offsetWidth/n.width;return new t.pointGeometry((i.clientX-n.left)*r,(i.clientY-n.top)*r)}s.suppressClick=function(){t.window.addEventListener("click",u,!0),t.window.setTimeout(()=>{t.window.removeEventListener("click",u,!0)},0)},s.mousePos=function(t,e){const n=t.getBoundingClientRect();return h(t,n,e)},s.touchPos=function(t,e){const n=t.getBoundingClientRect(),i=[];for(let r=0;r<e.length;r++)i.push(h(t,n,e[r]));return i},s.mouseButton=function(e){return void 0!==t.window.InstallTrigger&&2===e.button&&e.ctrlKey&&t.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:e.button},s.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)};class d{constructor(t,e){this.pos=t,this.dir=e}intersectsPlane(e,n,i){const r=t.dot(n,this.dir);if(Math.abs(r)<1e-6)return!1;const s=t.dot(t.sub(t.create(),e,this.pos),n)/r,o=t.scaleAndAdd(t.create(),this.pos,this.dir,s);return t.copy(i,o),!0}}class p{constructor(t,e){this.points=t,this.planes=e}static fromInvProjectionMatrix(e,n,i){const r=Math.pow(2,i),s=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(i=>{const s=t.transformMat4([],i,e),o=1/s[3]/n*r;return t.mul(s,s,[o,o,1/s[3],o])}),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(e=>{const n=t.sub([],s[e[0]],s[e[1]]),i=t.sub([],s[e[2]],s[e[1]]),r=t.normalize([],t.cross([],n,i)),o=-t.dot(r,s[e[1]]);return r.concat(o)});return new p(s,o)}}class m{constructor(e,n){this.min=e,this.max=n,this.center=t.scale([],t.add([],this.min,this.max),.5)}quadrant(e){const n=[e%2==0,e<2],i=t.clone(this.min),r=t.clone(this.max);for(let t=0;t<n.length;t++)i[t]=n[t]?this.min[t]:this.center[t],r[t]=n[t]?this.center[t]:this.max[t];return r[2]=this.max[2],new m(i,r)}distanceX(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]}distanceY(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]}distanceZ(t){return Math.max(Math.min(this.max[2],t[2]),this.min[2])-t[2]}intersects(e){const n=[[this.min[0],this.min[1],this.min[2],1],[this.max[0],this.min[1],this.min[2],1],[this.max[0],this.max[1],this.min[2],1],[this.min[0],this.max[1],this.min[2],1],[this.min[0],this.min[1],this.max[2],
vendor: 8,527 bytes, line 1
11],[this.max[0],this.min[1],this.max[2],1],[this.max[0],this.max[1],this.max[2],1],[this.min[0],this.max[1],this.max[2],1]];let i=!0;for(let r=0;r<e.planes.length;r++){const s=e.planes[r];let o=0;for(let e=0;e<n.length;e++)o+=t.dot$1(s,n[e])>=0;if(0===o)return 0;o!==n.length&&(i=!1)}if(i)return 2;for(let t=0;t<3;t++){let n=Number.MAX_VALUE,i=-Number.MAX_VALUE;for(let r=0;r<e.points.length;r++){const s=e.points[r][t]-this.min[t];n=Math.min(n,s),i=Math.max(i,s)}if(i<0||n>this.max[t]-this.min[t])return 0}return 1}}function g(t){const{userImage:e}=t;return!!(e&&e.render&&e.render())&&(t.data.replace(new Uint8Array(e.data.buffer)),!0)}class f extends t.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(t){if(this.loaded!==t&&(this.loaded=t,t)){for(const{ids:t,callback:e}of this.requestors)this._notify(t,e);this.requestors=[]}}getImage(t){return this.images[t]}addImage(t,e){this._validate(t,e)&&(this.images[t]=e)}_validate(e,n){let i=!0;return this._validateStretch(n.stretchX,n.data&&n.data.width)||(this.fire(new t.ErrorEvent(new Error(`Image "${e}" has invalid "stretchX" value`))),i=!1),this._validateStretch(n.stretchY,n.data&&n.data.height)||(this.fire(new t.ErrorEvent(new Error(`Image "${e}" has invalid "stretchY" value`))),i=!1),this._validateContent(n.content,n)||(this.fire(new t.ErrorEvent(new Error(`Image "${e}" has invalid "content" value`))),i=!1),i}_validateStretch(t,e){if(!t)return!0;let n=0;for(const i of t){if(i[0]<n||i[1]<i[0]||e<i[1])return!1;n=i[1]}return!0}_validateContent(t,e){return!(t&&(4!==t.length||t[0]<0||e.data.width<t[0]||t[1]<0||e.data.height<t[1]||t[2]<0||e.data.width<t[2]||t[3]<0||e.data.height<t[3]||t[2]<t[0]||t[3]<t[1]))}updateImage(t,e){e.version=this.images[t].version+1,this.images[t]=e,this.updatedImages[t]=!0}removeImage(t){const e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&&e.userImage.onRemove&&e.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(t,e){let n=!0;if(!this.isLoaded())for(const i of t)this.images[i]||(n=!1);this.isLoaded()||n?this._notify(t,e):this.requestors.push({ids:t,callback:e})}_notify(e,n){const i={};for(const r of e){this.images[r]||this.fire(new t.Event("styleimagemissing",{id:r}));const e=this.images[r];e?i[r]={data:e.data.clone(),pixelRatio:e.pixelRatio,sdf:e.sdf,version:e.version,stretchX:e.stretchX,stretchY:e.stretchY,content:e.content,hasRenderCallback:Boolean(e.userImage&&e.userImage.render)}:t.warnOnce(`Image "${r}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}n(null,i)}getPixelSize(){const{width:t,height:e}=this.atlasImage;return{width:t,height:e}}getPattern(e){const n=this.patterns[e],i=this.getImage(e);if(!i)return null;if(n&&n.position.version===i.version)return n.position;if(n)n.position.version=i.version;else{const n={w:i.data.width+2,h:i.data.height+2,x:0,y:0},r=new t.ImagePosition(n,i);this.patterns[e]={bin:n,position:r}}return this._updatePatternAtlas(),this.patterns[e].position}bind(e){const n=e.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,n.RGBA),this.atlasTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}_updatePatternAtlas(){const e=[];for(const t in this.patterns)e.push(this.patterns[t].bin);const{w:n,h:i}=t.potpack(e),r=this.atlasImage;r.resize({width:n||1,height:i||1});for(const s in this.patterns){const{bin:e}=this.patterns[s],n=e.x+1,i=e.y+1,o=this.images[s].data,a=o.width,l=o.height;t.RGBAImage.copy(o,r,{x:0,y:0},{x:n,y:i},{width:a,height:l}),t.RGBAImage.copy(o,r,{x:0,y:l-1},{x:n,y:i-1},{width:a,height:1}),t.RGBAImage.copy(o,r,{x:0,y:0},{x:n,y:i+l},{width:a,height:1}),t.RGBAImage.copy(o,r,{x:a-1,y:0},{x:n-1,y:i},{width:1,height:l}),t.RGBAImage.copy(o,r,{x:0,y:0},{x:n+a,y:i},{width:1,height:l})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(t){for(const e of t){if(this.callbackDispatchedThisFrame[e])continue;this.callbackDispatchedThisFrame[e]=!0;const t=this.images[e];g(t)&&this.updateImage(e,t)}}}const _=new t.Properties({anchor:new t.DataConstantProperty(t.spec.light.anchor),position:new class{constructor(){this.specification=t.spec.light.position}possiblyEvaluate(e,n){return function([e,n,i]){const r=t.degToRad(n+90),s=t.degToRad(i);return{x:e*Math.cos(r)*Math.sin(s),y:e*Math.sin(r)*Math.sin(s),z:e*Math.cos(s),azimuthal:n,polar:i}}(e.expression.evaluate(n))}interpolate(e,n,i){return{x:t.number(e.x,n.x,i),y:t.number(e.y,n.y,i),z:t.number(e.z,n.z,i),azimuthal:t.number(e.azimuthal,n.azimuthal,i),polar:t.number(e.polar,n.polar,i)}}},color:new t.DataConstantProperty(t.spec.light.color),intensity:new t.DataConstantProperty(t.spec.light.intensity)}),v="-transition";class y extends t.Evented{constructor(e){super(),this._transitionable=new t.Transitionable(_),this.setLight(e),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(e,n={}){if(!this._validate(t.validateLight,e,n))for(const i in e){const n=e[i];t.endsWith(i,v)?this._transitionable.setTransition(i.slice(0,-v.length),n):this._transitionable.setValue(i,n)}}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}_validate(e,n,i){return(!i||!1!==i.validate)&&t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:t.spec})))}}const x=new t.Properties({source:new t.DataConstantProperty(t.spec.terrain.source),exaggeration:new t.DataConstantProperty(t.spec.terrain.exaggeration)}),b="-transition";class w extends t.Evented{constructor(e){super(),this._transitionable=new t.Transitionable(x),this.set(e),this._transitioning=this._transitionable.untransitioned()}get(){return this._transitionable.serialize()}set(e){for(const n in e){const i=e[n];t.endsWith(n,b)?this._transitionable.setTransition(n.slice(0,-b.length),i):this._transitionable.setValue(n,i)}}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}}function C(e,n,i,r){const s=t.smoothstep(45,65,i),[o,a]=P(e,r),l=t.length(n);let c=1-Math.min(1,Math.exp((l-o)/(a-o)*-6));return c*=c*c,c=Math.min(1,1.00747*c),c*s*e.alpha}function P(t,e){const n=.5/Math.tan(.5*e);return[t.range[0]+n,t.range[1]+n]}const M=new t.Properties({range:new t.DataConstantProperty(t.spec.fog.range),color:new t.DataConstantProperty(t.spec.fog.color),"horizon-blend":new t.DataConstantProperty(t.spec.fog["horizon-blend"])}),O="-transition";class S extends t.Evented{constructor(e){super(),this._transitionable=new t.Transitionable(M),this.set(e),this._transitioning=this._transitionable.untransitioned()}get state(){return{range:this.properties.get("range"),horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}get(){return this._transitionable.serialize()}set(e){if(!this._validate(t.validateFog,e))for(const n in e){const i=e[n];t.endsWith(n,O)?this._transitionable.setTransition(n.slice(0,-O.length),i):this._transitionable.setValue(n,i)}}getOpacity(e){const n=this.properties&&this.properties.get("color")||1;return t.smoothstep(45,65,e)*n.a}getOpacityAtLatLng(e,n){return function(e,n,i){const r=t.MercatorCoordinate.fromLngLat(n),s=i.elevation?i.elevation.getAtPointOrZero(r):0,o=[r.x,r.y,s];return t.transformMat4$1(o,o,i.mercatorFogMatrix),C(e,o,i.pitch,i._fov)}(this.state,e,n)}getFovAdjustedRange(t){return P(this.state,t)}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}_validate(e,n,i){return(!i||!1!==i.validate)&&t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:t.spec})))}}class k{constructor(e,n){this.workerPool=e,this.actors=[],this.currentActor=0,this.id=t.uniqueId();
1const i=this.workerPool.acquire(this.id);for(let t=0;t<i.length;t++){const e=new k.Actor(i[t],n,this.id);e.name=`Worker ${t}`,this.actors.push(e)}this.ready=!1,this.broadcast("checkIfReady",null,()=>{this.ready=!0})}broadcast(e,n,i){t.asyncAll(this.actors,(t,i)=>{t.send(e,n,i)},i=i||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach(t=>{t.remove()}),this.actors=[],this.workerPool.release(this.id)}}function T(e,n,i){return n*(t.EXTENT/(e.tileSize*Math.pow(2,i-e.tileID.overscaledZ)))}k.Actor=t.Actor;class E{constructor(t,e,n,i){this.screenBounds=t,this.cameraPoint=e,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=n,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this.screenGeometry.map(t=>i.pointCoordinate3D(t)),this.cameraGeometry=this.bufferedCameraGeometry(0)}static createFromScreenPoints(e,n){let i,r;if(e instanceof t.pointGeometry||"number"==typeof e[0]){const s=t.pointGeometry.convert(e);i=[t.pointGeometry.convert(e)],r=n.isPointAboveHorizon(s)}else{const s=t.pointGeometry.convert(e[0]),o=t.pointGeometry.convert(e[1]);i=[s,o],r=t.polygonizeBounds(s,o).every(t=>n.isPointAboveHorizon(t))}return new E(i,n.getCameraPoint(),r,n)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(e){return t.polygonizeBounds(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],e)}bufferedCameraGeometry(e){const n=this.screenBounds[0],i=1===this.screenBounds.length?this.screenBounds[0].add(new t.pointGeometry(1,1)):this.screenBounds[1],r=t.polygonizeBounds(n,i,0,!1);return this.cameraPoint.y>i.y&&(this.cameraPoint.x>n.x&&this.cameraPoint.x<i.x?r.splice(3,0,this.cameraPoint):this.cameraPoint.x>=i.x?r[2]=this.cameraPoint:this.cameraPoint.x<=n.x&&(r[3]=this.cameraPoint)),t.bufferConvexPolygon(r,e)}containsTile(e,n,i){const r=e.queryPadding+1,s=i?this._bufferedCameraMercator(r,n).map(t=>e.tileID.getTilePoint(t)):this._bufferedScreenMercator(r,n).map(t=>e.tileID.getTilePoint(t)),o=this.screenGeometryMercator.map(t=>e.tileID.getTileVec3(t)),a=o.map(e=>new t.pointGeometry(e[0],e[1])),l=n.getFreeCameraOptions().position||new t.MercatorCoordinate(0,0,0),c=e.tileID.getTileVec3(l),u=o.map(e=>{const n=t.sub(e,e,c);return t.normalize(n,n),new d(c,n)}),h=T(e,1,n.zoom);if(t.polygonIntersectsBox(s,0,0,t.EXTENT,t.EXTENT))return{queryGeometry:this,tilespaceGeometry:a,tilespaceRays:u,bufferedTilespaceGeometry:s,bufferedTilespaceBounds:(p=t.getBounds(s),p.min.x=t.clamp(p.min.x,0,t.EXTENT),p.min.y=t.clamp(p.min.y,0,t.EXTENT),p.max.x=t.clamp(p.max.x,0,t.EXTENT),p.max.y=t.clamp(p.max.y,0,t.EXTENT),p),tile:e,tileID:e.tileID,pixelToTileUnitsFactor:h};var p}_bufferedScreenMercator(t,e){const n=I(t);if(this._screenRaycastCache[n])return this._screenRaycastCache[n];{const i=this.bufferedScreenGeometry(t).map(t=>e.pointCoordinate3D(t));return this._screenRaycastCache[n]=i,i}}_bufferedCameraMercator(t,e){const n=I(t);if(this._cameraRaycastCache[n])return this._cameraRaycastCache[n];{const i=this.bufferedCameraGeometry(t).map(t=>e.pointCoordinate3D(t));return this._cameraRaycastCache[n]=i,i}}}function I(t){return 100*t|0}function A(e,n,i){const r=function(r,s){if(r)return i(r);if(s){const r=t.pick(t.extend(s,e),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);s.vector_layers&&(r.vectorLayers=s.vector_layers,r.vectorLayerIds=r.vectorLayers.map(t=>t.id)),r.tiles=n.canonicalizeTileset(r,e.url),i(null,r)}};return e.url?t.getJSON(n.transformRequest(n.normalizeSourceURL(e.url),t.ResourceType.Source),r):t.exported.frame(()=>r(null,e))}class z{constructor(e,n,i){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=n||0,this.maxzoom=i||24}validateBounds(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]}contains(e){const n=Math.pow(2,e.z),i=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*n),r=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*n),s=Math.ceil(t.mercatorXfromLng(this.bounds.getE
vendor: 4,637 bytes, line 1
1ast())*n),o=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*n);return e.x>=i&&e.x<s&&e.y>=r&&e.y<o}}class D{constructor(t,e,n){this.context=t;const i=t.gl;this.buffer=i.createBuffer(),this.dynamicDraw=Boolean(n),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),i.bufferData(i.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(t){const e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const L={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class R{constructor(t,e,n,i){this.length=e.length,this.attributes=n,this.itemSize=e.bytesPerElement,this.dynamicDraw=i,this.context=t;const r=t.gl;this.buffer=r.createBuffer(),t.bindVertexBuffer.set(this.buffer),r.bufferData(r.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(t){const e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)}enableAttributes(t,e){for(let n=0;n<this.attributes.length;n++){const i=e.attributes[this.attributes[n].name];void 0!==i&&t.enableVertexAttribArray(i)}}setVertexAttribPointers(t,e,n){for(let i=0;i<this.attributes.length;i++){const r=this.attributes[i],s=e.attributes[r.name];void 0!==s&&t.vertexAttribPointer(s,r.components,t[L[r.type]],!1,this.itemSize,r.offset+this.itemSize*(n||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class F{constructor(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(t){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class B extends F{getDefault(){return t.Color.transparent}set(t){const e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)}}class N extends F{getDefault(){return 1}set(t){(t!==this.current||this.dirty)&&(this.gl.clearDepth(t),this.current=t,this.dirty=!1)}}class U extends F{getDefault(){return 0}set(t){(t!==this.current||this.dirty)&&(this.gl.clearStencil(t),this.current=t,this.dirty=!1)}}class H extends F{getDefault(){return[!0,!0,!0,!0]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)}}class j extends F{getDefault(){return!0}set(t){(t!==this.current||this.dirty)&&(this.gl.depthMask(t),this.current=t,this.dirty=!1)}}class V extends F{getDefault(){return 255}set(t){(t!==this.current||this.dirty)&&(this.gl.stencilMask(t),this.current=t,this.dirty=!1)}}class $ extends F{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(t){const e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&&(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)}}class q extends F{getDefault(){const t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&&(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)}}class G extends F{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}}class Z extends F{getDefault(){return[0,1]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)}}class W extends F{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}}class X extends F{getDefault(){return this.gl.LESS}set(t){(t!==this.current||this.dirty)&&(this.gl.depthFunc(t),this.current=t,this.dirty=!1)}}class Q extends F{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}}class K extends F{getDefault(){const t=this.gl;return[t.ONE,t.ZERO]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)}}class Y extends F{getDefault(){return t.Color.transparent}set(t){const e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.blendColor
vendor: 10,259 bytes, line 1
1(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)}}class J extends F{getDefault(){return this.gl.FUNC_ADD}set(t){(t!==this.current||this.dirty)&&(this.gl.blendEquation(t),this.current=t,this.dirty=!1)}}class tt extends F{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}}class et extends F{getDefault(){return this.gl.BACK}set(t){(t!==this.current||this.dirty)&&(this.gl.cullFace(t),this.current=t,this.dirty=!1)}}class nt extends F{getDefault(){return this.gl.CCW}set(t){(t!==this.current||this.dirty)&&(this.gl.frontFace(t),this.current=t,this.dirty=!1)}}class it extends F{getDefault(){return null}set(t){(t!==this.current||this.dirty)&&(this.gl.useProgram(t),this.current=t,this.dirty=!1)}}class rt extends F{getDefault(){return this.gl.TEXTURE0}set(t){(t!==this.current||this.dirty)&&(this.gl.activeTexture(t),this.current=t,this.dirty=!1)}}class st extends F{getDefault(){const t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)}}class ot extends F{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}}class at extends F{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}}class lt extends F{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}}class ct extends F{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}}class ut extends F{getDefault(){return null}set(t){const e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1}}class ht extends F{constructor(t){super(t),this.vao=t.extVertexArrayObject}getDefault(){return null}set(t){this.vao&&(t!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)}}class dt extends F{getDefault(){return 4}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}}class pt extends F{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}}class mt extends F{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}}class gt extends F{constructor(t,e){super(t),this.context=t,this.parent=e}getDefault(){return null}}class ft extends gt{setDirty(){this.dirty=!0}set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}}class _t extends gt{attachment(){return this.gl.DEPTH_ATTACHMENT}set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,this.attachment(),e.RENDERBUFFER,t),this.current=t,this.dirty=!1}}class vt extends _t{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}}class yt{constructor(t,e,n,i){this.context=t,this.width=e,this.height=n;const r=this.framebuffer=t.gl.createFramebuffer();this.colorAttachment=new ft(t,r),i&&(this.depthAttachment=new _t(t,r))}destroy(){const t=this.context.gl,e=this.colorAttachment.get();if(e&&t.deleteTexture(e),this.depthAttachment){const e=this.depthAttachment.get();e&&t.deleteRenderbuffer(e)}t.deleteFramebuffer(this.framebuffer)}}class xt{constructor(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new B(this),this.clearDepth=new N(this),this.clearStencil=new U(this),this.colorMask=new H(this),this.depthMask=new j(this),this.stencilMask=new V(this),this.stencilFunc=new $(this),this.stencilOp=new q(this),this.stencilTest=new G(this),this.depthRange=new Z(this),this.depthTest=new W(this),this.depthFunc=new X(this),this.blend=new Q(this),this.blendFunc=new K(this),this.blendColor=new Y(this),this.blendEquation=new J(this),this.cullFace=new tt(this),this.cullFaceSide=new et(this),this.frontFace=new nt(this),this.program=new it(this),this.activeTexture=new rt(this),this.viewport=new st(this),this.bindFramebuffer=new ot(this),this.bindRenderbuffer=new at(this),this.bindTexture=new lt(this),this.bindVertexBuffer=new ct(this),this.bindElementBuffer=new ut(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new ht(this),this.pixelStoreUnpack=new dt(this),this.pixelStoreUnpackPremultiplyAlpha=new pt(this),this.pixelStoreUnpackFlipY=new mt(this),this.extTextureFilterAnisotropic=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureFilterAnisotropicForceOff=!1,this.extTextureHalfFloat=t.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&(t.getExtension("OES_texture_half_float_linear"),this.extRenderToTextureHalfFloat=t.getExtension("EXT_color_buffer_half_float")),this.extTimerQuery=t.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=t.getParameter(t.MAX_TEXTURE_SIZE)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(t,e){return new D(this,t,e)}createVertexBuffer(t,e,n){return new R(this,t,e,n)}createRenderbuffer(t,e,n){const i=this.gl,r=i.createRenderbuffer();return this.bindRenderbuffer.set(r),i.renderbufferStorage(i.RENDERBUFFER,t,e,n),this.bindRenderbuffer.set(null),r}createFramebuffer(t,e,n){return new yt(this,t,e,n)}clear({color:t,depth:e,stencil:n}){const i=this.gl;let r=0;t&&(r|=i.COLOR_BUFFER_BIT,this.clearColor.set(t),this.colorMask.set([!0,!0,!0,!0])),void 0!==e&&(r|=i.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(e),this.depthMask.set(!0)),void 0!==n&&(r|=i.STENCIL_BUFFER_BIT,this.clearStencil.set(n),this.stencilMask.set(255)),i.clear(r)}setCullFace(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))}setDepthMode(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)}setStencilMode(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)}setColorMode(e){r(e.blendFunction,t.ColorMode.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)}unbindVAO(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)}}class bt extends t.Evented{constructor(e,n,i,r){super(),this.id=e,this.dispatcher=i,this.setEventedParent(r),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=t.extend({type:"raster"},n),t.extend(this,t.pick(n,["url","scheme","tileSize"]))}load(){this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=A(this._options,this.map._requestManager,(e,n)=>{this._tileJSONRequest=null,this._loaded=!0,e?this.fire(new t.ErrorEvent(e)):n&&(t.extend(this,n),n.bounds&&(this.tileBounds=new z(n.bounds,this.minzoom,this.maxzoom)),t.postTurnstileEvent(n.tiles),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}onAdd(t){this.map=t,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return t.extend({},this._options)}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}loadTile(e,n){const i=t.exported.devicePixelRatio>=2,r=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),i,this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(r,t.ResourceType.Tile),(i,r,s,o)=>
1{if(delete e.request,e.aborted)e.state="unloaded",n(null);else if(i)e.state="errored",n(i);else if(r){this.map._refreshExpiredTiles&&e.setExpiryData({cacheControl:s,expires:o});const i=this.map.painter.context,a=i.gl;e.texture=this.map.painter.getTileTexture(r.width),e.texture?e.texture.update(r,{useMipmap:!0}):(e.texture=new t.Texture(i,r,a.RGBA,{useMipmap:!0}),e.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),i.extTextureFilterAnisotropic&&a.texParameterf(a.TEXTURE_2D,i.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,i.extTextureFilterAnisotropicMax)),e.state="loaded",t.cacheEntryPossiblyAdded(this.dispatcher),n(null)}})}abortTile(t,e){t.request&&(t.request.cancel(),delete t.request),e()}unloadTile(t,e){t.texture&&this.map.painter.saveTileTexture(t.texture),e()}hasTransition(){return!1}}let wt;var Ct=t.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class Pt extends t.Evented{constructor(t,e,n,i){super(),this.id=t,this.dispatcher=n,this.coordinates=e.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=e}load(e,n){this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(i,r)=>{this._loaded=!0,i?this.fire(new t.ErrorEvent(i)):r&&(this.image=r,e&&(this.coordinates=e),n&&n(),this._finishLoading())})}loaded(){return this._loaded}updateImage(t){return this.image&&t.url?(this.options.url=t.url,this.load(t.coordinates,()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(t){this.map=t,this.load()}setCoordinates(e){this.coordinates=e;const n=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){let n=1/0,i=1/0,r=-1/0,s=-1/0;for(const t of e)n=Math.min(n,t.x),i=Math.min(i,t.y),r=Math.max(r,t.x),s=Math.max(s,t.y);const o=Math.max(r-n,s-i),a=Math.max(0,Math.floor(-Math.log(o)/Math.LN2)),l=Math.pow(2,a);return new t.CanonicalTileID(a,Math.floor((n+r)/2*l),Math.floor((i+s)/2*l))}(n),this.minzoom=this.maxzoom=this.tileID.z;const i=n.map(t=>this.tileID.getTilePoint(t)._round());return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;const e=this.map.painter.context,n=e.gl;this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,Ct.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE));for(const t in this.tiles){const e=this.tiles[t];"loaded"!==e.state&&(e.state="loaded",e.texture=this.texture)}}loadTile(t,e){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state="errored",e(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}const Mt={vector:class extends t.Evented{constructor(e,n,i,r){if(super(),this.id=e,this.dispatcher=i,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(n,["url","scheme","tileSize","promoteId"])),this._options=t.extend({type:"vector"},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(r),this._tileWorkers={},this._deduped=new t.DedupedRequest}load(){this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=A(this._options,this.map._requestManager,(e,n)=>{this._tileJSONRequest=null,this._loaded=!0,e?this.fire(new t.ErrorEvent(e)):n&&(t.extend(this,n),n.bounds&&(this.tileBounds=new z(n.bounds,this.minzoom,this.maxzoom)),t.postTurnstileEvent(n.tiles,this.map._requestManager._customAccessToken),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}onAdd(t){this.map=t,this.load()}setSourceProperty(t){this._tileJSONRequest&&this._tileJSONRequest.cancel(),t();const e=this.map.style._getSourceCaches(this.id);for(const n of e)n.clearTiles();this.load()}setTiles(t){return this.setSourceProperty(()=>{this._options.tiles=t}),this}setUrl(t){return this.setSourceProperty(()=>{this.url=t,this._options.url=t}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return t.extend({},this._options)}loadTile(e,n){const i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),r={request:this.map._requestManager.transformRequest(i,t.ResourceType.Tile),data:void 0,uid:e.uid,tileID:e.tileID,tileZoom:e.tileZoom,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.t
vendor: 5,366 bytes, line 1
1ype,source:this.id,pixelRatio:t.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:e.isSymbolTile};if(r.request.collectResourceTiming=this._collectResourceTiming,e.actor&&"expired"!==e.state)"loading"===e.state?e.reloadCallback=n:e.request=e.actor.send("reloadTile",r,s.bind(this));else if(e.actor=this._tileWorkers[i]=this._tileWorkers[i]||this.dispatcher.getActor(),this.dispatcher.ready)e.request=e.actor.send("loadTile",r,s.bind(this),void 0,!0);else{const n=t.loadVectorTile.call({deduped:this._deduped},r,(t,n)=>{t||!n?s.call(this,t):(r.data={cacheControl:n.cacheControl,expires:n.expires,rawData:n.rawData.slice(0)},e.actor&&e.actor.send("loadTile",r,s.bind(this),void 0,!0))},!0);e.request={cancel:n}}function s(i,r){return delete e.request,e.aborted?n(null):i&&404!==i.status?n(i):(r&&r.resourceTiming&&(e.resourceTiming=r.resourceTiming),this.map._refreshExpiredTiles&&r&&e.setExpiryData(r),e.loadVectorData(r,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),n(null),void(e.reloadCallback&&(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}}abortTile(t){t.request&&(t.request.cancel(),delete t.request),t.actor&&t.actor.send("abortTile",{uid:t.uid,type:this.type,source:this.id})}unloadTile(t){t.unloadVectorData(),t.actor&&t.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}},raster:bt,"raster-dem":class extends bt{constructor(e,n,i,r){super(e,n,i,r),this.type="raster-dem",this.maxzoom=22,this._options=t.extend({type:"raster-dem"},n),this.encoding=n.encoding||"mapbox"}loadTile(e,n){const i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function r(t,i){t&&(e.state="errored",n(t)),i&&(e.dem=i,e.dem.onDeserialize(),e.needsHillshadePrepare=!0,e.needsDEMTextureUpload=!0,e.state="loaded",n(null))}e.request=t.getImage(this.map._requestManager.transformRequest(i,t.ResourceType.Tile),(function(i,s,o,a){if(delete e.request,e.aborted)e.state="unloaded",n(null);else if(i)e.state="errored",n(i);else if(s){this.map._refreshExpiredTiles&&e.setExpiryData({cacheControl:o,expires:a});const n=t.window.ImageBitmap&&s instanceof t.window.ImageBitmap&&(null==wt&&(wt=t.window.OffscreenCanvas&&new t.window.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof t.window.createImageBitmap),wt),i=1-(s.width-t.prevPowerOfTwo(s.width))/2;i<1||e.neighboringTiles||(e.neighboringTiles=this._getNeighboringTiles(e.tileID));const l=n?s:t.exported.getImageData(s,i),c={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:l,encoding:this.encoding,padding:i};e.actor&&"expired"!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send("loadDEMTile",c,r.bind(this),void 0,!0))}}).bind(this))}_getNeighboringTiles(e){const n=e.canonical,i=Math.pow(2,n.z),r=(n.x-1+i)%i,s=0===n.x?e.wrap-1:e.wrap,o=(n.x+1+i)%i,a=n.x+1===i?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,s,n.z,r,n.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,a,n.z,o,n.y).key]={backfilled:!1},n.y>0&&(l[new t.OverscaledTileID(e.overscaledZ,s,n.z,r,n.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,a,n.z,o,n.y-1).key]={backfilled:!1}),n.y+1<i&&(l[new t.OverscaledTileID(e.overscaledZ,s,n.z,r,n.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,n.z,n.x,n.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,a,n.z,o,n.y+1).key]={backfilled:!1}),l}unloadTile(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state="unloaded"}},geojson:class extends t.Evented{constructor(e,n,i,r){super(),this.id=e,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(r),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,void 0!==n.maxzoom&&(this.maxzoom=n.maxzoom),n.type&&(this.type=n.type),n.attribution&&(this.attribution=n.attribution),this.promoteId=n.promoteId;const s=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*s,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*s,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?n.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,n.clusterMinPoints||2),extent:t.EXTENT,radius:(void 0!==n.clusterRadius?n.clusterRadius:50)*s,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties,filter:n.filter},n.workerOptions)}onAdd(t){this.map=t,this.setData(this._data)}setData(t){return this._data=t,this._updateWorkerData(),this}getClusterExpansionZoom(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this}getClusterChildren(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this}getClusterLeaves(t,e,n,i){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:n},i),this}
1_updateWorkerData(){if(this._pendingLoad)return void(this._coalesce=!0);this.fire(new t.Event("dataloading",{dataType:"source"})),this._loaded=!1;const e=t.extend({},this.workerOptions),n=this._data;"string"==typeof n?(e.request=this.map._requestManager.transformRequest(t.exported.resolveURL(n),t.ResourceType.Source),e.request.collectResourceTiming=this._collectResourceTiming):e.data=JSON.stringify(n),this._pendingLoad=this.actor.send(`${this.type}.loadData`,e,(e,n)=>{if(this._loaded=!0,this._pendingLoad=null,e)this.fire(new t.ErrorEvent(e));else{const e={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&n&&n.resourceTiming&&n.resourceTiming[this.id]&&(e.resourceTiming=n.resourceTiming[this.id]),this.fire(new t.Event("data",e)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(),this._coalesce=!1)})}loaded(){return this._loaded}loadTile(e,n){const i=e.actor?"reloadTile":"loadTile";e.actor=this.actor,e.request=this.actor.send(i,{type:this.type,uid:e.uid,tileID:e.tileID,tileZoom:e.tileZoom,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(t,r)=>(delete e.request,e.unloadVectorData(),e.aborted?n(null):t?n(t):(e.loadVectorData(r,this.map.painter,"reloadTile"===i),n(null))),void 0,"loadTile"===i)}abortTile(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0}unloadTile(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.t
1ype,source:this.id})}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return t.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends Pt{constructor(t,e,n,i){super(t,e,n,i),this.roundZoom=!0,this.type="video",this.options=e}load(){this._loaded=!1;const e=this.options;this.urls=[];for(const n of e.urls)this.urls.push(this.map._requestManager.transformRequest(n,t.ResourceType.Source).url);t.getVideo(this.urls,(e,n)=>{this._loaded=!0,e?this.fire(new t.ErrorEvent(e)):n&&(this.video=n,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(e){if(this.video){const n=this.video.seekable;e<n.start(0)||e>n.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${n.start(0)} and ${n.end(0)}-second mark.`))):this.video.currentTime=e}}getVideo(){return this.video}onAdd(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const e=this.map.painter.context,n=e.gl;this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,Ct.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE));for(const t in this.tiles){const e=this.tiles[t];"loaded"!==e.state&&(e.state="loaded",e.texture=this.texture)}}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:Pt,canvas:class extends Pt{constructor(e,n,i,r){super(e,n,i,r),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some(t=>!Array.isArray(t)||2!==t.length||t.some(t=>"number"!=typeof t))||this.fire(new t.ErrorEvent(new t.ValidationError(`sources.${e}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError(`sources.${e}`,null,'missing required property "coordinates"'))),n.animate&&"boolean"!=typeof n.animate&&this.fire(new t.ErrorEvent(new t.ValidationError(`sources.${e}`,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"==typeof n.canvas||n.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError(`sources.${e}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError(`sources.${e}`,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),this._hasInvalidDimensions())return;if(0===Object.keys(this.tiles).length)return;const n=this.map.painter.context,i=n.gl;this.boundsBuffer||(this.boundsBuffer=n.createVertexBuffer(this._boundsArray,Ct.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(n,this.canvas,i.RGBA,{premultiply:!0});for(const t in this.tiles){const e=this.tiles[t];"loaded"!==e.state&&(e.state="loaded",e.texture=this.texture)}}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const t of[this.canvas.width,this.canvas.height])if(isNaN(t)||t<=0)return!0;return!1}}},Ot=function(e,n,i,r){const s=new Mt[n.type](e,n,i,r);if(s.id!==e)throw new Error(`Expected Source id to be ${e} instead of ${s.id}`);return t.bindAll(["load","abort","unload","serialize","prepare"],s),s};function St(e,n){const i=t.identity([]);return t.scale$1(i,i,[.5*e.width,.5*-e.height,1]),t.translate(i,i,[1,-1,0]),t.multiply(i,i,e.calculateProjMatrix(n.toUnwrapped()))}function kt(t,e,n,i,r,s,o,a=!1){const l=t.tilesIn(i,o,a);l.sort(Et);const c=[];for(const h of l)c.push({wrappedTileID:h.tile.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(e,n,t._state,h,r,s,St(t.transform,h.tile.tileID),a)});const u=function(t){const e={},n={};for(const i of t){const t=i.queryResults,r=i.wrappedTileID,s=n[r]=n[r]||{};for(const n in t){const i=t[n],r=s[n]=s[n]||{},o=e[n]=e[n]||[];for(const t of i)r[t.featureIndex]||(r[t.featureIndex]=!0,o.push(t))}}return e}(c);
vendor: 5,112 bytes, line 1
1for(const h in u)u[h].forEach(e=>{const n=e.feature,i=t.getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=i});return u}function Tt(t,e){const n=t.getRenderableIds().map(e=>t.getTileByID(e)),i=[],r={};for(let s=0;s<n.length;s++){const t=n[s],o=t.tileID.canonical.key;r[o]||(r[o]=!0,t.querySourceFeatures(i,e))}return i}function Et(t,e){const n=t.tileID,i=e.tileID;return n.overscaledZ-i.overscaledZ||n.canonical.y-i.canonical.y||n.wrap-i.wrap||n.canonical.x-i.canonical.x}function It(){return null!=Gr.workerClass?new Gr.workerClass:new t.window.Worker(Gr.workerUrl)}const At="mapboxgl_preloaded_worker_pool";class zt{constructor(){this.active={}}acquire(t){if(!this.workers)for(this.workers=[];this.workers.length<zt.workerCount;)this.workers.push(new It);return this.active[t]=!0,this.workers.slice()}release(t){delete this.active[t],0===this.numActive()&&(this.workers.forEach(t=>{t.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[At]}numActive(){return Object.keys(this.active).length}}let Dt;function Lt(){return Dt||(Dt=new zt),Dt}function Rt(e,n){const i={};for(const t in e)"ref"!==t&&(i[t]=e[t]);return t.refProperties.forEach(t=>{t in n&&(i[t]=n[t])}),i}function Ft(t){t=t.slice();const e=Object.create(null);for(let n=0;n<t.length;n++)e[t[n].id]=t[n];for(let n=0;n<t.length;n++)"ref"in t[n]&&(t[n]=Rt(t[n],e[t[n].ref]));return t}zt.workerCount=2;const Bt={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight",setTerrain:"setTerrain",setFog:"setFog"};function Nt(t,e,n){n.push({command:Bt.addSource,args:[t,e[t]]})}function Ut(t,e,n){e.push({command:Bt.removeSource,args:[t]}),n[t]=!0}function Ht(t,e,n,i){Ut(t,n,i),Nt(t,e,n)}function jt(t,e,n){let i;for(i in t[n])if(t[n].hasOwnProperty(i)&&"data"!==i&&!r(t[n][i],e[n][i]))return!1;for(i in e[n])if(e[n].hasOwnProperty(i)&&"data"!==i&&!r(t[n][i],e[n][i]))return!1;return!0}function Vt(t,e,n,i,s,o){let a;for(a in e=e||{},t=t||{})t.hasOwnProperty(a)&&(r(t[a],e[a])||n.push({command:o,args:[i,a,e[a],s]}));for(a in e)e.hasOwnProperty(a)&&!t.hasOwnProperty(a)&&(r(t[a],e[a])||n.push({command:o,args:[i,a,e[a],s]}))}function $t(t){return t.id}function qt(t,e){return t[e.id]=e,t}class Gt{constructor(t,e){this.reset(t,e)}reset(t,e){this.points=t||[],this._distances=[0];for(let n=1;n<this.points.length;n++)this._distances[n]=this._distances[n-1]+this.points[n].dist(this.points[n-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);let n=1,i=this._distances[n];const r=e*this.paddedLength+this.padding;for(;i<r&&n<this._distances.length;)i=this._distances[++n];const s=n-1,o=this._distances[s],a=i-o,l=a>0?(r-o)/a:0;return this.points[s].mult(1-l).add(this.points[n].mult(l))}}class Zt{constructor(t,e,n){const i=this.boxCells=[],r=this.circleCells=[];this.xCellCount=Math.ceil(t/n),this.yCellCount=Math.ceil(e/n);for(let s=0;s<this.xCellCount*this.yCellCount;s++)i.push([]),r.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(t,e,n,i,r){this._forEachCell(e,n,i,r,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(n),this.bboxes.push(i),this.bboxes.push(r)}insertCircle(t,e,n,i){this._forEachCell(e-i,n-i,e+i,n+i,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(n),this.circles.push(i)}_insertBoxCell(t,e,n,i,r,s){this.boxCells[r].push(s)}_insertCircleCell(t,e,n,i,r,s){this.circleCells[r].push(s)}_query(t,e,n,i,r,s){if(n<0||t>this.width||i<0||e>this.height)return!r&&[];const o=[];if(t<=0&&e<=0&&this.width<=n&&this.height<=i){if(r)return!0;for(let t=0;t<this.boxKeys.length;t++)o.push({key:this.boxKeys[t],x1:this.bboxes[4*t],y1:this.bboxes[4*t+1],x2:this.bboxes[4*t+2],y2:this.bboxes[4*t+3]});for(let t=0;t<this.circleKeys.length;t++){const e=this.circles[3*t],n=this.circles[3*t+1],i=this.circles[3*t+2];o.push({key:this.circleKeys[t],x1:e-i,y1:n-i,x2:e+i,y2:n+i})}return s?o.filter(s):o}return this._forEachCell(t,e,n,i,this._queryCell,o,{hitTest:r,seenUids:{box:{},circle:{}}},s),r?o.length>0:o}_queryCircle(t,e,n,i,r){const s=t-n,o=t+n,a=e-n,l=e+n;if(o<0||s>this.width||l<0||a>this.height)return!i&&[];const c=[];return this._forEachCell(s,a,o,l,this._queryCellCircle,c,{hitTest:i,circle:{x:t,y:e,radiu
1s:n},seenUids:{box:{},circle:{}}},r),i?c.length>0:c}query(t,e,n,i,r){return this._query(t,e,n,i,!1,r)}hitTest(t,e,n,i,r){return this._query(t,e,n,i,!0,r)}hitTestCircle(t,e,n,i){return this._queryCircle(t,e,n,!0,i)}_queryCell(t,e,n,i,r,s,o,a){const l=o.seenUids,c=this.boxCells[r];if(null!==c){const r=this.bboxes;for(const u of c)if(!l.box[u]){l.box[u]=!0;const c=4*u;if(t<=r[c+2]&&e<=r[c+3]&&n>=r[c+0]&&i>=r[c+1]&&(!a||a(this.boxKeys[u]))){if(o.hitTest)return s.push(!0),!0;s.push({key:this.boxKeys[u],x1:r[c],y1:r[c+1],x2:r[c+2],y2:r[c+3]})}}}const u=this.circleCells[r];if(null!==u){const r=this.circles;for(const c of u)if(!l.circle[c]){l.circle[c]=!0;const u=3*c;if(this._circleAndRectCollide(r[u],r[u+1],r[u+2],t,e,n,i)&&(!a||a(this.circleKeys[c]))){if(o.hitTest)return s.push(!0),!0;{const t=r[u],e=r[u+1],n=r[u+2];s.push({key:this.circleKeys[c],x1:t-n,y1:e-n,x2:t+n,y2:e+n})}}}}}_queryCellCircle(t,e,n,i,r,s,o,a){const l=o.circle,c=o.seenUids,u=this.boxCells[r];if(null!==u){const t=this.bboxes;for(const e of u)if(!c.box[e]){c.box[e]=!0;const n=4*e;if(this._circleAndRectCollide(l.x,l.y,l.radius,t[n+0],t[n+1],t[n+2],t[n+3])&&(!a||a(this.boxKeys[e])))return s.push(!0),!0}}const h=this.circleCells[r];if(null!==h){const t=this.circles;for(const e of h)if(!c.circle[e]){c.circle[e]=!0;const n=3*e;if(this._circlesCollide(t[n],t[n+1],t[n+2],l.x,l.y,l.radius)&&(!a||a(this.circleKeys[e])))return s.push(!0),!0}}}_forEachCell(t,e,n,i,r,s,o,a){const l=this._convertToXCellCoord(t),c=this._convertToYCellCoord(e),u=this._convertToXCellCoord(n),h=this._convertToYCellCoord(i);for(let d=l;d<=u;d++)for(let l=c;l<=h;l++)if(r.call(this,t,e,n,i,this.xCellCount*l+d,s,o,a))return}_convertToXCellCoord(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}_convertToYCellCoord(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}_circlesCollide(t,e,n,i,r,s){const o=i-t,a=r-e,l=n+s;return l*l>o*o+a*a}_circleAndRectCollide(t,e,n,i,r,s,o){const a=(s-i)/2,l=Math.abs(t-(i+a));if(l>a+n)return!1;const c=(o-r)/2,u=Math.abs(e-(r+c));if(u>c+n)return!1;if(l<=a||u<=c)return!0;const h=l-a,d=u-c;return h*h+d*d<=n*n}}function Wt(e,n,i,r,s){const o=t.create$1();return n?(t.scale$1(o,o,[1/s,1/s,1]),i||t.rotateZ(o,o,r.angle)):t.multiply(o,r.labelPlaneMatrix,e),o}function Xt(e,n,i,r,s){if(n){const n=t.clone$1(e);return t.scale$1(n,n,[s,s,1]),i||t.rotateZ(n,n,-r.angle),n}return r.glCoordMatrix}function Qt(e,n,i=0){const r=[e.x,e.y,i,1];i?t.transformMat4(r,r,n):ae(r,r,n);const s=r[3];return{point:new t.pointGeometry(r[0]/s,r[1]/s),signedDistanceFromCamera:s}}function Kt(t,e){return Math.min(.5+t/e*.5,1.5)}function Yt(t,e){const n=t[0]/t[3],i=t[1]/t[3];return n>=-e[0]&&n<=e[0]&&i>=-e[1]&&i<=e[1]}function Jt(e,n,i,r,s,o,a,l,c){const u=r?e.textSizeData:e.iconSizeData,h=t.evaluateSizeForZoom(u,i.transform.zoom),d=[256/i.width*2+1,256/i.height*2+1],p=r?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;p.clear();const m=e.lineVertexArray,g=r?e.text.placedSymbolArray:e.icon.placedSymbolArray,f=i.transform.width/i.transform.height;let _=!1;for(let v=0;v<g.length;v++){const r=g.get(v);if(r.hidden||r.writingMode===t.WritingMode.vertical&&!_){oe(r.numGlyphs,p);continue}_=!1;const y=c?c({x:r.anchorX,y:r.anchorY}):0,x=[r.anchorX,r.anchorY,y,1];if(t.transformMat4(x,x,n),!Yt(x,d)){oe(r.numGlyphs,p);continue}const b=Kt(i.transform.cameraToCenterDistance,x[3]),w=t.evaluateSizeForFeature(u,h,r),C=a?w/b:w*b,P=new t.pointGeometry(r.anchorX,r.anchorY),M=Qt(P,s,y);if(M.signedDistanceFromCamera<=0){oe(r.numGlyphs,p);continue}const O=M.point;let S={};const k=a?null:c,T=ne(r,C,!1,l,n,s,o,e.glyphOffsetArray,m,p,O,P,S,f,k);_=T.useVertical,k&&T.needsFlipping&&(S={}),(T.notEnoughRoom||_||T.needsFlipping&&ne(r,C,!0,l,n,s,o,e.glyphOffsetArray,m,p,O,P,S,f,k).notEnoughRoom)&&oe(r.numGlyphs,p)}r?e.text.dynamicLayoutVertexBuffer.updateData(p):e.icon.dynamicLayoutVertexBuffer.updateData(p)}function te(t,e,n,i,r,s,o,a,l,c,u,h,d){const p=a.glyphStartIndex+a.numGlyphs,m=a.lineStartIndex,g=a.lineStartIndex+a.lineLength,f=e.getoffsetX(a.glyphStartIndex),_=e.getoffsetX(p-1),v=re(t*f,n,i,r,s,o,a.segment,m,g,l,c,u,h,d,!0);if(!v)return null;const y=re(t*_,n,i,r,s,o,a.segment,m,g,l,c,u,h,d,!0);return y?{first:v,last:y}:null}function ee(e,n,i,r){return e===t.WritingMode.horizontal&&Math.abs(i.y-n.y)>Math.abs(i.x-n.x)*r?{useVertical:!0}:(e===t.WritingMode.vertical?n.y<i.y:n.x>i.x)?{needsFlipping:!0}:null}function ne(e,n,i,r,s,o,a,l,c,u,h,d,p,m,g){const f=n/24,_=e.lineOffsetX*f,v=e.lineOffsetY*f;let y;if(e.numGlyphs>1){const t=e.glyphStartIndex+e.numGlyphs,n=e.lineStartIndex,s=e.lineStartIndex+e.lineLength,u=te(f,l,_,v,i,h,d,e,c,o,p,g);
1if(!u)return{notEnoughRoom:!0};const x=Qt(u.first.point,a).point,b=Qt(u.last.point,a).point;if(r&&!i){const t=ee(e.writingMode,x,b,m);if(t)return t}y=[u.first];for(let r=e.glyphStartIndex+1;r<t-1;r++)y.push(re(f*l.getoffsetX(r),_,v,i,h,d,e.segment,n,s,c,o,p,g));y.push(u.last)}else{if(r&&!i){const n=Qt(d,s).point,i=e.lineStartIndex+e.segment+1,r=new t.pointGeometry(c.getx(i),c.gety(i)),o=Qt(r,s),a=o.signedDistanceFromCamera>0?o.point:ie(d,r,n,1,s),l=ee(e.writingMode,n,a,m);if(l)return l}const n=re(f*l.getoffsetX(e.glyphStartIndex),_,v,i,h,d,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,o,p,g);if(!n)return{notEnoughRoom:!0};y=[n]}for(const x of y)t.addDynamicAttributes(u,x.point,x.angle);return{}}function ie(t,e,n,i,r,s){const o=t.add(t.sub(e)._unit()),a=Qt(o,r,s?s(o):0).point,l=n.sub(a);return n.add(l._mult(i/l.mag()))}function re(e,n,i,r,s,o,a,l,c,u,h,d,p,m,g){const f=r?e-n:e+n;let _=f>0?1:-1,v=0;r&&(_*=-1,v=Math.PI),_<0&&(v+=Math.PI);let y=_>0?l+a:l+a+1,x=s,b=s,w=0,C=0;const P=Math.abs(f),M=[],O=[];let S=o;const k=()=>{const e=y-_;return 0===w?o:new t.pointGeometry(u.getx(e),u.gety(e))},T=()=>ie(k(),S,b,P-w+1,h,p);for(;w+C<=P;){if(y+=_,y<l||y>=c)return null;if(b=x,M.push(x),m&&O.push(S||k()),x=d[y],void 0===x){S=new t.pointGeometry(u.getx(y),u.gety(y));const e=Qt(S,h,p?p(S):0);x=e.signedDistanceFromCamera>0?d[y]=e.point:T()}else S=null;w+=C,C=b.dist(x)}g&&p&&(S=S||new t.pointGeometry(u.getx(y),u.gety(y)),d[y]=x=void 0===d[y]?x:T(),C=b.dist(x));const E=(P-w)/C,I=x.sub(b),A=I.mult(E)._add(b);i&&A._add(I._unit()._perp()._mult(i*_));const z=v+Math.atan2(x.y-b.y,x.x-b.x);return M.push(A),m&&(S=S||new t.pointGeometry(u.getx(y),u.gety(y)),O.push(function(e,n,i){const r=1-i;return new t.pointGeometry(e.x*r+n.x*i,e.y*r+n.y*i)}(O.length>0?O[O.length-1]:S,S,E))),{point:A,angle:z,path:M,tilePath:O}}const se=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function oe(t,e){for(let n=0;n<t;n++){const t=e.length;e.resize(t+4),e.float32.set(se,3*t)}}function ae(t,e,n){const i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t[3]=n[3]*i+n[7]*r+n[15],t}const le=100;class ce{constructor(t,e,n=new Zt(t.width+200,t.height+200,25),i=new Zt(t.width+200,t.height+200,25)){this.transform=t,this.grid=n,this.ignoredGrid=i,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+le,this.screenBottomBoundary=t.height+le,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200,this.fogState=e}placeCollisionBox(t,e,n,i,r,s,o){const a=this.projectAndGetPerspectiveRatio(s,e.anchorPointX,e.anchorPointY,e.elevation,e.tileID),l=r*a.perspectiveRatio,c=(e.x1*t+n.x-e.padding)*l+a.point.x,u=(e.y1*t+n.y-e.padding)*l+a.point.y,h=(e.x2*t+n.x+e.padding)*l+a.point.x,d=(e.y2*t+n.y+e.padding)*l+a.point.y,p=a.perspectiveRatio<=.55||a.aboveHorizon;return!this.isInsideGrid(c,u,h,d)||!i&&this.grid.hitTest(c,u,h,d,o)||p?{box:[],offscreen:!1}:{box:[c,u,h,d],offscreen:this.isOffscreen(c,u,h,d)}}placeCollisionCircles(e,n,i,r,s,o,a,l,c,u,h,d,p,m){const g=[],f=this.transform.elevation,_=f?t=>f.getAtTileOffset(m,t.x,t.y):t=>0,v=new t.pointGeometry(n.anchorX,n.anchorY),y=_(v),x=this.projectAndGetPerspectiveRatio(o,v.x,v.y,y,m),{perspectiveRatio:b}=x,w=(u?s/b:s*b)/t.ONE_EM,C=Qt(v,a,y).point,P=x.signedDistanceFromCamera>0?te(w,r,n.lineOffsetX*w,n.lineOffsetY*w,!1,C,v,n,i,a,{},f&&!u?_:null,u&&!!f):null;let M=!1,O=!1,S=!0;if(P&&!x.aboveHorizon){const n=.5*d*b+p,i=new t.pointGeometry(-100,-100),r=new t.pointGeometry(this.screenRightBoundary,this.screenBottomBoundary),s=new Gt,o=P.first,a=P.last;let u=[];for(let t=o.path.length-1;t>=1;t--)u.push(o.path[t]);for(let t=1;t<a.path.length;t++)u.push(a.path[t]);const m=2.5*n;if(l){const t=u.map(f?(t,e)=>{const n=_(e<o.path.length-1?o.tilePath[o.path.length-1-e]:a.tilePath[e-o.path.length+2]);return Qt(t,l,n)}:t=>Qt(t,l));u=t.some(t=>t.signedDistanceFromCamera<=0)?[]:t.map(t=>t.point)}let v=[];if(u.length>0){const e=u[0].clone(),n=u[0].clone();for(let t=1;t<u.length;t++)e.x=Math.min(e.x,u[t].x),e.y=Math.min(e.y,u[t].y),n.x=Math.max(n.x,u[t].x),n.y=Math.max(n.y,u[t].y);v=e.x>=i.x&&n.x<=r.x&&e.y>=i.y&&n.y<=r.y?[u]:n.x<i.x||e.x>r.x||n.y<i.y||e.y>r.y?[]:t.clipLine([u],i.x,i.y,r.x,r.y)}for(const t of v){s.reset(t,.25*n);let i=0;i=s.length<=.5*n?1:Math.ceil(s.paddedLength/m)+1;for(let t=0;t<i;t++){const r=t/Math.max(i-1,1),o=s.lerp(r),a=o.x+le,l=o.y+le;
1g.push(a,l,n,0);const u=a-n,d=l-n,p=a+n,m=l+n;if(S=S&&this.isOffscreen(u,d,p,m),O=O||this.isInsideGrid(u,d,p,m),!e&&this.grid.hitTestCircle(a,l,n,h)&&(M=!0,!c))return{circles:[],offscreen:!1,collisionDetected:M}}}}return{circles:!c&&M||!O?[]:g,offscreen:S,collisionDetected:M}}queryRenderedSymbols(e){if(0===e.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};const n=[];let i=1/0,r=1/0,s=-1/0,o=-1/0;for(const u of e){const e=new t.pointGeometry(u.x+le,u.y+le);i=Math.min(i,e.x),r=Math.min(r,e.y),s=Math.max(s,e.x),o=Math.max(o,e.y),n.push(e)}const a=this.grid.query(i,r,s,o).concat(this.ignoredGrid.query(i,r,s,o)),l={},c={};for(const u of a){const e=u.key;if(void 0===l[e.bucketInstanceId]&&(l[e.bucketInstanceId]={}),l[e.bucketInstanceId][e.featureIndex])continue;const i=[new t.pointGeometry(u.x1,u.y1),new t.pointGeometry(u.x2,u.y1),new t.pointGeometry(u.x2,u.y2),new t.pointGeometry(u.x1,u.y2)];t.polygonIntersectsPolygon(n,i)&&(l[e.bucketInstanceId][e.featureIndex]=!0,void 0===c[e.bucketInstanceId]&&(c[e.bucketInstanceId]=[]),c[e.bucketInstanceId].push(e.featureIndex))}return c}insertCollisionBox(t,e,n,i,r){(e?this.ignoredGrid:this.grid).insert({bucketInstanceId:n,featureIndex:i,collisionGroupID:r},t[0],t[1],t[2],t[3])}insertCollisionCircles(t,e,n,i,r){const s=e?this.ignoredGrid:this.grid,o={bucketInstanceId:n,featureIndex:i,collisionGroupID:r};for(let a=0;a<t.length;a+=4)s.insertCircle(o,t[a],t[a+1],t[a+2])}projectAndGetPerspectiveRatio(e,n,i,r,s){const o=[n,i,r||0,1];let a=!1;if(r||this.transform.pitch>0){t.transformMat4(o,o,e);let l=!1;this.fogState&&s&&(l=function(e,n,i,r,s,o){const a=o.calculateFogTileMatrix(s),l=[n,i,r];return t.transformMat4$1(l,l,a),C(e,l,o.pitch,o._fov)}(this.fogState,n,i,r||0,s.toUnwrapped(),this.transform)>.9),a=o[2]>o[3]||l}else ae(o,o,e);return{point:new t.pointGeometry((o[0]/o[3]+1)/2*this.transform.width+le,(-o[1]/o[3]+1)/2*this.transform.height+le),perspectiveRatio:Math.min(.5+this.transform.cameraToCenterDistance/o[3]*.5,1.5),signedDistanceFromCamera:o[3],aboveHorizon:a}}isOffscreen(t,e,n,i){return n<le||t>=this.screenRightBoundary||i<le||e>this.screenBottomBoundary}isInsideGrid(t,e,n,i){return n>=0&&t<this.gridRightBoundary&&i>=0&&e<this.gridBottomBoundary}getViewportMatrix(){const e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e}}class ue{constructor(t,e,n,i){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):i&&n?1:0,this.placed=n}isHidden(){return 0===this.opacity&&!this.placed}}class he{constructor(t,e,n,i,r){this.text=new ue(t?t.text:null,e,n,r),this.icon=new ue(t?t.icon:null,e,i,r)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class de{constructor(t,e,n){this.text=t,this.icon=e,this.skipFade=n}}class pe{constructor(){this.invProjMatrix=t.create$1(),this.viewportMatrix=t.create$1(),this.circles=[]}}class me{constructor(t,e,n,i,r){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=n,this.bucketIndex=i,this.tileID=r}}class ge{constructor(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}}get(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){const e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:t=>t.collisionGroupID===e}}return this.collisionGroups[t]}}function fe(e,n,i,r,s){const{horizontalAlign:o,verticalAlign:a}=t.getAnchorAlignment(e),l=-(o-.5)*n,c=-(a-.5)*i,u=t.evaluateVariableOffset(e,r);return new t.pointGeometry(l+u[0]*s,c+u[1]*s)}function _e(e,n,i,r,s){const o=new t.pointGeometry(e,n);return i&&o._rotate(r?s:-s),o}class ve{constructor(t,e,n,i,r){this.transform=t.clone(),this.collisionIndex=new ce(this.transform,r),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new ge(n),this.collisionCircleArrays={},this.prevPlacement=i,i&&(i.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(e,n,i,r){const s=i.getBucket(n),o=i.latestFeatureIndex;if(!s||!o||n.id!==s.layerIds[0])return;const a=i.collisionBoxArray,l=s.layers[0].layout,c=Math.pow(2,this.transform.zoom-i.tileID.overscaledZ
1),u=i.tileSize/t.EXTENT,h=this.transform.calculateProjMatrix(i.tileID.toUnwrapped()),d="map"===l.get("text-pitch-alignment"),p="map"===l.get("text-rotation-alignment"),m=T(i,1,this.transform.zoom),g=Wt(h,d,p,this.transform,m);let f=null;if(d){const e=Xt(h,d,p,this.transform,m);f=t.multiply([],this.transform.labelPlaneMatrix,e)}this.retainedQueryData[s.bucketInstanceId]=new me(s.bucketInstanceId,o,s.sourceLayerIndex,s.index,i.tileID);const _={bucket:s,layout:l,posMatrix:h,textLabelPlaneMatrix:g,labelToScreenMatrix:f,scale:c,textPixelRatio:u,holdingForFade:i.holdingForFade(),collisionBoxArray:a,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(s.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:t.evaluateSizeForZoom(s.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(s.sourceID)};if(r)for(const t of s.sortKeyRanges){const{sortKey:n,symbolInstanceStart:i,symbolInstanceEnd:r}=t;e.push({sortKey:n,symbolInstanceStart:i,symbolInstanceEnd:r,parameters:_})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:s.symbolInstances.length,parameters:_})}attemptAnchorPlacement(t,e,n,i,r,s,o,a,l,c,u,h,d,p,m,g,f,_){const v=[h.textOffset0,h.textOffset1],y=p.getSymbolInstanceTextSize(f,h,this.transform.zoom,d),x=fe(t,n,i,v,r),b=this.collisionIndex.placeCollisionBox(y,e,_e(x.x,x.y,s,o,this.transform.angle),u,a,l,c.predicate);if((!g||0!==this.collisionIndex.placeCollisionBox(p.getSymbolInstanceIconSize(_,this.transform.zoom,d),g,_e(x.x,x.y,s,o,this.transform.angle),u,a,l,c.predicate).box.length)&&b.box.length>0){let e;return this.prevPlacement&&this.prevPlacement.variableOffsets[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID].text&&(e=this.prevPlacement.variableOffsets[h.crossTileID].anchor),this.variableOffsets[h.crossTileID]={textOffset:v,width:n,height:i,anchor:t,textBoxScale:r,prevAnchor:e},this.markUsedJustification(p,t,h,m),p.allowVerticalPlacement&&(this.markUsedOrientation(p,m,h),this.placedOrientations[h.crossTileID]=m),{shift:x,placedGlyphBoxes:b}}}placeLayerBucketPart(e,n,i){const{bucket:r,layout:s,posMatrix:o,textLabelPlaneMatrix:a,labelToScreenMatrix:l,textPixelRatio:c,holdingForFade:u,collisionBoxArray:h,partiallyEvaluatedTextSize:d,partiallyEvaluatedIconSize:p,collisionGroup:m}=e.parameters,g=s.get("text-optional"),f=s.get("icon-optional"),_=s.get("text-allow-overlap"),v=s.get("icon-allow-overlap"),y="map"===s.get("text-rotation-alignment"),x="map"===s.get("text-pitch-alignment"),b="none"!==s.get("icon-text-fit"),w="viewport-y"===s.get("symbol-z-order"),C=_&&(v||!r.hasIconData()||f),P=v&&(_||!r.hasTextData()||g);!r.collisionArrays&&h&&r.deserializeCollisionBoxes(h),i&&r.updateCollisionDebugBuffers(this.transform.zoom,h);const M=(e,h,w)=>{if(n[e.crossTileID])return;if(u)return void(this.placements[e.crossTileID]=new de(!1,!1,!1));let M=!1,O=!1,S=!0,k=null,T={box:null,offscreen:null},E={box:null,offscreen:null},I=null,A=null,z=null,D=0,L=0,R=0;w.textFeatureIndex?D=w.textFeatureIndex:e.useRuntimeCollisionCircles&&(D=e.featureIndex),w.verticalTextFeatureIndex&&(L=w.verticalTextFeatureIndex);const F=t=>{t.tileID=this.retainedQueryData[r.bucketInstanceId].tileID,(this.transform.elevation||t.elevation)&&(t.elevation=this.transform.elevation?this.transform.elevation.getAtTileOffset(this.retainedQueryData[r.bucketInstanceId].tileID,t.anchorPointX,t.anchorPointY):0)},B=w.textBox;if(B){F(B);const n=n=>{let i=t.WritingMode.horizontal;if(r.allowVerticalPlacement&&!n&&this.prevPlacement){const t=this.prevPlacement.placedOrientations[e.crossTileID];t&&(this.placedOrientations[e.crossTileID]=t,i=t,this.markUsedOrientation(r,i,e))}return i},i=(n,i)=>{if(r.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&w.verticalTextBox){for(const e of r.writingModes)if(e===t.WritingMode.vertical?(T=i(),E=T):T=n(),T&&T.box&&T.box.length)break}else T=n()};if(s.get("text-variable-anchor")){let a=s.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[e.crossTileID]){const t=this.prevPlacement.variableOffsets[e.crossTileID];a.indexOf(t.anchor)>0&&(a=a.filter(e=>e!==t.anchor),a.unshift(t.anchor))}const l=(t,n,i)=>{const s=e.textBoxScale,l=(t.x2-t.x1)*s+2*t.padding,u=(t.y2-t.y1)*s+2*t.padding,g=b&&!v?n:null;g&&F(g);let f={box:[],offscreen:!1};const w=_?2*a.length:a.length;for(let _=0;_<w;++_){const n=this.attemptAnchorPlacement(a[_%a.length],t,l,u,s,y,x,c,o,m,_>=a.length,e,h,r,i,g,d,p);if(n&&(f=n.placedGlyphBoxes,f&&f.box&&f.box.length)){M=!0,k=n.shift;break}}return f};i(()=>l(B,w.iconBox,t.WritingMode.horizontal),()=>{const n=w.verticalTextBox;return n&&F(n),r.allowVerticalPlacement&&!(T&&T.box&&T.box.length)&&e.numVerticalGlyphVertices>0&&n?l(n,w.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}}),T&&(M=T.box,S=T.offscreen);const u=n(T&&T.box);if(!M&&this.prevPlacement){const t=this.prevPlacement.variableOffsets[e.crossTileID];t&&(this.variableOffsets[e.crossTileID]=t,this.markUsedJustification(r,t.anchor,e,u))}}else{const s=(n,i)=>{const s=r.getSymbolInstanceTextSize(d,e,this.transform.zoom,h),a=this.collisionIndex.placeCollisionBox(s,n,new t.pointGeometry(0,0),_,c,o,m.predicate);return a&&a.box&&a.box.length&&(this.markUsedOrientation(r,i,e),this.placedOrientations[e.crossTileID]=i),a};i(()=>s(B,t.WritingMode.horizontal),()=>{const n=w.verticalTextBox;return r.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&n?(F(n),s(n,t.WritingMode.vertical)):{box:null,offscreen:null}}),n(T&&T.box&&T.box.length)}}if(I=T,M=I&&I.box&&I.box.length>0,S=I&&I.offscreen,e.useRuntimeCollisionCircles){const n=r.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),c=t.evaluateSizeForFeature
vendor: 4,502 bytes, line 1
1(r.textSizeData,d,n),u=s.get("text-padding");A=this.collisionIndex.placeCollisionCircles(_,n,r.lineVertexArray,r.glyphOffsetArray,c,o,a,l,i,x,m.predicate,e.collisionCircleDiameter,u,this.retainedQueryData[r.bucketInstanceId].tileID),M=_||A.circles.length>0&&!A.collisionDetected,S=S&&A.offscreen}if(w.iconFeatureIndex&&(R=w.iconFeatureIndex),w.iconBox){const e=e=>{F(e);const n=b&&k?_e(k.x,k.y,y,x,this.transform.angle):new t.pointGeometry(0,0),i=r.getSymbolInstanceIconSize(p,this.transform.zoom,h);return this.collisionIndex.placeCollisionBox(i,e,n,v,c,o,m.predicate)};E&&E.box&&E.box.length&&w.verticalIconBox?(z=e(w.verticalIconBox),O=z.box.length>0):(z=e(w.iconBox),O=z.box.length>0),S=S&&z.offscreen}const N=g||0===e.numHorizontalGlyphVertices&&0===e.numVerticalGlyphVertices,U=f||0===e.numIconVertices;if(N||U?U?N||(O=O&&M):M=O&&M:O=M=O&&M,M&&I&&I.box&&this.collisionIndex.insertCollisionBox(I.box,s.get("text-ignore-placement"),r.bucketInstanceId,E&&E.box&&L?L:D,m.ID),O&&z&&this.collisionIndex.insertCollisionBox(z.box,s.get("icon-ignore-placement"),r.bucketInstanceId,R,m.ID),A&&(M&&this.collisionIndex.insertCollisionCircles(A.circles,s.get("text-ignore-placement"),r.bucketInstanceId,D,m.ID),i)){const t=r.bucketInstanceId;let e=this.collisionCircleArrays[t];void 0===e&&(e=this.collisionCircleArrays[t]=new pe);for(let n=0;n<A.circles.length;n+=4)e.circles.push(A.circles[n+0]),e.circles.push(A.circles[n+1]),e.circles.push(A.circles[n+2]),e.circles.push(A.collisionDetected?1:0)}this.placements[e.crossTileID]=new de(M||C,O||P,S||r.justReloaded),n[e.crossTileID]=!0};if(w){const t=r.getSortedSymbolIndexes(this.transform.angle);for(let e=t.length-1;e>=0;--e){const n=t[e];M(r.symbolInstances.get(n),n,r.collisionArrays[n])}}else for(let t=e.symbolInstanceStart;t<e.symbolInstanceEnd;t++)M(r.symbolInstances.get(t),t,r.collisionArrays[t]);if(i&&r.bucketInstanceId in this.collisionCircleArrays){const e=this.collisionCircleArrays[r.bucketInstanceId];t.invert(e.invProjMatrix,o),e.viewportMatrix=this.collisionIndex.getViewportMatrix()}r.justReloaded=!1}markUsedJustification(e,n,i,r){let s;s=r===t.WritingMode.vertical?i.verticalPlacedTextSymbolIndex:{left:i.leftJustifiedTextSymbolIndex,center:i.centerJustifiedTextSymbolIndex,right:i.rightJustifiedTextSymbolIndex}[t.getAnchorJustification(n)];const o=[i.leftJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.rightJustifiedTextSymbolIndex,i.verticalPlacedTextSymbolIndex];for(const t of o)t>=0&&(e.text.placedSymbolArray.get(t).crossTileID=s>=0&&t!==s?0:i.crossTileID)}markUsedOrientation(e,n,i){const r=n===t.WritingMode.horizontal||n===t.WritingMode.horizontalOnly?n:0,s=n===t.WritingMode.vertical?n:0,o=[i.leftJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.rightJustifiedTextSymbolIndex];for(const t of o)e.text.placedSymbolArray.get(t).placedOrientation=r;i.verticalPlacedTextSymbolIndex&&(e.text.placedSymbolArray.get(i.verticalPlacedTextSymbolIndex).placedOrientation=s)}commit(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;const e=this.prevPlacement;let n=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;const i=e?e.symbolFadeChange(t):1,r=e?e.opacities:{},s=e?e.variableOffsets:{},o=e?e.placedOrientations:{};for(const a in this.placements){const t=this.placements[a],e=r[a];e?(this.opacities[a]=new he(e,i,t.text,t.icon),n=n||t.text!==e.text.placed||t.icon!==e.icon.placed):(this.opacities[a]=new he(null,i,t.text,t.icon,t.skipFade),n=n||t.text||t.icon)}for(const a in r){const t=r[a];if(!this.opacities[a]){const e=new he(t,i,!1,!1);e.isHidden()||(this.opacities[a]=e,n=n||t.text.placed||t.icon.placed)}}for(const a in s)this.variableOffsets[a]||!this.opacities[a]||this.opacities[a].isHidden()||(this.variableOffsets[a]=s[a]);for(const a in o)this.placedOrientations[a]||!this.opacities[a]||this.opacities[a].isHidden()||(this.placedOrientations[a]=o[a]);n?this.lastPlacementChangeTime=t:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)}updateLayerOpacities(t,e){const n={};for(const i of e){const e=i.getBucket(t);e&&i.latestFeatureIndex&&t.id===e.layerIds[0]&&this.updateBucketOpacities(e,n,i.collisionBoxArray)}}updateBucketOpacities(e,n,i){e.hasTextData()&&e.text.opacityVertexArray.clear(),e.hasIconData()&&e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();
1const r=e.layers[0].layout,s=new he(null,0,!1,!1,!0),o=r.get("text-allow-overlap"),a=r.get("icon-allow-overlap"),l=r.get("text-variable-anchor"),c="map"===r.get("text-rotation-alignment"),u="map"===r.get("text-pitch-alignment"),h="none"!==r.get("icon-text-fit"),d=new he(null,0,o&&(a||!e.hasIconData()||r.get("icon-optional")),a&&(o||!e.hasTextData()||r.get("text-optional")),!0);!e.collisionArrays&&i&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(i);const p=(t,e,n)=>{for(let i=0;i<e/4;i++)t.opacityVertexArray.emplaceBack(n)};for(let m=0;m<e.symbolInstances.length;m++){const i=e.symbolInstances.get(m),{numHorizontalGlyphVertices:r,numVerticalGlyphVertices:o,crossTileID:a}=i;let g=this.opacities[a];n[a]?g=s:g||(g=d,this.opacities[a]=g),n[a]=!0;const f=i.numIconVertices>0,_=this.placedOrientations[i.crossTileID],v=_===t.WritingMode.vertical,y=_===t.WritingMode.horizontal||_===t.WritingMode.horizontalOnly;if(r>0||o>0){const t=Se(g.text);p(e.text,r,v?ke:t),p(e.text,o,y?ke:t);const n=g.text.isHidden();[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach(t=>{t>=0&&(e.text.placedSymbolArray.get(t).hidden=n||v?1:0)}),i.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(i.verticalPlacedTextSymbolIndex).hidden=n||y?1:0);const s=this.variableOffsets[i.crossTileID];s&&this.markUsedJustification(e,s.anchor,i,_);const a=this.placedOrientations[i.crossTileID];a&&(this.markUsedJustification(e,"left",i,a),this.markUsedOrientation(e,a,i))}if(f){const t=Se(g.icon),n=!(h&&i.verticalPlacedIconSymbolIndex&&v);i.placedIconSymbolIndex>=0&&(p(e.icon,i.numIconVertices,n?t:ke),e.icon.placedSymbolArray.get(i.placedIconSymbolIndex).hidden=g.icon.isHidden()),i.verticalPlacedIconSymbolIndex>=0&&(p(e.icon,i.numVerticalIconVertices,n?ke:t),e.icon.placedSymbolArray.get(i.verticalPlacedIconSymbolIndex).hidden=g.icon.isHidden())}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){const n=e.collisionArrays[m];if(n){let i=new t.pointGeometry(0,0);if(n.textBox||n.verticalTextBox){let t=!0;if(l){const e=this.variableOffsets[a];e?(i=fe(e.anchor,e.width,e.height,e.textOffset,e.textBoxScale),c&&i._rotate(u?this.transform.angle:-this.transform.angle)):t=!1}n.textBox&&ye(e.textCollisionBox.collisionVertexArray,g.text.placed,!t||v,i.x,i.y),n.verticalTextBox&&ye(e.textCollisionBox.collisionVertexArray,g.text.placed,!t||y,i.x,i.y)}const r=Boolean(!y&&n.verticalIconBox);n.iconBox&&ye(e.iconCollisionBox.collisionVertexArray,g.icon.placed,r,h?i.x:0,h?i.y:0),n.verticalIconBox&&ye(e.iconCollisionBox.collisionVertexArray,g.icon.placed,!r,h?i.x:0,h?i.y:0)}}}if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){const t=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=t.invProjMatrix,e.placementViewportMatrix=t.viewportMatrix,e.collisionCircleArray=t.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}}symbolFadeChange(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(t){return Math.max(0,(this.transform.zoom-t)/1.5)}hasTransitions(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(t,e){const n=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*n>t}setStale(){this.stale=!0}}function ye(t,e,n,i,r){t.emplaceBack(e?1:0,n?1:0,i||0,r||0),t.emplaceBack(e?1:0,n?1:0,i||0,r||0),t.emplaceBack(e?1:0,n?1:0,i||0,r||0),t.emplaceBack(e?1:0,n?1:0,i||0,r||0)}const xe=Math.pow(2,25),be=Math.pow(2,24),we=Math.pow(2,17),Ce=Math.pow(2,16),Pe=Math.pow(2,9),Me=Math.pow(2,8),Oe=Math.pow(2,1);function Se(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;const e=t.placed?1:0,n=Math.floor(127*t.opacity);return n*xe+e*be+n*we+e*Ce+n*Pe+e*Me+n*Oe+e}const ke=0;class Te{constructor(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&void 0!==t.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(t,e,n,i,r){const s=this._bucketParts;for(;this._currentTileIndex<t.length;)if(e.getBucketParts(s,i,t[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,r())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,s.sort((t,e)=>t.sortKey-e.sortKey));this._currentPartIndex<s.length;)if(e.placeLayerBucketPart(s[this._currentPartIndex],this._seenCrossTileIDs,n),this._currentPartIndex++,r())return!0;return!1}}class Ee{constructor(t,e,n,i,r,s,o,a){this.placement=new ve(t,r,s,o,a),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=n,this._showCollisionBoxes=i,this._done=!1}isDone(){return this._done}continuePlacement(e,n,i){const r=t.exported.now(),s=()=>{const e=t.exported.now()-r;return!this._forceFullPlacement&&e>2};for(;this._currentPlacementIndex>=0;){const t=n[e[this._currentPlacementIndex]],r=this.placement.collisionIndex.transform.zoom;if("symbol"===t.type&&(!t.minzoom||t.minzoom<=r)&&(!t.maxzoom||t.maxzoom>r)){if(this._inProgressLayer||(this._inProgressLayer=new Te(t)),this._inProgressLayer.continuePlacement(i[t.source],this.placement,this._showCollisionBoxes,t,s))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(t){return this.placement.commit(t),this.placement}}const Ie=512/t.EXTENT/2;class Ae{constructor(t,e,n){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(let i=0;i<e.length;i++){const n=e.get(i),r=n.key;this.indexedSymbolInstances[r]||(this.indexedSymbolInstances[r]=[]),this.indexedSymbolInstances[r].push({crossTileID:n.crossTileID,coord:this.getScaledCoordinates(n,t)})}}
1getScaledCoordinates(e,n){const i=Ie/Math.pow(2,n.canonical.z-this.tileID.canonical.z);return{x:Math.floor((n.canonical.x*t.EXTENT+e.anchorX)*i),y:Math.floor((n.canonical.y*t.EXTENT+e.anchorY)*i)}}findMatches(t,e,n){const i=this.tileID.canonical.z<e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z);for(let r=0;r<t.length;r++){const s=t.get(r);if(s.crossTileID)continue;const o=this.indexedSymbolInstances[s.key];if(!o)continue;const a=this.getScaledCoordinates(s,e);for(const t of o)if(Math.abs(t.coord.x-a.x)<=i&&Math.abs(t.coord.y-a.y)<=i&&!n[t.crossTileID]){n[t.crossTileID]=!0,s.crossTileID=t.crossTileID;break}}}}class ze{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class De{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(t){const e=Math.round((t-this.lng)/360);if(0!==e)for(const n in this.indexes){const t=this.indexes[n],i={};for(const n in t){const r=t[n];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+e),i[r.tileID.key]=r}this.indexes[n]=i}this.lng=t}addBucket(t,e,n){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(let r=0;r<e.symbolInstances.length;r++)e.symbolInstances.get(r).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});const i=this.usedCrossTileIDs[t.overscaledZ];for(const r in this.indexes){const n=this.indexes[r];if(Number(r)>t.overscaledZ)for(const r in n){const s=n[r];s.tileID.isChildOf(t)&&s.findMatches(e.symbolInstances,t,i)}else{const s=n[t.scaledTo(Number(r)).key];s&&s.findMatches(e.symbolInstances,t,i)}}for(let r=0;r<e.symbolInstances.length;r++){const t=e.symbolInstances.get(r);t.crossTileID||(t.crossTileID=n.generate(),i[t.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new Ae(t,e.symbolInstances,e.bucketInstanceId),!0}removeBucketCrossTileIDs(t,e){for(const n in e.indexedSymbolInstances)for(const i of e.indexedSymbolInstances[n])delete this.usedCrossTileIDs[t][i.crossTileID]}removeStaleBuckets(t){let e=!1;for(const n in this.indexes){const i=this.indexes[n];for(const r in i)t[i[r].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,i[r]),delete i[r],e=!0)}return e}}class Le{constructor(){this.layerIndexes={},this.crossTileIDs=new ze,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(t,e,n){let i=this.layerIndexes[t.id];void 0===i&&(i=this.layerIndexes[t.id]=new De);let r=!1;const s={};i.handleWrapJump(n);for(const o of e){const e=o.getBucket(t);e&&t.id===e.layerIds[0]&&(e.bucketInstanceId||(e.bucketInstanceId=++this.maxBucketInstanceId),i.addBucket(o.tileID,e,this.crossTileIDs)&&(r=!0),s[e.bucketInstanceId]=!0)}return i.removeStaleBuckets(s)&&(r=!0),r}pruneUnusedLayers(t){const e={};t.forEach(t=>{e[t]=!0});for(const n in this.layerIndexes)e[n]||delete this.layerIndexes[n]}}const Re=(e,n)=>t.emitValidationErrors(e,n&&n.filter(t=>"source.canvas"!==t.identifier)),Fe=t.pick(Bt,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog"]),Be=t.pick(Bt,["setCenter","setZoom","setBearing","setPitch"]),Ne=function(){const e={},n=t.spec.$version;for(const i in t.spec.$root){const r=t.spec.$root[i];if(r.required){let t=null;t="version"===i?n:"array"===r.type?[]:{},null!=t&&(e[i]=t)}}return e}(),Ue={fill:!0,line:!0,background:!0,hillshade:!0,raster:!0};class He extends t.Evented{constructor(e,n={}){super(),this.map=e,this.dispatcher=new k(Lt(),this),this.imageManager=new f,this.imageManager.setEventedParent(this),this.glyphManager=new t.GlyphManager(e._requestManager,n.localFontFamily?t.LocalGlyphMode.all:n.localIdeographFontFamily?t.LocalGlyphMode.ideographs:t.LocalGlyphMode.none,n.localFontFamily||n.localIdeographFontFamily),this.lineAtlas=new t.LineAtlas(256,512),this.crossTileSymbolIndex=new Le,this._layers={},this._num3DLayers=0,this._numSymbolLayers=0,this._numCircleLayers=0,this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._availableImages=[],this._order=[],this._drapedFirstOrder=[],this._markersNeedU
1pdate=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",t.getReferrer());const i=this;this._rtlTextPluginCallback=He.registerForPluginStateChange(e=>{i.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:e.pluginStatus,pluginURL:e.pluginURL},(e,n)=>{if(t.triggerPluginCompletionEvent(e),n&&n.every(t=>t))for(const t in i._sourceCaches){const e=i._sourceCaches[t],n=e.getSource().type;"vector"!==n&&"geojson"!==n||e.reload()}})}),this.on("data",t=>{if("source"!==t.dataType||"metadata"!==t.sourceDataType)return;const e=this.getSource(t.sourceId);if(e&&e.vectorLayerIds)for(const n in this._layers){const t=this._layers[n];t.source===e.id&&this._validateLayer(t)}})}loadURL(e,n={}){this.fire(new t.Event("dataloading",{dataType:"style"}));const i="boolean"==typeof n.validate?n.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,n.accessToken);const r=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(r,(e,n)=>{this._request=null,e?this.fire(new t.ErrorEvent(e)):n&&this._load(n,i)})}loadJSON(e,n={}){this.fire(new t.Event("dataloading",{dataType:"style"})),this._request=t.exported.frame(()=>{this._request=null,this._load(e,!1!==n.validate)})}loadEmpty(){this.fire(new t.Event("dataloading",{dataType:"style"})),this._load(Ne,!1)}_updateLayerCount(t,e){const n=e?1:-1;t.is3D()&&(this._num3DLayers+=n),"circle"===t.type&&(this._numCircleLayers+=n),"symbol"===t.type&&(this._numSymbolLayers+=n)}_load(e,n){if(n&&Re(this,t.validateStyle(e)))return;this._loaded=!0,this.stylesheet=e;for(const t in e.sources)this.addSource(t,e.sources[t],{validate:!1});this._changed=!1,e.sprite?this._loadSprite(e.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(e.glyphs);const i=Ft(this.stylesheet.layers);this._order=i.map(t=>t.id),this._layers={},this._serializedLayers={};for(let r of i)r=t.createStyleLayer(r),r.setEventedParent(this,{layer:{id:r.id}}),this._layers[r.id]=r,this._serializedLayers[r.id]=r.serialize(),this._updateLayerCount(r,!0);this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new y(this.stylesheet.light),this.stylesheet.terrain&&this._createTerrain(this.stylesheet.terrain),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this._updateDrapeFirstLayers(),this.fire(new t.Event("data",{dataType:"style"})),this.fire(new t.Event("style.load"))}_loadSprite(e){this._spriteRequest=function(e,n,i){let r,s,o;const a=t.exported.devicePixelRatio>1?"@2x":"";let l=t.getJSON(n.transformRequest(n.normalizeSpriteURL(e,a,".json"),t.ResourceType.SpriteJSON),(t,e)=>{l=null,o||(o=t,r=e,u())}),c=t.getImage(n.transformRequest(n.normalizeSpriteURL(e,a,".png"),t.ResourceType.SpriteImage),(t,e)=>{c=null,o||(o=t,s=e,u())});function u(){if(o)i(o);else if(r&&s){const e=t.exported.getImageData(s),n={};for(const i in r){const{width:s,height:o,x:a,y:l,sdf:c,pixelRatio:u,stretchX:h,stretchY:d,content:p}=r[i],m=new t.RGBAImage({width:s,height:o});t.RGBAImage.copy(e,m,{x:a,y:l},{x:0,y:0},{width:s,height:o}),n[i]={data:m,pixelRatio:u,sdf:c,stretchX:h,stretchY:d,content:p}}i(null,n)}}return{cancel(){l&&(l.cancel(),l=null),c&&(c.cancel(),c=null)}}}(e,this.map._requestManager,(e,n)=>{if(this._spriteRequest=null,e)this.fire(new t.ErrorEvent(e));else if(n)for(const t in n)this.imageManager.addImage(t,n[t]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.dispatcher.broadcast("spriteLoaded",!0),this.fire(new t.Event("data",{dataType:"style"}))})}_validateLayer(e){const n=this.getSource(e.source);if(!n)return;const i=e.sourceLayer;i&&("geojson"===n.type||n.vectorLayerIds&&-1===n.vectorLayerIds.indexOf(i))&&this.fire(new t.ErrorEvent(new Error(`Source layer "${i}" does not exist on source "${n.id}" as specified by style layer "${e.id}"`)))}loaded(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(const t in this._sourceCaches)if(!this._sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(t){const e=[];for(const n of t){const t=this._layers[n];"custom"!==t.type&&e.push(t.serialize())}return e}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;
vendor: 4,366 bytes, line 1
1if(this.fog&&this.fog.hasTransition())return!0;for(const t in this._sourceCaches)if(this._sourceCaches[t].hasTransition())return!0;for(const t in this._layers)if(this._layers[t].hasTransition())return!0;return!1}get order(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}isLayerDraped(t){return!!this.terrain&&Ue[t.type]}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}update(e){if(!this._loaded)return;const n=this._changed;if(this._changed){const t=Object.keys(this._updatedLayers),n=Object.keys(this._removedLayers);(t.length||n.length)&&this._updateWorkerLayers(t,n);for(const e in this._updatedSources){const t=this._updatedSources[e];"reload"===t?this._reloadSource(e):"clear"===t&&this._clearSource(e)}this._updateTilesForChangedImages();for(const i in this._updatedPaintProps)this._layers[i].updateTransitions(e);this.light.updateTransitions(e),this.fog&&this.fog.updateTransitions(e),this._resetUpdates()}const i={};for(const t in this._sourceCaches){const e=this._sourceCaches[t];i[t]=e.used,e.used=!1}for(const t of this._order){const n=this._layers[t];if(n.recalculate(e,this._availableImages),!n.isHidden(e.zoom)){const t=this._getLayerSourceCache(n);t&&(t.used=!0)}const i=this.map.painter;if(i){const t=n.getProgramIds();if(!t)continue;const r=n.getProgramConfiguration(e.zoom);for(const e of t)i.useProgram(e,r)}}for(const r in i){const e=this._sourceCaches[r];i[r]!==e.used&&e.getSource().fire(new t.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:e.getSource().id}))}this.light.recalculate(e),this.terrain&&this.terrain.recalculate(e),this.fog&&this.fog.recalculate(e),this.z=e.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),n&&this.fire(new t.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const t=Object.keys(this._changedImages);if(t.length){for(const e in this._sourceCaches)this._sourceCaches[e].reloadTilesForDependencies(["icons","patterns"],t);this._changedImages={}}}_updateWorkerLayers(t,e){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(t),removedIds:e})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(e){if(this._checkLoaded(),Re(this,t.validateStyle(e)))return!1;(e=t.clone$2(e)).layers=Ft(e.layers);const n=function(t,e){if(!t)return[{command:Bt.setStyle,args:[e]}];let n=[];try{if(!r(t.version,e.version))return[{command:Bt.setStyle,args:[e]}];r(t.center,e.center)||n.push({command:Bt.setCenter,args:[e.center]}),r(t.zoom,e.zoom)||n.push({command:Bt.setZoom,args:[e.zoom]}),r(t.bearing,e.bearing)||n.push({command:Bt.setBearing,args:[e.bearing]}),r(t.pitch,e.pitch)||n.push({command:Bt.setPitch,args:[e.pitch]}),r(t.sprite,e.sprite)||n.push({command:Bt.setSprite,args:[e.sprite]}),r(t.glyphs,e.glyphs)||n.push({command:Bt.setGlyphs,args:[e.glyphs]}),r(t.transition,e.transition)||n.push({command:Bt.setTransition,args:[e.transition]}),r(t.light,e.light)||n.push({command:Bt.setLight,args:[e.light]}),r(t.fog,e.fog)||n.push({command:Bt.setFog,args:[e.fog]});const i={},s=[];!function(t,e,n,i){let s;for(s in e=e||{},t=t||{})t.hasOwnProperty(s)&&(e.hasOwnProperty(s)||Ut(s,n,i));for(s in e)e.hasOwnProperty(s)&&(t.hasOwnProperty(s)?r(t[s],e[s])||("geojson"===t[s].type&&"geojson"===e[s].type&&jt(t,e,s)?n.push({command:Bt.setGeoJSONSourceData,args:[s,e[s].data]}):Ht(s,e,n,i)):Nt(s,e,n))}(t.sources,e.sources,s,i);const o=[];t.layers&&t.layers.forEach(t=>{i[t.source]?n.push({command:Bt.removeLayer,args:[t.id]}):o.push(t)});let a=t.terrain;a&&i[a.source]&&(n.push({command:Bt.setTerrain,args:[void 0]}),a=void 0),n=n.concat(s),r(a,e.terrain)||n.push({command:Bt.setTerrain,args:[e.terrain]}),function(t,e,n){e=e||[];const i=(t=t||[]).map($t),s=e.map($t),o=t.reduce(qt,{}),a=e.reduce(qt,{}),l=i.slice(),c=Object.create(null);let u,h,d,p,m,g,f;for(u=0,h=0;u<i.length;u++)d=i[u],a.hasOwnProperty(d)?h++:(n.push({command:Bt.removeLayer,args:[d]}),l.splice(l.indexOf(d,h),1));for(u=0,h=0;u<s.length;u++)d=s[s.length-1-u],l[l.length-1-u]!==d&&(o.hasOwnProperty(d)?(n.push({command:Bt.removeLayer,args:[d]}),l.splice(l.lastIndexOf(d,l.length-h),1)):h++,g=l[l.length-u],n.push({command:Bt.addLayer,args:[a[d],g]}),l.splice(l.length-u,0,d),c[d]=!0);for(u=0;
1u<s.length;u++)if(d=s[u],p=o[d],m=a[d],!c[d]&&!r(p,m))if(r(p.source,m.source)&&r(p["source-layer"],m["source-layer"])&&r(p.type,m.type)){for(f in Vt(p.layout,m.layout,n,d,null,Bt.setLayoutProperty),Vt(p.paint,m.paint,n,d,null,Bt.setPaintProperty),r(p.filter,m.filter)||n.push({command:Bt.setFilter,args:[d,m.filter]}),r(p.minzoom,m.minzoom)&&r(p.maxzoom,m.maxzoom)||n.push({command:Bt.setLayerZoomRange,args:[d,m.minzoom,m.maxzoom]}),p)p.hasOwnProperty(f)&&"layout"!==f&&"paint"!==f&&"filter"!==f&&"metadata"!==f&&"minzoom"!==f&&"maxzoom"!==f&&(0===f.indexOf("paint.")?Vt(p[f],m[f],n,d,f.slice(6),Bt.setPaintProperty):r(p[f],m[f])||n.push({command:Bt.setLayerProperty,args:[d,f,m[f]]}));for(f in m)m.hasOwnProperty(f)&&!p.hasOwnProperty(f)&&"layout"!==f&&"paint"!==f&&"filter"!==f&&"metadata"!==f&&"minzoom"!==f&&"maxzoom"!==f&&(0===f.indexOf("paint.")?Vt(p[f],m[f],n,d,f.slice(6),Bt.setPaintProperty):r(p[f],m[f])||n.push({command:Bt.setLayerProperty,args:[d,f,m[f]]}))}else n.push({command:Bt.removeLayer,args:[d]}),g=l[l.lastIndexOf(d)+1],n.push({command:Bt.addLayer,args:[m,g]})}(o,e.layers,n)}catch(t){console.warn("Unable to compute style diff:",t),n=[{command:Bt.setStyle,args:[e]}]}return n}(this.serialize(),e).filter(t=>!(t.command in Be));if(0===n.length)return!1;const i=n.filter(t=>!(t.command in Fe));if(i.length>0)throw new Error(`Unimplemented: ${i.map(t=>t.command).join(", ")}.`);return n.forEach(t=>{"setTransition"!==t.command&&this[t.command].apply(this,t.args)}),this.stylesheet=e,!0}addImage(e,n){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(e,n),this._afterImageUpdated(e)}updateImage(t,e){this.imageManager.updateImage(t,e)}getImage(t){return this.imageManager.getImage(t)}removeImage(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(e),this._afterImageUpdated(e)}_afterImageUpdated(e){this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new t.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(e,n,i={}){if(this._checkLoaded(),void 0!==this.getSource(e))throw new Error("There is already a source with this ID");if(!n.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(n).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(t.validateStyle.source,`sources.${e}`,n,null,i))return;this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);const r=Ot(e,n,this.dispatcher,this);r.setEventedParent(this,()=>({isSourceLoaded:this.loaded(),source:r.serialize(),sourceId:e}));const s=n=>{const i=(n?"symbol:":"other:")+e,s=this._sourceCaches[i]=new t.SourceCache(i,r,n);(n?this._symbolSourceCaches:this._otherSourceCaches)[e]=s,s.style=this,s.onAdd(this.map)};s(!1),"vector"!==n.type&&"geojson"!==n.type||s(!0),r.onAdd&&r.onAdd(this.map),this._changed=!0}removeSource(e){this._checkLoaded();const n=this.getSource(e);if(void 0===n)throw new Error("There is no source with this ID");for(const r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error(`Source "${e}" cannot be removed while layer "${r}" is using it.`)));if(this.terrain&&this.terrain.get().source===e)return this.fire(new t.ErrorEvent(new Error(`Source "${e}" cannot be removed while terrain is using it.`)));const i=this._getSourceCaches(e);for(const r of i)delete this._sourceCaches[r.id],delete this._updatedSources[r.id],r.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:r.getSource().id})),r.setEventedParent(null),r.clearTiles();delete this._otherSourceCaches[e],delete this._symbolSourceCaches[e],n.setEventedParent(null),n.onRemove&&n.onRemove(this.map),this._changed=!0}
vendor: 7,473 bytes, line 1
1setGeoJSONSourceData(t,e){this._checkLoaded(),this.getSource(t).setData(e),this._changed=!0}getSource(t){const e=this._getSourceCache(t);return e&&e.getSource()}addLayer(e,n,i={}){this._checkLoaded();const r=e.id;if(this.getLayer(r))return void this.fire(new t.ErrorEvent(new Error(`Layer with id "${r}" already exists on this map`)));let s;if("custom"===e.type){if(Re(this,t.validateCustomStyleLayer(e)))return;s=t.createStyleLayer(e)}else{if("object"==typeof e.source&&(this.addSource(r,e.source),e=t.clone$2(e),e=t.extend(e,{source:r})),this._validate(t.validateStyle.layer,`layers.${r}`,e,{arrayIndex:-1},i))return;s=t.createStyleLayer(e),this._validateLayer(s),s.setEventedParent(this,{layer:{id:r}}),this._serializedLayers[s.id]=s.serialize(),this._updateLayerCount(s,!0)}const o=n?this._order.indexOf(n):this._order.length;if(n&&-1===o)return void this.fire(new t.ErrorEvent(new Error(`Layer with id "${n}" does not exist on this map.`)));this._order.splice(o,0,r),this._layerOrderChanged=!0,this._layers[r]=s;const a=this._getLayerSourceCache(s);if(this._removedLayers[r]&&s.source&&a&&"custom"!==s.type){const t=this._removedLayers[r];delete this._removedLayers[r],t.type!==s.type?this._updatedSources[s.source]="clear":(this._updatedSources[s.source]="reload",a.pause())}this._updateLayer(s),s.onAdd&&s.onAdd(this.map),this._updateDrapeFirstLayers()}moveLayer(e,n){if(this._checkLoaded(),this._changed=!0,!this._layers[e])return void this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot be moved.`)));if(e===n)return;const i=this._order.indexOf(e);this._order.splice(i,1);const r=n?this._order.indexOf(n):this._order.length;n&&-1===r?this.fire(new t.ErrorEvent(new Error(`Layer with id "${n}" does not exist on this map.`))):(this._order.splice(r,0,e),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}removeLayer(e){this._checkLoaded();const n=this._layers[e];if(!n)return void this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot be removed.`)));n.setEventedParent(null),this._updateLayerCount(n,!1);const i=this._order.indexOf(e);this._order.splice(i,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=n,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],n.onRemove&&n.onRemove(this.map),this._updateDrapeFirstLayers()}getLayer(t){return this._layers[t]}hasLayer(t){return t in this._layers}hasLayerType(t){for(const e in this._layers)if(this._layers[e].type===t)return!0;return!1}setLayerZoomRange(e,n,i){this._checkLoaded();const r=this.getLayer(e);r?r.minzoom===n&&r.maxzoom===i||(null!=n&&(r.minzoom=n),null!=i&&(r.maxzoom=i),this._updateLayer(r)):this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot have zoom extent.`)))}setFilter(e,n,i={}){this._checkLoaded();const s=this.getLayer(e);if(s){if(!r(s.filter,n))return null==n?(s.filter=void 0,void this._updateLayer(s)):void(this._validate(t.validateStyle.filter,`layers.${s.id}.filter`,n,null,i)||(s.filter=t.clone$2(n),this._updateLayer(s)))}else this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot be filtered.`)))}getFilter(e){return t.clone$2(this.getLayer(e).filter)}setLayoutProperty(e,n,i,s={}){this._checkLoaded();const o=this.getLayer(e);o?r(o.getLayoutProperty(n),i)||(o.setLayoutProperty(n,i,s),this._updateLayer(o)):this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot be styled.`)))}getLayoutProperty(e,n){const i=this.getLayer(e);if(i)return i.getLayoutProperty(n);this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style.`)))}setPaintProperty(e,n,i,s={}){this._checkLoaded();const o=this.getLayer(e);o?r(o.getPaintProperty(n),i)||(o.setPaintProperty(n,i,s)&&this._updateLayer(o),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot be styled.`)))}getPaintProperty(t,e){return this.getLayer(t).getPaintProperty(e)}setFeatureState(e,n){this._checkLoaded();const i=e.source,r=e.sourceLayer,s=this.getSource(i);if(void 0===s)return void this.fire(new t.ErrorEvent(new Error(`The source '${i}' does not exist in the map's style.`)));const o=s.type;if("geojson"===o&&r)return void this.fire(new t.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===o&&!r)return void this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided.")));const a=this._getSourceCaches(i);for(const t of a)t.setFeatureState(r,e.id,n)}removeFeatureState(e,n){this._checkLoaded();const i=e.source,r=this.getSource(i);if(void 0===r)return void this.fire(new t.ErrorEvent(new Error(`The source '${i}' does not exist in the map's style.`)));const s=r.type,o="vector"===s?e.sourceLayer:void 0;if("vector"===s&&!o)return void this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));if(n&&"string"!=typeof e.id&&"number"!=typeof e.id)return void this.fire(new t.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));const a=this._getSourceCaches(i);for(const t of a)t.removeFeatureState(o,e.id,n)}getFeatureState(e){this._checkLoaded();const n=e.source,i=e.sourceLayer,r=this.getSource(n);if(void 0!==r){if("vector"!==r.type||i)return void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),this._getSourceCaches(n)[0].getFeatureState(i,e.id);this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error(`The source '${n}' does not exist in the map's style.`)))}getTransition(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){const e={};for(const t in this._sourceCaches){const n=this._sourceCaches[t].getSource();e[n.id]||(e[n.id]=n.serialize())}return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.stylesheet.terrain,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:e,layers:this._serializeLayers(this._order)},t=>void 0!==t)}_updateLayer(t){this._updatedLayers[t.id]=!0;const e=this._getLayerSourceCache(t);t.source&&!this._updatedSources[t.source]&&e&&"raster"!==e.getSource().type&&(this._updatedSources[t.source]="reload",e.pause()),this._changed=!0}_flattenAndSortRenderedFeatures(t){const e=t=>"fill-extrusion"===this._layers[t].type,n={},i=[];for(let s=this._order.length-1;s>=0;s--){const r=this._order[s];if(e(r)){n[r]=s;for(const e of t){const t=e[r];if(t)for(const e of t)i.push(e)}}}i.sort((t,e)=>e.intersectionZ-t.intersectionZ);const r=[];for(let s=this._order.length-1;s>=0;s--){const o=this._order[s];if(e(o))for(let t=i.length-1;t>=0;t--){const e=i[t].feature;if(n[e.layer.id]<s)break;r.push(e),i.pop()}else for(const e of t){const t=e[o];if(t)for(const e of t)r.push(e.feature)}}return r}
1queryRenderedFeatures(e,n,i){n&&n.filter&&this._validate(t.validateStyle.filter,"queryRenderedFeatures.filter",n.filter,null,n);const r={};if(n&&n.layers){if(!Array.isArray(n.layers))return this.fire(new t.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(const e of n.layers){const n=this._layers[e];if(!n)return this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot be queried for features.`))),[];r[n.source]=!0}}const s=[];n.availableImages=this._availableImages;const o=n&&n.layers?n.layers.some(t=>{const e=this.getLayer(t);return e&&e.is3D()}):this.has3DLayers(),a=E.createFromScreenPoints(e,i);for(const t in this._sourceCaches){const e=this._sourceCaches[t].getSource().id;n.layers&&!r[e]||s.push(kt(this._sourceCaches[t],this._layers,this._serializedLayers,a,n,i,o,!!this.map._showQueryGeometry))}return this.placement&&s.push(function(t,e,n,i,r,s,o){const a={},l=s.queryRenderedSymbols(i),c=[];for(const u of Object.keys(l).map(Number))c.push(o[u]);c.sort(Et);for(const u of c){const n=u.featureIndex.lookupSymbolFeatures(l[u.bucketInstanceId],e,u.bucketIndex,u.sourceLayerIndex,r.filter,r.layers,r.availableImages,t);for(const t in n){const e=a[t]=a[t]||[],i=n[t];i.sort((t,e)=>{const n=u.featureSortOrder;if(n){const i=n.indexOf(t.featureIndex);return n.indexOf(e.featureIndex)-i}return e.featureIndex-t.featureIndex});for(const t of i)e.push(t)}}for(const u in a)a[u].forEach(e=>{const i=e.feature,r=n(t[u]).getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=r});return a}(this._layers,this._serializedLayers,this._getLayerSourceCache.bind(this),a.screenGeometry,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(s)}querySourceFeatures(e,n){n&&n.filter&&this._validate(t.validateStyle.filter,"querySourceFeatures.filter",n.filter,null,n);const i=this._getSourceCaches(e);let r=[];for(const t of i)r=r.concat(Tt(t,n));return r}addSourceType(t,e,n){return He.getSourceType(t)?n(new Error(`A source type called "${t}" already exists.`)):(He.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:t,url:e.workerSourceURL},n):n(null,null))}getLight(){return this.light.getLight()}setLight(e,n={}){this._checkLoaded();const i=this.light.getLight();let s=!1;for(const t in e)if(!r(e[t],i[t])){s=!0;break}if(!s)return;const o={now:t.exported.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,n),this.light.updateTransitions(o)}getTerrain(){return this.terrain?this.terrain.get():null}setTerrain(e){if(this._checkLoaded(),!e)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);if("object"==typeof e.source){const n="terrain-dem-src";this.addSource(n,e.source),e=t.clone$2(e),e=t.extend(e,{source:n})}if(!this._validate(t.validateStyle.terrain,"terrain",e)){if(this.terrain){const n=this.terrain,i=n.get();for(const s in e)if(!r(e[s],i[s])){n.set(e),this.stylesheet.terrain=e;const i={now:t.exported.now(),transition:t.extend({duration:0},this.stylesheet.transition)};n.updateTransitions(i);break}}else this._createTerrain(e);this._updateDrapeFirstLayers(),this._markersNeedUpdate=!0}}_createFog(e){const n=this.fog=new S(e);this.stylesheet.fog=e;const i={now:t.exported.now(),transition:t.extend({duration:0},this.stylesheet.transition)};n.updateTransitions(i)}_updateMarkersOpacity(){0!==this.map._markers.length&&this.map._requestDomTask(()=>{for(const t of this.map._markers)t._evaluateOpacity()})}getFog(){return this.fog?this.fog.get():null}setFog(e){if(this._checkLoaded(),!e)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){const n=this.fog,i=n.get();for(const s in e)if(!r(e[s],i[s])){n.set(e),this.stylesheet.fog=e;const i={now:t.exported.now(),transition:t.extend({duration:0},this.stylesheet.transition)};n.updateTransitions(i);break}}else this._createFog(e);
1this._markersNeedUpdate=!0}_updateDrapeFirstLayers(){if(!this.map._optimizeForTerrain||!this.terrain)return;const t=this._order.filter(t=>this.isLayerDraped(this._layers[t])),e=this._order.filter(t=>!this.isLayerDraped(this._layers[t]));this._drapedFirstOrder=[],this._drapedFirstOrder.push(...t),this._drapedFirstOrder.push(...e)}_createTerrain(e){const n=this.terrain=new w(e);this.stylesheet.terrain=e,this.dispatcher.broadcast("enableTerrain",!0),this._force3DLayerUpdate();const i={now:t.exported.now(),transition:t.extend({duration:0},this.stylesheet.transition)};n.updateTransitions(i)}_force3DLayerUpdate(){for(const t in this._layers){const e=this._layers[t];"fill-extrusion"===e.type&&this._updateLayer(e)}}_validate(e,n,i,r,s={}){return(!s||!1!==s.validate)&&Re(this,e.call(t.validateStyle,t.extend({key:n,style:this.serialize(),value:i,styleSpec:t.spec},r)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off("pluginStateChange",this._rtlTextPluginCallback);for(const t in this._layers)this._layers[t].setEventedParent(null);for(const t in this._sourceCaches)this._sourceCaches[t].clearTiles(),this._sourceCaches[t].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}_clearSource(t){const e=this._getSourceCaches(t);for(const n of e)n.clearTiles()}_reloadSource(t){const e=this._getSourceCaches(t);for(const n of e)n.resume(),n.reload()}_updateSources(t){for(const e in this._sourceCaches)this._sourceCaches[e].update(t)}_generateCollisionBoxes(){for(const t in this._sourceCaches){const e=this._sourceCaches[t];e.resume(),e.reload()}}_updatePlacement(e,n,i,r,s=!1){let o=!1,a=!1;const l={};for(const t of this._order){const n=this._layers[t];if("symbol"!==n.type)continue;if(!l[n.source]){const t=this._getLayerSourceCache(n);if(!t)continue;l[n.source]=t.getRenderableIds(!0).map(e=>t.getTileByID(e)).sort((t,e)=>e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1))}const i=this.crossTileSymbolIndex.addLayer(n,l[n.source],e.center.lng);o=o||i}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),s=s||this._layerOrderChanged||0===i,this._layerOrderChanged&&this.fire(new t.Event("neworder")),(s||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(t.exported.now(),e.zoom))&&(this.pauseablePlacement=new Ee(e,this._order,s,n,i,r,this.placement,this.fog?this.fog.state:null),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(t.exported.now()),a=!0),o&&this.pauseablePlacement.placement.setStale()),a||o)for(const t of this._order){const e=this._layers[t];"symbol"===e.type&&this.placement.updateLayerOpacities(e,l[e.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.exported.now())}_releaseSymbolFadeTiles(){for(const t in this._sourceCaches)this._sourceCaches[t].releaseSymbolFadeTiles()}getImages(t,e,n){this.imageManager.getImages(e.icons,n),this._updateTilesForChangedImages();const i=t=>{t&&t.setDependencies(e.tileID.key,e.type,e.icons)};i(this._otherSourceCaches[e.source]),i(this._symbolSourceCaches[e.source])}getGlyphs(t,e,n){this.glyphManager.getGlyphs(e.stacks,n)}getResource(e,n,i){return t.makeRequest(n,i)}_getSourceCache(t){return this._otherSourceCaches[t]}_getLayerSourceCache(t){return"symbol"===t.type?this._symbolSourceCaches[t.source]:this._otherSourceCaches[t.source]}_getSourceCaches(t){const e=[];return this._otherSourceCaches[t]&&e.push(this._otherSourceCaches[t]),this._symbolSourceCaches[t]&&e.push(this._symbolSourceCaches[t]),e}has3DLayers(){return this._num3DLayers>0}hasSymbolLayers(){return this._numSymbolLayers>0}hasCircleLayers(){return this._numCircleLayers>0}}He.getSourceType=function(t){return Mt[t]},He.setSourceType=function(t,e){Mt[t]=e},He.registerForPluginStateChange=t.registerForPluginStateChange;var je="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}\n#endif",Ve="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;
1void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}";let $e={},qe={};$e=Xe("","\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef TERRAIN\nuniform sampler2D u_dem;uniform sampler2D u_dem_prev;uniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {float dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));\n#ifdef TERRAIN_DEM_NEAREST_FILTER\nreturn u_exaggeration*tl;\n#endif\nfloat tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}float prevElevation(vec2 apos) {float dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {float nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {return currentElevation(apos);}\n#endif\nfloat unpack_depth(vec4 rgba_depth)\n{const vec4 bit_shift=vec4(1.0/(256.0*256.0*256.0),1.0/(256.0*256.0),1.0/256.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {vec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);return vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;vec4 bounds=vec4(d,vec2(1.0)-d);h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\n#endif",!0),qe=Xe("#ifdef FOG\nuniform float u_fog_temporal_offset;float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);return mix(color,u_fog_color.rgb,opacity);}vec3 fog_apply_from_vert(vec3 color,float fog_opac) {return mix(color,u_fog_color.rgb,fog_opac);}
1vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb/=alpha;color.rgb=fog_apply(color.rgb,pos);color.rgb*=alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif","#ifdef FOG\nuniform mat4 u_fog_matrix;vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",!0);const Ge=Xe("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nhighp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered."),Ze=je;var We={background:Xe("uniform vec4 u_color;uniform float u_opacity;void main() {vec4 out_color=u_color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),backgroundPattern:Xe("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_mix);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),circle:Xe("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius
1/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\ngl_FragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float height=circle_elevation(circle_center);vec4 world_center=vec4(circle_center,height,1);vec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);vec4 occlusion_world_center=vec4(circle_center,cantilevered_height,1);vec4 occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nvec4 occlusion_world_center=world_center;vec4 occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}"),clippingMask:Xe("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:Xe("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\ngl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec3 pos=vec3(floor(a_pos*0.5)+extrude,elevation(floor(a_pos*0.5)));gl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),heatmapTexture:Xe("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:Xe("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=u_matrix*vec4(a_pos,elevation(a_pos),1.0);gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:Xe("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:Xe("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);}"),fill:Xe("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec4 out_color=color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutline:Xe("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutlinePattern:Xe("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=mix(color1,color2,u_fade);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillPattern:Xe("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillExtrusion:Xe("vary
1ing vec4 v_color;void main() {vec4 color=v_color;\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;\n#ifdef TERRAIN\nvec2 centroid_pos=a_centroid_pos;bool flat_roof=centroid_pos.x !=0.0;float ele=elevation(pos_nx.xy);float hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;float h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 pos=vec3(pos_nx.xy,h);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);\n#else\nvec3 pos=vec3(pos_nx.xy,t > 0.0 ? height : base);gl_Position=u_matrix*vec4(pos,1);\n#endif\nfloat colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.rgb+=clamp(color.rgb*directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_color*=u_opacity;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),fillExtrusionPattern:Xe("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);out_color=out_color*v_lighting;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;\n#ifdef TERRAIN\nvec2 centroid_pos=a_centroid_pos;bool flat_roof=centroid_pos.x !=0.0;float ele=elevation(pos_nx.xy);float hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;float h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 p=vec3(pos_nx.xy,h);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);\n#else\nvec3 p=vec3(pos_nx.xy,z);gl_Position=u_matrix*vec4(p,1);\n#endif\nvec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}"),hillshadePrepare:Xe("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:Xe("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;
1float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef FOG\ngl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),line:Xe("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 out_color=color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),lineGradient:Xe("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),linePattern:Xe("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),lineSDF:Xe("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;
1uniform float u_mix;uniform vec3 u_scale;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash_from\n#pragma mapbox: define lowp vec4 dash_to\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 dash_from\n#pragma mapbox: initialize mediump vec4 dash_to\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfwidth=min(dash_from.z*u_scale.y,dash_to.z*u_scale.z);
1float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/sdfwidth;alpha*=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);vec4 out_color=color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define EXTRUDE_SCALE 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform vec2 u_texsize;uniform mediump vec3 u_scale;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash_from\n#pragma mapbox: define lowp vec4 dash_to\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 dash_from\n#pragma mapbox: initialize mediump vec4 dash_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nfloat tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;float widthA=dash_from.z*fromScale;float widthB=dash_to.z*toScale;float heightA=dash_from.y;float heightB=dash_to.y;v_tex_a=vec2(a_linesofar*(tileZoomRatio/widthA)/floorwidth,(-normal.y*heightA+dash_from.x+0.5)/u_texsize.y);v_tex_b=vec2(a_linesofar*(tileZoomRatio/widthB)/floorwidth,(-normal.y*heightB+dash_to.x+0.5)/u_texsize.y);v_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),raster:Xe("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef FOG\nout_color=fog_dither(fog_apply(out_color,v_fog_pos));\n#endif\ngl_FragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),symbolIcon:Xe("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float h=elevation(a_pos);vec4 projectedPoint=u_matrix*vec4(a_pos,h,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),h,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h,1.0);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projectedPoint);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projectedPoint.w <=0.0 || occlusion_fade==0.0));v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));}"),symbolSDF:Xe("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float h=elevation(a_pos);vec4 projectedPoint=u_matrix*vec4(a_pos,h,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),h,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h,1.0);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projectedPoint);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projectedPoint.w <=0.0 || occlusion_fade==0.0));float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),symbolTextAndIcon:Xe("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;
1gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float h=elevation(a_pos);vec4 projectedPoint=u_matrix*vec4(a_pos,h,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),h,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h,1.0);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projectedPoint);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projectedPoint.w <=0.0 || occlusion_fade==0.0));float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}"),terrainRaster:Xe("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\nvoid main() {vec4 color=texture2D(u_image0,v_pos0);\n#ifdef FOG\ncolor.rgb=fog_dither(fog_apply_from_vert(color.rgb,v_fog_opacity));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\nconst float skirtOffset=24575.0;const float wireframeOffset=0.00015;void main() {v_pos0=a_texture_pos/8192.0;float skirt=float(a_pos.x >=skirtOffset);float elevation=elevation(a_texture_pos)-skirt*u_skirt_height;\n#ifdef TERRAIN_WIREFRAME\nelevation+=u_skirt_height*u_skirt_height*wireframeOffset;\n#endif\nvec2 decodedPos=a_pos-vec2(skirt*skirtOffset,0.0);gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n}"),terrainDepth:Xe("#ifdef GL_ES\nprecision highp float;\n#endif\nvec4 pack_depth(float ndc_z) {float depth=ndc_z*0.5+0.5;const vec4 bit_shift=vec4(256.0*256.0*256.0,256.0*256.0,256.0,1.0
1);const vec4 bit_mask =vec4(0.0,1.0/256.0,1.0/256.0,1.0/256.0);vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}varying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying float v_depth;void main() {float elevation=elevation(a_texture_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),skybox:Xe("\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(e
1nd-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Ve),skyboxGradient:Xe("varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform lowp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Ve),skyboxCapture:Xe
vendor: 3,838 bytes, line 1
1("\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\n#ifdef GL_ES\nprecision highp float;\n#endif\n#define BETA_R                  vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M                  vec3(21e-6,21e-6,21e-6)\n#define MIE_G                   0.76\n#define DENSITY_HEIGHT_SCALE_R  8000.0\n#define DENSITY_HEIGHT_SCALE_M  1200.0\n#define PLANET_RADIUS           6360e3\n#define ATMOSPHERE_RADIUS       6420e3\n#define SAMPLE_STEPS            10\n#define DENSITY_STEPS           4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}","attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}")
vendor: 6,336 bytes, line 1
1};function Xe(t,e,n){const i=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=/uniform (highp |mediump |lowp )?([\w]+) ([\w]+)([\s]*)([\w]*)/g,s=e.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),o=t.match(r),a=e.match(r),l=je.match(r);let c=a?a.concat(o):o;n||($e.staticUniforms&&(c=$e.staticUniforms.concat(c)),qe.staticUniforms&&(c=qe.staticUniforms.concat(c))),c&&(c=c.concat(l));const u={};return{fragmentSource:t=t.replace(i,(t,e,n,i,r)=>(u[r]=!0,"define"===e?`\n#ifndef HAS_UNIFORM_u_${r}\nvarying ${n} ${i} ${r};\n#else\nuniform ${n} ${i} u_${r};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${r}\n    ${n} ${i} ${r} = u_${r};\n#endif\n`)),vertexSource:e=e.replace(i,(t,e,n,i,r)=>{const s="float"===i?"vec2":"vec4",o=r.match(/color/)?"color":s;return u[r]?"define"===e?`\n#ifndef HAS_UNIFORM_u_${r}\nuniform lowp float u_${r}_t;\nattribute ${n} ${s} a_${r};\nvarying ${n} ${i} ${r};\n#else\nuniform ${n} ${i} u_${r};\n#endif\n`:"vec4"===o?`\n#ifndef HAS_UNIFORM_u_${r}\n    ${r} = a_${r};\n#else\n    ${n} ${i} ${r} = u_${r};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${r}\n    ${r} = unpack_mix_${o}(a_${r}, u_${r}_t);\n#else\n    ${n} ${i} ${r} = u_${r};\n#endif\n`:"define"===e?`\n#ifndef HAS_UNIFORM_u_${r}\nuniform lowp float u_${r}_t;\nattribute ${n} ${s} a_${r};\n#else\nuniform ${n} ${i} u_${r};\n#endif\n`:"vec4"===o?`\n#ifndef HAS_UNIFORM_u_${r}\n    ${n} ${i} ${r} = a_${r};\n#else\n    ${n} ${i} ${r} = u_${r};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${r}\n    ${n} ${i} ${r} = unpack_mix_${o}(a_${r}, u_${r}_t);\n#else\n    ${n} ${i} ${r} = u_${r};\n#endif\n`}),staticAttributes:s,staticUniforms:c}}class Qe{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(t,e,n,i,r,s,o,a){this.context=t;let l=this.boundPaintVertexBuffers.length!==i.length;for(let c=0;!l&&c<i.length;c++)this.boundPaintVertexBuffers[c]!==i[c]&&(l=!0);t.extVertexArrayObject&&this.vao&&this.boundProgram===e&&this.boundLayoutVertexBuffer===n&&!l&&this.boundIndexBuffer===r&&this.boundVertexOffset===s&&this.boundDynamicVertexBuffer===o&&this.boundDynamicVertexBuffer2===a?(t.bindVertexArrayOES.set(this.vao),o&&o.bind(),r&&r.dynamicDraw&&r.bind(),a&&a.bind()):this.freshBind(e,n,i,r,s,o,a)}freshBind(t,e,n,i,r,s,o){let a;const l=t.numAttributes,c=this.context,u=c.gl;if(c.extVertexArrayObject)this.vao&&this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),a=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=i,this.boundVertexOffset=r,this.boundDynamicVertexBuffer=s,this.boundDynamicVertexBuffer2=o;else{a=c.currentNumAttributes||0;for(let t=l;t<a;t++)u.disableVertexAttribArray(t)}e.enableAttributes(u,t);for(const h of n)h.enableAttributes(u,t);s&&s.enableAttributes(u,t),o&&o.enableAttributes(u,t),e.bind(),e.setVertexAttribPointers(u,t,r);for(const h of n)h.bind(),h.setVertexAttribPointers(u,t,r);s&&(s.bind(),s.setVertexAttribPointers(u,t,r)),i&&i.bind(),o&&(o.bind(),o.setVertexAttribPointers(u,t,r)),c.currentNumAttributes=l}destroy(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)}}function Ke(e,n){const i=Math.pow(2,n.canonical.z),r=n.canonical.y;return[new t.MercatorCoordinate(0,r/i).toLngLat().lat,new t.MercatorCoordinate(0,(r+1)/i).toLngLat().lat]}function Ye(e,n,i,r,s,o,a){const l=e.context,c=l.gl,u=i.fbo;if(!u)return;e.prepareDrawTile(n);const h=e.useProgram("hillshade");l.activeTexture.set(c.TEXTURE0),c.bindTexture(c.TEXTURE_2D,u.colorAttachment.get());const d=((t,e,n,i)=>{const r=n.paint.get("hillshade-shadow-color"),s=n.paint.get("hillshade-highlight-color"),o=n.paint.get("hillshade-accent-color");let a=n.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===n.paint.get("hillshade-illumination-anchor")&&(a-=t.transform.angle);const l=!t.options.moving;return{u_matrix:i||t.transform.calculateProjMatrix(e.tileID.toUnwrapped(),l),u_image:0,u_latrange:Ke(0,e.tileID),u_light:[n.paint.get("hillshade-exaggeration"),a],u_shadow:r,u_highlight:s,u_accent:o}})(e,i,r,e.terrain?n.projMatrix:null);e.prepareDrawProgram(l,h,n.toUnwrapped()),h.draw(l,c.TRIANGLES,s,o,a,t.CullFaceMode.disabled,d,r.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}function Je(e,n,i){if(!n.needsDEMTextureUpload)return;const r=e.context,s=r.gl;r.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||e.getTileTexture(i.stride);const o=i.getPixels();n.demTexture?n.demTexture.update(o,{premultiply:!1}):n.demTexture=new t.Texture(r,o,s.RGBA,{premultiply:!1}),n.needsDEMTextureUpload=!1}function tn(e,n,i,r,s,o){const a=e.context,l=a.gl;if(!n.dem)return;const c=n.dem;if(a.activeTexture.set(l.TEXTURE1),Je(e,n,c),!n.demTexture)return;n.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);const u=c.dim;a.activeTexture.set(l.TEXTURE0);let h=n.fbo;if(!h){const e=new t.Texture(a,{width:u,height:u,data:null},l.RGBA);e.bind(l.LINEAR,l.CLAMP_TO_EDGE),h=n.fbo=a.createFramebuffer(u,u,!0),h.colorAttachment.set(e.texture)}a.bindFramebuffer.set(h.framebuffer),a.viewport.set([0,0,u,u]),e.useProgram("hillshadePrepare").draw(a,l.TRIANGLES,r,s,o,t.CullFaceMode.disabled,((e,n)=>{const i=n.stride,r=t.create$1();return t.ortho(r,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(r,r,[0,-t.EXTENT,0]),{u_matrix:r,u_image:1,u_dimension:[i,i],u_zoom:e.overscaledZ,u_unpack:n.unpackVector}})(n.tileID,c),i.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),n.needsHillshadePrepare=!1}const en=(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image0:new t.Uniform1i(e,n.u_image0),u_skirt_height:new t.Uniform1f(e,n.u_skirt_height)}),nn=(t,e)=>({u_matrix:t,u_image0:0,u_skirt_height:e}),rn=new class{constructor(){this.operations={}}newMorphing(t,e,n,i,r){if(t in this.operations){const e=this.operations[t];e.to.tileID.key!==n.tileID.key&&(e.queued=n)}else this.operations[t]={startTime:i,phase:0,duration:r,from:e,to:n,queued:null}}getMorphValuesForProxy(t){if(!(t in this.operations))return null;const e=this.operations[t];return{from:e.from,to:e.to,phase:e.phase}}update(t){for(const e in this.operations){const n=this.operations[e];for(n.phase=(t-n.startTime)/n.duration;n.phase>
1=1||!this._validOp(n);)if(!this._nextOp(n,t)){delete this.operations[e];break}}}_nextOp(t,e){return!!t.queued&&(t.from=t.to,t.to=t.queued,t.queued=null,t.phase=0,t.startTime=e,!0)}_validOp(t){return t.from.hasData()&&t.to.hasData()}},sn={0:null,1:"TERRAIN_VERTEX_MORPHING",2:"TERRAIN_WIREFRAME"};function on(e,n,i,r,s){const o=e.context,a=o.gl;let l,c;const u=e.options.showTerrainWireframe?2:0,h=(t,n)=>{if(c===t)return;const i=[sn[t]];n&&i.push(sn[u]),l=e.useProgram("terrainRaster",null,i),c=t},d=e.colorModeForRenderPass(),p=new t.DepthMode(a.LEQUAL,t.DepthMode.ReadWrite,e.depthRangeFor3D);rn.update(s);const m=e.transform,g=6*Math.pow(1.5,22-m.zoom)*n.exaggeration();(u?[!1,!0]:[!1]).forEach(u=>{c=-1;const f=u?a.LINES:a.TRIANGLES,[_,v]=u?n.getWirefameBuffer():[n.gridIndexBuffer,n.gridSegments];for(const c of r){const r=i.getTile(c),b=t.StencilMode.disabled,w=n.prevTerrainTileForTile[c.key],C=n.terrainTileForTile[c.key];x=C,null!=(y=w)&&null!=x&&y.hasData()&&x.hasData()&&null!=y.demTexture&&null!=x.demTexture&&y.tileID.key!==x.tileID.key&&rn.newMorphing(c.key,w,C,s,250),o.activeTexture.set(a.TEXTURE0),r.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST);const P=rn.getMorphValuesForProxy(c.key),M=P?1:0;let O;P&&(O={morphing:{srcDemTile:P.from,dstDemTile:P.to,phase:t.easeCubicInOut(P.phase)}});const S=nn(c.projMatrix,an(c.canonical,m.renderWorldCopies)?g/10:g);h(M,u),n.setupElevationDraw(r,l,O),e.prepareDrawProgram(o,l,c.toUnwrapped()),l.draw(o,f,p,b,d,t.CullFaceMode.backCCW,S,"terrain_raster",n.gridBuffer,_,v)}var y,x})}function an(t,e){const n=1<<t.z;return!e&&(0===t.x||t.x===n-1)||0===t.y||t.y===n-1}const ln=t=>({u_matrix:t});function cn(e,n,i,r,s){if(s>0){const o=t.exported.now(),a=(o-e.timeAdded)/s,l=n?(o-n.timeAdded)/s:-1,c=i.getSource(),u=r.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),h=!n||Math.abs(n.tileID.overscaledZ-u)>Math.abs(e.tileID.overscaledZ-u),d=h&&e.refreshedUponExpiration?1:t.clamp(h?a:1-l,0,1);return e.refreshedUponExpiration&&a>=1&&(e.refreshedUponExpiration=!1),n?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}class un extends t.SourceCache{constructor(t){const e=Ot("proxy",{type:"geojson",maxzoom:t.transform.maxZoom},new k(Lt(),null),t.style);super("proxy",e,!1),e.setEventedParent(this),this.map=this.getSource().map=t,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(e,n,i){if(e.freezeTileCoverage)return;this.transform=e;const r=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce((n,i)=>{if(n[i.key]="",!this._tiles[i.key]){const n=new t.Tile(i,this._source.tileSize*i.overscaleFactor(),e.tileZoom);n.state="loaded",this._tiles[i.key]=n}return n},{});for(const t in this._tiles)t in r||(this.freeFBO(t),this._tiles[t].state="unloaded",delete this._tiles[t])}freeFBO(t){const e=this.proxyCachedFBO[t];if(void 0!==e){const n=Object.values(e);this.renderCachePool.push(...n),delete this.proxyCachedFBO[t]}}deallocRenderCache(){this.renderCache.forEach(t=>t.fb.destroy()),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class hn extends t.OverscaledTileID{constructor(t,e,n){super(t.overscaledZ,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y),this.proxyTileKey=e,this.projMatrix=n}}class dn extends t.Elevation{constructor(e,n){super(),this.painter=e,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[i,r,s]=function(e){const n=new t.StructArrayLayout4i8,i=new t.StructArrayLayout3ui6,r=131;n.reserve(17161),i.reserve(33800);const s=t.EXTENT/128,o=t.EXTENT+s/2,a=o+s;for(let c=-s;c<a;c+=s)for(let e=-s;e<a;e+=s){const i=e<0||e>o||c<0||c>o?24575:0,r=t.clamp(Math.round(e),0,t.EXTENT),s=t.clamp(Math.round(c),0,t.EXTENT);n.emplaceBack(r+i,s,r,s)}const l=(t,e)=>{const n=e*r+t;i.emplaceBack(n+1,n,n+r),i.emplaceBack(n+r,n+r+1,n+1)};for(let t=1;t<129;t++)for(let e=1;e<129;e++)l(e,t);return[0,129].forEach(t=>{for(let e=0;e<130;e++)l(e,t),l(t,e)}),[n,i,32768]}(),o=e.context;this.gridBuffer=o.createVertexBuffer(i,Ct.members),this.gridIndexBuffer=o.createIndexBuffer(r),this.gridSegments=t.SegmentVector.simpleSegment(0,0,i.length,r.length),this.gridNoSkirtSegments=t.SegmentVector.simpleSegment(0,0,i.length,s),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new un(n.map),this.orthoMatrix=t.create$1(),t.ortho(this.orthoMatrix,0,t.EXTENT,0,t.EXTENT,0,1);const a=o.gl;this._overlapStencilMode=new t.StencilMode({func:a.GEQUAL,mask:255},0,255,a.KEEP,a.KEEP,a.REPLACE),this._previousZoom=e.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=n,this._useVertexMorphing=!0,this._exaggeration=1}set style(t){t.on("data",this._onStyleDataEvent.bind(this)),t.on("neworder",this._checkRenderCacheEfficiency.bind(this)),this._style=t,this._checkRenderCacheEfficiency()}update(e,n,i){if(e&&e.terrain){this._style!==e&&(this.style=e),this.enabled=!0;const r=e.terrain.properties;this.sourceCache=e._getSourceCache(r.get("source")),this._exaggeration=r.get("exaggeration");const s=()=>{this.sourceCache.used&&t.warnOnce(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source.\nThis leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);const e=this.sourceCache.getSource().tileSize/128,i=this.proxySourceCache.getSource().tileSize;this.sourceCache.update(n,e*i,!0),this._findCoveringTileCache[this.sourceCache.id]={}};this.sourceCache.usedForTerrain||(this._findCoveringTileCache[this.sourceCache.id]={},this.sourceCache.usedForTerrain=!0,s(),this._initializing=!0),s(),n.updateElevation(!i),this._findCoveringTileCache[this.proxySourceCache.id]={},this.proxySourceCache.update(n),this._emptyDEMTextureDirty=!0}else this._disable()}_checkRenderCacheEfficiency(){const e=this.renderCacheEfficiency(this._style);
1this._style.map._optimizeForTerrain||100!==e.efficiency&&t.warnOnce(`Terrain render cache efficiency is not optimal (${e.efficiency}%) and performance\n                may be affected negatively, consider placing all background, fill and line layers before layer\n                with id '${e.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`)}_onStyleDataEvent(t){t.coord&&"source"===t.dataType?this._clearRenderCacheForTile(t.sourceCacheId,t.coord):"style"===t.dataType&&(this._invalidateRenderCache=!0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const t in this._style._sourceCaches)this._style._sourceCaches[t].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this.pool.forEach(t=>t.fb.destroy()),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),delete this._depthFBO,delete this._depthTexture)}_source(){return this.enabled?this.sourceCache:null}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const t=2*this.proxySourceCache.getSource().tileSize;return[t,t]}set useVertexMorphing(t){this._useVertexMorphing=t}updateTileBinding(e){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const n=this.proxySourceCache,i=this.painter.transform;this._initializing&&(this._initializing=0===i._centerAltitude&&-1===this.getAtPointOrZero(t.MercatorCoordinate.fromLngLat(i.center),-1),this._emptyDEMTextureDirty=!this._initializing);const r=this.painter.options;this.renderCached=(r.zooming||r.moving||r.rotating||!!this.forceRenderCached)&&!this._invalidateRenderCache,this._invalidateRenderCache=!1;const s=this.proxyCoords=n.getIds().map(t=>{const e=n.getTileByID(t).tileID;return e.projMatrix=i.calculateProjMatrix(e.toUnwrapped()),e});!function(e,n){const i=n.transform.pointCoordinate(n.transform.getCameraPoint()),r=new t.pointGeometry(i.x,i.y);e.sort((e,n)=>{if(n.overscaledZ-e.overscaledZ)return n.overscaledZ-e.overscaledZ;const i=new t.pointGeometry(e.canonical.x+(1<<e.canonical.z)*e.wrap,e.canonical.y),s=new t.pointGeometry(n.canonical.x+(1<<n.canonical.z)*n.wrap,n.canonical.y),o=r.mult(1<<e.canonical.z);return o.x-=.5,o.y-=.5,o.distSqr(i)-o.distSqr(s)})}(s,this.painter),this._previousZoom=i.zoom;const o=this.proxyToSource||{};this.proxyToSource={},s.forEach(t=>{this.proxyToSource[t.key]={}}),this.terrainTileForTile={};const a=this._style._sourceCaches;for(const t in a){const n=a[t];if(!n.used)continue;if(n!==this.sourceCache&&(this._findCoveringTileCache[n.id]={}),this._setupProxiedCoordsForOrtho(n,e[t],o),n.usedForTerrain)continue;const i=e[t];n.getSource().reparseOverscaled&&this._assignTerrainTiles(i)}this.proxiedCoords[n.id]=s.map(t=>new hn(t,t.key,this.orthoMatrix)),this._assignTerrainTiles(s),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(o),this.renderingToTexture=!1,this._updateTimestamp=t.exported.now();const l={};this._visibleDemTiles=[];for(const t of this.proxyCoords){const e=this.terrainTileForTile[t.key];if(!e)continue;const n=e.tileID.key;n in l||(this._visibleDemTiles.push(e),l[n]=n)}}_assignTerrainTiles(t){this._initializing||t.forEach(t=>{if(this.terrainTileForTile[t.key])return;const e=this._findTileCoveringTileID(t,this.sourceCache);e&&(this.terrainTileForTile[t.key]=e)})}_prepareDEMTextures(){const t=this.painter.context,e=t.gl;for(const n in this.terrainTileForTile){const i=this.terrainTileForTile[n],r=i.dem;!r||i.demTexture&&!i.needsDEMTextureUpload||(t.activeTexture.set(e.TEXTURE1),Je(this.painter,i,r))}}_prepareDemTileUniforms(t,e,n,i){if(!e||null==e.demTexture)return!1;const r=t.tileID.canonical,s=Math.pow(2,e.tileID.canonical.z-r.z),o=i||"";return n[`u_dem_tl${o}`]=[r.x*s%1,r.y*s%1],n[`u_dem_scale${o}`]=s,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}_getLoadedAreaMinimum(){let t=0;const e=this._visibleDemTiles.reduce((e,n)=>{if(!n.dem)return e;const i=n.dem.tree.minimums[0];return i>0&&t++,e+i},0);return t?e/t:0}_updateEmptyDEMTexture(){const e=this.painter.context,n=e.gl;e.activeTexture.set(n.TEXTURE2);const i=this._getLoadedAreaMinimum(),r={width:1,height:1,data:new Uint8Array(t.DEMData.pack(i,this.sourceCache.getSource().encoding))};this._emptyDEMTextureDirty=!1;let s=this._emptyDEMTexture;return s?s.update(r,{premultiply:!1}):s=this._emptyDEMTexture=new t.Texture(e,r,n.RGBA,{premultiply:!1}),s}setupElevationDraw(e,n,i){const r=this.painter.context,s=r.gl,o=(a=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:t.DEMData.getUnpackVector(a),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0});var a;o.u_dem_size=this.sourceCache.getSource().tileSize,o.u_exaggeration=this.exaggeration();let l=null,c=null,u=1;if(i&&i.morphing&&this._useVertexMorphing){const t=i.morphing.srcDemTile,n=i.morphing.dstDemTile;
1u=i.morphing.phase,t&&n&&(this._prepareDemTileUniforms(e,t,o,"_prev")&&(c=t),this._prepareDemTileUniforms(e,n,o)&&(l=n))}if(c&&l?(r.activeTexture.set(s.TEXTURE2),l.demTexture.bind(s.NEAREST,s.CLAMP_TO_EDGE,s.NEAREST),r.activeTexture.set(s.TEXTURE4),c.demTexture.bind(s.NEAREST,s.CLAMP_TO_EDGE,s.NEAREST),o.u_dem_lerp=u):(l=this.terrainTileForTile[e.tileID.key],r.activeTexture.set(s.TEXTURE2),(this._prepareDemTileUniforms(e,l,o)?l.demTexture:this.emptyDEMTexture).bind(s.NEAREST,s.CLAMP_TO_EDGE,s.NEAREST)),i&&i.useDepthForOcclusion&&(r.activeTexture.set(s.TEXTURE3),this._depthTexture.bind(s.NEAREST,s.CLAMP_TO_EDGE,s.NEAREST),o.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height]),i&&i.useMeterToDem&&l){const e=(1<<l.tileID.canonical.z)*t.mercatorZfromAltitude(1,this.painter.transform.center.lat)*this.sourceCache.getSource().tileSize;o.u_meter_to_dem=e}i&&i.labelPlaneMatrixInv&&(o.u_label_plane_matrix_inv=i.labelPlaneMatrixInv),n.setTerrainUniformValues(r,o)}renderBatch(e){if(0===this._drapedRenderBatches.length)return e+1;this.renderingToTexture=!0;const n=this.painter,i=this.painter.context,r=this.proxySourceCache,s=this.proxiedCoords[r.id],o=()=>{i.bindFramebuffer.set(null),i.viewport.set([0,0,n.width,n.height]),this.renderingToTexture=!1},a=this._drapedRenderBatches.shift();let l=[];const c=n.style.order;let u=0;for(let h=0;h<s.length;h++){const d=s[h],p=r.getTileByID(d.proxyTileKey),m=r.proxyCachedFBO[d.key]?r.proxyCachedFBO[d.key][e]:void 0;let g,f;if(g=this.currentFBO=void 0!==m?r.renderCache[m]:this.pool[u++],p.texture=g.tex,void 0===m||g.dirty){i.bindFramebuffer.set(g.fb.framebuffer),this.renderedToTile=!1,g.dirty&&(i.clear({color:t.Color.transparent}),g.dirty=!1);for(let t=a.start;t<=a.end;++t){const e=n.style._layers[c[t]];if(e.isHidden(n.transform.zoom))continue;const r=n.style._getLayerSourceCache(e),s=r?this.proxyToSource[d.key][r.id]:[d];if(!s)continue;const o=s;i.viewport.set([0,0,g.fb.width,g.fb.height]),f!==(r?r.id:null)&&(this._setupStencil(s,e,r),f=r?r.id:null),n.renderLayer(n,r,e,o)}g.dirty=this.renderedToTile,this.renderedToTile&&l.push(p.tileID),5===u&&(u=0,l.length>0&&(o(),on(n,this,r,l,this._updateTimestamp),this.renderingToTexture=!0,l=[]))}else l.push(p.tileID)}return o(),l.length>0&&on(n,this,r,l,this._updateTimestamp),a.end+1}postRender(){}renderCacheEfficiency(t){const e=t.order.length;if(0===e)return{efficiency:100};let n,i=0,r=0,s=!1;for(let o=0;o<e;++o){const e=t._layers[t.order[o]];this._style.isLayerDraped(e)?(s&&++i,++r):s||(s=!0,n=e.id)}return 0===r?{efficiency:100}:{efficiency:100*(1-i/r),firstUndrapedLayer:n}}getMinElevationBelowMSL(){let t=0;return this._visibleDemTiles.filter(t=>t.dem).forEach(e=>{t=Math.min(t,e.dem.tree.minimums[0])}),0===t?t:(t-30)*this._exaggeration}raycast(t,e,n){if(!this._visibleDemTiles)return null;const i=this._visibleDemTiles.filter(t=>t.dem).map(i=>{const r=i.tileID,s=Math.pow(2,r.overscaledZ),{x:o,y:a}=r.canonical,l=o/s,c=(o+1)/s,u=a/s,h=(a+1)/s;return{minx:l,miny:u,maxx:c,maxy:h,t:i.dem.tree.raycastRoot(l,u,c,h,t,e,n),tile:i}});i.sort((t,e)=>(null!==t.t?t.t:Number.MAX_VALUE)-(null!==e.t?e.t:Number.MAX_VALUE));for(const r of i){if(null==r.t)return null;const i=r.tile.dem.tree.raycast(r.minx,r.miny,r.maxx,r.maxy,t,e,n);if(null!=i)return i}return null}_createFBO(){const e=this.painter.context,n=e.gl,i=this.drapeBufferSize;e.activeTexture.set(n.TEXTURE0);const r=new t.Texture(e,{width:i[0],height:i[1],data:null},n.RGBA);r.bind(n.LINEAR,n.CLAMP_TO_EDGE);const s=e.createFramebuffer(i[0],i[1],!1);return s.colorAttachment.set(r.texture),s.depthAttachment=new vt(e,s.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=e.createRenderbuffer(e.gl.DEPTH_STENCIL,i[0],i[1]),this._stencilRef=0,s.depthAttachment.set(this._sharedDepthStencil),e.clear({stencil:0})):s.depthAttachment.set(this._sharedDepthStencil),e.extTextureFilterAnisotropic&&!e.extTextureFilterAnisotropicForceOff&&n.texParameterf(n.TEXTURE_2D,e.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.extTextureFilterAnisotropicMax),{fb:s,tex:r,dirty:!1}}_initFBOPool(){for(;this.pool.length<Math.min(5,this.proxyCoords.length);)this.pool.push(this._createFBO())}_shouldDisableRenderCache(){if(!this.renderCached)return!0;
vendor: 8,369 bytes, line 1
1if(this._style.light&&this._style.light.hasTransition())return!0;for(const t in this._style._sourceCaches)if(this._style._sourceCaches[t].hasTransition())return!0;return this._style.order.some(t=>{const e=this._style._layers[t],n=e.isHidden(this.painter.transform.zoom),i=e.getCrossfadeParameters(),r=!!i&&1!==i.t,s=e.hasTransition();return"custom"!==e.type&&!n&&(r||s)})}_clearRasterFadeFromRenderCache(){let t=!1;for(const e in this._style._sourceCaches)if(this._style._sourceCaches[e]._source instanceof bt){t=!0;break}if(t)for(let e=0;e<this._style.order.length;++e){const t=this._style._layers[this._style.order[e]],n=t.isHidden(this.painter.transform.zoom),i=this._style._getLayerSourceCache(t);if("raster"!==t.type||n||!i)continue;const r=t.paint.get("raster-fade-duration");for(const e of this.proxyCoords){const t=this.proxyToSource[e.key][i.id];if(t)for(const e of t){const t=cn(i.getTile(e),i.findLoadedParent(e,0),i,this.painter.transform,r);(1!==t.opacity||0!==t.mix)&&this._clearRenderCacheForTile(i.id,e)}}}}_setupDrapedRenderBatches(){const t=this._style.order,e=t.length;if(0===e)return;const n=[];let i,r=0,s=this._style._layers[t[r]];for(;!this._style.isLayerDraped(s)&&s.isHidden(this.painter.transform.zoom)&&++r<e;)s=this._style._layers[t[r]];for(;r<e;++r){const e=this._style._layers[t[r]];e.isHidden(this.painter.transform.zoom)||(this._style.isLayerDraped(e)?void 0===i&&(i=r):void 0!==i&&(n.push({start:i,end:r-1}),i=void 0))}void 0!==i&&n.push({start:i,end:r-1}),this._drapedRenderBatches=n}_setupRenderCache(t){const e=this.proxySourceCache;if(this._shouldDisableRenderCache()){if(e.renderCache.length>e.renderCachePool.length){const t=Object.values(e.proxyCachedFBO);e.proxyCachedFBO={};for(let n=0;n<t.length;++n){const i=Object.values(t[n]);e.renderCachePool.push(...i)}}return}this._clearRasterFadeFromRenderCache();const n=this.proxyCoords,i=this._tilesDirty;for(let r=n.length-1;r>=0;r--){const s=n[r];if(e.getTileByID(s.key),void 0!==e.proxyCachedFBO[s.key]){const n=t[s.key],r=this.proxyToSource[s.key];let o=0;for(const t in r){const e=r[t],s=n[t];if(!s||s.length!==e.length||e.some((e,n)=>e!==s[n]||i[t]&&i[t].hasOwnProperty(e.key))){o=-1;break}++o}for(const t in e.proxyCachedFBO[s.key])e.renderCache[e.proxyCachedFBO[s.key][t]].dirty=o<0||o!==Object.values(n).length}else for(let t=0;t<this._drapedRenderBatches.length;++t){const n=this._drapedRenderBatches[t];let i=e.renderCachePool.pop();void 0===i&&e.renderCache.length<50&&(i=e.renderCache.length,e.renderCache.push(this._createFBO())),void 0!==i&&(void 0===e.proxyCachedFBO[s.key]&&(e.proxyCachedFBO[s.key]={}),e.proxyCachedFBO[s.key][n.start]=i,e.renderCache[i].dirty=!0)}}this._tilesDirty={}}_setupStencil(t,e,n){if(!n||!this._sourceTilesOverlap[n.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const i=this.painter.context,r=i.gl;if(t.length<=1)return void(this._overlapStencilType=!1);let s;if(e.isTileClipped())s=t.length,this._overlapStencilMode.test={func:r.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(t[0].overscaledZ>t[t.length-1].overscaledZ))return void(this._overlapStencilType=!1);s=1,this._overlapStencilMode.test={func:r.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+s>255&&(i.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=s,this._overlapStencilMode.ref=this._stencilRef,e.isTileClipped()&&this._renderTileClippingMasks(t,this._overlapStencilMode.ref)}stencilModeForRTTOverlap(e){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[e.key]),this._overlapStencilMode):t.StencilMode.disabled}_renderTileClippingMasks(e,n){const i=this.painter,r=this.painter.context,s=r.gl;i._tileClippingMaskIDs={},r.setColorMode(t.ColorMode.disabled),r.setDepthMode(t.DepthMode.disabled);const o=i.useProgram("clippingMask");for(const a of e){const e=i._tileClippingMaskIDs[a.key]=--n;o.draw(r,s.TRIANGLES,t.DepthMode.disabled,new t.StencilMode({func:s.ALWAYS,mask:0},e,255,s.KEEP,s.KEEP,s.REPLACE),t.ColorMode.disabled,t.CullFaceMode.disabled,ln(a.projMatrix),"$clipping",i.tileExtentBuffer,i.quadTriangleIndexBuffer,i.tileExtentSegments)}}pointCoordinate(e){const n=this.painter.transform;if(e.x<0||e.x>n.width||e.y<0||e.y>n.height)return null;const i=[e.x,e.y,1,1];t.transformMat4(i,i,n.pixelMatrixInverse),t.scale$2(i,i,1/i[3]),i[0]/=n.worldSize,i[1]/=n.worldSize;const r=n._camera.position,s=t.mercatorZfromAltitude(1,n.center.lat),o=[r[0],r[1],r[2]/s,0],a=t.subtract([],i.slice(0,3),o);t.normalize(a,a);const l=this.raycast(o,a,this._exaggeration);return null!==l&&l?(t.scaleAndAdd(o,o,a,l),o[3]=o[2],o[2]*=s,o):null}drawDepth(){const e=this.painter,n=e.context,i=this.proxySourceCache,r=Math.ceil(e.width),s=Math.ceil(e.height);if(!this._depthFBO||this._depthFBO.width===r&&this._depthFBO.height===s||(this._depthFBO.destroy(),delete this._depthFBO,delete this._depthTexture),!this._depthFBO){const e=n.gl,i=n.createFramebuffer(r,s,!0);n.activeTexture.set(e.TEXTURE0);const o=new t.Texture(n,{width:r,height:s,data:null},e.RGBA);o.bind(e.NEAREST,e.CLAMP_TO_EDGE),i.colorAttachment.set(o.texture);const a=n.createRenderbuffer(n.gl.DEPTH_COMPONENT16,r,s);i.depthAttachment.set(a),this._depthFBO=i,this._depthTexture=o}n.bindFramebuffer.set(this._depthFBO.framebuffer),n.viewport.set([0,0,r,s]),function(e,n,i,r){const s=e.context,o=s.gl;s.clear({depth:1});const a=e.useProgram("terrainDepth"),l=new t.DepthMode(o.LESS,t.DepthMode.ReadWrite,e.depthRangeFor3D);for(const c of r){const e=i.getTile(c),r=nn(c.projMatrix,0);n.setupElevationDraw(e,a),a.draw(s,o.TRIANGLES,l,t.StencilMode.disabled,t.ColorMode.unblended,t.CullFaceMode.backCCW,r,"terrain_depth",n.gridBuffer,n.gridIndexBuffer,n.gridNoSkirtSegments)}}(e,this,i,this.proxyCoords)}_setupProxiedCoordsForOrtho(t,e,n){if(t.getSource()instanceof Pt)return this._setupProxiedCoordsForImageSource(t,e,n);this._findCoveringTileCache[t.id]=this._findCoveringTileCache[t.id]||{};const i=this.proxiedCoords[t.id]=[],r=this.proxyCoords;for(let o=0;o<r.length;o++){const e=r[o],s=this._findTileCoveringTileID(e,t);if(s){const r=this._createProxiedId(e,s,n[e.key]&&n[e.key][t.id]);i.push(r),this.proxyToSource[e.key][t.id]=[r]}}let s=!1;for(let o=0;o<e.length;o++){const r=t.getTile(e[o]);if(!r||!r.hasData())continue;const a=this._findTileCoveringTileID(r.tileID,this.proxySourceCache);if(a&&a.tileID.canonical.z!==r.tileID.canonical.z){const e=this.proxyToSource[a.tileID.key][t.id],o=this._createProxiedId(a.tileID,r,n[a.tileID.key]&&n[a.tileID.key][t.id]);e?e.splice(e.length-1,0,o):this.proxyToSource[a.tileID.key][t.id]=[o],i.push(o),s=!0}}this._sourceTilesOverlap[t.id]=s}_setupProxiedCoordsForImageSource(e,n,i){if(!e.getSource().loaded())return;const r=this.proxiedCoords[e.id]=[],s=this.proxyCoords,o=e.getSource(),a=new t.pointGeometry(o.tileID.x,o.tileID.y)._div(1<<o.tileID.z),l=o.coordinates.map(t.MercatorCoordinate.fromLngLat).reduce((t,e)=>(t.min.x=Math.min(t.min.x,e.x-a.x),t.min.y=Math.min(t.min.y,e.y-a.y),t.max.x=Math.max(t.max.x,e.x-a.x),t.max.y=Math.max(t.max.y,e.y-a.y),t),{min:new t.pointGeometry(Number.MAX_VALUE,Number.MAX_VALUE),max:new t.pointGeometry(-Number.MAX_VALUE,-Number.MAX_VALUE)}),c=(e,n)=>{const i=e.wrap+e.canonical.x/(1<<e.canonical.z),r=e.canonical.y/(1<<e.canonical.z),s=t.EXTENT/(1<<e.canonical.z),o=n.wrap+n.canonical.x/(1<<n.canonical.z),a=n.canonical.y/(1<<n.canonical.z);return i+s<o+l.min.x||i>o+l.max.x||r+s<a+l.min.y||r>a+l.max.y};for(let t=0;t<s.length;t++){const o=s[t];for(let t=0;t<n.length;t++){const s=e.getTile(n[t]);if(!s||!s.hasData())continue;if(c(o,s.tileID))continue;const a=this._createProxiedId(o,s,i[o.key]&&i[o.key][e.id]),l=this.proxyToSource[o.key][e.id];l?l.push(a):this.proxyToSource[o.key][e.id]=[a],r.push(a)}}}_createProxiedId(e,n,i){let r=this.orthoMatrix;if(i){const t=i.find(t=>t.key===n.tileID.key);if(t)return t}if(n.tileID.key!==e.key){const i=e.canonical.z-n.tileID.canonical.z;let s,o,a;r=t.create$1();const l=n.tileID.wrap-e.wrap<<e.overscaledZ;i>0?(s=t.EXTENT>>i,o=s*((n.tileID.canonical.x<<i)-e.canonical.x+l),a=s*((n.tileID.canonical.y<<i)-e.canonical.y)):(s=t.EXTENT<<-i,o=t.EXTENT*(n.tileID.canonical.x-(e.canonical.x+l<<-i)),a=t.EXTENT*(n.tileID.canonical.y-(e.canonical.y<<-i))),t.ortho(r,0,s,0,s,0,1),t.translate(r,r,[o,a,0])}return new hn(n.tileID,e.key,r)}
1_findTileCoveringTileID(e,n){let i=n.getTile(e);if(i&&i.hasData())return i;const r=this._findCoveringTileCache[n.id],s=r[e.key];if(i=s?n.getTileByID(s):null,i&&i.hasData()||null===s)return i;let o=i?i.tileID:e,a=o.overscaledZ;const l=n.getSource().minzoom,c=[];if(!s){const r=n.getSource().maxzoom;if(e.canonical.z>=r){const i=e.canonical.z-r;n.getSource().reparseOverscaled?(a=Math.max(e.canonical.z+2,n.transform.tileZoom),o=new t.OverscaledTileID(a,e.wrap,r,e.canonical.x>>i,e.canonical.y>>i)):0!==i&&(a=r,o=new t.OverscaledTileID(a,e.wrap,r,e.canonical.x>>i,e.canonical.y>>i))}o.key!==e.key&&(c.push(o.key),i=n.getTile(o))}const u=t=>{c.forEach(e=>{r[e]=t}),c.length=0};for(a-=1;a>=l&&(!i||!i.hasData());a--){i&&u(i.tileID.key);const t=o.calculateScaledKey(a);if(i=n.getTileByID(t),i&&i.hasData())break;const e=r[t];if(null===e)break;void 0===e?c.push(t):i=n.getTileByID(e)}return u(i?i.tileID.key:null),i&&i.hasData()?i:null}findDEMTileFor(t){return this.enabled?this._findTileCoveringTileID(t,this.sourceCache):null}prepareDrawTile(t){this.renderedToTile||(this.renderedToTile=!0)}_clearRenderCacheForTile(t,e){let n=this._tilesDirty[t];n||(n=this._tilesDirty[t]={}),n[e.key]=!0}getWirefameBuffer(){if(!this.wireframeSegments){const e=function(e){let n,i,r;const s=new t.StructArrayLayout2ui4,o=131;for(i=1;i<129;i++){for(n=1;n<129;n++)r=i*o+n,s.emplaceBack(r,r+1),s.emplaceBack(r,r+o),s.emplaceBack(r+1,r+o),128===i&&s.emplaceBack(r+
vendor: 4,599 bytes, line 1
1o,r+o+1);s.emplaceBack(r+1,r+1+o)}return s}();this.wireframeIndexBuffer=this.painter.context.createIndexBuffer(e),this.wireframeSegments=t.SegmentVector.simpleSegment(0,0,this.gridBuffer.length,e.length)}return[this.wireframeIndexBuffer,this.wireframeSegments]}}function pn(t){const e=[];for(let n=0;n<t.length;n++){if(null===t[n])continue;const i=t[n].split(" ");e.push(i.pop())}return e}class mn{static cacheKey(t,e,n){let i=`${t}${n?n.cacheKey:""}`;for(const r of e)i+=`/${r}`;return i}constructor(e,n,i,r,s,o){const a=e.gl;this.program=a.createProgram();const l=pn(i.staticAttributes),c=r?r.getBinderAttributes():[],u=l.concat(c),h=i.staticUniforms?pn(i.staticUniforms):[],d=r?r.getBinderUniforms():[],p=h.concat(d),m=[];for(const t of p)m.indexOf(t)<0&&m.push(t);let g=r?r.defines():[];g=g.concat(o.map(t=>`#define ${t}`));const f=g.concat(Ge.fragmentSource,Ze,qe.fragmentSource,i.fragmentSource).join("\n"),_=g.concat(Ge.vertexSource,Ze,qe.vertexSource,$e.vertexSource,i.vertexSource).join("\n"),v=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())return void(this.failedToCreate=!0);a.shaderSource(v,f),a.compileShader(v),a.attachShader(this.program,v);const y=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())return void(this.failedToCreate=!0);a.shaderSource(y,_),a.compileShader(y),a.attachShader(this.program,y),this.attributes={};const x={};this.numAttributes=u.length;for(let t=0;t<this.numAttributes;t++)u[t]&&(a.bindAttribLocation(this.program,t,u[t]),this.attributes[u[t]]=t);a.linkProgram(this.program),a.deleteShader(y),a.deleteShader(v);for(let t=0;t<m.length;t++){const e=m[t];if(e&&!x[e]){const t=a.getUniformLocation(this.program,e);t&&(x[e]=t)}}this.fixedUniforms=s(e,x),this.binderUniforms=r?r.getUniforms(e,x):[],-1!==o.indexOf("TERRAIN")&&(this.terrainUniforms=((e,n)=>({u_dem:new t.Uniform1i(e,n.u_dem),u_dem_prev:new t.Uniform1i(e,n.u_dem_prev),u_dem_unpack:new t.Uniform4f(e,n.u_dem_unpack),u_dem_tl:new t.Uniform2f(e,n.u_dem_tl),u_dem_scale:new t.Uniform1f(e,n.u_dem_scale),u_dem_tl_prev:new t.Uniform2f(e,n.u_dem_tl_prev),u_dem_scale_prev:new t.Uniform1f(e,n.u_dem_scale_prev),u_dem_size:new t.Uniform1f(e,n.u_dem_size),u_dem_lerp:new t.Uniform1f(e,n.u_dem_lerp),u_exaggeration:new t.Uniform1f(e,n.u_exaggeration),u_depth:new t.Uniform1i(e,n.u_depth),u_depth_size_inv:new t.Uniform2f(e,n.u_depth_size_inv),u_meter_to_dem:new t.Uniform1f(e,n.u_meter_to_dem),u_label_plane_matrix_inv:new t.UniformMatrix4f(e,n.u_label_plane_matrix_inv)}))(e,x)),-1!==o.indexOf("FOG")&&(this.fogUniforms=((e,n)=>({u_fog_matrix:new t.UniformMatrix4f(e,n.u_fog_matrix),u_fog_range:new t.Uniform2f(e,n.u_fog_range),u_fog_color:new t.Uniform4f(e,n.u_fog_color),u_fog_horizon_blend:new t.Uniform1f(e,n.u_fog_horizon_blend),u_fog_temporal_offset:new t.Uniform1f(e,n.u_fog_temporal_offset)}))(e,x))}setTerrainUniformValues(t,e){if(!this.terrainUniforms)return;const n=this.terrainUniforms;if(!this.failedToCreate){t.program.set(this.program);for(const t in e)n[t].set(e[t])}}setFogUniformValues(t,e){if(!this.fogUniforms)return;const n=this.fogUniforms;if(!this.failedToCreate){t.program.set(this.program);for(const t in e)n[t].location&&n[t].set(e[t])}}draw(t,e,n,i,r,s,o,a,l,c,u,h,d,p,m,g){const f=t.gl;if(this.failedToCreate)return;t.program.set(this.program),t.setDepthMode(n),t.setStencilMode(i),t.setColorMode(r),t.setCullFace(s);for(const v in this.fixedUniforms)this.fixedUniforms[v].set(o[v]);p&&p.setUniforms(t,this.binderUniforms,h,{zoom:d});const _={[f.LINES]:2,[f.TRIANGLES]:3,[f.LINE_STRIP]:1}[e];for(const v of u.get()){const n=v.vaos||(v.vaos={});(n[a]||(n[a]=new Qe)).bind(t,this,l,p?p.getPaintVertexBuffers():[],c,v.vertexOffset,m,g),f.drawElements(e,v.primitiveLength*_,f.UNSIGNED_SHORT,v.primitiveOffset*_*2)}}}function gn(t,e,n){const i=1/T(n,1,e.transform.tileZoom),r=Math.pow(2,n.tileID.overscaledZ),s=n.tileSize*Math.pow(2,e.transform.tileZoom)/r,o=s*(n.tileID.canonical.x+n.tileID.wrap*r),a=s*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[i,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[o>>16,a>>16],u_pixel_coord_lower:[65535&o,65535&a]}}const fn=(e,n,i,r)=>{const s=n.style.light,o=s.properties.get("position"),a=[o.x,o.y,o.z],l=t.create$2();"viewport"===s.properties.get("anchor")&&(t.fromRotation(l,-n.transform.angle),t.transformMat3(a,a,l));const c=s.properties.get("color");return{u_matrix:e,u_lightpos:a,u_lightintensity:s.properties.get("intensity"),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+i,u_opacity:r}},_n=(e,n,i,r,s,o,a)=>t.extend(fn(e,n,i,r),gn(o,n,a),{u_height_factor:-Math.pow(2,s.overscaledZ
1)/a.tileSize/8}),vn=t=>({u_matrix:t}),yn=(e,n,i,r)=>t.extend(vn(e),gn(i,n,r)),xn=(t,e)=>({u_matrix:t,u_world:e}),bn=(e,n,i,r,s)=>t.extend(yn(e,n,i,r),{u_world:s}),wn=(e,n,i,r)=>{const s=e.transform;let o;if("map"===r.paint.get("circle-pitch-alignment")){const t=T(i,1,s.zoom);o=[t,t]}else o=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_matrix:e.translatePosMatrix(n.projMatrix,i,r.paint.get("circle-translate"),r.paint.get("circle-translate-anchor")),u_device_pixel_ratio:t.exported.devicePixelRatio,u_extrude_scale:o}},Cn=t=>{const e=[];return"map"===t.paint.get("circle-pitch-alignment")&&e.push("PITCH_WITH_MAP"),"map"===t.paint.get("circle-pitch-scale")&&e.push("SCALE_WITH_MAP"),e},Pn=(e,n,i)=>{const r=t.EXTENT/i.tileSize;return{u_matrix:e,u_camera_to_center_distance:n.cameraToCenterDistance,u_extrude_scale:[n.pixelsToGLUnits[0]/r,n.pixelsToGLUnits[1]/r]}},Mn=(t,e,n=1)=>({u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:n}),On=(t,e,n,i)=>({u_matrix:t,u_extrude_scale:T(e,1,n),u_intensity:i}),Sn=(e,n,i,r)=>{const s=e.transform;return{u_matrix:An(e,n,i,r),u_ratio:1/T(n,1,s.zoom),u_device_pixel_ratio:t.exported.devicePixelRatio,u_units_to_pixels:[1/s.pixelsToGLUnits[0],1/s.pixelsToGLUnits[1]]}},kn=(e,n,i,r,s)=>t.extend(Sn(e,n,i,r),{u_image:0,u_image_height:s}),Tn=(e,n,i,r,s)=>{const o=e.transform,a=In(n,o);return{u_matrix:An(e,n,i,s),u_texsize:n.imageAtlasTexture.size,u_ratio:1/T(n,1,o.zoom),u_device_pixel_ratio:t.exported.devicePixelRatio,u_image:0,u_scale:[a,r.fromScale,r.toScale],u_fade:r.t,u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]]}},En=(e,n,i,r,s)=>{const o=In(n,e.transform);return t.extend(Sn(e,n,i,s),{u_texsize:n.lineAtlasTexture.size,u_scale:[o,r.fromScale,r.toScale],u_image:0,u_mix:r.t})};function In(t,e){return 1/T(t,1,e.tileZoom)}function An(t,e,n,i){return t.translatePosMatrix(i||e.tileID.projMatrix,e,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}const zn=(t,e,n,i,r)=>{return{u_matrix:t,u_tl_parent:e,u_scale_parent:n,u_buffer_scale:1,u_fade_t:i.mix,u_opacity:i.opacity*r.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:r.paint.get("raster-brightness-min"),u_brightness_high:r.paint.get("raster-brightness-max"),u_saturation_factor:(o=r.paint.get("raster-saturation"),o>0?1-1/(1.001-o):-o),u_contrast_factor:(s=r.paint.get("raster-contrast"),s>0?1/(1-s):1+s),u_spin_weights:Dn(r.paint.get("raster-hue-rotate"))};var s,o};function Dn(t){t*=Math.PI/180;const e=Math.sin(t),n=Math.cos(t);return[(2*n+1)/3,(-Math.sqrt(3)*e-n+1)/3,(Math.sqrt(3)*e-n+1)/3]}const Ln=(t,e,n,i,r,s,o,a,l,c)=>{const u=r.transform;return{u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:u.width/u.height,u_fade_change:r.options.fadeDuration?r.symbolFadeChange:1,u_matrix:s,u_label_plane_matrix:o,u_coord_matrix:a,u_is_text:+l,u_pitch_with_map:+i,u_texsize:c,u_texture:0}},Rn=(e,n,i,r,s,o,a,l,c,u,h)=>{const{cameraToCenterDistance:d,_pitch:p}=s.transform;return t.extend(Ln(e,n,i,r,s,o,a,l,c,u),{u_gamma_scale:r?d*Math.cos(s.terrain?0:p):1,u_device_pixel_ratio:t.exported.devicePixelRatio,u_is_halo:+h})},Fn=(e,n,i,r,s,o,a,l,c,u)=>t.extend(Rn(e,n,i,r,s,o,a,l,!0,c,!0),{u_texsize_icon:u,u_texture_icon:1}),Bn=(t,e,n)=>({u_matrix:t,u_opacity:e,u_color:n}),Nn=(e,n,i,r,s,o)=>t.extend(function(t,e,n,i){const r=n.imageManager.getPattern(t.from.toString()),s=n.imageManager.getPattern(t.to.toString()),{width:o,height:a}=n.imageManager.getPixelSize(),l=Math.pow(2,i.tileID.overscaledZ),c=i.tileSize*Math.pow(2,n.transform.tileZoom)/l,u=c*(i.tileID.canonical.x+i.tileID.wrap*l),h=c*i.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:r.tl,u_pattern_br_a:r.br,u_pattern_tl_b:s.tl,u_pattern_br_b:s.br,u_texsize:[o,a],u_mix:e.t,u_pattern_size_a:r.displaySize,u_pattern_size_b:s.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/T(i,1,n.transform.tileZoom),u_pixel_coord_upper:[u>>16,h>>16],u_pixel_coord_lower:[65535&u,65535&h]}}(r,o,i,s),{u_matrix:e,u_opacity:n}
1),Un={fillExtrusion:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_lightpos:new t.Uniform3f(e,n.u_lightpos),u_lightintensity:new t.Uniform1f(e,n.u_lightintensity),u_lightcolor:new t.Uniform3f(e,n.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,n.u_vertical_gradient),u_opacity:new t.Uniform1f(e,n.u_opacity)}),fillExtrusionPattern:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_lightpos:new t.Uniform3f(e,n.u_lightpos),u_lightintensity:new t.Uniform1f(e,n.u_lightintensity),u_lightcolor:new t.Uniform3f(e,n.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,n.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,n.u_height_factor),u_image:new t.Uniform1i(e,n.u_image),u_texsize:new t.Uniform2f(e,n.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade),u_opacity:new t.Uniform1f(e,n.u_opacity)}),fill:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}),fillPattern:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image:new t.Uniform1i(e,n.u_image),u_texsize:new t.Uniform2f(e,n.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade)}),fillOutline:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_world:new t.Uniform2f(e,n.u_world)}),fillOutlinePattern:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_world:new t.Uniform2f(e,n.u_world),u_image:new t.Uniform1i(e,n.u_image),u_texsize:new t.Uniform2f(e,n.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade)}),circle:(e,n)=>({u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_extrude_scale:new t.Uniform2f(e,n.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}),collisionBox:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_extrude_scale:new t.Uniform2f(e,n.u_extrude_scale)}),collisionCircle:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,n.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,n.u_viewport_size)}),debug:(e,n)=>({u_color:new t.UniformColor(e,n.u_color),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_overlay:new t.Uniform1i(e,n.u_overlay),u_overlay_scale:new t.Uniform1f(e,n.u_overlay_scale)}),clippingMask:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}),heatmap:(e,n)=>({u_extrude_scale:new t.Uniform1f(e,n.u_extrude_scale),u_intensity:new t.Uniform1f(e,n.u_intensity),u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}),heatmapTexture:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_world:new t.Uniform2f(e,n.u_world),u_image:new t.Uniform1i(e,n.u_image),u_color_ramp:new t.Uniform1i(e,n.u_color_ramp),u_opacity:new t.Uniform1f(e,n.u_opacity)}),hillshade:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image:new t.Uniform1i(e,n.u_image),u_latrange:new t.Uniform2f(e,n.u_latrange),u_light:new t.Uniform2f(e,n.u_light),u_shadow:new t.UniformColor(e,n.u_shadow),u_highlight:new t.UniformColor(e,n.u_highlight),u_accent:new t.UniformColor(e,n.u_accent)}),hillshadePrepare:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image:new t.Uniform1i(e,n.u_image),u_dimension:new t.Uniform2f(e,n.u_dimension),u_zoom:new t.Uniform1f(e,n.u_zoom),u_unpack:new t.Uniform4f(e,n.u_unpack)}),line:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels)}),lineGradient:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels),u_image:new t.Uniform1i(e,n.u_image),u_image_height:new t.Uniform1f(e,n.u_image_height)}),linePattern:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_texsize:new t.Uniform2f(e,n.u_texsize),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_image:new t.Uniform1i(e,n.u_image),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade)}),lineSDF:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_texsize:new t.Uniform2f(e,n.u_texsize),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels),u_image:new t.Uniform1i(e,n.u_image),u_scale:new t.Uniform3f(e,n.u_scale),u_mix:new t.Uniform1f(e,n.u_mix)}),raster:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_tl_parent:new t.Uniform2f(e,n.u_tl_parent),u_scale_parent:new t.Uniform1f(e,n.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,n.u_buffer_scale),u_fade_t:new t.Uniform1f(e,n.u_fade_t),u_opacity:new t.Uniform1f(e,n.u_opacity),u_image0:new t.Uniform1i(e,n.u_image0),u_image1:new t.Uniform1i(e,n.u_image1),u_brightness_low:new t.Uniform1f(e,n.u_brightness_low),u_brightness_high:new t.Uniform1f(e,n.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,n.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,n.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,n.u_spin_weights)}),symbolIcon:(e,n)=>({u_is_size_zoom_constant:new t.Uniform1i(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,n.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,n.u_size_t),u_size:new t.Uniform1f(e,n.u_size),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,n.u_pitch),u_rotate_symbol:new t.Uniform1i(e,n.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,n.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,n.u_fade_change),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,n.u_label_plane_matrix
1),u_coord_matrix:new t.UniformMatrix4f(e,n.u_coord_matrix),u_is_text:new t.Uniform1i(e,n.u_is_text),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_texsize:new t.Uniform2f(e,n.u_texsize),u_texture:new t.Uniform1i(e,n.u_texture)}),symbolSDF:(e,n)=>({u_is_size_zoom_constant:new t.Uniform1i(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,n.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,n.u_size_t),u_size:new t.Uniform1f(e,n.u_size),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,n.u_pitch),u_rotate_symbol:new t.Uniform1i(e,n.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,n.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,n.u_fade_change),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,n.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,n.u_coord_matrix),u_is_text:new t.Uniform1i(e,n.u_is_text),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_texsize:new t.Uniform2f(e,n.u_texsize),u_texture:new t.Uniform1i(e,n.u_texture),u_gamma_scale:new t.Uniform1f(e,n.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,n.u_is_halo)}),symbolTextAndIcon:(e,n)=>({u_is_size_zoom_constant:new t.Uniform1i(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,n.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,n.u_size_t),u_size:new t.Uniform1f(e,n.u_size),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,n.u_pitch),u_rotate_symbol:new t.Uniform1i(e,n.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,n.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,n.u_fade_change),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,n.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,n.u_coord_matrix),u_is_text:new t.Uniform1i(e,n.u_is_text),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_texsize:new t.Uniform2f(e,n.u_texsize),u_texsize_icon:new t.Uniform2f(e,n.u_texsize_icon),u_texture:new t.Uniform1i(e,n.u_texture),u_texture_icon:new t.Uniform1i(e,n.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,n.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,n.u_is_halo)}),background:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_opacity:new t.Uniform1f(e,n.u_opacity),u_color:new t.UniformColor(e,n.u_color)}),backgroundPattern:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_opacity:new t.Uniform1f(e,n.u_opacity),u_image:new t.Uniform1i(e,n.u_image),u_pattern_tl_a:new t.Uniform2f(e,n.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,n.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,n.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,n.u_pattern_br_b),u_texsize:new t.Uniform2f(e,n.u_texsize),u_mix:new t.Uniform1f(e,n.u_mix),u_pattern_size_a:new t.Uniform2f(e,n.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,n.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,n.u_scale_a),u_scale_b:new t.Uniform1f(e,n.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,n.u_tile_units_to_pixels)}),terrainRaster:en,terrainDepth:en,skybox:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_sun_direction:new t.Uniform3f(e,n.u_sun_direction),u_cubemap:new t.Uniform1i(e,n.u_cubemap),u_opacity:new t.Uniform1f(e,n.u_opacity),u_temporal_offset:new t.Uniform1f(e,n.u_temporal_offset)}),skyboxGradient:(e,n)=>({u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_color_ramp:new t.Uniform1i(e,n.u_color_ramp),u_center_direction:new t.Uniform3f(e,n.u_center_direction),u_radius:new t.Uniform1f(e,n.u_radius),u_opacity:new t.Uniform1f(e,n.u_opacity),u_temporal_offset:new t.Uniform1f(e,n.u_temporal_offset)}),skyboxCapture:(e,n)=>({u_matrix_3f:new t.UniformMatrix3f(e,n.u_matrix_3f),u_sun_direction:new t.Uniform3f(e,n.u_sun_direction),u_sun_intensity:new t.Uniform1f(e,n.u_sun_intensity),u_color_tint_r:new t.Uniform4f(e,n.u_color_tint_r),u_color_tint_m:new t.Uniform4f(e,n.u_color_tint_m),u_luminance:new t.Uniform1f(e,n.u_luminance)})};let Hn;function jn(e,n,i,r,s,o,a){const l=e.context,c=l.gl,u=e.useProgram("collisionBox"),h=[];let d=0,p=0;for(let x=0;x<r.length;x++){const m=r[x],g=n.getTile(m),f=g.getBucket(i);if(!f)continue;let _=m.projMatrix;0===s[0]&&0===s[1]||(_=e.translatePosMatrix(m.projMatrix,g,s,o));const v=a?f.textCollisionBox:f.iconCollisionBox,y=f.collisionCircleArray;
1if(y.length>0){const n=t.create$1(),i=_;t.mul$1(n,f.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul$1(n,n,f.placementViewportMatrix),h.push({circleArray:y,circleOffset:p,transform:i,invTransform:n}),d+=y.length/4,p=d}v&&(e.terrain&&e.terrain.setupElevationDraw(g,u),u.draw(l,c.LINES,t.DepthMode.disabled,t.StencilMode.disabled,e.colorModeForRenderPass(),t.CullFaceMode.disabled,Pn(_,e.transform,g),i.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,null,e.transform.zoom,null,v.collisionVertexBuffer,v.collisionVertexBufferExt))}if(!a||!h.length)return;const m=e.useProgram("collisionCircle"),g=new t.StructArrayLayout2f1f2i16;g.resize(4*d),g._trim();let f=0;for(const t of h)for(let e=0;e<t.circleArray.length/4;e++){const n=4*e,i=t.circleArray[n+0],r=t.circleArray[n+1],s=t.circleArray[n+2],o=t.circleArray[n+3];g.emplace(f++,i,r,s,o,0),g.emplace(f++,i,r,s,o,1),g.emplace(f++,i,r,s,o,2),g.emplace(f++,i,r,s,o,3)}(!Hn||Hn.length<2*d)&&(Hn=function(e){const n=2*e,i=new t.StructArrayLayout3ui6;i.resize(n),i._trim();for(let t=0;t<n;t++){const e=6*t;i.uint16[e+0]=4*t+0,i.uint16[e+1]=4*t+1,i.uint16[e+2]=4*t+2,i.uint16[e+3]=4*t+2,i.uint16[e+4]=4*t+3,i.uint16[e+5]=4*t+0}return i}(d));const _=l.createIndexBuffer(Hn,!0),v=l.createVertexBuffer(g,t.collisionCircleLayout.members,!0);for(const x of h){const n={u_matrix:x.transform,u_inv_matrix:x.invTransform,u_camera_to_center_distance:(y=e.transform).cameraToCenterDistance,u_viewport_size:[y.width,y.height]};m.draw(l,c.TRIANGLES,t.DepthMode.disabled,t.StencilMode.disabled,e.colorModeForRenderPass(),t.CullFaceMode.disabled,n,i.id,v,_,t.SegmentVector.simpleSegment(0,2*x.circleOffset,x.circleArray.length,x.circleArray.length/2),null,e.transform.zoom,null,null,null)}var y;v.destroy(),_.destroy()}const Vn=t.identity(new Float32Array(16));function $n(e,n,i,r,s,o){const{horizontalAlign:a,verticalAlign:l}=t.getAnchorAlignment(e),c=-(a-.5)*n,u=-(l-.5)*i,h=t.evaluateVariableOffset(e,r);return new t.pointGeometry((c/s+h[0])*o,(u/s+h[1])*o)}function qn(e,n,i,r,s,o,a,l,c,u,h,d){const p=e.text.placedSymbolArray,m=e.text.dynamicLayoutVertexArray,g=e.icon.dynamicLayoutVertexArray,f={};m.clear();for(let _=0;_<p.length;_++){const g=p.get(_),v=e.allowVerticalPlacement&&!g.placedOrientation,y=g.hidden||!g.crossTileID||v?null:r[g.crossTileID];if(y){const r=new t.pointGeometry(g.anchorX,g.anchorY),p=d(r),_=Qt(r,i?l:a,p),v=Kt(o.cameraToCenterDistance,_.signedDistanceFromCamera);let x=s.evaluateSizeForFeature(e.textSizeData,u,g)*v/t.ONE_EM;i&&(x*=e.tilePixelRatio/c);const{width:b,height:w,anchor:C,textOffset:P,textBoxScale:M}=y,O=$n(C,b,w,P,M,x),S=i?Qt(r.add(O),a,p).point:_.point.add(n?O.rotate(-o.angle):O),k=e.allowVerticalPlacement&&g.placedOrientation===t.WritingMode.vertical?Math.PI/2:0;for(let e=0;e<g.numGlyphs;e++)t.addDynamicAttributes(m,S,k);h&&g.associatedIconIndex>=0&&(f[g.associatedIconIndex]={shiftedAnchor:S,angle:k})}else oe(g.numGlyphs,m)}if(h){g.clear();const n=e.icon.placedSymbolArray;for(let e=0;e<n.length;e++){const i=n.get(e);if(i.hidden)oe(i.numGlyphs,g);else{const n=f[e];if(n)for(let e=0;e<i.numGlyphs;e++)t.addDynamicAttributes(g,n.shiftedAnchor,n.angle);else oe(i.numGlyphs,g)}}e.icon.dynamicLayoutVertexBuffer.updateData(g)}e.text.dynamicLayoutVertexBuffer.updateData(m)}function Gn(t,e,n){return n.iconsInText&&e?"symbolTextAndIcon":t?"symbolSDF":"symbolIcon"}function Zn(e,n,i,r,s,o,a,l,c,u,h,d){const p=e.context,m=p.gl,g=e.transform,f="map"===l,_="map"===c,v=f&&"point"!==i.layout.get("symbol-placement"),y=f&&!_&&!v,x=void 0!==i.layout.get("symbol-sort-key").constantOr(1);let b=!1;const w=e.depthModeForSublayer(0,t.DepthMode.ReadOnly),C=i.layout.get("text-variable-anchor"),P=[],M=e.terrain&&_?["PITCH_WITH_MAP_TERRAIN"]:null;for(const O of r){const r=n.getTile(O),l=r.getBucket(i);if(!l)continue;const c=s?l.text:l.icon;if(!c||!c.segments.get().length)continue;const h=c.programConfigurations.get(i.id),d=s||l.sdfIcons,p=s?l.textSizeData:l.iconSizeData,w=_||0!==g.pitch,S=e.useProgram(Gn(d,s,l),h,M),k=t.evaluateSizeForZoom(p,g.zoom);let E,I,A,z,D=[0,0],L=null;if(s){if(I=r.glyphAtlasTexture,A=m.LINEAR,E=r.glyphAtlasTexture.size,l.iconsInText){D=r.imageAtlasTexture.size,L=r.imageAtlasTexture;const t="composite"===p.kind||"camera"===p.kind;z=w||e.options.rotating||e.options.zooming||t?m.LINEAR:m.NEAREST}}else{const t=1!==i.layout.get("icon-size").constantOr(0)||l.iconsNeedLinear;I=r.imageAtlasTexture,A=d||e.options.rotating||e.options.zooming||t||w?m.LINEAR:m.NEAREST,E=r.imageAtlasTexture.size}const R=T(r,1,e.transform.zoom),F=Wt(O.projMatrix,_,f,e.transform,R),B=e.terrain&&_&&v?t.invert(new Float32Array(16),F):Vn,N=Xt(O.projMatrix,_,f,e.transform,R),U=C&&l.hasTextData(),H="none"!==i.layout.get("icon-text-fit")&&U&&l.hasIconData();if(v){const t=g.elevation;Jt(l,O.projMatrix,e,s,F,N,_,u,t?e=>t.getAtTileOffset(O,e.x,e.y):null)}const j=e.translatePosMatrix(O.projMatrix,r,o,a),V=v||s&&C||H?Vn:F,$=e.translatePosMatrix(N,r,o,a,!0),q=d&&0!==i.paint.get(s?"text-halo-width":"icon-halo-width").constantOr(1);let G;G=d?l.iconsInText?Fn(p.kind,k,y,_,e,j,V,$,E,D):Rn(p.kind,k,y,_,e,j,V,$,s,E,!0):Ln(p.kind,k,y,_,e,j,V,$,s,E);const Z={program:S,buffers:c,uniformValues:G,atlasTexture:I,atlasTextureIcon:L,atlasInterpolation:A,atlasInterpolationIcon:z,isSDF:d,hasHalo:q,tile:r,labelPlaneMatr
1ixInv:B};if(x&&l.canOverlap){b=!0;const e=c.segments.get();for(const n of e)P.push({segments:new t.SegmentVector([n]),sortKey:n.sortKey,state:Z})}else P.push({segments:c.segments,sortKey:0,state:Z})}b&&P.sort((t,e)=>t.sortKey-e.sortKey);for(const t of P){const n=t.state;if(e.terrain&&e.terrain.setupElevationDraw(n.tile,n.program,{useDepthForOcclusion:!0,labelPlaneMatrixInv:n.labelPlaneMatrixInv}),p.activeTexture.set(m.TEXTURE0),n.atlasTexture.bind(n.atlasInterpolation,m.CLAMP_TO_EDGE),n.atlasTextureIcon&&(p.activeTexture.set(m.TEXTURE1),n.atlasTextureIcon&&n.atlasTextureIcon.bind(n.atlasInterpolationIcon,m.CLAMP_TO_EDGE)),n.isSDF){const r=n.uniformValues;n.hasHalo&&(r.u_is_halo=1,Wn(n.buffers,t.segments,i,e,n.program,w,h,d,r)),r.u_is_halo=0}Wn(n.buffers,t.segments,i,e,n.program,w,h,d,n.uniformValues)}}function Wn(e,n,i,r,s,o,a,l,c){const u=r.context;s.draw(u,u.gl.TRIANGLES,o,a,l,t.CullFaceMode.disabled,c,i.id,e.layoutVertexBuffer,e.indexBuffer,n,i.paint,r.transform.zoom,e.programConfigurations.get(i.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function Xn(e,n,i,r,s,o,a){const l=e.context.gl,c=i.paint.get("fill-pattern"),u=c&&c.constantOr(1),h=i.getCrossfadeParameters();let d,p,m,g,f;a?(p=u&&!i.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",d=l.LINES):(p=u?"fillPattern":"fill",d=l.TRIANGLES);for(const _ of r){const r=n.getTile(_);if(u&&!r.patternsLoaded())continue;const v=r.getBucket(i);if(!v)continue;e.prepareDrawTile(_);const y=v.programConfigurations.get(i.id),x=e.useProgram(p,y);u&&(e.context.activeTexture.set(l.TEXTURE0),r.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),y.updatePaintBuffers(h));const b=c.constantOr(null);if(b&&r.imageAtlas){const t=r.imageAtlas,e=t.patternPositions[b.to.toString()],n=t.patternPositions[b.from.toString()];e&&n&&y.setConstantPatternPositions(e,n)}const w=e.translatePosMatrix(_.projMatrix,r,i.paint.get("fill-translate"),i.paint.get("fill-translate-anchor"));if(a){g=v.indexBuffer2,f=v.segments2;const t=e.terrain&&e.terrain.renderingToTexture?e.terrain.drapeBufferSize:[l.drawingBufferWidth,l.drawingBufferHeight];m="fillOutlinePattern"===p&&u?bn(w,e,h,r,t):xn(w,t)}else g=v.indexBuffer,f=v.segments,m=u?yn(w,e,h,r):vn(w);e.prepareDrawProgram(e.context,x,_.toUnwrapped()),x.draw(e.context,d,s,e.stencilModeForClipping(_),o,t.CullFaceMode.disabled,m,i.id,v.layoutVertexBuffer,g,f,i.paint,e.transform.zoom,y)}}function Qn(e,n,i,r,s,o,a){const l=e.context,c=l.gl,u=i.paint.get("fill-extrusion-pattern"),h=u.constantOr(1),d=i.getCrossfadeParameters(),p=i.paint.get("fill-extrusion-opacity");for(const m of r){const r=n.getTile(m),g=r.getBucket(i);if(!g)continue;const f=g.programConfigurations.get(i.id),_=e.useProgram(h?"fillExtrusionPattern":"fillExtrusion",f);if(e.terrain){const t=e.terrain;if(!g.enableTerrain)continue;if(t.setupElevationDraw(r,_,{useMeterToDem:!0}),Kn(l,n,m,g,i,t),!g.centroidVertexBuffer){const t=_.attributes.a_centroid_pos;void 0!==t&&c.vertexAttrib2f(t,0,0)}}h&&(e.context.activeTexture.set(c.TEXTURE0),r.imageAtlasTexture.bind(c.LINEAR,c.CLAMP_TO_EDGE),f.updatePaintBuffers(d));const v=u.constantOr(null);if(v&&r.imageAtlas){const t=r.imageAtlas,e=t.patternPositions[v.to.toString()],n=t.patternPositions[v.from.toString()];e&&n&&f.setConstantPatternPositions(e,n)}const y=e.translatePosMatrix(m.projMatrix,r,i.paint.get("fill-extrusion-translate"),i.paint.get("fill-extrusion-translate-anchor")),x=i.paint.get("fill-extrusion-vertical-gradient"),b=h?_n(y,e,x,p,m,d,r):fn(y,e,x,p);e.prepareDrawProgram(l,_,m.toUnwrapped()),_.draw(l,l.gl.TRIANGLES,s,o,a,t.CullFaceMode.backCCW,b,i.id,g.layoutVertexBuffer,g.indexBuffer,g.segments,i.paint,e.transform.zoom,f,e.terrain?g.centroidVertexBuffer:null)}}function Kn(e,n,i,r,s,o){const a=[e=>{let n=e.canonical.x-1,i=e.wrap;return n<0&&(n=(1<<e.canonical.z)-1,i--),new t.OverscaledTileID(e.overscaledZ,i,e.canonical.z,n,e.canonical.y)},e=>{let n=e.canonical.x+1,i=e.wrap;return n===1<<e.canonical.z&&(n=0,i++),new t.OverscaledTileID(e.overscaledZ,i,e.canonical.z,n,e.canonical.y)},e=>new t.OverscaledTileID(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,(0===e.canonical.y?1<<e.canonical.z:e.canonical.y)-1),e=>new t.OverscaledTileID(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y===(1<<e.canonical.z)-1?0:e.canonical.y+1)],l=t=>{const e=n.getSource().maxzoom,i=t=>{const e=n.getTileByID(t);if(e&&e.hasData())return e.getBucket(s)};let r,o,a;return(t.overscaledZ===t.canonical.z||t.overscaledZ>=e)&&(r=i(t.key)),t.overscaledZ>
1=e&&(o=i(t.calculateScaledKey(t.overscaledZ+1))),t.overscaledZ>e&&(a=i(t.calculateScaledKey(t.overscaledZ-1))),r||o||a},c=[0,0,0],u=(e,n)=>(c[0]=Math.min(e.min.y,n.min.y),c[1]=Math.max(e.max.y,n.max.y),c[2]=t.EXTENT-n.min.x>e.max.x?n.min.x-t.EXTENT:e.max.x,c),h=(e,n)=>(c[0]=Math.min(e.min.x,n.min.x),c[1]=Math.max(e.max.x,n.max.x),c[2]=t.EXTENT-n.min.y>e.max.y?n.min.y-t.EXTENT:e.max.y,c),d=[(t,e)=>u(t,e),(t,e)=>u(e,t),(t,e)=>h(t,e),(t,e)=>h(e,t)],p=new t.pointGeometry(0,0);let m,g,f;const _=(e,n,r,s,a)=>{const l=[[s?r:e,s?e:r,0],[s?r:n,s?n:r,0]],c=a<0?t.EXTENT+a:a,u=[s?c:(e+n)/2,s?(e+n)/2:c,0];return 0===r&&a<0||0!==r&&a>0?o.getForTilePoints(f,[u],!0,g):l.push(u),o.getForTilePoints(i,l,!0,m),Math.max(l[0][2],l[1][2],u[2])/o.exaggeration()};for(let v=0;v<4;v++){const e=r.borders[v];if(0===e.length&&(r.borderDone[v]=!0),r.borderDone[v])continue;const n=f=a[v](i),s=l(n);if(!s||!s.enableTerrain)continue;if(g=o.findDEMTileFor(n),!g||!g.dem)continue;if(!m){const t=o.findDEMTileFor(i);if(!t||!t.dem)return;m=t}const c=(v<2?1:5)-v,u=s.borders[c];let h=0;for(let i=0;i<e.length;i++){const n=r.featuresOnBorder[e[i]],o=n.borders[v];let a;for(;h<u.length&&(a=s.featuresOnBorder[u[h]],!(a.borders[c][1]>o[0]+3));)s.borderDone[c]||s.encodeCentroid(void 0,a,!1),h++;if(a&&h<u.length){const e=h;let i=0;for(;!(a.borders[c][0]>o[1]-3)&&(i++,++h!==u.length);)a=s.featuresOnBorder[u[h]];if(a=s.featuresOnBorder[u[e]],n.intersectsCount()>1||a.intersectsCount()>1||1!==i){1!==i&&(h=e),r.encodeCentroid(void 0,n,!1),s.borderDone[c]||s.encodeCentroid(void 0,a,!1);continue}const l=d[v](n,a),m=v%2?t.EXTENT-1:0;p.x=_(l[0],Math.min(t.EXTENT-1,l[1]),m,v<2,l[2]),p.y=0,r.encodeCentroid(p,n,!1),s.borderDone[c]||s.encodeCentroid(p,a,!1)}else r.encodeCentroid(void 0,n,!1)}r.borderDone[v]=r.needsCentroidUpdate=!0,s.borderDone[c]||(s.borderDone[c]=s.needsCentroidUpdate=!0)}(r.needsCentroidUpdate||!r.centroidVertexBuffer&&0!==r.centroidVertexArray.length)&&r.uploadCentroid(e)}const Yn=new t.Color(1,0,0,1),Jn=new t.Color(0,1,0,1),ti=new t.Color(0,0,1,1),ei=new t.Color(1,0,1,1),ni=new t.Color(0,1,1,1);function ii(t,e,n,i){si(t,0,e+n/2,t.transform.width,n,i)}function ri(t,e,n,i){si(t,e-n/2,0,n,t.transform.height,i)}function si(e,n,i,r,s,o){const a=e.context,l=a.gl;l.enable(l.SCISSOR_TEST),l.scissor(n*t.exported.devicePixelRatio,i*t.exported.devicePixelRatio,r*t.exported.devicePixelRatio,s*t.exported.devicePixelRatio),a.clear({color:o}),l.disable(l.SCISSOR_TEST)}function oi(e,n,i){const r=e.context,s=r.gl,o=i.projMatrix,a=e.useProgram("debug"),l=n.getTileByID(i.key);e.terrain&&e.terrain.setupElevationDraw(l,a);const c=t.DepthMode.disabled,u=t.StencilMode.disabled,h=e.colorModeForRenderPass(),d="$debug";r.activeTexture.set(s.TEXTURE0),e.emptyTexture.bind(s.LINEAR,s.CLAMP_TO_EDGE),a.draw(r,s.LINE_STRIP,c,u,h,t.CullFaceMode.disabled,Mn(o,t.Color.red),d,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);const p=l.latestRawTileData,m=Math.floor((p&&p.byteLength||0)/1024),g=n.getTile(i).tileSize,f=512/Math.min(g,512)*(i.overscaledZ/e.transform.zoom)*.5;let _=i.canonical.toString();i.overscaledZ!==i.canonical.z&&(_+=` => ${i.overscaledZ}`),function(t,e){t.initDebugOverlayCanvas();const n=t.debugOverlayCanvas,i=t.context.gl,r=t.debugOverlayCanvas.getContext("2d");r.clearRect(0,0,n.width,n.height),r.shadowColor="white",r.shadowBlur=2,r.lineWidth=1.5,r.strokeStyle="white",r.textBaseline="top",r.font="bold 36px Open Sans, sans-serif",r.fillText(e,5,5),r.strokeText(e,5,5),t.debugOverlayTexture.update(n),t.debugOverlayTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}(e,`${_} ${m}kb`),a.draw(r,s.TRIANGLES,c,u,t.ColorMode.alphaBlended,t.CullFaceMode.disabled,Mn(o,t.Color.transparent,f),d,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}const ai=t.createLayout([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:li}=ai;function ci(t,e,n,i){t.emplaceBack(e,n,i)}class ui{constructor(e){this.vertexArray=new t.StructArrayLayout3f12,this.indices=new t.StructArrayLayout3ui6,ci(this.vertexArray,-1,-1,1),ci(this.vertexArray,1,-1,1),ci(this.vertexArray,-1,1,1),ci(this.vertexArray,1,1,1),ci(this.vertexArray,-1,-1,-1),ci(this.vertexArray,1,-1,-1),ci(this.vertexArray,-1,1,-1),ci(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=e.createVertexBuffer(this.vertexArray,li),this.indexBuffer=e.createIndexBuffer(this.indices),this.segment=t.SegmentVector.simpleSegment(0,0,36,12)}}function hi(e,n,i,r,s,o){const a=e.gl,l=n.paint.get("sky-atmosphere-color"),c=n.paint.get("sky-atmosphere-halo-color"),u=n.paint.get("sky-atmosphere-sun-intensity"),h=((t,e,n,i,r)=>({u_matrix_3f:t,u_sun_direction:e,u_sun_intensity:n,u_color_tint_r:[i.r,i.g,i.b,i.a],u_color_tint_m:[r.r,r.g,r.b,r.a],u_luminance:5e-5}))(t.fromMat4([],r),s,u,l,c);a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_CUBE_MAP_POSITIVE_X+o,n.skyboxTexture,0),i.draw(e,a.TRIANGLES,t.DepthMode.disabled,t.StencilMode.disabled,t.ColorMode.unblended,t.CullFaceMode.frontCW,h,"skyboxCapture",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}
1const di={symbol:function(e,n,i,r,s){if("translucent"!==e.renderPass)return;const o=t.StencilMode.disabled,a=e.colorModeForRenderPass();i.layout.get("text-variable-anchor")&&function(e,n,i,r,s,o,a){const l=n.transform,c="map"===s,u="map"===o;for(const h of e){const e=r.getTile(h),s=e.getBucket(i);if(!s||!s.text||!s.text.segments.get().length)continue;const o=t.evaluateSizeForZoom(s.textSizeData,l.zoom),d=T(e,1,n.transform.zoom),p=Wt(h.projMatrix,u,c,n.transform,d),m="none"!==i.layout.get("icon-text-fit")&&s.hasIconData();if(o){const n=Math.pow(2,l.zoom-e.tileID.overscaledZ),i=l.elevation;qn(s,c,u,a,t.symbolSize,l,p,h.projMatrix,n,o,m,i?t=>i.getAtTileOffset(h,t.x,t.y):t=>0)}}}(r,e,i,n,i.layout.get("text-rotation-alignment"),i.layout.get("text-pitch-alignment"),s),0!==i.paint.get("icon-opacity").constantOr(1)&&Zn(e,n,i,r,!1,i.paint.get("icon-translate"),i.paint.get("icon-translate-anchor"),i.layout.get("icon-rotation-alignment"),i.layout.get("icon-pitch-alignment"),i.layout.get("icon-keep-upright"),o,a),0!==i.paint.get("text-opacity").constantOr(1)&&Zn(e,n,i,r,!0,i.paint.get("text-translate"),i.paint.get("text-translate-anchor"),i.layout.get("text-rotation-alignment"),i.layout.get("text-pitch-alignment"),i.layout.get("text-keep-upright"),o,a),n.map.showCollisionBoxes&&(jn(e,n,i,r,i.paint.get("text-translate"),i.paint.get("text-translate-anchor"),!0),jn(e,n,i,r,i.paint.get("icon-translate"),i.paint.get("icon-translate-anchor"),!1))},circle:function(e,n,i,r){if("translucent"!==e.renderPass)return;const s=i.paint.get("circle-opacity"),o=i.paint.get("circle-stroke-width"),a=i.paint.get("circle-stroke-opacity"),l=void 0!==i.layout.get("circle-sort-key").constantOr(1);if(0===s.constantOr(1)&&(0===o.constantOr(1)||0===a.constantOr(1)))return;const c=e.context,u=c.gl,h=e.depthModeForSublayer(0,t.DepthMode.ReadOnly),d=t.StencilMode.disabled,p=e.colorModeForRenderPass(),m=[];for(let g=0;g<r.length;g++){const s=r[g],o=n.getTile(s),a=o.getBucket(i);if(!a)continue;const c=a.programConfigurations.get(i.id),u=Cn(i),h={programConfiguration:c,program:e.useProgram("circle",c,u),layoutVertexBuffer:a.layoutVertexBuffer,indexBuffer:a.indexBuffer,uniformValues:wn(e,s,o,i),tile:o};if(l){const e=a.segments.get();for(const n of e)m.push({segments:new t.SegmentVector([n]),sortKey:n.sortKey,state:h})}else m.push({segments:a.segments,sortKey:0,state:h})}l&&m.sort((t,e)=>t.sortKey-e.sortKey);for(const g of m){const{programConfiguration:n,program:r,layoutVertexBuffer:s,indexBuffer:o,uniformValues:a,tile:l}=g.state,m=g.segments;e.terrain&&e.terrain.setupElevationDraw(l,r,{useDepthForOcclusion:!0}),e.prepareDrawProgram(c,r,l.tileID.toUnwrapped()),r.draw(c,u.TRIANGLES,h,d,p,t.CullFaceMode.disabled,a,i.id,s,o,m,i.paint,e.transform.zoom,n)}},heatmap:function(e,n,i,r){if(0!==i.paint.get("heatmap-opacity"))if("offscreen"===e.renderPass){const s=e.context,o=s.gl,a=t.StencilMode.disabled,l=new t.ColorMode([o.ONE,o.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,n){const i=t.gl;t.activeTexture.set(i.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);let r=n.heatmapFbo;if(r)i.bindTexture(i.TEXTURE_2D,r.colorAttachment.get()),t.bindFramebuffer.set(r.framebuffer);else{const s=i.createTexture();i.bindTexture(i.TEXTURE_2D,s),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),r=n.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),function(t,e,n,i){const r=t.gl;r.texImage2D(r.TEXTURE_2D,0,r.RGBA,e.width/4,e.height/4,0,r.RGBA,t.extRenderToTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:r.UNSIGNED_BYTE,null),i.colorAttachment.set(n)}(t,e,s,r)}}(s,e,i),s.clear({color:t.Color.transparent});for(let c=0;c<r.length;c++){const u=r[c];if(n.hasRenderableParent(u))continue;const h=n.getTile(u),d=h.getBucket(i);if(!d)continue;const p=d.programConfigurations.get(i.id),m=e.useProgram("heatmap",p),{zoom:g}=e.transform;e.terrain&&e.terrain.setupElevationDraw(h,m),e.prepareDrawProgram(s,m,u.toUnwrapped()),m.draw(s,o.TRIANGLES,t.DepthMode.disabled,a,l,t.CullFaceMode.disabled,On(u.projMatrix,h,g,i.paint.get("heatmap-intensity")),i.id,d.layoutVertexBuffer,d.indexBuffer,d.segments,i.paint,e.transform.zoom,p)}s.viewport.set([0,0,e.width,e.height])}else"translucent"===e.renderPass&&(e.context.setColorMode(e.colorModeForRenderPass()),function(e,n){const i=e.context,r=i.gl,s=n.heatmapFbo;if(!s)return;i.activeTexture.set(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,s.colorAttachment.get()),i.activeTexture.set(r.TEXTURE1);let o=n.colorRampTexture;
1o||(o=n.colorRampTexture=new t.Texture(i,n.colorRamp,r.RGBA)),o.bind(r.LINEAR,r.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(i,r.TRIANGLES,t.DepthMode.disabled,t.StencilMode.disabled,e.colorModeForRenderPass(),t.CullFaceMode.disabled,((e,n,i,r)=>{const s=t.create$1();t.ortho(s,0,e.width,e.height,0,0,1);const o=e.context.gl;return{u_matrix:s,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:n.paint.get("heatmap-opacity")}})(e,n),n.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,n.paint,e.transform.zoom)}(e,i))},line:function(e,n,i,r){if("translucent"!==e.renderPass)return;const s=i.paint.get("line-opacity"),o=i.paint.get("line-width");if(0===s.constantOr(1)||0===o.constantOr(1))return;const a=e.depthModeForSublayer(0,t.DepthMode.ReadOnly),l=e.colorModeForRenderPass(),c=i.paint.get("line-dasharray"),u=c.constantOr(1),h=i.layout.get("line-cap"),d=i.paint.get("line-pattern"),p=d.constantOr(1),m=i.paint.get("line-gradient"),g=i.getCrossfadeParameters(),f=p?"linePattern":u?"lineSDF":m?"lineGradient":"line",_=e.context,v=_.gl;for(const y of r){const r=n.getTile(y);if(p&&!r.patternsLoaded())continue;const s=r.getBucket(i);if(!s)continue;e.prepareDrawTile(y);const o=s.programConfigurations.get(i.id),x=e.useProgram(f,o),b=d.constantOr(null);if(b&&r.imageAtlas){const t=r.imageAtlas,e=t.patternPositions[b.to.toString()],n=t.patternPositions[b.from.toString()];e&&n&&o.setConstantPatternPositions(e,n)}const w=c.constantOr(null),C=h.constantOr(null);if(!p&&w&&C&&r.lineAtlas){const t=r.lineAtlas,e=t.getDash(w.to,C),n=t.getDash(w.from,C);e&&n&&o.setConstantPatternPositions(e,n)}const P=e.terrain?y.projMatrix:null,M=p?Tn(e,r,i,g,P):u?En(e,r,i,g,P):m?kn(e,r,i,P,s.lineClipsArray.length):Sn(e,r,i,P);if(p)_.activeTexture.set(v.TEXTURE0),r.imageAtlasTexture.bind(v.LINEAR,v.CLAMP_TO_EDGE),o.updatePaintBuffers(g);else if(u)_.activeTexture.set(v.TEXTURE0),r.lineAtlasTexture.bind(v.LINEAR,v.REPEAT),o.updatePaintBuffers(g);else if(m){const r=s.gradients[i.id];let o=r.texture;if(i.gradientVersion!==r.version){let a=256;if(i.stepInterpolant){const i=n.getSource().maxzoom,r=y.canonical.z===i?Math.ceil(1<<e.transform.maxZoom-y.canonical.z):1;a=t.clamp(t.nextPowerOfTwo(s.maxLineLength/t.EXTENT*1024*r),256,_.maxTextureSize)}r.gradient=t.renderColorRamp({expression:i.gradientExpression(),evaluationKey:"lineProgress",resolution:a,image:r.gradient||void 0,clips:s.lineClipsArray}),r.texture?r.texture.update(r.gradient):r.texture=new t.Texture(_,r.gradient,v.RGBA),r.version=i.gradientVersion,o=r.texture}_.activeTexture.set(v.TEXTURE0),o.bind(i.stepInterpolant?v.NEAREST:v.LINEAR,v.CLAMP_TO_EDGE)}e.prepareDrawProgram(_,x,y.toUnwrapped()),x.draw(_,v.TRIANGLES,a,e.stencilModeForClipping(y),l,t.CullFaceMode.disabled,M,i.id,s.layoutVertexBuffer,s.indexBuffer,s.segments,i.paint,e.transform.zoom,o,s.layoutVertexBuffer2)}},fill:function(e,n,i,r){const s=i.paint.get("fill-color"),o=i.paint.get("fill-opacity");if(0===o.constantOr(1))return;const a=e.colorModeForRenderPass(),l=i.paint.get("fill-pattern"),c=e.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===s.constantOr(t.Color.transparent).a&&1===o.constantOr(0)?"opaque":"translucent";if(e.renderPass===c){const s=e.depthModeForSublayer(1,"opaque"===e.renderPass?t.DepthMode.ReadWrite:t.DepthMode.ReadOnly);Xn(e,n,i,r,s,a,!1)}if("translucent"===e.renderPass&&i.paint.get("fill-antialias")){const s=e.depthModeForSublayer(i.getPaintProperty("fill-outline-color")?2:0,t.DepthMode.ReadOnly);Xn(e,n,i,r,s,a,!0)}},"fill-extrusion":function(e,n,i,r){const s=i.paint.get("fill-extrusion-opacity");if(0!==s&&"translucent"===e.renderPass){const o=new t.DepthMode(e.context.gl.LEQUAL,t.DepthMode.ReadWrite,e.depthRangeFor3D);if(1!==s||i.paint.get("fill-extrusion-pattern").constantOr(1))Qn(e,n,i,r,o,t.StencilMode.disabled,t.ColorMode.disabled),Qn(e,n,i,r,o,e.stencilModeFor3D(),e.colorModeForRenderPass());else{const s=e.colorModeForRenderPass();Qn(e,n,i,r,o,t.StencilMode.disabled,s)}}},hillshade:function(e,n,i,r){if("offscreen"!==e.renderPass&&"translucent"!==e.renderPass)return;const s=e.context,o=e.depthModeForSublayer(0,t.DepthMode.ReadOnly),a=e.colorModeForRenderPass(),l=e.terrain&&e.terrain.renderingToTexture,[c,u]="translucent"!==e.renderPass||l?[{},r]:e.stencilConfigForOverlap(r);for(const h of u){const r=n.getTile(h);if(r.needsHillshadePrepare&&"offscreen"===e.renderPass)tn(e,r,i,o,t.StencilMode.disabled,a);else if("translucent"===e.renderPass){const t=l&&e.terrain?e.terrain.stencilModeForRTTOverlap(h):c[h.overscaledZ];Ye(e,h,r,i,o,t,a)}}s.viewport.set([0,0,e.width,e.height])},raster:function(e,n,i,r,s,o){if("translucent"!==e.renderPass)return;if(0===i.paint.get("raster-opacity"))return;if(!r.length)return;const a=e.context,l=a.gl,c=n.getSource(),u=e.useProgram("raster"),h=e.colorModeForRenderPass(),d=e.terrain&&e.terrain.renderingToTexture,[p,m]=c instanceof Pt||d?[{},r]:e.stencilConfigForOverlap(r),g=m[m.length-1].overscaledZ,f=!e.options.moving;for(const _ of m){const r=d?t.DepthMode.disabled:e.depthModeForSublayer(_.overscaledZ-g,1===i.paint.get("raster-opacity")?t.DepthMode.ReadWrite:t.DepthMode.ReadOnly,l.LESS),s=_.toUnwrapped(),m=n.getTile(_);
vendor: 7,612 bytes, line 1
1if(d&&(!m||!m.hasData()))continue;const v=d?_.projMatrix:e.transform.calculateProjMatrix(s,f),y=e.terrain&&d?e.terrain.stencilModeForRTTOverlap(_):p[_.overscaledZ],x=o?0:i.paint.get("raster-fade-duration");m.registerFadeDuration(x);const b=n.findLoadedParent(_,0),w=cn(m,b,n,e.transform,x);let C,P;e.terrain&&e.terrain.prepareDrawTile(_);const M="nearest"===i.paint.get("raster-resampling")?l.NEAREST:l.LINEAR;a.activeTexture.set(l.TEXTURE0),m.texture.bind(M,l.CLAMP_TO_EDGE,l.LINEAR_MIPMAP_NEAREST),a.activeTexture.set(l.TEXTURE1),b?(b.texture.bind(M,l.CLAMP_TO_EDGE,l.LINEAR_MIPMAP_NEAREST),C=Math.pow(2,b.tileID.overscaledZ-m.tileID.overscaledZ),P=[m.tileID.canonical.x*C%1,m.tileID.canonical.y*C%1]):m.texture.bind(M,l.CLAMP_TO_EDGE,l.LINEAR_MIPMAP_NEAREST);const O=zn(v,P||[0,0],C||1,w,i);e.prepareDrawProgram(a,u,s),c instanceof Pt?u.draw(a,l.TRIANGLES,r,t.StencilMode.disabled,h,t.CullFaceMode.disabled,O,i.id,c.boundsBuffer,e.quadTriangleIndexBuffer,c.boundsSegments):u.draw(a,l.TRIANGLES,r,y,h,t.CullFaceMode.disabled,O,i.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}},background:function(e,n,i,r){const s=i.paint.get("background-color"),o=i.paint.get("background-opacity");if(0===o)return;const a=e.context,l=a.gl,c=e.transform,u=c.tileSize,h=i.paint.get("background-pattern");if(e.isPatternMissing(h))return;const d=!h&&1===s.a&&1===o&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(e.renderPass!==d)return;const p=t.StencilMode.disabled,m=e.depthModeForSublayer(0,"opaque"===d?t.DepthMode.ReadWrite:t.DepthMode.ReadOnly),g=e.colorModeForRenderPass(),f=e.useProgram(h?"backgroundPattern":"background"),_=r||c.coveringTiles({tileSize:u});h&&(a.activeTexture.set(l.TEXTURE0),e.imageManager.bind(e.context));const v=i.getCrossfadeParameters();for(const y of _){const n=y.toUnwrapped(),c=r?y.projMatrix:e.transform.calculateProjMatrix(n);e.prepareDrawTile(y);const d=h?Nn(c,o,e,h,{tileID:y,tileSize:u},v):Bn(c,o,s);e.prepareDrawProgram(a,f,n),f.draw(a,l.TRIANGLES,m,p,g,t.CullFaceMode.disabled,d,i.id,e.tileExtentBuffer,e.quadTriangleIndexBuffer,e.tileExtentSegments)}},sky:function(e,n,i){const r=i.paint.get("sky-opacity");if(0===r)return;const s=e.context,o=i.paint.get("sky-type"),a=new t.DepthMode(s.gl.LEQUAL,t.DepthMode.ReadOnly,[0,1]),l=e.frameCounter/1e3%1;"atmosphere"===o?"offscreen"===e.renderPass?i.needsSkyboxCapture(e)&&(function(e,n,i,r){const s=e.context,o=s.gl;let a=n.skyboxFbo;if(!a){a=n.skyboxFbo=s.createFramebuffer(32,32,!1),n.skyboxGeometry=new ui(s),n.skyboxTexture=s.gl.createTexture(),o.bindTexture(o.TEXTURE_CUBE_MAP,n.skyboxTexture),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_WRAP_S,o.CLAMP_TO_EDGE),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_WRAP_T,o.CLAMP_TO_EDGE),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_MIN_FILTER,o.LINEAR),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_MAG_FILTER,o.LINEAR);for(let t=0;t<6;++t)o.texImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,o.RGBA,32,32,0,o.RGBA,o.UNSIGNED_BYTE,null)}s.bindFramebuffer.set(a.framebuffer),s.viewport.set([0,0,32,32]);const l=n.getCenter(e,!0),c=e.useProgram("skyboxCapture"),u=new Float64Array(16);t.identity(u),t.rotateY(u,u,.5*-Math.PI),hi(s,n,c,u,l,0),t.identity(u),t.rotateY(u,u,.5*Math.PI),hi(s,n,c,u,l,1),t.identity(u),t.rotateX(u,u,.5*-Math.PI),hi(s,n,c,u,l,2),t.identity(u),t.rotateX(u,u,.5*Math.PI),hi(s,n,c,u,l,3),t.identity(u),hi(s,n,c,u,l,4),t.identity(u),t.rotateY(u,u,Math.PI),hi(s,n,c,u,l,5),s.viewport.set([0,0,e.width,e.height])}(e,i),i.markSkyboxValid(e)):"sky"===e.renderPass&&function(e,n,i,r,s){const o=e.context,a=o.gl,l=e.transform,c=e.useProgram("skybox");o.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_CUBE_MAP,n.skyboxTexture);const u=((t,e,n,i,r)=>({u_matrix:t,u_sun_direction:e,u_cubemap:0,u_opacity:i,u_temporal_offset:r}))(l.skyboxMatrix,n.getCenter(e,!1),0,r,s);e.prepareDrawProgram(o,c),c.draw(o,a.TRIANGLES,i,t.StencilMode.disabled,e.colorModeForRenderPass(),t.CullFaceMode.backCW,u,"skybox",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}(e,i,a,r,l):"gradient"===o&&"sky"===e.renderPass&&function(e,n,i,r,s){const o=e.context,a=o.gl,l=e.transform,c=e.useProgram("skyboxGradient");n.skyboxGeometry||(n.skyboxGeometry=new ui(o)),o.activeTexture.set(a.TEXTURE0);let u=n.colorRampTexture;u||(u=n.colorRampTexture=new t.Texture(o,n.colorRamp,a.RGBA)),u.bind(a.LINEAR,a.CLAMP_TO_EDGE);const h=((e,n,i,r,s)=>({u_matrix:e,u_color_ramp:0,u_center_direction:n,u_radius:t.degToRad(i),u_opacity:r,u_temporal_offset:s}))(l.skyboxMatrix,n.getCenter(e,!1),n.paint.get("sky-gradient-radius"),r,s);e.prepareDrawProgram(o,c),c.draw(o,a.TRIANGLES,i,t.StencilMode.disabled,e.colorModeForRenderPass(),t.CullFaceMode.backCW,h,"skyboxGradient",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}(e,i,a,r,l)},debug:function(t,e,n){for(let i=0;i<n.length;i++)oi(t,e,n[i])},custom:function(e,n,i){const r=e.context,s=i.implementation;if("offscreen"===e.renderPass){const t=s.prerender;t&&(e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),t.call(s,r.gl,e.transform.customLayerMatrix()),r.setDirty(),e.setBaseState())}else if("translucent"===e.renderPass){e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),r.setStencilMode(t.StencilMode.disabled);const n="3d"===s.renderingMode?new t.DepthMode(e.context.gl.LEQUAL,t.DepthMode.ReadWrite,e.depthRangeFor3D):e.depthModeForSublayer(0,t.DepthMode.ReadOnly);r.setDepthMode(n),s.render(r.gl,e.transform.customLayerMatrix()),r.setDirty(),e.setBaseState(),r.bindFramebuffer.set(null)}}};class pi{constructor(e,n){this.context=new xt(e),this.transform=n,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.setup(),this.numSublayers=t.SourceCache.maxUnderzooming+t.SourceCache.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Le,this.gpuTimers={},this.frameCounter=0}updateTerrain(t,e){const n=!!t&&!!t.terrain;if(!(n||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new dn(this,t));const i=this._terrain;this.transform.elevation=n?i:null,i.update(t,this.transform,e)}_updateFog(t){const e=t.fog;if(!e||e.getOpacity(this.transform.pitch)<1||e.properties.get("horizon-blend")<.03)return void(this.transform.fogCullDistSq=null);const[n,i]=e.getFovAdjustedRange(this.transform._fov),r=n+.78*(i-n);this.transform.fogCullDistSq=r*r}get terrain(){return this._terrain&&this._terrain.enabled?this._terrain:null}resize(e,n){if(this.width=e*t.exported.devicePixelRatio,this.height=n*t.exported.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const t of this.style.order)this.style._layers[t].resize()}setup(){const e=this.context,n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(n,t.posAttributes.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);const i=new t.StructArrayLayout2i4;i.emplaceBack(0,0),i.emplaceBack(t.EXTENT,0),i.emplaceBack(0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(i,t.posAttributes.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);const r=new t.StructArrayLayout4i8;r.emplaceBack(0,0,0,0),r.emplaceBack(t.EXTENT,0,t.EXTENT,0),r.emplaceBack(0,t.EXTENT,0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(r,Ct.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);const s=new t.StructArrayLayout2i4;
1s.emplaceBack(0,0),s.emplaceBack(1,0),s.emplaceBack(0,1),s.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(s,t.posAttributes.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);const o=new t.StructArrayLayout1ui2;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(o);const a=new t.StructArrayLayout3ui6;a.emplaceBack(0,1,2),a.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(a),this.emptyTexture=new t.Texture(e,{width:1,height:1,data:new Uint8Array([0,0,0,0])},e.gl.RGBA),this.identityMat=t.create$1();const l=this.context.gl;this.stencilClearMode=new t.StencilMode({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO),this.loadTimeStamps.push(t.window.performance.now())}clearStencil(){const e=this.context,n=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;const i=t.create$1();t.ortho(i,0,this.width,this.height,0,0,1),t.scale$1(i,i,[n.drawingBufferWidth,n.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(e,n.TRIANGLES,t.DepthMode.disabled,this.stencilClearMode,t.ColorMode.disabled,t.CullFaceMode.disabled,ln(i),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(e,n,i){if(!(n&&this.currentStencilSource!==n.id&&e.isTileClipped()&&i&&i.length))return;this.currentStencilSource=n.id;const r=this.context,s=r.gl;this.nextStencilID+i.length>256&&this.clearStencil(),r.setColorMode(t.ColorMode.disabled),r.setDepthMode(t.DepthMode.disabled);const o=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const a of i){const e=this._tileClippingMaskIDs[a.key]=this.nextStencilID++;o.draw(r,s.TRIANGLES,t.DepthMode.disabled,new t.StencilMode({func:s.ALWAYS,mask:0},e,255,s.KEEP,s.KEEP,s.REPLACE),t.ColorMode.disabled,t.CullFaceMode.disabled,ln(a.projMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const e=this.nextStencilID++,n=this.context.gl;return new t.StencilMode({func:n.NOTEQUAL,mask:255},e,255,n.KEEP,n.KEEP,n.REPLACE)}stencilModeForClipping(e){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(e);const n=this.context.gl;return new t.StencilMode({func:n.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,n.KEEP,n.KEEP,n.REPLACE)}stencilConfigForOverlap(e){const n=this.context.gl,i=e.sort((t,e)=>e.overscaledZ-t.overscaledZ),r=i[i.length-1].overscaledZ,s=i[0].overscaledZ-r+1;if(s>1){this.currentStencilSource=void 0,this.nextStencilID+s>256&&this.clearStencil();const e={};for(let i=0;i<s;i++)e[i+r]=new t.StencilMode({func:n.GEQUAL,mask:255},i+this.nextStencilID,255,n.KEEP,n.KEEP,n.REPLACE);return this.nextStencilID+=s,[e,i]}return[{[r]:t.StencilMode.disabled},i]}colorModeForRenderPass(){const e=this.context.gl;if(this._showOverdrawInspector){const n=1/8;return new t.ColorMode([e.CONSTANT_COLOR,e.ONE],new t.Color(n,n,n,0),[!0,!0,!0,!0])}return"opaque"===this.renderPass?t.ColorMode.unblended:t.ColorMode.alphaBlended}depthModeForSublayer(e,n,i){if(!this.opaquePassEnabledForLayer())return t.DepthMode.disabled;const r=1-((1+this.currentLayer)*this.numSublayers+e)*this.depthEpsilon;return new t.DepthMode(i||this.context.gl.LEQUAL,n,[r,r])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(e,n){this.style=e,this.options=n,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.exported.now()),this.imageManager.beginFrame();const i=this.style.order,r=this.style._sourceCaches;for(const t in r){const e=r[t];e.used&&e.prepare(this.context)}const s={},o={},a={};for(const t in r){const e=r[t];s[t]=e.getVisibleCoordinates(),o[t]=s[t].slice().reverse(),a[t]=e.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let t=0;t<i.length;t++)if(this.style._layers[i[t]].is3D()){this.opaquePassCutoff=t;break}if(this.terrain&&(this.terrain.updateTileBinding(a),this.opaquePassCutoff=0),!t.isMapAuthenticated(this.context.gl))return;this.renderPass="offscreen";for(const t of i){const n=this.style._layers[t],i=e._getLayerSourceCache(n);if(!n.hasOffscreenPass()||n.isHidden(this.transform.zoom))continue;const r=i?o[i.id]:void 0;("custom"===n.type||n.isSky()||r&&r.length)&&this.renderLayer(this,i,n,r)}this.depthRangeFor3D=[0,1-(e.order.length+2)*this.numSublayers*this.depthEpsilon],this.terrain&&(this.style.hasSymbolLayers()||this.style.hasCircleLayers())&&this.terrain.drawDepth(),this.context.bindFramebuffer.set(null),this.context.viewport.set([0,0,this.width,this.height]);let l=t.Color.transparent;if(this.style.fog&&(l=this.style.fog.properties.get("color")),this.context.clear({color:n.showOverdrawInspector?t.Color.black:l,depth:1}),this.clearStencil(),this._showOverdrawInspector=n.showOverdrawInspector,this.renderPass="opaque",!this.terrain)for(this.currentLayer=i.length-1;this.currentLayer>=0;this.currentLayer--){const t=this.style._layers[i[this.currentLayer]],n=e._getLayerSourceCache(t);if(t.isSky())continue;const r=n?o[n.id]:void 0;this._renderTileClippingMasks(t,n,r),this.renderLayer(this,n,t,r)}
vendor: 1,691 bytes, line 1
1if(this.renderPass="sky",this.transform.isHorizonVisible())for(this.currentLayer=0;this.currentLayer<i.length;this.currentLayer++){const t=this.style._layers[i[this.currentLayer]],n=e._getLayerSourceCache(t);t.isSky()&&this.renderLayer(this,n,t,n?o[n.id]:void 0)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<i.length;){const t=this.style._layers[i[this.currentLayer]],n=e._getLayerSourceCache(t);if(t.isSky()){++this.currentLayer;continue}if(this.terrain&&this.style.isLayerDraped(t)){if(t.isHidden(this.transform.zoom)){++this.currentLayer;continue}this.currentLayer=this.terrain.renderBatch(this.currentLayer);continue}const r=n?("symbol"===t.type?a:o)[n.id]:void 0;this._renderTileClippingMasks(t,n,n?s[n.id]:void 0),this.renderLayer(this,n,t,r),++this.currentLayer}if(this.terrain&&this.terrain.postRender(),this.options.showTileBoundaries||this.options.showQueryGeometry){let n=null;t.values(this.style._layers).forEach(t=>{const i=e._getLayerSourceCache(t);i&&!t.isHidden(this.transform.zoom)&&(!n||n.getSource().maxzoom<i.getSource().maxzoom)&&(n=i)}),n&&this.options.showTileBoundaries&&di.debug(this,n,n.getVisibleCoordinates())}this.options.showPadding&&function(t){const e=t.transform.padding;ii(t,t.transform.height-(e.top||0),3,Yn),ii(t,e.bottom||0,3,Jn),ri(t,e.left||0,3,ti),ri(t,t.transform.width-(e.right||0),3,ei);const n=t.transform.centerPoint;!function(t,e,n,i){si(t,e-1,n-10,2,20,i),si(t,e-10,n-1,20,2,i)}(t,n.x,t.transform.height-n.y,ni)}(this),this.context.setDefault(),this.frameCounter=(this.frameCounter+1)%t.MAX_SAFE_INTEGER,this.tileLoaded&&this.options.speedIndexTiming&&(this.loadTimeStamps.push(t.window.performance.now()),this.saveC
1anvasCopy())}renderLayer(t,e,n,i){n.isHidden(this.transform.zoom)||("background"===n.type||"sky"===n.type||"custom"===n.type||i&&i.length)&&(this.id=n.id,this.gpuTimingStart(n),di[n.type](t,e,n,i,this.style.placement.variableOffsets,this.options.isInitialLoad),this.gpuTimingEnd())}gpuTimingStart(t){if(!this.options.gpuTiming)return;const e=this.context.extTimerQuery;let n=this.gpuTimers[t.id];n||(n=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),n.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,n.query)}gpuTimingEnd(){if(!this.options.gpuTiming)return;const t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}collectGpuTimers(){const t=this.gpuTimers;return this.gpuTimers={},t}queryGpuTimers(t){const e={};for(const n in t){const i=t[n],r=this.context.extTimerQuery,s=r.getQueryObjectEXT(i.query,r.QUERY_RESULT_EXT)/1e6;r.deleteQueryEXT(i.query),e[n]=s}return e}translatePosMatrix(e,n,i,r,s){if(!i[0]&&!i[1])return e;const o=s?"map"===r?this.transform.angle:0:"viewport"===r?-this.transform.angle:0;if(o){const t=Math.sin(o),e=Math.cos(o);i=[i[0]*e-i[1]*t,i[0]*t+i[1]*e]}const a=[s?i[0]:T(n,i[0],this.transform.zoom),s?i[1]:T(n,i[1],this.transform.zoom),0],l=new Float32Array(16);return t.translate(l,e,a),l}saveTileTexture(t){const e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]}getTileTexture(t){const e=this._tileTextures[t];return e&&e.length>0?e.pop():null}isPatternMissing(t){if(!t)return!1;if(!t.from||!t.to)return!0;const e=this.imageManager.getPattern(t.from.toString()),n=this.imageManager.getPattern(t.to.toString());return!e||!n}currentGlobalDefines(){const t=this.terrain&&this.terrain.renderingToTexture,e=this.style&&this.style.fog,n=[];return this.terrain&&!this.terrain.renderingToTexture&&n.push("TERRAIN"),e&&!t&&0!==e.getOpacity(this.transform.pitch)&&n.push("FOG"),t&&n.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&n.push("OVERDRAW_INSPECTOR"),n}useProgram(t,e,n){this.cache=this.cache||{};const i=n||[],r=this.currentGlobalDefines().concat(i),s=mn.cacheKey(t,r,e);return this.cache[s]||(this.cache[s]=new mn(this.context,t,We[t],e,Un[t],r)),this.cache[s]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=t.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}prepareDrawTile(t){this.terrain&&this.terrain.prepareDrawTile(t)}prepareDrawProgram(t,e,n){if(this.terrain&&this.terrain.renderingToTexture)return;const i=this.style.fog;if(i){const r=i.getOpacity(this.transform.pitch);0!==r&&e.setFogUniformValues(t,((t,e,n,i)=>{const r=e.properties.get("color"),s=t.frameCounter/1e3%1,o=[r.r/r.a,r.g/r.a,r.b/r.a,i];return{u_fog_matrix:n?t.transform.calculateFogTileMatrix(n):t.identityMat,u_fog_range:e.getFovAdjustedRange(t.transform._fov),u_fog_color:o,u_fog_horizon_blend:e.properties.get("horizon-blend"),u_fog_temporal_offset:s}})(this,i,n,r))}}setTileLoadedFlag(t){this.tileLoaded=t}saveCanvasCopy(){this.frameCopies.push(this.canvasCopy()),this.tileLoaded=!1}canvasCopy(){const t=this.context.gl,e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.copyTexImage2D(t.TEXTURE_2D,0,t.RGBA,0,0,t.drawingBufferWidth,t.drawingBufferHeight,0),e}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const t=this.style&&this.style.fog;return!!t&&0!==t.getOpacity(this.transform.pitch)}}class mi{constructor(t=0,e=0,n=0,i=0){if(isNaN(t)||t<0||isNaN(e)||e<0||isNaN(n)||n<0||isNaN(i)||i<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=e,this.left=n,this.right=i}interpolate(e,n,i){return null!=n.top&&null!=e.top&&(this.top=t.number(e.top,n.top,i)),null!=n.bottom&&null!=e.bottom&&(this.bottom=t.number(e.bottom,n.bottom,i)),null!=n.left&&null!=e.left&&(this.left=t.number(e.left,n.left,i)),null!=n.right&&null!=e.right&&(this.right=t.number(e.right,n.right,i)),this}getCenter(e,n){const i=t.clamp((this.left+e-this.right)/2,0,e),r=t.clamp((this.top+n-this.bottom)/2,0,n);return new t.pointGeometry(i,r)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new mi(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function gi(t,e){return[t[4*e],t[4*e+1],t[4*e+2],t[4*e+3]]}function fi(t,e,n){t[4*e+0]=n[0],t[4*e+1]=n[1],t[4*e+2]=n[2],t[4*e+3]=n[3]}function _i(e,n){const i=gi(e,3);t.fromQuat(e,n),fi(e,3,i)}function vi(t,e){fi(t,3,[e[0],e[1],e[2],1])}function yi(e,n){const i=t.identity$1([]);return t.rotateZ$1(i,i,-n),t.rotateX$1(i,i,-e),i}function xi(e,n){const i=[e[0],e[1],0],r=[n[0],n[1],0];if(t.length(i)>=1e-15){const e=t.normalize([],i);t.scale(r,e,t.dot(r,e)),n[0]=r[0],n[1]=r[1]}const s=t.cross([],n,e);if(t.len(s)<1e-15)return null;const o=Math.atan2(-s[1],s[0]);return yi(Math.atan2(Math.sqrt(e[0]*e[0]+e[1]*e[1]),-e[2]),o)}class bi{constructor(t,e){this.position=t,this.orientation=e}get position(){return this._position}set position(e){this._position=this._renderWorldCopies?function(e){if(!e)return;const n=Array.isArray(e)?new t.MercatorCoordinate(e[0],e[1],e[2]):e;return n.x=t.wrap(n.x,0,1),n}(e):e}lookAtPoint(e,n){if(this.orientation=null,!this.position)return;const i=this._elevation?this._elevation.getAtPointOrZero(t.MercatorCoordinate.fromLngLat(e)):0,r=this.position,s=t.MercatorCoordinate.fromLngLat(e,i),o=[s.x-r.x,s.y-r.y,s.z-r.z];n||(n=[0,0,1]),n[2]=Math.abs(n[2]),this.orientation=xi(o,n)}setPitchBearing(e,n){this.orientation=yi(t.degToRad(e),t.degToRad(-n))}}
1class wi{constructor(e,n){this._transform=t.identity([]),this._orientation=t.identity$1([]),n&&(this._orientation=n,_i(this._transform,this._orientation)),e&&vi(this._transform,e)}get mercatorPosition(){const e=this.position;return new t.MercatorCoordinate(e[0],e[1],e[2])}get position(){const t=gi(this._transform,3);return[t[0],t[1],t[2]]}set position(t){vi(this._transform,t)}get orientation(){return this._orientation}set orientation(t){this._orientation=t,_i(this._transform,this._orientation)}getPitchBearing(){const t=this.forward(),e=this.right();return{bearing:Math.atan2(-e[1],e[0]),pitch:Math.atan2(Math.sqrt(t[0]*t[0]+t[1]*t[1]),-t[2])}}setPitchBearing(t,e){this._orientation=yi(t,e),_i(this._transform,this._orientation)}forward(){const t=gi(this._transform,2);return[-t[0],-t[1],-t[2]]}up(){const t=gi(this._transform,1);return[-t[0],-t[1],-t[2]]}right(){const t=gi(this._transform,0);return[t[0],t[1],t[2]]}getCameraToWorld(e,n){const i=new Float64Array(16);return t.invert(i,this.getWorldToCamera(e,n)),i}getWorldToCameraPosition(e,n,i){const r=this.position;t.scale(r,r,-e);const s=new Float64Array(16);return t.fromScaling(s,[i,i,i]),t.translate(s,s,r),s[10]*=n,s}getWorldToCamera(e,n){const i=new Float64Array(16),r=new Float64Array(4),s=this.position;return t.conjugate(r,this._orientation),t.scale(s,s,-e),t.fromQuat(i,r),t.translate(i,i,s),i[1]*=-1,i[5]*=-1,i[9]*=-1,i[13]*=-1,i[8]*=n,i[9]*=n,i[10]*=n,i[11]*=n,i}getCameraToClipPerspective(e,n,i,r){const s=new Float64Array(16);return t.perspective(s,e,n,i,r),s}getDistanceToElevation(e){const n=0===e?0:t.mercatorZfromAltitude(e,this.position[1]),i=this.forward();return(n-this.position[2])/i[2]}clone(){return new wi([...this.position],[...this.orientation])}}class Ci{constructor(e,n,i,r,s){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===s||s,this._minZoom=e||0,this._maxZoom=n||22,this._minPitch=null==i?0:i,this._maxPitch=null==r?60:r,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new mi,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._camera=new wi,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._horizonShift=.1}clone(){const t=new Ci(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t._elevation=this._elevation,t._centerAltitude=this._centerAltitude,t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t.cameraElevationReference=this.cameraElevationReference,t._center=this._center,t._setZoom(this.zoom),t._cameraZoom=this._cameraZoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._averageElevation=this._averageElevation,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._camera=this._camera.clone(),t._calcMatrices(),t.freezeTileCoverage=this.freezeTileCoverage,t}get elevation(){return this._elevation}set elevation(t){this._elevation!==t&&(this._elevation=t,t?this._updateCenterElevation()&&this._updateCameraOnTerrain():(this._cameraZoom=null,this._centerAltitude=0),this._calcMatrices())}updateElevation(t){this._terrainEnabled()&&null==this._cameraZoom&&this._updateCenterElevation()&&this._updateCameraOnTerrain(),t&&this._constrainCameraAltitude(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))}get maxZoom(){return this._maxZoom}set maxZoom(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))}get minPitch(){return this._minPitch}set minPitch(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))}get maxPitch(){return this._maxPitch}set maxPitch(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t}get worldSize(){return this.tileSize*this.scale}get cameraWorldSize(){const t=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(t))}get pixelsPerMeter(){return t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize}get cameraPixelsPerMeter(){return t.mercatorZfromAltitude(1,this.center.lat)*this.cameraWorldSize}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new t.pointGeometry(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(e){const n=-t.wrap(e,-180,180)*Math.PI/180;var i;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=(i=new t.ARRAY_TYPE(4),t.ARRAY_TYPE!=Float32Array&&(i[1]=0,i[2]=0),i[0]=1,i[3]=1,i),function(t,e,n){var i=e[0],r=e[1],s=e[2],o=e[3],a=Math.sin(n),l=Math.cos(n);t[0]=i*l+s*a,t[1]=r*l+o*a,t[2]=i*-a+s*l,t[3]=r*-a+o*l}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(e){const n=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(t){this._averageElevation=t,this._calcFogMatrices()}get zoom(){return this._zoom}set zoom(t){const e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._setZoom(e),this._terrainEnabled()&&this._updateCameraOnTerrain(),this._constrain(),this._calcMatrices())}_setZoom(t){this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom}_updateCenterElevation(){if(!this._elevation)return!1;const e=this._elevation.getAtPointOrZero(t.MercatorCoordinate.fromLngLat(this.center),-1);return-1===e?(this._cameraZoom=null,!1):(this._centerAltitude=e,!0)}_updateCameraOnTerrain(){const e=this.cameraToCenterDistance/this.worldSize,n=t.mercatorZfromAltitude(this._centerAltitude,this.center.lat);this._cameraZoom=this._zoomFromMercatorZ(n+e)}sampleAverageElevation(){if(!this._elevation)return 0;const e=this._elevation,n=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],i=this.horizonLineFromTop();let r=0,s=0;for(let o=0;o<n.length;o++){const a=new t.pointGeometry(n[o][0]*this.width,i+n[o][1]*(this.height-i)),l=e.pointCoordinate(a);if(!l)continue;const c=1/Math.hypot(l[0]-this._camera.position[0],l[1]-this._camera.position[1]);r+=l[3]*c,s+=c}return 0===s?NaN:r/s}get center(){return this._center}set center(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._terrainEnabled()&&("ground"===this.cameraElevationReference?this._updateCenterElevation()?this._updateCameraOnTerrain():this._cameraZoom=null:this._updateZoomFromElevation()),this._constrain(),this._calcMatrices())}_updateZoomFromElevation(){if(null==this._cameraZoom||!this._elevation)return;const e=this._cameraZoom,n=this._elevation.getAtPointOrZero(t.MercatorCoordinate.fromLngLat(this.center)),i=t.mercatorZfromAltitude(n,this.center.lat),r=this._mercatorZfromZoom(e),s=this._mercatorZfromZoom(this._maxZoom),o=Math.max(r-i,s);this._setZoom(this._zoomFromMercatorZ(o))}get padding(){return this._edgeInsets.toJSON()}set padding(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())}computeZoomRelativeTo(e){const n=this.rayIntersectionCoordinate(this.pointRayIntersection(this.centerPoint,e.toAltitude()));let i;i=e.z<this._camera.position[2]?[n.x,n.y,n.z]:[e.x,e.y,e.z];const r=t.length(t.sub([],this._camera.position,i));return t.clamp(this._zoomFromMercatorZ(r),this._minZoom,this._maxZoom)}setFreeCameraOptions(e){if(!this.height)return;if(!e.position&&!e.orientation)return;this._updateCameraState();let n=!1;if(e.orientation&&!t.exactEquals(e.orientation,this._camera.orientation)&&(n=this._setCameraOrientation(e.orientation)),e.position){const i=[e.position.x,e.position.y,e.position.z];t.exactEquals$1(i,this._camera.position)||(this._setCameraPosition(i),n=!0)}n&&(this._updateStateFromCamera(),this.recenterOnTerrain())}getFreeCameraOptions(){this._updateCameraState();const e=this._camera.position,n=new bi;return n.position=new t.MercatorCoordinate(e[0],e[1],e[2]),n.orientation=this._camera.orientation,n._elevation=this.elevation,n._renderWorldCopies=this._renderWorldCopies,n}_setCameraOrientation(e){if(!t.length$1(e))return!1;t.normalize$1(e,e);const n=t.transformQuat([],[0,0,-1],e),i=t.transformQuat([],[0,-1,0],e);if(i[2]<0)return!1;const r=xi(n,i);return!!r&&(this._camera.orientation=r,!0)}_setCameraPosition(e){const n=this.zoomScale(this.minZoom)*this.tileSize,i=this.zoomScale(this.maxZoom)*this.tileSize,r=this.cameraToCenterDistance;e[2]=t.clamp(e[2],r/i,r/n),this._camera.position=e}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}get fovAboveCenter(){return this._fov*(.5+this.centerOffset.y/this.height)}isPaddingEqual(t){return this._edgeInsets.equals(t)}interpolatePadding(t,e,n){this._unmodified=!1,this._edgeInsets.interpolate(t,e,n),this._constrain(),this._calcMatrices()}coveringZoomLevel(t){const e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)}getVisibleUnwrappedCoordinates(e){const n=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies){const i=this.pointCoordinate(new t.pointGeometry(0,0)),r=this.pointCoordinate(new t.pointGeometry(this.width,0)),s=this.pointCoordinate(new t.pointGeometry(this.width,this.height)),o=this.pointCoordinate(new t.pointGeometry(0,this.height)),a=Math.floor(Math.min(i.x,r.x,s.x,o.x)),l=Math.floor(Math.max(i.x,r.x,s.x,o.x)),c=1;for(let u=a-c;u<=l+c;u++)0!==u&&n.push(new t.UnwrappedTileID(u,e))}return n}coveringTiles(e){let n=this.coveringZoomLevel(e);const i=n,r=this.elevation&&!e.isTerrainDEM;if(void 0!==e.minzoom&&n<e.minzoom)return[];void 0!==e.maxzoom&&n>e.maxzoom&&(n=e.maxzoom);const s=t.MercatorCoordinate.fromLngLat(this.center),o=1<<n,a=[o*s.x,o*s.y,0],l=p.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n),c=this.pointCoordinate(this.getCameraPoint()),u=o*t.mercatorZfromAltitude(1,this.center.lat),h=this._camera.position[2]/t.mercatorZfromAltitude(1,this.center.lat),d=[o*c.x,o*c.y,h],g=this.cameraToCenterDistance/e.tileSize*(e.roundZoom?1:.502),f=this.pitch<=60&&this._edgeInsets.top<=this._edgeInsets.bottom&&!this._elevation?n:0,_=e.isTerrainDEM&&this._elevation?1e4*this._elevation.exaggeration():this._centerAltitude,v=e.isTerrainDEM?-_:this._elevation?this._elevation.getMinElevationBelowMSL():0,y=t=>({aabb:new m([t*o,0,v],[(t+1)*o,o,_]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}),x=[],b=[],w=n,C=e.reparseOverscaled?i:n,P=t=>{if(!this._elevation||!t.tileID)return;const e=this._elevation.getMinMaxForTile(t.tileID),n=t.aabb;e?(n.min[2]=e.min,n.max[2]=e.max,n.center[2]=(n.min[2]+n.max[2])/2):(t.shouldSplit=S(t),t.shouldSplit||(n.min[2]=n.max[2]=n.center[2]=this._centerAltitude))},M=t=>t*t,O=M((h-this._centerAltitude)*u),S=t=>{if(t.zoom<f)return!0;
1if(t.zoom===w)return!1;if(null!=t.shouldSplit)return t.shouldSplit;const e=t.aabb.distanceX(d),n=t.aabb.distanceY(d);let i=O;r&&(i=M(t.aabb.distanceZ(d)*u));const s=e*e+n*n+i;return s<M((1<<w-t.zoom)*g*((t,e)=>{if(e*M(.707)<t)return 1;const n=Math.sqrt(e/t);return n/(1.4144271570014144+(Math.pow(1.1,n-1.4144271570014144+1)-1)/(1.1-1)-1)})(Math.max(i,O),s))};if(this._renderWorldCopies)for(let t=1;t<=3;t++)x.push(y(-t)),x.push(y(t));for(x.push(y(0));x.length>0;){const i=x.pop(),s=i.x,o=i.y;let c=i.fullyVisible;if(!c){const t=i.aabb.intersects(l);if(0===t)continue;c=2===t}if(i.zoom!==w&&S(i))for(let e=0;e<4;e++){const n=(s<<1)+e%2,a=(o<<1)+(e>>1),l={aabb:i.aabb.quadrant(e),zoom:i.zoom+1,x:n,y:a,wrap:i.wrap,fullyVisible:c,tileID:void 0,shouldSplit:void 0};r&&(l.tileID=new t.OverscaledTileID(i.zoom+1===w?C:i.zoom+1,i.wrap,i.zoom+1,n,a),P(l)),x.push(l)}else{const r=i.zoom===w?C:i.zoom;if(e.minzoom&&e.minzoom>r)continue;const l=a[0]-(.5+s+(i.wrap<<i.zoom))*(1<<n-i.zoom),c=a[1]-.5-o,u=i.tileID?i.tileID:new t.OverscaledTileID(r,i.wrap,i.zoom,s,o);b.push({tileID:u,distanceSq:l*l+c*c})}}if(this.fogCullDistSq){const e=this.fogCullDistSq;b.splice(0,b.length,...b.filter(n=>{const i=[0,0,0,1],s=[t.EXTENT,t.EXTENT,0,1],o=this.calculateFogTileMatrix(n.tileID.toUnwrapped());t.transformMat4(i,i,o),t.transformMat4(s,s,o);const a=t.getAABBPointSquareDist(i,s);if(0===a)return!0;let l=!1;const c=this.horizonLineFromTop();if(a>e&&0!==c){const e=this.calculateProjMatrix(n.tileID.toUnwrapped());let i;r&&this._elevation&&(i=this._elevation.getMinMaxForTile(n.tileID)),i||(i={min:v,max:_});const s=t.furthestTileCorner(this.bearing),o=[s[0]*t.EXTENT,s[1]*t.EXTENT,i.max];t.transformMat4$1(o,o,e),l=(1-o[1])*this.height*.5<c}return a<e||l}))}return b.sort((t,e)=>t.distanceSq-e.distanceSq).map(t=>t.tileID)}resize(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(t){return Math.pow(2,t)}scaleZoom(t){return Math.log(t)/Math.LN2}project(e){const n=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.pointGeometry(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(n)*this.worldSize)}unproject(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}setLocationAtPoint(e,n){const i=this.pointCoordinate(n),r=this.pointCoordinate(this.centerPoint),s=this.locationCoordinate(e),o=new t.MercatorCoordinate(s.x-(i.x-r.x),s.y-(i.y-r.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&&
1(this.center=this.center.wrap())}setLocation(t){this.center=this.coordinateLocation(t),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(t){return this._coordinatePoint(this.locationCoordinate(t),!1)}locationPoint3D(t){return this._coordinatePoint(this.locationCoordinate(t),!0)}pointLocation(t){return this.coordinateLocation(this.pointCoordinate(t))}pointLocation3D(t){return this.coordinateLocation(this.pointCoordinate3D(t))}locationCoordinate(e){return t.MercatorCoordinate.fromLngLat(e)}coordinateLocation(t){return t.toLngLat()}pointRayIntersection(e,n){const i=null!=n?n:this._centerAltitude,r=[e.x,e.y,0,1],s=[e.x,e.y,1,1];t.transformMat4(r,r,this.pixelMatrixInverse),t.transformMat4(s,s,this.pixelMatrixInverse);const o=s[3];t.scale$2(r,r,1/r[3]),t.scale$2(s,s,1/o);const a=r[2],l=s[2];return{p0:r,p1:s,t:a===l?0:(i-a)/(l-a)}}screenPointToMercatorRay(e){const n=[e.x,e.y,0,1],i=[e.x,e.y,1,1];return t.transformMat4(n,n,this.pixelMatrixInverse),t.transformMat4(i,i,this.pixelMatrixInverse),t.scale$2(n,n,1/n[3]),t.scale$2(i,i,1/i[3]),n[2]=t.mercatorZfromAltitude(n[2],this._center.lat)*this.worldSize,i[2]=t.mercatorZfromAltitude(i[2],this._center.lat)*this.worldSize,t.scale$2(n,n,1/this.worldSize),t.scale$2(i,i,1/this.worldSize),new d([n[0],n[1],n[2]],t.normalize([],t.sub([],i,n)))}rayIntersectionCoordinate(e){const{p0:n,p1:i,t:r}=e,s=t.mercatorZfromAltitude(n[2],this._center.lat),o=t.mercatorZfromAltitude(i[2],this._center.lat);return new t.MercatorCoordinate(t.number(n[0],i[0],r)/this.worldSize,t.number(n[1],i[1],r)/this.worldSize,t.number(s,o,r))}pointCoordinate(e){const n=this.horizonLineFromTop(!1),i=new t.pointGeometry(e.x,Math.max(n,e.y));return this.rayIntersectionCoordinate(this.pointRayIntersection(i))}pointCoordinate3D(e){if(!this.elevation)return this.pointCoordinate(e);const n=this.elevation;let i=this.elevation.pointCoordinate(e);if(i)return new t.MercatorCoordinate(i[0],i[1],i[2]);let r=0,s=this.horizonLineFromTop();if(e.y>s)return this.pointCoordinate(e);const o=.02*s,a=e.clone();for(let l=0;l<10&&s-r>o;l++){a.y=t.number(r,s,.66);const e=n.pointCoordinate(a);e?(s=a.y,i=e):r=a.y}return i?new t.MercatorCoordinate(i[0],i[1],i[2]):this.pointCoordinate(e)}isPointAboveHorizon(t){if(this.elevation)return!this.elevation.pointCoordinate(t);{const e=this.horizonLineFromTop();return t.y<e}}_coordinatePoint(e,n){const i=n&&this.elevation?this.elevation.getAtPointOrZero(e,this._centerAltitude):this._centerAltitude,r=[e.x*this.worldSize,e.y*this.worldSize,i+e.toAltitude(),1];return t.transformMat4(r,r,this.pixelMatrix),r[3]>0?new t.pointGeometry(r[0]/r[3],r[1]/r[3]):new t.pointGeometry(Number.MAX_VALUE,Number.MAX_VALUE)}getBounds(){return this._terrainEnabled()?this._getBounds3D():(new t.LngLatBounds).extend(this.pointLocation(new t.pointGeometry(this._edgeInsets.left,this._edgeInsets.top))).extend(this.pointLocation(new t.pointGeometry(this.width-this._edgeInsets.right,this._edgeInsets.top))).extend(this.pointLocation(new t.pointGeometry(this.width-this._edgeInsets.right,this.height-this._edgeInsets.bottom))).extend(this.pointLocation(new t.pointGeometry(this._edgeInsets.left,this.height-this._edgeInsets.bottom)))}_getBounds3D(){const e=this.elevation,n=e.visibleDemTiles.reduce((t,e)=>{if(e.dem){const n=e.dem.tree;t.min=Math.min(t.min,n.minimums[0]),t.max=Math.max(t.max,n.maximums[0])}return t},{min:Number.MAX_VALUE,max:0});n.min*=e.exaggeration(),n.max*=e.exaggeration();const i=this.horizonLineFromTop();return[new t.pointGeometry(0,i),new t.pointGeometry(this.width,i),new t.pointGeometry(this.width,this.height),new t.pointGeometry(0,this.height)].reduce((t,e)=>t.extend(this.coordinateLocation(this.rayIntersectionCoordinate(this.pointRayIntersection(e,n.min)))).extend(this.coordinateLocation(this.rayIntersectionCoordinate(this.pointRayIntersection(e,n.max)))),new t.LngLatBounds)}horizonLineFromTop(t=!0){const e=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,n=this.height/2-.97*e;return t?Math.max(0,n):n}getMaxBounds(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}setMaxBounds(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])}calculatePosMatrix(e,n){const i=e.canonical,r=n/this.zoomScale(i.z),s=i.x+Math.pow(2,i.z)*e.wrap,o=t.identity(new Float64Array(16));return t.translate(o,o,[s*r,i.y*r,0]),t.scale$1(o,o,[r/t.EXTENT,r/t.EXTENT,1]),o}calculateFogTileMatrix(e){const n=e.key,i=this._fogTileMatrixCache;if(i[n])return i[n];const r=this.calculatePosMatrix(e,this.cameraWorldSize);return t.multiply(r,this.worldToFogMatrix,r),i[n]=new Float32Array(r),i[n]}calculateProjMatrix(e,n=!1){const i=e.key,r=n?this._alignedProjMatrixCache:this._projMatrixCache;if(r[i])return r[i];const s=this.calculatePosMatrix(e,this.worldSize);return t.multiply(s,n?this.alignedProjMatrix:this.projMatrix,s),r[i]=new Float32Array(s),r[i]}customLayerMatrix(){return this.mercatorMatrix.slice()}recenterOnTerrain(){if(!this._elevation)return;const e=this._elevation;this._updateCameraState();const n=this._camera.position,i=this._camera.forward();if(n[2]<=0||i[2]>=0)return;const r=t.mercatorZfromAltitude(1,this._center.lat);n[2]/=r,i[2]/=r,t.normalize(i,i);const s=e.raycast(n,i,e.exaggeration());if(s){const e=t.scaleAndAdd([],n,i,s),r=new t.MercatorCoordinate(e[0],e[1],t.mercatorZfromAltitude(e[2],t.latFromMercatorY(e[1]))),o=this._camera.position,a=r.z+t.length([r.x-o[0],r.y-o[1],r.z-o[2]]);this._cameraZoom=this._zoomFromMercatorZ(a),this._centerAltitude=r.toAltitude(),this._center=r.toLngLat(),this._updateZoomFromElevation(),this._constrain(),this._calcMatrices()}}_constrainCameraAltitude(){if(!this._elevation)return;const e=this._elevation;this._updateCameraState();const n=e.getAtPointOrZero(this._camera.mercatorPosition),i=this._minimumHeightOverTerrain()*M
1ath.cos(t.degToRad(this._maxPitch)),r=t.mercatorZfromAltitude(n,this._center.lat),s=this._camera.position[2]-r;if(s<i){const e=t.MercatorCoordinate.fromLngLat(this._center,this._centerAltitude),n=this._camera.mercatorPosition,r=[e.x-n.x,e.y-n.y,e.z-n.z],o=t.length(r);r[2]-=i-s;const a=t.length(r);if(0===a)return;t.scale(r,r,o/a),this._camera.position=[e.x-r[0],e.y-r[1],e.z-r[2]],this._camera.orientation=xi(r,this._camera.up()),this._updateStateFromCamera()}}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let e,n,i,r,s=-90,o=90,a=-180,l=180;const c=this.size,u=this._unmodified;if(this.latRange){const n=this.latRange;s=t.mercatorYfromLat(n[1])*this.worldSize,o=t.mercatorYfromLat(n[0])*this.worldSize,e=o-s<c.y?c.y/(o-s):0}if(this.lngRange){const e=this.lngRange;a=t.mercatorXfromLng(e[0])*this.worldSize,l=t.mercatorXfromLng(e[1])*this.worldSize,n=l-a<c.x?c.x/(l-a):0}const h=this.point,d=Math.max(n||0,e||0);if(d)return this.center=this.unproject(new t.pointGeometry(n?(l+a)/2:h.x,e?(o+s)/2:h.y)),this.zoom+=this.scaleZoom(d),this._unmodified=u,void(this._constraining=!1);if(this.latRange){const t=h.y,e=c.y/2;t-e<s&&(r=s+e),t+e>o&&(r=o-e)}if(this.lngRange){const t=h.x,e=c.x/2;t-e<a&&(i=a+e),t+e>l&&(i=l-e)}void 0===i&&void 0===r||(this.center=this.unproject(new t.pointGeometry(void 0!==i?i:h.x,void 0!==r?r:h.y))),this._constrainCameraAltitude(),this._unmodified=u,this._constraining=!1}_minZoomForBounds(){const e=(t,e)=>Math.log2(t/(this.tileSize*Math.abs(e[1]-e[0])));let n=0;if(this.latRange){const i=this.latRange;n=e(this.height,[t.mercatorYfromLat(i[0]),t.mercatorYfromLat(i[1])])}let i=0;if(this.lngRange){const n=this.lngRange;i=e(this.width,[t.mercatorXfromLng(n[0]),t.mercatorXfromLng(n[1])])}return Math.max(n,i)}_maxCameraBoundsDistance(){return this._mercatorZfromZoom(this._minZoomForBounds())}_calcMatrices(){if(!this.height)return;const e=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;const n=this.pixelsPerMeter;this._updateCameraState();const i=Math.PI/2+this._pitch,r=this.fovAboveCenter,s=this.elevation?this.elevation.getMinElevationBelowMSL()*n:0,o=(this._camera.position[2]*this.worldSize-s)/Math.cos(this._pitch),a=Math.sin(r)*o/Math.sin(t.clamp(Math.PI-i-r,.01,Math.PI-.01)),l=this.point,c=l.x,u=l.y,h=Math.cos(Math.PI/2-this._pitch)*a+o,d=Math.min(1.01*h,o*(1/this._horizonShift)),p=this.height/50,m=this._camera.getWorldToCamera(this.worldSize,n),g=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,p,d);g[8]=2*-e.x/this.width,g[9]=2*e.y/this.height;let f=t.mul$1([],g,m);this.mercatorMatrix=t.scale$1([],f,[this.worldSize,this.worldSize,this.worldSize/n]),this.projMatrix=f,this.invProjMatrix=t.invert(new Float64Array(16),this.projMatrix);const _=new Float32Array(16);t.identity(_),t.scale$1(_,_,[1,-1,1]),t.rotateX(_,_,this._pitch),t.rotateZ(_,_,this.angle);const v=t.perspective(new Float32Array(16),this._fov,this.width/this.height,p,d),y=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;v[8]=2*-e.x/this.width,v[9]=2*(e.y+y)/this.height,this.skyboxMatrix=t.multiply(_,v,_);const x=this.width%2/2,b=this.height%2/2,w=Math.cos(this.angle),C=Math.sin(this.angle),P=c-Math.round(c)+w*x+C*b,M=u-Math.round(u)+w*b+C*x,O=new Float64Array(f);if(t.translate(O,O,[P>.5?P-1:P,M>.5?M-1:M,0]),this.alignedProjMatrix=O,f=t.create$1(),t.scale$1(f,f,[this.width/2,-this.height/2,1]),t.translate(f,f,[1,-1,0]),this.labelPlaneMatrix=f,f=t.create$1(),t.scale$1(f,f,[1,-1,1]),t.translate(f,f,[-1,-1,0]),t.scale$1(f,f,[2/this.width,2/this.height,1]),this.glCoordMatrix=f,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),this._calcFogMatrices(),f=t.invert(new Float64Array(16),this.pixelMatrix),!f)throw new Error("failed to invert matrix");this.pixelMatrixInverse=f,this._projMatrixCache={},this._alignedProjMatrixCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const e=this.cameraWorldSize,n=this.cameraPixelsPerMeter,i=this._camera.position,r=1/this.height,s=[e,e,n];t.scale(s,s,r),t.scale(i,i,-1),t.multiply$1(i,i,s);const o=t.create$1();t.translate(o,o,i),t.scale$1(o,o,s),this.mercatorFogMatrix=o,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(e,n,r)}_updateCameraState(){if(!this.height)return;this._camera.setPitchBearing(this._pitch,this.angle);const e=this._camera.forward(),n=this.cameraToCenterDistance,i=this.point,r=this._mercatorZfromZoom(this._cameraZoom?this._cameraZoom:this._zoom)-t.mercatorZfromAltitude(this._centerAltitude,this.center.lat),s=this.cameraToCenterDistance/r;this._camera.position=[i.x/this.worldSize-e[0]*n/s,i.y/this.worldSize-e[1]*n/s,t.mercatorZfromAltitude(this._centerAltitude,this._center.lat)+-e[2]*n/s]}_translateCameraConstrained(e){const n=this._maxCameraBoundsDistance()*Math.cos(this._pitch),i=e[2];let r=1;i>0&&(r=Math.min((n-this._camera.position[2])/i,1)),this._camera.position=t.scaleAndAdd([],this._camera.position,e,r),this._updateStateFromCamera()}_updateStateFromCamera(){const e=this._camera.position,n=this._camera.forward(),{pitch:i,bearing:r}=this._camera.getPitchBearing(),s=t.mercatorZfromAltitude(this._centerAltitude,this.center.lat),o=this._mercatorZfromZoom(this._maxZoom)*Math.cos(t.degToRad(this._maxPitch)),a=Math.max((e[2]-s)/Math.cos(i),o),l=this._zoomFromMercatorZ(a);t.scaleAndAdd(e,e,n,a),this._pitch=t.clamp(i,t.degToRad(this.minPitch),t.degToRad(this.maxPitch)),this.angle=t.wrap(r,-Math.PI,Math.PI),this._setZoom(t.clamp(l,this._minZoom,this._maxZoom)),this._terrainEnabled()&&this._updateCameraOnTerrain(),this._center=new t.MercatorCoordinate(e[0],e[1],e[2]).toLngLat(),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(t){return Math.pow(2,t)*this.tileSize}_mercatorZfromZoom(t){return this.cameraToCenterDistance/this._worldSizeFromZoom(t)}_minimumHeightOverTerrain(){const t=Math.min((null!=this._cameraZoom?this._cameraZoom:this._zoom)+2,this._maxZoom);return this._mercatorZfromZoom(t)}_zoomFromMercatorZ(t){return this.scaleZoom(this.cameraToCenterDistance/(t*this.tileSize))}_terrainEnabled(){return!!this._elevation}
1isHorizonVisibleForPoints(e,n){const i=Math.min(e.x,n.x),r=Math.max(e.x,n.x),s=Math.min(e.y,n.y),o=Math.max(e.y,n.y),a=[new t.pointGeometry(i,s),new t.pointGeometry(r,o),new t.pointGeometry(i,o),new t.pointGeometry(r,s)],l=this._renderWorldCopies?-3:0,c=this._renderWorldCopies?4:1;for(const t of a){const e=this.pointRayIntersection(t);if(e.t<0)return!0;const n=this.rayIntersectionCoordinate(e);if(n.x<l||n.y<0||n.x>c||n.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+t.radToDeg(this.fovAboveCenter)>88||this.isHorizonVisibleForPoints(new t.pointGeometry(0,0),new t.pointGeometry(this.width,this.height))}zoomDeltaToMovement(e,n){const i=t.length(t.sub([],this._camera.position,e)),r=this._zoomFromMercatorZ(i)+n;return i-this._mercatorZfromZoom(r)}getCameraPoint(){const e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.pointGeometry(0,e))}}class Pi{constructor(e){this._hashName=e&&encodeURIComponent(e),t.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=function(t,e){let n=!1,i=null;const r=()=>{i=null,n&&(t(),i=setTimeout(r,300),n=!1)};return()=>(n=!0,i||r(),i)}(this._updateHashUnthrottled.bind(this))}addTo(e){return this._map=e,t.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return t.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this}getHashString(e){const n=this._map.getCenter(),i=Math.round(100*this._map.getZoom())/100,r=Math.ceil((i*Math.LN2+Math.log(512/360/.5))/Math.LN10),s=Math.pow(10,r),o=Math.round(n.lng*s)/s,a=Math.round(n.lat*s)/s,l=this._map.getBearing(),c=this._map.getPitch();let u="";if(u+=e?`/${o}/${a}/${i}`:`${i}/${a}/${o}`,(l||c)&&(u+="/"+Math.round(10*l)/10),c&&(u+=`/${Math.round(c)}`),this._hashName){const e=this._hashName;let n=!1;const i=t.window.location.hash.slice(1).split("&").map(t=>{const i=t.split("=")[0];return i===e?(n=!0,`${i}=${u}`):t}).filter(t=>t);return n||i.push(`${e}=${u}`),`#${i.join("&")}`}return`#${u}`}_getCurrentHash(){const e=t.window.location.hash.replace("#","");if(this._hashName){let t;return e.split("&").map(t=>t.split("=")).forEach(e=>{e[0]===this._hashName&&(t=e)}),(t&&t[1]||"").split("/")}return e.split("/")}_onHashChange(){const t=this._getCurrentHash();if(t.length>=3&&!t.some(t=>isNaN(t))){const e=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1}_updateHashUnthrottled(){const e=t.window.location.href.replace(/(#.+)?$/,this.getHashString());t.window.history.replaceState(t.window.history.state,null,e)}}const Mi={linearity:.3,easing:t.bezier(0,0,.3,1)},Oi=t.extend({deceleration:2500,maxSpeed:1400},Mi),Si=t.extend({deceleration:20,maxSpeed:1400},Mi),ki=t.extend({deceleration:1e3,maxSpeed:360},Mi),Ti=t.extend({deceleration:1e3,maxSpeed:90},Mi);class Ei{constructor(t){this._map=t,this.clear()}clear(){this._inertiaBuffer=[]}record(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.exported.now(),settings:e})}_drainInertiaBuffer(){const e=this._inertiaBuffer,n=t.exported.now();for(;e.length>0&&n-e[0].time>160;)e.shift()}_onMoveEnd(e){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const n={zoom:0,bearing:0,pitch:0,pan:new t.pointGeometry(0,0),pinchAround:void 0,around:void 0};for(const{settings:t}of this._inertiaBuffer)n.zoom+=t.zoomDelta||0,n.bearing+=t.bearingDelta||0,n.pitch+=t.pitchDelta||0,t.panDelta&&n.pan._add(t.panDelta),t.around&&(n.around=t.around),t.pinchAround&&(n.pinchAround=t.pinchAround);const i=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,r={};if(n.pan.mag()){const s=Ai(n.pan.mag(),i,t.extend({},Oi,e||{}));r.offset=n.pan.mult(s.amount/n.pan.mag()),r.center=this._map.transform.center,Ii(r,s)}if(n.zoom){const t=Ai(n.zoom,i,Si);r.zoom=this._map.transform.zoom+t.amount,Ii(r,t)}if(n.bearing){const e=Ai(n.bearing,i,ki);
vendor: 7,478 bytes, line 1
1r.bearing=this._map.transform.bearing+t.clamp(e.amount,-179,179),Ii(r,e)}if(n.pitch){const t=Ai(n.pitch,i,Ti);r.pitch=this._map.transform.pitch+t.amount,Ii(r,t)}if(r.zoom||r.bearing){const t=void 0===n.pinchAround?n.around:n.pinchAround;r.around=t?this._map.unproject(t):this._map.getCenter()}return this.clear(),t.extend(r,{noMoveStart:!0})}}function Ii(t,e){(!t.duration||t.duration<e.duration)&&(t.duration=e.duration,t.easing=e.easing)}function Ai(e,n,i){const{maxSpeed:r,linearity:s,deceleration:o}=i,a=t.clamp(e*s/(n/1e3),-r,r),l=Math.abs(a)/(o*s);return{easing:i.easing,duration:1e3*l,amount:a*(l/2)}}class zi extends t.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,n,i,r={}){const o=s.mousePos(n.getCanvasContainer(),i),a=n.unproject(o);super(e,t.extend({point:o,lngLat:a,originalEvent:i},r)),this._defaultPrevented=!1,this.target=n}}class Di extends t.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,n,i){const r="touchend"===e?i.changedTouches:i.touches,o=s.touchPos(n.getCanvasContainer(),r),a=o.map(t=>n.unproject(t)),l=o.reduce((t,e,n,i)=>t.add(e.div(i.length)),new t.pointGeometry(0,0));super(e,{points:o,point:l,lngLats:a,lngLat:n.unproject(l),originalEvent:i}),this._defaultPrevented=!1}}class Li extends t.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,e,n){super(t,{originalEvent:n}),this._defaultPrevented=!1}}class Ri{constructor(t,e){this._map=t,this._clickTolerance=e.clickTolerance}reset(){delete this._mousedownPos}wheel(t){return this._firePreventable(new Li(t.type,this._map,t))}mousedown(t,e){return this._mousedownPos=e,this._firePreventable(new zi(t.type,this._map,t))}mouseup(t){this._map.fire(new zi(t.type,this._map,t))}click(t,e){this._mousedownPos&&this._mousedownPos.dist(e)>=this._clickTolerance||this._map.fire(new zi(t.type,this._map,t))}dblclick(t){return this._firePreventable(new zi(t.type,this._map,t))}mouseover(t){this._map.fire(new zi(t.type,this._map,t))}mouseout(t){this._map.fire(new zi(t.type,this._map,t))}touchstart(t){return this._firePreventable(new Di(t.type,this._map,t))}touchmove(t){this._map.fire(new Di(t.type,this._map,t))}touchend(t){this._map.fire(new Di(t.type,this._map,t))}touchcancel(t){this._map.fire(new Di(t.type,this._map,t))}_firePreventable(t){if(this._map.fire(t),t.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Fi{constructor(t){this._map=t}reset(){this._delayContextMenu=!1,delete this._contextMenuEvent}mousemove(t){this._map.fire(new zi(t.type,this._map,t))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new zi("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new zi(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Bi{constructor(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(t,e){this.isEnabled()&&t.shiftKey&&0===t.button&&(s.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)}mousemoveWindow(t,e){if(!this._active)return;const n=e;if(this._lastPos.equals(n)||!this._box&&n.dist(this._startPos)<this._clickTolerance)return;const i=this._startPos;this._lastPos=n,this._box||(this._box=s.create("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",t));const r=Math.min(i.x,n.x),o=Math.max(i.x,n.x),a=Math.min(i.y,n.y),l=Math.max(i.y,n.y);this._map._requestDomTask(()=>{this._box&&(s.setTransform(this._box,`translate(${r}px,${a}px)`),this._box.style.width=o-r+"px",this._box.style.height=l-a+"px")})}mouseupWindow(e,n){if(!this._active)return;if(0!==e.button)return;const i=this._startPos,r=n;if(this.reset(),s.suppressClick(),i.x!==r.x||i.y!==r.y)return this._map.fire(new t.Event("boxzoomend",{originalEvent:e})),{cameraAnimation:t=>t.fitScreenCoordinates(i,r,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",e)}keydown(t){this._active&&27===t.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",t))}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(s.remove(this._box),this._box=null),s.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(e,n){return this._map.fire(new t.Event(e,{originalEvent:n}))}}function Ni(t,e){const n={};for(let i=0;i<t.length;i++)n[t[i].identifier]=e[i];return n}class Ui{constructor(t){this.reset(),this.numTouches=t.numTouches}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}touchstart(e,n,i){(this.centroid||i.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=e.timeStamp),i.length===this.numTouches&&(this.centroid=function(e){const n=new t.pointGeometry(0,0);for(const t of e)n._add(t);return n.div(e.length)}(n),this.touches=Ni(i,n)))}touchmove(t,e,n){if(this.aborted||!this.centroid)return;const i=Ni(n,e);for(const r in this.touches){const t=this.touches[r],e=i[r];(!e||e.dist(t)>30)&&(this.aborted=!0)}}touchend(t,e,n){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){const t=!this.aborted&&this.centroid;if(this.reset(),t)return t}}}class Hi{constructor(t){this.singleTap=new Ui(t),this.numTaps=t.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(t,e,n){this.singleTap.touchstart(t,e,n)}touchmove(t,e,n){this.singleTap.touchmove(t,e,n)}touchend(t,e,n){const i=this.singleTap.touchend(t,e,n);if(i){const e=t.timeStamp-this.lastTime<500,n=!this.lastTap||this.lastTap.dist(i)<30;if(e&&n||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=i,this.count===this.numTaps)return this.reset(),i}}}class ji{constructor(){this._zoomIn=new Hi({numTouches:1,numTaps:2}),this._zoomOut=new Hi({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(t,e,n){this._zoomIn.touchstart(t,e,n),this._zoomOut.touchstart(t,e,n)}touchmove(t,e,n){this._zoomIn.touchmove(t,e,n),this._zoomOut.touchmove(t,e,n)}touchend(t,e,n){const i=this._zoomIn.touchend(t,e,n),r=this._zoomOut.touchend(t,e,n);return i?(this._active=!0,t.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:e=>e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}):r?(this._active=!0,t.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:e=>e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(r)},{originalEvent:t})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const Vi={0:1,2:2};class $i{constructor(t){this.reset(),this._clickTolerance=t.clickTolerance||1}reset(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton}_correctButton(t,e){return!1}_move(t,e){return{}}mousedown(t,e){if(this._lastPoint)return;
1const n=s.mouseButton(t);this._correctButton(t,n)&&(this._lastPoint=e,this._eventButton=n)}mousemoveWindow(t,e){const n=this._lastPoint;if(n)if(t.preventDefault(),function(t,e){const n=Vi[e];return void 0===t.buttons||(t.buttons&n)!==n}(t,this._eventButton))this.reset();else if(this._moved||!(e.dist(n)<this._clickTolerance))return this._moved=!0,this._lastPoint=e,this._move(n,e)}mouseupWindow(t){this._lastPoint&&s.mouseButton(t)===this._eventButton&&(this._moved&&s.suppressClick(),this.reset())}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class qi extends $i{mousedown(t,e){super.mousedown(t,e),this._lastPoint&&(this._active=!0)}_correctButton(t,e){return 0===e&&!t.ctrlKey}_move(t,e){return{around:e,panDelta:e.sub(t)}}}class Gi extends $i{_correctButton(t,e){return 0===e&&t.ctrlKey||2===e}_move(t,e){const n=.8*(e.x-t.x);if(n)return this._active=!0,{bearingDelta:n}}contextmenu(t){t.preventDefault()}}class Zi extends $i{_correctButton(t,e){return 0===e&&t.ctrlKey||2===e}_move(t,e){const n=-.5*(e.y-t.y);if(n)return this._active=!0,{pitchDelta:n}}contextmenu(t){t.preventDefault()}}class Wi{constructor(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new t.pointGeometry(0,0)}touchstart(t,e,n){return this._calculateTransform(t,e,n)}touchmove(t,e,n){if(this._active&&!(n.length<this._minTouches))return t.preventDefault(),this._calculateTransform(t,e,n)}touchend(t,e,n){this._calculateTransform(t,e,n),this._active&&n.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(e,n,i){i.length>0&&(this._active=!0);const r=Ni(i,n),s=new t.pointGeometry(0,0),o=new t.pointGeometry(0,0);let a=0;for(const t in r){const e=r[t],n=this._touches[t];n&&(s._add(e),o._add(e.sub(n)),a++,r[t]=e)}if(this._touches=r,a<this._minTouches||!o.mag())return;const l=o.div(a);return this._sum._add(l),this._sum.mag()<this._clickTolerance?void 0:{around:s.div(a),panDelta:l}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Xi{constructor(){this.reset()}reset(){this._active=!1,delete this._firstTwoTouches}_start(t){}_move(t,e,n){return{}}touchstart(t,e,n){this._firstTwoTouches||n.length<2||(this._firstTwoTouches=[n[0].identifier,n[1].identifier],this._start([e[0],e[1]]))}touchmove(t,e,n){if(!this._firstTwoTouches)return;t.preventDefault();const[i,r]=this._firstTwoTouches,s=Qi(n,e,i),o=Qi(n,e,r);if(!s||!o)return;const a=this._aroundCenter?null:s.add(o).div(2);return this._move([s,o],a,t)}touchend(t,e,n){if(!this._firstTwoTouches)return;const[i,r]=this._firstTwoTouches,o=Qi(n,e,i),a=Qi(n,e,r);o&&a||(this._active&&s.suppressClick(),this.reset())}touchcancel(){this.reset()}enable(t){this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function Qi(t,e,n){for(let i=0;i<t.length;i++)if(t[i].identifier===n)return e[i]}function Ki(t,e){return Math.log(t/e)/Math.LN2}class Yi extends Xi{reset(){super.reset(),delete this._distance,delete this._startDistance}_start(t){this._startDistance=this._distance=t[0].dist(t[1])}_move(t,e){const n=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs(Ki(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Ki(this._distance,n),pinchAround:e}}}function Ji(t,e){return 180*t.angleWith(e)/Math.PI}class tr extends Xi{reset(){super.reset(),delete this._minDiameter,delete this._startVector,delete this._vector}_start(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])}_move(t,e){const n=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Ji(this._vector,n),pinchAround:e}}_isBelowThreshold(t){this._minDiameter=Math.min(this._minDiameter,t.mag());const e=25/(Math.PI*this._minDiameter)*360,n=Ji(t,this._startVector);return Math.abs(n)<e}}function er(t){return Math.abs(t.y)>Math.abs(t.x)}
vendor: 21,395 bytes, line 1
1class nr extends Xi{reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}_start(t){this._lastPoints=t,er(t[0].sub(t[1]))&&(this._valid=!1)}_move(t,e,n){const i=t[0].sub(this._lastPoints[0]),r=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(i,r,n.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(i.y+r.y)/2*-.5}}gestureBeginsVertically(t,e,n){if(void 0!==this._valid)return this._valid;const i=t.mag()>=2,r=e.mag()>=2;if(!i&&!r)return;if(!i||!r)return void 0===this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;const s=t.y>0==e.y>0;return er(t)&&er(e)&&s}}const ir={panStep:100,bearingStep:15,pitchStep:10};class rr{constructor(){const t=ir;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(t){if(t.altKey||t.ctrlKey||t.metaKey)return;let e=0,n=0,i=0,r=0,s=0;switch(t.keyCode){case 61:case 107:case 171:case 187:e=1;break;case 189:case 109:case 173:e=-1;break;case 37:t.shiftKey?n=-1:(t.preventDefault(),r=-1);break;case 39:t.shiftKey?n=1:(t.preventDefault(),r=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),s=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),s=1);break;default:return}return this._rotationDisabled&&(n=0,i=0),{cameraAnimation:o=>{const a=o.getZoom();o.easeTo({duration:300,easeId:"keyboardHandler",easing:sr,zoom:e?Math.round(a)+e*(t.shiftKey?2:1):a,bearing:o.getBearing()+n*this._bearingStep,pitch:o.getPitch()+i*this._pitchStep,offset:[-r*this._panStep,-s*this._panStep],center:o.getCenter()},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function sr(t){return t*(2-t)}const or=4.000244140625;class ar{constructor(e,n){this._map=e,this._el=e.getCanvasContainer(),this._handler=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,t.bindAll(["_onTimeout"],this)}setZoomRate(t){this._defaultZoomRate=t}setWheelZoomRate(t){this._wheelZoomRate=t}isEnabled(){return!!this._enabled}isActive(){return!!this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&"center"===t.around)}disable(){this.isEnabled()&&(this._enabled=!1)}wheel(e){if(!this.isEnabled())return;let n=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY;const i=t.exported.now(),r=i-(this._lastWheelEventTime||0);this._lastWheelEventTime=i,0!==n&&n%or==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":r>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(r*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),e.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=e,this._delta-=n,this._active||this._start(e)),e.preventDefault()}_onTimeout(t){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)}_start(t){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const e=s.mousePos(this._el,t);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:e,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId)return;if(this._frameId=null,!this.isActive())return;const e=this._map.transform,n=()=>e._terrainEnabled()?e.computeZoomRelativeTo(this._aroundCoord):e.zoom;if(0!==this._delta){const t="wheel"===this._type&&Math.abs(this._delta)>or?this._wheelZoomRate:this._defaultZoomRate;let i=2/(1+Math.exp(-Math.abs(this._delta*t)));this._delta<0&&0!==i&&(i=1/i);const r=n(),s=Math.pow(2,r),o="number"==typeof this._targetZoom?e.zoomScale(this._targetZoom):s;this._targetZoom=Math.min(e.maxZoom,Math.max(e.minZoom,e.scaleZoom(o*i))),"wheel"===this._type&&(this._startZoom=n(),this._easing=this._smoothOutEasing(200)),this._delta=0}const i="number"==typeof this._targetZoom?this._targetZoom:n(),r=this._startZoom,s=this._easing;let o,a=!1;if("wheel"===this._type&&r&&s){const e=Math.min((t.exported.now()-this._lastWheelEventTime)/200,1),n=s(e);o=t.number(r,i,n),e<1?this._frameId||(this._frameId=!0):a=!0}else o=i,a=!0;return this._active=!0,a&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!a,zoomDelta:o-n(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(e){let n=t.ease;if(this._prevEase){const e=this._prevEase,i=(t.exported.now()-e.start)/e.duration,r=e.easing(i+.01)-e.easing(i),s=.27/Math.sqrt(r*r+1e-4)*.01,o=Math.sqrt(.0729-s*s);n=t.bezier(s,o,.25,1)}return this._prevEase={start:t.exported.now(),duration:e,easing:n},n}reset(){this._active=!1}}class lr{constructor(t,e){this._clickZoom=t,this._tapZoom=e}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class cr{constructor(){this.reset()}reset(){this._active=!1}dblclick(t,e){return t.preventDefault(),{cameraAnimation:n=>{n.easeTo({duration:300,zoom:n.getZoom()+(t.shiftKey?-1:1),around:n.unproject(e)},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class ur{constructor(){this._tap=new Hi({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()}touchstart(t,e,n){this._swipePoint||(this._tapTime&&t.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=e[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(t,e,n))}touchmove(t,e,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;const i=e[0],r=i.y-this._swipePoint.y;return this._swipePoint=i,t.preventDefault(),this._active=!0,{zoomDelta:r/128}}}else this._tap.touchmove(t,e,n)}touchend(t,e,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(t,e,n)&&(this._tapTime=t.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class hr{constructor(t,e,n){this._el=t,this._mousePan=e,this._touchPan=n}enable(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class dr{constructor(t,e,n){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=n}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class pr{constructor(t,e,n,i){this._el=t,this._touchZoom=e,this._touchRotate=n,this._tapDragZoom=i,this._rotationDisabled=!1,this._enabled=!0}enable(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const mr=t=>t.zoom||t.drag||t.pitch||t.rotate;class gr extends t.Event{}class fr{constructor(){this.constants=[1,1,.01],this.radius=0}setup(e,n){const i=t.sub([],n,e);this.radius=t.length(i[2]<0?t.div([],i,this.constants):[i[0],i[1],0])}projectRay(e){t.div(e,e,this.constants),t.normalize(e,e),t.mul$2(e,e,this.constants);const n=t.scale([],e,this.radius);if(n[2]>0){const e=t.scale([],[0,0,1],t.dot(n,[0,0,1])),i=t.scale([],t.normalize([],[n[0],n[1],0]),this.radius),r=t.add([],n,t.scale([],t.sub([],t.add([],i,e),n),2));n[0]=r[0],n[1]=r[1]}return n}}function _r(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}class vr{constructor(e,n){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ei(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new fr,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(n),t.bindAll(["handleEvent","handleWindowEvent"],this);const i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[t.window.document,"mousemove",{capture:!0}],[t.window.document,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[t.window,"blur",void 0]];for(const[r,o,a]of this._listeners)s.addEventListener(r,o,r===t.window.document?this.handleWindowEvent:this.handleEvent,a)}destroy(){for(const[e,n,i]of this._listeners)s.removeEventListener(e,n,e===t.window.document?this.handleWindowEvent:this.handleEvent,i)}_addDefaultHandlers(t){const e=this._map,n=e.getCanvasContainer();this._add("mapEvent",new Ri(e,t));const i=e.boxZoom=new Bi(e,t);this._add("boxZoom",i);const r=new ji,s=new cr;e.doubleClickZoom=new lr(s,r),this._add("tapZoom",r),this._add("clickZoom",s);const o=new ur;this._add("tapDragZoom",o);const a=e.touchPitch=new nr;this._add("touchPitch",a);const l=new Gi(t),c=new Zi(t);e.dragRotate=new dr(t,l,c),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",c,["mouseRotate"]);const u=new qi(t),h=new Wi(t);e.dragPan=new hr(n,u,h),this._add("mousePan",u),this._add("touchPan",h,["touchZoom","touchRotate"]);const d=new tr,p=new Yi;e.touchZoomRotate=new pr(n,p,d,o),this._add("touchRotate",d,["touchPan","touchZoom"]),this._add("touchZoom",p,["touchPan","touchRotate"]),this._add("blockableMapEvent",new Fi(e));const m=e.scrollZoom=new ar(e,this);this._add("scrollZoom",m,["mousePan"]);const g=e.keyboard=new rr;this._add("keyboard",g);for(const f of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])t.interactive&&t[f]&&e[f].enable(t[f])}_add(t,e,n){this._handlers.push({handlerName:t,handler:e,allowed:n}),this._handlersById[t]=e}stop(t){if(!this._updatingCamera){for(const{handler:t}of this._handlers)t.reset();this._inertia.clear(),this._fireEvents({},{},t),this._changes=[]}}isActive(){for(const{handler:t}of this._handlers)if(t.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return Boolean(mr(this._eventsInProgress))||this.isZooming()}_blockedByActive(t,e,n){for(const i in t)if(i!==n&&(!e||e.indexOf(i)<0))return!0;return!1}handleWindowEvent(t){this.handleEvent(t,`${t.type}Window`)}_getMapTouches(t){const e=[];for(const n of t)this._el.contains(n.target)&&e.push(n);return e}handleEvent(t,e){if("blur"===t.type)return void this.stop(!0);this._updatingCamera=!0;const n="renderFrame"===t.type,i=n?void 0:t,r={needsRenderFrame:!1},o={},a={},l=t.touches?this._getMapTouches(t.touches):void 0,c=l?s.touchPos(this._el,l):n?void 0:s.mousePos(this._el,t);for(const{handlerName:s,handler:d,allowed:p}of this._handlers){if(!d.isEnabled())continue;let n;this._blockedByActive(a,p,s)?d.reset():d[e||t.type]&&(n=d[e||t.type](t,c,l),this.mergeHandlerResult(r,o,n,s,i),n&&n.needsRenderFrame&&this._triggerRenderFrame()),(n||d.isActive())&&(a[s]=d)}const u={};for(const s in this._previousActiveHandlers)a[s]||(u[s]=i);this._previousActiveHandlers=a,(Object.keys(u).length||_r(r))&&(this._changes.push([r,o,u]),this._triggerRenderFrame()),(Object.keys(a).length||_r(r))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:h}=r;h&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],h(this._map))}mergeHandlerResult(e,n,i,r,s){if(!i)return;t.extend(e,i);const o={handlerName:r,originalEvent:i.originalEvent||s};void 0!==i.zoomDelta&&(n.zoom=o),void 0!==i.panDelta&&(n.drag=o),void 0!==i.pitchDelta&&(n.pitch=o),void 0!==i.bearingDelta&&(n.rotate=o)}_applyChanges(){const e={},n={},i={};for(const[r,s,o]of this._changes)r.panDelta&&(e.panDelta=(e.panDelta||new t.pointGeometry(0,0))._add(r.panDelta)),r.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+r.zoomDelta),r.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+r.bearingDelta),r.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+r.pitchDelta),void 0!==r.around&&(e.around=r.around),void 0!==r.aroundCoord&&(e.aroundCoord=r.aroundCoord),void 0!==r.pinchAround&&(e.pinchAround=r.pinchAround),r.noInertia&&(e.noInertia=r.noInertia),t.extend(n,s),t.extend(i,o);this._updateMapTransform(e,n,i),this._changes=[]}_updateMapTransform(e,n,i){const r=this._map,s=r.transform,o=t=>[t.x,t.y,t.z];if((t=>{const e=this._eventsInProgress.drag;return e&&!this._handlersById[e.handlerName].isActive()})()&&!_r(e)){const t=s.zoom;s.cameraElevationReference="sea",s.recenterOnTerrain(),s.cameraElevationReference="ground",t!==s.zoom&&this._map._update(!0)}if(!_r(e))return this._fireEvents(n,i,!0);let{panDelta:a,zoomDelta:l,bearingDelta:c,pitchDelta:u,around:h,aroundCoord:d,pinchAround:p}=e;void 0!==p&&(h=p),(t=>n.drag&&!this._eventsInProgress.drag)()&&h&&(this._dragOrigin=o(s.pointCoordinate3D(h)),this._trackingEllipsoid.setup(s._camera.position,this._dragOrigin)),s.cameraElevationReference="sea",r._stop(!0),h=h||r.transform.centerPoint,c&&(s.bearing+=c),u&&(s.pitch+=u),s._updateCameraState();const m=[0,0,0];if(a){const t=s.screenPointToMercatorRay(h),e=s.screenPointToMercatorRay(h.sub(a)),n=this._trackingEllipsoid.projectRay(t.dir),i=this._trackingEllipsoid.projectRay(e.dir);m[0]=i[0]-n[0],m[1]=i[1]-n[1]}const g=s.zoom,f=[0,0,0];if(l){const e=o(d||s.pointCoordinate3D(h)),n={dir:t.normalize([],t.sub([],e,s._camera.position))},i=s.screenPointToMercatorRay(s.centerPoint);if(n.dir[2]<0){const r=t.altitudeFromMercatorZ(e[2],e[1]),a=s.rayIntersectionCoordinate(s.pointRayIntersection(s.centerPoint,r)),c=s.zoomDeltaToMovement(o(a),l)*(i.dir[2]/n.dir[2]);t.scale(f,n.dir,c)}else if(s._terrainEnabled()){const i=s.zoomDeltaToMovement(e,l);t.scale(f,n.dir,i)}}const _=t.add(m,m,f);s._translateCameraConstrained(_),l&&Math.abs(s.zoom-g)>1e-4&&s.recenterOnTerrain(),s.cameraElevationReference="ground",this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(n,i,!0)}_fireEvents(e,n,i){const r=mr(this._eventsInProgress),s=mr(e),o={};for(const t in e){const{originalEvent:n}=e[t];this._eventsInProgress[t]||(o[`${t}start`]=n),this._eventsInProgress[t]=e[t]}!r&&s&&this._fireEvent("movestart",s.originalEvent);for(const t in o)this._fireEvent(t,o[t]);s&&this._fireEvent("move",s.originalEvent);for(const t in e){const{originalEvent:n}=e[t];this._fireEvent(t,n)}const a={};let l;for(const t in this._eventsInProgress){const{handlerName:e,originalEvent:i}=this._eventsInProgress[t];this._handlersById[e].isActive()||(delete this._eventsInProgress[t],l=n[e]||i,a[`${t}end`]=l)}for(const t in a)this._fireEvent(t,a[t]);const c=mr(this._eventsInProgress);if(i&&(r||s)&&!c){this._updatingCamera=!0;const e=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),n=t=>0!==t&&-this._bearingSnap<t&&t<this._bearingSnap;e?(n(e.bearing||this._map.getBearing())&&(e.bearing=0),this._map.easeTo(e,{originalEvent:l})):(this._map.fire(new t.Event("moveend",{originalEvent:l})),n(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(e,n){this._map.fire(new t.Event(e,n?{originalEvent:n}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add(t=>{delete this._frameId,this.handleEvent(new gr("renderFrame",{timeStamp:t})),this._applyChanges()})}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}class yr extends t.Evented{constructor(e,n){super(),this._moving=!1,this._zooming=!1,this.transform=e,this._bearingSnap=n.bearingSnap,t.bindAll(["_renderFrameCallback"],this)}getCenter(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(t,e){return this.jumpTo({center:t},e)}panBy(e,n,i){return e=t.pointGeometry.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},n),i)}panTo(e,n,i){return this.easeTo(t.extend({center:e},n),i)}getZoom(){return this.transform.zoom}setZoom(t,e){return this.jumpTo({zoom:t},e),this}zoomTo(e,n,i){return this.easeTo(t.extend({zoom:e},n),i)}zoomIn(t,e){return this.zoomTo(this.getZoom()+1,t,e),this}zoomOut(t,e){return this.zoomTo(this.getZoom()-1,t,e),this}getBearing(){return this.transform.bearing}setBearing(t,e){return this.jumpTo({bearing:t},e),this}getPadding(){return this.transform.padding}setPadding(t,e){return this.jumpTo({padding:t},e),this}rotateTo(e,n,i){return this.easeTo(t.extend({bearing:e},n),i)}resetNorth(e,n){return this.rotateTo(0,t.extend({duration:1e3},e),n),this}resetNorthPitch(e,n){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),n),this}snapToNorth(t,e){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,e):this}getPitch(){return this.transform.pitch}setPitch(t,e){return this.jumpTo({pitch:t},e),this}cameraForBounds(e,n){e=t.LngLatBounds.convert(e);const i=n&&n.bearing||0;return this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),i,n)}_extendCameraOptions(e){const n={top:0,bottom:0,right:0,left:0};if("number"==typeof(e=t.extend({padding:n,offset:[0,0],maxZoom:this.transform.maxZoom},e)).padding){const t=e.padding;e.padding={top:t,bottom:t,right:t,left:t}}return e.padding=t.extend(n,e.padding),e}_cameraForBoxAndBearing(e,n,i,r){const s=this._extendCameraOptions(r),o=this.transform,a=o.padding,l=o.project(t.LngLat.convert(e)),c=o.project(t.LngLat.convert(n)),u=l.rotate(-t.degToRad(i)),h=c.rotate(-t.degToRad(i)),d=new t.pointGeometry(Math.max(u.x,h.x),Math.max(u.y,h.y)),p=new t.pointGeometry(Math.min(u.x,h.x),Math.min(u.y,h.y)),m=d.sub(p),g=(o.width-(a.left+a.right+s.padding.left+s.padding.right))/m.x,f=(o.height-(a.top+a.bottom+s.padding.top+s.padding.bottom))/m.y;if(f<0||g<0)return void t.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.");const _=Math.min(o.scaleZoom(o.scale*Math.min(g,f)),s.maxZoom),v="number"==typeof s.offset.x?new t.pointGeometry(s.offset.x,s.offset.y):t.pointGeometry.convert(s.offset),y=new t.pointGeometry((s.padding.left-s.padding.right)/2,(s.padding.top-s.padding.bottom)/2).rotate(i*Math.PI/180),x=v.add(y).mult(o.scale/o.zoomScale(_));return{center:o.unproject(l.add(c).div(2).sub(x)),zoom:_,bearing:i}}_cameraForBox(e,n,i,r,s){const o=this._extendCameraOptions(s);i=i||0,r=r||0,e=t.LngLat.convert(e),n=t.LngLat.convert(n);const a=this.transform.clone();a.padding=o.padding;const l=this.getFreeCameraOptions(),c=new t.LngLat(.5*(e.lng+n.lng),.5*(e.lat+n.lat)),u=.5*(i+r);if(a._camera.position[2]<t.mercatorZfromAltitude(u,c.lat))return void t.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.");l.lookAtPoint(c),a.setFreeCameraOptions(l);const h=t.MercatorCoordinate.fromLngLat(e),d=t.MercatorCoordinate.fromLngLat(n),g=a.pointRayIntersection(a.centerPoint,u),f=[(_=a.rayIntersectionCoordinate(g)).x,_.y,_.z];var _;const v=a.screenPointToMercatorRay(a.centerPoint);let y,x=0;do{const n=Math.floor(a.zoom),s=1<<n,o=Math.min(s*h.x,s*d.x),l=Math.min(s*h.y,s*d.y),c=Math.max(s*h.x,s*d.x),u=Math.max(s*h.y,s*d.y),g=new m([o,l,i],[c,u,r]),_=p.fromInvProjectionMatrix(a.invProjMatrix,a.worldSize,n);if(2!==g.intersects(_)){y&&(a._camera.position=t.scaleAndAdd([],a._camera.position,v.dir,-y),a._updateStateFromCamera());break}const x=t.sub([],a._camera.position,f);y=.5*t.length(x),a._camera.position=t.scaleAndAdd([],a._camera.position,v.dir,y);try{a._updateStateFromCamera()}catch(e){return void t.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}}while(++x<10);return{center:a.center,zoom:a.zoom,bearing:a.bearing,pitch:a.pitch}}fitBounds(t,e,n){return this._fitInternal(this.cameraForBounds(t,e),e,
1n)}_raycastElevationBox(e,n){const i=this.transform.elevation;if(!i)return;const r=new t.pointGeometry(e.x,n.y),s=new t.pointGeometry(n.x,e.y),o=i.pointCoordinate(e);if(!o)return;const a=i.pointCoordinate(n);if(!a)return;const l=i.pointCoordinate(r);if(!l)return;const c=i.pointCoordinate(s);if(!c)return;const u=new t.MercatorCoordinate(o[0],o[1]).toLngLat(),h=new t.MercatorCoordinate(a[0],a[1]).toLngLat(),d=new t.MercatorCoordinate(l[0],l[1]).toLngLat(),p=new t.MercatorCoordinate(c[0],c[1]).toLngLat(),m=Math.min(u.lng,Math.min(h.lng,Math.min(d.lng,p.lng))),g=Math.min(u.lat,Math.min(h.lat,Math.min(d.lat,p.lat))),f=Math.max(u.lng,Math.max(h.lng,Math.max(d.lng,p.lng))),_=Math.max(u.lat,Math.max(h.lat,Math.max(d.lat,p.lat))),v=Math.min(o[3],Math.min(a[3],Math.min(l[3],c[3]))),y=Math.max(o[3],Math.max(a[3],Math.max(l[3],c[3])));return{minLngLat:new t.LngLat(m,g),maxLngLat:new t.LngLat(f,_),minAltitude:v,maxAltitude:y}}fitScreenCoordinates(e,n,i,r,s){let o,a,l,c;const u=t.pointGeometry.convert(e),h=t.pointGeometry.convert(n),d=this._raycastElevationBox(u,h);if(d)o=d.minLngLat,a=d.maxLngLat,l=d.minAltitude,c=d.maxAltitude;else{if(this.transform.isHorizonVisibleForPoints(u,h))return this;o=this.transform.pointLocation(u),a=this.transform.pointLocation(h)}return this._fitInternal(0===this.transform.pitch?this._cameraForBoxAndBearing(this.transform.pointLocation(t.pointGeometry.convert(e)),this.transform.pointLocation(t.pointGeometry.convert(n)),i,r):this._cameraForBox(o,a,l,c,r),r,s)}_fitInternal(e,n,i){return e?(delete(n=t.extend(e,n)).padding,n.linear?this.easeTo(n,i):this.flyTo(n,i)):this}jumpTo(e,n){this.stop();const i=this.transform;let r=!1,s=!1,o=!1;return"zoom"in e&&i.zoom!==+e.zoom&&(r=!0,i.zoom=+e.zoom),void 0!==e.center&&(i.center=t.LngLat.convert(e.center)),"bearing"in e&&i.bearing!==+e.bearing&&(s=!0,i.bearing=+e.bearing),"pitch"in e&&i.pitch!==+e.pitch&&(o=!0,i.pitch=+e.pitch),null==e.padding||i.isPaddingEqual(e.padding)||(i.padding=e.padding),this.fire(new t.Event("movestart",n)).fire(new t.Event("move",n)),r&&this.fire(new t.Event("zoomstart",n)).fire(new t.Event("zoom",n)).fire(new t.Event("zoomend",n)),s&&this.fire(new t.Event("rotatestart",n)).fire(new t.Event("rotate",n)).fire(new t.Event("rotateend",n)),o&&this.fire(new t.Event("pitchstart",n)).fire(new t.Event("pitch",n)).fire(new t.Event("pitchend",n)),this.fire(new t.Event("moveend",n))}getFreeCameraOptions(){return this.transform.getFreeCameraOptions()}setFreeCameraOptions(e,n){this.stop();const i=this.transform,r=i.zoom,s=i.pitch,o=i.bearing;i.setFreeCameraOptions(e);const a=r!==i.zoom,l=s!==i.pitch,c=o!==i.bearing;return this.fire(new t.Event("movestart",n)).fire(new t.Event("move",n)),a&&this.fire(new t.Event("zoomstart",n)).fire(new t.Event("zoom",n)).fire(new t.Event("zoomend",n)),c&&this.fire(new t.Event("rotatestart",n)).fire(new t.Event("rotate",n)).fire(new t.Event("rotateend",n)),l&&this.fire(new t.Event("pitchstart",n)).fire(new t.Event("pitch",n)).fire(new t.Event("pitchend",n)),this.fire(new t.Event("moveend",n)),this}easeTo(e,n){this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||!e.essential&&t.exported.prefersReducedMotion)&&(e.duration=0);const i=this.transform,r=this.getZoom(),s=this.getBearing(),o=this.getPitch(),a=this.getPadding(),l="zoom"in e?+e.zoom:r,c="bearing"in e?this._normalizeBearing(e.bearing,s):s,u="pitch"in e?+e.pitch:o,h="padding"in e?e.padding:i.padding,d=t.pointGeometry.convert(e.offset);let p=i.centerPoint.add(d);const m=i.pointLocation(p),g=t.LngLat.convert(e.center||m);this._normalizeCenter(g);const f=i.project(m),_=i.project(g).sub(f),v=i.zoomScale(l-r);let y,x;e.around&&(y=t.LngLat.convert(e.around),x=i.locationPoint(y));const b={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||l!==r,this._rotating=this._rotating||s!==c,this._pitching=this._pitching||u!==o,this._padding=!i.isPaddingEqual(h),this._easeId=e.easeId,this._prepareEase(n,e.noMoveStart,b),this._ease(e=>{if(this._zooming&&(i.zoom=t.number(r,l,e)),this._rotating&&(i.bearing=t.number(s,c,e)),this._pitching&&(i.pitch=t.number(o,u,e)),this._padding&&(i.interpolatePadding(a,h,e),p=i.centerPoint.add(d)),y)i.setLocationAtPoint(y,x);else{const t=i.zoomScale(i.zoom-r),n=l>r?Math.min(2,v):Math.max(.5,v),s=Math.pow(n,1-e),o=i.unproject(f.add(_.mult(e*s)).mult(t));i.setLocationAtPoint(i.renderWorldCopies?o.wrap():o,p)}this._fireMoveEvents(n)},t=>{i.recenterOnTerrain(),this._afterEase(n,t)},e),this}_prepareEase(e,n,i={}){this._moving=!0,this.transform.cameraElevationReference="sea",n||i.moving||this.fire(new t.Event("movestart",e)),this._zooming&&!i.zooming&&this.fire(new t.Event("zoomstart",e)),this._rotating&&!i.rotating&&this.fire(new t.Event("rotatestart",e)),this._pitching&&!i.pitching&&this.fire(new t.Event("pitchstart",e))}_fireMoveEvents(e){this.fire(new t.Event("move",e)),this._zooming&&this.fire(new t.Event("zoom",e)),this._rotating&&this.fire(new t.Event("rotate",e)),this._pitching&&this.fire(new t.Event("pitch",e))}_afterEase(e,n){if(this._easeId&&n&&this._easeId===n)return;delete this._easeId,this.transform.cameraElevationReference="ground";const i=this._zooming,r=this._rotating,s=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,i&&this.fire(new t.Event("zoomend",e)),r&&this.fire(new t.Event("rotateend",e)),s&&this.fire(new t.Event("pitchend",e)),this.fire(new t.Event("moveend",e))}flyTo(e,n){if(!e.essential&&t.exported.prefersReducedMotion){const i=t.pick(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(i,n)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);const i=this.transform,r=this.getZoom(),s=this.getBearing(),o=this.getPitch(),a=this.getPadding(),l="zoom"in e?t.clamp(+e.zoom,i.minZoom,i.maxZoom):r,c="bearing"in e?this._normalizeBearing(e.bearing,s):s,u="pitch"in e?+e.pitch:o,h="padding"in e?e.padding:i.padding,d=i.zoomScale(l-r),p=t.pointGeometry.convert(e.offset);let m=i.centerPoint.add(p);const g=i.pointLocation(m),f=t.LngLat.convert(e.center||g);this._normalizeCenter(f);const _=i.project(g),v=i.project(f).sub(_);let y=e.curve;const x=Math.max(i.width,i.height),b=x/d,w=v.mag();if("minZoom"in e){const n=t.clamp(Math.min(e.minZoom,r,l),i.minZ
1oom,i.maxZoom),s=x/i.zoomScale(n-r);y=Math.sqrt(s/w*2)}const C=y*y;function P(t){const e=(b*b-x*x+(t?-1:1)*C*C*w*w)/(2*(t?b:x)*C*w);return Math.log(Math.sqrt(e*e+1)-e)}function M(t){return(Math.exp(t)-Math.exp(-t))/2}function O(t){return(Math.exp(t)+Math.exp(-t))/2}const S=P(0);let k=function(t){return O(S)/O(S+y*t)},T=function(t){return x*((O(S)*(M(e=S+y*t)/O(e))-M(S))/C)/w;var e},E=(P(1)-S)/y;if(Math.abs(w)<1e-6||!isFinite(E)){if(Math.abs(x-b)<1e-6)return this.easeTo(e,n);const t=b<x?-1:1;E=Math.abs(Math.log(b/x))/y,T=function(){return 0},k=function(e){return Math.exp(t*y*e)}}return e.duration="duration"in e?+e.duration:1e3*E/("screenSpeed"in e?+e.screenSpeed/y:+e.speed),e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=s!==c,this._pitching=u!==o,this._padding=!i.isPaddingEqual(h),this._prepareEase(n,!1),this._ease(e=>{const d=e*E,g=1/k(d);i.zoom=1===e?l:r+i.scaleZoom(g),this._rotating&&(i.bearing=t.number(s,c,e)),this._pitching&&(i.pitch=t.number(o,u,e)),this._padding&&(i.interpolatePadding(a,h,e),m=i.centerPoint.add(p));const y=1===e?f:i.unproject(_.add(v.mult(T(d))).mult(g));i.setLocationAtPoint(i.renderWorldCopies?y.wrap():y,m),i._updateCenterElevation(),this._fireMoveEvents(n)},()=>this._afterEase(n),e),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(t,e){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const t=this._onEaseEnd;delete this._onEaseEnd,t.call(this,e)}if(!t){const t=this.handlers;t&&t.stop(!1)}return this}_ease(e,n,i){!1===i.animate||0===i.duration?(e(1),n()):(this._easeStart=t.exported.now(),this._easeOptions=i,this._onEaseFrame=e,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const e=Math.min((t.exported.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(e,n){e=t.wrap(e,-180,180);const i=Math.abs(e-n);return Math.abs(e-360-n)<i&&(e-=360),Math.abs(e+360-n)<i&&(e+=360),e}_normalizeCenter(t){const e=this.transform;if(!e.renderWorldCopies||e.lngRange)return;const n=t.lng-e.center.lng;t.lng+=n>180?-360:n<-180?360:0}}class xr{constructor(e={}){this.options=e,t.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(t){const e=this.options&&this.options.compact;return this._map=t,this._container=s.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=s.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=s.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),e&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===e&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){s.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(t,e){const n=this._map._getUIString(`AttributionControl.${e}`);t.title=n,t.setAttribute("aria-label",n)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))}_updateEditLink(){let e=this._editLink;e||(e=this._editLink=this._container.querySelector(".mapbox-improve-map"));const n=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){const i=n.reduce((t,e,i)=>(e.value&&(t+=`${e.key}=${e.value}${i<n.length-1?"&":""}`),t),"?");e.href=`${t.config.FEEDBACK_URL}/${i}${this._map._hash?this._map._hash.getHashString(!0):""}`,e.rel="noopener nofollow",this._setElementTitle(e,"MapFeedback")}}_updateData(t){!t||"metadata"!==t.sourceDataType&&"visibility"!==t.sourceDataType&&"style"!==t.dataType||(this._updateAttributions(),this._updateEditLink())}_updateAttributions(){if(!this._map.style)return;let t=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map(t=>"string"!=typeof t?"":t)):"string"==typeof this.options.customAttribution&&t.push(this.options.customAttribution)),this._map.style.stylesheet){const t=this._map.style.stylesheet;this.styleOwner=t.owner,this.styleId=t.id}const e=this._map.style._sourceCaches;for(const i in e){const n=e[i];if(n.used){const e=n.getSource();e.attribution&&t.indexOf(e.attribution)<0&&t.push(e.attribution)}}t.sort((t,e)=>
1t.length-e.length),t=t.filter((e,n)=>{for(let i=n+1;i<t.length;i++)if(t[i].indexOf(e)>=0)return!1;return!0});const n=t.join(" | ");n!==this._attribHTML&&(this._attribHTML=n,t.length?(this._innerContainer.innerHTML=n,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class br{constructor(){t.bindAll(["_updateLogo"],this),t.bindAll(["_updateCompact"],this)}onAdd(t){this._map=t,this._container=s.create("div","mapboxgl-ctrl");const e=s.create("a","mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://www.mapbox.com/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){s.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(t){t&&"metadata"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const t=this._map.style._sourceCaches;if(0===Object.entries(t).length)return!0;for(const e in t){const n=t[e].getSource();if(n.hasOwnProperty("mapbox_logo")&&!n.mapbox_logo)return!1}return!0}_updateCompact(){const t=this._container.children;if(t.length){const e=t[0];this._map.getCanvasContainer().offsetWidth<250?e.classList.add("mapboxgl-compact"):e.classList.remove("mapboxgl-compact")}}}class wr{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(t){const e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e}remove(t){const e=this._currentlyRunning,n=e?this._queue.concat(e):this._queue;for(const i of n)if(i.id===t)return void(i.cancelled=!0)}run(t=0){const e=this._currentlyRunning=this._queue;this._queue=[];for(const n of e)if(!n.cancelled&&(n.callback(t),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function Cr(e,n,i){if(e=new t.LngLat(e.lng,e.lat),n){const r=new t.LngLat(e.lng-360,e.lat),s=new t.LngLat(e.lng+360,e.lat),o=360*Math.ceil(Math.abs(e.lng-i.center.lng)/360),a=i.locationPoint(e).distSqr(n),l=n.x<0||n.y<0||n.x>i.width||n.y>i.height;i.locationPoint(r).distSqr(n)<a&&(l||Math.abs(r.lng-i.center.lng)<o)?e=r:i.locationPoint(s).distSqr(n)<a&&(l||Math.abs(s.lng-i.center.lng)<o)&&(e=s)}for(;Math.abs(e.lng-i.center.lng)>180;){const t=i.locationPoint(e);if(t.x>=0&&t.y>=0&&t.x<=i.width&&t.y<=i.height)break;e.lng>i.center.lng?e.lng-=360:e.lng+=360}return e}const Pr={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Mr(t,e,n){const i=t.classList;for(const r in Pr)i.remove(`mapboxgl-${n}-anchor-${r}`);i.add(`mapboxgl-${n}-anchor-${e}`)}class Or extends t.Evented{constructor(e,n){if(super(),(e instanceof t.window.HTMLElement||n)&&(e=t.extend({element:e},n)),t.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=e&&e.anchor||"center",this._color=e&&e.color||"#3FB1CE",this._scale=e&&e.scale||1,this._draggable=e&&e.draggable||!1,this._clickTolerance=e&&e.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=e&&e.rotation||0,this._rotationAlignment=e&&e.rotationAlignment||"auto",this._pitchAlignment=e&&e.pitchAlignment&&"auto"!==e.pitchAlignment?e.pitchAlignment:this._rotationAlignment,e&&e.element)this._element=e.element,this._offset=t.pointGeometry.convert(e&&e.offset||[0,0]);else{this._defaultMarker=!0,this._element=s.create("div"),this._element.setAttribute("aria-label","Map marker");const n=s.createNS("http://www.w3.org/2000/svg","svg"),i=41,r=27;n.setAttributeNS(null,"display","block"),n.setAttributeNS(null,"height",`${i}px`),n.setAttributeNS(null,"width",`${r}px`),n.setAttributeNS(null,"viewBox",`0 0 ${r} ${i}`);const o=s.createNS("http://www.w3.org/2000/svg","g");
1o.setAttributeNS(null,"stroke","none"),o.setAttributeNS(null,"stroke-width","1"),o.setAttributeNS(null,"fill","none"),o.setAttributeNS(null,"fill-rule","evenodd");const a=s.createNS("http://www.w3.org/2000/svg","g");a.setAttributeNS(null,"fill-rule","nonzero");const l=s.createNS("http://www.w3.org/2000/svg","g");l.setAttributeNS(null,"transform","translate(3.0, 29.0)"),l.setAttributeNS(null,"fill","#000000");const c=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(const t of c){const e=s.createNS("http://www.w3.org/2000/svg","ellipse");e.setAttributeNS(null,"opacity","0.04"),e.setAttributeNS(null,"cx","10.5"),e.setAttributeNS(null,"cy","5.80029008"),e.setAttributeNS(null,"rx",t.rx),e.setAttributeNS(null,"ry",t.ry),l.appendChild(e)}const u=s.createNS("http://www.w3.org/2000/svg","g");u.setAttributeNS(null,"fill",this._color);const h=s.createNS("http://www.w3.org/2000/svg","path");h.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),u.appendChild(h);const d=s.createNS("http://www.w3.org/2000/svg","g");d.setAttributeNS(null,"opacity","0.25"),d.setAttributeNS(null,"fill","#000000");const p=s.createNS("http://www.w3.org/2000/svg","path");p.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),d.appendChild(p);const m=s.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"transform","translate(6.0, 7.0)"),m.setAttributeNS(null,"fill","#FFFFFF");const g=s.createNS("http://www.w3.org/2000/svg","g");g.setAttributeNS(null,"transform","translate(8.0, 8.0)");const f=s.createNS("http://www.w3.org/2000/svg","circle");f.setAttributeNS(null,"fill","#000000"),f.setAttributeNS(null,"opacity","0.25"),f.setAttributeNS(null,"cx","5.5"),f.setAttributeNS(null,"cy","5.5"),f.setAttributeNS(null,"r","5.4999962");const _=s.createNS("http://www.w3.org/2000/svg","circle");_.setAttributeNS(null,"fill","#FFFFFF"),_.setAttributeNS(null,"cx","5.5"),_.setAttributeNS(null,"cy","5.5"),_.setAttributeNS(null,"r","5.4999962"),g.appendChild(f),g.appendChild(_),a.appendChild(l),a.appendChild(u),a.appendChild(d),a.appendChild(m),a.appendChild(g),n.appendChild(a),n.setAttributeNS(null,"height",i*this._scale+"px"),n.setAttributeNS(null,"width",r*this._scale+"px"),this._element.appendChild(n),this._offset=t.pointGeometry.convert(e&&e.offset||[0,-14])}this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",t=>{t.preventDefault()}),this._element.addEventListener("mousedown",t=>{t.preventDefault()}),Mr(this._element,this._anchor,"marker"),this._popup=null}addTo(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on("move",this._update),t.on("moveend",this._update),t.on("remove",this._clearFadeTimer),t._addMarker(this),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._map.off("remove",this._clearFadeTimer),this._map._removeMarker(this),delete this._map),this._clearFadeTimer(),s.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}
1setLngLat(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),t){if(!("offset"in t.options)){const e=38.1,n=13.5,i=Math.sqrt(Math.pow(n,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-e],"bottom-left":[i,-1*(e-n+i)],"bottom-right":[-i,-1*(e-n+i)],left:[n,-1*(e-n)],right:[-n,-1*(e-n)]}:this._offset}this._popup=t,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}_onKeyPress(t){const e=t.code,n=t.charCode||t.keyCode;"Space"!==e&&"Enter"!==e&&32!==n&&13!==n||this.togglePopup()}_onMapClick(t){const e=t.originalEvent.target,n=this._element;this._popup&&(e===n||n.contains(e))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this}_evaluateOpacity(){const t=this._pos?this._pos.sub(this._transformedOffset()):null;if(!this._withinScreenBounds(t))return void this._clearFadeTimer();const e=this._map.unproject(t);let n=!1;if(this._map.getTerrain()){const t=this._map.getFreeCameraOptions();if(t.position){const i=t.position.toLngLat();n=i.distanceTo(e)<.9*i.distanceTo(this._lngLat)}}const i=(1-this._map._queryFogOpacity(e))*(n?.2:1);this._element.style.opacity=`${i}`,this._popup&&this._popup._setOpacity(`${i}`),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_withinScreenBounds(t){const e=this._map.transform;return!!t&&t.x>=0&&t.x<e.width&&t.y>=0&&t.y<e.height}_update(t){if(!this._map)return;
1this._map.transform.renderWorldCopies&&(this._lngLat=Cr(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._transformedOffset());let e="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?e=`rotateZ(${this._rotation}deg)`:"map"===this._rotationAlignment&&(e=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let n="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?n="rotateX(0deg)":"map"===this._pitchAlignment&&(n=`rotateX(${this._map.getPitch()}deg)`),t&&"moveend"!==t.type||(this._pos=this._pos.round()),this._map._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&s.setTransform(this._element,`${Pr[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${n} ${e}`),!this._map.getTerrain()&&!this._map.getFog()||this._fadeTimer||(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))})}_transformedOffset(){if(!this._defaultMarker)return this._offset;const t=this._map.transform,e=this._offset.mult(this._scale);return"map"===this._rotationAlignment&&e._rotate(t.angle),"map"===this._pitchAlignment&&(e.y*=Math.cos(t._pitch)),e}getOffset(){return this._offset}setOffset(e){return this._offset=t.pointGeometry.convert(e),this._update(),this}_onMove(e){if(!this._isDragging){const t=this._clickTolerance||this._map._clickTolerance;this._isDragging=e.point.dist(this._pointerdownPos)>=t}this._isDragging&&(this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new t.Event("dragstart"))),this.fire(new t.Event("drag")))}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new t.Event("dragend")),this._state="inactive"}_addDragHandler(t){this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._transformedOffset()),this._pointerdownPos=t.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))}setDraggable(t){return this._draggable=!!t,this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(t){return this._rotation=t||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(t){return this._rotationAlignment=t||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(t){return this._pitchAlignment=t&&"auto"!==t?t:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}}class Sr{constructor(t){this.jumpTo(t)}getValue(e){if(e<=this._startTime)return this._start;if(e>=this._endTime)return this._end;const n=t.easeCubicInOut((e-this._startTime)/(this._endTime-this._startTime));return this._start*(1-n)+this._end*n}isEasing(t){return t>=this._startTime&&t<=this._endTime}jumpTo(t){this._startTime=-1/0,this._endTime=-1/0,this._start=t,this._end=t}easeTo(t,e,n){this._start=this.getValue(e),this._end=t,this._startTime=e,this._endTime=e+n}}const kr={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm"},{HTMLImageElement:Tr,HTMLElement:Er,ImageBitmap:Ir}=t.window,Ar={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileC
1acheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0};function zr(t){t.parentNode&&t.parentNode.removeChild(t)}const Dr={showCompass:!0,showZoom:!0,visualizePitch:!1};class Lr{constructor(e,n,i=!1){this._clickTolerance=10,this.element=n,this.mouseRotate=new Gi({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,i&&(this.mousePitch=new Zi({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),s.addEventListener(n,"mousedown",this.mousedown),s.addEventListener(n,"touchstart",this.touchstart,{passive:!1}),s.addEventListener(n,"touchmove",this.touchmove),s.addEventListener(n,"touchend",this.touchend),s.addEventListener(n,"touchcancel",this.reset)}down(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&&this.mousePitch.mousedown(t,e),s.disableDrag()}move(t,e){const n=this.map,i=this.mouseRotate.mousemoveWindow(t,e);if(i&&i.bearingDelta&&n.setBearing(n.getBearing()+i.bearingDelta),this.mousePitch){const i=this.mousePitch.mousemoveWindow(t,e);i&&i.pitchDelta&&n.setPitch(n.getPitch()+i.pitchDelta)}}off(){const t=this.element;s.removeEventListener(t,"mousedown",this.mousedown),s.removeEventListener(t,"touchstart",this.touchstart,{passive:!1}),s.removeEventListener(t,"touchmove",this.touchmove),s.removeEventListener(t,"touchend",this.touchend),s.removeEventListener(t,"touchcancel",this.reset),this.offTemp()}offTemp(){s.enableDrag(),s.removeEventListener(t.window,"mousemove",this.mousemove),s.removeEventListener(t.window,"mouseup",this.mouseup)}mousedown(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:()=>e.preventDefault()}),s.mousePos(this.element,e)),s.addEventListener(t.window,"mousemove",this.mousemove),s.addEventListener(t.window,"mouseup",this.mouseup)}mousemove(t){this.move(t,s.mousePos(this.element,t))}mouseup(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&&this.mousePitch.mouseupWindow(t),this.offTemp()}touchstart(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=s.touchPos(this.element,t.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>t.preventDefault()},this._startPos))}touchmove(t){1!==t.targetTouches.length?this.reset():(this._lastPos=s.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:()=>t.preventDefault()},this._lastPos))}touchend(t){0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}const Rr={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};let Fr,Br=0,Nr=!1;const Ur={maxWidth:100,unit:"metric"};function Hr(t,e,n){const i=n&&n.maxWidth||100,r=t._container.clientHeight/2,s=t.unproject([0,r]),o=t.unproject([i,r]),a=s.distanceTo(o);if(n&&"imperial"===n.unit){const n=3.2808*a;n>5280?jr(e,i,n/5280,t._getUIString("ScaleControl.Miles"),t):jr(e,i,n,t._getUIString("ScaleControl.Feet"),t)}else n&&"nautical"===n.unit?jr(e,i,a/1852,t._getUIString("ScaleControl.NauticalMiles"),t):a>=1e3?jr(e,i,a/1e3,t._getUIString("ScaleControl.Kilometers"),t):jr(e,i,a,t._getUIString("ScaleControl.Meters"),t)}function jr(t,e,n,i,r){const s=function(t){const e=Math.pow(10,`${Math.floor(t)}`.length-1);let n=t/e;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:n>=1?1:function(t){const e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(n),e*n}(n),o=s/n;r._requestDomTask(()=>{t.style.width=e*o+"px",t.innerHTML=`${s}&nbsp;${i}`})}const Vr={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},$r=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function qr(e){if(e){if("number"==typeof e){const n=Math.round(Math.sqrt(.5*Math.pow(e,2)));return{center:new t.pointGeometry(0,0),top:new t.pointGeometry(0,e),"top-left":new t.pointGeometry(n,n),"top-right":new t.pointGeometry(-n,n),bottom:new t.pointGeometry(0,-e),"bottom-left":new t.pointGeometry(n,-n),"bottom-right":new t.pointGeometry(-n,-n),left:new t.pointGeometry(e,0),right:new t.pointGeometry(-e,0)}}if(e instanceof t.pointGeometry||Array.isArray(e)){const n=t.pointGeometry.convert(e);return{center:n,top:n,"top-left":n,"top-right":n,bottom:n,"bottom-left":n,"bottom-right":n,left:n,right:n}}return{center:t.pointGeometry.convert(e.center||[0,0]),top:t.pointGeometry.convert(e.top||[0,0]),"top-left":t.pointGeometry.convert(e["top-left"]||[0,0]),"top-right":t.pointGeometry.convert(e["top-right"]||[0,0]),bottom:t.pointGeometry.convert(e.bottom||[0,0]),"bottom-left":t.pointGeometry.convert(e["bottom-left"]||[0,0]),"bottom-right":t.pointGeometry.convert(e["bottom-right"]||[0,0]),left:t.pointGeometry.convert(e.left||[0,0]),right:t.pointGeometry.convert(e.right||[0,0])}}return qr(new t.pointGeometry(0,0))}const Gr={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:class extends yr{constructor(e){if(null!=(e=t.extend({}
1,Ar,e)).minZoom&&null!=e.maxZoom&&e.minZoom>e.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=e.minPitch&&null!=e.maxPitch&&e.minPitch>e.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=e.minPitch&&e.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=e.maxPitch&&e.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Ci(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies),e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._optimizeForTerrain=e.optimizeForTerrain,this._renderTaskQueue=new wr,this._domRenderTaskQueue=new wr,this._controls=[],this._markers=[],this._mapId=t.uniqueId(),this._locale=t.extend({},kr,e.locale),this._clickTolerance=e.clickTolerance,this._averageElevationLastSampledAt=-1/0,this._averageElevation=new Sr(0),this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken,e.testMode),this._silenceAuthErrors=!!e.testMode,"string"==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error(`Container '${e.container}' not found.`)}else{if(!(e.container instanceof Er))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}if(e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),void 0!==t.window&&(t.window.addEventListener("online",this._onWindowOnline,!1),t.window.addEventListener("resize",this._onWindowResize,!1),t.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new vr(this,e),this._hash=e.hash&&new Pi("string"==typeof e.hash&&e.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&&(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localFontFamily=e.localFontFamily,this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&&this.setStyle(e.style,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),e.attributionControl&&this.addControl(new xr({customAttribution:e.customAttribution})),this._logoControl=new br,this.addControl(this._logoControl,e.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",e=>{this._update("style"===e.dataType),this.fire(new t.Event(`${e.dataType}data`,e))}),this.on("dataloading",e=>{this.fire(new t.Event(`${e.dataType}dataloading`,e))})}_getMapId(){return this._mapId}addControl(e,n){if(void 0===n&&(n=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const i=e.onAdd(this);this._controls.push(e);const r=this._controlPositions[n];return-1!==n.indexOf("bottom")?r.insertBefore(i,r.firstChild):r.appendChild(i),this}removeControl(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const n=this._controls.indexOf(e);return n>-1&&this._controls.splice(n,1),e.onRemove(this),this}hasControl(t){return this._controls.indexOf(t)>-1}resize(e){const n=this._containerDimensions(),i=n[0],r=n[1];this._resizeCanvas(i,r),this.transform.resize(i,r),this.painter.resize(i,r);const s=!this._moving;return s&&(this.stop(),this.fire(new t.Event("movestart",e)).fire(new t.Event("move",e))),this.fire(new t.Event("resize",e)),s&&this.fire(new t.Event("moveend",e)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()}setMinZoom(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t&&this.setZoom(t),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;
1throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()<t&&this.setPitch(t),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(t){if((t=null==t?85:t)>85)throw new Error("maxPitch must be less than or equal to 85");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(t){return this.transform.renderWorldCopies=t,this._update()}project(e){return this.transform.locationPoint3D(t.LngLat.convert(e))}unproject(e){return this.transform.pointLocation3D(t.pointGeometry.convert(e))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()}_createDelegatedListener(t,e,n){if("mouseenter"===t||"mouseover"===t){let i=!1;const r=r=>{const s=this.getLayer(e)?this.queryRenderedFeatures(r.point,{layers:[e]}):[];s.length?i||(i=!0,n.call(this,new zi(t,this,r.originalEvent,{features:s}))):i=!1};return{layer:e,listener:n,delegates:{mousemove:r,mouseout:()=>{i=!1}}}}if("mouseleave"===t||"mouseout"===t){let i=!1;const r=r=>{(this.getLayer(e)?this.queryRenderedFeatures(r.point,{layers:[e]}):[]).length?i=!0:i&&(i=!1,n.call(this,new zi(t,this,r.originalEvent)))},s=e=>{i&&(i=!1,n.call(this,new zi(t,this,e.originalEvent)))};return{layer:e,listener:n,delegates:{mousemove:r,mouseout:s}}}{const i=t=>{const i=this.getLayer(e)?this.queryRenderedFeatures(t.point,{layers:[e]}):[];i.length&&(t.features=i,n.call(this,t),delete t.features)};return{layer:e,listener:n,delegates:{[t]:i}}}}on(t,e,n){if(void 0===n)return super.on(t,e);const i=this._createDelegatedListener(t,e,n);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i);for(const r in i.delegates)this.on(r,i.delegates[r]);return this}once(t,e,n){if(void 0===n)return super.once(t,e);const i=this._createDelegatedListener(t,e,n);for(const r in i.delegates)this.once(r,i.delegates[r]);return this}off(t,e,n){return void 0===n?super.off(t,e):(this._delegatedListeners&&this._delegatedListeners[t]&&(i=>{const r=this._delegatedListeners[t];for(let t=0;t<r.length;t++){const i=r[t];if(i.layer===e&&i.listener===n){for(const t in i.delegates)this.off(t,i.delegates[t]);return r.splice(t,1),this}}})(),this)}queryRenderedFeatures(e,n){return this.style?(void 0!==n||void 0===e||e instanceof t.pointGeometry||Array.isArray(e)||(n=e,e=void 0),this.style.queryRenderedFeatures(e=e||[[0,0],[this.transform.width,this.transform.height]],n=n||{},this.transform)):[]}querySourceFeatures(t,e){return this.style.querySourceFeatures(t,e)}setStyle(e,n){return!1!==(n=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},n)).diff&&n.localIdeographFontFamily===this._localIdeographFontFamily&&n.localFontFamily===this._localFontFamily&&this.style&&e?(this._diffStyle(e,n),this):(this._localIdeographFontFamily=n.localIdeographFontFamily,this._localFontFamily=n.localFontFamily,this._updateStyle(e,n))}_getUIString(t){const e=this._locale[t];if(null==e)throw new Error(`Missing UI string '${t}'`);return e}_updateStyle(t,e){return this.style&&(this.style.setEventedParent(null),this.style._remove(),delete this.style),t&&(this.style=new He(this,e||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof t?this.style.loadURL(t):this.style.loadJSON(t)),this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new He(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(e,n){if("string"==typeof e){const i=this._requestManager.normalizeStyleURL(e),r=this._requestManager.transformRequest(i,t.ResourceType.Style);t.getJSON(r,(e,i)=>{e?this.fire(new t.ErrorEvent(e)):i&&this._updateDiff(i,n)})}else"object"==typeof e&&this._updateDiff(e,n)}_updateDiff(e,n){try{this.style.setState(e)&&this._update(!0)}catch(i){t.warnOnce(`Unable to perform style diff: ${i.message||i.error||i}.  Rebuilding the style from scratch.`),this._updateStyle(e,n)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():t.warnOnce("There is no style added to the map.")}addSource(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)}isSourceLoaded(e){const n=this.style&&this.style._getSourceCaches(e);if(0!==n.length)return n.every(t=>t.loaded());this.fire(new t.ErrorEvent(new Error(`There is no source with ID '${e}'`)))}areTilesLoaded(){const t=this.style&&this.style._sourceCaches;for(const e in t){const n=t[e]._tiles;for(const t in n){const e=n[t];if("loaded"!==e.state&&"errored"!==e.state)return!1}}return!0}addSourceType(t,e,n){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,n)}removeSource(t){return this.style.removeSource(t),this._updateTerrain(),this._update(!0)}getSource(t){return this.style.getSource(t)}addImage(e,n,{pixelRatio:i=1,sdf:r=!1,stretchX:s,stretchY:o,content:a}={}){if(this._lazyInitEmptyStyle(),n instanceof Tr||Ir&&n instanceof Ir){const{width:l,height:c,data:u}=t.exported.getImageData(n);this.style.addImage(e,{data:new t.RGBAImage({width:l,height:c},u),pixelRatio:i,stretchX:s,stretchY:o,content:a,sdf:r,version:0})}else{if(void 0===n.width||void 0===n.height)return this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{const{width:l,height:c,data:u}=n,h=n;this.style.addImage(e,{data:new t.RGBAImage({width:l,height:c},new Uint8Array(u)),pixelRatio:i,stretchX:s,stretchY:o,content:a,sdf:r,version:0,userImage:h}),h.onAdd&&h.onAdd(this,e)}}}updateImage(e,n){const i=this.style.getImage(e);if(!i)return this.fire(new t.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const r=n instanceof Tr||Ir&&n instanceof Ir?t.exported.getImageData(n):n,{width:s,height:o,data:a}=r;return void 0===s||void 0===o?this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))):s!==i.data.width||o!==i.data.height?this.fire(new t.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image"))):(i.data.replace(a,!(n instanceof Tr||Ir&&n instanceof Ir)),void this.style.updateImage(e,i))}hasImage(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(t){this.style.removeImage(t)}loadImage(e,n){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),(e,i)=>{n(e,i instanceof Tr?t.exported.getImageData(i):i)})}listImages(){return this.style.listImages()}addLayer(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)}moveLayer(t,e){return this.style.moveLayer(t,e),this._update(!0)}removeLayer(t){return this.style.removeLayer(t),this._update(!0)}getLayer(t){return this.style.getLayer(t)}setLayerZoomRange(t,e,n){return this.style.setLayerZoomRange(t,e,n),this._update(!0)}setFilter(t,e,n={}){return this.style.setFilter(t,e,n),this._update(!0)}getFilter(t){return this.style.getFilter(t)}setPaintProperty(t,e,n,i={}){return this.style.setPaintProperty(t,e,n,i),this._update(!0)}getPaintProperty(t,e){return this.style.getPaintProperty(t,e)}setLayoutProperty(t,e,n,i={}){return this.style.setLayoutProperty(t,e,n,i),this._update(!0)}getLayoutProperty(t,e){return this.style.getLayoutProperty(t,e)}setLight(t,e={}){return this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)}getLight(){return this.style.getLight()}setTerrain(t){return this._lazyInitEmptyStyle(),this.style.setTerrain(t),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(t){return this._lazyInitEmptyStyle(),this.style.setFog(t),this._update(!0)}getFog(){return this.style?this.style.getFog():null}_queryFogOpacity(e){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(t.LngLat.convert(e),this.transform):0}queryTerrainElevation(e,n){const i=this.transform.elevation;return i?(n=t.extend({},{exaggerated:!0},n),i.getAtPoint(t.MercatorCoordinate.fromLngLat(e),null,n.exaggerated)):null}setFeatureState(t,e){return this.style.setFeatureState(t,e),this._update()}removeFeatureState(t,e){return this.style.removeFeatureState(t,e),this._update()}getFeatureState(t){return this.style.getFeatureState(t)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let t=0,e=0;return this._container&&(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]}_detectMissingCSS(){"rgb(250, 128, 114)"!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&t.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described 
1in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const t=this._container;t.classList.add("mapboxgl-map"),(this._missingCSSCanary=s.create("div","mapboxgl-canary",t)).style.visibility="hidden",this._detectMissingCSS();const e=this._canvasContainer=s.create("div","mapboxgl-canvas-container",t);this._interactive&&e.classList.add("mapboxgl-interactive"),this._canvas=s.create("canvas","mapboxgl-canvas",e),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region");const n=this._containerDimensions();this._resizeCanvas(n[0],n[1]);const i=this._controlContainer=s.create("div","mapboxgl-control-container",t),r=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(t=>{r[t]=s.create("div",`mapboxgl-ctrl-${t}`,i)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(e,n){const i=t.exported.devicePixelRatio||1;this._canvas.width=i*e,this._canvas.height=i*n,this._canvas.style.width=`${e}px`,this._canvas.style.height=`${n}px`}_addMarker(t){this._markers.push(t)}_removeMarker(t){const e=this._markers.indexOf(t);-1!==e&&this._markers.splice(e,1)}_setupPainter(){const n=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),i=this._canvas.getContext("webgl",n)||this._canvas.getContext("experimental-webgl",n);i?(t.storeAuthState(i,!0),this.painter=new pi(i,this.transform),this.on("data",t=>{"source"===t.dataType&&this.painter.setTileLoadedFlag(!0)}),t.exported$1.testSupport(i)):this.fire(new t.ErrorEvent(new Error("Failed to initialize WebGL")))}_contextLost(e){e.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new t.Event("webglcontextlost",{originalEvent:e}))}_contextRestored(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event("webglcontextrestored",{originalEvent:e}))}_onMapScroll(t){if(t.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(t){return this._update(),this._renderTaskQueue.add(t)}_cancelRenderFrame(t){this._renderTaskQueue.remove(t)}_requestDomTask(t){!this.isMoving()&&this.loaded()?t():this._domRenderTaskQueue.add(t)}_render(e){let n;const i=this.painter.context.extTimerQuery,r=t.exported.now();this.listens("gpu-timing-frame")&&(n=i.createQueryEXT(),i.beginQueryEXT(i.TIME_ELAPSED_EXT,n));let s=this._updateAverageElevation(r);if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),this._domRenderTaskQueue.run(e),this._removed)return;let o=!1;const a=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const e=this.transform.zoom,n=t.exported.now();this.style.zoomHistory.update(e,n);const i=new t.EvaluationParameters(e,{now:n,fadeDuration:a,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),r=i.crossFadingFactor();1===r&&r===this._crossFadingFactor||(o=!0,this._crossFadingFactor=r),this.style.update(i)}if(this.style&&this.style.fog&&this.style.fog.hasTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0),this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,a,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showTerrainWireframe:this.showTerrainWireframe,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:a,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),speedIndexTiming:this.speedIndexTiming}),this.fire(new t.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new t.Event("load"))),this.style&&(this.style.hasTransitions()||o)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){const e=t.exported.now()-r;i.endQueryEXT(i.TIME_ELAPSED_EXT,n),setTimeout(()=>{const r=i.getQueryObjectEXT(n,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n),this.fire(new t.Event("gpu-timing-frame",{cpuTime:e,gpuTime:r}))},50)}if(this.listens("gpu-timing-layer")){const e=this.painter.collectGpuTimers();setTimeout(()=>{const n=this.painter.queryGpuTimers(e);this.fire(new t.Event("gpu-timing-layer",{layerTimes:n}
1))},50)}const l=this._sourcesDirty||this._styleDirty||this._placementDirty||s;if(l||this._repaint)this.triggerRepaint();else{const e=!this.isMoving()&&this.loaded();if(e&&(s=this._updateAverageElevation(r,!0)),s)this.triggerRepaint();else if(this._triggerFrame(!1),e&&(this.fire(new t.Event("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const e=this._calculateSpeedIndex();this.fire(new t.Event("speedindexcompleted",{speedIndex:e})),this.speedIndexTiming=!1}}return!this._loaded||this._fullyLoaded||l||(this._fullyLoaded=!0,this._authenticate()),this}_updateAverageElevation(t,e=!1){const n=t=>(this.transform.averageElevation=t,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&n(0);if((e||t-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(t)){const e=this.transform.averageElevation;let i=this.transform.sampleAverageElevation();isNaN(i)?i=0:this._averageElevationLastSampledAt=t;const r=Math.abs(e-i);if(r>1)this._averageElevation.easeTo(i,t,300);else if(r>1e-4)return this._averageElevation.jumpTo(i),n(i)}return!!this._averageElevation.isEasing(t)&&n(this._averageElevation.getValue(t))}_authenticate(){t.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,e=>{if(e&&(e.message===t.AUTH_ERR_MSG||401===e.status)){const e=this.painter.context.gl;t.storeAuthState(e,!1),this._logoControl instanceof br&&this._logoControl._updateLogo(),e&&e.clear(e.DEPTH_BUFFER_BIT|e.COLOR_BUFFER_BIT|e.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new t.ErrorEvent(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),t.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){this.painter.updateTerrain(this.style,this.isMoving()||this.isRotating()||this.isZooming())}_calculateSpeedIndex(){const t=this.painter.canvasCopy(),e=this.painter.getCanvasCopiesAndTimestamps();e.timeStamps.push(performance.now());const n=this.painter.context.gl,i=n.createFramebuffer();function r(t){n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,t,0);const e=new Uint8Array(n.drawingBufferWidth*n.drawingBufferHeight*4);return n.readPixels(0,0,n.drawingBufferWidth,n.drawingBufferHeight,n.RGBA,n.UNSIGNED_BYTE,e),e}return n.bindFramebuffer(n.FRAMEBUFFER,i),this._canvasPixelComparison(r(t),e.canvasCopies.map(r),e.timeStamps)}_canvasPixelComparison(t,e,n){let i=n[1]-n[0];const r=t.length/4;for(let s=0;s<e.length;s++){const o=e[s];let a=0;for(let e=0;e<o.length;e+=4)o[e]===t[e]&&o[e+1]===t[e+1]&&o[e+2]===t[e+2]&&o[e+3]===t[e+3]&&(a+=1);i+=(n[s+2]-n[s+1])*(1-a/r)}return i}remove(){this._hash&&this._hash.remove();for(const t of this._controls)t.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==t.window&&(t.window.removeEventListener("resize",this._onWindowResize,!1),t.window.removeEventListener("orientationchange",this._onWindowResize,!1),t.window.removeEventListener("online",this._onWindowOnline,!1));const e=this.painter.context.gl.getExtension("WEBGL_lose_context");e&&e.loseContext(),zr(this._canvasContainer),zr(this._controlContainer),zr(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),t.removeAuthState(this.painter.context.gl),this._removed=!0,this.fire(new t.Event("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(e){this._renderNextFrame=this._renderNextFrame||e,this.style&&!this._frame&&(this._frame=t.exported.frame(t=>{const e=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,e&&this._render(t)}))}_onWindowOnline(){this._update()}_onWindowResize(t){this._trackResize&&this.resize({originalEvent:t})._update()}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(t){this._showTerrainWireframe!==t&&(this._showTerrainWireframe=t,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(t){this._speedIndexTiming!==t&&(this._speedIndexTiming=t,this._update())}get showPadding(){return!!this._showPadding}set showPadding(t){this._showPadding!==t&&(this._showPadding=t,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())}get repaint(){return!!this._repaint}set repaint(t){this._repaint!==t&&(this._repaint=t,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(t){this._vertices=t,this._update()}_setCacheLimits(e,n){t.setCacheLimits(e,n)}get version(){return t.version}},NavigationControl:class{constructor(e){this.options=t.extend({},Dr,e),this._container=s.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",t=>t.preventDefault()),this.options.showZoom&&(t.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",t=>this._map.zoomIn({},{originalEvent:t})),s.create("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden",!0),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",t=>this._map.zoomOut({},{originalEvent:t})),s.create("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden",!0)),this.options.showCompass&&(t.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",t=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:t}):this._map.resetNorth({},{originalEvent:t})}),this._compassIcon=s.create("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden",!0))}_updateZoomButtons(){const t=this._map.getZoom(),e=t===this._map.getMaxZoom(),n=t===this._map.getMinZoom();this._zoomInButton.disabled=e,this._zoomOutButton.disabled=n,this._zoomInButton.setAttribute("aria-disabled",e.toString()),this._zoomOutButton.setAttribute("aria-disabled",n.toString())}_rotateCompassArrow(){const t=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)
1),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._map._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=t)})}onAdd(t){return this._map=t,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Lr(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){s.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(t,e){const n=s.create("button",t,this._container);return n.type="button",n.addEventListener("click",e),n}_setButtonTitle(t,e){const n=this._map._getUIString(`NavigationControl.${e}`);t.title=n,t.setAttribute("aria-label",n)}},GeolocateControl:class extends t.Evented{constructor(e){super(),this.options=t.extend({},Rr,e),t.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}onAdd(e){var n;return this._map=e,this._container=s.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),n=this._setupUI,void 0!==Fr?n(Fr):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:"geolocation"}).then(t=>{Fr="denied"!==t.state,n(Fr)}):(Fr=!!t.window.navigator.geolocation,n(Fr)),this._container}onRemove(){void 0!==this._geolocationWatchID&&(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),s.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Br=0,Nr=!1}_isOutOfMapMaxBounds(t){const e=this._map.getMaxBounds(),n=t.coords;return e&&(n.longitude<e.getWest()||n.longitude>e.getEast()||n.latitude<e.getSouth()||n.latitude>e.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event("outofmaxbounds",e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(e),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",e)),this._finish()}}_updateCamera(e){const n=new t.LngLat(e.coords.longitude,e.coords.latitude),i=e.coords.accuracy,r=this._map.getBearing(),s=t.extend({bearing:r},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(i),s,{geolocateSource:!0})}_updateMarker(e){if(e){const n=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),n=this._map.unproject([100,t]),i=e.distanceTo(n)/100,r=Math.ceil(2*this._accuracy/i);this._circleElement.style.width=`${r}px`,this._circleElement.style.height=`${r}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_onError(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===e.code&&Nr)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",e)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(e){if(this._container.addEventListener("contextmenu",t=>t.preventDefault()),this._geolocateButton=s.create("button","mapboxgl-ctrl-geolocate",this._container),s.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===e){t.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e)}else{const t=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","fal
1se"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=s.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Or(this._dotElement),this._circleElement=s.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Or({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",e=>{e.geolocateSource||"ACTIVE_LOCK"!==this._watchState||e.originalEvent&&"resize"===e.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new t.Event("trackuserlocationend")))})}trigger(){if(!this._setup)return t.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Br--,Nr=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Br++,Br>1?(e={maximumAge:6e5,timeout:0},Nr=!0):(e=this.options.positionOptions,Nr=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:xr,ScaleControl:class{constructor(e){this.options=t.extend({},Ur,e),t.bindAll(["_onMove","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_onMove(){Hr(this._map,this._container,this.options)}onAdd(t){return this._map=t,this._container=s.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){s.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}setUnit(t){this.options.unit=t,Hr(this._map,this._container,this.options)}},FullscreenControl:class{constructor(e){this._fullscreen=!1,e&&e.container&&(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce("Full screen control 'container' must be a DOM element.")),t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in t.window.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in t.window.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=s.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",t.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){s.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!t.window.document.fullscreenEnabled&&!t.window.document.webkitFullscreenEnabled)}_setupUI(){const e=this._fullscreenButton=s.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);s.create("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden",!0),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.title=t}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(t.window.document.fullscreenElement||t.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.webkitCancelFullScreen&&t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends t.Evented{constructor(e){super(),this.options=t.extend(Object.create(Vr),e),t.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}addTo(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new t.Event("open")),this}isOpen(){return!!this._map}remove(){return this._content&&s.remove(this._content),this._container&&(s.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new t.Event("close")),this}getLngLat(){return this._lngLat}
1setLngLat(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(t.window.document.createTextNode(e))}setHTML(e){const n=t.window.document.createDocumentFragment(),i=t.window.document.createElement("body");let r;for(i.innerHTML=e;r=i.firstChild,r;)n.appendChild(r);return this.setDOMContent(n)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(t){return this.options.maxWidth=t,this._update(),this}setDOMContent(t){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=s.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(t),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(t){this._container&&this._container.classList.add(t)}removeClassName(t){this._container&&this._container.classList.remove(t)}setOffset(t){return this.options.offset=t,this._update(),this}toggleClassName(t){if(this._container)return this._container.classList.toggle(t)}_createCloseButton(){this.options.closeButton&&(this._closeButton=s.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="&#215;",this._closeButton.addEventListener("click",this._onClose))}_onMouseUp(t){this._update(t.point)}_onMouseMove(t){this._update(t.point)}_onDrag(t){this._update(t.point)}_update(t){if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(this._container||(this._container=s.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=s.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(t=>this._container.classList.add(t)),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Cr(this._lngLat,this._pos,this._map.transform)),this._trackPointer&&!t)return;const e=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat);let n=this.options.anchor;const i=qr(this.options.offset);if(!n){const t=this._container.offsetWidth,r=this._container.offsetHeight;let s;s=e.y+i.bottom.y<r?["top"]:e.y>this._map.transform.height-r?["bottom"]:[],e.x<t/2?s.push("left"):e.x>this._map.transform.width-t/2&&s.push("right"),n=0===s.length?"bottom":s.join("-")}const r=e.add(i[n]).round();this._map._requestDomTask(()=>{this._container&&n&&(s.setTransform(this._container,`${Pr[n]} translate(${r.x}px,${r.y}px)`),Mr(this._container,n,"popup"))})}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const t=this._container.querySelector($r);t&&t.focus()}_onClose(){this.remove()}_setOpacity(t){this._content&&(this._content.style.opacity=t),this._tip&&(this._tip.style.opacity=t)}},Marker:Or,Style:He,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.pointGeometry,MercatorCoordinate:t.MercatorCoordinate,FreeCameraOptions:bi,Evented:t.Evented,config:t.config,prewarm:function(){Lt().acquire(At)},clearPrewarmedResources:function(){const t=Dt;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(At),Dt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return zt.workerCount},set workerCount(t){zt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage(e){t.clearTileCache(e)},workerUrl:"",workerClass:null,setNow:t.exported.setNow,restoreNow:t.exported.restoreNow};return Gr}),n}()},T7iU:function(t,e,n){"object"==typeof navigator&&(t.exports=function(){"use strict";function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?i(Object(r),!0).forEach(function(e){n(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var s={addCSS:!0,thumbWidth:15,watch:!0};function o(t,e){return(function(){return Array.from(document.querySelectorAll(e)).includes(this)}).call(t,e)}var a=function(t){return null!=t?t.constructor:null},l=function(t,e){return!!(t&&e&&t instanceof e)},c=function(t){return a(t)===String},u=function(t){return Array.isArray(t)},h=function(t){return l(t,NodeList)},d=c,p=u,m=h,g=function(t){return l(t,Element)},f=function(t){return l(t,Event)},_=function(t){return function(t){return null==t}(t)||(c(t)||u(t)||h(t))&&!t.length||function(t){return a(t)===Object}(t)&&!Object.keys(t).length},v=function(){function t(e,n){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),g(e)?this.element=e:d(e)&&(this.element=document.querySelector(e)),g(this.element)&&_(this.element.rangeTouch)&&(this.config=r({},s,{},n),this.init())}return function(t,n,i){n&&e(t.prototype,n),i&&e(t,i)}(t,[{key:"init",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(t){var e=this,n=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(t){e.element[n](t,function(t){return e.set(t)},!1)})}},{key:"get",value:function(e){if(!t.enabled||!f(e))return null;var n,i=e.target,r=e.changedTouches[0],s=parseFloat(i.getAttribute("min"))||0,o=parseFloat(i.getAttribute("max"))||100,a=parseFloat(i.getAttribute("step"))||1,l=i.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(n=100/l.width*(r.clientX-l.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*c:50<n&&(n+=2*(n-50)*c),s+function(t,e){if(1>e){var n=function(t){var e="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}(e);return parseFloat(t.toFixed(n))}return Math.round(t/e)*e}(n/100*(o-s),a)}},{key:"set",value:function(e){t.enabled&&f(e)&&!e.target.disabled&&(e.preventDefault(),e.target.value=this.get(e),function(t,e){if(t&&e){var n=new Event(e,{bubbles:!0});t.dispatchEvent(n)}}(e.target,"touchend"===e.type?"change":"input"))}}],[{key:"setup",value:function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(_(e)||d(e)?i=Array.from(document.querySelectorAll(d(e)?e:'input[type="range"]')):g(e)?i=[e]:m(e)?i=Array.from(e):p(e)&&(i=e.filter(g)),_(i))return null;var a=r({},s,{},n);return d(e)&&a.watch&&new MutationObserver(function(n){Array.from(n).forEach(function(n){Array.from(n.addedNodes).forEach(function(n){g(n)&&o(n,e)&&new t(n,a)})})}).observe(document.body,{childList:!0,subtree:!0}),i.map(function(e){return new t(e,n)})}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),t}();const y=t=>null!=t?t.constructor:null,x=(t,e)=>Boolean(t&&e&&t instanceof e),b=t=>null==t,w=t=>y(t)===Object,C=t=>y(t)===String,P=t=>y(t)===Function,M=t=>Array.isArray(t),O=t=>x(t,NodeList),S=t=>b(t)||(C(t)||M(t)||O(t))&&!t.length||w(t)&&!Object.keys(t).length;var k=b,T=w,E=t=>y(t)===Number&&!Number.isNaN(t),I=C,A=t=>y(t)===Boolean,z=P,D=M,L=O,R=t=>null!==t&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument,F=t=>x(t,Event),B=t=>x(t,KeyboardEvent),N=t=>x(t,TextTrack)||!b(t)&&C(t.kind),U=t=>{if(x(t,window.URL))return!0;if(!C(t))return!1;let e=t;t.startsWith("http://")&&t.startsWith("https://")||(e=`http://${t}`);try{return!S(new URL(e).hostname)}catch(t){return!1}},H=S;const j=(()=>{const t=document.createElement("span"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n=Object.keys(e).find(e=>void 0!==t.style[e]);return!!I(n)&&e[n]})();function V(t,e){setTimeout(()=>{try{t.hidden=!0,t.hidden=!1}catch(t){}},e)}const $={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function q(t,e){return e.split(".").reduce((t,e)=>t&&t[e],t)}function G(t={},...e){if(!e.length)return t;const n=e.shift();
1return T(n)?(Object.keys(n).forEach(e=>{T(n[e])?(Object.keys(t).includes(e)||Object.assign(t,{[e]:{}}),G(t[e],n[e])):Object.assign(t,{[e]:n[e]})}),G(t,...e)):t}function Z(t,e){Array.from(t.length?t:[t]).reverse().forEach((t,n)=>{const i=n>0?e.cloneNode(!0):e,r=t.parentNode,s=t.nextSibling;i.appendChild(t),s?r.insertBefore(i,s):r.appendChild(i)})}function W(t,e){R(t)&&!H(e)&&Object.entries(e).filter(([,t])=>!k(t)).forEach(([e,n])=>t.setAttribute(e,n))}function X(t,e,n){const i=document.createElement(t);return T(e)&&W(i,e),I(n)&&(i.innerText=n),i}function Q(t,e,n,i){R(e)&&e.appendChild(X(t,n,i))}function K(t){L(t)||D(t)?Array.from(t).forEach(K):R(t)&&R(t.parentNode)&&t.parentNode.removeChild(t)}function Y(t){if(!R(t))return;let{length:e}=t.childNodes;for(;e>0;)t.removeChild(t.lastChild),e-=1}function J(t,e){return R(e)&&R(e.parentNode)&&R(t)?(e.parentNode.replaceChild(t,e),t):null}function tt(t,e){if(!I(t)||H(t))return{};const n={},i=G({},e);return t.split(",").forEach(t=>{const e=t.trim(),r=e.replace(".",""),s=e.replace(/[[\]]/g,"").split("="),[o]=s,a=s.length>1?s[1].replace(/["']/g,""):"";switch(e.charAt(0)){case".":n.class=I(i.class)?`${i.class} ${r}`:r;break;case"#":n.id=e.replace("#","");break;case"[":n[o]=a}}),G(i,n)}function et(t,e){if(!R(t))return;let n=e;A(n)||(n=!t.hidden),t.hidden=n}function nt(t,e,n){if(L(t))return Array.from(t).map(t=>nt(t,e,n));if(R(t)){let i="toggle";return void 0!==n&&(i=n?"add":"remove"),t.classList[i](e),t.classList.contains(e)}return!1}function it(t,e){return R(t)&&t.classList.contains(e)}function rt(t,e){const{prototype:n}=Element;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(){return Array.from(document.querySelectorAll(e)).includes(this)}).call(t,e)}function st(t){return this.elements.container.querySelectorAll(t)}function ot(t){return this.elements.container.querySelector(t)}function at(t=null,e=!1){R(t)&&(t.focus({preventScroll:!0}),e&&nt(t,this.config.classNames.tabFocus))}const lt={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},ct={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(t,e,n){const i=ct[t]||"html5"!==e;return{api:i,ui:i&&ct.rangeInput&&("video"!==t||!$.isIPhone||$.isIPhone&&n&&ct.playsinline)}},pip:!($.isIPhone||!z(X("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||X("video").disablePictureInPicture)),airplay:z(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(t){if(H(t))return!1;const[e]=t.split("/");let n=t;if(!this.isHTML5||e!==this.type)return!1;Object.keys(lt).includes(n)&&(n+=`; codecs="${lt[t]}"`);try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(t){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const t=document.createElement("input");return t.type="range","range"===t.type})(),touch:"ontouchstart"in document.documentElement,transitions:!1!==j,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},ut=(()=>{let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(t=!0,null)});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t})();function ht(t,e,n,i=!1,r=!0,s=!1){if(!t||!("addEventListener"in t)||H(e)||!z(n))return;const o=e.split(" ");let a=s;ut&&(a={passive:r,capture:s}),o.forEach(e=>{this&&this.eventListeners&&i&&this.eventListeners.push({element:t,type:e,callback:n,options:a}),t[i?"addEventListener":"removeEventListener"](e,n,a)})}function dt(t,e="",n,i=!0,r=!1){ht.call(this,t,e,n,!0,i,r)}function pt(t,e="",n,i=!0,r=!1){ht.call(this,t,e,n,!1,i,r)}function mt(t,e="",n,i=!0,r=!1){const s=(...o)=>{pt(t,e,s,i,r),n.apply(this,o)};ht.call(this,t,e,s,!0,i,r)}function gt(t,e="",n=!1,i={}){if(!R(t)||H(e))return;const r=new CustomEvent(e,{bubbles:n,detail:{...i,plyr:this}});t.dispatchEvent(r)}function ft(){this&&this.eventListeners&&(this.eventListeners.forEac
1h(t=>{const{element:e,type:n,callback:i,options:r}=t;e.removeEventListener(n,i,r)}),this.eventListeners=[])}function _t(){return new Promise(t=>this.ready?setTimeout(t,0):dt.call(this,this.elements.container,"ready",t)).then(()=>{})}function vt(t){(t=>x(t,Promise)&&P(t.then))(t)&&t.then(null,()=>{})}function yt(t){return D(t)?t.filter((e,n)=>t.indexOf(e)===n):t}function xt(t,e){return D(t)&&t.length?t.reduce((t,n)=>Math.abs(n-e)<Math.abs(t-e)?n:t):null}function bt(t){return!(!window||!window.CSS)&&window.CSS.supports(t)}const wt=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((t,[e,n])=>({...t,[e/n]:[e,n]}),{});function Ct(t){return!!(D(t)||I(t)&&t.includes(":"))&&(D(t)?t:t.split(":")).map(Number).every(E)}function Pt(t){if(!D(t)||!t.every(E))return null;const[e,n]=t,i=(t,e)=>0===e?t:i(e,t%e),r=i(e,n);return[e/r,n/r]}function Mt(t){const e=t=>Ct(t)?t.split(":").map(Number):null;let n=e(t);if(null===n&&(n=e(this.config.ratio)),null===n&&!H(this.embed)&&D(this.embed.ratio)&&({ratio:n}=this.embed),null===n&&this.isHTML5){const{videoWidth:t,videoHeight:e}=this.media;n=[t,e]}return Pt(n)}function Ot(t){if(!this.isVideo)return{};const{wrapper:e}=this.elements,n=Mt.call(this,t);if(!D(n))return{};const[i,r]=Pt(n),s=100/i*r;if(bt(`aspect-ratio: ${i}/${r}`)?e.style.aspectRatio=`${i}/${r}`:e.style.paddingBottom=`${s}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const t=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),n=(t-s)/(t/50);this.fullscreen.active?e.style.paddingBottom=null:this.media.style.transform=`translateY(-${n}%)`}else this.isHTML5&&e.classList.add(this.config.classNames.videoFixedRatio);return{padding:s,ratio:n}}function St(t,e,n=.05){const i=t/e,r=xt(Object.keys(wt),i);return Math.abs(r-i)<=n?wt[r]:[t,e]}const kt={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(t=>{const e=t.getAttribute("type");return!!H(e)||ct.mime.call(this,e)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:kt.getSources.call(this).map(t=>Number(t.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const t=this;t.options.speed=t.config.speed.options,H(this.config.ratio)||Ot.call(t),Object.defineProperty(t.media,"quality",{get(){const e=kt.getSources.call(t).find(e=>e.getAttribute("src")===t.source);return e&&Number(e.getAttribute("size"))},set(e){if(t.quality!==e){if(t.config.quality.forced&&z(t.config.quality.onChange))t.config.quality.onChange(e);else{const n=kt.getSources.call(t).find(t=>Number(t.getAttribute("size"))===e);if(!n)return;const{currentTime:i,paused:r,preload:s,readyState:o,playbackRate:a}=t.media;t.media.src=n.getAttribute("src"),("none"!==s||o)&&(t.once("loadedmetadata",()=>{t.speed=a,t.currentTime=i,r||vt(t.play())}),t.media.load())}gt.call(t,t.media,"qualitychange",!1,{quality:e})}}})},cancelRequests(){this.isHTML5&&(K(kt.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Tt(t,...e){return H(t)?t:t.toString().replace(/{(\d+)}/g,(t,n)=>e[n].toString())}const Et=(t="",e="",n="")=>t.replace(new RegExp(e.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),n.toString()),It=(t="")=>t.toString().replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase());function At(t){const e=document.createElement("div");return e.appendChild(t),e.innerHTML}const zt={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Dt={get(t="",e={}){if(H(t)||H(e))return"";let n=q(e.i18n,t);return H(n)?Object.keys(zt).includes(t)?zt[t]:"":(Object.entries({"{seektime}":e.seekTime,"{title}":e.title}
1).forEach(([t,e])=>{n=Et(n,t,e)}),n)}};class Lt{constructor(e){t(this,"get",t=>{if(!Lt.supported||!this.enabled)return null;const e=window.localStorage.getItem(this.key);if(H(e))return null;const n=JSON.parse(e);return I(t)&&t.length?n[t]:n}),t(this,"set",t=>{if(!Lt.supported||!this.enabled)return;if(!T(t))return;let e=this.get();H(e)&&(e={}),G(e,t),window.localStorage.setItem(this.key,JSON.stringify(e))}),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const t="___test";return window.localStorage.setItem(t,t),window.localStorage.removeItem(t),!0}catch(t){return!1}}}function Rt(t,e="text"){return new Promise((n,i)=>{try{const i=new XMLHttpRequest;if(!("withCredentials"in i))return;i.addEventListener("load",()=>{if("text"===e)try{n(JSON.parse(i.responseText))}catch(t){n(i.responseText)}else n(i.response)}),i.addEventListener("error",()=>{throw new Error(i.status)}),i.open("GET",t,!0),i.responseType=e,i.send()}catch(t){i(t)}})}function Ft(t,e){if(!I(t))return;const n=I(e);let i=!1;const r=()=>null!==document.getElementById(e),s=(t,e)=>{t.innerHTML=e,n&&r()||document.body.insertAdjacentElement("afterbegin",t)};if(!n||!r()){const r=Lt.supported,o=document.createElement("div");if(o.setAttribute("hidden",""),n&&o.setAttribute("id",e),r){const t=window.localStorage.getItem(`cache-${e}`);if(i=null!==t,i){const e=JSON.parse(t);s(o,e.content)}}Rt(t).then(t=>{H(t)||(r&&window.localStorage.setItem(`cache-${e}`,JSON.stringify({content:t})),s(o,t))}).catch(()=>{})}}const Bt=t=>Math.trunc(t/60/60%60,10);function Nt(t=0,e=!1,n=!1){if(!E(t))return Nt(void 0,e,n);const i=t=>`0${t}`.slice(-2);let r=Bt(t);const s=Math.trunc(t/60%60,10),o=(t=>Math.trunc(t%60,10))(t);return r=e||r>0?`${r}:`:"",`${n&&t>0?"-":""}${r}${i(s)}:${i(o)}`}const Ut={getIconUrl(){const t=new URL(this.config.iconUrl,window.location).host!==window.location.host||$.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=ot.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:st.call(this,this.config.selectors.buttons.play),pause:ot.call(this,this.config.selectors.buttons.pause),restart:ot.call(this,this.config.selectors.buttons.restart),rewind:ot.call(this,this.config.selectors.buttons.rewind),fastForward:ot.call(this,this.config.selectors.buttons.fastForward),mute:ot.call(this,this.config.selectors.buttons.mute),pip:ot.call(this,this.config.selectors.buttons.pip),airplay:ot.call(this,this.config.selectors.buttons.airplay),settings:ot.call(this,this.config.selectors.buttons.settings),captions:ot.call(this,this.config.selectors.buttons.captions),fullscreen:ot.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=ot.call(this,this.config.selectors.progress),this.elements.inputs={seek:ot.call(this,this.config.selectors.inputs.seek),volume:ot.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:ot.call(this,this.config.selectors.display.buffer),currentTime:ot.call(this,this.config.selectors.display.currentTime),duration:ot.call(this,this.config.selectors.display.duration)},R(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(t){return this.debug.warn("It looks like there is a problem with your custom controls HTML",t),this.toggleNativeControls(!0),!1}},createIcon(t,e){const n="http://www.w3.org/2000/svg",i=Ut.getIconUrl.call(this),r=`${i.cors?"":i.url}#${this.config.iconPrefix}`,s=document.createElementNS(n,"svg");W(s,G(e,{"aria-hidden":"true",focusable:"false"}));const o=document.createElementNS(n,"use"),a=`${r}-${t}`;return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",a),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),s.appendChild(o),s},createLabel(t,e={}){const n=Dt.get(t,this.config);return X("span",{...e,class:[e.class,this.config.classNames.hidden].filter(Boolean).join(" ")},n)},createBadge(t){if(H(t))return null;const e=X("span",{class:this.config.classNames.menu.value});return e.appendChild(X("span",{class:this.config.classNames.menu.badge},t)),e},createButton(t,e){const n=G({},e);let i=function(t=""){let e=t.toString();return e=function(t=""){let e=t.toString();return e=Et(e,"-"," "),e=Et(e,"_"," "),e=It(e),Et(e," ","")}(e),e.charAt(0).toLowerCase()+e.slice(1)}(t);const r={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(t=>{Object.keys(n).includes(t)&&(r[t]=n[t],delete n[t])}),"button"!==r.element||Object.keys(n).includes("type")||(n.type="button"),Object.keys(n).includes("class")?n.class.split(" ").some(t=>
1t===this.config.classNames.control)||G(n,{class:`${n.class} ${this.config.classNames.control}`}):n.class=this.config.classNames.control,t){case"play":r.toggle=!0,r.label="play",r.labelPressed="pause",r.icon="play",r.iconPressed="pause";break;case"mute":r.toggle=!0,r.label="mute",r.labelPressed="unmute",r.icon="volume",r.iconPressed="muted";break;case"captions":r.toggle=!0,r.label="enableCaptions",r.labelPressed="disableCaptions",r.icon="captions-off",r.iconPressed="captions-on";break;case"fullscreen":r.toggle=!0,r.label="enterFullscreen",r.labelPressed="exitFullscreen",r.icon="enter-fullscreen",r.iconPressed="exit-fullscreen";break;case"play-large":n.class+=` ${this.config.classNames.control}--overlaid`,i="play",r.label="play",r.icon="play";break;default:H(r.label)&&(r.label=i),H(r.icon)&&(r.icon=t)}const s=X(r.element);return r.toggle?(s.appendChild(Ut.createIcon.call(this,r.iconPressed,{class:"icon--pressed"})),s.appendChild(Ut.createIcon.call(this,r.icon,{class:"icon--not-pressed"})),s.appendChild(Ut.createLabel.call(this,r.labelPressed,{class:"label--pressed"})),s.appendChild(Ut.createLabel.call(this,r.label,{class:"label--not-pressed"}))):(s.appendChild(Ut.createIcon.call(this,r.icon)),s.appendChild(Ut.createLabel.call(this,r.label))),G(n,tt(this.config.selectors.buttons[i],n)),W(s,n),"play"===i?(D(this.elements.buttons[i])||(this.elements.buttons[i]=[]),this.elements.buttons[i].push(s)):this.elements.buttons[i]=s,s},createRange(t,e){const n=X("input",G(tt(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Dt.get(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},e));return this.elements.inputs[t]=n,Ut.updateRangeFill.call(this,n),v.setup(n),n},createProgress(t,e){const n=X("progress",G(tt(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},e));if("volume"!==t){n.appendChild(X("span",null,"0"));const e={played:"played",buffer:"buffered"}[t],i=e?Dt.get(e,this.config):"";n.innerText=`% ${i.toLowerCase()}`}return this.elements.display[t]=n,n},createTime(t,e){const n=tt(this.config.selectors.display[t],e),i=X("div",G(n,{class:`${n.class?n.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":Dt.get(t,this.config)}),"00:00");return this.elements.display[t]=i,i},bindMenuItemShortcuts(t,e){dt.call(this,t,"keydown keyup",n=>{if(![32,38,39,40].includes(n.which))return;if(n.preventDefault(),n.stopPropagation(),"keydown"===n.type)return;const i=rt(t,'[role="menuitemradio"]');if(!i&&[32,39].includes(n.which))Ut.showMenuPanel.call(this,e,!0);else{let e;32!==n.which&&(40===n.which||i&&39===n.which?(e=t.nextElementSibling,R(e)||(e=t.parentNode.firstElementChild)):(e=t.previousElementSibling,R(e)||(e=t.parentNode.lastElementChild)),at.call(this,e,!0))}},!1),dt.call(this,t,"keyup",t=>{13===t.which&&Ut.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:t,list:e,type:n,title:i,badge:r=null,checked:s=!1}){const o=tt(this.config.selectors.inputs[n]),a=X("button",G(o,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${o.class?o.class:""}`.trim(),"aria-checked":s,value:t})),l=X("span");l.innerHTML=i,R(r)&&l.appendChild(r),a.appendChild(l),Object.defineProperty(a,"checked",{enumerable:!0,get:()=>"true"===a.getAttribute("aria-checked"),set(t){t&&Array.from(a.parentNode.children).filter(t=>rt(t,'[role="menuitemradio"]')).forEach(t=>t.setAttribute("aria-checked","false")),a.setAttribute("aria-checked",t?"true":"false")}}),this.listeners.bind(a,"click keyup",e=>{if(!B(e)||32===e.which){switch(e.preventDefault(),e.stopPropagation(),a.checked=!0,n){case"language":this.currentTrack=Number(t);break;case"quality":this.quality=t;break;case"speed":this.speed=parseFloat(t)}Ut.showMenuPanel.call(this,"home",B(e))}},n,!1),Ut.bindMenuItemShortcuts.call(this,a,n),e.appendChild(a)},formatTime(t=0,e=!1){return E(t)?Nt(t,Bt(this.duration)>0,e):t},updateTimeDisplay(t=null,e=0,n=!1){R(t)&&E(e)&&(t.innerText=Ut.formatTime(e,n))},updateVolume(){this.supported.ui&&(R(this.elements.inputs.volume)&&Ut.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),R(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange(t,e=0){R(t)&&(t.value=e,Ut.updateRangeFill.call(this,t))},updateProgress(t){if(!this.supported.ui||!F(t))return;let e=0;const n=(t,e)=>{const n=E(e)?e:0,i=R(t)?t:this.elements.display.buffer;if(R(i)){i.value=n;const t=i.getElementsByTagName("span")[0];R(t)&&(t.childNodes[0].nodeValue=n)}};if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":r=this.duration,e=0===(i=this.currentTime)||0===r||Number.isNaN(i)||Number.isNaN(r)?0:(i/r*100).toFixed(2),"timeupdate"===t.type&&Ut.setRange.call(this,this.elements.inputs.seek,e);break;case"playing":case"progress":n(this.elements.display.buffer,100*this.buffered)}var i,r},updateRangeFill(t){const e=F(t)?t.target:t;if(R(e)&&"range"===e.getAttribute("type")){if(rt(e,this.config.selectors.inputs.seek)){e.setAttribute("aria-valuenow",this.currentTime);const t=Ut.formatTime(this.currentTime),n=Ut.formatTime(this.duration),i=Dt.get("seekLabel",this.config);e.setAttribute("aria-valuetext",i.replace("{currentTime}",t).replace("{duration}",n))}else if(rt(e,this.config.selectors.inputs.volume)){const t=100*e.value;e.setAttribute("aria-valuenow",t),e.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else e.setAttribute("aria-valuenow",e.value);$.isWebkit&&e.style.setProperty("--value",e.value/e.max*100+"%")}},updateSeekTooltip(t){if(!this.config.tooltips.seek||!R(this.elements.inputs.seek)||!R(this.elements.display.seekTooltip)||0===this.duration)return;const e=`${this.config.classNames.tooltip}--visible`,n=t=>nt(this.elements.display.seekTooltip,e,t);if(this.touch)return void n(!1);let i=0;const r=this.elements.progress.getBoundingClientRect();if(F(t))i=100/r.width*(t.pageX-r.left);else{if(!it(this.elements.display.seekTooltip,e))return;i=parseFloat(this.elements.display.seekTooltip.style.left,10)}i<0?i=0:i>100&&(i=100),Ut.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*i),this.elements.display.seekTooltip.style.left=`${i}%`,F(t)&&["mouseenter","mouseleave"].includes(t.type)&&n("mouseenter"
1===t.type)},timeUpdate(t){const e=!R(this.elements.display.duration)&&this.config.invertTime;Ut.updateTimeDisplay.call(this,this.elements.display.currentTime,e?this.duration-this.currentTime:this.currentTime,e),t&&"timeupdate"===t.type&&this.media.seeking||Ut.updateProgress.call(this,t)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return et(this.elements.display.currentTime,!0),void et(this.elements.progress,!0);R(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const t=R(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&Ut.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&Ut.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),Ut.updateSeekTooltip.call(this)},toggleMenuButton(t,e){et(this.elements.settings.buttons[t],!e)},updateSetting(t,e,n){const i=this.elements.settings.panels[t];let r=null,s=e;if("captions"===t)r=this.currentTrack;else{if(r=H(n)?this[t]:n,H(r)&&(r=this.config[t].default),!H(this.options[t])&&!this.options[t].includes(r))return void this.debug.warn(`Unsupported value of '${r}' for ${t}`);if(!this.config[t].options.includes(r))return void this.debug.warn(`Disabled value of '${r}' for ${t}`)}if(R(s)||(s=i&&i.querySelector('[role="menu"]')),!R(s))return;this.elements.settings.buttons[t].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=Ut.getLabel.call(this,t,r);const o=s&&s.querySelector(`[value="${r}"]`);R(o)&&(o.checked=!0)},getLabel(t,e){switch(t){case"speed":return 1===e?Dt.get("normal",this.config):`${e}&times;`;case"quality":if(E(e)){const t=Dt.get(`qualityLabel.${e}`,this.config);return t.length?t:`${e}p`}return It(e);case"captions":return Vt.getLabel.call(this);default:return null}},setQualityMenu(t){if(!R(this.elements.settings.panels.quality))return;const e="quality",n=this.elements.settings.panels.quality.querySelector('[role="menu"]');D(t)&&(this.options.quality=yt(t).filter(t=>this.config.quality.options.includes(t)));const i=!H(this.options.quality)&&this.options.quality.length>1;if(Ut.toggleMenuButton.call(this,e,i),Y(n),Ut.checkMenu.call(this),!i)return;const r=t=>{const e=Dt.get(`qualityBadge.${t}`,this.config);return e.length?Ut.createBadge.call(this,e):null};this.options.quality.sort((t,e)=>{const n=this.config.quality.options;return n.indexOf(t)>n.indexOf(e)?1:-1}).forEach(t=>{Ut.createMenuItem.call(this,{value:t,list:n,type:e,title:Ut.getLabel.call(this,"quality",t),badge:r(t)})}),Ut.updateSetting.call(this,e,n)},setCaptionsMenu(){if(!R(this.elements.settings.panels.captions))return;const t="captions",e=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=Vt.getTracks.call(this),i=Boolean(n.length);if(Ut.toggleMenuButton.call(this,t,i),Y(e),Ut.checkMenu.call(this),!i)return;const r=n.map((t,n)=>({value:n,checked:this.captions.toggled&&this.currentTrack===n,title:Vt.getLabel.call(this,t),badge:t.language&&Ut.createBadge.call(this,t.language.toUpperCase()),list:e,type:"language"}));r.unshift({value:-1,checked:!this.captions.toggled,title:Dt.get("disabled",this.config),list:e,type:"language"}),r.forEach(Ut.createMenuItem.bind(this)),Ut.updateSetting.call(this,t,e)},setSpeedMenu(){if(!R(this.elements.settings.panels.speed))return;const t="speed",e=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(t=>t>=this.minimumSpeed&&t<=this.maximumSpeed);const n=!H(this.options.speed)&&this.options.speed.length>1;Ut.toggleMenuButton.call(this,t,n),Y(e),Ut.checkMenu.call(this),n&&(this.options.speed.forEach(n=>{Ut.createMenuItem.call(this,{value:n,list:e,type:t,title:Ut.getLabel.call(this,"speed",n)})}),Ut.updateSetting.call(this,t,e))},checkMenu(){const{buttons:t}=this.elements.settings,e=!H(t)&&Object.values(t).some(t=>!t.hidden);et(this.elements.settings.menu,!e)},focusFirstMenuItem(t,e=!1){if(this.elements.settings.popup.hidden)return;let n=t;R(n)||(n=Object.values(this.elements.settings.panels).find(t=>!t.hidden));const i=n.querySelector('[role^="menuitem"]');at.call(this,i,e)},toggleMenu(t){const{popup:e}=this.elements.settings,n=this.elements.buttons.settings;if(!R(e)||!R(n))return;const{hidden:i}=e;let r=i;if(A(t))r=t;else if(B(t)&&27===t.which)r=!1;else if(F(t)){const i=z(t.composedPath)?t.composedPath()[0]:t.target,s=e.contains(i);if(s||!s&&t.target!==n&&r)return}n.setAttribute("aria-expanded",r),et(e,!r),nt(this.elements.container,this.config.classNames.menu.open,r),r&&B(t)?Ut.focusFirstMenuItem.call(this,null,!0):r||i||at.call(this,n,B(t))},getMenuSize(t){const e=t.cloneNode(!0);e.style.position="absolute",e.style.opacity=0,e.removeAttribute("hidden"),t.parentNode.appendChild(e);const n=e.scrollWidth,i=e.scrollHeight;return K(e),{width:n,height:i}},showMenuPanel(t="",e=!1){const n=this.elements.container.querySelector(`#plyr-settings-${this.id}-${t}`);if(!R(n))return;const i=n.parentNode,r=Array.from(i.children).find(t=>!t.hidden);if(ct.transitions&&!ct.reducedMotion){i.style.width=`${r.scrollWidth}px`,i.style.height=`${r.scrollHeight}px`;
1const t=Ut.getMenuSize.call(this,n),e=t=>{t.target===i&&["width","height"].includes(t.propertyName)&&(i.style.width="",i.style.height="",pt.call(this,i,j,e))};dt.call(this,i,j,e),i.style.width=`${t.width}px`,i.style.height=`${t.height}px`}et(r,!0),et(n,!1),Ut.focusFirstMenuItem.call(this,n,e)},setDownloadUrl(){const t=this.elements.buttons.download;R(t)&&t.setAttribute("href",this.download)},create(t){const{bindMenuItemShortcuts:e,createButton:n,createProgress:i,createRange:r,createTime:s,setQualityMenu:o,setSpeedMenu:a,showMenuPanel:l}=Ut;this.elements.controls=null,D(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(n.call(this,"play-large"));const c=X("div",tt(this.config.selectors.controls.wrapper));this.elements.controls=c;const u={class:"plyr__controls__item"};return yt(D(this.config.controls)?this.config.controls:[]).forEach(o=>{if("restart"===o&&c.appendChild(n.call(this,"restart",u)),"rewind"===o&&c.appendChild(n.call(this,"rewind",u)),"play"===o&&c.appendChild(n.call(this,"play",u)),"fast-forward"===o&&c.appendChild(n.call(this,"fast-forward",u)),"progress"===o){const e=X("div",{class:`${u.class} plyr__progress__container`}),n=X("div",tt(this.config.selectors.progress));if(n.appendChild(r.call(this,"seek",{id:`plyr-seek-${t.id}`})),n.appendChild(i.call(this,"buffer")),this.config.tooltips.seek){const t=X("span",{class:this.config.classNames.tooltip},"00:00");n.appendChild(t),this.elements.display.seekTooltip=t}this.elements.progress=n,e.appendChild(this.elements.progress),c.appendChild(e)}if("current-time"===o&&c.appendChild(s.call(this,"currentTime",u)),"duration"===o&&c.appendChild(s.call(this,"duration",u)),"mute"===o||"volume"===o){let{volume:e}=this.elements;R(e)&&c.contains(e)||(e=X("div",G({},u,{class:`${u.class} plyr__volume`.trim()})),this.elements.volume=e,c.appendChild(e)),"mute"===o&&e.appendChild(n.call(this,"mute")),"volume"!==o||$.isIos||e.appendChild(r.call(this,"volume",G({max:1,step:.05,value:this.config.volume},{id:`plyr-volume-${t.id}`})))}if("captions"===o&&c.appendChild(n.call(this,"captions",u)),"settings"===o&&!H(this.config.settings)){const i=X("div",G({},u,{class:`${u.class} plyr__menu`.trim(),hidden:""}));i.appendChild(n.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${t.id}`,"aria-expanded":!1}));const r=X("div",{class:"plyr__menu__container",id:`plyr-settings-${t.id}`,hidden:""}),s=X("div"),o=X("div",{id:`plyr-settings-${t.id}-home`}),a=X("div",{role:"menu"});o.appendChild(a),s.appendChild(o),this.elements.settings.panels.home=o,this.config.settings.forEach(n=>{const i=X("button",G(tt(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));e.call(this,i,n),dt.call(this,i,"click",()=>{l.call(this,n,!1)});const r=X("span",null,Dt.get(n,this.config)),o=X("span",{class:this.config.classNames.menu.value});o.innerHTML=t[n],r.appendChild(o),i.appendChild(r),a.appendChild(i);const c=X("div",{id:`plyr-settings-${t.id}-${n}`,hidden:""}),u=X("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});u.appendChild(X("span",{"aria-hidden":!0},Dt.get(n,this.config))),u.appendChild(X("span",{class:this.config.classNames.hidden},Dt.get("menuBack",this.config))),dt.call(this,c,"keydown",t=>{37===t.which&&(t.preventDefault(),t.stopPropagation(),l.call(this,"home",!0))},!1),dt.call(this,u,"click",()=>{l.call(this,"home",!1)}),c.appendChild(u),c.appendChild(X("div",{role:"menu"})),s.appendChild(c),this.elements.settings.buttons[n]=i,this.elements.settings.panels[n]=c}),r.appendChild(s),i.appendChild(r),c.appendChild(i),this.elements.settings.popup=r,this.elements.settings.menu=i}if("pip"===o&&ct.pip&&c.appendChild(n.call(this,"pip",u)),"airplay"===o&&ct.airplay&&c.appendChild(n.call(this,"airplay",u)),"download"===o){const t=G({},u,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(t.download="");const{download:e}=this.config.urls;!U(e)&&this.isEmbed&&G(t,{icon:`logo-${this.provider}`,label:this.provider}),c.appendChild(n.call(this,"download",t))}"fullscreen"===o&&c.appendChild(n.call(this,"fullscreen",u))}),this.isHTML5&&o.call(this,kt.getQualityOptions.call(this)),a.call(this),c},inject(){if(this.config.loadSprite){const t=Ut.getIconUrl.call(this);t.cors&&Ft(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let t=null;this.elements.controls=null;const e={id:this.id,seektime:this.config.seekTime,title:this.config.title};let n,i=!0;
1if(z(this.config.controls)&&(this.config.controls=this.config.controls.call(this,e)),this.config.controls||(this.config.controls=[]),R(this.config.controls)||I(this.config.controls)?t=this.config.controls:(t=Ut.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Vt.getLabel.call(this)}),i=!1),i&&I(this.config.controls)&&(t=(t=>{let n=t;return Object.entries(e).forEach(([t,e])=>{n=Et(n,`{${t}}`,e)}),n})(t)),I(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),R(n)||(n=this.elements.container),n[R(t)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",t),R(this.elements.controls)||Ut.findElements.call(this),!H(this.elements.buttons)){const t=t=>{const e=this.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:()=>it(t,e),set(n=!1){nt(t,e,n)}})};Object.values(this.elements.buttons).filter(Boolean).forEach(e=>{D(e)||L(e)?Array.from(e).filter(Boolean).forEach(t):t(e)})}if($.isEdge&&V(n),this.config.tooltips.controls){const{classNames:t,selectors:e}=this.config,n=st.call(this,`${e.controls.wrapper} ${e.labels} .${t.hidden}`);Array.from(n).forEach(t=>{nt(t,this.config.classNames.hidden,!1),nt(t,this.config.classNames.tooltip,!0)})}}};function Ht(t,e=!0){let n=t;if(e){const t=document.createElement("a");t.href=n,n=t.href}try{return new URL(n)}catch(t){return null}}function jt(t){const e=new URLSearchParams;return T(t)&&Object.entries(t).forEach(([t,n])=>{e.set(t,n)}),e}const Vt={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!ct.textTracks)return void(D(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Ut.setCaptionsMenu.call(this));var t,e;if(R(this.elements.captions)||(this.elements.captions=X("div",tt(this.config.selectors.captions)),e=this.elements.wrapper,R(t=this.elements.captions)&&R(e)&&e.parentNode.insertBefore(t,e.nextSibling)),$.isIE&&window.URL){const t=this.media.querySelectorAll("track");Array.from(t).forEach(t=>{const e=t.getAttribute("src"),n=Ht(e);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&Rt(e,"blob").then(e=>{t.setAttribute("src",window.URL.createObjectURL(e))}).catch(()=>{K(t)})})}const n=yt((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(t=>t.split("-")[0]));let i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===i&&([i]=n);let r=this.storage.get("captions");A(r)||({active:r}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:r,language:i,languages:n}),this.isHTML5&&dt.call(this,this.media.textTracks,this.config.captions.update?"addtrack removetrack":"removetrack",Vt.update.bind(this)),setTimeout(Vt.update.bind(this),0)},update(){const t=Vt.getTracks.call(this,!0),{active:e,language:n,meta:i,currentTrackNode:r}=this.captions,s=Boolean(t.find(t=>t.language===n));this.isHTML5&&this.isVideo&&t.filter(t=>!i.get(t)).forEach(t=>{this.debug.log("Track added",t),i.set(t,{default:"showing"===t.mode}),"showing"===t.mode&&(t.mode="hidden"),dt.call(this,t,"cuechange",()=>Vt.updateCues.call(this))}),(s&&this.language!==n||!t.includes(r))&&(Vt.setLanguage.call(this,n),Vt.toggle.call(this,e&&s)),nt(this.elements.container,this.config.classNames.captions.enabled,!H(t)),D(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Ut.setCaptionsMenu.call(this)},toggle(t,e=!0){if(!this.supported.ui)return;const{toggled:n}=this.captions,i=this.config.classNames.captions.active,r=k(t)?!n:t;if(r!==n){if(e||(this.captions.active=r,this.storage.set({captions:r})),!this.language&&r&&!e){const t=Vt.getTracks.call(this),e=Vt.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=e.language,void Vt.set.call(this,t.indexOf(e))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=r),nt(this.elements.container,i,r),this.captions.toggled=r,Ut.updateSetting.call(this,"captions"),gt.call(this,this.media,r?"captionsenabled":"captionsdisabled")}setTimeout(()=>{r&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(t,e=!0){const n=Vt.getTracks.call(this);if(-1!==t)if(E(t))if(t in n){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;const i=n[t],{language:r}=i||{};this.captions.currentTrackNode=i,Ut.updateSetting.call(this,"captions"),e||(this.captions.language=r,this.storage.set({language:r})),this.isVimeo&&this.embed.enableTextTrack(r),gt.call(this,this.media,"languagechange")}Vt.toggle.call(this,!0,e),this.isHTML5&&this.isVideo&&Vt.updateCues.call(this)}else this.debug.warn("Track not found",t);else this.debug.warn("Invalid caption argument",t);else Vt.toggle.call(this,!1,e)},setLanguage(t,e=!0){if(!I(t))return void this.debug.warn("Invalid language argument",t);const n=t.toLowerCase();this.captions.language=n;const i=Vt.getTracks.call(this),r=Vt.findTrack.call(this,[n]);Vt.set.call(this,i.indexOf(r),e)},getTracks(t=!1){return Array.from((this.media||{}).textTracks||[]).filter(e=>!this.isHTML5||t||this.captions.meta.has(e)).filter(t=>["captions","subtitles"].includes(t.kind))},findTrack(t,e=!1){const n=Vt.getTracks.call(this),i=t=>Number((this.captions.meta.get(t)||{}).default),r=Array.from(n).sort((t,e)=>i(e)-i(t));let s;return t.every(t=>(s=r.find(e=>e.language===t),!s)),s||(e?r[0]:void 0)},getCurrentTrack(){return Vt.getTracks.call(this)[this.currentTrack]},getLabel(t){let e=t;return!N(e)&&ct.textTracks&&this.captions.toggled&&(e=Vt.getCurrentTrack.call(this)),N(e)?H(e.label)?H(e.language)?Dt.get("enabled",this.config):t.language.toUpperCase():e.label:Dt.get("disabled",this.config)},updateCues(t){if(!this.supported.ui)return;if(!R(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!k(t)&&!Array.isArray(t))return void this.debug.warn("updateCues: Invalid input",t);let e=t;if(!e){const t=Vt.getCurrentTrack.call(this);e=Array.from((t||{}).activeCues||[]).map(t=>t.getCueAsHTML()).map(At)}const n=e.map(t=>t.trim()).join("\n");if(n!==this.elements.captions.innerHTML){Y(this.elements.captions);const t=X("span",tt(this.config.selectors.caption));t.innerHTML=n,this.elements.captions.appendChild(t),gt.call(this,this.media,"cuechange")}}},$t={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"S
1D"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1}},qt="picture-in-picture",Gt={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Zt="video",Wt=()=>{};class Xt{constructor(t=!1){this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Wt}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Wt}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Wt}}class Qt{constructor(e){t(this,"onChange",()=>{if(!this.enabled)return;const t=this.player.elements.buttons.fullscreen;R(t)&&(t.pressed=this.active),gt.call(this.player,this.target===this.player.media?this.target:this.player.elements.container,this.active?"enterfullscreen":"exitfullscreen",!0)}),t(this,"toggleFallback",(t=!1)=>
1{if(t?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",nt(this.target,this.player.config.classNames.fullscreen.fallback,t),$.isIos){let e=document.head.querySelector('meta[name="viewport"]');const n="viewport-fit=cover";e||(e=document.createElement("meta"),e.setAttribute("name","viewport"));const i=I(e.content)&&e.content.includes(n);t?(this.cleanupViewport=!i,i||(e.content+=`,${n}`)):this.cleanupViewport&&(e.content=e.content.split(",").filter(t=>t.trim()!==n).join(","))}this.onChange()}),t(this,"trapFocus",t=>{if($.isIos||!this.active||"Tab"!==t.key||9!==t.keyCode)return;const e=document.activeElement,n=st.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[i]=n,r=n[n.length-1];e!==r||t.shiftKey?e===i&&t.shiftKey&&(r.focus(),t.preventDefault()):(i.focus(),t.preventDefault())}),t(this,"update",()=>{if(this.enabled){let t;t=this.forceFallback?"Fallback (forced)":Qt.native?"Native":"Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");nt(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}),t(this,"enter",()=>{this.enabled&&($.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!Qt.native||this.forceFallback?this.toggleFallback(!0):this.prefix?H(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),t(this,"exit",()=>{this.enabled&&($.isIos&&this.player.config.fullscreen.iosNative?(this.target.webkitExitFullscreen(),vt(this.player.play())):!Qt.native||this.forceFallback?this.toggleFallback(!1):this.prefix?H(this.prefix)||document[`${this.prefix}${"moz"===this.prefix?"Cancel":"Exit"}${this.property}`]():(document.cancelFullScreen||document.exitFullscreen).call(document))}),t(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=e,this.prefix=Qt.prefix,this.property=Qt.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===e.config.fullscreen.fallback,this.player.elements.fullscreen=e.config.fullscreen.container&&function(t,e){const{prototype:n}=Element;return(n.closest||function(){let t=this;do{if(rt.matches(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}).call(t,e)}(this.player.elements.container,e.config.fullscreen.container),dt.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),dt.call(this.player,this.player.elements.container,"dblclick",t=>{R(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),dt.call(this,this.player.elements.container,"keydown",t=>this.trapFocus(t)),this.update()}static get native(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get usingNative(){return Qt.native&&!this.forceFallback}static get prefix(){if(z(document.exitFullscreen))return"";let t="";return["webkit","moz","ms"].some(e=>!(!z(document[`${e}ExitFullscreen`])&&!z(document[`${e}CancelFullScreen`])||(t=e,0))),t}static get property(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}get enabled(){return(Qt.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}get active(){if(!this.enabled)return!1;if(!Qt.native||this.forceFallback)return it(this.target,this.player.config.classNames.fullscreen.fallback);const t=this.prefix?document[`${this.prefix}${this.property}Element`]:document.fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}get target(){return $.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}function Kt(t,e=1){return new Promise((n,i)=>{const r=new Image,s=()=>
1{delete r.onload,delete r.onerror,(r.naturalWidth>=e?n:i)(r)};Object.assign(r,{onload:s,onerror:s,src:t})})}const Yt={addStyleHook(){nt(this.elements.container,this.config.selectors.container.replace(".",""),!0),nt(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(t=!1){t&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void Yt.toggleNativeControls.call(this,!0);R(this.elements.controls)||(Ut.inject.call(this),this.listeners.controls()),Yt.toggleNativeControls.call(this),this.isHTML5&&Vt.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Ut.updateVolume.call(this),Ut.timeUpdate.call(this),Yt.checkPlaying.call(this),nt(this.elements.container,this.config.classNames.pip.supported,ct.pip&&this.isHTML5&&this.isVideo),nt(this.elements.container,this.config.classNames.airplay.supported,ct.airplay&&this.isHTML5),nt(this.elements.container,this.config.classNames.isIos,$.isIos),nt(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{gt.call(this,this.media,"ready")},0),Yt.setTitle.call(this),this.poster&&Yt.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&Ut.durationUpdate.call(this)},setTitle(){let t=Dt.get("play",this.config);if(I(this.config.title)&&!H(this.config.title)&&(t+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(e=>{e.setAttribute("aria-label",t)}),this.isEmbed){const t=ot.call(this,"iframe");if(!R(t))return;const e=H(this.config.title)?"video":this.config.title,n=Dt.get("frameTitle",this.config);t.setAttribute("title",n.replace("{title}",e))}},togglePoster(t){nt(this.elements.container,this.config.classNames.posterEnabled,t)},setPoster(t,e=!0){return e&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",t),this.elements.poster.removeAttribute("hidden"),_t.call(this).then(()=>Kt(t)).catch(e=>{throw t===this.poster&&Yt.togglePoster.call(this,!1),e}).then(()=>{if(t!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${t}')`,backgroundSize:""}),Yt.togglePoster.call(this,!0),t)))},checkPlaying(t){nt(this.elements.container,this.config.classNames.playing,this.playing),nt(this.elements.container,this.config.classNames.paused,this.paused),nt(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(t=>{Object.assign(t,{pressed:this.playing}),t.setAttribute("aria-label",Dt.get(this.playing?"pause":"play",this.config))}),F(t)&&"timeupdate"===t.type||Yt.toggleControls.call(this)},checkLoading(t){this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{nt(this.elements.container,this.config.classNames.loading,this.loading),Yt.toggleControls.call(this)},this.loading?250:0)},toggleControls(t){const{controls:e}=this.elements;if(e&&this.config.hideControls){const n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||e.pressed||e.hover||n))}},migrateStyles(){Object.values({...this.media.style}).filter(t=>!H(t)&&I(t)&&t.startsWith("--plyr")).forEach(t=>{this.elements.container.style.setProperty(t,this.media.style.getPropertyValue(t)),this.media.style.removeProperty(t)}),H(this.media.style)&&this.media.removeAttribute("style")}};class Jt{constructor(e){t(this,"firstTouch",()=>{const{player:t}=this,{elements:e}=t;t.touch=!0,nt(e.container,t.config.classNames.isTouch,!0)}),t(this,"setTabFocus",t=>{const{player:e}=this,{elements:n}=e;clearTimeout(this.focusTimer),("keydown"!==t.type||9===t.which)&&("keydown"===t.type&&(this.lastKeyDown=t.timeStamp),("focus"!==t.type||t.timeStamp-this.lastKeyDown<=20)&&((()=>{const t=e.config.classNames.tabFocus;nt(st.call(e,`.${t}`),t,!1)})(),"focusout"!==t.type&&(this.focusTimer=setTimeout(()=>{const t=document.activeElement;n.container.contains(t)&&nt(document.activeElement,e.config.classNames.tabFocus,!0)},10))))}),t(this,"global",(t=!0)=>{const{player:e}=this;e.config.keyboard.global&&ht.call(e,window,"keydown keyup",this.handleKey,t,!1),ht.call(e,document.body,"click",this.toggleMenu,t),mt.call(e,document.body,"touchstart",this.firstTouch),ht.call(e,document.body,"keydown focus blur focusout",this.setTabFocus,t,!1,!0)}),t(this,"container",()=>{const{player:t}=this,{config:e,elements:n,timers:i}=t;!e.keyboard.global&&e.keyboard.focused&&dt.call(t,n.container,"keydown keyup",this.handleKey,!1),dt.call(t,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",e=>{const{controls:r}=n;r&&"enterfullscreen"===e.type&&(r.pressed=!1,r.hover=!1);let s=0;["touchstart","touchmove","mousemove"].includes(e.type)&&(Yt.toggleControls.call(t,!0),s=t.touch?3e3:2e3),clearTimeout(i.controls),i.controls=setTimeout(()=>Yt.toggleControls.call(t,!1),s)});const r=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const e=n.wrapper,{active:i}=t.fullscreen,[r,s]=Mt.call(t),o=bt(`aspect-ratio: ${r} / ${s}`);if(!i)return void(o?(e.style.width=null,e.style.height=null):(e.style.maxWidth=null,e.style.margin=null));const[a,l]=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],c=a/l>r/s;o?(e.style.width=c?"auto":"100%",e.style.height=c?"100%":"auto"):(e.style.maxWidth=c?l/s*r+"px":null,e.style.margin=c?"0 auto":null)},s=()=>{clearTimeout(i.resized),i.resized=setTimeout(r,50)};dt.call(t,n.container,"enterfullscreen exitfullscreen",e=>{const{target:i}=t.fullscreen;
1i===n.container&&(!t.isEmbed&&H(t.config.ratio)||(r(),("enterfullscreen"===e.type?dt:pt).call(t,window,"resize",s)))})}),t(this,"media",()=>{const{player:t}=this,{elements:e}=t;if(dt.call(t,t.media,"timeupdate seeking seeked",e=>Ut.timeUpdate.call(t,e)),dt.call(t,t.media,"durationchange loadeddata loadedmetadata",e=>Ut.durationUpdate.call(t,e)),dt.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),dt.call(t,t.media,"progress playing seeking seeked",e=>Ut.updateProgress.call(t,e)),dt.call(t,t.media,"volumechange",e=>Ut.updateVolume.call(t,e)),dt.call(t,t.media,"playing play pause ended emptied timeupdate",e=>Yt.checkPlaying.call(t,e)),dt.call(t,t.media,"waiting canplay seeked playing",e=>Yt.checkLoading.call(t,e)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const n=ot.call(t,`.${t.config.classNames.video}`);if(!R(n))return;dt.call(t,e.container,"click",i=>{([e.container,n].includes(i.target)||n.contains(i.target))&&(t.touch&&t.config.hideControls||(t.ended?(this.proxy(i,t.restart,"restart"),this.proxy(i,()=>{vt(t.play())},"play")):this.proxy(i,()=>{vt(t.togglePlay())},"play")))})}t.supported.ui&&t.config.disableContextMenu&&dt.call(t,e.wrapper,"contextmenu",t=>{t.preventDefault()},!1),dt.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),dt.call(t,t.media,"ratechange",()=>{Ut.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),dt.call(t,t.media,"qualitychange",e=>{Ut.updateSetting.call(t,"quality",null,e.detail.quality)}),dt.call(t,t.media,"ready qualitychange",()=>{Ut.setDownloadUrl.call(t)});const n=t.config.events.concat(["keyup","keydown"]).join(" ");dt.call(t,t.media,n,n=>{let{detail:i={}}=n;"error"===n.type&&(i=t.media.error),gt.call(t,e.container,n.type,!0,i)})}),t(this,"proxy",(t,e,n)=>{const{player:i}=this,r=i.config.listeners[n];let s=!0;z(r)&&(s=r.call(i,t)),!1!==s&&z(e)&&e.call(i,t)}),t(this,"bind",(t,e,n,i,r=!0)=>{const{player:s}=this,o=z(s.config.listeners[i]);dt.call(s,t,e,t=>this.proxy(t,n,i),r&&!o)}),t(this,"controls",()=>{const{player:t}=this,{elements:e}=t,n=$.isIE?"change":"input";if(e.buttons.play&&Array.from(e.buttons.play).forEach(e=>{this.bind(e,"click",()=>{vt(t.togglePlay())},"play")}),this.bind(e.buttons.restart,"click",t.restart,"restart"),this.bind(e.buttons.rewind,"click",()=>{t.lastSeekTime=Date.now(),t.rewind()},"rewind"),this.bind(e.buttons.fastForward,"click",()=>{t.lastSeekTime=Date.now(),t.forward()},"fastForward"),this.bind(e.buttons.mute,"click",()=>{t.muted=!t.muted},"mute"),this.bind(e.buttons.captions,"click",()=>t.toggleCaptions()),this.bind(e.buttons.download,"click",()=>{gt.call(t,t.media,"download")},"download"),this.bind(e.buttons.fullscreen,"click",()=>{t.fullscreen.toggle()},"fullscreen"),this.bind(e.buttons.pip,"click",()=>{t.pip="toggle"},"pip"),this.bind(e.buttons.airplay,"click",t.airplay,"airplay"),this.bind(e.buttons.settings,"click",e=>{e.stopPropagation(),e.preventDefault(),Ut.toggleMenu.call(t,e)}
1,null,!1),this.bind(e.buttons.settings,"keyup",e=>{const n=e.which;[13,32].includes(n)&&(13!==n?(e.preventDefault(),e.stopPropagation(),Ut.toggleMenu.call(t,e)):Ut.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(e.settings.menu,"keydown",e=>{27===e.which&&Ut.toggleMenu.call(t,e)}),this.bind(e.inputs.seek,"mousedown mousemove",t=>{const n=e.progress.getBoundingClientRect();t.currentTarget.setAttribute("seek-value",100/n.width*(t.pageX-n.left))}),this.bind(e.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",e=>{const n=e.currentTarget,i=e.keyCode?e.keyCode:e.which,r="play-on-seeked";if(B(e)&&39!==i&&37!==i)return;t.lastSeekTime=Date.now();const s=n.hasAttribute(r),o=["mouseup","touchend","keyup"].includes(e.type);s&&o?(n.removeAttribute(r),vt(t.play())):!o&&t.playing&&(n.setAttribute(r,""),t.pause())}),$.isIos){const e=st.call(t,'input[type="range"]');Array.from(e).forEach(t=>this.bind(t,n,t=>V(t.target)))}this.bind(e.inputs.seek,n,e=>{const n=e.currentTarget;let i=n.getAttribute("seek-value");H(i)&&(i=n.value),n.removeAttribute("seek-value"),t.currentTime=i/n.max*t.duration},"seek"),this.bind(e.progress,"mouseenter mouseleave mousemove",e=>Ut.updateSeekTooltip.call(t,e)),this.bind(e.progress,"mousemove touchmove",e=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.startMove(e)}),this.bind(e.progress,"mouseleave touchend click",()=>{const{previewThumbnails:e}=t;e&&e.loaded&&e.endMove(!1,!0)}),this.bind(e.progress,"mousedown touchstart",e=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.startScrubbing(e)}),this.bind(e.progress,"mouseup touchend",e=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.endScrubbing(e)}),$.isWebkit&&Array.from(st.call(t,'input[type="range"]')).forEach(e=>{this.bind(e,"input",e=>Ut.updateRangeFill.call(t,e.target))}),t.config.toggleInvert&&!R(e.display.duration)&&this.bind(e.display.currentTime,"click",()=>{0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,Ut.timeUpdate.call(t))}),this.bind(e.inputs.volume,n,e=>{t.volume=e.target.value},"volume"),this.bind(e.controls,"mouseenter mouseleave",n=>{e.controls.hover=!t.touch&&"mouseenter"===n.type}),e.fullscreen&&Array.from(e.fullscreen.children).filter(t=>
1!t.contains(e.container)).forEach(n=>{this.bind(n,"mouseenter mouseleave",n=>{e.controls.hover=!t.touch&&"mouseenter"===n.type})}),this.bind(e.controls,"mousedown mouseup touchstart touchend touchcancel",t=>{e.controls.pressed=["mousedown","touchstart"].includes(t.type)}),this.bind(e.controls,"focusin",()=>{const{config:n,timers:i}=t;nt(e.controls,n.classNames.noTransition,!0),Yt.toggleControls.call(t,!0),setTimeout(()=>{nt(e.controls,n.classNames.noTransition,!1)},0);const r=this.touch?3e3:4e3;clearTimeout(i.controls),i.controls=setTimeout(()=>Yt.toggleControls.call(t,!1),r)}),this.bind(e.inputs.volume,"wheel",e=>{const n=e.webkitDirectionInvertedFromDevice,[i,r]=[e.deltaX,-e.deltaY].map(t=>n?-t:t),s=Math.sign(Math.abs(i)>Math.abs(r)?i:r);t.increaseVolume(s/50);const{volume:o}=t.media;(1===s&&o<1||-1===s&&o>0)&&e.preventDefault()},"volume",!1)}),this.player=e,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(t){const{player:e}=this,{elements:n}=e,i=t.keyCode?t.keyCode:t.which,r="keydown"===t.type,s=r&&i===this.lastKey;if(!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&E(i))if(r){const r=document.activeElement;if(R(r)){const{editable:i}=e.config.selectors,{seek:s}=n.inputs;if(r!==s&&rt(r,i))return;if(32===t.which&&rt(r,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(i)&&(t.preventDefault(),t.stopPropagation()),i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:s||(e.currentTime=e.duration/10*(i-48));break;case 32:case 75:s||vt(e.togglePlay());break;case 38:e.increaseVolume(.1);break;case 40:e.decreaseVolume(.1);break;case 77:s||(e.muted=!e.muted);break;case 39:e.forward();break;case 37:e.rewind();break;case 70:e.fullscreen.toggle();break;case 67:s||e.toggleCaptions();break;case 76:e.loop=!e.loop}27===i&&!e.fullscreen.usingNative&&e.fullscreen.active&&e.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}toggleMenu(t){Ut.toggleMenu.call(this.player,t)}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var te=function(t,e){return function(t,e){t.exports=function(){var t=function(){},e={},n={},i={};function r(t,e){if(t){var r=i[t];if(n[t]=e,r)for(;r.length;)r[0](t,e),r.splice(0,1)}}function s(e,n){e.call&&(e={success:e}),n.length?(e.error||t)(n):(e.success||t)(e)}function o(e,n,i,r){var s,a,l=document,c=i.async,u=(i.numRetries||0)+1,h=i.before||t,d=e.replace(/[\?|#].*$/,""),p=e.replace(/^(css|img)!/,"");r=r||0,/(^css!|\.css$)/.test(d)?((a=l.createElement("link")).rel="stylesheet",a.href=p,(s="hideFocus"in a)&&a.relList&&(s=0,a.rel="preload",a.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(d)?(a=l.createElement("img")).src=p:((a=l.createElement("script")).src=e,a.async=void 0===c||c),a.onload=a.onerror=a.onbeforeload=function(t){var l=t.type[0];if(s)try{a.sheet.cssText.length||(l="e")}catch(t){18!=t.code&&(l="e")}if("e"==l){if((r+=1)<u)return o(e,n,i,r)}else if("preload"==a.rel&&"style"==a.as)return a.rel="stylesheet";n(e,l,t.defaultPrevented)},!1!==h(e,a)&&l.head.appendChild(a)}function a(t,e,n){var i,r,s=(t=t.push?t:[t]).length,a=s,l=[];for(i=function(t,n,i){if("e"==n&&l.push(t),"b"==n){if(!i)return;l.push(t)}--s||e(l)},r=0;r<a;r++)o(t[r],i,n)}function l(t,n,i){var o,l;if(n&&n.trim&&(o=n),l=(o?i:n)||{},o){if(o in e)throw"LoadJS";e[o]=!0}function c(e,n){a(t,function(t){s(l,t),e&&s({success:e,error:n},t),r(o,t)},l)}if(l.returnPromise)return new Promise(c);c()}return l.ready=function(t,e){return function(t,e){var r,s,o,a=[],l=(t=t.push?t:[t]).length,c=l;for(r=function(t,n){n.length&&a.push(t),--c||e(a)};l--;)(o=n[s=t[l]])?r(s,o):(i[s]=i[s]||[]).push(r)}(t,function(t){s(e,t)}),l},l.done=function(t){r(t,[])},l.reset=function(){e={},n={},i={}},l.isDefined=function(t){return t in e},l}()}(e={exports:{}}),e.exports}();
1function ee(t){return new Promise((e,n)=>{te(t,{success:e,error:n})})}function ne(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,gt.call(this,this.media,t?"play":"pause"))}const ie={setup(){const t=this;nt(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,Ot.call(t),T(window.Vimeo)?ie.ready.call(t):ee(t.config.urls.vimeo.sdk).then(()=>{ie.ready.call(t)}).catch(e=>{t.debug.warn("Vimeo SDK (player.js) failed to load",e)})},ready(){const t=this,e=t.config.vimeo,{premium:n,referrerPolicy:i,...r}=e;n&&Object.assign(r,{controls:!1,sidedock:!1});const s=jt({loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative,...r});let o=t.media.getAttribute("src");H(o)&&(o=t.media.getAttribute(t.config.attributes.embed.id));const a=H(l=o)?null:E(Number(l))?l:l.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:l;var l;const c=X("iframe"),u=Tt(t.config.urls.vimeo.iframe,a,s);if(c.setAttribute("src",u),c.setAttribute("allowfullscreen",""),c.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),H(i)||c.setAttribute("referrerPolicy",i),n||!e.customControls)c.setAttribute("data-poster",t.poster),t.media=J(c,t.media);else{const e=X("div",{class:t.config.classNames.embedContainer,"data-poster":t.poster});e.appendChild(c),t.media=J(e,t.media)}e.customControls||Rt(Tt(t.config.urls.vimeo.api,u)).then(e=>{!H(e)&&e.thumbnail_url&&Yt.setPoster.call(t,e.thumbnail_url).catch(()=>{})}),t.embed=new window.Vimeo.Player(c,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=()=>(ne.call(t,!0),t.embed.play()),t.media.pause=()=>(ne.call(t,!1),t.embed.pause()),t.media.stop=()=>{t.pause(),t.currentTime=0};let{currentTime:h}=t.media;Object.defineProperty(t.media,"currentTime",{get:()=>h,set(e){const{embed:n,media:i,paused:r,volume:s}=t,o=r&&!n.hasPlayed;i.seeking=!0,gt.call(t,i,"seeking"),Promise.resolve(o&&n.setVolume(0)).then(()=>n.setCurrentTime(e)).then(()=>o&&n.pause()).then(()=>o&&n.setVolume(s)).catch(()=>{})}});let d=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:()=>d,set(e){t.embed.setPlaybackRate(e).then(()=>{d=e,gt.call(t,t.media,"ratechange")}).catch(()=>{t.options.speed=[1]})}});let{volume:p}=t.config;Object.defineProperty(t.media,"volume",{get:()=>p,set(e){t.embed.setVolume(e).then(()=>{p=e,gt.call(t,t.media,"volumechange")})}});let{muted:m}=t.config;Object.defineProperty(t.media,"muted",{get:()=>m,set(e){const n=!!A(e)&&e;t.embed.setVolume(n?0:t.config.volume).then(()=>{m=n,gt.call(t,t.media,"volumechange")})}});let g,{loop:f}=t.config;Object.defineProperty(t.media,"loop",{get:()=>f,set(e){const n=A(e)?e:t.config.loop.active;t.embed.setLoop(n).then(()=>{f=n})}}),t.embed.getVideoUrl().then(e=>{g=e,Ut.setDownloadUrl.call(t)}).catch(t=>{this.debug.warn(t)}),Object.defineProperty(t.media,"currentSrc",{get:()=>g}),Object.defineProperty(t.media,"ended",{get:()=>t.currentTime===t.duration}),Promise.all([t.embed.getVideoWidth(),t.embed.getVideoHeight()]).then(e=>{const[n,i]=e;t.embed.ratio=St(n,i),Ot.call(this)}),t.embed.setAutopause(t.config.autopause).then(e=>{t.config.autopause=e}),t.embed.getVideoTitle().then(e=>{t.config.title=e,Yt.setTitle.call(this)}),t.embed.getCurrentTime().then(e=>{h=e,gt.call(t,t.media,"timeupdate")}),t.embed.getDuration().then(e=>{t.media.duration=e,gt.call(t,t.media,"durationchange")}),t.embed.getTextTracks().then(e=>{t.media.textTracks=e,Vt.setup.call(t)}),t.embed.on("cuechange",({cues:e=[]})=>{const n=e.map(t=>function(t){const e=document.createDocumentFragment(),n=document.createElement("div");return e.appendChild(n),n.innerHTML=t,e.firstChild.innerText}(t.text));Vt.updateCues.call(t,n)}),t.embed.on("loaded",()=>{t.embed.getPaused().then(e=>{ne.call(t,!e),e||gt.call(t,t.media,"playing")}),R(t.embed.element)&&t.supported.ui&&t.embed.element.setAttribute("tabindex",-1)}),t.embed.on("bufferstart",()=>{gt.call(t,t.media,"waiting")}),t.embed.on("bufferend",()=>{gt.call(t,t.media,"playing")}),t.embed.on("play",()=>{ne.call(t,!0),gt.call(t,t.media,"playing")}),t.embed.on("pause",()=>{ne.call(t,!1)}),t.embed.on("timeupdate",e=>{t.media.seeking=!1,h=e.seconds,gt.call(t,t.media,"timeupdate")}),t.embed.on("progress",e=>{t.media.buffered=e.percent,gt.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&gt.call(t,t.media,"canplaythrough"),t.embed.getDuration().then(e=>{e!==t.media.duration&&(t.media.duration=e,gt.call(t,t.media,"durationchange"))})}),t.embed.on("seeked",()=>{t.media.seeking=!1,gt.call(t,t.media,"seeked")}),t.embed.on("ended",()=>{t.media.paused=!0,gt.call(t,t.media,"ended")}),t.embed.on("error",e=>{t.media.error=e,gt.call(t,t.media,"error")}),e.customControls&&setTimeout(()=>Yt.build.call(t),0)}};function re(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,gt.call(this,this.media,t?"play":"pause"))}function se(t){return t.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}const oe={setup(){if(nt(this.elements.wrapper,this.config.classNames.embed,!0),T(window.YT)&&z(window.YT.Player))oe.ready.call(this);else{const t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{z(t)&&t(),oe.ready.call(this)},ee(this.config.urls.youtube.sdk).catch(t=>{this.debug.warn("YouTube API failed to load",t)})}},getTitle(t){Rt(Tt(this.config.urls.youtube.api,t)).then(t=>{if(T(t)){const{title:e,height:n,width:i}=t;this.config.title=e,Yt.setTitle.call(this),this.embed.ratio=St(i,n)}Ot.call(this)}).catch(()=>{Ot.call(this)})},ready(){const t=this,e=t.config.youtube,n=t.media&&t.media.getAttribute("id");if(!H(n)&&n.startsWith("youtube-"))return;let i=t.media.getAttribute("src");H(i)&&(i=t.media.getAttribute(this.config.attributes.embed.id));const r=H(s=i)?null:s.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:s;var s;const o=X("div",{id:`${t.provider}-${Math.floor(1e4*Math.random())}`,"data-poster":e.customControls?t.poster:void 0});if(t.media=J(o,t.media),e.customControls){const e=t=>`https://i.ytimg.com/vi/${r}/${t}default.jpg`;Kt(e("maxres"),121).catch(()=>
vendor: 11,438 bytes, line 1
1Kt(e("sd"),121)).catch(()=>Kt(e("hq"))).then(e=>Yt.setPoster.call(t,e.src)).then(e=>{e.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}t.embed=new window.YT.Player(t.media,{videoId:r,host:se(e),playerVars:G({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui&&e.customControls?0:1,disablekb:1,playsinline:t.config.fullscreen.iosNative?0:1,cc_load_policy:t.captions.active?1:0,cc_lang_pref:t.config.captions.language,widget_referrer:window?window.location.href:null},e),events:{onError(e){if(!t.media.error){const n=e.data;t.media.error={code:n,message:{2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[n]||"An unknown error occured"},gt.call(t,t.media,"error")}},onPlaybackRateChange(e){t.media.playbackRate=e.target.getPlaybackRate(),gt.call(t,t.media,"ratechange")},onReady(n){if(z(t.media.play))return;const i=n.target;oe.getTitle.call(t,r),t.media.play=()=>{re.call(t,!0),i.playVideo()},t.media.pause=()=>{re.call(t,!1),i.pauseVideo()},t.media.stop=()=>{i.stopVideo()},t.media.duration=i.getDuration(),t.media.paused=!0,t.media.currentTime=0,Object.defineProperty(t.media,"currentTime",{get:()=>Number(i.getCurrentTime()),set(e){t.paused&&!t.embed.hasPlayed&&t.embed.mute(),t.media.seeking=!0,gt.call(t,t.media,"seeking"),i.seekTo(e)}}),Object.defineProperty(t.media,"playbackRate",{get:()=>i.getPlaybackRate(),set(t){i.setPlaybackRate(t)}});let{volume:s}=t.config;Object.defineProperty(t.media,"volume",{get:()=>s,set(e){s=e,i.setVolume(100*s),gt.call(t,t.media,"volumechange")}});let{muted:o}=t.config;Object.defineProperty(t.media,"muted",{get:()=>o,set(e){const n=A(e)?e:o;o=n,i[n?"mute":"unMute"](),i.setVolume(100*s),gt.call(t,t.media,"volumechange")}}),Object.defineProperty(t.media,"currentSrc",{get:()=>i.getVideoUrl()}),Object.defineProperty(t.media,"ended",{get:()=>t.currentTime===t.duration});const a=i.getAvailablePlaybackRates();t.options.speed=a.filter(e=>t.config.speed.options.includes(e)),t.supported.ui&&e.customControls&&t.media.setAttribute("tabindex",-1),gt.call(t,t.media,"timeupdate"),gt.call(t,t.media,"durationchange"),clearInterval(t.timers.buffering),t.timers.buffering=setInterval(()=>{t.media.buffered=i.getVideoLoadedFraction(),(null===t.media.lastBuffered||t.media.lastBuffered<t.media.buffered)&&gt.call(t,t.media,"progress"),t.media.lastBuffered=t.media.buffered,1===t.media.buffered&&(clearInterval(t.timers.buffering),gt.call(t,t.media,"canplaythrough"))},200),e.customControls&&setTimeout(()=>Yt.build.call(t),50)},onStateChange(n){const i=n.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(n.data)&&(t.media.seeking=!1,gt.call(t,t.media,"seeked")),n.data){case-1:gt.call(t,t.media,"timeupdate"),t.media.buffered=i.getVideoLoadedFraction(),gt.call(t,t.media,"progress");break;case 0:re.call(t,!1),t.media.loop?(i.stopVideo(),i.playVideo()):gt.call(t,t.media,"ended");break;case 1:e.customControls&&!t.config.autoplay&&t.media.paused&&!t.embed.hasPlayed?t.media.pause():(re.call(t,!0),gt.call(t,t.media,"playing"),t.timers.playing=setInterval(()=>{gt.call(t,t.media,"timeupdate")},50),t.media.duration!==i.getDuration()&&(t.media.duration=i.getDuration(),gt.call(t,t.media,"durationchange")));break;case 2:t.muted||t.embed.unMute(),re.call(t,!1);break;case 3:gt.call(t,t.media,"waiting")}gt.call(t,t.elements.container,"statechange",!1,{code:n.data})}}})}},ae={setup(){this.media?(nt(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),nt(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&nt(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=X("div",{class:this.config.classNames.video}),Z(this.media,this.elements.wrapper),this.elements.poster=X("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?kt.setup.call(this):this.isYouTube?oe.setup.call(this):this.isVimeo&&ie.setup.call(this)):this.debug.warn("No media element found!")}};class le{constructor(e){t(this,"load",()=>{this.enabled&&(T(window.google)&&T(window.google.ima)?this.ready():ee(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),t(this,"ready",()=>{var t;this.enabled||((t=this).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),t(this,"setupIMA",()=>{this.elements.container=X("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,t=>this.onAdsManagerLoaded(t),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t),!1),this.requestAds()}),t(this,"requestAds",()=>{const{container:t}=this.player.elements;try{const e=new google.ima.AdsRequest;e.adTagUrl=this.tagUrl,e.linearAdSlotWidth=t.offsetWidth,e.linearAdSlotHeight=t.offsetHeight,e.nonLinearAdSlotWidth=t.offsetWidth,e.nonLinearAdSlotHeight=t.offsetHeight,e.forceNonLinearFullSlot=!1,e.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(e)}catch(t){this.onAdError(t)}}),t(this,"pollCountdown",(t=!1)=>{if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const t=Nt(Math.max(this.manager.getRemainingTime(),0)),e=`${Dt.get("advertisement",this.player.config)} - ${t}`;this.elements.container.setAttribute("data-badge-text",e)},100)}),t(this,"onAdsManagerLoaded",t=>{if(!this.enabled)return;const e=new google.ima.AdsRenderingSettings;e.restoreCustomPlaybackStateOnAdBreakComplete=!0,e.enablePreloading=!0,this.manager=t.getAdsManager(this.player,e),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t)),Object.keys(google.ima.AdEvent.Type).forEach(t=>{this.manager.addEventListener(google.ima.AdEvent.Type[t],t=>this.onAdEvent(t))}),this.trigger("loaded")}),t(this,"addCuePoints",()=>{H(this.cuePoints)||this.cuePoints.forEach(t=>{if(0!==t&&-1!==t&&t<this.player.duration){const e=this.player.elements.progress;if(R(e)){const n=100/this.player.duration*t,i=X("span",{class:this.player.config.classNames.cues});i.style.left=`${n.toString()}%`,e.appendChild(i)}}})}),t(this,"onAdEvent",t=>{const{container:e}=this.player.elements,n=t.getAd(),i=t.getAdData();switch((t=>{gt.call(this.player,this.player.media,`ads${t.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),n.isLinear()||(n.width=e.offsetWidth,n.height=e.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:i.adError&&this.player.debug.warn(`Non-fatal ad error: ${i.adError.getMessage()}`)}}),t(this,"onAdError",t=>{this.cancel(),this.player.debug.warn("Ads error",t)}),t(this,"listeners",()=>{const{container:t}=this.player.elements;let e;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{e=this.player.currentTime}),this.player.on("seeked",()=>{const t=this.player.currentTime;H(this.cuePoints)||this.cuePoints.forEach((n,i)=>{e<n&&n<t&&(this.manager.discardAdBreak(),this.cuePoints.splice(i,1))})}),window.addEventListener("resize",()=>{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)})}),t(this,"play",()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(t){this.onAdError(t)}}).catch(()=>{})}),t(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,vt(this.player.media.play())}),t(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),t(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),t(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(t=>{this.on("loaded",t),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),t(this,"trigger",(t,...e)=>{const n=this.events[t];D(n)&&n.forEach(t=>{z(t)&&t.apply(this,e)})}),t(this,"on",(t,e)=>(D(this.events[t])||(this.events[t]=[]),this.events[t].push(e),this)),t(this,"startSafetyTimer",(t,e)=>{this.player.debug.log(`Safety timer invoked from: ${e}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},t)}),t(this,"clearSafetyTimer",t=>{k(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=e,this.config=e.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((t,e)=>{this.on("loaded",t),this.on("error",e)}),this.load()}get enabled(){const{config:t}=this;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!H(t.publisherId)||U(t.tagUrl))}get tagUrl(){const{config:t}=this;return U(t.tagUrl)?t.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${jt({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:t.publisherId})}`}}const ce=t=>{const e=[];
1return t.split(/\r\n\r\n|\n\n|\r\r/).forEach(t=>{const n={};t.split(/\r\n|\n|\r/).forEach(t=>{if(E(n.startTime)){if(!H(t.trim())&&H(n.text)){const e=t.trim().split("#xywh=");[n.text]=e,e[1]&&([n.x,n.y,n.w,n.h]=e[1].split(","))}}else{const e=t.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);e&&(n.startTime=60*Number(e[1]||0)*60+60*Number(e[2])+Number(e[3])+Number(`0.${e[4]}`),n.endTime=60*Number(e[6]||0)*60+60*Number(e[7])+Number(e[8])+Number(`0.${e[9]}`))}}),n.text&&e.push(n)}),e},ue=(t,e)=>{const n={};return t>e.width/e.height?(n.width=e.width,n.height=1/t*e.width):(n.height=e.height,n.width=t*e.height),n};class he{constructor(e){t(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.loaded=!0)})}),t(this,"getThumbnails",()=>new Promise(t=>{const{src:e}=this.player.config.previewThumbnails;if(H(e))throw new Error("Missing previewThumbnails.src config attribute");const n=()=>{this.thumbnails.sort((t,e)=>t.height-e.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(z(e))e(t=>{this.thumbnails=t,n()});else{const t=(I(e)?[e]:e).map(t=>this.getThumbnail(t));Promise.all(t).then(n)}})),t(this,"getThumbnail",t=>new Promise(e=>{Rt(t).then(n=>{const i={frames:ce(n),height:null,urlPrefix:""};i.frames[0].text.startsWith("/")||i.frames[0].text.startsWith("http://")||i.frames[0].text.startsWith("https://")||(i.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const r=new Image;r.onload=()=>{i.height=r.naturalHeight,i.width=r.naturalWidth,this.thumbnails.push(i),e()},r.src=i.urlPrefix+i.frames[0].text})})),t(this,"startMove",t=>{if(this.loaded&&F(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if("touchmove"===t.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{const e=this.player.elements.progress.getBoundingClientRect();this.seekTime=this.player.media.duration*(100/e.width*(t.pageX-e.left)/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.innerText=Nt(this.seekTime)}this.showImageAtCurrentTime()}}),t(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),t(this,"startScrubbing",t=>{(k(t.button)||!1===t.button||0===t.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),t(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):mt.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),t(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),t(this,"render",()=>{this.elements.thumb.container=X("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=X("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=X("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=X("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(t),R(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=X("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),t(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),t(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();
1const t=this.thumbnails[0].frames.findIndex(t=>this.seekTime>=t.startTime&&this.seekTime<=t.endTime),e=t>=0;let n=0;this.mouseDown||this.toggleThumbContainer(e),e&&(this.thumbnails.forEach((e,i)=>{this.loadedImages.includes(e.frames[t].text)&&(n=i)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(n)))}),t(this,"loadImage",(t=0)=>{const e=this.showingThumb,n=this.thumbnails[t],{urlPrefix:i}=n,r=n.frames[e],s=n.frames[e].text,o=i+s;if(this.currentImageElement&&this.currentImageElement.dataset.filename===s)this.showImage(this.currentImageElement,r,t,e,s,!1),this.currentImageElement.dataset.index=e,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const n=new Image;n.src=o,n.dataset.index=e,n.dataset.filename=s,this.showingThumbFilename=s,this.player.debug.log(`Loading image: ${o}`),n.onload=()=>this.showImage(n,r,t,e,s,!0),this.loadingImage=n,this.removeOldImages(n)}}),t(this,"showImage",(t,e,n,i,r,s=!0)=>{this.player.debug.log(`Showing thumb: ${r}. num: ${i}. qual: ${n}. newimg: ${s}`),this.setImageSizeAndOffset(t,e),s&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(r)||this.loadedImages.push(r)),this.preloadNearby(i,!0).then(this.preloadNearby(i,!1)).then(this.getHigherQuality(n,t,e,r))}),t(this,"removeOldImages",t=>{Array.from(this.currentImageContainer.children).forEach(e=>{if("img"!==e.tagName.toLowerCase())return;const n=this.usingSprites?500:1e3;if(e.dataset.index!==t.dataset.index&&!e.dataset.deleting){e.dataset.deleting=!0;const{currentImageContainer:t}=this;setTimeout(()=>{t.removeChild(e),this.player.debug.log(`Removing thumb: ${e.dataset.filename}`)},n)}})}),t(this,"preloadNearby",(t,e=!0)=>new Promise(n=>{setTimeout(()=>{const i=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===i){let r;r=e?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let s=!1;r.forEach(t=>{const e=t.text;if(e!==i&&!this.loadedImages.includes(e)){s=!0,this.player.debug.log(`Preloading thumb filename: ${e}`);const{urlPrefix:t}=this.thumbnails[0],i=t+e,r=new Image;r.src=i,r.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${e}`),this.loadedImages.includes(e)||this.loadedImages.push(e),n()}}}),s||n()}},300)})),t(this,"getHigherQuality",(t,e,n,i)=>{if(t<this.thumbnails.length-1){let r=e.naturalHeight;this.usingSprites&&(r=n.h),r<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===i&&(this.player.debug.log(`Showing higher quality thumb for: ${i}`),this.loadImage(t+1))},300)}}),t(this,"toggleThumbContainer",(t=!1,e=!1)=>{this.elements.thumb.container.classList.toggle(this.player.config.classNames.previewThumbnails.thumbContainerShown,t),!t&&e&&(this.showingThumb=null,this.showingThumbFilename=null)}),t(this,"toggleScrubbingContainer",(t=!1)=>{this.elements.scrubbing.container.classList.toggle(this.player.config.classNames.previewThumbnails.scrubbingContainerShown,t),t||(this.showingThumb=null,this.showingThumbFilename=null)}),t(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),t(this,"setThumbContainerSizeAndPos",()=>{if(this.sizeSpecifiedInCSS){if(this.elements.thumb.imageContainer.clientHeight>20&&this.elements.thumb.imageContainer.clientWidth<20){const t=Math.floor(this.elements.thumb.imageContainer.clientHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.width=`${t}px`}else if(this.elements.thumb.imageContainer.clientHeight<20&&this.elements.thumb.imageContainer.clientWidth>20){const t=Math.floor(this.elements.thumb.imageContainer.clientWidth/this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height=`${t}px`}}else{const t=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height=`${this.thumbContainerHeight}px`,this.elements.thumb.imageContainer.style.width=`${t}px`}this.setThumbContainerPos()}),t(this,"setThumbContainerPos",()=>{const t=this.player.elements.progress.getBoundingClientRect(),e=this.player.elements.container.getBoundingClientRect(),{container:n}=this.elements.thumb,i=e.left-t.left+10,r=e.right-t.left-n.clientWidth-10;let s=this.mousePosX-t.left-n.clientWidth/2;s<i&&(s=i),s>r&&(s=r),n.style.left=`${s}px`}),t(this,"setScrubbingContainerSize",()=>{const{width:t,height:e}=ue(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${t}px`,this.elements.scrubbing.container.style.height=`${e}px`}),t(this,"setImageSizeAndOffset",(t,e)=>{if(!this.usingSprites)return;const n=this.thumbContainerHeight/e.h;
1t.style.height=t.naturalHeight*n+"px",t.style.width=t.naturalWidth*n+"px",t.style.left=`-${e.x*n}px`,t.style.top=`-${e.y*n}px`}),this.player=e,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:t}=ue(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return t}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(t){this.mouseDown?this.currentScrubbingImageElement=t:this.currentThumbnailImageElement=t}}const de={insertElements(t,e){I(e)?Q(t,this.media,{src:e}):D(e)&&e.forEach(e=>{Q(t,this.media,e)})},change(t){q(t,"sources.length")?(kt.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],K(this.media),this.media=null,R(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:e,type:n}=t,[{provider:i=Gt.html5,src:r}]=e,s="html5"===i?n:"div",o="html5"===i?{}:{src:r};Object.assign(this,{provider:i,type:n,supported:ct.check(n,i,this.config.playsinline),media:X(s,o)}),this.elements.container.appendChild(this.media),A(t.autoplay)&&(this.config.autoplay=t.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),H(t.poster)||(this.poster=t.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),Yt.addStyleHook.call(this),this.isHTML5&&de.insertElements.call(this,"source",e),this.config.title=t.title,ae.setup.call(this),this.isHTML5&&Object.keys(t).includes("tracks")&&de.insertElements.call(this,"track",t.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Yt.build.call(this),this.isHTML5&&this.media.load(),H(t.previewThumbnails)||(Object.assign(this.config.previewThumbnails,t.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new he(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class pe{constructor(e,n){if(t(this,"play",()=>z(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>vt(this.media.play())),this.media.play()):null),t(this,"pause",()=>this.playing&&z(this.media.pause)?this.media.pause():null),t(this,"togglePlay",t=>(A(t)?t:!this.playing)?this.play():this.pause()),t(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):z(this.media.stop)&&this.media.stop()}),t(this,"restart",()=>{this.currentTime=0}),t(this,"rewind",t=>{this.currentTime-=E(t)?t:this.config.seekTime}),t(this,"forward",t=>{this.currentTime+=E(t)?t:this.config.seekTime}),t(this,"increaseVolume",t=>{this.volume=(this.media.muted?0:this.volume)+(E(t)?t:0)}),t(this,"decreaseVolume",t=>{this.increaseVolume(-t)}),t(this,"airplay",()=>{ct.airplay&&this.media.webkitShowPlaybackTargetPicker()}),t(this,"toggleControls",t=>{if(this.supported.ui&&!this.isAudio){const e=it(this.elements.container,this.config.classNames.hideControls),n=nt(this.elements.container,this.config.classNames.hideControls,void 0===t?void 0:!t);return n&&D(this.config.controls)&&this.config.controls.includes("settings")&&!H(this.config.settings)&&Ut.toggleMenu.call(this,!1),n!==e&&gt.call(this,this.media,n?"controlshidden":"controlsshown"),!n}return!1}),t(this,"on",(t,e)=>{dt.call(this,this.elements.container,t,e)}),t(this,"once",(t,e)=>{mt.call(this,this.elements.container,t,e)}),t(this,"off",(t,e)=>{pt(this.elements.container,t,e)}),t(this,"destroy",(t,e=!1)=>
1{if(!this.ready)return;const n=()=>{document.body.style.overflow="",this.embed=null,e?(Object.keys(this.elements).length&&(K(this.elements.buttons.play),K(this.elements.captions),K(this.elements.controls),K(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),z(t)&&t()):(ft.call(this),kt.cancelRequests.call(this),J(this.elements.original,this.elements.container),gt.call(this,this.elements.original,"destroyed",!0),z(t)&&t.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(Yt.toggleNativeControls.call(this,!0),n()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&z(this.embed.destroy)&&this.embed.destroy(),n()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(n),setTimeout(n,200))}),t(this,"supports",t=>ct.mime.call(this,t)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=ct.touch,this.media=e,I(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||L(this.media)||D(this.media))&&(this.media=this.media[0]),this.config=G({},$t,pe.defaults,n||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch(t){return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new Xt(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",ct),k(this.media)||!R(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!ct.check().api)return void this.debug.error("Setup failed: no support");const i=this.media.cloneNode(!0);i.autoplay=!1,this.elements.original=i;const r=this.media.tagName.toLowerCase();let s=null,o=null;switch(r){case"div":if(s=this.media.querySelector("iframe"),R(s)){if(o=Ht(s.getAttribute("src")),this.provider=function(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(t)?Gt.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(t)?Gt.vimeo:null}(o.toString()),this.elements.container=this.media,this.media=s,this.elements.container.className="",o.search.length){const t=["1","true"];t.includes(o.searchParams.get("autoplay"))&&(this.config.autoplay=!0),t.includes(o.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=t.includes(o.searchParams.get("playsinline")),this.config.youtube.hl=o.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(H(this.provider)||!Object.values(Gt).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=Zt;break;case"video":case"audio":this.type=r,this.provider=Gt.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=ct.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new Jt(this),this.storage=new Lt(this),this.media.plyr=this,R(this.elements.container)||(this.elements.container=X("div",{tabindex:0}),Z(this.media,this.elements.container)),Yt.migrateStyles.call(this),Yt.addStyleHook.call(this),ae.setup.call(this),this.config.debug&&dt.call(this,this.elements.container,this.config.events.join(" "),t=>{this.debug.log(`event: ${t.type}`)}),this.fullscreen=new Qt(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Yt.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new le(this)),this.isHTML5&&this.config.auto
1play&&this.once("canplay",()=>vt(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new he(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===Gt.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===Gt.youtube}get isVimeo(){return this.provider===Gt.vimeo}get isVideo(){return this.type===Zt}get isAudio(){return"audio"===this.type}get playing(){return Boolean(this.ready&&!this.paused&&!this.ended)}get paused(){return Boolean(this.media.paused)}get stopped(){return Boolean(this.paused&&0===this.currentTime)}get ended(){return Boolean(this.media.ended)}set currentTime(t){if(!this.duration)return;const e=E(t)&&t>0;this.media.currentTime=e?Math.min(t,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:t}=this.media;return E(t)?t:t&&t.length&&this.duration>0?t.end(0)/this.duration:0}get seeking(){return Boolean(this.media.seeking)}get duration(){const t=parseFloat(this.config.duration),e=(this.media||{}).duration,n=E(e)&&e!==1/0?e:0;return t||n}set volume(t){let e=t;I(e)&&(e=Number(e)),E(e)||(e=this.storage.get("volume")),E(e)||({volume:e}=this.config),e>1&&(e=1),e<0&&(e=0),this.config.volume=e,this.media.volume=e,!H(t)&&this.muted&&e>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(t){let e=t;A(e)||(e=this.storage.get("muted")),A(e)||(e=this.config.muted),this.config.muted=e,this.media.muted=e}get muted(){return Boolean(this.media.muted)}get hasAudio(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}set speed(t){let e=null;E(t)&&(e=t),E(e)||(e=this.storage.get("speed")),E(e)||(e=this.config.speed.selected);const{minimumSpeed:n,maximumSpeed:i}=this;e=function(t=0,e=0,n=255){return Math.min(Math.max(t,e),n)}(e,n,i),this.config.speed.selected=e,setTimeout(()=>{this.media.playbackRate=e},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(t){const e=this.config.quality,n=this.options.quality;if(!n.length)return;let i=[!H(t)&&Number(t),this.storage.get("quality"),e.selected,e.default].find(E),r=!0;if(!n.includes(i)){const t=xt(n,i);this.debug.warn(`Unsupported quality option: ${i}, using ${t} instead`),i=t,r=!1}e.selected=i,this.media.quality=i,r&&this.storage.set({quality:i})}get quality(){return this.media.quality}set loop(t){const e=A(t)?t:this.config.loop.active;this.config.loop.active=e,this.media.loop=e}get loop(){return Boolean(this.media.loop)}set source(t){de.change.call(this,t)}get source(){return this.media.currentSrc}get download(){const{download:t}=this.config.urls;return U(t)?t:this.source}set download(t){U(t)&&(this.config.urls.download=t,Ut.setDownloadUrl.call(this))}set poster(t){this.isVideo?Yt.setPoster.call(this,t,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const t=Pt(Mt.call(this));return D(t)?t.join(":"):t}set ratio(t){this.isVideo?I(t)&&Ct(t)?(this.config.ratio=Pt(t),Ot.call(this)):this.debug.error(`Invalid aspect ratio specified (${t})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(t){const e=A(t)?t:this.config.autoplay;this.config.autoplay=e}get autoplay(){return Boolean(this.config.autoplay)}toggleCaptions(t){Vt.toggle.call(this,t,!1)}set currentTrack(t){Vt.set.call(this,t,!1)}get currentTrack(){const{toggled:t,currentTrack:e}=this.captions;return t?e:-1}set language(t){Vt.setLanguage.call(this,t,!1)}get language(){return(Vt.getCurrentTrack.call(this)||{}).language}set pip(t){if(!ct.pip)return;const e=A(t)?t:!this.pip;z(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(e?qt:"inline"),z(this.media.requestPictureInPicture)&&(!this.pip&&e?this.media.requestPictureInPicture():this.pip&&!e&&document.exitPictureInPicture())}get pip(){return ct.pip?H(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===qt:null}
vendor: 32,969 bytes, line 1
1static supported(t,e,n){return ct.check(t,e,n)}static loadSprite(t,e){return Ft(t,e)}static setup(t,e={}){let n=null;return I(t)?n=Array.from(document.querySelectorAll(t)):L(t)?n=Array.from(t):D(t)&&(n=t.filter(R)),H(n)?null:n.map(t=>new pe(t,e))}}return pe.defaults=JSON.parse(JSON.stringify($t)),pe}())},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);let r=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(s.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:s,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(i(s)){r&&(this._unsubscribe=void 0);try{s.call(this)}catch(a){e=a instanceof u?d(a.errors):[a]}}if(l(o)){let t=-1,n=o.length;for(;++t<n;){const n=o[t];if(c(n))try{n.unsubscribe()}catch(a){e=e||[],a instanceof u?e=e.concat(d(a.errors)):e.push(a)}}}if(e)throw new u(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof u?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class m extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof m?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[p](){return this}static create(t,e,n){const i=new m(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends m{constructor(t,e,n,r){let s;super(),this._parentSubscriber=t;let o=this;i(e)?s=e:e&&(s=e.next,n=e.error,r=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=s;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return s.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const f=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(t){return t}let v=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,r=function(t,e,n){if(t){if(t instanceof m)return t;if(t[p])return t[p]()}return t||e||n?new m(t,e,n):new m(a)}(t,e,n);if(r.add(i?i.call(r,this.source):this.source||s.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),s.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(t){try{return this._subscribe(t)}catch(e){s.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof m?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=y(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(r){n(r),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[f](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?_:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=y(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function y(t){if(t||(t=s.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const x=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class b extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class w extends m{constructor(t){super(t),this.destination=t}}let C=(()=>{class t extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new w(this)}lift(t){const e=new P(this,this);return e.operator=t,e}next(t){if(this.closed)throw new x;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;r<n;r++)i[r].next(t)}}error(t){if(this.closed)throw new x;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;r<n;r++)i[r].error(t);this.observers.length=0}complete(){if(this.closed)throw new x;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new x;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new x;return this.hasError?(t.error(this.thrownError),h.EMPTY):this.isStopped?(t.complete(),h.EMPTY):(this.observers.push(t),new b(this,t))}asObservable(){const t=new v;return t.source=this,t}}return t.create=(t,e)=>new P(t,e),t})();class P extends C{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function M(t){return t&&"function"==typeof t.schedule}function O(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new S(t,e))}}class S{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new k(t,this.project,this.thisArg))}}class k extends m{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const T=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()};function E(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const I=E(),A=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function z(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const D=t=>{if(t&&"function"==typeof t[f])return i=t,t=>{const e=i[f]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(A(t))return T(t);if(z(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[I])return e=t,t=>{const n=e[I]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function L(t,e){return new v(n=>{const i=new h;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function R(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[f]}(t))return function(t,e){return new v(n=>{const i=new h;return i.add(e.schedule(()=>{const r=t[f]();i.add(r.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(z(t))return function(t,e){return new v(n=>{const i=new h;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(A(t))return L(t,e);if(function(t){return t&&"function"==typeof t[I]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new v(n=>{const i=new h;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[I](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof v?t:new v(D(t))}class F extends m{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class B extends m{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function N(t,e){if(e.closed)return;if(t instanceof v)return t.subscribe(e);let n;try{n=D(t)(e)}catch(i){e.error(i)}return n}function U(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(U((n,i)=>R(t(n,i)).pipe(O((t,r)=>e(n,t,i,r))),n)):("number"==typeof e&&(n=e),e=>e.lift(new H(t,n)))}class H{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new j(t,this.project,this.concurrent))}}class j extends B{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e)}_innerSub(t){const e=new F(this),n=this.destination;n.add(e);const i=N(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function V(t=Number.POSITIVE_INFINITY){return U(_,t)}function $(t,e){return e?L(t,e):new v(T(t))}function q(){return function(t){return t.lift(new G(t))}}class G{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new Z(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class Z extends m{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class W extends v{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new Q(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return q()(this)}}const X=(()=>{const t=W.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Q extends w{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function K(){return new C}function Y(t){for(let e in t)if(t[e]===Y)return e;throw Error("Could not find renamed property on target object.")}function J(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(J).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function tt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const et=Y({__forward_ref__:Y});function nt(t){return t.__forward_ref__=nt,t.toString=function(){return J(this())},t}function it(t){return"function"==typeof(e=t)&&e.hasOwnProperty(et)&&e.__forward_ref__===nt?t():t;var e}class rt extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function st(t){return"string"==typeof t?t:null==t?"":String(t)}function ot(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():st(t)}function at(t,e){const n=e?` in ${e}`:"";throw new rt("201",`No provider for ${ot(t)} found${n}`)}function lt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ct(t){return{providers:t.providers||[],imports:t.imports||[]}}function ut(t){return ht(t,pt)||ht(t,gt)}function ht(t,e){return t.hasOwnProperty(e)?t[e]:null}function dt(t){return t&&(t.hasOwnProperty(mt)||t.hasOwnProperty(ft))?t[mt]:null}const pt=Y({"\u0275prov":Y}),mt=Y({"\u0275inj":Y}),gt=Y({ngInjectableDef:Y}),ft=Y({ngInjectorDef:Y});var _t=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let vt;function yt(t){const e=vt;return vt=t,e}function xt(t,e,n){const i=ut(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&_t.Optional?null:void 0!==e?e:void at(J(t),"Injector")}function bt(t){return{toString:t}.toString()}var wt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Ct=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Pt="undefined"!=typeof globalThis&&globalThis,Mt="undefined"!=typeof window&&window,Ot="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,St="undefined"!=typeof global&&global,kt=Pt||St||Mt||Ot,Tt={},Et=[],It=[],At=Y({"\u0275cmp":Y}),zt=Y({"\u0275dir":Y}),Dt=Y({"\u0275pipe":Y}),Lt=Y({"\u0275mod":Y}),Rt=Y({"\u0275loc":Y}),Ft=Y({"\u0275fac":Y}),Bt=Y({__NG_ELEMENT_ID__:Y});let Nt=0;function Ut(t){return bt(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===wt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||It,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ct.Emulated,id:"c",styles:t.styles||It,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,s=t.pipes;return n.id+=Nt++,n.inputs=qt(t.inputs,e),n.outputs=qt(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Ht):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(jt):null,n})}function Ht(t){return Wt(t)||function(t){return t[zt]||null}(t)}function jt(t){return function(t){return t[Dt]||null}(t)}const Vt={};function $t(t){const e={type:t.type,bootstrap:t.bootstrap||It,declarations:t.declarations||It,imports:t.imports||It,exports:t.exports||It,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&bt(()=>{Vt[t.id]=t.type}),e}function qt(t,e){if(null==t)return Tt;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,e&&(e[r]=s)}return n}const Gt=Ut;function Zt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Wt(t){return t[At]||null}function Xt(t,e){const n=t[Lt]||null;if(!n&&!0===e)throw new Error(`Type ${J(t)} does not have '\u0275mod' property.`);return n}const Qt=20,Kt=10;function Yt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Jt(t){return Array.isArray(t)&&!0===t[1]}function te(t){return 0!=(8&t.flags)}function ee(t){return 2==(2&t.flags)}function ne(t){return 1==(1&t.flags)}function ie(t){return null!==t.template}function re(t,e){return t.hasOwnProperty(Ft)?t[Ft]:null}class se{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function oe(){return ae}function ae(t){return t.type.prototype.ngOnChanges&&(t.setInput=ce),le}function le(){const t=ue(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Tt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function ce(t,e,n,i){const r=ue(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Tt,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];s[a]=new se(l&&l.currentValue,e,o===Tt),t[i]=e}function ue(t){return t.__ngSimpleChanges__||null}oe.ngInherit=!0;const he="http://www.w3.org/2000/svg";let de;function pe(){return void 0!==de?de:"undefined"!=typeof document?document:void 0}function me(t){return!!t.listen}const ge={createRenderer:(t,e)=>pe()};function fe(t){for(;Array.isArray(t);)t=t[0];return t}function _e(t,e){return fe(e[t])}function ve(t,e){return fe(e[t.index])}function ye(t,e){return t.data[e]}function xe(t,e){return t[e]}function be(t,e){const n=e[t];return Yt(n)?n:n[0]}function we(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ce(t){return 4==(4&t[2])}function Pe(t){return 128==(128&t[2])}function Me(t,e){return null==e?null:t[e]}function Oe(t){t[18]=0}function Se(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const ke={lFrame:Qe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Te(){return ke.bindingsEnabled}function Ee(){return ke.lFrame.lView}function Ie(){return ke.lFrame.tView}function Ae(t){ke.lFrame.contextLView=t}function ze(){let t=De();for(;null!==t&&64===t.type;)t=t.parent;return t}function De(){return ke.lFrame.currentTNode}function Le(t,e){const n=ke.lFrame;n.currentTNode=t,n.isParent=e}function Re(){return ke.lFrame.isParent}function Fe(){ke.lFrame.isParent=!1}function Be(){return ke.isInCheckNoChangesMode}function Ne(t){ke.isInCheckNoChangesMode=t}function Ue(){const t=ke.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function He(){return ke.lFrame.bindingIndex++}function je(t,e){const n=ke.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ve(e)}function Ve(t){ke.lFrame.currentDirectiveIndex=t}function $e(){return ke.lFrame.currentQueryIndex}function qe(t){ke.lFrame.currentQueryIndex=t}function Ge(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Ze(t,e,n){if(n&_t.SkipSelf){let i=e,r=t;for(;i=i.parent,!(null!==i||n&_t.Host||(i=Ge(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;e=i,t=r}const i=ke.lFrame=Xe();return i.currentTNode=e,i.lView=t,!0}function We(t){const e=Xe(),n=t[1];ke.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Xe(){const t=ke.lFrame,e=null===t?null:t.child;return null===e?Qe(t):e}function Qe(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Ke(){const t=ke.lFrame;return ke.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Ye=Ke;function Je(){const t=Ke();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function tn(){return ke.lFrame.selectedIndex}function en(t){ke.lFrame.selectedIndex=t}function nn(){const t=ke.lFrame;return ye(t.tView,t.selectedIndex)}function rn(){ke.lFrame.currentNamespace=he}function sn(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:r,ngAfterViewInit:s,ngAfterViewChecked:o,ngOnDestroy:a}=e;i&&(t.contentHooks||(t.contentHooks=[])).push(-n,i),r&&((t.contentHooks||(t.contentHooks=[])).push(n,r),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,r)),s&&(t.viewHooks||(t.viewHooks=[])).push(-n,s),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function on(t,e,n){cn(t,e,3,n)}function an(t,e,n,i){(3&t[2])===n&&cn(t,e,n,i)}function ln(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function cn(t,e,n,i){const r=null!=i?i:-1,s=e.length-1;let o=0;for(let a=void 0!==i?65535&t[18]:0;a<s;a++)if("number"==typeof e[a+1]){if(o=e[a],null!=i&&o>=i)break}else e[a]<0&&(t[18]+=65536),(o<r||-1==r)&&(un(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function un(t,e,n,i){const r=n[i]<0,s=n[i+1],o=t[r?-n[i]:n[i]];if(r){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{s.call(o)}finally{}}}else try{s.call(o)}finally{}}const hn=-1;class dn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function pn(t,e,n){const i=me(t);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const o=n[r++],a=n[r++],l=n[r++];i?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=n[++r];gn(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function mn(t){return 3===t||4===t||6===t}function gn(t){return 64===t.charCodeAt(0)}function fn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?n=r:0===n||_n(t,n,r,null,-1===n||2===n?e[++i]:null)}}return t}function _n(t,e,n,i,r){let s=0,o=t.length;if(-1===e)o=-1;else for(;s<t.length;){const n=t[s++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=s-1;break}}}for(;s<t.length;){const e=t[s];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==r&&(t[s+1]=r));if(i===t[s+1])return void(t[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(t.splice(o,0,e),s=o+1),t.splice(s++,0,n),null!==i&&t.splice(s++,0,i),null!==r&&t.splice(s++,0,r)}function vn(t){return t!==hn}function yn(t){return 32767&t}function xn(t,e){let n=t>>16,i=e;for(;n>0;)i=i[15],n--;return i}let bn=!0;function wn(t){const e=bn;return bn=t,e}let Cn=0;function Pn(t,e){const n=On(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Mn(i.data,t),Mn(e,null),Mn(i.blueprint,null));const r=Sn(t,e),s=t.injectorIndex;if(vn(r)){const t=yn(r),n=xn(r,e),i=n[1].data;for(let r=0;r<8;r++)e[s+r]=n[t+r]|i[t+r]}return e[s+8]=r,s}function Mn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function On(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Sn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(i=2===e?t.declTNode:1===e?r[6]:null,null===i)return hn;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return hn}function kn(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Bt)&&(i=n[Bt]),null==i&&(i=n[Bt]=Cn++);const r=255&i;e.data[t+(r>>5)]|=1<<r}(t,e,n)}function Tn(t,e,n){if(n&_t.Optional)return t;at(e,"NodeInjector")}function En(t,e,n,i){if(n&_t.Optional&&void 0===i&&(i=null),0==(n&(_t.Self|_t.Host))){const r=t[9],s=yt(void 0);try{return r?r.get(e,i,n&_t.Optional):xt(e,i,n&_t.Optional)}finally{yt(s)}}return Tn(i,e,n)}function In(t,e,n,i=_t.Default,r){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Bt)?t[Bt]:void 0;return"number"==typeof e?e>=0?255&e:zn:e}(n);if("function"==typeof s){if(!Ze(e,t,i))return i&_t.Host?Tn(r,n,i):En(e,n,i,r);try{const t=s();if(null!=t||i&_t.Optional)return t;at(n)}finally{Ye()}}else if("number"==typeof s){let r=null,o=On(t,e),a=hn,l=i&_t.Host?e[16][6]:null;for((-1===o||i&_t.SkipSelf)&&(a=-1===o?Sn(t,e):e[o+8],a!==hn&&Bn(i,!1)?(r=e[1],o=yn(a),e=xn(a,e)):o=-1);-1!==o;){const t=e[1];if(Fn(s,o,t.data)){const t=Dn(o,e,n,r,i,l);if(t!==An)return t}a=e[o+8],a!==hn&&Bn(i,e[1].data[o+8]===l)&&Fn(s,o,e)?(r=t,o=yn(a),e=xn(a,e)):o=-1}}}return En(e,n,i,r)}const An={};function zn(){return new Nn(ze(),Ee())}function Dn(t,e,n,i,r,s){const o=e[1],a=o.data[t+8],l=Ln(a,o,n,null==i?ee(a)&&bn:i!=o&&0!=(3&a.type),r&_t.Host&&s===a);return null!==l?Rn(e,o,l,a):An}function Ln(t,e,n,i,r){const s=t.providerIndexes,o=e.data,a=1048575&s,l=t.directiveStart,c=s>>20,u=r?a+c:t.directiveEnd;for(let h=i?a:a+c;h<u;h++){const t=o[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(r){const t=o[l];if(t&&ie(t)&&t.type===n)return l}return null}function Rn(t,e,n,i){let r=t[n];const s=e.data;if(r instanceof dn){const o=r;o.resolving&&function(t,e){throw new rt("200",`Circular dependency in DI detected for ${t}`)}(ot(s[n]));const a=wn(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?yt(o.injectImpl):null;Ze(t,i,_t.Default);try{r=t[n]=o.factory(void 0,s,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const i=ae(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{null!==l&&yt(l),wn(a),o.resolving=!1,Ye()}}return r}function Fn(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function Bn(t,e){return!(t&_t.Self||t&_t.Host&&e)}class Nn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return In(this._tNode,this._lView,t,void 0,e)}}const Un="__parameters__";function Hn(t,e,n){return bt(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty(Un)?t[Un]:Object.defineProperty(t,Un,{value:[]})[Un];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class jn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=lt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Vn=new jn("AnalyzeForEntryComponents"),$n=Function;function qn(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let i=t[n];Array.isArray(i)?(e===t&&(e=t.slice(0,n)),qn(i,e)):e!==t&&e.push(i)}return e}function Gn(t,e){t.forEach(t=>Array.isArray(t)?Gn(t,e):e(t))}function Zn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Wn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Xn(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function Qn(t,e,n){let i=Yn(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function Kn(t,e){const n=Yn(t,e);if(n>=0)return t[1|n]}function Yn(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=t[n<<1];if(e===s)return n<<1;s>e?r=n:i=n+1}return~(r<<1)}(t,e)}const Jn={},ti=/\n/gm,ei="__source",ni=Y({provide:String,useValue:Y});let ii;function ri(t){const e=ii;return ii=t,e}function si(t,e=_t.Default){if(void 0===ii)throw new Error("inject() must be called from an injection context");return null===ii?xt(t,void 0,e):ii.get(t,e&_t.Optional?null:void 0,e)}function oi(t,e=_t.Default){return(vt||si)(it(t),e)}function ai(t){const e=[];for(let n=0;n<t.length;n++){const i=it(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t,n=_t.Default;for(let e=0;e<i.length;e++){const r=i[e],s=r.__NG_DI_FLAG__;"number"==typeof s?-1===s?t=r.token:n|=s:t=r}e.push(oi(t,n))}else e.push(oi(i))}return e}function li(t,e){return t.__NG_DI_FLAG__=e,t.prototype.__NG_DI_FLAG__=e,t}const ci=li(Hn("Inject",t=>({token:t})),-1),ui=li(Hn("Optional"),8),hi=li(Hn("SkipSelf"),4);let di,pi;function mi(t){var e;
vendor: 10,272 bytes, line 1
1return(null===(e=function(){if(void 0===di&&(di=null,kt.trustedTypes))try{di=kt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return di}())||void 0===e?void 0:e.createHTML(t))||t}function gi(){if(void 0===pi&&(pi=null,kt.trustedTypes))try{pi=kt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return pi}function fi(t){var e;return(null===(e=gi())||void 0===e?void 0:e.createHTML(t))||t}function _i(t){var e;return(null===(e=gi())||void 0===e?void 0:e.createScriptURL(t))||t}class vi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class yi extends vi{getTypeName(){return"HTML"}}class xi extends vi{getTypeName(){return"Style"}}class bi extends vi{getTypeName(){return"Script"}}class wi extends vi{getTypeName(){return"URL"}}class Ci extends vi{getTypeName(){return"ResourceURL"}}function Pi(t){return t instanceof vi?t.changingThisBreaksApplicationSecurity:t}function Mi(t,e){const n=Oi(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Oi(t){return t instanceof vi&&t.getTypeName()||null}class Si{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(mi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class ki{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=mi(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=mi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Ti=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Ei=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ii(t){return(t=String(t)).match(Ti)||t.match(Ei)?t:"unsafe:"+t}function Ai(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function zi(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Di=Ai("area,br,col,hr,img,wbr"),Li=Ai("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ri=Ai("rp,rt"),Fi=zi(Ri,Li),Bi=zi(Di,zi(Li,Ai("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),zi(Ri,Ai("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Fi),Ni=Ai("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ui=Ai("srcset"),Hi=zi(Ni,Ui,Ai("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ai("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),ji=Ai("script,style,template");class Vi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Bi.hasOwnProperty(e))return this.sanitizedSomething=!0,!ji.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r<n.length;r++){const t=n.item(r),e=t.name,s=e.toLowerCase();if(!Hi.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let o=t.value;Ni[s]&&(o=Ii(o)),Ui[s]&&(i=o,o=(i=String(i)).split(",").map(t=>Ii(t.trim())).join(", ")),this.buf.push(" ",e,'="',Gi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Bi.hasOwnProperty(e)&&!Di.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Gi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const $i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qi=/([^\#-~ |!])/g;function Gi(t){return t.replace(/&/g,"&amp;").replace($i,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(qi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Zi;function Wi(t,e){let n=null;try{Zi=Zi||function(t){const e=new ki(t);return function(){try{return!!(new window.DOMParser).parseFromString(mi(""),"text/html")}catch(t){return!1}}()?new Si(e):e}(t);let i=e?String(e):"";n=Zi.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=Zi.getInertBodyElement(i)}while(i!==s);return mi((new Vi).sanitizeChildren(Xi(n)||n))}finally{if(n){const t=Xi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Xi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Qi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Ki(t){const e=tr();return e?fi(e.sanitize(Qi.HTML,t)||""):Mi(t,"HTML")?fi(Pi(t)):Wi(pe(),st(t))}function Yi(t){const e=tr();return e?e.sanitize(Qi.URL,t)||"":Mi(t,"URL")?Pi(t):Ii(st(t))}function Ji(t){const e=tr();if(e)return _i(e.sanitize(Qi.RESOURCE_URL,t)||"");if(Mi(t,"ResourceURL"))return _i(Pi(t));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function tr(){const t=Ee();return t&&t[12]}function er(t){return t.ngDebugContext}function nr(t){return t.ngOriginalError}function ir(t,...e){t.error(...e)}class rr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||ir}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?er(t)?er(t):this._findContext(nr(t)):null}_findOriginalError(t){let e=nr(t);for(;e&&nr(e);)e=nr(e);return e}}function sr(t,e){t.__ngContext__=e}const or=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(kt))();function ar(t){return{name:"window",target:t.ownerDocument.defaultView}}function lr(t){return t instanceof Function?t():t}var cr=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function ur(t,e){return(void 0)(t,e)}function hr(t){const e=t[3];return Jt(e)?e[3]:e}function dr(t){return mr(t[13])}function pr(t){return mr(t[4])}function mr(t){for(;null!==t&&!Jt(t);)t=t[4];return t}function gr(t,e,n,i,r){if(null!=i){let s,o=!1;Jt(i)?s=i:Yt(i)&&(o=!0,i=i[0]);const a=fe(i);0===t&&null!==n?null==r?Cr(e,n,a):wr(e,n,a,r||null,!0):1===t&&null!==n?wr(e,n,a,r||null,!0):2===t?function(t,e,n){const i=Mr(t,e);i&&function(t,e,n,i){me(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,n,i,r){const s=n[7];s!==fe(n)&&gr(e,t,i,s,r);for(let o=Kt;o<n.length;o++){const r=n[o];zr(r[1],r,t,e,i,s)}}(e,t,s,n,r)}}function fr(t,e,n){return me(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function _r(t,e){const n=t[9],i=n.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Se(r,-1)),n.splice(i,1)}function vr(t,e){if(t.length<=Kt)return;const n=Kt+e,i=t[n];if(i){const s=i[17];null!==s&&s!==t&&_r(s,i),e>0&&(t[n-1][4]=i[4]);const o=Wn(t,Kt+e);zr(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function yr(t,e){if(!(256&e[2])){const n=e[11];me(n)&&n.destroyNode&&zr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return xr(t[1],t);for(;e;){let n=null;if(Yt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Yt(e)&&xr(e[1],e),e=e[3];null===e&&(e=t),Yt(e)&&xr(e[1],e),n=e&&e[4]}e=n}}(e)}}function xr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;
vendor: 17,559 bytes, line 1
1i+=2){const t=e[n[i]];if(!(t instanceof dn)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2){const i=t[e[n]],r=e[n+1];try{r.call(i)}finally{}}else try{e.call(t)}finally{}}}}(t,e),function(t,e){const n=t.cleanup,i=e[7];let r=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const t=n[s+1],o="function"==typeof t?t(e):fe(e[t]),a=i[r=n[s+2]],l=n[s+3];"boolean"==typeof l?o.removeEventListener(n[s],a,l):l>=0?i[r=l]():i[r=-l].unsubscribe(),s+=2}else{const t=i[r=n[s+1]];n[s].call(t)}if(null!==i){for(let t=r+1;t<i.length;t++)(0,i[t])();e[7]=null}}(t,e),1===e[1].type&&me(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&Jt(e[3])){n!==e[3]&&_r(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function br(t,e,n){return function(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const e=t.data[i.directiveStart].encapsulation;if(e===Ct.None||e===Ct.Emulated)return null}return ve(i,n)}(t,e.parent,n)}function wr(t,e,n,i,r){me(t)?t.insertBefore(e,n,i,r):e.insertBefore(n,i,r)}function Cr(t,e,n){me(t)?t.appendChild(e,n):e.appendChild(n)}function Pr(t,e,n,i,r){null!==i?wr(t,e,n,i,r):Cr(t,e,n)}function Mr(t,e){return me(t)?t.parentNode(e):e.parentNode}function Or(t,e,n){return Sr(t,e,n)}let Sr=function(t,e,n){return 40&t.type?ve(t,n):null};function kr(t,e,n,i){const r=br(t,i,e),s=e[11],o=Or(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(n))for(let a=0;a<n.length;a++)Pr(s,r,n[a],o,!1);else Pr(s,r,n,o,!1)}function Tr(t,e){if(null!==e){const n=e.type;if(3&n)return ve(e,t);if(4&n)return Ir(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return Tr(t,n);{const n=t[e.index];return Jt(n)?Ir(-1,n):fe(n)}}if(32&n)return ur(e,t)()||fe(t[e.index]);{const n=Er(t,e);return null!==n?Array.isArray(n)?n[0]:Tr(hr(t[16]),n):Tr(t,e.next)}}return null}function Er(t,e){return null!==e?t[16][6].projection[e.projection]:null}function Ir(t,e){const n=Kt+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return Tr(t,i)}return e[7]}function Ar(t,e,n,i,r,s,o){for(;null!=n;){const a=i[n.index],l=n.type;if(o&&0===e&&(a&&sr(fe(a),i),n.flags|=4),64!=(64&n.flags))if(8&l)Ar(t,e,n.child,i,r,s,!1),gr(e,t,r,a,s);else if(32&l){const o=ur(n,i);let l;for(;l=o();)gr(e,t,r,l,s);gr(e,t,r,a,s)}else 16&l?Dr(t,e,i,n,r,s):gr(e,t,r,a,s);n=o?n.projectionNext:n.next}}function zr(t,e,n,i,r,s){Ar(n,i,t.firstChild,e,r,s,!1)}function Dr(t,e,n,i,r,s){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)gr(e,t,r,a[l],s);else Ar(t,e,a,o[3],r,s,!0)}function Lr(t,e,n){me(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Rr(t,e,n){me(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function Fr(t,e,n){let i=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const n=e.length;if(r+n===i||t.charCodeAt(r+n)<=32)return r}n=r+1}}const Br="ng-template";function Nr(t,e,n){let i=0;for(;i<t.length;){let r=t[i++];if(n&&"class"===r){if(r=t[i],-1!==Fr(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function Ur(t){return 4===t.type&&t.value!==Br}function Hr(t,e,n){return e===(4!==t.type||n?t.value:Br)}function jr(t,e,n){let i=4;const r=t.attrs||[],s=function(t){for(let e=0;e<t.length;e++)if(mn(t[e]))return e;return t.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!Hr(t,l,n)||""===l&&1===e.length){if(Vr(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==t.attrs){if(!Nr(t.attrs,c,n)){if(Vr(i))return!1;o=!0}continue}const u=$r(8&i?"class":l,r,Ur(t),n);if(-1===u){if(Vr(i))return!1;o=!0;continue}if(""!==c){let t;t=u>s?"":r[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Fr(e,c,0)||2&i&&c!==t){if(Vr(i))return!1;o=!0}}}}else{if(!o&&!Vr(i)&&!Vr(l))return!1;if(o&&Vr(l))continue;o=!1,i=l|1&i}}return Vr(i)||o}function Vr(t){return 0==(1&t)}function $r(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r<e.length;){const i=e[r];if(i===t)return r;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++r];for(;"string"==typeof t;)t=e[++r];continue}if(4===i)break;if(0===i){r+=4;continue}}r+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function qr(t,e,n=!1){for(let i=0;i<e.length;i++)if(jr(t,e[i],n))return!0;return!1}function Gr(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function Zr(t,e){return t?":not("+e.trim()+")":e}function Wr(t){let e=t[0],n=1,i=2,r="",s=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];r+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||Vr(o)||(e+=Zr(s,r),r=""),i=o,s=s||!Vr(i);n++}return""!==r&&(e+=Zr(s,r)),e}const Xr={};function Qr(t){Kr(Ie(),Ee(),tn()+t,Be())}function Kr(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&on(e,i,n)}else{const i=t.preOrderHooks;null!==i&&an(e,i,0,n)}en(n)}function Yr(t,e){return t<<17|e<<2}function Jr(t){return t>>17&32767}function ts(t){return 2|t}function es(t){return(131068&t)>>2}function ns(t,e){return-131069&t|e<<2}function is(t){return 1|t}function rs(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],s=n[i+1];if(-1!==s){const n=t.data[s];qe(r),n.contentQueries(2,e[s],s)}}}function ss(t,e,n,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,Oe(u),u[3]=u[15]=t,u[8]=n,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=s,u[16]=2==e.type?t[16]:u,u}function os(t,e,n,i,r){let s=t.data[e];if(null===s)s=function(t,e,n,i,r){const s=De(),o=Re(),a=t.data[e]=function(t,e,n,i,r,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,n,e,i,r);return null===t.firstChild&&(t.firstChild=a),null!==s&&(o?null==s.child&&null!==a.parent&&(s.child=a):null===s.next&&(s.next=a)),a}(t,e,n,i,r),ke.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;const t=function(){const t=ke.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();s.injectorIndex=null===t?-1:t.injectorIndex}return Le(s,!0),s}function as(t,e,n,i){if(0===n)return-1;const r=e.length;for(let s=0;s<n;s++)e.push(i),t.blueprint.push(i),t.data.push(null);return r}function ls(t,e,n){We(e);try{const i=t.viewQuery;null!==i&&Bs(1,i,n);const r=t.template;null!==r&&hs(t,e,r,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&rs(t,e),t.staticViewQueries&&Bs(2,t.viewQuery,n);const s=t.components;null!==s&&function(t,e){for(let n=0;n<e.length;n++)zs(t,e[n])}(e,s)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,Je()}}function cs(t,e,n,i){const r=e[2];if(256==(256&r))return;We(e);const s=Be();try{Oe(e),ke.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&hs(t,e,n,2,i);const o=3==(3&r);if(!s)if(o){const n=t.preOrderCheckHooks;null!==n&&on(e,n,null)}else{const n=t.preOrderHooks;null!==n&&an(e,n,0,null),ln(e,0)}if(function(t){for(let e=dr(t);null!==e;e=pr(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&Se(i,1),n[2]|=1024}}}(e),function(t){for(let e=dr(t);null!==e;e=pr(e))for(let t=Kt;t<e.length;t++){const n=e[t],i=n[1];Pe(n)&&cs(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&rs(t,e),!s)if(o){const n=t.contentCheckHooks;null!==n&&on(e,n)}else{const n=t.contentHooks;null!==n&&an(e,n,1),ln(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let t=0;t<n.length;t++){const i=n[t];if(i<0)en(~i);else{const r=i,s=n[++t],o=n[++t];je(s,r),o(2,e[r])}}}finally{en(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)Is(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&Bs(2,l,i),!s)if(o){const n=t.viewCheckHooks;null!==n&&on(e,n)}else{const n=t.viewHooks;null!==n&&an(e,n,2),ln(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),s||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Se(e[3],-1))}finally{Je()}}function us(t,e,n,i){const r=e[10],s=!Be(),o=Ce(e);try{s&&!o&&r.begin&&r.begin(),o&&ls(t,e,i),cs(t,e,n,i)}finally{s&&!o&&r.end&&r.end()}}function hs(t,e,n,i,r){const s=tn(),o=2&i;try{en(-1),o&&e.length>Qt&&Kr(t,e,Qt,Be()),n(i,r)}finally{en(s)}}function ds(t,e,n){if(te(e)){const i=e.directiveEnd;for(let r=e.directiveStart;r<i;r++){const e=t.data[r];e.contentQueries&&e.contentQueries(1,n[r],r)}}}function ps(t,e,n){Te()&&(function(t,e,n,i){const r=n.directiveStart,s=n.directiveEnd;t.firstCreatePass||Pn(n,e),sr(i,e);const o=n.initialInputs;for(let a=r;a<s;a++){const i=t.data[a],s=ie(i);s&&Ss(e,n,i);const l=Rn(e,t,a,n);sr(l,e),null!==o&&ks(0,a-r,l,i,0,o),s&&(be(n.index,e)[8]=l)}}(t,e,n,ve(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,r=n.directiveEnd,s=n.index,o=ke.lFrame.currentDirectiveIndex;try{en(s);for(let n=i;n<r;n++){const i=t.data[n],r=e[n];Ve(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||ws(i,r)}}finally{en(-1),Ve(o)}}(t,e,n))}function ms(t,e,n=ve){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?n(e,t):t[o];t[r++]=a}}}function gs(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=fs(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function fs(t,e,n,i,r,s,o,a,l,c){const u=Qt+i,h=u+r,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:Xr);return n}(u,h),p="function"==typeof c?c():c;return d[1]={type:t,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:e,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function _s(t,e,n,i){const r=Us(e);null===n?r.push(i):(r.push(n),t.firstCreatePass&&Hs(t).push(i,r.length-1))}function vs(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,r):n[i]=[e,r]}return n}function ys(t,e,n,i,r,s,o,a){const l=ve(e,n);let c,u=e.inputs;var h;!a&&null!=u&&(c=u[i])?(Vs(t,n,c,i,r),ee(e)&&function(t,e){const n=be(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(i="class"===(h=i)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,r=null!=o?o(r,e.value||"",i):r,me(s)?s.setProperty(l,i,r):gn(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function xs(t,e,n,i){let r=!1;if(Te()){const s=function(t,e,n){const i=t.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];qr(n,o.selectors,!1)&&(r||(r=[]),kn(Pn(n,e),t,o.type),ie(o)?(Cs(t,n),r.unshift(o)):r.push(o))}return r}(t,e,n),o=null===i?null:{"":-1};if(null!==s){r=!0,Ms(n,t.data.length,s.length);for(let t=0;t<s.length;t++){const e=s[t];e.providersResolver&&e.providersResolver(e)}let i=!1,a=!1,l=as(t,e,s.length,null);for(let r=0;r<s.length;r++){const c=s[r];n.mergedAttrs=fn(n.mergedAttrs,c.hostAttrs),Os(t,n,e,l,c),Ps(l,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!i&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),i=!0),a||!u.ngOnChanges&&!u.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(t,e){const n=e.directiveEnd,i=t.data,r=e.attrs,s=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=i[l],n=t.inputs,c=null===r||Ur(e)?null:Ts(n,r);s.push(c),o=vs(n,l,o),a=vs(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=s,e.inputs=o,e.outputs=a}(t,n)}o&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const r=n[e[t+1]];if(null==r)throw new rt("301",`Export of name '${e[t+1]}' not found!`);i.push(e[t],r)}}}(n,i,o)}return n.mergedAttrs=fn(n.mergedAttrs,n.attrs),r}function bs(t,e,n,i,r,s){const o=s.hostBindings;if(o){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const s=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(i,r,o)}}function ws(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Cs(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Ps(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;ie(e)&&(n[""]=t)}}function Ms(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Os(t,e,n,i,r){t.data[i]=r;const s=r.factory||(r.factory=re(r.type)),o=new dn(s,ie(r),null);t.blueprint[i]=o,n[i]=o,bs(t,e,0,i,as(t,n,r.hostVars,Xr),r)}function Ss(t,e,n){const i=ve(e,t),r=gs(n),s=t[10],o=Ds(t,ss(t,r,null,n.onPush?64:16,i,e,s,s.createRenderer(i,n),null,null));t[e.index]=o}function ks(t,e,n,i,r,s){const o=s[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const r=o[e++],s=o[e++],a=o[e++];null!==t?i.setInput(n,a,r,s):n[s]=a}}}function Ts(t,e){let n=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,t[r],e[i+1])),i+=2}else i+=2;else i+=4}return n}function Es(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function Is(t,e){const n=be(e,t);if(Pe(n)){const t=n[1];80&n[2]?cs(t,n,t.template,n[8]):n[5]>0&&As(n)}}function As(t){for(let n=dr(t);null!==n;n=pr(n))for(let t=Kt;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];cs(t,e,t.template,e[8])}else e[5]>0&&As(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const i=be(e[n],t);Pe(i)&&i[5]>0&&As(i)}}function zs(t,e){const n=be(e,t),i=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),ls(i,n,n[8])}function Ds(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Ls(t){for(;t;){t[2]|=64;const e=hr(t);if(0!=(512&t[2])&&!e)return t;t=e}return null}function Rs(t,e,n){const i=e[10];i.begin&&i.begin();try{cs(t,e,t.template,n)}catch(r){throw js(e,r),r}finally{i.end&&i.end()}}function Fs(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=we(n),r=i[1];us(r,i,r.template,n)}}(t[8])}function Bs(t,e,n){qe(0),e(t,n)}const Ns=(()=>Promise.resolve(null))();function Us(t){return t[7]||(t[7]=[])}function Hs(t){return t.cleanup||(t.cleanup=[])}function js(t,e){const n=t[9],i=n?n.get(rr,null):null;i&&i.handleError(e)}function Vs(t,e,n,i,r){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function $s(t,e,n){let i=n?t.styles:null,r=n?t.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?s=t:1==s?r=tt(r,t):2==s&&(i=tt(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=r:t.classesWithoutHost=r}const qs=new jn("INJECTOR",-1);class Gs{get(t,e=Jn){if(e===Jn){const e=new Error(`NullInjectorError: No provider for ${J(t)}!`);throw e.name="NullInjectorError",e}return e}}const Zs=new jn("Set Injector scope."),Ws={},Xs={},Qs=[];let Ks;function Ys(){return void 0===Ks&&(Ks=new Gs),Ks}function Js(t,e=null,n=null,i){return new to(t,n,e||Ys(),i)}class to{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&Gn(e,n=>this.processProvider(n,t,e)),Gn([t],t=>this.processInjectorType(t,[],r)),this.records.set(qs,no(void 0,this));const s=this.records.get(Zs);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:J(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Jn,n=_t.Default){this.assertNotDestroyed();const i=ri(this);try{if(!(n&_t.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof jn)&&ut(t);e=n&&this.injectableDefInScope(n)?no(eo(t),Ws):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&_t.Self?Ys():this.parent).get(t,e=n&_t.Optional&&e===Jn?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(J(t)),i)throw s;return function(t,e,n,i){const r=t.ngTempTokenPath;throw e[ei]&&r.unshift(e[ei]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=J(e);if(Array.isArray(e))r=e.map(J).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];
vendor: 9,971 bytes, line 1
1t.push(n+":"+("string"==typeof i?JSON.stringify(i):J(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(ti,"\n  ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{ri(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(J(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=it(t)))return!1;let i=dt(t);const r=null==i&&t.ngModule||void 0,s=void 0===r?t:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=dt(r)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(s);try{Gn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];Gn(i,t=>this.processProvider(t,n,i||Qs))}}this.injectorDefTypes.add(s);const a=re(s)||(()=>new s);this.records.set(s,no(a,Ws));const l=i.providers;if(null!=l&&!o){const e=t;Gn(l,t=>this.processProvider(t,e,l))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=ro(t=it(t))?t:it(t&&t.provide);const r=function(t,e,n){return io(t)?no(void 0,t.useValue):no(function(t,e,n){let i;if(ro(t)){const e=it(t);return re(e)||eo(e)}if(io(t))i=()=>it(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...ai(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>oi(it(t.useExisting));else{const e=it(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return re(e)||eo(e);i=()=>new e(...ai(t.deps))}var r;return i}(t),Ws)}(t);if(ro(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=no(void 0,Ws,!0),e.factory=()=>ai(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){var n;return e.value===Ws&&(e.value=Xs,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function eo(t){const e=ut(t),n=null!==e?e.factory:re(t);if(null!==n)return n;if(t instanceof jn)throw new Error(`Token ${J(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=Xn(e,"?");throw new Error(`Can't resolve all parameters for ${J(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[pt]||t[gt]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function no(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function io(t){return null!==t&&"object"==typeof t&&ni in t}function ro(t){return"function"==typeof t}const so=function(t,e,n){return function(t,e=null,n=null,i){const r=Js(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let oo=(()=>{class t{static create(t,e){return Array.isArray(t)?so(t,e,""):so(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Jn,t.NULL=new Gs,t.\u0275prov=lt({token:t,providedIn:"any",factory:()=>oi(qs)}),t.__NG_ELEMENT_ID__=-1,t})();function ao(t,e){sn(we(t)[1],ze())}let lo=null;function co(){if(!lo){const t=kt.Symbol;if(t&&t.iterator)lo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(lo=n)}}}return lo}class uo{constructor(t){this.wrapped=t}static wrap(t){return new uo(t)}static unwrap(t){return uo.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof uo}}function ho(t){return!!po(t)&&(Array.isArray(t)||!(t instanceof Map)&&co()in t)}function po(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function mo(t,e,n){return t[e]=n}function go(t,e){return t[e]}function fo(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function _o(t,e,n,i){const r=fo(t,e,n);return fo(t,e+1,i)||r}function vo(t,e,n,i,r,s){const o=_o(t,e,n,i);return _o(t,e+2,r,s)||o}function yo(t,e,n,i){const r=Ee();return fo(r,He(),e)&&(Ie(),function(t,e,n,i,r,s){const o=ve(t,e);!function(t,e,n,i,r,s,o){if(null==s)me(t)?t.removeAttribute(e,r,n):e.removeAttribute(r);else{const a=null==o?st(s):o(s,i||"",r);me(t)?t.setAttribute(e,r,a,n):n?e.setAttributeNS(n,r,a):e.setAttribute(r,a)}}(e[11],o,s,t.value,n,i,r)}(nn(),r,t,e,n,i)),yo}function xo(t,e,n,i,r,s,o,a){const l=Ee(),c=Ie(),u=t+Qt,h=c.firstCreatePass?function(t,e,n,i,r,s,o,a,l){const c=e.consts,u=os(e,t,4,o||null,Me(c,a));xs(e,n,u,Me(c,l)),sn(e,u);const h=u.tViews=fs(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,n,i,r,s,o):c.data[u];Le(h,!1);const d=l[11].createComment("");kr(c,l,d,h),sr(d,l),Ds(l,l[u]=Es(d,l,d,h)),ne(h)&&ps(c,l,h),null!=o&&ms(l,h,a)}function bo(t){return xe(ke.lFrame.contextLView,Qt+t)}function wo(t,e=_t.Default){const n=Ee();return null===n?oi(t,e):In(ze(),n,it(t),e)}function Co(t,e,n){const i=Ee();return fo(i,He(),e)&&ys(Ie(),nn(),i,t,e,i[11],n,!1),Co}function Po(t,e,n,i,r){const s=r?"class":"style";Vs(t,n,e.inputs[s],s,i)}function Mo(t,e,n,i){const r=Ee(),s=Ie(),o=Qt+t,a=r[11],l=r[o]=fr(a,e,ke.lFrame.currentNamespace),c=s.firstCreatePass?function(t,e,n,i,r,s,o){const a=e.consts,l=os(e,t,2,r,Me(a,s));return xs(e,n,l,Me(a,o)),null!==l.attrs&&$s(l,l.attrs,!1),null!==l.mergedAttrs&&$s(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(o,s,r,0,e,n,i):s.data[o];Le(c,!0);const u=c.mergedAttrs;null!==u&&pn(a,l,u);const h=c.classes;null!==h&&Rr(a,l,h);const d=c.styles;null!==d&&Lr(a,l,d),64!=(64&c.flags)&&kr(s,r,l,c),0===ke.lFrame.elementDepthCount&&sr(l,r),ke.lFrame.elementDepthCount++,ne(c)&&(ps(s,r,c),ds(s,c,r)),null!==i&&ms(r,c)}function Oo(){let t=ze();Re()?Fe():(t=t.parent,Le(t,!1));const e=t;ke.lFrame.elementDepthCount--;const n=Ie();n.firstCreatePass&&(sn(n,t),te(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Po(n,e,Ee(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Po(n,e,Ee(),e.stylesWithoutHost,!1)}function So(t,e,n,i){Mo(t,e,n,i),Oo()}function ko(t,e,n){const i=Ee(),r=Ie(),s=t+Qt,o=r.firstCreatePass?function(t,e,n,i,r){const s=e.consts,o=Me(s,i),a=os(e,t,8,"ng-container",o);return null!==o&&$s(a,o,!0),xs(e,n,a,Me(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,n):r.data[s];Le(o,!0);const a=i[s]=i[11].createComment("");kr(r,i,a,o),sr(a,i),ne(o)&&(ps(r,i,o),ds(r,o,i)),null!=n&&ms(i,o)}function To(){let t=ze();const e=Ie();Re()?Fe():(t=t.parent,Le(t,!1)),e.firstCreatePass&&(sn(e,t),te(t)&&e.queries.elementEnd(t))}function Eo(t,e,n){ko(t,e,n),To()}function Io(){return Ee()}function Ao(t){return!!t&&"function"==typeof t.then}function zo(t){return!!t&&"function"==typeof t.subscribe}const Do=zo;function Lo(t,e,n=!1,i){const r=Ee(),s=Ie(),o=ze();return function(t,e,n,i,r,s,o=!1,a){const l=ne(i),c=t.firstCreatePass&&Hs(t),u=Us(e);let h=!0;if(3&i.type){const d=ve(i,e),p=a?a(d):Tt,m=p.target||d,g=u.length,f=a?t=>a(fe(t[i.index])).target:i.index;if(me(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const t=r[s];if(t===n&&r[s+1]===i){const t=e[7],n=r[s+2];return t.length>n?t[n]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,h=!1;else{s=Fo(i,e,0,s,!1);const t=n.listen(p.name||m,r,s);u.push(s,t),c&&c.push(r,f,g,g+1)}}else s=Fo(i,e,0,s,!0),m.addEventListener(r,s,o),u.push(s),c&&c.push(r,f,g,o)}else s=Fo(i,e,0,s,!1);const d=i.outputs;let p;if(h&&null!==d&&(p=d[r])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(s),o=u.length;u.push(s,t),c&&c.push(r,i.index,o,-(o+1))}}}(s,r,r[11],o,t,e,n,i),Lo}function Ro(t,e,n,i){try{return!1!==n(i)}catch(r){return js(t,r),!1}}function Fo(t,e,n,i,r){return function n(s){if(s===Function)return i;const o=2&t.flags?be(t.index,e):e;0==(32&e[2])&&Ls(o);let a=Ro(e,0,i,s),l=n.__ngNextListenerFn__;for(;l;)a=Ro(e,0,l,s)&&a,l=l.__ngNextListenerFn__;return r&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function Bo(t=1){return function(t){return(ke.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,ke.lFrame.contextLView))[8]}(t)}function No(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?qr(t,s,!0):Gr(i,s))return r}else n=r}return n}function Uo(t){const e=Ee()[16][6];if(!e.projection){const n=e.projection=Xn(t?t.length:1,null),i=n.slice();let r=e.child;for(;null!==r;){const e=t?No(r,t):0;null!==e&&(i[e]?i[e].projectionNext=r:n[e]=r,i[e]=r),r=r.next}}}function Ho(t,e=0,n){const i=Ee(),r=Ie(),s=os(r,Qt+t,16,null,n||null);null===s.projection&&(s.projection=e),Fe(),64!=(64&s.flags)&&function(t,e,n){Dr(e[11],0,e,n,br(t,n,e),Or(n.parent||e[6],n,e))}(r,i,s)}function jo(t,e,n,i,r){const s=t[n+1],o=null===e;let a=i?Jr(s):es(s),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Vo(t[a],e)&&(l=!0,t[a+1]=i?is(n):ts(n)),a=i?Jr(n):es(n)}l&&(t[n+1]=i?ts(s):is(s))}function Vo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Yn(t,e)>=0}const $o={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0}
1;function qo(t){return t.substring($o.key,$o.keyEnd)}function Go(t){return t.substring($o.value,$o.valueEnd)}function Zo(t,e){const n=$o.textEnd;return n===e?-1:(e=$o.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,$o.key=e,n),Qo(t,e,n))}function Wo(t,e){const n=$o.textEnd;let i=$o.key=Qo(t,e,n);return n===i?-1:(i=$o.keyEnd=function(t,e,n){let i;for(;e<n&&(45===(i=t.charCodeAt(e))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(t,i,n),i=Ko(t,i,n),i=$o.value=Qo(t,i,n),i=$o.valueEnd=function(t,e,n){let i=-1,r=-1,s=-1,o=e,a=o;for(;o<n;){const l=t.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=Yo(t,l,o,n):e===o-4&&85===s&&82===r&&76===i&&40===l?a=o=Yo(t,41,o,n):l>32&&(a=o),s=r,r=i,i=-33&l}return a}(t,i,n),Ko(t,i,n))}function Xo(t){$o.key=0,$o.keyEnd=0,$o.value=0,$o.valueEnd=0,$o.textEnd=t.length}function Qo(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Ko(t,e,n,i){return(e=Qo(t,e,n))<n&&e++,e}function Yo(t,e,n,i){let r=-1,s=n;for(;s<i;){const n=t.charCodeAt(s++);if(n==e&&92!==r)return s;r=92==n&&92===r?0:n}throw new Error}function Jo(t){ia(aa,ta,t,!1)}function ta(t,e){for(let n=function(t){return Xo(t),Wo(t,Qo(t,0,$o.textEnd))}(e);n>=0;n=Wo(e,n))aa(t,qo(e),Go(e))}function ea(t){ia(Qn,na,t,!0)}function na(t,e){for(let n=function(t){return Xo(t),Zo(t,Qo(t,0,$o.textEnd))}(e);n>=0;n=Zo(e,n))Qn(t,qo(e),!0)}function ia(t,e,n,i){const r=Ie(),s=function(t){const e=ke.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+2,n}();r.firstUpdatePass&&function(t,e,n,i){const r=t.data;if(null===r[n+1]){const s=r[tn()],o=ra(t,n);ha(s,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const r=function(t){const e=ke.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=oa(n=sa(null,t,e,n,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=sa(r,t,e,n,i),null===s){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==es(i))return t[Jr(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=sa(null,t,e,n[1],i),n=oa(n,e.attrs,i),function(t,e,n,i){t[Jr(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else s=function(t,e,n){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=oa(i,t[s].hostAttrs,n);return oa(i,e.attrs,n)}(t,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),n}(r,s,e,i),function(t,e,n,i,r,s){let o=s?e.classBindings:e.styleBindings,a=Jr(o),l=es(o);t[i]=n;let c,u=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||Yn(t,c)>0)&&(u=!0)}else c=n;if(r)if(0!==l){const e=Jr(t[a+1]);t[i+1]=Yr(e,a),0!==e&&(t[e+1]=ns(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Yr(a,0),0!==a&&(t[a+1]=ns(t[a+1],i)),a=i;else t[i+1]=Yr(l,0),0===a?a=i:t[l+1]=ns(t[l+1],i),l=i;u&&(t[i+1]=ts(t[i+1])),jo(t,c,i,!0),jo(t,c,i,!1),function(t,e,n,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&Yn(s,e)>=0&&(n[i+1]=is(n[i+1]))}(e,c,t,i,s),o=Yr(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,n,o,i)}}(r,null,s,i);const o=Ee();if(n!==Xr&&fo(o,s,n)){const a=r.data[tn()];if(ha(a,i)&&!ra(r,s)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=tt(t,n||"")),Po(r,a,o,n,i)}else!function(t,e,n,i,r,s,o,a){r===Xr&&(r=Et);let l=0,c=0,u=0<r.length?r[0]:null,h=0<s.length?s[0]:null;for(;null!==u||null!==h;){const d=l<r.length?r[l+1]:void 0,p=c<s.length?s[c+1]:void 0;let m,g=null;u===h?(l+=2,c+=2,d!==p&&(g=h,m=p)):null===h||null!==u&&u<h?(l+=2,g=u):(c+=2,g=h,m=p),null!==g&&la(t,e,n,i,g,m,o,a),u=l<r.length?r[l]:null,h=c<s.length?s[c]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function(t,e,n){if(null==n||""===n)return Et;const i=[],r=Pi(n);if(Array.isArray(r))for(let s=0;s<r.length;s++)t(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&t(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(t,e,n),i,s)}}function ra(t,e){return e>=t.expandoStartIndex}function sa(t,e,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(s=e[a],i=oa(i,s.hostAttrs,r),s!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function oa(t,e,n){const i=n?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Qn(t,o,
vendor: 5,781 bytes, line 1
1!!n||e[++s]))}return void 0===t?null:t}function aa(t,e,n){Qn(t,e,Pi(n))}function la(t,e,n,i,r,s,o,a){if(!(3&e.type))return;const l=t.data,c=l[a+1];ua(1==(1&c)?ca(l,e,n,r,es(c),o):void 0)||(ua(s)||2==(2&c)&&(s=ca(l,null,n,r,a,o)),function(t,e,n,i,r){const s=me(t);if(e)r?s?t.addClass(n,i):n.classList.add(i):s?t.removeClass(n,i):n.classList.remove(i);else{let e=-1===i.indexOf("-")?void 0:cr.DashCase;if(null==r)s?t.removeStyle(n,i,e):n.style.removeProperty(i);else{const o="string"==typeof r&&r.endsWith("!important");o&&(r=r.slice(0,-10),e|=cr.Important),s?t.setStyle(n,i,r,e):n.style.setProperty(i,r,o?"important":"")}}}(i,o,_e(tn(),n),r,s))}function ca(t,e,n,i,r,s){const o=null===e;let a;for(;r>0;){const e=t[r],s=Array.isArray(e),l=s?e[1]:e,c=null===l;let u=n[r+1];u===Xr&&(u=c?Et:void 0);let h=c?Kn(u,i):l===i?u:void 0;if(s&&!ua(h)&&(h=Kn(e,i)),ua(h)&&(a=h,o))return a;const d=t[r+1];r=o?Jr(d):es(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=Kn(t,i))}return a}function ua(t){return void 0!==t}function ha(t,e){return 0!=(t.flags&(e?16:32))}function da(t,e=""){const n=Ee(),i=Ie(),r=t+Qt,s=i.firstCreatePass?os(i,r,1,e,null):i.data[r],o=n[r]=function(t,e){return me(t)?t.createText(e):t.createTextNode(e)}(n[11],e);kr(i,n,o,s),Le(s,!1)}function pa(t){return ma("",t,""),pa}function ma(t,e,n){const i=Ee(),r=function(t,e,n,i){return fo(t,He(),n)?e+st(n)+i:Xr}(i,t,e,n);return r!==Xr&&function(t,e,n){const i=_e(e,t);!function(t,e,n){me(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}(i,tn(),r),ma}function ga(t,e,n){const i=Ee();return fo(i,He(),e)&&ys(Ie(),nn(),i,t,e,i[11],n,!0),ga}const fa=void 0;var _a=["en",[["a","p"],["AM","PM"],fa],[["AM","PM"],fa,fa],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],fa,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],fa,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",fa,"{1} 'at' {0}",fa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let va={};function ya(t){return t in va||(va[t]=kt.ng&&kt.ng.common&&kt.ng.common.locales&&kt.ng.common.locales[t]),va[t]}var xa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const ba="en-US";let wa=ba;function Ca(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(wa=t.toLowerCase().replace(/_/g,"-"))}class Pa{}class Ma{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${J(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Oa=(()=>{class t{}return t.NULL=new Ma,t})();function Sa(...t){}function ka(t,e){return new Ea(ve(t,e))}const Ta=function(){return ka(ze(),Ee())};let Ea=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Ta,t})();function Ia(t){return t instanceof Ea?t.nativeElement:t}class Aa{}let za=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Da(),t})();const Da=function(){const t=Ee(),e=be(ze().index,t);return function(t){return t[11]}(Yt(e)?e:t)};let La=(()=>{class t{}return t.\u0275prov=lt({token:t,providedIn:"root",factory:()=>null}),t})();class Ra{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Fa=new Ra("11.2.14");class Ba{constructor(){}supports(t){return ho(t)}create(t){return new Ua(t)}}const Na=(t,e)=>e;class Ua{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Na}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const s=!n||e&&e.currentIndex<$a(n,i,r)?e:n,o=$a(s,i,r),a=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(e=e._next,null==s.previousIndex)i++;else{r||(r=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<r.length?r[n]:r[n]=0,s=i+n;e<=s&&s<t&&(r[n]=i+1)}r[s.previousIndex]=e-t}}o!==a&&t(s,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;
vendor: 11,796 bytes, line 1
1e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!ho(t))throw new Error(`Error trying to diff '${J(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,r=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,n,i,e)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,i,e),s=!0),r=r._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[co()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):t=this._addAfter(new Ha(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Va),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Va),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ha{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ja{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Va{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new ja,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function $a(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+e+r}class qa{constructor(){}supports(t){return t instanceof Map||po(t)}create(){return new Ga}}class Ga{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||po(t)))throw new Error(`Error trying to diff '${J(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new Za(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Za{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Wa(){return new Xa([new Ba])}let Xa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Wa()),deps:[[t,new hi,new ui]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=lt({token:t,providedIn:"root",factory:Wa}),t})();function Qa(){return new Ka([new qa])}let Ka=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Qa()),deps:[[t,new hi,new ui]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=lt({token:t,providedIn:"root",factory:Qa}),t})();function Ya(t,e,n,i,r=!1){for(;null!==n;){const s=e[n.index];if(null!==s&&i.push(fe(s)),Jt(s))for(let t=Kt;t<s.length;t++){const e=s[t],n=e[1].firstChild;null!==n&&Ya(e[1],e,n,i)}const o=n.type;if(8&o)Ya(t,e,n.child,i);else if(32&o){const t=ur(n,e);let r;for(;r=t();)i.push(r)}else if(16&o){const t=Er(e,n);if(Array.isArray(t))i.push(...t);else{const n=hr(e[16]);Ya(n[1],n,t,i,!0)}}n=r?n.projectionNext:n.next}return i}class Ja{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return Ya(e,t,e.firstChild,[])}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Jt(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&(vr(t,n),Wn(e,n))}this._attachedToViewContainer=!1}yr(this._lView[1],this._lView)}onDestroy(t){_s(this._lView[1],this._lView,null,t)}markForCheck(){Ls(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Rs(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Ne(!0);try{Rs(t,e,n)}finally{Ne(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,zr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a Vie
1wContainer!");this._appRef=t}}class tl extends Ja{constructor(t){super(t),this._view=t}detectChanges(){Fs(this._view)}checkNoChanges(){!function(t){Ne(!0);try{Fs(t)}finally{Ne(!1)}}(this._view)}get context(){return null}}const el=il;let nl=(()=>{class t{}return t.__NG_ELEMENT_ID__=el,t.__ChangeDetectorRef__=!0,t})();function il(t=!1){return function(t,e,n){if(!n&&ee(t)){const n=be(t.index,e);return new Ja(n,n)}return 47&t.type?new Ja(e[16],e):null}(ze(),Ee(),t)}const rl=[new qa],sl=new Xa([new Ba]),ol=new Ka(rl),al=function(){return hl(ze(),Ee())};let ll=(()=>{class t{}return t.__NG_ELEMENT_ID__=al,t})();const cl=ll,ul=class extends cl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=ss(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),ls(e,n,t),new Ja(n)}};function hl(t,e){return 4&t.type?new ul(e,t,ka(t,e)):null}class dl{}class pl{}const ml=function(){return xl(ze(),Ee())};let gl=(()=>{class t{}return t.__NG_ELEMENT_ID__=ml,t})();const fl=gl,_l=class extends fl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return ka(this._hostTNode,this._hostLView)}get injector(){return new Nn(this._hostTNode,this._hostLView)}get parentInjector(){const t=Sn(this._hostTNode,this._hostLView);if(vn(t)){const e=xn(t,this._hostLView),n=yn(t);return new Nn(e[1].data[n+8],e)}return new Nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=vl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-Kt}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const s=n||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(dl,null);t&&(r=t)}const o=t.create(s,i,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(Jt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new _l(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function(t,e,n,i){const r=Kt+i,s=n.length;i>0&&(n[r-1][4]=e),i<s-Kt?(e[4]=n[r],Zn(n,Kt+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,s,r);const o=Ir(r,s),a=n[11],l=Mr(a,s[7]);return null!==l&&function(t,e,n,i,r,s){i[0]=r,i[6]=e,zr(t,i,n,1,r,s)}(i,s[6],a,n,l,o),t.attachToViewContainerRef(),Zn(yl(s),r,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=vl(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=vr(this._lContainer,e);n&&(Wn(yl(this._lContainer),e),yr(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=vr(this._lContainer,e);return n&&null!=Wn(yl(this._lContainer),e)?new Ja(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function vl(t){return t[8]}function yl(t){return t[8]||(t[8]=[])}function xl(t,e){let n;const i=e[t.index];if(Jt(i))n=i;else{let r;if(8&t.type)r=fe(i);else{const n=e[11];r=n.createComment("");const i=ve(t,e);wr(n,Mr(n,i),r,function(t,e){return me(t)?t.nextSibling(e):e.nextSibling}(n,i),!1)}e[t.index]=n=Es(i,e,r,t),Ds(e,n)}return new _l(n,t,e)}const bl={};class wl extends Oa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Wt(t);return new Ml(e,this.ngModule)}}function Cl(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Pl=new jn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>or});class Ml extends Pa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Wr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Cl(this.componentDef.inputs)}get outputs(){return Cl(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const s=t.get(n,bl,r);return s!==bl||i===bl?s:e.get(n,i,r)}}}(t,i.injector):t,s=r.get(Aa,ge),o=r.get(La,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(me(t))return t.selectRootElement(e,n===Ct.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):fr(s.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?he:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:or,clean:Ns,playerHandler:null,flags:0}
vendor: 5,749 bytes, line 1
1,d=fs(0,null,null,1,0,null,null,null,null,null),p=ss(null,d,h,u,null,null,s,a,o,r);let m,g;We(p);try{const t=function(t,e,n,i,r,s){const o=n[1];n[20]=t;const a=os(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&($s(a,l,!0),null!==t&&(pn(r,t,l),null!==a.classes&&Rr(r,t,a.classes),null!==a.styles&&Lr(r,t,a.styles)));const c=i.createRenderer(t,e),u=ss(n,gs(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(kn(Pn(a,n),o,e.type),Cs(o,a),Ms(a,n.length,1)),Ds(n,u),n[20]=u}(c,this.componentDef,p,s,a);if(c)if(n)pn(a,c,["ng-version",Fa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i<t.length;){let s=t[i];if("string"==typeof s)2===r?""!==s&&e.push(s,t[++i]):8===r&&n.push(s);else{if(!Vr(r))break;r=s}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&pn(a,c,t),e&&e.length>0&&Rr(a,c,e.join(" "))}if(g=ye(d,Qt),void 0!==e){const t=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}m=function(t,e,n,i,r){const s=n[1],o=function(t,e,n){const i=ze();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Os(t,i,e,as(t,e,1,null),n));const r=Rn(e,t,i.directiveStart,i);sr(r,e);const s=ve(i,e);return s&&sr(s,e),r}(s,n,e);if(i.components.push(o),t[8]=o,r&&r.forEach(t=>t(o,e)),e.contentQueries){const t=ze();e.contentQueries(1,o,t.directiveStart)}const a=ze();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(en(a.index),bs(n[1],a,0,a.directiveStart,a.directiveEnd,e),ws(e,o)),o}(t,this.componentDef,p,h,[ao]),ls(d,p,null)}finally{Je()}return new Ol(this.componentType,m,ka(g,p),p,g)}}class Ol extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new tl(i),this.componentType=t}get injector(){return new Nn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Sl=new Map;class kl extends dl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new wl(this);const n=Xt(t),i=t[Rt]||null;i&&Ca(i),this._bootstrapComponents=lr(n.bootstrap),this._r3Injector=Js(t,e,[{provide:dl,useValue:this},{provide:Oa,useValue:this.componentFactoryResolver}],J(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=oo.THROW_IF_NOT_FOUND,n=_t.Default){return t===oo||t===dl||t===qs?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Tl extends pl{constructor(t){super(),this.moduleType=t,null!==Xt(t)&&function(t){const e=new Set;!function t(n){const i=Xt(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${J(e)} vs ${J(e.name)}`)}(r,Sl.get(r),n),Sl.set(r,n));const s=lr(i.imports);for(const o of s)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new kl(this.moduleType,t)}}function El(t,e,n){const i=Ue()+t,r=Ee();return r[i]===Xr?mo(r,i,n?e.call(n):e()):go(r,i)}function Il(t,e,n,i){return Rl(Ee(),Ue(),t,e,n,i)}function Al(t,e,n,i,r){return Fl(Ee(),Ue(),t,e,n,i,r)}function zl(t,e,n,i,r,s){return function(t,e,n,i,r,s,o,a){const l=e+n;return function(t,e,n,i,r){const s=_o(t,e,n,i);return fo(t,e+2,r)||s}(t,l,r,s,o)?mo(t,l+3,a?i.call(a,r,s,o):i(r,s,o)):Ll(t,l+3)}(Ee(),Ue(),t,e,n,i,r,s)}function Dl(t,e,n,i,r,s,o){return function(t,e,n,i,r,s,o,a,l){const c=e+n;return vo(t,c,r,s,o,a)?mo(t,c+4,l?i.call(l,r,s,o,a):i(r,s,o,a)):Ll(t,c+4)}(Ee(),Ue(),t,e,n,i,r,s,o)}function Ll(t,e){const n=t[e];return n===Xr?void 0:n}function Rl(t,e,n,i,r,s){const o=e+n;return fo(t,o,r)?mo(t,o+1,s?i.call(s,r):i(r)):Ll(t,o+1)}function Fl(t,e,n,i,r,s,o){const a=e+n;return _o(t,a,r,s)?mo(t,a+2,o?i.call(o,r,s):i(r,s)):Ll(t,a+2)}function Bl(t,e){const n=Ie();let i;const r=t+Qt;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new rt("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=re(i.type)),o=yt(wo);try{const t=wn(!1),e=s();return wn(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,Ee(),r,e),e}finally{yt(o)}}function Nl(t,e,n,i){const r=t+Qt,s=Ee(),o=xe(s,r);return Hl(s,Ul(s,r)?Fl(s,Ue(),e,o.transform,n,i,o):o.transform(n,i))}function Ul(t,e){return t[1].data[e].pure}function Hl(t,e){return uo.isWrapped(e)&&(e=uo.unwrap(e),t[ke.lFrame.bindingIndex]=Xr),e}function jl(t){return e=>{setTimeout(t,void 0,e)}}const Vl=class extends C{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,r,s;let o=t,a=e||(()=>null),l=n;if(t&&"object"==typeof t){const e=t;o=null===(i=e.next)||void 0===i?void 0:i.bind(e),a=null===(r=e.error)||void 0===r?void 0:r.bind(e),l=null===(s=e.complete)||void 0===s?void 0:s.bind(e)}this.__isAsync&&(a=jl(a),o&&(o=jl(o)),l&&(l=jl(l)));const c=super.subscribe({next:o,error:a,complete:l});return t instanceof h&&t.add(c),c}};function $l(){return this._results[co()]()}class ql{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=co(),n=ql.prototype;n[e]||(n[e]=$l)}get changes(){return this._changes||(this._changes=new Vl)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}
1forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=qn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],s=e[i];if(n&&(r=n(r),s=n(s)),s!==r)return!1}return!0}(n._results,i,e))&&(n._results=i,n.length=i.length,n.last=i[this.length-1],n.first=i[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Gl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Gl(this.queryList)}setDirty(){this.queryList.setDirty()}}class Zl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new Zl(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==oc(t,e).matches&&this.queries[e].setDirty()}}class Wl{constructor(t,e,n=null){this.predicate=t,this.flags=e,this.read=n}}class Xl{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,r=this.getByIndex(n).embeddedTView(t,i);r&&(r.indexInDeclarationView=n,null!==e?e.push(r):e=[r])}return null!==e?new Xl(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Ql{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Ql(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const r=n[i];this.matchTNodeWithReadOption(t,e,Kl(e,r)),this.matchTNodeWithReadOption(t,e,Ln(e,t,r,!1,!1))}else n===ll?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Ln(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===Ea||i===gl||i===ll&&4&e.type)this.addMatch(e.index,-2);else{const n=Ln(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Kl(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function Yl(t,e,n,i){return-1===n?function(t,e){return 11&t.type?ka(t,e):4&t.type?hl(t,e):null}(e,t):-2===n?function(t,e,n){return n===Ea?ka(e,t):n===ll?hl(e,t):n===gl?xl(e,t):void 0}(t,e,i):Rn(t,t[1],n,e)}function Jl(t,e,n,i){const r=e[19].queries[i];if(null===r.matches){const i=t.data,s=n.matches,o=[];for(let t=0;t<s.length;t+=2){const r=s[t];o.push(r<0?null:Yl(e,i[r],s[t+1],n.metadata.read))}r.matches=o}return r.matches}function tc(t,e,n,i){const r=t.queries.getByIndex(n),s=r.matches;if(null!==s){const o=Jl(t,e,r,n);for(let t=0;t<s.length;t+=2){const n=s[t];if(n>0)i.push(o[t/2]);else{const r=s[t+1],o=e[-n];for(let t=Kt;t<o.length;t++){const e=o[t];e[17]===e[3]&&tc(e[1],e,r,i)}if(null!==o[9]){const t=o[9];for(let e=0;e<t.length;e++){const n=t[e];tc(n[1],n,r,i)}}}}}return i}function ec(t){const e=Ee(),n=Ie(),i=$e();qe(i+1);const r=oc(n,i);if(t.dirty&&Ce(e)===(2==(2&r.metadata.flags))){if(null===r.matches)t.reset([]);else{const s=r.crossesNgTemplate?tc(n,e,i,[]):Jl(n,e,r,i);t.reset(s,Ia),t.notifyOnChanges()}return!0}return!1}function nc(t,e,n){const i=Ie();i.firstCreatePass&&(sc(i,new Wl(t,e,n),-1),2==(2&e)&&(i.staticViewQueries=!0)),rc(i,Ee(),e)}function ic(){return t=Ee(),e=$e(),t[19].queries[e].queryList;var t,e}
vendor: 9,391 bytes, line 1
1function rc(t,e,n){const i=new ql(4==(4&n));_s(t,e,i,i.destroy),null===e[19]&&(e[19]=new Zl),e[19].queries.push(new Gl(i))}function sc(t,e,n){null===t.queries&&(t.queries=new Xl),t.queries.track(new Ql(e,n))}function oc(t,e){return t.queries.getByIndex(e)}function ac(t,e){return hl(t,e)}const lc=new jn("Application Initializer");let cc=(()=>{class t{constructor(t){this.appInits=t,this.resolve=Sa,this.reject=Sa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();Ao(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(oi(lc,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const uc=new jn("AppId"),hc={provide:uc,useFactory:function(){return`${dc()}${dc()}${dc()}`},deps:[]};function dc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const pc=new jn("Platform Initializer"),mc=new jn("Platform ID"),gc=new jn("appBootstrapListener");let fc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const _c=new jn("LocaleId"),vc=new jn("DefaultCurrencyCode");class yc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const xc=function(t){return new Tl(t)},bc=xc,wc=function(t){return Promise.resolve(xc(t))},Cc=function(t){const e=xc(t),n=lr(Xt(t).declarations).reduce((t,e)=>{const n=Wt(e);return n&&t.push(new Ml(n)),t},[]);return new yc(e,n)},Pc=Cc,Mc=function(t){return Promise.resolve(Cc(t))};let Oc=(()=>{class t{constructor(){this.compileModuleSync=bc,this.compileModuleAsync=wc,this.compileModuleAndAllComponentsSync=Pc,this.compileModuleAndAllComponentsAsync=Mc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Sc=(()=>Promise.resolve(0))();function kc(t){"undefined"==typeof Zone?Sc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Tc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Vl(!1),this.onMicrotaskEmpty=new Vl(!1),this.onStable=new Vl(!1),this.onError=new Vl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=kt.requestAnimationFrame,e=kt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(kt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ac(t),Ic(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ac(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,o,a)=>{try{return zc(t),n.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&e(),Dc(t)}},onInvoke:(n,i,r,s,o,a,l)=>{try{return zc(t),n.invoke(r,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Dc(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Ac(t),Ic(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Tc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,t,Ec,Sa,Sa);try{return r.runTask(s,e,n)}finally{r.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const Ec={};function Ic(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Ac(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function zc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Dc(t){t._nesting--,Ic(t)}class Lc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Vl,this.onMicrotaskEmpty=new Vl,this.onStable=new Vl,this.onError=new Vl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let Rc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Tc.assertNotInAngularZone(),kc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())kc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(oi(Tc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Fc=(()=>{class t{constructor(){this._applications=new Map,Uc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Uc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class Bc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Nc,Uc=new Bc,Hc=!0,jc=!1;const Vc=new jn("AllowMultipleToken");class $c{constructor(t,e){this.name=t,this.token=e}}function qc(t,e,n=[]){const i=`Platform: ${e}`,r=new jn(i);return(e=[])=>{let s=Gc();if(!s||s.injector.get(Vc,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:Zs,useValue:"platform"});!function(t){if(Nc&&!Nc.destroyed&&!Nc.injector.get(Vc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Nc=t.get(Zc);const e=t.get(pc,null);e&&e.forEach(t=>t())}(oo.create({providers:t,name:i}))}return function(t){const e=Gc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different c
1onfiguration has been created. Please destroy it first.");return e}(r)}}function Gc(){return Nc&&!Nc.destroyed?Nc:null}let Zc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Lc:("zone.js"===t?void 0:t)||new Tc({enableLongStackTrace:(jc=!0,Hc),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:Tc,useValue:n}];return n.run(()=>{const e=oo.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(rr,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{s.handleError(t)}});r.onDestroy(()=>{Qc(this._modules,r),t.unsubscribe()})}),function(t,e,n){try{const i=n();return Ao(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(s,n,()=>{const t=r.injector.get(cc);return t.runInitializers(),t.donePromise.then(()=>(Ca(r.injector.get(_c,ba)||ba),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Wc({},e);return function(t,e,n){const i=new Tl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Xc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${J(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(oi(oo))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function Wc(t,e){return Array.isArray(e)?e.reduce(Wc,t):Object.assign(Object.assign({},t),e)}let Xc=(()=>{class t{constructor(t,e,n,i,r){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new v(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new v(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Tc.assertNotInAngularZone(),kc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Tc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return M(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof v?t[0]:V(e)($(t,n))}(s,o.pipe(t=>{return q()((e=K,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,X);return i.source=t,i.subjectFactory=n,i})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;
1n=t instanceof Pa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(dl),r=n.create(oo.NULL,[],e||n.selector,i),s=r.location.nativeElement,o=r.injector.get(Rc,null),a=o&&r.injector.get(Fc);return o&&a&&a.registerApplication(s,o),r.onDestroy(()=>{this.detachView(r.hostView),Qc(this.components,r),a&&a.unregisterApplication(s)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Qc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(gc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(oi(Tc),oi(oo),oi(rr),oi(Oa),oi(cc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function Qc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Kc{}class Yc{}const Jc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let tu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Jc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>eu(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+r]).then(t=>eu(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(oi(Oc),oi(Yc,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function eu(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const nu=qc(null,"core",[{provide:mc,useValue:"unknown"},{provide:Zc,deps:[oo]},{provide:Fc,deps:[]},{provide:fc,deps:[]}]),iu=[{provide:Xc,useClass:Xc,deps:[Tc,oo,rr,Oa,cc]},{provide:Pl,deps:[Tc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:cc,useClass:cc,deps:[[new ui,lc]]},{provide:Oc,useClass:Oc,deps:[]},hc,{provide:Xa,useFactory:function(){return sl},deps:[]},{provide:Ka,useFactory:function(){return ol},deps:[]},{provide:_c,useFactory:function(t){return Ca(t=t||"undefined"!=typeof $localize&&$localize.locale||ba),t},deps:[[new ci(_c),new ui,new hi]]},{provide:vc,useValue:"USD"}];let ru=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(oi(Xc))},t.\u0275mod=$t({type:t}),t.\u0275inj=ct({providers:iu}),t})(),su=null;function ou(){return su}const au=new jn("DocumentToken");let lu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:cu,token:t,providedIn:"platform"}),t})();function cu(){return oi(hu)}const uu=new jn("Location Initialized");let hu=(()=>{class t extends lu{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=ou().getLocation(),this._history=ou().getHistory()}getBaseHrefFromDOM(){return ou().getBaseHref(this._doc)}onPopState(t){ou().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){ou().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){du()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){du()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(oi(au))},t.\u0275prov=lt({factory:pu,token:t,providedIn:"platform"}),t})();function du(){return!!window.history.pushState}function pu(){return new hu(oi(au))}function mu(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function gu(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function fu(t){return t&&"?"!==t[0]?"?"+t:t}let _u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:vu,token:t,providedIn:"root"}),t})();function vu(t){const e=oi(au).location;return new xu(oi(lu),e&&e.origin||"")}const yu=new jn("appBaseHref");let xu=(()=>{class t extends _u{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.on
1HashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return mu(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+fu(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+fu(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+fu(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(oi(lu),oi(yu,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),bu=(()=>{class t extends _u{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=mu(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let r=this.prepareExternalUrl(n+fu(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){let r=this.prepareExternalUrl(n+fu(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(oi(lu),oi(yu,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),wu=(()=>{class t{constructor(t,e){this._subject=new Vl,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=gu(Pu(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+fu(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Pu(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+fu(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+fu(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(oi(_u),oi(lu))},t.normalizeQueryParams=fu,t.joinWithSlash=mu,t.stripTrailingSlash=gu,t.\u0275prov=lt({factory:Cu,token:t,providedIn:"root"}),t})();function Cu(){return new wu(oi(_u),oi(lu))}function Pu(t){return t.replace(/\/index.html$/,"")}var Mu=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class Ou{}let Su=(()=>{class t extends Ou{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ya(e);if(n)return n;const i=e.split("-")[0];if(n=ya(i),n)return n;if("en"===i)return _a;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[xa.PluralCase]}(e||this.locale)(t)){case Mu.Zero:return"zero";case Mu.One:return"one";case Mu.Two:return"two";case Mu.Few:return"few";case Mu.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(oi(_c))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function ku(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}let Tu=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(ho(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>
vendor: 6,859 bytes, line 1
1{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${J(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(wo(Xa),wo(Ka),wo(Ea),wo(za))},t.\u0275dir=Gt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Eu{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Iu=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Eu(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new Au(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new Au(t,r);e.push(s)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(wo(gl),wo(ll),wo(Xa))},t.\u0275dir=Gt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Au{constructor(t,e){this.record=t,this.view=e}}let zu=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Du,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Lu("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Lu("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(wo(gl),wo(ll))},t.\u0275dir=Gt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Du{constructor(){this.$implicit=null,this.ngIf=null}}function Lu(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${J(e)}'.`)}class Ru{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Fu=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Bu=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Ru(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(wo(gl),wo(ll),wo(Fu,9))},t.\u0275dir=Gt({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Nu=(()=>{class t{constructor(t,e,n){n._addDefault(new Ru(t,e))}}return t.\u0275fac=function(e){return new(e||t)(wo(gl),wo(ll),wo(Fu,9))},t.\u0275dir=Gt({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Uu=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(wo(Ea),wo(Ka),wo(za))},t.\u0275dir=Gt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}
1),t})(),Hu=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(wo(gl))},t.\u0275dir=Gt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[oe]}),t})();class ju{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Vu{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const $u=new Vu,qu=new ju;let Gu=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Ao(e))return $u;if(zo(e))return qu;throw Error(`InvalidPipeArgument: '${e}' for pipe '${J(t)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(function(t=_t.Default){const e=il(!0);if(null!=e||t&_t.Optional)return e;at("ChangeDetectorRef")}())},t.\u0275pipe=Zt({name:"async",type:t,pure:!1}),t})(),Zu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ct({providers:[{provide:Ou,useClass:Su}]}),t})();function Wu(t){return"browser"===t}function Xu(t){return"server"===t}let Qu=(()=>{class t{}return t.\u0275prov=lt({token:t,providedIn:"root",factory:()=>new Ku(oi(au),window)}),t})();class Ku{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Yu(this.window.history)||Yu(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Yu(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Ju extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Ju,su||(su=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=eh||(eh=document.querySelector("base"),eh)?eh.getAttribute("href"):null;return null==e?null:(n=e,th||(th=document.createElement("a")),th.setAttribute("href",n),"/"===th.pathname.charAt(0)?th.pathname:"/"+th.pathname);var n}resetBaseElement(){eh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return ku(document.cookie,t)}}let th,eh=null;const nh=new jn("TRANSITION_ID"),ih=[{provide:lc,useFactory:function(t,e,n){return()=>{n.get(cc).donePromise.then(()=>{const n=ou();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[nh,au,oo],multi:!0}];class rh{static init(){var t;t=new rh,Uc=t}addToWindow(t){kt.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},kt.getAllAngularTestabilities=()=>t.getAllTestabilities(),kt.getAllAngularRootElements=()=>t.getAllRootElements(),kt.frameworkStabilizers||(kt.frameworkStabilizers=[]),kt.frameworkStabilizers.push(t=>{const e=kt.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?ou().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const sh=new jn("EventManagerPlugins");let oh=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}return t.\u0275fac=function(e){return new(e||t)(oi(sh),oi(Tc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class ah{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=ou().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let lh=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),ch=(()=>{class t extends lh{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(uh),this._hostNodes.delete(t)}
vendor: 5,293 bytes, line 1
1onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(uh))}}return t.\u0275fac=function(e){return new(e||t)(oi(au))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function uh(t){ou().remove(t)}const hh={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},dh=/%COMP%/g;function ph(t,e,n){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?ph(t,r,n):(r=r.replace(dh,t),n.push(r))}return n}function mh(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let gh=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new fh(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Ct.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new _h(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case Ct.ShadowDom:return new vh(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=ph(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(oi(oh),oi(ch),oi(uc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class fh{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(hh[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const r=hh[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=hh[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(cr.DashCase|cr.Important)?t.style.setProperty(e,n,i&cr.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&cr.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,mh(n)):this.eventManager.addEventListener(t,e,mh(n))}}class _h extends fh{constructor(t,e,n,i){super(t),this.component=n;const r=ph(i+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(dh,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(dh,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class vh extends fh{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=ph(i.id,i.styles,[]);for(let s=0;s<r.length;s++){const t=document.createElement("style");t.textContent=r[s],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let yh=(()=>{class t extends ah{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(oi(au))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const xh=["alt","control","meta","shift"],bh={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},wh={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ch={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Ph=(()=>{class t extends ah{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const r=t.parseEventName(n),s=t.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ou().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let s="";
1if(xh.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),s+=t+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&wh.hasOwnProperty(e)&&(e=wh[e]))}return bh[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),xh.forEach(i=>{i!=n&&(0,Ch[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded(()=>n(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(oi(au))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Mh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:function(){return oi(Oh)},token:t,providedIn:"root"}),t})(),Oh=(()=>{class t extends Mh{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Qi.NONE:return e;case Qi.HTML:return Mi(e,"HTML")?Pi(e):Wi(this._doc,String(e)).toString();case Qi.STYLE:return Mi(e,"Style")?Pi(e):e;case Qi.SCRIPT:if(Mi(e,"Script"))return Pi(e);throw new Error("unsafe value used in a script context");case Qi.URL:return Oi(e),Mi(e,"URL")?Pi(e):Ii(String(e));case Qi.RESOURCE_URL:if(Mi(e,"ResourceURL"))return Pi(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new yi(t)}bypassSecurityTrustStyle(t){return new xi(t)}bypassSecurityTrustScript(t){return new bi(t)}bypassSecurityTrustUrl(t){return new wi(t)}bypassSecurityTrustResourceUrl(t){return new Ci(t)}}return t.\u0275fac=function(e){return new(e||t)(oi(au))},t.\u0275prov=lt({factory:function(){return t=oi(qs),new Oh(t.get(au));var t},token:t,providedIn:"root"}),t})();const Sh=qc(nu,"browser",[{provide:mc,useValue:"browser"},{provide:pc,useValue:function(){Ju.makeCurrent(),rh.init()},multi:!0},{provide:au,useFactory:function(){return function(t){de=t}(document),document},deps:[]}]),kh=[[],{provide:Zs,useValue:"root"},{provide:rr,useFactory:function(){return new rr},deps:[]},{provide:sh,useClass:yh,multi:!0,deps:[au,Tc,mc]},{provide:sh,useClass:Ph,multi:!0,deps:[au]},[],{provide:gh,useClass:gh,deps:[oh,ch,uc]},{provide:Aa,useExisting:gh},{provide:lh,useExisting:ch},{provide:ch,useClass:ch,deps:[au]},{provide:Rc,useClass:Rc,deps:[Tc]},{provide:oh,useClass:oh,deps:[sh,Tc]},[]];let Th=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:uc,useValue:e.appId},{provide:nh,useExisting:uc},ih]}}}return t.\u0275fac=function(e){return new(e||t)(oi(t,12))},t.\u0275mod=$t({type:t}),t.\u0275inj=ct({providers:kh,imports:[Zu,ru]}),t})();function Eh(){return new Ih(oi(au))}let Ih=(()=>{class t{constructor(t){this._doc=t,this._dom=ou()}addTag(t,e=!1){return t?this._getOrCreateElement(t,e):null}addTags(t,e=!1){return t?t.reduce((t,n)=>(n&&t.push(this._getOrCreateElement(n,e)),t),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];const e=this._doc.querySelectorAll(`meta[${t}]`);return e?[].slice.call(e):[]}updateTag(t,e){if(!t)return null;e=e||this._parseSelector(t);const n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,e=!1){if(!e){const e=this._parseSelector(t),n=this.getTag(e);if(n&&this._containsAttributes(t,n))return n}const n=this._dom.createElement("meta");return this._setMetaElementAttributes(t,n),this._doc.getElementsByTagName("head")[0].appendChild(n),n}_setMetaElementAttributes(t,e){return Object.keys(t).forEach(n=>e.setAttribute(this._getMetaKeyMap(n),t[n])),e}_parseSelector(t){const e=t.name?"name":"property";return`${e}="${t[e]}"`}_containsAttributes(t,e){return Object.keys(t).every(n=>e.getAttribute(this._getMetaKeyMap(n))===t[n])}_getMetaKeyMap(t){return Ah[t]||t}}return t.\u0275fac=function(e){return new(e||t)(oi(au))},t.\u0275prov=lt({factory:Eh,token:t,providedIn:"root"}),t})();const Ah={httpEquiv:"http-equiv"};function zh(){return new Dh(oi(au))}let Dh=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(oi(au))},t.\u0275prov=lt({factory:zh,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window;let Lh=(()=>{class t{constructor(){this.store={},this.onSerializeCallbacks={}}static init(e){const n=new t;return n.store=e,n}get(t,e){return void 0!==this.store[t]?this.store[t]:e}set(t,e){this.store[t]=e}remove(t){delete this.store[t]}hasKey(t){return this.store.hasOwnProperty(t)}onSerialize(t,e){this.onSerializeCallbacks[t]=e}toJson(){for(const e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function Rh(t,e){const n=t.getElementById(e+"-state");let i={};if(n&&n.textContent)try{i=JSON.parse(function(t){const e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return t.replace(/&[^;]+;/g,t=>e[t])}(n.textContent))}catch(r){console.warn("Exception while restoring TransferState for app "+e,r)}return Lh.init(i)}let Fh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ct({providers:[{provide:Lh,useFactory:Rh,deps:[au,uc]}]}),t})();class Bh{}const Nh="*";function Uh(t,e){return{type:7,name:t,definitions:e,options:{}}}function Hh(t,e=null){return{type:4,styles:e,timings:t}}function jh(t,e=null){return{type:2,steps:t,options:e}}function Vh(t){return{type:6,styles:t,offset:null}}function $h(t,e,n){return{type:0,name:t,styles:e,options:n}}function qh(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function Gh(t){Promise.resolve(null).then(t)}class Zh{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Gh(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Wh{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const r=this.players.length;0==r?Gh(()=>
1this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++n==r&&this._onDestroy()}),t.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Xh(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Qh(t){switch(t.length){case 0:return new Zh;case 1:return t[0];default:return new Wh(t)}}function Kh(t,e,n,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,u=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=r[n];break;case Nh:a=s[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}u[i]=a}),i||a.push(u),c=u,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Yh(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&Jh(n,"start",t)));break;case"done":t.onDone(()=>i(n&&Jh(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&Jh(n,"destroy",t)))}}function Jh(t,e,n){const i=n.totalTime,r=td(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),s=t._data;return null!=s&&(r._data=s),r}function td(t,e,n,i,r="",s=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function ed(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function nd(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let id=(t,e)=>!1,rd=(t,e)=>!1,sd=(t,e,n)=>[];const od=Xh();(od||"undefined"!=typeof Element)&&(id=(t,e)=>t.contains(e),rd=(()=>
1{if(od||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):rd}})(),sd=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t<n.length;t++)i.push(n[t])}else{const n=t.querySelector(e);n&&i.push(n)}return i});let ad=null,ld=!1;function cd(t){ad||(ad=("undefined"!=typeof document?document.body:null)||{},ld=!!ad.style&&"WebkitAppearance"in ad.style);let e=!0;return ad.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in ad.style,!e&&ld)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in ad.style),e}const ud=rd,hd=id,dd=sd;function pd(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let md=(()=>{class t{validateStyleProperty(t){return cd(t)}matchesElement(t,e){return ud(t,e)}containsElement(t,e){return hd(t,e)}query(t,e,n){return dd(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,r,s=[],o){return new Zh(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),gd=(()=>{class t{}return t.NOOP=new md,t})();const fd="ng-enter",_d="ng-leave",vd="ng-trigger",yd=".ng-trigger",xd="ng-animating",bd=".ng-animating";function wd(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Cd(parseFloat(e[1]),e[2])}function Cd(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Pd(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,r=0,s="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=Cd(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=Cd(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else i=t;if(!n){let n=!1,s=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(s,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:r,easing:s}}(t,e,n)}function Md(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Od(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else Md(t,n);return n}function Sd(t,e,n){return n?e+":"+n+";":""}function kd(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=Sd(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=Sd(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function Td(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const r=Fd(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]}),Xh()&&kd(t))}function Ed(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Fd(e);t.style[n]=""}),Xh()&&kd(t))}function Id(t){return Array.isArray(t)?1==t.length?t[0]:jh(t):t}const Ad=new RegExp("{{\\s*(.+?)\\s*}}","g");function zd(t){let e=[];
1if("string"==typeof t){let n;for(;n=Ad.exec(t);)e.push(n[1]);Ad.lastIndex=0}return e}function Dd(t,e,n){const i=t.toString(),r=i.replace(Ad,(t,i)=>{let r=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),r=""),r.toString()});return r==i?t:r}function Ld(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Rd=/-+([a-z0-9])/g;function Fd(t){return t.replace(Rd,(...t)=>t[1].toUpperCase())}function Bd(t,e){return 0===t||0===e}function Nd(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(t=>{s.hasOwnProperty(t)||o.push(t),s[t]=n[t]}),o.length)for(var r=1;r<e.length;r++){let n=e[r];o.forEach(function(e){n[e]=Hd(t,e)})}}return e}function Ud(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error(`Unable to resolve animation metadata node #${e.type}`)}}function Hd(t,e){return window.getComputedStyle(t)[e]}const jd="*";function Vd(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const r=i[1],s=i[2],o=i[3];e.push(Gd(r,o)),"<"!=s[0]||r==jd&&o==jd||e.push(Gd(o,r))}(t,n,e)):n.push(t),n}const $d=new Set(["true","1"]),qd=new Set(["false","0"]);function Gd(t,e){const n=$d.has(t)||qd.has(t),i=$d.has(e)||qd.has(e);return(r,s)=>{let o=t==jd||t==r,a=e==jd||e==s;return!o&&n&&"boolean"==typeof r&&(o=r?$d.has(t):qd.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?$d.has(e):qd.has(e)),o&&a}}const Zd=new RegExp("s*:selfs*,?","g");function Wd(t,e,n){return new Xd(t).build(e,n)}class Xd{constructor(t){this._driver=t}build(t,e){const n=new Qd(e);return this._resetContextStyleTimingState(n),Ud(this,Id(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const r=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,r.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,i+=r.depCount,s.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:s,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,s=i||{};if(n.styles.forEach(t=>{if(Kd(t)){const e=t;Object.keys(e).forEach(t=>{zd(e[t]).forEach(t=>{s.hasOwnProperty(t)||r.add(t)})})}}),r.size){const n=Ld(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Ud(this,Id(t.animation),e);return{type:1,matchers:Vd(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Yd(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Ud(this,t,e)),options:Yd(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map(t=>{e.currentTime=n;const r=Ud(this,t,e);return i=Math.max(i,e.currentTime),r});return e.currentTime=i,{type:3,steps:r,options:Yd(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Jd(Pd(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Jd(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||Pd(i,e),Jd(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let r=t.styles?t.styles:Vh({});if(5==r.type)i=this.visitKeyframes(r,e);else{let r=t.styles,s=!1;if(!r){s=!0;const t={};
1n.easing&&(t.easing=n.easing),r=Vh(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,e);o.isEmptyStep=s,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==Nh?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,r=null;return n.forEach(t=>{if(Kd(t)){const e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],o=s[n];let a=!0;o&&(r!=i&&r>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=o.startTime),a&&(s[n]={startTime:r,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},r=zd(t);r.length&&r.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let s=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Kd(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Kd(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,s=s||c<a,a=c,r.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let u=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(u=1/(c-1));const h=c-1,d=e.currentTime,p=e.currentAnimateTimings,m=p.duration;return l.forEach((t,i)=>{const s=u>0?i==h?1:u*i:r[i],o=s*m;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=s,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Ud(this,Id(t.animation),e),options:Yd(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Yd(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Yd(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Zd,"")),[t=t.replace(/@\*/g,yd).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,bd),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,ed(e.collectedStyles,e.currentQuerySelector,{});const o=Ud(this,Id(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:o,originalSelector:t.selector,options:Yd(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Pd(t.timings,e.errors,!0);return{type:12,animation:Ud(this,Id(t.animation),e),timings:n,options:null}}}class Qd{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Kd(t){return!Array.isArray(t)&&"object"==typeof t}function Yd(t){var e;return t?(t=Md(t)).params&&(t.params=(e=t.params)?Md(e):null):t={},t}function Jd(t,e,n){return{duration:t,delay:e,easing:n}}function tp(t,e,n,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class ep{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const np=new RegExp(":enter","g"),ip=new RegExp(":leave","g");function rp(t,e,n,i,r,s={},o={},a,l,c=[]){return(new sp).buildKeyframes(t,e,n,i,r,s,o,a,l,c)}class sp{buildKeyframes(t,e,n,i,r,s,o,a,l,c=[]){l=l||new ep;const u=new ap(t,e,l,i,r,c,[]);u.options=a,u.currentTimeline.setStyles([s],null,u.errors,a),Ud(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[tp(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}
vendor: 4,129 bytes, line 1
1visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const r=null!=n.duration?wd(n.duration):null,s=null!=n.delay?wd(n.delay):null;return 0!==r&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,r,s);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),Ud(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const r=t.options;if(r&&(r.params||r.delay)&&(i=e.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=op);const t=wd(r.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Ud(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?wd(t.options.delay):0;t.steps.forEach(s=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),Ud(this,s,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return Pd(e.params?Dd(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,t.styles.forEach(t=>{s.forwardTime((t.offset||0)*r),s.setStyles(t.styles,t.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(i+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},r=i.delay?wd(i.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=op);let s=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);r&&o.delayNextStep(r),n===e.element&&(a=o.currentTimeline),Ud(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),o=s*(e.currentQueryTotal-1);let a=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Ud(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const op={};class ap{constructor(t,e,n,i,r,s,o,a){this._driver=t,this.element=e,this.subInstru
1ctions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=op,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new lp(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=wd(n.duration)),null!=n.delay&&(i.delay=wd(n.delay));const r=n.params;if(r){let t=i.params;t||(t=this.options.params={}),Object.keys(r).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=Dd(r[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,r=new ap(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=op,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new cp(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,r,s){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(np,"."+this._enterClassName)).replace(ip,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return r||0!=o.length||s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class lp{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new lp(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEac
1h(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Nh,this._currentKeyframe[t]=Nh}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const r=i&&i.params||{},s=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=Nh})):Od(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(s).forEach(t=>{const e=Dd(s[t],r,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Nh),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,s)=>{const o=Od(r,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):i==Nh&&e.add(n)}),n||(o.offset=s/this.duration),i.push(o)});const r=t.size?Ld(t.values()):[],s=e.size?Ld(e.values()):[];if(n){const t=i[0],e=Md(t);t.offset=0,e.offset=1,i=[t,e]}return tp(this.element,i,r,s,this.duration,this.startTime,this.easing,!1)}}class cp extends lp{constructor(t,e,n,i,r,s,o=!1){super(t,e,s.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=n+e,o=e/s,a=Od(t[0],!1);a.offset=0,r.push(a);const l=Od(t[0],!1);l.offset=up(o),r.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=Od(t[i],!1);o.offset=up((e+o.offset*n)/s),r.push(o)}n=s,e=0,i="",t=r}return tp(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function up(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class hp{}class dp extends hp{normalizePropertyName(t,e){return Fd(t)}normalizeStyleValue(t,e,n,i){let r="";const s=n.toString().trim();if(pp[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return s+r}}const pp=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function mp(t,e,n,i,r,s,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const gp={};class fp{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,r){return t.some(t=>t(e,n,i,r))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],r=this._stateStyles[t],s=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):s}build(t,e,n,i,r,s,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||gp,d=this.buildStyles(n,o&&o.params||gp,u),p=a&&a.params||gp,m=this.buildStyles(i,p,u),g=new Set,f=new Map,_=new Map,v="void"===i,y={params:Object.assign(Object.assign({},h),p)},x=c?[]:rp(t,e,this.ast.animation,r,s,d,m,y,l,u);let b=0;
1if(x.forEach(t=>{b=Math.max(t.duration+t.delay,b)}),u.length)return mp(e,this._triggerName,n,i,v,d,m,[],[],f,_,b,u);x.forEach(t=>{const n=t.element,i=ed(f,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const r=ed(_,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&g.add(n)});const w=Ld(g.values());return mp(e,this._triggerName,n,i,v,d,m,x,w,f,_,b)}}class _p{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=Md(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach(t=>{let s=r[t];s.length>1&&(s=Dd(s,i,e)),n[t]=s})}}),n}}class vp{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new _p(t.style,t.options&&t.options.params||{})}),yp(this.states,"true","1"),yp(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new fp(t,e,this.states))}),this.fallbackTransition=new fp(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(r=>r.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function yp(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const xp=new ep;class bp{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=Wd(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,r=Kh(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],r=this._animations[t];let s;const o=new Map;if(r?(s=rp(this._driver,e,r,fd,_d,{},{},n,xp,i),s.forEach(t=>{const e=ed(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),s=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Nh)})});const a=Qh(s.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const r=td(e,"","","");return Yh(this._getPlayer(t),n,r,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const wp="ng-animate-queued",Cp="ng-animate-disabled",Pp=".ng-animate-disabled",Mp=[],Op={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Sp={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class kp{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=Md(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Tp="void",Ep=new kp(Tp);class Ip{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
1+t,Bp(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var r;const s=ed(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};s.push(o);const a=ed(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Bp(t,vd),Bp(t,"ng-trigger-"+e),a[e]=Ep),()=>{this._engine.afterFlush(()=>{const t=s.indexOf(o);t>=0&&s.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const r=this._getTrigger(e),s=new zp(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Bp(t,vd),Bp(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new kp(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Ep),l.value!==Tp&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,l.params)){const e=[],n=r.matchStyles(a.value,a.params,e),i=r.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{Ed(t,n),Td(t,i)})}return}const c=ed(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=r.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:s,isFallbackTransition:h}),h||(Bp(t,wp),s.onStart(()=>{Np(t,wp)})),s.onDone(()=>{let e=this.players.indexOf(s);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(s);t>=0&&n.splice(t,1)}}),this.players.push(s),c.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,yd,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const r=this._engine.statesByElement.get(t);if(r){const s=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Tp,i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Qh(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const r=e.name;if(i.has(r))return;i.add(r);const s=this._triggers[r].fallbackTransition,o=n[r]||Ep,a=new kp(Tp),l=new zp(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:s,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==Op||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Bp(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,s=this._elementListeners.get(r);
1s&&s.forEach(e=>{if(e.name==n.triggerName){const i=td(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,Yh(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Ap{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Ip(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=n[t[i]].namespaceId;if(r){const t=this._fetchNamespace(r);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(Dp(e)){const r=this._fetchNamespace(t);if(r)return r.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Dp(e))return;const r=e.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Bp(t,Cp)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Np(t,Cp))}removeNode(t,e,n,i){if(Dp(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,r){return Dp(e)?this._fetchNamespace(t).listen(e,n,i,r):()=>{}}_buildInstruction(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,yd,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,bd,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Qh(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Op,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Pp)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Pp,!0).forEac
1h(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Bp(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Qh(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new ep,i=[],r=new Map,s=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=Fp(h,this.collectedEnterElements),p=new Map;let m=0;d.forEach((t,e)=>{const n=fd+m++;p.set(e,n),t.forEach(t=>Bp(t,n))});const g=[],f=new Set,_=new Set;for(let E=0;E<this.collectedLeaveElements.length;E++){const t=this.collectedLeaveElements[E],e=t.__ng_removed;e&&e.setForRemoval&&(g.push(t),f.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>f.add(t)):_.add(t))}const v=new Map,y=Fp(h,Array.from(f));y.forEach((t,e)=>{const n=_d+m++;v.set(e,n),t.forEach(t=>Bp(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Np(t,n))}),y.forEach((t,e)=>{const n=v.get(e);t.forEach(t=>Np(t,n))}),g.forEach(t=>{this.processLeaveNode(t)})});const x=[],b=[];for(let E=this._namespaceList.length-1;E>=0;E--)this._namespaceList[E].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(x.push(e),this.collectedEnterElements.length){const t=r.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!u||!this.driver.containsElement(u,r),h=v.get(r),d=p.get(r),m=this._buildInstruction(t,n,d,h,c);if(m.errors&&m.errors.length)b.push(m);else{if(c)return e.onStart(()=>Ed(r,m.fromStyles)),e.onDestroy(()=>Td(r,m.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>Ed(r,m.fromStyles)),e.onDestroy(()=>Td(r,m.toStyles)),void i.push(e);m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(r,m.timelines),s.push({instruction:m,player:e,element:r}),m.queriedElements.forEach(t=>ed(o,t,[]).push(e)),m.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),m.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(b.length){const t=[];b.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),x.forEach(t=>t.destroy()),this.reportError(t)}const w=new Map,C=new Map;s.forEach(t=>{const e=t.element;n.has(e)&&(C.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,w))}
vendor: 1,102 bytes, line 1
1),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{ed(w,e,[]).push(t),t.destroy()})});const P=g.filter(t=>jp(t,a,l)),M=new Map;Rp(M,this.driver,_,l,Nh).forEach(t=>{jp(t,a,l)&&P.push(t)});const O=new Map;d.forEach((t,e)=>{Rp(O,this.driver,new Set(t),a,"!")}),P.forEach(t=>{const e=M.get(t),n=O.get(t);M.set(t,Object.assign(Object.assign({},e),n))});const S=[],k=[],T={};s.forEach(t=>{const{element:e,player:s,instruction:o}=t;if(n.has(e)){if(c.has(e))return s.onDestroy(()=>Td(e,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let t=T;if(C.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=C.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>C.set(e,t))}const n=this._buildAnimation(s.namespaceId,o,w,r,O,M);if(s.setRealPlayer(n),t===T)S.push(s);else{const e=this.playersByElement.get(t);e&&e.length&&(s.parentPlayer=Qh(e)),i.push(s)}}else Ed(e,o.fromStyles),s.onDestroy(()=>Td(e,o.toStyles)),k.push(s),c.has(e)&&i.push(s)}),k.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const n=Qh(e);t.setRealPlayer(n)}}
1),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let E=0;E<g.length;E++){const t=g[E],e=t.__ng_removed;if(Np(t,_d),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,bd,!0);for(let t=0;t<i.length;t++){let e=o.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?Up(this,t,i):this.processLeaveNode(t)}return g.length=0,S.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),S}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,r){let s=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(s=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||r==Tp;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&s.push(e)})}}return(n||i)&&(s=s.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),s}_beforeAnimationBuild(t,e,n){const i=e.element,r=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=ed(n,t,[]);this._getPreviousPlayers(t,a,r,s,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Ed(i,e.fromStyles)}_buildAnimation(t,e,n,i,r,s){const o=e.triggerName,a=e.element,l=[],c=new Set,u=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Zh(e.duration,e.delay);const p=h!==a,m=function(t){const e=[];return Hp(t,e),e}((n.get(h)||Mp).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=r.get(h),f=s.get(h),_=Kh(0,this._normalizer,0,e.keyframes,g,f),v=this._buildPlayer(e,_,m);if(e.subTimeline&&i&&u.add(h),p){const e=new zp(t,o,h);e.setRealPlayer(v),l.push(e)}return v});l.forEach(t=>{ed(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Bp(t,xd));const d=Qh(h);return d.onDestroy(()=>{c.forEach(t=>Np(t,xd)),Td(a,e.toStyles)}),u.forEach(t=>{ed(i,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Zh(t.duration,t.delay)}}class zp{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Zh,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEac
1h(e=>{this._queuedCallbacks[e].forEach(n=>Yh(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){ed(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Dp(t){return t&&1===t.nodeType}function Lp(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Rp(t,e,n,i,r){const s=[];n.forEach(t=>s.push(Lp(t)));const o=[];i.forEach((n,i)=>{const s={};n.forEach(t=>{const n=s[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=Sp,o.push(i))}),t.set(i,s)});let a=0;return n.forEach(t=>Lp(t,s[a++])),o}function Fp(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),r=new Map;function s(t){if(!t)return 1;let e=r.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:s(o),r.set(t,e),e}return e.forEach(t=>{const e=s(t);1!==e&&n.get(e).push(t)}),n}function Bp(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Np(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Up(t,e,n){Qh(n).onDone(()=>t.processLeaveNode(e))}function Hp(t,e){for(let n=0;n<t.length;n++){const i=t[n];i instanceof Wh?Hp(i.players,e):e.push(i)}}function jp(t,e,n){const i=n.get(t);if(!i)return!1;let r=e.get(t);return r?i.forEach(t=>r.add(t)):e.set(t,i),n.delete(t),!0}class Vp{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Ap(t,e,n),this._timelineEngine=new bp(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,r){const s=t+"-"+i;let o=this._triggerCache[s];if(!o){const t=[],e=Wd(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new vp(t,e)}(i,e),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,r]=nd(n);this._timelineEngine.command(t,e,r,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,r){if("@"==n.charAt(0)){const[t,i]=nd(n);return this._timelineEngine.listen(t,e,i,r)}return this._transitionEngine.listen(t,e,n,i,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function $p(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Gp(e[0]),e.length>1&&(i=Gp(e[e.length-1]))):e&&(n=Gp(e)),n||i?new qp(t,n,i):null}let qp=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Td(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Td(this._element,this._initialStyles),this._endStyles&&(Td(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ed(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ed(this._element,this._endStyles),this._endStyles=null),Td(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Gp(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const r=n[i];Zp(r)&&(e=e||{},e[r]=t[r])}return e}function Zp(t){return"display"===t||"position"===t}const Wp="animation",Xp="animationend";class Qp{constructor(t,e,n,i,r,s,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=r,this._fillMode=s,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=nm(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i<t.length;i++)","===t.charAt(i)&&n++}(n),e=`${n}, ${e}`),em(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),tm(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Kp(this._element,this._name,"paused")}resume(){Kp(this._element,this._name,"running")}setPosition(t){const e=Yp(this._element,this._name);this._position=t*this._duration,em(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),tm(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=nm(t,"").split(","),i=Jp(n,e);i>=0&&(n.splice(i,1),em(t,"",n.join(",")))}(this._element,this._name))}}function Kp(t,e,n){em(t,"PlayState",n,Yp(t,e))}function Yp(t,e){const n=nm(t,"");return n.indexOf(",")>0?Jp(n.split(","),e):Jp([n],e)}function Jp(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function tm(t,e,n){n?t.removeEventListener(Xp,e):t.addEventListener(Xp,e)}function em(t,e,n,i){const r=Wp+e;if(null!=i){const e=t.style[r];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[r]=n}function nm(t,e){return t.style[Wp+e]||""}class im{constructor(t,e,n,i,r,s,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>
1=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Qp(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:Hd(this.element,n))})}this.currentSnapshot=t}}class rm extends Zh{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=pd(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class sm{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return cd(t)}matchesElement(t,e){return ud(t,e)}containsElement(t,e){return hd(t,e)}query(t,e,n){return dd(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>pd(t));let i=`@keyframes ${e} {\n`,r="";n.forEach(t=>{r=" ";const e=parseFloat(t.offset);i+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${e}: ${n};\n`)}}),i+=`${r}}\n`}),i+="}\n";const s=document.createElement("style");return s.textContent=i,s}animate(t,e,n,i,r,s=[],o){const a=s.filter(t=>t instanceof im),l={};Bd(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Nd(t,e,l));if(0==n)return new rm(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=$p(t,e),p=new im(t,e,u,n,i,r,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class om{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};
1this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Hd(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class am{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(lm().toString()),this._cssKeyframesDriver=new sm}validateStyleProperty(t){return cd(t)}matchesElement(t,e){return ud(t,e)}containsElement(t,e){return hd(t,e)}query(t,e,n){return dd(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,s);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const l={},c=s.filter(t=>t instanceof om);Bd(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=$p(t,e=Nd(t,e=e.map(t=>Od(t,!1)),l));return new om(t,e,a,u)}}function lm(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let cm=(()=>{class t extends Bh{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:Ct.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?jh(t):t;return dm(this._renderer,null,e,"register",[n]),new um(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(oi(Aa),oi(au))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class um extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new hm(this._id,t,e||{},this._renderer)}}class hm{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return dm(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function dm(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}const pm="@",mm="@.disabled";let gm=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new fm("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const s=e=>{Array.isArray(e)?e.forEach(s):this.engine.registerTrigger(i,r,t,e.name,e)};return e.data.animation.forEach(s),new _m(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(oi(Aa),oi(Vp),oi(Tc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class fm{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}
1appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==pm&&e==mm?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class _m extends fm{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==pm?"."==e.charAt(1)&&e==mm?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==pm){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),s="";return r.charAt(0)!=pm&&([r,s]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,i,r,s,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let vm=(()=>{class t extends Vp{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(oi(au),oi(gd),oi(hp))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const ym=[{provide:gd,useFactory:function(){return"function"==typeof lm()?new am:new sm}},{provide:new jn("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:Bh,useClass:cm},{provide:hp,useFactory:function(){return new dp}},{provide:Vp,useClass:vm},{provide:Aa,useFactory:function(t,e,n){return new gm(t,e,n)},deps:[gh,Vp,Tc]}];let xm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ct({providers:ym,imports:[Th]}),t})();function bm(...t){let e=t[t.length-1];return M(e)?(t.pop(),L(t,e)):$(t)}function wm(t,e){return U(t,e,1)}function Cm(t,e){return function(n){return n.lift(new Pm(t,e))}}class Pm{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Mm(t,this.predicate,this.thisArg))}}class Mm extends m{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}class Om{}class Sm{}class km{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof km?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}
vendor: 9,992 bytes, line 1
1copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new km;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof km?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Tm{encodeKey(t){return Em(t)}encodeValue(t){return Em(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Em(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Im{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Tm,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[r,s]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Im({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Am(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function zm(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Dm(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Lm{constructor(t,e,n,i){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new km),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new Im,this.urlWithParams=e}serializeBody(){return null===this.body?null:Am(this.body)||zm(this.body)||Dm(this.body)||"string"==typeof this.body?this.body:this.body instanceof Im?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Dm(this.body)?null:zm(this.body)?this.body.type||null:Am(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Im?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,i=t.responseType||this.responseType,r=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new Lm(e,n,r,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:s})}}var Rm=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class Fm{constructor(t,e=200,n="OK"){this.headers=t.headers||new km,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Bm extends Fm{constructor(t={}){super(t),this.type=Rm.ResponseHeader}clone(t={}){return new Bm({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Nm extends Fm{constructor(t={}){super(t),this.type=Rm.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Nm({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Um extends Fm{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Hm(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let jm=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof Lm)i=t;else{let r,s;r=n.headers instanceof km?n.headers:new km(n.headers),n.params&&(s=n.params instanceof Im?n.params:new Im({fromObject:n.params})),i=new Lm(t,e,void 0!==n.body?n.body:null,{headers:r,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=bm(i).pipe(wm(t=>this.handler.handle(t)));if(t instanceof Lm||"events"===n.observe)return r;const s=r.pipe(Cm(t=>t instanceof Nm));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe(O(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe(O(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe(O(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return s.pipe(O(t=>t.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Im).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,Hm(n,e))}post(t,e,n={}){return this.request("POST",t,Hm(n,e))}put(t,e,n={}){return this.request("PUT",t,Hm(n,e))}}return t.\u0275fac=function(e){return new(e||t)(oi(Om))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class Vm{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const $m=new jn("HTTP_INTERCEPTORS");let qm=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Gm=0;class Zm{}let Wm=(()=>{class t{constructor(t,e){this.callbackMap=t,this.document=e,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+Gm++}handle(t){if("JSONP"!==t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==t.responseType)throw new Error("JSONP requests must use Json response type.");return new v(e=>{const n=this.nextCallback(),i=t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${n}$1`),r=this.document.createElement("script");r.src=i;let s=null,o=!1,a=!1;this.callbackMap[n]=t=>{delete this.callbackMap[n],a||(s=t,o=!0)};const l=()=>{r.parentNode&&r.parentNode.removeChild(r),delete this.callbackMap[n]},c=t=>{a||this.resolvedPromise.then(()=>{l(),o?(e.next(new Nm({body:s,status:200,statusText:"OK",url:i}
1)),e.complete()):e.error(new Um({url:i,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},u=t=>{a||(l(),e.error(new Um({error:t,status:0,statusText:"JSONP Error",url:i})))};return r.addEventListener("load",c),r.addEventListener("error",u),this.document.body.appendChild(r),e.next({type:Rm.Sent}),()=>{a=!0,r.removeEventListener("load",c),r.removeEventListener("error",u),l()}})}}return t.\u0275fac=function(e){return new(e||t)(oi(Zm),oi(au))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Xm=(()=>{class t{constructor(t){this.jsonp=t}intercept(t,e){return"JSONP"===t.method?this.jsonp.handle(t):e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(oi(Wm))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Qm=/^\)\]\}',?\n/;class Km{}let Ym=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Jm=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let r=null;const s=()=>
1{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",s=new km(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new Bm({headers:s,status:e,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Qm,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new Nm({body:l,headers:i,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new Um({error:l,headers:i,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=s(),r=new Um({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let l=!1;const c=i=>{l||(e.next(s()),l=!0);let r={type:Rm.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},u=t=>{let n={type:Rm.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:Rm.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(oi(Km))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const tg=new jn("XSRF_COOKIE_NAME"),eg=new jn("XSRF_HEADER_NAME");class ng{}let ig=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=ku(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(oi(au),oi(mc),oi(tg))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),rg=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(oi(ng),oi(eg))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),sg=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get($m,[]);this.chain=t.reduceRight((t,e)=>new Vm(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(oi(Sm),oi(oo))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function og(){return"object"==typeof window?window:{}}let ag=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:rg,useClass:qm}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:tg,useValue:e.cookieName}:[],e.headerName?{provide:eg,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ct({providers:[rg,{provide:$m,useExisting:rg,multi:!0},{provide:ng,useClass:ig},{provide:tg,useValue:"XSRF-TOKEN"},{provide:eg,useValue:"X-XSRF-TOKEN"}]}),t})(),lg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ct({providers:[jm,{provide:Om,useClass:sg},Jm,{provide:Sm,useExisting:Jm},Ym,{provide:Km,useExisting:Ym}],imports:[[ag.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),cg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ct({providers:[Wm,{provide:Zm,useFactory:og},{provide:$m,useClass:Xm,multi:!0}]}),t})();function ug(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function hg(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(e).forEach(function(n){void 0===t[n]?t[n]=e[n]:ug(e[n])&&ug(t[n])&&Object.keys(e[n]).length>0&&hg(t[n],e[n])})}var dg={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function pg(){var t="undefined"!=typeof document?document:{};return hg(t,dg),t}var mg={document:dg,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function gg(){var t="undefined"!=typeof window?window:{};return hg(t,mg),t}function fg(t){return(fg=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _g(t,e){return(_g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function vg(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function yg(t,e,n){return(yg=vg()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&_g(r,n.prototype),r}).apply(null,arguments)}function xg(t){var e="function"==typeof Map?new Map:void 0;return(xg=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return yg(t,arguments,fg(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_g(n,t)})(t)}var bg=function(t){var e,n;function i(e){var n,i,r;return i=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n=t.call.apply(t,[this].concat(e))||this),r=i.__proto__,Object.defineProperty(i,"__proto__",{get:function(){return r},set:function(t){r.__proto__=t}}),n}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(xg(Array));function wg(t){void 0===t&&(t=[]);var e=[];return t.forEach(function(t){Array.isArray(t)?e.push.apply(e,wg(t)):e.push(t)}),e}function Cg(t,e){return Array.prototype.filter.call(t,e)}function Pg(t,e){var n=gg(),i=pg(),r=[];if(!e&&t instanceof bg)return t;if(!t)return new bg(r);if("string"==typeof t){var s=t.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){var o="div";0===s.indexOf("<li")&&(o="ul"),0===s.indexOf("<tr")&&(o="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(o="tr"),0===s.indexOf("<tbody")&&(o="table"),0===s.indexOf("<option")&&(o="select");var a=i.createElement(o);a.innerHTML=s;for(var l=0;l<a.childNodes.length;l+=1)r.push(a.childNodes[l])}else r=function(t,e){if("string"!=typeof t)return[t];for(var n=[],i=e.querySelectorAll(t),r=0;r<i.length;r+=1)n.push(i[r]);return n}(t.trim(),e||i)}else if(t.nodeType||t===n||t===i)r.push(t);else if(Array.isArray(t)){if(t instanceof bg)return t;r=t}return new bg(function(t){for(var e=[],n=0;n<t.length;n+=1)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(r))}Pg.fn=bg.prototype;var Mg="resize scroll".split(" ");function Og(t){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(void 0===n[0]){for(var r=0;r<this.length;r+=1)Mg.indexOf(t)<0&&(t in this[r]?this[r][t]():Pg(this[r]).trigger(t));return this}return this.on.apply(this,[t].concat(n))}}Og("click"),Og("blur"),Og("focus"),Og("focusin"),Og("focusout"),Og("keyup"),Og("keydown"),Og("keypress"),Og("submit"),Og("change"),Og("mousedown"),Og("mousemove"),Og("mouseup"),Og("mouseenter"),Og("mouseleave"),Og("mouseout"),Og("mouseover"),Og("touchstart"),Og("touchend"),Og("touchmove"),Og("resize"),Og("scroll");var Sg={addClass:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=wg(e.map(function(t){return t.split(" ")}));return this.forEach(function(t){var e;(e=t.classList).add.apply(e,i)}),this},removeClass:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=wg(e.map(function(t){return t.split(" ")}));return this.forEach(function(t){var e;(e=t.classList).remove.apply(e,i)}),this},hasClass:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=wg(e.map(function(t){return t.split(" ")}));return Cg(this,function(t){return i.filter(function(e){return t.classList.contains(e)}).length>0}).length>0},toggleClass:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=wg(e.map(function(t){return t.split(" ")}));
vendor: 8,495 bytes, line 1
1this.forEach(function(t){i.forEach(function(e){t.classList.toggle(e)})})},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(t,e);else for(var i in t)this[n][i]=t[i],this[n].setAttribute(i,t[i]);return this},removeAttr:function(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},transform:function(t){for(var e=0;e<this.length;e+=1)this[e].style.transform=t;return this},transition:function(t){for(var e=0;e<this.length;e+=1)this[e].style.transitionDuration="string"!=typeof t?t+"ms":t;return this},on:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e[0],r=e[1],s=e[2],o=e[3];function a(t){var e=t.target;if(e){var n=t.target.dom7EventData||[];if(n.indexOf(t)<0&&n.unshift(t),Pg(e).is(r))s.apply(e,n);else for(var i=Pg(e).parents(),o=0;o<i.length;o+=1)Pg(i[o]).is(r)&&s.apply(i[o],n)}}function l(t){var e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),s.apply(this,e)}"function"==typeof e[1]&&(i=e[0],s=e[1],o=e[2],r=void 0),o||(o=!1);for(var c,u=i.split(" "),h=0;h<this.length;h+=1){var d=this[h];if(r)for(c=0;c<u.length;c+=1){var p=u[c];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:s,proxyListener:a}),d.addEventListener(p,a,o)}else for(c=0;c<u.length;c+=1){var m=u[c];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[m]||(d.dom7Listeners[m]=[]),d.dom7Listeners[m].push({listener:s,proxyListener:l}),d.addEventListener(m,l,o)}}return this},off:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e[0],r=e[1],s=e[2],o=e[3];"function"==typeof e[1]&&(i=e[0],s=e[1],o=e[2],r=void 0),o||(o=!1);for(var a=i.split(" "),l=0;l<a.length;l+=1)for(var c=a[l],u=0;u<this.length;u+=1){var h=this[u],d=void 0;if(!r&&h.dom7Listeners?d=h.dom7Listeners[c]:r&&h.dom7LiveListeners&&(d=h.dom7LiveListeners[c]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var m=d[p];s&&m.listener===s||s&&m.listener&&m.listener.dom7proxy&&m.listener.dom7proxy===s?(h.removeEventListener(c,m.proxyListener,o),d.splice(p,1)):s||(h.removeEventListener(c,m.proxyListener,o),d.splice(p,1))}}return this},trigger:function(){for(var t=gg(),e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var r=n[0].split(" "),s=n[1],o=0;o<r.length;o+=1)for(var a=r[o],l=0;l<this.length;l+=1){var c=this[l];if(t.CustomEvent){var u=new t.CustomEvent(a,{detail:s,bubbles:!0,cancelable:!0});c.dom7EventData=n.filter(function(t,e){return e>0}),c.dispatchEvent(u),c.dom7EventData=[],delete c.dom7EventData}}return this},transitionEnd:function(t){var e=this;return t&&e.on("transitionend",function n(i){i.target===this&&(t.call(this,i),e.off("transitionend",n))}),this},outerWidth:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var t=gg();return this[0]?t.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var t=gg(),e=pg(),n=this[0],i=n.getBoundingClientRect(),r=e.body;return{top:i.top+(n===t?t.scrollY:n.scrollTop)-(n.clientTop||r.clientTop||0),left:i.left+(n===t?t.scrollX:n.scrollLeft)-(n.clientLeft||r.clientLeft||0)}}return null},css:function(t,e){var n,i=gg();if(1===arguments.length){if("string"!=typeof t){for(n=0;n<this.length;n+=1)for(var r in t)this[n].style[r]=t[r];return this}if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this},each:function(t){return t?(this.forEach(function(e,n){t.apply(e,[e,n])}),this):this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(t){var e,n,i=gg(),r=pg(),s=this[0];if(!s||void 0===t)return!1;if("string"==typeof t){if(s.matches)return s.matches(t);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(t);if(s.msMatchesSelector)return s.msMatchesSelector(t);for(e=Pg(t),n=0;n<e.length;n+=1)if(e[n]===s)return!0;return!1}if(t===r)return s===r;if(t===i)return s===i;if(t.nodeType||t instanceof bg){for(e=t.nodeType?[t]:t,n=0;n<e.length;n+=1)if(e[n]===s)return!0;return!1}return!1},index:function(){var t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;var e=this.length;if(t>e-1)return Pg([]);if(t<0){var n=e+t;return Pg(n<0?[]:[this[n]])}return Pg([this[t]])},append:function(){for(var t,e=pg(),n=0;n<arguments.length;n+=1){t=n<0||arguments.length<=n?void 0:arguments[n];for(var i=0;i<this.length;i+=1)if("string"==typeof t){var r=e.createElement("div");for(r.innerHTML=t;r.firstChild;)this[i].appendChild(r.firstChild)}else if(t instanceof bg)for(var s=0;s<t.length;s+=1)this[i].appendChild(t[s]);else this[i].appendChild(t)}return this},prepend:function(t){var e,n,i=pg();for(e=0;e<this.length;e+=1)if("string"==typeof t){var r=i.createElement("div");for(r.innerHTML=t,n=r.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(r.childNodes[n],this[e].childNodes[0])}else if(t instanceof bg)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&Pg(this[0].nextElementSibling).is(t)?Pg([this[0].nextElementSibling]):Pg([]):Pg(this[0].nextElementSibling?[this[0].nextElementSibling]:[]):Pg([])},nextAll:function(t){var e=[],n=this[0];if(!n)return Pg([]);for(;n.nextElementSibling;){var i=n.nextElementSibling;t?Pg(i).is(t)&&e.push(i):e.push(i),n=i}return Pg(e)},prev:function(t){if(this.length>0){var e=this[0];return t?e.previousElementSibling&&Pg(e.previousElementSibling).is(t)?Pg([e.previousElementSibling]):Pg([]):Pg(e.previousElementSibling?[e.previousElementSibling]:[])}return Pg([])},prevAll:function(t){var e=[],n=this[0];if(!n)return Pg([]);for(;n.previousElementSibling;){var i=n.previousElementSibling;t?Pg(i).is(t)&&e.push(i):e.push(i),n=i}return Pg(e)},parent:function(t){for(var e=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(t?Pg(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return Pg(e)},parents:function(t){for(var e=[],n=0;n<this.length;n+=1)for(var i=this[n].parentNode;i;)t?Pg(i).is(t)&&e.push(i):e.push(i),i=i.parentNode;return Pg(e)},closest:function(t){var e=this;return void 0===t?Pg([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){for(var e=[],n=0;n<this.length;n+=1)for(var i=this[n].querySelectorAll(t),r=0;r<i.length;r+=1)e.push(i[r]);return Pg(e)},children:function(t){for(var e=[],n=0;n<this.length;n+=1)for(var i=this[n].children,r=0;r<i.length;r+=1)t&&!Pg(i[r]).is(t)||e.push(i[r]);return Pg(e)},filter:function(t){return Pg(Cg(this,t))},remove:function(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}};Object.keys(Sg).forEach(function(t){Object.defineProperty(Pg.fn,t,{value:Sg[t],writable:!0})});var kg,Tg,Eg,Ig=Pg;function Ag(t,e){return void 0===e&&(e=0),setTimeout(t,e)}function zg(){return Date.now()}function Dg(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function Lg(){for(var t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"],n=1;n<arguments.length;n+=1){var i=n<0||arguments.length<=n?void 0:arguments[n];if(null!=i)for(var r=Object.keys(Object(i)).filter(function(t){return e.indexOf(t)<0}),s=0,o=r.length;s<o;s+=1){var a=r[s],l=Object.getOwnPropertyDescriptor(i,a);void 0!==l&&l.enumerable&&(Dg(t[a])&&Dg(i[a])?i[a].__swiper__?t[a]=i[a]:Lg(t[a],i[a]):!Dg(t[a])&&Dg(i[a])?(t[a]={},i[a].__swiper__?t[a]=i[a]:Lg(t[a],i[a])):t[a]=i[a])}}return t}function Rg(t,e){Object.keys(e).forEach(function(n){Dg(e[n])&&Object.keys(e[n]).forEac
1h(function(i){"function"==typeof e[n][i]&&(e[n][i]=e[n][i].bind(t))}),t[n]=e[n]})}function Fg(t){return void 0===t&&(t=""),"."+t.trim().replace(/([\.:\/])/g,"\\$1").replace(/ /g,".")}function Bg(t,e,n,i){var r=pg();return n&&Object.keys(i).forEach(function(n){if(!e[n]&&!0===e.auto){var s=r.createElement("div");s.className=i[n],t.append(s),e[n]=s}}),e}function Ng(){return kg||(kg=function(){var t=gg(),e=pg();return{touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!!t.PointerEvent&&"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>=0,observer:"MutationObserver"in t||"WebkitMutationObserver"in t,passiveListener:function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.addEventListener("testPassiveListener",null,n)}catch(i){}return e}(),gestures:"ongesturestart"in t}}()),kg}function Ug(t){return void 0===t&&(t={}),Tg||(Tg=function(t){var e=(void 0===t?{}:t).userAgent,n=Ng(),i=gg(),r=i.navigator.platform,s=e||i.navigator.userAgent,o={ios:!1,android:!1},a=i.screen.width,l=i.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/),u=s.match(/(iPad).*OS\s([\d_]+)/),h=s.match(/(iPod)(.*OS\s([\d_]+))?/),d=!u&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===r,m="MacIntel"===r;return!u&&m&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(a+"x"+l)>=0&&((u=s.match(/(Version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),m=!1),c&&!p&&(o.os="android",o.android=!0),(u||d||h)&&(o.os="ios",o.ios=!0),o}(t)),Tg}function Hg(){return Eg||(Eg=function(){var t,e=gg();return{isEdge:!!e.navigator.userAgent.match(/Edge/g),isSafari:(t=e.navigator.userAgent.toLowerCase(),t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),Eg}var jg={name:"resize",create:function(){var t=this;Lg(t,{resize:{observer:null,createObserver:function(){t&&!t.destroyed&&t.initialized&&(t.resize.observer=new ResizeObserver(function(e){var n=t.width,i=t.height,r=n,s=i;e.forEach(function(e){var n=e.contentBoxSize,i=e.contentRect,o=e.target;o&&o!==t.el||(r=i?i.width:(n[0]||n).inlineSize,s=i?i.height:(n[0]||n).blockSize)}),r===n&&s===i||t.resize.resizeHandler()}),t.resize.observer.observe(t.el))},removeObserver:function(){t.resize.observer&&t.resize.observer.unobserve&&t.el&&(t.resize.observer.unobserve(t.el),t.resize.observer=null)},resizeHandler:function(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler:function(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init:function(t){var e=gg();t.params.resizeObserver&&void 0!==gg().ResizeObserver?t.resize.createObserver():(e.addEventListener("resize",t.resize.resizeHandler),e.addEventListener("orientationchange",t.resize.orientationChangeHandler))},destroy:function(t){var e=gg();t.resize.removeObserver(),e.removeEventListener("resize",t.resize.resizeHandler),e.removeEventListener("orientationchange",t.resize.orientationChangeHandler)}}};function Vg(){return(Vg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var $g={attach:function(t,e){void 0===e&&(e={});var n=gg(),i=this,r=new(n.MutationObserver||n.WebkitMutationObserver)(function(t){if(1!==t.length){var e=function(){i.emit("observerUpdate",t[0])};n.requestAnimationFrame?n.requestAnimationFrame(e):n.setTimeout(e,0)}else i.emit("observerUpdate",t[0])});r.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),i.observer.observers.push(r)},init:function(){var t=this;if(t.support.observer&&t.params.observer){if(t.params.observeParents)for(var e=t.$el.parents(),n=0;n<e.length;n+=1)t.observer.attach(e[n]);t.observer.attach(t.$el[0],{childList:t.params.observeSlideChildren}),t.observer.attach(t.$wrapperEl[0],{attributes:!1})}}
vendor: 5,056 bytes, line 1
1,destroy:function(){this.observer.observers.forEach(function(t){t.disconnect()}),this.observer.observers=[]}},qg={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){Rg(this,{observer:Vg({},$g,{observers:[]})})},on:{init:function(t){t.observer.init()},destroy:function(t){t.observer.destroy()}}};function Gg(t){var e=this,n=pg(),i=gg(),r=e.touchEventsData,s=e.params,o=e.touches;if(e.enabled&&(!e.animating||!s.preventInteractionOnTransition)){var a=t;a.originalEvent&&(a=a.originalEvent);var l=Ig(a.target);if(("wrapper"!==s.touchEventsTarget||l.closest(e.wrapperEl).length)&&(r.isTouchEvent="touchstart"===a.type,(r.isTouchEvent||!("which"in a)||3!==a.which)&&!(!r.isTouchEvent&&"button"in a&&a.button>0||r.isTouched&&r.isMoved)))if(!!s.noSwipingClass&&""!==s.noSwipingClass&&a.target&&a.target.shadowRoot&&t.path&&t.path[0]&&(l=Ig(t.path[0])),s.noSwiping&&l.closest(s.noSwipingSelector?s.noSwipingSelector:"."+s.noSwipingClass)[0])e.allowClick=!0;else if(!s.swipeHandler||l.closest(s.swipeHandler)[0]){o.currentX="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,o.currentY="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY;var c=o.currentX,u=o.currentY,h=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,d=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(h&&(c<=d||c>=i.innerWidth-d)){if("prevent"!==h)return;t.preventDefault()}if(Lg(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=c,o.startY=u,r.touchStartTime=zg(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==a.type){var p=!0;l.is(r.formElements)&&(p=!1),n.activeElement&&Ig(n.activeElement).is(r.formElements)&&n.activeElement!==l[0]&&n.activeElement.blur(),!s.touchStartForcePreventDefault&&!(p&&e.allowTouchMove&&s.touchStartPreventDefault)||l[0].isContentEditable||a.preventDefault()}e.emit("touchStart",a)}}}function Zg(t){var e=pg(),n=this,i=n.touchEventsData,r=n.params,s=n.touches,o=n.rtlTranslate;if(n.enabled){var a=t;if(a.originalEvent&&(a=a.originalEvent),i.isTouched){if(!i.isTouchEvent||"touchmove"===a.type){var l="touchmove"===a.type&&a.targetTouches&&(a.targetTouches[0]||a.changedTouches[0]),c="touchmove"===a.type?l.pageX:a.pageX,u="touchmove"===a.type?l.pageY:a.pageY;if(a.preventedByNestedSwiper)return s.startX=c,void(s.startY=u);if(!n.allowTouchMove)return n.allowClick=!1,void(i.isTouched&&(Lg(s,{startX:c,startY:u,currentX:c,currentY:u}),i.touchStartTime=zg()));if(i.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(n.isVertical()){if(u<s.startY&&n.translate<=n.maxTranslate()||u>s.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(c<s.startX&&n.translate<=n.maxTranslate()||c>s.startX&&n.translate>=n.minTranslate())return;if(i.isTouchEvent&&e.activeElement&&a.target===e.activeElement&&Ig(a.target).is(i.formElements))return i.isMoved=!0,void(n.allowClick=!1);if(i.allowTouchCallbacks&&n.emit("touchMove",a),!(a.targetTouches&&a.targetTouches.length>1)){s.currentX=c,s.currentY=u;var h,d=s.currentX-s.startX,p=s.currentY-s.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(p,2))<n.params.threshold))if(void 0===i.isScrolling&&(n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?i.isScrolling=!1:d*d+p*p>=25&&(h=180*Math.atan2(Math.abs(p),Math.abs(d))/Math.PI,i.isScrolling=n.isHorizontal()?h>r.touchAngle:90-h>r.touchAngle)),i.isScrolling&&n.emit("touchMoveOpposite",a),void 0===i.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(i.startMoving=!0)),i.isScrolling)i.isTouched=!1;else if(i.startMoving){n.allowClick=!1,!r.cssMode&&a.cancelable&&a.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&a.stopPropagation(),i.isMoved||(r.loop&&n.loopFix(),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!r.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",a)),n.emit("sliderMove",a),i.isMoved=!0;var m=n.isHorizontal()?d:p;s.diff=m,m*=r.touchRatio,o&&(m=-m),n.swipeDirection=m>0?"prev":"next",i.currentTranslate=m+i.startTranslate;var g=!0,f=r.resistanceRatio;if(r.touchReleaseOnEdges&&(f=0),m>0&&i.currentTranslate>n.minTranslate()?(g=!1,r.resistance&&(i.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+i.startTranslate+m,f))):m<0&&i.currentTranslate<n.maxTranslate()&&(g=!1,r.resistance&&(i.currentTranslate=n.maxTranslate()+1-Math.pow(n.maxTranslate()-i.startTranslate-m,f))),g&&(a.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(m)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);
1if(!i.allowThresholdMove)return i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,void(s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}r.followFinger&&!r.cssMode&&((r.freeMode||r.watchSlidesProgress||r.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),r.freeMode&&(0===i.velocities.length&&i.velocities.push({position:s[n.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:s[n.isHorizontal()?"currentX":"currentY"],time:zg()})),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}}}}else i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",a)}}function Wg(t){var e=this,n=e.touchEventsData,i=e.params,r=e.touches,s=e.rtlTranslate,o=e.$wrapperEl,a=e.slidesGrid,l=e.snapGrid;if(e.enabled){var c=t;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&i.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);i.grabCursor&&n.isMoved&&n.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);var u,h=zg(),d=h-n.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(c),e.emit("tap click",c),d<300&&h-n.lastClickTime<300&&e.emit("doubleTap doubleClick",c)),n.lastClickTime=zg(),Ag(function(){e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||0===r.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=i.followFinger?s?e.translate:-e.translate:-n.currentTranslate,!i.cssMode)if(i.freeMode){if(u<-e.minTranslate())return void e.slideTo(e.activeIndex);if(u>-e.maxTranslate())return void e.slideTo(e.slides.length<l.length?l.length-1:e.slides.length-1);if(i.freeModeMomentum){if(n.velocities.length>1){var p=n.velocities.pop(),m=n.velocities.pop(),g=p.time-m.time;e.velocity=(p.position-m.position)/g,e.velocity/=2,Math.abs(e.velocity)<i.freeModeMinimumVelocity&&(e.velocity=0),(g>150||zg()-p.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=i.freeModeMomentumVelocityRatio,n.velocities.length=0;var f=1e3*i.freeModeMomentumRatio,_=e.translate+e.velocity*f;s&&(_=-_);var v,y,x=!1,b=20*Math.abs(e.velocity)*i.freeModeMomentumBounceRatio;if(_<e.maxTranslate())i.freeModeMomentumBounce?(_+e.maxTranslate()<-b&&(_=e.maxTranslate()-b),v=e.maxTranslate(),x=!0,n.allowMomentumBounce=!0):_=e.maxTranslate(),i.loop&&i.centeredSlides&&(y=!0);else if(_>e.minTranslate())i.freeModeMomentumBounce?(_-e.minTranslate()>b&&(_=e.minTranslate()+b),v=e.minTranslate(),x=!0,n.allowMomentumBounce=!0):_=e.minTranslate(),i.loop&&i.centeredSlides&&(y=!0);else if(i.freeModeSticky){for(var w,C=0;C<l.length;C+=1)if(l[C]>-_){w=C;break}_=-(_=Math.abs(l[w]-_)<Math.abs(l[w-1]-_)||"next"===e.swipeDirection?l[w]:l[w-1])}if(y&&e.once("transitionEnd",function(){e.loopFix()}),0!==e.velocity){if(f=s?Math.abs((-_-e.translate)/e.velocity):Math.abs((_-e.translate)/e.velocity),i.freeModeSticky){var P=Math.abs((s?-_:_)-e.translate),M=e.slidesSizesGrid[e.activeIndex];f=P<M?i.speed:P<2*M?1.5*i.speed:2.5*i.speed}}else if(i.freeModeSticky)return void e.slideToClosest();i.freeModeMomentumBounce&&x?(e.updateProgress(v),e.setTransition(f),e.setTranslate(_),e.transitionStart(!0,e.swipeDirection),e.animating=!0,o.transitionEnd(function(){e&&!e.destroyed&&n.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(i.speed),setTimeout(function(){e.setTranslate(v),o.transitionEnd(function(){e&&!e.destroyed&&e.transitionEnd()})},0))})):e.velocity?(e.updateProgress(_),e.setTransition(f),e.setTranslate(_),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,o.transitionEnd(function(){e&&!e.destroyed&&e.transitionEnd()}))):(e.emit("_freeModeNoMomentumRelease"),e.updateProgress(_)),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(i.freeModeSticky)return void e.slideToClosest();i.freeMode&&e.emit("_freeModeNoMomentumRelease")}(!i.freeModeMomentum||d>=i.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}else{for(var O=0,S=e.slidesSizesGrid[0],k=0;k<a.length;k+=k<i.slidesPerGroupSkip?1:i.slidesPerGroup){var T=k<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;void 0!==a[k+T]?u>=a[k]&&u<a[k+T]&&(O=k,S=a[k+T]-a[k]):u>=a[k]&&(O=k,S=a[a.length-1]-a[a.length-2])}var E=(u-a[O])/S,I=O<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(d>i.longSwipesMs){if(!i.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&e.slideTo(E>=i.longSwipesRatio?O+I:O),"prev"===e.swipeDirection&&e.slideTo(E>1-i.longSwipesRatio?O+I:O)}else{if(!i.shortSwipes)return void e.slideTo(e.activeIndex);
1!e.navigation||c.target!==e.navigation.nextEl&&c.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(O+I),"prev"===e.swipeDirection&&e.slideTo(O)):e.slideTo(c.target===e.navigation.nextEl?O+I:O)}}}}function Xg(){var t=this,e=t.params,n=t.el;if(!n||0!==n.offsetWidth){e.breakpoints&&t.setBreakpoint();var i=t.allowSlideNext,r=t.allowSlidePrev,s=t.snapGrid;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),t.slideTo(("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slides.length-1:t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=r,t.allowSlideNext=i,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}}function Qg(t){var e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Kg(){var t=this,e=t.wrapperEl,n=t.rtlTranslate;if(t.enabled){t.previousTranslate=t.translate,t.translate=t.isHorizontal()?n?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:-e.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();var i=t.maxTranslate()-t.minTranslate();(0===i?0:(t.translate-t.minTranslate())/i)!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}}var Yg=!1;function Jg(){}var tf={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!1,nested:!1,createElements:!1,enabled:!0,width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function ef(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var nf={modular:{useParams:function(t){var e=this;e.modules&&Object.keys(e.modules).forEach(function(n){var i=e.modules[n];i.params&&Lg(t,i.params)})},useModules:function(t){void 0===t&&(t={});var e=this;e.modules&&Object.keys(e.modules).forEach(function(n){var i=e.modules[n],r=t[n]||{};
1i.on&&e.on&&Object.keys(i.on).forEach(function(t){e.on(t,i.on[t])}),i.create&&i.create.bind(e)(r)})}},eventsEmitter:{on:function(t,e,n){var i=this;if("function"!=typeof e)return i;var r=n?"unshift":"push";return t.split(" ").forEach(function(t){i.eventsListeners[t]||(i.eventsListeners[t]=[]),i.eventsListeners[t][r](e)}),i},once:function(t,e,n){var i=this;if("function"!=typeof e)return i;function r(){i.off(t,r),r.__emitterProxy&&delete r.__emitterProxy;for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];e.apply(i,s)}return r.__emitterProxy=e,i.on(t,r,n)},onAny:function(t,e){var n=this;if("function"!=typeof t)return n;var i=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[i](t),n},offAny:function(t){var e=this;if(!e.eventsAnyListeners)return e;var n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off:function(t,e){var n=this;return n.eventsListeners?(t.split(" ").forEach(function(t){void 0===e?n.eventsListeners[t]=[]:n.eventsListeners[t]&&n.eventsListeners[t].forEach(function(i,r){(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&n.eventsListeners[t].splice(r,1)})}),n):n},emit:function(){var t,e,n,i=this;if(!i.eventsListeners)return i;for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];"string"==typeof s[0]||Array.isArray(s[0])?(t=s[0],e=s.slice(1,s.length),n=i):(t=s[0].events,e=s[0].data,n=s[0].context||i),e.unshift(n);var a=Array.isArray(t)?t:t.split(" ");return a.forEach(function(t){i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach(function(i){i.apply(n,[t].concat(e))}),i.eventsListeners&&i.eventsListeners[t]&&i.eventsListeners[t].forEach(function(t){t.apply(n,e)})}),i}},update:{updateSize:function(){var t,e,n=this,i=n.$el;e=null!=n.params.height?n.params.height:i[0].clientHeight,0===(t=null!=n.params.width?n.params.width:i[0].clientWidth)&&n.isHorizontal()||0===e&&n.isVertical()||(t=t-parseInt(i.css("padding-left")||0,10)-parseInt(i.css("padding-right")||0,10),e=e-parseInt(i.css("padding-top")||0,10)-parseInt(i.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(e)&&(e=0),Lg(n,{width:t,height:e,size:n.isHorizontal()?t:e}))},updateSlides:function(){var t=this;function e(e){return t.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}function n(t,n){return parseFloat(t.getPropertyValue(e(n))||0)}var i=t.params,r=t.$wrapperEl,s=t.size,o=t.rtlTranslate,a=t.wrongRTL,l=t.virtual&&i.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,u=r.children("."+t.params.slideClass),h=l?t.virtual.slides.length:u.length,d=[],p=[],m=[],g=i.slidesOffsetBefore;"function"==typeof g&&(g=i.slidesOffsetBefore.call(t));var f=i.slidesOffsetAfter;"function"==typeof f&&(f=i.slidesOffsetAfter.call(t));var _=t.snapGrid.length,v=t.slidesGrid.length,y=i.spaceBetween,x=-g,b=0,w=0;if(void 0!==s){var C,P;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*s),t.virtualSize=-y,u.css(o?{marginLeft:"",marginTop:""}:{marginRight:"",marginBottom:""}),i.slidesPerColumn>1&&(C=Math.floor(h/i.slidesPerColumn)===h/t.params.slidesPerColumn?h:Math.ceil(h/i.slidesPerColumn)*i.slidesPerColumn,"auto"!==i.slidesPerView&&"row"===i.slidesPerColumnFill&&(C=Math.max(C,i.slidesPerView*i.slidesPerColumn)));for(var M,O,S,k=i.slidesPerColumn,T=C/k,E=Math.floor(h/i.slidesPerColumn),I=0;I<h;I+=1){P=0;var A=u.eq(I);if(i.slidesPerColumn>1){var z=void 0,D=void 0,L=void 0;if("row"===i.slidesPerColumnFill&&i.slidesPerGroup>1){var R=Math.floor(I/(i.slidesPerGroup*i.slidesPerColumn)),F=I-i.slidesPerColumn*i.slidesPerGroup*R,B=0===R?i.slidesPerGroup:Math.min(Math.ceil((h-R*k*i.slidesPerGroup)/k),i.slidesPerGroup);L=Math.floor(F/B),A.css({"-webkit-box-ordinal-group":z=(D=F-L*B+R*i.slidesPerGroup)+L*C/k,"-moz-box-ordinal-group":z,"-ms-flex-order":z,"-webkit-order":z,order:z})}else"column"===i.slidesPerColumnFill?(L=I-(D=Math.floor(I/k))*k,(D>E||D===E&&L===k-1)&&(L+=1)>=k&&(L=0,D+=1)):D=I-(L=Math.floor(I/T))*T;A.css(e("margin-top"),0!==L&&i.spaceBetween&&i.spaceBetween+"px")}if("none"!==A.css("display")){if("auto"===i.slidesPerView){var N=getComputedStyle(A[0]),U=A[0].style.transform,H=A[0].style.webkitTransform;if(U&&(A[0].style.transform="none"),H&&(A[0].style.webkitTransform="none"),i.roun
vendor: 6,718 bytes, line 1
1dLengths)P=t.isHorizontal()?A.outerWidth(!0):A.outerHeight(!0);else{var j=n(N,"width"),V=n(N,"padding-left"),$=n(N,"padding-right"),q=n(N,"margin-left"),G=n(N,"margin-right"),Z=N.getPropertyValue("box-sizing");if(Z&&"border-box"===Z)P=j+q+G;else{var W=A[0];P=j+V+$+q+G+(W.offsetWidth-W.clientWidth)}}U&&(A[0].style.transform=U),H&&(A[0].style.webkitTransform=H),i.roundLengths&&(P=Math.floor(P))}else P=(s-(i.slidesPerView-1)*y)/i.slidesPerView,i.roundLengths&&(P=Math.floor(P)),u[I]&&(u[I].style[e("width")]=P+"px");u[I]&&(u[I].swiperSlideSize=P),m.push(P),i.centeredSlides?(x=x+P/2+b/2+y,0===b&&0!==I&&(x=x-s/2-y),0===I&&(x=x-s/2-y),Math.abs(x)<.001&&(x=0),i.roundLengths&&(x=Math.floor(x)),w%i.slidesPerGroup==0&&d.push(x),p.push(x)):(i.roundLengths&&(x=Math.floor(x)),(w-Math.min(t.params.slidesPerGroupSkip,w))%t.params.slidesPerGroup==0&&d.push(x),p.push(x),x=x+P+y),t.virtualSize+=P+y,b=P,w+=1}}if(t.virtualSize=Math.max(t.virtualSize,s)+f,o&&a&&("slide"===i.effect||"coverflow"===i.effect)&&r.css({width:t.virtualSize+i.spaceBetween+"px"}),i.setWrapperSize&&r.css(((O={})[e("width")]=t.virtualSize+i.spaceBetween+"px",O)),i.slidesPerColumn>1&&(t.virtualSize=(P+i.spaceBetween)*C,t.virtualSize=Math.ceil(t.virtualSize/i.slidesPerColumn)-i.spaceBetween,r.css(((S={})[e("width")]=t.virtualSize+i.spaceBetween+"px",S)),i.centeredSlides)){M=[];for(var X=0;X<d.length;X+=1){var Q=d[X];i.roundLengths&&(Q=Math.floor(Q)),d[X]<t.virtualSize+d[0]&&M.push(Q)}d=M}if(!i.centeredSlides){M=[];for(var K=0;K<d.length;K+=1){var Y=d[K];i.roundLengths&&(Y=Math.floor(Y)),d[K]<=t.virtualSize-s&&M.push(Y)}d=M,Math.floor(t.virtualSize-s)-Math.floor(d[d.length-1])>1&&d.push(t.virtualSize-s)}if(0===d.length&&(d=[0]),0!==i.spaceBetween){var J,tt=t.isHorizontal()&&o?"marginLeft":e("marginRight");u.filter(function(t,e){return!i.cssMode||e!==u.length-1}).css(((J={})[tt]=y+"px",J))}if(i.centeredSlides&&i.centeredSlidesBounds){var et=0;m.forEach(function(t){et+=t+(i.spaceBetween?i.spaceBetween:0)});var nt=(et-=i.spaceBetween)-s;d=d.map(function(t){return t<0?-g:t>nt?nt+f:t})}if(i.centerInsufficientSlides){var it=0;if(m.forEach(function(t){it+=t+(i.spaceBetween?i.spaceBetween:0)}),(it-=i.spaceBetween)<s){var rt=(s-it)/2;d.forEach(function(t,e){d[e]=t-rt}),p.forEach(function(t,e){p[e]=t+rt})}}Lg(t,{slides:u,snapGrid:d,slidesGrid:p,slidesSizesGrid:m}),h!==c&&t.emit("slidesLengthChange"),d.length!==_&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==v&&t.emit("slidesGridLengthChange"),(i.watchSlidesProgress||i.watchSlidesVisibility)&&t.updateSlidesOffset()}},updateAutoHeight:function(t){var e,n=this,i=[],r=n.virtual&&n.params.virtual.enabled,s=0;"number"==typeof t?n.setTransition(t):!0===t&&n.setTransition(n.params.speed);var o=function(t){return r?n.slides.filter(function(e){return parseInt(e.getAttribute("data-swiper-slide-index"),10)===t})[0]:n.slides.eq(t)[0]};if("auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)if(n.params.centeredSlides)n.visibleSlides.each(function(t){i.push(t)});else for(e=0;e<Math.ceil(n.params.slidesPerView);e+=1){var a=n.activeIndex+e;if(a>n.slides.length&&!r)break;i.push(o(a))}else i.push(o(n.activeIndex));for(e=0;e<i.length;e+=1)if(void 0!==i[e]){var l=i[e].offsetHeight;s=l>s?l:s}s&&n.$wrapperEl.css("height",s+"px")},updateSlidesOffset:function(){for(var t=this.slides,e=0;e<t.length;e+=1)t[e].swiperSlideOffset=this.isHorizontal()?t[e].offsetLeft:t[e].offsetTop},updateSlidesProgress:function(t){void 0===t&&(t=this&&this.translate||0);var e=this,n=e.params,i=e.slides,r=e.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&e.updateSlidesOffset();var s=-t;r&&(s=t),i.removeClass(n.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(var o=0;o<i.length;o+=1){var a=i[o],l=(s+(n.centeredSlides?e.minTranslate():0)-a.swiperSlideOffset)/(a.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight){var c=-(s-a.swiperSlideOffset),u=c+e.slidesSizesGrid[o];(c>=0&&c<e.size-1||u>1&&u<=e.size||c<=0&&u>=e.size)&&(e.visibleSlides.push(a),e.visibleSlidesIndexes.push(o),i.eq(o).addClass(n.slideVisibleClass))}a.progress=r?-l:l}e.visibleSlides=Ig(e.visibleSlides)}},updateProgress:function(t){var e=this;void 0===t&&(t=e&&e.translate&&e.translate*(e.rtlTranslate?-1:1)||0);var n=e.params,i=e.maxTranslate()-e.minTranslate(),r=e.progress,s=e.isBeginning,o=e.isEnd,a=s,l=o;0===i?(r=0,s=!0,o=!0):(s=(r=(t-e.minTranslate())/i)<=0,o=r>=1),Lg(e,{progress:r,isBeginning:s,isEnd:o}),(n.watchSlidesProgress||n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),s&&!a&&e.emit("reachBeginning toEdge"),o&&!l&&e.emit("reachEnd toEdge"),(a&&!s||l&&!o)&&e.emit("fromEdge"),e.emit("progress",r)},updateSlidesClasses:function(){var t,e=this,n=e.slides,i=e.params,r=e.$wrapperEl,s=e.activeIndex,o=e.realIndex,a=e.virtual&&i.virtual.enabled;n.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),(t=a?e.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+s+'"]'):n.eq(s)).addClass(i.slideActiveClass),i.loop&&(t.hasClass(i.slideDuplicateClass)?r.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+o+'"]').addClass(i.slideDuplicateActiveClass):r.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+o+'"]').addClass(i.slideDuplicateActiveClass));var l=t.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=n.eq(0)).addClass(i.slideNextClass);var c=t.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===c.length&&(c=n.eq(-1)).addClass(i.slidePrevClass),i.loop&&(l.hasClass(i.slideDuplicateClass)?r.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):r.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),c.hasClass(i.slideDuplicateClass)?r.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):r.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(t){var e,n=this,i=n.rtlTranslate?n.translate:-n.translate,r=n.slidesGrid,s=n.snapGrid,o=n.params,a=n.activeIndex,l=n.realIndex,c=n.snapIndex,u=t;if(void 0===u){for(var h=0;h<r.length;h+=1)void 0!==r[h+1]?i>
1=r[h]&&i<r[h+1]-(r[h+1]-r[h])/2?u=h:i>=r[h]&&i<r[h+1]&&(u=h+1):i>=r[h]&&(u=h);o.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if(s.indexOf(i)>=0)e=s.indexOf(i);else{var d=Math.min(o.slidesPerGroupSkip,u);e=d+Math.floor((u-d)/o.slidesPerGroup)}if(e>=s.length&&(e=s.length-1),u!==a){var p=parseInt(n.slides.eq(u).attr("data-swiper-slide-index")||u,10);Lg(n,{snapIndex:e,realIndex:p,previousIndex:a,activeIndex:u}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==p&&n.emit("realIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&n.emit("slideChange")}else e!==c&&(n.snapIndex=e,n.emit("snapIndexChange"))},updateClickedSlide:function(t){var e,n=this,i=n.params,r=Ig(t.target).closest("."+i.slideClass)[0],s=!1;if(r)for(var o=0;o<n.slides.length;o+=1)if(n.slides[o]===r){s=!0,e=o;break}if(!r||!s)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=r,n.clickedIndex=n.virtual&&n.params.virtual.enabled?parseInt(Ig(r).attr("data-swiper-slide-index"),10):e,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}},translate:{getTranslate:function(t){void 0===t&&(t=this.isHorizontal()?"x":"y");var e=this,n=e.params,i=e.rtlTranslate,r=e.translate;if(n.virtualTranslate)return i?-r:r;if(n.cssMode)return r;var s=function(t,e){void 0===e&&(e="x");var n,i,r,s=gg(),o=function(t){var e,n=gg();return n.getComputedStyle&&(e=n.getComputedStyle(t,null)),!e&&t.currentStyle&&(e=t.currentStyle),e||(e=t.style),e}(t);return s.WebKitCSSMatrix?((i=o.transform||o.webkitTransform).split(",").length>6&&(i=i.split(", ").map(function(t){return t.replace(",",".")}).join(", ")),r=new s.WebKitCSSMatrix("none"===i?"":i)):n=(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===e&&(i=s.WebKitCSSMatrix?r.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===e&&(i=s.WebKitCSSMatrix?r.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),i||0}(e.$wrapperEl[0],t);return i&&(s=-s),s||0},setTranslate:function(t,e){var n=this,i=n.rtlTranslate,r=n.params,s=n.$wrapperEl,o=n.wrapperEl,a=n.progress,l=0,c=0;n.isHorizontal()?l=i?-t:t:c=t,r.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),r.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:r.virtualTranslate||s.transform("translate3d("+l+"px, "+c+"px, 0px)"),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c;var u=n.maxTranslate()-n.minTranslate();(0===u?0:(t-n.minTranslate())/u)!==a&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t,e,n,i,r){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0),void 0===i&&(i=!0);var s=this,o=s.params,a=s.wrapperEl;if(s.animating&&o.preventInteractionOnTransition)return!1;var l,c=s.minTranslate(),u=s.maxTranslate();if(s.updateProgress(l=i&&t>c?c:i&&t<u?u:t),o.cssMode){var h,d=s.isHorizontal();return 0===e?a[d?"scrollLeft":"scrollTop"]=-l:a.scrollTo?a.scrollTo(((h={})[d?"left":"top"]=-l,h.behavior="smooth",h)):a[d?"scrollLeft":"scrollTop"]=-l,!0}return 0===e?(s.setTransition(0),s.setTranslate(l),n&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(l),n&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(t){s&&!s.destroyed&&t.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,n&&s.emit("transitionEnd"))}),s.$wrapperEl[0].addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(t,e){var n=this;n.params.cssMode||n.$wrapperEl.transition(t),n.emit("setTransition",t,e)},transitionStart:function(t,e){void 0===t&&(t=!0);var n=this,i=n.activeIndex,r=n.params,s=n.previousIndex;if(!r.cssMode){r.autoHeight&&n.updateAutoHeight();var o=e;if(o||(o=i>s?"next":i<s?"prev":"reset"),n.emit("transitionStart"),t&&i!==s){if("reset"===o)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),n.emit("next"===o?"slideNextTransitionStart":"slidePrevTransitionStart")}}},transitionEnd:function(t,e){void 0===t&&(t=!0);var n=this,i=n.activeIndex,r=n.previousIndex,s=n.params;if(n.animating=!1,!s.cssMode){n.setTransition(0);var o=e;if(o||(o=i>r?"next":i<r?"prev":"reset"),n.emit("transitionEnd"),t&&i!==r){if("reset"===o)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),n.emit("next"===o?"slideNextTransitionEnd":"slidePrevTransitionEnd")}}}},slide:{slideTo:function(t,e,n,i,r){if(void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0),"number"!=typeof t&&"string"!=typeof t)throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. ["+typeof t+"] given.");if("string"==typeof t){var s=parseInt(t,10);if(!isFinite(s))throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. ["+t+"] given.");t=s}var o=this,a=t;a<0&&(a=0);var l=o.params,c=o.snapGrid,u=o.slidesGrid,h=o.previousIndex,d=o.activeIndex,p=o.rtlTranslate,m=o.wrapperEl;if(o.animating&&l.preventInteractionOnTransition||!o.enabled&&!i&&!r)return!1;var g=Math.min(o.params.slidesPerGroupSkip,a),f=g+Math.floor((a-g)/o.params.slidesPerGroup);f>=c.length&&(f=c.length-1),(d||l.initialSlide||0)===(h||0)&&n&&o.emit("beforeSlideChangeStart");var _,v=-c[f];
1if(o.updateProgress(v),l.normalizeSlideIndex)for(var y=0;y<u.length;y+=1){var x=-Math.floor(100*v),b=Math.floor(100*u[y]),w=Math.floor(100*u[y+1]);void 0!==u[y+1]?x>=b&&x<w-(w-b)/2?a=y:x>=b&&x<w&&(a=y+1):x>=b&&(a=y)}if(o.initialized&&a!==d){if(!o.allowSlideNext&&v<o.translate&&v<o.minTranslate())return!1;if(!o.allowSlidePrev&&v>o.translate&&v>o.maxTranslate()&&(d||0)!==a)return!1}if(_=a>d?"next":a<d?"prev":"reset",p&&-v===o.translate||!p&&v===o.translate)return o.updateActiveIndex(a),l.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==l.effect&&o.setTranslate(v),"reset"!==_&&(o.transitionStart(n,_),o.transitionEnd(n,_)),!1;if(l.cssMode){var C,P=o.isHorizontal(),M=-v;return p&&(M=m.scrollWidth-m.offsetWidth-M),0===e?m[P?"scrollLeft":"scrollTop"]=M:m.scrollTo?m.scrollTo(((C={})[P?"left":"top"]=M,C.behavior="smooth",C)):m[P?"scrollLeft":"scrollTop"]=M,!0}return 0===e?(o.setTransition(0),o.setTranslate(v),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,i),o.transitionStart(n,_),o.transitionEnd(n,_)):(o.setTransition(e),o.setTranslate(v),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,i),o.transitionStart(n,_),o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,_))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0);var r=this,s=t;return r.params.loop&&(s+=r.loopedSlides),r.slideTo(s,e,n,i)},slideNext:function(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var i=this,r=i.params;if(!i.enabled)return i;var s=i.activeIndex<r.slidesPerGroupSkip?1:r.slidesPerGroup;if(r.loop){if(i.animating&&r.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}return i.slideTo(i.activeIndex+s,t,e,n)},slidePrev:function(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var i=this,r=i.params,s=i.snapGrid,o=i.slidesGrid,a=i.rtlTranslate;if(!i.enabled)return i;if(r.loop){if(i.animating&&r.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}function l(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}var c,u=l(a?i.translate:-i.translate),h=s.map(function(t){return l(t)}),d=(h.indexOf(u),s[h.indexOf(u)-1]);
1return void 0===d&&r.cssMode&&s.forEach(function(t){!d&&u>=t&&(d=t)}),void 0!==d&&(c=o.indexOf(d))<0&&(c=i.activeIndex-1),i.slideTo(c,t,e,n)},slideReset:function(t,e,n){return void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),this.slideTo(this.activeIndex,t,e,n)},slideToClosest:function(t,e,n,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),void 0===i&&(i=.5);var r=this,s=r.activeIndex,o=Math.min(r.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[a]){var c=r.snapGrid[a];l-c>(r.snapGrid[a+1]-c)*i&&(s+=r.params.slidesPerGroup)}else{var u=r.snapGrid[a-1];l-u<=(r.snapGrid[a]-u)*i&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,t,e,n)},slideToClickedSlide:function(){var t,e=this,n=e.params,i=e.$wrapperEl,r="auto"===n.slidesPerView?e.slidesPerViewDynamic():n.slidesPerView,s=e.clickedIndex;if(n.loop){if(e.animating)return;t=parseInt(Ig(e.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?s<e.loopedSlides-r/2||s>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),s=i.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Ag(function(){e.slideTo(s)})):e.slideTo(s):s>e.slides.length-r?(e.loopFix(),s=i.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Ag(function(){e.slideTo(s)})):e.slideTo(s)}else e.slideTo(s)}},loop:{loopCreate:function(){var t=this,e=pg(),n=t.params,i=t.$wrapperEl;i.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var r=i.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var s=n.slidesPerGroup-r.length%n.slidesPerGroup;if(s!==n.slidesPerGroup){for(var o=0;o<s;o+=1){var a=Ig(e.createElement("div")).addClass(n.slideClass+" "+n.slideBlankClass);i.append(a)}r=i.children("."+n.slideClass)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=r.length),t.loopedSlides=Math.ceil(parseFloat(n.loopedSlides||n.slidesPerView,10)),t.loopedSlides+=n.loopAdditionalSlides,t.loopedSlides>r.length&&(t.loopedSlides=r.length);var l=[],c=[];r.each(function(e,n){var i=Ig(e);n<t.loopedSlides&&c.push(e),n<r.length&&n>=r.length-t.loopedSlides&&l.push(e),i.attr("data-swiper-slide-index",n)});for(var u=0;u<c.length;u+=1)i.append(Ig(c[u].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var h=l.length-1;h>=0;h-=1)i.prepend(Ig(l[h].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){var t=this;t.emit("beforeLoopFix");var e,n=t.activeIndex,i=t.slides,r=t.loopedSlides,s=t.allowSlidePrev,o=t.allowSlideNext,a=t.snapGrid,l=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var c=-a[n]-t.getTranslate();n<r?(e=i.length-3*r+n,t.slideTo(e+=r,0,!1,!0)&&0!==c&&t.setTranslate((l?-t.translate:t.translate)-c)):n>=i.length-r&&(e=-i.length+n+r,t.slideTo(e+=r,0,!1,!0)&&0!==c&&t.setTranslate((l?-t.translate:t.translate)-c)),t.allowSlidePrev=s,t.allowSlideNext=o,t.emit("loopFix")},loopDestroy:function(){var t=this,e=t.params,n=t.slides;t.$wrapperEl.children("."+e.slideClass+"."+e.slideDuplicateClass+",."+e.slideClass+"."+e.slideBlankClass).remove(),n.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(t){var e=this;if(!(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)){var n=e.el;n.style.cursor="move",n.style.cursor=t?"-webkit-grabbing":"-webkit-grab",n.style.cursor=t?"-moz-grabbin":"-moz-grab",n.style.cursor=t?"grabbing":"grab"}},unsetGrabCursor:function(){var t=this;t.support.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.el.style.cursor="")}},manipulation:{appendSlide:function(t){var e=this,n=e.$wrapperEl,i=e.params;if(i.loop&&e.loopDestroy(),"object"==typeof t&&"length"in t)for(var r=0;r<t.length;r+=1)t[r]&&n.append(t[r]);else n.append(t);i.loop&&e.loopCreate(),i.observer&&e.support.observer||e.update()},prependSlide:function(t){var e=this,n=e.params,i=e.$wrapperEl,r=e.activeIndex;n.loop&&e.loopDestroy();var s=r+1;if("object"==typeof t&&"length"in t){for(var o=0;o<t.length;o+=1)t[o]&&i.prepend(t[o]);s=r+t.length}else i.prepend(t);n.loop&&e.loopCreate(),n.observer&&e.support.observer||e.update(
1),e.slideTo(s,0,!1)},addSlide:function(t,e){var n=this,i=n.$wrapperEl,r=n.params,s=n.activeIndex;r.loop&&(s-=n.loopedSlides,n.loopDestroy(),n.slides=i.children("."+r.slideClass));var o=n.slides.length;if(t<=0)n.prependSlide(e);else if(t>=o)n.appendSlide(e);else{for(var a=s>t?s+1:s,l=[],c=o-1;c>=t;c-=1){var u=n.slides.eq(c);u.remove(),l.unshift(u)}if("object"==typeof e&&"length"in e){for(var h=0;h<e.length;h+=1)e[h]&&i.append(e[h]);a=s>t?s+e.length:s}else i.append(e);for(var d=0;d<l.length;d+=1)i.append(l[d]);r.loop&&n.loopCreate(),r.observer&&n.support.observer||n.update(),n.slideTo(r.loop?a+n.loopedSlides:a,0,!1)}},removeSlide:function(t){var e=this,n=e.params,i=e.$wrapperEl,r=e.activeIndex;n.loop&&(r-=e.loopedSlides,e.loopDestroy(),e.slides=i.children("."+n.slideClass));var s,o=r;if("object"==typeof t&&"length"in t){for(var a=0;a<t.length;a+=1)e.slides[s=t[a]]&&e.slides.eq(s).remove(),s<o&&(o-=1);o=Math.max(o,0)}else e.slides[s=t]&&e.slides.eq(s).remove(),s<o&&(o-=1),o=Math.max(o,0);n.loop&&e.loopCreate(),n.observer&&e.support.observer||e.update(),e.slideTo(n.loop?o+e.loopedSlides:o,0,!1)},removeAllSlides:function(){for(var t=[],e=0;e<this.slides.length;e+=1)t.push(e);this.removeSlide(t)}},events:{attachEvents:function(){var t=this,e=pg(),n=t.params,i=t.touchEvents,r=t.el,s=t.wrapperEl,o=t.device,a=t.support;t.onTouchStart=Gg.bind(t),t.onTouchMove=Zg.bind(t),t.onTouchEnd=Wg.bind(t),n.cssMode&&(t.onScroll=Kg.bind(t)),t.onClick=Qg.bind(t);var l=!!n.nested;if(!a.touch&&a.pointerEvents)r.addEventListener(i.start,t.onTouchStart,!1),e.addEventListener(i.move,t.onTouchMove,l),e.addEventListener(i.end,t.onTouchEnd,!1);else{if(a.touch){var c=!("touchstart"!==i.start||!a.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};r.addEventListener(i.start,t.onTouchStart,c),r.addEventListener(i.move,t.onTouchMove,a.passiveListener?{passive:!1,capture:l}:l),r.addEventListener(i.end,t.onTouchEnd,c),i.cancel&&r.addEventListener(i.cancel,t.onTouchEnd,c),Yg||(e.addEventListener("touchstart",Jg),Yg=!0)}(n.simulateTouch&&!o.ios&&!o.android||n.simulateTouch&&!a.touch&&o.ios)&&(r.addEventListener("mousedown",t.onTouchStart,!1),e.addEventListener("mousemove",t.onTouchMove,l),e.addEventListener("mouseup",t.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&r.addEventListener("click",t.onClick,!0),n.cssMode&&s.addEventListener("scroll",t.onScroll),t.on(n.updateOnWindowResize?o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate":"observerUpdate",Xg,!0)},detachEvents:function(){var t=this,e=pg(),n=t.params,i=t.touchEvents,r=t.el,s=t.wrapperEl,o=t.device,a=t.support,l=!!n.nested;if(!a.touch&&a.pointerEvents)r.removeEventListener(i.start,t.onTouchStart,!1),e.removeEventListener(i.move,t.onTouchMove,l),e.removeEventListener(i.end,t.onTouchEnd,!1);else{if(a.touch){var c=!("onTouchStart"!==i.start||!a.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};r.removeEventListener(i.start,t.onTouchStart,c),r.removeEventListener(i.move,t.onTouchMove,l),r.removeEventListener(i.end,t.onTouchEnd,c),i.cancel&&r.removeEventListener(i.cancel,t.onTouchEnd,c)}(n.simulateTouch&&!o.ios&&!o.android||n.simulateTouch&&!a.touch&&o.ios)&&(r.removeEventListener("mousedown",t.onTouchStart,!1),e.removeEventListener("mousemove",t.onTouchMove,l),e.removeEventListener("mouseup",t.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&r.removeEventListener("click",t.onClick,!0),n.cssMode&&s.removeEventListener("scroll",t.onScroll),t.off(o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Xg)}},breakpoints:{setBreakpoint:function(){var t=this,e=t.activeIndex,n=t.initialized,i=t.loopedSlides,r=void 0===i?0:i,s=t.params,o=t.$el,a=s.breakpoints;
1if(a&&(!a||0!==Object.keys(a).length)){var l=t.getBreakpoint(a,t.params.breakpointsBase,t.el);if(l&&t.currentBreakpoint!==l){var c=l in a?a[l]:void 0;c&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(function(t){var e=c[t];void 0!==e&&(c[t]="slidesPerView"!==t||"AUTO"!==e&&"auto"!==e?"slidesPerView"===t?parseFloat(e):parseInt(e,10):"auto")});var u=c||t.originalParams,h=s.slidesPerColumn>1,d=u.slidesPerColumn>1,p=s.enabled;h&&!d?(o.removeClass(s.containerModifierClass+"multirow "+s.containerModifierClass+"multirow-column"),t.emitContainerClasses()):!h&&d&&(o.addClass(s.containerModifierClass+"multirow"),"column"===u.slidesPerColumnFill&&o.addClass(s.containerModifierClass+"multirow-column"),t.emitContainerClasses());var m=u.direction&&u.direction!==s.direction,g=s.loop&&(u.slidesPerView!==s.slidesPerView||m);m&&n&&t.changeDirection(),Lg(t.params,u);var f=t.params.enabled;Lg(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!f?t.disable():!p&&f&&t.enable(),t.currentBreakpoint=l,t.emit("_beforeBreakpoint",u),g&&n&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-r+t.loopedSlides,0,!1)),t.emit("breakpoint",u)}}},getBreakpoint:function(t,e,n){if(void 0===e&&(e="window"),t&&("container"!==e||n)){var i=!1,r=gg(),s="window"===e?r.innerWidth:n.clientWidth,o="window"===e?r.innerHeight:n.clientHeight,a=Object.keys(t).map(function(t){if("string"==typeof t&&0===t.indexOf("@")){var e=parseFloat(t.substr(1));return{value:o*e,point:t}}return{value:t,point:t}});a.sort(function(t,e){return parseInt(t.value,10)-parseInt(e.value,10)});for(var l=0;l<a.length;l+=1){var c=a[l];c.value<=s&&(i=c.point)}return i||"max"}}},checkOverflow:{checkOverflow:function(){var t=this,e=t.params,n=t.isLocked,i=t.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(t.slides.length-1)+t.slides[0].offsetWidth*t.slides.length;t.isLocked=e.slidesOffsetBefore&&e.slidesOffsetAfter&&i?i<=t.size:1===t.snapGrid.length,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,n!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),n&&n!==t.isLocked&&(t.isEnd=!1,t.navigation&&t.navigation.update())}},classes:{addClasses:function(){var t,e,n=this,i=n.classNames,r=n.params,s=n.$el,o=n.device,a=n.support,l=(t=r.containerModifierClass,e=[],["initialized",r.direction,{"pointer-events":a.pointerEvents&&!a.touch},{"free-mode":r.freeMode},{autoheight:r.autoHeight},{rtl:n.rtl},{multirow:r.slidesPerColumn>1},{"multirow-column":r.slidesPerColumn>1&&"column"===r.slidesPerColumnFill},{android:o.android},{ios:o.ios},{"css-mode":r.cssMode}].forEach(function(n){"object"==typeof n?Object.keys(n).forEach(function(i){n[i]&&e.push(t+i)}):"string"==typeof n&&e.push(t+n)}),e);i.push.apply(i,l),s.addClass([].concat(i).join(" ")),n.emitContainerClasses()},removeClasses:function(){var t=this;t.$el.removeClass(t.classNames.join(" ")),t.emitContainerClasses()}},images:{loadImage:function(t,e,n,i,r,s){var o,a=gg();function l(){s&&s()}Ig(t).parent("picture")[0]||t.complete&&r?l():e?((o=new a.Image).onload=l,o.onerror=l,i&&(o.sizes=i),n&&(o.srcset=n),e&&(o.src=e)):l()},preloadImages:function(){var t=this;function e(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(var n=0;n<t.imagesToLoad.length;n+=1){var i=t.imagesToLoad[n];t.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,e)}}}},rf={},sf=function(){function t(){for(var e,n,i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];if(1===r.length&&r[0].constructor&&"Object"===Object.prototype.toString.call(r[0]).slice(8,-1)?n=r[0]:(e=r[0],n=r[1]),n||(n={}),n=Lg({},n),e&&!n.el&&(n.el=e),n.el&&Ig(n.el).length>1){var o=[];return Ig(n.el).each(function(e){var i=Lg({},n,{el:e});o.push(new t(i))}),o}var a=this;a.__swiper__=!0,a.support=Ng(),a.device=Ug({userAgent:n.userAgent}),a.browser=Hg(),a.eventsListeners={},a.eventsAnyListeners=[],void 0===a.modules&&(a.modules={}
1),Object.keys(a.modules).forEach(function(t){var e=a.modules[t];if(e.params){var i=Object.keys(e.params)[0],r=e.params[i];if("object"!=typeof r||null===r)return;if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&!0===n[i]&&(n[i]={auto:!0}),!(i in n)||!("enabled"in r))return;!0===n[i]&&(n[i]={enabled:!0}),"object"!=typeof n[i]||"enabled"in n[i]||(n[i].enabled=!0),n[i]||(n[i]={enabled:!1})}});var l,c,u=Lg({},tf);return a.useParams(u),a.params=Lg({},u,rf,n),a.originalParams=Lg({},a.params),a.passedParams=Lg({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach(function(t){a.on(t,a.params.on[t])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),a.$=Ig,Lg(a,{enabled:a.params.enabled,el:e,classNames:[],slides:Ig(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===a.params.direction},isVertical:function(){return"vertical"===a.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEvents:(l=["touchstart","touchmove","touchend","touchcancel"],c=["mousedown","mousemove","mouseup"],a.support.pointerEvents&&(c=["pointerdown","pointermove","pointerup"]),a.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},a.touchEventsDesktop={start:c[0],move:c[1],end:c[2]},a.support.touch||!a.params.simulateTouch?a.touchEventsTouch:a.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:zg(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.useModules(),a.emit("_swiper"),a.params.init&&a.init(),a}var e,n,i=t.prototype;return i.enable=function(){var t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))},i.disable=function(){var t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))},i.setProgress=function(t,e){var n=this;t=Math.min(Math.max(t,0),1);var i=n.minTranslate(),r=n.maxTranslate();n.translateTo((r-i)*t+i,void 0===e?0:e),n.updateActiveIndex(),n.updateSlidesClasses()},i.emitContainerClasses=function(){var t=this;if(t.params._emitClasses&&t.el){var e=t.el.className.split(" ").filter(function(e){return 0===e.indexOf("swiper-container")||0===e.indexOf(t.params.containerModifierClass)});t.emit("_containerClasses",e.join(" "))}},i.getSlideClasses=function(t){var e=this;return t.className.split(" ").filter(function(t){return 0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass)}).join(" ")},i.emitSlidesClasses=function(){var t=this;if(t.params._emitClasses&&t.el){var e=[];t.slides.each(function(n){var i=t.getSlideClasses(n);e.push({slideEl:n,classNames:i}),t.emit("_slideClass",n,i)}),t.emit("_slideClasses",e)}},i.slidesPerViewDynamic=function(){var t=this,e=t.slides,n=t.slidesGrid,i=t.size,r=t.activeIndex,s=1;if(t.params.centeredSlides){for(var o,a=e[r].swiperSlideSize,l=r+1;l<e.length;l+=1)e[l]&&!o&&(s+=1,(a+=e[l].swiperSlideSize)>i&&(o=!0));for(var c=r-1;c>=0;c-=1)e[c]&&!o&&(s+=1,(a+=e[c].swiperSlideSize)>i&&(o=!0))}else for(var u=r+1;u<e.length;u+=1)n[u]-n[r]<i&&(s+=1);return s},i.update=function(){var t=this;if(t&&!t.destroyed){var e=t.snapGrid,n=t.params;n.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode?(i(),t.params.autoHeight&&t.updateAutoHeight()):t.slideTo(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slides.length-1:t.activeIndex,0,!1,!0)||i(),n.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}function i(){var e=Math.min(Math.max(t.rtlTranslate?-1*t.translate:t.translate,t.maxTranslate()),t.minTranslate());t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()}},i.changeDirection=function(t,e){void 0===e&&(e=!0);var n=this,i=n.params.direction;return t||(t="horizontal"===i?"vertical":"horizontal"),t===i||"horizontal"!==t&&"vertical"!==t||(n.$el.removeClass(""+n.params.containerModifierClass+i).addClass(""+n.params.containerModifierClass+t),n.emitContainerClasses(),n.params.direction=t,n.slides.each(function(e){"vertical"===t?e.style.width="":e.style.height=""}),n.emit("changeDirection"),e&&n.update()),n},i.mount=function(t){var e=this;if(e.mounted)return!0;var n=Ig(t||e.params.el);if(!(t=n[0]))return!1;t.swiper=e;var i=function(){if(t&&t.shadowRoot&&t.shadowRoot.querySelector){var i=Ig(t.shadowRoot.querySelector("."+e.params.wrapperClass));return i.children=function(t){return n.children(t)},i}return n.children("."+e.params.wrapperClass)}();if(0===i.length&&e.params.createElements){var r=pg().createElement("div");i=Ig(r),r.className=e.params.wrapperClass,n.append(r),n.children("."+e.params.slideClass).each(function(t){i.append(t)})}return Lg(e,{$el:n,el:t,$wrapperEl:i,wrapperEl:i[0],mounted:!0,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===n.css("direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===n.css("direction")),wrongRTL:"-webkit-box"===i.css("display")}),!0},i.init=function(t){var e=this;return e.initialized||!1===e.mount(t)||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(
1),e.params.preloadImages&&e.preloadImages(),e.slideTo(e.params.loop?e.params.initialSlide+e.loopedSlides:e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.attachEvents(),e.initialized=!0,e.emit("init"),e.emit("afterInit")),e},i.destroy=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);var n,i=this,r=i.params,s=i.$el,o=i.$wrapperEl,a=i.slides;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),r.loop&&i.loopDestroy(),e&&(i.removeClasses(),s.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(function(t){i.off(t)}),!1!==t&&(i.$el[0].swiper=null,n=i,Object.keys(n).forEach(function(t){try{n[t]=null}catch(e){}try{delete n[t]}catch(e){}})),i.destroyed=!0),null},t.extendDefaults=function(t){Lg(rf,t)},t.installModule=function(e){t.prototype.modules||(t.prototype.modules={});var n=e.name||Object.keys(t.prototype.modules).length+"_"+zg();t.prototype.modules[n]=e},t.use=function(e){return Array.isArray(e)?(e.forEach(function(e){return t.installModule(e)}),t):(t.installModule(e),t)},e=t,(n=[{key:"extendedDefaults",get:function(){return rf}},{key:"defaults",get:function(){return tf}}])&&ef(e,n),t}();Object.keys(nf).forEach(function(t){Object.keys(nf[t]).forEach(function(e){sf.prototype[e]=nf[t][e]})}),sf.use([jg,qg]);var of=sf;const af=["prevElRef"],lf=["nextElRef"],cf=["scrollbarElRef"],uf=["paginationElRef"];function hf(t,e){1&t&&(ko(0),So(1,"div",6,7),So(3,"div",8,9),To())}function df(t,e){1&t&&So(0,"div",10,11)}function pf(t,e){1&t&&So(0,"div",12,13)}function mf(t,e){}function gf(t,e){1&t&&xo(0,mf,0,0,"ng-template")}function ff(t,e){}function _f(t,e){1&t&&xo(0,ff,0,0,"ng-template")}function vf(t,e){}function yf(t,e){1&t&&xo(0,vf,0,0,"ng-template")}function xf(t,e){}const bf=function(t){return{$implicit:t}};function wf(t,e){if(1&t&&(Mo(0,"div",3),xo(1,xf,0,0,"ng-template",18),Oo()),2&t){const t=Bo().$implicit;Co("ngClass",Bo(2).zoomContainerClass),Qr(1),Co("ngTemplateOutlet",t.template)("ngTemplateOutletContext",Il(3,bf,t.slideData))}}function Cf(t,e){}function Pf(t,e){if(1&t&&(ko(0),xo(1,Cf,0,0,"ng-template",18),To()),2&t){const t=Bo().$implicit;Qr(1),Co("ngTemplateOutlet",t.template)("ngTemplateOutletContext",Il(2,bf,t.slideData))}}function Mf(t,e){if(1&t&&(Mo(0,"div",15),xo(1,wf,2,5,"div",16),xo(2,Pf,2,4,"ng-container",17),Oo()),2&t){const t=e.$implicit,n=Bo().key,i=Bo();Jo(i.style),Co("ngClass",(t.class?t.class+" ":"")+i.slideClass+(""!==n?" "+i.slideDuplicateClass:""))("ngSwitch",t.zoom),yo("data-swiper-slide-index",t.virtualIndex?t.virtualIndex:t.slideIndex),Qr(1),Co("ngSwitchCase",!0)}}function Of(t,e){1&t&&(xo(0,Mf,3,6,"div",14),Bl(1,"async")),2&t&&Co("ngForOf",function(t,e,n){const i=Ee(),r=xe(i,21);return Hl(i,Ul(i,21)?Rl(i,Ue(),1,r.transform,n,r):r.transform(n))}(0,0,e.loopSlides))}const Sf=[[["","slot","container-start"]],[["","slot","wrapper-start"]],[["","slot","wrapper-end"]],[["","slot","container-end"]]],kf=function(t,e){return[t,e]},Tf=function(t){return{loopSlides:t,key:"prepend"}},Ef=function(t){return{loopSlides:t,key:""}},If=function(t){return{loopSlides:t,key:"append"}},Af=["[slot=container-start]","[slot=wrapper-start]","[slot=wrapper-end]","[slot=container-end]"];function zf(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function Df(t,e,n){return!0===Rf(t)&&e&&!e.el||!("boolean"!=typeof e&&e.el!==(null==n?void 0:n.nativeElement)&&("string"==typeof e.el||"object"==typeof e.el))}function Lf(t,e){const n=["__proto__","constructor","prototype"];Object.keys(e).filter(t=>n.indexOf(t)<0).forEach(n=>{void 0!==t[n]?t[n]&&!e[n]||(zf(e[n])&&zf(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:Lf(t[n],e[n]):t[n]=e[n]):t[n]=e[n]})}function Rf(t){return null!=t&&"false"!=`${t}`}const Ff=["pagination","navigation","scrollbar","virtual"];function Bf(t,e={}){return zf(t)?t:!0===Rf(t)&&e}const Nf=["init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_freeModeMomentum","_freeModeMomentumRatio","_freeModeMomentumBounce","_freeModeMomentumBounceRatio","_freeModeMomentumVelocityRatio","_freeModeSticky","_freeModeMinimumVelocity","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","_slidesPerColumn","_slidesPerColumnFill","_slidesPerGroup","_slidesPerGroupSkip","_centeredSlides","_centeredSlidesB
1ounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_watchSlidesVisibility","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopFillGroupWithBlank","loopPreventsSlide","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"].map(t=>t.replace(/_/,""));function Uf(t={}){const e={on:{}},n={};Lf(e,of.defaults),Lf(e,of.extendedDefaults),e._emitClasses=!0;const i={};return Object.keys(t).forEach(r=>{const s=r.replace(/^_/,"");void 0!==t[s]&&(Nf.indexOf(s)>=0?zf(t[s])?(e[s]={},n[s]={},Lf(e[s],t[s]),Lf(n[s],t[s])):(e[s]=t[s],n[s]=t[s]):i[s]=t[s])}),{params:e,passedParams:n,rest:i}}let Hf=(()=>{class t{constructor(t){this.template=t,this.class="",this.slideData={isActive:!1,isPrev:!1,isNext:!1,isVisible:!1,isDuplicate:!1}}set zoom(t){this._zoom=Rf(t)}get zoom(){return this._zoom}get classNames(){return this._classNames}set classNames(t){this._classNames!==t&&(this._classNames=t,this.slideData={isActive:this._hasClass(["swiper-slide-active","swiper-slide-duplicate-active"]),isVisible:this._hasClass(["swiper-slide-visible"]),isDuplicate:this._hasClass(["swiper-slide-duplicate"]),isPrev:this._hasClass(["swiper-slide-prev","swiper-slide-duplicate-prev"]),isNext:this._hasClass(["swiper-slide-next","swiper-slide-duplicate-next"])})}_hasClass(t){return t.some(t=>this._classNames.indexOf(t)>=0)}}return t.\u0275fac=function(e){return new(e||t)(wo(ll))},t.\u0275dir=Gt({type:t,selectors:[["ng-template","swiperSlide",""]],inputs:{class:"class",zoom:"zoom",virtualIndex:"virtualIndex"}}),t})(),jf=(()=>{class t{constructor(t,e,n,i){this._ngZone=t,this.elementRef=e,this._changeDetectorRef=n,this._platformId=i,this.slideClass="swiper-slide",this.wrapperClass="swiper-wrapper",this.showNavigation=!0,this.showPagination=!0,this.showScrollbar=!0,this.s__beforeBreakpoint=new Vl,this.s__containerClasses=new Vl,this.s__slideClass=new Vl,this.s__swiper=new Vl,this.s_activeIndexChange=new Vl,this.s_afterInit=new Vl,this.s_autoplay=new Vl,this.s_autoplayStart=new Vl,this.s_autoplayStop=new Vl,this.s_beforeDestroy=new Vl,this.s_beforeInit=new Vl,this.s_beforeLoopFix=new Vl,this.s_beforeResize=new Vl,this.s_beforeSlideChangeStart=new Vl,this.s_beforeTransitionStart=new Vl,this.s_breakpoint=new Vl,this.s_changeDirection=new Vl,this.s_click=new Vl,this.s_doubleTap=new Vl,this.s_doubleClick=new Vl,this.s_destroy=new Vl,this.s_fromEdge=new Vl,this.s_hashChange=new Vl,this.s_hashSet=new Vl,this.s_imagesReady=new Vl,this.s_init=new Vl,this.s_keyPress=new Vl,this.s_lazyImageLoad=new Vl,this.s_lazyImageReady=new Vl,this.s_loopFix=new Vl,this.s_momentumBounce=new Vl,this.s_navigationHide=new Vl,this.s_navigationShow=new Vl,this.s_observerUpdate=new Vl,this.s_orientationchange=new Vl,this.s_paginationHide=new Vl,this.s_paginationRender=new Vl,this.s_paginationShow=new Vl,this.s_paginationUpdate=new Vl,this.s_progress=new Vl,this.s_reachBeginning=new Vl,this.s_reachEnd=new Vl,this.s_realIndexChange=new Vl,this.s_resize=new Vl,this.s_scroll=new Vl,this.s_scrollbarDragEnd=new Vl,this.s_scrollbarDragMove=new Vl,this.s_scrollbarDragStart=new Vl,this.s_setTransition=new Vl,this.s_setTranslate=new Vl,this.s_slideChange=new Vl,this.s_slideChangeTransitionEnd=new Vl,this.s_slideChangeTransitionStart=new Vl,this.s_slideNextTransitionEnd=new Vl,this.s_slideNextTransitionStart=new Vl,this.s_slidePrevTransitionEnd=new Vl,this.s_slidePrevTransitionStart=new Vl,this.s_slideResetTransitionStart=new Vl,this.s_slideResetTransitionEnd=new Vl,this.s_sliderMove=new Vl,this.s_sliderFirstMove=new Vl,this.s_slidesLengthChange=new Vl,this.s_slidesGridLengthChange=new Vl,this.s_snapGridLengthChange=new Vl,this.s_snapIndexChange=new Vl,this.s_tap=new Vl,this.s_toEdge=new Vl,this.s_touchEnd=new Vl,this.s_touchMove=new Vl,this.s_touchMoveOpposite=new Vl,this.s_touchStart=new Vl,this.s_transitionEnd=new Vl,this.s_transitionStart=new Vl,this.s_update=new Vl,this.s_zoomChange=new Vl,this.s_swiper=new Vl,this.indexChange=new Vl,this._activeSlides=new C,this.containerClasses="swiper-container",this.slidesChanges=t=>{this.slides=t.map((t,e)=>(t.slideIndex=e,t.classNames=this.slideClass,t)),this.loop&&!this.loopedSlides&&this.calcLoopedSlides(),this.virtual?this.swiperRef&&this.swiperRef.virtual&&this._ngZone.runOutsideAngular(()=>{this.swiperRef.virtual.slides=this.slides,this.swiperRef.virtual.update(!0)}):(this.prependSlides=bm(this.slides.slice(this.slides.length-this.loopedSlides)),this.appendSlides=bm(this.slides.slice(0,this.loopedSlides))),this._changeDetectorRef.detectChanges()},this.style=null,this.updateVirtualSlides=t=>{!this.swiperRef||this.currentVirtualData&&this.currentVirtualData.from===t.from&&this.currentVirtualData.to===t.to&&this.currentVirtualData.offset===t.offset||(this.style=this.swiperRef.isHorizontal()?{[this.swiperRef.rtlTranslate?"right":"left"]:`${t.offset}px`}:{top:`${t.offset}px`},this.currentVirtualData=t,this._activeSlides.next(t.slides),this._ngZone.run(()=>{this._changeDetectorRef.detectChanges()}),this._ngZone.runOutsideAngular(()=>{this.swiperRef.updateSlides(),this.swiperRef.updateProgress(),this.swiperRef.updateSlidesClasses(),this.swiperRef.lazy&&this.swiperRef.params.lazy.enabled&&this.swiperRef.lazy.load(),this.swiperRef.virtual.update(!0)}))}}set navigation(t){var e,n,i;const r="boolean"!=typeof this._navigation?null===(e=this._navigation)||void 0===e?void 0:e.nextEl:null,s="boolean"!=typeof this._navigation?null===(n=this._navigation)||void 0===n?void 0:n.prevEl:null;this._navigation=Bf(t,{nextEl:r||null,prevEl:s||null}),this.showNavigation=!(!0!==Rf(t)||this._navigation&&"boolean"!=typeof this._navigation&&this._navigation.prevEl!==(null===(i=this._prevElRef)||void 0===i?void 0:i.nativeElement)&&(null!==this._navigation.prevEl||null!==this._navigation.nextEl)&&("string"==typeof this._navigation.nextEl||"string"==typeof this._navigation.prevEl||"object"==typeof this._navigation.nextEl||"object"==typeof this._navigation.prevEl))}get navigation(){return this._navigation}set pagination(t){var e;const n="boolean"!=typeof this._pagination?null===(e=this._pagination)||void 0===e?void 0:e.el:null;this._pagination=Bf(t,{el:n||null}),this.showPagination=Df(t,this._pagination,this._paginationElRef)}get pagination(){return this._pagination}set scrollbar(t){var e;const n="boolean"!=typeof this._scrollbar?null===(e=this._scrollbar)||void 0===e?void 0:e.el:null;
1this._scrollbar=Bf(t,{el:n||null}),this.showScrollbar=Df(t,this._scrollbar,this._scrollbarElRef)}get scrollbar(){return this._scrollbar}set virtual(t){this._virtual=Bf(t)}get virtual(){return this._virtual}set index(t){this.setIndex(t)}set config(t){this.updateSwiper(t);const{params:e}=Uf(t);Object.assign(this,e)}set prevElRef(t){this._prevElRef=t,this._setElement(t,this.navigation,"navigation","prevEl")}set nextElRef(t){this._nextElRef=t,this._setElement(t,this.navigation,"navigation","nextEl")}set scrollbarElRef(t){this._scrollbarElRef=t,this._setElement(t,this.scrollbar,"scrollbar")}set paginationElRef(t){this._paginationElRef=t,this._setElement(t,this.pagination,"pagination")}get activeSlides(){return this.virtual?this._activeSlides:bm(this.slides)}get zoomContainerClass(){return"boolean"!=typeof this.zoom?this.zoom.containerClass:"swiper-zoom-container"}_setElement(t,e,n,i="el"){if(!t||!e)return;if(e&&t.nativeElement){if(e[i]===t.nativeElement)return;e[i]=t.nativeElement}const r={};r[n]=!0,this.updateInitSwiper(r)}ngOnInit(){const{params:t}=Uf(this);Object.assign(this,t)}ngAfterViewInit(){this.childrenSlidesInit(),this.initSwiper(),this._changeDetectorRef.detectChanges(),setTimeout(()=>{this.s_swiper.emit(this.swiperRef)})}childrenSlidesInit(){this.slidesChanges(this.slidesEl),this.slidesEl.changes.subscribe(this.slidesChanges)}get isSwiperActive(){return this.swiperRef&&!this.swiperRef.destroyed}initSwiper(){const{params:t}=Uf(this);Object.assign(this,t),this._ngZone.runOutsideAngular(()=>{t.init=!1,t.virtual||(t.observer=!0),t.onAny=(t,...e)=>{const n=this[`s_${t}`];n&&n.emit(...e)},Object.assign(t.on,{_containerClasses(t,e){this.containerClasses=e},_slideClasses:(t,e)=>{e.forEach(({slideEl:t,classNames:e},n)=>{const i=parseInt(t.getAttribute("data-swiper-slide-index"))||n;if(this.virtual){const t=this.slides.find(t=>t.virtualIndex&&t.virtualIndex===i);if(t)return void(t.classNames=e)}this.slides[i]&&(this.slides[i].classNames=e)}),this._changeDetectorRef.detectChanges()}});const e=new of(t);if(e.loopCreate=()=>{},e.loopDestroy=()=>{},t.loop&&(e.loopedSlides=this.loopedSlides),e.virtual&&e.params.virtual.enabled){e.virtual.slides=this.slides;const t={cache:!1,renderExternal:this.updateVirtualSlides,renderExternalUpdate:!1};Lf(e.params.virtual,t),Lf(e.originalParams.virtual,t)}Wu(this._platformId)&&(this.swiperRef=e.init(this.elementRef.nativeElement),this.swiperRef.virtual&&this.swiperRef.params.virtual.enabled&&this.swiperRef.virtual.update(!0),this._changeDetectorRef.detectChanges(),e.on("slideChange",()=>{this.indexChange.emit(this.swiperRef.realIndex)}))})}ngOnChanges(t){this.updateSwiper(t),this._changeDetectorRef.detectChanges()}updateInitSwiper(t){t&&this.swiperRef&&!this.swiperRef.destroyed&&this._ngZone.runOutsideAngular(()=>{const{pagination:e,navigation:n,scrollbar:i,thumbs:r}=this.swiperRef;t.pagination&&(this.pagination&&"boolean"!=typeof this.pagination&&this.pagination.el&&e&&!e.el?(this.updateParameter("pagination",this.pagination),e.init(),e.render(),e.update()):(e.destroy(),e.el=null)),t.scrollbar&&(this.scrollbar&&"boolean"!=typeof this.scrollbar&&this.scrollbar.el&&i&&!i.el?(this.updateParameter("scrollbar",this.scrollbar),i.init(),i.updateSize(),i.setTranslate()):(i.destroy(),i.el=null)),t.navigation&&(this.navigation&&"boolean"!=typeof this.navigation&&this.navigation.prevEl&&this.navigation.nextEl&&n&&!n.prevEl&&!n.nextEl?(this.updateParameter("navigation",this.navigation),n.init(),n.update()):n.prevEl&&n.nextEl&&(n.destroy(),n.nextEl=null,n.prevEl=null)),t.thumbs&&this.thumbs&&this.thumbs.swiper&&(this.updateParameter("thumbs",this.thumbs),r.init()&&r.update(!0)),t.controller&&this.controller&&this.controller.control&&(this.swiperRef.controller.control=this.controller.control),this.swiperRef.update()})}updateSwiper(t){this._ngZone.runOutsideAngular(()=>{var e,n;if(!t.config&&t&&this.swiperRef&&!this.swiperRef.destroyed){for(const i in t){if(Ff.indexOf(i)>=0)continue;const r=null!==(n=null===(e=t[i])||void 0===e?void 0:e.currentValue)&&void 0!==n?n:t[i];this.updateParameter(i,r)}t.allowSlideNext&&(this.swiperRef.allowSlideNext=this.allowSlideNext),t.allowSlidePrev&&(this.swiperRef.allowSlidePrev=this.allowSlidePrev),t.direction&&this.swiperRef.changeDirection(this.direction,!1),t.breakpoints&&(this.loop&&!this.loopedSlides&&this.calcLoopedSlides(),this.swiperRef.currentBreakpoint=null,this.swiperRef.setBreakpoint()),(t.thumbs||t.controller)&&this.updateInitSwiper(t),this.swiperRef.update(
1)}})}calcLoopedSlides(){if(!this.loop)return;let t=this.slidesPerView;if(this.breakpoints){const e=of.prototype.getBreakpoint(this.breakpoints),n=e in this.breakpoints?this.breakpoints[e]:void 0;n&&n.slidesPerView&&(t=n.slidesPerView)}if("auto"===t)return this.loopedSlides=this.slides.length,this.slides.length;let e=this.loopedSlides||t;return e+=this.loopAdditionalSlides,e>this.slides.length&&(e=this.slides.length),this.loopedSlides=e,e}updateParameter(t,e){if(!this.swiperRef||this.swiperRef.destroyed)return;const n=t.replace(/^_/,""),i=zf(this.swiperRef.params[n]);if(Object.keys(this.swiperRef.modules).indexOf(n)>=0){const t=this.swiperRef.modules[n].params[n];i?Lf(this.swiperRef.params[n],t):this.swiperRef.params[n]=t}i&&zf(e)?Lf(this.swiperRef.params[n],e):this.swiperRef.params[n]=e}setIndex(t,e,n){this.isSwiperActive?t!==this.swiperRef.activeIndex&&this._ngZone.runOutsideAngular(()=>{this.loop?this.swiperRef.slideToLoop(t,e,!n):this.swiperRef.slideTo(t,e,!n)}):this.initialSlide=t}ngOnDestroy(){this._ngZone.runOutsideAngular(()=>{var t;null===(t=this.swiperRef)||void 0===t||t.destroy(!0,!1)})}}return t.\u0275fac=function(e){return new(e||t)(wo(Tc),wo(Ea),wo(nl),wo(mc))},t.\u0275cmp=Ut({type:t,selectors:[["swiper"],["","swiper",""]],contentQueries:function(t,e,n){if(1&t&&function(t,e,n,i){const r=Ie();if(r.firstCreatePass){const n=ze();sc(r,new Wl(e,5,void 0),n.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(r,t)}rc(r,Ee(),5)}(n,Hf),2&t){let t;ec(t=ic())&&(e.slidesEl=t)}},viewQuery:function(t,e){if(1&t&&(nc(af,1),nc(lf,1),nc(cf,1),nc(uf,1)),2&t){let t;ec(t=ic())&&(e.prevElRef=t.first),ec(t=ic())&&(e.nextElRef=t.first),ec(t=ic())&&(e.scrollbarElRef=t.first),ec(t=ic())&&(e.paginationElRef=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&ea(e.containerClasses)},inputs:{slideClass:"slideClass",wrapperClass:"wrapperClass",navigation:"navigation",pagination:"pagination",scrollbar:"scrollbar",virtual:"virtual",index:"index",config:"config",loopedSlides:"loopedSlides",initialSlide:"initialSlide",direction:"direction",touchEventsTarget:"touchEventsTarget",speed:"speed",cssMode:"cssMode",updateOnWindowResize:"updateOnWindowResize",resizeObserver:"resizeObserver",nested:"nested",width:"width",height:"height",preventInteractionOnTransition:"preventInteractionOnTransition",userAgent:"userAgent",url:"url",edgeSwipeDetection:"edgeSwipeDetection",edgeSwipeThreshold:"edgeSwipeThreshold",freeMode:"freeMode",freeModeMomentum:"freeModeMomentum",freeModeMomentumRatio:"freeModeMomentumRatio",freeModeMomentumBounce:"freeModeMomentumBounce",freeModeMomentumBounceRatio:"freeModeMomentumBounceRatio",freeModeMomentumVelocityRatio:"freeModeMomentumVelocityRatio",freeModeSticky:"freeModeSticky",freeModeMinimumVelocity:"freeModeMinimumVelocity",autoHeight:"autoHeight",setWrapperSize:"setWrapperSize",virtualTranslate:"virtualTranslate",effect:"effect",breakpoints:"breakpoints",spaceBetween:"spaceBetween",slidesPerView:"slidesPerView",slidesPerColumn:"slidesPerColumn",slidesPerColumnFill:"slidesPerColumnFill",slidesPerGroup:"slidesPerGroup",slidesPerGroupSkip:"slidesPerGroupSkip",centeredSlides:"centeredSlides",centeredSlidesBounds:"centeredSlidesBounds",slidesOffsetBefore:"slidesOffsetBefore",slidesOffsetAfter:"slidesOffsetAfter",normalizeSlideIndex:"normalizeSlideIndex",centerInsufficientSlides:"centerInsufficientSlides",watchOverflow:"watchOverflow",roundLengths:"roundLengths",touchRatio:"touchRatio",touchAngle:"touchAngle",simulateTouch:"simulateTouch",shortSwipes:"shortSwipes",longSwipes:"longSwipes",longSwipesRatio:"longSwipesRatio",longSwipesMs:"longSwipesMs",followFinger:"followFinger",allowTouchMove:"allowTouchMove",threshold:"threshold",touchMoveStopPropagation:"touchMoveStopPropagation",touchStartPreventDefault:"touchStartPreventDefault",touchStartForcePreventDefault:"touchStartForcePreventDefault",touchReleaseOnEdges:"touchReleaseOnEdges",uniqueNavElements:"uniqueNavElements",resistance:"resistance",resistanceRatio:"resistanceRatio",watchSlidesProgress:"watchSlidesProgress",watchSlidesVisibility:"watchSlidesVisibility",grabCursor:"grabCursor",preventClicks:"preventClicks",preventClicksPropagation:"preventClicksPropagation",slideToClickedSlide:"slideToClickedSlide",preloadImages:"preloadImages",updateOnImagesReady:"updateOnImagesReady",loop:"loop",loopAdditionalSlides:"loopAdditionalSlides",loopFillGroupWithBlank:"loopFillGroupWithBlank",loopPreventsSlide:"loopPreventsSlide",allowSlidePrev:"allowSlidePrev",allowSlideNext:"allowSlideNext",swipeHandler:"swipeHandler",noSwiping:"noSwiping",noSwipingClass:"noSwipingClass",noSwipingSelector:"noSwipingSelector",passiveListeners:"passiveListeners",containerModifierClass:"containerModifierClass",slideBlankClass:"slideBlankClass",slideActiveClass:"slideActiveClass",slideDuplicateActiveClass:"slideDuplicateActiveClass",slideVisibleClass:"slideVisibleClass",slideDuplicateClass:"slideDuplicateClass",slideNextClass:"slideNextClass",slideDuplicateNextClass:"slideDuplicateNextClass",slidePrevClass:"slidePrevClass",slideDuplicatePrevClass:"slideDuplicatePrevClass",runCallbacksOnInit:"runCallbacksOnInit",observeParents:"observeParents",observeSlideChildren:"observeSlideChildren",a11y:"a11y",auto
1play:"autoplay",controller:"controller",coverflowEffect:"coverflowEffect",cubeEffect:"cubeEffect",fadeEffect:"fadeEffect",flipEffect:"flipEffect",hashNavigation:"hashNavigation",history:"history",keyboard:"keyboard",lazy:"lazy",mousewheel:"mousewheel",parallax:"parallax",thumbs:"thumbs",zoom:"zoom",class:"class",id:"id"},outputs:{s__beforeBreakpoint:"_beforeBreakpoint",s__containerClasses:"_containerClasses",s__slideClass:"_slideClass",s__swiper:"_swiper",s_activeIndexChange:"activeIndexChange",s_afterInit:"afterInit",s_autoplay:"autoplay",s_autoplayStart:"autoplayStart",s_autoplayStop:"autoplayStop",s_beforeDestroy:"beforeDestroy",s_beforeInit:"beforeInit",s_beforeLoopFix:"beforeLoopFix",s_beforeResize:"beforeResize",s_beforeSlideChangeStart:"beforeSlideChangeStart",s_beforeTransitionStart:"beforeTransitionStart",s_breakpoint:"breakpoint",s_changeDirection:"changeDirection",s_click:"click",s_doubleTap:"doubleTap",s_doubleClick:"doubleClick",s_destroy:"destroy",s_fromEdge:"fromEdge",s_hashChange:"hashChange",s_hashSet:"hashSet",s_imagesReady:"imagesReady",s_init:"init",s_keyPress:"keyPress",s_lazyImageLoad:"lazyImageLoad",s_lazyImageReady:"lazyImageReady",s_loopFix:"loopFix",s_momentumBounce:"momentumBounce",s_navigationHide:"navigationHide",s_navigationShow:"navigationShow",s_observerUpdate:"observerUpdate",s_orientationchange:"orientationchange",s_paginationHide:"paginationHide",s_paginationRender:"paginationRender",s_paginationShow:"paginationShow",s_paginationUpdate:"paginationUpdate",s_progress:"progress",s_reachBeginning:"reachBeginning",s_reachEnd:"reachEnd",s_realIndexChange:"realIndexChange",s_resize:"resize",s_scroll:"scroll",s_scrollbarDragEnd:"scrollbarDragEnd",s_scrollbarDragMove:"scrollbarDragMove",s_scrollbarDragStart:"scrollbarDragStart",s_setTransition:"setTransition",s_setTranslate:"setTranslate",s_slideChange:"slideChange",s_slideChangeTransitionEnd:"slideChangeTransitionEnd",s_slideChangeTransitionStart:"slideChangeTransitionStart",s_slideNextTransitionEnd:"slideNextTransitionEnd",s_slideNextTransitionStart:"slideNextTransitionStart",s_slidePrevTransitionEnd:"slidePrevTransitionEnd",s_slidePrevTransitionStart:"slidePrevTransitionStart",s_slideResetTransitionStart:"slideResetTransitionStart",s_slideResetTransitionEnd:"slideResetTransitionEnd",s_sliderMove:"sliderMove",s_sliderFirstMove:"sliderFirstMove",s_slidesLengthChange:"slidesLengthChange",s_slidesGridLengthChange:"slidesGridLengthChange",s_snapGridLengthChange:"snapGridLengthChange",s_snapIndexChange:"snapIndexChange",s_tap:"tap",s_toEdge:"toEdge",s_touchEnd:"touchEnd",s_touchMove:"touchMove",s_touchMoveOpposite:"touchMoveOpposite",s_touchStart:"touchStart",s_transitionEnd:"transitionEnd",s_transitionStart:"transitionStart",s_update:"update",s_zoomChange:"zoomChange",s_swiper:"swiper",indexChange:"indexChange"},features:[oe],ngContentSelectors:Af,decls:13,vars:20,consts:[[4,"ngIf"],["class","swiper-scrollbar",4,"ngIf"],["class","swiper-pagination",4,"ngIf"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["slidesTemplate",""],[1,"swiper-button-prev"],["prevElRef",""],[1,"swiper-button-next"],["nextElRef",""],[1,"swiper-scrollbar"],["scrollbarElRef",""],[1,"swiper-pagination"],["paginationElRef",""],[3,"ngClass","style","ngSwitch",4,"ngFor","ngForOf"],[3,"ngClass","ngSwitch"],[3,"ngClass",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){if(1&t&&(Uo(Sf),Ho(0),xo(1,hf,5,0,"ng-container",0),xo(2,df,2,0,"div",1),xo(3,pf,2,0,"div",2),Mo(4,"div",3),Ho(5,1),xo(6,gf,1,0,void 0,4),xo(7,_f,1,0,void 0,4),xo(8,yf,1,0,void 0,4),Ho(9,2),Oo(),Ho(10,3),xo(11,Of,2,3,"ng-template",null,5,ac)),2&t){const t=bo(12);Qr(1),Co("ngIf",e.navigation&&e.showNavigation),Qr(1),Co("ngIf",e.scrollbar&&e.showScrollbar),Qr(1),Co("ngIf",e.pagination&&e.showPagination),Qr(1),Co("ngClass",Al(11,kf,e.wrapperClass,e.class).join(" ")),yo("id",e.id),Qr(2),Co("ngTemplateOutlet",t)("ngTemplateOutletContext",Il(14,Tf,e.prependSlides)),Qr(1),Co("ngTemplateOutlet",t)("ngTemplateOutletContext",Il(16,Ef,e.activeSlides)),Qr(1),Co("ngTemplateOutlet",t)("ngTemplateOutletContext",Il(18,If,e.appendSlides))}}
1,directives:[zu,Tu,Hu,Iu,Fu,Bu,Nu],pipes:[Gu],styles:["\n      swiper {\n        display: block;\n      }\n    "],encapsulation:2,changeDetection:0}),t})(),Vf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ct({imports:[[Zu]]}),t})();var $f=n("T7iU");function qf(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}class Gf extends C{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new x;return this._value}next(t){super.next(this._value=t)}}const Zf=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Wf=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})(),Xf=new v(t=>t.complete());function Qf(t){return t?function(t){return new v(e=>t.schedule(()=>e.complete()))}(t):Xf}function Kf(t){return e=>0===t?Qf():e.lift(new Yf(t))}class Yf{constructor(t){if(this.total=t,this.total<0)throw new Wf}call(t,e){return e.subscribe(new Jf(t,this.total))}}class Jf extends m{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function t_(t=null){return e=>e.lift(new e_(t))}class e_{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new n_(t,this.defaultValue))}}class n_ extends m{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function i_(t=o_){return e=>e.lift(new r_(t))}class r_{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new s_(t,this.errorFactory))}}class s_ extends m{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function o_(){return new Zf}function a_(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Cm((e,n)=>t(e,n,i)):_,Kf(1),n?t_(e):i_(()=>new Zf))}function l_(t,e){return"function"==typeof e?n=>n.pipe(l_((n,i)=>R(t(n,i)).pipe(O((t,r)=>e(n,t,i,r))))):e=>e.lift(new c_(t))}class c_{constructor(t){this.project=t}call(t,e){return e.subscribe(new u_(t,this.project))}}class u_ extends B{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new F(this),i=this.destination;i.add(n),this.innerSubscription=N(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const h_=["v"];class d_{create(t){return new $f(t.videoElement,t.options)}updateSource(t){t.plyr.source=t.source}destroy(t){t.plyr.destroy()}}let p_=(()=>{let t=class{constructor(t,e,n){this.elementRef=t,this.ngZone=e,this.renderer=n,this.playerChange=new Gf(null),this.events=new Map,this.plyrType="video",this.plyrInit=this.playerChange.pipe(Cm(t=>!!t)),this.plyrProgress=this.createLazyEvent("progress"),this.plyrPlaying=this.createLazyEvent("playing"),this.plyrPlay=this.createLazyEvent("play"),this.plyrPause=this.createLazyEvent("pause"),this.plyrTimeUpdate=this.createLazyEvent("timeupdate"),this.plyrVolumeChange=this.createLazyEvent("volumechange"),this.plyrSeeking=this.createLazyEvent("seeking"),this.plyrSeeked=this.createLazyEvent("seeked"),this.plyrRateChange=this.createLazyEvent("ratechange"),this.plyrEnded=this.createLazyEvent("ended"),this.plyrEnterFullScreen=this.createLazyEvent("enterfullscreen"),this.plyrExitFullScreen=this.createLazyEvent("exitfullscreen"),this.plyrCaptionsEnabled=this.createLazyEvent("captionsenabled"),this.plyrCaptionsDisabled=this.createLazyEvent("captionsdisabled"),this.plyrLanguageChange=this.createLazyEvent("languagechange"),this.plyrControlsHidden=this.createLazyEvent("controlshidden"),this.plyrControlsShown=this.createLazyEvent("controlsshown"),this.plyrReady=this.createLazyEvent("ready"),this.plyrLoadStart=this.createLazyEvent("loadstart"),this.plyrLoadedData=this.createLazyEvent("loadeddata"),this.plyrLoadedMetadata=this.createLazyEvent("loadedmetadata"),this.plyrQualityChange=this.createLazyEvent("qualitychange"),this.plyrCanPlay=this.createLazyEvent("canplay"),this.plyrCanPlayThrough=this.createLazyEvent("canplaythrough"),this.plyrStalled=this.createLazyEvent("stalled"),this.plyrWaiting=this.createLazyEvent("waiting"),this.plyrEmptied=this.createLazyEvent("emptied"),this.plyrCueChange=this.createLazyEvent("cuechange"),this.plyrError=this.createLazyEvent("error"),this.plyrStateChange=this.createLazyEvent("statechange"),this.subscriptions=[]}get player(){return this.playerChange.getValue()}ngOnChanges(t){this.subscriptions.push(this.plyrInit.pipe(a_()).subscribe(e=>{const n=[t.plyrOptions,t.plyrPlaysInline,t.plyrCrossOrigin].filter(t=>!!t);n.length?n.some(t=>!t.firstChange)&&this.initPlyr(!0):this.updatePlyrSource(e)}))}ngOnDestroy(){this.destroyPlayer(),this.subscriptions.forEach(t=>t.unsubscribe())}ngAfterViewInit(){this.initPlyr()}initPlyr(t=!1){!t&&this.player||this.ngZone.runOutsideAngular(()=>{this.destroyPlayer(),this.driver=this.plyrDriver||new d_,this.ensureVideoElement();const t=this.driver.create({videoElement:this.videoElement,options:this.plyrOptions});this.updatePlyrSource(t),this.playerChange.next(t)})}updatePlyrSource(t){this.driver.updateSource({videoElement:this.videoElement,plyr:t,source:{type:this.plyrType,title:this.plyrTitle,sources:this.plyrSources,poster:this.plyrPoster,tracks:this.plyrTracks}})}createLazyEvent(t){return this.plyrInit.pipe(l_(()=>new v(e=>this.on(t,t=>this.ngZone.run(()=>e.next(t))))))}destroyPlayer(){this.player&&(Array.from(this.events.keys()).forEac
1h(t=>this.off(t)),this.driver.destroy({plyr:this.player}),this.videoElement=null)}get hostElement(){return this.elementRef.nativeElement}ensureVideoElement(){const t=this.hostElement.querySelector("video");t?this.videoElement=t:(this.videoElement=this.renderer.createElement("video"),this.videoElement.controls=!0,this.plyrCrossOrigin&&this.videoElement.setAttribute("crossorigin",""),this.plyrPlaysInline&&this.videoElement.setAttribute("playsinline",""),this.renderer.appendChild(this.hostElement,this.videoElement))}on(t,e){this.events.set(t,e),this.player.on(t,e)}off(t){this.player.off(t,this.events.get(t)),this.events.delete(t)}};return t.\u0275fac=function(e){return new(e||t)(wo(Ea),wo(Tc),wo(za))},t.\u0275cmp=Ut({type:t,selectors:[["plyr"],["","plyr",""]],viewQuery:function(t,e){if(1&t&&nc(h_,1),2&t){let t;ec(t=ic())&&(e.vr=t.first)}},inputs:{plyrType:"plyrType",plyrDriver:"plyrDriver",plyrTitle:"plyrTitle",plyrPoster:"plyrPoster",plyrSources:"plyrSources",plyrTracks:"plyrTracks",plyrOptions:"plyrOptions",plyrCrossOrigin:"plyrCrossOrigin",plyrPlaysInline:"plyrPlaysInline"},outputs:{plyrInit:"plyrInit",plyrProgress:"plyrProgress",plyrPlaying:"plyrPlaying",plyrPlay:"plyrPlay",plyrPause:"plyrPause",plyrTimeUpdate:"plyrTimeUpdate",plyrVolumeChange:"plyrVolumeChange",plyrSeeking:"plyrSeeking",plyrSeeked:"plyrSeeked",plyrRateChange:"plyrRateChange",plyrEnded:"plyrEnded",plyrEnterFullScreen:"plyrEnterFullScreen",plyrExitFullScreen:"plyrExitFullScreen",plyrCaptionsEnabled:"plyrCaptionsEnabled",plyrCaptionsDisabled:"plyrCaptionsDisabled",plyrLanguageChange:"plyrLanguageChange",plyrControlsHidden:"plyrControlsHidden",plyrControlsShown:"plyrControlsShown",plyrReady:"plyrReady",plyrLoadStart:"plyrLoadStart",plyrLoadedData:"plyrLoadedData",plyrLoadedMetadata:"plyrLoadedMetadata",plyrQualityChange:"plyrQualityChange",plyrCanPlay:"plyrCanPlay",plyrCanPlayThrough:"plyrCanPlayThrough",plyrStalled:"plyrStalled",plyrWaiting:"plyrWaiting",plyrEmptied:"plyrEmptied",plyrCueChange:"plyrCueChange",plyrError:"plyrError",plyrStateChange:"plyrStateChange"},exportAs:["plyr"],features:[oe],decls:0,vars:0,template:function(t,e){},styles:[""]}),t=function(t,e,n,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}([qf("design:paramtypes",[Ea,Tc,za])],t),t})(),m_=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ct({}),t})();var g_,f_=[],__="ResizeObserver loop completed with undelivered notifications.";!function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(g_||(g_={}));var v_,y_=function(t){return Object.freeze(t)},x_=function(t,e){this.inlineSize=t,this.blockSize=e,y_(this)},b_=function(){function t(t,e,n,i){return this.x=t,this.y=e,this.width=n,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,y_(this)}return t.prototype.toJSON=function(){var t=this;return{x:t.x,y:t.y,top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),w_=function(t){return t instanceof SVGElement&&"getBBox"in t},C_=function(t){if(w_(t)){var e=t.getBBox();return!e.width&&!e.height}return!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},P_=function(t){var e,n;if(t instanceof Element)return!0;var i=null===(n=null===(e=t)||void 0===e?void 0:e.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(i&&t instanceof i.Element)},M_="undefined"!=typeof window?window:{},O_=new WeakMap,S_=/auto|scroll/,k_=/^tb|vertical/,T_=/msie|trident/i.test(M_.navigator&&M_.navigator.userAgent),E_=function(t){return parseFloat(t||"0")},I_=function(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=!1),new x_((n?e:t)||0,(n?t:e)||0)},A_=y_({devicePixelContentBoxSize:I_(),borderBoxSize:I_(),contentBoxSize:I_(),contentRect:new b_(0,0,0,0)}),z_=function(t,e){if(void 0===e&&(e=!1),O_.has(t)&&!e)return O_.get(t);if(C_(t))return O_.set(t,A_),A_;var n=getComputedStyle(t),i=w_(t)&&t.ownerSVGElement&&t.getBBox(),r=!T_&&"border-box"===n.boxSizing,s=k_.test(n.writingMode||""),o=!i&&S_.test(n.overflowY||""),a=!i&&S_.test(n.overflowX||""),l=i?0:E_(n.paddingTop),c=i?0:E_(n.paddingRight),u=i?0:E_(n.paddingBottom),h=i?0:E_(n.paddingLeft),d=i?0:E_(n.borderTopWidth),p=i?0:E_(n.borderRightWidth),m=i?0:E_(n.borderBottomWidth),g=h+c,f=l+u,_=(i?0:E_(n.borderLeftWidth))+p,v=d+m,y=a?t.offsetHeight-v-t.clientHeight:0,x=o?t.offsetWidth-_-t.clientWidth:0,b=r?g+_:0,w=r?f+v:0,C=i?i.width:E_(n.width)-b-x,P=i?i.height:E_(n.height)-w-y,M=C+g+x+_,O=P+f+y+v,S=y_({devicePixelContentBoxSize:I_(Math.round(C*devicePixelRatio),Math.round(P*devicePixelRatio),s),borderBoxSize:I_(M,O,s),contentBoxSize:I_(C,P,s),contentRect:new b_(h,l,C,P)});return O_.set(t,S),S},D_=function(t,e,n){var i=z_(t,n),r=i.borderBoxSize,s=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(e){case g_.DEVICE_PIXEL_CONTENT_BOX:return o;case g_.BORDER_BOX:return r;default:return s}},L_=function(t){var e=z_(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=y_([e.borderBoxSize]),this.contentBoxSize=y_([e.contentBoxSize]),this.devicePixelContentBoxSize=y_([e.devicePixelContentBoxSize])},R_=function(t){if(C_(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},F_=function(){var t=1/0,e=[];f_.forEach(function(n){if(0!==n.activeTargets.length){var i=[];
1n.activeTargets.forEach(function(e){var n=new L_(e.target),r=R_(e.target);i.push(n),e.lastReportedSize=D_(e.target,e.observedBox),r<t&&(t=r)}),e.push(function(){n.callback.call(n.observer,i,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,i=e;n<i.length;n++)(0,i[n])();return t},B_=function(t){f_.forEach(function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach(function(n){n.isActive()&&(R_(n.target)>t?e.activeTargets.push(n):e.skippedTargets.push(n))})})},N_=[],U_=0,H_={attributes:!0,characterData:!0,childList:!0,subtree:!0},j_=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],V_=function(t){return void 0===t&&(t=0),Date.now()+t},$_=!1,q_=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!$_){$_=!0;var n,i=V_(t);n=function(){var n=!1;try{n=function(){var t,e=0;for(B_(e);f_.some(function(t){return t.activeTargets.length>0});)e=F_(),B_(e);return f_.some(function(t){return t.skippedTargets.length>0})&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:__}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=__),window.dispatchEvent(t)),e>0}()}finally{if($_=!1,t=i-V_(),!U_)return;n?e.run(1e3):t>0?e.run(t):e.start()}},function(t){if(!v_){var e=0,i=document.createTextNode("");new MutationObserver(function(){return N_.splice(0).forEach(function(t){return t()})}).observe(i,{characterData:!0}),v_=function(){i.textContent=""+(e?e--:e++)}}N_.push(function(){requestAnimationFrame(n)}),v_()}()}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,H_)};document.body?e():M_.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),j_.forEach(function(e){return M_.addEventListener(e,t.listener,!0)}))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),j_.forEach(function(e){return M_.removeEventListener(e,t.listener,!0)}),this.stopped=!0)},t}()),G_=function(t){!U_&&t>0&&q_.start(),!(U_+=t)&&q_.stop()},Z_=function(){function t(t,e){this.target=t,this.observedBox=e||g_.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=D_(this.target,this.observedBox,!0);return w_(t=this.target)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),W_=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},X_=new WeakMap,Q_=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},K_=function(){function t(){}return t.connect=function(t,e){var n=new W_(t,e);X_.set(t,n)},t.observe=function(t,e,n){var i=X_.get(t),r=0===i.observationTargets.length;Q_(i.observationTargets,e)<0&&(r&&f_.push(i),i.observationTargets.push(new Z_(e,n&&n.box)),G_(1),q_.schedule())},t.unobserve=function(t,e){var n=X_.get(t),i=Q_(n.observationTargets,e);i>=0&&(1===n.observationTargets.length&&f_.splice(f_.indexOf(n),1),n.observationTargets.splice(i,1),G_(-1))},t.disconnect=function(t){var e=this,n=X_.get(t);n.observationTargets.slice().forEach(function(n){return e.unobserve(t,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},t}(),Y_=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");K_.connect(this,t)}return t.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!P_(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");K_.observe(this,t,e)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!P_(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");K_.unobserve(this,t)},t.prototype.disconnect=function(){K_.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const J_=["*"];let tv=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(wo(Ea))},t.\u0275cmp=Ut({type:t,selectors:[["nested-ellipsis-content"]],ngContentSelectors:J_,decls:1,vars:0,template:function(t,e){1&t&&(Uo(),Ho(0))},styles:["[_nghost-%COMP%] {\n      display: block;\n      width: 100%;\n      height: 100%;\n      overflow: hidden;\n    }"]}),t})(),ev=Y_,nv=(()=>{class t{constructor(t,e,n,i,r,s){this.templateRef=t,this.viewContainer=e,this.resolver=n,this.renderer=i,this.ngZone=r,this.platformId=s,this.removeResizeListeners$=new C,this.change=new Vl}static numericBinarySearch(t,e){let n,i=0,r=t,s=-1;for(;i<=r;)n=Math.floor((i+r)/2),e(n)?(s=n,i=n+1):r=n-1;return s}flattenTextAndElementNodes(t){const e=[];for(let n=0;n<t.childNodes.length;n++){const i=t.childNodes.item(n);(i instanceof HTMLElement||i instanceof CharacterData)&&(e.push(i),i instanceof HTMLElement&&e.push(...this.flattenTextAndElementNodes(i)))}return e}ngOnInit(){Wu(this.platformId)&&(null!=window.ResizeObserver&&(ev=window.ResizeObserver),"boolean"!=typeof this.active&&(this.active=!0),void 0===this.indicator&&(this.indicator="..."),void 0===this.resizeDetection&&(this.resizeDetection="resize-observer"),this.wordBoundaries||(this.wordBoundaries=""),this.wordBoundaries="["+this.wordBoundaries.replace(/[-\/\\^$*+?.()|[\]{}
1]/g,"\\$&")+"]",this.compFactory=this.resolver.resolveComponentFactory(tv),this.restoreView(),this.previousDimensions={width:this.elem.clientWidth,height:this.elem.clientHeight,scrollWidth:this.elem.scrollWidth,scrollHeight:this.elem.scrollHeight},this.applyEllipsis())}ngOnDestroy(){this.removeResizeListeners$.next(),this.removeResizeListeners$.complete()}ngAfterViewChecked(){"manual"!==this.resizeDetection&&this.templatesHaveChanged&&this.applyEllipsis()}nodesToHtml(t){const e=this.renderer.createElement("div");for(const n of t)this.renderer.appendChild(e,n.cloneNode(!0));return e.innerHTML}templatesToHtml(t,e){let n=this.nodesToHtml(t.rootNodes);return n+=e?this.nodesToHtml(e.rootNodes):this.indicator,n}get templatesHaveChanged(){if(!this.templateView||!this.previousTemplateHtml)return!1;const t=this.templateRef.createEmbeddedView({});t.detectChanges();const e="string"!=typeof this.indicator?this.indicator.createEmbeddedView({}):null;e&&e.detectChanges();const n=this.templatesToHtml(t,e);return this.previousTemplateHtml!==n}restoreView(){this.viewContainer.clear(),this.templateView=this.templateRef.createEmbeddedView({}),this.templateView.detectChanges();const t=this.viewContainer.createComponent(this.compFactory,null,this.viewContainer.injector,[this.templateView.rootNodes]);this.elem=t.instance.elementRef.nativeElement,this.initialTextLength=this.currentLength,this.indicatorView="string"!=typeof this.indicator?this.indicator.createEmbeddedView({}):null,this.indicatorView&&this.indicatorView.detectChanges()}addResizeListener(){switch(this.resizeDetection){case"manual":break;case"window":this.addWindowResizeListener();break;default:"undefined"!=typeof console&&console.warn(`\n            No such ellipsisResizeDetection strategy: '${this.resizeDetection}'.\n            Using 'resize-observer' instead.\n          `),this.resizeDetection="resize-observer";case"resize-observer":this.addResizeObserver()}}addWindowResizeListener(){const t=this.renderer.listen("window","resize",()=>{this.ngZone.run(()=>{this.applyEllipsis()})});this.removeResizeListeners$.pipe(Kf(1)).subscribe(()=>t())}addResizeObserver(){const t=new ev(()=>{window.requestAnimationFrame(()=>{this.previousDimensions.width===this.elem.clientWidth&&this.previousDimensions.height===this.elem.clientHeight&&this.previousDimensions.scrollWidth===this.elem.scrollWidth&&this.previousDimensions.scrollHeight===this.elem.scrollHeight||(this.ngZone.run(()=>{this.applyEllipsis()}),this.previousDimensions.width=this.elem.clientWidth,this.previousDimensions.height=this.elem.clientHeight,this.previousDimensions.scrollWidth=this.elem.scrollWidth,this.previousDimensions.scrollHeight=this.elem.scrollHeight)})});t.observe(this.elem),this.removeResizeListeners$.pipe(Kf(1)).subscribe(()=>t.disconnect())}truncateContents(t){var e,n,i;this.restoreView();const r=this.flattenTextAndElementNodes(this.elem).filter(t=>[Node.TEXT_NODE,Node.ELEMENT_NODE].includes(t.nodeType));let s,o=-1,a=this.initialTextLength;for(let l=r.length-1;l>=0;l--){const e=r[l];if(e instanceof CharacterData?a-=e.data.length:a--,a<=t){if(e instanceof CharacterData)if("[]"!==this.wordBoundaries||this.mayTruncateAtFn){if(t-a!==e.data.length){let n=t-a-1;for(;n>0&&("[]"!==this.wordBoundaries&&!e.data.charAt(n).match(this.wordBoundaries)||this.mayTruncateAtFn&&!this.mayTruncateAtFn(e,n));)n--;if(a>0&&0===n)continue;e.data=e.data.substr(0,n)}}else e.data=e.data.substr(0,t-a);o=l,s=e;break}}for(let l=o+1;l<r.length;l++){const t=r[l];""!==t.textContent&&t.parentNode!==this.elem&&1===(null===(e=t.parentNode)||void 0===e?void 0:e.childNodes.length)?null===(n=t.parentNode.parentNode)||void 0===n||n.removeChild(t.parentNode):null===(i=t.parentNode)||void 0===i||i.removeChild(t)}return this.currentLength!==this.initialTextLength?s:null}get currentLength(){return this.flattenTextAndElementNodes(this.elem).filter(t=>[Node.TEXT_NODE,Node.ELEMENT_NODE].includes(t.nodeType)).map(t=>t instanceof CharacterData?t.data.length:1).reduce((t,e)=>t+e,0)}truncateText(t){const e=this.truncateContents(t);if(e)if(this.indicatorView)for(const n of this.indicatorView.rootNodes)this.renderer.appendChild(this.elem,n);else e instanceof CharacterData?e.data+=this.indicator:this.renderer.appendChild(this.elem,this.renderer.createText(this.indicator))}applyEllipsis(){if(this.removeResizeListeners$.next(),this.restoreView(),this.previousTemplateHtml=this.templatesToHtml(this.templateView,this.indicatorView),!this.active)return;const e=t.numericBinarySearch(this.initialTextLength,t=>(this.truncateText(t),!this.isOverflowing));if(this.truncateText(e),this.addResizeListener(),this.change.observers.length>0){const t=this.currentLength;this.change.emit(t===this.initialTextLength?null:t)}}get isOverflowing(){const t=this.elem.style.overflow;t&&"visible"!==t||(this.elem.style.overflow="hidden");const e=this.elem.clientWidth<this.elem.scrollWidth-1||this.elem.clientHeight<this.elem.scrollHeight-1;return this.elem.style.overflow=t,e}}return t.\u0275fac=function(e){return new(e||t)(wo(ll),wo(gl),wo(Oa),wo(za),wo(Tc),wo(mc))},t.\u0275dir=Gt({type:t,selectors:[["","nestedEllipsis",""]],inputs:{active:["nestedEllipsis","active"],indicator:["nestedEllipsisIndicator","
1indicator"],resizeDetection:["nestedEllipsisResizeDetection","resizeDetection"],wordBoundaries:["nestedEllipsisWordBoundaries","wordBoundaries"],mayTruncateAtFn:["nestedEllipsisMayTruncateAtFn","mayTruncateAtFn"]},outputs:{change:"nestedEllipsisChange"},exportAs:["ngxNestedEllipsis"]}),t})(),iv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ct({imports:[[]]}),t})();class rv extends m{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class sv extends m{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function ov(t,e,n,i,r=new sv(t,n,i)){if(!r.closed)return e instanceof v?e.subscribe(r):D(e)(r)}const av={};class lv{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new cv(t,this.resultSelector))}}class cv extends rv{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(av),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(ov(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const i=this.values,r=this.toRespond?i[n]===av?--this.toRespond:this.toRespond:0;i[n]=e,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function uv(...t){return V(1)(bm(...t))}function hv(t){return new v(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?R(n):Qf()).subscribe(e)})}function dv(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new pv(t,e,n))}}class pv{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new mv(t,this.accumulator,this.seed,this.hasSeed))}}class mv extends m{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function gv(t){return function(e){const n=new fv(t),i=e.lift(n);return n.caught=i}}class fv{constructor(t){this.selector=t}call(t,e){return e.subscribe(new _v(t,this.selector,this.caught))}}class _v extends B{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new F(this);this.add(i);const r=N(n,i);r!==i&&this.add(r)}}}function vv(t){return function(e){return 0===t?Qf():e.lift(new yv(t))}}class yv{constructor(t){if(this.total=t,this.total<0)throw new Wf}call(t,e){return e.subscribe(new xv(t,this.total))}}class xv extends m{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;r<n;r++){const r=e++%n;t.next(i[r])}}t.complete()}}function bv(){}function wv(t,e,n){return function(i){return i.lift(new Cv(t,e,n))}}class Cv{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Pv(t,this.nextOrObserver,this.error,this.complete))}}class Pv extends m{constructor(t,e,n,r){super(t),this._tapNext=bv,this._tapError=bv,this._tapComplete=bv,this._tapError=n||bv,this._tapComplete=r||bv,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||bv,this._tapError=e.error||bv,this._tapComplete=e.complete||bv)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class Mv{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Ov(t,this.callback))}}class Ov extends m{constructor(t,e){super(t),this.add(new h(e))}}class Sv{constructor(t,e){this.id=t,this.url=e}}class kv extends Sv{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Tv extends Sv{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ev extends Sv{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Iv extends Sv{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Av extends Sv{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zv extends Sv{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dv extends Sv{constructor(t,e,n,i,r){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Lv extends Sv{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Rv extends Sv{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fv{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Bv{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Nv{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Uv{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hv{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jv{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vv{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const $v="primary";class qv{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Gv(t){return new qv(t)}function Zv(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Wv(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;const r={};for(let s=0;s<i.length;s++){const e=i[s],n=t[s];if(e.startsWith(":"))r[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function Xv(t,e){const n=t?Object.keys(t):void 0,i=e?Object.keys(e):void 0;if(!n||!i||n.length!=i.length)return!1;let r;for(let s=0;s<n.length;s++)if(r=n[s],!Qv(t[r],e[r]))return!1;return!0}function Qv(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),i=[...e].sort();return n.every((t,e)=>i[e]===t)}return t===e}function Kv(t){return Array.prototype.concat.apply([],t)}function Yv(t){return t.length>0?t[t.length-1]:null}function Jv(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function ty(t){return Do(t)?t:Ao(t)?R(Promise.resolve(t)):bm(t)}function ey(t,e,n){return n?function(t,e){return Xv(t,e)}(t.queryParams,e.queryParams)&&ny(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Qv(t[n],e[n]))}(t.queryParams,e.queryParams)&&iy(t.root,e.root)}function ny(t,e){if(!ly(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!ny(t.children[n],e.children[n]))return!1}return!0}function iy(t,e){return ry(t,e,e.segments)}function ry(t,e,n){if(t.segments.length>n.length)return!!ly(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!ly(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!iy(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!ly(t.segments,i)&&!!t.children.primary&&ry(t.children.primary,e,r)}}class sy{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Gv(this.queryParams)),this._queryParamMap}toString(){return hy.serialize(this)}}class oy{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Jv(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return dy(this)}}class ay{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Gv(this.parameters)),this._parameterMap}toString(){return yy(this)}}function ly(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class cy{}class uy{parse(t){const e=new Py(t);return new sy(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`/${py(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${gy(e)}=${gy(t)}`).join("&"):`${gy(e)}=${gy(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${function(t){return encodeURI(t)}(t.fragment)}`:""}`}}const hy=new uy;function dy(t){return t.segments.map(t=>yy(t)).join("/")}function py(t,e){if(!t.hasChildren())return dy(t);if(e){const e=t.children.primary?py(t.children.primary,!1):"",n=[];return Jv(t.children,(t,e)=>{e!==$v&&n.push(`${e}:${py(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return Jv(t.children,(t,i)=>{i===$v&&(n=n.concat(e(t,i)))}),Jv(t.children,(t,i)=>{i!==$v&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===$v?[py(t.children.primary,!1)]:[`${n}:${py(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${dy(t)}/${e[0]}`:`${dy(t)}/(${e.join("//")})`}}function my(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function gy(t){return my(t).replace(/%3B/gi,";")}function fy(t){return my(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _y(t){return decodeURIComponent(t)}function vy(t){return _y(t.replace(/\+/g,"%20"))}function yy(t){return`${fy(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${fy(t)}=${fy(e[t])}`).join("")}`;var e}const xy=/^[^\/()?;=#]+/;function by(t){const e=t.match(xy);return e?e[0]:""}const wy=/^[^=?&#]+/,Cy=/^[^?&#]+/;class Py{constructor(t){this.url=t,this.remaining=t}
vendor: 4,738 bytes, line 1
1parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new oy([],{}):new oy([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new oy(t,e)),n}parseSegment(){const t=by(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new ay(_y(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=by(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=by(this.remaining);t&&(n=t,this.capture(n))}t[_y(e)]=_y(n)}parseQueryParam(t){const e=function(t){const e=t.match(wy);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Cy);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=vy(e),r=vy(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=by(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=$v);const s=this.parseChildren();e[r]=1===Object.keys(s).length?s.primary:new oy([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class My{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Oy(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Oy(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Sy(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Sy(t,this._root).map(t=>t.value)}}function Oy(t,e){if(t===e.value)return e;for(const n of e.children){const e=Oy(t,n);if(e)return e}return null}function Sy(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Sy(t,n);if(i.length)return i.unshift(e),i}return[]}class ky{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ty(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Ey extends My{constructor(t,e){super(t),this.snapshot=e,Ry(this,t)}toString(){return this.snapshot.toString()}}function Iy(t,e){const n=function(t,e){const n=new Dy([],{},{},"",{},$v,e,null,t.root,-1,{});return new Ly("",new ky(n,[]))}(t,e),i=new Gf([new ay("",{})]),r=new Gf({}),s=new Gf({}),o=new Gf({}),a=new Gf(""),l=new Ay(i,r,o,a,s,$v,e,n.root);return l.snapshot=n.root,new Ey(new ky(l,[]),n)}class Ay{constructor(t,e,n,i,r,s,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(O(t=>Gv(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(O(t=>Gv(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function zy(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;
1i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Dy{constructor(t,e,n,i,r,s,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Gv(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Gv(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ly extends My{constructor(t,e){super(e),this.url=t,Ry(this,e)}toString(){return Fy(this._root)}}function Ry(t,e){e.value._routerState=t,e.children.forEach(e=>Ry(t,e))}function Fy(t){const e=t.children.length>0?` { ${t.children.map(Fy).join(", ")} } `:"";return`${t.value}${e}`}function By(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Xv(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Xv(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!Xv(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Xv(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Ny(t,e){var n,i;return Xv(t.params,e.params)&&ly(n=t.url,i=e.url)&&n.every((t,e)=>Xv(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Ny(t.parent,e.parent))}function Uy(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const r=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return Uy(t,e,i);return Uy(t,e)})}(t,e,n);return new ky(i,r)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return Hy(e,t),t}}const n=new Ay(new Gf((i=e.value).url),new Gf(i.params),new Gf(i.queryParams),new Gf(i.fragment),new Gf(i.data),i.outlet,i.component,i),r=e.children.map(e=>Uy(t,e));return new ky(n,r)}var i}function Hy(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)Hy(t.children[n],e.children[n])}function jy(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Vy(t){return"object"==typeof t&&null!=t&&t.outlets}function $y(t,e,n,i,r){let s={};return i&&Jv(i,(t,e)=>{s[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new sy(n.root===t?e:qy(n.root,t,e),s,r)}function qy(t,e,n){const i={};return Jv(t.children,(t,r)=>{i[r]=t===e?n:qy(t,e,n)}),new oy(t.segments,i)}class Gy{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&jy(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Vy);if(i&&i!==Yv(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Zy{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Wy(t,e,n){if(t||(t=new oy([],{})),0===t.segments.length&&t.hasChildren())return Xy(t,e,n);const i=function(t,e,n){let i=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=n.length)return s;const e=t.segments[r],o=n[i];if(Vy(o))break;const a=`${o}`,l=i<n.length-1?n[i+1]:null;if(r>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!Jy(a,l,e))return s;i+=2}else{if(!Jy(a,{},e))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const e=new oy(t.segments.slice(0,i.pathIndex),{});return e.children.primary=new oy(t.segments.slice(i.pathIndex),t.children),Xy(e,0,r)}return i.match&&0===r.length?new oy(t.segments,{}):i.match&&!t.hasChildren()?Qy(t,e,n):i.match?Xy(t,0,r):Qy(t,e,n)}function Xy(t,e,n){if(0===n.length)return new oy(t.segments,{});{const i=function(t){return Vy(t[0])?t[0].outlets:{[$v]:t}}(n),r={};return Jv(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=Wy(t.children[i],e,n))}),Jv(t.children,(t,e)=>{void 0===i[e]&&(r[e]=t)}),new oy(t.segments,r)}}function Qy(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r<n.length;){const s=n[r];if(Vy(s)){const t=Ky(s.outlets);return new oy(i,t)}if(0===r&&jy(n[0])){i.push(new ay(t.segments[e].path,Yy(n[0]))),r++;continue}const o=Vy(s)?s.outlets.primary:`${s}`,a=r<n.length-1?n[r+1]:null;o&&a&&jy(a)?(i.push(new ay(o,Yy(a))),r+=2):(i.push(new ay(o,{})),r++)}return new oy(i,{})}function Ky(t){const e={};return Jv(t,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Qy(new oy([],{}),0,t))}),e}function Yy(t){const e={};return Jv(t,(t,n)=>e[n]=`${t}`),e}function Jy(t,e,n){return t==n.path&&Xv(e,n.parameters)}class tx{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),By(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Ty(e);
1t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Jv(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,r=Ty(t);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=Ty(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new jv(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Uv(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(By(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),ex(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=r,e.outlet&&e.outlet.activateWith(i,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function ex(t){By(t.value),t.children.forEach(ex)}class nx{constructor(t,e){this.routes=t,this.module=e}}function ix(t){return"function"==typeof t}function rx(t){return t instanceof sy}const sx=Symbol("INITIAL_VALUE");function ox(){return l_(t=>function(...t){let e,n;return M(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),$(t,n).lift(new lv(e))}(t.map(t=>t.pipe(Kf(1),function(...t){const e=t[t.length-1];return M(e)?(t.pop(),n=>uv(t,n,e)):e=>uv(t,e)}(sx)))).pipe(dv((t,e)=>{let n=!1;return e.reduce((t,i,r)=>{if(t!==sx)return t;if(i===sx&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||rx(i))return i}return t},t)},sx),Cm(t=>t!==sx),O(t=>rx(t)?t:!0===t),Kf(1)))}let ax=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&So(0,"router-outlet")},directives:function(){return[eb]},encapsulation:2}),t})();function lx(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];cx(i,ux(e,i))}}function cx(t,e){t.children&&lx(t.children,e)}function ux(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function hx(t){const e=t.children&&t.children.map(hx),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==$v&&(n.component=ax),n}function dx(t){return t.outlet||$v}function px(t,e){const n=t.filter(t=>dx(t)===e);return n.push(...t.filter(t=>dx(t)!==e)),n}const mx={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function gx(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},mx):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||Wv)(n,t,e);if(!r)return Object.assign({},mx);const s={};Jv(r.posParams,(t,e)=>{s[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function fx(t,e,n,i,r="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>_x(t,e,n)&&dx(n)!==$v)}(t,n,i)){const r=new oy(e,function(t,e,n,i){const r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&dx(s)!==$v){const n=new oy([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[dx(s)]=n}return r}
1(t,e,i,new oy(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>_x(t,e,n))}(t,n,i)){const s=new oy(t.segments,function(t,e,n,i,r,s){const o={};for(const a of i)if(_x(t,n,a)&&!r[dx(a)]){const n=new oy([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[dx(a)]=n}return Object.assign(Object.assign({},r),o)}(t,e,n,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const s=new oy(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function _x(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function vx(t,e,n,i){return!!(dx(t)===i||i!==$v&&_x(e,n,t))&&("**"===t.path||gx(e,t,n).matched)}function yx(t,e,n){return 0===e.length&&!t.children[n]}class xx{constructor(t){this.segmentGroup=t||null}}class bx{constructor(t){this.urlTree=t}}function wx(t){return new v(e=>e.error(new xx(t)))}function Cx(t){return new v(e=>e.error(new bx(t)))}function Px(t){return new v(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Mx{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(dl)}apply(){const t=fx(this.urlTree.root,[],[],this.config).segmentGroup,e=new oy(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,$v).pipe(O(t=>this.createUrlTree(Ox(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(gv(t=>{if(t instanceof bx)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof xx)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,$v).pipe(O(e=>this.createUrlTree(Ox(e),t.queryParams,t.fragment))).pipe(gv(t=>{if(t instanceof xx)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new oy([],{[$v]:t}):t;return new sy(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(O(t=>new oy([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const r of Object.keys(n.children))"primary"===r?i.unshift(r):i.push(r);return R(i).pipe(wm(i=>{const r=n.children[i],s=px(e,i);return this.expandSegmentGroup(t,s,r,i).pipe(O(t=>({segment:t,outlet:i})))}),dv((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Cm((e,n)=>t(e,n,i)):_,vv(1),n?t_(e):i_(()=>new Zf))}())}expandSegment(t,e,n,i,r,s){return R(n).pipe(wm(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,r,s).pipe(gv(t=>{if(t instanceof xx)return bm(null);throw t}))),a_(t=>!!t),gv((t,n)=>{if(t instanceof Zf||"EmptyError"===t.name){if(yx(e,i,r))return bm(new oy([],{}));throw new xx(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,r,s,o){return vx(i,e,r,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s):wx(e):wx(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Cx(r):this.lineralizeSegments(n,r).pipe(U(n=>{const r=new oy(n,{});return this.expandSegment(t,r,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=gx(e,i,r);if(!o)return wx(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Cx(u):this.lineralizeSegments(i,u).pipe(U(i=>this.expandSegment(t,e,n,i.concat(r.slice(l)),s,!1)))}matchSegmentAgainstRoute(t,e,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?bm(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(O(t=>(n._loadedConfig=t,new oy(i,{})))):bm(new oy(i,{}));const{matched:s,consumedSegments:o,lastChild:a}=gx(e,n,i);if(!s)return wx(e);const l=i.slice(a);return this.getChildConfig(t,n,i).pipe(U(t=>{const i=t.module,s=t.routes,{segmentGroup:a,slicedSegments:c}=fx(e,o,l,s),u=new oy(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(i,s,u).pipe(O(t=>new oy(o,t)));if(0===s.length&&0===c.length)return bm(new oy(o,{}));const h=dx(n)===r;return this.expandSegment(i,u,s,c,h?$v:r,!0).pipe(O(t=>new oy(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?bm(new nx(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?bm(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(U(n=>n?this.configLoader.load(t.injector,e).pipe(O(t=>(e._loadedConfig=t,t))):function(t){return new v(e=>e.error(Zv(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):bm(new nx([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;return i&&0!==i.length?bm(i.map(i=>{const r=t.get(i);let s;if(function(t){return t&&ix(t.canLoad)}(r))s=r.canLoad(e,n);else{if(!ix(r))throw new Error("Invalid CanLoad guard");s=r(e,n)}return ty(s)})).pipe(ox(),wv(t=>{if(!rx(t))return;const e=Zv(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),O(t=>!0===t)):bm(!0)}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return bm(n);if(i.numberOfChildren>1||!i.children.primary)return Px(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const r=this.createSegmentGroup(t,e.root,n,i);return new sy(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Jv(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let s={};return Jv(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,n,i)}),new oy(r,s)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Ox(t){const e={};for(const n of Object.keys(t.children)){const i=Ox(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new oy(t.segments.concat(e.segments),e.children)}return t}(new oy(t.segments,e))}class Sx{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class kx{constructor(t,e){this.component=t,this.route=e}}function Tx(t,e,n){const i=t._root;return Ix(i,e?e._root:null,n,[i.value])}function Ex(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function Ix(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Ty(e);
1return t.children.forEach(t=>{!function(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!ly(t.url,e.url);case"pathParamsOrQueryParamsChange":return!ly(t.url,e.url)||!Xv(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ny(t,e)||!Xv(t.queryParams,e.queryParams);case"paramsChange":default:return!Ny(t,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Sx(i)):(s.data=o.data,s._resolvedData=o._resolvedData),Ix(t,e,s.component?a?a.children:null:n,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new kx(a.outlet.component,o))}else o&&Ax(e,a,r),r.canActivateChecks.push(new Sx(i)),Ix(t,null,s.component?a?a.children:null:n,i,r)}(t,s[t.value.outlet],n,i.concat([t.value]),r),delete s[t.value.outlet]}),Jv(s,(t,e)=>Ax(t,n.getContext(e),r)),r}function Ax(t,e,n){const i=Ty(t),r=t.value;Jv(i,(t,i)=>{Ax(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new kx(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}class zx{}function Dx(t){return new v(e=>e.error(t))}class Lx{constructor(t,e,n,i,r,s){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const t=fx(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,$v);if(null===e)return null;const n=new Dy([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},$v,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new ky(n,e),r=new Ly(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,n=zy(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const r of Object.keys(e.children)){const i=e.children[r],s=px(t,r),o=this.processSegmentGroup(s,i,r);if(null===o)return null;n.push(...o)}const i=Fx(n);return i.sort((t,e)=>t.value.outlet===$v?-1:e.value.outlet===$v?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const r of t){const t=this.processSegmentAgainstRoute(r,e,n,i);if(null!==t)return t}return yx(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!vx(t,e,n,i))return null;let r,s=[],o=[];if("**"===t.path){const i=n.length>0?Yv(n).parameters:{};r=new Dy(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ux(t),dx(t),t.component,t,Bx(e),Nx(e)+n.length,Hx(t))}else{const i=gx(e,t,n);if(!i.matched)return null;s=i.consumedSegments,o=n.slice(i.lastChild),r=new Dy(s,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ux(t),dx(t),t.component,t,Bx(e),Nx(e)+s.length,Hx(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=fx(e,s,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new ky(r,t)]}if(0===a.length&&0===c.length)return[new ky(r,[])];const u=dx(t)===i,h=this.processSegment(a,l,c,u?$v:i);return null===h?null:[new ky(r,h)]}}function Rx(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Fx(t){const e=[],n=new Set;for(const i of t){if(!Rx(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=Fx(i.children);e.push(new ky(i.value,t))}return e.filter(t=>!n.has(t))}function Bx(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Nx(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Ux(t){return t.data||{}}function Hx(t){return t.resolve||{}}function jx(t){return l_(e=>{const n=t(e);return n?R(n).pipe(O(()=>e)):bm(e)})}class Vx extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const $x=new jn("ROUTES");class qx{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(O(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new nx(Kv(i.injector.get($x,void 0,_t.Self|_t.Optional)).map(hx),i)}),gv(t=>{throw e._loader$=void 0,t}));return e._loader$=new W(n,()=>new C).pipe(q()),e._loader$}loadModuleFactory(t){return"string"==typeof t?R(this.loader.load(t)):ty(t()).pipe(U(t=>t instanceof pl?bm(t):R(this.compiler.compileModuleAsync(t))))}}class Gx{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Zx,this.attachRef=null}}class Zx{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Gx,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Wx{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Xx(t){throw t}function Qx(t,e,n){return e.parse("/")}function Kx(t,e){return bm(null)}let Yx=(()=>{class t{constructor(t,e,n,i,r,s,o,a){this.rootComponentType=t,this.urlSerializer
1=e,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new C,this.errorHandler=Xx,this.malformedUriErrorHandler=Qx,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Kx,afterPreactivation:Kx},this.urlHandlingStrategy=new Wx,this.routeReuseStrategy=new Vx,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=r.get(dl),this.console=r.get(fc);const l=r.get(Tc);this.isNgZoneEnabled=l instanceof Tc&&Tc.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new sy(new oy([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new qx(s,o,t=>this.triggerEvent(new Fv(t)),t=>this.triggerEvent(new Bv(t))),this.routerState=Iy(this.currentUrlTree,this.rootComponentType),this.transitions=new Gf({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Cm(t=>0!==t.id),O(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),l_(t=>{let n=!1,i=!1;return bm(t).pipe(wv(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),l_(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return bm(t).pipe(l_(t=>{const n=this.transitions.getValue();return e.next(new kv(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Xf:Promise.resolve(t)}),(i=this.ngModule.injector,r=this.configLoader,s=this.urlSerializer,o=this.config,l_(t=>function(t,e,n,i,r){return new Mx(t,e,n,i,r).apply()}(i,r,s,t.extractedUrl,o).pipe(O(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),wv(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,r){return U(s=>function(t,e,n,i,r="emptyOnly",s="legacy"){try{const o=new Lx(t,e,n,i,r,s).recognize();return null===o?Dx(new zx):bm(o)}catch(o){return Dx(o)}}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe(O(t=>Object.assign(Object.assign({},s),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),wv(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects);const n=new Av(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,r,s,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:s,extras:o}=t,a=new kv(n,this.serializeUrl(i),r,s);e.next(a);const l=Iy(i,this.rootComponentType).snapshot;return bm(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Xf}),jx(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),wv(t=>{const e=new zv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),O(t=>Object.assign(Object.assign({},t),{guards:Tx(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return U(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?bm(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return R(t).pipe(U(t=>function(t,e,n,i,r){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?bm(s.map(s=>{const o=Ex(s,e,r);let a;if(function(t){return t&&ix(t.canDeactivate)}(o))a=ty(o.canDeactivate(t,e,n,i));else{if(!ix(o))throw new Error("Invalid CanDeactivate guard");a=ty(o(t,e,n,i))}return a.pipe(a_())})).pipe(ox()):bm(!0)}(t.component,t.route,n,e,i)),a_(t=>!0!==t,!0))}(o,i,r,t).pipe(U(n=>n&&"boolean"==typeof n?function(t,e,n,i){return R(e).pipe(wm(e=>uv(function(t,e){return null!==t&&e&&e(new Nv(t)),bm(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new Hv(t)),bm(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>hv(()=>bm(e.guards.map(r=>{const s=Ex(r,e.node,n);let o;if(function(t){return t&&ix(t.canActivateChild)}(s))o=ty(s.canActivateChild(i,t));else{if(!ix(s))throw new Error("Invalid CanActivateChild guard");o=ty(s(i,t))}
1return o.pipe(a_())})).pipe(ox())));return bm(r).pipe(ox())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?bm(i.map(i=>hv(()=>{const r=Ex(i,e,n);let s;if(function(t){return t&&ix(t.canActivate)}(r))s=ty(r.canActivate(e,t));else{if(!ix(r))throw new Error("Invalid CanActivate guard");s=ty(r(e,t))}return s.pipe(a_())}))).pipe(ox()):bm(!0)}(t,e.route,n))),a_(t=>!0!==t,!0))}(i,s,t,e):bm(n)),O(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),wv(t=>{if(rx(t.guardsResult)){const e=Zv(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new Dv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Cm(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Ev(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),jx(t=>{if(t.guards.canActivateChecks.length)return bm(t).pipe(wv(t=>{const e=new Lv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),l_(t=>{let n=!1;return bm(t).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,U(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return bm(t);let s=0;return R(n).pipe(wm(t=>function(t,e,n,i){return function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return bm({});const s={};return R(r).pipe(U(r=>function(t,e,n,i){const r=Ex(t,e,i);return ty(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(wv(t=>{s[r]=t}))),vv(1),U(()=>Object.keys(s).length===r.length?bm(s):Xf))}(t._resolve,t,e,i).pipe(O(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),zy(t,n).resolve),null)))}(t.route,e,i,r)),wv(()=>s++),vv(1),U(e=>s===n.length?bm(t):Xf))})),wv({next:()=>n=!0,complete:()=>{if(!n){const n=new Ev(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,r}),wv(t=>{const e=new Rv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),jx(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),O(t=>{const e=function(t,e,n){const i=Uy(t,e._root,n?n._root:void 0);return new Ey(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),wv(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),O(t=>(new tx(o,t.targetRouterState,t.currentRouterState,a).activate(s),t))),wv({next(){n=!0},complete(){n=!0}}),(r=()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new Ev(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new Mv(r))),gv(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=rx(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new Ev(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new Iv(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(gR){t.reject(gR)}}var r;return Xf}));var r,s,o,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,r={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(i,t,n,r)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){lx(t),this.config=t.map(hx),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:s,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:r;let c=null;switch(s){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,r){if(0===n.length)return $y(e.root,e.root,e,i,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Gy(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Jv(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Gy(n,e,i)}(n);if(s.toRoot())return $y(e.root,new oy([],{}),e,i,r);const o=function(t,e,n){if(t.isAbsolute)return new Zy(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Zy(t,t===e.root,0)}const i=jy(t.commands[0])?0:1;return function(t,e,n){let i=t,r=e,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new Zy(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?Xy(o.segmentGroup,o.index,s.commands):Wy(o.segmentGroup,o.index,s.commands);return $y(o.segmentGroup,a,e,i,r)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=rx(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(rx(t))return ey(this.currentUrlTree,t,e);const n=this.parseUrl(t);return ey(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new Tv(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,r){if(this.disposed)return Promise.resolve(!1);const s=this.getTransition(),o="imperative"!==e&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;r?(l=r.resolve,c=r.reject,u=r.promise):u=new Promise((t,e)=>{l=t,c=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const r=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(oi($n),oi(cy),oi(Zx),oi(wu),oi(oo),oi(Kc),oi(Oc),oi(void 0))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Jx=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new C,this.subscription=t.events.subscribe(t=>{t instanceof Tv&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,r){if(0!==t||e||n||i||r)return!0;
1if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:tb(this.skipLocationChange),replaceUrl:tb(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:tb(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(wo(Yx),wo(Ay),wo(_u))},t.\u0275dir=Gt({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Lo("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(ga("href",e.href,Yi),yo("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[oe]}),t})();function tb(t){return""===t||!!t}let eb=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new Vl,this.deactivateEvents=new Vl,this.name=i||$v,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new nb(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(wo(Zx),wo(gl),wo(Oa),("name",function(t,e){const n=t.attrs;if(n){const t=n.length;let i=0;for(;i<t;){const r=n[i];if(mn(r))break;if(0===r)i+=2;else if("number"==typeof r)for(i++;i<t&&"string"==typeof n[i];)i++;else{if(r===e)return n[i+1];i+=2}}}return null}(ze(),"name")),wo(nl))},t.\u0275dir=Gt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class nb{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Ay?this.route:t===Zx?this.childContexts:this.parent.get(t,e)}}class ib{}class rb{preload(t,e){return bm(null)}}let sb=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new qx(e,n,e=>t.triggerEvent(new Fv(e)),e=>t.triggerEvent(new Bv(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Cm(t=>t instanceof Tv),wm(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(dl);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return R(n).pipe(V(),O(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?bm(e._loadedConfig):this.loader.load(t.injector,e)).pipe(U(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(oi(Yx),oi(Kc),oi(Oc),oi(oo),oi(ib))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),ob=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anch
1orScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof kv?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Tv&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Vv&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Vv(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(oi(Yx),oi(Qu),oi(void 0))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const ab=new jn("ROUTER_CONFIGURATION"),lb=new jn("ROUTER_FORROOT_GUARD"),cb=[wu,{provide:cy,useClass:uy},{provide:Yx,useFactory:function(t,e,n,i,r,s,o,a={},l,c){const u=new Yx(null,t,e,n,i,r,s,Kv(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing){const t=ou();u.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return u},deps:[cy,Zx,wu,oo,Kc,Oc,$x,ab,[class{},new ui],[class{},new ui]]},Zx,{provide:Ay,useFactory:function(t){return t.routerState.root},deps:[Yx]},{provide:Kc,useClass:tu},sb,rb,class{preload(t,e){return e().pipe(gv(()=>bm(null)))}},{provide:ab,useValue:{enableTracing:!1}}];function ub(){return new $c("Router",Yx)}let hb=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[cb,gb(e),{provide:lb,useFactory:mb,deps:[[Yx,new ui,new hi]]},{provide:ab,useValue:n||{}},{provide:_u,useFactory:pb,deps:[lu,[new ci(yu),new ui],ab]},{provide:ob,useFactory:db,deps:[Yx,Qu,ab]},{provide:ib,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:rb},{provide:$c,multi:!0,useFactory:ub},[fb,{provide:lc,multi:!0,useFactory:_b,deps:[fb]},{provide:yb,useFactory:vb,deps:[fb]},{provide:gc,multi:!0,useExisting:yb}]]}}static forChild(e){return{ngModule:t,providers:[gb(e)]}}}return t.\u0275fac=function(e){return new(e||t)(oi(lb,8),oi(Yx,8))},t.\u0275mod=$t({type:t}),t.\u0275inj=ct({}),t})();function db(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new ob(t,e,n)}function pb(t,e,n={}){return n.useHash?new bu(t,e):new xu(t,e)}function mb(t){return"guarded"}function gb(t){return[{provide:Vn,multi:!0,useValue:t},{provide:$x,multi:!0,useValue:t}]}let fb=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new C}appInitializer(){return this.injector.get(uu,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Yx),i=this.injector.get(ab);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?bm(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(ab),n=this.injector.get(sb),i=this.injector.get(ob),r=this.injector.get(Yx),s=this.injector.get(Xc);t===s.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(oi(oo))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function _b(t){return t.appInitializer.bind(t)}function vb(t){return t.bootstrapListener.bind(t)}const yb=new jn("Router Initializer"),xb="https://bo.bibracte.fr/";let bb=(()=>{class t{constructor(t,e,n,i){this.http=t,this.platformId=e,this.transferState=n,this.activatedRoute=i,this.url=xb,this.action="ws_web",this.previewMode=!1,this.sid="",this.currentLocale="",this.activatedRoute.queryParams.subscribe(t=>{"1"==t.preview&&(this.previewMode=!0,this.sid=t.sid)})}callWebservice(t){let e=t;if(this.currentLocale="/en/"==t.substr(0,4)||"/en"==t?"en/":"",this.transferState.hasKey(e)){let t=this.transferState.get(e,null);return this.transferState.remove(e),bm(t)}{let n=this.url+this.currentLocale+(this.previewMode?"preview/":"")+this.action+"?url="+t.split("?")[0];return this.previewMode&&(n+="&sid="+this.sid),n+="&cachebuster="+Math.round((new Date).getTime()/1e3),this.http.get(n).pipe(wv(t=>{Xu(this.platformId)&&this.transferState.set(e,t)}))}}callAction(t,e=!1){let n=t;if(this.transferState.hasKey(n)){let t=this.transferState.get(n,null);return this.transferState.remove(n),bm(t)}{let i=this.url+this.currentLocale+(this.previewMode?"preview/":"")+t;i=i.replace("preview//","preview/");let r=Math.round((new Date).getTime()/1e3);return i+=this.previewMode?e?"&sid="+this.sid+"&cachebuster="+r:"?sid="+this.sid+"&cachebuster="+r:e?"&cachebuster="+r:"?cachebuster="+r,this.http.get(i).pipe(wv(t=>{Xu(this.platformId)&&this.transferState.set(n,t)}))}}setLocale(t){this.currentLocale=t}getLocale(){return this.currentLocale}signUpNewsletter(t,e,n){let i=(new Im).set("LNAME",t).set("FNAME",e).set("EMAIL",n);return this.http.jsonp("https://bibracte.us16.list-manage.com/subscribe/post-json?u=78571864ed01d3b18c52cfbd6&amp;id=d7c8be03c8&amp;"+i.toString(),"c")}}return t.\u0275fac=function(e){return new(e||t)(oi(jm),oi(mc),oi(Lh),oi(Ay))},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),wb=(()=>{class t{constructor(t){this._document=t}removeStructuredData(){const t=[];
1["structured-data","structured-data-org"].forEach(e=>{t.push(...Array.from(this._document.head.getElementsByClassName(e)))}),t.forEach(t=>this._document.head.removeChild(t))}insertSchema(t,e="structured-data"){let n,i=!1;this._document.head.getElementsByClassName(e).length?n=this._document.head.getElementsByClassName(e)[0]:(n=this._document.createElement("script"),i=!0),n.setAttribute("class",e),n.type="application/ld+json",n.text=JSON.stringify(t),i&&this._document.head.appendChild(n)}}return t.\u0275fac=function(e){return new(e||t)(oi(au))},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Cb=(()=>{class t{constructor(t){this.platformId=t,this.setup=!1,this.lastTag=[]}setCookiesAllowed(){Xu(this.platformId)||this.setup&&(gtag("consent","update",{ad_storage:"granted",analytics_storage:"granted"}),this.lastTag&&gtag("event","page_view",{page_title:this.lastTag[0],page_path:this.lastTag[1]}))}tagPage(t,e,n){Xu(this.platformId)||(this.setup?gtag("event","page_view",{page_title:e,page_path:n}):this.setupGA(t,e,n))}setupGA(t,e,n){if(!Xu(this.platformId)){let r="denied";"true"===localStorage.getItem("bibracte_cookies_analytics")&&(r="granted"),"denied"==r&&(this.lastTag=[e,n]);const s=document.createElement("script");s.async=!0,s.src="https://www.googletagmanager.com/gtag/js?id="+t,document.head.appendChild(s);const o=document.createElement("script");o.type="text/javascript";let a="window.dataLayer = window.dataLayer || [];\n";a+="function gtag(){dataLayer.push(arguments);}\n",a+="gtag('consent', 'default', {'ad_storage': '"+r+"', 'analytics_storage': '"+r+"'});\n",a+="gtag('js', new Date()); gtag('config', '"+t+"', { 'send_page_view': false });\n",a+="gtag('event', 'page_view', { 'page_title':'"+e+"', 'page_path': '"+n+"'});";try{o.appendChild(document.createTextNode(a)),document.head.appendChild(o)}catch(i){o.text=a,document.head.appendChild(o)}finally{this.setup=!0}}}}return t.\u0275fac=function(e){return new(e||t)(oi(mc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Pb=(()=>{class t{constructor(t){this.platformId=t,this.ignoreMenu=!1}isMobile(){return!Xu(this.platformId)&&window.innerWidth<this.getBreakpoint()}getBreakpoint(){if(!Xu(this.platformId)){let t=window.getComputedStyle(document.getElementById("sassbridge"));return parseInt(t.maxWidth)}return 0}isImageMobile(){return!Xu(this.platformId)&&window.innerWidth<this.getImageBreakpoint()}getImageBreakpoint(){if(!Xu(this.platformId)){let t=window.getComputedStyle(document.getElementById("sassimagebridge"));return parseInt(t.maxWidth)}return 0}getGutterSize(){if(!Xu(this.platformId)){let t=window.getComputedStyle(document.getElementById("sassgutterbridge"));return parseInt(t.maxWidth)}return 0}}return t.\u0275fac=function(e){return new(e||t)(oi(mc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Mb=(()=>{class t{constructor(t){if(this.platformId=t,this.version=2,this.data={},Xu(this.platformId))return;if("true"!==localStorage.getItem("bibracte_cookies_pdata"))return void(this.data={});let e=localStorage.getItem("bibracte_website_pdata");null!=e&&(this.data=JSON.parse(e),this.data.version&&this.data.version==this.version||(this.data={}))}setItem(t,e){this.data[t]=e}getItem(t,e){return null!=this.data[t]?this.data[t]:e}removeItem(t){delete this.data[t]}save(){Xu(this.platformId)||"true"===localStorage.getItem("bibracte_cookies_pdata")&&(this.data.version=this.version,localStorage.setItem("bibracte_website_pdata",JSON.stringify(this.data)))}getNumActLiked(){let t=0;for(let e in this.data)"activity_liked_"==e.substr(0,15)&&t++;return t}getLikedAct(){let t=[],e=[];for(let n in this.data)"activity_liked_"==n.substr(0,15)&&t.push({id:n.substr(15),ts:this.data[n]});t.sort((t,e)=>t.ts<e.ts?-1:t.ts==e.ts?0:t.ts>e.ts?1:void 0);for(let n of t)e.push(n.id);return e}}return t.\u0275fac=function(e){return new(e||t)(oi(mc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ob=(()=>{class t{constructor(t){this.router=t,this.searchText="",this.searchData="",this.lastSearch="",this.observeSearch=new Gf(""),this.backData=null,this.previousUrl="",this.currentUrl="",t.events.subscribe(t=>{t instanceof Tv&&(this.previousUrl=this.currentUrl,this.currentUrl=t.url,this.searchText="",this.observeSearch.next(""))})}setSearchText(t){this.searchText=t,this.observeSearch.next(t)}getSearchText(){return this.searchText}setSearchData(t){this.searchData=t}getSearchData(){return this.searchData}searchObservable(){return this.observeSearch.asObservable()}setLastSearch(t){this.lastSearch=t}getLastSearch(){return this.lastSearch}setBackData(t){this.backData=t}getBackData(){return this.backData&&this.backData[1]==this.previousUrl?this.backData:null}}return t.\u0275fac=function(e){return new(e||t)(oi(Yx))},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sb=(()=>{class t{constructor(t){this.sanitizer=t}transform(t,e){switch(e){case"html":return this.sanitizer.bypassSecurityTrustHtml(t);case"style":return this.sanitizer.bypassSecurityTrustStyle(t);case"script":return this.sanitizer.bypassSecurityTrustScript(t);case"url":return this.sanitizer.bypassSecurityTrustUrl(t);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(t);default:throw new Error(`Invalid safe type specified: ${e}`)}}}return t.\u0275fac=function(e){return new(e||t)(wo(Mh))},t.\u0275pipe=Zt({name:"safe",type:t,pure:!0}),t})();function kb(t,e){if(1&t&&(Mo(0,"div",4),So(1,"div",5),Bl(2,"safe"),So(3,"div",6),Bl(4,"
1safe"),Oo()),2&t){const t=Bo(2);Qr(1),Co("innerHtml",Nl(2,2,t.data.titre,"html"),Ki),Qr(2),Co("innerHtml",Nl(4,5,t.data.duree,"html"),Ki)}}function Tb(t,e){if(1&t){const t=Io();Mo(0,"div",1),Mo(1,"div",2),Lo("plyrInit",function(e){return Ae(t),Bo().registerPlyr(e)})("plyrPlay",function(){return Ae(t),Bo().plyrPlay()})("plyrPause",function(){return Ae(t),Bo().plyrPause()}),Oo(),xo(2,kb,5,8,"div",3),Oo()}if(2&t){const t=Bo();Qr(1),Co("plyrTitle",t.data.titre)("plyrPoster",t.data.preview.url)("plyrPlaysInline",!0)("plyrSources",t.videoSources)("plyrOptions",t.options),Qr(1),Co("ngIf",!t.launched)}}let Eb=(()=>{class t{constructor(t){this.platformId=t,this.previewUrl="",this.forceRatio=!1,this.isServer=!0,this.launched=!1,this.paused=!0,this.isServer=Xu(t)}ngOnInit(){let t="youtube";if(null==this.data&&null!=this.resourceData){let e=Object.keys(this.resourceData),n=this.resourceData[e[0]];this.data={url:n["data-url"],titre:n.legend,duree:"",preview:{url:this.resourceData.preview_url}},-1!=this.data.url.search("vimeo")?t="vimeo":-1!=this.data.url.search("nakala")&&(t="html5")}null==this.data&&null==this.resourceData&&null!=this.url&&(this.data={url:this.url,titre:"",duree:"",preview:{url:this.previewUrl}},t="html5"),this.videoSources=[{src:this.data.url,provider:t}],this.options=this.forceRatio?{controls:["play-large","play","progress","current-time","volume","fullscreen"],ratio:"16:9"}:{controls:["play-large","play","progress","current-time","volume","fullscreen"]}}plyrPlay(){this.launched=!0,this.paused=!1}plyrPause(){this.paused=!0}registerPlyr(t){this.plyr=t}playVideo(){this.plyr.play()}}return t.\u0275fac=function(e){return new(e||t)(wo(mc))},t.\u0275cmp=Ut({type:t,selectors:[["app-video-player"]],inputs:{data:"data",resourceData:"resourceData",url:"url",previewUrl:"previewUrl",forceRatio:"forceRatio"},decls:1,vars:1,consts:[["class","video_player_cont",4,"ngIf"],[1,"video_player_cont"],["plyr","","plyrType","video",1,"plyr_video",2,"width","100%",3,"plyrTitle","plyrPoster","plyrPlaysInline","plyrSources","plyrOptions","plyrInit","plyrPlay","plyrPause"],["class","video_player_overlay",4,"ngIf"],[1,"video_player_overlay"],[1,"video_title","bib_title4",3,"innerHtml"],[1,"video_time","bib_mentions",3,"innerHtml"]],template:function(t,e){1&t&&xo(0,Tb,3,6,"div",0),2&t&&Co("ngIf",!e.isServer)},directives:[zu,p_],pipes:[Sb],styles:[".video_player_cont[_ngcontent-%COMP%]{position:relative;width:100%}.video_player_overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;pointer-events:none}.video_title[_ngcontent-%COMP%]{color:#fff;margin-top:6rem}.video_time[_ngcontent-%COMP%]{color:#fff}"]}),t})();function Ib(){return(Ib=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var Ab={update:function(){var t=this,e=t.rtl,n=t.params.pagination;if(n.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var i,r=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,s=t.pagination.$el,o=t.params.loop?Math.ceil((r-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?((i=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup))>r-1-2*t.loopedSlides&&(i-=r-2*t.loopedSlides),i>o-1&&(i-=o),i<0&&"bullets"!==t.params.paginationType&&(i=o+i)):i=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){var a,l,c,u=t.pagination.bullets;if(n.dynamicBullets&&(t.pagination.bulletSize=u.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),s.css(t.isHorizontal()?"width":"height",t.pagination.bulletSize*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=i-t.previousIndex,t.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),c=((l=(a=i-t.pagination.dynamicBulletIndex)+(Math.min(u.length,n.dynamicMainBullets)-1))+a)/2),u.removeClass(n.bulletActiveClass+" "+n.bulletActiveClass+"-next "+n.bulletActiveClass+"-next-next "+n.bulletActiveClass+"-prev "+n.bulletActiveClass+"-prev-prev "+n.bulletActiveClass+"-main"),s.length>1)u.each(function(t){var e=Ig(t),r=e.index();r===i&&e.addClass(n.bulletActiveClass),n.dynamicBullets&&(r>=a&&r<=l&&e.addClass(n.bulletActiveClass+"-main"),r===a&&e.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),r===l&&e.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next"))});else{var h=u.eq(i),d=h.index();if(h.addClass(n.bulletActiveClass),n.dynamicBullets){for(var p=u.eq(a),m=u.eq(l),g=a;g<=l;g+=1)u.eq(g).addClass(n.bulletActiveClass+"-main");if(t.params.loop)if(d>=u.length-n.dynamicMainBullets){for(var f=n.dynamicMainBullets;f>=0;f-=1)u.eq(u.length-f).addClass(n.bulletActiveClass+"-main");
vendor: 7,278 bytes, line 1
1u.eq(u.length-n.dynamicMainBullets-1).addClass(n.bulletActiveClass+"-prev")}else p.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),m.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next");else p.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),m.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next")}}if(n.dynamicBullets){var _=Math.min(u.length,n.dynamicMainBullets+4),v=(t.pagination.bulletSize*_-t.pagination.bulletSize)/2-c*t.pagination.bulletSize,y=e?"right":"left";u.css(t.isHorizontal()?y:"top",v+"px")}}if("fraction"===n.type&&(s.find(Fg(n.currentClass)).text(n.formatFractionCurrent(i+1)),s.find(Fg(n.totalClass)).text(n.formatFractionTotal(o))),"progressbar"===n.type){var x;x=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";var b=(i+1)/o,w=1,C=1;"horizontal"===x?w=b:C=b,s.find(Fg(n.progressbarFillClass)).transform("translate3d(0,0,0) scaleX("+w+") scaleY("+C+")").transition(t.params.speed)}"custom"===n.type&&n.renderCustom?(s.html(n.renderCustom(t,i+1,o)),t.emit("paginationRender",s[0])):t.emit("paginationUpdate",s[0]),t.params.watchOverflow&&t.enabled&&s[t.isLocked?"addClass":"removeClass"](n.lockClass)}},render:function(){var t=this,e=t.params.pagination;if(e.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,i=t.pagination.$el,r="";if("bullets"===e.type){var s=t.params.loop?Math.ceil((n-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&!t.params.loop&&s>n&&(s=n);for(var o=0;o<s;o+=1)r+=e.renderBullet?e.renderBullet.call(t,o,e.bulletClass):"<"+e.bulletElement+' class="'+e.bulletClass+'"></'+e.bulletElement+">";i.html(r),t.pagination.bullets=i.find(Fg(e.bulletClass))}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):'<span class="'+e.currentClass+'"></span> / <span class="'+e.totalClass+'"></span>',i.html(r)),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):'<span class="'+e.progressbarFillClass+'"></span>',i.html(r)),"custom"!==e.type&&t.emit("paginationRender",t.pagination.$el[0])}},init:function(){var t=this;t.params.pagination=Bg(t.$el,t.params.pagination,t.params.createElements,{el:"swiper-pagination"});var e=t.params.pagination;if(e.el){var n=Ig(e.el);0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&n.length>1&&(n=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&n.addClass(e.clickableClass),n.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(n.addClass(""+e.modifierClass+e.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.addClass(e.progressbarOppositeClass),e.clickable&&n.on("click",Fg(e.bulletClass),function(e){e.preventDefault();var n=Ig(this).index()*t.params.slidesPerGroup;t.params.loop&&(n+=t.loopedSlides),t.slideTo(n)}),Lg(t.pagination,{$el:n,el:n[0]}),t.enabled||n.addClass(e.lockClass))}},destroy:function(){var t=this,e=t.params.pagination;if(e.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var n=t.pagination.$el;n.removeClass(e.hiddenClass),n.removeClass(e.modifierClass+e.type),t.pagination.bullets&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&n.off("click",Fg(e.bulletClass))}}},zb={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(t){return t},formatFractionTotal:function(t){return t},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){Rg(this,{pagination:Ib({dynamicBulletIndex:0},Ab)})},on:{init:function(t){t.pagination.init(),t.pagination.render(),t.pagination.update()},activeIndexChange:function(t){(t.params.loop||void 0===t.snapIndex)&&t.pagination.update()},snapIndexChange:function(t){t.params.loop||t.pagination.update()},slidesLengthChange:function(t){t.params.loop&&(t.pagination.render(),t.pagination.update())},snapGridLengthChange:function(t){t.params.loop||(t.pagination.render(),t.pagination.update())},destroy:function(t){t.pagination.destroy()},"enable disable":function(t){var e=t.pagination.$el;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)},click:function(t,e){var n=e.target;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!Ig(n).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&n===t.navigation.nextEl||t.navigation.prevEl&&n===t.navigation.prevEl))return;var i=t.pagination.$el.hasClass(t.params.pagination.hiddenClass);t.emit(!0===i?"paginationShow":"paginationHide"),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass)}}}};function Db(){return(Db=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var Lb={toggleEl:function(t,e){t[e?"addClass":"removeClass"](this.params.navigation.disabledClass),t[0]&&"BUTTON"===t[0].tagName&&(t[0].disabled=e)},update:function(){var t=this,e=t.params.navigation,n=t.navigation.toggleEl;if(!t.params.loop){var i=t.navigation,r=i.$nextEl,s=i.$prevEl;s&&s.length>0&&(n(s,!!t.isBeginning),t.params.watchOverflow&&t.enabled&&s[t.isLocked?"addClass":"removeClass"](e.lockClass)),r&&r.length>0&&(n(r,!!t.isEnd),t.params.watchOverflow&&t.enabled&&r[t.isLocked?"addClass":"removeClass"](e.lockClass))}},onPrevClick:function(t){var e=this;t.preventDefault(),e.isBeginning&&!e.params.loop||e.slidePrev()},onNextClick:function(t){var e=this;t.preventDefault(),e.isEnd&&!e.params.loop||e.slideNext()},init:function(){var t,e,n=this,i=n.params.navigation;n.params.navigation=Bg(n.$el,n.params.navigation,n.params.createElements,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),(i.nextEl||i.prevEl)&&(i.nextEl&&(t=Ig(i.nextEl),n.params.uniqueNavElements&&"string"==typeof i.nextEl&&t.length>1&&1===n.$el.find(i.nextEl).length&&(t=n.$el.find(i.nextEl))),i.prevEl&&(e=Ig(i.prevEl),n.params.uniqueNavElements&&"string"==typeof i.prevEl&&e.length>1&&1===n.$el.find(i.prevEl).length&&(e=n.$el.find(i.prevEl))),t&&t.length>0&&t.on("click",n.navigation.onNextClick),e&&e.length>0&&e.on("click",n.navigation.onPrevClick),Lg(n.navigation,{$nextEl:t,nextEl:t&&t[0],$prevEl:e,prevEl:e&&e[0]}),n.enabled||(t&&t.addClass(i.lockClass),e&&e.addClass(i.lockClass)))},destroy:function(){var t=this,e=t.navigation,n=e.$nextEl,i=e.$prevEl;
1n&&n.length&&(n.off("click",t.navigation.onNextClick),n.removeClass(t.params.navigation.disabledClass)),i&&i.length&&(i.off("click",t.navigation.onPrevClick),i.removeClass(t.params.navigation.disabledClass))}},Rb={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){Rg(this,{navigation:Db({},Lb)})},on:{init:function(t){t.navigation.init(),t.navigation.update()},toEdge:function(t){t.navigation.update()},fromEdge:function(t){t.navigation.update()},destroy:function(t){t.navigation.destroy()},"enable disable":function(t){var e=t.navigation,n=e.$nextEl,i=e.$prevEl;n&&n[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),i&&i[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)},click:function(t,e){var n=t.navigation,i=n.$nextEl,r=n.$prevEl,s=e.target;if(t.params.navigation.hideOnClick&&!Ig(s).is(r)&&!Ig(s).is(i)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===s||t.pagination.el.contains(s)))return;var o;i?o=i.hasClass(t.params.navigation.hiddenClass):r&&(o=r.hasClass(t.params.navigation.hiddenClass)),t.emit(!0===o?"navigationShow":"navigationHide"),i&&i.toggleClass(t.params.navigation.hiddenClass),r&&r.toggleClass(t.params.navigation.hiddenClass)}}}};function Fb(){return(Fb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var Bb={run:function(){var t=this,e=t.slides.eq(t.activeIndex),n=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(n=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=Ag(function(){var e;t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),e=t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(e=t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(e=t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),e=t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(e=t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(e=t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")),(t.params.cssMode&&t.autoplay.running||!1===e)&&t.autoplay.run()},n)},start:function(){var t=this;return void 0===t.autoplay.timeout&&!t.autoplay.running&&(t.autoplay.running=!0,t.emit("autoplayStart"),t.autoplay.run(),!0)},stop:function(){var t=this;return!!t.autoplay.running&&void 0!==t.autoplay.timeout&&(t.autoplay.timeout&&(clearTimeout(t.autoplay.timeout),t.autoplay.timeout=void 0),t.autoplay.running=!1,t.emit("autoplayStop"),!0)},pause:function(t){var e=this;e.autoplay.running&&(e.autoplay.paused||(e.autoplay.timeout&&clearTimeout(e.autoplay.timeout),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach(function(t){e.$wrapperEl[0].addEventListener(t,e.autoplay.onTransitionEnd)}):(e.autoplay.paused=!1,e.autoplay.run())))},onVisibilityChange:function(){var t=this,e=pg();"hidden"===e.visibilityState&&t.autoplay.running&&t.autoplay.pause(),"visible"===e.visibilityState&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},onTransitionEnd:function(t){var e=this;e&&!e.destroyed&&e.$wrapperEl&&t.target===e.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(function(t){e.$wrapperEl[0].removeEventListener(t,e.autoplay.onTransitionEnd)}),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())},onMouseEnter:function(){var t=this;t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause(),["transitionend","webkitTransitionEnd"].forEach(function(e){t.$wrapperEl[0].removeEventListener(e,t.autoplay.onTransitionEnd)})},onMouseLeave:function(){var t=this;t.params.autoplay.disableOnInteraction||(t.autoplay.paused=!1,t.autoplay.run())},attachMouseEvents:function(){var t=this;t.params.autoplay.pauseOnMouseEnter&&(t.$el.on("mouseenter",t.autoplay.onMouseEnter),t.$el.on("mouseleave",t.autoplay.onMouseLeave))},detachMouseEvents:function(){var t=this;t.$el.off("mouseenter",t.autoplay.onMouseEnter),t.$el.off("mouseleave",t.autoplay.onMouseLeave)}},Nb={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}},create:function(){Rg(this,{autoplay:Fb({},Bb,{running:!1,paused:!1})})}
1,on:{init:function(t){t.params.autoplay.enabled&&(t.autoplay.start(),pg().addEventListener("visibilitychange",t.autoplay.onVisibilityChange),t.autoplay.attachMouseEvents())},beforeTransitionStart:function(t,e,n){t.autoplay.running&&(n||!t.params.autoplay.disableOnInteraction?t.autoplay.pause(e):t.autoplay.stop())},sliderFirstMove:function(t){t.autoplay.running&&(t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause())},touchEnd:function(t){t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&t.autoplay.run()},destroy:function(t){t.autoplay.detachMouseEvents(),t.autoplay.running&&t.autoplay.stop(),pg().removeEventListener("visibilitychange",t.autoplay.onVisibilityChange)}}};function Ub(){return(Ub=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var Hb={setTranslate:function(){for(var t=this,e=t.slides,n=0;n<e.length;n+=1){var i=t.slides.eq(n),r=-i[0].swiperSlideOffset;t.params.virtualTranslate||(r-=t.translate);var s=0;t.isHorizontal()||(s=r,r=0);var o=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:o}).transform("translate3d("+r+"px, "+s+"px, 0px)")}},setTransition:function(t){var e=this,n=e.slides,i=e.$wrapperEl;if(n.transition(t),e.params.virtualTranslate&&0!==t){var r=!1;n.transitionEnd(function(){if(!r&&e&&!e.destroyed){r=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],n=0;n<t.length;n+=1)i.trigger(t[n])}})}}},jb={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){Rg(this,{fadeEffect:Ub({},Hb)})},on:{beforeInit:function(t){if("fade"===t.params.effect){t.classNames.push(t.params.containerModifierClass+"fade");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};Lg(t.params,e),Lg(t.originalParams,e)}},setTranslate:function(t){"fade"===t.params.effect&&t.fadeEffect.setTranslate()},setTransition:function(t,e){"fade"===t.params.effect&&t.fadeEffect.setTransition(e)}}};function Vb(t,e){1&t&&(So(0,"div",9),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(2).data.chapo,"html"),Ki)}const $b=function(t){return{bib_grid:t}},qb=function(t){return{draft:t}};function Gb(t,e){if(1&t&&(Mo(0,"div",5),Mo(1,"div",6),So(2,"div",7),Bl(3,"safe"),xo(4,Vb,2,4,"div",8),Oo(),Oo()),2&t){const t=Bo();Co("ngClass",Il(7,$b,t.fullwidth)),Qr(2),Co("innerHtml",Nl(3,4,t.data.titre,"html"),Ki)("ngClass",Il(9,qb,"0"==t.data.status)),Qr(2),Co("ngIf",t.data.chapo)}}const Zb=function(t){return{fullwidth:t}},Wb=function(t){return{"background-image":t}};let Xb=(()=>{class t{constructor(t){this.deviceQueryService=t,this.fullwidth=!1}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(wo(Pb))},t.\u0275cmp=Ut({type:t,selectors:[["app-card-page"]],inputs:{data:"data",fullwidth:"fullwidth"},decls:5,vars:7,consts:[[1,"page_card","in_scrollable",3,"ngClass"],[1,"page_img"],[1,"page_visuel","lazy_bg",3,"ngStyle"],[1,"page_infos"],[3,"nestedEllipsis"],[1,"page_infos_wrapper",3,"ngClass"],[1,"page_infos_content"],[1,"page_infos_title","bib_title4","ignore_p_margin",3,"innerHtml","ngClass"],["class","bib_mentions ignore_p_margin",3,"innerHtml",4,"ngIf"],[1,"bib_mentions","ignore_p_margin",3,"innerHtml"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),So(2,"div",2),Oo(),Mo(3,"div",3),xo(4,Gb,5,11,"ng-template",4),Oo(),Oo()),2&t&&(Co("ngClass",Il(3,Zb,e.fullwidth)),Qr(2),Co("ngStyle",Il(5,Wb,e.data.visuel&&e.data.visuel.url?"url("+e.data.visuel.url+")":"none")),Qr(2),Co("nestedEllipsis",!e.fullwidth))},directives:[Tu,Uu,nv,zu],pipes:[Sb],styles:[".page_card[_ngcontent-%COMP%]{position:relative;flex:0 1 auto;min-width:min(83vw,300px);z-index:10}@media (min-width:992px){.page_card[_ngcontent-%COMP%]{min-width:100%;width:100%;margin:1rem 0}}.page_card[_ngcontent-%COMP%]   .page_img[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:100%}.page_card[_ngcontent-%COMP%]   .page_visuel[_ngcontent-%COMP%]{display:block;width:100%;padding-top:56.4%;background-color:#ccc;background-size:cover;background-position:50%;transition:all .5s}@media (min-width:992px){.page_card[_ngcontent-%COMP%]:hover   .page_visuel[_ngcontent-%COMP%]{transform:scale(1.03)}}.page_infos[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;background-color:#9ab400;color:#fff;padding:1.2rem;min-height:201px;max-height:201px;height:201px;overflow:hidden;transition:background-color .25s cubic-bezier(.55,.085,.68,.53)}@media (min-width:992px){.page_infos[_ngcontent-%COMP%]{padding:1.8rem;max-height:160px;min-height:160px;height:160px}.page_card[_ngcontent-%COMP%]:hover   .page_infos[_ngcontent-%COMP%]{background-color:#fff;color:#131313}}.page_infos_content[_ngcontent-%COMP%], .page_infos_wrapper[_ngcontent-%COMP%]{width:100%;height:100%}.page_infos_content[_ngcontent-%COMP%]   .bib_mentions[_ngcontent-%COMP%]{line-height:148.5%}.page_card.fullwidth[_ngcontent-%COMP%]{width:100%!important}.page_card.fullwidth[_ngcontent-%COMP%]   .page_infos[_ngcontent-%COMP%]{max-height:none;min-height:0;height:auto;padding:1.2rem 0;overflow:visible}.page_card.fullwidth[_ngcontent-%COMP%]   .page_infos_wrapper[_ngcontent-%COMP%]{width:auto}.page_card.fullwidth[_ngcontent-%COMP%]   .page_infos_content[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}.page_infos_title[_ngcontent-%COMP%]{margin-bottom:.35rem}"]}),t})();
1const Qb=Uh("slideUpDown",[$h("*",Vh({height:0,marginLeft:0,marginRight:0,marginTop:0,marginBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0})),$h("closed",Vh({position:"relative",height:0,marginLeft:0,marginRight:0,marginTop:0,marginBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0})),$h("open",Vh({position:"relative",height:"*",marginLeft:"*",marginRight:"*",marginTop:"*",marginBottom:"*",paddingLeft:"*",paddingRight:"*",paddingTop:"*",paddingBottom:"*"})),$h("mobile_closed",Vh({position:"absolute",left:"-100%",width:"80%",padding:"0 5%",top:"3.5rem"})),$h("mobile_open",Vh({position:"absolute",left:"0",width:"80%",padding:"0 5%",top:"3.5rem"})),qh("* => *",[Hh(".25s cubic-bezier(0.55,.085,.68,.53)")])]),Kb=Uh("recitAnim",[$h("in",Vh({opacity:1,position:"absolute",left:"{{g_left}}px",top:"{{g_top}}px",width:"{{g_width}}px",height:"{{g_height}}px"}),{params:{g_left:0,g_top:0,g_width:0,g_height:0}}),qh(":enter",[Vh({opacity:1,position:"absolute",left:"{{s_left}}px",top:"{{s_top}}px",width:"{{s_width}}px",height:"{{s_height}}px"}),Hh(".75s cubic-bezier(0.55,.085,.68,.53)")])]);function Yb(t,e){if(1&t&&(Mo(0,"div",5),Mo(1,"div",6),So(2,"img",7),Oo(),So(3,"div",8),Oo()),2&t){const t=e.$implicit;Qr(2),ea("picto_"+t.type_activite.tid),Co("src","assets/img/offre_"+t.type_activite.tid+".svg",Yi),Qr(1),Co("innerHtml",t.description,Ki)}}let Jb=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-offre-groupee"]],inputs:{data:"data",texts:"texts"},decls:7,vars:10,consts:[[1,"offre_title","bib_title3",3,"innerHtml"],[1,"offre_slogan","bib_title4","ignore_p_margin",3,"innerHtml"],[1,"offre_formule",3,"innerHtml"],[1,"offre_items"],["class","offre_item",4,"ngFor","ngForOf"],[1,"offre_item"],[1,"offre_item_picto"],[3,"src"],[1,"offre_item_txt","ignore_p_margin",3,"innerHtml"]],template:function(t,e){1&t&&(So(0,"div",0),Bl(1,"safe"),So(2,"div",1),Bl(3,"safe"),So(4,"div",2),Mo(5,"div",3),xo(6,Yb,4,4,"div",4),Oo()),2&t&&(Co("innerHtml",Nl(1,4,e.texts.offre_groupee,"html"),Ki),Qr(2),Co("innerHtml",Nl(3,7,e.data.slogan,"html"),Ki),Qr(2),Co("innerHtml",e.texts.la_formule_comprend,Ki),Qr(2),Co("ngForOf",e.data.items))},directives:[Iu],pipes:[Sb],styles:[".offre_title[_ngcontent-%COMP%]{color:#5298f9;margin-bottom:.5rem}.offre_slogan[_ngcontent-%COMP%]{margin-bottom:1.56rem}.offre_items[_ngcontent-%COMP%]{margin-top:.87rem}.offre_item[_ngcontent-%COMP%]{display:flex;align-items:center}.offre_item[_ngcontent-%COMP%]   .offre_item_picto[_ngcontent-%COMP%]{margin-right:.5rem;text-align:center;width:28px}.offre_item[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]}),t})();function tw(t,e){if(1&t&&(Mo(0,"div",4),Mo(1,"div",5),So(2,"img",6),Oo(),Mo(3,"div",7),So(4,"div",8),Bl(5,"safe"),Oo(),Oo()),2&t){const t=Bo();Qr(4),Co("innerHtml",Nl(5,1,t.data.dates,"html"),Ki)}}function ew(t,e){if(1&t&&(Mo(0,"div",4),Mo(1,"div",5),So(2,"img",9),Oo(),Mo(3,"div",7),So(4,"div",8),Bl(5,"safe"),Oo(),Oo()),2&t){const t=Bo();Qr(4),Co("innerHtml",Nl(5,1,t.data.tarifs,"html"),Ki)}}function nw(t,e){if(1&t&&(Mo(0,"div",4),Mo(1,"div",5),So(2,"img",10),Oo(),Mo(3,"div",7),So(4,"div",8),Bl(5,"safe"),Oo(),Oo()),2&t){const t=Bo();Qr(4),Co("innerHtml",Nl(5,1,t.data.duree,"html"),Ki)}}function iw(t,e){if(1&t&&(Mo(0,"div",4),Mo(1,"div",5),So(2,"img",11),Oo(),Mo(3,"div",7),So(4,"div",8),Bl(5,"safe"),Oo(),Oo()),2&t){const t=Bo();Qr(4),Co("innerHtml",Nl(5,1,t.data.rdv,"html"),Ki)}}function rw(t,e){if(1&t&&(Mo(0,"div",4),Mo(1,"div",5),So(2,"img",12),Oo(),Mo(3,"div",7),So(4,"div",8),Bl(5,"safe"),Oo(),Oo()),2&t){const t=Bo();Qr(4),Co("innerHtml",Nl(5,1,t.data.conseil,"html"),Ki)}}function sw(t,e){if(1&t&&(Mo(0,"div",4),Mo(1,"div",5),So(2,"img",13),Oo(),Mo(3,"div",7),So(4,"div",8),Bl(5,"safe"),Oo(),Oo()),2&t){const t=Bo();Qr(4),Co("innerHtml",Nl(5,1,t.data.reservation,"html"),Ki)}}const ow=function(t){return{standalone:t}};let aw=(()=>{class t{constructor(){this.standalone=!1}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-infos-pratiques"]],inputs:{data:"data",texts:"texts",standalone:"standalone"},decls:10,vars:13,consts:[[1,"details_pratiques",3,"ngClass"],[1,"details_cont"],[1,"header_pratiques","bib_title3",3,"innerHtml"],["class","info_pratiques",4,"ngIf"],[1,"info_pratiques"],[1,"picto_pratiques"],["src","/assets/img/calendar_pratiques.svg"],[1,"texte_pratiques"],[1,"div_texte_pratiques","ignore_p_margin",3,"innerHtml"],["src","/assets/img/tarif_pratiques.svg"],["src","/assets/img/clock_pratiques.svg"],["src","/assets/img/pin_pratiques.svg"],["src","/assets/img/note_pratiques.svg"],["src","/assets/img/phone_pratiques.svg"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),So(2,"div",2),Bl(3,"safe"),xo(4,tw,6,4,"div",3),xo(5,ew,6,4,"div",3),xo(6,nw,6,4,"div",3),xo(7,iw,6,4,"div",3),xo(8,rw,6,4,"div",3),xo(9,sw,6,4,"div",3),Oo(),Oo()),2&t&&(Co("ngClass",Il(11,ow,e.standalone)),Qr(2),Co("innerHtml",Nl(3,8,e.texts.infos_pratiques,"html"),Ki),Qr(2),Co("ngIf",e.data.dates),Qr(1),Co("ngIf",e.data.tarifs),Qr(1),Co("ngIf",e.data.duree),Qr(1),Co("ngIf",e.data.rdv),Qr(1),Co("ngIf",e.data.conseil&&""!=e.data.conseil),Qr(1),Co("ngIf",e.data.reservation))},directives:[Tu,zu],pipes:[Sb],styles:[".details_pratiques[_ngcontent-%COMP%]{background-color:#131313;background-image:url(/assets/img/courbes_niveau.png);background-size:cover;background-position:50%;color:#fff;padding:3.3rem 40px 3rem}@media (min-width:992px){.details_pratiques[_ngcontent-%COMP%]{padding:1.8rem}}.header_pratiques[_ngcontent-%COMP%]{margin-bottom:1.8rem}@media (min-width:992px){.header_pratiques[_ngcontent-%COMP%]{margin-bottom:2.7rem}}.info_pratiques[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-start;margin-bottom:30px}.picto_pratiques[_ngcontent-%COMP%]{flex:0 1 auto;width:25px;margin-right:1rem;text-align:center}@media (min-width:992px){.picto_pratiques[_ngcontent-%COMP%]{width:30px;margin-right:1.8rem}}.picto_pratiques[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:inline-block;max-width:100%}.texte_pratiques[_ngcontent-%COMP%]{flex:0 1 100%}.details_pratiques.standalone[_ngcontent-%COMP%]   .header_pratiques[_ngcontent-%COMP%]{margin-bottom:1.8rem}@media (min-width:992px){.details_pratiques.standalone[_ngcontent-%COMP%]   .header_pratiques[_ngcontent-%COMP%]{margin-bottom:3.12rem}.details_pratiques.standalone[_ngcontent-%COMP%]   .info_pratiques[_ngcontent-%COMP%]{margin-bottom:2.5rem}.details_pratiques.standalone[_ngcontent-%COMP%]   .picto_pratiques[_ngcontent-%COMP%]{margin-left:calc(.25 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));margin-right:calc(.5 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){.details_pratiques.standalone[_ngcontent-%COMP%]   .picto_pratiques[_ngcontent-%COMP%]{margin-left:calc(calc(.25 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.details_pratiques.standalone[_ngcontent-%COMP%]   .picto_pratiques[_ngcontent-%COMP%]{margin-left:calc(calc(.25 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.details_pratiques.standalone[_ngcontent-%COMP%]   .picto_pratiques[_ngcontent-%COMP%]{margin-left:calc(calc(.25 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.details_pratiques.standalone[_ngcontent-%COMP%]   .picto_pratiques[_ngcontent-%COMP%]{margin-left:calc(calc(55px * .25) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){.details_pratiques.standalone[_ngcontent-%COMP%]   .picto_pratiques[_ngcontent-%COMP%]{margin-right:calc(calc(.5 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.details_pratiques.standalone[_ngcontent-%COMP%]   .picto_pratiques[_ngcontent-%COMP%]{margin-right:calc(calc(.5 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.details_pratiques.standalone[_ngcontent-%COMP%]   .picto_pratiques[_ngcontent-%COMP%]{margin-right:calc(calc(.5 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.details_pratiques.standalone[_ngcontent-%COMP%]   .picto_pratiques[_ngcontent-%COMP%]{margin-right:calc(calc(55px * .5) + calc(60px * 0))}}@media (min-width:992px){.details_pratiques.standalone[_ngcontent-%COMP%]{padding:6.25rem calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){.details_pratiques.standalone[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.details_pratiques.standalone[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.details_pratiques.standalone[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.details_pratiques.standalone[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){.details_pratiques.standalone[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.details_pratiques.standalone[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.details_pratiques.standalone[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.details_pratiques.standalone[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}"]}),t})();function lw(t,e){if(1&t&&(Mo(0,"div",15),So(1,"div",16),Bl(2,"safe"),So(3,"div",17),Oo()),2&t){const t=Bo();Co("id","act-slogan-"+t.act.nid),Qr(1),Co("innerHtml",Nl(2,2,t.act.slogan,"html"),Ki)}}function cw(t,e){1&t&&So(0,"div",20),2&t&&Co("innerHtml",e.$implicit.label,Ki)}function uw(t,e){if(1&t&&(Mo(0,"div",18),xo(1,cw,1,1,"div",19),Oo()),2&t){const t=Bo();Qr(1),Co("ngForOf",t.act.theme)}}function hw(t,e){if(1&t){const t=Io();Mo(0,"div",21),Lo("click",function(e){return Ae(t),Bo().onLikeClicked(e)}),Oo()}}const dw=function(t){return{draft:t}};function pw(t,e){if(1&t&&(So(0,"div",22),Bl(1,"safe")),2&t){const t=Bo();Co("innerHtml",Nl(1,2,t.act.titre,"html"),Ki)("ngClass",Il(5,dw,"0"==t.act.status))}}function mw(t,e){if(1&t&&(Mo(0,"div",23),So(1,"div",24),So(2,"span",25),Bl(3,"safe"),Oo()),2&t){const t=Bo();Qr(2),Co("innerHtml",Nl(3,1,t.act.contextualDates,"html"),Ki)}}function gw(t,e){1&t&&(Mo(0,"div",29),da(1,"\u2014"),Oo())}function fw(t,e){1&t&&(So(0,"div",30),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(2).act.kidslabel,"html"),Ki)}function _w(t,e){if(1&t&&(Mo(0,"div",23),So(1,"div",26),So(2,"span",25),Bl(3,"safe"),xo(4,gw,2,0,"div",27),xo(5,fw,2,4,"div",28),Oo()),2&t){const t=Bo();Qr(2),Co("innerHtml",Nl(3,3,t.act.duree_reelle,"html"),Ki),Qr(2),Co("ngIf",t.act.kidsfriendly),Qr(1),Co("ngIf",t.act.kidsfriendly)}}function vw(t,e){if(1&t&&(Mo(0,"div",39),So(1,"app-offre-groupee",40),Oo()),2&t){const t=Bo(2);Qr(1),Co("texts",t.texts)("data",t.act.package)}}function yw(t,e){1&t&&(So(0,"div",41),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(2).act.sous_titre,"html"),Ki)}function xw(t,e){1&t&&(So(0,"div",42),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(2).act.description_courte,"html"),Ki)}function bw(t,e){if(1&t&&So(0,"app-infos-pratiques",43),2&t){const t=Bo(2);Co("data",t.act.informations_pratiques)("texts",t.texts)}}function ww(t,e){if(1&t){const t=Io();Mo(0,"div",44),Mo(1,"div",45),Lo("click",function(e){Ae(t);const n=Bo(2);return n.onLinkClicked(e,n.act)}),Oo(),Mo(2,"div",46),Lo("click",function(){return Ae(t),Bo(2).onCardClicked()}),Oo(),Oo()}if(2&t){const t=Bo(2);Qr(1),Co("innerHtml",t.texts.voir_activite,Ki)}}function Cw(t,e){if(1&t&&(Mo(0,"div",31),xo(1,vw,2,2,"div",32),Mo(2,"div",33),xo(3,yw,2,4,"div",34),xo(4,xw,2,4,"div",35),Mo(5,"div",36),da(6),Oo(),Oo(),xo(7,bw,1,2,"app-infos-pratiques",37),xo(8,ww,3,1,"div",38),Oo()),2&t){const t=Bo();
1Co("@slideUpDown",t.act.open?"open":"closed"),Qr(1),Co("ngIf",t.act.package),Qr(2),Co("ngIf",t.act.sous_titre),Qr(1),Co("ngIf",t.act.description_courte),Qr(2),pa(t.act.computedTags),Qr(1),Co("ngIf",t.act.informations_pratiques),Qr(1),Co("ngIf",t.likeable)}}const Pw=function(t,e,n,i,r,s,o,a,l,c,u,h){return{last:t,fullwidth:e,unopenable:n,in_scrollable:i,fromcarousel:r,fromacts:s,withbottom:o,hidden:a,highlight:l,open:c,liked:u,mobile:h}},Mw=function(t){return{"background-image":t}},Ow=function(t,e,n){return{desktop_only:t,hidden:e,rotate:n}};let Sw=(()=>{class t{constructor(t,e,n){this.router=t,this.deviceQueryService=e,this.persistantDataService=n,this.nobottom=!1,this.fromacts=!1,this.fromcarousel=!1,this.fullwidth=!1,this.last=!1,this.likeable=!0,this.cardClicked=new Vl,this.likeClicked=new Vl,this.cardHover=new Vl,this.cardHout=new Vl}ngOnInit(){let t=this.deviceQueryService.isMobile();if(this.act.filtered=!1,this.act.open=!1,this.act.hover=!1,this.act.scrolled=!1,this.act.mobile=t,this.act.liked=0!=this.persistantDataService.getItem("activity_liked_"+this.act.nid,!1),this.act.kidsfriendly=!1,this.act.public){for(let e in this.act.public)if("542"==this.act.public[e].tid){this.act.kidsfriendly=!0,this.act.kidslabel=this.act.public[e].label;break}}else this.act.enfant&&(this.act.kidsfriendly=!0,this.act.kidslabel=this.act.enfant);this.act.dates&&"string"==typeof this.act.dates&&""!=this.act.dates&&(this.act.contextualDates=this.act.dates),this.act.contextualDates||this.act.dates&&this.act.dates.contexte&&this.act.dates.contexte[0]&&"string"==typeof this.act.dates.contexte[0]&&(this.act.contextualDates=this.act.dates.contexte[0]),this.act.contextualDates||this.act.dates&&this.act.dates.contexte&&this.act.dates.contexte[0]&&this.act.dates.contexte[0].texte&&(this.act.contextualDates=this.act.dates.contexte[0].texte),this.act.computedOffre=this.act.liste_offre?this.act.liste_offre:this.act.type_activite,this.act.computedTags="",this.act.computedSloganStyle="",this.act.duree_reelle||"string"!=typeof this.act.duree||(this.act.duree_reelle=this.act.duree),!this.act.duree_reelle&&this.act.informations_pratiques&&this.act.informations_pratiques.duree_reelle&&(this.act.duree_reelle=this.act.informations_pratiques.duree_reelle);for(let e in this.act.tags)"0"!=e&&(this.act.computedTags+=", "),this.act.computedTags+=this.act.tags[e].label}onCardClicked(){this.cardClicked.emit(this.act)}onLikeClicked(t){this.likeClicked.emit(this.act),t.stopPropagation(),t.preventDefault()}onCardHover(){this.cardHover.emit(this.act)}onCardHout(){this.cardHout.emit(this.act)}onLinkClicked(t){this.router.navigateByUrl(this.act.url),t.preventDefault(),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(wo(Yx),wo(Pb),wo(Mb))},t.\u0275cmp=Ut({type:t,selectors:[["app-card-activity"]],inputs:{act:"act",texts:"texts",openable:"openable",nobottom:"nobottom",fromacts:"fromacts",fromcarousel:"fromcarousel",fullwidth:"fullwidth",last:"last",likeable:"likeable"},outputs:{cardClicked:"cardClicked",likeClicked:"likeClicked",cardHover:"cardHover",cardHout:"cardHout"},decls:17,vars:34,consts:[[1,"activity_card",3,"id","ngClass","mouseenter","mouseleave"],[1,"activity_img",3,"click"],[1,"activity_visuel","lazy_bg",3,"ngStyle"],["class","activity_slogan bib_title4",3,"id",4,"ngIf"],["class","activity_themes",4,"ngIf"],[1,"activity_infos","cursor",3,"id","click"],[1,"activity_type_wrapper"],[1,"flex-child","activity_type","bib_type",3,"innerHtml"],["class","flex-child activity_like component_like",3,"click",4,"ngIf"],[1,"activity_title_cont"],["nestedEllipsis",""],[1,"activity_pictos","ignore_p_margin"],["class","flex-child picto_container bib_mentions",4,"ngIf"],[1,"flex-child","component_arrow","details_arrow",3,"ngClass"],["class","activity_details",4,"ngIf"],[1,"activity_slogan","bib_title4",3,"id"],[1,"slogan_text",3,"innerHtml"],[1,"slogan_bubble"],[1,"activity_themes"],["class","activity_theme bib_mentions blurr",3,"innerHtml",4,"ngFor","ngForOf"],[1,"activity_theme","bib_mentions","blurr",3,"innerHtml"],[1,"flex-child","activity_like","component_like",3,"click"],[1,"activity_title","bib_title4",3,"innerHtml","ngClass"],[1,"flex-child","picto_container","bib_mentions"],[1,"flex-child2","activity_picto","picto_calendar"],[1,"flex-child2",3,"innerHtml"],[1,"flex-child2","activity_picto","picto_duration"],["class","flex-child bib_mentions lowmargin",4,"ngIf"],["class","flex-child bib_mentions",3,"innerHtml",4,"ngIf"],[1,"flex-child","bib_mentions","lowmargin"],[1,"flex-child","bib_mentions",3,"innerHtml"],[1,"activity_details"],["class","details_package",4,"ngIf"],[1,"details_edito"],["class","bib_title4",3,"innerHtml",4,"ngIf"],[3,"innerHtml",4,"ngIf"],[1,"details_tags","bib_tags"],[3,"data","texts",4,"ngIf"],["class","details_footer cursor",4,"ngIf"],[1,"details_package"],[3,"texts","data"],[1,"bib_title4",3,"innerHtml"],[3,"innerHtml"],[3,"data","texts"],[1,"details_footer","cursor"],[1,"flex-child","footer_link","bib_button",3,"innerHtml","click"],[1,"flex-child","details_arrow","component_arrow","rotate",3,"click"]],template:function(t,e){var n,i,r,s;1&t&&(Mo(0,"div",0),Lo("mouseenter",function(){return e.onCardHover()})("mouseleave",function(){return e.onCardHout()}),Mo(1,"div",1),Lo("click",function(){return e.onCardClicked()}),So(2,"div",2),xo(3,lw,4,5,"div",3),xo(4,uw,2,1,"div",4),Oo(),Mo(5,"div",5),Lo("click",function(){return e.onCardClicked()}),Mo(6,"div",6),So(7,"div",7),Bl(8,"safe"),xo(9,hw,1,0,"div",8),Oo(),Mo(10,"div",9),xo(11,pw,2,7,"ng-template",10),Oo(),Mo(12,"div",11),xo(13,mw,4,4,"div",12),xo(14,_w,6,6,"div",12),So(15,"div",13),Oo(),Oo(),xo(16,Cw,9,7,"div",14),Oo()),2&t&&(Co("id","act-card-"+e.act.nid)("ngClass",(n=15,i=Pw,r=[e.last,e.fullwidth,!e.openable,!e.fromacts,e.fromcarousel,e.fromacts,!e.nobottom,e.act.filtered,"1"==e.act.highlight,e.act.open||e.act.focus,e.act.liked,e.deviceQueryService.isMobile()],function(t,e,n,i,r,s){let o=e+n,a=!1;for(let l=0;l<r.length;l++)fo(t,o++,r[l])&&(a=!0);return a?mo(t,o,i.apply(s,r)):Ll(t,o)}(Ee(),Ue(),n,i,r,s))),Qr(2),Co("ngStyle",Il(28,Mw,e.act.visuel&&e.act.visuel.url?(e.deviceQueryService.isMobile()&&e.nobottom?"linear-gradient(0deg, rgba(0,0,0,0.45), rgba(0,0,0,0.45)), ":"")+"url("+e.act.visuel.url+")":"none")),Qr(1),Co("ngIf",e.act.slogan),Qr(1),Co("ngIf",e.act.theme),Qr(1),Co("id","activity_header_"+e.act.nid),Qr(2),Co("innerHtml",Nl(8,12,e.act.computedOffre,"html"),Ki),Qr(2),Co("ngIf",e.likeable),Qr(4),Co("ngIf",e.act.contextualDates),Qr(1),Co("ngIf",e.act.duree_reelle),Qr(1),Co("ngClass",zl(30,Ow,e.nobottom,!e.openable,e.act.open)),Qr(1),Co("ngIf",e.openable))},directives:[Tu,Uu,zu,nv,Iu,Jb,aw],pipes:[Sb],styles:[".activity_card.fromacts[_ngcontent-%COMP%]{margin-left:20px}.activity_card[_ngcontent-%COMP%]{position:relative;flex:0 1 auto;width:100%;z-index:10}@media (min-width:992px){.activity_card[_ngcontent-%COMP%]{min-width:100%;width:100%;margin:1rem 0}}.activity_card[_ngcontent-%COMP%]   .activity_img[_ngcontent-%COMP%]{position:relative;width:100%}@media (min-width:992px){.activity_card[_ngcontent-%COMP%]   .activity_img[_ngcontent-%COMP%]{overflow:hidden}}.activity_card[_ngcontent-%COMP%]   .activity_img[_ngcontent-%COMP%]   .activity_slogan[_ngcontent-%COMP%]{position:absolute;
1left:1.2rem;top:0;display:flex;justify-content:center;align-items:center;text-align:center;color:#fff;width:73px;height:73px;box-sizing:border-box;transform:translateY(-50%) rotate(-15deg);-ms-transform:translateY(-50%) rotate(-15deg);-webkit-transform:translateY(-50%) rotate(-15deg)}@media (min-width:992px){.activity_card[_ngcontent-%COMP%]   .activity_img[_ngcontent-%COMP%]   .activity_slogan[_ngcontent-%COMP%]{left:auto;top:auto;right:1.8rem;bottom:1.8rem;width:97px;height:97px;transform:rotate(-15deg);-ms-transform:rotate(-15deg);-webkit-transform:rotate(-15deg)}}.activity_card[_ngcontent-%COMP%]   .activity_img[_ngcontent-%COMP%]   .activity_slogan[_ngcontent-%COMP%]   .slogan_bubble[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;padding-top:100%;background-image:url(/assets/img/circle.svg);background-size:100%;z-index:0}.activity_card[_ngcontent-%COMP%]   .activity_img[_ngcontent-%COMP%]   .activity_slogan[_ngcontent-%COMP%]   .slogan_text[_ngcontent-%COMP%]{z-index:10;font-size:.9rem!important;line-height:117%!important;width:90%;overflow:hidden;box-sizing:border-box;max-height:3.7rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}@media (min-width:992px){.activity_card[_ngcontent-%COMP%]   .activity_img[_ngcontent-%COMP%]   .activity_slogan[_ngcontent-%COMP%]   .slogan_text[_ngcontent-%COMP%]{right:2rem;bottom:2rem;font-size:1rem!important;line-height:auto}}.activity_card[_ngcontent-%COMP%]   .activity_img[_ngcontent-%COMP%]   .activity_themes[_ngcontent-%COMP%]{position:absolute;left:1rem;bottom:.8rem;display:flex;flex-wrap:wrap;max-height:1.5rem;overflow:hidden}.activity_card[_ngcontent-%COMP%]   .activity_img[_ngcontent-%COMP%]   .activity_theme[_ngcontent-%COMP%]{text-align:center;padding:2px 1.25rem;color:#fff;background:#1313134d;border-radius:33px;margin-right:.625rem}.activity_card[_ngcontent-%COMP%]   .activity_visuel[_ngcontent-%COMP%]{display:block;width:100%;padding-top:79.3%;background-color:#ccc;background-size:cover;background-position:50%}@media (min-width:992px){.activity_card[_ngcontent-%COMP%]   .activity_visuel[_ngcontent-%COMP%]{padding-top:56.4%;transition:all .5s}}.activity_card[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .picto_calendar[_ngcontent-%COMP%]{background-image:url(/assets/img/calendar.svg)}.activity_card[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .picto_duration[_ngcontent-%COMP%]{background-image:url(/assets/img/clock.svg)}.activity_card[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .picto_kids[_ngcontent-%COMP%]{background-image:url(/assets/img/kids.svg)}.activity_card.last[_ngcontent-%COMP%]{margin-bottom:0}@media (min-width:992px){.activity_card[_ngcontent-%COMP%]:hover   .activity_visuel[_ngcontent-%COMP%]{transform:scale(1.03)}}.activity_card.fullwidth[_ngcontent-%COMP%]{width:100%}.activity_card[_ngcontent-%COMP%]:not(.fromacts).withbottom{margin-left:0!important}.activity_card.fromcarousel[_ngcontent-%COMP%]   .activity_infos[_ngcontent-%COMP%]{max-height:201px;min-height:201px}@media (min-width:992px){.activity_card.fromcarousel[_ngcontent-%COMP%]   .activity_infos[_ngcontent-%COMP%]{max-height:160px;min-height:160px}}.activity_card.withbottom[_ngcontent-%COMP%]   .activity_infos[_ngcontent-%COMP%]{position:relative;top:0;padding:1.8rem;background-color:#fff;color:#131313;max-height:201px;overflow:hidden}@media (min-width:992px){.activity_card.withbottom[_ngcontent-%COMP%]   .activity_infos[_ngcontent-%COMP%]{max-height:160px;min-height:160px}}.activity_card.withbottom[_ngcontent-%COMP%]   .activity_slogan[_ngcontent-%COMP%]{left:auto!important;top:auto!important;right:1.8rem!important;bottom:1.8rem!important;transform:rotate(-15deg)!important;-ms-transform:rotate(-15deg)!important;-webkit-transform:rotate(-15deg)!important}.activity_card.withbottom[_ngcontent-%COMP%]   .activity_type[_ngcontent-%COMP%]{color:#4762b2}.activity_card.withbottom[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%], .activity_card.withbottom[_ngcontent-%COMP%]   .activity_title[_ngcontent-%COMP%]{color:#131313}.activity_card.withbottom[_ngcontent-%COMP%]   .activity_visuel[_ngcontent-%COMP%]{padding-top:56.4%}.activity_infos[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:1.2rem;position:absolute;top:1.5rem;left:0}@media (min-width:992px){.activity_infos[_ngcontent-%COMP%]{transition:background-color .25s cubic-bezier(.55,.085,.68,.53);position:relative;top:0;padding:1.8rem;background-color:#fff;color:#131313}}.activity_infos[_ngcontent-%COMP%]   .activity_type_wrapper[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:.35rem}@media (min-width:992px){.activity_infos[_ngcontent-%COMP%]   .activity_type_wrapper[_ngcontent-%COMP%]{align-items:center}}.activity_card.hidden[_ngcontent-%COMP%]{display:none}.activity_card.highlight.withbottom[_ngcontent-%COMP%]   .activity_infos[_ngcontent-%COMP%]{background-color:#5298f9}@media (min-width:992px){.activity_card.highlight[_ngcontent-%COMP%]   .activity_infos[_ngcontent-%COMP%]{background-color:#5298f9}}.activity_card.highlight[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%], .activity_card.highlight[_ngcontent-%COMP%]   .activity_title[_ngcontent-%COMP%], .activity_card.highlight[_ngcontent-%COMP%]   .activity_type[_ngcontent-%COMP%]{color:#fff}.activity_card.highlight[_ngcontent-%COMP%]   .activity_img[_ngcontent-%COMP%]   .activity_slogan[_ngcontent-%COMP%]   .slogan_bubble[_ngcontent-%COMP%]{background-image:url(/assets/img/circle_white.svg)}.activity_card.highlight[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .component_arrow[_ngcontent-%COMP%]{background-image:url(/assets/img/arrow_white.svg)}.activity_card.highlight[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .picto_calendar[_ngcontent-%COMP%]{background-image:url(/assets/img/calendar_white.svg)}.activity_card.highlight[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .picto_duration[_ngcontent-%COMP%]{background-image:url(/assets/img/clock_white.svg)}.activity_card.highlight[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .picto_kids[_ngcontent-%COMP%]{background-image:url(/assets/img/kids_white.svg)}.activity_card.highlight[_ngcontent-%COMP%]   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like_white.svg)}.activity_card.highlight[_ngcontent-%COMP%]   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]:hover{background-image:url(/assets/img/like_white_full.svg)}@media (min-width:992px){.activity_card.highlight.open[_ngcontent-%COMP%]   .activity_infos[_ngcontent-%COMP%], .activity_card.highlight[_ngcontent-%COMP%]:hover   .activity_infos[_ngcontent-%COMP%]{background-color:#fff}.activity_card.highlight.open[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%], .activity_card.highlight.open[_ngcontent-%COMP%]   .activity_title[_ngcontent-%COMP%], .activity_card.highlight.open[_ngcontent-%COMP%]   .activity_type[_ngcontent-%COMP%], .activity_card.highlight[_ngcontent-%COMP%]:hover   .activity_pictos[_ngcontent-%COMP%], .activity_card.highlight[_ngcontent-%COMP%]:hover   .activity_title[_ngcontent-%COMP%], .activity_card.highlight[_ngcontent-%COMP%]:hover   .activity_type[_ngcontent-%COMP%]{color:#131313}.activity_card.highlight.open[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .component_arrow[_ngcontent-%COMP%], .activity_card.highlight[_ngcontent-%COMP%]:hover   .activity_pictos[_ngcontent-%COMP%]   .component_arrow[_ngcontent-%COMP%]{background-image:url(/assets/img/arrow.svg)}.activity_card.highlight.open[_ngcontent-%COMP%]   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%], .activity_card.highlight[_ngcontent-%COMP%]:hover   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like.svg)}.activity_card.highlight.open[_ngcontent-%COMP%]   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]:hover, .activity_card.highlight[_ngcontent-%COMP%]:hover   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]:hover{background-image:url(/assets/img/like_full.svg)}.activity_card.highlight.open[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .picto_calendar[_ngcontent-%COMP%], .activity_card.highlight[_ngcontent-%COMP%]:hover   .activity_pictos[_ngcontent-%COMP%]   .picto_calendar[_ngcontent-%COMP%]{background-image:url(/assets/img/calendar.svg)}.activity_card.highlight.open[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .picto_duration[_ngcontent-%COMP%], .activity_card.highlight[_ngcontent-%COMP%]:hover   .activity_pictos[_ngcontent-%COMP%]   .picto_duration[_ngcontent-%COMP%]{background-image:url(/assets/img/clock.svg)}.activity_card.highlight.open[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .picto_kids[_ngcontent-%COMP%], .activity_card.highlight[_ngcontent-%COMP%]:hover   .activity_pictos[_ngcontent-%COMP%]   .picto_kids[_ngcontent-%COMP%]{background-image:url(/assets/img/kids.svg)}.activity_card.highlight.open[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]:hover, .activity_card.highlight[_ngcontent-%COMP%]:hover   .component_like[_ngcontent-%COMP%]:hover{background-image:url(/assets/img/like_full.svg)!important}.activity_card.highlight.liked.open[_ngcontent-%COMP%]   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%], .activity_card.highlight.liked[_ngcontent-%COMP%]:hover   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like_full.svg)}}.activity_card.liked.highlight[_ngcontent-%COMP%]   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight).liked.open   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight).liked:hover   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like_white_full.svg)}.activity_card.withbottom[_ngcontent-%COMP%]:not(.highlight).liked   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like_full.svg)}.activity_card[_ngcontent-%COMP%]:not(.withbottom):not(.liked)   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like_white.svg)}@media (min-width:992px){.activity_card[_ngcontent-%COMP%]:not(.withbottom):not(.liked)   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like.svg)}.activity_card.highlight[_ngcontent-%COMP%]:not(.withbottom):not(.liked):not(.open)   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like_white.svg)}}.activity_card[_ngcontent-%COMP%]:not(.open):not(.highlight).liked   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like_full.svg)}.activity_card.mobile[_ngcontent-%COMP%]:not(.withbottom):not(.highlight).liked   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like_white_full.svg)}@media (min-width:992px){.activity_card[_ngcontent-%COMP%]:not(.highlight):hover   .activity_infos[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).mobile   .activity_infos[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).open   .activity_infos[_ngcontent-%COMP%]{background-color:#4762b2}.activity_card[_ngcontent-%COMP%]:not(.highlight):hover   .activity_pictos[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):hover   .activity_title[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):hover   .activity_type[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).mobile   .activity_pictos[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).mobile   .activity_title[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).mobile   .activity_type[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).open   .activity_pictos[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).open   .activity_title[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).open   .activity_type[_ngcontent-%COMP%]{color:#fff}.activity_card[_ngcontent-%COMP%]:not(.highlight):hover   .activity_pictos[_ngcontent-%COMP%]   .component_arrow[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).mobile   .activity_pictos[_ngcontent-%COMP%]   .component_arrow[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).open   .activity_pictos[_ngcontent-%COMP%]   .component_arrow[_ngcontent-%COMP%]{background-image:url(/assets/img/arrow_white.svg)}.activity_card[_ngcontent-%COMP%]:not(.highlight):hover   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).mobile   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).open   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like_white.svg)}.activity_card[_ngcontent-%COMP%]:not(.highlight):hover   .activity_pictos[_ngcontent-%COMP%]   .picto_calendar[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).mobile   .activity_pictos[_ngcontent-%COMP%]   .picto_calendar[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).open   .activity_pictos[_ngcontent-%COMP%]   .picto_calendar[_ngcontent-%COMP%]{background-image:url(/assets/img/calendar_white.svg)}.activity_card[_ngcontent-%COMP%]:not(.highlight):hover   .activity_pictos[_ngcontent-%COMP%]   .picto_duration[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).mobile   .activity_pictos[_ngcontent-%COMP%]   .picto_duration[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).open   .activity_pictos[_ngcontent-%COMP%]   .picto_duration[_ngcontent-%COMP%]{background-image:url(/assets/img/clock_white.svg)}.activity_card[_ngcontent-%COMP%]:not(.highlight):hover   .activity_pictos[_ngcontent-%COMP%]   .picto_kids[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).mobile   .activity_pictos[_ngcontent-%COMP%]   .picto_kids[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).open   .activity_pictos[_ngcontent-%COMP%]   .picto_kids[_ngcontent-%COMP%]{background-image:url(/assets/img/kids_white.svg)}}.activity_card[_ngcontent-%COMP%]:not(.highlight).fromacts.withbottom.mobile   .activity_infos[_ngcontent-%COMP%]{background-color:#4762b2}.activity_card[_ngcontent-%COMP%]:not(.highlight).fromacts.withbottom.mobile   .activity_pictos[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight).fromacts.withbottom.mobile   .activity_title[_ngcontent-%COMP%], .activity_card[_ngcontent-%COMP%]:not(.highlight).fromacts.withbottom.mobile   .activity_type[_ngcontent-%COMP%]{color:#fff}.activity_card[_ngcontent-%COMP%]:not(.highlight).fromacts.withbottom.mobile   .activity_pictos[_ngcontent-%COMP%]   .component_arrow[_ngcontent-%COMP%]{background-image:url(/assets/img/arrow_white.svg)}.activity_card[_ngcontent-%COMP%]:not(.highlight).fromacts.withbottom.mobile   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like_white.svg)}.activity_card[_ngcontent-%COMP%]:not(.highlight).fromacts.withbottom.mobile   .activity_pictos[_ngcontent-%COMP%]   .picto_calendar[_ngcontent-%COMP%]{background-image:url(/assets/img/calendar_white.svg)}.activity_card[_ngcontent-%COMP%]:not(.highlight).fromacts.withbottom.mobile   .activity_pictos[_ngcontent
1-%COMP%]   .picto_duration[_ngcontent-%COMP%]{background-image:url(/assets/img/clock_white.svg)}.activity_card[_ngcontent-%COMP%]:not(.highlight).fromacts.withbottom.mobile   .activity_pictos[_ngcontent-%COMP%]   .picto_kids[_ngcontent-%COMP%]{background-image:url(/assets/img/kids_white.svg)}@media (min-width:992px){.activity_card.liked[_ngcontent-%COMP%]:not(.highlight):hover   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%], .activity_card.liked[_ngcontent-%COMP%]:not(.highlight):not(.withbottom).open   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like_white_full.svg)}}.component_like[_ngcontent-%COMP%]:hover{background-image:url(/assets/img/like_white_full.svg)!important}@media (max-width:991px){.activity_card.nobottom.open[_ngcontent-%COMP%]{min-width:100vw;margin-left:0;margin-top:calc(10vh + 58px)}}.activity_type[_ngcontent-%COMP%]{color:#fff;font-weight:400!important}@media (min-width:992px){.activity_type[_ngcontent-%COMP%]{color:#4762b2}}.activity_title_cont[_ngcontent-%COMP%]{max-height:2.8rem}@media (min-width:992px){.activity_title_cont[_ngcontent-%COMP%]{max-height:none}}.activity_title[_ngcontent-%COMP%]{color:#fff;max-height:2.8rem}@media (min-width:992px){.activity_title[_ngcontent-%COMP%]{color:#131313;margin-bottom:1px;min-height:0;max-height:none;overflow:visible;letter-spacing:.02rem}}.activity_pictos[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:100%;align-items:center;color:#fff;margin-top:.9375rem;max-height:3.24rem;overflow:hidden}@media (min-width:992px){.activity_pictos[_ngcontent-%COMP%]{margin-top:1.18rem;color:#131313;min-height:28px;max-height:none;overflow:visible}}.activity_pictos[_ngcontent-%COMP%]   .flex-child[_ngcontent-%COMP%]{flex:0 1 auto;margin-right:.2rem;display:flex;align-items:center}@media (min-width:992px){.activity_pictos[_ngcontent-%COMP%]   .flex-child[_ngcontent-%COMP%]{margin-right:.9rem;margin-bottom:.2rem}}.activity_pictos[_ngcontent-%COMP%]   .flex-child[_ngcontent-%COMP%]   .flex-child2[_ngcontent-%COMP%]{margin-right:.2rem;flex:0 1 auto}@media (min-width:992px){.activity_pictos[_ngcontent-%COMP%]   .flex-child.lowmargin[_ngcontent-%COMP%]{margin-right:.625rem}.activity_pictos[_ngcontent-%COMP%]   .flex-child.no-margin[_ngcontent-%COMP%]{margin-right:0}}.activity_pictos[_ngcontent-%COMP%]   .flex-child[_ngcontent-%COMP%]:nth-last-child(2){margin-right:0}.activity_pictos[_ngcontent-%COMP%]   .flex-child[_ngcontent-%COMP%]:last-child{margin-right:0;margin-left:auto}.activity_pictos[_ngcontent-%COMP%]   .flex-child.hidden[_ngcontent-%COMP%]{display:none}.activity_pictos[_ngcontent-%COMP%]   .activity_picto[_ngcontent-%COMP%]{background-repeat:no-repeat;background-size:contain;background-position:0 0;height:22px;width:27px}@media (min-width:992px){.activity_pictos[_ngcontent-%COMP%]   .activity_picto[_ngcontent-%COMP%]{height:25px;width:25px}}.activity_pictos[_ngcontent-%COMP%]   .picto_container[_ngcontent-%COMP%]{max-width:100%;margin-bottom:5px}.activity_pictos[_ngcontent-%COMP%]   .picto_container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.details_arrow[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.details_arrow.rotate[_ngcontent-%COMP%]{transform:rotate(-180deg);-ms-transform:rotate(-180deg);-webkit-transform:rotate(-180deg)}.fromacts[_ngcontent-%COMP%]   .details_arrow[_ngcontent-%COMP%]{display:none}@media (min-width:992px){.fromacts[_ngcontent-%COMP%]   .details_arrow[_ngcontent-%COMP%]{display:block}}.fromacts[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]{max-height:none!important;overflow:visible!important}.activity_details[_ngcontent-%COMP%]{overflow:hidden;width:100%}.details_edito[_ngcontent-%COMP%]{background-color:#fff;padding:1.8rem}.details_tags[_ngcontent-%COMP%]{font-weight:400;color:#4762b2}.activity_card.highlight[_ngcontent-%COMP%]   .details_tags[_ngcontent-%COMP%]{color:#5298f9}.details_footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background-color:#fff;padding:1.8rem}.details_footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:#131313}.details_footer[_ngcontent-%COMP%]   .footer_link[_ngcontent-%COMP%]{padding:17px 25px;border:1px solid #131313}.details_footer[_ngcontent-%COMP%]   .footer_link[_ngcontent-%COMP%]:hover{background-color:#131313;color:#fff;border:1px solid #fff}.details_footer[_ngcontent-%COMP%]   .flex-child[_ngcontent-%COMP%]{flex:0 1 auto}.details_footer[_ngcontent-%COMP%]   .bib_button[_ngcontent-%COMP%]{font-weight:400}.details_package[_ngcontent-%COMP%]{background-color:#f4f3f4;padding:2.5rem 1.8rem}@media (min-width:992px){.details_package[_ngcontent-%COMP%]{padding:3.3rem 1.8rem}.activity_card.fromacts.highlight[_ngcontent-%COMP%]   .activity_infos[_ngcontent-%COMP%]{background-color:#fff}.activity_card.fromacts.highlight[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%], .activity_card.fromacts.highlight[_ngcontent-%COMP%]   .activity_title[_ngcontent-%COMP%], .activity_card.fromacts.highlight[_ngcontent-%COMP%]   .activity_type[_ngcontent-%COMP%]{color:#131313}.activity_card.fromacts.highlight[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .component_arrow[_ngcontent-%COMP%]{background-image:url(/assets/img/arrow.svg)}.activity_card.fromacts.highlight[_ngcontent-%COMP%]   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like.svg)!important}.activity_card.fromacts.highlight[_ngcontent-%COMP%]   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]:hover{background-image:url(/assets/img/like_full.svg)!important}.activity_card.fromacts.highlight[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .picto_calendar[_ngcontent-%COMP%]{background-image:url(/assets/img/calendar.svg)}.activity_card.fromacts.highlight[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .picto_duration[_ngcontent-%COMP%]{background-image:url(/assets/img/clock.svg)}.activity_card.fromacts.highlight[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .picto_kids[_ngcontent-%COMP%]{background-image:url(/assets/img/kids.svg)}.activity_card.fromacts.highlight.liked[_ngcontent-%COMP%]   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%], .activity_card.fromacts.highlight.liked[_ngcontent-%COMP%]   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]:hover{background-image:url(/assets/img/like_full.svg)!important}.activity_card.fromacts.highlight.open[_ngcontent-%COMP%]   .activity_infos[_ngcontent-%COMP%], .activity_card.fromacts.highlight[_ngcontent-%COMP%]:hover   .activity_infos[_ngcontent-%COMP%]{background-color:#5298f9}.activity_card.fromacts.highlight.open[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%], .activity_card.fromacts.highlight.open[_ngcontent-%COMP%]   .activity_title[_ngcontent-%COMP%], .activity_card.fromacts.highlight.open[_ngcontent-%COMP%]   .activity_type[_ngcontent-%COMP%], .activity_card.fromacts.highlight[_ngcontent-%COMP%]:hover   .activity_pictos[_ngcontent-%COMP%], .activity_card.fromacts.highlight[_ngcontent-%COMP%]:hover   .activity_title[_ngcontent-%COMP%], .activity_card.fromacts.highlight[_ngcontent-%COMP%]:hover   .activity_type[_ngcontent-%COMP%]{color:#fff}.activity_card.fromacts.highlight.open[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .component_arrow[_ngcontent-%COMP%], .activity_card.fromacts.highlight[_ngcontent-%COMP%]:hover   .activity_pictos[_ngcontent-%COMP%]   .component_arrow[_ngcontent-%COMP%]{background-image:url(/assets/img/arrow_white.svg)}.activity_card.fromacts.highlight.open[_ngcontent-%COMP%]   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%], .activity_card.fromacts.highlight[_ngcontent-%COMP%]:hover   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like_white.svg)!important}.activity_card.fromacts.highlight.open[_ngcontent-%COMP%]   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]:hover, .activity_card.fromacts.highlight[_ngcontent-%COMP%]:hover   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]:hover{background-image:url(/assets/img/like_white_full.svg)!important}.activity_card.fromacts.highlight.open[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .picto_calendar[_ngcontent-%COMP%], .activity_card.fromacts.highlight[_ngcontent-%COMP%]:hover   .activity_pictos[_ngcontent-%COMP%]   .picto_calendar[_ngcontent-%COMP%]{background-image:url(/assets/img/calendar_white.svg)}.activity_card.fromacts.highlight.open[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .picto_duration[_ngcontent-%COMP%], .activity_card.fromacts.highlight[_ngcontent-%COMP%]:hover   .activity_pictos[_ngcontent-%COMP%]   .picto_duration[_ngcontent-%COMP%]{background-image:url(/assets/img/clock_white.svg)}.activity_card.fromacts.highlight.open[_ngcontent-%COMP%]   .activity_pictos[_ngcontent-%COMP%]   .picto_kids[_ngcontent-%COMP%], .activity_card.fromacts.highlight[_ngcontent-%COMP%]:hover   .activity_pictos[_ngcontent-%COMP%]   .picto_kids[_ngcontent-%COMP%]{background-image:url(/assets/img/kids_white.svg)}.activity_card.fromacts.highlight.open.liked[_ngcontent-%COMP%]   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%], .activity_card.fromacts.highlight[_ngcontent-%COMP%]:hover.liked   .activity_type_wrapper[_ngcontent-%COMP%]   .component_like[_ngcontent-%COMP%]{background-image:url(/assets/img/like_white_full.svg)!important}}"],data:{animation:[Qb]}}),t})();function kw(t,e){1&t&&(So(0,"div",10),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(2).data.teaser,"html"),Ki)}const Tw=function(t){return{bib_grid:t}},Ew=function(t){return{draft:t}};function Iw(t,e){if(1&t&&(Mo(0,"div",5),Mo(1,"div",6),So(2,"div",7),Bl(3,"safe"),So(4,"div",8),Bl(5,"safe"),xo(6,kw,2,4,"div",9),Oo(),Oo()),2&t){const t=Bo();Co("ngClass",Il(11,Tw,t.fullwidth)),Qr(2),Co("innerHtml",Nl(3,5,t.data.type_contenu+" - "+t.data.date,"html"),Ki),Qr(2),Co("innerHtml",Nl(5,8,t.data.titre,"html"),Ki)("ngClass",Il(13,Ew,"0"==t.data.status)),Qr
1(2),Co("ngIf",t.data.teaser)}}const Aw=function(t,e){return{fullwidth:t,nomargin:e}},zw=function(t){return{"background-image":t}};let Dw=(()=>{class t{constructor(t){this.deviceQueryService=t,this.fullwidth=!1,this.nomargin=!1}ngOnInit(){this.data.type_contenu||(this.data.type_contenu="actualite")}}return t.\u0275fac=function(e){return new(e||t)(wo(Pb))},t.\u0275cmp=Ut({type:t,selectors:[["app-card-actualite"]],inputs:{data:"data",fullwidth:"fullwidth",nomargin:"nomargin"},decls:5,vars:8,consts:[[1,"actu_card","in_scrollable",3,"ngClass"],[1,"actu_img"],[1,"actu_visuel","lazy_bg",3,"ngStyle"],[1,"actu_infos"],[3,"nestedEllipsis"],[1,"actu_infos_wrapper",3,"ngClass"],[1,"actu_infos_content"],[1,"actu_infos_type","bib_type","ignore_p_margin",3,"innerHtml"],[1,"actu_infos_title","bib_title4","ignore_p_margin",3,"innerHtml","ngClass"],["class","actu_infos_teaser bib_mentions ignore_p_margin",3,"innerHtml",4,"ngIf"],[1,"actu_infos_teaser","bib_mentions","ignore_p_margin",3,"innerHtml"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),So(2,"div",2),Oo(),Mo(3,"div",3),xo(4,Iw,7,15,"ng-template",4),Oo(),Oo()),2&t&&(Co("ngClass",Al(3,Aw,e.fullwidth,e.nomargin)),Qr(2),Co("ngStyle",Il(6,zw,e.data.visuel&&e.data.visuel.url?"url("+e.data.visuel.url+")":"none")),Qr(2),Co("nestedEllipsis",!e.fullwidth))},directives:[Tu,Uu,nv,zu],pipes:[Sb],styles:[".actu_card[_ngcontent-%COMP%]{position:relative;flex:0 1 auto;min-width:min(83vw,300px);z-index:10}@media (min-width:992px){.actu_card[_ngcontent-%COMP%]{min-width:100%;width:100%;margin:1rem 0}}.actu_card[_ngcontent-%COMP%]   .actu_img[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:100%}.actu_card[_ngcontent-%COMP%]   .actu_visuel[_ngcontent-%COMP%]{display:block;width:100%;padding-top:56.4%;background-color:#ccc;background-size:cover;background-position:50%;transition:all .5s}@media (min-width:992px){.actu_card.nomargin[_ngcontent-%COMP%]{margin:0}.actu_card[_ngcontent-%COMP%]:hover   .actu_visuel[_ngcontent-%COMP%]{transform:scale(1.03)}}.actu_infos[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;background-color:#fff;color:#131313;padding:1.2rem;min-height:201px;max-height:201px;height:201px;overflow:hidden;transition:background-color .25s cubic-bezier(.55,.085,.68,.53)}@media (min-width:992px){.actu_infos[_ngcontent-%COMP%]{padding:1.8rem;max-height:290px;min-height:290px;height:290px}.actu_card[_ngcontent-%COMP%]:hover   .actu_infos[_ngcontent-%COMP%]{background-color:#2e2e2e;color:#fff}}.actu_infos_content[_ngcontent-%COMP%], .actu_infos_wrapper[_ngcontent-%COMP%]{width:100%;height:100%}.actu_card.fullwidth[_ngcontent-%COMP%]{width:100%!important}.actu_card.fullwidth[_ngcontent-%COMP%]   .actu_infos[_ngcontent-%COMP%]{max-height:none;min-height:0;height:auto;padding:1.2rem 0;overflow:visible}.actu_card.fullwidth[_ngcontent-%COMP%]   .actu_infos_wrapper[_ngcontent-%COMP%]{width:auto}.actu_card.fullwidth[_ngcontent-%COMP%]   .actu_infos_content[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}.actu_infos_type[_ngcontent-%COMP%]{color:#aaa;margin-bottom:.3rem}.actu_infos_title[_ngcontent-%COMP%]{margin-bottom:1.15rem}.actu_infos_teaser[_ngcontent-%COMP%]{line-height:149%}"]}),t})();const Lw=function(t){return{fullwidth:t}},Rw=function(t){return{"background-image":t}},Fw=function(t){return{bib_grid:t}};let Bw=(()=>{class t{constructor(){this.fullwidth=!1}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-card-promo"]],inputs:{data:"data",fullwidth:"fullwidth"},decls:14,vars:19,consts:[[1,"promo_card","in_scrollable",3,"ngClass"],[1,"promo_img"],[1,"promo_visuel","lazy_bg",3,"ngStyle"],[1,"promo_infos"],[1,"promo_infos_wrapper",3,"ngClass"],[1,"promo_infos_content"],[1,"bib_title4","ignore_p_first_margin",3,"innerHtml"],[1,"bib_mentions",3,"innerHtml"],[1,"flex-child","promo_link"],["target","_blank",3,"href"],[1,"promo_button","bib_button",3,"innerHtml"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),So(2,"div",2),Mo(3,"div",3),Mo(4,"div",4),Mo(5,"div",5),Mo(6,"div"),So(7,"div",6),Bl(8,"safe"),So(9,"div",7),Mo(10,"div",8),Mo(11,"a",9),So(12,"div",10),Bl(13,"safe"),Oo(),Oo(),Oo(),Oo(),Oo(),Oo(),Oo(),Oo()),2&t&&(Co("ngClass",Il(13,Lw,e.fullwidth)),Qr(2),Co("ngStyle",Il(15,Rw,e.data.visuel&&e.data.visuel.url?"url("+e.data.visuel.url+")":"none")),Qr(2),Co("ngClass",Il(17,Fw,e.fullwidth)),Qr(3),Co("innerHtml",Nl(8,7,e.data.titre,"html"),Ki),Qr(2),Co("innerHtml",e.data.texte,Ki),Qr(2),Co("href",e.data.lien.url,Yi),Qr(1),Co("innerHtml",Nl(13,10,e.data.lien.label,"html"),Ki))},directives:[Tu,Uu],pipes:[Sb],styles:[".promo_card[_ngcontent-%COMP%]{position:relative;flex:0 1 auto;min-width:min(83vw,300px);z-index:10}@media (min-width:992px){.promo_card[_ngcontent-%COMP%]{min-width:100%;width:100%;margin:1rem 0}}.promo_card[_ngcontent-%COMP%]   .promo_img[_ngcontent-%COMP%]{position:relative;width:100%;padding-top:calc(56.4% + 201px)}@media (min-width:992px){.promo_card[_ngcontent-%COMP%]   .promo_img[_ngcontent-%COMP%]{padding-top:calc(56.4% + 160px)}}.promo_card[_ngcontent-%COMP%]   .promo_visuel[_ngcontent-%COMP%]{display:block;width:100%;height:100%;position:absolute;
1left:0;top:0;background-color:#ccc;background-size:cover}@media (min-width:992px){.promo_card[_ngcontent-%COMP%]:hover   .promo_infos_content[_ngcontent-%COMP%]{background-color:#2e2e2e}.promo_card[_ngcontent-%COMP%]:hover   .promo_infos_content[_ngcontent-%COMP%]   .bib_mentions[_ngcontent-%COMP%], .promo_card[_ngcontent-%COMP%]:hover   .promo_infos_content[_ngcontent-%COMP%]   .bib_title4[_ngcontent-%COMP%]{color:#fff}}.promo_infos[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:0;width:100%}@media (min-width:992px){.promo_infos[_ngcontent-%COMP%]{bottom:auto;top:0;height:100%;box-sizing:border-box;padding:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){.promo_infos[_ngcontent-%COMP%]{padding:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.promo_infos[_ngcontent-%COMP%]{padding:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.promo_infos[_ngcontent-%COMP%]{padding:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.promo_infos[_ngcontent-%COMP%]{padding:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.promo_infos_wrapper[_ngcontent-%COMP%]{width:100%;height:100%}}.promo_card[_ngcontent-%COMP%]:not(.highlight)   .promo_infos_wrapper[_ngcontent-%COMP%]{padding-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));padding-right:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}@media (min-width:992px){.promo_card[_ngcontent-%COMP%]:not(.highlight)   .promo_infos_wrapper[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.promo_card[_ngcontent-%COMP%]:not(.highlight)   .promo_infos_wrapper[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.promo_card[_ngcontent-%COMP%]:not(.highlight)   .promo_infos_wrapper[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.promo_card[_ngcontent-%COMP%]:not(.highlight)   .promo_infos_wrapper[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.promo_card[_ngcontent-%COMP%]:not(.highlight)   .promo_infos_wrapper[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.promo_card[_ngcontent-%COMP%]:not(.highlight)   .promo_infos_wrapper[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.promo_card[_ngcontent-%COMP%]:not(.highlight)   .promo_infos_wrapper[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.promo_card[_ngcontent-%COMP%]:not(.highlight)   .promo_infos_wrapper[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.promo_card[_ngcontent-%COMP%]:not(.highlight)   .promo_infos_wrapper[_ngcontent-%COMP%]{padding:0}}.promo_infos_content[_ngcontent-%COMP%]{background:#fff;padding:1.25rem;transition:background-color .25s cubic-bezier(.55,.085,.68,.53)}@media (min-width:992px){.promo_infos_content[_ngcontent-%COMP%]{width:100%;height:100%;box-sizing:border-box;display:flex;align-items:center;padding:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){.promo_infos_content[_ngcontent-%COMP%]{padding:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.promo_infos_content[_ngcontent-%COMP%]{padding:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.promo_infos_content[_ngcontent-%COMP%]{padding:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.promo_infos_content[_ngcontent-%COMP%]{padding:calc(calc(55px * 1) + calc(60px * 0))}}.promo_infos_content[_ngcontent-%COMP%]   .bib_mentions[_ngcontent-%COMP%], .promo_infos_content[_ngcontent-%COMP%]   .bib_title4[_ngcontent-%COMP%]{color:#131313}.promo_card.fullwidth[_ngcontent-%COMP%]{width:100%!important;height:auto!important}.promo_card.fullwidth[_ngcontent-%COMP%]   .promo_infos_content[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}.promo_card.fullwidth[_ngcontent-%COMP%]   .promo_img[_ngcontent-%COMP%]{padding-top:100%}.promo_button[_ngcontent-%COMP%]{display:inline-block;background:#fff;padding:1rem 1.5rem;border:1px solid #131313;font-weight:400}@media (min-width:992px){.promo_button[_ngcontent-%COMP%]{margin-top:3.125rem}}.promo_link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#131313!important;text-decoration:none}"]}),t})();const Nw=function(t){return{bib_grid:t}},Uw=function(t){return{draft:t}};function Hw(t,e){if(1&t&&(Mo(0,"div",5),Mo(1,"div",6),Mo(2,"div",7),da(3,"Dossier th\xe9matique"),Oo(),So(4,"div",8),Bl(5,"safe"),So(6,"div",9),Bl(7,"safe"),Oo(),Oo()),2&t){const t=Bo();Co("ngClass",Il(10,Nw,t.fullwidth)),Qr(4),Co("innerHtml",Nl(5,4,t.data.titre,"html"),Ki)("ngClass",Il(12,Uw,"0"==t.data.status)),Qr
1(2),Co("innerHtml",Nl(7,7,t.data.nb_ressources+" ressources","html"),Ki)}}const jw=function(t,e){return{fullwidth:t,in_scroll:e}},Vw=function(t){return{"background-image":t}};let $w=(()=>{class t{constructor(){this.fullwidth=!1,this.fromSearch=!1}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-card-dossier"]],inputs:{data:"data",fullwidth:"fullwidth",fromSearch:"fromSearch"},decls:5,vars:8,consts:[[1,"dossier_card","in_scrollable",3,"ngClass"],[1,"dossier_img"],[1,"dossier_visuel","lazy_bg",3,"ngStyle"],[1,"dossier_infos"],[3,"nestedEllipsis"],[1,"dossier_infos_wrapper",3,"ngClass"],[1,"dossier_infos_content"],[1,"dossier_infos_type","bib_type"],[1,"dossier_infos_title","bib_title4","ignore_p_margin",3,"innerHtml","ngClass"],[1,"dossier_nb_ressources","bib_mentions","ignore_p_margin",3,"innerHtml"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),So(2,"div",2),Oo(),Mo(3,"div",3),xo(4,Hw,8,14,"ng-template",4),Oo(),Oo()),2&t&&(Co("ngClass",Al(3,jw,e.fullwidth,e.fromSearch)),Qr(2),Co("ngStyle",Il(6,Vw,e.data.visuel&&e.data.visuel.url?"url("+e.data.visuel.url+")":"none")),Qr(2),Co("nestedEllipsis",!e.fullwidth))},directives:[Tu,Uu,nv],pipes:[Sb],styles:['@charset "UTF-8";.dossier_card[_ngcontent-%COMP%]{position:relative;flex:0 1 auto;min-width:min(83vw,285px);z-index:10}@media (min-width:992px){.dossier_card[_ngcontent-%COMP%]{min-width:100%;width:100%;margin:1rem 0}}.dossier_card[_ngcontent-%COMP%]   .dossier_img[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:100%}.dossier_card[_ngcontent-%COMP%]   .dossier_visuel[_ngcontent-%COMP%]{display:block;width:100%;padding-top:56.4%;background-color:#ccc;background-size:cover;background-position:50%;transition:all .5s}@media (min-width:992px){.dossier_card[_ngcontent-%COMP%]   .dossier_visuel[_ngcontent-%COMP%]{padding-top:0;height:calc(calc(calc(calc(3 + 2) * ((100vw - calc(2 * 20px)) / 23)) * 1.254) - 102px)}}@media (min-width:1024px){.dossier_card[_ngcontent-%COMP%]   .dossier_visuel[_ngcontent-%COMP%]{height:calc(calc(calc(calc(3 + 2) * ((100vw - calc(2 * 40px)) / 23)) * 1.254) - 102px)}}@media (min-width:1280px){.dossier_card[_ngcontent-%COMP%]   .dossier_visuel[_ngcontent-%COMP%]{height:calc(calc(calc(calc(3 + 2) * ((100vw - calc(2 * 60px)) / 23)) * 1.254) - 102px)}}@media (min-width:1440px){.dossier_card[_ngcontent-%COMP%]   .dossier_visuel[_ngcontent-%COMP%]{padding-top:89.1%;height:auto}}@media (min-width:992px){.dossier_card[_ngcontent-%COMP%]:hover   .dossier_visuel[_ngcontent-%COMP%]{transform:scale(1.03)}}.dossier_infos[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;background-color:#a44142;color:#fff;padding:1.2rem;min-height:173px;max-height:173px;height:173px;overflow:hidden;transition:background-color .25s cubic-bezier(.55,.085,.68,.53)}@media (min-width:992px){.dossier_infos[_ngcontent-%COMP%]{padding:1.8rem;max-height:254px;min-height:254px;height:254px}.dossier_card[_ngcontent-%COMP%]:hover   .dossier_infos[_ngcontent-%COMP%]{background-color:#fff;color:#131313}.dossier_card[_ngcontent-%COMP%]:hover   .dossier_infos_type[_ngcontent-%COMP%]{color:#a44142!important}}.dossier_infos_content[_ngcontent-%COMP%], .dossier_infos_wrapper[_ngcontent-%COMP%]{width:100%;height:100%}.dossier_infos_content[_ngcontent-%COMP%]   .bib_mentions[_ngcontent-%COMP%]{line-height:148.5%}.dossier_card.fullwidth[_ngcontent-%COMP%]{width:100%!important}.dossier_card.fullwidth[_ngcontent-%COMP%]   .dossier_infos[_ngcontent-%COMP%]{max-height:none;min-height:0;height:auto;padding:1.2rem 0;overflow:visible}.dossier_card.fullwidth[_ngcontent-%COMP%]   .dossier_infos_wrapper[_ngcontent-%COMP%]{width:auto}.dossier_card.fullwidth[_ngcontent-%COMP%]   .dossier_infos_content[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}.dossier_infos_title[_ngcontent-%COMP%]{margin-bottom:.35rem}@media (min-width:992px){.dossier_infos_title[_ngcontent-%COMP%]{margin-bottom:.7rem}}.dossier_infos_type[_ngcontent-%COMP%]{margin-bottom:5px}.dossier_nb_ressources[_ngcontent-%COMP%]:before{display:inline-block;content:"\xa0";width:22px;height:23px;background-image:url(/assets/img/nb_res.svg);background-size:100%;background-repeat:no-repeat;margin-right:5px}@media (min-width:992px){.dossier_card[_ngcontent-%COMP%]:hover   .dossier_nb_ressources[_ngcontent-%COMP%]:before{background-image:url(/assets/img/nb_res_hover.svg)}}']}),t})();const qw=function(t){return{bib_grid:t}},Gw=function(t){return{draft:t}};function Zw(t,e){if(1&t&&(Mo(0,"div",5),Mo(1,"div",6),So(2,"div",7),So(3,"div",8),Bl(4,"safe"),Oo(),Oo()),2&t){const t=Bo();Co("ngClass",Il(9,qw,t.fullwidth)),Qr(2),ea("ressource_infos_type bib_type res_"+t.data.type),Co("innerHtml",t.getResType(t.data.type_ressource_cdr),Ki),Qr(1),Co("innerHtml",Nl(4,6,t.data.titre,"html"),Ki)("ngClass",Il(11,Gw,"0"==t.data.status))}}const Ww=function(t,e){return{fullwidth:t,in_scroll:e}},Xw=function(t){return{"background-image":t}};let Qw=(()=>{class t{constructor(){this.fullwidth=!1,this.fromSearch=!1,this.placeholder=""}ngOnInit(){"pdf"==this.data.type?this.placeholder="/assets/img/pdf_placeholder_card.png":"audio"==this.data.type&&(this.placeholder="/assets/img/courbes_niveau_audio.png")}getResType(t){if(!t)return"no";let e=Object.keys(t);return e.length>0?t[e[0]]:""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-card-ressource"]],inputs:{data:"data",fullwidth:"fullwidth",fromSearch:"fromSearch"},decls:5,vars:8,consts:[[1,"ressource_card","in_scrollable",3,"ngClass"],[1,"ressource_infos"],[3,"nestedEllipsis"],[1,"ressource_img"],[1,"ressource_visuel","lazy_bg",3,"ngStyle"],[1,"ressource_infos_wrapper",3,"ngClass"],[1,"ressource_infos_content"],[3,"innerHtml"],[1,"ressource_infos_title","bib_title4","ignore_p_margin",3,"innerHtml","ngClass"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),xo(2,Zw,5,13,"ng-template",2),Oo(),Mo(3,"div",3),So(4,"div",4),Oo(),Oo()),2&t&&(Co("ngClass",Al(3,Ww,e.fullwidth,e.fromSearch)),Qr(2),Co("nestedEllipsis",!e.fullwidth),Qr(2),Co("ngStyle",Il(6,Xw,e.data.visuel&&e.data.visuel.url?"url("+e.data.visuel.url+")":""!=e.placeholder?"url("+e.placeholder+")":"none")))}
vendor: 4,159 bytes, line 1
1,directives:[Tu,nv,Uu],pipes:[Sb],styles:['@charset "UTF-8";.ressource_card[_ngcontent-%COMP%]{position:relative;flex:0 1 auto;min-width:min(83vw,285px);z-index:10}@media (min-width:992px){.ressource_card[_ngcontent-%COMP%]{min-width:100%;width:100%;margin:1rem 0}}.ressource_card[_ngcontent-%COMP%]   .ressource_img[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:100%}.ressource_card[_ngcontent-%COMP%]   .ressource_visuel[_ngcontent-%COMP%]{display:block;width:100%;padding-top:56.4%;background-color:#ccc;background-size:cover;background-position:50%;transition:all .5s}@media (min-width:992px){.ressource_card[_ngcontent-%COMP%]   .ressource_visuel[_ngcontent-%COMP%]{padding-top:124.5%}.ressource_card[_ngcontent-%COMP%]:hover   .ressource_visuel[_ngcontent-%COMP%]{transform:scale(1.03)}}.ressource_infos[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;background-color:#8b8472;color:#fff;padding:1.2rem;min-height:173px;max-height:173px;height:173px;overflow:hidden;transition:background-color .25s cubic-bezier(.55,.085,.68,.53)}@media (min-width:992px){.ressource_infos[_ngcontent-%COMP%]{padding:1.8rem 1.8rem 1.28rem;max-height:154px;min-height:154px;height:154px}.ressource_card[_ngcontent-%COMP%]:hover   .ressource_infos[_ngcontent-%COMP%]{background-color:#fff;color:#131313}.ressource_card[_ngcontent-%COMP%]:hover   .ressource_infos_type[_ngcontent-%COMP%]{color:#8b8472!important}}.ressource_infos_content[_ngcontent-%COMP%], .ressource_infos_wrapper[_ngcontent-%COMP%]{width:100%;height:100%}.ressource_infos_content[_ngcontent-%COMP%]   .bib_mentions[_ngcontent-%COMP%]{line-height:148.5%}.ressource_card.fullwidth[_ngcontent-%COMP%]{width:100%!important}.ressource_card.fullwidth[_ngcontent-%COMP%]   .ressource_infos[_ngcontent-%COMP%]{max-height:none;min-height:0;height:auto;padding:1.2rem 0;overflow:visible}.ressource_card.fullwidth[_ngcontent-%COMP%]   .ressource_infos_wrapper[_ngcontent-%COMP%]{width:auto}.ressource_card.fullwidth[_ngcontent-%COMP%]   .ressource_infos_content[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}.ressource_infos_title[_ngcontent-%COMP%]{margin-bottom:.35rem}.ressource_infos_type[_ngcontent-%COMP%]{margin-bottom:5px}.ressource_infos_type[_ngcontent-%COMP%]:before{display:inline-block;content:"\xa0";width:22px;height:23px;background-size:100%;background-repeat:no-repeat;margin-right:5px;position:relative;bottom:2px;margin-top:2px}.ressource_infos_type.res_image[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_image.svg)}.ressource_infos_type.res_video[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_video.svg)}.ressource_infos_type.res_audio[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_audio.svg)}.ressource_infos_type.res_html[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_html.svg)}.ressource_infos_type.res_pdf[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_pdf.svg)}@media (min-width:992px){.ressource_card[_ngcontent-%COMP%]:hover   .ressource_infos_type.res_image[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_image_hover.svg)}.ressource_card[_ngcontent-%COMP%]:hover   .ressource_infos_type.res_video[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_video_hover.svg)}.ressource_card[_ngcontent-%COMP%]:hover   .ressource_infos_type.res_audio[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_audio_hover.svg)}.ressource_card[_ngcontent-%COMP%]:hover   .ressource_infos_type.res_html[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_html_hover.svg)}.ressource_card[_ngcontent-%COMP%]:hover   .ressource_infos_type.res_pdf[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_pdf_hover.svg)}.ressource_card[_ngcontent-%COMP%]:hover   .ressource_infos_type[_ngcontent-%COMP%]:before{background-image:url(/assets/img/nb_res_hover.svg)}}']}),t})();const Kw=function(t){return{bib_grid:t}},Yw=function(t){return{draft:t}};function Jw(t,e){if(1&t&&(Mo(0,"div",5),Mo(1,"div",6),So(2,"div",7),So(3,"div",8),Bl(4,"safe"),Oo(),Oo()),2&t){const t=Bo();Co("ngClass",Il(7,Kw,t.fullwidth)),Qr(2),Co("innerHtml",t.texts["Galer
1ie virtuelle"],Ki),Qr(1),Co("innerHtml",Nl(4,4,t.data.titre,"html"),Ki)("ngClass",Il(9,Yw,"0"==t.data.status))}}const tC=function(t,e){return{fullwidth:t,in_scroll:e}};let eC=(()=>{class t{constructor(){this.fullwidth=!1,this.fromSearch=!1}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-card-vv"]],inputs:{data:"data",texts:"texts",fullwidth:"fullwidth",fromSearch:"fromSearch"},decls:5,vars:5,consts:[[1,"vv_card","in_scrollable",3,"ngClass"],[1,"vv_img"],[1,"vv_visuel","lazy_bg"],[1,"vv_infos"],[3,"nestedEllipsis"],[1,"vv_infos_wrapper",3,"ngClass"],[1,"vv_infos_content"],[1,"vv_infos_type","bib_type",3,"innerHtml"],[1,"vv_infos_title","bib_title4","ignore_p_margin",3,"innerHtml","ngClass"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),So(2,"div",2),Oo(),Mo(3,"div",3),xo(4,Jw,5,11,"ng-template",4),Oo(),Oo()),2&t&&(Co("ngClass",Al(2,tC,e.fullwidth,e.fromSearch)),Qr(4),Co("nestedEllipsis",!e.fullwidth))},directives:[Tu,nv],pipes:[Sb],styles:['@charset "UTF-8";.vv_card[_ngcontent-%COMP%]{position:relative;flex:0 1 auto;min-width:min(83vw,285px);z-index:10}@media (min-width:992px){.vv_card[_ngcontent-%COMP%]{min-width:100%;width:100%;margin:1rem 0}}.vv_card[_ngcontent-%COMP%]   .vv_img[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:100%}.vv_card[_ngcontent-%COMP%]   .vv_visuel[_ngcontent-%COMP%]{display:block;width:100%;padding-top:56.4%;background-color:#ccc;background-size:cover;background-position:50%;background-image:url(/assets/img/bg_vv_2.png);transition:all .5s}@media (min-width:992px){.vv_card[_ngcontent-%COMP%]   .vv_visuel[_ngcontent-%COMP%]{padding-top:0;height:calc(calc(calc(calc(3 + 2) * ((100vw - calc(2 * 20px)) / 23)) * 1.254) - 102px)}}@media (min-width:1024px){.vv_card[_ngcontent-%COMP%]   .vv_visuel[_ngcontent-%COMP%]{height:calc(calc(calc(calc(3 + 2) * ((100vw - calc(2 * 40px)) / 23)) * 1.254) - 102px)}}@media (min-width:1280px){.vv_card[_ngcontent-%COMP%]   .vv_visuel[_ngcontent-%COMP%]{height:calc(calc(calc(calc(3 + 2) * ((100vw - calc(2 * 60px)) / 23)) * 1.254) - 102px)}}@media (min-width:1440px){.vv_card[_ngcontent-%COMP%]   .vv_visuel[_ngcontent-%COMP%]{padding-top:89.1%;height:auto}}@media (min-width:992px){.vv_card[_ngcontent-%COMP%]:hover   .vv_visuel[_ngcontent-%COMP%]{transform:scale(1.03)}}.vv_infos[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;background-color:#2e2e2e;color:#fff;padding:1.2rem;min-height:173px;max-height:173px;height:173px;overflow:hidden;transition:background-color .25s cubic-bezier(.55,.085,.68,.53)}@media (min-width:992px){.vv_infos[_ngcontent-%COMP%]{padding:1.8rem;max-height:254px;min-height:254px;height:254px}.vv_card[_ngcontent-%COMP%]:hover   .vv_infos[_ngcontent-%COMP%]{background-color:#fff;color:#2e2e2e}.vv_card[_ngcontent-%COMP%]:hover   .vv_infos_type[_ngcontent-%COMP%]{color:#2e2e2e!important}}.vv_infos_content[_ngcontent-%COMP%], .vv_infos_wrapper[_ngcontent-%COMP%]{width:100%;height:100%}.vv_infos_content[_ngcontent-%COMP%]   .bib_mentions[_ngcontent-%COMP%]{line-height:148.5%}.vv_card.fullwidth[_ngcontent-%COMP%]{width:100%!important}.vv_card.fullwidth[_ngcontent-%COMP%]   .vv_infos[_ngcontent-%COMP%]{max-height:none;min-height:0;height:auto;padding:1.2rem 0;overflow:visible}.vv_card.fullwidth[_ngcontent-%COMP%]   .vv_infos_wrapper[_ngcontent-%COMP%]{width:auto}.vv_card.fullwidth[_ngcontent-%COMP%]   .vv_infos_content[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}.vv_infos_title[_ngcontent-%COMP%]{margin-bottom:.35rem}@media (min-width:992px){.vv_infos_title[_ngcontent-%COMP%]{margin-bottom:.7rem}}.vv_infos_type[_ngcontent-%COMP%]{margin-bottom:5px}.vv_nb_ressources[_ngcontent-%COMP%]:before{display:inline-block;content:"\xa0";width:22px;height:23px;background-image:url(/assets/img/nb_res.svg);background-size:100%;background-repeat:no-repeat;margin-right:5px}@media (min-width:992px){.vv_card[_ngcontent-%COMP%]:hover   .vv_nb_ressources[_ngcontent-%COMP%]:before{background-image:url(/assets/img/nb_res_hover.svg)}}']}),t})();const nC=["legend"],iC=["resnofs"],rC=["resfs"];function sC(t,e){if(1&t){const t=Io();Mo(0,"div",18),Lo("click",function(){Ae(t);const e=Bo(2).$implicit;return Bo().navigate(e.lien)}),So(1,"app-card-page",19),Oo()}if(2&t){const t=Bo(2).$implicit;Qr(1),Co("data",t)}}function oC(t,e){if(1&t){const t=Io();Mo(0,"div",20),Lo("click",function(){Ae(t);const e=Bo(2).$implicit;return Bo().navigate(e.lien)}),Mo(1,"app-card-activity",21),Lo("likeClicked",function(e){return Ae(t),Bo(3).likeClicked(e)}),Oo(),Oo()}if(2&t){const t=Bo(2).$implicit;Qr(1),Co("fromcarousel",!0)("act",t)}}function aC(t,e){if(1&t){const t=Io();Mo(0,"div",22),Lo("click",function(){Ae(t);const e=Bo(2).$implicit;return Bo().navigate(e.lien)}),So(1,"app-card-actualite",19),Oo()}if(2&t){const t=Bo(2).$implicit;Qr(1),Co("data",t)}}function lC(t,e){if(1&t){const t=Io();Mo(0,"div",23),Lo("click",function(){Ae(t);const e=Bo(2).$implicit;return Bo().navigate(e.lien)}),So(1,"app-card-promo",19),Oo()}if(2&t){const t=Bo(2).$implicit;Qr(1),Co("data",t)}}function cC(t,e){if(1&t){const t=Io();Mo(0,"div",24),Lo("click",function(){Ae(t);const e=Bo(2).$implicit;return Bo().navigate(e.lien)}),So(1,"app-card-dossier",19),Oo()}if(2&t){const t=Bo(2).$implicit;Qr(1),Co("data",t)}}function uC(t,e){if(1&t){const t=Io();Mo(0,"div",25),Lo("click",function(){Ae(t);const e=Bo(2).$implicit;return Bo().navigate(e.lien)}),So(1,"app-card-ressource",19),Oo()}if(2&t){const t=Bo(2).$implicit;Qr(1),Co("data",t)}}function hC(t,e){if(1&t){const t=Io();Mo(0,"div",26),Lo("click",function(){Ae(t);const e=Bo(2).$implicit;return Bo().navigate(e.lien,!0)}),So(1,"app-card-vv",27),Oo()}if(2&t){const t=Bo(2).$implicit,e=Bo();Qr(1),Co("data",t)("texts",e.texts)}}function dC(t,e){1&t&&(So(0,"div",37),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(4).$implicit.titre,"html"),Ki)}function pC(t,e){1&t&&(So(0,"div",38),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(4).$implicit.texte,"html"),Ki)}function mC(t,e){if(1&t){const t=Io();Mo(0,"a",39),Mo(1,"div",40),Lo("click",function(){Ae(t);const e=Bo(4).$implicit;return Bo().navigate(e.lien.url)}),So(2,"div",41),Bl(3,"safe"),Oo(),Oo()}if(2&t){const t=Bo(4).$implicit;Co("routerLink",t.lien.url),Qr(2),Co("innerHtml",Nl(3,2,t.lien.label,"html"),Ki)}}function gC(t,e){1&t&&(So(0,"div",45),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(6).horairesData.musee,"html"),Ki)}function fC(t,e){1&t&&(So(0,"div",45),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(6).horairesData.chaudron,"html"),Ki)}function _C(t,e){if(1&t&&(Mo(0,"div",42),So(1,"div",43),Bl(2,"safe"),xo(3,gC,2,4,"div",44),xo(4,fC,2,4,"div",44),Oo()),2&t){const t=Bo(5);Qr(1),Co("innerHtml",Nl(2,3,t.horairesData.today,"html"),Ki),Qr(2),Co("ngIf",t.horairesData.musee),Qr(1),Co("ngIf",t.horairesData.chaudron)}}const vC=function(t){return{"background-image":t}};function yC(t,e){if(1&t){const t=Io();ko(0),Mo(1,"div",29),Lo("click",function(){return Ae(t),Bo(4).nextSlide()}),Mo(2,"div",30),Mo(3,"div",31),xo(4,dC,2,4,"div",32),xo(5,pC,2,4,"div",33),xo(6,mC,4,5,"a",34),Oo(),Mo(7,"div",35),xo(8,_C,5,6,"div",36),Oo(),Oo(),Oo(),To()}if(2&t){const t=Bo(3).$implicit,e=Bo();Qr(1),ea("carousel_homepage color_"+t.couleur_texte),Co("ngStyle",Il(7,vC,e.getBackgroun
1d(t))),Qr(3),Co("ngIf",t.titre),Qr(1),Co("ngIf",t.texte),Qr(1),Co("ngIf",t.lien),Qr(2),Co("ngIf",e.horairesData&&e.horairesData.today)}}function xC(t,e){1&t&&So(0,"div",54)}const bC=function(t){return{res:t}};function wC(t,e){if(1&t&&So(0,"img",51,55),2&t){const t=Bo(4).$implicit,e=Bo();Jo("max-height:calc(100vh - 88px - "+e.getLegendHeight()+"px)"),Co("src",t.url_fs,Yi)("ngClass",Il(4,bC,e.res))}}function CC(t,e){if(1&t&&(So(0,"span",62),Bl(1,"safe")),2&t){const t=Bo(5).$implicit,e=Bo();Jo(e.maxLegendW>0?"max-width:"+(e.fs?e.maxLegendW:e.maxLegendW-128)+"px":""),Co("innerHtml",Nl(1,3,t.legende,"html"),Ki)}}function PC(t,e){1&t&&(Mo(0,"span"),da(1,"\xa0\xa9\xa0"),Oo())}function MC(t,e){1&t&&(So(0,"span",62),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(5).$implicit.credit,"html"),Ki)}function OC(t,e){if(1&t&&(Mo(0,"a",63),Bl(1,"safe"),So(2,"img",64),So(3,"img",65),Oo()),2&t){const t=Bo(5).$implicit;Co("download",t.download.name)("href",Nl(1,2,t.download.url,"url"),Yi)}}function SC(t,e){if(1&t){const t=Io();Mo(0,"div",66),Lo("click",function(){return Ae(t),Bo(6).doFS()}),So(1,"img",67),So(2,"img",68),Oo()}}const kC=function(t,e,n,i){return{res:t,fs:e,blur:n,active:i}};function TC(t,e){if(1&t&&(Mo(0,"div",56,57),xo(2,CC,2,6,"span",58),xo(3,PC,2,0,"span",28),xo(4,MC,2,4,"span",59),xo(5,OC,4,5,"a",60),xo(6,SC,3,0,"div",61),Oo()),2&t){const t=Bo(4),e=t.index,n=t.$implicit,i=Bo();Co("ngClass",Dl(6,kC,i.res,i.fs,!i.res,e==i.activeIndex)),Qr(2),Co("ngIf",n.legende),Qr(1),Co("ngIf",n.credit&&!i.res),Qr(1),Co("ngIf",n.credit&&!i.res),Qr(1),Co("ngIf",!i.fs&&n.download&&"0"==n.download.disabled),Qr(1),Co("ngIf",!i.fs&&!i.hideFS)}}const EC=function(t,e,n,i){return{res:t,lone:e,fs:n,active:i}};function IC(t,e){if(1&t&&(ko(0),Mo(1,"div",46),xo(2,xC,1,0,"div",47),Mo(3,"div",48),xo(4,wC,2,6,"img",49),Oo(),Mo(5,"div",50),So(6,"img",51,52),Oo(),xo(8,TC,7,11,"div",53),Oo(),To()),2&t){const t=Bo(3),e=t.index,n=t.$implicit,i=Bo();Qr(1),Co("ngClass",Dl(8,EC,i.res,1==i.data.length,i.fs,e==i.activeIndex)),Qr(1),Co("ngIf",i.res),Qr(2),Co("ngIf",n.url_fs),Qr(2),Jo(i.maxHeight>0?"max-height:"+i.maxHeight+"px":""),Co("src",n.url,Yi)("ngClass",Il(13,bC,i.res)),Qr(2),Co("ngIf",n.credit||n.legende)}}function AC(t,e){if(1&t&&(ko(0),xo(1,yC,9,9,"ng-container",28),xo(2,IC,9,15,"ng-container",28),To()),2&t){const t=Bo(2).$implicit;Qr(1),Co("ngIf",!t.url),Qr(1),Co("ngIf",t.url)}}function zC(t,e){1&t&&So(0,"div")}function DC(t,e){1&t&&(ko(0,8),xo(1,sC,2,1,"div",9),xo(2,oC,2,2,"div",10),xo(3,aC,2,1,"div",11),xo(4,lC,2,1,"div",12),xo(5,cC,2,1,"div",13),xo(6,uC,2,1,"div",14),xo(7,hC,2,2,"div",15),xo(8,AC,3,2,"ng-container",16),xo(9,zC,1,0,"div",17),To()),2&t&&(Co("ngSwitch",Bo().$implicit.type_contenu),Qr(1),Co("ngSwitchCase","page"),Qr(1),Co("ngSwitchCase","activite"),Qr(1),Co("ngSwitchCase","actualite"),Qr(1),Co("ngSwitchCase","promo"),Qr(1),Co("ngSwitchCase","dossier_thematique"),Qr(1),Co("ngSwitchCase","resource"),Qr(1),Co("ngSwitchCase","vv"),Qr(1),Co("ngSwitchCase",null))}function LC(t,e){1&t&&xo(0,DC,10,9,"ng-template",7)}function RC(t,e){1&t&&So(0,"div",69,70),2&t&&Co("id","component_carousel_prev_"+Bo().myId)}function FC(t,e){1&t&&So(0,"div",71,72),2&t&&Co("id","component_carousel_next_"+Bo().myId)}function BC(t,e){if(1&t&&(Mo(0,"a",78),So(1,"img",79),So(2,"img",80),Oo()),2&t){const t=Bo(2);Co("href",t.noticeLink,Yi)("target",t.blank?"_blank":"")}}function NC(t,e){if(1&t){const t=Io();Mo(0,"div",73),Lo("click",function(){return Ae(t),Bo().doFS()}),Mo(1,"div",74),So(2,"img",75),So(3,"img",76),Oo(),xo(4,BC,3,2,"a",77),Oo()}if(2&t){const t=Bo();Qr(4),Co("ngIf",t.noticeLink)}}const UC=function(t){return{fs:t}},HC=function(t,e,n,i){return{rtl:t,inner:e,res:n,fs:i}};of.use([zb,Rb,Nb,jb]);let jC=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.deviceQueryService=e,this.persistantDataService=n,this.cd=i,this.renderer=r,this.cssClass="",this.noSpace=!1,this.slidesPerView="auto",this.doFade=!1,this.res=!1,this.blank=!1,this.maxHeight=0,this.rtl=!1,this.centered=!1,this.fs=!1,this.hideFS=!1,this.menuColor=new Vl,this.fullscreen=new Vl,this.allowTouchMove=!0,this.activeIndex=0,this.speed=300,this.maxLH=0,this.unlisten=r.listen("window","resize",t=>{this.computeLegendW()})}ngOnInit(){this.spaceBetween=this.deviceQueryService.isMobile()?0:this.deviceQueryService.getGutterSize(),Number.isNaN(this.spaceBetween)&&setTimeout(()=>{this.computeSpaceBetween()},500),this.deviceQueryService.isMobile()&&(this.slidesPerView="1"),this.noSpace&&(this.spaceBetween=0,this.slidesOffsetAfter=0),this.res&&(this.slidesOffsetAfter=0,this.speed=600),this.myId=Date.now(),this.paginationOptions={clickable:!0,el:"#carousel_pagination_"+this.myId,bulletClass:"carousel_bullet"+this.cssClass,bulletActiveClass:"carousel_bullet_active"},this.navigationOptions={nextEl:"#component_carousel_next_"+this.myId,prevEl:"#component_carousel_prev_"+this.myId},this.autoplayOptions=!1,this.doFade&&(this.slidesPerView="1",this.navigationOptions=!1,this.autoplayOptions={delay:6e3,disableOnInteraction:!1})}ngAfterViewInit(){this.computeLegendW(),setTimeout(()=>{this.computeLegendW()},100),setTimeout(()=>{this.computeLegendW()},200)}ngOnDestroy(){this.unlisten()}computeLegendW(){if(this.fs){let t=this.resfs.toArray();t.length>0&&(this.maxLegendW=t[0].nativeElement.offsetWidth)}else{let t=this.resnofs.toArray();t.length>0&&(this.maxLegendW=t[0].nativeElement.offsetWidth)}}computeSpaceBetween(){this.spaceBetween=this.deviceQueryService.isMobile()?0:this.deviceQueryService.getGutterSize(),Number.isNaN(this.spaceBetween)&&setTimeout(()=>{this.computeSpaceBetween()},500)}registerSwiper(t){this.swiper=t}nextSlide(){this.swiper&&this.swiper.slideNext()}navigate(t,e=!1){e?window.open(t,"_blank"):this.router.navigateByUrl(t)}likeClicked(t){t.liked=!t.liked,t.liked?this.persistantDataService.setItem("activity_liked_"+t.nid,Date.now()):this.persistantDataService.removeItem("activity_liked_"+t.nid),this.persistantDataService.save()}
1getBackground(t){return this.deviceQueryService.isImageMobile()&&t.visuel_mobile&&t.visuel_mobile.url?"linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url("+t.visuel_mobile.url+")":t.visuel&&t.visuel.url?"linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url("+t.visuel.url+")":"none"}slideChange(t){this.activeIndex=t.activeIndex,this.data&&this.data[0]&&this.data[0].url||this.menuColor.emit(this.data[t.activeIndex%this.data.length].couleur_texte)}getLegendHeight(){if(!this.legends)return 0;let t=this.legends.toArray(),e=0;for(let n of t)n.nativeElement.offsetHeight>e&&(e=n.nativeElement.offsetHeight);return this.maxLH=e,this.maxLH<60&&(this.maxLH=60),e}doFS(){this.fullscreen.emit(),setTimeout(()=>{this.computeLegendW(),this.swiper.update()},100),setTimeout(()=>{this.swiper.update()},50)}}return t.\u0275fac=function(e){return new(e||t)(wo(Yx),wo(Pb),wo(Mb),wo(nl),wo(za))},t.\u0275cmp=Ut({type:t,selectors:[["app-carousel"]],viewQuery:function(t,e){if(1&t&&(nc(nC,1),nc(iC,1),nc(rC,1)),2&t){let t;ec(t=ic())&&(e.legends=t),ec(t=ic())&&(e.resnofs=t),ec(t=ic())&&(e.resfs=t)}},inputs:{data:"data",texts:"texts",horairesData:"horairesData",cssClass:"cssClass",noSpace:"noSpace",slidesPerView:"slidesPerView",doFade:"doFade",res:"res",blank:"blank",maxHeight:"maxHeight",rtl:"rtl",centered:"centered",fs:"fs",hideFS:"hideFS",noticeLink:"noticeLink"},outputs:{menuColor:"menuColor",fullscreen:"fullscreen"},decls:7,vars:32,consts:[[3,"effect","slidesPerView","allowTouchMove","loop","spaceBetween","autoplay","pagination","navigation","watchOverflow","slidesOffsetAfter","slidesOffsetBefore","dir","centeredSlides","ngClass","speed","swiper","slideChange"],[4,"ngFor","ngForOf"],[1,"carousel_nav",3,"ngClass"],["class","cursor flex-child component_carousel_prev",3,"id",4,"ngIf"],[1,"cursor","flex-child","carousel_pagination",3,"id"],["class","cursor flex-child component_carousel_next",3,"id",4,"ngIf"],["class","carousel_fs",3,"click",4,"ngIf"],["swiperSlide",""],[3,"ngSwitch"],["class","app-card-page cursor",3,"click",4,"ngSwitchCase"],["class","app-card-activity cursor",3,"click",4,"ngSwitchCase"],["class","app-card-actualite cursor",3,"click",4,"ngSwitchCase"],["class","app-card-promo cursor",3,"click",4,"ngSwitchCase"],["class","app-card-dossier cursor",3,"click",4,"ngSwitchCase"],["class","app-card-ressource cursor",3,"click",4,"ngSwitchCase"],["class","app-card-vv cursor",3,"click",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"app-card-page","cursor",3,"click"],[3,"data"],[1,"app-card-activity","cursor",3,"click"],[3,"fromcarousel","act","likeClicked"],[1,"app-card-actualite","cursor",3,"click"],[1,"app-card-promo","cursor",3,"click"],[1,"app-card-dossier","cursor",3,"click"],[1,"app-card-ressource","cursor",3,"click"],[1,"app-card-vv","cursor",3,"click"],[3,"data","texts"],[4,"ngIf"],[3,"ngStyle","click"],[1,"bib_grid"],[1,"carousel_homepage_left"],["class","bib_title2 ignore_p_margin",3,"innerHtml",4,"ngIf"],["class","ignore_p_margin",3,"innerHtml",4,"ngIf"],[3,"routerLink",4,"ngIf"],[1,"carousel_homepage_right_cont"],["class","carousel_homepage_right",4,"ngIf"],[1,"bib_title2","ignore_p_margin",3,"innerHtml"],[1,"ignore_p_margin",3,"innerHtml"],[3,"routerLink"],[1,"button","cursor",3,"click"],[1,"bib_button","ignore_p_margin",3,"innerHtml"],[1,"carousel_homepage_right"],[1,"carousel_homepage_today",3,"innerHtml"],["class","carousel_homepage_time",3,"innerHtml",4,"ngIf"],[1,"carousel_homepage_time",3,"innerHtml"],[1,"carousel-img",3,"ngClass"],["class","img-filler",4,"ngIf"],[1,"carousel-img-cont","carousel-img-fs"],[3,"src","ngClass","style",4,"ngIf"],[1,"carousel-img-cont","carousel-img-nofs"],[3,"src","ngClass"],["resnofs",""],["class","carousel-legend bib_legende",3,"ngClass",4,"ngIf"],[1,"img-filler"],["resfs",""],[1,"carousel-legend","bib_legende",3,"ngClass"],["legend",""],["class","ignore_p_margin ignore_p_linebreak",3,"innerHtml","style",4,"ngIf"],["class","ignore_p_margin ignore_p_linebreak",3,"innerHtml",4,"ngIf"],["class","carousel_bt desktop_only","target","_blank",3,"download","href",4,"ngIf"],["class","carousel_bt desktop_only",3,"click",4,"ngIf"],[1,"ignore_p_margin","ignore_p_linebreak",3,"innerHtml"],["target","_blank",1,"carousel_bt","desktop_only",3,"download","href"],["src","/assets/img/bt_eye.svg"],["src","/assets/img/bt_eye_hover.svg",1,"hover"],[1,"carousel_bt","desktop_only",3,"click"],["src","/assets/img/bt_fullscreen.svg"],["src","/assets/img/bt_fullscreen_hover.svg",1,"hover"],[1,"curs
1or","flex-child","component_carousel_prev",3,"id"],["prevElem",""],[1,"cursor","flex-child","component_carousel_next",3,"id"],["nextElem",""],[1,"carousel_fs",3,"click"],[1,"carousel_bt"],["src","/assets/img/bt_reduce.svg"],["src","/assets/img/bt_reduce_hover.svg",1,"hover"],["class","carousel_bt",3,"href","target",4,"ngIf"],[1,"carousel_bt",3,"href","target"],["src","/assets/img/bt_notice.svg"],["src","/assets/img/bt_notice_hover.svg",1,"hover"]],template:function(t,e){1&t&&(Mo(0,"swiper",0),Lo("swiper",function(t){return e.registerSwiper(t)})("slideChange",function(t){return e.slideChange(t)}),xo(1,LC,1,0,void 0,1),Oo(),Mo(2,"div",2),xo(3,RC,2,1,"div",3),So(4,"div",4),xo(5,FC,2,1,"div",5),Oo(),xo(6,NC,5,1,"div",6)),2&t&&(Co("effect",e.doFade?"fade":"")("slidesPerView",e.slidesPerView)("allowTouchMove",e.allowTouchMove)("loop",e.doFade)("spaceBetween",e.spaceBetween)("autoplay",e.autoplayOptions)("pagination",e.paginationOptions)("navigation",e.navigationOptions)("watchOverflow",!0)("slidesOffsetAfter",e.slidesOffsetAfter)("slidesOffsetBefore",e.slidesOffsetBefore)("dir",e.rtl?"rtl":"")("centeredSlides",e.centered)("ngClass",Il(25,UC,e.fs))("speed",e.speed),Qr(1),Co("ngForOf",e.data),Qr(1),Jo(e.res?"bottom:"+(e.getLegendHeight()+32)+"px":""),Co("ngClass",Dl(27,HC,e.rtl,e.doFade,e.res,e.fs)),Qr(1),Co("ngIf",e.navigationOptions),Qr(1),Jo(e.res?e.fs?"padding-bottom:calc(6vh + "+(e.maxLH-15)+"px)":"padding-bottom:"+(e.maxLH-(e.deviceQueryService.isMobile()?e.maxLH:15))+"px":""),Co("id","carousel_pagination_"+e.myId),Qr(1),Co("ngIf",e.navigationOptions),Qr(1),Co("ngIf",e.fs))},directives:[jf,Tu,Iu,zu,Hf,Fu,Bu,Nu,Xb,Sw,Dw,Bw,$w,Qw,eC,Uu,Jx],pipes:[Sb],styles:[".app-card-activity[_ngcontent-%COMP%], .app-card-page[_ngcontent-%COMP%], .app-card-promo[_ngcontent-%COMP%]{width:calc(12 * ((100vw - 40px - 77px) / 12) + calc(11 * 7px));margin-right:0}@media (min-width:992px){.app-card-activity[_ngcontent-%COMP%], .app-card-page[_ngcontent-%COMP%], .app-card-promo[_ngcontent-%COMP%]{width:calc(calc(12 + 11) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.app-card-activity[_ngcontent-%COMP%], .app-card-page[_ngcontent-%COMP%], .app-card-promo[_ngcontent-%COMP%]{width:calc(calc(12 + 11) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.app-card-activity[_ngcontent-%COMP%], .app-card-page[_ngcontent-%COMP%], .app-card-promo[_ngcontent-%COMP%]{width:calc(calc(12 + 11) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.app-card-activity[_ngcontent-%COMP%], .app-card-page[_ngcontent-%COMP%], .app-card-promo[_ngcontent-%COMP%]{width:calc(calc(55px * 12) + calc(60px * 11))}}@media (min-width:992px){.app-card-activity[_ngcontent-%COMP%], .app-card-page[_ngcontent-%COMP%], .app-card-promo[_ngcontent-%COMP%]{width:calc(6 * ((100vw - 40px - 77px) / 12) + calc(5 * 7px))}}@media (min-width:992px) and (min-width:992px){.app-card-activity[_ngcontent-%COMP%], .app-card-page[_ngcontent-%COMP%], .app-card-promo[_ngcontent-%COMP%]{width:calc(calc(6 + 5) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.app-card-activity[_ngcontent-%COMP%], .app-card-page[_ngcontent-%COMP%], .app-card-promo[_ngcontent-%COMP%]{width:calc(calc(6 + 5) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.app-card-activity[_ngcontent-%COMP%], .app-card-page[_ngcontent-%COMP%], .app-card-promo[_ngcontent-%COMP%]{width:calc(calc(6 + 5) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.app-card-activity[_ngcontent-%COMP%], .app-card-page[_ngcontent-%COMP%], .app-card-promo[_ngcontent-%COMP%]{width:calc(calc(55px * 6) + calc(60px * 5))}}.app-card-dossier[_ngcontent-%COMP%], .app-card-ressource[_ngcontent-%COMP%], .app-card-vv[_ngcontent-%COMP%]{direction:ltr;width:calc(12 * ((100vw - 40px - 77px) / 12) + calc(11 * 7px));margin-right:0}@media (min-width:992px){.app-card-dossier[_ngcontent-%COMP%], .app-card-ressource[_ngcontent-%COMP%], .app-card-vv[_ngcontent-%COMP%]{width:calc(calc(12 + 11) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.app-card-dossier[_ngcontent-%COMP%], .app-card-ressource[_ngcontent-%COMP%], .app-card-vv[_ngcontent-%COMP%]{width:calc(calc(12 + 11) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.app-card-dossier[_ngcontent-%COMP%], .app-card-ressource[_ngcontent-%COMP%], .app-card-vv[_ngcontent-%COMP%]{width:calc(calc(12 + 11) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.app-card-dossier[_ngcontent-%COMP%], .app-card-ressource[_ngcontent-%COMP%], .app-card-vv[_ngcontent-%COMP%]{width:calc(calc(55px * 12) + calc(60px * 11))}}@media (min-width:992px){.app-card-dossier[_ngcontent-%COMP%], .app-card-ressource[_ngcontent-%COMP%], .app-card-vv[_ngcontent-%COMP%]{width:calc(3 * ((100vw - 40px - 77px) / 12) + calc(2 * 7px))}}@media (min-width:992px) and (min-width:992px){.app-card-dossier[_ngcontent-%COMP%], .app-card-ressource[_ngcontent-%COMP%], .app-card-vv[_ngcontent-%COMP%]{width:calc(calc(3 + 2) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.app-card-dossier[_ngcontent-%COMP%], .app-card-ressource[_ngcontent-%COMP%], .app-card-vv[_ngcontent-%COMP%]{width:calc(calc(3 + 2) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.app-card-dossier[_ngcontent-%COMP%], .app-card-ressource[_ngcontent-%COMP%], .app-card-vv[_ngcontent-%COMP%]{width:calc(calc(3 + 2) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.app-card-dossier[_ngcontent-%COMP%], .app-card-ressource[_ngcontent-%COMP%], .app-card-vv[_ngcontent-%COMP%]{width:calc(calc(55px * 3) + calc(60px * 2))}}.app-card-actualite[_ngcontent-%COMP%]{width:calc(12 * ((100vw - 40px - 77px) / 12) + calc(11 * 7px));margin-right:0}@media (min-width:992px){.app-card-actualite[_ngcontent-%COMP%]{width:calc(calc(12 + 11) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.app-card-actualite[_ngcontent-%COMP%]{width:calc(calc(12 + 11) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.app-card-actualite[_ngcontent-%COMP%]{width:calc(calc(12 + 11) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.app-card-actualite[_ngcontent-%COMP%]{width:calc(calc(55px * 12) + calc(60px * 11))}}@media (min-width:992px){.app-card-actualite[_ngcontent-%COMP%]{width:calc(4 * ((100vw - 40px - 77px) / 12) + calc(3 * 7px))}}@media (min-width:992px) and (min-width:992px){.app-card-actualite[_ngcontent-%COMP%]{width:calc(calc(4 + 3) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.app-card-actualite[_ngcontent-%COMP%]{width:calc(calc(4 + 3) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.app-card-actualite[_ngcontent-%COMP%]{width:calc(calc(4 + 3) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.app-card-actualite[_ngcontent-%COMP%]{width:calc(calc(55px * 4) + calc(60px * 3))}}.carousel_nav[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-top:1rem}@media (min-width:992px){.carousel_nav[_ngcontent-%COMP%]{margin-top:.5rem;justify-content:flex-start}.carousel_nav.rtl[_ngcontent-%COMP%]{justify-content:flex-end}}.carousel_nav[_ngcontent-%COMP%]   .flex-child[_ngcontent-%COMP%]{margin-right:1.25rem}@media (min-width:992px){.carousel_nav[_ngcontent-%COMP%]   .flex-child[_ngcontent-%COMP%]{margin-right:4rem;z-index:10}}.carousel_nav.res[_ngcontent-%COMP%]{position:absolute;bottom:25px;left:0;width:100%;align-items:flex-start;justify-content:space-between}@media (min-width:992px){.carousel_nav.res[_ngcontent-%COMP%]{top:calc(50% - 26px);height:calc(50% - 26px);bottom:auto!important}}@media (max-width:991px){.carousel_nav.res[_ngcontent-%COMP%]   .component_carousel_next[_ngcontent-%COMP%], .carousel_nav.res[_ngcontent-%COMP%]   .component_carousel_prev[_ngcontent-%COMP%]{display:none}}
1.carousel_nav.res[_ngcontent-%COMP%]   .flex-child[_ngcontent-%COMP%]{margin-right:0!important}.carousel_nav.res[_ngcontent-%COMP%]   .carousel_pagination[_ngcontent-%COMP%]{align-self:flex-end;flex-basis:100%;text-align:center;position:relative;z-index:10;pointer-events:none}.carousel_nav.res.fs[_ngcontent-%COMP%]{width:calc(100vw - 120px);left:60px}.carousel_nav.inner[_ngcontent-%COMP%]{position:absolute;bottom:50px;width:100%;justify-content:center!important}.carousel-img[_ngcontent-%COMP%]{position:relative;max-width:calc(100vw - 40px);transition:opacity .5s ease-in-out}.carousel-img[_ngcontent-%COMP%]   .carousel-legend[_ngcontent-%COMP%]{position:absolute;left:0;bottom:.4rem;padding:.5rem 1rem;box-sizing:border-box;max-width:100%;color:#fff}.carousel-img[_ngcontent-%COMP%]   .carousel-legend[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{text-transform:none!important}.carousel-img[_ngcontent-%COMP%]   .carousel-legend.res[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;position:relative;padding:0;margin-top:8px;opacity:0;pointer-events:none;text-align:center;margin-left:20px;margin-right:20px}@media (min-width:500px){.carousel-img[_ngcontent-%COMP%]   .carousel-legend.res[_ngcontent-%COMP%]{margin-left:40px;margin-right:40px}}@media (min-width:992px){.carousel-img[_ngcontent-%COMP%]   .carousel-legend.res[_ngcontent-%COMP%]{justify-content:space-between;text-align:left;margin-left:0;margin-right:0;margin-top:auto;padding-top:20px}}.carousel-img[_ngcontent-%COMP%]   .carousel-legend.res.active[_ngcontent-%COMP%]{opacity:1;pointer-events:all}.carousel-img[_ngcontent-%COMP%]   .carousel-legend.res[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-left:auto}.carousel-img[_ngcontent-%COMP%]   .carousel-legend.res[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{cursor:pointer}.carousel-img[_ngcontent-%COMP%]   .carousel-legend.res[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-top:8px}@media (min-width:992px){.carousel-img[_ngcontent-%COMP%]   .carousel-legend.res[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-top:0}}.carousel-img[_ngcontent-%COMP%]   .carousel-legend.res.fs[_ngcontent-%COMP%]{justify-content:center}.carousel-img.res[_ngcontent-%COMP%]{max-width:100vw;height:100%;display:flex;flex-direction:column}.carousel-img.res[_ngcontent-%COMP%]   .img-filler[_ngcontent-%COMP%]{margin-bottom:auto}@media (min-width:992px){.carousel-img.res[_ngcontent-%COMP%]:not(.active){opacity:.3}}.carousel-img[_ngcontent-%COMP%]   .carousel-img-fs[_ngcontent-%COMP%]{position:relative;display:none}.carousel-img[_ngcontent-%COMP%]   .carousel-img-nofs[_ngcontent-%COMP%]{position:relative;min-height:120px;display:flex;justify-content:center;align-items:center;flex-basis:100%}.carousel-img[_ngcontent-%COMP%]   .carousel-img-nofs[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%}.carousel-img[_ngcontent-%COMP%]   .carousel-img-cover[_ngcontent-%COMP%]{position:absolute;left:0;bottom:0;height:30px;width:100%;background:linear-gradient(0deg,#0000004d,#0000);display:none}.carousel-img[_ngcontent-%COMP%]   .carousel-img-cont[_ngcontent-%COMP%]{text-align:center}.carousel-img.fs[_ngcontent-%COMP%]   .carousel-img-fs[_ngcontent-%COMP%]{display:block}.carousel-img.fs[_ngcontent-%COMP%]   .carousel-img-nofs[_ngcontent-%COMP%]{display:none}.carousel-img.fs[_ngcontent-%COMP%]   .carousel-legend[_ngcontent-%COMP%]{padding-top:8px}img.res[_ngcontent-%COMP%]{object-fit:contain;display:inline-block;max-width:100vw}@media (min-width:992px){img.res[_ngcontent-%COMP%]{height:100%;aspect-ratio:4/3}.carousel-img.lone[_ngcontent-%COMP%]   img.res[_ngcontent-%COMP%]{aspect-ratio:unset!important}}.carousel_homepage[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;height:100vh;display:flex;align-items:flex-end;padding-bottom:6.81rem;background-color:#aaa;background-size:cover;background-position:50%}.carousel_homepage_left[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;grid-row-start:2;grid-row-end:3}@media (min-width:992px){.carousel_homepage_left[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:9;grid-row-start:1;grid-row-end:2}}.carousel_homepage_left[_ngcontent-%COMP%]   .bib_title2[_ngcontent-%COMP%]{text-transform:none;margin-bottom:1rem;line-height:130%;letter-spacing:.02rem}.carousel_homepage_left[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{display:inline-block;margin-top:1.25rem;padding:1.06rem 1.56rem;border:1px solid #fff}.carousel_homepage_left[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{color:#fff}.carousel_homepage_left[_ngcontent-%COMP%]   .bib_button[_ngcontent-%COMP%]{font-weight:400!important}.carousel_homepage_left[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]:hover{background-color:#fff;border:1px solid #fff}.carousel_homepage_left[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]:hover   .bib_button[_ngcontent-%COMP%]{color:#131313!important}.carousel_homepage_right_cont[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;grid-row-start:1;grid-row-end:2}@media (min-width:992px){.carousel_homepage_right_cont[_ngcontent-%COMP%]{grid-column-start:9;grid-column-end:13;padding-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(.75 * 7px))}}@media (min-width:992px) and (min-width:992px){.carousel_homepage_right_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + .75) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.carousel_homepage_right_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + .75) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.carousel_homepage_right_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + .75) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.carousel_homepage_right_cont[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * .75))}}.carousel_homepage_right_cont[_ngcontent-%COMP%]   .carousel_homepage_right[_ngcontent-%COMP%]{width:100%;padding-bottom:20px;margin-bottom:30px;border-bottom:1px solid #fff}@media (min-width:992px){.carousel_homepage_right_cont[_ngcontent-%COMP%]   .carousel_homepage_right[_ngcontent-%COMP%]{border-bottom:none;border-left:1px solid #fff;padding-left:calc(0 * ((100vw - 40px - 77px) / 12) + calc(.5 * 7px))}}@media (min-width:992px) and (min-width:992px){.carousel_homepage_right_cont[_ngcontent-%COMP%]   .carousel_homepage_right[_ngcontent-%COMP%]{padding-left:calc(calc(0 + .5) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.carousel_homepage_right_cont[_ngcontent-%COMP%]   .carousel_homepage_right[_ngcontent-%COMP%]{padding-left:calc(calc(0 + .5) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.carousel_homepage_right_cont[_ngcontent-%COMP%]   .carousel_homepage_right[_ngcontent-%COMP%]{padding-left:calc(calc(0 + .5) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.carousel_homepage_right_cont[_ngcontent-%COMP%]   .carousel_homepage_right[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 0) + calc(60px * .5))}}.carousel_homepage_right_cont[_ngcontent-%COMP%]   .carousel_homepage_right[_ngcontent-%COMP%]   .carousel_homepage_today[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:700;margin-bottom:1rem}@media (min-width:992px){.carousel_homepage_right_cont[_ngcontent-%COMP%]   .carousel_homepage_right[_ngcontent-%COMP%]   .carousel_homepage_today[_ngcontent-%COMP%]{margin-bottom:2rem}}.carousel_homepage_right_cont[_ngcontent-%COMP%]   .carousel_homepage_right[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{color:#fff}.carousel_homepage.color_black[_ngcontent-%COMP%]   .carousel_homepage_left[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{color:#131313}.carousel_homepage.color_black[_ngcontent-%COMP%]   .carousel_homepage_left[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{border:1px solid #131313}.carousel_homepage.color_black[_ngcontent-%COMP%]   .carousel_homepage_left[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]:hover{background-color:#131313;border:1px solid #131313}.carousel_homepage.color_black[_ngcontent-%COMP%]   .carousel_homepage_left[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]:hover   .bib_button[_ngcontent-%COMP%]{color:#fff!important}.carousel_homepage.color_black[_ngcontent-%COMP%]   .carousel_homepage_right[_ngcontent-%COMP%]{border-bottom:1px solid #131313}@media (min-width:992px){.carousel_homepage.color_black[_ngcontent-%COMP%]   .carousel_homepage_right[_ngcontent-%COMP%]{border-bottom:0;border-left:1px solid #131313}}.carousel_homepage.color_black[_ngcontent-%COMP%]   .carousel_homepage_right[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{color:#131313}.carousel_fs[_ngcontent-%COMP%]{position:absolute;top:30px;right:60px;width:calc(100vw - 120px);
1display:flex;justify-content:flex-end;align-items:center;height:50px;z-index:10}.carousel_bt[_ngcontent-%COMP%]{height:34px;width:34px;cursor:pointer;margin-right:8px}@media (min-width:992px){.carousel_bt[_ngcontent-%COMP%]{height:50px;width:50px}}.carousel_bt[_ngcontent-%COMP%]:last-child{margin-right:0}.carousel_bt[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%}.carousel_bt[_ngcontent-%COMP%]   img.hover[_ngcontent-%COMP%]{display:none}@media (min-width:992px){.carousel_bt[_ngcontent-%COMP%]:hover   img.hover[_ngcontent-%COMP%]{display:block}.carousel_bt[_ngcontent-%COMP%]:hover   img[_ngcontent-%COMP%]:not(.hover){display:none}}"]}),t})();const VC=function(t){return{inline:t}};function $C(t,e){if(1&t){const t=Io();Mo(0,"div",1),Mo(1,"div",2),Lo("plyrInit",function(e){return Ae(t),Bo().registerPlyr(e)})("plyrPlay",function(){return Ae(t),Bo().plyrPlay()})("plyrPause",function(){return Ae(t),Bo().plyrPause()}),Oo(),Oo()}if(2&t){const t=Bo();Co("ngClass",Il(4,VC,t.inline)),Qr(1),Co("plyrPlaysInline",!0)("plyrSources",t.audioSources)("plyrOptions",t.options)}}let qC=(()=>{class t{constructor(t){this.platformId=t,this.inline=!1,this.isServer=!0,this.launched=!1,this.paused=!0,this.isServer=Xu(t)}ngOnInit(){let t=Object.keys(this.data);0!=t.length&&(this.audioSources=[{src:this.data[t[0]]["data-url"],type:"audio/mp3"}],this.options={controls:'\n      <div class="plyr__controls">\n        <button class="plyr__controls__item plyr__control" type="button" data-plyr="play" aria-label="Play">\n          <svg class="icon--pressed" aria-hidden="true" style="width:50px;height:50px;" width="51" height="51" viewBox="0 0 51 51" focusable="false">\n            <circle cx="24.75" cy="24.5358" r="24.5" fill="white"/>\n            <path d="M18.9837 16.232V33.732" stroke="#303030" stroke-width="3"/>\n            <path d="M30.0163 16.232V33.732" stroke="#303030" stroke-width="3"/>\n          </svg>\n          <svg class="icon--not-pressed" aria-hidden="true" style="width:50px;height:50px;" width="51" height="51" viewBox="0 0 51 51" focusable="false">\n            <circle cx="24.75" cy="24.5358" r="24.5" fill="white"/>\n            <path d="M36.5589 24.1499L18.714 14.8026C18.0482 14.4539 17.25 14.9368 17.25 15.6885V34.3831C17.25 35.1347 18.0482 35.6177 18.714 35.2689L36.5589 25.9216C37.2735 25.5473 37.2735 24.5243 36.5589 24.1499Z" fill="#303030"/>\n          </svg>\n          <span class="label--pressed plyr__sr-only">Pause</span>\n          <span class="label--not-pressed plyr__sr-only">Play</span>\n        </button>\n        <div class="plyr__controls__item plyr__progress__container">\n          <div class="plyr__progress">\n            <input data-plyr="seek" type="range" min="0" max="100" step="0.01" value="0" autocomplete="off" role="slider">\n            <progress class="plyr__progress__buffer" min="0" max="100" value="0" role="progressbar" aria-hidden="true">% buffered</progress>\n            <span class="plyr__tooltip">00:00</span>\n          </div>\n        </div>\n        <div class="plyr__controls__item plyr__time--current plyr__time" aria-label="Current time">00:00</div>\n        <svg class="desktop_only" width="29" height="28" viewBox="0 0 29 28" fill="none" xmlns="http://www.w3.org/2000/svg" style="margin-left:20px;margin-right:8px;">\n          <path d="M7.05 9.09961H1.75V19.3996H7.05V9.09961Z" stroke="white" stroke-width="1.6" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>\n          <path d="M7.0498 9.1L17.4498 1.5V26.8L7.0498 19.4V9.1Z" stroke="white" stroke-width="1.6" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>\n          <path d="M20.8496 11.2998C22.5496 11.2998 23.8496 12.5998 23.8496 14.2998C23.8496 15.9998 22.5496 17.2998 20.8496 17.2998" stroke="white" stroke-width="1.6" stroke-miterlimit="10" stroke-linecap="square" stroke-linejoin="round"/>\n          <path d="M20.8496 7.40039C24.6496 7.40039 27.7496 10.5004 27.7496 14.3004C27.7496 18.1004 24.6496 21.2004 20.8496 21.2004" stroke="white" stroke-width="1.6" stroke-miterlimit="10" stroke-linecap="square" stroke-linejoin="round"/>\n        </svg>\n\n        <div class="plyr__controls__item plyr__volume desktop_only">\n          <input data-plyr="volume" type="range" min="0" max="1" step="0.05" value="
10" autocomplete="off" role="slider" aria-label="Volume" aria-valuemin="0" aria-valuemax="100">\n        </div>\n      </div>\n    '})}plyrPlay(){this.launched=!0,this.paused=!1}plyrPause(){this.paused=!0}registerPlyr(t){this.plyr=t}}return t.\u0275fac=function(e){return new(e||t)(wo(mc))},t.\u0275cmp=Ut({type:t,selectors:[["app-audio-player"]],inputs:{data:"data",inline:"inline"},decls:1,vars:1,consts:[["class","audio_player_cont",3,"ngClass",4,"ngIf"],[1,"audio_player_cont",3,"ngClass"],["plyr","","plyrType","audio",1,"plyr_audio",3,"plyrPlaysInline","plyrSources","plyrOptions","plyrInit","plyrPlay","plyrPause"]],template:function(t,e){1&t&&xo(0,$C,2,6,"div",0),2&t&&Co("ngIf",e.audioSources&&!e.isServer)},directives:[zu,Tu,p_],styles:[".audio_player_cont[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;min-height:50px}.audio_player_cont.inline[_ngcontent-%COMP%]{background-color:initial!important}@media (min-width:992px){.audio_player_cont[_ngcontent-%COMP%]:not(.inline){background-image:url(/assets/img/courbes_niveau_audio.png);background-size:cover;background-position:50%}}.audio_player_cont[_ngcontent-%COMP%]:not(.inline)   .plyr_audio[_ngcontent-%COMP%]{width:100%}@media (min-width:992px){.audio_player_cont[_ngcontent-%COMP%]:not(.inline)   .plyr_audio[_ngcontent-%COMP%]{position:absolute;left:0;bottom:30px}}"]}),t})();const GC=["menucont"],ZC=function(t,e,n){return{active:t,selected:e,current:n}};function WC(t,e){if(1&t){const t=Io();Mo(0,"a",26),Lo("click",function(){Ae(t);const e=Bo().$implicit;return Bo().menuClick(e)}),Mo(1,"div",27),Lo("mouseenter",function(){Ae(t);const e=Bo().$implicit;return Bo().onHover(e)}),Bl(2,"safe"),Oo(),Oo()}if(2&t){const t=Bo().$implicit,e=Bo();Co("routerLink",t.href),Qr(1),Co("ngClass",zl(6,ZC,1==t.active,e.currentHover==t,e.currentMenu==t))("innerHtml",Nl(2,3,t.label,"html"),Ki)}}function XC(t,e){if(1&t){const t=Io();Mo(0,"div",28),Lo("mouseenter",function(){Ae(t);const e=Bo().$implicit;return Bo().onHover(e)}),Bl(1,"safe"),Oo()}if(2&t){const t=Bo().$implicit,e=Bo();Co("ngClass",zl(5,ZC,1==t.active,e.currentHover==t,e.currentMenu==t))("innerHtml",Nl(1,2,t.label,"html"),Ki)}}function QC(t,e){if(1&t&&(Mo(0,"span"),xo(1,WC,3,10,"a",24),xo(2,XC,2,9,"div",25),Oo()),2&t){const t=e.$implicit;Qr(1),Co("ngIf",""!=t.href),Qr(1),Co("ngIf",""==t.href)}}function KC(t,e){if(1&t&&(Mo(0,"div"),da(1),Oo()),2&t){const t=Bo();ea("pip bib_mentions pip_color"+(t.currentHover?"_white":t.reappear?"":t.color)),Qr(1),pa(t.persistantDataService.getNumActLiked())}}const YC=function(t){return{selected:t}};function JC(t,e){if(1&t&&(Mo(0,"a",29),Mo(1,"div",30),So(2,"span",13),Bl(3,"safe"),Oo(),Oo()),2&t){const t=e.$implicit,n=Bo();Co("routerLink",t.url),Qr(1),Co("ngClass",Il(6,YC,t.lang==n.currentLanguage)),Qr(1),Co("innerHtml",Nl(3,3,t.lang,"html"),Ki)}}const tP=function(t){return{current:t}};function eP(t,e){if(1&t&&(Mo(0,"div",37),So(1,"a",38),Bl(2,"safe"),Oo()),2&t){const t=e.$implicit,n=Bo(4);Co("ngClass",Il(6,tP,n.currentChild==t)),Qr(1),Co("routerLink",t.href)("innerHtml",Nl(2,3,t.label,"html"),Ki)}}function nP(t,e){if(1&t&&(Mo(0,"div",33),Mo(1,"div",34),So(2,"div",35),xo(3,eP,3,8,"div",36),Oo(),Oo()),2&t){const t=e.$implicit;Qr(2),Co("innerHtml",t.label,Ki),Qr(1),Co("ngForOf",t.children)}}function iP(t,e){if(1&t&&(ko(0),xo(1,nP,4,2,"div",32),To()),2&t){const t=Bo(2);Qr(1),Co("ngForOf",t.currentHover.children)}}function rP(t,e){1&t&&(ko(0),Mo(1,"div",33),da(2,"\xa0"),Oo(),Mo(3,"div",33),da(4,"\xa0"),Oo(),Mo(5,"div",33),da(6,"\xa0"),Oo(),To())}function sP(t,e){1&t&&(So(0,"div",42),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(3).hourMusee,"html"),Ki)}function oP(t,e){1&t&&(So(0,"div",42),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(3).hourChaudron,"html"),Ki)}function aP(t,e){if(1&t&&(Mo(0,"div",39),Mo(1,"div",34),So(2,"div",40),Bl(3,"safe"),xo(4,sP,2,4,"div",41),xo(5,oP,2,4,"div",41),Oo(),Oo()),2&t){const t=Bo(2);Qr(2),Co("innerHtml",Nl(3,3,t.hourToday,"html"),Ki),Qr(2),Co("ngIf",t.hourMusee),Qr(1),Co("ngIf",t.hourChaudron)}}function lP(t,e){if(1&t&&(ko(0),xo(1,iP,2,1,"ng-container",22),xo(2,rP,7,0,"ng-container",22),xo(3,aP,6,6,"div",31),To()),2&t){const t=Bo();Qr(1),Co("ngIf",t.currentHover.children.length>0),Qr(1),Co("ngIf",0==t.currentHover.children.length),Qr(1),Co("ngIf",t.hourToday)}}const cP=function(t,e,n){return{greyed:t,selected:e,current:n}};function uP(t,e){if(1&t&&(Mo(0,"a",58),So(1,"div",59),Bl(2,"safe"),Oo()),2&t){const t=Bo(),e=t.$implicit,n=t.index,i=Bo(2);Co("routerLink",e.href),Qr(1),Co("ngClass",zl(6,cP,i.selectedEntry>-1&&i.selectedEntry!=n,i.selectedEntry==n,i.currentMenu==e))("innerHtml",Nl(2,3,e.label,"html"),Ki)}}function hP(t,e){if(1&t&&(So(0,"div",59),Bl(1,"safe")),2&t){const t=Bo(),e=t.index,n=t.$implicit,i=Bo(2);Co("ngClass",zl(5,cP,i.selectedEntry>-1&&i.selectedEntry!=e,i.selectedEntry==e,i.currentMenu==n))("innerHtml",Nl(1,2,n.label,"html"),Ki)}}function dP(t,e){1&t&&(Mo(0,"div",60),So(1,"div",61),Oo())}function pP(t,e){if(1&t&&(Mo(0,"div",65),So(1,"a",66),Bl(2,"safe"),Oo()),2&t){const t=e.$implicit,n=Bo(4);Qr(1),Co("ngClass",Il(6,tP,n.currentChild==t))("routerLink",t.href)("innerHtml",Nl(2,3,t.label,"html"),Ki)}}function mP(t,e){if(1&t&&(Mo(0,"div",62),So(1,"div",63),Bl(2,"safe"),xo(3,pP,3,8,"div",64),Oo()),2&t){const t=e.$implicit;Qr(1),Co("innerHtml",Nl(2,2,t.label,"html"),Ki),Qr(2),Co("ngForOf",t.children)}}function gP(t,e){if(1&t){const t=Io();Mo(0,"div",50),Mo(1,"div",51),Lo("click",function(){Ae(t);const n=e.index;return Bo(2).clickEntry(n)}),xo(2,uP,3,10,"a",52),xo(3,hP,2,9,"div",53),xo(4,dP,2,0,"div",54),Oo(),Mo(5,"div",55),Mo(6,"div",56),xo(7,mP,4,5,"div",57),Oo(),Oo(),Oo()}if(2&t){const t=e.$implicit,n=e.index,i=Bo(2);Qr(2),Co("ngIf",""!=t.href),Qr(1),Co("ngIf",""==t.href),Qr(1),Co("ngIf",i.selectedEntry==n),Qr(1),Co("@slideUpDown",i.selectedEntry==n?"open":"closed"),Qr(2),Co("ngForOf",t.children)}}function fP(t,e){if(1&t&&(Mo(0,"a",67),So(1,"div",68),Bl(2,"safe"),Oo()),2&t){const t=e.$implicit,n=Bo(2);Co("routerLink",t.url),Qr(1),Co("ngClass",Il(6,YC,t.lang==n.currentLanguage))("innerHtml",Nl(2,3,t.lang,"html"),Ki)}}function _P(t,e){1&t&&(So(0,"div",70),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(3).hourMusee,"html"),Ki)}function vP(t,e){1&t&&(So(0,"div",70),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(3).hourChaudron,"html"),Ki)}function yP(t,e){if(1&t&&(Mo(0,"div",39),Mo(1,"div",34),So(2,"div",40),Bl(3,"safe"),xo(4,_P,2,4,"div",69),xo(5,vP,2,4,"div",69),Oo(),Oo()),2&t){const t=Bo(2);Qr(2),Co("innerHtml",Nl(3,3,t.hourToday,"html"),Ki),Qr(2),Co("ngIf",t.hourMusee),Qr(1),Co("ngIf",t.hourChaudron)}}function xP(t,e){if(1&t&&(Mo(0,"div",43),xo(1,gP,8,5,"div",44),Mo(2,"div",45),xo(3,fP,3,8,"a",46),Oo(),Mo(4,"div",47),Mo(5,"a",48),So(6,"div",49),Oo(),Oo(),xo(7,yP,6,6,"div",31),Oo()),2&t){const t=Bo();Qr(1),Co("ngForOf",t.data.menu),Qr(2),Co("ngForOf",t.langs),Qr(3),Co("innerHtml",t.texts.j_y_suis,Ki),Qr(1),Co("ngIf",t.hourToday)}}const bP=function(t,e){return{reappear:t,hasHover:e}},wP=function(t){return{show:t}},CP=function(t){return{menu_button_hover:t}},PP=function(t,e){return{hidden:t,open:e}};let MP=(()=>{class t{constructor(t,e,n,i,r){this.persistantDataService=t,this.deviceQueryService=e,this.router=n,this.api=i,this.renderer=r,this.isHomepageMenu=!1,this.currentHover=null,this.actLiked=0,this.forceOpen=!1,this.slide=!1,this.displayLang=!1,this.selectedEntry=-1,this.fixedPosition=new Vl,this.offScreenMenu=new Vl,this.menuOpen=new Vl,this.horairesData=new Vl,this.scrolled=new Vl,this.reappear=!1,this.offscreen=!1,this.lastScrollY=0,this.unlisten=r.listen("window","
1scroll",t=>{this.onWindowScroll(t)})}set forcedColor(t){null!=t&&(this.color=t)}onWindowScroll(t){if(this.deviceQueryService.ignoreMenu)return;this.menucont.nativeElement.getBoundingClientRect();let e=this.lastScrollY;this.lastScrollY=window.scrollY,window.scrollY<96?(this.reappear=!1,this.offscreen=!1):window.scrollY-e<0?(this.reappear=!0,this.offscreen=!1):(this.offscreen=!0,setTimeout(()=>{this.reappear=!1,this.fixedPosition.emit(this.reappear)},250)),this.scrolled.emit(window.scrollY>0),this.fixedPosition.emit(this.reappear),this.offScreenMenu.emit(this.offscreen)}ngOnInit(){this.color="white"==this.data.couleur_header?"_white":"",this.actLiked=this.persistantDataService.getNumActLiked(),this.api.callAction("ws_web_horaires").subscribe(t=>{t.date&&(this.hourToday=t.date),t.musee&&(this.hourMusee=t.musee),t.chaudron&&(this.hourChaudron=t.chaudron),this.horairesData.emit({today:this.hourToday,musee:this.hourMusee,chaudron:this.hourChaudron})}),this.langs=[];for(let t in this.data.switcher_language)this.langs.push({lang:t,url:this.data.switcher_language[t]});for(let t of this.data.menu)if(this.router.url==t.href)this.currentMenu=t;else for(let e of t.children)for(let n of e.children)n.href==this.router.url&&(this.currentMenu=t,this.currentChild=n)}ngOnDestroy(){this.unlisten()}onHover(t){t.children.length>0?this.currentHover=t:this.onHout()}onHout(){this.currentHover=null}menuClick(t){t.href&&this.menuOpen.emit(!1)}onBurger(){this.forceOpen?(this.slide=!1,this.menuOpen.emit(!1),this.reappear=!0,setTimeout(()=>{this.forceOpen=!1},250)):(this.slide=!1,this.forceOpen=!0,this.reappear=!1,this.menuOpen.emit(!0),setTimeout(()=>{this.slide=!0},10))}clickEntry(t){if(0==this.data.menu[t].children.length)return this.menuOpen.emit(!1),void this.router.navigateByUrl(this.data.menu[t].href);this.selectedEntry=this.selectedEntry==t?-1:t}navigate(t){this.menuOpen.emit(!1),this.router.navigateByUrl(t)}goMySelection(){let t=this.persistantDataService.getLikedAct();this.menuOpen.emit(!1),this.navigate(t.length>0?"ma-selection/"+t.join("-"):"ma-selection")}goBoussole(){window.open("https://boussole.bibracte.fr")}}return t.\u0275fac=function(e){return new(e||t)(wo(Mb),wo(Pb),wo(Yx),wo(bb),wo(za))},t.\u0275cmp=Ut({type:t,selectors:[["app-menu"]],viewQuery:function(t,e){if(1&t&&nc(GC,1),2&t){let t;ec(t=ic())&&(e.menucont=t.first)}},inputs:{data:"data",currentLanguage:"currentLanguage",texts:"texts",isHomepageMenu:"isHomepageMenu",forcedColor:"forcedColor"},outputs:{fixedPosition:"fixedPosition",offScreenMenu:"offScreenMenu",menuOpen:"menuOpen",horairesData:"horairesData",scrolled:"scrolled"},decls:27,vars:30,consts:[[1,"menu_cont",3,"ngClass","mouseleave"],["menucont",""],["id","menu-img"],[1,"cursor",3,"routerLink"],[3,"src"],["id","menu-menu-cont",1,"desktop_only"],["id","menu-menu"],[4,"ngFor","ngForOf"],[1,"menu_right"],[1,"menu_right_child","menu_right_like","cursor",3,"click"],[2,"position","relative"],[3,"class",4,"ngIf"],[1,"menu_right_child","menu_right_locale","desktop_only","cursor",3,"mouseenter","mouseleave"],[3,"innerHtml"],[1,"menu_right_lang_menu",3,"ngClass"],["class","noline",3,"routerLink",4,"ngFor","ngForOf"],[1,"mobile_only",3,"src","click"],["href","https://boussole.bibracte.fr","target","_blank",1,"noline"],[1,"menu_button","desktop_only","cursor",3,"ngClass","innerHtml"],[1,"menu_open","menu_open_white",3,"ngClass"],[1,"menu_open_content","bib_grid"],[1,"menu_open_categories","desktop_only"],[4,"ngIf"],["class","menu_open_content_mobile",4,"ngIf"],["class","menu_a",3,"routerLink","click",4,"ngIf"],["class","menu_cat cursor",3,"ngClass","innerHtml","mouseenter",4,"ngIf"],[1,"menu_a",3,"routerLink","click"],[1,"menu_cat",3,"ngClass","innerHtml","mouseenter"],[1,"menu_cat","cursor",3,"ngClass","innerHtml","mouseenter"],[1,"noline",3,"routerLink"],[1,"menu_right_lang_menu_locale",3,"ngClass"],["class","menu_open_category menu_open_infos",4,"ngIf"],["class","menu_open_category",4,"ngFor","ngForOf"],[1,"menu_open_category"],[1,"menu_open_category_content"],[1,"menu_open_category_title","bib_title4",3,"innerHtml"],["class","menu_open_link",3,"ngClass",4,"ngFor","ngForOf"],[1,"menu_open_link",3,"ngClass"],[1,"curs
1or",3,"routerLink","innerHtml"],[1,"menu_open_category","menu_open_infos"],[1,"menu_open_today",3,"innerHtml"],["class","menu_open_link nohover",3,"innerHtml",4,"ngIf"],[1,"menu_open_link","nohover",3,"innerHtml"],[1,"menu_open_content_mobile"],["class","menu_open_entry",4,"ngFor","ngForOf"],[1,"bib_button","menu_open_langs"],[3,"routerLink",4,"ngFor","ngForOf"],[1,"menu_open_button"],["href","https://boussole.bibracte.fr","target","_blank"],[1,"menu_button","menu_button_hover",3,"innerHtml"],[1,"menu_open_entry"],[1,"menu_open_entry_header",3,"click"],["class","menu_a",3,"routerLink",4,"ngIf"],["class","menu_open_entry_header_label bib_title3",3,"ngClass","innerHtml",4,"ngIf"],["class","menu_open_entry_header_close",4,"ngIf"],[1,"menu_open_entry_wrap"],[1,"menu_open_entry_content"],["class","menu_open_category_cont",4,"ngFor","ngForOf"],[1,"menu_a",3,"routerLink"],[1,"menu_open_entry_header_label","bib_title3",3,"ngClass","innerHtml"],[1,"menu_open_entry_header_close"],[1,"component_arrow","component_arrow_green","menu_open_entry_header_arrow"],[1,"menu_open_category_cont"],[1,"bib_title4","menu_open_category_name",3,"innerHtml"],["class","menu_open_link",4,"ngFor","ngForOf"],[1,"menu_open_link"],[1,"cursor",3,"ngClass","routerLink","innerHtml"],[3,"routerLink"],[1,"menu_open_lang",3,"ngClass","innerHtml"],["class","menu_open_link",3,"innerHtml",4,"ngIf"],[1,"menu_open_link",3,"innerHtml"]],template:function(t,e){1&t&&(Mo(0,"div",0,1),Lo("mouseleave",function(){return e.onHout()}),Mo(2,"div"),Mo(3,"div",2),Mo(4,"a",3),So(5,"img",4),Oo(),Oo(),Mo(6,"div",5),Mo(7,"div",6),xo(8,QC,3,2,"span",7),Oo(),Oo(),Mo(9,"div",8),Mo(10,"div",9),Lo("click",function(){return e.goMySelection()}),Mo(11,"div",10),So(12,"img",4),xo(13,KC,2,3,"div",11),Oo(),Oo(),Mo(14,"div",12),Lo("mouseenter",function(){return e.displayLang=!0})("mouseleave",function(){return e.displayLang=!1}),So(15,"div",13),So(16,"img",4),Mo(17,"div",14),xo(18,JC,4,8,"a",15),Oo(),Oo(),Mo(19,"img",16),Lo("click",function(){return e.onBurger()}),Oo(),Mo(20,"a",17),So(21,"div",18),Oo(),Oo(),Oo(),Mo(22,"div",19),Mo(23,"div",20),Mo(24,"div",21),xo(25,lP,4,3,"ng-container",22),Oo(),Oo(),xo(26,xP,8,4,"div",23),Oo(),Oo()),2&t&&(Co("ngClass",Al(20,bP,e.reappear,e.currentHover)),Qr(2),ea("bib_grid menu_bar menu"+(e.currentHover?"_white":e.color)),Qr(2),Co("routerLink","fr"==e.currentLanguage?"/":"/en"),Qr(1),Co("src","/assets/img/logo_bibracte"+(e.currentHover?"_white":e.reappear?"":e.color)+".svg",Yi),Qr(3),Co("ngForOf",e.data.menu),Qr(4),Co("src","/assets/img/like"+(e.currentHover?"_white":e.reappear?"":e.color)+".svg",Yi),Qr(1),Co("ngIf",e.persistantDataService.getNumActLiked()>0),Qr(2),Jo("opacity:"+(e.displayLang?"0":"1")),Co("innerHtml",e.currentLanguage,Ki),Qr(1),Co("src","/assets/img/arrow"+(e.currentHover?"_white":e.reappear?"":e.color)+".svg",Yi),Qr(1),Co("ngClass",Il(23,wP,e.displayLang)),Qr(1),Co("ngForOf",e.langs),Qr(1),Co("src","/assets/img/menu"+(e.reappear?"":e.color)+".svg",Yi),Qr(2),Co("ngClass",Il(25,CP,null!=e.currentHover))("innerHtml",e.texts.j_y_suis,Ki),Qr(1),Co("ngClass",Al(27,PP,!e.currentHover&&!e.forceOpen,e.slide)),Qr(3),Co("ngIf",e.currentHover),Qr(1),Co("ngIf",e.forceOpen))},directives:[Tu,Jx,Iu,zu],pipes:[Sb],styles:[".menu_cont[_ngcontent-%COMP%]{width:100%;transition:background-color .25s ease-in-out}.menu_cont.reappear[_ngcontent-%COMP%]{background-color:#fff;z-index:100}.menu_cont.reappear[_ngcontent-%COMP%]   .menu_cat[_ngcontent-%COMP%], .menu_cont.reappear[_ngcontent-%COMP%]   .menu_right_child[_ngcontent-%COMP%], .menu_cont.reappear[_ngcontent-%COMP%]   .menu_right_lang_menu_locale[_ngcontent-%COMP%]{color:#131313}.menu_cont.reappear.hasHover[_ngcontent-%COMP%]{background-color:initial}.menu_cont.reappear.hasHover[_ngcontent-%COMP%]   .menu_cat[_ngcontent-%COMP%], .menu_cont.reappear.hasHover[_ngcontent-%COMP%]   .menu_right_child[_ngcontent-%COMP%], .menu_cont.reappear.hasHover[_ngcontent-%COMP%]   .menu_right_lang_menu_locale[_ngcontent-%COMP%]{color:#fff}.menu_bar[_ngcontent-%COMP%]{z-index:10;padding:1.25rem 0}@media (min-width:992px){.menu_bar[_ngcontent-%COMP%]{padding:1.56rem 0}}#menu-img[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7;display:flex;align-items:center}#menu-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;max-height:35px}@media (min-width:992px){#menu-img[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:4;grid-row-start:1;grid-row-end:2}}#menu-img[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{line-height:100%!important}
1.menu_a[_ngcontent-%COMP%]:hover   .menu_cat[_ngcontent-%COMP%], .menu_cat.selected[_ngcontent-%COMP%], .menu_open_link[_ngcontent-%COMP%]:not(.nohover):hover{font-weight:700}.menu_white[_ngcontent-%COMP%], .menu_white[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.menu[_ngcontent-%COMP%], .menu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#131313}.menu_cat.current[_ngcontent-%COMP%], .menu_open_entry_header_label.current[_ngcontent-%COMP%], .menu_open_link[_ngcontent-%COMP%]   a.current[_ngcontent-%COMP%]{font-weight:700;border-bottom:2px solid #fff}.menu_cont[_ngcontent-%COMP%]:not(.hasHover).reappear   .menu_cat.current[_ngcontent-%COMP%]{border-bottom:2px solid #131313}.menu_open_link.current[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:700;border-bottom:2px solid #fff}#menu-menu-cont[_ngcontent-%COMP%]{grid-column-start:4;grid-column-end:10;grid-row-start:1;grid-row-end:2}#menu-menu[_ngcontent-%COMP%], #menu-menu-cont[_ngcontent-%COMP%]{display:flex;align-items:center}#menu-menu[_ngcontent-%COMP%]{width:100%;justify-content:space-evenly}#menu-menu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}.menu_right[_ngcontent-%COMP%]{grid-column-start:9;grid-column-end:13;grid-row-start:1;grid-row-end:2;display:flex;justify-content:flex-end;align-items:center;padding-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}@media (min-width:992px){.menu_right[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.menu_right[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.menu_right[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.menu_right[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}.menu_right[_ngcontent-%COMP%]   .menu_right_child[_ngcontent-%COMP%]{margin-right:20%}@media (min-width:992px){.menu_right[_ngcontent-%COMP%]   .menu_right_child[_ngcontent-%COMP%]{margin-right:10%}}.menu_right_like[_ngcontent-%COMP%]{position:relative;opacity:0;pointer-events:none}.menu_right_like[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:21px;max-width:100%;display:block}@media (min-width:992px){.menu_right_like[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.menu_right_like[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:25px;height:auto}}.menu_right_like[_ngcontent-%COMP%]   .pip[_ngcontent-%COMP%]{position:absolute;bottom:0;left:15px;width:20px;height:20px;background-color:#9ab400;border-radius:50px;display:flex;justify-content:center;align-items:center;color:#fff}@media (min-width:992px){.menu_right_like[_ngcontent-%COMP%]   .pip[_ngcontent-%COMP%]{bottom:5px;left:10px}}.menu_right_like[_ngcontent-%COMP%]   .pip.pip_color_white[_ngcontent-%COMP%]{background-color:#fff;color:#9ab400}.menu_right_locale[_ngcontent-%COMP%]{position:relative;overflow:display;display:flex;justify-content:center;text-transform:uppercase}.menu_right_lang_menu[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.menu_right_lang_menu[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{color:#fff}.menu_right_lang_menu.show[_ngcontent-%COMP%]{display:block}.menu_button[_ngcontent-%COMP%]{text-transform:uppercase;background-color:#9ab400;padding:.7rem 2.6rem;max-width:151px;white-space:nowrap}@media (min-width:992px){.menu_button[_ngcontent-%COMP%]{height:47px;padding:0;width:calc(2 * ((100vw - 40px - 77px) / 12) + calc(1 * 7px));display:flex;align-items:center;justify-content:center}}@media (min-width:992px) and (min-width:992px){.menu_button[_ngcontent-%COMP%]{width:calc(calc(2 + 1) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.menu_button[_ngcontent-%COMP%]{width:calc(calc(2 + 1) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.menu_button[_ngcontent-%COMP%]{width:calc(calc(2 + 1) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.menu_button[_ngcontent-%COMP%]{width:calc(calc(55px * 2) + calc(60px * 1))}}.menu_button[_ngcontent-%COMP%]:hover, .menu_button_hover[_ngcontent-%COMP%]{color:#9ab400;background-color:#fff}.menu_open[_ngcontent-%COMP%]{position:fixed;top:0;left:100%;padding-top:90px;box-sizing:border-box;z-index:-1;width:100%;min-height:100vh;background-color:#9ab400;background-image:url(/assets/img/courbes_niveau.png),url(/assets/img/menu_frame.svg);background-position:0 0,100% 0;background-size:cover,auto;background-repeat:no-repeat;transition:left .25s ease-out}@media (min-width:992px){.menu_open[_ngcontent-%COMP%]{position:absolute;background-position:0 0,bottom 5px right 5px;left:0;min-height:0;padding-top:155px;padding-bottom:72px;transition:opacity .25s ease-in-out}}.menu_open[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#131313;text-decoration:none}.menu_open[_ngcontent-%COMP%]:-webkit-scrollbar{display:none}.menu_open.hidden[_ngcontent-%COMP%]{display:none}@media (min-width:992px){.menu_open.hidden[_ngcontent-%COMP%]{display:block;opacity:0;pointer-events:none}}.menu_open.open[_ngcontent-%COMP%]{left:0;opacity:1;pointer-events:all}.menu_open_white[_ngcontent-%COMP%], .menu_open_white[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.menu_open_content_mobile[_ngcontent-%COMP%]{max-height:calc(100vh - 90px);overflow-y:scroll;padding-bottom:2.5rem;box-sizing:border-box}.menu_open_categories[_ngcontent-%COMP%]{min-height:209px;grid-column-start:1;grid-column-end:13;display:flex;justify-content:space-between;align-items:flex-start}@media (min-width:992px){.menu_open_category[_ngcontent-%COMP%]{height:100%;width:25%}}.menu_open_category[_ngcontent-%COMP%]   .bib_title4[_ngcontent-%COMP%]{margin-bottom:2rem}.menu_open_category_name[_ngcontent-%COMP%]{margin-bottom:.9rem}.menu_open_link[_ngcontent-%COMP%]{margin-bottom:.68rem}@media (max-width:991px){.menu_open_link[_ngcontent-%COMP%]{padding-left:1.25rem;margin-bottom:.56rem}}.menu_open_infos[_ngcontent-%COMP%]{border-top:1px solid #fff;padding-top:2rem;width:calc(100% - 2.5rem);margin:2rem auto 0}@media (min-width:992px){.menu_open_infos[_ngcontent-%COMP%]{border-top:none;padding-top:0;border-left:1px solid #fff;padding-left:2rem;width:295px;margin:0}}.menu_open_today[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:700;margin-bottom:1rem}@media (min-width:992px){.menu_open_today[_ngcontent-%COMP%]{margin-bottom:2rem}}.menu_open_entry[_ngcontent-%COMP%]{margin-bottom:1rem}.menu_open_entry_header[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;padding:0 1.25rem;display:flex;justify-content:space-between;align-items:center}.menu_open_entry_header_label.greyed[_ngcontent-%COMP%]{opacity:.6}.menu_open_entry_header_arrow[_ngcontent-%COMP%]{transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg)}.menu_open_entry_wrap[_ngcontent-%COMP%]{width:100%;overflow:hidden}.menu_open_entry_content[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:0 1.25rem}.menu_open_category_cont[_ngcontent-%COMP%]{margin-top:2.5rem}.menu_open_category_cont[_ngcontent-%COMP%]:last-child{margin-bottom:2.5rem}.menu_open_langs[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;padding:0 1.25rem;margin-top:2.5rem;margin-bottom:1.25rem;display:flex;justify-content:flex-start}.menu_open_langs[_ngcontent-%COMP%]   .menu_open_lang[_ngcontent-%COMP%]{margin-right:1rem;font-weight:400!important;text-transform:uppercase}.menu_open_langs[_ngcontent-%COMP%]   .menu_open_lang.selected[_ngcontent-%COMP%]{font-weight:700!important;border-bottom:2px solid #fff}.menu_open_button[_ngcontent-%COMP%]{display:inline-block;margin-left:1.25rem}.menu_right_lang_menu_locale[_ngcontent-%COMP%]:hover{font-weight:700}.menu_right_lang_menu_locale.selected[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:700;border-bottom:2px solid #fff}"],data:{animation:[Qb]}}),t})();const OP=["bg"],SP=["wrapper"],kP=["filler"],TP=["slidecont"],EP=["slides"];function IP(t,e){if(1&t&&(Mo(0,"div",18),So(1,"div",19),Bl(2,"safe"),Oo()),2&t){const t=Bo(2);Qr(1),Co("innerHtml",Nl(2,1,t.data.titre,"html"),Ki)}}function AP(t,e){1&t&&(So(0,"div",20),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().$implicit.texte,"html"),Ki)}function zP(t,e){if(1&t&&(Mo(0,"a",21),So(1,"div",22),Bl(2,"safe"),Oo()),2&t){const t=Bo().$implicit;Co("routerLink",t.lien.url),Qr(1),Co("innerHtml",Nl(2,2,t.lien.label,"html"),Ki)}}const DP=function(t,e,n){return{vcenter:t,active:e,fixed:n}};function LP(t,e){if(1&t&&(Mo(0,"div",12,13),xo(2,IP,3,4,"div",14),Mo(3,"div",15),xo(4,AP,2,4,"div",16),xo(5,zP,3,5,"a",17),Oo(),Oo()),2&t){const t=e.$implicit,n=e.index,i=Bo();Jo("top:"+i.slideTop*i.currentSlide+"px"),ea("recit_slide ignore_p_margin "+i.scrollDirection),Co("ngClass",zl(8,DP,n>0,n==i.currentSlide,0==n&&i.scrollFixed)),Qr(2),Co("ngIf",0==n),Qr(2),Co("ngIf",t.texte),Qr(1),Co("ngIf",t.lien)}}const RP=function(t){return{active:t}};function FP(t,e){if(1&t&&So(0,"div",23),2&t){const t=e.index,n=Bo();
1Jo("background-image:"+n.getBackground(t)),Co("ngClass",Il(3,RP,t==n.currentSlide||0==t&&-1==n.currentSlide))}}const BP=function(t,e){return{first:t,last:e}};let NP=(()=>{class t{constructor(t,e,n,i){this.platformId=t,this.deviceQueryService=e,this.renderer=n,this.router=i,this.currentSlide=0,this.animating=!1,this.inRecit=!1,this.lastY=0,this.scrollDirection="down",this.scrollTS=0,this.slideTop=0}ngOnInit(){}ngOnDestroy(){}ngAfterViewInit(){}getCurrentBackground(){let t=this.currentSlide;return-1==t&&(t=0),this.deviceQueryService.isImageMobile()&&this.data.slides[t].visuel_mobile&&this.data.slides[t].visuel_mobile.url?"url("+this.data.slides[t].visuel_mobile.url+")":this.data.slides[t].visuel&&this.data.slides[t].visuel.url?"url("+this.data.slides[t].visuel.url+")":"none"}getBackground(t){let e=t;return-1==e&&(e=0),this.deviceQueryService.isImageMobile()&&this.data.slides[e].visuel_mobile&&this.data.slides[e].visuel_mobile.url?"url("+this.data.slides[e].visuel_mobile.url+")":this.data.slides[e].visuel&&this.data.slides[e].visuel.url?"url("+this.data.slides[e].visuel.url+")":"none"}navigate(t){this.router.navigateByUrl(t)}checkPosition(t){if(this.deviceQueryService.ignoreMenu=!1,this.slideTop=-window.innerHeight,0==this.bg.nativeElement.getBoundingClientRect().top)if(this.inRecit){let t=window.scrollY-window.innerHeight,e=Math.round(t/window.innerHeight);e>=this.data.slides.length&&(e=this.data.slides.length-1),e!=this.currentSlide&&(this.currentSlide=e)}else this.inRecit=!0,this.scrollTS=Date.now()}animateScroll(){let t=Date.now()-this.scrollTime;if(t>500&&(t=500),500==t)return this.slidecont.nativeElement.scrollTo({top:this.scrollDest}),this.animating=!1,void(this.scrollTS=Date.now());this.slidecont.nativeElement.scrollTo({top:this.scrollStart+t*this.scrollStep}),window.requestAnimationFrame(()=>this.animateScroll())}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(Pb),wo(za),wo(Yx))},t.\u0275cmp=Ut({type:t,selectors:[["app-recit"]],viewQuery:function(t,e){if(1&t&&(nc(OP,1),nc(SP,1),nc(kP,1),nc(TP,1),nc(EP,1)),2&t){let t;ec(t=ic())&&(e.bg=t.first),ec(t=ic())&&(e.wrapper=t.first),ec(t=ic())&&(e.filler=t.first),ec(t=ic())&&(e.slidecont=t.first),ec(t=ic())&&(e.slides=t)}},inputs:{data:"data"},decls:12,vars:8,consts:[["id","recit_wrapper",3,"ngClass"],["wrapper",""],["id","recit_slides"],["slidecont",""],[3,"class","style","ngClass",4,"ngFor","ngForOf"],["id","recit_filler"],["filler",""],[1,"recit_sticky_cont"],["id","recit_bg"],["bg",""],[1,"recit_bg_cache"],["class","recit_bg_img",3,"ngClass","style",4,"ngFor","ngForOf"],[3,"ngClass"],["slides",""],["id","recit_title_cont",4,"ngIf"],[1,"bib_grid"],["class","recit_slide_texte blur_light bib_title3",3,"innerHtml",4,"ngIf"],["class","recit_slide_button_cont",3,"routerLink",4,"ngIf"],["id","recit_title_cont"],["id","recit_title",1,"bib_title2",3,"innerHtml"],[1,"recit_slide_texte","blur_light","bib_title3",3,"innerHtml"],[1,"recit_slide_button_cont",3,"routerLink"],[1,"recit_slide_button","bib_button","cursor",3,"innerHtml"],[1,"recit_bg_img",3,"ngClass"]],template:function(t,e){1&t&&(Mo(0,"div",0,1),Mo(2,"div",2,3),xo(4,LP,6,12,"div",4),Oo(),So(5,"div",5,6),Mo(7,"div",7),Mo(8,"div",8,9),So(10,"div",10),xo(11,FP,1,5,"div",11),Oo(),Oo(),Oo()),2&t&&(Co("ngClass",Al(5,BP,0==e.currentSlide,e.currentSlide==e.data.slides.length-1)),Qr(4),Co("ngForOf",e.data.slides),Qr(1),Jo("height:calc(100vh * "+e.data.slides.length+")"),Qr(6),Co("ngForOf",e.data.slides))},directives:[Tu,Iu,zu,Jx],pipes:[Sb],styles:["#recit_wrapper[_ngcontent-%COMP%]{position:relative;width:100%;min-height:100vh}.recit_sticky_cont[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:-1}#recit_bg[_ngcontent-%COMP%]{position:sticky;top:0;height:100vh;box-shadow:0 -8px 8px #00000026}.recit_bg_cache[_ngcontent-%COMP%]{background-color:#f4f3f4}.recit_bg_cache[_ngcontent-%COMP%], .recit_bg_img[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.recit_bg_img[_ngcontent-%COMP%]{background-size:cover;background-position:50%;opacity:0;transition:opacity .25s cubic-bezier(.55,.085,.68,.53)}.recit_bg_img.active[_ngcontent-%COMP%]{opacity:1}#recit_title_cont[_ngcontent-%COMP%]{position:absolute;box-sizing:border-box;left:0;top:6.25rem;width:100%;text-align:center}#recit_title[_ngcontent-%COMP%]{color:#fff;margin:0 auto;max-width:calc(12 * ((100vw - 40px - 77px) / 12) + calc(11 * 7px))}@media (min-width:992px){#recit_title[_ngcontent-%COMP%]{max-width:calc(calc(12 + 11) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){#recit_title[_ngcontent-%COMP%]{max-width:calc(calc(12 + 11) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){#recit_title[_ngcontent-%COMP%]{max-width:calc(calc(12 + 11) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){#recit_title[_ngcontent-%COMP%]{max-width:calc(calc(55px * 12) + calc(60px * 11))}}@media (min-width:992px){#recit_title[_ngcontent-%COMP%]{max-width:calc(6 * ((100vw - 40px - 77px) / 12) + calc(7 * 7px))}}@media (min-width:992px) and (min-width:992px){#recit_title[_ngcontent-%COMP%]{max-width:calc(calc(6 + 7) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){#recit_title[_ngcontent-%COMP%]{max-width:calc(calc(6 + 7) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){#recit_title[_ngcontent-%COMP%]{max-width:calc(calc(6 + 7) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){#recit_title[_ngcontent-%COMP%]{max-width:calc(calc(55px * 6) + calc(60px * 7))}}#recit_slides[_ngcontent-%COMP%]{position:sticky;top:0;left:0;height:100vh;overflow:hidden;z-index:10}.recit_slide[_ngcontent-%COMP%]{position:relative;transition:top .25s cubic-bezier(.55,.085,.68,.53);box-sizing:border-box;width:100%;height:100vh;z-index:10;display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:3.75rem}.recit_slide.vcenter[_ngcontent-%COMP%]{justify-content:center;padding-bottom:0}.recit_slide.up[_ngcontent-%COMP%]{transition-delay:.25s}.recit_slide.fixed[_ngcontent-%COMP%]{position:fixed;top:0;left:0}.recit_slide_texte[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;padding:1.25rem;margin-bottom:60px;color:#fff}@media (min-width:992px){.recit_slide_texte[_ngcontent-%COMP%]{grid-column-start:7;grid-column-end:13;padding:3.43rem}}.recit_slide_button_cont[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}@media (min-width:992px){.recit_slide_button_cont[_ngcontent-%COMP%]{grid-column-start:7;grid-column-end:13}}.recit_slide_button[_ngcontent-%COMP%]{display:inline-block;font-weight:400!important;padding:1.06rem 1.56rem;background-color:#9ab400;color:#fff}.recit_slide_button[_ngcontent-%COMP%]:hover{background-color:#fff;color:#9ab400}"]}),t})();const UP=["menu"],HP=["headerres"],jP=["menuwrap"],VP=["recit"],$P=["rescarousel"],qP=["rescont"],GP=["carouselwrap"],ZP=["searchinput"];function WP(t,e){1&t&&So(0,"div",25)}function XP(t,e){1&t&&So(0,"div",26),2&t&&Jo("flex:0 0 "+Bo().menuHeight+"px")}function QP(t,e){1&t&&So(0,"div",25)}function KP(t,e){if(1&t&&(Mo(0,"div",39),So(1,"app-video-player",40),Oo()),2&t){const t=Bo(3);Qr(1),Co("resourceData",t.resourceData)("forceRatio",!0)}}function YP(t,e){if(1&t&&(Mo(0,"div",41),So(1,"iframe",42),Bl(2,"safe"),Mo(3,"a",43),Bl(4,"safe"),So(5,"img",44),So(6,"img",45),Oo(),Oo()),2&t){const t=Bo(3);Qr(1),Co("src",Nl(2,2,t.resourceURL,"resourceUrl"),Ji),Qr(2),Co("href",Nl(4,5,t.resourceURL,"url"),Yi)}}function JP(t,e){1&t&&(So(0,"img",42),Bl(1,"safe")),2&t&&Co("src",Nl(1,1,Bo(4).resourceData.preview_url,"resourceUrl"),Yi)}function tM(t,e){1&t&&So(0,"img",50)}function eM(t,e){if(1&t&&(Mo(0,"div",46),Mo(1,"a",47),Bl(2,"safe"),xo(3,JP,2,4,"img",48),xo(4,tM,1,0,"img",49),Oo(),Oo()),2&t){const t=Bo(3);Qr(1),Co("href",Nl(2,3,t.resourceURL,"url"),Yi),Qr(2),Co("ngIf",t.menuHeight>0&&""!=t.resourceData.preview_url),Qr(1),Co("ngIf",t.menuHeight>0&&""==t.resourceData.preview_url)}}function nM(t,e){if(1&t){const t=Io();Mo(0,"app-carousel",54,55),Lo("fullscreen",function(){return Ae(t),Bo(4).doFS()}),Oo()}if(2&t){const t=Bo(4);Co("fs",t.isFS())("centered",!0)("data",t.resourceCarouselData)("res",!0)("cssClass","_resource")("maxHeight",t.headerHeight)}}const iM=function(t){return{fs:t}};function rM(t,e){if(1&t&&(Mo(0,"div",51,52),xo(2,nM,2,6,"app-carousel",53),Oo()),2&t){const t=Bo(3);Co("ngClass",Il(2,iM,t.isFS())),Qr(2),Co("ngIf",t.headerHeight>0||t.isFS()||t.deviceQueryService.isMobile())}}function sM(t,e){if(1&t&&(Mo(0,"div",58),So(1,"iframe",42),Bl(2,"safe"),Oo()),2&t){const t=Bo(4);Qr(1),Co("src",Nl(2,1,t.resourceURL,"resourceUrl"),Ji)}}function oM(t,e){1&t&&(So(0,"img",64),Bl(1,"safe")),2&t&&Co("src",Nl(1,1,Bo(5).resourceData.preview_url,"resourceUrl"),Yi)}function aM(t,e){1&t&&So(0,"img",65)}const lM=function(t){return{image:t}};function cM(t,e){if(1&t&&(Mo(0,"div",59),Mo(1,"div",60),xo(2,oM,2,4,"img",61),xo(3,aM,1,0,"img",62),So(4,"app-audio-player",63),Oo(),Oo()),2&t){const t=Bo(4);Qr(1),Co("ngClass",Il(4,lM,""!=t.resourceData.preview_url)),Qr(1),Co("ngIf",""!=t.resourceData.preview_url),Qr(1),Co("ngIf",""==t.resourceData.preview_url),Qr(1),Co("data",t.resourceData)}}function uM(t,e){if(1&t&&(ko(0),xo(1,sM,3,4,"div",56),xo(2,cM,5,6,"div",57),To()),2&t){const t=Bo(3);Qr(1),Co("ngIf",1==t.resourceData.soundcloud),Qr(1),Co("ngIf",0==t.resourceData.soundcloud)}}function hM(t,e){if(1&t&&(Mo(0,"div",30,31),Mo(2,"div",32),Mo(3,"div"),ko(4,33),xo(5,KP,2,2,"div",34),xo(6,YP,7,8,"div",35),xo(7,eM,5,6,"div",36),xo(8,rM,3,4,"div",37),xo(9,uM,3,2,"ng-container",38),To(),Oo(),Oo(),Oo()),2&t){const t=Bo(2);Jo(t.deviceQueryService.isMobile()?"":"height:calc(100vh - 140px - "+t.menuHeight+"px)"),Qr(3),ea("header_res_ingrid header_res_"+t.type),Qr(1),Co("ngSwitch",t.type),Qr(1),Co("ngSwitchCase","video"),Qr(1),Co("ngSwitchCase","html"),Qr(1),Co("ngSwitchCase","pdf"),Qr(1),Co("ngSwitchCase","image"),Qr(1),Co("ngSwitchCase","audio")}}const dM=function(t){return{"background-image":t}};function pM(t,e){if(1&t&&(Mo(0,"div",27,28),xo(2,QP,1,0,"div",2),xo(3,hM,10,10,"div",29),Oo()),2&t){const t=Bo();
1Co("ngStyle",Il(3,dM,t.getBackgroundImage(2))),Qr(2),Co("ngIf","res"!=t.titleClass),Qr(1),Co("ngIf",t.resourceData)}}function mM(t,e){if(1&t){const t=Io();Mo(0,"div",76),da(1," \u2190 "),Mo(2,"a",77),Lo("click",function(){return Ae(t),Bo(2).backClicked()}),Oo(),Oo()}if(2&t){const t=Bo(2);Qr(2),Co("innerHtml",t.backData.label,Ki)}}const gM=function(t){return{dossier:t}};function fM(t,e){if(1&t&&(So(0,"div",78),Bl(1,"safe")),2&t){const t=Bo(2);Co("ngClass",Il(5,gM,t.type==t.texts["dossier th\xe9matique"]))("innerHtml",Nl(1,2,t.type,"html"),Ki)}}function _M(t,e){if(1&t&&(Mo(0,"div",79),So(1,"img",42),So(2,"div",80),Bl(3,"safe"),Oo()),2&t){const t=Bo(2);Qr(1),Co("src","/assets/img/res_"+t.type+".svg",Yi),Qr(1),Co("innerHtml",Nl(3,2,t.typeTxt,"html"),Ki)}}function vM(t,e){if(1&t&&(Mo(0,"div",81),So(1,"img",42),So(2,"div",82),Oo()),2&t){const t=Bo(2);Qr(1),Co("src","/assets/img/nb_res.svg",Yi),Qr(1),Co("innerHtml",t.nbRes+" "+t.texts.ressources,Ki)}}function yM(t,e){1&t&&(So(0,"div",83),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(2).chapo,"html"),Ki)}function xM(t,e){if(1&t){const t=Io();Mo(0,"div",91),Lo("click",function(){return Ae(t),Bo(3).clearSearch()}),Oo()}}function bM(t,e){if(1&t){const t=Io();Mo(0,"div",94),Lo("click",function(){Ae(t);const n=e.$implicit;return Bo(4).fillAutocomplete(n.titre)}),Mo(1,"div",95),Lo("click",function(){Ae(t);const n=e.$implicit;return Bo(4).fillAutocomplete(n.titre)}),Mo(2,"span",96),Lo("click",function(){Ae(t);const n=e.$implicit;return Bo(4).fillAutocomplete(n.titre)}),Bl(3,"safe"),Oo(),Oo(),Mo(4,"div",97),Lo("click",function(){Ae(t);const n=e.$implicit;return Bo(4).fillAutocomplete(n.titre)}),da(5),Oo(),Oo()}if(2&t){const t=e.$implicit;Qr(2),Co("innerHtml",Nl(3,2,t.titre_html,"html"),Ki),Qr(3),pa(t.type)}}function wM(t,e){if(1&t&&(Mo(0,"div",92),xo(1,bM,6,5,"div",93),Oo()),2&t){const t=Bo(3);Qr(1),Co("ngForOf",t.currentAutocomplete)}}function CM(t,e){if(1&t){const t=Io();Mo(0,"div",84),Mo(1,"div",85),Mo(2,"input",86,87),Lo("input",function(e){return Ae(t),Bo(2).doAutoComplete(e)})("focus",function(){return Ae(t),Bo(2).searchFocused=!0})("blur",function(){return Ae(t),Bo(2).blurSearch()})("keyup.enter",function(){return Ae(t),Bo(2).doSearch()}),Oo(),Mo(4,"img",88),Lo("click",function(){return Ae(t),Bo(2).doSearch()}),Oo(),xo(5,xM,1,0,"div",89),xo(6,wM,2,1,"div",90),Oo(),Oo()}if(2&t){const t=Bo(2);Qr(2),Co("value",t.currentSearch),Qr(3),Co("ngIf",""!=t.currentSearch),Qr(1),Co("ngIf",t.searchFocused&&t.currentAutocomplete.length>0)}}function PM(t,e){if(1&t&&(Mo(0,"div",98),Mo(1,"a",99),So(2,"div",100),Oo(),Oo()),2&t){const t=Bo(2);Qr(1),Co("routerLink",t.lien_url),Qr(1),Co("innerHtml",t.lien_label,Ki)}}function MM(t,e){if(1&t){const t=Io();Mo(0,"div",101),Lo("click",function(){return Ae(t),Bo(2).doShowSelection()}),So(1,"img",102),Oo()}}const OM=function(t,e){return{bib_title1:t,bib_event_title:e}},SM=function(t,e,n){return{titre_long:t,title_green:e,draft:n}};function kM(t,e){if(1&t&&(Mo(0,"div",66),Mo(1,"div",14),xo(2,mM,3,1,"div",67),xo(3,fM,2,7,"div",68),So(4,"div",69),Bl(5,"safe"),xo(6,_M,4,5,"div",70),xo(7,vM,3,2,"div",71),xo(8,yM,2,4,"div",72),xo(9,CM,7,3,"div",73),xo(10,PM,3,2,"div",74),xo(11,MM,2,0,"div",75),Oo(),Oo()),2&t){const t=Bo();ea(t.titleClass),Co("ngClass",Al(16,OM,"header_gabarit_niv1"==t.header_type,"header_gabarit_niv2"==t.header_type)),Qr(2),Co("ngIf","header_gabarit_niv2"==t.header_type&&t.backData),Qr(1),Co("ngIf","header_gabarit_niv2"==t.header_type&&"res"!=t.titleClass),Qr(1),Co("innerHtml",Nl(5,13,t.title,"html"),Ki)("ngClass",zl(19,SM,"1"==t.titre_long,"404"==t.gabarit,"0"==t.status)),Qr(2),Co("ngIf","header_gabarit_niv2"==t.header_type&&"res"==t.titleClass),Qr(1),Co("ngIf","header_gabarit_niv2"==t.header_type&&"dossier"==t.titleClass),Qr(1),Co("ngIf",t.chapo),Qr(1),Co("ngIf",t._searchData),Qr(1),Co("ngIf",t.lien_url),Qr(1),Co("ngIf",t.showSelection)}}function TM(t,e){if(1&t){const t=Io();Mo(0,"app-menu",108,109),Lo("menuOpen",function(e){return Ae(t),Bo(3).doMenuOpen(e)}),Oo()}if(2&t){const t=Bo(3);Co("data",t.data)("texts",t.texts)("forcedColor",t.forcedColor)("currentLanguage",t.currentLanguage)}}const EM=function(t){return{hidden:t}};function IM(t,e){if(1&t&&(Mo(0,"div",106),xo(1,TM,2,4,"app-menu",107),Oo()),2&t){const t=Bo(2);Co("ngClass",Il(2,EM,t.fixedMenu)),Qr(1),Co("ngIf",t.data)}}function AM(t,e){if(1&t){const t=Io();Mo(0,"div",103),xo(1,IM,2,4,"div",104),Mo(2,"app-carousel",105),Lo("menuColor",function(e){return Ae(t),Bo().setMenuColor(e)}),Oo(),Oo()}if(2&t){const t=Bo();Qr(1),Co("ngIf",t.recitData),Qr(1),Co("hideFS",!0)("data",t.carouselData)("horairesData",t.horairesData)("doFade",!0)("slidesPerView",1)("noSpace",!0)("cssClass","_homepage")}}function zM(t,e){1&t&&(Mo(0,"div",110),So(1,"img",111),Oo())}function DM(t,e){1&t&&So(0,"app-recit",114,115),2&t&&Co("data",Bo(2).recitData)}function LM(t,e){if(1&t&&(Mo(0,"div",112),xo(1,DM,2,1,"app-recit",113),Oo()),2&t){const t=Bo();Qr(1),Co("ngIf",t.recitData)}}function RM(t,e){if(1&t){const t=Io();Mo(0,"app-menu",116),Lo("menuOpen",function(e){return Ae(t),Bo().doMenuOpen(e)})("scrolled",function(e){return Ae(t),Bo().menuScrolled=e})("offScreenMenu",function(e){return Ae(t),Bo().doOffscreenMenu(e)})("fixedPosition",function(e){return Ae(t),Bo().doFixedMenu(e)})("horairesData",function(e){return Ae(t),Bo().gotHoraires(e)}),Oo()}if(2&t){const t=Bo();Co("forcedColor",t.forcedColor)("data",t.data)("texts",t.texts)("currentLanguage",t.currentLanguage)}}const FM=function(t){return{fade:t}};function BM(t,e){if(1&t&&(Mo(0,"div",117),da(1),Oo()),2&t){const t=Bo();Co("ngClass",Il(2,FM,t.fadeOverlaySuccess)),Qr(1),pa(t.texts.ma_selection_confirmation)}}const NM=function(t,e,n,i){return{sticky:t,search:e,res:n,fixedH:i}},UM=function(t){return{show:t}},HM=function(t,e,n){return{fixed:t,offscreen:e,hidden:n}};let jM=(()=>{class t{constructor(t,e,n,i,r,s,o,a,l){this.platformId=t,this.deviceQueryService=e,this.persistantDataService=n,this.cd=i,this.renderer=r,this.api=s,this.search=o,this.router=a,this.route=l,this.title="",this.type="",this.typeTxt="",this.showArrow=!1,this.showSelection=!1,this.titre_long="0",this.backEvent=new Vl,this.fixedPosition=new Vl,this.menuOpen=new Vl,this.showOverlay=!1,this.showOverlaySuccess=!1,this.fadeOverlaySuccess=!1,this.menuScrolled=!1,this.shareUrl="",this.fullscreen=!1,this.fixedMenu=!1,this.offScreenMenu=!1,this.menuHeight=0,this.headerHeight=0,this.headerPadding=0,this.carouselHeight=0,this.currentSearch="",this.currentAutocomplete=[],this.searchFocused=!1,this.unlisten=r.listen("window","resize",t=>{this.computeHeights()}),this.searchObserve=o.searchObservable().subscribe(t=>{this.currentSearch=t})}
1set searchData(t){this._searchData=t,t&&t.search&&this.route.snapshot.queryParams.search&&this.search.setSearchText(this.route.snapshot.queryParams.search)}set resData(t){if(!t)return;this.resourceData=t,this.resourceCarouselData=[];let e="",n=Object.keys(t.authors);for(let r=0;r<n.length;r++)e+=0==r?" \xa9 "+t.authors[n[r]]:", "+t.authors[n[r]];let i=Object.keys(t);if(i.length>0){this.resourceURL=t[i[0]]["data-url"];for(let e of i){if("soundcloud"==e||"preview_url"==e||"authors"==e||"download_image"==e)continue;let n=t[e].legend;""!=n&&(n+=" - "),n+="ID "+t[e].filename,this.resourceCarouselData.push({titre:"",legende:n,couleur_texte:"white",url:t[e].url_player_fullscreen,url_fs:t[e].url_player_fullscreen,visuel:{url:t[e].url_player_fullscreen},visuel_mobile:{url:t[e].url_player_fullscreen},download:{name:this.title+"-"+t[e].filename+".jpg",url:t[e].url_player,disabled:t.download_image}})}}else this.resourceURL=""}ngOnInit(){switch(this.gabarit){case"homepage":this.header_type="header_homepage";break;case"standard_2":this.header_type="header_gabarit_niv2";break;default:this.header_type="header_gabarit_niv1"}}ngAfterViewInit(){this.computeHeights(),setTimeout(()=>{this.computeHeights()},100),setTimeout(()=>{this.computeHeights()},200)}ngOnDestroy(){this.unlisten(),this.searchObserve.unsubscribe()}computeHeights(){if(this.menuWrap&&this.headerRes){if(0==this.menuHeight)this.menuHeight=this.menuWrap.nativeElement.offsetHeight;else{let t=0;this.resCarousel&&(t=this.resCarousel.getLegendHeight()),t<70&&(t=70),this.menuHeight=this.menuWrap.nativeElement.offsetHeight,this.headerHeight=this.headerRes.nativeElement.offsetHeight-27-t,this.deviceQueryService.isMobile()&&(this.headerHeight=window.innerHeight-157-t)}this.cd.detectChanges()}}backClicked(){this.backEvent.emit(null)}getBackgroundImage(t){return this.header_type!="header_gabarit_niv"+t?"none":this.deviceQueryService.isImageMobile()&&this.img_mobile?"url('"+this.img_mobile+"')":this.img?"url('"+this.img+"')":"none"}doShowSelection(){let t=this.persistantDataService.getLikedAct();this.shareUrl=window.location.origin+"/ma-selection",t.length>0&&(this.shareUrl+="/"+t.join("-")),this.showOverlay=!0}selectShareUrl(){let t=document.createElement("input");document.body.appendChild(t),t.setAttribute("id","dummy_id"),document.getElementById("dummy_id").value=this.shareUrl,t.select(),document.execCommand("copy"),document.body.removeChild(t),this.showOverlaySuccess=!0,this.fadeOverlaySuccess=!1,clearTimeout(this.fadeOverlaySuccessTo),clearTimeout(this.showOverlaySuccesTo),this.fadeOverlaySuccessTo=setTimeout(()=>{this.fadeOverlaySuccess=!0},250),this.showOverlaySuccesTo=setTimeout(()=>{this.showOverlaySuccess=!1},750)}clickOverlay(t){t.preventDefault(),t.stopImmediatePropagation()}gotHoraires(t){this.horairesData=t,this.cd.detectChanges()}doOffscreenMenu(t){this.offScreenMenu=t,this.fixedPosition.emit(this.fixedMenu&&!this.offScreenMenu)}doFixedMenu(t){this.fixedMenu=t,this.fixedPosition.emit(this.fixedMenu&&!this.offScreenMenu)}doMenuOpen(t){this.menuOpen.emit(t)}setMenuColor(t){setTimeout(()=>{this.forcedColor="white"==t?"_white":t?"":null},100)}scrollEvent(t){this.recit&&this.recit.checkPosition(t)}isFS(){return this.fullscreen}doFS(){this.fullscreen=!this.fullscreen}doAutoComplete(t){this.currentSearch=t.target.value,""!=t.target.value?this.api.callAction(this._searchData.autocomplete+"?search="+t.target.value,!0).subscribe(t=>{if(this.currentAutocomplete=[],""!=this.currentSearch)for(let e of t)e.titre_html=e.titre.replace(this.currentSearch,"<span class='current'>"+this.currentSearch+"</span>"),this.currentAutocomplete.push(e)}):this.currentAutocomplete=[]}clearSearch(t){this.currentSearch="",this._searchData.searchRedirect?this.currentAutocomplete=[]:this.doSearch()}doSearch(){this.currentAutocomplete=[],this._searchData.searchRedirect?this.router.navigateByUrl(this._searchData.searchRedirect+"?search="+this.currentSearch):(this.search.setSearchText(this.currentSearch),this.searchInput.nativeElement.blur())}blurSearch(){setTimeout(()=>{this.searchFocused=!1},100)}fillAutocomplete(t){this.currentSearch=t,this.currentAutocomplete=[],this.doSearch()}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(Pb),wo(Mb),wo(nl),wo(za),wo(bb),wo(Ob),wo(Yx),wo(Ay))},t.\u0275cmp=Ut({type:t,selectors:[["app-header"]],viewQuery:function(t,e){if(1&t&&(nc(UP,1),nc(HP,1),nc(jP,1),nc(VP,1),nc($P,1),nc(qP,1),nc(GP,1),nc(ZP,1)),2&t){let t;ec(t=ic())&&(e.menu=t.first),ec(t=ic())&&(e.headerRes=t.first),ec(t=ic())&&(e.menuWrap=t.first),ec(t=ic())&&(e.recit=t.first),ec(t=ic())&&(e.resCarousel=t.first),ec(t=ic())&&(e.resCont=t.first),ec(t=ic())&&(e.carouselWrap=t.first),ec(t=ic())&&(e.searchInput=t.first)}},inputs:{img:"img",img_mobile:"img_mobile",title:"title",type:"type",typeTxt:"typeTxt",data:"data",texts:"texts",chapo:"chapo",lien_url:"lien_url",lien_label:"lien_label",gabarit:"gabarit",titleClass:"titleClass",showArrow:"showArrow",showSelection:"showSelection",titre_long:"titre_long",currentLanguage:"currentLanguage",recitData:"recitData",backData:"backData",nbRes:"nbRes",searchData:"searchData",resData:"resData",carouselData:"carouselData",status:"status"},outputs:{backEvent:"backEvent",fixedPosition:"fixedPosition",menuOpen:"menuOpen"},decls:27,vars:34,consts:[["id","bib_header_cont"],["id","bib_header",3,"ngStyle","ngClass"],["
1id","bib_header_cache",4,"ngIf"],["id","bib_menu_filler",3,"style",4,"ngIf"],["id","bib_header_niv2",3,"ngStyle",4,"ngIf"],["id","bib_header_title",3,"class","ngClass",4,"ngIf"],["id","bib_header_carousel_cont",4,"ngIf"],["id","bib_header_arrow",4,"ngIf"],["id","header_sticky_cache",3,"ngClass"],["id","header_recit",4,"ngIf"],["id","bib_header_menu",3,"ngClass"],["menuwrap",""],[3,"forcedColor","data","texts","currentLanguage","menuOpen","scrolled","offScreenMenu","fixedPosition","horairesData",4,"ngIf"],["id","header_overlay_selection",3,"ngClass","click"],[1,"bib_grid"],["id","header_overlay_cont",3,"click"],["id","header_overlay_close",1,"cursor",3,"click"],["src","assets/img/close.svg"],[1,"bib_title3"],["id","header_overlay_subtitle"],["id","header_overlay_link",3,"innerHtml"],["id","header_overlay_select",1,"cursor",3,"click"],["src","assets/img/select.svg"],["id","header_overlay_success_cont"],["id","header_overlay_success",3,"ngClass",4,"ngIf"],["id","bib_header_cache"],["id","bib_menu_filler"],["id","bib_header_niv2",3,"ngStyle"],["headerres",""],["id","bib_header_res",3,"style",4,"ngIf"],["id","bib_header_res"],["rescont",""],[1,"header_res_grid","bib_grid_desktop_only"],[3,"ngSwitch"],["class","bib_header_res_video_wrap",4,"ngSwitchCase"],["class","bib_header_res_iframe_wrap",4,"ngSwitchCase"],["class","bib_header_res_pdf_wrap",4,"ngSwitchCase"],["class","bib_header_res_image_wrap",3,"ngClass",4,"ngSwitchCase"],[4,"ngSwitchCase"],[1,"bib_header_res_video_wrap"],[1,"res_video_player",3,"resourceData","forceRatio"],[1,"bib_header_res_iframe_wrap"],[3,"src"],["target","_blank",1,"res_bt",3,"href"],["src","/assets/img/bt_eye.svg"],["src","/assets/img/bt_eye_hover.svg",1,"hover"],[1,"bib_header_res_pdf_wrap"],["target","_blank",3,"href"],[3,"src",4,"ngIf"],["src","/assets/img/pdf_placeholder.svg",4,"ngIf"],["src","/assets/img/pdf_placeholder.svg"],[1,"bib_header_res_image_wrap",3,"ngClass"],["carouselwrap",""],[3,"fs","centered","data","res","cssClass","maxHeight","fullscreen",4,"ngIf"],[3,"fs","centered","data","res","cssClass","maxHeight","fullscreen"],["rescarousel",""],["class","bib_header_res_iframe_wrap audio",4,"ngIf"],["class","bib_header_res_audio_wrap",4,"ngIf"],[1,"bib_header_res_iframe_wrap","audio"],[1,"bib_header_res_audio_wrap"],[1,"bib_header_res_audio_cont",3,"ngClass"],["class","res_audio_img",3,"src",4,"ngIf"],["class","res_audio_img ph","src","/assets/img/courbes_niveau_audio_mobile.png",4,"ngIf"],[1,"res_audio_player",3,"data"],[1,"res_audio_img",3,"src"],["src","/assets/img/courbes_niveau_audio_mobile.png",1,"res_audio_img","ph"],["id","bib_header_title",3,"ngClass"],["id","bib_header_back",4,"ngIf"],["id","bib_header_type","class","bib_type_big",3,"ngClass","innerHtml",4,"ngIf"],["id","bib_title",3,"innerHtml","ngClass"],["id","bib_header_type","class","bib_header_res_type",4,"ngIf"],["id","bib_header_type","class","bib_header_res_type bib_header_nb_res",4,"ngIf"],["id","header_chapo","class","bib_title3 ignore_p_margin",3,"innerHtml",4,"ngIf"],["id","bib_header_search",4,"ngIf"],["id","header_link",4,"ngIf"],["id","header_maselection",3,"click",4,"ngIf"],["id","bib_header_back"],[3,"innerHtml","click"],["id","bib_header_type",1,"bib_type_big",3,"ngClass","innerHtml"],["id","bib_header_type",1,"bib_header_res_type"],[1,"bib_type_big",2,"font-weight","400",3,"innerHtml"],["id","bib_header_type",1,"bib_header_res_type","bib_header_nb_res"],[1,"bib_mentions",3,"innerHtml"],["id","header_chapo",1,"bib_title3","ignore_p_margin",3,"innerHtml"],["id","bib_header_search"],[1,"bib_header_search_cont"],["type","text","placeholder","Rechercher...",3,"value","input","focus","blur","keyup.enter"],["searchinput",""],["src","/assets/img/search.svg",1,"search",3,"click"],["class","component_cross cursor",3,"click",4,"ngIf"],["class","bib_header_search_autocomplete",4,"ngIf"],[1,"component_cross","cursor",3,"click"],[1,"bib_header_search_autocomplete"],["class","bib_header_autocomplete_cont",3,"click",4,"ngFor","ngForOf"],[1,"bib_header_autocomplete_cont",3,"click"],[1,"autocomplete_titre",3,"click"],[1,"autocomplete_complete","bib_mentions",3,"innerHtml","click"],[1,"autocomplete_type","bib_type",3,"click"],["id","header_link"],[3,"routerLink"],[1,"button","bib_button",3,"innerHtml"],["id","header_maselection",3,"click"],["src","assets/img/ma_selection.svg",1,"curs
1or"],["id","bib_header_carousel_cont"],["id","bib_header_menu","class","homepage",3,"ngClass",4,"ngIf"],[3,"hideFS","data","horairesData","doFade","slidesPerView","noSpace","cssClass","menuColor"],["id","bib_header_menu",1,"homepage",3,"ngClass"],[3,"data","texts","forcedColor","currentLanguage","menuOpen",4,"ngIf"],[3,"data","texts","forcedColor","currentLanguage","menuOpen"],["menu",""],["id","bib_header_arrow"],["src","/assets/img/arrow_header.svg"],["id","header_recit"],[3,"data",4,"ngIf"],[3,"data"],["recit",""],[3,"forcedColor","data","texts","currentLanguage","menuOpen","scrolled","offScreenMenu","fixedPosition","horairesData"],["id","header_overlay_success",3,"ngClass"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),xo(2,WP,1,0,"div",2),xo(3,XP,1,2,"div",3),xo(4,pM,4,5,"div",4),xo(5,kM,12,23,"div",5),xo(6,AM,3,8,"div",6),xo(7,zM,2,0,"div",7),So(8,"div",8),Oo(),xo(9,LM,2,1,"div",9),Oo(),Mo(10,"div",10,11),xo(12,RM,1,4,"app-menu",12),Oo(),Mo(13,"div",13),Lo("click",function(){return e.showOverlay=!1}
1),Mo(14,"div",14),Mo(15,"div",15),Lo("click",function(t){return e.clickOverlay(t)}),Mo(16,"div",16),Lo("click",function(){return e.showOverlay=!1}),So(17,"img",17),Oo(),Mo(18,"div",18),da(19),Oo(),Mo(20,"div",19),da(21),Oo(),So(22,"div",20),Mo(23,"div",21),Lo("click",function(){return e.selectShareUrl()}),So(24,"img",22),Oo(),Mo(25,"div",23),xo(26,BM,2,4,"div",24),Oo(),Oo(),Oo(),Oo()),2&t&&(Qr(1),ea(e.header_type+" ignore_p_margin"),Co("ngStyle",Il(19,dM,e.getBackgroundImage(1)))("ngClass",Dl(21,NM,e.recitData,e._searchData,e.resourceData,"audio"==e.type&&0==e.resourceData.soundcloud||"pdf"==e.type)),Qr(1),Co("ngIf","header_gabarit_niv1"==e.header_type),Qr(1),Co("ngIf",e.resourceData),Qr(1),Co("ngIf","header_gabarit_niv2"==e.header_type),Qr(1),Co("ngIf","header_homepage"!=e.header_type),Qr(1),Co("ngIf",e.carouselData),Qr(1),Co("ngIf",e.showArrow&&"header_gabarit_niv1"==e.header_type),Qr(1),Co("ngClass",Il(26,UM,e.recitData&&e.menuScrolled)),Qr(1),Co("ngIf",e.recitData),Qr(1),Co("ngClass",zl(28,HM,e.fixedMenu,e.offScreenMenu,e.recitData&&!e.fixedMenu&&!e.offScreenMenu)),Qr(2),Co("ngIf",e.data),Qr(1),Co("ngClass",Il(32,UM,e.showOverlay)),Qr(6),pa(e.texts.ma_selection_popup_titre),Qr(2),pa(e.texts.ma_selection_popup_texte),Qr(1),Co("innerHtml",e.shareUrl,Ki),Qr(4),Co("ngIf",e.showOverlaySuccess))},directives:[Uu,Tu,zu,Fu,Bu,Eb,jC,qC,Iu,Jx,MP,NP],pipes:[Sb],styles:['@charset "UTF-8";body[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:400;font-size:1.031rem;line-height:148%}@media (min-width:992px){body[_ngcontent-%COMP%]{font-size:calc(.8 * 1.125rem)}}@media (min-width:1024px){body[_ngcontent-%COMP%]{font-size:calc(.9 * 1.125rem)}}@media (min-width:1280px){body[_ngcontent-%COMP%]{font-size:1.125rem}}.bib_semibold[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:600;font-size:1.031rem;line-height:148%}@media (min-width:992px){.bib_semibold[_ngcontent-%COMP%]{font-size:calc(.8 * 1.125rem)}}@media (min-width:1024px){.bib_semibold[_ngcontent-%COMP%]{font-size:calc(.9 * 1.125rem)}}@media (min-width:1280px){.bib_semibold[_ngcontent-%COMP%]{font-size:1.125rem}}.bib_bold[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:700;font-size:1.031rem;line-height:148%}@media (min-width:992px){.bib_bold[_ngcontent-%COMP%]{font-size:calc(.8 * 1.125rem)}}@media (min-width:1024px){.bib_bold[_ngcontent-%COMP%]{font-size:calc(.9 * 1.125rem)}}@media (min-width:1280px){.bib_bold[_ngcontent-%COMP%]{font-size:1.125rem}}.bib_title1[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-weight:800;font-size:2.81rem;line-height:104%;text-transform:uppercase}@media (min-width:992px){.bib_title1[_ngcontent-%COMP%]{font-size:calc(.8 * 4.75rem)}}@media (min-width:1024px){.bib_title1[_ngcontent-%COMP%]{font-size:calc(.9 * 4.75rem)}}@media (min-width:1280px){.bib_title1[_ngcontent-%COMP%]{font-size:4.75rem}}.bib_title2[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-weight:800;font-size:1.93rem;line-height:104%;text-transform:uppercase}@media (min-width:992px){.bib_title2[_ngcontent-%COMP%]{font-size:calc(.8 * 2.93rem)}}@media (min-width:1024px){.bib_title2[_ngcontent-%COMP%]{font-size:calc(.9 * 2.93rem)}}@media (min-width:1280px){.bib_title2[_ngcontent-%COMP%]{font-size:2.93rem}}.bib_title3[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-weight:700;font-size:1.5rem;line-height:121%}@media (min-width:992px){.bib_title3[_ngcontent-%COMP%]{font-size:calc(.8 * 1.81rem)}}@media (min-width:1024px){.bib_title3[_ngcontent-%COMP%]{font-size:calc(.9 * 1.81rem)}}@media (min-width:1280px){.bib_title3[_ngcontent-%COMP%]{font-size:1.81rem}}.bib_title4[_ngcontent-%COMP%], .editor_h4[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-weight:700;font-size:1.09rem;line-height:127%}@media (min-width:992px){.bib_title4[_ngcontent-%COMP%], .editor_h4[_ngcontent-%COMP%]{font-size:calc(.8 * 1.18rem)}}@media (min-width:1024px){.bib_title4[_ngcontent-%COMP%], .editor_h4[_ngcontent-%COMP%]{font-size:calc(.9 * 1.18rem)}}@media (min-width:1280px){.bib_title4[_ngcontent-%COMP%], .editor_h4[_ngcontent-%COMP%]{font-size:1.18rem}}@media (min-width:992px){.bib_title4_desktop_only[_ngcontent-%COMP%]{font-size:calc(.8 * 1.18rem)}}@media (min-width:1024px){.bib_title4_desktop_only[_ngcontent-%COMP%]{font-size:calc(.9 * 1.18rem)}}@media (min-width:1280px){.bib_title4_desktop_only[_ngcontent-%COMP%]{font-size:1.18rem}}@media (min-width:992px){.bib_title4_desktop_only[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-weight:700;line-height:127%}}.bib_type[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:400;font-size:1rem;line-height:109.5%;letter-spacing:.075em;text-transform:uppercase}@media (min-width:992px){.bib_type[_ngcontent-%COMP%]{font-size:calc(.8 * 1.06rem)}}@media (min-width:1024px){.bib_type[_ngcontent-%COMP%]{font-size:calc(.9 * 1.06rem)}}@media (min-width:1280px){.bib_type[_ngcontent-%COMP%]{font-size:1.06rem}}.bib_type_bold[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:700;font-size:1rem;line-height:170%;letter-spacing:.075em;text-transform:uppercase}@media (min-width:992px){.bib_type_bold[_ngcontent-%COMP%]{font-size:calc(.8 * 1.06rem)}}@media (min-width:1024px){.bib_type_bold[_ngcontent-%COMP%]{font-size:calc(.9 * 1.06rem)}}@media (min-width:1280px){.bib_type_bold[_ngcontent-%COMP%]{font-size:1.06rem}}.bib_type_big[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:600;font-size:1.5rem;line-height:170%;letter-spacing:.075em;text-transform:uppercase}@media (min-width:992px){.bib_type_big[_ngcontent-%COMP%]{font-size:calc(.8 * 1.81rem)}}@media (min-width:1024px){.bib_type_big[_ngcontent-%COMP%]{font-size:calc(.9 * 1.81rem)}}@media (min-width:1280px){.bib_type_big[_ngcontent-%COMP%]{font-size:1.81rem}}.bib_tags[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:600;font-size:1.06rem;line-height:110%}@media (min-width:992px){.bib_tags[_ngcontent-%COMP%]{font-size:calc(.8 * 1.125rem)}}@media (min-width:1024px){.bib_tags[_ngcontent-%COMP%]{font-size:calc(.9 * 1.125rem)}}@media (min-width:1280px){.bib_tags[_ngcontent-%COMP%]{font-size:1.125rem}}.bib_event_title[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-weight:700;font-size:1.93rem;line-height:104%}@media (min-width:992px){.bib_event_title[_ngcontent-%COMP%]{font-size:calc(.8 * 2.93rem)}}@media (min-width:1024px){.bib_event_title[_ngcontent-%COMP%]{font-size:calc(.9 * 2.93rem)}}@media (min-width:1280px){.bib_event_title[_ngcontent-%COMP%]{font-size:2.93rem}}.bib_mentions[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:400;font-size:1rem;line-height:129.5%}@media (min-width:992px){.bib_mentions[_ngcontent-%COMP%]{font-size:calc(.8 * 1rem)}}@media (min-width:1024px){.bib_mentions[_ngcontent-%COMP%]{font-size:calc(.9 * 1rem)}}@media (min-width:1280px){.bib_mentions[_ngcontent-%COMP%]{font-size:1rem}}.bib_date[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:300;font-size:1.18rem;line-height:170%;text-transform:uppercase}@media (min-width:992px){.bib_date[_ngcontent-%COMP%]{font-size:calc(.8 * 1.25rem)}}@media (min-width:1024px){.bib_date[_ngcontent-%COMP%]{font-size:calc(.9 * 1.25rem)}}@media (min-width:1280px){.bib_date[_ngcontent-%COMP%]{font-size:1.25rem}}.bib_button[_ngcontent-%COMP%], .editor_button[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:600;font-size:1.06rem;line-height:110%;text-transform:uppercase;display:inline-block}@media (min-width:992px){.bib_button[_ngcontent-%COMP%], .editor_button[_ngcontent-%COMP%]{font-size:calc(.8 * 1.125rem)}}@media (min-width:1024px){.bib_button[_ngcontent-%COMP%], .editor_button[_ngcontent-%COMP%]{font-size:calc(.9 * 1.125rem)}}@media (min-width:1280px){.bib_button[_ngcontent-%COMP%], .editor_button[_ngcontent-%COMP%]{font-size:1.125rem}}.bib_legende[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:400;font-size:.875rem;line-height:148%;text-transform:uppercase}@media (min-width:992px){.bib_legende[_ngcontent-%COMP%]{font-size:calc(.8 * .875rem)}}@media (min-width:1024px){.bib_legende[_ngcontent-%COMP%]{font-size:calc(.9 * .875rem)}}@media (min-width:1280px){.bib_legende[_ngcontent-%COMP%]{font-size:.875rem}}.bib_res_legende[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:400;font-size:.9375rem;line-height:125%;color:#838383}@media (min-width:992px){.bib_res_legende[_ngcontent-%COMP%]{font-size:calc(.8 * .9375rem)}}@media (min-width:1024px){.bib_res_legende[_ngcontent-%COMP%]{font-size:calc(.9 * .9375rem)}}@media (min-width:1280px){.bib_res_legende[_ngcontent-%COMP%]{font-size:.9375rem}}@media (min-width:992px){.bib_menuitem[_ngcontent-%COMP%]{font-size:calc(.8 * 1rem)}}@media (min-width:1024px){.bib_menuitem[_ngcontent-%COMP%]{font-size:calc(.9 * 1rem)}}@media (min-width:1280px){.bib_menuitem[_ngcontent-%COMP%]{font-size:1rem}}a.editor_link[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:400;-webkit-text-decoration-line:underline;text-decoration-line:underline}@media (min-width:992px){a.editor_link[_ngcontent-%COMP%]{font-size:calc(.8 * 1.125rem)}}@media (min-width:1024px){a.editor_link[_ngcontent-%COMP%]{font-size:calc(.9 * 1.125rem)}}@media (min-width:1280px){a.editor_link[_ngcontent-%COMP%]{font-size:1.125rem}}a.editor_link[_ngcontent-%COMP%]:hover{font-weight:700}a.editor_button[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:400;text-decoration:none;text-transform:uppercase;padding:1.06rem 1.56rem;margin-top:1.375rem;margin-bottom:1.375rem;text-align:center;line-height:120%;border:1px solid #131313}@media (min-width:992px){a.editor_button[_ngcontent-%COMP%]{font-size:calc(.8 * 1.125rem)}}@media (min-width:1024px){a.editor_button[_ngcontent-%COMP%]{font-size:calc(.9 * 1.125rem)}}@media (min-width:1280px){a.editor_button[_ngcontent-%COMP%]{font-size:1.125rem}}a.editor_button[_ngcontent-%COMP%]:hover{background-color:#131313;color:#fff}.colored[_ngcontent-%COMP%]   a.editor_button[_ngcontent-%COMP%]{border:1px solid #fff}.colored[_ngcontent-%COMP%]   a.editor_button[_ngcontent-%COMP%]:hover{background-color:#fff;color:#000}#bib_header[_ngcontent-%COMP%]{position:relative;width:100%;height:100vh;display:flex;justify-content:center;align-items:center;background-size:cover;background-position:50%}#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]{height:95vh;flex-direction:column;justify-content:flex-end}#bib_header.search[_ngcontent-%COMP%]{position:relative;z-index:101}#bib_header.res[_ngcontent-%COMP%]{background-color:#2e2e2e;height:auto}@media (min-width:992px){#bib_header.res.fixedH[_ngcontent-%COMP%]{height:95vh!important}}#bib_header.res.fixedH[_ngcontent-%COMP%]   #bib_header_res[_ngcontent-%COMP%]{height:100%!important}@media (min-width:992px) and (max-height:800px){#bib_header.res.fixedH[_ngcontent-%COMP%]{height:auto!important}#bib_header.res.fixedH[_ngcontent-%COMP%]   #bib_header_res[_ngcontent-%COMP%]{height:385px!important}}#bib_header.res[_ngcontent-%COMP%]   #bib_header_niv2[_ngcontent-%COMP%]{overflow:hidden}#bib_header.sticky[_ngcontent-%COMP%]{position:sticky;top:0;z-index:0}#header_recit[_ngcontent-%COMP%]{position:relative;z-index:10}#header_sticky_cache[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00000040;z-index:10;opacity:0;pointer-events:none;transition:opacity .25s ease-in-out}#header_sticky_cache.show[_ngcontent-%COMP%]{opacity:1}#bib_title[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;word-wrap:break-word}@media (min-width:992px){#bib_title[_ngcontent-%COMP%]{word-wrap:normal}}.titre_long[_ngcontent-%COMP%]{font-size:2.1rem}@media (min-width:480px){.titre_long[_ngcontent-%COMP%]{font-size:inherit}}#header_chapo[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;text-align:center;text-transform:none!important;margin-top:1.25rem}@media (min-width:992px){#header_chapo[_ngcontent-%COMP%]{grid-column-start:2;grid-column-end:12}}#header_link[_ngcontent-%COMP%], #header_maselection[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;text-align:center}#header_link[_ngcontent-%COMP%]{font-size:1rem;margin-top:2.5rem}#header_link[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{text-transform:uppercase;background-color:#9ab400;padding:.7rem 2.6rem;white-space:nowrap;font-weight:400}@media (min-width:992px){#header_link[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{padding:.9rem 1.5rem}}#header_link[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]:hover{color:#9ab400;background-color:#fff}#bib_header.header_gabarit_niv1[_ngcontent-%COMP%]   #bib_header_title[_ngcontent-%COMP%]{flex:0 1 auto;text-align:center;color:#fff;width:100%;z-index:10}@media (min-width:992px){#bib_header.header_gabarit_niv1[_ngcontent-%COMP%]   #bib_header_title[_ngcontent-%COMP%]{max-width:1323px}}#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_niv2[_ngcontent-%COMP%]{position:relative;width:100%;flex:0 1 100%;background-size:cover;background-position:50%}#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_title[_ngcontent-%COMP%]{color:#fff;width:100%;z-index:10;padding:1.68rem 0 2.125rem}@media (min-width:992px){#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_title[_ngcontent-%COMP%]{padding:1.75rem 0 5.65rem}}#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_title[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_title[_ngcontent-%COMP%]   #bib_header_type[_ngcontent-%COMP%]{margin-bottom:.625rem;line-height:120%}@media (min-width:992px){#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_title[_ngcontent-%COMP%]   #bib_header_type[_ngcontent-%COMP%]{margin-bottom:.75rem;line-height:inherit}}#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_title.activity[_ngcontent-%COMP%]{background-color:#4762b2}#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_title.activity_hl[_ngcontent-%COMP%]{background-color:#5298f9}#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_title.res[_ngcontent-%COMP%]{background-color:#8b8472}@media (max-width:991px){#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_title.res[_ngcontent-%COMP%]{padding-bottom:1.25rem!important}}#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_title.dossier[_ngcontent-%COMP%]{background-color:#a44142}@media (min-width:992px){#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_title.dossier[_ngcontent-%COMP%]{padding-bottom:4.375rem!important}}#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_title.actu[_ngcontent-%COMP%]{background-color:#fff;filter:drop-shadow(0 0 34px rgba(0,0,0,.12));padding-bottom:4.75rem}#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_title.actu[_ngcontent-%COMP%]   #bib_header_back[_ngcontent-%COMP%], #bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_title.actu[_ngcontent-%COMP%]   #bib_title[_ngcontent-%COMP%]{color:#000}#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_title.actu[_ngcontent-%COMP%]   #bib_header_type[_ngcontent-%COMP%]{color:#aaa}#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_type[_ngcontent-%COMP%]{font-weight:400}#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_type.dossier[_ngcontent-%COMP%]:before{content:"\xa0";display:inline-block;background:url(/assets/img/icon_dossier.svg);height:28px;width:28px;margin-right:10px}@media (min-width:992px){#bib_header.header_gabarit_niv2[_ngcontent-%COMP%]   #bib_header_type.dossier[_ngcontent-%COMP%]:before{position:relative;top:12px}}.bib_header_nb_res[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:0!important}@media (min-width:992px){.bib_header_nb_res[_ngcontent-%COMP%]{margin-top:25px}}#bib_header_menu[_ngcontent-%COMP%]{position:absolute;
1left:0;top:0;width:100%;z-index:102;transition:top .25s ease-in-out}#bib_header_menu.fixed[_ngcontent-%COMP%]{position:fixed;z-index:999;box-shadow:0 0 8px #00000026}#bib_header_menu.offscreen[_ngcontent-%COMP%]{top:-96px}#bib_header_menu.hidden[_ngcontent-%COMP%]{display:none}#bib_header_arrow[_ngcontent-%COMP%]{position:absolute;bottom:1.875rem;width:100%;text-align:center;height:27px;z-index:8;animation-duration:2s;animation-iteration-count:infinite;animation-name:bounce-2;animation-timing-function:ease}#bib_header_arrow[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%}@keyframes bounce-2{0%{transform:translateY(0)}50%{transform:translateY(-5px)}to{transform:translateY(0)}}#bib_header_cache[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background:#00000038;z-index:1}#bib_header_back[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-style:normal;font-weight:400;font-size:1rem;line-height:148.5%;margin-bottom:.75rem}@media (min-width:992px){#bib_header_back[_ngcontent-%COMP%]{margin-bottom:1.5rem}}#bib_header_back[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:pointer;-webkit-text-decoration-line:underline;text-decoration-line:underline;opacity:.75}#header_overlay_selection[_ngcontent-%COMP%]{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:999}#header_overlay_selection[_ngcontent-%COMP%]   .bib_grid[_ngcontent-%COMP%]{width:100%;text-align:center}#header_overlay_selection.show[_ngcontent-%COMP%]{display:flex;align-items:center}#header_overlay_cont[_ngcontent-%COMP%]{position:relative;grid-column-start:4;grid-column-end:10;padding:6.25rem 0;background-color:#fff}#header_overlay_subtitle[_ngcontent-%COMP%]{margin-bottom:1.4rem}#header_overlay_close[_ngcontent-%COMP%]{position:absolute;top:21px;right:21px}#header_overlay_link[_ngcontent-%COMP%]{max-width:80%;margin-bottom:.5rem;margin-left:auto;margin-right:auto}#header_overlay_select[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:25px}#header_overlay_success_cont[_ngcontent-%COMP%]{position:absolute;bottom:50px;width:100%;text-align:center}#header_overlay_success[_ngcontent-%COMP%]{opacity:1;transition:opacity .5s linear}#header_overlay_success.fade[_ngcontent-%COMP%]{opacity:0}#bib_header_carousel_cont[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%}.bib_header_res_type[_ngcontent-%COMP%]{display:flex;align-items:center}.bib_header_res_type[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:9px}@media (min-width:992px){.bib_header_res_type[_ngcontent-%COMP%]{margin-bottom:.125rem!important}}#bib_menu_filler[_ngcontent-%COMP%]{width:100%}#bib_header_res[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;height:100%;background-color:#2e2e2e}@media (min-width:992px){#bib_header_res[_ngcontent-%COMP%]{min-height:385px}}.header_res_grid[_ngcontent-%COMP%]{height:100%;align-items:center}.header_res_ingrid[_ngcontent-%COMP%]{box-sizing:border-box}@media (min-width:992px){.header_res_ingrid[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}.header_res_ingrid.header_res_image[_ngcontent-%COMP%]{padding-bottom:15px;height:100%}.header_res_ingrid.header_res_audio[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding-bottom:60px;height:100%}.header_res_ingrid.header_res_html[_ngcontent-%COMP%], .header_res_ingrid.header_res_pdf[_ngcontent-%COMP%], .header_res_ingrid.header_res_video[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding-bottom:60px;height:100%;overflow:hidden}}.bib_header_res_video_wrap[_ngcontent-%COMP%]{position:relative;height:100%;max-height:100%;aspect-ratio:16/9;max-width:100%;display:flex;align-items:center}.bib_header_res_video_wrap[_ngcontent-%COMP%]   .res_video_player[_ngcontent-%COMP%]{width:100%;max-height:100%}.bib_header_res_pdf_wrap[_ngcontent-%COMP%]{position:relative;text-align:center;padding-bottom:40px}@media (min-width:992px){.bib_header_res_pdf_wrap[_ngcontent-%COMP%]{height:100%;max-height:100%;padding:0}}.bib_header_res_pdf_wrap[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:260px;max-height:260px;max-width:100vw;display:block}@media (min-width:992px){.bib_header_res_pdf_wrap[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;width:auto;max-height:100%}}.bib_header_res_pdf_wrap[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{position:relative;display:inline-block;height:100%}.bib_header_res_pdf_wrap[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:after{pointer-events:none;content:"\xa0";display:block;position:absolute;top:8px;right:8px;width:50px;height:50px;background-image:url(/assets/img/bt_eye.svg);background-size:100%;background-repeat:no-repeat}@media (min-width:992px){.bib_header_res_pdf_wrap[_ngcontent-%COMP%]:hover   a[_ngcontent-%COMP%]:after{background-image:url(/assets/img/bt_eye_hover.svg)}}.bib_header_res_image_wrap[_ngcontent-%COMP%]{max-height:100%;flex-basis:100%}@media (min-width:992px){.bib_header_res_image_wrap[_ngcontent-%COMP%]{height:100%}}.bib_header_res_image_wrap[_ngcontent-%COMP%]:not(.fs){position:relative}.bib_header_res_image_wrap.fs[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;width:100%;position:fixed;left:0;top:0;z-index:1000;background-color:#2e2e2e}.bib_header_res_image_wrap.fs[_ngcontent-%COMP%]   app-carousel[_ng
1content-%COMP%]{width:100%}.bib_header_res_iframe_wrap[_ngcontent-%COMP%]{width:100vw;padding-top:56.25%;position:relative}.bib_header_res_iframe_wrap.audio[_ngcontent-%COMP%]{padding-top:100%}@media (min-width:991px){.bib_header_res_iframe_wrap.audio[_ngcontent-%COMP%]{padding-top:0}}@media (min-width:992px){.bib_header_res_iframe_wrap[_ngcontent-%COMP%]{padding-top:0;width:auto;height:100%;max-height:100%;text-align:center;aspect-ratio:16/9;max-width:100%}}.bib_header_res_iframe_wrap[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%]{position:absolute;cursor:pointer;top:0;left:0;width:100%;height:100%;border:none;max-width:100%;display:block}@media (min-width:992px){.bib_header_res_iframe_wrap[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%]{position:relative;aspect-ratio:16/9}}.bib_header_res_iframe_wrap[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px}.bib_header_res_audio_wrap[_ngcontent-%COMP%]{position:relative;height:100%;max-height:100%}@media (min-width:992px){.bib_header_res_audio_wrap[_ngcontent-%COMP%]{width:100%}}.bib_header_res_audio_cont[_ngcontent-%COMP%]{width:100%;height:100%}@media (min-width:992px){.bib_header_res_audio_cont[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:nowrap}}.bib_header_res_audio_cont[_ngcontent-%COMP%]   .res_audio_player[_ngcontent-%COMP%]{width:100%}@media (min-width:992px){.bib_header_res_audio_cont[_ngcontent-%COMP%]   .res_audio_player[_ngcontent-%COMP%]{order:1;height:100%;flex-basis:100%}}.bib_header_res_audio_cont[_ngcontent-%COMP%]   .res_audio_img[_ngcontent-%COMP%]{display:block;height:160px;margin:0 auto;width:160px;object-fit:cover}@media (min-width:992px){.bib_header_res_audio_cont[_ngcontent-%COMP%]   .res_audio_img[_ngcontent-%COMP%]{order:2;margin:0 0 0 60px;height:100%;width:auto;object-fit:unset}.bib_header_res_audio_cont[_ngcontent-%COMP%]   .res_audio_img.ph[_ngcontent-%COMP%]{display:none}}.bib_header_res_img_cont[_ngcontent-%COMP%]{grid-row-start:1;grid-row-end:2;grid-column-start:1;grid-column-end:13}@media (min-width:992px){.bib_header_res_img_cont[_ngcontent-%COMP%]{grid-column-start:10;grid-column-end:13}}.bib_header_res_img_cont.placeholder[_ngcontent-%COMP%]{background-image:url(/assets/img/courbes_niveau_audio_mobile.png);background-size:auto 100%;background-position:50%;background-repeat:no-repeat;margin-top:20px;margin-bottom:102px}@media (min-width:992px){.bib_header_res_img_cont.placeholder[_ngcontent-%COMP%]{display:none}}.res_bt[_ngcontent-%COMP%]{height:50px;width:50px;cursor:pointer;margin-right:8px}@media (min-width:992px){.res_bt[_ngcontent-%COMP%]{height:50px;width:50px}}.res_bt[_ngcontent-%COMP%]:last-child{margin-right:0}.res_bt[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%}.res_bt[_ngcontent-%COMP%]   img.hover[_ngcontent-%COMP%]{display:none}@media (min-width:992px){.res_bt[_ngcontent-%COMP%]:hover   img.hover[_ngcontent-%COMP%]{display:block}.res_bt[_ngcontent-%COMP%]:hover   img[_ngcontent-%COMP%]:not(.hover){display:none}}#bib_header_search[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;text-align:center;margin-top:40px;font-size:1rem;line-height:1rem}@media (min-width:992px){#bib_header_search[_ngcontent-%COMP%]{margin-top:85px}}#bib_header_search[_ngcontent-%COMP%]   .bib_header_search_cont[_ngcontent-%COMP%]{position:relative;width:100%;max-width:422px;margin:0 auto;height:53px}@media (min-width:992px){#bib_header_search[_ngcontent-%COMP%]   .bib_header_search_cont[_ngcontent-%COMP%]{height:57px}}#bib_header_search[_ngcontent-%COMP%]   .bib_header_search_cont[_ngcontent-%COMP%]   .component_cross[_ngcontent-%COMP%]{position:absolute;top:22px;right:60px}@media (min-width:992px){#bib_header_search[_ngcontent-%COMP%]   .bib_header_search_cont[_ngcontent-%COMP%]   .component_cross[_ngcontent-%COMP%]{top:24px}}#bib_header_search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;height:100%;padding:15px 78px 15px 20px;border:none;border-radius:0;font-size:1.125rem}@media (min-width:992px){#bib_header_search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:calc(.8 * 1.125rem)}}@media (min-width:1024px){#bib_header_search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:calc(.9 * 1.125rem)}}@media (min-width:1280px){#bib_header_search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:1.125rem}}@media (min-width:992px){#bib_header_search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:17px 78px 17px 22px}}#bib_header_search[_ngcontent-%COMP%]   img.search[_ngcontent-%COMP%]{position:absolute;top:16px;right:16px;cursor:pointer}.bib_header_search_autocomplete[_ngcontent-%COMP%]{width:100%;padding:25px 0;background:#fff;border-top:1px solid #aaa;color:#000;z-index:10}.bib_header_search_autocomplete[_ngcontent-%COMP%]   .bib_header_autocomplete_cont[_ngcontent-%COMP%]{width:100%;padding:5px 22px;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;cursor:pointer}.bib_header_search_autocomplete[_ngcontent-%COMP%]   .bib_header_autocomplete_cont[_ngcontent-%COMP%]:hover{background-color:#f4f3f4}.bib_header_search_autocomplete[_ngcontent-%COMP%]   .bib_header_autocomplete_cont[_ngcontent-%COMP%]   .autocomplete_titre[_ngcontent-%COMP%]{text-align:left}.bib_header_search_autocomplete[_ngcontent-%COMP%]   .bib_header_autocomplete_cont[_ngcontent-%COMP%]   .autocomplete_type[_ngcontent-%COMP%]{flex-shrink:0;margin-left:10px;color:#aaa}@media (min-width:992px){.bib_header_search_autocomplete[_ngcontent-%COMP%]   .bib_header_autocomplete_cont[_ngcontent-%COMP%]   .autocomplete_type[_ngcontent-%COMP%]{font-size:calc(.8 * .843rem)}}@media (min-width:1024px){.bib_header_search_autocomplete[_ngcontent-%COMP%]   .bib_header_autocomplete_cont[_ngcontent-%COMP%]   .autocomplete_type[_ngcontent-%COMP%]{font-size:calc(.9 * .843rem)}}@media (min-width:1280px){.bib_header_search_autocomplete[_ngcontent-%COMP%]   .bib_header_autocomplete_cont[_ngcontent-%COMP%]   .autocomplete_type[_ngcontent-%COMP%]{font-size:.843rem}}.bib_header_search_autocomplete[_ngcontent-%COMP%]   .bib_header_autocomplete_cont[_ngcontent-%COMP%]   .autocomplete_complete[_ngcontent-%COMP%]{font-weight:700;text-align:left;text-transform:none!important}.bib_header_search_autocomplete[_ngcontent-%COMP%]   .bib_header_autocomplete_cont[_ngcontent-%COMP%]   .autocomplete_complete.current[_ngcontent-%COMP%]{font-weight:400}']}),t})(),VM=(()=>{class t{constructor(t,e){this.router=t,this.rendererFactory=e,this.renderer=e.createRenderer(null,null)}registerStash(t,e){this.mapStash=t,this.mapContainer=e,this.router.events.subscribe(t=>{t instanceof kv&&(this.renderer.appendChild(this.mapStash.nativeElement,this.mapContainer.nativeElement),this.mapComponent.setPois([]))})}registerComponent(t){this.mapComponent=t}requestMap(t){return this.renderer.appendChild(t.nativeElement,this.mapContainer.nativeElement),setTimeout(()=>{this.mapComponent.resize()},250),this.mapComponent}}return t.\u0275fac=function(e){return new(e||t)(oi(Yx),oi(Aa))},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$M=(()=>{class t{constructor(t,e){this.el=t,this.renderer=e,this.inscrollEvent=ne
1w Vl,this.unlisten=this.renderer.listen("window","scroll",t=>{this.checkPosition(),this.inscrollEvent.emit(t)})}checkPosition(){this.elems&&0!=this.elems.length||(this.elems=[...this.el.nativeElement.querySelectorAll(".in_scrollable")]);for(let t=0;t<this.elems.length;t++){let e=this.elems[t].getBoundingClientRect();e.top<window.innerHeight-100&&e.bottom>=0&&(this.renderer.addClass(this.elems[t],"in_scroll"),this.elems.splice(t,1),t--)}}recomputeElems(){this.elems=null}ngOnDestroy(){this.unlisten()}}return t.\u0275fac=function(e){return new(e||t)(wo(Ea),wo(za))},t.\u0275dir=Gt({type:t,selectors:[["","inscroll",""]],outputs:{inscrollEvent:"inscrollEvent"}}),t})(),qM=(()=>{class t{constructor(t,e){this.el=t,this.renderer=e,this.clickOutside=new Vl,this.elem=t,setTimeout(()=>{this.unlisten=this.renderer.listen("window","click",t=>{this.elem.nativeElement.contains(t.target)||this.clickOutside.emit()})},100)}ngOnDestroy(){this.unlisten()}}return t.\u0275fac=function(e){return new(e||t)(wo(Ea),wo(za))},t.\u0275dir=Gt({type:t,selectors:[["","clickOutside",""]],outputs:{clickOutside:"clickOutside"}}),t})();const GM=["filtersElem"];function ZM(t,e){if(1&t){const t=Io();Mo(0,"div",14),So(1,"div",15),Bl(2,"safe"),Mo(3,"div",16),Lo("click",function(){Ae(t);const n=e.$implicit;return Bo(2).toggleFilter(n)}),Oo(),Oo()}if(2&t){const t=e.$implicit;Qr(1),Co("innerHtml",Nl(2,1,t.label,"html"),Ki)}}function WM(t,e){if(1&t){const t=Io();Mo(0,"div",11),xo(1,ZM,4,4,"div",12),Mo(2,"div",13),Lo("click",function(){return Ae(t),Bo().resetFilters()}),Bl(3,"safe"),Oo(),Oo()}if(2&t){const t=Bo();Qr(1),Co("ngForOf",t.activeFilters),Qr(1),Co("innerHtml",Nl(3,2,t.filtersTexts.effacer_les_filtres,"html"),Ki)}}function XM(t,e){if(1&t&&(Mo(0,"div",22),da(1),Oo()),2&t){const t=Bo(2).$implicit;Qr(1),ma("(",t.nbActive,")")}}const QM=function(t,e){return{rotate:t,component_arrow_small_white:e}};function KM(t,e){if(1&t&&So(0,"div",23),2&t){const t=Bo(2).$implicit,e=Bo();Co("ngClass",Al(1,QM,e.open&&e.currentHoverCat==t,!t.temporel&&e.currentHoverCat==t))}}const YM=function(t,e){return{temporal_cont:t,active:e}},JM=function(t){return{temporal_string:t}};function tO(t,e){if(1&t){const t=Io();Mo(0,"div",18),Lo("click",function(e){Ae(t);const n=Bo().$implicit;return Bo().catClicked(n,e)}),So(1,"div",19),Bl(2,"safe"),Bl(3,"safe"),xo(4,XM,2,1,"div",20),xo(5,KM,1,4,"div",21),Oo()}if(2&t){const t=Bo().$implicit,e=Bo();Co("ngClass",Al(11,YM,t.temporel,e.currentHoverCat==t||1==t.filters.length&&t.filters[0].active)),Qr(1),Co("ngClass",Il(14,JM,t.temporel))("innerHtml",t.temporel?Nl(2,5,e.temporalString,"html"):Nl(3,8,t.label,"html"),Ki),Qr(3),Co("ngIf",!t.temporel&&t.filters.length>1&&t.nbActive>0),Qr(1),Co("ngIf",t.filters.length>1)}}function eO(t,e){if(1&t&&(ko(0),xo(1,tO,6,16,"div",17),To()),2&t){const t=e.$implicit,n=Bo();Qr(1),Co("ngIf","textes_interface"!=t&&(n.deviceQueryService.isMobile()&&!n.search||!t.temporel))}}function nO(t,e){if(1&t&&(Mo(0,"span"),da(1),Oo()),2&t){const t=Bo(4);Qr(1),pa(t.filtersTexts.activites)}}function iO(t,e){if(1&t&&(Mo(0,"span"),da(1),Oo()),2&t){const t=Bo(4);Qr(1),pa(t.filtersTexts.activite)}}function rO(t,e){if(1&t&&(ko(0),xo(1,nO,2,1,"span",30),xo(2,iO,2,1,"span",30),To()),2&t){const t=Bo(3);Qr(1),Co("ngIf",t.nbItems>1),Qr(1),Co("ngIf",1==t.nbItems)}}function sO(t,e){if(1&t&&(Mo(0,"span"),da(1),Oo()),2&t){const t=Bo(4);Qr(1),pa(t.filtersTexts["r\xe9sultats"])}}function oO(t,e){if(1&t&&(Mo(0,"span"),da(1),Oo()),2&t){const t=Bo(4);Qr(1),pa(t.filtersTexts["r\xe9sultats"].slice(0,-1))}}function aO(t,e){if(1&t&&(ko(0),xo(1,sO,2,1,"span",30),xo(2,oO,2,1,"span",30),To()),2&t){const t=Bo(3);Qr(1),Co("ngIf",t.nbItems>1),Qr(1),Co("ngIf",1==t.nbItems)}}function lO(t,e){if(1&t&&(Mo(0,"div",29),Mo(1,"span"),da(2),Oo(),xo(3,rO,3,2,"ng-container",30),xo(4,aO,3,2,"ng-container",30),Oo()),2&t){const t=Bo(2);Qr(2),ma("",t.nbItems," "),Qr(1),Co("ngIf",!t.search),Qr(1),Co("ngIf",t.search)}}function cO(t,e){if(1&t&&(Mo(0,"div",31),da(1),Oo()),2&t){const t=Bo(2);Qr(1),pa(t.filtersTexts["Trier par"])}}const uO=function(t,e){return{desktop_only:t,inverse:e}},hO=function(t){return{active:t}},dO=function(t){return{rotate:t}};function pO(t,e){if(1&t){const t=Io();Mo(0,"div",24),xo(1,lO,5,3,"div",25),xo(2,cO,2,1,"div",26),Mo(3,"div",27),Lo("click",function(e){return Ae(t),Bo().temporalClicked(e)}),So(4,"div",28),Bl(5,"safe"),So(6,"div",23),Oo(),Oo()}if(2&t){const t=Bo();Co("ngClass",Al(9,uO,!t.search,t.inverse)),Qr(1),Co("ngIf",t.nbItems>0&&t.filtersTexts.activites&&t.filtersTexts.activite),Qr(1),Co("ngIf",t.search),Qr(1),Co("ngClass",Il(12,hO,t.open&&(null==t.currentHoverCat?null:t.currentHoverCat.temporel))),Qr(1),Co("innerHtml",Nl(5,6,t.temporalString,"html"),Ki),Qr(2),Co("ngClass",Il(14,dO,t.open&&(null==t.currentHoverCat?null:t.currentHoverCat.temporel)))}}function mO(t,e){if(1&t&&(Mo(0,"span"),da(1),Oo()),2&t){const t=Bo().$implicit;Qr(1),ma(" (",t.count,")")}}const gO=function(t,e){return{active:t,disabled:e}};function fO(t,e){if(1&t){const t=Io();Mo(0,"div",34),Lo("click",function(){Ae(t);const n=e.$implicit;return Bo(2).toggleFilter(n)}),So(1,"span",35),Bl(2,"safe"),xo(3,mO,2,1,"span",30),Oo()}if(2&t){const t=e.$implicit;Co("ngClass",Al(6,gO,t.active,t.disabled)),Qr(1),Co("innerHtml",Nl(2,3,t.label,"html"),Ki),Qr(2),Co("ngIf",t.count&&t.count>0)}}function _O(t,e){if(1&t){const t=Io();Mo(0,"div",32),Lo("clickOutside",function(){return Ae(t),Bo().clickedOutside()}),xo(1,fO,4,9,"div",33),Oo()}if(2&t){const t=Bo();Qr(1),Co("ngForOf",null==t.currentHoverCat?null:t.currentHoverCat.filters)}}const vO=function(t){return{inverse:t}},yO=function(t){return{right:t}};let xO=(()=>{class t{constructor(t,e){this.persistantData=t,this.deviceQueryService=e,this.pDataId=null,this.additive=!1,this.inverse=!1,this.search=!1,this.open=!1,this.categories=new Array,this.temporalString="",this.nbItems=0,this.filtersHeight=0,this.animationPrefix="",this.activeFilters=[],this.filtersChanged=new Vl,this.filtersToggled=new Vl}
1ngOnInit(){}ngAfterViewInit(){setTimeout(()=>{let t;if(this.animationPrefix=this.deviceQueryService.isMobile()?"mobile_":"",t=[],this.sortData){let e=Object.keys(this.sortData),n={label:"",keyword:"sort",nbActive:0,temporel:!0,filters:[]};for(let i of e){let e={label:this.sortData[i],id:i,active:-1!=t.indexOf(i),category:this.categories.length,temporel:!0,disabled:!1};n.filters.push(e)}this.categories.push(n)}if(this.search)for(let e in this.filtersData){let n=this.filtersData[e],i={label:n.label,keyword:e,nbActive:0,temporel:!1,filters:[]},r=Object.keys(n.options);for(let e of r){let r={label:n.options[e],id:e,active:-1!=t.indexOf(e),category:this.categories.length,temporel:!1,disabled:!1,count:n.count[e]};i.filters.push(r)}this.categories.push(i)}else for(let e in this.filtersData){if("textes_interface"==e)continue;let n=this.filtersData[e],i={label:n.label,nbActive:0,temporel:!1,filters:[]};for(let r of n.liste){let n={label:r.label,id:r.tid,active:-1!=t.indexOf(r.tid),category:this.categories.length,temporel:"temporel"==e,disabled:!1};i.filters.push(n)}i.filters.length>0&&i.filters[0].temporel&&(i.temporel=!0),this.categories.push(i)}if(this.search||this.sendFilterState(),""==this.temporalString)for(let e of this.categories)for(let t of e.filters)if(t.temporel){this.toggleFilter(t);break}},100)}forceFilters(t){this.activeFilters=[];let e=t.substr(1).split("&");for(let n of e){let t=n.split("=");for(let e of this.categories)if(e.keyword==t[0]){let n=t[1].split(",");for(let t of n)for(let n of e.filters)if(n.id==t)if(e.nbActive++,n.active=!0,n.temporel){for(let t of this.categories[n.category].filters)t.id!=n.id&&(t.active=!1);this.temporalString=n.label.toLowerCase()}else this.activeFilters.push(n)}}}toggleFilters(){this.open=!this.open,this.pDataId&&(this.persistantData.setItem(this.pDataId+"_filters_open",this.open),this.persistantData.save()),this.filtersToggled.emit(this.open)}catClicked(t,e=null){1==t.filters.length?this.toggleFilter(t.filters[0]):this.currentHoverCat==t?(this.open=!1,setTimeout(()=>{this.currentHoverCat=null},250)):(this.open=!0,this.currentHoverCat=t),e&&(e.preventDefault(),e.stopImmediatePropagation())}clickedOutside(){this.currentHoverCat&&this.catClicked(this.currentHoverCat)}temporalClicked(t){for(let e of this.categories)e.filters[0].temporel&&this.catClicked(e,t)}toggleFilter(t){if(!t.active||!t.temporel){if(t.active=!t.active,t.temporel){for(let e of this.categories[t.category].filters)e.id!=t.id&&(e.active=!1);this.currentHoverCat&&this.catClicked(this.currentHoverCat)}this.sendFilterState()}}resetFilters(){for(let t of this.categories)for(let e of t.filters)e.temporel||(e.active=!1);this.sendFilterState()}sendFilterState(){this.temporalString="",this.activeFilters=[];let t=[],e=[];for(let n in this.categories){e[n]=[];let i=this.categories[n];i.nbActive=0;for(let r of i.filters)r.active&&(i.nbActive++,r.temporel||this.activeFilters.push(r),r.temporel&&(this.temporalString=r.label.toLowerCase()),e[n].push(r.id),t.push(r.id))}this.filtersChanged.emit(e),this.pDataId&&(this.persistantData.setItem(this.pDataId+"_filters_active",t),this.persistantData.save()),this.nbItems=this.parentComponent.countItemsWithFilters(e),this.computeGrayFilters(e)}getFiltersForSearch(){return this.categories}computeGrayFilters(t){for(let e in this.categories){let n=this.categories[e];for(let i of n.filters)if(!i.active){let n=JSON.parse(JSON.stringify(t));this.additive?n=[[i.id]]:n[e]=[i.id],i.disabled=this.search?0==i.count:0==this.parentComponent.countItemsWithFilters(n)}}}getActiveFilters(){}updateFilters(t){let e=Object.keys(t);for(let n of e)for(let e of this.categories)if(e.keyword==n){let i=Object.keys(t[n].count);for(let r of i)for(let i of e.filters)i.id==r&&(i.count=t[n].count[r],i.disabled=0==i.count)}}updateCount(t){this.nbItems=t}}return t.\u0275fac=function(e){return new(e||t)(wo(Mb),wo(Pb))},t.\u0275cmp=Ut({type:t,selectors:[["app-filters"]],viewQuery:function(t,e){if(1&t&&nc(GM,1),2&t){let t;ec(t=ic())&&(e.filtersElem=t.first)}},inputs:{sortData:"sortData",filtersData:"filtersData",pDataId:"pDataId",parentComponent:"parentComponent",filtersTexts:"filtersTexts",additive:"additive",inverse:"inverse",search:"search"},outputs:{filtersChanged:"filtersChanged",filtersToggled:"filtersToggled"},decls:11,vars:11,consts:[[1,"filters_wrapper"],[1,"grid_wrap"],[1,"bib_grid"],[1,"filters_cont"],[1,"filters_left",3,"ngClass"],["class","filters_select_cont",4,"ngIf"],[1,"filters_main_cat_cont"],[4,"ngFor","ngForOf"],["class","filters_right",3,"ngClass",4,"ngIf"],[1,"filters_cat_wrapper",3,"ngClass"],["class","filters_cat_cont","clickOutside","",3,"clickOutside",4,"ngIf"],[1,"filters_select_cont"],["class","filter_cat inverse",4,"ngFor","ngForOf"],[1,"filter_delete_active","cursor","bib_mentions",3,"innerHtml","click"],[1,"filter_cat","inverse"],[1,"bib_mentions",3,"innerHtml"],[1,"component_cross","cursor",3,"click"],["class","filter_cat cursor",3,"ngClass","click",4,"ngIf"],[1,"filter_cat","cursor",3,"ngClass","click"],[1,"bib_mentions",3,"ngClass","innerHtml"],["class","bib_mentions nb_active",4,"ngIf"],["class","component_arrow_small",3,"ngClass",4,"ngIf"],[1,"bib_mentions","nb_active"],[1,"component_arrow_small",3,"ngClass"],[1,"filters_right",3,"ngClass"],["class","filters_items",4,"ngIf"],["class","temporal_cont_sortlabel",4,"ngIf"],[1,"temporal_cont","cursor",3,"ngClass","click"],[1,"temporal_string",3,"innerHtml"],[1,"filters_items"],[4,"ngIf"],[1,"temporal_cont_sortlabel"],["clickOutside","",1,"filters_cat_cont",3,"clickOutside"],["class","filter bib_mentions",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"filter","bib_mentions",3,"ngClass","click"],[3,"innerHtml"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),Mo(2,"div",2),Mo(3,"div",3),Mo(4,"div",4),xo(5,WM,4,5,"div",5),Mo(6,"div",6),xo(7,eO,2,1,"ng-container",7),Oo(),Oo(),xo(8,pO,7,16,"div",8),Oo(),Oo(),Oo(),Mo(9,"div",9),xo(10,_O,2,1,"div",10),Oo(),Oo()),2&t&&(Qr(4),Co("ngClass",Il(7,vO,e.inverse)),Qr(1),Co("ngIf",e.activeFilters.length>0),Qr(2),Co("ngForOf",e.categories),Qr(1),Co("ngIf",""!=e.temporalString&&!e.additive),Qr(1),Co("@slideUpDown",e.open?"open":"closed")("ngClass",Il(9,yO,(null==e.currentHoverCat?null:e.currentHoverCat.filters[0].temporel)&&!e.inverse||!(null!=e.currentHoverCat&&e.currentHoverCat.filters[0].temporel)&&e.inverse)),Qr(1),Co("ngIf",e.currentHoverCat))},directives:[Tu,zu,Iu,qM],pipes:[Sb],styles:[".filters_wrapper[_ngcontent-%COMP%]{pointer-events:all;box-sizing:border-box}.filters_wrapper[_ngcontent-%COMP%]   .grid_wrap[_ngcontent-%COMP%]{padding:1rem 0;background-color:#fff;box-shadow:0 0 8px #00000026}.filters_cont[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;display:flex;justify-content:flex-start;flex-wrap:wrap}@media (min-width:992px){.filters_cont[_ngcontent-%COMP%]{align-items:center;overflow:hidden;flex-wrap:nowrap}}.filters_main_cat_cont[_ngcontent-%COMP%], .filters_right[_ngcontent-%COMP%]{display:flex;align-items:center}.filters_right[_ngcontent-%COMP%]{margin-left:auto;justify-content:space-between;flex-basis:100%;margin-top:32px}@media (min-width:992px){.filters_right[_ngcontent-%COMP%]{flex-basis:auto;justify-content:flex-start;margin-top:0}}.filters_right.inverse[_ngcontent-%COMP%]{margin-left:0;margin-right:auto;order:1}.filters_left[_ngcontent-%COMP%]{overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none}.filters_left[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.filters_left.inverse[_ngcontent-%COMP%]{order:2}
1.filter_cat[_ngcontent-%COMP%]{white-space:nowrap;display:flex;align-items:center;padding:.1rem 1.1rem;border:1px solid #c4c4c4;border-radius:33px;margin-right:.5rem}@media (min-width:992px){.filter_cat[_ngcontent-%COMP%]{padding:.25rem 1.25rem}}.filter_cat[_ngcontent-%COMP%]   .component_arrow_small[_ngcontent-%COMP%]{margin-left:.5rem;transition:transform .25s ease-in-out}.filter_cat[_ngcontent-%COMP%]   .component_arrow_small.rotate[_ngcontent-%COMP%]{transform:rotate(-180deg);-ms-transform:rotate(-180deg);-webkit-transform:rotate(-180deg)}.filter_cat[_ngcontent-%COMP%]   .nb_active[_ngcontent-%COMP%]{font-weight:700;margin-left:.25rem}.filter_cat.inverse[_ngcontent-%COMP%]{border:none;border-bottom:1px solid #0000;padding:0 1.25rem 0 0}.filters_cat_wrapper[_ngcontent-%COMP%]{overflow:hidden;padding-bottom:10px}.filter_cat.active[_ngcontent-%COMP%]{background-color:#131313;border:1px solid #131313;color:#fff}.filter_cat[_ngcontent-%COMP%]:last-child{margin-left:0}.filters_cat_cont[_ngcontent-%COMP%]{box-sizing:border-box;background-color:#f4f3f4;padding:28px calc(0 * ((100vw - 40px - 77px) / 12) + calc(1 * 7px)) 20px 20px;display:inline-flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;max-width:100%;width:100%;box-shadow:0 0 8px #00000026}@media (min-width:500px){.filters_cat_cont[_ngcontent-%COMP%]{padding-left:40px}}@media (min-width:992px){.filters_cat_cont[_ngcontent-%COMP%]{padding-left:20px}}@media (min-width:1024px){.filters_cat_cont[_ngcontent-%COMP%]{padding-left:40px}}@media (min-width:1280px){.filters_cat_cont[_ngcontent-%COMP%]{padding-left:60px}}@media (min-width:1440px){.filters_cat_cont[_ngcontent-%COMP%]{padding-left:calc((100% - 1320px) / 2)}}@media (min-width:992px){.filters_cat_cont[_ngcontent-%COMP%]{padding-right:calc(calc(0 + 1) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.filters_cat_cont[_ngcontent-%COMP%]{padding-right:calc(calc(0 + 1) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.filters_cat_cont[_ngcontent-%COMP%]{padding-right:calc(calc(0 + 1) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.filters_cat_cont[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 0) + calc(60px * 1))}}@media (min-width:992px){.filters_cat_cont[_ngcontent-%COMP%]{width:auto;max-width:calc(100% - 20px - 9px)}}@media (min-width:1024px){.filters_cat_cont[_ngcontent-%COMP%]{max-width:calc(100% - 40px - 9px)}}@media (min-width:1280px){.filters_cat_cont[_ngcontent-%COMP%]{max-width:calc(100% - 60px - 9px)}}@media (min-width:1440px){.filters_cat_cont[_ngcontent-%COMP%]{max-width:calc(100% - calc(calc(100% - 1320px) / 2) - 9px)}}.filters_cat_cont[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]{flex:0 1 auto;border-radius:20px;border:1px solid #c4c4c4;padding:.1rem 1.1rem;margin-right:8px;margin-bottom:8px;
1cursor:pointer;background-color:#fff;white-space:nowrap}@media (min-width:992px){.filters_cat_cont[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]{padding:.25rem 1.25rem}}.filters_cat_cont[_ngcontent-%COMP%]   .filter[_ngcontent-%COMP%]:last-child{margin-right:0}.filters_cat_cont[_ngcontent-%COMP%]   .filter.active[_ngcontent-%COMP%]{background-color:#131313!important;border:1px solid #131313;color:#fff}.filters_cat_cont[_ngcontent-%COMP%]   .filter.disabled[_ngcontent-%COMP%]{opacity:.5;pointer-events:none;background-color:initial}@media (min-width:992px){.filters_cat_wrapper.right[_ngcontent-%COMP%]{text-align:right}.filters_cat_wrapper.right[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-right:20px;padding-left:calc(0 * ((100vw - 40px - 77px) / 12) + calc(1 * 7px))}}@media (min-width:992px) and (min-width:500px){.filters_cat_wrapper.right[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-right:40px}}@media (min-width:992px) and (min-width:992px){.filters_cat_wrapper.right[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-right:20px}}@media (min-width:992px) and (min-width:1024px){.filters_cat_wrapper.right[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-right:40px}}@media (min-width:992px) and (min-width:1280px){.filters_cat_wrapper.right[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-right:60px}}@media (min-width:992px) and (min-width:1440px){.filters_cat_wrapper.right[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-right:calc((100% - 1320px) / 2)}}@media (min-width:992px) and (min-width:992px){.filters_cat_wrapper.right[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-left:calc(calc(0 + 1) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.filters_cat_wrapper.right[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-left:calc(calc(0 + 1) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.filters_cat_wrapper.right[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-left:calc(calc(0 + 1) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.filters_cat_wrapper.right[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 0) + calc(60px * 1))}}@media (min-width:992px){.filters_cat_wrapper.center[_ngcontent-%COMP%]{text-align:center}.filters_cat_wrapper.center[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{margin:0 auto;padding-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));padding-right:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){.filters_cat_wrapper.center[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.filters_cat_wrapper.center[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.filters_cat_wrapper.center[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.filters_cat_wrapper.center[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){.filters_cat_wrapper.center[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.filters_cat_wrapper.center[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.filters_cat_wrapper.center[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.filters_cat_wrapper.center[_ngcontent-%COMP%]   .filters_cat_cont[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}.filters_select_cont[_ngcontent-%COMP%]{margin-bottom:.93rem;display:flex;align-items:center;flex-wrap:wrap}.filters_select_cont[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{margin-right:.5rem}.filters_select_cont[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:last-child{margin-right:0}.inverse[_ngcontent-%COMP%]   .filters_select_cont[_ngcontent-%COMP%]{justify-content:flex-end;padding-right:.7rem}.filters_select_cont.center[_ngcontent-%COMP%]{justify-content:center}.filter_delete_active[_ngcontent-%COMP%]{margin-left:.5rem;border-bottom:1px solid #131313}.temporal_cont[_ngcontent-%COMP%]{border-radius:0;padding:.5rem .75rem;background-color:#f4f3f4;border:none;border-bottom:1px solid #f4f3f4;display:flex;align-items:center;margin-left:.5rem}@media (min-width:992px){.temporal_cont[_ngcontent-%COMP%]{padding:1rem .75rem}}.temporal_cont[_ngcontent-%COMP%]   .temporal_string[_ngcontent-%COMP%]{font-weight:700;margin-right:.5rem}.filter_cat.temporal_cont[_ngcontent-%COMP%]{margin-left:0}.temporal_cont.active[_ngcontent-%COMP%]{color:#131313;background-color:#c4c4c4;border:none;border-bottom:1px solid #131313}.temporal_cont[_ngcontent-%COMP%]   .component_arrow_small[_ngcontent-%COMP%]{transition:transform .25s ease-in-out}.temporal_cont[_ngcontent-%COMP%]   .component_arrow_small.rotate[_ngcontent-%COMP%]{transform:rotate(-180deg);-ms-transform:rotate(-180deg);-webkit-transform:rotate(-180deg)}.temporal_cont_sortlabel[_ngcontent-%COMP%]{margin-left:auto}@media (min-width:992px){.temporal_cont_sortlabel[_ngcontent-%COMP%]{margin-left:30px}}"],data:{animation:[Qb]}}),t})();const bO=function(t){return{highlight:t}};function wO(t,e){if(1&t&&(Mo(0,"div",13),So(1,"div",14),Bl(2,"safe"),So(3,"div",15),Oo()),2&t){const t=Bo();Co("ngClass",Il(5,bO,"1"==t.data.highlight)),Qr(1),Co("innerHtml",Nl(2,2,t.data.slogan,"html"),Ki)}}function CO(t,e){1&t&&(Mo(0,"span"),da(1," \u2014 "),Oo())}function PO(t,e){if(1&t&&(ko(0),So(1,"span",18),xo(2,CO,2,0,"span",19),To()),2&t){const t=e.$implicit,n=e.index,i=Bo(2);Qr(1),Co("innerHtml",t.label,Ki),Qr(1),Co("ngIf",n<i.data.themes.length-1)}}function MO(t,e){if(1&t&&(Mo(0,"div",16),xo(1,PO,3,2,"ng-container",17),Oo()),2&t){const t=Bo();Qr(1),Co("ngForOf",t.data.themes)}}function OO(t,e){1&t&&(Mo(0,"span"),da(1,"\xa0\u2014\xa0"),Oo())}function SO(t,e){1&t&&(So(0,"span",23),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(3).data.kidslabel,"html"),Ki)}function kO(t,e){if(1&t&&(Mo(0,"div",21),So(1,"img",22),Bl(2,"safe"),So(3,"span",23),Bl(4,"safe"),xo(5,OO,2,0,"span",19),xo(6,SO,2,4,"span",25),Oo()),2&t){const t=Bo(2);Qr(1),Co("src",Nl(2,4,"/assets/img/clock"+(t.data.hover?"":"_white")+".svg","resourceUrl"),Yi),Qr(2),Co("innerHtml",Nl(4,7,t.data.duree_reelle,"html"),Ki),Qr(2),Co("ngIf",t.data.kidsfriendly),Qr(1),Co("ngIf",t.data.kidsfriendly)}}function TO(t,e){if(1&t&&(Mo(0,"div",20),Mo(1,"div",21),So(2,"img",22),So(3,"span",23),Bl(4,"safe"),Oo(),xo(5,kO,7,10,"div",24),Oo()),2&t){const t=Bo();Qr(2),Co("src","/assets/img/calendar"+(t.data.hover?"":"_white")+".svg",Yi),Qr(1),Co("innerHtml",Nl(4,3,t.data.contextualDates,"html"),Ki),Qr(2),Co("ngIf",t.data.duree_reelle)}}function EO(t,e){1&t&&(So(0,"div",26),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().data.texte,"html"),Ki)}function IO(t,e){1&t&&(So(0,"div",27),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().data.chapo,"html"),Ki)}function AO(t,e){if(1&t&&(Mo(0,"div",28),Mo(1,"a",29),So(2,"div",30),Bl(3,"safe"),Oo(),Oo()),2&t){const t=Bo();Qr(1),Co("href",t.data.lien.url,Yi),Qr(1),Co("innerHtml",Nl(3,2,t.data.lien.label,"html"),Ki)}}function zO(t,e){1&t&&So(0,"app-card-activity",34),2&t&&Co("act",Bo(2).data)("fullwidth",!0)}function DO(t,e){if(1&t){const t=Io();Mo(0,"div",31),Lo("click",function(){return Ae(t),Bo().pushClicked()}),Mo(1,"div",32),xo(2,zO,1,2,"app-card-activity",33),Oo(),Oo()}if(2&t){const t=Bo();Qr(2),Co("ngIf","activite"==t.data.type_contenu)}}function LO(t,e){1&t&&So(0,"app-card-page",37),2&t&&Co("data",Bo(2).data)("fullwidth",!0)}function RO(t,e){1&t&&So(0,"app-card-promo",37),2&t&&Co("data",Bo(2).data)("fullwidth",!0)}function FO(t,e){if(1&t){const t=Io();Mo(0,"div",35),Lo("click",function(){return Ae(t),Bo().pushClicked()}),xo(1,LO,1,2,"app-card-page",36),xo(2,RO,1,2,"app-card-promo",36),Oo()}if(2&t){const t=Bo();Qr(1),Co("ngIf","page"==t.data.type_contenu),Qr(1),Co("ngIf","promo"==t.data.type_contenu)}}const BO=function(t){return{cursor:t}},NO=function(t){return{"background-image":t}}
1,UO=function(t,e){return{bib_grid:t,push_card_wrapper_content:e}},HO=function(t){return{draft:t}};let jO=(()=>{class t{constructor(){this.navigateEvent=new Vl,this.clickable=!1,this.cardIsGrid=!1}ngOnInit(){this.data.hover=!1,this.data.computedOffre="",this.data.contextualDates="","activite"==this.data.type_contenu&&(this.data.duree_reelle||"string"!=typeof this.data.duree||(this.data.duree_reelle=this.data.duree),this.data.kidsfriendly=!1,this.data.enfant&&(this.data.kidsfriendly=!0,this.data.kidslabel=this.data.enfant),this.data.computedOffre=this.data.liste_offre?this.data.liste_offre:this.data.type_activite),"activite"!=this.data.type_contenu&&"page"!=this.data.type_contenu||(this.clickable=!0),"promo"==this.data.type_contenu&&(this.cardIsGrid=!0)}pushClicked(){this.clickable&&this.navigateEvent.emit(this.data.lien)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-push"]],inputs:{data:"data"},outputs:{navigateEvent:"navigateEvent"},decls:19,vars:42,consts:[[3,"ngClass","click","mouseenter","mouseleave"],[1,"push_visuel",3,"ngStyle"],["class","push_slogan bib_title4",3,"ngClass",4,"ngIf"],["class","push_theme bib_mentions blur",4,"ngIf"],[3,"ngClass"],[1,"flex-child","push_offre","bib_type",3,"innerHtml"],[1,"flex-child","push_title","bib_title3",3,"innerHtml","ngClass"],["class","flex-child push_pictos",4,"ngIf"],["class","flex-child bib_mentions",3,"innerHtml",4,"ngIf"],["class","flex-child",3,"innerHtml",4,"ngIf"],["class","flex-child push_link",4,"ngIf"],["class","mobile_only bib_grid",3,"click",4,"ngIf"],["class","mobile_only",3,"click",4,"ngIf"],[1,"push_slogan","bib_title4",3,"ngClass"],[1,"slogan_text",3,"innerHtml"],[1,"slogan_bubble"],[1,"push_theme","bib_mentions","blur"],[4,"ngFor","ngForOf"],[3,"innerHtml"],[4,"ngIf"],[1,"flex-child","push_pictos"],[1,"flex-child","picto_container","bib_mentions"],[1,"flex-child2","push_picto",3,"src"],[1,"flex-child2",3,"innerHtml"],["class","flex-child picto_container bib_mentions",4,"ngIf"],["class","flex-child2",3,"innerHtml",4,"ngIf"],[1,"flex-child","bib_mentions",3,"innerHtml"],[1,"flex-child",3,"innerHtml"],[1,"flex-child","push_link"],["target","_blank",3,"href"],[1,"push_button","bib_button",3,"innerHtml"],[1,"mobile_only","bib_grid",3,"click"],[1,"push_mobile_card_ingrid"],[3,"act","fullwidth",4,"ngIf"],[3,"act","fullwidth"],[1,"mobile_only",3,"click"],[3,"data","fullwidth",4,"ngIf"],[3,"data","fullwidth"]],template:function(t,e){1&t&&(Mo(0,"div"),Mo(1,"div",0),Lo("click",function(){return e.pushClicked()})("mouseenter",function(){return e.data.hover=!0})("mouseleave",function(){return e.data.hover=!1}),Mo(2,"div"),So(3,"div",1),xo(4,wO,4,7,"div",2),xo(5,MO,2,1,"div",3),Oo(),Mo(6,"div"),Mo(7,"div",4),Mo(8,"div",4),So(9,"div",5),Bl(10,"safe"),So(11,"div",6),Bl(12,"safe"),xo(13,TO,6,6,"div",7),xo(14,EO,2,4,"div",8),xo(15,IO,2,4,"div",9),xo(16,AO,4,5,"div",10),Oo(),Oo(),Oo(),Oo(),Oo(),xo(17,DO,3,1,"div",11),xo(18,FO,3,2,"div",12)),2&t&&(ea("in_scrollable desktop_only push_wrapper "+e.data.type_contenu),Qr(1),ea("push_cont "+e.data.type_contenu),Co("ngClass",Il(31,BO,e.clickable)),Qr(1),ea("flex-child push_img "+e.data.type_contenu+" t_a_"+e.data.alignement_texte),Qr(1),Co("ngStyle",Il(33,NO,e.data.visuel&&e.data.visuel.url?"url("+e.data.visuel.url+")":"none")),Qr(1),Co("ngIf",e.data.slogan),Qr(1),Co("ngIf",e.data.themes),Qr(1),ea("flex-child push_card_wrapper "+e.data.type_contenu+" t_a_"+e.data.alignement_texte),Qr(1),Co("ngClass",Al(35,UO,e.cardIsGrid,!e.cardIsGrid)),Qr(1),ea("push_card "+e.data.type_contenu+" t_a_"+e.data.alignement_texte),Co("ngClass",Il(38,bO,"1"==e.data.highlight)),Qr(1),Co("innerHtml",Nl(10,25,e.data.computedOffre,"html"),Ki),Qr(2),Co("innerHtml",Nl(12,28,e.data.titre,"html"),Ki)("ngClass",Il(40,HO,"0"==e.data.status)),Qr(2),Co("ngIf","activite"==e.data.type_contenu),Qr(1),Co("ngIf",e.data.texte),Qr(1),Co("ngIf",e.data.chapo),Qr(1),Co("ngIf","promo"==e.data.type_contenu),Qr(1),Co("ngIf","activite"==e.data.type_contenu),Qr(1),Co("ngIf","page"==e.data.type_contenu||"promo"==e.data.type_contenu))},directives:[Tu,Uu,zu,Iu,Sw,Xb,Bw],pipes:[Sb],styles:[".push_wrapper[_ngcontent-%COMP%]{max-width:100%}@media (min-width:992px){.push_wrapper[_ngcontent-%COMP%]{width:100%;margin:0 auto}.push_wrapper.page[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%], .push_wrapper.promo[_ngcontent-%COMP%]{width:100%!important;padding:0!important;max-width:none!important;margin:0!important}}.push_wrapper.activite[_ngcontent-%COMP%]{width:calc(12 * ((100vw - 40px - 77px) / 12) + calc(11 * 7px))}@media (min-width:992px){.push_wrapper.activite[_ngcontent-%COMP%]{width:calc(calc(12 + 11) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.push_wrapper.activite[_ngcontent-%COMP%]{width:calc(calc(12 + 11) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.push_wrapper.activite[_ngcontent-%COMP%]{width:calc(calc(12 + 11) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.push_wrapper.activite[_ngcontent-%COMP%]{width:calc(calc(55px * 12) + calc(60px * 11))}}.push_cont[_ngcontent-%COMP%]{display:flex;position:relative}.push_cont.promo[_ngcontent-%COMP%]{height:360px}@media (min-width:992px){.push_cont.promo[_ngcontent-%COMP%]{height:508px}}.push_img[_ngcontent-%COMP%]{flex-basis:calc(8 * ((100vw - 40px - 77px) / 12) + calc(7 * 7px));position:relative;overflow:hidden}@media (min-width:992px){.push_img[_ngcontent-%COMP%]{flex-basis:calc(calc(8 + 7) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.push_img[_ngcontent-%COMP%]{flex-basis:calc(calc(8 + 7) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.push_img[_ngcontent-%COMP%]{flex-basis:calc(calc(8 + 7) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.push_img[_ngcontent-%COMP%]{flex-basis:calc(calc(55px * 8) + calc(60px * 7))}}.push_img[_ngcontent-%COMP%]   .push_slogan[_ngcontent-%COMP%]{position:absolute;right:1.8rem;top:1.8rem;display:flex;justify-content:center;align-items:center;text-align:center;color:#fff;width:73px;height:73px;box-sizing:border-box;transform:rotate(-15deg);-ms-transform:rotate(-15deg);-webkit-transform:rotate(-15deg)}@media (min-width:992px){.push_img[_ngcontent-%COMP%]   .push_slogan[_ngcontent-%COMP%]{top:auto;bottom:1.8rem;width:97px;height:97px}}.push_img[_ngcontent-%COMP%]   .push_slogan[_ngcontent-%COMP%]   .slogan_bubble[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;padding-top:100%;background-image:url(/assets/img/circle.svg);background-size:100%;z-index:0}.push_img[_ngcontent-%COMP%]   .push_slogan[_ngcontent-%COMP%]   .slogan_text[_ngcontent-%COMP%]{z-index:10;font-size:1rem!important;line-height:117%!important;width:90%;overflow:hidden;box-sizing:border-box;max-height:3.7rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}@media (min-width:992px){.push_img[_ngcontent-%COMP%]   .push_slogan[_ngcontent-%COMP%]   .slogan_text[_ngcontent-%COMP%]{right:2rem;bottom:2rem;font-size:auto;line-height:auto}}.push_img[_ngcontent-%COMP%]   .push_theme[_ngcontent-%COMP%]{position:absolute;
1left:1rem;bottom:.8rem;text-align:center;padding:2px 1.25rem;color:#fff;background:#1313134d;border-radius:33px}.push_slogan.highlight[_ngcontent-%COMP%]   .slogan_bubble[_ngcontent-%COMP%]{background-image:url(/assets/img/circle_white.svg)!important}.push_img.t_a_left[_ngcontent-%COMP%]{order:1}.push_card_wrapper[_ngcontent-%COMP%]{flex-basis:calc(4 * ((100vw - 40px - 77px) / 12) + calc(4 * 7px))}@media (min-width:992px){.push_card_wrapper[_ngcontent-%COMP%]{flex-basis:calc(calc(4 + 4) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.push_card_wrapper[_ngcontent-%COMP%]{flex-basis:calc(calc(4 + 4) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.push_card_wrapper[_ngcontent-%COMP%]{flex-basis:calc(calc(4 + 4) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.push_card_wrapper[_ngcontent-%COMP%]{flex-basis:calc(calc(55px * 4) + calc(60px * 4))}}.push_wrapper.page[_ngcontent-%COMP%]   .push_img[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_img[_ngcontent-%COMP%]{flex-basis:calc(20px + calc(8 * ((100vw - 40px - 77px) / 12) + calc(7 * 7px)))}@media (min-width:500px){.push_wrapper.page[_ngcontent-%COMP%]   .push_img[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_img[_ngcontent-%COMP%]{flex-basis:calc(40px + calc(8 * ((100vw - 40px - 77px) / 12) + calc(7 * 7px)))}}@media (min-width:992px){.push_wrapper.page[_ngcontent-%COMP%]   .push_img[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_img[_ngcontent-%COMP%]{flex-basis:calc(20px + calc(calc(8 + 7) * ((100vw - calc(2 * 20px)) / 23)))}}@media (min-width:1024px){.push_wrapper.page[_ngcontent-%COMP%]   .push_img[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_img[_ngcontent-%COMP%]{flex-basis:calc(40px + calc(calc(8 + 7) * ((100vw - calc(2 * 40px)) / 23)))}}@media (min-width:1280px){.push_wrapper.page[_ngcontent-%COMP%]   .push_img[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_img[_ngcontent-%COMP%]{flex-basis:calc(60px + calc(calc(8 + 7) * ((100vw - calc(2 * 60px)) / 23)))}}@media (min-width:1440px){.push_wrapper.page[_ngcontent-%COMP%]   .push_img[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_img[_ngcontent-%COMP%]{flex-basis:calc(calc((100% - 1320px) / 2) + calc(55px * 8) + calc(60px * 7))}}.push_wrapper.page[_ngcontent-%COMP%]   .push_card_wrapper[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_card_wrapper[_ngcontent-%COMP%]{flex-basis:calc(20px + calc(4 * ((100vw - 40px - 77px) / 12) + calc(4 * 7px)))}@media (min-width:500px){.push_wrapper.page[_ngcontent-%COMP%]   .push_card_wrapper[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_card_wrapper[_ngcontent-%COMP%]{flex-basis:calc(40px + calc(4 * ((100vw - 40px - 77px) / 12) + calc(4 * 7px)))}}@media (min-width:992px){.push_wrapper.page[_ngcontent-%COMP%]   .push_card_wrapper[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_card_wrapper[_ngcontent-%COMP%]{flex-basis:calc(20px + calc(calc(4 + 4) * ((100vw - calc(2 * 20px)) / 23)))}}@media (min-width:1024px){.push_wrapper.page[_ngcontent-%COMP%]   .push_card_wrapper[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_card_wrapper[_ngcontent-%COMP%]{flex-basis:calc(40px + calc(calc(4 + 4) * ((100vw - calc(2 * 40px)) / 23)))}}@media (min-width:1280px){.push_wrapper.page[_ngcontent-%COMP%]   .push_card_wrapper[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_card_wrapper[_ngcontent-%COMP%]{flex-basis:calc(60px + calc(calc(4 + 4) * ((100vw - calc(2 * 60px)) / 23)))}}@media (min-width:1440px){.push_wrapper.page[_ngcontent-%COMP%]   .push_card_wrapper[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_card_wrapper[_ngcontent-%COMP%]{flex-basis:calc(calc((100% - 1320px) / 2) + calc(55px * 4) + calc(60px * 4))}}.push_wrapper.page[_ngcontent-%COMP%]   .push_card[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_card[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:calc(8 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}@media (min-width:992px){.push_wrapper.page[_ngcontent-%COMP%]   .push_card[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_card[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:calc(calc(8 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.push_wrapper.page[_ngcontent-%COMP%]   .push_card[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_card[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:calc(calc(8 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.push_wrapper.page[_ngcontent-%COMP%]   .push_card[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_card[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:calc(calc(8 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.push_wrapper.page[_ngcontent-%COMP%]   .push_card[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .push_wrapper.projet[_ngcontent-%COMP%]   .push_card[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:calc(calc(55px * 8) + calc(60px * 0))}}.push_wrapper.promo[_ngcontent-%COMP%]   .push_img[_ngcontent-%COMP%]{flex-basis:100%}.push_visuel[_ngcontent-%COMP%]{width:100%;padding-top:56.4%;background-size:cover;background-position:50%;background-repeat:no-repeat;background-color:#ccc;transition:all .5s}.push_cont.promo[_ngcontent-%COMP%]   .push_visuel[_ngcontent-%COMP%]{padding-top:0;height:100%}.push_cont[_ngcontent-%COMP%]:not(.promo):focus   .push_visuel[_ngcontent-%COMP%], .push_cont[_ngcontent-%COMP%]:not(.promo):hover   .push_visuel[_ngcontent-%COMP%]{transform:scale(1.03)}
1@media (min-width:992px){.push_card_wrapper.page.t_a_left[_ngcontent-%COMP%]{order:0}}.push_card_wrapper.promo[_ngcontent-%COMP%]{position:absolute;width:100%;left:0;top:3.75rem;height:calc(100% - 7.5rem);z-index:10}.push_card_wrapper.promo[_ngcontent-%COMP%]   .bib_grid[_ngcontent-%COMP%]{height:100%}.push_card[_ngcontent-%COMP%], .push_card_wrapper_content[_ngcontent-%COMP%]{width:100%;height:100%}.push_card[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;padding:1rem}@media (min-width:992px){.push_card[_ngcontent-%COMP%]{max-width:none;padding:0 3.6rem 0 1.8rem}}.push_card.activite[_ngcontent-%COMP%]{background-color:#4762b2;color:#fff}.push_card.activite[_ngcontent-%COMP%], .push_card.highlight[_ngcontent-%COMP%]{transition:background-color .25s cubic-bezier(.55,.085,.68,.53)}.push_card.highlight[_ngcontent-%COMP%]{background-color:#5298f9}.push_card.page[_ngcontent-%COMP%]{background-color:#9ab400;color:#fff;transition:background-color .25s cubic-bezier(.55,.085,.68,.53)}.push_card.page.t_a_left[_ngcontent-%COMP%]{align-items:flex-end}.push_cont[_ngcontent-%COMP%]:hover   .activite[_ngcontent-%COMP%], .push_cont[_ngcontent-%COMP%]:hover   .page[_ngcontent-%COMP%]{background-color:#fff;color:#131313}.push_cont[_ngcontent-%COMP%]:hover   .activite.highlight[_ngcontent-%COMP%]   .push_offre[_ngcontent-%COMP%]{color:#5298f9}.push_cont[_ngcontent-%COMP%]:hover   .activite[_ngcontent-%COMP%]:not(.highlight)   .push_offre[_ngcontent-%COMP%]{color:#4762b2}.push_pictos[_ngcontent-%COMP%]{margin-top:2rem;display:flex;flex-wrap:wrap;width:100%;align-items:center}.push_pictos[_ngcontent-%COMP%]   .flex-child[_ngcontent-%COMP%]{flex:0 1 auto;margin-right:.2rem;display:flex;align-items:center}@media (min-width:992px){.push_pictos[_ngcontent-%COMP%]   .flex-child[_ngcontent-%COMP%]{margin-right:.8rem;margin-bottom:.2rem}}.push_pictos[_ngcontent-%COMP%]   .flex-child[_ngcontent-%COMP%]   .flex-child2[_ngcontent-%COMP%]{margin-right:.2rem;flex:0 1 auto}.push_pictos[_ngcontent-%COMP%]   .flex-child[_ngcontent-%COMP%]:nth-last-child(2){margin-right:0}.push_pictos[_ngcontent-%COMP%]   .activity_picto[_ngcontent-%COMP%]{height:22px;width:27px}@media (min-width:992px){.push_pictos[_ngcontent-%COMP%]   .activity_picto[_ngcontent-%COMP%]{height:25px;width:auto}}.push_pictos[_ngcontent-%COMP%]   .picto_container[_ngcontent-%COMP%]{max-width:100%}.push_pictos[_ngcontent-%COMP%]   .picto_container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.push_card.promo[_ngcontent-%COMP%]{background:#fff;transition:background-color .25s cubic-bezier(.55,.085,.68,.53)}@media (min-width:992px){.push_card.promo.t_a_left[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7;padding:0 3.75rem}.push_card.promo.t_a_right[_ngcontent-%COMP%]{grid-column-start:7;grid-column-end:13;padding:0 3.75rem}}.push_cont[_ngcontent-%COMP%]:hover   .push_card.promo[_ngcontent-%COMP%]{background:#131313;color:#fff}.push_card.promo.t_a_left[_ngcontent-%COMP%]{left:1.25rem}@media (min-width:992px){.push_card.promo.t_a_left[_ngcontent-%COMP%]{left:3.75rem}}.push_card.promo.t_a_right[_ngcontent-%COMP%]{right:1.25rem}@media (min-width:992px){.push_card.promo.t_a_right[_ngcontent-%COMP%]{right:3.75rem}}.push_link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#131313!important;text-decoration:none}.push_button[_ngcontent-%COMP%]{display:inline-block;background:#fff;padding:1rem 1.5rem;border:1px solid #131313}.push_mobile_card_ingrid[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}"]}),t})();const VO=function(t,e,n,i){return{rtl:t,bib_title3:e,bib_title2:n,inline:i}};function $O(t,e){if(1&t&&(So(0,"div",7),Bl(1,"safe")),2&t){const t=Bo();ea("cl_carousel_title ignore_p_margin "+t.gabarit),Co("ngClass",Dl(7,VO,t.rtl,"H3"==t.data.type_titre,"H2"==t.data.type_titre,t.inline))("innerHtml",Nl(1,4,t.data.titre,"html"),Ki)}}const qO=function(t,e){return{rtl:t,inline:e}};function GO(t,e){if(1&t&&(So(0,"div",8),Bl(1,"safe")),2&t){const t=Bo();Co("ngClass",Al(5,qO,t.rtl,t.inline))("innerHtml",Nl(1,2,t.data.texte,"html"),Ki)}}function ZO(t,e){1&t&&So(0,"div",12),2&t&&Co("innerHtml",Bo(2).data.titre_h3,Ki)}function WO(t,e){if(1&t&&So(0,"a",13),2&t){const t=Bo(2);Co("href",t.data.lien.url,Yi)("innerHtml",t.data.lien.label,Ki)}}const XO=function(t){return{notop:t}};function QO(t,e){if(1&t&&(Mo(0,"div",9),xo(1,ZO,1,1,"div",10),xo(2,WO,1,2,"a",11),Oo()),2&t){const t=Bo();Co("ngClass",Il(3,XO,!t.data.titre)),Qr(1),Co("ngIf",t.data.titre_h3),Qr(1),Co("ngIf",null==t.data.lien?null:t.data.lien.label)}}const KO=function(t,e,n,i,r){return{black:t,inline:e,mobile_inline:n,nobg:i,notop:r}};let YO=(()=>{class t{constructor(){this.nobg=!1,this.notop=!1,this.inline=!1,this.mobile_inline=!1,this.gabarit="",this.rtl=!1}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-contenus-lies"]],inputs:{data:"data",texts:"texts",nobg:"nobg",notop:"notop",inline:"inline",mobile_inline:"mobile_inline",gabarit:"gabarit",rtl:"rtl"},decls:7,vars:19,consts:[[1,"cl_carousel",3,"ngClass"],[1,"bib_grid"],[3,"class","ngClass","innerHtml",4,"ngIf"],["class","cl_carousel_texte ignore_p_margin",3,"ngClass","innerHtml",4,"ngIf"],["class","cl_h3",3,"ngClass",4,"ngIf"],[1,"cl_carousel_cont",3,"ngClass"],[3,"hideFS","data","rtl","texts","cssClass"],[3,"ngClass","innerHtml"],[1,"cl_carousel_texte","ignore_p_margin",3,"ngClass","innerHtml"],[1,"cl_h3",3,"ngClass"],["class","bib_title3 ignore_p_margin",3,"innerHtml",4,"ngIf"],["class","ignore_p_margin",3,"href","innerHtml",4,"ngIf"],[1,"bib_title3","ignore_p_margin",3,"innerHtml"],[1,"ignore_p_margin",3,"href","innerHtml"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),xo(2,$O,2,12,"div",2),xo(3,GO,2,8,"div",3),xo(4,QO,3,5,"div",4),Oo(),Mo(5,"div",5),So(6,"app-carousel",6),Oo(),Oo()),2&t&&(Co("ngClass",function(t,e,n,i,r,s,o,a){const l=Ue()+10,c=Ee(),u=vo(c,l,n,i,r,s);return fo(c,l+4,o)||u?mo(c,l+5,e(n,i,r,s,o)):go(c,l+5)}(0,KO,"1"==e.data.fond_noir,e.inline,e.mobile_inline,e.nobg,e.notop||!e.data.titre&&e.data.titre_h3)),Qr(2),Co("ngIf",e.data.titre),Qr(1),Co("ngIf",e.data.texte),Qr(1),Co("ngIf",e.data.titre_h3||(null==e.data.lien?null:e.data.lien.label)),Qr(1),Co("ngClass",Al(16,qO,e.rtl,e.inline)),Qr(1),Co("hideFS",!0)("data",e.data.renvois)("rtl",e.rtl)("texts",e.texts)("cssClass","_contenuslies"+("1"==e.data.fond_noir?"_black":"")))}
1,directives:[Tu,zu,jC],pipes:[Sb],styles:[".cl_carousel[_ngcontent-%COMP%]{height:100%}.cl_carousel[_ngcontent-%COMP%]:not(.inline){box-sizing:border-box;background-color:#f4f3f4;padding:5rem 0;overflow-x:hidden}@media (min-width:992px){.cl_carousel[_ngcontent-%COMP%]:not(.inline){padding:6.37rem 0}}@media (min-width:992px){.cl_carousel[_ngcontent-%COMP%]:not(.inline).nobg{padding:5rem 0}}.cl_carousel[_ngcontent-%COMP%]:not(.inline).notop{padding-top:0!important}.cl_carousel.mobile_inline[_ngcontent-%COMP%]{padding-top:0!important;background-color:#fff!important}.cl_carousel.black[_ngcontent-%COMP%]{background-color:#131313;background-image:url(/assets/img/courbes_niveau.png);background-size:cover;background-position:50%;color:#fff}.cl_carousel_title[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;text-align:center}@media (min-width:992px){.cl_carousel_title[_ngcontent-%COMP%]{text-align:left;z-index:100}.cl_carousel_title.rtl[_ngcontent-%COMP%]{text-align:right}.cl_carousel[_ngcontent-%COMP%]:not(.inline)   .cl_carousel_title[_ngcontent-%COMP%]{text-align:center;max-width:55%;margin:0 auto}}.cl_carousel_title.standard_2[_ngcontent-%COMP%]{text-align:left!important;max-width:none!important;margin:0!important}@media (min-width:992px){.cl_carousel_title.inline[_ngcontent-%COMP%]{padding-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));padding-right:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){.cl_carousel_title.inline[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.cl_carousel_title.inline[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.cl_carousel_title.inline[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.cl_carousel_title.inline[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){.cl_carousel_title.inline[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.cl_carousel_title.inline[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.cl_carousel_title.inline[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.cl_carousel_title.inline[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}.cl_carousel_texte[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;text-align:center;margin-top:1.12rem;margin-bottom:1rem}@media (min-width:992px){.cl_carousel_texte[_ngcontent-%COMP%]{max-width:750px;margin:2.5rem auto 0}}.ck_carousel_text.inline[_ngcontent-%COMP%]{padding-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));padding-right:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}@media (min-width:992px){.ck_carousel_text.inline[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.ck_carousel_text.inline[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.ck_carousel_text.inline[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.ck_carousel_text.inline[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.ck_carousel_text.inline[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.ck_carousel_text.inline[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.ck_carousel_text.inline[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.ck_carousel_text.inline[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}.cl_carousel_cont[_ngcontent-%COMP%]{overflow:visible;margin-left:20px;margin-right:calc(0 * ((100vw - 40px - 77px) / 12) + calc(1 * 7px));margin-top:2.5rem}@media (min-width:500px){.cl_carousel_cont[_ngcontent-%COMP%]{margin-left:40px}}@media (min-width:992px){.cl_carousel_cont[_ngcontent-%COMP%]{margin-left:20px}}@media (min-width:1024px){.cl_carousel_cont[_ngcontent-%COMP%]{margin-left:40px}}@media (min-width:1280px){.cl_carousel_cont[_ngcontent-%COMP%]{margin-left:60px}}@media (min-width:1440px){.cl_carousel_cont[_ngcontent-%COMP%]{margin-left:calc((100% - 1320px) / 2)}}@media (min-width:992px){.cl_carousel_cont[_ngcontent-%COMP%]{margin-right:calc(calc(0 + 1) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.cl_carousel_cont[_ngcontent-%COMP%]{margin-right:calc(calc(0 + 1) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.cl_carousel_cont[_ngcontent-%COMP%]{margin-right:calc(calc(0 + 1) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.cl_carousel_cont[_ngcontent-%COMP%]{margin-right:calc(calc(55px * 0) + calc(60px * 1))}}
1.cl_carousel_cont.inline[_ngcontent-%COMP%]{margin-left:calc(20px + calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px)));margin-right:calc(0 * ((100vw - 40px - 77px) / 12) + calc(1 * 7px));z-index:100}@media (min-width:500px){.cl_carousel_cont.inline[_ngcontent-%COMP%]{margin-left:calc(40px + calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px)))}}@media (min-width:992px){.cl_carousel_cont.inline[_ngcontent-%COMP%]{margin-left:calc(20px + calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23)))}}@media (min-width:1024px){.cl_carousel_cont.inline[_ngcontent-%COMP%]{margin-left:calc(40px + calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23)))}}@media (min-width:1280px){.cl_carousel_cont.inline[_ngcontent-%COMP%]{margin-left:calc(60px + calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23)))}}@media (min-width:1440px){.cl_carousel_cont.inline[_ngcontent-%COMP%]{margin-left:calc(calc((100% - 1320px) / 2) + calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.cl_carousel_cont.inline[_ngcontent-%COMP%]{margin-right:calc(calc(0 + 1) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.cl_carousel_cont.inline[_ngcontent-%COMP%]{margin-right:calc(calc(0 + 1) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.cl_carousel_cont.inline[_ngcontent-%COMP%]{margin-right:calc(calc(0 + 1) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.cl_carousel_cont.inline[_ngcontent-%COMP%]{margin-right:calc(calc(55px * 0) + calc(60px * 1))}}.cl_carousel_cont.inline.rtl[_ngcontent-%COMP%]{margin-right:calc(20px + calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px)));margin-left:calc(0 * ((100vw - 40px - 77px) / 12) + calc(1 * 7px))}@media (min-width:500px){.cl_carousel_cont.inline.rtl[_ngcontent-%COMP%]{margin-right:calc(40px + calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px)))}}@media (min-width:992px){.cl_carousel_cont.inline.rtl[_ngcontent-%COMP%]{margin-right:calc(20px + calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23)))}}@media (min-width:1024px){.cl_carousel_cont.inline.rtl[_ngcontent-%COMP%]{margin-right:calc(40px + calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23)))}}@media (min-width:1280px){.cl_carousel_cont.inline.rtl[_ngcontent-%COMP%]{margin-right:calc(60px + calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23)))}}@media (min-width:1440px){.cl_carousel_cont.inline.rtl[_ngcontent-%COMP%]{margin-right:calc(calc((100% - 1320px) / 2) + calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.cl_carousel_cont.inline.rtl[_ngcontent-%COMP%]{margin-left:calc(calc(0 + 1) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.cl_carousel_cont.inline.rtl[_ngcontent-%COMP%]{margin-left:calc(calc(0 + 1) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.cl_carousel_cont.inline.rtl[_ngcontent-%COMP%]{margin-left:calc(calc(0 + 1) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.cl_carousel_cont.inline.rtl[_ngcontent-%COMP%]{margin-left:calc(calc(55px * 0) + calc(60px * 1))}}.cl_h3[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;margin-top:3.75rem;display:flex;align-items:center;flex-wrap:wrap}.cl_h3[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .cl_h3[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{text-align:center;flex-basis:100%}.cl_h3[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-top:.9375rem}@media (min-width:992px){.cl_h3[_ngcontent-%COMP%]{margin-top:5rem;flex-wrap:nowrap}.cl_h3[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .cl_h3[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{flex-basis:auto;text-align:left}.cl_h3[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-left:auto;margin-top:0}}.cl_h3.notop[_ngcontent-%COMP%]{margin-top:0!important}"]}),t})();function JO(t,e){if(1&t&&(ko(0),Mo(1,"div",2),So(2,"app-video-player",3),Oo(),To()),2&t){const t=Bo();Qr(2),Co("data",t.data)}}function tS(t,e){1&t&&(Mo(0,"div",6),Mo(1,"div",7),So(2,"div",8),Oo(),Oo())}function eS(t,e){if(1&t&&(ko(0),Mo(1,"div",2),So(2,"app-carousel",4),xo(3,tS,3,0,"div",5),Oo(),To()),2&t){const t=Bo();Qr(2),Co("hideFS",!0)("data",t.data.visuels.visuels)("cssClass","_medias"),Qr(1),Co("ngIf",t.inline)}}const nS=function(t,e){return{inline:t,bib_grid:e}};let iS=(()=>{class t{constructor(){this.inline=!1,this.textalign=""}
1ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-medias"]],inputs:{data:"data",inline:"inline",textalign:"textalign"},decls:3,vars:8,consts:[[3,"ngClass"],[4,"ngIf"],[1,"medias_cont","in_scrollable"],[3,"data"],[3,"hideFS","data","cssClass"],["class","medias_cont_bg desktop_only",4,"ngIf"],[1,"medias_cont_bg","desktop_only"],[1,"bib_grid"],[1,"medias_cont_bg_fill"]],template:function(t,e){1&t&&(Mo(0,"div",0),xo(1,JO,3,1,"ng-container",1),xo(2,eS,4,4,"ng-container",1),Oo()),2&t&&(ea("medias_wrapper media_"+e.data.type+" t_a_"+e.textalign),Co("ngClass",Al(5,nS,e.inline,"video"==e.data.type)),Qr(1),Co("ngIf","video"==e.data.type),Qr(1),Co("ngIf","carrousel"==e.data.type))},directives:[Tu,zu,Eb,jC],styles:[".media_video.inline[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%], .media_video[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}.media_video.inline[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{background-color:#fff;padding-bottom:100px}@media (min-width:992px){.media_video.inline.t_a_left[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:10;padding-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));padding-right:calc(2 * ((100vw - 40px - 77px) / 12) + calc(2 * 7px))}}@media (min-width:992px) and (min-width:992px){.media_video.inline.t_a_left[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.media_video.inline.t_a_left[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.media_video.inline.t_a_left[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.media_video.inline.t_a_left[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){.media_video.inline.t_a_left[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-right:calc(calc(2 + 2) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.media_video.inline.t_a_left[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-right:calc(calc(2 + 2) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.media_video.inline.t_a_left[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-right:calc(calc(2 + 2) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.media_video.inline.t_a_left[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 2) + calc(60px * 2))}}@media (min-width:992px){.media_video.inline.t_a_right[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{grid-column-start:4;grid-column-end:13;padding-left:calc(1.75 * ((100vw - 40px - 77px) / 12) + calc(2 * 7px));padding-right:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));margin-left:calc(.25 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){.media_video.inline.t_a_right[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1.75 + 2) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.media_video.inline.t_a_right[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1.75 + 2) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.media_video.inline.t_a_right[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1.75 + 2) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.media_video.inline.t_a_right[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1.75) + calc(60px * 2))}}@media (min-width:992px) and (min-width:992px){.media_video.inline.t_a_right[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.media_video.inline.t_a_right[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.media_video.inline.t_a_right[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.media_video.inline.t_a_right[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){.media_video.inline.t_a_right[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:calc(calc(.25 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.media_video.inline.t_a_right[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:calc(calc(.25 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.media_video.inline.t_a_right[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:calc(calc(.25 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.media_video.inline.t_a_right[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:calc(calc(55px * .25) + calc(60px * 0))}}
1.media_carrousel[_ngcontent-%COMP%]{position:relative;overflow:hidden}.media_carrousel[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}@media (min-width:500px){.media_carrousel[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:40px}}@media (min-width:992px){.media_carrousel[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:20px}}@media (min-width:1024px){.media_carrousel[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:40px}}@media (min-width:1280px){.media_carrousel[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:60px}}@media (min-width:1440px){.media_carrousel[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:calc((100% - 1320px) / 2)}}@media (min-width:500px){.media_carrousel[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-right:40px}}@media (min-width:992px){.media_carrousel[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-right:20px}}@media (min-width:1024px){.media_carrousel[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-right:40px}}@media (min-width:1280px){.media_carrousel[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-right:60px}}@media (min-width:1440px){.media_carrousel[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-right:calc((100% - 1320px) / 2)}}.media_carrousel.inline[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{padding-bottom:100px}@media (min-width:992px){.media_carrousel.inline[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:calc(20px + calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px)));margin-right:calc(20px + calc(-1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px)))}}@media (min-width:992px) and (min-width:500px){.media_carrousel.inline[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:calc(40px + calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px)))}}@media (min-width:992px) and (min-width:992px){.media_carrousel.inline[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:calc(20px + calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23)))}}@media (min-width:992px) and (min-width:1024px){.media_carrousel.inline[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:calc(40px + calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23)))}}@media (min-width:992px) and (min-width:1280px){.media_carrousel.inline[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:calc(60px + calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23)))}}@media (min-width:992px) and (min-width:1440px){.media_carrousel.inline[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-left:calc(calc((100% - 1320px) / 2) + calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:500px){.media_carrousel.inline[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-right:calc(40px + calc(-1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px)))}}@media (min-width:992px) and (min-width:992px){.media_carrousel.inline[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-right:calc(20px + calc(calc(-1 + 0) * ((100vw - calc(2 * 20px)) / 23)))}}@media (min-width:992px) and (min-width:1024px){.media_carrousel.inline[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-right:calc(40px + calc(calc(-1 + 0) * ((100vw - calc(2 * 40px)) / 23)))}}@media (min-width:992px) and (min-width:1280px){.media_carrousel.inline[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-right:calc(60px + calc(calc(-1 + 0) * ((100vw - calc(2 * 60px)) / 23)))}}@media (min-width:992px) and (min-width:1440px){.media_carrousel.inline[_ngcontent-%COMP%]   .medias_cont[_ngcontent-%COMP%]{margin-right:calc(calc((100% - 1320px) / 2) + calc(55px * -1) + calc(60px * 0))}}.media_carrousel.inline[_ngcontent-%COMP%]   .medias_cont_bg[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.media_carrousel.inline[_ngcontent-%COMP%]   .medias_cont_bg[_ngcontent-%COMP%]   .bib_grid[_ngcontent-%COMP%]{height:100%}.media_carrousel.inline[_ngcontent-%COMP%]   .medias_cont_bg_fill[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:10;background-color:#fff}"]}),t})();const rS=["inpush"],sS=["fscont"];function oS(t,e){1&t&&(Mo(0,"a",18),So(1,"img",19),So(2,"img",20),Oo()),2&t&&Co("href",Bo().data.lien,Yi)}function aS(t,e){if(1&t&&(Mo(0,"a",21),So(1,"img",22),So(2,"img",23),Oo()),2&t){const t=Bo().data;Co("href",Bo().getResUrl(t),Yi)}}function lS(t,e){if(1&t){const t=Io();Mo(0,"div",24),Lo("click",function(){Ae(t);const e=Bo().data;
1return Bo().openCaroussel(e)}),So(1,"img",25),So(2,"img",26),Oo()}}function cS(t,e){if(1&t&&(Mo(0,"div",14),xo(1,oS,3,1,"a",15),xo(2,aS,3,1,"a",16),xo(3,lS,3,0,"div",17),Oo()),2&t){const t=e.data,n=Bo();Qr(1),Co("ngIf","nonres"!=t.type),Qr(1),Co("ngIf","pdf"==t.type),Qr(1),Co("ngIf",n.hasCaroussel(t))}}function uS(t,e){1&t&&So(0,"img",34),2&t&&Co("src",Bo().data.src,Yi)}function hS(t,e){1&t&&So(0,"div",40),2&t&&Co("innerHtml",Bo(2).data.titre,Ki)}function dS(t,e){if(1&t&&(So(0,"div",41),Bl(1,"safe")),2&t){const t=Bo(2).data;Co("innerHtml",Nl(1,1,Bo().getLegend(t),"html"),Ki)}}function pS(t,e){1&t&&Eo(0)}const mS=function(t){return{data:t}};function gS(t,e){if(1&t&&(Mo(0,"div",35),So(1,"app-video-player",36),xo(2,hS,1,1,"div",37),xo(3,dS,2,4,"div",38),xo(4,pS,1,0,"ng-container",39),Oo()),2&t){const t=Bo().data,e=Bo(),n=bo(1);Qr(1),Co("resourceData",t.files)("forceRatio",!0),Qr(1),Co("ngIf",""!=t.titre),Qr(1),Co("ngIf",""!=e.getLegend(t)),Qr(1),Co("ngTemplateOutlet",n)("ngTemplateOutletContext",Il(6,mS,t))}}function fS(t,e){1&t&&Eo(0)}function _S(t,e){1&t&&So(0,"div",40),2&t&&Co("innerHtml",Bo(2).data.titre,Ki)}function vS(t,e){if(1&t&&(So(0,"div",41),Bl(1,"safe")),2&t){const t=Bo(2).data;Co("innerHtml",Nl(1,1,Bo().getLegend(t),"html"),Ki)}}function yS(t,e){if(1&t&&(Mo(0,"div",42),Mo(1,"div",43),So(2,"iframe",44),Bl(3,"safe"),xo(4,fS,1,0,"ng-container",39),Oo(),xo(5,_S,1,1,"div",37),xo(6,vS,2,4,"div",38),Oo()),2&t){const t=Bo().data,e=Bo(),n=bo(1);Qr(2),Co("src",Nl(3,5,e.getResUrl(t),"resourceUrl"),Ji),Qr(2),Co("ngTemplateOutlet",n)("ngTemplateOutletContext",Il(8,mS,t)),Qr(1),Co("ngIf",""!=t.titre),Qr(1),Co("ngIf",""!=e.getLegend(t))}}function xS(t,e){1&t&&Eo(0)}function bS(t,e){if(1&t&&(Mo(0,"div",45),So(1,"img",34),xo(2,xS,1,0,"ng-container",39),Oo()),2&t){const t=Bo().data;Bo();const e=bo(1);Qr(1),Co("src",""!=t.preview_url?t.preview_url:"/assets/img/pdf_placeholder.svg",Yi),Qr(1),Co("ngTemplateOutlet",e)("ngTemplateOutletContext",Il(3,mS,t))}}function wS(t,e){1&t&&Eo(0)}function CS(t,e){if(1&t&&(Mo(0,"div",46),So(1,"img",34),Mo(2,"div",47),So(3,"span",48),Bl(4,"safe"),So(5,"span",49),Bl(6,"safe"),Oo(),xo(7,wS,1,0,"ng-container",39),Oo()),2&t){const t=Bo().data,e=Bo(),n=bo(1);Qr(1),Co("src",t.preview_url,Yi),Qr(2),Co("innerHtml",Nl(4,5,t.titre+(""!=e.getLegend(t)?" - ":""),"html"),Ki),Qr(2),Co("innerHtml",Nl(6,8,e.getLegend(t),"html"),Ki),Qr(2),Co("ngTemplateOutlet",n)("ngTemplateOutletContext",Il(11,mS,t))}}function PS(t,e){1&t&&Eo(0)}function MS(t,e){if(1&t&&(Mo(0,"div",53),So(1,"iframe",44),Bl(2,"safe"),xo(3,PS,1,0,"ng-container",39),Oo()),2&t){const t=Bo(2).data,e=Bo(),n=bo(1);Qr(1),Co("src",Nl(2,3,e.getResUrl(t),"resourceUrl"),Ji),Qr(2),Co("ngTemplateOutlet",n)("ngTemplateOutletContext",Il(6,mS,t))}}function OS(t,e){1&t&&Eo(0)}const SS=function(){return{image:!1}};function kS(t,e){if(1&t&&(Mo(0,"div",54),Mo(1,"div",55),So(2,"div",56),So(3,"app-audio-player",57),Oo(),xo(4,OS,1,0,"ng-container",39),Oo()),2&t){const t=Bo(2).data;Bo();const e=bo(1);Qr(1),Co("ngClass",El(6,SS)),Qr(1),Co("innerHtml",t.titre,Ki),Qr(1),Co("data",t.files)("inline",!0),Qr(1),Co("ngTemplateOutlet",e)("ngTemplateOutletContext",Il(7,mS,t))}}function TS(t,e){if(1&t&&(ko(0),xo(1,MS,4,8,"div",50),xo(2,kS,5,9,"div",51),So(3,"div",52),Bl(4,"safe"),To()),2&t){const t=Bo().data,e=Bo();Qr(1),Co("ngIf",t.soundcloud),Qr(1),Co("ngIf",!t.soundcloud),Qr(1),Co("innerHtml",Nl(4,3,e.getLegend(t),"html"),Ki)}}function ES(t,e){if(1&t&&(Mo(0,"div"),ko(1,27),xo(2,uS,1,1,"img",28),xo(3,gS,5,8,"div",29),xo(4,yS,7,10,"div",30),xo(5,bS,3,5,"div",31),xo(6,CS,8,13,"div",32),xo(7,TS,5,6,"ng-container",33),To(),Oo()),2&t){const t=e.data;ea("paragraphe_res paragraphe_res_"+t.type),Qr(1),Co("ngSwitch",t.type),Qr(1),Co("ngSwitchCase","nonres"),Qr(1),Co("ngSwitchCase","video"),Qr(1),Co("ngSwitchCase","html"),Qr(1),Co("ngSwitchCase","pdf"),Qr(1),Co("ngSwitchCase","image"),Qr(1),Co("ngSwitchCase","audio")}}function IS(t,e){1&t&&(So(0,"span",58),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().data.titre_h2,"html"),Ki)}const AS=function(t){return{rotate:t}};function zS(t,e){if(1&t&&So(0,"div",65),2&t){const t=Bo(2).index,e=Bo();Co("ngClass",Il(1,AS,e.accOpen[t]))}}const DS=function(t){return{cursor:t}},LS=function(t){return{title_accordeon:t}};function RS(t,e){if(1&t){const t=Io();Mo(0,"div",62),Lo("click",function(){Ae(t);const e=Bo().index;return Bo().titleClick(e)}),So(1,"div",63),Bl(2,"safe"),xo(3,zS,1,3,"div",64),Oo()}if(2&t){const t=Bo().$implicit;Co("ngClass",Il(7,DS,"1"==t.accordeon)),Qr(1),Co("ngClass",Il(9,LS,"1"==t.accordeon))("innerHtml",Nl(2,4,t.titre,"html"),Ki),Qr(2),Co("ngIf","1"==t.accordeon)}}function FS(t,e){if(1&t&&(So(0,"div",66),Bl(1,"safe")),2&t){const t=Bo(),e=t.$implicit,n=t.index,i=Bo();Co("innerHtml",Nl(1,2,e.texte,"html"),Ki)("@slideUpDown","1"==e.accordeon?i.accOpen[n]?"open":"closed":"open")}}const BS=function(t,e){return{accordeon:t,last:e}};function NS(t,e){if(1&t&&(Mo(0,"div",59),xo(1,RS,4,11,"div",60),xo(2,FS,2,5,"div",61),Oo()),2&t){const t=e.$implicit,n=e.index,i=Bo();Co("ngClass",Al(3,BS,"1"==t.accordeon,n==i.data.paragraphes.length-1)),Qr(1),Co("ngIf",t.titre),Qr(1),Co("ngIf",t.texte)}}function US(t,e){1&t&&So(0,"div"),2&t&&ea("paragraphe_res_before t_a_"+Bo().data.alignement_texte)}function HS(t,e){1&t&&Eo(0)}function jS(t,e){if(1&t&&(ko(0),xo(1,HS,1,0,"ng-container",39),To()),2&t){const t=Bo().$implicit;Bo(2);const e=bo(3);Qr(1),Co("ngTemplateOutlet",e)("ngTemplateOutletContext",Il(2,mS,t))}}function VS(t,e){if(1&t&&(ko(0),xo(1,jS,2,4,"ng-container",9),To()),2&t){const t=e.index,n=Bo(2);Qr(1),Co("ngIf",t%2==1||n.loneResource)}}const $S=function(t){return{lone:t}};function qS(t,e){if(1&t&&(Mo(0,"div",67),xo(1,VS,2,1,"ng-container",68),Oo()),2&t){const t=Bo();ea("paragraphe_resources t_a_"+t.data.alignement_texte+(t.data.push_contenus_lies?" with_push":"")),Co("ngClass",Il(4,$S,t.loneRe
1source)),Qr(1),Co("ngForOf",t.pushResources)}}const GS=function(t){return{with_push:t}};function ZS(t,e){if(1&t&&So(0,"div",67),2&t){const t=Bo();ea("paragraphe_lone_cover t_a_"+t.data.alignement_texte),Co("ngClass",Il(3,GS,t.data.push_contenus_lies))}}function WS(t,e){1&t&&Eo(0)}function XS(t,e){if(1&t&&(ko(0),xo(1,WS,1,0,"ng-container",39),To()),2&t){const t=Bo().$implicit;Bo(2);const e=bo(3);Qr(1),Co("ngTemplateOutlet",e)("ngTemplateOutletContext",Il(2,mS,t))}}function QS(t,e){if(1&t&&(ko(0),xo(1,XS,2,4,"ng-container",9),To()),2&t){const t=e.index,n=Bo(2);Qr(1),Co("ngIf",t%2==0&&!n.loneResource)}}function KS(t,e){if(1&t&&(Mo(0,"div"),xo(1,QS,2,1,"ng-container",68),Oo()),2&t){const t=Bo();ea("paragraphe_visuel t_a_"+t.data.alignement_texte),Qr(1),Co("ngForOf",t.pushResources)}}function YS(t,e){if(1&t){const t=Io();Mo(0,"app-push",71),Lo("navigateEvent",function(e){return Ae(t),Bo(3).navigate(e)}),Oo()}2&t&&Co("data",Bo(3).data.push_contenus_lies)}function JS(t,e){if(1&t&&(Mo(0,"div",null,69),xo(2,YS,1,1,"app-push",70),Oo()),2&t){const t=Bo(2);ea("paragraphe_push paragraphe_push_"+t.data.push_contenus_lies.type),Qr(2),Co("ngIf","push"==t.data.push_contenus_lies.type)}}const tk=function(t){return{nores:t}};function ek(t,e){if(1&t&&(ko(0),So(1,"div",67),xo(2,JS,3,3,"div",7),To()),2&t){const t=Bo();Qr(1),ea("paragraphe_separator t_a_"+t.data.alignement_texte+(t.data.push_contenus_lies?" with_push_"+t.data.push_contenus_lies.type:"")+(t.data.medias?" with_medias_"+t.data.medias.type:"")),Co("ngClass",Il(4,tk,t.pushResources.length<=1&&!t.loneResource)),Qr(1),Co("ngIf",t.data.push_contenus_lies)}}function nk(t,e){1&t&&Eo(0)}function ik(t,e){if(1&t&&(ko(0),xo(1,nk,1,0,"ng-container",39),To()),2&t){const t=e.$implicit;Bo(3);const n=bo(3);Qr(1),Co("ngTemplateOutlet",n)("ngTemplateOutletContext",Il(2,mS,t))}}function rk(t,e){if(1&t&&(Mo(0,"div",67),xo(1,ik,2,4,"ng-container",68),Oo()),2&t){const t=Bo(2);ea("paragraphe_visuel "+(t.data.push_contenus_lies?" with_push":"")),Co("ngClass",Il(4,$S,t.loneRe
1source)),Qr(1),Co("ngForOf",t.pushResources)}}function sk(t,e){if(1&t&&(ko(0),xo(1,rk,2,6,"div",8),To()),2&t){const t=Bo();Qr(1),Co("ngIf",t.pushResources.length>0)}}function ok(t,e){if(1&t){const t=Io();Mo(0,"div"),Mo(1,"app-contenus-lies",72),Lo("navigateEvent",function(e){return Ae(t),Bo().navigate(e)}),Oo(),Oo()}if(2&t){const t=Bo();ea("desktop_only paragraphe_outside_push paragraphe_outside_push_"+t.data.push_contenus_lies.type),Qr(1),Co("data",t.data.push_contenus_lies)("inline",!0)("rtl","right"==t.data.alignement_texte)}}function ak(t,e){if(1&t){const t=Io();Mo(0,"app-push",71),Lo("navigateEvent",function(e){return Ae(t),Bo(2).navigate(e)}),Oo()}2&t&&Co("data",Bo(2).data.push_contenus_lies)}function lk(t,e){if(1&t){const t=Io();Mo(0,"app-contenus-lies",74),Lo("navigateEvent",function(e){return Ae(t),Bo(2).navigate(e)}),Oo()}2&t&&Co("data",Bo(2).data.push_contenus_lies)("mobile_inline",!0)}function ck(t,e){if(1&t&&(Mo(0,"div"),xo(1,ak,1,1,"app-push",70),xo(2,lk,1,2,"app-contenus-lies",73),Oo()),2&t){const t=Bo();ea("mobile_only paragraphe_push paragraphe_push_"+t.data.push_contenus_lies.type),Qr(1),Co("ngIf","push"==t.data.push_contenus_lies.type),Qr(1),Co("ngIf","contenus_lies"==t.data.push_contenus_lies.type)}}function uk(t,e){if(1&t&&(Mo(0,"div",75),So(1,"app-medias",76),Oo()),2&t){const t=Bo();Qr(1),Co("data",t.data.medias)("inline",!0)("textalign",t.data.alignement_texte)}}function hk(t,e){if(1&t){const t=Io();Mo(0,"app-carousel",77),Lo("fullscreen",function(){return Ae(t),Bo().doFS()}),Oo()}if(2&t){const t=Bo();Co("fs",!0)("centered",!0)("noticeLink",t.resourceCarouselLink)("data",t.resourceCarouselData)("res",!0)("cssClass","_resource")}}const dk=function(t){return{visuel:t}},pk=function(t){return{fs:t}};let mk=(()=>{class t{constructor(t,e,n){this.platformId=t,this.deviceQueryService=e,this.cd=n,this.pushResources=[],this.loneResource=!1,this.resourceCarouselData=[],this.fullscreen=!1,this.navigateEvent=new Vl,this.accOpen=new Array}ngOnInit(){for(let t in this.data.paragraphes)this.accOpen[t]=!1;if(this.pushResources=[],this.data.ressources_integrees)for(let t of this.data.ressources_integrees)this.pushResources.push(t);null!=this.data.visuel&&this.data.visuel.url&&this.pushResources.unshift({type:"nonres",src:this.data.visuel.url}),1!=this.pushResources.length||"video"!=this.pushResources[0].type&&"html"!=this.pushResources[0].type||(this.loneResource=!0)}titleClick(t){this.accOpen[t]=!this.accOpen[t]}navigate(t){this.navigateEvent.emit(t)}getBottomPadding(){return Xu(this.platformId)?"":this.inpush?this.deviceQueryService.isMobile()?"":this.data.push_contenus_lies&&"push"==this.data.push_contenus_lies.type?"padding-bottom:"+(this.inpush.nativeElement.getBoundingClientRect().height+125)+"px":"":""}getResUrl(t){let e=Object.keys(t.files);return t.files[e[0]]["data-url"]}getLegend(t){let e=Object.keys(t.files);return t.files[e[0]].legend}hasCaroussel(t){return"image"==t.type&&Object.keys(t.files).length>1}openCaroussel(t){let e=Object.keys(t.files);this.resourceCarouselData=[],this.resourceCarouselLink=t.lien;for(let n of e){let e=t.files[n].legend;""!=e&&(e+=" - "),e+="ID "+t.files[n].filename,this.resourceCarouselData.push({titre:"",legende:e,couleur_texte:"white",url:t.files[n].url_player_fullscreen,url_fs:t.files[n].url_player_fullscreen,visuel:{url:t.files[n].url_player_fullscreen},visuel_mobile:{url:t.files[n].url_player_fullscreen}})}this.doFS()}isFS(){return this.fullscreen}doFS(){this.fullscreen=!this.fullscreen,this.cd.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(Pb),wo(nl))},t.\u0275cmp=Ut({type:t,selectors:[["app-paragraphe"]],viewQuery:function(t,e){if(1&t&&(nc(rS,1),nc(sS,1)),2&t){let t;ec(t=ic())&&(e.inpush=t.first),ec(t=ic())&&(e.fscont=t.first)}},inputs:{data:"data"},outputs:{navigateEvent:"navigateEvent"},decls:23,vars:24,consts:[["resourcebuttons",""],["resourceplayer",""],[1,"paragraphe_wrapper"],[2,"position","relative"],[1,"paragraphe_cont","bib_grid","in_scrollable",3,"ngClass"],[3,"innerHtml",4,"ngIf"],["class","paragraphe_element",3,"ngClass",4,"ngFor","ngForOf"],[3,"class",4,"ngIf"],[3,"class","ngClass",4,"ngIf"],[4,"ngIf"],["class","paragraphe_medias",4,"ngIf"],[1,"paragraphe_fs_cont",3,"ngClass"],["fscont",""],[3,"fs","centered","noticeLink","data","res","cssClass","fullscreen",4,"ngIf"],[1,"paragraphe_res_buttons"],["class","paragraphe_res_bt paragraphe_res_notice",3,"href",4,"ngIf"],["class","paragraphe_res_bt paragraphe_res_view","target","_blank",3,"href",4,"ngIf"],["class","paragraphe_res_bt paragraphe_res_caroussel desktop_only",3,"click",4,"ngIf"],[1,"paragraphe_res_bt","paragraphe_res_notice",3,"href"],["src","/assets/img/bt_notice.svg"],["src","/assets/img/bt_notice_hover.svg",1,"hover"],["target","_blank",1,"paragraphe_res_bt","paragraphe_res_view",3,"href"],["src","/assets/img/bt_eye.svg"],["src","/assets/img/bt_eye_hover.svg",1,"hover"],[1,"paragraphe_res_bt","paragraphe_res_caroussel","desktop_only",3,"click"],["src","/assets/img/bt_carrousel.svg"],["src","/assets/img/bt_carrousel_hover.svg",1,"hover"],[3,"ngSwitch"],[3,"src",4,"ngSwitchCase"],["class","paragraphe_res_video_wrap",4,"ngSwitchCase"],["class","paragraphe_res_iframe_cont",4,"ngSwitchCase"],["class","paragraphe_res_pdf_wrap",4,"ngSwitchCase"],["class","paragraphe_res_image_wrap",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"src"],[1,"paragraphe_res_video_wrap"],[3,"resourceData","forceRatio"],["class","paragraphe_res_title bib_title4 ignore_p_margin",3,"innerHtml",4,"ngIf"],["class","paragraphe_res_legende bib_res_legende ignore_p_margin",3,"innerHtml",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"paragraphe_res_title","bib_title4","ignore_p_margin",3,"innerHtml"],[1,"paragraphe_res_legende","bib_res_legende","ignore_p_margin",3,"innerHtml"],[1,"paragraphe_res_iframe_cont"],[1,"paragraphe_res_iframe_wrap"],[1,"iframe_res",3,"src"],[1,"paragraphe_res_pdf_wrap"],[1,"paragraphe_res_image_wrap"],[1,"paragraphe_res_image_legende","ignore_p_margin"],[1,"bib_mentions","ignore_p_linebreak",3,"innerHtml"],[1,"bib_res_legende","ignore_p_linebreak",3,"innerHtml"],["class","paragraphe_res_iframe_wrap audio",4,"ngIf"],["class","paragraphe_res_audio_wrap",4,"ngIf"],[1,"bib_res_legende","ignore_p_margin",3,"innerHtml"],[1,"paragraphe_res_iframe_wrap","audio"],[1,"paragraphe_res_audio_wrap"],[1,"paragraphe_res_audio_cont",3,"ngClass"],[1,"bib_title4","ignore_p_margin",3,"innerHtml"],[3,"data","inline"],[3,"innerHtml"],[1,"paragraphe_element",3,"ngClass"],["class","paragraphe_element_title",3,"ngClass","click",4,"ngIf"],["class","paragraphe_element_text ignore_first_p_margin",3,"innerHtml",4,"ngIf"],[1,"paragraphe_element_title",3,"ngClass","click"],[1,"flex-child","bib_title3","ignore_p_margin",3,"ngClass","innerHtml"],["class","flex-child component_arrow details_arrow",3,"ngClass",4,"ngIf"],[1,"flex-child","component_arrow","details_arrow",3,"ngClass"],[1,"paragraphe_element_text","ignore_first_p_margin",3,"innerHtml"],[3,"ngClass"],[4,"ngFor","ngForOf"],["inpush",""],[3,"data","navigateEvent",4,"ngIf"],[3,"data","navigateEvent"],[3,"data","inline","rtl","navigateEvent"],[3,"data","mobile_inline","navigateEvent",4,"ngIf"],[3,"data","mobile_inline","navigateEvent"],[1,"paragraphe_medias"],[3,"data","inline","textalign"],[3,"fs","centered","noticeLink","data","res","cssClass","fullscreen"]],template:function(t,e){1&t&&(xo(0,cS,4,3,"ng-template",null,0,ac),xo(2,ES,8,9,"ng-template",null,1,ac),Mo(4,"div",2),Mo(5,"div",3),Mo(6,"div",4),Mo(7,"div"),xo(8,IS,2,4,"span",5),Oo(),Mo(9,"div"),xo(10,NS,3,6,"div",6),Oo(),xo(11,US,1,2,"div",7),xo(12,qS,2,6,"div",8),xo(13,ZS,1,5,"div",8),xo(14,KS,2,3,"div",7),xo(15,ek,3,6,"ng-container",9),Oo(),xo(16,sk,2,1,"ng-container",9),xo(17,ok,2,5,"div",7),Oo(),xo(18,ck,3,4,"div",7),xo(19,uk,2,3,"div",10),Oo(),Mo(20,"div",11,12),xo(22,hk,1,6,"app-carousel",13),Oo()),2&t&&(Qr(6),Co("ngClass",Il(20,dk,null==e.data.visuel?null:e.data.visuel.url)),Qr(1),ea("paragraphe_title ignore_p_margin bib_title2 t_a_"+e.data.alignement_texte),Qr(1),Co("ngIf",e.data.titre_h2),Qr(1),Jo(e.getBottomPadding()),ea("paragraphe_elements t_a_"+e.data.alignement_texte),Qr(1),Co("ngForOf",e.data.paragraphes),Qr(1),Co("ngIf",e.pushResources.length>1||e.loneResource),Qr(1),Co("ngIf",!e.deviceQueryService.isMobile()&&(e.pushResources.length>1||e.loneResource)),Qr(1),Co("ngIf",e.loneResource),Qr(1),Co("ngIf",!e.deviceQueryService.isMobile()),Qr(1),Co("ngIf",!e.deviceQueryService.isMobile()),Qr(1),Co("ngIf",e.deviceQueryService.isMobile()),Qr(1),Co("ngIf",e.data.push_contenus_lies&&"contenus_lies"==e.data.push_contenus_lies.type),Qr(1),Co("ngIf",e.data.push_contenus_lies),Qr(1),Co("ngIf",e.data.medias),Qr(1),Co("ngClass",Il(22,pk,e.isFS())),Qr(2),Co("ngIf",e.isFS()))},directives:[Tu,zu,Iu,Fu,Bu,Eb,Hu,qC,jO,YO,iS,jC],pipes:[Sb],styles:[".paragraphe_wrapper[_ngcontent-%COMP%]{width:100%;position:relative;background-color:#fff;overflow-x:hidden;-ms-overflow-style:none;scrollbar-width:none}@media (min-width:992px){.paragraphe_wrapper[_ngcontent-%COMP%]{background-color:initial}}
1.paragraphe_wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.paragraphe_cont[_ngcontent-%COMP%]{position:relative;padding-top:5rem}@media (min-width:992px){.paragraphe_cont[_ngcontent-%COMP%]{padding:0}}.paragraphe_cont.visuel[_ngcontent-%COMP%]{padding-bottom:0}.paragraphe_title[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;background:#fff;padding-bottom:2.5rem}@media (min-width:992px){.paragraphe_title[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:10;grid-row-start:1;grid-row-end:2;padding:6.25rem 0 3.125rem calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){.paragraphe_title[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.paragraphe_title[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.paragraphe_title[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.paragraphe_title[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.paragraphe_title.t_a_right[_ngcontent-%COMP%]{grid-column-start:4;grid-column-end:13;padding-left:calc(2 * ((100vw - 40px - 77px) / 12) + calc(2 * 7px));padding-right:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){.paragraphe_title.t_a_right[_ngcontent-%COMP%]{padding-left:calc(calc(2 + 2) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.paragraphe_title.t_a_right[_ngcontent-%COMP%]{padding-left:calc(calc(2 + 2) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.paragraphe_title.t_a_right[_ngcontent-%COMP%]{padding-left:calc(calc(2 + 2) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.paragraphe_title.t_a_right[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 2) + calc(60px * 2))}}@media (min-width:992px) and (min-width:992px){.paragraphe_title.t_a_right[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.paragraphe_title.t_a_right[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.paragraphe_title.t_a_right[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.paragraphe_title.t_a_right[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}.paragraphe_elements[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;background:#fff}@media (min-width:992px){.paragraphe_elements[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:10;grid-row-start:2;grid-row-end:3;padding-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));padding-right:0;padding-bottom:2.25rem}}@media (min-width:992px) and (min-width:992px){.paragraphe_elements[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.paragraphe_elements[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.paragraphe_elements[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.paragraphe_elements[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}.paragraphe_res_before[_ngcontent-%COMP%]{display:none}@media (min-width:992px){.paragraphe_res_before[_ngcontent-%COMP%]{display:block;grid-row-start:3;grid-row-end:4;height:140px;grid-column-start:1;grid-column-end:10;background-color:#fff}}.paragraphe_res_before.t_a_right[_ngcontent-%COMP%]{grid-column-start:4;grid-column-end:13}.paragraphe_resources[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;background-color:#fff}@media (min-width:992px){.paragraphe_resources[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:10;grid-row-start:3;grid-row-end:5;padding-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));padding-right:0;padding-bottom:2.25rem}}@media (min-width:992px) and (min-width:992px){.paragraphe_resources[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.paragraphe_resources[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.paragraphe_resources[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.paragraphe_resources[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.paragraphe_resources[_ngcontent-%COMP%]   .paragraphe_res_image_wrap[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .paragraphe_resources[_ngcontent-%COMP%]   .paragraphe_res_pdf_wrap[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:750px}.paragraphe_resources[_ngcontent-%COMP%]   .paragraphe_res[_ngcontent-%COMP%]{width:calc(6 * ((100vw - 40px - 77px) / 12) + calc(6 * 7px));max-width:100%}}@media (min-width:992px) and (min-width:992px){.paragraphe_resources[_ngcontent-%COMP%]   .paragraphe_res[_ngcontent-%COMP%]{width:calc(calc(6 + 6) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.paragraphe_resources[_ngcontent-%COMP%]   .paragraphe_res[_ngcontent-%COMP%]{width:calc(calc(6 + 6) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.paragraphe_resources[_ngcontent-%COMP%]   .paragraphe_res[_ngcontent-%COMP%]{width:calc(calc(6 + 6) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.paragraphe_resources[_ngcontent-%COMP%]   .paragraphe_res[_ngcontent-%COMP%]{width:calc(calc(55px * 6) + calc(60px * 6))}}@media (min-width:992px){.paragraphe_resources.lone[_ngcontent-%COMP%]{grid-column-end:13;background-color:initial}.paragraphe_resources.lone[_ngcontent-%COMP%]   .paragraphe_res[_ngcontent-%COMP%]{width:100%}.paragraphe_resources[_ngcontent-%COMP%]:not(.with_push){background-color:initial}.paragraphe_resources.t_a_right[_ngcontent-%COMP%]{grid-column-start:4;grid-column-end:13;padding-left:calc(2 * ((100vw - 40px - 77px) / 12) + calc(2 * 7px));padding-right:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){.paragraphe_resources.t_a_right[_ngcontent-%COMP%]{padding-left:calc(calc(2 + 2) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.paragraphe_resources.t_a_right[_ngcontent-%COMP%]{padding-left:calc(calc(2 + 2) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.paragraphe_resources.t_a_right[_ngcontent-%COMP%]{padding-left:calc(calc(2 + 2) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.paragraphe_resources.t_a_right[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 2) + calc(60px * 2))}}@media (min-width:992px) and (min-width:992px){.paragraphe_resources.t_a_right[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.paragraphe_resources.t_a_right[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.paragraphe_resources.t_a_right[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.paragraphe_resources.t_a_right[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.paragraphe_resources.t_a_right.lone[_ngcontent-%COMP%]{grid-column-start:1;padding-left:0}}.paragraphe_lone_cover[_ngcontent-%COMP%]{display:none}@media (min-width:992px){.paragraphe_lone_cover[_ngcontent-%COMP%]{display:block;background-color:#fff;grid-column-start:1;grid-column-end:10;grid-row-start:3;grid-row-end:5}.paragraphe_lone_cover[_ngcontent-%COMP%]:not(.with_push){background-color:initial}.paragraphe_lone_cover.t_a_right[_ngcontent-%COMP%]{grid-column-start:4;grid-column-end:13}}.paragraphe_res[_ngcontent-%COMP%]{margin-top:61px;width:100%;max-width:100%}.paragraphe_res[_ngcontent-%COMP%]:first-child{margin-top:0}
1.paragraphe_separator[_ngcontent-%COMP%]{display:none}@media (min-width:992px){.paragraphe_separator[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:10;background:#fff}.paragraphe_separator.t_a_right[_ngcontent-%COMP%]{grid-column-start:4;grid-column-end:13}.paragraphe_separator.with_push_push[_ngcontent-%COMP%]{display:block;grid-row-start:6;grid-row-end:7;padding-bottom:645px}.paragraphe_separator.with_push_contenus_lies[_ngcontent-%COMP%]{display:block;grid-row-start:6;grid-row-end:7;padding-bottom:780px}}.paragraphe_separator.nores[_ngcontent-%COMP%]{grid-row-start:3;grid-row-end:4}.paragraphe_visuel.with_push[_ngcontent-%COMP%]{margin-bottom:3.75rem}@media (min-width:992px){.paragraphe_visuel.with_push[_ngcontent-%COMP%]{margin-bottom:0}}.paragraphe_element[_ngcontent-%COMP%]{margin-bottom:2.5rem}@media (min-width:992px){.paragraphe_element[_ngcontent-%COMP%]{width:calc(6 * ((100vw - 40px - 77px) / 12) + calc(6 * 7px));margin-bottom:3.12rem}}@media (min-width:992px) and (min-width:992px){.paragraphe_element[_ngcontent-%COMP%]{width:calc(calc(6 + 6) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.paragraphe_element[_ngcontent-%COMP%]{width:calc(calc(6 + 6) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.paragraphe_element[_ngcontent-%COMP%]{width:calc(calc(6 + 6) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.paragraphe_element[_ngcontent-%COMP%]{width:calc(calc(55px * 6) + calc(60px * 6))}}.paragraphe_element.accordeon[_ngcontent-%COMP%]{margin-bottom:0}.paragraphe_element.accordeon[_ngcontent-%COMP%]   .paragraphe_element_title[_ngcontent-%COMP%]{padding-top:.9375rem}@media (min-width:992px){.paragraphe_element.accordeon[_ngcontent-%COMP%]   .paragraphe_element_title[_ngcontent-%COMP%]{padding-top:1.25rem}}.paragraphe_element.last[_ngcontent-%COMP%]{margin-bottom:0}@media (min-width:992px){.paragraphe_elements.t_a_right[_ngcontent-%COMP%]{grid-column-start:4;grid-column-end:13;padding-left:calc(2 * ((100vw - 40px - 77px) / 12) + calc(2 * 7px));padding-right:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){.paragraphe_elements.t_a_right[_ngcontent-%COMP%]{padding-left:calc(calc(2 + 2) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.paragraphe_elements.t_a_right[_ngcontent-%COMP%]{padding-left:calc(calc(2 + 2) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.paragraphe_elements.t_a_right[_ngcontent-%COMP%]{padding-left:calc(calc(2 + 2) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.paragraphe_elements.t_a_right[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 2) + calc(60px * 2))}}@media (min-width:992px) and (min-width:992px){.paragraphe_elements.t_a_right[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.paragraphe_elements.t_a_right[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.paragraphe_elements.t_a_right[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.paragraphe_elements.t_a_right[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.paragraphe_elements.t_a_right[_ngcontent-%COMP%]   .paragraphe_element[_ngcontent-%COMP%]{width:100%}}.paragraphe_element_title[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:.9375rem}.paragraphe_element_title[_ngcontent-%COMP%]   .flex-child[_ngcontent-%COMP%]{flex:0 1 auto}.paragraphe_element_title[_ngcontent-%COMP%]   .title_accordeon[_ngcontent-%COMP%]{flex-basis:90%}@media (min-width:992px){.paragraphe_element_title[_ngcontent-%COMP%]{margin-bottom:1.25rem}}.paragraphe_element.accordeon[_ngcontent-%COMP%]:first-child   .paragraphe_element_title[_ngcontent-%COMP%]{border-top:none}.paragraphe_element.accordeon[_ngcontent-%COMP%] ~ .paragraphe_element.accordeon[_ngcontent-%COMP%]   .paragraphe_element_title[_ngcontent-%COMP%]{border-top:1px solid #aaa}.paragraphe_element_text[_ngcontent-%COMP%]{overflow:hidden}.paragraphe_visuel[_ngcontent-%COMP%]{width:100%;margin:2.25rem 0 3.25rem}@media (min-width:992px){.paragraphe_visuel[_ngcontent-%COMP%]{position:relative;grid-column-start:8;grid-column-end:13;grid-row-start:2;grid-row-end:5;padding-bottom:4rem;margin:0}}.paragraphe_visuel[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;display:block}.paragraphe_visuel[_ngcontent-%COMP%]   .paragraphe_res[_ngcontent-%COMP%]{margin:40px 20px 0;width:calc(100% - calc(2 * 20px))}@media (min-width:500px){.paragraphe_visuel[_ngcontent-%COMP%]   .paragraphe_res[_ngcontent-%COMP%]{margin:40px 40px 0;width:calc(100% - calc(2 * 40px))}}@media (min-width:992px){.paragraphe_visuel[_ngcontent-%COMP%]   .paragraphe_res[_ngcontent-%COMP%]{width:100%;margin:60px 0 0}}.paragraphe_visuel[_ngcontent-%COMP%]   .paragraphe_res[_ngcontent-%COMP%]:first-child{margin-top:0}.paragraphe_visuel.lone[_ngcontent-%COMP%]   .paragraphe_res[_ngcontent-%COMP%]{width:100%;max-width:100%;margin:0}.paragraphe_visuel.lone[_ngcontent-%COMP%]   .paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_legende[_ngcontent-%COMP%]{margin:5px 20px 0}@media (min-width:500px){.paragraphe_visuel.lone[_ngcontent-%COMP%]   .paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_legende[_ngcontent-%COMP%]{margin:5px 40px 0}}@media (min-width:992px){.paragraphe_visuel.lone[_ngcontent-%COMP%]   .paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_legende[_ngcontent-%COMP%]{margin:0}}.details_arrow[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.details_arrow.rotate[_ngcontent-%COMP%]{transform:rotate(-180deg);-ms-transform:rotate(-180deg);-webkit-transform:rotate(-180deg)}@media (min-width:992px){.paragraphe_visuel.t_a_right[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:6}}.paragraphe_push[_ngcontent-%COMP%]{width:100%}@media (min-width:992px){.paragraphe_push[_ngcontent-%COMP%]{position:absolute;bottom:100px;left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){.paragraphe_push[_ngcontent-%COMP%]{left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.paragraphe_push[_ngcontent-%COMP%]{left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.paragraphe_push[_ngcontent-%COMP%]{left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.paragraphe_push[_ngcontent-%COMP%]{left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){.paragraphe_push[_ngcontent-%COMP%]{width:calc(100vw - 20px - ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.paragraphe_push[_ngcontent-%COMP%]{width:calc(100vw - 40px - ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.paragraphe_push[_ngcontent-%COMP%]{width:calc(100vw - 60px - ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.paragraphe_push[_ngcontent-%COMP%]{width:100%}}@media (min-width:992px){.paragraphe_outside_push[_ngcontent-%COMP%]{position:absolute;bottom:65px;left:0;width:100%;height:672px}}.paragraphe_res[_ngcontent-%COMP%]{position:relative}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_buttons[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px;display:flex;align-items:center}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_buttons[_ngcontent-%COMP%]   .paragraphe_res_bt[_ngcontent-%COMP%]{width:50px;height:50px;margin-right:10px}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_buttons[_ngcontent-%COMP%]   .paragraphe_res_bt[_ngcontent-%COMP%]:last-child{margin-right:0}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_buttons[_ngcontent-%COMP%]   .paragraphe_res_bt[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_buttons[_ngcontent-%COMP%]   .paragraphe_res_bt[_ngcontent-%COMP%]   img.hover[_ngcontent-%COMP%]{display:none}@media (min-width:992px){.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_buttons[_ngcontent-%COMP%]   .paragraphe_res_bt[_ngcontent-%COMP%]:hover   img.hover[_ngcontent-%COMP%]{display:block}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_buttons[_ngcontent-%COMP%]   .paragraphe_res_bt[_ngcontent-%COMP%]:hover   img[_ngcontent-%COMP%]:not(.hover){display:none}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_audio_wrap[_ngcontent-%COMP%]   .paragraphe_res_buttons[_ngcontent-%COMP%]{top:18px;right:18px}}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_audio_cont[_ngcontent-%COMP%]{box-sizing:border-box;color:#fff;background-color:#2e2e2e;display:flex;flex-direction:column;justify-content:space-between}@media (min-width:992px){.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_audio_cont[_ngcontent-%COMP%]{padding-bottom:10px}}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_audio_cont[_ngcontent-%COMP%]   .bib_title4[_ngcontent-%COMP%]{padding:10px 54px 0 10px}@media (min-width:992px){.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_audio_cont[_ngcontent-%COMP%]   .bib_title4[_ngcontent-%COMP%]{font-size:1.1875rem;padding:30px 90px 10px 30px}}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_iframe_wrap[_ngcontent-%COMP%]{position:relative;width:100%;padding-top:56.25%}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_iframe_wrap.audio[_ngcontent-%COMP%]{padding-top:100%}@media (min-width:992px){.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_iframe_wrap.audio[_ngcontent-%COMP%]{padding-top:0}}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_iframe_wrap[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%}@media (min-width:992px){.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_iframe_wrap[_ngcontent-%COMP%]{width:100%;padding-top:0;aspect-ratio:16/9}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_iframe_wrap[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%]{position:relative}}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_iframe_wrap[_ngcontent-%COMP%]   .iframe_res[_ngcontent-%COMP%]{width:100%;height:100%}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_image_wrap[_ngcontent-%COMP%], .paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_pdf_wrap[_ngcontent-%COMP%]{display:inline-block;position:relative}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_image_wrap[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_pdf_wrap[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_title[_ngcontent-%COMP%]{width:100%;background-color:#2e2e2e;padding:10px 20px;box-sizing:border-box;color:#fff}@media (min-width:992px){.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_title[_ngcontent-%COMP%]{padding:30px}}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_legende[_ngcontent-%COMP%]{width:100%;text-transform:none!important;margin-top:5px}.paragraphe_res[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%]{display:block;border:none}.paragraphe_res[_ngcontent-%COMP%]   .paragraphe_res_caroussel[_ngcontent-%COMP%]{cursor:pointer}.paragraphe_res_image_legende[_ngcontent-%COMP%]{margin-top:5px}@media (min-width:992px){.paragraphe_res_image_legende[_ngcontent-%COMP%]{margin-top:8px}}.paragraphe_fs_cont[_ngcontent-%COMP%]{background-color:#2e2e2e;display:flex;align-items:center}.paragraphe_fs_cont.fs[_ngcontent-%COMP%]{position:fixed;top:0;left:0;height:100vh;width:100vw;z-index:1000}"],data:{animation:[Qb]}}),t})();function gk(t,e){1&t&&(So(0,"div",6),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().data.titre_h2,"html"),Ki)}function fk(t,e){if(1&t&&(ko(0),Mo(1,"div"),Mo(2,"div",7),So(3,"div",8),Bl(4,"safe"),So(5,"div",9),Bl(6,"safe"),Oo(),Oo(),To()),2&t){const t=Bo();Qr(1),ea("b_a_"+t.data.position_bloc),Qr(2),Co("innerHtml",Nl(4,4,t.data.titre_h2,"html"),Ki),Qr(2),Co("innerHtml",Nl(6,7,t.data.texte,"html"),Ki)}}function _k(t,e){1&t&&(So(0,"div",16),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().$implicit.titre,"html"),Ki)}function vk(t,e){1&t&&(So(0,"div",17),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().$implicit.texte,"html"),Ki)}function yk(t,e){if(1&t&&(Mo(0,"div",13),xo(1,_k,2,4,"div",14),xo(2,vk,2,4,"div",15),Oo()),2&t){const t=e.$implicit;Qr(1),Co("ngIf",t.titre),Qr(1),Co("ngIf",t.texte)}}function xk(t,e){1&t&&(So(0,"div",16),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().$implicit.titre,"html"),Ki)}function bk(t,e){1&t&&(So(0,"div",17),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().$implicit.texte,"html"),Ki)}function wk(t,e){if(1&t&&(Mo(0,"div",13),xo(1,xk,2,4,"div",14),xo(2,bk,2,4,"div",15),Oo()),2&t){const t=e.$implicit;Qr(1),Co("ngIf",t.titre),Qr(1),Co("ngIf",t.texte)}}function Ck(t,e){if(1&t&&(ko(0),Mo(1,"div",10),xo(2,yk,3,2,"div",11),Oo(),Mo(3,"div",12),xo(4,wk,3,2,"div",11),Oo(),To()),2&t){const t=Bo();Qr(2),Co("ngForOf",t.data.paragraphes_gauche),Qr(2),Co("ngForOf",t.data.paragraphes_droite)}}const Pk=function(t){return{monobloc:t}},Mk=function(t){return{"background-image":t}};let Ok=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-fullscreen"]],inputs:{data:"data"},decls:7,vars:9,consts:[[1,"fullscreen_wrapper",3,"ngClass"],[1,"fullscreen_visuel"],[1,"fullscreen_img",3,"ngStyle"],[1,"bib_grid","fullscreen_grid"],["class","fullscreen_title multi_title bib_title2 ignore_p_margin",3,"innerHtml",4,"ngIf"],[4,"ngIf"],[1,"fullscreen_title","multi_title","bib_title2","ignore_p_margin",3,"innerHtml"],[1,"fullscreen_bloc","blur","in_scrollable"],[1,"fullscreen_title","bib_title2","ignore_p_margin",3,"innerHtml"],[1,"fullscreen_txt","ignore_first_p_margin",3,"innerHtml"],[1,"b_a_left"],["class","fullscreen_bloc multibloc blur in_scrollable",4,"ngFor","ngForOf"],[1,"b_a_right"],[1,"fullscreen_bloc","multibloc","blur","in_scrollable"],["class","bib_title4 ignore_first_p_margin",3,"innerHtml",4,"ngIf"],[3,"innerHtml",4,"ngIf"],[1,"bib_title4","ignore_first_p_margin",3,"innerHtml"],[3,"innerHtml"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),So(2,"div",2),Oo(),Mo(3,"div",3),xo(4,gk,2,4,"div",4),xo(5,fk,7,10,"ng-container",5),xo(6,Ck,5,2,"ng-container",5),Oo(),Oo()),2&t&&(Co("ngClass",Il(5,Pk,"1"==e.data.mono_bloc)),Qr(2),Co("ngStyle",Il(7,Mk,e.data.visuel&&e.data.visuel.url?"url("+e.data.visuel.url+")":"none")),Qr(2),Co("ngIf","0"==e.data.mono_bloc),Qr(1),Co("ngIf","1"==e.data.mono_bloc),Qr(1),Co("ngIf","0"==e.data.mono_bloc))},directives:[Tu,Uu,zu,Iu],pipes:[Sb],styles:[".fullscreen_wrapper[_ngcontent-%COMP%]{position:relative;width:100%;min-height:100vh;box-sizing:border-box;padding:80px 0}@media (min-width:992px){.fullscreen_wrapper[_ngcontent-%COMP%]{padding:100px 0}}.fullscreen_wrapper.monobloc[_ngcontent-%COMP%]{display:flex;align-items:center}.fullscreen_visuel[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.fullscreen_img[_ngcontent-%COMP%]{width:100%;height:100vh;position:sticky;position:-webkit-sticky;top:0;background-color:#ccc;background-size:cover;background-position:50%}.fullscreen_title[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;text-align:center;color:#fff;z-index:10}@media (min-width:992px){.fullscreen_title[_ngcontent-%COMP%]{grid-column-start:4;grid-column-end:10}}.fullscreen_title.multi_title[_ngcontent-%COMP%]{margin-bottom:2.5rem}.fullscreen_bloc[_ngcontent-%COMP%]{margin-bottom:3.75rem;padding:5rem calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px)) 4rem;color:#fff;z-index:10}@media (min-width:992px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-left:calc(calc(
155px * 1) + calc(60px * 0))}}@media (min-width:992px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.fullscreen_bloc[_ngcontent-%COMP%]{padding:6.25rem calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px)) 3.4rem}}@media (min-width:992px) and (min-width:992px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.fullscreen_bloc[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}.fullscreen_txt[_ngcontent-%COMP%]{margin-top:1.875rem}@media (min-width:992px){.fullscreen_txt[_ngcontent-%COMP%]{margin-top:3.125rem}}.fullscreen_bloc.multibloc[_ngcontent-%COMP%]{margin-bottom:2.5rem;padding:2.5rem calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px)) 1.25rem}@media (min-width:992px){.fullscreen_bloc.multibloc[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.fullscreen_bloc.multibloc[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.fullscreen_bloc.multibloc[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.fullscreen_bloc.multibloc[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.fullscreen_bloc.multibloc[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.fullscreen_bloc.multibloc[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.fullscreen_bloc.multibloc[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.fullscreen_bloc.multibloc[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.fullscreen_bloc.multibloc[_ngcontent-%COMP%]{margin-bottom:3.75rem;padding-top:3.75rem;padding-bottom:2.75rem}}.fullscreen_bloc.multibloc[_ngcontent-%COMP%]   .bib_title4[_ngcontent-%COMP%]{text-align:center}.b_a_left[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;z-index:10}@media (min-width:992px){.b_a_left[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7;padding:0}}.b_a_right[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;z-index:10}@media (min-width:992px){.b_a_right[_ngcontent-%COMP%]{grid-column-start:7;grid-column-end:13;padding:0}}"]}),t})();function Sk(t,e){1&t&&(So(0,"div",10),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().data.titre_h2_gauche,"html"),Ki)}function kk(t,e){1&t&&(So(0,"div",11),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().data.titre_h2_droite,"html"),Ki)}const Tk=function(t){return{title_accordeon:t}};function Ek(t,e){if(1&t&&(So(0,"div",17),Bl(1,"safe")),2&t){const t=Bo().$implicit;Co("ngClass",Il(5,Tk,"1"==t.accordeon))("innerHtml",Nl(1,2,t.titre,"html"),Ki)}}const Ik=function(t){return{rotate:t}};function Ak(t,e){if(1&t&&So(0,"div",18),2&t){const t=Bo().index,e=Bo();Co("ngClass",Il(1,Ik,e.accOpen[0][t]))}}function zk(t,e){if(1&t&&(So(0,"div",19),Bl(1,"safe")),2&t){const t=Bo(),e=t.$implicit,n=t.index,i=Bo();Co("innerHtml",Nl(1,2,e.texte,"html"),Ki)("@slideUpDown","1"==e.accordeon?i.accOpen[0][n]?"open":"closed":"open")}}const Dk=function(t,e){return{accordeon:t,last:e}},Lk=function(t){return{cursor:t}};function Rk(t,e){if(1&t){const t=Io();Mo(0,"div",12),Mo(1,"div",13),Lo("click",function(){Ae(t);const n=e.index;return Bo().titleClick(0,n)}),xo(2,Ek,2,7,"div",14),xo(3,Ak,1,3,"div",15),Oo(),xo(4,zk,2,5,"div",16),Oo()}if(2&t){const t=e.$implicit,n=e.index,i=Bo();Co("ngClass",Al(5,Dk,"1"==t.accordeon,n==i.data.paragraphes_gauche.length-1)),Qr(1),Co("ngClass",Il(8,Lk,"1"==t.accordeon)),Qr(1),Co("ngIf",t.titre),Qr(1),Co("ngIf","1"==t.accordeon),Qr(1),Co("ngIf",t.texte)}}function Fk(t,e){1&t&&(So(0,"div",20),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().data.titre_h2_droite,"html"),Ki)}function Bk(t,e){if(1&t&&(So(0,"div",17),Bl(1,"safe")),2&t){const t=Bo().$implicit;Co("ngClass",Il(5,Tk,"1"==t.accordeon))("innerHtml",Nl(1,2,t.titre,"html"),Ki)}}function Nk(t,e){if(1&t&&So(0,"div",18),2&t){const t=Bo().index,e=Bo();Co("ngClass",Il(1,Ik,e.accOpen[1][t]))}}function Uk(t,e){if(1&t&&(So(0,"div",19),Bl(1,"safe")),2&t){const t=Bo(),e=t.$implicit,n=t.index,i=Bo();Co("innerHtml",Nl(1,2,e.texte,"html"),Ki)("@slideUpDown","1"==e.accordeon?i.accOpen[1][n]?"open":"closed":"open")}}function Hk(t,e){if(1&t){const t=Io();Mo(0,"div",12),Mo(1,"div",13),Lo("click",function(){Ae(t);const n=e.index;return Bo().titleClick(1,n)}),xo(2,Bk,2,7,"div",14),xo(3,Nk,1,3,"div",15),Oo(),xo(4,Uk,2,5,"div",16),Oo()}if(2&t){const t=e.$implicit,n=e.index,i=Bo();Co("ngClass",Al(5,Dk,"1"==t.accordeon,n==i.data.paragraphes_droite.length-1)),Qr(1),Co("ngClass",Il(8,Lk,"1"==t.accordeon)),Qr(1),Co("ngIf",t.titre),Qr(1),Co("ngIf","1"==t.accordeon),Qr(1),Co("ngIf",t.texte)}}let jk=(()=>{class t{constructor(){this.accOpen=new Array}ngOnInit(){this.accOpen=[[],[]];for(let t in this.data.paragraphes_gauche)this.accOpen[0][t]=!1;for(let t in this.data.paragraphes_droite)this.accOpen[1][t]=!1}titleClick(t,e){this.accOpen[t][e]=!this.accOpen[t][e]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-texte-fond"]],inputs:{data:"data"},decls:11,vars:5,consts:[[1,"texte_fond_wrapper"],[1,"texte_fond_visuel"],[1,"texte_fond_img"],[1,"bib_grid","texte_fond_grid"],["class","texte_fond_title_left bib_title2 ignore_p_margin",3,"innerHtml",4,"ngIf"],["class","texte_fond_title_right bib_title2 desktop_only ignore_p_margin",3,"innerHtml",4,"ngIf"],[1,"b_a_left"],["class","texte_fond_bloc",3,"ngClass",4,"ngFor","ngForOf"],["class","texte_fond_title_right bib_title2 mobile_only ignore_p_margin",3,"innerHtml",4,"ngIf"],[1,"b_a_right"],[1,"texte_fond_title_left","bib_title2","ignore_p_margin",3,"innerHtml"],[1,"texte_fond_title_right","bib_title2","desktop_only","ignore_p_margin",3,"innerHtml"],[1,"texte_fond_bloc",3,"ngClass"],[1,"texte_fond_bloc_title",3,"ngClass","click"],["class","flex-child bib_title4 ignore_p_margin",3,"ngClass","innerHtml",4,"ngIf"],["class","flex-child component_arrow_invert details_arrow",3,"ngClass",4,"ngIf"],["class","texte_fond_bloc_text ignore_p_margin",3,"innerHtml",4,"ngIf"],[1,"flex-child","bib_title4","ignore_p_margin",3,"ngClass","innerHtml"],[1,"flex-child","component_arrow_invert","details_arrow",3,"ngClass"],[1,"texte_fond_bloc_text","ignore_p_margin",3,"innerHtml"],[1,"texte_fond_title_right","bib_title2","mobile_only","ignore_p_margin",3,"innerHtml"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),So(2,"div",2),Oo(),Mo(3,"div",3),xo(4,Sk,2,4,"div",4),xo(5,kk,2,4,"div",5),Mo(6,"div",6),xo(7,Rk,5,10,"div",7),Oo(),xo(8,Fk,2,4,"div",8),Mo(9,"div",9),xo(10,Hk,5,10,"div",7),Oo(),Oo(),Oo()),2&t&&(Qr(4),Co("ngIf",e.data.titre_h2_gauche),Qr(1),Co("ngIf",e.data.titre_h2_droite),Qr(2),Co("ngForOf",e.data.paragraphes_gauche),Qr(1),Co("ngIf",e.data.titre_h2_droite),Qr(2),Co("ngForOf",e.data.paragraphes_droite))},directives:[zu,Iu,Tu],pipes:[Sb],styles:[".texte_fond_wrapper[_ngcontent-%COMP%]{position:relative;width:100%;box-sizing:border-box;color:#fff;padding-bottom:5.45rem}@media (min-width:992px){.texte_fond_wrapper[_ngcontent-%COMP%]{padding-bottom:6.25rem}}.texte_fond_visuel[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.texte_fond_img[_ngcontent-%COMP%]{width:100%;height:100%;position:sticky;position:-webkit-sticky;top:0;background-color:#131313;background-image:url(/assets/img/courbes_niveau.png);background-size:cover;background-position:50%}.texte_fond_grid[_ngcontent-%COMP%]{position:sticky;top:0}.texte_fond_title_left[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;padding-top:5rem;padding-bottom:2.5rem}@media (min-width:992px){.texte_fond_title_left[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7;padding-top:6.25rem;padding-bottom:3.125rem}}.texte_fond_title_right[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;padding-top:5rem;padding-bottom:2.5rem}@media (min-width:992px){.texte_fond_title_right[_ngcontent-%COMP%]{grid-column-start:7;grid-column-end:13;padding-top:6.25rem;padding-bottom:3.125rem}}.texte_fond_bloc[_ngcontent-%COMP%]{margin-bottom:2.5rem}@media (min-width:992px){.texte_fond_bloc[_ngcontent-%COMP%]{margin-bottom:3.12rem}}.texte_fond_bloc.accordeon[_ngcontent-%COMP%]{margin-bottom:0}.texte_fond_bloc.accordeon[_ngcontent-%COMP%]   .texte_fond_bloc_title[_ngcontent-%COMP%]{padding-top:.9375rem}@media (min-width:992px){.texte_fond_bloc.accordeon[_ngcontent-%COMP%]   .texte_fond_bloc_title[_ngcontent-%COMP%]{padding-top:1.25rem}}.texte_fond_bloc.last[_ngcontent-%COMP%]{margin-bottom:0}.b_a_left[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;padding:0}@media (min-width:992px){.b_a_left[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7;padding:0}}.b_a_right[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;padding:0}@media (min-width:992px){.b_a_right[_ngcontent-%COMP%]{grid-column-start:7;grid-column-end:13;padding:0}}.texte_fond_bloc_title[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:.9375rem}.texte_fond_bloc_title[_ngcontent-%COMP%]   .flex-child[_ngcontent-%COMP%]{flex:0 1 auto}.texte_fond_bloc_title[_ngcontent-%COMP%]   .title_accordeon[_ngcontent-%COMP%]{flex-basis:90%}@media (min-width:992px){.texte_fond_bloc_title[_ngcontent-%COMP%]{margin-bottom:1.25rem}}.texte_fond_bloc.accordeon[_ngcontent-%COMP%]:first-child   .texte_fond_bloc_title[_ngcontent-%COMP%]{border-top:none}.texte_fond_bloc.accordeon[_ngcontent-%COMP%] ~ .texte_fond_bloc.accordeon[_ngcontent-%COMP%]   .texte_fond_bloc_title[_ngcontent-%COMP%]{border-top:1px solid #fff}.texte_fond_bloc.accordeon[_ngcontent-%COMP%]   .texte_fond_bloc_text[_ngcontent-%COMP%]{padding-bottom:1.25rem}.texte_fond_bloc_text[_ngcontent-%COMP%]{overflow:hidden}.details_arrow[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.details_arrow.rotate[_ngcontent-%COMP%]{transform:rotate(-180deg);-ms-transform:rotate(-180deg);-webkit-transform:rotate(-180deg)}"],data:{animation:[Qb]}}),t})();const Vk=["elems"];function $k(t,e){1&t&&(So(0,"div",7),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().data.titre_h3,"html"),Ki)}function qk(t,e){1&t&&(So(0,"div",8),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().data.titre_h2,"html"),Ki)}function Gk(t,e){1&t&&(So(0,"div",9),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().data.texte,"html"),Ki)}function Zk(t,e){if(1&t&&(Mo(0,"div",17),So(1,"img",18),Oo()),2&t){const t=Bo().$implicit;Jo("background-image:url("+t.visuel.url+")"),Qr(1),Co("src",t.visuel.url,Yi)}}function Wk(t,e){if(1&t&&(ko(0),Mo(1,"div",10,11),Mo(3,"div",12),So(4,"div",13),Bl(5,"safe"),So(6,"div",14),Bl(7,"safe"),Oo(),Mo(8,"div",15),xo(9,Zk,2,3,"div",16),Oo(),Oo(),To()),2&t){const t=e.$implicit,n=Bo();Qr(1),Jo(n.minHeight>0?"height:"+n.minHeight+"px":""),Qr(3),Co("innerHtml",Nl(5,5,t.titre,"html"),Ki),Qr(2),Co("innerHtml",Nl(7,8,t.texte,"html"),Ki),Qr(3),Co("ngIf",t.visuel&&t.visuel.url)}}let Xk=(()=>{class t{constructor(t,e){this.deviceQueryService=t,this.renderer=e,this.elems=new ql,this.minHeight=0,this.unlisten=e.listen("window","resize",t=>{this.onResize()})}onResize(){clearTimeout(this.timeout),this.minHeight=0,this.timeout=setTimeout(()=>{this.resizeBlocs()},100)}ngOnInit(){}ngAfterViewInit(){setTimeout(()=>{this.resizeBlocs()},100)}ngOnDestroy(){this.unlisten()}resizeBlocs(){if(this.deviceQueryService.isMobile())return;let t=this.elems.toArray();for(let e of t)e.nativeElement.clientHeight>this.minHeight&&(this.minHeight=e.nativeElement.clientHeight);this.minHeight<490&&(this.minHeight=490)}}return t.\u0275fac=function(e){return new(e||t)(wo(Pb),wo(za))},t.\u0275cmp=Ut({type:t,selectors:[["app-textes-images"]],viewQuery:function(t,e){if(1&t&&nc(Vk,
vendor: 6,543 bytes, line 1
11),2&t){let t;ec(t=ic())&&(e.elems=t)}},inputs:{data:"data"},decls:7,vars:4,consts:[[1,"textes_images_wrapper"],[1,"bib_grid"],[1,"textes_images_header"],["class","textes_images_title bib_title3 ignore_p_margin",3,"innerHtml",4,"ngIf"],["class","textes_images_title bib_title2 ignore_p_margin",3,"innerHtml",4,"ngIf"],["class","textes_images_texte ignore_p_margin",3,"innerHtml",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"textes_images_title","bib_title3","ignore_p_margin",3,"innerHtml"],[1,"textes_images_title","bib_title2","ignore_p_margin",3,"innerHtml"],[1,"textes_images_texte","ignore_p_margin",3,"innerHtml"],[1,"textes_images_inner_grid","bib_grid"],["elems",""],[1,"textes_images_bloc","b_a_text"],[1,"bib_title4","ignore_p_margin",3,"innerHtml"],[1,"ignore_p_margin",3,"innerHtml"],[1,"textes_images_bloc","b_a_img"],["class","textes_images_visuel",3,"style",4,"ngIf"],[1,"textes_images_visuel"],[3,"src"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),Mo(2,"div",2),xo(3,$k,2,4,"div",3),xo(4,qk,2,4,"div",4),xo(5,Gk,2,4,"div",5),Oo(),Oo(),xo(6,Wk,10,11,"ng-container",6),Oo()),2&t&&(Qr(3),Co("ngIf",e.data.titre_h3),Qr(1),Co("ngIf",e.data.titre_h2),Qr(1),Co("ngIf",e.data.texte),Qr(1),Co("ngForOf",e.data.paragraphes))},directives:[zu,Iu],pipes:[Sb],styles:[".textes_images_wrapper[_ngcontent-%COMP%]{width:100%;background-color:#f4f3f4;padding:60px 0}@media (min-width:992px){.textes_images_wrapper[_ngcontent-%COMP%]{padding:100px 0}}.textes_images_header[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}.textes_images_title[_ngcontent-%COMP%]{text-align:center;margin-bottom:2.5rem}@media (min-width:992px){.textes_images_title[_ngcontent-%COMP%]{max-width:55%;margin-left:auto;margin-right:auto}}.textes_images_texte[_ngcontent-%COMP%]{margin-bottom:2.5rem}@media (min-width:992px){.textes_images_texte[_ngcontent-%COMP%]{max-width:750px;margin:0 auto 3.75rem;text-align:center}}.textes_images_visuel[_ngcontent-%COMP%]{width:100%;height:100%;background-size:cover;background-position:50%}.textes_images_visuel[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;visibility:hidden}@media (min-width:992px){.textes_images_inner_grid[_ngcontent-%COMP%]{margin-bottom:3.125rem}}.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;background:#fff;padding:1.25rem calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));margin-bottom:2.5rem}@media (min-width:992px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7;grid-row-start:1;grid-row-end:2;padding:3.4rem calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));margin:0}}@media (min-width:992px) and (min-width:992px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]   .bib_title4[_ngcontent-%COMP%]{margin-bottom:15px}@media (min-width:992px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_text[_ngcontent-%COMP%]   .bib_title4[_ngcontent-%COMP%]{margin-bottom:30px}.textes_images_inner_grid[_ngcontent-%COMP%]:nth-child(odd)   .b_a_text[_ngcontent-%COMP%]{grid-column-start:7;grid-column-end:13}}.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_img[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;margin-bottom:2.5rem}@media (min-width:992px){.textes_images_inner_grid[_ngcontent-%COMP%]   .b_a_img[_ngcontent-%COMP%]{grid-column-start:7;grid-column-end:13;grid-row-start:1;grid-row-end:2;margin:0}.textes_images_inner_grid[_ngcontent-%COMP%]:nth-child(odd)   .b_a_img[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7}}"]}),t})();const Qk=["mapcont"],Kk=["mobilemapcont"],Yk=["bloc"];function Jk(t,e){if(1&t&&(So(0,"div",12),Bl(1,"safe")),2&t){const t=Bo().$implicit;Jo("background-color:"+t.background_color+";
1color:"+t.typo_color),Co("innerHtml",Nl(1,3,t.titre_h2,"html"),Ki)}}function tT(t,e){if(1&t&&So(0,"div",13),2&t){const t=Bo().$implicit;Jo("background-color:"+t.background_color+";color:"+t.typo_color)}}function eT(t,e){if(1&t&&(So(0,"div",21),Bl(1,"safe")),2&t){const t=Bo().$implicit;Jo("color:"+Bo().$implicit.typo_color),Co("innerHtml",Nl(1,3,t.titre_h3,"html"),Ki)}}function nT(t,e){if(1&t&&(So(0,"div",22),Bl(1,"safe")),2&t){const t=Bo().$implicit;Jo("color:"+Bo().$implicit.typo_color),Co("innerHtml",Nl(1,3,t.texte,"html"),Ki)}}const iT=function(t){return{last:t}};function rT(t,e){if(1&t&&(Mo(0,"div",23),So(1,"app-carousel",24),Oo()),2&t){const t=Bo(),e=t.index,n=t.$implicit,i=Bo().$implicit;Co("ngClass",Il(5,iT,e==i.paragraphes.length-1)),Qr(1),Co("hideFS",!0)("slidesPerView",1)("data",n.visuels)("cssClass","#ffffff"==i.background_color?"_feuillet":"_feuillet_color")}}function sT(t,e){if(1&t&&(Mo(0,"div",25),So(1,"app-carousel",26),Oo()),2&t){const t=Bo().$implicit,e=Bo().$implicit;Qr(1),Co("hideFS",!0)("data",t.visuels)("cssClass","#ffffff"==e.background_color?"_feuillet":"_feuillet_color")}}
1const oT=function(t,e){return{with_swiper:t,last:e}},aT=function(t,e,n){return{with_swiper:t,with_nav:e,last:n}};function lT(t,e){if(1&t&&(ko(0),Mo(1,"div",14),Mo(2,"div",15),Mo(3,"div",16),xo(4,eT,2,6,"div",17),xo(5,nT,2,6,"div",18),xo(6,rT,2,7,"div",19),Oo(),Oo(),Oo(),xo(7,sT,2,3,"div",20),To()),2&t){const t=e.$implicit,n=e.index,i=Bo().$implicit;Qr(2),Jo("background-color:"+i.background_color),Co("ngClass",Al(8,oT,(null==t.visuels?null:t.visuels.length)>0,n==i.paragraphes.length-1)),Qr(1),Co("ngClass",zl(11,aT,(null==t.visuels?null:t.visuels.length)>0,(null==t.visuels?null:t.visuels.length)>1,n==i.paragraphes.length-1)),Qr(1),Co("ngIf",t.titre_h3),Qr(1),Co("ngIf",t.texte),Qr(1),Co("ngIf",(null==t.visuels?null:t.visuels.length)>0),Qr(1),Co("ngIf",(null==t.visuels?null:t.visuels.length)>0)}}const cT=function(t){return{colored:t}},uT=function(t){return{"background-color":t}};function hT(t,e){if(1&t&&(ko(0),Mo(1,"div",4,5),Mo(3,"div",6),Mo(4,"div",7),xo(5,Jk,2,6,"div",8),xo(6,tT,1,2,"div",9),Oo(),xo(7,lT,8,15,"ng-container",0),Oo(),Oo(),So(8,"div",10,11),To()),2&t){const t=e.$implicit,n=Bo();Qr(1),Co("ngClass",Il(5,cT,"#ffffff"!=t.background_color))("ngStyle",Il(7,uT,n.deviceQueryService.isMobile()?t.background_color:"none")),Qr(4),Co("ngIf",t.titre_h2),Qr(1),Co("ngIf",!t.titre_h2),Qr(1),Co("ngForOf",t.paragraphes)}}let dT=(()=>{class t{constructor(t){this.dqs=t,this.mapContainer=new Vl,this.mobileMapContainers=new Vl,this.blockList=new Vl,this.deviceQueryService=t}ngOnInit(){}ngAfterViewInit(){this.mapContainer.emit(this.mapCont),this.mobileMapContainers.emit(this.mobileMapCont.toArray()),setTimeout(()=>{let t=this.blocs.toArray();this.blockList.emit(t)},100)}}return t.\u0275fac=function(e){return new(e||t)(wo(Pb))},t.\u0275cmp=Ut({type:t,selectors:[["app-feuillet-carte"]],viewQuery:function(t,e){if(1&t&&(nc(Qk,1),nc(Kk,1),nc(Yk,1)),2&t){let t;ec(t=ic())&&(e.mapCont=t.first),ec(t=ic())&&(e.mobileMapCont=t),ec(t=ic())&&(e.blocs=t)}},inputs:{data:"data",computedClass:"computedClass"},outputs:{mapContainer:"mapContainer",mobileMapContainers:"mobileMapContainers",blockList:"blockList"},decls:5,vars:3,consts:[[4,"ngFor","ngForOf"],[1,"fcarte_map_wrapper","desktop_only"],[1,"fcarte_map_container"],["mapcont",""],[1,"fcarte_cont",3,"ngClass","ngStyle"],["bloc",""],[1,"fcarte_wrapper","in_scrollable"],[1,"bib_grid"],["class","fcarte_title bib_title2 ignore_p_margin",3,"style","innerHtml",4,"ngIf"],["class","fcarte_title_empty",3,"style",4,"ngIf"],[1,"fcarte_map_container","mobile_only"],["mobilemapcont",""],[1,"fcarte_title","bib_title2","ignore_p_margin",3,"innerHtml"],[1,"fcarte_title_empty"],[1,"bib_grid",2,"position","relative"],[1,"fcarte_elements",3,"ngClass"],[1,"fcarte_element",3,"ngClass"],["class","fcarte_element_title bib_title4 ignore_p_margin",3,"style","innerHtml",4,"ngIf"],["class","fcarte_element_text ignore_first_p_margin",3,"style","innerHtml",4,"ngIf"],["class","fcarte_swiper desktop_only",3,"ngClass",4,"ngIf"],["class","fcarte_swiper_mobile mobile_only",4,"ngIf"],[1,"fcarte_element_title","bib_title4","ignore_p_margin",3,"innerHtml"],[1,"fcarte_element_text","ignore_first_p_margin",3,"innerHtml"],[1,"fcarte_swiper","desktop_only",3,"ngClass"],[3,"hideFS","slidesPerView","data","cssClass"],[1,"fcarte_swiper_mobile","mobile_only"],[3,"hideFS","data","cssClass"]],template:function(t,e){1&t&&(Mo(0,"div"),xo(1,hT,10,9,"ng-container",0),Mo(2,"div",1),So(3,"div",2,3),Oo(),Oo()),2&t&&(ea("feuillet_cont "+e.computedClass),Qr(1),Co("ngForOf",e.data.feuillets))},directives:[Iu,Tu,Uu,zu,jC],pipes:[Sb],styles:[".feuillet_cont[_ngcontent-%COMP%]{position:relative}.fcarte_cont[_ngcontent-%COMP%]{width:100%;padding-top:5rem;overflow:hidden}@media (min-width:992px){.fcarte_cont[_ngcontent-%COMP%]{padding-top:3.75rem}.feuillet_cont.after_multifond[_ngcontent-%COMP%]   .fcarte_cont[_ngcontent-%COMP%]:first-child{padding-top:0;margin-top:-60px}.feuillet_cont.after_multifond[_ngcontent-%COMP%]   .fcarte_map_wrapper[_ngcontent-%COMP%]{top:60px!important;height:calc(100% - 60px)!important}}.fcarte_wrapper[_ngcontent-%COMP%]{position:relative;z-index:10}.fcarte_title_empty[_ngcontent-%COMP%]{grid-row-start:1;grid-row-end:2;grid-column-start:1;grid-column-end:13;z-index:10}@media (min-width:992px){.fcarte_title_empty[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7;padding-top:6.25rem}}.fcarte_title[_ngcontent-%COMP%]{grid-row-start:1;grid-row-end:2;grid-column-start:1;grid-column-end:13;padding-bottom:2.5rem;z-index:10}@media (min-width:992px){.fcarte_title[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7;padding:6.25rem calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px)) 3.12rem}}@media (min-width:992px) and (min-width:992px){.fcarte_title[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.fcarte_title[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.fcarte_title[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.fcarte_title[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){.fcarte_title[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.fcarte_title[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.fcarte_title[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.fcarte_title[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}.fcarte_elements[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;z-index:10}@media (min-width:992px){.fcarte_elements[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7;padding:0 calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){.fcarte_elements[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.fcarte_elements[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.fcarte_elements[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.fcarte_elements[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){.fcarte_elements[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.fcarte_elements[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.fcarte_elements[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.fcarte_elements[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}.fcarte_elements.last[_ngcontent-%COMP%]{padding-bottom:4rem}@media (min-width:992px){.fcarte_elements.last[_ngcontent-%COMP%]{padding-bottom:calc(6.25rem - 1em)}}
1.fcarte_elements.last.with_swiper[_ngcontent-%COMP%]{padding-bottom:0}.fcarte_swiper_mobile[_ngcontent-%COMP%]{margin-top:2.5rem;padding-bottom:4rem}.fcarte_element[_ngcontent-%COMP%]{margin-bottom:2.5rem}@media (min-width:992px){.fcarte_element[_ngcontent-%COMP%]{margin-bottom:3.12rem}}.fcarte_element.last[_ngcontent-%COMP%]{margin-bottom:0}@media (min-width:992px){.fcarte_element.with_swiper[_ngcontent-%COMP%]{margin-bottom:0!important}}.fcarte_element_title[_ngcontent-%COMP%]{width:100%;margin-bottom:.9375rem}@media (min-width:992px){.fcarte_element_title[_ngcontent-%COMP%]{margin-bottom:1.25rem}}.fcarte_swiper[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;margin-top:3.125rem}@media (min-width:992px){.fcarte_swiper[_ngcontent-%COMP%]{margin:2.5rem 0}}.fcarte_swiper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%}.fcarte_swiper.last[_ngcontent-%COMP%]{margin-bottom:6.25rem}.fcarte_map_wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:0}.fcarte_map_container[_ngcontent-%COMP%]{height:66vh;min-height:500px}@media (min-width:992px){.fcarte_map_container[_ngcontent-%COMP%]{position:sticky;left:0;top:60px;width:100%;height:calc(100vh - 60px)}}"]}),t})();function pT(t,e){1&t&&(Mo(0,"div",9),So(1,"img",10),Oo())}function mT(t,e){if(1&t&&(Mo(0,"a",11),So(1,"div",12),Bl(2,"safe"),Oo()),2&t){const t=Bo();Co("href","tel:"+t.data.tel,Yi),Qr(1),Co("innerHtml",Nl(2,2,t.data.tel,"html"),Ki)}}function gT(t,e){1&t&&(Mo(0,"div",9),So(1,"img",13),Oo())}function fT(t,e){if(1&t&&(Mo(0,"a",11),So(1,"div",12),Bl(2,"safe"),Oo()),2&t){const t=Bo();Co("href","mailto:"+t.data.mail,Yi),Qr(1),Co("innerHtml",Nl(2,2,t.data.mail,"html"),Ki)}}let _T=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-contact"]],inputs:{data:"data",texts:"texts"},decls:13,vars:9,consts:[["id","contact_wrapper",1,"bib_grid","in_scrollable"],["id","contact_cont"],["id","contact_card"],[1,"contact_title","bib_title3",3,"innerHtml"],[1,"contact_desc","ignore_p_margin",3,"innerHtml"],[1,"contact_details"],[1,"contact_details_line"],["class","contact_picto",4,"ngIf"],["class","noline",3,"href",4,"ngIf"],[1,"contact_picto"],["src","assets/img/telephone.svg"],[1,"noline",3,"href"],[1,"contact_txt",3,"innerHtml"],["src","assets/img/mail.svg"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),Mo(2,"div",2),So(3,"div",3),So(4,"div",4),Bl(5,"safe"),Mo(6,"div",5),Mo(7,"div",6),xo(8,pT,2,0,"div",7),xo(9,mT,3,5,"a",8),Oo(),Mo(10,"div",6),xo(11,gT,2,0,"div",7),xo(12,fT,3,5,"a",8),Oo(),Oo(),Oo(),Oo(),Oo()),2&t&&(Qr(3),Co("innerHtml",e.texts.contact,Ki),Qr(1),Co("innerHtml",Nl(5,6,e.data.description||e.data.texte,"html"),Ki),Qr(4),Co("ngIf",e.data.tel),Qr(1),Co("ngIf",e.data.tel),Qr(2),Co("ngIf",e.data.mail),Qr(1),Co("ngIf",e.data.mail))},directives:[zu],pipes:[Sb],styles:["#contact_cont[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}@media (min-width:992px){#contact_cont[_ngcontent-%COMP%]{grid-column-start:3;grid-column-end:11;padding-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));padding-right:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){#contact_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){#contact_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){#contact_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){#contact_cont[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){#contact_cont[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){#contact_cont[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){#contact_cont[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){#contact_cont[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}#contact_card[_ngcontent-%COMP%]{background:#fff;padding:4.5rem calc(1 * ((100vw - 40px - 77px) / 12) + calc(1 * 7px)) 5rem}@media (min-width:992px){#contact_card[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 1) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){#contact_card[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 1) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){#contact_card[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 1) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){#contact_card[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 1))}}@media (min-width:992px){#contact_card[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 1) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){#contact_card[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 1) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){#contact_card[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 1) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){#contact_card[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 1))}}@media (min-width:992px){#contact_card[_ngcontent-%COMP%]{padding-top:3.75rem;padding-left:0;padding-right:0}}.contact_title[_ngcontent-%COMP%]{margin-bottom:1.25rem}@media (min-width:992px){.contact_title[_ngcontent-%COMP%]{text-align:center;margin-top:0}}.contact_desc[_ngcontent-%COMP%]{margin-bottom:1rem}@media (min-width:992px){.contact_desc[_ngcontent-%COMP%]{width:calc(4 * ((100vw - 40px - 77px) / 12) + calc(5 * 7px));text-align:center;margin-left:auto;margin-right:auto;margin-bottom:2rem}}@media (min-width:992px) and (min-width:992px){.contact_desc[_ngcontent-%COMP%]{width:calc(calc(4 + 5) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.contact_desc[_ngcontent-%COMP%]{width:calc(calc(4 + 5) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.contact_desc[_ngcontent-%COMP%]{width:calc(calc(4 + 5) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.contact_desc[_ngcontent-%COMP%]{width:calc(calc(55px * 4) + calc(60px * 5))}}.contact_details[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center}@media (min-width:992px){.contact_details[_ngcontent-%COMP%]{justify-content:center}}.contact_details_line[_ngcontent-%COMP%]{display:flex;align-items:center;flex-basis:100%;margin-bottom:1.25rem}@media (min-width:992px){.contact_details_line[_ngcontent-%COMP%]{flex-basis:auto;margin-bottom:0}}.contact_details_line[_ngcontent-%COMP%]:last-child{margin-bottom:0}.contact_txt[_ngcontent-%COMP%]{margin-right:2.5rem;border-bottom:1px solid #131313}.contact-txt[_ngcontent-%COMP%]:last-child{margin-right:0}.contact_picto[_ngcontent-%COMP%]{display:flex;align-items:center;width:30px;margin-right:.43rem}.contact_picto[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}"]}),t})();function vT(t,e){1&t&&(So(0,"div",7),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().data.titre_h2,"html"),Ki)}const yT=function(t){return{nochapo:t}};function xT(t,e){if(1&t&&So(0,"a",8),2&t){const t=Bo();Co("ngClass",Il(3,yT,!t.data.chapo))("href",t.data.lien_recherche,Yi)("innerHtml",t.data.lien_recherche_label,Ki)}}function bT(t,e){1&t&&(So(0,"div",9),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().data.chapo,"html"),Ki)}function wT(t,e){1&t&&So(0,"app-card-ressource",15),2&t&&Co("data",Bo().$implicit)}function CT(t,e){1&t&&So(0,"app-card-dossier",15),2&t&&Co("data",Bo().$implicit)}function PT(t,e){if(1&t){const t=Io();Mo(0,"div",13),Lo("click",function(){Ae(t);const n=e.$implicit;return Bo(2).navigate(n.lien)}),xo(1,wT,1,1,"app-card-ressource",14),xo(2,CT,1,1,"app-card-dossier",14),Oo()}if(2&t){const t=e.$implicit;Qr(1),Co("ngIf","resource"==t.type_contenu),Qr(1),Co("ngIf","dossier_thematique"==t.type_contenu)}}function MT(t,e){1&t&&So(0,"div",16)}function OT(t,e){if(1&t&&(Mo(0,"div",10),xo(1,PT,3,2,"div",11),xo(2,MT,1,0,"div",12),Oo()),2&t){const t=Bo();Qr(1),Co("ngForOf",t.data.liste),Qr(1),Co("ngForOf",t.fillerCards)}}function ST(t,e){if(1&t&&(Mo(0,"div",17),So(1,"app-carousel",18),Oo()),2&t){const t=Bo();Qr(1),Co("hideFS",!0)("data",t.listeMobile)("cssClass","_contenuslies")}}let kT=(()=>{class t{constructor(t,e){this.deviceQueryService=t,this.router=e,this.fillerCards=[],this.listeMobile=[]}ngOnInit(){for(let t=0;t<this.data.liste.length%4;t++)this.fillerCards.push("");for(let t=0;t<this.data.liste.length;t++)t<8&&this.listeMobile.push(this.data.liste[t])}navigate(t){this.router.navigateByUrl(t)}}return t.\u0275fac=function(e){return new(e||t)(wo(Pb),wo(Yx))},t.\u0275cmp=Ut({type:t,selectors:[["app-liste-res"]],inputs:{data:"data"},decls:7,vars:5,consts:[[1,"liste_res","bib_grid"],[1,"liste_res_title_cont"],["class","liste_res_title ignore_p_margin bib_title2",3,"innerHtml",4,"ngIf"],["class","liste_res_count",3,"ngClass","href","innerHtml",4,"ngIf"],["class","liste_res_chapo ignore_p_margin",3,"innerHtml",4,"ngIf"],["class","liste_res_cards",4,"ngIf"],["class","liste_res_caroussel_cont",4,"ngIf"],[1,"liste_res_title","ignore_p_margin","bib_title2",3,"innerHtml"],[1,"liste_res_count",3,"ngClass","href","innerHtml"],[1,"liste_res_chapo","ignore_p_margin",3,"innerHtml"],[1,"liste_res_cards"],["class","liste_res_card",3,"click",4,"ngFor","ngForOf"],["class","liste_res_card filler",4,"ngFor","ngForOf"],[1,"liste_res_card",3,"click"],[3,"data",4,"ngIf"],[3,"data"],[1,"liste_res_card","filler"],[1,"liste_res_caroussel_cont"],[3,"hideFS","data","cssClass"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),xo(2,vT,2,4,"div",2),xo(3,xT,1,5,"a",3),Oo(),xo(4,bT,2,4,"div",4),xo(5,OT,3,2,"div",5),Oo(),xo(6,ST,2,3,"div",6)),2&t&&(Qr(2),Co("ngIf",e.data.titre_h2),Qr(1),Co("ngIf",e.data.lien_recherche_label),Qr(1),Co("ngIf",e.data.chapo),Qr(1),Co("ngIf",!e.deviceQueryService.isMobile()),Qr(1),Co("ngIf",e.deviceQueryService.isMobile()))},directives:[zu,Tu,Iu,Qw,$w,jC],pipes:[Sb],styles:[".liste_res[_ngcontent-%COMP%]{position:relative}.liste_res_title_cont[_ngcontent-%COMP%]{position:relative;grid-column-start:1;grid-column-end:13}@media (min-width:992px){.liste_res_title_cont[_ngcontent-%COMP%]{margin-bottom:3.125rem}}.liste_res_count[_ngcontent-%COMP%]{width:100%;display:block;text-align:center;margin-top:1rem;margin-bottom:.9375rem}.liste_res_count.nochapo[_ngcontent-%COMP%]{margin-bottom:0}@media (min-width:992px){.liste_res_count[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;margin-bottom:0;margin-top:0;width:auto;text-align:left}}.liste_res_cards[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;display:flex;flex-wrap:wrap;justify-content:space-between}.liste_res_title[_ngcontent-%COMP%]{width:100%;text-align:center}@media (min-width:992px){.liste_res_title[_ngcontent-%COMP%]{max-width:750px;margin:0 auto}}.liste_res_chapo[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;text-align:center}@media (min-width:992px){.liste_res_chapo[_ngcontent-%COMP%]{max-width:750px;margin:0 auto 2.125rem}}.liste_res_card[_ngcontent-%COMP%]{cursor:pointer;flex-basis:calc(3 * ((100vw - 40px - 77px) / 12) + calc(2 * 7px));margin-bottom:15px}@media (min-width:992px){.liste_res_card[_ngcontent-%COMP%]{flex-basis:calc(calc(3 + 2) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.liste_res_card[_ngcontent-%COMP%]{flex-basis:calc(calc(3 + 2) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.liste_res_card[_ngcontent-%COMP%]{flex-basis:calc(calc(3 + 2) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.liste_res_card[_ngcontent-%COMP%]{flex-basis:calc(calc(55px * 3) + calc(60px * 2))}}.liste_res_card.filler[_ngcontent-%COMP%]{opacity:0;pointer-events:none}.liste_res_caroussel_cont[_ngcontent-%COMP%]{overflow:visible;margin-left:20px;margin-right:calc(0 * ((100vw - 40px - 77px) / 12) + calc(1 * 7px));margin-top:2.5rem}@media (min-width:500px){.liste_res_caroussel_cont[_ngcontent-%COMP%]{margin-left:40px}}@media (min-width:992px){.liste_res_caroussel_cont[_ngcontent-%COMP%]{margin-left:20px}}@media (min-width:1024px){.liste_res_caroussel_cont[_ngcontent-%COMP%]{margin-left:40px}}@media (min-width:1280px){.liste_res_caroussel_cont[_ngcontent-%COMP%]{margin-left:60px}}@media (min-width:1440px){.liste_res_caroussel_cont[_ngcontent-%COMP%]{margin-left:calc((100% - 1320px) / 2)}}@media (min-width:992px){.liste_res_caroussel_cont[_ngcontent-%COMP%]{margin-right:calc(calc(0 + 1) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.liste_res_caroussel_cont[_ngcontent-%COMP%]{margin-right:calc(calc(0 + 1) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.liste_res_caroussel_cont[_ngcontent-%COMP%]{margin-right:calc(calc(0 + 1) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.liste_res_caroussel_cont[_ngcontent-%COMP%]{margin-right:calc(calc(55px * 0) + calc(60px * 1))}}"]}),t})();const TT=["blocedito"];function ET(t,e){if(1&t){const t=Io();Mo(0,"app-paragraphe",10),Lo("navigateEvent",function(e){return Ae(t),Bo(2).navigate(e)}),Oo()}2&t&&Co("data",Bo().$implicit)}function IT(t,e){if(1&t){const t=Io();Mo(0,"app-push",10),Lo("navigateEvent",function(e){return Ae(t),Bo(2).navigate(e)}),Oo()}2&t&&Co("data",Bo().$implicit)}function AT(t,e){if(1&t){const t=Io();Mo(0,"app-fullscreen",10),Lo("navigateEvent",function(e){return Ae(t),Bo(2).navigate(e)}),Oo()}2&t&&Co("data",Bo().$implicit)}function zT(t,e){if(1&t){const t=Io();Mo(0,"app-texte-fond",10),Lo("navigateEvent",function(e){return Ae(t),Bo(2).navigate(e)}),Oo()}2&t&&Co("data",Bo().$implicit)}function DT(t,e){if(1&t){const t=Io();Mo(0,"app-textes-images",10),Lo("navigateEvent",function(e){return Ae(t),Bo(2).navigate(e)}),Oo()}2&t&&Co("data",Bo().$implicit)}function LT(t,e){if(1&t){const t=Io();Mo(0,"app-contenus-lies",11),Lo("navigateEvent",function(e){return Ae(t),Bo(2).navigate(e)}),Oo()}if(2&t){const t=Bo(),e=t.$implicit,n=t.index,i=Bo();Co("data",e)("gabarit",i.gabarit)("notop",n>0&&"multisansfond"==i.getBlocType(n-1))}}function RT(t,e){if(1&t){const t=Io();Mo(0,"app-feuillet-carte",12),Lo("blockList",function(e){Ae(t);const n=Bo().index;return Bo().registerBlockList(n,e)})("mobileMapContainers",function(e){Ae(t);const n=Bo().index;return Bo().registerMobileContainer(n,e)})("mapContainer",function(e){Ae(t);const n=Bo().index;return Bo().registerContainer(n,e)})("navigateEvent",function(e){return Ae(t),Bo(2).navigate(e)}),Oo()}if(2&t){const t=Bo(),e=t.$implicit,n=t.index,i=Bo();Co("data",e)("computedClass",i.computeClass(n))}}function FT(t,e){if(1&t&&So(0,"app-medias",13),2&t){const t=Bo(),e=t.$implicit,n=t.index,i=Bo();Co("data",e)("computedClass",i.computeClass(n))}}function BT(t,e){if(1&t&&So(0,"app-medias",13),2&t){const t=Bo(),e=t.$implicit,n=t.index,i=Bo();Co("data",e)("computedClass",i.computeClass(n))}}function NT(t,e){if(1&t&&So(0,"app-contact",14),2&t){const t=Bo().$implicit,e=Bo();Co("data",t)("texts",e.texts)}}function UT(t,e){if(1&t&&So(0,"app-liste-res",14),2&t){const t=Bo().$implicit,e=Bo();Co("data",t)("texts",e.texts)}}function HT(t,e){1&t&&So(0,"div",15)}function jT(t,e){if(1&t&&(Mo(0,"div",null,2),ko(2,3),xo(3,ET,1,1,"app-paragraphe",4),xo(4,IT,1,1,"app-push",4),xo(5,AT,1,1,"app-fullscreen",4),xo(6,zT,1,1,"app-texte-fond",4),xo(7,DT,1,1,"app-textes-images",4),xo(8,LT,1,3,"app-contenus-lies",5),xo(9,RT,1,2,"app-feuillet-carte",6),xo(10,FT,1,2,"app-medias",7),xo(11,BT,1,2,"app-medias",7),xo(12,NT,1,2,"app-contact",8),xo(13,
1UT,1,2,"app-liste-res",8),xo(14,HT,1,0,"div",9),To(),Oo()),2&t){const t=e.$implicit,n=e.index;ea(Bo().computeClass(n)),Qr(2),Co("ngSwitch",t.type),Qr(1),Co("ngSwitchCase","paragraphe"),Qr(1),Co("ngSwitchCase","push"),Qr(1),Co("ngSwitchCase","plein_ecran"),Qr(1),Co("ngSwitchCase","texte_fond"),Qr(1),Co("ngSwitchCase","alternance_textes_images"),Qr(1),Co("ngSwitchCase","contenus_lies"),Qr(1),Co("ngSwitchCase","feuillet"),Qr(1),Co("ngSwitchCase","video"),Qr(1),Co("ngSwitchCase","carrousel"),Qr(1),Co("ngSwitchCase","contact"),Qr(1),Co("ngSwitchCase","ressources_dossiers")}}let VT=(()=>{class t{constructor(t,e,n){this.router=t,this.deviceQueryService=e,this.renderer=n,this.hasChapo=!1,this.gabarit="",this.scrollEvent=new Vl,this.mapScrollEvent=new Vl,this.mobileMapScrollEvent=new Vl,this.realBlockList=new Array,this.lastBlocInView=-1,this.lastMapBlocInView=-1,this.lastMapSubBlocInView=-1,this.mapContainers=new Array,this.mobileMapContainers=new Array,this.unlisten=n.listen("window","scroll",t=>{this.onWindowScroll()})}onWindowScroll(){0==this.realBlockList.length&&(this.realBlockList=this.blockList.toArray());let t=[];if(this.deviceQueryService.isMobile())for(let e in this.mobileMapContainers
1){let t=parseInt(e);if(null!=this.mobileMapContainers[t])for(let e in this.mobileMapContainers[t]){let n=parseInt(e),i=this.mobileMapContainers[t][n].nativeElement.getBoundingClientRect();if(i.top<window.innerHeight&&i.bottom>=0){this.lastMapBlocInView==t&&this.lastMapSubBlocInView==n||(this.lastMapBlocInView=t,this.lastMapSubBlocInView=n,this.mobileMapScrollEvent.emit([t,n]));break}}}for(let e in this.realBlockList){let n=parseInt(e),i=this.realBlockList[n].nativeElement.getBoundingClientRect();i.top<window.innerHeight/4&&i.bottom>=0&&t.push(n)}if(!this.deviceQueryService.isMobile())for(let e=t.length-1;e>=0;e--)if(this.realBlockList[t[e]].nativeElement.classList.contains("fcarte_cont")){this.lastMapBlocInView!=t[e]&&(this.lastMapBlocInView=t[e],this.mapScrollEvent.emit(t[e]));break}t.length>0&&this.lastBlocInView!=t[0]&&(this.lastBlocInView=t[0],this.scrollEvent.emit(t[0]))}ngOnInit(){for(let t in this.blocs)this.mapContainers.push(null)}ngOnDestroy(){this.unlisten()}navigate(t){this.router.navigateByUrl(t)}getBloc(t){return 0==this.realBlockList.length&&(this.realBlockList=this.blockList.toArray()),this.realBlockList[t]}registerContainer(t,e){this.mapContainers[t]=e}registerMobileContainer(t,e){this.mobileMapContainers[t]=e}registerBlockList(t,e){0==this.realBlockList.length&&(this.realBlockList=this.blockList.toArray());let n=this.blockList.toArray();for(let i in this.realBlockList)if(this.realBlockList[i]==n[t]){let t=[i,1].concat(e);return void Array.prototype.splice.apply(this.realBlockList,t)}}getMapContainer(t,e,n){return n?this.mobileMapContainers[t]?this.mobileMapContainers[t][e]:void 0:this.mapContainers[t]}computeClass(t){let e="bib_bloc_edito ";return e+=0==t?" first_bloc":" after_"+this.getBlocType(t-1),t==this.blocs.length-1&&(e+=" last_bloc"),e+=this.hasChapo?" with_chapo":" without_chapo",e+=" bloc_"+this.getBlocType(t),t<this.blocs.length-1&&(e+=" margin_"+this.getBlocType(t)+"_"+this.getBlocType(t+1),e+=" margin_"+this.blocs[t].type+"_"+this.blocs[t+1].type),e}getBlocType(t){switch(this.blocs[t].type){case"push":case"plein_ecran":case"texte_fond":case"alternance_textes_images":case"contenus_lies":return"multifond";case"video":case"carrousel":case"contact":case"ressources_dossiers":return"multisansfond";case"paragraphe":return"paragraphe";case"feuillet":return"feuillet"}return"contenus_lies"==this.blocs[t].type?"1"==this.blocs[t].fond_noir?"multifond":"multisansfond":"unknown"}}return t.\u0275fac=function(e){return new(e||t)(wo(Yx),wo(Pb),wo(za))},t.\u0275cmp=Ut({type:t,selectors:[["app-edito-builder"]],viewQuery:function(t,e){if(1&t&&nc(TT,1),2&t){let t;ec(t=ic())&&(e.blockList=t)}},inputs:{blocs:"blocs",hasChapo:"hasChapo",gabarit:"gabarit",texts:"texts"},outputs:{scrollEvent:"scrollEvent",mapScrollEvent:"mapScrollEvent",mobileMapScrollEvent:"mobileMapScrollEvent"},decls:2,vars:1,consts:[["id","edito_builder_cont"],[3,"class",4,"ngFor","ngForOf"],["blocedito",""],[3,"ngSwitch"],[3,"data","navigateEvent",4,"ngSwitchCase"],[3,"data","gabarit","notop","navigateEvent",4,"ngSwitchCase"],[3,"data","computedClass","blockList","mobileMapContainers","mapContainer","navigateEvent",4,"ngSwitchCase"],[3,"data","computedClass",4,"ngSwitchCase"],[3,"data","texts",4,"ngSwitchCase"],["class","bib_grid",4,"ngSwitchDefault"],[3,"data","navigateEvent"],[3,"data","gabarit","notop","navigateEvent"],[3,"data","computedClass","blockList","mobileMapContainers","mapContainer","navigateEvent"],[3,"data","computedClass"],[3,"data","texts"],[1,"bib_grid"]],template:function(t,e){1&t&&(Mo(0,"div",0),xo(1,jT,15,14,"div",1),Oo()),2&t&&(Qr(1),Co("ngForOf",e.blocs))},directives:[Iu,Fu,Bu,Nu,mk,jO,Ok,jk,Xk,YO,dT,iS,_T,kT],styles:[".margin_multifond_multisansfond[_ngcontent-%COMP%], .margin_multisansfond_multifond[_ngcontent-%COMP%], .margin_multisansfond_multisansfond[_ngcontent-%COMP%], .margin_multisansfond_paragraphe[_ngcontent-%COMP%], .margin_paragraphe_multisansfond[_ngcontent-%COMP%]{margin-bottom:100px}.margin_paragraphe_paragraphe[_ngcontent-%COMP%]{margin-bottom:20px}@media (min-width:992px){.margin_paragraphe_paragraphe[_ngcontent-%COMP%]{margin-bottom:60px}.after_feuillet[_ngcontent-%COMP%]{margin-top:-60px}}.bloc_multisansfond.last_bloc[_ngcontent-%COMP%]{padding-bottom:60px}.margin_push_push[_ngcontent-%COMP%]{margin-bottom:20px}@media (min-width:992px){.margin_push_push[_ngcontent-%COMP%]{margin-bottom:0}}"]}),t})(),$T=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-vous-aimerez-aussi"]],inputs:{data:"data",texts:"texts"},decls:5,vars:5,consts:[[1,"vaa_carousel"],[1,"bib_grid"],[1,"vaa_carousel_title","bib_title3",3,"innerHtml"],[1,"vaa_carousel_cont"],[3,"hideFS","data","cssClass","texts"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),So(2,"div",2),Oo(),Mo(3,"div",3),So(4,"app-carousel",4),Oo(),Oo()),2&t&&(Qr(2),Co("innerHtml",e.texts.vous_aimerez_aussi,Ki),Qr(2),Co("hideFS",!0)("data",e.data)("cssClass","_ensavoirplus")("texts",e.texts))}
1,directives:[jC],styles:[".vaa_carousel[_ngcontent-%COMP%]{background-color:#131313;background-image:url(/assets/img/courbes_niveau.png);background-size:cover;background-position:50%;color:#fff;padding:5rem 0;box-sizing:border-box;overflow:hidden}@media (min-width:992px){.vaa_carousel[_ngcontent-%COMP%]{padding:6.25rem 0}}.vaa_carousel[_ngcontent-%COMP%]   .vaa_carousel_title[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;text-align:center}@media (min-width:992px){.vaa_carousel[_ngcontent-%COMP%]   .vaa_carousel_title[_ngcontent-%COMP%]{text-align:left}}.vaa_carousel[_ngcontent-%COMP%]   .vaa_carousel_cont[_ngcontent-%COMP%]{overflow:visible;margin-top:2.5rem;margin-left:20px;margin-right:calc(0 * ((100vw - 40px - 77px) / 12) + calc(1 * 7px))}@media (min-width:500px){.vaa_carousel[_ngcontent-%COMP%]   .vaa_carousel_cont[_ngcontent-%COMP%]{margin-left:40px}}@media (min-width:992px){.vaa_carousel[_ngcontent-%COMP%]   .vaa_carousel_cont[_ngcontent-%COMP%]{margin-left:20px}}@media (min-width:1024px){.vaa_carousel[_ngcontent-%COMP%]   .vaa_carousel_cont[_ngcontent-%COMP%]{margin-left:40px}}@media (min-width:1280px){.vaa_carousel[_ngcontent-%COMP%]   .vaa_carousel_cont[_ngcontent-%COMP%]{margin-left:60px}}@media (min-width:1440px){.vaa_carousel[_ngcontent-%COMP%]   .vaa_carousel_cont[_ngcontent-%COMP%]{margin-left:calc((100% - 1320px) / 2)}}@media (min-width:992px){.vaa_carousel[_ngcontent-%COMP%]   .vaa_carousel_cont[_ngcontent-%COMP%]{margin-right:calc(calc(0 + 1) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.vaa_carousel[_ngcontent-%COMP%]   .vaa_carousel_cont[_ngcontent-%COMP%]{margin-right:calc(calc(0 + 1) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.vaa_carousel[_ngcontent-%COMP%]   .vaa_carousel_cont[_ngcontent-%COMP%]{margin-right:calc(calc(0 + 1) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.vaa_carousel[_ngcontent-%COMP%]   .vaa_carousel_cont[_ngcontent-%COMP%]{margin-right:calc(calc(55px * 0) + calc(60px * 1))}}"]}),t})();const qT=["filtersElem"],GT=["mapcontainer"],ZT=["wrapper"],WT=["actcard"];function XT(t,e){if(1&t){const t=Io();Mo(0,"app-filters",19),Lo("filtersChanged",function(e){return Ae(t),Bo(2).applyFilters(e)}),Oo()}if(2&t){const t=Bo(2);Co("pDataId","activites")("inverse",!t.deviceQueryService.isMobile())("filtersData",t.filters)("filtersTexts",t.texts)("parentComponent",t)}}const QT=function(t){return{fixed_mennu:t}};function KT(t,e){if(1&t){const t=Io();Mo(0,"div",4),Mo(1,"div",20),Lo("click",function(){return Ae(t),Bo(2).closeAllActs()}),So(2,"img",21),Oo(),Oo()}if(2&t){const t=Bo(2);Co("ngClass",Il(1,QT,t.fixedMenu))}}const YT=function(t,e){return{hidden:t,act_open:e}};function JT(t,e){if(1&t){const t=Io();Mo(0,"div",22,23),Mo(2,"app-card-activity",24),Lo("cardClicked",function(e){return Ae(t),Bo(2).cardClicked(e)})("likeClicked",function(e){return Ae(t),Bo(2).likeClicked(e)}),Oo(),Oo()}if(2&t){const t=e.$implicit,n=Bo(2);Co("ngClass",Al(7,YT,t.filtered,n.isActOpen||n.isActOpen3))("id","act-card-"+t.nid),Qr(2),Co("act",t)("texts",n.texts)("openable",!0)("fromacts",!0)("nobottom",!n.isActOpen3)}}function tE(t,e){if(1&t&&So(0,"app-edito-builder",25),2&t){const t=Bo(2);Co("blocs",t.editoData)("hasChapo",!0)("texts",t.texts)}}function eE(t,e){if(1&t&&So(0,"app-vous-aimerez-aussi",26),2&t){const t=Bo(2);Co("data",t.carouselData)("texts",t.texts)}}const nE=function(t,e){return{hidden:t,fixed_menu:e}},iE=function(t){return{act_open:t}},rE=function(t,e){return{padding:t,act_open:e}},sE=function(t){return{hidden:t}};function oE(t,e){if(1&t){const t=Io();Mo(0,"section"),Mo(1,"div",1,2),Mo(3,"div",3),Mo(4,"div",4,5),xo(6,XT,1,5,"app-filters",6),Oo(),xo(7,KT,3,3,"div",7),Oo(),Mo(8,"div",8),Mo(9,"div",9),Lo("scroll",function(){return Ae(t),Bo().actContentScroll()}),xo(10,JT,3,10,"div",10),Oo(),Oo(),Mo(11,"div",11),So(12,"div",12,13),Oo(),Oo(),Mo(14,"div",14),Mo(1
15,"div",15),xo(16,tE,1,3,"app-edito-builder",16),Oo(),Mo(17,"div",17),xo(18,eE,1,2,"app-vous-aimerez-aussi",18),Oo(),Oo(),Oo()}if(2&t){const t=Bo();Qr(4),Co("ngClass",Al(12,nE,t.isActOpen4,t.fixedMenu)),Qr(2),Co("ngIf",t.activities.length>0&&null!=t.filters),Qr(1),Co("ngIf",t.isActOpen2),Qr(1),Co("ngClass",Il(15,iE,t.isActOpen2)),Qr(1),Co("ngClass",Al(17,rE,t.isActOpen||t.isActOpen3,t.isActOpen2)),Qr(1),Co("ngForOf",t.activities),Qr(1),Co("ngClass",Il(20,iE,t.isActOpen4)),Qr(1),Co("ngClass",Il(22,iE,t.isActOpen2)),Qr(2),Co("ngClass",Il(24,sE,t.isActOpen2)),Qr(2),Co("ngIf",t.editoData&&t.editoData.length>0),Qr(1),Co("ngClass",Il(26,sE,t.isActOpen2)),Qr(1),Co("ngIf",t.carouselData)}}let aE=(()=>{class t{constructor(t,e,n,i,r,s,o){this.platformId=t,this.api=e,this.router=n,this.mapStashService=i,this.deviceQueryService=r,this.persistantDataService=s,this.renderer=o,this.loaded=!1,this.activities=new Array,this.filters=null,this.isActOpen=!1,this.isActOpen2=!1,this.isActOpen3=!1,this.isActOpen4=!1,this.map_infos=null,this.map=null,this.mapInited=!1,this.waitingPois=new Array,this.stickyFilters=!1,this.stickyFiltersHeight=100,this.stickyFingersStart=0,this.breakpoint=0,this.actOpen=new Vl,this.unlisten=this.renderer.listen("window","scroll",t=>{this.checkPositions()})}set data(t){this.loaded=!1,t&&(this.editoData=t.composants_editos,this.filters=t.filtres,this.map_infos=t.carte,this.map_infos.showZoomButtons=!1,this.map_infos.disableInteractivity=!0,this.map_infos.zoom=this.deviceQueryService.isMobile()?this.map_infos.zoom_defaut_m:this.map_infos.zoom_defaut_d,!Xu(this.platformId)&&t.carte.centre_lat&&(this.map_infos.coordonnees_options={padding:{left:window.innerWidth/2}},this.deviceQueryService.isMobile()&&(this.map_infos.coordonnees_options={padding:{top:69,bottom:window.innerHeight/2}})),this.carouselData=t.vous_aimerez_aussi.contenus,this.chapo=t.chapo,this.loaded=!0,this.api.callAction("ws_web_activites/").subscribe(t=>{if(t&&t.activites)for(var e of t.activites)this.activities.push(e)}),this.breakpoint>0&&setTimeout(()=>{this.initMap()},100))}ngOnInit(){}ngAfterViewInit(){this.breakpoint=this.deviceQueryService.getBreakpoint(),this.map_infos&&this.initMap()}ngOnDestroy(){this.unlisten(),this.map&&this.map.unregisterClickCallback()}checkPositions(){if(Xu(this.platformId))return;let t,e=window.innerHeight;this.deviceQueryService.isMobile()&&(e=window.innerWidth);for(let n of this.activities){if(n.filtered)continue;let i=document.querySelector("#act-card-"+n.nid);if(i){let r=i.getBoundingClientRect();this.deviceQueryService.isMobile()||r.top<window.innerHeight/2&&window.innerHeight/2-r.top<e&&(e=window.innerHeight/2-r.top,t=n)}}if(t){for(let e of this.activities)e.focus&&e.nid!=t.nid&&(e.focus=!1,this.map&&this.map.resizeFeatures(e.nid,!0));this.map&&!t.focus&&(t.focus=!0,this.map.selectFeature(t.nid))}}applyFilters(t){this.temporalId=-1;for(let e of this.activities){e.filtered=!1,e.focus=!1,e.informations_pratiques.conseil="";let n=Object.keys(e.filtre_tids);for(let i of t){let t=0==i.length;for(let e of i)if(-1!=n.indexOf(e)){t=!0;break}if(!t){e.filtered=!0;break}}if(!e.filtered){let n=!1,i=!1;if(e.dates&&e.dates.contexte){let r=Object.keys(e.dates.contexte);for(let i of t)for(let t of i)if(-1!=r.indexOf(t)){n=!0,this.temporalId=t,e.contextualDates=e.dates.contexte[t].texte.join(""),e.dates.contexte[t].informations_pratiques&&(e.informations_pratiques.conseil=e.dates.contexte[t].informations_pratiques.conseil);break}if(e.duree)for(let n of t)for(let t of n)for(let n of e.duree)if(n.tid==t){i=!0;break}}n||e.dates.contexte&&e.dates.contexte[0]&&(e.contextualDates=e.dates.contexte[0].texte),""==e.informations_pratiques.conseil&&e.dates.contexte&&e.dates.contexte[0]&&e.dates.contexte[0].informations_pratiques&&(e.informations_pratiques.conseil=e.dates.contexte[0].informations_pratiques.conseil)}}this.activities.sort((t,e)=>{if(t.filtered&&!e.filtered)return 1;if(e.filtered&&!t.filtered)return-1;if(t.filtered&&e.filtered)return 0;if("1"==t.highlight&&"0"==e.highlight)return-1;if("1"==e.highlight&&"0"==t.highlight)return 1;if(-1==this.temporalId){if(null==t.dates||null==t.dates.liste_dates||0==t.dates.liste_dates.length)return 1;if(null==e.dates||null==e.dates.liste_dates||0==e.dates.liste_dates.length)return-1;let n=new Date(t.dates.liste_dates[0][0]),i=new Date(e.dates.liste_dates[0][0]);return n<i?-1:n>i?1:0}{if(null==t.dates||null==t.dates.contexte||null==t.dates.contexte[this.temporalId]||null==t.dates.contexte[this.temporalId].liste_dates||0==t.dates.contexte[this.temporalId].liste_dates.length)return 1;if(null==e.dates||null==e.dates.contexte||null==e.dates.contexte[this.temporalId]||null==e.dates.contexte[this.temporalId].liste_dates||0==e.dates.contexte[this.temporalId].liste_dates.length)return-1;let n=new Date(t.dates.contexte[this.temporalId].liste_dates[0][0]),i=new Date(e.dates.contexte[this.temporalId].liste_dates[0][0]);return n<i?-1:n>i?1:0}});for(let e of this.activities)if(!e.filtered){e.focus=!0,this.map&&this.map.selectFeature
1(e.nid);break}setTimeout(()=>{this.checkPositions()},250),Xu(this.platformId)||this.deviceQueryService.isMobile()||(this.deviceQueryService.ignoreMenu=!0,window.scrollY>this.activityWrapper.nativeElement.offsetTop&&window.scrollTo({top:this.activityWrapper.nativeElement.offsetTop,left:0,behavior:"smooth"}),setTimeout(()=>{this.deviceQueryService.ignoreMenu=!1},1e3)),this.computePois()}computePois(){let t=[];for(let e of this.activities)if(!e.filtered)for(let n in e.geolocalisation){let i,r=e.geolocalisation[n];i=r.type&&r.type.calque_mapbox?"pin_"+r.type.calque_mapbox:"pin_depart","1"==e.highlight&&(i+="_highlight");let s={id:e.nid+"-"+n,onlyShowIfSelected:"1",icon:i,coords:[r.lon,r.lat],twothirds:!1};this.deviceQueryService.isMobile()&&(s.twothirds=!0),t.push(s)}this.mapInited?this.map.setPois(t):this.waitingPois=t}countItemsWithFilters(t){let e=0;for(let n of this.activities){e++;let i=Object.keys(n.filtre_tids);for(let n of t){let t=0==n.length;for(let e of n)if(-1!=i.indexOf(e)){t=!0;break}if(!t){e--;break}}}return e}cardClicked(t){let e=!t.open;for(let n of this.activities)n.open=!1;t.open=e,e?(setTimeout(()=>{this.deviceQueryService.ignoreMenu=!0;let e=document.getElementById("activity_header_"+t.nid).getBoundingClientRect();0==this.deviceQueryService.isMobile()&&window.scrollTo({top:e.top+window.scrollY-95,left:0,behavior:"smooth"}),setTimeout(()=>{this.deviceQueryService.ignoreMenu=!1},500)},220),this.map&&this.map.selectFeature(t.nid),this.deviceQueryService.isMobile()&&(document.getElementById("activities_content").scrollTo({top:0,left:document.getElementById("act-card-"+t.nid).offsetLeft}),this.isActOpen=!0,this.isActOpen3=!0,this.isActOpen4=!0,setTimeout(()=>{this.isActOpen2=!0,window.scrollTo(0,0),this.actOpen.emit(!0)},500))):(this.map&&!this.deviceQueryService.isMobile()&&(this.map.resizeFeatures(t.nid,!1,!0),this.deviceQueryService.ignoreMenu=!0,window.scrollTo({top:document.getElementById("act-card-"+t.nid).offsetTop+window.innerHeight-91,left:0}),setTimeout(()=>{this.deviceQueryService.ignoreMenu=!1},250)),setTimeout(()=>{this.deviceQueryService.isMobile()&&(this.isActOpen=!1,setTimeout(()=>{this.isActOpen2=!1,this.isActOpen3=!1,this.actOpen.emit(!1),this.deviceQueryService.ignoreMenu=!0,setTimeout(()=>{window.scrollTo({top:this.activityWrapper.nativeElement.offsetTop}),document.getElementById("activities_content").scrollTo({top:0,left:document.getElementById("act-card-"+t.nid).offsetLeft}),this.isActOpen4=!1},10),setTimeout(()=>{this.deviceQueryService.ignoreMenu=!1},100)},250))},100)),setTimeout(()=>{this.checkPositions()},250)}closeAllActs(){for(let t of this.activities)if(t.open){this.cardClicked(t);break}}likeClicked(t){t.liked=!t.liked,t.liked?this.persistantDataService.setItem("activity_liked_"+t.nid,Date.now()):this.persistantDataService.removeItem("activity_liked_"+t.nid),this.persistantDataService.save()}mapClicked(t){let e=t.split("-")[0];for(let n of this.activities)if(n.nid==e&&!n.open){this.cardClicked(n);break}}cardHover(t){t.hover=!0,this.map&&0==t.open&&this.map.selectFeature(t.nid)}cardHout(t){t.hover=!1,this.map&&0==t.open&&0==t.focus&&this.map.resizeFeatures(t.nid,!0,!1);for(let e of this.activities)if(e.focus){this.map.selectFeature(e.nid);break}}linkClicked(t,e){this.router.navigateByUrl(e.url),t.preventDefault(),t.stopPropagation()}initMap(){if(!Xu(this.platformId)){if(this.mapInited=!0,this.map=this.mapStashService.requestMap(this.mapContainer),this.map.registerClickCallback(t=>{this.mapClicked(t)}),this.map.setParameters(this.map_infos),this.waitingPois.length>0){this.map.setPois(this.waitingPois),this.waitingPois=[];for(let t of this.activities)if(t.focus){this.map.selectFeature(t.nid);break}}this.actContentScroll()}}getActSloganStyle(t){return Xu(this.platformId)?"":(""==t.computedSloganStyle&&Promise.resolve().then(()=>{let e=document.getElementById("act-slogan-"+t.nid);if(e){let n=e.getElementsByClassName("slogan_text")[0];if(n){let e=n.getBoundingClientRect().width;e>0&&(t.computedSloganStyle="width:"+e+"px;height:"+e+"px;")}}}),t.computedSloganStyle)}actContentScroll(){if(this.deviceQueryService.isMobile()&&!this.isActOpen)for(let t of this.activities)if(!t.filtered){let e=document.getElementById("act-card-"+t.nid).getBoundingClientRect();e.left>-window.innerWidth/2&&e.left<window.innerWidth/2&&e.right>
1window.innerWidth/2?t.focus||(this.map.selectFeature(t.nid),t.focus=!0):t.focus&&(t.focus=!1)}}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(bb),wo(Yx),wo(VM),wo(Pb),wo(Mb),wo(za))},t.\u0275cmp=Ut({type:t,selectors:[["app-activites"]],viewQuery:function(t,e){if(1&t&&(nc(qT,1),nc(GT,1),nc(ZT,1),nc(WT,1)),2&t){let t;ec(t=ic())&&(e.filtersElem=t.first),ec(t=ic())&&(e.mapContainer=t.first),ec(t=ic())&&(e.activityWrapper=t.first),ec(t=ic())&&(e.actCards=t)}},inputs:{fixedMenu:"fixedMenu",languageData:"languageData",texts:"texts",data:"data"},outputs:{actOpen:"actOpen"},decls:1,vars:1,consts:[[4,"ngIf"],["id","activities_wrapper"],["wrapper",""],["id","activities_filters_wrapper"],[1,"filters",3,"ngClass"],["filtersElem",""],[3,"pDataId","inverse","filtersData","filtersTexts","parentComponent","filtersChanged",4,"ngIf"],["class","filters",3,"ngClass",4,"ngIf"],["id","activities_grid",1,"bib_grid_desktop_only",3,"ngClass"],["id","activities_content",3,"ngClass","scroll"],["class","activities_card_cont",3,"ngClass","id",4,"ngFor","ngForOf"],["id","activities_map_wrapper",3,"ngClass"],["id","activities_map_container",3,"ngClass"],["mapcontainer",""],["inscroll","",3,"ngClass"],[1,"edito"],[3,"blocs","hasChapo","texts",4,"ngIf"],[3,"ngClass"],[3,"data","texts",4,"ngIf"],[3,"pDataId","inverse","filtersData","filtersTexts","parentComponent","filtersChanged"],["id","activities_arrow_cont",3,"click"],["id","activities_arrow","src","/assets/img/arrow_back.svg"],[1,"activities_card_cont",3,"ngClass","id"],["actcard",""],[3,"act","texts","openable","fromacts","nobottom","cardClicked","likeClicked"],[3,"blocs","hasChapo","texts"],[3,"data","texts"]],template:function(t,e){1&t&&xo(0,oE,19,28,"section",0),2&t&&Co("ngIf",e.loaded)},directives:[zu,Tu,Iu,$M,xO,Sw,VT,$T],styles:[".filters[_ngcontent-%COMP%]{position:sticky;top:0;width:100%;height:100vh;z-index:100;pointer-events:none;transition:top .25s ease-in-out}.edito[_ngcontent-%COMP%]{background-color:#f4f3f4}.filters.hidden[_ngcontent-%COMP%]{display:none}.filters.fixed_menu[_ngcontent-%COMP%]{top:63px}@media (min-width:992px){.filters.fixed_menu[_ngcontent-%COMP%]{top:96px}}#activities_arrow_cont[_ngcontent-%COMP%]{height:6.25rem;background:linear-gradient(180deg,#131313,#1313131a 55.73%,#1313131a 85.94%,#13131300);opacity:.6;pointer-events:all}#activities_arrow[_ngcontent-%COMP%]{color:#fff;padding:1rem;pointer-events:all;opacity:1}#activities_wrapper[_ngcontent-%COMP%]{position:relative;width:100%;min-height:120vh}#activities_wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#activities_map_wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}#activities_map_wrapper.act_open[_ngcontent-%COMP%]{position:fixed;z-index:11}#activities_filters_wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}#activities_filters_wrapper.hidden[_ngcontent-%COMP%]{display:none}#activities_grid[_ngcontent-%COMP%]{position:sticky;top:0;min-height:100vh;z-index:12}@media (min-width:992px){#activities_grid[_ngcontent-%COMP%]{position:relative;padding-bottom:6.25rem}}#activities_map_container[_ngcontent-%COMP%]{position:sticky;align-self:flex-start;top:0;left:0;width:100%;height:100vh}#activities_map_container.act_open[_ngcontent-%COMP%]{top:0}#activities_content[_ngcontent-%COMP%]{box-sizing:border-box;position:relative;display:flex;overflow-x:scroll;z-index:10;min-height:100vh;align-items:flex-end;padding-right:20px;scroll-snap-type:x mandatory;scroll-padding:0 40px 0 0}@media (min-width:992px){#activities_content[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7;flex-wrap:wrap;overflow:visible;margin-top:135px;align-items:flex-start;padding:0;min-height:120vh;scroll-snap-type:none}}#activities_content[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}#activities_content.padding[_ngcontent-%COMP%]{padding-bottom:0;padding-top:6.25rem}#activities_content.act_open[_ngcontent-%COMP%]{overflow-x:hidden}.activities_card_cont[_ngcontent-%COMP%]{flex:0 0 auto;position:relative;bottom:20px;scroll-snap-align:center;width:calc(11 * ((100vw - 40px - 77px) / 12) + calc(11 * 7px));margin-right:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));max-width:500px}@media (min-width:992px){.activities_card_cont[_ngcontent-%COMP%]{width:calc(calc(11 + 11) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.activities_card_cont[_ngcontent-%COMP%]{width:calc(calc(11 + 11) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.activities_card_cont[_ngcontent-%COMP%]{width:calc(calc(11 + 11) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.activities_card_cont[_ngcontent-%COMP%]{width:calc(calc(55px * 11) + calc(60px * 11))}}@media (min-width:992px){.activities_card_cont[_ngcontent-%COMP%]{margin-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.activities_card_cont[_ngcontent-%COMP%]{margin-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.activities_card_cont[_ngcontent-%COMP%]{margin-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.activities_card_cont[_ngcontent-%COMP%]{margin-right:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.activities_card_cont[_ngcontent-%COMP%]{scroll-snap-align:none;max-width:none;bottom:auto;width:100%;transition:none}}.activities_card_cont.act_open[_ngcontent-%COMP%]{max-width:none;width:100vw;margin-right:0;bottom:0}@media (min-width:992px){.activities_card_cont.act_open[_ngcontent-%COMP%]{bottom:auto;width:100%}}.hidden[_ngcontent-%COMP%]{display:none}"],data:{animation:[Qb]}}),t})();const lE=["filtersElem"];function cE(t,e){if(1&t){const t=Io();Mo(0,"app-filters",15),Lo("filtersChanged",function(e){return Ae(t),Bo(2).applyFilters(e)}),Oo()}if(2&t){const t=Bo(2);Co("pDataId","activites-groupe")("filtersData",t.filters)("filtersTexts",t.texts)("parentComponent",t)}}function uE(t,e){if(1&t){const t=Io();Mo(0,"div",16),Mo(1,"img",17),Lo("click",function(){return Ae(t),Bo(2).closeAllActs()}),Oo(),Oo()}}function hE(t,e){if(1&t&&So(0,"app-contact",18),2&t){const t=Bo(2);Co("data",t.contactData)("texts",t.texts)}}const dE=function(t){return{hidden:t}};function pE(t,e){if(1&t){const t=Io();Mo(0,"div",19),Mo(1,"app-card-activity",20),Lo("cardClicked",function(e){return Ae(t),Bo(2).cardClicked(e)}),Oo(),Oo()}if(2&t){const t=e.$implicit,n=Bo(2);Co("ngClass",Il(5,dE,t.filtered)),Qr(1),Co("act",t)("texts",n.texts)("openable",!0)("likeable",!1)}}function mE(t,e){if(1&t){const t=Io();Mo(0,"div",19),Mo(1,"app-card-activity",20),Lo("cardClicked",function(e){return Ae(t),Bo(2).cardClicked(e)}),Oo(),Oo()}if(2&t){const t=e.$implicit,n=Bo(2);Co("ngClass",Il(5,dE,t.filtered)),Qr(1),Co("act",t)("texts",n.texts)("openable",!0)("likeable",!1)}}function gE(t,e){if(1&t&&So(0,"app-edito-builder",21),2&t){const t=Bo(2);Co("blocs",t.editoData)("hasChapo",!0)("texts",t.texts)}}function fE(t,e){if(1&t&&So(0,"app-vous-aimerez-aussi",18),2&t){const t=Bo(2);Co("data",t.carouselData)("texts",t.texts)}}function _E(t,e){if(1&t&&(Mo(0,"section",1),Mo(1,"div",2),Mo(2,"div",3),Mo(3,"div",4,5),xo(5,cE,1,4,"app-filters",6),Oo(),xo(6,uE,2,0,"div",7),Oo(),Mo(7,"div",8),xo(8,hE,1,2,"app-contact",9),Oo(),Mo(9,"div",10),Mo(10,"div",11),xo(11,pE,2,7,"div",12),Oo(),Mo(12,"div",13),xo(13,mE,2,7,"div",12),Oo(),Oo(),Oo(),xo(14,gE,1,3,"app-edito-builder",14),xo(15,fE,1,2,"app-vous-aimerez-aussi",9),Oo()),2&t){const t=Bo();Qr(3),Co("ngClass",Il(8,dE,t.isActOpen)),Qr(2),Co("ngIf",null!=t.filters),Qr(1),Co("ngIf",t.isActOpen),Qr(2),Co("ngIf",t.contactData),Qr(3),Co("ngForOf",t.activities_left),Qr(2),Co("ngForOf",t.activities_right),Qr(1),Co("ngIf",t.editoData),Qr(1),Co("ngIf",t.carouselData)}}let vE=(()=>{class t{constructor(t,e,n,i){this.platformId=t,this.api=e,this.router=n,this.deviceQueryService=i,this.loaded=!1,this.activities=new Array,this.activities_left=new Array,this.activities_right=new Array,this.filters=null,this.isActOpen=!1,this.stickyFilters=!1,this.stickyFiltersHeight=100,this.stickyFingersStart=0,this.breakpoint=0}set data(t){if(this.loaded=!1,t&&t.activites){for(var e of t.activites)e.filtered=!1,this.activities.push(e);this.filters=t.filtres,this.contactData=t.contact,this.editoData=t.composants_editos,this.carouselData=t.vous_aimerez_aussi.contenus,this.chapo=t.chapo,this.loaded=!0}}ngOnInit(){}applyFilters(t){this.temporalId=-1;for(let n of this.activities){n.filtered=!1;let e=Object.keys(n.filtre_tids);for(let i of t){let t=0==i.length;for(let n of i)if(-1!=e.indexOf(n)){t=!0;break}if(!t){n.filtered=!0;break}}if(!n.filtered){let e=!1,i=!1;if(n.dates&&n.dates.contexte){let r=Object.keys(n.dates.contexte);for(let i of t)for(let t of i)if(-1!=r.indexOf(t)){e=!0,this.temporalId=t,n.contextualDates=n.dates.contexte[t].texte;break}for(let e of t)for(let t of e)for(let e of n.duree)if(e.tid==t){i=!0;break}}e||(n.contextualDates=n.dates&&n.dates.contexte&&n.dates.contexte[0]?n.dates.contexte[0].texte:"")}}this.activities.sort((t,e)=>{if(t.filtered&&!e.filtered)return 1;if(e.filtered&&!t.filtered)return-1;if(t.filtered&&e.filtered)return 0;if(-1==this.temporalId){if(null==t.dates||null==t.dates.liste_dates||0==t.dates.liste_dates.length)return 1;if(null==e.dates||null==e.dates.liste_dates||0==e.dates.liste_dates.length)return-1;let n=new Date(t.dates.liste_dates[0][0]),i=new Date(e.dates.liste_dates[0][0]);return n<i?-1:n>i?1:0}{if(null==t.dates||null==t.dates.contexte||null==t.dates.contexte[this.temporalId]||null==t.dates.contexte[this.temporalId].liste_dates||0==t.dates.contexte[this.temporalId].liste_dates.length)return 1;if(null==e.dates||null==e.dates.contexte||null==e.dates.contexte[this.temporalId]||null==e.dates.contexte[this.temporalId].liste_dates||0==e.dates.contexte[this.temporalId].liste_dates.length)return-1;let n=new Date(t.dates.contexte[this.temporalId].liste_dates[0][0]),i=new Date(e.dates.contexte[this.temporalId].liste_dates[0][0]);return n<i?-1:n>i?1:0}}),this.activities_left=[],this.activities_right=[];let e=0;for(let n of this.activities)n.filtered||(e%2==0?this.activities_left.push(n):this.activities_right.push(n),e++)}countItemsWithFilters(t){let e=0;for(let n of this.activities){e++;let i=Object.keys(n.filtre_tids);for(let n of t){let t=0==n.length;for(let e of n)if(-1!=i.indexOf(e)){t=!0;break}if(!t){e--;break}}}return e}cardClicked(t){let e=!t.open;for(let n of this.activities)n.open=!1;t.open=e}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(bb),wo(Yx),wo(Pb))},t.\u0275cmp=Ut({type:t,selectors:[["app-activites-groupe"]],viewQuery:function(t,e){if(1&t&&nc(lE,1),2&t){let t;ec(t=ic())&&(e.filtersElem=t.first)}},inputs:{languageData:"languageData",texts:"texts",data:"data"},decls:1,vars:1,consts:[["id","section_activites_groupe","inscroll","",4,"ngIf"],["id","section_activites_groupe","inscroll",""],["id","activities_wrapper"],["id","activities_filters_wrapper"],[1,"filters",3,"ngClass"],["filtersElem",""],[3,"pDataId","filtersData","filtersTexts","parentComponent","filtersChanged",4,"ngIf"],["class","filters",4,"ngIf"],["id","activities_contact"],[3,"data","texts",4,"ngIf"],["id","activities_grid","inscroll","",1,"bib_grid"],["id","activites_cont_left"],["class","activities_card_cont",3,"ngClass",4,"ngFor","ngForOf"],["id","activites_cont_right"],[3,"blocs","hasChapo","texts",4,"ngIf"],[3,"pDataId","filtersData","filtersTexts","parentComponent","filtersChanged"],[1,"filters"],["id","activities_arrow","src","/assets/img/arrow_back.svg",3,"click"],[3,"data","texts"],[1,"activities_card_cont",3,"ngClass"],[3,"act","texts","openable","likeable","cardClicked"],[3,"blocs","hasChapo","texts"]],template:function(t,e){1&t&&xo(0,_E,16,10,"section",0),2&t&&Co("ngIf",e.loaded)},directives:[zu,$M,Tu,Iu,xO,_T,Sw,VT,$T],styles:["#section_activites_groupe[_ngcontent-%COMP%]{background-color:#f4f3f4}.filters[_ngcontent-%COMP%]{position:sticky;top:0;width:100%;height:100vh;z-index:100;pointer-events:none}.filters.hidden[_ngcontent-%COMP%]{display:none}#activities_arrow[_ngcontent-%COMP%]{color:#fff;padding:1rem;pointer-events:all}#activities_grid[_ngcontent-%COMP%]{min-height:100vh;z-index:10}#activities_wrapper[_ngcontent-%COMP%]{position:relative;width:100%;min-height:100vh;margin-bottom:60px}#activities_filters_wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}#activities_filters_wrapper.hidden[_ngcontent-%COMP%]{display:none}#activities_contact[_ngcontent-%COMP%]{padding-top:118px;margin-bottom:60px}@media (min-width:992px){#activities_contact[_ngcontent-%COMP%]{padding-top:calc(4.81rem + 105px);margin-bottom:6.25rem}}app-card-activity[_ngcontent-%COMP%]{width:100%}#activites_cont_left[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;display:flex;flex-direction:column}@media (min-width:992px){#activites_cont_left[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7}}#activites_cont_right[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;display:flex;flex-direction:column}@media (min-width:992px){#activites_cont_right[_ngcontent-%COMP%]{grid-column-start:7;grid-column-end:13}}.activities_card_cont[_ngcontent-%COMP%]{width:100%;margin-bottom:30px}@media (min-width:992px){.activities_card_cont[_ngcontent-%COMP%]{margin-bottom:0}}.activities_card_cont.hidden[_ngcontent-%COMP%]{display:none}"]}),t})();function yE(t){return"object"==typeof t&&null!=t&&1===t.nodeType}
vendor: 1,854 bytes, line 1
1function xE(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function bE(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return xE(n.overflowY,e)||xE(n.overflowX,e)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return!1}function wE(t,e,n,i,r,s,o,a){return s<t&&o>e||s>t&&o<e?0:s<=t&&a<=n||o>=e&&a>=n?s-t-i:o>e&&a<n||s<t&&a>n?o-e+r:0}var CE=function(t,e){var n=window,i=e.scrollMode,r=e.block,s=e.inline,o=e.boundary,a=e.skipOverflowHiddenElements,l="function"==typeof o?o:function(t){return t!==o};if(!yE(t))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,u=[],h=t;yE(h)&&l(h);){if((h=h.parentElement)===c){u.push(h);break}null!=h&&h===document.body&&bE(h)&&!bE(document.documentElement)||null!=h&&bE(h,a)&&u.push(h)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,f=t.getBoundingClientRect(),_=f.height,v=f.width,y=f.top,x=f.right,b=f.bottom,w=f.left,C="start"===r||"nearest"===r?y:"end"===r?b:y+_/2,P="center"===s?w+v/2:"end"===s?x:w,M=[],O=0;O<u.length;O++){var S=u[O],k=S.getBoundingClientRect(),T=k.height,E=k.width,I=k.top,A=k.right,z=k.bottom,D=k.left;if("if-needed"===i&&y>=0&&w>=0&&b<=p&&x<=d&&y>=I&&b<=z&&w>=D&&x<=A)return M;var L=getComputedStyle(S),R=parseInt(L.borderLeftWidth,10),F=parseInt(L.borderTopWidth,10),B=parseInt(L.borderRightWidth,10),N=parseInt(L.borderBottomWidth,10),U=0,H=0,j="offsetWidth"in S?S.offsetWidth-S.clientWidth-R-B:0,V="offsetHeight"in S?S.offsetHeight-S.clientHeight-F-N:0;
1if(c===S)U="start"===r?C:"end"===r?C-p:"nearest"===r?wE(g,g+p,p,F,N,g+C,g+C+_,_):C-p/2,H="start"===s?P:"center"===s?P-d/2:"end"===s?P-d:wE(m,m+d,d,R,B,m+P,m+P+v,v),U=Math.max(0,U+g),H=Math.max(0,H+m);else{U="start"===r?C-I-F:"end"===r?C-z+N+V:"nearest"===r?wE(I,z,T,F,N+V,C,C+_,_):C-(I+T/2)+V/2,H="start"===s?P-D-R:"center"===s?P-(D+E/2)+j/2:"end"===s?P-A+B+j:wE(D,A,E,R,B+j,P,P+v,v);var $=S.scrollLeft,q=S.scrollTop;C+=q-(U=Math.max(0,Math.min(q+U,S.scrollHeight-T+V))),P+=$-(H=Math.max(0,Math.min($+H,S.scrollWidth-E+j)))}M.push({el:S,top:U,left:H})}return M};function PE(t){return t===Object(t)&&0!==Object.keys(t).length}var ME,OE=function(t,e){var n=t.isConnected||t.ownerDocument.documentElement.contains(t);if(PE(e)&&"function"==typeof e.behavior)return e.behavior(n?CE(t,e):[]);if(n){var i=function(t){return!1===t?{block:"end",inline:"nearest"}:PE(t)?t:{block:"start",inline:"nearest"}}(e);return function(t,e){void 0===e&&(e="auto");var n="scrollBehavior"in document.body.style;t.forEach(function(t){var i=t.el,r=t.top,s=t.left;i.scroll&&n?i.scroll({top:r,left:s,behavior:e}):(i.scrollTop=r,i.scrollLeft=s)})}(CE(t,i),i.behavior)}},SE=function(){return ME||(ME="performance"in window?performance.now.bind(performance):Date.now),ME()};function kE(t){var e=SE(),n=Math.min((e-t.startTime)/t.duration,1),i=t.ease(n),r=t.startX+(t.x-t.startX)*i,s=t.startY+(t.y-t.startY)*i;t.method(r,s),r!==t.x||s!==t.y?requestAnimationFrame(function(){return kE(t)}):t.cb()}function TE(t,e,n,i,r,s){var o,a;void 0===i&&(i=600),void 0===r&&(r=function(t){return 1+--t*t*t*t*t}),o=t.scrollLeft,a=t.scrollTop,kE({scrollable:t,method:function(e,n){t.scrollLeft=Math.ceil(e),t.scrollTop=Math.ceil(n)},startTime:SE(),startX:o,startY:a,x:e,y:n,duration:i,ease:r,cb:s})}var EE=function(t,e){var n=e||{};return function(t){return t&&!t.behavior||"smooth"===t.behavior}(n)?OE(t,{block:n.block,inline:n.inline,scrollMode:n.scrollMode,boundary:n.boundary,behavior:function(t){return Promise.all(t.reduce(function(t,e){var i=e.el,r=e.left,s=e.top,o=i.scrollLeft,a=i.scrollTop;return o===r&&a===s?t:[].concat(t,[new Promise(function(t){return TE(i,r,s,n.duration,n.ease,function(){return t({el:i,left:[o,r],top:[a,s]})})})])},[]))}}):Promise.resolve(OE(t,e))};const IE=["filters"],AE=["wrapper"],zE=["searchcards"];function DE(t,e){1&t&&So(0,"div",18)}function LE(t,e){if(1&t){const t=Io();Mo(0,"app-filters",19,20),Lo("filtersChanged",function(e){return Ae(t),Bo(2).applyFilters(e)}),Oo()}if(2&t){const t=Bo(2);Co("inverse",!1)("search",!0)("filtersData",t.filtersData)("filtersTexts",t.texts)("sortData",t.sortData)("parentComponent",t)}}function RE(t,e){if(1&t){const t=Io();Mo(0,"div",21),Mo(1,"div",22),Lo("click",function(){return Ae(t),Bo(2).prependPage()}),Bl(2,"safe"),Oo(),Oo()}if(2&t){const t=Bo(2);Qr(1),Co("innerHtml",Nl(2,1,t.texts["Voir les r\xe9sultats pr\xe9c\xe9dents"],"html"),Ki)}}function FE(t,e){1&t&&(Mo(0,"div",23),rn(),Mo(1,"svg",24),So(2,"circle",25),Oo(),Oo())}function BE(t,e){1&t&&So(0,"div",26),2&t&&Co("innerHtml",Bo(2).texts["Aucun r\xe9sultat n\u2019est associ\xe9 \xe0 votre recherche."],Ki)}function NE(t,e){if(1&t&&So(0,"app-card-ressource",31),2&t){const t=Bo().$implicit,e=Bo(2);Co("fullwidth",e.deviceQueryService.isMobile())("fromSearch",e.searchDone)("data",t)}}function UE(t,e){if(1&t&&So(0,"app-card-dossier",31),2&t){const t=Bo().$implicit,e=Bo(2);Co("fullwidth",e.deviceQueryService.isMobile())("fromSearch",e.searchDone)("data",t)}}function HE(t,e){if(1&t){const t=Io();Mo(0,"div",27,28),Lo("click",function(){Ae(t);const n=e.$implicit;return Bo(2).cardClick(n)}),ko(2,29),xo(3,NE,1,3,"app-card-ressource",30),xo(4,UE,1,3,"app-card-dossier",30),To(),Oo()}if(2&t){const t=e.$implicit;yo("data-id",t.nid||t.mid),Qr(2),Co("ngSwitch",t.type_contenu),Qr(1),Co("ngSwitchCase","ressource"),Qr(1),Co("ngSwitchCase","dossier_thematique")}}function jE(t,e){1&t&&So(0,"div",32)}function VE(t,e){if(1&t){const t=Io();Mo(0,"div",39),Lo("click",function(){return Ae(t),Bo(3).goPage(1)}),da(1,"1"),Oo()}}function $E(t,e){1&t&&(Mo(0,"div",40),da(1,"..."),Oo())}function qE(t,e){if(1&t){const t=Io();Mo(0,"div",39),Lo("click",function(){Ae(t);const e=Bo(3);return e.goPage(e.currentPage-1)}),da(1),Oo()}if(2&t){const t=Bo(3);Qr(1),pa(t.currentPage-1)}}function GE(t,e){if(1&t){const t=Io();Mo(0,"div",39),Lo("click",function(){Ae(t);const e=Bo(3);return e.goPage(e.currentPage+1)}),da(1),Oo()}if(2&t){const t=Bo(3);Qr(1),pa(t.currentPage+1)}}function ZE(t,e){1&t&&(Mo(0,"div",40),da(1,"..."),Oo())}function WE(t,e){if(1&t){const t=Io();Mo(0,"div",39),Lo("click",function(){Ae(t);const e=Bo(3);return e.goPage(e.totalPages)}),da(1),Oo()}if(2&t){const t=Bo(3);Qr(1),pa(t.totalPages)}}const XE=function(t){return{disabled:t}};function QE(t,e){if(1&t){const t=Io();Mo(0,"div",33),Mo(1,"div",34),Lo("click",function(){return Ae(t),Bo(2).prevPage()}),Oo(),xo(2,VE,2,0,"div",35),xo(3,$E,2,0,"div",36),xo(4,qE,2,1,"div",35),Mo(5,"div",37),da(6),Oo(),xo(7,GE,2,1,"div",35),xo(8,ZE,2,0,"div",36),xo(9,WE,2,1,"div",35),Mo(10,"div",38),Lo("click",function(){return Ae(t),Bo(2).nextPage()}),Oo(),Oo()}if(2&t){const t=Bo(2);Qr(1),Co("ngClass",Il(9,XE,1==t.currentPage)),Qr(1),Co("ngIf",t.currentPage>2),Qr(1),Co("ngIf",t.currentPage>3),Qr(1),Co("ngIf",t.currentPage>1),Qr(2),pa(t.currentPage),Qr(1),Co("ngIf",t.currentPage<t.totalPages),Qr(1),Co("ngIf",t.currentPage<t.totalPages-2),Qr(1),Co("ngIf",t.currentPage<t.totalPages-1),Qr(1),Co("ngClass",Il(11,XE,t.currentPage>=t.totalPages))}}function KE(t,e){if(1&t){const t=Io();Mo(0,"div",41),Mo(1,"div",22),Lo("click",function(){return Ae(t),Bo(2).nextPage()}),Bl(2,"safe"),Oo(),Oo()}if(2&t){const t=Bo(2);Qr(1),Co("innerHtml",Nl(2,1,t.texts["Voir les r\xe9sultats suivants"],"html"),Ki)}}const YE=function(t){return{fixed_menu:t}},JE=function(t){return{margin:t}};function tI(t,e){if(1&t&&(Mo(0,"section",1),Mo(1,"div",2,3),xo(3,DE,1,0,"div",4),Mo(4,"div",5),Mo(5,"div",6,7),xo(7,LE,2,6,"app-filters",8),Oo(),Oo(),Mo(8,"div",9),xo(9,RE,3,4,"div",10),Mo(10,"div",11),xo(11,FE,3,0,"div",12),xo(12,BE,1,1,"div",13),xo(13,HE,5,4,"div",14),xo(14,jE,1,0,"div",15),Oo(),xo(15,QE,11,13,"div",16),xo(16,KE,3,4,"div",17),Oo(),Oo(),Oo()),2&t){const t=Bo();Qr(3),Co("ngIf",t.searching),Qr(2),Co("ngClass",Il(11,YE,t.fixedMenu)),Qr(2),Co("ngIf",t.filtersData),Qr(2),Co("ngIf",t.lastPrependPage>1&&t.showPrevious),Qr(1),Co("ngClass",Il(13,JE,!t.showPrevious||1==t.lastPrependPage)),Qr(1),Co("ngIf",!t.filtersData||t.pendingForceFilters),Qr(1),Co("ngIf",t.filtersData&&0==t.cards.length&&!t.pendingForceFilters),Qr(1),Co("ngForOf",t.cards),Qr(1),Co("ngForOf",t.fillerCards),Qr(1),Co("ngIf",t.cards.length>0),Qr(1),Co("ngIf",t.currentPage<t.totalPages)}}let eI=(()=>{class t{constructor(t,e,n,i,r,s,o,a){this.platformId=t,this.api=e,this.pdata=n,this.router=i,this.route=r,this.search=s,this.deviceQueryService=o,this.changes=a,this.loaded=!1,this.autocompleteURL="",this.searchURL="",this.cards=[],this.fillerCards=[],this.searchDone=!1,this.nbRes=0,this.searching=!1,this.searchAppend=!1,this.searchPrepend=!1,this.showPrevious=!1,this.currentPage=1,this.lastPrependPage=1,this.searchObserve=s.searchObservable().subscribe(t=>{this.searchData?(this.scrollId||(this.currentPage=1,this.showPrevious=!1),this.doSearch(t)):this.pendingSearch=t})}set data(t){this.loaded=!0,t&&t.results&&(this.filtersData=t.results.filtres,this.cards=t.results.cartes,this.sortData=t.results.sort,this.doPagination(t.results.pager),this.padCards())}ngOnInit(){}ngAfterViewInit(){let t=this.search.getBackData();if(t){let e=this.search.getLastSearch();if(this.searchDone=!0,""==e)return this.changes.detectChanges(),void setTimeout(()=>{this.scrollToCard(t[0])},500);{let n=e.substr(1).split("&"),i="";for(let t of n){let e=t.split("=");"search"==e[0]?i=e[1]:"page"==e[0]&&(this.currentPage=parseInt(e[1])+1,this.currentPage>1&&this.deviceQueryService.isMobile()&&(this.lastPrependPage=this.currentPage,this.showPrevious=!0))}setTimeout(()=>{this.pendingForceFilters=e,this.scrollId=t[0],this.search.setSearchText(i)},200)}}else this.pendingSearch?setTimeout(()=>{this.search.setSearchText(this.pendingSearch),this.pendingSearch=null},200):setTimeout(()=>{this.search.setSearchText("")},200)}scrollToCard(t){if(Xu(this.platformId))return;let e=this.searchcards.toArray();for(let n of e)if(n.nativeElement.getAttribute("data-id")==t){let t=n.nativeElement.getBoundingClientRect().top-150;window.scrollTo({top:t,left:0})}}ngOnDestroy(){this.searchObserve.unsubscribe()}doSearch(t=null){let e="?search=";if(e+=t||this.search.getSearchText(),this.filtersComp){let t=this.filtersComp.getFiltersForSearch();for(let n of t)if(n.nbActive>0){let t=0;e+="&"+n.keyword+"=";for(let i of n.filters)i.active&&(t>0&&(e+=","),t++,e+=i.id)}}this.searchPrepend?(this.lastPrependPage--,e+="&page="+(this.lastPrependPage-1)):e+="&page="+(this.currentPage-1),console.log("Starting search "+e),this.search.setLastSearch(e),this.searching=!0,this.api.callAction(this.searchData.search+""+e,!0).subscribe(t=>{console.log("search result"),console.log(t),this.searching=!1,this.searchDone=!0,"done"==this.pendingForceFilters&&
1(this.pendingForceFilters=null),this.pendingForceFilters||(this.searchAppend?(this.cards=this.cards.concat(t.cartes),this.searchAppend=!1):this.searchPrepend?(this.cards=t.cartes.concat(this.cards),this.searchPrepend=!1):this.cards=t.cartes,this.doPagination(t.pager)),this.filtersData?(this.filtersComp.updateCount(this.nbRes),this.filtersComp.updateFilters(t.filtres)):(this.filtersData=t.filtres,this.sortData=t.sort,setTimeout(()=>{this.filtersComp.updateCount(this.nbRes),this.pendingForceFilters&&(this.filtersComp.forceFilters(this.pendingForceFilters),this.pendingForceFilters="done",this.doSearch())},200)),this.padCards(),this.scrollId&&!this.pendingForceFilters&&(this.changes.detectChanges(),setTimeout(()=>{this.scrollToCard(this.scrollId),this.scrollId=null},500))})}applyFilters(t){if(!this.lastFilters)return this.lastFilters=!0,void(this.pendingSearch&&!this.search.getBackData()&&this.doSearch(this.pendingSearch));this.currentPage=1,this.showPrevious=!1,this.doSearch(this.search.getSearchText())}doPagination(t){this.nbRes=t.total_items,this.currentPage=t.current_page+1,this.totalPages=t.total_pages}padCards(){this.fillerCards=[];for(let t=this.cards.length%4;t<4;t++)this.fillerCards.push("")}countItemsWithFilters(t){return this.nbRes}cardClick(t){this.searchObserve.unsubscribe(),this.search.setBackData([t.nid||t.mid,t.lien]),this.router.navigateByUrl(t.lien)}nextPage(){this.currentPage++,this.doScroll(),this.searchAppend=this.deviceQueryService.isMobile(),this.doSearch()}prevPage(){this.currentPage--,this.doScroll(),this.doSearch()}prependPage(){this.scrollId=this.cards[0].nid||this.cards[0].mid,this.searchPrepend=!0,this.doSearch()}goPage(t){this.currentPage=t,this.doScroll(),this.doSearch()}doScroll(){this.deviceQueryService.isMobile()||(this.deviceQueryService.ignoreMenu=!0,EE(this.wrapper.nativeElement,{block:"start"}).then(()=>{setTimeout(()=>{this.deviceQueryService.ignoreMenu=!1},100)}))}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(bb),wo(Mb),wo(Yx),wo(Ay),wo(Ob),wo(Pb),wo(nl))},t.\u0275cmp=Ut({type:t,selectors:[["app-recherche"]],viewQuery:function(t,e){if(1&t&&(nc(IE,1),nc(AE,1),nc(zE,1)),2&t){let t;ec(t=ic())&&(e.filtersComp=t.first),ec(t=ic())&&(e.wrapper=t.first),ec(t=ic())&&(e.searchcards=t)}},inputs:{fixedMenu:"fixedMenu",searchData:"searchData",languageData:"languageData",texts:"texts",data:"data"},decls:1,vars:1,consts:[["class","recherche","inscroll","",4,"ngIf"],["inscroll","",1,"recherche"],["id","search_wrapper"],["wrapper",""],["class","searching",4,"ngIf"],["id","search_filters_wrapper"],[1,"filters",3,"ngClass"],["filtersElem",""],[3,"inverse","search","filtersData","filtersTexts","sortData","parentComponent","filtersChanged",4,"ngIf"],["id","search_grid",1,"bib_grid"],["class","search_mobile_prev mobile_only",4,"ngIf"],[1,"search_cards",3,"ngClass"],["class","search_loader",4,"ngIf"],["class","bib_title3 search_empty",3,"innerHtml",4,"ngIf"],["class","search_card",3,"click",4,"ngFor","ngForOf"],["class","search_card desktop_only filler",4,"ngFor","ngForOf"],["class","search_pagination desktop_only",4,"ngIf"],["class","search_mobile_next mobile_only",4,"ngIf"],[1,"searching"],[3,"inverse","search","filtersData","filtersTexts","sortData","parentComponent","filtersChanged"],["filters",""],[1,"search_mobile_prev","mobile_only"],[1,"bib_button",3,"innerHtml","click"],[1,"search_loader"],["width","65px","height","65px","viewBox","0 0 66 66","xmlns","http://www.w3.org/2000/svg",1,"spinner"],["fill","none","stroke-width","6","height","65px","width","65px","stroke-linecap","round","cx","33","cy","33","r","30",1,"path"],[1,"bib_title3","search_empty",3,"innerHtml"],[1,"search_card",3,"click"],["searchcards",""],[3,"ngSwitch"],[3,"fullwidth","fromSearch","data",4,"ngSwitchCase"],[3,"fullwidth","fromSearch","data"],[1,"search_card","desktop_only","filler"],[1,"search_pagination","desktop_only"],[1,"component_carousel_prev","arrow_prev",3,"ngClass","click"],["class","page",3,"click",4,"ngIf"],["class","sep",4,"ngIf"],[1,"page","active"],[1,"component_carousel_next","arrow_next",3,"ngClass","click"],[1,"page",3,"click"],[1,"sep"],[1,"search_mobile_next","mobile_only"]],template:function(t,e){1&t&&xo(0,tI,17,15,"section",0),2&t&&Co("ngIf",e.loaded)},directives:[zu,$M,Tu,Iu,xO,Fu,Bu,Qw,$w],pipes:[Sb],styles:["#search_filters_wrapper[_ngcontent-%COMP%]{position:absolute;
1left:0;height:100%}#search_filters_wrapper[_ngcontent-%COMP%], .filters[_ngcontent-%COMP%]{top:0;width:100%;pointer-events:none}.filters[_ngcontent-%COMP%]{position:sticky;height:100vh;z-index:100;transition:top .25s ease-in-out}.filters.fixed_menu[_ngcontent-%COMP%]{top:63px}@media (min-width:992px){.filters.fixed_menu[_ngcontent-%COMP%]{top:96px}}#search_wrapper[_ngcontent-%COMP%]{position:relative;background-color:#f4f3f4}#search_wrapper[_ngcontent-%COMP%]   .searching[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#ffffff80;z-index:111}.search_cards[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;display:flex;flex-wrap:wrap;justify-content:space-between}.search_cards.margin[_ngcontent-%COMP%]{margin-top:191px}@media (min-width:992px){.search_cards.margin[_ngcontent-%COMP%]{margin-top:191px}}.search_card[_ngcontent-%COMP%]{cursor:pointer;flex-basis:100%;margin-bottom:41px}@media (min-width:992px){.search_card[_ngcontent-%COMP%]{margin-bottom:15px;flex-basis:calc(3 * ((100vw - 40px - 77px) / 12) + calc(2 * 7px))}}@media (min-width:992px) and (min-width:992px){.search_card[_ngcontent-%COMP%]{flex-basis:calc(calc(3 + 2) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.search_card[_ngcontent-%COMP%]{flex-basis:calc(calc(3 + 2) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.search_card[_ngcontent-%COMP%]{flex-basis:calc(calc(3 + 2) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.search_card[_ngcontent-%COMP%]{flex-basis:calc(calc(55px * 3) + calc(60px * 2))}}.search_card.filler[_ngcontent-%COMP%]{opacity:0;pointer-events:none}.search_empty[_ngcontent-%COMP%]{width:100%;text-align:center;margin-bottom:60px}@media (min-width:992px){.search_empty[_ngcontent-%COMP%]{margin-bottom:100px}}.search_loader[_ngcontent-%COMP%]{width:100%;text-align:center;margin-bottom:191px}.search_pagination[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;display:flex;justify-content:center;align-items:center;margin-top:6.25rem;margin-bottom:6.25rem}.search_pagination[_ngcontent-%COMP%]   .arrow_next[_ngcontent-%COMP%], .search_pagination[_ngcontent-%COMP%]   .arrow_prev[_ngcontent-%COMP%], .search_pagination[_ngcontent-%COMP%]   .page[_ngcontent-%COMP%]:not(.active){cursor:pointer}.search_pagination[_ngcontent-%COMP%]   .arrow_next.disabled[_ngcontent-%COMP%], .search_pagination[_ngcontent-%COMP%]   .arrow_prev.disabled[_ngcontent-%COMP%], .search_pagination[_ngcontent-%COMP%]   .page[_ngcontent-%COMP%]:not(.active).disabled{opacity:.5;pointer-events:none}.search_pagination[_ngcontent-%COMP%]   .arrow_prev[_ngcontent-%COMP%]{margin-right:20px}.search_pagination[_ngcontent-%COMP%]   .arrow_next[_ngcontent-%COMP%]{margin-left:20px}.search_pagination[_ngcontent-%COMP%]   .page[_ngcontent-%COMP%]{margin:0 10px}.search_pagination[_ngcontent-%COMP%]   .page.active[_ngcontent-%COMP%]{font-weight:700;text-decoration:underline}.search_pagination[_ngcontent-%COMP%]   .sep[_ngcontent-%COMP%]{margin:0 10px}.search_mobile_next[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;text-align:center}.search_mobile_next[_ngcontent-%COMP%]   .bib_button[_ngcontent-%COMP%]{padding:17px 25px;border:1px solid #131313;margin-bottom:5rem}.search_mobile_prev[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;text-align:center;margin-top:191px}.search_mobile_prev[_ngcontent-%COMP%]   .bib_button[_ngcontent-%COMP%]{padding:17px 25px;border:1px solid #131313;margin-bottom:5rem}@media (min-width:992px){.search_mobile_prev[_ngcontent-%COMP%]{margin-top:191px}}.spinner[_ngcontent-%COMP%]{width:55px;height:55px;animation:rotator 1.4s linear infinite}@keyframes rotator{0%{transform:rotate(0deg)}to{transform:rotate(270deg)}}.path[_ngcontent-%COMP%]{stroke-dasharray:187;stroke-dashoffset:0;transform-origin:center;animation:dash 1.4s ease-in-out infinite,colors 5.6s ease-in-out infinite}@keyframes colors{0%{stroke:#9ab400}25%{stroke:#9ab400}50%{stroke:#9ab400}75%{stroke:#9ab400}to{stroke:#9ab400}}@keyframes dash{0%{stroke-dashoffset:187}50%{stroke-dashoffset:46.75;transform:rotate(135deg)}to{stroke-dashoffset:187;transform:rotate(450deg)}}"]}),t})();const nI=["mapcontainer"],iI=["menu"],rI=["edito"],sI=["menuitems"];function oI(t,e){1&t&&(So(0,"div",21),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo().$implicit.titre,"html"),Ki)}const aI=function(t,e){return{active:t,hidden:e}};function lI(t,e){if(1&t){const t=Io();ko(0),Mo(1,"div",18,19),Lo("click",function(){Ae(t);const n=e.index;return Bo(2).menuClicked(n)}),xo(3,oI,2,4,"div",20),Oo(),To()}if(2&t){const t=e.$implicit,n=e.index,i=Bo(2);Qr(1),Jo("flex-basis:"+100/i.menuData.length+"%"),Co("ngClass",Al(4,aI,i.currentActiveBloc==n,0==t.display)),Qr(2),Co("ngIf",t.titre)}}function cI(t,e){if(1&t&&(Mo(0,"div",22),Mo(1,"div",23),So(2,"div",24),Bl(3,"safe"),Oo(),Oo()),2&t){const t=Bo(2);Qr(2),Co("innerHtml",Nl(3,1,t.chapo,"html"),Ki)}}function uI(t,e){if(1&t){const t=Io();Mo(0,"app-edito-builder",25,26),Lo("scrollEvent",function(e){return Ae(t),Bo(2).scrollEvent(e)})("mapScrollEvent",function(e){return Ae(t),Bo(2).mapScrollEvent(e)})("mobileMapScrollEvent",function(e){return Ae(t),Bo(2).mobileMapScrollEvent(e)}),Oo()}if(2&t){const t=Bo(2);Co("texts",t.texts)("blocs",t.editoData)}}function hI(t,e){if(1&t&&So(0,"app-vous-aimerez-aussi",27),2&t){const t=Bo(2);Co("data",t.carouselData)("texts",t.texts)}}const dI=function(t,e){return{hidden:t,fixed_menu:e}},pI=function(t){return{withchapo:t}};function mI(t,e){if(1&t&&(Mo(0,"section",1),Mo(1,"div",2),Mo(2,"div",3),Mo(3,"div",4,5),Mo(5,"div",6),Mo(6,"div",7,8),xo(8,lI,4,7,"ng-container",9),Oo(),Oo(),Oo(),Oo(),xo(9,cI,4,4,"div",10),Mo(10,"div",11),Mo(11,"div",12),xo(12,uI,2,2,"app-edito-builder",13),Oo(),Oo(),Mo(13,"div",14),So(14,"div",15,16),Oo(),Oo(),xo(16,hI,1,2,"app-vous-aimerez-aussi",17),Oo()),2&t){const t=Bo();Qr(3),Co("ngClass",Al(6,dI,t.isActOpen,t.fixedMenu)),Qr(5),Co("ngForOf",t.ancres),Qr(1),Co("ngIf",t.chapo),Qr(1),Co("ngClass",Il(9,pI,t.chapo)),Qr(2),Co("ngIf",t.editoData),Qr(4),Co("ngIf",t.carouselData)}}let gI=(()=>{class t{constructor(t,e,n,i,r,s){this.platformId=t,this.api=e,this.router=n,this.mapStashService=i,this.deviceQueryService=r,this.persistantDataService=s,this.loaded=!1,this.map_infos=null,this.map=null,this.mapInited=!1,this.waitingPois=new Array,this.currentActiveBloc=-1,this.breakpoint=0}set data(t){this.gabarit=t.gabarit,this.map_infos=t.carte,this.map_infos.disableInteractivity=!0,this.map_infos.zoom=this.deviceQueryService.isMobile()?this.map_infos.niveau_zoom_m:this.map_infos.niveau_zoom_d,!Xu(this.platformId)&&t.carte.coordonnees_centre&&(this.map_infos.centre_lat=t.carte.coordonnees_centre.lat,this.map_infos.centre_lon=t.carte.coordonnees_centre.lon,this.map_infos.coordonnees_options={padding:{left:window.innerWidth/2}},this.deviceQueryService.isMobile()&&(this.map_infos.coordonnees_options={})),this.carouselData=t.vous_aimerez_aussi.contenus,this.editoData=t.composants_editos,this.chapo=t.chapo,this.ancres=t.ancres,this.menuData=[];for(let e in this.editoData)this.ancres[e]&&0==this.ancres[e].display||this.menuData.push(this.editoData[e].titre_h2?this.editoData[e].titre_h2:this.editoData[e].titre_h2_gauche?this.editoData[e].titre_h2_gauche:this.editoData[e].titre_h2_droite);this.loaded=!0}ngOnInit(){}ngAfterViewInit(){this.breakpoint=this.deviceQueryService.getBreakp
1oint();for(let t in this.editoData)if(this.editoData[t].feuillets){this.mapScrollEvent(t,!0);break}}scrollEvent(t){if(Xu(this.platformId))return;let e=t;for(;e>0&&0==this.ancres[e].display;)e--;this.currentActiveBloc=e,this.deviceQueryService.isMobile();let n=this.menuItems.toArray(),i=this.menu.nativeElement;if(!Xu(this.platformId)&&this.deviceQueryService.isMobile()){let t=i.currentStyle||window.getComputedStyle(i);i.scrollTo({top:0,left:n[e].nativeElement.offsetLeft-parseInt(t.marginLeft),behavior:"smooth"})}}mobileMapScrollEvent(t){let e=0;for(let n in this.editoData)if(this.editoData[n].feuillets)for(let i in this.editoData[n].feuillets){if(n==t[0]&&i==t[1])return void this.mapScrollEvent(e);e++}else e++}mapScrollEvent(t,e=!1){if(Xu(this.platformId))return;let n,i=0,r=-1,s=-1;for(let c in this.editoData)if(this.editoData[c].feuillets)for(let e in this.editoData[c].feuillets){if(i==t){n=this.editoData[c].feuillets[e],r=parseInt(c),s=parseInt(e);break}i++}else i++;if(!n)return;let o=[],a={};if(a.calques_mapbox_hidden=this.map_infos.calques_mapbox_hidden,n.carte){a.calques_mapbox_visible=n.carte.calques_mapbox,a.niveau_zoom=this.deviceQueryService.isMobile()?n.carte.niveau_zoom_m:n.carte.niveau_zoom_d,a.fly_duration=this.deviceQueryService.isMobile()?0:1e3,e&&(a.fly_duration=0),a.coordonnees_centre=n.carte.coordonnees_centre,a.coordonnees_options={padding:{left:window.innerWidth/2}},this.deviceQueryService.isMobile()&&(a.coordonnees_options={});for(let t in n.carte.pois){let e,i=n.carte.pois[t];e=i.type&&i.type.calque_mapbox?"pin_"+i.type.calque_mapbox:"pin_depart",o.push({id:i.titre,onlyShowIfSelected:!1,icon:e,coords:[i.lon,i.lat]})}}let l=this.editoBuilder.getMapContainer(r,s,this.deviceQueryService.isMobile());this.mapInited?(null!=l&&(this.map=this.mapStashService.requestMap(l)),this.map.setMapData(a),this.map.setPois(o)):(this.waitingMapData=a,this.waitingPois=o,this.waitingElement=l,this.initMap())}initMap(){this.mapInited=!0,Xu(this.platformId)||(this.waitingElement?(this.map=this.mapStashService.requestMap(this.waitingElement),this.waitingElement=null):this.map=this.mapStashService.requestMap(this.mapContainer),this.map.setParameters(this.map_infos),this.waitingPois.length>0&&(this.map.setPois(this.waitingPois),this.waitingPois=[]),null!=this.waitingMapData&&(this.map.setMapData(this.waitingMapData),this.waitingMapData=null))}menuClicked(t){this.currentActiveBloc=t;let e=this.editoBuilder.getBloc(t).nativeElement.getBoundingClientRect();0==this.deviceQueryService.isMobile()?window.scrollTo({top:e.top+window.scrollY-50,left:0,behavior:"smooth"}):window.scrollTo({top:e.top+window.scrollY-155,left:0,behavior:"smooth"})}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(bb),wo(Yx),wo(VM),wo(Pb),wo(Mb))},t.\u0275cmp=Ut({type:t,selectors:[["app-informations-pratiques"]],viewQuery:function(t,e){if(1&t&&(nc(nI,1),nc(iI,1),nc(rI,1),nc(sI,1)),2&t){let t;ec(t=ic())&&(e.mapContainer=t.first),ec(t=ic())&&(e.menu=t.first),ec(t=ic())&&(e.editoBuilder=t.first),ec(t=ic())&&(e.menuItems=t)}},inputs:{fixedMenu:"fixedMenu",languageData:"languageData",texts:"texts",data:"data"},decls:1,vars:1,consts:[["class","informations_pratiques","inscroll","",4,"ngIf"],["inscroll","",1,"informations_pratiques"],["id","infospratiques_wrapper"],["id","infospratiques_menu_wrapper"],[1,"menu",3,"ngClass"],["filtersElem",""],[1,"menu_wrapper"],[1,"menu_content"],["menu",""],[4,"ngFor","ngForOf"],["class","bib_page_chapo_wrapper",4,"ngIf"],["id","infospratiques_content",3,"ngClass"],["id","infospratiques_edito_content"],[3,"texts","blocs","scrollEvent","mapScrollEvent","mobileMapScrollEvent",4,"ngIf"],["id","infospratiques_map_wrapper",2,"display","none"],["id","infospratiques_map_container"],["mapcontainer",""],[3,"data","texts",4,"ngIf"],[1,"menu_item","bib_menuitem","bib_title4_desktop_only","cursor",3,"ngClass","click"],["menuitems",""],["class","menu_txt ignore_p_margin",3,"innerHtml",4,"ngIf"],[1,"menu_txt","ignore_p_margin",3,"innerHtml"],[1,"bib_page_chapo_wrapper"],[1,"bib_grid"],[1,"bib_page_chapo","bib_title3","ignore_p_margin",3,"innerHtml"],[3,"texts","blocs","scrollEvent","mapScrollEvent","mobileMapScrollEvent"],["edito",""],[3,"data","texts"]],template:function(t,e){1&t&&xo(0,mI,17,11,"section",0),2&t&&Co("ngIf",e.loaded)},directives:[zu,$M,Tu,Iu,VT,$T],pipes:[Sb],styles:[".informations_pratiques[_ngcontent-%COMP%]{background-color:#f4f3f4}.menu[_ngcontent-%COMP%]{position:sticky;top:0;width:100%;height:100vh;z-index:500;pointer-events:none;transition:top .25s ease-in-out}.menu.fixed_menu[_ngcontent-%COMP%]{top:63px}@media (min-width:992px){.menu.fixed_menu[_ngcontent-%COMP%]{top:96px}}.menu_wrapper[_ngcontent-%COMP%]{pointer-events:all;box-sizing:border-box;background-color:#fff;height:60px;box-shadow:0 0 8px #00000026}.menu_content[_ngcontent-%COMP%]{height:100%;width:100%;margin:0 auto;display:flex;justify-content:space-between;align-items:flex-start;overflow-x:scroll;overflow-y:hidden}@media (min-width:992px){.menu_content[_ngcontent-%COMP%]{max-width:1323px}}.menu_item[_ngcontent-%COMP%]{height:100%;padding:0 5px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center;border-bottom:4px solid #aaa;min-width:35vw}@media (max-width:991px){.menu_item[_ngcontent-%COMP%]{font-size:1.125rem}}@media (min-width:992px){.menu_item[_ngcontent-%COMP%]{min-width:auto}}.menu_item[_ngcontent-%COMP%]   .menu_txt[_ngcontent-%COMP%]{font-weight:400}.menu_item[_ngcontent-%COMP%]   .menu_txt[_ngcontent-%COMP%]:hover{font-weight:700}.menu_item.active[_ngcontent-%COMP%]{border-bottom:4px solid #000}.menu_item.active[_ngcontent-%COMP%]   .menu_txt[_ngcontent-%COMP%]{font-weight:700}.menu_item.hidden[_ngcontent-%COMP%]{display:none}.menu_content[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#infospratiques_wrapper[_ngcontent-%COMP%]{position:relative;width:100%;min-height:100vh}#infospratiques_wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#infospratiques_map_wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}#infospratiques_menu_wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}#infospratiques_grid[_ngcontent-%COMP%]{min-height:100vh;z-index:10}@media (min-width:992px){#infospratiques_grid[_ngcontent-%COMP%]{display:grid;width:95.64%;grid-template-columns:repeat(12,1fr);max-width:1323px;column-gap:4.34%;margin:0 auto}}#infospratiques_map_container[_ngcontent-%COMP%]{position:sticky;align-self:flex-start;top:60px;left:0;width:100%;height:calc(100vh - 56px)}@media (min-width:992px){#infospratiques_map_container[_ngcontent-%COMP%]{height:calc(100vh - 105px);top:60px}}#infospratiques_content[_ngcontent-%COMP%]{padding-top:60px}#infospratiques_content.withchapo[_ngcontent-%COMP%]{padding-top:0}.bib_page_chapo_wrapper[_ngcontent-%COMP%]{padding-top:60px}"]}),t})();const fI=["edito"];function _I(t,e){if(1&t&&(Mo(0,"div",6),So(1,"div",7),Bl(2,"safe"),Oo()),2&t){const t=Bo(2);Qr(1),Co("innerHtml",Nl(2,1,t.chapo,"html"),Ki)}}function vI(t,e){if(1&t&&So(0,"app-vous-aimerez-aussi",8),2&t){const t=Bo(2);Co("data",t.carouselData)("texts",t.texts)}}function yI(t,e){if(1&t){const t=Io();Mo(0,"section",1),xo(1,_I,3,4,"div",2),Mo(2,"app-edito-builder",3,4),Lo("mapScrollEvent",function(e){return Ae(t),Bo().mapScrollEvent(e)})("mobileMapScrollEvent",function(e){return Ae(t),Bo().mobileMapScrollEvent(e)}
1),Oo(),xo(4,vI,1,2,"app-vous-aimerez-aussi",5),Oo()}if(2&t){const t=Bo();ea("section_"+t.gabarit),Qr(1),Co("ngIf",t.chapo),Qr(1),Co("blocs",t.editoData)("texts",t.texts)("hasChapo",null!=t.chapo),Qr(2),Co("ngIf",t.carouselData&&t.carouselData.length>0)}}let xI=(()=>{class t{constructor(t,e,n,i,r,s){this.platformId=t,this.api=e,this.router=n,this.route=i,this.deviceQueryService=r,this.mapStashService=s,this.pageNotFound=!1,this.errorMessage="",this.errorDesc="",this.showArrow=!0,this.map_infos=null,this.map=null,this.mapInited=!1,this.waitingPois=new Array}set data(t){this.type=t.type,this.chapo=t.chapo,this.gabarit=t.gabarit,this.map_infos=t.carte,this.map_infos&&(this.map_infos.disableInteractivity=!0,this.map_infos.zoom=this.deviceQueryService.isMobile()?this.map_infos.zoom_defaut_m:this.map_infos.zoom_defaut_d),t.composants_editos&&(this.editoData=t.composants_editos),t.vous_aimerez_aussi&&(this.carouselData=t.vous_aimerez_aussi.contenus)}ngOnInit(){}ngAfterViewInit(){for(let t in this.editoData)if(this.editoData[t].feuillets){this.mapScrollEvent(t,!0);break}}mobileMapScrollEvent(t){let e=0;for(let n in this.editoData)if(this.editoData[n].feuillets)for(let i in this.editoData[n].feuillets){if(n==t[0]&&i==t[1])return void this.mapScrollEvent(e);e++}else e++}mapScrollEvent(t,e=!1){if(Xu(this.platformId))return;let n,i=0,r=-1,s=-1;for(let c in this.editoData)if(this.editoData[c].feuillets)for(let e in this.editoData[c].feuillets){if(i==t){n=this.editoData[c].feuillets[e],r=parseInt(c),s=parseInt(e);break}i++}else i++;if(!n)return;let o=[],a={};if(a.calques_mapbox_hidden=this.map_infos.calques_mapbox_hidden,a.disableInteractivity=!0,a.showZoomButtons=!1,a.fond_de_carte=this.map_infos.fond_de_carte,n.carte){a.calques_mapbox_visible=n.carte.calques_mapbox,a.niveau_zoom=this.deviceQueryService.isMobile()?n.carte.niveau_zoom_m:n.carte.niveau_zoom_d,a.fly_duration=this.deviceQueryService.isMobile()?0:1e3,e&&(a.fly_duration=0),a.coordonnees_centre=n.carte.coordonnees_centre,a.coordonnees_options={padding:{left:window.innerWidth/2}},this.deviceQueryService.isMobile()&&(a.coordonnees_options={});for(let t in n.carte.pois){let e,i=n.carte.pois[t];e=i.type&&i.type.calque_mapbox?"pin_"+i.type.calque_mapbox:"pin_depart",o.push({id:i.titre,onlyShowIfSelected:!1,icon:e,coords:[i.lon,i.lat]})}}let l=this.editoBuilder.getMapContainer(r,s,this.deviceQueryService.isMobile());this.mapInited?(null!=l&&(this.map=this.mapStashService.requestMap(l)),this.map.setMapData(a),this.map.setPois(o)):(this.waitingMapData=a,this.waitingPois=o,this.waitingElement=l,this.initMap())}initMap(){this.mapInited=!0,Xu(this.platformId)||(this.map=this.mapStashService.requestMap(this.waitingElement),this.waitingElement=null,this.map.setParameters(this.map_infos),this.waitingPois.length>0&&(this.map.setPois(this.waitingPois),this.waitingPois=[]),null!=this.waitingMapData&&(this.map.setMapData(this.waitingMapData),this.waitingMapData=null))}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(bb),wo(Yx),wo(Ay),wo(Pb),wo(VM))},t.\u0275cmp=Ut({type:t,selectors:[["app-page-edito"]],viewQuery:function(t,e){if(1&t&&nc(fI,1),2&t){let t;ec(t=ic())&&(e.editoBuilder=t.first)}},inputs:{languageData:"languageData",texts:"texts",data:"data"},decls:1,vars:1,consts:[["id","main_content","inscroll","",3,"class",4,"ngIf"],["id","main_content","inscroll",""],["class","bib_grid",4,"ngIf"],[3,"blocs","texts","hasChapo","mapScrollEvent","mobileMapScrollEvent"],["edito",""],[3,"data","texts",4,"ngIf"],[1,"bib_grid"],[1,"bib_page_chapo","bib_title3","ignore_p_margin",3,"innerHtml"],[3,"data","texts"]],template:function(t,e){1&t&&xo(0,yI,5,7,"section",0),2&t&&Co("ngIf",e.editoData||e.carouselData)},directives:[zu,$M,VT,$T],pipes:[Sb],styles:["#main_content[_ngcontent-%COMP%]{position:relative;background-color:#f4f3f4}"]}),t})();const bI=["mapcontainer"],wI=["infos"];function CI(t,e){if(1&t&&(Mo(0,"div",15),So(1,"app-offre-groupee",16),Oo()),2&t){const t=Bo(2);Qr(1),Co("data",t.packageData)("texts",t.texts)}}function PI(t,e){1&t&&(So(0,"div",17),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(2).activity.chapo,"html"),Ki)}function MI(t,e){1&t&&(So(0,"div",18),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(2).activity.description,"html"),Ki)}function OI(t,e){if(1&t&&(Mo(0,"div",19),So(1,"app-infos-pratiques",20),Oo()),2&t){const t=Bo(2);Qr(1),Co("data",t.activity.informations_pratiques)("texts",t.texts)("standalone",!0)}}function SI(t,e){if(1&t&&(Mo(0,"div",19),So(1,"app-infos-pratiques",20),Oo()),2&t){const t=Bo(2);Qr(1),Co("data",t.activity.informations_pratiques)("texts",t.texts)("standalone",!0)}}function kI(t,e){if(1&t&&(Mo(0,"div",25),So(1,"app-contenus-lies",26),Oo()),2&t){const t=e.$implicit,n=e.index,i=Bo(3);Qr(1),Co("data",t)("nobg",!0)("notop",n>0)("gabarit",i.gabarit)}}function TI(t,e){if(1&t&&So(0,"app-vous-aimerez-aussi",16),2&t){const t=Bo(3);Co("data",t.carouselData)("texts",t.texts)}}function EI(t,e){if(1&t&&(Mo(0,"div",21),So(1,"app-edito-builder",22),xo(2,kI,2,4,"div",23),xo(3,TI,1,2,"app-vous-aimerez-aussi",24),Oo()),2&t){const t=Bo(2);Qr(1),Co("blocs",t.activity.composants_editos)("hasChapo",null!=t.chapo)("gabarit",t.gabarit)("texts",t.texts),Qr(1),Co("ngForOf",t.contenusLies),Qr(1),Co("ngIf",t.carouselData&&t.carouselData.length>0)}}const II=function(t){return{withoffre:t}};function AI(t,e){if(1&t&&(Mo(0,"section",1),Mo(1,"div",2),Mo(2,"div",3),xo(3,CI,2,2,"div",4),Oo(),Mo(4,"div",5),Mo(5,"div",6),Mo(6,"div",7,8),xo(8,PI,2,4,"div",9),xo(9,MI,2,4,"div",10),Oo(),Oo(),xo(10,OI,2,3,"div",11),Oo(),xo(11,SI,2,3,"div",11),So(12,"div",12,13),xo(14,EI,4,6,"div",14),Oo(),Oo()),2&t){const t=Bo();ea("section_"+t.gabarit),Qr(3),Co("ngIf",t.packageData),Qr(2),Co("ngClass",Il(9,II,t.packageData)),Qr(3),Co("ngIf",t.activity.chapo),Qr(1),Co("ngIf",t.activity.description),Qr(1),Co("ngIf",!t.archived&&!t.deviceQueryService.isMobile()),Qr(1),Co("ngIf",!t.archived&&t.deviceQueryService.isMobile()),Qr(3),Co("ngIf",t.activity.composants_editos||t.contenusLies||t.carouselData&&t.carouselData.length>0)}}let zI=(()=>{class t{constructor(t,e,n,i,r,s,o){this.platformId=t,this.api=e,this.router=n,this.route=i,this.deviceQueryService=r,this.mapStashService=s,this.location=o,this.breakpoint=0,this.map_infos=null,this.map=null,this.mapInited=!1,this.waitingPois=new Array,this.archived=!1}set data(t){if(this.activity=t,this.type=t.liste_offre,this.chapo=t.chapo,this.archived=t.archive_activite,this.gabarit=t.gabarit,t.vous_aimerez_aussi&&(this.carouselData=t.vous_aimerez_aussi.contenus),this.contenusLies=[],t.activites_liees){let e={titre:this.texts.activites_liees,type_titre:"H3",renvois:[]};for(let n of t.activites_liees)e.renvois.push(n);this.contenusLies.push(e)}if(t.actualites_liees){let e={titre:this.texts.actualites_liees,type_titre:"H3",renvois:[]};for(let n of t.actualites_liees)e.renvois.push(n);this.contenusLies.push(e)}t.package&&(this.packageData=t.package),this.map_infos=t.carte,this.map_infos.disableInteractivity=!0,this.map_infos.zoom=this.deviceQueryService.isMobile()?this.map_infos.zoom_defaut_m:this.map_infos.zoom_defaut_d;let e=[];this.allCoords=[];for(let n in t.geolocalisation){let i,r=t.geolocalisation[n];i=r.type&&r.type.calque_mapbox?"pin_"+r.type.calque_mapbox:"pin_depart",i+="_selected",e.push({id:this.activity.nid+"-"+n,onlyShowIfSelected:!1,icon:i,coords:[r.lon,r.lat]}),this.allCoords.push([r.lon,r.lat])}this.waitingPois=e,this.breakpoint>0&&setTimeout(()=>{this.initMap()},100)}ngOnInit(){}ngAfterViewInit(){this.breakpoint=this.deviceQueryService.getBreakp
1oint(),this.map_infos&&this.initMap()}backClicked(){this.location.back()}initMap(){if(this.mapInited=!0,!Xu(this.platformId)){let t;if(this.deviceQueryService.isMobile())t={top:50,bottom:50,left:50,right:50};else{let e=this.infos.nativeElement.getBoundingClientRect();t={top:50,bottom:50,left:e.left,right:window.innerWidth-e.left-e.width}}if(this.map_infos.coordonnees_options={padding:t},this.map=this.mapStashService.requestMap(this.mapContainer),this.map.setParameters(this.map_infos),this.waitingPois.length>0){let e=this.map.boundingExtent(this.allCoords),n=this.map.getDefaultExtent();e[0][0]<n[0][0]||e[0][1]>n[0][1]||e[1][0]>n[1][0]||e[1][1]<n[1][1]?(e[0][0]=Math.min(e[0][0],n[0][0]),e[0][1]=Math.max(e[0][1],n[0][1]),e[1][0]=Math.max(e[1][0],n[1][0]),e[1][1]=Math.min(e[1][1],n[1][1]),t.top=100,t.bottom=100,t.right=t.left,setTimeout(()=>{this.map.fitToBoundsInstant(e,{padding:t})},500)):this.map.fitToBoundsInstant(null,{padding:t}),this.map.setPois(this.waitingPois),this.map.resizeFeatures(this.activity.nid+"-",!1),this.waitingPois=[]}}}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(bb),wo(Yx),wo(Ay),wo(Pb),wo(VM),wo(wu))},t.\u0275cmp=Ut({type:t,selectors:[["app-activity"]],viewQuery:function(t,e){if(1&t&&(nc(bI,1),nc(wI,1)),2&t){let t;ec(t=ic())&&(e.mapContainer=t.first),ec(t=ic())&&(e.infos=t.first)}},inputs:{languageData:"languageData",texts:"texts",data:"data"},decls:1,vars:1,consts:[["id","activity_content","inscroll","",3,"class",4,"ngIf"],["id","activity_content","inscroll",""],[1,"activity_wrapper"],[1,"activity_package_cont","bib_grid_desktop_only"],["class","activity_package",4,"ngIf"],[1,"bib_grid","activity_grid"],[1,"activity_infos_wrapper",3,"ngClass"],[1,"activity_infos"],["infos",""],["class","activity_chapo bib_title3 ignore_p_margin",3,"innerHtml",4,"ngIf"],[3,"innerHtml",4,"ngIf"],["class","activity_pratiques",4,"ngIf"],["id","activity_map_container"],["mapcontainer",""],["id","activity_below_map",4,"ngIf"],[1,"activity_package"],[3,"data","texts"],[1,"activity_chapo","bib_title3","ignore_p_margin",3,"innerHtml"],[3,"innerHtml"],[1,"activity_pratiques"],[3,"data","texts","standalone"],["id","activity_below_map"],[3,"blocs","hasChapo","gabarit","texts"],["class","activity_linked_activities",4,"ngFor","ngForOf"],[3,"data","texts",4,"ngIf"],[1,"activity_linked_activities"],[3,"data","nobg","notop","gabarit"]],template:function(t,e){1&t&&xo(0,AI,15,11,"section",0),2&t&&Co("ngIf",e.activity)},directives:[zu,$M,Tu,Jb,aw,VT,Iu,YO,$T],pipes:[Sb],styles:["#activity_content[_ngcontent-%COMP%]{position:relative}@media (min-width:992px){#activity_content[_ngcontent-%COMP%]{background-color:#f4f3f4}}.activity_wrapper[_ngcontent-%COMP%]{width:100%;position:relative}.activity_infos_wrapper[_ngcontent-%COMP%]{background:#fff;grid-row-start:1;grid-column-start:1;grid-column-end:13;z-index:10;padding:2.5rem 0}@media (min-width:992px){.activity_infos_wrapper[_ngcontent-%COMP%]{grid-column-end:10;padding:6.25rem 0}}.activity_sous_titre[_ngcontent-%COMP%]{margin-bottom:3.2rem}.activity_chapo[_ngcontent-%COMP%]{font-weight:700;margin-bottom:2.5rem}@media (min-width:992px){.activity_chapo[_ngcontent-%COMP%]{margin-bottom:3.125rem}.activity_infos[_ngcontent-%COMP%]{margin-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));width:calc(6 * ((100vw - 40px - 77px) / 12) + calc(6 * 7px))}}@media (min-width:992px) and (min-width:992px){.activity_infos[_ngcontent-%COMP%]{margin-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.activity_infos[_ngcontent-%COMP%]{margin-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.activity_infos[_ngcontent-%COMP%]{margin-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.activity_infos[_ngcontent-%COMP%]{margin-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){.activity_infos[_ngcontent-%COMP%]{width:calc(calc(6 + 6) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.activity_infos[_ngcontent-%COMP%]{width:calc(calc(6 + 6) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.activity_infos[_ngcontent-%COMP%]{width:calc(calc(6 + 6) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.activity_infos[_ngcontent-%COMP%]{width:calc(calc(55px * 6) + calc(60px * 6))}}.activity_pratiques[_ngcontent-%COMP%]{grid-row-start:3;grid-column-start:1;grid-column-end:13}@media (min-width:992px){.activity_pratiques[_ngcontent-%COMP%]{position:absolute;top:-45px;right:0;width:576px;z-index:10;max-width:40vw}}#activity_map_container[_ngcontent-%COMP%]{position:relative;top:0;left:0;width:100%;height:80vh;min-height:500px}@media (min-width:992px){#activity_map_container[_ngcontent-%COMP%]{margin-top:-45px}}#activity_below_map[_ngcontent-%COMP%]{position:relative}.activity_package[_ngcontent-%COMP%]{background-color:#f4f3f4;width:100%;padding:2.5rem 20px}@media (min-width:500px){.activity_package[_ngcontent-%COMP%]{padding-left:40px}}@media (min-width:992px){.activity_package[_ngcontent-%COMP%]{padding-left:20px}}@media (min-width:1024px){.activity_package[_ngcontent-%COMP%]{padding-left:40px}}@media (min-width:1280px){.activity_package[_ngcontent-%COMP%]{padding-left:60px}}@media (min-width:1440px){.activity_package[_ngcontent-%COMP%]{padding-left:calc((100% - 1320px) / 2)}}@media (min-width:500px){.activity_package[_ngcontent-%COMP%]{padding-right:40px}}@media (min-width:992px){.activity_package[_ngcontent-%COMP%]{padding-right:20px}}@media (min-width:1024px){.activity_package[_ngcontent-%COMP%]{padding-right:40px}}@media (min-width:1280px){.activity_package[_ngcontent-%COMP%]{padding-right:60px}}@media (min-width:1440px){.activity_package[_ngcontent-%COMP%]{padding-right:calc((100% - 1320px) / 2)}}@media (min-width:992px){.activity_package[_ngcontent-%COMP%]{background-color:#fff;padding-top:6.25rem;padding-bottom:0;box-sizing:border-box;padding-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));grid-column-start:1;grid-column-end:10}}@media (min-width:992px) and (min-width:992px){.activity_package[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.activity_package[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.activity_package[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.activity_package[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}"]}),t})();function DI(t,e){1&t&&(So(0,"div",14),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(2).chapo,"html"),Ki)}function LI(t,e){1&t&&(So(0,"div",15),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(2).desc,"html"),Ki)}function RI(t,e){if(1&t&&(Mo(0,"div",16),So(1,"img",17),Oo()),2&t){const t=Bo(2);Qr(1),Co("src",t.img_desc,Yi)}}function FI(t,e){if(1&t&&(Mo(0,"div",18),So(1,"img",17),Oo()),2&t){const t=Bo(2);Qr(1),Co("src",t.img_desc,Yi)}}function BI(t,e){if(1&t&&(Mo(0,"div",19),So(1,"app-contenus-lies",20),Oo()),2&t){const t=e.$implicit,n=e.index,i=Bo(2);Qr(1),Co("data",t)("nobg",!0)("notop",n>0)("gabarit",i.gabarit)}}function NI(t,e){if(1&t&&So(0,"app-vous-aimerez-aussi",21),2&t){const t=Bo(2);Co("data",t.carouselData)("texts",t.texts)}}function UI(t,e){if(1&t&&(Mo(0,"section",1),Mo(1,"div",2),Mo(2,"div",3),Mo(3,"div",4),Mo(4,"div",5),xo(5,DI,2,4,"div",6),xo(6,LI,2,4,"div",7),Oo(),Oo(),xo(7,RI,2,1,"div",8),Oo(),xo(8,FI,2,1,"div",9),Mo(9,"div",10),So(10,"app-edito-builder",11),xo(11,BI,2,4,"div",12),xo(12,NI,1,2,"app-vous-aimerez-aussi",13),Oo(),Oo(),Oo()),2&t){const t=Bo();ea("section_"+t.gabarit),Qr(5),Co("ngIf",t.chapo),Qr(1),Co("ngIf",t.desc),Qr(1),Co("ngIf",t.img_desc),Qr(1),Co("ngIf",t.img_desc),Qr(2),Co("blocs",t.actu.composants_editos)("hasChapo",null!=t.chapo)("gabarit",t.gabarit)("texts",t.texts),Qr(1),Co("ngForOf",t.contenusLies),Qr(1),Co("ngIf",t.carouselData&&t.carouselData.length>0)}}let HI=(()=>{class t{constructor(t,e,n,i,r,s){this.platformId=t,this.api=e,this.router=n,this.route=i,this.deviceQueryService=r,this.location=s}set data(t){if(this.actu=t,this.type=t.type+" - "+t.date,this.chapo=t.chapo,this.desc=t.description,t.visuel_secondaire&&t.visuel_secondaire.url&&(this.img_desc=t.visuel_secondaire.url),this.gabarit=t.gabarit,t.vous_aimerez_aussi&&(this.carouselData=t.vous_aimerez_aussi.contenus),this.contenusLies=[],t.activites_liees){let e={titre:this.texts.activites_liees,type_titre:"H3",renvois:[]};for(let n of t.activites_liees)e.renvois.push(n);this.contenusLies.push(e)}if(t.actualites_liees){let e={titre:this.texts.actualites_liees,type_titre:"H3",renvois:[]};for(let n of t.actualites_liees)e.renvois.push(n);this.contenusLies.push(e)}if(t.resources_liees){let e={type:"Resources Li\xe9es",type_titre:"H3",renvois:[]};for(let n of t.resources_liees)e.renvois.push(n);this.contenusLies.push(e)}}ngOnInit(){}backClicked(){this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(bb),wo(Yx),wo(Ay),wo(Pb),wo(wu))},t.\u0275cmp=Ut({type:t,selectors:[["app-actualite"]],inputs:{languageData:"languageData",texts:"texts",data:"data"},decls:1,vars:1,consts:[["id","actu_content","inscroll","",3,"class",4,"ngIf"],["id","actu_content","inscroll",""],[1,"actu_wrapper"],[1,"bib_grid","actu_grid"],[1,"actu_infos_wrapper"],[1,"actu_infos"],["class","actu_chapo bib_title3 ignore_first_p_margin",3,"innerHtml",4,"ngIf"],["class","ignore_first_p_margin",3,"innerHtml",4,"ngIf"],["class","actu_visuel desktop_only",4,"ngIf"],["class","actu_visuel mobile_only",4,"ngIf"],["id","actu_content"],[3,"blocs","hasChapo","gabarit","texts"],["class","actu_linked_content",4,"ngFor","ngForOf"],[3,"data","texts",4,"ngIf"],[1,"actu_chapo","bib_title3","ignore_first_p_margin",3,"innerHtml"],[1,"ignore_first_p_margin",3,"innerHtml"],[1,"actu_visuel","desktop_only"],[3,"src"],[1,"actu_visuel","mobile_only"],[1,"actu_linked_content"],[3,"data","nobg","notop","gabarit"],[3,"data","texts"]],template:function(t,e){1&t&&xo(0,UI,13,12,"section",0),2&t&&Co("ngIf",e.actu)},directives:[zu,$M,VT,Iu,YO,$T],pipes:[Sb],styles:["#actu_content[_ngcontent-%COMP%]{position:relative}@media (min-width:992px){#actu_content[_ngcontent-%COMP%]{background-color:#f4f3f4}}.actu_wrapper[_ngcontent-%COMP%]{width:100%;position:relative}.actu_chapo[_ngcontent-%COMP%]{font-weight:700;margin-bottom:2.5rem}@media (min-width:992px){.actu_chapo[_ngcontent-%COMP%]{margin-bottom:3.125rem}}.actu_infos_wrapper[_ngcontent-%COMP%]{background:#fff;grid-row-start:1;grid-row-end:2;grid-column-start:1;grid-column-end:13;padding:2.5rem 0}@media (min-width:992px){.actu_infos_wrapper[_ngcontent-%COMP%]{grid-column-end:10;padding-top:6.25rem;padding-bottom:6.25rem}.actu_infos[_ngcontent-%COMP%]{margin-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));width:calc(6 * ((100vw - 40px - 77px) / 12) + calc(6 * 7px))}}@media (min-width:992px) and (min-width:992px){.actu_infos[_ngcontent-%COMP%]{margin-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.actu_infos[_ngcontent-%COMP%]{margin-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.actu_infos[_ngcontent-%COMP%]{margin-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.actu_infos[_ngcontent-%COMP%]{margin-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){.actu_infos[_ngcontent-%COMP%]{width:calc(calc(6 + 6) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.actu_infos[_ngcontent-%COMP%]{width:calc(calc(6 + 6) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.actu_infos[_ngcontent-%COMP%]{width:calc(calc(6 + 6) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.actu_infos[_ngcontent-%COMP%]{width:calc(calc(55px * 6) + calc(60px * 6))}}.actu_visuel[_ngcontent-%COMP%]{width:100%;margin-bottom:2.8rem}@media (min-width:992px){.actu_visuel[_ngcontent-%COMP%]{position:relative;grid-column-start:8;grid-column-end:13;grid-row-start:1;grid-row-end:2;padding-top:6.25rem;margin:0}}.actu_visuel[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;display:block}@media (min-width:992px){.actu_grid[_ngcontent-%COMP%]{padding-bottom:2.8rem}}"]}),t})();function jI(t,e){1&t&&(So(0,"div",14),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(2).chapo,"html"),Ki)}function VI(t,e){1&t&&(So(0,"div",15),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(2).desc,"html"),Ki)}function $I(t,e){if(1&t&&(Mo(0,"div",16),So(1,"img",17),Oo()),2&t){const t=Bo(2);Qr(1),Co("src",t.img_desc,Yi)}}function qI(t,e){if(1&t&&(Mo(0,"div",18),So(1,"img",17),Oo()),2&t){const t=Bo(2);Qr(1),Co("src",t.img_desc,Yi)}}function GI(t,e){if(1&t&&(Mo(0,"div",19),So(1,"app-contenus-lies",20),Oo()),2&t){const t=e.$implicit,n=e.index,i=Bo(2);Qr(1),Co("data",t)("nobg",!0)("notop",n>0)("gabarit",i.gabarit)}}function ZI(t,e){if(1&t&&So(0,"app-vous-aimerez-aussi",21),2&t){const t=Bo(2);Co("data",t.carouselData)("texts",t.texts)}}function WI(t,e){if(1&t&&(Mo(0,"section",1),Mo(1,"div",2),Mo(2,"div",3),Mo(3,"div",4),Mo(4,"div",5),xo(5,jI,2,4,"div",6),xo(6,VI,2,4,"div",7),Oo(),Oo(),xo(7,$I,2,1,"div",8),Oo(),xo(8,qI,2,1,"div",9),Mo(9,"div",10),So(10,"app-edito-builder",11),xo(11,GI,2,4,"div",12),xo(12,ZI,1,2,"app-vous-aimerez-aussi",13),Oo(),Oo(),Oo()),2&t){const t=Bo();ea("section_"+t.gabarit),Qr(5),Co("ngIf",t.chapo),Qr(1),Co("ngIf",t.desc),Qr(1),Co("ngIf",t.img_desc),Qr(1),Co("ngIf",t.img_desc),Qr(2),Co("blocs",t.dossier.composants_editos)("hasChapo",!0)("gabarit",t.gabarit)("texts",t.texts),Qr(1),Co("ngForOf",t.contenusLies),Qr(1),Co("ngIf",t.carouselData&&t.carouselData.length>0)}}
1let XI=(()=>{class t{constructor(t,e){this.platformId=t,this.deviceQueryService=e}set data(t){if(this.dossier=t,this.type=t.type,this.chapo=t.chapo,this.desc=t.description,t.visuel_secondaire&&t.visuel_secondaire.url&&(this.img_desc=t.visuel_secondaire.url),this.gabarit=t.gabarit,t.vous_aimerez_aussi&&(this.carouselData=t.vous_aimerez_aussi.contenus),this.contenusLies=[],t.activites_liees){let e={titre:this.texts.activites_liees,type_titre:"H3",renvois:[]};for(let n of t.activites_liees)e.renvois.push(n);this.contenusLies.push(e)}if(t.actualites_liees){let e={titre:this.texts.actualites_liees,type_titre:"H3",renvois:[]};for(let n of t.actualites_liees)e.renvois.push(n);this.contenusLies.push(e)}if(t.resources_liees){let e={type:"Ressources Li\xe9es",type_titre:"H3",renvois:[]};for(let n of t.resources_liees)e.renvois.push(n);this.contenusLies.push(e)}}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(Pb))},t.\u0275cmp=Ut({type:t,selectors:[["app-dossier-thematique"]],inputs:{languageData:"languageData",texts:"texts",data:"data"},decls:1,vars:1,consts:[["id","actu_content","inscroll","",3,"class",4,"ngIf"],["id","actu_content","inscroll",""],[1,"dossier_wrapper"],[1,"bib_grid","dossier_grid"],[1,"dossier_infos_wrapper"],[1,"dossier_infos"],["class","dossier_chapo bib_title3 ignore_first_p_margin",3,"innerHtml",4,"ngIf"],["class","ignore_first_p_margin",3,"innerHtml",4,"ngIf"],["class","dossier_visuel desktop_only",4,"ngIf"],["class","dossier_visuel mobile_only",4,"ngIf"],["id","dossier_content"],[3,"blocs","hasChapo","gabarit","texts"],["class","dossier_linked_content",4,"ngFor","ngForOf"],[3,"data","texts",4,"ngIf"],[1,"dossier_chapo","bib_title3","ignore_first_p_margin",3,"innerHtml"],[1,"ignore_first_p_margin",3,"innerHtml"],[1,"dossier_visuel","desktop_only"],[3,"src"],[1,"dossier_visuel","mobile_only"],[1,"dossier_linked_content"],[3,"data","nobg","notop","gabarit"],[3,"data","texts"]],template:function(t,e){1&t&&xo(0,WI,13,12,"section",0),2&t&&Co("ngIf",e.dossier)},directives:[zu,$M,VT,Iu,YO,$T],pipes:[Sb],styles:["#dossier_content[_ngcontent-%COMP%]{background:#f4f3f4}"]}),t})();function QI(t,e){if(1&t&&(Mo(0,"div",6),So(1,"div",7),So(2,"div",8),Oo()),2&t){const t=e.$implicit;Qr(1),Co("innerHtml",t.title,Ki),Qr(1),Co("innerHtml",t.text,Ki)}}function KI(t,e){if(1&t&&(Mo(0,"div",2),Mo(1,"div",3),Mo(2,"div",4),da(3),Oo(),xo(4,QI,3,2,"div",5),Oo(),Oo()),2&t){const t=Bo();Qr(3),pa(t.texts["Fiche d'identit\xe9 de la ressource"]),Qr(1),Co("ngForOf",t.thesaurusData)}}function YI(t,e){if(1&t&&(Mo(0,"div",23),So(1,"div",24),So(2,"div",25),Oo()),2&t){const t=e.$implicit;Qr(1),Co("innerHtml",t.title,Ki),Qr(1),Co("innerHtml",t.text,Ki)}}function JI(t,e){1&t&&So(0,"div",26),2&t&&Co("innerHtml",Bo(2).res.cartel.description,Ki)}function tA(t,e){1&t&&Eo(0)}const eA=function(t){return{data:t}};function nA(t,e){if(1&t&&(Mo(0,"div",27),xo(1,tA,1,0,"ng-container",28),Oo()),2&t){const t=Bo(2),e=bo(1);Qr(1),Co("ngTemplateOutlet",e)("ngTemplateOutletContext",Il(2,eA,t.thesaurusData))}}function iA(t,e){1&t&&Eo(0)}function rA(t,e){if(1&t&&(Mo(0,"div",29),xo(1,iA,1,0,"ng-container",28),Oo()),2&t){const t=Bo(2),e=bo(1);Qr(1),Co("ngTemplateOutlet",e)("ngTemplateOutletContext",Il(2,eA,t.thesaurusData))}}function sA(t,e){if(1&t&&(Mo(0,"div",30),Mo(1,"div",31),da(2),Oo(),So(3,"div",32),Oo()),2&t){const t=Bo(2);Qr(2),pa(t.texts["Micro r\xe9cit"]),Qr(1),Co("innerHtml",t.res.micro_story,Ki)}}function oA(t,e){if(1&t&&(Mo(0,"div",30),Mo(1,"div",31),da(2),Oo(),So(3,"div",32),Oo()),2&t){const t=Bo(2);Qr(2),pa(t.texts["En savoir plus"]),Qr(1),Co("innerHtml",t.res.en_savoir_plus,Ki)}}function aA(t,e){if(1&t&&(Mo(0,"div"),So(1,"app-contenus-lies",33),Oo()),2&t){const t=Bo(2);Qr(1),Co("data",t.situationData)("nobg",!0)("gabarit",t.gabarit)("texts",t.texts)}}function lA(t,e){if(1&t&&(Mo(0,"div"),So(1,"app-contenus-lies",34),Oo()),2&t){const t=Bo(2);Qr(1),Co("data",t.linkedData)("nobg",!0)("notop",t.situationData.renvois.length>0)("texts",t.texts)("gabarit",t.gabarit)}}function cA(t,e){if(1&t&&So(0,"app-vous-aimerez-aussi",35),2&t){const t=Bo(2);Co("data",t.carouselData)("texts",t.texts)}}function uA(t,e){1&t&&So(0,"div",36)}function hA(t,e){if(1&t&&(Mo(0,"section",9),Mo(1,"div",10),Mo(2,"div",11),Mo(3,"div",12),Mo(4,"div",13),xo(5,YI,3,2,"div",14),xo(6,JI,1,1,"div",15),Oo(),Oo(),xo(7,nA,2,4,"div",16),Oo(),xo(8,rA,2,4,"div",17),Mo(9,"div",11),xo(10,sA,4,2,"div",18),xo(11,oA,4,2,"div",18),Oo(),Mo(12,"div",19),xo(13,aA,2,4,"div",20),xo(14,lA,2,5,"div",20),xo(15,cA,1,2,"app-vous-aimerez-aussi",21),xo(16,uA,1,0,"div",22),Oo(),Oo(),Oo()),2&t){const t=Bo();ea("section_"+t.gabarit),Qr(5),Co("ngForOf",t.cartelData),Qr(1),Co("ngIf",""!=t.res.cartel.description),Qr(1),Co("ngIf",!t.deviceQueryService.isMobile()&&t.thesaurusData.length>0),Qr(1),Co("ngIf",t.deviceQueryService.isMobile()&&t.thesaurusData.length>0),Qr(2),Co("ngIf",""!=t.res.micro_story),Qr(1),Co("ngIf",""!=t.res.en_savoir_plus),Qr(2),Co("ngIf",t.situationData.renvois.length>0),Qr(1),Co("ngIf",t.linkedData.renvois.length>0),Qr(1),Co("ngIf",t.carouselData&&t.carouselData.length>0),Qr(1),Co("ngIf",!t.carouselData||0==t.carouselData.length)}}let dA=(()=>{class t{constructor(t){this.deviceQueryService=t}set data(t){this.res=t,this.cartelData=[],this.thesaurusData=[],this.gabarit=t.gabarit;let e=Object.keys(t.cartel);for(let s of e)0!=t.cartel[s].length&&"description"!=s&&this.cartelData.push(this.getTemplateItem(s,t.cartel[s]));let n=Object.keys(t.thesaurus);for(let s of n)0!=t.thesaurus[s].length&&"function"!=s&&this.thesaurusData.push(this.getTemplateItem(s,t.thesaurus[s]));t.vous_aimerez_aussi&&(this.carouselData=t.vous_aimerez_aussi.contenus);let i=[],r=[];if(this.linkedData={titre:"Ressources li\xe9es",type_titre:"H3",renvois:[]},this.situationData={titre:"Cette ressource en situation",type_titre:"H3",renvois:[]},t.contenus_lies){let e=Object.keys(t.contenus_lies);for(let n of e){let e=t.contenus_lies[n];if("dossier_thematique"==n){let t=Object.keys(e);for(let n of t)r.push(e[n])}else"visite_virtuelle"==n?i.push({type_contenu:"vv",titre:e.titre_sequence,lien:e.lien+"?item="+e.id}):this.linkedData.renvois.push(e)}for(let t of i)this.situationData.renvois.push(t);for(let t of r)this.situationData.renvois.push(t)}}ngOnInit(){}getTemplateItem(t,e){let n={title:"",text:""};switch(t){case"authors":n.title=this.texts["Auteur(s)"];break;case"created":n.title=this.texts["Date de cr\xe9ation"];break;case"credit":n.title=this.texts["Cr\xe9dit"];break;case"license":n.title=this.texts.Licence;break;case"theme":n.title=this.texts.Sujet;break;case"public":n.title=this.texts["Domaine d'activit\xe9"];break;case"categorie":n.title=this.texts["Cat\xe9gorie"];break;case"datation":n.title=this.texts.Datation;break;case"discovery_place":n.title=this.texts["Lieu de d\xe9couverte"];break;case"production_place":n.title=this.texts["Lieu de production"];break;case"material":n.title=this.texts["Mat\xe9riau(x)"];break;default:n.title=t}return n.text=this.getWSText(e),n}getWSText(t){if("string"==typeof t)return t;if(Array.isArray(t))return t.join(", ");{let e=[];
1for(let n of Object.keys(t))e.push(t[n]);return e.join(", ")}}}return t.\u0275fac=function(e){return new(e||t)(wo(Pb))},t.\u0275cmp=Ut({type:t,selectors:[["app-ressource"]],inputs:{texts:"texts",data:"data"},decls:3,vars:1,consts:[["thesaurus",""],["id","res_content","inscroll","",3,"class",4,"ngIf"],[1,"res_thesaurus"],[1,"thesaurus_cont"],[1,"header_thesaurus","bib_title3"],["class","res_thesaurus_item",4,"ngFor","ngForOf"],[1,"res_thesaurus_item"],[1,"thesaurus_title","bib_title4",3,"innerHtml"],[1,"thesaurus_text",3,"innerHtml"],["id","res_content","inscroll",""],[1,"res_wrapper"],[1,"bib_grid","res_grid"],[1,"res_infos_wrapper"],[1,"res_cartel"],["class","res_info",4,"ngFor","ngForOf"],["class","info_desc ignore_p_margin",3,"innerHtml",4,"ngIf"],["class","res_thesaurus_wrap desktop_only",4,"ngIf"],["class","res_thesaurus_wrap mobile_only",4,"ngIf"],["class","res_infos_wrapper res_micro_story",4,"ngIf"],["id","res_content"],[4,"ngIf"],[3,"data","texts",4,"ngIf"],["class","res_filler desktop_only",4,"ngIf"],[1,"res_info"],[1,"info_title","bib_title4",3,"innerHtml"],[1,"info_text","ignore_p_margin",3,"innerHtml"],[1,"info_desc","ignore_p_margin",3,"innerHtml"],[1,"res_thesaurus_wrap","desktop_only"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"res_thesaurus_wrap","mobile_only"],[1,"res_infos_wrapper","res_micro_story"],[1,"res_cartel","micro_story_header","bib_title2"],[1,"res_cartel","ignore_p_margin",3,"innerHtml"],[3,"data","nobg","gabarit","texts"],[3,"data","nobg","notop","texts","gabarit"],[3,"data","texts"],[1,"res_filler","desktop_only"]],template:function(t,e){1&t&&(xo(0,KI,5,2,"ng-template",null,0,ac),xo(2,hA,17,12,"section",1)),2&t&&(Qr(2),Co("ngIf",e.res))},directives:[zu,Iu,$M,Hu,YO,$T],styles:["#res_content[_ngcontent-%COMP%]{position:relative}@media (min-width:992px){#res_content[_ngcontent-%COMP%]{background-color:#f4f3f4}}.res_infos_wrapper[_ngcontent-%COMP%]{background:#fff;grid-column-start:1;grid-column-end:13;padding:2.5rem 0}@media (min-width:992px){.res_infos_wrapper[_ngcontent-%COMP%]{grid-column-end:10;padding-top:6.25rem;padding-bottom:5rem}.res_cartel[_ngcontent-%COMP%]{margin-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));width:calc(6 * ((100vw - 40px - 77px) / 12) + calc(6 * 7px))}}@media (min-width:992px) and (min-width:992px){.res_cartel[_ngcontent-%COMP%]{margin-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.res_cartel[_ngcontent-%COMP%]{margin-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.res_cartel[_ngcontent-%COMP%]{margin-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.res_cartel[_ngcontent-%COMP%]{margin-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){.res_cartel[_ngcontent-%COMP%]{width:calc(calc(6 + 6) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.res_cartel[_ngcontent-%COMP%]{width:calc(calc(6 + 6) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.res_cartel[_ngcontent-%COMP%]{width:calc(calc(6 + 6) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.res_cartel[_ngcontent-%COMP%]{width:calc(calc(55px * 6) + calc(60px * 6))}}.res_cartel[_ngcontent-%COMP%]   .res_info[_ngcontent-%COMP%]{width:100%;margin-bottom:1.25rem}.res_cartel[_ngcontent-%COMP%]   .res_info[_ngcontent-%COMP%]   .info_title[_ngcontent-%COMP%]{margin-bottom:5px}@media (min-width:992px){.res_cartel[_ngcontent-%COMP%]   .res_info[_ngcontent-%COMP%]{display:flex}.res_cartel[_ngcontent-%COMP%]   .res_info[_ngcontent-%COMP%]   .info_title[_ngcontent-%COMP%]{margin-bottom:0;flex:0 0 230px}.res_cartel[_ngcontent-%COMP%]   .res_info[_ngcontent-%COMP%]   .info_text[_ngcontent-%COMP%]{flex-basis:100%}}.res_cartel[_ngcontent-%COMP%]   .info_desc[_ngcontent-%COMP%]{margin-top:1.875rem;margin-bottom:1.25rem}.res_thesaurus_wrap[_ngcontent-%COMP%]{grid-row-start:3;grid-column-start:1;grid-column-end:13}@media (min-width:992px){.res_thesaurus_wrap[_ngcontent-%COMP%]{position:absolute;top:-45px;right:0;width:576px;z-index:10;max-width:40vw}}.res_thesaurus[_ngcontent-%COMP%]{background-color:#131313;background-image:url(/assets/img/courbes_niveau.png);background-size:cover;background-position:50%;color:#fff;padding:3.3rem 40px 3rem}@media (min-width:992px){.res_thesaurus[_ngcontent-%COMP%]{padding:6.25rem calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){.res_thesaurus[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.res_thesaurus[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.res_thesaurus[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.res_thesaurus[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px) and (min-width:992px){.res_thesaurus[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.res_thesaurus[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.res_thesaurus[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.res_thesaurus[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}.thesaurus_title[_ngcontent-%COMP%]{margin-top:2.5rem;margin-bottom:1.25rem}@media (min-width:992px){.thesaurus_title[_ngcontent-%COMP%]{margin-top:3.125rem}.res_micro_story[_ngcontent-%COMP%]{margin-top:3.75rem}}.res_micro_story[_ngcontent-%COMP%]   .micro_story_header[_ngcontent-%COMP%]{margin-bottom:2.5rem}@media (min-width:992px){.res_micro_story[_ngcontent-%COMP%]   .micro_story_header[_ngcontent-%COMP%]{margin-bottom:3.125rem}}.res_filler[_ngcontent-%COMP%]{width:100%;height:4.5rem}"]}),t})();const pA=["annees"];function mA(t,e){if(1&t&&(Mo(0,"div",6),So(1,"div",7),Bl(2,"safe"),Oo()),2&t){const t=Bo(2);Qr(1),Co("innerHtml",Nl(2,1,t.chapo,"html"),Ki)}}const gA=function(t,e){return{first:t,last:e}};function fA(t,e){if(1&t&&(Mo(0,"a",13),So(1,"app-card-actualite",14),Oo()),2&t){const t=e.$implicit,n=e.index,i=Bo(2).$implicit;ea("noline actualites_card card_"+n%3),Co("routerLink",t.url)("ngClass",Al(6,gA,n<3,n>=i.actus.length-3)),Qr(1),Co("nomargin",!0)("data",t)}}function _A(t,e){if(1&t&&(ko(0),xo(1,fA,2,9,"a",12),To()),2&t){const t=Bo().$implicit;Qr(1),Co("ngForOf",t.actus)}}function vA(t,e){1&t&&(ko(0),Mo(1,"div",15),So(2,"div",16),Oo(),To())}const yA=function(t){return{last:t}},xA=function(t){return{first:t}};function bA(t,e){if(1&t&&(Mo(0,"div",8,9),Mo(2,"div",10),da(3),Oo(),xo(4,_A,2,1,"ng-container",11),xo(5,vA,3,0,"ng-container",11),Oo()),2&t){const t=e.$implicit,n=e.index,i=Bo(2);Co("id","annee_"+n)("ngClass",Il(6,yA,n==i.actualites.length-1)),Qr(2),Co("ngClass",Il(8,xA,0==n)),Qr(1),pa(t.annee),Qr(1),Co("ngIf",t.loaded),Qr(1),Co("ngIf",!t.loaded)}}function wA(t,e){if(1&t&&So(0,"app-vous-aimerez-aussi",17),2&t){const t=Bo(2);Co("data",t.carouselData)("texts",t.texts)}}function CA(t,e){if(1&t&&(Mo(0,"section",1,2),xo(2,mA,3,4,"div",3),xo(3,bA,6,10,"div",4),xo(4,wA,1,2,"app-vous-aimerez-aussi",5),Oo()),2&t){const t=Bo();ea("section_"+t.gabarit),Qr(2),Co("ngIf",t.chapo),Qr(1),Co("ngForOf",t.actualites),Qr(1),Co("ngIf",t.carouselData&&t.carouselData.length>0)}}let PA=(()=>{class t{constructor(t,e,n,i,r,s){this.platformId=t,this.api=e,this.router=n,this.route=i,this.deviceQueryService=r,this.renderer=s,this.showArrow=!0,this.unlisten=this.renderer.listen("window","
1scroll",t=>{this.checkPositions()})}set data(t){let e,n=0;if(this.chapo=t.chapo,this.gabarit=t.gabarit,t.actualites){this.actualites=[];for(let i in t.actualites)0==n?e={annee:i,actus:t.actualites[i].liste,loaded:!0,loading:!1}:(e={annee:i,actus:[],loaded:!1,loading:!1},0==t.actualites[i].nb_actualites&&(e.loaded=!0)),this.actualites.push(e),n++}t.vous_aimerez_aussi&&(this.carouselData=t.vous_aimerez_aussi.contenus)}ngOnInit(){}ngOnDestroy(){this.unlisten()}checkPositions(){let t=this.annees.toArray();for(let e of t)if(e.nativeElement.classList.contains("notloaded")&&e.nativeElement.getBoundingClientRect().bottom<4*window.innerHeight/3){let t=e.nativeElement.id.split("_").pop();e.nativeElement.classList.remove("notloaded"),this.loadActus(parseInt(t)+1)}}loadActus(t){t>=this.actualites.length||this.actualites[t].loaded||this.actualites[t].loading||(this.actualites[t].loading=!0,this.api.callAction("ws_web_actus/"+this.actualites[t].annee).subscribe(e=>{this.actualites[t].loading=!1,this.actualites[t].loaded=!0,this.actualites[t].actus=e.actualites[this.actualites[t].annee].liste,this.inscroll.recomputeElems()}))}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(bb),wo(Yx),wo(Ay),wo(Pb),wo(za))},t.\u0275cmp=Ut({type:t,selectors:[["app-actualites"]],viewQuery:function(t,e){if(1&t&&(nc($M,1),nc(pA,1)),2&t){let t;ec(t=ic())&&(e.inscroll=t.first),ec(t=ic())&&(e.annees=t)}},inputs:{languageData:"languageData",texts:"texts",data:"data"},decls:1,vars:1,consts:[["id","actualites_content","inscroll","",3,"class",4,"ngIf"],["id","actualites_content","inscroll",""],["section",""],["class","bib_grid",4,"ngIf"],["class","bib_grid actualites_cont notloaded",3,"id","ngClass",4,"ngFor","ngForOf"],[3,"data","texts",4,"ngIf"],[1,"bib_grid"],[1,"bib_page_chapo","bib_title3","ignore_p_margin",3,"innerHtml"],[1,"bib_grid","actualites_cont","notloaded",3,"id","ngClass"],["annees",""],[1,"actualite_header","bib_title3",3,"ngClass"],[4,"ngIf"],[3,"routerLink","class","ngClass",4,"ngFor","ngForOf"],[3,"routerLink","ngClass"],[3,"nomargin","data"],[1,"loader_cont"],[1,"loader"],[3,"data","texts"]],template:function(t,e){1&t&&xo(0,CA,5,5,"section",0),2&t&&Co("ngIf",e.actualites)},directives:[zu,$M,Iu,Tu,Jx,Dw,$T],pipes:[Sb],styles:['#actualites_content[_ngcontent-%COMP%]{background-color:#f4f3f4}.actualite_header[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;margin-top:60px;margin-bottom:60px}.actualite_header.first[_ngcontent-%COMP%]{margin-top:0}.actualites_card[_ngcontent-%COMP%]{margin-bottom:60px}@media (min-width:992px){.actualites_card[_ngcontent-%COMP%]{margin-bottom:0}}.actualites_cards_cont[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;display:flex;flex-wrap:wrap;justify-content:flex-start}.actualites_cards_cont[_ngcontent-%COMP%]:last-child{margin-bottom:60px}.actualites_card[_ngcontent-%COMP%]{width:100%}.card_0[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}@media (min-width:992px){.card_0[_ngcontent-%COMP%]{margin:0;grid-column-start:1;grid-column-end:5}}.card_1[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}@media (min-width:992px){.card_1[_ngcontent-%COMP%]{margin-top:60px;grid-column-start:5;grid-column-end:9}}.card_2[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}@media (min-width:992px){.card_2[_ngcontent-%COMP%]{margin-top:-60px;grid-column-start:9;grid-column-end:13}.actualites_card.card_0.first[_ngcontent-%COMP%]{margin-top:60px}.actualites_card.card_1.first[_ngcontent-%COMP%]{margin-top:120px}.actualites_card.card_2.first[_ngcontent-%COMP%]{margin-top:0}}.actualites_cont.last[_ngcontent-%COMP%]{margin-bottom:60px}.loader_cont[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;padding-left:3.5em;text-align:center}.loader[_ngcontent-%COMP%]{margin-bottom:60px;margin-left:20px}@media (min-width:500px){.loader[_ngcontent-%COMP%]{margin-left:40px}}@media (min-width:992px){.loader[_ngcontent-%COMP%]{margin-left:20px}}@media (min-width:1024px){.loader[_ngcontent-%COMP%]{margin-left:40px}}@media (min-width:1280px){.loader[_ngcontent-%COMP%]{margin-left:60px}}@media (min-width:1440px){.loader[_ngcontent-%COMP%]{margin-left:calc((100% - 1320px) / 2)}}.loader[_ngcontent-%COMP%], .loader[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%]:before{border-radius:50%;width:2.5em;height:2.5em;animation-fill-mode:both;animation:load7 1.8s ease-in-out infinite}.loader[_ngcontent-%COMP%]{color:#131313;font-size:10px;position:relative;text-indent:-9999em;transform:translateZ(0);animation-delay:-.16s}.loader[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0}.loader[_ngcontent-%COMP%]:before{left:-3.5em;animation-delay:-.32s}.loader[_ngcontent-%COMP%]:after{left:3.5em}@keyframes load7{0%,80%,to{box-shadow:0 2.5em 0 -1.3em}40%{box-shadow:0 2.5em 0 0}}']}),t})();function MA(t,e){if(1&t&&(Mo(0,"div",11),So(1,"img",12),Mo(2,"a",13),So(3,"div",14),Bl(4,"safe"),Oo(),Oo()),2&t){const t=Bo();Qr(1),Co("src","assets/img/telephone"+(t.nobottom?"_white":"")+".svg",Yi),Qr(1),Co("href","tel:"+t.data.tel,Yi),Qr(1),Co("innerHtml",Nl(4,3,t.data.tel,"html"),Ki)}}const OA=function(t){return{mtop:t}};function SA(t,e){if(1&t&&(Mo(0,"div",15),So(1,"img",12),So(2,"div",14),Bl(3,"safe"),Oo()),2&t){const t=Bo();Co("ngClass",Il(6,OA,!t.data.tel)),Qr(1),Co("src","assets/img/pin_service"+(t.nobottom?"_white":"")+".svg",Yi),Qr(1),Co("innerHtml",Nl(3,3,t.data.adresse,"html"),Ki)}}function kA(t,e){if(1&t&&(Mo(0,"div",16),So(1,"a",17),Oo()),2&t){const t=Bo();Qr(1),Co("href",t.data.site_web,Yi)("innerHtml",t.texts.voir_le_site,Ki)}}const TA=function(t,e,n){return{fullwidth:t,nobottom:e,fromAlentours:n}},EA=function(t){return{"background-image":t}},IA=function(t){return{bib_grid:t}},AA=function(t){return{draft:t}};let zA=(()=>{class t{constructor(t){this.deviceQueryService=t,this.fullwidth=!1,this.nobottom=!1,this.fromAlentours=!1}ngOnInit(){}
1getBackground(){return this.deviceQueryService.isMobile()?this.deviceQueryService.isImageMobile()&&this.data.visuel_mobile&&this.data.visuel_mobile.url?"linear-gradient(0deg, rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url("+this.data.visuel_mobile.url+")":this.data.visuel&&this.data.visuel.url?"linear-gradient(0deg, rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url("+this.data.visuel.url+")":"none":this.data.visuel&&this.data.visuel.url?"url("+this.data.visuel.url+")":"none"}}return t.\u0275fac=function(e){return new(e||t)(wo(Pb))},t.\u0275cmp=Ut({type:t,selectors:[["app-card-service"]],inputs:{data:"data",fullwidth:"fullwidth",nobottom:"nobottom",fromAlentours:"fromAlentours",texts:"texts"},decls:13,vars:25,consts:[[1,"service_card",3,"ngClass"],[1,"service_img"],[1,"service_visuel",3,"ngStyle"],[1,"service_infos"],[1,"service_infos_wrapper",3,"ngClass"],[1,"service_infos_content"],[1,"service_type","bib_type",3,"innerHtml"],[1,"service_infos_title","bib_title4","ignore_p_margin",3,"innerHtml","ngClass"],["class","service_infos_tel mtop",4,"ngIf"],["class","service_infos_adresse",3,"ngClass",4,"ngIf"],["class","service_infos_site",4,"ngIf"],[1,"service_infos_tel","mtop"],[3,"src"],[1,"noline",3,"href"],[1,"bib_mentions",3,"innerHtml"],[1,"service_infos_adresse",3,"ngClass"],[1,"service_infos_site"],["target","_blank",3,"href","innerHtml"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),So(2,"div",2),Oo(),Mo(3,"div",3),Mo(4,"div",4),Mo(5,"div",5),So(6,"div",6),Bl(7,"safe"),So(8,"div",7),Bl(9,"safe"),xo(10,MA,5,6,"div",8),xo(11,SA,4,8,"div",9),xo(12,kA,2,2,"div",10),Oo(),Oo(),Oo(),Oo()),2&t&&(Co("ngClass",zl(15,TA,e.fullwidth,e.nobottom,e.fromAlentours)),Qr(2),Co("ngStyle",Il(19,EA,e.getBackground())),Qr(2),Co("ngClass",Il(21,IA,e.fullwidth)),Qr(2),Co("innerHtml",Nl(7,9,null==e.data.sous_type_service?null:e.data.sous_type_service.label,"html"),Ki),Qr(2),Co("innerHtml",Nl(9,12,e.data.titre_html,"html"),Ki)("ngClass",Il(23,AA,"0"==e.data.status)),Qr(2),Co("ngIf",e.data.tel),Qr(1),Co("ngIf",e.data.adresse),Qr(1),Co("ngIf",e.data.site_web))},directives:[Tu,Uu,zu],pipes:[Sb],styles:[".service_card[_ngcontent-%COMP%]{position:relative;flex:0 1 auto;z-index:10;width:100%}.service_card[_ngcontent-%COMP%]   .service_img[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:100%}.service_card[_ngcontent-%COMP%]   .service_visuel[_ngcontent-%COMP%]{display:block;width:100%;padding-top:56.4%;background-color:#ccc;background-size:cover;background-position:50%;transition:all .5s}.service_infos[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;background-color:#fff;color:#131313;padding:1.875rem;height:238px;overflow:hidden}.fromAlentours[_ngcontent-%COMP%]   .service_infos[_ngcontent-%COMP%]{height:auto;min-height:238px}.service_infos_content[_ngcontent-%COMP%], .service_infos_wrapper[_ngcontent-%COMP%]{width:100%;height:100%}.mtop[_ngcontent-%COMP%]{margin-top:1.125rem}.service_infos_adresse[_ngcontent-%COMP%], .service_infos_tel[_ngcontent-%COMP%]{display:flex;align-items:center}.service_infos_adresse[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .service_infos_tel[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:25px;margin-right:5px}.service_infos_tel[_ngcontent-%COMP%]{margin-bottom:10px}.service_card.nobottom[_ngcontent-%COMP%]   .service_infos[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;background-color:initial;color:#fff;padding:1.2rem}.service_card.nobottom[_ngcontent-%COMP%]   .service_infos_desc_cont[_ngcontent-%COMP%]{height:65px;max-height:65px;overflow:hidden}.service_card.nobottom[_ngcontent-%COMP%]   .service_infos_adresse[_ngcontent-%COMP%], .service_card.nobottom[_ngcontent-%COMP%]   .service_infos_desc[_ngcontent-%COMP%], .service_card.nobottom[_ngcontent-%COMP%]   .service_infos_tel[_ngcontent-%COMP%], .service_card.nobottom[_ngcontent-%COMP%]   .service_infos_title[_ngcontent-%COMP%]{color:#fff}.service_type[_ngcontent-%COMP%]{color:#fff;font-weight:400!important;margin-bottom:.35rem}@media (min-width:992px){.service_type[_ngcontent-%COMP%]{color:#aaa}}.service_infos_site[_ngcontent-%COMP%]{margin-top:.5rem;font-size:1rem}"]}),t})();const DA=["filtersElem"],LA=["mapcontainer"],RA=["card"];function FA(t,e){if(1&t){const t=Io();Mo(0,"app-filters",19),Lo("filtersChanged",function(e){return Ae(t),Bo(2).applyFilters(e)}),Oo()}if(2&t){const t=Bo(2);Co("pDataId","alentours")("filtersData",t.filters)("filtersTexts",t.texts)("additive",!0)("parentComponent",t)}}function BA(t,e){if(1&t){const t=Io();Mo(0,"div",20),Mo(1,"img",21),Lo("click",function(){return Ae(t),Bo(2).closeAllActs()}),Oo(),Oo()}}function NA(t,e){if(1&t){const t=Io();Mo(0,"app-card-activity",22),Lo("likeClicked",function(e){return Ae(t),Bo(2).likeClicked(e)}),Oo()}if(2&t){const t=Bo(2);Co("act",t.selectedPOI.item)("texts",t.texts)("openable",!1)("nobottom",t.deviceQueryService.isMobile())}}function UA(t,e){if(1&t&&So(0,"app-card-service",23),2&t){const t=Bo(2);Co("data",t.selectedPOI.item)("fromAlentours",!0)("texts",t.texts)("nobottom",t.deviceQueryService.isMobile())}}function HA(t,e){if(1&t&&So(0,"app-edito-builder",24),2&t){const t=Bo(2);Co("blocs",t.editoData)("hasChapo",!0)("texts",t.texts)}}function jA(t,e){if(1&t&&So(0,"app-vous-aimerez-aussi",25),2&t){const t=Bo(2);Co("data",t.carouselData)("texts",t.texts)}}const VA=function(t,e){return{hidden:t,fixed_menu:e}},$A=function(t){return{visible:t}};function qA(t,e){if(1&t&&(Mo(0,"section",1),Mo(1,"div",2),Mo(2,"div",3),Mo(3,"div",4,5),xo(5,FA,1,5,"app-filters",6),Oo(),xo(6,BA,2,0,"div",7),Oo(),Mo(7,"div",8),So(8,"div",9,10),Oo(),Mo(10,"div",11),Mo(11,"div",12,13),xo(13,NA,1,4,"a
1pp-card-activity",14),xo(14,UA,1,4,"app-card-service",15),Oo(),Oo(),Oo(),Mo(15,"div",16),xo(16,HA,1,3,"app-edito-builder",17),Oo(),xo(17,jA,1,2,"app-vous-aimerez-aussi",18),Oo()),2&t){const t=Bo();Qr(3),Co("ngClass",Al(10,VA,t.isActOpen,t.fixedMenu)),Qr(2),Co("ngIf",null!=t.filters&&t.loaded2),Qr(1),Co("ngIf",t.isActOpen),Qr(4),Co("ngClass",Il(13,$A,t.showCard)),Qr(1),Jo(t.cardTop>0||t.cardLeft>0?"top:"+t.cardTop+"px;left:"+t.cardLeft+"px":""),Qr(2),Co("ngIf","activite"==(null==t.selectedPOI?null:t.selectedPOI.type)),Qr(1),Co("ngIf","service"==(null==t.selectedPOI?null:t.selectedPOI.type)),Qr(2),Co("ngIf",t.editoData&&t.editoData.length>0),Qr(1),Co("ngIf",t.carouselData&&t.carouselData.length>0)}}let GA=(()=>{class t{constructor(t,e,n,i){this.platformId=t,this.deviceQueryService=e,this.mapStashService=n,this.api=i,this.breakpoint=0,this.map_infos=null,this.map=null,this.mapInited=!1,this.waitingPois=new Array,this.filters=null,this.selectedPOI=null,this.cardTop=0,this.cardLeft=0,this.showCard=!1,this.loaded=!1,this.loaded2=!1,this.fixedMenu=!1}set data(t){this.carouselData=t.vous_aimerez_aussi.contenus,this.map_infos=t.carte,this.map_infos.showZoomButtons=!0,this.map_infos.zoom=this.deviceQueryService.isMobile()?this.map_infos.zoom_defaut_m:this.map_infos.zoom_defaut_d,this.chapo=t.chapo,this.editoData=t.composants_editos,this.filters=t.filtres,this.breakpoint>0&&setTimeout(()=>{this.initMap()},100),this.loaded=!0}ngOnInit(){}ngOnDestroy(){this.map&&(this.map.unregisterClickCallback(),this.map.unregisterEmptyClickCallback(),this.map.unregisterInteractCallback())}ngAfterViewInit(){this.breakpoint=this.deviceQueryService.getBreakpoint(),this.map_infos&&this.initMap(),Xu(this.platformId)||this.api.callAction("ws_web_alentours").subscribe(t=>{this.services=t.services,this.activites=t.activites||[],this.loaded2=!0,this.computePois()})}computePois(){let t=[];for(let e of this.activites)if(!e.filtered)for(let n in e.geolocalisation){let i,r=e.geolocalisation[n];i=r.type&&r.type.calque_mapbox?"pin_"+r.type.calque_mapbox:"pin_ph","1"==e.highlight&&(i+="_highlight"),t.push({id:e.nid+"-"+n,onlyShowIfSelected:"0"==r.poi_principal,icon:i,category:0,coords:[r.lon,r.lat]})}for(let e of this.services)if(!e.filtered){let n;n=e.type_service&&e.type_service.calque_mapbox?"pin_"+e.type_service.calque_mapbox:"pin_ph",t.push({id:e.nid,onlyShowIfSelected:!1,icon:n,category:1,coords:[e.lon,e.lat]})}this.mapInited?this.map.setPois(t):this.waitingPois=t}initMap(){Xu(this.platformId)||(this.mapInited=!0,this.map=this.mapStashService.requestMap(this.mapContainer),this.map.registerClickCallback(t=>{this.mapClicked(t)}),this.map.registerInteractCallback(t=>{this.mapInteracted()}),this.map.registerEmptyClickCallback(()=>{this.emptyClicked()}),this.map.setParameters(this.map_infos),this.waitingPois.length>0&&(this.map.setPois(this.waitingPois),this.waitingPois=[]))}mapInteracted(){this.computeCardCoords()}mapClicked(t){this.selectedPOI=null;for(let e of this.activites)for(let n in e.geolocalisation)if(t==e.nid+"-"+n){this.selectedPOI={type:"activite",item:e,coords:[e.geolocalisation[n].lon,e.geolocalisation[n].lat]};break}for(let e of this.services)if(e.nid==t){this.selectedPOI={type:"service",item:e,coords:[e.lon,e.lat]};break}setTimeout(()=>{this.computeCardCoords()},100)}computeCardCoords(){if(null==this.selectedPOI)return;let t=this.map.project(this.selectedPOI.coords);if(t.x<0||t.x>window.innerWidth||t.y<62||t.y>window.innerHeight)return void(this.showCard=!1);this.cardTop=t.y-230,this.cardLeft=t.x+25;let e=this.card.nativeElement.getBoundingClientRect();this.cardTop<=82?this.cardTop=82:this.cardTop+e.height>=window.innerHeight-20&&(this.cardTop=window.innerHeight-e.height-20),this.cardLeft+e.width>=window.innerWidth-20&&(this.cardLeft=t.x-25-e.width),this.showCard=!0,this.deviceQueryService.isMobile()&&(this.cardTop=0,this.cardLeft=0)}emptyClicked(){this.selectedPOI=null}countItemsWithFilters(t){let e=0;for(let n of this.activites){e++;let i=Object.keys(n.filtre_tids),r=!1;for(let e of t)if(e){for(let t of e)if(-1!=i.indexOf(t)){r=!0;break}if(r)break}r||e--}for(let n of this.services){e++;let i=!1;for(let e of t)if(e)for(let t of e){if(n.type_service&&n.type_service.tid==t){i=!0;break}if(i)break}i||e--}return e}applyFilters(t){for(let e of this.activites){e.filtered=!1;let n=Object.keys(e.filtre_tids),i=this.isEmptyFilters(t);for(let e of t)if(e){for(let t of e)if(-1!=n.indexOf(t)){i=!0;break}if(i)break}i||(e.filtered=!0)}for(let e of this.services){e.filtered=!1;let n=this.isEmptyFilters(t);for(let i of t)if(i)for(let t of i){if(e.type_service&&e.type_service.tid==t){n=!0;break}if(n)break}n||(e.filtered=!0)}this.computePois()}isEmptyFilters(t){for(let e of t)if(0!=e.length)return!1;return!0}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(Pb),wo(VM),wo(bb))},t.\u0275cmp=Ut({type:t,selectors:[["app-aux-alentours"]],viewQuery:function(t,e){if(1&t&&(nc(DA,1),nc(LA,1),nc(RA,1)),2&t){let t;ec(t=ic())&&(e.filtersElem=t.first),ec(t=ic())&&(e.mapContainer=t.first),ec(t=ic())&&(e.card=t.first)}},inputs:{fixedMenu:"fixedMenu",languageData:"languageData",texts:"texts",data:"data"},decls:1,vars:1,consts:[["id","auxalentours","inscroll","",4,"ngIf"],["id","auxalentours","inscroll",""],["id","alentours_wrapper"],["id","alentours_filters_wrapper"],[1,"filters",3,"ngClass"],["filtersElem",""],[3,"pDataId","filtersData","filtersTexts","additive","parentComponent","filtersChanged",4,"ngIf"],["class","filters",4,"ngIf"],["id","alentours_map_wrapper"],["id","alentours_map_container"],["mapcontainer",""],["id","alentours_card_cont",3,"ngClass"],["
1id","alentours_card"],["card",""],[3,"act","texts","openable","nobottom","likeClicked",4,"ngIf"],[3,"data","fromAlentours","texts","nobottom",4,"ngIf"],[1,"edito"],[3,"blocs","hasChapo","texts",4,"ngIf"],[3,"data","texts",4,"ngIf"],[3,"pDataId","filtersData","filtersTexts","additive","parentComponent","filtersChanged"],[1,"filters"],["id","alentours_arrow","src","/assets/img/arrow_back.svg",3,"click"],[3,"act","texts","openable","nobottom","likeClicked"],[3,"data","fromAlentours","texts","nobottom"],[3,"blocs","hasChapo","texts"],[3,"data","texts"]],template:function(t,e){1&t&&xo(0,qA,18,15,"section",0),2&t&&Co("ngIf",e.loaded)},directives:[zu,$M,Tu,xO,Sw,zA,VT,$T],styles:[".edito[_ngcontent-%COMP%]{background-color:#f4f3f4}.filters[_ngcontent-%COMP%]{position:sticky;top:0;width:100%;height:100vh;z-index:100;pointer-events:none;transition:top .25s ease-in-out}.filters.hidden[_ngcontent-%COMP%]{display:none}.filters.fixed_menu[_ngcontent-%COMP%]{top:63px}@media (min-width:992px){.filters.fixed_menu[_ngcontent-%COMP%]{top:96px}}#alentours_wrapper[_ngcontent-%COMP%]{position:relative;width:100%;min-height:120vh}#alentours_filters_wrapper[_ngcontent-%COMP%], #alentours_map_wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}#alentours_filters_wrapper.hidden[_ngcontent-%COMP%]{display:none}#alentours_map_container[_ngcontent-%COMP%]{align-self:flex-start}#alentours_card_cont[_ngcontent-%COMP%], #alentours_map_container[_ngcontent-%COMP%]{position:sticky;left:0;top:0;width:100%;height:100vh}#alentours_card_cont[_ngcontent-%COMP%]{pointer-events:none;opacity:0;transition:opacity .25s cubic-bezier(.55,.085,.68,.53)}#alentours_card_cont.visible[_ngcontent-%COMP%]{opacity:1}@media (min-width:992px){#alentours_card_cont.visible[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center}}#alentours_card[_ngcontent-%COMP%]{position:absolute;bottom:0;pointer-events:all;width:100%}@media (min-width:992px){#alentours_card[_ngcontent-%COMP%]{position:absolute;bottom:auto;width:calc(3 * ((100vw - 40px - 77px) / 12) + calc(4 * 7px))}}@media (min-width:992px) and (min-width:992px){#alentours_card[_ngcontent-%COMP%]{width:calc(calc(3 + 4) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){#alentours_card[_ngcontent-%COMP%]{width:calc(calc(3 + 4) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){#alentours_card[_ngcontent-%COMP%]{width:calc(calc(3 + 4) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){#alentours_card[_ngcontent-%COMP%]{width:calc(calc(55px * 3) + calc(60px * 4))}}"]}),t})();const ZA=["mapcontainer"],WA=["wrapper"];function XA(t,e){if(1&t){const t=Io();Mo(0,"div",16),Mo(1,"div",17),Mo(2,"img",18),Lo("click",function(){return Ae(t),Bo(2).closeAllActs()}),Oo(),Oo(),Oo()}}const QA=function(t){return{act_open:t}};function KA(t,e){if(1&t){const t=Io();Mo(0,"div",20),Mo(1,"app-card-activity",21),Lo("cardClicked",function(e){return Ae(t),Bo(3).cardClicked(e)})("likeClicked",function(e){return Ae(t),Bo(3).likeClicked(e)}),Oo(),Oo()}if(2&t){const t=Bo().$implicit,e=Bo(2);Co("ngClass",Il(7,QA,e.isActOpen||e.isActOpen3))("id","act-card-"+t.nid),Qr(1),Co("act",t)("texts",e.texts)("openable",!0)("fromacts",!0)("nobottom",!e.isActOpen3)}}function YA(t,e){if(1&t&&(ko(0),xo(1,KA,2,9,"div",19),To()),2&t){const t=e.$implicit;Qr(1),Co("ngIf",t.liked)}}function JA(t,e){if(1&t&&So(0,"app-vous-aimerez-aussi",22),2&t){const t=Bo(2);Co("data",t.carouselData)("texts",t.texts)}}const tz=function(t,e){return{padding:t,act_open:e}},ez=function(){return["/activites"]},nz=function(t){return{hidden:t}};function iz(t,e){if(1&t){const t=Io();Mo(0,"section"),Mo(1,"div",1,2),Mo(3,"div",3),xo(4,XA,3,0,"div",4),Oo(),Mo(5,"div",5),Mo(6,"div",6),Lo("scroll",function(){return Ae(t),Bo().actContentScroll()}),xo(7,YA,2,1,"ng-container",7),Mo(8,"div",8),Mo(9,"a",9),da(10,"Ajouter plus d'activit\xe9s"),Oo(),Oo(),Oo(),Mo(11,"div",10),Mo(12,"a",9),da(13,"Ajouter plus d'activit\xe9s"),Oo(),Oo(),Oo(),Mo(14,"div",11),So(15,"div",12,13),Oo(),Oo(),Mo(17,"div",14),xo(18,JA,1,2,"app-vous-aimerez-aussi",15),Oo(),Oo()}if(2&t){const t=Bo();Qr(4),Co("ngIf",t.isActOpen2),Qr(2),Co("ngClass",Al(8,tz,t.isActOpen||t.isActOpen3,t.isActOpen2)),Qr(1),Co("ngForOf",t.activities),Qr(2),Co("routerLink",El(11,ez)),Qr(3),Co("routerLink",El(12,ez)),Qr(3),Co("ngClass",Il(13,QA,t.isActOpen)),Qr(2),Co("ngClass",Il(15,nz,t.isActOpen)),Qr(1),Co("ngIf",t.carouselData)}}let rz=(()=>{class t{constructor(t,e,n,i,r,s,o){this.platformId=t,this.api=e,this.router=n,this.mapStashService=i,this.deviceQueryService=r,this.persistantDataService=s,this.renderer=o,this.loaded=!1,this.activities=new Array,this.filters=null,this.isActOpen=!1,this.isActOpen2=!1,this.isActOpen3=!1,this.map_infos=null,this.map=null,this.mapInited=!1,this.waitingPois=new Array,this.stickyFilters=!1,this.stickyFiltersHeight=100,this.stickyFingersStart=0,this.breakpoint=0,this.actOpen=new Vl,this.unlisten=this.renderer.listen("window","
1scroll",t=>{this.checkPositions()})}set data(t){if(this.loaded=!1,t&&t.activites){for(var e of t.activites)e.liked=0!=this.persistantDataService.getItem("activity_liked_"+e.nid,!1),this.activities.push(e);this.filters=t.filtres,this.map_infos=t.carte,this.map_infos.showZoomButtons=!1,this.map_infos.disableInteractivity=!0,this.map_infos.zoom=this.deviceQueryService.isMobile()?this.map_infos.zoom_defaut_m:this.map_infos.zoom_defaut_d,!Xu(this.platformId)&&t.carte.centre_lat&&(this.map_infos.coordonnees_options={padding:{left:window.innerWidth/2}},this.deviceQueryService.isMobile()&&(this.map_infos.coordonnees_options={})),this.carouselData=t.vous_aimerez_aussi.contenus,this.chapo=t.chapo,this.loaded=!0,this.breakpoint>0&&setTimeout(()=>{this.initMap()},100)}}ngOnInit(){}ngAfterViewInit(){this.breakpoint=this.deviceQueryService.getBreakpoint(),this.map_infos&&this.initMap()}ngOnDestroy(){this.unlisten(),this.map&&this.map.unregisterClickCallback()}checkPositions(){if(Xu(this.platformId))return;let t,e=window.innerHeight;this.deviceQueryService.isMobile()&&(e=window.innerWidth);for(let n of this.activities){let i=document.querySelector("#act-card-"+n.nid);if(i){let r=i.getBoundingClientRect();this.deviceQueryService.isMobile()||r.top<window.innerHeight/2&&window.innerHeight/2-r.top<e&&(e=window.innerHeight/2-r.top,t=n)}}if(t){for(let e of this.activities)e.focus&&e.nid!=t.nid&&(e.focus=!1,this.map&&this.map.resizeFeatures(e.nid,!0));this.map&&!t.focus&&(t.focus=!0,this.map.selectFeature(t.nid))}}computePois(){let t=[];for(let e of this.activities)if(!e.filtered)for(let n in e.geolocalisation){let i,r=e.geolocalisation[n];i=r.type&&r.type.calque_mapbox?"pin_"+r.type.calque_mapbox:"pin_depart","1"==e.highlight&&(i+="_highlight");let s={id:e.nid+"-"+n,onlyShowIfSelected:"1",icon:i,coords:[r.lon,r.lat],twothirds:!1};this.deviceQueryService.isMobile()&&(s.twothirds=!0),t.push(s)}this.mapInited?this.map.setPois(t):this.waitingPois=t}cardClicked(t){let e=!t.open;for(let n of this.activities)n.open=!1;t.open=e,e?(setTimeout(()=>{this.deviceQueryService.ignoreMenu=!0;let e=document.getElementById("activity_header_"+t.nid).getBoundingClientRect();0==this.deviceQueryService.isMobile()?window.scrollTo({top:e.top+window.scrollY-95,left:0,behavior:"smooth"}):window.scrollTo({top:this.activityWrapper.nativeElement.offsetTop,left:window.scrollX}),setTimeout(()=>{this.deviceQueryService.ignoreMenu=!1},500)},220),this.map&&this.map.selectFeature(t.nid),this.deviceQueryService.isMobile()&&(document.getElementById("activities_content").scrollTo({top:0,left:document.getElementById("act-card-"+t.nid).offsetLeft}),this.isActOpen=!0,this.isActOpen3=!0,setTimeout(()=>{this.isActOpen2=!0},250))):(this.map&&this.map.resizeFeatures(t.nid,!1,!0),setTimeout(()=>{this.deviceQueryService.isMobile()&&(this.isActOpen=!1,setTimeout(()=>{this.isActOpen2=!1,this.isActOpen3=!1,setTimeout(()=>{window.scrollTo({top:this.activityWrapper.nativeElement.offsetTop}),document.getElementById("activities_content").scrollTo({top:0,left:document.getElementById("act-card-"+t.nid).offsetLeft})},10)},250))},100)),setTimeout(()=>{this.checkPositions()},250)}closeAllActs(){for(let t of this.activities)if(t.open){this.cardClicked(t);break}}likeClicked(t){t.liked=!t.liked,t.liked?this.persistantDataService.setItem("activity_liked_"+t.nid,Date.now()):this.persistantDataService.removeItem("activity_liked_"+t.nid),this.persistantDataService.save()}mapClicked(t){let e=t.split("-")[0];for(let n of this.activities)if(n.nid==e&&!n.open){this.cardClicked(n);break}}cardHover(t){t.hover=!0,this.map&&0==t.open&&this.map.selectFeature(t.nid)}cardHout(t){t.hover=!1,this.map&&0==t.open&&0==t.focus&&this.map.resizeFeatures(t.nid,!0,!1);for(let e of this.activities)if(e.focus){this.map.selectFeature(e.nid);break}}linkClicked(t,e){this.router.navigateByUrl(e.url),t.preventDefault(),t.stopPropagation()}initMap(){Xu(this.platformId)||(this.computePois(),this.mapInited=!0,this.map=this.mapStashService.requestMap(this.mapContainer),this.map.registerClickCallback(t=>{this.mapClicked(t)}),this.map.setParameters(this.map_infos),this.waitingPois.length>0&&(this.map.setPois(this.waitingPois),this.waitingPois=[]),this.activities[0].focus=!0,this.map.selectFeature
1(this.activities[0].nid),this.actContentScroll())}getActSloganStyle(t){return Xu(this.platformId)?"":(""==t.computedSloganStyle&&Promise.resolve().then(()=>{let e=document.getElementById("act-slogan-"+t.nid);if(e){let n=e.getElementsByClassName("slogan_text")[0];if(n){let e=n.getBoundingClientRect().width;e>0&&(t.computedSloganStyle="width:"+e+"px;height:"+e+"px;")}}}),t.computedSloganStyle)}actContentScroll(){if(this.deviceQueryService.isMobile()&&!this.isActOpen)for(let t of this.activities)if(!t.filtered){let e=document.getElementById("act-card-"+t.nid).getBoundingClientRect();e.left>-window.innerWidth/2&&e.left<window.innerWidth/2&&e.right>window.innerWidth/2?t.focus||(this.map.selectFeature(t.nid),t.focus=!0):t.focus&&(t.focus=!1)}}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(bb),wo(Yx),wo(VM),wo(Pb),wo(Mb),wo(za))},t.\u0275cmp=Ut({type:t,selectors:[["app-ma-selection"]],viewQuery:function(t,e){if(1&t&&(nc(ZA,1),nc(WA,1)),2&t){let t;ec(t=ic())&&(e.mapContainer=t.first),ec(t=ic())&&(e.activityWrapper=t.first)}},inputs:{languageData:"languageData",texts:"texts",data:"data"},outputs:{actOpen:"actOpen"},decls:1,vars:1,consts:[[4,"ngIf"],["id","activities_wrapper"],["wrapper",""],["id","activities_filters_wrapper"],["class","filters",4,"ngIf"],["id","activities_grid",1,"bib_grid_desktop_only"],["id","activities_content",3,"ngClass","scroll"],[4,"ngFor","ngForOf"],[1,"activities_card_cont","center","desktop_only"],[1,"activities_bt",3,"routerLink"],[1,"activities_link","mobile_only"],["id","activities_map_wrapper"],["id","activities_map_container",3,"ngClass"],["mapcontainer",""],[3,"ngClass"],[3,"data","texts",4,"ngIf"],[1,"filters"],["id","activities_arrow_cont"],["id","activities_arrow","src","/assets/img/arrow_back.svg",3,"click"],["class","activities_card_cont",3,"ngClass","id",4,"ngIf"],[1,"activities_card_cont",3,"ngClass","id"],[3,"act","texts","openable","fromacts","nobottom","cardClicked","likeClicked"],[3,"data","texts"]],template:function(t,e){1&t&&xo(0,iz,19,17,"section",0),2&t&&Co("ngIf",e.loaded)},directives:[zu,Tu,Iu,Jx,Sw,$T],styles:[".filters[_ngcontent-%COMP%]{position:sticky;top:0;width:100%;height:100vh;z-index:100;pointer-events:none}.filters.hidden[_ngcontent-%COMP%]{display:none}#activities_arrow_cont[_ngcontent-%COMP%]{height:6.25rem;background:linear-gradient(180deg,#131313,#1313131a 55.73%,#1313131a 85.94%,#13131300);opacity:.6}#activities_arrow[_ngcontent-%COMP%]{color:#fff;padding:1rem;pointer-events:all;opacity:1}#activities_wrapper[_ngcontent-%COMP%]{position:relative;width:100%;min-height:120vh}#activities_wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#activities_filters_wrapper[_ngcontent-%COMP%], #activities_map_wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}#activities_filters_wrapper.hidden[_ngcontent-%COMP%]{display:none}#activities_grid[_ngcontent-%COMP%]{position:sticky;top:0;min-height:100vh;z-index:10}@media (min-width:992px){#activities_grid[_ngcontent-%COMP%]{position:relative;padding-bottom:6.25rem}}#activities_map_container[_ngcontent-%COMP%]{position:sticky;align-self:flex-start;top:0;left:0;width:100%;height:100vh}#activities_map_container.act_open[_ngcontent-%COMP%]{top:0}#activities_content[_ngcontent-%COMP%]{box-sizing:border-box;position:relative;display:flex;overflow-x:scroll;z-index:10;min-height:100vh;align-items:flex-end;padding-bottom:1.25rem;padding-right:20px;scroll-snap-type:x mandatory;scroll-padding:0 40px 0 0}@media (min-width:992px){#activities_content[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7;flex-wrap:wrap;overflow:visible;margin-top:135px;align-items:flex-start;padding:0;min-height:120vh;scroll-snap-type:none}}#activities_content[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}#activities_content.padding[_ngcontent-%COMP%]{padding-bottom:0;padding-top:6.25rem}#activities_content.act_open[_ngcontent-%COMP%]{scroll-snap-type:none;overflow-x:hidden;margin-bottom:20px}.activities_card_cont[_ngcontent-%COMP%]{flex:0 0 auto;position:relative;bottom:20px;scroll-snap-align:center;width:calc(11 * ((100vw - 40px - 77px) / 12) + calc(11 * 7px));margin-right:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));max-width:500px}@media (min-width:992px){.activities_card_cont[_ngcontent-%COMP%]{width:calc(calc(11 + 11) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.activities_card_cont[_ngcontent-%COMP%]{width:calc(calc(11 + 11) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.activities_card_cont[_ngcontent-%COMP%]{width:calc(calc(11 + 11) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.activities_card_cont[_ngcontent-%COMP%]{width:calc(calc(55px * 11) + calc(60px * 11))}}@media (min-width:992px){.activities_card_cont[_ngcontent-%COMP%]{margin-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.activities_card_cont[_ngcontent-%COMP%]{margin-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.activities_card_cont[_ngcontent-%COMP%]{margin-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.activities_card_cont[_ngcontent-%COMP%]{margin-right:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.activities_card_cont[_ngcontent-%COMP%]{scroll-snap-align:none;max-width:none;bottom:auto;width:100%}}.activities_card_cont.act_open[_ngcontent-%COMP%]{max-width:none;width:100vw;margin-right:0;bottom:0}@media (min-width:992px){.activities_card_cont.act_open[_ngcontent-%COMP%]{bottom:auto;width:100%}}.hidden[_ngcontent-%COMP%]{display:none}.activities_card_cont.center[_ngcontent-%COMP%]{text-align:center}.activities_bt[_ngcontent-%COMP%]{display:inline-block;color:#fff;background-color:#9ab400;text-transform:uppercase;padding:1.06rem 1.56rem}@media (min-width:992px){.activities_bt[_ngcontent-%COMP%]{margin:4.6rem 0 6.25rem}}.activities_bt[_ngcontent-%COMP%]:hover{color:#9ab400;background-color:#fff}.activities_link[_ngcontent-%COMP%]{position:relative;z-index:10;padding-bottom:1.25rem;margin-left:20px}@media (min-width:500px){.activities_link[_ngcontent-%COMP%]{margin-left:40px}}@media (min-width:992px){.activities_link[_ngcontent-%COMP%]{margin-left:20px}}@media (min-width:1024px){.activities_link[_ngcontent-%COMP%]{margin-left:40px}}@media (min-width:1280px){.activities_link[_ngcontent-%COMP%]{margin-left:60px}}@media (min-width:1440px){.activities_link[_ngcontent-%COMP%]{margin-left:calc((100% - 1320px) / 2)}}"]}),t})();function sz(t,e){if(1&t&&(Mo(0,"div",4),So(1,"div",5),Bl(2,"safe"),So(3,"div",6),Bl(4,"
1safe"),Oo()),2&t){const t=e.$implicit;Qr(1),Co("innerHtml",Nl(2,2,t.chiffre,"html"),Ki),Qr(2),Co("innerHtml",Nl(4,5,t.texte,"html"),Ki)}}let oz=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ut({type:t,selectors:[["app-keyfacts"]],inputs:{data:"data"},decls:4,vars:1,consts:[["id","keyfacts_cont"],[1,"bib_grid"],["id","facts"],["class","fact",4,"ngFor","ngForOf"],[1,"fact"],[1,"bib_title1",3,"innerHtml"],[1,"fact_text","ignore_p_margin","bib_title4",3,"innerHtml"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),Mo(2,"div",2),xo(3,sz,5,8,"div",3),Oo(),Oo(),Oo()),2&t&&(Qr(3),Co("ngForOf",e.data.items))},directives:[Iu],pipes:[Sb],styles:["#keyfacts_cont[_ngcontent-%COMP%]{width:100%;background-color:#9ab400;padding-top:60px;padding-bottom:30px}@media (min-width:992px){#keyfacts_cont[_ngcontent-%COMP%]{padding:4.03rem 0}}#facts[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}@media (min-width:992px){#facts[_ngcontent-%COMP%]{flex-wrap:nowrap;text-align:center}}.fact[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;padding-bottom:30px}@media (min-width:992px){.fact[_ngcontent-%COMP%]{width:auto;height:222px;padding:0 2rem}.fact[_ngcontent-%COMP%]:nth-child(2n){border-right:1px solid #fff;border-left:1px solid #fff}}.fact[_ngcontent-%COMP%]:last-child{border-right:none}.fact_text[_ngcontent-%COMP%]{margin-top:5px}"]}),t})();const az=["mapcontainer"],lz=["edito"];function cz(t,e){1&t&&So(0,"app-keyfacts",14),2&t&&Co("data",Bo(2).keyfactsData)}function uz(t,e){1&t&&So(0,"app-video-player",14),2&t&&Co("data",Bo(2).videoData)}function hz(t,e){1&t&&(So(0,"div",15),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(2).actData.titre,"html"),Ki)}const dz=function(t){return{act_open:t}};function pz(t,e){if(1&t){const t=Io();ko(0),Mo(1,"div",16),Mo(2,"app-card-activity",17),Lo("likeClicked",function(e){return Ae(t),Bo(2).likeClicked(e)})("cardClicked",function(){Ae(t);const n=e.$implicit;return Bo(2).cardClicked(n)}),Oo(),Oo(),To()}if(2&t){const t=e.$implicit,n=e.index,i=Bo(2);Qr(1),Co("ngClass",Il(8,dz,i.isActOpen))("id","act-card-"+t.nid),Qr(1),Co("fromacts",!0)("last",n==i.activities.length-1)("act",t)("texts",i.texts)("openable",!1)("nobottom",!0)}}function mz(t,e){if(1&t&&(Mo(0,"div",18),So(1,"a",19),Oo()),2&t){const t=Bo(2);Qr(1),Co("routerLink",t.actData.lien.url)("innerHtml",t.actData.lien.label,Ki)}}function gz(t,e){if(1&t&&(Mo(0,"div",20),So(1,"a",19),Oo()),2&t){const t=Bo(2);Qr(1),Co("routerLink",t.actData.lien.url)("innerHtml",t.actData.lien.label,Ki)}}function fz(t,e){if(1&t){const t=Io();Mo(0,"section",1),Lo("inscrollEvent",function(){return Ae(t),Bo().checkPositions()}),xo(1,cz,1,1,"app-keyfacts",2),xo(2,uz,1,1,"app-video-player",2),Mo(3,"div",3),Mo(4,"div",4),xo(5,hz,2,4,"div",5),Mo(6,"div",6),Lo("scroll",function(){return Ae(t),Bo().actContentScroll()}),xo(7,pz,3,10,"ng-container",7),xo(8,mz,2,2,"div",8),Oo(),xo(9,gz,2,2,"div",9),Oo(),Mo(10,"div",10),So(11,"div",11,12),Oo(),Oo(),Mo(13,"app-edito-builder",13),Lo("mapScrollEvent",function(e){return Ae(t),Bo().mapScrollEvent(e)})("mobileMapScrollEvent",function(e){return Ae(t),Bo().mobileMapScrollEvent(e)}),Oo(),Oo()}if(2&t){const t=Bo();Qr(1),Co("ngIf",t.keyfactsData),Qr(1),Co("ngIf",t.videoData),Qr(3),Co("ngIf",t.actData.titre),Qr(1),Co("ngClass",Il(11,dz,t.isActOpen)),Qr(1),Co("ngForOf",t.activities),Qr(1),Co("ngIf",t.actData.lien),Qr(1),Co("ngIf",t.actData.lien),Qr(2),Co("ngClass",Il(13,dz,t.isActOpen)),Qr(2),Co("blocs",t.editoData)("texts",t.texts)("hasChapo",!1)}}let _z=(()=>{class t{constructor(t,e,n,i,r,s,o){this.platformId=t,this.api=e,this.router=n,this.mapStashService=i,this.deviceQueryService=r,this.persistantDataService=s,this.renderer=o,this.loaded=!1,this.activities=new Array,this.map_infos=null,this.map=null,this.mapInited=!1,this.waitingPois=new Array,this.isActOpen=!1,this.breakpoint=0,this.scrollEvent=new Vl}set data(t){if(t){for(var e of(this.map_infos=t.carte,this.map_infos.showZoomButtons=!1,this.map_infos.zoom=this.deviceQueryService.isMobile()?this.map_infos.zoom_defaut_m:this.map_infos.zoom_defaut_d,!Xu(this.platformId)&&t.carte.centre_lat&&(this.map_infos.coordonnees_options={padding:{left:window.innerWidth/2}},this.deviceQueryService.isMobile()&&(this.map_infos.coordonnees_options={padding:{top:56,bottom:56+window.innerHeight/2}})),this.recitData=t.recit,this.keyfactsData=t.keyfacts,this.videoData=t.video,this.actData=t.activites,t.activites.items))e.liked=0!=this.persistantDataService.getItem("activity_liked_"+e.nid,!1),this.activities.push(e);t.composants_editos&&(this.editoData=t.composants_editos),this.loaded=!0,this.breakpoint>0&&setTimeout(()=>{this.initMap()},100)}this.loaded=!0}ngOnInit(){}ngAfterViewInit(){this.breakpoint=this.deviceQueryService.getBreakp
1oint(),this.map_infos&&this.initMap()}ngOnDestroy(){this.map&&this.map.unregisterClickCallback()}checkPositions(t){if(Xu(this.platformId))return;let e,n=window.innerHeight;this.deviceQueryService.isMobile()&&(n=window.innerWidth);for(let i of this.activities){let t=document.querySelector("#act-card-"+i.nid);if(t){let r=t.getBoundingClientRect();window,this.deviceQueryService.isMobile()||r.top<window.innerHeight/2&&window.innerHeight/2-r.top<n&&(n=window.innerHeight/2-r.top,e=i)}}if(e){for(let t of this.activities)t.focus&&t.nid!=e.nid&&(t.focus=!1,this.map&&this.map.resizeFeatures(t.nid,!0));this.map&&!e.focus&&(e.focus=!0,this.map.selectFeature(e.nid))}this.scrollEvent.emit(t)}computePois(){let t=[];for(let e of this.activities)if(!e.filtered)for(let n in e.geolocalisation){let i,r=e.geolocalisation[n];i=r.type&&r.type.calque_mapbox?"pin_"+r.type.calque_mapbox:"pin_depart","1"==e.highlight&&(i+="_highlight");let s={id:e.nid+"-"+n,onlyShowIfSelected:"1",icon:i,coords:[r.lon,r.lat],twothirds:!1};this.deviceQueryService.isMobile()&&(s.twothirds=!0),t.push(s)}this.mapInited?this.map.setPois(t):this.waitingPois=t}cardClicked(t){this.router.navigateByUrl(t.url)}closeAllActs(){for(let t of this.activities)if(t.open){this.cardClicked(t);break}}likeClicked(t){t.liked=!t.liked,t.liked?this.persistantDataService.setItem("activity_liked_"+t.nid,Date.now()):this.persistantDataService.removeItem("activity_liked_"+t.nid),this.persistantDataService.save()}mapClicked(t){let e=t.split("-")[0];for(let n of this.activities)if(n.nid==e&&!n.open){this.cardClicked(n);break}}cardHover(t){t.hover=!0,this.map&&0==t.open&&this.map.selectFeature(t.nid)}cardHout(t){t.hover=!1,this.map&&0==t.open&&0==t.focus&&this.map.resizeFeatures(t.nid,!0,!1);for(let e of this.activities)if(e.focus){this.map.selectFeature(e.nid);break}}linkClicked(t,e){this.router.navigateByUrl(e.url),t.preventDefault(),t.stopPropagation()}initMap(){Xu(this.platformId)||this.deviceQueryService.isMobile()||(this.computePois(),this.mapInited=!0,this.map=this.mapStashService.requestMap(this.mapContainer),this.map.registerClickCallback(t=>{this.mapClicked(t)}),this.map.setParameters(this.map_infos),this.waitingPois.length>0&&(this.map.setPois(this.waitingPois),this.waitingPois=[]),this.actContentScroll())}getActSloganStyle(t){return Xu(this.platformId)?"":(""==t.computedSloganStyle&&Promise.resolve().then(()=>{let e=document.getElementById("act-slogan-"+t.nid);if(e){let n=e.getElementsByClassName("slogan_text")[0];if(n){let e=n.getBoundingClientRect().width;e>0&&(t.computedSloganStyle="width:"+e+"px;height:"+e+"px;")}}}),t.computedSloganStyle)}actContentScroll(){if(this.deviceQueryService.isMobile()&&!this.isActOpen)for(let t of this.activities)if(!t.filtered){let e=document.getElementById("act-card-"+t.nid).getBoundingClientRect();e.left>-window.innerWidth/2&&e.left<window.innerWidth/2&&e.right>window.innerWidth/2?t.focus||(this.map.selectFeature(t.nid),t.focus=!0):t.focus&&(t.focus=!1)}}mobileMapScrollEvent(t){let e=0;for(let n in this.editoData)if(this.editoData[n].feuillets)for(let i in this.editoData[n].feuillets){if(n==t[0]&&i==t[1])return void this.mapScrollEvent(e);e++}else e++}mapScrollEvent(t,e=!1){if(Xu(this.platformId))return;let n,i=0,r=-1,s=-1;for(let c in this.editoData)if(this.editoData[c].feuillets)for(let e in this.editoData[c].feuillets){if(i==t){n=this.editoData[c].feuillets[e],r=parseInt(c),s=parseInt(e);break}i++}else i++;if(!n)return;let o=[],a={};if(a.calques_mapbox_hidden=this.map_infos.calques_mapbox_hidden,n.carte){a.calques_mapbox_visible=n.carte.calques_mapbox,a.niveau_zoom=this.deviceQueryService.isMobile()?n.carte.niveau_zoom_m:n.carte.niveau_zoom_d,a.fly_duration=this.deviceQueryService.isMobile()?0:1e3,e&&(a.fly_duration=0),a.coordonnees_centre=n.carte.coordonnees_centre,a.coordonnees_options={padding:{left:window.innerWidth/2}},this.deviceQueryService.isMobile()&&(a.coordonnees_options={});for(let t in n.carte.pois){let e,i=n.carte.pois[t];e=i.type&&i.type.calque_mapbox?"pin_"+i.type.calque_mapbox:"pin_depart",o.push({id:i.titre,onlyShowIfSelected:!1,icon:e,coords:[i.lon,i.lat]})}}let l=this.editoBuilder.getMapContainer(r,s,this.deviceQueryService.isMobile());this.mapInited?(null!=l&&(this.map=this.mapStashService.requestMap(l)),this.map.setMapData(a),this.map.setPois(o)):(this.waitingMapData=a,this.waitingPois=o,this.waitingElement=l,this.initMap())}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(bb),wo(Yx),wo(VM),wo(Pb),wo(Mb),wo(za))},t.\u0275cmp=Ut({type:t,selectors:[["app-home"]],viewQuery:function(t,e){if(1&t&&(nc(az,1),nc(lz,1)),2&t){let t;ec(t=ic())&&(e.mapContainer=t.first),ec(t=ic())&&(e.editoBuilder=t.first)}},inputs:{languageData:"languageData",texts:"texts",data:"data"},outputs:{scrollEvent:"scrollEvent"},decls:1,vars:1,consts:[["inscroll","",3,"inscrollEvent",4,"ngIf"],["inscroll","",3,"inscrollEvent"],[3,"data",4,"ngIf"],["id","activities_wrapper",1,"desktop_only"],["id","activities_grid",1,"bib_grid_desktop_only"],["id","activities_header","class","bib_title2 ignore_p_margin",3,"innerHtml",4,"ngIf"],["id","activities_content",3,"ngClass","scroll"],[4,"ngFor","ngForOf"],["class","activities_card_cont center desktop_only",4,"ngIf"],["class","home_act_button mobile_only",4,"ngIf"],["id","activities_map_wrapper"],["id","activities_map_container",3,"ngClass"],["mapcontainer",""],[3,"blocs","texts","hasChapo","mapScrollEvent","mobileMapScrollEvent"],[3,"data"],["id","activities_header",1,"bib_title2","ignore_p_margin",3,"innerHtml"],[1,"activities_card_cont","cursor",3,"ngClass","id"],[3,"fromacts","last","act","texts","openable","nobottom","likeClicked","cardClicked"],[1,"activities_card_cont","center","desktop_only"],[1,"activities_bt",3,"routerLink","innerHtml"],[1,"home_act_button","mobile_only"]],template:function(t,e){1&t&&xo(0,fz,14,15,"section",0),2&t&&Co("ngIf",e.loaded)},directives:[zu,$M,Tu,Iu,VT,oz,Eb,Sw,Jx],pipes:[Sb],styles:["#activities_wrapper[_ngcontent-%COMP%]{position:relative;width:100%;height:120vh;min-height:100vh}@media (min-width:992px){#activities_wrapper[_ngcontent-%COMP%]{height:auto}}#activities_wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#activities_filters_wrapper[_ngcontent-%COMP%], #activities_map_wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}#activities_filters_wrapper.hidden[_ngcontent-%COMP%]{display:none}#activities_grid[_ngcontent-%COMP%]{min-height:120vh;z-index:10}#activities_header[_ngcontent-%COMP%]{position:relative;text-align:center;padding:5rem 0 1.25rem;z-index:10}@media (min-width:992px){#activities_header[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;padding:6.25rem 0}}.bib_grid_desktop_only[_ngcontent-%COMP%]{position:sticky;position:-webkit-sticky;top:0;display:flex;flex-direction:column;justify-content:space-between}@media (min-width:992px){.bib_grid_desktop_only[_ngcontent-%COMP%]{display:grid}}#activities_map_container[_ngcontent-%COMP%]{position:sticky;align-self:flex-start;top:0;left:0;width:100%;height:100vh}#activities_map_container.act_open[_ngcontent-%COMP%]{top:0}#activities_content[_ngcontent-%COMP%]{position:relative;display:flex;overflow-x:scroll;z-index:10;align-items:flex-end;margin-top:auto;min-height:50vh;padding-right:20px;scroll-snap-type:x mandatory;scroll-padding:0 40px 0 0}@media (min-width:992px){#activities_content[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7;flex-wrap:wrap;overflow:visible;align-items:flex-start;padding:0;margin:0;min-height:0;scroll-snap-type:none;min-height:100vh}}#activities_content[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}#activities_content.act_open[_ngcontent-%COMP%]{overflow-x:hidden}.activities_card_cont[_ngcontent-%COMP%]{flex:0 0 auto;position:relative;bottom:20px;scroll-snap-align:center;width:calc(11 * ((100vw - 40px - 77px) / 12) + calc(11 * 7px));margin-right:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));max-width:500px}@media (min-width:992px){.activities_card_cont[_ngcontent-%COMP%]{width:calc(calc(11 + 11) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.activities_card_cont[_ngcontent-%COMP%]{width:calc(calc(11 + 11) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.activities_card_cont[_ngcontent-%COMP%]{width:calc(calc(11 + 11) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.activities_card_cont[_ngcontent-%COMP%]{width:calc(calc(55px * 11) + calc(60px * 11))}}@media (min-width:992px){.activities_card_cont[_ngcontent-%COMP%]{margin-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.activities_card_cont[_ngcontent-%COMP%]{margin-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.activities_card_cont[_ngcontent-%COMP%]{margin-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.activities_card_cont[_ngcontent-%COMP%]{margin-right:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.activities_card_cont[_ngcontent-%COMP%]{scroll-snap-align:none;bottom:auto;width:100%;margin-right:0;max-width:none}}.activities_card_cont.act_open[_ngcontent-%COMP%]{margin-right:100vw;max-width:none}@media (min-width:992px){.activities_card_cont.act_open[_ngcontent-%COMP%]{margin-right:0}}.activities_card_cont.center[_ngcontent-%COMP%]{text-align:center}.activities_bt[_ngcontent-%COMP%]{display:inline-block;color:#fff;background-color:#9ab400;text-transform:uppercase;margin-bottom:.5rem;padding:1.06rem 1.56rem}@media (min-width:992px){.activities_bt[_ngcontent-%COMP%]{margin:4.6rem 0 6.25rem}}.activities_bt[_ngcontent-%COMP%]:hover{color:#9ab400;background-color:#fff}.home_act_button[_ngcontent-%COMP%]{position:relative;z-index:10;padding-bottom:1.25rem;text-align:center}.home_act_button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}"]}),t})();function vz(t,e){1&t&&(Mo(0,"a",22),So(1,"img",23),Oo()),2&t&&Co("href",Bo().data.facebook,Yi)}function yz(t,e){1&t&&(Mo(0,"a",22),So(1,"img",24),Oo()),2&t&&Co("href",Bo().data.twitter,Yi)}function xz(t,e){1&t&&(Mo(0,"a",22),So(1,"img",25),Oo()),2&t&&Co("href",Bo().data.instagram,Yi)}function bz(t,e){1&t&&(Mo(0,"a",22),So(1,"img",26),Oo()),2&t&&Co("href",Bo().data.youtube,Yi)}function wz(t,e){1&t&&(Mo(0,"a",22),So(1,"img",27),Oo()),2&t&&Co("href",Bo().data.tripadvisor,Yi)}function Cz(t,e){1&t&&So(0,"div",28),2&t&&Co("innerHtml",Bo().texts.newsletter_confirm,Ki)}function Pz(t,e){1&t&&So(0,"div",28),2&t&&Co("innerHtml",Bo().texts.newsletter_already_subscribed,Ki)}function Mz(t,e){if(1&t&&So(0,"a",31),2&t){const t=e.$implicit;Co("routerLink",t.href)("innerHtml",t.label,Ki)}}function Oz(t,e){if(1&t&&(Mo(0,"div",29),xo(1,Mz,1,2,"a",30),Oo()),2&t){const t=Bo();Qr(1),Co("ngForOf",t.data.menu_1)}}function Sz(t,e){if(1&t&&So(0,"a",31),2&t){const t=e.$implicit;Co("routerLink",t.href)("innerHtml",t.label,Ki)}}function kz(t,e){if(1&t&&(Mo(0,"div",29),xo(1,Sz,1,2,"a",30),Oo()),2&t){const t=Bo();Qr(1),Co("ngForOf",t.data.menu_2)}}function Tz(t,e){1&t&&So(0,"div",32),2&t&&Co("innerHtml",Bo().data.nom,Ki)}function Ez(t,e){1&t&&So(0,"div",32),2&t&&Co("innerHtml",Bo().data.contact,Ki)}function Iz(t,e){1&t&&So(0,"div",32),2&t&&Co("innerHtml",Bo().data.siege,Ki)}const Az=function(t){return{error:t}},zz=function(t){return{active:t}},Dz=function(t){return{inactive:t}};let Lz=(()=>{class t{constructor(t){this.api=t,this.prenom="",this.nom="",this.mail="",this.mailError=!1,this.subscribed=0}ngOnInit(){}submitNewsletter(){this.subscribed=0,this.mailError=!/^[^\s@]+@[^\s@]+$/.test(this.mail),this.mailError||this.api.signUpNewsletter(this.prenom,this.nom,this.mail).subscribe(t=>{this.subscribed="success"==t.result?1:2},t=>{console.error(t)})}}return t.\u0275fac=function(e){return new(e||t)(wo(bb))},t.\u0275cmp=Ut({type:t,selectors:[["app-footer"]],inputs:{data:"data",texts:"texts"},decls:38,vars:34,consts:[["id","footer"],[1,"bib_grid"],["id","footer_top"],["id","footer_social"],[1,"bib_title4",3,"innerHtml"],["id","footer_icons"],["class","footer_socialicon","target","_blank",3,"href",4,"ngIf"],["id","footer_newsletter"],["id","footer_newsletterform"],["type","text","name","prenom",1,"bib_mentions",3,"value","placeholder","change"],[1,"footer_newsletter_message"],["type","text","name","nom",1,"bib_mentions",3,"value","placeholder","change"],["type","text","name","mail",1,"bib_mentions","last",3,"ngClass","value","placeholder","focus","input"],[1,"footer_newsletter_message",3,"ngClass","innerHtml"],["id","footer_button_cont"],[1,"bib_button","cursor",3,"innerHtml","ngClass","click"],["id","footer_newsletter_success","class","footer_newsletter_message",3,"innerHtml",4,"ngIf"],["id","footer_bottom"],["id","footer_menu_cont"],["class","footer_menu",4,"ngIf"],["id","footer_infos"],["class","bib_mentions",3,"innerHtml",4,"ngIf"],["target","_blank",1,"footer_socialicon",3,"href"],["src","assets/img/footer/facebook.svg"],["src","assets/img/footer/twitter.svg"],["src","assets/img/footer/instagram.svg"],["src","assets/img/footer/youtube.svg"],["src","assets/img/footer/tripadvisor.svg"],["id","footer_newsletter_success",1,"footer_newsletter_message",3,"innerHtml"],[1,"footer_menu"],["class","noline",3,"routerLink","innerHtml",4,"ngFor","ngForOf"],[1,"noline",3,"routerLink","innerHtml"],[1,"bib_mentions",3,"innerHtml"]],template:function(t,e){1&t&&(Mo(0,"div",0),Mo(1,"div",1),Mo(2,"div",2),Mo(3,"div",3),So(4,"div",4),Mo(5,"div",5),xo(6,vz,2,1,"a",6),xo(7,yz,2,1,"a",6),xo(8,xz,2,1,"a",6),xo(9,bz,2,1,"a",6),xo(10,wz,2,1,"a",6),Oo(),Oo(),Mo(11,"div",7),So(12,"div",4),Mo(13,"div",8),Mo(14,"div"),Mo(15,"input",9),Lo("change",function(t){return e.prenom=t.target.value}),Oo(),Mo(16,"div",10),da(17,"\xa0"),Oo(),Oo(),Mo(18,"div"),Mo(19,"input",11),Lo("change",function(t){return e.nom=t.target.value}),Oo(),Mo(20,"div",10),da(21,"\xa0"),Oo(),Oo(),Mo(22,"div"),Mo(23,"input",12),Lo("focus",function(){return e.mailError=!1})("input",function(t){return e.mail=t.target.value}),Oo(),So(24,"div",13),Bl(25,"safe"),Oo(),Mo(26,"div",14),Mo(27,"div",15),Lo("click",function(){return e.submitNewsletter()}),Oo(),Oo(),xo(28,Cz,1,1,"div",16),xo(29,Pz,1,1,"div",16),Oo(),Oo(),Oo(),Mo(30,"div",17),Mo(31,"div",18),xo(32,Oz,2,1,"div",19),xo(33,kz,2,1,"div",19),Oo(),Mo(34,"div",20),xo(35,Tz,1,1,"div",21),xo(36,Ez,1,1,"div",21),xo(37,Iz,1,1,"div",21),Oo(),Oo(),Oo(),Oo()),2&t&&(Qr(4),Co("innerHtml",e.texts.suivez_nous,Ki),Qr(2),Co("ngIf",e.data.facebook),Qr(1),Co("ngIf",e.data.twitter),Qr(1),Co("ngIf",e.data.instagram),Qr(1),Co("ngIf",e.data.youtube),Qr(1),Co("ngIf",e.data.tripadvisor),Qr(2),Co("innerHtml",e.data.newsletter,Ki),Qr(3),Co("value",e.prenom)("placeholder",e.texts.newsletter_prenom),Qr(4),Co("value",e.nom)("placeholder",e.texts.newsletter_nom),Qr(4),Co("ngClass",Il(28,Az,e.mailError))("value",e.mail)("placeholder",e.texts.newsletter_mail),Qr(1),Co("ngClass",Il(30,zz,e.mailError))("innerHtml",Nl(25,25,e.mailError?e.texts.newsletter_error:"\xa0","html"),Ki),Qr(3),Co("innerHtml",e.texts.newsletter_btn,Ki)("ngClass",Il(32,Dz,""==e.prenom||""==e.nom||""==e.mail)),Qr(1),Co("ngIf",1==e.subscribed),Qr(1),Co("ngIf",2==e.subscribed),Qr(3),Co("ngIf",e.data.menu_1.length>0),Qr(1),Co("ngIf",e.data.menu_2.length>0),Qr(2),Co("ngIf",e.data.nom),Qr(1),Co("ngIf",e.data.contact),Qr(1),Co("ngIf",e.data.siege))},directives:[zu,Tu,Iu,Jx],pipes:[Sb],styles:["#footer[_ngcontent-%COMP%]{background-color:#9ab400;width:100%;padding:3.75rem 0;box-sizing:border-box;color:#fff}@media (min-width:992px){#footer[_ngcontent-%COMP%]{padding:5rem 0}}#footer_top[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;display:flex;flex-wrap:wrap;border-bottom:1px solid #fff;padding-bottom:2.5rem}@media (min-width:992px){#footer_top[_ngcontent-%COMP%]{flex-wrap:nowrap;justify-content:space-between;padding-bottom:0}}#footer_newsletter[_ngcontent-%COMP%], #footer_social[_ngcontent-%COMP%]{flex-basis:100%}@media (min-width:992px){#footer_newsletter[_ngcontent-%COMP%], #footer_social[_ngcontent-%COMP%]{flex-basis:auto}}#footer_icons[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:1.25rem;margin-bottom:1.875rem;width:100%}@media (min-width:992px){#footer_icons[_ngcontent-%COMP%]{width:auto}}.footer_socialicon[_ngcontent-%COMP%]{margin-right:1.25rem}#footer_newsletterform[_ngcontent-%COMP%]{position:relative;margin-top:1.25rem}@media (min-width:992px){#footer_newsle
1tterform[_ngcontent-%COMP%]{display:flex;align-items:flex-start}}#footer_newsletterform[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{background-color:initial;border:1px solid #fff;padding:.93rem .62rem;box-sizing:border-box;color:#fff;width:100%;margin-bottom:1.25rem;border-radius:0!important}@media (min-width:992px){#footer_newsletterform[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border-right:none;margin-bottom:0;width:calc(2.2 * ((100vw - 40px - 77px) / 12) + calc(2 * 7px))}}@media (min-width:992px) and (min-width:992px){#footer_newsletterform[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:calc(calc(2.2 + 2) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){#footer_newsletterform[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:calc(calc(2.2 + 2) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){#footer_newsletterform[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:calc(calc(2.2 + 2) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){#footer_newsletterform[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:calc(calc(55px * 2.2) + calc(60px * 2))}}@media (min-width:992px) and (min-width:1185px){#footer_newsletterform[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:calc(2.5 * ((100vw - 40px - 77px) / 12) + calc(2 * 7px))}}@media (min-width:992px) and (min-width:1185px) and (min-width:992px){#footer_newsletterform[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:calc(calc(2.5 + 2) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1185px) and (min-width:1024px){#footer_newsletterform[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:calc(calc(2.5 + 2) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1185px) and (min-width:1280px){#footer_newsletterform[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:calc(calc(2.5 + 2) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1185px) and (min-width:1440px){#footer_newsletterform[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:calc(calc(55px * 2.5) + calc(60px * 2))}}#footer_newsletterform[_ngcontent-%COMP%]   input.error[_ngcontent-%COMP%], #footer_newsletterform[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{background-color:#fff;color:#131313}#footer_newsletterform[_ngcontent-%COMP%]   input.error[_ngcontent-%COMP%]{border:1.5px solid #d32f2f}#footer_newsletterform[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#fff9}#footer_newsletterform[_ngcontent-%COMP%]   input.last[_ngcontent-%COMP%]{border-right:1px solid #fff;margin-right:.81rem}#footer_newsletterform[_ngcontent-%COMP%]   .bib_button[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #fff;color:#9ab400;padding:.945rem 1.56rem;font-weight:400}#footer_newsletterform[_ngcontent-%COMP%]   .bib_button[_ngcontent-%COMP%]:hover{background-color:#9ab400;border:1px solid #fff;color:#fff}#footer_newsletterform[_ngcontent-%COMP%]   .bib_button.inactive[_ngcontent-%COMP%]{opacity:.75;pointer-events:none}.footer_newsletter_message[_ngcontent-%COMP%]{font-weight:700;padding:.5rem 0;display:none}@media (min-width:992px){.footer_newsletter_message[_ngcontent-%COMP%]{display:block}}.footer_newsletter_message.active[_ngcontent-%COMP%]{display:block}#footer_newsletter_success[_ngcontent-%COMP%]{display:block;padding:.5rem 0;text-align:center;margin-top:1rem}@media (min-width:992px){#footer_newsletter_success[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;text-align:left;margin:0}}#footer_bottom[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;padding-top:2.5rem}@media (min-width:992px){#footer_bottom[_ngcontent-%COMP%]{display:flex;justify-content:space-between}}.footer_menu[_ngcontent-%COMP%]{margin-bottom:1.25rem;display:flex;flex-wrap:wrap}@media (min-width:992px){.footer_menu[_ngcontent-%COMP%]{flex-wrap:nowrap}}.footer_menu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{line-height:148%;margin:.3125rem 1.25rem .3125rem 0}@media (min-width:992px){.footer_menu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}}.footer_menu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:last-child{margin-right:0}.footer_menu[_ngcontent-%COMP%]:last-child{margin-bottom:0}#footer_infos[_ngcontent-%COMP%]{margin-top:2.5rem}@media (min-width:992px){#footer_infos[_ngcontent-%COMP%]{text-align:right;margin-top:0}}#footer_infos[_ngcontent-%COMP%]   .bib_mentions[_ngcontent-%COMP%]{line-height:148%}#footer_button_cont[_ngcontent-%COMP%]{width:100%;text-align:center}@media (min-width:992px){#footer_button_cont[_ngcontent-%COMP%]{width:auto;text-align:left;margin-bottom:0}}"]}),t})();function Rz(t,e){if(1&t&&So(0,"a",12),2&t){const t=Bo(2);Co("href",t.data.cookie_mentions_lien,Yi)("innerHtml",t.data.cookie_mention_label,Ki)}}function Fz(t,e){if(1&t){const t=Io();Mo(0,"a",13),Lo("click",function(){return Ae(t),Bo(2).openPopin()}),Oo()}2&t&&Co("innerHtml",Bo(2).data.cookie_param_label,Ki)}function Bz(t,e){if(1&t){const t=Io();Mo(0,"div",2),Mo(1,"div",3),Mo(2,"div",4),Mo(3,"div"),So(4,"span",5),Bl(5,"safe"),Mo(6,"div",6),xo(7,Rz,1,2,"a",7),xo(8,Fz,1,1,"a",8),Oo(),Oo(),Oo(),Mo(9,"div",9),Mo(10,"a",10),Lo("click",function(){return Ae(t),Bo().rejectAll()}),Bl(11,"safe"),Oo(),Mo(12,"a",11),Lo("click",function(){return Ae(t),Bo().acceptAll()}),Bl(13,"safe"),Oo(),Oo(),Oo(),Oo()}if(2&t){const t=Bo();Qr(4),Co("innerHtml",Nl(5,5,t.data.cookie_bandeau_texte,"html"),Ki),Qr(3),Co("ngIf",t.data.cookie_mentions_lien),Qr(1),Co("ngIf",t.data.cookie_param_label),Qr(2),Co("innerHtml",Nl(11,8,t.texts.refuser,"html"),Ki),Qr(2),Co("innerHtml",Nl(13,11,t.texts.accepter,"html"),Ki)}}function Nz(t,e){if(1&t){const t=Io();Mo(0,"div",14),Mo(1,"div",3),Mo(2,"div",15),So(3,"div",16),Bl(4,"
1safe"),Mo(5,"div",17),So(6,"div",18),Bl(7,"safe"),Mo(8,"div"),Mo(9,"label",19),Mo(10,"input",20),Lo("change",function(){Ae(t);const e=Bo();return e.navigation=!e.navigation}),Oo(),So(11,"span",21),Oo(),Oo(),Oo(),So(12,"div",22),Bl(13,"safe"),Mo(14,"div",17),So(15,"div",18),Bl(16,"safe"),Mo(17,"div"),Mo(18,"label",19),Mo(19,"input",23),Lo("change",function(){Ae(t);const e=Bo();return e.analytics=!e.analytics}),Oo(),So(20,"span",21),Oo(),Oo(),Oo(),So(21,"div",22),Bl(22,"safe"),Mo(23,"div",24),Mo(24,"div",25),Mo(25,"div",26),Lo("click",function(){return Ae(t),Bo().acceptAll()}),Bl(26,"safe"),Oo(),Oo(),Mo(27,"div",25),Mo(28,"div",27),Lo("click",function(){return Ae(t),Bo().save()}),Bl(29,"safe"),Oo(),Oo(),Oo(),Mo(30,"div",28),Lo("click",function(){return Ae(t),Bo().close()}),So(31,"img",29),Oo(),Oo(),Oo(),Oo()}if(2&t){const t=Bo();Qr(3),Co("innerHtml",Nl(4,9,t.texts.gestion_des_cookies,"html"),Ki),Qr(3),Co("innerHtml",Nl(7,12,t.texts.cookies_de_navigation,"html"),Ki),Qr(4),Co("checked",t.navigation),Qr(2),Co("innerHtml",Nl(13,15,t.data.cookie_popin_nav,"html"),Ki),Qr(3),Co("innerHtml",Nl(16,18,t.texts.cookies_analyse_audience,"html"),Ki),Qr(4),Co("checked",t.analytics),Qr(2),Co("innerHtml",Nl(22,21,t.data.cookie_popin_analyse,"html"),Ki),Qr(4),Co("innerHtml",Nl(26,24,t.texts.tout_accepter_et_fermer,"html"),Ki),Qr(3),Co("innerHtml",Nl(29,27,t.texts.enregistrer_mes_choix,"html"),Ki)}}let Uz=(()=>{class t{constructor(t,e){this.platformId=t,this.ga=e,this.cookiesDone=new Vl,this.cookiesOpen=new Vl,this.show=!1,this.showPopin=!1,this.navigation=!0,this.analytics=!1,Xu(t)||(localStorage.getItem("bibracte_cookies_pdata")?this.cookiesDone.emit():this.show=!0)}ngOnInit(){}acceptAll(){this.navigation=!0,this.analytics=!0,this.save()}rejectAll(){this.navigation=!1,this.analytics=!1,this.save()}openPopin(){this.showPopin=!0,this.cookiesOpen.emit(!0)}save(){this.showPopin=!1,localStorage.setItem("bibracte_cookies_pdata",this.navigation?"true":"false"),localStorage.setItem("bibracte_cookies_analytics",this.analytics?"true":"false"),this.analytics&&this.ga.setCookiesAllowed(),this.cookiesDone.emit()}close(){this.showPopin=!1}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(Cb))},t.\u0275cmp=Ut({type:t,selectors:[["app-cookies"]],inputs:{data:"data",texts:"texts"},outputs:{cookiesDone:"cookiesDone",cookiesOpen:"cookiesOpen"},decls:2,vars:2,consts:[["id","cookies_cont",4,"ngIf"],["id","cookies_popin_wrapper",4,"ngIf"],["id","cookies_cont"],[1,"bib_grid"],[1,"cookies_left"],[3,"innerHtml"],[1,"cookies_links"],["class","cookie_link","target","_blank",3,"href","innerHtml",4,"ngIf"],["class","cookie_link cursor",3,"innerHtml","click",4,"ngIf"],[1,"cookies_right"],[1,"cookies_button","cursor","bib_button",3,"innerHtml","click"],[1,"cookies_button","green","cursor","bib_button",3,"innerHtml","click"],["target","_blank",1,"cookie_link",3,"href","innerHtml"],[1,"cookie_link","cursor",3,"innerHtml","click"],["id","cookies_popin_wrapper"],["id","cookies_popin_cont"],[1,"cookies_popin_title","bib_title3",3,"innerHtml"],[1,"cookies_popin_line"],[1,"bib_title4",3,"innerHtml"],[1,"cookies_popin_switch"],["type","checkbox","name","navigation",3,"checked","change"],[1,"cookies_popin_slider","round"],[1,"cookies_popin_desc",3,"innerHtml"],["type","checkbox","name","analytics",3,"checked","change"],[1,"cookies_popin_buttons"],[1,"cookies_popin_button_cont"],["id","cookies_popin_all",1,"cookies_popin_button","bib_button","cursor",3,"innerHtml","click"],["id","cookies_popin_save",1,"cookies_popin_button","bib_button","cursor",3,"innerHtml","click"],[1,"cookies_popin_close","cursor",3,"click"],["src","assets/img/close.svg"]],template:function(t,e){1&t&&(xo(0,Bz,14,14,"div",0),xo(1,Nz,32,30,"div",1)),2&t&&(Co("ngIf",e.show&&!e.showPopin&&e.data.cookie_bandeau_texte),Qr(1),Co("ngIf",e.show&&e.showPopin))},directives:[zu],pipes:[Sb],styles:['#cookies_cont[_ngcontent-%COMP%]{position:fixed;left:0;bottom:0;width:100%;padding:1.875rem 0;background-color:#131313;z-index:10000}.cookies_left[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;color:#fff;height:100%}@media (min-width:992px){.cookies_left[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:10}}.cookies_left[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.875rem;color:#fff}@media (min-width:992px){.cookies_left[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:inherit}}.cookies_left[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff;margin-right:1.56rem;font-size:.875rem}@media (min-width:992px){.cookies_left[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-left:1.56rem;margin-right:0;font-size:inherit}}.cookies_links[_ngcontent-%COMP%]{margin:1rem 0}@media (min-width:992px){.cookies_links[_ngcontent-%COMP%]{display:inline;margin:0}}.cookie_link[_ngcontent-%COMP%]{text-decoration:underline}.cookies_right[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;color:#fff;height:100%;display:flex;justify-content:flex-start;align-items:center}@media (min-width:992px){.cookies_right[_ngcontent-%COMP%]{grid-column-start:10;grid-column-end:13;grid-row-start:1;grid-row-end:2;justify-content:flex-end}}.cookies_button[_ngcontent-%COMP%]{width:115px;border:1px solid #fff;padding:.825rem 0;text-align:center;font-weight:400}.cookies_button[_ngcontent-%COMP%]:hover{background-color:#fff;color:#131313}.cookies_button.green[_ngcontent-%COMP%]{background-color:#9ab400;border:1px solid #9ab400;margin-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(2 * 7px))}@media (min-width:992px){.cookies_button.green[_ngcontent-%COMP%]{margin-left:calc(calc(1 + 2) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.cookies_button.green[_ngcontent-%COMP%]{margin-left:calc(calc(1 + 2) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.cookies_button.green[_ngcontent-%COMP%]{margin-left:calc(calc(1 + 2) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.cookies_button.green[_ngcontent-%COMP%]{margin-left:calc(calc(55px * 1) + calc(60px * 2))}}@media (min-width:992px){.cookies_button.green[_ngcontent-%COMP%]{margin-left:calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px))}}@media (min-width:992px) and (min-width:992px){.cookies_button.green[_ngcontent-%COMP%]{margin-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:992px) and (min-width:1024px){.cookies_button.green[_ngcontent-%COMP%]{margin-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:992px) and (min-width:1280px){.cookies_button.green[_ngcontent-%COMP%]{margin-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:992px) and (min-width:1440px){.cookies_button.green[_ngcontent-%COMP%]{margin-left:calc(calc(55px * 1) + calc(60px * 0))}}.cookies_button.green[_ngcontent-%COMP%]:hover{border:1px solid #fff;background-color:#fff;color:#9ab400}#cookies_popin_wrapper[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#131313bf;z-index:10000;display:flex;align-items:center}#cookies_popin_cont[_ngcontent-%COMP%]{position:relative;grid-column-start:1;grid-column-end:13;padding:1.875rem calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px));background-color:#fff}@media (min-width:992px){#cookies_popin_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){#cookies_popin_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}
1@media (min-width:1280px){#cookies_popin_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){#cookies_popin_cont[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){#cookies_popin_cont[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){#cookies_popin_cont[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){#cookies_popin_cont[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){#cookies_popin_cont[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){#cookies_popin_cont[_ngcontent-%COMP%]{grid-column-start:4;grid-column-end:10;padding-top:5rem;padding-bottom:5rem}}.cookies_popin_title[_ngcontent-%COMP%]{text-align:center;margin-bottom:3rem}.cookies_popin_line[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between;margin-bottom:1.25rem}.cookies_popin_desc[_ngcontent-%COMP%]{margin-bottom:3.125rem}.cookies_popin_switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:34px;height:14px}.cookies_popin_switch[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.cookies_popin_slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#13131380;transition:.25s}.cookies_popin_slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:20px;width:20px;left:0;bottom:-3px;background-color:#131313;transition:.25s}input[_ngcontent-%COMP%]:checked + .cookies_popin_slider[_ngcontent-%COMP%]{background-color:#cdd12c80}input[_ngcontent-%COMP%]:focus + .cookies_popin_slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #cdd12c80}input[_ngcontent-%COMP%]:checked + .cookies_popin_slider[_ngcontent-%COMP%]:before{transform:translateX(17px);background-color:#cdd12c}.cookies_popin_slider.round[_ngcontent-%COMP%]{border-radius:34px}.cookies_popin_slider.round[_ngcontent-%COMP%]:before{border-radius:50%}.cookies_popin_buttons[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap;justify-content:space-around;align-items:center}@media (min-width:992px){.cookies_popin_buttons[_ngcontent-%COMP%]{justify-content:space-around;align-items:center}}.cookies_popin_button[_ngcontent-%COMP%]{font-weight:400;padding:1.06rem 1.56rem;margin-bottom:1rem;border:1px solid #131313}.cookies_popin_button[_ngcontent-%COMP%]:hover{background-color:#131313;color:#fff}#cookies_popin_save[_ngcontent-%COMP%]{order:1;margin-right:.5rem}@media (min-width:992px){#cookies_popin_save[_ngcontent-%COMP%]{order:2;margin-right:0}}#cookies_popin_all[_ngcontent-%COMP%]{order:2}@media (min-width:992px){#cookies_popin_all[_ngcontent-%COMP%]{order:1;margin-right:.5rem}}.cookies_popin_close[_ngcontent-%COMP%]{position:absolute;top:1.31rem;right:1.31rem;width:16px}.cookies_popin_close[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.cookies_popin_button_cont[_ngcontent-%COMP%]{text-align:center}']}),t})();function Hz(t){return t`# BibWorkout - Final Merge Auto CSV - Preprod`}function jz(t){return t.file({label:"Bib Element CSV",accept:".csv",required:!0})}function Vz(t){return new Array}function $z(t){return t("BIB- REPRISE DES CONTENUS - VISITE VIRTUELLE_ echantillon d-objets (1).csv").csv()}function qz(t,e,n,i,r){const s=t?e:n;let o=i.filter(t=>""!==t["Identifiant Drupal"]).map(t=>{let e={};const n=new RegExp(/\d{4}_\d{4}/).exec(t.urlImage),i=null!==n?n[0].split("_"):[70,70];return e.width=Math.min(70,parseInt(i[0])/parseInt(i[1])*70),e.height=Math.min(70,parseInt(i[1])/parseInt(i[0])*70),e.id=t["Identifiant Drupal"],{...e,...t}});return-1!==r&&(o[r].width=o[r].width*s,o[r].height=o[r].height*s,o[r].selected=!0,o[r].fx=0,o[r].fy=0,o[r].hooveredCommonProperties=[]),o}function Gz(){return["linkedItem"]}function Zz(){return new Map([["theme1",["theme1","theme2","theme3"]],["theme2",["theme1","theme2","theme3"]],["theme3",["theme1","theme2","theme3"]],["material1",["material1","material2","material3"]],["material2",["material1","material2","material3"]],["material3",["material1","material2","material3"]],["fonction",["fonction","fonction2"]],["fonction2",["fonction","fonction2"]],["discoverPlace",["discoverPlace"]],["productionPlace",["productionPlace"]]])}function Wz(t,e,n,i,r,s,o,a,l){let c=[];if(t.forEach((t,r)=>{if(r==e)return;let s=[];if(n.forEach((n,r)=>
1{n.forEach((n,o)=>{-1!==e&&t[r]==i[e][n]&&""!==i[e][n]&&-1==s.indexOf(i[e][n])&&s.push(i[e][n])})}),s.length>0){const e=c.find(t=>t.commonProps.join(",")===s.sort().join(","));e?e.commonNodes.push(t):s.length>0&&c.push({id:s.join(","),commonProps:s,commonNodes:[t]})}}),2==r){let t=c.map(t=>t.commonProps.length);s.value=t,a(l,1.11-o(t)/10)}return c}function Xz(t){let e=0;for(const n of t){const t=n.commonProps.length;t>e&&(e=t)}return e}function Qz(t){let e=1/0;for(const n of t){const t=n.commonProps.length;t<e&&(e=t)}return e}function Kz(t,e,n){return t.max(e.filter(t=>t.commonProps.length==n),t=>t.commonNodes.length)}function Yz(){return 2}function Jz(t,e,n,i,r,s,o){if(-1==t){let t=[];for(let n of e)n.type="galactic",t.push(n);return t}let a=e.map(t=>t);n.forEach(t=>{let e=t.commonNodes.length;for(;!Number.isInteger(Math.sqrt(e));)e++;a.push({...t,type:"cluster",width:Math.pow(Math.sqrt(e)*(1==i?70:10)+r,s),height:Math.pow(Math.sqrt(e)*(1==i?70:10)+r,s),rFactor:Math.pow(2*Math.sqrt([e].length)*Math.PI,s)}),t.commonNodes.forEach(t=>{a.splice(a.indexOf(t),1)})});let l=e[t];const c=a.findIndex(t=>t.id==l.id);-1!=c?a[c].type="central":a.push({...l,type:"central"});for(let u of o)if(""!==e[t][u]){let n=e.findIndex(n=>n.id.trim()===e[t][u].trim());if(-1!=n){const i=Object.assign({},e[n]),r=a.findIndex(t=>t.id==i.id);-1!=r?a[r].type="linkedItem":a.push({...i,explanation:e[t].linkedItemExplanation,type:"linkedItem"})}}return a=a.map(t=>(t.type||(t.type="oort"),t)),a}function tD(t){return function(e,n){e.value=n,e.dispatchEvent(new t("input"))}}function eD(t,e,n,i,r){return function(s,o,a=!1,l=0){return Math.pow(s-o+(t?e:n),i)*r+(a?l:0)}}function nD(t,e,n,i,r,s,o,a,l){let c=[];t.forEach(t=>{let o=t.commonNodes.length;for(;!Number.isInteger(Math.sqrt(o));)o++;c.push({source:e[n].id,target:t.id,distance:i(r,t.commonProps.length,!0,Math.pow(35*Math.sqrt(o),s)),strength:.9,type:0})});for(let h of o)e[n]&&""!==e[n][h]&&e.find(t=>t["Identifiant Drupal"]==e[n][h].trim())&&(console.log("Adda link"),c.push({source:e[n].id,target:e[n][h].trim(),distance:200,strength:.7,type:3}));let u=[];return t.forEach(e=>{t.forEach(t=>{const n=e.commonProps.filter(e=>t.commonProps.includes(e));n.length>=a&&!u.find(t=>t.target==e.id)&&e.id!==t.id&&u.push({source:e.id,target:t.id,distance:(r-n.length)/2,strength:.7,type:2})})}),2==l?[...c,...u]:c}function iD(){return 1}function rD(t){return t}function sD(t){return t`
2<p>CSS: deploy</p>
3<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap&family=Source+Sans+Pro:wght@400;600&display=swap">
4
5<style type="text/css">
6
7.imageInfoTipFirstLine {
8  border-radius:15px;
9  background-color:white;
10  color:black;
11  border-color:grey;
12  font-size:16px;
13  padding:0.2em;
14  display:inline-block;
15  font-family: 'Source Sans Pro';
16  font-weight: 700;
17  padding-right: 10px;
18  padding-left: 10px;
19
20}
21
22.imageInfoTipSecondLine {
23  border-radius:15px;
24  border-color:grey;
25  background-color:#2E2E2E;
26  color:white;
27  font-size:15px;
28  padding:0.2em;
29  display:inline-block;
30  font-family: 'Source Sans Pro';
31  font-weight: 400;
32  padding-right: 10px;
33  padding-left: 10px;
34
35}
36
37.mainSVG {
38  background-color:black
39}
40
41.infoPanel {
42  background-color:white;
43  max-width: 100%;
44  color: black;
45  padding: 2em 60px 60px 60px;
46  /*height:100%;*/
47  
48}
49
50.infoPanelContainer {
51  height:inherit;
52  overflow-y:scroll;
53  max-height:inherit;
54  background-color:white;
55  scrollbar-width: none; /* Firefox */
56  -ms-overflow-style: none;  /* Internet Explorer 10+ */
57}
58
59.infoPanelOperationLine {
60  height: 32px;
61  display:table;
62  width:100%
63}
64
65.infoPanelOperationLineLeft {
66  height: 32px;
67  display:table-cell;
68  text-align:left;
69  vertical-align:middle;
70}
71
72.infoPanelOperationLineRight {
73  height: 32px;
74  display:table-cell;
75  text-align:right;
76  vertical-align:middle;
77}
78
79.infoPanelContainer::-webkit-scrollbar { /* WebKit */
80  width: 0;
81  height: 0;
82}
83
84.infoPanelTitle {
85  font-family: 'Poppins';
86
87}
88
89.infoPanelDescription {
90  margin-top: 2em;
91  margin-bottom: 2em;
92  font-family: 'Source Sans Pro';
93  text-align="left";
94  font-size:18px
95}
96
97.infoPanelThemesFirstTitle {
98  font-family: 'Poppins';  
99  font-weight: 700;  
100  font-size:29px
101}
102
103.infoPanelThemesTitle{
104  font-weight: 600;
105  font-size:16px;
106  margin-top: 1em;
107}
108
109.infoPanelThemesTitle {
110  font-family: 'Source Sans Pro';
111 
112}
113
114.infoPanelThemesTag, .infoPanelThemesTagSimilar {
115  font-family: 'Source Sans Pro';
116  font-weight: 400;
117
118font-size:15px;
119  border-radius: 1em;
120  border: solid black;
121  border-width: 1px;
122  border-color:grey;
123  display: inline-block;
124  padding-left:0.5em;
125  padding-right:0.5em;
126  margin:0.3em;
127}
128
129.infoPanelThemesTagSimilar, .infoPanelThemesTag:hover {
130  background-color:black;
131  color:white
132
133}
134
135.infoPanelThemesTag:hover {
136  cursor:pointer
137}
138
139.closeIcon {
140  font-family: 'Poppins';
141  text-align:right;
142  cursor:pointer
143}
144
145
146</style>
147`}function oD(t){return t}function aD(t){return t.find(t=>1==t.selected)}function lD(){return{column:null,value:null}}function cD(){return!1}function uD(t){return t.radio(new Map([["no",1],["yes",2]]),{label:"Voir les liens et d\xe9tours de clusters",value:1})}function hD(t){return t.radio(new Map([["no",1],["yes",2]]),{label:"Utiliser l'\xe9cart type pour normaliser les distances",value:1})}function dD(t){return t.range([40,100],{label:"Taille max vignettes",step:1,value:70})}function pD(t){return t.range([0,4e3],{label:"Force de r\xe9pulsion des \xe9lements entre eux",step:10,value:230})}function mD(t){return t.range([0,255],{label:"Multiplicateur de distance entre \xe9lements li\xe9s",step:1,value:8})}function gD(t){return t.range([.7,1.5],{label:"Multiplicateur exponentiel de taille de clusters",step:.01,value:1.09})}function fD(t){return t.range([.5,2],{label:"Multiplicateur exponentiel de distance de liens",step:.01,value:2})}function _D(t){return t.range([-15,15],{label:"Padding entre illustrations",step:1,value:12})}function vD(t){return t.range([1,10],{label:"Facteur de distance minimal \xe0 l'element central",step:1,value:6})}function yD(t,e,n){return t==e?e:n}function xD(t){return t.range([1,10],{label:"Multiplicateur de taille object Central",step:1,value:6})}function bD(t){return t.range([1,10],{label:"Multiplicateur de taille object Central - Reduit",step:.1,value:1.9})}function wD(t){return t}function CD(){return 900}function PD(t,e){return t.select(new Map([["Galaxie",-1],...e.filter(t=>""!==t["Identifiant Drupal"]).map((t,e)=>[t["Identifiant Drupal"],e])]),{label:"Element Centered"})}function MD(t){return t.radio(new Map([["no",1],["yes",2]]),{label:"Transverse Links",value:1})}function OD(t){const e=t`<button>Fullscreen`;return e.onclick=()=>e.parentElement.nextElementSibling.requestFullscreen(),e}function SD(t,e,n,i,r,s,o,a,l,c,u,h,d,p,m,g,f,_,v,y,x,b,w,C,P,M,O,S){function k(t){return Math.floor(Math.random()*t)}console.log("Main Viz Init");const T=t,E=document.querySelector(".vv_galaxy").offsetHeight;console.log("- Computed width",T),console.log("- Computed height",E);const I=n.create("svg").attr("fill","#000000").attr("class","mainSVG").attr("viewBox",[-T/2,-E/2,T,E]);i(I);const A=I.append("g");s(A);const z=o;z.restart();const D=a;D.restart(),I.transition().duration(-1==l?0:500);const L=A.append("g").attr("stroke","#888").attr("stroke-opacity",.8).selectAll("line").data(c).join("line").attr("stroke-width",2==u?1:0),R=A.append("g").attr("class","bibLayout").selectAll("g").data(h,t=>t.id).join(t=>t.append("g").style("opacity",0),t=>t.call(t=>t.remove())).attr("class","bibNodeGroup");function F(t,e){f(t,e,V,n.select(this))}let B,N;R.filter(t=>t.commonProps).selectAll("image").data(t=>{let e=t.commonNodes.map(e=>Object.assign({},{commonProps:t.id,infos:e,img:d(e.urlImageVignettes),id:e.id,width:e.width,widthSaved:e.width,height:e.height,heightSaved:e.height}));return p.size([t.width,2==t.commonNodes.length?t.height/2:t.height]).mode("grid").valueWidth(t=>t.width).valueHeight(t=>t.height).padding(m).margin(m).offset([-t.width/2,-(2==t.commonNodes.length?t.height/2:t.height)/2])(e)},t=>t.id).join("image").style("cursor","pointer").style("opacity",0).attr("width",t=>t.widthSaved>=t.heightSaved?t.width:t.width*(t.widthSaved/t.heightSaved)).attr("class","imageVignette").attr("height",t=>t.heightSaved>t.widthSaved?t.height:null).attr("xlink:href",t=>t.img).attr("transform",(t,e)=>`translate(${t.x+k(m)},${t.y+k(m)})`).transition().duration(500).style("opacity",g),R.filter(t=>t.commonProps).selectAll("image"),R.attr("transform",(t,e)=>`translate(${t.x},${t.y})`),z.on("tick",()=>{2==u&&L.attr("x1",t=>t.source.x).attr("y1",t=>t.source.y).attr("x2",t=>t.target.x).attr("y2",t=>t.target.y),R.attr("transform",(t,e)=>`translate(${t.x},${t.y})`)}),D.on("tick",()=>{R.attr("transform",(t,e)=>`translate(${t.x},${t.y})`)});let U=new Promise(t=>{B=t}),H=new Promise(t=>{N=t});z.on("end",()=>{B()}),D.on("end",()=>{N()}),Promise.all([U,H]).then(()=>{_([],void 0),v(A,R)});let j=A.append("g").attr("class","bibLayoutS").selectAll("g");const V=A.select("g.bibLayoutS").append("g").attr("class","imageToolTipGroup");V.append("text").attr("class","toolTipText").style("font","14px Ar
147ial").attr("fill","#000000").attr("paint-order","stroke").attr("stroke-width",1).attr("stroke","#FFFFFF"),y(I,E);const $=n.zoom().extent([[0,0],[t,E]]).scaleExtent([.2,8]).on("zoom",function(t){I.select("g").attr("transform",t.transform),t.transform&&(I.select("circle.halo").attr("cx",t.transform.x),I.select("circle.halo").attr("cy",t.transform.y)),x.transform=t.transform});return x.transform&&I.call($.transform,x.transform),I.call($),-1!==l?I.transition().duration(300).call($.transform,n.zoomIdentity.translate(b?-t/6:0,0).scale(x.transform.k)):I.transition().duration(750).call($.transform,n.zoomIdentity.translate(0,0).scale(.5)),I.call(w,T,E),Object.assign(I.node(),{a:1,update(t){j.data(t,t=>t).join(t=>t.append("g").attr("class","bibGroupS").attr("transform",(t,e)=>"central"==t.type?`translate(${-t.width/2},${-t.height/2})`:`translate(${t.x},${t.y})`).append("image").datum(t=>t).attr("class","imageVignette").attr("width",t=>C(t)).attr("height",t=>P(t)).attr("xlink:href",(t,e)=>d(t.selected?t.infos?t.infos.urlImage:t.urlImage:t.infos?t.infos.urlImageVignettes:t.urlImageVignettes)).on("click",(t,e)=>{t.stopPropagation(),M(e.infos?e.infos["Identifiant Drupal"]:e["Identifiant Drupal"],R.selectAll("image"))}).on("mousemove",(t,e)=>O(t,e,A,V)).on("mouseenter",S).on("mouseleave",F).attr("cursor","pointer").lower(),t=>t.call(t=>{t.transition().duration(2e3).attr("transform",(t,e)=>"central"==t.type?`translate(${t.x-t.width/2},${t.y-t.height/2})`:`translate(${t.x},${t.y})`).attr("width",t=>C(t)).attr("height",t=>P(t)).on("mousemove",(t,e)=>O(t,e,A,V)).on("mouseenter",S).on("mouseleave",F)}),t=>t.call(t=>{t.remove()})).attr("class","bibNodeGroup2"),V.raise()}})}function kD(t,e){window.addEventListener("openGalaxy",n=>{console.log("I'm listening on a custom event",n),t(n.detail.id,e.selectAll("image"))})}function TD(t,e){window.addEventListener("galaxyCsvPath",n=>{console.log("Attempt to load CSV from outside",n),t.value=e.shuffle(e.csv(n.detail.csv))})}function ED(t,e,n,i,r,s,o,a){return t.forceSimulation(e.filter(t=>"oort"===t.type)).alphaMin(.1).force("charge",t.forceManyBody().strength(t=>-200)).force("collision",n()).force("r",t.forceRadial(t=>"oort"==t.type?i*(r+Math.sqrt(s))+Math.sqrt(s)*o*3+a(r,1,!1)+Math.floor(500*Math.random()):0,0,0).strength(.5))}function ID(t,e,n,i,r){return t.forceSimulation(e.filter(t=>"oort"!==t.type)).alphaMin(.15).alphaDecay(.1).velocityDecay(.6).force("link",t.forceLink(n).id(t=>t.id).iterations(1).strength(t=>t.strength).distance(t=>t.distance)).force("center",t.forceCenter(0,0)).force("charge",t.forceManyBody().strength(t=>"cluster"==t.type?t.commonNodes.length*-i:-350)).force("collision",r())}function AD(){return t=>t.widthSaved>=t.heightSaved||!t.widthSaved?t.width:t.width*(t.widthSaved/t.heightSaved)}function zD(){return t=>t.heightSaved>=t.widthSaved||!t.heightSaved?t.height:null}function DD(t,e,n,i,r){return(s,o)=>{t.sizeTransitionRunning=!0,o.each((n,i)=>{"central"!=n.type&&"oort"!==n.type&&"galactic"!==n.type&&"linkedItem"!==n.type||t.nodesStored.set(n.id,{...n,touched:!0}),"oort"!==n.type&&"cluster"===n.type&&(e.select(this),o.filter(t=>t.id===n.id).selectAll(".imageVignette").each((i,r)=>{e.select(this).node(),t.nodesStored.set(i.id,{...i,type:"clusteredItem",x:n.x+i.x,y:n.y+i.y,touched:!0})}))}),t.nodesStored.forEach(e=>{e.touched?e.touched=!1:t.nodesStored.delete(e.id)}),t.sizeTransitionRunning=!0,s.select("g.bibLayoutS").selectAll("g.bibGroupS").transition().duration(e=>{const n=t.nodesStored.get(e.id);return"oort"===e.type&&"oort"===n.type?0:1e3}).attr("transform",(e,n)=>{const i=t.nodesStored.get(e.id),r=i?"central"==i.type?{x:i.x-i.width/2,y:i.x-i.height/2}:{x:i.x,y:i.y}:{x:e.x,y:e.y};return`translate(${r.x},${r.y})`}),s.select("g.bibLayoutS").selectAll("g.bibGroupS").select("image.bibNodeGroup2").transition().duration(1500).attr("width",e=>{const i=t.nodesStored.get(e.id);return n(i)}).attr("height",e=>{const n=t.nodesStored.get(e.id);return i(n)}).on("end",()=>{t.sizeTransitionRunning=!1}),s.select("g.bibLayoutS").selectAll("g.bibGroupS").select("image.bibNodeGroup2").attr("xlink:href",(e,n)=>{const i=t.nodesStored.get(e.id);return r("central"==i.type?i.infos?i.infos.urlImage:i.urlImage:i.infos?i.infos.urlImageVignettes:i.urlImageVignettes)})}}function LD(){return!1}function RD(t){return Array.from(t.nodesStored.values()).filter(t=>"central"==t.type)}function FD(){return new Object({nodesStored:new Map,sizeTransitionRunning:!1})}function BD(t,e,n){console.log(Array.from(t.nodesStored.values()).length),0==Array.from(t.nodesStored.values()).length&&(e.forEach(e
147=>{t.nodesStored.set(e.id,e)}),n.update(t.nodesStored.values()))}function ND(t,e){return t.update(e.nodesStored.values())}function UD(t,e,n){return function(i){2==t&&(i.selectAll("circle.minimalRepresentation").data(new Array(e)).join("circle").attr("cx",0).attr("class","minimalRepresentation").attr("cy",0).attr("r",(t,i)=>n(e,i,!1)).attr("opacity",0).attr("stroke","black").attr("fill","none"),i.selectAll("text").data(new Array(e)).join("text").attr("x",0).attr("class","minimalRepresentation").attr("y",(t,i)=>n(e,i,!1)).attr("opacity",0).attr("stroke","black").attr("fill","none").text((t,e)=>e))}}function HD(t,e){return function(n){const i=n.append("defs").append("radialGradient").attr("id","radialWhiteHalo");n.selectAll("circle.halo").data([t]).join("circle").attr("cx",0).attr("class","halo").attr("cy",0).attr("r",t=>2*e).attr("fill","url(#radialWhiteHalo)"),i.append("stop").attr("offset","0%").attr("stop-color","#585758"),i.append("stop").attr("offset","30%").attr("stop-color","black")}}function jD(t,e,n,i,r,s,o,a){return function(l,c,u,h){if(0==t.sizeTransitionRunning){l.stopPropagation();const d=t.nodesStored.get(c.id)||c,[p,m]=e.pointer(l,u.select("g.bibLayout").node());let g=[];if("galactic"===d.type&&(g=[d.title]),"linkedItem"===d.type)g=[d.title,n[i].linkedItemExplanation];else{if(g=[d.title?d.title:d.infos?d.infos.title:""],"oort"!==d.type&&"galactic"!==d.type)for(let[t,e]of r.entries()){const r=d.infos?d.infos:d;for(let s of e)""!==r[t]&&r[t]==n[i][s]&&g.push(`${r[t]}`)}s(g)}"central"!==d.type&&h.style("display",null).attr("transform",`translate(${p+40}, ${m})`),h.selectAll("foreignObject").data(g).join(t=>t.append("foreignObject").attr("width","linkedItem"==d.type?o/3:o/2).attr("height",a).attr("x",(t,e)=>e?5:0).attr("y",(t,e)=>e?37*e+2+"px":0).append("xhtml:div").attr("class",(t,e)=>e>0?"imageInfoTipSecondLine":"imageInfoTipFirstLine").html(t=>t),t=>t.call(t=>{t.select("foreignObject").attr("width","linkedItem"==d.type?o/6:o/2),t.select("div").attr("class",(t,e)=>e>0?"imageInfoTipSecondLine":"imageInfoTipFirstLine").html(t=>t)}))}}}function VD(t,e,n){return function(i,r){const s=t.nodesStored.get(r.id)||r;if(0==t.sizeTransitionRunning)if(console.log(s),"clusteredItem"==s.type){e([],s.commonProps);const t=n.select(this).attr("width"),i=s.width*(s.heightSaved/s.widthSaved),r=.1*-t,o=.1*-i;n.select(this).attr("width",1.2*t).attr("height",1.2*i).attr("x",r).attr("y",o)}else if("central"!==s.type){"linkedItem"==s.type&&e([],[],r.id);const t=n.select(this).attr("width");s.originalWidth=t;const i=parseFloat(s.height)*(parseFloat(s.width)/parseFloat(t)),o=n.select(this).attr("y");r.originalY=o;const a=n.select(this).attr("x");s.originalX=a,s.originalHeight=i,n.select(this).attr("width",1.2*t).attr("height",1.2*i).attr("x",n.select(this).attr("x")-.1*t).attr("y",n.select(this).attr("y")-.1*i)}}}function $D(t,e,n){return function(i,r,s,o){if(s.style("display","none"),1==t.sizeTransitionRunning)return;i.stopPropagation();const a=t.nodesStored.get(r.id);e([]),n([],void 0),"central"!=a.type&&0==t.sizeTransitionRunning&&o.attr("width",a.width).attr("x",0).attr("y",0)}}function qD(t,e,n,i,r){return function(s,o,a=!0){if(a){const t=new CustomEvent("openGuided",{detail:{id:s}});window.dispatchEvent(t)}t([],void 0),e.sizeTransitionRunning=!0,o.transition().duration(0).style("opacity",100).end().then(()=>{n.value=i.findIndex(t=>t["Identifiant Drupal"]==s),r.value=!0}).catch(t=>{n.value=i.findIndex(t=>t["Identifiant Drupal"]==s),r.value=!0})}}function GD(t,e,n){return async function(i,r,s){i.append("image").attr("width",70).attr("height",70).attr("x",-r/2+10).attr("y",-s/2+10).attr("style","cursor:pointer").attr("href","https://bo.bibracte.fr/themes/custom/adminimal_theme/images/bt_refresh.svg").on("click",()=>{t.shuffle(e),n.value=-1})}}function ZD(t,e,n){return i=>{let r=new Array;return t.forEach((t,s)=>{i[s]&&""!==i[s]&&e[n][s]&&""!==e[n][s]&&r.push(i[s])}),r.sort().join(",")}}function WD(t){return function(e,n){t.value={column:e,value:n}}}function XD(t){return function(e){return null==t.column||e.infos[t.column]==t.value?1:.2}}function QD(){return function(t){var e=["translate","matrix","rotate","skewX","skewY","scale"],n=t.match(/(translate|matrix|rotate|skewX|skewY|scale)\(.*?\)/g),i={};if(n)for(var r=0,s=n.length;r<s;r++){var o=n[r],a=o.indexOf("("),l=o.substring(a+1,o.length-1).split(/\,|\,\s/),c=o.substring(0,a);switch(i[c]={},c){case"translate":case"scale":i[c].x=+l[0]||0,i[c].y=+l[1]||0;break;case"rotate":i[c].a=+l[0]||0,i[c].x=+l[1]||0,i[c].y=+l[2]||0;break;case"skewX":case"skewY":i[c].a=+l[0];break;case"matrix":i[c].a=+l[0]||0,i[c].b=+l[1]||0,i[c].c=+l[2]||0,i[c].d=+l[3]||0,i[c].e=+l[4]||0,i[c].f=+l[5]||0}}return i.toString=function(){for(var t=[],n=0,i=e.length;n<i;n++){var r=e[n],s=this[r];if(s)switch(r){case"translate":case"scale":t.push(r+"("+s.x+","+s.y+")");break;case"rotate":t.push(r+"("+s.a+" "+s.x+" "+s.y+")");break;case"skewX":case"skewY":t.push(r+"("+s.a+")");break;case"matrix":t.push(r+"("+s.a+","+s.b+","+s.c+","+s.d+","+s.e+","+s.f+")")}}return t.join(" ")},i}}function KD(){return function(t){return t?`${t.substring(0,t.length-4)}raw=1`:""}}function YD(){}function JD(t,e){return function(n,i,r,s,o=[]){let a=!1;if(t.get(r).forEach(t=>{s[0]&&""!==s[0][t]&&(a=!0)}),a){n.append("div").attr("class","infoPanelThemesTitle").html(i);let a=n.append("div").attr("class","infoPanelThemesTagBlock");t.get(r).forEach(t=>{s[0]&&""!==s[0][t]&&a.append("div").attr("class",-1!==o.indexOf(s[0][t])?"infoPanelThemesTagSimilar":"infoPanelThemesTag").on("mouseenter",()=>e([s[0][t]])).on("mouseout",()=>e([])).html(s[0][t])})}}}function tL(t,e,n){return function(i,r,s){t.selectAll("g.bibGroupS").selectAll("image.bibNodeGroup2").transition().duration(250).style("opacity",t=>{const o=e.nodesStored.get(t.id)||t;if("central"==o.type)return 1;if(s)return o.id==s||"central"==o.type?1:.2;if(r)return o.commonProps===r?1:.2;if(0==i.length)return 1;let a=!1;
147return n.forEach((t,e)=>{-1!==i.indexOf((o.infos||o)[e])&&(a=!0)}),a?1:.2})}}function eL(t,e,n,i,r,s){return function(o,a){const l=t?e.filter(t=>1==t.selected):[];o.selectAll("foreignObject").data(l).join(t=>{const e=t.append("foreignObject").attr("width",n/3).attr("height","100%").attr("x",(t,e)=>n).attr("y",(t,e)=>-a/2).style("max-height","100%");e.transition().duration(1e3).attr("x",(t,e)=>n/6),e.append("xhtml:div").attr("class","infoPanelContainer").style("height",a+"px").append("xhtml:div").attr("class","infoPanel"),e.select("div.infoPanel").append("xhtml:div").attr("class","infoPanelOperationLine"),e.select("div.infoPanelOperationLine").append("xhtml:div").attr("class","infoPanelOperationLineLeft").append("img").attr("class","closeIcon").attr("width",50).attr("height",50).attr("style","cursor:pointer").attr("src","https://bo.bibracte.fr/themes/custom/adminimal_theme/images/bt_notice.svg").on("click",(t,e)=>{window.open(`${e["Url ressource"]}`,e.title)}),e.select("div.infoPanelOperationLine").append("xhtml:div").attr("class","infoPanelOperationLineRight").append("img").attr("class","closeIcon").attr("width",16).attr("height",16).attr("style","cursor:pointer").attr("src","https://bo.bibracte.fr/themes/custom/adminimal_theme/images/bt_close.svg").on("click",(t,r)=>{e.transition().duration(150).attr("x",n).end().then(()=>i.value=!1)});const s=e.select("div.infoPanel").append("xhtml:div").attr("class","infoPanelContent");return s.append("xhtml:div").attr("class","infoPanelThemesFirstTitle").html(t=>t.title),s.append("xhtml:div").attr("class","infoPanelDescription").html(t=>t["MICRO RECIT"]),r(s,[]),e},t=>{console.log("exit"),t.transition().duration(750).attr("width",n/3)});const c=s.zoom().on("zoom",(t,e)=>{t.sourceEvent.deltaY&&(s.select("div.infoPanelContainer").node().scrollTop+=t.sourceEvent.deltaY)});o.selectAll("foreignObject").call(c)}}function nL(t){return function(e,n=[]){e.selectAll("div.infoPanelThemesTagBlock").remove(),e.selectAll("div.infoPanelThemesTag").remove(),e.selectAll("div.infoPanelThemesTagSimilar").remove(),e.selectAll("div.infoPanelThemesTitle").remove(),e.call(e=>{t(e,"Th\xe8mes associ\xe9s","theme1",e.data(),n)}),e.call(e=>{t(e,"Fonctions associ\xe9es","fonction",e.data(),n)}),e.call(e=>{t(e,"Mat\xe9riaux associ\xe9s","material1",e.data(),n)}),e.call(e=>{t(e,"Lieu associ\xe9","discoverPlace",e.data(),n)}),e.call(e=>{t(e,"Lieu de production","productionPlace",e.data(),n)})}}function iL(t,e){return function(n){const i=t.select("div.infoPanelContent");e(i,n)}}function rL(){return 1}function sL(){return new Object({})}function oL(t){return e=>t.drag().on("start",function(t,n){t.sourceEvent.stopPropagation(),e.alpha(.1).restart()}).on("drag",function(t,e){e.fx=t.x,e.fy=t.y}).on("end",function(t,e){delete e.fx,delete e.fy})}function aL(t){return function(){let e;function n(n){const i=t.quadtree(e,t=>t.x,t=>t.y);for(const t of e)i.visit((e,n,i,r,s)=>{let o=!1;if(e.data&&e.data!==t){let n,i,r,s=t.x-e.data.x,a=t.y-e.data.y,l=0+(e.data.width+t.width)/2,c=0+(e.data.height+t.height)/2,u=Math.abs(s),h=Math.abs(a);u<l&&h<c&&(n=Math.sqrt(s*s+a*a),i=(u-l)/n,r=(h-c)/n,Math.abs(i)>Math.abs(r)?i=0:r=0,t.x-=s*=i,t.y-=a*=r,e.data.x+=s,e.data.y+=a,o=!0)}return o})}return n.initialize=t=>e=t,n}}function lL(){return function(t){let e=t.reduce((t,e)=>t+e,0)/t.length,n=(t=t.map(t=>(t-e)**2)).reduce((t,e)=>t+e,0);return Math.sqrt(n/t.length)}}function cL(){return function(t,e){return t.forEach(function(t){t[e.__x]=t[e.__x]||0,t[e.__y]=t[e.__y]||0,t[e.__width]=t[e.__width]||e.size[0],t[e.__height]=t[e.__height]||e.size[1],t[e.__cx]=t[e.__cx]||t[e.__x]+t[e.__width]/2,t[e.__cy]=t[e.__cy]||t[e.__y]+t[e.__height]/2}),t}}function uL(){return function(t,e){e.shiftX||(e.shiftX=.5),e.shiftY||(e.shiftY=.5);var n=Math.ceil(Math.sqrt(t.length)),i=Math.ceil(t.length/n);return e.x.domain([0,n]).range([0,e.size[0]-e.size[0]/n]),e.y.domain([0,i]).range([0,e.size[1]-e.size[1]/i]),t.forEach(function(t,r){var s=r%n,o=Math.floor(r/n);t[e.__x]=e.x(s)+e.offset[0]+e.padding,t[e.__y]=e.y(o)+e.offset[1]+e.padding,t[e.__width]=e.x.range()[1]/n-2*e.padding,t[e.__height]=e.y.range()[1]/i-2*e.padding,"left"===e.orient?o%2==1&&(t[e.__x]+=t[e.__width]*e.shiftX):"up"===e.orient?s%2==1&&(t[e.__y]+=t[e.__height]*e.shiftY):"down"===e.orient?s%2==0&&(t[e.__y]+=t[e.__height]*e.shiftY):"right"===e.orient?o%2==0&&(t[e.__x]+=t[e.__width]*e.shiftX):"none"===e.orient?(t[e.__x]+=0,t[e.__y]+=0):o%2==0&&(t[e.__x]+=t[e.__width]*e.shiftX),t[e.__cx]=t[e.__x]+t[e.__width]/2,t[e.__cy]=t[e.__y]+t[e.__height]/2}),t}}function hL(t){return function(e,n){var i=t.pack().size([n.size[0],n.size[1]]).padding(n.padding);console.log("GRIDDING ATTEMPT 4",e);var r,s,o=i(t.stratify().id(function(t,e){return e}).parentId(function(t,e){return 0===e?"":0})([{}].concat(e)).sum(function(){return 1}));
147return console.log("GRIDDING ATTEMPT 5",e),n.valueWidth?"number"==typeof n.valueWidth?(r=function(){return n.valueWidth},n.width.domain([0,n.size[0]]).range([0,n.size[0]-2*n.padding])):(r=n.valueWidth,console.log("GRIDDING ATTEMPT 5,5",t.extent(e,n.valueX)),n.width.domain(t.extent(e,n.valueX)).range([0,n.size[0]])):(r=function(t,e){return o.children[e].r},n.width.domain([0,1]).range([0,1])),console.log("GRIDDING ATTEMPT 5",e),n.valueHeight?"number"==typeof n.valueHeight?(s=function(){return n.valueHeight},n.height.domain([0,n.size[1]]).range([0,n.size[1]-2*n.padding])):(s=n.valueHeight,n.height.domain(t.extent(e,n.valueY)).range([0,n.size[1]])):(s=function(t,e){return o.children[e].r},n.width.domain([0,1]).range([0,1])),console.log("GRIDDING ATTEMPT 3",e),e.forEach(function(t,e){t[n.__x]=o.children[e].x+n.offset[0],t[n.__y]=o.children[e].y+n.offset[1],t[n.__width]=n.width(r(t,e)),t[n.__height]=n.height(s(t,e)),t[n.__cx]=t[n.__x]+t[n.__width]/2,t[n.__cy]=t[n.__y]+t[n.__height]/2}),console.log("NODES in pack",e),e}}function dL(t){return function(e,n){let i=(t,e)=>"object"==typeof t.margin?"vertical"===e?i(t,"top")+i(t,"bottom"):"horizontal"===e?i(t,"left")+i(t,"right"):+t.margin[e]||0:+t.margin||0;var r=t.treemap().size([n.size[0]-i(n,"left")-i(n,"right"),n.size[1]-i(n,"top")-i(n,"bottom")]).padding(n.padding),s=t.stratify().parentId(function(t){return t.___parent_id});e.forEach(function(t,e){t.id="_"+e,t.___parent_id="_x"});var o=s(e.concat([{id:"_x",___parent_id:""}])).sum(function(t){return""===t.___parent_id?0:1});return n.valueHeight&&o.sum(function(t){return n.valueHeight(t)}),n.sort&&o.sort(n.sortAsc?function(t,e){return t.value-e.value}:function(t,e){return e.value-t.value}),r(o).leaves().forEach(function(t,r){t.data[n.__x]=t.x0+n.offset[0]+i(n,"left"),t.data[n.__y]=t.y0+n.offset[1]+i(n,"top"),t.data[n.__width]=t.x1-t.x0,t.data[n.__height]=t.y1-t.y0,t.data[n.__cx]=e[r][n.__x]+e[r][n.__width]/2,t.data[n.__cy]=e[r][n.__y]+e[r][n.__height]/2}),e}}function pL(){return function(t,e){function n(t){return Math.floor(Math.random()*t)}let i=function(t,e){return"object"==typeof t.margin?"vertical"===e?i(t,"top")+i(t,"bottom"):"horizontal"===e?i(t,"left")+i(t,"right"):+t.margin[e]||0:+t.margin||0};var r,s;return e.sort&&(t=t.sort(e.sort)),r=e.cols?e.cols:Math.ceil(Math.sqrt(t.length)),s=e.rows?e.rows:Math.ceil(t.length/r),e.cellSize&&(e.size[0]=e.cellSize[0]*r,e.size[1]=e.cellSize[1]*s),e.width.domain([0,t.length]).range([i(e,"left"),e.size[0]-e.padding-i(e,"horizontal")]),e.height.domain([0,1]).range([0,e.size[1]-e.padding-i(e,"vertical")]),e.x.domain([0,r]).range([i(e,"left"),e.size[0]-i(e,"right")]),e.y.domain([0,s]).range([i(e,"top"),e.size[1]-i(e,"bottom")]),t.forEach(function(t,o){var a=o%r,l=Math.floor(o/r);t[e.__x]=e.x(a)+e.offset[0]+(0==n(2)?-n(e.padding):n(e.padding)),t[e.__y]=e.y(l)+e.offset[1]+(0==n(2)?-n(e.padding):n(e.padding)),t[e.__width]=(e.size[0]-i(e,"horizontal"))/r-2*e.padding,t[e.__height]=(e.size[1]-i(e,"vertical"))/s-2*e.padding,t[e.__y]="up"==e.orient?e.size[1]-t[e.__y]-t[e.__height]:e.y(l)+e.offset[1]+e.padding,t[e.__cx]=t[e.__x]+t[e.__width]/2,t[e.__cy]=t[e.__y]+t[e.__height]/2,t.tx=t[e.__x]+t[e.__width]/2,t.ty=e.padding/2}),t}}function mL(t,e,n,i,r,s){return function(){var o={__prefix:"",__x:"",__y:"",__width:"",__height:"",__cx:"",__cy:"",__r:"",cellSize:null,cols:null,height:t.scaleLinear(),id:function(t,e){return e},layout:e,margin:0,mode:"identity",modes:{brick:{layout:n,properties:[{key:"orient",value:"left"},{key:"orient",value:"right",default:!0},{key:"orient",value:"up"},{key:"orient",value:"down"}]},pack:{layout:i,properties:[]},grid:{layout:r,properties:[{key:"orient",value:"up"},{key:"orient",value:"down",default:!0},{key:"orient",value:"left"},{key:"orient",value:"right"}]},treemap:{layout:s,properties:[]}},offset:[0,0],orient:"down",parentId:function(t,e){return 0===e?null:0},padding:0,radius:null,rotate:null,rows:null,shiftX:null,shiftY:null,size:[1,1],sort:null,sortAsc:!0,value:function(t){return t},valueHeight:null,valueWidth:null,valueX:null,valueY:null,width:t.scaleLinear(),x:t.scaleLinear(),y:t.scaleLinear()};function a(t){return o.__x=o.__prefix+"x",o.__y=o.__prefix+"y",o.__width=o.__prefix+"width",o.__height=o.__prefix+"height",o.__cx=o.__prefix+"cx",o.__cy=o.__prefix+"cy",o.__r=o.__prefix+"r",(t=t?Array.from(t,function(t,e){var n=o.value(t,e);return"object"!=typeof n&&(n={__value:n,__index:e}),n}
147):[]).forEach(function(t){t[o.__r]=0}),o.layout(t,o)}return a.mode=function(t){return arguments.length?(o.mode=t,"identity"===o.mode?o.layout=e:Object.keys(o.modes).indexOf(t)>=0&&(o.layout=o.modes[o.mode].layout),a):o.mode},a.modes=function(t){return 1===arguments.length?o.modes[t].properties:Object.keys(o.modes)},a.size=function(t){return arguments.length?(o.size=t,a):o.size},a.cellSize=function(t){return arguments.length?(o.cellSize=t,a):o.cellSize},a.value=function(t){return arguments.length?(o.value=t,a):o.value},a.valueX=function(t){return arguments.length?(o.valueX="string"==typeof t?function(e){return e[t]}:t,a):o.valueX},a.valueY=function(t){return arguments.length?(o.valueY="string"==typeof t?function(e){return e[t]}:t,a):o.valueY},a.valueHeight=function(t){return arguments.length?(o.valueHeight="string"==typeof t?function(e){return e[t]}:t,a):o.valueHeight},a.valueWidth=function(t){return arguments.length?(o.valueWidth="string"==typeof t?function(e){return e[t]}:t,a):o.valueWidth},a.sort=function(t){return arguments.length?(o.sort="string"==typeof t?function(e){return e[t]}:t,a):o.sort},a.sortAsc=function(t){return arguments.length?(o.sortAsc=t,a):o.sortAsc},a.padding=function(t){return arguments.length?(o.padding=t,a):o.padding},a.margin=function(t){return arguments.length?(o.margin=t,a):o.margin},a.offset=function(t){return arguments.length?(o.offset=t,a):o.offset},a.orient=function(t){return arguments.length?(o.orient=t,a):o.orient},a.cols=function(t){return arguments.length?(o.cols=t,a):o.cols},a.rows=function(t){return arguments.length?(o.rows=t,a):o.rows},a.radius=function(t){return arguments.length?(o.radius=t,a):o.radius},a.rotate=function(t){return arguments.length?(o.rotate=t,a):o.rotate},a.prefix=function(t){return arguments.length?(o.__prefix=t,a):o.__prefix},a.id=function(t){return arguments.length?(o.id=t,a):o.id},a.params=function(t){if(!arguments.length)return o;for(var e in t)t.hasOwnProperty(e)&&("mode"===e?a.mode(t[e]):o[e]=t[e]);return a},a.parentId=function(t){return arguments.length?(o.parentId=t,a):o.parentId},a.shiftX=function(t){return arguments.length?(o.shiftX=t,a):o.shiftX},a.shiftY=function(t){return arguments.length?(o.shiftY=t,a):o.shiftY},a}()}function gL(t,e){const n=t.module();return n.builtin("FileAttachment",t.fileAttachments(t=>fileAttachments.get(t))),n.variable(e()).define(["md"],Hz),n.variable(e("viewof dataNodesFile")).define("viewof dataNodesFile",["Inputs"],jz),n.variable(e("dataNodesFile")).define("dataNodesFile",["Generators","viewof dataNodesFile"],(t,e)=>t.input(e)),n.define("initial dataNodes",["FileAttachment"],Vz),n.variable(e("mutable dataNodes")).define("mutable dataNodes",["Mutable","initial dataNodes"],(t,e)=>new t(e)),n.variable(e("dataNodes")).define("dataNodes",["mutable dataNodes"],t=>t.generator),n.variable(e("embeddedNodesFiles")).define("embeddedNodesFiles",["FileAttachment"],$z),n.variable(e("nodesPrepared")).define("nodesPrepared",["showPanel","nodeCentralBaseSize","nodeCentralReducedSize","dataNodes","nodeCentral"],qz),n.variable(e("linkedItemsCriterias")).define("linkedItemsCriterias",Gz),n.variable(e("criterias")).define("criterias",Zz),n.variable(e("clusters")).define("cluster
147s",["nodesPrepared","nodeCentral","criterias","dataNodes","useStanderedDerivation","mutable computedStanderedDevidation","ecartType","set","viewof linkDistancePow"],Wz),n.variable(e("maxCommonProps")).define("maxCommonProps",["clusters"],Xz),n.variable(e("minCommonProps")).define("minCommonProps",["clusters"],Qz),n.variable(e("maxSizeOuterCluster")).define("maxSizeOuterCluster",["d3","clusters","minCommonProps"],Kz),n.variable(e("commonPropsThreshold")).define("commonPropsThreshold",Yz),n.variable(e("nodesShown")).define("nodesShown",["nodeCentral","nodesPrepared","clusters","mode","paddingInsideClusters","clusterSizePow","linkedItemsCriterias"],Jz),n.variable(e("set")).define("set",["Event"],tD),n.variable(e("distanceFn")).define("distanceFn",["showPanel","nodeCentralBaseSize","nodeCentralReducedSize","linkDistancePow","distanceFactor"],eD),n.variable(e("generatedLinks")).define("generatedLinks",["clusters","nodesPrepared","nodeCentral","distanceFn","maxCommonProps","clusterSizePow","linkedItemsCriterias","commonPropsThreshold","transverseZoneLinks"],nD),n.variable(e("mode")).define("mode",iD),n.variable(e()).define(["nodeClicked"],rD),n.variable(e()).define(["html"],sD),n.define("initial nodeCentral",["nodeClicked"],oD),n.variable(e("mutable nodeCentral")).define("mutable nodeCentral",["Mutable","initial nodeCentral"],(t,e)=>new t(e)),n.variable(e("nodeCentral")).define("nodeCentral",["mutable nodeCentral"],t=>t.generator),n.define("initial nodeSelected",["nodesShown"],aD),n.variable(e("mutable nodeSelected")).define("mutable nodeSelected",["Mutable","initial nodeSelected"],(t,e)=>new t(e)),n.variable(e("nodeSelected")).define("nodeSelected",["mutable nodeSelected"],t=>t.generator),n.define("initial hooveredProperty",lD),n.variable(e("mutable hooveredProperty")).define("mutable hooveredProperty",["Mutable","initial hooveredProperty"],(t,e)=>new t(e)),n.variable(e("hooveredProperty")).define("hooveredProperty",["mutable hooveredProperty"],t=>t.generator),n.define("initial showPanel",cD),n.variable(e("mutable showPanel")).define("mutable showPanel",["Mutable","initial showPanel"],(t,e)=>new t(e)),n.variable(e("showPanel")).define("showPanel",["mutable showPanel"],t=>t.generator),n.variable(e("viewof viewStructure")).define("viewof viewStructure",["Inputs"],uD),n.variable(e("viewStructure")).define("viewStructure",["Generators","viewof viewStructure"],(t,e)=>t.input(e)),n.variable(e("viewof useStanderedDerivation")).define("viewof useStanderedDerivation",["Inputs"],hD),n.variable(e("useStanderedDerivation")).define("useStanderedDerivation",["Generators","viewof useStanderedDerivation"],(t,e)=>t.input(e)),n.variable(e("viewof widgetSize")).define("viewof widgetSize",["Inputs"],dD),n.variable(e("widgetSize")).define("widgetSize",["Generators","viewof widgetSize"],(t,e)=>t.input(e)),n.variable(e("viewof negativeChargeFactor")).define("viewof negativeChargeFactor",["Inputs"],pD),n.variable(e("negativeChargeFactor")).define("negativeChargeFactor",["Generators","viewof negativeChargeFactor"],(t,e)=>t.input(e)),n.variable(e("viewof distanceFactor")).define("viewof distanceFactor",["Inputs"],mD),n.variable(e("distanceFactor")).define("distanceFactor",["Generators","viewof distanceFactor"],(t,e)=>t.input(e)),n.variable(e("viewof clusterSizePow")).define("viewof clusterSizePow",["Inputs"],gD),n.variable(e("clusterSizePow")).define("clusterSizePow",["Generators","viewof clusterSizePow"],(t,e)=>t.input(e)),n.variable(e("viewof linkDistancePow")).define("viewof linkDistancePow",["Inputs"],fD),n.variable(e("linkDistancePow")).define("linkDistancePow",["Generators","viewof linkDistancePow"],(t,e)=>t.input(e)),n.variable(e("viewof paddingInsideClusters")).define("viewof paddingInsideClusters",["Inputs"],_D),n.variable(e("paddingInsideClusters")).define("paddingInsideClusters",["Generators","viewof paddingInsideClusters"],(t,e)=>t.input(e)),n.variable(e("viewof minimalDistanceFactor")).define("viewof minimalDistanceFactor",["Inputs"],vD),n.variable(e("minimalDistanceFactor")).define("minimalDistanceFactor",["Generators","viewof minimalDistanceFactor"],(t,e)=>t.input(e)),n.variable(e("finalMinimalDistanceFactor")).define("finalMinimalDistanceFactor",["finalNodeCentralBaseSize","nodeCentralReducedSize","minimalDistanceFactor"],yD),n.variable(e("viewof nodeCentralBaseSize")).define("viewof nodeCentralBaseSize",["Inputs"],xD),n.variable(e("nodeCentralBaseSize")).define("nodeCentralBaseSize",["Generators","viewof nodeCentralBaseSize"],(t,e)=>t.input(e)),n.variable(e("viewof nodeCentralReducedSize")).define("viewof nodeCentralReducedSize",["Inputs"],bD),n.variable(e("nodeCentralReducedSize")).define("nodeCentralReducedSize",["Generators","viewof nodeCentralReducedSize"],(t,e)=>t.input(e)),n.define("initial finalNodeCentralBaseSize",["nodeCentralBaseSize"],wD),n.variable(e("mutable finalNodeCentralBaseSize")).define("mutable finalNodeCentralBaseSize",["Mutable","initial finalNodeCentralBaseSize"],(t,e)=>new t(e)),n.variable(e("finalNodeCentralBaseSize")).define("finalNodeCentralBaseSize",["mutable finalNodeCentralBaseSize"],t=>t.generator),n.variable(e("height")).define("height",CD),n.variable(e("viewof nodeClicked")).define("viewof nodeClicked",["Inputs","dataNodes"],PD),n.variable(e("nodeClicked")).define("nodeClicked",["Generators","viewof nodeClicked"],(t,e)=>t.input(e)),n.variable(e("viewof transverseZoneLinks")).define("viewof transverseZoneLinks",["Inputs"],MD),n.variable(e("transverseZoneLinks")).define("transverseZoneLinks",["Generators","viewof transverseZoneLinks"],(t,e)=>t.input(e)),n.variable(e("fullscreen")).define("fullscreen",["html"],OD),n.variable(e("bib")).define("bib",["width","screen","d3","addRadialHalo","nodeClicked","addMinimalRepresentation","simulationInner","simulationOuter","nodeCentral","generatedLinks","viewStructure","nodesShown","getRawImageUrl","gridding","paddingInsideClusters","computeClusterImagesOpacity","imageToolTipExitEvent","updateImagesOpacity","simulationsEndTransitions","manageInfoPanel","state","showPanel","addResetButton","computeWidth","computeHeight","itemClickOperations","imageToolTipEnterEvent","imageToolTipEnterOnceEvent"],SD),n.variable(e("outsideClickListener")).define("outsideClickListener",["itemClickOperations","d3"],kD),n.variable(e("outsideCSVLoadingListener")).define("outsideCSVLoadingListener",["mutable dataNodes","d3"],TD),n.variable(e("simulationOuter")).define("simulationOuter",["d3","nodesShown","forceCollide","widgetSize","maxCommonProps","maxSizeOuterCluster","paddingInsideClusters","distanceFn"],ED),n.variable(e("simulationInner")).define("simulationInner",["d3","nodesShown","generatedLinks","negativeChargeFactor","forceCollide"],ID),n.variable(e("computeWidth")).define("computeWidth",AD),n.variable(e("computeHeight")).define("computeHeight",zD),n.variable(e("simulationsEndTransitions")).define("simulationsEndTransitions",["no
147desState","d3","computeWidth","computeHeight","getRawImageUrl"],DD),n.define("initial sizeTransitionRunning",LD),n.variable(e("mutable sizeTransitionRunning")).define("mutable sizeTransitionRunning",["Mutable","initial sizeTransitionRunning"],(t,e)=>new t(e)),n.variable(e("sizeTransitionRunning")).define("sizeTransitionRunning",["mutable sizeTransitionRunning"],t=>t.generator),n.variable(e("currentObject")).define("currentObject",["nodesState"],RD),n.variable(e("nodesState")).define("nodesState",FD),n.variable(e("initNodeStored")).define("initNodeStored",["nodesState","nodesPrepared","bib"],BD),n.variable(e()).define(["bib","nodesState"],ND),n.variable(e("addMinimalRepresentation")).define("addMinimalRepresentation",["viewStructure","maxCommonProps","distanceFn"],UD),n.variable(e("addRadialHalo")).define("addRadialHalo",["nodeCentral","height"],HD),n.variable(e("imageToolTipEnterEvent")).define("imageToolTipEnterEvent",["nodesState","d3","nodesPrepared","nodeCentral","criterias","updateInfoPanelContent","width","height"],jD),n.variable(e("imageToolTipEnterOnceEvent")).define("imageToolTipEnterOnceEvent",["nodesState","updateImagesOpacity","d3"],VD),n.variable(e("imageToolTipExitEvent")).define("imageToolTipExitEvent",["nodesState","updateInfoPanelContent","updateImagesOpacity"],$D),n.variable(e("itemClickOperations")).define("itemClickOperations",["updateImagesOpacity","nodesState","mutable nodeCentral","nodesPrepared","mutable showPanel"],qD),n.variable(e("addResetButton")).define("addResetButton",["d3","dataNodes","mutable nodeCentral"],GD),n.variable(e("getHoveredProperties")).define("getHoveredProperties",["criterias","nodesPrepared","nodeCentral"],ZD),n.variable(e("setHooveredProperty")).define("setHooveredProperty",["mutable hooveredProperty"],WD),n.variable(e("computeClusterImagesOpacity")).define("computeClusterImagesOpacity",["hooveredProperty"],XD),n.variable(e("parseTransform")).define("parseTransform",QD),n.variable(e("getRawImageUrl")).define("getRawImageUrl",KD),n.variable(e("zm")).define("zm",YD),n.variable(e("getInfoPanelThemeTagBlock")).define("getInfoPanelThemeTagBlock",["criterias","updateImagesOpacity"],JD),n.variable(e("updateImagesOpacity")).define("updateImagesOpacity",["d3","nodesState","criterias"],tL),n.variable(e("manageInfoPanel")).define("manageInfoPanel",["showPanel","nodesShown","width","mutable showPanel","updateInfoPanelContentOperations","d3"],eL),n.variable(e("updateInfoPanelContentOperations")).define("updateInfoPanelContentOperations",["getInfoPanelThemeTagBlock"],nL),n.variable(e("updateInfoPanelContent")).define("updateInfoPanelContent",["d3","updateInfoPanelContentOperations"],iL),n.define("initial computedStanderedDevidation",rL),n.variable(e("mutable computedStanderedDevidation")).define("mutable computedStanderedDevidation",["Mutable","initial computedStanderedDevidation"],(t,e)=>new t(e)),n.variable(e("computedStanderedDevidation")).define("computedStanderedDevidation",["mutable computedStanderedDevidation"],t=>t.generator),n.variable(e("state")).define("state",sL),n.variable(e("dragNode")).define("dragNode",["d3"],oL),n.variable(e("forceCollide")).define("forceCollide",["d3"],aL),n.variable(e("ecartType")).define("ecartType",lL),n.variable(e("identity")).define("identity",cL),n.variable(e("brick")).define("brick",uL),n.variable(e("pack")).define("pack",["d3"],hL),n.variable(e("treemap")).define("treemap",["d3"],dL),n.variable(e("grid")).define("grid",pL),n.variable(e("gridding")).define("gridding",["d3","identity","brick","pack","grid","treemap"],mL),n}function fL(t,e,n){n=n||{};var i=t.ownerDocument,r=i.defaultView.CustomEvent;"function"==typeof r?r=new r(e,{detail:n}):((r=i.createEvent("Event")).initEvent(e,!1,!1),r.detail=n),t.dispatchEvent(r)}function _L(t){return Array.isArray(t)||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function vL(t){return t===(0|t)+""}function yL(t){const e=document.createElement("span");return e.className="observablehq--cellname",e.textContent=`${t} = `,e}const xL=Symbol.prototype.toString;function bL(t){return xL.call(t)}const{getOwnPropertySymbols:wL,prototype:{hasOwnProperty:CL}}=Object,{toStringTag:PL}=Symbol,ML={},OL=wL;function SL(t,e){return CL.call(t,e)}function kL(t){return t[PL]||t.constructor&&t.constructor.name||"Object"}function TL(t,e){try{return t[e]}catch(t){return ML}}
147const EL=[{symbol:"@@__IMMUTABLE_INDEXED__@@",name:"Indexed",modifier:!0},{symbol:"@@__IMMUTABLE_KEYED__@@",name:"Keyed",modifier:!0},{symbol:"@@__IMMUTABLE_LIST__@@",name:"List",arrayish:!0},{symbol:"@@__IMMUTABLE_MAP__@@",name:"Map"},{symbol:"@@__IMMUTABLE_ORDERED__@@",name:"Ordered",modifier:!0,prefix:!0},{symbol:"@@__IMMUTABLE_RECORD__@@",name:"Record"},{symbol:"@@__IMMUTABLE_SET__@@",name:"Set",arrayish:!0,setish:!0},{symbol:"@@__IMMUTABLE_STACK__@@",name:"Stack",arrayish:!0}];function IL(t){try{let e=EL.filter(({symbol:e})=>!0===t[e]);if(!e.length)return;const n=e.find(t=>!t.modifier),i="Map"===n.name&&e.find(t=>t.modifier&&t.prefix),r=e.some(t=>t.arrayish),s=e.some(t=>t.setish);return{name:`${i?i.name:""}${n.name}`,symbols:e,arrayish:r&&!s,setish:s}}catch(t){return null}}const{getPrototypeOf:AL,getOwnPropertyDescriptors:zL}=Object,DL=AL({});function LL(t,e,n,i){let r,s,o,a,l=_L(t);t instanceof Map?t instanceof t.constructor?(r=`Map(${t.size})`,s=RL):(r="Map()",s=jL):t instanceof Set?t instanceof t.constructor?(r=`Set(${t.size})`,s=FL):(r="Set()",s=jL):l?(r=`${t.constructor.name}(${t.length})`,s=NL):(a=IL(t))?(r=`Immutable.${a.name}${"Record"===a.name?"":`(${t.size})`}`,l=a.arrayish,s=a.arrayish?UL:a.setish?BL:VL):i?(r=kL(t),s=HL):(r=kL(t),s=jL);const c=document.createElement("span");c.className="observablehq--expanded",n&&c.appendChild(yL(n));const u=c.appendChild(document.createElement("a"));u.innerHTML="<svg width=8 height=8 class='observablehq--caret'>\n    <path d='M4 7L0 1h8z' fill='currentColor' />\n  </svg>",u.appendChild(document.createTextNode(`${r}${l?" [":" {"}`)),u.addEventListener("mouseup",function(e){e.stopPropagation(),bR(c,XL(t,null,n,i))}),s=s(t);for(let h=0;!(o=s.next()).done&&h<20;++h)c.appendChild(o.value);if(!o.done){const t=c.appendChild(document.createElement("a"));t.className="observablehq--field",t.style.display="block",t.appendChild(document.createTextNode("  \u2026 more")),t.addEventListener("mouseup",function(t){t.stopPropagation(),c.insertBefore(o.value,c.lastChild.previousSibling);for(let e=0;!(o=s.next()).done&&e<19;++e)c.insertBefore(o.value,c.lastChild.previousSibling);o.done&&c.removeChild(c.lastChild.previousSibling),fL(c,"load")})}return c.appendChild(document.createTextNode(l?"]":"}")),c}function*RL(t){for(const[e,n]of t)yield GL(e,n);yield*jL(t)}function*FL(t){for(const e of t)yield ZL(e);yield*jL(t)}function*BL(t){for(const e of t)yield ZL(e)}function*NL(t){for(let e=0,n=t.length;e<n;++e)e in t&&(yield qL(e,TL(t,e),"observablehq--index"));for(const e in t)!vL(e)&&SL(t,e)&&(yield qL(e,TL(t,e),"observablehq--key"));for(const e of OL(t))yield qL(bL(e),TL(t,e),"observablehq--symbol")}function*UL(t){let e=0;for(const n=t.size;e<n;++e)yield qL(e,t.get(e),!0)}function*HL(t){for(const n in zL(t))yield qL(n,TL(t,n),"observablehq--key");for(const n of OL(t))yield qL(bL(n),TL(t,n),"observablehq--symbol");const e=AL(t);e&&e!==DL&&(yield $L(e))}function*jL(t){for(const n in t)SL(t,n)&&(yield qL(n,TL(t,n),"observablehq--key"));for(const n of OL(t))yield qL(bL(n),TL(t,n),"observablehq--symbol");const e=AL(t);e&&e!==DL&&(yield $L(e))}function*VL(t){for(const[e,n]of t)yield qL(e,n,"observablehq--key")}function $L(t){const e=document.createElement("div"),n=e.appendChild(document.createElement("span"));return e.className="observablehq--field",n.className="observablehq--prototype-key",n.textContent="  <prototype>",e.appendChild(document.createTextNode(": ")),e.appendChild(xR(t,void 0,void 0,void 0,!0)),e}function qL(t,e,n){const i=document.createElement("div"),r=i.appendChild(document.createElement("span"));return i.className="observablehq--field",r.className=n,r.textContent=`  ${t}`,i.appendChild(document.createTextNode(": ")),i.appendChild(xR(e)),i}function GL(t,e){const n=document.createElement("div");return n.className="observablehq--field",n.appendChild(document.createTextNode("  ")),n.appendChild(xR(t)),n.appendChild(document.createTextNode(" => ")),n.appendChild(xR(e)),n}function ZL(t){const e=document.createElement("div");return e.className="observablehq--field",e.appendChild(document.createTextNode("  ")),e.appendChild(xR(t)),e}function WL(t){const e=window.getSelection();return"Range"===e.type&&(e.containsNode(t,!0)||e.anchorNode.isSelfOrDescendant(t)||e.focusNode.isSelfOrDescendant(t))}function XL(t,e,n,i){let r,s,o,a,l=_L(t);if(t instanceof Map?t instanceof t.constructor?(r=`Map(${t.size})`,s=QL):(r="Map()",s=eR):t instanceof Set?t instanceof t.constructor?(r=`Set(${t.size})`,s=KL):(r="Set()",s=eR):l?(r=`${t.constructor.name}(${t.length})`,s=tR):(a=IL(t))?(r=`Immutable.${a.name}${"Record"===a.name?"":`(${t.size})`}`,l=a.arrayish,s=a.arrayish?JL:a.setish?YL:nR):(r=kL(t),s=eR),e){const e=document.createElement("span");return e.className="observablehq--shallow",n&&e.appendChild(yL(n)),e.appendChild(document.createTextNode(r)),e.addEventListener("mouseup",function(n){WL(e)||(n.stopPropagation(),bR(e,XL(t)))}),e}const c=document.createElement("span");c.className="observablehq--collapsed",n&&c.appendChild(yL(n));const u=c.appendChild(document.createElement("a"));u.innerHTML="<svg width=8 height=8 class='observablehq--caret'>\n    <path d='M7 4L1 8V0z' fill='currentColor' />\n  </svg>",u.appendChild(document.createTextNode(`${r}${l?" [":" {"}`)),c.addEventListener("mouseup",function(e){WL(c)||(e.stopPropagation(),bR(c,LL(t,0,n,i)))},!0),s=s(t);for(let h=0;!(o=s.next()).done&&h<20;++h)h>0&&c.appendChild(document.createTextNode(", ")),c.appendChild(o.value);return o.done||c.appendChild(document.createTextNode(", \u2026")),c.appendChild(document.createTextNode(l?"]":"}")),c}function*QL(t){for(const[e,n]of t)yield sR(e,n);yield*eR(t)}function*KL(t){for(const e of t)yield xR(e,!0);yield*eR(t)}function*YL(t){for(const e of t)yield xR(e,!0)}function*JL(t){let e=-1,n=0;for(const i=t.size;n<i;++n)n>e+1&&(yield iR(n-e-1)),yield xR(t.get(n),!0),e=n;n>e+1&&(yield iR(n-e-1))}function*tR(t){let e=-1,n=0;for(const i=t.length;n<i;++n)n in t&&(n>e+1&&(yield iR(n-e-1)),yield xR(TL(t,n),!0),e=n);n>e+1&&(yield iR(n-e-1));for(const i in t)!vL(i)&&SL(t,i)&&(yield rR(i,TL(t,i),"observablehq--key"));for(const i of OL(t))yield rR(bL(i),TL(t,i),"observablehq--symbol")}function*eR(t){for(const e in t)SL(t,e)&&(yield rR(e,TL(t,e),"observablehq--key"));for(const e of OL(t))yield rR(bL(e),TL(t,e),"observablehq--symbol")}function*nR(t){for(const[e,n]of t)yield rR(e,n,"observablehq--key")}function iR(t){const e=document.createElement("span");return e.className="observablehq--empty",e.textContent=1===t?"empty":`empty \xd7 ${t}`,e}function rR(t,e,n){const i=document.createDocumentFragment(),r=i.appendChild(document.createElement("span"));return r.className=n,r.textContent=t,i.appendChild(document.createTextNode(": ")),i.appendChild(xR(e,!0)),i}function sR(t,e){const n=document.createDocumentFragment();return n.appendChild(xR(t,!0)),n.appendChild(document.createTextNode(" => ")),n.appendChild(xR(e,!0)),n}function oR(t,e){return`${t}`.padStart(e,"0")}var aR=Error.prototype.toString,lR=RegExp.prototype.toString;function cR(t){return t.replace(/[\\`\x00-\x09\x0b-\x19]|\${/g,uR)}function uR(t){var e=t.charCodeAt(0);switch(e){case 8:return"\\b";case 9:return"\\t";case 11:return"\\v";case 12:return"\\f";case 13:return"\\r"}return e<16?"\\x0"+e.toString(16):e<32?"\\x"+e.toString(16):"\\"+t}function hR(t,e){for(var n=0;e.exec(t);)++n;return n}var dR=Function.prototype.toString,pR={prefix:"async \u0192"},mR={prefix:"async \u0192*"},gR={prefix:"class"},fR={prefix:"\u0192"},_R={prefix:"\u0192*"};function vR(t,e,n){var i=document.createElement("span");i.className="observablehq--function",n&&i.appendChild(yL(n));var r=i.appendChild(document.createElement("span"));return r.className="observablehq--keyword",r.textContent=t.prefix,i.appendChild(document.createTextNode(e)),i}const{prototype:{toString:yR}}=Object;function xR(t,e,n,i,r){let s=typeof t;switch(s){case"boolean":case"undefined":t+="";break;case"number":t=0===t&&1/t<0?"-0":t+"";break;case"bigint":t+="n";break;case"symbol":t=bL(t);break;case"function":return function(t,e){var n,i,r=dR.call(t);switch(t.constructor&&t.constructor.name){case"AsyncFunction":n=pR;break;case"AsyncGeneratorFunction":n=mR;break;case"GeneratorFunction":n=_R;break;default:n=/^class\b/.test(r)?gR:fR}return n===gR?vR(n,"",e):(i=/^(?:async\s*)?(\w+)\s*=>/.exec(r))?vR(n,"("+i[1]+")",e):(i=/^(?:async\s*)?\(\s*(\w+(?:\s*,\s*\w+)*)?\s*\)/.exec(r))||(i=/^(?:async\s*)?function(?:\s*\*)?(?:\s*\w+)?\s*\(\s*(\w+(?:\s*,\s*\w+)*)?\s*\)/.exec(r))?vR(n,i[1]?"("+i[1].replace(/\s*,\s*/g,", ")+")":"()",e):vR(n,"(\u2026)",e)}(t,i);case"string":return function(t,e,n,i){if(!1===e){if(hR(t,/["\n]/g)<=hR(t,/`|\${/g)){const e=document.createElement("span");i&&e.appendChild(yL(i));const n=e.appendChild(document.createElement("span"));return n.className="observablehq--string",n.textContent=JSON.stringify(t),e}const r=t.split("\n");if(r.length>20&&!n){const n=document.createElement("div");i&&n.appendChild(yL(i));const s=n.appendChild(document.createElement("span"));s.className="observablehq--string",s.textContent="`"+cR(r.slice(0,20).join("\n"));const o=n.appendChild(document.createElement("span")),a=r.length-20;return o.textContent=`Show ${a} truncated line${a>1?"s":""}`,o.className="observablehq--string-expand",o.addEventListener("mouseup",function(r){r.stopPropagation(),bR(n,xR(t,e,!0,i))}),n}const s=document.createElement("span");i&&s.appendChild(yL(i));const o=s.appendChild(document.createElement("span"));return o.className="observablehq--string"+(n?" observablehq--expanded":""),o.textContent="`"+cR(t)+"`",s}const r=document.createElement("span");i&&r.appendChild(yL(i));const s=r.appendChild(document.createElement("span"));return s.className="observablehq--string",s.textContent=JSON.stringify(t.length>100?`${t.slice(0,50)}\u2026${t.slice(-49)}`:t),r}(t,e,n,i);default:if(null===t){s=null,t="null";break}if(t instanceof Date){s="date",t=function(t,e){if(t instanceof Date||(t=new Date(+t)),isNaN(t))return"Invalid Date";const n=t.getUTCHours(),i=t.getUTCMinutes(),r=t.getUTCSeconds(),s=t.getUTCMilliseconds();return`${o=t.getUTCFullYear(),o<0?`-${oR(-o,6)}`:o>9999?`+${oR(o,6)}`:oR(o,4)}-${oR(t.getUTCMonth()+1,2)}-${oR(t.getUTCDate(),2)}${n||i||r||s?`T${oR(n,2)}:${oR(i,2)}${r||s?`:${oR(r,2)}${s?`.${oR(s,3)}`:""}`:""}Z`:""}`;var o}(t);break}if(t===ML){s="forbidden",t="[forbidden]";break}switch(yR.call(t)){case"[object RegExp]":s="regexp",t=function(t){return lR.call(t)}(t);break;case"[object Error]":case"[object DOMException]":s="error",t=function(t){return t.stack||aR.call(t)}(t);break;default:return(n?LL:XL)(t,e,i,r)}}const o=document.createElement("span");i&&o.appendChild(yL(i));const a=o.appendChild(document.createElement("span"));return a.className=`observablehq--${s}`,a.textContent=t,o}function bR(t,e){t.classList.contains("observablehq--inspect")&&e.classList.add("observablehq--inspect"),t.parentNode.replaceChild(e,t),fL(e,"load")}const wR=/\s+\(\d+:\d+\)$/m;class CR{constructor(t){if(!t)throw new Error("invalid node");this._node=t,t.classList.add("observablehq")}pending(){const{_node:t}=this;t.classList.remove("observablehq--error"),t.classList.add("observablehq--running")}fulfilled(t,e){const{_node:n}=this;if((!(((i=t)instanceof Element||i instanceof Text)&&i instanceof i.constructor)||t.parentNode&&t.parentNode!==n)&&(t=xR(t,!1,n.firstChild&&n.firstChild.classList&&n.firstChild.classList.contains("observablehq--expanded"),e)).classList.add("observablehq--inspect"),n.classList.remove("observablehq--running","observablehq--error"),n.firstChild!==t)if(n.firstChild){for(;n.lastChild!==n.firstChild;)n.removeChild(n.lastChild);n.replaceChild(t,n.firstChild)}else n.appendChild(t);var i;fL(n,"update")}rejected(t,e){const{_node:n}=this;for(n.classList.remove("observablehq--running"),n.classList.add("observablehq--error");n.lastChild;)n.removeChild(n.lastChild);var i=document.createElement("div");i.className="observablehq--inspect",e&&i.appendChild(yL(e)),i.appendChild(document.createTextNode((t+"").replace(wR,""))),n.appendChild(i),fL(n,"error",{error:t})}}CR.into=function(t){if("string"==typeof t&&null==(t=document.querySelector(t)))throw new Error("container not found");return function(){return new CR(t.appendChild(document.createElement("div")))}};var PR={},MR={};function OR(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'}).join(",")+"}")}function SR(t){var e=Object.create(null),n=[];return t.forEach(function(t){for(var i in t)i in e||n.push(e[i]=i)}),n}function kR(t,e){var n=t+"",i=n.length;return i<e?new Array(e-i+1).join(0)+n:n}function TR(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function i(t,e){var i,r=[],s=t.length,o=0,a=0,l=s<=0,c=!1;function u(){if(l)return MR;if(c)return c=!1,PR;var e,i,r=o;if(34===t.charCodeAt(r)){for(;o++<s&&34!==t.charCodeAt(o)||34===t.charCodeAt(++o););return(e=o)>=s?l=!0:10===(i=t.charCodeAt(o++))?c=!0:13===i&&(c=!0,10===t.charCodeAt(o)&&++o),t.slice(r+1,e-1).replace(/""/g,'"')}for(;o<s;){if(10===(i=t.charCodeAt(e=o++)))c=!0;else if(13===i)c=!0,10===t.charCodeAt(o)&&++o;else if(i!==n)continue;return t.slice(r,e)}return l=!0,t.slice(r,s)}for(10===t.charCodeAt(s-1)&&--s,13===t.charCodeAt(s-1)&&--s;(i=u())!==MR;){for(var h=[];i!==PR&&i!==MR;)h.push(i),i=u();e&&null==(h=e(h,a++))||r.push(h)}return r}function r(e,n){return e.map(function(e){return n.map(function(t){return o(e[t])}).join(t)})}function s(e){return e.map(o).join(t)}function o(t){return null==t?"":t instanceof Date?function(t){var e,n=t.getUTCHours(),i=t.getUTCMinutes(),r=t.getUTCSeconds(),s=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((e=t.getUTCFullYear())<0?"-"+kR(-e,6):e>9999?"+"+kR(e,6):kR(e,4))+"-"+kR(t.getUTCMonth()+1,2)+"-"+kR(t.getUTCDate(),2)+(s?"T"+kR(n,2)+":"+kR(i,2)+":"+kR(r,2)+"."+kR(s,3)+"Z":r?"T"+kR(n,2)+":"+kR(i,2)+":"+kR(r,2)+"Z":i||n?"T"+kR(n,2)+":"+kR(i,2)+"Z":"")}(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,r,s=i(t,function(t,i){if(n)return n(t,i-1);r=t,n=e?function(t,e){var n=OR(t);return function(i,r){return e(n(i),r,t)}}(t,e):OR(t)});return s.columns=r||[],s},parseRows:i,format:function(e,n){return null==n&&(n=SR(e)),[n.map(o).join(t)].concat(r(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=SR(t)),r(t,e).join("\n")},formatRows:function(t){return t.map(s).join("\n")},formatRow:s,formatValue:o}}var ER=TR(","),IR=ER.parse,AR=ER.parseRows,zR=TR("\t"),DR=zR.parse,LR=zR.parseRows;function RR(t){for(var e in t){var n,i,r=t[e].trim();if(r)if("true"===r)r=!0;else if("false"===r)r=!1;else if("NaN"===r)r=NaN;else if(isNaN(n=+r)){if(!(i=r.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;FR&&i[4]&&!i[7]&&(r=r.replace(/-/g,"/").replace(/T/," ")),r=new Date(r)}else r=n;else r=null;t[e]=r}return t}const FR=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),BR=new Map,NR=[],UR=NR.map,HR=NR.some,jR=NR.hasOwnProperty,VR="https://cdn.jsdelivr.net/npm/",$R=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,qR=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,GR=/\.[^/]*$/,ZR=["unpkg","jsdelivr","browser","main"];
147class WR extends Error{constructor(t){super(t)}}function XR(t){const e=$R.exec(t);return e&&{name:e[1],version:e[2],path:e[3]}}function QR(t){const e=`${VR}${t.name}${t.version?`@${t.version}`:""}/package.json`;let n=BR.get(e);return n||BR.set(e,n=fetch(e).then(t=>{if(!t.ok)throw new WR("unable to load package.json");return t.redirected&&!BR.has(t.url)&&BR.set(t.url,n),t.json()})),n}WR.prototype.name=WR.name;var KR=YR(async function(t,e){if(t.startsWith(VR)&&(t=t.substring(VR.length)),/^(\w+:)|\/\//i.test(t))return t;if(/^[.]{0,2}\//i.test(t))return new URL(t,null==e?location:e).href;if(!t.length||/^[\s._]/.test(t)||/\s$/.test(t))throw new WR("illegal name");const n=XR(t);if(!n)return`${VR}${t}`;if(!n.version&&null!=e&&e.startsWith(VR)){const t=await QR(XR(e.substring(VR.length)));n.version=t.dependencies&&t.dependencies[n.name]||t.peerDependencies&&t.peerDependencies[n.name]}if(n.path&&!GR.test(n.path)&&(n.path+=".js"),n.path&&n.version&&qR.test(n.version))return`${VR}${n.name}@${n.version}/${n.path}`;const i=await QR(n);return`${VR}${i.name}@${i.version}/${n.path||function(t){for(const e of ZR){const n=t[e];if("string"==typeof n)return GR.test(n)?n:`${n}.js`}}(i)||"index.js"}`});function YR(t){const e=new Map,n=r(null);function i(t){if("string"!=typeof t)return t;let n=e.get(t);return n||e.set(t,n=new Promise((e,n)=>{const i=document.createElement("script");i.onload=()=>{try{e(NR.pop()(r(t)))}catch(t){n(new WR("invalid module"))}i.remove()},i.onerror=()=>{n(new WR("unable to load module")),i.remove()},i.async=!0,i.src=t,window.define=nF,document.head.appendChild(i)})),n}function r(e){return n=>Promise.resolve(t(n,e)).then(i)}function s(t){return arguments.length>1?Promise.all(UR.call(arguments,n)).then(JR):n(t)}return s.alias=function(e){return YR((n,i)=>n in e&&(i=null,"string"!=typeof(n=e[n]))?n:t(n,i))},s.resolve=t,s}function JR(t){const e={};for(const n of t)for(const t in n)jR.call(n,t)&&(null==n[t]?Object.defineProperty(e,t,{get:tF(n,t)}):e[t]=n[t]);return e}function tF(t,e){return()=>t[e]}function eF(t){return"exports"==(t+="")||"module"===t}function nF(t,e,n){const i=arguments.length;i<2?(n=t,e=[]):i<3&&(n=e,e="string"==typeof t?[]:t),NR.push(HR.call(e,eF)?t=>{const i={},r={exports:i};return Promise.all(UR.call(e,e=>"exports"==(e+="")?i:"module"===e?r:t(e))).then(t=>(n.apply(null,t),r.exports))}:t=>Promise.all(UR.call(e,t)).then(t=>"function"==typeof n?n.apply(null,t):n))}function iF(t,e,n){return{resolve:(i=n)=>`https://cdn.jsdelivr.net/npm/${t}@${e}/${i}`}}nF.amd={};const rF=iF("d3","7.3.0","dist/d3.min.js"),sF=iF("@observablehq/inputs","0.10.4","dist/inputs.min.js"),oF=iF("@observablehq/plot","0.4.2","dist/plot.umd.min.js"),aF=iF("@observablehq/graphviz","0.2.1","dist/graphviz.min.js"),lF=iF("@observablehq/highlight.js","2.0.0","highlight.min.js"),cF=iF("@observablehq/katex","0.11.1","dist/katex.min.js"),uF=iF("lodash","4.17.21","lodash.min.js"),hF=iF("htl","0.3.1","dist/htl.min.js"),dF=iF("jszip","3.7.1","dist/jszip.min.js"),pF=iF("marked","0.3.12","marked.min.js"),mF=iF("sql.js","1.6.2","dist/sql-wasm.js"),gF=iF("vega","5.21.0","build/vega.min.js"),fF=iF("vega-lite","5.2.0","build/vega-lite.min.js"),_F=iF("vega-lite-api","5.0.0","build/vega-lite-api.min.js"),vF=iF("apache-arrow","4.0.1","Arrow.es2015.min.js"),yF=iF("arquero","4.8.8","dist/arquero.min.js"),xF=iF("topojson-client","3.1.0","dist/topojson-client.min.js"),bF=iF("exceljs","4.3.0","dist/exceljs.min.js");async function wF(t){return(await t(mF.resolve()))({locateFile:t=>mF.resolve(`dist/${t}`)})}class CF{constructor(t){Object.defineProperties(this,{_db:{value:t}})}static async open(t){const[e,n]=await Promise.all([wF(KR),Promise.resolve(t).then(PF)]);return new CF(new e.Database(n))}async query(t,e){return await async function(t,e,n){const[i]=await t.exec(e,n);if(!i)return[];const{columns:r,values:s}=i,o=s.map(t=>Object.fromEntries(t.map((t,e)=>[r[e],t])));return o.columns=r,o}(this._db,t,e)}async queryRow(t,e){return(await this.query(t,e))[0]||null}async explain(t,e){return MF("pre",{className:"observablehq--inspect"},[OF((await this.query(`EXPLAIN QUERY PLAN ${t}`,e)).map(t=>t.detail).join("\n"))])}async describe(t){const e=await(void 0===t?this.query("SELECT name FROM sqlite_master WHERE type = 'table'"):this.query("SELECT * FROM pragma_table_info(?)",[t]));if(!e.length)throw new Error("Not found");const{columns:n}=e;return MF("table",{value:e},[MF("thead",[MF("tr",n.map(t=>MF("th",[OF(t)])))]),MF("tbody",e.map(t=>MF("tr",n.map(e=>MF("td",[OF(t[e])])))))])}async sql(t,...e){return this.query(t.join("?"),e)}}function PF(t){return"string"==typeof t?fetch(t).then(PF):t instanceof Response||t instanceof Blob?t.arrayBuffer().then(PF):t instanceof ArrayBuffer?new Uint8Array(t):t}function MF(t,e,n){2===arguments.length&&(n=e,e=void 0);const i=document.createElement(t);if(void 0!==e)for(const r in e)i[r]=e[r];if(void 0!==n)for(const r of n)i.appendChild(r);return i}function OF(t){return document.createTextNode(t)}Object.defineProperty(CF.prototype,"dialect",{value:"sqlite"});class SF{constructor(t){Object.defineProperties(this,{_:{value:t},sheetNames:{value:t.worksheets.map(t=>t.name),enumerable:!0}})}sheet(t,e){const n="number"==typeof t?this.sheetNames[t]:this.sheetNames.includes(t+="")?t:null;if(null==n)throw new Error(`Sheet not found: ${t}`);return function(t,{range:e,headers:n}={}){let[[i,r],[s,o]]=function(t=":",{columnCount:e,rowCount:n}){if(!(t+="").match(/^[A-Z]*\d*:[A-Z]*\d*$/))throw new Error("Malformed range specifier");const[[i=0,r=0],[s=e-1,o=n-1]]=t.split(":").map(IF);return[[i,r],[s,o]]}(e,t);const a=n?t._rows[r++]:null;let l=new Set(["#"]);for(let u=i;u<=s;u++){const t=a?kF(a.findCell(u+1)):null;let e=t&&t+""||EF(u);for(;l.has(e);)e+="_";l.add(e)}l=new Array(i).concat(Array.from(l));const c=new Array(o-r+1);for(let u=r;u<=o;u++){const e=c[u-r]=Object.create(null,{"#":{value:u+1}}),n=t.getRow(u+1);if(n.hasValues)for(let t=i;t<=s;t++){const i=kF(n.findCell(t+1));null!=i&&(e[l[t+1]]=i)}}return c.columns=l.filter(()=>!0),c}(this._.getWorksheet(n),e)}}function kF(t){if(!t)return;const{value:e}=t;if(e&&"object"==typeof e&&!(e instanceof Date)){if(e.formula||e.sharedFormula)return e.result&&e.result.error?NaN:e.result;if(e.richText)return TF(e);if(e.text){let{text:t}=e;return t.richText&&(t=TF(t)),e.hyperlink&&e.hyperlink!==t?`${e.hyperlink} ${t}`:t}return e}return e}function TF(t){return t.richText.map(t=>t.text).join("")}function EF(t){let e="";t++;do{e=String.fromCharCode(64+(t%26||26))+e}while(t=Math.floor((t-1)/26));return e}function IF(t){const[,e,n]=t.match(/^([A-Z]*)(\d*)$/);let i=0;if(e)for(let r=0;r<e.length;r++)i+=Math.pow(26,e.length-r-1)*(e.charCodeAt(r)-64);return[i?i-1:void 0,n?+n-1:void 0]}async function AF(t){const e=await fetch(await t.url());if(!e.ok)throw new Error(`Unable to load file: ${t.name}`);return e}async function zF(t,e,{array:n=!1,typed:i=!1}={}){const r=await t.text();return("\t"===e?n?LR:DR:n?AR:IR)(r,i&&RR)}class DF{constructor(t){Object.defineProperty(this,"name",{value:t,enumerable:!0})}async blob(){return(await AF(this)).blob()}async arrayBuffer(){return(await AF(this)).arrayBuffer()}async text(){return(await AF(this)).text()}async json(){return(await AF(this)).json()}async stream(){return(await AF(this)).body}async csv(t){return zF(this,",",t)}async tsv(t){return zF(this,"\t",t)}async image(t){const e=await this.url();return new Promise((n,i)=>{const r=new Image;new URL(e,document.baseURI).origin!==new URL(location).origin&&(r.crossOrigin="anonymous"),Object.assign(r,t),r.onload=()=>n(r),r.onerror=()=>i(new Error(`Unable to load file: ${this.name}`)),r.src=e})}async arrow(){const[t,e]=await Promise.all([KR(vF.resolve()),AF(this)]);return t.Table.from(e)}async sqlite(){return CF.open(AF(this))}async zip(){const[t,e]=await Promise.all([KR(dF.resolve()),this.arrayBuffer()]);return new FF(await t.loadAsync(e))}async xml(t="application/xml"){return(new DOMParser).parseFromString(await this.text(),t)}
147async html(){return this.xml("text/html")}async xlsx(){const[t,e]=await Promise.all([KR(bF.resolve()),this.arrayBuffer()]);return new SF(await(new t.Workbook).xlsx.load(e))}}class LF extends DF{constructor(t,e){super(e),Object.defineProperty(this,"_url",{value:t})}async url(){return await this._url+""}}function RF(t){throw new Error(`File not found: ${t}`)}class FF{constructor(t){Object.defineProperty(this,"_",{value:t}),this.filenames=Object.keys(t.files).filter(e=>!t.files[e].dir)}file(t){const e=this._.file(t+="");if(!e||e.dir)throw new Error(`file not found: ${t}`);return new BF(e)}}class BF extends DF{constructor(t){super(t.name),Object.defineProperty(this,"_",{value:t}),Object.defineProperty(this,"_url",{writable:!0})}async url(){return this._url||(this._url=this.blob().then(URL.createObjectURL))}async blob(){return this._.async("blob")}async arrayBuffer(){return this._.async("arraybuffer")}async text(){return this._.async("text")}async json(){return JSON.parse(await this.text())}}var NF={math:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},UF=0;function HF(t){this.id=t,this.href=new URL(`#${t}`,location)+""}HF.prototype.toString=function(){return"url("+this.href+")"};var jF={canvas:function(t,e){var n=document.createElement("canvas");return n.width=t,n.height=e,n},context2d:function(t,e,n){null==n&&(n=devicePixelRatio);var i=document.createElement("canvas");i.width=t*n,i.height=e*n,i.style.width=t+"px";var r=i.getContext("2d");return r.scale(n,n),r},download:function(t,e="untitled",n="Save"){const i=document.createElement("a"),r=i.appendChild(document.createElement("button"));async function s(){await new Promise(requestAnimationFrame),URL.revokeObjectURL(i.href),i.removeAttribute("href"),r.textContent=n,r.disabled=!1}return r.textContent=n,i.download=e,i.onclick=async e=>{if(r.disabled=!0,i.href)return s();r.textContent="Saving\u2026";try{const e=await("function"==typeof t?t():t);r.textContent="Download",i.href=URL.createObjectURL(e)}catch(t){r.textContent=n}if(e.eventPhase)return s();r.disabled=!1},i},element:function(t,e){var n,i=t+="",r=i.indexOf(":");r>=0&&"xmlns"!==(i=t.slice(0,r))&&(t=t.slice(r+1));var s=NF.hasOwnProperty(i)?document.createElementNS(NF[i],t):document.createElement(t);if(e)for(var o in e)r=(i=o).indexOf(":"),n=e[o],r>=0&&"xmlns"!==(i=o.slice(0,r))&&(o=o.slice(r+1)),NF.hasOwnProperty(i)?s.setAttributeNS(NF[i],o,n):s.setAttribute(o,n);return s},input:function(t){var e=document.createElement("input");return null!=t&&(e.type=t),e},range:function(t,e,n){1===arguments.length&&(e=t,t=null);var i=document.createElement("input");return i.min=t=null==t?0:+t,i.max=e=null==e?1:+e,i.step=null==n?"any":n=+n,i.type="range",i},select:function(t){var e=document.createElement("select");return Array.prototype.forEach.call(t,function(t){var n=document.createElement("option");n.value=n.textContent=t,e.appendChild(n)}),e},svg:function(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");return n.setAttribute("viewBox",[0,0,t,e]),n.setAttribute("width",t),n.setAttribute("height",e),n},text:function(t){return document.createTextNode(t)},uid:function(t){return new HF("O-"+(null==t?"":t+"-")+ ++UF)}},VF={buffer:function(t){return new Promise(function(e,n){var i=new FileReader;i.onload=function(){e(i.result)},i.onerror=n,i.readAsArrayBuffer(t)})},text:function(t){return new Promise(function(e,n){var i=new FileReader;i.onload=function(){e(i.result)},i.onerror=n,i.readAsText(t)})},url:function(t){return new Promise(function(e,n){var i=new FileReader;i.onload=function(){e(i.result)},i.onerror=n,i.readAsDataURL(t)})}};function $F(){return this}function qF(t,e){let n=!1;if("function"!=typeof e)throw new Error("dispose is not a function");return{[Symbol.iterator]:$F,next:()=>n?{done:!0}:(n=!0,{done:!1,value:t}),return:()=>(n=!0,e(t),{done:!0}),throw:()=>({done:n=!0})}}function GF(t){let e,n,i=!1;const r=t(function(t){return n?(n(t),n=null):i=!0,e=t});if(null!=r&&"function"!=typeof r)throw new Error("function"==typeof r.then?"async initializer
147s are not supported":"initializer returned something, but not a dispose function");return{[Symbol.iterator]:$F,throw:()=>({done:!0}),return:()=>(null!=r&&r(),{done:!0}),next:function(){return{done:!1,value:i?(i=!1,Promise.resolve(e)):new Promise(t=>n=t)}}}}function ZF(t){switch(t.type){case"range":case"number":return t.valueAsNumber;case"date":return t.valueAsDate;case"checkbox":return t.checked;case"file":return t.multiple?t.files:t.files[0];case"select-multiple":return Array.from(t.selectedOptions,t=>t.value);default:return t.value}}var WF={disposable:qF,filter:function*(t,e){for(var n,i=-1;!(n=t.next()).done;)e(n.value,++i)&&(yield n.value)},input:function(t){return GF(function(e){var n=function(t){switch(t.type){case"button":case"submit":case"checkbox":return"click";case"file":return"change";default:return"input"}}(t),i=ZF(t);function r(){e(ZF(t))}return t.addEventListener(n,r),void 0!==i&&e(i),function(){t.removeEventListener(n,r)}})},map:function*(t,e){for(var n,i=-1;!(n=t.next()).done;)yield e(n.value,++i)},observe:GF,queue:function(t){let e;const n=[],i=t(function(t){return n.push(t),e&&(e(n.shift()),e=null),t});if(null!=i&&"function"!=typeof i)throw new Error("function"==typeof i.then?"async initializers are not supported":"initializer returned something, but not a dispose function");return{[Symbol.iterator]:$F,throw:()=>({done:!0}),return:()=>(null!=i&&i(),{done:!0}),next:function(){return{done:!1,value:n.length?Promise.resolve(n.shift()):new Promise(t=>e=t)}}}},range:function*(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((e-t)/n));++i<r;)yield t+i*n},valueAt:function(t,e){if(!(!isFinite(e=+e)||e<0||e!=e|0))for(var n,i=-1;!(n=t.next()).done;)if(++i===e)return n.value},worker:function(t){const e=URL.createObjectURL(new Blob([t],{type:"text/javascript"})),n=new Worker(e);return qF(n,()=>{n.terminate(),URL.revokeObjectURL(e)})}};function XF(t,e){return function(n){var i,r,s,o,a,l,c,u,h=n[0],d=[],p=null,m=-1;for(a=1,l=arguments.length;a<l;++a){if((i=arguments[a])instanceof Node)d[++m]=i,h+="\x3c!--o:"+m+"--\x3e";else if(Array.isArray(i)){for(c=0,u=i.length;c<u;++c)(r=i[c])instanceof Node?(null===p&&(d[++m]=p=document.createDocumentFragment(),h+="\x3c!--o:"+m+"--\x3e"),p.appendChild(r)):(p=null,h+=r);p=null}else h+=i;h+=n[a]}if(p=t(h),++m>0){for(s=new Array(m),o=document.createTreeWalker(p,NodeFilter.SHOW_COMMENT,null,!1);o.nextNode();)/^o:/.test((r=o.currentNode).nodeValue)&&(s[+r.nodeValue.slice(2)]=r);for(a=0;a<m;++a)(r=s[a])&&r.parentNode.replaceChild(d[a],r)}return 1===p.childNodes.length?p.removeChild(p.firstChild):11===p.nodeType?((r=e()).appendChild(p),r):p}}var QF=XF(function(t){var e=document.createElement("template");return e.innerHTML=t.trim(),document.importNode(e.content,!0)},function(){return document.createElement("span")});function KF(t){let e;Object.defineProperties(this,{generator:{value:GF(t=>{e=t})},value:{get:()=>t,set:n=>e(t=n)}}),void 0!==t&&e(t)}function*YF(){for(;;)yield Date.now()}var JF=new Map;function tB(t,e){var n;return(n=JF.get(t=+t))?n.then(()=>e):(n=Date.now())>=t?Promise.resolve(e):function(t,e){var n=new Promise(function(n){JF.delete(e);var i=e-t;if(!(i>0))throw new Error("invalid time");if(i>2147483647)throw new Error("too long to wait");setTimeout(n,i)});return JF.set(e,n),n}(n,t).then(()=>e)}var eB={delay:function(t,e){return new Promise(function(n){setTimeout(function(){n(e)},t)})},tick:function(t,e){return tB(Math.ceil((Date.now()+1)/t)*t,e)},when:tB};function nB(t,e){if(/^(\w+:)|\/\//i.test(t))return t;if(/^[.]{0,2}\//i.test(t))return new URL(t,null==e?location:e).href;if(!t.length||/^[\s._]/.test(t)||/\s$/.test(t))throw new Error("illegal name");return"https://unpkg.com/"+t}var iB=XF(function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","g");return e.innerHTML=t.trim(),e},function(){return document.createElementNS("http://www.w3.org/2000/svg","g")}),rB=String.raw;function sB(){return GF(function(t){var e=t(document.body.clientWidth);function n(){var n=document.body.clientWidth;n!==e&&t(e=n)}return window.addEventListener("resize",n),function(){window.removeEventListener("resize",n)}})}var oB=Object.assign(function(t){const e=function(t){return null==t?KR:YR(t)}(t);Object.defineProperties(this,Object.fromEntries(Object.entries({FileAttachment:()=>RF,Arrow:()=>e(vF.resolve()),Inputs:()=>e(sF.resolve()).then(t=>({...t,file:t.fileOf(DF)})),Mutable:()=>KF,Plot:()=>e(oF.resolve()),SQLite:()=>wF(e),SQLiteDatabaseClient:()=>CF,_:()=>e(uF.resolve()),aq:()=>e.alias({"apache-arrow":vF.resolve()})(yF.resolve()),d3:()=>e(rF.resolve()),dot:()=>e(aF.resolve()),htl:()=>e(hF.resolve()),html:()=>QF,md:()=>function(t){return t(pF.resolve()).then(function(e){return XF(function(n){var i=document.createElement("div");i.innerHTML=e(n,{langPrefix:""}).trim();var r=i.querySelectorAll("pre code[class]");return r.length>0&&t(lF.resolve()).then(function(e){r.forEach(function(n){function i(){e.highlightBlock(n),n.parentNode.classList.add("observablehq--md-pre")}e.getLanguage(n.className)?i():t(lF.resolve("async-languages/index.js")).then(i=>{if(i.has(n.className))return t(lF.resolve("async-languages/"+i.get(n.className))).then(t=>{e.registerLanguage(n.className,t)})}).then(i,i)})}),i},function(){return document.createElement("div")})})}(e),now:YF,require:()=>e,resolve:()=>nB,svg:()=>iB,tex:()=>function(t){return Promise.all([t(cF.resolve()),(e=cF.resolve("dist/katex.min.css"),new Promise(function(t,n){var i=document.createElement("link");i.rel="stylesheet",i.href=e,i.onerror=n,i.onload=t,document.head.appendChild(i)}))]).then(function(t){var e=t[0],n=i();function i(t){return function(){var n=document.createElement("div");return e.render(rB.apply(String,arguments),n,t),n.removeChild(n.firstChild)}}return n.options=i,n.block=i({displayMode:!0}),n});var e}(e),topojson:()=>e(xF.resolve()),vl:()=>async function(t){const[e,n,i]=await Promise.all([gF,fF,_F].map(e=>t(e.resolve())));return i.register(e,n)}(e),width:sB,DOM:jF,Files:VF,Generators:WF,Promises:eB}).map(aB)))},{resolve:KR.resolve});function aB([t,e]){return[t,{value:e,writable:!0,enumerable:!0}]}function lB(t,e){this.message=t+"",this.input=e}(lB.prototype=Object.create(Error.prototype)).name="RuntimeError",lB.prototype.constructor=lB;
147var cB=Array.prototype,uB=cB.map,hB=cB.forEach;function dB(t){return function(){return t}}function pB(t){return t}function mB(){}var gB={};function fB(t,e,n){var i;n||(n=gB),Object.defineProperties(this,{_observer:{value:n,writable:!0},_definition:{value:yB,writable:!0},_duplicate:{value:void 0,writable:!0},_duplicates:{value:void 0,writable:!0},_indegree:{value:NaN,writable:!0},_inputs:{value:[],writable:!0},_invalidate:{value:mB,writable:!0},_module:{value:e},_name:{value:null,writable:!0},_outputs:{value:new Set,writable:!0},_promise:{value:Promise.resolve(void 0),writable:!0},_reachable:{value:n!==gB,writable:!0},_rejector:{value:(i=this,function(t){if(t===yB)throw new lB(i._name+" is not defined",i._name);if(t instanceof Error&&t.message)throw new lB(t.message,i._name);throw new lB(i._name+" could not be resolved",i._name)})},_type:{value:t},_value:{value:void 0,writable:!0},_version:{value:0,writable:!0}})}function _B(t){t._module._runtime._dirty.add(t),t._outputs.add(this)}function vB(t){t._module._runtime._dirty.add(t),t._outputs.delete(this)}function yB(){throw yB}function xB(t){return function(){throw new lB(t+" is defined more than once")}}function bB(t,e,n){var i=this._module._scope,r=this._module._runtime;if(this._inputs.forEach(vB,this),e.forEach(_B,this),this._inputs=e,this._definition=n,this._value=void 0,n===mB?r._variables.delete(this):r._variables.add(this),t!==this._name||i.get(t)!==this){var s,o;if(this._name)if(this._outputs.size)i.delete(this._name),(o=this._module._resolve(this._name))._outputs=this._outputs,this._outputs=new Set,o._outputs.forEach(function(t){t._inputs[t._inputs.indexOf(this)]=o},this),o._outputs.forEach(r._updates.add,r._updates),r._dirty.add(o).add(this),i.set(this._name,o);else if((o=i.get(this._name))===this)i.delete(this._name);else{if(3!==o._type)throw new Error;o._duplicates.delete(this),this._duplicate=void 0,1===o._duplicates.size&&(o=o._duplicates.keys().next().value,s=i.get(this._name),o._outputs=s._outputs,s._outputs=new Set,o._outputs.forEach(function(t){t._inputs[t._inputs.indexOf(s)]=o}),o._definition=o._duplicate,o._duplicate=void 0,r._dirty.add(s).add(o),r._updates.add(o),i.set(this._name,o))}if(this._outputs.size)throw new Error;t&&((o=i.get(t))?3===o._type?(this._definition=xB(t),this._duplicate=n,o._duplicates.add(this)):2===o._type?(this._outputs=o._outputs,o._outputs=new Set,this._outputs.forEach(function(t){t._inputs[t._inputs.indexOf(o)]=this},this),r._dirty.add(o).add(this),i.set(t,this)):(o._duplicate=o._definition,this._duplicate=n,(s=new fB(3,this._module))._name=t,s._definition=this._definition=o._definition=xB(t),s._outputs=o._outputs,o._outputs=new Set,s._outputs.forEach(function(t){t._inputs[t._inputs.indexOf(o)]=s}),s._duplicates=new Set([this,o]),r._dirty.add(o).add(s),r._updates.add(o).add(s),i.set(t,s)):i.set(t,this)),this._name=t}return r._updates.add(this),r._compute(),this}function wB(t,e=[]){Object.defineProperties(this,{_runtime:{value:t},_scope:{value:new Map},_builtins:{value:new Map([["invalidation",MB],["visibility",OB],...e])},_source:{value:null,writable:!0}})}function CB(t){return t._name}Object.defineProperties(fB.prototype,{_pending:{value:function(){this._observer.pending&&this._observer.pending()},writable:!0,configurable:!0},_fulfilled:{value:function(t){this._observer.fulfilled&&this._observer.fulfilled(t,this._name)},writable:!0,configurable:!0},_rejected:{value:function(t){this._observer.rejected&&this._observer.rejected(t,this._name)},writable:!0,configurable:!0},define:{value:function(t,e,n){switch(arguments.length){case 1:n=t,t=e=null;break;case 2:n=e,"string"==typeof t?e=null:(e=t,t=null)}return bB.call(this,null==t?null:t+"",null==e?[]:uB.call(e,this._module._resolve,this._module),"function"==typeof n?n:dB(n))},writable:!0,configurable:!0},delete:{value:function(){return bB.call(this,null,[],mB)},writable:!0,configurable:!0},import:{value:function(t,e,n){return arguments.length<3&&(n=e,e=t),bB.call(this,e+"",[n._resolve(t+"")],pB)},writable:!0,configurable:!0}}),Object.defineProperties(wB.prototype,{_copy:{value:function(t,e){t._source=this,e.set(this,t);for(const[s,o]of this._scope){var n=t._scope.get(s);if(!n||1!==n._type)if(o._definition===pB){var i=o._inputs[0],r=i._module;t.import(i._name,s,e.get(r)||(r._source?r._copy(new wB(t._runtime,t._builtins),e):r))}else t.define(s,o._inputs.map(CB),o._definition)}return t},writable:!0,configurable:!0},_resolve:{value:function(t){var e,n,i=this._scope.get(t);if(!i)if(i=new fB(2,this),this._builtins.has(t))i.define(t,dB(this._builtins.get(t)));else if(this._runtime._builtin._scope.has(t))i.import(t,this._runtime._builtin);else{try{e=this._runtime._global(t)}catch(e){return i.define(t,(n=e,function(){throw n}))}void 0===e?this._scope.set(i._name=t,i):i.define(t,dB(e))}return i},writable:!0,configurable:!0},redefine:{value:function(t){var e=this._scope.get(t);if(!e)throw new lB(t+" is not defined");if(3===e._type)throw new lB(t+" is defined more than once");return e.define.apply(e,arguments)},writable:!0,configurable:!0},define:{value:function(){var t=new fB(1,this);return t.define.apply(t,arguments)},writable:!0,configurable:!0},derive:{value:function(t,e){var n=new wB(this._runtime,this._builtins);return n._source=this,hB.call(t,function(t){"object"!=typeof t&&(t={name:t+""}),null==t.alias&&(t.alias=t.name),n.import(t.name,t.alias,e)}),Promise.resolve().then(()=>{const t=new Set([this]);for(const e of t)for(const n of e._scope.values())if(n._definition===pB){const e=n._inputs[0]._module,i=e._source||e;if(i===this)return void console.warn("circular module definition; ignoring");t.add(i)}this._copy(n,new Map)}),n},writable:!0,configurable:!0},import:{value:function(){var t=new fB(1,this);return t.import.apply(t,arguments)},writable:!0,configurable:!0},value:{value:async function(t){var e=this._scope.get(t);if(!e)throw new lB(t+" is not defined");return e._observer===gB&&(e._observer=!0,this._runtime._dirty.add(e)),await this._runtime._compute(),e._promise},writable:!0,configurable:!0},variable:{value:function(t){return new fB(1,this,t)},writable:!0,configurable:!0},builtin:{value:function(t,e){this._builtins.set(t,e)},writable:!0,configurable:!0}});const PB="function"==typeof requestAnimationFrame?requestAnimationFrame:setImmediate;var MB={},OB={};function SB(t=new oB,e=RB){var n=this.module();if(Object.defineProperties(this,{_dirty:{value:new Set},_updates:{value:new Set},_precomputes:{value:[],writable:!0},_computing:{value:null,writable:!0},_init:{value:null,writable:!0},_modules:{value:new Map},_variables:{value:new Set},_disposed:{value:!1,writable:!0},_builtin:{value:n},_global:{value:e}}),t)for(var i in t)new fB(2,n).define(i,[],t[i])}function kB(t){const e=new Set(t._inputs);for(const n of e){if(n===t)return!0;
147n._inputs.forEach(e.add,e)}return!1}function TB(t){++t._indegree}function EB(t){--t._indegree}function IB(t){return t._promise.catch(t._rejector)}function AB(t){return new Promise(function(e){t._invalidate=e})}function zB(t,e){let n,i,r="function"==typeof IntersectionObserver&&e._observer&&e._observer._node,s=!r,o=mB,a=mB;return r&&(i=new IntersectionObserver(([t])=>(s=t.isIntersecting)&&(n=null,o())),i.observe(r),t.then(()=>(i.disconnect(),i=null,a()))),function(t){return s?Promise.resolve(t):i?(n||(n=new Promise((t,e)=>(o=t,a=e))),n.then(()=>t)):Promise.reject()}}function DB(t){t._invalidate(),t._invalidate=mB,t._pending();const e=t._value,n=++t._version;let i=null;(t._promise=(t._inputs.length?Promise.all(t._inputs.map(IB)).then(function(r){if(t._version===n){for(var s=0,o=r.length;s<o;++s)switch(r[s]){case MB:r[s]=i=AB(t);break;case OB:i||(i=AB(t)),r[s]=zB(i,t)}return t._definition.apply(e,r)}}):new Promise(n=>n(t._definition.call(e)))).then(function(e){return function(t){return t&&"function"==typeof t.next&&"function"==typeof t.return}(e)?t._version!==n?void e.return():((i||AB(t)).then((r=e,function(){r.return()})),function(t,e,n){const i=t._module._runtime;function r(t){return new Promise(t=>t(n.next())).then(({done:e,value:n})=>e?void 0:Promise.resolve(n).then(t))}function s(){const n=r(r=>{if(t._version===e)return o(r,n).then(()=>i._precompute(s)),t._fulfilled(r),r});n.catch(i=>{t._version===e&&(o(void 0,n),t._rejected(i))})}function o(e,n){return t._value=e,t._promise=n,t._outputs.forEach(i._updates.add,i._updates),i._compute()}return r(n=>{if(t._version===e)return i._precompute(s),n})}(t,n,e)):e;var r})).then(e=>{t._version===n&&(t._value=e,t._fulfilled(e))},e=>{t._version===n&&(t._value=void 0,t._rejected(e))})}function LB(t,e){t._invalidate(),t._invalidate=mB,t._pending(),++t._version,t._indegree=NaN,(t._promise=Promise.reject(e)).catch(mB),t._value=void 0,t._rejected(e)}function RB(t){return window[t]}Object.defineProperties(SB,{load:{value:function(t,e,n){if("function"==typeof e&&(n=e,e=null),"function"!=typeof n)throw new Error("invalid observer");null==e&&(e=new oB);const{modules:i,id:r}=t,s=new Map,o=new SB(e),a=l(r);function l(t){let e=s.get(t);return e||s.set(t,e=o.module()),e}for(const c of i){const t=l(c.id);let e=0;for(const i of c.variables)i.from?t.import(i.remote,i.name,l(i.from)):t===a?t.variable(n(i,e,c.variables)).define(i.name,i.inputs,i.value):t.define(i.name,i.inputs,i.value),++e}return o},writable:!0,configurable:!0}}),Object.defineProperties(SB.prototype,{_precompute:{value:function(t){this._precomputes.push(t),this._compute()},writable:!0,configurable:!0},_compute:{value:function(){return this._computing||(this._computing=this._computeSoon())},writable:!0,configurable:!0},_computeSoon:{value:function(){return new Promise(PB).then(()=>this._disposed?void 0:this._computeNow())},writable:!0,configurable:!0},_computeNow:{value:async function(){var t,e,n=[],i=this._precomputes;if(i.length){this._precomputes=[];for(const t of i)t();await function(t=0){let e=Promise.resolve();for(let n=0;n<t;++n)e=e.then(()=>{});return e}(3)}(t=new Set(this._dirty)).forEach(function(e){e._inputs.forEach(t.add,t);const n=function(t){if(t._observer!==gB)return!0;var e=new Set(t._outputs);for(const n of e){if(n._observer!==gB)return!0;n._outputs.forEach(e.add,e)}return!1}(e);n>e._reachable?this._updates.add(e):n<e._reachable&&e._invalidate(),e._reachable=n},this),(t=new Set(this._updates)).forEach(function(e){e._reachable?(e._indegree=0,e._outputs.forEach(t.add,t)):(e._indegree=NaN,t.delete(e))}),this._computing=null,this._updates.clear(),this._dirty.clear(),t.forEach(function(t){t._outputs.forEach(TB)});do{for(t.forEach(function(t){0===t._indegree&&n.push(t)});e=n.pop();)DB(e),e._outputs.forEach(r),t.delete(e);t.forEach(function(e){kB(e)&&(LB(e,new lB("circular definition")),e._outputs.forEach(EB),t.delete(e))})}while(t.size);function r(t){0==--t._indegree&&n.push(t)}},writable:!0,configurable:!0},dispose:{value:function(){this._computing=Promise.resolve(),this._disposed=!0,this._variables.forEac
147h(t=>{t._invalidate(),t._version=NaN})},writable:!0,configurable:!0},module:{value:function(t,e=mB){let n;if(void 0===t)return(n=this._init)?(this._init=null,n):new wB(this);if(n=this._modules.get(t),n)return n;this._init=n=new wB(this),this._modules.set(t,n);try{t(this,e)}finally{this._init=null}return n},writable:!0,configurable:!0},fileAttachments:{value:function(t){return Object.assign(e=>{const n=t(e+="");if(null==n)throw new Error(`File not found: ${e}`);return new LF(n,e)},{prototype:LF.prototype})},writable:!0,configurable:!0}});const FB=["top"],BB=["recitcont"],NB=["sequences"],UB=["blocs"],HB=["itemcont"],jB=["itemvisuel"];function VB(t,e){if(1&t){const t=Io();Mo(0,"img",28),Lo("click",function(){return Ae(t),Bo(3).bigMenu=!0}),Oo()}}function $B(t,e){if(1&t){const t=Io();Mo(0,"img",29),Lo("click",function(){return Ae(t),Bo(3).bigMenu=!1}),Oo()}}function qB(t,e){if(1&t&&(Mo(0,"div",22),Mo(1,"div",23),So(2,"div",24),Bl(3,"safe"),Mo(4,"div",25),da(5,"Introduction"),Oo(),Oo(),xo(6,VB,1,0,"img",26),xo(7,$B,1,0,"img",27),Oo()),2&t){const t=Bo(2);Qr(2),Co("innerHtml",Nl(3,3,t.currentSequence.titre_html,"html"),Ki),Qr(4),Co("ngIf",!t.bigMenu),Qr(1),Co("ngIf",t.bigMenu)}}function GB(t,e){1&t&&So(0,"img",42),2&t&&Co("src",Bo(2).$implicit.vignette_url,Yi)}const ZB=function(t,e,n){return{seen:t,current:e,noimg:n}};function WB(t,e){if(1&t&&(Mo(0,"div",40),xo(1,GB,1,1,"img",41),Oo()),2&t){const t=Bo().$implicit,e=Bo(4),n=e.currentItem;Co("ngClass",zl(2,ZB,-1!=e.history.indexOf(null==t.main_item?null:t.main_item.id),n==(null==t.main_item?null:t.main_item.id),""==t.vignette_url)),Qr(1),Co("ngIf",""!=t.vignette_url)}}function XB(t,e){if(1&t&&(ko(0),xo(1,WB,2,6,"div",39),To()),2&t){const t=e.$implicit;Qr(1),Co("ngIf","bloc_editorial"==t.type)}}function QB(t,e){if(1&t){const t=Io();Mo(0,"div",38),Lo("click",function(){Ae(t);const e=Bo().index,n=Bo().index;return Bo(2).goSequence(n,e)})("mousemove",function(e){Ae(t);const n=Bo().$implicit;return Bo(3).hoverSequence(e,n)})("mouseover",function(e){Ae(t);const n=Bo().$implicit;return Bo(3).hoverSequence(e,n)})("mouseout",function(){return Ae(t),Bo(4).currentHover=null}),xo(1,XB,2,1,"ng-container",13),Oo()}if(2&t){const t=e.$implicit;Qr(1),Co("ngForOf",t.recit.bloc_edits)}}const KB=function(t,e,n){return{hover:t,fade:e,current:n}};function YB(t,e){if(1&t&&(Mo(0,"div",36),xo(1,QB,2,1,"div",37),Oo()),2&t){const t=e.$implicit,n=Bo(3);Co("data-id",t.id)("ngClass",zl(3,KB,n.currentHover==t,n.currentHover&&n.currentHover!=t,n.currentSequence==t)),Qr(1),Co("ngForOf",t.subsequences)}}function JB(t,e){if(1&t&&(Mo(0,"div",30),Mo(1,"div",31),So(2,"div",32),Bl(3,"safe"),So(4,"div",33),Bl(5,"safe"),Oo(),Mo(6,"div",34),xo(7,YB,2,7,"div",35),Oo(),Oo()),2&t){const t=e.$implicit;Qr(2),Co("innerHtml",Nl(3,3,t.label,"html"),Ki),Qr(2),Co("innerHtml",Nl(5,6,t.titre,"html"),Ki),Qr(3),Co("ngForOf",t.sequences)}}function tN(t,e){if(1&t&&(xo(0,qB,8,6,"div",19),Mo(1,"div",20),xo(2,JB,8,9,"div",21),Oo()),2&t){const t=e.data;Co("ngIf",Bo().currentSequence),Qr(2),Co("ngForOf",t)}}function eN(t,e){if(1&t&&(Mo(0,"a",47),So(1,"img",48),So(2,"img",49),Oo()),2&t){const t=Bo().component;Co("href",t.lien||t.url,Yi)}}function nN(t,e){1&t&&(Mo(0,"a",50),So(1,"img",51),So(2,"img",52),Oo()),2&t&&Co("href",Bo().component.files[0]["data-url"],Yi)}function iN(t,e){if(1&t){const t=Io();Mo(0,"div",53),Lo("click",function(){Ae(t);const e=Bo().component;return Bo().openCaroussel(e)}),So(1,"img",54),So(2,"img",55),Oo()}}function rN(t,e){if(1&t&&(Mo(0,"div",43),xo(1,eN,3,1,"a",44),xo(2,nN,3,1,"a",45),xo(3,iN,3,0,"div",46),Oo()),2&t){const t=e.component,n=Bo();Qr(1),Co("ngIf","nonres"!=t.type),Qr(1),Co("ngIf","pdf"==t.type),Qr(1),Co("ngIf",n.hasCaroussel(t))}}function sN(t,e){1&t&&So(0,"img",42),2&t&&Co("src",Bo(2).animatingImg,Yi)}function oN(t,e){if(1&t){const t=Io();Mo(0,"div",56),Lo("@recitAnim.done",function(){return Ae(t),Bo().animating=!1}),xo(1,sN,1,1,"img",41),Oo()}if(2&t){const t=Bo();Co("@recitAnim",t.animatingParams),Qr(1),Co("ngIf",""!=t.animatingImg)}}function aN(t,e){1&t&&Eo(0)}function lN(t,e){1&t&&Eo(0)}function cN(t,e){1&t&&Eo(0)}function uN(t,e){1&t&&Eo(0)}const hN=function(t){return{active:t}},dN=function(t,e,n){return{data:t,history:e,currentItem:n}};function pN(t,e){if(1&t){const t=Io();Mo(0,"div",57,58),xo(2,uN,1,0,"ng-container",6),Mo(3,"div",59),Mo(4,"div",60),Lo("click",function(){return Ae(t),Bo().goSequence(0,0)}),da(5,"D\xe9marrer la visite"),Oo(),Oo(),Oo()}if(2&t){const t=Bo(),e=bo(1);Co("ngClass",Il(4,hN,t.showIntroMenu)),yo("data-url",t.baseUrl+"/recit"),Qr(2),Co("ngTemplateOutlet",e)("ngTemplateOutletContext",zl(6,dN,t.data,t.history,t.currentItem))}}function mN(t,e){1&t&&So(0,"img",42),2&t&&Co("src",Bo(2).$implicit.vignette_url,Yi)}const gN=function(t){return{noimg:t}};function fN(t,e){if(1&t&&(Mo(0,"div",40),xo(1,mN,1,1,"img",41),Oo()),2&t){const t=Bo().$implicit;Co("ngClass",Il(2,gN,""==t.vignette_url)),Qr(1),Co("ngIf",""!=t.vignette_url)}}function _N(t,e){if(1&t&&(ko(0),xo(1,fN,2,4,"div",39),To()),2&t){const t=e.$implicit;Qr(1),Co("ngIf","bloc_editorial"==t.type)}}const vN=function(t,e){return{hover:t,fade:e}}
147;function yN(t,e){if(1&t){const t=Io();Mo(0,"div",73),Lo("click",function(){Ae(t);const n=e.$implicit;return Bo(3).goSubSeq(n)})("mousemove",function(n){Ae(t);const i=e.$implicit;return Bo(3).hoverSubsequence(n,i)})("mouseover",function(n){Ae(t);const i=e.$implicit;return Bo(3).hoverSubsequence(n,i)})("mouseout",function(){return Ae(t),Bo(3).currentSeqHover=null}),xo(1,_N,2,1,"ng-container",13),Oo()}if(2&t){const t=e.$implicit,n=Bo(3);Co("ngClass",Al(2,vN,n.currentSeqHover==t,n.currentSeqHover&&n.currentSeqHover!=t)),Qr(1),Co("ngForOf",t.recit.bloc_edits)}}function xN(t,e){if(1&t&&(Mo(0,"div",75,76),Mo(2,"div",77),So(3,"div",78),Bl(4,"safe"),So(5,"div",79),Bl(6,"safe"),Mo(7,"div",69),Mo(8,"div",70),So(9,"div",71),Oo(),Mo(10,"div",72),da(11,"Faire d\xe9filer"),So(12,"br"),da(13,"pour parcourir le chapitre"),Oo(),Oo(),Oo(),Oo()),2&t){const t=Bo().$implicit,e=Bo().$implicit;Co("ngClass",Il(10,hN,e.active)),yo("data-subseq",t.id),Qr(3),Co("innerHtml",Nl(4,4,t.recit.name,"html"),Ki),Qr(2),Co("innerHtml",Nl(6,7,t.recit.texte_intro,"html"),Ki)}}function bN(t,e){if(1&t&&So(0,"img",97),2&t){const t=Bo(2).$implicit;Jo("width:"+t.main_item.image_size+"%"),Co("src",t.main_item.image.full,Yi)}}function wN(t,e){1&t&&So(0,"img",97),2&t&&Co("src",Bo(2).$implicit.main_item.video_preview.full,Yi)}function CN(t,e){1&t&&Eo(0)}const PN=function(t){return{hidden:t}},MN=function(t){return{component:t}};function ON(t,e){if(1&t&&(Mo(0,"div",98,99),Mo(2,"div",100),So(3,"app-video-player",101),xo(4,CN,1,0,"ng-container",6),Oo(),So(5,"div",102),Oo()),2&t){const t=Bo(2).$implicit,e=Bo(4),n=bo(3);Co("ngClass",Il(7,PN,e.animating||e.isItemIntro)),yo("data-itemid",t.main_item.id),Qr(3),Co("url",t.main_item.video)("previewUrl",null==t.main_item.video_preview?null:t.main_item.video_preview.full),Qr(1),Co("ngTemplateOutlet",n)("ngTemplateOutletContext",Il(9,MN,t.main_item)),Qr(1),Co("innerHtml",t.main_item.titre,Ki)}}function SN(t,e){1&t&&So(0,"img",105),2&t&&Co("src",Bo(3).$implicit.main_item.image.full,Yi)}function kN(t,e){1&t&&Eo(0)}function TN(t,e){if(1&t&&(Mo(0,"div",103,99),Mo(2,"div",100),xo(3,SN,1,1,"img",104),xo(4,kN,1,0,"ng-container",6),Oo(),So(5,"div",102),Oo()),2&t){const t=Bo(2).$implicit,e=Bo(4),n=bo(3);Co("ngClass",Il(6,PN,e.animating||e.isItemIntro)),yo("data-itemid",t.main_item.id),Qr(3),Co("ngIf",t.main_item.image),Qr(1),Co("ngTemplateOutlet",n)("ngTemplateOutletContext",Il(8,MN,t.main_item)),Qr(1),Co("innerHtml",t.main_item.titre,Ki)}}function EN(t,e){if(1&t&&(Mo(0,"div",111),So(1,"div",112),So(2,"div",113),Oo()),2&t){const t=Bo().$implicit;Qr(1),Co("innerHtml",t.titre,Ki),Qr(1),Co("innerHtml",t.paragraphe,Ki)}}function IN(t,e){1&t&&Eo(0)}function AN(t,e){if(1&t&&(Mo(0,"div",119),So(1,"img",42),Mo(2,"div",120),So(3,"span",121),Bl(4,"safe"),So(5,"span",122),Bl(6,"safe"),Oo(),xo(7,IN,1,0,"ng-container",6),Oo()),2&t){const t=Bo(2).$implicit;Bo(6);const e=bo(3);Qr(1),Co("src",null==t.files[0]?null:t.files[0].image_url,Yi),Qr(2),Co("innerHtml",Nl(4,5,t.titre+(""!=(null==t.files[0]?null:t.files[0].legend)?" - ":""),"html"),Ki),Qr(2),Co("innerHtml",Nl(6,8,null==t.files[0]?null:t.files[0].legend,"html"),Ki),Qr(2),Co("ngTemplateOutlet",e)("ngTemplateOutletContext",Il(11,MN,t))}}function zN(t,e){1&t&&So(0,"div",127),2&t&&Co("innerHtml",Bo(3).$implicit.titre,Ki)}function DN(t,e){1&t&&(So(0,"div",128),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(3).$implicit.legend,"html"),Ki)}function LN(t,e){1&t&&Eo(0)}function RN(t,e){if(1&t&&(Mo(0,"div",123),So(1,"app-video-player",124),xo(2,zN,1,1,"div",125),xo(3,DN,2,4,"div",126),xo(4,LN,1,0,"ng-container",6),Oo()),2&t){const t=Bo(2).$implicit;Bo(6);const e=bo(3);Qr(1),Co("resourceData",t.files)("forceRatio",!0),Qr(1),Co("ngIf",""!=t.titre),Qr(1),Co("ngIf",""!=t.legend),Qr(1),Co("ngTemplateOutlet",e)("ngTemplateOutletContext",Il(6,MN,t))}}function FN(t,e){1&t&&Eo(0)}function BN(t,e){1&t&&So(0,"div",127),2&t&&Co("innerHtml",Bo(3).$implicit.titre,Ki)}function NN(t,e){1&t&&(So(0,"div",128),Bl(1,"safe")),2&t&&Co("innerHtml",Nl(1,1,Bo(3).$implicit.legend,"html"),Ki)}function UN(t,e){if(1&t&&(Mo(0,"div",129),Mo(1,"div",130),So(2,"iframe",131),Bl(3,"safe"),xo(4,FN,1,0,"ng-container",6),Oo(),xo(5,BN,1,1,"div",125),xo(6,NN,2,4,"div",126),Oo()),2&t){const t=Bo(2).$implicit;Bo(6);const e=bo(3);Qr(2),Co("src",Nl(3,5,t.files[0]["data-url"],"resourceUrl"),Ji),Qr(2),Co("ngTemplateOutlet",e)("ngTemplateOutletContext",Il(8,MN,t)),Qr(1),Co("ngIf",""!=t.titre),Qr(1),Co("ngIf",""!=t.legend)}}function HN(t,e){1&t&&Eo(0)}const jN=function(t){return{ph:t}};function VN(t,e){if(1&t&&(Mo(0,"div",132),So(1,"img",133),xo(2,HN,1,0,"ng-container",6),Oo()),2&t){const t=Bo(2).$implicit;Bo(6);const e=bo(3);Qr(1),Co("ngClass",Il(4,jN,!t.preview_url||""==t.preview_url))("src",t.preview_url&&""!=t.preview_url?t.preview_url:"/assets/img/pdf_placeholder.svg",Yi),Qr(1),Co("ngTemplateOutlet",e)("ngTemplateOutletContext",Il(6,MN,t))}}function $N(t,e){1&t&&Eo(0)}function qN(t,e){if(1&t&&(Mo(0,"div",138),So(1,"iframe",131),Bl(2,"safe"),xo(3,$N,1,0,"ng-container",6),Oo()),2&t){const t=Bo(3).$implicit;Bo(6);const e=bo(3);Qr(1),Co("src",Nl(2,3,t.files[0]["data-url"],"resourceUrl"),Ji),Qr(2),Co("ngTemplateOutlet",e)("ngTemplateOutletContext",Il(6,MN,t))}}function GN(t,e){1&t&&Eo(0)}function ZN(t,e){if(1&t&&(Mo(0,"div",139),Mo(1,"div",140),So(2,"div",141),So(3,"app-audio-player",142),Oo(),xo(4,GN,1,0,"ng-container",6),Oo()),2&t){const t=Bo(3).$implicit;Bo(6);const e=bo(3);Qr(2),Co("innerHtml",t.titre,Ki),Qr(1),Co("data",t.files)("inline",!0),Qr(1),Co("ngTemplateOutlet",e)("ngTemplateOutletContext",Il(5,MN,t))}}function WN(t,e){if(1&t&&(Mo(0,"div",134),xo(1,qN,4,8,"div",135),xo(2,ZN,5,7,"div",136),So(3,"div",137),Bl(4,"
147safe"),Oo()),2&t){const t=Bo(2).$implicit;Qr(1),Co("ngIf","1"==t.soundcloud),Qr(1),Co("ngIf","0"==t.soundcloud),Qr(1),Co("innerHtml",Nl(4,3,t.legend,"html"),Ki)}}function XN(t,e){if(1&t&&(Mo(0,"div"),da(1),Oo()),2&t){const t=Bo(2).$implicit;Qr(1),ma(" TODO item secondaire type ",t.type," ")}}function QN(t,e){if(1&t&&(Mo(0,"div",111),ko(1,80),xo(2,AN,8,13,"div",114),xo(3,RN,5,8,"div",115),xo(4,UN,7,10,"div",116),xo(5,VN,3,8,"div",117),xo(6,WN,5,6,"div",118),xo(7,XN,2,1,"div",82),To(),Oo()),2&t){const t=Bo().$implicit;Qr(1),Co("ngSwitch",t.type),Qr(1),Co("ngSwitchCase","image"),Qr(1),Co("ngSwitchCase","video"),Qr(1),Co("ngSwitchCase","html"),Qr(1),Co("ngSwitchCase","pdf"),Qr(1),Co("ngSwitchCase","audio")}}function KN(t,e){if(1&t&&(Mo(0,"div",143),So(1,"div",144),Oo()),2&t){const t=Bo().$implicit;Qr(1),Co("innerHtml",t.titre,Ki)}}function YN(t,e){if(1&t&&(Mo(0,"div",145),So(1,"img",42),Oo()),2&t){const t=Bo().$implicit;Qr(1),Co("src",t.url,Yi)}}const JN=function(t){return{draft:t}};function tU(t,e){if(1&t&&(So(0,"div",151),So(1,"div",152),Bl(2,"safe")),2&t){const t=Bo().$implicit,e=Bo(8);ea("ressource_infos_type bib_type res_"+t.type),Co("innerHtml",e.getResType(t.type_ressource_cdr),Ki),Qr(1),Co("innerHtml",Nl(2,5,t.titre,"html"),Ki)("ngClass",Il(8,JN,"0"==t.status))}}function eU(t,e){1&t&&(Mo(0,"a",149),xo(1,tU,3,10,"ng-template",150),Oo()),2&t&&Co("href",e.$implicit.lien,Yi)}function nU(t,e){if(1&t&&(Mo(0,"div",146),So(1,"div",144),Mo(2,"div",147),xo(3,eU,2,1,"a",148),Oo(),Oo()),2&t){const t=Bo().$implicit;Qr(1),Co("innerHtml",t.titre,Ki),Qr(2),Co("ngForOf",t.items)}}function iU(t,e){if(1&t&&(Mo(0,"div",111),Mo(1,"div"),da(2),Oo(),Oo()),2&t){const t=Bo().$implicit;Qr(2),ma("TODO component type ",t.component_type,"")}}function rU(t,e){if(1&t&&(Mo(0,"div"),ko(1,80),xo(2,EN,3,2,"div",106),xo(3,QN,8,6,"div",106),xo(4,KN,2,1,"div",107),xo(5,YN,2,1,"div",108),xo(6,nU,4,2,"div",109),xo(7,iU,3,1,"div",110),To(),Oo()),2&t){const t=e.$implicit;ea("recit-item-page-component component-"+t.component_type),Qr(1),Co("ngSwitch",t.component_type),Qr(1),Co("ngSwitchCase","paragraphe"),Qr(1),Co("ngSwitchCase","item_second"),Qr(1),Co("ngSwitchCase","intertitre"),Qr(1),Co("ngSwitchCase","image"),Qr(1),Co("ngSwitchCase","item_lie")}}const sU=function(t){return{bib_grid:t}},oU=function(t){return{snap:t}};function aU(t,e){if(1&t&&(ko(0),Mo(1,"div",83,76),Mo(3,"div",84),Mo(4,"div",85,86),xo(6,bN,1,3,"img",87),xo(7,wN,1,1,"img",88),Oo(),Mo(8,"div",89),Mo(9,"div",90),So(10,"div",91),Oo(),Oo(),Oo(),Oo(),Mo(11,"div",92),Mo(12,"div",10),Mo(13,"div"),ko(14,80),xo(15,ON,6,11,"div",93),xo(16,TN,6,10,"div",94),To(),Oo(),Mo(17,"div",95),xo(18,rU,8,8,"div",96),Oo(),Oo(),Oo(),To()),2&t){const t=Bo().$implicit,e=Bo().$implicit,n=Bo().$implicit,i=Bo(2);Qr(1),Co("ngClass",Il(18,hN,n.active)),yo("data-subseq",e.id)("data-item",t.main_item.id),Qr(2),Co("ngClass",Il(20,sU,"video"==t.main_item.type)),Qr(1),Co("ngClass",Il(22,PN,i.animating)),yo("data-itemid",t.main_item.id),Qr(2),Co("ngIf",t.main_item.image),Qr(1),Co("ngIf",t.main_item.video_preview),Qr(3),Co("innerHtml",t.main_item.titre,Ki),Qr(1),Co("ngClass",Il(24,hN,n.active)),yo("data-item",t.main_item.id),Qr(2),ea("recit-item-page-item recit-item-type-"+t.main_item.type),Qr(1),Co("ngSwitch",t.main_item.type),Qr(1),Co("ngSwitchCase","video"),Qr(1),Co("ngSwitchCase","image"),Qr(1),Co("ngClass",Il(26,oU,!i.scrolling)),Qr(1),Co("ngForOf",t.components)}}function lU(t,e){if(1&t&&(ko(0),Mo(1,"div",153,76),Mo(3,"div",10),Mo(4,"div",154),So(5,"div",155),Bl(6,"safe"),Oo(),Oo(),Oo(),To()),2&t){const t=Bo().$implicit,e=Bo().$implicit,n=Bo().$implicit;Qr(1),Co("ngClass",Il(7,hN,n.active)),yo("data-url",n.url)("data-subseq",e.id),Qr(4),Co("innerHtml",Nl(6,4,t.titre,"html"),Ki)}}function cU(t,e){1&t&&Eo(0)}function uU(t,e){if(1&t&&(ko(0),ko(1,80),xo(2,aU,19,28,"ng-container",81),xo(3,lU,7,9,"ng-container",81),xo(4,cU,1,0,"ng-container",82),To(),To()),2&t){const t=e.$implicit;Qr(1),Co("ngSwitch",t.type),Qr(1),Co("ngSwitchCase","bloc_editorial"),Qr(1),Co("ngSwitchCase","intertitre")}}function hU(t,e){if(1&t&&(ko(0),xo(1,xN,14,12,"div",74),xo(2,uU,5,3,"ng-container",13),To()),2&t){const t=e.$implicit;Qr(1),Co("ngIf",""!=t.recit.texte_intro),Qr(1),Co("ngForOf",t.recit.bloc_edits)}}function dU(t,e){if(1&t){const t=Io();ko(0),Mo(1,"div",61,62),Mo(3,"div",10),Mo(4,"div",63),Lo("click",function(){return Ae(t),Bo(2).backToMenu()}),da(5,"Toutes les s\xe9quences"),Oo(),Mo(6,"div",64),xo(7,yN,2,5,"div",65),Oo(),Mo(8,"div",66),So(9,"div",67),Bl(10,"safe"),So(11,"div",68),Bl(12,"safe"),Oo(),Mo(13,"div",69),Mo(14,"div",70),So(15,"div",71),Oo(),Mo(16,"div",72),da(17,"Faire d\xe9filer"),So(18,"br"),da(19,"pour parcourir la s\xe9quence"),Oo(),Oo(),Oo(),Oo(),xo(20,hU,3,2,"ng-container",13),To()}if(2&t){const t=e.$implicit;Qr(1),Co("ngClass",Il(13,hN,t.active)),yo("data-url",t.url)("data-id",t.id),Qr(6),Co("ngForOf",t.subsequences),Qr(2),Co("innerHtml",Nl(10,7,t.titre_html,"html"),Ki),Qr(2),Co("innerHtml",Nl(12,10,t.intro,"html"),Ki),Qr(9),Co("ngForOf",t.subsequences)}}function pU(t,e){if(1&t&&(ko(0),xo(1,dU,21,15,"ng-container",13),To()),2&t){const t=e.$implicit;Qr(1),Co("ngForOf",t.sequences)}}const mU=function(t){return{m:t}};function gU(t,e){if(1&t&&(So(0,"div",156),Bl(1,"safe")),2&t){const t=Bo();Jo("top:"+t.tooltipY+"px;left:"+t.tooltipX+"px;right:"+t.tooltipRight+"px;
147"),Co("ngClass",Il(7,mU,"m"==t.menuType&&!t.bigMenu))("innerHtml",Nl(1,4,t.currentHover.titre,"html"),Ki)}}function fU(t,e){if(1&t&&(So(0,"div",157),Bl(1,"safe")),2&t){const t=Bo();Jo("top:"+t.tooltipY+"px;left:"+t.tooltipX+"px;"),Co("innerHtml",Nl(1,3,t.currentSeqHover.titre,"html"),Ki)}}function _U(t,e){if(1&t){const t=Io();Mo(0,"app-carousel",158),Lo("fullscreen",function(){return Ae(t),Bo().doFS()}),Oo()}if(2&t){const t=Bo();Co("fs",!0)("centered",!0)("noticeLink",t.resourceCarouselLink)("data",t.resourceCarouselData)("res",!0)("blank",!0)("cssClass","_resource")}}const vU=function(t,e){return{snap:t,fade:e}},yU=function(t){return{fs:t}};let xU=(()=>{class t{constructor(t,e,n){this.platformId=t,this.cd=e,this.location=n,this.baseUrl="",this.launchSequence="",this.showIntroMenu=!0,this.fadeIn=!1,this.isItemIntro=!1,this.currentHover=null,this.currentSeqHover=null,this.history=[],this.scrolling=!1,this.animatingImg="",this.animating=!1,this.menuType="",this.lastMenuType="",this.bigMenu=!1,this.resourceCarouselData=[],this.fullscreen=!1}set recitData(t){if(this.data=t,""!=this.launchSequence)for(let e in t)for(let n in t[e].sequences)t[e].sequences[n].url.split("/").pop()==this.launchSequence&&this.goSequence(e,n)}ngOnInit(){}hoverSequence(t,e){"m"!=this.menuType||this.bigMenu?(this.tooltipX=t.clientX+15,this.tooltipRight="auto"):(this.tooltipRight=window.innerWidth-t.clientX+15,this.tooltipX="auto"),this.tooltipY=t.clientY+15,this.currentHover=e}hoverSubsequence(t,e){this.tooltipX=t.clientX+15,this.tooltipY=t.clientY+15,this.currentSeqHover=e}goSequence(t,e){this.currentSequence=this.data[t].sequences[e],this.scrolling=!0,this.break=!1,this.cd.detectChanges(),this.sequences.forEach(n=>{this.break||n.nativeElement.getAttribute("data-id")==this.currentSequence.id&&(this.break=!0,0==this.recitcont.nativeElement.scrollTop?(console.log("scroll trans"),this.doSequences(t,e),EE(n.nativeElement,{block:"start"}).then(()=>{this.scrolling=!1,this.cd.detectChanges()})):(console.log("fade trans"),this.fadeIn=!0,setTimeout(()=>{this.doSequences(t,e)},500),setTimeout(()=>{n.nativeElement.scrollIntoView({block:"start"})},600),setTimeout(()=>{this.scrolling=!1,this.fadeIn=!1,this.cd.detectChanges()},700)))})}doSequences(t,e){let n=!1;for(let i=0;i<this.data.length;i++)for(let r=0;r<this.data[i].sequences.length;r++)i==t&&r==e&&(n=!0),this.data[i].sequences[r].active=n}goItem(t){this.scrolling=!0,this.break=!1;for(let e of this.data)for(let n of e.sequences)for(let e of n.subsequences)if(e.recit.bloc_edits)for(let i of e.recit.bloc_edits)if(i.main_item&&i.main_item.id==t){this.currentSequence=n,this.currentItem=t;break}this.cd.detectChanges(),setTimeout(()=>{this.blocs.forEach(e=>{this.break||e.nativeElement.getAttribute("data-item")==t&&(this.break=!0,EE(e.nativeElement,{behavior:"auto",block:"start"}),setTimeout(()=>{this.scrolling=!1,this.cd.detectChanges()},100))})},250)}goSubSeq(t){this.scrolling=!0,this.break=!1,this.cd.detectChanges(),this.blocs.forEach(e=>{this.break||e.nativeElement.getAttribute("data-subseq")==t.id&&(this.break=!0,EE(e.nativeElement,{block:"start"}).then(()=>{this.scrolling=!1,this.cd.detectChanges()}))})}backToMenu(){this.scrolling=!0,this.cd.detectChanges(),EE(this.top.nativeElement).then(()=>{this.currentSequence=null,this.scrolling=!1,this.cd.detectChanges()})}recitScroll(t){if(Xu(this.platformId))return;let e=this.recitcont.nativeElement.scrollTop,n=!0;if(!this.lastScrollY)return void(this.lastScrollY=e);if(this.lastScrollY<e&&(n=!1),Math.abs(e-this.lastScrollY)<50)return;this.lastScrollY=e,window;let i=document.querySelectorAll(".recit-bloc.active"),r=null,s=null;i.forEach(t=>{let e=t.getBoundingClientRect();n?!s&&e.bottom>38&&e.bottom<=window.innerHeight&&(s=t):!r&&e.top<window.innerHeight&&e.top>=38&&(r=t)});let o=r||s;if(o){if(o!=this.lastBloc&&(this.lastBloc=o),"true"==o.getAttribute("data-menu")||"true"==o.getAttribute("data-nomenu")?(this.menuType="",this.lastMenuType=""):"true"==o.getAttribute("data-intro")?(this.menuType="m",this.lastMenuType="m"):(this.menuType="s",this.lastMenuType="s"),o.getAttribute("data-url")&&this.location.path()!=o.getAttribute("data-url")){this.location.go(o.getAttribute("data-url")),console.log("changing seq");for(let t of this.data)for(let e of t.sequences)e.url==o.getAttribute("data-url")&&(this.currentSequence=e)}if(this.isItemIntro="true"==o.getAttribute("data-isitemintro"),this.isItemIntro&&(this.lastAnimId=null),o.getAttribute("data-item")){let t=
147o.getAttribute("data-item");this.currentItem=t,-1==this.history.indexOf(t)&&this.history.push(t)}else this.currentItem=-1;if(!n&&!this.animating&&o.getAttribute("data-animationtrigger")&&!this.scrolling){if(this.lastAnimId==o.getAttribute("data-item"))return;this.lastAnimId=o.getAttribute("data-item"),this.itemcont.forEach(t=>{if(t.nativeElement.getAttribute("data-itemid")==o.getAttribute("data-item")){let e=t.nativeElement.querySelector(".recit-item-rel");this.animatingSizeGoal=[e.clientWidth,e.clientHeight],this.animatingCoordsGoal=[e.getBoundingClientRect().left,e.offsetTop]}}),this.itemvisuel.forEach(t=>{if(t.nativeElement.getAttribute("data-itemid")==o.getAttribute("data-item")){let e=t.nativeElement.querySelector(".recit-item-intro-img");this.animating=!0,this.animatingImg=e.getAttribute("src"),this.animatingCoords=[e.getBoundingClientRect().left,e.getBoundingClientRect().top],this.animatingSize=[e.clientWidth,e.clientHeight],this.animatingParams={value:"in",params:{s_left:this.animatingCoords[0],s_top:this.animatingCoords[1],s_width:this.animatingSize[0],s_height:this.animatingSize[1],g_left:this.animatingCoordsGoal[0],g_top:this.animatingCoordsGoal[1],g_width:this.animatingSizeGoal[0],g_height:this.animatingSizeGoal[1]}}}})}}}enterSmallMenu(){this.lastMenuType="s",this.menuType="m"}leaveMediumMenu(){this.menuType=this.lastMenuType}hasCaroussel(t){return"image"==t.type&&!!t.files&&Object.keys(t.files).length>1}getResType(t){if(!t)return"no";let e=Object.keys(t);return e.length>0?t[e[0]]:""}openCaroussel(t){let e=Object.keys(t.files);this.resourceCarouselData=[],this.resourceCarouselLink=t.lien;for(let n of e){let e=t.files[n].legend;""!=e&&(e+=" - "),e+="ID "+t.files[n].filename,this.resourceCarouselData.push({titre:"",legende:e,couleur_texte:"white",url:t.files[n].image_url,url_fs:t.files[n].image_url,visuel:{url:t.files[n].image_url},visuel_mobile:{url:t.files[n].image_url}})}this.doFS()}isFS(){return this.fullscreen}doFS(){this.fullscreen=!this.fullscreen,this.cd.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(nl),wo(wu))},t.\u0275cmp=Ut({type:t,selectors:[["app-visite-recit"]],viewQuery:function(t,e){if(1&t&&(nc(FB,1),nc(BB,1),nc(NB,1),nc(UB,1),nc(HB,1),nc(jB,1)),2&t){let t;ec(t=ic())&&(e.top=t.first),ec(t=ic())&&(e.recitcont=t.first),ec(t=ic())&&(e.sequences=t),ec(t=ic())&&(e.blocs=t),ec(t=ic())&&(e.itemcont=t),ec(t=ic())&&(e.itemvisuel=t)}},inputs:{baseUrl:"baseUrl",launchSequence:"launchSequence",recitData:"recitData"},decls:24,vars:40,consts:[["menu",""],["resourcebuttons",""],[1,"recit-cont",3,"ngClass","scroll"],["recitcont",""],["class","recit-anim",4,"ngIf"],[1,"recit-menu","medium",3,"ngClass","mouseleave"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"recit-menu","small",3,"ngClass","mouseenter"],[1,"recit-menu","big",3,"ngClass","click"],[1,"bib_grid_cont"],[1,"bib_grid"],[1,"recit-menu-cont"],["class","recit-bloc recit-menu fs","data-id","0","data-menu","true",3,"ngClass",4,"ngIf"],[4,"ngFor","ngForOf"],["class","recit-tooltip ignore_p_margin",3,"ngClass","innerHtml","style",4,"ngIf"],["class","recit-tooltip ignore_p_margin",3,"innerHtml","style",4,"ngIf"],[1,"paragraphe_fs_cont",3,"ngClass"],["fscont",""],[3,"fs","centered","noticeLink","data","res","blank","cssClass","fullscreen",4,"ngIf"],["class","menu-current-seq",4,"ngIf"],[1,"menu-floors"],["class","menu-floor",4,"ngFor","ngForOf"],[1,"menu-current-seq"],[1,"menu-current-seq-left"],[1,"menu-current-seq-name","ignore_p_margin",3,"innerHtml"],[1,"menu-current-seq-intro","ignore_p_margin"],["src","/assets/img/arrows_out.svg",3,"click",4,"ngIf"],["src","/assets/img/arrows_in.svg",3,"click",4,"ngIf"],["src","/assets/img/arrows_out.svg",3,"click"],["src","/assets/img/arrows_in.svg",3,"click"],[1,"menu-floor"],[1,"menu-floor-label"],[1,"bib_type","ignore_p_margin",3,"innerHtml"],[1,"bib_title4",3,"innerHtml"],[1,"menu-floor-sequences"],["class","menu-floor-sequence",3,"data-id","ngClass",4,"ngFor","ngForOf"],[1,"menu-floor-sequence",3,"data-id","ngClass"],["class","menu-floor-subseq",3,"click","mousemove","mouseover","mouseout",4,"ngFor","ngForOf"],[1,"menu-floor-subseq",3,"click","mousemove","mouseover","mouseout"],["class","menu-floor-item",3,"ngClass",4,"ngIf"],[1,"menu-floor-item",3,"ngClass"],[3,"src",4,"ngIf"],[3,"src"],[1,"item-second-bts"],["class","item-second-bt paragraphe_res_notice","target","_blank",3,"href",4,"ngIf"],["class","item-second-bt paragraphe_res_view","target","_blank",3,"href",4,"ngIf"],["class","item-second-bt paragraphe_res_caroussel desktop_only",3,"click",4,"ngIf"],["target","_blank",1,"item-second-bt","paragraphe_res_notice",3,"href"],["src","/assets/img/bt_notice.svg"],["src","/assets/img/bt_notice_hover.svg",1,"hover"],["target","_blank",1,"item-second-bt","paragraphe_res_view",3,"href"],["src","/assets/img/bt_eye.svg"],["src","/assets/img/bt_eye_hover.svg",1,"hover"],[1,"item-second-bt","paragraphe_res_caroussel","desktop_only",3,"click"],["src","/assets/img/bt_carrousel.svg"],["src","/assets/img/bt_carrousel_hover.svg",1,"hover"],[1,"recit-anim"],["data-id","0","data-menu","true",1,"recit-bloc","recit-menu","fs",3,"ngClass"],["top",""],[1,"recit-menu-start"],[1,"bib_button",3,"click"],["data-nomenu","true",1,"recit-bloc","recit-sequence","recit-seq-intro-cont",3,"ngClass"],["sequences",""],[1,"recit-seq-back",3,"click"],[1,"recit-seq-menu"],["class","recit-seq-menu-subseq",3,"ngClass","click","mousemove","mouseover","mouseout",4,"ngFor","ngForOf"],[1,"recit-seq-intro"],[1,"bib_title2","ignore_p_margin",3,"innerHtml"],[1,"recit-seq-intro-text","ignore_p_margin",3,"innerHtml"],[1,"recit-seq-cta"],[1,"center"],[1,"arrow"],[1,"cta-txt","bib_legende"],[1,"recit-seq-menu-subseq",3,"ngClass","click","mousemove","mouseover","mouseout"],["class","recit-bloc recit-subseq-intro","data-intro","true",3,"ngClass",4,"ngIf"],["data-intro","true",1,"recit-bloc","recit-subseq-intro",3,"ngClass"],["blocs",""],[1,"recit-subseq-intro-cont"],[1,"bib_title3","recit-subseq-intro-name",3,"innerHtml"],[1,"recit-subseq-intro-txt",3,"innerHtml"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["data-isitemintro","true",1,"recit-bloc",3,"ngClass"],[1,"recit-item-intro",3,"ngClass"],[1,"recit-item-intro-visuel",3,"ngClass"],["
147itemvisuel",""],["class","recit-item-intro-img",3,"src","style",4,"ngIf"],["class","recit-item-intro-img",3,"src",4,"ngIf"],[1,"recit-item-intro-name-cont"],[1,"recit-item-intro-name"],[1,"bib_title2",3,"innerHtml"],["data-animationtrigger","true",1,"recit-bloc","recit-item-page",3,"ngClass"],["class","recit-item-video-cont","data-type","video",3,"ngClass",4,"ngSwitchCase"],["class","recit-item-img-cont","data-type","img",3,"ngClass",4,"ngSwitchCase"],[1,"recit-item-page-components",3,"ngClass"],[3,"class",4,"ngFor","ngForOf"],[1,"recit-item-intro-img",3,"src"],["data-type","video",1,"recit-item-video-cont",3,"ngClass"],["itemcont",""],[1,"recit-item-rel"],[3,"url","previewUrl"],[1,"recit-item-sticky-title",3,"innerHtml"],["data-type","img",1,"recit-item-img-cont",3,"ngClass"],["class","recit-item-img-visuel",3,"src",4,"ngIf"],[1,"recit-item-img-visuel",3,"src"],["class","recit-item-component",4,"ngSwitchCase"],["class","recit-item-component recit-item-intertitre",4,"ngSwitchCase"],["class","recit-item-component recit-item-image",4,"ngSwitchCase"],["class","recit-item-component recit-item-component-lie",4,"ngSwitchCase"],["class","recit-item-component",4,"ngSwitchDefault"],[1,"recit-item-component"],[1,"bib_title3","ignore_p_margin","recit-paragraphe-title",3,"innerHtml"],[1,"ignore_p_margin",3,"innerHtml"],["class","item-second-img-cont",4,"ngSwitchCase"],["class","item-second-video-wrap",4,"ngSwitchCase"],["class","item-second-iframe-cont",4,"ngSwitchCase"],["class","item-second-pdf-wrap",4,"ngSwitchCase"],["class","item-second",4,"ngSwitchCase"],[1,"item-second-img-cont"],[1,"item-second-img-legende","ignore_p_margin"],[1,"bib_mentions","ignore_p_linebreak",3,"innerHtml"],[1,"bib_res_legende","ignore_p_linebreak",3,"innerHtml"],[1,"item-second-video-wrap"],[3,"resourceData","forceRatio"],["class","paragraphe_res_title bib_title4 ignore_p_margin",3,"innerHtml",4,"ngIf"],["class","paragraphe_res_legende bib_res_legende ignore_p_margin",3,"innerHtml",4,"ngIf"],[1,"paragraphe_res_title","bib_title4","ignore_p_margin",3,"innerHtml"],[1,"paragraphe_res_legende","bib_res_legende","ignore_p_margin",3,"innerHtml"],[1,"item-second-iframe-cont"],[1,"item-second-iframe-wrap"],[1,"iframe_res",3,"src"],[1,"item-second-pdf-wrap"],[3,"ngClass","src"],[1,"item-second"],["class","item-second-iframe-wrap audio",4,"ngIf"],["class","item-second-audio-wrap",4,"ngIf"],[1,"bib_res_legende","ignore_p_margin",3,"innerHtml"],[1,"item-second-iframe-wrap","audio"],[1,"item-second-audio-wrap"],[1,"item-second-audio-cont"],[1,"bib_title4","ignore_p_margin",3,"innerHtml"],[3,"data","inline"],[1,"recit-item-component","recit-item-intertitre"],[1,"bib_title3","ignore_p_margin",3,"innerHtml"],[1,"recit-item-component","recit-item-image"],[1,"recit-item-component","recit-item-component-lie"],[1,"recit-item-lies-cont"],["class","recit-item-lie","target","_blank",3,"href",4,"ngFor","ngForOf"],["target","_blank",1,"recit-item-lie",3,"href"],["nestedEllipsis",""],[3,"innerHtml"],[1,"ressource_infos_title","bib_title4","ignore_p_margin",3,"innerHtml","ngClass"],[1,"recit-bloc","recit-intertitre",3,"ngClass"],[1,"recit-intertitre-cont"],[1,"bib_title3",3,"innerHtml"],[1,"recit-tooltip","ignore_p_margin",3,"ngClass","innerHtml"],[1,"recit-tooltip","ignore_p_margin",3,"innerHtml"],[3,"fs","centered","noticeLink","data","res","blank","cssClass","fullscreen"]],template:function(t,e){if(1&t&&(xo(0,tN,3,2,"ng-template",null,0,ac),xo(2,rN,4,3,"ng-template",null,1,ac),Mo(4,"div",2,3),Lo("scroll",function(t){return e.recitScroll(t)}),xo(6,oN,2,2,"div",4),Mo(7,"div",5),Lo("mouseleave",function(){return e.leaveMediumMenu()}),xo(8,aN,1,0,"ng-container",6),Oo(),Mo(9,"div",7),Lo("mouseenter",function(){return e.enterSmallMenu()}),xo(10,lN,1,0,"ng-container",6),Oo(),Mo(11,"div",8),Lo("click",function(){return e.bigMenu=!1}),Mo(12,"div",9),Mo(13,"div",10),Mo(14,"div",11),xo(15,cN,1,0,"ng-container",6),Oo(),Oo(),Oo(),Oo(),Mo(16,"div",10),xo(17,pN,6,10,"div",12),Oo(),xo(18,pU,2,1,"ng-container",13),Oo(),xo(19,gU,2,9,"div",14),xo(20,fU,2,6,"div",15),Mo(21,"div",16,17),xo(23,_U,1,7,"app-carousel",18),Oo()),2&t){const t=bo(1);Qr(4),Co("ngClass",Al(17,vU,!e.scrolling,e.fadeIn)),Qr(2),Co("ngIf",e.animating),Qr(1),Co("ngClass",Il(20,PN,"m"!=e.menuType||e.bigMenu)),Qr(1),Co("ngTemplateOutlet",t)("ngTemplateOutletContext",zl(22,dN,e.data,e.history,e.currentItem)),Qr(1),Co("ngClass",Il(26,PN,"s"!=e.menuType||e.bigMenu)),Qr(1),Co("ngTemplateOutlet",t)("ngTemplateOutletContext",zl(28,dN,e.data,e.history,e.currentItem)),Qr(1),Co("ngClass",Il(32,PN,!e.bigMenu)),Qr(4),Co("ngTemplateOutlet",t)("ngTemplateOutletContext",zl(34,dN,e.data,e.history,e.currentItem)),Qr(2),Co("ngIf",e.data),Qr(1),Co("ngForOf",e.data),Qr(1),Co("ngIf",e.currentHover&&""!=e.currentHover.titre),Qr(1),Co("ngIf",e.currentSeqHover&&""!=e.currentSeqHover.titre),Qr(1),Co("ngClass",Il(38,yU,e.isFS())),Qr(2),Co("ngIf",e.isFS())}},directives:[Tu,zu,Hu,Iu,Fu,Bu,Nu,Eb,qC,nv,jC],pipes:[Sb],styles:['@charset "UTF-8";body[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:400;font-size:1.031rem;line-height:148%}@media (min-width:992px){body[_ngcontent-%COMP%]{font-size:calc(.8 * 1.125rem)}}@media (min-width:1024px){body[_ngcontent-%COMP%]{font-size:calc(.9 * 1.125rem)}}@media (min-width:1280px){body[_ngcontent-%COMP%]{font-size:1.125rem}}.bib_semibold[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:600;font-size:1.031rem;line-height:148%}@media (min-width:992px){.bib_semibold[_ngcontent-%COMP%]{font-size:calc(.8 * 1.125rem)}}@media (min-width:1024px){.bib_semibold[_ngcontent-%COMP%]{font-size:calc(.9 * 1.125rem)}}@media (min-width:1280px){.bib_semibold[_ngcontent-%COMP%]{font-size:1.125rem}}.bib_bold[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:700;font-size:1.031rem;line-height:148%}@media (min-width:992px){.bib_bold[_ngcontent-%COMP%]{font-size:calc(.8 * 1.125rem)}}@media (min-width:1024px){.bib_bold[_ngcontent-%COMP%]{font-size:calc(.9 * 1.125rem)}}@media (min-width:1280px){.bib_bold[_ngcontent-%COMP%]{font-size:1.125rem}}.bib_title1[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-weight:800;font-size:2.81rem;line-height:104%;text-transform:uppercase}@media (min-width:992px){.bib_title1[_ngcontent-%COMP%]{font-size:calc(.8 * 4.75rem)}}@media (min-width:1024px){.bib_title1[_ngcontent-%COMP%]{font-size:calc(.9 * 4.75rem)}}@media (min-width:1280px){.bib_title1[_ngcontent-%COMP%]{font-size:4.75rem}}.bib_title2[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-weight:800;font-size:1.93rem;line-height:104%;text-transform:uppercase}@media (min-width:992px){.bib_title2[_ngcontent-%COMP%]{font-size:calc(.8 * 2.93rem)}}@media (min-width:1024px){.bib_title2[_ngcontent-%COMP%]{font-size:calc(.9 * 2.93rem)}}@media (min-width:1280px){.bib_title2[_ngcontent-%COMP%]{font-size:2.93rem}}.bib_title3[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-weight:700;font-size:1.5rem;line-height:121%}@media (min-width:992px){.bib_title3[_ngcontent-%COMP%]{font-size:calc(.8 * 1.81rem)}}@media (min-width:1024px){.bib_title3[_ngcontent-%COMP%]{font-size:calc(.9 * 1.81rem)}}@media (min-width:1280px){.bib_title3[_ngcontent-%COMP%]{font-size:1.81rem}}
147.bib_title4[_ngcontent-%COMP%], .editor_h4[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-weight:700;font-size:1.09rem;line-height:127%}@media (min-width:992px){.bib_title4[_ngcontent-%COMP%], .editor_h4[_ngcontent-%COMP%]{font-size:calc(.8 * 1.18rem)}}@media (min-width:1024px){.bib_title4[_ngcontent-%COMP%], .editor_h4[_ngcontent-%COMP%]{font-size:calc(.9 * 1.18rem)}}@media (min-width:1280px){.bib_title4[_ngcontent-%COMP%], .editor_h4[_ngcontent-%COMP%]{font-size:1.18rem}}@media (min-width:992px){.bib_title4_desktop_only[_ngcontent-%COMP%]{font-size:calc(.8 * 1.18rem)}}@media (min-width:1024px){.bib_title4_desktop_only[_ngcontent-%COMP%]{font-size:calc(.9 * 1.18rem)}}@media (min-width:1280px){.bib_title4_desktop_only[_ngcontent-%COMP%]{font-size:1.18rem}}@media (min-width:992px){.bib_title4_desktop_only[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-weight:700;line-height:127%}}.bib_type[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:400;font-size:1rem;line-height:109.5%;letter-spacing:.075em;text-transform:uppercase}@media (min-width:992px){.bib_type[_ngcontent-%COMP%]{font-size:calc(.8 * 1.06rem)}}@media (min-width:1024px){.bib_type[_ngcontent-%COMP%]{font-size:calc(.9 * 1.06rem)}}@media (min-width:1280px){.bib_type[_ngcontent-%COMP%]{font-size:1.06rem}}.bib_type_bold[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:700;font-size:1rem;line-height:170%;letter-spacing:.075em;text-transform:uppercase}@media (min-width:992px){.bib_type_bold[_ngcontent-%COMP%]{font-size:calc(.8 * 1.06rem)}}@media (min-width:1024px){.bib_type_bold[_ngcontent-%COMP%]{font-size:calc(.9 * 1.06rem)}}@media (min-width:1280px){.bib_type_bold[_ngcontent-%COMP%]{font-size:1.06rem}}.bib_type_big[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:600;font-size:1.5rem;line-height:170%;letter-spacing:.075em;text-transform:uppercase}@media (min-width:992px){.bib_type_big[_ngcontent-%COMP%]{font-size:calc(.8 * 1.81rem)}}@media (min-width:1024px){.bib_type_big[_ngcontent-%COMP%]{font-size:calc(.9 * 1.81rem)}}@media (min-width:1280px){.bib_type_big[_ngcontent-%COMP%]{font-size:1.81rem}}.bib_tags[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:600;font-size:1.06rem;line-height:110%}@media (min-width:992px){.bib_tags[_ngcontent-%COMP%]{font-size:calc(.8 * 1.125rem)}}@media (min-width:1024px){.bib_tags[_ngcontent-%COMP%]{font-size:calc(.9 * 1.125rem)}}@media (min-width:1280px){.bib_tags[_ngcontent-%COMP%]{font-size:1.125rem}}.bib_event_title[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-weight:700;font-size:1.93rem;line-height:104%}@media (min-width:992px){.bib_event_title[_ngcontent-%COMP%]{font-size:calc(.8 * 2.93rem)}}@media (min-width:1024px){.bib_event_title[_ngcontent-%COMP%]{font-size:calc(.9 * 2.93rem)}}@media (min-width:1280px){.bib_event_title[_ngcontent-%COMP%]{font-size:2.93rem}}.bib_mentions[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:400;font-size:1rem;line-height:129.5%}@media (min-width:992px){.bib_mentions[_ngcontent-%COMP%]{font-size:calc(.8 * 1rem)}}@media (min-width:1024px){.bib_mentions[_ngcontent-%COMP%]{font-size:calc(.9 * 1rem)}}@media (min-width:1280px){.bib_mentions[_ngcontent-%COMP%]{font-size:1rem}}.bib_date[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:300;font-size:1.18rem;line-height:170%;text-transform:uppercase}@media (min-width:992px){.bib_date[_ngcontent-%COMP%]{font-size:calc(.8 * 1.25rem)}}@media (min-width:1024px){.bib_date[_ngcontent-%COMP%]{font-size:calc(.9 * 1.25rem)}}@media (min-width:1280px){.bib_date[_ngcontent-%COMP%]{font-size:1.25rem}}.bib_button[_ngcontent-%COMP%], .editor_button[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:600;font-size:1.06rem;line-height:110%;text-transform:uppercase;display:inline-block}@media (min-width:992px){.bib_button[_ngcontent-%COMP%], .editor_button[_ngcontent-%COMP%]{font-size:calc(.8 * 1.125rem)}}@media (min-width:1024px){.bib_button[_ngcontent-%COMP%], .editor_button[_ngcontent-%COMP%]{font-size:calc(.9 * 1.125rem)}}@media (min-width:1280px){.bib_button[_ngcontent-%COMP%], .editor_button[_ngcontent-%COMP%]{font-size:1.125rem}}.bib_legende[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:400;font-size:.875rem;line-height:148%;text-transform:uppercase}@media (min-width:992px){.bib_legende[_ngcontent-%COMP%]{font-size:calc(.8 * .875rem)}}@media (min-width:1024px){.bib_legende[_ngcontent-%COMP%]{font-size:calc(.9 * .875rem)}}@media (min-width:1280px){.bib_legende[_ngcontent-%COMP%]{font-size:.875rem}}.bib_res_legende[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:400;font-size:.9375rem;line-height:125%;color:#838383}@media (min-width:992px){.bib_res_legende[_ngcontent-%COMP%]{font-size:calc(.8 * .9375rem)}}@media (min-width:1024px){.bib_res_legende[_ngcontent-%COMP%]{font-size:calc(.9 * .9375rem)}}@media (min-width:1280px){.bib_res_legende[_ngcontent-%COMP%]{font-size:.9375rem}}@media (min-width:992px){.bib_menuitem[_ngcontent-%COMP%]{font-size:calc(.8 * 1rem)}}@media (min-width:1024px){.bib_menuitem[_ngcontent-%COMP%]{font-size:calc(.9 * 1rem)}}@media (min-width:1280px){.bib_menuitem[_ngcontent-%COMP%]{font-size:1rem}}a.editor_link[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:400;-webkit-text-decoration-line:underline;text-decoration-line:underline}@media (min-width:992px){a.editor_link[_ngcontent-%COMP%]{font-size:calc(.8 * 1.125rem)}}@media (min-width:1024px){a.editor_link[_ngcontent-%COMP%]{font-size:calc(.9 * 1.125rem)}}@media (min-width:1280px){a.editor_link[_ngcontent-%COMP%]{font-size:1.125rem}}a.editor_link[_ngcontent-%COMP%]:hover{font-weight:700}a.editor_button[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-weight:400;text-decoration:none;text-transform:uppercase;padding:1.06rem 1.56rem;margin-top:1.375rem;margin-bottom:1.375rem;text-align:center;line-height:120%;border:1px solid #131313}@media (min-width:992px){a.editor_button[_ngcontent-%COMP%]{font-size:calc(.8 * 1.125rem)}}@media (min-width:1024px){a.editor_button[_ngcontent-%COMP%]{font-size:calc(.9 * 1.125rem)}}@media (min-width:1280px){a.editor_button[_ngcontent-%COMP%]{font-size:1.125rem}}a.editor_button[_ngcontent-%COMP%]:hover{background-color:#131313;color:#fff}.colored[_ngcontent-%COMP%]   a.editor_button[_ngcontent-%COMP%]{border:1px solid #fff}.colored[_ngcontent-%COMP%]   a.editor_button[_ngcontent-%COMP%]:hover{background-color:#fff;color:#000}.recit-menu[_ngcontent-%COMP%]{position:absolute;top:0;right:0;transition:opacity .25s cubic-bezier(.55,.085,.68,.53)}.recit-menu.hidden[_ngcontent-%COMP%]{opacity:0;pointer-events:none}.recit-menu[_ngcontent-%COMP%]   .menu-current-seq[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-end;align-items:center;margin-bottom:.9375rem}.recit-menu[_ngcontent-%COMP%]   .menu-current-seq[_ngcontent-%COMP%]   .menu-current-seq-left[_ngcontent-%COMP%]{margin-right:10px}.recit-menu[_ngcontent-%COMP%]   .menu-current-seq[_ngcontent-%COMP%]   .menu-current-seq-left[_ngcontent-%COMP%]   .menu-current-seq-name[_ng
147content-%COMP%]{font-weight:800;text-transform:uppercase;font-size:1.125rem;line-height:1.125rem;color:#fff}.recit-menu[_ngcontent-%COMP%]   .menu-current-seq[_ngcontent-%COMP%]   .menu-current-seq-left[_ngcontent-%COMP%]   .menu-current-seq-intro[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.125rem;color:#fff;text-align:right}.recit-menu[_ngcontent-%COMP%]   .menu-current-seq[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{cursor:pointer}.recit-menu[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]{flex-basis:100%;display:flex}.recit-menu[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]   .menu-floor[_ngcontent-%COMP%]{margin-right:48px}.recit-menu[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]   .menu-floor[_ngcontent-%COMP%]:last-child{margin-right:0}.recit-menu[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]   .menu-floor-label[_ngcontent-%COMP%]{display:none;align-items:flex-end;color:#fff;margin-bottom:15px}.recit-menu[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]   .menu-floor-label[_ngcontent-%COMP%]   .bib_type[_ngcontent-%COMP%]{margin-right:10px}.recit-menu[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]   .menu-floor-sequences[_ngcontent-%COMP%]{display:flex}.recit-menu[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]   .menu-floor-sequence[_ngcontent-%COMP%]{display:flex;align-items:flex-start;margin-right:20px;cursor:pointer;transition:opacity .25s cubic-bezier(.55,.085,.68,.53)}.recit-menu[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]   .menu-floor-sequence[_ngcontent-%COMP%]:last-child{margin-right:0}.recit-menu[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]   .menu-floor-sequence.fade[_ngcontent-%COMP%]{opacity:.3}.recit-menu[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]   .menu-floor-subseq[_ngcontent-%COMP%]{width:30px}.recit-menu[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]   .menu-floor-subseq[_ngcontent-%COMP%]:last-child{width:26px}.recit-menu[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]   .menu-floor-item[_ngcontent-%COMP%]{width:26px;margin-bottom:4px;margin-right:4px;display:flex;justify-content:center}.recit-menu[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]   .menu-floor-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.recit-menu[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]   .menu-floor-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;max-width:100%;max-height:26px}.recit-menu[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]   .menu-floor-item.noimg[_ngcontent-%COMP%]{height:26px;background-color:#c4c4c4}.recit-menu.small[_ngcontent-%COMP%]{padding:10px;background-color:#1d1d1d;z-index:5}.recit-menu.small[_ngcontent-%COMP%]   .menu-current-seq[_ngcontent-%COMP%]{display:none}.recit-menu.small[_ngcontent-%COMP%]   .menu-floor[_ngcontent-%COMP%]{margin-right:0!important}.recit-menu.small[_ngcontent-%COMP%]   .menu-floor-sequence[_ngcontent-%COMP%]:not(.current){display:none}.recit-menu.small[_ngcontent-%COMP%]   .menu-floor-subseq[_ngcontent-%COMP%]{width:12px!important}.recit-menu.small[_ngcontent-%COMP%]   .menu-floor-item[_ngcontent-%COMP%]{width:11px!important;height:11px!important;margin-bottom:1px!important;margin-right:0!important;background-color:#999}.recit-menu.medium[_ngcontent-%COMP%]{padding:30px 15px 10px 10px;background-color:#1d1d1d;z-index:5}.recit-menu.medium[_ngcontent-%COMP%]   .menu-floors[_ngcontent-%COMP%]{justify-content:flex-end;padding-right:44px}.recit-menu.medium[_ngcontent-%COMP%]   .menu-floor[_ngcontent-%COMP%]{margin-right:6px!important}.recit-menu.medium[_ngcontent-%COMP%]   .menu-floor[_ngcontent-%COMP%]:last-child{margin-right:0!important}.recit-menu.medium[_ngcontent-%COMP%]   .menu-floor-sequence[_ngcontent-%COMP%]{margin-right:6px!important}.recit-menu.medium[_ngcontent-%COMP%]   .menu-floor-sequence[_ngcontent-%COMP%]:last-child{margin-right:0!important}.recit-menu.medium[_ngcontent-%COMP%]   .menu-floor-subseq[_ngcontent-%COMP%]{width:7px!important}.recit-menu.medium[_ngcontent-%COMP%]   .menu-floor-item[_ngcontent-%COMP%]{width:6px!important;height:6px!important;margin-bottom:1px!important;margin-right:0!important;background-color:#999}
147.recit-menu.medium[_ngcontent-%COMP%]   .menu-floor-item.seen[_ngcontent-%COMP%], .recit-menu.small[_ngcontent-%COMP%]   .menu-floor-item.seen[_ngcontent-%COMP%]{background-color:#474747!important}.recit-menu.medium[_ngcontent-%COMP%]   .menu-floor-item.noimg[_ngcontent-%COMP%], .recit-menu.small[_ngcontent-%COMP%]   .menu-floor-item.noimg[_ngcontent-%COMP%]{background-color:#999!important}.recit-menu.medium[_ngcontent-%COMP%]   .menu-floor-item.current[_ngcontent-%COMP%], .recit-menu.small[_ngcontent-%COMP%]   .menu-floor-item.current[_ngcontent-%COMP%]{background-color:#fff!important}.recit-menu.big[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 38px);background-color:#000c;z-index:5}.recit-menu.big[_ngcontent-%COMP%]   .bib_grid_cont[_ngcontent-%COMP%]{width:100%;padding:30px 0 60px;background-color:#131313!important;background-image:url(/assets/img/courbes_niveau.png);background-position:top;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}.recit-menu.big[_ngcontent-%COMP%]   .recit-menu-cont[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13}.recit-menu.big[_ngcontent-%COMP%]   .menu-floor-label[_ngcontent-%COMP%]{display:flex!important}.recit-menu.big[_ngcontent-%COMP%]   .menu-current-seq-left[_ngcontent-%COMP%]{display:none}.recit-menu.fs[_ngcontent-%COMP%]{display:none;box-sizing:border-box;position:relative;height:calc(100vh - 38px);opacity:1;grid-column-start:1;grid-column-end:13}.recit-menu.fs[_ngcontent-%COMP%]   .menu-current-seq[_ngcontent-%COMP%]{display:none}.recit-menu.fs[_ngcontent-%COMP%]   .menu-floor-label[_ngcontent-%COMP%]{display:flex!important}.recit-menu.fs.active[_ngcontent-%COMP%]{display:flex;align-items:center}.recit-menu[_ngcontent-%COMP%]:not(.fs):not(.big)   .menu-floor-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:none}.recit-menu[_ngcontent-%COMP%]   .recit-menu-start[_ngcontent-%COMP%]{position:absolute;bottom:80px;left:0;width:100%;text-align:center}.recit-menu[_ngcontent-%COMP%]   .recit-menu-start[_ngcontent-%COMP%]   .bib_button[_ngcontent-%COMP%]{cursor:pointer;text-transform:uppercase;padding:1.0625rem 1.5625rem;background-color:#9ab400;color:#fff;font-weight:400}.recit-tooltip[_ngcontent-%COMP%]{position:fixed;z-index:9;padding:2px 15px;background-color:#fff;border-radius:33px;font-weight:700;font-family:Poppins,sans-serif;font-size:1rem;line-height:127%}.recit-tooltip.m[_ngcontent-%COMP%]{text-align:right;font-weight:400}.recit-cont[_ngcontent-%COMP%]{height:calc(100vh - 38px);opacity:1;transition:opacity .5s ease-in-out;overflow-x:hidden;overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none}.recit-cont.snap[_ngcontent-%COMP%]{scroll-snap-type:y mandatory}.recit-cont.fade[_ngcontent-%COMP%]{opacity:0}.recit-cont[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.recit-bloc[_ngcontent-%COMP%]{scroll-snap-align:start;scroll-snap-stop:always;display:none;min-height:calc(100vh - 38px)}.recit-bloc.active[_ngcontent-%COMP%]{display:block}.recit-sequence[_ngcontent-%COMP%]{color:#fff}.recit-sequence[_ngcontent-%COMP%]   .bib_grid[_ngcontent-%COMP%]{position:relative;min-height:calc(100vh - 38px);grid-template-rows:150px auto 127px 30px}.recit-sequence[_ngcontent-%COMP%]   .recit-seq-menu[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:6;grid-row-start:2;grid-row-end:3;position:sticky;display:flex;align-items:flex-start}.recit-sequence[_ngcontent-%COMP%]   .recit-seq-menu[_ngcontent-%COMP%]   .recit-seq-menu-subseq[_ngcontent-%COMP%]{cursor:pointer;transition:opacity .25s cubic-bezier(.55,.085,.68,.53)}.recit-sequence[_ngcontent-%COMP%]   .recit-seq-menu[_ngcontent-%COMP%]   .recit-seq-menu-subseq.fade[_ngcontent-%COMP%]{opacity:.3}.recit-sequence[_ngcontent-%COMP%]   .recit-seq-menu[_ngcontent-%COMP%]   .menu-floor-item[_ngcontent-%COMP%]{width:64px;margin-bottom:10px;margin-right:10px;display:flex;justify-content:center}.recit-sequence[_ngcontent-%COMP%]   .recit-seq-menu[_ngcontent-%COMP%]   .menu-floor-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;display:block;max-height:64px}.recit-sequence[_ngcontent-%COMP%]   .recit-seq-menu[_ngcontent-%COMP%]   .menu-floor-item.noimg[_ngcontent-%COMP%]{height:64px;background-color:#c4c4c4}.recit-sequence[_ngcontent-%COMP%]   .recit-seq-intro[_ngcontent-%COMP%]{grid-column-start:6;grid-column-end:13;grid-row-start:2;grid-row-end:3}.recit-sequence[_ngcontent-%COMP%]   .recit-seq-intro[_ngcontent-%COMP%]   .recit-seq-intro-text[_ngcontent-%COMP%]{margin:50px 0}.recit-sequence[_ngcontent-%COMP%]   .recit-seq-back[_ngcontent-%COMP%]{color:#fff;grid-column-start:1;grid-column-end:6;grid-row-start:1;grid-row-end:2;padding-top:30px;cursor:pointer;line-height:148%;text-decoration:underline;font-weight:400}@media (min-width:992px){.recit-sequence[_ngcontent-%COMP%]   .recit-seq-back[_ngcontent-%COMP%]{font-size:calc(.8 * 1rem)}}@media (min-width:1024px){.recit-sequence[_ngcontent-%COMP%]   .recit-seq-back[_ngcontent-%COMP%]{font-size:calc(.9 * 1rem)}}@media (min-width:1280px){.recit-sequence[_ngcontent-%COMP%]   .recit-seq-back[_ngcontent-%COMP%]{font-size:1rem}}.recit-sequence[_ngcontent-%COMP%]   .recit-seq-back[_ngcontent-%COMP%]:before{content:"\xa0";display:inline-block;margin-right:9px;width:14px;background-image:url(/assets/img/fleche_back.svg);background-size:100% auto;background-position:50%;background-repeat:no-repeat}.recit-item-intro[_ngcontent-%COMP%]{position:relative;min-height:calc(100vh - 38px);color:#fff;display:flex;align-items:center}.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-visuel[_ngcontent-%COMP%]{width:100%;text-align:center}.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-visuel[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%}.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-visuel.hidden[_ngcontent-%COMP%]{opacity:0}
147.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-name-cont[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%}.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-name-cont[_ngcontent-%COMP%]   .recit-item-intro-name[_ngcontent-%COMP%]{position:sticky;top:0;left:0;height:100vh;display:flex;align-items:center;justify-content:center}.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-name-cont[_ngcontent-%COMP%]   .recit-item-intro-name[_ngcontent-%COMP%]   .bib_title2[_ngcontent-%COMP%]{text-align:center;box-sizing:border-box;padding-left:20px;padding-right:20px}@media (min-width:500px){.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-name-cont[_ngcontent-%COMP%]   .recit-item-intro-name[_ngcontent-%COMP%]   .bib_title2[_ngcontent-%COMP%]{padding-left:40px}}@media (min-width:992px){.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-name-cont[_ngcontent-%COMP%]   .recit-item-intro-name[_ngcontent-%COMP%]   .bib_title2[_ngcontent-%COMP%]{padding-left:20px}}@media (min-width:1024px){.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-name-cont[_ngcontent-%COMP%]   .recit-item-intro-name[_ngcontent-%COMP%]   .bib_title2[_ngcontent-%COMP%]{padding-left:40px}}@media (min-width:1280px){.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-name-cont[_ngcontent-%COMP%]   .recit-item-intro-name[_ngcontent-%COMP%]   .bib_title2[_ngcontent-%COMP%]{padding-left:60px}}@media (min-width:1440px){.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-name-cont[_ngcontent-%COMP%]   .recit-item-intro-name[_ngcontent-%COMP%]   .bib_title2[_ngcontent-%COMP%]{padding-left:calc((100% - 1320px) / 2)}}@media (min-width:500px){.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-name-cont[_ngcontent-%COMP%]   .recit-item-intro-name[_ngcontent-%COMP%]   .bib_title2[_ngcontent-%COMP%]{padding-right:40px}}@media (min-width:992px){.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-name-cont[_ngcontent-%COMP%]   .recit-item-intro-name[_ngcontent-%COMP%]   .bib_title2[_ngcontent-%COMP%]{padding-right:20px}}@media (min-width:1024px){.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-name-cont[_ngcontent-%COMP%]   .recit-item-intro-name[_ngcontent-%COMP%]   .bib_title2[_ngcontent-%COMP%]{padding-right:40px}}@media (min-width:1280px){.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-name-cont[_ngcontent-%COMP%]   .recit-item-intro-name[_ngcontent-%COMP%]   .bib_title2[_ngcontent-%COMP%]{padding-right:60px}}@media (min-width:1440px){.recit-item-intro[_ngcontent-%COMP%]   .recit-item-intro-name-cont[_ngcontent-%COMP%]   .recit-item-intro-name[_ngcontent-%COMP%]   .bib_title2[_ngcontent-%COMP%]{padding-right:calc((100% - 1320px) / 2)}}.recit-item-intro.bib_grid[_ngcontent-%COMP%]{align-items:center}.recit-item-intro.bib_grid[_ngcontent-%COMP%]   .recit-item-intro-visuel[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7;padding:60px;height:calc(100vh - 38px);text-align:center;box-sizing:border-box}.recit-item-intro.bib_grid[_ngcontent-%COMP%]   .recit-item-intro-visuel[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:auto;height:100%;max-width:100%;object-fit:contain}.recit-item-intro.bib_grid[_ngcontent-%COMP%]   .recit-item-intro-name[_ngcontent-%COMP%]{position:relative;top:unset;left:unset;transform:unset;grid-column-start:7;grid-column-end:13}.recit-item-page[_ngcontent-%COMP%]{color:#fff}.recit-item-page-item[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7;position:sticky;top:0;height:calc(100vh - 38px);display:flex;align-items:center;justify-content:center}.recit-item-page-item[_ngcontent-%COMP%]   .recit-item-img-cont[_ngcontent-%COMP%]{opacity:1;height:calc(100% - 158px);display:flex;align-items:center;justify-content:center;flex-direction:column}.recit-item-page-item[_ngcontent-%COMP%]   .recit-item-img-cont[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;max-height:calc(100vh - 218px)}.recit-item-page-item[_ngcontent-%COMP%]   .recit-item-img-cont.hidden[_ngcontent-%COMP%]{opacity:0}.recit-item-page-item[_ngcontent-%COMP%]   .recit-item-video-cont[_ngcontent-%COMP%]{opacity:1;height:calc(100% - 158px);display:flex;align-items:center;justify-content:center;flex-direction:column}.recit-item-page-item[_ngcontent-%COMP%]   .recit-item-video-cont.hidden[_ngcontent-%COMP%]{opacity:0}
147.recit-anim[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:contain;width:100%;height:100%}.recit-item-sticky-title[_ngcontent-%COMP%]{margin-top:30px;font-family:Poppins;font-size:1.1875rem;font-weight:800;line-height:20px;letter-spacing:0;text-transform:uppercase;width:100%;text-align:left}.recit-item-page-components[_ngcontent-%COMP%]{grid-column-start:7;grid-column-end:13}.recit-item-page-components[_ngcontent-%COMP%]   .recit-item-page-component[_ngcontent-%COMP%]{scroll-snap-align:start;scroll-snap-stop:always;width:100%;min-height:calc(100vh - 38px);display:flex;align-items:center}.item-second-img-cont[_ngcontent-%COMP%], .item-second-pdf-wrap[_ngcontent-%COMP%], .recit-item-image[_ngcontent-%COMP%]{display:inline-block;position:relative}.item-second-img-cont[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .item-second-pdf-wrap[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .recit-item-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:calc(100vh - 218px);max-width:100%}.recit-item-component[_ngcontent-%COMP%]{width:100%;position:relative}.recit-item-rel[_ngcontent-%COMP%]{max-height:calc(100vh - 218px);max-width:100%;position:relative}.item-second-bts[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px;display:flex}.item-second-bts[_ngcontent-%COMP%]   .item-second-bt[_ngcontent-%COMP%]{width:50px;height:50px;cursor:pointer;margin-right:10px}.item-second-bts[_ngcontent-%COMP%]   .item-second-bt[_ngcontent-%COMP%]:last-child{margin-right:0}.item-second-bts[_ngcontent-%COMP%]   .item-second-bt[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.item-second-bts[_ngcontent-%COMP%]   .item-second-bt[_ngcontent-%COMP%]   img.hover[_ngcontent-%COMP%]{display:none}@media (min-width:992px){.item-second-bts[_ngcontent-%COMP%]   .item-second-bt[_ngcontent-%COMP%]:hover   img.hover[_ngcontent-%COMP%]{display:block}.item-second-bts[_ngcontent-%COMP%]   .item-second-bt[_ngcontent-%COMP%]:hover   img[_ngcontent-%COMP%]:not(.hover){display:none}}.recit-paragraphe-title[_ngcontent-%COMP%]{margin-bottom:1.25rem}.recit-item-component-lie[_ngcontent-%COMP%]{width:100%}.recit-item-component-lie[_ngcontent-%COMP%]   .bib_title3[_ngcontent-%COMP%]{margin-bottom:3.75rem}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:-50px}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]{text-decoration:none;flex-basis:calc(3 * ((100vw - 40px - 77px) / 12) + calc(2 * 7px));width:calc(3 * ((100vw - 40px - 77px) / 12) + calc(2 * 7px));flex-grow:0;background-color:#8b8472;color:#fff;padding:23px 30px;margin-bottom:50px;box-sizing:border-box;min-height:154px;max-height:154px;height:154px;overflow:hidden;transition:background-color .25s cubic-bezier(.55,.085,.68,.53)}@media (min-width:992px){.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]{flex-basis:calc(calc(3 + 2) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]{flex-basis:calc(calc(3 + 2) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]{flex-basis:calc(calc(3 + 2) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]{flex-basis:calc(calc(55px * 3) + calc(60px * 2))}}@media (min-width:992px){.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]{width:calc(calc(3 + 2) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]{width:calc(calc(3 + 2) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]{width:calc(calc(3 + 2) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]{width:calc(calc(55px * 3) + calc(60px * 2))}}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .ressource_infos_title[_ngcontent-%COMP%]{margin-bottom:.35rem}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .ressource_infos_type[_ngcontent-%COMP%]{margin-bottom:5px}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .ressource_infos_type[_ngcontent-%COMP%]:before{display:inline-block;content:"\xa0";width:22px;height:23px;background-size:100%;background-repeat:no-repeat;margin-right:5px;position:relative;bottom:2px;margin-top:2px}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .ressource_infos_type.res_image[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_image.svg)}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .ressource_infos_type.res_video[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_video.svg)}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .ressource_infos_type.res_audio[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_audio.svg)}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .ressource_infos_type.res_html[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_html.svg)}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .ressource_infos_type.res_pdf[_ng
147content-%COMP%]:before{background-image:url(/assets/img/res_pdf.svg)}@media (min-width:992px){.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]:hover   .ressource_infos_type.res_image[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_image_hover.svg)}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]:hover   .ressource_infos_type.res_video[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_video_hover.svg)}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]:hover   .ressource_infos_type.res_audio[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_audio_hover.svg)}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]:hover   .ressource_infos_type.res_html[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_html_hover.svg)}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]:hover   .ressource_infos_type.res_pdf[_ngcontent-%COMP%]:before{background-image:url(/assets/img/res_pdf_hover.svg)}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]:hover   .ressource_infos_type[_ngcontent-%COMP%]:before{background-image:url(/assets/img/nb_res_hover.svg)}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]:hover{background-color:#fff;color:#131313}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]:hover   .ressource_infos_type[_ngcontent-%COMP%]{color:#8b8472!important}.recit-item-component-lie[_ngcontent-%COMP%]   .recit-item-lies-cont[_ngcontent-%COMP%]   .recit-item-lie[_ngcontent-%COMP%]:hover   .ressource_infos_title[_ngcontent-%COMP%]{color:#000}}.item-second[_ngcontent-%COMP%]{width:100%}.item-second-audio-cont[_ngcontent-%COMP%]{box-sizing:border-box;color:#fff;background-color:#2e2e2e;display:flex;flex-direction:column;justify-content:space-between}@media (min-width:992px){.item-second-audio-cont[_ngcontent-%COMP%]{padding-bottom:10px}}.item-second-audio-cont[_ngcontent-%COMP%]   .bib_title4[_ngcontent-%COMP%]{padding:10px 54px 0 10px}@media (min-width:992px){.item-second-audio-cont[_ngcontent-%COMP%]   .bib_title4[_ngcontent-%COMP%]{font-size:1.1875rem;padding:30px 90px 10px 30px}}.item-second-iframe-wrap[_ngcontent-%COMP%]{position:relative;width:100%;padding-top:56.25%}.item-second-iframe-wrap.audio[_ngcontent-%COMP%]{padding-top:100%}@media (min-width:992px){.item-second-iframe-wrap.audio[_ngcontent-%COMP%]{padding-top:0}}.item-second-iframe-wrap[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%}@media (min-width:992px){.item-second-iframe-wrap[_ngcontent-%COMP%]{width:100%;padding-top:0;aspect-ratio:16/9}.item-second-iframe-wrap[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%]{position:relative}}.item-second-iframe-wrap[_ngcontent-%COMP%]   .iframe_res[_ngcontent-%COMP%]{width:100%;height:100%}.paragraphe_fs_cont[_ngcontent-%COMP%]{background-color:#2e2e2e;display:flex;align-items:center}.paragraphe_fs_cont.fs[_ngcontent-%COMP%]{position:fixed;top:0;left:0;height:100vh;width:100vw;z-index:1000}.recit-intertitre[_ngcontent-%COMP%]{min-height:calc(100vh - 38px)}.recit-intertitre[_ngcontent-%COMP%]   .bib_titre3[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;text-align:center}.recit-intertitre[_ngcontent-%COMP%]   .bib_grid[_ngcontent-%COMP%]{height:calc(100vh - 38px);align-items:center;color:#fff}.recit-intertitre[_ngcontent-%COMP%]   .bib_grid[_ngcontent-%COMP%]   .recit-intertitre-cont[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;height:100%;display:flex;align-items:center}.recit-intertitre[_ngcontent-%COMP%]   .bib_grid[_ngcontent-%COMP%]   .recit-intertitre-cont[_ngcontent-%COMP%]   .bib_title3[_ngcontent-%COMP%]{text-align:center}.recit-subseq-intro-cont[_ngcontent-%COMP%]{height:calc(100vh - 38px);max-width:630px;margin:0 auto;color:#fff;display:flex;flex-direction:column;justify-content:center}.recit-subseq-intro-cont[_ngcontent-%COMP%]   .recit-subseq-intro-name[_ng
147content-%COMP%]{margin-top:auto;margin-bottom:60px}.recit-subseq-intro-cont[_ngcontent-%COMP%]   .recit-seq-cta[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:30px}.recit-seq-cta[_ngcontent-%COMP%]{grid-row-start:3;grid-row-end:4;grid-column-start:1;grid-column-end:13;text-align:center;position:relative;display:flex;align-items:flex-end;justify-content:center}.recit-seq-cta[_ngcontent-%COMP%]   .cta-txt[_ngcontent-%COMP%]{margin-top:87px;text-transform:none!important}.recit-seq-cta[_ngcontent-%COMP%]   .center[_ngcontent-%COMP%]{position:absolute;top:0;left:50%;transform:translate(-50%);width:0;height:70px;border-left:6px dashed #ffffff1a}.recit-seq-cta[_ngcontent-%COMP%]   .center[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{position:absolute;top:0;left:-5px;height:25px;width:4px;background:#fff;animation:animate 2s infinite}.recit-seq-cta[_ngcontent-%COMP%]   .center[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]:before{content:"";position:absolute;bottom:0;left:-5px;width:10px;height:10px;border-bottom:4px solid #fff;border-right:4px solid #fff;transform:rotate(45deg)}@keyframes animate{0%{transform:translateY(0);opacity:.5}50%{transform:translateY(30px);opacity:1}to{transform:translateY(60px);opacity:0}}'],data:{animation:[Kb]}}),t})();const bU=["galaxy"],wU=["recit"];function CU(t,e){if(1&t){const t=Io();Mo(0,"div",14),Mo(1,"div",15),Mo(2,"div",16),Mo(3,"p"),da(4,"Pour profiter pleinement de la Galerie virtuelle, nous vous conseillons une consultation sur grand \xe9cran"),Oo(),Oo(),Mo(5,"div",17),Lo("click",function(){return Ae(t),Bo().showMobileWarning=!1}),da(6,"Fermer"),Oo(),Oo(),Oo()}}function PU(t,e){if(1&t){const t=Io();Mo(0,"div",25),Lo("click",function(){return Ae(t),Bo(2).introCTAClicked()}),Bl(1,"safe"),Oo()}2&t&&Co("innerHtml",Nl(1,1,Bo(2).currentIntro.button_label,"html"),Ki)}function MU(t,e){1&t&&(Mo(0,"div",26),rn(),Mo(1,"svg",27),So(2,"circle",28),Oo(),ke.lFrame.currentNamespace=null,Mo(3,"div",29),da(4,"C'est presque pr\xeat\xa0!"),Oo(),Oo())}const OU=function(t,e){return{hidden:t,home:e}};function SU(t,e){if(1&t&&(Mo(0,"div",18),Mo(1,"div",19),So(2,"div",20),Bl(3,"safe"),So(4,"div",21),Bl(5,"safe"),So(6,"div",22),Bl(7,"safe"),xo(8,PU,2,4,"div",23),xo(9,MU,5,0,"div",24),Oo(),Oo()),2&t){const t=Bo();Co("ngClass",Al(15,OU,!t.showIntro,"home"==t.currentIntro.type)),Qr(2),Co("innerHtml",Nl(3,6,t.currentIntro.title,"html"),Ki),Qr(2),Co("innerHtml",Nl(5,9,t.currentIntro.sub_title,"html"),Ki),Qr(2),Co("innerHtml",Nl(7,12,t.currentIntro.sub_paragraph,"html"),Ki),Qr(2),Co("ngIf",!t.showPreload),Qr(1),Co("ngIf",t.showPreload)}}function kU(t,e){if(1&t){const t=Io();Mo(0,"img",30),Lo("load",function(){return Ae(t),Bo().imageLoaded()})("error",function(){return Ae(t),Bo().imageLoaded()}),Oo()}2&t&&Co("src",e.$implicit,Yi)}const TU=function(t){return{intro:t}},EU=function(t){return{hidden:t}},IU=function(t){return{active:t}};let AU=(()=>{class t{constructor(t,e,n,i){this.platformId=t,this.api=e,this.location=n,this.route=i,this.currentView=0,this.showIntro=!0,this.images=[],this.imagesLoaded=0,this.loaded=!1,this.showPreload=!1,this.showMobileWarning=!0}onOpenGuided(t){this.currentItem=t.detail.id}ngOnInit(){this.runtime=new SB,this.currentIntro=this.data_light.home,this.currentIntro.type="home",this.api.callAction(this.data_light.ws).subscribe(t=>{this.computeRecitData(t)}),this.baseUrl=this.data_light.base_url,"home"==this.data_light.current_page||("recit"==this.data_light.current_page?this.currentView=1:""!=this.data_light.current_sequence&&(this.currentView=1,this.launchSequence=this.data_light.current_sequence))}ngAfterViewInit(){Xu(this.platformId)||(this.main=this.runtime.module(gL,t=>"bib"===t?new CR(this.galaxyDiv.nativeElement):{pending(){},fulfilled(t){},rejected(t){}}))}computeRecitData(t){this.recitData=Object.keys(t).map(e=>t[e]);for(let e of this.recitData){e.sequences=Object.keys(e.sequences).map(t=>e.sequences[t]);for(let t of e.sequences){t.subsequences=Object.keys(t.subsequences).map(e=>t.subsequences[e]);for(let e of t.subsequences){e.recit.bloc_edits=Object.keys(e.recit.bloc_edits).map(t=>{let n=e.recit.bloc_edits[t];if(n.id=t,n.vignette_url="",!n.main_item)return e.recit.bloc_edits[t];switch(n.main_item.type){case"video":n.main_item.video_preview.teaser&&""!=n.main_item.video_preview.teaser?n.vignette_url=n.main_item.video_preview.teaser:n.main_item.video_preview.full&&""!=n.main_item.video_preview.full&&(n.vignette_url=n.main_item.video_preview.full);break;case"image":n.main_item.image.teaser&&""!=n.main_item.image.teaser?n.vignette_url=n.main_item.image.teaser:n.main_item.image.full&&""!=n.main_item.image.full&&(n.vignette_url=n.main_item.image.full)}return e.recit.bloc_edits[t]});for(let t of e.recit.bloc_edits)if(t.main_item)switch(t.main_item.type){case"video":t.main_item.video_preview.full&&""!=t.main_item.video_preview.full&&this.images.push(t.main_item.video_preview.full),t.main_item.video_preview.micro&&""!=t.main_item.video_preview.micro&&this.images.push(t.main_item.video_preview.micro),t.main_item.video_preview.teaser&&""!=t.main_item.video_preview.teaser&&this.images.push(t.main_item.video_preview.teaser);break;case"image":t.main_item.image.full&&""!=t.main_item.image.full&&this.images.push(t.main_item.image.full),t.main_item.image.micro&&""!=t.main_item.image.micro&&this.images.push(t.main_item.image.micro),t.main_item.image.teaser&&""!=t.main_item.image.teaser&&this.images.push(t.main_item.image.teaser);break;default:console.log(t.main_item)}}}}0==this.images.length&&(this.loaded=!0)}imageLoaded(){if(++this.imagesLoaded==this.images.length){this.loaded=!0,this.showPreload&&(this.showGalaxyIntro(),this.showPreload=!1);let t=new CustomEvent("galaxyCsvPath",{detail:{csv:xb+""+this.data_light.csv+"?cachebuster="+Math.round((new Date).getTime()/1e3)}});
147Xu(this.platformId)||window.dispatchEvent(t),this.route.snapshot.queryParams.item&&setTimeout(()=>{let t=new CustomEvent("openGalaxy",{detail:{id:this.route.snapshot.queryParams.item}});window.dispatchEvent(t)},5e3)}}introCTAClicked(){"home"==this.currentIntro.type?this.loaded?this.showGalaxyIntro():this.showPreload=!0:(localStorage.setItem("bib_"+this.currentIntro.type+"_intro","true"),this.showIntro=!1)}showGalaxyIntro(){localStorage.getItem("bib_galaxy_intro")?this.showIntro=!1:(this.currentIntro=this.data_light.galaxie,this.currentIntro.type="galaxy")}switchGalaxy(){if(!Xu(this.platformId)){let t=new CustomEvent("openGalaxy",{detail:{id:this.recit.currentItem}});window.dispatchEvent(t)}this.location.go(this.baseUrl+"/galaxie"),this.currentView=0}switchRecit(){this.currentView=1,this.currentItem&&this.recit.goItem(this.currentItem),this.location.go(this.recit.currentSequence?this.recit.currentSequence.url:this.baseUrl+"/recit"),localStorage.getItem("bib_recit_intro")||(this.currentIntro=this.data_light.recit,this.currentIntro.type="recit",this.showIntro=!0)}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(bb),wo(wu),wo(Ay))},t.\u0275cmp=Ut({type:t,selectors:[["app-visite-virtuelle"]],viewQuery:function(t,e){if(1&t&&(nc(bU,1),nc(wU,1)),2&t){let t;ec(t=ic())&&(e.galaxyDiv=t.first),ec(t=ic())&&(e.recit=t.first)}},hostBindings:function(t,e){1&t&&Lo("openGuided",function(t){return e.onOpenGuided(t)},!1,ar)},inputs:{data_light:"data_light"},decls:17,vars:21,consts:[[1,"vv_cont",3,"ngClass"],[1,"vv_header"],["href","/"],["src","/assets/img/logo_bibracte.svg"],["class","vv_mobile mobile_only",4,"ngIf"],["class","vv_intro",3,"ngClass",4,"ngIf"],[1,"vv_galaxy",3,"ngClass"],["galaxy",""],[1,"vv_recit",3,"ngClass"],[3,"baseUrl","recitData","launchSequence"],["recit",""],[1,"vv_switch_cont"],[3,"ngClass","click"],["hidden","",3,"src","load","error",4,"ngFor","ngForOf"],[1,"vv_mobile","mobile_only"],[1,"vv_mobile_cont"],[1,"vv_mobile_chapo","ignore_p_margin"],[1,"vv_mobile_cta","bib_button","ignore_p_margin",3,"click"],[1,"vv_intro",3,"ngClass"],[1,"vv_intro_cont"],[1,"vv_intro_title","bib_title1","ignore_p_margin",3,"innerHtml"],[1,"vv_intro_subtitle","bib_title3","ignore_p_margin",3,"innerHtml"],[1,"vv_intro_chapo","ignore_p_margin",3,"innerHtml"],["class","vv_intro_cta bib_button ignore_p_margin",3,"innerHtml","click",4,"ngIf"],["class","vv_intro_cta",4,"ngIf"],[1,"vv_intro_cta","bib_button","ignore_p_margin",3,"innerHtml","click"],[1,"vv_intro_cta"],["width","65px","height","65px","viewBox","0 0 66 66","xmlns","http://www.w3.org/2000/svg",1,"spinner"],["fill","none","stroke-width","6","height","65px","width","65px","stroke-linecap","round","cx","33","cy","33","r","30",1,"path"],[1,"vv_preload_txt"],["hidden","",3,"src","load","error"]],template:function(t,e){1&t&&(Mo(0,"section",0),Mo(1,"div",1),Mo(2,"a",2),So(3,"img",3),Oo(),Oo(),xo(4,CU,7,0,"div",4),xo(5,SU,10,18,"div",5),So(6,"div",6,7),Mo(8,"div",8),So(9,"app-visite-recit",9,10),Oo(),Mo(11,"div",11),Mo(12,"div",12),Lo("click",function(){return e.switchGalaxy()}),da(13,"Galaxie"),Oo(),Mo(14,"div",12),Lo("click",function(){return e.switchRecit()}),da(15,"R\xe9cit"),Oo(),Oo(),xo(16,kU,1,1,"img",13),Oo()),2&t&&(Co("ngClass",Il(11,TU,e.showIntro)),Qr(4),Co("ngIf",e.showMobileWarning),Qr(1),Co("ngIf",e.data_light),Qr(1),Co("ngClass",Il(13,EU,0!=e.currentView)),Qr(2),Co("ngClass",Il(15,EU,1!=e.currentView)),Qr(1),Co("baseUrl",e.baseUrl)("recitData",e.recitData)("launchSequence",e.launchSequence),Qr(3),Co("ngClass",Il(17,IU,0==e.currentView)),Qr(2),Co("ngClass",Il(19,IU,1==e.currentView)),Qr(2),Co("ngForOf",e.images))},directives:[Tu,zu,xU,Iu],pipes:[Sb],styles:[".vv_cont[_ngcontent-%COMP%]{background-color:#131313;position:relative;min-height:100vh}.vv_cont.intro[_ngcontent-%COMP%]{height:100vh;overflow:hidden}.vv_header[_ngcontent-%COMP%]{width:100%;height:38px;background:#fff;display:flex;align-items:center;position:relative;z-index:100}.vv_header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{width:100%}.vv_header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:18px;margin-left:20px;margin-right:20px}@media (min-width:500px){.vv_header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:40px}}@media (min-width:992px){.vv_header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:20px}}@media (min-width:1024px){.vv_header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:40px}}@media (min-width:1280px){.vv_header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:60px}}@media (min-width:1440px){.vv_header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:calc((100% - 1320px) / 2)}}@media (min-width:500px){.vv_header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:40px}}@media (min-width:992px){.vv_header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:20px}}@media (min-width:1024px){.vv_header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:40px}}@media (min-width:1280px){.vv_header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:60px}}@media (min-width:1440px){.vv_header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:calc((100% - 1320px) / 2)}}.vv_galaxy.hidden[_ngcontent-%COMP%], .vv_recit.hidden[_ngcontent-%COMP%]{display:none}.vv_galaxy[_ngcontent-%COMP%]{height:calc(100vh - 38px);width:100%}.vv_recit[_ngcontent-%COMP%]{position:relative;min-height:calc(100vh - 38px);overflow:hidden;background-color:#131313;background:url(/assets/img/courbes_niveau.png);background-position:top;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}.vv_switch_cont[_ngcontent-%COMP%]{position:absolute;top:70px;width:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.vv_switch_cont[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{pointer-events:all;background-color:#fff;padding:2px 20px;cursor:pointer}.vv_switch_cont[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:first-child{border-radius:33px 0 0 33px}.vv_switch_cont[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:last-child{border-radius:0 33px 33px 0}.vv_switch_cont[_ngcontent-%COMP%]   div.active[_ngcontent-%COMP%]{background-color:#9ab400;color:#fff}.vv_mobile[_ngcontent-%COMP%]{position:absolute;top:38px;left:0;width:100%;height:calc(100% - 38px);z-index:10;background:#000000d9;transition:opacity .5s ease-in-out}.vv_mobile[_ngcontent-%COMP%], .vv_mobile[_ngcontent-%COMP%]   .vv_mobile_cont[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.vv_mobile[_ngcontent-%COMP%]   .vv_mobile_cont[_ngcontent-%COMP%]{box-sizing:border-box;flex-direction:column;width:750px;max-width:calc(100% - calc(2 * 20px));background:#fff;padding:4.375rem calc(1 * ((100vw - 40px - 77px) / 12) + calc(0 * 7px)) 1.875rem}@media (min-width:992px){.vv_mobile[_ngcontent-%COMP%]   .vv_mobile_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.vv_mobile[_ngcontent-%COMP%]   .vv_mobile_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.vv_mobile[_ngcontent-%COMP%]   .vv_mobile_cont[_ngcontent-%COMP%]{padding-left:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.vv_mobile[_ngcontent-%COMP%]   .vv_mobile_cont[_ngcontent-%COMP%]{padding-left:calc(calc(55px * 1) + calc(60px * 0))}}@media (min-width:992px){.vv_mobile[_ngcontent-%COMP%]   .vv_mobile_cont[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 20px)) / 23))}}@media (min-width:1024px){.vv_mobile[_ngcontent-%COMP%]   .vv_mobile_cont[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 40px)) / 23))}}@media (min-width:1280px){.vv_mobile[_ngcontent-%COMP%]   .vv_mobile_cont[_ngcontent-%COMP%]{padding-right:calc(calc(1 + 0) * ((100vw - calc(2 * 60px)) / 23))}}@media (min-width:1440px){.vv_mobile[_ngcontent-%COMP%]   .vv_mobile_cont[_ngcontent-%COMP%]{padding-right:calc(calc(55px * 1) + calc(60px * 0))}}.vv_mobile[_ngcontent-%COMP%]   .vv_mobile_cont[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{max-width:100%}.vv_mobile[_ngcontent-%COMP%]   .vv_mobile_cont[_ngcontent-%COMP%]   .vv_mobile_chapo[_ngcontent-%COMP%]{text-align:center}.vv_mobile[_ngcontent-%COMP%]   .vv_mobile_cont[_ngcontent-%COMP%]   .vv_mobile_cta[_ngcontent-%COMP%]{margin-top:4.375rem}.vv_mobile[_ngcontent-%COMP%]   .vv_mobile_cont[_ngcontent-%COMP%]   .bib_button[_ngcontent-%COMP%]{box-sizing:border-box;
147cursor:pointer;text-transform:uppercase;padding:1.0625rem 1.5625rem;border:1px solid #9ab400;width:100%;text-align:center;background-color:#9ab400;color:#fff;font-weight:400}.vv_intro[_ngcontent-%COMP%]{position:absolute;top:38px;left:0;width:100%;height:calc(100% - 38px);z-index:8;background:#000000d9;transition:opacity .5s ease-in-out}.vv_intro[_ngcontent-%COMP%]   .vv_intro_cont[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;height:100%;width:750px;max-width:calc(100% - 80px);margin:0 auto}.vv_intro[_ngcontent-%COMP%]   .vv_intro_cont[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{color:#fff;max-width:750px}.vv_intro[_ngcontent-%COMP%]   .vv_intro_cont[_ngcontent-%COMP%]   .vv_intro_subtitle[_ngcontent-%COMP%]{margin-top:1.25rem}.vv_intro[_ngcontent-%COMP%]   .vv_intro_cont[_ngcontent-%COMP%]   .vv_intro_chapo[_ngcontent-%COMP%]{margin-top:4.375rem;text-align:left}.vv_intro[_ngcontent-%COMP%]   .vv_intro_cont[_ngcontent-%COMP%]   .vv_intro_cta[_ngcontent-%COMP%]{margin-top:4.375rem}.vv_intro[_ngcontent-%COMP%]   .vv_intro_cont[_ngcontent-%COMP%]   .vv_preload_txt[_ngcontent-%COMP%]{margin-top:.9375rem}.vv_intro[_ngcontent-%COMP%]   .vv_intro_cont[_ngcontent-%COMP%]   .bib_button[_ngcontent-%COMP%]{cursor:pointer;text-transform:uppercase;padding:1.0625rem 1.5625rem;border:1px solid #fff;font-weight:400}.vv_intro.home[_ngcontent-%COMP%]   .vv_intro_cont[_ngcontent-%COMP%]{align-items:center;text-align:center}.vv_intro.home[_ngcontent-%COMP%]   .bib_button[_ngcontent-%COMP%]{border:none!important;background-color:#9ab400}.vv_intro.hidden[_ngcontent-%COMP%]{opacity:0;pointer-events:none}.spinner[_ngcontent-%COMP%]{width:55px;height:55px;animation:rotator 1.4s linear infinite}@keyframes rotator{0%{transform:rotate(0deg)}to{transform:rotate(270deg)}}.path[_ngcontent-%COMP%]{stroke-dasharray:187;stroke-dashoffset:0;transform-origin:center;animation:dash 1.4s ease-in-out infinite,colors 5.6s ease-in-out infinite}@keyframes colors{0%{stroke:#9ab400}25%{stroke:#9ab400}50%{stroke:#9ab400}75%{stroke:#9ab400}to{stroke:#9ab400}}@keyframes dash{0%{stroke-dashoffset:187}50%{stroke-dashoffset:46.75;transform:rotate(135deg)}to{stroke-dashoffset:187;transform:rotate(450deg)}}"]}),t})();const zU=["header"];function DU(t,e){if(1&t&&(Mo(0,"div",17),So(1,"div",18),Bl(2,"safe"),So(3,"div",15),Bl(4,"safe"),Oo()),2&t){const t=Bo(3);Qr(1),Co("innerHtml",Nl(2,2,t.errorMessageEN,"html"),Ki),Qr(2),Co("innerHtml",Nl(4,5,t.errorDescEN,"html"),Ki)}}function LU(t,e){if(1&t&&(Mo(0,"div",7),Mo(1,"div",8),Mo(2,"div",9),Mo(3,"div",10),Mo(4,"a",11),So(5,"img",12),Oo(),Oo(),Oo(),Oo(),Mo(6,"div",13),So(7,"div",14),Bl(8,"safe"),So(9,"div",15),Bl(10,"safe"),xo(11,DU,5,8,"div",16),Oo(),Oo()),2&t){const t=Bo(2);Qr(4),Co("routerLink","/"),Qr(3),Co("innerHtml",Nl(8,4,t.errorMessage,"html"),Ki),Qr(2),Co("innerHtml",Nl(10,7,t.errorDesc,"html"),Ki),Qr(2),Co("ngIf",""!=t.errorMessageEN)}}function RU(t,e){if(1&t){const t=Io();Mo(0,"app-header",20,21),Lo("menuOpen",function(e){return Ae(t),Bo(3).doMenuOpen(e)})("backEvent",function(){return Ae(t),Bo(3).backClicked()})("fixedPosition",function(e){return Ae(t),Bo(3).fixedMenu=e}),Oo()}if(2&t){const t=Bo(3);Co("texts",t.texts)("status",t.nodeData.status)("data",t.headerData)("carouselData",t.carouselData)("backData",t.backData)("recitData",t.recitData)("img",t.img)("img_mobile",t.img_mobile)("title",t.title)("titre_long",t.titre_long)("type",t.type)("typeTxt",t.typeTxt)("gabarit",t.gabarit)("titleClass",t.titleClass)("chapo",t.headerChapo?t.nodeData.chapo:null)("lien_url",null==t.nodeData?null:t.nodeData.lien_url)("lien_label",null==t.nodeData?null:t.nodeData.lien_label)("showArrow",t.showArrow&&!t.menuOpen)("currentLanguage",t.languageData)("showSelection","liste_ma_selection"==(null==t.nodeData?null:t.nodeData.gabarit))("resData",t.resData)("nbRes",t.nbRes)("searchData",t.searchData)}}const FU=function(t){return{hidden:t}};function BU(t,e){if(1&t&&(Mo(0,"div",2),xo(1,RU,2,23,"app-header",19),Oo()),2&t){const t=Bo(2);Co("ngClass",Il(2,FU,t.actOpen)),Qr(1),Co("ngIf",t.headerData)}}function NU(t,e){if(1&t){const t=Io();Mo(0,"app-activites",30),Lo("actOpen",function(e){return Ae(t),Bo(3).actOpen=e}),Oo()}if(2&t){const t=Bo(3);Co("data",t.nodeData)("languageData",t.languageData)("texts",t.texts)("fixedMenu",t.fixedMenu)}}function UU(t,e){if(1&t&&So(0,"app-activites-groupe",31),2&t){const t=Bo(3);Co("data",t.nodeData)("languageData",t.languageData)("texts",t.texts)}}function HU(t,e){if(1&t&&So(0,"app-recherche",33),2&t){const t=Bo(4);Co("data",t.nodeData)("searchData",t.searchData)("languageData",t.languageData)("fixedMenu",t.fixedMenu)("texts",t.texts)}}function jU(t,e){if(1&t&&So(0,"app-informations-pratiques",36),2&t){const t=Bo(5);Co("data",t.nodeData)("languageData",t.languageData)("texts",t.texts)("fixedMenu",t.fixedMenu)}}function VU(t,e){if(1&t&&So(0,"app-page-edito",31),2&t){const t=Bo(5);Co("data",t.nodeData)("languageData",t.languageData)("texts",t.texts)}}function $U(t,e){if(1&t&&(ko(0),xo(1,jU,1,4,"app-informations-pratiques",34),xo(2,VU,1,3,"app-page-edito",35),To()),2&t){const t=Bo(4);Qr(1),Co("ngIf",t.nodeData.ancres),Qr(1),Co("ngIf",!t.nodeData.ancres)}}function qU(t,e){if(1&t&&(ko(0),xo(1,HU,1,5,"app-recherche",32),xo(2,$U,3,2,"ng-container",1),To()),2&t){const t=Bo(3);Qr(1),Co("ngIf","recherche"==t.nodeData.type),Qr(1),Co("ngIf","recherche"!=t.nodeData.type)}}function GU(t,e){if(1&t&&So(0,"app-activity",39),2&t){const t=Bo(4);Co("texts",t.texts)("data",t.nodeData)("languageData",t.languageData)}}function ZU(t,e){if(1&t&&So(0,"app-actualite",39),2&t){const t=Bo(4);Co("texts",t.texts)("data",t.nodeData)("languageData",t.languageData)}}function WU(t,e){if(1&t&&So(0,"app-dossier-thematique",39),2&t){const t=Bo(4);Co("texts",t.texts)("data",t.nodeData)("languageData",t.languageData)}}function XU(t,e){if(1&t&&So(0,"app-ressource",39),2&t){const t=Bo(4);Co("texts",t.texts)("data",t.nodeData)("languageData",t.languageData)}}function QU(t,e){1&t&&(ko(0,22),xo(1,GU,1,3,"app-activity",37),xo(2,ZU,1,3,"app-actualite",37),xo(3,WU,1,3,"app-dossier-thematique",37),xo(4,XU,1,3,"app-ressource",38),To()),2&t&&(Co("ngSwitch",Bo(3).nodeData.type),Qr(1),Co("ngSwitchCase","activite"),Qr(1),Co("ngSwitchCase","actualite"),Qr(1),Co("ngSwitchCase","dossier_thematique"))}function KU(t,e){if(1&t&&So(0,"app-actualites",31),2&t){const t=Bo(3);Co("data",t.nodeData)("languageData",t.languageData)("texts",t.texts)}}function YU(t,e){if(1&t&&So(0,"app-aux-alentours",40),2&t){const t=Bo(3);Co("data",t.nodeData)("languageData",t.languageData)("fixedMenu",t.fixedMenu)("texts",t.texts)}}function JU(t,e){if(1&t){const t=Io();Mo(0,"app-ma-selection",41),Lo("actOpen",function(e){return Ae(t),Bo(3).actOpen=e}),Oo()}if(2&t){const t=Bo(3);Co("data",t.nodeData)("languageData",t.languageData)("texts",t.texts)}}function tH(t,e){if(1&t){const t=Io();Mo(0,"app-home",42),Lo("scrollEvent",function(e){return Ae(t),Bo(3).scrollEvent(e)}),Oo()}if(2&t){const t=Bo(3);Co("data",t.nodeData)("languageData",t.languageData)("texts",t.texts)}}function eH(t,e){1&t&&(ko(0,22),xo(1,NU,1,4,"app-activites",23),xo(2,UU,1,3,"app-activites-groupe",24),xo(3,qU,3,2,"ng-container",25),xo(4,QU,5,4,"ng-container",26),xo(5,KU,1,3,"app-actualites",24),xo(6,YU,1,4,"app-aux-alentours",27),xo(7,JU,1,3,"app-ma-selection",28),xo(8,tH,1,3,"app-home",29),To()),2&t&&(Co("ngSwitch",Bo(2).nodeData.gabarit),Qr(1),Co("ngSwitchCase","liste_activites"),Qr(1),Co("ngSwitchCase","liste_activites_groupe"),Qr(1),Co("ngSwitchCase","standard_1"),Qr(1),Co("ngSwitchCase","standard_2"),Qr(1),Co("ngSwitchCase","liste_actualites"),Qr(1),Co("ngSwitchCase","liste_alentours"),Qr(1),Co("ngSwitchCase","liste_ma_selection"),Qr(1),Co("ngSwitchCase","homepage"))}function nH(t,e){if(1&t&&So(0,"app-footer",43),2&t){const t=Bo(2);Co("ngClass",Il(3,FU,t.actOpen))("data",t.footerData)("texts",t.texts)}}function iH(t,e){if(1&t){const t=Io();Mo(0,"app-cookies",44),Lo("cookiesDone",function(){return Ae(t),Bo(2).showCookies=!1})("cookiesOpen",function(e){return Ae(t),Bo(2).cookiesOpen=e}),Oo()}if(2&t){const t=Bo(2);Co("data",t.cookiesData)("texts",t.texts)}}const rH=function(t){return{menu_open:t}};function sH(t,e){if(1&t&&(Mo(0,"div",2),xo(1,LU,12,10,"div",3),xo(2,BU,2,4,"div",0),xo(3,eH,9,9,"ng-container",4),xo(4,nH,1,5,"app-footer",5),xo(5,iH,1,2,"app-cookies",6),Oo()),2&t){const t=Bo();Co("ngClass",Il(6,rH,t.menuOpen)),Qr(1),Co("ngIf",t.pageNotFound),Qr(1),Co("ngIf",!t.pageNotFound),Qr(1),Co("ngIf",!t.pageNotFound),Qr(1),Co("ngIf",!t.pageNotFound&&t.footerData),Qr(1),Co("ngIf",t.showCookies)}}function oH(t,e){if(1&t&&(Mo(0,"div"),So(1,"app-visite-virtuelle",45),Oo()),2&t){const t=Bo();Qr(1),Co("data_light",t.vvData)}}const aH=[{path:"**",component:(()=>{class t{constructor(t,e,n,i,r,s,o,a,l,c){this.platformId=t,this.router=e,this.route=n,this.api=i,this.location=r,this.changes=s,this.metaTags=o,this.titleService=a,this.jsonLD=l,this.ga=c,this.pageNotFound=!1,this.errorMessage="",this.errorMessageEN="",this.errorDesc="",this.errorDescEN="",this.loaded=!1,this.menuOpen=!1,this.cookiesOpen=!1,this.headerChapo=!1,this.fixedMenu=!1,this.showCookies=!0,this.actOpen=!1,this.lastLocale="",this.isVV=!1,this.route.url.subscribe(t=>{this.loadPage()})}ngOnInit(){this.api.callAction("ws_web_texte_interface").subscribe(t=>
147{this.lastLocale=this.api.getLocale(),this.texts=t,this.nodeData&&(this.loaded=!0)})}loadPage(){this.actOpen=!1,this.pageNotFound=!1,this.loaded=!1,this.doMenuOpen(!1);let t=this.router.url;this.isVV=!1,this.searchData=null,this.api.callWebservice(t).subscribe(e=>{var n,i;if(this.api.getLocale()!=this.lastLocale&&(this.texts=null,this.api.callAction("ws_web_texte_interface").subscribe(t=>{this.lastLocale=this.api.getLocale(),this.texts=t,this.nodeData&&("dossier th\xe9matique"==this.type?(this.type=this.texts["dossier th\xe9matique"],this.backData={label:this.texts.Retour,url:""}):this.nodeData.files&&(this.backData={label:this.texts.Retour,url:""}),this.loaded=!0)})),e.cookies&&(this.cookiesData=e.cookies),e.metadata&&this.setMetadata(e.metadata),e.ga_id){let n="";e.metadata&&e.metadata.meta.title&&(n=e.metadata.meta.title),this.ga.tagPage(e.ga_id,n,t)}if(e.galaxie)return this.isVV=!0,void(this.vvData=e);if(e.node&&e.node.search_base_url&&(this.searchData={autocomplete:e.node.search_autocomplete,searchRedirect:e.node.search_base_url}),!e.node&&e.media&&(e.node=e.media),e.node||"recherche"!=e.type||(e.node={gabarit:e.gabarit,type:e.type,nid:e.id,status:e.status,titre:e.titre,couleur_titre:e.couleur_header,url:e.base_url,titre_html:e.tite_html,titre_long:e.titre_long,chapo:e.chapo_header,results:e.results,visuel:{url:null===(n=e.visuel)||void 0===n?void 0:n.url},visuel_mobile:{url:null===(i=e.visuel_mobile)||void 0===i?void 0:i.url}},this.searchData={autocomplete:e.ws_autocomplete,search:e.ws_results},this.languageData=e.language),!e.node)return this.pageNotFound=!0,this.errorMessage="Site en maintenance",this.errorMessageEN="The website is down for maintenance.",this.errorDesc="Bibracte.fr sera de retour tr\xe8s prochainement !",this.errorDescEN="We'll be back soon!",void(this.loaded=!0);if(e.node.gabarit||(e.node.gabarit="standard_1",e.node.type="recherche"),e.node){if(e.error)return this.pageNotFound=!0,this.errorMessage=e.title,this.errorDesc=e.description,void(this.loaded=!0);if(this.headerData=e.header,this.footerData=e.footer,this.languageData=e.language,this.nodeData=e.node,this.title=e.node.titre_html?e.node.titre_html:e.node.titre||e.node.title,this.titre_long=e.node.titre_long?e.node.titre_long:"0",this.img=e.node.visuel&&e.node.visuel.url?e.node.visuel.url:e.node.visuel?e.node.visuel:null,this.recitData=e.node.recit?e.node.recit:null,e.node.files?(this.resData=e.node.files,this.resData.soundcloud=e.node.soundcloud,this.resData.preview_url=e.node.preview_url,this.resData.authors=e.node.cartel&&e.node.cartel.authors?e.node.cartel.authors:{},this.resData.download_image=e.node["download_image "]):this.resData=null,this.img_mobile=e.node.visuel_mobile&&e.node.visuel_mobile.url?e.node.visuel_mobile.url:e.node.visuel_mobile?e.node.visuel_mobile:null,this.backData=e.node.back_link?e.node.back_link:e.node.files||e.node.type&&"dossier_thematique"==e.node.type?this.texts?{label:this.texts.Retour,url:""}:{label:"Retour",url:""}:null,null!=e.node.highlight)this.titleClass="1"==e.node.highlight?"activity_hl":"activity",this.type=e.node.liste_offre;else if("actualite"==e.node.type)this.titleClass="actu",this.type=e.node.type+" - "+e.node.date;else if("dossier_thematique"==e.node.type)this.titleClass="dossier",this.type=this.texts?this.texts["dossier th\xe9matique"]:"dossier th\xe9matique",this.nbRes=e.node.nb_ressources;else if(this.titleClass="res",this.type=e.node.type,e.node.type_ressource_cdr){let t=Object.keys(e.node.type_ressource_cdr);this.typeTxt=e.node.type_ressource_cdr[t[0]]}this.carouselData=e.node.carrousel,this.gabarit=e.node.gabarit,this.headerChapo="recherche"==e.node.type||"liste_activites"==this.gabarit||"liste_activites_groupe"==this.gabarit||"liste_alentours"==this.gabarit||"404"==this.gabarit,this.showArrow="standard_2"!=this.gabarit&&"404"!=this.gabarit,this.texts&&(this.loaded=!0)}},t=>{Xu(this.platformId)||(this.pageNotFound=!0,this.errorMessage="Site en maintenance",this.errorMessageEN="The website is down for maintenance.",this.errorDesc="Bibracte.fr sera de retour tr\xe8s prochainement !",this.errorDescEN="We'll be back soon!",this.loaded=!0)})}setMetadata(t){let e=[];t.meta&&t.meta.title&&this.titleService.setTitle(t.meta.title);for(let n in t.meta)e.push({name:n,content:t.meta[n]});for(let n in t.og)e.push({name:"og:"+n,content:t.og[n]});for(let n in t.twitter_graph)e.push({name:n,content:t.twitter_graph[n]});this.jsonLD.removeStructuredData(),t["schema.org"].organisation&&this.jsonLD.insertSchema(t["schema.org"].organisation),this.metaTags.addTags(e)}backClicked(){""==this.backData.url?this.location.back():this.router.navigateByUrl(this.backData.url)}doMenuOpen(t){this.menuOpen=t,Xu(this.platformId)||(document.body.style.overflow=this.menuOpen?"hidden":"")}scrollEvent(t){this.header&&this.header.scrollEvent(t)}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(Yx),wo(Ay),wo(bb),wo(wu),wo(nl),wo(Ih),wo(Dh),wo(wb),wo(Cb))},t.\u0275cmp=Ut({type:t,selectors:[["app-page-loader"]],viewQuery:function(t,e){if(1&t&&nc(zU,1),2&t){let t;ec(t=ic())&&(e.header=t.first)}},decls:2,vars:2,consts:[[3,"ngClass",4,"ngIf"],[4,"ngIf"],[3,"ngClass"],["class","error_cont",4,"ngIf"],[3,"ngSwitch",4,"ngIf"],[3,"ngClass","data","texts",4,"ngIf"],[3,"data","texts","cookiesDone","cookiesOpen",4,"ngIf"],[1,"error_cont"],[1,"error_menu"],[1,"bib_grid"],["id","menu-img"],[1,"curs
147or",3,"routerLink"],["src","/assets/img/logo_bibracte_white.svg"],[1,"error_message","bib_grid"],[1,"bib_title1","title_green",3,"innerHtml"],[1,"bib_title3",2,"color","#FFF",3,"innerHtml"],["class","error_en",4,"ngIf"],[1,"error_en"],[1,"bib_title3","title_green",2,"text-transform","uppercase","font-weight","800",3,"innerHtml"],[3,"texts","status","data","carouselData","backData","recitData","img","img_mobile","title","titre_long","type","typeTxt","gabarit","titleClass","chapo","lien_url","lien_label","showArrow","currentLanguage","showSelection","resData","nbRes","searchData","menuOpen","backEvent","fixedPosition",4,"ngIf"],[3,"texts","status","data","carouselData","backData","recitData","img","img_mobile","title","titre_long","type","typeTxt","gabarit","titleClass","chapo","lien_url","lien_label","showArrow","currentLanguage","showSelection","resData","nbRes","searchData","menuOpen","backEvent","fixedPosition"],["header",""],[3,"ngSwitch"],[3,"data","languageData","texts","fixedMenu","actOpen",4,"ngSwitchCase"],[3,"data","languageData","texts",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchCase"],[3,"data","languageData","fixedMenu","texts",4,"ngSwitchCase"],[3,"data","languageData","texts","actOpen",4,"ngSwitchCase"],[3,"data","languageData","texts","scrollEvent",4,"ngSwitchCase"],[3,"data","languageData","texts","fixedMenu","actOpen"],[3,"data","languageData","texts"],[3,"data","searchData","languageData","fixedMenu","texts",4,"ngIf"],[3,"data","searchData","languageData","fixedMenu","texts"],[3,"data","languageData","texts","fixedMenu",4,"ngIf"],[3,"data","languageData","texts",4,"ngIf"],[3,"data","languageData","texts","fixedMenu"],[3,"texts","data","languageData",4,"ngSwitchCase"],[3,"texts","data","languageData",4,"ngSwitchDefault"],[3,"texts","data","languageData"],[3,"data","languageData","fixedMenu","texts"],[3,"data","languageData","texts","actOpen"],[3,"data","languageData","texts","scrollEvent"],[3,"ngClass","data","texts"],[3,"data","texts","cookiesDone","cookiesOpen"],[3,"data_light"]],template:function(t,e){1&t&&(xo(0,sH,6,8,"div",0),xo(1,oH,2,1,"div",1)),2&t&&(Co("ngIf",e.loaded&&!e.isVV),Qr(1),Co("ngIf",e.isVV))},directives:[zu,Tu,Jx,jM,Fu,Bu,aE,vE,eI,gI,xI,Nu,zI,HI,XI,dA,PA,GA,rz,_z,Lz,Uz,AU],pipes:[Sb],styles:[".hidden[_ngcontent-%COMP%]{display:none}.error_cont[_ngcontent-%COMP%]{position:relative;width:100%;height:100vh;display:flex;justify-content:center;align-items:center;background-color:#00000040;background-size:cover;background-position:50%}.error_menu[_ngcontent-%COMP%]{position:absolute;top:0;left:0;padding:1.56rem 0;width:100%}.error_message[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:13;text-align:center}.error_en[_ngcontent-%COMP%]{margin-top:5rem}#menu-img[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:7;display:flex;align-items:center}#menu-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;max-height:35px}@media (min-width:992px){#menu-img[_ngcontent-%COMP%]{grid-column-start:1;grid-column-end:4;grid-row-start:1;grid-row-end:2}}#menu-img[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{line-height:100%!important}"]}),t})()}];let lH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ct({imports:[[hb.forRoot(aH,{initialNavigation:"enabled",scrollPositionRestoration:"enabled",onSameUrlNavigation:"reload"})],hb]}),t})();var cH=n("4ZJM"),uH=n.n(cH);const hH=["map"];function dH(t,e){if(1&t){const t=Io();Mo(0,"div",4),Lo("click",function(){return Ae(t),Bo().zoomIn()}),Oo()}}function pH(t,e){if(1&t){const t=Io();Mo(0,"div",5),Lo("click",function(){return Ae(t),Bo().zoomOut()}),Oo()}}uH.a.accessToken="pk.eyJ1IjoiaXNhcndlbmI5OSIsImEiOiJja2FjaWphaWYxZ2xjMnlwNG42bGNlM3hvIn0.NpF4VCc2NRckAPeMZ45k9w";let mH=(()=>{class t{constructor(t,e){this.platformId=t,this.mapStashService=e,this.mapLoaded=!1,this.bibracteX=46.927142862917606,this.bibracteY=4.038045255272664,this.boundRadius=.67,this.waitingPois=new Array,this.resizeQueue=[],this.zoomQueue=[],this.currentStyle="",this.clickEnabled=!0,e.registerComponent(this)}ngOnInit(){}registerClickCallback(t){this.featureClicked=t}unregisterClickCallback(){this.featureClicked=null}registerEmptyClickCallback(t){this.emptyClicked=t}unregisterEmptyClickCallback(){this.emptyClicked=null}registerInteractCallback(t){this.interacted=t}unregisterInteractCallback(){this.interacted=null}setParameters(t){if(Xu(this.platformId))return;if(null==this.map)this.init(t);else if(this.currentStyle!=t.fond_de_carte)this.mapLoaded=!1,this.waitingInfos=t,this.currentStyle=t.fond_de_carte,this.map.setStyle(t.fond_de_carte+"?optimize=true");
147else{for(let e in t.calques_mapbox_hidden)this.map.setLayoutProperty(t.calques_mapbox_hidden[e],"visibility","none");for(let e in t.calques_mapbox_visible)this.map.setLayoutProperty(t.calques_mapbox_visible[e],"visibility","visible")}let e;if(t.disableInteractivity?(this.map.boxZoom.disable(),this.map.dragPan.disable(),this.map.dragRotate.disable(),this.map.keyboard.disable(),this.map.doubleClickZoom.disable(),this.map.touchZoomRotate.disable(),this.map.touchPitch.disable(),this.map.setMinZoom(null),this.map.setMaxZoom(null),this.map.setMaxBounds(null),this.clickEnabled=!1):(this.map.boxZoom.enable(),this.map.dragPan.enable(),this.map.dragRotate.enable(),this.map.keyboard.enable(),this.map.doubleClickZoom.enable(),this.map.touchZoomRotate.enable(),this.map.touchPitch.enable(),this.map.setMinZoom(9),this.map.setMaxZoom(18.5),this.map.setMaxBounds(new uH.a.LngLatBounds(new uH.a.LngLat(this.extent[0][1],this.extent[0][0]),new uH.a.LngLat(this.extent[1][1],this.extent[1][0]))),this.clickEnabled=!0),this.showZoomButtons=t.showZoomButtons,t.zoom_max&&this.map.setMaxZoom(parseInt(t.zoom_max)),t.zoom_min&&this.map.setMinZoom(parseInt(t.zoom_min)),t.centre_lat&&t.centre_lon){if(e=t.zoom?{center:[t.centre_lon,t.centre_lat],zoom:t.zoom,padding:{left:0,right:0,top:0,bottom:0}}:{center:[t.centre_lon,t.centre_lat],padding:{left:0,right:0,top:0,bottom:0}},t.coordonnees_options&&t.coordonnees_options.padding)for(let n in t.coordonnees_options.padding)e.padding[n]=t.coordonnees_options.padding[n];this.map.jumpTo(e)}else t.zoom&&this.map.setZoom(t.zoom);this.map.resetNorthPitch({duration:0})}setMapData(t){if(!Xu(this.platformId))if(null!=this.map)if(this.mapLoaded){for(let e in t.calques_mapbox_hidden)this.map.setLayoutProperty(t.calques_mapbox_hidden[e],"visibility","none");for(let e in t.calques_mapbox_visible)this.map.setLayoutProperty(t.calques_mapbox_visible[e],"visibility","visible");if(t.coordonnees_centre){let e;if(e=t.niveau_zoom?{center:[t.coordonnees_centre.lon,t.coordonnees_centre.lat],duration:t.fly_duration,zoom:t.niveau_zoom,padding:{left:0,right:0,top:0,bottom:0}}:{center:[t.coordonnees_centre.lon,t.coordonnees_centre.lat],duration:t.fly_duration,padding:{left:0,right:0,top:0,bottom:0}},t.coordonnees_options&&t.coordonnees_options.padding)for(let n in t.coordonnees_options.padding)e.padding[n]=t.coordonnees_options.padding[n];this.map.easeTo(e)}}else this.waitingData=t;else console.error("Tried to set map data on uninitialized map")}init(t){let e=13.4;t.zoom&&(e=t.zoom),this.extent=[[this.bibracteX-this.boundRadius,this.bibracteY-this.boundRadius],[this.bibracteX+this.boundRadius,this.bibracteY+this.boundRadius]];let n={container:this.mapElementRef.nativeElement,style:t.fond_de_carte+"?optimize=true",zoom:e,minZoom:9,maxZoom:18.5,fadeDuration:100,scrollZoom:!1,center:[this.bibracteY,this.bibracteX],maxBounds:new uH.a.LngLatBounds(new uH.a.LngLat(this.extent[0][1],this.extent[0][0]),new uH.a.LngLat(this.extent[1][1],this.extent[1][0]))};this.currentStyle=t.fond_de_carte,this.map=new uH.a.Map(n),this.map.on("load",()=>{if(this.mapLoaded=!0,t.calques_mapbox_visible)for(let n in t.calques_mapbox_visible)this.map.setLayoutProperty(t.calques_mapbox_visible[n],"visibility","visible");if(t.calques_mapbox_hidden)for(let n in t.calques_mapbox_hidden)this.map.setLayoutProperty(t.calques_mapbox_hidden[n],"visibility","none");for(this.waitingPois.length>0&&(this.setPois(this.waitingPois),this.waitingPois=[]),this.waitingData&&(this.setMapData(this.waitingData),this.waitingData=null);this.resizeQueue.length>0;){let t=this.resizeQueue.shift();this.resizeFeatures(t[0],t[1],t[2])}for(;this.zoomQueue.length>0;){let t=this.zoomQueue.shift();this.zoomFeature(t)}var e=new uH.a.ScaleControl({maxWidth:85,unit:"metric"});this.map.addControl(e,"bottom-right")}),this.map.on("styledata",()=>{if(this.waitingInfos){if(this.mapLoaded=!0,this.waitingInfos.calques_mapbox_visible)for(let e in t.calques_mapbox_visible)this.map.setLayoutProperty(t.calques_mapbox_visible[e],"visibility","visible");if(this.waitingInfos.calques_mapbox_hidden)for(let e in t.calques_mapbox_hidden)this.map.set
147LayoutProperty(t.calques_mapbox_hidden[e],"visibility","none");for(this.waitingPois.length>0&&(this.setPois(this.waitingPois),this.waitingPois=[]),this.waitingData&&(this.setMapData(this.waitingData),this.waitingData=null);this.resizeQueue.length>0;){let t=this.resizeQueue.shift();this.resizeFeatures(t[0],t[1],t[2])}for(;this.zoomQueue.length>0;){let t=this.zoomQueue.shift();this.zoomFeature(t)}this.waitingInfos=null}}),this.map.on("click","poi_unclustered",t=>{this.clickEnabled&&(t.features.length>0&&(this.selectFeature(t.features[0].properties.id,!1),this.featureClicked(t.features[0].properties.id)),t.preventDefault())}),this.map.on("click",t=>{this.clickEnabled&&(t.defaultPrevented||this.emptyClicked&&(this.resizeFeatures(null,!0),this.emptyClicked(),console.log(this.emptyClicked)))}),this.map.on("drag",t=>{this.interacted&&this.interacted()}),this.map.on("zoom",t=>{this.interacted&&this.interacted()}),this.map.on("pitch",t=>{this.interacted&&this.interacted()}),this.map.loadImage("/assets/img/poi/flag.png",(t,e)=>{if(t)throw t;this.map.addImage("flag",e)}),this.map.loadImage("/assets/img/poi/pin_ph.png",(t,e)=>{if(t)throw t;this.map.addImage("pin_ph",e)})}setPois(t){if(!this.mapLoaded)return void(this.waitingPois=t);this.map.getSource("poi_source")&&(this.map.removeLayer("poi_unclustered"),this.map.removeSource("poi_source"));let e=!1;this.allFeatures=[];for(let n of t)n.twothirds&&(e=n.twothirds),this.allFeatures.push({type:"Feature",properties:{id:n.id,icon:n.icon,category:n.category?n.category:0,iconSize:n.onlyShowIfSelected?0:1,principal:n.onlyShowIfSelected?"false":"true",filtered:n.onlyShowIfSelected?"true":"false"},geometry:{type:"Point",coordinates:n.coords}});this.poiSource={type:"geojson",promoteId:"id",data:{type:"FeatureCollection",features:this.allFeatures},cluster:!1,clusterRadius:20,clusterProperties:{cat:["*",["get","category"]]},filter:["==",["get","filtered"],"false"]},this.clusterLayer={id:"poi_clusters",type:"circle",source:"poi_source",filter:["has","point_count"],paint:{"circle-color":["case",["==",["get","cat"],0],"#4762B2","#fff"],"circle-stroke-color":"#333335","circle-stroke-width":1,"circle-radius":12}},this.clusterCountLayer={id:"poi_clusters_count",type:"symbol",source:"poi_source",filter:["has","point_count"],layout:{"text-field":"{point_count_abbreviated}","text-font":["DIN Offc Pro Medium","Arial Unicode MS Bold"],"text-size":14,"text-allow-overlap":!0},paint:{"text-color":["case",["==",["get","cat"],0],"#fff","#131313"]}},this.poiLayer={id:"poi_unclustered",source:"poi_source",type:"symbol",filter:["!",["has","point_count"]],layout:{"icon-image":["get","icon"],"icon-size":e?.75:1,"icon-anchor":"bottom","icon-allow-overlap":!0}},this.map.addSource("poi_source",this.poiSource),this.map.addLayer(this.poiLayer)}selectFeature(t,e=!0){this.resizeFeatures(null,!0,!1,!1),this.resizeFeatures(t,!1),e&&this.zoomFeature(t)}zoomFeature(t){if(!this.allFeatures)return void this.zoomQueue.push(t);null==this.origZoom&&(this.origZoom=this.map.getZoom());let e=this.map.getCenter();for(let n of this.allFeatures)if(n.properties.id.split("-")[0]==t){let t=n.geometry.coordinates,i=Math.max(Math.abs(t[0]-e.lng),Math.abs(t[1]-e.lat));this.map.zoomTo(i>.02?10:this.origZoom);break}}resizeFeatures(t,e,n=!1,i=!0){if(!this.allFeatures)return void this.resizeQueue.push([t,e,n]);let r;null!=t&&(r=t.split("-")[0]);for(let s of this.allFeatures)if(null==t||s.properties.id.split("-")[0]==r){s.properties.iconSize=e||n?"true"==s.properties.principal?1:0:1,s.properties.filtered=0==s.properties.iconSize?"true":"false";let i=s.properties.icon;i=i.replace("_selected",""),null==t||s.properties.id.split("-")[0]!=r||n||(i+="_selected"),s.properties.icon=i}i&&this.refreshMap()}fitToBoundsInstant(t,e={}){let n=t;if(null==n){let t=.01;n=[[this.bibracteY-t,this.bibracteX+t],[this.bibracteY+t,this.bibracteX-t]]}let i=this.map.cameraForBounds(n,e);null!=i&&this.map.jumpTo({zoom:i.zoom,center:i.center})}centerOnCoords(t,e){this.map.flyTo({center:[t,e]})}findFeature(t){for(let e of this.allFeatures)if(e.properties.id==t)return e;return null}project(t){return this.map.project(t)}refreshMap(){0!=this.allFeatures.length&&this.map.getSource("poi_source").setData({type:"FeatureCollection",features:this.allFeatures})}zoomIn(){this.map.zoomIn()}zoomOut(){this.map.zoomOut()}getDefaultExtent(){let t=.01;return[[this.bibracteY-t,this.bibracteX+t],[this.bibracteY+t,this.bibracteX-t]]}boundingExtent(t){let e,n,i,r;for(let s of t)(null==e||s[0]<e)&&(e=s[0]),(null==i||s[0]>i)&&(i=s[0]),(null==n||s[1]<n)&&(n=s[1]),(null==r||s[1]>r)&&(r=s[1]);return[[e,r],[i,n]]}resize(){this.map&&this.map.resize()}}return t.\u0275fac=function(e){return new(e||t)(wo(mc),wo(VM))},t.\u0275cmp=Ut({type:t,selectors:[["app-map"]],viewQuery:function(t,e){if(1&t&&nc(hH,1),2&t){let t;ec(t=ic())&&(e.mapElementRef=t.first)}},decls:4,vars:2,consts:[["id","mapbox-map"],["map",""],["class","cursor component_zoom_in",3,"click",4,"ngIf"],["class","cursor component_zoom_out",3,"click",4,"ngIf"],[1,"curs
147or","component_zoom_in",3,"click"],[1,"cursor","component_zoom_out",3,"click"]],template:function(t,e){1&t&&(So(0,"div",0,1),xo(2,dH,1,0,"div",2),xo(3,pH,1,0,"div",3)),2&t&&(Qr(2),Co("ngIf",e.showZoomButtons),Qr(1),Co("ngIf",e.showZoomButtons))},directives:[zu],styles:["#mapbox-map[_ngcontent-%COMP%]{width:100%;height:100%}#mapbox-controls[_ngcontent-%COMP%]{position:absolute;top:0;left:0;pointer-events:none}.component_zoom_in[_ngcontent-%COMP%]{position:absolute;bottom:150px;right:5px;pointer-events:all}@media (min-width:992px){.component_zoom_in[_ngcontent-%COMP%]{bottom:195px}}.component_zoom_out[_ngcontent-%COMP%]{position:absolute;bottom:90px;right:5px;pointer-events:all}@media (min-width:992px){.component_zoom_out[_ngcontent-%COMP%]{bottom:135px}}"]}),t})();const gH=["mapstash"],fH=["mapcontainer"];let _H=(()=>{class t{constructor(t){this.mapStashService=t,this.title="front-universal"}ngAfterViewInit(){this.mapStashService.registerStash(this.mapStash,this.mapContainer)}}return t.\u0275fac=function(e){return new(e||t)(wo(VM))},t.\u0275cmp=Ut({type:t,selectors:[["app-root"]],viewQuery:function(t,e){if(1&t&&(nc(gH,1),nc(fH,1)),2&t){let t;ec(t=ic())&&(e.mapStash=t.first),ec(t=ic())&&(e.mapContainer=t.first)}},decls:9,vars:0,consts:[["id","mapstash"],["mapstash",""],["id","mapcontainer"],["mapcontainer",""],["id","sassbridge"],["id","sassimagebridge"],["id","sassgutterbridge"]],template:function(t,e){1&t&&(So(0,"router-outlet"),Mo(1,"div",0,1),Mo(3,"div",2,3),So(5,"app-map"),Oo(),Oo(),So(6,"div",4),So(7,"div",5),So(8,"div",6))},directives:[eb,mH],styles:["#mapcontainer[_ngcontent-%COMP%]{width:100%;height:100%}#mapstash[_ngcontent-%COMP%]{display:none}"]}),t})(),vH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t,bootstrap:[_H]}),t.\u0275inj=ct({providers:[],imports:[[Th.withServerTransition({appId:"serverApp"}),lH,lg,cg,Fh,xm,Vf,m_,iv]]}),t})();(function(){if(jc)throw new Error("Cannot enable prod mode after platform setup.");Hc=!1})(),document.addEventListener("DOMContentLoaded",()=>{Sh().bootstrapModule(vH).catch(t=>console.error(t))})},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);

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.