PageSourceSearch

https://www.banqueducanada.ca/wp-content/themes/parent-build/BoCSS/js/BoCSS.js?dts=20260408190432

js banqueducanada.ca collected 2026-09-24 09:37:02 UTC 38,843 bytes, 21 lines download raw bytes

1"use strict";jQuery(document).ready((function(s){s().slick&&s(".bocss-album").each((function(){var t=s(this).data("album"),a=""!==s(this).data("autoplay"),o=parseInt(s(this).data("autoplay"))||0,i=s(this).data("count"),e=s(this).find(".bocss-album__slider"),n=s(this).find(".bocss-album__navigation"),l=64*i+30,r=s(this);l<s(this).width()&&n.addClass("bocss-album__navigation--static"),e.slick({prevArrow:'<button type="button" aria-label="Previous" class="bocss-album__prev"><span class="bocss-album__button bocss-album__button--prev"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><polyline points="15 18 9 12 15 6"/></svg></span></button>',nextArrow:'<button type="button" aria-label="Next" class="bocss-album__next"><span class="bocss-album__button bocss-album__button--next"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"/></svg></span></button>',arrows:!0,autoplay:a,autoplaySpeed:o,slidesToShow:1,slidesToScroll:1,speed:200,adaptiveHeight:!0,asNavFor:".bocss-album__navigation[data-album="+t+"]"}),n.slick({arrows:!1,slidesToScroll:1,slidesToShow:i,asNavFor:".bocss-album__slider[data-album="+t+"]",focusOnSelect:!0,variableWidth:!0,infinite:!0,speed:200,responsive:[{breakpoint:l,settings:{infinite:!0}}]}),s(window).resize((function(){s(this).width()<l&&n.hasClass("bocss-album__navigation--static")?n.removeClass("bocss-album__navigation--static"):l<r.width()&&!n.hasClass("bocss-album__navigation--static")&&n.addClass("bocss-album__navigation--static")}))}))}));
2"use strict";var sessionStorageAvailable=storageAvailable.checkSessionStorage();jQuery(document).ready((function(e){var s=e(".bocss-banner"),n=e(document).height(),a=e("#foot-nav").outerHeight(),o=e(window),r=[];s.each((function(s,n){var a=e(n),o={key:"showBanner"+n.id,banner:a,dismiss:a.find(".bocss-banner__dismiss"),showBanner:!0};sessionStorageAvailable&&("false"===sessionStorage.getItem(o.key)&&(o.showBanner=!1));o.dismiss.click((function(){"undefined"!=typeof Storage&&(o.banner.removeClass("bocss-banner--active"),sessionStorageAvailable&&sessionStorage.setItem(o.key,!1),o.showBanner=!1,i())})),r.push(o)}));var i=function(){var e=o.scrollTop(),s=Math.floor(n-e-o.height()),i=0;r.forEach((function(n){n.showBanner&&(e<=0||s<=a?n.banner.removeClass("bocss-banner--active").css("margin-bottom",""):(n.banner.addClass("bocss-banner--active").css("margin-bottom",i).css("z-index",1e3-i),i+=n.banner.outerHeight()))}))};i(),o.scroll(i)}));
3"use strict";jQuery(document).ready((function(t){t('button[name="toggleHtml"]').on("click",(function(){const e=t(this).parent().parent(),n=e.children(".bocss-documentation__html");let i=this.innerText,o=e.prevObject[0].dataset;i===o.showTitle?this.innerText=o.hideTitle:i===o.hideTitle&&(this.innerText=o.showTitle),n.toggle("400")}))}));
4"use strict";function createEmailComponent(t,e,n,c,o,s,a){const i={href:"mailto:"+(t+"@"+e),content:c,htmlId:s,className:n,dataAttributes:o},r="emailComponent"+a,u=document.getElementById(r);if(u){const t=createAnchorTag(i);u.replaceChildren(t)}}function createAnchorTag(t){const e=document.createElement("a");return e.setAttribute("href",t.href),t.htmlId&&e.setAttribute("id",t.htmlId),t.className&&e.setAttribute("class",t.className),setDataAttributes(e,t.dataAttributes),setContent(e,t.content),e}function setDataAttributes(t,e){if(e){e.split("|").forEach((e=>{let[n,c]=e.split("="),o=n.trim(),s=c.replace(/"/g,"");t.setAttribute(o,s)}))}}function setContent(t,e){let n=(new DOMParser).parseFromString(e,"text/html");t.append(n.body.firstChild)}function activateEmailInteractiveDocumentation(){const t='span[id^="emailComponent"]';let e=document.querySelector(t);if(e)n(e);else{const c=new MutationObserver(((c,o)=>{c.forEach((()=>{const c=document.querySelector(t);c&&(e=c,o.disconnect(),n(e))}))})),o=document.querySelector(".post-content");c.observe(o,{childList:!0,subtree:!0})}function n(t){const e=document.querySelector('input.bocss-input__text[name="class"]'),n=document.querySelector('input.bocss-input__text[name="content"]'),c=document.querySelector('input.bocss-input__text[name="data_attribute"]'),o=document.querySelector('input.bocss-input__text[name="html_id"]'),s=document.querySelector('input.bocss-input__text[name="email"]'),a=e?e.value:"",i=n?n.value:"",r=c?c.value:"",u=o?o.value:"";let l="test",m="test.ca";s&&s.value.includes("@")&&([l,m]=s.value.split("@"));createEmailComponent(l,m,a,i,r,u,t?t.getAttribute("id").substring("emailComponent".length):"test")}}
5"use strict";jQuery(document).ready((function(){if(jQuery(".bocss-info__main").length&&"undefined"!=typeof am4core){var e={chartData:"",deviceData:"",dateMetricViews:"",dateMetricDevices:"",updateChartData:function(){var e=(window.hasOwnProperty("bocVars")?bocVars.homeUrl:window.CFCT.url)+"info"+infoPageVars.url;jQuery.when.apply(jQuery,[this.getData(e,{json:"analytics"})]).done(this.urlsAjaxDone)},getData:function(a,t){var i=jQuery.Deferred();return jQuery.ajax({url:a,data:t,type:"GET",success:function(a){var t,r=a.chartData;if(""!==r){for(t in e.chartData||(e.chartData={},e.deviceData={}),jQuery("#scrollBox .bocss-info__number").text(a.scrollDepthAvg),e.dateMetricViews=a.dateMetricViews,e.dateMetricDevices=a.dateMetricDevices,r[0])r[0].hasOwnProperty(t)&&(e.chartData[t]||(e.chartData[t]=0),e.chartData[t]+=r[0][t].views);for(var s in r[1])if(r[1].hasOwnProperty(s)){t=r[1][s].date,e.deviceData[t]||(e.deviceData[t]={desktop:0,mobile:0,tablet:0});var o=r[1][s].device;e.deviceData[t][o]+=r[1][s].views}e.deviceData=Object.keys(e.deviceData).sort().reduce((function(a,t){return a[t]=e.deviceData[t],a}),{})}i.resolve()},error:function(){i.resolve()}}),i.promise()},urlsAjaxDone:function(){if(e.reformatData(),infoPageAmCharts.createCharts(),infoPageAmCharts.setupLanguages(),infoPageAmCharts.setupTheme(),e.chartData.length>1){jQuery("#bocss-info__viewsBox").show(),jQuery("#bocss-info__viewsTitle").show();
5var a=infoPageHelper.getTotalViews(e.chartData),t=a/e.chartData.length;"week"===e.dateMetricViews&&(t/=7),"month"===e.dateMetricViews&&(t/=30),jQuery("#bocss-info__avgViews .bocss-info__number").text(numeral(t).format("<1")),jQuery("#bocss-info__totalViews .bocss-info__number").text(numeral(a).format()),infoPageAmCharts.viewsLineChart.data=e.chartData,infoPageAmCharts.viewsLineChart.allTimeViews=a,jQuery("#"+infoPageAmCharts.viewsLineChartId).length&&infoPageAmCharts.loadLineChart(e.dateMetricViews),jQuery("#"+infoPageAmCharts.viewsPieChartId).length&&infoPageAmCharts.loadPieChart()}else 1===e.chartData.length?(jQuery("#bocss-info__viewsChartContainer").hide(),jQuery(".bocss-info__spinner").hide()):(jQuery("#bocss-info__viewsBox").show(),jQuery("#bocss-info__viewsTitle").show(),jQuery("#bocss-info__viewsChartContainer").hide(),jQuery(".bocss-info__spinner").hide(),jQuery("#chartMessage").show());e.deviceData.length>0?(infoPageAmCharts.deviceChart.data=e.deviceData,jQuery("#"+infoPageAmCharts.deviceChartId).length&&infoPageAmCharts.loadDeviceChart(e.dateMetricDevices)):jQuery("#bocss-info__deviceChartContainer").hide(),e.dataLoaded(),jQuery("#bocss-info__allTimePageViews").css("opacity",1)},reformatData:function(){var e,a=[],t=[];if(Object.keys(this.chartData).length>0){for(e in this.chartData)this.chartData.hasOwnProperty(e)&&a.push({date:e,views:this.chartData[e]});this.chartData=a}if(Object.keys(this.deviceData).length>0){for(e in this.deviceData)this.deviceData.hasOwnProperty(e)&&t.push({date:e,desktop:this.deviceData[e].desktop,mobile:this.deviceData[e].mobile,tablet:this.deviceData[e].tablet});this.deviceData=t}},dataLoaded:function(){jQuery(".bocss-info__loading").hide(),jQuery("#bocss-info__viewsContent").css("opacity","1"),jQuery("#scrollBox .bocss-info__number").css("opacity","1"),jQuery("#bocss-info__viewsBox").removeClass("bocss-info__box")}};e.updateChartData()}}));
6"use strict";if("undefined"!=typeof am4core){var infoConfig={magIconBlack:"",magIconWhite:"",themes:{light:{font:"#000",tooltipSeriesFill:"#fff",tooltipDateFont:"#fff",tooltipDateFill:"#000",magIconBgFill:"#fff",magIcon:"",magIconHover:"",scrollBackground:"#f3f3f3",gripBackground:"#ccc"},dark:{font:"#fff",tooltipSeriesFill:"#1a1820",tooltipDateFont:"#000",tooltipDateFill:"#fff",magIconBgFill:"#000",magIcon:"",magIconHover:"",scrollBackground:"#171717",gripBackground:"#444"}},titleFontSize:14,tooltipFontSize:14,fontSize:14,tooltipSeriesStrokeWidth:2,tooltipDateAxisStrokeWidth:0,labelsEn:{percent:"%",viewsChart:{textViews:"views",titleDay:"Views by date",titleWeek:"Views by week",titleMonth:"Views by month"},deviceChart:{titleText:"Users by device category",names:["Desktop","Mobile","Tablet"]},dateFormats:{monthYearFormat:"MMM yyyy",ttDateFormat:"MMM d',' yyyy",dayDateFormat:"MMM d",monthDateFormat:"MMM",yearFormat:"yyyy"}},labelsFr:{percent:" %",viewsChart:{textViews:"vues",titleDay:"Vues par date",titleWeek:"Vues par semaine",titleMonth:"Vues par mois"},deviceChart:{titleText:"Utilisateurs par type d’appareil",names:["Ordinateurs ","Téléphones mobiles ","Tablettes "]},dateFormats:{monthYearFormat:"[text-transform: lowercase]MMM[/] yyyy",ttDateFormat:"d MMM yyyy",dayDateFormat:"d MMM",monthDateFormat:"[text-transform: lowercase]MMM[/]",yearFormat:"yyyy"}},setup:function(){this.magIconBlack="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA5NiA5NiIgaGVpZ2h0PSI5NnB4IiBpZD0iem9vbV9vdXQiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDk2IDk2IiB3aWR0aD0iOTZweCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgZmlsbD0iI2ZmZiI+PHBhdGggeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBkPSJNOTAuODI5LDg1LjE3MUw2OC4xMjEsNjIuNDY0QzczLjA0Nyw1Ni4zMDcsNzYsNDguNSw3Niw0MEM3NiwyMC4xMTgsNTkuODgyLDQsNDAsNEMyMC4xMTgsNCw0LDIwLjExOCw0LDQwczE2LjExOCwzNiwzNiwzNiAgYzguNSwwLDE2LjMwNi0yLjk1MywyMi40NjQtNy44NzlsMjIuNzA4LDIyLjcwOGMxLjU2MiwxLjU2Miw0LjA5NSwxLjU2Miw1LjY1NywwQzkyLjM5MSw4OS4yNjcsOTIuMzkxLDg2LjczMyw5MC44MjksODUuMTcxeiAgIE00MCw2OGMtMTUuNDY0LDAtMjgtMTIuNTM2LTI4LTI4czEyLjUzNi0yOCwyOC0yOGMxNS40NjQsMCwyOCwxMi41MzYsMjgsMjhTNTUuNDY0LDY4LDQwLDY4eiIvPjxwYXRoIGQ9Ik01Niw0MGMwLDIuMjA5LTEuNzkxLDQtNCw0SDI4Yy0yLjIwOSwwLTQtMS43OTEtNC00bDAsMGMwLTIuMjA5LDEuNzkxLTQsNC00aDI0QzU0LjIwOSwzNiw1NiwzNy43OTEsNTYsNDBMNTYsNDB6Ii8+PC9zdmc+",this.magIconWhite="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjwhRE9DVFlQRSBzdmcgIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nICAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz48c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDk2IDk2IiBoZWlnaHQ9Ijk2cHgiIGlkPSJ6b29tX291dCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgOTYgOTYiIHdpZHRoPSI5NnB4IiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48cGF0aCBkPSJNOTAuODI5LDg1LjE3MUw2OC4xMjEsNjIuNDY0QzczLjA0Nyw1Ni4zMDcsNzYsNDguNSw3Niw0MEM3NiwyMC4xMTgsNTkuODgyLDQsNDAsNEMyMC4xMTgsNCw0LDIwLjExOCw0LDQwczE2LjExOCwzNiwzNiwzNiAgYzguNSwwLDE2LjMwNi0yLjk1MywyMi40NjQtNy44NzlsMjIuNzA4LDIyLjcwOGMxLjU2MiwxLjU2Miw0LjA5NSwxLjU2Miw1LjY1NywwQzkyLjM5MSw4OS4yNjcsOTIuMzkxLDg2LjczMyw5MC44MjksODUuMTcxeiAgIE00MCw2OGMtMTUuNDY0LDAtMjgtMTIuNTM2LTI4LTI4czEyLjUzNi0yOCwyOC0yOGMxNS40NjQsMCwyOCwxMi41MzYsMjgsMjhTNTUuNDY0LDY4LDQwLDY4eiIvPjxwYXRoIGQ9Ik01Niw0MGMwLDIuMjA5LTEuNzkxLDQtNCw0SDI4Yy0yLjIwOSwwLTQtMS43OTEtNC00bDAsMGMwLTIuMjA5LDEuNzkxLTQsNC00aDI0QzU0LjIwOSwzNiw1NiwzNy43OTEsNTYsNDBMNTYsNDB6Ii8+PC9zdmc+",this.themes.light.magIcon=this.magIconBlack,this.themes.light.magIconHover=this.magIconWhite,this.themes.dark.magIcon=this.magIconWhite,this.themes.dark.magIconHover=this.magIconBlack}};infoConfig.setup()}
7"use strict";if("undefined"!=typeof am4core){am4core.useTheme(am4themes_animated),"undefined"!=typeof bocAmchart4&&am4core.useTheme(bocAmchart4.bocTheme),am4core.options.commercialLicense=!0;var infoPageAmCharts={viewsPieChartId:"bocss-info__viewsPieChart",deviceChartId:"bocss-info__deviceChart",viewsLineChartId:"bocss-info__viewsChart",viewsPieChart:"",deviceChart:"",viewsLineChart:"",dateAxis:"",labels:"",theme:"",createCharts:function(){this.viewsLineChart=am4core.create(this.viewsLineChartId,am4charts.XYChart),this.viewsPieChart=
7am4core.create(this.viewsPieChartId,am4charts.PieChart),this.deviceChart=am4core.create(this.deviceChartId,am4charts.XYChart)},loadLineChart:function(e){this.viewsLineChart.fontSize=infoConfig.fontSize;var t=this.viewsLineChart.titles.create();switch(this.dateAxis=this.viewsLineChart.xAxes.push(new am4charts.DateAxis),this.dateAxis.tooltipDateFormat=this.labels.dateFormats.ttDateFormat,this.dateAxis.dateFormats.setKey("day",this.labels.dateFormats.dayDateFormat),this.dateAxis.periodChangeDateFormats.setKey("day",this.labels.dateFormats.dayDateFormat),this.dateAxis.dateFormats.setKey("month",this.labels.dateFormats.monthDateFormat),this.dateAxis.periodChangeDateFormats.setKey("month","[bold]yyyy[/]"),this.dateAxis.endLocation=.75,this.setupDateAxis(this.dateAxis),e){case"month":this.setupTitle(t,this.labels.viewsChart.titleMonth),this.dateAxis.baseInterval={timeUnit:"month",count:1},this.dateAxis.adapter.add("getTooltipText",(function(e){var t=infoPageAmCharts.viewsLineChart,a=infoPageAmCharts.labels.dateFormats.monthDateFormat,i=infoPageAmCharts.labels.dateFormats.dayDateFormat,r=t.dateFormatter.parse(e,i);return t.dateFormatter.format(r,a)}));break;case"week":this.setupTitle(t,this.labels.viewsChart.titleWeek),this.dateAxis.adapter.add("getTooltipText",(function(e){var t=infoPageAmCharts.viewsLineChart,a=infoPageAmCharts.labels.dateFormats.dayDateFormat,i=t.dateFormatter.parse(e,a),r=t.dateFormatter.format(i,a),s=infoPageHelper.getWeek(i);return e=r+" - "+t.dateFormatter.format(t.dateFormatter.parse(s),a),infoPageHelper.isFrench()&&(e=infoPageHelper.updateFirstDayFrench(e)),e}));break;default:this.setupTitle(t,this.labels.viewsChart.titleDay),this.dateAxis.adapter.add("getTooltipText",(function(e){return infoPageHelper.isFrench()&&(e=infoPageHelper.updateFirstDayFrench(e)),e}))}var a=this.viewsLineChart.yAxes.push(new am4charts.ValueAxis);a.renderer.minWidth=35,a.renderer.minGridDistance=40,a.renderer.axisFills.template.disabled=!0,a.renderer.ticks.template.disabled=!0,this.setupValueAxis(a);var i=this.viewsLineChart.series.push(new am4charts.LineSeries);i.dataFields.dateX="date",i.dataFields.valueY="views",i.strokeWidth=2,i.tensionX=.95,i.tooltipText="{valueY} "+this.labels.viewsChart.textViews,this.setupSeriesTooltip(i),i.showOnInit=!1,this.viewsLineChart.cursor=new am4charts.XYCurs
7or,this.viewsLineChart.cursor.snapToSeries=i,this.viewsLineChart.cursor.lineY.disabled=!0,this.viewsLineChart.cursor.behavior="zoomX",this.viewsLineChart.zoomOutButton.icon.disabled=!0,this.viewsLineChart.zoomOutButton.background.defaultState.properties.fill=this.getColor("magIconBgFill"),this.viewsLineChart.zoomOutButton.background.states.getKey("hover").properties.fill=am4core.color("#636363"),this.viewsLineChart.zoomOutButton.background.states.getKey("down").properties.fill=am4core.color("#636363");var r=this.viewsLineChart.zoomOutButton.createChild(am4core.Image);r.href=infoConfig.themes[infoPageAmCharts.theme].magIconHover,r.height=15,r.width=15,r.interactionsEnabled=!1,this.viewsLineChart.zoomOutButton.events.on("over",(function(){r.href=infoConfig.themes[infoPageAmCharts.theme].magIcon})),this.viewsLineChart.zoomOutButton.events.on("out",(function(){r.href=infoConfig.themes[infoPageAmCharts.theme].magIconHover})),this.viewsLineChart.scrollbarX=new am4core.Scrollbar,this.viewsLineChart.scrollbarX.parent=this.viewsLineChart.bottomAxesContainer,this.viewsLineChart.scrollbarX.background.fill=this.getColor("scrollBackground"),this.viewsLineChart.scrollbarX.background.fillOpacity=.5,this.viewsLineChart.scrollbarX.thumb.background.fill=this.getColor("gripBackground"),this.viewsLineChart.scrollbarX.startGrip.background.fill=this.getColor("gripBackground"),this.viewsLineChart.scrollbarX.endGrip.background.fill=this.getColor("gripBackground"),this.viewsLineChart.events.on("ready",(function(){infoPageAmCharts.zoomToDates(e)}))},loadPieChart:function(){this.viewsPieChart.data=[{value:0},{value:0,config:{fill:"#EEE",stroke:"#EEE"}}],this.viewsPieChart.innerRadius=am4core.percent(90);var e=this.viewsPieChart.series.push(new am4charts.PieSeries);e.dataFields.value="value",e.slices.template.configField="config",e.slices.template.states.getKey("hover").properties.scale=1,e.slices.template.states.getKey("active").properties.shiftRadius=0,e.slices.template.tooltipText="",e.labels.template.disabled=!0,e.showOnInit=!1,e.hiddenState.properties.opacity=1,e.hiddenState.properties.endAngle=-90,e.hiddenState.properties.startAngle=-90,this.viewsPieChart.events.on("datavalidated",(function(){infoPageAmCharts.updateViewsPieChart()})),this.dateAxis.events.on("startendchanged",helpers.debounce(infoPageAmCharts.updateViewsPieChart,5)),this.dateAxis.events.on("ready",helpers.debounce(infoPageAmCharts.updateViewsPieChart,5))},loadDeviceChart:function(e){this.deviceChart.fontSize=infoConfig.fontSize,this.deviceChart.responsive.enabled=!1;var t=this.deviceChart.xAxes.push(new am4charts.DateAxis);if(this.setupDateAxis(t),"month"===e)t.dateFormats.setKey("month",this.labels.dateFormats.monthDateFormat),t.baseInterval={timeUnit:"month",count:1},t.renderer.minGridDistance=50;else t.dateFormats.setKey("year",this.labels.dateFormats.yearFormat),t.baseInterval={timeUnit:"year",count:1},t.baseInterval.timeUnit="year",t.renderer.minGridDistance=30;var a=this.deviceChart.titles.create();this.setupTitle(a,this.labels.deviceChart.titleText);var i=this.deviceChart.yAxes.push(new am4charts.ValueAxis);i.calculateTotals=!0,i.max=100,i.strictMinMax=!0,i.renderer.labels.template.adapter.add("text",(function(e){return e+infoPageAmCharts.labels.percent})),this.setupValueAxis(i);var r=this.labels.deviceChart.names;this.deviceChart.series.push(infoPageAmCharts.createDeviceSeries(r[0],"desktop")),this.deviceChart.series.push(infoPageAmCharts.createDeviceSeries(r[1],"mobile")),this.deviceChart.series.push(infoPageAmCharts.createDeviceSeries(r[2],"tablet"));var s=am4core.create("bocss-info__deviceLegend",am4core.Container);s.width=am4core.percent(100),s.fontSize=infoConfig.fontSize,this.deviceChart.legend=new am4charts.Legend,this.deviceChart.legend.parent=s,this.deviceChart.legend.interactionsEnabled=!1,this.deviceChart.legend.useDefaultMarker=!0,this.deviceChart.legend.labels.template.fill=this.getColor("font");var o=this.deviceChart.legend.markers.template.children.getIndex(0);o.cornerRadius(12,12,12,12),o.fillOpacity=.5,o.strokeWidth=1,o.strokeOpacity=1,o.height=18,o.width=18,o.adapter.add("stroke",(function(e,t){return t.properties.fill&&(e=am4core.color(t.properties.fill.hex)),e})),this.deviceChart.legend.events.on("datavalidated",infoPageHelper.resizeLegend),this.deviceChart.legend.events.on("maxsizechanged",infoPageHelper.resizeLegend),this.deviceChart.cursor=new am4charts.XYCurs
7or,this.deviceChart.cursor.lineY.disabled=!0,this.deviceChart.cursor.behavior="none",this.deviceChart.events.on("datavalidated",infoPageHelper.resizeLegend),this.deviceChart.events.on("maxsizechanged",infoPageHelper.resizeLegend)},updateViewsPieChart:function(){var e=infoPageAmCharts.viewsLineChart,t=infoPageAmCharts.viewsPieChart,a=infoPageAmCharts.dateAxis,i=infoPageAmCharts.labels.dateFormats.ttDateFormat;if(e.data.length>0){var r=new Date(a.minZoomed),s=new Date(a.maxZoomed),o=new Date;o.setDate(o.getDate()-1),s>o&&(s=o);var n=e.dateFormatter.format(r,i),h=e.dateFormatter.format(s,i);infoPageHelper.updateDateRange(n,h);var l=e.dateFormatter.format(r),d=e.dateFormatter.format(s),c=0;e.data.forEach((function(t){e.dateFormatter.format(t.date)>=l&&e.dateFormatter.format(t.date)<=d&&(c+=t.views)})),t.data[0].value=c,t.data[1].value=e.allTimeViews-c,t.invalidateRawData(),infoPageHelper.updateRangeViews(c)}},zoomToDates:function(e){var t,a=150;switch(e){case"week":t=a/7;break;case"month":t=(a=270)/30;break;default:t=a}if(this.viewsLineChart.data.length>t){var i=new Date;i.setDate(i.getDate()-a),this.dateAxis.zoomToDates(i,new Date,!1,!0)}},createDeviceSeries:function(e,t){var a=new am4charts.ColumnSeries;return a.dataFields.valueY=t,a.dataFields.valueYShow="totalPercent",a.dataFields.dateX="date",a.name=e,a.tooltipText="{name}: {valueY} ({valueY.totalPercent.formatNumber('#.00')}"+this.labels.percent+")",a.fillOpacity=.5,a.strokeWidth=1,a.stacked=!0,this.setupSeriesTooltip(a),a},setupValueAxis:function(e){e.tooltip.disabled=!0,e.min=0,e.renderer.grid.template.stroke=this.getColor("font"),e.renderer.grid.template.opacity=.5,e.renderer.labels.template.fill=this.getColor("font")},setupSeriesTooltip:function(e){e.tooltip.getFillFromObject=!1,e.tooltip.getStrokeFromObject=!0,e.tooltip.label.fill=this.getColor("font"),e.tooltip.background.strokeWidth=infoConfig.tooltipSeriesStrokeWidth,e.tooltip.background.fillOpacity=.8,e.tooltip.background.fill=this.getColor("tooltipSeriesFill"),e.tooltip.label.fontSize=infoConfig.tooltipFontSize},setupTitle:function(e,t){e.text=t,e.fontSize=infoConfig.titleFontSize,e.fontWeight="bold",e.fill=this.getColor("font"),e.marginBottom=20},setupDateAxis:function(e){e.tooltip.background.strokeWidth=infoConfig.tooltipDateAxisStrokeWidth,e.tooltip.background.pointerLength=0,e.tooltip.background.fill=this.getColor("tooltipDateFill"),e.tooltip.dy=5,e.tooltip.label.fill=this.getColor("tooltipDateFont"),e.tooltip.label.fontSize=infoConfig.tooltipFontSize,e.renderer.grid.template.location=0,e.renderer.axisFills.template.disabled=!0,e.renderer.ticks.template.disabled=!0,e.renderer.grid.template.stroke=this.getColor("font"),e.renderer.grid.template.opacity=.5,e.renderer.labels.template.fill=this.getColor("font"),e.renderer.minGridDistance=80},setupLanguages:function(){infoPageHelper.isFrench()?(this.viewsLineChart.language.locale=am4lang_fr_FR,this.deviceChart.language.locale=am4lang_fr_FR,this.labels=infoConfig.labelsFr):this.labels=infoConfig.labelsEn},setupTheme:function(){infoPageHelper.isDarkTheme()?this.theme="dark":this.theme="light"},getColor:function(e){return am4core.color(infoConfig.themes[this.theme][e])}}}
8"use strict";if("undefined"!=typeof am4core)var infoPageHelper={getTotalViews:function(e){var t=0;return e.forEach((function(e){t+=e.views})),t},updateDateRange:function(e,t){this.isFrench()&&(e=this.updateFirstDayFrench(e,!0),t=this.updateFirstDayFrench(t,!0)),jQuery("#bocss-info__startDate").html(e),jQuery("#bocss-info__endDate").html(t)},updateFirstDayFrench:function(e,t){var n="[baseline-shift: super; font-size: 10;]",r="[/b]";return t&&(n="<sup>",r="</sup>"),"1"===e.charAt(0)&&" "===e.charAt(1)&&(e="1"+n+"er"+r+" "+e.substring(1)),e},updateRangeViews:function(e){var t="0.[0]a",n="";(e=Math.round(e))>=1e5&&e<1e6&&(t="0a");var r=numeral(e).format(t);if(infoPageHelper.isFrench()){var i="";if(e>=1e3&&(r=r.slice(0,-1),i="<b>mille</b> "),e>=1e6)i="<b>million"+(e.toString().substr(0,1)>1?"s":"")+"</b> de ";i+=infoConfig.labelsFr.viewsChart.textViews,jQuery("#bocss-info__rangeViewsDescriptor").html(i)}else e>=1e3&&(n="<span>"+r.slice(-1).toString()+"</span>",r=r.slice(0,-1));jQuery("#bocss-info__rangeViews").text(r),""!==n&&(n=jQuery("#bocss-info__rangeViews").html()+n,jQuery("#bocss-info__rangeViews").html(n))},isFrench:function(){return"fr-FR"===document.documentElement.lang},isDarkTheme:function(){return"dark"===document.documentElement.getAttribute("data-theme")},resizeLegend:function(){document.getElementById("bocss-info__deviceLegend").style.height=infoPageAmCharts.deviceChart.legend.contentHeight+"px"},formatDate:function(e){var t=new Date(e),n=t.getMonth()+1,r=t.getDate();return n<10&&(n="0"+n),r<10&&(r="0"+r),[t.getFullYear(),n,r].join("/")},getWeek:function(e){var t=new Date(e),n=t;return n.setDate(t.getDate()+6),this.formatDate(n)}};
9"use strict";class BocLoadingIndicator extends HTMLElement{constructor(){super()}connectedCallback(){this.size=this.hasAttribute("size")?this.getAttribute("size"):50,this.innerHTML='<div class="boc-loading-indicator">\n            <?xml version="1.0" encoding="utf-8"?>\n            <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" \n                style="margin: auto; background: none; display: block; shape-rendering: auto;" width="'.concat(this.size,'px" height="').concat(this.size,'px" \n                viewB
9ox="0 0 100 100" preserveAspectRatio="xMidYMid">    \n              <g transform="rotate(0 50 50)">\n                <rect x="42.5" y="6.5" rx="7.5" ry="7.5" width="17" fill="#204565" height="17" class="animated-rect" opacity="2"></rect>\n              </g>\n              <g transform="rotate(40 50 50)">\n                <rect x="42.5" y="6.5" rx="7.5" ry="7.5" width="17" height="17" fill="#204565" class="animated-rect" opacity="0.3"></rect>\n              </g>\n              <g transform="rotate(80 50 50)">\n                <rect x="42.5" y="6.5" rx="7.5" ry="7.5" width="17" height="17" fill="#204565" class="animated-rect" opacity="0.4"></rect>\n              </g>\n              <g transform="rotate(120 50 50)">\n                <rect x="42.5" y="6.5" rx="7.5" ry="7.5" width="17" height="17" fill="#204565" class="animated-rect" opacity="0.5"></rect>\n              </g>\n              <g transform="rotate(160 50 50)">\n                <rect x="42.5" y="6.5" rx="7.5" ry="7.5" width="17" height="17" fill="#204565" class="animated-rect" opacity="0.6"></rect>\n              </g>\n              <g transform="rotate(200 50 50)">\n                <rect x="42.5" y="6.5" rx="7.5" ry="7.5" width="17" height="17" fill="#204565" class="animated-rect" opacity="0.7"></rect>\n              </g>\n              <g transform="rotate(240 50 50)">\n                <rect x="42.5" y="6.5" rx="7.5" ry="7.5" width="17" height="17" fill="#204565" class="animated-rect" opacity="0.8"></rect>\n              </g>\n              <g transform="rotate(280 50 50)">\n                <rect x="42.5" y="6.5" rx="7.5" ry="7.5" width="17" height="17" fill="#204565" class="animated-rect" opacity="0.9"></rect>\n              </g>\n              <g transform="rotate(320 50 50)">\n                <rect x="42.5" y="6.5" rx="7.5" ry="7.5" width="17" height="17" fill="#204565" class="animated-rect" opacity="1"></rect>\n              </g>\n            </svg>\n        </div>\n        ')}}customElements.define("boc-loading-indicator",BocLoadingIndicator);
10"use strict";jQuery(document).ready((function(o){var t=o("html").attr("lang"),s="Show",i="Hide",e="Show all",l="Hide all";"fr-FR"===t&&(s="Afficher",i="Cacher",e="Afficher tous",l="Cacher tout");var c=o("#bocss-profile__toggleAll"),n=c.clone();let r=o(n).insertAfter(".bocss-profile__toggleable h2, .toggleDiv h2.bocss-profile__toggleable");function p(t){var e=o(t);e.html()===s?e.html(i):e.html(s)}function f(){var t=0===o('.bocss-profile__toggleButton:contains("'+i+'")').length,n=0===o('.bocss-profile__toggleButton:contains("'+s+'")').length;t&&!n?c.html(e):!t&&n&&c.html(l)}r.html(s),r.addClass("bocss-profile__toggleButton"),r.removeAttr("id"),c.click((function(){c.html()===l?(o(".bocss-profile__publication").slideUp(),o(".bocss-profile__toggleable .results").slideUp(),o(".bocss-profile__other-results").slideUp(),c.html(e),r.each((function(){o(this).html(s)}))):(o(".bocss-profile__publication").slideDown(),o(".bocss-profile__toggleable .results").slideDown(),o(".bocss-profile__other-results").slideDown(),c.html(l),r.each((function(){o(this).html(i)})))})),o(".toggleDiv").each((function(){var t=o(this).find("h2").attr("id");o("#"+t).click((function(){p(o(this).next(".bocss-profile__toggleButton")),o(".bocss-profile__"+t).slideToggle()}))})),o(".bocss-profile__toggleButton").click((function(){p(o(this)),o(this).next("div").slideToggle(),f()})),o(".bocss-profile__toggleable h2").click((function(){p(o(this).next(".bocss-profile__toggleButton")),o(this).parent().find(".results").slideToggle(),f()}));var h,g=((h=document.createElement("a").style).cssText="position:sticky;position:-webkit-sticky;position:-ms-sticky;",-1!==h.position.indexOf("sticky"));var d=o("#bocss-profile");if(d.length>0&&!g)o(document).scroll((function(){a()})),o(window).resize((function(){a(),o(".bocss-profile__card").css("width",d.width())})),a();else{var u=o(".navbar").height()+5;d.css("top",u)}function a(){var t=o("#foot-nav"),s=o(document).scrollTop()+window.innerHeight,i=t.offset().top,e=o(".bocss-profile__card");if(window.innerWidth<=991||!(window.outerHeight<o("#main-content").outerHeight()))return d.css("position",""),e.css("position",""),d.css("bottom",""),e.css("top",""),!1;o(document).scrollTop()+window.innerHeight>=t.offset().top&&o(document).scrollTop()>=115&&(d.css("bottom",s-i+45+"px"),e.css("top",-(s-i-45)+"px")),o(document).scrollTop()<=115&&(d.css("position",""),e.css("position",""),e.css("top",""),d.css("bottom","")),o(document).scrollTop()+window.innerHeight<=t.offset().top&&o(document).scrollTop()>=115&&(d.css("position","relative"),e.css("position","fixed"),e.css("width",d.width()),d.css("bottom","0"),e.css("top","55px"))}}));
11"use strict";jQuery(document).ready((function(e){e(".bocss-share").each((function(){e(this).find(".bocss-button").not("a[href*='mailto:']").click((function(e){e.preventDefault(),window.open(this.href,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600")}))}))}));
12"use strict";class LiteYTEmbed extends HTMLElement{connectedCallback(){this.videoId=this.getAttribute("videoid"),this.thumbnailQuality=this.getAttribute("thumbnailquality"),this.maxWidth=this.getAttribute("maxwidth");let e=this.querySelector(".bocss-yt-pre-playbtn");if(this.playLabel=e&&e.textContent.trim()||this.getAttribute("playlabel")||"Play",this.style.maxWidth=this.maxWidth+"px",this.style.backgroundImage||(this.style.backgroundImage='url("https://i.ytimg.com/vi/'.concat(this.videoId,"/").concat(this.thumbnailQuality,'.jpg")')),e||(e=document.createElement("button"),e.type="button",e.classList.add("bocss-yt-pre-playbtn"),this.append(e)),!e.textContent){const t=document.createElement("span");t.className="bocss-yt-visually-hidden",t.textContent=this.playLabel,e.append(t)}e.removeAttribute("href"),this.addEventListener("pointerover",LiteYTEmbed.warmConnections,{once:!0}),this.addEventListener("click",this.addIframe),this.needsYTApiForAutoplay=navigator.vendor.includes("Apple")||navigator.userAgent.includes("Mobi")}static addPrefetch(e,t,i){const a=document.createElement("link");a.rel=e,a.href=t,i&&(a.as=i),document.head.append(a)}static warmConnections(){LiteYTEmbed.preconnected||(LiteYTEmbed.addPrefetch("preconnect","https://www.youtube-nocookie.com"),LiteYTEmbed.addPrefetch("preconnect","https://www.google.com"),LiteYTEmbed.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),LiteYTEmbed.addPrefetch("preconnect","https://static.doubleclick.net"),LiteYTEmbed.preconnected=!0)}fetchYTPlayerApi(){window.YT||window.YT&&window.YT.Player||(this.ytApiPromise=new Promise(((e,t)=>{var i=document.createElement("script");i.src="https://www.youtube.com/iframe_api",i.async=!0,i.onload=t=>{YT.ready(e)},i.onerror=t,this.append(i)})))}async addYTPlayerIframe(e){this.fetchYTPlayerApi(),await this.ytApiPromise;const t=document.createElement("div");this.append(t);const i=Object.fromEntries(e.entries());new YT.Player(t,{width:"100%",videoId:this.videoId,playerVars:i,events:{onReady:e=>{e.target.playVideo()}}})}async addIframe(){if(this.classList.contains("bocss-yt-activated"))return;this.classList.add("bocss-yt-activated");const e=new URLSearchParams(this.getAttribute("params")||[]);
12if(e.append("autoplay","1"),e.append("playsinline","1"),this.needsYTApiForAutoplay)return this.addYTPlayerIframe(e);const t=document.createElement("iframe");t.width=560,t.height=315,t.title=this.playLabel,t.allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",t.allowFullscreen=!0,t.src="https://www.youtube-nocookie.com/embed/".concat(encodeURIComponent(this.videoId),"?").concat(e.toString()),this.append(t),t.focus()}}customElements.define("lite-youtube",LiteYTEmbed);
13"use strict";jQuery(document).ready((function(t){const e=t(".bocss-title");if(e.length){const o=t(".bocss-title__progress"),c=t(window),h=t(document),i=t(".top-bar-wrap"),l=t(".navbar"),n=t("header");var s=120;i.length?s=i.height()+l.height():n.length&&(s=n.height()),c.scroll((function(){const t=100*c.scrollTop()/(h.height()-c.height()),i="bocss-title--active";o.css("width",t+"%"),c.scrollTop()>=s?e.addClass(i):e.removeClass(i)}))}}));
14"use strict";jQuery(document).ready((function(e){e(".bocss-checkbox__label").keypress((function(t){if(" "===t.key||"Enter"===t.key||"Spacebar"===t.key)return e(this).parent().find("input").is(":checked")?e(this).parent().find("label").attr("aria-selected",!1):e(this).parent().find("label").attr("aria-selected",!0),e(this).click(),!1})),e(".bocss-checkbox__group div input:checkbox").click((function(){e(this).is(":checked")?e(this).parent().find("label").attr("aria-selected",!0):e(this).parent().find("label").attr("aria-selected",!1)}))}));
15"use strict";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:String(t)}function _toPrimitive(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}jQuery(document).ready((function(e){e(".bocss-input__date").each((function(){const t=e(this),r=!!t.attr("min")&&t.attr("min"),n=!!t.attr("max")&&t.attr("max"),o=!!t.attr("value")&&t.attr("value"),i=document.getElementsByTagName("html")[0].getAttribute("lang");t.datetimepicker(_objectSpread(_objectSpread(_objectSpread({format:"YYYY-MM-DD",pickTime:!1,useCurrent:!1,language:i.substring(0,2)},o&&{defaultDate:o}),n&&{maxDate:n}),r&&{minDate:r}))}))}));
16"use strict";jQuery(document).ready((function(e){e(".bocss-radio__label").keypress((function(t){if(" "===t.key||"Enter"===t.key||"Spacebar"===t.key)return e(this).click(),!1})),e(".bocss-radio__group span input:radio").change((function(){e(this).parent().find("label").attr("aria-selected",!0),e(this).parent().parent().find("input").not(this).each((function(){e(this).parent().find("label").attr("aria-selected",!1)}))}))}));
17"use strict";jQuery(document).ready((function(e){initializeSelectize(e)}));const initializeSelectize=e=>{e("select[data-selectize-enabled='true']").each((function(){let i=e(this),t=i.find('option[disabled=""]'),l=[];t.each((e=>{l[e]=t[e].value})),i.selectize({plugins:{disable_options:{disableOptions:l}}})}))};
18"use strict";jQuery(document).ready((function(t){function s(t){t.value.length>0?t.classList.contains("active")||t.classList.add("active"):t.classList.contains("active")&&t.classList.remove("active")}!function(){var s=t(".bocss-textarea");function e(t){t.css("height","auto"),0===t[0].scrollHeight?t.css("height","40px"):t[0].scrollHeight&&t.css("height",t[0].scrollHeight+"px")}s.each((function(){t(this).attr("rows",1),e(t(this))})),s.on("input",(function(){e(t(this))}))}();for(var e=document.getElementsByClassName("bocss-textarea"),i=0;i<e.length;i++){e[i].addEventListener("blur",(function(){s(this)}))}t(".bocss-textarea__group").each((function(){var s=t(this).find("span.charcount"),e=t(this).find(".bocss-textarea");e.keyup((function(){var i=e.attr("maxlength");if(void 0!==i&&!1!==i){var a=t(this).val().length;s.text(a+"/"+i)}}))}))}));
19"use strict";jQuery("#main-content").on("ajax-updater:page-loaded",(function(){jQuery(".bocss-toggle").setupToggle(
19)})),jQuery(document).ready((function(){jQuery(".bocss-toggle").setupToggle()})),jQuery.fn.setupToggle=function(){return this.each((function(){let e=jQuery(this),s=e.children(".bocss-chart-toggle__radio"),o=jQuery("."+e.data("container")).children(),c=jQuery('<div class="bocss-toggle__handle"></div>');e.append(c),s.click((function(r){r.target===s.eq(0)[0]&&(o.eq(1).fadeOut(400,"swing",(function(){o.eq(0).fadeIn(),o.eq(0).removeClass("col-sm-6"),o.eq(0).addClass("col-sm-12")})),e.css("background-color","var(--bocss-lightestgrey)"),c.css({right:"3.75rem","background-color":"var(--bocss-blue)"})),r.target===s.eq(1)[0]&&(o.eq(0).fadeIn(),o.eq(1).fadeIn(),o.eq(0).removeClass("col-sm-12"),o.eq(0).addClass("col-sm-6"),o.eq(1).removeClass("col-sm-12"),o.eq(1).addClass("col-sm-6"),e.css("background-color","var(--bocss-blue)"),c.css({right:"1.875rem","background-color":"var(--bocss-white)"})),r.target===s.eq(2)[0]&&(o.eq(0).fadeOut(400,"swing",(function(){o.eq(1).fadeIn(),o.eq(1).removeClass("col-sm-6"),o.eq(1).addClass("col-sm-12")})),e.css("background-color","var(--bocss-lightestgrey)"),c.css({right:"0rem","background-color":"var(--bocss-blue)"}))}))}))};
20"use strict";jQuery(document).ready((function(e){"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),e(".bocss-icon__preview .bocss-icon__holder").each((function(){let t=e(this),o=e(this).find(".bocss-icon__title");t.click((function(){let e=document.createElement("input");document.body.appendChild(e),e.value=o.text(),e.select(),document.execCommand("copy",!1),e.remove();let t=document.getElementById("snackbar");t.className="show",setTimeout((function(){t.className=t.className.replace("show","")}),3e3)}));let c=e(this).find(".bocss-icon").attr("data-icon-set"),n=e("#iconSelector").val();t.toggle(0===c.localeCompare(n)),e("#iconSearch, #iconSelector").on("keyup change",(function(){let o=e("#iconSearch").val().toLowerCase(),n=e("#iconSelector").val();e(t).filter((function(){let t=e(this).text().toLowerCase().indexOf(o)>-1,i=0===c.localeCompare(n);e(this).toggle(t&&i)}))}))}));var t=e(".bocss-icon__preview").height();e("#preview_container").css("min-height",t)}));
21//# sourceMappingURL=BoCSS.js.map

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.