var maid,baseUrl="aHR0cHM6Ly9hcGkuY29uZWQuY29tL2FtaQ==",subscriptionKey="ZDM3NjAzZmI4OWM5NDFhYTg4ZmUzNWM4M2NlNWQzZDQ=",oktaBaseUrl="aHR0cHM6Ly9jb25lZC5va3RhLmNvbS9vYXV0aDIvYXVzZHNraXZzaHJhUzEzZDYweDc=",clientId="MG9hbjNsczNkcXQ4cXdtMTMweDc=",scopes=["openid","dcx.read_visualizations"],appmode="vprod",monthlydesktopBarCounts=12,monthlydesktopIndex=0,monthlymobileBarCounts=3,monthlymobileIndex=0,dailywebCyclesCount=1,dailywebIndex=0,loadimagepath="/images/ajax-loader.gif",errorimagepath="/-/media/images/coned/01_account-billing/smart-energy-plan/charts-load-error.svg",dailymobilemaxPageSizeCount=7,dailymobilePageIndex=0,monthlyGraph=!0,options={year:"numeric",month:"short",day:"numeric"},isMobileDevice=!1,loaderTimerInMiliseconds="60000",_gsScope,query,coned;(function(){"use strict";function p(){a==="SPP"?window.open("https://wem-cm-t1.coned.com/home/accounts-billing/select-pricing?open_external=true","_blank"):window.open("https://wem-cm-t1.coned.com/en/accounts-billing/smart-energy-usage?open_external=true","_blank")}function t(n){var t;if(tt(),l=window.setTimeout(function(){o&&i(!1,n)},loaderTimerInMiliseconds),monthlyGraph)$("#chart-monthly").css("display")=="block"?n==undefined||n==null?n="sitecore/api/ssc/dcxapi/ratepilot/0/GetVisualizationMonthlyUsage?maskAccountNumber="+maid+"&count="+monthlydesktopBarCounts+"&index="+monthlydesktopIndex:(monthlydesktopIndex=n.substr(n.lastIndexOf("=")+1,n.length),n="sitecore/api/ssc/dcxapi/ratepilot/0/GetVisualizationMonthlyUsage?maskAccountNumber="+maid+"&count="+monthlydesktopBarCounts+"&index="+monthlydesktopIndex):$("#chart-monthly-mobile").css("display")=="block"&&(n==undefined||n==null?n="sitecore/api/ssc/dcxapi/ratepilot/0/GetVisualizationMonthlyUsage?maskAccountNumber="+maid+"&count="+monthlymobileBarCounts+"&index="+monthlymobileIndex:(monthlymobileIndex=n.substr(n.lastIndexOf("=")+1,n.length),n="sitecore/api/ssc/dcxapi/ratepilot/0/GetVisualizationMonthlyUsage?maskAccountNumber="+maid+"&count="+monthlymobileBarCounts+"&index="+monthlymobileIndex));else if(t=$("input[name='peaktype']:checked").val(),$("#chart-daily").css("display")=="block")n==undefined||n==null?n="sitecore/api/ssc/dcxapi/ratepilot/0/GetVisualizationDailyUsage?maskAccountNumber="+maid+"&periodType="+t+"&count="+dailywebCyclesCount+"&index="+dailywebIndex:(dailywebIndex=n.substr(n.lastIndexOf("=")+1,n.length),n="sitecore/api/ssc/dcxapi/ratepilot/0/GetVisualizationDailyUsage?maskAccountNumber="+maid+"&periodType="+t+"&count="+dailywebCyclesCount+"&index="+dailywebIndex);else if($("#chart-daily-mobile").css("display")=="block")if(n==undefined||n==null)dailymobilePageIndex=0,dailymobilemaxPageSizeCount=7,n="sitecore/api/ssc/dcxapi/ratepilot/0/GetVisualizationDailyUsageMobile?maskAccountNumber="+maid+"&periodType="+t+"&pageNumber="+dailymobilePageIndex+"&maxPageSize="+dailymobilemaxPageSizeCount;else{var u=n.lastIndexOf("/"),r=n.substr(n,u),f=r.substr(r.lastIndexOf("/")+1,r.length);dailymobilePageIndex=f;n="sitecore/api/ssc/dcxapi/ratepilot/0/GetVisualizationDailyUsageMobile?maskAccountNumber="+maid+"&periodType="+t+"&pageNumber="+dailymobilePageIndex+"&maxPageSize="+dailymobilemaxPageSizeCount}it(n)}function tt(){o=!0;document.getElementById("loader").style.display="block"}function i(n,i){var h,r,u,f,e,c,s;if(o=!1,clearTimeout(l),document.getElementById("loader").style.display="none",n)$("#graphcd-lg-blockontent").css({display:"block"}),$("#errorstate").css({display:"none"});else{if($("#graphcd-lg-blockontent").css({display:"none"}),$("#errorstate").css({display:"block"}),h=moment().add(-1,"months").format("MMM YYYY")+" - "+moment().format("MMM YYYY"),$("#timeperiod").text(h),$("#timeperiod").attr("aria-label",h),r=$(".carousel-control-prev"),u=$(".carousel-control-next"),u.unbind(),r.unbind(),i==undefined||i==null){r.css("display","none");r.on("click",function(){return!1});u.css("display","none");u.on("click",function(){return!1});return}if(monthlyGraph||$("#chart-daily").css("display")=="block"?(f=i.substr(i.length-1,1),e=i.substring(0,i.length-1)+(parseInt(f)+1),c=i.substring(0,i.length-1)+(parseInt(f)-1),s=window.atob(baseUrl)+e):(f=i.substr(i.length-3,1),e=i.substring(0,i.length-3)+(parseInt(f)+1)+"/"+dailymobilemaxPageSizeCount,c=i.substring(0,i.length-3)+(parseInt(f)-1)+"/"+dailymobilemaxPageSizeCount,s=window.atob(baseUrl)+e),sessionStorage.getItem(s)==undefined||sessionStorage.getItem(s)==null){r.css("display","none");r.on("click",function(){return!1})}else{r.css({display:"inline-block"});r.on("click",function(){t(e)})}if(f>0){u.css({display:"inline-block"});u.on("click",function(){t(c)})}else{u.css("display","none");u.on("click",function(){return!1})}}}function v(n){var t=n.data,i=n.links;ut(t,i);a=n.data.billIndicatorType}function it(n){var t=window.location.origin+"/"+n,r,u;if(sessionStorage.getItem(t)==undefined||sessionStorage.getItem(t)==null){r=new XMLHttpRequest;try{rt(r,t,n)}catch(f){i(!1,n)}}else u=sessionStorage.getItem(t),v(JSON.parse(u))}function rt(n,t,r){n.withCredentials=!1;n.addEventListener("readystatechange",function(){if(n.readyState===4)if(n.responseText!=""&&(n.status===200||n.status===304)){var u=JSON.parse(n.responseText);n.response.status==304||(jQuery.isEmptyObject(u)?i(!1,r):(localStorage.setItem("ETag",n.getResponseHeader("ETag")),sessionStorage.setItem(t,JSON.stringify(u)),v(u)))}else i(!1,r)});n.addEventListener("error",function(){i(!1,r)});n.open("GET",t,!0);n.setRequestHeader("Accept","application/json");n.setRequestHeader("Content-Type","application/json");n.setRequestHeader("Access-Control-Allow-Origin","*");n.send()}function ut(r,u){var h,o,s;if(monthlyGraph?($("#monthlyPeaktooltip").tooltipster("content",g),$("#monthlyOffPeaktooltip").tooltipster("content",nt),$("#headerTooltip").tooltipster("content",d),$("#chart-monthly").css("display")=="block"?(n="#chart-monthly",$("#timeperiod").text(r.startDate+" - "+r.endDate),ht(r,f)):$("#chart-monthly-mobile").css("display")=="block"&&(n="#chart-monthly-mobile",$("#timeperiod").text(r.startDate+" - "+r.endDate),ct(r))):($("#headerTooltip").tooltipster("content",w),h=$("input[name='peaktype']:checked").val(),h.toLowerCase()=="peak"?($("#dailylegendtext").text("Usage During Peak Hours (kWh)"),$("#dailylegendtooltip").tooltipster("content",b),$(".legendIcon").attr("style","background-color:#069bd7"),$(".label-peak").attr("style","color:rgb(0, 136, 43)"),$(".label-offpeak").attr("style","color:#636363"),$("#checkmark-peak").attr("aria-checked","true"),$("#checkmark-offpeak").attr("aria-checked","false")):($("#dailylegendtext").text("Usage During Off-Peak Hours (kWh)"),$("#dailylegendtooltip").tooltipster("content",k),$(".legendIcon").attr("style","background-color:#023A9A"),$(".label-offpeak").attr("style","color:rgb(0, 136, 43)"),$(".label-peak").attr("style","color:#636363"),$("#checkmark-peak").attr("aria-checked","false"),$("#checkmark-offpeak").attr("aria-checked","true")),$("#chart-daily").css("display")=="block"?(n="#chart-daily",$("#timeperiod").text(r.startDate+" - "+r.endDate),ot(r,e)):$("#chart-daily-mobile").css("display")=="block"&&(n="#chart-daily-mobile",$("#timeperiod").text(r.startDate+" - "+r.endDate),st(r))),o=$(".carousel-control-prev"),s=$(".carousel-control-next"),s.unbind(),o.unbind(),u.prev!=null){o.css("display","inline-block");o.on("click",function(){t(u.prev)})}else{o.css("display","none");o.on("click",function(){return!1})}if(u.next!=null){s.css("display","inline-block");s.on("click",function(){t(u.next)})}else{s.css("display","none");s.on("click",function(){return!1})}ft(n,r);i(!0,null)}function r(){d3.selectAll("#chart-monthly-mobile, #chart-monthly, #chart-daily, #chart-daily-mobile").selectAll(".c3-axis").selectAll(".tick text tspan").attr("x",4)}function ft(n,i){if(d3.selectAll("#chart-monthly-mobile, #chart-monthly, #chart-daily, #chart-daily-mobile").selectAll(".c3-axis-y").selectAll(".tick").insert("rect","text").attr("width","55").attr("height","15").attr("x","1").attr("y","-8"),r(),d3.selectAll("#chart-monthly-mobile, #chart-monthly, #chart-daily, #chart-daily-mobile").selectAll("svg").attr("focusable","false").attr("role","presentation"),d3.selectAll(n).selectAll(".c3-xgrid-lines").selectAll(".c3-xgrid-line").select("line")._groups[0].length>0&&!monthlyGraph){var o=d3.selectAll(n).selectAll(".c3-xgrid-lines").selectAll(".c3-xgrid-line").select("line").attr("x1"),h=d3.selectAll(n).selectAll(".c3-xgrid-lines").selectAll(".c3-xgrid-line").select("line").attr("y1"),c=parseInt(o,10)+32;d3.selectAll(n).selectAll(".c3-xgrid-lines").selectAll(".c3-xgrid-line").attr("stroke","#d7d7d7").attr("fill","#fff").attr("font","10px sans-serif").attr("color","#000").attr("stroke-width",".5").insert("rect","text").attr("width","35").attr("height","15").attr("x",o).attr("y",h);d3.selectAll(n).selectAll(".c3-xgrid-lines").selectAll(".c3-xgrid-line").selectAll("text").attr("x",c).attr("y","16").attr("transform","")}else u(i);$(window).off("resize");$(window).off("click");$(window).off("focus");window.addEventListener("resize",function(){monthlyGraph?setTimeout(function(){r();u(i);f=$("#chart-monthly").width()},100):setTimeout(function(){s();e=$("#chart-daily").width()},500)});window.addEventListener("click",function(){r();monthlyGraph?u(i):setTimeout(function(){s()},500)});window.addEventListener("focus",function(){r();monthlyGraph?u(i):setTimeout(function(){s()},500)});$(window).resize(function(){isMobileDevice&&window.innerWidth>=768&&(t(),isMobileDevice=!1);!isMobileDevice&&window.innerWidth<=768&&(t(),isMobileDevice=!0)})}function s(){if(d3.selectAll(n).selectAll(".c3-xgrid-lines").selectAll(".c3-xgrid-line").select("line")._groups[0].length>0&&!monthlyGraph){var t=d3.selectAll(n).selectAll(".c3-xgrid-lines").selectAll(".c3-xgrid-line").select("line").attr("x1"),i=parseInt(t,10)+32;d3.selectAll(n).selectAll(".c3-xgrid-lines").selectAll(".c3-xgrid-line").selectAll("text").attr("x",i).attr("y","16").attr("transform","")}}function u(t){for(var c=!1,i,e,o,s,h,f,r=1;r<t.xAxis.length-1;r++)o=moment.parseZone(t.xAxis[r],moment.ISO_8601),s=moment.parseZone(t.xAxis[r+1],moment.ISO_8601),o.year()!=s.year()&&(e=o,i=s,c=!0);if(c&&(h=d3.selectAll(n).selectAll("tspan").filter(function(){return d3.select(this).text()===i.format("MMM DD")}).nodes(),h.length!=0)){var a=h[0].parentNode.parentNode.getAttribute("transform"),l=a.split("(")[1].split(",")[0].split(")")[0],v=d3.selectAll(n).selectAll("tspan").filter(function(){return d3.select(this).text()===e.format("MMM DD")}).nodes()[0].parentNode.parentNode.getAttribute("transform"),y=v.split("(")[1].split(",")[0].split(")")[0],p=(i-e)/864e5,w=Math.ceil((i-moment.parseZone(new Date(i.year(),0,1),moment.ISO_8601))/864e5),u=l-(l-y)/p*w,b=d3.selectAll(n).selectAll(".c3-xgrid-lines");b.append("g").attr("class","c3-xgrid-line text-line-year");f=d3.selectAll(n).selectAll(".c3-xgrid-lines").selectAll(".c3-xgrid-line");f.append("line").attr("x1",u).attr("x2",u).attr("y1","0").attr("y2","286").style("opacity",1);f.insert("rect","text").attr("class","line-rect").attr("width","35").attr("height","15").attr("x",u).attr("y",0);f.append("text").attr("text-anchor","end").attr("transform","").attr("x",u+32).attr("y","16").attr("dx",-4).attr("dy",-5).style("opacity",1).text(i.format("YYYY"))}}function y(n,t){var u=new Date(n),i=new Date(t),r=null;return u.getFullYear()!=i.getFullYear()&&(r=new Date(i.getFullYear(),0,1)),r}function et(n){var t="<div class='container-wrapper'><div class='container'><div class='chart-caption text-center'> <a id='prev-control' class=' float-left carousel-control-prev' tabindex='0' role='button' alt='navigates to previous date range'>‹<\/a><h1 id='timeperiod' class='time-period' tabindex='0' role='headertab'><\/h1> <a id='next-control' class='float-right carousel-control-next' tabindex='0' role='button' alt='navigates to next date range'>›<\/a><h2 class='time-perfiod-info'> Peak and off-peak hours apply <a id='headerTooltip' class='icon-widgetmore-info tooltiptext' tabindex='0' role='tooltip'> <\/a><\/h2><\/div><div class='billing-cycle text-center'><ul class='tabs' role='tablist' aria-label='Chart Type Tabs'><li class='tab-link current monthly' data-tab='monthly-billing' role='tab' id='monthlytab' tabindex='0' >Monthly<\/li><li class='tab-link daily' data-tab='daily-billing' role='tab' id='dailytab' tabindex='0'>Daily<\/li> <span class='peak-wrapper'> <label class='container1 label-peak'> PEAK <input type='radio' checked='checked' name='peaktype' value='Peak' tabindex='-1' > <span class='checkmark' id='checkmark-peak' role='radio' tabindex='0' aria-checked='true'> <\/span> <\/label> <label class='container1 label-offpeak'> OFF-PEAK <input type='radio' name='peaktype' value='OffPeak' tabindex='-1' > <span class='checkmark' id='checkmark-offpeak' role='radio' tabindex='0' aria-checked='false'> <\/span> <\/label> <\/span><\/ul><\/div><div id='graphcd-lg-blockontent'><div id='monthly-billing' class='tab-content current panel' role='tabpanel' aria-labelledby='monthlytab'> <section class='usage-wrapper'><div id='chart-monthly' class='d-sm-none' aria-hidden='true' focusable='false' role='presentation'><\/div><div id='chart-monthly-mobile' class='d-lg-none' aria-hidden='true' focusable='false' role='presentation'><\/div><div class='legend '><table class='c3-tooltip' role='presentation'><tr class='customLegend'><td> <span style='background-color:#069bd7'> <\/span> Usage During Peak Hours (kWh) <a id='monthlyPeaktooltip' class='icon-widgetmore-info tooltiptext' tabindex='0' role='tooltip'> <\/a><\/td><td> <span style='background-color:#023A9A'> <\/span> Usage During Off-Peak Hours (kWh) <a id='monthlyOffPeaktooltip' class='icon-widgetmore-info tooltiptext' tabindex='0' role='tooltip'> <\/a><\/td><\/tr><\/table><\/div><div aria-expanded='false' class='Accordion-trigger' role='accordion' tabindex='0'> <span class='Accordion-title'> Show Your Usage <span class='Accordion-icon'><\/span> <\/span><\/div><div id='tbl' class='panel'><\/div> <\/section><\/div><div id='daily-billing' class='tab-content panel' role='tabpanel' aria-labelledby='dailytab'> <section class='usage-wrapper'><div id='chart-daily' class='d-none d-sm-none d-lg-block' aria-hidden='true' focusable='false' role='presentation'><\/div><div id='chart-daily-mobile' class='d-lg-none d-sm-block' aria-hidden='true' focusable='false' role='presentation'><\/div><div class='legend'><table class='c3-tooltip ' role='presentation'><tr class='customDailyLegend'><td scope='row'> <b class='legendIcon'>&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <label id='dailylegendtext'> <\/label> <a id='dailylegendtooltip' class='icon-widgetmore-info tooltiptext' tabindex='0' role='tooltip'> <\/a><\/td><\/tr><\/table><\/div><div aria-expanded='false' class='Accordion-trigger' role='accordion' tabindex='0'> <span class='Accordion-title'> Show Your Usage <span class='Accordion-icon'><\/span> <\/span><\/div><div id='tbl-daily' class='panel'><\/div> <\/section><\/div><\/div><div id='errorstate' > <img src='"+errorimagepath+"' alt='Error Image'/><h2>We Can’t Get This Data Right Now<\/h2><p> Sorry. There seems to be a problem on our end. Refresh the page or try again at a later time.<\/p><p> If you're using Safari, please allow third-party cookies from conEd.com in your browser settings, or use a different browser.<\/p><\/div><div class='note-block'> <span class='header-note'> NOTE: <\/span>Usage is based on when you use electricity. To lower your usage, shift the use of large electric devices to off-peak hours. <span> <a class='tooltiptext' id='learnmore' tabindex='0' role='anchor'>Learn more.<\/a> <\/span><\/div><div id='loader' class='modal'> <img src='"+loadimagepath+"' alt='Loading Image'/><\/div><\/div><\/div>";$(n).html(t);f=$("#chart-monthly").width();e=$("#chart-daily").width()}function ot(n,t){var i=y(n.startDate,n.endDate),f=[],r,u;if(i!=null&&(f=[{value:i,text:i.getFullYear()}]),c3.generate({bindto:"#chart-daily",size:{width:t},data:{x:"x",xFormat:"%Y-%m-%dT%H:%M:%S%Z",columns:[n.xAxis,n.usage],type:"area",color:function(n,t){return t.id==="Peak"?"#069bd7":"#023A9A"}},point:{r:0,focus:{expand:{r:5}}},axis:{x:{type:"timeseries",padding:{left:3e8,right:5e7},tick:{outer:!1,culling:!1,format:"%d"}},y:{inner:!0,center:0,max:parseFloat(n.yAxis[n.yAxis.length-1]),tick:{format:function(n){return n+" kWh"},outer:!1,values:n.yAxis},padding:{top:50}}},grid:{lines:{front:!1},y:{show:!0},x:{lines:f}},tooltip:{contents:function(t){var r,i,f,e,u;if(t)for(r="Peak",i=0;i<t.length;i++){for(i===0&&(r=n.usage[0]=="Peak"?"peak":"off-peak"),f=t[i].x.toLocaleDateString("en-US",options),e="weekend",u=1;u<n.xAxis.length;u++)new Date(n.xAxis[u]).getTime()==t[i].x.getTime()&&n.dayType!=undefined&&(e=n.dayType[u]);if(t[i].value===0){if(r.toLowerCase()=="off-peak")return'<div class="tooltip-container"><table class="c3-tooltip dailyTooltip"><tbody><tr class=""><th colspan="2">'+f+'<\/th><\/tr><tr><td class="name">Usage appears as <label class="chart-tooltip-bold">0 kWh<\/label> because of a system issue.<\/td><\/tr><\/tbody><\/table> <\/div>';if(r.toLowerCase()=="peak")return'<div class="tooltip-container"><table class="c3-tooltip dailyTooltip"><tbody><tr class=""><th colspan="2">'+f+'<\/th><\/tr><tr><td class="name">Usage appears as <label class="chart-tooltip-bold">0 kWh<\/label> during weekends and holidays, or during system issues.<\/td><\/tr><\/tbody><\/table> <\/div>'}else return'<div class="tooltip-container"><table class="c3-tooltip dailyTooltip"><tbody><tr class=""><th colspan="2">'+f+'<\/th><\/tr><tr><td class="name">Your total usage during '+r.toLowerCase()+' hours for the day was <b class="value">'+t[i].value+" kWh<\/b><\/td><\/tr><\/tbody><\/table><\/div>"}}},legend:{show:!1}}),n!=null||n!={}){r=document.createElement("div");r.setAttribute("id","tbl-daily");document.body.appendChild(r);u=document.getElementById("dailytable");u&&document.getElementById("tbl-daily").removeChild(u);document.getElementById("tbl-daily").appendChild(e(n));function e(n){var s=n.usage[0],t=document.createElement("table"),f,l,i,r;t.setAttribute("class","gridtable");t.setAttribute("id","dailytable");var h=document.createElement("thead"),c=document.createElement("tbody"),u=document.createElement("tr");for(s==="Peak"?["Date","Usage During Peak Hours (kWh)"].forEach(function(n){var t=document.createElement("th");t.setAttribute("scope","col");t.appendChild(document.createTextNode(n));u.appendChild(t)}):s==="OffPeak"&&["Date","Usage During Off-Peak Hours (kWh)"].forEach(function(n){var t=document.createElement("th");t.setAttribute("scope","col");t.appendChild(document.createTextNode(n));u.appendChild(t)}),h.appendChild(u),t.appendChild(h),f=n.xAxis,l=n.usage,i=f.length-1;i>0;i--){var a=moment.parseZone(f[i],moment.ISO_8601).format("MMM DD,YYYY"),e=document.createElement("tr"),o=document.createElement("td");o.setAttribute("scope","row");o.appendChild(document.createTextNode(a));e.appendChild(o);r=document.createElement("td");r.setAttribute("scope","row");r.appendChild(document.createTextNode(l[i]));e.appendChild(r);c.appendChild(e)}return t.appendChild(c),t}}}function st(n){var o=navigator.userAgent.toLowerCase().search("sm-f900u"),f=14e7,e=235e5,t,i,r,u;if(o>-1&&(f=25e7,e=35e6),t=y(n.startDate,n.endDate),i=[],t!=null&&(i=[{value:t,text:t.getFullYear()}]),c3.generate({bindto:"#chart-daily-mobile",data:{x:"x",xFormat:"%Y-%m-%dT%H:%M:%S%Z",columns:[n.xAxis,n.usage],type:"area",color:function(n,t){return t.id==="Peak"?"#069bd7":"#023A9A"}},point:{r:0,focus:{expand:{r:5}}},axis:{x:{padding:{left:f,right:e},type:"timeseries",tick:{culling:!1,format:"%d"}},y:{padding:{top:50},inner:!0,center:0,max:parseFloat(n.yAxis[n.yAxis.length-1]),tick:{format:function(n){return n+" kWh"},outer:!1,values:n.yAxis}}},grid:{lines:{front:!1},y:{show:!0},x:{lines:i}},tooltip:{contents:function(t){var r,i,f,e,u;if(t)for(r="Peak",i=0;i<t.length;i++){for(i===0&&(r=n.usage[0]=="Peak"?"peak":"off-peak"),f=t[i].x.toLocaleDateString("en-US",options),e="weekend",u=1;u<n.xAxis.length;u++)new Date(n.xAxis[u]).getTime()==t[i].x.getTime()&&n.dayType!=undefined&&(e=n.dayType[u]);if(t[i].value===0){if(r.toLowerCase()=="off-peak")return'<div class="tooltip-container"><table class="c3-tooltip dailyTooltip"><tbody><tr class=""><th colspan="2">'+f+'<\/th><\/tr><tr><td class="name">Usage appears as <label class="chart-tooltip-bold">0 kWh<\/label> because of a system issue.<\/td><\/tr><\/tbody><\/table> <\/div>';if(r.toLowerCase()=="peak")return'<div class="tooltip-container"><table class="c3-tooltip dailyTooltip"><tbody><tr class=""><th colspan="2">'+f+'<\/th><\/tr><tr><td class="name">Usage appears as <label class="chart-tooltip-bold">0 kWh<\/label> during weekends and holidays, or during system issues.<\/td><\/tr><\/tbody><\/table> <\/div>'}else return'<div class="tooltip-container"><table class="c3-tooltip dailyTooltip"><tbody><tr class=""><th colspan="2">'+f+'<\/th><\/tr><tr><td class="name">Your total usage '+r.toLowerCase()+' hours for the day was <b class="value">'+t[i].value+"kWh<\/b><\/td><\/tr><\/tbody><\/table><\/div>"}}},legend:{show:!1}}),n!=null||n!={}){r=document.createElement("div");r.setAttribute("id","tbl-daily");document.body.appendChild(r);u=document.getElementById("dailytable");u&&document.getElementById("tbl-daily").removeChild(u);document.getElementById("tbl-daily").appendChild(s(n));function s(n){var s=n.usage[0],t=document.createElement("table"),f,l,i,r;t.setAttribute("class","gridtable");t.setAttribute("id","dailytable");var h=document.createElement("thead"),c=document.createElement("tbody"),u=document.createElement("tr");for(s==="Peak"?["Date","Usage During Peak Hours (kWh)"].forEach(function(n){var t=document.createElement("th");t.setAttribute("scope","col");t.appendChild(document.createTextNode(n));u.appendChild(t)}):s==="OffPeak"&&["Date","Usage During Off-Peak Hours (kWh)"].forEach(function(n){var t=document.createElement("th");t.setAttribute("scope","col");t.appendChild(document.createTextNode(n));u.appendChild(t)}),h.appendChild(u),t.appendChild(h),f=n.xAxis,l=n.usage,i=f.length-1;i>0;i--){var a=moment.parseZone(f[i],moment.ISO_8601).format("MMM DD,YYYY"),e=document.createElement("tr"),o=document.createElement("td");o.setAttribute("scope","row");o.appendChild(document.createTextNode(a));e.appendChild(o);r=document.createElement("td");r.setAttribute("scope","row");r.appendChild(document.createTextNode(l[i]));e.appendChild(r);c.appendChild(e)}return t.appendChild(c),t}}}function ht(n,t){var i=[n.xAxis,n.peak,n.offPeak],e=c3.generate({bindto:"#chart-monthly",size:{width:t},data:{x:"x",xFormat:"%Y-%m-%dT%H:%M:%S.%L%L%L%Z",columns:i,type:"bar",selection:{enabled:!1}},color:{pattern:["#069bd7","#023A9A"]},axis:{x:{padding:{left:1},type:"category",tick:{format:function(t){return moment.parseZone(n.xAxis[t+1],moment.ISO_8601).format("MMM DD")}}},y:{inner:!0,padding:{top:50},center:0,max:parseFloat(n.yAxis[n.yAxis.length-1]),tick:{format:function(n){return n+" kWh"},outer:!1,values:n.yAxis}}},grid:{lines:{front:!1},y:{show:!0}},bar:{width:20},tooltip:{contents:function(t){var u,i,r;if(t.length>0){var o=n.xMetadata,s=moment.parseZone(o[t[0].index],moment.ISO_8601).format("MMM DD,YYYY")+" - "+moment.parseZone(n.xAxis[t[0].x+1],moment.ISO_8601).format("MMM DD,YYYY"),f='<div class="tooltip-container"><table class="c3-tooltip"><tbody><tr class=""><th colspan="2">'+s+"<\/th><\/tr>",e=!0;for(u=0;u<t.length;u++)t[u].value!=0&&(e=!1);if(e==!0)return"";for(i=0;i<t.length;i++)r=t[i].id,r==="Peak"?(r="Usage During Peak Hours (kWh)",f+='<tr><td><table class="innerContent"><tr><td style="width:2%"><span style ="background-color:#069bd7"><\/span><\/td><td style="width:90%;" class="name">'+r+'<\/td> <td style="width:10%" class="value">'+t[i].value+"<\/td><\/tr><\/table><\/td><\/tr>"):(r="Usage During Off-Peak Hours (kWh)",f+='<tr><td><table class="innerContent"><tr><td style="width:2%"><span style ="background-color:#023A9A"><\/span><\/td><td style="width:90%;" class="name">'+r+'<\/td> <td style="width:10%" class="value">'+t[i].value+"<\/td><\/tr><\/table><\/td><\/tr>");return f+"<\/tbody ><\/table ><\/div >"}}},legend:{show:!1}}),r,u;if(i!=null||i!={}){r=document.createElement("div");r.setAttribute("id","tbl");r.setAttribute("class","center-table");document.body.appendChild(r);u=document.getElementById("monthlytable");u&&document.getElementById("tbl").removeChild(u);document.getElementById("tbl").appendChild(f(i));function f(t){var r=document.createElement("table"),l,i,f,e;r.setAttribute("class","gridtable");r.setAttribute("id","monthlytable");var s=document.createElement("thead"),h=document.createElement("tbody"),c=document.createElement("tr");for(["Billing Cycle","Usage During Peak Hours (kWh)","Usage During Off-Peak Hours (kWh)"].forEach(function(n){var t=document.createElement("th");t.setAttribute("scope","col");t.appendChild(document.createTextNode(n));c.appendChild(t)}),s.appendChild(c),r.appendChild(s),l=t[0].length,i=1;i<l;i++){var a=n.xMetadata,v=moment.parseZone(a[i-1],moment.ISO_8601).format("MMM DD,YYYY")+" - "+moment.parseZone(n.xAxis[i],moment.ISO_8601).format("MMM DD,YYYY"),u=document.createElement("tr"),o=document.createElement("td");o.setAttribute("scope","row");o.appendChild(document.createTextNode(v));u.appendChild(o);f=document.createElement("td");f.setAttribute("scope","row");f.appendChild(document.createTextNode(t[1][i]));u.appendChild(f);e=document.createElement("td");e.setAttribute("scope","row");e.appendChild(document.createTextNode(t[2][i]));u.appendChild(e);h.appendChild(u)}return r.appendChild(h),r}}}function ct(n){var t=[n.xAxis,n.peak],i,r;if(n.offPeak!=undefined&&t.push(n.offPeak),c3.generate({bindto:"#chart-monthly-mobile",padding:{top:10,bottom:10},data:{x:"x",xFormat:"%Y-%m-%dT%H:%M:%S.%L%L%L%Z",columns:t,type:"bar"},color:{pattern:["#069bd7","#023A9A"]},axis:{x:{padding:{left:1},type:"category",tick:{format:function(t){return moment.parseZone(n.xAxis[t+1],moment.ISO_8601).format("MMM DD")}}},y:{padding:{top:50},inner:!0,center:0,max:parseFloat(n.yAxis[n.yAxis.length-1]),tick:{format:function(n){return n+" kWh"},outer:!1,values:n.yAxis}}},grid:{lines:{front:!1},y:{show:!0}},bar:{width:20},tooltip:{contents:function(t){var u,f,i,r;if(t.length>0){var o=n.xMetadata,s=moment.parseZone(o[t[0].index],moment.ISO_8601).format("MMM DD,YYYY")+" - "+moment.parseZone(n.xAxis[t[0].x+1],moment.ISO_8601).format("MMM DD,YYYY"),e=!0;for(u=0;u<t.length;u++)t[u].value!=0&&(e=!1);if(e==!0)return"";for(f='<div class="tooltip-container"><table class="c3-tooltip"><tbody><tr class=""><th colspan="2">'+s+"<\/th><\/tr>",i=0;i<t.length;i++)r=t[i].id,r==="Peak"?(r="Usage During Peak Hours (kWh)",f+='<tr><td><table class="innerContent"><tr><td style="width:2%"><span style ="background-color:#069bd7"><\/span><\/td><td style="width:90%;" class="name">'+r+'<\/td> <td style="width:10%" class="value">'+t[i].value+"<\/td><\/tr><\/table><\/td><\/tr>"):(r="Usage During Off-Peak Hours (kWh)",f+='<tr><td><table class="innerContent"><tr><td style="width:2%"><span style ="background-color:#023A9A"><\/span><\/td><td style="width:90%;" class="name">'+r+'<\/td> <td style="width:10%" class="value">'+t[i].value+"<\/td><\/tr><\/table><\/td><\/tr>");return f+"<\/tbody ><\/table ><\/div >"}}},legend:{show:!1}}),t!=null||t!={}){i=document.createElement("div");i.setAttribute("id","tbl");document.body.appendChild(i);r=document.getElementById("monthlytable");r&&document.getElementById("tbl").removeChild(r);document.getElementById("tbl").appendChild(u(t));function u(t){var r=document.createElement("table"),l,i,f,e;r.setAttribute("class","gridtable");r.setAttribute("id","monthlytable");var s=document.createElement("thead"),h=document.createElement("tbody"),c=document.createElement("tr");for(["Billing Cycle","Usage During Peak Hours (kWh)","Usage During Off-Peak Hours (kWh)"].forEach(function(n){var t=document.createElement("th");t.setAttribute("scope","col");t.appendChild(document.createTextNode(n));c.appendChild(t)}),s.appendChild(c),r.appendChild(s),l=t[0].length,i=1;i<l;i++){var a=n.xMetadata,v=moment.parseZone(a[i-1],moment.ISO_8601).format("MMM DD,YYYY")+" - "+moment.parseZone(n.xAxis[i],moment.ISO_8601).format("MMM DD,YYYY"),u=document.createElement("tr"),o=document.createElement("td");o.setAttribute("scope","row");o.appendChild(document.createTextNode(v));u.appendChild(o);f=document.createElement("td");f.setAttribute("scope","row");f.appendChild(document.createTextNode(t[1][i]));u.appendChild(f);e=document.createElement("td");e.setAttribute("scope","row");e.appendChild(document.createTextNode(t[2][i]));u.appendChild(e);h.appendChild(u)}return r.appendChild(h),r}}}var h=function(){},c;h.init=function(n,i){function o(n){n==="checkmark-peak"?(document.getElementById("checkmark-offpeak").setAttribute("tabindex","-1"),f=!0):document.getElementById("checkmark-offpeak").setAttribute("tabindex","0");n==="monthlytab"?(document.getElementById("dailytab").setAttribute("tabindex","-1"),u=!0):document.getElementById("dailytab").setAttribute("tabindex","0")}function h(){f===!0?f=!1:(document.getElementById("checkmark-peak").setAttribute("tabindex","0"),document.getElementById("checkmark-offpeak").setAttribute("tabindex","0"));u===!0?u=!1:(document.getElementById("monthlytab").setAttribute("tabindex","0"),document.getElementById("dailytab").setAttribute("tabindex","0"))}function c(){r===!0&&(Array.from(document.querySelectorAll('[role="button"], [role="radio"], [role="tab"], [role="anchor"], [role="tooltip"], [role="accordion"],[role="headertab"]')).forEach(function(n){n.setAttribute("tabindex","-1")}),document.getElementById("clsBtn").setAttribute("tabindex","0"),r=!1)}function s(){Array.from(document.querySelectorAll('[role="button"], [role="radio"], [role="tab"], [role="anchor"], [role="tooltip"], [role="accordion"],[role="closeButton"], [role="headertab"]')).forEach(function(n){n.setAttribute("tabindex","0")})}localStorage.setItem("ETag","");monthlyGraph=!0;maid=i;et(n);let u=!1,f=!1,r=!1;$('input[name="peaktype"]:radio').on("change",function(){t()});$("ul.tabs li").click(function(){var n=$(this).attr("data-tab");n=="monthly-billing"?($(".peak-wrapper").css("display","none"),monthlyGraph=!0):($(".peak-wrapper").css("display","inline-block"),monthlyGraph=!1);$("ul.tabs li").removeClass("current");$(".tab-content").removeClass("current");$(this).addClass("current");$("#"+n).addClass("current");t()});Array.from(document.querySelectorAll('[role="button"], [role="radio"], [role="tab"], [role="anchor"], [role="tooltip"], [role="accordion"], [role="closeButton"], [role="headertab"]')).forEach(function(n){n.addEventListener("mousedown",function(n){$(n.target).addClass("disablefocus")});n.addEventListener("mouseup",function(n){$(n.target).addClass("disablefocus")});n.addEventListener("keydown",function(t){var i,r;$(t.target).removeClass("disablefocus");t.keyCode==9&&($(t.target).removeClass("disablefocus"),h(),t.target.getAttribute("role")==="tooltip"&&c());(t.keyCode==13||t.keyCode==32)&&(n.click(),t.target.focus(),t.target.getAttribute("role")==="radio"&&(i=t.target.getAttribute("id"),o(i)),t.target.getAttribute("role")==="tab"&&(r=t.target.getAttribute("id"),o(r)))})});var e=$(".Accordion-trigger");e.unbind();e.on("click",function(){this.classList.toggle("active");var n=this.nextElementSibling;n.style.display==="block"?(n.style.display="none",event.target.setAttribute("aria-expanded","false")):(n.style.display="block",event.target.setAttribute("aria-expanded","true"))});$("#learnmore").click(function(){p()});$(".tooltiptext").tooltipster({animation:"fade",delay:200,trigger:"click",contentAsHTML:!0,theme:["tooltipster-noir","tooltipster-noir-customized"],interactive:!0,autoclose:!0,functionReady:function(n,t){$(".tooltiptext").attr("aria-hidden",!1);r=!0;Array.from(document.getElementsByClassName("icon-widgetclose")).forEach(function(n){n.addEventListener("mousedown",function(n){$(n.target).addClass("disablefocus")});n.addEventListener("mouseup",function(n){$(n.target).addClass("disablefocus")});n.addEventListener("keydown",function(t){$(t.target).removeClass("disablefocus");t.keyCode==9;(t.keyCode==13||t.keyCode==32)&&n.click()})});$(".icon-widgetclose").click(function(){var n=t.origin.getAttribute("id");document.getElementById(n).setAttribute("tabindex","0");$(".tooltiptext").tooltipster("hide");r=!1;$(".tooltiptext").attr("aria-hidden",!0);document.getElementById(n).focus();s()})},functionAfter:function(){r=!1;s()}});t();isMobileDevice=window.innerWidth<=768?!0:!1};navigator.userAgent.match(/Trident.*rv\:11\./)&&(c=new Promise(function(){window.crypto=msCrypto}),c.then(function(){encoding.encode("");new encodingIndexes}));var f,e,n="",w="<div class='close-btn'><a class='icon-widgetclose' id='clsBtn' tabindex='0' role='closeButton'><\/a><\/div><div>Peak: Noon to 8 p.m., Monday through Friday  <br> Off-peak: All other summer hours, plus holidays<\/div>",b="<div class='close-btn'><a class='icon-widgetclose' id='clsBtn' tabindex='0' role='closeButton'><\/a><\/div><div>Your usage based on how much electricity you used between 12 p.m. and 8 p.m. (excluding weekends and holidays).<br>Peak: Noon to 8 p.m., Monday through Friday<\/div>",k="<div class='close-btn'><a class='icon-widgetclose' id='clsBtn' tabindex='0' role='closeButton'><\/a><\/div><div>Your usage based on how much electricity you used during off-peak hours.<\/div>",d="<div class='close-btn'><a class='icon-widgetclose' id='clsBtn' tabindex='0' role='closeButton'><\/a><\/div><div>Usage for the month during peak and off-peak hours <br> Peak: Noon to 8 p.m., Monday through Friday <br>Off-Peak: All other hours, plus holidays<\/div>",g="<div class='close-btn'><a class='icon-widgetclose' id='clsBtn' tabindex='0' role='closeButton'><\/a><\/div><div>Your total usage for the month based on the sum of your peak hours readings.<br> Peak: Noon to 8 p.m., Monday through Friday <\/div>",nt="<div class='close-btn'><a class='icon-widgetclose' id='clsBtn' tabindex='0' role='closeButton'><\/a><\/div><div>Your total usage for the month based on the sum of your off-peak hours readings.<br> Off-peak: All other hours, plus holidays <\/div>",o=!1,l;let a;window.UsageGraph=h})();typeof module!="undefined"?module.exports=window.UsageGraph:typeof define=="function"&&define.amd&&define([],function(){"use strict";return window.UsageGraph});Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(n){"use strict";var f,i,t,e,r,s,u,o;if(n===undefined||n===null)throw new TypeError("Cannot convert first argument to object");for(f=Object(n),i=1;i<arguments.length;i++)if(t=arguments[i],t!==undefined&&t!==null)for(t=Object(t),e=Object.keys(Object(t)),r=0,s=e.length;r<s;r++)u=e[r],o=Object.getOwnPropertyDescriptor(t,u),o!==undefined&&o.enumerable&&(f[u]=t[u]);return f}});Array.prototype.includes||(Array.prototype.includes=function(n){"use strict";var f=Object(this),u=parseInt(f.length)||0,i,t,r;if(u===0)return!1;for(i=parseInt(arguments[1])||0,i>=0?t=i:(t=u+i,t<0&&(t=0));t<u;){if(r=f[t],n===r||n!==n&&r!==r)return!0;t++}return!1});String.prototype.includes||(String.prototype.includes=function(){"use strict";return String.prototype.indexOf.apply(this,arguments)!==-1});Number.isNaN=Number.isNaN||function(n){return typeof n=="number"&&isNaN(n)};Array.prototype.reduce||Object.defineProperty(Array.prototype,"reduce",{value:function(n){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof n!="function")throw new TypeError(n+" is not a function");var i=Object(this),u=i.length>>>0,t=0,r;if(arguments.length>=2)r=arguments[1];else{while(t<u&&!(t in i))t++;if(t>=u)throw new TypeError("Reduce of empty array with no initial value");r=i[t++]}while(t<u)t in i&&(r=n(r,i[t],t,i)),t++;return r}});String.prototype.splice||(String.prototype.splice=function(n,t,i){return this.slice(0,n)+i+this.slice(n+Math.abs(t))});Array.prototype.forEach||(Array.prototype.forEach=function(n,t){var u,i,r,f,e;if(this==null)throw new TypeError("Array.prototype.forEach called on null or undefined");if(r=Object(this),f=r.length>>>0,typeof n!="function")throw new TypeError(n+" is not a function");for(arguments.length>1&&(u=t),i=0;i<f;)i in r&&(e=r[i],n.call(u,e,i,r)),i++});Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(n){var i,u,f,t,r;if(this==null)throw new TypeError('"this" is null or not defined');if(i=Object(this),u=i.length>>>0,typeof n!="function")throw new TypeError("predicate must be a function");for(f=arguments[1],t=0;t<u;){if(r=i[t],n.call(f,r,t,i))return r;t++}return undefined}});Array.prototype.findIndex||(Array.prototype.findIndex=function(n){var t;if(this===null)throw new TypeError("Array.prototype.findIndex called on null or undefined");if(typeof n!="function")throw new TypeError("predicate must be a function");var i=Object(this),u=i.length>>>0,f=arguments[1],r;for(t=0;t<u;t++)if(r=i[t],n.call(f,r,t,i))return t;return-1}),function(n){n.forEach(function(n){n.hasOwnProperty("remove")||Object.defineProperty(n,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode!==null&&this.parentNode.removeChild(this)}})})}([Element.prototype,CharacterData.prototype,DocumentType.prototype]),function(n,t){function r(t){var r=n[t];n[t]=function(n){var t=this,u=t.id||"qsid"+(new Date).getTime(),f=!t.id,e=i.test(n);try{return e&&(f&&(t.id=u),n=n.replace(i,"#"+u)),r.call(this,n)}finally{f&&(t.id=null)}}}function u(n){var r=t[n];t[n]=function(n){return r.call(this,n.replace(i,""))}}var i=/:scope\b/gi;try{document.querySelector(":scope")}catch(f){r("querySelector");r("querySelectorAll");u("querySelector");u("querySelectorAll")}}(Element.prototype,Document.prototype);!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,function(){"use strict";function f(n){var t=this.constructor;return this.then(function(i){return t.resolve(n()).then(function(){return i})},function(i){return t.resolve(n()).then(function(){return t.reject(i)})})}function e(n){return!(!n||"undefined"==typeof n.length)}function h(){}function n(t){if(!(this instanceof n))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0;this._handled=!1;this._value=undefined;this._deferreds=[];s(t,this)}function o(i,u){for(;3===i._state;)i=i._value;0!==i._state?(i._handled=!0,n._immediateFn(function(){var n=1===i._state?u.onFulfilled:u.onRejected,f;if(null!==n){try{f=n(i._value)}catch(e){return void t(u.promise,e)}r(u.promise,f)}else(1===i._state?r:t)(u.promise,i._value)})):i._deferreds.push(u)}function r(i,r){try{if(r===i)throw new TypeError("A promise cannot be resolved with itself.");if(r&&("object"==typeof r||"function"==typeof r)){var f=r.then;if(r instanceof n)return i._state=3,i._value=r,void u(i);if("function"==typeof f)return void s(function(n,t){return function(){n.apply(t,arguments)}}(f,r),i)}i._state=1;i._value=r;u(i)}catch(e){t(i,e)}}function t(n,t){n._state=2;n._value=t;u(n)}function u(t){2===t._state&&0===t._deferreds.length&&n._immediateFn(function(){t._handled||n._unhandledRejectionFn(t._value)});for(var i=0,r=t._deferreds.length;r>i;i++)o(t,t._deferreds[i]);t._deferreds=null}function s(n,i){var u=!1;try{n(function(n){u||(u=!0,r(i,n))},function(n){u||(u=!0,t(i,n))})}catch(f){if(u)return;u=!0;t(i,f)}}var c=setTimeout,i;n.prototype["catch"]=function(n){return this.then(null,n)};n.prototype.then=function(n,t){var i=new this.constructor(h);return o(this,new function(n,t,i){this.onFulfilled="function"==typeof n?n:null;this.onRejected="function"==typeof t?t:null;this.promise=i}(n,t,i)),i};n.prototype["finally"]=f;n.all=function(t){return new n(function(n,i){function f(t,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var e=u.then;if("function"==typeof e)return void e.call(u,function(n){f(t,n)},i)}r[t]=u;0==--o&&n(r)}catch(s){i(s)}}var r,o,u;if(!e(t))return i(new TypeError("Promise.all accepts an array"));if(r=Array.prototype.slice.call(t),0===r.length)return n([]);for(o=r.length,u=0;r.length>u;u++)f(u,r[u])})};n.resolve=function(t){return t&&"object"==typeof t&&t.constructor===n?t:new n(function(n){n(t)})};n.reject=function(t){return new n(function(n,i){i(t)})};n.race=function(t){return new n(function(i,r){if(!e(t))return r(new TypeError("Promise.race accepts an array"));for(var u=0,f=t.length;f>u;u++)n.resolve(t[u]).then(i,r)})};n._immediateFn="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){c(n,0)};n._unhandledRejectionFn=function(n){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)};i=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object");}();"Promise"in i?i.Promise.prototype["finally"]||(i.Promise.prototype["finally"]=f):i.Promise=n});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.c3=t()}(this,function(){"use strict";function n(n){var t=this;t.d3=window.d3?window.d3:"undefined"!=typeof require?require("d3"):void 0;t.api=n;t.config=t.getDefaultConfig();t.data={};t.cache={};t.axes={}}function i(t){var r=this.internal=new n(this);r.loadConfig(t);r.beforeInit(t);r.init();r.afterInit(t),function r(n,t,i){Object.keys(n).forEach(function(u){t[u]=n[u].bind(i);0<Object.keys(n[u]).length&&r(n[u],t[u],i)})}(i.prototype,this,this)}function f(n,t){var i=this;i.component=n;i.params=t||{};i.d3=n.d3;i.scale=i.d3.scaleLinear();i.range;i.orient="bottom";i.innerTickSize=6;i.outerTickSize=this.params.withOuterTick?6:0;i.tickPadding=3;i.tickValues=null;i.tickFormat;i.tickArguments;i.tickOffset=0;i.tickCulling=!0;i.tickCentered;i.tickTextCharSize;i.tickTextRotate=i.params.tickTextRotate;i.tickLength;i.axis=i.generateAxis()}var d;f.prototype.axisX=function(n,t,i){n.attr("transform",function(n){return"translate("+Math.ceil(t(n)+i)+", 0)"})};f.prototype.axisY=function(n,t){n.attr("transform",function(n){return"translate(0,"+Math.ceil(t(n))+")"})};f.prototype.scaleExtent=function(n){var t=n[0],i=n[n.length-1];return t<i?[t,i]:[i,t]};f.prototype.generateTicks=function(n){var i,r,t=[];if(n.ticks)return n.ticks.apply(n,this.tickArguments);for(r=n.domain(),i=Math.ceil(r[0]);i<r[1];i++)t.push(i);return 0<t.length&&0<t[0]&&t.unshift(t[0]-(t[1]-t[0])),t};f.prototype.copyScale=function(){var n,t=this,i=t.scale.copy();return t.params.isCategory&&(n=t.scale.domain(),i.domain([n[0],n[1]-1])),i};f.prototype.textFormatted=function(n){var t=this.tickFormat?this.tickFormat(n):n;return void 0!==t?t:""};f.prototype.updateRange=function(){var n=this;return n.range=n.scale.rangeExtent?n.scale.rangeExtent():n.scaleExtent(n.scale.range()),n.range};f.prototype.updateTickTextCharSize=function(n){var t=this,i;return t.tickTextCharSize?t.tickTextCharSize:(i={h:11.5,w:5.5},n.select("text").text(function(n){return t.textFormatted(n)}).each(function(n){var r=this.getBoundingClientRect(),u=t.textFormatted(n),f=r.height,e=u?r.width/u.length:void 0;f&&e&&(i.h=f,i.w=e)}).text(""),t.tickTextCharSize=i)};f.prototype.isVertical=function(){return"left"===this.orient||"right"===this.orient};f.prototype.tspanData=function(n,t,i){var r=this,u=r.params.tickMultiline?r.splitTickText(n,i):[].concat(r.textFormatted(n));return r.params.tickMultiline&&0<r.params.tickMultilineMax&&(u=r.ellipsify(u,r.params.tickMultilineMax)),u.map(function(n){return{index:t,splitted:n,length:u.length}})};f.prototype.splitTickText=function(n,t){var e,i,o,r=this,f=r.textFormatted(n),u=r.params.tickWidth;return"[object Array]"===Object.prototype.toString.call(f)?f:((!u||u<=0)&&(u=r.isVertical()?95:r.params.isCategory?Math.ceil(t(1)-t(0))-12:110),function n(t,f){i=void 0;for(var s=1;s<f.length;s++)if(" "===f.charAt(s)&&(i=s),e=f.substr(0,s+1),o=r.tickTextCharSize.w*e.length,u<o)return n(t.concat(f.substr(0,i||s)),f.slice(i?i+1:s));return t.concat(f)}([],f+""))};f.prototype.ellipsify=function(n,t){var u;if(n.length<=t)return n;for(var r=n.slice(0,t),f=3,i=t-1;0<=i;i--)if(u=r[i].length,r[i]=r[i].substr(0,u-f).padEnd(u,"."),(f-=u)<=0)break;return r};f.prototype.updateTickLength=function(){this.tickLength=Math.max(this.innerTickSize,0)+this.tickPadding};f.prototype.lineY2=function(n){var t=this,i=t.scale(n)+(t.tickCentered?0:t.tickOffset);return t.range[0]<i&&i<t.range[1]?t.innerTickSize:0};f.prototype.textY=function(){var n=this.tickTextRotate;return n?11.5-n/15*2.5*(0<n?1:-1):this.tickLength};f.prototype.textTransform=function(){var n=this.tickTextRotate;return n?"rotate("+n+")":""};f.prototype.textTextAnchor=function(){var n=this.tickTextRotate;return n?0<n?"start":"end":"middle"};f.prototype.tspanDx=function(){var n=this.tickTextRotate;return n?8*Math.sin(Math.PI*(n/180)):0};f.prototype.tspanDy=function(n,t){var i=this.tickTextCharSize.h;return 0===t&&(i=this.isVertical()?-((n.length-1)*(this.tickTextCharSize.h/2)-3):".71em"),i};f.prototype.generateAxis=function(){function t(u,f){var e;return u.each(function(){var o,s,h,b=t.g=r.select(this),a=this.__chart__||n.scale,u=this.__chart__=n.copyScale(),it=n.tickValues?n.tickValues:n.generateTicks(u),k=b.selectAll(".tick").data(it,u),v=k.enter().insert("g",".domain").attr("class","tick").style("opacity",1e-6),rt=k.exit().remove(),c=k.merge(v),g,l,nt,tt;i.isCategory?(n.tickOffset=Math.ceil((u(1)-u(0))/2),s=n.tickCentered?0:n.tickOffset,h=n.tickCentered?n.tickOffset:0):n.tickOffset=s=0;n.updateRange();n.updateTickLength();n.updateTickTextCharSize(b.select(".tick"));var y=c.select("line").merge(v.append("line")),p=c.select("text").merge(v.append("text")),d=c.selectAll("text").selectAll("tspan").data(function(t,i){return n.tspanData(t,i,u)}),w=d.enter().append("tspan").merge(d).text(function(n){return n.splitted});d.exit().remove();g=b.selectAll(".domain").data([0]);l=g.enter().append("path").merge(g).attr("class","domain");switch(n.orient){case"bottom":o=n.axisX;y.attr("x1",s).attr("x2",s).attr("y2",function(t,i){return n.lineY2(t,i)});p.attr("x",0).attr("y",function(t,i){return n.textY(t,i)}).attr("transform",function(t,i){return n.textTransform(t,i)}).style("text-anchor",function(t,i){return n.textTextAnchor(t,i)});w.attr("x",0).attr("dy",function(t,i){return n.tspanDy(t,i)}).attr("dx",function(t,i){return n.tspanDx(t,i)});l.attr("d","M"+n.range[0]+","+n.outerTickSize+"V0H"+n.range[1]+"V"+n.outerTickSize);break;case"top":o=n.axisX;y.attr("x1",s).attr("x2",s).attr("y2",function(t,i){return-1*n.lineY2(t,i)});p.attr("x",0).attr("y",function(t,r){return-1*n.textY(t,r)-(i.isCategory?2:n.tickLength-2)}).attr("transform",function(t,i){return n.textTransform(t,i)}).style("text-anchor",function(t,i){return n.textTextAnchor(t,i)});w.attr("x",0).attr("dy",function(t,i){return n.tspanDy(t,i)}).attr("dx",function(t,i){return n.tspanDx(t,i)});l.attr("d","M"+n.range[0]+","+-n.outerTickSize+"V0H"+n.range[1]+"V"+-n.outerTickSize);break;case"left":o=n.axisY;y.attr("x2",-n.innerTickSize).attr("y1",h).attr("y2",h);p.attr("x",-n.tickLength).attr("y",n.tickOffset).style("text-anchor","end");w.attr("x",-n.tickLength).attr("dy",function(t,i){return n.tspanDy(t,i)});l.attr("d","M"+-n.outerTickSize+","+n.range[0]+"H0V"+n.range[1]+"H"+-n.outerTickSize);break;case"right":o=n.axisY;y.attr("x2",n.innerTickSize).attr("y1",h).attr("y2",h);p.attr("x",n.tickLength).attr("y",n.tickOffset).style("text-anchor","start");w.attr("x",n.tickLength).attr("dy",function(t,i){return n.tspanDy(t,i)});l.attr("d","M"+n.outerTickSize+","+n.range[0]+"H0V"+n.range[1]+"H"+n.outerTickSize)}u.rangeBand?(nt=u,tt=nt.rangeBand()/2,a=u=function(n){return nt(n)+tt}):a.rangeBand?a=u:rt.call(o,u,n.tickOffset);v.call(o,a,n.tickOffset);e=(f?c.transition(f):c).style("opacity",1).call(o,u,n.tickOffset)}),e}var n=this,r=n.d3,i=n.params;return t.scale=function(i){return arguments.length?(n.scale=i,t):n.scale},t.orient=function(i){return arguments.length?(n.orient=i in{top:1,right:1,bottom:1,left:1}?i+"":"bottom",t):n.orient},t.tickFormat=function(i){return arguments.length?(n.tickFormat=i,t):n.tickFormat},t.tickCentered=function(i){return arguments.length?(n.tickCentered=i,t):n.tickCentered},t.tickOffset=function(){return n.tickOffset},t.tickInterval=function(){var r;return(r=i.isCategory?2*n.tickOffset:(t.g.select("path.domain").node().getTotalLength()-2*n.outerTickSize)/t.g.selectAll("line").size())==1/0?0:r},t.ticks=function(){return arguments.length?(n.tickArguments=arguments,t):n.tickArguments},t.tickCulling=function(i){return arguments.length?(n.tickCulling=i,t):n.tickCulling},t.tickValues=function(i){if("function"==typeof i)n.tickValues=function(){return i(n.scale.domain())};else{if(!arguments.length)return n.tickValues;n.tickValues=i}return t},t};var t={target:"c3-target",chart:"c3-chart",chartLine:"c3-chart-line",chartLines:"c3-chart-lines",chartBar:"c3-chart-bar",chartBars:"c3-chart-bars",chartText:"c3-chart-text",chartTexts:"c3-chart-texts",chartArc:"c3-chart-arc",chartArcs:"c3-chart-arcs",chartArcsTitle:"c3-chart-arcs-title",chartArcsBackground:"c3-chart-arcs-background",chartArcsGaugeUnit:"c3-chart-arcs-gauge-unit",chartArcsGaugeMax:"c3-chart-arcs-gauge-max",chartArcsGaugeMin:"c3-chart-arcs-gauge-min",selectedCircle:"c3-selected-circle",selectedCircles:"c3-selected-circles",eventRect:"c3-event-rect",eventRects:"c3-event-rects",eventRectsSingle:"c3-event-rects-single",eventRectsMultiple:"c3-event-rects-multiple",zoomRect:"c3-zoom-rect",brush:"c3-brush",dragZoom:"c3-drag-zoom",focused:"c3-focused",defocused:"c3-defocused",region:"c3-region",regions:"c3-regions",title:"c3-title",tooltipContainer:"c3-tooltip-container",tooltip:"c3-tooltip",tooltipName:"c3-tooltip-name",shape:"c3-shape",shapes:"c3-shapes",line:"c3-line",lines:"c3-lines",bar:"c3-bar",bars:"c3-bars",circle:"c3-circle",circles:"c3-circles",arc:"c3-arc",arcLabelLine:"c3-arc-label-line",arcs:"c3-arcs",area:"c3-area",areas:"c3-areas",empty:"c3-empty",text:"c3-text",texts:"c3-texts",gaugeValue:"c3-gauge-value",grid:"c3-grid",gridLines:"c3-grid-lines",xgrid:"c3-xgrid",xgrids:"c3-xgrids",xgridLine:"c3-xgrid-line",xgridLines:"c3-xgrid-lines",xgridFocus:"c3-xgrid-focus",ygrid:"c3-ygrid",ygrids:"c3-ygrids",ygridLine:"c3-ygrid-line",ygridLines:"c3-ygrid-lines",axis:"c3-axis",axisX:"c3-axis-x",axisXLabel:"c3-axis-x-label",axisY:"c3-axis-y",axisYLabel:"c3-axis-y-label",axisY2:"c3-axis-y2",axisY2Label:"c3-axis-y2-label",legendBackground:"c3-legend-background",legendItem:"c3-legend-item",legendItemEvent:"c3-legend-item-event",legendItemTile:"c3-legend-item-tile",legendItemHidden:"c3-legend-item-hidden",legendItemFocused:"c3-legend-item-focused",dragarea:"c3-dragarea",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_"},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},v=function(n){return Math.ceil(n)+.5},p=function(n){return 10*Math.ceil(n/10)},y=function(n){return n[1]-n[0]},e=function(n,t,i){return o(n[t])?n[t]:i},g=function(n){var i=n.getBoundingClientRect(),t=[n.pathSegList.getItem(0),n.pathSegList.getItem(1)];return{x:t[0].x,y:Math.min(t[0].y,t[1].y),width:i.width,height:i.height}},w=function(n){return Array.isArray(n)},o=function(n){return void 0!==n},b=function(n){return null==n||s(n)&&0===n.length||"object"===(void 0===n?"undefined":a(n))&&0===Object.keys(n).length},h=function(n){return"function"==typeof n},s=function(n){return"string"==typeof n},c=function(n){return void 0===n},u=function(n){return n||0===n},l=function(n){return!b(n)},k=function(n){return"string"==typeof n?n.replace(/</g,"&lt;").replace(/>/g,"&gt;"):n},r=function d(n){!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,d);this.owner=n;this.d3=n.d3;this.internal=f};return r.prototype.init=function(){var n=this.owner,i=n.config,r=n.main;n.axes.x=r.append("g").attr("class",t.axis+" "+t.axisX).attr("clip-path",i.axis_x_inner?"":n.clipPathForXAxis).attr("transform",n.getTranslate("x")).style("visibility",i.axis_x_show?"visible":"hidden");n.axes.x.append("text").attr("class",t.axisXLabel).attr("transform",i.axis_rotated?"rotate(-90)":"").style("text-anchor",this.textAnchorForXAxisLabel.bind(this));n.axes.y=r.append("g").attr("class",t.axis+" "+t.axisY).attr("clip-path",i.axis_y_inner?"":n.clipPathForYAxis).attr("transform",n.getTranslate("y")).style("visibility",i.axis_y_show?"visible":"hidden");n.axes.y.append("text").attr("class",t.axisYLabel).attr("transform",i.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForYAxisLabel.bind(this));n.axes.y2=r.append("g").attr("class",t.axis+" "+t.axisY2).attr("transform",n.getTranslate("y2")).style("visibility",i.axis_y2_show?"visible":"hidden");n.axes.y2.append("text").attr("class",t.axisY2Label).attr("transform",i.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForY2AxisLabel.bind(this))},r.prototype.getXAxis=function(n,t,i,r,u,f,e){var s=this.owner,o=s.config,c={isCategory:s.isCategorized(),withOuterTick:u,tickMultiline:o.axis_x_tick_multiline,tickMultilineMax:o.axis_x_tick_multiline?Number(o.axis_x_tick_multilineMax):0,tickWidth:o.axis_x_tick_width,tickTextRotate:e?0:o.axis_x_tick_rotate,withoutTransition:f},h=new this.internal(this,c).axis.scale(n).orient(t);return s.isTimeSeries()&&r&&"function"!=typeof r&&(r=r.map(function(n){return s.parseDate(n)})),h.tickFormat(i).tickValues(r),s.isCategorized()&&(h.tickCentered(o.axis_x_tick_centered),b(o.axis_x_tick_culling)&&(o.axis_x_tick_culling=!1)),h},r.prototype.updateXAxisTickValues=function(n,t){var i,r=this.owner,u=r.config;return(u.axis_x_tick_fit||u.axis_x_tick_count)&&(i=this.generateTickValues(r.mapTargetsToUniqueXs(n),u.axis_x_tick_count,r.isTimeSeries())),t?t.tickValues(i):(r.xAxis.tickValues(i),r.subXAxis.tickValues(i)),i},r.prototype.getYAxis=function(n,t,i,r,u,f,e){var h=this.owner,o=h.config,c={withOuterTick:u,withoutTransition:f,tickTextRotate:e?0:o.axis_y_tick_rotate},s=new this.internal(this,c).axis.scale(n).orient(t).tickFormat(i);return h.isTimeSeriesY()?s.ticks(o.axis_y_tick_time_type,o.axis_y_tick_time_interval):s.tickValues(r),s},r.prototype.getId=function(n){var t=this.owner.config;return n in t.data_axes?t.data_axes[n]:"y"},r.prototype.getXAxisTickFormat=function(){var n=this.owner,i=n.config,t=n.isTimeSeries()?n.defaultAxisTimeFormat:n.isCategorized()?n.categoryName:function(n){return n};return i.axis_x_tick_format&&(h(i.axis_x_tick_format)?t=i.axis_x_tick_format:n.isTimeSeries()&&(t=function(t){return t?n.axisTimeFormat(i.axis_x_tick_format)(t):""})),h(t)?function(i){return t.call(n,i)}:t},r.prototype.getTickValues=function(n,t){return n||(t?t.tickValues():void 0)},r.prototype.getXAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_x_tick_values,this.owner.xAxis)},r.prototype.getYAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y_tick_values,this.owner.yAxis)},r.prototype.getY2AxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y2_tick_values,this.owner.y2Axis)},r.prototype.getLabelOptionByAxisId=function(n){var t,i=this.owner.config;return"y"===n?t=i.axis_y_label:"y2"===n?t=i.axis_y2_label:"x"===n&&(t=i.axis_x_label),t},r.prototype.getLabelText=function(n){var t=this.getLabelOptionByAxisId(n);return s(t)?t:t?t.text:null},r.prototype.setLabelText=function(n,t){var i=this.owner.config,r=this.getLabelOptionByAxisId(n);s(r)?"y"===n?i.axis_y_label=t:"y2"===n?i.axis_y2_label=t:"x"===n&&(i.axis_x_label=t):r&&(r.text=t)},r.prototype.getLabelPosition=function(n,t){var r=this.getLabelOptionByAxisId(n),i=r&&"object"===(void 0===r?"undefined":a(r))&&r.position?r.position:t;return{isInner:0<=i.indexOf("inner"),isOuter:0<=i.indexOf("outer"),isLeft:0<=i.indexOf("left"),isCenter:0<=i.indexOf("center"),isRight:0<=i.indexOf("right"),isTop:0<=i.indexOf("top"),isMiddle:0<=i.indexOf("middle"),isBottom:0<=i.indexOf("bottom")}},r.prototype.getXAxisLabelPosition=function(){return this.getLabelPosition("x",this.owner.config.axis_rotated?"inner-top":"inner-right")},r.prototype.getYAxisLabelPosition=function(){return this.getLabelPosition("y",this.owner.config.axis_rotated?"inner-right":"inner-top")},r.prototype.getY2AxisLabelPosition=function(){return this.getLabelPosition("y2",this.owner.config.axis_rotated?"inner-right":"inner-top")},r.prototype.getLabelPositionById=function(n){return"y2"===n?this.getY2AxisLabelPosition():"y"===n?this.getYAxisLabelPosition():this.getXAxisLabelPosition()},r.prototype.textForXAxisLabel=function(){return this.getLabelText("x")},r.prototype.textForYAxisLabel=function(){return this.getLabelText("y")},r.prototype.textForY2AxisLabel=function(){return this.getLabelText("y2")},r.prototype.xForAxisLabel=function(n,t){var i=this.owner;return n?t.isLeft?0:t.isCenter?i.width/2:i.width:t.isBottom?-i.height:t.isMiddle?-i.height/2:0},r.prototype.dxForAxisLabel=function(n,t){return n?t.isLeft?"0.5em":t.isRight?"-0.5em":"0":t.isTop?"-0.5em":t.isBottom?"0.5em":"0"},r.prototype.textAnchorForAxisLabel=function(n,t){return n?t.isLeft?"start":t.isCenter?"middle":"end":t.isBottom?"start":t.isMiddle?"middle":"end"},r.prototype.xForXAxisLabel=function(){return this.xForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},r.prototype.xForYAxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},r.prototype.xForY2AxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},r.prototype.dxForXAxisLabel=function(){return this.dxForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},r.prototype.dxForYAxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},r.prototype.dxForY2AxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},r.prototype.dyForXAxisLabel=function(){var t=this.owner,n=t.config,i=this.getXAxisLabelPosition();return n.axis_rotated?i.isInner?"1.2em":-25-(t.config.axis_x_inner?0:this.getMaxTickWidth("x")):i.isInner?"-0.5em":n.axis_x_height?n.axis_x_height-10:"3em"},r.prototype.dyForYAxisLabel=function(){var n=this.owner,t=this.getYAxisLabelPosition();return n.config.axis_rotated?t.isInner?"-0.5em":"3em":t.isInner?"1.2em":-10-(n.config.axis_y_inner?0:this.getMaxTickWidth("y")+10)},r.prototype.dyForY2AxisLabel=function(){var n=this.owner,t=this.getY2AxisLabelPosition();return n.config.axis_rotated?t.isInner?"1.2em":"-2.2em":t.isInner?"-0.5em":15+(n.config.axis_y2_inner?0:this.getMaxTickWidth("y2")+15)},r.prototype.textAnchorForXAxisLabel=function(){var n=this.owner;return this.textAnchorForAxisLabel(!n.config.axis_rotated,this.getXAxisLabelPosition())},r.prototype.textAnchorForYAxisLabel=function(){var n=this.owner;return this.textAnchorForAxisLabel(n.config.axis_rotated,this.getYAxisLabelPosition())},r.prototype.textAnchorForY2AxisLabel=function(){var n=this.owner;return this.textAnchorForAxisLabel(n.config.axis_rotated,this.getY2AxisLabelPosition())},r.prototype.getMaxTickWidth=function(n,t){var u,r,f,o,i=this.owner,s=i.config,e=0;return t&&i.currentMaxTickWidths[n]||(i.svg&&(u=i.filterTargetsToShow(i.data.targets),"y"===n?(r=i.y.copy().domain(i.getYDomain(u,"y")),f=this.getYAxis(r,i.yOrient,s.axis_y_tick_format,i.yAxisTickValues,!1,!0,!0)):"y2"===n?(r=i.y2.copy().domain(i.getYDomain(u,"y2")),f=this.getYAxis(r,i.y2Orient,s.axis_y2_tick_format,i.y2AxisTickValues,!1,!0,!0)):(r=i.x.copy().domain(i.getXDomain(u)),f=this.getXAxis(r,i.xOrient,i.xAxisTickFormat,i.xAxisTickValues,!1,!0,!0),this.updateXAxisTickValues(u,f)),(o=i.d3.select("body").append("div").classed("c3",!0)).append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0).append("g").call(f).each(function(){i.d3.select(this).selectAll("text").each(function(){var n=this.getBoundingClientRect();e<n.width&&(e=n.width)});o.remove()})),i.currentMaxTickWidths[n]=e<=0?i.currentMaxTickWidths[n]:e),i.currentMaxTickWidths[n]},r.prototype.updateLabels=function(n){var i=this.owner,r=i.main.select("."+t.axisX+" ."+t.axisXLabel),u=i.main.select("."+t.axisY+" ."+t.axisYLabel),f=i.main.select("."+t.axisY2+" ."+t.axisY2Label);(n?r.transition():r).attr("x",this.xForXAxisLabel.bind(this)).attr("dx",this.dxForXAxisLabel.bind(this)).attr("dy",this.dyForXAxisLabel.bind(this)).text(this.textForXAxisLabel.bind(this));(n?u.transition():u).attr("x",this.xForYAxisLabel.bind(this)).attr("dx",this.dxForYAxisLabel.bind(this)).attr("dy",this.dyForYAxisLabel.bind(this)).text(this.textForYAxisLabel.bind(this));(n?f.transition():f).attr("x",this.xForY2AxisLabel.bind(this)).attr("dx",this.dxForY2AxisLabel.bind(this)).attr("dy",this.dyForY2AxisLabel.bind(this)).text(this.textForY2AxisLabel.bind(this))},r.prototype.getPadding=function(n,t,i,r){var f="number"==typeof n?n:n[t];return u(f)?"ratio"===n.unit?n[t]*r:this.convertPixelsToAxisPadding(f,r):i},r.prototype.convertPixelsToAxisPadding=function(n,t){var i=this.owner;return t*(n/(i.config.axis_rotated?i.width:i.height))},r.prototype.generateTickValues=function(n,t,i){var u,f,c,o,l,e,s,r=n;if(t)if(1===(u=h(t)?t():t))r=[n[0]];else if(2===u)r=[n[0],n[n.length-1]];else if(2<u){for(o=u-2,f=n[0],l=((c=n[n.length-1])-f)/(o+1),r=[f],e=0;e<o;e++)s=+f+l*(e+1),r.push(i?new Date(s):s);r.push(c)}return i||(r=r.sort(function(n,t){return n-t})),r},r.prototype.generateTransitions=function(n){var t=this.owner.axes;return{axisX:n?t.x.transition().duration(n):t.x,axisY:n?t.y.transition().duration(n):t.y,axisY2:n?t.y2.transition().duration(n):t.y2,axisSubX:n?t.subx.transition().duration(n):t.subx}},r.prototype.redraw=function(n,t){var i=this.owner,r=n?i.d3.transition().duration(n):null;i.axes.x.style("opacity",t?0:1).call(i.xAxis,r);i.axes.y.style("opacity",t?0:1).call(i.yAxis,r);i.axes.y2.style("opacity",t?0:1).call(i.y2Axis,r);i.axes.subx.style("opacity",t?0:1).call(i.subXAxis,r)},d={version:"0.6.7",chart:{fn:i.prototype,internal:{fn:n.prototype,axis:{fn:r.prototype,internal:{fn:f.prototype}}}},generate:function(n){return new i(n)}},n.prototype.beforeInit=function(){},n.prototype.afterInit=function(){},n.prototype.init=function(){var t=this,n=t.config;if(t.initParams(),n.data_url)t.convertUrlToData(n.data_url,n.data_mimeType,n.data_headers,n.data_keys,t.initWithData);else if(n.data_json)t.initWithData(t.convertJsonToData(n.data_json,n.data_keys));else if(n.data_rows)t.initWithData(t.convertRowsToData(n.data_rows));else{if(!n.data_columns)throw Error("url or json or rows or columns is required.");t.initWithData(t.convertColumnsToData(n.data_columns))}},n.prototype.initParams=function(){var n=this,i=n.d3,t=n.config;n.clipId="c3-"+ +new Date+"-clip";n.clipIdForXAxis=n.clipId+"-xaxis";n.clipIdForYAxis=n.clipId+"-yaxis";n.clipIdForGrid=n.clipId+"-grid";n.clipIdForSubchart=n.clipId+"-subchart";n.clipPath=n.getClipPath(n.clipId);n.clipPathForXAxis=n.getClipPath(n.clipIdForXAxis);n.clipPathForYAxis=n.getClipPath(n.clipIdForYAxis);n.clipPathForGrid=n.getClipPath(n.clipIdForGrid);n.clipPathForSubchart=n.getClipPath(n.clipIdForSubchart);n.dragStart=null;n.dragging=!1;n.flowing=!1;n.cancelClick=!1;n.mouseover=!1;n.transiting=!1;n.color=n.generateColor();n.levelColor=n.generateLevelColor();n.dataTimeParse=(t.data_xLocaltime?i.timeParse:i.utcParse)(n.config.data_xFormat);n.axisTimeFormat=t.axis_x_localtime?i.timeFormat:i.utcFormat;n.defaultAxisTimeFormat=function(n){return n.getMilliseconds()?i.timeFormat(".%L")(n):n.getSeconds()?i.timeFormat(":%S")(n):n.getMinutes()?i.timeFormat("%I:%M")(n):n.getHours()?i.timeFormat("%I %p")(n):n.getDay()&&1!==n.getDate()?i.timeFormat("%-m/%-d")(n):1!==n.getDate()?i.timeFormat("%-m/%-d")(n):n.getMonth()?i.timeFormat("%-m/%-d")(n):i.timeFormat("%Y/%-m/%-d")(n)};n.hiddenTargetIds=[];n.hiddenLegendIds=[];n.focusedTargetIds=[];n.defocusedTargetIds=[];n.xOrient=t.axis_rotated?t.axis_x_inner?"right":"left":t.axis_x_inner?"top":"bottom";n.yOrient=t.axis_rotated?t.axis_y_inner?"top":"bottom":t.axis_y_inner?"right":"left";n.y2Orient=t.axis_rotated?t.axis_y2_inner?"bottom":"top":t.axis_y2_inner?"left":"right";n.subXOrient=t.axis_rotated?"left":"bottom";n.isLegendRight="right"===t.legend_position;n.isLegendInset="inset"===t.legend_position;n.isLegendTop="top-left"===t.legend_inset_anchor||"top-right"===t.legend_inset_anchor;n.isLegendLeft="top-left"===t.legend_inset_anchor||"bottom-left"===t.legend_inset_anchor;n.legendStep=0;n.legendItemWidth=0;n.legendItemHeight=0;n.currentMaxTickWidths={x:0,y:0,y2:0};n.rotated_padding_left=30;n.rotated_padding_right=t.axis_rotated&&!t.axis_x_show?0:30;n.rotated_padding_top=5;n.withoutFadeIn={};n.intervalForObserveInserted=void 0;n.axes.subx=i.selectAll([])},n.prototype.initChartElements=function(){this.initBar&&this.initBar();this.initLine&&this.initLine();this.initArc&&this.initArc();this.initGauge&&this.initGauge();this.initText&&this.initText()},n.prototype.initWithData=function(n){var f,o,i=this,e=i.d3,u=i.config,s=!0;i.axis=new r(i);i.selectChart=u.bindto?"function"==typeof u.bindto.node?u.bindto:e.select(u.bindto):e.selectAll([]);i.selectChart.empty()&&(i.selectChart=e.select(document.createElement("div")).style("opacity",0),i.observeInserted(i.selectChart),s=!1);i.selectChart.html("").classed("c3",!0);i.data.xs={};i.data.targets=i.convertDataToTargets(n);u.data_filter&&(i.data.targets=i.data.targets.filter(u.data_filter));u.data_hide&&i.addHiddenTargetIds(!0===u.data_hide?i.mapToIds(i.data.targets):u.data_hide);u.legend_hide&&i.addHiddenLegendIds(!0===u.legend_hide?i.mapToIds(i.data.targets):u.legend_hide);i.updateSizes();i.updateScales();i.x.domain(e.extent(i.getXDomain(i.data.targets)));i.y.domain(i.getYDomain(i.data.targets,"y"));i.y2.domain(i.getYDomain(i.data.targets,"y2"));i.subX.domain(i.x.domain());i.subY.domain(i.y.domain());i.subY2.domain(i.y2.domain());i.orgXDomain=i.x.domain();i.svg=i.selectChart.append("svg").style("overflow","hidden").on("mouseenter",function(){return u.onmouseover.call(i)}).on("mouseleave",function(){return u.onmouseout.call(i)});i.config.svg_classname&&i.svg.attr("class",i.config.svg_classname);f=i.svg.append("defs");i.clipChart=i.appendClip(f,i.clipId);i.clipXAxis=i.appendClip(f,i.clipIdForXAxis);i.clipYAxis=i.appendClip(f,i.clipIdForYAxis);i.clipGrid=i.appendClip(f,i.clipIdForGrid);i.clipSubchart=i.appendClip(f,i.clipIdForSubchart);i.updateSvgSize();o=i.main=i.svg.append("g").attr("transform",i.getTranslate("main"));i.initPie&&i.initPie();i.initDragZoom&&i.initDragZoom();i.initSubchart&&i.initSubchart();i.initTooltip&&i.initTooltip();i.initLegend&&i.initLegend();i.initTitle&&i.initTitle();i.initZoom&&i.initZoom();i.initSubchartBrush&&i.initSubchartBrush();o.append("text").attr("class",t.text+" "+t.empty).attr("text-anchor","middle").attr("dominant-baseline","middle");i.initRegion();i.initGrid();o.append("g").attr("clip-path",i.clipPath).attr("class",t.chart);u.grid_lines_front&&i.initGridLines();i.initEventRect();i.initChartElements();i.axis.init();i.updateTargets(i.data.targets);u.axis_x_selection&&i.brush.selectionAsValue(i.getDefaultSelection());s&&(i.updateDimension(),i.config.oninit.call(i),i.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1}));i.bindResize();i.api.element=i.selectChart.node()},n.prototype.smoothLines=function(n,t){var i=this;"grid"===t&&n.each(function(){var n=i.d3.select(this),t=n.attr("x1"),r=n.attr("x2"),u=n.attr("y1"),f=n.attr("y2");n.attr({x1:Math.ceil(t),x2:Math.ceil(r),y1:Math.ceil(u),y2:Math.ceil(f)})})},n.prototype.updateSizes=function(){var n=this,t=n.config,e=n.legend?n.getLegendHeight():0,o=n.legend?n.getLegendWidth():0,r=n.isLegendRight||n.isLegendInset?0:e,i=n.hasArcType(),u=t.axis_rotated||i?0:n.getHorizontalAxisHeight("x"),f=t.subchart_show&&!i?t.subchart_size_height+u:0;n.currentWidth=n.getCurrentWidth();n.currentHeight=n.getCurrentHeight();n.margin=t.axis_rotated?{top:n.getHorizontalAxisHeight("y2")+n.getCurrentPaddingTop(),right:i?0:n.getCurrentPaddingRight(),bottom:n.getHorizontalAxisHeight("y")+r+n.getCurrentPaddingBottom(),left:f+(i?0:n.getCurrentPaddingLeft())}:{top:4+n.getCurrentPaddingTop(),right:i?0:n.getCurrentPaddingRight(),bottom:u+f+r+n.getCurrentPaddingBottom(),left:i?0:n.getCurrentPaddingLeft()};n.margin2=t.axis_rotated?{top:n.margin.top,right:NaN,bottom:20+r,left:n.rotated_padding_left}:{top:n.currentHeight-f-r,right:NaN,bottom:u+r,left:n.margin.left};n.margin3={top:0,right:NaN,bottom:0,left:0};n.updateSizeForLegend&&n.updateSizeForLegend(e,o);n.width=n.currentWidth-n.margin.left-n.margin.right;n.height=n.currentHeight-n.margin.top-n.margin.bottom;n.width<0&&(n.width=0);n.height<0&&(n.height=0);n.width2=t.axis_rotated?n.margin.left-n.rotated_padding_left-n.rotated_padding_right:n.width;n.height2=t.axis_rotated?n.height:n.currentHeight-n.margin2.top-n.margin2.bottom;n.width2<0&&(n.width2=0);n.height2<0&&(n.height2=0);n.arcWidth=n.width-(n.isLegendRight?o+10:0);n.arcHeight=n.height-(n.isLegendRight?0:10);n.hasType("gauge")&&!t.gauge_fullCircle&&(n.arcHeight+=n.height-n.getGaugeLabelHeight());n.updateRadius&&n.updateRadius();n.isLegendRight&&i&&(n.margin3.left=n.arcWidth/2+1.1*n.radiusExpanded)},n.prototype.updateTargets=function(n){var t=this;t.updateTargetsForText(n);t.updateTargetsForBar(n);t.updateTargetsForLine(n);t.hasArcType()&&t.updateTargetsForArc&&t.updateTargetsForArc(n);t.updateTargetsForSubchart&&t.updateTargetsForSubchart(n);t.showTargets()},n.prototype.showTargets=function(){var n=this;n.svg.selectAll("."+t.target).filter(function(t){return n.isTargetToShow(t.id)}).transition().duration(n.config.transition_duration).style("opacity",1)},n.prototype.redraw=function(n,i){var st,ht,c,ct,lt,at,k,vt,yt,pt,wt,bt,kt,d,g,nt,l,a,o,h,ut,ft,et,v,s,y,p,dt,ot,w,b,r=this,gt=r.main,ni=r.d3,u=r.config,tt=r.getShapeIndices(r.isAreaType),it=r.getShapeIndices(r.isBarType),rt=r.getShapeIndices(r.isLineType),ti=r.hasArcType(),f=r.filterTargetsToShow(r.data.targets),ii=r.xv.bind(r);if(st=e(n=n||{},"withY",!0),ht=e(n,"withSubchart",!0),c=e(n,"withTransition",!0),at=e(n,"withTransform",!1),k=e(n,"withUpdateXDomain",!1),vt=e(n,"withUpdateOrgXDomain",!1),yt=e(n,"withTrimXDomain",!0),kt=e(n,"withUpdateXAxis",k),pt=e(n,"withLegend",!1),wt=e(n,"withEventRect",!0),bt=e(n,"withDimension",!0),ct=e(n,"withTransitionForExit",c),lt=e(n,"withTransitionForAxis",c),o=c?u.transition_duration:0,h=ct?o:0,ut=lt?o:0,i=i||r.axis.generateTransitions(ut),pt&&u.legend_show?r.updateLegend(r.mapToIds(r.data.targets),n,i):bt&&r.updateDimension(!0),r.isCategorized()&&0===f.length&&r.x.domain([0,r.axes.x.selectAll(".tick").size()]),f.length?(r.updateXDomain(f,k,vt,yt),u.axis_x_tick_values||(y=r.axis.updateXAxisTickValues(f))):(r.xAxis.tickValues([]),r.subXAxis.tickValues([])),u.zoom_rescale&&!n.flow&&(ot=r.x.orgDomain()),r.y.domain(r.getYDomain(f,"y",ot)),r.y2.domain(r.getYDomain(f,"y2",ot)),!u.axis_y_tick_values&&u.axis_y_tick_count&&r.yAxis.tickValues(r.axis.generateTickValues(r.y.domain(),u.axis_y_tick_count)),!u.axis_y2_tick_values&&u.axis_y2_tick_count&&r.y2Axis.tickValues(r.axis.generateTickValues(r.y2.domain(),u.axis_y2_tick_count)),r.axis.redraw(ut,ti),r.axis.updateLabels(c),(k||kt)&&f.length)if(u.axis_x_tick_culling&&y){for(p=1;p<y.length;p++)if(y.length/p<u.axis_x_tick_culling_max){dt=p;break}r.svg.selectAll("."+t.axisX+" .tick text").each(function(n){var t=y.indexOf(n);0<=t&&ni.select(this).style("display",t%dt?"none":"block")})}else r.svg.selectAll("."+t.axisX+" .tick text").style("display","block");d=r.generateDrawArea?r.generateDrawArea(tt,!1):void 0;g=r.generateDrawBar?r.generateDrawBar(it):void 0;nt=r.generateDrawLine?r.generateDrawLine(rt,!1):void 0;l=r.generateXYForText(tt,it,rt,!0);a=r.generateXYForText(tt,it,rt,!1);r.updateCircleY();w=(r.config.axis_rotated?r.circleY:r.circleX).bind(r);b=(r.config.axis_rotated?r.circleX:r.circleY).bind(r);st&&(r.subY.domain(r.getYDomain(f,"y")),r.subY2.domain(r.getYDomain(f,"y2")));r.updateXgridFocus();gt.select("text."+t.text+"."+t.empty).attr("x",r.width/2).attr("y",r.height/2).text(u.data_empty_label_text).transition().style("opacity",f.length?0:1);wt&&r.redrawEventRect();r.updateGrid(o);r.updateRegion(o);r.updateBar(h);r.updateLine(h);r.updateArea(h);r.updateCircle(w,b);r.hasDataLabel()&&r.updateText(l,a,h);r.redrawTitle&&r.redrawTitle();r.redrawArc&&r.redrawArc(o,h,at);r.redrawSubchart&&r.redrawSubchart(ht,i,o,h,tt,it,rt);gt.selectAll("."+t.selectedCircles).filter(r.isBarType.bind(r)).selectAll("circle").remove();n.flow&&(v=r.generateFlow({targets:f,flow:n.flow,duration:n.flow.duration,drawBar:g,drawLine:nt,drawArea:d,cx:w,cy:b,xv:ii,xForText:l,yForText:a}));r.isTabVisible()&&(o?(s=ni.transition().duration(o),ft=[],[r.redrawBar(g,!0,s),r.redrawLine(nt,!0,s),r.redrawArea(d,!0,s),r.redrawCircle(w,b,!0,s),r.redrawText(l,a,n.flow,!0,s),r.redrawRegion(!0,s),r.redrawGrid(!0,s)].forEach(function(n){n.forEach(function(n){ft.push(n)})}),et=r.generateWait(),ft.forEach(function(n){et.add(n)}),et(function(){v&&v();u.onrendered&&u.onrendered.call(r)})):(r.redrawBar(g),r.redrawLine(nt),r.redrawArea(d),r.redrawCircle(w,b),r.redrawText(l,a,n.flow),r.redrawRegion(),r.redrawGrid(),v&&v(),u.onrendered&&u.onrendered.call(r)));r.mapToIds(r.data.targets).forEach(function(n){r.withoutFadeIn[n]=!0})},n.prototype.updateAndRedraw=function(n){var i,t=this,r=t.config;(n=n||{}).withTransition=e(n,"withTransition",!0);n.withTransform=e(n,"withTransform",!1);n.withLegend=e(n,"withLegend",!1);n.withUpdateXDomain=e(n,"withUpdateXDomain",!0);n.withUpdateOrgXDomain=e(n,"withUpdateOrgXDomain",!0);n.withTransitionForExit=!1;n.withTransitionForTransform=e(n,"withTransitionForTransform",n.withTransition);t.updateSizes();n.withLegend&&r.legend_show||(i=t.axis.generateTransitions(n.withTransitionForAxis?r.transition_duration:0),t.updateScales(),t.updateSvgSize(),t.transformAll(n.withTransitionForTransform,i));t.redraw(n,i)},n.prototype.redrawWithoutRescale=function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})},n.prototype.isTimeSeries=function(){return"timeseries"===this.config.axis_x_type},n.prototype.isCategorized=function(){return 0<=this.config.axis_x_type.indexOf("categor")},n.prototype.isCustomX=function(){var n=this.config;return!this.isTimeSeries()&&(n.data_x||l(n.data_xs))},n.prototype.isTimeSeriesY=function(){return"timeseries"===this.config.axis_y_type},n.prototype.getTranslate=function(n){var i,r,t=this,u=t.config;return"main"===n?(i=v(t.margin.left),r=v(t.margin.top)):"context"===n?(i=v(t.margin2.left),r=v(t.margin2.top)):"legend"===n?(i=t.margin3.left,r=t.margin3.top):"x"===n?(i=0,r=u.axis_rotated?0:t.height):"y"===n?(i=0,r=u.axis_rotated?t.height:0):"y2"===n?(i=u.axis_rotated?0:t.width,r=u.axis_rotated?1:0):"subx"===n?(i=0,r=u.axis_rotated?0:t.height2):"arc"===n&&(i=t.arcWidth/2,r=t.arcHeight/2-(t.hasType("gauge")?6:0)),"translate("+i+","+r+")"},n.prototype.initialOpacity=function(n){return null!==n.value&&this.withoutFadeIn[n.id]?1:0},n.prototype.initialOpacityForCircle=function(n){return null!==n.value&&this.withoutFadeIn[n.id]?this.opacityForCircle(n):0},n.prototype.opacityForCircle=function(n){var t=(h(this.config.point_show)?this.config.point_show(n):this.config.point_show)?1:0;return u(n.value)?this.isScatterType(n)?.5:t:0},n.prototype.opacityForText=function(){return this.hasDataLabel()?1:0},n.prototype.xx=function(n){return n?this.x(n.x):null},n.prototype.xv=function(n){var t=this,i=n.value;return t.isTimeSeries()?i=t.parseDate(n.value):t.isCategorized()&&"string"==typeof n.value&&(i=t.config.axis_x_categories.indexOf(n.value)),Math.ceil(t.x(i))},n.prototype.yv=function(n){var t=n.axis&&"y2"===n.axis?this.y2:this.y;return Math.ceil(t(n.value))},n.prototype.subxx=function(n){return n?this.subX(n.x):null},n.prototype.transformMain=function(n,i){var u,f,e,r=this;i&&i.axisX?u=i.axisX:(u=r.main.select("."+t.axisX),n&&(u=u.transition()));i&&i.axisY?f=i.axisY:(f=r.main.select("."+t.axisY),n&&(f=f.transition()));i&&i.axisY2?e=i.axisY2:(e=r.main.select("."+t.axisY2),n&&(e=e.transition()));(n?r.main.transition():r.main).attr("transform",r.getTranslate("main"));u.attr("transform",r.getTranslate("x"));f.attr("transform",r.getTranslate("y"));e.attr("transform",r.getTranslate("y2"));r.main.select("."+t.chartArcs).attr("transform",r.getTranslate("arc"))},n.prototype.transformAll=function(n,t){var i=this;i.transformMain(n,t);i.config.subchart_show&&i.transformContext(n,t);i.legend&&i.transformLegend(n)},n.prototype.updateSvgSize=function(){var n=this,t=n.svg.select(".c3-brush .overlay");n.svg.attr("width",n.currentWidth).attr("height",n.currentHeight);n.svg.selectAll(["#"+n.clipId,"#"+n.clipIdForGrid]).select("rect").attr("width",n.width).attr("height",n.height);n.svg.select("#"+n.clipIdForXAxis).select("rect").attr("x",n.getXAxisClipX.bind(n)).attr("y",n.getXAxisClipY.bind(n)).attr("width",n.getXAxisClipWidth.bind(n)).attr("height",n.getXAxisClipHeight.bind(n));n.svg.select("#"+n.clipIdForYAxis).select("rect").attr("x",n.getYAxisClipX.bind(n)).attr("y",n.getYAxisClipY.bind(n)).attr("width",n.getYAxisClipWidth.bind(n)).attr("height",n.getYAxisClipHeight.bind(n));n.svg.select("#"+n.clipIdForSubchart).select("rect").attr("width",n.width).attr("height",t.size()?t.attr("height"):0);n.selectChart.style("max-height",n.currentHeight+"px")},n.prototype.updateDimension=function(n){var t=this;n||(t.config.axis_rotated?(t.axes.x.call(t.xAxis),t.axes.subx.call(t.subXAxis)):(t.axes.y.call(t.yAxis),t.axes.y2.call(t.y2Axis)));t.updateSizes();t.updateScales();t.updateSvgSize();t.transformAll(!1)},n.prototype.observeInserted=function(n){var i,t=this;"undefined"!=typeof MutationObserver?(i=new MutationObserver(function(r){r.forEach(function(r){"childList"===r.type&&r.previousSibling&&(i.disconnect(),t.intervalForObserveInserted=window.setInterval(function(){n.node().parentNode&&(window.clearInterval(t.intervalForObserveInserted),t.updateDimension(),t.brush&&t.brush.update(),t.config.oninit.call(t),t.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),n.transition().style("opacity",1))},10))})})).observe(n.node(),{attributes:!0,childList:!0,characterData:!0}):window.console.error("MutationObserver not defined.")},n.prototype.bindResize=function(){var n=this,i=n.config,t;(n.resizeFunction=n.generateResize(),n.resizeFunction.add(function(){i.onresize.call(n)}),i.resize_auto&&n.resizeFunction.add(function(){void 0!==n.resizeTimeout&&window.clearTimeout(n.resizeTimeout);n.resizeTimeout=window.setTimeout(function(){delete n.resizeTimeout;n.updateAndRedraw({withUpdateXDomain:!1,withUpdateOrgXDomain:!1,withTransition:!1,withTransitionForTransform:!1,withLegend:!0});n.brush&&n.brush.update()},100)}),n.resizeFunction.add(function(){i.onresized.call(n)}),n.resizeIfElementDisplayed=function(){null!=n.api&&n.api.element.offsetParent&&n.resizeFunction()},window.attachEvent)?window.attachEvent("onresize",n.resizeIfElementDisplayed):window.addEventListener?window.addEventListener("resize",n.resizeIfElementDisplayed,!1):(t=window.onresize,t?t.add&&t.remove||(t=n.generateResize()).add(window.onresize):t=n.generateResize(),t.add(n.resizeFunction),window.onresize=function(){n.api.element.offsetParent&&t()})},n.prototype.generateResize=function(){function t(){n.forEach(function(n){n()})}var n=[];return t.add=function(t){n.push(t)},t.remove=function(t){for(var i=0;i<n.length;i++)if(n[i]===t){n.splice(i,1);break}},t},n.prototype.endall=function(n,t){var i=0;n.each(function(){++i}).on("end",function(){--i||t.apply(this,arguments)})},n.prototype.generateWait=function(){var n=[],t=function(t){var i=setInterval(function(){var r=0;n.forEach(function(n){if(n.empty())r+=1;else try{n.transition()}catch(n){r+=1}});r===n.length&&(clearInterval(i),t&&t())},50)};return t.add=function(t){n.push(t)},t},n.prototype.parseDate=function(n){var t;return n instanceof Date?t=n:"string"==typeof n?t=this.dataTimeParse(n):"object"===(void 0===n?"undefined":a(n))?t=new Date(+n):"number"!=typeof n||isNaN(n)||(t=new Date(+n)),t&&!isNaN(+t)||window.console.error("Failed to parse x '"+n+"' to Date object"),t},n.prototype.isTabVisible=function(){var n;return void 0!==document.hidden?n="hidden":void 0!==document.mozHidden?n="mozHidden":void 0!==document.msHidden?n="msHidden":void 0!==document.webkitHidden&&(n="webkitHidden"),!document[n]},n.prototype.getPathBox=g,n.prototype.CLASS=t,Function.prototype.bind||(Function.prototype.bind=function(n){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var r=Array.prototype.slice.call(arguments,1),u=this,t=function(){},i=function(){return u.apply(this instanceof t?this:n,r.concat(Array.prototype.slice.call(arguments)))};return t.prototype=this.prototype,i.prototype=new t,i}),"SVGPathSeg"in window||(window.SVGPathSeg=function(n,t,i){this.pathSegType=n;this.pathSegTypeAsLetter=t;this._owningPathSegList=i},window.SVGPathSeg.prototype.classname="SVGPathSeg",window.SVGPathSeg.PATHSEG_UNKNOWN=0,window.SVGPathSeg.PATHSEG_CLOSEPATH=1,window.SVGPathSeg.PATHSEG_MOVETO_ABS=2,window.SVGPathSeg.PATHSEG_MOVETO_REL=3,window.SVGPathSeg.PATHSEG_LINETO_ABS=4,window.SVGPathSeg.PATHSEG_LINETO_REL=5,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,window.SVGPathSeg.PATHSEG_ARC_ABS=10,window.SVGPathSeg.PATHSEG_ARC_REL=11,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,window.SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},window.SVGPathSegClosePath=function(n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",n)},window.SVGPathSegClosePath.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},window.SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},window.SVGPathSegClosePath.prototype.clone=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathSegMovetoAbs=function(n,t,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",n);this._x=t;this._y=i},window.SVGPathSegMovetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},window.SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoAbs.prototype.clone=function(){return new window.SVGPathSegMovetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(n,t,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",n);this._x=t;this._y=i},window.SVGPathSegMovetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},window.SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoRel.prototype.clone=function(){return new window.SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(n,t,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",n);this._x=t;this._y=i},window.SVGPathSegLinetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},window.SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoAbs.prototype.clone=function(){return new window.SVGPathSegLinetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(n,t,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",n);this._x=t;this._y=i},window.SVGPathSegLinetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},window.SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoRel.prototype.clone=function(){return new window.SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(n,t,i,r,u,f,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",n);this._x=t;this._y=i;this._x1=r;this._y1=u;this._x2=f;this._y2=e},window.SVGPathSegCurvetoCubicAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},window.SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(n){this._x1=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(n){this._y1=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(n){this._x2=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(n){this._y2=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicRel=function(n,t,i,r,u,f,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",n);this._x=t;this._y=i;this._x1=r;this._y1=u;this._x2=f;this._y2=e},window.SVGPathSegCurvetoCubicRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},window.SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(n){this._x1=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(n){this._y1=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(n){this._x2=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(n){this._y2=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(n,t,i,r,u){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",n);this._x=t;this._y=i;this._x1=r;this._y1=u},window.SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(n){this._x1=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(n){this._y1=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(n,t,i,r,u){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",n);this._x=t;this._y=i;this._x1=r;this._y1=u},window.SVGPathSegCurvetoQuadraticRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(n){this._x1=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1},set:function(n){this._y1=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(n,t,i,r,u,f,e,o){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",n);this._x=t;this._y=i;this._r1=r;this._r2=u;this._angle=f;this._largeArcFlag=e;this._sweepFlag=o},window.SVGPathSegArcAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},window.SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcAbs.prototype.clone=function(){return new window.SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(n){this._r1=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(n){this._r2=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(n){this._angle=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(n){this._largeArcFlag=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(n){this._sweepFlag=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(n,t,i,r,u,f,e,o){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",n);this._x=t;this._y=i;this._r1=r;this._r2=u;this._angle=f;this._largeArcFlag=e;this._sweepFlag=o},window.SVGPathSegArcRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},window.SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcRel.prototype.clone=function(){return new window.SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(n){this._r1=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{get:function(){return this._r2},set:function(n){this._r2=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(n){this._angle=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(n){this._largeArcFlag=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(n){this._sweepFlag=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(n,t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",n);this._x=t},window.SVGPathSegLinetoHorizontalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalAbs(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(n,t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",n);this._x=t},window.SVGPathSegLinetoHorizontalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},window.SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(n,t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",n);this._y=t},window.SVGPathSegLinetoVerticalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},window.SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalAbs(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(n,t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",n);this._y=t},window.SVGPathSegLinetoVerticalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},window.SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothAbs=function(n,t,i,r,u){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",n);this._x=t;this._y=i;this._x2=r;this._y2=u},window.SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(n){this._x2=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(n){this._y2=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(n,t,i,r,u){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",n);this._x=t;this._y=i;this._x2=r;this._y2=u},window.SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function(){return this._x2},set:function(n){this._x2=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(n){this._y2=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(n,t,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",n);this._x=t;this._y=i},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(n,t,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",n);this._x=t;this._y=i},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function(){return this._x},set:function(n){this._x=n;this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(n){this._y=n;this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(n,t){return new window.SVGPathSegMovetoAbs(void 0,n,t)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(n,t){return new window.SVGPathSegMovetoRel(void 0,n,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(n,t){return new window.SVGPathSegLinetoAbs(void 0,n,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(n,t){return new window.SVGPathSegLinetoRel(void 0,n,t)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(n,t,i,r,u,f){return new window.SVGPathSegCurvetoCubicAbs(void 0,n,t,i,r,u,f)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(n,t,i,r,u,f){return new window.SVGPathSegCurvetoCubicRel(void 0,n,t,i,r,u,f)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(n,t,i,r){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,n,t,i,r)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(n,t,i,r){return new window.SVGPathSegCurvetoQuadraticRel(void 0,n,t,i,r)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(n,t,i,r,u,f,e){return new window.SVGPathSegArcAbs(void 0,n,t,i,r,u,f,e)},window.SVGPathElement.prototype.createSVGPathSegArcRel=function(n,t,i,r,u,f,e){return new window.SVGPathSegArcRel(void 0,n,t,i,r,u,f,e)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(n){return new window.SVGPathSegLinetoHorizontalAbs(void 0,n)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(n){return new window.SVGPathSegLinetoHorizontalRel(void 0,n)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(n){return new window.SVGPathSegLinetoVerticalAbs(void 0,n)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(n){return new window.SVGPathSegLinetoVerticalRel(void 0,n)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(n,t,i,r){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,n,t,i,r)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(n,t,i,r){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,n,t,i,r)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(n,t){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,n,t)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(n,t){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,n,t)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(n){var i,t;if(void 0===n||!isFinite(n))throw"Invalid arguments.";if(i=document.createElementNS("http://www.w3.org/2000/svg","path"),i.setAttribute("d",this.getAttribute("d")),t=i.pathSegList.numberOfItems-1,t<=0)return 0;do{if(i.pathSegList.removeItem(t),n>i.getTotalLength())break;t--}while(0<t);return t})),"SVGPathSegList"in window||(window.SVGPathSegList=function(n){this._pathElement=n;this._list=this._parsePath(this._pathElement.getAttribute("d"));this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]};this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this));this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(n){if(this._pathElement){var t=!1;n.forEach(function(n){"d"==n.attributeName&&(t=!0)});t&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect();this._pathElement.setAttribute("d",window.SVGPathSegList._pathSegArrayAsString(this._list));this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList();this._list.forEach(function(n){n._owningPathSegList=null});this._list=[];this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(n){return this._checkPathSynchronizedToList(),this._list=[n],(n._owningPathSegList=this)._writeListToPath(),n},window.SVGPathSegList.prototype._checkValidIndex=function(n){if(isNaN(n)||n<0||n>=this.numberOfItems)throw"INDEX_SIZE_ERR";},window.SVGPathSegList.prototype.getItem=function(n){return this._checkPathSynchronizedToList(),this._checkValidIndex(n),this._list[n]},window.SVGPathSegList.prototype.insertItemBefore=function(n,t){return this._checkPathSynchronizedToList(),t>this.numberOfItems&&(t=this.numberOfItems),n._owningPathSegList&&(n=n.clone()),this._list.splice(t,0,n),(n._owningPathSegList=this)._writeListToPath(),n},window.SVGPathSegList.prototype.replaceItem=function(n,t){return this._checkPathSynchronizedToList(),n._owningPathSegList&&(n=n.clone()),this._checkValidIndex(t),((this._list[t]=n)._owningPathSegList=this)._writeListToPath(),n},window.SVGPathSegList.prototype.removeItem=function(n){this._checkPathSynchronizedToList();this._checkValidIndex(n);var t=this._list[n];return this._list.splice(n,1),this._writeListToPath(),t},window.SVGPathSegList.prototype.appendItem=function(n){return this._checkPathSynchronizedToList(),n._owningPathSegList&&(n=n.clone()),this._list.push(n),(n._owningPathSegList=this)._writeListToPath(),n},window.SVGPathSegList._pathSegArrayAsString=function(n){var t="",i=!0;return n.forEach(function(n){i?(i=!1,t+=n._asPathString()):t+=" "+n._asPathString()}),t},window.SVGPathSegList.prototype._parsePath=function(n){var t,u,i,f,r,e;if(!n||0==n.length)return[];if(t=this,u=function(){this.pathSegList=[]},u.prototype.appendSegment=function(n){this.pathSegList.push(n)},i=function(n){this._string=n;this._currentIndex=0;this._endIndex=this._string.length;this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN;this._skipOptionalSpaces()},i.prototype._isCurrentSpace=function(){var n=this._string[this._currentIndex];return n<=" "&&(" "==n||"\n"==n||"\t"==n||"\r"==n||"\f"==n)},i.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},i.prototype._skipOptionalSpacesOrDelimiter=function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!=this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","==this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},i.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},i.prototype.peekSegmentType=function(){var n=this._string[this._currentIndex];return this._pathSegTypeFromChar(n)},i.prototype._pathSegTypeFromChar=function(n){switch(n){case"Z":case"z":return window.SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return window.SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return window.SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return window.SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return window.SVGPathSeg.PATHSEG_LINETO_REL;case"C":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return window.SVGPathSeg.PATHSEG_ARC_ABS;case"a":return window.SVGPathSeg.PATHSEG_ARC_REL;case"H":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return window.SVGPathSeg.PATHSEG_UNKNOWN}},i.prototype._nextCommandHelper=function(n,t){return("+"==n||"-"==n||"."==n||"0"<=n&&n<="9")&&t!=window.SVGPathSeg.PATHSEG_CLOSEPATH?t==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:t==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:t:window.SVGPathSeg.PATHSEG_UNKNOWN},i.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var n=this.peekSegmentType();return n==window.SVGPathSeg.PATHSEG_MOVETO_ABS||n==window.SVGPathSeg.PATHSEG_MOVETO_REL},i.prototype._parseNumber=function(){var n=0,f=0,e=1,o=0,s=1,h=1,c=this._currentIndex,i,r,u,t;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,s=-1),!(this._currentIndex==this._endIndex||(this._string.charAt(this._currentIndex)<"0"||"9"<this._string.charAt(this._currentIndex))&&"."!=this._string.charAt(this._currentIndex))){for(i=this._currentIndex;this._currentIndex<this._endIndex&&"0"<=this._string.charAt(this._currentIndex)&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=i)for(r=this._currentIndex-1,u=1;i<=r;)f+=u*(this._string.charAt(r--)-"0"),u*=10;if(this._currentIndex<this._endIndex&&"."==this._string.charAt(this._currentIndex)){if(this._currentIndex++,this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||"9"<this._string.charAt(this._currentIndex))return;for(;this._currentIndex<this._endIndex&&"0"<=this._string.charAt(this._currentIndex)&&this._string.charAt(this._currentIndex)<="9";)e*=10,o+=(this._string.charAt(this._currentIndex)-"0")/e,this._currentIndex+=1}if(this._currentIndex!=c&&this._currentIndex+1<this._endIndex&&("e"==this._string.charAt(this._currentIndex)||"E"==this._string.charAt(this._currentIndex))&&"x"!=this._string.charAt(this._currentIndex+1)&&"m"!=this._string.charAt(this._currentIndex+1)){if(this._currentIndex++,"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,h=-1),this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||"9"<this._string.charAt(this._currentIndex))return;for(;this._currentIndex<this._endIndex&&"0"<=this._string.charAt(this._currentIndex)&&this._string.charAt(this._currentIndex)<="9";)n*=10,n+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}if(t=f+o,t*=s,n&&(t*=Math.pow(10,h*n)),c!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),t}},i.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var n=!1,t=this._string.charAt(this._currentIndex++);if("0"==t)n=!1;else{if("1"!=t)return;n=!0}return this._skipOptionalSpacesOrDelimiter(),n}},i.prototype.parseSegment=function(){var r=this._string[this._currentIndex],i=this._pathSegTypeFromChar(r),n;if(i==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN||(i=this._nextCommandHelper(r,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=i){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(t,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(t,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(t,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(t,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(t);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:return n={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicRel(t,n.x,n.y,n.x1,n.y1,n.x2,n.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return n={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(t,n.x,n.y,n.x1,n.y1,n.x2,n.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return n={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(t,n.x,n.y,n.x2,n.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return n={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(t,n.x,n.y,n.x2,n.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return n={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(t,n.x,n.y,n.x1,n.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return n={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(t,n.x,n.y,n.x1,n.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return n={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(t,n.x,n.y,n.x1,n.y1,n.arcAngle,n.arcLarge,n.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return n={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(t,n.x,n.y,n.x1,n.y1,n.arcAngle,n.arcLarge,n.arcSweep);default:throw"Unknown path seg type.";}},f=new u,r=new i(n),!r.initialCommandIsMoveTo())return[];for(;r.hasMoreData();){if(e=r.parseSegment(),!e)return[];f.appendSegment(e)}return f.pathSegList}),String.prototype.padEnd||(String.prototype.padEnd=function(n,t){return n>>=0,t=String(void 0!==t?t:" "),this.length>n?String(this):((n-=this.length)>t.length&&(t+=t.repeat(n/t.length)),String(this)+t.slice(0,n))}),(i.prototype.axis=function(){}).labels=function(n){var t=this.internal;arguments.length&&(Object.keys(n).forEach(function(i){t.axis.setLabelText(i,n[i])}),t.axis.updateLabels())},i.prototype.axis.max=function(n){var i=this.internal,t=i.config;if(!arguments.length)return{x:t.axis_x_max,y:t.axis_y_max,y2:t.axis_y2_max};"object"===(void 0===n?"undefined":a(n))?(u(n.x)&&(t.axis_x_max=n.x),u(n.y)&&(t.axis_y_max=n.y),u(n.y2)&&(t.axis_y2_max=n.y2)):t.axis_y_max=t.axis_y2_max=n;i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},i.prototype.axis.min=function(n){var i=this.internal,t=i.config;if(!arguments.length)return{x:t.axis_x_min,y:t.axis_y_min,y2:t.axis_y2_min};"object"===(void 0===n?"undefined":a(n))?(u(n.x)&&(t.axis_x_min=n.x),u(n.y)&&(t.axis_y_min=n.y),u(n.y2)&&(t.axis_y2_min=n.y2)):t.axis_y_min=t.axis_y2_min=n;i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},i.prototype.axis.range=function(n){if(!arguments.length)return{max:this.axis.max(),min:this.axis.min()};o(n.max)&&this.axis.max(n.max);o(n.min)&&this.axis.min(n.min)},i.prototype.category=function(n,t){var i=this.internal,r=i.config;return 1<arguments.length&&(r.axis_x_categories[n]=t,i.redraw()),r.axis_x_categories[n]},i.prototype.categories=function(n){var t=this.internal,i=t.config;return arguments.length&&(i.axis_x_categories=n,t.redraw()),i.axis_x_categories},i.prototype.resize=function(n){var t=this.internal.config;t.size_width=n?n.width:null;t.size_height=n?n.height:null;this.flush()},i.prototype.flush=function(){this.internal.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},i.prototype.destroy=function(){var n=this.internal,t;return(window.clearInterval(n.intervalForObserveInserted),void 0!==n.resizeTimeout&&window.clearTimeout(n.resizeTimeout),window.detachEvent)?window.detachEvent("onresize",n.resizeIfElementDisplayed):window.removeEventListener?window.removeEventListener("resize",n.resizeIfElementDisplayed):(t=window.onresize,t&&t.add&&t.remove&&t.remove(n.resizeFunction)),n.resizeFunction.remove(),n.selectChart.classed("c3",!1).html(""),Object.keys(n).forEach(function(t){n[t]=null}),null},i.prototype.color=function(n){return this.internal.color(n)},(i.prototype.data=function(n){var t=this.internal.data.targets;return void 0===n?t:t.filter(function(t){return 0<=[].concat(n).indexOf(t.id)})}).shown=function(n){return this.internal.filterTargetsToShow(this.data(n))},i.prototype.data.values=function(n){var t,i=null;return n&&(i=(t=this.data(n))[0]?t[0].values.map(function(n){return n.value}):null),i},i.prototype.data.names=function(n){return this.internal.clearLegendItemTextBoxCache(),this.internal.updateDataAttributes("names",n)},i.prototype.data.colors=function(n){return this.internal.updateDataAttributes("colors",n)},i.prototype.data.axes=function(n){return this.internal.updateDataAttributes("axes",n)},i.prototype.flow=function(n){var i,c,l,e,f,h,y,t=this.internal,v=[],a=t.getMaxDataCount(),s=0,r=0;if(n.json)c=t.convertJsonToData(n.json,n.keys);else if(n.rows)c=t.convertRowsToData(n.rows);else{if(!n.columns)return;c=t.convertColumnsToData(n.columns)}i=t.convertDataToTargets(c,!0);t.data.targets.forEach(function(n){for(var f,e=!1,u=0;u<i.length;u++)if(n.id===i[u].id){for(e=!0,n.values[n.values.length-1]&&(r=n.values[n.values.length-1].index+1),s=i[u].values.length,f=0;f<s;f++)i[u].values[f].index=r+f,t.isTimeSeries()||(i[u].values[f].x=r+f);n.values=n.values.concat(i[u].values);i.splice(u,1);break}e||v.push(n.id)});t.data.targets.forEach(function(n){for(var i,u=0;u<v.length;u++)if(n.id===v[u])for(r=n.values[n.values.length-1].index+1,i=0;i<s;i++)n.values.push({id:n.id,index:r+i,x:t.isTimeSeries()?t.getOtherTargetX(r+i):r+i,value:null})});t.data.targets.length&&i.forEach(function(n){for(var u=[],i=t.data.targets[0].values[0].index;i<r;i++)u.push({id:n.id,index:i,x:t.isTimeSeries()?t.getOtherTargetX(i):i,value:null});n.values.forEach(function(n){n.index+=r;t.isTimeSeries()||(n.x+=r)});n.values=u.concat(n.values)});t.data.targets=t.data.targets.concat(i);t.getMaxDataCount();f=(e=t.data.targets[0]).values[0];o(n.to)?(s=0,y=t.isTimeSeries()?t.parseDate(n.to):n.to,e.values.forEach(function(n){n.x<y&&s++})):o(n.length)&&(s=n.length);a?1===a&&t.isTimeSeries()&&(h=(e.values[e.values.length-1].x-f.x)/2,l=[new Date(+f.x-h),new Date(+f.x+h)],t.updateXDomain(null,!0,!0,!1,l)):(h=t.isTimeSeries()?1<e.values.length?e.values[e.values.length-1].x-f.x:f.x-t.getXDomain(t.data.targets)[0]:1,l=[f.x-h,f.x],t.updateXDomain(null,!0,!0,!1,l));t.updateTargets(t.data.targets);t.redraw({flow:{index:f.index,length:s,duration:u(n.duration)?n.duration:t.config.transition_duration,done:n.done,orgDataCount:a},withLegend:!0,withTransition:1<a,withTrimXDomain:!1,withUpdateXAxis:!0})},n.prototype.generateFlow=function(n){var i=this,u=i.config,r=i.d3;return function(){var c,o,s,d,l,p,g,nt,tt,it,rt,ft=n.targets,h=n.flow,et=n.drawBar,ot=n.drawLine,st=n.drawArea,ht=n.cx,ct=n.cy,ut=n.xv,lt=n.xForText,at=n.yForText,vt=n.duration,w=h.index,b=h.length,a=i.getValueOnIndex(i.data.targets[0].values,w),v=i.getValueOnIndex(i.data.targets[0].values,w+b),k=i.x.domain(),yt=h.duration||vt,pt=h.done||function(){},f=i.generateWait(),e;i.flowing=!0;i.data.targets.forEach(function(n){n.values.splice(0,b)});s=i.updateXDomain(ft,!0,!0);i.updateXGrid&&i.updateXGrid(!0);d=i.xgrid||r.selectAll([]);l=i.xgridLines||r.selectAll([]);p=i.mainRegion||r.selectAll([]);g=i.mainText||r.selectAll([]);nt=i.mainBar||r.selectAll([]);tt=i.mainLine||r.selectAll([]);it=i.mainArea||r.selectAll([]);rt=i.mainCircle||r.selectAll([]);h.orgDataCount?c=1===h.orgDataCount||(a&&a.x)===(v&&v.x)?i.x(k[0])-i.x(s[0]):i.isTimeSeries()?i.x(k[0])-i.x(s[0]):i.x(a.x)-i.x(v.x):1!==i.data.targets[0].values.length?c=i.x(k[0])-i.x(s[0]):i.isTimeSeries()?(a=i.getValueOnIndex(i.data.targets[0].values,0),v=i.getValueOnIndex(i.data.targets[0].values,i.data.targets[0].values.length-1),c=i.x(a.x)-i.x(v.x)):c=y(s)/2;o="translate("+c+",0) scale("+y(k)/y(s)+",1)";i.hideXGridFocus();e=r.transition().ease(r.easeLinear).duration(yt);f.add(i.xAxis(i.axes.x,e));f.add(nt.transition(e).attr("transform",o));f.add(tt.transition(e).attr("transform",o));f.add(it.transition(e).attr("transform",o));f.add(rt.transition(e).attr("transform",o));f.add(g.transition(e).attr("transform",o));f.add(p.filter(i.isRegionOnX).transition(e).attr("transform",o));f.add(d.transition(e).attr("transform",o));f.add(l.transition(e).attr("transform",o));f(function(){var n,r=[],f=[];if(b){for(n=0;n<b;n++)r.push("."+t.shape+"-"+(w+n)),f.push("."+t.text+"-"+(w+n));i.svg.selectAll("."+t.shapes).selectAll(r).remove();i.svg.selectAll("."+t.texts).selectAll(f).remove();i.svg.select("."+t.xgrid).remove()}d.attr("transform",null).attr("x1",i.xgridAttr.x1).attr("x2",i.xgridAttr.x2).attr("y1",i.xgridAttr.y1).attr("y2",i.xgridAttr.y2).style("opacity",i.xgridAttr.opacity);l.attr("transform",null);l.select("line").attr("x1",u.axis_rotated?0:ut).attr("x2",u.axis_rotated?i.width:ut);l.select("text").attr("x",u.axis_rotated?i.width:0).attr("y",ut);nt.attr("transform",null).attr("d",et);tt.attr("transform",null).attr("d",ot);it.attr("transform",null).attr("d",st);rt.attr("transform",null).attr("cx",ht).attr("cy",ct);g.attr("transform",null).attr("x",lt).attr("y",at).style("fill-opacity",i.opacityForText.bind(i));p.attr("transform",null);p.filter(i.isRegionOnX).attr("x",i.regionX.bind(i)).attr("width",i.regionWidth.bind(i));pt();i.flowing=!1})}},i.prototype.focus=function(n){var r,i=this.internal;n=i.mapToTargetIds(n);r=i.svg.selectAll(i.selectorTargets(n.filter(i.isTargetToShow,i)));this.revert();this.defocus();r.classed(t.focused,!0).classed(t.defocused,!1);i.hasArcType()&&i.expandArc(n);i.toggleFocusLegend(n,!0);i.focusedTargetIds=n;i.defocusedTargetIds=i.defocusedTargetIds.filter(function(t){return n.indexOf(t)<0})},i.prototype.defocus=function(n){var i=this.internal;n=i.mapToTargetIds(n);i.svg.selectAll(i.selectorTargets(n.filter(i.isTargetToShow,i))).classed(t.focused,!1).classed(t.defocused,!0);i.hasArcType()&&i.unexpandArc(n);i.toggleFocusLegend(n,!1);i.focusedTargetIds=i.focusedTargetIds.filter(function(t){return n.indexOf(t)<0});i.defocusedTargetIds=n},i.prototype.revert=function(n){var i=this.internal;n=i.mapToTargetIds(n);i.svg.selectAll(i.selectorTargets(n)).classed(t.focused,!1).classed(t.defocused,!1);i.hasArcType()&&i.unexpandArc(n);i.config.legend_show&&(i.showLegend(n.filter(i.isLegendToShow.bind(i))),i.legend.selectAll(i.selectorLegends(n)).filter(function(){return i.d3.select(this).classed(t.legendItemFocused)}).classed(t.legendItemFocused,!1));i.focusedTargetIds=[];i.defocusedTargetIds=[]},(i.prototype.xgrids=function(n){var t=this.internal,i=t.config;return n&&(i.grid_x_lines=n,t.redrawWithoutRescale()),i.grid_x_lines}).add=function(n){var t=this.internal;return this.xgrids(t.config.grid_x_lines.concat(n||[]))},i.prototype.xgrids.remove=function(n){this.internal.removeGridLines(n,!0)},(i.prototype.ygrids=function(n){var t=this.internal,i=t.config;return n&&(i.grid_y_lines=n,t.redrawWithoutRescale()),i.grid_y_lines}).add=function(n){var t=this.internal;return this.ygrids(t.config.grid_y_lines.concat(n||[]))},i.prototype.ygrids.remove=function(n){this.internal.removeGridLines(n,!1)},i.prototype.groups=function(n){var t=this.internal,i=t.config;return c(n)||(i.data_groups=n,t.redraw()),i.data_groups},(i.prototype.legend=function(){}).show=function(n){var t=this.internal;t.showLegend(t.mapToTargetIds(n));t.updateAndRedraw({withLegend:!0})},i.prototype.legend.hide=function(n){var t=this.internal;t.hideLegend(t.mapToTargetIds(n));t.updateAndRedraw({withLegend:!1})},i.prototype.load=function(n){var t=this.internal,r=t.config;n.xs&&t.addXs(n.xs);"names"in n&&i.prototype.data.names.bind(this)(n.names);"classes"in n&&Object.keys(n.classes).forEach(function(t){r.data_classes[t]=n.classes[t]});"categories"in n&&t.isCategorized()&&(r.axis_x_categories=n.categories);"axes"in n&&Object.keys(n.axes).forEach(function(t){r.data_axes[t]=n.axes[t]});"colors"in n&&Object.keys(n.colors).forEach(function(t){r.data_colors[t]=n.colors[t]});"cacheIds"in n&&t.hasCaches(n.cacheIds)?t.load(t.getCaches(n.cacheIds),n.done):"unload"in n?t.unload(t.mapToTargetIds("boolean"==typeof n.unload&&n.unload?null:n.unload),function(){t.loadFromArgs(n)}):t.loadFromArgs(n)},i.prototype.unload=function(n){var t=this.internal;(n=n||{})instanceof Array?n={ids:n}:"string"==typeof n&&(n={ids:[n]});t.unload(t.mapToTargetIds(n.ids),function(){t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0});n.done&&n.done()})},(i.prototype.regions=function(n){var t=this.internal,i=t.config;return n&&(i.regions=n,t.redrawWithoutRescale()),i.regions}).add=function(n){var i=this.internal,t=i.config;return n&&(t.regions=t.regions.concat(n),i.redrawWithoutRescale()),t.regions},i.prototype.regions.remove=function(n){var u,f,e,i=this.internal,r=i.config;return n=n||{},u=i.getOption(n,"duration",r.transition_duration),f=i.getOption(n,"classes",[t.region]),e=i.main.select("."+t.regions).selectAll(f.map(function(n){return"."+n})),(u?e.transition().duration(u):e).style("opacity",0).remove(),r.regions=r.regions.filter(function(n){var t=!1;return!n.class||(n.class.split(" ").forEach(function(n){0<=f.indexOf(n)&&(t=!0)}),!t)}),r.regions},i.prototype.selected=function(n){var i=this.internal,r=i.d3;return r.merge(i.main.selectAll("."+t.shapes+i.getTargetSelectorSuffix(n)).selectAll("."+t.shape).filter(function(){return r.select(this).classed(t.SELECTED)}).map(function(n){return n.map(function(n){var t=n.__data__;return t.data?t.data:t})}))},i.prototype.select=function(n,i,r){var u=this.internal,e=u.d3,f=u.config;f.data_selection_enabled&&u.main.selectAll("."+t.shapes).selectAll("."+t.shape).each(function(s,h){var c=e.select(this),v=s.data?s.data.id:s.id,l=u.getToggle(this,s).bind(u),y=f.data_selection_grouped||!n||0<=n.indexOf(v),p=!i||0<=i.indexOf(h),a=c.classed(t.SELECTED);c.classed(t.line)||c.classed(t.area)||(y&&p?f.data_selection_isselectable(s)&&!a&&l(!0,c.classed(t.SELECTED,!0),s,h):o(r)&&r&&a&&l(!1,c.classed(t.SELECTED,!1),s,h))})},i.prototype.unselect=function(n,i){var r=this.internal,f=r.d3,u=r.config;u.data_selection_enabled&&r.main.selectAll("."+t.shapes).selectAll("."+t.shape).each(function(e,o){var s=f.select(this),h=e.data?e.data.id:e.id,c=r.getToggle(this,e).bind(r),l=u.data_selection_grouped||!n||0<=n.indexOf(h),a=!i||0<=i.indexOf(o),v=s.classed(t.SELECTED);s.classed(t.line)||s.classed(t.area)||l&&a&&u.data_selection_isselectable(e)&&v&&c(!1,s.classed(t.SELECTED,!1),e,o)})},i.prototype.show=function(n,t){var r,i=this.internal;n=i.mapToTargetIds(n);t=t||{};i.removeHiddenTargetIds(n);(r=i.svg.selectAll(i.selectorTargets(n))).transition().style("display","initial","important").style("opacity",1,"important").call(i.endall,function(){r.style("opacity",null).style("opacity",1)});t.withLegend&&i.showLegend(n);i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},i.prototype.hide=function(n,t){var r,i=this.internal;n=i.mapToTargetIds(n);t=t||{};i.addHiddenTargetIds(n);(r=i.svg.selectAll(i.selectorTargets(n))).transition().style("opacity",0,"important").call(i.endall,function(){r.style("opacity",null).style("opacity",0);r.style("display","none")});t.withLegend&&i.hideLegend(n);i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},i.prototype.toggle=function(n,t){var i=this,r=this.internal;r.mapToTargetIds(n).forEach(function(n){r.isTargetToShow(n)?i.hide(n,t):i.show(n,t)})},(i.prototype.tooltip=function(){}).show=function(n){var u,i,t=this.internal,r={};n.mouse?r=n.mouse:(n.data?i=n.data:void 0!==n.x&&(u=n.id?t.data.targets.filter(function(t){return t.id===n.id}):t.data.targets,i=t.filterByX(u,n.x).slice(0,1)[0]),r=i?t.getMousePosition(i):null);t.dispatchEvent("mousemove",r);t.config.tooltip_onshow.call(t,i)},i.prototype.tooltip.hide=function(){this.internal.dispatchEvent("mouseout",0);this.internal.config.tooltip_onhide.call(this)},i.prototype.transform=function(n,t){var i=this.internal,r=0<=["pie","donut"].indexOf(n)?{withTransform:!0}:null;i.transformTo(t,n,r)},n.prototype.transformTo=function(n,t,i){var r=this,f=!r.hasArcType(),u=i||{withTransitionForAxis:f};u.withTransitionForTransform=!1;r.transiting=!1;r.setTargetType(n,t);r.updateTargets(r.data.targets);r.updateAndRedraw(u)},i.prototype.x=function(n){var t=this.internal;return arguments.length&&(t.updateTargetX(t.data.targets,n),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs},i.prototype.xs=function(n){var t=this.internal;return arguments.length&&(t.updateTargetXs(t.data.targets,n),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs},(i.prototype.zoom=function(n){var t=this.internal;return n?(t.isTimeSeries()&&(n=n.map(function(n){return t.parseDate(n)})),t.config.subchart_show?t.brush.selectionAsValue(n,!0):(t.updateXDomain(null,!0,!1,!1,n),t.redraw({withY:t.config.zoom_rescale,withSubchart:!1})),t.config.zoom_onzoom.call(this,t.x.orgDomain()),n):t.x.domain()}).enable=function(n){var t=this.internal;t.config.zoom_enabled=n;t.updateAndRedraw()},i.prototype.unzoom=function(){var n=this.internal;n.config.subchart_show?n.brush.clear():(n.updateXDomain(null,!0,!1,!1,n.subX.domain()),n.redraw({withY:n.config.zoom_rescale,withSubchart:!1}))},i.prototype.zoom.max=function(n){var t=this.internal,i=t.config,r=t.d3;if(0!==n&&!n)return i.zoom_x_max;i.zoom_x_max=r.max([t.orgXDomain[1],n])},i.prototype.zoom.min=function(n){var t=this.internal,i=t.config,r=t.d3;if(0!==n&&!n)return i.zoom_x_min;i.zoom_x_min=r.min([t.orgXDomain[0],n])},i.prototype.zoom.range=function(n){if(!arguments.length)return{max:this.domain.max(),min:this.domain.min()};o(n.max)&&this.domain.max(n.max);o(n.min)&&this.domain.min(n.min)},n.prototype.initPie=function(){var n=this,r=n.d3,t,i;n.pie=r.pie().value(function(n){return n.values.reduce(function(n,t){return n+t.value},0)});t=n.getOrderFunction();t&&(n.isOrderAsc()||n.isOrderDesc())&&(i=t,t=function(n,t){return-1*i(n,t)});n.pie.sort(t||null)},n.prototype.updateRadius=function(){var n=this,r=n.config,t=r.gauge_width||r.donut_width,i=n.filterTargetsToShow(n.data.targets).length*n.config.gauge_arcs_minWidth;n.radiusExpanded=Math.min(n.arcWidth,n.arcHeight)/2*(n.hasType("gauge")?.85:1);n.radius=.95*n.radiusExpanded;n.innerRadiusRatio=t?(n.radius-t)/n.radius:.6;n.innerRadius=n.hasType("donut")||n.hasType("gauge")?n.radius*n.innerRadiusRatio:0;n.gaugeArcWidth=t||(i<=n.radius-n.innerRadius?n.radius-n.innerRadius:i<=n.radius?i:n.radius)},n.prototype.updateArc=function(){var n=this;n.svgArc=n.getSvgArc();n.svgArcExpanded=n.getSvgArcExpanded();n.svgArcExpandedSub=n.getSvgArcExpanded(.98)},n.prototype.updateAngle=function(n){var t,u,e,o,i=this,r=i.config,f=!1,s=0;return r?(i.pie(i.filterTargetsToShow(i.data.targets)).forEach(function(t){f||t.data.id!==n.data.id||(f=!0,(n=t).index=s);s++}),isNaN(n.startAngle)&&(n.startAngle=0),isNaN(n.endAngle)&&(n.endAngle=n.startAngle),i.isGaugeType(n.data)&&(t=r.gauge_min,u=r.gauge_max,e=Math.PI*(r.gauge_fullCircle?2:1)/(u-t),o=n.value<t?0:n.value<u?n.value-t:u-t,n.startAngle=r.gauge_startingAngle,n.endAngle=n.startAngle+e*o),f?n:null):null},n.prototype.getSvgArc=function(){var n=this,i=n.hasType("gauge"),r=n.gaugeArcWidth/n.filterTargetsToShow(n.data.targets).length,t=n.d3.arc().outerRadius(function(t){return i?n.radius-r*t.index:n.radius}).innerRadius(function(t){return i?n.radius-r*(t.index+1):n.innerRadius}),u=function(i,r){var u;return r?t(i):(u=n.updateAngle(i))?t(u):"M 0 0"};return u.centroid=t.centroid,u},n.prototype.getSvgArcExpanded=function(n){n=n||1;var t=this,r=t.hasType("gauge"),i=t.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length,u=Math.min(t.radiusExpanded*n-t.radius,.8*i-100*(1-n)),f=t.d3.arc().outerRadius(function(f){return r?t.radius-i*f.index+u:t.radiusExpanded*n}).innerRadius(function(n){return r?t.radius-i*(n.index+1):t.innerRadius});return function(n){var i=t.updateAngle(n);return i?f(i):"M 0 0"}},n.prototype.getArc=function(n,t,i){return i||this.isArcType(n.data)?this.svgArc(n,t):"M 0 0"},n.prototype.transformForArcLabel=function(n){var r,u,f,e,l,t=this,i=t.config,o=t.updateAngle(n),s="",a=t.hasType("gauge"),c;return o&&!a?(r=this.svgArc.centroid(o),u=isNaN(r[0])?0:r[0],f=isNaN(r[1])?0:r[1],e=Math.sqrt(u*u+f*f),s="translate("+u*(l=t.hasType("donut")&&i.donut_label_ratio?h(i.donut_label_ratio)?i.donut_label_ratio(n,t.radius,e):i.donut_label_ratio:t.hasType("pie")&&i.pie_label_ratio?h(i.pie_label_ratio)?i.pie_label_ratio(n,t.radius,e):i.pie_label_ratio:t.radius&&e?(.375<36/t.radius?1.175-36/t.radius:.8)*t.radius/e:0)+","+f*l+")"):o&&a&&1<t.filterTargetsToShow(t.data.targets).length&&(c=Math.sin(o.endAngle-Math.PI/2),s="translate("+(u=Math.cos(o.endAngle-Math.PI/2)*(t.radiusExpanded+25))+","+(f=c*(t.radiusExpanded+15-Math.abs(10*c))+3)+")"),s},n.prototype.getArcRatio=function(n){var t=this.config,i=Math.PI*(this.hasType("gauge")&&!t.gauge_fullCircle?1:2);return n?(n.endAngle-n.startAngle)/i:null},n.prototype.convertToArcData=function(n){return this.addName({id:n.data.id,value:n.value,ratio:this.getArcRatio(n),index:n.index})},n.prototype.textForArcLabel=function(n){var r,u,i,f,e,t=this;return t.shouldShowArcLabel()?(u=(r=t.updateAngle(n))?r.value:null,i=t.getArcRatio(r),f=n.data.id,t.hasType("gauge")||t.meetsArcLabelThreshold(i)?(e=t.getArcLabelFormat())?e(u,i,f):t.defaultArcValueFormat(u,i):""):""},n.prototype.textForGaugeMinMax=function(n,t){var i=this.getGaugeLabelExtents();return i?i(n,t):n},n.prototype.expandArc=function(n){var r,i=this;i.transiting?r=window.setInterval(function(){i.transiting||(window.clearInterval(r),0<i.legend.selectAll(".c3-legend-item-focused").size()&&i.expandArc(n))},10):(n=i.mapToTargetIds(n),i.svg.selectAll(i.selectorTargets(n,"."+t.chartArc)).each(function(n){i.shouldExpand(n.data.id)&&i.d3.select(this).selectAll("path").transition().duration(i.expandDuration(n.data.id)).attr("d",i.svgArcExpanded).transition().duration(2*i.expandDuration(n.data.id)).attr("d",i.svgArcExpandedSub).each(function(n){i.isDonutType(n.data)})}))},n.prototype.unexpandArc=function(n){var i=this;i.transiting||(n=i.mapToTargetIds(n),i.svg.selectAll(i.selectorTargets(n,"."+t.chartArc)).selectAll("path").transition().duration(function(n){return i.expandDuration(n.data.id)}).attr("d",i.svgArc),i.svg.selectAll("."+t.arc))},n.prototype.expandDuration=function(n){var t=this.config;return this.isDonutType(n)?t.donut_expand_duration:this.isGaugeType(n)?t.gauge_expand_duration:this.isPieType(n)?t.pie_expand_duration:50},n.prototype.shouldExpand=function(n){var t=this.config;return this.isDonutType(n)&&t.donut_expand||this.isGaugeType(n)&&t.gauge_expand||this.isPieType(n)&&t.pie_expand},n.prototype.shouldShowArcLabel=function(){var t=this.config,n=!0;return this.hasType("donut")?n=t.donut_label_show:this.hasType("pie")&&(n=t.pie_label_show),n},n.prototype.meetsArcLabelThreshold=function(n){var t=this.config;return(this.hasType("donut")?t.donut_label_threshold:t.pie_label_threshold)<=n},n.prototype.getArcLabelFormat=function(){var n=this.config,t=n.pie_label_format;return this.hasType("gauge")?t=n.gauge_label_format:this.hasType("donut")&&(t=n.donut_label_format),t},n.prototype.getGaugeLabelExtents=function(){return this.config.gauge_label_extents},n.prototype.getArcTitle=function(){return this.hasType("donut")?this.config.donut_title:""},n.prototype.updateTargetsForArc=function(n){var r,i=this,f=i.main,u=i.classChartArc.bind(i),e=i.classArcs.bind(i),o=i.classFocus.bind(i);(r=f.select("."+t.chartArcs).selectAll("."+t.chartArc).data(i.pie(n)).attr("class",function(n){return u(n)+o(n.data)}).enter().append("g").attr("class",u)).append("g").attr("class",e);r.append("text").attr("dy",i.hasType("gauge")?"-.1em":".35em").style("opacity",0).style("text-anchor","middle").style("pointer-events","none")},n.prototype.initArc=function(){var n=this;n.arcs=n.main.select("."+t.chart).append("g").attr("class",t.chartArcs).attr("transform",n.getTranslate("arc"));n.arcs.append("text").attr("class",t.chartArcsTitle).style("text-anchor","middle").text(n.getArcTitle())},n.prototype.redrawArc=function(n,i,r){var s,l,a,h,u=this,v=u.d3,f=u.config,e=u.main,c=u.hasType("gauge"),y,o;(l=(s=e.selectAll("."+t.arcs).selectAll("."+t.arc).data(u.arcData.bind(u))).enter().append("path").attr("class",u.classArc.bind(u)).style("fill",function(n){return u.color(n.data)}).style("cursor",function(n){return f.interaction_enabled&&f.data_selection_isselectable(n)?"pointer":null}).each(function(n){u.isGaugeType(n.data)&&(n.startAngle=n.endAngle=f.gauge_startingAngle);this._current=n}).merge(s),c&&(h=(a=e.selectAll("."+t.arcs).selectAll("."+t.arcLabelLine).data(u.arcData.bind(u))).enter().append("rect").attr("class",function(n){return t.arcLabelLine+" "+t.target+" "+t.target+"-"+n.data.id}).merge(a),1===u.filterTargetsToShow(u.data.targets).length?h.style("display","none"):h.style("fill",function(n){return 0<f.color_pattern.length?u.levelColor(n.data.values[0].value):u.color(n.data)}).style("display",f.gauge_labelLine_show?"":"none").each(function(n){var i=0,r=0,f=0,e="";if(u.hiddenTargetIds.indexOf(n.data.id)<0){var o=u.updateAngle(n),s=u.gaugeArcWidth/u.filterTargetsToShow(u.data.targets).length*(o.index+1),h=o.endAngle-Math.PI/2,t=u.radius-s,c=h-(0===t?0:1/t);i=u.radiusExpanded-u.radius+s;r=Math.cos(c)*t;f=Math.sin(c)*t;e="rotate("+180*h/Math.PI+", "+r+", "+f+")"}v.select(this).attr("x",r).attr("y",f).attr("width",i).attr("height",2).attr("transform",e).style("stroke-dasharray","0, "+(i+2)+", 0")})),l.attr("transform",function(n){return!u.isGaugeType(n.data)&&r?"scale(0)":""}).on("mouseover",f.interaction_enabled?function(n){var t,i;u.transiting||(t=u.updateAngle(n))&&(i=u.convertToArcData(t),u.expandArc(t.data.id),u.api.focus(t.data.id),u.toggleFocusLegend(t.data.id,!0),u.config.data_onmouseover(i,this))}:null).on("mousemove",f.interaction_enabled?function(n){var t,i=u.updateAngle(n);i&&(t=[u.convertToArcData(i)],u.showTooltip(t,this))}:null).on("mouseout",f.interaction_enabled?function(n){var t,i;u.transiting||(t=u.updateAngle(n))&&(i=u.convertToArcData(t),u.unexpandArc(t.data.id),u.api.revert(),u.revertLegend(),u.hideTooltip(),u.config.data_onmouseout(i,this))}:null).on("click",f.interaction_enabled?function(n,t){var i,r=u.updateAngle(n);r&&(i=u.convertToArcData(r),u.toggleShape&&u.toggleShape(this,i,t),u.config.data_onclick.call(u.api,i,this))}:null).each(function(){u.transiting=!0}).transition().duration(n).attrTween("d",function(n){var t,i=u.updateAngle(n);return i?(isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle),t=v.interpolate(this._current,i),this._current=t(0),function(i){var r=t(i);return r.data=n.data,u.getArc(r,!0)}):function(){return"M 0 0"}}).attr("transform",r?"scale(1)":"").style("fill",function(n){return u.levelColor?u.levelColor(n.data.values[0].value):u.color(n.data.id)}).call(u.endall,function(){u.transiting=!1}),s.exit().transition().duration(i).style("opacity",0).remove(),e.selectAll("."+t.chartArc).select("text").style("opacity",0).attr("class",function(n){return u.isGaugeType(n.data)?t.gaugeValue:""}).text(u.textForArcLabel.bind(u)).attr("transform",u.transformForArcLabel.bind(u)).style("font-size",function(n){return u.isGaugeType(n.data)&&1===u.filterTargetsToShow(u.data.targets).length?Math.round(u.radius/5)+"px":""}).transition().duration(n).style("opacity",function(n){return u.isTargetToShow(n.data.id)&&u.isArcType(n.data)?1:0}),e.select("."+t.chartArcsTitle).style("opacity",u.hasType("donut")||c?1:0),c)&&(y=0,o=u.arcs.select("g."+t.chartArcsBackground).selectAll("path."+t.chartArcsBackground).data(u.data.targets),o.enter().append("path").attr("class",function(n,i){return t.chartArcsBackground+" "+t.chartArcsBackground+"-"+i}).merge(o).attr("d",function(n){if(0<=u.hiddenTargetIds.indexOf(n.id))return"M 0 0";var t={data:[{value:f.gauge_max}],startAngle:f.gauge_startingAngle,endAngle:-1*f.gauge_startingAngle*(f.gauge_fullCircle?Math.PI:1),index:y++};return u.getArc(t,!0,!0)}),o.exit().remove(),u.arcs.select("."+t.chartArcsGaugeUnit).attr("dy",".75em").text(f.gauge_label_show?f.gauge_units:""),u.arcs.select("."+t.chartArcsGaugeMin).attr("dx",-1*(u.innerRadius+(u.radius-u.innerRadius)/(f.gauge_fullCircle?1:2))+"px").attr("dy","1.2em").text(f.gauge_label_show?u.textForGaugeMinMax(f.gauge_min,!1):""),u.arcs.select("."+t.chartArcsGaugeMax).attr("dx",u.innerRadius+(u.radius-u.innerRadius)/(f.gauge_fullCircle?1:2)+"px").attr("dy","1.2em").text(f.gauge_label_show?u.textForGaugeMinMax(f.gauge_max,!0):""))},n.prototype.initGauge=function(){var n=this.arcs;this.hasType("gauge")&&(n.append("g").attr("class",t.chartArcsBackground),n.append("text").attr("class",t.chartArcsGaugeUnit).style("text-anchor","middle").style("pointer-events","none"),n.append("text").attr("class",t.chartArcsGaugeMin).style("text-anchor","middle").style("pointer-events","none"),n.append("text").attr("class",t.chartArcsGaugeMax).style("text-anchor","middle").style("pointer-events","none"))},n.prototype.getGaugeLabelHeight=function(){return this.config.gauge_label_show?20:0},n.prototype.hasCaches=function(n){for(var t=0;t<n.length;t++)if(!(n[t]in this.cache))return!1;return!0},n.prototype.addCache=function(n,t){this.cache[n]=this.cloneTarget(t)},n.prototype.getCaches=function(n){for(var i=[],t=0;t<n.length;t++)n[t]in this.cache&&i.push(this.cloneTarget(this.cache[n[t]]));return i},n.prototype.categoryName=function(n){var t=this.config;return n<t.axis_x_categories.length?t.axis_x_categories[n]:n},n.prototype.generateTargetClass=function(n){return n||0===n?("-"+n).replace(/\s/g,"-"):""},n.prototype.generateClass=function(n,t){return" "+n+" "+n+this.generateTargetClass(t)},n.prototype.classText=function(n){return this.generateClass(t.text,n.index)},n.prototype.classTexts=function(n){return this.generateClass(t.texts,n.id)},n.prototype.classShape=function(n){return this.generateClass(t.shape,n.index)},n.prototype.classShapes=function(n){return this.generateClass(t.shapes,n.id)},n.prototype.classLine=function(n){return this.classShape(n)+this.generateClass(t.line,n.id)},n.prototype.classLines=function(n){return this.classShapes(n)+this.generateClass(t.lines,n.id)},n.prototype.classCircle=function(n){return this.classShape(n)+this.generateClass(t.circle,n.index)},n.prototype.classCircles=function(n){return this.classShapes(n)+this.generateClass(t.circles,n.id)},n.prototype.classBar=function(n){return this.classShape(n)+this.generateClass(t.bar,n.index)},n.prototype.classBars=function(n){return this.classShapes(n)+this.generateClass(t.bars,n.id)},n.prototype.classArc=function(n){return this.classShape(n.data)+this.generateClass(t.arc,n.data.id)},n.prototype.classArcs=function(n){return this.classShapes(n.data)+this.generateClass(t.arcs,n.data.id)},n.prototype.classArea=function(n){return this.classShape(n)+this.generateClass(t.area,n.id)},n.prototype.classAreas=function(n){return this.classShapes(n)+this.generateClass(t.areas,n.id)},n.prototype.classRegion=function(n,i){return this.generateClass(t.region,i)+" "+("class"in n?n.class:"")},n.prototype.classEvent=function(n){return this.generateClass(t.eventRect,n.index)},n.prototype.classTarget=function(n){var i=this.config.data_classes[n],r="";return i&&(r=" "+t.target+"-"+i),this.generateClass(t.target,n)+r},n.prototype.classFocus=function(n){return this.classFocused(n)+this.classDefocused(n)},n.prototype.classFocused=function(n){return" "+(0<=this.focusedTargetIds.indexOf(n.id)?t.focused:"")},n.prototype.classDefocused=function(n){return" "+(0<=this.defocusedTargetIds.indexOf(n.id)?t.defocused:"")},n.prototype.classChartText=function(n){return t.chartText+this.classTarget(n.id)},n.prototype.classChartLine=function(n){return t.chartLine+this.classTarget(n.id)},n.prototype.classChartBar=function(n){return t.chartBar+this.classTarget(n.id)},n.prototype.classChartArc=function(n){return t.chartArc+this.classTarget(n.data.id)},n.prototype.getTargetSelectorSuffix=function(n){return this.generateTargetClass(n).replace(/([?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\])/g,"\\$1")},n.prototype.selectorTarget=function(n,i){return(i||"")+"."+t.target+this.getTargetSelectorSuffix(n)},n.prototype.selectorTargets=function(n,t){var i=this;return(n=n||[]).length?n.map(function(n){return i.selectorTarget(n,t)}):null},n.prototype.selectorLegend=function(n){return"."+t.legendItem+this.getTargetSelectorSuffix(n)},n.prototype.selectorLegends=function(n){var t=this;return n&&n.length?n.map(function(n){return t.selectorLegend(n)}):null},n.prototype.getClipPath=function(n){return"url("+(0<=window.navigator.appVersion.toLowerCase().indexOf("msie 9.")?"":document.URL.split("#")[0])+"#"+n+")"},n.prototype.appendClip=function(n,t){return n.append("clipPath").attr("id",t).append("rect")},n.prototype.getAxisClipX=function(n){var t=Math.max(30,this.margin.left);return n?-(1+t):-(t-1)},n.prototype.getAxisClipY=function(n){return n?-20:-this.margin.top},n.prototype.getXAxisClipX=function(){return this.getAxisClipX(!this.config.axis_rotated)},n.prototype.getXAxisClipY=function(){return this.getAxisClipY(!this.config.axis_rotated)},n.prototype.getYAxisClipX=function(){return this.config.axis_y_inner?-1:this.getAxisClipX(this.config.axis_rotated)},n.prototype.getYAxisClipY=function(){return this.getAxisClipY(this.config.axis_rotated)},n.prototype.getAxisClipWidth=function(n){var t=Math.max(30,this.margin.left),i=Math.max(30,this.margin.right);return n?this.width+2+t+i:this.margin.left+20},n.prototype.getAxisClipHeight=function(n){return(n?this.margin.bottom:this.margin.top+this.height)+20},n.prototype.getXAxisClipWidth=function(){return this.getAxisClipWidth(!this.config.axis_rotated)},n.prototype.getXAxisClipHeight=function(){return this.getAxisClipHeight(!this.config.axis_rotated)},n.prototype.getYAxisClipWidth=function(){return this.getAxisClipWidth(this.config.axis_rotated)+(this.config.axis_y_inner?20:0)},n.prototype.getYAxisClipHeight=function(){return this.getAxisClipHeight(this.config.axis_rotated)},n.prototype.generateColor=function(){var t=this.config,f=this.d3,n=t.data_colors,r=l(t.color_pattern)?t.color_pattern:f.schemeCategory10,u=t.data_color,i=[];return function(t){var e,f=t.id||t.data&&t.data.id||t;return n[f]instanceof Function?e=n[f](t):n[f]?e=n[f]:(i.indexOf(f)<0&&i.push(f),e=r[i.indexOf(f)%r.length],n[f]=e),u instanceof Function?u(e,t):e}},n.prototype.generateLevelColor=function(){var t=this.config,i=t.color_pattern,n=t.color_threshold,u="value"===n.unit,r=n.values&&n.values.length?n.values:[],f=n.max||100;return l(t.color_threshold)?function(n){for(var e=i[i.length-1],t=0;t<r.length;t++)if((u?n:100*n/f)<r[t]){e=i[t];break}return e}:null},n.prototype.getDefaultConfig=function(){var n={bindto:"#chart",svg_classname:void 0,size_width:void 0,size_height:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,zoom_enabled:!1,zoom_initialRange:void 0,zoom_type:"scroll",zoom_disableDefaultBehavior:!1,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:function(){},zoom_onzoomstart:function(){},zoom_onzoomend:function(){},zoom_x_min:void 0,zoom_x_max:void 0,interaction_brighten:!0,interaction_enabled:!0,onmouseover:function(){},onmouseout:function(){},onresize:function(){},onresized:function(){},oninit:function(){},onrendered:function(){},transition_duration:350,data_x:void 0,data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_idConverter:function(n){return n},data_names:{},data_classes:{},data_groups:[],data_axes:{},data_type:void 0,data_types:{},data_labels:{},data_order:"desc",data_regions:{},data_color:void 0,data_colors:{},data_hide:!1,data_filter:void 0,data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_onclick:function(){},data_onmouseover:function(){},data_onmouseout:function(){},data_onselected:function(){},data_onunselected:function(){},data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:void 0,data_keys:void 0,data_empty_label_text:"",subchart_show:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_onbrush:function(){},color_pattern:[],color_threshold:{},legend_show:!0,legend_hide:!1,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onmouseover:void 0,legend_item_onmouseout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,axis_rotated:!1,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_count:void 0,axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_multilineMax:0,axis_x_tick_width:null,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_selection:void 0,axis_x_label:{},axis_x_inner:void 0,axis_y_show:!0,axis_y_type:void 0,axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:void 0,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_time_type:void 0,axis_y_tick_time_interval:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y2_show:!1,axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:void 0,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_count:void 0,axis_y2_padding:{},axis_y2_default:void 0,grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_show:!0,grid_lines_front:!0,point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_select_r:void 0,line_connectNull:!1,line_step_type:"step",bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0,bar_space:0,area_zerobased:!0,area_above:!1,pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,pie_expand:{},pie_expand_duration:50,gauge_fullCircle:!1,gauge_label_show:!0,gauge_labelLine_show:!0,gauge_label_format:void 0,gauge_min:0,gauge_max:100,gauge_startingAngle:Math.PI/-2,gauge_label_extents:void 0,gauge_units:void 0,gauge_width:void 0,gauge_arcs_minWidth:5,gauge_expand:{},gauge_expand_duration:50,donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_duration:50,spline_interpolation_type:"cardinal",regions:[],tooltip_show:!0,tooltip_grouped:!0,tooltip_order:void 0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:function(n,t,i,r){return this.getTooltipContent?this.getTooltipContent(n,t,i,r):""},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_onshow:function(){},tooltip_onhide:function(){},title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"top-center"};return Object.keys(this.additionalConfig).forEach(function(t){n[t]=this.additionalConfig[t]},this),n},n.prototype.additionalConfig={},n.prototype.loadConfig=function(n){var t,r,i,u=this.config;Object.keys(u).forEach(function(f){t=n;r=f.split("_");i=function f(){var n=r.shift();return n&&t&&"object"===(void 0===t?"undefined":a(t))&&n in t?(t=t[n],f()):n?void 0:t}();o(i)&&(u[f]=i)})},n.prototype.convertUrlToData=function(n,t,i,r,u){var e,o,f=this,s=t||"csv";"json"===s?(e=f.d3.json,o=f.convertJsonToData):(e="tsv"===s?f.d3.tsv:f.d3.csv,o=f.convertXsvToData);e(n,i).then(function(n){u.call(f,o.call(f,n,r))}).catch(function(n){throw n;})},n.prototype.convertXsvToData=function(n){var t=n.columns;return 0===n.length?{keys:t,rows:[t.reduce(function(n,t){return Object.assign(n,(u=null,(r=t)in(i={})?Object.defineProperty(i,r,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[r]=u,i));var i,r,u},{})]}:{keys:t,rows:[].concat(n)}},n.prototype.convertJsonToData=function(n,t){var r,f,u=this,i=[];return t?(t.x?(r=t.value.concat(t.x),u.config.data_x=t.x):r=t.value,i.push(r),n.forEach(function(n){var t=[];r.forEach(function(i){var r=u.findValueInJson(n,i);c(r)&&(r=null);t.push(r)});i.push(t)}),f=u.convertRowsToData(i)):(Object.keys(n).forEach(function(t){i.push([t].concat(n[t]))}),f=u.convertColumnsToData(i)),f},n.prototype.findValueInJson=function(n,t){for(var u,r=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),i=0;i<r.length;++i){if(u=r[i],!(u in n))return;n=n[u]}return n},n.prototype.convertRowsToData=function(n){for(var r,t,u=[],f=n[0],i=1;i<n.length;i++){for(r={},t=0;t<n[i].length;t++){if(c(n[i][t]))throw new Error("Source data is missing a component at ("+i+","+t+")!");r[f[t]]=n[i][t]}u.push(r)}return{keys:f,rows:u}},n.prototype.convertColumnsToData=function(n){for(var u,t,r=[],f=[],i=0;i<n.length;i++){for(u=n[i][0],t=1;t<n[i].length;t++){if(c(r[t-1])&&(r[t-1]={}),c(n[i][t]))throw new Error("Source data is missing a component at ("+i+","+t+")!");r[t-1][u]=n[i][t]}f.push(u)}return{keys:f,rows:r}},n.prototype.convertDataToTargets=function(n,t){var f,e,h,s,i=this,r=i.config;return w(n)?s=Object.keys(n[0]):(s=n.keys,n=n.rows),e=s.filter(i.isNotX,i),h=s.filter(i.isX,i),e.forEach(function(f){var e=i.getXKey(f);i.isCustomX()||i.isTimeSeries()?0<=h.indexOf(e)?i.data.xs[f]=(t&&i.data.xs[f]?i.data.xs[f]:[]).concat(n.map(function(n){return n[e]}).filter(u).map(function(n,t){return i.generateTargetX(n,f,t)})):r.data_x?i.data.xs[f]=i.getOtherTargetXs():l(r.data_xs)&&(i.data.xs[f]=i.getXValuesOfXKey(e,i.data.targets)):i.data.xs[f]=n.map(function(n,t){return t})}),e.forEach(function(n){if(!i.data.xs[n])throw new Error('x is not defined for id = "'+n+'".');}),(f=e.map(function(t,u){var f=r.data_idConverter(t);return{id:f,id_org:t,values:n.map(function(n,e){var o,s=n[i.getXKey(t)],h=null===n[t]||isNaN(n[t])?null:+n[t];return i.isCustomX()&&i.isCategorized()&&!c(s)?(0===u&&0===e&&(r.axis_x_categories=[]),-1===(o=r.axis_x_categories.indexOf(s))&&(o=r.axis_x_categories.length,r.axis_x_categories.push(s))):o=i.generateTargetX(s,t,e),(c(n[t])||i.data.xs[t].length<=e)&&(o=void 0),{x:o,value:h,id:f}}).filter(function(n){return o(n.x)})}})).forEach(function(n){var t;r.data_xSort&&(n.values=n.values.sort(function(n,t){return(n.x||0===n.x?n.x:1/0)-(t.x||0===t.x?t.x:1/0)}));t=0;n.values.forEach(function(n){n.index=t++});i.data.xs[n.id].sort(function(n,t){return n-t})}),i.hasNegativeValue=i.hasNegativeValueInTargets(f),i.hasPositiveValue=i.hasPositiveValueInTargets(f),r.data_type&&i.setTargetType(i.mapToIds(f).filter(function(n){return!(n in r.data_types)}),r.data_type),f.forEach(function(n){i.addCache(n.id_org,n)}),f},n.prototype.isX=function(n){var i,u,r,t=this.config;return t.data_x&&n===t.data_x||l(t.data_xs)&&(i=t.data_xs,u=n,r=!1,Object.keys(i).forEach(function(n){i[n]===u&&(r=!0)}),r)},n.prototype.isNotX=function(n){return!this.isX(n)},n.prototype.getXKey=function(n){var t=this.config;return t.data_x?t.data_x:l(t.data_xs)?t.data_xs[n]:null},n.prototype.getXValuesOfXKey=function(n,t){var r,i=this;return(t&&l(t)?i.mapToIds(t):[]).forEach(function(t){i.getXKey(t)===n&&(r=i.data.xs[t])}),r},n.prototype.getXValue=function(n,t){return n in this.data.xs&&this.data.xs[n]&&u(this.data.xs[n][t])?this.data.xs[n][t]:t},n.prototype.getOtherTargetXs=function(){var n=Object.keys(this.data.xs);return n.length?this.data.xs[n[0]]:null},n.prototype.getOtherTargetX=function(n){var t=this.getOtherTargetXs();return t&&n<t.length?t[n]:null},n.prototype.addXs=function(n){var t=this;Object.keys(n).forEach(function(i){t.config.data_xs[i]=n[i]})},n.prototype.addName=function(n){var t;return n&&(t=this.config.data_names[n.id],n.name=void 0!==t?t:n.id),n},n.prototype.getValueOnIndex=function(n,t){var i=n.filter(function(n){return n.index===t});return i.length?i[0]:null},n.prototype.updateTargetX=function(n,t){var i=this;n.forEach(function(n){n.values.forEach(function(r,u){r.x=i.generateTargetX(t[u],n.id,u)});i.data.xs[n.id]=t})},n.prototype.updateTargetXs=function(n,t){var i=this;n.forEach(function(n){t[n.id]&&i.updateTargetX([n],t[n.id])})},n.prototype.generateTargetX=function(n,t,i){var r=this;return r.isTimeSeries()?n?r.parseDate(n):r.parseDate(r.getXValue(t,i)):r.isCustomX()&&!r.isCategorized()?u(n)?+n:r.getXValue(t,i):i},n.prototype.cloneTarget=function(n){return{id:n.id,id_org:n.id_org,values:n.values.map(function(n){return{x:n.x,value:n.value,id:n.id}})}},n.prototype.getMaxDataCount=function(){return this.d3.max(this.data.targets,function(n){return n.values.length})},n.prototype.mapToIds=function(n){return n.map(function(n){return n.id})},n.prototype.mapToTargetIds=function(n){return n?[].concat(n):this.mapToIds(this.data.targets)},n.prototype.hasTarget=function(n,t){for(var r=this.mapToIds(n),i=0;i<r.length;i++)if(r[i]===t)return!0;return!1},n.prototype.isTargetToShow=function(n){return this.hiddenTargetIds.indexOf(n)<0},n.prototype.isLegendToShow=function(n){return this.hiddenLegendIds.indexOf(n)<0},n.prototype.filterTargetsToShow=function(n){var t=this;return n.filter(function(n){return t.isTargetToShow(n.id)})},n.prototype.mapTargetsToUniqueXs=function(n){var t=this.d3.set(this.d3.merge(n.map(function(n){return n.values.map(function(n){return+n.x})}))).values();return(t=this.isTimeSeries()?t.map(function(n){return new Date(+n)}):t.map(function(n){return+n})).sort(function(n,t){return n<t?-1:t<n?1:t<=n?0:NaN})},n.prototype.addHiddenTargetIds=function(n){n=n instanceof Array?n:new Array(n);for(var t=0;t<n.length;t++)this.hiddenTargetIds.indexOf(n[t])<0&&(this.hiddenTargetIds=this.hiddenTargetIds.concat(n[t]))},n.prototype.removeHiddenTargetIds=function(n){this.hiddenTargetIds=this.hiddenTargetIds.filter(function(t){return n.indexOf(t)<0})},n.prototype.addHiddenLegendIds=function(n){n=n instanceof Array?n:new Array(n);for(var t=0;t<n.length;t++)this.hiddenLegendIds.indexOf(n[t])<0&&(this.hiddenLegendIds=this.hiddenLegendIds.concat(n[t]))},n.prototype.removeHiddenLegendIds=function(n){this.hiddenLegendIds=this.hiddenLegendIds.filter(function(t){return n.indexOf(t)<0})},n.prototype.getValuesAsIdKeyed=function(n){var t={};return n.forEach(function(n){t[n.id]=[];n.values.forEach(function(i){t[n.id].push(i.value)})}),t},n.prototype.checkValueInTargets=function(n,t){for(var r,u,f=Object.keys(n),i=0;i<f.length;i++)for(u=n[f[i]].values,r=0;r<u.length;r++)if(t(u[r].value))return!0;return!1},n.prototype.hasNegativeValueInTargets=function(n){return this.checkValueInTargets(n,function(n){return n<0})},n.prototype.hasPositiveValueInTargets=function(n){return this.checkValueInTargets(n,function(n){return 0<n})},n.prototype.isOrderDesc=function(){var n=this.config;return"string"==typeof n.data_order&&"desc"===n.data_order.toLowerCase()},n.prototype.isOrderAsc=function(){var n=this.config;return"string"==typeof n.data_order&&"asc"===n.data_order.toLowerCase()},n.prototype.getOrderFunction=function(){var n=this.config,r=this.isOrderAsc(),u=this.isOrderDesc(),t,i;return r||u?(t=function(n,t){return n+Math.abs(t.value)},function(n,i){var u=n.values.reduce(t,0),f=i.values.reduce(t,0);return r?f-u:u-f}):h(n.data_order)?n.data_order:w(n.data_order)?(i=n.data_order,function(n,t){return i.indexOf(n.id)-i.indexOf(t.id)}):void 0},n.prototype.orderTargets=function(n){var t=this.getOrderFunction();return t&&n.sort(t),n},n.prototype.filterByX=function(n,t){return this.d3.merge(n.map(function(n){return n.values})).filter(function(n){return n.x-t==0})},n.prototype.filterRemoveNull=function(n){return n.filter(function(n){return u(n.value)})},n.prototype.filterByXDomain=function(n,t){return n.map(function(n){return{id:n.id,id_org:n.id_org,values:n.values.filter(function(n){return t[0]<=n.x&&n.x<=t[1]})}})},n.prototype.hasDataLabel=function(){var n=this.config;return!("boolean"!=typeof n.data_labels||!n.data_labels)||!("object"!==a(n.data_labels)||!l(n.data_labels))},n.prototype.getDataLabelLength=function(n,t,i){var r=this,u=[0,0];return r.selectChart.select("svg").selectAll(".dummy").data([n,t]).enter().append("text").text(function(n){return r.dataLabelFormat(n.id)(n)}).each(function(n,t){u[t]=1.3*this.getBoundingClientRect()[i]}).remove(),u},n.prototype.isNoneArc=function(n){return this.hasTarget(this.data.targets,n.id)},n.prototype.isArc=function(n){return"data"in n&&this.hasTarget(this.data.targets,n.data.id)},n.prototype.findClosestFromTargets=function(n,t){var i,r=this;return i=n.map(function(n){return r.findClosest(n.values,t)}),r.findClosest(i,t)},n.prototype.findClosest=function(n,i){var u,r=this,f=r.config.point_sensitivity;return n.filter(function(n){return n&&r.isBarType(n.id)}).forEach(function(n){var i=r.main.select("."+t.bars+r.getTargetSelectorSuffix(n.id)+" ."+t.bar+"-"+n.index).node();!u&&r.isWithinBar(r.d3.mouse(i),i)&&(u=n)}),n.filter(function(n){return n&&!r.isBarType(n.id)}).forEach(function(n){var t=r.dist(n,i);t<f&&(f=t,u=n)}),u},n.prototype.dist=function(n,t){var i=this.config,r=i.axis_rotated?1:0,u=i.axis_rotated?0:1,f=this.circleY(n,n.index),e=this.x(n.x);return Math.sqrt(Math.pow(e-t[r],2)+Math.pow(f-t[u],2))},n.prototype.convertValuesToStep=function(n){var i,t=[].concat(n);if(!this.isCategorized())return n;for(i=n.length+1;0<i;i--)t[i]=t[i-1];return t[0]={x:t[0].x-1,value:t[0].value,id:t[0].id},t[n.length+1]={x:t[n.length].x+1,value:t[n.length].value,id:t[n.length].id},t},n.prototype.updateDataAttributes=function(n,t){var i=this.config["data_"+n];return void 0===t||(Object.keys(t).forEach(function(n){i[n]=t[n]}),this.redraw({withLegend:!0})),i},n.prototype.load=function(n,t){var i=this;n&&(t.filter&&(n=n.filter(t.filter)),(t.type||t.types)&&n.forEach(function(n){var r=t.types&&t.types[n.id]?t.types[n.id]:t.type;i.setTargetType(n.id,r)}),i.data.targets.forEach(function(t){for(var i=0;i<n.length;i++)if(t.id===n[i].id){t.values=n[i].values;n.splice(i,1);break}}),i.data.targets=i.data.targets.concat(n));i.updateTargets(i.data.targets);i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0});t.done&&t.done()},n.prototype.loadFromArgs=function(n){var t=this;n.data?t.load(t.convertDataToTargets(n.data),n):n.url?t.convertUrlToData(n.url,n.mimeType,n.headers,n.keys,function(i){t.load(t.convertDataToTargets(i),n)}):n.json?t.load(t.convertDataToTargets(t.convertJsonToData(n.json,n.keys)),n):n.rows?t.load(t.convertDataToTargets(t.convertRowsToData(n.rows)),n):n.columns?t.load(t.convertDataToTargets(t.convertColumnsToData(n.columns)),n):t.load(null,n)},n.prototype.unload=function(n,i){var r=this;i||(i=function(){});(n=n.filter(function(n){return r.hasTarget(r.data.targets,n)}))&&0!==n.length?(r.svg.selectAll(n.map(function(n){return r.selectorTarget(n)})).transition().style("opacity",0).remove().call(r.endall,i),n.forEach(function(n){r.withoutFadeIn[n]=!1;r.legend&&r.legend.selectAll("."+t.legendItem+r.getTargetSelectorSuffix(n)).remove();r.data.targets=r.data.targets.filter(function(t){return t.id!==n})})):i()},n.prototype.getYDomainMin=function(n){var u,f,r,e,o,s,i=this,h=i.config,c=i.mapToIds(n),t=i.getValuesAsIdKeyed(n);if(0<h.data_groups.length)for(s=i.hasNegativeValueInTargets(n),u=0;u<h.data_groups.length;u++)if(0!==(e=h.data_groups[u].filter(function(n){return 0<=c.indexOf(n)})).length)for(r=e[0],s&&t[r]&&t[r].forEach(function(n,i){t[r][i]=n<0?n:0}),f=1;f<e.length;f++)o=e[f],t[o]&&t[o].forEach(function(n,u){i.axis.getId(o)!==i.axis.getId(r)||!t[r]||s&&0<+n||(t[r][u]+=+n)});return i.d3.min(Object.keys(t).map(function(n){return i.d3.min(t[n])}))},n.prototype.getYDomainMax=function(n){var u,f,r,e,o,s,i=this,h=i.config,c=i.mapToIds(n),t=i.getValuesAsIdKeyed(n);if(0<h.data_groups.length)for(s=i.hasPositiveValueInTargets(n),u=0;u<h.data_groups.length;u++)if(0!==(e=h.data_groups[u].filter(function(n){return 0<=c.indexOf(n)})).length)for(r=e[0],s&&t[r]&&t[r].forEach(function(n,i){t[r][i]=0<n?n:0}),f=1;f<e.length;f++)o=e[f],t[o]&&t[o].forEach(function(n,u){i.axis.getId(o)!==i.axis.getId(r)||!t[r]||s&&+n<0||(t[r][u]+=+n)});return i.d3.max(Object.keys(t).map(function(n){return i.d3.max(t[n])}))},n.prototype.getYDomain=function(n,t,i){var g,s,h,c,rt,a,nt,v,k,d,r=this,e=r.config,ut=n.filter(function(n){return r.axis.getId(n.id)===t}),b=i?r.filterByXDomain(ut,i):ut,p="y2"===t?e.axis_y2_min:e.axis_y_min,w="y2"===t?e.axis_y2_max:e.axis_y_max,f=r.getYDomainMin(b),o=r.getYDomainMax(b),tt="y2"===t?e.axis_y2_center:e.axis_y_center,it=r.hasType("bar",b)&&e.bar_zerobased||r.hasType("area",b)&&e.area_zerobased,ft="y2"===t?e.axis_y2_inverted:e.axis_y_inverted,et=r.hasDataLabel()&&e.axis_rotated,ot=r.hasDataLabel()&&!e.axis_rotated;return f=u(p)?p:u(w)?f<w?f:w-10:f,o=u(w)?w:u(p)?p<o?o:p+10:o,0===b.length?"y2"===t?r.y2.domain():r.y.domain():(isNaN(f)&&(f=0),isNaN(o)&&(o=f),f===o&&(f<0?o=0:f=0),k=0<=f&&0<=o,d=f<=0&&o<=0,(u(p)&&k||u(w)&&d)&&(it=!1),it&&(k&&(f=0),d&&(o=0)),h=c=.1*(s=Math.abs(o-f)),void 0!==tt&&(o=tt+(rt=Math.max(Math.abs(f),Math.abs(o))),f=tt-rt),et?(a=r.getDataLabelLength(f,o,"width"),nt=y(r.y.range()),h+=s*((v=[a[0]/nt,a[1]/nt])[1]/(1-v[0]-v[1])),c+=s*(v[0]/(1-v[0]-v[1]))):ot&&(a=r.getDataLabelLength(f,o,"height"),h+=r.axis.convertPixelsToAxisPadding(a[1],s),c+=r.axis.convertPixelsToAxisPadding(a[0],s)),"y"===t&&l(e.axis_y_padding)&&(h=r.axis.getPadding(e.axis_y_padding,"top",h,s),c=r.axis.getPadding(e.axis_y_padding,"bottom",c,s)),"y2"===t&&l(e.axis_y2_padding)&&(h=r.axis.getPadding(e.axis_y2_padding,"top",h,s),c=r.axis.getPadding(e.axis_y2_padding,"bottom",c,s)),it&&(k&&(c=f),d&&(h=-o)),g=[f-c,o+h],ft?g.reverse():g)},n.prototype.getXDomainMin=function(n){var t=this,i=t.config;return o(i.axis_x_min)?t.isTimeSeries()?this.parseDate(i.axis_x_min):i.axis_x_min:t.d3.min(n,function(n){return t.d3.min(n.values,function(n){return n.x})})},n.prototype.getXDomainMax=function(n){var t=this,i=t.config;return o(i.axis_x_max)?t.isTimeSeries()?this.parseDate(i.axis_x_max):i.axis_x_max:t.d3.max(n,function(n){return t.d3.max(n.values,function(n){return n.x})})},n.prototype.getXDomainPadding=function(n){var e,i,r,f,t=this.config,o=n[1]-n[0];return i=this.isCategorized()?0:this.hasType("bar")?1<(e=this.getMaxDataCount())?o/(e-1)/2:.5:.01*o,"object"===a(t.axis_x_padding)&&l(t.axis_x_padding)?(r=u(t.axis_x_padding.left)?t.axis_x_padding.left:i,f=u(t.axis_x_padding.right)?t.axis_x_padding.right:i):r=f="number"==typeof t.axis_x_padding?t.axis_x_padding:i,{left:r,right:f}},n.prototype.getXDomain=function(n){var r=this,f=[r.getXDomainMin(n),r.getXDomainMax(n)],t=f[0],i=f[1],u=r.getXDomainPadding(f),e=0,o=0;return t-i!=0||r.isCategorized()||(r.isTimeSeries()?(t=new Date(.5*t.getTime()),i=new Date(1.5*i.getTime())):(t=0===t?1:.5*t,i=0===i?-1:1.5*i)),(t||0===t)&&(e=r.isTimeSeries()?new Date(t.getTime()-u.left):t-u.left),(i||0===i)&&(o=r.isTimeSeries()?new Date(i.getTime()+u.right):i+u.right),[e,o]},n.prototype.updateXDomain=function(n,t,i,r,u){var f=this,e=f.config;return i&&(f.x.domain(u||f.d3.extent(f.getXDomain(n))),f.orgXDomain=f.x.domain(),e.zoom_enabled&&f.zoom.update(),f.subX.domain(f.x.domain()),f.brush&&f.brush.updateScale(f.subX)),t&&f.x.domain(u||(!f.brush||f.brush.empty()?f.orgXDomain:f.brush.selectionAsValue())),r&&f.x.domain(f.trimXDomain(f.x.orgDomain())),f.x.domain()},n.prototype.trimXDomain=function(n){var r=this.getZoomDomain(),t=r[0],i=r[1];return n[0]<=t&&(n[1]=+n[1]+(t-n[0]),n[0]=t),i<=n[1]&&(n[0]=+n[0]-(n[1]-i),n[1]=i),n},n.prototype.drag=function(n){var s,h,c,l,r,e,u,o,i=this,f=i.config,a=i.main,v=i.d3;i.hasArcType()||f.data_selection_enabled&&f.data_selection_multiple&&(s=i.dragStart[0],h=i.dragStart[1],c=n[0],l=n[1],r=Math.min(s,c),e=Math.max(s,c),u=f.data_selection_grouped?i.margin.top:Math.min(h,l),o=f.data_selection_grouped?i.height:Math.max(h,l),a.select("."+t.dragarea).attr("x",r).attr("y",u).attr("width",e-r).attr("height",o-u),a.selectAll("."+t.shapes).selectAll("."+t.shape).filter(function(n){return f.data_selection_isselectable(n)}).each(function(n,f){var h,c,p,w,a,l,s=v.select(this),b=s.classed(t.SELECTED),k=s.classed(t.INCLUDED),y=!1;if(s.classed(t.circle))h=1*s.attr("cx"),c=1*s.attr("cy"),a=i.togglePoint,y=r<h&&h<e&&u<c&&c<o;else{if(!s.classed(t.bar))return;h=(l=g(this)).x;c=l.y;p=l.width;w=l.height;a=i.togglePath;y=!(e<h||h+p<r||o<c||c+w<u)}y^k&&(s.classed(t.INCLUDED,!k),s.classed(t.SELECTED,!b),a.call(i,!b,s,n,f))}))},n.prototype.dragstart=function(n){var i=this,r=i.config;i.hasArcType()||r.data_selection_enabled&&(i.dragStart=n,i.main.select("."+t.chart).append("rect").attr("class",t.dragarea).style("opacity",.1),i.dragging=!0)},n.prototype.dragend=function(){var n=this,i=n.config;n.hasArcType()||i.data_selection_enabled&&(n.main.select("."+t.dragarea).transition().duration(100).style("opacity",0).remove(),n.main.selectAll("."+t.shape).classed(t.INCLUDED,!1),n.dragging=!1)},n.prototype.getYFormat=function(n){var t=this,i=n&&!t.hasType("gauge")?t.defaultArcValueFormat:t.yFormat,r=n&&!t.hasType("gauge")?t.defaultArcValueFormat:t.y2Format;return function(n,u,f){return("y2"===t.axis.getId(f)?r:i).call(t,n,u)}},n.prototype.yFormat=function(n){var t=this.config;return(t.axis_y_tick_format?t.axis_y_tick_format:this.defaultValueFormat)(n)},n.prototype.y2Format=function(n){var t=this.config;return(t.axis_y2_tick_format?t.axis_y2_tick_format:this.defaultValueFormat)(n)},n.prototype.defaultValueFormat=function(n){return u(n)?+n:""},n.prototype.defaultArcValueFormat=function(n,t){return(100*t).toFixed(1)+"%"},n.prototype.dataLabelFormat=function(n){var t=this.config.data_labels,i=function(n){return u(n)?+n:""};return"function"==typeof t.format?t.format:"object"===a(t.format)?t.format[n]?!0===t.format[n]?i:t.format[n]:function(){return""}:i},n.prototype.initGrid=function(){var n=this,i=n.config,r=n.d3;n.grid=n.main.append("g").attr("clip-path",n.clipPathForGrid).attr("class",t.grid);i.grid_x_show&&n.grid.append("g").attr("class",t.xgrids);i.grid_y_show&&n.grid.append("g").attr("class",t.ygrids);i.grid_focus_show&&n.grid.append("g").attr("class",t.xgridFocus).append("line").attr("class",t.xgridFocus);n.xgrid=r.selectAll([]);i.grid_lines_front||n.initGridLines()},n.prototype.initGridLines=function(){var n=this,i=n.d3;n.gridLines=n.main.append("g").attr("clip-path",n.clipPathForGrid).attr("class",t.grid+" "+t.gridLines);n.gridLines.append("g").attr("class",t.xgridLines);n.gridLines.append("g").attr("class",t.ygridLines);n.xgridLines=i.selectAll([])},n.prototype.updateXGrid=function(n){var i=this,r=i.config,o=i.d3,s=i.generateGridData(r.grid_x_type,i.x),u=i.isCategorized()?i.xAxis.tickOffset():0,f,e;i.xgridAttr=r.axis_rotated?{x1:0,x2:i.width,y1:function(n){return i.x(n)-u},y2:function(n){return i.x(n)-u}}:{x1:function(n){return i.x(n)+u},x2:function(n){return i.x(n)+u},y1:0,y2:i.height};i.xgridAttr.opacity=function(){return+o.select(this).attr(r.axis_rotated?"y1":"x1")===(r.axis_rotated?i.height:0)?0:1};f=i.main.select("."+t.xgrids).selectAll("."+t.xgrid).data(s);e=f.enter().append("line").attr("class",t.xgrid).attr("x1",i.xgridAttr.x1).attr("x2",i.xgridAttr.x2).attr("y1",i.xgridAttr.y1).attr("y2",i.xgridAttr.y2).style("opacity",0);i.xgrid=e.merge(f);n||i.xgrid.attr("x1",i.xgridAttr.x1).attr("x2",i.xgridAttr.x2).attr("y1",i.xgridAttr.y1).attr("y2",i.xgridAttr.y2).style("opacity",i.xgridAttr.opacity);f.exit().remove()},n.prototype.updateYGrid=function(){var n=this,i=n.config,u=n.yAxis.tickValues()||n.y.ticks(i.grid_y_ticks),r=n.main.select("."+t.ygrids).selectAll("."+t.ygrid).data(u),f=r.enter().append("line").attr("class",t.ygrid);n.ygrid=f.merge(r);n.ygrid.attr("x1",i.axis_rotated?n.y:0).attr("x2",i.axis_rotated?n.y:n.width).attr("y1",i.axis_rotated?0:n.y).attr("y2",i.axis_rotated?n.height:n.y);r.exit().remove();n.smoothLines(n.ygrid,"grid")},n.prototype.gridTextAnchor=function(n){return n.position?n.position:"end"},n.prototype.gridTextDx=function(n){return"start"===n.position?4:"middle"===n.position?0:-4},n.prototype.xGridTextX=function(n){return"start"===n.position?-this.height:"middle"===n.position?-this.height/2:0},n.prototype.yGridTextX=function(n){return"start"===n.position?0:"middle"===n.position?this.width/2:this.width},n.prototype.updateGrid=function(n){var e,o,s,h,i=this,c=i.main,r=i.config,f=i.xv.bind(i),u=i.yv.bind(i),l=i.xGridTextX.bind(i),a=i.yGridTextX.bind(i);i.grid.style("visibility",i.hasArcType()?"hidden":"visible");c.select("line."+t.xgridFocus).style("visibility","hidden");r.grid_x_show&&i.updateXGrid();(o=(e=c.select("."+t.xgridLines).selectAll("."+t.xgridLine).data(r.grid_x_lines)).enter().append("g").attr("class",function(n){return t.xgridLine+(n.class?" "+n.class:"")})).append("line").attr("x1",r.axis_rotated?0:f).attr("x2",r.axis_rotated?i.width:f).attr("y1",r.axis_rotated?f:0).attr("y2",r.axis_rotated?f:i.height).style("opacity",0);o.append("text").attr("text-anchor",i.gridTextAnchor).attr("transform",r.axis_rotated?"":"rotate(-90)").attr("x",r.axis_rotated?a:l).attr("y",f).attr("dx",i.gridTextDx).attr("dy",-5).style("opacity",0);i.xgridLines=o.merge(e);e.exit().transition().duration(n).style("opacity",0).remove();r.grid_y_show&&i.updateYGrid();(h=(s=c.select("."+t.ygridLines).selectAll("."+t.ygridLine).data(r.grid_y_lines)).enter().append("g").attr("class",function(n){return t.ygridLine+(n.class?" "+n.class:"")})).append("line").attr("x1",r.axis_rotated?u:0).attr("x2",r.axis_rotated?u:i.width).attr("y1",r.axis_rotated?0:u).attr("y2",r.axis_rotated?i.height:u).style("opacity",0);h.append("text").attr("text-anchor",i.gridTextAnchor).attr("transform",r.axis_rotated?"rotate(-90)":"").attr("x",r.axis_rotated?l:a).attr("y",u).attr("dx",i.gridTextDx).attr("dy",-5).style("opacity",0);i.ygridLines=h.merge(s);i.ygridLines.select("line").transition().duration(n).attr("x1",r.axis_rotated?u:0).attr("x2",r.axis_rotated?u:i.width).attr("y1",r.axis_rotated?0:u).attr("y2",r.axis_rotated?i.height:u).style("opacity",1);i.ygridLines.select("text").transition().duration(n).attr("x",r.axis_rotated?i.xGridTextX.bind(i):i.yGridTextX.bind(i)).attr("y",u).text(function(n){return n.text}).style("opacity",1);s.exit().transition().duration(n).style("opacity",0).remove()},n.prototype.redrawGrid=function(n,t){var i=this,r=i.config,u=i.xv.bind(i),f=i.xgridLines.select("line"),e=i.xgridLines.select("text");return[(n?f.transition(t):f).attr("x1",r.axis_rotated?0:u).attr("x2",r.axis_rotated?i.width:u).attr("y1",r.axis_rotated?u:0).attr("y2",r.axis_rotated?u:i.height).style("opacity",1),(n?e.transition(t):e).attr("x",r.axis_rotated?i.yGridTextX.bind(i):i.xGridTextX.bind(i)).attr("y",u).text(function(n){return n.text}).style("opacity",1)]},n.prototype.showXGridFocus=function(n){var i=this,r=i.config,o=n.filter(function(n){return n&&u(n.value)}),f=i.main.selectAll("line."+t.xgridFocus),e=i.xx.bind(i);r.tooltip_show&&(i.hasType("scatter")||i.hasArcType()||(f.style("visibility","visible").data([o[0]]).attr(r.axis_rotated?"y1":"x1",e).attr(r.axis_rotated?"y2":"x2",e),i.smoothLines(f,"grid")))},n.prototype.hideXGridFocus=function(){this.main.select("line."+t.xgridFocus).style("visibility","hidden")},n.prototype.updateXgridFocus=function(){var n=this.config;this.main.select("line."+t.xgridFocus).attr("x1",n.axis_rotated?0:-10).attr("x2",n.axis_rotated?this.width:-10).attr("y1",n.axis_rotated?-10:0).attr("y2",n.axis_rotated?-10:this.height)},n.prototype.generateGridData=function(n,i){var f,e,o,u,r=[],s=this.main.select("."+t.axisX).selectAll(".tick").size();if("year"===n)for(e=(f=this.getXDomain())[0].getFullYear(),o=f[1].getFullYear(),u=e;u<=o;u++)r.push(new Date(u+"-01-01 00:00:00"));else(r=i.ticks(10)).length>s&&(r=r.filter(function(n){return(""+n).indexOf(".")<0}));return r},n.prototype.getGridFilterToRemove=function(n){return n?function(t){var i=!1;return[].concat(n).forEach(function(n){("value"in n&&t.value===n.value||"class"in n&&t.class===n.class)&&(i=!0)}),i}:function(){return!0}},n.prototype.removeGridLines=function(n,i){var r=this.config,u=this.getGridFilterToRemove(n),f=function(n){return!u(n)},e=i?t.xgridLines:t.ygridLines,o=i?t.xgridLine:t.ygridLine;this.main.select("."+e).selectAll("."+o).filter(u).transition().duration(r.transition_duration).style("opacity",0).remove();i?r.grid_x_lines=r.grid_x_lines.filter(f):r.grid_y_lines=r.grid_y_lines.filter(f)},n.prototype.initEventRect=function(){var n=this,i=n.config;n.main.select("."+t.chart).append("g").attr("class",t.eventRects).style("fill-opacity",0);n.eventRect=n.main.select("."+t.eventRects).append("rect").attr("class",t.eventRect);i.zoom_enabled&&n.zoom&&(n.eventRect.call(n.zoom).on("dblclick.zoom",null),i.zoom_initialRange&&n.eventRect.transition().duration(0).call(n.zoom.transform,n.zoomTransform(i.zoom_initialRange)))},n.prototype.redrawEventRect=function(){function e(){n.svg.select("."+t.eventRect).style("cursor",null);n.hideXGridFocus();n.hideTooltip();n.unexpandCircles();n.unexpandBars()}var u,f,n=this,r=n.d3,i=n.config;u=n.width;f=n.height;n.main.select("."+t.eventRects).style("cursor",i.zoom_enabled?i.axis_rotated?"ns-resize":"ew-resize":null);n.eventRect.attr("x",0).attr("y",0).attr("width",u).attr("height",f).on("mouseout",i.interaction_enabled?function(){i&&(n.hasArcType()||e())}:null).on("mousemove",i.interaction_enabled?function(){var f,s,u,o;n.dragging||n.hasArcType(f)||(f=n.filterTargetsToShow(n.data.targets),s=r.mouse(this),u=n.findClosestFromTargets(f,s),!n.mouseover||u&&u.id===n.mouseover.id||(i.data_onmouseout.call(n.api,n.mouseover),n.mouseover=void 0),u?(o=(n.isScatterType(u)||!i.tooltip_grouped?[u]:n.filterByX(f,u.x)).map(function(t){return n.addName(t)}),n.showTooltip(o,this),i.point_focus_expand_enabled&&(n.unexpandCircles(),o.forEach(function(t){n.expandCircles(t.index,t.id,!1)})),n.expandBars(u.index,u.id,!0),n.showXGridFocus(o),(n.isBarType(u.id)||n.dist(u,s)<i.point_sensitivity)&&(n.svg.select("."+t.eventRect).style("cursor","pointer"),n.mouseover||(i.data_onmouseover.call(n.api,u),n.mouseover=u))):e())}:null).on("click",i.interaction_enabled?function(){var f,e,u;n.hasArcType(f)||(f=n.filterTargetsToShow(n.data.targets),e=r.mouse(this),(u=n.findClosestFromTargets(f,e))&&(n.isBarType(u.id)||n.dist(u,e)<i.point_sensitivity)&&(n.isScatterType(u)||!i.data_selection_grouped?[u]:n.filterByX(f,u.x)).forEach(function(r){n.main.selectAll("."+t.shapes+n.getTargetSelectorSuffix(r.id)).selectAll("."+t.shape+"-"+r.index).each(function(){(i.data_selection_grouped||n.isWithinShape(this,r))&&(n.toggleShape(this,r,r.index),i.data_onclick.call(n.api,r,this))})}))}:null).call(i.interaction_enabled&&i.data_selection_draggable&&n.drag?r.drag().on("drag",function(){n.drag(r.mouse(this))}).on("start",function(){n.dragstart(r.mouse(this))}).on("end",function(){n.dragend()}):function(){})},n.prototype.getMousePosition=function(n){return[this.x(n.x),this.getYScale(n.id)(n.value)]},n.prototype.dispatchEvent=function(n,i){var s="."+t.eventRect,r=this.main.select(s).node(),u=r.getBoundingClientRect(),f=u.left+(i?i[0]:0),e=u.top+(i?i[1]:0),o=document.createEvent("MouseEvents");o.initMouseEvent(n,!0,!0,window,0,f,e,f,e,!1,!1,!1,!1,0,null);r.dispatchEvent(o)},n.prototype.initLegend=function(){var n=this;if(n.legendItemTextBox={},n.legendHasRendered=!1,n.legend=n.svg.append("g").attr("transform",n.getTranslate("legend")),!n.config.legend_show)return n.legend.style("visibility","hidden"),void(n.hiddenLegendIds=n.mapToIds(n.data.targets));n.updateLegendWithDefaults()},n.prototype.updateLegendWithDefaults=function(){this.updateLegend(this.mapToIds(this.data.targets),{withTransform:!1,withTransitionForTransform:!1,withTransition:!1})},n.prototype.updateSizeForLegend=function(n,t){var i=this,r=i.config,u={top:i.isLegendTop?i.getCurrentPaddingTop()+r.legend_inset_y+5.5:i.currentHeight-n-i.getCurrentPaddingBottom()-r.legend_inset_y,left:i.isLegendLeft?i.getCurrentPaddingLeft()+r.legend_inset_x+.5:i.currentWidth-t-i.getCurrentPaddingRight()-r.legend_inset_x+.5};i.margin3={top:i.isLegendRight?0:i.isLegendInset?u.top:i.currentHeight-n,right:NaN,bottom:0,left:i.isLegendRight?i.currentWidth-t:i.isLegendInset?u.left:0}},n.prototype.transformLegend=function(n){(n?this.legend.transition():this.legend).attr("transform",this.getTranslate("legend"))},n.prototype.updateLegendStep=function(n){this.legendStep=n},n.prototype.updateLegendItemWidth=function(n){this.legendItemWidth=n},n.prototype.updateLegendItemHeight=function(n){this.legendItemHeight=n},n.prototype.getLegendWidth=function(){var n=this;return n.config.legend_show?n.isLegendRight||n.isLegendInset?n.legendItemWidth*(n.legendStep+1):n.currentWidth:0},n.prototype.getLegendHeight=function(){var n=this,t=0;return n.config.legend_show&&(t=n.isLegendRight?n.currentHeight:Math.max(20,n.legendItemHeight)*(n.legendStep+1)),t},n.prototype.opacityForLegend=function(n){return n.classed(t.legendItemHidden)?null:1},n.prototype.opacityForUnfocusedLegend=function(n){return n.classed(t.legendItemHidden)?null:.3},n.prototype.toggleFocusLegend=function(n,i){var r=this;n=r.mapToTargetIds(n);r.legend.selectAll("."+t.legendItem).filter(function(t){return 0<=n.indexOf(t)}).classed(t.legendItemFocused,i).transition().duration(100).style("opacity",function(){return(i?r.opacityForLegend:r.opacityForUnfocusedLegend).call(r,r.d3.select(this))})},n.prototype.revertLegend=function(){var n=this,i=n.d3;n.legend.selectAll("."+t.legendItem).classed(t.legendItemFocused,!1).transition().duration(100).style("opacity",function(){return n.opacityForLegend(i.select(this))})},n.prototype.showLegend=function(n){var t=this,i=t.config;i.legend_show||(i.legend_show=!0,t.legend.style("visibility","visible"),t.legendHasRendered||t.updateLegendWithDefaults());t.removeHiddenLegendIds(n);t.legend.selectAll(t.selectorLegends(n)).style("visibility","visible").transition().style("opacity",function(){return t.opacityForLegend(t.d3.select(this))})},n.prototype.hideLegend=function(n){var t=this,i=t.config;i.legend_show&&b(n)&&(i.legend_show=!1,t.legend.style("visibility","hidden"));t.addHiddenLegendIds(n);t.legend.selectAll(t.selectorLegends(n)).style("opacity",0).style("visibility","hidden")},n.prototype.clearLegendItemTextBoxCache=function(){this.legendItemTextBox={}},n.prototype.updateLegend=function(n,i,r){function vt(i,r,e){function it(n,t){t||(o=(tt-p-b)/2)<at&&(o=(tt-b)/2,p=0,h++);l[n]=h;nt[h]=u.isLegendInset?10:o;k[n]=p;p+=b}var o,rt,w,a,ft=0===e,et=e===n.length-1,ut=(w=i,a=r,u.legendItemTextBox[a]||(u.legendItemTextBox[a]=u.getTextRect(w.textContent,t.legendItem,w)),u.legendItemTextBox[a]),v=ut.width+wt+(!et||u.isLegendRight||u.isLegendInset?pt:0)+f.legend_padding,y=ut.height+yt,b=u.isLegendRight||u.isLegendInset?y:v,tt=u.isLegendRight||u.isLegendInset?u.getLegendHeight():u.getLegendWidth();ft&&(c=s=h=p=0);!f.legend_show||u.isLegendToShow(r)?(d[r]=v,g[r]=y,(!s||s<=v)&&(s=v),(!c||c<=y)&&(c=y),rt=u.isLegendRight||u.isLegendInset?c:s,f.legend_equally?(Object.keys(d).forEach(function(n){d[n]=s}),Object.keys(g).forEach(function(n){g[n]=c}),(o=(tt-rt*n.length)/2)<at?(h=p=0,n.forEach(function(n){it(n)})):it(r,!0)):it(r)):d[r]=g[r]=l[r]=k[r]=0}var a,tt,it,v,rt,ut,ft,et,w,ot,b,lt,st,ht,ct,y,u=this,f=u.config,yt=4,pt=10,s=0,c=0,at=10,wt=f.legend_item_tile_width+5,p=0,k={},d={},g={},nt=[0],l={},h=0;n=n.filter(function(n){return!o(f.data_names[n])||null!==f.data_names[n]});b=e(i=i||{},"withTransition",!0);lt=e(i,"withTransitionForTransform",!0);u.isLegendInset&&(h=f.legend_inset_step?f.legend_inset_step:n.length,u.updateLegendStep(h));u.isLegendRight?(a=function(n){return s*l[n]},v=function(n){return nt[l[n]]+k[n]}):u.isLegendInset?(a=function(n){return s*l[n]+10},v=function(n){return nt[l[n]]+k[n]}):(a=function(n){return nt[l[n]]+k[n]},v=function(n){return c*l[n]});tt=function(n,t){return a(n,t)+4+f.legend_item_tile_width};rt=function(n,t){return v(n,t)+9};it=function(n,t){return a(n,t)};ut=function(n,t){return v(n,t)-5};ft=function(n,t){return a(n,t)-2};et=function(n,t){return a(n,t)-2+f.legend_item_tile_width};w=function(n,t){return v(n,t)+4};(ot=u.legend.selectAll("."+t.legendItem).data(n).enter().append("g").attr("class",function(n){return u.generateClass(t.legendItem,n)}).style("visibility",function(n){return u.isLegendToShow(n)?"visible":"hidden"}).style("cursor","pointer").on("click",function(n){f.legend_item_onclick?f.legend_item_onclick.call(u,n):u.d3.event.altKey?(u.api.hide(),u.api.show(n)):(u.api.toggle(n),u.isTargetToShow(n)?u.api.focus(n):u.api.revert())}).on("mouseover",function(n){f.legend_item_onmouseover?f.legend_item_onmouseover.call(u,n):(u.d3.select(this).classed(t.legendItemFocused,!0),!u.transiting&&u.isTargetToShow(n)&&u.api.focus(n))}).on("mouseout",function(n){f.legend_item_onmouseout?f.legend_item_onmouseout.call(u,n):(u.d3.select(this).classed(t.legendItemFocused,!1),u.api.revert())})).append("text").text(function(n){return o(f.data_names[n])?f.data_names[n]:n}).each(function(n,t){vt(this,n,t)}).style("pointer-events","none").attr("x",u.isLegendRight||u.isLegendInset?tt:-200).attr("y",u.isLegendRight||u.isLegendInset?-200:rt);ot.append("rect").attr("class",t.legendItemEvent).style("fill-opacity",0).attr("x",u.isLegendRight||u.isLegendInset?it:-200).attr("y",u.isLegendRight||u.isLegendInset?-200:ut);ot.append("line").attr("class",t.legendItemTile).style("stroke",u.color).style("pointer-events","none").attr("x1",u.isLegendRight||u.isLegendInset?ft:-200).attr("y1",u.isLegendRight||u.isLegendInset?-200:w).attr("x2",u.isLegendRight||u.isLegendInset?et:-200).attr("y2",u.isLegendRight||u.isLegendInset?-200:w).attr("stroke-width",f.legend_item_tile_height);y=u.legend.select("."+t.legendBackground+" rect");u.isLegendInset&&0<s&&0===y.size()&&(y=u.legend.insert("g","."+t.legendItem).attr("class",t.legendBackground).append("rect"));st=u.legend.selectAll("text").data(n).text(function(n){return o(f.data_names[n])?f.data_names[n]:n}).each(function(n,t){vt(this,n,t)});(b?st.transition():st).attr("x",tt).attr("y",rt);ht=u.legend.selectAll("rect."+t.legendItemEvent).data(n);(b?ht.transition():ht).attr("width",function(n){return d[n]}).attr("height",function(n){return g[n]}).attr("x",it).attr("y",ut);ct=u.legend.selectAll("line."+t.legendItemTile).data(n);(b?ct.transition():ct).style("stroke",u.levelColor?function(n){return u.levelColor(u.cache[n].values[0].value)}:u.color).attr("x1",ft).attr("y1",w).attr("x2",et).attr("y2",w);y&&(b?y.transition():y).attr("height",u.getLegendHeight()-12).attr("width",s*(h+1)+10);u.legend.selectAll("."+t.legendItem).classed(t.legendItemHidden,function(n){return!u.isTargetToShow(n)});u.updateLegendItemWidth(s);u.updateLegendItemHeight(c);u.updateLegendStep(h);u.updateSizes();u.updateScales();u.updateSvgSize();u.transformAll(lt,r);u.legendHasRendered=!0},n.prototype.initRegion=function(){this.region=this.main.append("g").attr("clip-path",this.clipPath).attr("class",t.regions)},n.prototype.updateRegion=function(n){var i=this,f=i.config,r,u;i.region.style("visibility",i.hasArcType()?"hidden":"visible");r=i.main.select("."+t.regions).selectAll("."+t.region).data(f.regions);u=r.enter().append("rect").attr("x",i.regionX.bind(i)).attr("y",i.regionY.bind(i)).attr("width",i.regionWidth.bind(i)).attr("height",i.regionHeight.bind(i)).style("fill-opacity",0);i.mainRegion=u.merge(r).attr("class",i.classRegion.bind(i));r.exit().transition().duration(n).style("opacity",0).remove()},n.prototype.redrawRegion=function(n,t){var i=this,r=i.mainRegion;return[(n?r.transition(t):r).attr("x",i.regionX.bind(i)).attr("y",i.regionY.bind(i)).attr("width",i.regionWidth.bind(i)).attr("height",i.regionHeight.bind(i)).style("fill-opacity",function(n){return u(n.opacity)?n.opacity:.1})]},n.prototype.regionX=function(n){var t=this,i=t.config,r="y"===n.axis?t.y:t.y2;return"y"===n.axis||"y2"===n.axis?i.axis_rotated&&"start"in n?r(n.start):0:i.axis_rotated?0:"start"in n?t.x(t.isTimeSeries()?t.parseDate(n.start):n.start):0},n.prototype.regionY=function(n){var t=this,i=t.config,r="y"===n.axis?t.y:t.y2;return"y"===n.axis||"y2"===n.axis?i.axis_rotated?0:"end"in n?r(n.end):0:i.axis_rotated&&"start"in n?t.x(t.isTimeSeries()?t.parseDate(n.start):n.start):0},n.prototype.regionWidth=function(n){var i,t=this,r=t.config,u=t.regionX(n),f="y"===n.axis?t.y:t.y2;return(i="y"===n.axis||"y2"===n.axis?r.axis_rotated&&"end"in n?f(n.end):t.width:r.axis_rotated?t.width:"end"in n?t.x(t.isTimeSeries()?t.parseDate(n.end):n.end):t.width)<u?0:i-u},n.prototype.regionHeight=function(n){var i,t=this,r=t.config,u=this.regionY(n),f="y"===n.axis?t.y:t.y2;return(i="y"===n.axis||"y2"===n.axis?r.axis_rotated?t.height:"start"in n?f(n.start):t.height:r.axis_rotated&&"end"in n?t.x(t.isTimeSeries()?t.parseDate(n.end):n.end):t.height)<u?0:i-u},n.prototype.isRegionOnX=function(n){return!n.axis||"x"===n.axis},n.prototype.getScale=function(n,t,i){return(i?this.d3.scaleTime():this.d3.scaleLinear()).range([n,t])},n.prototype.getX=function(n,t,i,r){var e,u=this.getScale(n,t,this.isTimeSeries()),f=i?u.domain(i):u;for(e in this.isCategorized()?(r=r||function(){return 0},u=function(n,t){var i=f(n)+r(n);return t?i:Math.ceil(i)}):u=function(n,t){var i=f(n);return t?i:Math.ceil(i)},f)u[e]=f[e];return u.orgDomain=function(){return f.domain()},this.isCategorized()&&(u.domain=function(n){return arguments.length?(f.domain(n),u):[(n=this.orgDomain())[0],n[1]+1]}),u},n.prototype.getY=function(n,t,i){var r=this.getScale(n,t,this.isTimeSeriesY());return i&&r.domain(i),r},n.prototype.getYScale=function(n){return"y2"===this.axis.getId(n)?this.y2:this.y},n.prototype.getSubYScale=function(n){return"y2"===this.axis.getId(n)?this.subY2:this.subY},n.prototype.updateScales=function(){var n=this,t=n.config,i=!n.x;n.xMin=t.axis_rotated?1:0;n.xMax=t.axis_rotated?n.height:n.width;n.yMin=t.axis_rotated?0:n.height;n.yMax=t.axis_rotated?n.width:1;n.subXMin=n.xMin;n.subXMax=n.xMax;n.subYMin=t.axis_rotated?0:n.height2;n.subYMax=t.axis_rotated?n.width2:1;n.x=n.getX(n.xMin,n.xMax,i?void 0:n.x.orgDomain(),function(){return n.xAxis.tickOffset()});n.y=n.getY(n.yMin,n.yMax,i?t.axis_y_default:n.y.domain());n.y2=n.getY(n.yMin,n.yMax,i?t.axis_y2_default:n.y2.domain());n.subX=n.getX(n.xMin,n.xMax,n.orgXDomain,function(t){return t%1?0:n.subXAxis.tickOffset()});n.subY=n.getY(n.subYMin,n.subYMax,i?t.axis_y_default:n.subY.domain());n.subY2=n.getY(n.subYMin,n.subYMax,i?t.axis_y2_default:n.subY2.domain());n.xAxisTickFormat=n.axis.getXAxisTickFormat();n.xAxisTickValues=n.axis.getXAxisTickValues();n.yAxisTickValues=n.axis.getYAxisTickValues();n.y2AxisTickValues=n.axis.getY2AxisTickValues();n.xAxis=n.axis.getXAxis(n.x,n.xOrient,n.xAxisTickFormat,n.xAxisTickValues,t.axis_x_tick_outer);n.subXAxis=n.axis.getXAxis(n.subX,n.subXOrient,n.xAxisTickFormat,n.xAxisTickValues,t.axis_x_tick_outer);n.yAxis=n.axis.getYAxis(n.y,n.yOrient,t.axis_y_tick_format,n.yAxisTickValues,t.axis_y_tick_outer);n.y2Axis=n.axis.getYAxis(n.y2,n.y2Orient,t.axis_y2_tick_format,n.y2AxisTickValues,t.axis_y2_tick_outer);i||n.brush&&n.brush.updateScale(n.subX);n.updateArc&&n.updateArc()},n.prototype.selectPoint=function(n,i,r){var u=this,f=u.config,e=(f.axis_rotated?u.circleY:u.circleX).bind(u),o=(f.axis_rotated?u.circleX:u.circleY).bind(u),s=u.pointSelectR.bind(u);f.data_onselected.call(u.api,i,n.node());u.main.select("."+t.selectedCircles+u.getTargetSelectorSuffix(i.id)).selectAll("."+t.selectedCircle+"-"+r).data([i]).enter().append("circle").attr("class",function(){return u.generateClass(t.selectedCircle,r)}).attr("cx",e).attr("cy",o).attr("stroke",function(){return u.color(i)}).attr("r",function(n){return 1.4*u.pointSelectR(n)}).transition().duration(100).attr("r",s)},n.prototype.unselectPoint=function(n,i,r){this.config.data_onunselected.call(this.api,i,n.node());this.main.select("."+t.selectedCircles+this.getTargetSelectorSuffix(i.id)).selectAll("."+t.selectedCircle+"-"+r).transition().duration(100).attr("r",0).remove()},n.prototype.togglePoint=function(n,t,i,r){n?this.selectPoint(t,i,r):this.unselectPoint(t,i,r)},n.prototype.selectPath=function(n,t){var i=this;i.config.data_onselected.call(i,t,n.node());i.config.interaction_brighten&&n.transition().duration(100).style("fill",function(){return i.d3.rgb(i.color(t)).brighter(.75)})},n.prototype.unselectPath=function(n,t){var i=this;i.config.data_onunselected.call(i,t,n.node());i.config.interaction_brighten&&n.transition().duration(100).style("fill",function(){return i.color(t)})},n.prototype.togglePath=function(n,t,i,r){n?this.selectPath(t,i,r):this.unselectPath(t,i,r)},n.prototype.getToggle=function(n,t){var i;return"circle"===n.nodeName?i=this.isStepType(t)?function(){}:this.togglePoint:"path"===n.nodeName&&(i=this.togglePath),i},n.prototype.toggleShape=function(n,i,r){var u=this,o=u.d3,f=u.config,e=o.select(n),s=e.classed(t.SELECTED),h=u.getToggle(n,i).bind(u);f.data_selection_enabled&&f.data_selection_isselectable(i)&&(f.data_selection_multiple||u.main.selectAll("."+t.shapes+(f.data_selection_grouped?u.getTargetSelectorSuffix(i.id):"")).selectAll("."+t.shape).each(function(n,i){var r=o.select(this);r.classed(t.SELECTED)&&h(!1,r.classed(t.SELECTED,!1),n,i)}),e.classed(t.SELECTED,!s),h(!s,e,i,r))},n.prototype.initBar=function(){this.main.select("."+t.chart).append("g").attr("class",t.chartBars)},n.prototype.updateTargetsForBar=function(n){var i=this,u=i.config,r=i.classChartBar.bind(i),f=i.classBars.bind(i),e=i.classFocus.bind(i);i.main.select("."+t.chartBars).selectAll("."+t.chartBar).data(n).attr("class",function(n){return r(n)+e(n)}).enter().append("g").attr("class",r).style("pointer-events","none").append("g").attr("class",f).style("cursor",function(n){return u.data_selection_isselectable(n)?"pointer":null})},n.prototype.updateBar=function(n){var i=this,f=i.barData.bind(i),e=i.classBar.bind(i),o=i.initialOpacity.bind(i),u=function(n){return i.color(n.id)},r=i.main.selectAll("."+t.bars).selectAll("."+t.bar).data(f),s=r.enter().append("path").attr("class",e).style("stroke",u).style("fill",u);i.mainBar=s.merge(r).style("opacity",o);r.exit().transition().duration(n).style("opacity",0)},n.prototype.redrawBar=function(n,t,i){return[(t?this.mainBar.transition(i):this.mainBar).attr("d",n).style("stroke",this.color).style("fill",this.color).style("opacity",1)]},n.prototype.getBarW=function(n,t){var i=this.config,r="number"==typeof i.bar_width?i.bar_width:t?n.tickInterval()*i.bar_width_ratio/t:0;return i.bar_width_max&&r>i.bar_width_max?i.bar_width_max:r},n.prototype.getBars=function(n,i){return(i?this.main.selectAll("."+t.bars+this.getTargetSelectorSuffix(i)):this.main).selectAll("."+t.bar+(u(n)?"-"+n:""))},n.prototype.expandBars=function(n,i,r){r&&this.unexpandBars();this.getBars(n,i).classed(t.EXPANDED,!0)},n.prototype.unexpandBars=function(n){this.getBars(n).classed(t.EXPANDED,!1)},n.prototype.generateDrawBar=function(n,t){var i=this.config,r=this.generateGetBarPoints(n,t);return function(n,t){var u=r(n,t),f=i.axis_rotated?1:0,e=i.axis_rotated?0:1;return"M "+u[0][f]+","+u[0][e]+" L"+u[1][f]+","+u[1][e]+" L"+u[2][f]+","+u[2][e]+" L"+u[3][f]+","+u[3][e]+" z"}},n.prototype.generateGetBarPoints=function(n,t){var i=this,e=t?i.subXAxis:i.xAxis,f=n.__max__+1,r=i.getBarW(e,f),o=i.getShapeX(r,f,n,!!t),s=i.getShapeY(!!t),h=i.getShapeOffset(i.isBarType,n,!!t),u=r*(i.config.bar_space/2),c=t?i.getSubYScale:i.getYScale;return function(n,t){var f=c.call(i,n.id)(0),l=h(n,t)||f,a=o(n),e=s(n);return i.config.axis_rotated&&(0<n.value&&e<f||n.value<0&&f<e)&&(e=f),[[a+u,l],[a+u,e-(f-l)],[a+r-u,e-(f-l)],[a+r-u,l]]}},n.prototype.isWithinBar=function(n,t){var i=t.getBoundingClientRect(),r=t.pathSegList.getItem(0),u=t.pathSegList.getItem(1),f=Math.min(r.x,u.x),e=Math.min(r.y,u.y),o=f+i.width+2,s=e+i.height+2,h=e-2;return f-2<n[0]&&n[0]<o&&h<n[1]&&n[1]<s},n.prototype.getShapeIndices=function(n){var t,r,u=this.config,i={},f=0;return this.filterTargetsToShow(this.data.targets.filter(n,this)).forEach(function(n){for(t=0;t<u.data_groups.length;t++)if(!(u.data_groups[t].indexOf(n.id)<0))for(r=0;r<u.data_groups[t].length;r++)if(u.data_groups[t][r]in i){i[n.id]=i[u.data_groups[t][r]];break}c(i[n.id])&&(i[n.id]=f++)}),i.__max__=f-1,i},n.prototype.getShapeX=function(n,t,i,r){var u=r?this.subX:this.x;return function(r){var f=r.id in i?i[r.id]:0;return r.x||0===r.x?u(r.x)-n*(t/2-f):0}},n.prototype.getShapeY=function(n){var t=this;return function(i){return(n?t.getSubYScale(i.id):t.getYScale(i.id))(i.value)}},n.prototype.getShapeOffset=function(n,t,i){var r=this,u=r.orderTargets(r.filterTargetsToShow(r.data.targets.filter(n,r))),f=u.map(function(n){return n.id});return function(n,e){var o=i?r.getSubYScale(n.id):r.getYScale(n.id),s=o(0),h=s;return u.forEach(function(i){var u=r.isStepType(n)?r.convertValuesToStep(i.values):i.values;i.id!==n.id&&t[i.id]===t[n.id]&&f.indexOf(i.id)<f.indexOf(n.id)&&(void 0!==u[e]&&+u[e].x==+n.x||(e=-1,u.forEach(function(t,i){t.x===n.x&&(e=i)})),e in u&&0<=u[e].value*n.value&&(h+=o(u[e].value)-s))}),h}},n.prototype.isWithinShape=function(n,i){var u,r=this,f=r.d3.select(n);return r.isTargetToShow(i.id)?"circle"===n.nodeName?u=r.isStepType(i)?r.isWithinStep(n,r.getYScale(i.id)(i.value)):r.isWithinCircle(n,1.5*r.pointSelectR(i)):"path"===n.nodeName&&(u=!f.classed(t.bar)||r.isWithinBar(r.d3.mouse(n),n)):u=!1,u},n.prototype.getInterpolate=function(n){var i=this,t=i.d3,r={linear:t.curveLinear,"linear-closed":t.curveLinearClosed,basis:t.curveBasis,"basis-open":t.curveBasisOpen,"basis-closed":t.curveBasisClosed,bundle:t.curveBundle,cardinal:t.curveCardinal,"cardinal-open":t.curveCardinalOpen,"cardinal-closed":t.curveCardinalClosed,monotone:t.curveMonotoneX,step:t.curveStep,"step-before":t.curveStepBefore,"step-after":t.curveStepAfter};return i.isSplineType(n)?r[i.config.spline_interpolation_type]||r.cardinal:i.isStepType(n)?r[i.config.line_step_type]:r.linear},n.prototype.initLine=function(){this.main.select("."+t.chart).append("g").attr("class",t.chartLines)},n.prototype.updateTargetsForLine=function(n){var r,i=this,f=i.config,u=i.classChartLine.bind(i),e=i.classLines.bind(i),o=i.classAreas.bind(i),s=i.classCircles.bind(i),h=i.classFocus.bind(i);(r=i.main.select("."+t.chartLines).selectAll("."+t.chartLine).data(n).attr("class",function(n){return u(n)+h(n)}).enter().append("g").attr("class",u).style("opacity",0).style("pointer-events","none")).append("g").attr("class",e);r.append("g").attr("class",o);r.append("g").attr("class",function(n){return i.generateClass(t.selectedCircles,n.id)});r.append("g").attr("class",s).style("cursor",function(n){return f.data_selection_isselectable(n)?"pointer":null});n.forEach(function(n){i.main.selectAll("."+t.selectedCircles+i.getTargetSelectorSuffix(n.id)).selectAll("."+t.selectedCircle).each(function(t){t.value=n.values[t.index].value})})},n.prototype.updateLine=function(n){var i=this,r=i.main.selectAll("."+t.lines).selectAll("."+t.line).data(i.lineData.bind(i)),u=r.enter().append("path").attr("class",i.classLine.bind(i)).style("stroke",i.color);i.mainLine=u.merge(r).style("opacity",i.initialOpacity.bind(i)).style("shape-rendering",function(n){return i.isStepType(n)?"crispEdges":""}).attr("transform",null);r.exit().transition().duration(n).style("opacity",0)},n.prototype.redrawLine=function(n,t,i){return[(t?this.mainLine.transition(i):this.mainLine).attr("d",n).style("stroke",this.color).style("opacity",1)]},n.prototype.generateDrawLine=function(n,t){var i=this,r=i.config,u=i.d3.line(),s=i.generateGetLinePoints(n,t),f=t?i.getSubYScale:i.getYScale,e=function(n){return(t?i.subxx:i.xx).call(i,n)},o=function(n,t){return 0<r.data_groups.length?s(n,t)[0][1]:f.call(i,n.id)(n.value)};return u=r.axis_rotated?u.x(o).y(e):u.x(e).y(o),r.line_connectNull||(u=u.defined(function(n){return null!=n.value})),function(n){var o,e=r.line_connectNull?i.filterRemoveNull(n.values):n.values,c=t?i.subX:i.x,l=f.call(i,n.id),s=0,h=0;return i.isLineType(n)?r.data_regions[n.id]?o=i.lineWithRegions(e,c,l,r.data_regions[n.id]):(i.isStepType(n)&&(e=i.convertValuesToStep(e)),o=u.curve(i.getInterpolate(n))(e)):(e[0]&&(s=c(e[0].x),h=l(e[0].value)),o=r.axis_rotated?"M "+h+" "+s:"M "+s+" "+h),o||"M 0 0"}},n.prototype.generateGetLinePoints=function(n,t){var i=this,r=i.config,u=n.__max__+1,f=i.getShapeX(0,u,n,!!t),e=i.getShapeY(!!t),o=i.getShapeOffset(i.isLineType,n,!!t),s=t?i.getSubYScale:i.getYScale;return function(n,t){var u=s.call(i,n.id)(0),c=o(n,t)||u,l=f(n),h=e(n);return r.axis_rotated&&(0<n.value&&h<u||n.value<0&&u<h)&&(h=u),[[l,h-(u-c)],[l,h-(u-c)],[l,h-(u-c)],[l,h-(u-c)]]}},n.prototype.lineWithRegions=function(n,t,i,r){function it(n,t){for(var i=0;i<t.length;i++)if(t[i].start<n&&n<=t[i].end)return!0;return!1}function tt(n){return"M"+n[0][0]+" "+n[0][1]+" "+n[1][0]+" "+n[1][1]}var u,l,p,s,e,w,b,v,k,d,g,f=this,a=f.config,y="M",nt=f.isCategorized()?.5:0,h=[];if(o(r))for(u=0;u<r.length;u++)h[u]={},h[u].start=c(r[u].start)?n[0].x:f.isTimeSeries()?f.parseDate(r[u].start):r[u].start,h[u].end=c(r[u].end)?n[n.length-1].x:f.isTimeSeries()?f.parseDate(r[u].end):r[u].end;for(d=a.axis_rotated?function(n){return i(n.value)}:function(n){return t(n.x)},g=a.axis_rotated?function(n){return t(n.x)}:function(n){return i(n.value)},p=f.isTimeSeries()?function(n,r,u,f){var o=n.x.getTime(),s=r.x-n.x,h=new Date(o+s*u),c=new Date(o+s*(u+f));return tt(a.axis_rotated?[[i(e(u)),t(h)],[i(e(u+f)),t(c)]]:[[t(h),i(e(u))],[t(c),i(e(u+f))]])}:function(n,r,u,f){return tt(a.axis_rotated?[[i(e(u),!0),t(s(u))],[i(e(u+f),!0),t(s(u+f))]]:[[t(s(u),!0),i(e(u))],[t(s(u+f),!0),i(e(u+f))]])},u=0;u<n.length;u++){if(c(h)||!it(n[u].x,h))y+=" "+d(n[u])+" "+g(n[u]);else for(s=f.getScale(n[u-1].x+nt,n[u].x+nt,f.isTimeSeries()),e=f.getScale(n[u-1].value,n[u].value),w=t(n[u].x)-t(n[u-1].x),b=i(n[u].value)-i(n[u-1].value),k=2*(v=2/Math.sqrt(Math.pow(w,2)+Math.pow(b,2))),l=v;l<=1;l+=k)y+=p(n[u-1],n[u],l,v);n[u].x}return y},n.prototype.updateArea=function(n){var i=this,u=i.d3,r=i.main.selectAll("."+t.areas).selectAll("."+t.area).data(i.lineData.bind(i)),f=r.enter().append("path").attr("class",i.classArea.bind(i)).style("fill",i.color).style("opacity",function(){return i.orgAreaOpacity=+u.select(this).style("opacity"),0});i.mainArea=f.merge(r).style("opacity",i.orgAreaOpacity);r.exit().transition().duration(n).style("opacity",0)},n.prototype.redrawArea=function(n,t,i){return[(t?this.mainArea.transition(i):this.mainArea).attr("d",n).style("fill",this.color).style("opacity",this.orgAreaOpacity)]},n.prototype.generateDrawArea=function(n,t){var i=this,r=i.config,u=i.d3.area(),f=i.generateGetAreaPoints(n,t),e=t?i.getSubYScale:i.getYScale,o=function(n){return(t?i.subxx:i.xx).call(i,n)},s=function(n,t){return 0<r.data_groups.length?f(n,t)[0][1]:e.call(i,n.id)(i.getAreaBaseValue(n.id))},h=function(n,t){return 0<r.data_groups.length?f(n,t)[1][1]:e.call(i,n.id)(n.value)};return u=r.axis_rotated?u.x0(s).x1(h).y(o):u.x(o).y0(r.area_above?0:s).y1(h),r.line_connectNull||(u=u.defined(function(n){return null!==n.value})),function(n){var f,t=r.line_connectNull?i.filterRemoveNull(n.values):n.values,e=0,o=0;return i.isAreaType(n)?(i.isStepType(n)&&(t=i.convertValuesToStep(t)),f=u.curve(i.getInterpolate(n))(t)):(t[0]&&(e=i.x(t[0].x),o=i.getYScale(n.id)(t[0].value)),f=r.axis_rotated?"M "+o+" "+e:"M "+e+" "+o),f||"M 0 0"}},n.prototype.getAreaBaseValue=function(){return 0},n.prototype.generateGetAreaPoints=function(n,t){var i=this,r=i.config,u=n.__max__+1,f=i.getShapeX(0,u,n,!!t),e=i.getShapeY(!!t),o=i.getShapeOffset(i.isAreaType,n,!!t),s=t?i.getSubYScale:i.getYScale;return function(n,t){var u=s.call(i,n.id)(0),c=o(n,t)||u,l=f(n),h=e(n);return r.axis_rotated&&(0<n.value&&h<u||n.value<0&&u<h)&&(h=u),[[l,c],[l,h-(u-c)],[l,h-(u-c)],[l,c]]}},n.prototype.updateCircle=function(n,i){var r=this,u=r.main.selectAll("."+t.circles).selectAll("."+t.circle).data(r.lineOrScatterData.bind(r)),f=u.enter().append("circle").attr("class",r.classCircle.bind(r)).attr("cx",n).attr("cy",i).attr("r",r.pointR.bind(r)).style("fill",r.color);r.mainCircle=f.merge(u).style("opacity",r.initialOpacityForCircle.bind(r));u.exit().style("opacity",0)},n.prototype.redrawCircle=function(n,i,r,u){var f=this,e=f.main.selectAll("."+t.selectedCircle);return[(r?f.mainCircle.transition(u):f.mainCircle).style("opacity",this.opacityForCircle.bind(f)).style("fill",f.color).attr("cx",n).attr("cy",i),(r?e.transition(u):e).attr("cx",n).attr("cy",i)]},n.prototype.circleX=function(n){return n.x||0===n.x?this.x(n.x):null},n.prototype.updateCircleY=function(){var t,i,n=this;0<n.config.data_groups.length?(t=n.getShapeIndices(n.isLineType),i=n.generateGetLinePoints(t),n.circleY=function(n,t){return i(n,t)[0][1]}):n.circleY=function(t){return n.getYScale(t.id)(t.value)}},n.prototype.getCircles=function(n,i){return(i?this.main.selectAll("."+t.circles+this.getTargetSelectorSuffix(i)):this.main).selectAll("."+t.circle+(u(n)?"-"+n:""))},n.prototype.expandCircles=function(n,i,r){var u=this.pointExpandedR.bind(this);r&&this.unexpandCircles();this.getCircles(n,i).classed(t.EXPANDED,!0).attr("r",u)},n.prototype.unexpandCircles=function(n){var i=this,r=i.pointR.bind(i);i.getCircles(n).filter(function(){return i.d3.select(this).classed(t.EXPANDED)}).classed(t.EXPANDED,!1).attr("r",r)},n.prototype.pointR=function(n){var t=this.config;return this.isStepType(n)?0:h(t.point_r)?t.point_r(n):t.point_r},n.prototype.pointExpandedR=function(n){var t=this.config;return t.point_focus_expand_enabled?h(t.point_focus_expand_r)?t.point_focus_expand_r(n):t.point_focus_expand_r?t.point_focus_expand_r:1.75*this.pointR(n):this.pointR(n)},n.prototype.pointSelectR=function(n){var t=this.config;return h(t.point_select_r)?t.point_select_r(n):t.point_select_r?t.point_select_r:4*this.pointR(n)},n.prototype.isWithinCircle=function(n,t){var i=this.d3,r=i.mouse(n),u=i.select(n),f=+u.attr("cx"),e=+u.attr("cy");return Math.sqrt(Math.pow(f-r[0],2)+Math.pow(e-r[1],2))<t},n.prototype.isWithinStep=function(n,t){return Math.abs(t-this.d3.mouse(n)[1])<30},n.prototype.getCurrentWidth=function(){var n=this.config;return n.size_width?n.size_width:this.getParentWidth()},n.prototype.getCurrentHeight=function(){var n=this.config,t=n.size_height?n.size_height:this.getParentHeight();return 0<t?t:320/(this.hasType("gauge")&&!n.gauge_fullCircle?2:1)},n.prototype.getCurrentPaddingTop=function(){var n=this.config,t=u(n.padding_top)?n.padding_top:0;return this.title&&this.title.node()&&(t+=this.getTitlePadding()),t},n.prototype.getCurrentPaddingBottom=function(){var n=this.config;return u(n.padding_bottom)?n.padding_bottom:0},n.prototype.getCurrentPaddingLeft=function(n){var t=this.config;return u(t.padding_left)?t.padding_left:t.axis_rotated?!t.axis_x_show||t.axis_x_inner?1:Math.max(p(this.getAxisWidthByAxisId("x",n)),40):!t.axis_y_show||t.axis_y_inner?this.axis.getYAxisLabelPosition().isOuter?30:1:p(this.getAxisWidthByAxisId("y",n))},n.prototype.getCurrentPaddingRight=function(){var n=this,t=n.config,i=n.isLegendRight?n.getLegendWidth()+20:0;return u(t.padding_right)?t.padding_right+1:t.axis_rotated?10+i:!t.axis_y2_show||t.axis_y2_inner?2+i+(n.axis.getY2AxisLabelPosition().isOuter?20:0):p(n.getAxisWidthByAxisId("y2"))+i},n.prototype.getParentRectValue=function(n){for(var i,t=this.selectChart.node();t&&"BODY"!==t.tagName;){try{i=t.getBoundingClientRect()[n]}catch(r){"width"===n&&(i=t.offsetWidth)}if(i)break;t=t.parentNode}return i},n.prototype.getParentWidth=function(){return this.getParentRectValue("width")},n.prototype.getParentHeight=function(){var n=this.selectChart.style("height");return 0<n.indexOf("px")?+n.replace("px",""):0},n.prototype.getSvgLeft=function(n){var i=this,r=i.config,e=r.axis_rotated||!r.axis_rotated&&!r.axis_y_inner,o=r.axis_rotated?t.axisX:t.axisY,u=i.main.select("."+o).node(),s=u&&e?u.getBoundingClientRect():{right:0},h=i.selectChart.node().getBoundingClientRect(),c=i.hasArcType(),f=s.right-h.left-(c?0:i.getCurrentPaddingLeft(n));return 0<f?f:0},n.prototype.getAxisWidthByAxisId=function(n,t){var i=this.axis.getLabelPositionById(n);return this.axis.getMaxTickWidth(n,t)+(i.isInner?20:40)},n.prototype.getHorizontalAxisHeight=function(n){var i=this,t=i.config,r=30;return"x"!==n||t.axis_x_show?"x"===n&&t.axis_x_height?t.axis_x_height:"y"!==n||t.axis_y_show?"y2"!==n||t.axis_y2_show?("x"===n&&!t.axis_rotated&&t.axis_x_tick_rotate&&(r=30+i.axis.getMaxTickWidth(n)*Math.cos(Math.PI*(90-Math.abs(t.axis_x_tick_rotate))/180)),"y"===n&&t.axis_rotated&&t.axis_y_tick_rotate&&(r=30+i.axis.getMaxTickWidth(n)*Math.cos(Math.PI*(90-Math.abs(t.axis_y_tick_rotate))/180)),r+(i.axis.getLabelPositionById(n).isInner?0:10)+("y2"===n?-10:0)):i.rotated_padding_top:!t.legend_show||i.isLegendRight||i.isLegendInset?1:10:8},n.prototype.initBrush=function(n){var i=this,r=i.d3;return i.brush=(i.config.axis_rotated?r.brushY():r.brushX()).on("brush",function(){var n=r.event.sourceEvent;n&&"zoom"===n.type||i.redrawForBrush()}).on("end",function(){var n=r.event.sourceEvent;n&&"zoom"===n.type||i.brush.empty()&&n&&"end"!==n.type&&i.brush.clear()}),i.brush.updateExtent=function(){var t,n=this.scale.range();return t=i.config.axis_rotated?[[0,n[0]],[i.width2,n[1]]]:[[n[0],0],[n[1],i.height2]],this.extent(t),this},i.brush.updateScale=function(n){return this.scale=n,this},i.brush.update=function(n){this.updateScale(n||i.subX).updateExtent();i.context.select("."+t.brush).call(this)},i.brush.clear=function(){i.context.select("."+t.brush).call(i.brush.move,null)},i.brush.selection=function(){return r.brushSelection(i.context.select("."+t.brush).node())},i.brush.selectionAsValue=function(n,r){var u,f;return n?(i.context&&(u=[this.scale(n[0]),this.scale(n[1])],f=i.context.select("."+t.brush),r&&(f=f.transition()),i.brush.move(f,u)),[]):(u=i.brush.selection()||[0,0],[this.scale.invert(u[0]),this.scale.invert(u[1])])},i.brush.empty=function(){var n=i.brush.selection();return!n||n[0]===n[1]},i.brush.updateScale(n)},n.prototype.initSubchart=function(){var n=this,r=n.config,i=n.context=n.svg.append("g").attr("transform",n.getTranslate("context")),u=r.subchart_show?"visible":"hidden";i.style("visibility",u);i.append("g").attr("clip-path",n.clipPathForSubchart).attr("class",t.chart);i.select("."+t.chart).append("g").attr("class",t.chartBars);i.select("."+t.chart).append("g").attr("class",t.chartLines);i.append("g").attr("clip-path",n.clipPath).attr("class",t.brush);n.axes.subx=i.append("g").attr("class",t.axisX).attr("transform",n.getTranslate("subx")).attr("clip-path",r.axis_rotated?"":n.clipPathForXAxis)},n.prototype.initSubchartBrush=function(){this.initBrush(this.subX).updateExtent();this.context.select("."+t.brush).call(this.brush)},n.prototype.updateTargetsForSubchart=function(n){var r,e,o,s,i=this,u=i.context,f=i.config,h=i.classChartBar.bind(i),c=i.classBars.bind(i),l=i.classChartLine.bind(i),a=i.classLines.bind(i),v=i.classAreas.bind(i);f.subchart_show&&((o=(s=u.select("."+t.chartBars).selectAll("."+t.chartBar).data(n)).enter().append("g").style("opacity",0)).merge(s).attr("class",h),o.append("g").attr("class",c),(r=(e=u.select("."+t.chartLines).selectAll("."+t.chartLine).data(n)).enter().append("g").style("opacity",0)).merge(e).attr("class",l),r.append("g").attr("class",a),r.append("g").attr("class",v),u.selectAll("."+t.brush+" rect").attr(f.axis_rotated?"width":"height",f.axis_rotated?i.width2:i.height2))},n.prototype.updateBarForSubchart=function(n){var i=this,r=i.context.selectAll("."+t.bars).selectAll("."+t.bar).data(i.barData.bind(i)),u=r.enter().append("path").attr("class",i.classBar.bind(i)).style("stroke","none").style("fill",i.color);r.exit().transition().duration(n).style("opacity",0).remove();i.contextBar=u.merge(r).style("opacity",i.initialOpacity.bind(i))},n.prototype.redrawBarForSubchart=function(n,t,i){(t?this.contextBar.transition(Math.random().toString()).duration(i):this.contextBar).attr("d",n).style("opacity",1)},n.prototype.updateLineForSubchart=function(n){var i=this,r=i.context.selectAll("."+t.lines).selectAll("."+t.line).data(i.lineData.bind(i)),u=r.enter().append("path").attr("class",i.classLine.bind(i)).style("stroke",i.color);r.exit().transition().duration(n).style("opacity",0).remove();i.contextLine=u.merge(r).style("opacity",i.initialOpacity.bind(i))},n.prototype.redrawLineForSubchart=function(n,t,i){(t?this.contextLine.transition(Math.random().toString()).duration(i):this.contextLine).attr("d",n).style("opacity",1)},n.prototype.updateAreaForSubchart=function(n){var i=this,u=i.d3,r=i.context.selectAll("."+t.areas).selectAll("."+t.area).data(i.lineData.bind(i)),f=r.enter().append("path").attr("class",i.classArea.bind(i)).style("fill",i.color).style("opacity",function(){return i.orgAreaOpacity=+u.select(this).style("opacity"),0});r.exit().transition().duration(n).style("opacity",0).remove();i.contextArea=f.merge(r).style("opacity",0)},n.prototype.redrawAreaForSubchart=function(n,t,i){(t?this.contextArea.transition(Math.random().toString()).duration(i):this.contextArea).attr("d",n).style("fill",this.color).style("opacity",this.orgAreaOpacity)},n.prototype.redrawSubchart=function(n,t,i,r,u,f,e){var s,h,c,o=this,l=o.d3,a=o.config;o.context.style("visibility",a.subchart_show?"visible":"hidden");a.subchart_show&&(l.event&&"zoom"===l.event.type&&o.brush.selectionAsValue(o.x.orgDomain()),n&&(o.brush.empty()||o.brush.selectionAsValue(o.x.orgDomain()),s=o.generateDrawArea(u,!0),h=o.generateDrawBar(f,!0),c=o.generateDrawLine(e,!0),o.updateBarForSubchart(i),o.updateLineForSubchart(i),o.updateAreaForSubchart(i),o.redrawBarForSubchart(h,i,i),o.redrawLineForSubchart(c,i,i),o.redrawAreaForSubchart(s,i,i)))},n.prototype.redrawForBrush=function(){var i,n=this,u=n.x,r=n.d3;n.redraw({withTransition:!1,withY:n.config.zoom_rescale,withSubchart:!1,withUpdateXDomain:!0,withEventRect:!1,withDimension:!1});i=r.event.selection||n.brush.scale.range();n.main.select("."+t.eventRect).call(n.zoom.transform,r.zoomIdentity.scale(n.width/(i[1]-i[0])).translate(-i[0],0));n.config.subchart_onbrush.call(n.api,u.orgDomain())},n.prototype.transformContext=function(n,i){var r;i&&i.axisSubX?r=i.axisSubX:(r=this.context.select("."+t.axisX),n&&(r=r.transition()));this.context.attr("transform",this.getTranslate("context"));r.attr("transform",this.getTranslate("subx"))},n.prototype.getDefaultSelection=function(){var n=this,i=n.config,t=h(i.axis_x_selection)?i.axis_x_selection(n.getXDomain(n.data.targets)):i.axis_x_selection;return n.isTimeSeries()&&(t=[n.parseDate(t[0]),n.parseDate(t[1])]),t},n.prototype.initText=function(){this.main.select("."+t.chart).append("g").attr("class",t.chartTexts);this.mainText=this.d3.selectAll([])},n.prototype.updateTargetsForText=function(n){var i=this,r=i.classChartText.bind(i),e=i.classTexts.bind(i),o=i.classFocus.bind(i),u=i.main.select("."+t.chartTexts).selectAll("."+t.chartText).data(n),f=u.enter().append("g").attr("class",r).style("opacity",0).style("pointer-events","none");f.append("g").attr("class",e);f.merge(u).attr("class",function(n){return r(n)+o(n)})},n.prototype.updateText=function(n,i,r){var u=this,e=u.config,o=u.barOrLineData.bind(u),s=u.classText.bind(u),f=u.main.selectAll("."+t.texts).selectAll("."+t.text).data(o),h=f.enter().append("text").attr("class",s).attr("text-anchor",function(n){return e.axis_rotated?n.value<0?"end":"start":"middle"}).style("stroke","none").attr("x",n).attr("y",i).style("fill",function(n){return u.color(n)}).style("fill-opacity",0);u.mainText=h.merge(f).text(function(n,t,i){return u.dataLabelFormat(n.id)(n.value,n.id,t,i)});f.exit().transition().duration(r).style("fill-opacity",0).remove()},n.prototype.redrawText=function(n,t,i,r,u){return[(r?this.mainText.transition(u):this.mainText).attr("x",n).attr("y",t).style("fill",this.color).style("fill-opacity",i?0:this.opacityForText.bind(this))]},n.prototype.getTextRect=function(n,t,i){var r,u=this.d3.select("body").append("div").classed("c3",!0),f=u.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),e=this.d3.select(i).style("font");return f.selectAll(".dummy").data([n]).enter().append("text").classed(t||"",!0).style("font",e).text(n).each(function(){r=this.getBoundingClientRect()}),u.remove(),r},n.prototype.generateXYForText=function(n,t,i,r){var u=this,f=u.generateGetAreaPoints(n,!1),e=u.generateGetBarPoints(t,!1),o=u.generateGetLinePoints(i,!1),s=r?u.getXForText:u.getYForText;return function(n,t){var i=u.isAreaType(n)?f:u.isBarType(n)?e:o;return s.call(u,i(n,t),n,this)}},n.prototype.getXForText=function(n,t,i){var r,f,u=this,e=i.getBoundingClientRect();return u.config.axis_rotated?(f=u.isBarType(t)?4:6,r=n[2][1]+f*(t.value<0?-1:1)):r=u.hasType("bar")?(n[2][0]+n[0][0])/2:n[0][0],null===t.value&&(r>u.width?r=u.width-e.width:r<0&&(r=4)),r},n.prototype.getYForText=function(n,t,i){var r,u=this,f=i.getBoundingClientRect();return u.config.axis_rotated?r=(n[0][0]+n[2][0]+.6*f.height)/2:(r=n[2][1],t.value<0||0===t.value&&!u.hasPositiveValue?(r+=f.height,u.isBarType(t)&&u.isSafari()?r-=3:!u.isBarType(t)&&u.isChrome()&&(r+=3)):r+=u.isBarType(t)?-3:-6),null!==t.value||u.config.axis_rotated||(r<f.height?r=f.height:r>this.height&&(r=this.height-4)),r},n.prototype.initTitle=function(){this.title=this.svg.append("text").text(this.config.title_text).attr("class",this.CLASS.title)},n.prototype.redrawTitle=function(){var n=this;n.title.attr("x",n.xForTitle.bind(n)).attr("y",n.yForTitle.bind(n))},n.prototype.xForTitle=function(){var n=this,t=n.config,i=t.title_position||"left";return 0<=i.indexOf("right")?n.currentWidth-n.getTextRect(n.title.node().textContent,n.CLASS.title,n.title.node()).width-t.title_padding.right:0<=i.indexOf("center")?(n.currentWidth-n.getTextRect(n.title.node().textContent,n.CLASS.title,n.title.node()).width)/2:t.title_padding.left},n.prototype.yForTitle=function(){var n=this;return n.config.title_padding.top+n.getTextRect(n.title.node().textContent,n.CLASS.title,n.title.node()).height},n.prototype.getTitlePadding=function(){return this.yForTitle()+this.config.title_padding.bottom},n.prototype.initTooltip=function(){var r,n=this,i=n.config;if(n.tooltip=n.selectChart.style("position","relative").append("div").attr("class",t.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none"),i.tooltip_init_show){if(n.isTimeSeries()&&s(i.tooltip_init_x)){for(i.tooltip_init_x=n.parseDate(i.tooltip_init_x),r=0;r<n.data.targets[0].values.length&&n.data.targets[0].values[r].x-i.tooltip_init_x!=0;r++);i.tooltip_init_x=r}n.tooltip.html(i.tooltip_contents.call(n,n.data.targets.map(function(t){return n.addName(t.values[i.tooltip_init_x])}),n.axis.getXAxisTickFormat(),n.getYFormat(n.hasArcType()),n.color));n.tooltip.style("top",i.tooltip_init_position.top).style("left",i.tooltip_init_position.left).style("display","block")}},n.prototype.getTooltipSortFunction=function(){var t=this,i=t.config,r,n,u,f;return 0!==i.data_groups.length&&void 0===i.tooltip_order?(r=t.orderTargets(t.data.targets).map(function(n){return n.id}),(t.isOrderAsc()||t.isOrderDesc())&&(r=r.reverse()),function(n,t){return r.indexOf(n.id)-r.indexOf(t.id)}):(n=i.tooltip_order,void 0===n&&(n=i.data_order),u=function(n){return n?n.value:null},s(n)&&"asc"===n.toLowerCase())?function(n,t){return u(n)-u(t)}:s(n)&&"desc"===n.toLowerCase()?function(n,t){return u(t)-u(n)}:h(n)?(f=n,void 0===i.tooltip_order&&(f=function(t,i){return n(t?{id:t.id,values:[t]}:null,i?{id:i.id,values:[i]}:null)}),f):w(n)?function(t,i){return n.indexOf(t.id)-n.indexOf(i.id)}:void 0},n.prototype.getTooltipContent=function(n,t,i,r){var f,u,o,h,c,l,e=this,s=e.config,a=s.tooltip_format_title||t,y=s.tooltip_format_name||function(n){return n},p=s.tooltip_format_value||i,v=this.getTooltipSortFunction();for(v&&n.sort(v),u=0;u<n.length;u++)if(n[u]&&(n[u].value||0===n[u].value)&&(f||(o=k(a?a(n[u].x):n[u].x),f="<table class='"+e.CLASS.tooltip+"'>"+(o||0===o?"<tr><th colspan='2'>"+o+"<\/th><\/tr>":"")),void 0!==(h=k(p(n[u].value,n[u].ratio,n[u].id,n[u].index,n))))){if(null===n[u].name)continue;c=k(y(n[u].name,n[u].ratio,n[u].id,n[u].index));l=e.levelColor?e.levelColor(n[u].value):r(n[u].id);f+="<tr class='"+e.CLASS.tooltipName+"-"+e.getTargetSelectorSuffix(n[u].id)+"'>";f+="<td class='name'><span style='background-color:"+l+"'><\/span>"+c+"<\/td>";f+="<td class='value'>"+h+"<\/td>";f+="<\/tr>"}return f+"<\/table>"},n.prototype.tooltipPosition=function(n,t,i,r){var o,e,s,f,h,u=this,l=u.config,a=u.d3,v=u.hasArcType(),c=a.mouse(r);return v?(e=(u.width-(u.isLegendRight?u.getLegendWidth():0))/2+c[0],f=(u.hasType("gauge")?u.height:u.height/2)+c[1]+20):(o=u.getSvgLeft(!0),l.axis_rotated?(s=(e=o+c[0]+100)+t,h=u.currentWidth-u.getCurrentPaddingRight(),f=u.x(n[0].x)+20):(s=(e=o+u.getCurrentPaddingLeft(!0)+u.x(n[0].x)+20)+t,h=o+u.currentWidth-u.getCurrentPaddingRight(),f=c[1]+15),h<s&&(e-=s-h+20),f+i>u.currentHeight&&(f-=i+30)),f<0&&(f=0),{top:f,left:e}},n.prototype.showTooltip=function(t,i){var o,s,f,r=this,e=r.config,c=r.hasArcType(),h=t.filter(function(n){return n&&u(n.value)}),l=e.tooltip_position||n.prototype.tooltipPosition;0!==h.length&&e.tooltip_show&&(r.tooltip.html(e.tooltip_contents.call(r,t,r.axis.getXAxisTickFormat(),r.getYFormat(c),r.color)).style("display","block"),o=r.tooltip.property("offsetWidth"),s=r.tooltip.property("offsetHeight"),f=l.call(this,h,o,s,i),r.tooltip.style("top",f.top+"px").style("left",f.left+"px"))},n.prototype.hideTooltip=function(){this.tooltip.style("display","none")},n.prototype.setTargetType=function(n,t){var i=this,r=i.config;i.mapToTargetIds(n).forEach(function(n){i.withoutFadeIn[n]=t===r.data_types[n];r.data_types[n]=t});n||(r.data_type=t)},n.prototype.hasType=function(n,t){var i=this.config.data_types,r=!1;return(t=t||this.data.targets)&&t.length?t.forEach(function(t){var u=i[t.id];(u&&0<=u.indexOf(n)||!u&&"line"===n)&&(r=!0)}):Object.keys(i).length?Object.keys(i).forEach(function(t){i[t]===n&&(r=!0)}):r=this.config.data_type===n,r},n.prototype.hasArcType=function(n){return this.hasType("pie",n)||this.hasType("donut",n)||this.hasType("gauge",n)},n.prototype.isLineType=function(n){var t=this.config,i=s(n)?n:n.id;return!t.data_types[i]||0<=["line","spline","area","area-spline","step","area-step"].indexOf(t.data_types[i])},n.prototype.isStepType=function(n){var t=s(n)?n:n.id;return 0<=["step","area-step"].indexOf(this.config.data_types[t])},n.prototype.isSplineType=function(n){var t=s(n)?n:n.id;return 0<=["spline","area-spline"].indexOf(this.config.data_types[t])},n.prototype.isAreaType=function(n){var t=s(n)?n:n.id;return 0<=["area","area-spline","area-step"].indexOf(this.config.data_types[t])},n.prototype.isBarType=function(n){var t=s(n)?n:n.id;return"bar"===this.config.data_types[t]},n.prototype.isScatterType=function(n){var t=s(n)?n:n.id;return"scatter"===this.config.data_types[t]},n.prototype.isPieType=function(n){var t=s(n)?n:n.id;return"pie"===this.config.data_types[t]},n.prototype.isGaugeType=function(n){var t=s(n)?n:n.id;return"gauge"===this.config.data_types[t]},n.prototype.isDonutType=function(n){var t=s(n)?n:n.id;return"donut"===this.config.data_types[t]},n.prototype.isArcType=function(n){return this.isPieType(n)||this.isDonutType(n)||this.isGaugeType(n)},n.prototype.lineData=function(n){return this.isLineType(n)?[n]:[]},n.prototype.arcData=function(n){return this.isArcType(n.data)?[n]:[]},n.prototype.barData=function(n){return this.isBarType(n)?n.values:[]},n.prototype.lineOrScatterData=function(n){return this.isLineType(n)||this.isScatterType(n)?n.values:[]},n.prototype.barOrLineData=function(n){return this.isBarType(n)||this.isLineType(n)?n.values:[]},n.prototype.isSafari=function(){var n=window.navigator.userAgent;return 0<=n.indexOf("Safari")&&n.indexOf("Chrome")<0},n.prototype.isChrome=function(){return 0<=window.navigator.userAgent.indexOf("Chrome")},n.prototype.initZoom=function(){var r,n=this,t=n.d3,i=n.config;return n.zoom=t.zoom().on("start",function(){if("scroll"===i.zoom_type){var u=t.event.sourceEvent;u&&"brush"===u.type||(r=u,i.zoom_onzoomstart.call(n.api,u))}}).on("zoom",function(){if("scroll"===i.zoom_type){var r=t.event.sourceEvent;r&&"brush"===r.type||(n.redrawForZoom(),i.zoom_onzoom.call(n.api,n.x.orgDomain()))}}).on("end",function(){if("scroll"===i.zoom_type){var u=t.event.sourceEvent;u&&"brush"===u.type||u&&r.clientX===u.clientX&&r.clientY===u.clientY||i.zoom_onzoomend.call(n.api,n.x.orgDomain())}}),n.zoom.updateDomain=function(){return t.event&&t.event.transform&&n.x.domain(t.event.transform.rescaleX(n.subX).domain()),this},n.zoom.updateExtent=function(){return this.scaleExtent([1,1/0]).translateExtent([[0,0],[n.width,n.height]]).extent([[0,0],[n.width,n.height]]),this},n.zoom.update=function(){return this.updateExtent().updateDomain()},n.zoom.updateExtent()},n.prototype.zoomTransform=function(n){var t=[this.x(n[0]),this.x(n[1])];return this.d3.zoomIdentity.scale(this.width/(t[1]-t[0])).translate(-t[0],0)},n.prototype.initDragZoom=function(){var n=this,r=n.d3,i=n.config,e=n.context=n.svg,o=n.margin.left+20.5,s=n.margin.top+.5,u,f;"drag"===i.zoom_type&&i.zoom_enabled&&(u=function(t){return t&&t.map(function(t){return n.x.invert(t)})},f=n.dragZoomBrush=r.brushX().on("start",function(){n.api.unzoom();n.svg.select("."+t.dragZoom).classed("disabled",!1);i.zoom_onzoomstart.call(n.api,r.event.sourceEvent)}).on("brush",function(){i.zoom_onzoom.call(n.api,u(r.event.selection))}).on("end",function(){if(null!=r.event.selection){var f=u(r.event.selection);i.zoom_disableDefaultBehavior||n.api.zoom(f);n.svg.select("."+t.dragZoom).classed("disabled",!0);i.zoom_onzoomend.call(n.api,f)}}),e.append("g").classed(t.dragZoom,!0).attr("clip-path",n.clipPath).attr("transform","translate("+o+","+s+")").call(f))},n.prototype.getZoomDomain=function(){var n=this.config,t=this.d3;return[t.min([this.orgXDomain[0],n.zoom_x_min]),t.max([this.orgXDomain[1],n.zoom_x_max])]},n.prototype.redrawForZoom=function(){var n=this,r=n.d3,t=n.config,u=n.zoom,i=n.x;t.zoom_enabled&&0!==n.filterTargetsToShow(n.data.targets).length&&(u.update(),t.zoom_disableDefaultBehavior||(n.isCategorized()&&i.orgDomain()[0]===n.orgXDomain[0]&&i.domain([n.orgXDomain[0]-1e-10,i.orgDomain()[1]]),n.redraw({withTransition:!1,withY:t.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),r.event.sourceEvent&&"mousemove"===r.event.sourceEvent.type&&(n.cancelClick=!0)))},d}),function(){function n(n,t){function w(n,t){return c.getComputedStyle||(c.getComputedStyle=function(n){return this.el=n,this.getPropertyValue=function(t){var i=/(\-([a-z]){1})/g;return t=="float"&&(t="styleFloat"),i.test(t)&&(t=t.replace(i,function(){return arguments[2].toUpperCase()})),n.currentStyle&&n.currentStyle[t]?n.currentStyle[t]:null},this}),c.getComputedStyle(n,null).getPropertyValue(t)}function b(t){var i=t||n.clientHeight,r=k(n);return Math.max(Math.floor(i/r),0)}function tt(t){var i=k(n);return i*t}function k(n){var t=w(n,"line-height");return t=="normal"&&(t=parseInt(w(n,"font-size"))*1.2),parseInt(t)}function h(t){return t.lastChild.children&&t.lastChild.children.length>0?h(Array.prototype.slice.call(t.children).pop()):t.lastChild&&t.lastChild.nodeValue&&t.lastChild.nodeValue!=""&&t.lastChild.nodeValue!=i.truncationChar?t.lastChild:(t.lastChild.parentNode.removeChild(t.lastChild),h(n))}function a(t,f){function o(){e=i.splitOnChars.slice(0);r=e[0];u=null;l=null}if(f){var c=t.nodeValue.replace(i.truncationChar,"");if(u||(r=e.length>0?e.shift():"",u=c.split(r)),u.length>1?(l=u.pop(),v(t,u.join(r))):u=null,s&&(t.nodeValue=t.nodeValue.replace(i.truncationChar,""),n.innerHTML=t.nodeValue+" "+s.innerHTML+i.truncationChar),u){if(n.clientHeight<=f)if(e.length>=0&&r!="")v(t,u.join(r)+r+l),u=null;else return n.innerHTML}else r==""&&(v(t,""),t=h(n),o());if(i.animate)setTimeout(function(){a(t,f)},i.animate===!0?10:i.animate);else return a(t,f)}}function v(n,t){n.nodeValue=t.trim()+i.truncationChar}var e,r,u,l,d,y;t=t||{};var it=this,c=window,i={clamp:t.clamp||2,useNativeClamp:typeof t.useNativeClamp!="undefined"?t.useNativeClamp:!0,splitOnChars:t.splitOnChars||[".","-","–","—"," "],animate:t.animate||!1,truncationChar:t.truncationChar||"…",truncationHTML:t.truncationHTML},o=n.style,g=n.innerHTML,nt=typeof n.style.webkitLineClamp!="undefined",f=i.clamp,p=f.indexOf&&(f.indexOf("px")>-1||f.indexOf("em")>-1),s;return i.truncationHTML&&(s=document.createElement("span"),s.innerHTML=i.truncationHTML),e=i.splitOnChars.slice(0),r=e[0],f=="auto"?f=b():p&&(f=b(parseInt(f))),nt&&i.useNativeClamp?(o.overflow="hidden",o.textOverflow="ellipsis",o.webkitBoxOrient="vertical",o.display="-webkit-box",o.webkitLineClamp=f,p&&(o.height=i.clamp+"px")):(y=tt(f),y<n.clientHeight&&(d=a(h(n),y))),{original:g,clamped:d}}window.$clamp=n}();!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.d3=n.d3||{})}(this,function(n){"use strict";function fr(n,t){return n<t?-1:n>t?1:n>=t?0:NaN}function np(n){var t;return 1===n.length&&(t=n,n=function(n,i){return fr(t(n),i)}),{left:function(t,i,r,u){for(null==r&&(r=0),null==u&&(u=t.length);r<u;){var f=r+u>>>1;n(t[f],i)<0?r=f+1:u=f}return r},right:function(t,i,r,u){for(null==r&&(r=0),null==u&&(u=t.length);r<u;){var f=r+u>>>1;n(t[f],i)>0?u=f:r=f+1}return r}}}function ett(n,t){return[n,t]}function er(n){return null===n?NaN:+n}function ott(n,t){var i,u,s=n.length,f=0,r=-1,e=0,o=0;if(null==t)for(;++r<s;)isNaN(i=er(n[r]))||(o+=(u=i-e)*(i-(e+=u/++f)));else for(;++r<s;)isNaN(i=er(t(n[r],r,n)))||(o+=(u=i-e)*(i-(e+=u/++f)));if(f>1)return o/(f-1)}function stt(n,t){var i=ott(n,t);return i?Math.sqrt(i):i}function tp(n,t){var i,u,f,e=n.length,r=-1;if(null==t){for(;++r<e;)if(null!=(i=n[r])&&i>=i)for(u=f=i;++r<e;)null!=(i=n[r])&&(u>i&&(u=i),f<i&&(f=i))}else for(;++r<e;)if(null!=(i=t(n[r],r,n))&&i>=i)for(u=f=i;++r<e;)null!=(i=t(n[r],r,n))&&(u>i&&(u=i),f<i&&(f=i));return[u,f]}function lh(n){return function(){return n}}function iwt(n){return n}function yt(n,t,i){n=+n;t=+t;i=(r=arguments.length)<2?(t=n,n=0,1):r<3?1:+i;for(var u=-1,r=0|Math.max(0,Math.ceil((t-n)/i)),f=new Array(r);++u<r;)f[u]=n+u*i;return f}function fp(n,t,i){var o,u,f,r,e=-1;if(i=+i,(n=+n)==(t=+t)&&i>0)return[n];if((o=t<n)&&(u=n,n=t,t=u),0===(r=ae(n,t,i))||!isFinite(r))return[];if(r>0)for(n=Math.ceil(n/r),t=Math.floor(t/r),f=new Array(u=Math.ceil(t-n+1));++e<u;)f[e]=(n+e)*r;else for(n=Math.floor(n*r),t=Math.ceil(t*r),f=new Array(u=Math.ceil(n-t+1));++e<u;)f[e]=(n-e)/r;return o&&f.reverse(),f}function ae(n,t,i){var f=(t-n)/Math.max(0,i),u=Math.floor(Math.log(f)/Math.LN10),r=f/Math.pow(10,u);return u>=0?(r>=ip?10:r>=rp?5:r>=up?2:1)*Math.pow(10,u):-Math.pow(10,-u)/(r>=ip?10:r>=rp?5:r>=up?2:1)}function tu(n,t,i){var f=Math.abs(t-n)/Math.max(0,i),r=Math.pow(10,Math.floor(Math.log(f)/Math.LN10)),u=f/r;return u>=ip?r*=10:u>=rp?r*=5:u>=up&&(r*=2),t<n?-r:r}function ep(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function ve(n,t,i){if(null==i&&(i=er),r=n.length){if((t=+t)<=0||r<2)return+i(n[0],0,n);if(t>=1)return+i(n[r-1],r-1,n);var r,f=(r-1)*t,u=Math.floor(f),e=+i(n[u],u,n);return e+(+i(n[u+1],u+1,n)-e)*(f-u)}}function ctt(n,t){var i,u,f=n.length,r=-1;if(null==t){for(;++r<f;)if(null!=(i=n[r])&&i>=i)for(u=i;++r<f;)null!=(i=n[r])&&i>u&&(u=i)}else for(;++r<f;)if(null!=(i=t(n[r],r,n))&&i>=i)for(u=i;++r<f;)null!=(i=t(n[r],r,n))&&i>u&&(u=i);return u}function op(n){for(var t,i,f,r=n.length,e=-1,u=0;++e<r;)u+=n[e].length;for(i=new Array(u);--r>=0;)for(t=(f=n[r]).length;--t>=0;)i[--u]=f[t];return i}function ltt(n,t){var i,u,f=n.length,r=-1;if(null==t){for(;++r<f;)if(null!=(i=n[r])&&i>=i)for(u=i;++r<f;)null!=(i=n[r])&&u>i&&(u=i)}else for(;++r<f;)if(null!=(i=t(n[r],r,n))&&i>=i)for(u=i;++r<f;)null!=(i=t(n[r],r,n))&&u>i&&(u=i);return u}function att(n){var r,t,e;if(!(r=n.length))return[];for(var i=-1,u=ltt(n,rwt),f=new Array(u);++i<u;)for(t=-1,e=f[i]=new Array(r);++t<r;)e[t]=n[t][i];return f}function rwt(n){return n.length}function uwt(n){return n}function fwt(n){return"translate("+(n+.5)+",0)"}function ewt(n){return"translate(0,"+(n+.5)+")"}function owt(){return!this.__axis}function yh(n,t){function i(i){var rt=null==o?t.ticks?t.ticks.apply(t,e):t.domain():o,ut=null==s?t.tickFormat?t.tickFormat.apply(t,e):uwt:s,nt=Math.max(u,0)+c,d=t.range(),tt=+d[0]+.5,it=+d[d.length-1]+.5,b=(t.bandwidth?function(n){var t=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(t=Math.round(t)),function(i){return+n(i)+t}}:function(n){return function(t){return+n(t)}})(t.copy()),y=i.selection?i.selection():i,v=y.selectAll(".domain").data([null]),a=y.selectAll(".tick").data(rt,t).order(),g=a.exit(),k=a.enter().append("g").attr("class","tick"),p=a.select("line"),w=a.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor"));a=a.merge(k);p=p.merge(k.append("line").attr("stroke","currentColor").attr(h+"2",r*u));w=w.merge(k.append("text").attr("fill","currentColor").attr(h,r*nt).attr("dy",n===ah?"0em":n===hp?"0.71em":"0.32em"));i!==y&&(v=v.transition(i),a=a.transition(i),p=p.transition(i),w=w.transition(i),g=g.transition(i).attr("opacity",vtt).attr("transform",function(n){return isFinite(n=b(n))?l(n):this.getAttribute("transform")}),k.attr("opacity",vtt).attr("transform",function(n){var t=this.parentNode.__axis;return l(t&&isFinite(t=t(n))?t:b(n))}));g.remove();v.attr("d",n===ye||n==vh?"M"+r*f+","+tt+"H0.5V"+it+"H"+r*f:"M"+tt+","+r*f+"V0.5H"+it+"V"+r*f);a.attr("opacity",1).attr("transform",function(n){return l(b(n))});p.attr(h+"2",r*u);w.attr(h,r*nt).text(ut);y.filter(owt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===vh?"start":n===ye?"end":"middle");y.each(function(){this.__axis=b})}var e=[],o=null,s=null,u=6,f=6,c=3,r=n===ah||n===ye?-1:1,h=n===ye||n===vh?"x":"y",l=n===ah||n===hp?fwt:ewt;return i.scale=function(n){return arguments.length?(t=n,i):t},i.ticks=function(){return e=sp.call(arguments),i},i.tickArguments=function(n){return arguments.length?(e=null==n?[]:sp.call(n),i):e.slice()},i.tickValues=function(n){return arguments.length?(o=null==n?null:sp.call(n),i):o&&o.slice()},i.tickFormat=function(n){return arguments.length?(s=n,i):s},i.tickSize=function(n){return arguments.length?(u=f=+n,i):u},i.tickSizeInner=function(n){return arguments.length?(u=+n,i):u},i.tickSizeOuter=function(n){return arguments.length?(f=+n,i):f},i.tickPadding=function(n){return arguments.length?(c=+n,i):c},i}function iu(){for(var n,t=0,r=arguments.length,i={};t<r;++t){if(!(n=arguments[t]+"")||n in i)throw new Error("illegal type: "+n);i[n]=[]}return new ph(i)}function ph(n){this._=n}function hwt(n,t){for(var r,i=0,u=n.length;i<u;++i)if((r=n[i]).name===t)return r.value}function ytt(n,t,i){for(var r=0,u=n.length;r<u;++r)if(n[r].name===t){n[r]=swt;n=n.slice(0,r).concat(n.slice(r+1));break}return null!=i&&n.push({name:t,value:i}),n}function pe(n){var t=n+="",i=t.indexOf(":");return i>=0&&"xmlns"!==(t=n.slice(0,i))&&(n=n.slice(i+1)),bh.hasOwnProperty(t)?{space:bh[t],local:n}:n}function kh(n){var t=pe(n);return(t.local?function(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}:function(n){return function(){var t=this.ownerDocument,i=this.namespaceURI;return i===wh&&t.documentElement.namespaceURI===wh?t.createElement(n):t.createElementNS(i,n)}})(t)}function cwt(){}function dh(n){return null==n?cwt:function(){return this.querySelector(n)}}function lwt(){return[]}function cp(n){return null==n?lwt:function(){return this.querySelectorAll(n)}}function wtt(n){return new Array(n.length)}function nc(n,t){this.ownerDocument=n.ownerDocument;this.namespaceURI=n.namespaceURI;this._next=null;this._parent=n;this.__data__=t}function awt(n,t,i,r,u,f){for(var o,e=0,s=t.length,h=f.length;e<h;++e)(o=t[e])?(o.__data__=f[e],r[e]=o):i[e]=new nc(n,f[e]);for(;e<s;++e)(o=t[e])&&(u[e]=o)}function vwt(n,t,i,r,u,f,e){for(var s,h,c={},l=t.length,v=f.length,a=new Array(l),o=0;o<l;++o)(s=t[o])&&(a[o]=h=ap+e.call(s,s.__data__,o,t),h in c?u[o]=s:c[h]=s);for(o=0;o<v;++o)(s=c[h=ap+e.call(n,f[o],o,f)])?(r[o]=s,s.__data__=f[o],c[h]=null):i[o]=new nc(n,f[o]);for(o=0;o<l;++o)(s=t[o])&&c[a[o]]===s&&(u[o]=s)}function ywt(n,t){return n<t?-1:n>t?1:n>=t?0:NaN}function vp(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function ru(n,t){return n.style.getPropertyValue(t)||vp(n).getComputedStyle(n,null).getPropertyValue(t)}function btt(n){return n.trim().split(/^|\s+/)}function yp(n){return n.classList||new ktt(n)}function ktt(n){this._node=n;this._names=btt(n.getAttribute("class")||"")}function dtt(n,t){for(var r=yp(n),i=-1,u=t.length;++i<u;)r.add(t[i])}function gtt(n,t){for(var r=yp(n),i=-1,u=t.length;++i<u;)r.remove(t[i])}function pwt(){this.textContent=""}function wwt(){this.innerHTML=""}function bwt(){this.nextSibling&&this.parentNode.appendChild(this)}function kwt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function dwt(){return null}function gwt(){var n=this.parentNode;n&&n.removeChild(this)}function nbt(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function tbt(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}function ibt(n,t,i){return n=nit(n,t,i),function(t){var i=t.relatedTarget;i&&(i===this||8&i.compareDocumentPosition(this))||n.call(this,t)}}function nit(t,i,r){return function(u){var f=n.event;n.event=u;try{t.call(this,this.__data__,i,r)}finally{n.event=f}}}function rbt(n){return function(){var i=this.__on;if(i){for(var t,r=0,u=-1,f=i.length;r<f;++r)t=i[r],n.type&&t.type!==n.type||t.name!==n.name?i[++u]=t:this.removeEventListener(t.type,t.listener,t.capture);++u?i.length=u:delete this.__on}}}function ubt(n,t,i){var r=pp.hasOwnProperty(n.type)?ibt:nit;return function(u,f,e){var o,s=this.__on,c=r(t,f,e),h,l;if(s)for(h=0,l=s.length;h<l;++h)if((o=s[h]).type===n.type&&o.name===n.name)return this.removeEventListener(o.type,o.listener,o.capture),this.addEventListener(o.type,o.listener=c,o.capture=i),void(o.value=t);this.addEventListener(n.type,c,i);o={type:n.type,name:n.name,value:t,listener:c,capture:i};s?s.push(o):this.__on=[o]}}function we(t,i,r,u){var f=n.event;t.sourceEvent=n.event;n.event=t;try{return i.apply(r,u)}finally{n.event=f}}function tit(n,t,i){var u=vp(n),r=u.CustomEvent;"function"==typeof r?r=new r(t,i):(r=u.document.createEvent("Event"),i?(r.initEvent(t,i.bubbles,i.cancelable),r.detail=i.detail):r.initEvent(t,!1,!1));n.dispatchEvent(r)}function et(n,t){this._groups=n;this._parents=t}function uu(){return new et([[document.documentElement]],tc)}function at(n){return"string"==typeof n?new et([[document.querySelector(n)]],[document.documentElement]):new et([[n]],tc)}function rit(){return new wp}function wp(){this._="@"+(++iit).toString(36)}function bp(){for(var i,t=n.event;i=t.sourceEvent;)t=i;return t}function ic(n,t){var u=n.ownerSVGElement||n,i,r;return u.createSVGPoint?(i=u.createSVGPoint(),i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(n.getScreenCTM().inverse())).x,i.y]):(r=n.getBoundingClientRect(),[t.clientX-r.left-n.clientLeft,t.clientY-r.top-n.clientTop])}function or(n){var t=bp();return t.changedTouches&&(t=t.changedTouches[0]),ic(n,t)}function rc(n,t,i){arguments.length<3&&(i=t,t=bp().changedTouches);for(var u,r=0,f=t?t.length:0;r<f;++r)if((u=t[r]).identifier===i)return ic(n,u);return null}function kp(){n.event.stopImmediatePropagation()}function gu(){n.event.preventDefault();n.event.stopImmediatePropagation()}function uc(n){var t=n.document.documentElement,i=at(n).on("dragstart.drag",gu,!0);"onselectstart"in t?i.on("selectstart.drag",gu,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function fc(n,t){var i=n.document.documentElement,r=at(n).on("dragstart.drag",null);t&&(r.on("click.drag",gu,!0),setTimeout(function(){r.on("click.drag",null)},0));"onselectstart"in i?r.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}function ec(n){return function(){return n}}function dp(n,t,i,r,u,f,e,o,s,h){this.target=n;this.type=t;this.subject=i;this.identifier=r;this.active=u;this.x=f;this.y=e;this.dx=o;this.dy=s;this._=h}function fbt(){return!n.event.button}function ebt(){return this.parentNode}function obt(t){return null==t?{x:n.event.x,y:n.event.y}:t}function sbt(){return"ontouchstart"in this}function nf(n,t,i){n.prototype=t.prototype=i;i.constructor=n}function be(n,t){var r=Object.create(n.prototype),i;for(i in t)r[i]=t[i];return r}function sr(){}function hr(n){var t;return n=(n+"").trim().toLowerCase(),(t=hbt.exec(n))?new nt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=cbt.exec(n))?fit(parseInt(t[1],16)):(t=lbt.exec(n))?new nt(t[1],t[2],t[3],1):(t=abt.exec(n))?new nt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=vbt.exec(n))?eit(t[1],t[2],t[3],t[4]):(t=ybt.exec(n))?eit(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=pbt.exec(n))?oit(t[1],t[2]/100,t[3]/100,1):(t=wbt.exec(n))?oit(t[1],t[2]/100,t[3]/100,t[4]):uit.hasOwnProperty(n)?fit(uit[n]):"transparent"===n?new nt(NaN,NaN,NaN,0):null}function fit(n){return new nt(n>>16&255,n>>8&255,255&n,1)}function eit(n,t,i,r){return r<=0&&(n=t=i=NaN),new nt(n,t,i,r)}function gp(n){return n instanceof sr||(n=hr(n)),n?new nt((n=n.rgb()).r,n.g,n.b,n.opacity):new nt}function rf(n,t,i,r){return 1===arguments.length?gp(n):new nt(n,t,i,null==r?1:r)}function nt(n,t,i,r){this.r=+n;this.g=+t;this.b=+i;this.opacity=+r}function nw(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function oit(n,t,i,r){return r<=0?n=t=i=NaN:i<=0||i>=1?n=t=NaN:t<=0&&(n=NaN),new si(n,t,i,r)}function oc(n,t,i,r){return 1===arguments.length?function(n){if(n instanceof si)return new si(n.h,n.s,n.l,n.opacity);if(n instanceof sr||(n=hr(n)),!n)return new si;if(n instanceof si)return n;var u=(n=n.rgb()).r/255,i=n.g/255,f=n.b/255,e=Math.min(u,i,f),r=Math.max(u,i,f),o=NaN,t=r-e,s=(r+e)/2;return t?(o=u===r?(i-f)/t+6*(i<f):i===r?(f-u)/t+2:(u-i)/t+4,t/=s<.5?r+e:2-r-e,o*=60):t=s>0&&s<1?0:o,new si(o,t,s,n.opacity)}(n):new si(n,t,i,null==r?1:r)}function si(n,t,i,r){this.h=+n;this.s=+t;this.l=+i;this.opacity=+r}function tw(n,t,i){return 255*(n<60?t+(i-t)*n/60:n<180?i:n<240?t+(i-t)*(240-n)/60:t)}function iw(n){var f;if(n instanceof ri)return new ri(n.l,n.a,n.b,n.opacity);if(n instanceof hi)return isNaN(n.h)?new ri(n.l,0,0,n.opacity):(f=n.h*sit,new ri(n.l,Math.cos(f)*n.c,Math.sin(f)*n.c,n.opacity));n instanceof nt||(n=gp(n));var e,o,i=ew(n.r),t=ew(n.g),r=ew(n.b),u=rw((.2225045*i+.7168786*t+.0606169*r)/lit);return i===t&&t===r?e=o=u:(e=rw((.4360747*i+.3850649*t+.1430804*r)/cit),o=rw((.0139322*i+.0971045*t+.7141733*r)/ait)),new ri(116*u-16,500*(e-u),200*(u-o),n.opacity)}function sc(n,t,i,r){return 1===arguments.length?iw(n):new ri(n,t,i,null==r?1:r)}function ri(n,t,i,r){this.l=+n;this.a=+t;this.b=+i;this.opacity=+r}function rw(n){return n>bbt?Math.pow(n,1/3):n/yit+vit}function uw(n){return n>uf?n*n*n:yit*(n-vit)}function fw(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function ew(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function pit(n){if(n instanceof hi)return new hi(n.h,n.c,n.l,n.opacity);if(n instanceof ri||(n=iw(n)),0===n.a&&0===n.b)return new hi(NaN,0,n.l,n.opacity);var t=Math.atan2(n.b,n.a)*hit;return new hi(t<0?t+360:t,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function hc(n,t,i,r){return 1===arguments.length?pit(n):new hi(n,t,i,null==r?1:r)}function hi(n,t,i,r){this.h=+n;this.c=+t;this.l=+i;this.opacity=+r}function ui(n,t,i,r){return 1===arguments.length?function(n){if(n instanceof fu)return new fu(n.h,n.s,n.l,n.opacity);n instanceof nt||(n=gp(n));var s=n.r/255,f=n.g/255,e=n.b/255,t=(dit*e+bit*s-kit*f)/(dit+bit-kit),i=e-t,r=(de*(f-t)-sw*i)/cc,o=Math.sqrt(r*r+i*i)/(de*t*(1-t)),u=o?Math.atan2(r,i)*hit-120:NaN;return new fu(u<0?u+360:u,o,t,n.opacity)}(n):new fu(n,t,i,null==r?1:r)}function fu(n,t,i,r){this.h=+n;this.s=+t;this.l=+i;this.opacity=+r}function git(n,t,i,r,u){var f=n*n,e=f*n;return((1-3*n+3*f-e)*t+(4-6*f+3*e)*i+(1+3*n+3*f-3*e)*r+e*u)/6}function nrt(n){var t=n.length-1;return function(i){var r=i<=0?i=0:i>=1?(i=1,t-1):Math.floor(i*t),u=n[r],f=n[r+1],e=r>0?n[r-1]:2*u-f,o=r<t-1?n[r+2]:2*f-u;return git((i-r/t)*t,e,u,f,o)}}function trt(n){var t=n.length;return function(i){var r=Math.floor(((i%=1)<0?++i:i)*t),u=n[(r+t-1)%t],f=n[r%t],e=n[(r+1)%t],o=n[(r+2)%t];return git((i-r/t)*t,u,f,e,o)}}function lc(n){return function(){return n}}function irt(n,t){return function(i){return n+i*t}}function hw(n,t){var i=t-n;return i?irt(n,i>180||i<-180?i-360*Math.round(i/360):i):lc(isNaN(n)?t:n)}function kbt(n){return 1==(n=+n)?g:function(t,i){return i-t?function(n,t,i){return n=Math.pow(n,i),t=Math.pow(t,i)-n,i=1/i,function(r){return Math.pow(n+r*t,i)}}(t,i,n):lc(isNaN(t)?i:t)}}function g(n,t){var i=t-n;return i?irt(n,i):lc(isNaN(n)?t:n)}function rrt(n){return function(t){for(var i,u=t.length,f=new Array(u),e=new Array(u),o=new Array(u),r=0;r<u;++r)i=rf(t[r]),f[r]=i.r||0,e[r]=i.g||0,o[r]=i.b||0;return f=n(f),e=n(e),o=n(o),i.opacity=1,function(n){return i.r=f(n),i.g=e(n),i.b=o(n),i+""}}}function frt(n,t){for(var r=t?t.length:0,u=n?Math.min(r,n.length):0,e=new Array(u),f=new Array(r),i=0;i<u;++i)e[i]=ge(n[i],t[i]);for(;i<r;++i)f[i]=t[i];return function(n){for(i=0;i<u;++i)f[i]=e[i](n);return f}}function ert(n,t){var i=new Date;return t-=n=+n,function(r){return i.setTime(n+t*r),i}}function pt(n,t){return t-=n=+n,function(i){return n+t*i}}function ort(n,t){var i,r={},u={};for(i in null!==n&&"object"==typeof n||(n={}),null!==t&&"object"==typeof t||(t={}),t)i in n?r[i]=ge(n[i],t[i]):u[i]=t[i];return function(n){for(i in r)u[i]=r[i](n);return u}}function lw(n,t){var s,f,u,e=ac.lastIndex=vc.lastIndex=0,r=-1,i=[],o=[];for(n+="",t+="";(s=ac.exec(n))&&(f=vc.exec(t));)(u=f.index)>e&&(u=t.slice(e,u),i[r]?i[r]+=u:i[++r]=u),(s=s[0])===(f=f[0])?i[r]?i[r]+=f:i[++r]=f:(i[++r]=null,o.push({i:r,x:pt(s,f)})),e=vc.lastIndex;return e<t.length&&(u=t.slice(e),i[r]?i[r]+=u:i[++r]=u),i.length<2?o[0]?function(n){return function(t){return n(t)+""}}(o[0].x):function(n){return function(){return n}}(t):(t=o.length,function(n){for(var u,r=0;r<t;++r)i[(u=o[r]).i]=u.x(n);return i.join("")})}function ge(n,t){var r,i=typeof t;return null==t||"boolean"===i?lc(t):("number"===i?pt:"string"===i?(r=hr(t))?(t=r,ff):lw:t instanceof hr?ff:t instanceof Date?ert:Array.isArray(t)?frt:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?ort:pt)(n,t)}function srt(n,t){return t-=n=+n,function(i){return Math.round(n+t*i)}}function crt(n,t,i,r,u,f){var o,s,e;return(o=Math.sqrt(n*n+t*t))&&(n/=o,t/=o),(e=n*i+t*r)&&(i-=n*e,r-=t*e),(s=Math.sqrt(i*i+r*r))&&(i/=s,r/=s,e/=s),n*r<t*i&&(n=-n,t=-t,e=-e,o=-o),{translateX:u,translateY:f,rotate:Math.atan2(t,n)*vw,skewX:Math.atan(e)*vw,scaleX:o,scaleY:s}}function lrt(n,t,i,r){function u(n){return n.length?n.pop()+" ":""}return function(f,e){var o=[],s=[];return f=n(f),e=n(e),function(n,r,u,f,e,o){if(n!==u||r!==f){var s=e.push("translate(",null,t,null,i);o.push({i:s-4,x:pt(n,u)},{i:s-2,x:pt(r,f)})}else(u||f)&&e.push("translate("+u+t+f+i)}(f.translateX,f.translateY,e.translateX,e.translateY,o,s),function(n,t,i,f){n!==t?(n-t>180?t+=360:t-n>180&&(n+=360),f.push({i:i.push(u(i)+"rotate(",null,r)-2,x:pt(n,t)})):t&&i.push(u(i)+"rotate("+t+r)}(f.rotate,e.rotate,o,s),function(n,t,i,f){n!==t?f.push({i:i.push(u(i)+"skewX(",null,r)-2,x:pt(n,t)}):t&&i.push(u(i)+"skewX("+t+r)}(f.skewX,e.skewX,o,s),function(n,t,i,r,f,e){if(n!==i||t!==r){var o=f.push(u(f)+"scale(",null,",",null,")");e.push({i:o-4,x:pt(n,i)},{i:o-2,x:pt(t,r)})}else 1===i&&1===r||f.push(u(f)+"scale("+i+","+r+")")}(f.scaleX,f.scaleY,e.scaleX,e.scaleY,o,s),f=e=null,function(n){for(var t,i=-1,r=s.length;++i<r;)o[(t=s[i]).i]=t.x(n);return o.join("")}}}function prt(n){return((n=Math.exp(n))+1/n)/2}function wrt(n,t){var e,u,c=n[0],l=n[1],i=n[2],p=t[0],w=t[1],r=t[2],o=p-c,s=w-l,h=o*o+s*s;if(h<dbt)u=Math.log(r/i)/to,e=function(n){return[c+n*o,l+n*s,i*Math.exp(to*n*u)]};else{var a=Math.sqrt(h),v=(r*r-i*i+yrt*h)/(2*i*yw*a),y=(r*r-i*i-yrt*h)/(2*r*yw*a),f=Math.log(Math.sqrt(v*v+1)-v),b=Math.log(Math.sqrt(y*y+1)-y);u=(b-f)/to;e=function(n){var t,r=n*u,e=prt(f),h=i/(yw*a)*(e*(t=to*r+f,((t=Math.exp(2*t))-1)/(t+1))-function(n){return((n=Math.exp(n))-1/n)/2}(f));return[c+h*o,l+h*s,i*e/prt(to*r+f)]}}return e.duration=1e3*u,e}function brt(n){return function(t,i){var r=n((t=oc(t)).h,(i=oc(i)).h),u=g(t.s,i.s),f=g(t.l,i.l),e=g(t.opacity,i.opacity);return function(n){return t.h=r(n),t.s=u(n),t.l=f(n),t.opacity=e(n),t+""}}}function grt(n){return function(t,i){var r=n((t=hc(t)).h,(i=hc(i)).h),u=g(t.c,i.c),f=g(t.l,i.l),e=g(t.opacity,i.opacity);return function(n){return t.h=r(n),t.c=u(n),t.l=f(n),t.opacity=e(n),t+""}}}function iut(n){return function t(i){function r(t,r){var u=n((t=ui(t)).h,(r=ui(r)).h),f=g(t.s,r.s),e=g(t.l,r.l),o=g(t.opacity,r.opacity);return function(n){return t.h=u(n),t.s=f(n),t.l=e(Math.pow(n,i)),t.opacity=o(n),t+""}}return i=+i,r.gamma=t,r}(1)}function of(){return eu||(uut(nkt),eu=fo.now()+dc)}function nkt(){eu=0}function eo(){this._call=this._time=this._next=null}function gc(n,t,i){var r=new eo;return r.restart(n,t,i),r}function fut(){of();++ef;for(var t,n=bc;n;)(t=eu-n._time)>=0&&n._call.call(null,t),n=n._next;--ef}function eut(){eu=(kc=fo.now())+dc;ef=ro=0;try{fut()}finally{ef=0,function(){for(var t,i,n=bc,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(i=n._next,n._next=null,n=t?t._next=i:bc=i);io=t;pw(r)}();eu=0}}function tkt(){var n=fo.now(),t=n-kc;t>rut&&(dc-=t,kc=n)}function pw(n){ef||(ro&&(ro=clearTimeout(ro)),n-eu>24?(n<1/0&&(ro=setTimeout(eut,n-fo.now()-dc)),uo&&(uo=clearInterval(uo))):(uo||(kc=fo.now(),uo=setInterval(tkt,rut)),ef=1,uut(eut)))}function ww(n,t,i){var r=new eo;return t=null==t?0:+t,r.restart(function(i){r.stop();n(i+t)},t,i),r}function il(n,t,i,r,u,f){var e=n.__transition;if(e){if(i in e)return}else n.__transition={};!function(n,t,i){function f(s){var c,l,a,h;if(i.state!==bw)return e();for(c in r)if((h=r[c]).name===i.name){if(h.state===kw)return ww(f);h.state===sut?(h.state=tl,h.timer.stop(),h.on.call("interrupt",n,n.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=tl,h.timer.stop(),delete r[c])}if(ww(function(){i.state===kw&&(i.state=sut,i.timer.restart(o,i.delay,i.time),o(s))}),i.state=nl,i.on.call("start",n,n.__data__,i.index,i.group),i.state===nl){for(i.state=kw,u=new Array(a=i.tween.length),c=0,l=-1;c<a;++c)(h=i.tween[c].value.call(n,n.__data__,i.index,i.group))&&(u[++l]=h);u.length=l+1}}function o(t){for(var f=t<i.duration?i.ease.call(null,t/i.duration):(i.timer.restart(e),i.state=dw,1),r=-1,o=u.length;++r<o;)u[r].call(null,f);i.state===dw&&(i.on.call("end",n,n.__data__,i.index,i.group),e())}function e(){for(var u in i.state=tl,i.timer.stop(),delete r[t],r)return;delete n.__transition}var u,r=n.__transition;r[t]=i;i.timer=gc(function(n){i.state=bw;i.timer.restart(f,i.delay,i.time);i.delay<=n&&f(n-i.delay)},0,i.time)}(n,i,{name:t,index:r,group:u,on:ikt,tween:rkt,time:f.time,delay:f.delay,duration:f.duration,ease:f.ease,timer:null,state:out})}function gw(n,t){var i=fi(n,t);if(i.state>out)throw new Error("too late; already scheduled");return i}function ou(n,t){var i=fi(n,t);if(i.state>nl)throw new Error("too late; already started");return i}function fi(n,t){var i=n.__transition;if(!i||!(i=i[t]))throw new Error("transition not found");return i}function su(n,t){var i,f,u,r=n.__transition,e=!0;if(r){for(u in t=null==t?null:t+"",r)(i=r[u]).name===t?(f=i.state>nl&&i.state<dw,i.state=tl,i.timer.stop(),f&&i.on.call("interrupt",n,n.__data__,i.index,i.group),delete r[u]):e=!1;e&&delete n.__transition}}function nb(n,t,i){var r=n._id;return n.each(function(){var n=ou(this,r);(n.value||(n.value={}))[t]=i.apply(this,arguments)}),function(n){return fi(n,r).value[t]}}function hut(n,t){var i;return("number"==typeof t?pt:t instanceof hr?ff:(i=hr(t))?(t=i,ff):lw)(n,t)}function ci(n,t,i,r){this._groups=n;this._parents=t;this._name=i;this._id=r}function aut(n){return uu().transition(n)}function vut(){return++lut}function yut(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}function tb(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}function kut(n){return(1-Math.cos(wut*n))/2}function dut(n){return((n*=2)<=1?Math.pow(2,10*n-10):2-Math.pow(2,10-10*n))/2}function gut(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}function oo(n){return(n=+n)<ib?rl*n*n:n<okt?rl*(n-=ekt)*n+skt:n<ckt?rl*(n-=hkt)*n+lkt:rl*(n-=akt)*n+vkt}function kkt(n,t){for(var i;!(i=n.__transition)||!(i=i[t]);)if(!(n=n.parentNode))return rb.time=of(),rb;return i}function rft(n){return function(){return n}}function dkt(n,t,i){this.target=n;this.type=t;this.selection=i}function uft(){n.event.stopImmediatePropagation()}function ul(){n.event.preventDefault();n.event.stopImmediatePropagation()}function so(n){return{type:n}}function idt(){return!n.event.button}function rdt(){var n=this.ownerSVGElement||this;return[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function fb(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function eb(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function ob(t){function i(n){var r=n.property("__brush",a).selectAll(".overlay").data([so("overlay")]),i;r.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",bi.overlay).merge(r).each(function(){var n=fb(this).extent;at(this).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1])});n.selectAll(".selection").data([so("selection")]).enter().append("rect").attr("class","selection").attr("cursor",bi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");i=n.selectAll(".handle").data(t.handles,function(n){return n.type});i.exit().remove();i.enter().append("rect").attr("class",function(n){return"handle handle--"+n.type}).attr("cursor",function(n){return bi[n.type]});n.each(u).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",l)}function u(){var t=at(this),n=fb(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?n[1][0]-r/2:n[0][0]-r/2}).attr("y",function(t){return"s"===t.type[0]?n[1][1]-r/2:n[0][1]-r/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+r:r}).attr("height",function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+r:r})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function o(n,t){return n.__brush.emitter||new c(n,t)}function c(n,t){this.that=n;this.args=t;this.state=n.__brush;this.active=0}function l(){function dt(){var n=or(nt);!pt||lt||vt||(Math.abs(n[0]-ht[0])>Math.abs(n[1]-ht[1])?vt=!0:lt=!0);ht=n;bt=!0;ul();ot()}function ot(){var n;switch(e=ht[0]-st[0],s=ht[1]-st[1],g){case ub:case fft:i&&(e=Math.max(it-c,Math.min(ut-a,e)),y=c+e,w=a+e);r&&(s=Math.max(rt-l,Math.min(ft-v,s)),p=l+s,b=v+s);break;case hf:i<0?(e=Math.max(it-c,Math.min(ut-c,e)),y=c+e,w=a):i>0&&(e=Math.max(it-a,Math.min(ut-a,e)),y=c,w=a+e);r<0?(s=Math.max(rt-l,Math.min(ft-l,s)),p=l+s,b=v):r>0&&(s=Math.max(rt-v,Math.min(ft-v,s)),p=l,b=v+s);break;case cf:i&&(y=Math.max(it,Math.min(ut,c-e*i)),w=Math.max(it,Math.min(ut,a+e*i)));r&&(p=Math.max(rt,Math.min(ft,l-s*r)),b=Math.max(rt,Math.min(ft,v+s*r)))}w<y&&(i*=-1,n=c,c=a,a=n,n=y,y=w,w=n,d in eft&&et.attr("cursor",bi[d=eft[d]]));b<p&&(r*=-1,n=l,l=v,v=n,n=p,p=b,b=n,d in oft&&et.attr("cursor",bi[d=oft[d]]));tt.selection&&(k=tt.selection);lt&&(y=k[0][0],w=k[1][0]);vt&&(p=k[0][1],b=k[1][1]);k[0][0]===y&&k[0][1]===p&&k[1][0]===w&&k[1][1]===b||(tt.selection=[[y,p],[w,b]],u.call(nt),wt.brush())}function gt(){if(uft(),n.event.touches){if(n.event.touches.length)return;f&&clearTimeout(f);f=setTimeout(function(){f=null},500);ct.on("touchmove.brush touchend.brush touchcancel.brush",null)}else fc(n.event.view,bt),kt.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ct.attr("pointer-events","all");et.attr("cursor",bi.overlay);tt.selection&&(k=tt.selection);eb(k)&&(tt.selection=null,u.call(nt));wt.end()}var ct,et,kt;if(n.event.touches){if(n.event.changedTouches.length<n.event.touches.length)return ul()}else if(f)return;if(h.apply(this,arguments)){var c,y,l,p,a,w,v,b,e,s,bt,lt,vt,nt=this,d=n.event.target.__data__.type,g="selection"===(n.event.metaKey?d="overlay":d)?fft:n.event.altKey?cf:hf,i=t===el?null:ndt[d],r=t===fl?null:tdt[d],tt=fb(nt),yt=tt.extent,k=tt.selection,it=yt[0][0],rt=yt[0][1],ut=yt[1][0],ft=yt[1][1],pt=i&&r&&n.event.shiftKey,st=or(nt),ht=st,wt=o(nt,arguments).beforestart();if("overlay"===d?tt.selection=k=[[c=t===el?it:st[0],l=t===fl?rt:st[1]],[a=t===el?ut:c,v=t===fl?ft:l]]:(c=k[0][0],l=k[0][1],a=k[1][0],v=k[1][1]),y=c,p=l,w=a,b=v,ct=at(nt).attr("pointer-events","none"),et=ct.selectAll(".overlay").attr("cursor",bi[d]),n.event.touches)ct.on("touchmove.brush",dt,!0).on("touchend.brush touchcancel.brush",gt,!0);else kt=at(n.event.view).on("keydown.brush",function(){switch(n.event.keyCode){case 16:pt=i&&r;break;case 18:g===hf&&(i&&(a=w-e*i,c=y+e*i),r&&(v=b-s*r,l=p+s*r),g=cf,ot());break;case 32:g!==hf&&g!==cf||(i<0?a=w-e:i>0&&(c=y-e),r<0?v=b-s:r>0&&(l=p-s),g=ub,et.attr("cursor",bi.selection),ot());break;default:return}ul()},!0).on("keyup.brush",function(){switch(n.event.keyCode){case 16:pt&&(lt=vt=pt=!1,ot());break;case 18:g===cf&&(i<0?a=w:i>0&&(c=y),r<0?v=b:r>0&&(l=p),g=hf,ot());break;case 32:g===ub&&(n.event.altKey?(i&&(a=w-e*i,c=y+e*i),r&&(v=b-s*r,l=p+s*r),g=cf):(i<0?a=w:i>0&&(c=y),r<0?v=b:r>0&&(l=p),g=hf),et.attr("cursor",bi[d]),ot());break;default:return}ul()},!0).on("mousemove.brush",dt,!0).on("mouseup.brush",gt,!0),uc(n.event.view);uft();su(nt);u.call(nt);wt.start()}}function a(){var n=this.__brush||{selection:null};return n.extent=s.apply(this,arguments),n.dim=t,n}var f,s=rdt,h=idt,e=iu(i,"start","brush","end"),r=6;return i.move=function(n,i){n.selection?n.on("start.brush",function(){o(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){o(this,arguments).end()}).tween("brush",function(){function s(t){r.selection=1===t&&eb(f)?null:c(t);u.call(n);h.brush()}var n=this,r=n.__brush,h=o(n,arguments),e=r.selection,f=t.input("function"==typeof i?i.apply(this,arguments):i,r.extent),c=ge(e,f);return e&&f?s:s(1)}):n.each(function(){var r=arguments,f=this.__brush,n=t.input("function"==typeof i?i.apply(this,r):i,f.extent),e=o(this,r).beforestart();su(this);f.selection=null==n||eb(n)?null:n;u.call(this);e.start().brush().end()})},c.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(n){we(new dkt(i,n,t.output(this.state.selection)),e.apply,e,[n,this.that,this.args])}},i.extent=function(n){return arguments.length?(s="function"==typeof n?n:rft([[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]]),i):s},i.filter=function(n){return arguments.length?(h="function"==typeof n?n:rft(!!n),i):h},i.handleSize=function(n){return arguments.length?(r=+n,i):r},i.on=function(){var n=e.on.apply(e,arguments);return n===e?i:n},i}function sb(n){return function(){return n}}function lb(){this._x0=this._y0=this._x1=this._y1=null;this._=""}function cr(){return new lb}function edt(n){return n.source}function odt(n){return n.target}function sdt(n){return n.radius}function hdt(n){return n.startAngle}function cdt(n){return n.endAngle}function sl(){}function ki(n,t){var r=new sl,e,i,u,f;if(n instanceof sl)n.each(function(n,t){r.set(t,n)});else if(Array.isArray(n))if(i=-1,u=n.length,null==t)for(;++i<u;)r.set(i,n[i]);else for(;++i<u;)r.set(t(e=n[i],i,n),e);else if(n)for(f in n)r.set(f,n[f]);return r}function ldt(){return{}}function adt(n,t,i){n[t]=i}function vft(){return ki()}function yft(n,t,i){n.set(t,i)}function hl(){}function pft(n,t){var r=new hl,i,u;if(n instanceof hl)n.each(function(n){r.add(n)});else if(n)if(i=-1,u=n.length,null==t)for(;++i<u;)r.add(n[i]);else for(;++i<u;)r.add(t(n[i],i,n));return r}function vdt(n,t){return n-t}function ar(n){return function(){return n}}function ydt(n,t){for(var i,r=-1,u=t.length;++r<u;)if(i=pdt(n,t[r]))return i;return 0}function pdt(n,t){for(var a=t[0],i=t[1],r=-1,u=0,s=n.length,h=s-1;u<s;h=u++){var f=n[u],c=f[0],e=f[1],o=n[h],v=o[0],l=o[1];if(wdt(f,o,t))return 0;e>i!=l>i&&a<(v-c)*(i-e)/(l-e)+c&&(r=-r)}return r}function wdt(n,t,i){var u,f,r,e;return function(n,t,i){return(t[0]-n[0])*(i[1]-n[1])==(i[0]-n[0])*(t[1]-n[1])}(n,t,i)&&(f=n[u=+(n[0]===t[0])],r=i[u],e=t[u],f<=r&&r<=e||e<=r&&r<=f)}function bdt(){}function wft(){function t(n){var t=r(n);if(Array.isArray(t))t=t.slice().sort(vdt);else{var i=tp(n),u=i[0],f=i[1];t=tu(u,f,t);t=yt(Math.floor(u/t)*t,Math.floor(f/t)*t,t)}return t.map(function(t){return e(n,t)})}function e(t,r){var f=[],e=[];return function(t,r,u){function a(n){var t,i,a=[n[0][0]+f,n[0][1]+h],r=[n[1][0]+f,n[1][1]+h],e=o(a),s=o(r);(t=l[e])?(i=c[s])?(delete l[t.end],delete c[i.start],t===i?(t.ring.push(r),u(t.ring)):c[t.start]=l[i.end]={start:t.start,end:i.end,ring:t.ring.concat(i.ring)}):(delete l[t.end],t.ring.push(r),l[t.end=s]=t):(t=c[s])?(i=l[e])?(delete c[t.start],delete l[i.end],t===i?(t.ring.push(r),u(t.ring)):c[i.start]=l[t.end]={start:i.start,end:t.end,ring:i.ring.concat(t.ring)}):(delete c[t.start],t.ring.unshift(a),c[t.start=e]=t):c[e]=l[s]={start:e,end:s,ring:[a,r]}}var f,h,v,e,s,y,c=[],l=[];for(f=h=-1,e=t[0]>=r,li[e<<1].forEach(a);++f<n-1;)v=e,e=t[f+1]>=r,li[v|e<<1].forEach(a);for(li[e<<0].forEach(a);++h<i-1;){for(f=-1,e=t[h*n+n]>=r,s=t[h*n]>=r,li[e<<1|s<<2].forEach(a);++f<n-1;)v=e,e=t[h*n+n+f+1]>=r,y=s,s=t[h*n+f+1]>=r,li[v|e<<1|s<<2|y<<3].forEach(a);li[e|s<<3].forEach(a)}for(f=-1,s=t[h*n]>=r,li[s<<2].forEach(a);++f<n-1;)y=s,s=t[h*n+f+1]>=r,li[s<<2|y<<3].forEach(a);li[s<<3].forEach(a)}(t,r,function(n){u(n,t,r),function(n){for(var t=0,i=n.length,r=n[i-1][1]*n[0][0]-n[i-1][0]*n[0][1];++t<i;)r+=n[t-1][1]*n[t][0]-n[t-1][0]*n[t][1];return r}(n)>0?f.push([n]):e.push(n)}),e.forEach(function(n){for(var i,t=0,r=f.length;t<r;++t)if(-1!==ydt((i=f[t])[0],n))return void i.push(n)}),{type:"MultiPolygon",value:r,coordinates:f}}function o(t){return 2*t[0]+t[1]*(n+1)*4}function f(t,r,u){t.forEach(function(t){var f,e=t[0],o=t[1],s=0|e,h=0|o,c=r[h*n+s];e>0&&e<n&&s===e&&(f=r[h*n+s-1],t[0]=e+(u-f)/(c-f)-.5);o>0&&o<i&&h===o&&(f=r[(h-1)*n+s],t[1]=o+(u-f)/(c-f)-.5)})}var n=1,i=1,r=ep,u=f;return t.contour=e,t.size=function(r){if(!arguments.length)return[n,i];var u=Math.ceil(r[0]),f=Math.ceil(r[1]);if(!(u>0&&f>0))throw new Error("invalid size");return n=u,i=f,t},t.thresholds=function(n){return arguments.length?(r="function"==typeof n?n:Array.isArray(n)?ar(ab.call(n)):ar(n),t):r},t.smooth=function(n){return arguments.length?(u=n?f:bdt,t):u===f},t}function vb(n,t,i){for(var r,o,u=n.width,s=n.height,e=1+(i<<1),f=0;f<s;++f)for(r=0,o=0;r<u+i;++r)r<u&&(o+=n.data[r+f*u]),r>=i&&(r>=e&&(o-=n.data[r-e+f*u]),t.data[r-i+f*u]=o/Math.min(r+1,u-1+e-r,e))}function yb(n,t,i){for(var r,o,f=n.width,s=n.height,e=1+(i<<1),u=0;u<f;++u)for(r=0,o=0;r<s+i;++r)r<s&&(o+=n.data[u+r*f]),r>=i&&(r>=e&&(o-=n.data[u+(r-e)*f]),t.data[u+(r-i)*f]=o/Math.min(r+1,s-1+e-r,e))}function kdt(n){return n[0]}function ddt(n){return n[1]}function gdt(){return 1}function kft(n){return new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}")}function cl(n){function i(n,t){function c(){if(s)return pb;if(f)return f=!1,bft;var e,t,o=i;if(n.charCodeAt(o)===wb){for(;i++<r&&n.charCodeAt(i)!==wb||n.charCodeAt(++i)===wb;);return(e=i)>=r?s=!0:(t=n.charCodeAt(i++))===ho?f=!0:t===bb&&(f=!0,n.charCodeAt(i)===ho&&++i),n.slice(o+1,e-1).replace(/""/g,'"')}for(;i<r;){if((t=n.charCodeAt(e=i++))===ho)f=!0;else if(t===bb)f=!0,n.charCodeAt(i)===ho&&++i;else if(t!==u)continue;return n.slice(o,e)}return s=!0,n.slice(o,r)}var e,h=[],r=n.length,i=0,l=0,s=r<=0,f=!1,o;for(n.charCodeAt(r-1)===ho&&--r,n.charCodeAt(r-1)===bb&&--r;(e=c())!==pb;){for(o=[];e!==bft&&e!==pb;)o.push(e),e=c();t&&null==(o=t(o,l++))||h.push(o)}return h}function f(i){return i.map(t).join(n)}function t(n){return null==n?"":r.test(n+="")?'"'+n.replace(/"/g,'""')+'"':n}var r=new RegExp('["'+n+"\n\r]"),u=n.charCodeAt(0);return{parse:function(n,t){var r,u,f=i(n,function(n,i){if(r)return r(n,i-1);u=n;r=t?function(n,t){var i=kft(n);return function(r,u){return t(i(r),u,n)}}(n,t):kft(n)});return f.columns=u||[],f},parseRows:i,format:function(i,r){return null==r&&(r=function(n){var t=Object.create(null),i=[];return n.forEach(function(n){for(var r in n)r in t||i.push(t[r]=r)}),i}(i)),[r.map(t).join(n)].concat(i.map(function(i){return r.map(function(n){return t(i[n])}).join(n)})).join("\n")},formatRows:function(n){return n.map(f).join("\n")}}}function egt(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.blob()}function ogt(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.arrayBuffer()}function sgt(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.text()}function vl(n,t){return fetch(n,t).then(sgt)}function net(n){return function(t,i,r){return 2===arguments.length&&"function"==typeof i&&(r=i,i=void 0),vl(t,i).then(function(t){return n(t,r)})}}function hgt(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.json()}function kb(n){return function(t,i){return vl(t,i).then(function(t){return(new DOMParser).parseFromString(t,n)})}}function b(n){return function(){return n}}function vr(){return 1e-6*(Math.random()-.5)}function ret(n,t,i,r){if(isNaN(t)||isNaN(i))return n;var u,e,o,w,b,c,l,s,k,f=n._root,h={data:r},a=n._x0,v=n._y0,y=n._x1,p=n._y1;if(!f)return n._root=h,n;for(;f.length;)if((c=t>=(e=(a+y)/2))?a=e:y=e,(l=i>=(o=(v+p)/2))?v=o:p=o,u=f,!(f=f[s=l<<1|c]))return u[s]=h,n;if(w=+n._x.call(null,f.data),b=+n._y.call(null,f.data),t===w&&i===b)return h.next=f,u?u[s]=h:n._root=h,n;do u=u?u[s]=new Array(4):n._root=new Array(4),(c=t>=(e=(a+y)/2))?a=e:y=e,(l=i>=(o=(v+p)/2))?v=o:p=o;while((s=l<<1|c)==(k=(b>=o)<<1|w>=e));return u[k]=f,u[s]=h,n}function ot(n,t,i,r,u){this.node=n;this.x0=t;this.y0=i;this.x1=r;this.y1=u}function vgt(n){return n[0]}function ygt(n){return n[1]}function yl(n,t,i){var r=new db(null==t?vgt:t,null==i?ygt:i,NaN,NaN,NaN,NaN);return null==n?r:r.addAll(n)}function db(n,t,i,r,u,f){this._x=n;this._y=t;this._x0=i;this._y0=r;this._x1=u;this._y1=f;this._root=void 0}function uet(n){for(var t={data:n.data},i=t;n=n.next;)i=i.next={data:n.data};return t}function pgt(n){return n.x+n.vx}function wgt(n){return n.y+n.vy}function bgt(n){return n.index}function fet(n,t){var i=n.get(t);if(!i)throw new Error("missing: "+t);return i}function kgt(n){return n.x}function dgt(n){return n.y}function pl(n,t){if((r=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var r,i=n.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+n.slice(r+1)]}function lf(n){return(n=pl(Math.abs(n)))?n[1]:NaN}function co(n){return new gb(n)}function gb(n){if(!(t=het.exec(n)))throw new Error("invalid format: "+n);var t;this.fill=t[1]||" ";this.align=t[2]||">";this.sign=t[3]||"-";this.symbol=t[4]||"";this.zero=!!t[5];this.width=t[6]&&+t[6];this.comma=!!t[7];this.precision=t[8]&&+t[8].slice(1);this.trim=!!t[9];this.type=t[10]||""}function cet(n,t){var u=pl(n,t),i,r;return u?(i=u[0],r=u[1],r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")):n+""}function aet(n){return n}function vet(n){function f(n){function b(n){var b,rt,it,a=k,u=d,nt,tt,s;if("c"===t)u=w(n)+u,n="";else if(nt=(n=+n)<0,n=w(Math.abs(n),i),p&&(n=function(n){n:for(var r,u=n.length,t=1,i=-1;t<u;++t)switch(n[t]){case".":i=r=t;break;case"0":0===i&&(i=t);r=t;break;default:if(i>0){if(!+n[t])break n;i=0}}return i>0?n.slice(0,i)+n.slice(r+1):n}(n)),nt&&0==+n&&(nt=!1),a=(nt?"("===f?f:"-":"-"===f||"("===f?"":f)+a,u=("s"===t?tk[8+set/3]:"")+u+(nt&&"("===f?")":""),g)for(b=-1,rt=n.length;++b<rt;)if(48>(it=n.charCodeAt(b))||it>57){u=(46===it?e+n.slice(b+1):n.slice(b))+u;n=n.slice(0,b);break}y&&!h&&(n=r(n,1/0));tt=a.length+n.length+u.length;s=tt<v?new Array(v-tt+1).join(c):"";switch(y&&h&&(n=r(s+n,s.length?v-u.length:1/0),s=""),l){case"<":n=a+n+u+s;break;case"=":n=a+s+n+u;break;case"^":n=s.slice(0,tt=s.length>>1)+a+n+u+s.slice(tt);break;default:n=s+a+n+u}return o(n)}var c=(n=co(n)).fill,l=n.align,f=n.sign,a=n.symbol,h=n.zero,v=n.width,y=n.comma,i=n.precision,p=n.trim,t=n.type;"n"===t?(y=!0,t="g"):nk[t]||(null==i&&(i=12),p=!0,t="g");(h||"0"===c&&"="===l)&&(h=!0,c="0",l="=");var k="$"===a?u[0]:"#"===a&&/[boxX]/.test(t)?"0"+t.toLowerCase():"",d="$"===a?u[1]:/[%p]/.test(t)?s:"",w=nk[t],g=/[defgprs%]/.test(t);return i=null==i?6:/[gprs]/.test(t)?Math.max(1,Math.min(21,i)):Math.max(0,Math.min(20,i)),b.toString=function(){return n+""},b}var t,i,r=n.grouping&&n.thousands?(t=n.grouping,i=n.thousands,function(n,r){for(var f=n.length,o=[],s=0,u=t[0],e=0;f>0&&u>0&&(e+u+1>r&&(u=Math.max(1,r-e)),o.push(n.substring(f-=u,f+u)),!((e+=u+1)>r));)u=t[s=(s+1)%t.length];return o.reverse().join(i)}):aet,u=n.currency,e=n.decimal,o=n.numerals?function(n){return function(t){return t.replace(/[0-9]/g,function(t){return n[+t]})}}(n.numerals):aet,s=n.percent||"%";return{format:f,formatPrefix:function(n,t){var r=f(((n=co(n)).type="f",n)),i=3*Math.max(-8,Math.min(8,Math.floor(lf(t)/3))),u=Math.pow(10,-i),e=tk[8+i/3];return function(n){return r(u*n)+e}}}}function yet(t){return wl=vet(t),n.format=wl.format,n.formatPrefix=wl.formatPrefix,wl}function pet(n){return Math.max(0,-lf(Math.abs(n)))}function wet(n,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(lf(t)/3)))-lf(Math.abs(n)))}function bet(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,lf(t)-lf(n))+1}function yr(){return new bl}function bl(){this.reset()}function ket(n,t,i){var r=n.s=t+i,u=r-t,f=r-u;n.t=t-f+(i-u)}function not(n){return n>1?0:n<-1?o:Math.acos(n)}function wt(n){return n>1?y:n<-1?-y:Math.asin(n)}function tot(n){return(n=t(n/2))*n}function v(){}function na(n,t){n&&fk.hasOwnProperty(n.type)&&fk[n.type](n,t)}function ek(n,t,i){var r,u=-1,f=n.length-i;for(t.lineStart();++u<f;)r=n[u],t.point(r[0],r[1],r[2]);t.lineEnd()}function iot(n,t){var i=-1,r=n.length;for(t.polygonStart();++i<r;)ek(n[i],t,1);t.polygonEnd()}function ei(n,t){n&&uk.hasOwnProperty(n.type)?uk[n.type](n,t):na(n,t)}function ggt(){ai.point=tnt}function nnt(){fot(rot,uot)}function tnt(n,i){ai.point=fot;rot=n;uot=i;ok=n*=u;sk=r(i=(i*=u)/2+kl);hk=t(i)}function fot(n,i){var f=(n*=u)-ok,e=f>=0?1:-1,o=e*f,s=r(i=(i*=u)/2+kl),h=t(i),c=hk*h,l=sk*s+c*r(o),a=c*e*t(o);ta.add(st(a,l));ok=n;sk=s;hk=h}function ra(n){return[st(n[1],n[0]),wt(n[2])]}function cu(n){var i=n[0],u=n[1],f=r(u);return[f*r(i),f*t(i),t(u)]}function ua(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function vf(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function ck(n,t){n[0]+=t[0];n[1]+=t[1];n[2]+=t[2]}function fa(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function ea(n){var t=k(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t;n[1]/=t;n[2]/=t}function yk(n,t){pr.push(di=[p=n,w=n]);t<bt&&(bt=t);t>gt&&(gt=t)}function cot(n,t){var c=cu([n*u,t*u]),e,i;if(yf){e=vf(yf,c);i=vf([e[1],-e[0],0],e);ea(i);i=ra(i);var o,l=n-lu,r=l>0?1:-1,f=i[0]*a*r,h=s(l)>180;h^(r*lu<f&&f<r*n)?(o=i[1]*a)>gt&&(gt=o):h^(r*lu<(f=(f+360)%360-180)&&f<r*n)?(o=-i[1]*a)<bt&&(bt=o):(t<bt&&(bt=t),t>gt&&(gt=t));h?n<lu?kt(p,n)>kt(p,w)&&(w=n):kt(n,w)>kt(p,w)&&(p=n):w>=p?(n<p&&(p=n),n>w&&(w=n)):n>lu?kt(p,n)>kt(p,w)&&(w=n):kt(n,w)>kt(p,w)&&(p=n)}else pr.push(di=[p=n,w=n]);t<bt&&(bt=t);t>gt&&(gt=t);yf=c;lu=n}function lot(){vi.point=cot}function aot(){di[0]=p;di[1]=w;vi.point=yk;yf=null}function vot(n,t){if(yf){var i=n-lu;pf.add(s(i)>180?i+(i>0?360:-360):i)}else eot=n,oot=t;ai.point(n,t);cot(n,t)}function int(){ai.lineStart()}function rnt(){vot(eot,oot);ai.lineEnd();s(pf)>i&&(p=-(w=180));di[0]=p;di[1]=w;yf=null}function kt(n,t){return(t-=n)<0?t+360:t}function unt(n,t){return n[0]-t[0]}function yot(n,t){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}function pk(n,i){n*=u;var f=r(i*=u);vo(f*r(n),f*t(n),t(i))}function vo(n,t,i){ha+=(n-ha)/++oa;ca+=(t-ca)/oa;la+=(i-la)/oa}function pot(){ni.point=fnt}function fnt(n,i){n*=u;var f=r(i*=u);ht=f*r(n);ct=f*t(n);lt=t(i);ni.point=ent;vo(ht,ct,lt)}function ent(n,i){n*=u;var h=r(i*=u),e=h*r(n),o=h*t(n),s=t(i),f=st(k((f=ct*s-lt*o)*f+(f=lt*e-ht*s)*f+(f=ht*o-ct*e)*f),ht*e+ct*o+lt*s);sa+=f;aa+=f*(ht+(ht=e));va+=f*(ct+(ct=o));ya+=f*(lt+(lt=s));vo(ht,ct,lt)}function wot(){ni.point=pk}function ont(){ni.point=hnt}function snt(){bot(sot,hot);ni.point=pk}function hnt(n,i){sot=n;hot=i;n*=u;i*=u;ni.point=bot;var f=r(i);ht=f*r(n);ct=f*t(n);lt=t(i);vo(ht,ct,lt)}function bot(n,i){n*=u;var y=r(i*=u),e=y*r(n),o=y*t(n),s=t(i),h=ct*s-lt*o,c=lt*e-ht*s,l=ht*o-ct*e,a=k(h*h+c*c+l*l),f=wt(a),v=a&&-f/a;lk+=v*h;ak+=v*c;vk+=v*l;sa+=f;aa+=f*(ht+(ht=e));va+=f*(ct+(ct=o));ya+=f*(lt+(lt=s));vo(ht,ct,lt)}function wf(n){return function(){return n}}function wk(n,t){function i(i,r){return i=n(i,r),t(i[0],i[1])}return n.invert&&t.invert&&(i.invert=function(i,r){return(i=t.invert(i,r))&&n.invert(i[0],i[1])}),i}function bk(n,t){return[n>o?n-vt:n<-o?n+vt:n,t]}function kk(n,t,i){return(n%=vt)?t||i?wk(dot(n),got(t,i)):dot(n):t||i?got(t,i):bk}function kot(n){return function(t,i){return[(t+=n)>o?t-vt:t<-o?t+vt:t,i]}}function dot(n){var t=kot(n);return t.invert=kot(-n),t}function got(n,i){function s(n,i){var s=r(i),h=r(n)*s,c=t(n)*s,l=t(i),a=l*u+h*f;return[st(c*e-a*o,h*u-l*f),wt(a*e+c*o)]}var u=r(n),f=t(n),e=r(i),o=t(i);return s.invert=function(n,i){var s=r(i),h=r(n)*s,c=t(n)*s,l=t(i),a=l*e-c*o;return[st(c*e+l*o,h*u+a*f),wt(a*u-h*f)]},s}function nst(n){function t(t){return(t=n(t[0]*u,t[1]*u))[0]*=a,t[1]*=a,t}return n=kk(n[0]*u,n[1]*u,n.length>2?n[2]*u:0),t.invert=function(t){return(t=n.invert(t[0]*u,t[1]*u))[0]*=a,t[1]*=a,t},t}function tst(n,i,u,f,e,o){var c,s;if(u){var h=r(i),l=t(i),a=f*u;for(null==e?(e=i+f*vt,o=i-a/2):(e=ist(h,e),o=ist(h,o),(f>0?e<o:e>o)&&(e+=f*vt)),s=e;f>0?s>o:s<o;s-=a)c=ra([h,-l*r(s),-l*t(s)]),n.point(c[0],c[1])}}function ist(n,t){(t=cu(t))[0]-=n;ea(t);var r=not(-t[1]);return((-t[2]<0?-r:r)+vt-i)%vt}function rst(){var t,n=[];return{point:function(n,i){t.push([n,i])},lineStart:function(){n.push(t=[])},lineEnd:v,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],t=null,i}}}function pa(n,t){return s(n[0]-t[0])<i&&s(n[1]-t[1])<i}function wa(n,t,i,r){this.x=n;this.z=t;this.o=i;this.e=r;this.v=!1;this.n=this.p=null}function ust(n,t,i,r,u){var e,l,h=[],s=[],o,a,v,f,c;if(n.forEach(function(n){if(!((r=n.length-1)<=0)){var r,t,i=n[0],f=n[r];if(pa(i,f)){for(u.lineStart(),e=0;e<r;++e)u.point((i=n[e])[0],i[1]);u.lineEnd()}else h.push(t=new wa(i,n,null,!0)),s.push(t.o=new wa(i,null,t,!1)),h.push(t=new wa(f,n,null,!1)),s.push(t.o=new wa(f,null,t,!0))}}),h.length){for(s.sort(t),fst(h),fst(s),e=0,l=s.length;e<l;++e)s[e].e=i=!i;for(v=h[0];;){for(f=v,c=!0;f.v;)if((f=f.n)===v)return;o=f.z;u.lineStart();do{if(f.v=f.o.v=!0,f.e){if(c)for(e=0,l=o.length;e<l;++e)u.point((a=o[e])[0],a[1]);else r(f.x,f.n.x,1,u);f=f.n}else{if(c)for(o=f.p.z,e=o.length-1;e>=0;--e)u.point((a=o[e])[0],a[1]);else r(f.x,f.p.x,-1,u);f=f.p}o=(f=f.o).z;c=!c}while(!f.v);u.lineEnd()}}}function fst(n){if(r=n.length){for(var r,t,u=0,i=n[0];++u<r;)i.n=t=n[u],t.p=i,i=t;i.n=t=n[0];t.p=i}}function est(n,u){var h=u[0],e=u[1],ut=t(e),bt=[t(h),-r(h),0],p=0,ft=0,c,et,s,it,rt;for(ba.reset(),1===ut?e=y+i:-1===ut&&(e=-y-i),c=0,et=n.length;c<et;++c)if(b=(w=n[c]).length)for(var w,b,l=w[b-1],k=l[0],ot=l[1]/2+kl,ht=t(ot),ct=r(ot),d=0;d<b;++d,k=g,ht=at,ct=yt,l=a){var a=w[d],g=a[0],lt=a[1]/2+kl,at=t(lt),yt=r(lt),f=g-k,nt=f>=0?1:-1,tt=nt*f,v=tt>o,pt=ht*at;(ba.add(st(pt*nt*t(tt),ct*yt+pt*r(tt))),p+=v?f+nt*vt:f,v^k>=h^g>=h)&&(s=vf(cu(l),cu(a)),ea(s),it=vf(bt,s),ea(it),rt=(v^f>=0?-1:1)*wt(it[2]),(e>rt||e===rt&&(s[0]||s[1]))&&(ft+=v^f>=0?1:-1))}return(p<-i||p<i&&ba<-i)^1&ft}function ost(n,t,i,r){return function(u){function a(t,i){n(t,i)&&u.point(t,i)}function b(n,t){l.point(n,t)}function y(){f.point=b;l.lineStart()}function p(){f.point=a;l.lineEnd()}function w(n,t){s.push([n,t]);c.point(n,t)}function k(){c.lineStart();s=[]}function d(){w(s[0][0],s[0][1]);c.lineEnd();var t,i,r,f,l=c.clean(),n=v.result(),a=n.length;if(s.pop(),h.push(s),s=null,a)if(1&l){if((i=(r=n[0]).length-1)>0){for(e||(u.polygonStart(),e=!0),u.lineStart(),t=0;t<i;++t)u.point((f=r[t])[0],f[1]);u.lineEnd()}}else a>1&&2&l&&n.push(n.pop().concat(n.shift())),o.push(n.filter(cnt))}var h,o,s,l=t(u),v=rst(),c=t(v),e=!1,f={point:a,lineStart:y,lineEnd:p,polygonStart:function(){f.point=w;f.lineStart=k;f.lineEnd=d;o=[];h=[]},polygonEnd:function(){f.point=a;f.lineStart=y;f.lineEnd=p;o=op(o);var n=est(h,r);o.length?(e||(u.polygonStart(),e=!0),ust(o,lnt,n,i,u)):n&&(e||(u.polygonStart(),e=!0),u.lineStart(),i(null,null,1,u),u.lineEnd());e&&(u.polygonEnd(),e=!1);o=h=null},sphere:function(){u.polygonStart();u.lineStart();i(null,null,1,u);u.lineEnd();u.polygonEnd()}};return f}}function cnt(n){return n.length>1}function lnt(n,t){return((n=n.x)[0]<0?n[1]-y-i:y-n[1])-((t=t.x)[0]<0?t[1]-y-i:y-t[1])}function sst(n){function h(n,i){return r(n)*r(i)>t}function e(n,r,u){var ut=[1,0,0],a=vf(cu(n),cu(r)),ft=ua(a,a),g=a[0],nt=ft-g*g,it,f,b,d,rt;if(!nt)return!u&&n;var ot=t*ft/nt,st=-t*g/nt,ht=vf(ut,a),e=fa(ut,ot);ck(e,fa(a,st));var v=ht,p=ua(e,v),tt=ua(v,v),et=p*p-tt*(ua(e,e)-1);if(!(et<0)){if(it=k(et),f=fa(v,(-p-it)/tt),ck(f,e),f=ra(f),!u)return f;var w,h=n[0],y=r[0],c=n[1],l=r[1];if(y<h&&(w=h,h=y,y=w),b=y-h,d=s(b-o)<i,!d&&l<c&&(w=c,c=l,l=w),d||b<i?d?c+l>0^f[1]<(s(f[0]-h)<i?c:l):c<=f[1]&&f[1]<=l:b>o^(h<=f[0]&&f[0]<=y))return rt=fa(v,(-p+it)/tt),ck(rt,e),[f,ra(rt)]}}function c(t,i){var u=f?n:o-n,r=0;return t<-u?r|=1:t>u&&(r|=2),i<-u?r|=4:i>u&&(r|=8),r}var t=r(n),l=6*u,f=t>0,a=s(t)>i;return ost(h,function(n){var t,l,r,s,u;return{lineStart:function(){s=r=!1;u=1},point:function(v,y){var w,p=[v,y],b=h(v,y),d=f?b?0:c(v,y):b?c(v+(v<0?o:-o),y):0,k;(!t&&(s=r=b)&&n.lineStart(),b!==r&&(!(w=e(t,p))||pa(t,w)||pa(p,w))&&(p[0]+=i,p[1]+=i,b=h(p[0],p[1])),b!==r)?(u=0,b?(n.lineStart(),w=e(p,t),n.point(w[0],w[1])):(w=e(t,p),n.point(w[0],w[1]),n.lineEnd()),t=w):a&&t&&f^b&&(d&l||!(k=e(p,t,!0))||(u=0,f?(n.lineStart(),n.point(k[0][0],k[0][1]),n.point(k[1][0],k[1][1]),n.lineEnd()):(n.point(k[1][0],k[1][1]),n.lineEnd(),n.lineStart(),n.point(k[0][0],k[0][1]))));!b||t&&pa(t,p)||n.point(p[0],p[1]);t=p;r=b;l=d},lineEnd:function(){r&&n.lineEnd();t=null},clean:function(){return u|(s&&r)<<1}}},function(t,i,r,u){tst(u,n,l,r,t,i)},f?[0,-n]:[-o,n-o])}function da(n,t,r,u){function e(i,f){return n<=i&&i<=r&&t<=f&&f<=u}function o(i,e,o,s){var c=0,l=0;if(null==i||(c=f(i,o))!==(l=f(e,o))||h(i,e)<0^o>0){do s.point(0===c||3===c?n:r,c>1?u:t);while((c=(c+o+4)%4)!==l)}else s.point(e[0],e[1])}function f(u,f){return s(u[0]-n)<i?f>0?0:3:s(u[0]-r)<i?f>0?2:1:s(u[1]-t)<i?f>0?1:0:f>0?3:2}function c(n,t){return h(n.x,t.x)}function h(n,t){var i=f(n,1),r=f(t,1);return i!==r?i-r:0===i?t[1]-n[1]:1===i?n[0]-t[0]:2===i?n[1]-t[1]:t[0]-n[0]}return function(i){function tt(n,t){e(n,t)&&f.point(n,t)}function it(i,o){var s=e(i,o),c,b;(h&&p.push([i,o]),w)?(d=i,g=o,nt=s,w=!1,s&&(f.lineStart(),f.point(i,o))):s&&l?f.point(i,o):(c=[a=Math.max(yo,Math.min(bf,a)),v=Math.max(yo,Math.min(bf,v))],b=[i=Math.max(yo,Math.min(bf,i)),o=Math.max(yo,Math.min(bf,o))],function(n,t,i,r,u,f){var e,l=n[0],a=n[1],o=0,s=1,h=t[0]-l,c=t[1]-a;if(e=i-l,h||!(e>0)){if(e/=h,h<0){if(e<o)return;e<s&&(s=e)}else if(h>0){if(e>s)return;e>o&&(o=e)}if(e=u-l,h||!(e<0)){if(e/=h,h<0){if(e>s)return;e>o&&(o=e)}else if(h>0){if(e<o)return;e<s&&(s=e)}if(e=r-a,c||!(e>0)){if(e/=c,c<0){if(e<o)return;e<s&&(s=e)}else if(c>0){if(e>s)return;e>o&&(o=e)}if(e=f-a,c||!(e<0)){if(e/=c,c<0){if(e>s)return;e>o&&(o=e)}else if(c>0){if(e<o)return;e<s&&(s=e)}return o>0&&(n[0]=l+o*h,n[1]=a+o*c),s<1&&(t[0]=l+s*h,t[1]=a+s*c),!0}}}}}(c,b,n,t,r,u)?(l||(f.lineStart(),f.point(c[0],c[1])),f.point(b[0],b[1]),s||f.lineEnd(),y=!1):s&&(f.lineStart(),f.point(i,o),y=!1));a=i;v=o;l=s}var s,h,p,d,g,nt,a,v,l,w,y,f=i,b=rst(),k={point:tt,lineStart:function(){k.point=it;h&&h.push(p=[]);w=!0;l=!1;a=v=NaN},lineEnd:function(){s&&(it(d,g),nt&&l&&b.rejoin(),s.push(b.result()));k.point=tt;l&&f.lineEnd()},polygonStart:function(){f=b;s=[];h=[];y=!0},polygonEnd:function(){var t=function(){for(var o=0,s=0,a=h.length;s<a;++s)for(var r,t,c=h[s],l=1,v=c.length,f=c[0],e=f[0],i=f[1];l<v;++l)r=e,t=i,f=c[l],e=f[0],i=f[1],t<=u?i>u&&(e-r)*(u-t)>(i-t)*(n-r)&&++o:i<=u&&(e-r)*(u-t)<(i-t)*(n-r)&&--o;return o}(),r=y&&t,e=(s=op(s)).length;(r||e)&&(i.polygonStart(),r&&(i.lineStart(),o(null,null,1,i),i.lineEnd()),e&&ust(s,c,t,o,i),i.polygonEnd());f=i;s=h=p=null}};return k}}function ant(){au.point=au.lineEnd=v}function vnt(n,i){dk=n*=u;ga=t(i*=u);nv=r(i);au.point=ynt}function ynt(n,i){n*=u;var e=t(i*=u),f=r(i),o=s(n-dk),h=r(o),c=f*t(o),l=nv*e-ga*f*h,a=ga*e+nv*f*h;tv.add(st(k(c*c+l*l),a));dk=n;ga=e;nv=f}function hst(n){return tv.reset(),ei(n,au),+tv}function po(n,t){return iv[0]=n,iv[1]=t,hst(cst)}function rv(n,t){return!(!n||!nd.hasOwnProperty(n.type))&&nd[n.type](n,t)}function lst(n,t){return 0===po(n,t)}function ast(n,t){var r=po(n[0],n[1]);return po(n[0],t)+po(t,n[1])<=r+i}function vst(n,t){return!!est(n.map(pnt),yst(t))}function pnt(n){return(n=n.map(yst)).pop(),n}function yst(n){return[n[0]*u,n[1]*u]}function pst(n,t,r){var u=yt(n,t-i,r).concat(t);return function(n){return u.map(function(t){return[n,t]})}}function wst(n,t,r){var u=yt(n,t-i,r).concat(t);return function(n){return u.map(function(t){return[t,n]})}}function bst(){function n(){return{type:"MultiLineString",coordinates:g()}}function g(){return yt(dl(r/a)*a,t,a).map(w).concat(yt(dl(f/v)*v,u,v).map(b)).concat(yt(dl(o/l)*l,e,l).filter(function(n){return s(n%a)>i}).map(k)).concat(yt(dl(c/p)*p,h,p).filter(function(n){return s(n%v)>i}).map(d))}var e,o,t,r,h,c,u,f,k,d,w,b,l=10,p=l,a=90,v=360,y=2.5;return n.lines=function(){return g().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[w(r).concat(b(u).slice(1),w(t).reverse().slice(1),b(f).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.extentMajor(t).extentMinor(t):n.extentMinor()},n.extentMajor=function(i){return arguments.length?(r=+i[0][0],t=+i[1][0],f=+i[0][1],u=+i[1][1],r>t&&(i=r,r=t,t=i),f>u&&(i=f,f=u,u=i),n.precision(y)):[[r,f],[t,u]]},n.extentMinor=function(t){return arguments.length?(o=+t[0][0],e=+t[1][0],c=+t[0][1],h=+t[1][1],o>e&&(t=o,o=e,e=t),c>h&&(t=c,c=h,h=t),n.precision(y)):[[o,c],[e,h]]},n.step=function(t){return arguments.length?n.stepMajor(t).stepMinor(t):n.stepMinor()},n.stepMajor=function(t){return arguments.length?(a=+t[0],v=+t[1],n):[a,v]},n.stepMinor=function(t){return arguments.length?(l=+t[0],p=+t[1],n):[l,p]},n.precision=function(i){return arguments.length?(y=+i,k=pst(c,h,90),d=wst(o,e,y),w=pst(f,u,90),b=wst(r,t,y),n):y},n.extentMajor([[-180,-90+i],[180,90-i]]).extentMinor([[-180,-80-i],[180,80+i]])}function vu(n){return n}function wnt(){gi.point=bnt}function bnt(n,t){gi.point=gst;kst=td=n;dst=id=t}function gst(n,t){ud.add(id*n-td*t);td=n;id=t}function knt(){gst(kst,dst)}function yu(n,t){fd+=n;ed+=t;++bo}function iht(){ti.point=dnt}function dnt(n,t){ti.point=gnt;yu(yi=n,pi=t)}function gnt(n,t){var r=n-yi,u=t-pi,i=k(r*r+u*u);ov+=i*(yi+n)/2;sv+=i*(pi+t)/2;df+=i;yu(yi=n,pi=t)}function rht(){ti.point=yu}function nti(){ti.point=iti}function tti(){uht(nht,tht)}function iti(n,t){ti.point=uht;yu(nht=yi=n,tht=pi=t)}function uht(n,t){var r=n-yi,u=t-pi,i=k(r*r+u*u);ov+=i*(yi+n)/2;sv+=i*(pi+t)/2;df+=i;od+=(i=pi*n-yi*t)*(yi+n);sd+=i*(pi+t);ko+=3*i;yu(yi=n,pi=t)}function fht(n){this._context=n}function rti(n,t){gf.point=sht;eht=go=n;oht=ns=t}function sht(n,t){go-=n;ns-=t;hv.add(k(go*go+ns*ns));go=n;ns=t}function hht(){this._string=[]}function cht(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function ts(n){return function(t){var i=new cd,r;for(r in n)i[r]=n[r];return i.stream=t,i}}function cd(){}function ld(n,t,i){var r=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=r&&n.clipExtent(null),ei(i,n.stream(ev)),t(ev.result()),null!=r&&n.clipExtent(r),n}function cv(n,t,i){return ld(n,function(i){var u=t[1][0]-t[0][0],f=t[1][1]-t[0][1],r=Math.min(u/(i[1][0]-i[0][0]),f/(i[1][1]-i[0][1])),e=+t[0][0]+(u-r*(i[1][0]+i[0][0]))/2,o=+t[0][1]+(f-r*(i[1][1]+i[0][1]))/2;n.scale(150*r).translate([e,o])},i)}function ad(n,t,i){return cv(n,[[0,0],t],i)}function vd(n,t,i){return ld(n,function(i){var u=+t,r=u/(i[1][0]-i[0][0]),f=(u-r*(i[1][0]+i[0][0]))/2,e=-r*i[0][1];n.scale(150*r).translate([f,e])},i)}function yd(n,t,i){return ld(n,function(i){var u=+t,r=u/(i[1][1]-i[0][1]),f=-r*i[0][0],e=(u-r*(i[1][1]+i[0][1]))/2;n.scale(150*r).translate([f,e])},i)}function aht(n,t){return+t?function(n,t){function r(u,f,e,o,h,c,l,a,v,y,p,w,b,d){var it=l-u,rt=a-f,et=it*it+rt*rt;if(et>4*t&&b--){var nt=o+y,tt=h+p,g=c+w,ot=k(nt*nt+tt*tt+g*g),yt=wt(g/=ot),ht=s(s(g)-1)<i||s(e-v)<i?(e+v)/2:st(tt,nt),ct=n(ht,yt),ut=ct[0],ft=ct[1],lt=ut-u,at=ft-f,vt=rt*lt-it*at;(vt*vt/et>t||s((it*lt+rt*at)/et-.5)>.3||o*y+h*p+c*w<lht)&&(r(u,f,e,o,h,c,ut,ft,ht,nt/=ot,tt/=ot,g,b,d),d.point(ut,ft),r(ut,ft,ht,nt,tt,g,l,a,v,y,p,w,b,d))}}return function(t){function d(i,r){i=n(i,r);t.point(i[0],i[1])}function c(){u=NaN;i.point=l;t.lineStart()}function l(i,c){var l=cu([i,c]),a=n(i,c);r(u,f,h,e,o,s,u=a[0],f=a[1],h=i,e=l[0],o=l[1],s=l[2],pd,t);t.point(u,f)}function a(){i.point=d;t.lineEnd()}function g(){c();i.point=nt;i.lineEnd=tt}function nt(n,t){l(v=n,t);y=u;p=f;w=e;b=o;k=s;i.point=l}function tt(){r(u,f,h,e,o,s,y,p,v,w,b,k,pd,t);i.lineEnd=a;a()}var v,y,p,w,b,k,h,u,f,e,o,s,i={point:d,lineStart:c,lineEnd:a,polygonStart:function(){t.polygonStart();i.lineStart=g},polygonEnd:function(){t.polygonEnd();i.lineStart=c}};return i}}(n,t):function(n){return ts({point:function(t,i){t=n(t,i);this.stream.point(t[0],t[1])}})}(n)}function yht(n,i,u,f){function a(n,t){return[s*n-h*t+i,u-h*n-s*t]}var e=r(f),o=t(f),s=e*n,h=o*n,c=e/n,l=o/n,v=(o*u-e*i)/n,y=(o*i+e*u)/n;return a.invert=function(n,t){return[c*n-l*t+v,y-l*n-c*t]},a}function nr(n){return wd(function(){return n})()}function wd(n){function t(n){return nt(n[0]*u,n[1]*u)}function ct(n){return(n=nt.invert(n[0],n[1]))&&[n[0]*a,n[1]*a]}function i(){var n=yht(y,0,0,f).apply(null,o(ut,ft)),t=(f?yht:function(n,t,i){function r(r,u){return[t+n*r,i-n*u]}return r.invert=function(r,u){return[(r-t)/n,(i-u)/n]},r})(y,it-n[0],rt-n[1],f);return d=kk(et,ot,st),l=wk(o,t),nt=wk(d,l),g=aht(l,ht),r()}function r(){return v=tt=null,t}var o,d,s,h,c,g,l,nt,v,tt,y=150,it=480,rt=250,ut=0,ft=0,et=0,ot=0,st=0,f=0,p=null,w=ka,e=null,b=vu,ht=.5;return t.stream=function(n){return v&&tt===n?v:v=vht(function(n){return ts({point:function(t,i){var r=n(t,i);return this.stream.point(r[0],r[1])}})}(d)(w(g(b(tt=n)))))},t.preclip=function(n){return arguments.length?(w=n,p=void 0,r()):w},t.postclip=function(n){return arguments.length?(b=n,e=s=h=c=null,r()):b},t.clipAngle=function(n){return arguments.length?(w=+n?sst(p=n*u):(p=null,ka),r()):p*a},t.clipExtent=function(n){return arguments.length?(b=null==n?(e=s=h=c=null,vu):da(e=+n[0][0],s=+n[0][1],h=+n[1][0],c=+n[1][1]),r()):null==e?null:[[e,s],[h,c]]},t.scale=function(n){return arguments.length?(y=+n,i()):y},t.translate=function(n){return arguments.length?(it=+n[0],rt=+n[1],i()):[it,rt]},t.center=function(n){return arguments.length?(ut=n[0]%360*u,ft=n[1]%360*u,i()):[ut*a,ft*a]},t.rotate=function(n){return arguments.length?(et=n[0]%360*u,ot=n[1]%360*u,st=n.length>2?n[2]%360*u:0,i()):[et*a,ot*a,st*a]},t.angle=function(n){return arguments.length?(f=n%360*u,i()):f*a},t.precision=function(n){return arguments.length?(g=aht(l,ht=n*n),r()):k(ht)},t.fitExtent=function(n,i){return cv(t,n,i)},t.fitSize=function(n,i){return ad(t,n,i)},t.fitWidth=function(n,i){return vd(t,n,i)},t.fitHeight=function(n,i){return yd(t,n,i)},function(){return o=n.apply(this,arguments),t.invert=o.invert&&ct,i()}}function bd(n){var t=0,i=o/3,r=wd(n),f=r(t,i);return f.parallels=function(n){return arguments.length?r(t=n[0]*u,i=n[1]*u):[t*a,i*a]},f}function pht(n,u){function c(n,i){var u=k(e-2*f*t(i))/f;return[u*t(n*=f),h-u*r(n)]}var o=t(n),f=(o+t(u))/2,e,h;return s(f)<i?function(n){function u(n,r){return[n*i,t(r)/i]}var i=r(n);return u.invert=function(n,t){return[n/i,wt(t*i)]},u}(n):(e=1+o*(2*f-o),h=k(e)/f,c.invert=function(n,t){var i=h-t;return[st(n,s(i))/f*ao(i),wt((e-(n*n+i*i)*f*f)/(2*f))]},c)}function lv(){return bd(pht).scale(155.424).center([0,33.6442])}function wht(){return lv().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function bht(n){return function(i,u){var o=r(i),f=r(u),e=n(o*f);return[e*f*t(i),e*t(u)]}}function is(n){return function(i,u){var f=k(i*i+u*u),e=n(f),o=t(e),s=r(e);return[st(i*o,f*s),wt(f&&u*o/f)]}}function rs(n,t){return[n,gl(rk((y+t)/2))]}function kht(n){function e(){var e=o*s(),h=t(nst(t.rotate()).invert([0,0]));return l(null==i?[[h[0]-e,h[1]-e],[h[0]+e,h[1]+e]]:n===rs?[[Math.max(h[0]-e,i),r],[Math.min(h[0]+e,u),f]]:[[i,Math.max(h[1]-e,r)],[u,Math.min(h[1]+e,f)]])}var r,u,f,t=nr(n),h=t.center,s=t.scale,c=t.translate,l=t.clipExtent,i=null;return t.scale=function(n){return arguments.length?(s(n),e()):s()},t.translate=function(n){return arguments.length?(c(n),e()):c()},t.center=function(n){return arguments.length?(h(n),e()):h()},t.clipExtent=function(n){return arguments.length?(null==n?i=r=u=f=null:(i=+n[0][0],r=+n[0][1],u=+n[1][0],f=+n[1][1]),e()):null==i?null:[[i,r],[u,f]]},e()}function yv(n){return rk((y+n)/2)}function dht(n,u){function h(n,u){e>0?u<-y+i&&(u=-y+i):u>y-i&&(u=y-i);var o=e/ik(yv(u),f);return[o*t(f*n),e-o*r(f*n)]}var o=r(n),f=n===u?t(n):gl(o/r(u))/gl(yv(u)/yv(n)),e=o*ik(yv(n),f)/f;return f?(h.invert=function(n,t){var i=e-t,r=ao(f)*k(n*n+i*i);return[st(n,s(i))/f*ao(i),2*af(ik(e/r,1/f))-y]},h):rs}function us(n,t){return[n,t]}function ght(n,u){function h(n,i){var u=e-i,o=f*n;return[u*t(o),e-u*r(o)]}var o=r(n),f=n===u?t(n):(o-r(u))/(u-n),e=o/f+n;return s(f)<i?us:(h.invert=function(n,t){var i=e-t;return[st(n,s(i))/f*ao(i),e-ao(f)*k(n*n+i*i)]},h)}function kd(n,i){var u=r(i),f=r(n)*u;return[u*t(n)/f,t(i)/f]}function pv(n,t,i,r){return 1===n&&1===t&&0===i&&0===r?vu:ts({point:function(u,f){this.stream.point(u*n+i,f*t+r)}})}function dd(n,t){var i=t*t,r=i*i;return[n*(.8707-.131979*i+r*(r*(.003971*i-.001529*r)-.013791)),t*(1.007226+i*(.015085+r*(.028874*i-.044475-.005916*r)))]}function gd(n,i){return[r(i)*t(n),t(i)]}function ng(n,i){var u=r(i),f=1+r(n)*u;return[u*t(n)/f,t(i)/f]}function tg(n,t){return[gl(rk((y+t)/2)),-n]}function uti(n,t){return n.parent===t.parent?1:2}function fti(n,t){return n+t.x}function eti(n,t){return Math.max(n,t.y)}function oti(n){var t=0,i=n.children,r=i&&i.length;if(r)for(;--r>=0;)t+=i[r].value;else t=1;n.value=t}function ig(n,t){var i,u,f,r,e,o=new ne(n),h=+n.value&&(o.value=n.value),s=[o];for(null==t&&(t=sti);i=s.pop();)if(h&&(i.value=+i.data.value),(f=t(i.data))&&(e=f.length))for(i.children=new Array(e),r=e-1;r>=0;--r)s.push(u=i.children[r]=new ne(f[r])),u.parent=i,u.depth=i.depth+1;return o.eachBefore(nct)}function sti(n){return n.children}function hti(n){n.data=n.data.data}function nct(n){var t=0;do n.height=t;while((n=n.parent)&&n.height<++t)}function ne(n){this.data=n;this.depth=this.height=0;this.parent=null}function ict(n){for(var r,t,i=0,f=(n=function(n){for(var r,i,t=n.length;t;)i=Math.random()*t--|0,r=n[t],n[t]=n[i],n[i]=r;return n}(tct.call(n))).length,u=[];i<f;)r=n[i],t&&rct(t,r)?++i:(t=lti(u=cti(u,r)),i=0);return t}function cti(n,t){var i,r;if(rg(t,n))return[t];for(i=0;i<n.length;++i)if(wv(t,n[i])&&rg(fs(n[i],t),n))return[n[i],t];for(i=0;i<n.length-1;++i)for(r=i+1;r<n.length;++r)if(wv(fs(n[i],n[r]),t)&&wv(fs(n[i],t),n[r])&&wv(fs(n[r],t),n[i])&&rg(uct(n[i],n[r],t),n))return[n[i],n[r],t];throw new Error;}function wv(n,t){var i=n.r-t.r,r=t.x-n.x,u=t.y-n.y;return i<0||i*i<r*r+u*u}function rct(n,t){var i=n.r-t.r+1e-6,r=t.x-n.x,u=t.y-n.y;return i>0&&i*i>r*r+u*u}function rg(n,t){for(var i=0;i<t.length;++i)if(!rct(n,t[i]))return!1;return!0}function lti(n){switch(n.length){case 1:return{x:(t=n[0]).x,y:t.y,r:t.r};case 2:return fs(n[0],n[1]);case 3:return uct(n[0],n[1],n[2])}var t}function fs(n,t){var f=n.x,e=n.y,o=n.r,s=t.x,h=t.y,c=t.r,i=s-f,r=h-e,l=c-o,u=Math.sqrt(i*i+r*r);return{x:(f+s+i/u*l)/2,y:(e+h+r/u*l)/2,r:(u+o+c)/2}}function uct(n,t,i){var u=n.x,f=n.y,r=n.r,a=t.x,v=t.y,y=t.r,p=i.x,w=i.y,b=i.r,k=u-a,d=u-p,g=f-v,nt=f-w,rt=y-r,ut=b-r,ft=u*u+f*f-r*r,et=ft-a*a-v*v+y*y,ot=ft-p*p-w*w+b*b,e=d*g-k*nt,o=(g*ot-nt*et)/(2*e)-u,s=(nt*rt-g*ut)/e,h=(d*et-k*ot)/(2*e)-f,c=(k*ut-d*rt)/e,tt=s*s+c*c-1,l=2*(r+o*s+h*c),st=o*o+h*h-r*r,it=-(tt?(l+Math.sqrt(l*l-4*tt*st))/(2*tt):st/l);return{x:u+o+s*it,y:f+h+c*it,r:it}}function fct(n,t,i){var r,u,e,o,s=n.x-t.x,h=n.y-t.y,f=s*s+h*h;f?(u=t.r+i.r,u*=u,o=n.r+i.r,u>(o*=o)?(r=(f+o-u)/(2*f),e=Math.sqrt(Math.max(0,o/f-r*r)),i.x=n.x-r*s-e*h,i.y=n.y-r*h+e*s):(r=(f+u-o)/(2*f),e=Math.sqrt(Math.max(0,u/f-r*r)),i.x=t.x+r*s-e*h,i.y=t.y+r*h+e*s)):(i.x=t.x+i.r,i.y=t.y)}function ect(n,t){var i=n.r+t.r-1e-6,r=t.x-n.x,u=t.y-n.y;return i>0&&i*i>r*r+u*u}function oct(n){var t=n._,i=n.next._,r=t.r+i.r,u=(t.x*i.r+i.x*t.r)/r,f=(t.y*i.r+i.y*t.r)/r;return u*u+f*f}function bv(n){this._=n;this.next=null;this.previous=null}function sct(n){if(!(o=n.length))return 0;var t,i,r,o,s,l,u,f,e,h,c;if((t=n[0]).x=0,t.y=0,!(o>1))return t.r;if(i=n[1],t.x=-i.r,i.x=t.r,i.y=0,!(o>2))return t.r+i.r;fct(i,t,r=n[2]);t=new bv(t);i=new bv(i);r=new bv(r);t.next=r.previous=i;i.next=t.previous=r;r.next=i.previous=t;n:for(u=3;u<o;++u){fct(t._,i._,r=n[u]);r=new bv(r);f=i.next;e=t.previous;h=i._.r;c=t._.r;do if(h<=c){if(ect(f._,r._)){i=f;t.next=i;i.previous=t;--u;continue n}h+=f._.r;f=f.next}else{if(ect(e._,r._)){(t=e).next=i;i.previous=t;--u;continue n}c+=e._.r;e=e.previous}while(f!==e.next);for(r.previous=t,r.next=i,t.next=i.previous=i=r,s=oct(t);(r=r.next)!==i;)(l=oct(r))<s&&(t=r,s=l);i=t.next}for(t=[i._],r=i;(r=r.next)!==i;)t.push(r._);for(r=ict(t),u=0;u<o;++u)(t=n[u]).x-=r.x,t.y-=r.y;return r.r}function kv(n){if("function"!=typeof n)throw new Error;return n}function pu(){return 0}function te(n){return function(){return n}}function ati(n){return Math.sqrt(n.value)}function hct(n){return function(t){t.children||(t.r=Math.max(0,+n(t)||0))}}function ug(n,t){return function(i){if(u=i.children){var u,r,e,o=u.length,f=n(i)*t||0;if(f)for(r=0;r<o;++r)u[r].r+=f;if(e=sct(u),f)for(r=0;r<o;++r)u[r].r-=f;i.r=e+f}}}function cct(n){return function(t){var i=t.parent;t.r*=n;i&&(t.x=i.x+n*t.x,t.y=i.y+n*t.y)}}function lct(n){n.x0=Math.round(n.x0);n.y0=Math.round(n.y0);n.x1=Math.round(n.x1);n.y1=Math.round(n.y1)}function es(n,t,i,r,u){for(var f,e=n.children,o=-1,s=e.length,h=n.value&&(r-t)/n.value;++o<s;)(f=e[o]).y0=i,f.y1=u,f.x0=t,f.x1=t+=f.value*h}function yti(n){return n.id}function pti(n){return n.parentId}function wti(n,t){return n.parent===t.parent?1:2}function fg(n){var t=n.children;return t?t[0]:n.t}function eg(n){var t=n.children;return t?t[t.length-1]:n.t}function bti(n,t,i){var r=i/(t.i-n.i);t.c-=r;t.s+=i;n.c+=r;t.z+=i;t.m+=i}function kti(n,t,i){return n.a.parent===t.parent?n.a:i}function dv(n,t){this._=n;this.parent=null;this.children=null;this.A=null;this.a=this;this.z=0;this.m=0;this.c=0;this.s=0;this.t=null;this.i=t}function gv(n,t,i,r,u){for(var f,e=n.children,o=-1,s=e.length,h=n.value&&(u-i)/n.value;++o<s;)(f=e[o]).x0=t,f.x1=r,f.y0=i,f.y1=i+=f.value*h}function yct(n,t,i,r,u,f){for(var p,s,l,a,e,v,y,g,b,nt,h,tt=[],w=t.children,k=0,o=0,d=w.length,c=t.value;k<d;){l=u-i;a=f-r;do e=w[o++].value;while(!e&&o<d);for(v=y=e,h=e*e*(nt=Math.max(a/l,l/a)/(c*n)),b=Math.max(y/h,h/v);o<d;++o){if(e+=s=w[o].value,s<v&&(v=s),s>y&&(y=s),h=e*e*nt,(g=Math.max(y/h,h/v))>b){e-=s;break}b=g}tt.push(p={value:e,dice:l<a,children:w.slice(k,o)});p.dice?es(p,i,r,u,c?r+=a*e/c:f):gv(p,i,r,c?i+=l*e/c:u,f);c-=e;k=o}return tt}function dti(n,t){return n[0]-t[0]||n[1]-t[1]}function wct(n){for(var i,f,e,o=n.length,r=[0,1],t=2,u=2;u<o;++u){for(;t>1&&(i=n[r[t-2]],f=n[r[t-1]],e=n[u],(f[0]-i[0])*(e[1]-i[1])-(f[1]-i[1])*(e[0]-i[0])<=0);)--t;r[t++]=u}return r.slice(0,t)}function ie(){return Math.random()}function lg(n){function t(t){var e=t+"",f=i.get(e);if(!f){if(u!==cg)return u;i.set(e,f=r.push(t))}return n[(f-1)%n.length]}var i=ki(),r=[],u=cg;return n=null==n?[]:wr.call(n),t.domain=function(n){if(!arguments.length)return r.slice();r=[];i=ki();for(var u,f,e=-1,o=n.length;++e<o;)i.has(f=(u=n[e])+"")||i.set(f,r.push(u));return t},t.range=function(i){return arguments.length?(n=wr.call(i),t):n.slice()},t.unknown=function(n){return arguments.length?(u=n,t):u},t.copy=function(){return lg().domain(r).range(n).unknown(u)},t}function ag(){function t(){var t=s().length,l=i[1]<i[0],n=i[+l],v=i[1-l],a;return u=(v-n)/Math.max(1,t-r+2*e),f&&(u=Math.floor(u)),n+=(v-n-u*(t-r))*h,o=u*(1-r),f&&(n=Math.round(n),o=Math.round(o)),a=yt(t).map(function(t){return n+u*t}),c(l?a.reverse():a)}var u,o,n=lg().unknown(void 0),s=n.domain,c=n.range,i=[0,1],f=!1,r=0,e=0,h=.5;return delete n.unknown,n.domain=function(n){return arguments.length?(s(n),t()):s()},n.range=function(n){return arguments.length?(i=[+n[0],+n[1]],t()):i.slice()},n.rangeRound=function(n){return i=[+n[0],+n[1]],f=!0,t()},n.bandwidth=function(){return o},n.step=function(){return u},n.round=function(n){return arguments.length?(f=!!n,t()):f},n.padding=function(n){return arguments.length?(r=e=Math.max(0,Math.min(1,n)),t()):r},n.paddingInner=function(n){return arguments.length?(r=Math.max(0,Math.min(1,n)),t()):r},n.paddingOuter=function(n){return arguments.length?(e=Math.max(0,Math.min(1,n)),t()):e},n.align=function(n){return arguments.length?(h=Math.max(0,Math.min(1,n)),t()):h},n.copy=function(){return ag().domain(s()).range(i).round(f).paddingInner(r).paddingOuter(e).align(h)},t()}function vg(n){return function(){return n}}function gct(n){return+n}function pg(n,t){return(t-=n=+n)?function(i){return(i-n)/t}:vg(t)}function rii(n,t,i,r){var u=n[0],e=n[1],f=t[0],o=t[1];return e<u?(u=i(e,u),f=r(o,f)):(u=i(u,e),f=r(f,o)),function(n){return f(u(n))}}function uii(n,t,i,r){var f=Math.min(n.length,t.length)-1,e=new Array(f),o=new Array(f),u=-1;for(n[f]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++u<f;)e[u]=i(n[u],n[u+1]),o[u]=r(t[u],t[u+1]);return function(t){var i=nu(n,t,1,f)-1;return o[i](e[i](t))}}function ny(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp())}function ty(n,t){function u(){return s=Math.min(f.length,r.length)>2?uii:rii,h=c=null,i}function i(t){return(h||(h=s(f,r,o?function(n){return function(t,i){var r=n(t=+t,i=+i);return function(n){return n<=t?0:n>=i?1:r(n)}}}(n):n,e)))(+t)}var s,h,c,f=yg,r=yg,e=ge,o=!1;return i.invert=function(n){return(c||(c=s(r,f,pg,o?function(n){return function(t,i){var r=n(t=+t,i=+i);return function(n){return n<=0?t:n>=1?i:r(n)}}}(t):t)))(+n)},i.domain=function(n){return arguments.length?(f=hg.call(n,gct),u()):f.slice()},i.range=function(n){return arguments.length?(r=wr.call(n),u()):r.slice()},i.rangeRound=function(n){return r=wr.call(n),e=srt,u()},i.clamp=function(n){return arguments.length?(o=!!n,u()):o},i.interpolate=function(n){return arguments.length?(e=n,u()):e},u()}function re(t){var i=t.domain;return t.ticks=function(n){var t=i();return fp(t[0],t[t.length-1],null==n?10:n)},t.tickFormat=function(t,r){return function(t,i,r){var u,f=t[0],e=t[t.length-1],o=tu(f,e,null==i?10:i),s;switch((r=co(null==r?",f":r)).type){case"s":return s=Math.max(Math.abs(f),Math.abs(e)),null!=r.precision||isNaN(u=wet(o,s))||(r.precision=u),n.formatPrefix(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(u=bet(o,Math.max(Math.abs(f),Math.abs(e))))||(r.precision=u-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(u=pet(o))||(r.precision=u-2*("%"===r.type))}return n.format(r)}(i(),t,r)},t.nice=function(n){null==n&&(n=10);var r,e=i(),o=0,s=e.length-1,u=e[o],f=e[s];return f<u&&(r=u,u=f,f=r,r=o,o=s,s=r),(r=ae(u,f,n))>0?r=ae(u=Math.floor(u/r)*r,f=Math.ceil(f/r)*r,n):r<0&&(r=ae(u=Math.ceil(u*r)/r,f=Math.floor(f*r)/r,n)),r>0?(e[o]=Math.floor(u/r)*r,e[s]=Math.ceil(f/r)*r,i(e)):r<0&&(e[o]=Math.ceil(u*r)/r,e[s]=Math.floor(f*r)/r,i(e)),t},t}function nlt(n,t){var i,r=0,u=(n=n.slice()).length-1,f=n[r],e=n[u];return e<f&&(i=r,r=u,u=i,i=f,f=e,e=i),n[r]=t.floor(f),n[u]=t.ceil(e),n}function fii(n,t){return(t=Math.log(t/n))?function(i){return Math.log(i/n)/t}:vg(t)}function eii(n,t){return n<0?function(i){return-Math.pow(-t,i)*Math.pow(-n,1-i)}:function(i){return Math.pow(t,i)*Math.pow(n,1-i)}}function oii(n){return isFinite(n)?+("1e"+n):n<0?0:n}function tlt(n){return 10===n?oii:n===Math.E?Math.exp:function(t){return Math.pow(n,t)}}function ilt(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),function(t){return Math.log(t)/n})}function rlt(n){return function(t){return-n(-t)}}function ue(n,t){return n<0?-Math.pow(-n,t):Math.pow(n,t)}function wg(){var n=1,t=ty(function(t,i){return(i=ue(i,n)-(t=ue(t,n)))?function(r){return(ue(r,n)-t)/i}:vg(i)},function(t,i){return i=ue(i,n)-(t=ue(t,n)),function(r){return ue(t+i*r,1/n)}}),i=t.domain;return t.exponent=function(t){return arguments.length?(n=+t,i(i())):n},t.copy=function(){return ny(t,wg().exponent(n))},re(t)}function d(n,t,i,r){function u(t){return n(t=new Date(+t)),t}return u.floor=u,u.ceil=function(i){return n(i=new Date(i-1)),t(i,1),n(i),i},u.round=function(n){var t=u(n),i=u.ceil(n);return n-t<i-n?t:i},u.offset=function(n,i){return t(n=new Date(+n),null==i?1:Math.floor(i)),n},u.range=function(i,r,f){var o,e=[];if(i=u.ceil(i),f=null==f?1:Math.floor(f),!(i<r&&f>0))return e;do e.push(o=new Date(+i)),t(i,f),n(i);while(o<i&&i<r);return e},u.filter=function(i){return d(function(t){if(t>=t)for(;n(t),!i(t);)t.setTime(t-1)},function(n,r){if(n>=n)if(r<0)for(;++r<=0;)for(;t(n,-1),!i(n););else for(;--r>=0;)for(;t(n,1),!i(n););})},i&&(u.count=function(t,r){return iy.setTime(+t),ry.setTime(+r),n(iy),n(ry),Math.floor(i(iy,ry))},u.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?u.filter(r?function(t){return r(t)%n==0}:function(t){return u.count(0,t)%n==0}):u:null}),u}function wu(n){return d(function(t){t.setDate(t.getDate()-(t.getDay()+7-n)%7);t.setHours(0,0,0,0)},function(n,t){n.setDate(n.getDate()+7*t)},function(n,t){return(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*tr)/flt})}function bu(n){return d(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-n)%7);t.setUTCHours(0,0,0,0)},function(n,t){n.setUTCDate(n.getUTCDate()+7*t)},function(n,t){return(t-n)/flt})}function sri(n){if(0<=n.y&&n.y<100){var t=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return t.setFullYear(n.y),t}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function uy(n){if(0<=n.y&&n.y<100){var t=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return t.setUTCFullYear(n.y),t}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function ws(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function klt(n){function t(n,t){return function(i){var u,e,s,f=[],r=-1,o=0,h=n.length;for(i instanceof Date||(i=new Date(+i));++r<h;)37===n.charCodeAt(r)&&(f.push(n.slice(o,r)),null!=(e=dlt[u=n.charAt(++r)])?u=n.charAt(++r):e="e"===u?" ":"0",(s=t[u])&&(u=s(i,e)),f.push(u),o=r+1);return f.push(n.slice(o,r)),f.join("")}}function v(n,t){return function(i){var u,f,r=ws(1900);if(h(r,n,i+="",0)!=i.length)return null;if("Q"in r)return new Date(r.Q);if("p"in r&&(r.H=r.H%12+12*r.p),"V"in r){if(r.V<1||r.V>53)return null;"w"in r||(r.w=1);"Z"in r?(f=(u=uy(ws(r.y))).getUTCDay(),u=f>4||0===f?ys.ceil(u):ys(u),u=as.offset(u,7*(r.V-1)),r.y=u.getUTCFullYear(),r.m=u.getUTCMonth(),r.d=u.getUTCDate()+(r.w+6)%7):(f=(u=t(ws(r.y))).getDay(),u=f>4||0===f?cs.ceil(u):cs(u),u=ss.offset(u,7*(r.V-1)),r.y=u.getFullYear(),r.m=u.getMonth(),r.d=u.getDate()+(r.w+6)%7)}else("W"in r||"U"in r)&&("w"in r||(r.w="u"in r?r.u%7:"W"in r?1:0),f="Z"in r?uy(ws(r.y)).getUTCDay():t(ws(r.y)).getDay(),r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(f+5)%7:r.w+7*r.U-(f+6)%7);return"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,uy(r)):t(r)}}function h(n,t,i,r){for(var u,e,f=0,o=t.length,s=i.length;f<o;){if(r>=s)return-1;if(37===(u=t.charCodeAt(f++))){if(u=t.charAt(f++),!(e=rt[u in dlt?t.charAt(f++):u])||(r=e(n,i,r))<0)return-1}else if(u!=i.charCodeAt(r++))return-1}return r}var c=n.dateTime,l=n.date,a=n.time,u=n.periods,f=n.days,e=n.shortDays,o=n.months,s=n.shortMonths,y=bs(u),p=ks(u),w=bs(f),b=ks(f),k=bs(e),d=ks(e),g=bs(o),nt=ks(o),tt=bs(s),it=ks(s),i={a:function(n){return e[n.getDay()]},A:function(n){return f[n.getDay()]},b:function(n){return s[n.getMonth()]},B:function(n){return o[n.getMonth()]},c:null,d:tat,e:tat,f:lui,H:sui,I:hui,j:cui,L:iat,m:aui,M:vui,p:function(n){return u[+(n.getHours()>=12)]},Q:eat,s:oat,S:yui,u:pui,U:wui,V:bui,w:kui,W:dui,x:null,X:null,y:gui,Y:nfi,Z:tfi,"%":fat},r={a:function(n){return e[n.getUTCDay()]},A:function(n){return f[n.getUTCDay()]},b:function(n){return s[n.getUTCMonth()]},B:function(n){return o[n.getUTCMonth()]},c:null,d:rat,e:rat,f:ffi,H:ifi,I:rfi,j:ufi,L:uat,m:efi,M:ofi,p:function(n){return u[+(n.getUTCHours()>=12)]},Q:eat,s:oat,S:sfi,u:hfi,U:cfi,V:lfi,w:afi,W:vfi,x:null,X:null,y:yfi,Y:pfi,Z:wfi,"%":fat},rt={a:function(n,t,i){var r=k.exec(t.slice(i));return r?(n.w=d[r[0].toLowerCase()],i+r[0].length):-1},A:function(n,t,i){var r=w.exec(t.slice(i));return r?(n.w=b[r[0].toLowerCase()],i+r[0].length):-1},b:function(n,t,i){var r=tt.exec(t.slice(i));return r?(n.m=it[r[0].toLowerCase()],i+r[0].length):-1},B:function(n,t,i){var r=g.exec(t.slice(i));return r?(n.m=nt[r[0].toLowerCase()],i+r[0].length):-1},c:function(n,t,i){return h(n,c,t,i)},d:glt,e:glt,f:uui,H:nat,I:nat,j:nui,L:rui,m:gri,M:tui,p:function(n,t,i){var r=y.exec(t.slice(i));return r?(n.p=p[r[0].toLowerCase()],i+r[0].length):-1},Q:eui,s:oui,S:iui,u:vri,U:yri,V:pri,w:ari,W:wri,x:function(n,t,i){return h(n,l,t,i)},X:function(n,t,i){return h(n,a,t,i)},y:kri,Y:bri,Z:dri,"%":fui};return i.x=t(l,i),i.X=t(a,i),i.c=t(c,i),r.x=t(l,r),r.X=t(a,r),r.c=t(c,r),{format:function(n){var r=t(n+="",i);return r.toString=function(){return n},r},parse:function(n){var t=v(n+="",sri);return t.toString=function(){return n},t},utcFormat:function(n){var i=t(n+="",r);return i.toString=function(){return n},i},utcParse:function(n){var t=v(n,uy);return t.toString=function(){return n},t}}}function c(n,t,i){var u=n<0?"-":"",r=(u?-n:n)+"",f=r.length;return u+(f<i?new Array(i-f+1).join(t)+r:r)}function lri(n){return n.replace(cri,"\\$&")}function bs(n){return new RegExp("^(?:"+n.map(lri).join("|")+")","i")}function ks(n){for(var i={},t=-1,r=n.length;++t<r;)i[n[t].toLowerCase()]=t;return i}function ari(n,t,i){var r=tt.exec(t.slice(i,i+1));return r?(n.w=+r[0],i+r[0].length):-1}function vri(n,t,i){var r=tt.exec(t.slice(i,i+1));return r?(n.u=+r[0],i+r[0].length):-1}function yri(n,t,i){var r=tt.exec(t.slice(i,i+2));return r?(n.U=+r[0],i+r[0].length):-1}function pri(n,t,i){var r=tt.exec(t.slice(i,i+2));return r?(n.V=+r[0],i+r[0].length):-1}function wri(n,t,i){var r=tt.exec(t.slice(i,i+2));return r?(n.W=+r[0],i+r[0].length):-1}function bri(n,t,i){var r=tt.exec(t.slice(i,i+4));return r?(n.y=+r[0],i+r[0].length):-1}function kri(n,t,i){var r=tt.exec(t.slice(i,i+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),i+r[0].length):-1}function dri(n,t,i){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(i,i+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),i+r[0].length):-1}function gri(n,t,i){var r=tt.exec(t.slice(i,i+2));return r?(n.m=r[0]-1,i+r[0].length):-1}function glt(n,t,i){var r=tt.exec(t.slice(i,i+2));return r?(n.d=+r[0],i+r[0].length):-1}function nui(n,t,i){var r=tt.exec(t.slice(i,i+3));return r?(n.m=0,n.d=+r[0],i+r[0].length):-1}function nat(n,t,i){var r=tt.exec(t.slice(i,i+2));return r?(n.H=+r[0],i+r[0].length):-1}function tui(n,t,i){var r=tt.exec(t.slice(i,i+2));return r?(n.M=+r[0],i+r[0].length):-1}function iui(n,t,i){var r=tt.exec(t.slice(i,i+2));return r?(n.S=+r[0],i+r[0].length):-1}function rui(n,t,i){var r=tt.exec(t.slice(i,i+3));return r?(n.L=+r[0],i+r[0].length):-1}function uui(n,t,i){var r=tt.exec(t.slice(i,i+6));return r?(n.L=Math.floor(r[0]/1e3),i+r[0].length):-1}function fui(n,t,i){var r=hri.exec(t.slice(i,i+1));return r?i+r[0].length:-1}function eui(n,t,i){var r=tt.exec(t.slice(i));return r?(n.Q=+r[0],i+r[0].length):-1}function oui(n,t,i){var r=tt.exec(t.slice(i));return r?(n.Q=1e3*+r[0],i+r[0].length):-1}function tat(n,t){return c(n.getDate(),t,2)}function sui(n,t){return c(n.getHours(),t,2)}function hui(n,t){return c(n.getHours()%12||12,t,2)}function cui(n,t){return c(1+ss.count(ir(n),n),t,3)}function iat(n,t){return c(n.getMilliseconds(),t,3)}function lui(n,t){return iat(n,t)+"000"}function aui(n,t){return c(n.getMonth()+1,t,2)}function vui(n,t){return c(n.getMinutes(),t,2)}function yui(n,t){return c(n.getSeconds(),t,2)}function pui(n){var t=n.getDay();return 0===t?7:t}function wui(n,t){return c(hs.count(ir(n),n),t,2)}function bui(n,t){var i=n.getDay();return n=i>=4||0===i?ls(n):ls.ceil(n),c(ls.count(ir(n),n)+(4===ir(n).getDay()),t,2)}function kui(n){return n.getDay()}function dui(n,t){return c(cs.count(ir(n),n),t,2)}function gui(n,t){return c(n.getFullYear()%100,t,2)}function nfi(n,t){return c(n.getFullYear()%1e4,t,4)}function tfi(n){var t=n.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+c(t/60|0,"0",2)+c(t%60,"0",2)}function rat(n,t){return c(n.getUTCDate(),t,2)}function ifi(n,t){return c(n.getUTCHours(),t,2)}function rfi(n,t){return c(n.getUTCHours()%12||12,t,2)}function ufi(n,t){return c(1+as.count(rr(n),n),t,3)}function uat(n,t){return c(n.getUTCMilliseconds(),t,3)}function ffi(n,t){return uat(n,t)+"000"}function efi(n,t){return c(n.getUTCMonth()+1,t,2)}function ofi(n,t){return c(n.getUTCMinutes(),t,2)}function sfi(n,t){return c(n.getUTCSeconds(),t,2)}function hfi(n){var t=n.getUTCDay();return 0===t?7:t}function cfi(n,t){return c(vs.count(rr(n),n),t,2)}function lfi(n,t){var i=n.getUTCDay();return n=i>=4||0===i?ps(n):ps.ceil(n),c(ps.count(rr(n),n)+(4===rr(n).getUTCDay()),t,2)}function afi(n){return n.getUTCDay()}function vfi(n,t){return c(ys.count(rr(n),n),t,2)}function yfi(n,t){return c(n.getUTCFullYear()%100,t,2)}function pfi(n,t){return c(n.getUTCFullYear()%1e4,t,4)}function wfi(){return"+0000"}function fat(){return"%"}function eat(n){return+n}function oat(n){return Math.floor(+n/1e3)}function sat(t){return fe=klt(t),n.timeFormat=fe.format,n.timeParse=fe.parse,n.utcFormat=fe.utcFormat,n.utcParse=fe.utcParse,fe}function gfi(n){return new Date(n)}function nei(n){return n instanceof Date?+n:+new Date(+n)}function un(n,t,i,r,u,f,e,o,s){function tt(o){return(e(o)<o?y:f(o)<o?p:u(o)<o?w:r(o)<o?b:t(o)<o?i(o)<o?k:d:n(o)<o?g:nt)(o)}function a(t,i,r,u){if(null==t&&(t=10),"number"==typeof t){var e=Math.abs(r-i)/t,f=np(function(n){return n[2]}).right(l,e);f===l.length?(u=tu(i/rn,r/rn,t),t=n):f?(u=(f=l[e/l[f-1][2]<l[f][2]/e?f-1:f])[1],t=f[0]):(u=Math.max(tu(i,r,t),1),t=o)}return null==u?t:t.every(u)}var h=ty(pg,pt),v=h.invert,c=h.domain,y=s(".%L"),p=s(":%S"),w=s("%I:%M"),b=s("%I %p"),k=s("%a %d"),d=s("%b %d"),g=s("%B"),nt=s("%Y"),l=[[e,1,ds],[e,5,5*ds],[e,15,15*ds],[e,30,30*ds],[f,1,gs],[f,5,5*gs],[f,15,15*gs],[f,30,30*gs],[u,1,nh],[u,3,3*nh],[u,6,6*nh],[u,12,12*nh],[r,1,th],[r,2,2*th],[i,1,dfi],[t,1,hat],[t,3,3*hat],[n,1,rn]];return h.invert=function(n){return new Date(v(n))},h.domain=function(n){return arguments.length?c(hg.call(n,nei)):c().map(gfi)},h.ticks=function(n,t){var i,f=c(),r=f[0],u=f[f.length-1],e=u<r;return e&&(i=r,r=u,u=i),i=(i=a(n,r,u,t))?i.range(r,u+1):[],e?i.reverse():i},h.tickFormat=function(n,t){return null==t?tt:s(t)},h.nice=function(n,t){var i=c();return(n=a(n,i[0],i[i.length-1],t))?c(nlt(i,n)):h},h.copy=function(){return ny(h,un(n,t,i,r,u,f,e,o,s))},h}function f(n){for(var i=n.length/6|0,r=new Array(i),t=0;t<i;)r[t]="#"+n.slice(6*t,6*++t);return r}function l(n){return cw(n[n.length-1])}function oy(n){var t=n.length;return function(i){return n[Math.max(0,Math.min(t-1,Math.floor(i*t)))]}}function e(n){return function(){return n}}function bvt(n){return n>=1?sy:n<=-1?-sy:Math.asin(n)}function fsi(n){return n.innerRadius}function esi(n){return n.outerRadius}function osi(n){return n.startAngle}function ssi(n){return n.endAngle}function hsi(n){return n&&n.padAngle}function hy(n,t,i,r,u,f,e){var p=n-i,w=t-r,it=(e?f:-f)/ee(p*p+w*w),b=it*w,k=-it*p,d=n+b,g=t+k,nt=i+b,tt=r+k,rt=(d+nt)/2,ut=(g+tt)/2,s=nt-d,o=tt-g,c=s*s+o*o,l=u-f,h=d*tt-nt*g,a=(o<0?-1:1)*ee(usi(0,l*l*c-h*h)),v=(h*o-s*a)/c,y=(-h*s-o*a)/c,ft=(h*o+s*a)/c,et=(-h*s+o*a)/c,ot=v-rt,st=y-ut,ht=ft-rt,ct=et-ut;return ot*ot+st*st>ht*ht+ct*ct&&(v=ft,y=et),{cx:v,cy:y,x01:-b,y01:-k,x11:v*(u/l-1),y11:y*(u/l-1)}}function kvt(n){this._context=n}function cy(n){return new kvt(n)}function en(n){return n[0]}function on(n){return n[1]}function sn(){function n(n){var e,h,c,l=n.length,s=!1;for(null==i&&(t=r(c=cr())),e=0;e<=l;++e)!(e<l&&o(h=n[e],e,n))===s&&((s=!s)?t.lineStart():t.lineEnd()),s&&t.point(+u(h,e,n),+f(h,e,n));if(c)return t=null,c+""||null}var u=en,f=on,o=e(!0),i=null,r=cy,t=null;return n.x=function(t){return arguments.length?(u="function"==typeof t?t:e(+t),n):u},n.y=function(t){return arguments.length?(f="function"==typeof t?t:e(+t),n):f},n.defined=function(t){return arguments.length?(o="function"==typeof t?t:e(!!t),n):o},n.curve=function(u){return arguments.length?(r=u,null!=i&&(t=r(i)),n):r},n.context=function(u){return arguments.length?(null==u?i=t=null:t=r(i=u),n):i},n}function dvt(){function n(n){var e,b,c,l,y,a=n.length,v=!1,p=new Array(a),w=new Array(a);for(null==u&&(t=s(y=cr())),e=0;e<=a;++e){if(!(e<a&&h(l=n[e],e,n))===v)if(v=!v)b=e,t.areaStart(),t.lineStart();else{for(t.lineEnd(),t.lineStart(),c=e-1;c>=b;--c)t.point(p[c],w[c]);t.lineEnd();t.areaEnd()}v&&(p[e]=+i(l,e,n),w[e]=+r(l,e,n),t.point(f?+f(l,e,n):p[e],o?+o(l,e,n):w[e]))}if(y)return t=null,y+""||null}function c(){return sn().defined(h).curve(s).context(u)}var i=en,f=null,r=e(0),o=on,h=e(!0),u=null,s=cy,t=null;return n.x=function(t){return arguments.length?(i="function"==typeof t?t:e(+t),f=null,n):i},n.x0=function(t){return arguments.length?(i="function"==typeof t?t:e(+t),n):i},n.x1=function(t){return arguments.length?(f=null==t?null:"function"==typeof t?t:e(+t),n):f},n.y=function(t){return arguments.length?(r="function"==typeof t?t:e(+t),o=null,n):r},n.y0=function(t){return arguments.length?(r="function"==typeof t?t:e(+t),n):r},n.y1=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:e(+t),n):o},n.lineX0=n.lineY0=function(){return c().x(i).y(r)},n.lineY1=function(){return c().x(i).y(o)},n.lineX1=function(){return c().x(f).y(r)},n.defined=function(t){return arguments.length?(h="function"==typeof t?t:e(!!t),n):h},n.curve=function(i){return arguments.length?(s=i,null!=u&&(t=s(u)),n):s},n.context=function(i){return arguments.length?(null==i?u=t=null:t=s(u=i),n):u},n}function csi(n,t){return t<n?-1:t>n?1:t>=n?0:NaN}function lsi(n){return n}function gvt(n){this._curve=n}function cn(n){function t(t){return new gvt(n(t))}return t._curve=n,t}function ih(n){var t=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(n){return arguments.length?t(cn(n)):t()._curve},n}function nyt(){return ih(sn().curve(hn))}function tyt(){var n=dvt().curve(hn),t=n.curve,i=n.lineX0,r=n.lineX1,u=n.lineY0,f=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return ih(i())},delete n.lineX0,n.lineEndAngle=function(){return ih(r())},delete n.lineX1,n.lineInnerRadius=function(){return ih(u())},delete n.lineY0,n.lineOuterRadius=function(){return ih(f())},delete n.lineY1,n.curve=function(n){return arguments.length?t(cn(n)):t()._curve},n}function rh(n,t){return[(t=+t)*Math.cos(n-=Math.PI/2),t*Math.sin(n)]}function asi(n){return n.source}function vsi(n){return n.target}function ln(n){function t(){var e,t=ly.call(arguments),s=f.apply(this,t),h=o.apply(this,t);if(i||(i=e=cr()),n(i,+r.apply(this,(t[0]=s,t)),+u.apply(this,t),+r.apply(this,(t[0]=h,t)),+u.apply(this,t)),e)return i=null,e+""||null}var f=asi,o=vsi,r=en,u=on,i=null;return t.source=function(n){return arguments.length?(f=n,t):f},t.target=function(n){return arguments.length?(o=n,t):o},t.x=function(n){return arguments.length?(r="function"==typeof n?n:e(+n),t):r},t.y=function(n){return arguments.length?(u="function"==typeof n?n:e(+n),t):u},t.context=function(n){return arguments.length?(i=null==n?null:n,t):i},t}function ysi(n,t,i,r,u){n.moveTo(t,i);n.bezierCurveTo(t=(t+r)/2,i,t,u,r,u)}function psi(n,t,i,r,u){n.moveTo(t,i);n.bezierCurveTo(t,i=(i+u)/2,r,i,r,u)}function wsi(n,t,i,r,u){var f=rh(t,i),e=rh(t,i=(i+u)/2),o=rh(r,i),s=rh(r,u);n.moveTo(f[0],f[1]);n.bezierCurveTo(e[0],e[1],o[0],o[1],s[0],s[1])}function gr(){}function ay(n,t,i){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+t)/6,(n._y0+4*n._y1+i)/6)}function vy(n){this._context=n}function cyt(n){this._context=n}function lyt(n){this._context=n}function ayt(n,t){this._basis=new vy(n);this._beta=t}function yy(n,t,i){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-t),n._y2+n._k*(n._y1-i),n._x2,n._y2)}function pn(n,t){this._context=n;this._k=(1-t)/6}function wn(n,t){this._context=n;this._k=(1-t)/6}function bn(n,t){this._context=n;this._k=(1-t)/6}function kn(n,t,i){var r=n._x1,u=n._y1,f=n._x2,e=n._y2,o,s,h,c;n._l01_a>ut&&(o=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,s=3*n._l01_a*(n._l01_a+n._l12_a),r=(r*o-n._x0*n._l12_2a+n._x2*n._l01_2a)/s,u=(u*o-n._y0*n._l12_2a+n._y2*n._l01_2a)/s);n._l23_a>ut&&(h=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,c=3*n._l23_a*(n._l23_a+n._l12_a),f=(f*h+n._x1*n._l23_2a-t*n._l12_2a)/c,e=(e*h+n._y1*n._l23_2a-i*n._l12_2a)/c);n._context.bezierCurveTo(r,u,f,e,n._x2,n._y2)}function byt(n,t){this._context=n;this._alpha=t}function dyt(n,t){this._context=n;this._alpha=t}function npt(n,t){this._context=n;this._alpha=t}function ipt(n){this._context=n}function rpt(n){return n<0?-1:1}function upt(n,t,i){var r=n._x1-n._x0,u=t-n._x1,f=(n._y1-n._y0)/(r||u<0&&-0),e=(i-n._y1)/(u||r<0&&-0),o=(f*u+e*r)/(r+u);return(rpt(f)+rpt(e))*Math.min(Math.abs(f),Math.abs(e),.5*Math.abs(o))||0}function fpt(n,t){var i=n._x1-n._x0;return i?(3*(n._y1-n._y0)/i-t)/2:t}function dn(n,t,i){var f=n._x0,o=n._y0,u=n._x1,e=n._y1,r=(u-f)/3;n._context.bezierCurveTo(f+r,o+r*t,u-r,e-r*i,u,e)}function py(n){this._context=n}function ept(n){this._context=new opt(n)}function opt(n){this._context=n}function spt(n){this._context=n}function hpt(n){var t,e,i=n.length-1,r=new Array(i),u=new Array(i),f=new Array(i);for(r[0]=0,u[0]=2,f[0]=n[0]+2*n[1],t=1;t<i-1;++t)r[t]=1,u[t]=4,f[t]=4*n[t]+2*n[t+1];for(r[i-1]=2,u[i-1]=7,f[i-1]=8*n[i-1]+n[i],t=1;t<i;++t)e=r[t]/u[t-1],u[t]-=e,f[t]-=e*f[t-1];for(r[i-1]=f[i-1]/u[i-1],t=i-2;t>=0;--t)r[t]=(f[t]-r[t+1])/u[t];for(u[i-1]=(n[i]+r[i-1])/2,t=0;t<i-1;++t)u[t]=2*n[t+1]-r[t+1];return[r,u]}function wy(n,t){this._context=n;this._t=t}function oe(n,t){if((e=n.length)>1)for(var i,u,e,f=1,r=n[t[0]],o=r.length;f<e;++f)for(u=r,r=n[t[f]],i=0;i<o;++i)r[i][1]+=r[i][0]=isNaN(u[i][1])?u[i][0]:u[i][1]}function se(n){for(var t=n.length,i=new Array(t);--t>=0;)i[t]=t;return i}function thi(n,t){return n[t]}function cpt(n){var t=n.map(lpt);return se(n).sort(function(n,i){return t[n]-t[i]})}function lpt(n){for(var t,i=0,r=-1,u=n.length;++r<u;)(t=+n[r][1])&&(i+=t);return i}function apt(n){return function(){return n}}function ihi(n){return n[0]}function rhi(n){return n[1]}function by(){this._=null}function ky(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function uh(n,t){var i=t,r=t.R,u=i.U;u?u.L===i?u.L=r:u.R=r:n._=r;r.U=u;i.U=r;i.R=r.L;i.R&&(i.R.U=i);r.L=i}function fh(n,t){var i=t,r=t.L,u=i.U;u?u.L===i?u.L=r:u.R=r:n._=r;r.U=u;i.U=r;i.L=r.R;i.L&&(i.L.U=i);r.R=i}function vpt(n){for(;n.L;)n=n.L;return n}function eh(n,t,i,r){var u=[null,null],f=ft.push(u)-1;return u.left=n,u.right=t,i&&dy(u,n,t,i),r&&dy(u,t,n,r),dt[n.index].halfedges.push(f),dt[t.index].halfedges.push(f),u}function oh(n,t,i){var r=[t,i];return r.left=n,r}function dy(n,t,i,r){n[0]||n[1]?n.left===i?n[1]=r:n[0]=r:(n[0]=r,n.left=t,n.right=i)}function uhi(n,t,i,r,u){var f,a=n[0],v=n[1],c=a[0],l=a[1],e=0,o=1,s=v[0]-c,h=v[1]-l;if(f=t-c,s||!(f>0)){if(f/=s,s<0){if(f<e)return;f<o&&(o=f)}else if(s>0){if(f>o)return;f>e&&(e=f)}if(f=r-c,s||!(f<0)){if(f/=s,s<0){if(f>o)return;f>e&&(e=f)}else if(s>0){if(f<e)return;f<o&&(o=f)}if(f=i-l,h||!(f>0)){if(f/=h,h<0){if(f<e)return;f<o&&(o=f)}else if(h>0){if(f>o)return;f>e&&(e=f)}if(f=u-l,h||!(f<0)){if(f/=h,h<0){if(f>o)return;f>e&&(e=f)}else if(h>0){if(f<e)return;f<o&&(o=f)}return!(e>0||o<1)||(e>0&&(n[0]=[c+e*s,l+e*h]),o<1&&(n[1]=[c+o*s,l+o*h]),!0)}}}}}function fhi(n,t,i,r,u){var s=n[1];if(s)return!0;var e,o,f=n[0],y=n.left,p=n.right,c=y[0],l=y[1],a=p[0],v=p[1],h=(c+a)/2,w=(l+v)/2;if(v===l){if(h<t||h>=r)return;if(c>a){if(f){if(f[1]>=u)return}else f=[h,i];s=[h,u]}else{if(f){if(f[1]<i)return}else f=[h,u];s=[h,i]}}else if(o=w-(e=(c-a)/(v-l))*h,e<-1||e>1)if(c>a){if(f){if(f[1]>=u)return}else f=[(i-o)/e,i];s=[(u-o)/e,u]}else{if(f){if(f[1]<i)return}else f=[(u-o)/e,u];s=[(i-o)/e,i]}else if(l<v){if(f){if(f[0]>=r)return}else f=[t,e*t+o];s=[r,e*r+o]}else{if(f){if(f[0]<t)return}else f=[r,e*r+o];s=[t,e*t+o]}return n[0]=f,n[1]=s,!0}function ehi(n,t){var u=n.site,i=t.left,r=t.right;return u===r&&(r=i,i=u),r?Math.atan2(r[1]-i[1],r[0]-i[0]):(u===i?(i=t[1],r=t[0]):(i=t[0],r=t[1]),Math.atan2(i[0]-r[0],r[1]-i[1]))}function ypt(n,t){return t[+(t.left!==n.site)]}function ohi(n,t){return t[+(t.left===n.site)]}function shi(){ky(this);this.x=this.y=this.arc=this.site=this.cy=null}function he(n){var w=n.P,b=n.N,r,t;if(w&&b){var s=w.site,h=n.site,c=b.site;if(s!==c){var l=h[0],a=h[1],u=s[0]-l,f=s[1]-a,e=c[0]-l,o=c[1]-a,v=2*(u*o-f*e);if(!(v>=-bpt)){var k=u*u+f*f,d=e*e+o*o,y=(o*k-f*d)/v,p=(u*d-e*k)/v,i=ntt.pop()||new shi;for(i.arc=n,i.site=h,i.x=y+l,i.y=(i.cy=p+a)+Math.sqrt(y*y+p*p),n.circle=i,r=null,t=sh._;t;)if(i.y<t.y||i.y===t.y&&i.x<=t.x){if(!t.L){r=t.P;break}t=t.L}else{if(!t.R){r=t;break}t=t.R}sh.insert(r,i);r||(gn=i)}}}}function ce(n){var t=n.circle;t&&(t.P||(gn=t.N),sh.remove(t),ntt.push(t),ky(t),n.circle=null)}function hhi(){ky(this);this.edge=this.site=this.circle=null}function ppt(n){var t=ttt.pop()||new hhi;return t.site=n,t}function itt(n){ce(n);le.remove(n);ttt.push(n);ky(n)}function chi(n){var l=n.circle,f=l.x,e=l.cy,a=[f,e],o=n.P,s=n.N,r=[n],i,t,u,c;for(itt(n),i=o;i.circle&&Math.abs(f-i.circle.x)<h&&Math.abs(e-i.circle.cy)<h;)o=i.P,r.unshift(i),itt(i),i=o;for(r.unshift(i),ce(i),t=s;t.circle&&Math.abs(f-t.circle.x)<h&&Math.abs(e-t.circle.cy)<h;)s=t.N,r.push(t),itt(t),t=s;for(r.push(t),ce(t),c=r.length,u=1;u<c;++u)t=r[u],i=r[u-1],dy(t.edge,i.site,t.site,a);i=r[0];(t=r[c-1]).edge=eh(i.site,t.site,null,a);he(i);he(t)}function lhi(n){for(var u,t,i,p,w,b=n[0],k=n[1],r=le._;r;)if((p=wpt(r,k)-b)>h)r=r.L;else{if(!((w=b-ahi(r,k))>h)){p>-h?(t=r.P,i=r):w>-h?(t=r,i=r.N):t=i=r;break}if(!r.R){t=r;break}r=r.R}if(!function(n){dt[n.index]={site:n,halfedges:[]}}(n),u=ppt(n),le.insert(t,u),t||i){if(t===i)return ce(t),i=ppt(t.site),le.insert(u,i),u.edge=i.edge=eh(t.site,u.site),he(t),void he(i);if(i){ce(t);ce(i);var f=t.site,a=f[0],v=f[1],e=n[0]-a,o=n[1]-v,s=i.site,c=s[0]-a,l=s[1]-v,d=2*(e*l-o*c),g=e*e+o*o,nt=c*c+l*l,y=[(l*g-o*nt)/d+a,(e*nt-c*g)/d+v];dy(i.edge,f,s,y);u.edge=eh(f,n,null,y);i.edge=eh(n,s,null,y);he(t);he(i)}else u.edge=eh(t.site,u.site)}}function wpt(n,t){var r=n.site,u=r[0],l=r[1],f=l-t,e;if(!f)return u;if(e=n.P,!e)return-1/0;var o=(r=e.site)[0],a=r[1],i=a-t;if(!i)return o;var s=o-u,h=1/f-1/i,c=s/i;return h?(-c+Math.sqrt(c*c-2*h*(s*s/(-2*i)-a+i/2+l-f/2)))/h+u:(u+o)/2}function ahi(n,t){var r=n.N,i;return r?wpt(r,t):(i=n.site,i[1]===t?i[0]:1/0)}function vhi(n,t){return t[1]-n[1]||t[0]-n[0]}function rtt(n,t){var u,f,r,i=n.sort(vhi).pop();for(ft=[],dt=new Array(n.length),le=new by,sh=new by;;)if(r=gn,i&&(!r||i[1]<r.y||i[1]===r.y&&i[0]<r.x))i[0]===u&&i[1]===f||(lhi(i),u=i[0],f=i[1]),i=n.pop();else{if(!r)break;chi(r.arc)}if(function(){for(var e,r,n,t,f,i,u=0,o=dt.length;u<o;++u)if((e=dt[u])&&(t=(r=e.halfedges).length)){for(f=new Array(t),i=new Array(t),n=0;n<t;++n)f[n]=n,i[n]=ehi(e,ft[r[n]]);for(f.sort(function(n,t){return i[t]-i[n]}),n=0;n<t;++n)i[n]=r[f[n]];for(n=0;n<t;++n)r[n]=i[n]}}(),t){var e=+t[0][0],o=+t[0][1],s=+t[1][0],c=+t[1][1];!function(n,t,i,r){for(var u,f=ft.length;f--;)fhi(u=ft[f],n,t,i,r)&&uhi(u,n,t,i,r)&&(Math.abs(u[0][0]-u[1][0])>h||Math.abs(u[0][1]-u[1][1])>h)||delete ft[f]}(e,o,s,c),function(n,t,i,r){for(var f,o,e,s,p,d,l,a,w,v,y,b=dt.length,c=!0,g,nt,tt,k,u=0;u<b;++u)if(f=dt[u]){for(o=f.site,e=(s=f.halfedges).length;e--;)ft[s[e]]||s.splice(e,1);for(e=0,p=s.length;e<p;)v=(w=ohi(f,ft[s[e]]))[0],y=w[1],l=(d=ypt(f,ft[s[++e%p]]))[0],a=d[1],(Math.abs(v-l)>h||Math.abs(y-a)>h)&&(s.splice(e,0,ft.push(oh(o,w,Math.abs(v-n)<h&&r-y>h?[n,Math.abs(l-n)<h?a:r]:Math.abs(y-r)<h&&i-v>h?[Math.abs(a-r)<h?l:i,r]:Math.abs(v-i)<h&&y-t>h?[i,Math.abs(l-i)<h?a:t]:Math.abs(y-t)<h&&v-n>h?[Math.abs(a-t)<h?l:n,t]:null))-1),++p);p&&(c=!1)}if(c){for(k=1/0,u=0,c=null;u<b;++u)(f=dt[u])&&(tt=(g=(o=f.site)[0]-n)*g+(nt=o[1]-t)*nt)<k&&(k=tt,c=f);if(c){var it=[n,t],rt=[n,r],ut=[i,r],et=[i,t];c.halfedges.push(ft.push(oh(o=c.site,it,rt))-1,ft.push(oh(o,rt,ut))-1,ft.push(oh(o,ut,et))-1,ft.push(oh(o,et,it))-1)}}for(u=0;u<b;++u)(f=dt[u])&&(f.halfedges.length||delete dt[u])}(e,o,s,c)}this.edges=ft;this.cells=dt;le=sh=ft=dt=null}function gy(n){return function(){return n}}function yhi(n,t,i){this.target=n;this.type=t;this.transform=i}function ur(n,t,i){this.k=n;this.x=t;this.y=i}function kpt(n){return n.__zoom||hh}function utt(){n.event.stopImmediatePropagation()}function ch(){n.event.preventDefault();n.event.stopImmediatePropagation()}function phi(){return!n.event.button}function whi(){var t,i,n=this;return n instanceof SVGElement?(t=(n=n.ownerSVGElement||n).width.baseVal.value,i=n.height.baseVal.value):(t=n.clientWidth,i=n.clientHeight),[[0,0],[t,i]]}function dpt(){return this.__zoom||hh}function bhi(){return-n.event.deltaY*(n.event.deltaMode?120:1)/500}function khi(){return"ontouchstart"in this}function dhi(n,t,i){var r=n.invertX(t[0][0])-i[0][0],u=n.invertX(t[1][0])-i[1][0],f=n.invertY(t[0][1])-i[0][1],e=n.invertY(t[1][1])-i[1][1];return n.translate(u>r?(r+u)/2:Math.min(0,r)||Math.max(0,u),e>f?(f+e)/2:Math.min(0,f)||Math.max(0,e))}var ftt=np(fr),nu=ftt.right,gpt=ftt.left,htt=Array.prototype,nwt=htt.slice,twt=htt.map,ip=Math.sqrt(50),rp=Math.sqrt(10),up=Math.sqrt(2),sp=Array.prototype.slice,ah=1,vh=2,hp=3,ye=4,vtt=1e-6,swt={value:function(){}},wh,bh,lp,du,ptt,gh,ap,pp,tc,iit,ff,cw,urt,ac,vc,no,aw,hrt,yc,vw,pc,krt,drt,nut,tut,cut,lut,hu,ift,lr,ab,li,tet,iet,it,eet,oet,set,het,nk,wl,tk,lo,uk,fk,p,bt,w,gt,lu,eot,oot,yf,pr,di,oa,sa,ha,ca,la,aa,va,ya,lk,ak,vk,sot,hot,ht,ct,lt,pf,vi,ni,ba,ka,bf,yo,dk,ga,nv,tv,au,iv,cst,gk,nd,hd,eht,oht,go,ns,hv,gf,pd,lht,vht,av,vv,tct,og,sg,pct,yg,iy,ry,br,blt,hn,ly,vyt,yyt,pyt,wyt,kyt,gyt,tpt,gn,ntt,ttt,le,dt,sh,ft,h,bpt,hh;ph.prototype=iu.prototype={constructor:ph,on:function(n,t){var i,e,r=this._,f=(e=r,(n+"").trim().split(/^|\s+/).map(function(n){var i="",t=n.indexOf(".");if(t>=0&&(i=n.slice(t+1),n=n.slice(0,t)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})),u=-1,o=f.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++u<o;)if(i=(n=f[u]).type)r[i]=ytt(r[i],n.name,t);else if(null==t)for(i in r)r[i]=ytt(r[i],n.name,null);return this}for(;++u<o;)if((i=(n=f[u]).type)&&(i=hwt(r[i],n.name)))return i},copy:function(){var t={},i=this._,n;for(n in i)t[n]=i[n].slice();return new ph(t)},call:function(n,t){if((r=arguments.length-2)>0)for(var r,u,f=new Array(r),i=0;i<r;++i)f[i]=arguments[i+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(i=0,r=(u=this._[n]).length;i<r;++i)u[i].value.apply(t,f)},apply:function(n,t,i){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var u=this._[n],r=0,f=u.length;r<f;++r)u[r].value.apply(t,i)}};wh="http://www.w3.org/1999/xhtml";bh={svg:"http://www.w3.org/2000/svg",xhtml:wh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};lp=function(n){return function(){return this.matches(n)}};"undefined"!=typeof document&&(du=document.documentElement,du.matches||(ptt=du.webkitMatchesSelector||du.msMatchesSelector||du.mozMatchesSelector||du.oMatchesSelector,lp=function(n){return function(){return ptt.call(this,n)}}));gh=lp;nc.prototype={constructor:nc,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,t){return this._parent.insertBefore(n,t)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};ap="$";ktt.prototype={add:function(n){this._names.indexOf(n)<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var t=this._names.indexOf(n);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};pp={};(n.event=null,"undefined"!=typeof document)&&("onmouseenter"in document.documentElement||(pp={mouseenter:"mouseover",mouseleave:"mouseout"}));tc=[null];et.prototype=uu.prototype={constructor:et,select:function(n){"function"!=typeof n&&(n=dh(n));for(var e=this._groups,o=e.length,s=new Array(o),r=0;r<o;++r)for(var t,u,f=e[r],h=f.length,c=s[r]=new Array(h),i=0;i<h;++i)(t=f[i])&&(u=n.call(t,t.__data__,i,f))&&("__data__"in t&&(u.__data__=t.__data__),c[i]=u);return new et(s,this._parents)},selectAll:function(n){"function"!=typeof n&&(n=cp(n));for(var f=this._groups,s=f.length,e=[],o=[],r=0;r<s;++r)for(var t,u=f[r],h=u.length,i=0;i<h;++i)(t=u[i])&&(e.push(n.call(t,t.__data__,i,u)),o.push(t));return new et(e,o)},filter:function(n){"function"!=typeof n&&(n=gh(n));for(var f=this._groups,e=f.length,o=new Array(e),t=0;t<e;++t)for(var i,u=f[t],s=u.length,h=o[t]=[],r=0;r<s;++r)(i=u[r])&&n.call(i,i.__data__,r,u)&&h.push(i);return new et(o,this._parents)},data:function(n,t){var k,d,r,e;if(!n)return f=new Array(this.size()),i=-1,this.each(function(n){f[++i]=n}),f;var l,g=t?vwt:awt,c=this._parents,a=this._groups;"function"!=typeof n&&(l=n,n=function(){return l});for(var o=a.length,u=new Array(o),v=new Array(o),y=new Array(o),i=0;i<o;++i){var s=c[i],p=a[i],nt=p.length,f=n.call(s,s&&s.__data__,i,c),h=f.length,w=v[i]=new Array(h),b=u[i]=new Array(h);for(g(s,p,w,b,y[i]=new Array(nt),f,t),r=0,e=0;r<h;++r)if(k=w[r]){for(r>=e&&(e=r+1);!(d=b[e])&&++e<h;);k._next=d||null}}return(u=new et(u,c))._enter=v,u._exit=y,u},enter:function(){return new et(this._enter||this._groups.map(wtt),this._parents)},exit:function(){return new et(this._exit||this._groups.map(wtt),this._parents)},merge:function(n){for(var r=this._groups,e=n._groups,u=r.length,c=e.length,l=Math.min(u,c),f=new Array(u),t=0;t<l;++t)for(var o,s=r[t],a=e[t],h=s.length,v=f[t]=new Array(h),i=0;i<h;++i)(o=s[i]||a[i])&&(v[i]=o);for(;t<u;++t)f[t]=r[t];return new et(f,this._parents)},order:function(){for(var u=this._groups,f=-1,e=u.length;++f<e;)for(var t,i=u[f],r=i.length-1,n=i[r];--r>=0;)(t=i[r])&&(n&&n!==t.nextSibling&&n.parentNode.insertBefore(t,n),n=t);return this},sort:function(n){function c(t,i){return t&&i?n(t.__data__,i.__data__):!t-!i}n||(n=ywt);for(var r=this._groups,u=r.length,f=new Array(u),t=0;t<u;++t){for(var e,o=r[t],s=o.length,h=f[t]=new Array(s),i=0;i<s;++i)(e=o[i])&&(h[i]=e);h.sort(c)}return new et(f,this._parents).order()},call:function(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function(){var n=new Array(this.size()),t=-1;return this.each(function(){n[++t]=this}),n},node:function(){for(var i,r=this._groups,n=0,f=r.length;n<f;++n)for(var u=r[n],t=0,e=u.length;t<e;++t)if(i=u[t],i)return i;return null},size:function(){var n=0;return this.each(function(){++n}),n},empty:function(){return!this.node()},each:function(n){for(var f=this._groups,i=0,e=f.length;i<e;++i)for(var r,u=f[i],t=0,o=u.length;t<o;++t)(r=u[t])&&n.call(r,r.__data__,t,u);return this},attr:function(n,t){var i=pe(n),r;return arguments.length<2?(r=this.node(),i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)):this.each((null==t?i.local?function(n){return function(){this.removeAttributeNS(n.space,n.local)}}:function(n){return function(){this.removeAttribute(n)}}:"function"==typeof t?i.local?function(n,t){return function(){var i=t.apply(this,arguments);null==i?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,i)}}:function(n,t){return function(){var i=t.apply(this,arguments);null==i?this.removeAttribute(n):this.setAttribute(n,i)}}:i.local?function(n,t){return function(){this.setAttributeNS(n.space,n.local,t)}}:function(n,t){return function(){this.setAttribute(n,t)}})(i,t))},style:function(n,t,i){return arguments.length>1?this.each((null==t?function(n){return function(){this.style.removeProperty(n)}}:"function"==typeof t?function(n,t,i){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(n):this.style.setProperty(n,r,i)}}:function(n,t,i){return function(){this.style.setProperty(n,t,i)}})(n,t,null==i?"":i)):ru(this.node(),n)},property:function(n,t){return arguments.length>1?this.each((null==t?function(n){return function(){delete this[n]}}:"function"==typeof t?function(n,t){return function(){var i=t.apply(this,arguments);null==i?delete this[n]:this[n]=i}}:function(n,t){return function(){this[n]=t}})(n,t)):this.node()[n]},classed:function(n,t){var i=btt(n+"");if(arguments.length<2){for(var u=yp(this.node()),r=-1,f=i.length;++r<f;)if(!u.contains(i[r]))return!1;return!0}return this.each(("function"==typeof t?function(n,t){return function(){(t.apply(this,arguments)?dtt:gtt)(this,n)}}:t?function(n){return function(){dtt(this,n)}}:function(n){return function(){gtt(this,n)}})(i,t))},text:function(n){return arguments.length?this.each(null==n?pwt:("function"==typeof n?function(n){return function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}}:function(n){return function(){this.textContent=n}})(n)):this.node().textContent},html:function(n){return arguments.length?this.each(null==n?wwt:("function"==typeof n?function(n){return function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(n){return function(){this.innerHTML=n}})(n)):this.node().innerHTML},raise:function(){return this.each(bwt)},lower:function(){return this.each(kwt)},append:function(n){var t="function"==typeof n?n:kh(n);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(n,t){var i="function"==typeof n?n:kh(n),r=null==t?dwt:"function"==typeof t?t:dh(t);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(gwt)},clone:function(n){return this.select(n?tbt:nbt)},datum:function(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function(n,t,i){var r,s,o=function(n){return n.trim().split(/^|\s+/).map(function(n){var i="",t=n.indexOf(".");return t>=0&&(i=n.slice(t+1),n=n.slice(0,t)),{type:n,name:i}})}(n+""),h=o.length,u,f,e,c;if(!(arguments.length<2)){for(u=t?ubt:rbt,null==i&&(i=!1),r=0;r<h;++r)this.each(u(o[r],t,i));return this}if(u=this.node().__on,u)for(e=0,c=u.length;e<c;++e)for(r=0,f=u[e];r<h;++r)if((s=o[r]).type===f.type&&s.name===f.name)return f.value},dispatch:function(n,t){return this.each(("function"==typeof t?function(n,t){return function(){return tit(this,n,t.apply(this,arguments))}}:function(n,t){return function(){return tit(this,n,t)}})(n,t))}};iit=0;wp.prototype=rit.prototype={constructor:wp,get:function(n){for(var t=this._;!(t in n);)if(!(n=n.parentNode))return;return n[t]},set:function(n,t){return n[this._]=t},remove:function(n){return this._ in n&&delete n[this._]},toString:function(){return this._}};dp.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var tf="\\s*([+-]?\\d+)\\s*",ke="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",oi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hbt=/^#([0-9a-f]{3})$/,cbt=/^#([0-9a-f]{6})$/,lbt=new RegExp("^rgb\\("+[tf,tf,tf]+"\\)$"),abt=new RegExp("^rgb\\("+[oi,oi,oi]+"\\)$"),vbt=new RegExp("^rgba\\("+[tf,tf,tf,ke]+"\\)$"),ybt=new RegExp("^rgba\\("+[oi,oi,oi,ke]+"\\)$"),pbt=new RegExp("^hsl\\("+[ke,oi,oi]+"\\)$"),wbt=new RegExp("^hsla\\("+[ke,oi,oi,ke]+"\\)$"),uit={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};nf(sr,hr,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}});nf(nt,rf,be(sr,{brighter:function(n){return n=null==n?1/.7:Math.pow(1/.7,n),new nt(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new nt(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+nw(this.r)+nw(this.g)+nw(this.b)},toString:function(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}}));nf(si,oc,be(sr,{brighter:function(n){return n=null==n?1/.7:Math.pow(1/.7,n),new si(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new si(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),u=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*u,r=2*t-i;return new nt(tw(n>=240?n-240:n+120,r,i),tw(n,r,i),tw(n<120?n+240:n-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var sit=Math.PI/180,hit=180/Math.PI,cit=.96422,lit=1,ait=.82521,vit=4/29,uf=6/29,yit=3*uf*uf,bbt=uf*uf*uf;nf(ri,sc,be(sr,{brighter:function(n){return new ri(this.l+18*(null==n?1:n),this.a,this.b,this.opacity)},darker:function(n){return new ri(this.l-18*(null==n?1:n),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,t=isNaN(this.a)?n:n+this.a/500,i=isNaN(this.b)?n:n-this.b/200;return new nt(fw(3.1338561*(t=cit*uw(t))-1.6168667*(n=lit*uw(n))-.4906146*(i=ait*uw(i))),fw(-.9787684*t+1.9161415*n+.033454*i),fw(.0719453*t-.2289914*n+1.4052427*i),this.opacity)}}));nf(hi,hc,be(sr,{brighter:function(n){return new hi(this.h,this.c,this.l+18*(null==n?1:n),this.opacity)},darker:function(n){return new hi(this.h,this.c,this.l-18*(null==n?1:n),this.opacity)},rgb:function(){return iw(this).rgb()}}));var wit=-.14861,ow=1.78277,sw=-.29227,cc=-.90649,de=1.97294,bit=de*cc,kit=de*ow,dit=ow*sw-cc*wit;nf(fu,ui,be(sr,{brighter:function(n){return n=null==n?1/.7:Math.pow(1/.7,n),new fu(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new fu(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*sit,n=+this.l,t=isNaN(this.s)?0:this.s*n*(1-n),i=Math.cos(r),u=Math.sin(r);return new nt(255*(n+t*(wit*i+ow*u)),255*(n+t*(sw*i+cc*u)),255*(n+t*de*i),this.opacity)}}));ff=function n(t){function r(n,t){var r=i((n=rf(n)).r,(t=rf(t)).r),u=i(n.g,t.g),f=i(n.b,t.b),e=g(n.opacity,t.opacity);return function(t){return n.r=r(t),n.g=u(t),n.b=f(t),n.opacity=e(t),n+""}}var i=kbt(t);return r.gamma=n,r}(1);cw=rrt(nrt);urt=rrt(trt);ac=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g;vc=new RegExp(ac.source,"g");vw=180/Math.PI;pc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};var art=lrt(function(n){return"none"===n?pc:(no||(no=document.createElement("DIV"),aw=document.documentElement,hrt=document.defaultView),no.style.transform=n,n=hrt.getComputedStyle(aw.appendChild(no),null).getPropertyValue("transform"),aw.removeChild(no),crt(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),vrt=lrt(function(n){return null==n?pc:(yc||(yc=document.createElementNS("http://www.w3.org/2000/svg","g")),yc.setAttribute("transform",n),(n=yc.transform.baseVal.consolidate())?crt((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):pc)},", ",")",")"),to=Math.SQRT2,yw=2,yrt=4,dbt=1e-12;krt=brt(hw);drt=brt(g);nut=grt(hw);tut=grt(g);var gbt=iut(hw),wc=iut(g),bc,io,ef=0,ro=0,uo=0,rut=1e3,kc=0,eu=0,dc=0,fo="object"==typeof performance&&performance.now?performance:Date,uut="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};eo.prototype=gc.prototype={constructor:eo,restart:function(n,t,i){if("function"!=typeof n)throw new TypeError("callback is not a function");i=(null==i?of():+i)+(null==t?0:+t);this._next||io===this||(io?io._next=this:bc=this,io=this);this._call=n;this._time=i;pw()},stop:function(){this._call&&(this._call=null,this._time=1/0,pw())}};var ikt=iu("start","end","interrupt"),rkt=[],out=0,bw=1,nl=2,kw=3,sut=4,dw=5,tl=6;cut=uu.prototype.constructor;lut=0;hu=uu.prototype;ci.prototype=aut.prototype={constructor:ci,select:function(n){var s=this._name,u=this._id;"function"!=typeof n&&(n=dh(n));for(var h=this._groups,c=h.length,l=new Array(c),r=0;r<c;++r)for(var i,f,e=h[r],a=e.length,o=l[r]=new Array(a),t=0;t<a;++t)(i=e[t])&&(f=n.call(i,i.__data__,t,e))&&("__data__"in i&&(f.__data__=i.__data__),o[t]=f,il(o[t],s,u,t,o,fi(i,u)));return new ci(l,this._parents,s,u)},selectAll:function(n){var s=this._name,f=this._id;"function"!=typeof n&&(n=cp(n));for(var h=this._groups,v=h.length,c=[],l=[],e=0;e<v;++e)for(var t,o=h[e],y=o.length,i=0;i<y;++i)if(t=o[i]){for(var a,r=n.call(t,t.__data__,i,o),p=fi(t,f),u=0,w=r.length;u<w;++u)(a=r[u])&&il(a,s,f,u,r,p);c.push(r);l.push(t)}return new ci(c,l,s,f)},filter:function(n){"function"!=typeof n&&(n=gh(n));for(var f=this._groups,e=f.length,o=new Array(e),t=0;t<e;++t)for(var i,u=f[t],s=u.length,h=o[t]=[],r=0;r<s;++r)(i=u[r])&&n.call(i,i.__data__,r,u)&&h.push(i);return new ci(o,this._parents,this._name,this._id)},merge:function(n){if(n._id!==this._id)throw new Error;for(var r=this._groups,e=n._groups,u=r.length,c=e.length,l=Math.min(u,c),f=new Array(u),t=0;t<l;++t)for(var o,s=r[t],a=e[t],h=s.length,v=f[t]=new Array(h),i=0;i<h;++i)(o=s[i]||a[i])&&(v[i]=o);for(;t<u;++t)f[t]=r[t];return new ci(f,this._parents,this._name,this._id)},selection:function(){return new cut(this._groups,this._parents)},transition:function(){for(var n,e=this._name,s=this._id,o=vut(),i=this._groups,h=i.length,r=0;r<h;++r)for(var u,f=i[r],c=f.length,t=0;t<c;++t)(u=f[t])&&(n=fi(u,s),il(u,e,o,t,f,{time:n.time+n.delay+n.duration,delay:0,duration:n.duration,ease:n.ease}));return new ci(i,this._parents,e,o)},call:hu.call,nodes:hu.nodes,node:hu.node,size:hu.size,empty:hu.empty,each:hu.each,on:function(n,t){var i=this._id;return arguments.length<2?fi(this.node(),i).on.on(n):this.each(function(n,t,i){var r,u,f=function(n){return(n+"").trim().split(/^|\s+/).every(function(n){var t=n.indexOf(".");return t>=0&&(n=n.slice(0,t)),!n||"start"===n})}(t)?gw:ou;return function(){var e=f(this,n),o=e.on;o!==r&&(u=(r=o).copy()).on(t,i);e.on=u}}(i,n,t))},attr:function(n,t){var i=pe(n),r="transform"===i?vrt:hut;return this.attrTween(n,"function"==typeof t?(i.local?function(n,t,i){var r,u,f;return function(){var o,e=i(this);if(null!=e)return(o=this.getAttributeNS(n.space,n.local))===e?null:o===r&&e===u?f:f=t(r=o,u=e);this.removeAttributeNS(n.space,n.local)}}:function(n,t,i){var r,u,f;return function(){var o,e=i(this);if(null!=e)return(o=this.getAttribute(n))===e?null:o===r&&e===u?f:f=t(r=o,u=e);this.removeAttribute(n)}})(i,r,nb(this,"attr."+n,t)):null==t?(i.local?function(n){return function(){this.removeAttributeNS(n.space,n.local)}}:function(n){return function(){this.removeAttribute(n)}})(i):(i.local?function(n,t,i){var r,u;return function(){var f=this.getAttributeNS(n.space,n.local);return f===i?null:f===r?u:u=t(r=f,i)}}:function(n,t,i){var r,u;return function(){var f=this.getAttribute(n);return f===i?null:f===r?u:u=t(r=f,i)}})(i,r,t+""))},attrTween:function(n,t){var i="attr."+n,r;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==t)return this.tween(i,null);if("function"!=typeof t)throw new Error;return r=pe(n),this.tween(i,(r.local?function(n,t){function i(){var i=this,r=t.apply(i,arguments);return r&&function(t){i.setAttributeNS(n.space,n.local,r(t))}}return i._value=t,i}:function(n,t){function i(){var i=this,r=t.apply(i,arguments);return r&&function(t){i.setAttribute(n,r(t))}}return i._value=t,i})(r,t))},style:function(n,t,i){var r="transform"==(n+="")?art:hut;return null==t?this.styleTween(n,function(n,t){var i,r,u;return function(){var f=ru(this,n),e=(this.style.removeProperty(n),ru(this,n));return f===e?null:f===i&&e===r?u:u=t(i=f,r=e)}}(n,r)).on("end.style."+n,function(n){return function(){this.style.removeProperty(n)}}(n)):this.styleTween(n,"function"==typeof t?function(n,t,i){var r,u,f;return function(){var o=ru(this,n),e=i(this);return null==e&&(this.style.removeProperty(n),e=ru(this,n)),o===e?null:o===r&&e===u?f:f=t(r=o,u=e)}}(n,r,nb(this,"style."+n,t)):function(n,t,i){var r,u;return function(){var f=ru(this,n);return f===i?null:f===r?u:u=t(r=f,i)}}(n,r,t+""),i)},styleTween:function(n,t,i){var r="style."+(n+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(n,t,i){function r(){var r=this,u=t.apply(r,arguments);return u&&function(t){r.style.setProperty(n,u(t),i)}}return r._value=t,r}(n,t,null==i?"":i))},text:function(n){return this.tween("text","function"==typeof n?function(n){return function(){var t=n(this);this.textContent=null==t?"":t}}(nb(this,"text",n)):function(n){return function(){this.textContent=n}}(null==n?"":n+""))},remove:function(){return this.on("end.remove",(n=this._id,function(){var t=this.parentNode,i;for(i in this.__transition)if(+i!==n)return;t&&t.removeChild(this)}));var n},tween:function(n,t){var r=this._id;if(n+="",arguments.length<2){for(var u,f=fi(this.node(),r).tween,i=0,e=f.length;i<e;++i)if((u=f[i]).name===n)return u.value;return null}return this.each((null==t?function(n,t){var r,i;return function(){var f=ou(this,n),e=f.tween,u,o;if(e!==r)for(u=0,o=(i=r=e).length;u<o;++u)if(i[u].name===t){(i=i.slice()).splice(u,1);break}f.tween=i}}:function(n,t,i){var u,r;if("function"!=typeof i)throw new Error;return function(){var e=ou(this,n),o=e.tween;if(o!==u){r=(u=o).slice();for(var s={name:t,value:i},f=0,h=r.length;f<h;++f)if(r[f].name===t){r[f]=s;break}f===h&&r.push(s)}e.tween=r}})(r,n,t))},delay:function(n){var t=this._id;return arguments.length?this.each(("function"==typeof n?function(n,t){return function(){gw(this,n).delay=+t.apply(this,arguments)}}:function(n,t){return t=+t,function(){gw(this,n).delay=t}})(t,n)):fi(this.node(),t).delay},duration:function(n){var t=this._id;return arguments.length?this.each(("function"==typeof n?function(n,t){return function(){ou(this,n).duration=+t.apply(this,arguments)}}:function(n,t){return t=+t,function(){ou(this,n).duration=t}})(t,n)):fi(this.node(),t).duration},ease:function(n){var t=this._id;return arguments.length?this.each(function(n,t){if("function"!=typeof t)throw new Error;return function(){ou(this,n).ease=t}}(t,n)):fi(this.node(),t).ease}};var ukt=function n(t){function i(n){return Math.pow(n,t)}return t=+t,i.exponent=n,i}(3),fkt=function n(t){function i(n){return 1-Math.pow(1-n,t)}return t=+t,i.exponent=n,i}(3),put=function n(t){function i(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return t=+t,i.exponent=n,i}(3),wut=Math.PI,but=wut/2;var ib=4/11,ekt=6/11,okt=8/11,skt=.75,hkt=9/11,ckt=10/11,lkt=.9375,akt=21/22,vkt=63/64,rl=1/ib/ib;var ykt=function n(t){function i(n){return n*n*((t+1)*n-t)}return t=+t,i.overshoot=n,i}(1.70158),pkt=function n(t){function i(n){return--n*n*((t+1)*n+t)+1}return t=+t,i.overshoot=n,i}(1.70158),nft=function n(t){function i(n){return((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}return t=+t,i.overshoot=n,i}(1.70158),sf=2*Math.PI,wkt=function n(t,i){function r(n){return t*Math.pow(2,10*--n)*Math.sin((u-n)/i)}var u=Math.asin(1/(t=Math.max(1,t)))*(i/=sf);return r.amplitude=function(t){return n(t,i*sf)},r.period=function(i){return n(t,i)},r}(1,.3),tft=function n(t,i){function r(n){return 1-t*Math.pow(2,-10*(n=+n))*Math.sin((n+u)/i)}var u=Math.asin(1/(t=Math.max(1,t)))*(i/=sf);return r.amplitude=function(t){return n(t,i*sf)},r.period=function(i){return n(t,i)},r}(1,.3),bkt=function n(t,i){function r(n){return((n=2*n-1)<0?t*Math.pow(2,10*n)*Math.sin((u-n)/i):2-t*Math.pow(2,-10*n)*Math.sin((u+n)/i))/2}var u=Math.asin(1/(t=Math.max(1,t)))*(i/=sf);return r.amplitude=function(t){return n(t,i*sf)},r.period=function(i){return n(t,i)},r}(1,.3),rb={time:null,delay:0,duration:250,ease:tb};uu.prototype.interrupt=function(n){return this.each(function(){su(this,n)})};uu.prototype.transition=function(n){var t,o;n instanceof ci?(t=n._id,n=n._name):(t=vut(),(o=rb).time=of(),n=null==n?null:n+"");for(var r=this._groups,s=r.length,u=0;u<s;++u)for(var f,e=r[u],h=e.length,i=0;i<h;++i)(f=e[i])&&il(f,n,t,i,e,o||kkt(f,t));return new ci(r,this._parents,n,t)};ift=[null];var fft={name:"drag"},ub={name:"space"},hf={name:"handle"},cf={name:"center"},fl={name:"x",handles:["e","w"].map(so),input:function(n,t){return n&&[[n[0],t[0][1]],[n[1],t[1][1]]]},output:function(n){return n&&[n[0][0],n[1][0]]}},el={name:"y",handles:["n","s"].map(so),input:function(n,t){return n&&[[t[0][0],n[0]],[t[1][0],n[1]]]},output:function(n){return n&&[n[0][1],n[1][1]]}},gkt={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(so),input:function(n){return n},output:function(n){return n}},bi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},eft={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},oft={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},ndt={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},tdt={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};var sft=Math.cos,hft=Math.sin,cft=Math.PI,ol=cft/2,lft=2*cft,aft=Math.max,udt=Array.prototype.slice;var hb=Math.PI,cb=2*hb,fdt=cb-1e-6;lb.prototype=cr.prototype={constructor:lb,moveTo:function(n,t){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,t){this._+="L"+(this._x1=+n)+","+(this._y1=+t)},quadraticCurveTo:function(n,t,i,r){this._+="Q"+ +n+","+ +t+","+(this._x1=+i)+","+(this._y1=+r)},bezierCurveTo:function(n,t,i,r,u,f){this._+="C"+ +n+","+ +t+","+ +i+","+ +r+","+(this._x1=+u)+","+(this._y1=+f)},arcTo:function(n,t,i,r,u){n=+n;t=+t;i=+i;r=+r;u=+u;var v=this._x1,y=this._y1,o=i-n,s=r-t,f=v-n,e=y-t,h=f*f+e*e;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=t);else if(h>1e-6)if(Math.abs(e*o-s*f)>1e-6&&u){var c=i-v,l=r-y,p=o*o+s*s,g=c*c+l*l,w=Math.sqrt(p),b=Math.sqrt(h),k=u*Math.tan((hb-Math.acos((p+h-g)/(2*w*b)))/2),a=k/b,d=k/w;Math.abs(a-1)>1e-6&&(this._+="L"+(n+a*f)+","+(t+a*e));this._+="A"+u+","+u+",0,0,"+ +(e*c>f*l)+","+(this._x1=n+d*o)+","+(this._y1=t+d*s)}else this._+="L"+(this._x1=n)+","+(this._y1=t)},arc:function(n,t,i,r,u,f){n=+n;t=+t;var c=(i=+i)*Math.cos(r),l=i*Math.sin(r),o=n+c,s=t+l,h=1^f,e=f?r-u:u-r;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+o+","+s:(Math.abs(this._x1-o)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+o+","+s);i&&(e<0&&(e=e%cb+cb),e>fdt?this._+="A"+i+","+i+",0,1,"+h+","+(n-c)+","+(t-l)+"A"+i+","+i+",0,1,"+h+","+(this._x1=o)+","+(this._y1=s):e>1e-6&&(this._+="A"+i+","+i+",0,"+ +(e>=hb)+","+h+","+(this._x1=n+i*Math.cos(u))+","+(this._y1=t+i*Math.sin(u))))},rect:function(n,t,i,r){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+t)+"h"+ +i+"v"+ +r+"h"+-i+"Z"},toString:function(){return this._}};sl.prototype=ki.prototype={constructor:sl,has:function(n){return"$"+n in this},get:function(n){return this["$"+n]},set:function(n,t){return this["$"+n]=t,this},remove:function(n){var t="$"+n;return t in this&&delete this[t]},clear:function(){for(var n in this)"$"===n[0]&&delete this[n]},keys:function(){var t=[],n;for(n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[],n;for(n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[],n;for(n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var n=0,t;for(t in this)"$"===t[0]&&++n;return n},empty:function(){for(var n in this)if("$"===n[0])return!1;return!0},each:function(n){for(var t in this)"$"===t[0]&&n(this[t],t.slice(1),this)}};lr=ki.prototype;hl.prototype=pft.prototype={constructor:hl,has:lr.has,add:function(n){return this["$"+(n+="")]=n,this},remove:lr.remove,clear:lr.clear,values:lr.keys,size:lr.size,empty:lr.empty,each:lr.each};ab=Array.prototype.slice;li=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];var bft={},pb={},wb=34,ho=10,bb=13;var ll=cl(","),dft=ll.parse,ngt=ll.parseRows,tgt=ll.format,igt=ll.formatRows,al=cl("\t"),gft=al.parse,rgt=al.parseRows,ugt=al.format,fgt=al.formatRows;tet=net(dft);iet=net(gft);var cgt=kb("application/xml"),lgt=kb("text/html"),agt=kb("image/svg+xml");it=yl.prototype=db.prototype;it.copy=function(){var u,r,i=new db(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,t;if(!n)return i;if(!n.length)return i._root=uet(n),i;for(u=[{source:n,target:i._root=new Array(4)}];n=u.pop();)for(t=0;t<4;++t)(r=n.source[t])&&(r.length?u.push({source:r,target:n.target[t]=new Array(4)}):n.target[t]=uet(r));return i};it.add=function(n){var t=+this._x.call(null,n),i=+this._y.call(null,n);return ret(this.cover(t,i),t,i,n)};it.addAll=function(n){for(var h,i,r,s=n.length,c=new Array(s),l=new Array(s),u=1/0,f=1/0,e=-1/0,o=-1/0,t=0;t<s;++t)isNaN(i=+this._x.call(null,h=n[t]))||isNaN(r=+this._y.call(null,h))||(c[t]=i,l[t]=r,i<u&&(u=i),i>e&&(e=i),r<f&&(f=r),r>o&&(o=r));for(e<u&&(u=this._x0,e=this._x1),o<f&&(f=this._y0,o=this._y1),this.cover(u,f).cover(e,o),t=0;t<s;++t)ret(this,c[t],l[t],n[t]);return this};it.cover=function(n,t){var s,h,o,f;if(isNaN(n=+n)||isNaN(t=+t))return this;var i=this._x0,r=this._y0,e=this._x1,u=this._y1;if(isNaN(i))e=(i=Math.floor(n))+1,u=(r=Math.floor(t))+1;else{if(!(i>n||n>e||r>t||t>u))return this;o=e-i;f=this._root;switch(h=(t<(r+u)/2)<<1|n<(i+e)/2){case 0:do(s=new Array(4))[h]=f,f=s;while(u=r+(o*=2),n>(e=i+o)||t>u);break;case 1:do(s=new Array(4))[h]=f,f=s;while(u=r+(o*=2),(i=e-o)>n||t>u);break;case 2:do(s=new Array(4))[h]=f,f=s;while(r=u-(o*=2),n>(e=i+o)||r>t);break;case 3:do(s=new Array(4))[h]=f,f=s;while(r=u-(o*=2),(i=e-o)>n||r>t)}this._root&&this._root.length&&(this._root=f)}return this._x0=i,this._y0=r,this._x1=e,this._y1=u,this};it.data=function(){var n=[];return this.visit(function(t){if(!t.length)do n.push(t.data);while(t=t.next)}),n};it.extent=function(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};it.find=function(n,t,i){var k,h,c,l,a,f,b,v=this._x0,y=this._y0,p=this._x1,w=this._y1,r=[],u=this._root,e,o,s;for(u&&r.push(new ot(u,v,y,p,w)),null==i?i=1/0:(v=n-i,y=t-i,p=n+i,w=t+i,i*=i);f=r.pop();)if(!(!(u=f.node)||(h=f.x0)>p||(c=f.y0)>w||(l=f.x1)<v||(a=f.y1)<y))if(u.length)e=(h+l)/2,o=(c+a)/2,r.push(new ot(u[3],e,o,l,a),new ot(u[2],h,o,e,a),new ot(u[1],e,c,l,o),new ot(u[0],h,c,e,o)),(b=(t>=o)<<1|n>=e)&&(f=r[r.length-1],r[r.length-1]=r[r.length-1-b],r[r.length-1-b]=f);else{var d=n-+this._x.call(null,u.data),g=t-+this._y.call(null,u.data),nt=d*d+g*g;nt<i&&(s=Math.sqrt(i=nt),v=n-s,y=t-s,p=n+s,w=t+s,k=u.data)}return k};it.remove=function(n){if(isNaN(h=+this._x.call(null,n))||isNaN(c=+this._y.call(null,n)))return this;var i,e,f,u,h,c,o,s,l,a,r,v,t=this._root,y=this._x0,p=this._y0,w=this._x1,b=this._y1;if(!t)return this;if(t.length)for(;;){if((l=h>=(o=(y+w)/2))?y=o:w=o,(a=c>=(s=(p+b)/2))?p=s:b=s,i=t,!(t=t[r=a<<1|l]))return this;if(!t.length)break;(i[r+1&3]||i[r+2&3]||i[r+3&3])&&(e=i,v=r)}for(;t.data!==n;)if(f=t,!(t=t.next))return this;return(u=t.next)&&delete t.next,f?(u?f.next=u:delete f.next,this):i?(u?i[r]=u:delete i[r],(t=i[0]||i[1]||i[2]||i[3])&&t===(i[3]||i[2]||i[1]||i[0])&&!t.length&&(e?e[v]=t:this._root=t),this):(this._root=u,this)};it.removeAll=function(n){for(var t=0,i=n.length;t<i;++t)this.remove(n[t]);return this};it.root=function(){return this._root};it.size=function(){var n=0;return this.visit(function(t){if(!t.length)do++n;while(t=t.next)}),n};it.visit=function(n){var r,t,o,s,h,c,u=[],i=this._root,f,e;for(i&&u.push(new ot(i,this._x0,this._y0,this._x1,this._y1));r=u.pop();)!n(i=r.node,o=r.x0,s=r.y0,h=r.x1,c=r.y1)&&i.length&&(f=(o+h)/2,e=(s+c)/2,(t=i[3])&&u.push(new ot(t,f,e,h,c)),(t=i[2])&&u.push(new ot(t,o,e,f,c)),(t=i[1])&&u.push(new ot(t,f,s,h,e)),(t=i[0])&&u.push(new ot(t,o,s,f,e)));return this};it.visitAfter=function(n){var t,r=[],l=[],u;for(this._root&&r.push(new ot(this._root,this._x0,this._y0,this._x1,this._y1));t=r.pop();){if(u=t.node,u.length){var i,o=t.x0,s=t.y0,h=t.x1,c=t.y1,f=(o+h)/2,e=(s+c)/2;(i=u[0])&&r.push(new ot(i,o,s,f,e));(i=u[1])&&r.push(new ot(i,f,s,h,e));(i=u[2])&&r.push(new ot(i,o,e,f,c));(i=u[3])&&r.push(new ot(i,f,e,h,c))}l.push(t)}for(;t=l.pop();)n(t.node,t.x0,t.y0,t.x1,t.y1);return this};it.x=function(n){return arguments.length?(this._x=n,this):this._x};it.y=function(n){return arguments.length?(this._y=n,this):this._y};eet=10;oet=Math.PI*(3-Math.sqrt(5));het=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;co.prototype=gb.prototype;gb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};nk={"%":function(n,t){return(100*n).toFixed(t)},b:function(n){return Math.round(n).toString(2)},c:function(n){return n+""},d:function(n){return Math.round(n).toString(10)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},g:function(n,t){return n.toPrecision(t)},o:function(n){return Math.round(n).toString(8)},p:function(n,t){return cet(100*n,t)},r:cet,s:function(n,t){var u=pl(n,t);if(!u)return n+"";var r=u[0],e=u[1],i=e-(set=3*Math.max(-8,Math.min(8,Math.floor(e/3))))+1,f=r.length;return i===f?r:i>f?r+new Array(i-f+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+pl(n,Math.max(0,t+i-1))[0]},X:function(n){return Math.round(n).toString(16).toUpperCase()},x:function(n){return Math.round(n).toString(16)}};tk=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];yet({decimal:".",thousands:",",grouping:[3],currency:["$",""]});bl.prototype={constructor:bl,reset:function(){this.s=this.t=0},add:function(n){ket(lo,n,this.t);ket(this,lo.s,this.s);this.s?this.t+=lo.t:this.s=lo.t},valueOf:function(){return this.s}};lo=new bl;var i=1e-6,det=1e-12,o=Math.PI,y=o/2,kl=o/4,vt=2*o,a=180/o,u=o/180,s=Math.abs,af=Math.atan,st=Math.atan2,r=Math.cos,dl=Math.ceil,get=Math.exp,gl=Math.log,ik=Math.pow,t=Math.sin,ao=Math.sign||function(n){return n>0?1:n<0?-1:0},k=Math.sqrt,rk=Math.tan;uk={Feature:function(n,t){na(n.geometry,t)},FeatureCollection:function(n,t){for(var i=n.features,r=-1,u=i.length;++r<u;)na(i[r].geometry,t)}};fk={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates;t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)n=i[r],t.point(n[0],n[1],n[2])},LineString:function(n,t){ek(n.coordinates,t,0)},MultiLineString:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)ek(i[r],t,0)},Polygon:function(n,t){iot(n.coordinates,t)},MultiPolygon:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)iot(i[r],t)},GeometryCollection:function(n,t){for(var i=n.geometries,r=-1,u=i.length;++r<u;)na(i[r],t)}};var rot,uot,ok,sk,hk,ta=yr(),ia=yr(),ai={point:v,lineStart:v,lineEnd:v,polygonStart:function(){ta.reset();ai.lineStart=ggt;ai.lineEnd=nnt},polygonEnd:function(){var n=+ta;ia.add(n<0?vt+n:n);this.lineStart=this.lineEnd=this.point=v},sphere:function(){ia.add(vt)}};pf=yr();vi={point:yk,lineStart:lot,lineEnd:aot,polygonStart:function(){vi.point=vot;vi.lineStart=int;vi.lineEnd=rnt;pf.reset();ai.polygonStart()},polygonEnd:function(){ai.polygonEnd();vi.point=yk;vi.lineStart=lot;vi.lineEnd=aot;ta<0?(p=-(w=180),bt=-(gt=90)):pf>i?gt=90:pf<-i&&(bt=-90);di[0]=p;di[1]=w}};ni={sphere:v,point:pk,lineStart:pot,lineEnd:wot,polygonStart:function(){ni.lineStart=ont;ni.lineEnd=snt},polygonEnd:function(){ni.lineStart=pot;ni.lineEnd=wot}};bk.invert=bk;ba=yr();ka=ost(function(){return!0},function(n){var h,f=NaN,u=NaN,e=NaN;return{lineStart:function(){n.lineStart();h=1},point:function(c,l){var a=c>0?o:-o,v=s(c-f);s(v-o)<i?(n.point(f,u=(u+l)/2>0?y:-y),n.point(e,u),n.lineEnd(),n.lineStart(),n.point(a,u),n.point(c,u),h=0):e!==a&&v>=o&&(s(f-e)<i&&(f-=e*i),s(c-a)<i&&(c-=a*i),u=function(n,u,f,e){var o,h,c=t(n-f);return s(c)>i?af((t(u)*(h=r(e))*t(f)-t(e)*(o=r(u))*t(n))/(o*h*c)):(u+e)/2}(f,u,c,l),n.point(e,u),n.lineEnd(),n.lineStart(),n.point(a,u),h=0);n.point(f=c,u=l);e=a},lineEnd:function(){n.lineEnd();f=u=NaN},clean:function(){return 2-h}}},function(n,t,r,u){var f,e;null==n?(f=r*y,u.point(-o,f),u.point(0,f),u.point(o,f),u.point(o,0),u.point(o,-f),u.point(0,-f),u.point(-o,-f),u.point(-o,0),u.point(-o,f)):s(n[0]-t[0])>i?(e=n[0]<t[0]?o:-o,f=r*e/2,u.point(-e,f),u.point(0,f),u.point(e,f)):u.point(t[0],t[1])},[-o,-y]);bf=1e9;yo=-bf;tv=yr();au={sphere:v,point:v,lineStart:function(){au.point=vnt;au.lineEnd=ant},lineEnd:v,polygonStart:v,polygonEnd:v};iv=[null,null];cst={type:"LineString",coordinates:iv};gk={Feature:function(n,t){return rv(n.geometry,t)},FeatureCollection:function(n,t){for(var i=n.features,r=-1,u=i.length;++r<u;)if(rv(i[r].geometry,t))return!0;return!1}};nd={Sphere:function(){return!0},Point:function(n,t){return lst(n.coordinates,t)},MultiPoint:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)if(lst(i[r],t))return!0;return!1},LineString:function(n,t){return ast(n.coordinates,t)},MultiLineString:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)if(ast(i[r],t))return!0;return!1},Polygon:function(n,t){return vst(n.coordinates,t)},MultiPolygon:function(n,t){for(var i=n.coordinates,r=-1,u=i.length;++r<u;)if(vst(i[r],t))return!0;return!1},GeometryCollection:function(n,t){for(var i=n.geometries,r=-1,u=i.length;++r<u;)if(rv(i[r],t))return!0;return!1}};var kst,dst,td,id,rd=yr(),ud=yr(),gi={point:v,lineStart:v,lineEnd:v,polygonStart:function(){gi.lineStart=wnt;gi.lineEnd=knt},polygonEnd:function(){gi.lineStart=gi.lineEnd=gi.point=v;rd.add(s(ud));ud.reset()},result:function(){var n=rd/2;return rd.reset(),n}};var kf=1/0,uv=kf,wo=-kf,fv=wo,ev={point:function(n,t){n<kf&&(kf=n);n>wo&&(wo=n);t<uv&&(uv=t);t>fv&&(fv=t)},lineStart:v,lineEnd:v,polygonStart:v,polygonEnd:v,result:function(){var n=[[kf,uv],[wo,fv]];return wo=fv=-(uv=kf=1/0),n}},nht,tht,yi,pi,fd=0,ed=0,bo=0,ov=0,sv=0,df=0,od=0,sd=0,ko=0,ti={point:yu,lineStart:iht,lineEnd:rht,polygonStart:function(){ti.lineStart=nti;ti.lineEnd=tti},polygonEnd:function(){ti.point=yu;ti.lineStart=iht;ti.lineEnd=rht},result:function(){var n=ko?[od/ko,sd/ko]:df?[ov/df,sv/df]:bo?[fd/bo,ed/bo]:[NaN,NaN];return fd=ed=bo=ov=sv=df=od=sd=ko=0,n}};fht.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath();this._point=NaN},point:function(n,t){switch(this._point){case 0:this._context.moveTo(n,t);this._point=1;break;case 1:this._context.lineTo(n,t);break;default:this._context.moveTo(n+this._radius,t);this._context.arc(n,t,this._radius,0,vt)}},result:v};hv=yr();gf={point:v,lineStart:function(){gf.point=rti},lineEnd:function(){hd&&sht(eht,oht);gf.point=v},polygonStart:function(){hd=!0},polygonEnd:function(){hd=null},result:function(){var n=+hv;return hv.reset(),n}};hht.prototype={_radius:4.5,_circle:cht(4.5),pointRadius:function(n){return(n=+n)!==this._radius&&(this._radius=n,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z");this._point=NaN},point:function(n,t){switch(this._point){case 0:this._string.push("M",n,",",t);this._point=1;break;case 1:this._string.push("L",n,",",t);break;default:null==this._circle&&(this._circle=cht(this._radius));this._string.push("M",n,",",t,this._circle)}},result:function(){if(this._string.length){var n=this._string.join("");return this._string=[],n}return null}};cd.prototype={constructor:cd,point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};pd=16;lht=r(30*u);vht=ts({point:function(n,t){this.stream.point(n*u,t*u)}});av=bht(function(n){return k(2/(1+n))});av.invert=is(function(n){return 2*wt(n/2)});vv=bht(function(n){return(n=not(n))&&n/t(n)});vv.invert=is(function(n){return n});rs.invert=function(n,t){return[n,2*af(get(t))-y]};us.invert=us;kd.invert=is(af);dd.invert=function(n,t){var e,u=t,o=25,r,f;do r=u*u,f=r*r,u-=e=(u*(1.007226+r*(.015085+f*(.028874*r-.044475-.005916*f)))-t)/(1.007226+r*(.045255+f*(.259866*r-.311325-.005916*11*f)));while(s(e)>i&&--o>0);return[n/(.8707+(r=u*u)*(r*(r*r*r*(.003971-.001529*r)-.013791)-.131979)),u]};gd.invert=is(wt);ng.invert=is(function(n){return 2*af(n)});tg.invert=function(n,t){return[-t,2*af(get(n))-y]};ne.prototype=ig.prototype={constructor:ne,count:function(){return this.eachAfter(oti)},each:function(n){var f,u,t,e,i=this,r=[i];do for(f=r.reverse(),r=[];i=f.pop();)if(n(i),u=i.children)for(t=0,e=u.length;t<e;++t)r.push(u[t]);while(r.length);return this},eachAfter:function(n){for(var r,i,u,t=this,f=[t],e=[];t=f.pop();)if(e.push(t),r=t.children)for(i=0,u=r.length;i<u;++i)f.push(r[i]);for(;t=e.pop();)n(t);return this},eachBefore:function(n){for(var r,t,i=this,u=[i];i=u.pop();)if(n(i),r=i.children)for(t=r.length-1;t>=0;--t)u.push(r[t]);return this},sum:function(n){return this.eachAfter(function(t){for(var r=+n(t.data)||0,i=t.children,u=i&&i.length;--u>=0;)r+=i[u].value;t.value=r})},sort:function(n){return this.eachBefore(function(t){t.children&&t.children.sort(n)})},path:function(n){for(var u,t=this,r=function(n,t){if(n===t)return n;var i=n.ancestors(),r=t.ancestors(),u=null;for(n=i.pop(),t=r.pop();n===t;)u=n,n=i.pop(),t=r.pop();return u}(t,n),i=[t];t!==r;)t=t.parent,i.push(t);for(u=i.length;n!==r;)i.splice(u,0,n),n=n.parent;return i},ancestors:function(){for(var n=this,t=[n];n=n.parent;)t.push(n);return t},descendants:function(){var n=[];return this.each(function(t){n.push(t)}),n},leaves:function(){var n=[];return this.eachBefore(function(t){t.children||n.push(t)}),n},links:function(){var n=this,t=[];return n.each(function(i){i!==n&&t.push({source:i.parent,target:i})}),t},copy:function(){return ig(this).eachBefore(hti)}};tct=Array.prototype.slice;var act="$",vti={depth:-1},vct={};dv.prototype=Object.create(ne.prototype);og=(1+Math.sqrt(5))/2;sg=function n(t){function i(n,i,r,u,f){yct(t,n,i,r,u,f)}return i.ratio=function(t){return n((t=+t)>1?t:1)},i}(og);pct=function n(t){function i(n,i,r,u,f){if((o=n._squarify)&&o.ratio===t)for(var o,e,h,s,l,a=-1,v=o.length,c=n.value;++a<v;){for(h=(e=o[a]).children,s=e.value=0,l=h.length;s<l;++s)e.value+=h[s].value;e.dice?es(e,i,r,u,r+=(f-r)*e.value/c):gv(e,i,r,i+=(u-i)*e.value/c,f);c-=e.value}else n._squarify=o=yct(t,n,i,r,u,f),o.ratio=t}return i.ratio=function(t){return n((t=+t)>1?t:1)},i}(og);var gti=function n(t){function i(n,i){return n=null==n?0:+n,i=null==i?1:+i,1===arguments.length?(i=n,n=0):i-=n,function(){return t()*i+n}}return i.source=n,i}(ie),bct=function n(t){function i(n,i){var r,u;return n=null==n?0:+n,i=null==i?1:+i,function(){var f;if(null!=r)f=r,r=null;else do r=2*t()-1,f=2*t()-1,u=r*r+f*f;while(!u||u>1);return n+i*f*Math.sqrt(-2*Math.log(u)/u)}}return i.source=n,i}(ie),nii=function n(t){function i(){var n=bct.source(t).apply(this,arguments);return function(){return Math.exp(n())}}return i.source=n,i}(ie),kct=function n(t){function i(n){return function(){for(var i=0,r=0;r<n;++r)i+=t();return i}}return i.source=n,i}(ie),tii=function n(t){function i(n){var i=kct.source(t)(n);return function(){return i()/n}}return i.source=n,i}(ie),iii=function n(t){function i(n){return function(){return-Math.log(1-t())/n}}return i.source=n,i}(ie),dct=Array.prototype,hg=dct.map,wr=dct.slice,cg={name:"implicit"};yg=[0,1];iy=new Date;ry=new Date;br=d(function(){},function(n,t){n.setTime(+n+t)},function(n,t){return t-n});br.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?d(function(t){t.setTime(Math.floor(t/n)*n)},function(t,i){t.setTime(+t+i*n)},function(t,i){return(i-t)/n}):br:null};var ult=br.range,tr=6e4,flt=6048e5,os=d(function(n){n.setTime(1e3*Math.floor(n/1e3))},function(n,t){n.setTime(+n+1e3*t)},function(n,t){return(t-n)/1e3},function(n){return n.getUTCSeconds()}),elt=os.range,bg=d(function(n){n.setTime(Math.floor(n/tr)*tr)},function(n,t){n.setTime(+n+t*tr)},function(n,t){return(t-n)/tr},function(n){return n.getMinutes()}),sii=bg.range,kg=d(function(n){var t=n.getTimezoneOffset()*tr%36e5;t<0&&(t+=36e5);n.setTime(36e5*Math.floor((+n-t)/36e5)+t)},function(n,t){n.setTime(+n+36e5*t)},function(n,t){return(t-n)/36e5},function(n){return n.getHours()}),hii=kg.range,ss=d(function(n){n.setHours(0,0,0,0)},function(n,t){n.setDate(n.getDate()+t)},function(n,t){return(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*tr)/864e5},function(n){return n.getDate()-1}),cii=ss.range;var hs=wu(0),cs=wu(1),olt=wu(2),slt=wu(3),ls=wu(4),hlt=wu(5),clt=wu(6),llt=hs.range,lii=cs.range,aii=olt.range,vii=slt.range,yii=ls.range,pii=hlt.range,wii=clt.range,dg=d(function(n){n.setDate(1);n.setHours(0,0,0,0)},function(n,t){n.setMonth(n.getMonth()+t)},function(n,t){return t.getMonth()-n.getMonth()+12*(t.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}),bii=dg.range,ir=d(function(n){n.setMonth(0,1);n.setHours(0,0,0,0)},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n,t){return t.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});ir.every=function(n){return isFinite(n=Math.floor(n))&&n>0?d(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n);t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,i){t.setFullYear(t.getFullYear()+i*n)}):null};var kii=ir.range,gg=d(function(n){n.setUTCSeconds(0,0)},function(n,t){n.setTime(+n+t*tr)},function(n,t){return(t-n)/tr},function(n){return n.getUTCMinutes()}),dii=gg.range,nn=d(function(n){n.setUTCMinutes(0,0,0)},function(n,t){n.setTime(+n+36e5*t)},function(n,t){return(t-n)/36e5},function(n){return n.getUTCHours()}),gii=nn.range,as=d(function(n){n.setUTCHours(0,0,0,0)},function(n,t){n.setUTCDate(n.getUTCDate()+t)},function(n,t){return(t-n)/864e5},function(n){return n.getUTCDate()-1}),nri=as.range;var vs=bu(0),ys=bu(1),alt=bu(2),vlt=bu(3),ps=bu(4),ylt=bu(5),plt=bu(6),wlt=vs.range,tri=ys.range,iri=alt.range,rri=vlt.range,uri=ps.range,fri=ylt.range,eri=plt.range,tn=d(function(n){n.setUTCDate(1);n.setUTCHours(0,0,0,0)},function(n,t){n.setUTCMonth(n.getUTCMonth()+t)},function(n,t){return t.getUTCMonth()-n.getUTCMonth()+12*(t.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}),ori=tn.range,rr=d(function(n){n.setUTCMonth(0,1);n.setUTCHours(0,0,0,0)},function(n,t){n.setUTCFullYear(n.getUTCFullYear()+t)},function(n,t){return t.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});rr.every=function(n){return isFinite(n=Math.floor(n))&&n>0?d(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n);t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,i){t.setUTCFullYear(t.getUTCFullYear()+i*n)}):null};blt=rr.range;var fe,dlt={"-":"",_:" ",0:"0"},tt=/^\s*\d+/,hri=/^%/,cri=/[\\^$*+?|[\]().{}]/g;sat({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var bfi=Date.prototype.toISOString?function(n){return n.toISOString()}:n.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),kfi=+new Date("2000-01-01T00:00:00.000Z")?function(n){var t=new Date(n);return isNaN(t)?null:t}:n.utcParse("%Y-%m-%dT%H:%M:%S.%LZ"),ds=1e3,gs=60*ds,nh=60*gs,th=24*nh,dfi=7*th,hat=30*th,rn=365*th;var tei=f("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),iei=f("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),rei=f("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),uei=f("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),fei=f("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),eei=f("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),oei=f("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),sei=f("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),hei=f("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var cat=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(f),cei=l(cat),lat=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(f),lei=l(lat),aat=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(f),aei=l(aat),vat=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(f),vei=l(vat),yat=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(f),yei=l(yat),pat=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(f),pei=l(pat),wat=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(f),wei=l(wat),bat=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(f),bei=l(bat),kat=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(f),kei=l(kat),dat=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(f),dei=l(dat),gat=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(f),gei=l(gat),nvt=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(f),noi=l(nvt),tvt=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(f),toi=l(tvt),ivt=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(f),ioi=l(ivt),rvt=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(f),roi=l(rvt),uvt=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(f),uoi=l(uvt),fvt=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(f),foi=l(fvt),evt=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(f),eoi=l(evt),ovt=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(f),ooi=l(ovt),svt=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(f),soi=l(svt),hvt=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(f),hoi=l(hvt),cvt=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(f),coi=l(cvt),lvt=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(f),loi=l(lvt),avt=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(f),aoi=l(avt),vvt=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(f),voi=l(vvt),yvt=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(f),yoi=l(yvt),pvt=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(f),poi=l(pvt),woi=wc(ui(300,.5,0),ui(-240,.5,1)),boi=wc(ui(-100,.75,.35),ui(80,1.5,.8)),koi=wc(ui(260,.75,.35),ui(80,1.5,.8)),fy=ui(),ey=rf(),doi=Math.PI/3,goi=2*Math.PI/3;var nsi=oy(f("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),tsi=oy(f("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),isi=oy(f("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),rsi=oy(f("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var wvt=Math.abs,rt=Math.atan2,ku=Math.cos,usi=Math.max,fn=Math.min,wi=Math.sin,ee=Math.sqrt,ut=1e-12,kr=Math.PI,sy=kr/2,dr=2*kr;kvt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;default:this._context.lineTo(n,t)}}};hn=cn(cy);gvt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(n,t){this._curve.point(t*Math.sin(n),t*-Math.cos(n))}};ly=Array.prototype.slice;var an={draw:function(n,t){var i=Math.sqrt(t/kr);n.moveTo(i,0);n.arc(0,0,i,0,dr)}},iyt={draw:function(n,t){var i=Math.sqrt(t/5)/2;n.moveTo(-3*i,-i);n.lineTo(-i,-i);n.lineTo(-i,-3*i);n.lineTo(i,-3*i);n.lineTo(i,-i);n.lineTo(3*i,-i);n.lineTo(3*i,i);n.lineTo(i,i);n.lineTo(i,3*i);n.lineTo(-i,3*i);n.lineTo(-i,i);n.lineTo(-3*i,i);n.closePath()}},ryt=Math.sqrt(1/3),bsi=2*ryt,uyt={draw:function(n,t){var i=Math.sqrt(t/bsi),r=i*ryt;n.moveTo(0,-i);n.lineTo(r,0);n.lineTo(0,i);n.lineTo(-r,0);n.closePath()}},fyt=Math.sin(kr/10)/Math.sin(7*kr/10),ksi=Math.sin(dr/10)*fyt,dsi=-Math.cos(dr/10)*fyt,eyt={draw:function(n,t){var i=Math.sqrt(.89081309152928523*t),u=ksi*i,f=dsi*i,r;for(n.moveTo(0,-i),n.lineTo(u,f),r=1;r<5;++r){var s=dr*r/5,e=Math.cos(s),o=Math.sin(s);n.lineTo(o*i,-e*i);n.lineTo(e*u-o*f,o*u+e*f)}n.closePath()}},oyt={draw:function(n,t){var i=Math.sqrt(t),r=-i/2;n.rect(r,r,i,i)}},vn=Math.sqrt(3),syt={draw:function(n,t){var i=-Math.sqrt(t/(3*vn));n.moveTo(0,2*i);n.lineTo(-vn*i,-i);n.lineTo(vn*i,-i);n.closePath()}},ii=Math.sqrt(3)/2,yn=1/Math.sqrt(12),gsi=3*(yn/2+1),hyt={draw:function(n,t){var s=Math.sqrt(t/gsi),i=s/2,f=s*yn,r=i,u=s*yn+s,e=-r,o=u;n.moveTo(i,f);n.lineTo(r,u);n.lineTo(e,o);n.lineTo(-.5*i-ii*f,ii*i+-.5*f);n.lineTo(-.5*r-ii*u,ii*r+-.5*u);n.lineTo(-.5*e-ii*o,ii*e+-.5*o);n.lineTo(-.5*i+ii*f,-.5*f-ii*i);n.lineTo(-.5*r+ii*u,-.5*u-ii*r);n.lineTo(-.5*e+ii*o,-.5*o-ii*e);n.closePath()}},nhi=[an,iyt,uyt,oyt,eyt,syt,hyt];vy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function(){switch(this._point){case 3:ay(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;break;case 2:this._point=3;this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ay(this,n,t)}this._x0=this._x1;this._x1=n;this._y0=this._y1;this._y1=t}};cyt.prototype={areaStart:gr,areaEnd:gr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN;this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2);this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3);this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3);this._context.closePath();break;case 3:this.point(this._x2,this._y2);this.point(this._x3,this._y3);this.point(this._x4,this._y4)}},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._x2=n;this._y2=t;break;case 1:this._point=2;this._x3=n;this._y3=t;break;case 2:this._point=3;this._x4=n;this._y4=t;this._context.moveTo((this._x0+4*this._x1+n)/6,(this._y0+4*this._y1+t)/6);break;default:ay(this,n,t)}this._x0=this._x1;this._x1=n;this._y0=this._y1;this._y1=t}};lyt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+n)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:ay(this,n,t)}this._x0=this._x1;this._x1=n;this._y0=this._y1;this._y1=t}};ayt.prototype={lineStart:function(){this._x=[];this._y=[];this._basis.lineStart()},lineEnd:function(){var t=this._x,r=this._y,n=t.length-1;if(n>0)for(var u,f=t[0],e=r[0],o=t[n]-f,s=r[n]-e,i=-1;++i<=n;)u=i/n,this._basis.point(this._beta*t[i]+(1-this._beta)*(f+u*o),this._beta*r[i]+(1-this._beta)*(e+u*s));this._x=this._y=null;this._basis.lineEnd()},point:function(n,t){this._x.push(+n);this._y.push(+t)}};vyt=function n(t){function i(n){return 1===t?new vy(n):new ayt(n,t)}return i.beta=function(t){return n(+t)},i}(.85);pn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:yy(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;this._x1=n;this._y1=t;break;case 2:this._point=3;default:yy(this,n,t)}this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};yyt=function n(t){function i(n){return new pn(n,t)}return i.tension=function(t){return n(+t)},i}(0);wn.prototype={areaStart:gr,areaEnd:gr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3);this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3);this._context.closePath();break;case 3:this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5)}},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._x3=n;this._y3=t;break;case 1:this._point=2;this._context.moveTo(this._x4=n,this._y4=t);break;case 2:this._point=3;this._x5=n;this._y5=t;break;default:yy(this,n,t)}this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};pyt=function n(t){function i(n){return new wn(n,t)}return i.tension=function(t){return n(+t)},i}(0);bn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:yy(this,n,t)}this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};wyt=function n(t){function i(n){return new bn(n,t)}return i.tension=function(t){return n(+t)},i}(0);byt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){if(n=+n,t=+t,this._point){var i=this._x2-n,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;break;case 2:this._point=3;default:kn(this,n,t)}this._l01_a=this._l12_a;this._l12_a=this._l23_a;this._l01_2a=this._l12_2a;this._l12_2a=this._l23_2a;this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};kyt=function n(t){function i(n){return t?new byt(n,t):new pn(n,0)}return i.alpha=function(t){return n(+t)},i}(.5);dyt.prototype={areaStart:gr,areaEnd:gr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3);this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3);this._context.closePath();break;case 3:this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5)}},point:function(n,t){if(n=+n,t=+t,this._point){var i=this._x2-n,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;this._x3=n;this._y3=t;break;case 1:this._point=2;this._context.moveTo(this._x4=n,this._y4=t);break;case 2:this._point=3;this._x5=n;this._y5=t;break;default:kn(this,n,t)}this._l01_a=this._l12_a;this._l12_a=this._l23_a;this._l01_2a=this._l12_2a;this._l12_2a=this._l23_2a;this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};gyt=function n(t){function i(n){return t?new dyt(n,t):new wn(n,0)}return i.alpha=function(t){return n(+t)},i}(.5);npt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){if(n=+n,t=+t,this._point){var i=this._x2-n,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:kn(this,n,t)}this._l01_a=this._l12_a;this._l12_a=this._l23_a;this._l01_2a=this._l12_2a;this._l12_2a=this._l23_2a;this._x0=this._x1;this._x1=this._x2;this._x2=n;this._y0=this._y1;this._y1=this._y2;this._y2=t}};tpt=function n(t){function i(n){return t?new npt(n,t):new bn(n,0)}return i.alpha=function(t){return n(+t)},i}(.5);ipt.prototype={areaStart:gr,areaEnd:gr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(n,t){n=+n;t=+t;this._point?this._context.lineTo(n,t):(this._point=1,this._context.moveTo(n,t))}};py.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:dn(this,this._t0,fpt(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line=1-this._line},point:function(n,t){var i=NaN;if(t=+t,(n=+n)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;break;case 2:this._point=3;dn(this,fpt(this,i=upt(this,n,t)),i);break;default:dn(this,this._t0,i=upt(this,n,t))}this._x0=this._x1;this._x1=n;this._y0=this._y1;this._y1=t;this._t0=i}}};(ept.prototype=Object.create(py.prototype)).point=function(n,t){py.prototype.point.call(this,t,n)};opt.prototype={moveTo:function(n,t){this._context.moveTo(t,n)},closePath:function(){this._context.closePath()},lineTo:function(n,t){this._context.lineTo(t,n)},bezierCurveTo:function(n,t,i,r,u,f){this._context.bezierCurveTo(t,n,r,i,f,u)}};spt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[];this._y=[]},lineEnd:function(){var n=this._x,t=this._y,r=n.length;if(r)if(this._line?this._context.lineTo(n[0],t[0]):this._context.moveTo(n[0],t[0]),2===r)this._context.lineTo(n[1],t[1]);else for(var f=hpt(n),e=hpt(t),i=0,u=1;u<r;++i,++u)this._context.bezierCurveTo(f[0][i],e[0][i],f[1][i],e[1][i],n[u],t[u]);(this._line||0!==this._line&&1===r)&&this._context.closePath();this._line=1-this._line;this._x=this._y=null},point:function(n,t){this._x.push(+n);this._y.push(+t)}};wy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN;this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y);(this._line||0!==this._line&&1===this._point)&&this._context.closePath();this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(n,t);else{var i=this._x*(1-this._t)+n*this._t;this._context.lineTo(i,this._y);this._context.lineTo(i,t)}}this._x=n;this._y=t}};by.prototype={constructor:by,insert:function(n,t){var i,r,u;if(n){if(t.P=n,t.N=n.N,n.N&&(n.N.P=t),n.N=t,n.R){for(n=n.R;n.L;)n=n.L;n.L=t}else n.R=t;i=n}else this._?(n=vpt(this._),t.P=null,t.N=n,n.P=n.L=t,i=n):(t.P=t.N=null,this._=t,i=null);for(t.L=t.R=null,t.U=i,t.C=!0,n=t;i&&i.C;)i===(r=i.U).L?(u=r.R)&&u.C?(i.C=u.C=!1,r.C=!0,n=r):(n===i.R&&(uh(this,i),i=(n=i).U),i.C=!1,r.C=!0,fh(this,r)):(u=r.L)&&u.C?(i.C=u.C=!1,r.C=!0,n=r):(n===i.L&&(fh(this,i),i=(n=i).U),i.C=!1,r.C=!0,uh(this,r)),i=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P);n.P&&(n.P.N=n.N);n.N=n.P=null;var t,r,e,i=n.U,f=n.L,u=n.R;if(r=f?u?vpt(u):f:u,i?i.L===n?i.L=r:i.R=r:this._=r,f&&u?(e=r.C,r.C=n.C,r.L=f,f.U=r,r!==u?(i=r.U,r.U=n.U,n=r.R,i.L=n,r.R=u,u.U=r):(r.U=i,i=r,n=r.R)):(e=n.C,n=r),n&&(n.U=i),!e)if(n&&n.C)n.C=!1;else{do{if(n===this._)break;if(n===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,uh(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,fh(this,t),t=i.R);t.C=i.C;i.C=t.R.C=!1;uh(this,i);n=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,fh(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,uh(this,t),t=i.L);t.C=i.C;i.C=t.L.C=!1;fh(this,i);n=this._;break}t.C=!0;n=i;i=i.U}while(!n.C);n&&(n.C=!1)}}};ntt=[];ttt=[];h=1e-6;bpt=1e-12;rtt.prototype={constructor:rtt,polygons:function(){var n=this.edges;return this.cells.map(function(t){var i=t.halfedges.map(function(i){return ypt(t,n[i])});return i.data=t.site.data,i})},triangles:function(){var n=[],t=this.edges;return this.cells.forEach(function(i,r){if(c=(h=i.halfedges).length)for(var h,c,e,o,l,a,s=i.site,v=-1,u=t[h[c-1]],f=u.left===s?u.right:u.left;++v<c;)e=f,f=(u=t[h[v]]).left===s?u.right:u.left,e&&f&&r<e.index&&r<f.index&&(l=e,a=f,((o=s)[0]-a[0])*(l[1]-o[1])-(o[0]-l[0])*(a[1]-o[1])<0)&&n.push([s.data,e.data,f.data])}),n},links:function(){return this.edges.filter(function(n){return n.right}).map(function(n){return{source:n.left.data,target:n.right.data}})},find:function(n,t,i){for(var o,r,u=this,f=u._found||0,c=u.cells.length;!(r=u.cells[f]);)if(++f>=c)return null;var s=n-r.site[0],h=t-r.site[1],e=s*s+h*h;do r=u.cells[o=f],f=null,r.halfedges.forEach(function(i){var s=u.edges[i],o=s.left;if(o!==r.site&&o||(o=s.right)){var h=n-o[0],c=t-o[1],l=h*h+c*c;l<e&&(e=l,f=o.index)}});while(null!==f);return u._found=o,null==i||e<=i*i?r.site:null}};ur.prototype={constructor:ur,scale:function(n){return 1===n?this:new ur(this.k*n,this.x,this.y)},translate:function(n,t){return 0===n&0===t?this:new ur(this.k,this.x+this.k*n,this.y+this.k*t)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};hh=new ur(1,0,0);kpt.prototype=ur.prototype;n.version="5.6.0";n.bisect=nu;n.bisectRight=nu;n.bisectLeft=gpt;n.ascending=fr;n.bisector=np;n.cross=function(n,t,i){var r,u,f,e,o=n.length,s=t.length,h=new Array(o*s);for(null==i&&(i=ett),r=f=0;r<o;++r)for(e=n[r],u=0;u<s;++u,++f)h[f]=i(e,t[u]);return h};n.descending=function(n,t){return t<n?-1:t>n?1:t>=n?0:NaN};n.deviation=stt;n.extent=tp;n.histogram=function(){function n(n){for(var l,a=n.length,h=new Array(a),e,y,c,u=0;u<a;++u)h[u]=t(n[u],u,n);var v=i(h),o=v[0],s=v[1],f=r(h,o,s);for(Array.isArray(f)||(f=tu(o,s,f),f=yt(Math.ceil(o/f)*f,Math.floor(s/f)*f,f)),e=f.length;f[0]<=o;)f.shift(),--e;for(;f[e-1]>s;)f.pop(),--e;for(c=new Array(e+1),u=0;u<=e;++u)(y=c[u]=[]).x0=u>0?f[u-1]:o,y.x1=u<e?f[u]:s;for(u=0;u<a;++u)o<=(l=h[u])&&l<=s&&c[nu(f,l,0,e)].push(n[u]);return c}var t=iwt,i=tp,r=ep;return n.value=function(i){return arguments.length?(t="function"==typeof i?i:lh(i),n):t},n.domain=function(t){return arguments.length?(i="function"==typeof t?t:lh([t[0],t[1]]),n):i},n.thresholds=function(t){return arguments.length?(r="function"==typeof t?t:Array.isArray(t)?lh(nwt.call(t)):lh(t),n):r},n};n.thresholdFreedmanDiaconis=function(n,t,i){return n=twt.call(n,er).sort(fr),Math.ceil((i-t)/(2*(ve(n,.75)-ve(n,.25))*Math.pow(n.length,-1/3)))};n.thresholdScott=function(n,t,i){return Math.ceil((i-t)/(3.5*stt(n)*Math.pow(n.length,-1/3)))};n.thresholdSturges=ep;n.max=ctt;n.mean=function(n,t){var r,f=n.length,u=f,i=-1,e=0;if(null==t)for(;++i<f;)isNaN(r=er(n[i]))?--u:e+=r;else for(;++i<f;)isNaN(r=er(t(n[i],i,n)))?--u:e+=r;if(u)return e/u};n.median=function(n,t){var r,f=n.length,i=-1,u=[];if(null==t)for(;++i<f;)isNaN(r=er(n[i]))||u.push(r);else for(;++i<f;)isNaN(r=er(t(n[i],i,n)))||u.push(r);return ve(u.sort(fr),.5)};n.merge=op;n.min=ltt;n.pairs=function(n,t){null==t&&(t=ett);for(var i=0,r=n.length-1,u=n[0],f=new Array(r<0?0:r);i<r;)f[i]=t(u,u=n[++i]);return f};n.permute=function(n,t){for(var i=t.length,r=new Array(i);i--;)r[i]=n[t[i]];return r};n.quantile=ve;n.range=yt;n.scan=function(n,t){if(f=n.length){var f,e,r=0,u=0,i=n[u];for(null==t&&(t=fr);++r<f;)(t(e=n[r],i)<0||0!==t(i,i))&&(i=e,u=r);return 0===t(i,i)?u:void 0}};n.shuffle=function(n,t,i){for(var f,u,r=(null==i?n.length:i)-(t=null==t?0:+t);r;)u=Math.random()*r--|0,f=n[r+t],n[r+t]=n[u+t],n[u+t]=f;return n};n.sum=function(n,t){var r,f=n.length,i=-1,u=0;if(null==t)for(;++i<f;)(r=+n[i])&&(u+=r);else for(;++i<f;)(r=+t(n[i],i,n))&&(u+=r);return u};n.ticks=fp;n.tickIncrement=ae;n.tickStep=tu;n.transpose=att;n.variance=ott;n.zip=function(){return att(arguments)};n.axisTop=function(n){return yh(ah,n)};n.axisRight=function(n){return yh(vh,n)};n.axisBottom=function(n){return yh(hp,n)};n.axisLeft=function(n){return yh(ye,n)};n.brush=function(){return ob(gkt)};n.brushX=function(){return ob(fl)};n.brushY=function(){return ob(el)};n.brushSelection=function(n){var t=n.__brush;return t?t.dim.output(t.selection):null};n.chord=function(){function n(n){for(var o,k,d,s,f=n.length,v=[],g=yt(f),p=[],y=[],tt=y.groups=new Array(f),w=new Array(f*f),l,a,c=0,e=-1;++e<f;){for(o=0,s=-1;++s<f;)o+=n[e][s];v.push(o);p.push(yt(f));c+=o}for(r&&g.sort(function(n,t){return r(v[n],v[t])}),u&&p.forEach(function(t,i){t.sort(function(t,r){return u(n[i][t],n[i][r])})}),d=(c=aft(0,lft-i*f)/c)?i:lft/f,o=0,e=-1;++e<f;){for(k=o,s=-1;++s<f;){var h=g[e],b=p[h][s],nt=n[h][b],it=o,rt=o+=nt*c;w[b*f+h]={index:h,subindex:b,startAngle:it,endAngle:rt,value:nt}}tt[h]={index:h,startAngle:k,endAngle:o,value:v[h]};o+=d}for(e=-1;++e<f;)for(s=e-1;++s<f;)l=w[s*f+e],a=w[e*f+s],(l.value||a.value)&&y.push(l.value<a.value?{source:a,target:l}:{source:l,target:a});return t?y.sort(t):y}var i=0,r=null,u=null,t=null;return n.padAngle=function(t){return arguments.length?(i=aft(0,t),n):i},n.sortGroups=function(t){return arguments.length?(r=t,n):r},n.sortSubgroups=function(t){return arguments.length?(u=t,n):u},n.sortChords=function(i){return arguments.length?(null==i?t=null:(r=i,t=function(n,t){return r(n.source.value+n.target.value,t.source.value+t.target.value)})._=i,n):t&&t._;var r},n};n.ribbon=function(){function n(){var h,n=udt.call(arguments),w=f.apply(this,n),b=e.apply(this,n),c=+i.apply(this,(n[0]=w,n)),o=r.apply(this,n)-ol,a=u.apply(this,n)-ol,v=c*sft(o),y=c*hft(o),l=+i.apply(this,(n[0]=b,n)),s=r.apply(this,n)-ol,p=u.apply(this,n)-ol;if(t||(t=h=cr()),t.moveTo(v,y),t.arc(0,0,c,o,a),o===s&&a===p||(t.quadraticCurveTo(0,0,l*sft(s),l*hft(s)),t.arc(0,0,l,s,p)),t.quadraticCurveTo(0,0,v,y),t.closePath(),h)return t=null,h+""||null}var f=edt,e=odt,i=sdt,r=hdt,u=cdt,t=null;return n.radius=function(t){return arguments.length?(i="function"==typeof t?t:sb(+t),n):i},n.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:sb(+t),n):r},n.endAngle=function(t){return arguments.length?(u="function"==typeof t?t:sb(+t),n):u},n.source=function(t){return arguments.length?(f=t,n):f},n.target=function(t){return arguments.length?(e=t,n):e},n.context=function(i){return arguments.length?(t=null==i?null:i,n):t},n};n.nest=function(){function r(t,f,e,o){if(f>=n.length)return null!=u&&t.sort(u),null!=i?i(t):t;for(var c,s,l,a=-1,y=t.length,p=n[f++],h=ki(),v=e();++a<y;)(l=h.get(c=p(s=t[a])+""))?l.push(s):h.set(c,[s]);return h.each(function(n,t){o(v,t,r(n,f,e,o))}),v}var u,i,t,n=[],f=[];return t={object:function(n){return r(n,0,ldt,adt)},map:function(n){return r(n,0,vft,yft)},entries:function(t){return function t(r,u){if(++u>n.length)return r;var e,o=f[u-1];return null!=i&&u>=n.length?e=r.entries():(e=[],r.each(function(n,i){e.push({key:i,values:t(n,u)})})),null!=o?e.sort(function(n,t){return o(n.key,t.key)}):e}(r(t,0,vft,yft),0)},key:function(i){return n.push(i),t},sortKeys:function(i){return f[n.length-1]=i,t},sortValues:function(n){return u=n,t},rollup:function(n){return i=n,t}}};n.set=pft;n.map=ki;n.keys=function(n){var t=[],i;for(i in n)t.push(i);return t};n.values=function(n){var t=[],i;for(i in n)t.push(n[i]);return t};n.entries=function(n){var i=[],t;for(t in n)i.push({key:t,value:n[t]});return i};n.color=hr;n.rgb=rf;n.hsl=oc;n.lab=sc;n.hcl=hc;n.lch=function(n,t,i,r){return 1===arguments.length?pit(n):new hi(i,t,n,null==r?1:r)};n.gray=function(n,t){return new ri(n,0,0,null==t?1:t)};n.cubehelix=ui;n.contours=wft;n.contourDensity=function(){function r(r){var e=new Float32Array(n*i),a=new Float32Array(n*i),o,y;return r.forEach(function(r,u,o){var l=+s(r,u,o)+f>>t,a=+h(r,u,o)+f>>t,v=+c(r,u,o);l>=0&&l<n&&a>=0&&a<i&&(e[l+a*n]+=v)}),vb({width:n,height:i,data:e},{width:n,height:i,data:a},u>>t),yb({width:n,height:i,data:a},{width:n,height:i,data:e},u>>t),vb({width:n,height:i,data:e},{width:n,height:i,data:a},u>>t),yb({width:n,height:i,data:a},{width:n,height:i,data:e},u>>t),vb({width:n,height:i,data:e},{width:n,height:i,data:a},u>>t),yb({width:n,height:i,data:a},{width:n,height:i,data:e},u>>t),o=l(e),Array.isArray(o)||(y=ctt(e),o=tu(0,y,o),(o=yt(0,Math.floor(y/o)*o,o)).shift()),wft().thresholds(o).size([n,i])(e).map(v)}function v(n){return n.value*=Math.pow(2,-2*t),n.coordinates.forEach(y),n}function y(n){n.forEach(p)}function p(n){n.forEach(w)}function w(n){n[0]=n[0]*Math.pow(2,t)-f;n[1]=n[1]*Math.pow(2,t)-f}function a(){return n=e+2*(f=3*u)>>t,i=o+2*f>>t,r}var s=kdt,h=ddt,c=gdt,e=960,o=500,u=20,t=2,f=3*u,n=e+2*f>>t,i=o+2*f>>t,l=ar(20);return r.x=function(n){return arguments.length?(s="function"==typeof n?n:ar(+n),r):s},r.y=function(n){return arguments.length?(h="function"==typeof n?n:ar(+n),r):h},r.weight=function(n){return arguments.length?(c="function"==typeof n?n:ar(+n),r):c},r.size=function(n){if(!arguments.length)return[e,o];var t=Math.ceil(n[0]),i=Math.ceil(n[1]);if(!(t>=0||t>=0))throw new Error("invalid size");return e=t,o=i,a()},r.cellSize=function(n){if(!arguments.length)return 1<<t;if(!((n=+n)>=1))throw new Error("invalid cell size");return t=Math.floor(Math.log(n)/Math.LN2),a()},r.thresholds=function(n){return arguments.length?(l="function"==typeof n?n:Array.isArray(n)?ar(ab.call(n)):ar(n),r):l},r.bandwidth=function(n){if(!arguments.length)return Math.sqrt(u*(u+1));if(!((n=+n)>=0))throw new Error("invalid bandwidth");return u=Math.round((Math.sqrt(4*n*n+1)-1)/2),a()},r};n.dispatch=iu;n.drag=function(){function t(n){n.on("mousedown.drag",p).filter(c).on("touchstart.drag",k).on("touchmove.drag",d).on("touchend.drag touchcancel.drag",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(){if(!r&&f.apply(this,arguments)){var t=y("mouse",e.apply(this,arguments),or,this,arguments);t&&(at(n.event.view).on("mousemove.drag",w,!0).on("mouseup.drag",b,!0),uc(n.event.view),kp(),u=!1,a=n.event.clientX,v=n.event.clientY,t("start"))}}function w(){if(gu(),!u){var t=n.event.clientX-a,r=n.event.clientY-v;u=t*t+r*r>l}i.mouse("drag")}function b(){at(n.event.view).on("mousemove.drag mouseup.drag",null);fc(n.event.view,u);gu();i.mouse("end")}function k(){if(f.apply(this,arguments))for(var i,r=n.event.changedTouches,u=e.apply(this,arguments),o=r.length,t=0;t<o;++t)(i=y(r[t].identifier,u,rc,this,arguments))&&(kp(),i("start"))}function d(){for(var r,u=n.event.changedTouches,f=u.length,t=0;t<f;++t)(r=i[u[t].identifier])&&(gu(),r("drag"))}function g(){var t,u,f=n.event.changedTouches,e=f.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),t=0;t<e;++t)(u=i[f[t].identifier])&&(kp(),u("end"))}function y(r,u,f,e,c){var a,y,p,l=f(u,r),v=o.copy();if(we(new dp(t,"beforestart",a,r,s,l[0],l[1],0,0,v),function(){return null!=(n.event.subject=a=h.apply(e,c))&&(y=a.x-l[0]||0,p=a.y-l[1]||0,!0)}))return function n(o){var h,w=l;switch(o){case"start":i[r]=n;h=s++;break;case"end":delete i[r];--s;case"drag":l=f(u,r);h=s}we(new dp(t,o,a,r,h,l[0]+y,l[1]+p,l[0]-w[0],l[1]-w[1],v),v.apply,v,[o,e,c])}}var a,v,u,r,f=fbt,e=ebt,h=obt,c=sbt,i={},o=iu("start","drag","end"),s=0,l=0;return t.filter=function(n){return arguments.length?(f="function"==typeof n?n:ec(!!n),t):f},t.container=function(n){return arguments.length?(e="function"==typeof n?n:ec(n),t):e},t.subject=function(n){return arguments.length?(h="function"==typeof n?n:ec(n),t):h},t.touchable=function(n){return arguments.length?(c="function"==typeof n?n:ec(!!n),t):c},t.on=function(){var n=o.on.apply(o,arguments);return n===o?t:n},t.clickDistance=function(n){return arguments.length?(l=(n=+n)*n,t):Math.sqrt(l)},t};n.dragDisable=uc;n.dragEnable=fc;n.dsvFormat=cl;n.csvParse=dft;n.csvParseRows=ngt;n.csvFormat=tgt;n.csvFormatRows=igt;n.tsvParse=gft;n.tsvParseRows=rgt;n.tsvFormat=ugt;n.tsvFormatRows=fgt;n.easeLinear=function(n){return+n};n.easeQuad=yut;n.easeQuadIn=function(n){return n*n};n.easeQuadOut=function(n){return n*(2-n)};n.easeQuadInOut=yut;n.easeCubic=tb;n.easeCubicIn=function(n){return n*n*n};n.easeCubicOut=function(n){return--n*n*n+1};n.easeCubicInOut=tb;n.easePoly=put;n.easePolyIn=ukt;n.easePolyOut=fkt;n.easePolyInOut=put;n.easeSin=kut;n.easeSinIn=function(n){return 1-Math.cos(n*but)};n.easeSinOut=function(n){return Math.sin(n*but)};n.easeSinInOut=kut;n.easeExp=dut;n.easeExpIn=function(n){return Math.pow(2,10*n-10)};n.easeExpOut=function(n){return 1-Math.pow(2,-10*n)};n.easeExpInOut=dut;n.easeCircle=gut;n.easeCircleIn=function(n){return 1-Math.sqrt(1-n*n)};n.easeCircleOut=function(n){return Math.sqrt(1- --n*n)};n.easeCircleInOut=gut;n.easeBounce=oo;n.easeBounceIn=function(n){return 1-oo(1-n)};n.easeBounceOut=oo;n.easeBounceInOut=function(n){return((n*=2)<=1?1-oo(1-n):oo(n-1)+1)/2};n.easeBack=nft;n.easeBackIn=ykt;n.easeBackOut=pkt;n.easeBackInOut=nft;n.easeElastic=tft;n.easeElasticIn=wkt;n.easeElasticOut=tft;n.easeElasticInOut=bkt;n.blob=function(n,t){return fetch(n,t).then(egt)};n.buffer=function(n,t){return fetch(n,t).then(ogt)};n.dsv=function(n,t,i,r){3===arguments.length&&"function"==typeof i&&(r=i,i=void 0);var u=cl(n);return vl(t,i).then(function(n){return u.parse(n,r)})};n.csv=tet;n.tsv=iet;n.image=function(n,t){return new Promise(function(i,r){var u=new Image,f;for(f in t)u[f]=t[f];u.onerror=r;u.onload=function(){i(u)};u.src=n})};n.json=function(n,t){return fetch(n,t).then(hgt)};n.text=vl;n.xml=cgt;n.html=lgt;n.svg=agt;n.forceCenter=function(n,t){function i(){for(var u,f=r.length,e=0,o=0,i=0;i<f;++i)e+=(u=r[i]).x,o+=u.y;for(e=e/f-n,o=o/f-t,i=0;i<f;++i)(u=r[i]).x-=e,u.y-=o}var r;return null==n&&(n=0),null==t&&(t=0),i.initialize=function(n){r=n},i.x=function(t){return arguments.length?(n=+t,i):n},i.y=function(n){return arguments.length?(t=+n,i):t},i};n.forceCollide=function(n){function i(){function y(t,i,r,f,o){var v=t.data,w=t.r,c=h+w;if(!v)return i>e+c||f<e-c||r>s+c||o<s-c;if(v.index>n.index){var y=e-v.x-v.vx,p=s-v.y-v.vy,a=y*y+p*p;a<c*c&&(0===y&&(a+=(y=vr())*y),0===p&&(a+=(p=vr())*p),a=(c-(a=Math.sqrt(a)))/a*u,n.vx+=(y*=a)*(c=(w*=w)/(l+w)),n.vy+=(p*=a)*c,v.vx-=y*(c=1-c),v.vy-=p*c)}}for(var i,c,n,e,s,h,l,v=t.length,a=0;a<f;++a)for(c=yl(t,pgt,wgt).visitAfter(o),i=0;i<v;++i)n=t[i],h=r[n.index],l=h*h,e=n.x+n.vx,s=n.y+n.vy,c.visit(y)}function o(n){if(n.data)return n.r=r[n.data.index];for(var t=n.r=0;t<4;++t)n[t]&&n[t].r>n.r&&(n.r=n[t].r)}function e(){if(t){var i,u,f=t.length;for(r=new Array(f),i=0;i<f;++i)u=t[i],r[u.index]=+n(u,i,t)}}var t,r,u=1,f=1;return"function"!=typeof n&&(n=b(null==n?1:+n)),i.initialize=function(n){t=n;e()},i.iterations=function(n){return arguments.length?(f=+n,i):f},i.strength=function(n){return arguments.length?(u=+n,i):u},i.radius=function(t){return arguments.length?(n="function"==typeof t?t:b(+t),e(),i):n},i};n.forceLink=function(n){function t(t){for(var p,i,o,s,h,a,l,r,v=0,y=n.length;v<c;++v)for(r=0;r<y;++r)i=(p=n[r]).source,s=(o=p.target).x+o.vx-i.x-i.vx||vr(),h=o.y+o.vy-i.y-i.vy||vr(),s*=a=((a=Math.sqrt(s*s+h*h))-f[r])/a*t*u[r],h*=a,o.vx-=s*(l=e[r]),o.vy-=h*l,i.vx+=s*(l=1-l),i.vy+=h*l}function l(){if(r){var s,t,l=r.length,h=n.length,c=ki(r,o);for(s=0,i=new Array(l);s<h;++s)(t=n[s]).index=s,"object"!=typeof t.source&&(t.source=fet(c,t.source)),"object"!=typeof t.target&&(t.target=fet(c,t.target)),i[t.source.index]=(i[t.source.index]||0)+1,i[t.target.index]=(i[t.target.index]||0)+1;for(s=0,e=new Array(h);s<h;++s)t=n[s],e[s]=i[t.source.index]/(i[t.source.index]+i[t.target.index]);u=new Array(h);a();f=new Array(h);v()}}function a(){if(r)for(var t=0,i=n.length;t<i;++t)u[t]=+s(n[t],t,n)}function v(){if(r)for(var t=0,i=n.length;t<i;++t)f[t]=+h(n[t],t,n)}var u,f,r,i,e,o=bgt,s=function(n){return 1/Math.min(i[n.source.index],i[n.target.index])},h=b(30),c=1;return null==n&&(n=[]),t.initialize=function(n){r=n;l()},t.links=function(i){return arguments.length?(n=i,l(),t):n},t.id=function(n){return arguments.length?(o=n,t):o},t.iterations=function(n){return arguments.length?(c=+n,t):c},t.strength=function(n){return arguments.length?(s="function"==typeof n?n:b(+n),a(),t):s},t.distance=function(n){return arguments.length?(h="function"==typeof n?n:b(+n),v(),t):h},t};n.forceManyBody=function(){function n(n){var r,f=i.length,e=yl(i,kgt,dgt).visitAfter(c);for(u=n,r=0;r<f;++r)t=i[r],e.visit(l)}function h(){if(i){var n,t,r=i.length;for(f=new Array(r),n=0;n<r;++n)t=i[n],f[t.index]=+o(t,n,i)}}function c(n){var t,i,u,e,r,o=0,s=0;if(n.length){for(u=e=r=0;r<4;++r)(t=n[r])&&(i=Math.abs(t.value))&&(o+=t.value,s+=i,u+=i*t.x,e+=i*t.y);n.x=u/s;n.y=e/s}else{(t=n).x=t.data.x;t.y=t.data.y;do o+=f[t.data.index];while(t=t.next)}n.value=o}function l(n,i,o,h){if(!n.value)return!0;var l=n.x-t.x,a=n.y-t.y,v=h-i,c=l*l+a*a;if(v*v/s<c)return c<e&&(0===l&&(c+=(l=vr())*l),0===a&&(c+=(a=vr())*a),c<r&&(c=Math.sqrt(r*c)),t.vx+=l*n.value*u/c,t.vy+=a*n.value*u/c),!0;if(!(n.length||c>=e)){(n.data!==t||n.next)&&(0===l&&(c+=(l=vr())*l),0===a&&(c+=(a=vr())*a),c<r&&(c=Math.sqrt(r*c)));do n.data!==t&&(v=f[n.data.index]*u/c,t.vx+=l*v,t.vy+=a*v);while(n=n.next)}}var i,t,u,f,o=b(-30),r=1,e=1/0,s=.81;return n.initialize=function(n){i=n;h()},n.strength=function(t){return arguments.length?(o="function"==typeof t?t:b(+t),h(),n):o},n.distanceMin=function(t){return arguments.length?(r=t*t,n):Math.sqrt(r)},n.distanceMax=function(t){return arguments.length?(e=t*t,n):Math.sqrt(e)},n.theta=function(t){return arguments.length?(s=t*t,n):Math.sqrt(s)},n};n.forceRadial=function(n,t,i){function r(n){for(var r=0,c=u.length;r<c;++r){var o=u[r],s=o.x-t||1e-6,h=o.y-i||1e-6,l=Math.sqrt(s*s+h*h),a=(f[r]-l)*e[r]*n/l;o.vx+=s*a;o.vy+=h*a}}function s(){if(u){var t,i=u.length;for(e=new Array(i),f=new Array(i),t=0;t<i;++t)f[t]=+n(u[t],t,u),e[t]=isNaN(f[t])?0:+o(u[t],t,u)}}var u,e,f,o=b(.1);return"function"!=typeof n&&(n=b(+n)),null==t&&(t=0),null==i&&(i=0),r.initialize=function(n){u=n;s()},r.strength=function(n){return arguments.length?(o="function"==typeof n?n:b(+n),s(),r):o},r.radius=function(t){return arguments.length?(n="function"==typeof t?t:b(+t),s(),r):n},r.x=function(n){return arguments.length?(t=+n,r):t},r.y=function(n){return arguments.length?(i=+n,r):i},r};n.forceSimulation=function(n){function c(){l();e.call("tick",t);i<u&&(h.stop(),e.call("end",t))}function l(){var u,t,e=n.length;for(i+=(s-i)*o,r.each(function(n){n(i)}),u=0;u<e;++u)null==(t=n[u]).fx?t.x+=t.vx*=f:(t.x=t.fx,t.vx=0),null==t.fy?t.y+=t.vy*=f:(t.y=t.fy,t.vy=0)}function a(){for(var t,r,u,i=0,f=n.length;i<f;++i)((t=n[i]).index=i,isNaN(t.x)||isNaN(t.y))&&(r=eet*Math.sqrt(i),u=i*oet,t.x=r*Math.cos(u),t.y=r*Math.sin(u)),(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}function v(t){return t.initialize&&t.initialize(n),t}var t,i=1,u=.001,o=1-Math.pow(u,1/300),s=0,f=.6,r=ki(),h=gc(c),e=iu("tick","end");return null==n&&(n=[]),a(),t={tick:l,restart:function(){return h.restart(c),t},stop:function(){return h.stop(),t},nodes:function(i){return arguments.length?(n=i,a(),r.each(v),t):n},alpha:function(n){return arguments.length?(i=+n,t):i},alphaMin:function(n){return arguments.length?(u=+n,t):u},alphaDecay:function(n){return arguments.length?(o=+n,t):+o},alphaTarget:function(n){return arguments.length?(s=+n,t):s},velocityDecay:function(n){return arguments.length?(f=1-n,t):1-f},force:function(n,i){return arguments.length>1?(null==i?r.remove(n):r.set(n,v(i)),t):r.get(n)},find:function(t,i,r){var e,o,s,f,h,u=0,c=n.length;for(null==r?r=1/0:r*=r,u=0;u<c;++u)(s=(e=t-(f=n[u]).x)*e+(o=i-f.y)*o)<r&&(h=f,r=s);return h},on:function(n,i){return arguments.length>1?(e.on(n,i),t):e.on(n)}}};n.forceX=function(n){function i(n){for(var f,i=0,e=t.length;i<e;++i)(f=t[i]).vx+=(u[i]-f.x)*r[i]*n}function e(){if(t){var i,e=t.length;for(r=new Array(e),u=new Array(e),i=0;i<e;++i)r[i]=isNaN(u[i]=+n(t[i],i,t))?0:+f(t[i],i,t)}}var t,r,u,f=b(.1);return"function"!=typeof n&&(n=b(null==n?0:+n)),i.initialize=function(n){t=n;e()},i.strength=function(n){return arguments.length?(f="function"==typeof n?n:b(+n),e(),i):f},i.x=function(t){return arguments.length?(n="function"==typeof t?t:b(+t),e(),i):n},i};n.forceY=function(n){function i(n){for(var f,i=0,e=t.length;i<e;++i)(f=t[i]).vy+=(u[i]-f.y)*r[i]*n}function e(){if(t){var i,e=t.length;for(r=new Array(e),u=new Array(e),i=0;i<e;++i)r[i]=isNaN(u[i]=+n(t[i],i,t))?0:+f(t[i],i,t)}}var t,r,u,f=b(.1);return"function"!=typeof n&&(n=b(null==n?0:+n)),i.initialize=function(n){t=n;e()},i.strength=function(n){return arguments.length?(f="function"==typeof n?n:b(+n),e(),i):f},i.y=function(t){return arguments.length?(n="function"==typeof t?t:b(+t),e(),i):n},i};n.formatDefaultLocale=yet;n.formatLocale=vet;n.formatSpecifier=co;n.precisionFixed=pet;n.precisionPrefix=wet;n.precisionRound=bet;n.geoArea=function(n){return ia.reset(),ei(n,ai),2*ia};n.geoBounds=function(n){var r,f,t,i,u,e,o;if(gt=w=-(p=bt=1/0),pr=[],ei(n,vi),f=pr.length){for(pr.sort(unt),r=1,u=[t=pr[0]];r<f;++r)yot(t,(i=pr[r])[0])||yot(t,i[1])?(kt(t[0],i[1])>kt(t[0],t[1])&&(t[1]=i[1]),kt(i[0],t[1])>kt(t[0],t[1])&&(t[0]=i[0])):u.push(t=i);for(e=-1/0,r=0,t=u[f=u.length-1];r<=f;t=i,++r)i=u[r],(o=kt(t[1],i[0]))>e&&(e=o,p=i[0],w=t[1])}return pr=di=null,p===1/0||bt===1/0?[[NaN,NaN],[NaN,NaN]]:[[p,bt],[w,gt]]};n.geoCentroid=function(n){oa=sa=ha=ca=la=aa=va=ya=lk=ak=vk=0;ei(n,ni);var t=lk,r=ak,u=vk,f=t*t+r*r+u*u;return f<det&&(t=aa,r=va,u=ya,sa<i&&(t=ha,r=ca,u=la),(f=t*t+r*r+u*u)<det)?[NaN,NaN]:[st(r,t)*a,wt(u/k(f))*a]};n.geoCircle=function(){function n(){var n=r.apply(this,arguments),s=f.apply(this,arguments)*u,h=e.apply(this,arguments)*u;return t=[],i=kk(-n[0]*u,-n[1]*u,0).invert,tst(o,s,h,1),n={type:"Polygon",coordinates:[t]},t=i=null,n}var t,i,r=wf([0,0]),f=wf(90),e=wf(6),o={point:function(n,r){t.push(n=i(n,r));n[0]*=a;n[1]*=a}};return n.center=function(t){return arguments.length?(r="function"==typeof t?t:wf([+t[0],+t[1]]),n):r},n.radius=function(t){return arguments.length?(f="function"==typeof t?t:wf(+t),n):f},n.precision=function(t){return arguments.length?(e="function"==typeof t?t:wf(+t),n):e},n};n.geoClipAntimeridian=ka;n.geoClipCircle=sst;n.geoClipExtent=function(){var n,t,e,i=0,r=0,u=960,f=500;return e={stream:function(e){return n&&t===e?n:n=da(i,r,u,f)(t=e)},extent:function(o){return arguments.length?(i=+o[0][0],r=+o[0][1],u=+o[1][0],f=+o[1][1],n=t=null,e):[[i,r],[u,f]]}}};n.geoClipRectangle=da;n.geoContains=function(n,t){return(n&&gk.hasOwnProperty(n.type)?gk[n.type]:rv)(n,t)};n.geoDistance=po;n.geoGraticule=bst;n.geoGraticule10=function(){return bst()()};n.geoInterpolate=function(n,i){var e=n[0]*u,o=n[1]*u,s=i[0]*u,h=i[1]*u,c=r(o),p=t(o),l=r(h),w=t(h),b=c*r(e),d=c*t(e),g=l*r(s),nt=l*t(s),f=2*wt(k(tot(h-o)+c*l*tot(s-e))),v=t(f),y=f?function(n){var i=t(n*=f)/v,r=t(f-n)/v,u=r*b+i*g,e=r*d+i*nt,o=r*p+i*w;return[st(e,u)*a,st(o,k(u*u+e*e))*a]}:function(){return[e*a,o*a]};return y.distance=f,y};n.geoLength=hst;n.geoPath=function(n,t){function i(n){return n&&("function"==typeof f&&u.pointRadius(+f.apply(this,arguments)),ei(n,r(u))),u.result()}var r,u,f=4.5;return i.area=function(n){return ei(n,r(gi)),gi.result()},i.measure=function(n){return ei(n,r(gf)),gf.result()},i.bounds=function(n){return ei(n,r(ev)),ev.result()},i.centroid=function(n){return ei(n,r(ti)),ti.result()},i.projection=function(t){return arguments.length?(r=null==t?(n=null,vu):(n=t).stream,i):n},i.context=function(n){return arguments.length?(u=null==n?(t=null,new hht):new fht(t=n),"function"!=typeof f&&u.pointRadius(f),i):t},i.pointRadius=function(n){return arguments.length?(f="function"==typeof n?n:(u.pointRadius(+n),+n),i):f},i.projection(n).context(t)};n.geoAlbers=wht;n.geoAlbersUsa=function(){function n(n){var t=n[0],i=n[1];return r=null,h.point(t,i),r||(c.point(t,i),r)||(l.point(t,i),r)}function a(){return e=o=null,n}var e,o,h,c,l,r,t=wht(),u=lv().rotate([154,0]).center([-2,58.5]).parallels([55,65]),f=lv().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(n,t){r=[n,t]}};return n.invert=function(n){var e=t.scale(),o=t.translate(),i=(n[0]-o[0])/e,r=(n[1]-o[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?u:r>=.166&&r<.234&&i>=-.214&&i<-.115?f:t).invert(n)},n.stream=function(n){return e&&o===n?e:(i=[t.stream(o=n),u.stream(n),f.stream(n)],r=i.length,e={point:function(n,t){for(var u=-1;++u<r;)i[u].point(n,t)},sphere:function(){for(var n=-1;++n<r;)i[n].sphere()},lineStart:function(){for(var n=-1;++n<r;)i[n].lineStart()},lineEnd:function(){for(var n=-1;++n<r;)i[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<r;)i[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<r;)i[n].polygonEnd()}});var i,r},n.precision=function(n){return arguments.length?(t.precision(n),u.precision(n),f.precision(n),a()):t.precision()},n.scale=function(i){return arguments.length?(t.scale(i),u.scale(.35*i),f.scale(i),n.translate(t.translate())):t.scale()},n.translate=function(n){if(!arguments.length)return t.translate();var r=t.scale(),e=+n[0],o=+n[1];return h=t.translate(n).clipExtent([[e-.455*r,o-.238*r],[e+.455*r,o+.238*r]]).stream(s),c=u.translate([e-.307*r,o+.201*r]).clipExtent([[e-.425*r+i,o+.12*r+i],[e-.214*r-i,o+.234*r-i]]).stream(s),l=f.translate([e-.205*r,o+.212*r]).clipExtent([[e-.214*r+i,o+.166*r+i],[e-.115*r-i,o+.234*r-i]]).stream(s),a()},n.fitExtent=function(t,i){return cv(n,t,i)},n.fitSize=function(t,i){return ad(n,t,i)},n.fitWidth=function(t,i){return vd(n,t,i)},n.fitHeight=function(t,i){return yd(n,t,i)},n.scale(1070)};n.geoAzimuthalEqualArea=function(){return nr(av).scale(124.75).clipAngle(179.999)};n.geoAzimuthalEqualAreaRaw=av;n.geoAzimuthalEquidistant=function(){return nr(vv).scale(79.4188).clipAngle(179.999)};n.geoAzimuthalEquidistantRaw=vv;n.geoConicConformal=function(){return bd(dht).scale(109.5).parallels([30,30])};n.geoConicConformalRaw=dht;n.geoConicEqualArea=lv;n.geoConicEqualAreaRaw=pht;n.geoConicEquidistant=function(){return bd(ght).scale(131.154).center([0,13.9389])};n.geoConicEquidistantRaw=ght;n.geoEquirectangular=function(){return nr(us).scale(152.63)};n.geoEquirectangularRaw=us;n.geoGnomonic=function(){return nr(kd).scale(144.049).clipAngle(60)};n.geoGnomonicRaw=kd;n.geoIdentity=function(){function i(){return a=y=null,t}var h,c,l,a,y,t,n=1,r=0,u=0,f=1,e=1,o=vu,s=null,v=vu;return t={stream:function(n){return a&&y===n?a:a=o(v(y=n))},postclip:function(n){return arguments.length?(v=n,s=h=c=l=null,i()):v},clipExtent:function(n){return arguments.length?(v=null==n?(s=h=c=l=null,vu):da(s=+n[0][0],h=+n[0][1],c=+n[1][0],l=+n[1][1]),i()):null==s?null:[[s,h],[c,l]]},scale:function(t){return arguments.length?(o=pv((n=+t)*f,n*e,r,u),i()):n},translate:function(t){return arguments.length?(o=pv(n*f,n*e,r=+t[0],u=+t[1]),i()):[r,u]},reflectX:function(t){return arguments.length?(o=pv(n*(f=t?-1:1),n*e,r,u),i()):f<0},reflectY:function(t){return arguments.length?(o=pv(n*f,n*(e=t?-1:1),r,u),i()):e<0},fitExtent:function(n,i){return cv(t,n,i)},fitSize:function(n,i){return ad(t,n,i)},fitWidth:function(n,i){return vd(t,n,i)},fitHeight:function(n,i){return yd(t,n,i)}}};n.geoProjection=nr;n.geoProjectionMutator=wd;n.geoMercator=function(){return kht(rs).scale(961/vt)};n.geoMercatorRaw=rs;n.geoNaturalEarth1=function(){return nr(dd).scale(175.295)};n.geoNaturalEarth1Raw=dd;n.geoOrthographic=function(){return nr(gd).scale(249.5).clipAngle(90+i)};n.geoOrthographicRaw=gd;n.geoStereographic=function(){return nr(ng).scale(250).clipAngle(142)};n.geoStereographicRaw=ng;n.geoTransverseMercator=function(){var n=kht(tg),i=n.center,t=n.rotate;return n.center=function(n){return arguments.length?i([-n[1],n[0]]):[(n=i())[1],-n[0]]},n.rotate=function(n){return arguments.length?t([n[0],n[1],n.length>2?n[2]+90:90]):[(n=t())[0],n[1],n[2]-90]},t([0,0,90]).scale(159.155)};n.geoTransverseMercatorRaw=tg;n.geoRotation=nst;n.geoStream=ei;n.geoTransform=function(n){return{stream:ts(n)}};n.cluster=function(){function n(n){var f,h=0;n.eachAfter(function(n){var t=n.children;t?(n.x=function(n){return n.reduce(fti,0)/n.length}(t),n.y=function(n){return 1+n.reduce(eti,0)}(t)):(n.x=f?h+=r(n,f):0,n.y=0,f=n)});var e=function(n){for(var t;t=n.children;)n=t[0];return n}(n),o=function(n){for(var t;t=n.children;)n=t[t.length-1];return n}(n),s=e.x-r(e,o)/2,c=o.x+r(o,e)/2;return n.eachAfter(u?function(r){r.x=(r.x-n.x)*t;r.y=(n.y-r.y)*i}:function(r){r.x=(r.x-s)/(c-s)*t;r.y=(1-(n.y?r.y/n.y:1))*i})}var r=uti,t=1,i=1,u=!1;return n.separation=function(t){return arguments.length?(r=t,n):r},n.size=function(r){return arguments.length?(u=!1,t=+r[0],i=+r[1],n):u?null:[t,i]},n.nodeSize=function(r){return arguments.length?(u=!0,t=+r[0],i=+r[1],n):u?[t,i]:null},n};n.hierarchy=ig;n.pack=function(){function n(n){return n.x=t/2,n.y=i/2,r?n.eachBefore(hct(r)).eachAfter(ug(u,.5)).eachBefore(cct(1)):n.eachBefore(hct(ati)).eachAfter(ug(pu,1)).eachAfter(ug(u,n.r/Math.min(t,i))).eachBefore(cct(Math.min(t,i)/(2*n.r))),n}var r=null,t=1,i=1,u=pu;return n.radius=function(t){return arguments.length?(r=null==(i=t)?null:kv(i),n):r;var i},n.size=function(r){return arguments.length?(t=+r[0],i=+r[1],n):[t,i]},n.padding=function(t){return arguments.length?(u="function"==typeof t?t:te(+t),n):u},n};n.packSiblings=function(n){return sct(n),n};n.packEnclose=ict;n.partition=function(){function n(n){var f=n.height+1;return n.x0=n.y0=t,n.x1=r,n.y1=i/f,n.eachBefore(function(n,i){return function(r){r.children&&es(r,r.x0,n*(r.depth+1)/i,r.x1,n*(r.depth+2)/i);var u=r.x0,f=r.y0,e=r.x1-t,o=r.y1-t;e<u&&(u=e=(u+e)/2);o<f&&(f=o=(f+o)/2);r.x0=u;r.y0=f;r.x1=e;r.y1=o}}(i,f)),u&&n.eachBefore(lct),n}var r=1,i=1,t=0,u=!1;return n.round=function(t){return arguments.length?(u=!!t,n):u},n.size=function(t){return arguments.length?(r=+t[0],i=+t[1],n):[r,i]},n.padding=function(i){return arguments.length?(t=+i,n):t},n};n.stratify=function(){function n(n){for(var h,e,o,u,f,l,s=n.length,a=new Array(s),c={},r=0;r<s;++r)h=n[r],u=a[r]=new ne(h),null!=(f=t(h,r,n))&&(f+="")&&(c[l=act+(u.id=f)]=l in c?vct:u);for(r=0;r<s;++r)if(u=a[r],null!=(f=i(n[r],r,n))&&(f+="")){if(!(o=c[act+f]))throw new Error("missing: "+f);if(o===vct)throw new Error("ambiguous: "+f);o.children?o.children.push(u):o.children=[u];u.parent=o}else{if(e)throw new Error("multiple roots");e=u}if(!e)throw new Error("no root");if(e.parent=vti,e.eachBefore(function(n){n.depth=n.parent.depth+1;--s}).eachBefore(nct),e.parent=null,s>0)throw new Error("cycle");return e}var t=yti,i=pti;return n.id=function(i){return arguments.length?(t=kv(i),n):t},n.parentId=function(t){return arguments.length?(i=kv(t),n):i},n};n.tree=function(){function n(n){var c=function(n){for(var i,f,u,t,e,r=new dv(n,0),o=[r];i=o.pop();)if(u=i._.children)for(i.children=new Array(e=u.length),t=e-1;t>=0;--t)o.push(f=i.children[t]=new dv(u[t],t)),f.parent=i;return(r.parent=new dv(null,0)).children=[r],r}(n);if(c.eachAfter(f),c.parent.m=-c.z,c.eachBefore(e),u)n.eachBefore(o);else{var s=n,h=n,l=n;n.eachBefore(function(n){n.x<s.x&&(s=n);n.x>h.x&&(h=n);n.depth>l.depth&&(l=n)});var a=s===h?1:t(s,h)/2,v=a-s.x,y=i/(h.x+a+v),p=r/(l.depth||1);n.eachBefore(function(n){n.x=(n.x+v)*y;n.y=n.depth*p})}return n}function f(n){var r=n.children,f=n.parent.children,i=n.i?f[n.i-1]:null,u;r?(!function(n){for(var t,i=0,f=0,r=n.children,u=r.length;--u>=0;)(t=r[u]).z+=i,t.m+=i,i+=t.s+(f+=t.c)}(n),u=(r[0].z+r[r.length-1].z)/2,i?(n.z=i.z+t(n._,i._),n.m=n.z-u):n.z=u):i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,i,r){if(i){for(var s,u=n,e=n,f=i,o=u.parent.children[0],h=u.m,c=e.m,l=f.m,a=o.m;f=eg(f),u=fg(u),f&&u;)o=fg(o),(e=eg(e)).a=n,(s=f.z+l-u.z-h+t(f._,u._))>0&&(bti(kti(f,n,r),n,s),h+=s,c+=s),l+=f.m,h+=u.m,a+=o.m,c+=e.m;f&&!eg(e)&&(e.t=f,e.m+=l-c);u&&!fg(o)&&(o.t=u,o.m+=h-a,r=n)}return r}(n,i,n.parent.A||f[0])}function e(n){n._.x=n.z+n.parent.m;n.m+=n.parent.m}function o(n){n.x*=i;n.y=n.depth*r}var t=wti,i=1,r=1,u=null;return n.separation=function(i){return arguments.length?(t=i,n):t},n.size=function(t){return arguments.length?(u=!1,i=+t[0],r=+t[1],n):u?null:[i,r]},n.nodeSize=function(t){return arguments.length?(u=!0,i=+t[0],r=+t[1],n):u?[i,r]:null},n};n.treemap=function(){function n(n){return n.x0=n.y0=0,n.x1=r,n.y1=u,n.eachBefore(l),f=[0],i&&n.eachBefore(lct),n}function l(n){var i=f[n.depth],r=n.x0+i,u=n.y0+i,l=n.x1-i,a=n.y1-i;l<r&&(r=l=(r+l)/2);a<u&&(u=a=(u+a)/2);n.x0=r;n.y0=u;n.x1=l;n.y1=a;n.children&&(i=f[n.depth+1]=e(n)/2,r+=c(n)-i,u+=o(n)-i,(l-=s(n)-i)<r&&(r=l=(r+l)/2),(a-=h(n)-i)<u&&(u=a=(u+a)/2),t(n,r,u,l,a))}var t=sg,i=!1,r=1,u=1,f=[0],e=pu,o=pu,s=pu,h=pu,c=pu;return n.round=function(t){return arguments.length?(i=!!t,n):i},n.size=function(t){return arguments.length?(r=+t[0],u=+t[1],n):[r,u]},n.tile=function(i){return arguments.length?(t=kv(i),n):t},n.padding=function(t){return arguments.length?n.paddingInner(t).paddingOuter(t):n.paddingInner()},n.paddingInner=function(t){return arguments.length?(e="function"==typeof t?t:te(+t),n):e},n.paddingOuter=function(t){return arguments.length?n.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):n.paddingTop()},n.paddingTop=function(t){return arguments.length?(o="function"==typeof t?t:te(+t),n):o},n.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:te(+t),n):s},n.paddingBottom=function(t){return arguments.length?(h="function"==typeof t?t:te(+t),n):h},n.paddingLeft=function(t){return arguments.length?(c="function"==typeof t?t:te(+t),n):c},n};n.treemapBinary=function(n,t,i,r,u){var e,h,o=n.children,s=o.length,f=new Array(s+1);for(f[0]=h=e=0;e<s;++e)f[e+1]=h+=o[e].value;!function n(t,i,r,u,e,s,h){var a,y,l,v,b,k;if(t>=i-1)return a=o[t],a.x0=u,a.y0=e,a.x1=s,void(a.y1=h);for(var d=f[t],p=r/2+d,c=t+1,w=i-1;c<w;)y=c+w>>>1,f[y]<p?c=y+1:w=y;p-f[c-1]<f[c]-p&&t+1<c&&--c;l=f[c]-d;v=r-l;s-u>h-e?(b=(u*v+s*l)/r,n(t,c,l,u,e,b,h),n(c,i,v,b,e,s,h)):(k=(e*v+h*l)/r,n(t,c,l,u,e,s,k),n(c,i,v,u,k,s,h))}(0,s,n.value,t,i,r,u)};n.treemapDice=es;n.treemapSlice=gv;n.treemapSliceDice=function(n,t,i,r,u){(1&n.depth?gv:es)(n,t,i,r,u)};n.treemapSquarify=sg;n.treemapResquarify=pct;n.interpolate=ge;n.interpolateArray=frt;n.interpolateBasis=nrt;n.interpolateBasisClosed=trt;n.interpolateDate=ert;n.interpolateNumber=pt;n.interpolateObject=ort;n.interpolateRound=srt;n.interpolateString=lw;n.interpolateTransformCss=art;n.interpolateTransformSvg=vrt;n.interpolateZoom=wrt;n.interpolateRgb=ff;n.interpolateRgbBasis=cw;n.interpolateRgbBasisClosed=urt;n.interpolateHsl=krt;n.interpolateHslLong=drt;n.interpolateLab=function(n,t){var i=g((n=sc(n)).l,(t=sc(t)).l),r=g(n.a,t.a),u=g(n.b,t.b),f=g(n.opacity,t.opacity);return function(t){return n.l=i(t),n.a=r(t),n.b=u(t),n.opacity=f(t),n+""}};n.interpolateHcl=nut;n.interpolateHclLong=tut;n.interpolateCubehelix=gbt;n.interpolateCubehelixLong=wc;n.piecewise=function(n,t){for(var r=0,i=t.length-1,u=t[0],f=new Array(i<0?0:i);r<i;)f[r]=n(u,u=t[++r]);return function(n){var t=Math.max(0,Math.min(i-1,Math.floor(n*=i)));return f[t](n-t)}};n.quantize=function(n,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=n(i/(t-1));return r};n.path=cr;n.polygonArea=function(n){for(var i,r=-1,u=n.length,t=n[u-1],f=0;++r<u;)i=t,t=n[r],f+=i[1]*t[0]-i[0]*t[1];return f/2};n.polygonCentroid=function(n){for(var i,r,f=-1,e=n.length,o=0,s=0,t=n[e-1],u=0;++f<e;)i=t,t=n[f],u+=r=i[0]*t[1]-t[0]*i[1],o+=(i[0]+t[0])*r,s+=(i[1]+t[1])*r;return[o/(u*=3),s/u]};n.polygonHull=function(n){var t,r,i,e;if((r=n.length)<3)return null;for(i=new Array(r),e=new Array(r),t=0;t<r;++t)i[t]=[+n[t][0],+n[t][1],t];for(i.sort(dti),t=0;t<r;++t)e[t]=[i[t][0],-i[t][1]];var u=wct(i),f=wct(e),s=f[0]===u[0],h=f[f.length-1]===u[u.length-1],o=[];for(t=u.length-1;t>=0;--t)o.push(n[i[u[t]][2]]);for(t=+s;t<f.length-h;++t)o.push(n[i[f[t]][2]]);return o};n.polygonContains=function(n,t){for(var i,r,h=n.length,u=n[h-1],l=t[0],f=t[1],c=u[0],e=u[1],o=!1,s=0;s<h;++s)i=(u=n[s])[0],(r=u[1])>f!=e>f&&l<(c-i)*(f-r)/(e-r)+i&&(o=!o),c=i,e=r;return o};n.polygonLength=function(n){for(var t,i,u=-1,f=n.length,r=n[f-1],e=r[0],o=r[1],s=0;++u<f;)t=e,i=o,t-=e=(r=n[u])[0],i-=o=r[1],s+=Math.sqrt(t*t+i*i);return s};n.quadtree=yl;n.randomUniform=gti;n.randomNormal=bct;n.randomLogNormal=nii;n.randomBates=tii;n.randomIrwinHall=kct;n.randomExponential=iii;n.scaleBand=ag;n.scalePoint=function(){return function n(t){var i=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return n(i())},t}(ag().paddingInner(1))};n.scaleIdentity=function n(){function t(n){return+n}var i=[0,1];return t.invert=t,t.domain=t.range=function(n){return arguments.length?(i=hg.call(n,gct),t):i.slice()},t.copy=function(){return n().domain(i)},re(t)};n.scaleLinear=function n(){var t=ty(pg,pt);return t.copy=function(){return ny(t,n())},re(t)};n.scaleLog=function fr(){function e(){return u=ilt(t),r=tlt(t),f()[0]<0&&(u=rlt(u),r=rlt(r)),i}var i=ty(fii,eii).domain([1,10]),f=i.domain,t=10,u=ilt(10),r=tlt(10);return i.base=function(n){return arguments.length?(t=+n,e()):t},i.domain=function(n){return arguments.length?(f(n),e()):f()},i.ticks=function(n){var y,v=f(),o=v[0],h=v[v.length-1];(y=h<o)&&(i=o,o=h,h=i);var a,e,c,i=u(o),s=u(h),p=null==n?10:+n,l=[];if(!(t%1)&&s-i<p){if(i=Math.round(i)-1,s=Math.round(s)+1,o>0){for(;i<s;++i)for(e=1,a=r(i);e<t;++e)if(!((c=a*e)<o)){if(c>h)break;l.push(c)}}else for(;i<s;++i)for(e=t-1,a=r(i);e>=1;--e)if(!((c=a*e)<o)){if(c>h)break;l.push(c)}}else l=fp(i,s,Math.min(s-i,p)).map(r);return y?l.reverse():l},i.tickFormat=function(f,e){if(null==e&&(e=10===t?".0e":","),"function"!=typeof e&&(e=n.format(e)),f===1/0)return e;null==f&&(f=10);var o=Math.max(1,t*f/i.ticks().length);return function(n){var i=n/r(Math.round(u(n)));return i*t<t-.5&&(i*=t),i<=o?e(n):""}},i.nice=function(){return f(nlt(f(),{floor:function(n){return r(Math.floor(u(n)))},ceil:function(n){return r(Math.ceil(u(n)))}}))},i.copy=function(){return ny(i,fr().base(t))},i};n.scaleOrdinal=lg;n.scaleImplicit=cg;n.scalePow=wg;n.scaleSqrt=function(){return wg().exponent(.5)};n.scaleQuantile=function n(){function f(){var n=0,f=Math.max(1,u.length);for(i=new Array(f-1);++n<f;)i[n-1]=ve(t,n/f);return r}function r(n){if(!isNaN(n=+n))return u[nu(i,n)]}var t=[],u=[],i=[];return r.invertExtent=function(n){var r=u.indexOf(n);return r<0?[NaN,NaN]:[r>0?i[r-1]:t[0],r<i.length?i[r]:t[t.length-1]]},r.domain=function(n){if(!arguments.length)return t.slice();t=[];for(var i,r=0,u=n.length;r<u;++r)null==(i=n[r])||isNaN(i=+i)||t.push(i);return t.sort(fr),f()},r.range=function(n){return arguments.length?(u=wr.call(n),f()):u.slice()},r.quantiles=function(){return i.slice()},r.copy=function(){return n().domain(t).range(u)},r};n.scaleQuantize=function n(){function r(n){if(n<=n)return e[nu(i,n,0,t)]}function o(){var n=-1;for(i=new Array(t);++n<t;)i[n]=((n+1)*f-(n-t)*u)/(t+1);return r}var u=0,f=1,t=1,i=[.5],e=[0,1];return r.domain=function(n){return arguments.length?(u=+n[0],f=+n[1],o()):[u,f]},r.range=function(n){return arguments.length?(t=(e=wr.call(n)).length-1,o()):e.slice()},r.invertExtent=function(n){var r=e.indexOf(n);return r<0?[NaN,NaN]:r<1?[u,i[0]]:r>=t?[i[t-1],f]:[i[r-1],i[r]]},r.copy=function(){return n().domain([u,f]).range(e)},re(r)};n.scaleThreshold=function n(){function r(n){if(n<=n)return i[nu(t,n,0,u)]}var t=[.5],i=[0,1],u=1;return r.domain=function(n){return arguments.length?(t=wr.call(n),u=Math.min(t.length,i.length-1),r):t.slice()},r.range=function(n){return arguments.length?(i=wr.call(n),u=Math.min(t.length,i.length-1),r):i.slice()},r.invertExtent=function(n){var r=i.indexOf(n);return[t[r-1],t[r]]},r.copy=function(){return n().domain(t).range(i)},r};n.scaleTime=function(){return un(ir,dg,hs,ss,kg,bg,os,br,n.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])};n.scaleUtc=function(){return un(rr,tn,vs,as,nn,gg,os,br,n.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])};n.scaleSequential=function n(t){function i(n){var i=(n-r)*e;return t(f?Math.max(0,Math.min(1,i)):i)}var r=0,u=1,e=1,f=!1;return i.domain=function(n){return arguments.length?(r=+n[0],u=+n[1],e=r===u?0:1/(u-r),i):[r,u]},i.clamp=function(n){return arguments.length?(f=!!n,i):f},i.interpolator=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return n(t).domain([r,u]).clamp(f)},re(i)};n.scaleDiverging=function n(t){function r(n){var r=.5+((n=+n)-i)*(n<i?o:s);return t(e?Math.max(0,Math.min(1,r)):r)}var u=0,i=.5,f=1,o=1,s=1,e=!1;return r.domain=function(n){return arguments.length?(u=+n[0],i=+n[1],f=+n[2],o=u===i?0:.5/(i-u),s=i===f?0:.5/(f-i),r):[u,i,f]},r.clamp=function(n){return arguments.length?(e=!!n,r):e},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return n(t).domain([u,i,f]).clamp(e)},re(r)};n.schemeCategory10=tei;n.schemeAccent=iei;n.schemeDark2=rei;n.schemePaired=uei;n.schemePastel1=fei;n.schemePastel2=eei;n.schemeSet1=oei;n.schemeSet2=sei;n.schemeSet3=hei;n.interpolateBrBG=cei;n.schemeBrBG=cat;n.interpolatePRGn=lei;n.schemePRGn=lat;n.interpolatePiYG=aei;n.schemePiYG=aat;n.interpolatePuOr=vei;n.schemePuOr=vat;n.interpolateRdBu=yei;n.schemeRdBu=yat;n.interpolateRdGy=pei;n.schemeRdGy=pat;n.interpolateRdYlBu=wei;n.schemeRdYlBu=wat;n.interpolateRdYlGn=bei;n.schemeRdYlGn=bat;n.interpolateSpectral=kei;n.schemeSpectral=kat;n.interpolateBuGn=dei;n.schemeBuGn=dat;n.interpolateBuPu=gei;n.schemeBuPu=gat;n.interpolateGnBu=noi;n.schemeGnBu=nvt;n.interpolateOrRd=toi;n.schemeOrRd=tvt;n.interpolatePuBuGn=ioi;n.schemePuBuGn=ivt;n.interpolatePuBu=roi;n.schemePuBu=rvt;n.interpolatePuRd=uoi;n.schemePuRd=uvt;n.interpolateRdPu=foi;n.schemeRdPu=fvt;n.interpolateYlGnBu=eoi;n.schemeYlGnBu=evt;n.interpolateYlGn=ooi;n.schemeYlGn=ovt;n.interpolateYlOrBr=soi;n.schemeYlOrBr=svt;n.interpolateYlOrRd=hoi;n.schemeYlOrRd=hvt;n.interpolateBlues=coi;n.schemeBlues=cvt;n.interpolateGreens=loi;n.schemeGreens=lvt;n.interpolateGreys=aoi;n.schemeGreys=avt;n.interpolatePurples=voi;n.schemePurples=vvt;n.interpolateReds=yoi;n.schemeReds=yvt;n.interpolateOranges=poi;n.schemeOranges=pvt;n.interpolateCubehelixDefault=woi;n.interpolateRainbow=function(n){(n<0||n>1)&&(n-=Math.floor(n));var t=Math.abs(n-.5);return fy.h=360*n-100,fy.s=1.5-1.5*t,fy.l=.8-.9*t,fy+""};n.interpolateWarm=boi;n.interpolateCool=koi;n.interpolateSinebow=function(n){var t;return n=(.5-n)*Math.PI,ey.r=255*(t=Math.sin(n))*t,ey.g=255*(t=Math.sin(n+doi))*t,ey.b=255*(t=Math.sin(n+goi))*t,ey+""};n.interpolateViridis=nsi;n.interpolateMagma=tsi;n.interpolateInferno=isi;n.interpolatePlasma=rsi;n.create=function(n){return at(kh(n).call(document.documentElement))};n.creator=kh;n.local=rit;n.matcher=gh;n.mouse=or;n.namespace=pe;n.namespaces=bh;n.clientPoint=ic;n.select=at;n.selectAll=function(n){return"string"==typeof n?new et([document.querySelectorAll(n)],[document.documentElement]):new et([null==n?[]:n],tc)};n.selection=uu;n.selector=dh;n.selectorAll=cp;n.style=ru;n.touch=rc;n.touches=function(n,t){null==t&&(t=bp().touches);for(var i=0,r=t?t.length:0,u=new Array(r);i<r;++i)u[i]=ic(n,t[i]);return u};n.window=vp;n.customEvent=we;n.arc=function(){function t(){var yt,ui,pt,c=+i.apply(this,arguments),l=+r.apply(this,arguments),v=f.apply(this,arguments)-sy,y=o.apply(this,arguments)-sy,st=wvt(y-v),a=y>v,ct,lt;if(n||(n=yt=cr()),l<c&&(ui=l,l=c,c=ui),l>ut)if(st>dr-ut)n.moveTo(l*ku(v),l*wi(v)),n.arc(0,0,l,v,y,!a),c>ut&&(n.moveTo(c*ku(y),c*wi(y)),n.arc(0,0,c,y,v,a));else{var t,e,nt=v,tt=y,it=v,ft=y,ht=st,wt=st,bt=h.apply(this,arguments)/2,kt=bt>ut&&(u?+u.apply(this,arguments):ee(c*c+l*l)),k=fn(wvt(l-c)/2,+s.apply(this,arguments)),p=k,w=k;kt>ut&&(ct=bvt(kt/c*wi(bt)),lt=bvt(kt/l*wi(bt)),(ht-=2*ct)>ut?(it+=ct*=a?1:-1,ft-=ct):(ht=0,it=ft=(v+y)/2),(wt-=2*lt)>ut?(nt+=lt*=a?1:-1,tt-=lt):(wt=0,nt=tt=(v+y)/2));var d=l*ku(nt),g=l*wi(nt),et=c*ku(ft),ot=c*wi(ft);if(k>ut){var at=l*ku(tt),vt=l*wi(tt),dt=c*ku(it),gt=c*wi(it);if(st<kr){var b=ht>ut?function(n,t,i,r,u,f,e,o){var s=i-n,h=r-t,c=e-u,l=o-f,a=(c*(t-f)-l*(n-u))/(l*s-c*h);return[n+a*s,t+a*h]}(d,g,dt,gt,at,vt,et,ot):[et,ot],ni=d-b[0],ti=g-b[1],ii=at-b[0],ri=vt-b[1],fi=1/wi(((pt=(ni*ii+ti*ri)/(ee(ni*ni+ti*ti)*ee(ii*ii+ri*ri)))>1?0:pt<-1?kr:Math.acos(pt))/2),ei=ee(b[0]*b[0]+b[1]*b[1]);p=fn(k,(c-ei)/(fi-1));w=fn(k,(l-ei)/(fi+1))}}wt>ut?w>ut?(t=hy(dt,gt,d,g,l,w,a),e=hy(at,vt,et,ot,l,w,a),n.moveTo(t.cx+t.x01,t.cy+t.y01),w<k?n.arc(t.cx,t.cy,w,rt(t.y01,t.x01),rt(e.y01,e.x01),!a):(n.arc(t.cx,t.cy,w,rt(t.y01,t.x01),rt(t.y11,t.x11),!a),n.arc(0,0,l,rt(t.cy+t.y11,t.cx+t.x11),rt(e.cy+e.y11,e.cx+e.x11),!a),n.arc(e.cx,e.cy,w,rt(e.y11,e.x11),rt(e.y01,e.x01),!a))):(n.moveTo(d,g),n.arc(0,0,l,nt,tt,!a)):n.moveTo(d,g);c>ut&&ht>ut?p>ut?(t=hy(et,ot,at,vt,c,-p,a),e=hy(d,g,dt,gt,c,-p,a),n.lineTo(t.cx+t.x01,t.cy+t.y01),p<k?n.arc(t.cx,t.cy,p,rt(t.y01,t.x01),rt(e.y01,e.x01),!a):(n.arc(t.cx,t.cy,p,rt(t.y01,t.x01),rt(t.y11,t.x11),!a),n.arc(0,0,c,rt(t.cy+t.y11,t.cx+t.x11),rt(e.cy+e.y11,e.cx+e.x11),a),n.arc(e.cx,e.cy,p,rt(e.y11,e.x11),rt(e.y01,e.x01),!a))):n.arc(0,0,c,ft,it,a):n.lineTo(et,ot)}else n.moveTo(0,0);if(n.closePath(),yt)return n=null,yt+""||null}var i=fsi,r=esi,s=e(0),u=null,f=osi,o=ssi,h=hsi,n=null;return t.centroid=function(){var n=(+i.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+f.apply(this,arguments)+ +o.apply(this,arguments))/2-kr/2;return[ku(t)*n,wi(t)*n]},t.innerRadius=function(n){return arguments.length?(i="function"==typeof n?n:e(+n),t):i},t.outerRadius=function(n){return arguments.length?(r="function"==typeof n?n:e(+n),t):r},t.cornerRadius=function(n){return arguments.length?(s="function"==typeof n?n:e(+n),t):s},t.padRadius=function(n){return arguments.length?(u=null==n?null:"function"==typeof n?n:e(+n),t):u},t.startAngle=function(n){return arguments.length?(f="function"==typeof n?n:e(+n),t):f},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:e(+n),t):o},t.padAngle=function(n){return arguments.length?(h="function"==typeof n?n:e(+n),t):h},t.context=function(i){return arguments.length?(n=null==i?null:i,t):n},t};n.area=dvt;n.line=sn;n.pie=function(){function n(n){for(var l,b,y,c,s=n.length,p=0,a=new Array(s),h=new Array(s),v=+u.apply(this,arguments),w=Math.min(dr,Math.max(-dr,f.apply(this,arguments)-v)),k=Math.min(Math.abs(w)/s,o.apply(this,arguments)),d=k*(w<0?-1:1),e=0;e<s;++e)(c=h[a[e]=e]=+r(n[e],e,n))>0&&(p+=c);for(null!=t?a.sort(function(n,i){return t(h[n],h[i])}):null!=i&&a.sort(function(t,r){return i(n[t],n[r])}),e=0,b=p?(w-s*d)/p:0;e<s;++e,v=y)l=a[e],y=v+((c=h[l])>0?c*b:0)+d,h[l]={data:n[l],index:e,value:c,startAngle:v,endAngle:y,padAngle:k};return h}var r=lsi,t=csi,i=null,u=e(0),f=e(dr),o=e(0);return n.value=function(t){return arguments.length?(r="function"==typeof t?t:e(+t),n):r},n.sortValues=function(r){return arguments.length?(t=r,i=null,n):t},n.sort=function(r){return arguments.length?(i=r,t=null,n):i},n.startAngle=function(t){return arguments.length?(u="function"==typeof t?t:e(+t),n):u},n.endAngle=function(t){return arguments.length?(f="function"==typeof t?t:e(+t),n):f},n.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:e(+t),n):o},n};n.areaRadial=tyt;n.radialArea=tyt;n.lineRadial=nyt;n.radialLine=nyt;n.pointRadial=rh;n.linkHorizontal=function(){return ln(ysi)};n.linkVertical=function(){return ln(psi)};n.linkRadial=function(){var n=ln(wsi);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n};n.symbol=function(){function n(){var n;if(t||(t=n=cr()),i.apply(this,arguments).draw(t,+r.apply(this,arguments)),n)return t=null,n+""||null}var i=e(an),r=e(64),t=null;return n.type=function(t){return arguments.length?(i="function"==typeof t?t:e(t),n):i},n.size=function(t){return arguments.length?(r="function"==typeof t?t:e(+t),n):r},n.context=function(i){return arguments.length?(t=null==i?null:i,n):t},n};n.symbols=nhi;n.symbolCircle=an;n.symbolCross=iyt;n.symbolDiamond=uyt;n.symbolSquare=oyt;n.symbolStar=eyt;n.symbolTriangle=syt;n.symbolWye=hyt;n.curveBasisClosed=function(n){return new cyt(n)};n.curveBasisOpen=function(n){return new lyt(n)};n.curveBasis=function(n){return new vy(n)};n.curveBundle=vyt;n.curveCardinalClosed=pyt;n.curveCardinalOpen=wyt;n.curveCardinal=yyt;n.curveCatmullRomClosed=gyt;n.curveCatmullRomOpen=tpt;n.curveCatmullRom=kyt;n.curveLinearClosed=function(n){return new ipt(n)};n.curveLinear=cy;n.curveMonotoneX=function(n){return new py(n)};n.curveMonotoneY=function(n){return new ept(n)};n.curveNatural=function(n){return new spt(n)};n.curveStep=function(n){return new wy(n,.5)};n.curveStepAfter=function(n){return new wy(n,1)};n.curveStepBefore=function(n){return new wy(n,0)};n.stack=function(){function n(n){for(var s,c=t.apply(this,arguments),l=n.length,h=c.length,o=new Array(h),f=0;f<h;++f){for(var a,v=c[f],y=o[f]=new Array(l),e=0;e<l;++e)y[e]=a=[0,+u(n[e],v,e,n)],a.data=n[e];y.key=v}for(f=0,s=i(o);f<h;++f)o[s[f]].index=f;return r(o,s),o}var t=e([]),i=se,r=oe,u=thi;return n.keys=function(i){return arguments.length?(t="function"==typeof i?i:e(ly.call(i)),n):t},n.value=function(t){return arguments.length?(u="function"==typeof t?t:e(+t),n):u},n.order=function(t){return arguments.length?(i=null==t?se:"function"==typeof t?t:e(ly.call(t)),n):i},n.offset=function(t){return arguments.length?(r=null==t?oe:t,n):r},n};n.stackOffsetExpand=function(n,t){if((f=n.length)>0){for(var i,f,r,u=0,e=n[0].length;u<e;++u){for(r=i=0;i<f;++i)r+=n[i][u][1]||0;if(r)for(i=0;i<f;++i)n[i][u][1]/=r}oe(n,t)}};n.stackOffsetDiverging=function(n,t){if((s=n.length)>1)for(var r,i,u,f,e,s,o=0,h=n[t[0]].length;o<h;++o)for(f=e=0,r=0;r<s;++r)(u=(i=n[t[r]][o])[1]-i[0])>=0?(i[0]=f,i[1]=f+=u):u<0?(i[1]=e,i[0]=e+=u):i[0]=f};n.stackOffsetNone=oe;n.stackOffsetSilhouette=function(n,t){var r,f;if((e=n.length)>0){for(var e,i=0,u=n[t[0]],o=u.length;i<o;++i){for(r=0,f=0;r<e;++r)f+=n[r][i][1]||0;u[i][1]+=u[i][0]=-f/2}oe(n,t)}};n.stackOffsetWiggle=function(n,t){var r,c,l,u,i,h;if((l=n.length)>0&&(c=(r=n[t[0]]).length)>0){for(u=0,i=1;i<c;++i){for(var f=0,e=0,a=0;f<l;++f){for(var v=n[t[f]],o=v[i][1]||0,y=(o-(v[i-1][1]||0))/2,s=0;s<f;++s)h=n[t[s]],y+=(h[i][1]||0)-(h[i-1][1]||0);e+=o;a+=y*o}r[i-1][1]+=r[i-1][0]=u;e&&(u-=a/e)}r[i-1][1]+=r[i-1][0]=u;oe(n,t)}};n.stackOrderAscending=cpt;n.stackOrderDescending=function(n){return cpt(n).reverse()};n.stackOrderInsideOut=function(n){for(var t,s=n.length,r=n.map(lpt),h=se(n).sort(function(n,t){return r[t]-r[n]}),u=0,f=0,e=[],o=[],i=0;i<s;++i)t=h[i],u<f?(u+=r[t],e.push(t)):(f+=r[t],o.push(t));return o.reverse().concat(e)};n.stackOrderNone=se;n.stackOrderReverse=function(n){return se(n).reverse()};n.timeInterval=d;n.timeMillisecond=br;n.timeMilliseconds=ult;n.utcMillisecond=br;n.utcMilliseconds=ult;n.timeSecond=os;n.timeSeconds=elt;n.utcSecond=os;n.utcSeconds=elt;n.timeMinute=bg;n.timeMinutes=sii;n.timeHour=kg;n.timeHours=hii;n.timeDay=ss;n.timeDays=cii;n.timeWeek=hs;n.timeWeeks=llt;n.timeSunday=hs;n.timeSundays=llt;n.timeMonday=cs;n.timeMondays=lii;n.timeTuesday=olt;n.timeTuesdays=aii;n.timeWednesday=slt;n.timeWednesdays=vii;n.timeThursday=ls;n.timeThursdays=yii;n.timeFriday=hlt;n.timeFridays=pii;n.timeSaturday=clt;n.timeSaturdays=wii;n.timeMonth=dg;n.timeMonths=bii;n.timeYear=ir;n.timeYears=kii;n.utcMinute=gg;n.utcMinutes=dii;n.utcHour=nn;n.utcHours=gii;n.utcDay=as;n.utcDays=nri;n.utcWeek=vs;n.utcWeeks=wlt;n.utcSunday=vs;n.utcSundays=wlt;n.utcMonday=ys;n.utcMondays=tri;n.utcTuesday=alt;n.utcTuesdays=iri;n.utcWednesday=vlt;n.utcWednesdays=rri;n.utcThursday=ps;n.utcThursdays=uri;n.utcFriday=ylt;n.utcFridays=fri;n.utcSaturday=plt;n.utcSaturdays=eri;n.utcMonth=tn;n.utcMonths=ori;n.utcYear=rr;n.utcYears=blt;n.timeFormatDefaultLocale=sat;n.timeFormatLocale=klt;n.isoFormat=bfi;n.isoParse=kfi;n.now=of;n.timer=gc;n.timerFlush=fut;n.timeout=ww;n.interval=function(n,t,i){var r=new eo,u=t;return null==t?(r.restart(n,t,i),r):(t=+t,i=null==i?of():+i,r.restart(function f(e){e+=u;r.restart(f,u+=t,i);n(e)},t,i),r)};n.transition=aut;n.active=function(n,t){var u,i,r=n.__transition;if(r)for(i in t=null==t?null:t+"",r)if((u=r[i]).state>bw&&u.name===t)return new ci([[n]],ift,t,+i);return null};n.interrupt=su;n.voronoi=function(){function n(n){return new rtt(n.map(function(t,u){var f=[Math.round(i(t,u,n)/h)*h,Math.round(r(t,u,n)/h)*h];return f.index=u,f.data=t,f}),t)}var i=ihi,r=rhi,t=null;return n.polygons=function(t){return n(t).polygons()},n.links=function(t){return n(t).links()},n.triangles=function(t){return n(t).triangles()},n.x=function(t){return arguments.length?(i="function"==typeof t?t:apt(+t),n):i},n.y=function(t){return arguments.length?(r="function"==typeof t?t:apt(+t),n):r},n.extent=function(i){return arguments.length?(t=null==i?null:[[+i[0][0],+i[0][1]],[+i[1][0],+i[1][1]]],n):t&&[[t[0][0],t[0][1]],[t[1][0],t[1][1]]]},n.size=function(i){return arguments.length?(t=null==i?null:[[0,0],[+i[0],+i[1]]],n):t&&[t[1][0]-t[0][0],t[1][1]-t[0][1]]},n};n.zoom=function(){function t(n){n.property("__zoom",dpt).on("wheel.zoom",rt).on("mousedown.zoom",ut).on("dblclick.zoom",ft).filter(w).on("touchstart.zoom",et).on("touchmove.zoom",ot).on("touchend.zoom touchcancel.zoom",st).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(n,t){return(t=Math.max(o[0],Math.min(o[1],t)))===n.k?n:new ur(t,n.x,n.y)}function l(n,t,i){var r=t[0]-i[0]*n.k,u=t[1]-i[1]*n.k;return r===n.x&&u===n.y?n:new ur(n.k,r,u)}function d(n){return[(+n[0][0]+ +n[1][0])/2,(+n[0][1]+ +n[1][1])/2]}function nt(n,t,i){n.on("start.zoom",function(){u(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){u(this,arguments).end()}).tween("zoom",function(){var f=arguments,c=u(this,f),n=e.apply(this,f),r=i||d(n),o=Math.max(n[1][0]-n[0][0],n[1][1]-n[0][1]),h=this.__zoom,s="function"==typeof t?t.apply(this,f):t,l=b(h.invert(r).concat(o/h.k),s.invert(r).concat(o/s.k));return function(n){if(1===n)n=s;else{var t=l(n),i=o/t[2];n=new ur(i,r[0]-t[0]*i,r[1]-t[1]*i)}c.zoom(null,n)}})}function u(n,t){for(var r,i=0,u=v.length;i<u;++i)if((r=v[i]).that===n)return r;return new tt(n,t)}function tt(n,t){this.that=n;this.args=t;this.index=-1;this.active=0;this.extent=e.apply(n,t)}function rt(){if(s.apply(this,arguments)){var n=u(this,arguments),t=this.__zoom,e=Math.max(o[0],Math.min(o[1],t.k*Math.pow(2,p.apply(this,arguments)))),f=or(this);if(n.wheel)n.mouse[0][0]===f[0]&&n.mouse[0][1]===f[1]||(n.mouse[1]=t.invert(n.mouse[0]=f)),clearTimeout(n.wheel);else{if(t.k===e)return;n.mouse=[f,t.invert(f)];su(this);n.start()}ch();n.wheel=setTimeout(function(){n.wheel=null;n.end()},it);n.zoom("mouse",r(l(y(t,e),n.mouse[0],n.mouse[1]),n.extent,i))}}function ut(){if(!h&&s.apply(this,arguments)){var t=u(this,arguments),e=at(n.event.view).on("mousemove.zoom",function(){if(ch(),!t.moved){var u=n.event.clientX-o,f=n.event.clientY-c;t.moved=u*u+f*f>k}t.zoom("mouse",r(l(t.that.__zoom,t.mouse[0]=or(t.that),t.mouse[1]),t.extent,i))},!0).on("mouseup.zoom",function(){e.on("mousemove.zoom mouseup.zoom",null);fc(n.event.view,t.moved);ch();t.end()},!0),f=or(this),o=n.event.clientX,c=n.event.clientY;uc(n.event.view);utt();t.mouse=[f,this.__zoom.invert(f)];su(this);t.start()}}function ft(){if(s.apply(this,arguments)){var u=this.__zoom,f=or(this),h=u.invert(f),c=u.k*(n.event.shiftKey?.5:2),o=r(l(y(u,c),f,h),e.apply(this,arguments),i);ch();a>0?at(this).transition().duration(a).call(nt,o,f):at(this).call(t.transform,o)}}function et(){if(s.apply(this,arguments)){var o,r,h,t,i=u(this,arguments),e=n.event.changedTouches,c=e.length;for(utt(),r=0;r<c;++r)t=[t=rc(this,e,(h=e[r]).identifier),this.__zoom.invert(t),h.identifier],i.touch0?i.touch1||(i.touch1=t):(i.touch0=t,o=!0);if(f&&(f=clearTimeout(f),!i.touch1))return i.end(),void((t=at(this).on("dblclick.zoom"))&&t.apply(this,arguments));o&&(f=setTimeout(function(){f=null},g),su(this),i.start())}}function ot(){var c,e,o,b,t=u(this,arguments),k=n.event.changedTouches,d=k.length;for(ch(),f&&(f=clearTimeout(f)),c=0;c<d;++c)o=rc(this,k,(e=k[c]).identifier),t.touch0&&t.touch0[2]===e.identifier?t.touch0[0]=o:t.touch1&&t.touch1[2]===e.identifier&&(t.touch1[0]=o);if(e=t.that.__zoom,t.touch1){var a=t.touch0[0],v=t.touch0[1],p=t.touch1[0],w=t.touch1[1],s=(s=p[0]-a[0])*s+(s=p[1]-a[1])*s,h=(h=w[0]-v[0])*h+(h=w[1]-v[1])*h;e=y(e,Math.sqrt(s/h));o=[(a[0]+p[0])/2,(a[1]+p[1])/2];b=[(v[0]+w[0])/2,(v[1]+w[1])/2]}else{if(!t.touch0)return;o=t.touch0[0];b=t.touch0[1]}t.zoom("touch",r(l(e,o,b),t.extent,i))}function st(){var i,r,t=u(this,arguments),f=n.event.changedTouches,e=f.length;for(utt(),h&&clearTimeout(h),h=setTimeout(function(){h=null},g),i=0;i<e;++i)r=f[i],t.touch0&&t.touch0[2]===r.identifier?delete t.touch0:t.touch1&&t.touch1[2]===r.identifier&&delete t.touch1;t.touch1&&!t.touch0&&(t.touch0=t.touch1,delete t.touch1);t.touch0?t.touch0[1]=this.__zoom.invert(t.touch0[0]):t.end()}var f,h,s=phi,e=whi,r=dhi,p=bhi,w=khi,o=[0,1/0],i=[[-1/0,-1/0],[1/0,1/0]],a=250,b=wrt,v=[],c=iu("start","zoom","end"),g=500,it=150,k=0;return t.transform=function(n,t){var i=n.selection?n.selection():n;i.property("__zoom",dpt);n!==i?nt(n,t):i.interrupt().each(function(){u(this,arguments).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},t.scaleBy=function(n,i){t.scaleTo(n,function(){return this.__zoom.k*("function"==typeof i?i.apply(this,arguments):i)})},t.scaleTo=function(n,u){t.transform(n,function(){var n=e.apply(this,arguments),t=this.__zoom,f=d(n),o=t.invert(f),s="function"==typeof u?u.apply(this,arguments):u;return r(l(y(t,s),f,o),n,i)})},t.translateBy=function(n,u,f){t.transform(n,function(){return r(this.__zoom.translate("function"==typeof u?u.apply(this,arguments):u,"function"==typeof f?f.apply(this,arguments):f),e.apply(this,arguments),i)})},t.translateTo=function(n,u,f){t.transform(n,function(){var n=e.apply(this,arguments),o=this.__zoom,t=d(n);return r(hh.translate(t[0],t[1]).scale(o.k).translate("function"==typeof u?-u.apply(this,arguments):-u,"function"==typeof f?-f.apply(this,arguments):-f),n,i)})},tt.prototype={start:function(){return 1==++this.active&&(this.index=v.push(this)-1,this.emit("start")),this},zoom:function(n,t){return this.mouse&&"mouse"!==n&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==n&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==n&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(v.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(n){we(new yhi(t,n,this.that.__zoom),c.apply,c,[n,this.that,this.args])}},t.wheelDelta=function(n){return arguments.length?(p="function"==typeof n?n:gy(+n),t):p},t.filter=function(n){return arguments.length?(s="function"==typeof n?n:gy(!!n),t):s},t.touchable=function(n){return arguments.length?(w="function"==typeof n?n:gy(!!n),t):w},t.extent=function(n){return arguments.length?(e="function"==typeof n?n:gy([[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]]),t):e},t.scaleExtent=function(n){return arguments.length?(o[0]=+n[0],o[1]=+n[1],t):[o[0],o[1]]},t.translateExtent=function(n){return arguments.length?(i[0][0]=+n[0][0],i[1][0]=+n[1][0],i[0][1]=+n[0][1],i[1][1]=+n[1][1],t):[[i[0][0],i[0][1]],[i[1][0],i[1][1]]]},t.constrain=function(n){return arguments.length?(r=n,t):r},t.duration=function(n){return arguments.length?(a=+n,t):a},t.interpolate=function(n){return arguments.length?(b=n,t):b},t.on=function(){var n=c.on.apply(c,arguments);return n===c?t:n},t.clickDistance=function(n){return arguments.length?(k=(n=+n)*n,t):Math.sqrt(k)},t};n.zoomTransform=kpt;n.zoomIdentity=hh;Object.defineProperty(n,"__esModule",{value:!0})}),function(n){"use strict";typeof module!="undefined"&&module.exports&&(module.exports=n);n["encoding-indexes"]={big5:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,17392,19506,17923,17830,17784,160359,19831,17843,162993,19682,163013,15253,18230,18244,19527,19520,148159,144919,160594,159371,159954,19543,172881,18255,17882,19589,162924,19719,19108,18081,158499,29221,154196,137827,146950,147297,26189,22267,null,32149,22813,166841,15860,38708,162799,23515,138590,23204,13861,171696,23249,23479,23804,26478,34195,170309,29793,29853,14453,138579,145054,155681,16108,153822,15093,31484,40855,147809,166157,143850,133770,143966,17162,33924,40854,37935,18736,34323,22678,38730,37400,31184,31282,26208,27177,34973,29772,31685,26498,31276,21071,36934,13542,29636,155065,29894,40903,22451,18735,21580,16689,145038,22552,31346,162661,35727,18094,159368,16769,155033,31662,140476,40904,140481,140489,140492,40905,34052,144827,16564,40906,17633,175615,25281,28782,40907,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,12736,12737,12738,12739,12740,131340,12741,131281,131277,12742,12743,131275,139240,12744,131274,12745,12746,12747,12748,131342,12749,12750,256,193,461,192,274,201,282,200,332,211,465,210,null,7870,null,7872,202,257,225,462,224,593,275,233,283,232,299,237,464,236,333,243,466,242,363,250,468,249,470,472,474,476,252,null,7871,null,7873,234,609,9178,9179,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,172969,135493,null,25866,null,null,20029,28381,40270,37343,null,null,161589,25745,20250,20264,20392,20822,20852,20892,20964,21153,21160,21307,21326,21457,21464,22242,22768,22788,22791,22834,22836,23398,23454,23455,23706,24198,24635,25993,26622,26628,26725,27982,28860,30005,32420,32428,32442,32455,32463,32479,32518,32567,33402,33487,33647,35270,35774,35810,36710,36711,36718,29713,31996,32205,26950,31433,21031,null,null,null,null,37260,30904,37214,32956,null,36107,33014,133607,null,null,32927,40647,19661,40393,40460,19518,171510,159758,40458,172339,13761,null,28314,33342,29977,null,18705,39532,39567,40857,31111,164972,138698,132560,142054,20004,20097,20096,20103,20159,20203,20279,13388,20413,15944,20483,20616,13437,13459,13477,20870,22789,20955,20988,20997,20105,21113,21136,21287,13767,21417,13649,21424,13651,21442,21539,13677,13682,13953,21651,21667,21684,21689,21712,21743,21784,21795,21800,13720,21823,13733,13759,21975,13765,163204,21797,null,134210,134421,151851,21904,142534,14828,131905,36422,150968,169189,16467,164030,30586,142392,14900,18389,164189,158194,151018,25821,134524,135092,134357,135412,25741,36478,134806,134155,135012,142505,164438,148691,null,134470,170573,164073,18420,151207,142530,39602,14951,169460,16365,13574,152263,169940,161992,142660,40302,38933,null,17369,155813,25780,21731,142668,142282,135287,14843,135279,157402,157462,162208,25834,151634,134211,36456,139681,166732,132913,null,18443,131497,16378,22643,142733,null,148936,132348,155799,134988,134550,21881,16571,17338,null,19124,141926,135325,33194,39157,134556,25465,14846,141173,36288,22177,25724,15939,null,173569,134665,142031,142537,null,135368,145858,14738,14854,164507,13688,155209,139463,22098,134961,142514,169760,13500,27709,151099,null,null,161140,142987,139784,173659,167117,134778,134196,157724,32659,135375,141315,141625,13819,152035,134796,135053,134826,16275,134960,134471,135503,134732,null,134827,134057,134472,135360,135485,16377,140950,25650,135085,144372,161337,142286,134526,134527,142417,142421,14872,134808,135367,134958,173618,158544,167122,167321,167114,38314,21708,33476,21945,null,171715,39974,39606,161630,142830,28992,33133,33004,23580,157042,33076,14231,21343,164029,37302,134906,134671,134775,134907,13789,151019,13833,134358,22191,141237,135369,134672,134776,135288,135496,164359,136277,134777,151120,142756,23124,135197,135198,135413,135414,22428,134673,161428,164557,135093,134779,151934,14083,135094,135552,152280,172733,149978,137274,147831,164476,22681,21096,13850,153405,31666,23400,18432,19244,40743,18919,39967,39821,154484,143677,22011,13810,22153,20008,22786,138177,194680,38737,131206,20059,20155,13630,23587,24401,24516,14586,25164,25909,27514,27701,27706,28780,29227,20012,29357,149737,32594,31035,31993,32595,156266,13505,null,156491,32770,32896,157202,158033,21341,34916,35265,161970,35744,36125,38021,38264,38271,38376,167439,38886,39029,39118,39134,39267,17e4,40060,40479,40644,27503,63751,20023,131207,38429,25143,38050,null,20539,28158,171123,40870,15817,34959,147790,28791,23797,19232,152013,13657,154928,24866,166450,36775,37366,29073,26393,29626,144001,172295,15499,137600,19216,30948,29698,20910,165647,16393,27235,172730,16931,34319,133743,31274,170311,166634,38741,28749,21284,139390,37876,30425,166371,40871,30685,20131,20464,20668,20015,20247,40872,21556,32139,22674,22736,138678,24210,24217,24514,141074,25995,144377,26905,27203,146531,27903,null,29184,148741,29580,16091,150035,23317,29881,35715,154788,153237,31379,31724,31939,32364,33528,34199,40873,34960,40874,36537,40875,36815,34143,39392,37409,40876,167353,136255,16497,17058,23066,null,null,null,39016,26475,17014,22333,null,34262,149883,33471,160013,19585,159092,23931,158485,159678,40877,40878,23446,40879,26343,32347,28247,31178,15752,17603,143958,141206,17306,17718,null,23765,146202,35577,23672,15634,144721,23928,40882,29015,17752,147692,138787,19575,14712,13386,131492,158785,35532,20404,131641,22975,33132,38998,170234,24379,134047,null,139713,166253,16642,18107,168057,16135,40883,172469,16632,14294,18167,158790,16764,165554,160767,17773,14548,152730,17761,17691,19849,19579,19830,17898,16328,150287,13921,17630,17597,16877,23870,23880,23894,15868,14351,23972,23993,14368,14392,24130,24253,24357,24451,14600,14612,14655,14669,24791,24893,23781,14729,25015,25017,25039,14776,25132,25232,25317,25368,14840,22193,14851,25570,25595,25607,25690,14923,25792,23829,22049,40863,14999,25990,15037,26111,26195,15090,26258,15138,26390,15170,26532,26624,15192,26698,26756,15218,15217,15227,26889,26947,29276,26980,27039,27013,15292,27094,15325,27237,27252,27249,27266,15340,27289,15346,27307,27317,27348,27382,27521,27585,27626,27765,27818,15563,27906,27910,27942,28033,15599,28068,28081,28181,28184,28201,28294,166336,28347,28386,28378,40831,28392,28393,28452,28468,15686,147265,28545,28606,15722,15733,29111,23705,15754,28716,15761,28752,28756,28783,28799,28809,131877,17345,13809,134872,147159,22462,159443,28990,153568,13902,27042,166889,23412,31305,153825,169177,31333,31357,154028,31419,31408,31426,31427,29137,156813,16842,31450,31453,31466,16879,21682,154625,31499,31573,31529,152334,154878,31650,31599,33692,154548,158847,31696,33825,31634,31672,154912,15789,154725,33938,31738,31750,31797,154817,31812,31875,149634,31910,26237,148856,31945,31943,31974,31860,31987,31989,31950,32359,17693,159300,32093,159446,29837,32137,32171,28981,32179,32210,147543,155689,32228,15635,32245,137209,32229,164717,32285,155937,155994,32366,32402,17195,37996,32295,32576,32577,32583,31030,156368,39393,32663,156497,32675,136801,131176,17756,145254,17667,164666,32762,156809,32773,32776,32797,32808,32815,172167,158915,32827,32828,32865,141076,18825,157222,146915,157416,26405,32935,166472,33031,33050,22704,141046,27775,156824,151480,25831,136330,33304,137310,27219,150117,150165,17530,33321,133901,158290,146814,20473,136445,34018,33634,158474,149927,144688,137075,146936,33450,26907,194964,16859,34123,33488,33562,134678,137140,14017,143741,144730,33403,33506,33560,147083,159139,158469,158615,144846,15807,33565,21996,33669,17675,159141,33708,33729,33747,13438,159444,27223,34138,13462,159298,143087,33880,154596,33905,15827,17636,27303,33866,146613,31064,33960,158614,159351,159299,34014,33807,33681,17568,33939,34020,154769,16960,154816,17731,34100,23282,159385,17703,34163,17686,26559,34326,165413,165435,34241,159880,34306,136578,159949,194994,17770,34344,13896,137378,21495,160666,34430,34673,172280,34798,142375,34737,34778,34831,22113,34412,26710,17935,34885,34886,161248,146873,161252,34910,34972,18011,34996,34997,25537,35013,30583,161551,35207,35210,35238,35241,35239,35260,166437,35303,162084,162493,35484,30611,37374,35472,162393,31465,162618,147343,18195,162616,29052,35596,35615,152624,152933,35647,35660,35661,35497,150138,35728,35739,35503,136927,17941,34895,35995,163156,163215,195028,14117,163155,36054,163224,163261,36114,36099,137488,36059,28764,36113,150729,16080,36215,36265,163842,135188,149898,15228,164284,160012,31463,36525,36534,36547,37588,36633,36653,164709,164882,36773,37635,172703,133712,36787,18730,166366,165181,146875,24312,143970,36857,172052,165564,165121,140069,14720,159447,36919,165180,162494,36961,165228,165387,37032,165651,37060,165606,37038,37117,37223,15088,37289,37316,31916,166195,138889,37390,27807,37441,37474,153017,37561,166598,146587,166668,153051,134449,37676,37739,166625,166891,28815,23235,166626,166629,18789,37444,166892,166969,166911,37747,37979,36540,38277,38310,37926,38304,28662,17081,140922,165592,135804,146990,18911,27676,38523,38550,16748,38563,159445,25050,38582,30965,166624,38589,21452,18849,158904,131700,156688,168111,168165,150225,137493,144138,38705,34370,38710,18959,17725,17797,150249,28789,23361,38683,38748,168405,38743,23370,168427,38751,37925,20688,143543,143548,38793,38815,38833,38846,38848,38866,38880,152684,38894,29724,169011,38911,38901,168989,162170,19153,38964,38963,38987,39014,15118,160117,15697,132656,147804,153350,39114,39095,39112,39111,19199,159015,136915,21936,39137,39142,39148,37752,39225,150057,19314,170071,170245,39413,39436,39483,39440,39512,153381,14020,168113,170965,39648,39650,170757,39668,19470,39700,39725,165376,20532,39732,158120,14531,143485,39760,39744,171326,23109,137315,39822,148043,39938,39935,39948,171624,40404,171959,172434,172459,172257,172323,172511,40318,40323,172340,40462,26760,40388,139611,172435,172576,137531,172595,40249,172217,172724,40592,40597,40606,40610,19764,40618,40623,148324,40641,15200,14821,15645,20274,14270,166955,40706,40712,19350,37924,159138,40727,40726,40761,22175,22154,40773,39352,168075,38898,33919,40802,40809,31452,40846,29206,19390,149877,149947,29047,150008,148296,150097,29598,166874,137466,31135,166270,167478,37737,37875,166468,37612,37761,37835,166252,148665,29207,16107,30578,31299,28880,148595,148472,29054,137199,28835,137406,144793,16071,137349,152623,137208,14114,136955,137273,14049,137076,137425,155467,14115,136896,22363,150053,136190,135848,136134,136374,34051,145062,34051,33877,149908,160101,146993,152924,147195,159826,17652,145134,170397,159526,26617,14131,15381,15847,22636,137506,26640,16471,145215,147681,147595,147727,158753,21707,22174,157361,22162,135135,134056,134669,37830,166675,37788,20216,20779,14361,148534,20156,132197,131967,20299,20362,153169,23144,131499,132043,14745,131850,132116,13365,20265,131776,167603,131701,35546,131596,20120,20685,20749,20386,20227,150030,147082,20290,20526,20588,20609,20428,20453,20568,20732,20825,20827,20829,20830,28278,144789,147001,147135,28018,137348,147081,20904,20931,132576,17629,132259,132242,132241,36218,166556,132878,21081,21156,133235,21217,37742,18042,29068,148364,134176,149932,135396,27089,134685,29817,16094,29849,29716,29782,29592,19342,150204,147597,21456,13700,29199,147657,21940,131909,21709,134086,22301,37469,38644,37734,22493,22413,22399,13886,22731,23193,166470,136954,137071,136976,23084,22968,37519,23166,23247,23058,153926,137715,137313,148117,14069,27909,29763,23073,155267,23169,166871,132115,37856,29836,135939,28933,18802,37896,166395,37821,14240,23582,23710,24158,24136,137622,137596,146158,24269,23375,137475,137476,14081,137376,14045,136958,14035,33066,166471,138682,144498,166312,24332,24334,137511,137131,23147,137019,23364,34324,161277,34912,24702,141408,140843,24539,16056,140719,140734,168072,159603,25024,131134,131142,140827,24985,24984,24693,142491,142599,149204,168269,25713,149093,142186,14889,142114,144464,170218,142968,25399,173147,25782,25393,25553,149987,142695,25252,142497,25659,25963,26994,15348,143502,144045,149897,144043,21773,144096,137433,169023,26318,144009,143795,15072,16784,152964,166690,152975,136956,152923,152613,30958,143619,137258,143924,13412,143887,143746,148169,26254,159012,26219,19347,26160,161904,138731,26211,144082,144097,26142,153714,14545,145466,145340,15257,145314,144382,29904,15254,26511,149034,26806,26654,15300,27326,14435,145365,148615,27187,27218,27337,27397,137490,25873,26776,27212,15319,27258,27479,147392,146586,37792,37618,166890,166603,37513,163870,166364,37991,28069,28427,149996,28007,147327,15759,28164,147516,23101,28170,22599,27940,30786,28987,148250,148086,28913,29264,29319,29332,149391,149285,20857,150180,132587,29818,147192,144991,150090,149783,155617,16134,16049,150239,166947,147253,24743,16115,29900,29756,37767,29751,17567,159210,17745,30083,16227,150745,150790,16216,30037,30323,173510,15129,29800,166604,149931,149902,15099,15821,150094,16127,149957,149747,37370,22322,37698,166627,137316,20703,152097,152039,30584,143922,30478,30479,30587,149143,145281,14942,149744,29752,29851,16063,150202,150215,16584,150166,156078,37639,152961,30750,30861,30856,30930,29648,31065,161601,153315,16654,31131,33942,31141,27181,147194,31290,31220,16750,136934,16690,37429,31217,134476,149900,131737,146874,137070,13719,21867,13680,13994,131540,134157,31458,23129,141045,154287,154268,23053,131675,30960,23082,154566,31486,16889,31837,31853,16913,154547,155324,155302,31949,150009,137136,31886,31868,31918,27314,32220,32263,32211,32590,156257,155996,162632,32151,155266,17002,158581,133398,26582,131150,144847,22468,156690,156664,149858,32733,31527,133164,154345,154947,31500,155150,39398,34373,39523,27164,144447,14818,150007,157101,39455,157088,33920,160039,158929,17642,33079,17410,32966,33033,33090,157620,39107,158274,33378,33381,158289,33875,159143,34320,160283,23174,16767,137280,23339,137377,23268,137432,34464,195004,146831,34861,160802,23042,34926,20293,34951,35007,35046,35173,35149,153219,35156,161669,161668,166901,166873,166812,166393,16045,33955,18165,18127,14322,35389,35356,169032,24397,37419,148100,26068,28969,28868,137285,40301,35999,36073,163292,22938,30659,23024,17262,14036,36394,36519,150537,36656,36682,17140,27736,28603,140065,18587,28537,28299,137178,39913,14005,149807,37051,37015,21873,18694,37307,37892,166475,16482,166652,37927,166941,166971,34021,35371,38297,38311,38295,38294,167220,29765,16066,149759,150082,148458,16103,143909,38543,167655,167526,167525,16076,149997,150136,147438,29714,29803,16124,38721,168112,26695,18973,168083,153567,38749,37736,166281,166950,166703,156606,37562,23313,35689,18748,29689,147995,38811,38769,39224,134950,24001,166853,150194,38943,169178,37622,169431,37349,17600,166736,150119,166756,39132,166469,16128,37418,18725,33812,39227,39245,162566,15869,39323,19311,39338,39516,166757,153800,27279,39457,23294,39471,170225,19344,170312,39356,19389,19351,37757,22642,135938,22562,149944,136424,30788,141087,146872,26821,15741,37976,14631,24912,141185,141675,24839,40015,40019,40059,39989,39952,39807,39887,171565,39839,172533,172286,40225,19630,147716,40472,19632,40204,172468,172269,172275,170287,40357,33981,159250,159711,158594,34300,17715,159140,159364,159216,33824,34286,159232,145367,155748,31202,144796,144960,18733,149982,15714,37851,37566,37704,131775,30905,37495,37965,20452,13376,36964,152925,30781,30804,30902,30795,137047,143817,149825,13978,20338,28634,28633,28702,28702,21524,147893,22459,22771,22410,40214,22487,28980,13487,147884,29163,158784,151447,23336,137141,166473,24844,23246,23051,17084,148616,14124,19323,166396,37819,37816,137430,134941,33906,158912,136211,148218,142374,148417,22932,146871,157505,32168,155995,155812,149945,149899,166394,37605,29666,16105,29876,166755,137375,16097,150195,27352,29683,29691,16086,150078,150164,137177,150118,132007,136228,149989,29768,149782,28837,149878,37508,29670,37727,132350,37681,166606,166422,37766,166887,153045,18741,166530,29035,149827,134399,22180,132634,134123,134328,21762,31172,137210,32254,136898,150096,137298,17710,37889,14090,166592,149933,22960,137407,137347,160900,23201,14050,146779,14e3,37471,23161,166529,137314,37748,15565,133812,19094,14730,20724,15721,15692,136092,29045,17147,164376,28175,168164,17643,27991,163407,28775,27823,15574,147437,146989,28162,28428,15727,132085,30033,14012,13512,18048,16090,18545,22980,37486,18750,36673,166940,158656,22546,22472,14038,136274,28926,148322,150129,143331,135856,140221,26809,26983,136088,144613,162804,145119,166531,145366,144378,150687,27162,145069,158903,33854,17631,17614,159014,159057,158850,159710,28439,160009,33597,137018,33773,158848,159827,137179,22921,23170,137139,23137,23153,137477,147964,14125,23023,137020,14023,29070,37776,26266,148133,23150,23083,148115,27179,147193,161590,148571,148170,28957,148057,166369,20400,159016,23746,148686,163405,148413,27148,148054,135940,28838,28979,148457,15781,27871,194597,150095,32357,23019,23855,15859,24412,150109,137183,32164,33830,21637,146170,144128,131604,22398,133333,132633,16357,139166,172726,28675,168283,23920,29583,31955,166489,168992,20424,32743,29389,29456,162548,29496,29497,153334,29505,29512,16041,162584,36972,29173,149746,29665,33270,16074,30476,16081,27810,22269,29721,29726,29727,16098,16112,16116,16122,29907,16142,16211,30018,30061,30066,30093,16252,30152,30172,16320,30285,16343,30324,16348,30330,151388,29064,22051,35200,22633,16413,30531,16441,26465,16453,13787,30616,16490,16495,23646,30654,30667,22770,30744,28857,30748,16552,30777,30791,30801,30822,33864,152885,31027,26627,31026,16643,16649,31121,31129,36795,31238,36796,16743,31377,16818,31420,33401,16836,31439,31451,16847,20001,31586,31596,31611,31762,31771,16992,17018,31867,31900,17036,31928,17044,31981,36755,28864,134351,32207,32212,32208,32253,32686,32692,29343,17303,32800,32805,31545,32814,32817,32852,15820,22452,28832,32951,33001,17389,33036,29482,33038,33042,30048,33044,17409,15161,33110,33113,33114,17427,22586,33148,33156,17445,33171,17453,33189,22511,33217,33252,33364,17551,33446,33398,33482,33496,33535,17584,33623,38505,27018,33797,28917,33892,24803,33928,17668,33982,34017,34040,34064,34104,34130,17723,34159,34160,34272,17783,34418,34450,34482,34543,38469,34699,17926,17943,34990,35071,35108,35143,35217,162151,35369,35384,35476,35508,35921,36052,36082,36124,18328,22623,36291,18413,20206,36410,21976,22356,36465,22005,36528,18487,36558,36578,36580,36589,36594,36791,36801,36810,36812,36915,39364,18605,39136,37395,18718,37416,37464,37483,37553,37550,37567,37603,37611,37619,37620,37629,37699,37764,37805,18757,18769,40639,37911,21249,37917,37933,37950,18794,37972,38009,38189,38306,18855,38388,38451,18917,26528,18980,38720,18997,38834,38850,22100,19172,24808,39097,19225,39153,22596,39182,39193,20916,39196,39223,39234,39261,39266,19312,39365,19357,39484,39695,31363,39785,39809,39901,39921,39924,19565,39968,14191,138178,40265,39994,40702,22096,40339,40381,40384,40444,38134,36790,40571,40620,40625,40637,40646,38108,40674,40689,40696,31432,40772,131220,131767,132e3,26906,38083,22956,132311,22592,38081,14265,132565,132629,132726,136890,22359,29043,133826,133837,134079,21610,194619,134091,21662,134139,134203,134227,134245,134268,24807,134285,22138,134325,134365,134381,134511,134578,134600,26965,39983,34725,134660,134670,134871,135056,134957,134771,23584,135100,24075,135260,135247,135286,26398,135291,135304,135318,13895,135359,135379,135471,135483,21348,33965,135907,136053,135990,35713,136567,136729,137155,137159,20088,28859,137261,137578,137773,137797,138282,138352,138412,138952,25283,138965,139029,29080,26709,139333,27113,14024,139900,140247,140282,141098,141425,141647,33533,141671,141715,142037,35237,142056,36768,142094,38840,142143,38983,39613,142412,null,142472,142519,154600,142600,142610,142775,142741,142914,143220,143308,143411,143462,144159,144350,24497,26184,26303,162425,144743,144883,29185,149946,30679,144922,145174,32391,131910,22709,26382,26904,146087,161367,155618,146961,147129,161278,139418,18640,19128,147737,166554,148206,148237,147515,148276,148374,150085,132554,20946,132625,22943,138920,15294,146687,148484,148694,22408,149108,14747,149295,165352,170441,14178,139715,35678,166734,39382,149522,149755,150037,29193,150208,134264,22885,151205,151430,132985,36570,151596,21135,22335,29041,152217,152601,147274,150183,21948,152646,152686,158546,37332,13427,152895,161330,152926,18200,152930,152934,153543,149823,153693,20582,13563,144332,24798,153859,18300,166216,154286,154505,154630,138640,22433,29009,28598,155906,162834,36950,156082,151450,35682,156674,156746,23899,158711,36662,156804,137500,35562,150006,156808,147439,156946,19392,157119,157365,141083,37989,153569,24981,23079,194765,20411,22201,148769,157436,20074,149812,38486,28047,158909,13848,35191,157593,157806,156689,157790,29151,157895,31554,168128,133649,157990,37124,158009,31301,40432,158202,39462,158253,13919,156777,131105,31107,158260,158555,23852,144665,33743,158621,18128,158884,30011,34917,159150,22710,14108,140685,159819,160205,15444,160384,160389,37505,139642,160395,37680,160486,149968,27705,38047,160848,134904,34855,35061,141606,164979,137137,28344,150058,137248,14756,14009,23568,31203,17727,26294,171181,170148,35139,161740,161880,22230,16607,136714,14753,145199,164072,136133,29101,33638,162269,168360,23143,19639,159919,166315,162301,162314,162571,163174,147834,31555,31102,163849,28597,172767,27139,164632,21410,159239,37823,26678,38749,164207,163875,158133,136173,143919,163912,23941,166960,163971,22293,38947,166217,23979,149896,26046,27093,21458,150181,147329,15377,26422,163984,164084,164142,139169,164175,164233,164271,164378,164614,164655,164746,13770,164968,165546,18682,25574,166230,30728,37461,166328,17394,166375,17375,166376,166726,166868,23032,166921,36619,167877,168172,31569,168208,168252,15863,168286,150218,36816,29327,22155,169191,169449,169392,169400,169778,170193,170313,170346,170435,170536,170766,171354,171419,32415,171768,171811,19620,38215,172691,29090,172799,19857,36882,173515,19868,134300,36798,21953,36794,140464,36793,150163,17673,32383,28502,27313,20202,13540,166700,161949,14138,36480,137205,163876,166764,166809,162366,157359,15851,161365,146615,153141,153942,20122,155265,156248,22207,134765,36366,23405,147080,150686,25566,25296,137206,137339,25904,22061,154698,21530,152337,15814,171416,19581,22050,22046,32585,155352,22901,146752,34672,19996,135146,134473,145082,33047,40286,36120,30267,40005,30286,30649,37701,21554,33096,33527,22053,33074,33816,32957,21994,31074,22083,21526,134813,13774,22021,22001,26353,164578,13869,30004,22e3,21946,21655,21874,134209,134294,24272,151880,134774,142434,134818,40619,32090,21982,135285,25245,38765,21652,36045,29174,37238,25596,25529,25598,21865,142147,40050,143027,20890,13535,134567,20903,21581,21790,21779,30310,36397,157834,30129,32950,34820,34694,35015,33206,33820,135361,17644,29444,149254,23440,33547,157843,22139,141044,163119,147875,163187,159440,160438,37232,135641,37384,146684,173737,134828,134905,29286,138402,18254,151490,163833,135147,16634,40029,25887,142752,18675,149472,171388,135148,134666,24674,161187,135149,null,155720,135559,29091,32398,40272,19994,19972,13687,23309,27826,21351,13996,14812,21373,13989,149016,22682,150382,33325,21579,22442,154261,133497,null,14930,140389,29556,171692,19721,39917,146686,171824,19547,151465,169374,171998,33884,146870,160434,157619,145184,25390,32037,147191,146988,14890,36872,21196,15988,13946,17897,132238,30272,23280,134838,30842,163630,22695,16575,22140,39819,23924,30292,173108,40581,19681,30201,14331,24857,143578,148466,null,22109,135849,22439,149859,171526,21044,159918,13741,27722,40316,31830,39737,22494,137068,23635,25811,169168,156469,160100,34477,134440,159010,150242,134513,null,20990,139023,23950,38659,138705,40577,36940,31519,39682,23761,31651,25192,25397,39679,31695,39722,31870,39726,31810,31878,39957,31740,39689,40727,39963,149822,40794,21875,23491,20477,40600,20466,21088,15878,21201,22375,20566,22967,24082,38856,40363,36700,21609,38836,39232,38842,21292,24880,26924,21466,39946,40194,19515,38465,27008,20646,30022,137069,39386,21107,null,37209,38529,37212,null,37201,167575,25471,159011,27338,22033,37262,30074,25221,132092,29519,31856,154657,146685,null,149785,30422,39837,20010,134356,33726,34882,null,23626,27072,20717,22394,21023,24053,20174,27697,131570,20281,21660,21722,21146,36226,13822,24332,13811,null,27474,37244,40869,39831,38958,39092,39610,40616,40580,29050,31508,null,27642,34840,32632,null,22048,173642,36471,40787,null,36308,36431,40476,36353,25218,164733,36392,36469,31443,150135,31294,30936,27882,35431,30215,166490,40742,27854,34774,30147,172722,30803,194624,36108,29410,29553,35629,29442,29937,36075,150203,34351,24506,34976,17591,null,137275,159237,null,35454,140571,null,24829,30311,39639,40260,37742,39823,34805,null,34831,36087,29484,38689,39856,13782,29362,19463,31825,39242,155993,24921,19460,40598,24957,null,22367,24943,25254,25145,25294,14940,25058,21418,144373,25444,26626,13778,23895,166850,36826,167481,null,20697,138566,30982,21298,38456,134971,16485,null,30718,null,31938,155418,31962,31277,32870,32867,32077,29957,29938,35220,33306,26380,32866,160902,32859,29936,33027,30500,35209,157644,30035,159441,34729,34766,33224,34700,35401,36013,35651,30507,29944,34010,13877,27058,36262,null,35241,29800,28089,34753,147473,29927,15835,29046,24740,24988,15569,29026,24695,null,32625,166701,29264,24809,19326,21024,15384,146631,155351,161366,152881,137540,135934,170243,159196,159917,23745,156077,166415,145015,131310,157766,151310,17762,23327,156492,40784,40614,156267,12288,65292,12289,12290,65294,8231,65307,65306,65311,65281,65072,8230,8229,65104,65105,65106,183,65108,65109,65110,65111,65372,8211,65073,8212,65075,9588,65076,65103,65288,65289,65077,65078,65371,65373,65079,65080,12308,12309,65081,65082,12304,12305,65083,65084,12298,12299,65085,65086,12296,12297,65087,65088,12300,12301,65089,65090,12302,12303,65091,65092,65113,65114,65115,65116,65117,65118,8216,8217,8220,8221,12317,12318,8245,8242,65283,65286,65290,8251,167,12291,9675,9679,9651,9650,9678,9734,9733,9671,9670,9633,9632,9661,9660,12963,8453,175,65507,65343,717,65097,65098,65101,65102,65099,65100,65119,65120,65121,65291,65293,215,247,177,8730,65308,65310,65309,8806,8807,8800,8734,8786,8801,65122,65123,65124,65125,65126,65374,8745,8746,8869,8736,8735,8895,13266,13265,8747,8750,8757,8756,9792,9794,8853,8857,8593,8595,8592,8594,8598,8599,8601,8600,8741,8739,65295,65340,8725,65128,65284,65509,12306,65504,65505,65285,65312,8451,8457,65129,65130,65131,13269,13212,13213,13214,13262,13217,13198,13199,13252,176,20825,20827,20830,20829,20833,20835,21991,29929,31950,9601,9602,9603,9604,9605,9606,9607,9608,9615,9614,9613,9612,9611,9610,9609,9532,9524,9516,9508,9500,9620,9472,9474,9621,9484,9488,9492,9496,9581,9582,9584,9583,9552,9566,9578,9569,9698,9699,9701,9700,9585,9586,9587,65296,65297,65298,65299,65300,65301,65302,65303,65304,65305,8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,12321,12322,12323,12324,12325,12326,12327,12328,12329,21313,21316,21317,65313,65314,65315,65316,65317,65318,65319,65320,65321,65322,65323,65324,65325,65326,65327,65328,65329,65330,65331,65332,65333,65334,65335,65336,65337,65338,65345,65346,65347,65348,65349,65350,65351,65352,65353,65354,65355,65356,65357,65358,65359,65360,65361,65362,65363,65364,65365,65366,65367,65368,65369,65370,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,963,964,965,966,967,968,969,12549,12550,12551,12552,12553,12554,12555,12556,12557,12558,12559,12560,12561,12562,12563,12564,12565,12566,12567,12568,12569,12570,12571,12572,12573,12574,12575,12576,12577,12578,12579,12580,12581,12582,12583,12584,12585,729,713,714,711,715,9216,9217,9218,9219,9220,9221,9222,9223,9224,9225,9226,9227,9228,9229,9230,9231,9232,9233,9234,9235,9236,9237,9238,9239,9240,9241,9242,9243,9244,9245,9246,9247,9249,8364,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,19968,20057,19969,19971,20035,20061,20102,20108,20154,20799,20837,20843,20960,20992,20993,21147,21269,21313,21340,21448,19977,19979,19976,19978,20011,20024,20961,20037,20040,20063,20062,20110,20129,20800,20995,21242,21315,21449,21475,22303,22763,22805,22823,22899,23376,23377,23379,23544,23567,23586,23608,23665,24029,24037,24049,24050,24051,24062,24178,24318,24331,24339,25165,19985,19984,19981,20013,20016,20025,20043,23609,20104,20113,20117,20114,20116,20130,20161,20160,20163,20166,20167,20173,20170,20171,20164,20803,20801,20839,20845,20846,20844,20887,20982,20998,20999,21e3,21243,21246,21247,21270,21305,21320,21319,21317,21342,21380,21451,21450,21453,22764,22825,22827,22826,22829,23380,23569,23588,23610,23663,24052,24187,24319,24340,24341,24515,25096,25142,25163,25166,25903,25991,26007,26020,26041,26085,26352,26376,26408,27424,27490,27513,27595,27604,27611,27663,27700,28779,29226,29238,29243,29255,29273,29275,29356,29579,19993,19990,19989,19988,19992,20027,20045,20047,20046,20197,20184,20180,20181,20182,20183,20195,20196,20185,20190,20805,20804,20873,20874,20908,20985,20986,20984,21002,21152,21151,21253,21254,21271,21277,20191,21322,21321,21345,21344,21359,21358,21435,21487,21476,21491,21484,21486,21481,21480,21500,21496,21493,21483,21478,21482,21490,21489,21488,21477,21485,21499,22235,22234,22806,22830,22833,22900,22902,23381,23427,23612,24040,24039,24038,24066,24067,24179,24188,24321,24344,24343,24517,25098,25171,25172,25170,25169,26021,26086,26414,26412,26410,26411,26413,27491,27597,27665,27664,27704,27713,27712,27710,29359,29572,29577,29916,29926,29976,29983,29992,29993,3e4,30001,30002,30003,30091,30333,30382,30399,30446,30683,30690,30707,31034,31166,31348,31435,19998,19999,20050,20051,20073,20121,20132,20134,20133,20223,20233,20249,20234,20245,20237,20240,20241,20239,20210,20214,20219,20208,20211,20221,20225,20235,20809,20807,20806,20808,20840,20849,20877,20912,21015,21009,21010,21006,21014,21155,21256,21281,21280,21360,21361,21513,21519,21516,21514,21520,21505,21515,21508,21521,21517,21512,21507,21518,21510,21522,22240,22238,22237,22323,22320,22312,22317,22316,22319,22313,22809,22810,22839,22840,22916,22904,22915,22909,22905,22914,22913,23383,23384,23431,23432,23429,23433,23546,23574,23673,24030,24070,24182,24180,24335,24347,24537,24534,25102,25100,25101,25104,25187,25179,25176,25910,26089,26088,26092,26093,26354,26355,26377,26429,26420,26417,26421,27425,27492,27515,27670,27741,27735,27737,27743,27744,27728,27733,27745,27739,27725,27726,28784,29279,29277,30334,31481,31859,31992,32566,32650,32701,32769,32771,32780,32786,32819,32895,32905,32907,32908,33251,33258,33267,33276,33292,33307,33311,33390,33394,33406,34411,34880,34892,34915,35199,38433,20018,20136,20301,20303,20295,20311,20318,20276,20315,20309,20272,20304,20305,20285,20282,20280,20291,20308,20284,20294,20323,20316,20320,20271,20302,20278,20313,20317,20296,20314,20812,20811,20813,20853,20918,20919,21029,21028,21033,21034,21032,21163,21161,21162,21164,21283,21363,21365,21533,21549,21534,21566,21542,21582,21543,21574,21571,21555,21576,21570,21531,21545,21578,21561,21563,21560,21550,21557,21558,21536,21564,21568,21553,21547,21535,21548,22250,22256,22244,22251,22346,22353,22336,22349,22343,22350,22334,22352,22351,22331,22767,22846,22941,22930,22952,22942,22947,22937,22934,22925,22948,22931,22922,22949,23389,23388,23386,23387,23436,23435,23439,23596,23616,23617,23615,23614,23696,23697,23700,23692,24043,24076,24207,24199,24202,24311,24324,24351,24420,24418,24439,24441,24536,24524,24535,24525,24561,24555,24568,24554,25106,25105,25220,25239,25238,25216,25206,25225,25197,25226,25212,25214,25209,25203,25234,25199,25240,25198,25237,25235,25233,25222,25913,25915,25912,26097,26356,26463,26446,26447,26448,26449,26460,26454,26462,26441,26438,26464,26451,26455,27493,27599,27714,27742,27801,27777,27784,27785,27781,27803,27754,27770,27792,27760,27788,27752,27798,27794,27773,27779,27762,27774,27764,27782,27766,27789,27796,27800,27778,28790,28796,28797,28792,29282,29281,29280,29380,29378,29590,29996,29995,30007,30008,30338,30447,30691,31169,31168,31167,31350,31995,32597,32918,32915,32925,32920,32923,32922,32946,33391,33426,33419,33421,35211,35282,35328,35895,35910,35925,35997,36196,36208,36275,36523,36554,36763,36784,36802,36806,36805,36804,24033,37009,37026,37034,37030,37027,37193,37318,37324,38450,38446,38449,38442,38444,20006,20054,20083,20107,20123,20126,20139,20140,20335,20381,20365,20339,20351,20332,20379,20363,20358,20355,20336,20341,20360,20329,20347,20374,20350,20367,20369,20346,20820,20818,20821,20841,20855,20854,20856,20925,20989,21051,21048,21047,21050,21040,21038,21046,21057,21182,21179,21330,21332,21331,21329,21350,21367,21368,21369,21462,21460,21463,21619,21621,21654,21624,21653,21632,21627,21623,21636,21650,21638,21628,21648,21617,21622,21644,21658,21602,21608,21643,21629,21646,22266,22403,22391,22378,22377,22369,22374,22372,22396,22812,22857,22855,22856,22852,22868,22974,22971,22996,22969,22958,22993,22982,22992,22989,22987,22995,22986,22959,22963,22994,22981,23391,23396,23395,23447,23450,23448,23452,23449,23451,23578,23624,23621,23622,23735,23713,23736,23721,23723,23729,23731,24088,24090,24086,24085,24091,24081,24184,24218,24215,24220,24213,24214,24310,24358,24359,24361,24448,24449,24447,24444,24541,24544,24573,24565,24575,24591,24596,24623,24629,24598,24618,24597,24609,24615,24617,24619,24603,25110,25109,25151,25150,25152,25215,25289,25292,25284,25279,25282,25273,25298,25307,25259,25299,25300,25291,25288,25256,25277,25276,25296,25305,25287,25293,25269,25306,25265,25304,25302,25303,25286,25260,25294,25918,26023,26044,26106,26132,26131,26124,26118,26114,26126,26112,26127,26133,26122,26119,26381,26379,26477,26507,26517,26481,26524,26483,26487,26503,26525,26519,26479,26480,26495,26505,26494,26512,26485,26522,26515,26492,26474,26482,27427,27494,27495,27519,27667,27675,27875,27880,27891,27825,27852,27877,27827,27837,27838,27836,27874,27819,27861,27859,27832,27844,27833,27841,27822,27863,27845,27889,27839,27835,27873,27867,27850,27820,27887,27868,27862,27872,28821,28814,28818,28810,28825,29228,29229,29240,29256,29287,29289,29376,29390,29401,29399,29392,29609,29608,29599,29611,29605,30013,30109,30105,30106,30340,30402,30450,30452,30693,30717,31038,31040,31041,31177,31176,31354,31353,31482,31998,32596,32652,32651,32773,32954,32933,32930,32945,32929,32939,32937,32948,32938,32943,33253,33278,33293,33459,33437,33433,33453,33469,33439,33465,33457,33452,33445,33455,33464,33443,33456,33470,33463,34382,34417,21021,34920,36555,36814,36820,36817,37045,37048,37041,37046,37319,37329,38263,38272,38428,38464,38463,38459,38468,38466,38585,38632,38738,38750,20127,20141,20142,20449,20405,20399,20415,20448,20433,20431,20445,20419,20406,20440,20447,20426,20439,20398,20432,20420,20418,20442,20430,20446,20407,20823,20882,20881,20896,21070,21059,21066,21069,21068,21067,21063,21191,21193,21187,21185,21261,21335,21371,21402,21467,21676,21696,21672,21710,21705,21688,21670,21683,21703,21698,21693,21674,21697,21700,21704,21679,21675,21681,21691,21673,21671,21695,22271,22402,22411,22432,22435,22434,22478,22446,22419,22869,22865,22863,22862,22864,23004,23e3,23039,23011,23016,23043,23013,23018,23002,23014,23041,23035,23401,23459,23462,23460,23458,23461,23553,23630,23631,23629,23627,23769,23762,24055,24093,24101,24095,24189,24224,24230,24314,24328,24365,24421,24456,24453,24458,24459,24455,24460,24457,24594,24605,24608,24613,24590,24616,24653,24688,24680,24674,24646,24643,24684,24683,24682,24676,25153,25308,25366,25353,25340,25325,25345,25326,25341,25351,25329,25335,25327,25324,25342,25332,25361,25346,25919,25925,26027,26045,26082,26149,26157,26144,26151,26159,26143,26152,26161,26148,26359,26623,26579,26609,26580,26576,26604,26550,26543,26613,26601,26607,26564,26577,26548,26586,26597,26552,26575,26590,26611,26544,26585,26594,26589,26578,27498,27523,27526,27573,27602,27607,27679,27849,27915,27954,27946,27969,27941,27916,27953,27934,27927,27963,27965,27966,27958,27931,27893,27961,27943,27960,27945,27950,27957,27918,27947,28843,28858,28851,28844,28847,28845,28856,28846,28836,29232,29298,29295,29300,29417,29408,29409,29623,29642,29627,29618,29645,29632,29619,29978,29997,30031,30028,30030,30027,30123,30116,30117,30114,30115,30328,30342,30343,30344,30408,30406,30403,30405,30465,30457,30456,30473,30475,30462,30460,30471,30684,30722,30740,30732,30733,31046,31049,31048,31047,31161,31162,31185,31186,31179,31359,31361,31487,31485,31869,32002,32005,32e3,32009,32007,32004,32006,32568,32654,32703,32772,32784,32781,32785,32822,32982,32997,32986,32963,32964,32972,32993,32987,32974,32990,32996,32989,33268,33314,33511,33539,33541,33507,33499,33510,33540,33509,33538,33545,33490,33495,33521,33537,33500,33492,33489,33502,33491,33503,33519,33542,34384,34425,34427,34426,34893,34923,35201,35284,35336,35330,35331,35998,36e3,36212,36211,36276,36557,36556,36848,36838,36834,36842,36837,36845,36843,36836,36840,37066,37070,37057,37059,37195,37194,37325,38274,38480,38475,38476,38477,38754,38761,38859,38893,38899,38913,39080,39131,39135,39318,39321,20056,20147,20492,20493,20515,20463,20518,20517,20472,20521,20502,20486,20540,20511,20506,20498,20497,20474,20480,20500,20520,20465,20513,20491,20505,20504,20467,20462,20525,20522,20478,20523,20489,20860,20900,20901,20898,20941,20940,20934,20939,21078,21084,21076,21083,21085,21290,21375,21407,21405,21471,21736,21776,21761,21815,21756,21733,21746,21766,21754,21780,21737,21741,21729,21769,21742,21738,21734,21799,21767,21757,21775,22275,22276,22466,22484,22475,22467,22537,22799,22871,22872,22874,23057,23064,23068,23071,23067,23059,23020,23072,23075,23081,23077,23052,23049,23403,23640,23472,23475,23478,23476,23470,23477,23481,23480,23556,23633,23637,23632,23789,23805,23803,23786,23784,23792,23798,23809,23796,24046,24109,24107,24235,24237,24231,24369,24466,24465,24464,24665,24675,24677,24656,24661,24685,24681,24687,24708,24735,24730,24717,24724,24716,24709,24726,25159,25331,25352,25343,25422,25406,25391,25429,25410,25414,25423,25417,25402,25424,25405,25386,25387,25384,25421,25420,25928,25929,26009,26049,26053,26178,26185,26191,26179,26194,26188,26181,26177,26360,26388,26389,26391,26657,26680,26696,26694,26707,26681,26690,26708,26665,26803,26647,26700,26705,26685,26612,26704,26688,26684,26691,26666,26693,26643,26648,26689,27530,27529,27575,27683,27687,27688,27686,27684,27888,28010,28053,28040,28039,28006,28024,28023,27993,28051,28012,28041,28014,27994,28020,28009,28044,28042,28025,28037,28005,28052,28874,28888,28900,28889,28872,28879,29241,29305,29436,29433,29437,29432,29431,29574,29677,29705,29678,29664,29674,29662,30036,30045,30044,30042,30041,30142,30149,30151,30130,30131,30141,30140,30137,30146,30136,30347,30384,30410,30413,30414,30505,30495,30496,30504,30697,30768,30759,30776,30749,30772,30775,30757,30765,30752,30751,30770,31061,31056,31072,31071,31062,31070,31069,31063,31066,31204,31203,31207,31199,31206,31209,31192,31364,31368,31449,31494,31505,31881,32033,32023,32011,32010,32032,32034,32020,32016,32021,32026,32028,32013,32025,32027,32570,32607,32660,32709,32705,32774,32792,32789,32793,32791,32829,32831,33009,33026,33008,33029,33005,33012,33030,33016,33011,33032,33021,33034,33020,33007,33261,33260,33280,33296,33322,33323,33320,33324,33467,33579,33618,33620,33610,33592,33616,33609,33589,33588,33615,33586,33593,33590,33559,33600,33585,33576,33603,34388,34442,34474,34451,34468,34473,34444,34467,34460,34928,34935,34945,34946,34941,34937,35352,35344,35342,35340,35349,35338,35351,35347,35350,35343,35345,35912,35962,35961,36001,36002,36215,36524,36562,36564,36559,36785,36865,36870,36855,36864,36858,36852,36867,36861,36869,36856,37013,37089,37085,37090,37202,37197,37196,37336,37341,37335,37340,37337,38275,38498,38499,38497,38491,38493,38500,38488,38494,38587,39138,39340,39592,39640,39717,39730,39740,20094,20602,20605,20572,20551,20547,20556,20570,20553,20581,20598,20558,20565,20597,20596,20599,20559,20495,20591,20589,20828,20885,20976,21098,21103,21202,21209,21208,21205,21264,21263,21273,21311,21312,21310,21443,26364,21830,21866,21862,21828,21854,21857,21827,21834,21809,21846,21839,21845,21807,21860,21816,21806,21852,21804,21859,21811,21825,21847,22280,22283,22281,22495,22533,22538,22534,22496,22500,22522,22530,22581,22519,22521,22816,22882,23094,23105,23113,23142,23146,23104,23100,23138,23130,23110,23114,23408,23495,23493,23492,23490,23487,23494,23561,23560,23559,23648,23644,23645,23815,23814,23822,23835,23830,23842,23825,23849,23828,23833,23844,23847,23831,24034,24120,24118,24115,24119,24247,24248,24246,24245,24254,24373,24375,24407,24428,24425,24427,24471,24473,24478,24472,24481,24480,24476,24703,24739,24713,24736,24744,24779,24756,24806,24765,24773,24763,24757,24796,24764,24792,24789,24774,24799,24760,24794,24775,25114,25115,25160,25504,25511,25458,25494,25506,25509,25463,25447,25496,25514,25457,25513,25481,25475,25499,25451,25512,25476,25480,25497,25505,25516,25490,25487,25472,25467,25449,25448,25466,25949,25942,25937,25945,25943,21855,25935,25944,25941,25940,26012,26011,26028,26063,26059,26060,26062,26205,26202,26212,26216,26214,26206,26361,21207,26395,26753,26799,26786,26771,26805,26751,26742,26801,26791,26775,26800,26755,26820,26797,26758,26757,26772,26781,26792,26783,26785,26754,27442,27578,27627,27628,27691,28046,28092,28147,28121,28082,28129,28108,28132,28155,28154,28165,28103,28107,28079,28113,28078,28126,28153,28088,28151,28149,28101,28114,28186,28085,28122,28139,28120,28138,28145,28142,28136,28102,28100,28074,28140,28095,28134,28921,28937,28938,28925,28911,29245,29309,29313,29468,29467,29462,29459,29465,29575,29701,29706,29699,29702,29694,29709,29920,29942,29943,29980,29986,30053,30054,30050,30064,30095,30164,30165,30133,30154,30157,30350,30420,30418,30427,30519,30526,30524,30518,30520,30522,30827,30787,30798,31077,31080,31085,31227,31378,31381,31520,31528,31515,31532,31526,31513,31518,31534,31890,31895,31893,32070,32067,32113,32046,32057,32060,32064,32048,32051,32068,32047,32066,32050,32049,32573,32670,32666,32716,32718,32722,32796,32842,32838,33071,33046,33059,33067,33065,33072,33060,33282,33333,33335,33334,33337,33678,33694,33688,33656,33698,33686,33725,33707,33682,33674,33683,33673,33696,33655,33659,33660,33670,33703,34389,24426,34503,34496,34486,34500,34485,34502,34507,34481,34479,34505,34899,34974,34952,34987,34962,34966,34957,34955,35219,35215,35370,35357,35363,35365,35377,35373,35359,35355,35362,35913,35930,36009,36012,36011,36008,36010,36007,36199,36198,36286,36282,36571,36575,36889,36877,36890,36887,36899,36895,36893,36880,36885,36894,36896,36879,36898,36886,36891,36884,37096,37101,37117,37207,37326,37365,37350,37347,37351,37357,37353,38281,38506,38517,38515,38520,38512,38516,38518,38519,38508,38592,38634,38633,31456,31455,38914,38915,39770,40165,40565,40575,40613,40635,20642,20621,20613,20633,20625,20608,20630,20632,20634,26368,20977,21106,21108,21109,21097,21214,21213,21211,21338,21413,21883,21888,21927,21884,21898,21917,21912,21890,21916,21930,21908,21895,21899,21891,21939,21934,21919,21822,21938,21914,21947,21932,21937,21886,21897,21931,21913,22285,22575,22570,22580,22564,22576,22577,22561,22557,22560,22777,22778,22880,23159,23194,23167,23186,23195,23207,23411,23409,23506,23500,23507,23504,23562,23563,23601,23884,23888,23860,23879,24061,24133,24125,24128,24131,24190,24266,24257,24258,24260,24380,24429,24489,24490,24488,24785,24801,24754,24758,24800,24860,24867,24826,24853,24816,24827,24820,24936,24817,24846,24822,24841,24832,24850,25119,25161,25507,25484,25551,25536,25577,25545,25542,25549,25554,25571,25552,25569,25558,25581,25582,25462,25588,25578,25563,25682,25562,25593,25950,25958,25954,25955,26001,26e3,26031,26222,26224,26228,26230,26223,26257,26234,26238,26231,26366,26367,26399,26397,26874,26837,26848,26840,26839,26885,26847,26869,26862,26855,26873,26834,26866,26851,26827,26829,26893,26898,26894,26825,26842,26990,26875,27454,27450,27453,27544,27542,27580,27631,27694,27695,27692,28207,28216,28244,28193,28210,28263,28234,28192,28197,28195,28187,28251,28248,28196,28246,28270,28205,28198,28271,28212,28237,28218,28204,28227,28189,28222,28363,28297,28185,28238,28259,28228,28274,28265,28255,28953,28954,28966,28976,28961,28982,29038,28956,29260,29316,29312,29494,29477,29492,29481,29754,29738,29747,29730,29733,29749,29750,29748,29743,29723,29734,29736,29989,29990,30059,30058,30178,30171,30179,30169,30168,30174,30176,30331,30332,30358,30355,30388,30428,30543,30701,30813,30828,30831,31245,31240,31243,31237,31232,31384,31383,31382,31461,31459,31561,31574,31558,31568,31570,31572,31565,31563,31567,31569,31903,31909,32094,32080,32104,32085,32043,32110,32114,32097,32102,32098,32112,32115,21892,32724,32725,32779,32850,32901,33109,33108,33099,33105,33102,33081,33094,33086,33100,33107,33140,33298,33308,33769,33795,33784,33805,33760,33733,33803,33729,33775,33777,33780,33879,33802,33776,33804,33740,33789,33778,33738,33848,33806,33796,33756,33799,33748,33759,34395,34527,34521,34541,34516,34523,34532,34512,34526,34903,35009,35010,34993,35203,35222,35387,35424,35413,35422,35388,35393,35412,35419,35408,35398,35380,35386,35382,35414,35937,35970,36015,36028,36019,36029,36033,36027,36032,36020,36023,36022,36031,36024,36234,36229,36225,36302,36317,36299,36314,36305,36300,36315,36294,36603,36600,36604,36764,36910,36917,36913,36920,36914,36918,37122,37109,37129,37118,37219,37221,37327,37396,37397,37411,37385,37406,37389,37392,37383,37393,38292,38287,38283,38289,38291,38290,38286,38538,38542,38539,38525,38533,38534,38541,38514,38532,38593,38597,38596,38598,38599,38639,38642,38860,38917,38918,38920,39143,39146,39151,39145,39154,39149,39342,39341,40643,40653,40657,20098,20653,20661,20658,20659,20677,20670,20652,20663,20667,20655,20679,21119,21111,21117,21215,21222,21220,21218,21219,21295,21983,21992,21971,21990,21966,21980,21959,21969,21987,21988,21999,21978,21985,21957,21958,21989,21961,22290,22291,22622,22609,22616,22615,22618,22612,22635,22604,22637,22602,22626,22610,22603,22887,23233,23241,23244,23230,23229,23228,23219,23234,23218,23913,23919,24140,24185,24265,24264,24338,24409,24492,24494,24858,24847,24904,24863,24819,24859,24825,24833,24840,24910,24908,24900,24909,24894,24884,24871,24845,24838,24887,25121,25122,25619,25662,25630,25642,25645,25661,25644,25615,25628,25620,25613,25654,25622,25623,25606,25964,26015,26032,26263,26249,26247,26248,26262,26244,26264,26253,26371,27028,26989,26970,26999,26976,26964,26997,26928,27010,26954,26984,26987,26974,26963,27001,27014,26973,26979,26971,27463,27506,27584,27583,27603,27645,28322,28335,28371,28342,28354,28304,28317,28359,28357,28325,28312,28348,28346,28331,28369,28310,28316,28356,28372,28330,28327,28340,29006,29017,29033,29028,29001,29031,29020,29036,29030,29004,29029,29022,28998,29032,29014,29242,29266,29495,29509,29503,29502,29807,29786,29781,29791,29790,29761,29759,29785,29787,29788,30070,30072,30208,30192,30209,30194,30193,30202,30207,30196,30195,30430,30431,30555,30571,30566,30558,30563,30585,30570,30572,30556,30565,30568,30562,30702,30862,30896,30871,30872,30860,30857,30844,30865,30867,30847,31098,31103,31105,33836,31165,31260,31258,31264,31252,31263,31262,31391,31392,31607,31680,31584,31598,31591,31921,31923,31925,32147,32121,32145,32129,32143,32091,32622,32617,32618,32626,32681,32680,32676,32854,32856,32902,32900,33137,33136,33144,33125,33134,33139,33131,33145,33146,33126,33285,33351,33922,33911,33853,33841,33909,33894,33899,33865,33900,33883,33852,33845,33889,33891,33897,33901,33862,34398,34396,34399,34553,34579,34568,34567,34560,34558,34555,34562,34563,34566,34570,34905,35039,35028,35033,35036,35032,35037,35041,35018,35029,35026,35228,35299,35435,35442,35443,35430,35433,35440,35463,35452,35427,35488,35441,35461,35437,35426,35438,35436,35449,35451,35390,35432,35938,35978,35977,36042,36039,36040,36036,36018,36035,36034,36037,36321,36319,36328,36335,36339,36346,36330,36324,36326,36530,36611,36617,36606,36618,36767,36786,36939,36938,36947,36930,36948,36924,36949,36944,36935,36943,36942,36941,36945,36926,36929,37138,37143,37228,37226,37225,37321,37431,37463,37432,37437,37440,37438,37467,37451,37476,37457,37428,37449,37453,37445,37433,37439,37466,38296,38552,38548,38549,38605,38603,38601,38602,38647,38651,38649,38646,38742,38772,38774,38928,38929,38931,38922,38930,38924,39164,39156,39165,39166,39347,39345,39348,39649,40169,40578,40718,40723,40736,20711,20718,20709,20694,20717,20698,20693,20687,20689,20721,20686,20713,20834,20979,21123,21122,21297,21421,22014,22016,22043,22039,22013,22036,22022,22025,22029,22030,22007,22038,22047,22024,22032,22006,22296,22294,22645,22654,22659,22675,22666,22649,22661,22653,22781,22821,22818,22820,22890,22889,23265,23270,23273,23255,23254,23256,23267,23413,23518,23527,23521,23525,23526,23528,23522,23524,23519,23565,23650,23940,23943,24155,24163,24149,24151,24148,24275,24278,24330,24390,24432,24505,24903,24895,24907,24951,24930,24931,24927,24922,24920,24949,25130,25735,25688,25684,25764,25720,25695,25722,25681,25703,25652,25709,25723,25970,26017,26071,26070,26274,26280,26269,27036,27048,27029,27073,27054,27091,27083,27035,27063,27067,27051,27060,27088,27085,27053,27084,27046,27075,27043,27465,27468,27699,28467,28436,28414,28435,28404,28457,28478,28448,28460,28431,28418,28450,28415,28399,28422,28465,28472,28466,28451,28437,28459,28463,28552,28458,28396,28417,28402,28364,28407,29076,29081,29053,29066,29060,29074,29246,29330,29334,29508,29520,29796,29795,29802,29808,29805,29956,30097,30247,30221,30219,30217,30227,30433,30435,30596,30589,30591,30561,30913,30879,30887,30899,30889,30883,31118,31119,31117,31278,31281,31402,31401,31469,31471,31649,31637,31627,31605,31639,31645,31636,31631,31672,31623,31620,31929,31933,31934,32187,32176,32156,32189,32190,32160,32202,32180,32178,32177,32186,32162,32191,32181,32184,32173,32210,32199,32172,32624,32736,32737,32735,32862,32858,32903,33104,33152,33167,33160,33162,33151,33154,33255,33274,33287,33300,33310,33355,33993,33983,33990,33988,33945,33950,33970,33948,33995,33976,33984,34003,33936,33980,34001,33994,34623,34588,34619,34594,34597,34612,34584,34645,34615,34601,35059,35074,35060,35065,35064,35069,35048,35098,35055,35494,35468,35486,35491,35469,35489,35475,35492,35498,35493,35496,35480,35473,35482,35495,35946,35981,35980,36051,36049,36050,36203,36249,36245,36348,36628,36626,36629,36627,36771,36960,36952,36956,36963,36953,36958,36962,36957,36955,37145,37144,37150,37237,37240,37239,37236,37496,37504,37509,37528,37526,37499,37523,37532,37544,37500,37521,38305,38312,38313,38307,38309,38308,38553,38556,38555,38604,38610,38656,38780,38789,38902,38935,38936,39087,39089,39171,39173,39180,39177,39361,39599,39600,39654,39745,39746,40180,40182,40179,40636,40763,40778,20740,20736,20731,20725,20729,20738,20744,20745,20741,20956,21127,21128,21129,21133,21130,21232,21426,22062,22075,22073,22066,22079,22068,22057,22099,22094,22103,22132,22070,22063,22064,22656,22687,22686,22707,22684,22702,22697,22694,22893,23305,23291,23307,23285,23308,23304,23534,23532,23529,23531,23652,23653,23965,23956,24162,24159,24161,24290,24282,24287,24285,24291,24288,24392,24433,24503,24501,24950,24935,24942,24925,24917,24962,24956,24944,24939,24958,24999,24976,25003,24974,25004,24986,24996,24980,25006,25134,25705,25711,25721,25758,25778,25736,25744,25776,25765,25747,25749,25769,25746,25774,25773,25771,25754,25772,25753,25762,25779,25973,25975,25976,26286,26283,26292,26289,27171,27167,27112,27137,27166,27161,27133,27169,27155,27146,27123,27138,27141,27117,27153,27472,27470,27556,27589,27590,28479,28540,28548,28497,28518,28500,28550,28525,28507,28536,28526,28558,28538,28528,28516,28567,28504,28373,28527,28512,28511,29087,29100,29105,29096,29270,29339,29518,29527,29801,29835,29827,29822,29824,30079,30240,30249,30239,30244,30246,30241,30242,30362,30394,30436,30606,30599,30604,30609,30603,30923,30917,30906,30922,30910,30933,30908,30928,31295,31292,31296,31293,31287,31291,31407,31406,31661,31665,31684,31668,31686,31687,31681,31648,31692,31946,32224,32244,32239,32251,32216,32236,32221,32232,32227,32218,32222,32233,32158,32217,32242,32249,32629,32631,32687,32745,32806,33179,33180,33181,33184,33178,33176,34071,34109,34074,34030,34092,34093,34067,34065,34083,34081,34068,34028,34085,34047,34054,34690,34676,34678,34656,34662,34680,34664,34649,34647,34636,34643,34907,34909,35088,35079,35090,35091,35093,35082,35516,35538,35527,35524,35477,35531,35576,35506,35529,35522,35519,35504,35542,35533,35510,35513,35547,35916,35918,35948,36064,36062,36070,36068,36076,36077,36066,36067,36060,36074,36065,36205,36255,36259,36395,36368,36381,36386,36367,36393,36383,36385,36382,36538,36637,36635,36639,36649,36646,36650,36636,36638,36645,36969,36974,36968,36973,36983,37168,37165,37159,37169,37255,37257,37259,37251,37573,37563,37559,37610,37548,37604,37569,37555,37564,37586,37575,37616,37554,38317,38321,38660,38662,38663,38665,38752,38797,38795,38799,38945,38955,38940,39091,39178,39187,39186,39192,39389,39376,39391,39387,39377,39381,39378,39385,39607,39662,39663,39719,39749,39748,39799,39791,40198,40201,40195,40617,40638,40654,22696,40786,20754,20760,20756,20752,20757,20864,20906,20957,21137,21139,21235,22105,22123,22137,22121,22116,22136,22122,22120,22117,22129,22127,22124,22114,22134,22721,22718,22727,22725,22894,23325,23348,23416,23536,23566,24394,25010,24977,25001,24970,25037,25014,25022,25034,25032,25136,25797,25793,25803,25787,25788,25818,25796,25799,25794,25805,25791,25810,25812,25790,25972,26310,26313,26297,26308,26311,26296,27197,27192,27194,27225,27243,27224,27193,27204,27234,27233,27211,27207,27189,27231,27208,27481,27511,27653,28610,28593,28577,28611,28580,28609,28583,28595,28608,28601,28598,28582,28576,28596,29118,29129,29136,29138,29128,29141,29113,29134,29145,29148,29123,29124,29544,29852,29859,29848,29855,29854,29922,29964,29965,30260,30264,30266,30439,30437,30624,30622,30623,30629,30952,30938,30956,30951,31142,31309,31310,31302,31308,31307,31418,31705,31761,31689,31716,31707,31713,31721,31718,31957,31958,32266,32273,32264,32283,32291,32286,32285,32265,32272,32633,32690,32752,32753,32750,32808,33203,33193,33192,33275,33288,33368,33369,34122,34137,34120,34152,34153,34115,34121,34157,34154,34142,34691,34719,34718,34722,34701,34913,35114,35122,35109,35115,35105,35242,35238,35558,35578,35563,35569,35584,35548,35559,35566,35582,35585,35586,35575,35565,35571,35574,35580,35947,35949,35987,36084,36420,36401,36404,36418,36409,36405,36667,36655,36664,36659,36776,36774,36981,36980,36984,36978,36988,36986,37172,37266,37664,37686,37624,37683,37679,37666,37628,37675,37636,37658,37648,37670,37665,37653,37678,37657,38331,38567,38568,38570,38613,38670,38673,38678,38669,38675,38671,38747,38748,38758,38808,38960,38968,38971,38967,38957,38969,38948,39184,39208,39198,39195,39201,39194,39405,39394,39409,39608,39612,39675,39661,39720,39825,40213,40227,40230,40232,40210,40219,40664,40660,40845,40860,20778,20767,20769,20786,21237,22158,22144,22160,22149,22151,22159,22741,22739,22737,22734,23344,23338,23332,23418,23607,23656,23996,23994,23997,23992,24171,24396,24509,25033,25026,25031,25062,25035,25138,25140,25806,25802,25816,25824,25840,25830,25836,25841,25826,25837,25986,25987,26329,26326,27264,27284,27268,27298,27292,27355,27299,27262,27287,27280,27296,27484,27566,27610,27656,28632,28657,28639,28640,28635,28644,28651,28655,28544,28652,28641,28649,28629,28654,28656,29159,29151,29166,29158,29157,29165,29164,29172,29152,29237,29254,29552,29554,29865,29872,29862,29864,30278,30274,30284,30442,30643,30634,30640,30636,30631,30637,30703,30967,30970,30964,30959,30977,31143,31146,31319,31423,31751,31757,31742,31735,31756,31712,31968,31964,31966,31970,31967,31961,31965,32302,32318,32326,32311,32306,32323,32299,32317,32305,32325,32321,32308,32313,32328,32309,32319,32303,32580,32755,32764,32881,32882,32880,32879,32883,33222,33219,33210,33218,33216,33215,33213,33225,33214,33256,33289,33393,34218,34180,34174,34204,34193,34196,34223,34203,34183,34216,34186,34407,34752,34769,34739,34770,34758,34731,34747,34746,34760,34763,35131,35126,35140,35128,35133,35244,35598,35607,35609,35611,35594,35616,35613,35588,35600,35905,35903,35955,36090,36093,36092,36088,36091,36264,36425,36427,36424,36426,36676,36670,36674,36677,36671,36991,36989,36996,36993,36994,36992,37177,37283,37278,37276,37709,37762,37672,37749,37706,37733,37707,37656,37758,37740,37723,37744,37722,37716,38346,38347,38348,38344,38342,38577,38584,38614,38684,38686,38816,38867,38982,39094,39221,39425,39423,39854,39851,39850,39853,40251,40255,40587,40655,40670,40668,40669,40667,40766,40779,21474,22165,22190,22745,22744,23352,24413,25059,25139,25844,25842,25854,25862,25850,25851,25847,26039,26332,26406,27315,27308,27331,27323,27320,27330,27310,27311,27487,27512,27567,28681,28683,28670,28678,28666,28689,28687,29179,29180,29182,29176,29559,29557,29863,29887,29973,30294,30296,30290,30653,30655,30651,30652,30990,31150,31329,31330,31328,31428,31429,31787,31783,31786,31774,31779,31777,31975,32340,32341,32350,32346,32353,32338,32345,32584,32761,32763,32887,32886,33229,33231,33290,34255,34217,34253,34256,34249,34224,34234,34233,34214,34799,34796,34802,34784,35206,35250,35316,35624,35641,35628,35627,35920,36101,36441,36451,36454,36452,36447,36437,36544,36681,36685,36999,36995,37e3,37291,37292,37328,37780,37770,37782,37794,37811,37806,37804,37808,37784,37786,37783,38356,38358,38352,38357,38626,38620,38617,38619,38622,38692,38819,38822,38829,38905,38989,38991,38988,38990,38995,39098,39230,39231,39229,39214,39333,39438,39617,39683,39686,39759,39758,39757,39882,39881,39933,39880,39872,40273,40285,40288,40672,40725,40748,20787,22181,22750,22751,22754,23541,40848,24300,25074,25079,25078,25077,25856,25871,26336,26333,27365,27357,27354,27347,28699,28703,28712,28698,28701,28693,28696,29190,29197,29272,29346,29560,29562,29885,29898,29923,30087,30086,30303,30305,30663,31001,31153,31339,31337,31806,31807,31800,31805,31799,31808,32363,32365,32377,32361,32362,32645,32371,32694,32697,32696,33240,34281,34269,34282,34261,34276,34277,34295,34811,34821,34829,34809,34814,35168,35167,35158,35166,35649,35676,35672,35657,35674,35662,35663,35654,35673,36104,36106,36476,36466,36487,36470,36460,36474,36468,36692,36686,36781,37002,37003,37297,37294,37857,37841,37855,37827,37832,37852,37853,37846,37858,37837,37848,37860,37847,37864,38364,38580,38627,38698,38695,38753,38876,38907,39006,39e3,39003,39100,39237,39241,39446,39449,39693,39912,39911,39894,39899,40329,40289,40306,40298,40300,40594,40599,40595,40628,21240,22184,22199,22198,22196,22204,22756,23360,23363,23421,23542,24009,25080,25082,25880,25876,25881,26342,26407,27372,28734,28720,28722,29200,29563,29903,30306,30309,31014,31018,31020,31019,31431,31478,31820,31811,31821,31983,31984,36782,32381,32380,32386,32588,32768,33242,33382,34299,34297,34321,34298,34310,34315,34311,34314,34836,34837,35172,35258,35320,35696,35692,35686,35695,35679,35691,36111,36109,36489,36481,36485,36482,37300,37323,37912,37891,37885,38369,38704,39108,39250,39249,39336,39467,39472,39479,39477,39955,39949,40569,40629,40680,40751,40799,40803,40801,20791,20792,22209,22208,22210,22804,23660,24013,25084,25086,25885,25884,26005,26345,27387,27396,27386,27570,28748,29211,29351,29910,29908,30313,30675,31824,32399,32396,32700,34327,34349,34330,34851,34850,34849,34847,35178,35180,35261,35700,35703,35709,36115,36490,36493,36491,36703,36783,37306,37934,37939,37941,37946,37944,37938,37931,38370,38712,38713,38706,38911,39015,39013,39255,39493,39491,39488,39486,39631,39764,39761,39981,39973,40367,40372,40386,40376,40605,40687,40729,40796,40806,40807,20796,20795,22216,22218,22217,23423,24020,24018,24398,25087,25892,27402,27489,28753,28760,29568,29924,30090,30318,30316,31155,31840,31839,32894,32893,33247,35186,35183,35324,35712,36118,36119,36497,36499,36705,37192,37956,37969,37970,38717,38718,38851,38849,39019,39253,39509,39501,39634,39706,40009,39985,39998,39995,40403,40407,40756,40812,40810,40852,22220,24022,25088,25891,25899,25898,26348,27408,29914,31434,31844,31843,31845,32403,32406,32404,33250,34360,34367,34865,35722,37008,37007,37987,37984,37988,38760,39023,39260,39514,39515,39511,39635,39636,39633,40020,40023,40022,40421,40607,40692,22225,22761,25900,28766,30321,30322,30679,32592,32648,34870,34873,34914,35731,35730,35734,33399,36123,37312,37994,38722,38728,38724,38854,39024,39519,39714,39768,40031,40441,40442,40572,40573,40711,40823,40818,24307,27414,28771,31852,31854,34875,35264,36513,37313,38002,38e3,39025,39262,39638,39715,40652,28772,30682,35738,38007,38857,39522,39525,32412,35740,36522,37317,38013,38014,38012,40055,40056,40695,35924,38015,40474,29224,39530,39729,40475,40478,31858,9312,9313,9314,9315,9316,9317,9318,9319,9320,9321,9332,9333,9334,9335,9336,9337,9338,9339,9340,9341,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,20022,20031,20101,20128,20866,20886,20907,21241,21304,21353,21430,22794,23424,24027,12083,24191,24308,24400,24417,25908,26080,30098,30326,36789,38582,168,710,12541,12542,12445,12446,12291,20189,12293,12294,12295,12540,65339,65341,10045,12353,12354,12355,12356,12357,12358,12359,12360,12361,12362,12363,12364,12365,12366,12367,12368,12369,12370,12371,12372,12373,12374,12375,12376,12377,12378,12379,12380,12381,12382,12383,12384,12385,12386,12387,12388,12389,12390,12391,12392,12393,12394,12395,12396,12397,12398,12399,12400,12401,12402,12403,12404,12405,12406,12407,12408,12409,12410,12411,12412,12413,12414,12415,12416,12417,12418,12419,12420,12421,12422,12423,12424,12425,12426,12427,12428,12429,12430,12431,12432,12433,12434,12435,12449,12450,12451,12452,12453,12454,12455,12456,12457,12458,12459,12460,12461,12462,12463,12464,12465,12466,12467,12468,12469,12470,12471,12472,12473,12474,12475,12476,12477,12478,12479,12480,12481,12482,12483,12484,12485,12486,12487,12488,12489,12490,12491,12492,12493,12494,12495,12496,12497,12498,12499,12500,12501,12502,12503,12504,12505,12506,12507,12508,12509,12510,12511,12512,12513,12514,12515,12516,12517,12518,12519,12520,12521,12522,12523,12524,12525,12526,12527,12528,12529,12530,12531,12532,12533,12534,1040,1041,1042,1043,1044,1045,1025,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1105,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,8679,8632,8633,12751,131276,20058,131210,20994,17553,40880,20872,40881,161287,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,65506,65508,65287,65282,12849,8470,8481,12443,12444,11904,11908,11910,11911,11912,11914,11916,11917,11925,11932,11933,11941,11943,11946,11948,11950,11958,11964,11966,11974,11978,11980,11981,11983,11990,11991,11998,12003,null,null,null,643,592,603,596,629,339,248,331,650,618,20034,20060,20981,21274,21378,19975,19980,20039,20109,22231,64012,23662,24435,19983,20871,19982,20014,20115,20162,20169,20168,20888,21244,21356,21433,22304,22787,22828,23568,24063,26081,27571,27596,27668,29247,20017,20028,20200,20188,20201,20193,20189,20186,21004,21276,21324,22306,22307,22807,22831,23425,23428,23570,23611,23668,23667,24068,24192,24194,24521,25097,25168,27669,27702,27715,27711,27707,29358,29360,29578,31160,32906,38430,20238,20248,20268,20213,20244,20209,20224,20215,20232,20253,20226,20229,20258,20243,20228,20212,20242,20913,21011,21001,21008,21158,21282,21279,21325,21386,21511,22241,22239,22318,22314,22324,22844,22912,22908,22917,22907,22910,22903,22911,23382,23573,23589,23676,23674,23675,23678,24031,24181,24196,24322,24346,24436,24533,24532,24527,25180,25182,25188,25185,25190,25186,25177,25184,25178,25189,26095,26094,26430,26425,26424,26427,26426,26431,26428,26419,27672,27718,27730,27740,27727,27722,27732,27723,27724,28785,29278,29364,29365,29582,29994,30335,31349,32593,33400,33404,33408,33405,33407,34381,35198,37017,37015,37016,37019,37012,38434,38436,38432,38435,20310,20283,20322,20297,20307,20324,20286,20327,20306,20319,20289,20312,20269,20275,20287,20321,20879,20921,21020,21022,21025,21165,21166,21257,21347,21362,21390,21391,21552,21559,21546,21588,21573,21529,21532,21541,21528,21565,21583,21569,21544,21540,21575,22254,22247,22245,22337,22341,22348,22345,22347,22354,22790,22848,22950,22936,22944,22935,22926,22946,22928,22927,22951,22945,23438,23442,23592,23594,23693,23695,23688,23691,23689,23698,23690,23686,23699,23701,24032,24074,24078,24203,24201,24204,24200,24205,24325,24349,24440,24438,24530,24529,24528,24557,24552,24558,24563,24545,24548,24547,24570,24559,24567,24571,24576,24564,25146,25219,25228,25230,25231,25236,25223,25201,25211,25210,25200,25217,25224,25207,25213,25202,25204,25911,26096,26100,26099,26098,26101,26437,26439,26457,26453,26444,26440,26461,26445,26458,26443,27600,27673,27674,27768,27751,27755,27780,27787,27791,27761,27759,27753,27802,27757,27783,27797,27804,27750,27763,27749,27771,27790,28788,28794,29283,29375,29373,29379,29382,29377,29370,29381,29589,29591,29587,29588,29586,30010,30009,30100,30101,30337,31037,32820,32917,32921,32912,32914,32924,33424,33423,33413,33422,33425,33427,33418,33411,33412,35960,36809,36799,37023,37025,37029,37022,37031,37024,38448,38440,38447,38445,20019,20376,20348,20357,20349,20352,20359,20342,20340,20361,20356,20343,20300,20375,20330,20378,20345,20353,20344,20368,20380,20372,20382,20370,20354,20373,20331,20334,20894,20924,20926,21045,21042,21043,21062,21041,21180,21258,21259,21308,21394,21396,21639,21631,21633,21649,21634,21640,21611,21626,21630,21605,21612,21620,21606,21645,21615,21601,21600,21656,21603,21607,21604,22263,22265,22383,22386,22381,22379,22385,22384,22390,22400,22389,22395,22387,22388,22370,22376,22397,22796,22853,22965,22970,22991,22990,22962,22988,22977,22966,22972,22979,22998,22961,22973,22976,22984,22964,22983,23394,23397,23443,23445,23620,23623,23726,23716,23712,23733,23727,23720,23724,23711,23715,23725,23714,23722,23719,23709,23717,23734,23728,23718,24087,24084,24089,24360,24354,24355,24356,24404,24450,24446,24445,24542,24549,24621,24614,24601,24626,24587,24628,24586,24599,24627,24602,24606,24620,24610,24589,24592,24622,24595,24593,24588,24585,24604,25108,25149,25261,25268,25297,25278,25258,25270,25290,25262,25267,25263,25275,25257,25264,25272,25917,26024,26043,26121,26108,26116,26130,26120,26107,26115,26123,26125,26117,26109,26129,26128,26358,26378,26501,26476,26510,26514,26486,26491,26520,26502,26500,26484,26509,26508,26490,26527,26513,26521,26499,26493,26497,26488,26489,26516,27429,27520,27518,27614,27677,27795,27884,27883,27886,27865,27830,27860,27821,27879,27831,27856,27842,27834,27843,27846,27885,27890,27858,27869,27828,27786,27805,27776,27870,27840,27952,27853,27847,27824,27897,27855,27881,27857,28820,28824,28805,28819,28806,28804,28817,28822,28802,28826,28803,29290,29398,29387,29400,29385,29404,29394,29396,29402,29388,29393,29604,29601,29613,29606,29602,29600,29612,29597,29917,29928,30015,30016,30014,30092,30104,30383,30451,30449,30448,30453,30712,30716,30713,30715,30714,30711,31042,31039,31173,31352,31355,31483,31861,31997,32821,32911,32942,32931,32952,32949,32941,33312,33440,33472,33451,33434,33432,33435,33461,33447,33454,33468,33438,33466,33460,33448,33441,33449,33474,33444,33475,33462,33442,34416,34415,34413,34414,35926,36818,36811,36819,36813,36822,36821,36823,37042,37044,37039,37043,37040,38457,38461,38460,38458,38467,20429,20421,20435,20402,20425,20427,20417,20436,20444,20441,20411,20403,20443,20423,20438,20410,20416,20409,20460,21060,21065,21184,21186,21309,21372,21399,21398,21401,21400,21690,21665,21677,21669,21711,21699,33549,21687,21678,21718,21686,21701,21702,21664,21616,21692,21666,21694,21618,21726,21680,22453,22430,22431,22436,22412,22423,22429,22427,22420,22424,22415,22425,22437,22426,22421,22772,22797,22867,23009,23006,23022,23040,23025,23005,23034,23037,23036,23030,23012,23026,23031,23003,23017,23027,23029,23008,23038,23028,23021,23464,23628,23760,23768,23756,23767,23755,23771,23774,23770,23753,23751,23754,23766,23763,23764,23759,23752,23750,23758,23775,23800,24057,24097,24098,24099,24096,24100,24240,24228,24226,24219,24227,24229,24327,24366,24406,24454,24631,24633,24660,24690,24670,24645,24659,24647,24649,24667,24652,24640,24642,24671,24612,24644,24664,24678,24686,25154,25155,25295,25357,25355,25333,25358,25347,25323,25337,25359,25356,25336,25334,25344,25363,25364,25338,25365,25339,25328,25921,25923,26026,26047,26166,26145,26162,26165,26140,26150,26146,26163,26155,26170,26141,26164,26169,26158,26383,26384,26561,26610,26568,26554,26588,26555,26616,26584,26560,26551,26565,26603,26596,26591,26549,26573,26547,26615,26614,26606,26595,26562,26553,26574,26599,26608,26546,26620,26566,26605,26572,26542,26598,26587,26618,26569,26570,26563,26602,26571,27432,27522,27524,27574,27606,27608,27616,27680,27681,27944,27956,27949,27935,27964,27967,27922,27914,27866,27955,27908,27929,27962,27930,27921,27904,27933,27970,27905,27928,27959,27907,27919,27968,27911,27936,27948,27912,27938,27913,27920,28855,28831,28862,28849,28848,28833,28852,28853,28841,29249,29257,29258,29292,29296,29299,29294,29386,29412,29416,29419,29407,29418,29414,29411,29573,29644,29634,29640,29637,29625,29622,29621,29620,29675,29631,29639,29630,29635,29638,29624,29643,29932,29934,29998,30023,30024,30119,30122,30329,30404,30472,30467,30468,30469,30474,30455,30459,30458,30695,30696,30726,30737,30738,30725,30736,30735,30734,30729,30723,30739,31050,31052,31051,31045,31044,31189,31181,31183,31190,31182,31360,31358,31441,31488,31489,31866,31864,31865,31871,31872,31873,32003,32008,32001,32600,32657,32653,32702,32775,32782,32783,32788,32823,32984,32967,32992,32977,32968,32962,32976,32965,32995,32985,32988,32970,32981,32969,32975,32983,32998,32973,33279,33313,33428,33497,33534,33529,33543,33512,33536,33493,33594,33515,33494,33524,33516,33505,33522,33525,33548,33531,33526,33520,33514,33508,33504,33530,33523,33517,34423,34420,34428,34419,34881,34894,34919,34922,34921,35283,35332,35335,36210,36835,36833,36846,36832,37105,37053,37055,37077,37061,37054,37063,37067,37064,37332,37331,38484,38479,38481,38483,38474,38478,20510,20485,20487,20499,20514,20528,20507,20469,20468,20531,20535,20524,20470,20471,20503,20508,20512,20519,20533,20527,20529,20494,20826,20884,20883,20938,20932,20933,20936,20942,21089,21082,21074,21086,21087,21077,21090,21197,21262,21406,21798,21730,21783,21778,21735,21747,21732,21786,21759,21764,21768,21739,21777,21765,21745,21770,21755,21751,21752,21728,21774,21763,21771,22273,22274,22476,22578,22485,22482,22458,22470,22461,22460,22456,22454,22463,22471,22480,22457,22465,22798,22858,23065,23062,23085,23086,23061,23055,23063,23050,23070,23091,23404,23463,23469,23468,23555,23638,23636,23788,23807,23790,23793,23799,23808,23801,24105,24104,24232,24238,24234,24236,24371,24368,24423,24669,24666,24679,24641,24738,24712,24704,24722,24705,24733,24707,24725,24731,24727,24711,24732,24718,25113,25158,25330,25360,25430,25388,25412,25413,25398,25411,25572,25401,25419,25418,25404,25385,25409,25396,25432,25428,25433,25389,25415,25395,25434,25425,25400,25431,25408,25416,25930,25926,26054,26051,26052,26050,26186,26207,26183,26193,26386,26387,26655,26650,26697,26674,26675,26683,26699,26703,26646,26673,26652,26677,26667,26669,26671,26702,26692,26676,26653,26642,26644,26662,26664,26670,26701,26682,26661,26656,27436,27439,27437,27441,27444,27501,32898,27528,27622,27620,27624,27619,27618,27623,27685,28026,28003,28004,28022,27917,28001,28050,27992,28002,28013,28015,28049,28045,28143,28031,28038,27998,28007,28e3,28055,28016,28028,27999,28034,28056,27951,28008,28043,28030,28032,28036,27926,28035,28027,28029,28021,28048,28892,28883,28881,28893,28875,32569,28898,28887,28882,28894,28896,28884,28877,28869,28870,28871,28890,28878,28897,29250,29304,29303,29302,29440,29434,29428,29438,29430,29427,29435,29441,29651,29657,29669,29654,29628,29671,29667,29673,29660,29650,29659,29652,29661,29658,29655,29656,29672,29918,29919,29940,29941,29985,30043,30047,30128,30145,30139,30148,30144,30143,30134,30138,30346,30409,30493,30491,30480,30483,30482,30499,30481,30485,30489,30490,30498,30503,30755,30764,30754,30773,30767,30760,30766,30763,30753,30761,30771,30762,30769,31060,31067,31055,31068,31059,31058,31057,31211,31212,31200,31214,31213,31210,31196,31198,31197,31366,31369,31365,31371,31372,31370,31367,31448,31504,31492,31507,31493,31503,31496,31498,31502,31497,31506,31876,31889,31882,31884,31880,31885,31877,32030,32029,32017,32014,32024,32022,32019,32031,32018,32015,32012,32604,32609,32606,32608,32605,32603,32662,32658,32707,32706,32704,32790,32830,32825,33018,33010,33017,33013,33025,33019,33024,33281,33327,33317,33587,33581,33604,33561,33617,33573,33622,33599,33601,33574,33564,33570,33602,33614,33563,33578,33544,33596,33613,33558,33572,33568,33591,33583,33577,33607,33605,33612,33619,33566,33580,33611,33575,33608,34387,34386,34466,34472,34454,34445,34449,34462,34439,34455,34438,34443,34458,34437,34469,34457,34465,34471,34453,34456,34446,34461,34448,34452,34883,34884,34925,34933,34934,34930,34944,34929,34943,34927,34947,34942,34932,34940,35346,35911,35927,35963,36004,36003,36214,36216,36277,36279,36278,36561,36563,36862,36853,36866,36863,36859,36868,36860,36854,37078,37088,37081,37082,37091,37087,37093,37080,37083,37079,37084,37092,37200,37198,37199,37333,37346,37338,38492,38495,38588,39139,39647,39727,20095,20592,20586,20577,20574,20576,20563,20555,20573,20594,20552,20557,20545,20571,20554,20578,20501,20549,20575,20585,20587,20579,20580,20550,20544,20590,20595,20567,20561,20944,21099,21101,21100,21102,21206,21203,21293,21404,21877,21878,21820,21837,21840,21812,21802,21841,21858,21814,21813,21808,21842,21829,21772,21810,21861,21838,21817,21832,21805,21819,21824,21835,22282,22279,22523,22548,22498,22518,22492,22516,22528,22509,22525,22536,22520,22539,22515,22479,22535,22510,22499,22514,22501,22508,22497,22542,22524,22544,22503,22529,22540,22513,22505,22512,22541,22532,22876,23136,23128,23125,23143,23134,23096,23093,23149,23120,23135,23141,23148,23123,23140,23127,23107,23133,23122,23108,23131,23112,23182,23102,23117,23097,23116,23152,23145,23111,23121,23126,23106,23132,23410,23406,23489,23488,23641,23838,23819,23837,23834,23840,23820,23848,23821,23846,23845,23823,23856,23826,23843,23839,23854,24126,24116,24241,24244,24249,24242,24243,24374,24376,24475,24470,24479,24714,24720,24710,24766,24752,24762,24787,24788,24783,24804,24793,24797,24776,24753,24795,24759,24778,24767,24771,24781,24768,25394,25445,25482,25474,25469,25533,25502,25517,25501,25495,25515,25486,25455,25479,25488,25454,25519,25461,25500,25453,25518,25468,25508,25403,25503,25464,25477,25473,25489,25485,25456,25939,26061,26213,26209,26203,26201,26204,26210,26392,26745,26759,26768,26780,26733,26734,26798,26795,26966,26735,26787,26796,26793,26741,26740,26802,26767,26743,26770,26748,26731,26738,26794,26752,26737,26750,26779,26774,26763,26784,26761,26788,26744,26747,26769,26764,26762,26749,27446,27443,27447,27448,27537,27535,27533,27534,27532,27690,28096,28075,28084,28083,28276,28076,28137,28130,28087,28150,28116,28160,28104,28128,28127,28118,28094,28133,28124,28125,28123,28148,28106,28093,28141,28144,28090,28117,28098,28111,28105,28112,28146,28115,28157,28119,28109,28131,28091,28922,28941,28919,28951,28916,28940,28912,28932,28915,28944,28924,28927,28934,28947,28928,28920,28918,28939,28930,28942,29310,29307,29308,29311,29469,29463,29447,29457,29464,29450,29448,29439,29455,29470,29576,29686,29688,29685,29700,29697,29693,29703,29696,29690,29692,29695,29708,29707,29684,29704,30052,30051,30158,30162,30159,30155,30156,30161,30160,30351,30345,30419,30521,30511,30509,30513,30514,30516,30515,30525,30501,30523,30517,30792,30802,30793,30797,30794,30796,30758,30789,30800,31076,31079,31081,31082,31075,31083,31073,31163,31226,31224,31222,31223,31375,31380,31376,31541,31559,31540,31525,31536,31522,31524,31539,31512,31530,31517,31537,31531,31533,31535,31538,31544,31514,31523,31892,31896,31894,31907,32053,32061,32056,32054,32058,32069,32044,32041,32065,32071,32062,32063,32074,32059,32040,32611,32661,32668,32669,32667,32714,32715,32717,32720,32721,32711,32719,32713,32799,32798,32795,32839,32835,32840,33048,33061,33049,33051,33069,33055,33068,33054,33057,33045,33063,33053,33058,33297,33336,33331,33338,33332,33330,33396,33680,33699,33704,33677,33658,33651,33700,33652,33679,33665,33685,33689,33653,33684,33705,33661,33667,33676,33693,33691,33706,33675,33662,33701,33711,33672,33687,33712,33663,33702,33671,33710,33654,33690,34393,34390,34495,34487,34498,34497,34501,34490,34480,34504,34489,34483,34488,34508,34484,34491,34492,34499,34493,34494,34898,34953,34965,34984,34978,34986,34970,34961,34977,34975,34968,34983,34969,34971,34967,34980,34988,34956,34963,34958,35202,35286,35289,35285,35376,35367,35372,35358,35897,35899,35932,35933,35965,36005,36221,36219,36217,36284,36290,36281,36287,36289,36568,36574,36573,36572,36567,36576,36577,36900,36875,36881,36892,36876,36897,37103,37098,37104,37108,37106,37107,37076,37099,37100,37097,37206,37208,37210,37203,37205,37356,37364,37361,37363,37368,37348,37369,37354,37355,37367,37352,37358,38266,38278,38280,38524,38509,38507,38513,38511,38591,38762,38916,39141,39319,20635,20629,20628,20638,20619,20643,20611,20620,20622,20637,20584,20636,20626,20610,20615,20831,20948,21266,21265,21412,21415,21905,21928,21925,21933,21879,22085,21922,21907,21896,21903,21941,21889,21923,21906,21924,21885,21900,21926,21887,21909,21921,21902,22284,22569,22583,22553,22558,22567,22563,22568,22517,22600,22565,22556,22555,22579,22591,22582,22574,22585,22584,22573,22572,22587,22881,23215,23188,23199,23162,23202,23198,23160,23206,23164,23205,23212,23189,23214,23095,23172,23178,23191,23171,23179,23209,23163,23165,23180,23196,23183,23187,23197,23530,23501,23499,23508,23505,23498,23502,23564,23600,23863,23875,23915,23873,23883,23871,23861,23889,23886,23893,23859,23866,23890,23869,23857,23897,23874,23865,23881,23864,23868,23858,23862,23872,23877,24132,24129,24408,24486,24485,24491,24777,24761,24780,24802,24782,24772,24852,24818,24842,24854,24837,24821,24851,24824,24828,24830,24769,24835,24856,24861,24848,24831,24836,24843,25162,25492,25521,25520,25550,25573,25576,25583,25539,25757,25587,25546,25568,25590,25557,25586,25589,25697,25567,25534,25565,25564,25540,25560,25555,25538,25543,25548,25547,25544,25584,25559,25561,25906,25959,25962,25956,25948,25960,25957,25996,26013,26014,26030,26064,26066,26236,26220,26235,26240,26225,26233,26218,26226,26369,26892,26835,26884,26844,26922,26860,26858,26865,26895,26838,26871,26859,26852,26870,26899,26896,26867,26849,26887,26828,26888,26992,26804,26897,26863,26822,26900,26872,26832,26877,26876,26856,26891,26890,26903,26830,26824,26845,26846,26854,26868,26833,26886,26836,26857,26901,26917,26823,27449,27451,27455,27452,27540,27543,27545,27541,27581,27632,27634,27635,27696,28156,28230,28231,28191,28233,28296,28220,28221,28229,28258,28203,28223,28225,28253,28275,28188,28211,28235,28224,28241,28219,28163,28206,28254,28264,28252,28257,28209,28200,28256,28273,28267,28217,28194,28208,28243,28261,28199,28280,28260,28279,28245,28281,28242,28262,28213,28214,28250,28960,28958,28975,28923,28974,28977,28963,28965,28962,28978,28959,28968,28986,28955,29259,29274,29320,29321,29318,29317,29323,29458,29451,29488,29474,29489,29491,29479,29490,29485,29478,29475,29493,29452,29742,29740,29744,29739,29718,29722,29729,29741,29745,29732,29731,29725,29737,29728,29746,29947,29999,30063,30060,30183,30170,30177,30182,30173,30175,30180,30167,30357,30354,30426,30534,30535,30532,30541,30533,30538,30542,30539,30540,30686,30700,30816,30820,30821,30812,30829,30833,30826,30830,30832,30825,30824,30814,30818,31092,31091,31090,31088,31234,31242,31235,31244,31236,31385,31462,31460,31562,31547,31556,31560,31564,31566,31552,31576,31557,31906,31902,31912,31905,32088,32111,32099,32083,32086,32103,32106,32079,32109,32092,32107,32082,32084,32105,32081,32095,32078,32574,32575,32613,32614,32674,32672,32673,32727,32849,32847,32848,33022,32980,33091,33098,33106,33103,33095,33085,33101,33082,33254,33262,33271,33272,33273,33284,33340,33341,33343,33397,33595,33743,33785,33827,33728,33768,33810,33767,33764,33788,33782,33808,33734,33736,33771,33763,33727,33793,33757,33765,33752,33791,33761,33739,33742,33750,33781,33737,33801,33807,33758,33809,33798,33730,33779,33749,33786,33735,33745,33770,33811,33731,33772,33774,33732,33787,33751,33762,33819,33755,33790,34520,34530,34534,34515,34531,34522,34538,34525,34539,34524,34540,34537,34519,34536,34513,34888,34902,34901,35002,35031,35001,35e3,35008,35006,34998,35004,34999,35005,34994,35073,35017,35221,35224,35223,35293,35290,35291,35406,35405,35385,35417,35392,35415,35416,35396,35397,35410,35400,35409,35402,35404,35407,35935,35969,35968,36026,36030,36016,36025,36021,36228,36224,36233,36312,36307,36301,36295,36310,36316,36303,36309,36313,36296,36311,36293,36591,36599,36602,36601,36582,36590,36581,36597,36583,36584,36598,36587,36593,36588,36596,36585,36909,36916,36911,37126,37164,37124,37119,37116,37128,37113,37115,37121,37120,37127,37125,37123,37217,37220,37215,37218,37216,37377,37386,37413,37379,37402,37414,37391,37388,37376,37394,37375,37373,37382,37380,37415,37378,37404,37412,37401,37399,37381,37398,38267,38285,38284,38288,38535,38526,38536,38537,38531,38528,38594,38600,38595,38641,38640,38764,38768,38766,38919,39081,39147,40166,40697,20099,20100,20150,20669,20671,20678,20654,20676,20682,20660,20680,20674,20656,20673,20666,20657,20683,20681,20662,20664,20951,21114,21112,21115,21116,21955,21979,21964,21968,21963,21962,21981,21952,21972,21956,21993,21951,21970,21901,21967,21973,21986,21974,21960,22002,21965,21977,21954,22292,22611,22632,22628,22607,22605,22601,22639,22613,22606,22621,22617,22629,22619,22589,22627,22641,22780,23239,23236,23243,23226,23224,23217,23221,23216,23231,23240,23227,23238,23223,23232,23242,23220,23222,23245,23225,23184,23510,23512,23513,23583,23603,23921,23907,23882,23909,23922,23916,23902,23912,23911,23906,24048,24143,24142,24138,24141,24139,24261,24268,24262,24267,24263,24384,24495,24493,24823,24905,24906,24875,24901,24886,24882,24878,24902,24879,24911,24873,24896,25120,37224,25123,25125,25124,25541,25585,25579,25616,25618,25609,25632,25636,25651,25667,25631,25621,25624,25657,25655,25634,25635,25612,25638,25648,25640,25665,25653,25647,25610,25626,25664,25637,25639,25611,25575,25627,25646,25633,25614,25967,26002,26067,26246,26252,26261,26256,26251,26250,26265,26260,26232,26400,26982,26975,26936,26958,26978,26993,26943,26949,26986,26937,26946,26967,26969,27002,26952,26953,26933,26988,26931,26941,26981,26864,27e3,26932,26985,26944,26991,26948,26998,26968,26945,26996,26956,26939,26955,26935,26972,26959,26961,26930,26962,26927,27003,26940,27462,27461,27459,27458,27464,27457,27547,64013,27643,27644,27641,27639,27640,28315,28374,28360,28303,28352,28319,28307,28308,28320,28337,28345,28358,28370,28349,28353,28318,28361,28343,28336,28365,28326,28367,28338,28350,28355,28380,28376,28313,28306,28302,28301,28324,28321,28351,28339,28368,28362,28311,28334,28323,28999,29012,29010,29027,29024,28993,29021,29026,29042,29048,29034,29025,28994,29016,28995,29003,29040,29023,29008,29011,28996,29005,29018,29263,29325,29324,29329,29328,29326,29500,29506,29499,29498,29504,29514,29513,29764,29770,29771,29778,29777,29783,29760,29775,29776,29774,29762,29766,29773,29780,29921,29951,29950,29949,29981,30073,30071,27011,30191,30223,30211,30199,30206,30204,30201,30200,30224,30203,30198,30189,30197,30205,30361,30389,30429,30549,30559,30560,30546,30550,30554,30569,30567,30548,30553,30573,30688,30855,30874,30868,30863,30852,30869,30853,30854,30881,30851,30841,30873,30848,30870,30843,31100,31106,31101,31097,31249,31256,31257,31250,31255,31253,31266,31251,31259,31248,31395,31394,31390,31467,31590,31588,31597,31604,31593,31602,31589,31603,31601,31600,31585,31608,31606,31587,31922,31924,31919,32136,32134,32128,32141,32127,32133,32122,32142,32123,32131,32124,32140,32148,32132,32125,32146,32621,32619,32615,32616,32620,32678,32677,32679,32731,32732,32801,33124,33120,33143,33116,33129,33115,33122,33138,26401,33118,33142,33127,33135,33092,33121,33309,33353,33348,33344,33346,33349,34033,33855,33878,33910,33913,33935,33933,33893,33873,33856,33926,33895,33840,33869,33917,33882,33881,33908,33907,33885,34055,33886,33847,33850,33844,33914,33859,33912,33842,33861,33833,33753,33867,33839,33858,33837,33887,33904,33849,33870,33868,33874,33903,33989,33934,33851,33863,33846,33843,33896,33918,33860,33835,33888,33876,33902,33872,34571,34564,34551,34572,34554,34518,34549,34637,34552,34574,34569,34561,34550,34573,34565,35030,35019,35021,35022,35038,35035,35034,35020,35024,35205,35227,35295,35301,35300,35297,35296,35298,35292,35302,35446,35462,35455,35425,35391,35447,35458,35460,35445,35459,35457,35444,35450,35900,35915,35914,35941,35940,35942,35974,35972,35973,36044,36200,36201,36241,36236,36238,36239,36237,36243,36244,36240,36242,36336,36320,36332,36337,36334,36304,36329,36323,36322,36327,36338,36331,36340,36614,36607,36609,36608,36613,36615,36616,36610,36619,36946,36927,36932,36937,36925,37136,37133,37135,37137,37142,37140,37131,37134,37230,37231,37448,37458,37424,37434,37478,37427,37477,37470,37507,37422,37450,37446,37485,37484,37455,37472,37479,37487,37430,37473,37488,37425,37460,37475,37456,37490,37454,37459,37452,37462,37426,38303,38300,38302,38299,38546,38547,38545,38551,38606,38650,38653,38648,38645,38771,38775,38776,38770,38927,38925,38926,39084,39158,39161,39343,39346,39344,39349,39597,39595,39771,40170,40173,40167,40576,40701,20710,20692,20695,20712,20723,20699,20714,20701,20708,20691,20716,20720,20719,20707,20704,20952,21120,21121,21225,21227,21296,21420,22055,22037,22028,22034,22012,22031,22044,22017,22035,22018,22010,22045,22020,22015,22009,22665,22652,22672,22680,22662,22657,22655,22644,22667,22650,22663,22673,22670,22646,22658,22664,22651,22676,22671,22782,22891,23260,23278,23269,23253,23274,23258,23277,23275,23283,23266,23264,23259,23276,23262,23261,23257,23272,23263,23415,23520,23523,23651,23938,23936,23933,23942,23930,23937,23927,23946,23945,23944,23934,23932,23949,23929,23935,24152,24153,24147,24280,24273,24279,24270,24284,24277,24281,24274,24276,24388,24387,24431,24502,24876,24872,24897,24926,24945,24947,24914,24915,24946,24940,24960,24948,24916,24954,24923,24933,24891,24938,24929,24918,25129,25127,25131,25643,25677,25691,25693,25716,25718,25714,25715,25725,25717,25702,25766,25678,25730,25694,25692,25675,25683,25696,25680,25727,25663,25708,25707,25689,25701,25719,25971,26016,26273,26272,26271,26373,26372,26402,27057,27062,27081,27040,27086,27030,27056,27052,27068,27025,27033,27022,27047,27021,27049,27070,27055,27071,27076,27069,27044,27092,27065,27082,27034,27087,27059,27027,27050,27041,27038,27097,27031,27024,27074,27061,27045,27078,27466,27469,27467,27550,27551,27552,27587,27588,27646,28366,28405,28401,28419,28453,28408,28471,28411,28462,28425,28494,28441,28442,28455,28440,28475,28434,28397,28426,28470,28531,28409,28398,28461,28480,28464,28476,28469,28395,28423,28430,28483,28421,28413,28406,28473,28444,28412,28474,28447,28429,28446,28424,28449,29063,29072,29065,29056,29061,29058,29071,29051,29062,29057,29079,29252,29267,29335,29333,29331,29507,29517,29521,29516,29794,29811,29809,29813,29810,29799,29806,29952,29954,29955,30077,30096,30230,30216,30220,30229,30225,30218,30228,30392,30593,30588,30597,30594,30574,30592,30575,30590,30595,30898,30890,30900,30893,30888,30846,30891,30878,30885,30880,30892,30882,30884,31128,31114,31115,31126,31125,31124,31123,31127,31112,31122,31120,31275,31306,31280,31279,31272,31270,31400,31403,31404,31470,31624,31644,31626,31633,31632,31638,31629,31628,31643,31630,31621,31640,21124,31641,31652,31618,31931,31935,31932,31930,32167,32183,32194,32163,32170,32193,32192,32197,32157,32206,32196,32198,32203,32204,32175,32185,32150,32188,32159,32166,32174,32169,32161,32201,32627,32738,32739,32741,32734,32804,32861,32860,33161,33158,33155,33159,33165,33164,33163,33301,33943,33956,33953,33951,33978,33998,33986,33964,33966,33963,33977,33972,33985,33997,33962,33946,33969,34e3,33949,33959,33979,33954,33940,33991,33996,33947,33961,33967,33960,34006,33944,33974,33999,33952,34007,34004,34002,34011,33968,33937,34401,34611,34595,34600,34667,34624,34606,34590,34593,34585,34587,34627,34604,34625,34622,34630,34592,34610,34602,34605,34620,34578,34618,34609,34613,34626,34598,34599,34616,34596,34586,34608,34577,35063,35047,35057,35058,35066,35070,35054,35068,35062,35067,35056,35052,35051,35229,35233,35231,35230,35305,35307,35304,35499,35481,35467,35474,35471,35478,35901,35944,35945,36053,36047,36055,36246,36361,36354,36351,36365,36349,36362,36355,36359,36358,36357,36350,36352,36356,36624,36625,36622,36621,37155,37148,37152,37154,37151,37149,37146,37156,37153,37147,37242,37234,37241,37235,37541,37540,37494,37531,37498,37536,37524,37546,37517,37542,37530,37547,37497,37527,37503,37539,37614,37518,37506,37525,37538,37501,37512,37537,37514,37510,37516,37529,37543,37502,37511,37545,37533,37515,37421,38558,38561,38655,38744,38781,38778,38782,38787,38784,38786,38779,38788,38785,38783,38862,38861,38934,39085,39086,39170,39168,39175,39325,39324,39363,39353,39355,39354,39362,39357,39367,39601,39651,39655,39742,39743,39776,39777,39775,40177,40178,40181,40615,20735,20739,20784,20728,20742,20743,20726,20734,20747,20748,20733,20746,21131,21132,21233,21231,22088,22082,22092,22069,22081,22090,22089,22086,22104,22106,22080,22067,22077,22060,22078,22072,22058,22074,22298,22699,22685,22705,22688,22691,22703,22700,22693,22689,22783,23295,23284,23293,23287,23286,23299,23288,23298,23289,23297,23303,23301,23311,23655,23961,23959,23967,23954,23970,23955,23957,23968,23964,23969,23962,23966,24169,24157,24160,24156,32243,24283,24286,24289,24393,24498,24971,24963,24953,25009,25008,24994,24969,24987,24979,25007,25005,24991,24978,25002,24993,24973,24934,25011,25133,25710,25712,25750,25760,25733,25751,25756,25743,25739,25738,25740,25763,25759,25704,25777,25752,25974,25978,25977,25979,26034,26035,26293,26288,26281,26290,26295,26282,26287,27136,27142,27159,27109,27128,27157,27121,27108,27168,27135,27116,27106,27163,27165,27134,27175,27122,27118,27156,27127,27111,27200,27144,27110,27131,27149,27132,27115,27145,27140,27160,27173,27151,27126,27174,27143,27124,27158,27473,27557,27555,27554,27558,27649,27648,27647,27650,28481,28454,28542,28551,28614,28562,28557,28553,28556,28514,28495,28549,28506,28566,28534,28524,28546,28501,28530,28498,28496,28503,28564,28563,28509,28416,28513,28523,28541,28519,28560,28499,28555,28521,28543,28565,28515,28535,28522,28539,29106,29103,29083,29104,29088,29082,29097,29109,29085,29093,29086,29092,29089,29098,29084,29095,29107,29336,29338,29528,29522,29534,29535,29536,29533,29531,29537,29530,29529,29538,29831,29833,29834,29830,29825,29821,29829,29832,29820,29817,29960,29959,30078,30245,30238,30233,30237,30236,30243,30234,30248,30235,30364,30365,30366,30363,30605,30607,30601,30600,30925,30907,30927,30924,30929,30926,30932,30920,30915,30916,30921,31130,31137,31136,31132,31138,31131,27510,31289,31410,31412,31411,31671,31691,31678,31660,31694,31663,31673,31690,31669,31941,31944,31948,31947,32247,32219,32234,32231,32215,32225,32259,32250,32230,32246,32241,32240,32238,32223,32630,32684,32688,32685,32749,32747,32746,32748,32742,32744,32868,32871,33187,33183,33182,33173,33186,33177,33175,33302,33359,33363,33362,33360,33358,33361,34084,34107,34063,34048,34089,34062,34057,34061,34079,34058,34087,34076,34043,34091,34042,34056,34060,34036,34090,34034,34069,34039,34027,34035,34044,34066,34026,34025,34070,34046,34088,34077,34094,34050,34045,34078,34038,34097,34086,34023,34024,34032,34031,34041,34072,34080,34096,34059,34073,34095,34402,34646,34659,34660,34679,34785,34675,34648,34644,34651,34642,34657,34650,34641,34654,34669,34666,34640,34638,34655,34653,34671,34668,34682,34670,34652,34661,34639,34683,34677,34658,34663,34665,34906,35077,35084,35092,35083,35095,35096,35097,35078,35094,35089,35086,35081,35234,35236,35235,35309,35312,35308,35535,35526,35512,35539,35537,35540,35541,35515,35543,35518,35520,35525,35544,35523,35514,35517,35545,35902,35917,35983,36069,36063,36057,36072,36058,36061,36071,36256,36252,36257,36251,36384,36387,36389,36388,36398,36373,36379,36374,36369,36377,36390,36391,36372,36370,36376,36371,36380,36375,36378,36652,36644,36632,36634,36640,36643,36630,36631,36979,36976,36975,36967,36971,37167,37163,37161,37162,37170,37158,37166,37253,37254,37258,37249,37250,37252,37248,37584,37571,37572,37568,37593,37558,37583,37617,37599,37592,37609,37591,37597,37580,37615,37570,37608,37578,37576,37582,37606,37581,37589,37577,37600,37598,37607,37585,37587,37557,37601,37574,37556,38268,38316,38315,38318,38320,38564,38562,38611,38661,38664,38658,38746,38794,38798,38792,38864,38863,38942,38941,38950,38953,38952,38944,38939,38951,39090,39176,39162,39185,39188,39190,39191,39189,39388,39373,39375,39379,39380,39374,39369,39382,39384,39371,39383,39372,39603,39660,39659,39667,39666,39665,39750,39747,39783,39796,39793,39782,39798,39797,39792,39784,39780,39788,40188,40186,40189,40191,40183,40199,40192,40185,40187,40200,40197,40196,40579,40659,40719,40720,20764,20755,20759,20762,20753,20958,21300,21473,22128,22112,22126,22131,22118,22115,22125,22130,22110,22135,22300,22299,22728,22717,22729,22719,22714,22722,22716,22726,23319,23321,23323,23329,23316,23315,23312,23318,23336,23322,23328,23326,23535,23980,23985,23977,23975,23989,23984,23982,23978,23976,23986,23981,23983,23988,24167,24168,24166,24175,24297,24295,24294,24296,24293,24395,24508,24989,25e3,24982,25029,25012,25030,25025,25036,25018,25023,25016,24972,25815,25814,25808,25807,25801,25789,25737,25795,25819,25843,25817,25907,25983,25980,26018,26312,26302,26304,26314,26315,26319,26301,26299,26298,26316,26403,27188,27238,27209,27239,27186,27240,27198,27229,27245,27254,27227,27217,27176,27226,27195,27199,27201,27242,27236,27216,27215,27220,27247,27241,27232,27196,27230,27222,27221,27213,27214,27206,27477,27476,27478,27559,27562,27563,27592,27591,27652,27651,27654,28589,28619,28579,28615,28604,28622,28616,28510,28612,28605,28574,28618,28584,28676,28581,28590,28602,28588,28586,28623,28607,28600,28578,28617,28587,28621,28591,28594,28592,29125,29122,29119,29112,29142,29120,29121,29131,29140,29130,29127,29135,29117,29144,29116,29126,29146,29147,29341,29342,29545,29542,29543,29548,29541,29547,29546,29823,29850,29856,29844,29842,29845,29857,29963,30080,30255,30253,30257,30269,30259,30268,30261,30258,30256,30395,30438,30618,30621,30625,30620,30619,30626,30627,30613,30617,30615,30941,30953,30949,30954,30942,30947,30939,30945,30946,30957,30943,30944,31140,31300,31304,31303,31414,31416,31413,31409,31415,31710,31715,31719,31709,31701,31717,31706,31720,31737,31700,31722,31714,31708,31723,31704,31711,31954,31956,31959,31952,31953,32274,32289,32279,32268,32287,32288,32275,32270,32284,32277,32282,32290,32267,32271,32278,32269,32276,32293,32292,32579,32635,32636,32634,32689,32751,32810,32809,32876,33201,33190,33198,33209,33205,33195,33200,33196,33204,33202,33207,33191,33266,33365,33366,33367,34134,34117,34155,34125,34131,34145,34136,34112,34118,34148,34113,34146,34116,34129,34119,34147,34110,34139,34161,34126,34158,34165,34133,34151,34144,34188,34150,34141,34132,34149,34156,34403,34405,34404,34715,34703,34711,34707,34706,34696,34689,34710,34712,34681,34695,34723,34693,34704,34705,34717,34692,34708,34716,34714,34697,35102,35110,35120,35117,35118,35111,35121,35106,35113,35107,35119,35116,35103,35313,35552,35554,35570,35572,35573,35549,35604,35556,35551,35568,35528,35550,35553,35560,35583,35567,35579,35985,35986,35984,36085,36078,36081,36080,36083,36204,36206,36261,36263,36403,36414,36408,36416,36421,36406,36412,36413,36417,36400,36415,36541,36662,36654,36661,36658,36665,36663,36660,36982,36985,36987,36998,37114,37171,37173,37174,37267,37264,37265,37261,37263,37671,37662,37640,37663,37638,37647,37754,37688,37692,37659,37667,37650,37633,37702,37677,37646,37645,37579,37661,37626,37669,37651,37625,37623,37684,37634,37668,37631,37673,37689,37685,37674,37652,37644,37643,37630,37641,37632,37627,37654,38332,38349,38334,38329,38330,38326,38335,38325,38333,38569,38612,38667,38674,38672,38809,38807,38804,38896,38904,38965,38959,38962,39204,39199,39207,39209,39326,39406,39404,39397,39396,39408,39395,39402,39401,39399,39609,39615,39604,39611,39670,39674,39673,39671,39731,39808,39813,39815,39804,39806,39803,39810,39827,39826,39824,39802,39829,39805,39816,40229,40215,40224,40222,40212,40233,40221,40216,40226,40208,40217,40223,40584,40582,40583,40622,40621,40661,40662,40698,40722,40765,20774,20773,20770,20772,20768,20777,21236,22163,22156,22157,22150,22148,22147,22142,22146,22143,22145,22742,22740,22735,22738,23341,23333,23346,23331,23340,23335,23334,23343,23342,23419,23537,23538,23991,24172,24170,24510,24507,25027,25013,25020,25063,25056,25061,25060,25064,25054,25839,25833,25827,25835,25828,25832,25985,25984,26038,26074,26322,27277,27286,27265,27301,27273,27295,27291,27297,27294,27271,27283,27278,27285,27267,27304,27300,27281,27263,27302,27290,27269,27276,27282,27483,27565,27657,28620,28585,28660,28628,28643,28636,28653,28647,28646,28638,28658,28637,28642,28648,29153,29169,29160,29170,29156,29168,29154,29555,29550,29551,29847,29874,29867,29840,29866,29869,29873,29861,29871,29968,29969,29970,29967,30084,30275,30280,30281,30279,30372,30441,30645,30635,30642,30647,30646,30644,30641,30632,30704,30963,30973,30978,30971,30972,30962,30981,30969,30974,30980,31147,31144,31324,31323,31318,31320,31316,31322,31422,31424,31425,31749,31759,31730,31744,31743,31739,31758,31732,31755,31731,31746,31753,31747,31745,31736,31741,31750,31728,31729,31760,31754,31976,32301,32316,32322,32307,38984,32312,32298,32329,32320,32327,32297,32332,32304,32315,32310,32324,32314,32581,32639,32638,32637,32756,32754,32812,33211,33220,33228,33226,33221,33223,33212,33257,33371,33370,33372,34179,34176,34191,34215,34197,34208,34187,34211,34171,34212,34202,34206,34167,34172,34185,34209,34170,34168,34135,34190,34198,34182,34189,34201,34205,34177,34210,34178,34184,34181,34169,34166,34200,34192,34207,34408,34750,34730,34733,34757,34736,34732,34745,34741,34748,34734,34761,34755,34754,34764,34743,34735,34756,34762,34740,34742,34751,34744,34749,34782,34738,35125,35123,35132,35134,35137,35154,35127,35138,35245,35247,35246,35314,35315,35614,35608,35606,35601,35589,35595,35618,35599,35602,35605,35591,35597,35592,35590,35612,35603,35610,35919,35952,35954,35953,35951,35989,35988,36089,36207,36430,36429,36435,36432,36428,36423,36675,36672,36997,36990,37176,37274,37282,37275,37273,37279,37281,37277,37280,37793,37763,37807,37732,37718,37703,37756,37720,37724,37750,37705,37712,37713,37728,37741,37775,37708,37738,37753,37719,37717,37714,37711,37745,37751,37755,37729,37726,37731,37735,37760,37710,37721,38343,38336,38345,38339,38341,38327,38574,38576,38572,38688,38687,38680,38685,38681,38810,38817,38812,38814,38813,38869,38868,38897,38977,38980,38986,38985,38981,38979,39205,39211,39212,39210,39219,39218,39215,39213,39217,39216,39320,39331,39329,39426,39418,39412,39415,39417,39416,39414,39419,39421,39422,39420,39427,39614,39678,39677,39681,39676,39752,39834,39848,39838,39835,39846,39841,39845,39844,39814,39842,39840,39855,40243,40257,40295,40246,40238,40239,40241,40248,40240,40261,40258,40259,40254,40247,40256,40253,32757,40237,40586,40585,40589,40624,40648,40666,40699,40703,40740,40739,40738,40788,40864,20785,20781,20782,22168,22172,22167,22170,22173,22169,22896,23356,23657,23658,24e3,24173,24174,25048,25055,25069,25070,25073,25066,25072,25067,25046,25065,25855,25860,25853,25848,25857,25859,25852,26004,26075,26330,26331,26328,27333,27321,27325,27361,27334,27322,27318,27319,27335,27316,27309,27486,27593,27659,28679,28684,28685,28673,28677,28692,28686,28671,28672,28667,28710,28668,28663,28682,29185,29183,29177,29187,29181,29558,29880,29888,29877,29889,29886,29878,29883,29890,29972,29971,30300,30308,30297,30288,30291,30295,30298,30374,30397,30444,30658,30650,30975,30988,30995,30996,30985,30992,30994,30993,31149,31148,31327,31772,31785,31769,31776,31775,31789,31773,31782,31784,31778,31781,31792,32348,32336,32342,32355,32344,32354,32351,32337,32352,32343,32339,32693,32691,32759,32760,32885,33233,33234,33232,33375,33374,34228,34246,34240,34243,34242,34227,34229,34237,34247,34244,34239,34251,34254,34248,34245,34225,34230,34258,34340,34232,34231,34238,34409,34791,34790,34786,34779,34795,34794,34789,34783,34803,34788,34772,34780,34771,34797,34776,34787,34724,34775,34777,34817,34804,34792,34781,35155,35147,35151,35148,35142,35152,35153,35145,35626,35623,35619,35635,35632,35637,35655,35631,35644,35646,35633,35621,35639,35622,35638,35630,35620,35643,35645,35642,35906,35957,35993,35992,35991,36094,36100,36098,36096,36444,36450,36448,36439,36438,36446,36453,36455,36443,36442,36449,36445,36457,36436,36678,36679,36680,36683,37160,37178,37179,37182,37288,37285,37287,37295,37290,37813,37772,37778,37815,37787,37789,37769,37799,37774,37802,37790,37798,37781,37768,37785,37791,37773,37809,37777,37810,37796,37800,37812,37795,37797,38354,38355,38353,38579,38615,38618,24002,38623,38616,38621,38691,38690,38693,38828,38830,38824,38827,38820,38826,38818,38821,38871,38873,38870,38872,38906,38992,38993,38994,39096,39233,39228,39226,39439,39435,39433,39437,39428,39441,39434,39429,39431,39430,39616,39644,39688,39684,39685,39721,39733,39754,39756,39755,39879,39878,39875,39871,39873,39861,39864,39891,39862,39876,39865,39869,40284,40275,40271,40266,40283,40267,40281,40278,40268,40279,40274,40276,40287,40280,40282,40590,40588,40671,40705,40704,40726,40741,40747,40746,40745,40744,40780,40789,20788,20789,21142,21239,21428,22187,22189,22182,22183,22186,22188,22746,22749,22747,22802,23357,23358,23359,24003,24176,24511,25083,25863,25872,25869,25865,25868,25870,25988,26078,26077,26334,27367,27360,27340,27345,27353,27339,27359,27356,27344,27371,27343,27341,27358,27488,27568,27660,28697,28711,28704,28694,28715,28705,28706,28707,28713,28695,28708,28700,28714,29196,29194,29191,29186,29189,29349,29350,29348,29347,29345,29899,29893,29879,29891,29974,30304,30665,30666,30660,30705,31005,31003,31009,31004,30999,31006,31152,31335,31336,31795,31804,31801,31788,31803,31980,31978,32374,32373,32376,32368,32375,32367,32378,32370,32372,32360,32587,32586,32643,32646,32695,32765,32766,32888,33239,33237,33380,33377,33379,34283,34289,34285,34265,34273,34280,34266,34263,34284,34290,34296,34264,34271,34275,34268,34257,34288,34278,34287,34270,34274,34816,34810,34819,34806,34807,34825,34828,34827,34822,34812,34824,34815,34826,34818,35170,35162,35163,35159,35169,35164,35160,35165,35161,35208,35255,35254,35318,35664,35656,35658,35648,35667,35670,35668,35659,35669,35665,35650,35666,35671,35907,35959,35958,35994,36102,36103,36105,36268,36266,36269,36267,36461,36472,36467,36458,36463,36475,36546,36690,36689,36687,36688,36691,36788,37184,37183,37296,37293,37854,37831,37839,37826,37850,37840,37881,37868,37836,37849,37801,37862,37834,37844,37870,37859,37845,37828,37838,37824,37842,37863,38269,38362,38363,38625,38697,38699,38700,38696,38694,38835,38839,38838,38877,38878,38879,39004,39001,39005,38999,39103,39101,39099,39102,39240,39239,39235,39334,39335,39450,39445,39461,39453,39460,39451,39458,39456,39463,39459,39454,39452,39444,39618,39691,39690,39694,39692,39735,39914,39915,39904,39902,39908,39910,39906,39920,39892,39895,39916,39900,39897,39909,39893,39905,39898,40311,40321,40330,40324,40328,40305,40320,40312,40326,40331,40332,40317,40299,40308,40309,40304,40297,40325,40307,40315,40322,40303,40313,40319,40327,40296,40596,40593,40640,40700,40749,40768,40769,40781,40790,40791,40792,21303,22194,22197,22195,22755,23365,24006,24007,24302,24303,24512,24513,25081,25879,25878,25877,25875,26079,26344,26339,26340,27379,27376,27370,27368,27385,27377,27374,27375,28732,28725,28719,28727,28724,28721,28738,28728,28735,28730,28729,28736,28731,28723,28737,29203,29204,29352,29565,29564,29882,30379,30378,30398,30445,30668,30670,30671,30669,30706,31013,31011,31015,31016,31012,31017,31154,31342,31340,31341,31479,31817,31816,31818,31815,31813,31982,32379,32382,32385,32384,32698,32767,32889,33243,33241,33291,33384,33385,34338,34303,34305,34302,34331,34304,34294,34308,34313,34309,34316,34301,34841,34832,34833,34839,34835,34838,35171,35174,35257,35319,35680,35690,35677,35688,35683,35685,35687,35693,36270,36486,36488,36484,36697,36694,36695,36693,36696,36698,37005,37187,37185,37303,37301,37298,37299,37899,37907,37883,37920,37903,37908,37886,37909,37904,37928,37913,37901,37877,37888,37879,37895,37902,37910,37906,37882,37897,37880,37898,37887,37884,37900,37878,37905,37894,38366,38368,38367,38702,38703,38841,38843,38909,38910,39008,39010,39011,39007,39105,39106,39248,39246,39257,39244,39243,39251,39474,39476,39473,39468,39466,39478,39465,39470,39480,39469,39623,39626,39622,39696,39698,39697,39947,39944,39927,39941,39954,39928,4e4,39943,39950,39942,39959,39956,39945,40351,40345,40356,40349,40338,40344,40336,40347,40352,40340,40348,40362,40343,40353,40346,40354,40360,40350,40355,40383,40361,40342,40358,40359,40601,40603,40602,40677,40676,40679,40678,40752,40750,40795,40800,40798,40797,40793,40849,20794,20793,21144,21143,22211,22205,22206,23368,23367,24011,24015,24305,25085,25883,27394,27388,27395,27384,27392,28739,28740,28746,28744,28745,28741,28742,29213,29210,29209,29566,29975,30314,30672,31021,31025,31023,31828,31827,31986,32394,32391,32392,32395,32390,32397,32589,32699,32816,33245,34328,34346,34342,34335,34339,34332,34329,34343,34350,34337,34336,34345,34334,34341,34857,34845,34843,34848,34852,34844,34859,34890,35181,35177,35182,35179,35322,35705,35704,35653,35706,35707,36112,36116,36271,36494,36492,36702,36699,36701,37190,37188,37189,37305,37951,37947,37942,37929,37949,37948,37936,37945,37930,37943,37932,37952,37937,38373,38372,38371,38709,38714,38847,38881,39012,39113,39110,39104,39256,39254,39481,39485,39494,39492,39490,39489,39482,39487,39629,39701,39703,39704,39702,39738,39762,39979,39965,39964,39980,39971,39976,39977,39972,39969,40375,40374,40380,40385,40391,40394,40399,40382,40389,40387,40379,40373,40398,40377,40378,40364,40392,40369,40365,40396,40371,40397,40370,40570,40604,40683,40686,40685,40731,40728,40730,40753,40782,40805,40804,40850,20153,22214,22213,22219,22897,23371,23372,24021,24017,24306,25889,25888,25894,25890,27403,27400,27401,27661,28757,28758,28759,28754,29214,29215,29353,29567,29912,29909,29913,29911,30317,30381,31029,31156,31344,31345,31831,31836,31833,31835,31834,31988,31985,32401,32591,32647,33246,33387,34356,34357,34355,34348,34354,34358,34860,34856,34854,34858,34853,35185,35263,35262,35323,35710,35716,35714,35718,35717,35711,36117,36501,36500,36506,36498,36496,36502,36503,36704,36706,37191,37964,37968,37962,37963,37967,37959,37957,37960,37961,37958,38719,38883,39018,39017,39115,39252,39259,39502,39507,39508,39500,39503,39496,39498,39497,39506,39504,39632,39705,39723,39739,39766,39765,40006,40008,39999,40004,39993,39987,40001,39996,39991,39988,39986,39997,39990,40411,40402,40414,40410,40395,40400,40412,40401,40415,40425,40409,40408,40406,40437,40405,40413,40630,40688,40757,40755,40754,40770,40811,40853,40866,20797,21145,22760,22759,22898,23373,24024,34863,24399,25089,25091,25092,25897,25893,26006,26347,27409,27410,27407,27594,28763,28762,29218,29570,29569,29571,30320,30676,31847,31846,32405,33388,34362,34368,34361,34364,34353,34363,34366,34864,34866,34862,34867,35190,35188,35187,35326,35724,35726,35723,35720,35909,36121,36504,36708,36707,37308,37986,37973,37981,37975,37982,38852,38853,38912,39510,39513,39710,39711,39712,40018,40024,40016,40010,40013,40011,40021,40025,40012,40014,40443,40439,40431,40419,40427,40440,40420,40438,40417,40430,40422,40434,40432,40418,40428,40436,40435,40424,40429,40642,40656,40690,40691,40710,40732,40760,40759,40758,40771,40783,40817,40816,40814,40815,22227,22221,23374,23661,25901,26349,26350,27411,28767,28769,28765,28768,29219,29915,29925,30677,31032,31159,31158,31850,32407,32649,33389,34371,34872,34871,34869,34891,35732,35733,36510,36511,36512,36509,37310,37309,37314,37995,37992,37993,38629,38726,38723,38727,38855,38885,39518,39637,39769,40035,40039,40038,40034,40030,40032,40450,40446,40455,40451,40454,40453,40448,40449,40457,40447,40445,40452,40608,40734,40774,40820,40821,40822,22228,25902,26040,27416,27417,27415,27418,28770,29222,29354,30680,30681,31033,31849,31851,31990,32410,32408,32411,32409,33248,33249,34374,34375,34376,35193,35194,35196,35195,35327,35736,35737,36517,36516,36515,37998,37997,37999,38001,38003,38729,39026,39263,40040,40046,40045,40459,40461,40464,40463,40466,40465,40609,40693,40713,40775,40824,40827,40826,40825,22302,28774,31855,34876,36274,36518,37315,38004,38008,38006,38005,39520,40052,40051,40049,40053,40468,40467,40694,40714,40868,28776,28773,31991,34410,34878,34877,34879,35742,35996,36521,36553,38731,39027,39028,39116,39265,39339,39524,39526,39527,39716,40469,40471,40776,25095,27422,29223,34380,36520,38018,38016,38017,39529,39528,39726,40473,29225,34379,35743,38019,40057,40631,30325,39531,40058,40477,28777,28778,40612,40830,40777,40856,30849,37561,35023,22715,24658,31911,23290,9556,9574,9559,9568,9580,9571,9562,9577,9565,9554,9572,9557,9566,9578,9569,9560,9575,9563,9555,9573,9558,9567,9579,9570,9561,9576,9564,9553,9552,9581,9582,9584,9583,65517,132423,37595,132575,147397,34124,17077,29679,20917,13897,149826,166372,37700,137691,33518,146632,30780,26436,25311,149811,166314,131744,158643,135941,20395,140525,20488,159017,162436,144896,150193,140563,20521,131966,24484,131968,131911,28379,132127,20605,20737,13434,20750,39020,14147,33814,149924,132231,20832,144308,20842,134143,139516,131813,140592,132494,143923,137603,23426,34685,132531,146585,20914,20920,40244,20937,20943,20945,15580,20947,150182,20915,20962,21314,20973,33741,26942,145197,24443,21003,21030,21052,21173,21079,21140,21177,21189,31765,34114,21216,34317,158483,21253,166622,21833,28377,147328,133460,147436,21299,21316,134114,27851,136998,26651,29653,24650,16042,14540,136936,29149,17570,21357,21364,165547,21374,21375,136598,136723,30694,21395,166555,21408,21419,21422,29607,153458,16217,29596,21441,21445,27721,20041,22526,21465,15019,134031,21472,147435,142755,21494,134263,21523,28793,21803,26199,27995,21613,158547,134516,21853,21647,21668,18342,136973,134877,15796,134477,166332,140952,21831,19693,21551,29719,21894,21929,22021,137431,147514,17746,148533,26291,135348,22071,26317,144010,26276,26285,22093,22095,30961,22257,38791,21502,22272,22255,22253,166758,13859,135759,22342,147877,27758,28811,22338,14001,158846,22502,136214,22531,136276,148323,22566,150517,22620,22698,13665,22752,22748,135740,22779,23551,22339,172368,148088,37843,13729,22815,26790,14019,28249,136766,23076,21843,136850,34053,22985,134478,158849,159018,137180,23001,137211,137138,159142,28017,137256,136917,23033,159301,23211,23139,14054,149929,23159,14088,23190,29797,23251,159649,140628,15749,137489,14130,136888,24195,21200,23414,25992,23420,162318,16388,18525,131588,23509,24928,137780,154060,132517,23539,23453,19728,23557,138052,23571,29646,23572,138405,158504,23625,18653,23685,23785,23791,23947,138745,138807,23824,23832,23878,138916,23738,24023,33532,14381,149761,139337,139635,33415,14390,15298,24110,27274,24181,24186,148668,134355,21414,20151,24272,21416,137073,24073,24308,164994,24313,24315,14496,24316,26686,37915,24333,131521,194708,15070,18606,135994,24378,157832,140240,24408,140401,24419,38845,159342,24434,37696,166454,24487,23990,15711,152144,139114,159992,140904,37334,131742,166441,24625,26245,137335,14691,15815,13881,22416,141236,31089,15936,24734,24740,24755,149890,149903,162387,29860,20705,23200,24932,33828,24898,194726,159442,24961,20980,132694,24967,23466,147383,141407,25043,166813,170333,25040,14642,141696,141505,24611,24924,25886,25483,131352,25285,137072,25301,142861,25452,149983,14871,25656,25592,136078,137212,25744,28554,142902,38932,147596,153373,25825,25829,38011,14950,25658,14935,25933,28438,150056,150051,25989,25965,25951,143486,26037,149824,19255,26065,16600,137257,26080,26083,24543,144384,26136,143863,143864,26180,143780,143781,26187,134773,26215,152038,26227,26228,138813,143921,165364,143816,152339,30661,141559,39332,26370,148380,150049,15147,27130,145346,26462,26471,26466,147917,168173,26583,17641,26658,28240,37436,26625,144358,159136,26717,144495,27105,27147,166623,26995,26819,144845,26881,26880,15666,14849,144956,15232,26540,26977,166474,17148,26934,27032,15265,132041,33635,20624,27129,144985,139562,27205,145155,27293,15347,26545,27336,168348,15373,27421,133411,24798,27445,27508,141261,28341,146139,132021,137560,14144,21537,146266,27617,147196,27612,27703,140427,149745,158545,27738,33318,27769,146876,17605,146877,147876,149772,149760,146633,14053,15595,134450,39811,143865,140433,32655,26679,159013,159137,159211,28054,27996,28284,28420,149887,147589,159346,34099,159604,20935,27804,28189,33838,166689,28207,146991,29779,147330,31180,28239,23185,143435,28664,14093,28573,146992,28410,136343,147517,17749,37872,28484,28508,15694,28532,168304,15675,28575,147780,28627,147601,147797,147513,147440,147380,147775,20959,147798,147799,147776,156125,28747,28798,28839,28801,28876,28885,28886,28895,16644,15848,29108,29078,148087,28971,28997,23176,29002,29038,23708,148325,29007,37730,148161,28972,148570,150055,150050,29114,166888,28861,29198,37954,29205,22801,37955,29220,37697,153093,29230,29248,149876,26813,29269,29271,15957,143428,26637,28477,29314,29482,29483,149539,165931,18669,165892,29480,29486,29647,29610,134202,158254,29641,29769,147938,136935,150052,26147,14021,149943,149901,150011,29687,29717,26883,150054,29753,132547,16087,29788,141485,29792,167602,29767,29668,29814,33721,29804,14128,29812,37873,27180,29826,18771,150156,147807,150137,166799,23366,166915,137374,29896,137608,29966,29929,29982,167641,137803,23511,167596,37765,30029,30026,30055,30062,151426,16132,150803,30094,29789,30110,30132,30210,30252,30289,30287,30319,30326,156661,30352,33263,14328,157969,157966,30369,30373,30391,30412,159647,33890,151709,151933,138780,30494,30502,30528,25775,152096,30552,144044,30639,166244,166248,136897,30708,30729,136054,150034,26826,30895,30919,30931,38565,31022,153056,30935,31028,30897,161292,36792,34948,166699,155779,140828,31110,35072,26882,31104,153687,31133,162617,31036,31145,28202,160038,16040,31174,168205,31188],"euc-kr":[44034,44035,44037,44038,44043,44044,44045,44046,44047,44056,44062,44063,44065,44066,44067,44069,44070,44071,44072,44073,44074,44075,44078,44082,44083,44084,null,null,null,null,null,null,44085,44086,44087,44090,44091,44093,44094,44095,44097,44098,44099,44100,44101,44102,44103,44104,44105,44106,44108,44110,44111,44112,44113,44114,44115,44117,null,null,null,null,null,null,44118,44119,44121,44122,44123,44125,44126,44127,44128,44129,44130,44131,44132,44133,44134,44135,44136,44137,44138,44139,44140,44141,44142,44143,44146,44147,44149,44150,44153,44155,44156,44157,44158,44159,44162,44167,44168,44173,44174,44175,44177,44178,44179,44181,44182,44183,44184,44185,44186,44187,44190,44194,44195,44196,44197,44198,44199,44203,44205,44206,44209,44210,44211,44212,44213,44214,44215,44218,44222,44223,44224,44226,44227,44229,44230,44231,44233,44234,44235,44237,44238,44239,44240,44241,44242,44243,44244,44246,44248,44249,44250,44251,44252,44253,44254,44255,44258,44259,44261,44262,44265,44267,44269,44270,44274,44276,44279,44280,44281,44282,44283,44286,44287,44289,44290,44291,44293,44295,44296,44297,44298,44299,44302,44304,44306,44307,44308,44309,44310,44311,44313,44314,44315,44317,44318,44319,44321,44322,44323,44324,44325,44326,44327,44328,44330,44331,44334,44335,44336,44337,44338,44339,null,null,null,null,null,null,44342,44343,44345,44346,44347,44349,44350,44351,44352,44353,44354,44355,44358,44360,44362,44363,44364,44365,44366,44367,44369,44370,44371,44373,44374,44375,null,null,null,null,null,null,44377,44378,44379,44380,44381,44382,44383,44384,44386,44388,44389,44390,44391,44392,44393,44394,44395,44398,44399,44401,44402,44407,44408,44409,44410,44414,44416,44419,44420,44421,44422,44423,44426,44427,44429,44430,44431,44433,44434,44435,44436,44437,44438,44439,44440,44441,44442,44443,44446,44447,44448,44449,44450,44451,44453,44454,44455,44456,44457,44458,44459,44460,44461,44462,44463,44464,44465,44466,44467,44468,44469,44470,44472,44473,44474,44475,44476,44477,44478,44479,44482,44483,44485,44486,44487,44489,44490,44491,44492,44493,44494,44495,44498,44500,44501,44502,44503,44504,44505,44506,44507,44509,44510,44511,44513,44514,44515,44517,44518,44519,44520,44521,44522,44523,44524,44525,44526,44527,44528,44529,44530,44531,44532,44533,44534,44535,44538,44539,44541,44542,44546,44547,44548,44549,44550,44551,44554,44556,44558,44559,44560,44561,44562,44563,44565,44566,44567,44568,44569,44570,44571,44572,null,null,null,null,null,null,44573,44574,44575,44576,44577,44578,44579,44580,44581,44582,44583,44584,44585,44586,44587,44588,44589,44590,44591,44594,44595,44597,44598,44601,44603,44604,null,null,null,null,null,null,44605,44606,44607,44610,44612,44615,44616,44617,44619,44623,44625,44626,44627,44629,44631,44632,44633,44634,44635,44638,44642,44643,44644,44646,44647,44650,44651,44653,44654,44655,44657,44658,44659,44660,44661,44662,44663,44666,44670,44671,44672,44673,44674,44675,44678,44679,44680,44681,44682,44683,44685,44686,44687,44688,44689,44690,44691,44692,44693,44694,44695,44696,44697,44698,44699,44700,44701,44702,44703,44704,44705,44706,44707,44708,44709,44710,44711,44712,44713,44714,44715,44716,44717,44718,44719,44720,44721,44722,44723,44724,44725,44726,44727,44728,44729,44730,44731,44735,44737,44738,44739,44741,44742,44743,44744,44745,44746,44747,44750,44754,44755,44756,44757,44758,44759,44762,44763,44765,44766,44767,44768,44769,44770,44771,44772,44773,44774,44775,44777,44778,44780,44782,44783,44784,44785,44786,44787,44789,44790,44791,44793,44794,44795,44797,44798,44799,44800,44801,44802,44803,44804,44805,null,null,null,null,null,null,44806,44809,44810,44811,44812,44814,44815,44817,44818,44819,44820,44821,44822,44823,44824,44825,44826,44827,44828,44829,44830,44831,44832,44833,44834,44835,null,null,null,null,null,null,44836,44837,44838,44839,44840,44841,44842,44843,44846,44847,44849,44851,44853,44854,44855,44856,44857,44858,44859,44862,44864,44868,44869,44870,44871,44874,44875,44876,44877,44878,44879,44881,44882,44883,44884,44885,44886,44887,44888,44889,44890,44891,44894,44895,44896,44897,44898,44899,44902,44903,44904,44905,44906,44907,44908,44909,44910,44911,44912,44913,44914,44915,44916,44917,44918,44919,44920,44922,44923,44924,44925,44926,44927,44929,44930,44931,44933,44934,44935,44937,44938,44939,44940,44941,44942,44943,44946,44947,44948,44950,44951,44952,44953,44954,44955,44957,44958,44959,44960,44961,44962,44963,44964,44965,44966,44967,44968,44969,44970,44971,44972,44973,44974,44975,44976,44977,44978,44979,44980,44981,44982,44983,44986,44987,44989,44990,44991,44993,44994,44995,44996,44997,44998,45002,45004,45007,45008,45009,45010,45011,45013,45014,45015,45016,45017,45018,45019,45021,45022,45023,45024,45025,null,null,null,null,null,null,45026,45027,45028,45029,45030,45031,45034,45035,45036,45037,45038,45039,45042,45043,45045,45046,45047,45049,45050,45051,45052,45053,45054,45055,45058,45059,null,null,null,null,null,null,45061,45062,45063,45064,45065,45066,45067,45069,45070,45071,45073,45074,45075,45077,45078,45079,45080,45081,45082,45083,45086,45087,45088,45089,45090,45091,45092,45093,45094,45095,45097,45098,45099,45100,45101,45102,45103,45104,45105,45106,45107,45108,45109,45110,45111,45112,45113,45114,45115,45116,45117,45118,45119,45120,45121,45122,45123,45126,45127,45129,45131,45133,45135,45136,45137,45138,45142,45144,45146,45147,45148,45150,45151,45152,45153,45154,45155,45156,45157,45158,45159,45160,45161,45162,45163,45164,45165,45166,45167,45168,45169,45170,45171,45172,45173,45174,45175,45176,45177,45178,45179,45182,45183,45185,45186,45187,45189,45190,45191,45192,45193,45194,45195,45198,45200,45202,45203,45204,45205,45206,45207,45211,45213,45214,45219,45220,45221,45222,45223,45226,45232,45234,45238,45239,45241,45242,45243,45245,45246,45247,45248,45249,45250,45251,45254,45258,45259,45260,45261,45262,45263,45266,null,null,null,null,null,null,45267,45269,45270,45271,45273,45274,45275,45276,45277,45278,45279,45281,45282,45283,45284,45286,45287,45288,45289,45290,45291,45292,45293,45294,45295,45296,null,null,null,null,null,null,45297,45298,45299,45300,45301,45302,45303,45304,45305,45306,45307,45308,45309,45310,45311,45312,45313,45314,45315,45316,45317,45318,45319,45322,45325,45326,45327,45329,45332,45333,45334,45335,45338,45342,45343,45344,45345,45346,45350,45351,45353,45354,45355,45357,45358,45359,45360,45361,45362,45363,45366,45370,45371,45372,45373,45374,45375,45378,45379,45381,45382,45383,45385,45386,45387,45388,45389,45390,45391,45394,45395,45398,45399,45401,45402,45403,45405,45406,45407,45409,45410,45411,45412,45413,45414,45415,45416,45417,45418,45419,45420,45421,45422,45423,45424,45425,45426,45427,45428,45429,45430,45431,45434,45435,45437,45438,45439,45441,45443,45444,45445,45446,45447,45450,45452,45454,45455,45456,45457,45461,45462,45463,45465,45466,45467,45469,45470,45471,45472,45473,45474,45475,45476,45477,45478,45479,45481,45482,45483,45484,45485,45486,45487,45488,45489,45490,45491,45492,45493,45494,45495,45496,null,null,null,null,null,null,45497,45498,45499,45500,45501,45502,45503,45504,45505,45506,45507,45508,45509,45510,45511,45512,45513,45514,45515,45517,45518,45519,45521,45522,45523,45525,null,null,null,null,null,null,45526,45527,45528,45529,45530,45531,45534,45536,45537,45538,45539,45540,45541,45542,45543,45546,45547,45549,45550,45551,45553,45554,45555,45556,45557,45558,45559,45560,45562,45564,45566,45567,45568,45569,45570,45571,45574,45575,45577,45578,45581,45582,45583,45584,45585,45586,45587,45590,45592,45594,45595,45596,45597,45598,45599,45601,45602,45603,45604,45605,45606,45607,45608,45609,45610,45611,45612,45613,45614,45615,45616,45617,45618,45619,45621,45622,45623,45624,45625,45626,45627,45629,45630,45631,45632,45633,45634,45635,45636,45637,45638,45639,45640,45641,45642,45643,45644,45645,45646,45647,45648,45649,45650,45651,45652,45653,45654,45655,45657,45658,45659,45661,45662,45663,45665,45666,45667,45668,45669,45670,45671,45674,45675,45676,45677,45678,45679,45680,45681,45682,45683,45686,45687,45688,45689,45690,45691,45693,45694,45695,45696,45697,45698,45699,45702,45703,45704,45706,45707,45708,45709,45710,null,null,null,null,null,null,45711,45714,45715,45717,45718,45719,45723,45724,45725,45726,45727,45730,45732,45735,45736,45737,45739,45741,45742,45743,45745,45746,45747,45749,45750,45751,null,null,null,null,null,null,45752,45753,45754,45755,45756,45757,45758,45759,45760,45761,45762,45763,45764,45765,45766,45767,45770,45771,45773,45774,45775,45777,45779,45780,45781,45782,45783,45786,45788,45790,45791,45792,45793,45795,45799,45801,45802,45808,45809,45810,45814,45820,45821,45822,45826,45827,45829,45830,45831,45833,45834,45835,45836,45837,45838,45839,45842,45846,45847,45848,45849,45850,45851,45853,45854,45855,45856,45857,45858,45859,45860,45861,45862,45863,45864,45865,45866,45867,45868,45869,45870,45871,45872,45873,45874,45875,45876,45877,45878,45879,45880,45881,45882,45883,45884,45885,45886,45887,45888,45889,45890,45891,45892,45893,45894,45895,45896,45897,45898,45899,45900,45901,45902,45903,45904,45905,45906,45907,45911,45913,45914,45917,45920,45921,45922,45923,45926,45928,45930,45932,45933,45935,45938,45939,45941,45942,45943,45945,45946,45947,45948,45949,45950,45951,45954,45958,45959,45960,45961,45962,45963,45965,null,null,null,null,null,null,45966,45967,45969,45970,45971,45973,45974,45975,45976,45977,45978,45979,45980,45981,45982,45983,45986,45987,45988,45989,45990,45991,45993,45994,45995,45997,null,null,null,null,null,null,45998,45999,46e3,46001,46002,46003,46004,46005,46006,46007,46008,46009,46010,46011,46012,46013,46014,46015,46016,46017,46018,46019,46022,46023,46025,46026,46029,46031,46033,46034,46035,46038,46040,46042,46044,46046,46047,46049,46050,46051,46053,46054,46055,46057,46058,46059,46060,46061,46062,46063,46064,46065,46066,46067,46068,46069,46070,46071,46072,46073,46074,46075,46077,46078,46079,46080,46081,46082,46083,46084,46085,46086,46087,46088,46089,46090,46091,46092,46093,46094,46095,46097,46098,46099,46100,46101,46102,46103,46105,46106,46107,46109,46110,46111,46113,46114,46115,46116,46117,46118,46119,46122,46124,46125,46126,46127,46128,46129,46130,46131,46133,46134,46135,46136,46137,46138,46139,46140,46141,46142,46143,46144,46145,46146,46147,46148,46149,46150,46151,46152,46153,46154,46155,46156,46157,46158,46159,46162,46163,46165,46166,46167,46169,46170,46171,46172,46173,46174,46175,46178,46180,46182,null,null,null,null,null,null,46183,46184,46185,46186,46187,46189,46190,46191,46192,46193,46194,46195,46196,46197,46198,46199,46200,46201,46202,46203,46204,46205,46206,46207,46209,46210,null,null,null,null,null,null,46211,46212,46213,46214,46215,46217,46218,46219,46220,46221,46222,46223,46224,46225,46226,46227,46228,46229,46230,46231,46232,46233,46234,46235,46236,46238,46239,46240,46241,46242,46243,46245,46246,46247,46249,46250,46251,46253,46254,46255,46256,46257,46258,46259,46260,46262,46264,46266,46267,46268,46269,46270,46271,46273,46274,46275,46277,46278,46279,46281,46282,46283,46284,46285,46286,46287,46289,46290,46291,46292,46294,46295,46296,46297,46298,46299,46302,46303,46305,46306,46309,46311,46312,46313,46314,46315,46318,46320,46322,46323,46324,46325,46326,46327,46329,46330,46331,46332,46333,46334,46335,46336,46337,46338,46339,46340,46341,46342,46343,46344,46345,46346,46347,46348,46349,46350,46351,46352,46353,46354,46355,46358,46359,46361,46362,46365,46366,46367,46368,46369,46370,46371,46374,46379,46380,46381,46382,46383,46386,46387,46389,46390,46391,46393,46394,46395,46396,46397,46398,46399,46402,46406,null,null,null,null,null,null,46407,46408,46409,46410,46414,46415,46417,46418,46419,46421,46422,46423,46424,46425,46426,46427,46430,46434,46435,46436,46437,46438,46439,46440,46441,46442,null,null,null,null,null,null,46443,46444,46445,46446,46447,46448,46449,46450,46451,46452,46453,46454,46455,46456,46457,46458,46459,46460,46461,46462,46463,46464,46465,46466,46467,46468,46469,46470,46471,46472,46473,46474,46475,46476,46477,46478,46479,46480,46481,46482,46483,46484,46485,46486,46487,46488,46489,46490,46491,46492,46493,46494,46495,46498,46499,46501,46502,46503,46505,46508,46509,46510,46511,46514,46518,46519,46520,46521,46522,46526,46527,46529,46530,46531,46533,46534,46535,46536,46537,46538,46539,46542,46546,46547,46548,46549,46550,46551,46553,46554,46555,46556,46557,46558,46559,46560,46561,46562,46563,46564,46565,46566,46567,46568,46569,46570,46571,46573,46574,46575,46576,46577,46578,46579,46580,46581,46582,46583,46584,46585,46586,46587,46588,46589,46590,46591,46592,46593,46594,46595,46596,46597,46598,46599,46600,46601,46602,46603,46604,46605,46606,46607,46610,46611,46613,46614,46615,46617,46618,46619,46620,46621,null,null,null,null,null,null,46622,46623,46624,46625,46626,46627,46628,46630,46631,46632,46633,46634,46635,46637,46638,46639,46640,46641,46642,46643,46645,46646,46647,46648,46649,46650,null,null,null,null,null,null,46651,46652,46653,46654,46655,46656,46657,46658,46659,46660,46661,46662,46663,46665,46666,46667,46668,46669,46670,46671,46672,46673,46674,46675,46676,46677,46678,46679,46680,46681,46682,46683,46684,46685,46686,46687,46688,46689,46690,46691,46693,46694,46695,46697,46698,46699,46700,46701,46702,46703,46704,46705,46706,46707,46708,46709,46710,46711,46712,46713,46714,46715,46716,46717,46718,46719,46720,46721,46722,46723,46724,46725,46726,46727,46728,46729,46730,46731,46732,46733,46734,46735,46736,46737,46738,46739,46740,46741,46742,46743,46744,46745,46746,46747,46750,46751,46753,46754,46755,46757,46758,46759,46760,46761,46762,46765,46766,46767,46768,46770,46771,46772,46773,46774,46775,46776,46777,46778,46779,46780,46781,46782,46783,46784,46785,46786,46787,46788,46789,46790,46791,46792,46793,46794,46795,46796,46797,46798,46799,46800,46801,46802,46803,46805,46806,46807,46808,46809,46810,46811,46812,46813,null,null,null,null,null,null,46814,46815,46816,46817,46818,46819,46820,46821,46822,46823,46824,46825,46826,46827,46828,46829,46830,46831,46833,46834,46835,46837,46838,46839,46841,46842,null,null,null,null,null,null,46843,46844,46845,46846,46847,46850,46851,46852,46854,46855,46856,46857,46858,46859,46860,46861,46862,46863,46864,46865,46866,46867,46868,46869,46870,46871,46872,46873,46874,46875,46876,46877,46878,46879,46880,46881,46882,46883,46884,46885,46886,46887,46890,46891,46893,46894,46897,46898,46899,46900,46901,46902,46903,46906,46908,46909,46910,46911,46912,46913,46914,46915,46917,46918,46919,46921,46922,46923,46925,46926,46927,46928,46929,46930,46931,46934,46935,46936,46937,46938,46939,46940,46941,46942,46943,46945,46946,46947,46949,46950,46951,46953,46954,46955,46956,46957,46958,46959,46962,46964,46966,46967,46968,46969,46970,46971,46974,46975,46977,46978,46979,46981,46982,46983,46984,46985,46986,46987,46990,46995,46996,46997,47002,47003,47005,47006,47007,47009,47010,47011,47012,47013,47014,47015,47018,47022,47023,47024,47025,47026,47027,47030,47031,47033,47034,47035,47036,47037,47038,47039,47040,47041,null,null,null,null,null,null,47042,47043,47044,47045,47046,47048,47050,47051,47052,47053,47054,47055,47056,47057,47058,47059,47060,47061,47062,47063,47064,47065,47066,47067,47068,47069,null,null,null,null,null,null,47070,47071,47072,47073,47074,47075,47076,47077,47078,47079,47080,47081,47082,47083,47086,47087,47089,47090,47091,47093,47094,47095,47096,47097,47098,47099,47102,47106,47107,47108,47109,47110,47114,47115,47117,47118,47119,47121,47122,47123,47124,47125,47126,47127,47130,47132,47134,47135,47136,47137,47138,47139,47142,47143,47145,47146,47147,47149,47150,47151,47152,47153,47154,47155,47158,47162,47163,47164,47165,47166,47167,47169,47170,47171,47173,47174,47175,47176,47177,47178,47179,47180,47181,47182,47183,47184,47186,47188,47189,47190,47191,47192,47193,47194,47195,47198,47199,47201,47202,47203,47205,47206,47207,47208,47209,47210,47211,47214,47216,47218,47219,47220,47221,47222,47223,47225,47226,47227,47229,47230,47231,47232,47233,47234,47235,47236,47237,47238,47239,47240,47241,47242,47243,47244,47246,47247,47248,47249,47250,47251,47252,47253,47254,47255,47256,47257,47258,47259,47260,47261,47262,47263,null,null,null,null,null,null,47264,47265,47266,47267,47268,47269,47270,47271,47273,47274,47275,47276,47277,47278,47279,47281,47282,47283,47285,47286,47287,47289,47290,47291,47292,47293,null,null,null,null,null,null,47294,47295,47298,47300,47302,47303,47304,47305,47306,47307,47309,47310,47311,47313,47314,47315,47317,47318,47319,47320,47321,47322,47323,47324,47326,47328,47330,47331,47332,47333,47334,47335,47338,47339,47341,47342,47343,47345,47346,47347,47348,47349,47350,47351,47354,47356,47358,47359,47360,47361,47362,47363,47365,47366,47367,47368,47369,47370,47371,47372,47373,47374,47375,47376,47377,47378,47379,47380,47381,47382,47383,47385,47386,47387,47388,47389,47390,47391,47393,47394,47395,47396,47397,47398,47399,47400,47401,47402,47403,47404,47405,47406,47407,47408,47409,47410,47411,47412,47413,47414,47415,47416,47417,47418,47419,47422,47423,47425,47426,47427,47429,47430,47431,47432,47433,47434,47435,47437,47438,47440,47442,47443,47444,47445,47446,47447,47450,47451,47453,47454,47455,47457,47458,47459,47460,47461,47462,47463,47466,47468,47470,47471,47472,47473,47474,47475,47478,47479,47481,47482,47483,47485,null,null,null,null,null,null,47486,47487,47488,47489,47490,47491,47494,47496,47499,47500,47503,47504,47505,47506,47507,47508,47509,47510,47511,47512,47513,47514,47515,47516,47517,47518,null,null,null,null,null,null,47519,47520,47521,47522,47523,47524,47525,47526,47527,47528,47529,47530,47531,47534,47535,47537,47538,47539,47541,47542,47543,47544,47545,47546,47547,47550,47552,47554,47555,47556,47557,47558,47559,47562,47563,47565,47571,47572,47573,47574,47575,47578,47580,47583,47584,47586,47590,47591,47593,47594,47595,47597,47598,47599,47600,47601,47602,47603,47606,47611,47612,47613,47614,47615,47618,47619,47620,47621,47622,47623,47625,47626,47627,47628,47629,47630,47631,47632,47633,47634,47635,47636,47638,47639,47640,47641,47642,47643,47644,47645,47646,47647,47648,47649,47650,47651,47652,47653,47654,47655,47656,47657,47658,47659,47660,47661,47662,47663,47664,47665,47666,47667,47668,47669,47670,47671,47674,47675,47677,47678,47679,47681,47683,47684,47685,47686,47687,47690,47692,47695,47696,47697,47698,47702,47703,47705,47706,47707,47709,47710,47711,47712,47713,47714,47715,47718,47722,47723,47724,47725,47726,47727,null,null,null,null,null,null,47730,47731,47733,47734,47735,47737,47738,47739,47740,47741,47742,47743,47744,47745,47746,47750,47752,47753,47754,47755,47757,47758,47759,47760,47761,47762,null,null,null,null,null,null,47763,47764,47765,47766,47767,47768,47769,47770,47771,47772,47773,47774,47775,47776,47777,47778,47779,47780,47781,47782,47783,47786,47789,47790,47791,47793,47795,47796,47797,47798,47799,47802,47804,47806,47807,47808,47809,47810,47811,47813,47814,47815,47817,47818,47819,47820,47821,47822,47823,47824,47825,47826,47827,47828,47829,47830,47831,47834,47835,47836,47837,47838,47839,47840,47841,47842,47843,47844,47845,47846,47847,47848,47849,47850,47851,47852,47853,47854,47855,47856,47857,47858,47859,47860,47861,47862,47863,47864,47865,47866,47867,47869,47870,47871,47873,47874,47875,47877,47878,47879,47880,47881,47882,47883,47884,47886,47888,47890,47891,47892,47893,47894,47895,47897,47898,47899,47901,47902,47903,47905,47906,47907,47908,47909,47910,47911,47912,47914,47916,47917,47918,47919,47920,47921,47922,47923,47927,47929,47930,47935,47936,47937,47938,47939,47942,47944,47946,47947,47948,47950,47953,47954,null,null,null,null,null,null,47955,47957,47958,47959,47961,47962,47963,47964,47965,47966,47967,47968,47970,47972,47973,47974,47975,47976,47977,47978,47979,47981,47982,47983,47984,47985,null,null,null,null,null,null,47986,47987,47988,47989,47990,47991,47992,47993,47994,47995,47996,47997,47998,47999,48e3,48001,48002,48003,48004,48005,48006,48007,48009,48010,48011,48013,48014,48015,48017,48018,48019,48020,48021,48022,48023,48024,48025,48026,48027,48028,48029,48030,48031,48032,48033,48034,48035,48037,48038,48039,48041,48042,48043,48045,48046,48047,48048,48049,48050,48051,48053,48054,48056,48057,48058,48059,48060,48061,48062,48063,48065,48066,48067,48069,48070,48071,48073,48074,48075,48076,48077,48078,48079,48081,48082,48084,48085,48086,48087,48088,48089,48090,48091,48092,48093,48094,48095,48096,48097,48098,48099,48100,48101,48102,48103,48104,48105,48106,48107,48108,48109,48110,48111,48112,48113,48114,48115,48116,48117,48118,48119,48122,48123,48125,48126,48129,48131,48132,48133,48134,48135,48138,48142,48144,48146,48147,48153,48154,48160,48161,48162,48163,48166,48168,48170,48171,48172,48174,48175,48178,48179,48181,null,null,null,null,null,null,48182,48183,48185,48186,48187,48188,48189,48190,48191,48194,48198,48199,48200,48202,48203,48206,48207,48209,48210,48211,48212,48213,48214,48215,48216,48217,null,null,null,null,null,null,48218,48219,48220,48222,48223,48224,48225,48226,48227,48228,48229,48230,48231,48232,48233,48234,48235,48236,48237,48238,48239,48240,48241,48242,48243,48244,48245,48246,48247,48248,48249,48250,48251,48252,48253,48254,48255,48256,48257,48258,48259,48262,48263,48265,48266,48269,48271,48272,48273,48274,48275,48278,48280,48283,48284,48285,48286,48287,48290,48291,48293,48294,48297,48298,48299,48300,48301,48302,48303,48306,48310,48311,48312,48313,48314,48315,48318,48319,48321,48322,48323,48325,48326,48327,48328,48329,48330,48331,48332,48334,48338,48339,48340,48342,48343,48345,48346,48347,48349,48350,48351,48352,48353,48354,48355,48356,48357,48358,48359,48360,48361,48362,48363,48364,48365,48366,48367,48368,48369,48370,48371,48375,48377,48378,48379,48381,48382,48383,48384,48385,48386,48387,48390,48392,48394,48395,48396,48397,48398,48399,48401,48402,48403,48405,48406,48407,48408,48409,48410,48411,48412,48413,null,null,null,null,null,null,48414,48415,48416,48417,48418,48419,48421,48422,48423,48424,48425,48426,48427,48429,48430,48431,48432,48433,48434,48435,48436,48437,48438,48439,48440,48441,null,null,null,null,null,null,48442,48443,48444,48445,48446,48447,48449,48450,48451,48452,48453,48454,48455,48458,48459,48461,48462,48463,48465,48466,48467,48468,48469,48470,48471,48474,48475,48476,48477,48478,48479,48480,48481,48482,48483,48485,48486,48487,48489,48490,48491,48492,48493,48494,48495,48496,48497,48498,48499,48500,48501,48502,48503,48504,48505,48506,48507,48508,48509,48510,48511,48514,48515,48517,48518,48523,48524,48525,48526,48527,48530,48532,48534,48535,48536,48539,48541,48542,48543,48544,48545,48546,48547,48549,48550,48551,48552,48553,48554,48555,48556,48557,48558,48559,48561,48562,48563,48564,48565,48566,48567,48569,48570,48571,48572,48573,48574,48575,48576,48577,48578,48579,48580,48581,48582,48583,48584,48585,48586,48587,48588,48589,48590,48591,48592,48593,48594,48595,48598,48599,48601,48602,48603,48605,48606,48607,48608,48609,48610,48611,48612,48613,48614,48615,48616,48618,48619,48620,48621,48622,48623,48625,null,null,null,null,null,null,48626,48627,48629,48630,48631,48633,48634,48635,48636,48637,48638,48639,48641,48642,48644,48646,48647,48648,48649,48650,48651,48654,48655,48657,48658,48659,null,null,null,null,null,null,48661,48662,48663,48664,48665,48666,48667,48670,48672,48673,48674,48675,48676,48677,48678,48679,48680,48681,48682,48683,48684,48685,48686,48687,48688,48689,48690,48691,48692,48693,48694,48695,48696,48697,48698,48699,48700,48701,48702,48703,48704,48705,48706,48707,48710,48711,48713,48714,48715,48717,48719,48720,48721,48722,48723,48726,48728,48732,48733,48734,48735,48738,48739,48741,48742,48743,48745,48747,48748,48749,48750,48751,48754,48758,48759,48760,48761,48762,48766,48767,48769,48770,48771,48773,48774,48775,48776,48777,48778,48779,48782,48786,48787,48788,48789,48790,48791,48794,48795,48796,48797,48798,48799,48800,48801,48802,48803,48804,48805,48806,48807,48809,48810,48811,48812,48813,48814,48815,48816,48817,48818,48819,48820,48821,48822,48823,48824,48825,48826,48827,48828,48829,48830,48831,48832,48833,48834,48835,48836,48837,48838,48839,48840,48841,48842,48843,48844,48845,48846,48847,48850,48851,null,null,null,null,null,null,48853,48854,48857,48858,48859,48860,48861,48862,48863,48865,48866,48870,48871,48872,48873,48874,48875,48877,48878,48879,48880,48881,48882,48883,48884,48885,null,null,null,null,null,null,48886,48887,48888,48889,48890,48891,48892,48893,48894,48895,48896,48898,48899,48900,48901,48902,48903,48906,48907,48908,48909,48910,48911,48912,48913,48914,48915,48916,48917,48918,48919,48922,48926,48927,48928,48929,48930,48931,48932,48933,48934,48935,48936,48937,48938,48939,48940,48941,48942,48943,48944,48945,48946,48947,48948,48949,48950,48951,48952,48953,48954,48955,48956,48957,48958,48959,48962,48963,48965,48966,48967,48969,48970,48971,48972,48973,48974,48975,48978,48979,48980,48982,48983,48984,48985,48986,48987,48988,48989,48990,48991,48992,48993,48994,48995,48996,48997,48998,48999,49e3,49001,49002,49003,49004,49005,49006,49007,49008,49009,49010,49011,49012,49013,49014,49015,49016,49017,49018,49019,49020,49021,49022,49023,49024,49025,49026,49027,49028,49029,49030,49031,49032,49033,49034,49035,49036,49037,49038,49039,49040,49041,49042,49043,49045,49046,49047,49048,49049,49050,49051,49052,49053,null,null,null,null,null,null,49054,49055,49056,49057,49058,49059,49060,49061,49062,49063,49064,49065,49066,49067,49068,49069,49070,49071,49073,49074,49075,49076,49077,49078,49079,49080,null,null,null,null,null,null,49081,49082,49083,49084,49085,49086,49087,49088,49089,49090,49091,49092,49094,49095,49096,49097,49098,49099,49102,49103,49105,49106,49107,49109,49110,49111,49112,49113,49114,49115,49117,49118,49120,49122,49123,49124,49125,49126,49127,49128,49129,49130,49131,49132,49133,49134,49135,49136,49137,49138,49139,49140,49141,49142,49143,49144,49145,49146,49147,49148,49149,49150,49151,49152,49153,49154,49155,49156,49157,49158,49159,49160,49161,49162,49163,49164,49165,49166,49167,49168,49169,49170,49171,49172,49173,49174,49175,49176,49177,49178,49179,49180,49181,49182,49183,49184,49185,49186,49187,49188,49189,49190,49191,49192,49193,49194,49195,49196,49197,49198,49199,49200,49201,49202,49203,49204,49205,49206,49207,49208,49209,49210,49211,49213,49214,49215,49216,49217,49218,49219,49220,49221,49222,49223,49224,49225,49226,49227,49228,49229,49230,49231,49232,49234,49235,49236,49237,49238,49239,49241,49242,49243,null,null,null,null,null,null,49245,49246,49247,49249,49250,49251,49252,49253,49254,49255,49258,49259,49260,49261,49262,49263,49264,49265,49266,49267,49268,49269,49270,49271,49272,49273,null,null,null,null,null,null,49274,49275,49276,49277,49278,49279,49280,49281,49282,49283,49284,49285,49286,49287,49288,49289,49290,49291,49292,49293,49294,49295,49298,49299,49301,49302,49303,49305,49306,49307,49308,49309,49310,49311,49314,49316,49318,49319,49320,49321,49322,49323,49326,49329,49330,49335,49336,49337,49338,49339,49342,49346,49347,49348,49350,49351,49354,49355,49357,49358,49359,49361,49362,49363,49364,49365,49366,49367,49370,49374,49375,49376,49377,49378,49379,49382,49383,49385,49386,49387,49389,49390,49391,49392,49393,49394,49395,49398,49400,49402,49403,49404,49405,49406,49407,49409,49410,49411,49413,49414,49415,49417,49418,49419,49420,49421,49422,49423,49425,49426,49427,49428,49430,49431,49432,49433,49434,49435,49441,49442,49445,49448,49449,49450,49451,49454,49458,49459,49460,49461,49463,49466,49467,49469,49470,49471,49473,49474,49475,49476,49477,49478,49479,49482,49486,49487,49488,49489,49490,49491,49494,49495,null,null,null,null,null,null,49497,49498,49499,49501,49502,49503,49504,49505,49506,49507,49510,49514,49515,49516,49517,49518,49519,49521,49522,49523,49525,49526,49527,49529,49530,49531,null,null,null,null,null,null,49532,49533,49534,49535,49536,49537,49538,49539,49540,49542,49543,49544,49545,49546,49547,49551,49553,49554,49555,49557,49559,49560,49561,49562,49563,49566,49568,49570,49571,49572,49574,49575,49578,49579,49581,49582,49583,49585,49586,49587,49588,49589,49590,49591,49592,49593,49594,49595,49596,49598,49599,49600,49601,49602,49603,49605,49606,49607,49609,49610,49611,49613,49614,49615,49616,49617,49618,49619,49621,49622,49625,49626,49627,49628,49629,49630,49631,49633,49634,49635,49637,49638,49639,49641,49642,49643,49644,49645,49646,49647,49650,49652,49653,49654,49655,49656,49657,49658,49659,49662,49663,49665,49666,49667,49669,49670,49671,49672,49673,49674,49675,49678,49680,49682,49683,49684,49685,49686,49687,49690,49691,49693,49694,49697,49698,49699,49700,49701,49702,49703,49706,49708,49710,49712,49715,49717,49718,49719,49720,49721,49722,49723,49724,49725,49726,49727,49728,49729,49730,49731,49732,49733,null,null,null,null,null,null,49734,49735,49737,49738,49739,49740,49741,49742,49743,49746,49747,49749,49750,49751,49753,49754,49755,49756,49757,49758,49759,49761,49762,49763,49764,49766,null,null,null,null,null,null,49767,49768,49769,49770,49771,49774,49775,49777,49778,49779,49781,49782,49783,49784,49785,49786,49787,49790,49792,49794,49795,49796,49797,49798,49799,49802,49803,49804,49805,49806,49807,49809,49810,49811,49812,49813,49814,49815,49817,49818,49820,49822,49823,49824,49825,49826,49827,49830,49831,49833,49834,49835,49838,49839,49840,49841,49842,49843,49846,49848,49850,49851,49852,49853,49854,49855,49856,49857,49858,49859,49860,49861,49862,49863,49864,49865,49866,49867,49868,49869,49870,49871,49872,49873,49874,49875,49876,49877,49878,49879,49880,49881,49882,49883,49886,49887,49889,49890,49893,49894,49895,49896,49897,49898,49902,49904,49906,49907,49908,49909,49911,49914,49917,49918,49919,49921,49922,49923,49924,49925,49926,49927,49930,49931,49934,49935,49936,49937,49938,49942,49943,49945,49946,49947,49949,49950,49951,49952,49953,49954,49955,49958,49959,49962,49963,49964,49965,49966,49967,49968,49969,49970,null,null,null,null,null,null,49971,49972,49973,49974,49975,49976,49977,49978,49979,49980,49981,49982,49983,49984,49985,49986,49987,49988,49990,49991,49992,49993,49994,49995,49996,49997,null,null,null,null,null,null,49998,49999,5e4,50001,50002,50003,50004,50005,50006,50007,50008,50009,50010,50011,50012,50013,50014,50015,50016,50017,50018,50019,50020,50021,50022,50023,50026,50027,50029,50030,50031,50033,50035,50036,50037,50038,50039,50042,50043,50046,50047,50048,50049,50050,50051,50053,50054,50055,50057,50058,50059,50061,50062,50063,50064,50065,50066,50067,50068,50069,50070,50071,50072,50073,50074,50075,50076,50077,50078,50079,50080,50081,50082,50083,50084,50085,50086,50087,50088,50089,50090,50091,50092,50093,50094,50095,50096,50097,50098,50099,50100,50101,50102,50103,50104,50105,50106,50107,50108,50109,50110,50111,50113,50114,50115,50116,50117,50118,50119,50120,50121,50122,50123,50124,50125,50126,50127,50128,50129,50130,50131,50132,50133,50134,50135,50138,50139,50141,50142,50145,50147,50148,50149,50150,50151,50154,50155,50156,50158,50159,50160,50161,50162,50163,50166,50167,50169,50170,50171,50172,50173,50174,null,null,null,null,null,null,50175,50176,50177,50178,50179,50180,50181,50182,50183,50185,50186,50187,50188,50189,50190,50191,50193,50194,50195,50196,50197,50198,50199,50200,50201,50202,null,null,null,null,null,null,50203,50204,50205,50206,50207,50208,50209,50210,50211,50213,50214,50215,50216,50217,50218,50219,50221,50222,50223,50225,50226,50227,50229,50230,50231,50232,50233,50234,50235,50238,50239,50240,50241,50242,50243,50244,50245,50246,50247,50249,50250,50251,50252,50253,50254,50255,50256,50257,50258,50259,50260,50261,50262,50263,50264,50265,50266,50267,50268,50269,50270,50271,50272,50273,50274,50275,50278,50279,50281,50282,50283,50285,50286,50287,50288,50289,50290,50291,50294,50295,50296,50298,50299,50300,50301,50302,50303,50305,50306,50307,50308,50309,50310,50311,50312,50313,50314,50315,50316,50317,50318,50319,50320,50321,50322,50323,50325,50326,50327,50328,50329,50330,50331,50333,50334,50335,50336,50337,50338,50339,50340,50341,50342,50343,50344,50345,50346,50347,50348,50349,50350,50351,50352,50353,50354,50355,50356,50357,50358,50359,50361,50362,50363,50365,50366,50367,50368,50369,50370,50371,50372,50373,null,null,null,null,null,null,50374,50375,50376,50377,50378,50379,50380,50381,50382,50383,50384,50385,50386,50387,50388,50389,50390,50391,50392,50393,50394,50395,50396,50397,50398,50399,null,null,null,null,null,null,50400,50401,50402,50403,50404,50405,50406,50407,50408,50410,50411,50412,50413,50414,50415,50418,50419,50421,50422,50423,50425,50427,50428,50429,50430,50434,50435,50436,50437,50438,50439,50440,50441,50442,50443,50445,50446,50447,50449,50450,50451,50453,50454,50455,50456,50457,50458,50459,50461,50462,50463,50464,50465,50466,50467,50468,50469,50470,50471,50474,50475,50477,50478,50479,50481,50482,50483,50484,50485,50486,50487,50490,50492,50494,50495,50496,50497,50498,50499,50502,50503,50507,50511,50512,50513,50514,50518,50522,50523,50524,50527,50530,50531,50533,50534,50535,50537,50538,50539,50540,50541,50542,50543,50546,50550,50551,50552,50553,50554,50555,50558,50559,50561,50562,50563,50565,50566,50568,50569,50570,50571,50574,50576,50578,50579,50580,50582,50585,50586,50587,50589,50590,50591,50593,50594,50595,50596,50597,50598,50599,50600,50602,50603,50604,50605,50606,50607,50608,50609,50610,50611,50614,null,null,null,null,null,null,50615,50618,50623,50624,50625,50626,50627,50635,50637,50639,50642,50643,50645,50646,50647,50649,50650,50651,50652,50653,50654,50655,50658,50660,50662,50663,null,null,null,null,null,null,50664,50665,50666,50667,50671,50673,50674,50675,50677,50680,50681,50682,50683,50690,50691,50692,50697,50698,50699,50701,50702,50703,50705,50706,50707,50708,50709,50710,50711,50714,50717,50718,50719,50720,50721,50722,50723,50726,50727,50729,50730,50731,50735,50737,50738,50742,50744,50746,50748,50749,50750,50751,50754,50755,50757,50758,50759,50761,50762,50763,50764,50765,50766,50767,50770,50774,50775,50776,50777,50778,50779,50782,50783,50785,50786,50787,50788,50789,50790,50791,50792,50793,50794,50795,50797,50798,50800,50802,50803,50804,50805,50806,50807,50810,50811,50813,50814,50815,50817,50818,50819,50820,50821,50822,50823,50826,50828,50830,50831,50832,50833,50834,50835,50838,50839,50841,50842,50843,50845,50846,50847,50848,50849,50850,50851,50854,50856,50858,50859,50860,50861,50862,50863,50866,50867,50869,50870,50871,50875,50876,50877,50878,50879,50882,50884,50886,50887,50888,50889,50890,50891,50894,null,null,null,null,null,null,50895,50897,50898,50899,50901,50902,50903,50904,50905,50906,50907,50910,50911,50914,50915,50916,50917,50918,50919,50922,50923,50925,50926,50927,50929,50930,null,null,null,null,null,null,50931,50932,50933,50934,50935,50938,50939,50940,50942,50943,50944,50945,50946,50947,50950,50951,50953,50954,50955,50957,50958,50959,50960,50961,50962,50963,50966,50968,50970,50971,50972,50973,50974,50975,50978,50979,50981,50982,50983,50985,50986,50987,50988,50989,50990,50991,50994,50996,50998,51e3,51001,51002,51003,51006,51007,51009,51010,51011,51013,51014,51015,51016,51017,51019,51022,51024,51033,51034,51035,51037,51038,51039,51041,51042,51043,51044,51045,51046,51047,51049,51050,51052,51053,51054,51055,51056,51057,51058,51059,51062,51063,51065,51066,51067,51071,51072,51073,51074,51078,51083,51084,51085,51087,51090,51091,51093,51097,51099,51100,51101,51102,51103,51106,51111,51112,51113,51114,51115,51118,51119,51121,51122,51123,51125,51126,51127,51128,51129,51130,51131,51134,51138,51139,51140,51141,51142,51143,51146,51147,51149,51151,51153,51154,51155,51156,51157,51158,51159,51161,51162,51163,51164,null,null,null,null,null,null,51166,51167,51168,51169,51170,51171,51173,51174,51175,51177,51178,51179,51181,51182,51183,51184,51185,51186,51187,51188,51189,51190,51191,51192,51193,51194,null,null,null,null,null,null,51195,51196,51197,51198,51199,51202,51203,51205,51206,51207,51209,51211,51212,51213,51214,51215,51218,51220,51223,51224,51225,51226,51227,51230,51231,51233,51234,51235,51237,51238,51239,51240,51241,51242,51243,51246,51248,51250,51251,51252,51253,51254,51255,51257,51258,51259,51261,51262,51263,51265,51266,51267,51268,51269,51270,51271,51274,51275,51278,51279,51280,51281,51282,51283,51285,51286,51287,51288,51289,51290,51291,51292,51293,51294,51295,51296,51297,51298,51299,51300,51301,51302,51303,51304,51305,51306,51307,51308,51309,51310,51311,51314,51315,51317,51318,51319,51321,51323,51324,51325,51326,51327,51330,51332,51336,51337,51338,51342,51343,51344,51345,51346,51347,51349,51350,51351,51352,51353,51354,51355,51356,51358,51360,51362,51363,51364,51365,51366,51367,51369,51370,51371,51372,51373,51374,51375,51376,51377,51378,51379,51380,51381,51382,51383,51384,51385,51386,51387,51390,51391,51392,51393,null,null,null,null,null,null,51394,51395,51397,51398,51399,51401,51402,51403,51405,51406,51407,51408,51409,51410,51411,51414,51416,51418,51419,51420,51421,51422,51423,51426,51427,51429,null,null,null,null,null,null,51430,51431,51432,51433,51434,51435,51436,51437,51438,51439,51440,51441,51442,51443,51444,51446,51447,51448,51449,51450,51451,51454,51455,51457,51458,51459,51463,51464,51465,51466,51467,51470,12288,12289,12290,183,8229,8230,168,12291,173,8213,8741,65340,8764,8216,8217,8220,8221,12308,12309,12296,12297,12298,12299,12300,12301,12302,12303,12304,12305,177,215,247,8800,8804,8805,8734,8756,176,8242,8243,8451,8491,65504,65505,65509,9794,9792,8736,8869,8978,8706,8711,8801,8786,167,8251,9734,9733,9675,9679,9678,9671,9670,9633,9632,9651,9650,9661,9660,8594,8592,8593,8595,8596,12307,8810,8811,8730,8765,8733,8757,8747,8748,8712,8715,8838,8839,8834,8835,8746,8745,8743,8744,65506,51472,51474,51475,51476,51477,51478,51479,51481,51482,51483,51484,51485,51486,51487,51488,51489,51490,51491,51492,51493,51494,51495,51496,51497,51498,51499,null,null,null,null,null,null,51501,51502,51503,51504,51505,51506,51507,51509,51510,51511,51512,51513,51514,51515,51516,51517,51518,51519,51520,51521,51522,51523,51524,51525,51526,51527,null,null,null,null,null,null,51528,51529,51530,51531,51532,51533,51534,51535,51538,51539,51541,51542,51543,51545,51546,51547,51548,51549,51550,51551,51554,51556,51557,51558,51559,51560,51561,51562,51563,51565,51566,51567,8658,8660,8704,8707,180,65374,711,728,733,730,729,184,731,161,191,720,8750,8721,8719,164,8457,8240,9665,9664,9655,9654,9828,9824,9825,9829,9831,9827,8857,9672,9635,9680,9681,9618,9636,9637,9640,9639,9638,9641,9832,9743,9742,9756,9758,182,8224,8225,8597,8599,8601,8598,8600,9837,9833,9834,9836,12927,12828,8470,13255,8482,13250,13272,8481,8364,174,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,51569,51570,51571,51573,51574,51575,51576,51577,51578,51579,51581,51582,51583,51584,51585,51586,51587,51588,51589,51590,51591,51594,51595,51597,51598,51599,null,null,null,null,null,null,51601,51602,51603,51604,51605,51606,51607,51610,51612,51614,51615,51616,51617,51618,51619,51620,51621,51622,51623,51624,51625,51626,51627,51628,51629,51630,null,null,null,null,null,null,51631,51632,51633,51634,51635,51636,51637,51638,51639,51640,51641,51642,51643,51644,51645,51646,51647,51650,51651,51653,51654,51657,51659,51660,51661,51662,51663,51666,51668,51671,51672,51675,65281,65282,65283,65284,65285,65286,65287,65288,65289,65290,65291,65292,65293,65294,65295,65296,65297,65298,65299,65300,65301,65302,65303,65304,65305,65306,65307,65308,65309,65310,65311,65312,65313,65314,65315,65316,65317,65318,65319,65320,65321,65322,65323,65324,65325,65326,65327,65328,65329,65330,65331,65332,65333,65334,65335,65336,65337,65338,65339,65510,65341,65342,65343,65344,65345,65346,65347,65348,65349,65350,65351,65352,65353,65354,65355,65356,65357,65358,65359,65360,65361,65362,65363,65364,65365,65366,65367,65368,65369,65370,65371,65372,65373,65507,51678,51679,51681,51683,51685,51686,51688,51689,51690,51691,51694,51698,51699,51700,51701,51702,51703,51706,51707,51709,51710,51711,51713,51714,51715,51716,null,null,null,null,null,null,51717,51718,51719,51722,51726,51727,51728,51729,51730,51731,51733,51734,51735,51737,51738,51739,51740,51741,51742,51743,51744,51745,51746,51747,51748,51749,null,null,null,null,null,null,51750,51751,51752,51754,51755,51756,51757,51758,51759,51760,51761,51762,51763,51764,51765,51766,51767,51768,51769,51770,51771,51772,51773,51774,51775,51776,51777,51778,51779,51780,51781,51782,12593,12594,12595,12596,12597,12598,12599,12600,12601,12602,12603,12604,12605,12606,12607,12608,12609,12610,12611,12612,12613,12614,12615,12616,12617,12618,12619,12620,12621,12622,12623,12624,12625,12626,12627,12628,12629,12630,12631,12632,12633,12634,12635,12636,12637,12638,12639,12640,12641,12642,12643,12644,12645,12646,12647,12648,12649,12650,12651,12652,12653,12654,12655,12656,12657,12658,12659,12660,12661,12662,12663,12664,12665,12666,12667,12668,12669,12670,12671,12672,12673,12674,12675,12676,12677,12678,12679,12680,12681,12682,12683,12684,12685,12686,51783,51784,51785,51786,51787,51790,51791,51793,51794,51795,51797,51798,51799,51800,51801,51802,51803,51806,51810,51811,51812,51813,51814,51815,51817,51818,null,null,null,null,null,null,51819,51820,51821,51822,51823,51824,51825,51826,51827,51828,51829,51830,51831,51832,51833,51834,51835,51836,51838,51839,51840,51841,51842,51843,51845,51846,null,null,null,null,null,null,51847,51848,51849,51850,51851,51852,51853,51854,51855,51856,51857,51858,51859,51860,51861,51862,51863,51865,51866,51867,51868,51869,51870,51871,51872,51873,51874,51875,51876,51877,51878,51879,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,null,null,null,null,null,8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,null,null,null,null,null,null,null,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,null,null,null,null,null,null,null,null,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,963,964,965,966,967,968,969,null,null,null,null,null,null,51880,51881,51882,51883,51884,51885,51886,51887,51888,51889,51890,51891,51892,51893,51894,51895,51896,51897,51898,51899,51902,51903,51905,51906,51907,51909,null,null,null,null,null,null,51910,51911,51912,51913,51914,51915,51918,51920,51922,51924,51925,51926,51927,51930,51931,51932,51933,51934,51935,51937,51938,51939,51940,51941,51942,51943,null,null,null,null,null,null,51944,51945,51946,51947,51949,51950,51951,51952,51953,51954,51955,51957,51958,51959,51960,51961,51962,51963,51964,51965,51966,51967,51968,51969,51970,51971,51972,51973,51974,51975,51977,51978,9472,9474,9484,9488,9496,9492,9500,9516,9508,9524,9532,9473,9475,9487,9491,9499,9495,9507,9523,9515,9531,9547,9504,9519,9512,9527,9535,9501,9520,9509,9528,9538,9490,9489,9498,9497,9494,9493,9486,9485,9502,9503,9505,9506,9510,9511,9513,9514,9517,9518,9521,9522,9525,9526,9529,9530,9533,9534,9536,9537,9539,9540,9541,9542,9543,9544,9545,9546,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,51979,51980,51981,51982,51983,51985,51986,51987,51989,51990,51991,51993,51994,51995,51996,51997,51998,51999,52002,52003,52004,52005,52006,52007,52008,52009,null,null,null,null,null,null,52010,52011,52012,52013,52014,52015,52016,52017,52018,52019,52020,52021,52022,52023,52024,52025,52026,52027,52028,52029,52030,52031,52032,52034,52035,52036,null,null,null,null,null,null,52037,52038,52039,52042,52043,52045,52046,52047,52049,52050,52051,52052,52053,52054,52055,52058,52059,52060,52062,52063,52064,52065,52066,52067,52069,52070,52071,52072,52073,52074,52075,52076,13205,13206,13207,8467,13208,13252,13219,13220,13221,13222,13209,13210,13211,13212,13213,13214,13215,13216,13217,13218,13258,13197,13198,13199,13263,13192,13193,13256,13223,13224,13232,13233,13234,13235,13236,13237,13238,13239,13240,13241,13184,13185,13186,13187,13188,13242,13243,13244,13245,13246,13247,13200,13201,13202,13203,13204,8486,13248,13249,13194,13195,13196,13270,13253,13229,13230,13231,13275,13225,13226,13227,13228,13277,13264,13267,13251,13257,13276,13254,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,52077,52078,52079,52080,52081,52082,52083,52084,52085,52086,52087,52090,52091,52092,52093,52094,52095,52096,52097,52098,52099,52100,52101,52102,52103,52104,null,null,null,null,null,null,52105,52106,52107,52108,52109,52110,52111,52112,52113,52114,52115,52116,52117,52118,52119,52120,52121,52122,52123,52125,52126,52127,52128,52129,52130,52131,null,null,null,null,null,null,52132,52133,52134,52135,52136,52137,52138,52139,52140,52141,52142,52143,52144,52145,52146,52147,52148,52149,52150,52151,52153,52154,52155,52156,52157,52158,52159,52160,52161,52162,52163,52164,198,208,170,294,null,306,null,319,321,216,338,186,222,358,330,null,12896,12897,12898,12899,12900,12901,12902,12903,12904,12905,12906,12907,12908,12909,12910,12911,12912,12913,12914,12915,12916,12917,12918,12919,12920,12921,12922,12923,9424,9425,9426,9427,9428,9429,9430,9431,9432,9433,9434,9435,9436,9437,9438,9439,9440,9441,9442,9443,9444,9445,9446,9447,9448,9449,9312,9313,9314,9315,9316,9317,9318,9319,9320,9321,9322,9323,9324,9325,9326,189,8531,8532,188,190,8539,8540,8541,8542,52165,52166,52167,52168,52169,52170,52171,52172,52173,52174,52175,52176,52177,52178,52179,52181,52182,52183,52184,52185,52186,52187,52188,52189,52190,52191,null,null,null,null,null,null,52192,52193,52194,52195,52197,52198,52200,52202,52203,52204,52205,52206,52207,52208,52209,52210,52211,52212,52213,52214,52215,52216,52217,52218,52219,52220,null,null,null,null,null,null,52221,52222,52223,52224,52225,52226,52227,52228,52229,52230,52231,52232,52233,52234,52235,52238,52239,52241,52242,52243,52245,52246,52247,52248,52249,52250,52251,52254,52255,52256,52259,52260,230,273,240,295,305,307,312,320,322,248,339,223,254,359,331,329,12800,12801,12802,12803,12804,12805,12806,12807,12808,12809,12810,12811,12812,12813,12814,12815,12816,12817,12818,12819,12820,12821,12822,12823,12824,12825,12826,12827,9372,9373,9374,9375,9376,9377,9378,9379,9380,9381,9382,9383,9384,9385,9386,9387,9388,9389,9390,9391,9392,9393,9394,9395,9396,9397,9332,9333,9334,9335,9336,9337,9338,9339,9340,9341,9342,9343,9344,9345,9346,185,178,179,8308,8319,8321,8322,8323,8324,52261,52262,52266,52267,52269,52271,52273,52274,52275,52276,52277,52278,52279,52282,52287,52288,52289,52290,52291,52294,52295,52297,52298,52299,52301,52302,null,null,null,null,null,null,52303,52304,52305,52306,52307,52310,52314,52315,52316,52317,52318,52319,52321,52322,52323,52325,52327,52329,52330,52331,52332,52333,52334,52335,52337,52338,null,null,null,null,null,null,52339,52340,52342,52343,52344,52345,52346,52347,52348,52349,52350,52351,52352,52353,52354,52355,52356,52357,52358,52359,52360,52361,52362,52363,52364,52365,52366,52367,52368,52369,52370,52371,12353,12354,12355,12356,12357,12358,12359,12360,12361,12362,12363,12364,12365,12366,12367,12368,12369,12370,12371,12372,12373,12374,12375,12376,12377,12378,12379,12380,12381,12382,12383,12384,12385,12386,12387,12388,12389,12390,12391,12392,12393,12394,12395,12396,12397,12398,12399,12400,12401,12402,12403,12404,12405,12406,12407,12408,12409,12410,12411,12412,12413,12414,12415,12416,12417,12418,12419,12420,12421,12422,12423,12424,12425,12426,12427,12428,12429,12430,12431,12432,12433,12434,12435,null,null,null,null,null,null,null,null,null,null,null,52372,52373,52374,52375,52378,52379,52381,52382,52383,52385,52386,52387,52388,52389,52390,52391,52394,52398,52399,52400,52401,52402,52403,52406,52407,52409,null,null,null,null,null,null,52410,52411,52413,52414,52415,52416,52417,52418,52419,52422,52424,52426,52427,52428,52429,52430,52431,52433,52434,52435,52437,52438,52439,52440,52441,52442,null,null,null,null,null,null,52443,52444,52445,52446,52447,52448,52449,52450,52451,52453,52454,52455,52456,52457,52458,52459,52461,52462,52463,52465,52466,52467,52468,52469,52470,52471,52472,52473,52474,52475,52476,52477,12449,12450,12451,12452,12453,12454,12455,12456,12457,12458,12459,12460,12461,12462,12463,12464,12465,12466,12467,12468,12469,12470,12471,12472,12473,12474,12475,12476,12477,12478,12479,12480,12481,12482,12483,12484,12485,12486,12487,12488,12489,12490,12491,12492,12493,12494,12495,12496,12497,12498,12499,12500,12501,12502,12503,12504,12505,12506,12507,12508,12509,12510,12511,12512,12513,12514,12515,12516,12517,12518,12519,12520,12521,12522,12523,12524,12525,12526,12527,12528,12529,12530,12531,12532,12533,12534,null,null,null,null,null,null,null,null,52478,52479,52480,52482,52483,52484,52485,52486,52487,52490,52491,52493,52494,52495,52497,52498,52499,52500,52501,52502,52503,52506,52508,52510,52511,52512,null,null,null,null,null,null,52513,52514,52515,52517,52518,52519,52521,52522,52523,52525,52526,52527,52528,52529,52530,52531,52532,52533,52534,52535,52536,52538,52539,52540,52541,52542,null,null,null,null,null,null,52543,52544,52545,52546,52547,52548,52549,52550,52551,52552,52553,52554,52555,52556,52557,52558,52559,52560,52561,52562,52563,52564,52565,52566,52567,52568,52569,52570,52571,52573,52574,52575,1040,1041,1042,1043,1044,1045,1025,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,1072,1073,1074,1075,1076,1077,1105,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,null,null,null,null,null,null,null,null,null,null,null,null,null,52577,52578,52579,52581,52582,52583,52584,52585,52586,52587,52590,52592,52594,52595,52596,52597,52598,52599,52601,52602,52603,52604,52605,52606,52607,52608,null,null,null,null,null,null,52609,52610,52611,52612,52613,52614,52615,52617,52618,52619,52620,52621,52622,52623,52624,52625,52626,52627,52630,52631,52633,52634,52635,52637,52638,52639,null,null,null,null,null,null,52640,52641,52642,52643,52646,52648,52650,52651,52652,52653,52654,52655,52657,52658,52659,52660,52661,52662,52663,52664,52665,52666,52667,52668,52669,52670,52671,52672,52673,52674,52675,52677,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,52678,52679,52680,52681,52682,52683,52685,52686,52687,52689,52690,52691,52692,52693,52694,52695,52696,52697,52698,52699,52700,52701,52702,52703,52704,52705,null,null,null,null,null,null,52706,52707,52708,52709,52710,52711,52713,52714,52715,52717,52718,52719,52721,52722,52723,52724,52725,52726,52727,52730,52732,52734,52735,52736,52737,52738,null,null,null,null,null,null,52739,52741,52742,52743,52745,52746,52747,52749,52750,52751,52752,52753,52754,52755,52757,52758,52759,52760,52762,52763,52764,52765,52766,52767,52770,52771,52773,52774,52775,52777,52778,52779,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,52780,52781,52782,52783,52786,52788,52790,52791,52792,52793,52794,52795,52796,52797,52798,52799,52800,52801,52802,52803,52804,52805,52806,52807,52808,52809,null,null,null,null,null,null,52810,52811,52812,52813,52814,52815,52816,52817,52818,52819,52820,52821,52822,52823,52826,52827,52829,52830,52834,52835,52836,52837,52838,52839,52842,52844,null,null,null,null,null,null,52846,52847,52848,52849,52850,52851,52854,52855,52857,52858,52859,52861,52862,52863,52864,52865,52866,52867,52870,52872,52874,52875,52876,52877,52878,52879,52882,52883,52885,52886,52887,52889,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,52890,52891,52892,52893,52894,52895,52898,52902,52903,52904,52905,52906,52907,52910,52911,52912,52913,52914,52915,52916,52917,52918,52919,52920,52921,52922,null,null,null,null,null,null,52923,52924,52925,52926,52927,52928,52930,52931,52932,52933,52934,52935,52936,52937,52938,52939,52940,52941,52942,52943,52944,52945,52946,52947,52948,52949,null,null,null,null,null,null,52950,52951,52952,52953,52954,52955,52956,52957,52958,52959,52960,52961,52962,52963,52966,52967,52969,52970,52973,52974,52975,52976,52977,52978,52979,52982,52986,52987,52988,52989,52990,52991,44032,44033,44036,44039,44040,44041,44042,44048,44049,44050,44051,44052,44053,44054,44055,44057,44058,44059,44060,44061,44064,44068,44076,44077,44079,44080,44081,44088,44089,44092,44096,44107,44109,44116,44120,44124,44144,44145,44148,44151,44152,44154,44160,44161,44163,44164,44165,44166,44169,44170,44171,44172,44176,44180,44188,44189,44191,44192,44193,44200,44201,44202,44204,44207,44208,44216,44217,44219,44220,44221,44225,44228,44232,44236,44245,44247,44256,44257,44260,44263,44264,44266,44268,44271,44272,44273,44275,44277,44278,44284,44285,44288,44292,44294,52994,52995,52997,52998,52999,53001,53002,53003,53004,53005,53006,53007,53010,53012,53014,53015,53016,53017,53018,53019,53021,53022,53023,53025,53026,53027,null,null,null,null,null,null,53029,53030,53031,53032,53033,53034,53035,53038,53042,53043,53044,53045,53046,53047,53049,53050,53051,53052,53053,53054,53055,53056,53057,53058,53059,53060,null,null,null,null,null,null,53061,53062,53063,53064,53065,53066,53067,53068,53069,53070,53071,53072,53073,53074,53075,53078,53079,53081,53082,53083,53085,53086,53087,53088,53089,53090,53091,53094,53096,53098,53099,53100,44300,44301,44303,44305,44312,44316,44320,44329,44332,44333,44340,44341,44344,44348,44356,44357,44359,44361,44368,44372,44376,44385,44387,44396,44397,44400,44403,44404,44405,44406,44411,44412,44413,44415,44417,44418,44424,44425,44428,44432,44444,44445,44452,44471,44480,44481,44484,44488,44496,44497,44499,44508,44512,44516,44536,44537,44540,44543,44544,44545,44552,44553,44555,44557,44564,44592,44593,44596,44599,44600,44602,44608,44609,44611,44613,44614,44618,44620,44621,44622,44624,44628,44630,44636,44637,44639,44640,44641,44645,44648,44649,44652,44656,44664,53101,53102,53103,53106,53107,53109,53110,53111,53113,53114,53115,53116,53117,53118,53119,53121,53122,53123,53124,53126,53127,53128,53129,53130,53131,53133,null,null,null,null,null,null,53134,53135,53136,53137,53138,53139,53140,53141,53142,53143,53144,53145,53146,53147,53148,53149,53150,53151,53152,53154,53155,53156,53157,53158,53159,53161,null,null,null,null,null,null,53162,53163,53164,53165,53166,53167,53169,53170,53171,53172,53173,53174,53175,53176,53177,53178,53179,53180,53181,53182,53183,53184,53185,53186,53187,53189,53190,53191,53192,53193,53194,53195,44665,44667,44668,44669,44676,44677,44684,44732,44733,44734,44736,44740,44748,44749,44751,44752,44753,44760,44761,44764,44776,44779,44781,44788,44792,44796,44807,44808,44813,44816,44844,44845,44848,44850,44852,44860,44861,44863,44865,44866,44867,44872,44873,44880,44892,44893,44900,44901,44921,44928,44932,44936,44944,44945,44949,44956,44984,44985,44988,44992,44999,45e3,45001,45003,45005,45006,45012,45020,45032,45033,45040,45041,45044,45048,45056,45057,45060,45068,45072,45076,45084,45085,45096,45124,45125,45128,45130,45132,45134,45139,45140,45141,45143,45145,53196,53197,53198,53199,53200,53201,53202,53203,53204,53205,53206,53207,53208,53209,53210,53211,53212,53213,53214,53215,53218,53219,53221,53222,53223,53225,null,null,null,null,null,null,53226,53227,53228,53229,53230,53231,53234,53236,53238,53239,53240,53241,53242,53243,53245,53246,53247,53249,53250,53251,53253,53254,53255,53256,53257,53258,null,null,null,null,null,null,53259,53260,53261,53262,53263,53264,53266,53267,53268,53269,53270,53271,53273,53274,53275,53276,53277,53278,53279,53280,53281,53282,53283,53284,53285,53286,53287,53288,53289,53290,53291,53292,45149,45180,45181,45184,45188,45196,45197,45199,45201,45208,45209,45210,45212,45215,45216,45217,45218,45224,45225,45227,45228,45229,45230,45231,45233,45235,45236,45237,45240,45244,45252,45253,45255,45256,45257,45264,45265,45268,45272,45280,45285,45320,45321,45323,45324,45328,45330,45331,45336,45337,45339,45340,45341,45347,45348,45349,45352,45356,45364,45365,45367,45368,45369,45376,45377,45380,45384,45392,45393,45396,45397,45400,45404,45408,45432,45433,45436,45440,45442,45448,45449,45451,45453,45458,45459,45460,45464,45468,45480,45516,45520,45524,45532,45533,53294,53295,53296,53297,53298,53299,53302,53303,53305,53306,53307,53309,53310,53311,53312,53313,53314,53315,53318,53320,53322,53323,53324,53325,53326,53327,null,null,null,null,null,null,53329,53330,53331,53333,53334,53335,53337,53338,53339,53340,53341,53342,53343,53345,53346,53347,53348,53349,53350,53351,53352,53353,53354,53355,53358,53359,null,null,null,null,null,null,53361,53362,53363,53365,53366,53367,53368,53369,53370,53371,53374,53375,53376,53378,53379,53380,53381,53382,53383,53384,53385,53386,53387,53388,53389,53390,53391,53392,53393,53394,53395,53396,45535,45544,45545,45548,45552,45561,45563,45565,45572,45573,45576,45579,45580,45588,45589,45591,45593,45600,45620,45628,45656,45660,45664,45672,45673,45684,45685,45692,45700,45701,45705,45712,45713,45716,45720,45721,45722,45728,45729,45731,45733,45734,45738,45740,45744,45748,45768,45769,45772,45776,45778,45784,45785,45787,45789,45794,45796,45797,45798,45800,45803,45804,45805,45806,45807,45811,45812,45813,45815,45816,45817,45818,45819,45823,45824,45825,45828,45832,45840,45841,45843,45844,45845,45852,45908,45909,45910,45912,45915,45916,45918,45919,45924,45925,53397,53398,53399,53400,53401,53402,53403,53404,53405,53406,53407,53408,53409,53410,53411,53414,53415,53417,53418,53419,53421,53422,53423,53424,53425,53426,null,null,null,null,null,null,53427,53430,53432,53434,53435,53436,53437,53438,53439,53442,53443,53445,53446,53447,53450,53451,53452,53453,53454,53455,53458,53462,53463,53464,53465,53466,null,null,null,null,null,null,53467,53470,53471,53473,53474,53475,53477,53478,53479,53480,53481,53482,53483,53486,53490,53491,53492,53493,53494,53495,53497,53498,53499,53500,53501,53502,53503,53504,53505,53506,53507,53508,45927,45929,45931,45934,45936,45937,45940,45944,45952,45953,45955,45956,45957,45964,45968,45972,45984,45985,45992,45996,46020,46021,46024,46027,46028,46030,46032,46036,46037,46039,46041,46043,46045,46048,46052,46056,46076,46096,46104,46108,46112,46120,46121,46123,46132,46160,46161,46164,46168,46176,46177,46179,46181,46188,46208,46216,46237,46244,46248,46252,46261,46263,46265,46272,46276,46280,46288,46293,46300,46301,46304,46307,46308,46310,46316,46317,46319,46321,46328,46356,46357,46360,46363,46364,46372,46373,46375,46376,46377,46378,46384,46385,46388,46392,53509,53510,53511,53512,53513,53514,53515,53516,53518,53519,53520,53521,53522,53523,53524,53525,53526,53527,53528,53529,53530,53531,53532,53533,53534,53535,null,null,null,null,null,null,53536,53537,53538,53539,53540,53541,53542,53543,53544,53545,53546,53547,53548,53549,53550,53551,53554,53555,53557,53558,53559,53561,53563,53564,53565,53566,null,null,null,null,null,null,53567,53570,53574,53575,53576,53577,53578,53579,53582,53583,53585,53586,53587,53589,53590,53591,53592,53593,53594,53595,53598,53600,53602,53603,53604,53605,53606,53607,53609,53610,53611,53613,46400,46401,46403,46404,46405,46411,46412,46413,46416,46420,46428,46429,46431,46432,46433,46496,46497,46500,46504,46506,46507,46512,46513,46515,46516,46517,46523,46524,46525,46528,46532,46540,46541,46543,46544,46545,46552,46572,46608,46609,46612,46616,46629,46636,46644,46664,46692,46696,46748,46749,46752,46756,46763,46764,46769,46804,46832,46836,46840,46848,46849,46853,46888,46889,46892,46895,46896,46904,46905,46907,46916,46920,46924,46932,46933,46944,46948,46952,46960,46961,46963,46965,46972,46973,46976,46980,46988,46989,46991,46992,46993,46994,46998,46999,53614,53615,53616,53617,53618,53619,53620,53621,53622,53623,53624,53625,53626,53627,53629,53630,53631,53632,53633,53634,53635,53637,53638,53639,53641,53642,null,null,null,null,null,null,53643,53644,53645,53646,53647,53648,53649,53650,53651,53652,53653,53654,53655,53656,53657,53658,53659,53660,53661,53662,53663,53666,53667,53669,53670,53671,null,null,null,null,null,null,53673,53674,53675,53676,53677,53678,53679,53682,53684,53686,53687,53688,53689,53691,53693,53694,53695,53697,53698,53699,53700,53701,53702,53703,53704,53705,53706,53707,53708,53709,53710,53711,47e3,47001,47004,47008,47016,47017,47019,47020,47021,47028,47029,47032,47047,47049,47084,47085,47088,47092,47100,47101,47103,47104,47105,47111,47112,47113,47116,47120,47128,47129,47131,47133,47140,47141,47144,47148,47156,47157,47159,47160,47161,47168,47172,47185,47187,47196,47197,47200,47204,47212,47213,47215,47217,47224,47228,47245,47272,47280,47284,47288,47296,47297,47299,47301,47308,47312,47316,47325,47327,47329,47336,47337,47340,47344,47352,47353,47355,47357,47364,47384,47392,47420,47421,47424,47428,47436,47439,47441,47448,47449,47452,47456,47464,47465,53712,53713,53714,53715,53716,53717,53718,53719,53721,53722,53723,53724,53725,53726,53727,53728,53729,53730,53731,53732,53733,53734,53735,53736,53737,53738,null,null,null,null,null,null,53739,53740,53741,53742,53743,53744,53745,53746,53747,53749,53750,53751,53753,53754,53755,53756,53757,53758,53759,53760,53761,53762,53763,53764,53765,53766,null,null,null,null,null,null,53768,53770,53771,53772,53773,53774,53775,53777,53778,53779,53780,53781,53782,53783,53784,53785,53786,53787,53788,53789,53790,53791,53792,53793,53794,53795,53796,53797,53798,53799,53800,53801,47467,47469,47476,47477,47480,47484,47492,47493,47495,47497,47498,47501,47502,47532,47533,47536,47540,47548,47549,47551,47553,47560,47561,47564,47566,47567,47568,47569,47570,47576,47577,47579,47581,47582,47585,47587,47588,47589,47592,47596,47604,47605,47607,47608,47609,47610,47616,47617,47624,47637,47672,47673,47676,47680,47682,47688,47689,47691,47693,47694,47699,47700,47701,47704,47708,47716,47717,47719,47720,47721,47728,47729,47732,47736,47747,47748,47749,47751,47756,47784,47785,47787,47788,47792,47794,47800,47801,47803,47805,47812,47816,47832,47833,47868,53802,53803,53806,53807,53809,53810,53811,53813,53814,53815,53816,53817,53818,53819,53822,53824,53826,53827,53828,53829,53830,53831,53833,53834,53835,53836,null,null,null,null,null,null,53837,53838,53839,53840,53841,53842,53843,53844,53845,53846,53847,53848,53849,53850,53851,53853,53854,53855,53856,53857,53858,53859,53861,53862,53863,53864,null,null,null,null,null,null,53865,53866,53867,53868,53869,53870,53871,53872,53873,53874,53875,53876,53877,53878,53879,53880,53881,53882,53883,53884,53885,53886,53887,53890,53891,53893,53894,53895,53897,53898,53899,53900,47872,47876,47885,47887,47889,47896,47900,47904,47913,47915,47924,47925,47926,47928,47931,47932,47933,47934,47940,47941,47943,47945,47949,47951,47952,47956,47960,47969,47971,47980,48008,48012,48016,48036,48040,48044,48052,48055,48064,48068,48072,48080,48083,48120,48121,48124,48127,48128,48130,48136,48137,48139,48140,48141,48143,48145,48148,48149,48150,48151,48152,48155,48156,48157,48158,48159,48164,48165,48167,48169,48173,48176,48177,48180,48184,48192,48193,48195,48196,48197,48201,48204,48205,48208,48221,48260,48261,48264,48267,48268,48270,48276,48277,48279,53901,53902,53903,53906,53907,53908,53910,53911,53912,53913,53914,53915,53917,53918,53919,53921,53922,53923,53925,53926,53927,53928,53929,53930,53931,53933,null,null,null,null,null,null,53934,53935,53936,53938,53939,53940,53941,53942,53943,53946,53947,53949,53950,53953,53955,53956,53957,53958,53959,53962,53964,53965,53966,53967,53968,53969,null,null,null,null,null,null,53970,53971,53973,53974,53975,53977,53978,53979,53981,53982,53983,53984,53985,53986,53987,53990,53991,53992,53993,53994,53995,53996,53997,53998,53999,54002,54003,54005,54006,54007,54009,54010,48281,48282,48288,48289,48292,48295,48296,48304,48305,48307,48308,48309,48316,48317,48320,48324,48333,48335,48336,48337,48341,48344,48348,48372,48373,48374,48376,48380,48388,48389,48391,48393,48400,48404,48420,48428,48448,48456,48457,48460,48464,48472,48473,48484,48488,48512,48513,48516,48519,48520,48521,48522,48528,48529,48531,48533,48537,48538,48540,48548,48560,48568,48596,48597,48600,48604,48617,48624,48628,48632,48640,48643,48645,48652,48653,48656,48660,48668,48669,48671,48708,48709,48712,48716,48718,48724,48725,48727,48729,48730,48731,48736,48737,48740,54011,54012,54013,54014,54015,54018,54020,54022,54023,54024,54025,54026,54027,54031,54033,54034,54035,54037,54039,54040,54041,54042,54043,54046,54050,54051,null,null,null,null,null,null,54052,54054,54055,54058,54059,54061,54062,54063,54065,54066,54067,54068,54069,54070,54071,54074,54078,54079,54080,54081,54082,54083,54086,54087,54088,54089,null,null,null,null,null,null,54090,54091,54092,54093,54094,54095,54096,54097,54098,54099,54100,54101,54102,54103,54104,54105,54106,54107,54108,54109,54110,54111,54112,54113,54114,54115,54116,54117,54118,54119,54120,54121,48744,48746,48752,48753,48755,48756,48757,48763,48764,48765,48768,48772,48780,48781,48783,48784,48785,48792,48793,48808,48848,48849,48852,48855,48856,48864,48867,48868,48869,48876,48897,48904,48905,48920,48921,48923,48924,48925,48960,48961,48964,48968,48976,48977,48981,49044,49072,49093,49100,49101,49104,49108,49116,49119,49121,49212,49233,49240,49244,49248,49256,49257,49296,49297,49300,49304,49312,49313,49315,49317,49324,49325,49327,49328,49331,49332,49333,49334,49340,49341,49343,49344,49345,49349,49352,49353,49356,49360,49368,49369,49371,49372,49373,49380,54122,54123,54124,54125,54126,54127,54128,54129,54130,54131,54132,54133,54134,54135,54136,54137,54138,54139,54142,54143,54145,54146,54147,54149,54150,54151,null,null,null,null,null,null,54152,54153,54154,54155,54158,54162,54163,54164,54165,54166,54167,54170,54171,54173,54174,54175,54177,54178,54179,54180,54181,54182,54183,54186,54188,54190,null,null,null,null,null,null,54191,54192,54193,54194,54195,54197,54198,54199,54201,54202,54203,54205,54206,54207,54208,54209,54210,54211,54214,54215,54218,54219,54220,54221,54222,54223,54225,54226,54227,54228,54229,54230,49381,49384,49388,49396,49397,49399,49401,49408,49412,49416,49424,49429,49436,49437,49438,49439,49440,49443,49444,49446,49447,49452,49453,49455,49456,49457,49462,49464,49465,49468,49472,49480,49481,49483,49484,49485,49492,49493,49496,49500,49508,49509,49511,49512,49513,49520,49524,49528,49541,49548,49549,49550,49552,49556,49558,49564,49565,49567,49569,49573,49576,49577,49580,49584,49597,49604,49608,49612,49620,49623,49624,49632,49636,49640,49648,49649,49651,49660,49661,49664,49668,49676,49677,49679,49681,49688,49689,49692,49695,49696,49704,49705,49707,49709,54231,54233,54234,54235,54236,54237,54238,54239,54240,54242,54244,54245,54246,54247,54248,54249,54250,54251,54254,54255,54257,54258,54259,54261,54262,54263,null,null,null,null,null,null,54264,54265,54266,54267,54270,54272,54274,54275,54276,54277,54278,54279,54281,54282,54283,54284,54285,54286,54287,54288,54289,54290,54291,54292,54293,54294,null,null,null,null,null,null,54295,54296,54297,54298,54299,54300,54302,54303,54304,54305,54306,54307,54308,54309,54310,54311,54312,54313,54314,54315,54316,54317,54318,54319,54320,54321,54322,54323,54324,54325,54326,54327,49711,49713,49714,49716,49736,49744,49745,49748,49752,49760,49765,49772,49773,49776,49780,49788,49789,49791,49793,49800,49801,49808,49816,49819,49821,49828,49829,49832,49836,49837,49844,49845,49847,49849,49884,49885,49888,49891,49892,49899,49900,49901,49903,49905,49910,49912,49913,49915,49916,49920,49928,49929,49932,49933,49939,49940,49941,49944,49948,49956,49957,49960,49961,49989,50024,50025,50028,50032,50034,50040,50041,50044,50045,50052,50056,50060,50112,50136,50137,50140,50143,50144,50146,50152,50153,50157,50164,50165,50168,50184,50192,50212,50220,50224,54328,54329,54330,54331,54332,54333,54334,54335,54337,54338,54339,54341,54342,54343,54344,54345,54346,54347,54348,54349,54350,54351,54352,54353,54354,54355,null,null,null,null,null,null,54356,54357,54358,54359,54360,54361,54362,54363,54365,54366,54367,54369,54370,54371,54373,54374,54375,54376,54377,54378,54379,54380,54382,54384,54385,54386,null,null,null,null,null,null,54387,54388,54389,54390,54391,54394,54395,54397,54398,54401,54403,54404,54405,54406,54407,54410,54412,54414,54415,54416,54417,54418,54419,54421,54422,54423,54424,54425,54426,54427,54428,54429,50228,50236,50237,50248,50276,50277,50280,50284,50292,50293,50297,50304,50324,50332,50360,50364,50409,50416,50417,50420,50424,50426,50431,50432,50433,50444,50448,50452,50460,50472,50473,50476,50480,50488,50489,50491,50493,50500,50501,50504,50505,50506,50508,50509,50510,50515,50516,50517,50519,50520,50521,50525,50526,50528,50529,50532,50536,50544,50545,50547,50548,50549,50556,50557,50560,50564,50567,50572,50573,50575,50577,50581,50583,50584,50588,50592,50601,50612,50613,50616,50617,50619,50620,50621,50622,50628,50629,50630,50631,50632,50633,50634,50636,50638,54430,54431,54432,54433,54434,54435,54436,54437,54438,54439,54440,54442,54443,54444,54445,54446,54447,54448,54449,54450,54451,54452,54453,54454,54455,54456,null,null,null,null,null,null,54457,54458,54459,54460,54461,54462,54463,54464,54465,54466,54467,54468,54469,54470,54471,54472,54473,54474,54475,54477,54478,54479,54481,54482,54483,54485,null,null,null,null,null,null,54486,54487,54488,54489,54490,54491,54493,54494,54496,54497,54498,54499,54500,54501,54502,54503,54505,54506,54507,54509,54510,54511,54513,54514,54515,54516,54517,54518,54519,54521,54522,54524,50640,50641,50644,50648,50656,50657,50659,50661,50668,50669,50670,50672,50676,50678,50679,50684,50685,50686,50687,50688,50689,50693,50694,50695,50696,50700,50704,50712,50713,50715,50716,50724,50725,50728,50732,50733,50734,50736,50739,50740,50741,50743,50745,50747,50752,50753,50756,50760,50768,50769,50771,50772,50773,50780,50781,50784,50796,50799,50801,50808,50809,50812,50816,50824,50825,50827,50829,50836,50837,50840,50844,50852,50853,50855,50857,50864,50865,50868,50872,50873,50874,50880,50881,50883,50885,50892,50893,50896,50900,50908,50909,50912,50913,50920,54526,54527,54528,54529,54530,54531,54533,54534,54535,54537,54538,54539,54541,54542,54543,54544,54545,54546,54547,54550,54552,54553,54554,54555,54556,54557,null,null,null,null,null,null,54558,54559,54560,54561,54562,54563,54564,54565,54566,54567,54568,54569,54570,54571,54572,54573,54574,54575,54576,54577,54578,54579,54580,54581,54582,54583,null,null,null,null,null,null,54584,54585,54586,54587,54590,54591,54593,54594,54595,54597,54598,54599,54600,54601,54602,54603,54606,54608,54610,54611,54612,54613,54614,54615,54618,54619,54621,54622,54623,54625,54626,54627,50921,50924,50928,50936,50937,50941,50948,50949,50952,50956,50964,50965,50967,50969,50976,50977,50980,50984,50992,50993,50995,50997,50999,51004,51005,51008,51012,51018,51020,51021,51023,51025,51026,51027,51028,51029,51030,51031,51032,51036,51040,51048,51051,51060,51061,51064,51068,51069,51070,51075,51076,51077,51079,51080,51081,51082,51086,51088,51089,51092,51094,51095,51096,51098,51104,51105,51107,51108,51109,51110,51116,51117,51120,51124,51132,51133,51135,51136,51137,51144,51145,51148,51150,51152,51160,51165,51172,51176,51180,51200,51201,51204,51208,51210,54628,54630,54631,54634,54636,54638,54639,54640,54641,54642,54643,54646,54647,54649,54650,54651,54653,54654,54655,54656,54657,54658,54659,54662,54666,54667,null,null,null,null,null,null,54668,54669,54670,54671,54673,54674,54675,54676,54677,54678,54679,54680,54681,54682,54683,54684,54685,54686,54687,54688,54689,54690,54691,54692,54694,54695,null,null,null,null,null,null,54696,54697,54698,54699,54700,54701,54702,54703,54704,54705,54706,54707,54708,54709,54710,54711,54712,54713,54714,54715,54716,54717,54718,54719,54720,54721,54722,54723,54724,54725,54726,54727,51216,51217,51219,51221,51222,51228,51229,51232,51236,51244,51245,51247,51249,51256,51260,51264,51272,51273,51276,51277,51284,51312,51313,51316,51320,51322,51328,51329,51331,51333,51334,51335,51339,51340,51341,51348,51357,51359,51361,51368,51388,51389,51396,51400,51404,51412,51413,51415,51417,51424,51425,51428,51445,51452,51453,51456,51460,51461,51462,51468,51469,51471,51473,51480,51500,51508,51536,51537,51540,51544,51552,51553,51555,51564,51568,51572,51580,51592,51593,51596,51600,51608,51609,51611,51613,51648,51649,51652,51655,51656,51658,51664,51665,51667,54730,54731,54733,54734,54735,54737,54739,54740,54741,54742,54743,54746,54748,54750,54751,54752,54753,54754,54755,54758,54759,54761,54762,54763,54765,54766,null,null,null,null,null,null,54767,54768,54769,54770,54771,54774,54776,54778,54779,54780,54781,54782,54783,54786,54787,54789,54790,54791,54793,54794,54795,54796,54797,54798,54799,54802,null,null,null,null,null,null,54806,54807,54808,54809,54810,54811,54813,54814,54815,54817,54818,54819,54821,54822,54823,54824,54825,54826,54827,54828,54830,54831,54832,54833,54834,54835,54836,54837,54838,54839,54842,54843,51669,51670,51673,51674,51676,51677,51680,51682,51684,51687,51692,51693,51695,51696,51697,51704,51705,51708,51712,51720,51721,51723,51724,51725,51732,51736,51753,51788,51789,51792,51796,51804,51805,51807,51808,51809,51816,51837,51844,51864,51900,51901,51904,51908,51916,51917,51919,51921,51923,51928,51929,51936,51948,51956,51976,51984,51988,51992,52e3,52001,52033,52040,52041,52044,52048,52056,52057,52061,52068,52088,52089,52124,52152,52180,52196,52199,52201,52236,52237,52240,52244,52252,52253,52257,52258,52263,52264,52265,52268,52270,52272,52280,52281,52283,54845,54846,54847,54849,54850,54851,54852,54854,54855,54858,54860,54862,54863,54864,54866,54867,54870,54871,54873,54874,54875,54877,54878,54879,54880,54881,null,null,null,null,null,null,54882,54883,54884,54885,54886,54888,54890,54891,54892,54893,54894,54895,54898,54899,54901,54902,54903,54904,54905,54906,54907,54908,54909,54910,54911,54912,null,null,null,null,null,null,54913,54914,54916,54918,54919,54920,54921,54922,54923,54926,54927,54929,54930,54931,54933,54934,54935,54936,54937,54938,54939,54940,54942,54944,54946,54947,54948,54949,54950,54951,54953,54954,52284,52285,52286,52292,52293,52296,52300,52308,52309,52311,52312,52313,52320,52324,52326,52328,52336,52341,52376,52377,52380,52384,52392,52393,52395,52396,52397,52404,52405,52408,52412,52420,52421,52423,52425,52432,52436,52452,52460,52464,52481,52488,52489,52492,52496,52504,52505,52507,52509,52516,52520,52524,52537,52572,52576,52580,52588,52589,52591,52593,52600,52616,52628,52629,52632,52636,52644,52645,52647,52649,52656,52676,52684,52688,52712,52716,52720,52728,52729,52731,52733,52740,52744,52748,52756,52761,52768,52769,52772,52776,52784,52785,52787,52789,54955,54957,54958,54959,54961,54962,54963,54964,54965,54966,54967,54968,54970,54972,54973,54974,54975,54976,54977,54978,54979,54982,54983,54985,54986,54987,null,null,null,null,null,null,54989,54990,54991,54992,54994,54995,54997,54998,55e3,55002,55003,55004,55005,55006,55007,55009,55010,55011,55013,55014,55015,55017,55018,55019,55020,55021,null,null,null,null,null,null,55022,55023,55025,55026,55027,55028,55030,55031,55032,55033,55034,55035,55038,55039,55041,55042,55043,55045,55046,55047,55048,55049,55050,55051,55052,55053,55054,55055,55056,55058,55059,55060,52824,52825,52828,52831,52832,52833,52840,52841,52843,52845,52852,52853,52856,52860,52868,52869,52871,52873,52880,52881,52884,52888,52896,52897,52899,52900,52901,52908,52909,52929,52964,52965,52968,52971,52972,52980,52981,52983,52984,52985,52992,52993,52996,53e3,53008,53009,53011,53013,53020,53024,53028,53036,53037,53039,53040,53041,53048,53076,53077,53080,53084,53092,53093,53095,53097,53104,53105,53108,53112,53120,53125,53132,53153,53160,53168,53188,53216,53217,53220,53224,53232,53233,53235,53237,53244,53248,53252,53265,53272,53293,53300,53301,53304,53308,55061,55062,55063,55066,55067,55069,55070,55071,55073,55074,55075,55076,55077,55078,55079,55082,55084,55086,55087,55088,55089,55090,55091,55094,55095,55097,null,null,null,null,null,null,55098,55099,55101,55102,55103,55104,55105,55106,55107,55109,55110,55112,55114,55115,55116,55117,55118,55119,55122,55123,55125,55130,55131,55132,55133,55134,null,null,null,null,null,null,55135,55138,55140,55142,55143,55144,55146,55147,55149,55150,55151,55153,55154,55155,55157,55158,55159,55160,55161,55162,55163,55166,55167,55168,55170,55171,55172,55173,55174,55175,55178,55179,53316,53317,53319,53321,53328,53332,53336,53344,53356,53357,53360,53364,53372,53373,53377,53412,53413,53416,53420,53428,53429,53431,53433,53440,53441,53444,53448,53449,53456,53457,53459,53460,53461,53468,53469,53472,53476,53484,53485,53487,53488,53489,53496,53517,53552,53553,53556,53560,53562,53568,53569,53571,53572,53573,53580,53581,53584,53588,53596,53597,53599,53601,53608,53612,53628,53636,53640,53664,53665,53668,53672,53680,53681,53683,53685,53690,53692,53696,53720,53748,53752,53767,53769,53776,53804,53805,53808,53812,53820,53821,53823,53825,53832,53852,55181,55182,55183,55185,55186,55187,55188,55189,55190,55191,55194,55196,55198,55199,55200,55201,55202,55203,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,53860,53888,53889,53892,53896,53904,53905,53909,53916,53920,53924,53932,53937,53944,53945,53948,53951,53952,53954,53960,53961,53963,53972,53976,53980,53988,53989,54e3,54001,54004,54008,54016,54017,54019,54021,54028,54029,54030,54032,54036,54038,54044,54045,54047,54048,54049,54053,54056,54057,54060,54064,54072,54073,54075,54076,54077,54084,54085,54140,54141,54144,54148,54156,54157,54159,54160,54161,54168,54169,54172,54176,54184,54185,54187,54189,54196,54200,54204,54212,54213,54216,54217,54224,54232,54241,54243,54252,54253,54256,54260,54268,54269,54271,54273,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,54280,54301,54336,54340,54364,54368,54372,54381,54383,54392,54393,54396,54399,54400,54402,54408,54409,54411,54413,54420,54441,54476,54480,54484,54492,54495,54504,54508,54512,54520,54523,54525,54532,54536,54540,54548,54549,54551,54588,54589,54592,54596,54604,54605,54607,54609,54616,54617,54620,54624,54629,54632,54633,54635,54637,54644,54645,54648,54652,54660,54661,54663,54664,54665,54672,54693,54728,54729,54732,54736,54738,54744,54745,54747,54749,54756,54757,54760,54764,54772,54773,54775,54777,54784,54785,54788,54792,54800,54801,54803,54804,54805,54812,54816,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,54820,54829,54840,54841,54844,54848,54853,54856,54857,54859,54861,54865,54868,54869,54872,54876,54887,54889,54896,54897,54900,54915,54917,54924,54925,54928,54932,54941,54943,54945,54952,54956,54960,54969,54971,54980,54981,54984,54988,54993,54996,54999,55001,55008,55012,55016,55024,55029,55036,55037,55040,55044,55057,55064,55065,55068,55072,55080,55081,55083,55085,55092,55093,55096,55100,55108,55111,55113,55120,55121,55124,55126,55127,55128,55129,55136,55137,55139,55141,55145,55148,55152,55156,55164,55165,55169,55176,55177,55180,55184,55192,55193,55195,55197,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,20285,20339,20551,20729,21152,21487,21621,21733,22025,23233,23478,26247,26550,26551,26607,27468,29634,30146,31292,33499,33540,34903,34952,35382,36040,36303,36603,36838,39381,21051,21364,21508,24682,24932,27580,29647,33050,35258,35282,38307,20355,21002,22718,22904,23014,24178,24185,25031,25536,26438,26604,26751,28567,30286,30475,30965,31240,31487,31777,32925,33390,33393,35563,38291,20075,21917,26359,28212,30883,31469,33883,35088,34638,38824,21208,22350,22570,23884,24863,25022,25121,25954,26577,27204,28187,29976,30131,30435,30640,32058,37039,37969,37970,40853,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,21283,23724,30002,32987,37440,38296,21083,22536,23004,23713,23831,24247,24378,24394,24951,27743,30074,30086,31968,32115,32177,32652,33108,33313,34193,35137,35611,37628,38477,40007,20171,20215,20491,20977,22607,24887,24894,24936,25913,27114,28433,30117,30342,30422,31623,33445,33995,63744,37799,38283,21888,23458,22353,63745,31923,32697,37301,20520,21435,23621,24040,25298,25454,25818,25831,28192,28844,31067,36317,36382,63746,36989,37445,37624,20094,20214,20581,24062,24314,24838,26967,33137,34388,36423,37749,39467,20062,20625,26480,26688,20745,21133,21138,27298,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,30652,37392,40660,21163,24623,36850,20552,25001,25581,25802,26684,27268,28608,33160,35233,38548,22533,29309,29356,29956,32121,32365,32937,35211,35700,36963,40273,25225,27770,28500,32080,32570,35363,20860,24906,31645,35609,37463,37772,20140,20435,20510,20670,20742,21185,21197,21375,22384,22659,24218,24465,24950,25004,25806,25964,26223,26299,26356,26775,28039,28805,28913,29855,29861,29898,30169,30828,30956,31455,31478,32069,32147,32789,32831,33051,33686,35686,36629,36885,37857,38915,38968,39514,39912,20418,21843,22586,22865,23395,23622,24760,25106,26690,26800,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,26856,28330,30028,30328,30926,31293,31995,32363,32380,35336,35489,35903,38542,40388,21476,21481,21578,21617,22266,22993,23396,23611,24235,25335,25911,25925,25970,26272,26543,27073,27837,30204,30352,30590,31295,32660,32771,32929,33167,33510,33533,33776,34241,34865,34996,35493,63747,36764,37678,38599,39015,39640,40723,21741,26011,26354,26767,31296,35895,40288,22256,22372,23825,26118,26801,26829,28414,29736,34974,39908,27752,63748,39592,20379,20844,20849,21151,23380,24037,24656,24685,25329,25511,25915,29657,31354,34467,36002,38799,20018,23521,25096,26524,29916,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,31185,33747,35463,35506,36328,36942,37707,38982,24275,27112,34303,37101,63749,20896,23448,23532,24931,26874,27454,28748,29743,29912,31649,32592,33733,35264,36011,38364,39208,21038,24669,25324,36866,20362,20809,21281,22745,24291,26336,27960,28826,29378,29654,31568,33009,37979,21350,25499,32619,20054,20608,22602,22750,24618,24871,25296,27088,39745,23439,32024,32945,36703,20132,20689,21676,21932,23308,23968,24039,25898,25934,26657,27211,29409,30350,30703,32094,32761,33184,34126,34527,36611,36686,37066,39171,39509,39851,19992,20037,20061,20167,20465,20855,21246,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,21312,21475,21477,21646,22036,22389,22434,23495,23943,24272,25084,25304,25937,26552,26601,27083,27472,27590,27628,27714,28317,28792,29399,29590,29699,30655,30697,31350,32127,32777,33276,33285,33290,33503,34914,35635,36092,36544,36881,37041,37476,37558,39378,39493,40169,40407,40860,22283,23616,33738,38816,38827,40628,21531,31384,32676,35033,36557,37089,22528,23624,25496,31391,23470,24339,31353,31406,33422,36524,20518,21048,21240,21367,22280,25331,25458,27402,28099,30519,21413,29527,34152,36470,38357,26426,27331,28528,35437,36556,39243,63750,26231,27512,36020,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,39740,63751,21483,22317,22862,25542,27131,29674,30789,31418,31429,31998,33909,35215,36211,36917,38312,21243,22343,30023,31584,33740,37406,63752,27224,20811,21067,21127,25119,26840,26997,38553,20677,21156,21220,25027,26020,26681,27135,29822,31563,33465,33771,35250,35641,36817,39241,63753,20170,22935,25810,26129,27278,29748,31105,31165,33449,34942,34943,35167,63754,37670,20235,21450,24613,25201,27762,32026,32102,20120,20834,30684,32943,20225,20238,20854,20864,21980,22120,22331,22522,22524,22804,22855,22931,23492,23696,23822,24049,24190,24524,25216,26071,26083,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,26398,26399,26462,26827,26820,27231,27450,27683,27773,27778,28103,29592,29734,29738,29826,29859,30072,30079,30849,30959,31041,31047,31048,31098,31637,32e3,32186,32648,32774,32813,32908,35352,35663,35912,36215,37665,37668,39138,39249,39438,39439,39525,40594,32202,20342,21513,25326,26708,37329,21931,20794,63755,63756,23068,25062,63757,25295,25343,63758,63759,63760,63761,63762,63763,37027,63764,63765,63766,63767,63768,35582,63769,63770,63771,63772,26262,63773,29014,63774,63775,38627,63776,25423,25466,21335,63777,26511,26976,28275,63778,30007,63779,63780,63781,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,32013,63782,63783,34930,22218,23064,63784,63785,63786,63787,63788,20035,63789,20839,22856,26608,32784,63790,22899,24180,25754,31178,24565,24684,25288,25467,23527,23511,21162,63791,22900,24361,24594,63792,63793,63794,29785,63795,63796,63797,63798,63799,63800,39377,63801,63802,63803,63804,63805,63806,63807,63808,63809,63810,63811,28611,63812,63813,33215,36786,24817,63814,63815,33126,63816,63817,23615,63818,63819,63820,63821,63822,63823,63824,63825,23273,35365,26491,32016,63826,63827,63828,63829,63830,63831,33021,63832,63833,23612,27877,21311,28346,22810,33590,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,20025,20150,20294,21934,22296,22727,24406,26039,26086,27264,27573,28237,30701,31471,31774,32222,34507,34962,37170,37723,25787,28606,29562,30136,36948,21846,22349,25018,25812,26311,28129,28251,28525,28601,30192,32835,33213,34113,35203,35527,35674,37663,27795,30035,31572,36367,36957,21776,22530,22616,24162,25095,25758,26848,30070,31958,34739,40680,20195,22408,22382,22823,23565,23729,24118,24453,25140,25825,29619,33274,34955,36024,38538,40667,23429,24503,24755,20498,20992,21040,22294,22581,22615,23566,23648,23798,23947,24230,24466,24764,25361,25481,25623,26691,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,26873,27330,28120,28193,28372,28644,29182,30428,30585,31153,31291,33796,35241,36077,36339,36424,36867,36884,36947,37117,37709,38518,38876,27602,28678,29272,29346,29544,30563,31167,31716,32411,35712,22697,24775,25958,26109,26302,27788,28958,29129,35930,38931,20077,31361,20189,20908,20941,21205,21516,24999,26481,26704,26847,27934,28540,30140,30643,31461,33012,33891,37509,20828,26007,26460,26515,30168,31431,33651,63834,35910,36887,38957,23663,33216,33434,36929,36975,37389,24471,23965,27225,29128,30331,31561,34276,35588,37159,39472,21895,25078,63835,30313,32645,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,34367,34746,35064,37007,63836,27931,28889,29662,32097,33853,63837,37226,39409,63838,20098,21365,27396,27410,28734,29211,34349,40478,21068,36771,23888,25829,25900,27414,28651,31811,32412,34253,35172,35261,25289,33240,34847,24266,26391,28010,29436,29701,29807,34690,37086,20358,23821,24480,33802,20919,25504,30053,20142,20486,20841,20937,26753,27153,31918,31921,31975,33391,35538,36635,37327,20406,20791,21237,21570,24300,24942,25150,26053,27354,28670,31018,34268,34851,38317,39522,39530,40599,40654,21147,26310,27511,28701,31019,36706,38722,24976,25088,25891,28451,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,29001,29833,32244,32879,34030,36646,36899,37706,20925,21015,21155,27916,28872,35010,24265,25986,27566,28610,31806,29557,20196,20278,22265,63839,23738,23994,24604,29618,31533,32666,32718,32838,36894,37428,38646,38728,38936,40801,20363,28583,31150,37300,38583,21214,63840,25736,25796,27347,28510,28696,29200,30439,32769,34310,34396,36335,36613,38706,39791,40442,40565,30860,31103,32160,33737,37636,40575,40595,35542,22751,24324,26407,28711,29903,31840,32894,20769,28712,29282,30922,36034,36058,36084,38647,20102,20698,23534,24278,26009,29134,30274,30637,32842,34044,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,36988,39719,40845,22744,23105,23650,27155,28122,28431,30267,32047,32311,34078,35128,37860,38475,21129,26066,26611,27060,27969,28316,28687,29705,29792,30041,30244,30827,35628,39006,20845,25134,38520,20374,20523,23833,28138,32184,36650,24459,24900,26647,63841,38534,21202,32907,20956,20940,26974,31260,32190,33777,38517,20442,21033,21400,21519,21774,23653,24743,26446,26792,28012,29313,29432,29702,29827,63842,30178,31852,32633,32696,33673,35023,35041,37324,37328,38626,39881,21533,28542,29136,29848,34298,36522,38563,40023,40607,26519,28107,29747,33256,38678,30764,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,31435,31520,31890,25705,29802,30194,30908,30952,39340,39764,40635,23518,24149,28448,33180,33707,37e3,19975,21325,23081,24018,24398,24930,25405,26217,26364,28415,28459,28771,30622,33836,34067,34875,36627,39237,39995,21788,25273,26411,27819,33545,35178,38778,20129,22916,24536,24537,26395,32178,32596,33426,33579,33725,36638,37017,22475,22969,23186,23504,26151,26522,26757,27599,29028,32629,36023,36067,36993,39749,33032,35978,38476,39488,40613,23391,27667,29467,30450,30431,33804,20906,35219,20813,20885,21193,26825,27796,30468,30496,32191,32236,38754,40629,28357,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,34065,20901,21517,21629,26126,26269,26919,28319,30399,30609,33559,33986,34719,37225,37528,40180,34946,20398,20882,21215,22982,24125,24917,25720,25721,26286,26576,27169,27597,27611,29279,29281,29761,30520,30683,32791,33468,33541,35584,35624,35980,26408,27792,29287,30446,30566,31302,40361,27519,27794,22818,26406,33945,21359,22675,22937,24287,25551,26164,26483,28218,29483,31447,33495,37672,21209,24043,25006,25035,25098,25287,25771,26080,26969,27494,27595,28961,29687,30045,32326,33310,33538,34154,35491,36031,38695,40289,22696,40664,20497,21006,21563,21839,25991,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,27766,32010,32011,32862,34442,38272,38639,21247,27797,29289,21619,23194,23614,23883,24396,24494,26410,26806,26979,28220,28228,30473,31859,32654,34183,35598,36855,38753,40692,23735,24758,24845,25003,25935,26107,26108,27665,27887,29599,29641,32225,38292,23494,34588,35600,21085,21338,25293,25615,25778,26420,27192,27850,29632,29854,31636,31893,32283,33162,33334,34180,36843,38649,39361,20276,21322,21453,21467,25292,25644,25856,26001,27075,27886,28504,29677,30036,30242,30436,30460,30928,30971,31020,32070,33324,34784,36820,38930,39151,21187,25300,25765,28196,28497,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,30332,36299,37297,37474,39662,39747,20515,20621,22346,22952,23592,24135,24439,25151,25918,26041,26049,26121,26507,27036,28354,30917,32033,32938,33152,33323,33459,33953,34444,35370,35607,37030,38450,40848,20493,20467,63843,22521,24472,25308,25490,26479,28227,28953,30403,32972,32986,35060,35061,35097,36064,36649,37197,38506,20271,20336,24091,26575,26658,30333,30334,39748,24161,27146,29033,29140,30058,63844,32321,34115,34281,39132,20240,31567,32624,38309,20961,24070,26805,27710,27726,27867,29359,31684,33539,27861,29754,20731,21128,22721,25816,27287,29863,30294,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,30887,34327,38370,38713,63845,21342,24321,35722,36776,36783,37002,21029,30629,40009,40712,19993,20482,20853,23643,24183,26142,26170,26564,26821,28851,29953,30149,31177,31453,36647,39200,39432,20445,22561,22577,23542,26222,27493,27921,28282,28541,29668,29995,33769,35036,35091,35676,36628,20239,20693,21264,21340,23443,24489,26381,31119,33145,33583,34068,35079,35206,36665,36667,39333,39954,26412,20086,20472,22857,23553,23791,23792,25447,26834,28925,29090,29739,32299,34028,34562,36898,37586,40179,19981,20184,20463,20613,21078,21103,21542,21648,22496,22827,23142,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,23386,23413,23500,24220,63846,25206,25975,26023,28014,28325,29238,31526,31807,32566,33104,33105,33178,33344,33433,33705,35331,36e3,36070,36091,36212,36282,37096,37340,38428,38468,39385,40167,21271,20998,21545,22132,22707,22868,22894,24575,24996,25198,26128,27774,28954,30406,31881,31966,32027,33452,36033,38640,63847,20315,24343,24447,25282,23849,26379,26842,30844,32323,40300,19989,20633,21269,21290,21329,22915,23138,24199,24754,24970,25161,25209,26e3,26503,27047,27604,27606,27607,27608,27832,63848,29749,30202,30738,30865,31189,31192,31875,32203,32737,32933,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,33086,33218,33778,34586,35048,35513,35692,36027,37145,38750,39131,40763,22188,23338,24428,25996,27315,27567,27996,28657,28693,29277,29613,36007,36051,38971,24977,27703,32856,39425,20045,20107,20123,20181,20282,20284,20351,20447,20735,21490,21496,21766,21987,22235,22763,22882,23057,23531,23546,23556,24051,24107,24473,24605,25448,26012,26031,26614,26619,26797,27515,27801,27863,28195,28681,29509,30722,31038,31040,31072,31169,31721,32023,32114,32902,33293,33678,34001,34503,35039,35408,35422,35613,36060,36198,36781,37034,39164,39391,40605,21066,63849,26388,63850,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,20632,21034,23665,25955,27733,29642,29987,30109,31639,33948,37240,38704,20087,25746,27578,29022,34217,19977,63851,26441,26862,28183,33439,34072,34923,25591,28545,37394,39087,19978,20663,20687,20767,21830,21930,22039,23360,23577,23776,24120,24202,24224,24258,24819,26705,27233,28248,29245,29248,29376,30456,31077,31665,32724,35059,35316,35443,35937,36062,38684,22622,29885,36093,21959,63852,31329,32034,33394,29298,29983,29989,63853,31513,22661,22779,23996,24207,24246,24464,24661,25234,25471,25933,26257,26329,26360,26646,26866,29312,29790,31598,32110,32214,32626,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,32997,33298,34223,35199,35475,36893,37604,40653,40736,22805,22893,24109,24796,26132,26227,26512,27728,28101,28511,30707,30889,33990,37323,37675,20185,20682,20808,21892,23307,23459,25159,25982,26059,28210,29053,29697,29764,29831,29887,30316,31146,32218,32341,32680,33146,33203,33337,34330,34796,35445,36323,36984,37521,37925,39245,39854,21352,23633,26964,27844,27945,28203,33292,34203,35131,35373,35498,38634,40807,21089,26297,27570,32406,34814,36109,38275,38493,25885,28041,29166,63854,22478,22995,23468,24615,24826,25104,26143,26207,29481,29689,30427,30465,31596,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,32854,32882,33125,35488,37266,19990,21218,27506,27927,31237,31545,32048,63855,36016,21484,22063,22609,23477,23567,23569,24034,25152,25475,25620,26157,26803,27836,28040,28335,28703,28836,29138,29990,30095,30094,30233,31505,31712,31787,32032,32057,34092,34157,34311,35380,36877,36961,37045,37559,38902,39479,20439,23660,26463,28049,31903,32396,35606,36118,36895,23403,24061,25613,33984,36956,39137,29575,23435,24730,26494,28126,35359,35494,36865,38924,21047,63856,28753,30862,37782,34928,37335,20462,21463,22013,22234,22402,22781,23234,23432,23723,23744,24101,24833,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,25101,25163,25480,25628,25910,25976,27193,27530,27700,27929,28465,29159,29417,29560,29703,29874,30246,30561,31168,31319,31466,31929,32143,32172,32353,32670,33065,33585,33936,34010,34282,34966,35504,35728,36664,36930,36995,37228,37526,37561,38539,38567,38568,38614,38656,38920,39318,39635,39706,21460,22654,22809,23408,23487,28113,28506,29087,29729,29881,32901,33789,24033,24455,24490,24642,26092,26642,26991,27219,27529,27957,28147,29667,30462,30636,31565,32020,33059,33308,33600,34036,34147,35426,35524,37255,37662,38918,39348,25100,34899,36848,37477,23815,23847,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,23913,29791,33181,34664,28629,25342,32722,35126,35186,19998,20056,20711,21213,21319,25215,26119,32361,34821,38494,20365,21273,22070,22987,23204,23608,23630,23629,24066,24337,24643,26045,26159,26178,26558,26612,29468,30690,31034,32709,33940,33997,35222,35430,35433,35553,35925,35962,22516,23508,24335,24687,25325,26893,27542,28252,29060,31698,34645,35672,36606,39135,39166,20280,20353,20449,21627,23072,23480,24892,26032,26216,29180,30003,31070,32051,33102,33251,33688,34218,34254,34563,35338,36523,36763,63857,36805,22833,23460,23526,24713,23529,23563,24515,27777,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,63858,28145,28683,29978,33455,35574,20160,21313,63859,38617,27663,20126,20420,20818,21854,23077,23784,25105,29273,33469,33706,34558,34905,35357,38463,38597,39187,40201,40285,22538,23731,23997,24132,24801,24853,25569,27138,28197,37122,37716,38990,39952,40823,23433,23736,25353,26191,26696,30524,38593,38797,38996,39839,26017,35585,36555,38332,21813,23721,24022,24245,26263,30284,33780,38343,22739,25276,29390,40232,20208,22830,24591,26171,27523,31207,40230,21395,21696,22467,23830,24859,26326,28079,30861,33406,38552,38724,21380,25212,25494,28082,32266,33099,38989,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,27387,32588,40367,40474,20063,20539,20918,22812,24825,25590,26928,29242,32822,63860,37326,24369,63861,63862,32004,33509,33903,33979,34277,36493,63863,20335,63864,63865,22756,23363,24665,25562,25880,25965,26264,63866,26954,27171,27915,28673,29036,30162,30221,31155,31344,63867,32650,63868,35140,63869,35731,37312,38525,63870,39178,22276,24481,26044,28417,30208,31142,35486,39341,39770,40812,20740,25014,25233,27277,33222,20547,22576,24422,28937,35328,35578,23420,34326,20474,20796,22196,22852,25513,28153,23978,26989,20870,20104,20313,63871,63872,63873,22914,63874,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,63875,27487,27741,63876,29877,30998,63877,33287,33349,33593,36671,36701,63878,39192,63879,63880,63881,20134,63882,22495,24441,26131,63883,63884,30123,32377,35695,63885,36870,39515,22181,22567,23032,23071,23476,63886,24310,63887,63888,25424,25403,63889,26941,27783,27839,28046,28051,28149,28436,63890,28895,28982,29017,63891,29123,29141,63892,30799,30831,63893,31605,32227,63894,32303,63895,34893,36575,63896,63897,63898,37467,63899,40182,63900,63901,63902,24709,28037,63903,29105,63904,63905,38321,21421,63906,63907,63908,26579,63909,28814,28976,29744,33398,33490,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,63910,38331,39653,40573,26308,63911,29121,33865,63912,63913,22603,63914,63915,23992,24433,63916,26144,26254,27001,27054,27704,27891,28214,28481,28634,28699,28719,29008,29151,29552,63917,29787,63918,29908,30408,31310,32403,63919,63920,33521,35424,36814,63921,37704,63922,38681,63923,63924,20034,20522,63925,21e3,21473,26355,27757,28618,29450,30591,31330,33454,34269,34306,63926,35028,35427,35709,35947,63927,37555,63928,38675,38928,20116,20237,20425,20658,21320,21566,21555,21978,22626,22714,22887,23067,23524,24735,63929,25034,25942,26111,26212,26791,27738,28595,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,28879,29100,29522,31613,34568,35492,39986,40711,23627,27779,29508,29577,37434,28331,29797,30239,31337,32277,34314,20800,22725,25793,29934,29973,30320,32705,37013,38605,39252,28198,29926,31401,31402,33253,34521,34680,35355,23113,23436,23451,26785,26880,28003,29609,29715,29740,30871,32233,32747,33048,33109,33694,35916,38446,38929,26352,24448,26106,26505,27754,29579,20525,23043,27498,30702,22806,23916,24013,29477,30031,63930,63931,20709,20985,22575,22829,22934,23002,23525,63932,63933,23970,25303,25622,25747,25854,63934,26332,63935,27208,63936,29183,29796,63937,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,31368,31407,32327,32350,32768,33136,63938,34799,35201,35616,36953,63939,36992,39250,24958,27442,28020,32287,35109,36785,20433,20653,20887,21191,22471,22665,23481,24248,24898,27029,28044,28263,28342,29076,29794,29992,29996,32883,33592,33993,36362,37780,37854,63940,20110,20305,20598,20778,21448,21451,21491,23431,23507,23588,24858,24962,26100,29275,29591,29760,30402,31056,31121,31161,32006,32701,33419,34261,34398,36802,36935,37109,37354,38533,38632,38633,21206,24423,26093,26161,26671,29020,31286,37057,38922,20113,63941,27218,27550,28560,29065,32792,33464,34131,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,36939,38549,38642,38907,34074,39729,20112,29066,38596,20803,21407,21729,22291,22290,22435,23195,23236,23491,24616,24895,25588,27781,27961,28274,28304,29232,29503,29783,33489,34945,36677,36960,63942,38498,39e3,40219,26376,36234,37470,20301,20553,20702,21361,22285,22996,23041,23561,24944,26256,28205,29234,29771,32239,32963,33806,33894,34111,34655,34907,35096,35586,36949,38859,39759,20083,20369,20754,20842,63943,21807,21929,23418,23461,24188,24189,24254,24736,24799,24840,24841,25540,25912,26377,63944,26580,26586,63945,26977,26978,27833,27943,63946,28216,63947,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,28641,29494,29495,63948,29788,30001,63949,30290,63950,63951,32173,33278,33848,35029,35480,35547,35565,36400,36418,36938,36926,36986,37193,37321,37742,63952,63953,22537,63954,27603,32905,32946,63955,63956,20801,22891,23609,63957,63958,28516,29607,32996,36103,63959,37399,38287,63960,63961,63962,63963,32895,25102,28700,32104,34701,63964,22432,24681,24903,27575,35518,37504,38577,20057,21535,28139,34093,38512,38899,39150,25558,27875,37009,20957,25033,33210,40441,20381,20506,20736,23452,24847,25087,25836,26885,27589,30097,30691,32681,33380,34191,34811,34915,35516,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,35696,37291,20108,20197,20234,63965,63966,22839,23016,63967,24050,24347,24411,24609,63968,63969,63970,63971,29246,29669,63972,30064,30157,63973,31227,63974,32780,32819,32900,33505,33617,63975,63976,36029,36019,36999,63977,63978,39156,39180,63979,63980,28727,30410,32714,32716,32764,35610,20154,20161,20995,21360,63981,21693,22240,23035,23493,24341,24525,28270,63982,63983,32106,33589,63984,34451,35469,63985,38765,38775,63986,63987,19968,20314,20350,22777,26085,28322,36920,37808,39353,20219,22764,22922,23001,24641,63988,63989,31252,63990,33615,36035,20837,21316,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,63991,63992,63993,20173,21097,23381,33471,20180,21050,21672,22985,23039,23376,23383,23388,24675,24904,28363,28825,29038,29574,29943,30133,30913,32043,32773,33258,33576,34071,34249,35566,36039,38604,20316,21242,22204,26027,26152,28796,28856,29237,32189,33421,37196,38592,40306,23409,26855,27544,28538,30430,23697,26283,28507,31668,31786,34870,38620,19976,20183,21280,22580,22715,22767,22892,23559,24115,24196,24373,25484,26290,26454,27167,27299,27404,28479,29254,63994,29520,29835,31456,31911,33144,33247,33255,33674,33900,34083,34196,34255,35037,36115,37292,38263,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,38556,20877,21705,22312,23472,25165,26448,26685,26771,28221,28371,28797,32289,35009,36001,36617,40779,40782,29229,31631,35533,37658,20295,20302,20786,21632,22992,24213,25269,26485,26990,27159,27822,28186,29401,29482,30141,31672,32053,33511,33785,33879,34295,35419,36015,36487,36889,37048,38606,40799,21219,21514,23265,23490,25688,25973,28404,29380,63995,30340,31309,31515,31821,32318,32735,33659,35627,36042,36196,36321,36447,36842,36857,36969,37841,20291,20346,20659,20840,20856,21069,21098,22625,22652,22880,23560,23637,24283,24731,25136,26643,27583,27656,28593,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,29006,29728,3e4,30008,30033,30322,31564,31627,31661,31686,32399,35438,36670,36681,37439,37523,37666,37931,38651,39002,39019,39198,20999,25130,25240,27993,30308,31434,31680,32118,21344,23742,24215,28472,28857,31896,38673,39822,40670,25509,25722,34678,19969,20117,20141,20572,20597,21576,22979,23450,24128,24237,24311,24449,24773,25402,25919,25972,26060,26230,26232,26622,26984,27273,27491,27712,28096,28136,28191,28254,28702,28833,29582,29693,30010,30555,30855,31118,31243,31357,31934,32142,33351,35330,35562,35998,37165,37194,37336,37478,37580,37664,38662,38742,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,38748,38914,40718,21046,21137,21884,22564,24093,24351,24716,25552,26799,28639,31085,31532,33229,34234,35069,35576,36420,37261,38500,38555,38717,38988,40778,20430,20806,20939,21161,22066,24340,24427,25514,25805,26089,26177,26362,26361,26397,26781,26839,27133,28437,28526,29031,29157,29226,29866,30522,31062,31066,31199,31264,31381,31895,31967,32068,32368,32903,34299,34468,35412,35519,36249,36481,36896,36973,37347,38459,38613,40165,26063,31751,36275,37827,23384,23562,21330,25305,29469,20519,23447,24478,24752,24939,26837,28121,29742,31278,32066,32156,32305,33131,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,36394,36405,37758,37912,20304,22352,24038,24231,25387,32618,20027,20303,20367,20570,23005,32964,21610,21608,22014,22863,23449,24030,24282,26205,26417,26609,26666,27880,27954,28234,28557,28855,29664,30087,31820,32002,32044,32162,33311,34523,35387,35461,36208,36490,36659,36913,37198,37202,37956,39376,31481,31909,20426,20737,20934,22472,23535,23803,26201,27197,27994,28310,28652,28940,30063,31459,34850,36897,36981,38603,39423,33537,20013,20210,34886,37325,21373,27355,26987,27713,33914,22686,24974,26366,25327,28893,29969,30151,32338,33976,35657,36104,20043,21482,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,21675,22320,22336,24535,25345,25351,25711,25903,26088,26234,26525,26547,27490,27744,27802,28460,30693,30757,31049,31063,32025,32930,33026,33267,33437,33463,34584,35468,63996,36100,36286,36978,30452,31257,31287,32340,32887,21767,21972,22645,25391,25634,26185,26187,26733,27035,27524,27941,28337,29645,29800,29857,30043,30137,30433,30494,30603,31206,32265,32285,33275,34095,34967,35386,36049,36587,36784,36914,37805,38499,38515,38663,20356,21489,23018,23241,24089,26702,29894,30142,31209,31378,33187,34541,36074,36300,36845,26015,26389,63997,22519,28503,32221,36655,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,37878,38598,24501,25074,28548,19988,20376,20511,21449,21983,23919,24046,27425,27492,30923,31642,63998,36425,36554,36974,25417,25662,30528,31364,37679,38015,40810,25776,28591,29158,29864,29914,31428,31762,32386,31922,32408,35738,36106,38013,39184,39244,21049,23519,25830,26413,32046,20717,21443,22649,24920,24921,25082,26028,31449,35730,35734,20489,20513,21109,21809,23100,24288,24432,24884,25950,26124,26166,26274,27085,28356,28466,29462,30241,31379,33081,33369,33750,33980,20661,22512,23488,23528,24425,25505,30758,32181,33756,34081,37319,37365,20874,26613,31574,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,36012,20932,22971,24765,34389,20508,63999,21076,23610,24957,25114,25299,25842,26021,28364,30240,33034,36448,38495,38587,20191,21315,21912,22825,24029,25797,27849,28154,29588,31359,33307,34214,36068,36368,36983,37351,38369,38433,38854,20984,21746,21894,24505,25764,28552,32180,36639,36685,37941,20681,23574,27838,28155,29979,30651,31805,31844,35449,35522,22558,22974,24086,25463,29266,30090,30571,35548,36028,36626,24307,26228,28152,32893,33729,35531,38737,39894,64e3,21059,26367,28053,28399,32224,35558,36910,36958,39636,21021,21119,21736,24980,25220,25307,26786,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,26898,26970,27189,28818,28966,30813,30977,30990,31186,31245,32918,33400,33493,33609,34121,35970,36229,37218,37259,37294,20419,22225,29165,30679,34560,35320,23544,24534,26449,37032,21474,22618,23541,24740,24961,25696,32317,32880,34085,37507,25774,20652,23828,26368,22684,25277,25512,26894,27e3,27166,28267,30394,31179,33467,33833,35535,36264,36861,37138,37195,37276,37648,37656,37786,38619,39478,39949,19985,30044,31069,31482,31569,31689,32302,33988,36441,36468,36600,36880,26149,26943,29763,20986,26414,40668,20805,24544,27798,34802,34909,34935,24756,33205,33795,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,36101,21462,21561,22068,23094,23601,28810,32736,32858,33030,33261,36259,37257,39519,40434,20596,20164,21408,24827,28204,23652,20360,20516,21988,23769,24159,24677,26772,27835,28100,29118,30164,30196,30305,31258,31305,32199,32251,32622,33268,34473,36636,38601,39347,40786,21063,21189,39149,35242,19971,26578,28422,20405,23522,26517,27784,28024,29723,30759,37341,37756,34756,31204,31281,24555,20182,21668,21822,22702,22949,24816,25171,25302,26422,26965,33333,38464,39345,39389,20524,21331,21828,22396,64001,25176,64002,25826,26219,26589,28609,28655,29730,29752,35351,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,37944,21585,22022,22374,24392,24986,27470,28760,28845,32187,35477,22890,33067,25506,30472,32829,36010,22612,25645,27067,23445,24081,28271,64003,34153,20812,21488,22826,24608,24907,27526,27760,27888,31518,32974,33492,36294,37040,39089,64004,25799,28580,25745,25860,20814,21520,22303,35342,24927,26742,64005,30171,31570,32113,36890,22534,27084,33151,35114,36864,38969,20600,22871,22956,25237,36879,39722,24925,29305,38358,22369,23110,24052,25226,25773,25850,26487,27874,27966,29228,29750,30772,32631,33453,36315,38935,21028,22338,26495,29256,29923,36009,36774,37393,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,38442,20843,21485,25420,20329,21764,24726,25943,27803,28031,29260,29437,31255,35207,35997,24429,28558,28921,33192,24846,20415,20559,25153,29255,31687,32232,32745,36941,38829,39449,36022,22378,24179,26544,33805,35413,21536,23318,24163,24290,24330,25987,32954,34109,38281,38491,20296,21253,21261,21263,21638,21754,22275,24067,24598,25243,25265,25429,64006,27873,28006,30129,30770,32990,33071,33502,33889,33970,34957,35090,36875,37610,39165,39825,24133,26292,26333,28689,29190,64007,20469,21117,24426,24915,26451,27161,28418,29922,31080,34920,35961,39111,39108,39491,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,21697,31263,26963,35575,35914,39080,39342,24444,25259,30130,30382,34987,36991,38466,21305,24380,24517,27852,29644,30050,30091,31558,33534,39325,20047,36924,19979,20309,21414,22799,24264,26160,27827,29781,33655,34662,36032,36944,38686,39957,22737,23416,34384,35604,40372,23506,24680,24717,26097,27735,28450,28579,28698,32597,32752,38289,38290,38480,38867,21106,36676,20989,21547,21688,21859,21898,27323,28085,32216,33382,37532,38519,40569,21512,21704,30418,34532,38308,38356,38492,20130,20233,23022,23270,24055,24658,25239,26477,26689,27782,28207,32568,32923,33322,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,64008,64009,38917,20133,20565,21683,22419,22874,23401,23475,25032,26999,28023,28707,34809,35299,35442,35559,36994,39405,39608,21182,26680,20502,24184,26447,33607,34892,20139,21521,22190,29670,37141,38911,39177,39255,39321,22099,22687,34395,35377,25010,27382,29563,36562,27463,38570,39511,22869,29184,36203,38761,20436,23796,24358,25080,26203,27883,28843,29572,29625,29694,30505,30541,32067,32098,32291,33335,34898,64010,36066,37449,39023,23377,31348,34880,38913,23244,20448,21332,22846,23805,25406,28025,29433,33029,33031,33698,37583,38960,20136,20804,21009,22411,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,24418,27842,28366,28677,28752,28847,29074,29673,29801,33610,34722,34913,36872,37026,37795,39336,20846,24407,24800,24935,26291,34137,36426,37295,38795,20046,20114,21628,22741,22778,22909,23733,24359,25142,25160,26122,26215,27627,28009,28111,28246,28408,28564,28640,28649,28765,29392,29733,29786,29920,30355,31068,31946,32286,32993,33446,33899,33983,34382,34399,34676,35703,35946,37804,38912,39013,24785,25110,37239,23130,26127,28151,28222,29759,39746,24573,24794,31503,21700,24344,27742,27859,27946,28888,32005,34425,35340,40251,21270,21644,23301,27194,28779,30069,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,31117,31166,33457,33775,35441,35649,36008,38772,64011,25844,25899,30906,30907,31339,20024,21914,22864,23462,24187,24739,25563,27489,26213,26707,28185,29029,29872,32008,36996,39529,39973,27963,28369,29502,35905,38346,20976,24140,24488,24653,24822,24880,24908,26179,26180,27045,27841,28255,28361,28514,29004,29852,30343,31681,31783,33618,34647,36945,38541,40643,21295,22238,24315,24458,24674,24724,25079,26214,26371,27292,28142,28590,28784,29546,32362,33214,33588,34516,35496,36036,21123,29554,23446,27243,37892,21742,22150,23389,25928,25989,26313,26783,28045,28102,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,29243,32948,37237,39501,20399,20505,21402,21518,21564,21897,21957,24127,24460,26429,29030,29661,36869,21211,21235,22628,22734,28932,29071,29179,34224,35347,26248,34216,21927,26244,29002,33841,21321,21913,27585,24409,24509,25582,26249,28999,35569,36637,40638,20241,25658,28875,30054,34407,24676,35662,40440,20807,20982,21256,27958,33016,40657,26133,27427,28824,30165,21507,23673,32007,35350,27424,27453,27462,21560,24688,27965,32725,33288,20694,20958,21916,22123,22221,23020,23305,24076,24985,24984,25137,26206,26342,29081,29113,29114,29351,31143,31232,32690,35440,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],gb18030:[19970,19972,19973,19974,19983,19986,19991,19999,2e4,20001,20003,20006,20009,20014,20015,20017,20019,20021,20023,20028,20032,20033,20034,20036,20038,20042,20049,20053,20055,20058,20059,20066,20067,20068,20069,20071,20072,20074,20075,20076,20077,20078,20079,20082,20084,20085,20086,20087,20088,20089,20090,20091,20092,20093,20095,20096,20097,20098,20099,20100,20101,20103,20106,20112,20118,20119,20121,20124,20125,20126,20131,20138,20143,20144,20145,20148,20150,20151,20152,20153,20156,20157,20158,20168,20172,20175,20176,20178,20186,20187,20188,20192,20194,20198,20199,20201,20205,20206,20207,20209,20212,20216,20217,20218,20220,20222,20224,20226,20227,20228,20229,20230,20231,20232,20235,20236,20242,20243,20244,20245,20246,20252,20253,20257,20259,20264,20265,20268,20269,20270,20273,20275,20277,20279,20281,20283,20286,20287,20288,20289,20290,20292,20293,20295,20296,20297,20298,20299,20300,20306,20308,20310,20321,20322,20326,20328,20330,20331,20333,20334,20337,20338,20341,20343,20344,20345,20346,20349,20352,20353,20354,20357,20358,20359,20362,20364,20366,20368,20370,20371,20373,20374,20376,20377,20378,20380,20382,20383,20385,20386,20388,20395,20397,20400,20401,20402,20403,20404,20406,20407,20408,20409,20410,20411,20412,20413,20414,20416,20417,20418,20422,20423,20424,20425,20427,20428,20429,20434,20435,20436,20437,20438,20441,20443,20448,20450,20452,20453,20455,20459,20460,20464,20466,20468,20469,20470,20471,20473,20475,20476,20477,20479,20480,20481,20482,20483,20484,20485,20486,20487,20488,20489,20490,20491,20494,20496,20497,20499,20501,20502,20503,20507,20509,20510,20512,20514,20515,20516,20519,20523,20527,20528,20529,20530,20531,20532,20533,20534,20535,20536,20537,20539,20541,20543,20544,20545,20546,20548,20549,20550,20553,20554,20555,20557,20560,20561,20562,20563,20564,20566,20567,20568,20569,20571,20573,20574,20575,20576,20577,20578,20579,20580,20582,20583,20584,20585,20586,20587,20589,20590,20591,20592,20593,20594,20595,20596,20597,20600,20601,20602,20604,20605,20609,20610,20611,20612,20614,20615,20617,20618,20619,20620,20622,20623,20624,20625,20626,20627,20628,20629,20630,20631,20632,20633,20634,20635,20636,20637,20638,20639,20640,20641,20642,20644,20646,20650,20651,20653,20654,20655,20656,20657,20659,20660,20661,20662,20663,20664,20665,20668,20669,20670,20671,20672,20673,20674,20675,20676,20677,20678,20679,20680,20681,20682,20683,20684,20685,20686,20688,20689,20690,20691,20692,20693,20695,20696,20697,20699,20700,20701,20702,20703,20704,20705,20706,20707,20708,20709,20712,20713,20714,20715,20719,20720,20721,20722,20724,20726,20727,20728,20729,20730,20732,20733,20734,20735,20736,20737,20738,20739,20740,20741,20744,20745,20746,20748,20749,20750,20751,20752,20753,20755,20756,20757,20758,20759,20760,20761,20762,20763,20764,20765,20766,20767,20768,20770,20771,20772,20773,20774,20775,20776,20777,20778,20779,20780,20781,20782,20783,20784,20785,20786,20787,20788,20789,20790,20791,20792,20793,20794,20795,20796,20797,20798,20802,20807,20810,20812,20814,20815,20816,20818,20819,20823,20824,20825,20827,20829,20830,20831,20832,20833,20835,20836,20838,20839,20841,20842,20847,20850,20858,20862,20863,20867,20868,20870,20871,20874,20875,20878,20879,20880,20881,20883,20884,20888,20890,20893,20894,20895,20897,20899,20902,20903,20904,20905,20906,20909,20910,20916,20920,20921,20922,20926,20927,20929,20930,20931,20933,20936,20938,20941,20942,20944,20946,20947,20948,20949,20950,20951,20952,20953,20954,20956,20958,20959,20962,20963,20965,20966,20967,20968,20969,20970,20972,20974,20977,20978,20980,20983,20990,20996,20997,21001,21003,21004,21007,21008,21011,21012,21013,21020,21022,21023,21025,21026,21027,21029,21030,21031,21034,21036,21039,21041,21042,21044,21045,21052,21054,21060,21061,21062,21063,21064,21065,21067,21070,21071,21074,21075,21077,21079,21080,21081,21082,21083,21085,21087,21088,21090,21091,21092,21094,21096,21099,21100,21101,21102,21104,21105,21107,21108,21109,21110,21111,21112,21113,21114,21115,21116,21118,21120,21123,21124,21125,21126,21127,21129,21130,21131,21132,21133,21134,21135,21137,21138,21140,21141,21142,21143,21144,21145,21146,21148,21156,21157,21158,21159,21166,21167,21168,21172,21173,21174,21175,21176,21177,21178,21179,21180,21181,21184,21185,21186,21188,21189,21190,21192,21194,21196,21197,21198,21199,21201,21203,21204,21205,21207,21209,21210,21211,21212,21213,21214,21216,21217,21218,21219,21221,21222,21223,21224,21225,21226,21227,21228,21229,21230,21231,21233,21234,21235,21236,21237,21238,21239,21240,21243,21244,21245,21249,21250,21251,21252,21255,21257,21258,21259,21260,21262,21265,21266,21267,21268,21272,21275,21276,21278,21279,21282,21284,21285,21287,21288,21289,21291,21292,21293,21295,21296,21297,21298,21299,21300,21301,21302,21303,21304,21308,21309,21312,21314,21316,21318,21323,21324,21325,21328,21332,21336,21337,21339,21341,21349,21352,21354,21356,21357,21362,21366,21369,21371,21372,21373,21374,21376,21377,21379,21383,21384,21386,21390,21391,21392,21393,21394,21395,21396,21398,21399,21401,21403,21404,21406,21408,21409,21412,21415,21418,21419,21420,21421,21423,21424,21425,21426,21427,21428,21429,21431,21432,21433,21434,21436,21437,21438,21440,21443,21444,21445,21446,21447,21454,21455,21456,21458,21459,21461,21466,21468,21469,21470,21473,21474,21479,21492,21498,21502,21503,21504,21506,21509,21511,21515,21524,21528,21529,21530,21532,21538,21540,21541,21546,21552,21555,21558,21559,21562,21565,21567,21569,21570,21572,21573,21575,21577,21580,21581,21582,21583,21585,21594,21597,21598,21599,21600,21601,21603,21605,21607,21609,21610,21611,21612,21613,21614,21615,21616,21620,21625,21626,21630,21631,21633,21635,21637,21639,21640,21641,21642,21645,21649,21651,21655,21656,21660,21662,21663,21664,21665,21666,21669,21678,21680,21682,21685,21686,21687,21689,21690,21692,21694,21699,21701,21706,21707,21718,21720,21723,21728,21729,21730,21731,21732,21739,21740,21743,21744,21745,21748,21749,21750,21751,21752,21753,21755,21758,21760,21762,21763,21764,21765,21768,21770,21771,21772,21773,21774,21778,21779,21781,21782,21783,21784,21785,21786,21788,21789,21790,21791,21793,21797,21798,21800,21801,21803,21805,21810,21812,21813,21814,21816,21817,21818,21819,21821,21824,21826,21829,21831,21832,21835,21836,21837,21838,21839,21841,21842,21843,21844,21847,21848,21849,21850,21851,21853,21854,21855,21856,21858,21859,21864,21865,21867,21871,21872,21873,21874,21875,21876,21881,21882,21885,21887,21893,21894,21900,21901,21902,21904,21906,21907,21909,21910,21911,21914,21915,21918,21920,21921,21922,21923,21924,21925,21926,21928,21929,21930,21931,21932,21933,21934,21935,21936,21938,21940,21942,21944,21946,21948,21951,21952,21953,21954,21955,21958,21959,21960,21962,21963,21966,21967,21968,21973,21975,21976,21977,21978,21979,21982,21984,21986,21991,21993,21997,21998,22e3,22001,22004,22006,22008,22009,22010,22011,22012,22015,22018,22019,22020,22021,22022,22023,22026,22027,22029,22032,22033,22034,22035,22036,22037,22038,22039,22041,22042,22044,22045,22048,22049,22050,22053,22054,22056,22057,22058,22059,22062,22063,22064,22067,22069,22071,22072,22074,22076,22077,22078,22080,22081,22082,22083,22084,22085,22086,22087,22088,22089,22090,22091,22095,22096,22097,22098,22099,22101,22102,22106,22107,22109,22110,22111,22112,22113,22115,22117,22118,22119,22125,22126,22127,22128,22130,22131,22132,22133,22135,22136,22137,22138,22141,22142,22143,22144,22145,22146,22147,22148,22151,22152,22153,22154,22155,22156,22157,22160,22161,22162,22164,22165,22166,22167,22168,22169,22170,22171,22172,22173,22174,22175,22176,22177,22178,22180,22181,22182,22183,22184,22185,22186,22187,22188,22189,22190,22192,22193,22194,22195,22196,22197,22198,22200,22201,22202,22203,22205,22206,22207,22208,22209,22210,22211,22212,22213,22214,22215,22216,22217,22219,22220,22221,22222,22223,22224,22225,22226,22227,22229,22230,22232,22233,22236,22243,22245,22246,22247,22248,22249,22250,22252,22254,22255,22258,22259,22262,22263,22264,22267,22268,22272,22273,22274,22277,22279,22283,22284,22285,22286,22287,22288,22289,22290,22291,22292,22293,22294,22295,22296,22297,22298,22299,22301,22302,22304,22305,22306,22308,22309,22310,22311,22315,22321,22322,22324,22325,22326,22327,22328,22332,22333,22335,22337,22339,22340,22341,22342,22344,22345,22347,22354,22355,22356,22357,22358,22360,22361,22370,22371,22373,22375,22380,22382,22384,22385,22386,22388,22389,22392,22393,22394,22397,22398,22399,22400,22401,22407,22408,22409,22410,22413,22414,22415,22416,22417,22420,22421,22422,22423,22424,22425,22426,22428,22429,22430,22431,22437,22440,22442,22444,22447,22448,22449,22451,22453,22454,22455,22457,22458,22459,22460,22461,22462,22463,22464,22465,22468,22469,22470,22471,22472,22473,22474,22476,22477,22480,22481,22483,22486,22487,22491,22492,22494,22497,22498,22499,22501,22502,22503,22504,22505,22506,22507,22508,22510,22512,22513,22514,22515,22517,22518,22519,22523,22524,22526,22527,22529,22531,22532,22533,22536,22537,22538,22540,22542,22543,22544,22546,22547,22548,22550,22551,22552,22554,22555,22556,22557,22559,22562,22563,22565,22566,22567,22568,22569,22571,22572,22573,22574,22575,22577,22578,22579,22580,22582,22583,22584,22585,22586,22587,22588,22589,22590,22591,22592,22593,22594,22595,22597,22598,22599,22600,22601,22602,22603,22606,22607,22608,22610,22611,22613,22614,22615,22617,22618,22619,22620,22621,22623,22624,22625,22626,22627,22628,22630,22631,22632,22633,22634,22637,22638,22639,22640,22641,22642,22643,22644,22645,22646,22647,22648,22649,22650,22651,22652,22653,22655,22658,22660,22662,22663,22664,22666,22667,22668,22669,22670,22671,22672,22673,22676,22677,22678,22679,22680,22683,22684,22685,22688,22689,22690,22691,22692,22693,22694,22695,22698,22699,22700,22701,22702,22703,22704,22705,22706,22707,22708,22709,22710,22711,22712,22713,22714,22715,22717,22718,22719,22720,22722,22723,22724,22726,22727,22728,22729,22730,22731,22732,22733,22734,22735,22736,22738,22739,22740,22742,22743,22744,22745,22746,22747,22748,22749,22750,22751,22752,22753,22754,22755,22757,22758,22759,22760,22761,22762,22765,22767,22769,22770,22772,22773,22775,22776,22778,22779,22780,22781,22782,22783,22784,22785,22787,22789,22790,22792,22793,22794,22795,22796,22798,22800,22801,22802,22803,22807,22808,22811,22813,22814,22816,22817,22818,22819,22822,22824,22828,22832,22834,22835,22837,22838,22843,22845,22846,22847,22848,22851,22853,22854,22858,22860,22861,22864,22866,22867,22873,22875,22876,22877,22878,22879,22881,22883,22884,22886,22887,22888,22889,22890,22891,22892,22893,22894,22895,22896,22897,22898,22901,22903,22906,22907,22908,22910,22911,22912,22917,22921,22923,22924,22926,22927,22928,22929,22932,22933,22936,22938,22939,22940,22941,22943,22944,22945,22946,22950,22951,22956,22957,22960,22961,22963,22964,22965,22966,22967,22968,22970,22972,22973,22975,22976,22977,22978,22979,22980,22981,22983,22984,22985,22988,22989,22990,22991,22997,22998,23001,23003,23006,23007,23008,23009,23010,23012,23014,23015,23017,23018,23019,23021,23022,23023,23024,23025,23026,23027,23028,23029,23030,23031,23032,23034,23036,23037,23038,23040,23042,23050,23051,23053,23054,23055,23056,23058,23060,23061,23062,23063,23065,23066,23067,23069,23070,23073,23074,23076,23078,23079,23080,23082,23083,23084,23085,23086,23087,23088,23091,23093,23095,23096,23097,23098,23099,23101,23102,23103,23105,23106,23107,23108,23109,23111,23112,23115,23116,23117,23118,23119,23120,23121,23122,23123,23124,23126,23127,23128,23129,23131,23132,23133,23134,23135,23136,23137,23139,23140,23141,23142,23144,23145,23147,23148,23149,23150,23151,23152,23153,23154,23155,23160,23161,23163,23164,23165,23166,23168,23169,23170,23171,23172,23173,23174,23175,23176,23177,23178,23179,23180,23181,23182,23183,23184,23185,23187,23188,23189,23190,23191,23192,23193,23196,23197,23198,23199,23200,23201,23202,23203,23204,23205,23206,23207,23208,23209,23211,23212,23213,23214,23215,23216,23217,23220,23222,23223,23225,23226,23227,23228,23229,23231,23232,23235,23236,23237,23238,23239,23240,23242,23243,23245,23246,23247,23248,23249,23251,23253,23255,23257,23258,23259,23261,23262,23263,23266,23268,23269,23271,23272,23274,23276,23277,23278,23279,23280,23282,23283,23284,23285,23286,23287,23288,23289,23290,23291,23292,23293,23294,23295,23296,23297,23298,23299,23300,23301,23302,23303,23304,23306,23307,23308,23309,23310,23311,23312,23313,23314,23315,23316,23317,23320,23321,23322,23323,23324,23325,23326,23327,23328,23329,23330,23331,23332,23333,23334,23335,23336,23337,23338,23339,23340,23341,23342,23343,23344,23345,23347,23349,23350,23352,23353,23354,23355,23356,23357,23358,23359,23361,23362,23363,23364,23365,23366,23367,23368,23369,23370,23371,23372,23373,23374,23375,23378,23382,23390,23392,23393,23399,23400,23403,23405,23406,23407,23410,23412,23414,23415,23416,23417,23419,23420,23422,23423,23426,23430,23434,23437,23438,23440,23441,23442,23444,23446,23455,23463,23464,23465,23468,23469,23470,23471,23473,23474,23479,23482,23483,23484,23488,23489,23491,23496,23497,23498,23499,23501,23502,23503,23505,23508,23509,23510,23511,23512,23513,23514,23515,23516,23520,23522,23523,23526,23527,23529,23530,23531,23532,23533,23535,23537,23538,23539,23540,23541,23542,23543,23549,23550,23552,23554,23555,23557,23559,23560,23563,23564,23565,23566,23568,23570,23571,23575,23577,23579,23582,23583,23584,23585,23587,23590,23592,23593,23594,23595,23597,23598,23599,23600,23602,23603,23605,23606,23607,23619,23620,23622,23623,23628,23629,23634,23635,23636,23638,23639,23640,23642,23643,23644,23645,23647,23650,23652,23655,23656,23657,23658,23659,23660,23661,23664,23666,23667,23668,23669,23670,23671,23672,23675,23676,23677,23678,23680,23683,23684,23685,23686,23687,23689,23690,23691,23694,23695,23698,23699,23701,23709,23710,23711,23712,23713,23716,23717,23718,23719,23720,23722,23726,23727,23728,23730,23732,23734,23737,23738,23739,23740,23742,23744,23746,23747,23749,23750,23751,23752,23753,23754,23756,23757,23758,23759,23760,23761,23763,23764,23765,23766,23767,23768,23770,23771,23772,23773,23774,23775,23776,23778,23779,23783,23785,23787,23788,23790,23791,23793,23794,23795,23796,23797,23798,23799,23800,23801,23802,23804,23805,23806,23807,23808,23809,23812,23813,23816,23817,23818,23819,23820,23821,23823,23824,23825,23826,23827,23829,23831,23832,23833,23834,23836,23837,23839,23840,23841,23842,23843,23845,23848,23850,23851,23852,23855,23856,23857,23858,23859,23861,23862,23863,23864,23865,23866,23867,23868,23871,23872,23873,23874,23875,23876,23877,23878,23880,23881,23885,23886,23887,23888,23889,23890,23891,23892,23893,23894,23895,23897,23898,23900,23902,23903,23904,23905,23906,23907,23908,23909,23910,23911,23912,23914,23917,23918,23920,23921,23922,23923,23925,23926,23927,23928,23929,23930,23931,23932,23933,23934,23935,23936,23937,23939,23940,23941,23942,23943,23944,23945,23946,23947,23948,23949,23950,23951,23952,23953,23954,23955,23956,23957,23958,23959,23960,23962,23963,23964,23966,23967,23968,23969,23970,23971,23972,23973,23974,23975,23976,23977,23978,23979,23980,23981,23982,23983,23984,23985,23986,23987,23988,23989,23990,23992,23993,23994,23995,23996,23997,23998,23999,24e3,24001,24002,24003,24004,24006,24007,24008,24009,24010,24011,24012,24014,24015,24016,24017,24018,24019,24020,24021,24022,24023,24024,24025,24026,24028,24031,24032,24035,24036,24042,24044,24045,24048,24053,24054,24056,24057,24058,24059,24060,24063,24064,24068,24071,24073,24074,24075,24077,24078,24082,24083,24087,24094,24095,24096,24097,24098,24099,24100,24101,24104,24105,24106,24107,24108,24111,24112,24114,24115,24116,24117,24118,24121,24122,24126,24127,24128,24129,24131,24134,24135,24136,24137,24138,24139,24141,24142,24143,24144,24145,24146,24147,24150,24151,24152,24153,24154,24156,24157,24159,24160,24163,24164,24165,24166,24167,24168,24169,24170,24171,24172,24173,24174,24175,24176,24177,24181,24183,24185,24190,24193,24194,24195,24197,24200,24201,24204,24205,24206,24210,24216,24219,24221,24225,24226,24227,24228,24232,24233,24234,24235,24236,24238,24239,24240,24241,24242,24244,24250,24251,24252,24253,24255,24256,24257,24258,24259,24260,24261,24262,24263,24264,24267,24268,24269,24270,24271,24272,24276,24277,24279,24280,24281,24282,24284,24285,24286,24287,24288,24289,24290,24291,24292,24293,24294,24295,24297,24299,24300,24301,24302,24303,24304,24305,24306,24307,24309,24312,24313,24315,24316,24317,24325,24326,24327,24329,24332,24333,24334,24336,24338,24340,24342,24345,24346,24348,24349,24350,24353,24354,24355,24356,24360,24363,24364,24366,24368,24370,24371,24372,24373,24374,24375,24376,24379,24381,24382,24383,24385,24386,24387,24388,24389,24390,24391,24392,24393,24394,24395,24396,24397,24398,24399,24401,24404,24409,24410,24411,24412,24414,24415,24416,24419,24421,24423,24424,24427,24430,24431,24434,24436,24437,24438,24440,24442,24445,24446,24447,24451,24454,24461,24462,24463,24465,24467,24468,24470,24474,24475,24477,24478,24479,24480,24482,24483,24484,24485,24486,24487,24489,24491,24492,24495,24496,24497,24498,24499,24500,24502,24504,24505,24506,24507,24510,24511,24512,24513,24514,24519,24520,24522,24523,24526,24531,24532,24533,24538,24539,24540,24542,24543,24546,24547,24549,24550,24552,24553,24556,24559,24560,24562,24563,24564,24566,24567,24569,24570,24572,24583,24584,24585,24587,24588,24592,24593,24595,24599,24600,24602,24606,24607,24610,24611,24612,24620,24621,24622,24624,24625,24626,24627,24628,24630,24631,24632,24633,24634,24637,24638,24640,24644,24645,24646,24647,24648,24649,24650,24652,24654,24655,24657,24659,24660,24662,24663,24664,24667,24668,24670,24671,24672,24673,24677,24678,24686,24689,24690,24692,24693,24695,24702,24704,24705,24706,24709,24710,24711,24712,24714,24715,24718,24719,24720,24721,24723,24725,24727,24728,24729,24732,24734,24737,24738,24740,24741,24743,24745,24746,24750,24752,24755,24757,24758,24759,24761,24762,24765,24766,24767,24768,24769,24770,24771,24772,24775,24776,24777,24780,24781,24782,24783,24784,24786,24787,24788,24790,24791,24793,24795,24798,24801,24802,24803,24804,24805,24810,24817,24818,24821,24823,24824,24827,24828,24829,24830,24831,24834,24835,24836,24837,24839,24842,24843,24844,24848,24849,24850,24851,24852,24854,24855,24856,24857,24859,24860,24861,24862,24865,24866,24869,24872,24873,24874,24876,24877,24878,24879,24880,24881,24882,24883,24884,24885,24886,24887,24888,24889,24890,24891,24892,24893,24894,24896,24897,24898,24899,24900,24901,24902,24903,24905,24907,24909,24911,24912,24914,24915,24916,24918,24919,24920,24921,24922,24923,24924,24926,24927,24928,24929,24931,24932,24933,24934,24937,24938,24939,24940,24941,24942,24943,24945,24946,24947,24948,24950,24952,24953,24954,24955,24956,24957,24958,24959,24960,24961,24962,24963,24964,24965,24966,24967,24968,24969,24970,24972,24973,24975,24976,24977,24978,24979,24981,24982,24983,24984,24985,24986,24987,24988,24990,24991,24992,24993,24994,24995,24996,24997,24998,25002,25003,25005,25006,25007,25008,25009,25010,25011,25012,25013,25014,25016,25017,25018,25019,25020,25021,25023,25024,25025,25027,25028,25029,25030,25031,25033,25036,25037,25038,25039,25040,25043,25045,25046,25047,25048,25049,25050,25051,25052,25053,25054,25055,25056,25057,25058,25059,25060,25061,25063,25064,25065,25066,25067,25068,25069,25070,25071,25072,25073,25074,25075,25076,25078,25079,25080,25081,25082,25083,25084,25085,25086,25088,25089,25090,25091,25092,25093,25095,25097,25107,25108,25113,25116,25117,25118,25120,25123,25126,25127,25128,25129,25131,25133,25135,25136,25137,25138,25141,25142,25144,25145,25146,25147,25148,25154,25156,25157,25158,25162,25167,25168,25173,25174,25175,25177,25178,25180,25181,25182,25183,25184,25185,25186,25188,25189,25192,25201,25202,25204,25205,25207,25208,25210,25211,25213,25217,25218,25219,25221,25222,25223,25224,25227,25228,25229,25230,25231,25232,25236,25241,25244,25245,25246,25251,25254,25255,25257,25258,25261,25262,25263,25264,25266,25267,25268,25270,25271,25272,25274,25278,25280,25281,25283,25291,25295,25297,25301,25309,25310,25312,25313,25316,25322,25323,25328,25330,25333,25336,25337,25338,25339,25344,25347,25348,25349,25350,25354,25355,25356,25357,25359,25360,25362,25363,25364,25365,25367,25368,25369,25372,25382,25383,25385,25388,25389,25390,25392,25393,25395,25396,25397,25398,25399,25400,25403,25404,25406,25407,25408,25409,25412,25415,25416,25418,25425,25426,25427,25428,25430,25431,25432,25433,25434,25435,25436,25437,25440,25444,25445,25446,25448,25450,25451,25452,25455,25456,25458,25459,25460,25461,25464,25465,25468,25469,25470,25471,25473,25475,25476,25477,25478,25483,25485,25489,25491,25492,25493,25495,25497,25498,25499,25500,25501,25502,25503,25505,25508,25510,25515,25519,25521,25522,25525,25526,25529,25531,25533,25535,25536,25537,25538,25539,25541,25543,25544,25546,25547,25548,25553,25555,25556,25557,25559,25560,25561,25562,25563,25564,25565,25567,25570,25572,25573,25574,25575,25576,25579,25580,25582,25583,25584,25585,25587,25589,25591,25593,25594,25595,25596,25598,25603,25604,25606,25607,25608,25609,25610,25613,25614,25617,25618,25621,25622,25623,25624,25625,25626,25629,25631,25634,25635,25636,25637,25639,25640,25641,25643,25646,25647,25648,25649,25650,25651,25653,25654,25655,25656,25657,25659,25660,25662,25664,25666,25667,25673,25675,25676,25677,25678,25679,25680,25681,25683,25685,25686,25687,25689,25690,25691,25692,25693,25695,25696,25697,25698,25699,25700,25701,25702,25704,25706,25707,25708,25710,25711,25712,25713,25714,25715,25716,25717,25718,25719,25723,25724,25725,25726,25727,25728,25729,25731,25734,25736,25737,25738,25739,25740,25741,25742,25743,25744,25747,25748,25751,25752,25754,25755,25756,25757,25759,25760,25761,25762,25763,25765,25766,25767,25768,25770,25771,25775,25777,25778,25779,25780,25782,25785,25787,25789,25790,25791,25793,25795,25796,25798,25799,25800,25801,25802,25803,25804,25807,25809,25811,25812,25813,25814,25817,25818,25819,25820,25821,25823,25824,25825,25827,25829,25831,25832,25833,25834,25835,25836,25837,25838,25839,25840,25841,25842,25843,25844,25845,25846,25847,25848,25849,25850,25851,25852,25853,25854,25855,25857,25858,25859,25860,25861,25862,25863,25864,25866,25867,25868,25869,25870,25871,25872,25873,25875,25876,25877,25878,25879,25881,25882,25883,25884,25885,25886,25887,25888,25889,25890,25891,25892,25894,25895,25896,25897,25898,25900,25901,25904,25905,25906,25907,25911,25914,25916,25917,25920,25921,25922,25923,25924,25926,25927,25930,25931,25933,25934,25936,25938,25939,25940,25943,25944,25946,25948,25951,25952,25953,25956,25957,25959,25960,25961,25962,25965,25966,25967,25969,25971,25973,25974,25976,25977,25978,25979,25980,25981,25982,25983,25984,25985,25986,25987,25988,25989,25990,25992,25993,25994,25997,25998,25999,26002,26004,26005,26006,26008,26010,26013,26014,26016,26018,26019,26022,26024,26026,26028,26030,26033,26034,26035,26036,26037,26038,26039,26040,26042,26043,26046,26047,26048,26050,26055,26056,26057,26058,26061,26064,26065,26067,26068,26069,26072,26073,26074,26075,26076,26077,26078,26079,26081,26083,26084,26090,26091,26098,26099,26100,26101,26104,26105,26107,26108,26109,26110,26111,26113,26116,26117,26119,26120,26121,26123,26125,26128,26129,26130,26134,26135,26136,26138,26139,26140,26142,26145,26146,26147,26148,26150,26153,26154,26155,26156,26158,26160,26162,26163,26167,26168,26169,26170,26171,26173,26175,26176,26178,26180,26181,26182,26183,26184,26185,26186,26189,26190,26192,26193,26200,26201,26203,26204,26205,26206,26208,26210,26211,26213,26215,26217,26218,26219,26220,26221,26225,26226,26227,26229,26232,26233,26235,26236,26237,26239,26240,26241,26243,26245,26246,26248,26249,26250,26251,26253,26254,26255,26256,26258,26259,26260,26261,26264,26265,26266,26267,26268,26270,26271,26272,26273,26274,26275,26276,26277,26278,26281,26282,26283,26284,26285,26287,26288,26289,26290,26291,26293,26294,26295,26296,26298,26299,26300,26301,26303,26304,26305,26306,26307,26308,26309,26310,26311,26312,26313,26314,26315,26316,26317,26318,26319,26320,26321,26322,26323,26324,26325,26326,26327,26328,26330,26334,26335,26336,26337,26338,26339,26340,26341,26343,26344,26346,26347,26348,26349,26350,26351,26353,26357,26358,26360,26362,26363,26365,26369,26370,26371,26372,26373,26374,26375,26380,26382,26383,26385,26386,26387,26390,26392,26393,26394,26396,26398,26400,26401,26402,26403,26404,26405,26407,26409,26414,26416,26418,26419,26422,26423,26424,26425,26427,26428,26430,26431,26433,26436,26437,26439,26442,26443,26445,26450,26452,26453,26455,26456,26457,26458,26459,26461,26466,26467,26468,26470,26471,26475,26476,26478,26481,26484,26486,26488,26489,26490,26491,26493,26496,26498,26499,26501,26502,26504,26506,26508,26509,26510,26511,26513,26514,26515,26516,26518,26521,26523,26527,26528,26529,26532,26534,26537,26540,26542,26545,26546,26548,26553,26554,26555,26556,26557,26558,26559,26560,26562,26565,26566,26567,26568,26569,26570,26571,26572,26573,26574,26581,26582,26583,26587,26591,26593,26595,26596,26598,26599,26600,26602,26603,26605,26606,26610,26613,26614,26615,26616,26617,26618,26619,26620,26622,26625,26626,26627,26628,26630,26637,26640,26642,26644,26645,26648,26649,26650,26651,26652,26654,26655,26656,26658,26659,26660,26661,26662,26663,26664,26667,26668,26669,26670,26671,26672,26673,26676,26677,26678,26682,26683,26687,26695,26699,26701,26703,26706,26710,26711,26712,26713,26714,26715,26716,26717,26718,26719,26730,26732,26733,26734,26735,26736,26737,26738,26739,26741,26744,26745,26746,26747,26748,26749,26750,26751,26752,26754,26756,26759,26760,26761,26762,26763,26764,26765,26766,26768,26769,26770,26772,26773,26774,26776,26777,26778,26779,26780,26781,26782,26783,26784,26785,26787,26788,26789,26793,26794,26795,26796,26798,26801,26802,26804,26806,26807,26808,26809,26810,26811,26812,26813,26814,26815,26817,26819,26820,26821,26822,26823,26824,26826,26828,26830,26831,26832,26833,26835,26836,26838,26839,26841,26843,26844,26845,26846,26847,26849,26850,26852,26853,26854,26855,26856,26857,26858,26859,26860,26861,26863,26866,26867,26868,26870,26871,26872,26875,26877,26878,26879,26880,26882,26883,26884,26886,26887,26888,26889,26890,26892,26895,26897,26899,26900,26901,26902,26903,26904,26905,26906,26907,26908,26909,26910,26913,26914,26915,26917,26918,26919,26920,26921,26922,26923,26924,26926,26927,26929,26930,26931,26933,26934,26935,26936,26938,26939,26940,26942,26944,26945,26947,26948,26949,26950,26951,26952,26953,26954,26955,26956,26957,26958,26959,26960,26961,26962,26963,26965,26966,26968,26969,26971,26972,26975,26977,26978,26980,26981,26983,26984,26985,26986,26988,26989,26991,26992,26994,26995,26996,26997,26998,27002,27003,27005,27006,27007,27009,27011,27013,27018,27019,27020,27022,27023,27024,27025,27026,27027,27030,27031,27033,27034,27037,27038,27039,27040,27041,27042,27043,27044,27045,27046,27049,27050,27052,27054,27055,27056,27058,27059,27061,27062,27064,27065,27066,27068,27069,27070,27071,27072,27074,27075,27076,27077,27078,27079,27080,27081,27083,27085,27087,27089,27090,27091,27093,27094,27095,27096,27097,27098,27100,27101,27102,27105,27106,27107,27108,27109,27110,27111,27112,27113,27114,27115,27116,27118,27119,27120,27121,27123,27124,27125,27126,27127,27128,27129,27130,27131,27132,27134,27136,27137,27138,27139,27140,27141,27142,27143,27144,27145,27147,27148,27149,27150,27151,27152,27153,27154,27155,27156,27157,27158,27161,27162,27163,27164,27165,27166,27168,27170,27171,27172,27173,27174,27175,27177,27179,27180,27181,27182,27184,27186,27187,27188,27190,27191,27192,27193,27194,27195,27196,27199,27200,27201,27202,27203,27205,27206,27208,27209,27210,27211,27212,27213,27214,27215,27217,27218,27219,27220,27221,27222,27223,27226,27228,27229,27230,27231,27232,27234,27235,27236,27238,27239,27240,27241,27242,27243,27244,27245,27246,27247,27248,27250,27251,27252,27253,27254,27255,27256,27258,27259,27261,27262,27263,27265,27266,27267,27269,27270,27271,27272,27273,27274,27275,27276,27277,27279,27282,27283,27284,27285,27286,27288,27289,27290,27291,27292,27293,27294,27295,27297,27298,27299,27300,27301,27302,27303,27304,27306,27309,27310,27311,27312,27313,27314,27315,27316,27317,27318,27319,27320,27321,27322,27323,27324,27325,27326,27327,27328,27329,27330,27331,27332,27333,27334,27335,27336,27337,27338,27339,27340,27341,27342,27343,27344,27345,27346,27347,27348,27349,27350,27351,27352,27353,27354,27355,27356,27357,27358,27359,27360,27361,27362,27363,27364,27365,27366,27367,27368,27369,27370,27371,27372,27373,27374,27375,27376,27377,27378,27379,27380,27381,27382,27383,27384,27385,27386,27387,27388,27389,27390,27391,27392,27393,27394,27395,27396,27397,27398,27399,27400,27401,27402,27403,27404,27405,27406,27407,27408,27409,27410,27411,27412,27413,27414,27415,27416,27417,27418,27419,27420,27421,27422,27423,27429,27430,27432,27433,27434,27435,27436,27437,27438,27439,27440,27441,27443,27444,27445,27446,27448,27451,27452,27453,27455,27456,27457,27458,27460,27461,27464,27466,27467,27469,27470,27471,27472,27473,27474,27475,27476,27477,27478,27479,27480,27482,27483,27484,27485,27486,27487,27488,27489,27496,27497,27499,27500,27501,27502,27503,27504,27505,27506,27507,27508,27509,27510,27511,27512,27514,27517,27518,27519,27520,27525,27528,27532,27534,27535,27536,27537,27540,27541,27543,27544,27545,27548,27549,27550,27551,27552,27554,27555,27556,27557,27558,27559,27560,27561,27563,27564,27565,27566,27567,27568,27569,27570,27574,27576,27577,27578,27579,27580,27581,27582,27584,27587,27588,27590,27591,27592,27593,27594,27596,27598,27600,27601,27608,27610,27612,27613,27614,27615,27616,27618,27619,27620,27621,27622,27623,27624,27625,27628,27629,27630,27632,27633,27634,27636,27638,27639,27640,27642,27643,27644,27646,27647,27648,27649,27650,27651,27652,27656,27657,27658,27659,27660,27662,27666,27671,27676,27677,27678,27680,27683,27685,27691,27692,27693,27697,27699,27702,27703,27705,27706,27707,27708,27710,27711,27715,27716,27717,27720,27723,27724,27725,27726,27727,27729,27730,27731,27734,27736,27737,27738,27746,27747,27749,27750,27751,27755,27756,27757,27758,27759,27761,27763,27765,27767,27768,27770,27771,27772,27775,27776,27780,27783,27786,27787,27789,27790,27793,27794,27797,27798,27799,27800,27802,27804,27805,27806,27808,27810,27816,27820,27823,27824,27828,27829,27830,27831,27834,27840,27841,27842,27843,27846,27847,27848,27851,27853,27854,27855,27857,27858,27864,27865,27866,27868,27869,27871,27876,27878,27879,27881,27884,27885,27890,27892,27897,27903,27904,27906,27907,27909,27910,27912,27913,27914,27917,27919,27920,27921,27923,27924,27925,27926,27928,27932,27933,27935,27936,27937,27938,27939,27940,27942,27944,27945,27948,27949,27951,27952,27956,27958,27959,27960,27962,27967,27968,27970,27972,27977,27980,27984,27989,27990,27991,27992,27995,27997,27999,28001,28002,28004,28005,28007,28008,28011,28012,28013,28016,28017,28018,28019,28021,28022,28025,28026,28027,28029,28030,28031,28032,28033,28035,28036,28038,28039,28042,28043,28045,28047,28048,28050,28054,28055,28056,28057,28058,28060,28066,28069,28076,28077,28080,28081,28083,28084,28086,28087,28089,28090,28091,28092,28093,28094,28097,28098,28099,28104,28105,28106,28109,28110,28111,28112,28114,28115,28116,28117,28119,28122,28123,28124,28127,28130,28131,28133,28135,28136,28137,28138,28141,28143,28144,28146,28148,28149,28150,28152,28154,28157,28158,28159,28160,28161,28162,28163,28164,28166,28167,28168,28169,28171,28175,28178,28179,28181,28184,28185,28187,28188,28190,28191,28194,28198,28199,28200,28202,28204,28206,28208,28209,28211,28213,28214,28215,28217,28219,28220,28221,28222,28223,28224,28225,28226,28229,28230,28231,28232,28233,28234,28235,28236,28239,28240,28241,28242,28245,28247,28249,28250,28252,28253,28254,28256,28257,28258,28259,28260,28261,28262,28263,28264,28265,28266,28268,28269,28271,28272,28273,28274,28275,28276,28277,28278,28279,28280,28281,28282,28283,28284,28285,28288,28289,28290,28292,28295,28296,28298,28299,28300,28301,28302,28305,28306,28307,28308,28309,28310,28311,28313,28314,28315,28317,28318,28320,28321,28323,28324,28326,28328,28329,28331,28332,28333,28334,28336,28339,28341,28344,28345,28348,28350,28351,28352,28355,28356,28357,28358,28360,28361,28362,28364,28365,28366,28368,28370,28374,28376,28377,28379,28380,28381,28387,28391,28394,28395,28396,28397,28398,28399,28400,28401,28402,28403,28405,28406,28407,28408,28410,28411,28412,28413,28414,28415,28416,28417,28419,28420,28421,28423,28424,28426,28427,28428,28429,28430,28432,28433,28434,28438,28439,28440,28441,28442,28443,28444,28445,28446,28447,28449,28450,28451,28453,28454,28455,28456,28460,28462,28464,28466,28468,28469,28471,28472,28473,28474,28475,28476,28477,28479,28480,28481,28482,28483,28484,28485,28488,28489,28490,28492,28494,28495,28496,28497,28498,28499,28500,28501,28502,28503,28505,28506,28507,28509,28511,28512,28513,28515,28516,28517,28519,28520,28521,28522,28523,28524,28527,28528,28529,28531,28533,28534,28535,28537,28539,28541,28542,28543,28544,28545,28546,28547,28549,28550,28551,28554,28555,28559,28560,28561,28562,28563,28564,28565,28566,28567,28568,28569,28570,28571,28573,28574,28575,28576,28578,28579,28580,28581,28582,28584,28585,28586,28587,28588,28589,28590,28591,28592,28593,28594,28596,28597,28599,28600,28602,28603,28604,28605,28606,28607,28609,28611,28612,28613,28614,28615,28616,28618,28619,28620,28621,28622,28623,28624,28627,28628,28629,28630,28631,28632,28633,28634,28635,28636,28637,28639,28642,28643,28644,28645,28646,28647,28648,28649,28650,28651,28652,28653,28656,28657,28658,28659,28660,28661,28662,28663,28664,28665,28666,28667,28668,28669,28670,28671,28672,28673,28674,28675,28676,28677,28678,28679,28680,28681,28682,28683,28684,28685,28686,28687,28688,28690,28691,28692,28693,28694,28695,28696,28697,28700,28701,28702,28703,28704,28705,28706,28708,28709,28710,28711,28712,28713,28714,28715,28716,28717,28718,28719,28720,28721,28722,28723,28724,28726,28727,28728,28730,28731,28732,28733,28734,28735,28736,28737,28738,28739,28740,28741,28742,28743,28744,28745,28746,28747,28749,28750,28752,28753,28754,28755,28756,28757,28758,28759,28760,28761,28762,28763,28764,28765,28767,28768,28769,28770,28771,28772,28773,28774,28775,28776,28777,28778,28782,28785,28786,28787,28788,28791,28793,28794,28795,28797,28801,28802,28803,28804,28806,28807,28808,28811,28812,28813,28815,28816,28817,28819,28823,28824,28826,28827,28830,28831,28832,28833,28834,28835,28836,28837,28838,28839,28840,28841,28842,28848,28850,28852,28853,28854,28858,28862,28863,28868,28869,28870,28871,28873,28875,28876,28877,28878,28879,28880,28881,28882,28883,28884,28885,28886,28887,28890,28892,28893,28894,28896,28897,28898,28899,28901,28906,28910,28912,28913,28914,28915,28916,28917,28918,28920,28922,28923,28924,28926,28927,28928,28929,28930,28931,28932,28933,28934,28935,28936,28939,28940,28941,28942,28943,28945,28946,28948,28951,28955,28956,28957,28958,28959,28960,28961,28962,28963,28964,28965,28967,28968,28969,28970,28971,28972,28973,28974,28978,28979,28980,28981,28983,28984,28985,28986,28987,28988,28989,28990,28991,28992,28993,28994,28995,28996,28998,28999,29e3,29001,29003,29005,29007,29008,29009,29010,29011,29012,29013,29014,29015,29016,29017,29018,29019,29021,29023,29024,29025,29026,29027,29029,29033,29034,29035,29036,29037,29039,29040,29041,29044,29045,29046,29047,29049,29051,29052,29054,29055,29056,29057,29058,29059,29061,29062,29063,29064,29065,29067,29068,29069,29070,29072,29073,29074,29075,29077,29078,29079,29082,29083,29084,29085,29086,29089,29090,29091,29092,29093,29094,29095,29097,29098,29099,29101,29102,29103,29104,29105,29106,29108,29110,29111,29112,29114,29115,29116,29117,29118,29119,29120,29121,29122,29124,29125,29126,29127,29128,29129,29130,29131,29132,29133,29135,29136,29137,29138,29139,29142,29143,29144,29145,29146,29147,29148,29149,29150,29151,29153,29154,29155,29156,29158,29160,29161,29162,29163,29164,29165,29167,29168,29169,29170,29171,29172,29173,29174,29175,29176,29178,29179,29180,29181,29182,29183,29184,29185,29186,29187,29188,29189,29191,29192,29193,29194,29195,29196,29197,29198,29199,29200,29201,29202,29203,29204,29205,29206,29207,29208,29209,29210,29211,29212,29214,29215,29216,29217,29218,29219,29220,29221,29222,29223,29225,29227,29229,29230,29231,29234,29235,29236,29242,29244,29246,29248,29249,29250,29251,29252,29253,29254,29257,29258,29259,29262,29263,29264,29265,29267,29268,29269,29271,29272,29274,29276,29278,29280,29283,29284,29285,29288,29290,29291,29292,29293,29296,29297,29299,29300,29302,29303,29304,29307,29308,29309,29314,29315,29317,29318,29319,29320,29321,29324,29326,29328,29329,29331,29332,29333,29334,29335,29336,29337,29338,29339,29340,29341,29342,29344,29345,29346,29347,29348,29349,29350,29351,29352,29353,29354,29355,29358,29361,29362,29363,29365,29370,29371,29372,29373,29374,29375,29376,29381,29382,29383,29385,29386,29387,29388,29391,29393,29395,29396,29397,29398,29400,29402,29403,58566,58567,58568,58569,58570,58571,58572,58573,58574,58575,58576,58577,58578,58579,58580,58581,58582,58583,58584,58585,58586,58587,58588,58589,58590,58591,58592,58593,58594,58595,58596,58597,58598,58599,58600,58601,58602,58603,58604,58605,58606,58607,58608,58609,58610,58611,58612,58613,58614,58615,58616,58617,58618,58619,58620,58621,58622,58623,58624,58625,58626,58627,58628,58629,58630,58631,58632,58633,58634,58635,58636,58637,58638,58639,58640,58641,58642,58643,58644,58645,58646,58647,58648,58649,58650,58651,58652,58653,58654,58655,58656,58657,58658,58659,58660,58661,12288,12289,12290,183,713,711,168,12291,12293,8212,65374,8214,8230,8216,8217,8220,8221,12308,12309,12296,12297,12298,12299,12300,12301,12302,12303,12310,12311,12304,12305,177,215,247,8758,8743,8744,8721,8719,8746,8745,8712,8759,8730,8869,8741,8736,8978,8857,8747,8750,8801,8780,8776,8765,8733,8800,8814,8815,8804,8805,8734,8757,8756,9794,9792,176,8242,8243,8451,65284,164,65504,65505,8240,167,8470,9734,9733,9675,9679,9678,9671,9670,9633,9632,9651,9650,8251,8594,8592,8593,8595,12307,58662,58663,58664,58665,58666,58667,58668,58669,58670,58671,58672,58673,58674,58675,58676,58677,58678,58679,58680,58681,58682,58683,58684,58685,58686,58687,58688,58689,58690,58691,58692,58693,58694,58695,58696,58697,58698,58699,58700,58701,58702,58703,58704,58705,58706,58707,58708,58709,58710,58711,58712,58713,58714,58715,58716,58717,58718,58719,58720,58721,58722,58723,58724,58725,58726,58727,58728,58729,58730,58731,58732,58733,58734,58735,58736,58737,58738,58739,58740,58741,58742,58743,58744,58745,58746,58747,58748,58749,58750,58751,58752,58753,58754,58755,58756,58757,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,59238,59239,59240,59241,59242,59243,9352,9353,9354,9355,9356,9357,9358,9359,9360,9361,9362,9363,9364,9365,9366,9367,9368,9369,9370,9371,9332,9333,9334,9335,9336,9337,9338,9339,9340,9341,9342,9343,9344,9345,9346,9347,9348,9349,9350,9351,9312,9313,9314,9315,9316,9317,9318,9319,9320,9321,8364,59245,12832,12833,12834,12835,12836,12837,12838,12839,12840,12841,59246,59247,8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,8554,8555,59248,59249,58758,58759,58760,58761,58762,58763,58764,58765,58766,58767,58768,58769,58770,58771,58772,58773,58774,58775,58776,58777,58778,58779,58780,58781,58782,58783,58784,58785,58786,58787,58788,58789,58790,58791,58792,58793,58794,58795,58796,58797,58798,58799,58800,58801,58802,58803,58804,58805,58806,58807,58808,58809,58810,58811,58812,58813,58814,58815,58816,58817,58818,58819,58820,58821,58822,58823,58824,58825,58826,58827,58828,58829,58830,58831,58832,58833,58834,58835,58836,58837,58838,58839,58840,58841,58842,58843,58844,58845,58846,58847,58848,58849,58850,58851,58852,12288,65281,65282,65283,65509,65285,65286,65287,65288,65289,65290,65291,65292,65293,65294,65295,65296,65297,65298,65299,65300,65301,65302,65303,65304,65305,65306,65307,65308,65309,65310,65311,65312,65313,65314,65315,65316,65317,65318,65319,65320,65321,65322,65323,65324,65325,65326,65327,65328,65329,65330,65331,65332,65333,65334,65335,65336,65337,65338,65339,65340,65341,65342,65343,65344,65345,65346,65347,65348,65349,65350,65351,65352,65353,65354,65355,65356,65357,65358,65359,65360,65361,65362,65363,65364,65365,65366,65367,65368,65369,65370,65371,65372,65373,65507,58854,58855,58856,58857,58858,58859,58860,58861,58862,58863,58864,58865,58866,58867,58868,58869,58870,58871,58872,58873,58874,58875,58876,58877,58878,58879,58880,58881,58882,58883,58884,58885,58886,58887,58888,58889,58890,58891,58892,58893,58894,58895,58896,58897,58898,58899,58900,58901,58902,58903,58904,58905,58906,58907,58908,58909,58910,58911,58912,58913,58914,58915,58916,58917,58918,58919,58920,58921,58922,58923,58924,58925,58926,58927,58928,58929,58930,58931,58932,58933,58934,58935,58936,58937,58938,58939,58940,58941,58942,58943,58944,58945,58946,58947,58948,58949,12353,12354,12355,12356,12357,12358,12359,12360,12361,12362,12363,12364,12365,12366,12367,12368,12369,12370,12371,12372,12373,12374,12375,12376,12377,12378,12379,12380,12381,12382,12383,12384,12385,12386,12387,12388,12389,12390,12391,12392,12393,12394,12395,12396,12397,12398,12399,12400,12401,12402,12403,12404,12405,12406,12407,12408,12409,12410,12411,12412,12413,12414,12415,12416,12417,12418,12419,12420,12421,12422,12423,12424,12425,12426,12427,12428,12429,12430,12431,12432,12433,12434,12435,59250,59251,59252,59253,59254,59255,59256,59257,59258,59259,59260,58950,58951,58952,58953,58954,58955,58956,58957,58958,58959,58960,58961,58962,58963,58964,58965,58966,58967,58968,58969,58970,58971,58972,58973,58974,58975,58976,58977,58978,58979,58980,58981,58982,58983,58984,58985,58986,58987,58988,58989,58990,58991,58992,58993,58994,58995,58996,58997,58998,58999,59e3,59001,59002,59003,59004,59005,59006,59007,59008,59009,59010,59011,59012,59013,59014,59015,59016,59017,59018,59019,59020,59021,59022,59023,59024,59025,59026,59027,59028,59029,59030,59031,59032,59033,59034,59035,59036,59037,59038,59039,59040,59041,59042,59043,59044,59045,12449,12450,12451,12452,12453,12454,12455,12456,12457,12458,12459,12460,12461,12462,12463,12464,12465,12466,12467,12468,12469,12470,12471,12472,12473,12474,12475,12476,12477,12478,12479,12480,12481,12482,12483,12484,12485,12486,12487,12488,12489,12490,12491,12492,12493,12494,12495,12496,12497,12498,12499,12500,12501,12502,12503,12504,12505,12506,12507,12508,12509,12510,12511,12512,12513,12514,12515,12516,12517,12518,12519,12520,12521,12522,12523,12524,12525,12526,12527,12528,12529,12530,12531,12532,12533,12534,59261,59262,59263,59264,59265,59266,59267,59268,59046,59047,59048,59049,59050,59051,59052,59053,59054,59055,59056,59057,59058,59059,59060,59061,59062,59063,59064,59065,59066,59067,59068,59069,59070,59071,59072,59073,59074,59075,59076,59077,59078,59079,59080,59081,59082,59083,59084,59085,59086,59087,59088,59089,59090,59091,59092,59093,59094,59095,59096,59097,59098,59099,59100,59101,59102,59103,59104,59105,59106,59107,59108,59109,59110,59111,59112,59113,59114,59115,59116,59117,59118,59119,59120,59121,59122,59123,59124,59125,59126,59127,59128,59129,59130,59131,59132,59133,59134,59135,59136,59137,59138,59139,59140,59141,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,59269,59270,59271,59272,59273,59274,59275,59276,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,963,964,965,966,967,968,969,59277,59278,59279,59280,59281,59282,59283,65077,65078,65081,65082,65087,65088,65085,65086,65089,65090,65091,65092,59284,59285,65083,65084,65079,65080,65073,59286,65075,65076,59287,59288,59289,59290,59291,59292,59293,59294,59295,59142,59143,59144,59145,59146,59147,59148,59149,59150,59151,59152,59153,59154,59155,59156,59157,59158,59159,59160,59161,59162,59163,59164,59165,59166,59167,59168,59169,59170,59171,59172,59173,59174,59175,59176,59177,59178,59179,59180,59181,59182,59183,59184,59185,59186,59187,59188,59189,59190,59191,59192,59193,59194,59195,59196,59197,59198,59199,59200,59201,59202,59203,59204,59205,59206,59207,59208,59209,59210,59211,59212,59213,59214,59215,59216,59217,59218,59219,59220,59221,59222,59223,59224,59225,59226,59227,59228,59229,59230,59231,59232,59233,59234,59235,59236,59237,1040,1041,1042,1043,1044,1045,1025,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,59296,59297,59298,59299,59300,59301,59302,59303,59304,59305,59306,59307,59308,59309,59310,1072,1073,1074,1075,1076,1077,1105,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,59311,59312,59313,59314,59315,59316,59317,59318,59319,59320,59321,59322,59323,714,715,729,8211,8213,8229,8245,8453,8457,8598,8599,8600,8601,8725,8735,8739,8786,8806,8807,8895,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9581,9582,9583,9584,9585,9586,9587,9601,9602,9603,9604,9605,9606,9607,9608,9609,9610,9611,9612,9613,9614,9615,9619,9620,9621,9660,9661,9698,9699,9700,9701,9737,8853,12306,12317,12318,59324,59325,59326,59327,59328,59329,59330,59331,59332,59333,59334,257,225,462,224,275,233,283,232,299,237,464,236,333,243,466,242,363,250,468,249,470,472,474,476,252,234,593,7743,324,328,505,609,59337,59338,59339,59340,12549,12550,12551,12552,12553,12554,12555,12556,12557,12558,12559,12560,12561,12562,12563,12564,12565,12566,12567,12568,12569,12570,12571,12572,12573,12574,12575,12576,12577,12578,12579,12580,12581,12582,12583,12584,12585,59341,59342,59343,59344,59345,59346,59347,59348,59349,59350,59351,59352,59353,59354,59355,59356,59357,59358,59359,59360,59361,12321,12322,12323,12324,12325,12326,12327,12328,12329,12963,13198,13199,13212,13213,13214,13217,13252,13262,13265,13266,13269,65072,65506,65508,59362,8481,12849,59363,8208,59364,59365,59366,12540,12443,12444,12541,12542,12294,12445,12446,65097,65098,65099,65100,65101,65102,65103,65104,65105,65106,65108,65109,65110,65111,65113,65114,65115,65116,65117,65118,65119,65120,65121,65122,65123,65124,65125,65126,65128,65129,65130,65131,12350,12272,12273,12274,12275,12276,12277,12278,12279,12280,12281,12282,12283,12295,59380,59381,59382,59383,59384,59385,59386,59387,59388,59389,59390,59391,59392,9472,9473,9474,9475,9476,9477,9478,9479,9480,9481,9482,9483,9484,9485,9486,9487,9488,9489,9490,9491,9492,9493,9494,9495,9496,9497,9498,9499,9500,9501,9502,9503,9504,9505,9506,9507,9508,9509,9510,9511,9512,9513,9514,9515,9516,9517,9518,9519,9520,9521,9522,9523,9524,9525,9526,9527,9528,9529,9530,9531,9532,9533,9534,9535,9536,9537,9538,9539,9540,9541,9542,9543,9544,9545,9546,9547,59393,59394,59395,59396,59397,59398,59399,59400,59401,59402,59403,59404,59405,59406,59407,29404,29405,29407,29410,29411,29412,29413,29414,29415,29418,29419,29429,29430,29433,29437,29438,29439,29440,29442,29444,29445,29446,29447,29448,29449,29451,29452,29453,29455,29456,29457,29458,29460,29464,29465,29466,29471,29472,29475,29476,29478,29479,29480,29485,29487,29488,29490,29491,29493,29494,29498,29499,29500,29501,29504,29505,29506,29507,29508,29509,29510,29511,29512,29513,29514,29515,29516,29518,29519,29521,29523,29524,29525,29526,29528,29529,29530,29531,29532,29533,29534,29535,29537,29538,29539,29540,29541,29542,29543,29544,29545,29546,29547,29550,29552,29553,57344,57345,57346,57347,57348,57349,57350,57351,57352,57353,57354,57355,57356,57357,57358,57359,57360,57361,57362,57363,57364,57365,57366,57367,57368,57369,57370,57371,57372,57373,57374,57375,57376,57377,57378,57379,57380,57381,57382,57383,57384,57385,57386,57387,57388,57389,57390,57391,57392,57393,57394,57395,57396,57397,57398,57399,57400,57401,57402,57403,57404,57405,57406,57407,57408,57409,57410,57411,57412,57413,57414,57415,57416,57417,57418,57419,57420,57421,57422,57423,57424,57425,57426,57427,57428,57429,57430,57431,57432,57433,57434,57435,57436,57437,29554,29555,29556,29557,29558,29559,29560,29561,29562,29563,29564,29565,29567,29568,29569,29570,29571,29573,29574,29576,29578,29580,29581,29583,29584,29586,29587,29588,29589,29591,29592,29593,29594,29596,29597,29598,29600,29601,29603,29604,29605,29606,29607,29608,29610,29612,29613,29617,29620,29621,29622,29624,29625,29628,29629,29630,29631,29633,29635,29636,29637,29638,29639,29643,29644,29646,29650,29651,29652,29653,29654,29655,29656,29658,29659,29660,29661,29663,29665,29666,29667,29668,29670,29672,29674,29675,29676,29678,29679,29680,29681,29683,29684,29685,29686,29687,57438,57439,57440,57441,57442,57443,57444,57445,57446,57447,57448,57449,57450,57451,57452,57453,57454,57455,57456,57457,57458,57459,57460,57461,57462,57463,57464,57465,57466,57467,57468,57469,57470,57471,57472,57473,57474,57475,57476,57477,57478,57479,57480,57481,57482,57483,57484,57485,57486,57487,57488,57489,57490,57491,57492,57493,57494,57495,57496,57497,57498,57499,57500,57501,57502,57503,57504,57505,57506,57507,57508,57509,57510,57511,57512,57513,57514,57515,57516,57517,57518,57519,57520,57521,57522,57523,57524,57525,57526,57527,57528,57529,57530,57531,29688,29689,29690,29691,29692,29693,29694,29695,29696,29697,29698,29700,29703,29704,29707,29708,29709,29710,29713,29714,29715,29716,29717,29718,29719,29720,29721,29724,29725,29726,29727,29728,29729,29731,29732,29735,29737,29739,29741,29743,29745,29746,29751,29752,29753,29754,29755,29757,29758,29759,29760,29762,29763,29764,29765,29766,29767,29768,29769,29770,29771,29772,29773,29774,29775,29776,29777,29778,29779,29780,29782,29784,29789,29792,29793,29794,29795,29796,29797,29798,29799,29800,29801,29802,29803,29804,29806,29807,29809,29810,29811,29812,29813,29816,29817,29818,57532,57533,57534,57535,57536,57537,57538,57539,57540,57541,57542,57543,57544,57545,57546,57547,57548,57549,57550,57551,57552,57553,57554,57555,57556,57557,57558,57559,57560,57561,57562,57563,57564,57565,57566,57567,57568,57569,57570,57571,57572,57573,57574,57575,57576,57577,57578,57579,57580,57581,57582,57583,57584,57585,57586,57587,57588,57589,57590,57591,57592,57593,57594,57595,57596,57597,57598,57599,57600,57601,57602,57603,57604,57605,57606,57607,57608,57609,57610,57611,57612,57613,57614,57615,57616,57617,57618,57619,57620,57621,57622,57623,57624,57625,29819,29820,29821,29823,29826,29828,29829,29830,29832,29833,29834,29836,29837,29839,29841,29842,29843,29844,29845,29846,29847,29848,29849,29850,29851,29853,29855,29856,29857,29858,29859,29860,29861,29862,29866,29867,29868,29869,29870,29871,29872,29873,29874,29875,29876,29877,29878,29879,29880,29881,29883,29884,29885,29886,29887,29888,29889,29890,29891,29892,29893,29894,29895,29896,29897,29898,29899,29900,29901,29902,29903,29904,29905,29907,29908,29909,29910,29911,29912,29913,29914,29915,29917,29919,29921,29925,29927,29928,29929,29930,29931,29932,29933,29936,29937,29938,57626,57627,57628,57629,57630,57631,57632,57633,57634,57635,57636,57637,57638,57639,57640,57641,57642,57643,57644,57645,57646,57647,57648,57649,57650,57651,57652,57653,57654,57655,57656,57657,57658,57659,57660,57661,57662,57663,57664,57665,57666,57667,57668,57669,57670,57671,57672,57673,57674,57675,57676,57677,57678,57679,57680,57681,57682,57683,57684,57685,57686,57687,57688,57689,57690,57691,57692,57693,57694,57695,57696,57697,57698,57699,57700,57701,57702,57703,57704,57705,57706,57707,57708,57709,57710,57711,57712,57713,57714,57715,57716,57717,57718,57719,29939,29941,29944,29945,29946,29947,29948,29949,29950,29952,29953,29954,29955,29957,29958,29959,29960,29961,29962,29963,29964,29966,29968,29970,29972,29973,29974,29975,29979,29981,29982,29984,29985,29986,29987,29988,29990,29991,29994,29998,30004,30006,30009,30012,30013,30015,30017,30018,30019,30020,30022,30023,30025,30026,30029,30032,30033,30034,30035,30037,30038,30039,30040,30045,30046,30047,30048,30049,30050,30051,30052,30055,30056,30057,30059,30060,30061,30062,30063,30064,30065,30067,30069,30070,30071,30074,30075,30076,30077,30078,30080,30081,30082,30084,30085,30087,57720,57721,57722,57723,57724,57725,57726,57727,57728,57729,57730,57731,57732,57733,57734,57735,57736,57737,57738,57739,57740,57741,57742,57743,57744,57745,57746,57747,57748,57749,57750,57751,57752,57753,57754,57755,57756,57757,57758,57759,57760,57761,57762,57763,57764,57765,57766,57767,57768,57769,57770,57771,57772,57773,57774,57775,57776,57777,57778,57779,57780,57781,57782,57783,57784,57785,57786,57787,57788,57789,57790,57791,57792,57793,57794,57795,57796,57797,57798,57799,57800,57801,57802,57803,57804,57805,57806,57807,57808,57809,57810,57811,57812,57813,30088,30089,30090,30092,30093,30094,30096,30099,30101,30104,30107,30108,30110,30114,30118,30119,30120,30121,30122,30125,30134,30135,30138,30139,30143,30144,30145,30150,30155,30156,30158,30159,30160,30161,30163,30167,30169,30170,30172,30173,30175,30176,30177,30181,30185,30188,30189,30190,30191,30194,30195,30197,30198,30199,30200,30202,30203,30205,30206,30210,30212,30214,30215,30216,30217,30219,30221,30222,30223,30225,30226,30227,30228,30230,30234,30236,30237,30238,30241,30243,30247,30248,30252,30254,30255,30257,30258,30262,30263,30265,30266,30267,30269,30273,30274,30276,57814,57815,57816,57817,57818,57819,57820,57821,57822,57823,57824,57825,57826,57827,57828,57829,57830,57831,57832,57833,57834,57835,57836,57837,57838,57839,57840,57841,57842,57843,57844,57845,57846,57847,57848,57849,57850,57851,57852,57853,57854,57855,57856,57857,57858,57859,57860,57861,57862,57863,57864,57865,57866,57867,57868,57869,57870,57871,57872,57873,57874,57875,57876,57877,57878,57879,57880,57881,57882,57883,57884,57885,57886,57887,57888,57889,57890,57891,57892,57893,57894,57895,57896,57897,57898,57899,57900,57901,57902,57903,57904,57905,57906,57907,30277,30278,30279,30280,30281,30282,30283,30286,30287,30288,30289,30290,30291,30293,30295,30296,30297,30298,30299,30301,30303,30304,30305,30306,30308,30309,30310,30311,30312,30313,30314,30316,30317,30318,30320,30321,30322,30323,30324,30325,30326,30327,30329,30330,30332,30335,30336,30337,30339,30341,30345,30346,30348,30349,30351,30352,30354,30356,30357,30359,30360,30362,30363,30364,30365,30366,30367,30368,30369,30370,30371,30373,30374,30375,30376,30377,30378,30379,30380,30381,30383,30384,30387,30389,30390,30391,30392,30393,30394,30395,30396,30397,30398,30400,30401,30403,21834,38463,22467,25384,21710,21769,21696,30353,30284,34108,30702,33406,30861,29233,38552,38797,27688,23433,20474,25353,26263,23736,33018,26696,32942,26114,30414,20985,25942,29100,32753,34948,20658,22885,25034,28595,33453,25420,25170,21485,21543,31494,20843,30116,24052,25300,36299,38774,25226,32793,22365,38712,32610,29240,30333,26575,30334,25670,20336,36133,25308,31255,26001,29677,25644,25203,33324,39041,26495,29256,25198,25292,20276,29923,21322,21150,32458,37030,24110,26758,27036,33152,32465,26834,30917,34444,38225,20621,35876,33502,32990,21253,35090,21093,30404,30407,30409,30411,30412,30419,30421,30425,30426,30428,30429,30430,30432,30433,30434,30435,30436,30438,30439,30440,30441,30442,30443,30444,30445,30448,30451,30453,30454,30455,30458,30459,30461,30463,30464,30466,30467,30469,30470,30474,30476,30478,30479,30480,30481,30482,30483,30484,30485,30486,30487,30488,30491,30492,30493,30494,30497,30499,30500,30501,30503,30506,30507,30508,30510,30512,30513,30514,30515,30516,30521,30523,30525,30526,30527,30530,30532,30533,30534,30536,30537,30538,30539,30540,30541,30542,30543,30546,30547,30548,30549,30550,30551,30552,30553,30556,34180,38649,20445,22561,39281,23453,25265,25253,26292,35961,40077,29190,26479,30865,24754,21329,21271,36744,32972,36125,38049,20493,29384,22791,24811,28953,34987,22868,33519,26412,31528,23849,32503,29997,27893,36454,36856,36924,40763,27604,37145,31508,24444,30887,34006,34109,27605,27609,27606,24065,24199,30201,38381,25949,24330,24517,36767,22721,33218,36991,38491,38829,36793,32534,36140,25153,20415,21464,21342,36776,36777,36779,36941,26631,24426,33176,34920,40150,24971,21035,30250,24428,25996,28626,28392,23486,25672,20853,20912,26564,19993,31177,39292,28851,30557,30558,30559,30560,30564,30567,30569,30570,30573,30574,30575,30576,30577,30578,30579,30580,30581,30582,30583,30584,30586,30587,30588,30593,30594,30595,30598,30599,30600,30601,30602,30603,30607,30608,30611,30612,30613,30614,30615,30616,30617,30618,30619,30620,30621,30622,30625,30627,30628,30630,30632,30635,30637,30638,30639,30641,30642,30644,30646,30647,30648,30649,30650,30652,30654,30656,30657,30658,30659,30660,30661,30662,30663,30664,30665,30666,30667,30668,30670,30671,30672,30673,30674,30675,30676,30677,30678,30680,30681,30682,30685,30686,30687,30688,30689,30692,30149,24182,29627,33760,25773,25320,38069,27874,21338,21187,25615,38082,31636,20271,24091,33334,33046,33162,28196,27850,39539,25429,21340,21754,34917,22496,19981,24067,27493,31807,37096,24598,25830,29468,35009,26448,25165,36130,30572,36393,37319,24425,33756,34081,39184,21442,34453,27531,24813,24808,28799,33485,33329,20179,27815,34255,25805,31961,27133,26361,33609,21397,31574,20391,20876,27979,23618,36461,25554,21449,33580,33590,26597,30900,25661,23519,23700,24046,35815,25286,26612,35962,25600,25530,34633,39307,35863,32544,38130,20135,38416,39076,26124,29462,30694,30696,30698,30703,30704,30705,30706,30708,30709,30711,30713,30714,30715,30716,30723,30724,30725,30726,30727,30728,30730,30731,30734,30735,30736,30739,30741,30745,30747,30750,30752,30753,30754,30756,30760,30762,30763,30766,30767,30769,30770,30771,30773,30774,30781,30783,30785,30786,30787,30788,30790,30792,30793,30794,30795,30797,30799,30801,30803,30804,30808,30809,30810,30811,30812,30814,30815,30816,30817,30818,30819,30820,30821,30822,30823,30824,30825,30831,30832,30833,30834,30835,30836,30837,30838,30840,30841,30842,30843,30845,30846,30847,30848,30849,30850,30851,22330,23581,24120,38271,20607,32928,21378,25950,30021,21809,20513,36229,25220,38046,26397,22066,28526,24034,21557,28818,36710,25199,25764,25507,24443,28552,37108,33251,36784,23576,26216,24561,27785,38472,36225,34924,25745,31216,22478,27225,25104,21576,20056,31243,24809,28548,35802,25215,36894,39563,31204,21507,30196,25345,21273,27744,36831,24347,39536,32827,40831,20360,23610,36196,32709,26021,28861,20805,20914,34411,23815,23456,25277,37228,30068,36364,31264,24833,31609,20167,32504,30597,19985,33261,21021,20986,27249,21416,36487,38148,38607,28353,38500,26970,30852,30853,30854,30856,30858,30859,30863,30864,30866,30868,30869,30870,30873,30877,30878,30880,30882,30884,30886,30888,30889,30890,30891,30892,30893,30894,30895,30901,30902,30903,30904,30906,30907,30908,30909,30911,30912,30914,30915,30916,30918,30919,30920,30924,30925,30926,30927,30929,30930,30931,30934,30935,30936,30938,30939,30940,30941,30942,30943,30944,30945,30946,30947,30948,30949,30950,30951,30953,30954,30955,30957,30958,30959,30960,30961,30963,30965,30966,30968,30969,30971,30972,30973,30974,30975,30976,30978,30979,30980,30982,30983,30984,30985,30986,30987,30988,30784,20648,30679,25616,35302,22788,25571,24029,31359,26941,20256,33337,21912,20018,30126,31383,24162,24202,38383,21019,21561,28810,25462,38180,22402,26149,26943,37255,21767,28147,32431,34850,25139,32496,30133,33576,30913,38604,36766,24904,29943,35789,27492,21050,36176,27425,32874,33905,22257,21254,20174,19995,20945,31895,37259,31751,20419,36479,31713,31388,25703,23828,20652,33030,30209,31929,28140,32736,26449,23384,23544,30923,25774,25619,25514,25387,38169,25645,36798,31572,30249,25171,22823,21574,27513,20643,25140,24102,27526,20195,36151,34955,24453,36910,30989,30990,30991,30992,30993,30994,30996,30997,30998,30999,31e3,31001,31002,31003,31004,31005,31007,31008,31009,31010,31011,31013,31014,31015,31016,31017,31018,31019,31020,31021,31022,31023,31024,31025,31026,31027,31029,31030,31031,31032,31033,31037,31039,31042,31043,31044,31045,31047,31050,31051,31052,31053,31054,31055,31056,31057,31058,31060,31061,31064,31065,31073,31075,31076,31078,31081,31082,31083,31084,31086,31088,31089,31090,31091,31092,31093,31094,31097,31099,31100,31101,31102,31103,31106,31107,31110,31111,31112,31113,31115,31116,31117,31118,31120,31121,31122,24608,32829,25285,20025,21333,37112,25528,32966,26086,27694,20294,24814,28129,35806,24377,34507,24403,25377,20826,33633,26723,20992,25443,36424,20498,23707,31095,23548,21040,31291,24764,36947,30423,24503,24471,30340,36460,28783,30331,31561,30634,20979,37011,22564,20302,28404,36842,25932,31515,29380,28068,32735,23265,25269,24213,22320,33922,31532,24093,24351,36882,32532,39072,25474,28359,30872,28857,20856,38747,22443,30005,20291,30008,24215,24806,22880,28096,27583,30857,21500,38613,20939,20993,25481,21514,38035,35843,36300,29241,30879,34678,36845,35853,21472,31123,31124,31125,31126,31127,31128,31129,31131,31132,31133,31134,31135,31136,31137,31138,31139,31140,31141,31142,31144,31145,31146,31147,31148,31149,31150,31151,31152,31153,31154,31156,31157,31158,31159,31160,31164,31167,31170,31172,31173,31175,31176,31178,31180,31182,31183,31184,31187,31188,31190,31191,31193,31194,31195,31196,31197,31198,31200,31201,31202,31205,31208,31210,31212,31214,31217,31218,31219,31220,31221,31222,31223,31225,31226,31228,31230,31231,31233,31236,31237,31239,31240,31241,31242,31244,31247,31248,31249,31250,31251,31253,31254,31256,31257,31259,31260,19969,30447,21486,38025,39030,40718,38189,23450,35746,20002,19996,20908,33891,25026,21160,26635,20375,24683,20923,27934,20828,25238,26007,38497,35910,36887,30168,37117,30563,27602,29322,29420,35835,22581,30585,36172,26460,38208,32922,24230,28193,22930,31471,30701,38203,27573,26029,32526,22534,20817,38431,23545,22697,21544,36466,25958,39039,22244,38045,30462,36929,25479,21702,22810,22842,22427,36530,26421,36346,33333,21057,24816,22549,34558,23784,40517,20420,39069,35769,23077,24694,21380,25212,36943,37122,39295,24681,32780,20799,32819,23572,39285,27953,20108,31261,31263,31265,31266,31268,31269,31270,31271,31272,31273,31274,31275,31276,31277,31278,31279,31280,31281,31282,31284,31285,31286,31288,31290,31294,31296,31297,31298,31299,31300,31301,31303,31304,31305,31306,31307,31308,31309,31310,31311,31312,31314,31315,31316,31317,31318,31320,31321,31322,31323,31324,31325,31326,31327,31328,31329,31330,31331,31332,31333,31334,31335,31336,31337,31338,31339,31340,31341,31342,31343,31345,31346,31347,31349,31355,31356,31357,31358,31362,31365,31367,31369,31370,31371,31372,31374,31375,31376,31379,31380,31385,31386,31387,31390,31393,31394,36144,21457,32602,31567,20240,20047,38400,27861,29648,34281,24070,30058,32763,27146,30718,38034,32321,20961,28902,21453,36820,33539,36137,29359,39277,27867,22346,33459,26041,32938,25151,38450,22952,20223,35775,32442,25918,33778,38750,21857,39134,32933,21290,35837,21536,32954,24223,27832,36153,33452,37210,21545,27675,20998,32439,22367,28954,27774,31881,22859,20221,24575,24868,31914,20016,23553,26539,34562,23792,38155,39118,30127,28925,36898,20911,32541,35773,22857,20964,20315,21542,22827,25975,32932,23413,25206,25282,36752,24133,27679,31526,20239,20440,26381,31395,31396,31399,31401,31402,31403,31406,31407,31408,31409,31410,31412,31413,31414,31415,31416,31417,31418,31419,31420,31421,31422,31424,31425,31426,31427,31428,31429,31430,31431,31432,31433,31434,31436,31437,31438,31439,31440,31441,31442,31443,31444,31445,31447,31448,31450,31451,31452,31453,31457,31458,31460,31463,31464,31465,31466,31467,31468,31470,31472,31473,31474,31475,31476,31477,31478,31479,31480,31483,31484,31486,31488,31489,31490,31493,31495,31497,31500,31501,31502,31504,31506,31507,31510,31511,31512,31514,31516,31517,31519,31521,31522,31523,31527,31529,31533,28014,28074,31119,34993,24343,29995,25242,36741,20463,37340,26023,33071,33105,24220,33104,36212,21103,35206,36171,22797,20613,20184,38428,29238,33145,36127,23500,35747,38468,22919,32538,21648,22134,22030,35813,25913,27010,38041,30422,28297,24178,29976,26438,26577,31487,32925,36214,24863,31174,25954,36195,20872,21018,38050,32568,32923,32434,23703,28207,26464,31705,30347,39640,33167,32660,31957,25630,38224,31295,21578,21733,27468,25601,25096,40509,33011,30105,21106,38761,33883,26684,34532,38401,38548,38124,20010,21508,32473,26681,36319,32789,26356,24218,32697,31535,31536,31538,31540,31541,31542,31543,31545,31547,31549,31551,31552,31553,31554,31555,31556,31558,31560,31562,31565,31566,31571,31573,31575,31577,31580,31582,31583,31585,31587,31588,31589,31590,31591,31592,31593,31594,31595,31596,31597,31599,31600,31603,31604,31606,31608,31610,31612,31613,31615,31617,31618,31619,31620,31622,31623,31624,31625,31626,31627,31628,31630,31631,31633,31634,31635,31638,31640,31641,31642,31643,31646,31647,31648,31651,31652,31653,31662,31663,31664,31666,31667,31669,31670,31671,31673,31674,31675,31676,31677,31678,31679,31680,31682,31683,31684,22466,32831,26775,24037,25915,21151,24685,40858,20379,36524,20844,23467,24339,24041,27742,25329,36129,20849,38057,21246,27807,33503,29399,22434,26500,36141,22815,36764,33735,21653,31629,20272,27837,23396,22993,40723,21476,34506,39592,35895,32929,25925,39038,22266,38599,21038,29916,21072,23521,25346,35074,20054,25296,24618,26874,20851,23448,20896,35266,31649,39302,32592,24815,28748,36143,20809,24191,36891,29808,35268,22317,30789,24402,40863,38394,36712,39740,35809,30328,26690,26588,36330,36149,21053,36746,28378,26829,38149,37101,22269,26524,35065,36807,21704,31685,31688,31689,31690,31691,31693,31694,31695,31696,31698,31700,31701,31702,31703,31704,31707,31708,31710,31711,31712,31714,31715,31716,31719,31720,31721,31723,31724,31725,31727,31728,31730,31731,31732,31733,31734,31736,31737,31738,31739,31741,31743,31744,31745,31746,31747,31748,31749,31750,31752,31753,31754,31757,31758,31760,31761,31762,31763,31764,31765,31767,31768,31769,31770,31771,31772,31773,31774,31776,31777,31778,31779,31780,31781,31784,31785,31787,31788,31789,31790,31791,31792,31793,31794,31795,31796,31797,31798,31799,31801,31802,31803,31804,31805,31806,31810,39608,23401,28023,27686,20133,23475,39559,37219,25e3,37039,38889,21547,28085,23506,20989,21898,32597,32752,25788,25421,26097,25022,24717,28938,27735,27721,22831,26477,33322,22741,22158,35946,27627,37085,22909,32791,21495,28009,21621,21917,33655,33743,26680,31166,21644,20309,21512,30418,35977,38402,27827,28088,36203,35088,40548,36154,22079,40657,30165,24456,29408,24680,21756,20136,27178,34913,24658,36720,21700,28888,34425,40511,27946,23439,24344,32418,21897,20399,29492,21564,21402,20505,21518,21628,20046,24573,29786,22774,33899,32993,34676,29392,31946,28246,31811,31812,31813,31814,31815,31816,31817,31818,31819,31820,31822,31823,31824,31825,31826,31827,31828,31829,31830,31831,31832,31833,31834,31835,31836,31837,31838,31839,31840,31841,31842,31843,31844,31845,31846,31847,31848,31849,31850,31851,31852,31853,31854,31855,31856,31857,31858,31861,31862,31863,31864,31865,31866,31870,31871,31872,31873,31874,31875,31876,31877,31878,31879,31880,31882,31883,31884,31885,31886,31887,31888,31891,31892,31894,31897,31898,31899,31904,31905,31907,31910,31911,31912,31913,31915,31916,31917,31919,31920,31924,31925,31926,31927,31928,31930,31931,24359,34382,21804,25252,20114,27818,25143,33457,21719,21326,29502,28369,30011,21010,21270,35805,27088,24458,24576,28142,22351,27426,29615,26707,36824,32531,25442,24739,21796,30186,35938,28949,28067,23462,24187,33618,24908,40644,30970,34647,31783,30343,20976,24822,29004,26179,24140,24653,35854,28784,25381,36745,24509,24674,34516,22238,27585,24724,24935,21321,24800,26214,36159,31229,20250,28905,27719,35763,35826,32472,33636,26127,23130,39746,27985,28151,35905,27963,20249,28779,33719,25110,24785,38669,36135,31096,20987,22334,22522,26426,30072,31293,31215,31637,31935,31936,31938,31939,31940,31942,31945,31947,31950,31951,31952,31953,31954,31955,31956,31960,31962,31963,31965,31966,31969,31970,31971,31972,31973,31974,31975,31977,31978,31979,31980,31981,31982,31984,31985,31986,31987,31988,31989,31990,31991,31993,31994,31996,31997,31998,31999,32e3,32001,32002,32003,32004,32005,32006,32007,32008,32009,32011,32012,32013,32014,32015,32016,32017,32018,32019,32020,32021,32022,32023,32024,32025,32026,32027,32028,32029,32030,32031,32033,32035,32036,32037,32038,32040,32041,32042,32044,32045,32046,32048,32049,32050,32051,32052,32053,32054,32908,39269,36857,28608,35749,40481,23020,32489,32521,21513,26497,26840,36753,31821,38598,21450,24613,30142,27762,21363,23241,32423,25380,20960,33034,24049,34015,25216,20864,23395,20238,31085,21058,24760,27982,23492,23490,35745,35760,26082,24524,38469,22931,32487,32426,22025,26551,22841,20339,23478,21152,33626,39050,36158,30002,38078,20551,31292,20215,26550,39550,23233,27516,30417,22362,23574,31546,38388,29006,20860,32937,33392,22904,32516,33575,26816,26604,30897,30839,25315,25441,31616,20461,21098,20943,33616,27099,37492,36341,36145,35265,38190,31661,20214,32055,32056,32057,32058,32059,32060,32061,32062,32063,32064,32065,32066,32067,32068,32069,32070,32071,32072,32073,32074,32075,32076,32077,32078,32079,32080,32081,32082,32083,32084,32085,32086,32087,32088,32089,32090,32091,32092,32093,32094,32095,32096,32097,32098,32099,32100,32101,32102,32103,32104,32105,32106,32107,32108,32109,32111,32112,32113,32114,32115,32116,32117,32118,32120,32121,32122,32123,32124,32125,32126,32127,32128,32129,32130,32131,32132,32133,32134,32135,32136,32137,32138,32139,32140,32141,32142,32143,32144,32145,32146,32147,32148,32149,32150,32151,32152,20581,33328,21073,39279,28176,28293,28071,24314,20725,23004,23558,27974,27743,30086,33931,26728,22870,35762,21280,37233,38477,34121,26898,30977,28966,33014,20132,37066,27975,39556,23047,22204,25605,38128,30699,20389,33050,29409,35282,39290,32564,32478,21119,25945,37237,36735,36739,21483,31382,25581,25509,30342,31224,34903,38454,25130,21163,33410,26708,26480,25463,30571,31469,27905,32467,35299,22992,25106,34249,33445,30028,20511,20171,30117,35819,23626,24062,31563,26020,37329,20170,27941,35167,32039,38182,20165,35880,36827,38771,26187,31105,36817,28908,28024,32153,32154,32155,32156,32157,32158,32159,32160,32161,32162,32163,32164,32165,32167,32168,32169,32170,32171,32172,32173,32175,32176,32177,32178,32179,32180,32181,32182,32183,32184,32185,32186,32187,32188,32189,32190,32191,32192,32193,32194,32195,32196,32197,32198,32199,32200,32201,32202,32203,32204,32205,32206,32207,32208,32209,32210,32211,32212,32213,32214,32215,32216,32217,32218,32219,32220,32221,32222,32223,32224,32225,32226,32227,32228,32229,32230,32231,32232,32233,32234,32235,32236,32237,32238,32239,32240,32241,32242,32243,32244,32245,32246,32247,32248,32249,32250,23613,21170,33606,20834,33550,30555,26230,40120,20140,24778,31934,31923,32463,20117,35686,26223,39048,38745,22659,25964,38236,24452,30153,38742,31455,31454,20928,28847,31384,25578,31350,32416,29590,38893,20037,28792,20061,37202,21417,25937,26087,33276,33285,21646,23601,30106,38816,25304,29401,30141,23621,39545,33738,23616,21632,30697,20030,27822,32858,25298,25454,24040,20855,36317,36382,38191,20465,21477,24807,28844,21095,25424,40515,23071,20518,30519,21367,32482,25733,25899,25225,25496,20500,29237,35273,20915,35776,32477,22343,33740,38055,20891,21531,23803,32251,32252,32253,32254,32255,32256,32257,32258,32259,32260,32261,32262,32263,32264,32265,32266,32267,32268,32269,32270,32271,32272,32273,32274,32275,32276,32277,32278,32279,32280,32281,32282,32283,32284,32285,32286,32287,32288,32289,32290,32291,32292,32293,32294,32295,32296,32297,32298,32299,32300,32301,32302,32303,32304,32305,32306,32307,32308,32309,32310,32311,32312,32313,32314,32316,32317,32318,32319,32320,32322,32323,32324,32325,32326,32328,32329,32330,32331,32332,32333,32334,32335,32336,32337,32338,32339,32340,32341,32342,32343,32344,32345,32346,32347,32348,32349,20426,31459,27994,37089,39567,21888,21654,21345,21679,24320,25577,26999,20975,24936,21002,22570,21208,22350,30733,30475,24247,24951,31968,25179,25239,20130,28821,32771,25335,28900,38752,22391,33499,26607,26869,30933,39063,31185,22771,21683,21487,28212,20811,21051,23458,35838,32943,21827,22438,24691,22353,21549,31354,24656,23380,25511,25248,21475,25187,23495,26543,21741,31391,33510,37239,24211,35044,22840,22446,25358,36328,33007,22359,31607,20393,24555,23485,27454,21281,31568,29378,26694,30719,30518,26103,20917,20111,30420,23743,31397,33909,22862,39745,20608,32350,32351,32352,32353,32354,32355,32356,32357,32358,32359,32360,32361,32362,32363,32364,32365,32366,32367,32368,32369,32370,32371,32372,32373,32374,32375,32376,32377,32378,32379,32380,32381,32382,32383,32384,32385,32387,32388,32389,32390,32391,32392,32393,32394,32395,32396,32397,32398,32399,32400,32401,32402,32403,32404,32405,32406,32407,32408,32409,32410,32412,32413,32414,32430,32436,32443,32444,32470,32484,32492,32505,32522,32528,32542,32567,32569,32571,32572,32573,32574,32575,32576,32577,32579,32582,32583,32584,32585,32586,32587,32588,32589,32590,32591,32594,32595,39304,24871,28291,22372,26118,25414,22256,25324,25193,24275,38420,22403,25289,21895,34593,33098,36771,21862,33713,26469,36182,34013,23146,26639,25318,31726,38417,20848,28572,35888,25597,35272,25042,32518,28866,28389,29701,27028,29436,24266,37070,26391,28010,25438,21171,29282,32769,20332,23013,37226,28889,28061,21202,20048,38647,38253,34174,30922,32047,20769,22418,25794,32907,31867,27882,26865,26974,20919,21400,26792,29313,40654,31729,29432,31163,28435,29702,26446,37324,40100,31036,33673,33620,21519,26647,20029,21385,21169,30782,21382,21033,20616,20363,20432,32598,32601,32603,32604,32605,32606,32608,32611,32612,32613,32614,32615,32619,32620,32621,32623,32624,32627,32629,32630,32631,32632,32634,32635,32636,32637,32639,32640,32642,32643,32644,32645,32646,32647,32648,32649,32651,32653,32655,32656,32657,32658,32659,32661,32662,32663,32664,32665,32667,32668,32672,32674,32675,32677,32678,32680,32681,32682,32683,32684,32685,32686,32689,32691,32692,32693,32694,32695,32698,32699,32702,32704,32706,32707,32708,32710,32711,32712,32713,32715,32717,32719,32720,32721,32722,32723,32726,32727,32729,32730,32731,32732,32733,32734,32738,32739,30178,31435,31890,27813,38582,21147,29827,21737,20457,32852,33714,36830,38256,24265,24604,28063,24088,25947,33080,38142,24651,28860,32451,31918,20937,26753,31921,33391,20004,36742,37327,26238,20142,35845,25769,32842,20698,30103,29134,23525,36797,28518,20102,25730,38243,24278,26009,21015,35010,28872,21155,29454,29747,26519,30967,38678,20020,37051,40158,28107,20955,36161,21533,25294,29618,33777,38646,40836,38083,20278,32666,20940,28789,38517,23725,39046,21478,20196,28316,29705,27060,30827,39311,30041,21016,30244,27969,26611,20845,40857,32843,21657,31548,31423,32740,32743,32744,32746,32747,32748,32749,32751,32754,32756,32757,32758,32759,32760,32761,32762,32765,32766,32767,32770,32775,32776,32777,32778,32782,32783,32785,32787,32794,32795,32797,32798,32799,32801,32803,32804,32811,32812,32813,32814,32815,32816,32818,32820,32825,32826,32828,32830,32832,32833,32836,32837,32839,32840,32841,32846,32847,32848,32849,32851,32853,32854,32855,32857,32859,32860,32861,32862,32863,32864,32865,32866,32867,32868,32869,32870,32871,32872,32875,32876,32877,32878,32879,32880,32882,32883,32884,32885,32886,32887,32888,32889,32890,32891,32892,32893,38534,22404,25314,38471,27004,23044,25602,31699,28431,38475,33446,21346,39045,24208,28809,25523,21348,34383,40065,40595,30860,38706,36335,36162,40575,28510,31108,24405,38470,25134,39540,21525,38109,20387,26053,23653,23649,32533,34385,27695,24459,29575,28388,32511,23782,25371,23402,28390,21365,20081,25504,30053,25249,36718,20262,20177,27814,32438,35770,33821,34746,32599,36923,38179,31657,39585,35064,33853,27931,39558,32476,22920,40635,29595,30721,34434,39532,39554,22043,21527,22475,20080,40614,21334,36808,33033,30610,39314,34542,28385,34067,26364,24930,28459,32894,32897,32898,32901,32904,32906,32909,32910,32911,32912,32913,32914,32916,32917,32919,32921,32926,32931,32934,32935,32936,32940,32944,32947,32949,32950,32952,32953,32955,32965,32967,32968,32969,32970,32971,32975,32976,32977,32978,32979,32980,32981,32984,32991,32992,32994,32995,32998,33006,33013,33015,33017,33019,33022,33023,33024,33025,33027,33028,33029,33031,33032,33035,33036,33045,33047,33049,33051,33052,33053,33055,33056,33057,33058,33059,33060,33061,33062,33063,33064,33065,33066,33067,33069,33070,33072,33075,33076,33077,33079,33081,33082,33083,33084,33085,33087,35881,33426,33579,30450,27667,24537,33725,29483,33541,38170,27611,30683,38086,21359,33538,20882,24125,35980,36152,20040,29611,26522,26757,37238,38665,29028,27809,30473,23186,38209,27599,32654,26151,23504,22969,23194,38376,38391,20204,33804,33945,27308,30431,38192,29467,26790,23391,30511,37274,38753,31964,36855,35868,24357,31859,31192,35269,27852,34588,23494,24130,26825,30496,32501,20885,20813,21193,23081,32517,38754,33495,25551,30596,34256,31186,28218,24217,22937,34065,28781,27665,25279,30399,25935,24751,38397,26126,34719,40483,38125,21517,21629,35884,25720,33088,33089,33090,33091,33092,33093,33095,33097,33101,33102,33103,33106,33110,33111,33112,33115,33116,33117,33118,33119,33121,33122,33123,33124,33126,33128,33130,33131,33132,33135,33138,33139,33141,33142,33143,33144,33153,33155,33156,33157,33158,33159,33161,33163,33164,33165,33166,33168,33170,33171,33172,33173,33174,33175,33177,33178,33182,33183,33184,33185,33186,33188,33189,33191,33193,33195,33196,33197,33198,33199,33200,33201,33202,33204,33205,33206,33207,33208,33209,33212,33213,33214,33215,33220,33221,33223,33224,33225,33227,33229,33230,33231,33232,33233,33234,33235,25721,34321,27169,33180,30952,25705,39764,25273,26411,33707,22696,40664,27819,28448,23518,38476,35851,29279,26576,25287,29281,20137,22982,27597,22675,26286,24149,21215,24917,26408,30446,30566,29287,31302,25343,21738,21584,38048,37027,23068,32435,27670,20035,22902,32784,22856,21335,30007,38590,22218,25376,33041,24700,38393,28118,21602,39297,20869,23273,33021,22958,38675,20522,27877,23612,25311,20320,21311,33147,36870,28346,34091,25288,24180,30910,25781,25467,24565,23064,37247,40479,23615,25423,32834,23421,21870,38218,38221,28037,24744,26592,29406,20957,23425,33236,33237,33238,33239,33240,33241,33242,33243,33244,33245,33246,33247,33248,33249,33250,33252,33253,33254,33256,33257,33259,33262,33263,33264,33265,33266,33269,33270,33271,33272,33273,33274,33277,33279,33283,33287,33288,33289,33290,33291,33294,33295,33297,33299,33301,33302,33303,33304,33305,33306,33309,33312,33316,33317,33318,33319,33321,33326,33330,33338,33340,33341,33343,33344,33345,33346,33347,33349,33350,33352,33354,33356,33357,33358,33360,33361,33362,33363,33364,33365,33366,33367,33369,33371,33372,33373,33374,33376,33377,33378,33379,33380,33381,33382,33383,33385,25319,27870,29275,25197,38062,32445,33043,27987,20892,24324,22900,21162,24594,22899,26262,34384,30111,25386,25062,31983,35834,21734,27431,40485,27572,34261,21589,20598,27812,21866,36276,29228,24085,24597,29750,25293,25490,29260,24472,28227,27966,25856,28504,30424,30928,30460,30036,21028,21467,20051,24222,26049,32810,32982,25243,21638,21032,28846,34957,36305,27873,21624,32986,22521,35060,36180,38506,37197,20329,27803,21943,30406,30768,25256,28921,28558,24429,34028,26842,30844,31735,33192,26379,40527,25447,30896,22383,30738,38713,25209,25259,21128,29749,27607,33386,33387,33388,33389,33393,33397,33398,33399,33400,33403,33404,33408,33409,33411,33413,33414,33415,33417,33420,33424,33427,33428,33429,33430,33434,33435,33438,33440,33442,33443,33447,33458,33461,33462,33466,33467,33468,33471,33472,33474,33475,33477,33478,33481,33488,33494,33497,33498,33501,33506,33511,33512,33513,33514,33516,33517,33518,33520,33522,33523,33525,33526,33528,33530,33532,33533,33534,33535,33536,33546,33547,33549,33552,33554,33555,33558,33560,33561,33565,33566,33567,33568,33569,33570,33571,33572,33573,33574,33577,33578,33582,33584,33586,33591,33595,33597,21860,33086,30130,30382,21305,30174,20731,23617,35692,31687,20559,29255,39575,39128,28418,29922,31080,25735,30629,25340,39057,36139,21697,32856,20050,22378,33529,33805,24179,20973,29942,35780,23631,22369,27900,39047,23110,30772,39748,36843,31893,21078,25169,38138,20166,33670,33889,33769,33970,22484,26420,22275,26222,28006,35889,26333,28689,26399,27450,26646,25114,22971,19971,20932,28422,26578,27791,20854,26827,22855,27495,30054,23822,33040,40784,26071,31048,31041,39569,36215,23682,20062,20225,21551,22865,30732,22120,27668,36804,24323,27773,27875,35755,25488,33598,33599,33601,33602,33604,33605,33608,33610,33611,33612,33613,33614,33619,33621,33622,33623,33624,33625,33629,33634,33648,33649,33650,33651,33652,33653,33654,33657,33658,33662,33663,33664,33665,33666,33667,33668,33671,33672,33674,33675,33676,33677,33679,33680,33681,33684,33685,33686,33687,33689,33690,33693,33695,33697,33698,33699,33700,33701,33702,33703,33708,33709,33710,33711,33717,33723,33726,33727,33730,33731,33732,33734,33736,33737,33739,33741,33742,33744,33745,33746,33747,33749,33751,33753,33754,33755,33758,33762,33763,33764,33766,33767,33768,33771,33772,33773,24688,27965,29301,25190,38030,38085,21315,36801,31614,20191,35878,20094,40660,38065,38067,21069,28508,36963,27973,35892,22545,23884,27424,27465,26538,21595,33108,32652,22681,34103,24378,25250,27207,38201,25970,24708,26725,30631,20052,20392,24039,38808,25772,32728,23789,20431,31373,20999,33540,19988,24623,31363,38054,20405,20146,31206,29748,21220,33465,25810,31165,23517,27777,38738,36731,27682,20542,21375,28165,25806,26228,27696,24773,39031,35831,24198,29756,31351,31179,19992,37041,29699,27714,22234,37195,27845,36235,21306,34502,26354,36527,23624,39537,28192,33774,33775,33779,33780,33781,33782,33783,33786,33787,33788,33790,33791,33792,33794,33797,33799,33800,33801,33802,33808,33810,33811,33812,33813,33814,33815,33817,33818,33819,33822,33823,33824,33825,33826,33827,33833,33834,33835,33836,33837,33838,33839,33840,33842,33843,33844,33845,33846,33847,33849,33850,33851,33854,33855,33856,33857,33858,33859,33860,33861,33863,33864,33865,33866,33867,33868,33869,33870,33871,33872,33874,33875,33876,33877,33878,33880,33885,33886,33887,33888,33890,33892,33893,33894,33895,33896,33898,33902,33903,33904,33906,33908,33911,33913,33915,33916,21462,23094,40843,36259,21435,22280,39079,26435,37275,27849,20840,30154,25331,29356,21048,21149,32570,28820,30264,21364,40522,27063,30830,38592,35033,32676,28982,29123,20873,26579,29924,22756,25880,22199,35753,39286,25200,32469,24825,28909,22764,20161,20154,24525,38887,20219,35748,20995,22922,32427,25172,20173,26085,25102,33592,33993,33635,34701,29076,28342,23481,32466,20887,25545,26580,32905,33593,34837,20754,23418,22914,36785,20083,27741,20837,35109,36719,38446,34122,29790,38160,38384,28070,33509,24369,25746,27922,33832,33134,40131,22622,36187,19977,21441,33917,33918,33919,33920,33921,33923,33924,33925,33926,33930,33933,33935,33936,33937,33938,33939,33940,33941,33942,33944,33946,33947,33949,33950,33951,33952,33954,33955,33956,33957,33958,33959,33960,33961,33962,33963,33964,33965,33966,33968,33969,33971,33973,33974,33975,33979,33980,33982,33984,33986,33987,33989,33990,33991,33992,33995,33996,33998,33999,34002,34004,34005,34007,34008,34009,34010,34011,34012,34014,34017,34018,34020,34023,34024,34025,34026,34027,34029,34030,34031,34033,34034,34035,34036,34037,34038,34039,34040,34041,34042,34043,34045,34046,34048,34049,34050,20254,25955,26705,21971,20007,25620,39578,25195,23234,29791,33394,28073,26862,20711,33678,30722,26432,21049,27801,32433,20667,21861,29022,31579,26194,29642,33515,26441,23665,21024,29053,34923,38378,38485,25797,36193,33203,21892,27733,25159,32558,22674,20260,21830,36175,26188,19978,23578,35059,26786,25422,31245,28903,33421,21242,38902,23569,21736,37045,32461,22882,36170,34503,33292,33293,36198,25668,23556,24913,28041,31038,35774,30775,30003,21627,20280,36523,28145,23072,32453,31070,27784,23457,23158,29978,32958,24910,28183,22768,29983,29989,29298,21319,32499,34051,34052,34053,34054,34055,34056,34057,34058,34059,34061,34062,34063,34064,34066,34068,34069,34070,34072,34073,34075,34076,34077,34078,34080,34082,34083,34084,34085,34086,34087,34088,34089,34090,34093,34094,34095,34096,34097,34098,34099,34100,34101,34102,34110,34111,34112,34113,34114,34116,34117,34118,34119,34123,34124,34125,34126,34127,34128,34129,34130,34131,34132,34133,34135,34136,34138,34139,34140,34141,34143,34144,34145,34146,34147,34149,34150,34151,34153,34154,34155,34156,34157,34158,34159,34160,34161,34163,34165,34166,34167,34168,34172,34173,34175,34176,34177,30465,30427,21097,32988,22307,24072,22833,29422,26045,28287,35799,23608,34417,21313,30707,25342,26102,20160,39135,34432,23454,35782,21490,30690,20351,23630,39542,22987,24335,31034,22763,19990,26623,20107,25325,35475,36893,21183,26159,21980,22124,36866,20181,20365,37322,39280,27663,24066,24643,23460,35270,35797,25910,25163,39318,23432,23551,25480,21806,21463,30246,20861,34092,26530,26803,27530,25234,36755,21460,33298,28113,30095,20070,36174,23408,29087,34223,26257,26329,32626,34560,40653,40736,23646,26415,36848,26641,26463,25101,31446,22661,24246,25968,28465,34178,34179,34182,34184,34185,34186,34187,34188,34189,34190,34192,34193,34194,34195,34196,34197,34198,34199,34200,34201,34202,34205,34206,34207,34208,34209,34210,34211,34213,34214,34215,34217,34219,34220,34221,34225,34226,34227,34228,34229,34230,34232,34234,34235,34236,34237,34238,34239,34240,34242,34243,34244,34245,34246,34247,34248,34250,34251,34252,34253,34254,34257,34258,34260,34262,34263,34264,34265,34266,34267,34269,34270,34271,34272,34273,34274,34275,34277,34278,34279,34280,34282,34283,34284,34285,34286,34287,34288,34289,34290,34291,34292,34293,34294,34295,34296,24661,21047,32781,25684,34928,29993,24069,26643,25332,38684,21452,29245,35841,27700,30561,31246,21550,30636,39034,33308,35828,30805,26388,28865,26031,25749,22070,24605,31169,21496,19997,27515,32902,23546,21987,22235,20282,20284,39282,24051,26494,32824,24578,39042,36865,23435,35772,35829,25628,33368,25822,22013,33487,37221,20439,32032,36895,31903,20723,22609,28335,23487,35785,32899,37240,33948,31639,34429,38539,38543,32485,39635,30862,23681,31319,36930,38567,31071,23385,25439,31499,34001,26797,21766,32553,29712,32034,38145,25152,22604,20182,23427,22905,22612,34297,34298,34300,34301,34302,34304,34305,34306,34307,34308,34310,34311,34312,34313,34314,34315,34316,34317,34318,34319,34320,34322,34323,34324,34325,34327,34328,34329,34330,34331,34332,34333,34334,34335,34336,34337,34338,34339,34340,34341,34342,34344,34346,34347,34348,34349,34350,34351,34352,34353,34354,34355,34356,34357,34358,34359,34361,34362,34363,34365,34366,34367,34368,34369,34370,34371,34372,34373,34374,34375,34376,34377,34378,34379,34380,34386,34387,34389,34390,34391,34392,34393,34395,34396,34397,34399,34400,34401,34403,34404,34405,34406,34407,34408,34409,34410,29549,25374,36427,36367,32974,33492,25260,21488,27888,37214,22826,24577,27760,22349,25674,36138,30251,28393,22363,27264,30192,28525,35885,35848,22374,27631,34962,30899,25506,21497,28845,27748,22616,25642,22530,26848,33179,21776,31958,20504,36538,28108,36255,28907,25487,28059,28372,32486,33796,26691,36867,28120,38518,35752,22871,29305,34276,33150,30140,35466,26799,21076,36386,38161,25552,39064,36420,21884,20307,26367,22159,24789,28053,21059,23625,22825,28155,22635,3e4,29980,24684,33300,33094,25361,26465,36834,30522,36339,36148,38081,24086,21381,21548,28867,34413,34415,34416,34418,34419,34420,34421,34422,34423,34424,34435,34436,34437,34438,34439,34440,34441,34446,34447,34448,34449,34450,34452,34454,34455,34456,34457,34458,34459,34462,34463,34464,34465,34466,34469,34470,34475,34477,34478,34482,34483,34487,34488,34489,34491,34492,34493,34494,34495,34497,34498,34499,34501,34504,34508,34509,34514,34515,34517,34518,34519,34522,34524,34525,34528,34529,34530,34531,34533,34534,34535,34536,34538,34539,34540,34543,34549,34550,34551,34554,34555,34556,34557,34559,34561,34564,34565,34566,34571,34572,34574,34575,34576,34577,34580,34582,27712,24311,20572,20141,24237,25402,33351,36890,26704,37230,30643,21516,38108,24420,31461,26742,25413,31570,32479,30171,20599,25237,22836,36879,20984,31171,31361,22270,24466,36884,28034,23648,22303,21520,20820,28237,22242,25512,39059,33151,34581,35114,36864,21534,23663,33216,25302,25176,33073,40501,38464,39534,39548,26925,22949,25299,21822,25366,21703,34521,27964,23043,29926,34972,27498,22806,35916,24367,28286,29609,39037,20024,28919,23436,30871,25405,26202,30358,24779,23451,23113,19975,33109,27754,29579,20129,26505,32593,24448,26106,26395,24536,22916,23041,34585,34587,34589,34591,34592,34596,34598,34599,34600,34602,34603,34604,34605,34607,34608,34610,34611,34613,34614,34616,34617,34618,34620,34621,34624,34625,34626,34627,34628,34629,34630,34634,34635,34637,34639,34640,34641,34642,34644,34645,34646,34648,34650,34651,34652,34653,34654,34655,34657,34658,34662,34663,34664,34665,34666,34667,34668,34669,34671,34673,34674,34675,34677,34679,34680,34681,34682,34687,34688,34689,34692,34694,34695,34697,34698,34700,34702,34703,34704,34705,34706,34708,34709,34710,34712,34713,34714,34715,34716,34717,34718,34720,34721,34722,34723,34724,24013,24494,21361,38886,36829,26693,22260,21807,24799,20026,28493,32500,33479,33806,22996,20255,20266,23614,32428,26410,34074,21619,30031,32963,21890,39759,20301,28205,35859,23561,24944,21355,30239,28201,34442,25991,38395,32441,21563,31283,32010,38382,21985,32705,29934,25373,34583,28065,31389,25105,26017,21351,25569,27779,24043,21596,38056,20044,27745,35820,23627,26080,33436,26791,21566,21556,27595,27494,20116,25410,21320,33310,20237,20398,22366,25098,38654,26212,29289,21247,21153,24735,35823,26132,29081,26512,35199,30802,30717,26224,22075,21560,38177,29306,34725,34726,34727,34729,34730,34734,34736,34737,34738,34740,34742,34743,34744,34745,34747,34748,34750,34751,34753,34754,34755,34756,34757,34759,34760,34761,34764,34765,34766,34767,34768,34772,34773,34774,34775,34776,34777,34778,34780,34781,34782,34783,34785,34786,34787,34788,34790,34791,34792,34793,34795,34796,34797,34799,34800,34801,34802,34803,34804,34805,34806,34807,34808,34810,34811,34812,34813,34815,34816,34817,34818,34820,34821,34822,34823,34824,34825,34827,34828,34829,34830,34831,34832,34833,34834,34836,34839,34840,34841,34842,34844,34845,34846,34847,34848,34851,31232,24687,24076,24713,33181,22805,24796,29060,28911,28330,27728,29312,27268,34989,24109,20064,23219,21916,38115,27927,31995,38553,25103,32454,30606,34430,21283,38686,36758,26247,23777,20384,29421,19979,21414,22799,21523,25472,38184,20808,20185,40092,32420,21688,36132,34900,33335,38386,28046,24358,23244,26174,38505,29616,29486,21439,33146,39301,32673,23466,38519,38480,32447,30456,21410,38262,39321,31665,35140,28248,20065,32724,31077,35814,24819,21709,20139,39033,24055,27233,20687,21521,35937,33831,30813,38660,21066,21742,22179,38144,28040,23477,28102,26195,34852,34853,34854,34855,34856,34857,34858,34859,34860,34861,34862,34863,34864,34865,34867,34868,34869,34870,34871,34872,34874,34875,34877,34878,34879,34881,34882,34883,34886,34887,34888,34889,34890,34891,34894,34895,34896,34897,34898,34899,34901,34902,34904,34906,34907,34908,34909,34910,34911,34912,34918,34919,34922,34925,34927,34929,34931,34932,34933,34934,34936,34937,34938,34939,34940,34944,34947,34950,34951,34953,34954,34956,34958,34959,34960,34961,34963,34964,34965,34967,34968,34969,34970,34971,34973,34974,34975,34976,34977,34979,34981,34982,34983,34984,34985,34986,23567,23389,26657,32918,21880,31505,25928,26964,20123,27463,34638,38795,21327,25375,25658,37034,26012,32961,35856,20889,26800,21368,34809,25032,27844,27899,35874,23633,34218,33455,38156,27427,36763,26032,24571,24515,20449,34885,26143,33125,29481,24826,20852,21009,22411,24418,37026,34892,37266,24184,26447,24615,22995,20804,20982,33016,21256,27769,38596,29066,20241,20462,32670,26429,21957,38152,31168,34966,32483,22687,25100,38656,34394,22040,39035,24464,35768,33988,37207,21465,26093,24207,30044,24676,32110,23167,32490,32493,36713,21927,23459,24748,26059,29572,34988,34990,34991,34992,34994,34995,34996,34997,34998,35e3,35001,35002,35003,35005,35006,35007,35008,35011,35012,35015,35016,35018,35019,35020,35021,35023,35024,35025,35027,35030,35031,35034,35035,35036,35037,35038,35040,35041,35046,35047,35049,35050,35051,35052,35053,35054,35055,35058,35061,35062,35063,35066,35067,35069,35071,35072,35073,35075,35076,35077,35078,35079,35080,35081,35083,35084,35085,35086,35087,35089,35092,35093,35094,35095,35096,35100,35101,35102,35103,35104,35106,35107,35108,35110,35111,35112,35113,35116,35117,35118,35119,35121,35122,35123,35125,35127,36873,30307,30505,32474,38772,34203,23398,31348,38634,34880,21195,29071,24490,26092,35810,23547,39535,24033,27529,27739,35757,35759,36874,36805,21387,25276,40486,40493,21568,20011,33469,29273,34460,23830,34905,28079,38597,21713,20122,35766,28937,21693,38409,28895,28153,30416,20005,30740,34578,23721,24310,35328,39068,38414,28814,27839,22852,25513,30524,34893,28436,33395,22576,29141,21388,30746,38593,21761,24422,28976,23476,35866,39564,27523,22830,40495,31207,26472,25196,20335,30113,32650,27915,38451,27687,20208,30162,20859,26679,28478,36992,33136,22934,29814,35128,35129,35130,35131,35132,35133,35134,35135,35136,35138,35139,35141,35142,35143,35144,35145,35146,35147,35148,35149,35150,35151,35152,35153,35154,35155,35156,35157,35158,35159,35160,35161,35162,35163,35164,35165,35168,35169,35170,35171,35172,35173,35175,35176,35177,35178,35179,35180,35181,35182,35183,35184,35185,35186,35187,35188,35189,35190,35191,35192,35193,35194,35196,35197,35198,35200,35202,35204,35205,35207,35208,35209,35210,35211,35212,35213,35214,35215,35216,35217,35218,35219,35220,35221,35222,35223,35224,35225,35226,35227,35228,35229,35230,35231,35232,35233,25671,23591,36965,31377,35875,23002,21676,33280,33647,35201,32768,26928,22094,32822,29239,37326,20918,20063,39029,25494,19994,21494,26355,33099,22812,28082,19968,22777,21307,25558,38129,20381,20234,34915,39056,22839,36951,31227,20202,33008,30097,27778,23452,23016,24413,26885,34433,20506,24050,20057,30691,20197,33402,25233,26131,37009,23673,20159,24441,33222,36920,32900,30123,20134,35028,24847,27589,24518,20041,30410,28322,35811,35758,35850,35793,24322,32764,32716,32462,33589,33643,22240,27575,38899,38452,23035,21535,38134,28139,23493,39278,23609,24341,38544,35234,35235,35236,35237,35238,35239,35240,35241,35242,35243,35244,35245,35246,35247,35248,35249,35250,35251,35252,35253,35254,35255,35256,35257,35258,35259,35260,35261,35262,35263,35264,35267,35277,35283,35284,35285,35287,35288,35289,35291,35293,35295,35296,35297,35298,35300,35303,35304,35305,35306,35308,35309,35310,35312,35313,35314,35316,35317,35318,35319,35320,35321,35322,35323,35324,35325,35326,35327,35329,35330,35331,35332,35333,35334,35336,35337,35338,35339,35340,35341,35342,35343,35344,35345,35346,35347,35348,35349,35350,35351,35352,35353,35354,35355,35356,35357,21360,33521,27185,23156,40560,24212,32552,33721,33828,33829,33639,34631,36814,36194,30408,24433,39062,30828,26144,21727,25317,20323,33219,30152,24248,38605,36362,34553,21647,27891,28044,27704,24703,21191,29992,24189,20248,24736,24551,23588,30001,37038,38080,29369,27833,28216,37193,26377,21451,21491,20305,37321,35825,21448,24188,36802,28132,20110,30402,27014,34398,24858,33286,20313,20446,36926,40060,24841,28189,28180,38533,20104,23089,38632,19982,23679,31161,23431,35821,32701,29577,22495,33419,37057,21505,36935,21947,23786,24481,24840,27442,29425,32946,35465,35358,35359,35360,35361,35362,35363,35364,35365,35366,35367,35368,35369,35370,35371,35372,35373,35374,35375,35376,35377,35378,35379,35380,35381,35382,35383,35384,35385,35386,35387,35388,35389,35391,35392,35393,35394,35395,35396,35397,35398,35399,35401,35402,35403,35404,35405,35406,35407,35408,35409,35410,35411,35412,35413,35414,35415,35416,35417,35418,35419,35420,35421,35422,35423,35424,35425,35426,35427,35428,35429,35430,35431,35432,35433,35434,35435,35436,35437,35438,35439,35440,35441,35442,35443,35444,35445,35446,35447,35448,35450,35451,35452,35453,35454,35455,35456,28020,23507,35029,39044,35947,39533,40499,28170,20900,20803,22435,34945,21407,25588,36757,22253,21592,22278,29503,28304,32536,36828,33489,24895,24616,38498,26352,32422,36234,36291,38053,23731,31908,26376,24742,38405,32792,20113,37095,21248,38504,20801,36816,34164,37213,26197,38901,23381,21277,30776,26434,26685,21705,28798,23472,36733,20877,22312,21681,25874,26242,36190,36163,33039,33900,36973,31967,20991,34299,26531,26089,28577,34468,36481,22122,36896,30338,28790,29157,36131,25321,21017,27901,36156,24590,22686,24974,26366,36192,25166,21939,28195,26413,36711,35457,35458,35459,35460,35461,35462,35463,35464,35467,35468,35469,35470,35471,35472,35473,35474,35476,35477,35478,35479,35480,35481,35482,35483,35484,35485,35486,35487,35488,35489,35490,35491,35492,35493,35494,35495,35496,35497,35498,35499,35500,35501,35502,35503,35504,35505,35506,35507,35508,35509,35510,35511,35512,35513,35514,35515,35516,35517,35518,35519,35520,35521,35522,35523,35524,35525,35526,35527,35528,35529,35530,35531,35532,35533,35534,35535,35536,35537,35538,35539,35540,35541,35542,35543,35544,35545,35546,35547,35548,35549,35550,35551,35552,35553,35554,35555,38113,38392,30504,26629,27048,21643,20045,28856,35784,25688,25995,23429,31364,20538,23528,30651,27617,35449,31896,27838,30415,26025,36759,23853,23637,34360,26632,21344,25112,31449,28251,32509,27167,31456,24432,28467,24352,25484,28072,26454,19976,24080,36134,20183,32960,30260,38556,25307,26157,25214,27836,36213,29031,32617,20806,32903,21484,36974,25240,21746,34544,36761,32773,38167,34071,36825,27993,29645,26015,30495,29956,30759,33275,36126,38024,20390,26517,30137,35786,38663,25391,38215,38453,33976,25379,30529,24449,29424,20105,24596,25972,25327,27491,25919,35556,35557,35558,35559,35560,35561,35562,35563,35564,35565,35566,35567,35568,35569,35570,35571,35572,35573,35574,35575,35576,35577,35578,35579,35580,35581,35582,35583,35584,35585,35586,35587,35588,35589,35590,35592,35593,35594,35595,35596,35597,35598,35599,35600,35601,35602,35603,35604,35605,35606,35607,35608,35609,35610,35611,35612,35613,35614,35615,35616,35617,35618,35619,35620,35621,35623,35624,35625,35626,35627,35628,35629,35630,35631,35632,35633,35634,35635,35636,35637,35638,35639,35640,35641,35642,35643,35644,35645,35646,35647,35648,35649,35650,35651,35652,35653,24103,30151,37073,35777,33437,26525,25903,21553,34584,30693,32930,33026,27713,20043,32455,32844,30452,26893,27542,25191,20540,20356,22336,25351,27490,36286,21482,26088,32440,24535,25370,25527,33267,33268,32622,24092,23769,21046,26234,31209,31258,36136,28825,30164,28382,27835,31378,20013,30405,24544,38047,34935,32456,31181,32959,37325,20210,20247,33311,21608,24030,27954,35788,31909,36724,32920,24090,21650,30385,23449,26172,39588,29664,26666,34523,26417,29482,35832,35803,36880,31481,28891,29038,25284,30633,22065,20027,33879,26609,21161,34496,36142,38136,31569,35654,35655,35656,35657,35658,35659,35660,35661,35662,35663,35664,35665,35666,35667,35668,35669,35670,35671,35672,35673,35674,35675,35676,35677,35678,35679,35680,35681,35682,35683,35684,35685,35687,35688,35689,35690,35691,35693,35694,35695,35696,35697,35698,35699,35700,35701,35702,35703,35704,35705,35706,35707,35708,35709,35710,35711,35712,35713,35714,35715,35716,35717,35718,35719,35720,35721,35722,35723,35724,35725,35726,35727,35728,35729,35730,35731,35732,35733,35734,35735,35736,35737,35738,35739,35740,35741,35742,35743,35756,35761,35771,35783,35792,35818,35849,35870,20303,27880,31069,39547,25235,29226,25341,19987,30742,36716,25776,36186,31686,26729,24196,35013,22918,25758,22766,29366,26894,38181,36861,36184,22368,32512,35846,20934,25417,25305,21331,26700,29730,33537,37196,21828,30528,28796,27978,20857,21672,36164,23039,28363,28100,23388,32043,20180,31869,28371,23376,33258,28173,23383,39683,26837,36394,23447,32508,24635,32437,37049,36208,22863,25549,31199,36275,21330,26063,31062,35781,38459,32452,38075,32386,22068,37257,26368,32618,23562,36981,26152,24038,20304,26590,20570,20316,22352,24231,59408,59409,59410,59411,59412,35896,35897,35898,35899,35900,35901,35902,35903,35904,35906,35907,35908,35909,35912,35914,35915,35917,35918,35919,35920,35921,35922,35923,35924,35926,35927,35928,35929,35931,35932,35933,35934,35935,35936,35939,35940,35941,35942,35943,35944,35945,35948,35949,35950,35951,35952,35953,35954,35956,35957,35958,35959,35963,35964,35965,35966,35967,35968,35969,35971,35972,35974,35975,35976,35979,35981,35982,35983,35984,35985,35986,35987,35989,35990,35991,35993,35994,35995,35996,35997,35998,35999,36e3,36001,36002,36003,36004,36005,36006,36007,36008,36009,36010,36011,36012,36013,20109,19980,20800,19984,24319,21317,19989,20120,19998,39730,23404,22121,20008,31162,20031,21269,20039,22829,29243,21358,27664,22239,32996,39319,27603,30590,40727,20022,20127,40720,20060,20073,20115,33416,23387,21868,22031,20164,21389,21405,21411,21413,21422,38757,36189,21274,21493,21286,21294,21310,36188,21350,21347,20994,21e3,21006,21037,21043,21055,21056,21068,21086,21089,21084,33967,21117,21122,21121,21136,21139,20866,32596,20155,20163,20169,20162,20200,20193,20203,20190,20251,20211,20258,20324,20213,20261,20263,20233,20267,20318,20327,25912,20314,20317,36014,36015,36016,36017,36018,36019,36020,36021,36022,36023,36024,36025,36026,36027,36028,36029,36030,36031,36032,36033,36034,36035,36036,36037,36038,36039,36040,36041,36042,36043,36044,36045,36046,36047,36048,36049,36050,36051,36052,36053,36054,36055,36056,36057,36058,36059,36060,36061,36062,36063,36064,36065,36066,36067,36068,36069,36070,36071,36072,36073,36074,36075,36076,36077,36078,36079,36080,36081,36082,36083,36084,36085,36086,36087,36088,36089,36090,36091,36092,36093,36094,36095,36096,36097,36098,36099,36100,36101,36102,36103,36104,36105,36106,36107,36108,36109,20319,20311,20274,20285,20342,20340,20369,20361,20355,20367,20350,20347,20394,20348,20396,20372,20454,20456,20458,20421,20442,20451,20444,20433,20447,20472,20521,20556,20467,20524,20495,20526,20525,20478,20508,20492,20517,20520,20606,20547,20565,20552,20558,20588,20603,20645,20647,20649,20666,20694,20742,20717,20716,20710,20718,20743,20747,20189,27709,20312,20325,20430,40864,27718,31860,20846,24061,40649,39320,20865,22804,21241,21261,35335,21264,20971,22809,20821,20128,20822,20147,34926,34980,20149,33044,35026,31104,23348,34819,32696,20907,20913,20925,20924,36110,36111,36112,36113,36114,36115,36116,36117,36118,36119,36120,36121,36122,36123,36124,36128,36177,36178,36183,36191,36197,36200,36201,36202,36204,36206,36207,36209,36210,36216,36217,36218,36219,36220,36221,36222,36223,36224,36226,36227,36230,36231,36232,36233,36236,36237,36238,36239,36240,36242,36243,36245,36246,36247,36248,36249,36250,36251,36252,36253,36254,36256,36257,36258,36260,36261,36262,36263,36264,36265,36266,36267,36268,36269,36270,36271,36272,36274,36278,36279,36281,36283,36285,36288,36289,36290,36293,36295,36296,36297,36298,36301,36304,36306,36307,36308,20935,20886,20898,20901,35744,35750,35751,35754,35764,35765,35767,35778,35779,35787,35791,35790,35794,35795,35796,35798,35800,35801,35804,35807,35808,35812,35816,35817,35822,35824,35827,35830,35833,35836,35839,35840,35842,35844,35847,35852,35855,35857,35858,35860,35861,35862,35865,35867,35864,35869,35871,35872,35873,35877,35879,35882,35883,35886,35887,35890,35891,35893,35894,21353,21370,38429,38434,38433,38449,38442,38461,38460,38466,38473,38484,38495,38503,38508,38514,38516,38536,38541,38551,38576,37015,37019,37021,37017,37036,37025,37044,37043,37046,37050,36309,36312,36313,36316,36320,36321,36322,36325,36326,36327,36329,36333,36334,36336,36337,36338,36340,36342,36348,36350,36351,36352,36353,36354,36355,36356,36358,36359,36360,36363,36365,36366,36368,36369,36370,36371,36373,36374,36375,36376,36377,36378,36379,36380,36384,36385,36388,36389,36390,36391,36392,36395,36397,36400,36402,36403,36404,36406,36407,36408,36411,36412,36414,36415,36419,36421,36422,36428,36429,36430,36431,36432,36435,36436,36437,36438,36439,36440,36442,36443,36444,36445,36446,36447,36448,36449,36450,36451,36452,36453,36455,36456,36458,36459,36462,36465,37048,37040,37071,37061,37054,37072,37060,37063,37075,37094,37090,37084,37079,37083,37099,37103,37118,37124,37154,37150,37155,37169,37167,37177,37187,37190,21005,22850,21154,21164,21165,21182,21759,21200,21206,21232,21471,29166,30669,24308,20981,20988,39727,21430,24321,30042,24047,22348,22441,22433,22654,22716,22725,22737,22313,22316,22314,22323,22329,22318,22319,22364,22331,22338,22377,22405,22379,22406,22396,22395,22376,22381,22390,22387,22445,22436,22412,22450,22479,22439,22452,22419,22432,22485,22488,22490,22489,22482,22456,22516,22511,22520,22500,22493,36467,36469,36471,36472,36473,36474,36475,36477,36478,36480,36482,36483,36484,36486,36488,36489,36490,36491,36492,36493,36494,36497,36498,36499,36501,36502,36503,36504,36505,36506,36507,36509,36511,36512,36513,36514,36515,36516,36517,36518,36519,36520,36521,36522,36525,36526,36528,36529,36531,36532,36533,36534,36535,36536,36537,36539,36540,36541,36542,36543,36544,36545,36546,36547,36548,36549,36550,36551,36552,36553,36554,36555,36556,36557,36559,36560,36561,36562,36563,36564,36565,36566,36567,36568,36569,36570,36571,36572,36573,36574,36575,36576,36577,36578,36579,36580,22539,22541,22525,22509,22528,22558,22553,22596,22560,22629,22636,22657,22665,22682,22656,39336,40729,25087,33401,33405,33407,33423,33418,33448,33412,33422,33425,33431,33433,33451,33464,33470,33456,33480,33482,33507,33432,33463,33454,33483,33484,33473,33449,33460,33441,33450,33439,33476,33486,33444,33505,33545,33527,33508,33551,33543,33500,33524,33490,33496,33548,33531,33491,33553,33562,33542,33556,33557,33504,33493,33564,33617,33627,33628,33544,33682,33596,33588,33585,33691,33630,33583,33615,33607,33603,33631,33600,33559,33632,33581,33594,33587,33638,33637,36581,36582,36583,36584,36585,36586,36587,36588,36589,36590,36591,36592,36593,36594,36595,36596,36597,36598,36599,36600,36601,36602,36603,36604,36605,36606,36607,36608,36609,36610,36611,36612,36613,36614,36615,36616,36617,36618,36619,36620,36621,36622,36623,36624,36625,36626,36627,36628,36629,36630,36631,36632,36633,36634,36635,36636,36637,36638,36639,36640,36641,36642,36643,36644,36645,36646,36647,36648,36649,36650,36651,36652,36653,36654,36655,36656,36657,36658,36659,36660,36661,36662,36663,36664,36665,36666,36667,36668,36669,36670,36671,36672,36673,36674,36675,36676,33640,33563,33641,33644,33642,33645,33646,33712,33656,33715,33716,33696,33706,33683,33692,33669,33660,33718,33705,33661,33720,33659,33688,33694,33704,33722,33724,33729,33793,33765,33752,22535,33816,33803,33757,33789,33750,33820,33848,33809,33798,33748,33759,33807,33795,33784,33785,33770,33733,33728,33830,33776,33761,33884,33873,33882,33881,33907,33927,33928,33914,33929,33912,33852,33862,33897,33910,33932,33934,33841,33901,33985,33997,34e3,34022,33981,34003,33994,33983,33978,34016,33953,33977,33972,33943,34021,34019,34060,29965,34104,34032,34105,34079,34106,36677,36678,36679,36680,36681,36682,36683,36684,36685,36686,36687,36688,36689,36690,36691,36692,36693,36694,36695,36696,36697,36698,36699,36700,36701,36702,36703,36704,36705,36706,36707,36708,36709,36714,36736,36748,36754,36765,36768,36769,36770,36772,36773,36774,36775,36778,36780,36781,36782,36783,36786,36787,36788,36789,36791,36792,36794,36795,36796,36799,36800,36803,36806,36809,36810,36811,36812,36813,36815,36818,36822,36823,36826,36832,36833,36835,36839,36844,36847,36849,36850,36852,36853,36854,36858,36859,36860,36862,36863,36871,36872,36876,36878,36883,36885,36888,34134,34107,34047,34044,34137,34120,34152,34148,34142,34170,30626,34115,34162,34171,34212,34216,34183,34191,34169,34222,34204,34181,34233,34231,34224,34259,34241,34268,34303,34343,34309,34345,34326,34364,24318,24328,22844,22849,32823,22869,22874,22872,21263,23586,23589,23596,23604,25164,25194,25247,25275,25290,25306,25303,25326,25378,25334,25401,25419,25411,25517,25590,25457,25466,25486,25524,25453,25516,25482,25449,25518,25532,25586,25592,25568,25599,25540,25566,25550,25682,25542,25534,25669,25665,25611,25627,25632,25612,25638,25633,25694,25732,25709,25750,36889,36892,36899,36900,36901,36903,36904,36905,36906,36907,36908,36912,36913,36914,36915,36916,36919,36921,36922,36925,36927,36928,36931,36933,36934,36936,36937,36938,36939,36940,36942,36948,36949,36950,36953,36954,36956,36957,36958,36959,36960,36961,36964,36966,36967,36969,36970,36971,36972,36975,36976,36977,36978,36979,36982,36983,36984,36985,36986,36987,36988,36990,36993,36996,36997,36998,36999,37001,37002,37004,37005,37006,37007,37008,37010,37012,37014,37016,37018,37020,37022,37023,37024,37028,37029,37031,37032,37033,37035,37037,37042,37047,37052,37053,37055,37056,25722,25783,25784,25753,25786,25792,25808,25815,25828,25826,25865,25893,25902,24331,24530,29977,24337,21343,21489,21501,21481,21480,21499,21522,21526,21510,21579,21586,21587,21588,21590,21571,21537,21591,21593,21539,21554,21634,21652,21623,21617,21604,21658,21659,21636,21622,21606,21661,21712,21677,21698,21684,21714,21671,21670,21715,21716,21618,21667,21717,21691,21695,21708,21721,21722,21724,21673,21674,21668,21725,21711,21726,21787,21735,21792,21757,21780,21747,21794,21795,21775,21777,21799,21802,21863,21903,21941,21833,21869,21825,21845,21823,21840,21820,37058,37059,37062,37064,37065,37067,37068,37069,37074,37076,37077,37078,37080,37081,37082,37086,37087,37088,37091,37092,37093,37097,37098,37100,37102,37104,37105,37106,37107,37109,37110,37111,37113,37114,37115,37116,37119,37120,37121,37123,37125,37126,37127,37128,37129,37130,37131,37132,37133,37134,37135,37136,37137,37138,37139,37140,37141,37142,37143,37144,37146,37147,37148,37149,37151,37152,37153,37156,37157,37158,37159,37160,37161,37162,37163,37164,37165,37166,37168,37170,37171,37172,37173,37174,37175,37176,37178,37179,37180,37181,37182,37183,37184,37185,37186,37188,21815,21846,21877,21878,21879,21811,21808,21852,21899,21970,21891,21937,21945,21896,21889,21919,21886,21974,21905,21883,21983,21949,21950,21908,21913,21994,22007,21961,22047,21969,21995,21996,21972,21990,21981,21956,21999,21989,22002,22003,21964,21965,21992,22005,21988,36756,22046,22024,22028,22017,22052,22051,22014,22016,22055,22061,22104,22073,22103,22060,22093,22114,22105,22108,22092,22100,22150,22116,22129,22123,22139,22140,22149,22163,22191,22228,22231,22237,22241,22261,22251,22265,22271,22276,22282,22281,22300,24079,24089,24084,24081,24113,24123,24124,37189,37191,37192,37201,37203,37204,37205,37206,37208,37209,37211,37212,37215,37216,37222,37223,37224,37227,37229,37235,37242,37243,37244,37248,37249,37250,37251,37252,37254,37256,37258,37262,37263,37267,37268,37269,37270,37271,37272,37273,37276,37277,37278,37279,37280,37281,37284,37285,37286,37287,37288,37289,37291,37292,37296,37297,37298,37299,37302,37303,37304,37305,37307,37308,37309,37310,37311,37312,37313,37314,37315,37316,37317,37318,37320,37323,37328,37330,37331,37332,37333,37334,37335,37336,37337,37338,37339,37341,37342,37343,37344,37345,37346,37347,37348,37349,24119,24132,24148,24155,24158,24161,23692,23674,23693,23696,23702,23688,23704,23705,23697,23706,23708,23733,23714,23741,23724,23723,23729,23715,23745,23735,23748,23762,23780,23755,23781,23810,23811,23847,23846,23854,23844,23838,23814,23835,23896,23870,23860,23869,23916,23899,23919,23901,23915,23883,23882,23913,23924,23938,23961,23965,35955,23991,24005,24435,24439,24450,24455,24457,24460,24469,24473,24476,24488,24493,24501,24508,34914,24417,29357,29360,29364,29367,29368,29379,29377,29390,29389,29394,29416,29423,29417,29426,29428,29431,29441,29427,29443,29434,37350,37351,37352,37353,37354,37355,37356,37357,37358,37359,37360,37361,37362,37363,37364,37365,37366,37367,37368,37369,37370,37371,37372,37373,37374,37375,37376,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37387,37388,37389,37390,37391,37392,37393,37394,37395,37396,37397,37398,37399,37400,37401,37402,37403,37404,37405,37406,37407,37408,37409,37410,37411,37412,37413,37414,37415,37416,37417,37418,37419,37420,37421,37422,37423,37424,37425,37426,37427,37428,37429,37430,37431,37432,37433,37434,37435,37436,37437,37438,37439,37440,37441,37442,37443,37444,37445,29435,29463,29459,29473,29450,29470,29469,29461,29474,29497,29477,29484,29496,29489,29520,29517,29527,29536,29548,29551,29566,33307,22821,39143,22820,22786,39267,39271,39272,39273,39274,39275,39276,39284,39287,39293,39296,39300,39303,39306,39309,39312,39313,39315,39316,39317,24192,24209,24203,24214,24229,24224,24249,24245,24254,24243,36179,24274,24273,24283,24296,24298,33210,24516,24521,24534,24527,24579,24558,24580,24545,24548,24574,24581,24582,24554,24557,24568,24601,24629,24614,24603,24591,24589,24617,24619,24586,24639,24609,24696,24697,24699,24698,24642,37446,37447,37448,37449,37450,37451,37452,37453,37454,37455,37456,37457,37458,37459,37460,37461,37462,37463,37464,37465,37466,37467,37468,37469,37470,37471,37472,37473,37474,37475,37476,37477,37478,37479,37480,37481,37482,37483,37484,37485,37486,37487,37488,37489,37490,37491,37493,37494,37495,37496,37497,37498,37499,37500,37501,37502,37503,37504,37505,37506,37507,37508,37509,37510,37511,37512,37513,37514,37515,37516,37517,37519,37520,37521,37522,37523,37524,37525,37526,37527,37528,37529,37530,37531,37532,37533,37534,37535,37536,37537,37538,37539,37540,37541,37542,37543,24682,24701,24726,24730,24749,24733,24707,24722,24716,24731,24812,24763,24753,24797,24792,24774,24794,24756,24864,24870,24853,24867,24820,24832,24846,24875,24906,24949,25004,24980,24999,25015,25044,25077,24541,38579,38377,38379,38385,38387,38389,38390,38396,38398,38403,38404,38406,38408,38410,38411,38412,38413,38415,38418,38421,38422,38423,38425,38426,20012,29247,25109,27701,27732,27740,27722,27811,27781,27792,27796,27788,27752,27753,27764,27766,27782,27817,27856,27860,27821,27895,27896,27889,27863,27826,27872,27862,27898,27883,27886,27825,27859,27887,27902,37544,37545,37546,37547,37548,37549,37551,37552,37553,37554,37555,37556,37557,37558,37559,37560,37561,37562,37563,37564,37565,37566,37567,37568,37569,37570,37571,37572,37573,37574,37575,37577,37578,37579,37580,37581,37582,37583,37584,37585,37586,37587,37588,37589,37590,37591,37592,37593,37594,37595,37596,37597,37598,37599,37600,37601,37602,37603,37604,37605,37606,37607,37608,37609,37610,37611,37612,37613,37614,37615,37616,37617,37618,37619,37620,37621,37622,37623,37624,37625,37626,37627,37628,37629,37630,37631,37632,37633,37634,37635,37636,37637,37638,37639,37640,37641,27961,27943,27916,27971,27976,27911,27908,27929,27918,27947,27981,27950,27957,27930,27983,27986,27988,27955,28049,28015,28062,28064,27998,28051,28052,27996,28e3,28028,28003,28186,28103,28101,28126,28174,28095,28128,28177,28134,28125,28121,28182,28075,28172,28078,28203,28270,28238,28267,28338,28255,28294,28243,28244,28210,28197,28228,28383,28337,28312,28384,28461,28386,28325,28327,28349,28347,28343,28375,28340,28367,28303,28354,28319,28514,28486,28487,28452,28437,28409,28463,28470,28491,28532,28458,28425,28457,28553,28557,28556,28536,28530,28540,28538,28625,37642,37643,37644,37645,37646,37647,37648,37649,37650,37651,37652,37653,37654,37655,37656,37657,37658,37659,37660,37661,37662,37663,37664,37665,37666,37667,37668,37669,37670,37671,37672,37673,37674,37675,37676,37677,37678,37679,37680,37681,37682,37683,37684,37685,37686,37687,37688,37689,37690,37691,37692,37693,37695,37696,37697,37698,37699,37700,37701,37702,37703,37704,37705,37706,37707,37708,37709,37710,37711,37712,37713,37714,37715,37716,37717,37718,37719,37720,37721,37722,37723,37724,37725,37726,37727,37728,37729,37730,37731,37732,37733,37734,37735,37736,37737,37739,28617,28583,28601,28598,28610,28641,28654,28638,28640,28655,28698,28707,28699,28729,28725,28751,28766,23424,23428,23445,23443,23461,23480,29999,39582,25652,23524,23534,35120,23536,36423,35591,36790,36819,36821,36837,36846,36836,36841,36838,36851,36840,36869,36868,36875,36902,36881,36877,36886,36897,36917,36918,36909,36911,36932,36945,36946,36944,36968,36952,36962,36955,26297,36980,36989,36994,37e3,36995,37003,24400,24407,24406,24408,23611,21675,23632,23641,23409,23651,23654,32700,24362,24361,24365,33396,24380,39739,23662,22913,22915,22925,22953,22954,22947,37740,37741,37742,37743,37744,37745,37746,37747,37748,37749,37750,37751,37752,37753,37754,37755,37756,37757,37758,37759,37760,37761,37762,37763,37764,37765,37766,37767,37768,37769,37770,37771,37772,37773,37774,37776,37777,37778,37779,37780,37781,37782,37783,37784,37785,37786,37787,37788,37789,37790,37791,37792,37793,37794,37795,37796,37797,37798,37799,37800,37801,37802,37803,37804,37805,37806,37807,37808,37809,37810,37811,37812,37813,37814,37815,37816,37817,37818,37819,37820,37821,37822,37823,37824,37825,37826,37827,37828,37829,37830,37831,37832,37833,37835,37836,37837,22935,22986,22955,22942,22948,22994,22962,22959,22999,22974,23045,23046,23005,23048,23011,23e3,23033,23052,23049,23090,23092,23057,23075,23059,23104,23143,23114,23125,23100,23138,23157,33004,23210,23195,23159,23162,23230,23275,23218,23250,23252,23224,23264,23267,23281,23254,23270,23256,23260,23305,23319,23318,23346,23351,23360,23573,23580,23386,23397,23411,23377,23379,23394,39541,39543,39544,39546,39551,39549,39552,39553,39557,39560,39562,39568,39570,39571,39574,39576,39579,39580,39581,39583,39584,39586,39587,39589,39591,32415,32417,32419,32421,32424,32425,37838,37839,37840,37841,37842,37843,37844,37845,37847,37848,37849,37850,37851,37852,37853,37854,37855,37856,37857,37858,37859,37860,37861,37862,37863,37864,37865,37866,37867,37868,37869,37870,37871,37872,37873,37874,37875,37876,37877,37878,37879,37880,37881,37882,37883,37884,37885,37886,37887,37888,37889,37890,37891,37892,37893,37894,37895,37896,37897,37898,37899,37900,37901,37902,37903,37904,37905,37906,37907,37908,37909,37910,37911,37912,37913,37914,37915,37916,37917,37918,37919,37920,37921,37922,37923,37924,37925,37926,37927,37928,37929,37930,37931,37932,37933,37934,32429,32432,32446,32448,32449,32450,32457,32459,32460,32464,32468,32471,32475,32480,32481,32488,32491,32494,32495,32497,32498,32525,32502,32506,32507,32510,32513,32514,32515,32519,32520,32523,32524,32527,32529,32530,32535,32537,32540,32539,32543,32545,32546,32547,32548,32549,32550,32551,32554,32555,32556,32557,32559,32560,32561,32562,32563,32565,24186,30079,24027,30014,37013,29582,29585,29614,29602,29599,29647,29634,29649,29623,29619,29632,29641,29640,29669,29657,39036,29706,29673,29671,29662,29626,29682,29711,29738,29787,29734,29733,29736,29744,29742,29740,37935,37936,37937,37938,37939,37940,37941,37942,37943,37944,37945,37946,37947,37948,37949,37951,37952,37953,37954,37955,37956,37957,37958,37959,37960,37961,37962,37963,37964,37965,37966,37967,37968,37969,37970,37971,37972,37973,37974,37975,37976,37977,37978,37979,37980,37981,37982,37983,37984,37985,37986,37987,37988,37989,37990,37991,37992,37993,37994,37996,37997,37998,37999,38e3,38001,38002,38003,38004,38005,38006,38007,38008,38009,38010,38011,38012,38013,38014,38015,38016,38017,38018,38019,38020,38033,38038,38040,38087,38095,38099,38100,38106,38118,38139,38172,38176,29723,29722,29761,29788,29783,29781,29785,29815,29805,29822,29852,29838,29824,29825,29831,29835,29854,29864,29865,29840,29863,29906,29882,38890,38891,38892,26444,26451,26462,26440,26473,26533,26503,26474,26483,26520,26535,26485,26536,26526,26541,26507,26487,26492,26608,26633,26584,26634,26601,26544,26636,26585,26549,26586,26547,26589,26624,26563,26552,26594,26638,26561,26621,26674,26675,26720,26721,26702,26722,26692,26724,26755,26653,26709,26726,26689,26727,26688,26686,26698,26697,26665,26805,26767,26740,26743,26771,26731,26818,26990,26876,26911,26912,26873,38183,38195,38205,38211,38216,38219,38229,38234,38240,38254,38260,38261,38263,38264,38265,38266,38267,38268,38269,38270,38272,38273,38274,38275,38276,38277,38278,38279,38280,38281,38282,38283,38284,38285,38286,38287,38288,38289,38290,38291,38292,38293,38294,38295,38296,38297,38298,38299,38300,38301,38302,38303,38304,38305,38306,38307,38308,38309,38310,38311,38312,38313,38314,38315,38316,38317,38318,38319,38320,38321,38322,38323,38324,38325,38326,38327,38328,38329,38330,38331,38332,38333,38334,38335,38336,38337,38338,38339,38340,38341,38342,38343,38344,38345,38346,38347,26916,26864,26891,26881,26967,26851,26896,26993,26937,26976,26946,26973,27012,26987,27008,27032,27e3,26932,27084,27015,27016,27086,27017,26982,26979,27001,27035,27047,27067,27051,27053,27092,27057,27073,27082,27103,27029,27104,27021,27135,27183,27117,27159,27160,27237,27122,27204,27198,27296,27216,27227,27189,27278,27257,27197,27176,27224,27260,27281,27280,27305,27287,27307,29495,29522,27521,27522,27527,27524,27538,27539,27533,27546,27547,27553,27562,36715,36717,36721,36722,36723,36725,36726,36728,36727,36729,36730,36732,36734,36737,36738,36740,36743,36747,38348,38349,38350,38351,38352,38353,38354,38355,38356,38357,38358,38359,38360,38361,38362,38363,38364,38365,38366,38367,38368,38369,38370,38371,38372,38373,38374,38375,38380,38399,38407,38419,38424,38427,38430,38432,38435,38436,38437,38438,38439,38440,38441,38443,38444,38445,38447,38448,38455,38456,38457,38458,38462,38465,38467,38474,38478,38479,38481,38482,38483,38486,38487,38488,38489,38490,38492,38493,38494,38496,38499,38501,38502,38507,38509,38510,38511,38512,38513,38515,38520,38521,38522,38523,38524,38525,38526,38527,38528,38529,38530,38531,38532,38535,38537,38538,36749,36750,36751,36760,36762,36558,25099,25111,25115,25119,25122,25121,25125,25124,25132,33255,29935,29940,29951,29967,29969,29971,25908,26094,26095,26096,26122,26137,26482,26115,26133,26112,28805,26359,26141,26164,26161,26166,26165,32774,26207,26196,26177,26191,26198,26209,26199,26231,26244,26252,26279,26269,26302,26331,26332,26342,26345,36146,36147,36150,36155,36157,36160,36165,36166,36168,36169,36167,36173,36181,36185,35271,35274,35275,35276,35278,35279,35280,35281,29294,29343,29277,29286,29295,29310,29311,29316,29323,29325,29327,29330,25352,25394,25520,38540,38542,38545,38546,38547,38549,38550,38554,38555,38557,38558,38559,38560,38561,38562,38563,38564,38565,38566,38568,38569,38570,38571,38572,38573,38574,38575,38577,38578,38580,38581,38583,38584,38586,38587,38591,38594,38595,38600,38602,38603,38608,38609,38611,38612,38614,38615,38616,38617,38618,38619,38620,38621,38622,38623,38625,38626,38627,38628,38629,38630,38631,38635,38636,38637,38638,38640,38641,38642,38644,38645,38648,38650,38651,38652,38653,38655,38658,38659,38661,38666,38667,38668,38672,38673,38674,38676,38677,38679,38680,38681,38682,38683,38685,38687,38688,25663,25816,32772,27626,27635,27645,27637,27641,27653,27655,27654,27661,27669,27672,27673,27674,27681,27689,27684,27690,27698,25909,25941,25963,29261,29266,29270,29232,34402,21014,32927,32924,32915,32956,26378,32957,32945,32939,32941,32948,32951,32999,33e3,33001,33002,32987,32962,32964,32985,32973,32983,26384,32989,33003,33009,33012,33005,33037,33038,33010,33020,26389,33042,35930,33078,33054,33068,33048,33074,33096,33100,33107,33140,33113,33114,33137,33120,33129,33148,33149,33133,33127,22605,23221,33160,33154,33169,28373,33187,33194,33228,26406,33226,33211,38689,38690,38691,38692,38693,38694,38695,38696,38697,38699,38700,38702,38703,38705,38707,38708,38709,38710,38711,38714,38715,38716,38717,38719,38720,38721,38722,38723,38724,38725,38726,38727,38728,38729,38730,38731,38732,38733,38734,38735,38736,38737,38740,38741,38743,38744,38746,38748,38749,38751,38755,38756,38758,38759,38760,38762,38763,38764,38765,38766,38767,38768,38769,38770,38773,38775,38776,38777,38778,38779,38781,38782,38783,38784,38785,38786,38787,38788,38790,38791,38792,38793,38794,38796,38798,38799,38800,38803,38805,38806,38807,38809,38810,38811,38812,38813,33217,33190,27428,27447,27449,27459,27462,27481,39121,39122,39123,39125,39129,39130,27571,24384,27586,35315,26e3,40785,26003,26044,26054,26052,26051,26060,26062,26066,26070,28800,28828,28822,28829,28859,28864,28855,28843,28849,28904,28874,28944,28947,28950,28975,28977,29043,29020,29032,28997,29042,29002,29048,29050,29080,29107,29109,29096,29088,29152,29140,29159,29177,29213,29224,28780,28952,29030,29113,25150,25149,25155,25160,25161,31035,31040,31046,31049,31067,31068,31059,31066,31074,31063,31072,31087,31079,31098,31109,31114,31130,31143,31155,24529,24528,38814,38815,38817,38818,38820,38821,38822,38823,38824,38825,38826,38828,38830,38832,38833,38835,38837,38838,38839,38840,38841,38842,38843,38844,38845,38846,38847,38848,38849,38850,38851,38852,38853,38854,38855,38856,38857,38858,38859,38860,38861,38862,38863,38864,38865,38866,38867,38868,38869,38870,38871,38872,38873,38874,38875,38876,38877,38878,38879,38880,38881,38882,38883,38884,38885,38888,38894,38895,38896,38897,38898,38900,38903,38904,38905,38906,38907,38908,38909,38910,38911,38912,38913,38914,38915,38916,38917,38918,38919,38920,38921,38922,38923,38924,38925,38926,24636,24669,24666,24679,24641,24665,24675,24747,24838,24845,24925,25001,24989,25035,25041,25094,32896,32895,27795,27894,28156,30710,30712,30720,30729,30743,30744,30737,26027,30765,30748,30749,30777,30778,30779,30751,30780,30757,30764,30755,30761,30798,30829,30806,30807,30758,30800,30791,30796,30826,30875,30867,30874,30855,30876,30881,30883,30898,30905,30885,30932,30937,30921,30956,30962,30981,30964,30995,31012,31006,31028,40859,40697,40699,40700,30449,30468,30477,30457,30471,30472,30490,30498,30489,30509,30502,30517,30520,30544,30545,30535,30531,30554,30568,38927,38928,38929,38930,38931,38932,38933,38934,38935,38936,38937,38938,38939,38940,38941,38942,38943,38944,38945,38946,38947,38948,38949,38950,38951,38952,38953,38954,38955,38956,38957,38958,38959,38960,38961,38962,38963,38964,38965,38966,38967,38968,38969,38970,38971,38972,38973,38974,38975,38976,38977,38978,38979,38980,38981,38982,38983,38984,38985,38986,38987,38988,38989,38990,38991,38992,38993,38994,38995,38996,38997,38998,38999,39e3,39001,39002,39003,39004,39005,39006,39007,39008,39009,39010,39011,39012,39013,39014,39015,39016,39017,39018,39019,39020,39021,39022,30562,30565,30591,30605,30589,30592,30604,30609,30623,30624,30640,30645,30653,30010,30016,30030,30027,30024,30043,30066,30073,30083,32600,32609,32607,35400,32616,32628,32625,32633,32641,32638,30413,30437,34866,38021,38022,38023,38027,38026,38028,38029,38031,38032,38036,38039,38037,38042,38043,38044,38051,38052,38059,38058,38061,38060,38063,38064,38066,38068,38070,38071,38072,38073,38074,38076,38077,38079,38084,38088,38089,38090,38091,38092,38093,38094,38096,38097,38098,38101,38102,38103,38105,38104,38107,38110,38111,38112,38114,38116,38117,38119,38120,38122,39023,39024,39025,39026,39027,39028,39051,39054,39058,39061,39065,39075,39080,39081,39082,39083,39084,39085,39086,39087,39088,39089,39090,39091,39092,39093,39094,39095,39096,39097,39098,39099,39100,39101,39102,39103,39104,39105,39106,39107,39108,39109,39110,39111,39112,39113,39114,39115,39116,39117,39119,39120,39124,39126,39127,39131,39132,39133,39136,39137,39138,39139,39140,39141,39142,39145,39146,39147,39148,39149,39150,39151,39152,39153,39154,39155,39156,39157,39158,39159,39160,39161,39162,39163,39164,39165,39166,39167,39168,39169,39170,39171,39172,39173,39174,39175,38121,38123,38126,38127,38131,38132,38133,38135,38137,38140,38141,38143,38147,38146,38150,38151,38153,38154,38157,38158,38159,38162,38163,38164,38165,38166,38168,38171,38173,38174,38175,38178,38186,38187,38185,38188,38193,38194,38196,38198,38199,38200,38204,38206,38207,38210,38197,38212,38213,38214,38217,38220,38222,38223,38226,38227,38228,38230,38231,38232,38233,38235,38238,38239,38237,38241,38242,38244,38245,38246,38247,38248,38249,38250,38251,38252,38255,38257,38258,38259,38202,30695,30700,38601,31189,31213,31203,31211,31238,23879,31235,31234,31262,31252,39176,39177,39178,39179,39180,39182,39183,39185,39186,39187,39188,39189,39190,39191,39192,39193,39194,39195,39196,39197,39198,39199,39200,39201,39202,39203,39204,39205,39206,39207,39208,39209,39210,39211,39212,39213,39215,39216,39217,39218,39219,39220,39221,39222,39223,39224,39225,39226,39227,39228,39229,39230,39231,39232,39233,39234,39235,39236,39237,39238,39239,39240,39241,39242,39243,39244,39245,39246,39247,39248,39249,39250,39251,39254,39255,39256,39257,39258,39259,39260,39261,39262,39263,39264,39265,39266,39268,39270,39283,39288,39289,39291,39294,39298,39299,39305,31289,31287,31313,40655,39333,31344,30344,30350,30355,30361,30372,29918,29920,29996,40480,40482,40488,40489,40490,40491,40492,40498,40497,40502,40504,40503,40505,40506,40510,40513,40514,40516,40518,40519,40520,40521,40523,40524,40526,40529,40533,40535,40538,40539,40540,40542,40547,40550,40551,40552,40553,40554,40555,40556,40561,40557,40563,30098,30100,30102,30112,30109,30124,30115,30131,30132,30136,30148,30129,30128,30147,30146,30166,30157,30179,30184,30182,30180,30187,30183,30211,30193,30204,30207,30224,30208,30213,30220,30231,30218,30245,30232,30229,30233,39308,39310,39322,39323,39324,39325,39326,39327,39328,39329,39330,39331,39332,39334,39335,39337,39338,39339,39340,39341,39342,39343,39344,39345,39346,39347,39348,39349,39350,39351,39352,39353,39354,39355,39356,39357,39358,39359,39360,39361,39362,39363,39364,39365,39366,39367,39368,39369,39370,39371,39372,39373,39374,39375,39376,39377,39378,39379,39380,39381,39382,39383,39384,39385,39386,39387,39388,39389,39390,39391,39392,39393,39394,39395,39396,39397,39398,39399,39400,39401,39402,39403,39404,39405,39406,39407,39408,39409,39410,39411,39412,39413,39414,39415,39416,39417,30235,30268,30242,30240,30272,30253,30256,30271,30261,30275,30270,30259,30285,30302,30292,30300,30294,30315,30319,32714,31462,31352,31353,31360,31366,31368,31381,31398,31392,31404,31400,31405,31411,34916,34921,34930,34941,34943,34946,34978,35014,34999,35004,35017,35042,35022,35043,35045,35057,35098,35068,35048,35070,35056,35105,35097,35091,35099,35082,35124,35115,35126,35137,35174,35195,30091,32997,30386,30388,30684,32786,32788,32790,32796,32800,32802,32805,32806,32807,32809,32808,32817,32779,32821,32835,32838,32845,32850,32873,32881,35203,39032,39040,39043,39418,39419,39420,39421,39422,39423,39424,39425,39426,39427,39428,39429,39430,39431,39432,39433,39434,39435,39436,39437,39438,39439,39440,39441,39442,39443,39444,39445,39446,39447,39448,39449,39450,39451,39452,39453,39454,39455,39456,39457,39458,39459,39460,39461,39462,39463,39464,39465,39466,39467,39468,39469,39470,39471,39472,39473,39474,39475,39476,39477,39478,39479,39480,39481,39482,39483,39484,39485,39486,39487,39488,39489,39490,39491,39492,39493,39494,39495,39496,39497,39498,39499,39500,39501,39502,39503,39504,39505,39506,39507,39508,39509,39510,39511,39512,39513,39049,39052,39053,39055,39060,39066,39067,39070,39071,39073,39074,39077,39078,34381,34388,34412,34414,34431,34426,34428,34427,34472,34445,34443,34476,34461,34471,34467,34474,34451,34473,34486,34500,34485,34510,34480,34490,34481,34479,34505,34511,34484,34537,34545,34546,34541,34547,34512,34579,34526,34548,34527,34520,34513,34563,34567,34552,34568,34570,34573,34569,34595,34619,34590,34597,34606,34586,34622,34632,34612,34609,34601,34615,34623,34690,34594,34685,34686,34683,34656,34672,34636,34670,34699,34643,34659,34684,34660,34649,34661,34707,34735,34728,34770,39514,39515,39516,39517,39518,39519,39520,39521,39522,39523,39524,39525,39526,39527,39528,39529,39530,39531,39538,39555,39561,39565,39566,39572,39573,39577,39590,39593,39594,39595,39596,39597,39598,39599,39602,39603,39604,39605,39609,39611,39613,39614,39615,39619,39620,39622,39623,39624,39625,39626,39629,39630,39631,39632,39634,39636,39637,39638,39639,39641,39642,39643,39644,39645,39646,39648,39650,39651,39652,39653,39655,39656,39657,39658,39660,39662,39664,39665,39666,39667,39668,39669,39670,39671,39672,39674,39676,39677,39678,39679,39680,39681,39682,39684,39685,39686,34758,34696,34693,34733,34711,34691,34731,34789,34732,34741,34739,34763,34771,34749,34769,34752,34762,34779,34794,34784,34798,34838,34835,34814,34826,34843,34849,34873,34876,32566,32578,32580,32581,33296,31482,31485,31496,31491,31492,31509,31498,31531,31503,31559,31544,31530,31513,31534,31537,31520,31525,31524,31539,31550,31518,31576,31578,31557,31605,31564,31581,31584,31598,31611,31586,31602,31601,31632,31654,31655,31672,31660,31645,31656,31621,31658,31644,31650,31659,31668,31697,31681,31692,31709,31706,31717,31718,31722,31756,31742,31740,31759,31766,31755,39687,39689,39690,39691,39692,39693,39694,39696,39697,39698,39700,39701,39702,39703,39704,39705,39706,39707,39708,39709,39710,39712,39713,39714,39716,39717,39718,39719,39720,39721,39722,39723,39724,39725,39726,39728,39729,39731,39732,39733,39734,39735,39736,39737,39738,39741,39742,39743,39744,39750,39754,39755,39756,39758,39760,39762,39763,39765,39766,39767,39768,39769,39770,39771,39772,39773,39774,39775,39776,39777,39778,39779,39780,39781,39782,39783,39784,39785,39786,39787,39788,39789,39790,39791,39792,39793,39794,39795,39796,39797,39798,39799,39800,39801,39802,39803,31775,31786,31782,31800,31809,31808,33278,33281,33282,33284,33260,34884,33313,33314,33315,33325,33327,33320,33323,33336,33339,33331,33332,33342,33348,33353,33355,33359,33370,33375,33384,34942,34949,34952,35032,35039,35166,32669,32671,32679,32687,32688,32690,31868,25929,31889,31901,31900,31902,31906,31922,31932,31933,31937,31943,31948,31949,31944,31941,31959,31976,33390,26280,32703,32718,32725,32741,32737,32742,32745,32750,32755,31992,32119,32166,32174,32327,32411,40632,40628,36211,36228,36244,36241,36273,36199,36205,35911,35913,37194,37200,37198,37199,37220,39804,39805,39806,39807,39808,39809,39810,39811,39812,39813,39814,39815,39816,39817,39818,39819,39820,39821,39822,39823,39824,39825,39826,39827,39828,39829,39830,39831,39832,39833,39834,39835,39836,39837,39838,39839,39840,39841,39842,39843,39844,39845,39846,39847,39848,39849,39850,39851,39852,39853,39854,39855,39856,39857,39858,39859,39860,39861,39862,39863,39864,39865,39866,39867,39868,39869,39870,39871,39872,39873,39874,39875,39876,39877,39878,39879,39880,39881,39882,39883,39884,39885,39886,39887,39888,39889,39890,39891,39892,39893,39894,39895,39896,39897,39898,39899,37218,37217,37232,37225,37231,37245,37246,37234,37236,37241,37260,37253,37264,37261,37265,37282,37283,37290,37293,37294,37295,37301,37300,37306,35925,40574,36280,36331,36357,36441,36457,36277,36287,36284,36282,36292,36310,36311,36314,36318,36302,36303,36315,36294,36332,36343,36344,36323,36345,36347,36324,36361,36349,36372,36381,36383,36396,36398,36387,36399,36410,36416,36409,36405,36413,36401,36425,36417,36418,36433,36434,36426,36464,36470,36476,36463,36468,36485,36495,36500,36496,36508,36510,35960,35970,35978,35973,35992,35988,26011,35286,35294,35290,35292,39900,39901,39902,39903,39904,39905,39906,39907,39908,39909,39910,39911,39912,39913,39914,39915,39916,39917,39918,39919,39920,39921,39922,39923,39924,39925,39926,39927,39928,39929,39930,39931,39932,39933,39934,39935,39936,39937,39938,39939,39940,39941,39942,39943,39944,39945,39946,39947,39948,39949,39950,39951,39952,39953,39954,39955,39956,39957,39958,39959,39960,39961,39962,39963,39964,39965,39966,39967,39968,39969,39970,39971,39972,39973,39974,39975,39976,39977,39978,39979,39980,39981,39982,39983,39984,39985,39986,39987,39988,39989,39990,39991,39992,39993,39994,39995,35301,35307,35311,35390,35622,38739,38633,38643,38639,38662,38657,38664,38671,38670,38698,38701,38704,38718,40832,40835,40837,40838,40839,40840,40841,40842,40844,40702,40715,40717,38585,38588,38589,38606,38610,30655,38624,37518,37550,37576,37694,37738,37834,37775,37950,37995,40063,40066,40069,40070,40071,40072,31267,40075,40078,40080,40081,40082,40084,40085,40090,40091,40094,40095,40096,40097,40098,40099,40101,40102,40103,40104,40105,40107,40109,40110,40112,40113,40114,40115,40116,40117,40118,40119,40122,40123,40124,40125,40132,40133,40134,40135,40138,40139,39996,39997,39998,39999,4e4,40001,40002,40003,40004,40005,40006,40007,40008,40009,40010,40011,40012,40013,40014,40015,40016,40017,40018,40019,40020,40021,40022,40023,40024,40025,40026,40027,40028,40029,40030,40031,40032,40033,40034,40035,40036,40037,40038,40039,40040,40041,40042,40043,40044,40045,40046,40047,40048,40049,40050,40051,40052,40053,40054,40055,40056,40057,40058,40059,40061,40062,40064,40067,40068,40073,40074,40076,40079,40083,40086,40087,40088,40089,40093,40106,40108,40111,40121,40126,40127,40128,40129,40130,40136,40137,40145,40146,40154,40155,40160,40161,40140,40141,40142,40143,40144,40147,40148,40149,40151,40152,40153,40156,40157,40159,40162,38780,38789,38801,38802,38804,38831,38827,38819,38834,38836,39601,39600,39607,40536,39606,39610,39612,39617,39616,39621,39618,39627,39628,39633,39749,39747,39751,39753,39752,39757,39761,39144,39181,39214,39253,39252,39647,39649,39654,39663,39659,39675,39661,39673,39688,39695,39699,39711,39715,40637,40638,32315,40578,40583,40584,40587,40594,37846,40605,40607,40667,40668,40669,40672,40671,40674,40681,40679,40677,40682,40687,40738,40748,40751,40761,40759,40765,40766,40772,40163,40164,40165,40166,40167,40168,40169,40170,40171,40172,40173,40174,40175,40176,40177,40178,40179,40180,40181,40182,40183,40184,40185,40186,40187,40188,40189,40190,40191,40192,40193,40194,40195,40196,40197,40198,40199,40200,40201,40202,40203,40204,40205,40206,40207,40208,40209,40210,40211,40212,40213,40214,40215,40216,40217,40218,40219,40220,40221,40222,40223,40224,40225,40226,40227,40228,40229,40230,40231,40232,40233,40234,40235,40236,40237,40238,40239,40240,40241,40242,40243,40244,40245,40246,40247,40248,40249,40250,40251,40252,40253,40254,40255,40256,40257,40258,57908,57909,57910,57911,57912,57913,57914,57915,57916,57917,57918,57919,57920,57921,57922,57923,57924,57925,57926,57927,57928,57929,57930,57931,57932,57933,57934,57935,57936,57937,57938,57939,57940,57941,57942,57943,57944,57945,57946,57947,57948,57949,57950,57951,57952,57953,57954,57955,57956,57957,57958,57959,57960,57961,57962,57963,57964,57965,57966,57967,57968,57969,57970,57971,57972,57973,57974,57975,57976,57977,57978,57979,57980,57981,57982,57983,57984,57985,57986,57987,57988,57989,57990,57991,57992,57993,57994,57995,57996,57997,57998,57999,58e3,58001,40259,40260,40261,40262,40263,40264,40265,40266,40267,40268,40269,40270,40271,40272,40273,40274,40275,40276,40277,40278,40279,40280,40281,40282,40283,40284,40285,40286,40287,40288,40289,40290,40291,40292,40293,40294,40295,40296,40297,40298,40299,40300,40301,40302,40303,40304,40305,40306,40307,40308,40309,40310,40311,40312,40313,40314,40315,40316,40317,40318,40319,40320,40321,40322,40323,40324,40325,40326,40327,40328,40329,40330,40331,40332,40333,40334,40335,40336,40337,40338,40339,40340,40341,40342,40343,40344,40345,40346,40347,40348,40349,40350,40351,40352,40353,40354,58002,58003,58004,58005,58006,58007,58008,58009,58010,58011,58012,58013,58014,58015,58016,58017,58018,58019,58020,58021,58022,58023,58024,58025,58026,58027,58028,58029,58030,58031,58032,58033,58034,58035,58036,58037,58038,58039,58040,58041,58042,58043,58044,58045,58046,58047,58048,58049,58050,58051,58052,58053,58054,58055,58056,58057,58058,58059,58060,58061,58062,58063,58064,58065,58066,58067,58068,58069,58070,58071,58072,58073,58074,58075,58076,58077,58078,58079,58080,58081,58082,58083,58084,58085,58086,58087,58088,58089,58090,58091,58092,58093,58094,58095,40355,40356,40357,40358,40359,40360,40361,40362,40363,40364,40365,40366,40367,40368,40369,40370,40371,40372,40373,40374,40375,40376,40377,40378,40379,40380,40381,40382,40383,40384,40385,40386,40387,40388,40389,40390,40391,40392,40393,40394,40395,40396,40397,40398,40399,40400,40401,40402,40403,40404,40405,40406,40407,40408,40409,40410,40411,40412,40413,40414,40415,40416,40417,40418,40419,40420,40421,40422,40423,40424,40425,40426,40427,40428,40429,40430,40431,40432,40433,40434,40435,40436,40437,40438,40439,40440,40441,40442,40443,40444,40445,40446,40447,40448,40449,40450,58096,58097,58098,58099,58100,58101,58102,58103,58104,58105,58106,58107,58108,58109,58110,58111,58112,58113,58114,58115,58116,58117,58118,58119,58120,58121,58122,58123,58124,58125,58126,58127,58128,58129,58130,58131,58132,58133,58134,58135,58136,58137,58138,58139,58140,58141,58142,58143,58144,58145,58146,58147,58148,58149,58150,58151,58152,58153,58154,58155,58156,58157,58158,58159,58160,58161,58162,58163,58164,58165,58166,58167,58168,58169,58170,58171,58172,58173,58174,58175,58176,58177,58178,58179,58180,58181,58182,58183,58184,58185,58186,58187,58188,58189,40451,40452,40453,40454,40455,40456,40457,40458,40459,40460,40461,40462,40463,40464,40465,40466,40467,40468,40469,40470,40471,40472,40473,40474,40475,40476,40477,40478,40484,40487,40494,40496,40500,40507,40508,40512,40525,40528,40530,40531,40532,40534,40537,40541,40543,40544,40545,40546,40549,40558,40559,40562,40564,40565,40566,40567,40568,40569,40570,40571,40572,40573,40576,40577,40579,40580,40581,40582,40585,40586,40588,40589,40590,40591,40592,40593,40596,40597,40598,40599,40600,40601,40602,40603,40604,40606,40608,40609,40610,40611,40612,40613,40615,40616,40617,40618,58190,58191,58192,58193,58194,58195,58196,58197,58198,58199,58200,58201,58202,58203,58204,58205,58206,58207,58208,58209,58210,58211,58212,58213,58214,58215,58216,58217,58218,58219,58220,58221,58222,58223,58224,58225,58226,58227,58228,58229,58230,58231,58232,58233,58234,58235,58236,58237,58238,58239,58240,58241,58242,58243,58244,58245,58246,58247,58248,58249,58250,58251,58252,58253,58254,58255,58256,58257,58258,58259,58260,58261,58262,58263,58264,58265,58266,58267,58268,58269,58270,58271,58272,58273,58274,58275,58276,58277,58278,58279,58280,58281,58282,58283,40619,40620,40621,40622,40623,40624,40625,40626,40627,40629,40630,40631,40633,40634,40636,40639,40640,40641,40642,40643,40645,40646,40647,40648,40650,40651,40652,40656,40658,40659,40661,40662,40663,40665,40666,40670,40673,40675,40676,40678,40680,40683,40684,40685,40686,40688,40689,40690,40691,40692,40693,40694,40695,40696,40698,40701,40703,40704,40705,40706,40707,40708,40709,40710,40711,40712,40713,40714,40716,40719,40721,40722,40724,40725,40726,40728,40730,40731,40732,40733,40734,40735,40737,40739,40740,40741,40742,40743,40744,40745,40746,40747,40749,40750,40752,40753,58284,58285,58286,58287,58288,58289,58290,58291,58292,58293,58294,58295,58296,58297,58298,58299,58300,58301,58302,58303,58304,58305,58306,58307,58308,58309,58310,58311,58312,58313,58314,58315,58316,58317,58318,58319,58320,58321,58322,58323,58324,58325,58326,58327,58328,58329,58330,58331,58332,58333,58334,58335,58336,58337,58338,58339,58340,58341,58342,58343,58344,58345,58346,58347,58348,58349,58350,58351,58352,58353,58354,58355,58356,58357,58358,58359,58360,58361,58362,58363,58364,58365,58366,58367,58368,58369,58370,58371,58372,58373,58374,58375,58376,58377,40754,40755,40756,40757,40758,40760,40762,40764,40767,40768,40769,40770,40771,40773,40774,40775,40776,40777,40778,40779,40780,40781,40782,40783,40786,40787,40788,40789,40790,40791,40792,40793,40794,40795,40796,40797,40798,40799,40800,40801,40802,40803,40804,40805,40806,40807,40808,40809,40810,40811,40812,40813,40814,40815,40816,40817,40818,40819,40820,40821,40822,40823,40824,40825,40826,40827,40828,40829,40830,40833,40834,40845,40846,40847,40848,40849,40850,40851,40852,40853,40854,40855,40856,40860,40861,40862,40865,40866,40867,40868,40869,63788,63865,63893,63975,63985,58378,58379,58380,58381,58382,58383,58384,58385,58386,58387,58388,58389,58390,58391,58392,58393,58394,58395,58396,58397,58398,58399,58400,58401,58402,58403,58404,58405,58406,58407,58408,58409,58410,58411,58412,58413,58414,58415,58416,58417,58418,58419,58420,58421,58422,58423,58424,58425,58426,58427,58428,58429,58430,58431,58432,58433,58434,58435,58436,58437,58438,58439,58440,58441,58442,58443,58444,58445,58446,58447,58448,58449,58450,58451,58452,58453,58454,58455,58456,58457,58458,58459,58460,58461,58462,58463,58464,58465,58466,58467,58468,58469,58470,58471,64012,64013,64014,64015,64017,64019,64020,64024,64031,64032,64033,64035,64036,64039,64040,64041,11905,59414,59415,59416,11908,13427,13383,11912,11915,59422,13726,13850,13838,11916,11927,14702,14616,59430,14799,14815,14963,14800,59435,59436,15182,15470,15584,11943,59441,59442,11946,16470,16735,11950,17207,11955,11958,11959,59451,17329,17324,11963,17373,17622,18017,17996,59459,18211,18217,18300,18317,11978,18759,18810,18813,18818,18819,18821,18822,18847,18843,18871,18870,59476,59477,19619,19615,19616,19617,19575,19618,19731,19732,19733,19734,19735,19736,19737,19886,59492,58472,58473,58474,58475,58476,58477,58478,58479,58480,58481,58482,58483,58484,58485,58486,58487,58488,58489,58490,58491,58492,58493,58494,58495,58496,58497,58498,58499,58500,58501,58502,58503,58504,58505,58506,58507,58508,58509,58510,58511,58512,58513,58514,58515,58516,58517,58518,58519,58520,58521,58522,58523,58524,58525,58526,58527,58528,58529,58530,58531,58532,58533,58534,58535,58536,58537,58538,58539,58540,58541,58542,58543,58544,58545,58546,58547,58548,58549,58550,58551,58552,58553,58554,58555,58556,58557,58558,58559,58560,58561,58562,58563,58564,58565],"gb18030-ranges":[[0,128],[36,165],[38,169],[45,178],[50,184],[81,216],[89,226],[95,235],[96,238],[100,244],[103,248],[104,251],[105,253],[109,258],[126,276],[133,284],[148,300],[172,325],[175,329],[179,334],[208,364],[306,463],[307,465],[308,467],[309,469],[310,471],[311,473],[312,475],[313,477],[341,506],[428,594],[443,610],[544,712],[545,716],[558,730],[741,930],[742,938],[749,962],[750,970],[805,1026],[819,1104],[820,1106],[7922,8209],[7924,8215],[7925,8218],[7927,8222],[7934,8231],[7943,8241],[7944,8244],[7945,8246],[7950,8252],[8062,8365],[8148,8452],[8149,8454],[8152,8458],[8164,8471],[8174,8482],[8236,8556],[8240,8570],[8262,8596],[8264,8602],[8374,8713],[8380,8720],[8381,8722],[8384,8726],[8388,8731],[8390,8737],[8392,8740],[8393,8742],[8394,8748],[8396,8751],[8401,8760],[8406,8766],[8416,8777],[8419,8781],[8424,8787],[8437,8802],[8439,8808],[8445,8816],[8482,8854],[8485,8858],[8496,8870],[8521,8896],[8603,8979],[8936,9322],[8946,9372],[9046,9548],[9050,9588],[9063,9616],[9066,9622],[9076,9634],[9092,9652],[9100,9662],[9108,9672],[9111,9676],[9113,9680],[9131,9702],[9162,9735],[9164,9738],[9218,9793],[9219,9795],[11329,11906],[11331,11909],[11334,11913],[11336,11917],[11346,11928],[11361,11944],[11363,11947],[11366,11951],[11370,11956],[11372,11960],[11375,11964],[11389,11979],[11682,12284],[11686,12292],[11687,12312],[11692,12319],[11694,12330],[11714,12351],[11716,12436],[11723,12447],[11725,12535],[11730,12543],[11736,12586],[11982,12842],[11989,12850],[12102,12964],[12336,13200],[12348,13215],[12350,13218],[12384,13253],[12393,13263],[12395,13267],[12397,13270],[12510,13384],[12553,13428],[12851,13727],[12962,13839],[12973,13851],[13738,14617],[13823,14703],[13919,14801],[13933,14816],[14080,14964],[14298,15183],[14585,15471],[14698,15585],[15583,16471],[15847,16736],[16318,17208],[16434,17325],[16438,17330],[16481,17374],[16729,17623],[17102,17997],[17122,18018],[17315,18212],[17320,18218],[17402,18301],[17418,18318],[17859,18760],[17909,18811],[17911,18814],[17915,18820],[17916,18823],[17936,18844],[17939,18848],[17961,18872],[18664,19576],[18703,19620],[18814,19738],[18962,19887],[19043,40870],[33469,59244],[33470,59336],[33471,59367],[33484,59413],[33485,59417],[33490,59423],[33497,59431],[33501,59437],[33505,59443],[33513,59452],[33520,59460],[33536,59478],[33550,59493],[37845,63789],[37921,63866],[37948,63894],[38029,63976],[38038,63986],[38064,64016],[38065,64018],[38066,64021],[38069,64025],[38075,64034],[38076,64037],[38078,64042],[39108,65074],[39109,65093],[39113,65107],[39114,65112],[39115,65127],[39116,65132],[39265,65375],[39394,65510],[189e3,65536]],jis0208:[12288,12289,12290,65292,65294,12539,65306,65307,65311,65281,12443,12444,180,65344,168,65342,65507,65343,12541,12542,12445,12446,12291,20189,12293,12294,12295,12540,8213,8208,65295,65340,65374,8741,65372,8230,8229,8216,8217,8220,8221,65288,65289,12308,12309,65339,65341,65371,65373,12296,12297,12298,12299,12300,12301,12302,12303,12304,12305,65291,65293,177,215,247,65309,8800,65308,65310,8806,8807,8734,8756,9794,9792,176,8242,8243,8451,65509,65284,65504,65505,65285,65283,65286,65290,65312,167,9734,9733,9675,9679,9678,9671,9670,9633,9632,9651,9650,9661,9660,8251,12306,8594,8592,8593,8595,12307,null,null,null,null,null,null,null,null,null,null,null,8712,8715,8838,8839,8834,8835,8746,8745,null,null,null,null,null,null,null,null,8743,8744,65506,8658,8660,8704,8707,null,null,null,null,null,null,null,null,null,null,null,8736,8869,8978,8706,8711,8801,8786,8810,8811,8730,8765,8733,8757,8747,8748,null,null,null,null,null,null,null,8491,8240,9839,9837,9834,8224,8225,182,null,null,null,null,9711,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,65296,65297,65298,65299,65300,65301,65302,65303,65304,65305,null,null,null,null,null,null,null,65313,65314,65315,65316,65317,65318,65319,65320,65321,65322,65323,65324,65325,65326,65327,65328,65329,65330,65331,65332,65333,65334,65335,65336,65337,65338,null,null,null,null,null,null,65345,65346,65347,65348,65349,65350,65351,65352,65353,65354,65355,65356,65357,65358,65359,65360,65361,65362,65363,65364,65365,65366,65367,65368,65369,65370,null,null,null,null,12353,12354,12355,12356,12357,12358,12359,12360,12361,12362,12363,12364,12365,12366,12367,12368,12369,12370,12371,12372,12373,12374,12375,12376,12377,12378,12379,12380,12381,12382,12383,12384,12385,12386,12387,12388,12389,12390,12391,12392,12393,12394,12395,12396,12397,12398,12399,12400,12401,12402,12403,12404,12405,12406,12407,12408,12409,12410,12411,12412,12413,12414,12415,12416,12417,12418,12419,12420,12421,12422,12423,12424,12425,12426,12427,12428,12429,12430,12431,12432,12433,12434,12435,null,null,null,null,null,null,null,null,null,null,null,12449,12450,12451,12452,12453,12454,12455,12456,12457,12458,12459,12460,12461,12462,12463,12464,12465,12466,12467,12468,12469,12470,12471,12472,12473,12474,12475,12476,12477,12478,12479,12480,12481,12482,12483,12484,12485,12486,12487,12488,12489,12490,12491,12492,12493,12494,12495,12496,12497,12498,12499,12500,12501,12502,12503,12504,12505,12506,12507,12508,12509,12510,12511,12512,12513,12514,12515,12516,12517,12518,12519,12520,12521,12522,12523,12524,12525,12526,12527,12528,12529,12530,12531,12532,12533,12534,null,null,null,null,null,null,null,null,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,null,null,null,null,null,null,null,null,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,963,964,965,966,967,968,969,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,1040,1041,1042,1043,1044,1045,1025,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,1072,1073,1074,1075,1076,1077,1105,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,null,null,null,null,null,null,null,null,null,null,null,null,null,9472,9474,9484,9488,9496,9492,9500,9516,9508,9524,9532,9473,9475,9487,9491,9499,9495,9507,9523,9515,9531,9547,9504,9519,9512,9527,9535,9501,9520,9509,9528,9538,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,9312,9313,9314,9315,9316,9317,9318,9319,9320,9321,9322,9323,9324,9325,9326,9327,9328,9329,9330,9331,8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,null,13129,13076,13090,13133,13080,13095,13059,13110,13137,13143,13069,13094,13091,13099,13130,13115,13212,13213,13214,13198,13199,13252,13217,null,null,null,null,null,null,null,null,13179,12317,12319,8470,13261,8481,12964,12965,12966,12967,12968,12849,12850,12857,13182,13181,13180,8786,8801,8747,8750,8721,8730,8869,8736,8735,8895,8757,8745,8746,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,20124,21782,23043,38463,21696,24859,25384,23030,36898,33909,33564,31312,24746,25569,28197,26093,33894,33446,39925,26771,22311,26017,25201,23451,22992,34427,39156,32098,32190,39822,25110,31903,34999,23433,24245,25353,26263,26696,38343,38797,26447,20197,20234,20301,20381,20553,22258,22839,22996,23041,23561,24799,24847,24944,26131,26885,28858,30031,30064,31227,32173,32239,32963,33806,34915,35586,36949,36986,21307,20117,20133,22495,32946,37057,30959,19968,22769,28322,36920,31282,33576,33419,39983,20801,21360,21693,21729,22240,23035,24341,39154,28139,32996,34093,38498,38512,38560,38907,21515,21491,23431,28879,32701,36802,38632,21359,40284,31418,19985,30867,33276,28198,22040,21764,27421,34074,39995,23013,21417,28006,29916,38287,22082,20113,36939,38642,33615,39180,21473,21942,23344,24433,26144,26355,26628,27704,27891,27945,29787,30408,31310,38964,33521,34907,35424,37613,28082,30123,30410,39365,24742,35585,36234,38322,27022,21421,20870,22290,22576,22852,23476,24310,24616,25513,25588,27839,28436,28814,28948,29017,29141,29503,32257,33398,33489,34199,36960,37467,40219,22633,26044,27738,29989,20985,22830,22885,24448,24540,25276,26106,27178,27431,27572,29579,32705,35158,40236,40206,40644,23713,27798,33659,20740,23627,25014,33222,26742,29281,20057,20474,21368,24681,28201,31311,38899,19979,21270,20206,20309,20285,20385,20339,21152,21487,22025,22799,23233,23478,23521,31185,26247,26524,26550,27468,27827,28779,29634,31117,31166,31292,31623,33457,33499,33540,33655,33775,33747,34662,35506,22057,36008,36838,36942,38686,34442,20420,23784,25105,29273,30011,33253,33469,34558,36032,38597,39187,39381,20171,20250,35299,22238,22602,22730,24315,24555,24618,24724,24674,25040,25106,25296,25913,39745,26214,26800,28023,28784,30028,30342,32117,33445,34809,38283,38542,35997,20977,21182,22806,21683,23475,23830,24936,27010,28079,30861,33995,34903,35442,37799,39608,28012,39336,34521,22435,26623,34510,37390,21123,22151,21508,24275,25313,25785,26684,26680,27579,29554,30906,31339,35226,35282,36203,36611,37101,38307,38548,38761,23398,23731,27005,38989,38990,25499,31520,27179,27263,26806,39949,28511,21106,21917,24688,25324,27963,28167,28369,33883,35088,36676,19988,39993,21494,26907,27194,38788,26666,20828,31427,33970,37340,37772,22107,40232,26658,33541,33841,31909,21e3,33477,29926,20094,20355,20896,23506,21002,21208,21223,24059,21914,22570,23014,23436,23448,23515,24178,24185,24739,24863,24931,25022,25563,25954,26577,26707,26874,27454,27475,27735,28450,28567,28485,29872,29976,30435,30475,31487,31649,31777,32233,32566,32752,32925,33382,33694,35251,35532,36011,36996,37969,38291,38289,38306,38501,38867,39208,33304,20024,21547,23736,24012,29609,30284,30524,23721,32747,36107,38593,38929,38996,39e3,20225,20238,21361,21916,22120,22522,22855,23305,23492,23696,24076,24190,24524,25582,26426,26071,26082,26399,26827,26820,27231,24112,27589,27671,27773,30079,31048,23395,31232,32e3,24509,35215,35352,36020,36215,36556,36637,39138,39438,39740,20096,20605,20736,22931,23452,25135,25216,25836,27450,29344,30097,31047,32681,34811,35516,35696,25516,33738,38816,21513,21507,21931,26708,27224,35440,30759,26485,40653,21364,23458,33050,34384,36870,19992,20037,20167,20241,21450,21560,23470,24339,24613,25937,26429,27714,27762,27875,28792,29699,31350,31406,31496,32026,31998,32102,26087,29275,21435,23621,24040,25298,25312,25369,28192,34394,35377,36317,37624,28417,31142,39770,20136,20139,20140,20379,20384,20689,20807,31478,20849,20982,21332,21281,21375,21483,21932,22659,23777,24375,24394,24623,24656,24685,25375,25945,27211,27841,29378,29421,30703,33016,33029,33288,34126,37111,37857,38911,39255,39514,20208,20957,23597,26241,26989,23616,26354,26997,29577,26704,31873,20677,21220,22343,24062,37670,26020,27427,27453,29748,31105,31165,31563,32202,33465,33740,34943,35167,35641,36817,37329,21535,37504,20061,20534,21477,21306,29399,29590,30697,33510,36527,39366,39368,39378,20855,24858,34398,21936,31354,20598,23507,36935,38533,20018,27355,37351,23633,23624,25496,31391,27795,38772,36705,31402,29066,38536,31874,26647,32368,26705,37740,21234,21531,34219,35347,32676,36557,37089,21350,34952,31041,20418,20670,21009,20804,21843,22317,29674,22411,22865,24418,24452,24693,24950,24935,25001,25522,25658,25964,26223,26690,28179,30054,31293,31995,32076,32153,32331,32619,33550,33610,34509,35336,35427,35686,36605,38938,40335,33464,36814,39912,21127,25119,25731,28608,38553,26689,20625,27424,27770,28500,31348,32080,34880,35363,26376,20214,20537,20518,20581,20860,21048,21091,21927,22287,22533,23244,24314,25010,25080,25331,25458,26908,27177,29309,29356,29486,30740,30831,32121,30476,32937,35211,35609,36066,36562,36963,37749,38522,38997,39443,40568,20803,21407,21427,24187,24358,28187,28304,29572,29694,32067,33335,35328,35578,38480,20046,20491,21476,21628,22266,22993,23396,24049,24235,24359,25144,25925,26543,28246,29392,31946,34996,32929,32993,33776,34382,35463,36328,37431,38599,39015,40723,20116,20114,20237,21320,21577,21566,23087,24460,24481,24735,26791,27278,29786,30849,35486,35492,35703,37264,20062,39881,20132,20348,20399,20505,20502,20809,20844,21151,21177,21246,21402,21475,21521,21518,21897,22353,22434,22909,23380,23389,23439,24037,24039,24055,24184,24195,24218,24247,24344,24658,24908,25239,25304,25511,25915,26114,26179,26356,26477,26657,26775,27083,27743,27946,28009,28207,28317,30002,30343,30828,31295,31968,32005,32024,32094,32177,32789,32771,32943,32945,33108,33167,33322,33618,34892,34913,35611,36002,36092,37066,37237,37489,30783,37628,38308,38477,38917,39321,39640,40251,21083,21163,21495,21512,22741,25335,28640,35946,36703,40633,20811,21051,21578,22269,31296,37239,40288,40658,29508,28425,33136,29969,24573,24794,39592,29403,36796,27492,38915,20170,22256,22372,22718,23130,24680,25031,26127,26118,26681,26801,28151,30165,32058,33390,39746,20123,20304,21449,21766,23919,24038,24046,26619,27801,29811,30722,35408,37782,35039,22352,24231,25387,20661,20652,20877,26368,21705,22622,22971,23472,24425,25165,25505,26685,27507,28168,28797,37319,29312,30741,30758,31085,25998,32048,33756,35009,36617,38555,21092,22312,26448,32618,36001,20916,22338,38442,22586,27018,32948,21682,23822,22524,30869,40442,20316,21066,21643,25662,26152,26388,26613,31364,31574,32034,37679,26716,39853,31545,21273,20874,21047,23519,25334,25774,25830,26413,27578,34217,38609,30352,39894,25420,37638,39851,30399,26194,19977,20632,21442,23665,24808,25746,25955,26719,29158,29642,29987,31639,32386,34453,35715,36059,37240,39184,26028,26283,27531,20181,20180,20282,20351,21050,21496,21490,21987,22235,22763,22987,22985,23039,23376,23629,24066,24107,24535,24605,25351,25903,23388,26031,26045,26088,26525,27490,27515,27663,29509,31049,31169,31992,32025,32043,32930,33026,33267,35222,35422,35433,35430,35468,35566,36039,36060,38604,39164,27503,20107,20284,20365,20816,23383,23546,24904,25345,26178,27425,28363,27835,29246,29885,30164,30913,31034,32780,32819,33258,33940,36766,27728,40575,24335,35672,40235,31482,36600,23437,38635,19971,21489,22519,22833,23241,23460,24713,28287,28422,30142,36074,23455,34048,31712,20594,26612,33437,23649,34122,32286,33294,20889,23556,25448,36198,26012,29038,31038,32023,32773,35613,36554,36974,34503,37034,20511,21242,23610,26451,28796,29237,37196,37320,37675,33509,23490,24369,24825,20027,21462,23432,25163,26417,27530,29417,29664,31278,33131,36259,37202,39318,20754,21463,21610,23551,25480,27193,32172,38656,22234,21454,21608,23447,23601,24030,20462,24833,25342,27954,31168,31179,32066,32333,32722,33261,33311,33936,34886,35186,35728,36468,36655,36913,37195,37228,38598,37276,20160,20303,20805,21313,24467,25102,26580,27713,28171,29539,32294,37325,37507,21460,22809,23487,28113,31069,32302,31899,22654,29087,20986,34899,36848,20426,23803,26149,30636,31459,33308,39423,20934,24490,26092,26991,27529,28147,28310,28516,30462,32020,24033,36981,37255,38918,20966,21021,25152,26257,26329,28186,24246,32210,32626,26360,34223,34295,35576,21161,21465,22899,24207,24464,24661,37604,38500,20663,20767,21213,21280,21319,21484,21736,21830,21809,22039,22888,22974,23100,23477,23558,23567,23569,23578,24196,24202,24288,24432,25215,25220,25307,25484,25463,26119,26124,26157,26230,26494,26786,27167,27189,27836,28040,28169,28248,28988,28966,29031,30151,30465,30813,30977,31077,31216,31456,31505,31911,32057,32918,33750,33931,34121,34909,35059,35359,35388,35412,35443,35937,36062,37284,37478,37758,37912,38556,38808,19978,19976,19998,20055,20887,21104,22478,22580,22732,23330,24120,24773,25854,26465,26454,27972,29366,30067,31331,33976,35698,37304,37664,22065,22516,39166,25325,26893,27542,29165,32340,32887,33394,35302,39135,34645,36785,23611,20280,20449,20405,21767,23072,23517,23529,24515,24910,25391,26032,26187,26862,27035,28024,28145,30003,30137,30495,31070,31206,32051,33251,33455,34218,35242,35386,36523,36763,36914,37341,38663,20154,20161,20995,22645,22764,23563,29978,23613,33102,35338,36805,38499,38765,31525,35535,38920,37218,22259,21416,36887,21561,22402,24101,25512,27700,28810,30561,31883,32736,34928,36930,37204,37648,37656,38543,29790,39620,23815,23913,25968,26530,36264,38619,25454,26441,26905,33733,38935,38592,35070,28548,25722,23544,19990,28716,30045,26159,20932,21046,21218,22995,24449,24615,25104,25919,25972,26143,26228,26866,26646,27491,28165,29298,29983,30427,31934,32854,22768,35069,35199,35488,35475,35531,36893,37266,38738,38745,25993,31246,33030,38587,24109,24796,25114,26021,26132,26512,30707,31309,31821,32318,33034,36012,36196,36321,36447,30889,20999,25305,25509,25666,25240,35373,31363,31680,35500,38634,32118,33292,34633,20185,20808,21315,21344,23459,23554,23574,24029,25126,25159,25776,26643,26676,27849,27973,27927,26579,28508,29006,29053,26059,31359,31661,32218,32330,32680,33146,33307,33337,34214,35438,36046,36341,36984,36983,37549,37521,38275,39854,21069,21892,28472,28982,20840,31109,32341,33203,31950,22092,22609,23720,25514,26366,26365,26970,29401,30095,30094,30990,31062,31199,31895,32032,32068,34311,35380,38459,36961,40736,20711,21109,21452,21474,20489,21930,22766,22863,29245,23435,23652,21277,24803,24819,25436,25475,25407,25531,25805,26089,26361,24035,27085,27133,28437,29157,20105,30185,30456,31379,31967,32207,32156,32865,33609,33624,33900,33980,34299,35013,36208,36865,36973,37783,38684,39442,20687,22679,24974,33235,34101,36104,36896,20419,20596,21063,21363,24687,25417,26463,28204,36275,36895,20439,23646,36042,26063,32154,21330,34966,20854,25539,23384,23403,23562,25613,26449,36956,20182,22810,22826,27760,35409,21822,22549,22949,24816,25171,26561,33333,26965,38464,39364,39464,20307,22534,23550,32784,23729,24111,24453,24608,24907,25140,26367,27888,28382,32974,33151,33492,34955,36024,36864,36910,38538,40667,39899,20195,21488,22823,31532,37261,38988,40441,28381,28711,21331,21828,23429,25176,25246,25299,27810,28655,29730,35351,37944,28609,35582,33592,20967,34552,21482,21481,20294,36948,36784,22890,33073,24061,31466,36799,26842,35895,29432,40008,27197,35504,20025,21336,22022,22374,25285,25506,26086,27470,28129,28251,28845,30701,31471,31658,32187,32829,32966,34507,35477,37723,22243,22727,24382,26029,26262,27264,27573,30007,35527,20516,30693,22320,24347,24677,26234,27744,30196,31258,32622,33268,34584,36933,39347,31689,30044,31481,31569,33988,36880,31209,31378,33590,23265,30528,20013,20210,23449,24544,25277,26172,26609,27880,34411,34935,35387,37198,37619,39376,27159,28710,29482,33511,33879,36015,19969,20806,20939,21899,23541,24086,24115,24193,24340,24373,24427,24500,25074,25361,26274,26397,28526,29266,30010,30522,32884,33081,33144,34678,35519,35548,36229,36339,37530,38263,38914,40165,21189,25431,30452,26389,27784,29645,36035,37806,38515,27941,22684,26894,27084,36861,37786,30171,36890,22618,26626,25524,27131,20291,28460,26584,36795,34086,32180,37716,26943,28528,22378,22775,23340,32044,29226,21514,37347,40372,20141,20302,20572,20597,21059,35998,21576,22564,23450,24093,24213,24237,24311,24351,24716,25269,25402,25552,26799,27712,30855,31118,31243,32224,33351,35330,35558,36420,36883,37048,37165,37336,40718,27877,25688,25826,25973,28404,30340,31515,36969,37841,28346,21746,24505,25764,36685,36845,37444,20856,22635,22825,23637,24215,28155,32399,29980,36028,36578,39003,28857,20253,27583,28593,3e4,38651,20814,21520,22581,22615,22956,23648,24466,26007,26460,28193,30331,33759,36077,36884,37117,37709,30757,30778,21162,24230,22303,22900,24594,20498,20826,20908,20941,20992,21776,22612,22616,22871,23445,23798,23947,24764,25237,25645,26481,26691,26812,26847,30423,28120,28271,28059,28783,29128,24403,30168,31095,31561,31572,31570,31958,32113,21040,33891,34153,34276,35342,35588,35910,36367,36867,36879,37913,38518,38957,39472,38360,20685,21205,21516,22530,23566,24999,25758,27934,30643,31461,33012,33796,36947,37509,23776,40199,21311,24471,24499,28060,29305,30563,31167,31716,27602,29420,35501,26627,27233,20984,31361,26932,23626,40182,33515,23493,37193,28702,22136,23663,24775,25958,27788,35930,36929,38931,21585,26311,37389,22856,37027,20869,20045,20970,34201,35598,28760,25466,37707,26978,39348,32260,30071,21335,26976,36575,38627,27741,20108,23612,24336,36841,21250,36049,32905,34425,24319,26085,20083,20837,22914,23615,38894,20219,22922,24525,35469,28641,31152,31074,23527,33905,29483,29105,24180,24565,25467,25754,29123,31896,20035,24316,20043,22492,22178,24745,28611,32013,33021,33075,33215,36786,35223,34468,24052,25226,25773,35207,26487,27874,27966,29750,30772,23110,32629,33453,39340,20467,24259,25309,25490,25943,26479,30403,29260,32972,32954,36649,37197,20493,22521,23186,26757,26995,29028,29437,36023,22770,36064,38506,36889,34687,31204,30695,33833,20271,21093,21338,25293,26575,27850,30333,31636,31893,33334,34180,36843,26333,28448,29190,32283,33707,39361,40614,20989,31665,30834,31672,32903,31560,27368,24161,32908,30033,30048,20843,37474,28300,30330,37271,39658,20240,32624,25244,31567,38309,40169,22138,22617,34532,38588,20276,21028,21322,21453,21467,24070,25644,26001,26495,27710,27726,29256,29359,29677,30036,32321,33324,34281,36009,31684,37318,29033,38930,39151,25405,26217,30058,30436,30928,34115,34542,21290,21329,21542,22915,24199,24444,24754,25161,25209,25259,26e3,27604,27852,30130,30382,30865,31192,32203,32631,32933,34987,35513,36027,36991,38750,39131,27147,31800,20633,23614,24494,26503,27608,29749,30473,32654,40763,26570,31255,21305,30091,39661,24422,33181,33777,32920,24380,24517,30050,31558,36924,26727,23019,23195,32016,30334,35628,20469,24426,27161,27703,28418,29922,31080,34920,35413,35961,24287,25551,30149,31186,33495,37672,37618,33948,34541,39981,21697,24428,25996,27996,28693,36007,36051,38971,25935,29942,19981,20184,22496,22827,23142,23500,20904,24067,24220,24598,25206,25975,26023,26222,28014,29238,31526,33104,33178,33433,35676,36e3,36070,36212,38428,38468,20398,25771,27494,33310,33889,34154,37096,23553,26963,39080,33914,34135,20239,21103,24489,24133,26381,31119,33145,35079,35206,28149,24343,25173,27832,20175,29289,39826,20998,21563,22132,22707,24996,25198,28954,22894,31881,31966,32027,38640,25991,32862,19993,20341,20853,22592,24163,24179,24330,26564,20006,34109,38281,38491,31859,38913,20731,22721,30294,30887,21029,30629,34065,31622,20559,22793,29255,31687,32232,36794,36820,36941,20415,21193,23081,24321,38829,20445,33303,37610,22275,25429,27497,29995,35036,36628,31298,21215,22675,24917,25098,26286,27597,31807,33769,20515,20472,21253,21574,22577,22857,23453,23792,23791,23849,24214,25265,25447,25918,26041,26379,27861,27873,28921,30770,32299,32990,33459,33804,34028,34562,35090,35370,35914,37030,37586,39165,40179,40300,20047,20129,20621,21078,22346,22952,24125,24536,24537,25151,26292,26395,26576,26834,20882,32033,32938,33192,35584,35980,36031,37502,38450,21536,38956,21271,20693,21340,22696,25778,26420,29287,30566,31302,37350,21187,27809,27526,22528,24140,22868,26412,32763,20961,30406,25705,30952,39764,40635,22475,22969,26151,26522,27598,21737,27097,24149,33180,26517,39850,26622,40018,26717,20134,20451,21448,25273,26411,27819,36804,20397,32365,40639,19975,24930,28288,28459,34067,21619,26410,39749,24051,31637,23724,23494,34588,28234,34001,31252,33032,22937,31885,27665,30496,21209,22818,28961,29279,30683,38695,40289,26891,23167,23064,20901,21517,21629,26126,30431,36855,37528,40180,23018,29277,28357,20813,26825,32191,32236,38754,40634,25720,27169,33538,22916,23391,27611,29467,30450,32178,32791,33945,20786,26408,40665,30446,26466,21247,39173,23588,25147,31870,36016,21839,24758,32011,38272,21249,20063,20918,22812,29242,32822,37326,24357,30690,21380,24441,32004,34220,35379,36493,38742,26611,34222,37971,24841,24840,27833,30290,35565,36664,21807,20305,20778,21191,21451,23461,24189,24736,24962,25558,26377,26586,28263,28044,29494,29495,30001,31056,35029,35480,36938,37009,37109,38596,34701,22805,20104,20313,19982,35465,36671,38928,20653,24188,22934,23481,24248,25562,25594,25793,26332,26954,27096,27915,28342,29076,29992,31407,32650,32768,33865,33993,35201,35617,36362,36965,38525,39178,24958,25233,27442,27779,28020,32716,32764,28096,32645,34746,35064,26469,33713,38972,38647,27931,32097,33853,37226,20081,21365,23888,27396,28651,34253,34349,35239,21033,21519,23653,26446,26792,29702,29827,30178,35023,35041,37324,38626,38520,24459,29575,31435,33870,25504,30053,21129,27969,28316,29705,30041,30827,31890,38534,31452,40845,20406,24942,26053,34396,20102,20142,20698,20001,20940,23534,26009,26753,28092,29471,30274,30637,31260,31975,33391,35538,36988,37327,38517,38936,21147,32209,20523,21400,26519,28107,29136,29747,33256,36650,38563,40023,40607,29792,22593,28057,32047,39006,20196,20278,20363,20919,21169,23994,24604,29618,31036,33491,37428,38583,38646,38666,40599,40802,26278,27508,21015,21155,28872,35010,24265,24651,24976,28451,29001,31806,32244,32879,34030,36899,37676,21570,39791,27347,28809,36034,36335,38706,21172,23105,24266,24324,26391,27004,27028,28010,28431,29282,29436,31725,32769,32894,34635,37070,20845,40595,31108,32907,37682,35542,20525,21644,35441,27498,36036,33031,24785,26528,40434,20121,20120,39952,35435,34241,34152,26880,28286,30871,33109,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,24332,19984,19989,20010,20017,20022,20028,20031,20034,20054,20056,20098,20101,35947,20106,33298,24333,20110,20126,20127,20128,20130,20144,20147,20150,20174,20173,20164,20166,20162,20183,20190,20205,20191,20215,20233,20314,20272,20315,20317,20311,20295,20342,20360,20367,20376,20347,20329,20336,20369,20335,20358,20374,20760,20436,20447,20430,20440,20443,20433,20442,20432,20452,20453,20506,20520,20500,20522,20517,20485,20252,20470,20513,20521,20524,20478,20463,20497,20486,20547,20551,26371,20565,20560,20552,20570,20566,20588,20600,20608,20634,20613,20660,20658,20681,20682,20659,20674,20694,20702,20709,20717,20707,20718,20729,20725,20745,20737,20738,20758,20757,20756,20762,20769,20794,20791,20796,20795,20799,20800,20818,20812,20820,20834,31480,20841,20842,20846,20864,20866,22232,20876,20873,20879,20881,20883,20885,20886,20900,20902,20898,20905,20906,20907,20915,20913,20914,20912,20917,20925,20933,20937,20955,20960,34389,20969,20973,20976,20981,20990,20996,21003,21012,21006,21031,21034,21038,21043,21049,21071,21060,21067,21068,21086,21076,21098,21108,21097,21107,21119,21117,21133,21140,21138,21105,21128,21137,36776,36775,21164,21165,21180,21173,21185,21197,21207,21214,21219,21222,39149,21216,21235,21237,21240,21241,21254,21256,30008,21261,21264,21263,21269,21274,21283,21295,21297,21299,21304,21312,21318,21317,19991,21321,21325,20950,21342,21353,21358,22808,21371,21367,21378,21398,21408,21414,21413,21422,21424,21430,21443,31762,38617,21471,26364,29166,21486,21480,21485,21498,21505,21565,21568,21548,21549,21564,21550,21558,21545,21533,21582,21647,21621,21646,21599,21617,21623,21616,21650,21627,21632,21622,21636,21648,21638,21703,21666,21688,21669,21676,21700,21704,21672,21675,21698,21668,21694,21692,21720,21733,21734,21775,21780,21757,21742,21741,21754,21730,21817,21824,21859,21836,21806,21852,21829,21846,21847,21816,21811,21853,21913,21888,21679,21898,21919,21883,21886,21912,21918,21934,21884,21891,21929,21895,21928,21978,21957,21983,21956,21980,21988,21972,22036,22007,22038,22014,22013,22043,22009,22094,22096,29151,22068,22070,22066,22072,22123,22116,22063,22124,22122,22150,22144,22154,22176,22164,22159,22181,22190,22198,22196,22210,22204,22209,22211,22208,22216,22222,22225,22227,22231,22254,22265,22272,22271,22276,22281,22280,22283,22285,22291,22296,22294,21959,22300,22310,22327,22328,22350,22331,22336,22351,22377,22464,22408,22369,22399,22409,22419,22432,22451,22436,22442,22448,22467,22470,22484,22482,22483,22538,22486,22499,22539,22553,22557,22642,22561,22626,22603,22640,27584,22610,22589,22649,22661,22713,22687,22699,22714,22750,22715,22712,22702,22725,22739,22737,22743,22745,22744,22757,22748,22756,22751,22767,22778,22777,22779,22780,22781,22786,22794,22800,22811,26790,22821,22828,22829,22834,22840,22846,31442,22869,22864,22862,22874,22872,22882,22880,22887,22892,22889,22904,22913,22941,20318,20395,22947,22962,22982,23016,23004,22925,23001,23002,23077,23071,23057,23068,23049,23066,23104,23148,23113,23093,23094,23138,23146,23194,23228,23230,23243,23234,23229,23267,23255,23270,23273,23254,23290,23291,23308,23307,23318,23346,23248,23338,23350,23358,23363,23365,23360,23377,23381,23386,23387,23397,23401,23408,23411,23413,23416,25992,23418,23424,23427,23462,23480,23491,23495,23497,23508,23504,23524,23526,23522,23518,23525,23531,23536,23542,23539,23557,23559,23560,23565,23571,23584,23586,23592,23608,23609,23617,23622,23630,23635,23632,23631,23409,23660,23662,20066,23670,23673,23692,23697,23700,22939,23723,23739,23734,23740,23735,23749,23742,23751,23769,23785,23805,23802,23789,23948,23786,23819,23829,23831,23900,23839,23835,23825,23828,23842,23834,23833,23832,23884,23890,23886,23883,23916,23923,23926,23943,23940,23938,23970,23965,23980,23982,23997,23952,23991,23996,24009,24013,24019,24018,24022,24027,24043,24050,24053,24075,24090,24089,24081,24091,24118,24119,24132,24131,24128,24142,24151,24148,24159,24162,24164,24135,24181,24182,24186,40636,24191,24224,24257,24258,24264,24272,24271,24278,24291,24285,24282,24283,24290,24289,24296,24297,24300,24305,24307,24304,24308,24312,24318,24323,24329,24413,24412,24331,24337,24342,24361,24365,24376,24385,24392,24396,24398,24367,24401,24406,24407,24409,24417,24429,24435,24439,24451,24450,24447,24458,24456,24465,24455,24478,24473,24472,24480,24488,24493,24508,24534,24571,24548,24568,24561,24541,24755,24575,24609,24672,24601,24592,24617,24590,24625,24603,24597,24619,24614,24591,24634,24666,24641,24682,24695,24671,24650,24646,24653,24675,24643,24676,24642,24684,24683,24665,24705,24717,24807,24707,24730,24708,24731,24726,24727,24722,24743,24715,24801,24760,24800,24787,24756,24560,24765,24774,24757,24792,24909,24853,24838,24822,24823,24832,24820,24826,24835,24865,24827,24817,24845,24846,24903,24894,24872,24871,24906,24895,24892,24876,24884,24893,24898,24900,24947,24951,24920,24921,24922,24939,24948,24943,24933,24945,24927,24925,24915,24949,24985,24982,24967,25004,24980,24986,24970,24977,25003,25006,25036,25034,25033,25079,25032,25027,25030,25018,25035,32633,25037,25062,25059,25078,25082,25076,25087,25085,25084,25086,25088,25096,25097,25101,25100,25108,25115,25118,25121,25130,25134,25136,25138,25139,25153,25166,25182,25187,25179,25184,25192,25212,25218,25225,25214,25234,25235,25238,25300,25219,25236,25303,25297,25275,25295,25343,25286,25812,25288,25308,25292,25290,25282,25287,25243,25289,25356,25326,25329,25383,25346,25352,25327,25333,25424,25406,25421,25628,25423,25494,25486,25472,25515,25462,25507,25487,25481,25503,25525,25451,25449,25534,25577,25536,25542,25571,25545,25554,25590,25540,25622,25652,25606,25619,25638,25654,25885,25623,25640,25615,25703,25711,25718,25678,25898,25749,25747,25765,25769,25736,25788,25818,25810,25797,25799,25787,25816,25794,25841,25831,33289,25824,25825,25260,25827,25839,25900,25846,25844,25842,25850,25856,25853,25880,25884,25861,25892,25891,25899,25908,25909,25911,25910,25912,30027,25928,25942,25941,25933,25944,25950,25949,25970,25976,25986,25987,35722,26011,26015,26027,26039,26051,26054,26049,26052,26060,26066,26075,26073,26080,26081,26097,26482,26122,26115,26107,26483,26165,26166,26164,26140,26191,26180,26185,26177,26206,26205,26212,26215,26216,26207,26210,26224,26243,26248,26254,26249,26244,26264,26269,26305,26297,26313,26302,26300,26308,26296,26326,26330,26336,26175,26342,26345,26352,26357,26359,26383,26390,26398,26406,26407,38712,26414,26431,26422,26433,26424,26423,26438,26462,26464,26457,26467,26468,26505,26480,26537,26492,26474,26508,26507,26534,26529,26501,26551,26607,26548,26604,26547,26601,26552,26596,26590,26589,26594,26606,26553,26574,26566,26599,27292,26654,26694,26665,26688,26701,26674,26702,26803,26667,26713,26723,26743,26751,26783,26767,26797,26772,26781,26779,26755,27310,26809,26740,26805,26784,26810,26895,26765,26750,26881,26826,26888,26840,26914,26918,26849,26892,26829,26836,26855,26837,26934,26898,26884,26839,26851,26917,26873,26848,26863,26920,26922,26906,26915,26913,26822,27001,26999,26972,27e3,26987,26964,27006,26990,26937,26996,26941,26969,26928,26977,26974,26973,27009,26986,27058,27054,27088,27071,27073,27091,27070,27086,23528,27082,27101,27067,27075,27047,27182,27025,27040,27036,27029,27060,27102,27112,27138,27163,27135,27402,27129,27122,27111,27141,27057,27166,27117,27156,27115,27146,27154,27329,27171,27155,27204,27148,27250,27190,27256,27207,27234,27225,27238,27208,27192,27170,27280,27277,27296,27268,27298,27299,27287,34327,27323,27331,27330,27320,27315,27308,27358,27345,27359,27306,27354,27370,27387,27397,34326,27386,27410,27414,39729,27423,27448,27447,30428,27449,39150,27463,27459,27465,27472,27481,27476,27483,27487,27489,27512,27513,27519,27520,27524,27523,27533,27544,27541,27550,27556,27562,27563,27567,27570,27569,27571,27575,27580,27590,27595,27603,27615,27628,27627,27635,27631,40638,27656,27667,27668,27675,27684,27683,27742,27733,27746,27754,27778,27789,27802,27777,27803,27774,27752,27763,27794,27792,27844,27889,27859,27837,27863,27845,27869,27822,27825,27838,27834,27867,27887,27865,27882,27935,34893,27958,27947,27965,27960,27929,27957,27955,27922,27916,28003,28051,28004,27994,28025,27993,28046,28053,28644,28037,28153,28181,28170,28085,28103,28134,28088,28102,28140,28126,28108,28136,28114,28101,28154,28121,28132,28117,28138,28142,28205,28270,28206,28185,28274,28255,28222,28195,28267,28203,28278,28237,28191,28227,28218,28238,28196,28415,28189,28216,28290,28330,28312,28361,28343,28371,28349,28335,28356,28338,28372,28373,28303,28325,28354,28319,28481,28433,28748,28396,28408,28414,28479,28402,28465,28399,28466,28364,28478,28435,28407,28550,28538,28536,28545,28544,28527,28507,28659,28525,28546,28540,28504,28558,28561,28610,28518,28595,28579,28577,28580,28601,28614,28586,28639,28629,28652,28628,28632,28657,28654,28635,28681,28683,28666,28689,28673,28687,28670,28699,28698,28532,28701,28696,28703,28720,28734,28722,28753,28771,28825,28818,28847,28913,28844,28856,28851,28846,28895,28875,28893,28889,28937,28925,28956,28953,29029,29013,29064,29030,29026,29004,29014,29036,29071,29179,29060,29077,29096,29100,29143,29113,29118,29138,29129,29140,29134,29152,29164,29159,29173,29180,29177,29183,29197,29200,29211,29224,29229,29228,29232,29234,29243,29244,29247,29248,29254,29259,29272,29300,29310,29314,29313,29319,29330,29334,29346,29351,29369,29362,29379,29382,29380,29390,29394,29410,29408,29409,29433,29431,20495,29463,29450,29468,29462,29469,29492,29487,29481,29477,29502,29518,29519,40664,29527,29546,29544,29552,29560,29557,29563,29562,29640,29619,29646,29627,29632,29669,29678,29662,29858,29701,29807,29733,29688,29746,29754,29781,29759,29791,29785,29761,29788,29801,29808,29795,29802,29814,29822,29835,29854,29863,29898,29903,29908,29681,29920,29923,29927,29929,29934,29938,29936,29937,29944,29943,29956,29955,29957,29964,29966,29965,29973,29971,29982,29990,29996,30012,30020,30029,30026,30025,30043,30022,30042,30057,30052,30055,30059,30061,30072,30070,30086,30087,30068,30090,30089,30082,30100,30106,30109,30117,30115,30146,30131,30147,30133,30141,30136,30140,30129,30157,30154,30162,30169,30179,30174,30206,30207,30204,30209,30192,30202,30194,30195,30219,30221,30217,30239,30247,30240,30241,30242,30244,30260,30256,30267,30279,30280,30278,30300,30296,30305,30306,30312,30313,30314,30311,30316,30320,30322,30326,30328,30332,30336,30339,30344,30347,30350,30358,30355,30361,30362,30384,30388,30392,30393,30394,30402,30413,30422,30418,30430,30433,30437,30439,30442,34351,30459,30472,30471,30468,30505,30500,30494,30501,30502,30491,30519,30520,30535,30554,30568,30571,30555,30565,30591,30590,30585,30606,30603,30609,30624,30622,30640,30646,30649,30655,30652,30653,30651,30663,30669,30679,30682,30684,30691,30702,30716,30732,30738,31014,30752,31018,30789,30862,30836,30854,30844,30874,30860,30883,30901,30890,30895,30929,30918,30923,30932,30910,30908,30917,30922,30956,30951,30938,30973,30964,30983,30994,30993,31001,31020,31019,31040,31072,31063,31071,31066,31061,31059,31098,31103,31114,31133,31143,40779,31146,31150,31155,31161,31162,31177,31189,31207,31212,31201,31203,31240,31245,31256,31257,31264,31263,31104,31281,31291,31294,31287,31299,31319,31305,31329,31330,31337,40861,31344,31353,31357,31368,31383,31381,31384,31382,31401,31432,31408,31414,31429,31428,31423,36995,31431,31434,31437,31439,31445,31443,31449,31450,31453,31457,31458,31462,31469,31472,31490,31503,31498,31494,31539,31512,31513,31518,31541,31528,31542,31568,31610,31492,31565,31499,31564,31557,31605,31589,31604,31591,31600,31601,31596,31598,31645,31640,31647,31629,31644,31642,31627,31634,31631,31581,31641,31691,31681,31692,31695,31668,31686,31709,31721,31761,31764,31718,31717,31840,31744,31751,31763,31731,31735,31767,31757,31734,31779,31783,31786,31775,31799,31787,31805,31820,31811,31828,31823,31808,31824,31832,31839,31844,31830,31845,31852,31861,31875,31888,31908,31917,31906,31915,31905,31912,31923,31922,31921,31918,31929,31933,31936,31941,31938,31960,31954,31964,31970,39739,31983,31986,31988,31990,31994,32006,32002,32028,32021,32010,32069,32075,32046,32050,32063,32053,32070,32115,32086,32078,32114,32104,32110,32079,32099,32147,32137,32091,32143,32125,32155,32186,32174,32163,32181,32199,32189,32171,32317,32162,32175,32220,32184,32159,32176,32216,32221,32228,32222,32251,32242,32225,32261,32266,32291,32289,32274,32305,32287,32265,32267,32290,32326,32358,32315,32309,32313,32323,32311,32306,32314,32359,32349,32342,32350,32345,32346,32377,32362,32361,32380,32379,32387,32213,32381,36782,32383,32392,32393,32396,32402,32400,32403,32404,32406,32398,32411,32412,32568,32570,32581,32588,32589,32590,32592,32593,32597,32596,32600,32607,32608,32616,32617,32615,32632,32642,32646,32643,32648,32647,32652,32660,32670,32669,32666,32675,32687,32690,32697,32686,32694,32696,35697,32709,32710,32714,32725,32724,32737,32742,32745,32755,32761,39132,32774,32772,32779,32786,32792,32793,32796,32801,32808,32831,32827,32842,32838,32850,32856,32858,32863,32866,32872,32883,32882,32880,32886,32889,32893,32895,32900,32902,32901,32923,32915,32922,32941,20880,32940,32987,32997,32985,32989,32964,32986,32982,33033,33007,33009,33051,33065,33059,33071,33099,38539,33094,33086,33107,33105,33020,33137,33134,33125,33126,33140,33155,33160,33162,33152,33154,33184,33173,33188,33187,33119,33171,33193,33200,33205,33214,33208,33213,33216,33218,33210,33225,33229,33233,33241,33240,33224,33242,33247,33248,33255,33274,33275,33278,33281,33282,33285,33287,33290,33293,33296,33302,33321,33323,33336,33331,33344,33369,33368,33373,33370,33375,33380,33378,33384,33386,33387,33326,33393,33399,33400,33406,33421,33426,33451,33439,33467,33452,33505,33507,33503,33490,33524,33523,33530,33683,33539,33531,33529,33502,33542,33500,33545,33497,33589,33588,33558,33586,33585,33600,33593,33616,33605,33583,33579,33559,33560,33669,33690,33706,33695,33698,33686,33571,33678,33671,33674,33660,33717,33651,33653,33696,33673,33704,33780,33811,33771,33742,33789,33795,33752,33803,33729,33783,33799,33760,33778,33805,33826,33824,33725,33848,34054,33787,33901,33834,33852,34138,33924,33911,33899,33965,33902,33922,33897,33862,33836,33903,33913,33845,33994,33890,33977,33983,33951,34009,33997,33979,34010,34e3,33985,33990,34006,33953,34081,34047,34036,34071,34072,34092,34079,34069,34068,34044,34112,34147,34136,34120,34113,34306,34123,34133,34176,34212,34184,34193,34186,34216,34157,34196,34203,34282,34183,34204,34167,34174,34192,34249,34234,34255,34233,34256,34261,34269,34277,34268,34297,34314,34323,34315,34302,34298,34310,34338,34330,34352,34367,34381,20053,34388,34399,34407,34417,34451,34467,34473,34474,34443,34444,34486,34479,34500,34502,34480,34505,34851,34475,34516,34526,34537,34540,34527,34523,34543,34578,34566,34568,34560,34563,34555,34577,34569,34573,34553,34570,34612,34623,34615,34619,34597,34601,34586,34656,34655,34680,34636,34638,34676,34647,34664,34670,34649,34643,34659,34666,34821,34722,34719,34690,34735,34763,34749,34752,34768,38614,34731,34756,34739,34759,34758,34747,34799,34802,34784,34831,34829,34814,34806,34807,34830,34770,34833,34838,34837,34850,34849,34865,34870,34873,34855,34875,34884,34882,34898,34905,34910,34914,34923,34945,34942,34974,34933,34941,34997,34930,34946,34967,34962,34990,34969,34978,34957,34980,34992,35007,34993,35011,35012,35028,35032,35033,35037,35065,35074,35068,35060,35048,35058,35076,35084,35082,35091,35139,35102,35109,35114,35115,35137,35140,35131,35126,35128,35148,35101,35168,35166,35174,35172,35181,35178,35183,35188,35191,35198,35203,35208,35210,35219,35224,35233,35241,35238,35244,35247,35250,35258,35261,35263,35264,35290,35292,35293,35303,35316,35320,35331,35350,35344,35340,35355,35357,35365,35382,35393,35419,35410,35398,35400,35452,35437,35436,35426,35461,35458,35460,35496,35489,35473,35493,35494,35482,35491,35524,35533,35522,35546,35563,35571,35559,35556,35569,35604,35552,35554,35575,35550,35547,35596,35591,35610,35553,35606,35600,35607,35616,35635,38827,35622,35627,35646,35624,35649,35660,35663,35662,35657,35670,35675,35674,35691,35679,35692,35695,35700,35709,35712,35724,35726,35730,35731,35734,35737,35738,35898,35905,35903,35912,35916,35918,35920,35925,35938,35948,35960,35962,35970,35977,35973,35978,35981,35982,35988,35964,35992,25117,36013,36010,36029,36018,36019,36014,36022,36040,36033,36068,36067,36058,36093,36090,36091,36100,36101,36106,36103,36111,36109,36112,40782,36115,36045,36116,36118,36199,36205,36209,36211,36225,36249,36290,36286,36282,36303,36314,36310,36300,36315,36299,36330,36331,36319,36323,36348,36360,36361,36351,36381,36382,36368,36383,36418,36405,36400,36404,36426,36423,36425,36428,36432,36424,36441,36452,36448,36394,36451,36437,36470,36466,36476,36481,36487,36485,36484,36491,36490,36499,36497,36500,36505,36522,36513,36524,36528,36550,36529,36542,36549,36552,36555,36571,36579,36604,36603,36587,36606,36618,36613,36629,36626,36633,36627,36636,36639,36635,36620,36646,36659,36667,36665,36677,36674,36670,36684,36681,36678,36686,36695,36700,36706,36707,36708,36764,36767,36771,36781,36783,36791,36826,36837,36834,36842,36847,36999,36852,36869,36857,36858,36881,36885,36897,36877,36894,36886,36875,36903,36918,36917,36921,36856,36943,36944,36945,36946,36878,36937,36926,36950,36952,36958,36968,36975,36982,38568,36978,36994,36989,36993,36992,37002,37001,37007,37032,37039,37041,37045,37090,37092,25160,37083,37122,37138,37145,37170,37168,37194,37206,37208,37219,37221,37225,37235,37234,37259,37257,37250,37282,37291,37295,37290,37301,37300,37306,37312,37313,37321,37323,37328,37334,37343,37345,37339,37372,37365,37366,37406,37375,37396,37420,37397,37393,37470,37463,37445,37449,37476,37448,37525,37439,37451,37456,37532,37526,37523,37531,37466,37583,37561,37559,37609,37647,37626,37700,37678,37657,37666,37658,37667,37690,37685,37691,37724,37728,37756,37742,37718,37808,37804,37805,37780,37817,37846,37847,37864,37861,37848,37827,37853,37840,37832,37860,37914,37908,37907,37891,37895,37904,37942,37931,37941,37921,37946,37953,37970,37956,37979,37984,37986,37982,37994,37417,38e3,38005,38007,38013,37978,38012,38014,38017,38015,38274,38279,38282,38292,38294,38296,38297,38304,38312,38311,38317,38332,38331,38329,38334,38346,28662,38339,38349,38348,38357,38356,38358,38364,38369,38373,38370,38433,38440,38446,38447,38466,38476,38479,38475,38519,38492,38494,38493,38495,38502,38514,38508,38541,38552,38549,38551,38570,38567,38577,38578,38576,38580,38582,38584,38585,38606,38603,38601,38605,35149,38620,38669,38613,38649,38660,38662,38664,38675,38670,38673,38671,38678,38681,38692,38698,38704,38713,38717,38718,38724,38726,38728,38722,38729,38748,38752,38756,38758,38760,21202,38763,38769,38777,38789,38780,38785,38778,38790,38795,38799,38800,38812,38824,38822,38819,38835,38836,38851,38854,38856,38859,38876,38893,40783,38898,31455,38902,38901,38927,38924,38968,38948,38945,38967,38973,38982,38991,38987,39019,39023,39024,39025,39028,39027,39082,39087,39089,39094,39108,39107,39110,39145,39147,39171,39177,39186,39188,39192,39201,39197,39198,39204,39200,39212,39214,39229,39230,39234,39241,39237,39248,39243,39249,39250,39244,39253,39319,39320,39333,39341,39342,39356,39391,39387,39389,39384,39377,39405,39406,39409,39410,39419,39416,39425,39439,39429,39394,39449,39467,39479,39493,39490,39488,39491,39486,39509,39501,39515,39511,39519,39522,39525,39524,39529,39531,39530,39597,39600,39612,39616,39631,39633,39635,39636,39646,39647,39650,39651,39654,39663,39659,39662,39668,39665,39671,39675,39686,39704,39706,39711,39714,39715,39717,39719,39720,39721,39722,39726,39727,39730,39748,39747,39759,39757,39758,39761,39768,39796,39827,39811,39825,39830,39831,39839,39840,39848,39860,39872,39882,39865,39878,39887,39889,39890,39907,39906,39908,39892,39905,39994,39922,39921,39920,39957,39956,39945,39955,39948,39942,39944,39954,39946,39940,39982,39963,39973,39972,39969,39984,40007,39986,40006,39998,40026,40032,40039,40054,40056,40167,40172,40176,40201,40200,40171,40195,40198,40234,40230,40367,40227,40223,40260,40213,40210,40257,40255,40254,40262,40264,40285,40286,40292,40273,40272,40281,40306,40329,40327,40363,40303,40314,40346,40356,40361,40370,40388,40385,40379,40376,40378,40390,40399,40386,40409,40403,40440,40422,40429,40431,40445,40474,40475,40478,40565,40569,40573,40577,40584,40587,40588,40594,40597,40593,40605,40613,40617,40632,40618,40621,38753,40652,40654,40655,40656,40660,40668,40670,40669,40672,40677,40680,40687,40692,40694,40695,40697,40699,40700,40701,40711,40712,30391,40725,40737,40748,40766,40778,40786,40788,40803,40799,40800,40801,40806,40807,40812,40810,40823,40818,40822,40853,40860,40864,22575,27079,36953,29796,20956,29081,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,32394,35100,37704,37512,34012,20425,28859,26161,26824,37625,26363,24389,20008,20193,20220,20224,20227,20281,20310,20370,20362,20378,20372,20429,20544,20514,20479,20510,20550,20592,20546,20628,20724,20696,20810,20836,20893,20926,20972,21013,21148,21158,21184,21211,21248,21255,21284,21362,21395,21426,21469,64014,21660,21642,21673,21759,21894,22361,22373,22444,22472,22471,64015,64016,22686,22706,22795,22867,22875,22877,22883,22948,22970,23382,23488,29999,23512,23532,23582,23718,23738,23797,23847,23891,64017,23874,23917,23992,23993,24016,24353,24372,24423,24503,24542,24669,24709,24714,24798,24789,24864,24818,24849,24887,24880,24984,25107,25254,25589,25696,25757,25806,25934,26112,26133,26171,26121,26158,26142,26148,26213,26199,26201,64018,26227,26265,26272,26290,26303,26362,26382,63785,26470,26555,26706,26560,26625,26692,26831,64019,26984,64020,27032,27106,27184,27243,27206,27251,27262,27362,27364,27606,27711,27740,27782,27759,27866,27908,28039,28015,28054,28076,28111,28152,28146,28156,28217,28252,28199,28220,28351,28552,28597,28661,28677,28679,28712,28805,28843,28943,28932,29020,28998,28999,64021,29121,29182,29361,29374,29476,64022,29559,29629,29641,29654,29667,29650,29703,29685,29734,29738,29737,29742,29794,29833,29855,29953,30063,30338,30364,30366,30363,30374,64023,30534,21167,30753,30798,30820,30842,31024,64024,64025,64026,31124,64027,31131,31441,31463,64028,31467,31646,64029,32072,32092,32183,32160,32214,32338,32583,32673,64030,33537,33634,33663,33735,33782,33864,33972,34131,34137,34155,64031,34224,64032,64033,34823,35061,35346,35383,35449,35495,35518,35551,64034,35574,35667,35711,36080,36084,36114,36214,64035,36559,64036,64037,36967,37086,64038,37141,37159,37338,37335,37342,37357,37358,37348,37349,37382,37392,37386,37434,37440,37436,37454,37465,37457,37433,37479,37543,37495,37496,37607,37591,37593,37584,64039,37589,37600,37587,37669,37665,37627,64040,37662,37631,37661,37634,37744,37719,37796,37830,37854,37880,37937,37957,37960,38290,63964,64041,38557,38575,38707,38715,38723,38733,38735,38737,38741,38999,39013,64042,64043,39207,64044,39326,39502,39641,39644,39797,39794,39823,39857,39867,39936,40304,40299,64045,40473,40657,null,null,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,65506,65508,65287,65282,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,65506,65508,65287,65282,12849,8470,8481,8757,32394,35100,37704,37512,34012,20425,28859,26161,26824,37625,26363,24389,20008,20193,20220,20224,20227,20281,20310,20370,20362,20378,20372,20429,20544,20514,20479,20510,20550,20592,20546,20628,20724,20696,20810,20836,20893,20926,20972,21013,21148,21158,21184,21211,21248,21255,21284,21362,21395,21426,21469,64014,21660,21642,21673,21759,21894,22361,22373,22444,22472,22471,64015,64016,22686,22706,22795,22867,22875,22877,22883,22948,22970,23382,23488,29999,23512,23532,23582,23718,23738,23797,23847,23891,64017,23874,23917,23992,23993,24016,24353,24372,24423,24503,24542,24669,24709,24714,24798,24789,24864,24818,24849,24887,24880,24984,25107,25254,25589,25696,25757,25806,25934,26112,26133,26171,26121,26158,26142,26148,26213,26199,26201,64018,26227,26265,26272,26290,26303,26362,26382,63785,26470,26555,26706,26560,26625,26692,26831,64019,26984,64020,27032,27106,27184,27243,27206,27251,27262,27362,27364,27606,27711,27740,27782,27759,27866,27908,28039,28015,28054,28076,28111,28152,28146,28156,28217,28252,28199,28220,28351,28552,28597,28661,28677,28679,28712,28805,28843,28943,28932,29020,28998,28999,64021,29121,29182,29361,29374,29476,64022,29559,29629,29641,29654,29667,29650,29703,29685,29734,29738,29737,29742,29794,29833,29855,29953,30063,30338,30364,30366,30363,30374,64023,30534,21167,30753,30798,30820,30842,31024,64024,64025,64026,31124,64027,31131,31441,31463,64028,31467,31646,64029,32072,32092,32183,32160,32214,32338,32583,32673,64030,33537,33634,33663,33735,33782,33864,33972,34131,34137,34155,64031,34224,64032,64033,34823,35061,35346,35383,35449,35495,35518,35551,64034,35574,35667,35711,36080,36084,36114,36214,64035,36559,64036,64037,36967,37086,64038,37141,37159,37338,37335,37342,37357,37358,37348,37349,37382,37392,37386,37434,37440,37436,37454,37465,37457,37433,37479,37543,37495,37496,37607,37591,37593,37584,64039,37589,37600,37587,37669,37665,37627,64040,37662,37631,37661,37634,37744,37719,37796,37830,37854,37880,37937,37957,37960,38290,63964,64041,38557,38575,38707,38715,38723,38733,38735,38737,38741,38999,39013,64042,64043,39207,64044,39326,39502,39641,39644,39797,39794,39823,39857,39867,39936,40304,40299,64045,40473,40657,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],jis0212:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,728,711,184,729,733,175,731,730,65374,900,901,null,null,null,null,null,null,null,null,161,166,191,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,186,170,169,174,8482,164,8470,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,902,904,905,906,938,null,908,null,910,939,null,911,null,null,null,null,940,941,942,943,970,912,972,962,973,971,944,974,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1038,1039,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1118,1119,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,198,272,null,294,null,306,null,321,319,null,330,216,338,null,358,222,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,230,273,240,295,305,307,312,322,320,329,331,248,339,223,359,254,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,193,192,196,194,258,461,256,260,197,195,262,264,268,199,266,270,201,200,203,202,282,278,274,280,null,284,286,290,288,292,205,204,207,206,463,304,298,302,296,308,310,313,317,315,323,327,325,209,211,210,214,212,465,336,332,213,340,344,342,346,348,352,350,356,354,218,217,220,219,364,467,368,362,370,366,360,471,475,473,469,372,221,376,374,377,381,379,null,null,null,null,null,null,null,225,224,228,226,259,462,257,261,229,227,263,265,269,231,267,271,233,232,235,234,283,279,275,281,501,285,287,null,289,293,237,236,239,238,464,null,299,303,297,309,311,314,318,316,324,328,326,241,243,242,246,244,466,337,333,245,341,345,343,347,349,353,351,357,355,250,249,252,251,365,468,369,363,371,367,361,472,476,474,470,373,253,255,375,378,382,380,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,19970,19972,19973,19980,19986,19999,20003,20004,20008,20011,20014,20015,20016,20021,20032,20033,20036,20039,20049,20058,20060,20067,20072,20073,20084,20085,20089,20095,20109,20118,20119,20125,20143,20153,20163,20176,20186,20187,20192,20193,20194,20200,20207,20209,20211,20213,20221,20222,20223,20224,20226,20227,20232,20235,20236,20242,20245,20246,20247,20249,20270,20273,20320,20275,20277,20279,20281,20283,20286,20288,20290,20296,20297,20299,20300,20306,20308,20310,20312,20319,20323,20330,20332,20334,20337,20343,20344,20345,20346,20349,20350,20353,20354,20356,20357,20361,20362,20364,20366,20368,20370,20371,20372,20375,20377,20378,20382,20383,20402,20407,20409,20411,20412,20413,20414,20416,20417,20421,20422,20424,20425,20427,20428,20429,20431,20434,20444,20448,20450,20464,20466,20476,20477,20479,20480,20481,20484,20487,20490,20492,20494,20496,20499,20503,20504,20507,20508,20509,20510,20514,20519,20526,20528,20530,20531,20533,20544,20545,20546,20549,20550,20554,20556,20558,20561,20562,20563,20567,20569,20575,20576,20578,20579,20582,20583,20586,20589,20592,20593,20539,20609,20611,20612,20614,20618,20622,20623,20624,20626,20627,20628,20630,20635,20636,20638,20639,20640,20641,20642,20650,20655,20656,20665,20666,20669,20672,20675,20676,20679,20684,20686,20688,20691,20692,20696,20700,20701,20703,20706,20708,20710,20712,20713,20719,20721,20726,20730,20734,20739,20742,20743,20744,20747,20748,20749,20750,20722,20752,20759,20761,20763,20764,20765,20766,20771,20775,20776,20780,20781,20783,20785,20787,20788,20789,20792,20793,20802,20810,20815,20819,20821,20823,20824,20831,20836,20838,20862,20867,20868,20875,20878,20888,20893,20897,20899,20909,20920,20922,20924,20926,20927,20930,20936,20943,20945,20946,20947,20949,20952,20958,20962,20965,20974,20978,20979,20980,20983,20993,20994,20997,21010,21011,21013,21014,21016,21026,21032,21041,21042,21045,21052,21061,21065,21077,21079,21080,21082,21084,21087,21088,21089,21094,21102,21111,21112,21113,21120,21122,21125,21130,21132,21139,21141,21142,21143,21144,21146,21148,21156,21157,21158,21159,21167,21168,21174,21175,21176,21178,21179,21181,21184,21188,21190,21192,21196,21199,21201,21204,21206,21211,21212,21217,21221,21224,21225,21226,21228,21232,21233,21236,21238,21239,21248,21251,21258,21259,21260,21265,21267,21272,21275,21276,21278,21279,21285,21287,21288,21289,21291,21292,21293,21296,21298,21301,21308,21309,21310,21314,21324,21323,21337,21339,21345,21347,21349,21356,21357,21362,21369,21374,21379,21383,21384,21390,21395,21396,21401,21405,21409,21412,21418,21419,21423,21426,21428,21429,21431,21432,21434,21437,21440,21445,21455,21458,21459,21461,21466,21469,21470,21472,21478,21479,21493,21506,21523,21530,21537,21543,21544,21546,21551,21553,21556,21557,21571,21572,21575,21581,21583,21598,21602,21604,21606,21607,21609,21611,21613,21614,21620,21631,21633,21635,21637,21640,21641,21645,21649,21653,21654,21660,21663,21665,21670,21671,21673,21674,21677,21678,21681,21687,21689,21690,21691,21695,21702,21706,21709,21710,21728,21738,21740,21743,21750,21756,21758,21759,21760,21761,21765,21768,21769,21772,21773,21774,21781,21802,21803,21810,21813,21814,21819,21820,21821,21825,21831,21833,21834,21837,21840,21841,21848,21850,21851,21854,21856,21857,21860,21862,21887,21889,21890,21894,21896,21902,21903,21905,21906,21907,21908,21911,21923,21924,21933,21938,21951,21953,21955,21958,21961,21963,21964,21966,21969,21970,21971,21975,21976,21979,21982,21986,21993,22006,22015,22021,22024,22026,22029,22030,22031,22032,22033,22034,22041,22060,22064,22067,22069,22071,22073,22075,22076,22077,22079,22080,22081,22083,22084,22086,22089,22091,22093,22095,22100,22110,22112,22113,22114,22115,22118,22121,22125,22127,22129,22130,22133,22148,22149,22152,22155,22156,22165,22169,22170,22173,22174,22175,22182,22183,22184,22185,22187,22188,22189,22193,22195,22199,22206,22213,22217,22218,22219,22223,22224,22220,22221,22233,22236,22237,22239,22241,22244,22245,22246,22247,22248,22257,22251,22253,22262,22263,22273,22274,22279,22282,22284,22289,22293,22298,22299,22301,22304,22306,22307,22308,22309,22313,22314,22316,22318,22319,22323,22324,22333,22334,22335,22341,22342,22348,22349,22354,22370,22373,22375,22376,22379,22381,22382,22383,22384,22385,22387,22388,22389,22391,22393,22394,22395,22396,22398,22401,22403,22412,22420,22423,22425,22426,22428,22429,22430,22431,22433,22421,22439,22440,22441,22444,22456,22461,22471,22472,22476,22479,22485,22493,22494,22500,22502,22503,22505,22509,22512,22517,22518,22520,22525,22526,22527,22531,22532,22536,22537,22497,22540,22541,22555,22558,22559,22560,22566,22567,22573,22578,22585,22591,22601,22604,22605,22607,22608,22613,22623,22625,22628,22631,22632,22648,22652,22655,22656,22657,22663,22664,22665,22666,22668,22669,22671,22672,22676,22678,22685,22688,22689,22690,22694,22697,22705,22706,22724,22716,22722,22728,22733,22734,22736,22738,22740,22742,22746,22749,22753,22754,22761,22771,22789,22790,22795,22796,22802,22803,22804,34369,22813,22817,22819,22820,22824,22831,22832,22835,22837,22838,22847,22851,22854,22866,22867,22873,22875,22877,22878,22879,22881,22883,22891,22893,22895,22898,22901,22902,22905,22907,22908,22923,22924,22926,22930,22933,22935,22943,22948,22951,22957,22958,22959,22960,22963,22967,22970,22972,22977,22979,22980,22984,22986,22989,22994,23005,23006,23007,23011,23012,23015,23022,23023,23025,23026,23028,23031,23040,23044,23052,23053,23054,23058,23059,23070,23075,23076,23079,23080,23082,23085,23088,23108,23109,23111,23112,23116,23120,23125,23134,23139,23141,23143,23149,23159,23162,23163,23166,23179,23184,23187,23190,23193,23196,23198,23199,23200,23202,23207,23212,23217,23218,23219,23221,23224,23226,23227,23231,23236,23238,23240,23247,23258,23260,23264,23269,23274,23278,23285,23286,23293,23296,23297,23304,23319,23348,23321,23323,23325,23329,23333,23341,23352,23361,23371,23372,23378,23382,23390,23400,23406,23407,23420,23421,23422,23423,23425,23428,23430,23434,23438,23440,23441,23443,23444,23446,23464,23465,23468,23469,23471,23473,23474,23479,23482,23484,23488,23489,23501,23503,23510,23511,23512,23513,23514,23520,23535,23537,23540,23549,23564,23575,23582,23583,23587,23590,23593,23595,23596,23598,23600,23602,23605,23606,23641,23642,23644,23650,23651,23655,23656,23657,23661,23664,23668,23669,23674,23675,23676,23677,23687,23688,23690,23695,23698,23709,23711,23712,23714,23715,23718,23722,23730,23732,23733,23738,23753,23755,23762,23773,23767,23790,23793,23794,23796,23809,23814,23821,23826,23851,23843,23844,23846,23847,23857,23860,23865,23869,23871,23874,23875,23878,23880,23893,23889,23897,23882,23903,23904,23905,23906,23908,23914,23917,23920,23929,23930,23934,23935,23937,23939,23944,23946,23954,23955,23956,23957,23961,23963,23967,23968,23975,23979,23984,23988,23992,23993,24003,24007,24011,24016,24014,24024,24025,24032,24036,24041,24056,24057,24064,24071,24077,24082,24084,24085,24088,24095,24096,24110,24104,24114,24117,24126,24139,24144,24137,24145,24150,24152,24155,24156,24158,24168,24170,24171,24172,24173,24174,24176,24192,24203,24206,24226,24228,24229,24232,24234,24236,24241,24243,24253,24254,24255,24262,24268,24267,24270,24273,24274,24276,24277,24284,24286,24293,24299,24322,24326,24327,24328,24334,24345,24348,24349,24353,24354,24355,24356,24360,24363,24364,24366,24368,24372,24374,24379,24381,24383,24384,24388,24389,24391,24397,24400,24404,24408,24411,24416,24419,24420,24423,24431,24434,24436,24437,24440,24442,24445,24446,24457,24461,24463,24470,24476,24477,24482,24487,24491,24484,24492,24495,24496,24497,24504,24516,24519,24520,24521,24523,24528,24529,24530,24531,24532,24542,24545,24546,24552,24553,24554,24556,24557,24558,24559,24562,24563,24566,24570,24572,24583,24586,24589,24595,24596,24599,24600,24602,24607,24612,24621,24627,24629,24640,24647,24648,24649,24652,24657,24660,24662,24663,24669,24673,24679,24689,24702,24703,24706,24710,24712,24714,24718,24721,24723,24725,24728,24733,24734,24738,24740,24741,24744,24752,24753,24759,24763,24766,24770,24772,24776,24777,24778,24779,24782,24783,24788,24789,24793,24795,24797,24798,24802,24805,24818,24821,24824,24828,24829,24834,24839,24842,24844,24848,24849,24850,24851,24852,24854,24855,24857,24860,24862,24866,24874,24875,24880,24881,24885,24886,24887,24889,24897,24901,24902,24905,24926,24928,24940,24946,24952,24955,24956,24959,24960,24961,24963,24964,24971,24973,24978,24979,24983,24984,24988,24989,24991,24992,24997,25e3,25002,25005,25016,25017,25020,25024,25025,25026,25038,25039,25045,25052,25053,25054,25055,25057,25058,25063,25065,25061,25068,25069,25071,25089,25091,25092,25095,25107,25109,25116,25120,25122,25123,25127,25129,25131,25145,25149,25154,25155,25156,25158,25164,25168,25169,25170,25172,25174,25178,25180,25188,25197,25199,25203,25210,25213,25229,25230,25231,25232,25254,25256,25267,25270,25271,25274,25278,25279,25284,25294,25301,25302,25306,25322,25330,25332,25340,25341,25347,25348,25354,25355,25357,25360,25363,25366,25368,25385,25386,25389,25397,25398,25401,25404,25409,25410,25411,25412,25414,25418,25419,25422,25426,25427,25428,25432,25435,25445,25446,25452,25453,25457,25460,25461,25464,25468,25469,25471,25474,25476,25479,25482,25488,25492,25493,25497,25498,25502,25508,25510,25517,25518,25519,25533,25537,25541,25544,25550,25553,25555,25556,25557,25564,25568,25573,25578,25580,25586,25587,25589,25592,25593,25609,25610,25616,25618,25620,25624,25630,25632,25634,25636,25637,25641,25642,25647,25648,25653,25661,25663,25675,25679,25681,25682,25683,25684,25690,25691,25692,25693,25695,25696,25697,25699,25709,25715,25716,25723,25725,25733,25735,25743,25744,25745,25752,25753,25755,25757,25759,25761,25763,25766,25768,25772,25779,25789,25790,25791,25796,25801,25802,25803,25804,25806,25808,25809,25813,25815,25828,25829,25833,25834,25837,25840,25845,25847,25851,25855,25857,25860,25864,25865,25866,25871,25875,25876,25878,25881,25883,25886,25887,25890,25894,25897,25902,25905,25914,25916,25917,25923,25927,25929,25936,25938,25940,25951,25952,25959,25963,25978,25981,25985,25989,25994,26002,26005,26008,26013,26016,26019,26022,26030,26034,26035,26036,26047,26050,26056,26057,26062,26064,26068,26070,26072,26079,26096,26098,26100,26101,26105,26110,26111,26112,26116,26120,26121,26125,26129,26130,26133,26134,26141,26142,26145,26146,26147,26148,26150,26153,26154,26155,26156,26158,26160,26161,26163,26169,26167,26176,26181,26182,26186,26188,26193,26190,26199,26200,26201,26203,26204,26208,26209,26363,26218,26219,26220,26238,26227,26229,26239,26231,26232,26233,26235,26240,26236,26251,26252,26253,26256,26258,26265,26266,26267,26268,26271,26272,26276,26285,26289,26290,26293,26299,26303,26304,26306,26307,26312,26316,26318,26319,26324,26331,26335,26344,26347,26348,26350,26362,26373,26375,26382,26387,26393,26396,26400,26402,26419,26430,26437,26439,26440,26444,26452,26453,26461,26470,26476,26478,26484,26486,26491,26497,26500,26510,26511,26513,26515,26518,26520,26521,26523,26544,26545,26546,26549,26555,26556,26557,26617,26560,26562,26563,26565,26568,26569,26578,26583,26585,26588,26593,26598,26608,26610,26614,26615,26706,26644,26649,26653,26655,26664,26663,26668,26669,26671,26672,26673,26675,26683,26687,26692,26693,26698,26700,26709,26711,26712,26715,26731,26734,26735,26736,26737,26738,26741,26745,26746,26747,26748,26754,26756,26758,26760,26774,26776,26778,26780,26785,26787,26789,26793,26794,26798,26802,26811,26821,26824,26828,26831,26832,26833,26835,26838,26841,26844,26845,26853,26856,26858,26859,26860,26861,26864,26865,26869,26870,26875,26876,26877,26886,26889,26890,26896,26897,26899,26902,26903,26929,26931,26933,26936,26939,26946,26949,26953,26958,26967,26971,26979,26980,26981,26982,26984,26985,26988,26992,26993,26994,27002,27003,27007,27008,27021,27026,27030,27032,27041,27045,27046,27048,27051,27053,27055,27063,27064,27066,27068,27077,27080,27089,27094,27095,27106,27109,27118,27119,27121,27123,27125,27134,27136,27137,27139,27151,27153,27157,27162,27165,27168,27172,27176,27184,27186,27188,27191,27195,27198,27199,27205,27206,27209,27210,27214,27216,27217,27218,27221,27222,27227,27236,27239,27242,27249,27251,27262,27265,27267,27270,27271,27273,27275,27281,27291,27293,27294,27295,27301,27307,27311,27312,27313,27316,27325,27326,27327,27334,27337,27336,27340,27344,27348,27349,27350,27356,27357,27364,27367,27372,27376,27377,27378,27388,27389,27394,27395,27398,27399,27401,27407,27408,27409,27415,27419,27422,27428,27432,27435,27436,27439,27445,27446,27451,27455,27462,27466,27469,27474,27478,27480,27485,27488,27495,27499,27502,27504,27509,27517,27518,27522,27525,27543,27547,27551,27552,27554,27555,27560,27561,27564,27565,27566,27568,27576,27577,27581,27582,27587,27588,27593,27596,27606,27610,27617,27619,27622,27623,27630,27633,27639,27641,27647,27650,27652,27653,27657,27661,27662,27664,27666,27673,27679,27686,27687,27688,27692,27694,27699,27701,27702,27706,27707,27711,27722,27723,27725,27727,27730,27732,27737,27739,27740,27755,27757,27759,27764,27766,27768,27769,27771,27781,27782,27783,27785,27796,27797,27799,27800,27804,27807,27824,27826,27828,27842,27846,27853,27855,27856,27857,27858,27860,27862,27866,27868,27872,27879,27881,27883,27884,27886,27890,27892,27908,27911,27914,27918,27919,27921,27923,27930,27942,27943,27944,27751,27950,27951,27953,27961,27964,27967,27991,27998,27999,28001,28005,28007,28015,28016,28028,28034,28039,28049,28050,28052,28054,28055,28056,28074,28076,28084,28087,28089,28093,28095,28100,28104,28106,28110,28111,28118,28123,28125,28127,28128,28130,28133,28137,28143,28144,28148,28150,28156,28160,28164,28190,28194,28199,28210,28214,28217,28219,28220,28228,28229,28232,28233,28235,28239,28241,28242,28243,28244,28247,28252,28253,28254,28258,28259,28264,28275,28283,28285,28301,28307,28313,28320,28327,28333,28334,28337,28339,28347,28351,28352,28353,28355,28359,28360,28362,28365,28366,28367,28395,28397,28398,28409,28411,28413,28420,28424,28426,28428,28429,28438,28440,28442,28443,28454,28457,28458,28463,28464,28467,28470,28475,28476,28461,28495,28497,28498,28499,28503,28505,28506,28509,28510,28513,28514,28520,28524,28541,28542,28547,28551,28552,28555,28556,28557,28560,28562,28563,28564,28566,28570,28575,28576,28581,28582,28583,28584,28590,28591,28592,28597,28598,28604,28613,28615,28616,28618,28634,28638,28648,28649,28656,28661,28665,28668,28669,28672,28677,28678,28679,28685,28695,28704,28707,28719,28724,28727,28729,28732,28739,28740,28744,28745,28746,28747,28756,28757,28765,28766,28750,28772,28773,28780,28782,28789,28790,28798,28801,28805,28806,28820,28821,28822,28823,28824,28827,28836,28843,28848,28849,28852,28855,28874,28881,28883,28884,28885,28886,28888,28892,28900,28922,28931,28932,28933,28934,28935,28939,28940,28943,28958,28960,28971,28973,28975,28976,28977,28984,28993,28997,28998,28999,29002,29003,29008,29010,29015,29018,29020,29022,29024,29032,29049,29056,29061,29063,29068,29074,29082,29083,29088,29090,29103,29104,29106,29107,29114,29119,29120,29121,29124,29131,29132,29139,29142,29145,29146,29148,29176,29182,29184,29191,29192,29193,29203,29207,29210,29213,29215,29220,29227,29231,29236,29240,29241,29249,29250,29251,29253,29262,29263,29264,29267,29269,29270,29274,29276,29278,29280,29283,29288,29291,29294,29295,29297,29303,29304,29307,29308,29311,29316,29321,29325,29326,29331,29339,29352,29357,29358,29361,29364,29374,29377,29383,29385,29388,29397,29398,29400,29407,29413,29427,29428,29434,29435,29438,29442,29444,29445,29447,29451,29453,29458,29459,29464,29465,29470,29474,29476,29479,29480,29484,29489,29490,29493,29498,29499,29501,29507,29517,29520,29522,29526,29528,29533,29534,29535,29536,29542,29543,29545,29547,29548,29550,29551,29553,29559,29561,29564,29568,29569,29571,29573,29574,29582,29584,29587,29589,29591,29592,29596,29598,29599,29600,29602,29605,29606,29610,29611,29613,29621,29623,29625,29628,29629,29631,29637,29638,29641,29643,29644,29647,29650,29651,29654,29657,29661,29665,29667,29670,29671,29673,29684,29685,29687,29689,29690,29691,29693,29695,29696,29697,29700,29703,29706,29713,29722,29723,29732,29734,29736,29737,29738,29739,29740,29741,29742,29743,29744,29745,29753,29760,29763,29764,29766,29767,29771,29773,29777,29778,29783,29789,29794,29798,29799,29800,29803,29805,29806,29809,29810,29824,29825,29829,29830,29831,29833,29839,29840,29841,29842,29848,29849,29850,29852,29855,29856,29857,29859,29862,29864,29865,29866,29867,29870,29871,29873,29874,29877,29881,29883,29887,29896,29897,29900,29904,29907,29912,29914,29915,29918,29919,29924,29928,29930,29931,29935,29940,29946,29947,29948,29951,29958,29970,29974,29975,29984,29985,29988,29991,29993,29994,29999,30006,30009,30013,30014,30015,30016,30019,30023,30024,30030,30032,30034,30039,30046,30047,30049,30063,30065,30073,30074,30075,30076,30077,30078,30081,30085,30096,30098,30099,30101,30105,30108,30114,30116,30132,30138,30143,30144,30145,30148,30150,30156,30158,30159,30167,30172,30175,30176,30177,30180,30183,30188,30190,30191,30193,30201,30208,30210,30211,30212,30215,30216,30218,30220,30223,30226,30227,30229,30230,30233,30235,30236,30237,30238,30243,30245,30246,30249,30253,30258,30259,30261,30264,30265,30266,30268,30282,30272,30273,30275,30276,30277,30281,30283,30293,30297,30303,30308,30309,30317,30318,30319,30321,30324,30337,30341,30348,30349,30357,30363,30364,30365,30367,30368,30370,30371,30372,30373,30374,30375,30376,30378,30381,30397,30401,30405,30409,30411,30412,30414,30420,30425,30432,30438,30440,30444,30448,30449,30454,30457,30460,30464,30470,30474,30478,30482,30484,30485,30487,30489,30490,30492,30498,30504,30509,30510,30511,30516,30517,30518,30521,30525,30526,30530,30533,30534,30538,30541,30542,30543,30546,30550,30551,30556,30558,30559,30560,30562,30564,30567,30570,30572,30576,30578,30579,30580,30586,30589,30592,30596,30604,30605,30612,30613,30614,30618,30623,30626,30631,30634,30638,30639,30641,30645,30654,30659,30665,30673,30674,30677,30681,30686,30687,30688,30692,30694,30698,30700,30704,30705,30708,30712,30715,30725,30726,30729,30733,30734,30737,30749,30753,30754,30755,30765,30766,30768,30773,30775,30787,30788,30791,30792,30796,30798,30802,30812,30814,30816,30817,30819,30820,30824,30826,30830,30842,30846,30858,30863,30868,30872,30881,30877,30878,30879,30884,30888,30892,30893,30896,30897,30898,30899,30907,30909,30911,30919,30920,30921,30924,30926,30930,30931,30933,30934,30948,30939,30943,30944,30945,30950,30954,30962,30963,30976,30966,30967,30970,30971,30975,30982,30988,30992,31002,31004,31006,31007,31008,31013,31015,31017,31021,31025,31028,31029,31035,31037,31039,31044,31045,31046,31050,31051,31055,31057,31060,31064,31067,31068,31079,31081,31083,31090,31097,31099,31100,31102,31115,31116,31121,31123,31124,31125,31126,31128,31131,31132,31137,31144,31145,31147,31151,31153,31156,31160,31163,31170,31172,31175,31176,31178,31183,31188,31190,31194,31197,31198,31200,31202,31205,31210,31211,31213,31217,31224,31228,31234,31235,31239,31241,31242,31244,31249,31253,31259,31262,31265,31271,31275,31277,31279,31280,31284,31285,31288,31289,31290,31300,31301,31303,31304,31308,31317,31318,31321,31324,31325,31327,31328,31333,31335,31338,31341,31349,31352,31358,31360,31362,31365,31366,31370,31371,31376,31377,31380,31390,31392,31395,31404,31411,31413,31417,31419,31420,31430,31433,31436,31438,31441,31451,31464,31465,31467,31468,31473,31476,31483,31485,31486,31495,31508,31519,31523,31527,31529,31530,31531,31533,31534,31535,31536,31537,31540,31549,31551,31552,31553,31559,31566,31573,31584,31588,31590,31593,31594,31597,31599,31602,31603,31607,31620,31625,31630,31632,31633,31638,31643,31646,31648,31653,31660,31663,31664,31666,31669,31670,31674,31675,31676,31677,31682,31685,31688,31690,31700,31702,31703,31705,31706,31707,31720,31722,31730,31732,31733,31736,31737,31738,31740,31742,31745,31746,31747,31748,31750,31753,31755,31756,31758,31759,31769,31771,31776,31781,31782,31784,31788,31793,31795,31796,31798,31801,31802,31814,31818,31829,31825,31826,31827,31833,31834,31835,31836,31837,31838,31841,31843,31847,31849,31853,31854,31856,31858,31865,31868,31869,31878,31879,31887,31892,31902,31904,31910,31920,31926,31927,31930,31931,31932,31935,31940,31943,31944,31945,31949,31951,31955,31956,31957,31959,31961,31962,31965,31974,31977,31979,31989,32003,32007,32008,32009,32015,32017,32018,32019,32022,32029,32030,32035,32038,32042,32045,32049,32060,32061,32062,32064,32065,32071,32072,32077,32081,32083,32087,32089,32090,32092,32093,32101,32103,32106,32112,32120,32122,32123,32127,32129,32130,32131,32133,32134,32136,32139,32140,32141,32145,32150,32151,32157,32158,32166,32167,32170,32179,32182,32183,32185,32194,32195,32196,32197,32198,32204,32205,32206,32215,32217,32256,32226,32229,32230,32234,32235,32237,32241,32245,32246,32249,32250,32264,32272,32273,32277,32279,32284,32285,32288,32295,32296,32300,32301,32303,32307,32310,32319,32324,32325,32327,32334,32336,32338,32344,32351,32353,32354,32357,32363,32366,32367,32371,32376,32382,32385,32390,32391,32394,32397,32401,32405,32408,32410,32413,32414,32572,32571,32573,32574,32575,32579,32580,32583,32591,32594,32595,32603,32604,32605,32609,32611,32612,32613,32614,32621,32625,32637,32638,32639,32640,32651,32653,32655,32656,32657,32662,32663,32668,32673,32674,32678,32682,32685,32692,32700,32703,32704,32707,32712,32718,32719,32731,32735,32739,32741,32744,32748,32750,32751,32754,32762,32765,32766,32767,32775,32776,32778,32781,32782,32783,32785,32787,32788,32790,32797,32798,32799,32800,32804,32806,32812,32814,32816,32820,32821,32823,32825,32826,32828,32830,32832,32836,32864,32868,32870,32877,32881,32885,32897,32904,32910,32924,32926,32934,32935,32939,32952,32953,32968,32973,32975,32978,32980,32981,32983,32984,32992,33005,33006,33008,33010,33011,33014,33017,33018,33022,33027,33035,33046,33047,33048,33052,33054,33056,33060,33063,33068,33072,33077,33082,33084,33093,33095,33098,33100,33106,33111,33120,33121,33127,33128,33129,33133,33135,33143,33153,33168,33156,33157,33158,33163,33166,33174,33176,33179,33182,33186,33198,33202,33204,33211,33227,33219,33221,33226,33230,33231,33237,33239,33243,33245,33246,33249,33252,33259,33260,33264,33265,33266,33269,33270,33272,33273,33277,33279,33280,33283,33295,33299,33300,33305,33306,33309,33313,33314,33320,33330,33332,33338,33347,33348,33349,33350,33355,33358,33359,33361,33366,33372,33376,33379,33383,33389,33396,33403,33405,33407,33408,33409,33411,33412,33415,33417,33418,33422,33425,33428,33430,33432,33434,33435,33440,33441,33443,33444,33447,33448,33449,33450,33454,33456,33458,33460,33463,33466,33468,33470,33471,33478,33488,33493,33498,33504,33506,33508,33512,33514,33517,33519,33526,33527,33533,33534,33536,33537,33543,33544,33546,33547,33620,33563,33565,33566,33567,33569,33570,33580,33581,33582,33584,33587,33591,33594,33596,33597,33602,33603,33604,33607,33613,33614,33617,33621,33622,33623,33648,33656,33661,33663,33664,33666,33668,33670,33677,33682,33684,33685,33688,33689,33691,33692,33693,33702,33703,33705,33708,33726,33727,33728,33735,33737,33743,33744,33745,33748,33757,33619,33768,33770,33782,33784,33785,33788,33793,33798,33802,33807,33809,33813,33817,33709,33839,33849,33861,33863,33864,33866,33869,33871,33873,33874,33878,33880,33881,33882,33884,33888,33892,33893,33895,33898,33904,33907,33908,33910,33912,33916,33917,33921,33925,33938,33939,33941,33950,33958,33960,33961,33962,33967,33969,33972,33978,33981,33982,33984,33986,33991,33992,33996,33999,34003,34012,34023,34026,34031,34032,34033,34034,34039,34098,34042,34043,34045,34050,34051,34055,34060,34062,34064,34076,34078,34082,34083,34084,34085,34087,34090,34091,34095,34099,34100,34102,34111,34118,34127,34128,34129,34130,34131,34134,34137,34140,34141,34142,34143,34144,34145,34146,34148,34155,34159,34169,34170,34171,34173,34175,34177,34181,34182,34185,34187,34188,34191,34195,34200,34205,34207,34208,34210,34213,34215,34228,34230,34231,34232,34236,34237,34238,34239,34242,34247,34250,34251,34254,34221,34264,34266,34271,34272,34278,34280,34285,34291,34294,34300,34303,34304,34308,34309,34317,34318,34320,34321,34322,34328,34329,34331,34334,34337,34343,34345,34358,34360,34362,34364,34365,34368,34370,34374,34386,34387,34390,34391,34392,34393,34397,34400,34401,34402,34403,34404,34409,34412,34415,34421,34422,34423,34426,34445,34449,34454,34456,34458,34460,34465,34470,34471,34472,34477,34481,34483,34484,34485,34487,34488,34489,34495,34496,34497,34499,34501,34513,34514,34517,34519,34522,34524,34528,34531,34533,34535,34440,34554,34556,34557,34564,34565,34567,34571,34574,34575,34576,34579,34580,34585,34590,34591,34593,34595,34600,34606,34607,34609,34610,34617,34618,34620,34621,34622,34624,34627,34629,34637,34648,34653,34657,34660,34661,34671,34673,34674,34683,34691,34692,34693,34694,34695,34696,34697,34699,34700,34704,34707,34709,34711,34712,34713,34718,34720,34723,34727,34732,34733,34734,34737,34741,34750,34751,34753,34760,34761,34762,34766,34773,34774,34777,34778,34780,34783,34786,34787,34788,34794,34795,34797,34801,34803,34808,34810,34815,34817,34819,34822,34825,34826,34827,34832,34841,34834,34835,34836,34840,34842,34843,34844,34846,34847,34856,34861,34862,34864,34866,34869,34874,34876,34881,34883,34885,34888,34889,34890,34891,34894,34897,34901,34902,34904,34906,34908,34911,34912,34916,34921,34929,34937,34939,34944,34968,34970,34971,34972,34975,34976,34984,34986,35002,35005,35006,35008,35018,35019,35020,35021,35022,35025,35026,35027,35035,35038,35047,35055,35056,35057,35061,35063,35073,35078,35085,35086,35087,35093,35094,35096,35097,35098,35100,35104,35110,35111,35112,35120,35121,35122,35125,35129,35130,35134,35136,35138,35141,35142,35145,35151,35154,35159,35162,35163,35164,35169,35170,35171,35179,35182,35184,35187,35189,35194,35195,35196,35197,35209,35213,35216,35220,35221,35227,35228,35231,35232,35237,35248,35252,35253,35254,35255,35260,35284,35285,35286,35287,35288,35301,35305,35307,35309,35313,35315,35318,35321,35325,35327,35332,35333,35335,35343,35345,35346,35348,35349,35358,35360,35362,35364,35366,35371,35372,35375,35381,35383,35389,35390,35392,35395,35397,35399,35401,35405,35406,35411,35414,35415,35416,35420,35421,35425,35429,35431,35445,35446,35447,35449,35450,35451,35454,35455,35456,35459,35462,35467,35471,35472,35474,35478,35479,35481,35487,35495,35497,35502,35503,35507,35510,35511,35515,35518,35523,35526,35528,35529,35530,35537,35539,35540,35541,35543,35549,35551,35564,35568,35572,35573,35574,35580,35583,35589,35590,35595,35601,35612,35614,35615,35594,35629,35632,35639,35644,35650,35651,35652,35653,35654,35656,35666,35667,35668,35673,35661,35678,35683,35693,35702,35704,35705,35708,35710,35713,35716,35717,35723,35725,35727,35732,35733,35740,35742,35743,35896,35897,35901,35902,35909,35911,35913,35915,35919,35921,35923,35924,35927,35928,35931,35933,35929,35939,35940,35942,35944,35945,35949,35955,35957,35958,35963,35966,35974,35975,35979,35984,35986,35987,35993,35995,35996,36004,36025,36026,36037,36038,36041,36043,36047,36054,36053,36057,36061,36065,36072,36076,36079,36080,36082,36085,36087,36088,36094,36095,36097,36099,36105,36114,36119,36123,36197,36201,36204,36206,36223,36226,36228,36232,36237,36240,36241,36245,36254,36255,36256,36262,36267,36268,36271,36274,36277,36279,36281,36283,36288,36293,36294,36295,36296,36298,36302,36305,36308,36309,36311,36313,36324,36325,36327,36332,36336,36284,36337,36338,36340,36349,36353,36356,36357,36358,36363,36369,36372,36374,36384,36385,36386,36387,36390,36391,36401,36403,36406,36407,36408,36409,36413,36416,36417,36427,36429,36430,36431,36436,36443,36444,36445,36446,36449,36450,36457,36460,36461,36463,36464,36465,36473,36474,36475,36482,36483,36489,36496,36498,36501,36506,36507,36509,36510,36514,36519,36521,36525,36526,36531,36533,36538,36539,36544,36545,36547,36548,36551,36559,36561,36564,36572,36584,36590,36592,36593,36599,36601,36602,36589,36608,36610,36615,36616,36623,36624,36630,36631,36632,36638,36640,36641,36643,36645,36647,36648,36652,36653,36654,36660,36661,36662,36663,36666,36672,36673,36675,36679,36687,36689,36690,36691,36692,36693,36696,36701,36702,36709,36765,36768,36769,36772,36773,36774,36789,36790,36792,36798,36800,36801,36806,36810,36811,36813,36816,36818,36819,36821,36832,36835,36836,36840,36846,36849,36853,36854,36859,36862,36866,36868,36872,36876,36888,36891,36904,36905,36911,36906,36908,36909,36915,36916,36919,36927,36931,36932,36940,36955,36957,36962,36966,36967,36972,36976,36980,36985,36997,37e3,37003,37004,37006,37008,37013,37015,37016,37017,37019,37024,37025,37026,37029,37040,37042,37043,37044,37046,37053,37068,37054,37059,37060,37061,37063,37064,37077,37079,37080,37081,37084,37085,37087,37093,37074,37110,37099,37103,37104,37108,37118,37119,37120,37124,37125,37126,37128,37133,37136,37140,37142,37143,37144,37146,37148,37150,37152,37157,37154,37155,37159,37161,37166,37167,37169,37172,37174,37175,37177,37178,37180,37181,37187,37191,37192,37199,37203,37207,37209,37210,37211,37217,37220,37223,37229,37236,37241,37242,37243,37249,37251,37253,37254,37258,37262,37265,37267,37268,37269,37272,37278,37281,37286,37288,37292,37293,37294,37296,37297,37298,37299,37302,37307,37308,37309,37311,37314,37315,37317,37331,37332,37335,37337,37338,37342,37348,37349,37353,37354,37356,37357,37358,37359,37360,37361,37367,37369,37371,37373,37376,37377,37380,37381,37382,37383,37385,37386,37388,37392,37394,37395,37398,37400,37404,37405,37411,37412,37413,37414,37416,37422,37423,37424,37427,37429,37430,37432,37433,37434,37436,37438,37440,37442,37443,37446,37447,37450,37453,37454,37455,37457,37464,37465,37468,37469,37472,37473,37477,37479,37480,37481,37486,37487,37488,37493,37494,37495,37496,37497,37499,37500,37501,37503,37512,37513,37514,37517,37518,37522,37527,37529,37535,37536,37540,37541,37543,37544,37547,37551,37554,37558,37560,37562,37563,37564,37565,37567,37568,37569,37570,37571,37573,37574,37575,37576,37579,37580,37581,37582,37584,37587,37589,37591,37592,37593,37596,37597,37599,37600,37601,37603,37605,37607,37608,37612,37614,37616,37625,37627,37631,37632,37634,37640,37645,37649,37652,37653,37660,37661,37662,37663,37665,37668,37669,37671,37673,37674,37683,37684,37686,37687,37703,37704,37705,37712,37713,37714,37717,37719,37720,37722,37726,37732,37733,37735,37737,37738,37741,37743,37744,37745,37747,37748,37750,37754,37757,37759,37760,37761,37762,37768,37770,37771,37773,37775,37778,37781,37784,37787,37790,37793,37795,37796,37798,37800,37803,37812,37813,37814,37818,37801,37825,37828,37829,37830,37831,37833,37834,37835,37836,37837,37843,37849,37852,37854,37855,37858,37862,37863,37881,37879,37880,37882,37883,37885,37889,37890,37892,37896,37897,37901,37902,37903,37909,37910,37911,37919,37934,37935,37937,37938,37939,37940,37947,37951,37949,37955,37957,37960,37962,37964,37973,37977,37980,37983,37985,37987,37992,37995,37997,37998,37999,38001,38002,38020,38019,38264,38265,38270,38276,38280,38284,38285,38286,38301,38302,38303,38305,38310,38313,38315,38316,38324,38326,38330,38333,38335,38342,38344,38345,38347,38352,38353,38354,38355,38361,38362,38365,38366,38367,38368,38372,38374,38429,38430,38434,38436,38437,38438,38444,38449,38451,38455,38456,38457,38458,38460,38461,38465,38482,38484,38486,38487,38488,38497,38510,38516,38523,38524,38526,38527,38529,38530,38531,38532,38537,38545,38550,38554,38557,38559,38564,38565,38566,38569,38574,38575,38579,38586,38602,38610,23986,38616,38618,38621,38622,38623,38633,38639,38641,38650,38658,38659,38661,38665,38682,38683,38685,38689,38690,38691,38696,38705,38707,38721,38723,38730,38734,38735,38741,38743,38744,38746,38747,38755,38759,38762,38766,38771,38774,38775,38776,38779,38781,38783,38784,38793,38805,38806,38807,38809,38810,38814,38815,38818,38828,38830,38833,38834,38837,38838,38840,38841,38842,38844,38846,38847,38849,38852,38853,38855,38857,38858,38860,38861,38862,38864,38865,38868,38871,38872,38873,38877,38878,38880,38875,38881,38884,38895,38897,38900,38903,38904,38906,38919,38922,38937,38925,38926,38932,38934,38940,38942,38944,38947,38950,38955,38958,38959,38960,38962,38963,38965,38949,38974,38980,38983,38986,38993,38994,38995,38998,38999,39001,39002,39010,39011,39013,39014,39018,39020,39083,39085,39086,39088,39092,39095,39096,39098,39099,39103,39106,39109,39112,39116,39137,39139,39141,39142,39143,39146,39155,39158,39170,39175,39176,39185,39189,39190,39191,39194,39195,39196,39199,39202,39206,39207,39211,39217,39218,39219,39220,39221,39225,39226,39227,39228,39232,39233,39238,39239,39240,39245,39246,39252,39256,39257,39259,39260,39262,39263,39264,39323,39325,39327,39334,39344,39345,39346,39349,39353,39354,39357,39359,39363,39369,39379,39380,39385,39386,39388,39390,39399,39402,39403,39404,39408,39412,39413,39417,39421,39422,39426,39427,39428,39435,39436,39440,39441,39446,39454,39456,39458,39459,39460,39463,39469,39470,39475,39477,39478,39480,39495,39489,39492,39498,39499,39500,39502,39505,39508,39510,39517,39594,39596,39598,39599,39602,39604,39605,39606,39609,39611,39614,39615,39617,39619,39622,39624,39630,39632,39634,39637,39638,39639,39643,39644,39648,39652,39653,39655,39657,39660,39666,39667,39669,39673,39674,39677,39679,39680,39681,39682,39683,39684,39685,39688,39689,39691,39692,39693,39694,39696,39698,39702,39705,39707,39708,39712,39718,39723,39725,39731,39732,39733,39735,39737,39738,39741,39752,39755,39756,39765,39766,39767,39771,39774,39777,39779,39781,39782,39784,39786,39787,39788,39789,39790,39795,39797,39799,39800,39801,39807,39808,39812,39813,39814,39815,39817,39818,39819,39821,39823,39824,39828,39834,39837,39838,39846,39847,39849,39852,39856,39857,39858,39863,39864,39867,39868,39870,39871,39873,39879,39880,39886,39888,39895,39896,39901,39903,39909,39911,39914,39915,39919,39923,39927,39928,39929,39930,39933,39935,39936,39938,39947,39951,39953,39958,39960,39961,39962,39964,39966,39970,39971,39974,39975,39976,39977,39978,39985,39989,39990,39991,39997,40001,40003,40004,40005,40009,40010,40014,40015,40016,40019,40020,40022,40024,40027,40029,40030,40031,40035,40041,40042,40028,40043,40040,40046,40048,40050,40053,40055,40059,40166,40178,40183,40185,40203,40194,40209,40215,40216,40220,40221,40222,40239,40240,40242,40243,40244,40250,40252,40261,40253,40258,40259,40263,40266,40275,40276,40287,40291,40290,40293,40297,40298,40299,40304,40310,40311,40315,40316,40318,40323,40324,40326,40330,40333,40334,40338,40339,40341,40342,40343,40344,40353,40362,40364,40366,40369,40373,40377,40380,40383,40387,40391,40393,40394,40404,40405,40406,40407,40410,40414,40415,40416,40421,40423,40425,40427,40430,40432,40435,40436,40446,40458,40450,40455,40462,40464,40465,40466,40469,40470,40473,40476,40477,40570,40571,40572,40576,40578,40579,40580,40581,40583,40590,40591,40598,40600,40603,40606,40612,40616,40620,40622,40623,40624,40627,40628,40629,40646,40648,40651,40661,40671,40676,40679,40684,40685,40686,40688,40689,40690,40693,40696,40703,40706,40707,40713,40719,40720,40721,40722,40724,40726,40727,40729,40730,40731,40735,40738,40742,40746,40747,40751,40753,40754,40756,40759,40761,40762,40764,40765,40767,40769,40771,40772,40773,40774,40775,40787,40789,40790,40791,40792,40794,40797,40798,40808,40809,40813,40814,40815,40816,40817,40819,40821,40826,40829,40847,40848,40849,40850,40852,40854,40855,40862,40865,40866,40867,40869,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],ibm866:[1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1025,1105,1028,1108,1031,1111,1038,1118,176,8729,183,8730,8470,164,9632,160],"iso-8859-2":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,728,321,164,317,346,167,168,352,350,356,377,173,381,379,176,261,731,322,180,318,347,711,184,353,351,357,378,733,382,380,340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270,272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223,341,225,226,259,228,314,263,231,269,233,281,235,283,237,238,271,273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729],"iso-8859-3":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,294,728,163,164,null,292,167,168,304,350,286,308,173,null,379,176,295,178,179,180,181,293,183,184,305,351,287,309,189,null,380,192,193,194,null,196,266,264,199,200,201,202,203,204,205,206,207,null,209,210,211,212,288,214,215,284,217,218,219,220,364,348,223,224,225,226,null,228,267,265,231,232,233,234,235,236,237,238,239,null,241,242,243,244,289,246,247,285,249,250,251,252,365,349,729],"iso-8859-4":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,312,342,164,296,315,167,168,352,274,290,358,173,381,175,176,261,731,343,180,297,316,711,184,353,275,291,359,330,382,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,298,272,325,332,310,212,213,214,215,216,370,218,219,220,360,362,223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,299,273,326,333,311,244,245,246,247,248,371,250,251,252,361,363,729],"iso-8859-5":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,173,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,8470,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,167,1118,1119],"iso-8859-6":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,null,null,null,164,null,null,null,null,null,null,null,1548,173,null,null,null,null,null,null,null,null,null,null,null,null,null,1563,null,null,null,1567,null,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,null,null,null,null,null,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,null,null,null,null,null,null,null,null,null,null,null,null,null],"iso-8859-7":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,8216,8217,163,8364,8367,166,167,168,169,890,171,172,173,null,8213,176,177,178,179,900,901,902,183,904,905,906,187,908,189,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,null,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,null],"iso-8859-8":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,null,162,163,164,165,166,167,168,169,215,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,247,187,188,189,190,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,8215,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,null,null,8206,8207,null],"iso-8859-10":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,274,290,298,296,310,167,315,272,352,358,381,173,362,330,176,261,275,291,299,297,311,183,316,273,353,359,382,8213,363,331,256,193,194,195,196,197,198,302,268,201,280,203,278,205,206,207,208,325,332,211,212,213,214,360,216,370,218,219,220,221,222,223,257,225,226,227,228,229,230,303,269,233,281,235,279,237,238,239,240,326,333,243,244,245,246,361,248,371,250,251,252,253,254,312],"iso-8859-13":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,8221,162,163,164,8222,166,167,216,169,342,171,172,173,174,198,176,177,178,179,8220,181,182,183,248,185,343,187,188,189,190,230,260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315,352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223,261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316,353,324,326,243,333,245,246,247,371,322,347,363,252,380,382,8217],"iso-8859-14":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,7682,7683,163,266,267,7690,167,7808,169,7810,7691,7922,173,174,376,7710,7711,288,289,7744,7745,182,7766,7809,7767,7811,7776,7923,7812,7813,7777,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,372,209,210,211,212,213,214,7786,216,217,218,219,220,221,374,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,373,241,242,243,244,245,246,7787,248,249,250,251,252,253,375,255],"iso-8859-15":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,8364,165,352,167,353,169,170,171,172,173,174,175,176,177,178,179,381,181,182,183,382,185,186,187,338,339,376,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255],"iso-8859-16":[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,260,261,321,8364,8222,352,167,353,169,536,171,377,173,378,379,176,177,268,322,381,8221,182,183,382,269,537,187,338,339,376,380,192,193,194,258,196,262,198,199,200,201,202,203,204,205,206,207,272,323,210,211,212,336,214,346,368,217,218,219,220,280,538,223,224,225,226,259,228,263,230,231,232,233,234,235,236,237,238,239,273,324,242,243,244,337,246,347,369,249,250,251,252,281,539,255],"koi8-r":[9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9600,9604,9608,9612,9616,9617,9618,9619,8992,9632,8729,8730,8776,8804,8805,160,8993,176,178,183,247,9552,9553,9554,1105,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,1025,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,169,1102,1072,1073,1094,1076,1077,1092,1075,1093,1080,1081,1082,1083,1084,1085,1086,1087,1103,1088,1089,1090,1091,1078,1074,1100,1099,1079,1096,1101,1097,1095,1098,1070,1040,1041,1062,1044,1045,1060,1043,1061,1048,1049,1050,1051,1052,1053,1054,1055,1071,1056,1057,1058,1059,1046,1042,1068,1067,1047,1064,1069,1065,1063,1066],"koi8-u":[9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9600,9604,9608,9612,9616,9617,9618,9619,8992,9632,8729,8730,8776,8804,8805,160,8993,176,178,183,247,9552,9553,9554,1105,1108,9556,1110,1111,9559,9560,9561,9562,9563,1169,1118,9566,9567,9568,9569,1025,1028,9571,1030,1031,9574,9575,9576,9577,9578,1168,1038,169,1102,1072,1073,1094,1076,1077,1092,1075,1093,1080,1081,1082,1083,1084,1085,1086,1087,1103,1088,1089,1090,1091,1078,1074,1100,1099,1079,1096,1101,1097,1095,1098,1070,1040,1041,1062,1044,1045,1060,1043,1061,1048,1049,1050,1051,1052,1053,1054,1055,1071,1056,1057,1058,1059,1046,1042,1068,1067,1047,1064,1069,1065,1063,1066],macintosh:[196,197,199,201,209,214,220,225,224,226,228,227,229,231,233,232,234,235,237,236,238,239,241,243,242,244,246,245,250,249,251,252,8224,176,162,163,167,8226,182,223,174,169,8482,180,168,8800,198,216,8734,177,8804,8805,165,181,8706,8721,8719,960,8747,170,186,937,230,248,191,161,172,8730,402,8776,8710,171,187,8230,160,192,195,213,338,339,8211,8212,8220,8221,8216,8217,247,9674,255,376,8260,8364,8249,8250,64257,64258,8225,183,8218,8222,8240,194,202,193,203,200,205,206,207,204,211,212,63743,210,218,219,217,305,710,732,175,728,729,730,184,733,731,711],"windows-874":[8364,129,130,131,132,8230,134,135,136,137,138,139,140,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,152,153,154,155,156,157,158,159,160,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,null,null,null,null,3647,3648,3649,3650,3651,3652,3653,3654,3655,3656,3657,3658,3659,3660,3661,3662,3663,3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675,null,null,null,null],"windows-1250":[8364,129,8218,131,8222,8230,8224,8225,136,8240,352,8249,346,356,381,377,144,8216,8217,8220,8221,8226,8211,8212,152,8482,353,8250,347,357,382,378,160,711,728,321,164,260,166,167,168,169,350,171,172,173,174,379,176,177,731,322,180,181,182,183,184,261,351,187,317,733,318,380,340,193,194,258,196,313,262,199,268,201,280,203,282,205,206,270,272,323,327,211,212,336,214,215,344,366,218,368,220,221,354,223,341,225,226,259,228,314,263,231,269,233,281,235,283,237,238,271,273,324,328,243,244,337,246,247,345,367,250,369,252,253,355,729],"windows-1251":[1026,1027,8218,1107,8222,8230,8224,8225,8364,8240,1033,8249,1034,1036,1035,1039,1106,8216,8217,8220,8221,8226,8211,8212,152,8482,1113,8250,1114,1116,1115,1119,160,1038,1118,1032,164,1168,166,167,1025,169,1028,171,172,173,174,1031,176,177,1030,1110,1169,181,182,183,1105,8470,1108,187,1112,1029,1109,1111,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103],"windows-1252":[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255],"windows-1253":[8364,129,8218,402,8222,8230,8224,8225,136,8240,138,8249,140,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,152,8482,154,8250,156,157,158,159,160,901,902,163,164,165,166,167,168,169,null,171,172,173,174,8213,176,177,178,179,900,181,182,183,904,905,906,187,908,189,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,null,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,null],"windows-1254":[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,158,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,286,209,210,211,212,213,214,215,216,217,218,219,220,304,350,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,287,241,242,243,244,245,246,247,248,249,250,251,252,305,351,255],"windows-1255":[8364,129,8218,402,8222,8230,8224,8225,710,8240,138,8249,140,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,154,8250,156,157,158,159,160,161,162,163,8362,165,166,167,168,169,215,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,247,187,188,189,190,191,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1520,1521,1522,1523,1524,null,null,null,null,null,null,null,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,null,null,8206,8207,null],"windows-1256":[8364,1662,8218,402,8222,8230,8224,8225,710,8240,1657,8249,338,1670,1688,1672,1711,8216,8217,8220,8221,8226,8211,8212,1705,8482,1681,8250,339,8204,8205,1722,160,1548,162,163,164,165,166,167,168,169,1726,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,1563,187,188,189,190,1567,1729,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,215,1591,1592,1593,1594,1600,1601,1602,1603,224,1604,226,1605,1606,1607,1608,231,232,233,234,235,1609,1610,238,239,1611,1612,1613,1614,244,1615,1616,247,1617,249,1618,251,252,8206,8207,1746],"windows-1257":[8364,129,8218,131,8222,8230,8224,8225,136,8240,138,8249,140,168,711,184,144,8216,8217,8220,8221,8226,8211,8212,152,8482,154,8250,156,175,731,159,160,null,162,163,164,null,166,167,216,169,342,171,172,173,174,198,176,177,178,179,180,181,182,183,248,185,343,187,188,189,190,230,260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315,352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223,261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316,353,324,326,243,333,245,246,247,371,322,347,363,252,380,382,729],"windows-1258":[8364,129,8218,402,8222,8230,8224,8225,710,8240,138,8249,338,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,154,8250,339,157,158,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,258,196,197,198,199,200,201,202,203,768,205,206,207,272,209,777,211,212,416,214,215,216,217,218,219,220,431,771,223,224,225,226,259,228,229,230,231,232,233,234,235,769,237,238,239,273,241,803,243,244,417,246,247,248,249,250,251,252,432,8363,255],"x-mac-cyrillic":[1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,8224,176,1168,163,167,8226,182,1030,174,169,8482,1026,1106,8800,1027,1107,8734,177,8804,8805,1110,181,1169,1032,1028,1108,1031,1111,1033,1113,1034,1114,1112,1029,172,8730,402,8776,8710,171,187,8230,160,1035,1115,1036,1116,1109,8211,8212,8220,8221,8216,8217,247,8222,1038,1118,1039,1119,8470,1025,1105,1103,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,8364]}}(this||{}),function(n){"use strict";function t(n,t,i){return t<=n&&n<=i}function st(n,t){return n.indexOf(t)!==-1}function p(n){if(n===undefined)return{};if(n===Object(n))return n;throw TypeError("Could not convert argument to dictionary");}function ht(n){for(var f=String(n),e=f.length,i=0,r=[],t,u,o,s;i<e;)t=f.charCodeAt(i),t<55296||t>57343?r.push(t):56320<=t&&t<=57343?r.push(65533):55296<=t&&t<=56319&&(i===e-1?r.push(65533):(u=f.charCodeAt(i+1),56320<=u&&u<=57343?(o=t&1023,s=u&1023,r.push(65536+(o<<10)+s),i+=1):r.push(65533))),i+=1;return r}function ct(n){for(var r="",t,i=0;i<n.length;++i)t=n[i],t<=65535?r+=String.fromCharCode(t):(t-=65536,r+=String.fromCharCode((t>>10)+55296,(t&1023)+56320));return r}function h(n){return 0<=n&&n<=127}function d(n){this.tokens=[].slice.call(n);this.tokens.reverse()}function r(n,t){if(n)throw TypeError("Decoder error");return t||65533}function c(n){throw TypeError("The code point "+n+" could not be encoded.");}function lt(){}function at(){}function g(n){return(n=String(n).trim().toLowerCase(),Object.prototype.hasOwnProperty.call(w,n))?w[n]:null}function a(n,t){return t?t[n]||null:null}function v(n,t){var i=t.indexOf(n);return i===-1?null:i}function o(t){if(!("encoding-indexes"in n))throw Error("Indexes missing. Did you forget to include encoding-indexes.js first?");return n["encoding-indexes"][t]}function vt(n){var i;if(n>39419&&n<189e3||n>1237575)return null;if(n===7457)return 59335;for(var r=0,u=0,f=o("gb18030-ranges"),t=0;t<f.length;++t)if(i=f[t],i[0]<=n)r=i[0],u=i[1];else break;return u+n-r}function yt(n){var i;if(n===59335)return 7457;for(var r=0,u=0,f=o("gb18030-ranges"),t=0;t<f.length;++t)if(i=f[t],i[1]<=n)r=i[1],u=i[0];else break;return u+n-r}function pt(n){tt=tt||o("jis0208").map(function(n,i){return t(i,8272,8835)?null:n});var i=tt;return i.indexOf(n)}function wt(n){it=it||o("big5").map(function(n,t){return t<5024?null:n});var t=it;return n===9552||n===9566||n===9569||n===9578||n===21313||n===21317?t.lastIndexOf(n):v(n,t)}function y(n,t){var r,i;if(!(this instanceof y))throw TypeError("Called as a function. Did you forget 'new'?");if(n=n!==undefined?String(n):rt,t=p(t),this._encoding=null,this._decoder=null,this._ignoreBOM=!1,this._BOMseen=!1,this._error_mode="replacement",this._do_not_flush=!1,r=g(n),r===null||r.name==="replacement")throw RangeError("Unknown encoding: "+n);if(!e[r.name])throw Error("Decoder not present. Did you forget to include encoding-indexes.js first?");return i=this,i._encoding=r,Boolean(t.fatal)&&(i._error_mode="fatal"),Boolean(t.ignoreBOM)&&(i._ignoreBOM=!0),Object.defineProperty||(this.encoding=i._encoding.name.toLowerCase(),this.fatal=i._error_mode==="fatal",this.ignoreBOM=i._ignoreBOM),i}function b(t,i){var r,u;if(!(this instanceof b))throw TypeError("Called as a function. Did you forget 'new'?");if(i=p(i),this._encoding=null,this._encoder=null,this._do_not_flush=!1,this._fatal=Boolean(i.fatal)?"fatal":"replacement",r=this,Boolean(i.NONSTANDARD_allowLegacyEncoding)){if(t=t!==undefined?String(t):rt,u=g(t),u===null||u.name==="replacement")throw RangeError("Unknown encoding: "+t);if(!f[u.name])throw Error("Encoder not present. Did you forget to include encoding-indexes.js first?");r._encoding=u}else r._encoding=g("utf-8"),t!==undefined&&"console"in n&&console.warn("TextEncoder constructor called with encoding label, which is ignored.");return Object.defineProperty||(this.encoding=r._encoding.name.toLowerCase()),r}function bt(n){var c=n.fatal,e=0,h=0,f=0,o=128,s=191;this.handler=function(n,l){if(l===i&&f!==0)return f=0,r(c);if(l===i)return u;if(f===0){if(t(l,0,127))return l;if(t(l,194,223))f=1,e=l&31;else if(t(l,224,239))l===224&&(o=160),l===237&&(s=159),f=2,e=l&15;else if(t(l,240,244))l===240&&(o=144),l===244&&(s=143),f=3,e=l&7;else return r(c);return null}if(!t(l,o,s))return e=f=h=0,o=128,s=191,n.prepend(l),r(c);if(o=128,s=191,e=e<<6|l&63,h+=1,h!==f)return null;var a=e;return e=f=h=0,a}}function kt(n){var r=n.fatal;this.handler=function(n,r){var f,e,o,h;if(r===i)return u;if(s(r))return r;for(t(r,128,2047)?(f=1,e=192):t(r,2048,65535)?(f=2,e=224):t(r,65536,1114111)&&(f=3,e=240),o=[(r>>6*f)+e];f>0;)h=r>>6*(f-1),o.push(128|h&63),f-=1;return o}}function dt(n,t){var f=t.fatal;this.handler=function(t,e){if(e===i)return u;if(h(e))return e;var o=n[e-128];return o===null?r(f):o}}function gt(n,t){var r=t.fatal;this.handler=function(t,r){if(r===i)return u;if(s(r))return r;var f=v(r,n);return f===null&&c(r),f+128}}function ut(n){var c=n.fatal,f=0,e=0,s=0;this.handler=function(n,l){var v,p,w,y,b;return l===i&&f===0&&e===0&&s===0?u:(l===i&&(f!==0||e!==0||s!==0)&&(f=0,e=0,s=0,r(c)),s!==0)?(v=null,t(l,48,57)&&(v=vt((((f-129)*10+e-48)*126+s-129)*10+l-48)),p=[e,s,l],f=0,e=0,s=0,v===null)?(n.prepend(p),r(c)):v:e!==0?t(l,129,254)?(s=l,null):(n.prepend([e,l]),f=0,e=0,r(c)):f!==0?t(l,48,57)?(e=l,null):(w=f,y=null,f=0,b=l<127?64:65,(t(l,64,126)||t(l,128,254))&&(y=(w-129)*190+(l-b)),v=y===null?null:a(y,o("gb18030")),v===null&&h(l)&&n.prepend(l),v===null)?r(c):v:h(l)?l:l===128?8364:t(l,129,254)?(f=l,null):r(c)}}function ft(n,t){var r=n.fatal;this.handler=function(n,r){var f,e,h,a,p;if(r===i)return u;if(s(r))return r;if(r===58853)return c(r);if(t&&r===8364)return 128;if(f=v(r,o("gb18030")),f!==null){var w=l(f/190)+129,y=f%190,b=y<63?64:65;return[w,y+b]}return t?c(r):(f=yt(r),e=l(f/12600),f=f-e*12600,h=l(f/1260),f=f-h*1260,a=l(f/10),p=f-a*10,[e+129,h+48,a+129,p+48])}}function ni(n){var e=n.fatal,f=0;this.handler=function(n,s){var v,c,y,l;if(s===i&&f!==0)return f=0,r(e);if(s===i&&f===0)return u;if(f!==0){v=f;c=null;f=0;y=s<127?64:98;(t(s,64,126)||t(s,161,254))&&(c=(v-129)*157+(s-y));switch(c){case 1133:return[202,772];case 1135:return[202,780];case 1164:return[234,772];case 1166:return[234,780]}return(l=c===null?null:a(c,o("big5")),l===null&&h(s)&&n.prepend(s),l===null)?r(e):l}return h(s)?s:t(s,129,254)?(f=s,null):r(e)}}function ti(n){var t=n.fatal;this.handler=function(n,t){var r,f,e,o;return t===i?u:s(t)?t:(r=wt(t),r===null)?c(t):(f=l(r/157)+129,f<161)?c(t):(e=r%157,o=e<63?64:98,[f,e+o])}}function ii(n){var e=n.fatal,s=!1,f=0;this.handler=function(n,c){var v,l;return c===i&&f!==0?(f=0,r(e)):c===i&&f===0?u:f===142&&t(c,161,223)?(f=0,65216+c):f===143&&t(c,161,254)?(s=!0,f=c,null):f!==0?(v=f,f=0,l=null,t(v,161,254)&&t(c,161,254)&&(l=a((v-161)*94+(c-161),o(s?"jis0212":"jis0208"))),s=!1,t(c,161,254)||n.prepend(c),l===null)?r(e):l:h(c)?c:c===142||c===143||t(c,161,254)?(f=c,null):r(e)}}function ri(n){var r=n.fatal;this.handler=function(n,r){var f,e,h;return r===i?u:s(r)?r:r===165?92:r===8254?126:t(r,65377,65439)?[142,r-65216]:(r===8722&&(r=65293),f=v(r,o("jis0208")),f===null)?c(r):(e=l(f/94)+161,h=f%94+161,[e,h])}}function ui(n){var h=n.fatal,f={ASCII:0,Roman:1,Katakana:2,LeadByte:3,TrailByte:4,EscapeStart:5,Escape:6},e=f.ASCII,l=f.ASCII,c=0,s=!1;this.handler=function(n,v){var b,w,p,y,k;switch(e){default:case f.ASCII:return v===27?(e=f.EscapeStart,null):t(v,0,127)&&v!==14&&v!==15&&v!==27?(s=!1,v):v===i?u:(s=!1,r(h));case f.Roman:return v===27?(e=f.EscapeStart,null):v===92?(s=!1,165):v===126?(s=!1,8254):t(v,0,127)&&v!==14&&v!==15&&v!==27&&v!==92&&v!==126?(s=!1,v):v===i?u:(s=!1,r(h));case f.Katakana:return v===27?(e=f.EscapeStart,null):t(v,33,95)?(s=!1,65344+v):v===i?u:(s=!1,r(h));case f.LeadByte:return v===27?(e=f.EscapeStart,null):t(v,33,126)?(s=!1,c=v,e=f.TrailByte,null):v===i?u:(s=!1,r(h));case f.TrailByte:return v===27?(e=f.EscapeStart,r(h)):t(v,33,126)?(e=f.LeadByte,b=(c-33)*94+v-33,w=a(b,o("jis0208")),w===null)?r(h):w:v===i?(e=f.LeadByte,n.prepend(v),r(h)):(e=f.LeadByte,r(h));case f.EscapeStart:return v===36||v===40?(c=v,e=f.Escape,null):(n.prepend(v),s=!1,e=l,r(h));case f.Escape:return(p=c,c=0,y=null,p===40&&v===66&&(y=f.ASCII),p===40&&v===74&&(y=f.Roman),p===40&&v===73&&(y=f.Katakana),p===36&&(v===64||v===66)&&(y=f.LeadByte),y!==null)?(e=e=y,k=s,s=!0,k?r(h):null):(n.prepend([p,v]),s=!1,e=l,r(h))}}}function fi(n){var f=n.fatal,t={ASCII:0,Roman:1,jis0208:2},r=t.ASCII;this.handler=function(n,f){var e,h,a;if(f===i&&r!==t.ASCII)return n.prepend(f),r=t.ASCII,[27,40,66];if(f===i&&r===t.ASCII)return u;if((r===t.ASCII||r===t.Roman)&&(f===14||f===15||f===27))return c(65533);if(r===t.ASCII&&s(f))return f;if(r===t.Roman&&(s(f)&&f!==92&&f!==126||f==165||f==8254)){if(s(f))return f;if(f===165)return 92;if(f===8254)return 126}return s(f)&&r!==t.ASCII?(n.prepend(f),r=t.ASCII,[27,40,66]):(f===165||f===8254)&&r!==t.Roman?(n.prepend(f),r=t.Roman,[27,40,74]):(f===8722&&(f=65293),e=v(f,o("jis0208")),e===null)?c(f):r!==t.jis0208?(n.prepend(f),r=t.jis0208,[27,36,66]):(h=l(e/94)+33,a=e%94+33,[h,a])}}function ei(n){var e=n.fatal,f=0;this.handler=function(n,s){var v,c,y,p,l;return s===i&&f!==0?(f=0,r(e)):s===i&&f===0?u:f!==0?(v=f,c=null,f=0,y=s<127?64:65,p=v<160?129:193,(t(s,64,126)||t(s,128,252))&&(c=(v-p)*188+s-y),t(c,8836,10715))?48508+c:(l=c===null?null:a(c,o("jis0208")),l===null&&h(s)&&n.prepend(s),l===null)?r(e):l:h(s)||s===128?s:t(s,161,223)?65216+s:t(s,129,159)||t(s,224,252)?(f=s,null):r(e)}}function oi(n){var r=n.fatal;this.handler=function(n,r){var f;if(r===i)return u;if(s(r)||r===128)return r;if(r===165)return 92;if(r===8254)return 126;if(t(r,65377,65439))return r-65216;if(r===8722&&(r=65293),f=pt(r),f===null)return c(r);var e=l(f/188),h=e<31?129:193,o=f%188,a=o<63?64:65;return[e+h,o+a]}}function si(n){var e=n.fatal,f=0;this.handler=function(n,s){var v,c,l;return s===i&&f!==0?(f=0,r(e)):s===i&&f===0?u:f!==0?(v=f,c=null,f=0,t(s,65,254)&&(c=(v-129)*190+(s-65)),l=c===null?null:a(c,o("euc-kr")),c===null&&h(s)&&n.prepend(s),l===null)?r(e):l:h(s)?s:t(s,129,254)?(f=s,null):r(e)}}function hi(n){var t=n.fatal;this.handler=function(n,t){var r,f,e;return t===i?u:s(t)?t:(r=v(t,o("euc-kr")),r===null)?c(t):(f=l(r/190)+129,e=r%190+65,[f,e])}}function k(n,t){var i=n>>8,r=n&255;return t?[i,r]:[r,i]}function et(n,f){var s=f.fatal,e=null,o=null;this.handler=function(f,h){var c,l;return h===i&&(e!==null||o!==null)?r(s):h===i&&e===null&&o===null?u:e===null?(e=h,null):(c=n?(e<<8)+h:(h<<8)+e,e=null,o!==null)?(l=o,o=null,t(c,56320,57343))?65536+(l-55296)*1024+(c-56320):(f.prepend(k(c,n)),r(s)):t(c,55296,56319)?(o=c,null):t(c,56320,57343)?r(s):c}}function ot(n,r){var f=r.fatal;this.handler=function(r,f){if(f===i)return u;if(t(f,0,65535))return k(f,n);var e=k((f-65536>>10)+55296,n),o=k((f-65536&1023)+56320,n);return e.concat(o)}}function ci(n){var t=n.fatal;this.handler=function(n,t){return t===i?u:h(t)?t:63360+t-128}}function li(n){var r=n.fatal;this.handler=function(n,r){return r===i?u:s(r)?r:t(r,63360,63487)?r-63232:c(r)}}var l,s,i,u,nt,w,f,e,tt,it,rt;typeof module!="undefined"&&module.exports&&!n["encoding-indexes"]&&(n["encoding-indexes"]=require("./encoding-indexes.js")["encoding-indexes"]);l=Math.floor;s=h;i=-1;d.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.pop():i},prepend:function(n){if(Array.isArray(n))for(var t=n;t.length;)this.tokens.push(t.pop());else this.tokens.push(n)},push:function(n){if(Array.isArray(n))for(var t=n;t.length;)this.tokens.unshift(t.shift());else this.tokens.unshift(n)}};u=-1;lt.prototype={handler:function(){}};at.prototype={handler:function(){}};nt=[{encodings:[{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"UTF-8"}],heading:"The Encoding"},{encodings:[{labels:["866","cp866","csibm866","ibm866"],name:"IBM866"},{labels:["csisolatin2","iso-8859-2","iso-ir-101","iso8859-2","iso88592","iso_8859-2","iso_8859-2:1987","l2","latin2"],name:"ISO-8859-2"},{labels:["csisolatin3","iso-8859-3","iso-ir-109","iso8859-3","iso88593","iso_8859-3","iso_8859-3:1988","l3","latin3"],name:"ISO-8859-3"},{labels:["csisolatin4","iso-8859-4","iso-ir-110","iso8859-4","iso88594","iso_8859-4","iso_8859-4:1988","l4","latin4"],name:"ISO-8859-4"},{labels:["csisolatincyrillic","cyrillic","iso-8859-5","iso-ir-144","iso8859-5","iso88595","iso_8859-5","iso_8859-5:1988"],name:"ISO-8859-5"},{labels:["arabic","asmo-708","csiso88596e","csiso88596i","csisolatinarabic","ecma-114","iso-8859-6","iso-8859-6-e","iso-8859-6-i","iso-ir-127","iso8859-6","iso88596","iso_8859-6","iso_8859-6:1987"],name:"ISO-8859-6"},{labels:["csisolatingreek","ecma-118","elot_928","greek","greek8","iso-8859-7","iso-ir-126","iso8859-7","iso88597","iso_8859-7","iso_8859-7:1987","sun_eu_greek"],name:"ISO-8859-7"},{labels:["csiso88598e","csisolatinhebrew","hebrew","iso-8859-8","iso-8859-8-e","iso-ir-138","iso8859-8","iso88598","iso_8859-8","iso_8859-8:1988","visual"],name:"ISO-8859-8"},{labels:["csiso88598i","iso-8859-8-i","logical"],name:"ISO-8859-8-I"},{labels:["csisolatin6","iso-8859-10","iso-ir-157","iso8859-10","iso885910","l6","latin6"],name:"ISO-8859-10"},{labels:["iso-8859-13","iso8859-13","iso885913"],name:"ISO-8859-13"},{labels:["iso-8859-14","iso8859-14","iso885914"],name:"ISO-8859-14"},{labels:["csisolatin9","iso-8859-15","iso8859-15","iso885915","iso_8859-15","l9"],name:"ISO-8859-15"},{labels:["iso-8859-16"],name:"ISO-8859-16"},{labels:["cskoi8r","koi","koi8","koi8-r","koi8_r"],name:"KOI8-R"},{labels:["koi8-ru","koi8-u"],name:"KOI8-U"},{labels:["csmacintosh","mac","macintosh","x-mac-roman"],name:"macintosh"},{labels:["dos-874","iso-8859-11","iso8859-11","iso885911","tis-620","windows-874"],name:"windows-874"},{labels:["cp1250","windows-1250","x-cp1250"],name:"windows-1250"},{labels:["cp1251","windows-1251","x-cp1251"],name:"windows-1251"},{labels:["ansi_x3.4-1968","ascii","cp1252","cp819","csisolatin1","ibm819","iso-8859-1","iso-ir-100","iso8859-1","iso88591","iso_8859-1","iso_8859-1:1987","l1","latin1","us-ascii","windows-1252","x-cp1252"],name:"windows-1252"},{labels:["cp1253","windows-1253","x-cp1253"],name:"windows-1253"},{labels:["cp1254","csisolatin5","iso-8859-9","iso-ir-148","iso8859-9","iso88599","iso_8859-9","iso_8859-9:1989","l5","latin5","windows-1254","x-cp1254"],name:"windows-1254"},{labels:["cp1255","windows-1255","x-cp1255"],name:"windows-1255"},{labels:["cp1256","windows-1256","x-cp1256"],name:"windows-1256"},{labels:["cp1257","windows-1257","x-cp1257"],name:"windows-1257"},{labels:["cp1258","windows-1258","x-cp1258"],name:"windows-1258"},{labels:["x-mac-cyrillic","x-mac-ukrainian"],name:"x-mac-cyrillic"}],heading:"Legacy single-byte encodings"},{encodings:[{labels:["chinese","csgb2312","csiso58gb231280","gb2312","gb_2312","gb_2312-80","gbk","iso-ir-58","x-gbk"],name:"GBK"},{labels:["gb18030"],name:"gb18030"}],heading:"Legacy multi-byte Chinese (simplified) encodings"},{encodings:[{labels:["big5","big5-hkscs","cn-big5","csbig5","x-x-big5"],name:"Big5"}],heading:"Legacy multi-byte Chinese (traditional) encodings"},{encodings:[{labels:["cseucpkdfmtjapanese","euc-jp","x-euc-jp"],name:"EUC-JP"},{labels:["csiso2022jp","iso-2022-jp"],name:"ISO-2022-JP"},{labels:["csshiftjis","ms932","ms_kanji","shift-jis","shift_jis","sjis","windows-31j","x-sjis"],name:"Shift_JIS"}],heading:"Legacy multi-byte Japanese encodings"},{encodings:[{labels:["cseuckr","csksc56011987","euc-kr","iso-ir-149","korean","ks_c_5601-1987","ks_c_5601-1989","ksc5601","ksc_5601","windows-949"],name:"EUC-KR"}],heading:"Legacy multi-byte Korean encodings"},{encodings:[{labels:["csiso2022kr","hz-gb-2312","iso-2022-cn","iso-2022-cn-ext","iso-2022-kr"],name:"replacement"},{labels:["utf-16be"],name:"UTF-16BE"},{labels:["utf-16","utf-16le"],name:"UTF-16LE"},{labels:["x-user-defined"],name:"x-user-defined"}],heading:"Legacy miscellaneous encodings"}];w={};nt.forEach(function(n){n.encodings.forEach(function(n){n.labels.forEach(function(t){w[t]=n})})});f={};e={};rt="utf-8";Object.defineProperty&&(Object.defineProperty(y.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),Object.defineProperty(y.prototype,"fatal",{get:function(){return this._error_mode==="fatal"}}),Object.defineProperty(y.prototype,"ignoreBOM",{get:function(){return this._ignoreBOM}}));y.prototype.decode=function(n,t){function c(n){return!st(["UTF-8","UTF-16LE","UTF-16BE"],this._encoding.name)||this._ignoreBOM||this._BOMseen||(n.length>0&&n[0]===65279?(this._BOMseen=!0,n.shift()):n.length>0&&(this._BOMseen=!0)),ct(n)}var h,o,f,r,s;for(h=typeof n=="object"&&n instanceof ArrayBuffer?new Uint8Array(n):typeof n=="object"&&("buffer"in n)&&n.buffer instanceof ArrayBuffer?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(0),t=p(t),this._do_not_flush||(this._decoder=e[this._encoding.name]({fatal:this._error_mode==="fatal"}),this._BOMseen=!1),this._do_not_flush=Boolean(t.stream),o=new d(h),f=[];;){if(s=o.read(),s===i)break;if(r=this._decoder.handler(o,s),r===u)break;r!==null&&(Array.isArray(r)?f.push.apply(f,r):f.push(r))}if(!this._do_not_flush){do{if(r=this._decoder.handler(o,o.read()),r===u)break;r!==null&&(Array.isArray(r)?f.push.apply(f,r):f.push(r))}while(!o.endOfStream());this._decoder=null}return c.call(this,f)};Object.defineProperty&&Object.defineProperty(b.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}});b.prototype.encode=function(n,t){var o,e,r,s;for(n=n===undefined?"":String(n),t=p(t),this._do_not_flush||(this._encoder=f[this._encoding.name]({fatal:this._fatal==="fatal"})),this._do_not_flush=Boolean(t.stream),o=new d(ht(n)),e=[];;){if(s=o.read(),s===i)break;if(r=this._encoder.handler(o,s),r===u)break;Array.isArray(r)?e.push.apply(e,r):e.push(r)}if(!this._do_not_flush){for(;;){if(r=this._encoder.handler(o,o.read()),r===u)break;Array.isArray(r)?e.push.apply(e,r):e.push(r)}this._encoder=null}return new Uint8Array(e)};f["UTF-8"]=function(n){return new kt(n)};e["UTF-8"]=function(n){return new bt(n)},function(){"encoding-indexes"in n&&nt.forEach(function(n){n.heading==="Legacy single-byte encodings"&&n.encodings.forEach(function(n){var t=n.name,i=o(t.toLowerCase());e[t]=function(n){return new dt(i,n)};f[t]=function(n){return new gt(i,n)}})})}();e.GBK=function(n){return new ut(n)};f.GBK=function(n){return new ft(n,!0)};f.gb18030=function(n){return new ft(n)};e.gb18030=function(n){return new ut(n)};f.Big5=function(n){return new ti(n)};e.Big5=function(n){return new ni(n)};f["EUC-JP"]=function(n){return new ri(n)};e["EUC-JP"]=function(n){return new ii(n)};f["ISO-2022-JP"]=function(n){return new fi(n)};e["ISO-2022-JP"]=function(n){return new ui(n)};f.Shift_JIS=function(n){return new oi(n)};e.Shift_JIS=function(n){return new ei(n)};f["EUC-KR"]=function(n){return new hi(n)};e["EUC-KR"]=function(n){return new si(n)};f["UTF-16BE"]=function(n){return new ot(!0,n)};e["UTF-16BE"]=function(n){return new et(!0,n)};f["UTF-16LE"]=function(n){return new ot(!1,n)};e["UTF-16LE"]=function(n){return new et(!1,n)};f["x-user-defined"]=function(n){return new li(n)};e["x-user-defined"]=function(n){return new ci(n)};n.TextEncoder||(n.TextEncoder=b);n.TextDecoder||(n.TextDecoder=y);typeof module!="undefined"&&module.exports&&(module.exports={TextEncoder:n.TextEncoder,TextDecoder:n.TextDecoder,EncodingIndexes:n["encoding-indexes"]})}(this||{}),function(){function tt(n){var t=0;return function(){return t<n.length?{done:!1,value:n[t++]}:{done:!0}}}function ht(n){var t,i;for(n=["object"==typeof globalThis&&globalThis,n,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global],t=0;t<n.length;++t)if(i=n[t],i&&i.Math==Math)return i;throw Error("Cannot find global object");}function rt(n,t){var i;if(t){for(var u=it,r=n.split("."),f=0;f<r.length-1;f++)i=r[f],i in u||(u[i]={}),u=u[i];r=r[r.length-1];f=u[r];i=t(f);i!=f&&null!=i&&c(u,r,{configurable:!0,writable:!0,value:i})}}function ct(n){return n={next:n},n[Symbol.iterator]=function(){return this},n}function i(n){var t="undefined"!=typeof Symbol&&Symbol.iterator&&n[Symbol.iterator];return t?t.call(n):{next:tt(n)}}function h(){this.h=!1;this.f=null;this.m=void 0;this.b=1;this.l=this.v=0;this.g=null}function p(n){if(n.h)throw new TypeError("Generator is already running");n.h=!0}function w(n,t){return n.b=3,{value:t}}function b(n){this.a=new h;this.B=n}function lt(n,t){p(n.a);var i=n.a.f;return i?k(n,"return"in i?i["return"]:function(n){return{value:n,done:!0}},t,n.a["return"]):(n.a["return"](t),s(n))}function k(n,t,i,r){var u,f;try{if(u=t.call(n.a.f,i),!(u instanceof Object))throw new TypeError("Iterator result "+u+" is not an object");if(!u.done)return n.a.h=!1,u;f=u.value}catch(e){return n.a.f=null,n.a.j(e),s(n)}return n.a.f=null,r.call(n.a,f),s(n)}function s(n){for(;n.a.b;)try{var t=n.B(n.a);if(t)return n.a.h=!1,{value:t.value,done:!1}}catch(i){n.a.m=void 0;n.a.j(i)}if(n.a.h=!1,n.a.g){if(t=n.a.g,n.a.g=null,t.A)throw t.w;return{value:t["return"],done:!0}}return{value:void 0,done:!0}}function at(n){this.next=function(t){return n.i(t)};this["throw"]=function(t){return n.j(t)};this["return"]=function(t){return lt(n,t)};this[Symbol.iterator]=function(){return this}}function d(n,t){var i=new at(new b(t));return y&&y(i,n.prototype),i}var t,c="function"==typeof Object.defineProperties?Object.defineProperty:function(n,t,i){return n==Array.prototype||n==Object.prototype?n:(n[t]=i.value,n)},it=ht(this),l,a,ut,v,y,r,st;if(rt("Symbol",function(n){function t(n){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new i("jscomp_symbol_"+(n||"")+"_"+r++,n)}function i(n,t){this.o=n;c(this,"description",{configurable:!0,writable:!0,value:t})}if(n)return n;i.prototype.toString=function(){return this.o};var r=0;return t}),rt("Symbol.iterator",function(n){var r,t,i;if(n)return n;for(n=Symbol("Symbol.iterator"),r="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t<r.length;t++)i=it[r[t]],"function"==typeof i&&"function"!=typeof i.prototype[n]&&c(i.prototype,n,{configurable:!0,writable:!0,value:function(){return ct(tt(this))}});return n}),"function"==typeof Object.setPrototypeOf)l=Object.setPrototypeOf;else{n:{ut={u:!0};v={};try{v.__proto__=ut;a=v.u;break n}catch(bt){}a=!1}l=a?function(n,t){if(n.__proto__=t,n.__proto__!==t)throw new TypeError(n+" is not extensible");return n}:null}if(y=l,h.prototype.i=function(n){this.m=n},h.prototype.j=function(n){this.g={w:n,A:!0};this.b=this.v||this.l},h.prototype["return"]=function(n){this.g={"return":n};this.b=this.l},b.prototype.i=function(n){return(p(this.a),this.a.f)?k(this,this.a.f.next,n,this.a.i):(this.a.i(n),s(this))},b.prototype.j=function(n){return(p(this.a),this.a.f)?k(this,this.a.f["throw"],n,this.a.i):(this.a.j(n),s(this))},"undefined"!=typeof Blob&&("undefined"==typeof FormData||!FormData.prototype.keys)){var o=function(n,t){for(var i=0;i<n.length;i++)t(n[i])},ft=function(n,t,i){return t instanceof Blob?[String(n),t,void 0!==i?i+"":"string"==typeof t.name?t.name:"blob"]:[String(n),String(t)]},e=function(n,t){if(n.length<t)throw new TypeError(t+" argument required, but only "+n.length+" present.");},g=function(n){var r=i(n),t;return n=r.next().value,t=r.next().value,r=r.next().value,t instanceof Blob&&(t=new File([t],r,{type:t.type,lastModified:t.lastModified})),[n,t]},n="object"==typeof globalThis?globalThis:"object"==typeof window?window:"object"==typeof self?self:this,vt=n.FormData,nt=n.XMLHttpRequest&&n.XMLHttpRequest.prototype.send,et=n.Request&&n.fetch,ot=n.navigator&&n.navigator.sendBeacon,f=n.Element&&n.Element.prototype,u=n.Symbol&&Symbol.toStringTag;u&&(Blob.prototype[u]||(Blob.prototype[u]="Blob"),"File"in n&&!File.prototype[u]&&(File.prototype[u]="File"));try{new File([],"")}catch(bt){n.File=function(n,t,i){return n=new Blob(n,i),i=i&&void 0!==i.lastModified?new Date(i.lastModified):new Date,Object.defineProperties(n,{name:{value:t},lastModifiedDate:{value:i},lastModified:{value:+i},toString:{value:function(){return"[object File]"}}}),u&&Object.defineProperty(n,u,{value:"File"}),n}}r=function(n){this.c=[];var t=this;n&&o(n.elements,function(n){if(n.name&&!n.disabled&&"submit"!==n.type&&"button"!==n.type&&!n.matches("form fieldset[disabled] *"))if("file"===n.type){var i=n.files&&n.files.length?n.files:[new File([],"",{type:"application/octet-stream"})];o(i,function(i){t.append(n.name,i)})}else"select-multiple"===n.type||"select-one"===n.type?o(n.options,function(i){!i.disabled&&i.selected&&t.append(n.name,i.value)}):"checkbox"===n.type||"radio"===n.type?n.checked&&t.append(n.name,n.value):(i="textarea"===n.type?n.value.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n"):n.value,t.append(n.name,i))})};t=r.prototype;t.append=function(n,t,i){e(arguments,2);this.c.push(ft(n,t,i))};t["delete"]=function(n){e(arguments,1);var t=[];n=String(n);o(this.c,function(i){i[0]!==n&&t.push(i)});this.c=t};t.entries=function yt(){var n,t=this;return d(yt,function(i){if(1==i.b&&(n=0),3!=i.b)return n<t.c.length?i=w(i,g(t.c[n])):(i.b=0,i=void 0),i;n++;i.b=2})};t.forEach=function(n,t){var f,r,u;for(e(arguments,1),f=i(this),r=f.next();!r.done;r=f.next())u=i(r.value),r=u.next().value,u=u.next().value,n.call(t,u,r,this)};t.get=function(n){var i,t;for(e(arguments,1),i=this.c,n=String(n),t=0;t<i.length;t++)if(i[t][0]===n)return g(i[t])[1];return null};t.getAll=function(n){e(arguments,1);var t=[];return n=String(n),o(this.c,function(i){i[0]===n&&t.push(g(i)[1])}),t};t.has=function(n){e(arguments,1);n=String(n);for(var t=0;t<this.c.length;t++)if(this.c[t][0]===n)return!0;return!1};t.keys=function pt(){var e=this,t,n,r,u,f;return d(pt,function(o){if(1==o.b&&(t=i(e),n=t.next()),3!=o.b){if(n.done){o.b=0;return}return r=n.value,u=i(r),f=u.next().value,w(o,f)}n=t.next();o.b=2})};t.set=function(n,t,i){e(arguments,2);n=String(n);var r=[],f=ft(n,t,i),u=!0;o(this.c,function(t){t[0]===n?u&&(u=!r.push(f)):r.push(t)});u&&r.push(f);this.c=r};t.values=function wt(){var e=this,t,n,u,r,f;return d(wt,function(o){if(1==o.b&&(t=i(e),n=t.next()),3!=o.b){if(n.done){o.b=0;return}return u=n.value,r=i(u),r.next(),f=r.next().value,w(o,f)}n=t.next();o.b=2})};r.prototype._asNative=function(){for(var t,r=new vt,u=i(this),n=u.next();!n.done;n=u.next())t=i(n.value),n=t.next().value,t=t.next().value,r.append(n,t);return r};r.prototype._blob=function(){for(var n,u="----formdata-polyfill-"+Math.random(),r=[],f=i(this),t=f.next();!t.done;t=f.next())n=i(t.value),t=n.next().value,n=n.next().value,r.push("--"+u+"\r\n"),n instanceof Blob?r.push('Content-Disposition: form-data; name="'+t+'"; filename="'+n.name+'"\r\nContent-Type: '+((n.type||"application/octet-stream")+"\r\n\r\n"),n,"\r\n"):r.push('Content-Disposition: form-data; name="'+t+'"\r\n\r\n'+n+"\r\n");return r.push("--"+u+"--"),new Blob(r,{type:"multipart/form-data; boundary="+u})};r.prototype[Symbol.iterator]=function(){return this.entries()};r.prototype.toString=function(){return"[object FormData]"};f&&!f.matches&&(f.matches=f.matchesSelector||f.mozMatchesSelector||f.msMatchesSelector||f.oMatchesSelector||f.webkitMatchesSelector||function(n){n=(this.document||this.ownerDocument).querySelectorAll(n);for(var t=n.length;0<=--t&&n.item(t)!==this;);return-1<t});u&&(r.prototype[u]="FormData");nt&&(st=n.XMLHttpRequest.prototype.setRequestHeader,n.XMLHttpRequest.prototype.setRequestHeader=function(n,t){st.call(this,n,t);"content-type"===n.toLowerCase()&&(this.s=!0)},n.XMLHttpRequest.prototype.send=function(n){n instanceof r?(n=n._blob(),this.s||this.setRequestHeader("Content-Type",n.type),nt.call(this,n)):nt.call(this,n)});et&&(n.fetch=function(n,t){return t&&t.body&&t.body instanceof r&&(t.body=t.body._blob()),et.call(this,n,t)});ot&&(n.navigator.sendBeacon=function(n,t){return t instanceof r&&(t=t._asNative()),ot.call(this,n,t)});n.FormData=r}}(),function(n,t){"use strict";function o(n){this.time=n.time;this.target=n.target;this.rootBounds=n.rootBounds;this.boundingClientRect=n.boundingClientRect;this.intersectionRect=n.intersectionRect||f();this.isIntersecting=!!n.intersectionRect;var t=this.boundingClientRect,i=t.width*t.height,r=this.intersectionRect,u=r.width*r.height;this.intersectionRatio=i?Number((u/i).toFixed(4)):this.isIntersecting?1:0}function i(n,t){var i=t||{};if(typeof n!="function")throw new Error("callback must be a function");if(i.root&&i.root.nodeType!=1)throw new Error("root must be an Element");this._checkForIntersections=a(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT);this._callback=n;this._observationTargets=[];this._queuedEntries=[];this._rootMarginValues=this._parseRootMargin(i.rootMargin);this.thresholds=this._initThresholds(i.threshold);this.root=i.root||null;this.rootMargin=this._rootMarginValues.map(function(n){return n.value+n.unit}).join(" ")}function l(){return n.performance&&performance.now&&performance.now()}function a(n,t){var i=null;return function(){i||(i=setTimeout(function(){n();i=null},t))}}function s(n,t,i,r){typeof n.addEventListener=="function"?n.addEventListener(t,i,r||!1):typeof n.attachEvent=="function"&&n.attachEvent("on"+t,i)}function h(n,t,i,r){typeof n.removeEventListener=="function"?n.removeEventListener(t,i,r||!1):typeof n.detatchEvent=="function"&&n.detatchEvent("on"+t,i)}function v(n,t){var i=Math.max(n.top,t.top),r=Math.min(n.bottom,t.bottom),u=Math.max(n.left,t.left),f=Math.min(n.right,t.right),e=f-u,o=r-i;return e>=0&&o>=0&&{top:i,bottom:r,left:u,right:f,width:e,height:o}}function u(n){var t;try{t=n.getBoundingClientRect()}catch(i){return t={top:0,bottom:0,left:0,width:0,height:0,right:0}}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):f()}function f(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(n,t){for(var i=t;i;){if(i==n)return!0;i=e(i)}return!1}function e(n){var t=n.parentNode;return t&&t.nodeType==11&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}if("IntersectionObserver"in n&&"IntersectionObserverEntry"in n&&"intersectionRatio"in n.IntersectionObserverEntry.prototype){"isIntersecting"in n.IntersectionObserverEntry.prototype||Object.defineProperty(n.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var r=[];i.prototype.THROTTLE_TIMEOUT=100;i.prototype.POLL_INTERVAL=null;i.prototype.USE_MUTATION_OBSERVER=!0;i.prototype.observe=function(n){var t=this._observationTargets.some(function(t){return t.element==n});if(!t){if(!(n&&n.nodeType==1))throw new Error("target must be an Element");this._registerInstance();this._observationTargets.push({element:n,entry:null});this._monitorIntersections();this._checkForIntersections()}};i.prototype.unobserve=function(n){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=n});this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())};i.prototype.disconnect=function(){this._observationTargets=[];this._unmonitorIntersections();this._unregisterInstance()};i.prototype.takeRecords=function(){var n=this._queuedEntries.slice();return this._queuedEntries=[],n};i.prototype._initThresholds=function(n){var t=n||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(n,t,i){if(typeof n!="number"||isNaN(n)||n<0||n>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return n!==i[t-1]})};i.prototype._parseRootMargin=function(n){var i=n||"0px",t=i.split(/\s+/).map(function(n){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(n);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t};i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(s(n,"resize",this._checkForIntersections,!0),s(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))};i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,h(n,"resize",this._checkForIntersections,!0),h(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))};i.prototype._checkForIntersections=function(){var n=this._rootIsInDom(),t=n?this._getRootRect():f();this._observationTargets.forEach(function(i){var r=i.element,h=u(r),s=this._rootContainsTarget(r),f=i.entry,c=n&&s&&this._computeTargetAndRootIntersection(r,t),e=i.entry=new o({time:l(),target:r,boundingClientRect:h,rootBounds:t,intersectionRect:c});f?n&&s?this._hasCrossedThreshold(f,e)&&this._queuedEntries.push(e):f&&f.isIntersecting&&this._queuedEntries.push(e):this._queuedEntries.push(e)},this);this._queuedEntries.length&&this._callback(this.takeRecords(),this)};i.prototype._computeTargetAndRootIntersection=function(i,r){var o,h;if(n.getComputedStyle(i).display!="none"){for(var l=u(i),s=l,f=e(i),c=!1;!c;){if(o=null,h=f.nodeType==1?n.getComputedStyle(f):{},h.display=="none")return;if(f==this.root||f==t?(c=!0,o=r):f!=t.body&&f!=t.documentElement&&h.overflow!="visible"&&(o=u(f)),o&&(s=v(o,s),!s))break;f=e(f)}return s}};i.prototype._getRootRect=function(){var r,n,i;return this.root?r=u(this.root):(n=t.documentElement,i=t.body,r={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}),this._expandRectByRootMargin(r)};i.prototype._expandRectByRootMargin=function(n){var i=this._rootMarginValues.map(function(t,i){return t.unit=="px"?t.value:t.value*(i%2?n.width:n.height)/100}),t={top:n.top-i[0],right:n.right+i[1],bottom:n.bottom+i[2],left:n.left-i[3]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t};i.prototype._hasCrossedThreshold=function(n,t){var u=n&&n.isIntersecting?n.intersectionRatio||0:-1,f=t.isIntersecting?t.intersectionRatio||0:-1,r,i;if(u!==f)for(r=0;r<this.thresholds.length;r++)if(i=this.thresholds[r],i==u||i==f||i<u!=i<f)return!0};i.prototype._rootIsInDom=function(){return!this.root||c(t,this.root)};i.prototype._rootContainsTarget=function(n){return c(this.root||t,n)};i.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)};i.prototype._unregisterInstance=function(){var n=r.indexOf(this);n!=-1&&r.splice(n,1)};n.IntersectionObserver=i;n.IntersectionObserverEntry=o}(window,document);!function(n,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){"use strict";function nu(n,t,i){var r,e,f=(i=i||u).createElement("script");if(f.text=n,t)for(r in le)(e=t[r]||t.getAttribute&&t.getAttribute(r))&&f.setAttribute(r,e);i.head.appendChild(f).parentNode.removeChild(f)}function et(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?oi[dr.call(n)]||"object":typeof n}function ki(n){var t=!!n&&"length"in n&&n.length,i=et(n);return!e(n)&&!ft(n)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in n)}function s(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function we(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n}function di(n,t,r){return e(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):"string"!=typeof t?i.grep(n,function(n){return-1<d.call(t,n)!==r}):i.filter(t,n,r)}function cu(n,t){while((n=n[t])&&1!==n.nodeType);return n}function st(n){return n}function hi(n){throw n;}function lu(n,t,i,r){var u;try{n&&e(u=n.promise)?u.call(n).done(t).fail(i):n&&e(u=n.then)?u.call(n,t,i):t.apply(void 0,[n].slice(r))}catch(n){i.apply(void 0,[n])}}function li(){u.removeEventListener("DOMContentLoaded",li);n.removeEventListener("load",li);i.ready()}function de(n,t){return t.toUpperCase()}function k(n){return n.replace(be,"ms-").replace(ke,de)}function ni(){this.expando=i.expando+ni.uid++}function vu(n,t,i){var u,r;if(void 0===i&&1===n.nodeType)if(u="data-"+t.replace(no,"-$&").toLowerCase(),"string"==typeof(i=n.getAttribute(u))){try{i="true"===(r=i)||"false"!==r&&("null"===r?null:r===+r+""?+r:ge.test(r)?JSON.parse(r):r)}catch(n){}c.set(n,t,i)}else i=void 0;return i}function pu(n,t,r,u){var s,h,c=20,l=u?function(){return u.cur()}:function(){return i.css(n,t,"")},o=l(),e=r&&r[3]||(i.cssNumber[t]?"":"px"),f=n.nodeType&&(i.cssNumber[t]||"px"!==e&&+o)&&ti.exec(i.css(n,t));if(f&&f[3]!==e){for(o/=2,e=e||f[3],f=+o||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f/=h;f*=2;i.style(n,t,f+e);r=r||[]}return r&&(f=+f||+o||0,s=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=e,u.start=f,u.end=s)),s}function lt(n,t){for(var h,f,a,s,c,l,e,o=[],u=0,v=n.length;u<v;u++)(f=n[u]).style&&(h=f.style.display,t?("none"===h&&(o[u]=r.get(f,"display")||null,o[u]||(f.style.display="")),""===f.style.display&&ii(f)&&(o[u]=(e=c=s=void 0,c=(a=f).ownerDocument,l=a.nodeName,(e=gi[l])||(s=c.body.appendChild(c.createElement(l)),e=i.css(s,"display"),s.parentNode.removeChild(s),"none"===e&&(e="block"),gi[l]=e)))):"none"!==h&&(o[u]="none",r.set(f,"display",h)));for(u=0;u<v;u++)null!=o[u]&&(n[u].style.display=o[u]);return n}function l(n,t){var r;return r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&s(n,t)?i.merge([n],r):r}function nr(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function du(n,t,r,u,f){for(var e,o,p,c,w,a,s=t.createDocumentFragment(),y=[],h=0,b=n.length;h<b;h++)if((e=n[h])||0===e)if("object"===et(e))i.merge(y,e.nodeType?[e]:e);else if(ku.test(e)){for(o=o||s.appendChild(t.createElement("div")),p=(wu.exec(e)||["",""])[1].toLowerCase(),c=v[p]||v._default,o.innerHTML=c[1]+i.htmlPrefilter(e)+c[2],a=c[0];a--;)o=o.lastChild;i.merge(y,o.childNodes);(o=s.firstChild).textContent=""}else y.push(t.createTextNode(e));for(s.textContent="",h=0;e=y[h++];)if(u&&-1<i.inArray(e,u))f&&f.push(e);else if(w=ct(e),o=l(s.appendChild(e),"script"),w&&nr(o),r)for(a=0;e=o[a++];)bu.test(e.type||"")&&r.push(e);return s}function at(){return!0}function vt(){return!1}function ir(n,t,r,u,f,e){var o,s;if("object"==typeof t){for(s in"string"!=typeof r&&(u=u||r,r=void 0),t)ir(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),!1===f)f=vt;else if(!f)return n;return 1===e&&(o=f,(f=function(n){return i().off(n),o.apply(this,arguments)}).guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function vi(n,t,u){u?(r.set(n,t,!1),i.event.add(n,t,{namespace:!1,handler:function(n){var f,u=r.get(this,t);if(1&n.isTrigger&&this[t]){if(u)(i.event.special[t]||{}).delegateType&&n.stopPropagation();else if(u=a.call(arguments),r.set(this,t,u),this[t](),f=r.get(this,t),r.set(this,t,!1),u!==f)return n.stopImmediatePropagation(),n.preventDefault(),f}else u&&(r.set(this,t,i.event.trigger(u[0],u.slice(1),this)),n.stopPropagation(),n.isImmediatePropagationStopped=at)}})):void 0===r.get(n,t)&&i.event.add(n,t,at)}function gu(n,t){return s(n,"table")&&s(11!==t.nodeType?t:t.firstChild,"tr")&&i(n).children("tbody")[0]||n}function fo(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function eo(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function nf(n,t){var u,o,f,s,h,e;if(1===t.nodeType){if(r.hasData(n)&&(e=r.get(n).events))for(f in r.remove(t,"handle events"),e)for(u=0,o=e[f].length;u<o;u++)i.event.add(t,f,e[f][u]);c.hasData(n)&&(s=c.access(n),h=i.extend({},s),c.set(t,h))}}function yt(n,t,u,o){t=kr(t);var a,b,c,v,s,y,h=0,p=n.length,d=p-1,w=t[0],k=e(w);if(k||1<p&&"string"==typeof w&&!f.checkClone&&ro.test(w))return n.each(function(i){var r=n.eq(i);k&&(t[0]=w.call(this,i,r.html()));yt(r,t,u,o)});if(p&&(b=(a=du(t,n[0].ownerDocument,!1,n,o)).firstChild,1===a.childNodes.length&&(a=b),b||o)){for(v=(c=i.map(l(a,"script"),fo)).length;h<p;h++)s=a,h!==d&&(s=i.clone(s,!0,!0),v&&i.merge(c,l(s,"script"))),u.call(n[h],s,h);if(v)for(y=c[c.length-1].ownerDocument,i.map(c,eo),h=0;h<v;h++)s=c[h],bu.test(s.type||"")&&!r.access(s,"globalEval")&&i.contains(y,s)&&(s.src&&"module"!==(s.type||"").toLowerCase()?i._evalUrl&&!s.noModule&&i._evalUrl(s.src,{nonce:s.nonce||s.getAttribute("nonce")},y):nu(s.textContent.replace(uo,""),s,y))}return n}function tf(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(l(u)),u.parentNode&&(r&&ct(u)&&nr(l(u,"script")),u.parentNode.removeChild(u));return n}function ui(n,t,r){var o,s,h,u,c=ur.test(t),e=n.style;return(r=r||yi(n))&&(u=r.getPropertyValue(t)||r[t],c&&u&&(u=u.replace(gt,"$1")||void 0),""!==u||ct(n)||(u=i.style(n,t)),!f.pixelBoxStyles()&&rr.test(u)&&oo.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=u,u=r.width,e.width=o,e.minWidth=s,e.maxWidth=h)),void 0!==u?u+"":u}function uf(n,t){return{get:function(){if(!n())return(this.get=t).apply(this,arguments);delete this.get}}}function fr(n){var t=i.cssProps[n]||of[n];return t||(n in ef?n:of[n]=function(n){for(var i=n[0].toUpperCase()+n.slice(1),t=ff.length;t--;)if((n=ff[t]+i)in ef)return n}(n)||n)}function hf(n,t,i){var r=ti.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function er(n,t,r,u,f,e){var o="width"===t?1:0,h=0,s=0,c=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)"margin"===r&&(c+=i.css(n,r+nt[o],!0,f)),u?("content"===r&&(s-=i.css(n,"padding"+nt[o],!0,f)),"margin"!==r&&(s-=i.css(n,"border"+nt[o]+"Width",!0,f))):(s+=i.css(n,"padding"+nt[o],!0,f),"padding"!==r?s+=i.css(n,"border"+nt[o]+"Width",!0,f):h+=i.css(n,"border"+nt[o]+"Width",!0,f));return!u&&0<=e&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))||0),s+c}function cf(n,t,r){var e=yi(n),o=(!f.boxSizingReliable()||r)&&"border-box"===i.css(n,"boxSizing",!1,e),h=o,u=ui(n,t,e),c="offset"+t[0].toUpperCase()+t.slice(1);if(rr.test(u)){if(!r)return u;u="auto"}return(!f.boxSizingReliable()&&o||!f.reliableTrDimensions()&&s(n,"tr")||"auto"===u||!parseFloat(u)&&"inline"===i.css(n,"display",!1,e))&&n.getClientRects().length&&(o="border-box"===i.css(n,"boxSizing",!1,e),(h=c in n)&&(u=n[c])),(u=parseFloat(u)||0)+er(n,t,r||(o?"border":"content"),h,e,u)+"px"}function p(n,t,i,r,u){return new p.prototype.init(n,t,i,r,u)}function or(){pi&&(!1===u.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(or):n.setTimeout(or,i.fx.interval),i.fx.tick())}function yf(){return n.setTimeout(function(){pt=void 0}),pt=Date.now()}function wi(n,t){var u,r=0,i={height:n};for(t=t?1:0;r<4;r+=2-t)i["margin"+(u=nt[r])]=i["padding"+u]=n;return t&&(i.opacity=i.width=n),i}function pf(n,t,i){for(var u,f=(w.tweeners[t]||[]).concat(w.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function w(n,t,r){var o,s,h=0,a=w.prefilters.length,f=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=pt||yf(),t=Math.max(0,u.startTime+u.duration-o),i=1-(t/u.duration||0),r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),i<1&&e?t:(e||f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:pt||yf(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)u.tweens[i].run(1);return t?(f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u,t])):f.rejectWith(n,[u,t]),this}}),c=u.props;for(!function(n,t){var r,f,e,u,o;for(r in n)if(e=t[f=k(r)],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),(o=i.cssHooks[f])&&"expand"in o)for(r in u=o.expand(u),delete n[f],u)r in n||(n[r]=u[r],t[r]=e);else t[f]=e}(c,u.opts.specialEasing);h<a;h++)if(o=w.prefilters[h].call(u,n,c,u.opts))return e(o.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,pf,u),e(u.opts.start)&&u.opts.start.call(n,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),i.fx.timer(i.extend(l,{elem:n,anim:u,queue:u.opts.queue})),u}function rt(n){return(n.match(y)||[]).join(" ")}function ut(n){return n.getAttribute&&n.getAttribute("class")||""}function sr(n){return Array.isArray(n)?n:"string"==typeof n&&n.match(y)||[]}function ar(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||co.test(n)?u(n,i):ar(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==et(t))u(n,t);else for(f in t)ar(n+"["+f+"]",t[f],r,u)}function re(n){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,u=0,f=t.toLowerCase().match(y)||[];if(e(i))while(r=f[u++])"+"===r[0]?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(i)):(n[r]=n[r]||[]).push(i)}}function ue(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===vr;return e(t.dataTypes[0])||!f["*"]&&e("*")}function pr(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}var h=[],br=Object.getPrototypeOf,a=h.slice,kr=h.flat?function(n){return h.flat.call(n)}:function(n){return h.concat.apply([],n)},ei=h.push,d=h.indexOf,oi={},dr=oi.toString,dt=oi.hasOwnProperty,gr=dt.toString,ce=gr.call(Object),f={},e=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType&&"function"!=typeof n.item},ft=function(n){return null!=n&&n===n.window},u=n.document,le={type:!0,src:!0,nonce:!0,noModule:!0},tu="3.7.1",ae=/HTML$/i,i=function(n,t){return new i.fn.init(n,t)},iu,b,si,eu,ou,su,hu,y,au,ci,ht,ii,gi,v,ku,tr,pt,pi,wt,lf,af,vf,wf,bt,bf,kf,df,cr,lr,fe,kt,ee,wr,bi,oe,se,he;i.fn=i.prototype={jquery:tu,constructor:i,length:0,toArray:function(){return a.call(this)},get:function(n){return null==n?a.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(i.grep(this,function(n,t){return(t+1)%2}))},odd:function(){return this.pushStack(i.grep(this,function(n,t){return t%2}))},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(0<=t&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ei,sort:h.sort,splice:h.splice};i.extend=i.fn.extend=function(){var s,u,f,t,o,c,n=arguments[0]||{},r=1,l=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[r]||{},r++),"object"==typeof n||e(n)||(n={}),r===l&&(n=this,r--);r<l;r++)if(null!=(s=arguments[r]))for(u in s)t=s[u],"__proto__"!==u&&n!==t&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(f=n[u],c=o&&!Array.isArray(f)?[]:o||i.isPlainObject(f)?f:{},o=!1,n[u]=i.extend(h,c,t)):void 0!==t&&(n[u]=t));return n};i.extend({expando:"jQuery"+(tu+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==dr.call(n))&&(!(t=br(n))||"function"==typeof(i=dt.call(t,"constructor")&&t.constructor)&&gr.call(i)===ce)},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},globalEval:function(n,t,i){nu(n,{nonce:t&&t.nonce},i)},each:function(n,t){var r,i=0;if(ki(n)){for(r=n.length;i<r;i++)if(!1===t.call(n[i],i,n[i]))break}else for(i in n)if(!1===t.call(n[i],i,n[i]))break;return n},text:function(n){var r,u="",f=0,t=n.nodeType;if(!t)while(r=n[f++])u+=i.text(r);return 1===t||11===t?n.textContent:9===t?n.documentElement.textContent:3===t||4===t?n.nodeValue:u},makeArray:function(n,t){var r=t||[];return null!=n&&(ki(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ei.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:d.call(t,n,i)},isXMLDoc:function(n){var i=n&&n.namespaceURI,t=n&&(n.ownerDocument||n).documentElement;return!ae.test(i||t&&t.nodeName||"HTML")},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u=[],r=0,f=n.length,e=!i;r<f;r++)!t(n[r],r)!==e&&u.push(n[r]);return u},map:function(n,t,i){var e,u,r=0,f=[];if(ki(n))for(e=n.length;r<e;r++)null!=(u=t(n[r],r,i))&&f.push(u);else for(r in n)null!=(u=t(n[r],r,i))&&f.push(u);return kr(f)},guid:1,support:f});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=h[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){oi["[object "+t+"]"]=t.toLowerCase()});var ve=h.pop,ye=h.sort,pe=h.splice,o="[\\x20\\t\\r\\n\\f]",gt=new RegExp("^"+o+"+|((?:^|[^\\\\])(?:\\\\.)*)"+o+"+$","g");i.contains=function(n,t){var i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))};iu=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;i.escapeSelector=function(n){return(n+"").replace(iu,we)};b=u;si=ei;!function(){function r(n,t,o,s){var h,b,a,y,k,d,g,w=t&&t.ownerDocument,p=t?t.nodeType:9;if(o=o||[],"string"!=typeof n||!n||1!==p&&9!==p&&11!==p)return o;if(!s&&(nt(t),t=t||u,l)){if(11!==p&&(k=ir.exec(n)))if(h=k[1]){if(9===p){if(!(a=t.getElementById(h)))return o;if(a.id===h)return v.call(o,a),o}else if(w&&(a=w.getElementById(h))&&r.contains(t,a)&&a.id===h)return v.call(o,a),o}else{if(k[2])return v.apply(o,t.getElementsByTagName(n)),o;if((h=k[3])&&t.getElementsByClassName)return v.apply(o,t.getElementsByClassName(h)),o}if(!(ht[n+" "]||c&&c.test(n))){if(g=n,w=t,1===p&&(ki.test(n)||li.test(n))){for((w=bt.test(n)&&kt(t.parentNode)||t)==t&&f.scope||((y=t.getAttribute("id"))?y=i.escapeSelector(y):t.setAttribute("id",y=e)),b=(d=et(n)).length;b--;)d[b]=(y?"#"+y:":scope")+" "+at(d[b]);g=d.join(",")}try{return v.apply(o,w.querySelectorAll(g)),o}catch(t){ht(n,!0)}finally{y===e&&t.removeAttribute("id")}}}return yi(n.replace(gt,"$1"),t,o,s)}function lt(){var n=[];return function i(r,u){return n.push(r+" ")>t.cacheLength&&delete i[n.shift()],i[r+" "]=u}}function y(n){return n[e]=!0,n}function ut(n){var t=u.createElement("fieldset");try{return!!n(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function fr(n){return function(t){return s(t,"input")&&t.type===n}}function er(n){return function(t){return(s(t,"input")||s(t,"button"))&&t.type===n}}function ai(n){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&ur(t)===n:t.disabled===n:"label"in t&&t.disabled===n}}function it(n){return y(function(t){return t=+t,y(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function kt(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function nt(n){var s,h=n?n.ownerDocument||n:b;return h!=u&&9===h.nodeType&&h.documentElement&&(p=(u=h).documentElement,l=!i.isXMLDoc(u),pt=p.matches||p.webkitMatchesSelector||p.msMatchesSelector,p.msMatchesSelector&&b!=u&&(s=u.defaultView)&&s.top!==s&&s.addEventListener("unload",rr),f.getById=ut(function(n){return p.appendChild(n).id=i.expando,!u.getElementsByName||!u.getElementsByName(i.expando).length}),f.disconnectedMatch=ut(function(n){return pt.call(n,"*")}),f.scope=ut(function(){return u.querySelectorAll(":scope")}),f.cssHas=ut(function(){try{return u.querySelector(":has(*,:jqfake)"),!1}catch(n){return!0}}),f.getById?(t.filter.ID=function(n){var t=n.replace(k,g);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&l){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(k,g);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&l){var r,u,f,i=t.getElementById(n);if(i){if((r=i.getAttributeNode("id"))&&r.value===n)return[i];for(f=t.getElementsByName(n),u=0;i=f[u++];)if((r=i.getAttributeNode("id"))&&r.value===n)return[i]}return[]}}),t.find.TAG=function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):t.querySelectorAll(n)},t.find.CLASS=function(n,t){if("undefined"!=typeof t.getElementsByClassName&&l)return t.getElementsByClassName(n)},c=[],ut(function(n){var t;p.appendChild(n).innerHTML="<a id='"+e+"' href='' disabled='disabled'><\/a><select id='"+e+"-\r\\' disabled='disabled'><option selected=''><\/option><\/select>";n.querySelectorAll("[selected]").length||c.push("\\["+o+"*(?:value|"+oi+")");n.querySelectorAll("[id~="+e+"-]").length||c.push("~=");n.querySelectorAll("a#"+e+"+*").length||c.push(".#.+[+~]");n.querySelectorAll(":checked").length||c.push(":checked");(t=u.createElement("input")).setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");p.appendChild(n).disabled=!0;2!==n.querySelectorAll(":disabled").length&&c.push(":enabled",":disabled");(t=u.createElement("input")).setAttribute("name","");n.appendChild(t);n.querySelectorAll("[name='']").length||c.push("\\["+o+"*name"+o+"*="+o+"*(?:''|\"\")")}),f.cssHas||c.push(":has"),c=c.length&&new RegExp(c.join("|")),wt=function(n,t){if(n===t)return st=!0,0;var i=!n.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(n.ownerDocument||n)==(t.ownerDocument||t)?n.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(n)===i?n===u||n.ownerDocument==b&&r.contains(b,n)?-1:t===u||t.ownerDocument==b&&r.contains(b,t)?1:ft?d.call(ft,n)-d.call(ft,t):0:4&i?-1:1)}),u}function vi(){}function et(n,i){var e,f,s,o,u,h,c,l=fi[n+" "];if(l)return i?0:l.slice(0);for(u=n,h=[],c=t.preFilter;u;){for(o in e&&!(f=bi.exec(u))||(f&&(u=u.slice(f[0].length)||u),h.push(s=[])),e=!1,(f=li.exec(u))&&(e=f.shift(),s.push({value:e,type:f[0].replace(gt," ")}),u=u.slice(e.length)),t.filter)(f=ct[o].exec(u))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),u=u.slice(e.length));if(!e)break}return i?u.length:u?r.error(n):fi(n,h).slice(0)}function at(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function vt(n,t,i){var r=t.dir,u=t.next,f=u||r,o=i&&"parentNode"===f,h=pi++;return t.first?function(t,i,u){while(t=t[r])if(1===t.nodeType||o)return n(t,i,u);return!1}:function(t,i,c){var l,a,v=[w,h];if(c){while(t=t[r])if((1===t.nodeType||o)&&n(t,i,c))return!0}else while(t=t[r])if(1===t.nodeType||o)if(a=t[e]||(t[e]={}),u&&s(t,u))t=t[r]||t;else{if((l=a[f])&&l[0]===w&&l[1]===h)return v[2]=l[2];if((a[f]=v)[2]=n(t,i,c))return!0}return!1}}function ni(n){return 1<n.length?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function yt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function ti(n,t,i,u,f,o){return u&&!u[e]&&(u=ti(u)),f&&!f[e]&&(f=ti(f,o)),y(function(e,o,s,h){var a,l,y,c,b=[],w=[],k=o.length,g=e||function(n,t,i){for(var u=0,f=t.length;u<f;u++)r(n,t[u],i);return i}(t||"*",s.nodeType?[s]:s,[]),p=!n||!e&&t?g:yt(g,b,n,s,h);if(i?i(p,c=f||(e?n:k||u)?[]:o,s,h):c=p,u)for(a=yt(c,w),u(a,[],s,h),l=a.length;l--;)(y=a[l])&&(c[w[l]]=!(p[w[l]]=y));if(e){if(f||n){if(f){for(a=[],l=c.length;l--;)(y=c[l])&&a.push(p[l]=y);f(null,c=[],a,h)}for(l=c.length;l--;)(y=c[l])&&-1<(a=f?d.call(e,y):b[l])&&(e[a]=!(o[a]=y))}}else c=yt(c===o?c.splice(k,c.length):c),f?f(null,o,c,h):v.apply(o,c)})}function ii(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=vt(function(n){return n===o},c,!0),a=vt(function(n){return-1<d.call(o,n)},c,!0),f=[function(n,t,i){var r=!h&&(i||t!=ot)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])f=[vt(ni(f),u)];else{if((u=t.filter[n[i].type].apply(null,n[i].matches))[e]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return ti(1<i&&ni(f),1<i&&at(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(gt,"$1"),u,i<r&&ii(n.slice(i,r)),r<s&&ii(n=n.slice(r)),r<s&&at(n))}f.push(u)}return ni(f)}function ri(n,r){var s,h,c,o,a,p,b=[],k=[],f=ei[n+" "];if(!f){for(r||(r=et(n)),s=r.length;s--;)(f=ii(r[s]))[e]?b.push(f):k.push(f);(f=ei(n,(h=k,o=0<(c=b).length,a=0<h.length,p=function(n,r,f,e,s){var y,g,k,d=0,p="0",tt=n&&[],b=[],it=ot,rt=n||a&&t.find.TAG("*",s),ut=w+=null==it?1:Math.random()||.1,ft=rt.length;for(s&&(ot=r==u||r||s);p!==ft&&null!=(y=rt[p]);p++){if(a&&y){for(g=0,r||y.ownerDocument==u||(nt(y),f=!l);k=h[g++];)if(k(y,r||u,f)){v.call(e,y);break}s&&(w=ut)}o&&((y=!k&&y)&&d--,n&&tt.push(y))}if(d+=p,o&&p!==d){for(g=0;k=c[g++];)k(tt,b,r,f);if(n){if(0<d)while(p--)tt[p]||b[p]||(b[p]=ve.call(e));b=yt(b)}v.apply(e,b);s&&!n&&0<b.length&&1<d+c.length&&i.uniqueSort(e)}return s&&(w=ut,ot=it),tt},o?y(p):p))).selector=n}return f}function yi(n,i,r,u){var o,f,e,c,a,h="function"==typeof n&&n,s=!u&&et(n=h.selector||n);if(r=r||[],1===s.length){if(2<(f=s[0]=s[0].slice(0)).length&&"ID"===(e=f[0]).type&&9===i.nodeType&&l&&t.relative[f[1].type]){if(!(i=(t.find.ID(e.matches[0].replace(k,g),i)||[])[0]))return r;h&&(i=i.parentNode);n=n.slice(f.shift().value.length)}for(o=ct.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[c=e.type])break;if((a=t.find[c])&&(u=a(e.matches[0].replace(k,g),bt.test(f[0].type)&&kt(i.parentNode)||i))){if(f.splice(o,1),!(n=u.length&&at(f)))return v.apply(r,u),r;break}}}return(h||ri(n,s))(u,i,!l,r,!i||bt.test(n)&&kt(i.parentNode)||i),r}var rt,t,ot,ft,st,u,p,l,c,pt,v=si,e=i.expando,w=0,pi=0,ui=lt(),fi=lt(),ei=lt(),ht=lt(),wt=function(n,t){return n===t&&(st=!0),0},oi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",tt="(?:\\\\[\\da-fA-F]{1,6}"+o+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",hi="\\["+o+"*("+tt+")(?:"+o+"*([*^$|!~]?=)"+o+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+o+"*\\]",ci=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+hi+")*)|.*)\\)|)",wi=new RegExp(o+"+","g"),bi=new RegExp("^"+o+"*,"+o+"*"),li=new RegExp("^"+o+"*([>+~]|"+o+")"+o+"*"),ki=new RegExp(o+"|>"),di=new RegExp(ci),gi=new RegExp("^"+tt+"$"),ct={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+hi),PSEUDO:new RegExp("^"+ci),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+o+"*(even|odd|(([+-]|)(\\d*)n|)"+o+"*(?:([+-]|)"+o+"*(\\d+)|))"+o+"*\\)|)","i"),bool:new RegExp("^(?:"+oi+")$","i"),needsContext:new RegExp("^"+o+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+o+"*((?:-\\d)?\\d*)"+o+"*\\)|)(?=[^-]|$)","i")},nr=/^(?:input|select|textarea|button)$/i,tr=/^h\d$/i,ir=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,k=new RegExp("\\\\[\\da-fA-F]{1,6}"+o+"?|\\\\([^\\r\\n\\f])","g"),g=function(n,t){var i="0x"+n.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},rr=function(){nt()},ur=vt(function(n){return!0===n.disabled&&s(n,"fieldset")},{dir:"parentNode",next:"legend"});try{v.apply(h=a.call(b.childNodes),b.childNodes);h[b.childNodes.length].nodeType}catch(rt){v={apply:function(n,t){si.apply(n,a.call(t))},call:function(n){si.apply(n,a.call(arguments,1))}}}for(rt in r.matches=function(n,t){return r(n,null,null,t)},r.matchesSelector=function(n,t){if(nt(n),l&&!ht[t+" "]&&(!c||!c.test(t)))try{var i=pt.call(n,t);if(i||f.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(n){ht(t,!0)}return 0<r(t,u,null,[n]).length},r.contains=function(n,t){return(n.ownerDocument||n)!=u&&nt(n),i.contains(n,t)},r.attr=function(n,i){(n.ownerDocument||n)!=u&&nt(n);var r=t.attrHandle[i.toLowerCase()],f=r&&dt.call(t.attrHandle,i.toLowerCase())?r(n,i,!l):void 0;return void 0!==f?f:n.getAttribute(i)},r.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);},i.uniqueSort=function(n){var r,u=[],t=0,i=0;if(st=!f.sortStable,ft=!f.sortStable&&a.call(n,0),ye.call(n,wt),st){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)pe.call(n,u[t],1)}return ft=null,n},i.fn.uniqueSort=function(){return this.pushStack(i.uniqueSort(a.apply(this)))},(t=i.expr={cacheLength:50,createPseudo:y,match:ct,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,g),n[3]=(n[3]||n[4]||n[5]||"").replace(k,g),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||r.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&r.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return ct.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&di.test(t)&&(i=et(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,g).toLowerCase();return"*"===n?function(){return!0}:function(n){return s(n,t)}},CLASS:function(n){var t=ui[n+" "];return t||(t=new RegExp("(^|"+o+")"+n+"("+o+"|$)"))&&ui(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(u){var f=r.attr(u,n);return null==f?"!="===t:!t||(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&-1<f.indexOf(i):"$="===t?i&&f.slice(-i.length)===i:"~="===t?-1<(" "+f.replace(wi," ")+" ").indexOf(i):"|="===t&&(f===i||f.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var h="nth"!==n.slice(0,3),o="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,c){var p,d,l,v,b,k=h!==o?"nextSibling":"previousSibling",y=t.parentNode,nt=f&&t.nodeName.toLowerCase(),g=!c&&!f,a=!1;if(y){if(h){while(k){for(l=t;l=l[k];)if(f?s(l,nt):1===l.nodeType)return!1;b=k="only"===n&&!b&&"nextSibling"}return!0}if(b=[o?y.firstChild:y.lastChild],o&&g){for(a=(v=(p=(d=y[e]||(y[e]={}))[n]||[])[0]===w&&p[1])&&p[2],l=v&&y.childNodes[v];l=++v&&l&&l[k]||(a=v=0)||b.pop();)if(1===l.nodeType&&++a&&l===t){d[n]=[w,v,a];break}}else if(g&&(a=v=(p=(d=t[e]||(t[e]={}))[n]||[])[0]===w&&p[1]),!1===a)while(l=++v&&l&&l[k]||(a=v=0)||b.pop())if((f?s(l,nt):1===l.nodeType)&&++a&&(g&&((d=l[e]||(l[e]={}))[n]=[w,a]),l===t))break;return(a-=u)===r||a%r==0&&0<=a/r}}},PSEUDO:function(n,i){var f,u=t.pseudos[n]||t.setFilters[n.toLowerCase()]||r.error("unsupported pseudo: "+n);return u[e]?u(i):1<u.length?(f=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?y(function(n,t){for(var e,r=u(n,i),f=r.length;f--;)n[e=d.call(n,r[f])]=!(t[e]=r[f])}):function(n){return u(n,0,f)}):u}},pseudos:{not:y(function(n){var t=[],r=[],i=ri(n.replace(gt,"$1"));return i[e]?y(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:y(function(n){return function(t){return 0<r(n,t).length}}),contains:y(function(n){return n=n.replace(k,g),function(t){return-1<(t.textContent||i.text(t)).indexOf(n)}}),lang:y(function(n){return gi.test(n||"")||r.error("unsupported lang: "+n),n=n.replace(k,g).toLowerCase(),function(t){var i;do if(i=l?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===p},focus:function(n){return n===function(){try{return u.activeElement}catch(n){}}()&&u.hasFocus()&&!!(n.type||n.href||~n.tabIndex)},enabled:ai(!1),disabled:ai(!0),checked:function(n){return s(n,"input")&&!!n.checked||s(n,"option")&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,!0===n.selected},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return tr.test(n.nodeName)},input:function(n){return nr.test(n.nodeName)},button:function(n){return s(n,"input")&&"button"===n.type||s(n,"button")},text:function(n){var t;return s(n,"input")&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:t<i?t:i;0<=--r;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=fr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=er(rt);vi.prototype=t.filters=t.pseudos;t.setFilters=new vi;f.sortStable=e.split("").sort(wt).join("")===e;nt();f.sortDetached=ut(function(n){return 1&n.compareDocumentPosition(u.createElement("fieldset"))});i.find=r;i.expr[":"]=i.expr.pseudos;i.unique=i.uniqueSort;r.compile=ri;r.select=yi;r.setDocument=nt;r.tokenize=et;r.escape=i.escapeSelector;r.getText=i.text;r.isXML=i.isXMLDoc;r.selectors=i.expr;r.support=i.support;r.uniqueSort=i.uniqueSort}();var ot=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},ru=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},uu=i.expr.match.needsContext,fu=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return 1<u?i.uniqueSort(r):r},filter:function(n){return this.pushStack(di(this,n||[],!1))},not:function(n){return this.pushStack(di(this,n||[],!0))},is:function(n){return!!di(this,"string"==typeof n&&uu.test(n)?i(n):n||[],!1).length}});ou=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(i.fn.init=function(n,t,r){var f,o;if(!n)return this;if(r=r||eu,"string"==typeof n){if(!(f="<"===n[0]&&">"===n[n.length-1]&&3<=n.length?[null,n,null]:ou.exec(n))||!f[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),fu.test(f[1])&&i.isPlainObject(t))for(f in t)e(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}return(o=u.getElementById(f[2]))&&(this[0]=o,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):e(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)}).prototype=i.fn;eu=i(u);su=/^(?:parents|prev(?:Until|All))/;hu={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e="string"!=typeof n&&i(n);if(!uu.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?-1<e.index(r):1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(1<u.length?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?d.call(i(n),this[0]):d.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return ot(n,"parentNode")},parentsUntil:function(n,t,i){return ot(n,"parentNode",i)},next:function(n){return cu(n,"nextSibling")},prev:function(n){return cu(n,"previousSibling")},nextAll:function(n){return ot(n,"nextSibling")},prevAll:function(n){return ot(n,"previousSibling")},nextUntil:function(n,t,i){return ot(n,"nextSibling",i)},prevUntil:function(n,t,i){return ot(n,"previousSibling",i)},siblings:function(n){return ru((n.parentNode||{}).firstChild,n)},children:function(n){return ru(n.firstChild)},contents:function(n){return null!=n.contentDocument&&br(n.contentDocument)?n.contentDocument:(s(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),1<this.length&&(hu[n]||i.uniqueSort(f),su.test(n)&&f.reverse()),this.pushStack(f)}});y=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){var l,h;n="string"==typeof n?(l=n,h={},i.each(l.match(y)||[],function(n,t){h[t]=!0}),h):i.extend({},n);var o,r,a,u,t=[],s=[],f=-1,v=function(){for(u=u||n.once,a=o=!0;s.length;f=-1)for(r=s.shift();++f<t.length;)!1===t[f].apply(r[0],r[1])&&n.stopOnFalse&&(f=t.length,r=!1);n.memory||(r=!1);o=!1;u&&(t=r?[]:"")},c={add:function(){return t&&(r&&!o&&(f=t.length-1,s.push(r)),function u(r){i.each(r,function(i,r){e(r)?n.unique&&c.has(r)||t.push(r):r&&r.length&&"string"!==et(r)&&u(r)})}(arguments),r&&!o&&v()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;-1<(u=i.inArray(r,t,u));)t.splice(u,1),u<=f&&f--}),this},has:function(n){return n?-1<i.inArray(n,t):0<t.length},empty:function(){return t&&(t=[]),this},disable:function(){return u=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return u=s=[],r||o||(t=r=""),this},locked:function(){return!!u},fireWith:function(n,t){return u||(t=[n,(t=t||[]).slice?t.slice():t],s.push(t),o||v()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!a}};return c};i.extend({Deferred:function(t){var u=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],o="pending",f={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return f.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(u,function(i,u){var f=e(n[u[4]])&&n[u[4]];r[u[1]](function(){var n=f&&f.apply(this,arguments);n&&e(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[u[0]+"With"](this,f?[n]:arguments)})});n=null}).promise()},then:function(t,r,f){function s(t,r,u,f){return function(){var h=this,c=arguments,a=function(){var n,i;if(!(t<o)){if((n=u.apply(h,c))===r.promise())throw new TypeError("Thenable self-resolution");i=n&&("object"==typeof n||"function"==typeof n)&&n.then;e(i)?f?i.call(n,s(o,r,st,f),s(o,r,hi,f)):(o++,i.call(n,s(o,r,st,f),s(o,r,hi,f),s(o,r,st,r.notifyWith))):(u!==st&&(h=void 0,c=[n]),(f||r.resolveWith)(h,c))}},l=f?a:function(){try{a()}catch(a){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(a,l.error);o<=t+1&&(u!==hi&&(h=void 0,c=[a]),r.rejectWith(h,c))}};t?l():(i.Deferred.getErrorHook?l.error=i.Deferred.getErrorHook():i.Deferred.getStackHook&&(l.error=i.Deferred.getStackHook()),n.setTimeout(l))}}var o=0;return i.Deferred(function(n){u[0][3].add(s(0,n,e(f)?f:st,n.notifyWith));u[1][3].add(s(0,n,e(t)?t:st));u[2][3].add(s(0,n,e(r)?r:hi))}).promise()},promise:function(n){return null!=n?i.extend(n,f):f}},r={};return i.each(u,function(n,t){var i=t[2],e=t[5];f[t[1]]=i.add;e&&i.add(function(){o=e},u[3-n][2].disable,u[3-n][3].disable,u[0][2].lock,u[0][3].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this};r[t[0]+"With"]=i.fireWith}),f.promise(r),t&&t.call(r,r),r},when:function(n){var f=arguments.length,t=f,o=Array(t),u=a.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;u[n]=1<arguments.length?a.call(arguments):t;--f||r.resolveWith(o,u)}};if(f<=1&&(lu(n,r.done(s(t)).resolve,r.reject,!f),"pending"===r.state()||e(u[t]&&u[t].then)))return r.then();while(t--)lu(u[t],s(t),r.reject);return r.promise()}});au=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&au.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};ci=i.Deferred();i.fn.ready=function(n){return ci.then(n)["catch"](function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(!0===n?--i.readyWait:i.isReady)||(i.isReady=!0)!==n&&0<--i.readyWait||ci.resolveWith(u,[i])}});i.ready.then=ci.then;"complete"===u.readyState||"loading"!==u.readyState&&!u.documentElement.doScroll?n.setTimeout(i.ready):(u.addEventListener("DOMContentLoaded",li),n.addEventListener("load",li));var g=function(n,t,r,u,f,o,s){var h=0,l=n.length,c=null==r;if("object"===et(r))for(h in f=!0,r)g(n,t,h,r[h],!0,o,s);else if(void 0!==u&&(f=!0,e(u)||(s=!0),c&&(s?(t.call(n,u),t=null):(c=t,t=function(n,t,r){return c.call(i(n),r)})),t))for(;h<l;h++)t(n[h],r,s?u:u.call(n[h],h,t(n[h],r)));return f?n:c?t.call(n):l?t(n[0],r):o},be=/^-ms-/,ke=/-([a-z])/g;ht=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};ni.uid=1;ni.prototype={cache:function(n){var t=n[this.expando];return t||(t={},ht(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if("string"==typeof t)u[k(t)]=i;else for(r in t)u[k(r)]=t[r];return u},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][k(t)]},access:function(n,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(n,t):(this.set(n,t,i),void 0!==i?i:t)},remove:function(n,t){var u,r=n[this.expando];if(void 0!==r){if(void 0!==t)for(u=(t=Array.isArray(t)?t.map(k):(t=k(t))in r?[t]:t.match(y)||[]).length;u--;)delete r[t[u]];(void 0===t||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return void 0!==t&&!i.isEmptyObject(t)}};var r=new ni,c=new ni,ge=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,no=/[A-Z]/g;i.extend({hasData:function(n){return c.hasData(n)||r.hasData(n)},data:function(n,t,i){return c.access(n,t,i)},removeData:function(n,t){c.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var f,u,e,i=this[0],o=i&&i.attributes;if(void 0===n){if(this.length&&(e=c.get(i),1===i.nodeType&&!r.get(i,"hasDataAttrs"))){for(f=o.length;f--;)o[f]&&0===(u=o[f].name).indexOf("data-")&&(u=k(u.slice(5)),vu(i,u,e[u]));r.set(i,"hasDataAttrs",!0)}return e}return"object"==typeof n?this.each(function(){c.set(this,n)}):g(this,function(t){var r;if(i&&void 0===t)return void 0!==(r=c.get(i,n))?r:void 0!==(r=vu(i,n))?r:void 0;this.each(function(){c.set(this,n,t)})},null,t,1<arguments.length,null,!0)},removeData:function(n){return this.each(function(){c.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t);"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,function(){i.dequeue(n,t)},f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)(u=r.get(f[s],n+"queueHooks"))&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var yu=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ti=new RegExp("^(?:([+-])=|)("+yu+")([a-z%]*)$","i"),nt=["Top","Right","Bottom","Left"],tt=u.documentElement,ct=function(n){return i.contains(n.ownerDocument,n)},to={composed:!0};tt.getRootNode&&(ct=function(n){return i.contains(n.ownerDocument,n)||n.getRootNode(to)===n.ownerDocument});ii=function(n,t){return"none"===(n=t||n).style.display||""===n.style.display&&ct(n)&&"none"===i.css(n,"display")};gi={};i.fn.extend({show:function(){return lt(this,!0)},hide:function(){return lt(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){ii(this)?i(this).show():i(this).hide()})}});var it,ai,ri=/^(?:checkbox|radio)$/i,wu=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,bu=/^$|^module$|\/(?:java|ecma)script/i;it=u.createDocumentFragment().appendChild(u.createElement("div"));(ai=u.createElement("input")).setAttribute("type","radio");ai.setAttribute("checked","checked");ai.setAttribute("name","t");it.appendChild(ai);f.checkClone=it.cloneNode(!0).cloneNode(!0).lastChild.checked;it.innerHTML="<textarea>x<\/textarea>";f.noCloneChecked=!!it.cloneNode(!0).lastChild.defaultValue;it.innerHTML="<option><\/option>";f.option=!!it.lastChild;v={thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};v.tbody=v.tfoot=v.colgroup=v.caption=v.thead;v.th=v.td;f.option||(v.optgroup=v.option=[1,"<select multiple='multiple'>","<\/select>"]);ku=/<|&#?\w+;/;tr=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var p,l,k,a,w,h,s,c,o,b,d,v=r.get(n);if(ht(n))for(u.handler&&(u=(p=u).handler,e=p.selector),e&&i.find.matchesSelector(tt,e),u.guid||(u.guid=i.guid++),(a=v.events)||(a=v.events=Object.create(null)),(l=v.handle)||(l=v.handle=function(t){if("undefined"!=typeof i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),w=(t=(t||"").match(y)||[""]).length;w--;)o=d=(k=tr.exec(t[w])||[])[1],b=(k[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:b.join(".")},p),(c=a[o])||((c=a[o]=[]).delegateCount=0,s.setup&&!1!==s.setup.call(n,f,b,l)||n.addEventListener&&n.addEventListener(o,l)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,h):c.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var v,k,c,a,p,s,h,l,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(a=w.events)){for(p=(t=(t||"").match(y)||[""]).length;p--;)if(o=d=(c=tr.exec(t[p])||[])[1],b=(c[2]||"").split(".").sort(),o){for(h=i.event.special[o]||{},l=a[o=(f?h.delegateType:h.bindType)||o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=v=l.length;v--;)s=l[v],!e&&d!==s.origType||u&&u.guid!==s.guid||c&&!c.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(l.splice(v,1),s.selector&&l.delegateCount--,h.remove&&h.remove.call(n,s));k&&!l.length&&(h.teardown&&!1!==h.teardown.call(n,b,w.handle)||i.removeEvent(n,o,w.handle),delete a[o])}else for(o in a)i.event.remove(n,o+t[p],u,f,!0);i.isEmptyObject(a)&&r.remove(n,"handle events")}},dispatch:function(n){var u,h,c,e,f,l,s=new Array(arguments.length),t=i.event.fix(n),a=(r.get(this,"events")||Object.create(null))[t.type]||[],o=i.event.special[t.type]||{};for(s[0]=t,u=1;u<arguments.length;u++)s[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||!1!==o.preDispatch.call(this,t)){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,h=0;(f=e.handlers[h++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!1!==f.namespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,void 0!==(c=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,s))&&!1===(t.result=c)&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,h,u,e,o,c=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&!("click"===n.type&&1<=n.button))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||!0!==r.disabled)){for(e=[],o={},f=0;f<s;f++)void 0===o[u=(h=t[f]).selector+" "]&&(o[u]=h.needsContext?-1<i(u,this).index(r):i.find(u,this,null,[r]).length),o[u]&&e.push(h);e.length&&c.push({elem:r,handlers:e})}return r=this,s<t.length&&c.push({elem:r,handlers:t.slice(s)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:e(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},click:{setup:function(n){var t=this||n;return ri.test(t.type)&&t.click&&s(t,"input")&&vi(t,"click",!0),!1},trigger:function(n){var t=this||n;return ri.test(t.type)&&t.click&&s(t,"input")&&vi(t,"click"),!0},_default:function(n){var t=n.target;return ri.test(t.type)&&t.click&&s(t,"input")&&r.get(t,"click")||s(t,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&!1===n.returnValue?at:vt,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||Date.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:vt,isPropagationStopped:vt,isImmediatePropagationStopped:vt,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=at;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=at;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=at;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},i.event.addProp);i.each({focus:"focusin",blur:"focusout"},function(n,t){function f(n){if(u.documentMode){var e=r.get(this,"handle"),f=i.event.fix(n);f.type="focusin"===n.type?"focus":"blur";f.isSimulated=!0;e(n);f.target===f.currentTarget&&e(f)}else i.event.simulate(t,n.target,i.event.fix(n))}i.event.special[n]={setup:function(){var i;if(vi(this,n,!0),!u.documentMode)return!1;(i=r.get(this,t))||this.addEventListener(t,f);r.set(this,t,(i||0)+1)},trigger:function(){return vi(this,n),!0},teardown:function(){var n;if(!u.documentMode)return!1;(n=r.get(this,t)-1)?r.set(this,t,n):(this.removeEventListener(t,f),r.remove(this,t))},_default:function(t){return r.get(t.target,n)},delegateType:t};i.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,e=u.documentMode?this:i,o=r.get(e,t);o||(u.documentMode?this.addEventListener(t,f):i.addEventListener(n,f,!0));r.set(e,t,(o||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,i=u.documentMode?this:e,o=r.get(i,t)-1;o?r.set(i,t,o):(u.documentMode?this.removeEventListener(t,f):e.removeEventListener(n,f,!0),r.remove(i,t))}}});i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,r=n.relatedTarget,f=n.handleObj;return r&&(r===this||i.contains(this,r))||(n.type=f.origType,u=f.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return ir(this,n,t,i,r)},one:function(n,t,i,r){return ir(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=vt),this.each(function(){i.event.remove(this,n,r,t)})}});var io=/<script|<style|<link/i,ro=/checked\s*(?:[^=]|=\s*.checked.)/i,uo=/^\s*<!\[CDATA\[|\]\]>\s*$/g;i.extend({htmlPrefilter:function(n){return n},clone:function(n,t,r){var u,h,o,e,c,a,v,s=n.cloneNode(!0),y=ct(n);if(!(f.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=l(s),u=0,h=(o=l(n)).length;u<h;u++)c=o[u],a=e[u],void 0,"input"===(v=a.nodeName.toLowerCase())&&ri.test(c.type)?a.checked=c.checked:"input"!==v&&"textarea"!==v||(a.defaultValue=c.defaultValue);if(t)if(r)for(o=o||l(n),e=e||l(s),u=0,h=o.length;u<h;u++)nf(o[u],e[u]);else nf(n,s);return 0<(e=l(s,"script")).length&&nr(e,!y&&l(n,"script")),s},cleanData:function(n){for(var u,t,f,o=i.event.special,e=0;void 0!==(t=n[e]);e++)if(ht(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)o[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=void 0}t[c.expando]&&(t[c.expando]=void 0)}}});i.fn.extend({detach:function(n){return tf(this,n,!0)},remove:function(n){return tf(this,n)},text:function(n){return g(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return yt(this,arguments,function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||gu(this,n).appendChild(n)})},prepend:function(){return yt(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=gu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return yt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return yt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(l(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return g(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!io.test(n)&&!v[(wu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)1===(t=this[r]||{}).nodeType&&(i.cleanData(l(t,!1)),t.innerHTML=n);t=0}catch(n){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return yt(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(l(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ei.apply(f,u.get());return this.pushStack(f)}});var rr=new RegExp("^("+yu+")(?!px)[a-z%]+$","i"),ur=/^--/,yi=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},rf=function(n,t,i){var u,r,f={};for(r in t)f[r]=n.style[r],n.style[r]=t[r];for(r in u=i.call(n),t)n.style[r]=f[r];return u},oo=new RegExp(nt.join("|"),"i");!function(){function r(){if(t){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";tt.appendChild(s).appendChild(t);var i=n.getComputedStyle(t);h="1%"!==i.top;v=12===e(i.marginLeft);t.style.right="60%";a=36===e(i.right);c=36===e(i.width);t.style.position="absolute";l=12===e(t.offsetWidth/3);tt.removeChild(s);t=null}}function e(n){return Math.round(parseFloat(n))}var h,c,l,a,o,v,s=u.createElement("div"),t=u.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===t.style.backgroundClip,i.extend(f,{boxSizingReliable:function(){return r(),c},pixelBoxStyles:function(){return r(),a},pixelPosition:function(){return r(),h},reliableMarginLeft:function(){return r(),v},scrollboxSize:function(){return r(),l},reliableTrDimensions:function(){var i,t,r,f;return null==o&&(i=u.createElement("table"),t=u.createElement("tr"),r=u.createElement("div"),i.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",r.style.height="9px",r.style.display="block",tt.appendChild(i).appendChild(t).appendChild(r),f=n.getComputedStyle(t),o=parseInt(f.height,10)+parseInt(f.borderTopWidth,10)+parseInt(f.borderBottomWidth,10)===t.offsetHeight,tt.removeChild(i)),o}}))}();var ff=["Webkit","Moz","ms"],ef=u.createElement("div").style,of={};var so=/^(none|table(?!-c[ea]).+)/,ho={position:"absolute",visibility:"hidden",display:"block"},sf={letterSpacing:"0",fontWeight:"400"};i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=ui(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var e,h,o,c=k(t),l=ur.test(t),s=n.style;if(l||(t=fr(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r)return o&&"get"in o&&void 0!==(e=o.get(n,!1,u))?e:s[t];"string"==(h=typeof r)&&(e=ti.exec(r))&&e[1]&&(r=pu(n,t,e),h="number");null!=r&&r==r&&("number"!==h||l||(r+=e&&e[3]||(i.cssNumber[c]?"":"px")),f.clearCloneStyle||""!==r||0!==t.indexOf("background")||(s[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?s.setProperty(t,r):s[t]=r))}},css:function(n,t,r,u){var f,e,o,s=k(t);return ur.test(t)||(t=fr(s)),(o=i.cssHooks[t]||i.cssHooks[s])&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=ui(n,t,u)),"normal"===f&&t in sf&&(f=sf[t]),""===r||r?(e=parseFloat(f),!0===r||isFinite(e)?e||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!so.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?cf(n,t,u):rf(n,ho,function(){return cf(n,t,u)})},set:function(n,r,u){var s,e=yi(n),h=!f.scrollboxSize()&&"absolute"===e.position,c=(h||u)&&"border-box"===i.css(n,"boxSizing",!1,e),o=u?er(n,t,u,c,e):0;return c&&h&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(e[t])-er(n,t,"border",!1,e)-.5)),o&&(s=ti.exec(r))&&"px"!==(s[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),hf(0,r,o)}}});i.cssHooks.marginLeft=uf(f.reliableMarginLeft,function(n,t){if(t)return(parseFloat(ui(n,"marginLeft"))||n.getBoundingClientRect().left-rf(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];r<4;r++)f[n+nt[r]+t]=u[r]||u[r-2]||u[0];return f}};"margin"!==n&&(i.cssHooks[n+t].set=hf)});i.fn.extend({css:function(n,t){return g(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=yi(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,1<arguments.length)}});((i.Tween=p).prototype={constructor:p,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=p.propHooks[this.prop];return n&&n.get?n.get(this):p.propHooks._default.get(this)},run:function(n){var t,r=p.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):p.propHooks._default.set(this),this}}).init.prototype=p.prototype;(p.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""))&&"auto"!==t?t:0},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||!i.cssHooks[n.prop]&&null==n.elem.style[fr(n.prop)]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}}).scrollTop=p.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=p.prototype.init;i.fx.step={};af=/^(?:toggle|show|hide)$/;vf=/queueHooks$/;i.Animation=i.extend(w,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return pu(i.elem,n,ti.exec(t),i),i}]},tweener:function(n,t){e(n)?(t=n,n=["*"]):n=n.match(y);for(var i,r=0,u=n.length;r<u;r++)i=n[r],w.tweeners[i]=w.tweeners[i]||[],w.tweeners[i].unshift(t)},prefilters:[function(n,t,u){var f,y,w,c,b,h,o,l,k="width"in t||"height"in t,v=this,p={},s=n.style,a=n.nodeType&&ii(n),e=r.get(n,"fxshow");for(f in u.queue||(null==(c=i._queueHooks(n,"fx")).unqueued&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})})),t)if(y=t[f],af.test(y)){if(delete t[f],w=w||"toggle"===y,y===(a?"hide":"show")){if("show"!==y||!e||void 0===e[f])continue;a=!0}p[f]=e&&e[f]||i.style(n,f)}if((h=!i.isEmptyObject(t))||!i.isEmptyObject(p))for(f in k&&1===n.nodeType&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],null==(o=e&&e.display)&&(o=r.get(n,"display")),"none"===(l=i.css(n,"display"))&&(o?l=o:(lt([n],!0),o=n.style.display||o,l=i.css(n,"display"),lt([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(h||(v.done(function(){s.display=o}),null==o&&(l=s.display,o="none"===l?"":l)),s.display="inline-block")),u.overflow&&(s.overflow="hidden",v.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]})),h=!1,p)h||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&lt([n],!0),v.done(function(){for(f in a||lt([n]),r.remove(n,"fxshow"),p)i.style(n,f,p[f])})),h=pf(a?e[f]:0,f,v),f in e||(e[f]=h.start,a&&(h.end=h.start,h.start=0))}],prefilter:function(n,t){t?w.prefilters.unshift(n):w.prefilters.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||e(n)&&n,duration:n,easing:r&&t||t&&!e(t)&&t};return i.fx.off?u.duration=0:"number"!=typeof u.duration&&(u.duration=u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default),null!=u.queue&&!0!==u.queue||(u.queue="fx"),u.old=u.complete,u.complete=function(){e(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ii).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=w(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||!1===o.queue?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&vf.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));!s&&u||i.dequeue(this,n)})},finish:function(n){return!1!==n&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(wi(t,!0),n,i,u)}});i.each({slideDown:wi("show"),slideUp:wi("hide"),slideToggle:wi("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(pt=Date.now();n<t.length;n++)(r=t[n])()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();pt=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){pi||(pi=!0,or())};i.fx.stop=function(){pi=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx&&i.fx.speeds[t]||t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})};wt=u.createElement("input");lf=u.createElement("select").appendChild(u.createElement("option"));wt.type="checkbox";f.checkOn=""!==wt.value;f.optSelected=lf.selected;(wt=u.createElement("input")).value="t";wt.type="radio";f.radioValue="t"===wt.value;bt=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return g(this,i.attr,n,t,1<arguments.length)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(u=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?wf:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):u&&"get"in u&&null!==(f=u.get(n,t))?f:null==(f=i.find.attr(n,t))?void 0:f)},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&"radio"===t&&s(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(y);if(r&&1===n.nodeType)while(i=r[u++])n.removeAttribute(i)}});wf={set:function(n,t,r){return!1===t?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=bt[t]||i.find.attr;bt[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=bt[u],bt[u]=f,f=null!=r(n,t,i)?u:null,bt[u]=e),f}});bf=/^(?:input|select|textarea|button)$/i;kf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return g(this,i.prop,n,t,1<arguments.length)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):bf.test(n.nodeName)||kf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var u,t,f,o,r,s;return e(n)?this.each(function(t){i(this).addClass(n.call(this,t,ut(this)))}):(u=sr(n)).length?this.each(function(){if(f=ut(this),t=1===this.nodeType&&" "+rt(f)+" "){for(r=0;r<u.length;r++)o=u[r],t.indexOf(" "+o+" ")<0&&(t+=o+" ");s=rt(t);f!==s&&this.setAttribute("class",s)}}):this},removeClass:function(n){var u,t,f,o,r,s;return e(n)?this.each(function(t){i(this).removeClass(n.call(this,t,ut(this)))}):arguments.length?(u=sr(n)).length?this.each(function(){if(f=ut(this),t=1===this.nodeType&&" "+rt(f)+" "){for(r=0;r<u.length;r++)for(o=u[r];-1<t.indexOf(" "+o+" ");)t=t.replace(" "+o+" "," ");s=rt(t);f!==s&&this.setAttribute("class",s)}}):this:this.attr("class","")},toggleClass:function(n,t){var s,u,f,o,h=typeof n,c="string"===h||Array.isArray(n);return e(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,ut(this),t),t)}):"boolean"==typeof t&&c?t?this.addClass(n):this.removeClass(n):(s=sr(n),this.each(function(){if(c)for(o=i(this),f=0;f<s.length;f++)u=s[f],o.hasClass(u)?o.removeClass(u):o.addClass(u);else void 0!==n&&"boolean"!==h||((u=ut(this))&&r.set(this,"__className__",u),this.setAttribute&&this.setAttribute("class",u||!1===n?"":r.get(this,"__className__")||""))}))},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&-1<(" "+rt(ut(t))+" ").indexOf(i))return!0;return!1}});df=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=e(n),this.each(function(r){var u;1===this.nodeType&&(null==(u=f?n.call(this,r,i(this).val()):n)?u="":"number"==typeof u?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),(t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:"string"==typeof(r=u.value)?r.replace(df,""):null==r?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:rt(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f="select-one"===n.type,h=f?null:[],c=f?u+1:o.length,r=u<0?c:f?u:0;r<c;r++)if(((t=o[r]).selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!s(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;h.push(e)}return h},set:function(n,t){for(var r,u,f=n.options,e=i.makeArray(t),o=f.length;o--;)((u=f[o]).selected=-1<i.inArray(i.valHooks.option.get(u),e))&&(r=!0);return r||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=-1<i.inArray(i(n).val(),t)}};f.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var fi=n.location,gf={guid:Date.now()},hr=/\?/;i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return u=r&&r.getElementsByTagName("parsererror")[0],r&&!u||i.error("Invalid XML: "+(u?i.map(u.childNodes,function(n){return n.textContent}).join("\n"):t)),r};cr=/^(?:focusinfocus|focusoutblur)$/;lr=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,f,o,s){var k,c,l,d,v,y,a,p,w=[o||u],h=dt.call(t,"type")?t.type:t,b=dt.call(t,"namespace")?t.namespace.split("."):[];if(c=p=l=o=o||u,3!==o.nodeType&&8!==o.nodeType&&!cr.test(h+i.event.triggered)&&(-1<h.indexOf(".")&&(h=(b=h.split(".")).shift(),b.sort()),v=h.indexOf(":")<0&&"on"+h,(t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),f=null==f?[t]:i.makeArray(f,[t]),a=i.event.special[h]||{},s||!a.trigger||!1!==a.trigger.apply(o,f))){if(!s&&!a.noBubble&&!ft(o)){for(d=a.delegateType||h,cr.test(d+h)||(c=c.parentNode);c;c=c.parentNode)w.push(c),l=c;l===(o.ownerDocument||u)&&w.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=w[k++])&&!t.isPropagationStopped();)p=c,t.type=1<k?d:a.bindType||h,(y=(r.get(c,"events")||Object.create(null))[t.type]&&r.get(c,"handle"))&&y.apply(c,f),(y=v&&c[v])&&y.apply&&ht(c)&&(t.result=y.apply(c,f),!1===t.result&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(w.pop(),f)||!ht(o)||v&&e(o[h])&&!ft(o)&&((l=o[v])&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,lr),o[h](),t.isPropagationStopped()&&p.removeEventListener(h,lr),i.event.triggered=void 0,l&&(o[v]=l)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});var co=/\[\]$/,ne=/\r?\n/g,lo=/^(?:submit|button|image|reset|file)$/i,ao=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){var i=e(t)?t():t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==i?"":i)};if(null==n)return"";if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)ar(r,n[r],t,f);return u.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&ao.test(this.nodeName)&&!lo.test(n)&&(this.checked||!ri.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(ne,"\r\n")}}):{name:t.name,value:r.replace(ne,"\r\n")}}).get()}});var vo=/%20/g,yo=/#.*$/,po=/([?&])_=[^&]*/,wo=/^(.*?):[ \t]*([^\r\n]*)$/gm,bo=/^(?:GET|HEAD)$/,ko=/^\/\//,te={},vr={},ie="*/".concat("*"),yr=u.createElement("a");return yr.href=fi.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fi.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(fi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ie,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?pr(pr(n,i.ajaxSettings),t):pr(i.ajaxSettings,n)},ajaxPrefilter:re(te),ajaxTransport:re(vr),ajax:function(t,r){function b(t,r,u,c){var y,rt,b,p,g,a=r;s||(s=!0,d&&n.clearTimeout(d),l=void 0,k=c||"",e.readyState=0<t?4:0,y=200<=t&&t<300||304===t,u&&(p=function(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}(f,e,u)),!y&&-1<i.inArray("script",f.dataTypes)&&i.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),p=function(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(!(f=o[e+" "+u]||o["* "+u]))for(h in o)if((s=h.split(" "))[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){!0===f?f=o[h]:!0!==o[h]&&(u=s[0],c.unshift(s[1]));break}if(!0!==f)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(n){return{state:"parsererror",error:f?n:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}(f,p,e,y),y?(f.ifModified&&((g=e.getResponseHeader("Last-Modified"))&&(i.lastModified[o]=g),(g=e.getResponseHeader("etag"))&&(i.etag[o]=g)),204===t||"HEAD"===f.type?a="nocontent":304===t?a="notmodified":(a=p.state,rt=p.data,y=!(b=p.error))):(b=a,!t&&a||(a="error",t<0&&(t=0))),e.status=t,e.statusText=(r||a)+"",y?tt.resolveWith(h,[rt,a,e]):tt.rejectWith(h,[e,a,b]),e.statusCode(w),w=void 0,v&&nt.trigger(y?"ajaxSuccess":"ajaxError",[e,f,y?rt:b]),it.fireWith(h,[e,a]),v&&(nt.trigger("ajaxComplete",[e,f]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var l,o,k,a,d,c,s,v,g,p,f=i.ajaxSetup({},r),h=f.context||f,nt=f.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=f.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!a)for(a={};t=wo.exec(k);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[n.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return null==s&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return null==s&&(f.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return l&&l.abort(t),b(0,t),this}};if(tt.promise(e),f.url=((t||f.url||fi.href)+"").replace(ko,fi.protocol+"//"),f.type=r.method||r.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(y)||[""],null==f.crossDomain){c=u.createElement("a");try{c.href=f.url;c.href=c.href;f.crossDomain=yr.protocol+"//"+yr.host!=c.protocol+"//"+c.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=i.param(f.data,f.traditional)),ue(te,f,r,e),s)return e;for(g in(v=i.event&&f.global)&&0==i.active++&&i.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!bo.test(f.type),o=f.url.replace(yo,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(vo,"+")):(p=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(hr.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(po,"$1"),p=(hr.test(o)?"&":"?")+"_="+gf.guid+++p),f.url=o+p),f.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||r.contentType)&&e.setRequestHeader("Content-Type",f.contentType),e.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+ie+"; q=0.01":""):f.accepts["*"]),f.headers)e.setRequestHeader(g,f.headers[g]);if(f.beforeSend&&(!1===f.beforeSend.call(h,e,f)||s))return e.abort();if(ft="abort",it.add(f.complete),e.done(f.success),e.fail(f.error),l=ue(vr,f,r,e)){if(e.readyState=1,v&&nt.trigger("ajaxSend",[e,f]),s)return e;f.async&&0<f.timeout&&(d=n.setTimeout(function(){e.abort("timeout")},f.timeout));try{s=!1;l.send(rt,b)}catch(t){if(s)throw t;b(-1,t)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return e(r)&&(f=f||u,u=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}}),i.ajaxPrefilter(function(n){var t;for(t in n.headers)"content-type"===t.toLowerCase()&&(n.contentType=n.headers[t]||"")}),i._evalUrl=function(n,t,r){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(n){i.globalEval(n,t,r)}})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(e(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return e(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=e(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},fe={0:200,1223:204},kt=i.ajaxSettings.xhr(),f.cors=!!kt&&"withCredentials"in kt,f.ajax=kt=!!kt,i.ajaxTransport(function(t){var i,r;if(f.cors||kt&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];for(o in t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType),t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest"),u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.ontimeout=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(fe[e.status]||e.status,e.statusText,"text"!==(e.responseType||"text")||"string"!=typeof e.responseText?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=e.ontimeout=i("error");void 0!==e.onabort?e.onabort=r:e.onreadystatechange=function(){4===e.readyState&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(u){if(i)throw u;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){var r,t;if(n.crossDomain||n.scriptAttrs)return{send:function(f,e){r=i("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});u.head.appendChild(r[0])},abort:function(){t&&t()}}}),wr=[],bi=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=wr.pop()||i.expando+"_"+gf.guid++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,o,s,h=!1!==t.jsonp&&(bi.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&bi.test(t.data)&&"data");if(h||"jsonp"===t.dataTypes[0])return f=t.jsonpCallback=e(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(bi,"$1"+f):!1!==t.jsonp&&(t.url+=(hr.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return s||i.error(f+" was not called"),s[0]},t.dataTypes[0]="json",o=n[f],n[f]=function(){s=arguments},u.always(function(){void 0===o?i(n).removeProp(f):n[f]=o;t[f]&&(t.jsonpCallback=r.jsonpCallback,wr.push(f));s&&e(o)&&o(s[0]);s=o=void 0}),"script"}),f.createHTMLDocument=((ee=u.implementation.createHTMLDocument("").body).innerHTML="<form><\/form><form><\/form>",2===ee.childNodes.length),i.parseHTML=function(n,t,r){return"string"!=typeof n?[]:("boolean"==typeof t&&(r=t,t=!1),t||(f.createHTMLDocument?((s=(t=u.implementation.createHTMLDocument("")).createElement("base")).href=u.location.href,t.head.appendChild(s)):t=u),e=!r&&[],(o=fu.exec(n))?[t.createElement(o[1])]:(o=du([n],t,e),e&&e.length&&i(e).remove(),i.merge([],o.childNodes)));var s,o,e},i.fn.load=function(n,t,r){var u,s,h,f=this,o=n.indexOf(" ");return-1<o&&(u=rt(n.slice(o)),n=n.slice(0,o)),e(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),0<f.length&&i.ajax({url:n,type:s||"GET",dataType:"html",data:t}).done(function(n){h=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).always(r&&function(n,t){f.each(function(){r.apply(this,h||[n.responseText,t,n])})}),this},i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var v,o,s,h,u,c,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");("absolute"===l||"fixed"===l)&&-1<(s+c).indexOf("auto")?(h=(v=a.position()).top,o=v.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);e(t)&&(t=t.call(n,r,i.extend({},u)));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,t=this[0];if(t)return t.getClientRects().length?(r=t.getBoundingClientRect(),u=t.ownerDocument.defaultView,{top:r.top+u.pageYOffset,left:r.left+u.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,r,u,t=this[0],f={top:0,left:0};if("fixed"===i.css(t,"position"))r=t.getBoundingClientRect();else{for(r=this.offset(),u=t.ownerDocument,n=t.offsetParent||u.documentElement;n&&(n===u.body||n===u.documentElement)&&"static"===i.css(n,"position");)n=n.parentNode;n&&n!==t&&1===n.nodeType&&((f=i(n).offset()).top+=i.css(n,"borderTopWidth",!0),f.left+=i.css(n,"borderLeftWidth",!0))}return{top:r.top-f.top-i.css(t,"marginTop",!0),left:r.left-f.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||tt})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return g(this,function(n,i,u){var f;if(ft(n)?f=n:9===n.nodeType&&(f=n.defaultView),void 0===u)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=uf(f.pixelPosition,function(n,r){if(r)return r=ui(n,t),rr.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||"boolean"!=typeof f),s=r||(!0===f||!0===e?"margin":"border");return g(this,function(t,r,f){var e;return ft(t)?0===u.indexOf("outer")?t["inner"+n]:t.document.documentElement["client"+n]:9===t.nodeType?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):void 0===f?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:void 0,o)}})}),i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)},hover:function(n,t){return this.on("mouseenter",n).on("mouseleave",t||n)}}),i.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return 0<arguments.length?this.on(t,null,n,i):this.trigger(t)}}),oe=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g,i.proxy=function(n,t){var r,u,f;if("string"==typeof t&&(r=n[t],t=n,n=r),e(n))return u=a.call(arguments,2),(f=function(){return n.apply(t||this,u.concat(a.call(arguments)))}).guid=n.guid=n.guid||i.guid++,f},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=s,i.isFunction=e,i.isWindow=ft,i.camelCase=k,i.type=et,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},i.trim=function(n){return null==n?"":(n+"").replace(oe,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),se=n.jQuery,he=n.$,i.noConflict=function(t){return n.$===i&&(n.$=he),t&&n.jQuery===i&&(n.jQuery=se),i},"undefined"==typeof t&&(n.jQuery=n.$=i),i});!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){"use strict";function vt(n,t,i){return[parseFloat(n[0])*(it.test(n[0])?t/100:1),parseFloat(n[1])*(it.test(n[1])?i/100:1)]}function a(t,i){return parseInt(n.css(t,i),10)||0}function yt(n){return null!=n&&n===n.window}function c(n){return null==n?n+"":"object"==typeof n?rt[gi.call(n)]||"object":typeof n}function v(n,t,i){var r=wt[t.type]||{};return null==n?i||!t.def?null:t.def:(n=r.floor?~~n:parseFloat(n),isNaN(n)?t.def:r.mod?(n+r.mod)%r.mod:Math.min(r.max,Math.max(0,n)))}function kt(n){var u=i(),e=u._rgba=[];return n=n.toLowerCase(),r(tr,function(t,i){var r=i.re.exec(n),r=r&&i.parse(r),i=i.space||"rgba";if(r)return r=u[i](r),u[f[i].cache]=r[f[i].cache],e=u._rgba=r._rgba,!1}),e.length?("0,0,0,0"===e.join()&&t.extend(e,ft.transparent),u):ft[n]}function ut(n,t,i){return 6*(i=(i+1)%1)<1?n+(t-n)*i*6:2*i<1?t:3*i<2?n+(t-n)*(2/3-i)*6:n}function oi(n){var i,r,t=n.ownerDocument.defaultView?n.ownerDocument.defaultView.getComputedStyle(n,null):n.currentStyle,u={};if(t&&t.length&&t[0]&&t[t[0]])for(r=t.length;r--;)"string"==typeof t[i=t[r]]&&(u[i.replace(/-([\da-z])/gi,function(n,t){return t.toUpperCase()})]=t[i]);else for(i in t)"string"==typeof t[i]&&(u[i]=t[i]);return u}function w(t,i,r,u){return t={effect:t=n.isPlainObject(t)?(i=t).effect:t},"function"==typeof(i=null==i?{}:i)&&(u=i,r=null,i={}),"number"!=typeof i&&!n.fx.speeds[i]||(u=r,r=i,i={}),"function"==typeof r&&(u=r,r=null),i&&n.extend(t,i),r=r||i.duration,t.duration=n.fx.off?0:"number"==typeof r?r:r in n.fx.speeds?n.fx.speeds[r]:n.fx.speeds._default,t.complete=u||i.complete,t}function st(t){return!t||"number"==typeof t||n.fx.speeds[t]||"string"==typeof t&&!n.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function si(n,t){var i=t.outerWidth(),t=t.outerHeight(),n=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(n)||["",0,i,t,0];return{top:parseFloat(n[1])||0,right:"auto"===n[2]?i:parseFloat(n[2]),bottom:"auto"===n[3]?t:parseFloat(n[3]),left:parseFloat(n[4])||0}}function yi(){this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._datepickerShowing=!1;this._inDialog=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};n.extend(this._defaults,this.regional[""]);this.regional.en=n.extend(!0,{},this.regional[""]);this.regional["en-US"]=n.extend(!0,{},this.regional.en);this.dpDiv=pi(n("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>"))}function pi(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,function(){n(this).removeClass("ui-state-hover");-1!==this.className.indexOf("ui-datepicker-prev")&&n(this).removeClass("ui-datepicker-prev-hover");-1!==this.className.indexOf("ui-datepicker-next")&&n(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,wi)}function wi(){n.datepicker._isDisabledDatepicker((e.inline?e.dpDiv.parent():e.input)[0])||(n(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),n(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&n(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&n(this).addClass("ui-datepicker-next-hover"))}function b(t,i){for(var r in n.extend(t,i),i)null==i[r]&&(t[r]=i[r]);return t}function bi(n,t,i){return t<=n&&n<t+i}function o(n){return function(){var t=this.element.val();n.apply(this,arguments);this._refresh();t!==this.element.val()&&this._trigger("change")}}var k,s,u,d,g,nt,tt,it,at,hi,ci,li,ai,vi,e,l,ht;n.ui=n.ui||{};n.ui.version="1.13.2";var ct,ki=0,di=Array.prototype.hasOwnProperty,lt=Array.prototype.slice;n.cleanData=(ct=n.cleanData,function(t){for(var r,i,u=0;null!=(i=t[u]);u++)(r=n._data(i,"events"))&&r.remove&&n(i).triggerHandler("remove");ct(t)});n.widget=function(t,i,r){var f,u,o,h={},e=t.split(".")[0],s=e+"-"+(t=t.split(".")[1]);return r||(r=i,i=n.Widget),Array.isArray(r)&&(r=n.extend.apply(null,[{}].concat(r))),n.expr.pseudos[s.toLowerCase()]=function(t){return!!n.data(t,s)},n[e]=n[e]||{},f=n[e][t],u=n[e][t]=function(n,t){if(!this||!this._createWidget)return new u(n,t);arguments.length&&this._createWidget(n,t)},n.extend(u,f,{version:r.version,_proto:n.extend({},r),_childConstructors:[]}),(o=new i).options=n.widget.extend({},o.options),n.each(r,function(n,t){function r(){return i.prototype[n].apply(this,arguments)}function u(t){return i.prototype[n].apply(this,t)}h[n]="function"==typeof t?function(){var n,i=this._super,f=this._superApply;return this._super=r,this._superApply=u,n=t.apply(this,arguments),this._super=i,this._superApply=f,n}:t}),u.prototype=n.widget.extend(o,{widgetEventPrefix:f&&o.widgetEventPrefix||t},h,{constructor:u,namespace:e,widgetName:t,widgetFullName:s}),f?(n.each(f._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,u,i._proto)}),delete f._childConstructors):i._childConstructors.push(u),n.widget.bridge(t,u),u};n.widget.extend=function(t){for(var i,r,f=lt.call(arguments,1),u=0,e=f.length;u<e;u++)for(i in f[u])r=f[u][i],di.call(f[u],i)&&void 0!==r&&(t[i]=n.isPlainObject(r)?n.isPlainObject(t[i])?n.widget.extend({},t[i],r):n.widget.extend({},r):r);return t};n.widget.bridge=function(t,i){var r=i.prototype.widgetFullName||t;n.fn[t]=function(u){var o="string"==typeof u,e=lt.call(arguments,1),f=this;return o?this.length||"instance"!==u?this.each(function(){var i,o=n.data(this,r);return"instance"===u?(f=o,!1):o?"function"!=typeof o[u]||"_"===u.charAt(0)?n.error("no such method '"+u+"' for "+t+" widget instance"):(i=o[u].apply(o,e))!==o&&void 0!==i?(f=i&&i.jquery?f.pushStack(i.get()):i,!1):void 0:n.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+u+"'")}):f=void 0:(e.length&&(u=n.widget.extend.apply(null,[u].concat(e))),this.each(function(){var t=n.data(this,r);t?(t.option(u||{}),t._init&&t._init()):n.data(this,r,new i(u,this))})),f}};n.Widget=function(){};n.Widget._childConstructors=[];n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0];this.element=n(i);this.uuid=ki++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings=n();this.hoverable=n();this.focusable=n();this.classesElementLookup={};i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow));this.options=n.widget.extend({},this.options,this._getCreateOptions(),t);this._create();this.options.disabled&&this._setOptionDisabled(this.options.disabled);this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){var t=this;this._destroy();n.each(this.classesElementLookup,function(n,i){t._removeClass(i,n)});this.element.off(this.eventNamespace).removeData(this.widgetFullName);this.widget().off(this.eventNamespace).removeAttr("aria-disabled");this.bindings.off(this.eventNamespace)},_destroy:n.noop,widget:function(){return this.element},option:function(t,i){var u,r,f,e=t;if(0===arguments.length)return n.widget.extend({},this.options);if("string"==typeof t)if(e={},t=(u=t.split(".")).shift(),u.length){for(r=e[t]=n.widget.extend({},this.options[t]),f=0;f<u.length-1;f++)r[u[f]]=r[u[f]]||{},r=r[u[f]];if(t=u.pop(),1===arguments.length)return void 0===r[t]?null:r[t];r[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];e[t]=i}return this._setOptions(e),this},_setOptions:function(n){for(var t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return"classes"===n&&this._setOptionClasses(t),this.options[n]=t,"disabled"===n&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,u,r;for(i in t)r=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&r&&r.length&&(u=n(r.get()),this._removeClass(r,i),u.addClass(this._classes({element:u,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(n){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!n);n&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){function u(u,f){for(var o,e=0;e<u.length;e++)o=i.classesElementLookup[u[e]]||n(),o=t.add?(function(){var r=[];t.element.each(function(t,u){n.map(i.classesElementLookup,function(n){return n}).some(function(n){return n.is(u)})||r.push(u)});i._on(n(r),{remove:"_untrackClassesElement"})}(),n(n.uniqueSort(o.get().concat(t.element.get())))):n(o.not(t.element).get()),i.classesElementLookup[u[e]]=o,r.push(u[e]),f&&t.classes[u[e]]&&r.push(t.classes[u[e]])}var r=[],i=this;return(t=n.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&u(t.keys.match(/\S+/g)||[],!0),t.extra&&u(t.extra.match(/\S+/g)||[]),r.join(" ")},_untrackClassesElement:function(t){var i=this;n.each(i.classesElementLookup,function(r,u){-1!==n.inArray(t.target,u)&&(i.classesElementLookup[r]=n(u.not(t.target).get()))});this._off(n(t.target))},_removeClass:function(n,t,i){return this._toggleClass(n,t,i,!1)},_addClass:function(n,t,i){return this._toggleClass(n,t,i,!0)},_toggleClass:function(n,t,i,r){var u="string"==typeof n||null===n,i={extra:u?t:i,keys:u?n:t,element:u?this.element:n,add:r="boolean"==typeof r?r:i};return i.element.toggleClass(this._classes(i),r),this},_on:function(t,i,r){var f,u=this;"boolean"!=typeof t&&(r=i,i=t,t=!1);r?(i=f=n(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,f=this.widget());n.each(r,function(r,e){function s(){if(t||!0!==u.options.disabled&&!n(this).hasClass("ui-state-disabled"))return("string"==typeof e?u[e]:e).apply(u,arguments)}"string"!=typeof e&&(s.guid=e.guid=e.guid||s.guid||n.guid++);var o=r.match(/^([\w:-]*)\s*(.*)$/),r=o[1]+u.eventNamespace,o=o[2];o?f.on(r,o,s):i.on(r,s)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;t.off(i);this.bindings=n(this.bindings.not(t).get());this.focusable=n(this.focusable.not(t).get());this.hoverable=n(this.hoverable.not(t).get())},_delay:function(n,t){var i=this;return setTimeout(function(){return("string"==typeof n?i[n]:n).apply(i,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t);this._on(t,{mouseenter:function(t){this._addClass(n(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(n(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t);this._on(t,{focusin:function(t){this._addClass(n(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(n(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},(i=n.Event(i)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!("function"==typeof e&&!1===e.apply(this.element[0],[i].concat(r))||i.isDefaultPrevented())}};n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){var o,e=(u="string"==typeof u?{effect:u}:u)?!0!==u&&"number"!=typeof u&&u.effect||i:t;"number"==typeof(u=u||{})?u={duration:u}:!0===u&&(u={});o=!n.isEmptyObject(u);u.complete=f;u.delay&&r.delay(u.delay);o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t]();f&&f.call(r[0]);i()})}});n.widget;s=Math.max;u=Math.abs;d=/left|center|right/;g=/top|center|bottom/;nt=/[\+\-]\d+(\.[\d]+)?%?/;tt=/^\w+/;it=/%$/;at=n.fn.position;n.position={scrollbarWidth:function(){if(void 0!==k)return k;var r,t=n("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'><\/div><\/div>"),i=t.children()[0];return n("body").append(t),r=i.offsetWidth,t.css("overflow","scroll"),r===(i=i.offsetWidth)&&(i=t[0].clientWidth),t.remove(),k=r-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),i="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth;return{width:"scroll"===r||"auto"===r&&t.height<t.element[0].scrollHeight?n.position.scrollbarWidth():0,height:i?n.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=n(t||window),r=yt(i[0]),u=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:r,isDocument:u,offset:!r&&!u?n(t).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}};n.fn.position=function(t){if(!t||!t.of)return at.apply(this,arguments);var o,r,f,h,e,c,v="string"==typeof(t=n.extend({},t)).of?n(document).find(t.of):n(t.of),p=n.position.getWithinInfo(t.within),w=n.position.getScrollInfo(p),l=(t.collision||"flip").split(" "),y={},i=9===(c=(i=v)[0]).nodeType?{width:i.width(),height:i.height(),offset:{top:0,left:0}}:yt(c)?{width:i.width(),height:i.height(),offset:{top:i.scrollTop(),left:i.scrollLeft()}}:c.preventDefault?{width:0,height:0,offset:{top:c.pageY,left:c.pageX}}:{width:i.outerWidth(),height:i.outerHeight(),offset:i.offset()};return v[0].preventDefault&&(t.at="left top"),r=i.width,f=i.height,e=n.extend({},h=i.offset),n.each(["my","at"],function(){var i,r,n=(t[this]||"").split(" ");(n=1===n.length?d.test(n[0])?n.concat(["center"]):g.test(n[0])?["center"].concat(n):["center","center"]:n)[0]=d.test(n[0])?n[0]:"center";n[1]=g.test(n[1])?n[1]:"center";i=nt.exec(n[0]);r=nt.exec(n[1]);y[this]=[i?i[0]:0,r?r[0]:0];t[this]=[tt.exec(n[0])[0],tt.exec(n[1])[0]]}),1===l.length&&(l[1]=l[0]),"right"===t.at[0]?e.left+=r:"center"===t.at[0]&&(e.left+=r/2),"bottom"===t.at[1]?e.top+=f:"center"===t.at[1]&&(e.top+=f/2),o=vt(y.at,r,f),e.left+=o[0],e.top+=o[1],this.each(function(){var g,nt,c=n(this),b=c.outerWidth(),k=c.outerHeight(),tt=a(this,"marginLeft"),it=a(this,"marginTop"),rt=b+tt+a(this,"marginRight")+w.width,ut=k+it+a(this,"marginBottom")+w.height,i=n.extend({},e),d=vt(y.my,c.outerWidth(),c.outerHeight());"right"===t.my[0]?i.left-=b:"center"===t.my[0]&&(i.left-=b/2);"bottom"===t.my[1]?i.top-=k:"center"===t.my[1]&&(i.top-=k/2);i.left+=d[0];i.top+=d[1];g={marginLeft:tt,marginTop:it};n.each(["left","top"],function(u,e){n.ui.position[l[u]]&&n.ui.position[l[u]][e](i,{targetWidth:r,targetHeight:f,elemWidth:b,elemHeight:k,collisionPosition:g,collisionWidth:rt,collisionHeight:ut,offset:[o[0]+d[0],o[1]+d[1]],my:t.my,at:t.at,within:p,elem:c})});t.using&&(nt=function(n){var e=h.left-i.left,a=e+r-b,o=h.top-i.top,y=o+f-k,l={target:{element:v,left:h.left,top:h.top,width:r,height:f},element:{element:c,left:i.left,top:i.top,width:b,height:k},horizontal:a<0?"left":0<e?"right":"center",vertical:y<0?"top":0<o?"bottom":"middle"};r<b&&u(e+a)<r&&(l.horizontal="center");f<k&&u(o+y)<f&&(l.vertical="middle");l.important=s(u(e),u(a))>s(u(o),u(y))?"horizontal":"vertical";t.using.call(this,n,l)});c.offset(n.extend(i,{using:nt}))})};n.ui.position={fit:{left:function(n,t){var r=t.within,u=r.isWindow?r.scrollLeft:r.offset.left,e=r.width,o=n.left-t.collisionPosition.marginLeft,i=u-o,f=o+t.collisionWidth-e-u;t.collisionWidth>e?0<i&&f<=0?(r=n.left+i+t.collisionWidth-e-u,n.left+=i-r):n.left=!(0<f&&i<=0)&&f<i?u+e-t.collisionWidth:u:0<i?n.left+=i:0<f?n.left-=f:n.left=s(n.left-o,n.left)},top:function(n,t){var r=t.within,u=r.isWindow?r.scrollTop:r.offset.top,e=t.within.height,o=n.top-t.collisionPosition.marginTop,i=u-o,f=o+t.collisionHeight-e-u;t.collisionHeight>e?0<i&&f<=0?(r=n.top+i+t.collisionHeight-e-u,n.top+=i-r):n.top=!(0<f&&i<=0)&&f<i?u+e-t.collisionHeight:u:0<i?n.top+=i:0<f?n.top-=f:n.top=s(n.top-o,n.top)}},flip:{left:function(n,t){var i=t.within,o=i.offset.left+i.scrollLeft,s=i.width,f=i.isWindow?i.scrollLeft:i.offset.left,r=n.left-t.collisionPosition.marginLeft,h=r-f,c=r+t.collisionWidth-s-f,e="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,i="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,r=-2*t.offset[0];h<0?((o=n.left+e+i+r+t.collisionWidth-s-o)<0||o<u(h))&&(n.left+=e+i+r):0<c&&(0<(f=n.left-t.collisionPosition.marginLeft+e+i+r-f)||u(f)<c)&&(n.left+=e+i+r)},top:function(n,t){var i=t.within,o=i.offset.top+i.scrollTop,s=i.height,f=i.isWindow?i.scrollTop:i.offset.top,r=n.top-t.collisionPosition.marginTop,h=r-f,c=r+t.collisionHeight-s-f,e="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,i="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,r=-2*t.offset[1];h<0?((o=n.top+e+i+r+t.collisionHeight-s-o)<0||o<u(h))&&(n.top+=e+i+r):0<c&&(0<(f=n.top-t.collisionPosition.marginTop+e+i+r-f)||u(f)<c)&&(n.top+=e+i+r)}},flipfit:{left:function(){n.ui.position.flip.left.apply(this,arguments);n.ui.position.fit.left.apply(this,arguments)},top:function(){n.ui.position.flip.top.apply(this,arguments);n.ui.position.fit.top.apply(this,arguments)}}};n.ui.position;n.extend(n.expr.pseudos,{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])}});n.fn.extend({disableSelection:(pt="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(pt+".ui-disableSelection",function(n){n.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var pt,t=n,rt={},gi=rt.toString,nr=/^([\-+])=\s*(\d+\.?\d*)/,tr=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1],n[2],n[3],n[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[2.55*n[1],2.55*n[2],2.55*n[3],n[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(n){return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),n[4]?(parseInt(n[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(n){return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),n[4]?(parseInt(n[4]+n[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(n){return[n[1],n[2]/100,n[3]/100,n[4]]}}],i=t.Color=function(n,i,r,u){return new t.Color.fn.parse(n,i,r,u)},f={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},wt={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},bt=i.support={},h=t("<p>")[0],r=t.each;h.style.cssText="background-color:rgba(1,1,1,.5)";bt.rgba=-1<h.style.backgroundColor.indexOf("rgba");r(f,function(n,t){t.cache="_"+n;t.props.alpha={idx:3,type:"percent",def:1}});t.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){rt["[object "+t+"]"]=t.toLowerCase()});(i.fn=t.extend(i.prototype,{parse:function(n,u,e,o){if(void 0===n)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=t(n).css(u),u=void 0);var s=this,h=c(n),l=this._rgba=[];return void 0!==u&&(n=[n,u,e,o],h="array"),"string"===h?this.parse(kt(n)||ft._default):"array"===h?(r(f.rgba.props,function(t,i){l[i.idx]=v(n[i.idx],i)}),this):"object"===h?(r(f,n instanceof i?function(t,i){n[i.cache]&&(s[i.cache]=n[i.cache].slice())}:function(i,u){var f=u.cache;r(u.props,function(t,i){if(!s[f]&&u.to){if("alpha"===t||null==n[t])return;s[f]=u.to(s._rgba)}s[f][i.idx]=v(n[t],i,!0)});s[f]&&t.inArray(null,s[f].slice(0,3))<0&&(null==s[f][3]&&(s[f][3]=1),u.from&&(s._rgba=u.from(s[f])))}),this):void 0},is:function(n){var e=i(n),t=!0,u=this;return r(f,function(n,i){var o,f=e[i.cache];return f&&(o=u[i.cache]||i.to&&i.to(u._rgba)||[],r(i.props,function(n,i){if(null!=f[i.idx])return t=f[i.idx]===o[i.idx]})),t}),t},_space:function(){var n=[],t=this;return r(f,function(i,r){t[r.cache]&&n.push(i)}),n.pop()},transition:function(n,t){var s=(o=i(n))._space(),u=f[s],n=0===this.alpha()?i("transparent"):this,h=n[u.cache]||u.to(n._rgba),e=h.slice(),o=o[u.cache];return r(u.props,function(n,i){var s=i.idx,r=h[s],u=o[s],f=wt[i.type]||{};null!==u&&(null===r?e[s]=u:(f.mod&&(u-r>f.mod/2?r+=f.mod:r-u>f.mod/2&&(r-=f.mod)),e[s]=v((u-r)*t+r,i)))}),this[s](e)},blend:function(n){if(1===this._rgba[3])return this;var r=this._rgba.slice(),u=r.pop(),f=i(n)._rgba;return i(t.map(r,function(n,t){return(1-u)*f[t]+u*n}))},toRgbaString:function(){var i="rgba(",n=t.map(this._rgba,function(n,t){return null!=n?n:2<t?1:0});return 1===n[3]&&(n.pop(),i="rgb("),i+n.join()+")"},toHslaString:function(){var i="hsla(",n=t.map(this.hsla(),function(n,t){return null==n&&(n=2<t?1:0),n=t&&t<3?Math.round(100*n)+"%":n});return 1===n[3]&&(n.pop(),i="hsl("),i+n.join()+")"},toHexString:function(n){var i=this._rgba.slice(),r=i.pop();return n&&i.push(~~(255*r)),"#"+t.map(i,function(n){return 1===(n=(n||0).toString(16)).length?"0"+n:n}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=i.fn;f.hsla.to=function(n){if(null==n[0]||null==n[1]||null==n[2])return[null,null,null,n[3]];var r=n[0]/255,t=n[1]/255,e=n[2]/255,s=n[3],u=Math.max(r,t,e),o=Math.min(r,t,e),i=u-o,f=u+o,n=.5*f,t=o===u?0:r===u?60*(t-e)/i+360:t===u?60*(e-r)/i+120:60*(r-t)/i+240,f=0==i?0:n<=.5?i/f:i/(2-f);return[Math.round(t)%360,f,n,null==s?1:s]};f.hsla.from=function(n){if(null==n[0]||null==n[1]||null==n[2])return[null,null,null,n[3]];var r=n[0]/360,i=n[1],t=n[2],n=n[3],i=t<=.5?t*(1+i):t+i-t*i,t=2*t-i;return[Math.round(255*ut(t,i,r+1/3)),Math.round(255*ut(t,i,r)),Math.round(255*ut(t,i,r-1/3)),n]};r(f,function(n,t){var f=t.props,u=t.cache,e=t.to,o=t.from;i.fn[n]=function(n){if(e&&!this[u]&&(this[u]=e(this._rgba)),void 0===n)return this[u].slice();var s=c(n),h="array"===s||"object"===s?n:arguments,t=this[u].slice();return r(f,function(n,i){n=h["object"===s?n:i.idx];null==n&&(n=t[i.idx]);t[i.idx]=v(n,i)}),o?((n=i(o(t)))[u]=t,n):i(t)};r(f,function(t,r){i.fn[t]||(i.fn[t]=function(i){var f,u=c(i),s="alpha"===t?this._hsla?"hsla":"rgba":n,e=this[s](),o=e[r.idx];return"undefined"===u?o:("function"===u&&(u=c(i=i.call(this,o))),null==i&&r.empty?this:("string"===u&&(f=nr.exec(i))&&(i=o+parseFloat(f[2])*("+"===f[1]?1:-1)),e[r.idx]=i,this[s](e)))})})});(i.hook=function(n){n=n.split(" ");r(n,function(n,r){t.cssHooks[r]={set:function(n,u){var o,f,e="";if("transparent"!==u&&("string"!==c(u)||(o=kt(u)))){if(u=i(o||u),!bt.rgba&&1!==u._rgba[3]){for(f="backgroundColor"===r?n.parentNode:n;(""===e||"transparent"===e)&&f&&f.style;)try{e=t.css(f,"backgroundColor");f=f.parentNode}catch(n){}u=u.blend(e&&"transparent"!==e?e:"_default")}u=u.toRgbaString()}try{n.style[r]=u}catch(n){}}};t.fx.step[r]=function(n){n.colorInit||(n.start=i(n.elem,r),n.end=i(n.end),n.colorInit=!0);t.cssHooks[r].set(n.elem,n.start.transition(n.end,n.pos))}})})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");t.cssHooks.borderColor={expand:function(n){var t={};return r(["Top","Right","Bottom","Left"],function(i,r){t["border"+r+"Color"]=n}),t}};var dt,gt,ni,ti,ii,ri,ui,fi,ei,y,ft=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},p="ui-effects-",et="ui-effects-style",ot="ui-effects-animated";n.effects={effect:{}};ti=["add","remove","toggle"];ii={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};n.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(i,r){n.fx.step[r]=function(n){("none"===n.end||n.setAttr)&&(1!==n.pos||n.setAttr)||(t.style(n.elem,r,n.end),n.setAttr=!0)}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))});n.effects.animateClass=function(t,i,r,u){var f=n.speed(i,r,u);return this.queue(function(){var i=n(this),e=i.attr("class")||"",r=(r=f.children?i.find("*").addBack():i).map(function(){return{el:n(this),start:oi(this)}}),u=function(){n.each(ti,function(n,r){t[r]&&i[r+"Class"](t[r])})};u();r=r.map(function(){return this.end=oi(this.el[0]),this.diff=function(t,i){var r,u,f={};for(r in i)u=i[r],t[r]!==u&&(ii[r]||!n.fx.step[r]&&isNaN(parseFloat(u))||(f[r]=u));return f}(this.start,this.end),this});i.attr("class",e);r=r.map(function(){var i=this,t=n.Deferred(),r=n.extend({},f,{queue:!1,complete:function(){t.resolve(i)}});return this.el.animate(this.diff,r),t.promise()});n.when.apply(n,r.get()).done(function(){u();n.each(arguments,function(){var t=this.el;n.each(this.diff,function(n){t.css(n,"")})});f.complete.call(i[0])})})};n.fn.extend({addClass:(ni=n.fn.addClass,function(t,i,r,u){return i?n.effects.animateClass.call(this,{add:t},i,r,u):ni.apply(this,arguments)}),removeClass:(gt=n.fn.removeClass,function(t,i,r,u){return 1<arguments.length?n.effects.animateClass.call(this,{remove:t},i,r,u):gt.apply(this,arguments)}),toggleClass:(dt=n.fn.toggleClass,function(t,i,r,u,f){return"boolean"==typeof i||void 0===i?r?n.effects.animateClass.call(this,i?{add:t}:{remove:t},r,u,f):dt.apply(this,arguments):n.effects.animateClass.call(this,{toggle:t},i,r,u)}),switchClass:function(t,i,r,u,f){return n.effects.animateClass.call(this,{add:i,remove:t},r,u,f)}});n.expr&&n.expr.pseudos&&n.expr.pseudos.animated&&(n.expr.pseudos.animated=(ri=n.expr.pseudos.animated,function(t){return!!n(t).data(ot)||ri(t)}));!1!==n.uiBackCompat&&n.extend(n.effects,{save:function(n,t){for(var i=0,r=t.length;i<r;i++)null!==t[i]&&n.data(p+t[i],n[0].style[t[i]])},restore:function(n,t){for(var r,i=0,u=t.length;i<u;i++)null!==t[i]&&(r=n.data(p+t[i]),n.css(t[i],r))},setMode:function(n,t){return"toggle"===t?n.is(":hidden")?"show":"hide":t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},u=n("<div><\/div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),f={width:t.width(),height:t.height()},r=document.activeElement;try{r.id}catch(u){r=document.body}return t.wrap(u),t[0]!==r&&!n.contains(t[0],r)||n(r).trigger("focus"),u=t.parent(),"static"===t.css("position")?(u.css({position:"relative"}),t.css({position:"relative"})):(n.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),n.each(["top","left","bottom","right"],function(n,r){i[r]=t.css(r);isNaN(parseInt(i[r],10))&&(i[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(f),u.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==i&&!n.contains(t[0],i)||n(i).trigger("focus")),t}});n.extend(n.effects,{version:"1.13.2",define:function(t,i,r){return r||(r=i,i="effect"),n.effects.effect[t]=r,n.effects.effect[t].mode=i,r},scaledDimensions:function(n,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var r="horizontal"!==i?(t||100)/100:1,t="vertical"!==i?(t||100)/100:1;return{height:n.height()*t,width:n.width()*r,outerHeight:n.outerHeight()*t,outerWidth:n.outerWidth()*r}},clipToBox:function(n){return{width:n.clip.right-n.clip.left,height:n.clip.bottom-n.clip.top,left:n.clip.left,top:n.clip.top}},unshift:function(n,t,i){var r=n.queue();1<t&&r.splice.apply(r,[1,0].concat(r.splice(t,i)));n.dequeue()},saveStyle:function(n){n.data(et,n[0].style.cssText)},restoreStyle:function(n){n[0].style.cssText=n.data(et)||"";n.removeData(et)},mode:function(n,t){return n=n.is(":hidden"),"toggle"===t&&(t=n?"show":"hide"),t=(n?"hide"===t:"show"===t)?"none":t},getBaseline:function(n,t){var i,r;switch(n[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=n[0]/t.height}switch(n[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=n[1]/t.width}return{x:r,y:i}},createPlaceholder:function(t){var i,r=t.css("position"),u=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(r)&&(r="absolute",i=n("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(p+"placeholder",i)),t.css({position:r,left:u.left,top:u.top}),i},removePlaceholder:function(n){var t=p+"placeholder",i=n.data(t);i&&(i.remove(),n.removeData(t))},cleanUp:function(t){n.effects.restoreStyle(t);n.effects.removePlaceholder(t)},setTransition:function(t,i,r,u){return u=u||{},n.each(i,function(n,i){var f=t.cssUnit(i);0<f[0]&&(u[i]=f[0]*r+f[1])}),u}});n.fn.extend({effect:function(){function e(t){var f=n(this),u=n.effects.mode(f,i)||r;f.data(ot,!0);h.push(u);r&&("show"===u||u===r&&"hide"===u)&&f.show();r&&"none"===u||n.effects.saveStyle(f);"function"==typeof t&&t()}function c(e){function s(){"function"==typeof u&&u.call(o[0]);"function"==typeof e&&e()}var o=n(this);t.mode=h.shift();!1===n.uiBackCompat||r?"none"===t.mode?(o[i](),s()):f.call(o[0],t,function(){o.removeData(ot);n.effects.cleanUp(o);"hide"===t.mode&&o.hide();s()}):(o.is(":hidden")?"hide"===i:"show"===i)?(o[i](),s()):f.call(o[0],t,s)}var t=w.apply(this,arguments),f=n.effects.effect[t.effect],r=f.mode,o=t.queue,s=o||"fx",u=t.complete,i=t.mode,h=[];return n.fx.off||!f?i?this[i](t.duration,u):this.each(function(){u&&u.call(this)}):!1===o?this.each(e).each(c):this.queue(s,e).queue(s,c)},show:(ei=n.fn.show,function(n){return st(n)?ei.apply(this,arguments):(n=w.apply(this,arguments),n.mode="show",this.effect.call(this,n))}),hide:(fi=n.fn.hide,function(n){return st(n)?fi.apply(this,arguments):(n=w.apply(this,arguments),n.mode="hide",this.effect.call(this,n))}),toggle:(ui=n.fn.toggle,function(n){return st(n)||"boolean"==typeof n?ui.apply(this,arguments):(n=w.apply(this,arguments),n.mode="toggle",this.effect.call(this,n))}),cssUnit:function(t){var i=this.css(t),r=[];return n.each(["em","px","%","pt"],function(n,t){0<i.indexOf(t)&&(r=[parseFloat(i),t])}),r},cssClip:function(n){return n?this.css("clip","rect("+n.top+"px "+n.right+"px "+n.bottom+"px "+n.left+"px)"):si(this.css("clip"),this)},transfer:function(t,i){var f=n(this),r=n(t.to),e="fixed"===r.css("position"),u=n("body"),o=e?u.scrollTop():0,s=e?u.scrollLeft():0,u=r.offset(),u={top:u.top-o,left:u.left-s,height:r.innerHeight(),width:r.innerWidth()},r=f.offset(),h=n("<div class='ui-effects-transfer'><\/div>");h.appendTo("body").addClass(t.className).css({top:r.top-o,left:r.left-s,height:f.innerHeight(),width:f.innerWidth(),position:e?"fixed":"absolute"}).animate(u,t.duration,t.easing,function(){h.remove();"function"==typeof i&&i()})}});n.fx.step.clip=function(t){t.clipInit||(t.start=n(t.elem).cssClip(),"string"==typeof t.end&&(t.end=si(t.end,t.elem)),t.clipInit=!0);n(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})};y={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(n,t){y[t]=function(t){return Math.pow(t,n+2)}});n.extend(y,{Sine:function(n){return 1-Math.cos(n*Math.PI/2)},Circ:function(n){return 1-Math.sqrt(1-n*n)},Elastic:function(n){return 0===n||1===n?n:-Math.pow(2,8*(n-1))*Math.sin((80*(n-1)-7.5)*Math.PI/15)},Back:function(n){return n*n*(3*n-2)},Bounce:function(n){for(var t,i=4;n<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-n,2)}});n.each(y,function(t,i){n.easing["easeIn"+t]=i;n.easing["easeOut"+t]=function(n){return 1-i(1-n)};n.easing["easeInOut"+t]=function(n){return n<.5?i(2*n)/2:1-i(-2*n+2)/2}});h=n.effects;n.effects.define("blind","hide",function(t,i){var e={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},u=n(this),o=t.direction||"up",s=u.cssClip(),r={clip:n.extend({},s)},f=n.effects.createPlaceholder(u);r.clip[e[o][0]]=r.clip[e[o][1]];"show"===t.mode&&(u.cssClip(r.clip),f&&f.css(n.effects.clipToBox(r)),r.clip=s);f&&f.animate(n.effects.clipToBox(r),t.duration,t.easing);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});n.effects.define("bounce",function(t,i){var s,h,u=n(this),o=t.mode,c="hide"===o,p="show"===o,f=t.direction||"up",r=t.distance,v=t.times||5,o=2*v+(p||c?1:0),l=t.duration/o,a=t.easing,e="up"===f||"down"===f?"top":"left",y="up"===f||"left"===f,w=0,t=u.queue().length;for(n.effects.createPlaceholder(u),f=u.css(e),r=r||u["top"==e?"outerHeight":"outerWidth"]()/3,p&&((h={opacity:1})[e]=f,u.css("opacity",0).css(e,y?2*-r:2*r).animate(h,l,a)),c&&(r/=Math.pow(2,v-1)),(h={})[e]=f;w<v;w++)(s={})[e]=(y?"-=":"+=")+r,u.animate(s,l,a).animate(h,l,a),r=c?2*r:r/2;c&&((s={opacity:0})[e]=(y?"-=":"+=")+r,u.animate(s,l,a));u.queue(i);n.effects.unshift(u,t,1+o)});n.effects.define("clip","hide",function(t,i){var f={},e=n(this),r=t.direction||"vertical",u="both"===r,o=u||"horizontal"===r,u=u||"vertical"===r,r=e.cssClip();f.clip={top:u?(r.bottom-r.top)/2:r.top,right:o?(r.right-r.left)/2:r.right,bottom:u?(r.bottom-r.top)/2:r.bottom,left:o?(r.right-r.left)/2:r.left};n.effects.createPlaceholder(e);"show"===t.mode&&(e.cssClip(f.clip),f.clip=r);e.animate(f,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});n.effects.define("drop","hide",function(t,i){var f=n(this),s="show"===t.mode,r=t.direction||"left",e="up"===r||"down"===r?"top":"left",o="up"===r||"left"===r?"-=":"+=",h="+="==o?"-=":"+=",u={opacity:0};n.effects.createPlaceholder(f);r=t.distance||f["top"==e?"outerHeight":"outerWidth"](!0)/2;u[e]=o+r;s&&(f.css(u),u[e]=h+r,u.opacity=1);f.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});n.effects.define("explode","hide",function(t,i){function b(){p.push(this);p.length===e*c&&(o.css({visibility:"visible"}),n(p).remove(),i())}for(var u,l,a,v,y,e=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=e,o=n(this),f="show"===t.mode,w=o.show().css("visibility","hidden").offset(),s=Math.ceil(o.outerWidth()/c),h=Math.ceil(o.outerHeight()/e),p=[],r=0;r<e;r++)for(a=w.top+r*h,y=r-(e-1)/2,u=0;u<c;u++)l=w.left+u*s,v=u-(c-1)/2,o.clone().appendTo("body").wrap("<div><\/div>").css({position:"absolute",visibility:"visible",left:-u*s,top:-r*h}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:s,height:h,left:l+(f?v*s:0),top:a+(f?y*h:0),opacity:f?0:1}).animate({left:l+(f?0:v*s),top:a+(f?0:y*h),opacity:f?1:0},t.duration||500,t.easing,b)});n.effects.define("fade","toggle",function(t,i){var r="show"===t.mode;n(this).css("opacity",r?0:1).animate({opacity:r?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:i})});n.effects.define("fold","hide",function(t,i){var u=n(this),o=t.mode,v="show"===o,y="hide"===o,s=t.size||15,a=/([0-9]+)%/.exec(s),f=!t.horizFirst?["bottom","right"]:["right","bottom"],h=t.duration/2,c=n.effects.createPlaceholder(u),e=u.cssClip(),l={clip:n.extend({},e)},r={clip:n.extend({},e)},p=[e[f[0]],e[f[1]]],o=u.queue().length;a&&(s=parseInt(a[1],10)/100*p[y?0:1]);l.clip[f[0]]=s;r.clip[f[0]]=s;r.clip[f[1]]=0;v&&(u.cssClip(r.clip),c&&c.css(n.effects.clipToBox(r)),r.clip=e);u.queue(function(i){c&&c.animate(n.effects.clipToBox(l),h,t.easing).animate(n.effects.clipToBox(r),h,t.easing);i()}).animate(l,h,t.easing).animate(r,h,t.easing).queue(i);n.effects.unshift(u,o,4)});n.effects.define("highlight","show",function(t,i){var r=n(this),u={backgroundColor:r.css("backgroundColor")};"hide"===t.mode&&(u.opacity=0);n.effects.saveStyle(r);r.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});n.effects.define("size",function(t,i){var r,u=n(this),y=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],a=t.mode,p="effect"!==a,l=t.scale||"both",s=t.origin||["middle","center"],w=u.css("position"),v=u.position(),o=n.effects.scaledDimensions(u),f=t.from||o,e=t.to||n.effects.scaledDimensions(u,0);n.effects.createPlaceholder(u);"show"===a&&(a=f,f=e,e=a);r={from:{y:f.height/o.height,x:f.width/o.width},to:{y:e.height/o.height,x:e.width/o.width}};"box"!==l&&"both"!==l||(r.from.y!==r.to.y&&(f=n.effects.setTransition(u,h,r.from.y,f),e=n.effects.setTransition(u,h,r.to.y,e)),r.from.x!==r.to.x&&(f=n.effects.setTransition(u,c,r.from.x,f),e=n.effects.setTransition(u,c,r.to.x,e)));"content"!==l&&"both"!==l||r.from.y!==r.to.y&&(f=n.effects.setTransition(u,y,r.from.y,f),e=n.effects.setTransition(u,y,r.to.y,e));s&&(s=n.effects.getBaseline(s,o),f.top=(o.outerHeight-f.outerHeight)*s.y+v.top,f.left=(o.outerWidth-f.outerWidth)*s.x+v.left,e.top=(o.outerHeight-e.outerHeight)*s.y+v.top,e.left=(o.outerWidth-e.outerWidth)*s.x+v.left);delete f.outerHeight;delete f.outerWidth;u.css(f);"content"!==l&&"both"!==l||(h=h.concat(["marginTop","marginBottom"]).concat(y),c=c.concat(["marginLeft","marginRight"]),u.find("*[width]").each(function(){var u=n(this),i=n.effects.scaledDimensions(u),f={height:i.height*r.from.y,width:i.width*r.from.x,outerHeight:i.outerHeight*r.from.y,outerWidth:i.outerWidth*r.from.x},i={height:i.height*r.to.y,width:i.width*r.to.x,outerHeight:i.height*r.to.y,outerWidth:i.width*r.to.x};r.from.y!==r.to.y&&(f=n.effects.setTransition(u,h,r.from.y,f),i=n.effects.setTransition(u,h,r.to.y,i));r.from.x!==r.to.x&&(f=n.effects.setTransition(u,c,r.from.x,f),i=n.effects.setTransition(u,c,r.to.x,i));p&&n.effects.saveStyle(u);u.css(f);u.animate(i,t.duration,t.easing,function(){p&&n.effects.restoreStyle(u)})}));u.animate(e,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=u.offset();0===e.opacity&&u.css("opacity",f.opacity);p||(u.css("position","static"===w?"relative":w).offset(t),n.effects.saveStyle(u));i()}})});n.effects.define("scale",function(t,i){var u=n(this),r=t.mode,r=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==r?0:100),r=n.extend(!0,{from:n.effects.scaledDimensions(u),to:n.effects.scaledDimensions(u,r,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(r.from.opacity=1,r.to.opacity=0);n.effects.effect.size.call(this,r,i)});n.effects.define("puff","hide",function(t,i){t=n.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});n.effects.effect.scale.call(this,t,i)});n.effects.define("pulsate","show",function(t,i){var r=n(this),f=t.mode,o="show"===f,e=2*(t.times||5)+(o||"hide"===f?1:0),s=t.duration/e,u=0,h=1,f=r.queue().length;for(!o&&r.is(":visible")||(r.css("opacity",0).show(),u=1);h<e;h++)r.animate({opacity:u},s,t.easing),u=1-u;r.animate({opacity:u},s,t.easing);r.queue(i);n.effects.unshift(r,f,1+e)});n.effects.define("shake",function(t,i){var l=1,r=n(this),u=t.direction||"left",e=t.distance||20,a=t.times||3,v=2*a+1,f=Math.round(t.duration/v),o="up"===u||"down"===u?"top":"left",s="up"===u||"left"===u,h={},c={},y={},u=r.queue().length;for(n.effects.createPlaceholder(r),h[o]=(s?"-=":"+=")+e,c[o]=(s?"+=":"-=")+2*e,y[o]=(s?"-=":"+=")+2*e,r.animate(h,f,t.easing);l<a;l++)r.animate(c,f,t.easing).animate(y,f,t.easing);r.animate(c,f,t.easing).animate(h,f/2,t.easing).queue(i);n.effects.unshift(r,u,1+v)});n.effects.define("slide","show",function(t,i){var s,o,u=n(this),h={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},c=t.mode,f=t.direction||"left",e="up"===f||"down"===f?"top":"left",l="up"===f||"left"===f,a=t.distance||u["top"==e?"outerHeight":"outerWidth"](!0),r={};n.effects.createPlaceholder(u);s=u.cssClip();o=u.position()[e];r[e]=(l?-1:1)*a+o;r.clip=u.cssClip();r.clip[h[f][1]]=r.clip[h[f][0]];"show"===c&&(u.cssClip(r.clip),u.css(e,r[e]),r.clip=s,r[e]=o);u.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:i})});h=!1!==n.uiBackCompat?n.effects.define("transfer",function(t,i){n(this).transfer(t,i)}):h;n.ui.focusable=function(t,i){var e,r,u,o,f=t.nodeName.toLowerCase();return"area"===f?(r=(e=t.parentNode).name,!(!t.href||!r||"map"!==e.nodeName.toLowerCase())&&0<(r=n("img[usemap='#"+r+"']")).length&&r.is(":visible")):(/^(input|select|textarea|button|object)$/.test(f)?(u=!t.disabled)&&(o=n(t).closest("fieldset")[0])&&(u=!o.disabled):u="a"===f&&t.href||i,u&&n(t).is(":visible")&&function(n){for(var t=n.css("visibility");"inherit"===t;)n=n.parent(),t=n.css("visibility");return"visible"===t}(n(t)))};n.extend(n.expr.pseudos,{focusable:function(t){return n.ui.focusable(t,null!=n.attr(t,"tabindex"))}});n.ui.focusable;n.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):n(this[0].form)};n.ui.formResetMixin={_formResetHandler:function(){var t=n(this);setTimeout(function(){var i=t.data("ui-form-reset-instances");n.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){var n;this.form=this.element._form();this.form.length&&((n=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),n.push(this),this.form.data("ui-form-reset-instances",n))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(n.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}};n.expr.pseudos||(n.expr.pseudos=n.expr[":"]);n.uniqueSort||(n.uniqueSort=n.unique);n.escapeSelector||(hi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,ci=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},n.escapeSelector=function(n){return(n+"").replace(hi,ci)});n.fn.even&&n.fn.odd||n.fn.extend({even:function(){return this.filter(function(n){return n%2==0})},odd:function(){return this.filter(function(n){return n%2==1})}});n.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};n.fn.labels=function(){var t,r,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(r=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+n.escapeSelector(t)+"']",r=r.add(i.find(t).addBack(t))),this.pushStack(r)):this.pushStack([])};n.fn.scrollParent=function(t){var i=this.css("position"),r="absolute"===i,u=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=n(this);return(!r||"static"!==t.css("position"))&&u.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==i&&t.length?t:n(this[0].ownerDocument||document)};n.extend(n.expr.pseudos,{tabbable:function(t){var i=n.attr(t,"tabindex"),r=null!=i;return(!r||0<=i)&&n.ui.focusable(t,r)}});n.fn.extend({uniqueId:(li=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++li)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&n(this).removeAttr("id")})}});n.widget("ui.accordion",{version:"1.13.2",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(n){return n.find("> li > :first-child").add(n.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=n();this._addClass("ui-accordion","ui-widget ui-helper-reset");this.element.attr("role","tablist");t.collapsible||!1!==t.active&&null!=t.active||(t.active=0);this._processPanels();t.active<0&&(t.active+=this.headers.length);this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():n()}},_createIcons:function(){var t,i=this.options.icons;i&&(t=n("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+i.header),t.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,i.header)._addClass(t,null,i.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons");this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var n;this.element.removeAttr("role");this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId();this._destroyIcons();n=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId();"content"!==this.options.heightStyle&&n.css("height","")},_setOption:function(n,t){"active"!==n?("event"===n&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(n,t),"collapsible"!==n||t||!1!==this.options.active||this._activate(0),"icons"===n&&(this._destroyIcons(),t&&this._createIcons())):this._activate(t)},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",n);this._toggleClass(null,"ui-state-disabled",!!n);this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!n)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=n.ui.keyCode,u=this.headers.length,f=this.headers.index(t.target),r=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:r=this.headers[(f+1)%u];break;case i.LEFT:case i.UP:r=this.headers[(f-1+u)%u];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:r=this.headers[0];break;case i.END:r=this.headers[u-1]}r&&(n(t.target).attr("tabIndex",-1),n(r).attr("tabIndex",0),n(r).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===n.ui.keyCode.UP&&t.ctrlKey&&n(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels();!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=n()):!1===t.active?this._activate(0):this.active.length&&!n.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=n()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active);this._destroyIcons();this._refresh()},_processPanels:function(){var t=this.headers,n=this.panels;this.headers="function"==typeof this.options.header?this.options.header(this.element):this.element.find(this.options.header);this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default");this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide();this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content");n&&(this._off(t.not(this.headers)),this._off(n.not(this.panels)))},_refresh:function(){var t,i=this.options,r=i.heightStyle,u=this.element.parent();this.active=this._findActive(i.active);this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed");this._addClass(this.active.next(),"ui-accordion-content-active");this.active.next().show();this.headers.attr("role","tab").each(function(){var t=n(this),r=t.uniqueId().attr("id"),i=t.next(),u=i.uniqueId().attr("id");t.attr("aria-controls",u);i.attr("aria-labelledby",r)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide();this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0);this._createIcons();this._setupEvents(i.event);"fill"===r?(t=u.height(),this.element.siblings(":visible").each(function(){var i=n(this),r=i.css("position");"absolute"!==r&&"fixed"!==r&&(t-=i.outerHeight(!0))}),this.headers.each(function(){t-=n(this).outerHeight(!0)}),this.headers.next().each(function(){n(this).height(Math.max(0,t-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):"auto"===r&&(t=0,this.headers.next().each(function(){var i=n(this).is(":visible");i||n(this).show();t=Math.max(t,n(this).css("height","").height());i||n(this).hide()}).height(t))},_activate:function(t){t=this._findActive(t)[0];t!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:n.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):n()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"});this._off(this.headers.add(this.headers.next()));this._on(this.headers,i);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(t){var i=this.options,u=this.active,r=n(t.currentTarget),f=r[0]===u[0],o=f&&i.collapsible,e=o?n():r.next(),s=u.next(),e={oldHeader:u,oldPanel:s,newHeader:o?n():r,newPanel:e};t.preventDefault();f&&!i.collapsible||!1===this._trigger("beforeActivate",t,e)||(i.active=!o&&this.headers.index(r),this.active=f?n():r,this._toggle(e),this._removeClass(u,"ui-accordion-header-active","ui-state-active"),i.icons&&(u=u.children(".ui-accordion-header-icon"),this._removeClass(u,null,i.icons.activeHeader)._addClass(u,null,i.icons.header)),f||(this._removeClass(r,"ui-accordion-header-collapsed")._addClass(r,"ui-accordion-header-active","ui-state-active"),i.icons&&(f=r.children(".ui-accordion-header-icon"),this._removeClass(f,null,i.icons.header)._addClass(f,null,i.icons.activeHeader)),this._addClass(r.next(),"ui-accordion-content-active")))},_toggle:function(t){var r=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0);this.prevShow=r;this.prevHide=i;this.options.animate?this._animate(r,i,t):(i.hide(),r.show(),this._toggleComplete(t));i.attr({"aria-hidden":"true"});i.prev().attr({"aria-selected":"false","aria-expanded":"false"});r.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):r.length&&this.headers.filter(function(){return 0===parseInt(n(this).attr("tabIndex"),10)}).attr("tabIndex",-1);r.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(n,t,i){var h,r,u,c=this,s=0,l=n.css("box-sizing"),e=n.length&&(!t.length||n.index()<t.index()),o=this.options.animate||{},f=e&&o.down||o,e=function(){c._toggleComplete(i)};return r=(r="string"==typeof f?f:r)||f.easing||o.easing,u=(u="number"==typeof f?f:u)||f.duration||o.duration,t.length?n.length?(h=n.show().outerHeight(),t.animate(this.hideProps,{duration:u,easing:r,step:function(n,t){t.now=Math.round(n)}}),void n.hide().animate(this.showProps,{duration:u,easing:r,complete:e,step:function(n,i){i.now=Math.round(n);"height"!==i.prop?"content-box"===l&&(s+=i.now):"content"!==c.options.heightStyle&&(i.now=Math.round(h-t.outerHeight()-s),s=0)}})):t.animate(this.hideProps,u,r,e):n.animate(this.showProps,u,r,e)},_toggleComplete:function(n){var t=n.oldPanel,i=t.prev();this._removeClass(t,"ui-accordion-content-active");this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed");t.length&&(t.parent()[0].className=t.parent()[0].className);this._trigger("activate",null,n)}});n.ui.safeActiveElement=function(n){var t;try{t=n.activeElement}catch(i){t=n.body}return t=(t=t||n.body).nodeName?t:n.body};n.widget("ui.menu",{version:"1.13.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=!1;this.lastMousePosition={x:null,y:null};this.element.uniqueId().attr({role:this.options.role,tabIndex:0});this._addClass("ui-menu","ui-widget ui-widget-content");this._on({"mousedown .ui-menu-item":function(n){n.preventDefault();this._activateItem(n)},"click .ui-menu-item":function(t){var i=n(t.target),r=n(n.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&r.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(n,t){var i=this.active||this._menuItems().first();t||this.focus(n,i)},blur:function(t){this._delay(function(){n.contains(this.element[0],n.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(n){this._closeOnDocumentClick(n)&&this.collapseAll(n,!0);this.mouseHandled=!1}})},_activateItem:function(t){var r,i;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},r=n(t.target).closest(".ui-menu-item"),i=n(t.currentTarget),r[0]===i[0]&&(i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show();t.children().each(function(){var t=n(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var i,r,u,f=!0;switch(t.keyCode){case n.ui.keyCode.PAGE_UP:this.previousPage(t);break;case n.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case n.ui.keyCode.HOME:this._move("first","first",t);break;case n.ui.keyCode.END:this._move("last","last",t);break;case n.ui.keyCode.UP:this.previous(t);break;case n.ui.keyCode.DOWN:this.next(t);break;case n.ui.keyCode.LEFT:this.collapse(t);break;case n.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case n.ui.keyCode.ENTER:case n.ui.keyCode.SPACE:this._activate(t);break;case n.ui.keyCode.ESCAPE:this.collapse(t);break;default:i=this.previousFilter||"";u=f=!1;r=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode);clearTimeout(this.filterTimer);r===i?u=!0:r=i+r;i=this._filterMenuItems(r);(i=u&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(r=String.fromCharCode(t.keyCode),i=this._filterMenuItems(r));i.length?(this.focus(t,i),this.previousFilter=r,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}f&&t.preventDefault()},_activate:function(n){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(n):this.select(n))},refresh:function(){var r,t,u=this,f=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length);t=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=n(this),i=t.prev(),r=n("<span>").data("ui-menu-submenu-caret",!0);u._addClass(r,"ui-menu-icon","ui-icon "+f);i.attr("aria-haspopup","true").prepend(r);t.attr("aria-labelledby",i.attr("id"))});this._addClass(t,"ui-menu","ui-widget ui-widget-content ui-front");(r=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=n(this);u._isDivider(t)&&u._addClass(t,"ui-menu-divider","ui-widget-content")});i=(t=r.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()});this._addClass(t,"ui-menu-item")._addClass(i,"ui-menu-item-wrapper");r.filter(".ui-state-disabled").attr("aria-disabled","true");this.active&&!n.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(n,t){var i;"icons"===n&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu));this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",String(n));this._toggleClass(null,"ui-state-disabled",!!n)},focus:function(n,t){var i;this.blur(n,n&&"focus"===n.type);this._scrollIntoView(t);this.active=t.first();i=this.active.children(".ui-menu-item-wrapper");this._addClass(i,null,"ui-state-active");this.options.role&&this.element.attr("aria-activedescendant",i.attr("id"));i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper");this._addClass(i,null,"ui-state-active");n&&"keydown"===n.type?this._close():this.timer=this._delay(function(){this._close()},this.delay);(i=t.children(".ui-menu")).length&&n&&/^mouse/.test(n.type)&&this._startOpening(i);this.activeMenu=t.parent();this._trigger("focus",n,{item:t})},_scrollIntoView:function(t){var i,r,u;this._hasScroll()&&(r=parseFloat(n.css(this.activeMenu[0],"borderTopWidth"))||0,u=parseFloat(n.css(this.activeMenu[0],"paddingTop"))||0,i=t.offset().top-this.activeMenu.offset().top-r-u,r=this.activeMenu.scrollTop(),u=this.activeMenu.height(),t=t.outerHeight(),i<0?this.activeMenu.scrollTop(r+i):u<i+t&&this.activeMenu.scrollTop(r+i-u+t))},blur:function(n,t){t||clearTimeout(this.timer);this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",n,{item:this.active}),this.active=null)},_startOpening:function(n){clearTimeout(this.timer);"true"===n.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close();this._open(n)},this.delay))},_open:function(t){var i=n.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true");t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer);this.timer=this._delay(function(){var r=i?this.element:n(t&&t.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element);this._close(r);this.blur(t);this._removeClass(r.find(".ui-state-active"),null,"ui-state-active");this.activeMenu=r},i?0:this.delay)},_close:function(n){(n=n||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!n(t.target).closest(".ui-menu").length},_isDivider:function(n){return!/[^\-\u2014\u2013\s]/.test(n.text())},collapse:function(n){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(n,t))},expand:function(n){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(n,t)}))},next:function(n){this._move("next","first",n)},previous:function(n){this._move("prev","last",n)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(n){return(n||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(n,t,i){var r;(r=this.active?"first"===n||"last"===n?this.active["first"===n?"prevAll":"nextAll"](".ui-menu-item").last():this.active[n+"All"](".ui-menu-item").first():r)&&r.length&&this.active||(r=this._menuItems(this.activeMenu)[t]());this.focus(i,r)},nextPage:function(t){var r,u,i;this.active?this.isLastItem()||(this._hasScroll()?(u=this.active.offset().top,i=this.element.innerHeight(),0===n.fn.jquery.indexOf("3.2.")&&(i+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(r=n(this)).offset().top-u-i<0}),this.focus(t,r)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var r,u,i;this.active?this.isFirstItem()||(this._hasScroll()?(u=this.active.offset().top,i=this.element.innerHeight(),0===n.fn.jquery.indexOf("3.2.")&&(i+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(r=n(this)).offset().top-u+i}),this.focus(t,r)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||n(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0);this._trigger("select",t,i)},_filterMenuItems:function(t){var t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),i=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return i.test(String.prototype.trim.call(n(this).children(".ui-menu-item-wrapper").text()))})}});n.widget("ui.autocomplete",{version:"1.13.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var t,r,u,i=this.element[0].nodeName.toLowerCase(),f="textarea"===i,i="input"===i;this.isMultiLine=f||!i&&this._isContentEditable(this.element);this.valueMethod=this.element[f||i?"val":"text"];this.isNewMenu=!0;this._addClass("ui-autocomplete-input");this.element.attr("autocomplete","off");this._on(this.element,{keydown:function(i){if(this.element.prop("readOnly"))r=u=t=!0;else{r=u=t=!1;var f=n.ui.keyCode;switch(i.keyCode){case f.PAGE_UP:t=!0;this._move("previousPage",i);break;case f.PAGE_DOWN:t=!0;this._move("nextPage",i);break;case f.UP:t=!0;this._keyEvent("previous",i);break;case f.DOWN:t=!0;this._keyEvent("next",i);break;case f.ENTER:this.menu.active&&(t=!0,i.preventDefault(),this.menu.select(i));break;case f.TAB:this.menu.active&&this.menu.select(i);break;case f.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(i),i.preventDefault());break;default:r=!0;this._searchTimeout(i)}}},keypress:function(i){if(t)return t=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||i.preventDefault());if(!r){var u=n.ui.keyCode;switch(i.keyCode){case u.PAGE_UP:this._move("previousPage",i);break;case u.PAGE_DOWN:this._move("nextPage",i);break;case u.UP:this._keyEvent("previous",i);break;case u.DOWN:this._keyEvent("next",i)}}},input:function(n){if(u)return u=!1,void n.preventDefault();this._searchTimeout(n)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(n){clearTimeout(this.searching);this.close(n);this._change(n)}});this._initSource();this.menu=n("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance");this._addClass(this.menu.element,"ui-autocomplete","ui-front");this._on(this.menu.element,{mousedown:function(n){n.preventDefault()},menufocus:function(t,i){var u,r;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){n(t.target).trigger(t.originalEvent)});r=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",t,{item:r})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(r.value);(u=i.item.attr("aria-label")||r.value)&&String.prototype.trim.call(u).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(n("<div>").text(u))},100))},menuselect:function(t,i){var r=i.item.data("ui-autocomplete-item"),u=this.previous;this.element[0]!==n.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=u,this._delay(function(){this.previous=u;this.selectedItem=r}));!1!==this._trigger("select",t,{item:r})&&this._value(r.value);this.term=this._value();this.close(t);this.selectedItem=r}});this.liveRegion=n("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(n,t){this._super(n,t);"source"===n&&this._initSource();"appendTo"===n&&this.menu.element.appendTo(this._appendTo());"disabled"===n&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var i=this.menu.element[0];return t.target===this.element[0]||t.target===i||n.contains(i,t.target)},_closeOnClickOutside:function(n){this._isEventTargetInWidget(n)||this.close()},_appendTo:function(){var t=this.options.appendTo;return(t=!(t=t&&(t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)))||!t[0]?this.element.closest(".ui-front, dialog"):t).length?t:this.document[0].body},_initSource:function(){var i,r,t=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(t,r){r(n.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(r=this.options.source,this.source=function(i,u){t.xhr&&t.xhr.abort();t.xhr=n.ajax({url:r,data:i,dataType:"json",success:function(n){u(n)},error:function(){u([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching);this.searching=this._delay(function(){var t=this.term===this._value(),i=this.menu.element.is(":visible"),r=n.altKey||n.ctrlKey||n.metaKey||n.shiftKey;t&&(i||r)||(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(n,t){return n=null!=n?n:this._value(),this.term=this._value(),n.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(n):void 0},_search:function(n){this.pending++;this._addClass("ui-autocomplete-loading");this.cancelSearch=!1;this.source({term:n},this._response())},_response:function(){var n=++this.requestIndex;return function(t){n===this.requestIndex&&this.__response(t);this.pending--;this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(n){n=n&&this._normalize(n);this._trigger("response",null,{content:n});!this.options.disabled&&n&&n.length&&!this.cancelSearch?(this._suggest(n),this._trigger("open")):this._close()},close:function(n){this.cancelSearch=!0;this._close(n)},_close:function(n){this._off(this.document,"mousedown");this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",n))},_change:function(n){this.previous!==this._value()&&this._trigger("change",n,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:n.map(t,function(t){return"string"==typeof t?{label:t,value:t}:n.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t);this.isNewMenu=!0;this.menu.refresh();i.show();this._resizeMenu();i.position(n.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next();this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var n=this.menu.element;n.outerWidth(Math.max(n.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var r=this;n.each(i,function(n,i){r._renderItemData(t,i)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return n("<li>").append(n("<div>").text(i.label)).appendTo(t)},_move:function(n,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(n)||this.menu.isLastItem()&&/^next/.test(n)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[n](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(n,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(n,t),t.preventDefault())},_isContentEditable:function(n){if(!n.length)return!1;var t=n.prop("contentEditable");return"inherit"===t?this._isContentEditable(n.parent()):"true"===t}});n.extend(n.ui.autocomplete,{escapeRegex:function(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var r=new RegExp(n.ui.autocomplete.escapeRegex(i),"i");return n.grep(t,function(n){return r.test(n.label||n.value||n)})}});n.widget("ui.autocomplete",n.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(n){return n+(1<n?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;this._superApply(arguments);this.options.disabled||this.cancelSearch||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(n("<div>").text(i))},100))}});n.ui.autocomplete;ai=/ui-corner-([a-z]){2,6}/g;n.widget("ui.controlgroup",{version:"1.13.2",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar");this.refresh()},_destroy:function(){this._callChildMethod("destroy");this.childWidgets.removeData("ui-controlgroup-data");this.element.removeAttr("role");this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var t=this,i=[];n.each(this.options.items,function(r,u){var f,e={};if(u)return"controlgroupLabel"===r?((f=t.element.find(u)).each(function(){var t=n(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'><\/span>")}),t._addClass(f,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(f.get()))):void(n.fn[r]&&(e=t["_"+r+"Options"]?t["_"+r+"Options"]("middle"):{classes:{}},t.element.find(u).each(function(){var u=n(this),o=u[r]("instance"),f=n.widget.extend({},e);"button"===r&&u.parent(".ui-spinner").length||((o=o||u[r]()[r]("instance"))&&(f.classes=t._resolveClassesValues(f.classes,o)),u[r](f),f=u[r]("widget"),n.data(f[0],"ui-controlgroup-data",o||u[r]("instance")),i.push(f[0]))})))});this.childWidgets=n(n.uniqueSort(i));this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each(function(){var i=n(this).data("ui-controlgroup-data");i&&i[t]&&i[t]()})},_updateCornerClass:function(n,t){t=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(n,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all");this._addClass(n,null,t)},_buildSimpleOptions:function(n,t){var i="vertical"===this.options.direction,r={classes:{}};return r.classes[t]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[n],r},_spinnerOptions:function(n){return n=this._buildSimpleOptions(n,"ui-spinner"),n.classes["ui-spinner-up"]="",n.classes["ui-spinner-down"]="",n},_buttonOptions:function(n){return this._buildSimpleOptions(n,"ui-button")},_checkboxradioOptions:function(n){return this._buildSimpleOptions(n,"ui-checkboxradio-label")},_selectmenuOptions:function(n){var t="vertical"===this.options.direction;return{width:t&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[n]}},_resolveClassesValues:function(t,i){var r={};return n.each(t,function(n){var u=i.options.classes[n]||"",u=String.prototype.trim.call(u.replace(ai,""));r[n]=(u+" "+t[n]).replace(/\s+/g," ")}),r},_setOption:function(n,t){"direction"===n&&this._removeClass("ui-controlgroup-"+this.options.direction);this._super(n,t);"disabled"!==n?this.refresh():this._callChildMethod(t?"disable":"enable")},refresh:function(){var t,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction);"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix");this._initWidgets();t=this.childWidgets;(t=this.options.onlyVisible?t.filter(":visible"):t).length&&(n.each(["first","last"],function(n,r){var f,u=t[r]().data("ui-controlgroup-data");u&&i["_"+u.widgetName+"Options"]?((f=i["_"+u.widgetName+"Options"](1===t.length?"only":r)).classes=i._resolveClassesValues(f.classes,u),u.element[u.widgetName](f)):i._updateCornerClass(t[r](),r)}),this._callChildMethod("refresh"))}});n.widget("ui.checkboxradio",[n.ui.formResetMixin,{version:"1.13.2",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,i=this._super()||{};return this._readType(),t=this.element.labels(),this.label=n(t[t.length-1]),this.label.length||n.error("No label found for checkboxradio widget"),this.originalLabel="",(t=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=t.clone().wrapAll("<div><\/div>").parent().html()),this.originalLabel&&(i.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(i.disabled=t),i},_create:function(){var n=this.element[0].checked;this._bindFormResetHandler();null==this.options.disabled&&(this.options.disabled=this.element[0].disabled);this._setOption("disabled",this.options.disabled);this._addClass("ui-checkboxradio","ui-helper-hidden-accessible");this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget");"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label");this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel);this._enhance();n&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active");this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type;"input"===t&&/radio|checkbox/.test(this.type)||n.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,i="input[name='"+n.escapeSelector(t)+"']";return t?(this.form.length?n(this.form[0].elements).filter(i):n(i).filter(function(){return 0===n(this)._form().length})).not(this.element):n([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t);this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t);"radio"===this.type&&this._getRadioGroup().each(function(){var t=n(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler();this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(n,t){if("label"!==n||t){if(this._super(n,t),"disabled"===n)return this._toggleClass(this.label,null,"ui-state-disabled",t),void(this.element[0].disabled=t);this.refresh()}},_updateIcon:function(t){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=n("<span>"),this.iconSpace=n("<span> <\/span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var n=this.label.contents().not(this.element[0]);this.icon&&(n=n.not(this.icon[0]));(n=this.iconSpace?n.not(this.iconSpace[0]):n).remove();this.label.append(this.options.label)},refresh:function(){var n=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(n);this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",n);null!==this.options.label&&this._updateLabel();t!==this.options.disabled&&this._setOptions({disabled:t})}}]);n.ui.checkboxradio;n.widget("ui.button",{version:"1.13.2",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,n=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(n.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(n.label=this.originalLabel),n},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0);null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1);this.hasTitle=!!this.element.attr("title");this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label));this._addClass("ui-button","ui-widget");this._setOption("disabled",this.options.disabled);this._enhance();this.element.is("a")&&this._on({keyup:function(t){t.keyCode===n.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button");this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title");this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,i){var u="iconPosition"!==t,r=u?this.options.iconPosition:i,t="top"===r||"bottom"===r;this.icon?u&&this._removeClass(this.icon,null,this.options.icon):(this.icon=n("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only"));u&&this._addClass(this.icon,null,i);this._attachIcon(r);t?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=n("<span> <\/span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(r))},_destroy:function(){this.element.removeAttr("role");this.icon&&this.icon.remove();this.iconSpace&&this.iconSpace.remove();this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(n){this.icon[/^(?:end|bottom)/.test(n)?"before":"after"](this.iconSpace)},_attachIcon:function(n){this.element[/^(?:end|bottom)/.test(n)?"append":"prepend"](this.icon)},_setOptions:function(n){var t=(void 0===n.showLabel?this.options:n).showLabel,i=(void 0===n.icon?this.options:n).icon;t||i||(n.showLabel=!0);this._super(n)},_setOption:function(n,t){"icon"===n&&(t?this._updateIcon(n,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove()));"iconPosition"===n&&this._updateIcon(n,t);"showLabel"===n&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip());"label"===n&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition))));this._super(n,t);"disabled"===n&&(this._toggleClass(null,"ui-state-disabled",t),(this.element[0].disabled=t)&&this.element.trigger("blur"))},refresh:function(){var n=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");n!==this.options.disabled&&this._setOptions({disabled:n});this._updateTooltip()}});!1!==n.uiBackCompat&&(n.widget("ui.button",n.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text);!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel);this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end");this._super()},_setOption:function(n,t){"text"!==n?("showLabel"===n&&(this.options.text=t),"icon"===n&&(this.options.icons.primary=t),"icons"===n&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",t)}}),n.fn.button=(vi=n.fn.button,function(t){var u="string"==typeof t,r=Array.prototype.slice.call(arguments,1),i=this;return u?this.length||"instance"!==t?this.each(function(){var u=n(this).attr("type"),f=n.data(this,"ui-"+("checkbox"!==u&&"radio"!==u?"button":"checkboxradio"));return"instance"===t?(i=f,!1):f?"function"!=typeof f[t]||"_"===t.charAt(0)?n.error("no such method '"+t+"' for button widget instance"):(u=f[t].apply(f,r))!==f&&void 0!==u?(i=u&&u.jquery?i.pushStack(u.get()):u,!1):void 0:n.error("cannot call methods on button prior to initialization; attempted to call method '"+t+"'")}):i=void 0:(r.length&&(t=n.widget.extend.apply(null,[t].concat(r))),this.each(function(){var i=n(this).attr("type"),r="checkbox"!==i&&"radio"!==i?"button":"checkboxradio",i=n.data(this,"ui-"+r);i?(i.option(t||{}),i._init&&i._init()):"button"!=r?n(this).checkboxradio(n.extend({icon:!1},t)):vi.call(n(this),t)})),i}),n.fn.buttonset=function(){return n.ui.controlgroup||n.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});n.ui.button;n.extend(n.ui,{datepicker:{version:"1.13.2"}});n.extend(yi.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(n){return b(this._defaults,n||{}),this},_attachDatepicker:function(t,i){var r,u=t.nodeName.toLowerCase(),f="div"===u||"span"===u;t.id||(this.uuid+=1,t.id="dp"+this.uuid);(r=this._newInst(n(t),f)).settings=n.extend({},i||{});"input"===u?this._connectDatepicker(t,r):f&&this._inlineDatepicker(t,r)},_newInst:function(t,i){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?pi(n("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>")):this.dpDiv}},_connectDatepicker:function(t,i){var r=n(t);i.append=n([]);i.trigger=n([]);r.hasClass(this.markerClassName)||(this._attachments(r,i),r.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),n.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var r,u=this._get(i,"appendText"),f=this._get(i,"isRTL");i.append&&i.append.remove();u&&(i.append=n("<span>").addClass(this._appendClass).text(u),t[f?"before":"after"](i.append));t.off("focus",this._showDatepicker);i.trigger&&i.trigger.remove();"focus"!==(r=this._get(i,"showOn"))&&"both"!==r||t.on("focus",this._showDatepicker);"button"!==r&&"both"!==r||(u=this._get(i,"buttonText"),r=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=n("<img>").addClass(this._triggerClass).attr({src:r,alt:u,title:u}):(i.trigger=n("<button type='button'>").addClass(this._triggerClass),r?i.trigger.html(n("<img>").attr({src:r,alt:u,title:u})):i.trigger.text(u)),t[f?"before":"after"](i.trigger),i.trigger.on("click",function(){return n.datepicker._datepickerShowing&&n.datepicker._lastInput===t[0]?n.datepicker._hideDatepicker():(n.datepicker._datepickerShowing&&n.datepicker._lastInput!==t[0]&&n.datepicker._hideDatepicker(),n.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(n){var r,u,f,t,i,e;this._get(n,"autoSize")&&!n.inline&&(i=new Date(2009,11,20),(e=this._get(n,"dateFormat")).match(/[DM]/)&&(r=function(n){for(t=f=u=0;t<n.length;t++)n[t].length>u&&(u=n[t].length,f=t);return f},i.setMonth(r(this._get(n,e.match(/MM/)?"monthNames":"monthNamesShort"))),i.setDate(r(this._get(n,e.match(/DD/)?"dayNames":"dayNamesShort"))+20-i.getDay())),n.input.attr("size",this._formatDate(n,i).length))},_inlineDatepicker:function(t,i){var r=n(t);r.hasClass(this.markerClassName)||(r.addClass(this.markerClassName).append(i.dpDiv),n.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,r,u,f){var o,e=this._dialogInst;return e||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=n("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),n("body").append(this._dialogInput),(e=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},n.data(this._dialogInput[0],"datepicker",e)),b(e.settings,u||{}),i=i&&i.constructor===Date?this._formatDate(e,i):i,this._dialogInput.val(i),this._pos=f?f.length?f:[f.pageX,f.pageY]:null,this._pos||(o=document.documentElement.clientWidth,u=document.documentElement.clientHeight,i=document.documentElement.scrollLeft||document.body.scrollLeft,f=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+i,u/2-150+f]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),e.settings.onSelect=r,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),n.blockUI&&n.blockUI(this.dpDiv),n.data(this._dialogInput[0],"datepicker",e),this},_destroyDatepicker:function(t){var i,r=n(t),u=n.data(t,"datepicker");r.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),n.removeData(t,"datepicker"),"input"===i?(u.append.remove(),u.trigger.remove(),r.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||r.removeClass(this.markerClassName).empty(),e===u&&(e=null,this._curInst=null))},_enableDatepicker:function(t){var r,i=n(t),u=n.data(t,"datepicker");i.hasClass(this.markerClassName)&&("input"===(r=t.nodeName.toLowerCase())?(t.disabled=!1,u.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==r&&"span"!==r||((i=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}))},_disableDatepicker:function(t){var r,i=n(t),u=n.data(t,"datepicker");i.hasClass(this.markerClassName)&&("input"===(r=t.nodeName.toLowerCase())?(t.disabled=!0,u.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==r&&"span"!==r||((i=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(n){if(!n)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===n)return!0;return!1},_getInst:function(t){try{return n.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(t,i,r){var f,e,u=this._getInst(t);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?n.extend({},n.datepicker._defaults):u?"all"===i?n.extend({},u.settings):this._get(u,i):null;f=i||{};"string"==typeof i&&((f={})[i]=r);u&&(this._curInst===u&&this._hideDatepicker(),e=this._getDateDatepicker(t,!0),i=this._getMinMaxDate(u,"min"),r=this._getMinMaxDate(u,"max"),b(u.settings,f),null!==i&&void 0!==f.dateFormat&&void 0===f.minDate&&(u.settings.minDate=this._formatDate(u,i)),null!==r&&void 0!==f.dateFormat&&void 0===f.maxDate&&(u.settings.maxDate=this._formatDate(u,r)),"disabled"in f&&(f.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(n(t),u),this._autoSize(u),this._setDate(u,e),this._updateAlternate(u),this._updateDatepicker(u))},_changeDatepicker:function(n,t,i){this._optionDatepicker(n,t,i)},_refreshDatepicker:function(n){n=this._getInst(n);n&&this._updateDatepicker(n)},_setDateDatepicker:function(n,t){n=this._getInst(n);n&&(this._setDate(n,t),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(n,t){return n=this._getInst(n),n&&!n.inline&&this._setDateFromField(n,t),n?this._getDate(n):null},_doKeyDown:function(t){var f,u,i=n.datepicker._getInst(t.target),r=!0,e=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,n.datepicker._datepickerShowing)switch(t.keyCode){case 9:n.datepicker._hideDatepicker();r=!1;break;case 13:return(u=n("td."+n.datepicker._dayOverClass+":not(."+n.datepicker._currentClass+")",i.dpDiv))[0]&&n.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,u[0]),(f=n.datepicker._get(i,"onSelect"))?(u=n.datepicker._formatDate(i),f.apply(i.input?i.input[0]:null,[u,i])):n.datepicker._hideDatepicker(),!1;case 27:n.datepicker._hideDatepicker();break;case 33:n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 34:n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&n.datepicker._clearDate(t.target);r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&n.datepicker._gotoToday(t.target);r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,e?1:-1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,-7,"D");r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,e?-1:1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,7,"D");r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?n.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var r,i=n.datepicker._getInst(t.target);if(n.datepicker._get(i,"constrainInput"))return r=n.datepicker._possibleChars(n.datepicker._get(i,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!r||-1<r.indexOf(i)},_doKeyUp:function(t){if(t=n.datepicker._getInst(t.target),t.input.val()!==t.lastVal)try{n.datepicker.parseDate(n.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,n.datepicker._getFormatConfig(t))&&(n.datepicker._setDateFromField(t),n.datepicker._updateAlternate(t),n.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var f,u,r,i;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=n("input",t.parentNode)[0]);n.datepicker._isDisabledDatepicker(t)||n.datepicker._lastInput===t||(i=n.datepicker._getInst(t),n.datepicker._curInst&&n.datepicker._curInst!==i&&(n.datepicker._curInst.dpDiv.stop(!0,!0),i&&n.datepicker._datepickerShowing&&n.datepicker._hideDatepicker(n.datepicker._curInst.input[0])),!1!==(u=(r=n.datepicker._get(i,"beforeShow"))?r.apply(t,[t,i]):{})&&(b(i.settings,u),i.lastVal=null,n.datepicker._lastInput=t,n.datepicker._setDateFromField(i),n.datepicker._inDialog&&(t.value=""),n.datepicker._pos||(n.datepicker._pos=n.datepicker._findPos(t),n.datepicker._pos[1]+=t.offsetHeight),f=!1,n(t).parents().each(function(){return!(f|="fixed"===n(this).css("position"))}),r={left:n.datepicker._pos[0],top:n.datepicker._pos[1]},n.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),n.datepicker._updateDatepicker(i),r=n.datepicker._checkOffset(i,r,f),i.dpDiv.css({position:n.datepicker._inDialog&&n.blockUI?"static":f?"fixed":"absolute",display:"none",left:r.left+"px",top:r.top+"px"}),i.inline||(u=n.datepicker._get(i,"showAnim"),r=n.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(n){for(var i,t;n.length&&n[0]!==document;){if(("absolute"===(i=n.css("position"))||"relative"===i||"fixed"===i)&&(t=parseInt(n.css("zIndex"),10),!isNaN(t)&&0!==t))return t;n=n.parent()}return 0}(n(t))+1),n.datepicker._datepickerShowing=!0,n.effects&&n.effects.effect[u]?i.dpDiv.show(u,n.datepicker._get(i,"showOptions"),r):i.dpDiv[u||"show"](u?r:null),n.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),n.datepicker._curInst=i)))},_updateDatepicker:function(t){this.maxRows=4;(e=t).dpDiv.empty().append(this._generateHTML(t));this._attachHandlers(t);var i,r=this._getNumberOfMonths(t),u=r[1],f=t.dpDiv.find("."+this._dayOverClass+" a"),o=n.datepicker._get(t,"onUpdateDatepicker");0<f.length&&wi.apply(f.get(0));t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");1<u&&t.dpDiv.addClass("ui-datepicker-multi-"+u).css("width",17*u+"em");t.dpDiv[(1!==r[0]||1!==r[1]?"add":"remove")+"Class"]("ui-datepicker-multi");t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");t===n.datepicker._curInst&&n.datepicker._datepickerShowing&&n.datepicker._shouldFocusInput(t)&&t.input.trigger("focus");t.yearshtml&&(i=t.yearshtml,setTimeout(function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml);i=t.yearshtml=null},0));o&&o.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(n){return n.input&&n.input.is(":visible")&&!n.input.is(":disabled")&&!n.input.is(":focus")},_checkOffset:function(t,i,r){var u=t.dpDiv.outerWidth(),f=t.dpDiv.outerHeight(),h=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,e=document.documentElement.clientWidth+(r?0:n(document).scrollLeft()),s=document.documentElement.clientHeight+(r?0:n(document).scrollTop());return i.left-=this._get(t,"isRTL")?u-h:0,i.left-=r&&i.left===t.input.offset().left?n(document).scrollLeft():0,i.top-=r&&i.top===t.input.offset().top+o?n(document).scrollTop():0,i.left-=Math.min(i.left,i.left+u>e&&u<e?Math.abs(i.left+u-e):0),i.top-=Math.min(i.top,i.top+f>s&&f<s?Math.abs(f+o):0),i},_findPos:function(t){for(var i=this._getInst(t),r=this._get(i,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||n.expr.pseudos.hidden(t));)t=t[r?"previousSibling":"nextSibling"];return[(i=n(t).offset()).left,i.top]},_hideDatepicker:function(t){var r,u,i=this._curInst;!i||t&&i!==n.data(t,"datepicker")||this._datepickerShowing&&(r=this._get(i,"showAnim"),u=this._get(i,"duration"),t=function(){n.datepicker._tidyDialog(i)},n.effects&&(n.effects.effect[r]||n.effects[r])?i.dpDiv.hide(r,n.datepicker._get(i,"showOptions"),u,t):i.dpDiv["slideDown"===r?"slideUp":"fadeIn"===r?"fadeOut":"hide"](r?u:null,t),r||t(),this._datepickerShowing=!1,(t=this._get(i,"onClose"))&&t.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),n.blockUI&&(n.unblockUI(),n("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(n){n.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var i;n.datepicker._curInst&&(i=n(t.target),t=n.datepicker._getInst(i[0]),(i[0].id===n.datepicker._mainDivId||0!==i.parents("#"+n.datepicker._mainDivId).length||i.hasClass(n.datepicker.markerClassName)||i.closest("."+n.datepicker._triggerClass).length||!n.datepicker._datepickerShowing||n.datepicker._inDialog&&n.blockUI)&&(!i.hasClass(n.datepicker.markerClassName)||n.datepicker._curInst===t)||n.datepicker._hideDatepicker())},_adjustDate:function(t,i,r){var u=n(t),t=this._getInst(u[0]);this._isDisabledDatepicker(u[0])||(this._adjustInstDate(t,i,r),this._updateDatepicker(t))},_gotoToday:function(t){var r=n(t),i=this._getInst(r[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(t=new Date,i.selectedDay=t.getDate(),i.drawMonth=i.selectedMonth=t.getMonth(),i.drawYear=i.selectedYear=t.getFullYear());this._notifyChange(i);this._adjustDate(r)},_selectMonthYear:function(t,i,r){var u=n(t),t=this._getInst(u[0]);t["selected"+("M"===r?"Month":"Year")]=t["draw"+("M"===r?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10);this._notifyChange(t);this._adjustDate(u)},_selectDay:function(t,i,r,u){var f=n(t);n(u).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0])||((f=this._getInst(f[0])).selectedDay=f.currentDay=parseInt(n("a",u).attr("data-date")),f.selectedMonth=f.currentMonth=i,f.selectedYear=f.currentYear=r,this._selectDate(t,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(t){t=n(t);this._selectDate(t,"")},_selectDate:function(t,i){var r=n(t),t=this._getInst(r[0]);i=null!=i?i:this._formatDate(t);t.input&&t.input.val(i);this._updateAlternate(t);(r=this._get(t,"onSelect"))?r.apply(t.input?t.input[0]:null,[i,t]):t.input&&t.input.trigger("change");t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,r,u=this._get(t,"altField");u&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),r=this._getDate(t),t=this.formatDate(i,r,this._getFormatConfig(t)),n(document).find(u).val(t))},noWeekends:function(n){return n=n.getDay(),[0<n&&n<6,""]},iso8601Week:function(n){var t=new Date(n.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),n=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1},parseDate:function(t,i,r){if(null==t||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;for(var b,v,e,u=0,l=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,l="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10),d=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,g=(r?r.dayNames:null)||this._defaults.dayNames,nt=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,tt=(r?r.monthNames:null)||this._defaults.monthNames,f=-1,o=-1,s=-1,y=-1,p=!1,a=function(n){return n=h+1<t.length&&t.charAt(h+1)===n,n&&h++,n},c=function(n){var t=a(n),t="@"===n?14:"!"===n?20:"y"===n&&t?4:"o"===n?3:2,t=new RegExp("^\\d{"+("y"===n?t:1)+","+t+"}"),t=i.substring(u).match(t);if(!t)throw"Missing number at position "+u;return u+=t[0].length,parseInt(t[0],10)},k=function(t,r,f){var e=-1,r=n.map(a(t)?f:r,function(n,t){return[[t,n]]}).sort(function(n,t){return-(n[1].length-t[1].length)});if(n.each(r,function(n,t){var r=t[1];if(i.substr(u,r.length).toLowerCase()===r.toLowerCase())return e=t[0],u+=r.length,!1}),-1!==e)return e+1;throw"Unknown name at position "+u;},w=function(){if(i.charAt(u)!==t.charAt(h))throw"Unexpected literal at position "+u;u++},h=0;h<t.length;h++)if(p)"'"!==t.charAt(h)||a("'")?w():p=!1;else switch(t.charAt(h)){case"d":s=c("d");break;case"D":k("D",d,g);break;case"o":y=c("o");break;case"m":o=c("m");break;case"M":o=k("M",nt,tt);break;case"y":f=c("y");break;case"@":f=(e=new Date(c("@"))).getFullYear();o=e.getMonth()+1;s=e.getDate();break;case"!":f=(e=new Date((c("!")-this._ticksTo1970)/1e4)).getFullYear();o=e.getMonth()+1;s=e.getDate();break;case"'":a("'")?w():p=!0;break;default:w()}if(u<i.length&&(v=i.substr(u),!/^\s+/.test(v)))throw"Extra/unparsed characters found in date: "+v;if(-1===f?f=(new Date).getFullYear():f<100&&(f+=(new Date).getFullYear()-(new Date).getFullYear()%100+(f<=l?0:-100)),-1<y)for(o=1,s=y;;){if(s<=(b=this._getDaysInMonth(f,o-1)))break;o++;s-=b}if((e=this._daylightSavingAdjust(new Date(f,o-1,s))).getFullYear()!==f||e.getMonth()+1!==o||e.getDate()!==s)throw"Invalid date";return e},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(n,t,i){function e(n,t,i){var r=""+t;if(f(n))for(;r.length<i;)r="0"+r;return r}function s(n,t,i,r){return(f(n)?r:i)[t]}if(!t)return"";var u,h=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,c=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,f=function(t){return t=u+1<n.length&&n.charAt(u+1)===t,t&&u++,t},r="",o=!1;if(t)for(u=0;u<n.length;u++)if(o)"'"!==n.charAt(u)||f("'")?r+=n.charAt(u):o=!1;else switch(n.charAt(u)){case"d":r+=e("d",t.getDate(),2);break;case"D":r+=s("D",t.getDay(),h,c);break;case"o":r+=e("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":r+=e("m",t.getMonth()+1,2);break;case"M":r+=s("M",t.getMonth(),l,a);break;case"y":r+=f("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":r+=t.getTime();break;case"!":r+=1e4*t.getTime()+this._ticksTo1970;break;case"'":f("'")?r+="'":o=!0;break;default:r+=n.charAt(u)}return r},_possibleChars:function(n){for(var i="",r=!1,u=function(i){return i=t+1<n.length&&n.charAt(t+1)===i,i&&t++,i},t=0;t<n.length;t++)if(r)"'"!==n.charAt(t)||u("'")?i+=n.charAt(t):r=!1;else switch(n.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":u("'")?i+="'":r=!0;break;default:i+=n.charAt(t)}return i},_get:function(n,t){return(void 0!==n.settings[t]?n.settings:this._defaults)[t]},_setDateFromField:function(n,t){if(n.input.val()!==n.lastVal){var f=this._get(n,"dateFormat"),r=n.lastVal=n.input?n.input.val():null,u=this._getDefaultDate(n),i=u,e=this._getFormatConfig(n);try{i=this.parseDate(f,r,e)||u}catch(n){r=t?"":r}n.selectedDay=i.getDate();n.drawMonth=n.selectedMonth=i.getMonth();n.drawYear=n.selectedYear=i.getFullYear();n.currentDay=r?i.getDate():0;n.currentMonth=r?i.getMonth():0;n.currentYear=r?i.getFullYear():0;this._adjustInstDate(n)}},_getDefaultDate:function(n){return this._restrictMinMax(n,this._determineDate(n,this._get(n,"defaultDate"),new Date))},_determineDate:function(t,i,r){var f,u,i=null==i||""===i?r:"string"==typeof i?function(i){try{return n.datepicker.parseDate(n.datepicker._get(t,"dateFormat"),i,n.datepicker._getFormatConfig(t))}catch(i){}for(var o=(i.toLowerCase().match(/^c/)?n.datepicker._getDate(t):null)||new Date,f=o.getFullYear(),e=o.getMonth(),r=o.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=s.exec(i);u;){switch(u[2]||"d"){case"d":case"D":r+=parseInt(u[1],10);break;case"w":case"W":r+=7*parseInt(u[1],10);break;case"m":case"M":e+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e));break;case"y":case"Y":f+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e))}u=s.exec(i)}return new Date(f,e,r)}(i):"number"==typeof i?isNaN(i)?r:(f=i,(u=new Date).setDate(u.getDate()+f),u):new Date(i.getTime());return(i=i&&"Invalid Date"===i.toString()?r:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(n){return n?(n.setHours(12<n.getHours()?n.getHours()+2:0),n):null},_setDate:function(n,t,i){var r=!t,u=n.selectedMonth,f=n.selectedYear,t=this._restrictMinMax(n,this._determineDate(n,t,new Date));n.selectedDay=n.currentDay=t.getDate();n.drawMonth=n.selectedMonth=n.currentMonth=t.getMonth();n.drawYear=n.selectedYear=n.currentYear=t.getFullYear();u===n.selectedMonth&&f===n.selectedYear||i||this._notifyChange(n);this._adjustInstDate(n);n.input&&n.input.val(r?"":this._formatDate(n))},_getDate:function(n){return!n.currentYear||n.input&&""===n.input.val()?null:this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay))},_attachHandlers:function(t){var r=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){n.datepicker._adjustDate(i,-r,"M")},next:function(){n.datepicker._adjustDate(i,+r,"M")},hide:function(){n.datepicker._hideDatepicker()},today:function(){n.datepicker._gotoToday(i)},selectDay:function(){return n.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return n.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return n.datepicker._selectMonthYear(i,this,"Y"),!1}};n(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var g,et,ot,l,st,gt,ni,ti,ii,ht,it,ri,ct,rt,c,y,lt,p,at,a,e,vt,ui,yt,w,pt,i,wt,bt,nt,b,ut,o=new Date,kt=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth(),o.getDate())),s=this._get(t,"isRTL"),fi=this._get(t,"showButtonPanel"),tt=this._get(t,"hideIfNoPrevNext"),k=this._get(t,"navigationAsDateFormat"),h=this._getNumberOfMonths(t),r=this._get(t,"showCurrentAtPos"),o=this._get(t,"stepMonths"),dt=1!==h[0]||1!==h[1],ft=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),d=this._getMinMaxDate(t,"min"),v=this._getMinMaxDate(t,"max"),u=t.drawMonth-r,f=t.drawYear;if(u<0&&(u+=12,f--),v)for(g=this._daylightSavingAdjust(new Date(v.getFullYear(),v.getMonth()-h[0]*h[1]+1,v.getDate())),g=d&&g<d?d:g;this._daylightSavingAdjust(new Date(f,u,1))>g;)--u<0&&(u=11,f--);for(t.drawMonth=u,t.drawYear=f,r=this._get(t,"prevText"),r=k?this.formatDate(r,this._daylightSavingAdjust(new Date(f,u-o,1)),this._getFormatConfig(t)):r,et=this._canAdjustMonth(t,-1,f,u)?n("<a>").attr({"class":"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:r}).append(n("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(s?"e":"w")).text(r))[0].outerHTML:tt?"":n("<a>").attr({"class":"ui-datepicker-prev ui-corner-all ui-state-disabled",title:r}).append(n("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(s?"e":"w")).text(r))[0].outerHTML,r=this._get(t,"nextText"),r=k?this.formatDate(r,this._daylightSavingAdjust(new Date(f,u+o,1)),this._getFormatConfig(t)):r,ot=this._canAdjustMonth(t,1,f,u)?n("<a>").attr({"class":"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:r}).append(n("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(s?"w":"e")).text(r))[0].outerHTML:tt?"":n("<a>").attr({"class":"ui-datepicker-next ui-corner-all ui-state-disabled",title:r}).append(n("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(s?"w":"e")).text(r))[0].outerHTML,o=this._get(t,"currentText"),tt=this._get(t,"gotoCurrent")&&t.currentDay?ft:kt,o=k?this.formatDate(o,tt,this._getFormatConfig(t)):o,r="",t.inline||(r=n("<button>").attr({type:"button","class":"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),k="",fi&&(k=n("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(s?r:"").append(this._isInRange(t,tt)?n("<button>").attr({type:"button","class":"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(o):"").append(s?"":r)[0].outerHTML),l=parseInt(this._get(t,"firstDay"),10),l=isNaN(l)?0:l,st=this._get(t,"showWeek"),gt=this._get(t,"dayNames"),ni=this._get(t,"dayNamesMin"),ti=this._get(t,"monthNames"),ii=this._get(t,"monthNamesShort"),ht=this._get(t,"beforeShowDay"),it=this._get(t,"showOtherMonths"),ri=this._get(t,"selectOtherMonths"),ct=this._getDefaultDate(t),rt="",y=0;y<h[0];y++){for(lt="",this.maxRows=4,p=0;p<h[1];p++){if(at=this._daylightSavingAdjust(new Date(f,u,t.selectedDay)),a=" ui-corner-all",e="",dt){if(e+="<div class='ui-datepicker-group",1<h[1])switch(p){case 0:e+=" ui-datepicker-group-first";a=" ui-corner-"+(s?"right":"left");break;case h[1]-1:e+=" ui-datepicker-group-last";a=" ui-corner-"+(s?"left":"right");break;default:e+=" ui-datepicker-group-middle";a=""}e+="'>"}for(e+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+a+"'>"+(/all|left/.test(a)&&0===y?s?ot:et:"")+(/all|right/.test(a)&&0===y?s?et:ot:"")+this._generateMonthYearHeader(t,u,f,d,v,0<y||0<p,ti,ii)+"<\/div><table class='ui-datepicker-calendar'><thead><tr>",vt=st?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"<\/th>":"",c=0;c<7;c++)vt+="<th scope='col'"+(5<=(c+l+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+gt[ui=(c+l)%7]+"'>"+ni[ui]+"<\/span><\/th>";for(e+=vt+"<\/tr><\/thead><tbody>",w=this._getDaysInMonth(f,u),f===t.selectedYear&&u===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,w)),yt=(this._getFirstDayOfMonth(f,u)-l+7)%7,w=Math.ceil((yt+w)/7),pt=dt&&this.maxRows>w?this.maxRows:w,this.maxRows=pt,i=this._daylightSavingAdjust(new Date(f,u,1-yt)),wt=0;wt<pt;wt++){for(e+="<tr>",bt=st?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(i)+"<\/td>":"",c=0;c<7;c++)nt=ht?ht.apply(t.input?t.input[0]:null,[i]):[!0,""],ut=(b=i.getMonth()!==u)&&!ri||!nt[0]||d&&i<d||v&&v<i,bt+="<td class='"+(5<=(c+l+6)%7?" ui-datepicker-week-end":"")+(b?" ui-datepicker-other-month":"")+(i.getTime()===at.getTime()&&u===t.selectedMonth&&t._keyEvent||ct.getTime()===i.getTime()&&ct.getTime()===at.getTime()?" "+this._dayOverClass:"")+(ut?" "+this._unselectableClass+" ui-state-disabled":"")+(b&&!it?"":" "+nt[1]+(i.getTime()===ft.getTime()?" "+this._currentClass:"")+(i.getTime()===kt.getTime()?" ui-datepicker-today":""))+"'"+(b&&!it||!nt[2]?"":" title='"+nt[2].replace(/'/g,"&#39;")+"'")+(ut?"":" data-handler='selectDay' data-event='click' data-month='"+i.getMonth()+"' data-year='"+i.getFullYear()+"'")+">"+(b&&!it?"&#xa0;":ut?"<span class='ui-state-default'>"+i.getDate()+"<\/span>":"<a class='ui-state-default"+(i.getTime()===kt.getTime()?" ui-state-highlight":"")+(i.getTime()===ft.getTime()?" ui-state-active":"")+(b?" ui-priority-secondary":"")+"' href='#' aria-current='"+(i.getTime()===ft.getTime()?"true":"false")+"' data-date='"+i.getDate()+"'>"+i.getDate()+"<\/a>")+"<\/td>",i.setDate(i.getDate()+1),i=this._daylightSavingAdjust(i);e+=bt+"<\/tr>"}11<++u&&(u=0,f++);lt+=e+="<\/tbody><\/table>"+(dt?"<\/div>"+(0<h[0]&&p===h[1]-1?"<div class='ui-datepicker-row-break'><\/div>":""):"")}rt+=lt}return rt+=k,t._keyEvent=!1,rt},_generateMonthYearHeader:function(n,t,i,r,u,f,e,o){var b,k,h,v,s,a,y=this._get(n,"changeMonth"),p=this._get(n,"changeYear"),d=this._get(n,"showMonthAfterYear"),w=this._get(n,"selectMonthLabel"),g=this._get(n,"selectYearLabel"),c="<div class='ui-datepicker-title'>",l="";if(f||!y)l+="<span class='ui-datepicker-month'>"+e[t]+"<\/span>";else{for(b=r&&r.getFullYear()===i,k=u&&u.getFullYear()===i,l+="<select class='ui-datepicker-month' aria-label='"+w+"' data-handler='selectMonth' data-event='change'>",h=0;h<12;h++)(!b||h>=r.getMonth())&&(!k||h<=u.getMonth())&&(l+="<option value='"+h+"'"+(h===t?" selected='selected'":"")+">"+o[h]+"<\/option>");l+="<\/select>"}if(d||(c+=l+(!f&&y&&p?"":"&#xa0;")),!n.yearshtml)if(n.yearshtml="",f||!p)c+="<span class='ui-datepicker-year'>"+i+"<\/span>";else{for(e=this._get(n,"yearRange").split(":"),v=(new Date).getFullYear(),s=(w=function(n){return n=n.match(/c[+\-].*/)?i+parseInt(n.substring(1),10):n.match(/[+\-].*/)?v+parseInt(n,10):parseInt(n,10),isNaN(n)?v:n})(e[0]),a=Math.max(s,w(e[1]||"")),s=r?Math.max(s,r.getFullYear()):s,a=u?Math.min(a,u.getFullYear()):a,n.yearshtml+="<select class='ui-datepicker-year' aria-label='"+g+"' data-handler='selectYear' data-event='change'>";s<=a;s++)n.yearshtml+="<option value='"+s+"'"+(s===i?" selected='selected'":"")+">"+s+"<\/option>";n.yearshtml+="<\/select>";c+=n.yearshtml;n.yearshtml=null}return c+=this._get(n,"yearSuffix"),d&&(c+=(!f&&y&&p?"":"&#xa0;")+l),c+"<\/div>"},_adjustInstDate:function(n,t,i){var r=n.selectedYear+("Y"===i?t:0),u=n.selectedMonth+("M"===i?t:0),t=Math.min(n.selectedDay,this._getDaysInMonth(r,u))+("D"===i?t:0),t=this._restrictMinMax(n,this._daylightSavingAdjust(new Date(r,u,t)));n.selectedDay=t.getDate();n.drawMonth=n.selectedMonth=t.getMonth();n.drawYear=n.selectedYear=t.getFullYear();"M"!==i&&"Y"!==i||this._notifyChange(n)},_restrictMinMax:function(n,t){var i=this._getMinMaxDate(n,"min"),n=this._getMinMaxDate(n,"max"),t=i&&t<i?i:t;return n&&n<t?n:t},_notifyChange:function(n){var t=this._get(n,"onChangeMonthYear");t&&t.apply(n.input?n.input[0]:null,[n.selectedYear,n.selectedMonth+1,n])},_getNumberOfMonths:function(n){return n=this._get(n,"numberOfMonths"),null==n?[1,1]:"number"==typeof n?[1,n]:n},_getMinMaxDate:function(n,t){return this._determineDate(n,this._get(n,t+"Date"),null)},_getDaysInMonth:function(n,t){return 32-this._daylightSavingAdjust(new Date(n,t,32)).getDate()},_getFirstDayOfMonth:function(n,t){return new Date(n,t,1).getDay()},_canAdjustMonth:function(n,t,i,r){var u=this._getNumberOfMonths(n),u=this._daylightSavingAdjust(new Date(i,r+(t<0?t:u[0]*u[1]),1));return t<0&&u.setDate(this._getDaysInMonth(u.getFullYear(),u.getMonth())),this._isInRange(n,u)},_isInRange:function(n,t){var f=this._getMinMaxDate(n,"min"),e=this._getMinMaxDate(n,"max"),r=null,u=null,i=this._get(n,"yearRange");return i&&(n=i.split(":"),i=(new Date).getFullYear(),r=parseInt(n[0],10),u=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(r+=i),n[1].match(/[+\-].*/)&&(u+=i)),(!f||t.getTime()>=f.getTime())&&(!e||t.getTime()<=e.getTime())&&(!r||t.getFullYear()>=r)&&(!u||t.getFullYear()<=u)},_getFormatConfig:function(n){var t=this._get(n,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(n,"dayNamesShort"),dayNames:this._get(n,"dayNames"),monthNamesShort:this._get(n,"monthNamesShort"),monthNames:this._get(n,"monthNames")}},_formatDate:function(n,t,i,r){return t||(n.currentDay=n.selectedDay,n.currentMonth=n.selectedMonth,n.currentYear=n.selectedYear),t=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(r,i,t)):this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay)),this.formatDate(this._get(n,"dateFormat"),t,this._getFormatConfig(n))}});n.fn.datepicker=function(t){if(!this.length)return this;n.datepicker.initialized||(n(document).on("mousedown",n.datepicker._checkExternalClick),n.datepicker.initialized=!0);0===n("#"+n.datepicker._mainDivId).length&&n("body").append(n.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this].concat(i)):n.datepicker._attachDatepicker(this,t)})};n.datepicker=new yi;n.datepicker.initialized=!1;n.datepicker.uuid=(new Date).getTime();n.datepicker.version="1.13.2";n.datepicker;n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());l=!1;n(document).on("mouseup",function(){l=!1});n.widget("ui.mouse",{version:"1.13.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(n){return t._mouseDown(n)}).on("click."+this.widgetName,function(i){if(!0===n.data(i.target,t.widgetName+".preventClickEvent"))return n.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName);this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!l){this._mouseMoved=!1;this._mouseStarted&&this._mouseUp(t);this._mouseDownEvent=t;var i=this,r=1===t.which,u=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&n(t.target).closest(this.options.cancel).length;return r&&!u&&this._mouseCapture(t)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===n.data(t.target,this.widgetName+".preventClickEvent")&&n.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(n){return i._mouseMove(n)},this._mouseUpDelegate=function(n){return i._mouseUp(n)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),l=!0)):!0}},_mouseMove:function(t){if(this._mouseMoved){if(n.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate);this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&n.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t));this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer);this.ignoreMissingWhich=!1;l=!1;t.preventDefault()},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}});n.ui.plugin={add:function(t,i,r){var u,f=n.ui[t].prototype;for(u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i,r){var u,f=n.plugins[t];if(f&&(r||n.element[0].parentNode&&11!==n.element[0].parentNode.nodeType))for(u=0;u<f.length;u++)n.options[f[u][0]]&&f[u][1].apply(n.element,i)}};n.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&n(t).trigger("blur")};n.widget("ui.draggable",n.ui.mouse,{version:"1.13.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative();this.options.addClasses&&this._addClass("ui-draggable");this._setHandleClassName();this._mouseInit()},_setOption:function(n,t){this._super(n,t);"handle"===n&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var i=this.options;return!(this.helper||i.disabled||0<n(t.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=n(this);return n("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=n.ui.safeActiveElement(this.document[0]);n(t.target).closest(i).length||n.ui.safeBlur(i)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),n.ui.ddmanager&&(n.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===n(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),n.ui.ddmanager&&n.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(n){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()};this.offset.click={left:n.pageX-this.offset.left,top:n.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){if(i=this._uiHash(),!1===this._trigger("drag",t,i))return this._mouseUp(new n.Event("mouseup",t)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var r=this,i=!1;return n.ui.ddmanager&&!this.options.dropBehaviour&&(i=n.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?n(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==r._trigger("stop",t)&&r._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),n.ui.ddmanager&&n.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),n.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new n.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!n(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element;this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var i=this.options,r="function"==typeof i.helper,t=r?n(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),r&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(n){"string"==typeof n&&(n=n.split(" "));"left"in(n=Array.isArray(n)?{left:+n[0],top:+n[1]||0}:n)&&(this.offset.click.left=n.left+this.margins.left);"right"in n&&(this.offset.click.left=this.helperProportions.width-n.right+this.margins.left);"top"in n&&(this.offset.click.top=n.top+this.margins.top);"bottom"in n&&(this.offset.click.top=this.helperProportions.height-n.bottom+this.margins.top)},_isRootNode:function(n){return/(html|body)/i.test(n.tagName)||n===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var n=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:n.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f,t,r,i=this.options,u=this.document[0];this.relativeContainer=null;i.containment?"window"!==i.containment?"document"!==i.containment?i.containment.constructor!==Array?("parent"===i.containment&&(i.containment=this.helper[0].parentNode),(r=(t=n(i.containment))[0])&&(f=/(scroll|auto)/.test(t.css("overflow")),this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(f?Math.max(r.scrollWidth,r.offsetWidth):r.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(f?Math.max(r.scrollHeight,r.offsetHeight):r.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=t)):this.containment=i.containment:this.containment=[0,0,n(u).width()-this.helperProportions.width-this.margins.left,(n(u).height()||u.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[n(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,n(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,n(window).scrollLeft()+n(window).width()-this.helperProportions.width-this.margins.left,n(window).scrollTop()+(n(window).height()||u.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(n,t){t=t||this.position;var i="absolute"===n?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(n,t){var i,r=this.options,e=this._isRootNode(this.scrollParent[0]),u=n.pageX,f=n.pageY;return e&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(i=this.relativeContainer?(i=this.relativeContainer.offset(),[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):this.containment,n.pageX-this.offset.click.left<i[0]&&(u=i[0]+this.offset.click.left),n.pageY-this.offset.click.top<i[1]&&(f=i[1]+this.offset.click.top),n.pageX-this.offset.click.left>i[2]&&(u=i[2]+this.offset.click.left),n.pageY-this.offset.click.top>i[3]&&(f=i[3]+this.offset.click.top)),r.grid&&(n=r.grid[1]?this.originalPageY+Math.round((f-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,f=!i||n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-r.grid[1]:n+r.grid[1],n=r.grid[0]?this.originalPageX+Math.round((u-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,u=!i||n-this.offset.click.left>=i[0]||n-this.offset.click.left>i[2]?n:n-this.offset.click.left>=i[0]?n-r.grid[0]:n+r.grid[0]),"y"===r.axis&&(u=this.originalPageX),"x"===r.axis&&(f=this.originalPageY)),{top:f-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:e?0:this.offset.scroll.top),left:u-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:e?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging");this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1;this.destroyOnClear&&this.destroy()},_trigger:function(t,i,r){return r=r||this._uiHash(),n.ui.plugin.call(this,t,[i,r,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),r.offset=this.positionAbs),n.Widget.prototype._trigger.call(this,t,i,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});n.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,r){var u=n.extend({},i,{item:r.element});r.sortables=[];n(r.options.connectToSortable).each(function(){var i=n(this).sortable("instance");i&&!i.options.disabled&&(r.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,u))})},stop:function(t,i,r){var u=n.extend({},i,{item:r.element});r.cancelHelperRemoval=!1;n.each(r.sortables,function(){var n=this;n.isOver?(n.isOver=0,r.cancelHelperRemoval=!0,n.cancelHelperRemoval=!1,n._storedCSS={position:n.placeholder.css("position"),top:n.placeholder.css("top"),left:n.placeholder.css("left")},n._mouseStop(t),n.options.helper=n.options._helper):(n.cancelHelperRemoval=!0,n._trigger("deactivate",t,u))})},drag:function(t,i,r){n.each(r.sortables,function(){var f=!1,u=this;u.positionAbs=r.positionAbs;u.helperProportions=r.helperProportions;u.offset.click=r.offset.click;u._intersectsWith(u.containerCache)&&(f=!0,n.each(r.sortables,function(){return this.positionAbs=r.positionAbs,this.helperProportions=r.helperProportions,this.offset.click=r.offset.click,f=this!==u&&this._intersectsWith(this.containerCache)&&n.contains(u.element[0],this.element[0])?!1:f}));f?(u.isOver||(u.isOver=1,r._parent=i.helper.parent(),u.currentItem=i.helper.appendTo(u.element).data("ui-sortable-item",!0),u.options._helper=u.options.helper,u.options.helper=function(){return i.helper[0]},t.target=u.currentItem[0],u._mouseCapture(t,!0),u._mouseStart(t,!0,!0),u.offset.click.top=r.offset.click.top,u.offset.click.left=r.offset.click.left,u.offset.parent.left-=r.offset.parent.left-u.offset.parent.left,u.offset.parent.top-=r.offset.parent.top-u.offset.parent.top,r._trigger("toSortable",t),r.dropped=u.element,n.each(r.sortables,function(){this.refreshPositions()}),r.currentItem=r.element,u.fromOutside=r),u.currentItem&&(u._mouseDrag(t),i.position=u.position)):u.isOver&&(u.isOver=0,u.cancelHelperRemoval=!0,u.options._revert=u.options.revert,u.options.revert=!1,u._trigger("out",t,u._uiHash(u)),u._mouseStop(t,!0),u.options.revert=u.options._revert,u.options.helper=u.options._helper,u.placeholder&&u.placeholder.remove(),i.helper.appendTo(r._parent),r._refreshOffsets(t),i.position=r._generatePosition(t,!0),r._trigger("fromSortable",t),r.dropped=!1,n.each(r.sortables,function(){this.refreshPositions()}))})}});n.ui.plugin.add("draggable","cursor",{start:function(t,i,r){var u=n("body"),r=r.options;u.css("cursor")&&(r._cursor=u.css("cursor"));u.css("cursor",r.cursor)},stop:function(t,i,r){r=r.options;r._cursor&&n("body").css("cursor",r._cursor)}});n.ui.plugin.add("draggable","opacity",{start:function(t,i,r){i=n(i.helper);r=r.options;i.css("opacity")&&(r._opacity=i.css("opacity"));i.css("opacity",r.opacity)},stop:function(t,i,r){r=r.options;r._opacity&&n(i.helper).css("opacity",r._opacity)}});n.ui.plugin.add("draggable","scroll",{start:function(n,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1));i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,r){var u=r.options,o=!1,e=r.scrollParentNotHidden[0],f=r.document[0];e!==f&&"HTML"!==e.tagName?(u.axis&&"x"===u.axis||(r.overflowOffset.top+e.offsetHeight-t.pageY<u.scrollSensitivity?e.scrollTop=o=e.scrollTop+u.scrollSpeed:t.pageY-r.overflowOffset.top<u.scrollSensitivity&&(e.scrollTop=o=e.scrollTop-u.scrollSpeed)),u.axis&&"y"===u.axis||(r.overflowOffset.left+e.offsetWidth-t.pageX<u.scrollSensitivity?e.scrollLeft=o=e.scrollLeft+u.scrollSpeed:t.pageX-r.overflowOffset.left<u.scrollSensitivity&&(e.scrollLeft=o=e.scrollLeft-u.scrollSpeed))):(u.axis&&"x"===u.axis||(t.pageY-n(f).scrollTop()<u.scrollSensitivity?o=n(f).scrollTop(n(f).scrollTop()-u.scrollSpeed):n(window).height()-(t.pageY-n(f).scrollTop())<u.scrollSensitivity&&(o=n(f).scrollTop(n(f).scrollTop()+u.scrollSpeed))),u.axis&&"y"===u.axis||(t.pageX-n(f).scrollLeft()<u.scrollSensitivity?o=n(f).scrollLeft(n(f).scrollLeft()-u.scrollSpeed):n(window).width()-(t.pageX-n(f).scrollLeft())<u.scrollSensitivity&&(o=n(f).scrollLeft(n(f).scrollLeft()+u.scrollSpeed))));!1!==o&&n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(r,t)}});n.ui.plugin.add("draggable","snap",{start:function(t,i,r){var u=r.options;r.snapElements=[];n(u.snap.constructor!==String?u.snap.items||":data(ui-draggable)":u.snap).each(function(){var t=n(this),i=t.offset();this!==r.element[0]&&r.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})})},drag:function(t,i,r){for(var e,o,s,h,c,l,a,v,w,b=r.options,f=b.snapTolerance,y=i.offset.left,k=y+r.helperProportions.width,p=i.offset.top,d=p+r.helperProportions.height,u=r.snapElements.length-1;0<=u;u--)l=(c=r.snapElements[u].left-r.margins.left)+r.snapElements[u].width,v=(a=r.snapElements[u].top-r.margins.top)+r.snapElements[u].height,k<c-f||l+f<y||d<a-f||v+f<p||!n.contains(r.snapElements[u].item.ownerDocument,r.snapElements[u].item)?(r.snapElements[u].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item})),r.snapElements[u].snapping=!1):("inner"!==b.snapMode&&(e=Math.abs(a-d)<=f,o=Math.abs(v-p)<=f,s=Math.abs(c-k)<=f,h=Math.abs(l-y)<=f,e&&(i.position.top=r._convertPositionTo("relative",{top:a-r.helperProportions.height,left:0}).top),o&&(i.position.top=r._convertPositionTo("relative",{top:v,left:0}).top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c-r.helperProportions.width}).left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:l}).left)),w=e||o||s||h,"outer"!==b.snapMode&&(e=Math.abs(a-p)<=f,o=Math.abs(v-d)<=f,s=Math.abs(c-y)<=f,h=Math.abs(l-k)<=f,e&&(i.position.top=r._convertPositionTo("relative",{top:a,left:0}).top),o&&(i.position.top=r._convertPositionTo("relative",{top:v-r.helperProportions.height,left:0}).top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c}).left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:l-r.helperProportions.width}).left)),!r.snapElements[u].snapping&&(e||o||s||h||w)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item})),r.snapElements[u].snapping=e||o||s||h||w)}});n.ui.plugin.add("draggable","stack",{start:function(t,i,r){var u,r=r.options,r=n.makeArray(n(r.stack)).sort(function(t,i){return(parseInt(n(t).css("zIndex"),10)||0)-(parseInt(n(i).css("zIndex"),10)||0)});r.length&&(u=parseInt(n(r[0]).css("zIndex"),10)||0,n(r).each(function(t){n(this).css("zIndex",u+t)}),this.css("zIndex",u+r.length))}});n.ui.plugin.add("draggable","zIndex",{start:function(t,i,r){i=n(i.helper);r=r.options;i.css("zIndex")&&(r._zIndex=i.css("zIndex"));i.css("zIndex",r.zIndex)},stop:function(t,i,r){r=r.options;r._zIndex&&n(i.helper).css("zIndex",r._zIndex)}});n.ui.draggable;n.widget("ui.resizable",n.ui.mouse,{version:"1.13.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(n){return parseFloat(n)||0},_isNumber:function(n){return!isNaN(parseFloat(n))},_hasScroll:function(t,i){if("hidden"===n(t).css("overflow"))return!1;var r=i&&"left"===i?"scrollLeft":"scrollTop",i=!1;if(0<t[r])return!0;try{t[r]=1;i=0<t[r];t[r]=0}catch(t){}return i},_create:function(){var r,t=this.options,i=this;this._addClass("ui-resizable");n.extend(this,{_aspectRatio:!!t.aspectRatio,aspectRatio:t.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:t.helper||t.ghost||t.animate?t.helper||"ui-resizable-helper":null});this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(n("<div class='ui-wrapper'><\/div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,r={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(r),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(r),this._proportionallyResize());this._setupHandles();t.autoHide&&n(this.element).on("mouseenter",function(){t.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){t.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())});this._mouseInit()},_destroy:function(){function i(t){n(t).removeData("resizable").removeData("ui-resizable").off(".resizable")}this._mouseDestroy();this._addedHandles.remove();var t;return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(n,t){switch(this._super(n,t),n){case"handles":this._removeHandles();this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!t}},_setupHandles:function(){var i,r,u,o,t,f=this.options,e=this;if(this.handles=f.handles||(n(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=n(),this._addedHandles=n(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),u=this.handles.split(","),this.handles={},r=0;r<u.length;r++)o="ui-resizable-"+(i=String.prototype.trim.call(u[r])),t=n("<div>"),this._addClass(t,"ui-resizable-handle "+o),t.css({zIndex:f.zIndex}),this.handles[i]=".ui-resizable-"+i,this.element.children(this.handles[i]).length||(this.element.append(t),this._addedHandles=this._addedHandles.add(t));this._renderAxis=function(t){var i,r,u;for(i in t=t||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=n(this.handles[i]),this._on(this.handles[i],{mousedown:e._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(r=n(this.handles[i],this.element),u=/sw|ne|nw|se|n|s/.test(i)?r.outerHeight():r.outerWidth(),r=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(r,u),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])};this._renderAxis(this.element);this._handles=this._handles.add(this.element.find(".ui-resizable-handle"));this._handles.disableSelection();this._handles.on("mouseover",function(){e.resizing||(this.className&&(t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),e.axis=t&&t[1]?t[1]:"se")});f.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var i,r,u=!1;for(i in this.handles)((r=n(this.handles[i])[0])===t.target||n.contains(r,t.target))&&(u=!0);return!this.options.disabled&&u},_mouseStart:function(t){var u,f,r=this.options,i=this.element;return this.resizing=!0,this._renderProxy(),u=this._num(this.helper.css("left")),f=this._num(this.helper.css("top")),r.containment&&(u+=n(r.containment).scrollLeft()||0,f+=n(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:u,top:f},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:i.width(),height:i.height()},this.originalSize=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()},this.originalPosition={left:u,top:f},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=n(".ui-resizable-"+this.axis).css("cursor"),n("body").css("cursor","auto"===r?this.axis+"-resize":r),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i=this.originalMousePosition,r=this.axis,u=t.pageX-i.left||0,i=t.pageY-i.top||0,r=this._change[r];return this._updatePrevProperties(),r&&(i=r.apply(this,[t,u,i]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),n.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var u,r,f,e=this.options,i=this;return this._helper&&(f=(u=(r=this._proportionallyResizeElements).length&&/textarea/i.test(r[0].nodeName))&&this._hasScroll(r[0],"left")?0:i.sizeDiff.height,r=u?0:i.sizeDiff.width,u={width:i.helper.width()-r,height:i.helper.height()-f},r=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,f=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null,e.animate||this.element.css(n.extend(u,{top:f,left:r})),i.helper.height(i.size.height),i.helper.width(i.size.width),this._helper&&!e.animate&&this._proportionallyResize()),n("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left};this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var n={};return this.position.top!==this.prevPosition.top&&(n.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(n.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(n.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(n.height=this.size.height+"px"),this.helper.css(n),n},_updateVirtualBoundaries:function(n){var r,u,i=this.options,t={minWidth:this._isNumber(i.minWidth)?i.minWidth:0,maxWidth:this._isNumber(i.maxWidth)?i.maxWidth:1/0,minHeight:this._isNumber(i.minHeight)?i.minHeight:0,maxHeight:this._isNumber(i.maxHeight)?i.maxHeight:1/0};(this._aspectRatio||n)&&(r=t.minHeight*this.aspectRatio,u=t.minWidth/this.aspectRatio,i=t.maxHeight*this.aspectRatio,n=t.maxWidth/this.aspectRatio,r>t.minWidth&&(t.minWidth=r),u>t.minHeight&&(t.minHeight=u),i<t.maxWidth&&(t.maxWidth=i),n<t.maxHeight&&(t.maxHeight=n));this._vBoundaries=t},_updateCache:function(n){this.offset=this.helper.offset();this._isNumber(n.left)&&(this.position.left=n.left);this._isNumber(n.top)&&(this.position.top=n.top);this._isNumber(n.height)&&(this.size.height=n.height);this._isNumber(n.width)&&(this.size.width=n.width)},_updateRatio:function(n){var t=this.position,i=this.size,r=this.axis;return this._isNumber(n.height)?n.width=n.height*this.aspectRatio:this._isNumber(n.width)&&(n.height=n.width/this.aspectRatio),"sw"===r&&(n.left=t.left+(i.width-n.width),n.top=null),"nw"===r&&(n.top=t.top+(i.height-n.height),n.left=t.left+(i.width-n.width)),n},_respectSize:function(n){var t=this._vBoundaries,i=this.axis,r=this._isNumber(n.width)&&t.maxWidth&&t.maxWidth<n.width,u=this._isNumber(n.height)&&t.maxHeight&&t.maxHeight<n.height,f=this._isNumber(n.width)&&t.minWidth&&t.minWidth>n.width,e=this._isNumber(n.height)&&t.minHeight&&t.minHeight>n.height,o=this.originalPosition.left+this.originalSize.width,s=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),i=/nw|ne|n/.test(i);return f&&(n.width=t.minWidth),e&&(n.height=t.minHeight),r&&(n.width=t.maxWidth),u&&(n.height=t.maxHeight),f&&h&&(n.left=o-t.minWidth),r&&h&&(n.left=o-t.maxWidth),e&&i&&(n.top=s-t.minHeight),u&&i&&(n.top=s-t.maxHeight),n.width||n.height||n.left||!n.top?n.width||n.height||n.top||!n.left||(n.left=null):n.top=null,n},_getPaddingPlusBorderDimensions:function(n){for(var t=0,i=[],r=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],u=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")];t<4;t++)i[t]=parseFloat(r[t])||0,i[t]+=parseFloat(u[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var n,t=0,i=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)n=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(n)),n.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset();this._helper?(this.helper=this.helper||n("<div><\/div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(n,t){return{width:this.originalSize.width+t}},w:function(n,t){var i=this.originalSize;return{left:this.originalPosition.left+t,width:i.width-t}},n:function(n,t,i){var r=this.originalSize;return{top:this.originalPosition.top+i,height:r.height-i}},s:function(n,t,i){return{height:this.originalSize.height+i}},se:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},sw:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,r]))},ne:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},nw:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,r]))}},_propagate:function(t,i){n.ui.plugin.call(this,t,[i,this.ui()]);"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});n.ui.plugin.add("resizable","animate",{stop:function(t){var i=n(this).resizable("instance"),o=i.options,r=i._proportionallyResizeElements,u=r.length&&/textarea/i.test(r[0].nodeName),f=u&&i._hasScroll(r[0],"left")?0:i.sizeDiff.height,e=u?0:i.sizeDiff.width,u={width:i.size.width-e,height:i.size.height-f},e=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,f=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(n.extend(u,f&&e?{top:f,left:e}:{}),{duration:o.animateDuration,easing:o.animateEasing,step:function(){var u={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};r&&r.length&&n(r[0]).css({width:u.width,height:u.height});i._updateCache(u);i._propagate("resize",t)}})}});n.ui.plugin.add("resizable","containment",{start:function(){var u,e,t=n(this).resizable("instance"),o=t.options,f=t.element,i=o.containment,r=i instanceof n?i.get(0):/parent/.test(i)?f.parent().get(0):i;r&&(t.containerElement=n(r),/document/.test(i)||i===document?(t.containerOffset={left:0,top:0},t.containerPosition={left:0,top:0},t.parentData={element:n(document),left:0,top:0,width:n(document).width(),height:n(document).height()||document.body.parentNode.scrollHeight}):(u=n(r),e=[],n(["Top","Right","Left","Bottom"]).each(function(n,i){e[n]=t._num(u.css("padding"+i))}),t.containerOffset=u.offset(),t.containerPosition=u.position(),t.containerSize={height:u.innerHeight()-e[3],width:u.innerWidth()-e[1]},o=t.containerOffset,f=t.containerSize.height,i=t.containerSize.width,i=t._hasScroll(r,"left")?r.scrollWidth:i,f=t._hasScroll(r)?r.scrollHeight:f,t.parentData={element:r,left:o.left,top:o.top,width:i,height:f}))},resize:function(t){var i=n(this).resizable("instance"),o=i.options,r=i.containerOffset,u=i.position,f=i._aspectRatio||t.shiftKey,e={top:0,left:0},s=i.containerElement,t=!0;s[0]!==document&&/static/.test(s.css("position"))&&(e=r);u.left<(i._helper?r.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-r.left:i.position.left-e.left),f&&(i.size.height=i.size.width/i.aspectRatio,t=!1),i.position.left=o.helper?r.left:0);u.top<(i._helper?r.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-r.top:i.position.top),f&&(i.size.width=i.size.height*i.aspectRatio,t=!1),i.position.top=i._helper?r.top:0);o=i.containerElement.get(0)===i.element.parent().get(0);u=/relative|absolute/.test(i.containerElement.css("position"));o&&u?(i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top):(i.offset.left=i.element.offset().left,i.offset.top=i.element.offset().top);u=Math.abs(i.sizeDiff.width+(i._helper?i.offset.left-e.left:i.offset.left-r.left));r=Math.abs(i.sizeDiff.height+(i._helper?i.offset.top-e.top:i.offset.top-r.top));u+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-u,f&&(i.size.height=i.size.width/i.aspectRatio,t=!1));r+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-r,f&&(i.size.width=i.size.height*i.aspectRatio,t=!1));t||(i.position.left=i.prevPosition.left,i.position.top=i.prevPosition.top,i.size.width=i.prevSize.width,i.size.height=i.prevSize.height)},stop:function(){var t=n(this).resizable("instance"),r=t.options,u=t.containerOffset,f=t.containerPosition,e=t.containerElement,i=n(t.helper),o=i.offset(),s=i.outerWidth()-t.sizeDiff.width,i=i.outerHeight()-t.sizeDiff.height;t._helper&&!r.animate&&/relative/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:i});t._helper&&!r.animate&&/static/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:i})}});n.ui.plugin.add("resizable","alsoResize",{start:function(){var t=n(this).resizable("instance").options;n(t.alsoResize).each(function(){var t=n(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var r=n(this).resizable("instance"),e=r.options,u=r.originalSize,f=r.originalPosition,o={height:r.size.height-u.height||0,width:r.size.width-u.width||0,top:r.position.top-f.top||0,left:r.position.left-f.left||0};n(e.alsoResize).each(function(){var t=n(this),u=n(this).data("ui-resizable-alsoresize"),r={},f=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];n.each(f,function(n,t){var i=(u[t]||0)+(o[t]||0);i&&0<=i&&(r[t]=i||null)});t.css(r)})},stop:function(){n(this).removeData("ui-resizable-alsoresize")}});n.ui.plugin.add("resizable","ghost",{start:function(){var t=n(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone();t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0});t._addClass(t.ghost,"ui-resizable-ghost");!1!==n.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost);t.ghost.appendTo(t.helper)},resize:function(){var t=n(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=n(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}});n.ui.plugin.add("resizable","grid",{resize:function(){var c,t=n(this).resizable("instance"),i=t.options,h=t.size,o=t.originalSize,s=t.originalPosition,l=t.axis,a="number"==typeof i.grid?[i.grid,i.grid]:i.grid,f=a[0]||1,e=a[1]||1,v=Math.round((h.width-o.width)/f)*f,y=Math.round((h.height-o.height)/e)*e,r=o.width+v,u=o.height+y,p=i.maxWidth&&i.maxWidth<r,w=i.maxHeight&&i.maxHeight<u,b=i.minWidth&&i.minWidth>r,h=i.minHeight&&i.minHeight>u;i.grid=a;b&&(r+=f);h&&(u+=e);p&&(r-=f);w&&(u-=e);/^(se|s|e)$/.test(l)?(t.size.width=r,t.size.height=u):/^(ne)$/.test(l)?(t.size.width=r,t.size.height=u,t.position.top=s.top-y):/^(sw)$/.test(l)?(t.size.width=r,t.size.height=u,t.position.left=s.left-v):((u-e<=0||r-f<=0)&&(c=t._getPaddingPlusBorderDimensions(this)),0<u-e?(t.size.height=u,t.position.top=s.top-y):(u=e-c.height,t.size.height=u,t.position.top=s.top+o.height-u),0<r-f?(t.size.width=r,t.position.left=s.left-v):(r=f-c.width,t.size.width=r,t.position.left=s.left+o.width-r))}});n.ui.resizable;n.widget("ui.dialog",{version:"1.13.2",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=n(this).css(t).offset().top;i<0&&n(this).css("top",t.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr("title");null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle);this.options.disabled&&(this.options.disabled=!1);this._createWrapper();this.element.show().removeAttr("title").appendTo(this.uiDialog);this._addClass("ui-dialog-content","ui-widget-content");this._createTitlebar();this._createButtonPane();this.options.draggable&&n.fn.draggable&&this._makeDraggable();this.options.resizable&&n.fn.resizable&&this._makeResizable();this._isOpen=!1;this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?n(t):this.document.find(t||"body").eq(0)},_destroy:function(){var n,t=this.originalPosition;this._untrackInstance();this._destroyOverlay();this.element.removeUniqueId().css(this.originalCss).detach();this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);(n=t.parent.children().eq(t.index)).length&&n[0]!==this.element[0]?n.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:n.noop,enable:n.noop,close:function(t){var i=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||n.ui.safeBlur(n.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,i){var u=!1,r=this.uiDialog.siblings(".ui-front:visible").map(function(){return+n(this).css("z-index")}).get(),r=Math.max.apply(null,r);return r>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",r+1),u=!0),u&&!i&&this._trigger("focus",t),u},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=n(n.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable();t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var n=this._focusedElement;(n=(n=(n=(n=(n=n||this.element.find("[autofocus]")).length?n:this.element.find(":tabbable")).length?n:this.uiDialogButtonPane.find(":tabbable")).length?n:this.uiDialogTitlebarClose.filter(":tabbable")).length?n:this.uiDialog).eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=n.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||n.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(n){n.preventDefault();this._restoreTabbableFocus();this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=n("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo());this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front");this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===n.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);var i,r,u;t.keyCode!==n.ui.keyCode.TAB||t.isDefaultPrevented()||(i=this.uiDialog.find(":tabbable"),r=i.first(),u=i.last(),t.target!==u[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==r[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){u.trigger("focus")}),t.preventDefault()):(this._delay(function(){r.trigger("focus")}),t.preventDefault()))},mousedown:function(n){this._moveToTop(n)&&this._focusTabbable()}});this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=n("<div>");this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix");this._on(this.uiDialogTitlebar,{mousedown:function(t){n(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}});this.uiDialogTitlebarClose=n("<button type='button'><\/button>").button({label:n("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar);this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close");this._on(this.uiDialogTitlebarClose,{click:function(n){n.preventDefault();this.close(n)}});t=n("<span>").uniqueId().prependTo(this.uiDialogTitlebar);this._addClass(t,"ui-dialog-title");this._title(t);this.uiDialogTitlebar.prependTo(this.uiDialog);this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(n){this.options.title?n.text(this.options.title):n.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=n("<div>");this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix");this.uiButtonSet=n("<div>").appendTo(this.uiDialogButtonPane);this._addClass(this.uiButtonSet,"ui-dialog-buttonset");this._createButtons()},_createButtons:function(){var i=this,t=this.options.buttons;this.uiDialogButtonPane.remove();this.uiButtonSet.empty();n.isEmptyObject(t)||Array.isArray(t)&&!t.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(n.each(t,function(t,r){var u;r=n.extend({type:"button"},r="function"==typeof r?{click:r,text:t}:r);u=r.click;t={icon:r.icon,iconPosition:r.iconPosition,showLabel:r.showLabel,icons:r.icons,text:r.text};delete r.click;delete r.icon;delete r.iconPosition;delete r.showLabel;delete r.icons;"boolean"==typeof r.text&&delete r.text;n("<button><\/button>",r).button(t).appendTo(i.uiButtonSet).on("click",function(){u.apply(i.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function i(n){return{position:n.position,offset:n.offset}}var t=this,r=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(r,u){t._addClass(n(this),"ui-dialog-dragging");t._blockFrames();t._trigger("dragStart",r,i(u))},drag:function(n,r){t._trigger("drag",n,i(r))},stop:function(u,f){var e=f.offset.left-t.document.scrollLeft(),o=f.offset.top-t.document.scrollTop();r.position={my:"left top",at:"left"+(0<=e?"+":"")+e+" top"+(0<=o?"+":"")+o,of:t.window};t._removeClass(n(this),"ui-dialog-dragging");t._unblockFrames();t._trigger("dragStop",u,i(f))}})},_makeResizable:function(){function u(n){return{originalPosition:n.originalPosition,originalSize:n.originalSize,position:n.position,size:n.size}}var t=this,i=this.options,r=i.resizable,f=this.uiDialog.css("position"),r="string"==typeof r?r:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:r,start:function(i,r){t._addClass(n(this),"ui-dialog-resizing");t._blockFrames();t._trigger("resizeStart",i,u(r))},resize:function(n,i){t._trigger("resize",n,u(i))},stop:function(r,f){var e=t.uiDialog.offset(),o=e.left-t.document.scrollLeft(),e=e.top-t.document.scrollTop();i.height=t.uiDialog.height();i.width=t.uiDialog.width();i.position={my:"left top",at:"left"+(0<=o?"+":"")+o+" top"+(0<=e?"+":"")+e,of:t.window};t._removeClass(n(this),"ui-dialog-resizing");t._unblockFrames();t._trigger("resizeStop",r,u(f))}}).css("position",f)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget();this._focusedElement=n(t.target)}})},_makeFocusTarget:function(){this._untrackInstance();this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),i=n.inArray(this,t);-1!==i&&t.splice(i,1)},_trackingInstances:function(){var n=this.document.data("ui-dialog-instances");return n||this.document.data("ui-dialog-instances",n=[]),n},_minHeight:function(){var n=this.options;return"auto"===n.height?n.minHeight:Math.min(n.minHeight,n.height)},_position:function(){var n=this.uiDialog.is(":visible");n||this.uiDialog.show();this.uiDialog.position(this.options.position);n||this.uiDialog.hide()},_setOptions:function(t){var i=this,r=!1,u={};n.each(t,function(n,t){i._setOption(n,t);n in i.sizeRelatedOptions&&(r=!0);n in i.resizableRelatedOptions&&(u[n]=t)});r&&(this._size(),this._position());this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",u)},_setOption:function(t,i){var r,u=this.uiDialog;"disabled"!==t&&(this._super(t,i),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:n("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((r=u.is(":data(ui-draggable)"))&&!i&&u.draggable("destroy"),!r&&i&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((r=u.is(":data(ui-resizable)"))&&!i&&u.resizable("destroy"),r&&"string"==typeof i&&u.resizable("option","handles",i),r||!1===i||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,i,r,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});n.minWidth>n.width&&(n.width=n.minWidth);t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight();i=Math.max(0,n.minHeight-t);r="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none";"auto"===n.height?this.element.css({minHeight:i,maxHeight:r,height:"auto"}):this.element.height(Math.max(0,n.height-t));this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=n(this);return n("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!n(t.target).closest(".ui-dialog").length||!!n(t.target).closest(".ui-datepicker").length},_createOverlay:function(){var t,i;this.options.modal&&(t=n.fn.jquery.substring(0,4),i=!0,this._delay(function(){i=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(n){var r;i||(r=this._trackingInstances()[0])._allowInteraction(n)||(n.preventDefault(),r._focusTabbable(),"3.4."!==t&&"3.5."!==t||r._delay(r._restoreTabbableFocus))}.bind(this)),this.overlay=n("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var n;this.options.modal&&this.overlay&&((n=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",n):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}});!1!==n.uiBackCompat&&n.widget("ui.dialog",n.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super();this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(n,t){"dialogClass"===n&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t);this._superApply(arguments)}});n.ui.dialog;n.widget("ui.droppable",{version:"1.13.2",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var n,t=this.options,i=t.accept;this.isover=!1;this.isout=!0;this.accept="function"==typeof i?i:function(n){return n.is(i)};this.proportions=function(){if(!arguments.length)return n=n||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};n=arguments[0]};this._addToManager(t.scope);t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){n.ui.ddmanager.droppables[t]=n.ui.ddmanager.droppables[t]||[];n.ui.ddmanager.droppables[t].push(this)},_splice:function(n){for(var t=0;t<n.length;t++)n[t]===this&&n.splice(t,1)},_destroy:function(){var t=n.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,i){var r;"accept"===t?this.accept="function"==typeof i?i:function(n){return n.is(i)}:"scope"===t&&(r=n.ui.ddmanager.droppables[this.options.scope],this._splice(r),this._addToManager(i));this._super(t,i)},_activate:function(t){var i=n.ui.ddmanager.current;this._addActiveClass();i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=n.ui.ddmanager.current;this._removeActiveClass();i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var r=i||n.ui.ddmanager.current,u=!1;return!(!r||(r.currentItem||r.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=n(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===r.options.scope&&i.accept.call(i.element[0],r.currentItem||r.element)&&n.ui.intersect(r,n.extend(i,{offset:i.element.offset()}),i.options.tolerance,t))return!(u=!0)}),!u&&!!this.accept.call(this.element[0],r.currentItem||r.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(r)),this.element))},ui:function(n){return{draggable:n.currentItem||n.element,helper:n.helper,position:n.position,offset:n.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});n.ui.intersect=function(n,t,i,r){if(!t.offset)return!1;var e=(n.positionAbs||n.position.absolute).left+n.margins.left,o=(n.positionAbs||n.position.absolute).top+n.margins.top,s=e+n.helperProportions.width,h=o+n.helperProportions.height,u=t.offset.left,f=t.offset.top,c=u+t.proportions().width,l=f+t.proportions().height;switch(i){case"fit":return u<=e&&s<=c&&f<=o&&h<=l;case"intersect":return u<e+n.helperProportions.width/2&&s-n.helperProportions.width/2<c&&f<o+n.helperProportions.height/2&&h-n.helperProportions.height/2<l;case"pointer":return bi(r.pageY,f,t.proportions().height)&&bi(r.pageX,u,t.proportions().width);case"touch":return(f<=o&&o<=l||f<=h&&h<=l||o<f&&l<h)&&(u<=e&&e<=c||u<=s&&s<=c||e<u&&c<s);default:return!1}};!(n.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var r,f,u=n.ui.ddmanager.droppables[t.options.scope]||[],o=i?i.type:null,e=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();n:for(r=0;r<u.length;r++)if(!(u[r].options.disabled||t&&!u[r].accept.call(u[r].element[0],t.currentItem||t.element))){for(f=0;f<e.length;f++)if(e[f]===u[r].element[0]){u[r].proportions().height=0;continue n}u[r].visible="none"!==u[r].element.css("display");u[r].visible&&("mousedown"===o&&u[r]._activate.call(u[r],i),u[r].offset=u[r].element.offset(),u[r].proportions({width:u[r].element[0].offsetWidth,height:u[r].element[0].offsetHeight}))}},drop:function(t,i){var r=!1;return n.each((n.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&n.ui.intersect(t,this,this.options.tolerance,i)&&(r=this._drop.call(this,i)||r),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),r},dragStart:function(t,i){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&n.ui.ddmanager.prepareOffsets(t,i);n.each(n.ui.ddmanager.droppables[t.options.scope]||[],function(){var r,e,f,u;this.options.disabled||this.greedyChild||!this.visible||(u=!(f=n.ui.intersect(t,this,this.options.tolerance,i))&&this.isover?"isout":f&&!this.isover?"isover":null)&&(this.options.greedy&&(e=this.options.scope,(f=this.element.parents(":data(ui-droppable)").filter(function(){return n(this).droppable("instance").options.scope===e})).length&&((r=n(f[0]).droppable("instance")).greedyChild="isover"===u)),r&&"isover"===u&&(r.isover=!1,r.isout=!0,r._out.call(r,i)),this[u]=!0,this["isout"===u?"isover":"isout"]=!1,this["isover"===u?"_over":"_out"].call(this,i),r&&"isout"===u&&(r.isout=!1,r.isover=!0,r._over.call(r,i)))})},dragStop:function(t,i){t.element.parentsUntil("body").off("scroll.droppable");t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)}})!==n.uiBackCompat&&n.widget("ui.droppable",n.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super();this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super();this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super();this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super();this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});n.ui.droppable;n.widget("ui.progressbar",{version:"1.13.2",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.attr({role:"progressbar","aria-valuemin":this.min});this._addClass("ui-progressbar","ui-widget ui-widget-content");this.valueDiv=n("<div>").appendTo(this.element);this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header");this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow");this.valueDiv.remove()},value:function(n){if(void 0===n)return this.options.value;this.options.value=this._constrainedValue(n);this._refreshValue()},_constrainedValue:function(n){return void 0===n&&(n=this.options.value),this.indeterminate=!1===n,"number"!=typeof n&&(n=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,n))},_setOptions:function(n){var t=n.value;delete n.value;this._super(n);this.options.value=this._constrainedValue(t);this._refreshValue()},_setOption:function(n,t){"max"===n&&(t=Math.max(this.min,t));this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this.element.attr("aria-disabled",n);this._toggleClass(null,"ui-state-disabled",!!n)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(i.toFixed(0)+"%");this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate);this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=n("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null));this.oldValue!==t&&(this.oldValue=t,this._trigger("change"));t===this.options.max&&this._trigger("complete")}});n.widget("ui.selectable",n.ui.mouse,{version:"1.13.2",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t=this;this._addClass("ui-selectable");this.dragged=!1;this.refresh=function(){t.elementPos=n(t.element[0]).offset();t.selectees=n(t.options.filter,t.element[0]);t._addClass(t.selectees,"ui-selectee");t.selectees.each(function(){var i=n(this),r=i.offset(),r={left:r.left-t.elementPos.left,top:r.top-t.elementPos.top};n.data(this,"selectable-item",{element:this,$element:i,left:r.left,top:r.top,right:r.left+i.outerWidth(),bottom:r.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})};this.refresh();this._mouseInit();this.helper=n("<div>");this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item");this._mouseDestroy()},_mouseStart:function(t){var i=this,r=this.options;this.opos=[t.pageX,t.pageY];this.elementPos=n(this.element[0]).offset();this.options.disabled||(this.selectees=n(r.filter,this.element[0]),this._trigger("start",t),n(r.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),r.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var r=n.data(this,"selectable-item");r.startselected=!0;t.metaKey||t.ctrlKey||(i._removeClass(r.$element,"ui-selected"),r.selected=!1,i._addClass(r.$element,"ui-unselecting"),r.unselecting=!0,i._trigger("unselecting",t,{unselecting:r.element}))}),n(t.target).parents().addBack().each(function(){var u,r=n.data(this,"selectable-item");if(r)return u=!t.metaKey&&!t.ctrlKey||!r.$element.hasClass("ui-selected"),i._removeClass(r.$element,u?"ui-unselecting":"ui-selected")._addClass(r.$element,u?"ui-selecting":"ui-unselecting"),r.unselecting=!u,r.selecting=u,(r.selected=u)?i._trigger("selecting",t,{selecting:r.element}):i._trigger("unselecting",t,{unselecting:r.element}),!1}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var o,i=this,s=this.options,r=this.opos[0],u=this.opos[1],f=t.pageX,e=t.pageY;return f<r&&(o=f,f=r,r=o),e<u&&(o=e,e=u,u=o),this.helper.css({left:r,top:u,width:f-r,height:e-u}),this.selectees.each(function(){var o=n.data(this,"selectable-item"),c=!1,h={};o&&o.element!==i.element[0]&&(h.left=o.left+i.elementPos.left,h.right=o.right+i.elementPos.left,h.top=o.top+i.elementPos.top,h.bottom=o.bottom+i.elementPos.top,"touch"===s.tolerance?c=!(h.left>f||h.right<r||h.top>e||h.bottom<u):"fit"===s.tolerance&&(c=h.left>r&&h.right<f&&h.top>u&&h.bottom<e),c?(o.selected&&(i._removeClass(o.$element,"ui-selected"),o.selected=!1),o.unselecting&&(i._removeClass(o.$element,"ui-unselecting"),o.unselecting=!1),o.selecting||(i._addClass(o.$element,"ui-selecting"),o.selecting=!0,i._trigger("selecting",t,{selecting:o.element}))):(o.selecting&&((t.metaKey||t.ctrlKey)&&o.startselected?(i._removeClass(o.$element,"ui-selecting"),o.selecting=!1,i._addClass(o.$element,"ui-selected"),o.selected=!0):(i._removeClass(o.$element,"ui-selecting"),o.selecting=!1,o.startselected&&(i._addClass(o.$element,"ui-unselecting"),o.unselecting=!0),i._trigger("unselecting",t,{unselecting:o.element}))),o.selected&&(t.metaKey||t.ctrlKey||o.startselected||(i._removeClass(o.$element,"ui-selected"),o.selected=!1,i._addClass(o.$element,"ui-unselecting"),o.unselecting=!0,i._trigger("unselecting",t,{unselecting:o.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,n(".ui-unselecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");i._removeClass(r.$element,"ui-unselecting");r.unselecting=!1;r.startselected=!1;i._trigger("unselected",t,{unselected:r.element})}),n(".ui-selecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");i._removeClass(r.$element,"ui-selecting")._addClass(r.$element,"ui-selected");r.selecting=!1;r.selected=!0;r.startselected=!0;i._trigger("selected",t,{selected:r.element})}),this._trigger("stop",t),this.helper.remove(),!1}});n.widget("ui.selectmenu",[n.ui.formResetMixin,{version:"1.13.2",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"};this._drawButton();this._drawMenu();this._bindFormResetHandler();this._rendered=!1;this.menuItems=n()},_drawButton:function(){var t,i=this,r=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button);this._on(this.labels,{click:function(n){this.button.trigger("focus");n.preventDefault()}});this.element.hide();this.button=n("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element);this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget");t=n("<span>").appendTo(this.button);this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button);this.buttonItem=this._renderButtonItem(r).appendTo(this.button);!1!==this.options.width&&this._resizeButton();this._on(this.button,this._buttonEvents);this.button.one("focusin",function(){i._rendered||i._refreshMenu()})},_drawMenu:function(){var t=this;this.menu=n("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu});this.menuWrap=n("<div>").append(this.menu);this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front");this.menuWrap.appendTo(this._appendTo());this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(n,i){n.preventDefault();t._setSelection();t._select(i.item.data("ui-selectmenu-item"),n)},focus:function(n,i){i=i.item.data("ui-selectmenu-item");null!=t.focusIndex&&i.index!==t.focusIndex&&(t._trigger("focus",n,{item:i}),t.isOpen||t._select(i,n));t.focusIndex=i.index;t.button.attr("aria-activedescendant",t.menuItems.eq(i.index).attr("id"))}}).menu("instance");this.menuInstance._off(this.menu,"mouseleave");this.menuInstance._closeOnDocumentClick=function(){return!1};this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu();this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{}));null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var n=this.element.find("option");this.menu.empty();this._parseOptions(n);this._renderMenu(this.menu,this.items);this.menuInstance.refresh();this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper");this._rendered=!0;n.length&&(n=this._getSelectedItem(),this.menuInstance.focus(null,n),this._setAria(n.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(n){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",n)))},_position:function(){this.menuWrap.position(n.extend({of:this.button},this.options.position))},close:function(n){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",n))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var i=n("<span>");return this._setText(i,t.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(t,i){var r=this,u="";n.each(i,function(i,f){var e;f.optgroup!==u&&(e=n("<li>",{text:f.optgroup}),r._addClass(e,"ui-selectmenu-optgroup","ui-menu-divider"+(f.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),e.appendTo(t),u=f.optgroup);r._renderItemData(t,f)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-selectmenu-item",t)},_renderItem:function(t,i){var r=n("<li>"),u=n("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(r,null,"ui-state-disabled"),this._setText(u,i.label),r.append(u).appendTo(t)},_setText:function(n,t){t?n.text(t):n.html("&#160;")},_move:function(n,t){var r,i=".ui-menu-item";this.isOpen?r=this.menuItems.eq(this.focusIndex).parent("li"):(r=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),i+=":not(.ui-state-disabled)");(i="first"===n||"last"===n?r["first"===n?"prevAll":"nextAll"](i).eq(-1):r[n+"All"](i).eq(0)).length&&this.menuInstance.focus(t,i)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(n){this[this.isOpen?"close":"open"](n)},_setSelection:function(){var n;this.range&&(window.getSelection?((n=window.getSelection()).removeAllRanges(),n.addRange(this.range)):this.range.select(),this.button.trigger("focus"))},_documentClick:{mousedown:function(t){this.isOpen&&(n(t.target).closest(".ui-selectmenu-menu, #"+n.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var n;window.getSelection?(n=window.getSelection()).rangeCount&&(this.range=n.getRangeAt(0)):this.range=document.selection.createRange()},click:function(n){this._setSelection();this._toggle(n)},keydown:function(t){var i=!0;switch(t.keyCode){case n.ui.keyCode.TAB:case n.ui.keyCode.ESCAPE:this.close(t);i=!1;break;case n.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case n.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case n.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case n.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case n.ui.keyCode.LEFT:this._move("prev",t);break;case n.ui.keyCode.RIGHT:this._move("next",t);break;case n.ui.keyCode.HOME:case n.ui.keyCode.PAGE_UP:this._move("first",t);break;case n.ui.keyCode.END:case n.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t);i=!1}i&&t.preventDefault()}},_selectFocusedItem:function(n){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),n)},_select:function(n,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=n.index;this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(n));this._setAria(n);this._trigger("select",t,{item:n});n.index!==i&&this._trigger("change",t,{item:n});this.close(t)},_setAria:function(n){n=this.menuItems.eq(n.index).attr("id");this.button.attr({"aria-labelledby":n,"aria-activedescendant":n});this.menu.attr("aria-activedescendant",n)},_setOption:function(n,t){var i;"icons"===n&&(i=this.button.find("span.ui-icon"),this._removeClass(i,null,this.options.icons.button)._addClass(i,null,t.button));this._super(n,t);"appendTo"===n&&this.menuWrap.appendTo(this._appendTo());"width"===n&&this._resizeButton()},_setOptionDisabled:function(n){this._super(n);this.menuInstance.option("disabled",n);this.button.attr("aria-disabled",n);this._toggleClass(this.button,null,"ui-state-disabled",n);this.element.prop("disabled",n);n?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return(t=!(t=t&&(t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)))||!t[0]?this.element.closest(".ui-front, dialog"):t).length?t:this.document[0].body},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen);this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen);this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var n=this.options.width;!1!==n?(null===n&&(n=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(n)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var n=this._super();return n.disabled=this.element.prop("disabled"),n},_parseOptions:function(t){var r=this,i=[];t.each(function(t,u){u.hidden||i.push(r._parseOption(n(u),t))});this.items=i},_parseOption:function(n,t){var i=n.parent("optgroup");return{element:n,index:t,value:n.val(),label:n.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||n.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler();this.menuWrap.remove();this.button.remove();this.element.show();this.element.removeUniqueId();this.labels.attr("for",this.ids.element)}}]);n.widget("ui.slider",n.ui.mouse,{version:"1.13.2",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1;this._mouseSliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this._calculateNewMax();this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content");this._refresh();this._animateOff=!1},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var r,u=this.options,t=this.element.find(".ui-slider-handle"),f=[],i=u.values&&u.values.length||1;for(t.length>i&&(t.slice(i).remove(),t=t.slice(0,i)),r=t.length;r<i;r++)f.push("<span tabindex='0'><\/span>");this.handles=t.add(n(f.join("")).appendTo(this.element));this._addClass(this.handles,"ui-slider-handle","ui-state-default");this.handle=this.handles.eq(0);this.handles.each(function(t){n(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=n("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles);this._on(this.handles,this._handleEvents);this._hoverable(this.handles);this._focusable(this.handles)},_destroy:function(){this.handles.remove();this.range&&this.range.remove();this._mouseDestroy()},_mouseCapture:function(t){var e,r,i,u,o,f,s=this,h=this.options;return!h.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),f={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(f),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var f=Math.abs(e-s.values(t));(f<r||r===f&&(t===s._lastChangedValue||s.values(t)===h.min))&&(r=f,i=n(this),u=t)}),!1!==this._start(t,u)&&(this._mouseSliding=!0,this._handleIndex=u,this._addClass(i,null,"ui-state-active"),i.trigger("focus"),o=i.offset(),f=!n(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=f?{left:0,top:0}:{left:t.pageX-o.left-i.width()/2,top:t.pageY-o.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,u,e),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(n){var t={x:n.pageX,y:n.pageY},t=this._normValueFromMouse(t);return this._slide(n,this._handleIndex,t),!1},_mouseStop:function(n){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(n,this._handleIndex),this._change(n,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(n){var t,n="horizontal"===this.orientation?(t=this.elementSize.width,n.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,n.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),n=n/t;return(n=1<n?1:n)<0&&(n=0),"vertical"===this.orientation&&(n=1-n),t=this._valueMax()-this._valueMin(),t=this._valueMin()+n*t,this._trimAlignValue(t)},_uiHash:function(n,t,i){var r={handle:this.handles[n],handleIndex:n,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(r.value=void 0!==t?t:this.values(n),r.values=i||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(n,t){return this._trigger("start",n,this._uiHash(t))},_slide:function(n,t,i){var r,u=this.value(),f=this.values();this._hasMultipleValues()&&(r=this.values(t?0:1),u=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(r,i):Math.max(r,i)),f[t]=i);i!==u&&!1!==this._trigger("slide",n,this._uiHash(t,i,f))&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(n,t){this._trigger("stop",n,this._uiHash(t))},_change:function(n,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",n,this._uiHash(t)))},value:function(n){return arguments.length?(this.options.value=this._trimAlignValue(n),this._refreshValue(),void this._change(null,0)):this._value()},values:function(n,t){var r,u,i;if(1<arguments.length)return this.options.values[n]=this._trimAlignValue(t),this._refreshValue(),void this._change(null,n);if(!arguments.length)return this._values();if(!Array.isArray(n))return this._hasMultipleValues()?this._values(n):this.value();for(r=this.options.values,u=n,i=0;i<r.length;i+=1)r[i]=this._trimAlignValue(u[i]),this._change(null,i);this._refreshValue()},_setOption:function(n,t){var i,r=0;switch("range"===n&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(r=this.options.values.length),this._super(n,t),n){case"orientation":this._detectOrientation();this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation);this._refreshValue();this.options.range&&this._refreshRange(t);this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=r-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0;this._calculateNewMax();this._refreshValue();this._animateOff=!1;break;case"range":this._animateOff=!0;this._refresh();this._animateOff=!1}},_setOptionDisabled:function(n){this._super(n);this._toggleClass(null,"ui-state-disabled",!!n)},_value:function(){var n=this.options.value;return this._trimAlignValue(n)},_values:function(n){var t,i;if(arguments.length)return n=this.options.values[n],n=this._trimAlignValue(n);if(this._hasMultipleValues()){for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(n){if(n<=this._valueMin())return this._valueMin();if(n>=this._valueMax())return this._valueMax();var t=0<this.options.step?this.options.step:1,i=(n-this._valueMin())%t,n=n-i;return 2*Math.abs(i)>=t&&(n+=0<i?t:-t),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var n=this.options.max,i=this._valueMin(),t=this.options.step;(n=Math.round((n-i)/t)*t+i)>this.options.max&&(n-=t);this.max=parseFloat(n.toFixed(this._precision()))},_precision:function(){var n=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(n,this._precisionOf(this.options.min)):n},_precisionOf:function(n){var t=n.toString(),n=t.indexOf(".");return-1===n?0:t.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(n){"vertical"===n&&this.range.css({width:"",left:""});"horizontal"===n&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var s,t,c,f,h,e=this.options.range,i=this.options,r=this,u=!this._animateOff&&i.animate,o={};this._hasMultipleValues()?this.handles.each(function(f){t=(r.values(f)-r._valueMin())/(r._valueMax()-r._valueMin())*100;o["horizontal"===r.orientation?"left":"bottom"]=t+"%";n(this).stop(1,1)[u?"animate":"css"](o,i.animate);!0===r.options.range&&("horizontal"===r.orientation?(0===f&&r.range.stop(1,1)[u?"animate":"css"]({left:t+"%"},i.animate),1===f&&r.range[u?"animate":"css"]({width:t-s+"%"},{queue:!1,duration:i.animate})):(0===f&&r.range.stop(1,1)[u?"animate":"css"]({bottom:t+"%"},i.animate),1===f&&r.range[u?"animate":"css"]({height:t-s+"%"},{queue:!1,duration:i.animate})));s=t}):(c=this.value(),f=this._valueMin(),h=this._valueMax(),t=h!==f?(c-f)/(h-f)*100:0,o["horizontal"===this.orientation?"left":"bottom"]=t+"%",this.handle.stop(1,1)[u?"animate":"css"](o,i.animate),"min"===e&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:t+"%"},i.animate),"max"===e&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-t+"%"},i.animate),"min"===e&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:t+"%"},i.animate),"max"===e&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-t+"%"},i.animate))},_handleEvents:{keydown:function(t){var r,i,u,f=n(t.target).data("ui-slider-handle-index");switch(t.keyCode){case n.ui.keyCode.HOME:case n.ui.keyCode.END:case n.ui.keyCode.PAGE_UP:case n.ui.keyCode.PAGE_DOWN:case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(n(t.target),null,"ui-state-active"),!1===this._start(t,f)))return}switch(u=this.options.step,r=i=this._hasMultipleValues()?this.values(f):this.value(),t.keyCode){case n.ui.keyCode.HOME:i=this._valueMin();break;case n.ui.keyCode.END:i=this._valueMax();break;case n.ui.keyCode.PAGE_UP:i=this._trimAlignValue(r+(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(r-(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:if(r===this._valueMax())return;i=this._trimAlignValue(r+u);break;case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(r===this._valueMin())return;i=this._trimAlignValue(r-u)}this._slide(t,f,i)},keyup:function(t){var i=n(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),this._removeClass(n(t.target),null,"ui-state-active"))}}});n.widget("ui.sortable",n.ui.mouse,{version:"1.13.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(n,t,i){return t<=n&&n<t+i},_isFloating:function(n){return/left|right/.test(n.css("float"))||/inline|table-cell/.test(n.css("display"))},_create:function(){this.containerCache={};this._addClass("ui-sortable");this.refresh();this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=!0},_setOption:function(n,t){this._super(n,t);"handle"===n&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle");n.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var n=this.items.length-1;0<=n;n--)this.items[n].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var r=null,f=!1,u=this;return!this.reverting&&!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),n(t.target).parents().each(function(){if(n.data(this,u.widgetName+"-item")===u)return r=n(this),!1}),!!(r=n.data(t.target,u.widgetName+"-item")===u?n(t.target):r)&&!(this.options.handle&&!i&&(n(this.options.handle,r).find("*").addBack().each(function(){this===t.target&&(f=!0)}),!f))&&(this.currentItem=r,this._removeCurrentsFromItems(),!0))},_mouseStart:function(t,i,r){var f,e,u=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=n("parent"!==u.appendTo?u.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},n.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),u.cursorAt&&this._adjustOffsetFromHelper(u.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),n.extend(this.offset,{parent:this._getParentOffset()}),u.containment&&this._setContainment(),u.cursor&&"auto"!==u.cursor&&(e=this.document.find("body"),this.storedCursor=e.css("cursor"),e.css("cursor",u.cursor),this.storedStylesheet=n("<style>*{ cursor: "+u.cursor+" !important; }<\/style>").appendTo(e)),u.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",u.zIndex)),u.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",u.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(f=this.containers.length-1;0<=f;f--)this.containers[f]._trigger("activate",t,this._uiHash(this));return n.ui.ddmanager&&(n.ui.ddmanager.current=this),n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(n){var t=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-n.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+t.scrollSpeed:n.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-n.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+t.scrollSpeed:n.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(n.pageY-this.document.scrollTop()<t.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(n.pageY-this.document.scrollTop())<t.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),n.pageX-this.document.scrollLeft()<t.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(n.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),i},_mouseDrag:function(t){var u,i,r,f,e=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),n.ui.ddmanager&&!e.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},u=this.items.length-1;0<=u;u--)if(r=(i=this.items[u]).item[0],(f=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(r===this.currentItem[0]||this.placeholder[1===f?"next":"prev"]()[0]===r||n.contains(this.placeholder[0],r)||"semi-dynamic"===this.options.type&&n.contains(this.element[0],r))){if(this.direction=1===f?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i);this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){var e,f,r,u;if(t)return n.ui.ddmanager&&!this.options.dropBehaviour&&n.ui.ddmanager.drop(this,t),this.options.revert?(f=(e=this).placeholder.offset(),u={},(r=this.options.axis)&&"x"!==r||(u.left=f.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(u.top=f.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,n(this.helper).animate(u,parseInt(this.options.revert,10)||500,function(){e._clear(t)})):this._clear(t,i),!1},cancel:function(){if(this.dragging){this._mouseUp(new n.Event("mouseup",{target:null}));"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),n.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?n(this.domPosition.prev).after(this.currentItem):n(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},n(r).each(function(){var r=(n(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);r&&i.push((t.key||r[1]+"[]")+"="+(t.key&&t.expression?r[1]:r[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},r.each(function(){i.push(n(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(n){var t=this.positionAbs.left,h=t+this.helperProportions.width,i=this.positionAbs.top,c=i+this.helperProportions.height,f=n.left,o=f+n.width,e=n.top,s=e+n.height,r=this.offset.click.top,u=this.offset.click.left,r="x"===this.options.axis||e<i+r&&i+r<s,u="y"===this.options.axis||f<t+u&&t+u<o;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>n[this.floating?"width":"height"]?r&&u:f<t+this.helperProportions.width/2&&h-this.helperProportions.width/2<o&&e<i+this.helperProportions.height/2&&c-this.helperProportions.height/2<s},_intersectsWithPointer:function(n){var t="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top,n.height),n="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left,n.width);return!(!t||!n)&&(t=this.dragDirection.vertical,n=this.dragDirection.horizontal,this.floating?"right"===n||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(n){var i=this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top+n.height/2,n.height),r=this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left+n.width/2,n.width),t=this.dragDirection.vertical,n=this.dragDirection.horizontal;return this.floating&&n?"right"===n&&r||"left"===n&&!r:t&&("down"===t&&i||"up"===t&&!i)},_getDragVerticalDirection:function(){var n=this.positionAbs.top-this.lastPositionAbs.top;return 0!=n&&(0<n?"down":"up")},_getDragHorizontalDirection:function(){var n=this.positionAbs.left-this.lastPositionAbs.left;return 0!=n&&(0<n?"right":"left")},refresh:function(n){return this._refreshItems(n),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var n=this.options;return n.connectWith.constructor===String?[n.connectWith]:n.connectWith},_getItemsAsjQuery:function(t){function h(){s.push(this)}var r,u,o,i,s=[],f=[],e=this._connectWith();if(e&&t)for(r=e.length-1;0<=r;r--)for(u=(o=n(e[r],this.document[0])).length-1;0<=u;u--)(i=n.data(o[u],this.widgetFullName))&&i!==this&&!i.options.disabled&&f.push(["function"==typeof i.options.items?i.options.items.call(i.element):n(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i]);for(f.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):n(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),r=f.length-1;0<=r;r--)f[r][0].each(h);return n(s)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=n.grep(this.items,function(n){for(var i=0;i<t.length;i++)if(t[i]===n.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[];this.containers=[this];var r,u,s,i,e,h,c,l,a=this.items,f=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):n(this.options.items,this.element),this]],o=this._connectWith();if(o&&this.ready)for(r=o.length-1;0<=r;r--)for(u=(s=n(o[r],this.document[0])).length-1;0<=u;u--)(i=n.data(s[u],this.widgetFullName))&&i!==this&&!i.options.disabled&&(f.push(["function"==typeof i.options.items?i.options.items.call(i.element[0],t,{item:this.currentItem}):n(i.options.items,i.element),i]),this.containers.push(i));for(r=f.length-1;0<=r;r--)for(e=f[r][1],l=(h=f[r][u=0]).length;u<l;u++)(c=n(h[u])).data(this.widgetName+"-item",e),a.push({item:c,instance:e,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var i,r,u=this.items.length-1;0<=u;u--)i=this.items[u],this.currentContainer&&i.instance!==this.currentContainer&&i.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?n(this.options.toleranceElement,i.item):i.item,t||(i.width=r.outerWidth(),i.height=r.outerHeight()),r=r.offset(),i.left=r.left,i.top=r.top)},refreshPositions:function(n){var t,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(n),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;0<=t;t--)i=this.containers[t].element.offset(),this.containers[t].containerCache.left=i.left,this.containers[t].containerCache.top=i.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){var u,r,i=(t=t||this).options;i.placeholder&&i.placeholder.constructor!==String||(u=i.placeholder,r=t.currentItem[0].nodeName.toLowerCase(),i.placeholder={element:function(){var i=n("<"+r+">",t.document[0]);return t._addClass(i,"ui-sortable-placeholder",u||t.currentItem[0].className)._removeClass(i,"ui-sortable-helper"),"tbody"===r?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),n("<tr>",t.document[0]).appendTo(i)):"tr"===r?t._createTrPlaceholder(t.currentItem,i):"img"===r&&i.attr("src",t.currentItem.attr("src")),u||i.css("visibility","hidden"),i},update:function(n,f){u&&!i.forcePlaceholderSize||(f.height()&&(!i.forcePlaceholderSize||"tbody"!==r&&"tr"!==r)||f.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),f.width()||f.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}});t.placeholder=n(i.placeholder.element.call(t.element,t.currentItem));t.currentItem.after(t.placeholder);i.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var r=this;t.children().each(function(){n("<td>&#160;<\/td>",r.document[0]).attr("colspan",n(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){for(var u,h,f,a,v,o,c,l,s,e=null,i=null,r=this.containers.length-1;0<=r;r--)n.contains(this.currentItem[0],this.containers[r].element[0])||(this._intersectsWith(this.containers[r].containerCache)?e&&n.contains(this.containers[r].element[0],e.element[0])||(e=this.containers[r],i=r):this.containers[r].containerCache.over&&(this.containers[r]._trigger("out",t,this._uiHash(this)),this.containers[r].containerCache.over=0));if(e)if(1===this.containers.length)this.containers[i].containerCache.over||(this.containers[i]._trigger("over",t,this._uiHash(this)),this.containers[i].containerCache.over=1);else{for(h=1e4,f=null,a=(l=e.floating||this._isFloating(this.currentItem))?"left":"top",v=l?"width":"height",s=l?"pageX":"pageY",u=this.items.length-1;0<=u;u--)n.contains(this.containers[i].element[0],this.items[u].item[0])&&this.items[u].item[0]!==this.currentItem[0]&&(o=this.items[u].item.offset()[a],c=!1,t[s]-o>this.items[u][v]/2&&(c=!0),Math.abs(t[s]-o)<h&&(h=Math.abs(t[s]-o),f=this.items[u],this.direction=c?"up":"down"));(f||this.options.dropOnEmpty)&&(this.currentContainer!==this.containers[i]?(f?this._rearrange(t,f,null,!0):this._rearrange(t,null,this.containers[i].element,!0),this._trigger("change",t,this._uiHash()),this.containers[i]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[i],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[i]._trigger("over",t,this._uiHash(this)),this.containers[i].containerCache.over=1):this.currentContainer.containerCache.over||(this.containers[i]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1))}},_createHelper:function(t){var i=this.options,t="function"==typeof i.helper?n(i.helper.apply(this.element[0],[t,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return t.parents("body").length||this.appendTo[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!i.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!i.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(n){"string"==typeof n&&(n=n.split(" "));"left"in(n=Array.isArray(n)?{left:+n[0],top:+n[1]||0}:n)&&(this.offset.click.left=n.left+this.margins.left);"right"in n&&(this.offset.click.left=this.helperProportions.width-n.right+this.margins.left);"top"in n&&(this.offset.click.top=n.top+this.margins.top);"bottom"in n&&(this.offset.click.top=this.helperProportions.height-n.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&n.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var n=this.currentItem.position();return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:n.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,r,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode);"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]);/^(document|window|parent)$/.test(i.containment)||(t=n(i.containment)[0],r=n(i.containment).offset(),i="hidden"!==n(t).css("overflow"),this.containment=[r.left+(parseInt(n(t).css("borderLeftWidth"),10)||0)+(parseInt(n(t).css("paddingLeft"),10)||0)-this.margins.left,r.top+(parseInt(n(t).css("borderTopWidth"),10)||0)+(parseInt(n(t).css("paddingTop"),10)||0)-this.margins.top,r.left+(i?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(n(t).css("borderLeftWidth"),10)||0)-(parseInt(n(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,r.top+(i?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(n(t).css("borderTopWidth"),10)||0)-(parseInt(n(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i=i||this.position;var r="absolute"===t?1:-1,u="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,t=/(html|body)/i.test(u[0].tagName);return{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():t?0:u.scrollTop())*r,left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():t?0:u.scrollLeft())*r}},_generatePosition:function(t){var i=this.options,r=t.pageX,u=t.pageY,f="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,e=/(html|body)/i.test(f[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(r=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(u=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(r=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(u=this.containment[3]+this.offset.click.top)),i.grid&&(t=this.originalPageY+Math.round((u-this.originalPageY)/i.grid[1])*i.grid[1],u=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-i.grid[1]:t+i.grid[1],t=this.originalPageX+Math.round((r-this.originalPageX)/i.grid[0])*i.grid[0],r=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-i.grid[0]:t+i.grid[0])),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():e?0:f.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():e?0:f.scrollLeft())}},_rearrange:function(n,t,i,r){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var u=this.counter;this._delay(function(){u===this.counter&&this.refreshPositions(!r)})},_clear:function(n,t){function u(n,t,i){return function(r){i._trigger(n,r,t._uiHash(t))}}this.reverting=!1;var i,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&r.push(function(n){this._trigger("receive",n,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||r.push(function(n){this._trigger("update",n,this._uiHash())}),this!==this.currentContainer&&(t||(r.push(function(n){this._trigger("remove",n,this._uiHash())}),r.push(function(n){return function(t){n._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(n){return function(t){n._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;0<=i;i--)t||r.push(u("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(r.push(u("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",n,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<r.length;i++)r[i].call(this,n);this._trigger("stop",n,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===n.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||n([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}});n.widget("ui.spinner",{version:"1.13.2",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);this._setOption("min",this.options.min);this._setOption("step",this.options.step);""!==this.value()&&this._value(this.element.val(),!0);this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),i=this.element;return n.each(["min","max","step"],function(n,r){var u=i.attr(r);null!=u&&u.length&&(t[r]=u)}),t},_events:{keydown:function(n){this._start(n)&&this._keydown(n)&&n.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(n){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",n))},mousewheel:function(t,i){var r=n.ui.safeActiveElement(this.document[0]);if(this.element[0]===r&&i){if(!this.spinning&&!this._start(t))return!1;this._spin((0<i?1:-1)*this.options.step,t);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100);t.preventDefault()}},"mousedown .ui-spinner-button":function(t){function r(){this.element[0]===n.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i}))}var i;i=this.element[0]===n.ui.safeActiveElement(this.document[0])?this.previous:this.element.val();t.preventDefault();r.call(this);this.cancelBlur=!0;this._delay(function(){delete this.cancelBlur;r.call(this)});!1!==this._start(t)&&this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(n(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a><\/a><a><\/a>")},_draw:function(){this._enhance();this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content");this._addClass("ui-spinner-input");this.element.attr("role","spinbutton");this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}});this._removeClass(this.buttons,"ui-corner-all");this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up");this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down");this.buttons.first().button({icon:this.options.icons.up,showLabel:!1});this.buttons.last().button({icon:this.options.icons.down,showLabel:!1});this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var r=this.options,i=n.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,r.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-r.page,t),!0}return!1},_start:function(n){return!(!this.spinning&&!1===this._trigger("start",n))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(n,t,i){n=n||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,t,i)},n);this._spin(t*this.options.step,i)},_spin:function(n,t){var i=this.value()||0;this.counter||(this.counter=1);i=this._adjustValue(i+n*this._increment(this.counter));this.spinning&&!1===this._trigger("spin",t,{value:i})||(this._value(i),this.counter++)},_increment:function(n){var t=this.options.incremental;return t?"function"==typeof t?t(n):Math.floor(n*n*n/5e4-n*n/500+17*n/200+1):1},_precision:function(){var n=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(n,this._precisionOf(this.options.min)):n},_precisionOf:function(n){var t=n.toString(),n=t.indexOf(".");return-1===n?0:t.length-n-1},_adjustValue:function(n){var t=this.options,i=null!==t.min?t.min:0,r=n-i;return n=i+Math.round(r/t.step)*t.step,n=parseFloat(n.toFixed(this._precision())),null!==t.max&&n>t.max?t.max:null!==t.min&&n<t.min?t.min:n},_stop:function(n){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",n))},_setOption:function(n,t){var i;if("culture"===n||"numberFormat"===n)return i=this._parse(this.element.val()),this.options[n]=t,void this.element.val(this._format(i));"max"!==n&&"min"!==n&&"step"!==n||"string"==typeof t&&(t=this._parse(t));"icons"===n&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,t.up),i=this.buttons.last().find(".ui-icon"),this._removeClass(i,null,this.options.icons.down),this._addClass(i,null,t.down));this._super(n,t)},_setOptionDisabled:function(n){this._super(n);this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!n);this.element.prop("disabled",!!n);this.buttons.button(n?"disable":"enable")},_setOptions:o(function(n){this._super(n)}),_parse:function(n){return""===(n="string"==typeof n&&""!==n?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(n,10,this.options.culture):+n:n)||isNaN(n)?null:n},_format:function(n){return""===n?"":window.Globalize&&this.options.numberFormat?Globalize.format(n,this.options.numberFormat,this.options.culture):n},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var n=this.value();return null!==n&&n===this._adjustValue(n)},_value:function(n,t){var i;""!==n&&null!==(i=this._parse(n))&&(t||(i=this._adjustValue(i)),n=this._format(i));this.element.val(n);this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow");this.uiSpinner.replaceWith(this.element)},stepUp:o(function(n){this._stepUp(n)}),_stepUp:function(n){this._start()&&(this._spin((n||1)*this.options.step),this._stop())},stepDown:o(function(n){this._stepDown(n)}),_stepDown:function(n){this._start()&&(this._spin((n||1)*-this.options.step),this._stop())},pageUp:o(function(n){this._stepUp((n||1)*this.options.page)}),pageDown:o(function(n){this._stepDown((n||1)*this.options.page)}),value:function(n){if(!arguments.length)return this._parse(this.element.val());o(this._value).call(this,n)},widget:function(){return this.uiSpinner}});!1!==n.uiBackCompat&&n.widget("ui.spinner",n.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a><\/a><a><\/a>"}});n.ui.spinner;n.widget("ui.tabs",{version:"1.13.2",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(ht=/#.*$/,function(n){var t=n.href.replace(ht,""),i=location.href.replace(ht,"");try{t=decodeURIComponent(t)}catch(n){}try{i=decodeURIComponent(i)}catch(n){}return 1<n.hash.length&&t===i}),_create:function(){var i=this,t=this.options;this.running=!1;this._addClass("ui-tabs","ui-widget ui-widget-content");this._toggleClass("ui-tabs-collapsible",null,t.collapsible);this._processTabs();t.active=this._initialActive();Array.isArray(t.disabled)&&(t.disabled=n.uniqueSort(t.disabled.concat(n.map(this.tabs.filter(".ui-state-disabled"),function(n){return i.tabs.index(n)}))).sort());this.active=!1!==this.options.active&&this.anchors.length?this._findActive(t.active):n();this._refresh();this.active.length&&this.load(t.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,r=location.hash.substring(1);return null===t&&(r&&this.tabs.each(function(i,u){if(n(u).attr("aria-controls")===r)return t=i,!1}),null!==(t=null===t?this.tabs.index(this.tabs.filter(".ui-tabs-active")):t)&&-1!==t||(t=!!this.tabs.length&&0)),!1!==t&&-1===(t=this.tabs.index(this.tabs.eq(t)))&&(t=!i&&0),t=!i&&!1===t&&this.anchors.length?0:t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):n()}},_tabKeydown:function(t){var r=n(n.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(r),u=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:i++;break;case n.ui.keyCode.UP:case n.ui.keyCode.LEFT:u=!1;i--;break;case n.ui.keyCode.END:i=this.anchors.length-1;break;case n.ui.keyCode.HOME:i=0;break;case n.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case n.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault();clearTimeout(this.activating);i=this._focusNextTab(i,u);t.ctrlKey||t.metaKey||(r.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===n.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===n.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===n.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){for(var r=this.tabs.length-1;-1!==n.inArray(t=(t=r<t?0:t)<0?r:t,this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(n,t){return n=this._findNextTab(n,t),this.tabs.eq(n).trigger("focus"),n},_setOption:function(n,t){"active"!==n?(this._super(n,t),"collapsible"===n&&(this._toggleClass("ui-tabs-collapsible",null,t),t||!1!==this.options.active||this._activate(0)),"event"===n&&this._setupEvents(t),"heightStyle"===n&&this._setupHeightStyle(t)):this._activate(t)},_sanitizeSelector:function(n){return n?n.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=n.map(i.filter(".ui-state-disabled"),function(n){return i.index(n)});this._processTabs();!1!==t.active&&this.anchors.length?this.active.length&&!n.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=n()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=n());this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"});this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,i=this.tabs,r=this.anchors,u=this.panels;this.tablist=this._getList().attr("role","tablist");this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header");this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){n(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){n(this).closest("li").is(".ui-state-disabled")&&this.blur()});this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1});this._addClass(this.tabs,"ui-tabs-tab","ui-state-default");this.anchors=this.tabs.map(function(){return n("a",this)[0]}).attr({tabIndex:-1});this._addClass(this.anchors,"ui-tabs-anchor");this.panels=n();this.anchors.each(function(i,r){var o,u,f,s=n(r).uniqueId().attr("id"),e=n(r).closest("li"),h=e.attr("aria-controls");t._isLocal(r)?(f=(o=r.hash).substring(1),u=t.element.find(t._sanitizeSelector(o))):(f=e.attr("aria-controls")||n({}).uniqueId()[0].id,(u=t.element.find(o="#"+f)).length||(u=t._createPanel(f)).insertAfter(t.panels[i-1]||t.tablist),u.attr("aria-live","polite"));u.length&&(t.panels=t.panels.add(u));h&&e.data("ui-tabs-aria-controls",h);e.attr({"aria-controls":f,"aria-labelledby":s});u.attr("aria-labelledby",s)});this.panels.attr("role","tabpanel");this._addClass(this.panels,"ui-tabs-panel","ui-widget-content");i&&(this._off(i.not(this.tabs)),this._off(r.not(this.anchors)),this._off(u.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return n("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var i,r;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),r=0;i=this.tabs[r];r++)i=n(i),!0===t||-1!==n.inArray(r,t)?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=t;this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"});this._off(this.anchors.add(this.tabs).add(this.panels));this._on(!0,this.anchors,{click:function(n){n.preventDefault()}});this._on(this.anchors,i);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,r=this.element.parent();"fill"===t?(i=r.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=n(this),r=t.css("position");"absolute"!==r&&"fixed"!==r&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=n(this).outerHeight(!0)}),this.panels.each(function(){n(this).height(Math.max(0,i-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,n(this).height("").height())}).height(i))},_eventHandler:function(t){var u=this.options,r=this.active,i=n(t.currentTarget).closest("li"),f=i[0]===r[0],e=f&&u.collapsible,o=e?n():this._getPanelForTab(i),s=r.length?this._getPanelForTab(r):n(),r={oldTab:r,oldPanel:s,newTab:e?n():i,newPanel:o};t.preventDefault();i.hasClass("ui-state-disabled")||i.hasClass("ui-tabs-loading")||this.running||f&&!u.collapsible||!1===this._trigger("beforeActivate",t,r)||(u.active=!e&&this.tabs.index(i),this.active=f?n():i,this.xhr&&this.xhr.abort(),s.length||o.length||n.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(i),t),this._toggle(t,r))},_toggle:function(t,i){function e(){r.running=!1;r._trigger("activate",t,i)}function o(){r._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active");u.length&&r.options.show?r._show(u,r.options.show,e):(u.show(),e())}var r=this,u=i.newPanel,f=i.oldPanel;this.running=!0;f.length&&this.options.hide?this._hide(f,this.options.hide,function(){r._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active");o()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),f.hide(),o());f.attr("aria-hidden","true");i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"});u.length&&f.length?i.oldTab.attr("tabIndex",-1):u.length&&this.tabs.filter(function(){return 0===n(this).attr("tabIndex")}).attr("tabIndex",-1);u.attr("aria-hidden","false");i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var t=this._findActive(t);t[0]!==this.active[0]&&(t=(t=t.length?t:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:n.noop}))},_findActive:function(t){return!1===t?n():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+n.escapeSelector(t)+"']")):t},_destroy:function(){this.xhr&&this.xhr.abort();this.tablist.removeAttr("role").off(this.eventNamespace);this.anchors.removeAttr("role tabIndex").removeUniqueId();this.tabs.add(this.panels).each(function(){n.data(this,"ui-tabs-destroy")?n(this).remove():n(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")});this.tabs.each(function(){var t=n(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")});this.panels.show();"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;!1!==i&&(i=void 0!==t&&(t=this._getIndex(t),Array.isArray(i)?n.map(i,function(n){return n!==t?n:null}):n.map(this.tabs,function(n,i){return i!==t?i:null})),this._setOptionDisabled(i))},disable:function(t){var i=this.options.disabled;if(!0!==i){if(void 0===t)i=!0;else{if(t=this._getIndex(t),-1!==n.inArray(t,i))return;i=Array.isArray(i)?n.merge([t],i).sort():[t]}this._setOptionDisabled(i)}},load:function(t,i){function e(n,t){"abort"===t&&r.panels.stop(!1,!0);r._removeClass(u,"ui-tabs-loading");f.removeAttr("aria-busy");n===r.xhr&&delete r.xhr}t=this._getIndex(t);var r=this,u=this.tabs.eq(t),t=u.find(".ui-tabs-anchor"),f=this._getPanelForTab(u),o={tab:u,panel:f};this._isLocal(t[0])||(this.xhr=n.ajax(this._ajaxSettings(t,i,o)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(u,"ui-tabs-loading"),f.attr("aria-busy","true"),this.xhr.done(function(n,t,u){setTimeout(function(){f.html(n);r._trigger("load",i,o);e(u,t)},1)}).fail(function(n,t){setTimeout(function(){e(n,t)},1)})))},_ajaxSettings:function(t,i,r){var u=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,f){return u._trigger("beforeLoad",i,n.extend({jqXHR:t,ajaxSettings:f},r))}}},_getPanelForTab:function(t){return t=n(t).attr("aria-controls"),this.element.find(this._sanitizeSelector("#"+t))}});!1!==n.uiBackCompat&&n.widget("ui.tabs",n.ui.tabs,{_processTabs:function(){this._superApply(arguments);this._addClass(this.tabs,"ui-tab")}});n.ui.tabs;n.widget("ui.tooltip",{version:"1.13.2",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=n(this).attr("title");return n("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(n,t){var i=(n.attr("aria-describedby")||"").split(/\s+/);i.push(t);n.data("ui-tooltip-id",t).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(t){var r=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),r=n.inArray(r,i);-1!==r&&i.splice(r,1);t.removeData("ui-tooltip-id");(i=String.prototype.trim.call(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};this.liveRegion=n("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body);this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible");this.disabledTitles=n([])},_setOption:function(t,i){var r=this;this._super(t,i);"content"===t&&n.each(this.tooltips,function(n,t){r._updateContent(t.element)})},_setOptionDisabled:function(n){this[n?"_disable":"_enable"]()},_disable:function(){var t=this;n.each(this.tooltips,function(i,r){var u=n.Event("blur");u.target=u.currentTarget=r.element[0];t.close(u,!0)});this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=n(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=n(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))});this.disabledTitles=n([])},open:function(t){var r=this,i=n(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&i.parents().each(function(){var i,t=n(this);t.data("ui-tooltip-open")&&((i=n.Event("blur")).target=i.currentTarget=this,r.close(i,!0));t.attr("title")&&(t.uniqueId(),r.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._registerCloseHandlers(t,i),this._updateContent(i,t))},_updateContent:function(n,t){var i=this.options.content,r=this,u=t?t.type:null;if("string"==typeof i||i.nodeType||i.jquery)return this._open(t,n,i);(i=i.call(n[0],function(i){r._delay(function(){n.data("ui-tooltip-open")&&(t&&(t.type=u),this._open(t,n,i))})}))&&this._open(t,n,i)},_open:function(t,i,r){function o(n){e.of=n;u.is(":hidden")||u.position(e)}var f,u,s,e=n.extend({},this.options.position);r&&((f=this._find(i))?f.tooltip.find(".ui-tooltip-content").html(r):(i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title")),f=this._tooltip(i),u=f.tooltip,this._addDescribedBy(i,u.attr("id")),u.find(".ui-tooltip-content").html(r),this.liveRegion.children().hide(),(r=n("<div>").html(u.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),r.removeAttr("id").find("[id]").removeAttr("id"),r.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:o}),o(t)):u.position(n.extend({of:i},this.options.position)),u.hide(),this._show(u,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(s=this.delayedShow=setInterval(function(){u.is(":visible")&&(o(e.of),clearInterval(s))},13)),this._trigger("open",t,{tooltip:u})))},_registerCloseHandlers:function(t,i){var r={keyup:function(t){t.keyCode===n.ui.keyCode.ESCAPE&&((t=n.Event(t)).currentTarget=i[0],this.close(t,!0))}};i[0]!==this.element[0]&&(r.remove=function(){var n=this._find(i);n&&this._removeTooltip(n.tooltip)});t&&"mouseover"!==t.type||(r.mouseleave="close");t&&"focusin"!==t.type||(r.focusout="close");this._on(!0,i,r)},close:function(t){var u,f=this,i=n(t?t.currentTarget:this.element),r=this._find(i);r?(u=r.tooltip,r.closing||(clearInterval(this.delayedShow),i.data("ui-tooltip-title")&&!i.attr("title")&&i.attr("title",i.data("ui-tooltip-title")),this._removeDescribedBy(i),r.hiding=!0,u.stop(!0),this._hide(u,this.options.hide,function(){f._removeTooltip(n(this))}),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&n.each(this.parents,function(t,i){n(i.element).attr("title",i.title);delete f.parents[t]}),r.closing=!0,this._trigger("close",t,{tooltip:u}),r.hiding||(r.closing=!1))):i.removeData("ui-tooltip-open")},_tooltip:function(t){var i=n("<div>").attr("role","tooltip"),r=n("<div>").appendTo(i),u=i.uniqueId().attr("id");return this._addClass(r,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(t)),this.tooltips[u]={element:t,tooltip:i}},_find:function(n){return n=n.data("ui-tooltip-id"),n?this.tooltips[n]:null},_removeTooltip:function(n){clearInterval(this.delayedShow);n.remove();delete this.tooltips[n.attr("id")]},_appendTo:function(n){return n=n.closest(".ui-front, dialog"),n.length?n:this.document[0].body},_destroy:function(){var t=this;n.each(this.tooltips,function(i,r){var u=n.Event("blur"),r=r.element;u.target=u.currentTarget=r[0];t.close(u,!0);n("#"+i).remove();r.data("ui-tooltip-title")&&(r.attr("title")||r.attr("title",r.data("ui-tooltip-title")),r.removeData("ui-tooltip-title"))});this.liveRegion.remove()}});!1!==n.uiBackCompat&&n.widget("ui.tooltip",n.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var n=this._superApply(arguments);return this.options.tooltipClass&&n.tooltip.addClass(this.options.tooltipClass),n}});n.ui.tooltip}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){n.extend(n.fn,{validate:function(t){if(!this.length){t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.");return}var i=n.data(this[0],"validator");if(i)return i;if(this.attr("novalidate","novalidate"),i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit){this.on("click.validate",":submit",function(t){i.settings.submitHandler&&(i.submitButton=t.target);n(this).hasClass("cancel")&&(i.cancelSubmit=!0);n(this).attr("formnovalidate")!==undefined&&(i.cancelSubmit=!0)});this.on("submit.validate",function(t){function r(){var u,r;return i.settings.submitHandler?(i.submitButton&&(u=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(n(i.submitButton).val()).appendTo(i.currentForm)),r=i.settings.submitHandler.call(i,i.currentForm,t),i.submitButton&&u.remove(),r!==undefined)?r:!1:!0}return(i.settings.debug&&t.preventDefault(),i.cancelSubmit)?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})}return i},valid:function(){var t,i,r;return n(this[0]).is("form")?t=this.validate().form():(r=[],t=!0,i=n(this[0].form).validate(),this.each(function(){t=i.element(this)&&t;t||(r=r.concat(i.errorList))}),i.errorList=r),t},rules:function(t,i){if(this.length){var r=this[0],e,s,f,u,o,h;if(t){e=n.data(r.form,"validator").settings;s=e.rules;f=n.validator.staticRules(r);switch(t){case"add":n.extend(f,n.validator.normalizeRule(i));delete f.messages;s[r.name]=f;i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(h={},n.each(i.split(/\s/),function(t,i){h[i]=f[i];delete f[i];i==="required"&&n(r).removeAttr("aria-required")}),h):(delete s[r.name],f)}}return u=n.validator.normalizeRules(n.extend({},n.validator.classRules(r),n.validator.attributeRules(r),n.validator.dataRules(r),n.validator.staticRules(r)),r),u.required&&(o=u.required,delete u.required,u=n.extend({required:o},u),n(r).attr("aria-required","true")),u.remote&&(o=u.remote,delete u.remote,u=n.extend(u,{remote:o})),u}}});n.extend(n.expr[":"],{blank:function(t){return!n.trim(""+n(t).val())},filled:function(t){var i=n(t).val();return i!==null&&!!n.trim(""+i)},unchecked:function(t){return!n(t).prop("checked")}});n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t);this.currentForm=i;this.init()};n.validator.format=function(t,i){return arguments.length===1?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:i===undefined?t:(arguments.length>2&&i.constructor!==Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(new RegExp("\\{"+n+"\\}","g"),function(){return i})}),t)};n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(n){this.lastActive=n;this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(n)))},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(t,i){(i.which!==9||this.elementValue(t)!=="")&&n.inArray(i.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])===-1&&(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).removeClass(i).addClass(r):n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}."),step:n.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function i(t){var r=n.data(this.form,"validator"),u="on"+t.type.replace(/^validate/,""),i=r.settings;i[u]&&!n(this).is(i.ignore)&&i[u].call(r,this,t)}this.labelContainer=n(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm);this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var r=this.groups={},t;n.each(this.settings.groups,function(t,i){typeof i=="string"&&(i=i.split(/\s/));n.each(i,function(n,i){r[i]=t})});t=this.settings.rules;n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable]",i).on("click.validate","select, option, [type='radio'], [type='checkbox']",i);if(this.settings.invalidHandler)n(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler);n(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){var i=this.clean(t),r=this.validationTargetFor(i),u=this,f=!0,e,o;return r===undefined?delete this.invalid[i.name]:(this.prepareElement(r),this.currentElements=n(r),o=this.groups[r.name],o&&n.each(this.groups,function(n,t){t===o&&n!==r.name&&(i=u.validationTargetFor(u.clean(u.findByName(n))),i&&i.name in u.invalid&&(u.currentElements.push(i),f=f&&u.check(i)))}),e=this.check(r)!==!1,f=f&&e,this.invalid[r.name]=e?!1:!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),n(t).attr("aria-invalid",!e)),f},showErrors:function(t){if(t){var i=this;n.extend(this.errorMap,t);this.errorList=n.map(this.errorMap,function(n,t){return{message:n,element:i.findByName(t)[0]}});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm();this.invalid={};this.submitted={};this.prepareForm();this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(n){var t;if(this.settings.unhighlight)for(t=0;n[t];t++)this.settings.unhighlight.call(this,n[t],this.settings.errorClass,""),this.findByName(n[t].name).removeClass(this.settings.validClass);else n.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var t=0,i;for(i in n)n[i]&&t++;return t},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(n){n.not(this.containers).text("");this.addWrapper(n).hide()},valid:function(){return this.size()===0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&n.grep(this.errorList,function(n){return n.element.name===t.name}).length===1&&t},elements:function(){var t=this,i={};return n(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var r=this.name||n(this).attr("name");return(!r&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=n(this).closest("form")[0]),r in i||!t.objectLength(n(this).rules()))?!1:(i[r]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return n(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=n([]);this.toHide=n([])},reset:function(){this.resetInternals();this.currentElements=n([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset();this.toHide=this.errorsFor(n)},elementValue:function(t){var f=n(t),u=t.type,i,r;return u==="radio"||u==="checkbox"?this.findByName(t.name).filter(":checked").val():u==="number"&&typeof t.validity!="undefined"?t.validity.badInput?"NaN":f.val():(i=t.hasAttribute("contenteditable")?f.text():f.val(),u==="file")?i.substr(0,12)==="C:\\fakepath\\"?i.substr(12):(r=i.lastIndexOf("/"),r>=0)?i.substr(r+1):(r=i.lastIndexOf("\\"),r>=0)?i.substr(r+1):i:typeof i=="string"?i.replace(/\r/g,""):i},check:function(t){t=this.validationTargetFor(this.clean(t));var i=n(t).rules(),h=n.map(i,function(n,t){return t}).length,s=!1,u=this.elementValue(t),f,e,r;if(typeof i.normalizer=="function"){if(u=i.normalizer.call(t,u),typeof u!="string")throw new TypeError("The normalizer should return a string value.");delete i.normalizer}for(e in i){r={method:e,parameters:i[e]};try{if(f=n.validator.methods[e].call(this,u,t,r.parameters),f==="dependency-mismatch"&&h===1){s=!0;continue}if(s=!1,f==="pending"){this.toHide=this.toHide.not(this.errorsFor(t));return}if(!f)return this.formatAndAdd(t,r),!1}catch(o){this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.",o);o instanceof TypeError&&(o.message+=".  Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.");throw o;}}if(!s)return this.objectLength(i)&&this.successList.push(t),!0},customDataMessage:function(t,i){return n(t).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||n(t).data("msg")},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(arguments[n]!==undefined)return arguments[n];return undefined},defaultMessage:function(t,i){var r=this.findDefined(this.customMessage(t.name,i.method),this.customDataMessage(t,i.method),!this.settings.ignoreTitle&&t.title||undefined,n.validator.messages[i.method],"<strong>Warning: No message defined for "+t.name+"<\/strong>"),u=/\$?\{(\d+)\}/g;return typeof r=="function"?r=r.call(this,i.parameters,t):u.test(r)&&(r=n.validator.format(r.replace(u,"{$1}"),i.parameters)),r},formatAndAdd:function(n,t){var i=this.defaultMessage(n,t);this.errorList.push({message:i,element:n,method:t.method});this.errorMap[n.name]=i;this.submitted[n.name]=i},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var i,t,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var u,s,e,o,r=this.errorsFor(t),h=this.idOrName(t),f=n(t).attr("aria-describedby");r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.html(i)):(r=n("<"+this.settings.errorElement+">").attr("id",h+"-error").addClass(this.settings.errorClass).html(i||""),u=r,this.settings.wrapper&&(u=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(u):this.settings.errorPlacement?this.settings.errorPlacement(u,n(t)):u.insertAfter(t),r.is("label")?r.attr("for",h):r.parents("label[for='"+this.escapeCssMeta(h)+"']").length===0&&(e=r.attr("id"),f?f.match(new RegExp("\\b"+this.escapeCssMeta(e)+"\\b"))||(f+=" "+e):f=e,n(t).attr("aria-describedby",f),s=this.groups[t.name],s&&(o=this,n.each(o.groups,function(t,i){i===s&&n("[name='"+o.escapeCssMeta(t)+"']",o.currentForm).attr("aria-describedby",r.attr("id"))}))));!i&&this.settings.success&&(r.text(""),typeof this.settings.success=="string"?r.addClass(this.settings.success):this.settings.success(r,t));this.toShow=this.toShow.add(r)},errorsFor:function(t){var r=this.escapeCssMeta(this.idOrName(t)),u=n(t).attr("aria-describedby"),i="label[for='"+r+"'], label[for='"+r+"'] *";return u&&(i=i+", #"+this.escapeCssMeta(u).replace(/\s+/g,", #")),this.errors().filter(i)},escapeCssMeta:function(n){return n.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),n(t).not(this.settings.ignore)[0]},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){return n(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return this.dependTypes[typeof n]?this.dependTypes[typeof n](n,t):!0},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){var i=this.elementValue(t);return!n.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,n(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,i){this.pendingRequest--;this.pendingRequest<0&&(this.pendingRequest=0);delete this.pending[t.name];n(t).removeClass(this.settings.pendingClass);i&&this.pendingRequest===0&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.formSubmitted=!1):!i&&this.pendingRequest===0&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,i){return n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:i})})},destroy:function(){this.resetForm();n(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(n,t,i,r){/min|max|step/.test(i)&&(t===null||/number|range|text/.test(t))&&(r=Number(r),isNaN(r)&&(r=undefined));r||r===0?n[i]=r:t===i&&t!=="range"&&(n[i]=!0)},attributeRules:function(t){var r={},f=n(t),e=t.getAttribute("type"),u,i;for(u in n.validator.methods)u==="required"?(i=t.getAttribute(u),i===""&&(i=!0),i=!!i):i=f.attr(u),this.normalizeAttributeRule(r,e,u,i);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(t){var r={},f=n(t),e=t.getAttribute("type"),i,u;for(i in n.validator.methods)u=f.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),this.normalizeAttributeRule(r,e,i,u);return r},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1){delete t[r];return}if(u.param||u.depends){var f=!0;switch(typeof u.depends){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=u.param!==undefined?u.param:!0:(n.data(i.form,"validator").resetElements(n(i)),delete t[r])}}),n.each(t,function(r,u){t[r]=n.isFunction(u)&&r!=="normalizer"?u(i):u}),n.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){var i;t[this]&&(n.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:typeof t[this]=="string"&&(i=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(i[0]),Number(i[1])]))}),n.validator.autoCreateRanges&&(t.min!=null&&t.max!=null&&(t.range=[t.min,t.max],delete t.min,delete t.max),t.minlength!=null&&t.maxlength!=null&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if(typeof t=="string"){var i={};n.each(t.split(/\s/),function(){i[this]=!0});t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i;n.validator.messages[t]=r!==undefined?r:n.validator.messages[t];i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";if(i.nodeName.toLowerCase()==="select"){var u=n(i).val();return u&&u.length>0}return this.checkable(i)?this.getLength(t,i)>0:t.length>0},email:function(n,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)},url:function(n,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(n)},date:function(n,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(n).toString())},dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(n)},number:function(n,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},minlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r},maxlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u<=r},rangelength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r[0]&&u<=r[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||n<=i},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},step:function(t,i,r){var u=n(i).attr("type"),f="Step attribute on input type "+u+" is not supported.",e=new RegExp("\\b"+u+"\\b"),o=u&&!e.test("text,number,range");if(o)throw new Error(f);return this.optional(i)||t%r==0},equalTo:function(t,i,r){var u=n(r);if(this.settings.onfocusout&&u.not(".validate-equalTo-blur").length)u.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){n(i).valid()});return t===u.val()},remote:function(t,i,r,u){if(this.optional(i))return"dependency-mismatch";u=typeof u=="string"&&u||"remote";var e=this.previousValue(i,u),f,o,s;return(this.settings.messages[i.name]||(this.settings.messages[i.name]={}),e.originalMessage=e.originalMessage||this.settings.messages[i.name][u],this.settings.messages[i.name][u]=e.message,r=typeof r=="string"&&{url:r}||r,s=n.param(n.extend({data:t},r.data)),e.old===s)?e.valid:(e.old=s,f=this,this.startRequest(i),o={},o[i.name]=t,n.ajax(n.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:o,context:f.currentForm,success:function(n){var r=n===!0||n==="true",o,s,h;f.settings.messages[i.name][u]=e.originalMessage;r?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(i),f.formSubmitted=h,f.successList.push(i),f.invalid[i.name]=!1,f.showErrors()):(o={},s=n||f.defaultMessage(i,{method:u,parameters:t}),o[i.name]=e.message=s,f.invalid[i.name]=!0,f.showErrors(o));e.valid=r;f.stopRequest(i,r)}},r)),"pending")}}});var t={},i;n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;n.mode==="abort"&&(t[u]&&t[u].abort(),t[u]=r)}):(i=n.ajax,n.ajax=function(r){var f=("mode"in r?r:n.ajaxSettings).mode,u=("port"in r?r:n.ajaxSettings).port;return f==="abort"?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments),t[u]):i.apply(this,arguments)})});!function(n){"function"==typeof define&&define.amd?define(["jquery","./jquery.validate.min"],n):"object"==typeof module&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){!function(){function t(n){return n.replace(/<.[^<>]*?>/g," ").replace(/&nbsp;|&#160;/gi," ").replace(/[.(),;:!?%#$'\"_+=\/\-“”’]*/g,"")}n.validator.addMethod("maxWords",function(n,i,r){return this.optional(i)||t(n).match(/\b\w+\b/g).length<=r},n.validator.format("Please enter {0} words or less."));n.validator.addMethod("minWords",function(n,i,r){return this.optional(i)||t(n).match(/\b\w+\b/g).length>=r},n.validator.format("Please enter at least {0} words."));n.validator.addMethod("rangeWords",function(n,i,r){var u=t(n),f=/\b\w+\b/g;return this.optional(i)||u.match(f).length>=r[0]&&u.match(f).length<=r[1]},n.validator.format("Please enter between {0} and {1} words."))}();n.validator.addMethod("accept",function(t,i,r){var u,e,o,f="string"==typeof r?r.replace(/\s/g,""):"image/*",s=this.optional(i);if(s)return s;if("file"===n(i).attr("type")&&(f=f.replace(/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/g,"\\$&").replace(/,/g,"|").replace("/*","/.*"),i.files&&i.files.length))for(o=new RegExp(".?("+f+")$","i"),u=0;u<i.files.length;u++)if(e=i.files[u],!e.type.match(o))return!1;return!0},n.validator.format("Please enter a value with a valid mimetype."));n.validator.addMethod("alphanumeric",function(n,t){return this.optional(t)||/^\w+$/i.test(n)},"Letters, numbers, and underscores only please");n.validator.addMethod("bankaccountNL",function(n,t){if(this.optional(t))return!0;if(!/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(n))return!1;for(var r,u,f=n.replace(/ /g,""),e=0,o=f.length,i=0;o>i;i++)r=o-i,u=f.substring(i,i+1),e+=r*u;return e%11==0},"Please specify a valid bank account number");n.validator.addMethod("bankorgiroaccountNL",function(t,i){return this.optional(i)||n.validator.methods.bankaccountNL.call(this,t,i)||n.validator.methods.giroaccountNL.call(this,t,i)},"Please specify a valid bank or giro account number");n.validator.addMethod("bic",function(n,t){return this.optional(t)||/^([A-Z]{6}[A-Z2-9][A-NP-Z1-9])(X{3}|[A-WY-Z0-9][A-Z0-9]{2})?$/.test(n.toUpperCase())},"Please specify a valid BIC code");n.validator.addMethod("cifES",function(n){"use strict";var f,i,r,u,e,o,t=[];if(n=n.toUpperCase(),!n.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)"))return!1;for(r=0;9>r;r++)t[r]=parseInt(n.charAt(r),10);for(i=t[2]+t[4]+t[6],u=1;8>u;u+=2)e=(2*t[u]).toString(),o=e.charAt(1),i+=parseInt(e.charAt(0),10)+(""===o?0:parseInt(o,10));return/^[ABCDEFGHJNPQRSUVW]{1}/.test(n)?(i+="",f=10-parseInt(i.charAt(i.length-1),10),n+=f,t[8].toString()===String.fromCharCode(64+f)||t[8].toString()===n.charAt(n.length-1)):!1},"Please specify a valid CIF number.");n.validator.addMethod("cpfBR",function(n){if(n=n.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,""),11!==n.length)return!1;var u,f,r,t,i=0;if(u=parseInt(n.substring(9,10),10),f=parseInt(n.substring(10,11),10),r=function(n,t){var i=10*n%11;return 10!==i&&11!==i||(i=0),i===t},""===n||"00000000000"===n||"11111111111"===n||"22222222222"===n||"33333333333"===n||"44444444444"===n||"55555555555"===n||"66666666666"===n||"77777777777"===n||"88888888888"===n||"99999999999"===n)return!1;for(t=1;9>=t;t++)i+=parseInt(n.substring(t-1,t),10)*(11-t);if(r(i,u)){for(i=0,t=1;10>=t;t++)i+=parseInt(n.substring(t-1,t),10)*(12-t);return r(i,f)}return!1},"Please specify a valid CPF number");n.validator.addMethod("creditcard",function(n,t){if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(n))return!1;var i,f,e=0,r=0,u=!1;if(n=n.replace(/\D/g,""),n.length<13||n.length>19)return!1;for(i=n.length-1;i>=0;i--)f=n.charAt(i),r=parseInt(f,10),u&&(r*=2)>9&&(r-=9),e+=r,u=!u;return e%10==0},"Please enter a valid credit card number.");n.validator.addMethod("creditcardtypes",function(n,t,i){if(/[^0-9\-]+/.test(n))return!1;n=n.replace(/\D/g,"");var r=0;return i.mastercard&&(r|=1),i.visa&&(r|=2),i.amex&&(r|=4),i.dinersclub&&(r|=8),i.enroute&&(r|=16),i.discover&&(r|=32),i.jcb&&(r|=64),i.unknown&&(r|=128),i.all&&(r=255),1&r&&/^(5[12345])/.test(n)?16===n.length:2&r&&/^(4)/.test(n)?16===n.length:4&r&&/^(3[47])/.test(n)?15===n.length:8&r&&/^(3(0[012345]|[68]))/.test(n)?14===n.length:16&r&&/^(2(014|149))/.test(n)?15===n.length:32&r&&/^(6011)/.test(n)?16===n.length:64&r&&/^(3)/.test(n)?16===n.length:64&r&&/^(2131|1800)/.test(n)?15===n.length:!!(128&r)},"Please enter a valid credit card number.");n.validator.addMethod("currency",function(n,t,i){var u,f="string"==typeof i,r=f?i:i[0],e=f?!0:i[1];return r=r.replace(/,/g,""),r=e?r+"]":r+"]?",u="^["+r+"([1-9]{1}[0-9]{0,2}(\\,[0-9]{3})*(\\.[0-9]{0,2})?|[1-9]{1}[0-9]{0,}(\\.[0-9]{0,2})?|0(\\.[0-9]{0,2})?|(\\.[0-9]{1,2})?)$",u=new RegExp(u),this.optional(t)||u.test(n)},"Please specify a valid currency");n.validator.addMethod("dateFA",function(n,t){return this.optional(t)||/^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$/.test(n)},n.validator.messages.date);n.validator.addMethod("dateITA",function(n,t){var i,u,f,e,r,o=!1;return/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(n)?(i=n.split("/"),u=parseInt(i[0],10),f=parseInt(i[1],10),e=parseInt(i[2],10),r=new Date(Date.UTC(e,f-1,u,12,0,0,0)),o=r.getUTCFullYear()===e&&r.getUTCMonth()===f-1&&r.getUTCDate()===u):o=!1,this.optional(t)||o},n.validator.messages.date);n.validator.addMethod("dateNL",function(n,t){return this.optional(t)||/^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(n)},n.validator.messages.date);n.validator.addMethod("extension",function(n,t,i){return i="string"==typeof i?i.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(t)||n.match(new RegExp("\\.("+i+")$","i"))},n.validator.format("Please enter a value with a valid extension."));n.validator.addMethod("giroaccountNL",function(n,t){return this.optional(t)||/^[0-9]{1,7}$/.test(n)},"Please specify a valid giro account number");n.validator.addMethod("iban",function(n,t){if(this.optional(t))return!0;var c,f,e,l,o,a,v,r,u,i=n.replace(/ /g,"").toUpperCase(),s="",y=!0,h="",p="";if(c=i.substring(0,2),a={AL:"\\d{8}[\\dA-Z]{16}",AD:"\\d{8}[\\dA-Z]{12}",AT:"\\d{16}",AZ:"[\\dA-Z]{4}\\d{20}",BE:"\\d{12}",BH:"[A-Z]{4}[\\dA-Z]{14}",BA:"\\d{16}",BR:"\\d{23}[A-Z][\\dA-Z]",BG:"[A-Z]{4}\\d{6}[\\dA-Z]{8}",CR:"\\d{17}",HR:"\\d{17}",CY:"\\d{8}[\\dA-Z]{16}",CZ:"\\d{20}",DK:"\\d{14}",DO:"[A-Z]{4}\\d{20}",EE:"\\d{16}",FO:"\\d{14}",FI:"\\d{14}",FR:"\\d{10}[\\dA-Z]{11}\\d{2}",GE:"[\\dA-Z]{2}\\d{16}",DE:"\\d{18}",GI:"[A-Z]{4}[\\dA-Z]{15}",GR:"\\d{7}[\\dA-Z]{16}",GL:"\\d{14}",GT:"[\\dA-Z]{4}[\\dA-Z]{20}",HU:"\\d{24}",IS:"\\d{22}",IE:"[\\dA-Z]{4}\\d{14}",IL:"\\d{19}",IT:"[A-Z]\\d{10}[\\dA-Z]{12}",KZ:"\\d{3}[\\dA-Z]{13}",KW:"[A-Z]{4}[\\dA-Z]{22}",LV:"[A-Z]{4}[\\dA-Z]{13}",LB:"\\d{4}[\\dA-Z]{20}",LI:"\\d{5}[\\dA-Z]{12}",LT:"\\d{16}",LU:"\\d{3}[\\dA-Z]{13}",MK:"\\d{3}[\\dA-Z]{10}\\d{2}",MT:"[A-Z]{4}\\d{5}[\\dA-Z]{18}",MR:"\\d{23}",MU:"[A-Z]{4}\\d{19}[A-Z]{3}",MC:"\\d{10}[\\dA-Z]{11}\\d{2}",MD:"[\\dA-Z]{2}\\d{18}",ME:"\\d{18}",NL:"[A-Z]{4}\\d{10}",NO:"\\d{11}",PK:"[\\dA-Z]{4}\\d{16}",PS:"[\\dA-Z]{4}\\d{21}",PL:"\\d{24}",PT:"\\d{21}",RO:"[A-Z]{4}[\\dA-Z]{16}",SM:"[A-Z]\\d{10}[\\dA-Z]{12}",SA:"\\d{2}[\\dA-Z]{18}",RS:"\\d{18}",SK:"\\d{20}",SI:"\\d{15}",ES:"\\d{20}",SE:"\\d{20}",CH:"\\d{5}[\\dA-Z]{12}",TN:"\\d{20}",TR:"\\d{5}[\\dA-Z]{17}",AE:"\\d{3}\\d{16}",GB:"[A-Z]{4}\\d{14}",VG:"[\\dA-Z]{4}\\d{16}"},o=a[c],"undefined"!=typeof o&&(v=new RegExp("^[A-Z]{2}\\d{2}"+o+"$",""),!v.test(i)))return!1;for(f=i.substring(4,i.length)+i.substring(0,4),r=0;r<f.length;r++)e=f.charAt(r),"0"!==e&&(y=!1),y||(s+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(e));for(u=0;u<s.length;u++)l=s.charAt(u),p=""+h+l,h=p%97;return 1===h},"Please specify a valid IBAN");n.validator.addMethod("integer",function(n,t){return this.optional(t)||/^-?\d+$/.test(n)},"A positive or negative non-decimal number please");n.validator.addMethod("ipv4",function(n,t){return this.optional(t)||/^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(n)},"Please enter a valid IP v4 address.");n.validator.addMethod("ipv6",function(n,t){return this.optional(t)||/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(n)},"Please enter a valid IP v6 address.");n.validator.addMethod("lettersonly",function(n,t){return this.optional(t)||/^[a-z]+$/i.test(n)},"Letters only please");n.validator.addMethod("letterswithbasicpunc",function(n,t){return this.optional(t)||/^[a-z\-.,()'"\s]+$/i.test(n)},"Letters or punctuation only please");n.validator.addMethod("mobileNL",function(n,t){return this.optional(t)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)6((\s|\s?\-\s?)?[0-9]){8}$/.test(n)},"Please specify a valid mobile number");n.validator.addMethod("mobileUK",function(n,t){return n=n.replace(/\(|\)|\s+|-/g,""),this.optional(t)||n.length>9&&n.match(/^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[1345789]\d{2}|624)\s?\d{3}\s?\d{3})$/)},"Please specify a valid mobile number");n.validator.addMethod("nieES",function(n){"use strict";return n=n.toUpperCase(),n.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)")?/^[T]{1}/.test(n)?n[8]===/^[T]{1}[A-Z0-9]{8}$/.test(n):/^[XYZ]{1}/.test(n)?n[8]==="TRWAGMYFPDXBNJZSQVHLCKE".charAt(n.replace("X","0").replace("Y","1").replace("Z","2").substring(0,8)%23):!1:!1},"Please specify a valid NIE number.");n.validator.addMethod("nifES",function(n){"use strict";return n=n.toUpperCase(),n.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)")?/^[0-9]{8}[A-Z]{1}$/.test(n)?"TRWAGMYFPDXBNJZSQVHLCKE".charAt(n.substring(8,0)%23)===n.charAt(8):/^[KLM]{1}/.test(n)?n[8]===String.fromCharCode(64):!1:!1},"Please specify a valid NIF number.");jQuery.validator.addMethod("notEqualTo",function(t,i,r){return this.optional(i)||!n.validator.methods.equalTo.call(this,t,i,r)},"Please enter a different value, values must not be the same.");n.validator.addMethod("nowhitespace",function(n,t){return this.optional(t)||/^\S+$/i.test(n)},"No white space please");n.validator.addMethod("pattern",function(n,t,i){return this.optional(t)?!0:("string"==typeof i&&(i=new RegExp("^(?:"+i+")$")),i.test(n))},"Invalid format.");n.validator.addMethod("phoneNL",function(n,t){return this.optional(t)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(n)},"Please specify a valid phone number.");n.validator.addMethod("phoneUK",function(n,t){return n=n.replace(/\(|\)|\s+|-/g,""),this.optional(t)||n.length>9&&n.match(/^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:\d{2}\)?\s?\d{4}\s?\d{4}|\d{3}\)?\s?\d{3}\s?\d{3,4}|\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3})|\d{5}\)?\s?\d{4,5})$/)},"Please specify a valid phone number");n.validator.addMethod("phoneUS",function(n,t){return n=n.replace(/\s+/g,""),this.optional(t)||n.length>9&&n.match(/^(\+?1-?)?(\([2-9]([02-9]\d|1[02-9])\)|[2-9]([02-9]\d|1[02-9]))-?[2-9]([02-9]\d|1[02-9])-?\d{4}$/)},"Please specify a valid phone number");n.validator.addMethod("phonesUK",function(n,t){return n=n.replace(/\(|\)|\s+|-/g,""),this.optional(t)||n.length>9&&n.match(/^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[1345789]\d{8}|624\d{6})))$/)},"Please specify a valid uk phone number");n.validator.addMethod("postalCodeCA",function(n,t){return this.optional(t)||/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ] *\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i.test(n)},"Please specify a valid postal code");n.validator.addMethod("postalcodeBR",function(n,t){return this.optional(t)||/^\d{2}.\d{3}-\d{3}?$|^\d{5}-?\d{3}?$/.test(n)},"Informe um CEP válido.");n.validator.addMethod("postalcodeIT",function(n,t){return this.optional(t)||/^\d{5}$/.test(n)},"Please specify a valid postal code");n.validator.addMethod("postalcodeNL",function(n,t){return this.optional(t)||/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test(n)},"Please specify a valid postal code");n.validator.addMethod("postcodeUK",function(n,t){return this.optional(t)||/^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(n)},"Please specify a valid UK postcode");n.validator.addMethod("require_from_group",function(t,i,r){var u=n(r[1],i.form),f=u.eq(0),e=f.data("valid_req_grp")?f.data("valid_req_grp"):n.extend({},this),o=u.filter(function(){return e.elementValue(this)}).length>=r[0];return f.data("valid_req_grp",e),n(i).data("being_validated")||(u.data("being_validated",!0),u.each(function(){e.element(this)}),u.data("being_validated",!1)),o},n.validator.format("Please fill at least {0} of these fields."));n.validator.addMethod("skip_or_fill_minimum",function(t,i,r){var u=n(r[1],i.form),f=u.eq(0),e=f.data("valid_skip")?f.data("valid_skip"):n.extend({},this),o=u.filter(function(){return e.elementValue(this)}).length,s=0===o||o>=r[0];return f.data("valid_skip",e),n(i).data("being_validated")||(u.data("being_validated",!0),u.each(function(){e.element(this)}),u.data("being_validated",!1)),s},n.validator.format("Please either skip these fields or fill at least {0} of them."));n.validator.addMethod("stateUS",function(n,t,i){var r,u="undefined"==typeof i,o=u||"undefined"==typeof i.caseSensitive?!1:i.caseSensitive,f=u||"undefined"==typeof i.includeTerritories?!1:i.includeTerritories,e=u||"undefined"==typeof i.includeMilitary?!1:i.includeMilitary;return r=f||e?f&&e?"^(A[AEKLPRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":f?"^(A[KLRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":"^(A[AEKLPRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$":"^(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$",r=o?new RegExp(r):new RegExp(r,"i"),this.optional(t)||r.test(n)},"Please specify a valid state");n.validator.addMethod("strippedminlength",function(t,i,r){return n(t).text().length>=r},n.validator.format("Please enter at least {0} characters"));n.validator.addMethod("time",function(n,t){return this.optional(t)||/^([01]\d|2[0-3]|[0-9])(:[0-5]\d){1,2}$/.test(n)},"Please enter a valid time, between 00:00 and 23:59");n.validator.addMethod("time12h",function(n,t){return this.optional(t)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(n)},"Please enter a valid time in 12-hour am/pm format");n.validator.addMethod("url2",function(n,t){return this.optional(t)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(n)},n.validator.messages.url);n.validator.addMethod("vinUS",function(n){if(17!==n.length)return!1;for(var r,t,e,u,f,o=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"],h=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9],c=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],s=0,i=0;17>i;i++){if(e=c[i],t=n.slice(i,i+1),8===i&&(f=t),isNaN(t)){for(r=0;r<o.length;r++)if(t.toUpperCase()===o[r]){t=h[r];t*=e;isNaN(f)&&8===r&&(f=o[r]);break}}else t*=e;s+=t}return u=s%11,10===u&&(u="X"),u===f},"The specified vehicle identification number (VIN) is invalid.");n.validator.addMethod("zipcodeUS",function(n,t){return this.optional(t)||/^\d{5}(-\d{4})?$/.test(n)},"The specified US ZIP Code is invalid");n.validator.addMethod("ziprange",function(n,t){return this.optional(t)||/^90[2-5]\d\{2\}-\d{4}$/.test(n)},"Your ZIP-code must be in the range 902xx-xxxx to 905xx-xxxx")});window.Modernizr=function(n,t,i){function y(n){w.cssText=n}function u(n,t){return typeof n===t}var r={},o=!0,s=t.documentElement,p=t.createElement("modernizr"),w=p.style,b,k={}.toString,h={},c=[],l=c.slice,f,a={}.hasOwnProperty,v,e;v=!u(a,"undefined")&&!u(a.call,"undefined")?function(n,t){return a.call(n,t)}:function(n,t){return t in n&&u(n.constructor.prototype[t],"undefined")};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=l.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(l.call(arguments))),Object(u)===u?u:e):t.apply(n,i.concat(l.call(arguments)))},r});for(e in h)v(h,e)&&(f=e.toLowerCase(),r[f]=h[e](),c.push((r[f]?"":"no-")+f));return r.addTest=function(n,t){if(typeof n=="object")for(var u in n)v(n,u)&&r.addTest(u,n[u]);else{if(n=n.toLowerCase(),r[n]!==i)return r;t=typeof t=="function"?t():t;typeof o!="undefined"&&o&&(s.className+=" "+(t?"":"no-")+n);r[n]=t}return r},y(""),p=b=null,function(n,t){function v(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function s(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function u(n){var t=a[n[l]];return t||(t={},o++,n[l]=o,a[o]=t),t}function h(n,r,f){if(r||(r=t),i)return r.createElement(n);f||(f=u(r));var e;return e=f.cache[n]?f.cache[n].cloneNode():b.test(n)?(f.cache[n]=f.createElem(n)).cloneNode():f.createElem(n),e.canHaveChildren&&!w.test(n)?f.frag.appendChild(e):e}function y(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||u(n);for(var e=r.frag.cloneNode(),f=0,o=s(),h=o.length;f<h;f++)e.createElement(o[f]);return e}function p(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(i){return r.shivMethods?h(i,n,t):t.createElem(i)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+s().join().replace(/\w+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function c(n){n||(n=t);var f=u(n);return r.shivCSS&&!e&&!f.hasCSS&&(f.hasCSS=!!v(n,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),i||p(n,f),n}var f=n.html5||{},w=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,b=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,e,l="_html5shiv",o=0,a={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";e="hidden"in n;i=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(r){e=!0;i=!0}})();r={elements:f.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:f.shivCSS!==!1,supportsUnknownElements:i,shivMethods:f.shivMethods!==!1,type:"default",shivDocument:c,createElement:h,createDocumentFragment:y};n.html5=r;c(t)}(this,t),r._version="2.6.2",s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(o?" js "+c.join(" "):""),r}(this,this.document),function(n,t,i){function h(n){return"[object Function]"==y.call(n)}function c(n){return"string"==typeof n}function l(){}function w(n){return!n||"loaded"==n||"complete"==n||"uninitialized"==n}function e(){var n=a.shift();v=1;n?n.t?s(function(){("c"==n.t?u.injectCss:u.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),e()):v=0}function ut(n,i,f,h,c,l,y){function k(t){if(!nt&&w(p.readyState)&&(tt.r=nt=1,!v&&e(),p.onload=p.onreadystatechange=null,t)){"img"!=n&&s(function(){g.removeChild(p)},50);for(var u in r[i])r[i].hasOwnProperty(u)&&r[i][u].onload()}}var y=y||u.errorTimeout,p=t.createElement(n),nt=0,b=0,tt={t:f,s:i,e:c,a:l,x:y};1===r[i]&&(b=1,r[i]=[]);"object"==n?p.data=i:(p.src=i,p.type=n);p.width=p.height="0";p.onerror=p.onload=p.onreadystatechange=function(){k.call(this,b)};a.splice(h,0,tt);"img"!=n&&(b||2===r[i]?(g.insertBefore(p,d?null:o),s(k,y)):r[i].push(p))}function ft(n,t,i,r,u){return v=0,t=t||"j",c(n)?ut("c"==t?et:nt,n,t,this.i++,i,r,u):(a.splice(this.i++,0,n),1==a.length&&e()),this}function b(){var n=u;return n.loader={load:ft,i:0},n}var f=t.documentElement,s=n.setTimeout,o=t.getElementsByTagName("script")[0],y={}.toString,a=[],v=0,k="MozAppearance"in f.style,d=k&&!!t.createRange().compareNode,g=d?f:o.parentNode,f=n.opera&&"[object Opera]"==y.call(n.opera),f=!!t.attachEvent&&!f,nt=k?"object":f?"script":"img",et=f?"script":nt,tt=Array.isArray||function(n){return"[object Array]"==y.call(n)},p=[],r={},it={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},rt,u;u=function(n){function a(n){for(var n=n.split("!"),f=p.length,t=n.pop(),e=n.length,t={url:t,origUrl:t,prefixes:n},u,r,i=0;i<e;i++)r=n[i].split("="),(u=it[r.shift()])&&(t=u(t,r));for(i=0;i<f;i++)t=p[i](t);return t}function f(n,t,u,f,e){var o=a(n),s=o.autoCallback;o.url.split(".").pop().split("?").shift();o.bypass||(t&&(t=h(t)?t:t[n]||t[f]||t[n.split("/").pop().split("?")[0]]),o.instead?o.instead(n,t,u,f,e):(r[o.url]?o.noexec=!0:r[o.url]=1,u.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":i,o.noexec,o.attrs,o.timeout),(h(t)||h(s))&&u.load(function(){b();t&&t(o.origUrl,e,f);s&&s(o.origUrl,e,f);r[o.url]=2})))}function s(n,t){function a(n,o){if(n){if(c(n))o||(i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}),f(n,i,t,0,e);else if(Object(n)===n)for(r in v=function(){var t=0,i;for(i in n)n.hasOwnProperty(i)&&t++;return t}(),n)n.hasOwnProperty(r)&&(!o&&!--v&&(h(i)?i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t);u()}}(s[r])),f(n[r],i,t,r,e))}else o||u()}var e=!!n.test,o=n.load||n.both,i=n.callback||l,s=i,u=n.complete||l,v,r;a(e?n.yep:n.nope,!!o);o&&a(o)}var e,t,o=this.yepnope.loader;if(c(n))f(n,0,o,0);else if(tt(n))for(e=0;e<n.length;e++)t=n[e],c(t)?f(t,0,o,0):tt(t)?u(t):Object(t)===t&&s(t,o);else Object(n)===n&&s(n,o)};u.addPrefix=function(n,t){it[n]=t};u.addFilter=function(n){p.push(n)};u.errorTimeout=1e4;null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",rt=function(){t.removeEventListener("DOMContentLoaded",rt,0);t.readyState="complete"},0));n.yepnope=b();n.yepnope.executeStack=e;n.yepnope.injectJs=function(n,i,r,f,h,c){var a=t.createElement("script"),v,y,f=f||u.errorTimeout;a.src=n;for(y in r)a.setAttribute(y,r[y]);i=c?e:i||l;a.onreadystatechange=a.onload=function(){!v&&w(a.readyState)&&(v=1,i(),a.onload=a.onreadystatechange=null)};s(function(){v||(v=1,i(1))},f);h?a.onload():o.parentNode.insertBefore(a,o)};n.yepnope.injectCss=function(n,i,r,u,f,h){var u=t.createElement("link"),c,i=h?e:i||l;u.href=n;u.rel="stylesheet";u.type="text/css";for(c in r)u.setAttribute(c,r[c]);f||(o.parentNode.insertBefore(u,o),s(i,0))}}(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function t(){return df.apply(null,arguments)}function rh(n){df=n}function nt(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function gt(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function s(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function fu(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var t;for(t in n)if(s(n,t))return!1;return!0}function w(n){return n===void 0}function ct(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function vi(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function gf(n,t){for(var r=[],u=n.length,i=0;i<u;++i)r.push(t(n[i],i));return r}function bt(n,t){for(var i in t)s(t,i)&&(n[i]=t[i]);return s(t,"toString")&&(n.toString=t.toString),s(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ut(n,t,i,r){return vo(n,t,i,r,!0).utc()}function uh(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function u(n){return n._pf==null&&(n._pf=uh()),n._pf}function eu(n){var t=null,r=!1,i=n._d&&!isNaN(n._d.getTime());return(i&&(t=u(n),r=ne.call(t.parsedDateParts,function(n){return n!=null}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),n._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined)),Object.isFrozen!=null&&Object.isFrozen(n))?i:(n._isValid=i,n._isValid)}function ir(n){var t=ut(NaN);return n!=null?bt(u(t),n):u(t).userInvalidated=!0,t}function su(n,t){var i,r,f,e=ou.length;if(w(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),w(t._i)||(n._i=t._i),w(t._f)||(n._f=t._f),w(t._l)||(n._l=t._l),w(t._strict)||(n._strict=t._strict),w(t._tzm)||(n._tzm=t._tzm),w(t._isUTC)||(n._isUTC=t._isUTC),w(t._offset)||(n._offset=t._offset),w(t._pf)||(n._pf=u(t)),w(t._locale)||(n._locale=t._locale),e>0)for(i=0;i<e;i++)r=ou[i],f=t[r],w(f)||(n[r]=f);return n}function yi(n){su(this,n);this._d=new Date(n._d!=null?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));rr===!1&&(rr=!0,t.updateOffset(this),rr=!1)}function tt(n){return n instanceof yi||n!=null&&n._isAMomentObject!=null}function te(n){t.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function k(n,i){var r=!0;return bt(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,n),r){for(var o=[],u,e,h=arguments.length,f=0;f<h;f++){if(u="",typeof arguments[f]=="object"){u+="\n["+f+"] ";for(e in arguments[0])s(arguments[0],e)&&(u+=e+": "+arguments[0][e]+", ");u=u.slice(0,-2)}else u=arguments[f];o.push(u)}te(n+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack);r=!1}return i.apply(this,arguments)},i)}function ie(n,i){t.deprecationHandler!=null&&t.deprecationHandler(n,i);hu[n]||(te(i),hu[n]=!0)}function ft(n){return typeof Function!="undefined"&&n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function fh(n){var i,t;for(t in n)s(n,t)&&(i=n[t],ft(i)?this[t]=i:this["_"+t]=i);this._config=n;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function cu(n,t){var r=bt({},n),i;for(i in t)s(t,i)&&(gt(n[i])&&gt(t[i])?(r[i]={},bt(r[i],n[i]),bt(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in n)s(n,i)&&!s(t,i)&&gt(n[i])&&(r[i]=bt({},r[i]));return r}function lu(n){n!=null&&this.set(n)}function eh(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return ft(r)?r.call(t,i):r}function et(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;typeof r=="string"&&(u=function(){return this[r]()});n&&(ui[n]=u);t&&(ui[t[0]]=function(){return et(u.apply(this,arguments),t[1],t[2])});i&&(ui[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function oh(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function sh(n){for(var t=n.match(au),i=0,r=t.length;i<r;i++)t[i]=ui[t[i]]?ui[t[i]]:oh(t[i]);return function(i){for(var f="",u=0;u<r;u++)f+=ft(t[u])?t[u].call(i,n):t[u];return f}}function fr(n,t){return n.isValid()?(t=fe(t,n.localeData()),vu[t]=vu[t]||sh(t),vu[t](n)):n.localeData().invalidDate()}function fe(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(ur.lastIndex=0;i>=0&&ur.test(n);)n=n.replace(ur,r),ur.lastIndex=0,i-=1;return n}function hh(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.match(au).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[n])}function ch(){return this._invalidDate}function lh(n){return this._ordinal.replace("%d",n)}function ah(n,t,i,r){var u=this._relativeTime[i];return ft(u)?u(n,t,i,r):u.replace(/%d/i,n)}function vh(n,t){var i=this._relativeTime[n>0?"future":"past"];return ft(i)?i(t):i.replace(/%s/i,t)}function d(n){return typeof n=="string"?yu[n]||yu[n.toLowerCase()]:undefined}function pu(n){var r={},i,t;for(t in n)s(n,t)&&(i=d(t),i&&(r[i]=n[t]));return r}function yh(n){var i=[],t;for(t in n)s(n,t)&&i.push({unit:t,priority:le[t]});return i.sort(function(n,t){return n.priority-t.priority}),i}function i(n,t,i){lr[n]=ft(t)?t:function(n){return n&&i?i:t}}function wh(n,t){return s(lr,n)?lr[n](t._strict,t._locale):new RegExp(bh(n))}function bh(n){return lt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function lt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function g(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function f(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=g(t)),i}function h(n,t){var i,r=t,u;for(typeof n=="string"&&(n=[n]),ct(t)&&(r=function(n,i){i[t]=f(n)}),u=n.length,i=0;i<u;i++)ar[n[i]]=r}function wi(n,t){h(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function kh(n,t,i){t!=null&&s(ar,n)&&ar[n](t,i._a,i,n)}function vr(n){return n%4==0&&n%100!=0||n%400==0}function bi(n){return vr(n)?366:365}function nc(){return vr(this.year())}function oi(n,i){return function(r){return r!=null?(we(this,n,r),t.updateOffset(this,i),this):ki(this,n)}}function ki(n,t){if(!n.isValid())return NaN;var i=n._d,r=n._isUTC;switch(t){case"Milliseconds":return r?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return r?i.getUTCSeconds():i.getSeconds();case"Minutes":return r?i.getUTCMinutes():i.getMinutes();case"Hours":return r?i.getUTCHours():i.getHours();case"Date":return r?i.getUTCDate():i.getDate();case"Day":return r?i.getUTCDay():i.getDay();case"Month":return r?i.getUTCMonth():i.getMonth();case"FullYear":return r?i.getUTCFullYear():i.getFullYear();default:return NaN}}function we(n,t,i){var r,u,e,o,f;if(n.isValid()&&!isNaN(i)){r=n._d;u=n._isUTC;switch(t){case"Milliseconds":return void(u?r.setUTCMilliseconds(i):r.setMilliseconds(i));case"Seconds":return void(u?r.setUTCSeconds(i):r.setSeconds(i));case"Minutes":return void(u?r.setUTCMinutes(i):r.setMinutes(i));case"Hours":return void(u?r.setUTCHours(i):r.setHours(i));case"Date":return void(u?r.setUTCDate(i):r.setDate(i));case"FullYear":break;default:return}e=i;o=n.month();f=n.date();f=f===29&&o===1&&!vr(e)?28:f;void(u?r.setUTCFullYear(e,o,f):r.setFullYear(e,o,f))}}function tc(n){return(n=d(n),ft(this[n]))?this[n]():this}function ic(n,t){if(typeof n=="object"){n=pu(n);for(var r=yh(n),u=r.length,i=0;i<u;i++)this[r[i].unit](n[r[i].unit])}else if(n=d(n),ft(this[n]))return this[n](t);return this}function rc(n,t){return(n%t+t)%t}function gu(n,t){if(isNaN(n)||isNaN(t))return NaN;var i=rc(t,12);return n+=(t-i)/12,i===1?vr(n)?29:28:31-i%7%2}function oc(n,t){return n?nt(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||ke).test(t)?"format":"standalone"][n.month()]:nt(this._months)?this._months:this._months.standalone}function sc(n,t){return n?nt(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[ke.test(t)?"format":"standalone"][n.month()]:nt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function hc(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=ut([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?t==="MMM"?(r=v.call(this._shortMonthsParse,f),r!==-1?r:null):(r=v.call(this._longMonthsParse,f),r!==-1?r:null):t==="MMM"?(r=v.call(this._shortMonthsParse,f),r!==-1)?r:(r=v.call(this._longMonthsParse,f),r!==-1?r:null):(r=v.call(this._longMonthsParse,f),r!==-1)?r:(r=v.call(this._shortMonthsParse,f),r!==-1?r:null)}function cc(n,t,i){var r,u,f;if(this._monthsParseExact)return hc.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=ut([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[r].test(n))||i&&t==="MMM"&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function de(n,t){if(!n.isValid())return n;if(typeof t=="string")if(/^\d+$/.test(t))t=f(t);else if(t=n.localeData().monthsParse(t),!ct(t))return n;var r=t,i=n.date();return i=i<29?i:Math.min(i,gu(n.year(),r)),void(n._isUTC?n._d.setUTCMonth(r,i):n._d.setMonth(r,i)),n}function ge(n){return n!=null?(de(this,n),t.updateOffset(this,!0),this):ki(this,"Month")}function lc(){return gu(this.year(),this.month())}function ac(n){return this._monthsParseExact?(s(this,"_monthsRegex")||no.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=fc),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function vc(n){return this._monthsParseExact?(s(this,"_monthsRegex")||no.call(this),n?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=ec),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function no(){function i(n,t){return t.length-n.length}for(var r=[],u=[],n=[],f,e,o,t=0;t<12;t++)f=ut([2e3,t]),e=lt(this.monthsShort(f,"")),o=lt(this.months(f,"")),r.push(e),u.push(o),n.push(o),n.push(e);r.sort(i);u.sort(i);n.sort(i);this._monthsRegex=new RegExp("^("+n.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+u.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function yc(n,t,i,r,u,f,e){var o;return n<100&&n>=0?(o=new Date(n+400,t,i,r,u,f,e),isFinite(o.getFullYear())&&o.setFullYear(n)):o=new Date(n,t,i,r,u,f,e),o}function di(n){var t,i;return n<100&&n>=0?(i=Array.prototype.slice.call(arguments),i[0]=n+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n)):t=new Date(Date.UTC.apply(null,arguments)),t}function yr(n,t,i){var r=7+t-i,u=(7+di(n,0,r).getUTCDay()-t)%7;return-u+r-1}function to(n,t,i,r,u){var s=(7+i-r)%7,h=yr(n,r,u),f=1+7*(t-1)+s+h,e,o;return f<=0?(e=n-1,o=bi(e)+f):f>bi(n)?(e=n+1,o=f-bi(n)):(e=n,o=f),{year:e,dayOfYear:o}}function gi(n,t,i){var e=yr(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1,f,u;return r<1?(u=n.year()-1,f=r+yt(u,t,i)):r>yt(n.year(),t,i)?(f=r-yt(n.year(),t,i),u=n.year()+1):(u=n.year(),f=r),{week:f,year:u}}function yt(n,t,i){var r=yr(n,t,i),u=yr(n+1,t,i);return(bi(n)-r+u)/7}function pc(n){return gi(n,this._week.dow,this._week.doy).week}function wc(){return this._week.dow}function bc(){return this._week.doy}function kc(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")}function dc(n){var t=gi(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")}function gc(n,t){return typeof n!="string"?n:isNaN(n)?(n=t.weekdaysParse(n),typeof n=="number")?n:null:parseInt(n,10)}function nl(n,t){return typeof n=="string"?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function nf(n,t){return n.slice(t,7).concat(n.slice(0,t))}function el(n,t){var i=nt(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return n===!0?nf(i,this._week.dow):n?i[n.day()]:i}function ol(n){return n===!0?nf(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function sl(n){return n===!0?nf(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function hl(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=ut([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?t==="dddd"?(r=v.call(this._weekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=v.call(this._shortWeekdaysParse,u),r!==-1?r:null):(r=v.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="dddd"?(r=v.call(this._weekdaysParse,u),r!==-1)?r:(r=v.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=v.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=v.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=v.call(this._weekdaysParse,u),r!==-1)?r:(r=v.call(this._minWeekdaysParse,u),r!==-1?r:null):(r=v.call(this._minWeekdaysParse,u),r!==-1)?r:(r=v.call(this._weekdaysParse,u),r!==-1)?r:(r=v.call(this._shortWeekdaysParse,u),r!==-1?r:null)}function cl(n,t,i){var r,u,f;if(this._weekdaysParseExact)return hl.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=ut([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="dddd"&&this._fullWeekdaysParse[r].test(n))||i&&t==="ddd"&&this._shortWeekdaysParse[r].test(n)||i&&t==="dd"&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}function ll(n){if(!this.isValid())return n!=null?this:NaN;var t=ki(this,"Day");return n!=null?(n=gc(n,this.localeData()),this.add(n-t,"d")):t}function al(n){if(!this.isValid())return n!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")}function vl(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var t=nl(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function yl(n){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||tf.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=rl),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function pl(n){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||tf.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ul),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function wl(n){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||tf.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=fl),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function tf(){function t(n,t){return t.length-n.length}for(var u=[],f=[],e=[],n=[],r,o,s,h,i=0;i<7;i++)r=ut([2e3,1]).day(i),o=lt(this.weekdaysMin(r,"")),s=lt(this.weekdaysShort(r,"")),h=lt(this.weekdays(r,"")),u.push(o),f.push(s),e.push(h),n.push(o),n.push(s),n.push(h);u.sort(t);f.sort(t);e.sort(t);n.sort(t);this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+e.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+f.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+u.join("|")+")","i")}function rf(){return this.hours()%12||12}function bl(){return this.hours()||24}function uo(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function fo(n,t){return t._meridiemParse}function kl(n){return(n+"").toLowerCase().charAt(0)==="p"}function dl(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function gl(n,t){for(var r=Math.min(n.length,t.length),i=0;i<r;i+=1)if(n[i]!==t[i])return i;return r}function ho(n){return n?n.toLowerCase().replace("_","-"):n}function na(n){for(var r=0,i,t,f,u;r<n.length;){for(u=ho(n[r]).split("-"),i=u.length,t=ho(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=pr(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&gl(u,t)>=i-1)break;i--}r++}return tr}function ta(n){return!!(n&&n.match("^[^/\\\\]*$"))}function pr(n){var t=null,i;if(a[n]===undefined&&typeof module!="undefined"&&module&&module.exports&&ta(n))try{t=tr._abbr;i=require;i("./locale/"+n);kt(t)}catch(r){a[n]=null}return a[n]}function kt(n,t){var i;return n&&(i=w(t)?pt(n):uf(n,t),i?tr=i:typeof console!="undefined"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),tr._abbr}function uf(n,t){if(t!==null){var r,i=so;if(t.abbr=n,a[n]!=null)ie("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=a[n]._config;else if(t.parentLocale!=null)if(a[t.parentLocale]!=null)i=a[t.parentLocale]._config;else if(r=pr(t.parentLocale),r!=null)i=r._config;else return nr[t.parentLocale]||(nr[t.parentLocale]=[]),nr[t.parentLocale].push({name:n,config:t}),null;return a[n]=new lu(cu(i,t)),nr[n]&&nr[n].forEach(function(n){uf(n.name,n.config)}),kt(n),a[n]}return delete a[n],null}function ia(n,t){if(t!=null){var r,i,u=so;a[n]!=null&&a[n].parentLocale!=null?a[n].set(cu(a[n]._config,t)):(i=pr(n),i!=null&&(u=i._config),t=cu(u,t),i==null&&(t.abbr=n),r=new lu(t),r.parentLocale=a[n],a[n]=r);kt(n)}else a[n]!=null&&(a[n].parentLocale!=null?(a[n]=a[n].parentLocale,n===kt()&&kt(n)):a[n]!=null&&delete a[n]);return a[n]}function pt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return tr;if(!nt(n)){if(t=pr(n),t)return t;n=[n]}return na(n)}function ra(){return re(a)}function ff(n){var i,t=n._a;return t&&u(n).overflow===-2&&(i=t[at]<0||t[at]>11?at:t[ot]<1||t[ot]>gu(t[p],t[at])?ot:t[y]<0||t[y]>24||t[y]===24&&(t[it]!==0||t[vt]!==0||t[ni]!==0)?y:t[it]<0||t[it]>59?it:t[vt]<0||t[vt]>59?vt:t[ni]<0||t[ni]>999?ni:-1,u(n)._overflowDayOfYear&&(i<p||i>ot)&&(i=ot),u(n)._overflowWeeks&&i===-1&&(i=dh),u(n)._overflowWeekday&&i===-1&&(i=gh),u(n).overflow=i),n}function co(n){var t,r,o=n._i,i=ua.exec(o)||fa.exec(o),s,e,f,h,c=wr.length,l=ef.length;if(i){for(u(n).iso=!0,t=0,r=c;t<r;t++)if(wr[t][1].exec(i[1])){e=wr[t][0];s=wr[t][2]!==!1;break}if(e==null){n._isValid=!1;return}if(i[3]){for(t=0,r=l;t<r;t++)if(ef[t][1].exec(i[3])){f=(i[2]||" ")+ef[t][0];break}if(f==null){n._isValid=!1;return}}if(!s&&f!=null){n._isValid=!1;return}if(i[4])if(ea.exec(i[4]))h="Z";else{n._isValid=!1;return}n._f=e+(f||"")+(h||"");sf(n)}else n._isValid=!1}function ca(n,t,i,r,u,f){var e=[la(n),be.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(u,10),];return f&&e.push(parseInt(f,10)),e}function la(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}function aa(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function va(n,t,i){if(n){var r=ro.indexOf(n),f=new Date(t[0],t[1],t[2]).getDay();if(r!==f)return u(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function ya(n,t,i){if(n)return ha[n];if(t)return 0;var r=parseInt(i,10),u=r%100,f=(r-u)/100;return f*60+u}function lo(n){var t=sa.exec(aa(n._i)),i;if(t){if(i=ca(t[4],t[3],t[2],t[5],t[6],t[7]),!va(t[1],i,n))return;n._a=i;n._tzm=ya(t[8],t[9],t[10]);n._d=di.apply(null,n._a);n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);u(n).rfc2822=!0}else n._isValid=!1}function pa(n){var i=oa.exec(n._i);if(i!==null){n._d=new Date(+i[1]);return}if(co(n),n._isValid===!1)delete n._isValid;else return;if(lo(n),n._isValid===!1)delete n._isValid;else return;n._strict?n._isValid=!1:t.createFromInputFallback(n)}function si(n,t,i){return n!=null?n:t!=null?t:i}function wa(n){var i=new Date(t.now());return n._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),]:[i.getFullYear(),i.getMonth(),i.getDate()]}function of(n){var t,i,r=[],f,o,e;if(!n._d){for(f=wa(n),n._w&&n._a[ot]==null&&n._a[at]==null&&ba(n),n._dayOfYear!=null&&(e=si(n._a[p],f[p]),(n._dayOfYear>bi(e)||n._dayOfYear===0)&&(u(n)._overflowDayOfYear=!0),i=di(e,0,n._dayOfYear),n._a[at]=i.getUTCMonth(),n._a[ot]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=f[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[y]===24&&n._a[it]===0&&n._a[vt]===0&&n._a[ni]===0&&(n._nextDay=!0,n._a[y]=0);n._d=(n._useUTC?di:yc).apply(null,r);o=n._useUTC?n._d.getUTCDay():n._d.getDay();n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[y]=24);n._w&&typeof n._w.d!="undefined"&&n._w.d!==o&&(u(n).weekdayMismatch=!0)}}function ba(n){var t,o,f,i,r,e,h,s,c;t=n._w;t.GG!=null||t.W!=null||t.E!=null?(r=1,e=4,o=si(t.GG,n._a[p],gi(l(),1,4).year),f=si(t.W,1),i=si(t.E,1),(i<1||i>7)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,c=gi(l(),r,e),o=si(t.gg,n._a[p],c.year),f=si(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(s=!0)):t.e!=null?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);f<1||f>yt(o,r,e)?u(n)._overflowWeeks=!0:s!=null?u(n)._overflowWeekday=!0:(h=to(o,f,i,r,e),n._a[p]=h.year,n._dayOfYear=h.dayOfYear)}function sf(n){if(n._f===t.ISO_8601){co(n);return}if(n._f===t.RFC_2822){lo(n);return}n._a=[];u(n).empty=!0;var i=""+n._i,e,r,o,f,s,a=i.length,c=0,h,l;for(o=fe(n._f,n._locale).match(au)||[],l=o.length,e=0;e<l;e++)f=o[e],r=(i.match(wh(f,n))||[])[0],r&&(s=i.substr(0,i.indexOf(r)),s.length>0&&u(n).unusedInput.push(s),i=i.slice(i.indexOf(r)+r.length),c+=r.length),ui[f]?(r?u(n).empty=!1:u(n).unusedTokens.push(f),kh(f,r,n)):n._strict&&!r&&u(n).unusedTokens.push(f);u(n).charsLeftOver=a-c;i.length>0&&u(n).unusedInput.push(i);n._a[y]<=12&&u(n).bigHour===!0&&n._a[y]>0&&(u(n).bigHour=undefined);u(n).parsedDateParts=n._a.slice(0);u(n).meridiem=n._meridiem;n._a[y]=ka(n._locale,n._a[y],n._meridiem);h=u(n).era;h!==null&&(n._a[p]=n._locale.erasConvertYear(h,n._a[p]));of(n);ff(n)}function ka(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function da(n){var t,o,r,f,i,e,s=!1,h=n._f.length;if(h===0){u(n).invalidFormat=!0;n._d=new Date(NaN);return}for(f=0;f<h;f++)i=0,e=!1,t=su({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._f=n._f[f],sf(t),eu(t)&&(e=!0),i+=u(t).charsLeftOver,i+=u(t).unusedTokens.length*10,u(t).score=i,s?i<r&&(r=i,o=t):(r==null||i<r||e)&&(r=i,o=t,e&&(s=!0));bt(n,o||t)}function ga(n){if(!n._d){var t=pu(n._i),i=t.day===undefined?t.date:t.day;n._a=gf([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});of(n)}}function nv(n){var t=new yi(ff(ao(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function ao(n){var t=n._i,i=n._f;return(n._locale=n._locale||pt(n._l),t===null||i===undefined&&t==="")?ir({nullInput:!0}):(typeof t=="string"&&(n._i=t=n._locale.preparse(t)),tt(t))?new yi(ff(t)):(vi(t)?n._d=t:nt(i)?da(n):i?sf(n):tv(n),eu(n)||(n._d=null),n)}function tv(n){var i=n._i;w(i)?n._d=new Date(t.now()):vi(i)?n._d=new Date(i.valueOf()):typeof i=="string"?pa(n):nt(i)?(n._a=gf(i.slice(0),function(n){return parseInt(n,10)}),of(n)):gt(i)?ga(n):ct(i)?n._d=new Date(i):t.createFromInputFallback(n)}function vo(n,t,i,r,u){var f={};return(t===!0||t===!1)&&(r=t,t=undefined),(i===!0||i===!1)&&(r=i,i=undefined),(gt(n)&&fu(n)||nt(n)&&n.length===0)&&(n=undefined),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,nv(f)}function l(n,t,i,r){return vo(n,t,i,r,!1)}function wo(n,t){var r,i;if(t.length===1&&nt(t[0])&&(t=t[0]),!t.length)return l();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][n](r))&&(r=t[i]);return r}function iv(){var n=[].slice.call(arguments,0);return wo("isBefore",n)}function rv(){var n=[].slice.call(arguments,0);return wo("isAfter",n)}function uv(n){var i,r=!1,t,u=hi.length;for(i in n)if(s(n,i)&&!(v.call(hi,i)!==-1&&(n[i]==null||!isNaN(n[i]))))return!1;for(t=0;t<u;++t)if(n[hi[t]]){if(r)return!1;parseFloat(n[hi[t]])!==f(n[hi[t]])&&(r=!0)}return!0}function fv(){return this._isValid}function ev(){return rt(NaN)}function br(n){var t=pu(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||t.isoWeek||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._isValid=uv(t);this._milliseconds=+c+h*1e3+s*6e4+o*36e5;this._days=+e+f*7;this._months=+u+r*3+i*12;this._data={};this._locale=pt();this._bubble()}function kr(n){return n instanceof br}function hf(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function ov(n,t,i){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;r<e;r++)(i&&n[r]!==t[r]||!i&&f(n[r])!==f(t[r]))&&u++;return u+o}function ko(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+et(~~(n/60),2)+t+et(~~n%60,2)})}function cf(n,t){var u=(t||"").match(n),e,i,r;return u===null?null:(e=u[u.length-1]||[],i=(e+"").match(go)||["-",0,0],r=+(i[1]*60)+f(i[2]),r===0?0:i[0]==="+"?r:-r)}function lf(n,i){var r,u;return i._isUTC?(r=i.clone(),u=(tt(n)||vi(n)?n.valueOf():l(n).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+u),t.updateOffset(r,!1),r):l(n).local()}function af(n){return-Math.round(n._d.getTimezoneOffset())}function sv(n,i,r){var u=this._offset||0,f;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=cf(cr,n),n===null)return this}else Math.abs(n)<16&&!r&&(n=n*60);return!this._isUTC&&i&&(f=af(this)),this._offset=n,this._isUTC=!0,f!=null&&this.add(f,"m"),u!==n&&(!i||this._changeInProgress?fs(this,rt(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?u:af(this)}function hv(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function cv(n){return this.utcOffset(0,n)}function lv(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(af(this),"m")),this}function av(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=cf(ph,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function vv(n){return this.isValid()?(n=n?l(n).utcOffset():0,(this.utcOffset()-n)%60==0):!1}function yv(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function pv(){if(!w(this._isDSTShifted))return this._isDSTShifted;var n={},t;return su(n,this),n=ao(n),n._a?(t=n._isUTC?ut(n._a):l(n._a),this._isDSTShifted=this.isValid()&&ov(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wv(){return this.isValid()?!this._isUTC:!1}function bv(){return this.isValid()?this._isUTC:!1}function ns(){return this.isValid()?this._isUTC&&this._offset===0:!1}function rt(n,t){var i=n,r=null,u,e,o;return kr(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:ct(n)||!isNaN(+n)?(i={},t?i[t]=+n:i.milliseconds=+n):(r=ts.exec(n))?(u=r[1]==="-"?-1:1,i={y:0,d:f(r[ot])*u,h:f(r[y])*u,m:f(r[it])*u,s:f(r[vt])*u,ms:f(hf(r[ni]*1e3))*u}):(r=is.exec(n))?(u=r[1]==="-"?-1:1,i={y:ti(r[2],u),M:ti(r[3],u),w:ti(r[4],u),d:ti(r[5],u),h:ti(r[6],u),m:ti(r[7],u),s:ti(r[8],u)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(o=kv(l(i.from),l(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),e=new br(i),kr(n)&&s(n,"_locale")&&(e._locale=n._locale),kr(n)&&s(n,"_isValid")&&(e._isValid=n._isValid),e}function ti(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function rs(n,t){var i={};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function kv(n,t){var i;return(n.isValid()&&t.isValid())?(t=lf(t,n),n.isBefore(t)?i=rs(n,t):(i=rs(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function us(n,t){return function(i,r){var u,f;return r===null||isNaN(+r)||(ie(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=i,i=r,r=f),u=rt(i,r),fs(this,u,n),this}}function fs(n,i,r,u){var o=i._milliseconds,f=hf(i._days),e=hf(i._months);n.isValid()&&(u=u==null?!0:u,e&&de(n,ki(n,"Month")+e*r),f&&we(n,"Date",ki(n,"Date")+f*r),o&&n._d.setTime(n._d.valueOf()+o*r),u&&t.updateOffset(n,f||e))}function ss(n){return typeof n=="string"||n instanceof String}function dv(n){return tt(n)||vi(n)||ss(n)||ct(n)||ny(n)||gv(n)||n===null||n===undefined}function gv(n){for(var f=gt(n)&&!fu(n),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms",],u,e=r.length,t=0;t<e;t+=1)u=r[t],i=i||s(n,u);return f&&i}function ny(n){var t=nt(n),i=!1;return t&&(i=n.filter(function(t){return!ct(t)&&ss(n)}).length===0),t&&i}function ty(n){for(var f=gt(n)&&!fu(n),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse",],u,t=0;t<r.length;t+=1)u=r[t],i=i||s(n,u);return f&&i}function iy(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function ry(n,i){arguments.length===1&&(arguments[0]?dv(arguments[0])?(n=arguments[0],i=undefined):ty(arguments[0])&&(i=arguments[0],n=undefined):(n=undefined,i=undefined));var u=n||l(),f=lf(u,this).startOf("day"),r=t.calendarFormat(this,f)||"sameElse",e=i&&(ft(i[r])?i[r].call(this,u):i[r]);return this.format(e||this.localeData().calendar(r,this,l(u)))}function uy(){return new yi(this)}function fy(n,t){var i=tt(n)?n:l(n);return(this.isValid()&&i.isValid())?(t=d(t)||"millisecond",t==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf()):!1}function ey(n,t){var i=tt(n)?n:l(n);return(this.isValid()&&i.isValid())?(t=d(t)||"millisecond",t==="millisecond"?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf()):!1}function oy(n,t,i,r){var u=tt(n)?n:l(n),f=tt(t)?t:l(t);return(this.isValid()&&u.isValid()&&f.isValid())?(r=r||"()",(r[0]==="("?this.isAfter(u,i):!this.isBefore(u,i))&&(r[1]===")"?this.isBefore(f,i):!this.isAfter(f,i))):!1}function sy(n,t){var i=tt(n)?n:l(n),r;return(this.isValid()&&i.isValid())?(t=d(t)||"millisecond",t==="millisecond"?this.valueOf()===i.valueOf():(r=i.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function hy(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function cy(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function ly(n,t,i){var r,f,u;if(!this.isValid())return NaN;if(r=lf(n,this),!r.isValid())return NaN;f=(r.utcOffset()-this.utcOffset())*6e4;t=d(t);switch(t){case"year":u=dr(this,r)/12;break;case"month":u=dr(this,r);break;case"quarter":u=dr(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-f)/864e5;break;case"week":u=(this-r-f)/6048e5;break;default:u=this-r}return i?u:g(u)}function dr(n,t){if(n.date()<t.date())return-dr(t,n);var r=(t.year()-n.year())*12+(t.month()-n.month()),i=n.clone().add(r,"months"),u,f;return t-i<0?(u=n.clone().add(r-1,"months"),f=(t-i)/(i-u)):(u=n.clone().add(r+1,"months"),f=(t-i)/(u-i)),-(r+f)||0}function ay(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function vy(n){if(!this.isValid())return null;var i=n!==!0,t=i?this.clone().utc():this;return t.year()<0||t.year()>9999?fr(t,i?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ft(Date.prototype.toISOString)?i?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*6e4).toISOString().replace("Z",fr(t,"Z")):fr(t,i?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function yy(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",t="",i,r,u,f;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),i="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u="-MM-DD[T]HH:mm:ss.SSS",f=t+'[")]',this.format(i+r+u+f)}function py(n){n||(n=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=fr(this,n);return this.localeData().postformat(i)}function wy(n,t){return this.isValid()&&(tt(n)&&n.isValid()||l(n).isValid())?rt({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function by(n){return this.from(l(),n)}function ky(n,t){return this.isValid()&&(tt(n)&&n.isValid()||l(n).isValid())?rt({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dy(n){return this.to(l(),n)}function hs(n){var t;return n===undefined?this._locale._abbr:(t=pt(n),t!=null&&(this._locale=t),this)}function cs(){return this._locale}function li(n,t){return(n%t+t)%t}function as(n,t,i){return n<100&&n>=0?new Date(n+400,t,i)-ls:new Date(n,t,i).valueOf()}function vs(n,t,i){return n<100&&n>=0?Date.UTC(n+400,t,i)-ls:Date.UTC(n,t,i)}function gy(n){var i,r;if(n=d(n),n===undefined||n==="millisecond"||!this.isValid())return this;r=this._isUTC?vs:as;switch(n){case"year":i=r(this.year(),0,1);break;case"quarter":i=r(this.year(),this.month()-this.month()%3,1);break;case"month":i=r(this.year(),this.month(),1);break;case"week":i=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=r(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf()-li(i+(this._isUTC?0:this.utcOffset()*ci),nu);break;case"minute":i=this._d.valueOf()-li(i,ci);break;case"second":i=this._d.valueOf()-li(i,gr)}return this._d.setTime(i),t.updateOffset(this,!0),this}function np(n){var i,r;if(n=d(n),n===undefined||n==="millisecond"||!this.isValid())return this;r=this._isUTC?vs:as;switch(n){case"year":i=r(this.year()+1,0,1)-1;break;case"quarter":i=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=r(this.year(),this.month()+1,1)-1;break;case"week":i=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf()+(nu-li(i+(this._isUTC?0:this.utcOffset()*ci),nu)-1);break;case"minute":i=this._d.valueOf()+(ci-li(i,ci)-1);break;case"second":i=this._d.valueOf()+(gr-li(i,gr)-1)}return this._d.setTime(i),t.updateOffset(this,!0),this}function tp(){return this._d.valueOf()-(this._offset||0)*6e4}function ip(){return Math.floor(this.valueOf()/1e3)}function rp(){return new Date(this.valueOf())}function up(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond(),]}function fp(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function ep(){return this.isValid()?this.toISOString():null}function op(){return eu(this)}function sp(){return bt({},u(this))}function hp(){return u(this).overflow}function cp(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function lp(){for(var r,i=this._eras||pt("en")._eras,n=0,u=i.length;n<u;++n){switch(typeof i[n].since){case"string":r=t(i[n].since).startOf("day");i[n].since=r.valueOf()}switch(typeof i[n].until){case"undefined":i[n].until=+Infinity;break;case"string":r=t(i[n].until).startOf("day").valueOf();i[n].until=r.valueOf()}}return i}function ap(n,t,i){var r,s,u=this.eras(),f,e,o;for(n=n.toUpperCase(),r=0,s=u.length;r<s;++r)if(f=u[r].name.toUpperCase(),e=u[r].abbr.toUpperCase(),o=u[r].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(e===n)return u[r];break;case"NNNN":if(f===n)return u[r];break;case"NNNNN":if(o===n)return u[r]}else if([f,e,o].indexOf(n)>=0)return u[r]}function vp(n,i){var r=n.since<=n.until?1:-1;return i===undefined?t(n.since).year():t(n.since).year()+(i-n.offset)*r}function yp(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.clone().startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].name;return""}function pp(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.clone().startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].narrow;return""}function wp(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.clone().startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].abbr;return""}function bp(){for(var f,r,i=this.localeData().eras(),n=0,u=i.length;n<u;++n)if(f=i[n].since<=i[n].until?1:-1,r=this.clone().startOf("day").valueOf(),i[n].since<=r&&r<=i[n].until||i[n].until<=r&&r<=i[n].since)return(this.year()-t(i[n].since).year())*f+i[n].offset;return this.year()}function kp(n){return s(this,"_erasNameRegex")||pf.call(this),n?this._erasNameRegex:this._erasRegex}function dp(n){return s(this,"_erasAbbrRegex")||pf.call(this),n?this._erasAbbrRegex:this._erasRegex}function gp(n){return s(this,"_erasNarrowRegex")||pf.call(this),n?this._erasNarrowRegex:this._erasRegex}function yf(n,t){return t.erasAbbrRegex(n)}function nw(n,t){return t.erasNameRegex(n)}function tw(n,t){return t.erasNarrowRegex(n)}function iw(n,t){return t._eraYearOrdinalRegex||fi}function pf(){for(var e=[],o=[],s=[],t=[],r,u,f,i=this.eras(),n=0,h=i.length;n<h;++n)r=lt(i[n].name),u=lt(i[n].abbr),f=lt(i[n].narrow),o.push(r),e.push(u),s.push(f),t.push(r),t.push(u),t.push(f);this._erasRegex=new RegExp("^("+t.join("|")+")","i");this._erasNameRegex=new RegExp("^("+o.join("|")+")","i");this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i");this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function tu(n,t){r(0,[n,n.length],0,t)}function rw(n){return ys.call(this,n,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function uw(n){return ys.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function fw(){return yt(this.year(),1,4)}function ew(){return yt(this.isoWeekYear(),1,4)}function ow(){var n=this.localeData()._week;return yt(this.year(),n.dow,n.doy)}function sw(){var n=this.localeData()._week;return yt(this.weekYear(),n.dow,n.doy)}function ys(n,t,i,r,u){var f;return n==null?gi(this,r,u).year:(f=yt(n,r,u),t>f&&(t=f),hw.call(this,n,t,i,r,u))}function hw(n,t,i,r,u){var e=to(n,t,i,r,u),f=di(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function cw(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}function lw(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?t:this.add(n-t,"d")}function aw(n,t){t[ni]=f(("0."+n)*1e3)}function vw(){return this._isUTC?"UTC":""}function yw(){return this._isUTC?"Coordinated Universal Time":""}function pw(n){return l(n*1e3)}function ww(){return l.apply(null,arguments).parseZone()}function ks(n){return n}function iu(n,t,i,r){var u=pt(),f=ut().set(r,t);return u[i](f,n)}function ds(n,t,i){if(ct(n)&&(t=n,n=undefined),n=n||"",t!=null)return iu(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=iu(n,r,i,"month");return u}function bf(n,t,i,r){typeof n=="boolean"?(ct(t)&&(i=t,t=undefined),t=t||""):(t=n,i=t,n=!1,ct(t)&&(i=t,t=undefined),t=t||"");var o=pt(),f=n?o._week.dow:0,u,e=[];if(i!=null)return iu(t,(i+f)%7,r,"day");for(u=0;u<7;u++)e[u]=iu(t,(u+f)%7,r,"day");return e}function bw(n,t){return ds(n,t,"months")}function kw(n,t){return ds(n,t,"monthsShort")}function dw(n,t,i){return bf(n,t,i,"weekdays")}function gw(n,t,i){return bf(n,t,i,"weekdaysShort")}function nb(n,t,i){return bf(n,t,i,"weekdaysMin")}function tb(){var n=this._data;return this._milliseconds=st(this._milliseconds),this._days=st(this._days),this._months=st(this._months),n.milliseconds=st(n.milliseconds),n.seconds=st(n.seconds),n.minutes=st(n.minutes),n.hours=st(n.hours),n.months=st(n.months),n.years=st(n.years),this}function gs(n,t,i,r){var u=rt(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function ib(n,t){return gs(this,n,t,1)}function rb(n,t){return gs(this,n,t,-1)}function nh(n){return n<0?Math.floor(n):Math.ceil(n)}function ub(){var r=this._milliseconds,n=this._days,t=this._months,i=this._data,u,f,e,s,o;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=nh(kf(t)+n)*864e5,n=0,t=0),i.milliseconds=r%1e3,u=g(r/1e3),i.seconds=u%60,f=g(u/60),i.minutes=f%60,e=g(f/60),i.hours=e%24,n+=g(e/24),o=g(th(n)),t+=o,n-=nh(kf(o)),s=g(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function th(n){return n*4800/146097}function kf(n){return n*146097/4800}function fb(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(n=d(n),n==="month"||n==="quarter"||n==="year"){t=this._days+i/864e5;r=this._months+th(t);switch(n){case"month":return r;case"quarter":return r/3;case"year":return r/12}}else{t=this._days+Math.round(kf(this._months));switch(n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+n);}}}function wt(n){return function(){return this.as(n)}}function pb(){return rt(this)}function wb(n){return n=d(n),this.isValid()?this[n+"s"]():NaN}function ii(n){return function(){return this.isValid()?this._data[n]:NaN}}function rk(){return g(this.days()/7)}function uk(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function fk(n,t,i,r){var f=rt(n).abs(),e=ht(f.as("s")),o=ht(f.as("m")),s=ht(f.as("h")),h=ht(f.as("d")),c=ht(f.as("M")),l=ht(f.as("w")),a=ht(f.as("y")),u=e<=i.ss&&["s",e]||e<i.s&&["ss",e]||o<=1&&["m"]||o<i.m&&["mm",o]||s<=1&&["h"]||s<i.h&&["hh",s]||h<=1&&["d"]||h<i.d&&["dd",h];return i.w!=null&&(u=u||l<=1&&["w"]||l<i.w&&["ww",l]),u=u||c<=1&&["M"]||c<i.M&&["MM",c]||a<=1&&["y"]||["yy",a],u[2]=t,u[3]=+n>0,u[4]=r,uk.apply(null,u)}function ek(n){return n===undefined?ht:typeof n=="function"?(ht=n,!0):!1}function ok(n,t){return ri[n]===undefined?!1:t===undefined?ri[n]:(ri[n]=t,n==="s"&&(ri.ss=t-1),!0)}function sk(n,t){if(!this.isValid())return this.localeData().invalidDate();var u=!1,f=ri,i,r;return typeof n=="object"&&(t=n,n=!1),typeof n=="boolean"&&(u=n),typeof t=="object"&&(f=Object.assign({},ri,t),t.s!=null&&t.ss==null&&(f.ss=t.s-1)),i=this.localeData(),r=fk(this,!u,f,i),u&&(r=i.pastFuture(+this,r)),i.postformat(r)}function ai(n){return(n>0)-(n<0)||+n}function uu(){if(!this.isValid())return this.localeData().invalidDate();var n=ru(this._milliseconds)/1e3,s=ru(this._days),r=ru(this._months),t,u,e,h,i=this.asSeconds(),c,o,l,f;return i?(t=g(n/60),u=g(t/60),n%=60,t%=60,e=g(r/12),r%=12,h=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=i<0?"-":"",o=ai(this._months)!==ai(i)?"-":"",l=ai(this._days)!==ai(i)?"-":"",f=ai(this._milliseconds)!==ai(i)?"-":"",c+"P"+(e?o+e+"Y":"")+(r?o+r+"M":"")+(s?l+s+"D":"")+(u||t||n?"T":"")+(u?f+u+"H":"")+(t?f+t+"M":"")+(n?f+h+"S":"")):"P0D"}var df,ne,ou,rr,hu,re,ue,ee,oe,se,he,ce,yu,le,ar,du,v,io,eo,oo,yo,po,bo,hi,go,ts,is,es,os,vf,wf,ps,ws,dt,bs,n,o,st,ht,ri,ru,e;ne=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};ou=t.momentProperties=[];rr=!1;hu={};t.suppressDeprecationWarnings=!1;t.deprecationHandler=null;re=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)s(n,t)&&i.push(t);return i};ue={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};var au=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ur=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,vu={},ui={};ee={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};oe="Invalid date";se="%d";he=/\d{1,2}/;ce={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};yu={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};le={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var ae=/\d/,b=/\d\d/,ve=/\d{3}/,wu=/\d{4}/,er=/[+-]?\d{6}/,c=/\d\d?/,ye=/\d\d\d\d?/,pe=/\d\d\d\d\d\d?/,or=/\d{1,3}/,bu=/\d{1,4}/,sr=/[+-]?\d{1,6}/,fi=/\d+/,hr=/[+-]?\d+/,ph=/Z|[+-]\d\d:?\d\d/gi,cr=/Z|[+-]\d\d(?::?\d\d)?/gi,pi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ei=/^[1-9]\d?/,ku=/^([1-9]\d|\d)/,lr;lr={};ar={};var p=0,at=1,ot=2,y=3,it=4,vt=5,ni=6,dh=7,gh=8;r("Y",0,0,function(){var n=this.year();return n<=9999?et(n,4):"+"+n});r(0,["YY",2],0,function(){return this.year()%100});r(0,["YYYY",4],0,"year");r(0,["YYYYY",5],0,"year");r(0,["YYYYYY",6,!0],0,"year");i("Y",hr);i("YY",c,b);i("YYYY",bu,wu);i("YYYYY",sr,er);i("YYYYYY",sr,er);h(["YYYYY","YYYYYY"],p);h("YYYY",function(n,i){i[p]=n.length===2?t.parseTwoDigitYear(n):f(n)});h("YY",function(n,i){i[p]=t.parseTwoDigitYear(n)});h("Y",function(n,t){t[p]=parseInt(n,10)});t.parseTwoDigitYear=function(n){return f(n)+(f(n)>68?1900:2e3)};du=oi("FullYear",!0);v=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});i("M",c,ei);i("MM",c,b);i("MMM",function(n,t){return t.monthsShortRegex(n)});i("MMMM",function(n,t){return t.monthsRegex(n)});h(["M","MM"],function(n,t){t[at]=f(n)-1});h(["MMM","MMMM"],function(n,t,i,r){var f=i._locale.monthsParse(n,r,i._strict);f!=null?t[at]=f:u(i).invalidMonth=n});var uc="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),be="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ke=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,fc=pi,ec=pi;r("w",["ww",2],"wo","week");r("W",["WW",2],"Wo","isoWeek");i("w",c,ei);i("ww",c,b);i("W",c,ei);i("WW",c,b);wi(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=f(n)});io={dow:0,doy:6};r("d",0,"do","day");r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});r("e",0,0,"weekday");r("E",0,0,"isoWeekday");i("d",c);i("e",c);i("E",c);i("dd",function(n,t){return t.weekdaysMinRegex(n)});i("ddd",function(n,t){return t.weekdaysShortRegex(n)});i("dddd",function(n,t){return t.weekdaysRegex(n)});wi(["dd","ddd","dddd"],function(n,t,i,r){var f=i._locale.weekdaysParse(n,r,i._strict);f!=null?t.d=f:u(i).invalidWeekday=n});wi(["d","e","E"],function(n,t,i,r){t[r]=f(n)});var tl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ro="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),il="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),rl=pi,ul=pi,fl=pi;r("H",["HH",2],0,"hour");r("h",["hh",2],0,rf);r("k",["kk",2],0,bl);r("hmm",0,0,function(){return""+rf.apply(this)+et(this.minutes(),2)});r("hmmss",0,0,function(){return""+rf.apply(this)+et(this.minutes(),2)+et(this.seconds(),2)});r("Hmm",0,0,function(){return""+this.hours()+et(this.minutes(),2)});r("Hmmss",0,0,function(){return""+this.hours()+et(this.minutes(),2)+et(this.seconds(),2)});uo("a",!0);uo("A",!1);i("a",fo);i("A",fo);i("H",c,ku);i("h",c,ei);i("k",c,ei);i("HH",c,b);i("hh",c,b);i("kk",c,b);i("hmm",ye);i("hmmss",pe);i("Hmm",ye);i("Hmmss",pe);h(["H","HH"],y);h(["k","kk"],function(n,t){var i=f(n);t[y]=i===24?0:i});h(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});h(["h","hh"],function(n,t,i){t[y]=f(n);u(i).bigHour=!0});h("hmm",function(n,t,i){var r=n.length-2;t[y]=f(n.substr(0,r));t[it]=f(n.substr(r));u(i).bigHour=!0});h("hmmss",function(n,t,i){var r=n.length-4,e=n.length-2;t[y]=f(n.substr(0,r));t[it]=f(n.substr(r,2));t[vt]=f(n.substr(e));u(i).bigHour=!0});h("Hmm",function(n,t){var i=n.length-2;t[y]=f(n.substr(0,i));t[it]=f(n.substr(i))});h("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[y]=f(n.substr(0,i));t[it]=f(n.substr(i,2));t[vt]=f(n.substr(r))});eo=/[ap]\.?m?\.?/i;oo=oi("Hours",!0);var so={calendar:ue,longDateFormat:ee,invalidDate:oe,ordinal:se,dayOfMonthOrdinalParse:he,relativeTime:ce,months:uc,monthsShort:be,week:io,weekdays:tl,weekdaysMin:il,weekdaysShort:ro,meridiemParse:eo},a={},nr={},tr;var ua=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fa=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ea=/Z|[+-]\d\d(?::?\d\d)?/,wr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1],],ef=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/],],oa=/^\/?Date\((-?\d+)/i,sa=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ha={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});t.ISO_8601=function(){};t.RFC_2822=function(){};yo=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:ir()});po=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:ir()});bo=function(){return Date.now?Date.now():+new Date};hi=["year","quarter","month","week","day","hour","minute","second","millisecond",];ko("Z",":");ko("ZZ","");i("Z",cr);i("ZZ",cr);h(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=cf(cr,n)});go=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};ts=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/;is=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;rt.fn=br.prototype;rt.invalid=ev;es=us(1,"add");os=us(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";vf=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===undefined?this.localeData():this.locale(n)});var gr=1e3,ci=60*gr,nu=60*ci,ls=3506328*nu;for(r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),i("N",yf),i("NN",yf),i("NNN",yf),i("NNNN",nw),i("NNNNN",tw),h(["N","NN","NNN","NNNN","NNNNN"],function(n,t,i,r){var f=i._locale.erasParse(n,r,i._strict);f?u(i).era=f:u(i).invalidEra=n}),i("y",fi),i("yy",fi),i("yyy",fi),i("yyyy",fi),i("yo",iw),h(["y","yy","yyy","yyyy"],p),h(["yo"],function(n,t,i){var r;i._locale._eraYearOrdinalRegex&&(r=n.match(i._locale._eraYearOrdinalRegex));t[p]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(n,r):parseInt(n,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tu("gggg","weekYear"),tu("ggggg","weekYear"),tu("GGGG","isoWeekYear"),tu("GGGGG","isoWeekYear"),i("G",hr),i("g",hr),i("GG",c,b),i("gg",c,b),i("GGGG",bu,wu),i("gggg",bu,wu),i("GGGGG",sr,er),i("ggggg",sr,er),wi(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=f(n)}),wi(["gg","GG"],function(n,i,r,u){i[u]=t.parseTwoDigitYear(n)}),r("Q",0,"Qo","quarter"),i("Q",ae),h("Q",function(n,t){t[at]=(f(n)-1)*3}),r("D",["DD",2],"Do","date"),i("D",c,ei),i("DD",c,b),i("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),h(["D","DD"],ot),h("Do",function(n,t){t[ot]=f(n.match(c)[0])}),wf=oi("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),i("DDD",or),i("DDDD",ve),h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=f(n)}),r("m",["mm",2],0,"minute"),i("m",c,ku),i("mm",c,b),h(["m","mm"],it),ps=oi("Minutes",!1),r("s",["ss",2],0,"second"),i("s",c,ku),i("ss",c,b),h(["s","ss"],vt),ws=oi("Seconds",!1),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return this.millisecond()*10}),r(0,["SSSSS",5],0,function(){return this.millisecond()*100}),r(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),r(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),r(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),r(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),i("S",or,ae),i("SS",or,b),i("SSS",or,ve),dt="SSSS";dt.length<=9;dt+="S")i(dt,fi);for(dt="S";dt.length<=9;dt+="S")h(dt,aw);bs=oi("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=yi.prototype;n.add=es;n.calendar=ry;n.clone=uy;n.diff=ly;n.endOf=np;n.format=py;n.from=wy;n.fromNow=by;n.to=ky;n.toNow=dy;n.get=tc;n.invalidAt=hp;n.isAfter=fy;n.isBefore=ey;n.isBetween=oy;n.isSame=sy;n.isSameOrAfter=hy;n.isSameOrBefore=cy;n.isValid=op;n.lang=vf;n.locale=hs;n.localeData=cs;n.max=po;n.min=yo;n.parsingFlags=sp;n.set=ic;n.startOf=gy;n.subtract=os;n.toArray=up;n.toObject=fp;n.toDate=rp;n.toISOString=vy;n.inspect=yy;typeof Symbol!="undefined"&&Symbol.for!=null&&(n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});n.toJSON=ep;n.toString=ay;n.unix=ip;n.valueOf=tp;n.creationData=cp;n.eraName=yp;n.eraNarrow=pp;n.eraAbbr=wp;n.eraYear=bp;n.year=du;n.isLeapYear=nc;n.weekYear=rw;n.isoWeekYear=uw;n.quarter=n.quarters=cw;n.month=ge;n.daysInMonth=lc;n.week=n.weeks=kc;n.isoWeek=n.isoWeeks=dc;n.weeksInYear=ow;n.weeksInWeekYear=sw;n.isoWeeksInYear=fw;n.isoWeeksInISOWeekYear=ew;n.date=wf;n.day=n.days=ll;n.weekday=al;n.isoWeekday=vl;n.dayOfYear=lw;n.hour=n.hours=oo;n.minute=n.minutes=ps;n.second=n.seconds=ws;n.millisecond=n.milliseconds=bs;n.utcOffset=sv;n.utc=cv;n.local=lv;n.parseZone=av;n.hasAlignedHourOffset=vv;n.isDST=yv;n.isLocal=wv;n.isUtcOffset=bv;n.isUtc=ns;n.isUTC=ns;n.zoneAbbr=vw;n.zoneName=yw;n.dates=k("dates accessor is deprecated. Use date instead.",wf);n.months=k("months accessor is deprecated. Use month instead",ge);n.years=k("years accessor is deprecated. Use year instead",du);n.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",hv);n.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",pv);o=lu.prototype;o.calendar=eh;o.longDateFormat=hh;o.invalidDate=ch;o.ordinal=lh;o.preparse=ks;o.postformat=ks;o.relativeTime=ah;o.pastFuture=vh;o.set=fh;o.eras=lp;o.erasParse=ap;o.erasConvertYear=vp;o.erasAbbrRegex=dp;o.erasNameRegex=kp;o.erasNarrowRegex=gp;o.months=oc;o.monthsShort=sc;o.monthsParse=cc;o.monthsRegex=vc;o.monthsShortRegex=ac;o.week=pc;o.firstDayOfYear=bc;o.firstDayOfWeek=wc;o.weekdays=el;o.weekdaysMin=sl;o.weekdaysShort=ol;o.weekdaysParse=cl;o.weekdaysRegex=yl;o.weekdaysShortRegex=pl;o.weekdaysMinRegex=wl;o.isPM=kl;o.meridiem=dl;kt("en",{eras:[{since:"0001-01-01",until:+Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"},],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=f(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}});t.lang=k("moment.lang is deprecated. Use moment.locale instead.",kt);t.langData=k("moment.langData is deprecated. Use moment.localeData instead.",pt);st=Math.abs;var ih=wt("ms"),eb=wt("s"),ob=wt("m"),sb=wt("h"),hb=wt("d"),cb=wt("w"),lb=wt("M"),ab=wt("Q"),vb=wt("y"),yb=ih;var bb=ii("milliseconds"),kb=ii("seconds"),db=ii("minutes"),gb=ii("hours"),nk=ii("days"),tk=ii("months"),ik=ii("years");return ht=Math.round,ri={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},ru=Math.abs,e=br.prototype,e.isValid=fv,e.abs=tb,e.add=ib,e.subtract=rb,e.as=fb,e.asMilliseconds=ih,e.asSeconds=eb,e.asMinutes=ob,e.asHours=sb,e.asDays=hb,e.asWeeks=cb,e.asMonths=lb,e.asQuarters=ab,e.asYears=vb,e.valueOf=yb,e._bubble=ub,e.clone=pb,e.get=wb,e.milliseconds=bb,e.seconds=kb,e.minutes=db,e.hours=gb,e.days=nk,e.weeks=rk,e.months=tk,e.years=ik,e.humanize=sk,e.toISOString=uu,e.toString=uu,e.toJSON=uu,e.locale=hs,e.localeData=cs,e.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",uu),e.lang=vf,r("X",0,0,"unix"),r("x",0,0,"valueOf"),i("x",hr),i("X",/[+-]?\d+(\.\d{1,3})?/),h("X",function(n,t,i){i._d=new Date(parseFloat(n)*1e3)}),h("x",function(n,t,i){i._d=new Date(f(n))}),t.version="2.30.1",rh(l),t.fn=n,t.min=iv,t.max=rv,t.now=bo,t.utc=ut,t.unix=pw,t.months=bw,t.isDate=vi,t.locale=kt,t.invalid=ir,t.duration=rt,t.isMoment=tt,t.weekdays=dw,t.parseZone=ww,t.localeData=pt,t.isDuration=kr,t.monthsShort=kw,t.weekdaysMin=nb,t.defineLocale=uf,t.updateLocale=ia,t.locales=ra,t.weekdaysShort=gw,t.normalizeUnits=d,t.relativeTimeRounding=ek,t.relativeTimeThreshold=ok,t.calendarFormat=iy,t.prototype=n,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t});!function(n,t){"function"==typeof define&&define.amd?define([],function(){return t(n)}):"object"==typeof module&&module.exports?module.exports=t(n):t(n)}("undefined"!=typeof self?self:this,function(n){"use strict";function k(n){return btoa(n).replace(/\=+$/,"").replace(/\+/g,"-").replace(/\//g,"_")}function d(n){return n=(n+="===").slice(0,-n.length%4),atob(n.replace(/-/g,"+").replace(/_/g,"/"))}function e(n){for(var i=new Uint8Array(n.length),t=0;t<n.length;t++)i[t]=n.charCodeAt(t);return i}function h(n){return n instanceof ArrayBuffer&&(n=new Uint8Array(n)),String.fromCharCode.apply(String,n)}function f(n){var t={name:(n.name||n||"").toUpperCase().replace("V","v")};switch(t.name){case"SHA-1":case"SHA-256":case"SHA-384":case"SHA-512":break;case"AES-CBC":case"AES-GCM":case"AES-KW":n.length&&(t.length=n.length);break;case"HMAC":n.hash&&(t.hash=f(n.hash));n.length&&(t.length=n.length);break;case"RSAES-PKCS1-v1_5":n.publicExponent&&(t.publicExponent=new Uint8Array(n.publicExponent));n.modulusLength&&(t.modulusLength=n.modulusLength);break;case"RSASSA-PKCS1-v1_5":case"RSA-OAEP":n.hash&&(t.hash=f(n.hash));n.publicExponent&&(t.publicExponent=new Uint8Array(n.publicExponent));n.modulusLength&&(t.modulusLength=n.modulusLength);break;default:throw new SyntaxError("Bad algorithm name");}return t}function c(n){return{HMAC:{"SHA-1":"HS1","SHA-256":"HS256","SHA-384":"HS384","SHA-512":"HS512"},"RSASSA-PKCS1-v1_5":{"SHA-1":"RS1","SHA-256":"RS256","SHA-384":"RS384","SHA-512":"RS512"},"RSAES-PKCS1-v1_5":{"":"RSA1_5"},"RSA-OAEP":{"SHA-1":"RSA-OAEP","SHA-256":"RSA-OAEP-256"},"AES-KW":{128:"A128KW",192:"A192KW",256:"A256KW"},"AES-GCM":{128:"A128GCM",192:"A192GCM",256:"A256GCM"},"AES-CBC":{128:"A128CBC",192:"A192CBC",256:"A256CBC"}}[n.name][(n.hash||{}).name||n.length||""]}function o(n){(n instanceof ArrayBuffer||n instanceof Uint8Array)&&(n=JSON.parse(decodeURIComponent(escape(h(n)))));var t={kty:n.kty,alg:n.alg,ext:n.ext||n.extractable};switch(t.kty){case"oct":t.k=n.k;case"RSA":["n","e","d","p","q","dp","dq","qi","oth"].forEach(function(i){i in n&&(t[i]=n[i])});break;default:throw new TypeError("Unsupported key type");}return t}function p(n,t){var r,e,i,u,f,o;if(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),t||(t={pos:0,end:n.length}),t.end-t.pos<2||t.end>n.length)throw new RangeError("Malformed DER");if(e=n[t.pos++],i=n[t.pos++],128<=i){if(i&=127,t.end-t.pos<i)throw new RangeError("Malformed DER");for(u=0;i--;)u<<=8,u|=n[t.pos++];i=u}if(t.end-t.pos<i)throw new RangeError("Malformed DER");switch(e){case 2:r=n.subarray(t.pos,t.pos+=i);break;case 3:if(n[t.pos++])throw new Error("Unsupported bit string");i--;case 4:r=new Uint8Array(n.subarray(t.pos,t.pos+=i)).buffer;break;case 5:r=null;break;case 6:if(f=btoa(h(n.subarray(t.pos,t.pos+=i))),!(f in v))throw new Error("Unsupported OBJECT ID "+f);r=v[f];break;case 48:for(r=[],o=t.pos+i;t.pos<o;)r.push(p(n,t));break;default:throw new Error("Unsupported DER tag 0x"+e.toString(16));}return r}function w(n,t){var r,s,f;t||(t=[]);var u=0,i=0,o=t.length+2;if(t.push(0,0),n instanceof Uint8Array)for(u=2,i=n.length,r=0;r<i;r++)t.push(n[r]);else if(n instanceof ArrayBuffer)for(u=4,i=n.byteLength,n=new Uint8Array(n),r=0;r<i;r++)t.push(n[r]);else if(null===n)u=5,i=0;else if("string"==typeof n&&n in y)for(s=e(atob(y[n])),u=6,i=s.length,r=0;r<i;r++)t.push(s[r]);else if(n instanceof Array){for(r=0;r<n.length;r++)w(n[r],t);u=48;i=t.length-o}else{if(!("object"==typeof n&&3===n.tag&&n.value instanceof ArrayBuffer))throw new Error("Unsupported DER value "+n);for(u=3,i=(n=new Uint8Array(n.value)).byteLength,t.push(0),r=0;r<i;r++)t.push(n[r]);i++}if(128<=i){for(f=i,i=4,t.splice(o,0,f>>24&255,f>>16&255,f>>8&255,255&f);1<i&&!(f>>24);)f<<=8,i--;i<4&&t.splice(o,4-i);i|=128}return t.splice(o-2,2,u,i),t}function s(n,t,i,r){Object.defineProperties(this,{_key:{value:n},type:{value:n.type,enumerable:!0},extractable:{value:void 0===i?n.extractable:i,enumerable:!0},algorithm:{value:void 0===t?n.algorithm:t,enumerable:!0},usages:{value:void 0===r?n.usages:r,enumerable:!0}})}function l(n){return"verify"===n||"encrypt"===n||"wrapKey"===n}function a(n){return"sign"===n||"decrypt"===n||"unwrapKey"===n}var r,t,v,y,b;if("function"!=typeof Promise)throw"Promise support required";if(r=n.crypto||n.msCrypto,r&&(t=r.subtle||r.webkitSubtle,t)){var g=n.Crypto||r.constructor||Object,nt=n.SubtleCrypto||t.constructor||Object,tt=(n.CryptoKey||n.Key||Object,-1<n.navigator.userAgent.indexOf("Edge/")),i=!!n.msCrypto&&!tt,u=!r.subtle&&!!r.webkitSubtle;(i||u)&&(v={KoZIhvcNAQEB:"1.2.840.113549.1.1.1"},y={"1.2.840.113549.1.1.1":"KoZIhvcNAQEB"},(["generateKey","importKey","unwrapKey"].forEach(function(n){var v=t[n];t[n]=function(y,w,b){var g,it,tt,rt,nt=[].slice.call(arguments);switch(n){case"generateKey":g=f(y);it=w;tt=b;break;case"importKey":g=f(b);it=nt[3];tt=nt[4];"jwk"===y&&((w=o(w)).alg||(w.alg=c(g)),w.key_ops||(w.key_ops="oct"!==w.kty?"d"in w?tt.filter(a):tt.filter(l):tt.slice()),nt[1]=function(n){var t=o(n);return i&&(t.extractable=t.ext,delete t.ext),e(unescape(encodeURIComponent(JSON.stringify(t)))).buffer}(w));break;case"unwrapKey":g=nt[4];it=nt[5];tt=nt[6];nt[2]=b._key}if("generateKey"===n&&"HMAC"===g.name&&g.hash)return g.length=g.length||{"SHA-1":512,"SHA-256":512,"SHA-384":1024,"SHA-512":1024}[g.hash.name],t.importKey("raw",r.getRandomValues(new Uint8Array(g.length+7>>3)),g,it,tt);if(u&&"generateKey"===n&&"RSASSA-PKCS1-v1_5"===g.name&&(!g.modulusLength||2048<=g.modulusLength))return(y=f(y)).name="RSAES-PKCS1-v1_5",delete y.hash,t.generateKey(y,!0,["encrypt","decrypt"]).then(function(n){return Promise.all([t.exportKey("jwk",n.publicKey),t.exportKey("jwk",n.privateKey)])}).then(function(n){return n[0].alg=n[1].alg=c(g),n[0].key_ops=tt.filter(l),n[1].key_ops=tt.filter(a),Promise.all([t.importKey("jwk",n[0],g,!0,n[0].key_ops),t.importKey("jwk",n[1],g,it,n[1].key_ops)])}).then(function(n){return{publicKey:n[0],privateKey:n[1]}});if((u||i&&"SHA-1"===(g.hash||{}).name)&&"importKey"===n&&"jwk"===y&&"HMAC"===g.name&&"oct"===w.kty)return t.importKey("raw",e(d(w.k)),b,nt[3],nt[4]);if(u&&"importKey"===n&&("spki"===y||"pkcs8"===y))return t.importKey("jwk",function(n){var r=p(n),f=!1,u,e,i,t;2<r.length&&(f=!0,r.shift());u={ext:!0};switch(r[0][0]){case"1.2.840.113549.1.1.1":for(e=["n","e","d","p","q","dp","dq","qi"],i=p(r[1]),f&&i.shift(),t=0;t<i.length;t++)i[t][0]||(i[t]=i[t].subarray(1)),u[e[t]]=k(h(i[t]));u.kty="RSA";break;default:throw new TypeError("Unsupported key type");}return u}(w),b,nt[3],nt[4]);if(i&&"unwrapKey"===n)return t.decrypt(nt[3],b,w).then(function(n){return t.importKey(y,n,nt[4],nt[5],nt[6])});try{rt=v.apply(t,nt)}catch(w){return Promise.reject(w)}return i&&(rt=new Promise(function(n,t){rt.onabort=rt.onerror=function(n){t(n)};rt.oncomplete=function(t){n(t.target.result)}})),rt=rt.then(function(n){return"HMAC"===g.name&&(g.length||(g.length=8*n.algorithm.length)),0==g.name.search("RSA")&&(g.modulusLength||(g.modulusLength=(n.publicKey||n).algorithm.modulusLength),g.publicExponent||(g.publicExponent=(n.publicKey||n).algorithm.publicExponent)),n=n.publicKey&&n.privateKey?{publicKey:new s(n.publicKey,g,it,tt.filter(l)),privateKey:new s(n.privateKey,g,it,tt.filter(a))}:new s(n,g,it,tt)})}}),["exportKey","wrapKey"].forEach(function(n){var r=t[n];t[n]=function(f,s,v){var y,p=[].slice.call(arguments);switch(n){case"exportKey":p[1]=s._key;break;case"wrapKey":p[1]=s._key;p[2]=v._key}if((u||i&&"SHA-1"===(s.algorithm.hash||{}).name)&&"exportKey"===n&&"jwk"===f&&"HMAC"===s.algorithm.name&&(p[0]="raw"),!u||"exportKey"!==n||"spki"!==f&&"pkcs8"!==f||(p[0]="jwk"),i&&"wrapKey"===n)return t.exportKey(f,s).then(function(n){return"jwk"===f&&(n=e(unescape(encodeURIComponent(JSON.stringify(o(n)))))),t.encrypt(p[3],v,n)});try{y=r.apply(t,p)}catch(y){return Promise.reject(y)}return i&&(y=new Promise(function(n,t){y.onabort=y.onerror=function(n){t(n)};y.oncomplete=function(t){n(t.target.result)}})),"exportKey"===n&&"jwk"===f&&(y=y.then(function(n){return(u||i&&"SHA-1"===(s.algorithm.hash||{}).name)&&"HMAC"===s.algorithm.name?{kty:"oct",alg:c(s.algorithm),key_ops:s.usages.slice(),ext:!0,k:k(h(n))}:((n=o(n)).alg||(n.alg=c(s.algorithm)),n.key_ops||(n.key_ops="public"===s.type?s.usages.filter(l):"private"===s.type?s.usages.filter(a):s.usages.slice()),n)})),!u||"exportKey"!==n||"spki"!==f&&"pkcs8"!==f||(y=y.then(function(n){return function(n){var o,i=[["",null]],s=!1,u;switch(n.kty){case"RSA":for(var f=["n","e","d","p","q","dp","dq","qi"],r=[],t=0;t<f.length&&f[t]in n;t++)u=r[t]=e(d(n[f[t]])),128&u[0]&&(r[t]=new Uint8Array(u.length+1),r[t].set(u,1));2<r.length&&(s=!0,r.unshift(new Uint8Array([0])));i[0][0]="1.2.840.113549.1.1.1";o=r;break;default:throw new TypeError("Unsupported key type");}return i.push(new Uint8Array(w(o)).buffer),s?i.unshift(new Uint8Array([0])):i[1]={tag:3,value:i[1]},new Uint8Array(w(i)).buffer}(o(n))})),y}}),["encrypt","decrypt","sign","verify"].forEach(function(n){var r=t[n];t[n]=function(u,e,o,s){var h,c,a,l;if(i&&(!o.byteLength||s&&!s.byteLength))throw new Error("Empy input is not allowed");c=[].slice.call(arguments);a=f(u);(i&&("encrypt"===n||"decrypt"===n)&&e.algorithm.hash&&(c[0].hash=c[0].hash||e.algorithm.hash),i&&"decrypt"===n&&"AES-GCM"===a.name)&&(l=u.tagLength>>3,c[2]=(o.buffer||o).slice(0,o.byteLength-l),u.tag=(o.buffer||o).slice(o.byteLength-l));c[1]=e._key;try{h=r.apply(t,c)}catch(u){return Promise.reject(u)}return i&&(h=new Promise(function(t,i){h.onabort=h.onerror=function(n){i(n)};h.oncomplete=function(i){if(i=i.target.result,"encrypt"===n&&i instanceof AesGcmEncryptResult){var r=i.ciphertext,u=i.tag;(i=new Uint8Array(r.byteLength+u.byteLength)).set(new Uint8Array(r),0);i.set(new Uint8Array(u),r.byteLength);i=i.buffer}t(i)}})),h}}),i)&&(b=t.digest,t.digest=function(n,i){if(!i.byteLength)throw new Error("Empy input is not allowed");var r;try{r=b.call(t,n,i)}catch(n){return Promise.reject(n)}return r=new Promise(function(n,t){r.onabort=r.onerror=function(n){t(n)};r.oncomplete=function(t){n(t.target.result)}})},n.crypto=Object.create(r,{getRandomValues:{value:function(n){return r.getRandomValues(n)}},subtle:{value:t}}),n.CryptoKey=s),u&&(r.subtle=t,n.Crypto=g,n.SubtleCrypto=nt,n.CryptoKey=s))}});!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.OktaAuth=t():n.OktaAuth=t()}("undefined"!=typeof self?self:this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=11)}([function(n){var t=n.exports;t.stringToBase64Url=function(n){var i=btoa(n);return t.base64ToBase64Url(i)};t.base64ToBase64Url=function(n){return n.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")};t.base64UrlToBase64=function(n){return n.replace(/-/g,"+").replace(/_/g,"/")};t.base64UrlToString=function(n){var i=t.base64UrlToBase64(n),r;switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw"Not a valid Base64Url";}r=atob(i);try{return decodeURIComponent(escape(r))}catch(n){return r}};t.stringToBuffer=function(n){for(var i=new Uint8Array(n.length),t=0;t<n.length;t++)i[t]=n.charCodeAt(t);return i};t.base64UrlDecode=function(n){return atob(t.base64UrlToBase64(n))};t.bind=function(n,t){var i=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return r=i.concat(r),n.apply(t,r)}};t.isAbsoluteUrl=function(n){return/^(?:[a-z]+:)?\/\//i.test(n)};t.isString=function(n){return"[object String]"===Object.prototype.toString.call(n)};t.isObject=function(n){return"[object Object]"===Object.prototype.toString.call(n)};t.isNumber=function(n){return"[object Number]"===Object.prototype.toString.call(n)};t.isArray=function(n){return"[object Array]"===Object.prototype.toString.call(n)};t.isoToUTCString=function(n){var t=n.match(/\d+/g),i=Date.UTC(t[0],t[1]-1,t[2],t[3],t[4],t[5]);return new Date(i).toUTCString()};t.toQueryParams=function(n){var i=[],t;if(null!==n)for(t in n)n.hasOwnProperty(t)&&void 0!==n[t]&&null!==n[t]&&i.push(t+"="+encodeURIComponent(n[t]));return i.length?"?"+i.join("&"):""};t.genRandomString=function(n){for(var t="abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",i="",r=0,u=t.length;r<n;++r)i+=t[Math.floor(Math.random()*u)];return i};t.extend=function(){var n=arguments[0];return[].slice.call(arguments,1).forEach(function(t){for(var i in t)t.hasOwnProperty(i)&&void 0!==t[i]&&(n[i]=t[i])}),n};t.removeNils=function(n){var r={},t,i;for(t in n)n.hasOwnProperty(t)&&(i=n[t],null!==i&&void 0!==i&&(r[t]=i));return r};t.clone=function(n){if(n){var t=JSON.stringify(n);if(t)return JSON.parse(t)}return n};t.omit=function(n){var u=Array.prototype.slice.call(arguments,1),r={},i;for(i in n)n.hasOwnProperty(i)&&-1==u.indexOf(i)&&(r[i]=n[i]);return t.clone(r)};t.find=function(n,t){for(var u,f,i,r=n.length;r--;){u=n[r];f=!0;for(i in t)if(t.hasOwnProperty(i)&&u[i]!==t[i]){f=!1;break}if(f)return u}};t.getLink=function(n,i,r){if(n&&n._links){var u=t.clone(n._links[i]);return u&&u.name&&r?u.name===r?u:void 0:u}};t.getNativeConsole=function(){return"undefined"!=typeof window?window.console:"undefined"!=typeof console?console:void 0};t.getConsole=function(){var n=t.getNativeConsole();return n&&n.log?n:{log:function(){}}};t.warn=function(n){t.getConsole().log("[okta-auth-sdk] WARN: "+n)};t.deprecate=function(n){t.getConsole().log("[okta-auth-sdk] DEPRECATION: "+n)};t.deprecateWrap=function(n,i){return function(){return t.deprecate(n),i.apply(null,arguments)}};t.removeTrailingSlash=function(n){if(n){var t=n.replace(/^\s+|\s+$/gm,"");return"/"===t.slice(-1)?t.slice(0,-1):t}};t.isIE11OrLess=function(){return!!document.documentMode&&document.documentMode<=11};t.isFunction=function(n){return!!n&&"[object Function]"==={}.toString.call(n)}},function(n){function t(n,t){this.name="AuthSdkError";this.message=n;this.errorCode="INTERNAL";this.errorSummary=n;this.errorLink="INTERNAL";this.errorId="INTERNAL";this.errorCauses=[];t&&(this.xhr=t)}t.prototype=new Error;n.exports=t},function(n){n.exports={STATE_TOKEN_KEY_NAME:"oktaStateToken",DEFAULT_POLLING_DELAY:500,DEFAULT_MAX_CLOCK_SKEW:300,DEFAULT_CACHE_DURATION:86400,FRAME_ID:"okta-oauth-helper-frame",REDIRECT_OAUTH_PARAMS_COOKIE_NAME:"okta-oauth-redirect-params",REDIRECT_STATE_COOKIE_NAME:"okta-oauth-state",REDIRECT_NONCE_COOKIE_NAME:"okta-oauth-nonce",TOKEN_STORAGE_NAME:"okta-token-storage",CACHE_STORAGE_NAME:"okta-cache-storage",PKCE_STORAGE_NAME:"okta-pkce-storage",SDK_VERSION:"2.8.0"}},function(n,t,i){function f(n,t){var p,f,o,a,i,w;t=t||{};var s=t.url,b=t.method,k=t.args,d=t.saveAuthnState,c=t.accessToken,g=!1!==t.withCredentials,v=n.options.storageUtil,l=v.storage,y=v.getHttpCache();return t.cacheResponse&&(p=y.getStorage(),f=p[s],f&&Date.now()/1e3<f.expiresAt)?e.resolve(f.response):(o={Accept:"application/json","Content-Type":"application/json","X-Okta-User-Agent-Extended":n.userAgent},r.extend(o,n.options.headers,t.headers),c&&r.isString(c)&&(o.Authorization="Bearer "+c),w={headers:o,data:k||void 0,withCredentials:g},new e(n.options.httpRequestClient(b,s,w)).then(function(n){return i=n.responseText,i&&r.isString(i)&&(i=JSON.parse(i)),d&&(i.stateToken||l.delete(u.STATE_TOKEN_KEY_NAME)),i&&i.stateToken&&i.expiresAt&&l.set(u.STATE_TOKEN_KEY_NAME,i.stateToken,i.expiresAt),i&&t.cacheResponse&&y.updateStorage(s,{expiresAt:Math.floor(Date.now()/1e3)+u.DEFAULT_CACHE_DURATION,response:i}),i}).fail(function(t){var i=t.responseText||{};if(r.isString(i))try{i=JSON.parse(i)}catch(n){i={errorSummary:"Unknown error"}}throw t.status>=500&&(i.errorSummary="Unknown error"),n.options.transformErrorXHR&&(t=n.options.transformErrorXHR(r.clone(t))),a=new h(i,t),"E0000011"===a.errorCode&&l.delete(u.STATE_TOKEN_KEY_NAME),a;}))}function o(n,t,i){t=r.isAbsoluteUrl(t)?t:n.options.url+t;var u={url:t,method:"GET"};return r.extend(u,i),f(n,u)}function s(n,t,i,u){t=r.isAbsoluteUrl(t)?t:n.options.url+t;var e={url:t,method:"POST",args:i,saveAuthnState:!0};return r.extend(e,u),f(n,e)}var r=i(0),e=i(5),h=i(21),u=i(2);n.exports={get:o,post:s,httpRequest:f}},function(n,t,i){var e=i(14),u=i(6),f=i(2),r={};r.browserHasLocalStorage=function(){try{var n=r.getLocalStorage();return r.testStorage(n)}catch(n){return!1}};r.browserHasSessionStorage=function(){try{var n=r.getSessionStorage();return r.testStorage(n)}catch(n){return!1}};r.getPKCEStorage=function(){return r.browserHasLocalStorage()?u(r.getLocalStorage(),f.PKCE_STORAGE_NAME):r.browserHasSessionStorage()?u(r.getSessionStorage(),f.PKCE_STORAGE_NAME):u(r.getCookieStorage(),f.PKCE_STORAGE_NAME)};r.getHttpCache=function(){return r.browserHasLocalStorage()?u(r.getLocalStorage(),f.CACHE_STORAGE_NAME):r.browserHasSessionStorage()?u(r.getSessionStorage(),f.CACHE_STORAGE_NAME):u(r.getCookieStorage(),f.CACHE_STORAGE_NAME)};r.getLocalStorage=function(){return localStorage};r.getSessionStorage=function(){return sessionStorage};r.getCookieStorage=function(n){return n=n||{},{getItem:r.storage.get,setItem:function(t,i){r.storage.set(t,i,"2200-01-01T00:00:00.000Z",n.secure)}}};r.testStorage=function(n){var t="okta-test-storage";try{return n.setItem(t,t),n.removeItem(t),!0}catch(n){return!1}};r.storage={set:function(n,t,i,u){var f={path:"/",secure:u};return Date.parse(i)&&(f.expires=new Date(i)),e.set(n,t,f),r.storage.get(n)},get:function(n){return e.get(n)},"delete":function(n){return e.remove(n,{path:"/"})}};n.exports=r},function(n,t,i){(function(t,i){!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):n.exports=t()}(function(){"use strict";function s(n){return function(){return bi.apply(n,arguments)}}function kt(n){return n===Object(n)}function dt(n){return"[object StopIteration]"===gi(n)||n instanceof g}function ft(n,t){var r,i,u;if(w&&t.stack&&"object"==typeof n&&null!==n&&n.stack&&-1===n.stack.indexOf(rt)){for(r=[],i=t;i;i=i.source)i.stack&&r.unshift(i.stack);r.unshift(n.stack);u=r.join("\n"+rt+"\n");n.stack=gt(u)}}function gt(n){for(var t,r=n.split("\n"),u=[],i=0;i<r.length;++i)t=r[i],ti(t)||ni(t)||!t||u.push(t);return u.join("\n")}function ni(n){return-1!==n.indexOf("(module.js:")||-1!==n.indexOf("(node.js:")}function et(n){var r=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(n),t,i;return r?[r[1],Number(r[2])]:(t=/at ([^ ]+):(\d+):(?:\d+)$/.exec(n),t)?[t[1],Number(t[2])]:(i=/.*@(.+):(\d+)$/.exec(n),i?[i[1],Number(i[2])]:void 0)}function ti(n){var t=et(n),r,i;return t?(r=t[0],i=t[1],r===pt&&i>=wi&&i<=bt):!1}function ot(){if(w)try{throw new Error;}catch(i){var n=i.stack.split("\n"),r=n[0].indexOf("@")>0?n[1]:n[2],t=et(r);return t?(pt=t[0],t[1]):void 0}}function n(n){return n instanceof r?n:ct(n)?oi(n):d(n)}function f(){function s(r){t=r;i.source=r;v(h,function(t,i){n.nextTick(function(){r.promiseDispatch.apply(r,i)})},void 0);h=void 0;l=void 0}var t,h=[],l=[],o=it(f.prototype),i=it(r.prototype);if(i.promiseDispatch=function(i,r,f){var e=u(arguments);h?(h.push(e),"when"===r&&f[1]&&l.push(f[1])):n.nextTick(function(){t.promiseDispatch.apply(t,e)})},i.valueOf=function(){if(h)return i;var n=ht(t);return c(n)&&(t=n),n},i.inspect=function(){return t?t.inspect():{state:"pending"}},n.longStackSupport&&w)try{throw new Error;}catch(s){i.stack=s.stack.substring(s.stack.indexOf("\n")+1)}return o.promise=i,o.resolve=function(i){t||s(n(i))},o.fulfill=function(n){t||s(d(n))},o.reject=function(n){t||s(e(n))},o.notify=function(i){t||v(l,function(t,r){n.nextTick(function(){r(i)})},void 0)},o}function h(n){if("function"!=typeof n)throw new TypeError("resolver must be a function.");var t=f();try{n(t.resolve,t.reject,t.notify)}catch(n){t.reject(n)}return t.promise}function st(t){return h(function(i,r){for(var u=0,f=t.length;u<f;u++)n(t[u]).then(i,r)})}function r(n,t,i){var u,f;return void 0===t&&(t=function(n){return e(new Error("Promise does not support operation: "+n))}),void 0===i&&(i=function(){return{state:"unknown"}}),u=it(r.prototype),(u.promiseDispatch=function(i,r,f){var o;try{o=n[r]?n[r].apply(u,f):t.call(u,r,f)}catch(n){o=e(n)}i&&i(o)},u.inspect=i,i)&&(f=i(),"rejected"===f.state&&(u.exception=f.reason),u.valueOf=function(){var n=i();return"pending"===n.state||"rejected"===n.state?u:n.value}),u}function o(t,i,r,u){return n(t).then(i,r,u)}function ht(n){if(c(n)){var t=n.inspect();if("fulfilled"===t.state)return t.value}return n}function c(n){return n instanceof r}function ct(n){return kt(n)&&"function"==typeof n.then}function ii(n){return c(n)&&"pending"===n.inspect().state}function ri(n){return!c(n)||"fulfilled"===n.inspect().state}function ui(n){return c(n)&&"rejected"===n.inspect().state}function k(){a.length=0;y.length=0;p||(p=!0)}function fi(i,r){p&&("object"==typeof t&&"function"==typeof t.emit&&n.nextTick.runAfter(function(){-1!==nt(y,i)&&(t.emit("unhandledRejection",r,i),ut.push(i))}),y.push(i),r&&void 0!==r.stack?a.push(r.stack):a.push("(no stack) "+r))}function ei(i){if(p){var r=nt(y,i);-1!==r&&("object"==typeof t&&"function"==typeof t.emit&&n.nextTick.runAfter(function(){var n=nt(ut,i);-1!==n&&(t.emit("rejectionHandled",a[r],i),ut.splice(n,1))}),y.splice(r,1),a.splice(r,1))}}function e(n){var t=r({when:function(t){return t&&ei(this),t?t(n):this}},function(){return this},function(){return{state:"rejected",reason:n}});return fi(t,n),t}function d(n){return r({when:function(){return n},get:function(t){return n[t]},set:function(t,i){n[t]=i},"delete":function(t){delete n[t]},post:function(t,i){return null===t||void 0===t?n.apply(void 0,i):n[t].apply(n,i)},apply:function(t,i){return n.apply(t,i)},keys:function(){return di(n)}},void 0,function(){return{state:"fulfilled",value:n}})}function oi(t){var i=f();return n.nextTick(function(){try{t.then(i.resolve,i.reject,i.notify)}catch(t){i.reject(t)}}),i.promise}function si(t){return r({isDef:function(){}},function(n,i){return at(t,n,i)},function(){return n(t).inspect()})}function lt(t,i,r){return n(t).spread(i,r)}function hi(t){return function(){function i(t,i){var s;if("undefined"==typeof StopIteration){try{s=u[t](i)}catch(t){return e(t)}return s.done?n(s.value):o(s.value,r,f)}try{s=u[t](i)}catch(t){return dt(t)?n(t.value):e(t)}return o(s,r,f)}var u=t.apply(this,arguments),r=i.bind(i,"next"),f=i.bind(i,"throw");return r()}}function ci(t){n.done(n.async(t)())}function li(n){throw new g(n);}function ai(n){return function(){return lt([this,l(arguments)],function(t,i){return n.apply(t,i)})}}function at(t,i,r){return n(t).dispatch(i,r)}function l(n){return o(n,function(n){var i=0,t=f();return v(n,function(r,u,f){var e;c(u)&&"fulfilled"===(e=u.inspect()).state?n[f]=e.value:(++i,o(u,function(r){n[f]=r;0==--i&&t.resolve(n)},t.reject,function(n){t.notify({index:f,value:n})}))},void 0),0===i&&t.resolve(n),t.promise})}function vt(t){if(0===t.length)return n.resolve();var i=n.defer(),r=0;return v(t,function(n,u,f){function e(n){i.resolve(n)}function s(){0==--r&&i.reject(new Error("Can't get fulfillment value from any promise, all promises were rejected."))}function h(n){i.notify({index:f,value:n})}var c=t[f];r++;o(c,e,s,h)},void 0),i.promise}function yt(t){return o(t,function(t){return t=tt(t,n),o(l(tt(t,function(n){return o(n,wt,wt)})),function(){return t})})}function vi(t){return n(t).allSettled()}function yi(t,i){return n(t).then(void 0,void 0,i)}function pi(t,i){return n(t).nodeify(i)}var w=!1,rt,bt;try{throw new Error;}catch(s){w=!!s.stack}var pt,g,wi=ot(),wt=function(){},b=function(){function n(){for(var n,t;r.next;)r=r.next,n=r.task,r.task=void 0,t=r.domain,t&&(r.domain=void 0,t.enter()),c(n,t);for(;s.length;)n=s.pop(),c(n);f=!1}function c(t,i){try{t()}catch(t){if(o)throw i&&i.exit(),setTimeout(n,0),i&&i.enter(),t;setTimeout(function(){throw t;},0)}i&&i.exit()}var r={task:void 0,next:null},l=r,f=!1,u=void 0,o=!1,s=[],e,h;return(b=function(n){l=l.next={task:n,domain:o&&t.domain,next:null};f||(f=!0,u())},"object"==typeof t&&"[object process]"===t.toString()&&t.nextTick)?(o=!0,u=function(){t.nextTick(n)}):"function"==typeof i?u="undefined"!=typeof window?i.bind(window,n):function(){i(n)}:"undefined"!=typeof MessageChannel?(e=new MessageChannel,e.port1.onmessage=function(){u=h;e.port1.onmessage=n;n()},h=function(){e.port2.postMessage(0)},u=function(){setTimeout(n,0);h()}):u=function(){setTimeout(n,0)},b.runAfter=function(n){s.push(n);f||(f=!0,u())},b}(),bi=Function.call,u=s(Array.prototype.slice),v=s(Array.prototype.reduce||function(n,t){var i=0,r=this.length;if(1===arguments.length)for(;;){if(i in this){t=this[i++];break}if(++i>=r)throw new TypeError;}for(;i<r;i++)i in this&&(t=n(t,this[i],i));return t}),nt=s(Array.prototype.indexOf||function(n){for(var t=0;t<this.length;t++)if(this[t]===n)return t;return-1}),tt=s(Array.prototype.map||function(n,t){var i=this,r=[];return v(i,function(u,f,e){r.push(n.call(t,f,e,i))},void 0),r}),it=Object.create||function(n){function t(){}return t.prototype=n,new t},ki=s(Object.prototype.hasOwnProperty),di=Object.keys||function(n){var i=[],t;for(t in n)ki(n,t)&&i.push(t);return i},gi=s(Object.prototype.toString);g="undefined"!=typeof ReturnValue?ReturnValue:function(n){this.value=n};rt="From previous event:";n.resolve=n;n.nextTick=b;n.longStackSupport=!1;"object"==typeof t&&t&&t.env&&t.env.Q_DEBUG&&(n.longStackSupport=!0);n.defer=f;f.prototype.makeNodeResolver=function(){var n=this;return function(t,i){t?n.reject(t):arguments.length>2?n.resolve(u(arguments,1)):n.resolve(i)}};n.Promise=h;n.promise=h;h.race=st;h.all=l;h.reject=e;h.resolve=n;n.passByCopy=function(n){return n};r.prototype.passByCopy=function(){return this};n.join=function(t,i){return n(t).join(i)};r.prototype.join=function(t){return n([this,t]).spread(function(n,t){if(n===t)return n;throw new Error("Can't join: not the same: "+n+" "+t);})};n.race=st;r.prototype.race=function(){return this.then(n.race)};n.makePromise=r;r.prototype.toString=function(){return"[object Promise]"};r.prototype.then=function(t,i,r){function h(n){try{return"function"==typeof t?t(n):n}catch(t){return e(t)}}function c(n){if("function"==typeof i){ft(n,s);try{return i(n)}catch(n){return e(n)}}return e(n)}function l(n){return"function"==typeof r?r(n):n}var s=this,u=f(),o=!1;return n.nextTick(function(){s.promiseDispatch(function(n){o||(o=!0,u.resolve(h(n)))},"when",[function(n){o||(o=!0,u.resolve(c(n)))}])}),s.promiseDispatch(void 0,"when",[void 0,function(t){var i,r=!1;try{i=l(t)}catch(t){if(r=!0,!n.onerror)throw t;n.onerror(t)}r||u.notify(i)}]),u.promise};n.tap=function(t,i){return n(t).tap(i)};r.prototype.tap=function(t){return t=n(t),this.then(function(n){return t.fcall(n).thenResolve(n)})};n.when=o;r.prototype.thenResolve=function(n){return this.then(function(){return n})};n.thenResolve=function(t,i){return n(t).thenResolve(i)};r.prototype.thenReject=function(n){return this.then(function(){throw n;})};n.thenReject=function(t,i){return n(t).thenReject(i)};n.nearer=ht;n.isPromise=c;n.isPromiseAlike=ct;n.isPending=ii;r.prototype.isPending=function(){return"pending"===this.inspect().state};n.isFulfilled=ri;r.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state};n.isRejected=ui;r.prototype.isRejected=function(){return"rejected"===this.inspect().state};var a=[],y=[],ut=[],p=!0;return n.resetUnhandledRejections=k,n.getUnhandledReasons=function(){return a.slice()},n.stopUnhandledRejectionTracking=function(){k();p=!1},k(),n.reject=e,n.fulfill=d,n.master=si,n.spread=lt,r.prototype.spread=function(n,t){return this.all().then(function(t){return n.apply(void 0,t)},t)},n.async=hi,n.spawn=ci,n.return=li,n.promised=ai,n.dispatch=at,r.prototype.dispatch=function(t,i){var u=this,r=f();return n.nextTick(function(){u.promiseDispatch(r.resolve,t,i)}),r.promise},n.get=function(t,i){return n(t).dispatch("get",[i])},r.prototype.get=function(n){return this.dispatch("get",[n])},n.set=function(t,i,r){return n(t).dispatch("set",[i,r])},r.prototype.set=function(n,t){return this.dispatch("set",[n,t])},n.del=n.delete=function(t,i){return n(t).dispatch("delete",[i])},r.prototype.del=r.prototype.delete=function(n){return this.dispatch("delete",[n])},n.mapply=n.post=function(t,i,r){return n(t).dispatch("post",[i,r])},r.prototype.mapply=r.prototype.post=function(n,t){return this.dispatch("post",[n,t])},n.send=n.mcall=n.invoke=function(t,i){return n(t).dispatch("post",[i,u(arguments,2)])},r.prototype.send=r.prototype.mcall=r.prototype.invoke=function(n){return this.dispatch("post",[n,u(arguments,1)])},n.fapply=function(t,i){return n(t).dispatch("apply",[void 0,i])},r.prototype.fapply=function(n){return this.dispatch("apply",[void 0,n])},n.try=n.fcall=function(t){return n(t).dispatch("apply",[void 0,u(arguments,1)])},r.prototype.fcall=function(){return this.dispatch("apply",[void 0,u(arguments)])},n.fbind=function(t){var i=n(t),r=u(arguments,1);return function(){return i.dispatch("apply",[this,r.concat(u(arguments))])}},r.prototype.fbind=function(){var n=this,t=u(arguments);return function(){return n.dispatch("apply",[this,t.concat(u(arguments))])}},n.keys=function(t){return n(t).dispatch("keys",[])},r.prototype.keys=function(){return this.dispatch("keys",[])},n.all=l,r.prototype.all=function(){return l(this)},n.any=vt,r.prototype.any=function(){return vt(this)},n.allResolved=function(n,t,i){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t+" is deprecated, use "+i+" instead.",new Error("").stack),n.apply(n,arguments)}}(yt,"allResolved","allSettled"),r.prototype.allResolved=function(){return yt(this)},n.allSettled=vi,r.prototype.allSettled=function(){return this.then(function(t){return l(tt(t,function(t){function i(){return t.inspect()}return t=n(t),t.then(i,i)}))})},n.fail=n.catch=function(t,i){return n(t).then(void 0,i)},r.prototype.fail=r.prototype.catch=function(n){return this.then(void 0,n)},n.progress=yi,r.prototype.progress=function(n){return this.then(void 0,void 0,n)},n.fin=n.finally=function(t,i){return n(t).finally(i)},r.prototype.fin=r.prototype.finally=function(t){return t=n(t),this.then(function(n){return t.fcall().then(function(){return n})},function(n){return t.fcall().then(function(){throw n;})})},n.done=function(t,i,r,u){return n(t).done(i,r,u)},r.prototype.done=function(i,r,u){var f=function(t){n.nextTick(function(){if(ft(t,e),!n.onerror)throw t;n.onerror(t)})},e=i||r||u?this.then(i,r,u):this;"object"==typeof t&&t&&t.domain&&(f=t.domain.bind(f));e.then(void 0,f)},n.timeout=function(t,i,r){return n(t).timeout(i,r)},r.prototype.timeout=function(n,t){var i=f(),r=setTimeout(function(){t&&"string"!=typeof t||(t=new Error(t||"Timed out after "+n+" ms"),t.code="ETIMEDOUT");i.reject(t)},n);return this.then(function(n){clearTimeout(r);i.resolve(n)},function(n){clearTimeout(r);i.reject(n)},i.notify),i.promise},n.delay=function(t,i){return void 0===i&&(i=t,t=void 0),n(t).delay(i)},r.prototype.delay=function(n){return this.then(function(t){var i=f();return setTimeout(function(){i.resolve(t)},n),i.promise})},n.nfapply=function(t,i){return n(t).nfapply(i)},r.prototype.nfapply=function(n){var t=f(),i=u(n);return i.push(t.makeNodeResolver()),this.fapply(i).fail(t.reject),t.promise},n.nfcall=function(t){var i=u(arguments,1);return n(t).nfapply(i)},r.prototype.nfcall=function(){var t=u(arguments),n=f();return t.push(n.makeNodeResolver()),this.fapply(t).fail(n.reject),n.promise},n.nfbind=n.denodeify=function(t){var i=u(arguments,1);return function(){var e=i.concat(u(arguments)),r=f();return e.push(r.makeNodeResolver()),n(t).fapply(e).fail(r.reject),r.promise}},r.prototype.nfbind=r.prototype.denodeify=function(){var t=u(arguments);return t.unshift(this),n.denodeify.apply(void 0,t)},n.nbind=function(t,i){var r=u(arguments,2);return function(){function s(){return t.apply(i,arguments)}var o=r.concat(u(arguments)),e=f();return o.push(e.makeNodeResolver()),n(s).fapply(o).fail(e.reject),e.promise}},r.prototype.nbind=function(){var t=u(arguments,0);return t.unshift(this),n.nbind.apply(void 0,t)},n.nmapply=n.npost=function(t,i,r){return n(t).npost(i,r)},r.prototype.nmapply=r.prototype.npost=function(n,t){var r=u(t||[]),i=f();return r.push(i.makeNodeResolver()),this.dispatch("post",[n,r]).fail(i.reject),i.promise},n.nsend=n.nmcall=n.ninvoke=function(t,i){var e=u(arguments,2),r=f();return e.push(r.makeNodeResolver()),n(t).dispatch("post",[i,e]).fail(r.reject),r.promise},r.prototype.nsend=r.prototype.nmcall=r.prototype.ninvoke=function(n){var i=u(arguments,1),t=f();return i.push(t.makeNodeResolver()),this.dispatch("post",[n,i]).fail(t.reject),t.promise},n.nodeify=pi,r.prototype.nodeify=function(t){if(!t)return this;this.then(function(i){n.nextTick(function(){t(null,i)})},function(i){n.nextTick(function(){t(i)})})},n.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global");},bt=ot(),n})}).call(t,i(8),i(19).setImmediate)},function(n,t,i){function u(n,t){function u(){var i=n.getItem(t);i=i||"{}";try{return JSON.parse(i)}catch(n){throw new r("Unable to parse storage string: "+t);}}function i(i){try{var u=JSON.stringify(i);n.setItem(t,u)}catch(n){throw new r("Unable to set storage: "+t);}}function f(n){n||i({});var t=u();delete t[n];i(t)}function e(n,t){var r=u();r[n]=t;i(r)}if("string"!=typeof t||!t.length)throw new r('"storageName" is required');return{getStorage:u,setStorage:i,clearStorage:f,updateStorage:e}}var r=i(1);n.exports=u},function(n,t,i){function s(n,t){var i={};return r.extend(i,t),!i.stateToken&&n.stateToken&&(i.stateToken=n.stateToken),i}function y(n){return s(n)}function p(n,t){return t=s(n,t),o.post(n,n.options.url+"/api/v1/authn",t)}function w(n,t){if(!t||!t.stateToken){var i=n.tx.exists._get(h.STATE_TOKEN_KEY_NAME);if(!i)return u.reject(new f("No transaction to resume"));t={stateToken:i}}return n.tx.status(t).then(function(t){return new e(n,t)})}function b(n,t){if(!t||!t.stateToken){var i=n.tx.exists._get(h.STATE_TOKEN_KEY_NAME);if(!i)return u.reject(new f("No transaction to evaluate"));t={stateToken:i}}return k(n,t).then(function(t){return new e(n,t)})}function k(n,t){return t=s(n,t),o.post(n,n.options.url+"/idp/idx/introspect",t)}function d(n){return!!n.tx.exists._get(h.STATE_TOKEN_KEY_NAME)}function l(n,t,i,r){return o.post(n,t,i,r).then(function(t){return new e(n,t)})}function g(n,t,i){return function(s){function k(){var i={},e;if("function"==typeof a)try{i.autoPush=!!a()}catch(n){return u.reject(new f("AutoPush resulted in an error."))}else void 0!==a&&null!==a&&(i.autoPush=!!a);if("function"==typeof l)try{i.rememberDevice=!!l()}catch(n){return u.reject(new f("RememberDevice resulted in an error."))}else void 0!==l&&null!==l&&(i.rememberDevice=!!l);return e=b.href+r.toQueryParams(i),o.post(n,e,y(t),{saveAuthnState:!1})}var c,l,a,b,p,w;return r.isNumber(s)?c=s:r.isObject(s)&&(c=s.delay,l=s.rememberDevice,a=s.autoPush),c||0===c||(c=h.DEFAULT_POLLING_DELAY),b=r.getLink(t,"next","poll"),i.isPolling=!0,p=0,w=function(){return i.isPolling?k().then(function(t){if(p=0,t.factorResult&&"WAITING"===t.factorResult){if(!i.isPolling)throw new v;return u.delay(c).then(w)}return i.isPolling=!1,new e(n,t)}).fail(function(n){if(n.xhr&&(0===n.xhr.status||429===n.xhr.status)&&p<=4){var t=1e3*Math.pow(2,p);return p++,u.delay(t).then(w)}throw n;}):u.reject(new v)},w().fail(function(n){throw i.isPolling=!1,n;})}}function a(n,t,i,e,h){if(Array.isArray(e))return function(u,o){if(!u)throw new f("Must provide a link name");var s=r.find(e,{name:u});if(!s)throw new f("No link found for that name");return a(n,t,i,s,h)(o)};if(e.hints&&e.hints.allow&&1===e.hints.allow.length)switch(e.hints.allow[0]){case"GET":return function(){return o.get(n,e.href)};case"POST":return function(o){var c,a,v,y,p;if(h&&h.isPolling&&(h.isPolling=!1),c=s(t,o),"MFA_ENROLL"!==t.status&&"FACTOR_ENROLL"!==t.status||r.extend(c,{factorType:i.factorType,provider:i.provider}),a={},v=c.autoPush,void 0!==v){if("function"==typeof v)try{a.autoPush=!!v()}catch(n){return u.reject(new f("AutoPush resulted in an error."))}else null!==v&&(a.autoPush=!!v);c=r.omit(c,"autoPush")}if(y=c.rememberDevice,void 0!==y){if("function"==typeof y)try{a.rememberDevice=!!y()}catch(n){return u.reject(new f("RememberDevice resulted in an error."))}else null!==y&&(a.rememberDevice=!!y);c=r.omit(c,"rememberDevice")}else c.profile&&void 0!==c.profile.updatePhone&&(c.profile.updatePhone&&(a.updatePhone=!0),c.profile=r.omit(c.profile,"updatePhone"));return p=e.href+r.toQueryParams(a),l(n,p,c)}}}function nt(n,t,i,r){var e={},u,f,o;for(u in i._links)if(i._links.hasOwnProperty(u))if(f=i._links[u],"next"===u&&(u=f.name),f.type)e[u]=f;else switch(u){case"poll":e.poll=g(n,t,r);break;default:o=a(n,t,i,f,r);o&&(e[u]=o)}return e}function c(n,t,i,u){var f,e,h;if(i=i||t,i=r.clone(i),Array.isArray(i)){for(var s=[],o=0,l=i.length;o<l;o++)s.push(c(n,t,i[o],u));return s}f=i._embedded||{};for(e in f)f.hasOwnProperty(e)&&(r.isObject(f[e])||Array.isArray(f[e]))&&(f[e]=c(n,t,f[e],u));return h=nt(n,t,i,u),r.extend(f,h),i=r.omit(i,"_embedded","_links"),r.extend(i,f),i}function e(n,t){t&&(this.data=t,r.extend(this,c(n,t,t,{})),delete this.stateToken,"RECOVERY_CHALLENGE"!==t.status||t._links||(this.cancel=function(){return new u(new e(n))}))}var o=i(3),r=i(0),u=i(5),f=i(1),v=i(22),h=i(2);n.exports={transactionStatus:p,resumeTransaction:w,transactionExists:d,postToTransaction:l,introspect:b}},function(n){function h(){throw new Error("setTimeout has not been defined");}function c(){throw new Error("clearTimeout has not been defined");}function l(n){if(r===setTimeout)return setTimeout(n,0);if((r===h||!r)&&setTimeout)return r=setTimeout,setTimeout(n,0);try{return r(n,0)}catch(t){try{return r.call(null,n,0)}catch(t){return r.call(this,n,0)}}}function y(n){if(u===clearTimeout)return clearTimeout(n);if((u===c||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(n);try{return u(n)}catch(t){try{return u.call(null,n)}catch(t){return u.call(this,n)}}}function p(){o&&e&&(o=!1,e.length?f=e.concat(f):s=-1,f.length&&a())}function a(){var t,n;if(!o){for(t=l(p),o=!0,n=f.length;n;){for(e=f,f=[];++s<n;)e&&e[s].run();s=-1;n=f.length}e=null;o=!1;y(t)}}function v(n,t){this.fun=n;this.array=t}function i(){}var r,u,t=n.exports={};!function(){try{r="function"==typeof setTimeout?setTimeout:h}catch(n){r=h}try{u="function"==typeof clearTimeout?clearTimeout:c}catch(n){u=c}}();var e,f=[],o=!1,s=-1;t.nextTick=function(n){var i=new Array(arguments.length-1),t;if(arguments.length>1)for(t=1;t<arguments.length;t++)i[t-1]=arguments[t];f.push(new v(n,i));1!==f.length||o||l(a)};v.prototype.run=function(){this.fun.apply(null,this.array)};t.title="browser";t.browser=!0;t.env={};t.argv=[];t.version="";t.versions={};t.on=i;t.addListener=i;t.once=i;t.off=i;t.removeListener=i;t.removeAllListeners=i;t.emit=i;t.prependListener=i;t.prependOnceListener=i;t.listeners=function(){return[]};t.binding=function(){throw new Error("process.binding is not supported");};t.cwd=function(){return"/"};t.chdir=function(){throw new Error("process.chdir is not supported");};t.umask=function(){return 0}},function(n){var t=function(){return this}();try{t=t||Function("return this")()||eval("this")}catch(n){"object"==typeof window&&(t=window)}n.exports=t},function(n,t,i){function s(){return u.genRandomString(64)}function h(){return u.genRandomString(64)}function c(n){return!(!n||!n.accessToken&&!n.idToken||!Array.isArray(n.scopes))}function l(n,t,i){n.addEventListener?n.addEventListener(t,i):n.attachEvent("on"+t,i)}function a(n,t,i){n.removeEventListener?n.removeEventListener(t,i):n.detachEvent("on"+t,i)}function v(n){var t=document.createElement("iframe");return t.style.display="none",t.src=n,document.body.appendChild(t)}function y(n,t){var r=t.popupTitle||"External Identity Provider User Authentication",f="toolbar=no, scrollbars=yes, resizable=yes, top=100, left=500, width=600, height=600",i;return u.isIE11OrLess()?(i=window.open("/",r,f),i.location.href=n,i):window.open(n,r,f)}function f(n,t){return e.get(n,(t||n.options.url)+"/.well-known/openid-configuration",{cacheResponse:!0})}function p(n,t,i){return f(n,t).then(function(t){var f=t.jwks_uri,c=o.getStorage(),s=c[f],h;return s&&Date.now()/1e3<s.expiresAt&&(h=u.find(s.response.keys,{kid:i}),h)?h:(o.clearStorage(f),e.get(n,f,{cacheResponse:!0}).then(function(n){var t=u.find(n.keys,{kid:i});if(t)return t;throw new r("The key id, "+i+", was not found in the server's keys");}))})}function w(n,t,i){var u=i.clientId,f=i.issuer,o=i.nonce,e;if(!t||!f||!u)throw new r("The jwt, iss, and aud arguments are all required");if(o&&t.nonce!==o)throw new r("OAuth flow response nonce doesn't match request nonce");if(e=Math.floor(Date.now()/1e3),t.iss!==f)throw new r("The issuer ["+t.iss+"] does not match ["+f+"]");if(t.aud!==u)throw new r("The audience ["+t.aud+"] does not match ["+u+"]");if(t.iat>t.exp)throw new r("The JWT expired before it was issued");if(e-n.options.maxClockSkew>t.exp)throw new r("The JWT expired and is no longer valid");if(t.iat>e+n.options.maxClockSkew)throw new r("The JWT was issued in the future");}function b(n,t,i){var h;i=i||{};var e=u.removeTrailingSlash(i.authorizeUrl)||n.options.authorizeUrl,f=u.removeTrailingSlash(i.issuer)||n.options.issuer,o=u.removeTrailingSlash(i.userinfoUrl)||n.options.userinfoUrl,s=u.removeTrailingSlash(i.tokenUrl)||n.options.tokenUrl;if(f&&!/^https?:/.test(f)&&(f=n.options.url+"/oauth2/"+f),!f&&e&&-1!==t.responseType.indexOf("id_token"))throw new r("Cannot request idToken with an authorizeUrl without an issuer");if(!f&&-1!==t.responseType.indexOf("token")){if(e&&!o)throw new r("Cannot request accessToken with an authorizeUrl without an issuer or userinfoUrl");if(o&&!e)throw new r("Cannot request token with an userinfoUrl without an issuer or authorizeUrl");}return h=new RegExp("^https?://.*?/oauth2/.+"),f=f||n.options.url,h.test(f)?(e=e||f+"/v1/authorize",o=o||f+"/v1/userinfo",s=s||f+"/v1/token"):(e=e||f+"/oauth2/v1/authorize",o=o||f+"/oauth2/v1/userinfo",s=s||f+"/oauth2/v1/token"),{issuer:f,authorizeUrl:e,userinfoUrl:o,tokenUrl:s}}function k(n){for(var t,r,i,f=/\+/g,e=/([^&=]+)=?([^&]*)/g,o=n.substring(1),u={};;){if(!(i=e.exec(o)))break;t=i[1];r=i[2];u[t]="id_token"===t||"access_token"===t||"code"===t?r:decodeURIComponent(r.replace(f," "))}return u}var e=i(3),u=i(0),d=i(4),r=i(1),o=d.getHttpCache();n.exports={generateState:s,generateNonce:h,getWellKnown:f,getKey:p,validateClaims:w,getOAuthUrls:b,loadFrame:v,loadPopup:y,hashToObject:k,isToken:c,addListener:l,removeListener:a}},function(n,t,i){var r=i(12),u=i(4);n.exports=i(15)(u,r)},function(n,t,i){function r(n,t,i){var r=i.data,f=i.headers||{};return"application/json"===(f["Content-Type"]||f["content-type"]||"")&&r&&"string"!=typeof r&&(r=JSON.stringify(r)),u(t,{method:n,headers:i.headers,body:r,credentials:!1===i.withCredentials?"omit":"include"}).then(function(n){var i=!n.ok,r=n.status,t=function(n){var t={responseText:n,status:r};if(i)throw t;return t};return n.headers.get("Content-Type")&&n.headers.get("Content-Type").toLowerCase().indexOf("application/json")>=0?n.json().then(t):n.text().then(t)})}var u=i(13);n.exports=r},function(n,t){var i=function(n){function t(){this.fetch=!1}return t.prototype=n,new t}("undefined"!=typeof self?self:this);!function(n){!function(t){function k(n){return n&&DataView.prototype.isPrototypeOf(n)}function e(n){if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new TypeError("Invalid character in header field name");return n.toLowerCase()}function c(n){return"string"!=typeof n&&(n=String(n)),n}function o(n){var t={next:function(){var t=n.shift();return{done:void 0===t,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function i(n){this.map={};n instanceof i?n.forEach(function(n,t){this.append(t,n)},this):Array.isArray(n)?n.forEach(function(n){this.append(n[0],n[1])},this):n&&Object.getOwnPropertyNames(n).forEach(function(t){this.append(t,n[t])},this)}function s(n){if(n.bodyUsed)return Promise.reject(new TypeError("Already read"));n.bodyUsed=!0}function l(n){return new Promise(function(t,i){n.onload=function(){t(n.result)};n.onerror=function(){i(n.error)}})}function d(n){var t=new FileReader,i=l(t);return t.readAsArrayBuffer(n),i}function g(n){var t=new FileReader,i=l(t);return t.readAsText(n),i}function nt(n){for(var i=new Uint8Array(n),r=new Array(i.length),t=0;t<i.length;t++)r[t]=String.fromCharCode(i[t]);return r.join("")}function a(n){if(n.slice)return n.slice(0);var t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(n){this._bodyInit=n;n?"string"==typeof n?this._bodyText=n:r.blob&&Blob.prototype.isPrototypeOf(n)?this._bodyBlob=n:r.formData&&FormData.prototype.isPrototypeOf(n)?this._bodyFormData=n:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(n)?this._bodyText=n.toString():r.arrayBuffer&&r.blob&&k(n)?(this._bodyArrayBuffer=a(n.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(n)||p(n))?this._bodyArrayBuffer=a(n):this._bodyText=n=Object.prototype.toString.call(n):this._bodyText="";this.headers.get("content-type")||("string"==typeof n?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(n)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var n=s(this);if(n)return n;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?s(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var n=s(this);if(n)return n;if(this._bodyBlob)return g(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(nt(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(it)}),this.json=function(){return this.text().then(JSON.parse)},this}function tt(n){var t=n.toUpperCase();return w.indexOf(t)>-1?t:n}function f(n,t){t=t||{};var r=t.body;if(n instanceof f){if(n.bodyUsed)throw new TypeError("Already read");this.url=n.url;this.credentials=n.credentials;t.headers||(this.headers=new i(n.headers));this.method=n.method;this.mode=n.mode;this.signal=n.signal;r||null==n._bodyInit||(r=n._bodyInit,n.bodyUsed=!0)}else this.url=String(n);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new i(t.headers)),this.method=tt(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function it(n){var t=new FormData;return n.trim().split("&").forEach(function(n){if(n){var i=n.split("="),r=i.shift().replace(/\+/g," "),u=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(u))}}),t}function rt(n){var t=new i;return n.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(n){var i=n.split(":"),r=i.shift().trim(),u;r&&(u=i.join(":").trim(),t.append(r,u))}),t}function u(n,t){t||(t={});this.type="default";this.status=void 0===t.status?200:t.status;this.ok=this.status>=200&&this.status<300;this.statusText="statusText"in t?t.statusText:"OK";this.headers=new i(t.headers);this.url=t.url||"";this._initBody(n)}function h(n,i){return new Promise(function(e,o){function c(){s.abort()}var h=new f(n,i),s;if(h.signal&&h.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));s=new XMLHttpRequest;s.onload=function(){var n={status:s.status,statusText:s.statusText,headers:rt(s.getAllResponseHeaders()||"")},t;n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");t="response"in s?s.response:s.responseText;e(new u(t,n))};s.onerror=function(){o(new TypeError("Network request failed"))};s.ontimeout=function(){o(new TypeError("Network request failed"))};s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))};s.open(h.method,h.url,!0);"include"===h.credentials?s.withCredentials=!0:"omit"===h.credentials&&(s.withCredentials=!1);"responseType"in s&&r.blob&&(s.responseType="blob");h.headers.forEach(function(n,t){s.setRequestHeader(t,n)});h.signal&&(h.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&h.signal.removeEventListener("abort",c)});s.send(void 0===h._bodyInit?null:h._bodyInit)})}var r={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(n){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n},y,p,w,b;r.arrayBuffer&&(y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(n){return n&&y.indexOf(Object.prototype.toString.call(n))>-1});i.prototype.append=function(n,t){n=e(n);t=c(t);var i=this.map[n];this.map[n]=i?i+", "+t:t};i.prototype.delete=function(n){delete this.map[e(n)]};i.prototype.get=function(n){return n=e(n),this.has(n)?this.map[n]:null};i.prototype.has=function(n){return this.map.hasOwnProperty(e(n))};i.prototype.set=function(n,t){this.map[e(n)]=c(t)};i.prototype.forEach=function(n,t){for(var i in this.map)this.map.hasOwnProperty(i)&&n.call(t,this.map[i],i,this)};i.prototype.keys=function(){var n=[];return this.forEach(function(t,i){n.push(i)}),o(n)};i.prototype.values=function(){var n=[];return this.forEach(function(t){n.push(t)}),o(n)};i.prototype.entries=function(){var n=[];return this.forEach(function(t,i){n.push([i,t])}),o(n)};r.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this,{body:this._bodyInit})};v.call(f.prototype);v.call(u.prototype);u.prototype.clone=function(){return new u(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})};u.error=function(){var n=new u(null,{status:0,statusText:""});return n.type="error",n};b=[301,302,303,307,308];u.redirect=function(n,t){if(-1===b.indexOf(t))throw new RangeError("Invalid status code");return new u(null,{status:t,headers:{location:n}})};t.DOMException=n.DOMException;try{new t.DOMException}catch(n){t.DOMException=function(n,t){this.message=n;this.name=t;var i=Error(n);this.stack=i.stack};t.DOMException.prototype=Object.create(Error.prototype);t.DOMException.prototype.constructor=t.DOMException}h.polyfill=!0;n.fetch||(n.fetch=h,n.Headers=i,n.Request=f,n.Response=u);t.Headers=i;t.Request=f;t.Response=u;t.fetch=h}({})}(i);delete i.fetch.polyfill;t=i.fetch;t.default=i.fetch;t.fetch=i.fetch;t.Headers=i.Headers;t.Request=i.Request;t.Response=i.Response;n.exports=t},function(n,t,i){var r,u;!function(f){var e=!1,s,o;(r=f,void 0!==(u="function"==typeof r?r.call(t,i,t,n):r)&&(n.exports=u),e=!0,n.exports=f(),e=!0,e)||(s=window.Cookies,o=window.Cookies=f(),o.noConflict=function(){return window.Cookies=s,o})}(function(){function n(){for(var i,r,n=0,t={};n<arguments.length;n++){i=arguments[n];for(r in i)t[r]=i[r]}return t}function t(i){function r(t,u,f){var o,c,l,s,v,e,h;if("undefined"!=typeof document){if(arguments.length>1){(f=n({path:"/"},r.defaults,f),"number"==typeof f.expires)&&(c=new Date,c.setMilliseconds(c.getMilliseconds()+864e5*f.expires),f.expires=c);f.expires=f.expires?f.expires.toUTCString():"";try{o=JSON.stringify(u);/^[\{\[]/.test(o)&&(u=o)}catch(n){}u=i.write?i.write(u,t):encodeURIComponent(String(u)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);t=encodeURIComponent(String(t));t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent);t=t.replace(/[\(\)]/g,escape);l="";for(s in f)f[s]&&(l+="; "+s,!0!==f[s]&&(l+="="+f[s]));return document.cookie=t+"="+u+l}t||(o={});for(var y=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,a=0;a<y.length;a++){v=y[a].split("=");e=v.slice(1).join("=");this.json||'"'!==e.charAt(0)||(e=e.slice(1,-1));try{if(h=v[0].replace(p,decodeURIComponent),e=i.read?i.read(e,h):i(e,h)||e.replace(p,decodeURIComponent),this.json)try{e=JSON.parse(e)}catch(n){}if(t===h){o=e;break}t||(o[h]=e)}catch(n){}}return o}}return r.set=r,r.get=function(n){return r.call(r,n)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,i){r(t,"",n(i,{expires:-1}))},r.withConverter=t,r}return t(function(){})})},function(n,t,i){function c(n){var t=this,u=h.getValidUrl(n),c=n.pkce||"authorization_code"===n.grantType,i;if(this.options={url:r.removeTrailingSlash(u),clientId:n.clientId,issuer:r.removeTrailingSlash(n.issuer),authorizeUrl:r.removeTrailingSlash(n.authorizeUrl),userinfoUrl:r.removeTrailingSlash(n.userinfoUrl),tokenUrl:r.removeTrailingSlash(n.tokenUrl),pkce:c,redirectUri:n.redirectUri,httpRequestClient:n.httpRequestClient,storageUtil:n.storageUtil,transformErrorXHR:n.transformErrorXHR,headers:n.headers},this.options.pkce&&!t.features.isPKCESupported())throw new s("This browser doesn't support PKCE");this.userAgent="okta-auth-js-"+l.SDK_VERSION;this.options.maxClockSkew=n.maxClockSkew||0===n.maxClockSkew?n.maxClockSkew:l.DEFAULT_MAX_CLOCK_SKEW;this.options.ignoreSignature=!!n.ignoreSignature;t.session={close:r.bind(e.closeSession,null,t),exists:r.bind(e.sessionExists,null,t),get:r.bind(e.getSession,null,t),refresh:r.bind(e.refreshSession,null,t),setCookieAndRedirect:r.bind(e.setCookieAndRedirect,null,t)};t.tx={status:r.bind(o.transactionStatus,null,t),resume:r.bind(o.resumeTransaction,null,t),exists:r.bind(o.transactionExists,null,t),introspect:r.bind(o.introspect,null,t)};t.tx.exists._get=function(n){return y.get(n)};t.idToken={authorize:{_getLocationHref:function(){return window.location.href}}};t.token={getWithoutPrompt:r.bind(f.getWithoutPrompt,null,t),getWithPopup:r.bind(f.getWithPopup,null,t),getWithRedirect:r.bind(f.getWithRedirect,null,t),parseFromUrl:r.bind(f.parseFromUrl,null,t),decode:f.decodeToken,renew:r.bind(f.renewToken,null,t),getUserInfo:r.bind(f.getUserInfo,null,t),verify:r.bind(f.verifyToken,null,t)};t.token.getWithRedirect._setLocation=function(n){window.location=n};t.token.parseFromUrl._getHistory=function(){return window.history};t.token.parseFromUrl._getLocation=function(){return window.location};t.token.parseFromUrl._getDocument=function(){return window.document};t.fingerprint._getUserAgent=function(){return navigator.userAgent};i=/windows phone|iemobile|wpdesktop/i;t.features.isFingerprintSupported=function(){var n=t.fingerprint._getUserAgent();return n&&!i.test(n)};t.tokenManager=new w(t,n.tokenManager)}i(16);var s=i(1),h=i(18),l=i(2),y=i(4).storage,p=i(3),a=i(10),v=i(5),e=i(23),f=i(24),w=i(28),o=i(7),r=i(0),u=c.prototype;u.features={};u.features.isPopupPostMessageSupported=function(){var n=document.documentMode&&document.documentMode<10;return!(!window.postMessage||n)};u.features.isTokenVerifySupported=function(){return"undefined"!=typeof crypto&&crypto.subtle&&"undefined"!=typeof Uint8Array};u.features.isPKCESupported=function(){return u.features.isTokenVerifySupported()};u.signIn=function(n){function t(t){return delete n.sendFingerprint,o.postToTransaction(i,"/api/v1/authn",n,t)}var i=this;return n=r.clone(n||{}),n.sendFingerprint?i.fingerprint().then(function(n){return t({headers:{"X-Device-Fingerprint":n}})}):t()};u.signOut=function(){return this.session.close()};h.addSharedPrototypes(u);u.webfinger=function(n){var t="/.well-known/webfinger"+r.toQueryParams(n);return p.get(this,t,{headers:{Accept:"application/jrd+json"}})};u.fingerprint=function(n){function u(n){if(n&&n.data&&n.origin===r.options.url){try{var t=JSON.parse(n.data)}catch(n){return i.reject(new s("Unable to parse iframe response"))}if(t)return"FingerprintAvailable"===t.type?i.resolve(t.fingerprint):void("FingerprintServiceReady"===t.type&&n.source.postMessage(JSON.stringify({type:"GetFingerprint"}),n.origin))}}var r,i,t,f;return(n=n||{},r=this,!r.features.isFingerprintSupported())?v.reject(new s("Fingerprinting is not supported on this device")):(i=v.defer(),t=document.createElement("iframe"),t.style.display="none",a.addListener(window,"message",u),t.src=r.options.url+"/auth/services/devicefingerprint",document.body.appendChild(t),f=setTimeout(function(){i.reject(new s("Fingerprinting timed out"))},n.timeout||15e3),i.promise.fin(function(){clearTimeout(f);a.removeListener(window,"message",u);document.body.contains(t)&&t.parentElement.removeChild(t)}))};n.exports=h.buildOktaAuth(c)},function(n,t,i){i(17);Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){var r,f,u,i;if(null==this)throw new TypeError('"this" is null or not defined');if((f=Object(this),u=f.length>>>0,0===u)||(i=+t||0,Math.abs(i)===1/0&&(i=0),i>=u))return-1;for(r=Math.max(i>=0?i:u-Math.abs(i),0);r<u;){if(r in f&&f[r]===n)return r;r++}return-1});Array.isArray||(Array.isArray=function(n){return"[object Array]"===Object.prototype.toString.call(n)})},function(n,t){!function(){function n(n){this.message=n}var i=t,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error;n.prototype.name="InvalidCharacterError";i.btoa||(i.btoa=function(t){for(var u,f,e=String(t),i=0,o=r,s="";e.charAt(0|i)||(o="=",i%1);s+=o.charAt(63&u>>8-i%1*8)){if((f=e.charCodeAt(i+=.75))>255)throw new n("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");u=u<<8|f}return s});i.atob||(i.atob=function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var u,i,f=0,s=0,o="";i=e.charAt(s++);~i&&(u=f%4?64*u+i:i,f++%4)?o+=String.fromCharCode(255&u>>(-2*f&6)):0)i=r.indexOf(i);return o})}()},function(n,t,i){function e(n){var t,i;if(!n)throw new r("No arguments passed to constructor. Required usage: new OktaAuth(args)");if(t=n.url,!t){if(i=new RegExp("^http?s?://.+"),!n.issuer||!i.test(n.issuer))throw new r('No url passed to constructor. Required usage: new OktaAuth({url: "https://{yourOktaDomain}.com"})');t=n.issuer.split("/oauth2/")[0]}if(-1!==t.indexOf("-admin."))throw new r('URL passed to constructor contains "-admin" in subdomain. Required usage: new OktaAuth({url: "https://{yourOktaDomain}.com})');return t}function o(n){n.forgotPassword=function(n){return u.postToTransaction(this,"/api/v1/authn/recovery/password",n)};n.unlockAccount=function(n){return u.postToTransaction(this,"/api/v1/authn/recovery/unlock",n)};n.verifyRecoveryToken=function(n){return u.postToTransaction(this,"/api/v1/authn/recovery/token",n)}}function s(n){return function(t,i){function r(u){if(!(this instanceof r))return new r(u);u&&(u.storageUtil=t,u.ajaxRequest?(f.deprecate("ajaxRequest is being deprecated, use httpRequestClient attribute instead."),u.httpRequestClient=u.ajaxRequest):u.httpRequestClient||(u.httpRequestClient=i));f.bind(n,this)(u)}return r.prototype=n.prototype,r.prototype.constructor=r,r.features=n.prototype.features,r}}var r=i(1),u=i(7),f=i(0);n.exports={addSharedPrototypes:o,buildOktaAuth:s,getValidUrl:e}},function(n,t,i){(function(n){function r(n,t){this._id=n;this._clearFn=t}var u=void 0!==n&&n||"undefined"!=typeof self&&self||window,f=Function.prototype.apply;t.setTimeout=function(){return new r(f.call(setTimeout,u,arguments),clearTimeout)};t.setInterval=function(){return new r(f.call(setInterval,u,arguments),clearInterval)};t.clearTimeout=t.clearInterval=function(n){n&&n.close()};r.prototype.unref=r.prototype.ref=function(){};r.prototype.close=function(){this._clearFn.call(u,this._id)};t.enroll=function(n,t){clearTimeout(n._idleTimeoutId);n._idleTimeout=t};t.unenroll=function(n){clearTimeout(n._idleTimeoutId);n._idleTimeout=-1};t._unrefActive=t.active=function(n){clearTimeout(n._idleTimeoutId);var t=n._idleTimeout;t>=0&&(n._idleTimeoutId=setTimeout(function(){n._onTimeout&&n._onTimeout()},t))};i(20);t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==n&&n.setImmediate||this&&this.setImmediate;t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==n&&n.clearImmediate||this&&this.clearImmediate}).call(t,i(9))},function(n,t,i){(function(n,t){!function(n,i){"use strict";function l(n){var i,t,r;for("function"!=typeof n&&(n=new Function(""+n)),i=new Array(arguments.length-1),t=0;t<i.length;t++)i[t]=arguments[t+1];return r={callback:n,args:i},s[o]=r,u(o),o++}function c(n){delete s[n]}function a(n){var r=n.callback,t=n.args;switch(t.length){case 0:r();break;case 1:r(t[0]);break;case 2:r(t[0],t[1]);break;case 3:r(t[0],t[1],t[2]);break;default:r.apply(i,t)}}function r(n){if(h)setTimeout(r,0,n);else{var t=s[n];if(t){h=!0;try{a(t)}finally{c(n);h=!1}}}}if(!n.setImmediate){var u,o=1,s={},h=!1,e=n.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(n);f=f&&f.setTimeout?f:n;"[object process]"==={}.toString.call(n.process)?function(){u=function(n){t.nextTick(function(){r(n)})}}():function(){if(n.postMessage&&!n.importScripts){var t=!0,i=n.onmessage;return n.onmessage=function(){t=!1},n.postMessage("","*"),n.onmessage=i,t}}()?function(){var t="setImmediate$"+Math.random()+"$",i=function(i){i.source===n&&"string"==typeof i.data&&0===i.data.indexOf(t)&&r(+i.data.slice(t.length))};n.addEventListener?n.addEventListener("message",i,!1):n.attachEvent("onmessage",i);u=function(i){n.postMessage(t+i,"*")}}():n.MessageChannel?function(){var n=new MessageChannel;n.port1.onmessage=function(n){r(n.data)};u=function(t){n.port2.postMessage(t)}}():e&&"onreadystatechange"in e.createElement("script")?function(){var n=e.documentElement;u=function(t){var i=e.createElement("script");i.onreadystatechange=function(){r(t);i.onreadystatechange=null;n.removeChild(i);i=null};n.appendChild(i)}}():function(){u=function(n){setTimeout(r,0,n)}}();f.setImmediate=l;f.clearImmediate=c}}("undefined"==typeof self?void 0===n?this:n:self)}).call(t,i(9),i(8))},function(n){function t(n,t){this.name="AuthApiError";this.message=n.errorSummary;this.errorSummary=n.errorSummary;this.errorCode=n.errorCode;this.errorLink=n.errorLink;this.errorId=n.errorId;this.errorCauses=n.errorCauses;t&&(this.xhr=t)}t.prototype=new Error;n.exports=t},function(n){function t(){this.name="AuthPollStopError";this.message="The poll was stopped by the sdk"}t.prototype=new Error;n.exports=t},function(n,t,i){function f(n){return n.session.get().then(function(n){return"ACTIVE"===n.status}).fail(function(){return!1})}function e(n){return r.get(n,"/api/v1/sessions/me").then(function(t){var i=u.omit(t,"_links");return i.refresh=function(){return r.post(n,u.getLink(t,"refresh").href)},i.user=function(){return r.get(n,u.getLink(t,"user").href)},i}).fail(function(){return{status:"INACTIVE"}})}function o(n){return r.httpRequest(n,{url:n.options.url+"/api/v1/sessions/me",method:"DELETE"})}function s(n){return r.post(n,"/api/v1/sessions/me/lifecycle/refresh")}function h(n,t,i){i=i||window.location.href;window.location=n.options.url+"/login/sessionCookieRedirect"+u.toQueryParams({checkAccountSetupComplete:!0,token:t,redirectUrl:i})}var u=i(0),r=i(3);n.exports={sessionExists:f,getSession:e,closeSession:o,refreshSession:s,setCookieAndRedirect:h}},function(n,t,i){function v(n){var i,t=n.split(".");try{i={header:JSON.parse(r.base64UrlToString(t[0])),payload:JSON.parse(r.base64UrlToString(t[1])),signature:t[2]}}catch(n){throw new u("Malformed token");}return i}function y(n,t,i){return(new f).then(function(){if(!t||!t.idToken)throw new u("Only idTokens may be verified");var o=v(t.idToken),f={clientId:n.options.clientId,issuer:n.options.issuer||n.options.url,ignoreSignature:n.options.ignoreSignature};return r.extend(f,i),e.validateClaims(n,o.payload,f),1!=f.ignoreSignature&&n.features.isTokenVerifySupported()?e.getKey(n,t.issuer,o.header.kid).then(function(n){return ct.verifyToken(t.idToken,n)}).then(function(n){if(!n)throw new u("The token signature is not valid");return t}):t})}function p(n,t,i){function o(t){!t.data||t.origin!==n.options.url||t.data&&r.isString(i)&&t.data.state!==i||s.resolve(t.data)}var s=f.defer();return e.addListener(window,"message",o),s.promise.timeout(t||12e4,new u("OAuth flow timed out")).fin(function(){e.removeListener(window,"message",o)})}function d(n,t,i){function r(){try{t&&t.location&&t.location.hash?o.resolve(e.hashToObject(t.location.hash)):t&&!t.closed&&setTimeout(r,500)}catch(n){setTimeout(r,500)}}var o=f.defer();return r(),o.promise.timeout(i||12e4,new u("OAuth flow timed out"))}function g(n,t,i,r){var u=o.loadMeta(n),f={clientId:t.clientId,authorizationCode:i,codeVerifier:u.codeVerifier,redirectUri:u.redirectUri};return o.getToken(n,f,r).then(function(n){return w(n,f),n}).fin(function(){o.clearMeta(n)})}function w(n,t){if(n.error||n.error_description)throw new k(n.error,n.error_description);if(n.state!==t.state)throw new u("OAuth flow response state doesn't match request state");}function c(n,t,i,e){e=e||{};var o=t.responseType,s=r.clone(t.scopes),h=t.clientId||n.options.clientId;return(new f).then(function(){return w(i,t),i.code?(o=["token","id_token"],g(n,t,i.code,e)):i}).then(function(i){var r={};if(i.access_token&&(r.token={accessToken:i.access_token,expiresAt:Number(i.expires_in)+Math.floor(Date.now()/1e3),tokenType:i.token_type,scopes:s,authorizeUrl:e.authorizeUrl,userinfoUrl:e.userinfoUrl}),i.id_token){var u=n.token.decode(i.id_token),f={idToken:i.id_token,claims:u.payload,expiresAt:u.payload.exp,scopes:s,authorizeUrl:e.authorizeUrl,issuer:e.issuer,clientId:h},o={clientId:h,issuer:e.issuer,nonce:t.nonce};return void 0!==t.ignoreSignature&&(o.ignoreSignature=t.ignoreSignature),y(n,f,o).then(function(){return r.id_token=f,r})}return r}).then(function(n){return Array.isArray(o)?(["token","id_token"].filter(function(n){return-1!==o.indexOf(n)}).forEach(function(t){if(!n[t])throw new u("Unable to parse OAuth flow response: "+t+" was not returned.");}),o.map(function(t){return n[t]})):n[o]})}function nt(n){return{pkce:n.options.pkce||!1,clientId:n.options.clientId,redirectUri:n.options.redirectUri||window.location.href,responseType:"id_token",responseMode:"okta_post_message",state:e.generateState(),nonce:e.generateNonce(),scopes:["openid","email"],ignoreSignature:n.options.ignoreSignature}}function tt(n){if(!n.clientId)throw new u("A clientId must be specified in the OktaAuth constructor to get a token");if(r.isString(n.responseType)&&-1!==n.responseType.indexOf(" "))throw new u("Multiple OAuth responseTypes must be defined as an array");var t=r.removeNils({client_id:n.clientId,code_challenge:n.codeChallenge,code_challenge_method:n.codeChallengeMethod,display:n.display,idp:n.idp,idp_scope:n.idpScope,login_hint:n.loginHint,max_age:n.maxAge,nonce:n.nonce,prompt:n.prompt,redirect_uri:n.redirectUri,response_mode:n.responseMode,response_type:n.responseType,sessionToken:n.sessionToken,state:n.state});if(["idp_scope","response_type"].forEach(function(n){Array.isArray(t[n])&&(t[n]=t[n].join(" "))}),-1!==n.responseType.indexOf("id_token")&&-1===n.scopes.indexOf("openid"))throw new u("openid scope must be specified in the scopes argument when requesting an id_token");return t.scope=n.scopes.join(" "),t}function b(n){var t=tt(n);return r.toQueryParams(t)}function l(n,t,i){return t=t||{},i=i||{},a(n,t).then(function(o){function g(n){return/^(https?\:\/\/)?([^:\/?#]*(?:\:[0-9]+)?)/.exec(n)[0]}function ut(n){n.closed&&l.reject(new u("Unable to parse OAuth flow response"))}var v,nt,s,tt,a,y,it,h,w,k,l,rt;t.sessionToken?r.extend(o,{prompt:"none",responseMode:"okta_post_message",display:null}):t.idp&&r.extend(o,{display:"popup"});try{s=e.getOAuthUrls(n,o,i);nt=t.codeVerifier?s.tokenUrl:s.authorizeUrl;v=nt+b(o)}catch(n){return f.reject(n)}switch(o.sessionToken||null===o.display?"IFRAME":"popup"===o.display?"POPUP":"IMPLICIT"){case"IFRAME":return tt=p(n,i.timeout,o.state),a=e.loadFrame(v),tt.then(function(t){return c(n,o,t,s)}).fin(function(){document.body.contains(a)&&a.parentElement.removeChild(a)});case"POPUP":if("okta_post_message"===o.responseMode){if(!n.features.isPopupPostMessageSupported())return f.reject(new u("This browser doesn't have full postMessage support"));y=p(n,i.timeout,o.state)}if(it={popupTitle:i.popupTitle},h=e.loadPopup(v,it),"fragment"===o.responseMode){if(w=g(n.idToken.authorize._getLocationHref()),k=g(o.redirectUri),w!==k)return f.reject(new u("Using fragment, the redirectUri origin ("+k+") must match the origin of this page ("+w+")"));y=d(n,h,i.timeout)}return l=f.defer(),rt=setInterval(function(){ut(h)},500),y.then(function(n){l.resolve(n)}).fail(function(n){l.reject(n)}),l.promise.then(function(t){return c(n,o,t,s)}).fin(function(){h.closed||(clearInterval(rt),h.close())});default:return f.reject(new u("The full page redirect flow is not supported"))}})}function it(n,t,i){var u=r.clone(t)||{};return r.extend(u,{prompt:"none",responseMode:"okta_post_message",display:null}),l(n,u,i)}function rt(n,t,i){var u=r.clone(t)||{};return r.extend(u,{display:"popup",responseMode:"okta_post_message"}),l(n,u,i)}function a(n,t){t=r.clone(t)||{};"authorization_code"===t.grantType&&(t.pkce=!0);var i=nt(n);return r.extend(i,t),!0!==i.pkce?f.resolve(i):n.features.isPKCESupported()?(i.codeChallengeMethod||(i.codeChallengeMethod=o.DEFAULT_CODE_CHALLENGE_METHOD),i.responseType="code",e.getWellKnown(n,null).then(function(n){if(-1===(n.code_challenge_methods_supported||[]).indexOf(i.codeChallengeMethod))throw new u("Invalid code_challenge_method");}).then(function(){var t=o.generateVerifier(i.codeVerifier),r={codeVerifier:t,redirectUri:i.redirectUri};return o.saveMeta(n,r),o.computeChallenge(t)}).then(function(n){var t=r.clone(i)||{};return r.extend(t,i,{codeChallenge:n}),t})):f.reject(new u("This browser doesn't support PKCE"))}function ut(n,t,i){return t=r.clone(t)||{},a(n,t).then(function(r){t.responseMode||(r.responseMode=r.responseType.includes("code")&&!r.pkce?"query":"fragment");var u=e.getOAuthUrls(n,r,i),f=u.authorizeUrl+b(r);h.set(s.REDIRECT_OAUTH_PARAMS_COOKIE_NAME,JSON.stringify({responseType:r.responseType,state:r.state,nonce:r.nonce,scopes:r.scopes,clientId:r.clientId,urls:u,ignoreSignature:r.ignoreSignature}));h.set(s.REDIRECT_NONCE_COOKIE_NAME,r.nonce);h.set(s.REDIRECT_STATE_COOKIE_NAME,r.state);n.token.getWithRedirect._setLocation(f)})}function ft(n,t){if(!e.isToken(t))return f.reject(new u("Renew must be passed a token with an array of scopes and an accessToken or idToken"));var i;return i=n.options.pkce?"code":t.accessToken?"token":"id_token",n.token.getWithoutPrompt({responseType:i,scopes:t.scopes},{authorizeUrl:t.authorizeUrl,userinfoUrl:t.userinfoUrl,issuer:t.issuer})}function et(n){var t=n.token.parseFromUrl._getHistory(),r=n.token.parseFromUrl._getDocument(),i=n.token.parseFromUrl._getLocation();t&&t.replaceState?t.replaceState(null,r.title,i.pathname+i.search):i.hash=""}function ot(n,t){var a=n.token.parseFromUrl._getLocation(),r=a.hash,o,i,l;if(t&&(r=t.substring(t.indexOf("#"))),!r)return f.reject(new u("Unable to parse a token from the url"));if(o=h.get(s.REDIRECT_OAUTH_PARAMS_COOKIE_NAME),!o)return f.reject(new u("Unable to retrieve OAuth redirect params cookie"));try{i=JSON.parse(o);l=i.urls;delete i.urls;h.delete(s.REDIRECT_OAUTH_PARAMS_COOKIE_NAME)}catch(n){return f.reject(new u("Unable to parse the "+s.REDIRECT_OAUTH_PARAMS_COOKIE_NAME+" cookie: "+n.message))}return f.resolve(e.hashToObject(r)).then(function(r){return t||et(n),c(n,i,r,l)})}function st(n,t){return t&&(e.isToken(t)||t.accessToken||t.userinfoUrl)?ht.httpRequest(n,{url:t.userinfoUrl,method:"GET",accessToken:t.accessToken}).fail(function(n){var t;if(n.xhr&&(401===n.xhr.status||403===n.xhr.status)&&(n.xhr.headers&&r.isFunction(n.xhr.headers.get)&&n.xhr.headers.get("WWW-Authenticate")?t=n.xhr.headers.get("WWW-Authenticate"):r.isFunction(n.xhr.getResponseHeader)&&(t=n.xhr.getResponseHeader("WWW-Authenticate")),t)){var f=t.match(/error="(.*?)"/)||[],e=t.match(/error_description="(.*?)"/)||[],i=f[1],u=e[1];i&&u&&(n=new k(i,u))}throw n;}):f.reject(new u("getUserInfo requires an access token object"))}var ht=i(3),r=i(0),e=i(10),f=i(5),ct=i(25),u=i(1),k=i(26),s=i(2),h=i(4).storage,o=i(27);n.exports={getToken:l,getWithoutPrompt:it,getWithPopup:rt,getWithRedirect:ut,parseFromUrl:ot,decodeToken:v,renewToken:ft,getUserInfo:st,verifyToken:y,handleOAuthResponse:c,prepareOauthParams:a}},function(n,t,i){function u(n,t){t=r.clone(t);var i={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};return delete t.use,crypto.subtle.importKey("jwk",t,i,!0,["verify"]).then(function(t){var u=n.split("."),f=r.stringToBuffer(u[0]+"."+u[1]),e=r.base64UrlDecode(u[2]),o=r.stringToBuffer(e);return crypto.subtle.verify(i,t,o,f)})}var r=i(0);n.exports={verifyToken:u}},function(n){function t(n,t){this.name="OAuthError";this.message=t;this.errorCode=n;this.errorSummary=t}t.prototype=new Error;n.exports=t},function(n,t,i){function e(n){return("0"+n.toString(16)).substr(-2)}function o(n){var t=new Uint8Array(Math.ceil(n/2));return crypto.getRandomValues(t),Array.from(t,e).join("").slice(0,n)}function s(n){var t=n||"";return t.length<f&&(t+=o(f-t.length)),encodeURIComponent(t).slice(0,b)}function h(n,t){n.options.storageUtil.getPKCEStorage().setStorage(t)}function c(n){return n.options.storageUtil.getPKCEStorage().getStorage()}function l(n){n.options.storageUtil.getPKCEStorage().clearStorage()}function a(n){var t=(new TextEncoder).encode(n);return crypto.subtle.digest("SHA-256",t).then(function(n){var t=String.fromCharCode.apply(null,new Uint8Array(n));return u.stringToBase64Url(t)})}function v(n){if(!n.clientId)throw new r("A clientId must be specified in the OktaAuth constructor to get a token");if(!n.redirectUri)throw new r("The redirectUri passed to /authorize must also be passed to /token");if(!n.authorizationCode)throw new r("An authorization code (returned from /authorize) must be passed to /token");if(!n.codeVerifier)throw new r('The "codeVerifier" (generated and saved by your app) must be passed to /token');}function y(n){var t=u.removeNils({client_id:n.clientId,redirect_uri:n.redirectUri,grant_type:"authorization_code",code:n.authorizationCode,code_verifier:n.codeVerifier});return u.toQueryParams(t).slice(1)}function p(n,t,i){v(t);var r=y(t);return w.httpRequest(n,{url:i.tokenUrl,method:"POST",args:r,withCredentials:!1,headers:{"Content-Type":"application/x-www-form-urlencoded"}})}var r=i(1),w=i(3),u=i(0),f=43,b=128;n.exports={DEFAULT_CODE_CHALLENGE_METHOD:"S256",generateVerifier:s,clearMeta:l,saveMeta:h,loadMeta:c,computeChallenge:a,getToken:p}},function(n,t,i){function l(n,t){return t.expiresAt-n.options.expireEarlySeconds}function b(n,t){return l(n,t)<=n.clock.now()}function k(n,t,i){n.emitter.emit("expired",t,i)}function a(n,t){n.emitter.emit("error",t)}function u(n,t){clearTimeout(n.expireTimeouts[t]);delete n.expireTimeouts[t];delete n.renewPromise[t]}function d(n){var i=n.expireTimeouts,t;for(t in i)i.hasOwnProperty(t)&&u(n,t)}function v(n,t,i,r){var e=l(t,r),o=1e3*Math.max(e-t.clock.now(),0),f;u(t,i);f=setTimeout(function(){k(t,i,r)},o);t.expireTimeouts[i]=f}function g(n,t,i){var r,u,f;try{r=i.getStorage()}catch(n){return void a(t,n)}for(u in r)r.hasOwnProperty(u)&&(f=r[u],v(n,t,u,f))}function y(n,t,i,u,f){var e=i.getStorage();if(!r.isObject(f)||!f.scopes||!f.expiresAt&&0!==f.expiresAt||!f.idToken&&!f.accessToken)throw new o("Token must be an Object with scopes, expiresAt, and an idToken or accessToken properties");e[u]=f;i.setStorage(e);v(n,t,u,f)}function f(n,t){return n.getStorage()[t]}function nt(n,t,i,r){return w.Promise(function(u){var o=f(i,r);return u(o&&b(t,o)?t.options.autoRenew?p(n,t,i,r):e(t,i,r):o)})}function e(n,t,i){u(n,i);var r=t.getStorage();delete r[i];t.setStorage(r)}function p(n,t,i,r){try{var s=f(i,r);if(!s)throw new o("The tokenManager has no token for the key: "+r);}catch(n){return w.reject(n)}return u(t,r),t.renewPromise[r]||(t.renewPromise[r]=n.token.renew(s).then(function(u){var e=u,o;return u instanceof Array&&(e=u.find(function(n){return n.idToken&&s.idToken||n.accessToken&&s.accessToken})),o=f(i,r),o?(y(n,t,i,r,e),t.emitter.emit("renewed",r,e,o),delete t.renewPromise[r],e):void 0}).fail(function(n){throw"OAuthError"===n.name&&(e(t,i,r),a(t,n)),n;})),t.renewPromise[r]}function tt(n,t){d(n);t.clearStorage()}function it(n,t){var u,f,i;t=r.extend({},ft,r.removeNils(t));"localStorage"!==t.storage||s.browserHasLocalStorage()||(r.warn("This browser doesn't support localStorage. Switching to sessionStorage."),t.storage="sessionStorage");"sessionStorage"!==t.storage||s.browserHasSessionStorage()||(r.warn("This browser doesn't support sessionStorage. Switching to cookie-based storage."),t.storage="cookie");switch(t.storage){case"localStorage":u=c(localStorage,h.TOKEN_STORAGE_NAME);break;case"sessionStorage":u=c(sessionStorage,h.TOKEN_STORAGE_NAME);break;case"cookie":u=c(s.getCookieStorage(t),h.TOKEN_STORAGE_NAME);break;default:throw new o("Unrecognized storage option");}f=ut.create(n,t);i={clock:f,options:t,emitter:new rt,expireTimeouts:{},renewPromise:{}};this.add=r.bind(y,this,n,i,u);this.get=r.bind(nt,this,n,i,u);this.remove=r.bind(e,this,i,u);this.clear=r.bind(tt,this,i,u);this.renew=r.bind(p,this,n,i,u);this.on=r.bind(i.emitter.on,i.emitter);this.off=r.bind(i.emitter.off,i.emitter);g(n,i,u)}var r=i(0),o=i(1),s=i(4),w=i(5),rt=i(29),h=i(2),c=i(6),ut=i(30),ft={autoRenew:!0,storage:"localStorage",expireEarlySeconds:30};n.exports=it},function(n){function t(){}t.prototype={on:function(n,t,i){var r=this.e||(this.e={});return(r[n]||(r[n]=[])).push({fn:t,ctx:i}),this},once:function(n,t,i){function r(){u.off(n,r);t.apply(i,arguments)}var u=this;return r._=t,this.on(n,r,i)},emit:function(n){var r=[].slice.call(arguments,1),i=((this.e||(this.e={}))[n]||[]).slice(),t=0,u=i.length;for(t;t<u;t++)i[t].fn.apply(i[t].ctx,r);return this},off:function(n,t){var u=this.e||(this.e={}),r=u[n],f=[],i,e;if(r&&t)for(i=0,e=r.length;i<e;i++)r[i].fn!==t&&r[i].fn._!==t&&f.push(r[i]);return f.length?u[n]=f:delete u[n],this}};n.exports=t},function(n,t,i){function r(n){this.localOffset=parseInt(n||0)}i(0).extend(r.prototype,{now:function(){return(Date.now()+this.localOffset)/1e3}});r.create=function(){return new r(0)};n.exports=r}])}),function(){"use strict";function e(n){n.fn.swiper=function(i){var r;return n(this).each(function(){var n=new t(this,i);r||(r=n)}),r}}var n,t=function(r,u){function d(n){return Math.floor(n)}function ot(){f.autoplayTimeoutId=setTimeout(function(){f.params.loop?(f.fixLoop(),f._slideNext(),f.emit("onAutoplay",f)):f.isEnd?u.autoplayStopOnLast?f.stopAutoplay():(f._slideTo(0),f.emit("onAutoplay",f)):(f._slideNext(),f.emit("onAutoplay",f))},f.params.autoplay)}function st(t,i){var r=n(t.target),u;if(!r.is(i))if(typeof i=="string")r=r.parents(i);else if(i.nodeType)return r.parents().each(function(n,t){t===i&&(u=i)}),u?i:undefined;return r.length===0?undefined:r[0]}function lt(n,t){t=t||{};var r=window.MutationObserver||window.WebkitMutationObserver,i=new r(function(n){n.forEach(function(n){f.onResize(!0);f.emit("onObserverUpdate",f,n)})});i.observe(n,{attributes:typeof t.attributes=="undefined"?!0:t.attributes,childList:typeof t.childList=="undefined"?!0:t.childList,characterData:typeof t.characterData=="undefined"?!0:t.characterData});f.observers.push(i)}function wt(n){var t,o,s,e,r;if((n.originalEvent&&(n=n.originalEvent),t=n.keyCode||n.charCode,!f.params.allowSwipeToNext&&(f.isHorizontal()&&t===39||!f.isHorizontal()&&t===40))||!f.params.allowSwipeToPrev&&(f.isHorizontal()&&t===37||!f.isHorizontal()&&t===38))return!1;if(!n.shiftKey&&!n.altKey&&!n.ctrlKey&&!n.metaKey&&(!document.activeElement||!document.activeElement.nodeName||document.activeElement.nodeName.toLowerCase()!=="input"&&document.activeElement.nodeName.toLowerCase()!=="textarea")){if(t===37||t===39||t===38||t===40){if(o=!1,f.container.parents(".swiper-slide").length>0&&f.container.parents(".swiper-slide-active").length===0)return;var u={left:window.pageXOffset,top:window.pageYOffset},h=window.innerWidth,c=window.innerHeight,i=f.container.offset();for(f.rtl&&(i.left=i.left-f.container[0].scrollLeft),s=[[i.left,i.top],[i.left+f.width,i.top],[i.left,i.top+f.height],[i.left+f.width,i.top+f.height]],e=0;e<s.length;e++)r=s[e],r[0]>=u.left&&r[0]<=u.left+h&&r[1]>=u.top&&r[1]<=u.top+c&&(o=!0);if(!o)return}f.isHorizontal()?((t===37||t===39)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),(t===39&&!f.rtl||t===37&&f.rtl)&&f.slideNext(),(t===37&&!f.rtl||t===39&&f.rtl)&&f.slidePrev()):((t===38||t===40)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),t===40&&f.slideNext(),t===38&&f.slidePrev())}}function bt(n){n.originalEvent&&(n=n.originalEvent);var u=f.mousewheel.event,t=0,r=f.rtl?-1:1;if(u==="mousewheel")if(f.params.mousewheelForceToAxis)if(f.isHorizontal())if(Math.abs(n.wheelDeltaX)>Math.abs(n.wheelDeltaY))t=n.wheelDeltaX*r;else return;else if(Math.abs(n.wheelDeltaY)>Math.abs(n.wheelDeltaX))t=n.wheelDeltaY;else return;else t=Math.abs(n.wheelDeltaX)>Math.abs(n.wheelDeltaY)?-n.wheelDeltaX*r:-n.wheelDeltaY;else if(u==="DOMMouseScroll")t=-n.detail;else if(u==="wheel")if(f.params.mousewheelForceToAxis)if(f.isHorizontal())if(Math.abs(n.deltaX)>Math.abs(n.deltaY))t=-n.deltaX*r;else return;else if(Math.abs(n.deltaY)>Math.abs(n.deltaX))t=-n.deltaY;else return;else t=Math.abs(n.deltaX)>Math.abs(n.deltaY)?-n.deltaX*r:-n.deltaY;if(t!==0){if(f.params.mousewheelInvert&&(t=-t),f.params.freeMode){var i=f.getWrapperTranslate()+t*f.params.mousewheelSensitivity,e=f.isBeginning,o=f.isEnd;if(i>=f.minTranslate()&&(i=f.minTranslate()),i<=f.maxTranslate()&&(i=f.maxTranslate()),f.setWrapperTransition(0),f.setWrapperTranslate(i),f.updateProgress(),f.updateActiveIndex(),(!e&&f.isBeginning||!o&&f.isEnd)&&f.updateClasses(),f.params.freeModeSticky?(clearTimeout(f.mousewheel.timeout),f.mousewheel.timeout=setTimeout(function(){f.slideReset()},300)):f.params.lazyLoading&&f.lazy&&f.lazy.load(),i===0||i===f.maxTranslate())return}else{if((new window.Date).getTime()-f.mousewheel.lastScrollTime>60)if(t<0)if(f.isEnd&&!f.params.loop||f.animating){if(f.params.mousewheelReleaseOnEdges)return!0}else f.slideNext();else if(f.isBeginning&&!f.params.loop||f.animating){if(f.params.mousewheelReleaseOnEdges)return!0}else f.slidePrev();f.mousewheel.lastScrollTime=(new window.Date).getTime()}return f.params.autoplay&&f.stopAutoplay(),n.preventDefault?n.preventDefault():n.returnValue=!1,!1}}function kt(t,i){t=n(t);var e,r,u,o=f.rtl?-1:1;e=t.attr("data-swiper-parallax")||"0";r=t.attr("data-swiper-parallax-x");u=t.attr("data-swiper-parallax-y");r||u?(r=r||"0",u=u||"0"):f.isHorizontal()?(r=e,u="0"):(u=e,r="0");r=r.indexOf("%")>=0?parseInt(r,10)*i*o+"%":r*i*o+"px";u=u.indexOf("%")>=0?parseInt(u,10)*i+"%":u*i+"px";t.transform("translate3d("+r+", "+u+",0px)")}function yt(n){return n.indexOf("on")!==0&&(n=n[0]!==n[0].toUpperCase()?"on"+n[0].toUpperCase()+n.substring(1):"on"+n),n}var y,pt,p,o,ft,h,k,f,et,v,rt,ut,at,vt;if(!(this instanceof t))return new t(r,u);y={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,hashnav:!1,breakpoints:undefined,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:undefined,controlInverse:!1,controlBy:"slide",allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0};pt=u&&u.virtualTranslate;u=u||{};p={};for(o in u)if(typeof u[o]!="object"||u[o]===null||u[o].nodeType||u[o]===window||u[o]===document||typeof i!="undefined"&&u[o]instanceof i||typeof jQuery!="undefined"&&u[o]instanceof jQuery)p[o]=u[o];else{p[o]={};for(ft in u[o])p[o][ft]=u[o][ft]}for(h in y)if(typeof u[h]=="undefined")u[h]=y[h];else if(typeof u[h]=="object")for(k in y[h])typeof u[h][k]=="undefined"&&(u[h][k]=y[h][k]);if((f=this,f.params=u,f.originalParams=p,f.classNames=[],typeof n!="undefined"&&typeof i!="undefined"&&(n=i),typeof n!="undefined"||(n=typeof i=="undefined"?window.Dom7||window.Zepto||window.jQuery:i,n))&&(f.$=n,f.currentBreakpoint=undefined,f.getActiveBreakpoint=function(){var i,t,n,r;if(!f.params.breakpoints)return!1;i=!1;t=[];for(n in f.params.breakpoints)f.params.breakpoints.hasOwnProperty(n)&&t.push(n);for(t.sort(function(n,t){return parseInt(n,10)>parseInt(t,10)}),r=0;r<t.length;r++)n=t[r],n>=window.innerWidth&&!i&&(i=n);return i||"max"},f.setBreakpoint=function(){var n=f.getActiveBreakpoint(),t,r,i;if(n&&f.currentBreakpoint!==n){t=n in f.params.breakpoints?f.params.breakpoints[n]:f.originalParams;r=f.params.loop&&t.slidesPerView!==f.params.slidesPerView;for(i in t)f.params[i]=t[i];f.currentBreakpoint=n;r&&f.destroyLoop&&f.reLoop(!0)}},f.params.breakpoints&&f.setBreakpoint(),f.container=n(r),f.container.length!==0)){if(f.container.length>1)return et=[],f.container.each(function(){var n=this;et.push(new t(this,u))}),et;f.container[0].swiper=f;f.container.data("swiper",f);f.classNames.push("swiper-container-"+f.params.direction);f.params.freeMode&&f.classNames.push("swiper-container-free-mode");f.support.flexbox||(f.classNames.push("swiper-container-no-flexbox"),f.params.slidesPerColumn=1);f.params.autoHeight&&f.classNames.push("swiper-container-autoheight");(f.params.parallax||f.params.watchSlidesVisibility)&&(f.params.watchSlidesProgress=!0);["cube","coverflow","flip"].indexOf(f.params.effect)>=0&&(f.support.transforms3d?(f.params.watchSlidesProgress=!0,f.classNames.push("swiper-container-3d")):f.params.effect="slide");f.params.effect!=="slide"&&f.classNames.push("swiper-container-"+f.params.effect);f.params.effect==="cube"&&(f.params.resistanceRatio=0,f.params.slidesPerView=1,f.params.slidesPerColumn=1,f.params.slidesPerGroup=1,f.params.centeredSlides=!1,f.params.spaceBetween=0,f.params.virtualTranslate=!0,f.params.setWrapperSize=!1);(f.params.effect==="fade"||f.params.effect==="flip")&&(f.params.slidesPerView=1,f.params.slidesPerColumn=1,f.params.slidesPerGroup=1,f.params.watchSlidesProgress=!0,f.params.spaceBetween=0,f.params.setWrapperSize=!1,typeof pt=="undefined"&&(f.params.virtualTranslate=!0));f.params.grabCursor&&f.support.touch&&(f.params.grabCursor=!1);f.wrapper=f.container.children("."+f.params.wrapperClass);f.params.pagination&&(f.paginationContainer=n(f.params.pagination),f.params.uniqueNavElements&&typeof f.params.pagination=="string"&&f.paginationContainer.length>1&&f.container.find(f.params.pagination).length===1&&(f.paginationContainer=f.container.find(f.params.pagination)),f.params.paginationType==="bullets"&&f.params.paginationClickable?f.paginationContainer.addClass("swiper-pagination-clickable"):f.params.paginationClickable=!1,f.paginationContainer.addClass("swiper-pagination-"+f.params.paginationType));(f.params.nextButton||f.params.prevButton)&&(f.params.nextButton&&(f.nextButton=n(f.params.nextButton),f.params.uniqueNavElements&&typeof f.params.nextButton=="string"&&f.nextButton.length>1&&f.container.find(f.params.nextButton).length===1&&(f.nextButton=f.container.find(f.params.nextButton))),f.params.prevButton&&(f.prevButton=n(f.params.prevButton),f.params.uniqueNavElements&&typeof f.params.prevButton=="string"&&f.prevButton.length>1&&f.container.find(f.params.prevButton).length===1&&(f.prevButton=f.container.find(f.params.prevButton))));f.isHorizontal=function(){return f.params.direction==="horizontal"};f.rtl=f.isHorizontal()&&(f.container[0].dir.toLowerCase()==="rtl"||f.container.css("direction")==="rtl");f.rtl&&f.classNames.push("swiper-container-rtl");f.rtl&&(f.wrongRTL=f.wrapper.css("display")==="-webkit-box");f.params.slidesPerColumn>1&&f.classNames.push("swiper-container-multirow");f.device.android&&f.classNames.push("swiper-container-android");f.container.addClass(f.classNames.join(" "));f.translate=0;f.progress=0;f.velocity=0;f.lockSwipeToNext=function(){f.params.allowSwipeToNext=!1};f.lockSwipeToPrev=function(){f.params.allowSwipeToPrev=!1};f.lockSwipes=function(){f.params.allowSwipeToNext=f.params.allowSwipeToPrev=!1};f.unlockSwipeToNext=function(){f.params.allowSwipeToNext=!0};f.unlockSwipeToPrev=function(){f.params.allowSwipeToPrev=!0};f.unlockSwipes=function(){f.params.allowSwipeToNext=f.params.allowSwipeToPrev=!0};f.params.grabCursor&&(f.container[0].style.cursor="move",f.container[0].style.cursor="-webkit-grab",f.container[0].style.cursor="-moz-grab",f.container[0].style.cursor="grab");f.imagesToLoad=[];f.imagesLoaded=0;f.loadImage=function(n,t,i,r,u){function e(){u&&u()}var f;n.complete&&r?e():t?(f=new window.Image,f.onload=e,f.onerror=e,i&&(f.srcset=i),t&&(f.src=t)):e()};f.preloadImages=function(){function t(){typeof f!="undefined"&&f!==null&&(f.imagesLoaded!==undefined&&f.imagesLoaded++,f.imagesLoaded===f.imagesToLoad.length&&(f.params.updateOnImagesReady&&f.update(),f.emit("onImagesReady",f)))}f.imagesToLoad=f.container.find("img");for(var n=0;n<f.imagesToLoad.length;n++)f.loadImage(f.imagesToLoad[n],f.imagesToLoad[n].currentSrc||f.imagesToLoad[n].getAttribute("src"),f.imagesToLoad[n].srcset||f.imagesToLoad[n].getAttribute("srcset"),!0,t)};f.autoplayTimeoutId=undefined;f.autoplaying=!1;f.autoplayPaused=!1;f.startAutoplay=function(){if(typeof f.autoplayTimeoutId!="undefined"||!f.params.autoplay||f.autoplaying)return!1;f.autoplaying=!0;f.emit("onAutoplayStart",f);ot()};f.stopAutoplay=function(){f.autoplayTimeoutId&&(f.autoplayTimeoutId&&clearTimeout(f.autoplayTimeoutId),f.autoplaying=!1,f.autoplayTimeoutId=undefined,f.emit("onAutoplayStop",f))};f.pauseAutoplay=function(n){f.autoplayPaused||(f.autoplayTimeoutId&&clearTimeout(f.autoplayTimeoutId),f.autoplayPaused=!0,n===0?(f.autoplayPaused=!1,ot()):f.wrapper.transitionEnd(function(){f&&(f.autoplayPaused=!1,f.autoplaying?ot():f.stopAutoplay())}))};f.minTranslate=function(){return-f.snapGrid[0]};f.maxTranslate=function(){return-f.snapGrid[f.snapGrid.length-1]};f.updateAutoHeight=function(){var t=f.slides.eq(f.activeIndex)[0],n;typeof t!="undefined"&&(n=t.offsetHeight,n&&f.wrapper.css("height",n+"px"))};f.updateContainerSize=function(){var n,t;(n=typeof f.params.width!="undefined"?f.params.width:f.container[0].clientWidth,t=typeof f.params.height!="undefined"?f.params.height:f.container[0].clientHeight,(n!==0||!f.isHorizontal())&&(t!==0||f.isHorizontal()))&&(n=n-parseInt(f.container.css("padding-left"),10)-parseInt(f.container.css("padding-right"),10),t=t-parseInt(f.container.css("padding-top"),10)-parseInt(f.container.css("padding-bottom"),10),f.width=n,f.height=t,f.size=f.isHorizontal()?f.width:f.height)};f.updateSlidesSize=function(){var o,h,c,e,u,l;f.slides=f.wrapper.children("."+f.params.slideClass);f.snapGrid=[];f.slidesGrid=[];f.slidesSizesGrid=[];var i=f.params.spaceBetween,r=-f.params.slidesOffsetBefore,n,y=0,v=0;if(typeof f.size!="undefined"){typeof i=="string"&&i.indexOf("%")>=0&&(i=parseFloat(i.replace("%",""))/100*f.size);f.virtualSize=-i;f.rtl?f.slides.css({marginLeft:"",marginTop:""}):f.slides.css({marginRight:"",marginBottom:""});f.params.slidesPerColumn>1&&(o=Math.floor(f.slides.length/f.params.slidesPerColumn)===f.slides.length/f.params.slidesPerColumn?f.slides.length:Math.ceil(f.slides.length/f.params.slidesPerColumn)*f.params.slidesPerColumn,f.params.slidesPerView!=="auto"&&f.params.slidesPerColumnFill==="row"&&(o=Math.max(o,f.params.slidesPerView*f.params.slidesPerColumn)));var t,s=f.params.slidesPerColumn,a=o/s,p=a-(f.params.slidesPerColumn*a-f.slides.length);for(n=0;n<f.slides.length;n++)(t=0,h=f.slides.eq(n),f.params.slidesPerColumn>1&&(f.params.slidesPerColumnFill==="column"?(e=Math.floor(n/s),u=n-e*s,(e>p||e===p&&u===s-1)&&++u>=s&&(u=0,e++),c=e+u*o/s,h.css({"-webkit-box-ordinal-group":c,"-moz-box-ordinal-group":c,"-ms-flex-order":c,"-webkit-order":c,order:c})):(u=Math.floor(n/a),e=n-u*a),h.css({"margin-top":u!==0&&f.params.spaceBetween&&f.params.spaceBetween+"px"}).attr("data-swiper-column",e).attr("data-swiper-row",u)),h.css("display")!=="none")&&(f.params.slidesPerView==="auto"?(t=f.isHorizontal()?h.outerWidth(!0):h.outerHeight(!0),f.params.roundLengths&&(t=d(t))):(t=(f.size-(f.params.slidesPerView-1)*i)/f.params.slidesPerView,f.params.roundLengths&&(t=d(t)),f.isHorizontal()?f.slides[n].style.width=t+"px":f.slides[n].style.height=t+"px"),f.slides[n].swiperSlideSize=t,f.slidesSizesGrid.push(t),f.params.centeredSlides?(r=r+t/2+y/2+i,n===0&&(r=r-f.size/2-i),Math.abs(r)<1/1e3&&(r=0),v%f.params.slidesPerGroup==0&&f.snapGrid.push(r),f.slidesGrid.push(r)):(v%f.params.slidesPerGroup==0&&f.snapGrid.push(r),f.slidesGrid.push(r),r=r+t+i),f.virtualSize+=t+i,y=t,v++);if(f.virtualSize=Math.max(f.virtualSize,f.size)+f.params.slidesOffsetAfter,f.rtl&&f.wrongRTL&&(f.params.effect==="slide"||f.params.effect==="coverflow")&&f.wrapper.css({width:f.virtualSize+f.params.spaceBetween+"px"}),(!f.support.flexbox||f.params.setWrapperSize)&&(f.isHorizontal()?f.wrapper.css({width:f.virtualSize+f.params.spaceBetween+"px"}):f.wrapper.css({height:f.virtualSize+f.params.spaceBetween+"px"})),f.params.slidesPerColumn>1&&(f.virtualSize=(t+f.params.spaceBetween)*o,f.virtualSize=Math.ceil(f.virtualSize/f.params.slidesPerColumn)-f.params.spaceBetween,f.wrapper.css({width:f.virtualSize+f.params.spaceBetween+"px"}),f.params.centeredSlides)){for(l=[],n=0;n<f.snapGrid.length;n++)f.snapGrid[n]<f.virtualSize+f.snapGrid[0]&&l.push(f.snapGrid[n]);f.snapGrid=l}if(!f.params.centeredSlides){for(l=[],n=0;n<f.snapGrid.length;n++)f.snapGrid[n]<=f.virtualSize-f.size&&l.push(f.snapGrid[n]);f.snapGrid=l;Math.floor(f.virtualSize-f.size)-Math.floor(f.snapGrid[f.snapGrid.length-1])>1&&f.snapGrid.push(f.virtualSize-f.size)}f.snapGrid.length===0&&(f.snapGrid=[0]);f.params.spaceBetween!==0&&(f.isHorizontal()?f.rtl?f.slides.css({marginLeft:i+"px"}):f.slides.css({marginRight:i+"px"}):f.slides.css({marginBottom:i+"px"}));f.params.watchSlidesProgress&&f.updateSlidesOffset()}};f.updateSlidesOffset=function(){for(var n=0;n<f.slides.length;n++)f.slides[n].swiperSlideOffset=f.isHorizontal()?f.slides[n].offsetLeft:f.slides[n].offsetTop};f.updateSlidesProgress=function(n){var r,t,i,e;if(typeof n=="undefined"&&(n=f.translate||0),f.slides.length!==0)for(typeof f.slides[0].swiperSlideOffset=="undefined"&&f.updateSlidesOffset(),r=-n,f.rtl&&(r=n),f.slides.removeClass(f.params.slideVisibleClass),t=0;t<f.slides.length;t++){if(i=f.slides[t],e=(r-i.swiperSlideOffset)/(i.swiperSlideSize+f.params.spaceBetween),f.params.watchSlidesVisibility){var u=-(r-i.swiperSlideOffset),o=u+f.slidesSizesGrid[t],s=u>=0&&u<f.size||o>0&&o<=f.size||u<=0&&o>=f.size;s&&f.slides.eq(t).addClass(f.params.slideVisibleClass)}i.progress=f.rtl?-e:e}};f.updateProgress=function(n){typeof n=="undefined"&&(n=f.translate||0);var t=f.maxTranslate()-f.minTranslate(),i=f.isBeginning,r=f.isEnd;t===0?(f.progress=0,f.isBeginning=f.isEnd=!0):(f.progress=(n-f.minTranslate())/t,f.isBeginning=f.progress<=0,f.isEnd=f.progress>=1);f.isBeginning&&!i&&f.emit("onReachBeginning",f);f.isEnd&&!r&&f.emit("onReachEnd",f);f.params.watchSlidesProgress&&f.updateSlidesProgress(n);f.emit("onProgress",f,f.progress)};f.updateActiveIndex=function(){for(var i=f.rtl?f.translate:-f.translate,t,r,n=0;n<f.slidesGrid.length;n++)typeof f.slidesGrid[n+1]!="undefined"?i>=f.slidesGrid[n]&&i<f.slidesGrid[n+1]-(f.slidesGrid[n+1]-f.slidesGrid[n])/2?t=n:i>=f.slidesGrid[n]&&i<f.slidesGrid[n+1]&&(t=n+1):i>=f.slidesGrid[n]&&(t=n);((t<0||typeof t=="undefined")&&(t=0),r=Math.floor(t/f.params.slidesPerGroup),r>=f.snapGrid.length&&(r=f.snapGrid.length-1),t!==f.activeIndex)&&(f.snapIndex=r,f.previousIndex=f.activeIndex,f.activeIndex=t,f.updateClasses())};f.updateClasses=function(){var r,u,e,t,i;if(f.slides.removeClass(f.params.slideActiveClass+" "+f.params.slideNextClass+" "+f.params.slidePrevClass),r=f.slides.eq(f.activeIndex),r.addClass(f.params.slideActiveClass),u=r.next("."+f.params.slideClass).addClass(f.params.slideNextClass),f.params.loop&&u.length===0&&f.slides.eq(0).addClass(f.params.slideNextClass),e=r.prev("."+f.params.slideClass).addClass(f.params.slidePrevClass),f.params.loop&&e.length===0&&f.slides.eq(-1).addClass(f.params.slidePrevClass),f.paginationContainer&&f.paginationContainer.length>0){if(i=f.params.loop?Math.ceil((f.slides.length-f.loopedSlides*2)/f.params.slidesPerGroup):f.snapGrid.length,f.params.loop?(t=Math.ceil((f.activeIndex-f.loopedSlides)/f.params.slidesPerGroup),t>f.slides.length-1-f.loopedSlides*2&&(t=t-(f.slides.length-f.loopedSlides*2)),t>i-1&&(t=t-i),t<0&&f.params.paginationType!=="bullets"&&(t=i+t)):t=typeof f.snapIndex!="undefined"?f.snapIndex:f.activeIndex||0,f.params.paginationType==="bullets"&&f.bullets&&f.bullets.length>0&&(f.bullets.removeClass(f.params.bulletActiveClass),f.paginationContainer.length>1?f.bullets.each(function(){n(this).index()===t&&n(this).addClass(f.params.bulletActiveClass)}):f.bullets.eq(t).addClass(f.params.bulletActiveClass)),f.params.paginationType==="fraction"&&(f.paginationContainer.find("."+f.params.paginationCurrentClass).text(t+1),f.paginationContainer.find("."+f.params.paginationTotalClass).text(i)),f.params.paginationType==="progress"){var o=(t+1)/i,s=o,h=1;f.isHorizontal()||(h=o,s=1);f.paginationContainer.find("."+f.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+s+") scaleY("+h+")").transition(f.params.speed)}f.params.paginationType==="custom"&&f.params.paginationCustomRender&&(f.paginationContainer.html(f.params.paginationCustomRender(f,t+1,i)),f.emit("onPaginationRendered",f,f.paginationContainer[0]))}f.params.loop||(f.params.prevButton&&f.prevButton&&f.prevButton.length>0&&(f.isBeginning?(f.prevButton.addClass(f.params.buttonDisabledClass),f.params.a11y&&f.a11y&&f.a11y.disable(f.prevButton)):(f.prevButton.removeClass(f.params.buttonDisabledClass),f.params.a11y&&f.a11y&&f.a11y.enable(f.prevButton))),f.params.nextButton&&f.nextButton&&f.nextButton.length>0&&(f.isEnd?(f.nextButton.addClass(f.params.buttonDisabledClass),f.params.a11y&&f.a11y&&f.a11y.disable(f.nextButton)):(f.nextButton.removeClass(f.params.buttonDisabledClass),f.params.a11y&&f.a11y&&f.a11y.enable(f.nextButton))))};f.updatePagination=function(){var n,i,t;if(f.params.pagination&&f.paginationContainer&&f.paginationContainer.length>0){if(n="",f.params.paginationType==="bullets"){for(i=f.params.loop?Math.ceil((f.slides.length-f.loopedSlides*2)/f.params.slidesPerGroup):f.snapGrid.length,t=0;t<i;t++)n+=f.params.paginationBulletRender?f.params.paginationBulletRender(t,f.params.bulletClass):"<"+f.params.paginationElement+' class="'+f.params.bulletClass+'"><\/'+f.params.paginationElement+">";f.paginationContainer.html(n);f.bullets=f.paginationContainer.find("."+f.params.bulletClass);f.params.paginationClickable&&f.params.a11y&&f.a11y&&f.a11y.initPagination()}f.params.paginationType==="fraction"&&(n=f.params.paginationFractionRender?f.params.paginationFractionRender(f,f.params.paginationCurrentClass,f.params.paginationTotalClass):'<span class="'+f.params.paginationCurrentClass+'"><\/span> / <span class="'+f.params.paginationTotalClass+'"><\/span>',f.paginationContainer.html(n));f.params.paginationType==="progress"&&(n=f.params.paginationProgressRender?f.params.paginationProgressRender(f,f.params.paginationProgressbarClass):'<span class="'+f.params.paginationProgressbarClass+'"><\/span>',f.paginationContainer.html(n));f.params.paginationType!=="custom"&&f.emit("onPaginationRendered",f,f.paginationContainer[0])}};f.update=function(n){function t(){r=Math.min(Math.max(f.translate,f.maxTranslate()),f.minTranslate());f.setWrapperTranslate(r);f.updateActiveIndex();f.updateClasses()}if(f.updateContainerSize(),f.updateSlidesSize(),f.updateProgress(),f.updatePagination(),f.updateClasses(),f.params.scrollbar&&f.scrollbar&&f.scrollbar.set(),n){var i,r;f.controller&&f.controller.spline&&(f.controller.spline=undefined);f.params.freeMode?(t(),f.params.autoHeight&&f.updateAutoHeight()):(i=(f.params.slidesPerView==="auto"||f.params.slidesPerView>1)&&f.isEnd&&!f.params.centeredSlides?f.slideTo(f.slides.length-1,0,!1,!0):f.slideTo(f.activeIndex,0,!1,!0),i||t())}else f.params.autoHeight&&f.updateAutoHeight()};f.onResize=function(n){var i,r,t,u;f.params.breakpoints&&f.setBreakpoint();i=f.params.allowSwipeToPrev;r=f.params.allowSwipeToNext;f.params.allowSwipeToPrev=f.params.allowSwipeToNext=!0;f.updateContainerSize();f.updateSlidesSize();(f.params.slidesPerView==="auto"||f.params.freeMode||n)&&f.updatePagination();f.params.scrollbar&&f.scrollbar&&f.scrollbar.set();f.controller&&f.controller.spline&&(f.controller.spline=undefined);t=!1;f.params.freeMode?(u=Math.min(Math.max(f.translate,f.maxTranslate()),f.minTranslate()),f.setWrapperTranslate(u),f.updateActiveIndex(),f.updateClasses(),f.params.autoHeight&&f.updateAutoHeight()):(f.updateClasses(),t=(f.params.slidesPerView==="auto"||f.params.slidesPerView>1)&&f.isEnd&&!f.params.centeredSlides?f.slideTo(f.slides.length-1,0,!1,!0):f.slideTo(f.activeIndex,0,!1,!0));f.params.lazyLoading&&!t&&f.lazy&&f.lazy.load();f.params.allowSwipeToPrev=i;f.params.allowSwipeToNext=r};v=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?v=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(v=["MSPointerDown","MSPointerMove","MSPointerUp"]);f.touchEvents={start:f.support.touch||!f.params.simulateTouch?"touchstart":v[0],move:f.support.touch||!f.params.simulateTouch?"touchmove":v[1],end:f.support.touch||!f.params.simulateTouch?"touchend":v[2]};(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&(f.params.touchEventsTarget==="container"?f.container:f.wrapper).addClass("swiper-wp8-"+f.params.direction);f.initEvents=function(n){var r=n?"off":"on",t=n?"removeEventListener":"addEventListener",i=f.params.touchEventsTarget==="container"?f.container[0]:f.wrapper[0],o=f.support.touch?i:document,e=f.params.nested?!0:!1;f.browser.ie?(i[t](f.touchEvents.start,f.onTouchStart,!1),o[t](f.touchEvents.move,f.onTouchMove,e),o[t](f.touchEvents.end,f.onTouchEnd,!1)):(f.support.touch&&(i[t](f.touchEvents.start,f.onTouchStart,!1),i[t](f.touchEvents.move,f.onTouchMove,e),i[t](f.touchEvents.end,f.onTouchEnd,!1)),!u.simulateTouch||f.device.ios||f.device.android||(i[t]("mousedown",f.onTouchStart,!1),document[t]("mousemove",f.onTouchMove,e),document[t]("mouseup",f.onTouchEnd,!1)));window[t]("resize",f.onResize);f.params.nextButton&&f.nextButton&&f.nextButton.length>0&&(f.nextButton[r]("click",f.onClickNext),f.params.a11y&&f.a11y&&f.nextButton[r]("keydown",f.a11y.onEnterKey));f.params.prevButton&&f.prevButton&&f.prevButton.length>0&&(f.prevButton[r]("click",f.onClickPrev),f.params.a11y&&f.a11y&&f.prevButton[r]("keydown",f.a11y.onEnterKey));f.params.pagination&&f.params.paginationClickable&&(f.paginationContainer[r]("click","."+f.params.bulletClass,f.onClickIndex),f.params.a11y&&f.a11y&&f.paginationContainer[r]("keydown","."+f.params.bulletClass,f.a11y.onEnterKey));(f.params.preventClicks||f.params.preventClicksPropagation)&&i[t]("click",f.preventClicks,!0)};f.attachEvents=function(){f.initEvents()};f.detachEvents=function(){f.initEvents(!0)};f.allowClick=!0;f.preventClicks=function(n){f.allowClick||(f.params.preventClicks&&n.preventDefault(),f.params.preventClicksPropagation&&f.animating&&(n.stopPropagation(),n.stopImmediatePropagation()))};f.onClickNext=function(n){(n.preventDefault(),!f.isEnd||f.params.loop)&&f.slideNext()};f.onClickPrev=function(n){(n.preventDefault(),!f.isBeginning||f.params.loop)&&f.slidePrev()};f.onClickIndex=function(t){t.preventDefault();var i=n(this).index()*f.params.slidesPerGroup;f.params.loop&&(i=i+f.loopedSlides);f.slideTo(i)};f.updateClickedSlide=function(t){var r=st(t,"."+f.params.slideClass),o=!1,u,i,e;if(r)for(u=0;u<f.slides.length;u++)f.slides[u]===r&&(o=!0);if(r&&o)f.clickedSlide=r,f.clickedIndex=n(r).index();else{f.clickedSlide=undefined;f.clickedIndex=undefined;return}if(f.params.slideToClickedSlide&&f.clickedIndex!==undefined&&f.clickedIndex!==f.activeIndex)if(i=f.clickedIndex,f.params.loop){if(f.animating)return;e=n(f.clickedSlide).attr("data-swiper-slide-index");f.params.centeredSlides?i<f.loopedSlides-f.params.slidesPerView/2||i>f.slides.length-f.loopedSlides+f.params.slidesPerView/2?(f.fixLoop(),i=f.wrapper.children("."+f.params.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){f.slideTo(i)},0)):f.slideTo(i):i>f.slides.length-f.params.slidesPerView?(f.fixLoop(),i=f.wrapper.children("."+f.params.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){f.slideTo(i)},0)):f.slideTo(i)}else f.slideTo(i)};var c,l,g,nt,w,e,s,tt,ht="input, select, textarea, button",ct=Date.now(),b,a=[],it;if(f.animating=!1,f.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0},f.onTouchStart=function(t){var i,u,r;if(t.originalEvent&&(t=t.originalEvent),rt=t.type==="touchstart",rt||!("which"in t)||t.which!==3){if(f.params.noSwiping&&st(t,"."+f.params.noSwipingClass)){f.allowClick=!0;return}(!f.params.swipeHandler||st(t,f.params.swipeHandler))&&((i=f.touches.currentX=t.type==="touchstart"?t.targetTouches[0].pageX:t.pageX,u=f.touches.currentY=t.type==="touchstart"?t.targetTouches[0].pageY:t.pageY,f.device.ios&&f.params.iOSEdgeSwipeDetection&&i<=f.params.iOSEdgeSwipeThreshold)||(c=!0,l=!1,g=!0,w=undefined,ut=undefined,f.touches.startX=i,f.touches.startY=u,nt=Date.now(),f.allowClick=!0,f.updateContainerSize(),f.swipeDirection=undefined,f.params.threshold>0&&(tt=!1),t.type!=="touchstart"&&(r=!0,n(t.target).is(ht)&&(r=!1),document.activeElement&&n(document.activeElement).is(ht)&&document.activeElement.blur(),r&&t.preventDefault()),f.emit("onTouchStart",f,t)))}},f.onTouchMove=function(t){var o,i,r;if(t.originalEvent&&(t=t.originalEvent),!rt||t.type!=="mousemove"){if(t.preventedByNestedSwiper){f.touches.startX=t.type==="touchmove"?t.targetTouches[0].pageX:t.pageX;f.touches.startY=t.type==="touchmove"?t.targetTouches[0].pageY:t.pageY;return}if(f.params.onlyExternal){f.allowClick=!1;c&&(f.touches.startX=f.touches.currentX=t.type==="touchmove"?t.targetTouches[0].pageX:t.pageX,f.touches.startY=f.touches.currentY=t.type==="touchmove"?t.targetTouches[0].pageY:t.pageY,nt=Date.now());return}if(rt&&document.activeElement&&t.target===document.activeElement&&n(t.target).is(ht)){l=!0;f.allowClick=!1;return}if((g&&f.emit("onTouchMove",f,t),!t.targetTouches||!(t.targetTouches.length>1))&&(f.touches.currentX=t.type==="touchmove"?t.targetTouches[0].pageX:t.pageX,f.touches.currentY=t.type==="touchmove"?t.targetTouches[0].pageY:t.pageY,typeof w=="undefined"&&(o=Math.atan2(Math.abs(f.touches.currentY-f.touches.startY),Math.abs(f.touches.currentX-f.touches.startX))*180/Math.PI,w=f.isHorizontal()?o>f.params.touchAngle:90-o>f.params.touchAngle),w&&f.emit("onTouchMoveOpposite",f,t),typeof ut=="undefined"&&f.browser.ieTouch&&(f.touches.currentX!==f.touches.startX||f.touches.currentY!==f.touches.startY)&&(ut=!0),c)){if(w){c=!1;return}if((ut||!f.browser.ieTouch)&&(f.allowClick=!1,f.emit("onSliderMove",f,t),t.preventDefault(),f.params.touchMoveStopPropagation&&!f.params.nested&&t.stopPropagation(),l||(u.loop&&f.fixLoop(),s=f.getWrapperTranslate(),f.setWrapperTransition(0),f.animating&&f.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),f.params.autoplay&&f.autoplaying&&(f.params.autoplayDisableOnInteraction?f.stopAutoplay():f.pauseAutoplay()),it=!1,f.params.grabCursor&&(f.container[0].style.cursor="move",f.container[0].style.cursor="-webkit-grabbing",f.container[0].style.cursor="-moz-grabbin",f.container[0].style.cursor="grabbing")),l=!0,i=f.touches.diff=f.isHorizontal()?f.touches.currentX-f.touches.startX:f.touches.currentY-f.touches.startY,i=i*f.params.touchRatio,f.rtl&&(i=-i),f.swipeDirection=i>0?"prev":"next",e=i+s,r=!0,i>0&&e>f.minTranslate()?(r=!1,f.params.resistance&&(e=f.minTranslate()-1+Math.pow(-f.minTranslate()+s+i,f.params.resistanceRatio))):i<0&&e<f.maxTranslate()&&(r=!1,f.params.resistance&&(e=f.maxTranslate()+1-Math.pow(f.maxTranslate()-s-i,f.params.resistanceRatio))),r&&(t.preventedByNestedSwiper=!0),!f.params.allowSwipeToNext&&f.swipeDirection==="next"&&e<s&&(e=s),!f.params.allowSwipeToPrev&&f.swipeDirection==="prev"&&e>s&&(e=s),f.params.followFinger)){if(f.params.threshold>0)if(Math.abs(i)>f.params.threshold||tt){if(!tt){tt=!0;f.touches.startX=f.touches.currentX;f.touches.startY=f.touches.currentY;e=s;f.touches.diff=f.isHorizontal()?f.touches.currentX-f.touches.startX:f.touches.currentY-f.touches.startY;return}}else{e=s;return}(f.params.freeMode||f.params.watchSlidesProgress)&&f.updateActiveIndex();f.params.freeMode&&(a.length===0&&a.push({position:f.touches[f.isHorizontal()?"startX":"startY"],time:nt}),a.push({position:f.touches[f.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()}));f.updateProgress(e);f.setWrapperTranslate(e)}}}},f.onTouchEnd=function(t){var w,v,o,d,tt,y,h,p,r,u,rt,ft;if(t.originalEvent&&(t=t.originalEvent),g&&f.emit("onTouchEnd",f,t),g=!1,c){if(f.params.grabCursor&&l&&c&&(f.container[0].style.cursor="move",f.container[0].style.cursor="-webkit-grab",f.container[0].style.cursor="-moz-grab",f.container[0].style.cursor="grab"),w=Date.now(),v=w-nt,f.allowClick&&(f.updateClickedSlide(t),f.emit("onTap",f,t),v<300&&w-ct>300&&(b&&clearTimeout(b),b=setTimeout(function(){f&&(f.params.paginationHide&&f.paginationContainer.length>0&&!n(t.target).hasClass(f.params.bulletClass)&&f.paginationContainer.toggleClass(f.params.paginationHiddenClass),f.emit("onClick",f,t))},300)),v<300&&w-ct<300&&(b&&clearTimeout(b),f.emit("onDoubleTap",f,t))),ct=Date.now(),setTimeout(function(){f&&(f.allowClick=!0)},0),!c||!l||!f.swipeDirection||f.touches.diff===0||e===s){c=l=!1;return}if(c=l=!1,o=f.params.followFinger?f.rtl?f.translate:-f.translate:-e,f.params.freeMode){if(o<-f.minTranslate()){f.slideTo(f.activeIndex);return}if(o>-f.maxTranslate()){f.slides.length<f.snapGrid.length?f.slideTo(f.snapGrid.length-1):f.slideTo(f.slides.length-1);return}if(f.params.freeModeMomentum){if(a.length>1){var ut=a.pop(),et=a.pop(),st=ut.position-et.position,ot=ut.time-et.time;f.velocity=st/ot;f.velocity=f.velocity/2;Math.abs(f.velocity)<f.params.freeModeMinimumVelocity&&(f.velocity=0);(ot>150||(new window.Date).getTime()-ut.time>300)&&(f.velocity=0)}else f.velocity=0;a.length=0;var k=1e3*f.params.freeModeMomentumRatio,ht=f.velocity*k,i=f.translate+ht;if(f.rtl&&(i=-i),d=!1,y=Math.abs(f.velocity)*20*f.params.freeModeMomentumBounceRatio,i<f.maxTranslate())f.params.freeModeMomentumBounce?(i+f.maxTranslate()<-y&&(i=f.maxTranslate()-y),tt=f.maxTranslate(),d=!0,it=!0):i=f.maxTranslate();else if(i>f.minTranslate())f.params.freeModeMomentumBounce?(i-f.minTranslate()>y&&(i=f.minTranslate()+y),tt=f.minTranslate(),d=!0,it=!0):i=f.minTranslate();else if(f.params.freeModeSticky){for(h=0,h=0;h<f.snapGrid.length;h+=1)if(f.snapGrid[h]>-i){p=h;break}i=Math.abs(f.snapGrid[p]-i)<Math.abs(f.snapGrid[p-1]-i)||f.swipeDirection==="next"?f.snapGrid[p]:f.snapGrid[p-1];f.rtl||(i=-i)}if(f.velocity!==0)k=f.rtl?Math.abs((-i-f.translate)/f.velocity):Math.abs((i-f.translate)/f.velocity);else if(f.params.freeModeSticky){f.slideReset();return}f.params.freeModeMomentumBounce&&d?(f.updateProgress(tt),f.setWrapperTransition(k),f.setWrapperTranslate(i),f.onTransitionStart(),f.animating=!0,f.wrapper.transitionEnd(function(){f&&it&&(f.emit("onMomentumBounce",f),f.setWrapperTransition(f.params.speed),f.setWrapperTranslate(tt),f.wrapper.transitionEnd(function(){f&&f.onTransitionEnd()}))})):f.velocity?(f.updateProgress(i),f.setWrapperTransition(k),f.setWrapperTranslate(i),f.onTransitionStart(),f.animating||(f.animating=!0,f.wrapper.transitionEnd(function(){f&&f.onTransitionEnd()}))):f.updateProgress(i);f.updateActiveIndex()}(!f.params.freeModeMomentum||v>=f.params.longSwipesMs)&&(f.updateProgress(),f.updateActiveIndex());return}for(u=0,rt=f.slidesSizesGrid[0],r=0;r<f.slidesGrid.length;r+=f.params.slidesPerGroup)typeof f.slidesGrid[r+f.params.slidesPerGroup]!="undefined"?o>=f.slidesGrid[r]&&o<f.slidesGrid[r+f.params.slidesPerGroup]&&(u=r,rt=f.slidesGrid[r+f.params.slidesPerGroup]-f.slidesGrid[r]):o>=f.slidesGrid[r]&&(u=r,rt=f.slidesGrid[f.slidesGrid.length-1]-f.slidesGrid[f.slidesGrid.length-2]);if(ft=(o-f.slidesGrid[u])/rt,v>f.params.longSwipesMs){if(!f.params.longSwipes){f.slideTo(f.activeIndex);return}f.swipeDirection==="next"&&(ft>=f.params.longSwipesRatio?f.slideTo(u+f.params.slidesPerGroup):f.slideTo(u));f.swipeDirection==="prev"&&(ft>1-f.params.longSwipesRatio?f.slideTo(u+f.params.slidesPerGroup):f.slideTo(u))}else{if(!f.params.shortSwipes){f.slideTo(f.activeIndex);return}f.swipeDirection==="next"&&f.slideTo(u+f.params.slidesPerGroup);f.swipeDirection==="prev"&&f.slideTo(u)}}},f._slideTo=function(n,t){return f.slideTo(n,t,!0,!0)},f.slideTo=function(n,t,i,r){var u,e;for(typeof i=="undefined"&&(i=!0),typeof n=="undefined"&&(n=0),n<0&&(n=0),f.snapIndex=Math.floor(n/f.params.slidesPerGroup),f.snapIndex>=f.snapGrid.length&&(f.snapIndex=f.snapGrid.length-1),u=-f.snapGrid[f.snapIndex],f.params.autoplay&&f.autoplaying&&(r||!f.params.autoplayDisableOnInteraction?f.pauseAutoplay(t):f.stopAutoplay()),f.updateProgress(u),e=0;e<f.slidesGrid.length;e++)-Math.floor(u*100)>=Math.floor(f.slidesGrid[e]*100)&&(n=e);if(!f.params.allowSwipeToNext&&u<f.translate&&u<f.minTranslate()||!f.params.allowSwipeToPrev&&u>f.translate&&u>f.maxTranslate()&&(f.activeIndex||0)!==n)return!1;if(typeof t=="undefined"&&(t=f.params.speed),f.previousIndex=f.activeIndex||0,f.activeIndex=n,f.rtl&&-u===f.translate||!f.rtl&&u===f.translate)return f.params.autoHeight&&f.updateAutoHeight(),f.updateClasses(),f.params.effect!=="slide"&&f.setWrapperTranslate(u),!1;f.updateClasses();f.onTransitionStart(i);if(t===0){f.setWrapperTranslate(u);f.setWrapperTransition(0);f.onTransitionEnd(i)}else f.setWrapperTranslate(u),f.setWrapperTransition(t),f.animating||(f.animating=!0,f.wrapper.transitionEnd(function(){if(f)f.onTransitionEnd(i)}));return!0},f.onTransitionStart=function(n){typeof n=="undefined"&&(n=!0);f.params.autoHeight&&f.updateAutoHeight();f.lazy&&f.lazy.onTransitionStart();n&&(f.emit("onTransitionStart",f),f.activeIndex!==f.previousIndex&&(f.emit("onSlideChangeStart",f),f.activeIndex>f.previousIndex?f.emit("onSlideNextStart",f):f.emit("onSlidePrevStart",f)))},f.onTransitionEnd=function(n){f.animating=!1;f.setWrapperTransition(0);typeof n=="undefined"&&(n=!0);f.lazy&&f.lazy.onTransitionEnd();n&&(f.emit("onTransitionEnd",f),f.activeIndex!==f.previousIndex&&(f.emit("onSlideChangeEnd",f),f.activeIndex>f.previousIndex?f.emit("onSlideNextEnd",f):f.emit("onSlidePrevEnd",f)));f.params.hashnav&&f.hashnav&&f.hashnav.setHash()},f.slideNext=function(n,t,i){if(f.params.loop){if(f.animating)return!1;f.fixLoop();var r=f.container[0].clientLeft;return f.slideTo(f.activeIndex+f.params.slidesPerGroup,t,n,i)}return f.slideTo(f.activeIndex+f.params.slidesPerGroup,t,n,i)},f._slideNext=function(n){return f.slideNext(!0,n,!0)},f.slidePrev=function(n,t,i){if(f.params.loop){if(f.animating)return!1;f.fixLoop();var r=f.container[0].clientLeft;return f.slideTo(f.activeIndex-1,t,n,i)}return f.slideTo(f.activeIndex-1,t,n,i)},f._slidePrev=function(n){return f.slidePrev(!0,n,!0)},f.slideReset=function(n,t){return f.slideTo(f.activeIndex,t,n)},f.setWrapperTransition=function(n,t){f.wrapper.transition(n);f.params.effect!=="slide"&&f.effects[f.params.effect]&&f.effects[f.params.effect].setTransition(n);f.params.parallax&&f.parallax&&f.parallax.setTransition(n);f.params.scrollbar&&f.scrollbar&&f.scrollbar.setTransition(n);f.params.control&&f.controller&&f.controller.setTransition(n,t);f.emit("onSetTransition",f,n)},f.setWrapperTranslate=function(n,t,i){var r=0,u=0,o,e;f.isHorizontal()?r=f.rtl?-n:n:u=n;f.params.roundLengths&&(r=d(r),u=d(u));f.params.virtualTranslate||(f.support.transforms3d?f.wrapper.transform("translate3d("+r+"px, "+u+"px, 0px)"):f.wrapper.transform("translate("+r+"px, "+u+"px)"));f.translate=f.isHorizontal()?r:u;e=f.maxTranslate()-f.minTranslate();o=e===0?0:(n-f.minTranslate())/e;o!==f.progress&&f.updateProgress(n);t&&f.updateActiveIndex();f.params.effect!=="slide"&&f.effects[f.params.effect]&&f.effects[f.params.effect].setTranslate(f.translate);f.params.parallax&&f.parallax&&f.parallax.setTranslate(f.translate);f.params.scrollbar&&f.scrollbar&&f.scrollbar.setTranslate(f.translate);f.params.control&&f.controller&&f.controller.setTranslate(f.translate,i);f.emit("onSetTranslate",f,f.translate)},f.getTranslate=function(n,t){var u,i,r,e;return(typeof t=="undefined"&&(t="x"),f.params.virtualTranslate)?f.rtl?-f.translate:f.translate:(r=window.getComputedStyle(n,null),window.WebKitCSSMatrix?(i=r.transform||r.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(function(n){return n.replace(",",".")}).join(", ")),e=new window.WebKitCSSMatrix(i==="none"?"":i)):(e=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),u=e.toString().split(",")),t==="x"&&(i=window.WebKitCSSMatrix?e.m41:u.length===16?parseFloat(u[12]):parseFloat(u[4])),t==="y"&&(i=window.WebKitCSSMatrix?e.m42:u.length===16?parseFloat(u[13]):parseFloat(u[5])),f.rtl&&i&&(i=-i),i||0)},f.getWrapperTranslate=function(n){return typeof n=="undefined"&&(n=f.isHorizontal()?"x":"y"),f.getTranslate(f.wrapper[0],n)},f.observers=[],f.initObservers=function(){var t,n;if(f.params.observeParents)for(t=f.container.parents(),n=0;n<t.length;n++)lt(t[n]);lt(f.container[0],{childList:!1});lt(f.wrapper[0],{attributes:!1})},f.disconnectObservers=function(){for(var n=0;n<f.observers.length;n++)f.observers[n].disconnect();f.observers=[]},f.createLoop=function(){var i,r,u,t;for(f.wrapper.children("."+f.params.slideClass+"."+f.params.slideDuplicateClass).remove(),i=f.wrapper.children("."+f.params.slideClass),f.params.slidesPerView!=="auto"||f.params.loopedSlides||(f.params.loopedSlides=i.length),f.loopedSlides=parseInt(f.params.loopedSlides||f.params.slidesPerView,10),f.loopedSlides=f.loopedSlides+f.params.loopAdditionalSlides,f.loopedSlides>i.length&&(f.loopedSlides=i.length),r=[],u=[],i.each(function(t,e){var o=n(this);t<f.loopedSlides&&u.push(e);t<i.length&&t>=i.length-f.loopedSlides&&r.push(e);o.attr("data-swiper-slide-index",t)}),t=0;t<u.length;t++)f.wrapper.append(n(u[t].cloneNode(!0)).addClass(f.params.slideDuplicateClass));for(t=r.length-1;t>=0;t--)f.wrapper.prepend(n(r[t].cloneNode(!0)).addClass(f.params.slideDuplicateClass))},f.destroyLoop=function(){f.wrapper.children("."+f.params.slideClass+"."+f.params.slideDuplicateClass).remove();f.slides.removeAttr("data-swiper-slide-index")},f.reLoop=function(n){var t=f.activeIndex-f.loopedSlides;f.destroyLoop();f.createLoop();f.updateSlidesSize();n&&f.slideTo(t+f.loopedSlides,0,!1)},f.fixLoop=function(){var n;f.activeIndex<f.loopedSlides?(n=f.slides.length-f.loopedSlides*3+f.activeIndex,n=n+f.loopedSlides,f.slideTo(n,0,!1,!0)):(f.params.slidesPerView==="auto"&&f.activeIndex>=f.loopedSlides*2||f.activeIndex>f.slides.length-f.params.slidesPerView*2)&&(n=-f.slides.length+f.activeIndex+f.loopedSlides,n=n+f.loopedSlides,f.slideTo(n,0,!1,!0))},f.appendSlide=function(n){if(f.params.loop&&f.destroyLoop(),typeof n=="object"&&n.length)for(var t=0;t<n.length;t++)n[t]&&f.wrapper.append(n[t]);else f.wrapper.append(n);f.params.loop&&f.createLoop();f.params.observer&&f.support.observer||f.update(!0)},f.prependSlide=function(n){var i,t;if(f.params.loop&&f.destroyLoop(),i=f.activeIndex+1,typeof n=="object"&&n.length){for(t=0;t<n.length;t++)n[t]&&f.wrapper.prepend(n[t]);i=f.activeIndex+n.length}else f.wrapper.prepend(n);f.params.loop&&f.createLoop();f.params.observer&&f.support.observer||f.update(!0);f.slideTo(i,0,!1)},f.removeSlide=function(n){var t,i,r;if(f.params.loop&&(f.destroyLoop(),f.slides=f.wrapper.children("."+f.params.slideClass)),t=f.activeIndex,typeof n=="object"&&n.length){for(r=0;r<n.length;r++)i=n[r],f.slides[i]&&f.slides.eq(i).remove(),i<t&&t--;t=Math.max(t,0)}else i=n,f.slides[i]&&f.slides.eq(i).remove(),i<t&&t--,t=Math.max(t,0);f.params.loop&&f.createLoop();f.params.observer&&f.support.observer||f.update(!0);f.params.loop?f.slideTo(t+f.loopedSlides,0,!1):f.slideTo(t,0,!1)},f.removeAllSlides=function(){for(var t=[],n=0;n<f.slides.length;n++)t.push(n);f.removeSlide(t)},f.effects={fade:{setTranslate:function(){for(var r,u,t=0;t<f.slides.length;t++){var i=f.slides.eq(t),e=i[0].swiperSlideOffset,n=-e;f.params.virtualTranslate||(n=n-f.translate);r=0;f.isHorizontal()||(r=n,n=0);u=f.params.fade.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:u}).transform("translate3d("+n+"px, "+r+"px, 0px)")}},setTransition:function(n){if(f.slides.transition(n),f.params.virtualTranslate&&n!==0){var t=!1;f.slides.transitionEnd(function(){var i,n;if(!t&&f)for(t=!0,f.animating=!1,i=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],n=0;n<i.length;n++)f.wrapper.trigger(i[n])})}}},flip:{setTranslate:function(){for(var t,i,r,u,o=0;o<f.slides.length;o++){t=f.slides.eq(o);i=t[0].progress;f.params.flip.limitRotation&&(i=Math.max(Math.min(t[0].progress,1),-1));var l=t[0].swiperSlideOffset,a=-180*i,e=a,h=0,s=-l,c=0;f.isHorizontal()?f.rtl&&(e=-e):(c=s,s=0,h=-e,e=0);t[0].style.zIndex=-Math.abs(Math.round(i))+f.slides.length;f.params.flip.slideShadows&&(r=f.isHorizontal()?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),u=f.isHorizontal()?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom"),r.length===0&&(r=n('<div class="swiper-slide-shadow-'+(f.isHorizontal()?"left":"top")+'"><\/div>'),t.append(r)),u.length===0&&(u=n('<div class="swiper-slide-shadow-'+(f.isHorizontal()?"right":"bottom")+'"><\/div>'),t.append(u)),r.length&&(r[0].style.opacity=Math.max(-i,0)),u.length&&(u[0].style.opacity=Math.max(i,0)));t.transform("translate3d("+s+"px, "+c+"px, 0px) rotateX("+h+"deg) rotateY("+e+"deg)")}},setTransition:function(t){if(f.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),f.params.virtualTranslate&&t!==0){var i=!1;f.slides.eq(f.activeIndex).transitionEnd(function(){var r,t;if(!i&&f&&n(this).hasClass(f.params.slideActiveClass))for(i=!0,f.animating=!1,r=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],t=0;t<r.length;t++)f.wrapper.trigger(r[t])})}}},cube:{setTranslate:function(){var e=0,t,i,y,h,c,b;for(f.params.cube.shadow&&(f.isHorizontal()?(t=f.wrapper.find(".swiper-cube-shadow"),t.length===0&&(t=n('<div class="swiper-cube-shadow"><\/div>'),f.wrapper.append(t)),t.css({height:f.width+"px"})):(t=f.container.find(".swiper-cube-shadow"),t.length===0&&(t=n('<div class="swiper-cube-shadow"><\/div>'),f.container.append(t)))),i=0;i<f.slides.length;i++){var u=f.slides.eq(i),o=i*90,l=Math.floor(o/360);f.rtl&&(o=-o,l=Math.floor(-o/360));var s=Math.max(Math.min(u[0].progress,1),-1),r=0,v=0,a=0;i%4==0?(r=-l*4*f.size,a=0):(i-1)%4==0?(r=0,a=-l*4*f.size):(i-2)%4==0?(r=f.size+l*4*f.size,a=f.size):(i-3)%4==0&&(r=-f.size,a=3*f.size+f.size*4*l);f.rtl&&(r=-r);f.isHorizontal()||(v=r,r=0);y="rotateX("+(f.isHorizontal()?0:-o)+"deg) rotateY("+(f.isHorizontal()?o:0)+"deg) translate3d("+r+"px, "+v+"px, "+a+"px)";s<=1&&s>-1&&(e=i*90+s*90,f.rtl&&(e=-i*90-s*90));u.transform(y);f.params.cube.slideShadows&&(h=f.isHorizontal()?u.find(".swiper-slide-shadow-left"):u.find(".swiper-slide-shadow-top"),c=f.isHorizontal()?u.find(".swiper-slide-shadow-right"):u.find(".swiper-slide-shadow-bottom"),h.length===0&&(h=n('<div class="swiper-slide-shadow-'+(f.isHorizontal()?"left":"top")+'"><\/div>'),u.append(h)),c.length===0&&(c=n('<div class="swiper-slide-shadow-'+(f.isHorizontal()?"right":"bottom")+'"><\/div>'),u.append(c)),h.length&&(h[0].style.opacity=Math.max(-s,0)),c.length&&(c[0].style.opacity=Math.max(s,0)))}if(f.wrapper.css({"-webkit-transform-origin":"50% 50% -"+f.size/2+"px","-moz-transform-origin":"50% 50% -"+f.size/2+"px","-ms-transform-origin":"50% 50% -"+f.size/2+"px","transform-origin":"50% 50% -"+f.size/2+"px"}),f.params.cube.shadow)if(f.isHorizontal())t.transform("translate3d(0px, "+(f.width/2+f.params.cube.shadowOffset)+"px, "+-f.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+f.params.cube.shadowScale+")");else{var p=Math.abs(e)-Math.floor(Math.abs(e)/90)*90,k=1.5-(Math.sin(p*2*Math.PI/360)/2+Math.cos(p*2*Math.PI/360)/2),d=f.params.cube.shadowScale,w=f.params.cube.shadowScale/k,g=f.params.cube.shadowOffset;t.transform("scale3d("+d+", 1, "+w+") translate3d(0px, "+(f.height/2+g)+"px, "+-f.height/2/w+"px) rotateX(-90deg)")}b=f.isSafari||f.isUiWebView?-f.size/2:0;f.wrapper.transform("translate3d(0px,0,"+b+"px) rotateX("+(f.isHorizontal()?0:e)+"deg) rotateY("+(f.isHorizontal()?-e:0)+"deg)")},setTransition:function(n){f.slides.transition(n).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(n);f.params.cube.shadow&&!f.isHorizontal()&&f.container.find(".swiper-cube-shadow").transition(n)}},coverflow:{setTranslate:function(){for(var a=f.translate,v=f.isHorizontal()?-a+f.width/2:-a+f.height/2,y=f.isHorizontal()?f.params.coverflow.rotate:-f.params.coverflow.rotate,d=f.params.coverflow.depth,b,r,u,k,e=0,p=f.slides.length;e<p;e++){var i=f.slides.eq(e),w=f.slidesSizesGrid[e],g=i[0].swiperSlideOffset,t=(v-g-w/2)/w*f.params.coverflow.modifier,o=f.isHorizontal()?y*t:0,s=f.isHorizontal()?0:y*t,h=-d*Math.abs(t),c=f.isHorizontal()?0:f.params.coverflow.stretch*t,l=f.isHorizontal()?f.params.coverflow.stretch*t:0;Math.abs(l)<.001&&(l=0);Math.abs(c)<.001&&(c=0);Math.abs(h)<.001&&(h=0);Math.abs(o)<.001&&(o=0);Math.abs(s)<.001&&(s=0);b="translate3d("+l+"px,"+c+"px,"+h+"px)  rotateX("+s+"deg) rotateY("+o+"deg)";i.transform(b);i[0].style.zIndex=-Math.abs(Math.round(t))+1;f.params.coverflow.slideShadows&&(r=f.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),u=f.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom"),r.length===0&&(r=n('<div class="swiper-slide-shadow-'+(f.isHorizontal()?"left":"top")+'"><\/div>'),i.append(r)),u.length===0&&(u=n('<div class="swiper-slide-shadow-'+(f.isHorizontal()?"right":"bottom")+'"><\/div>'),i.append(u)),r.length&&(r[0].style.opacity=t>0?t:0),u.length&&(u[0].style.opacity=-t>0?-t:0))}f.browser.ie&&(k=f.wrapper[0].style,k.perspectiveOrigin=v+"px 50%")},setTransition:function(n){f.slides.transition(n).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(n)}}},f.lazy={initialImageLoaded:!1,loadImageInSlide:function(t,i){if(typeof t!="undefined"&&(typeof i=="undefined"&&(i=!0),f.slides.length!==0)){var r=f.slides.eq(t),u=r.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");(!r.hasClass("swiper-lazy")||r.hasClass("swiper-lazy-loaded")||r.hasClass("swiper-lazy-loading")||(u=u.add(r[0])),u.length!==0)&&u.each(function(){var t=n(this);t.addClass("swiper-lazy-loading");var u=t.attr("data-background"),e=t.attr("data-src"),o=t.attr("data-srcset");f.loadImage(t[0],e||u,o,!1,function(){var n,s,h;u?(t.css("background-image",'url("'+u+'")'),t.removeAttr("data-background")):(o&&(t.attr("srcset",o),t.removeAttr("data-srcset")),e&&(t.attr("src",e),t.removeAttr("data-src")));t.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading");r.find(".swiper-lazy-preloader, .preloader").remove();f.params.loop&&i&&(n=r.attr("data-swiper-slide-index"),r.hasClass(f.params.slideDuplicateClass)?(s=f.wrapper.children('[data-swiper-slide-index="'+n+'"]:not(.'+f.params.slideDuplicateClass+")"),f.lazy.loadImageInSlide(s.index(),!1)):(h=f.wrapper.children("."+f.params.slideDuplicateClass+'[data-swiper-slide-index="'+n+'"]'),f.lazy.loadImageInSlide(h.index(),!1)));f.emit("onLazyImageReady",f,r[0],t[0])});f.emit("onLazyImageLoad",f,r[0],t[0])})}},load:function(){var t,r,u;if(f.params.watchSlidesVisibility)f.wrapper.children("."+f.params.slideVisibleClass).each(function(){f.lazy.loadImageInSlide(n(this).index())});else if(f.params.slidesPerView>1)for(t=f.activeIndex;t<f.activeIndex+f.params.slidesPerView;t++)f.slides[t]&&f.lazy.loadImageInSlide(t);else f.lazy.loadImageInSlide(f.activeIndex);if(f.params.lazyLoadingInPrevNext)if(f.params.slidesPerView>1||f.params.lazyLoadingInPrevNextAmount&&f.params.lazyLoadingInPrevNextAmount>1){var e=f.params.lazyLoadingInPrevNextAmount,i=f.params.slidesPerView,o=Math.min(f.activeIndex+i+Math.max(e,i),f.slides.length),s=Math.max(f.activeIndex-Math.max(i,e),0);for(t=f.activeIndex+f.params.slidesPerView;t<o;t++)f.slides[t]&&f.lazy.loadImageInSlide(t);for(t=s;t<f.activeIndex;t++)f.slides[t]&&f.lazy.loadImageInSlide(t)}else r=f.wrapper.children("."+f.params.slideNextClass),r.length>0&&f.lazy.loadImageInSlide(r.index()),u=f.wrapper.children("."+f.params.slidePrevClass),u.length>0&&f.lazy.loadImageInSlide(u.index())},onTransitionStart:function(){f.params.lazyLoading&&(!f.params.lazyLoadingOnTransitionStart&&(f.params.lazyLoadingOnTransitionStart||f.lazy.initialImageLoaded)||f.lazy.load())},onTransitionEnd:function(){f.params.lazyLoading&&!f.params.lazyLoadingOnTransitionStart&&f.lazy.load()}},f.scrollbar={isTouched:!1,setDragPosition:function(n){var i=f.scrollbar,e=f.isHorizontal()?n.type==="touchstart"||n.type==="touchmove"?n.targetTouches[0].pageX:n.pageX||n.clientX:n.type==="touchstart"||n.type==="touchmove"?n.targetTouches[0].pageY:n.pageY||n.clientY,t=e-i.track.offset()[f.isHorizontal()?"left":"top"]-i.dragSize/2,r=-f.minTranslate()*i.moveDivider,u=-f.maxTranslate()*i.moveDivider;t<r?t=r:t>u&&(t=u);t=-t/i.moveDivider;f.updateProgress(t);f.setWrapperTranslate(t,!0)},dragStart:function(n){var t=f.scrollbar;t.isTouched=!0;n.preventDefault();n.stopPropagation();t.setDragPosition(n);clearTimeout(t.dragTimeout);t.track.transition(0);f.params.scrollbarHide&&t.track.css("opacity",1);f.wrapper.transition(100);t.drag.transition(100);f.emit("onScrollbarDragStart",f)},dragMove:function(n){var t=f.scrollbar;t.isTouched&&(n.preventDefault?n.preventDefault():n.returnValue=!1,t.setDragPosition(n),f.wrapper.transition(0),t.track.transition(0),t.drag.transition(0),f.emit("onScrollbarDragMove",f))},dragEnd:function(){var n=f.scrollbar;n.isTouched&&(n.isTouched=!1,f.params.scrollbarHide&&(clearTimeout(n.dragTimeout),n.dragTimeout=setTimeout(function(){n.track.css("opacity",0);n.track.transition(400)},1e3)),f.emit("onScrollbarDragEnd",f),f.params.scrollbarSnapOnRelease&&f.slideReset())},enableDraggable:function(){var t=f.scrollbar,i=f.support.touch?t.track:document;n(t.track).on(f.touchEvents.start,t.dragStart);n(i).on(f.touchEvents.move,t.dragMove);n(i).on(f.touchEvents.end,t.dragEnd)},disableDraggable:function(){var t=f.scrollbar,i=f.support.touch?t.track:document;n(t.track).off(f.touchEvents.start,t.dragStart);n(i).off(f.touchEvents.move,t.dragMove);n(i).off(f.touchEvents.end,t.dragEnd)},set:function(){if(f.params.scrollbar){var t=f.scrollbar;t.track=n(f.params.scrollbar);f.params.uniqueNavElements&&typeof f.params.scrollbar=="string"&&t.track.length>1&&f.container.find(f.params.scrollbar).length===1&&(t.track=f.container.find(f.params.scrollbar));t.drag=t.track.find(".swiper-scrollbar-drag");t.drag.length===0&&(t.drag=n('<div class="swiper-scrollbar-drag"><\/div>'),t.track.append(t.drag));t.drag[0].style.width="";t.drag[0].style.height="";t.trackSize=f.isHorizontal()?t.track[0].offsetWidth:t.track[0].offsetHeight;t.divider=f.size/f.virtualSize;t.moveDivider=t.divider*(t.trackSize/f.size);t.dragSize=t.trackSize*t.divider;f.isHorizontal()?t.drag[0].style.width=t.dragSize+"px":t.drag[0].style.height=t.dragSize+"px";t.track[0].style.display=t.divider>=1?"none":"";f.params.scrollbarHide&&(t.track[0].style.opacity=0)}},setTranslate:function(){if(f.params.scrollbar){var n=f.scrollbar,r=f.translate||0,t,i=n.dragSize;t=(n.trackSize-n.dragSize)*f.progress;f.rtl&&f.isHorizontal()?(t=-t,t>0?(i=n.dragSize-t,t=0):-t+n.dragSize>n.trackSize&&(i=n.trackSize+t)):t<0?(i=n.dragSize+t,t=0):t+n.dragSize>n.trackSize&&(i=n.trackSize-t);f.isHorizontal()?(f.support.transforms3d?n.drag.transform("translate3d("+t+"px, 0, 0)"):n.drag.transform("translateX("+t+"px)"),n.drag[0].style.width=i+"px"):(f.support.transforms3d?n.drag.transform("translate3d(0px, "+t+"px, 0)"):n.drag.transform("translateY("+t+"px)"),n.drag[0].style.height=i+"px");f.params.scrollbarHide&&(clearTimeout(n.timeout),n.track[0].style.opacity=1,n.timeout=setTimeout(function(){n.track[0].style.opacity=0;n.track.transition(400)},1e3))}},setTransition:function(n){f.params.scrollbar&&f.scrollbar.drag.transition(n)}},f.controller={LinearSpline:function(n,t){var i,r,f,u;this.x=n;this.y=t;this.lastIndex=n.length-1;f=this.x.length;this.interpolate=function(n){return n?(r=u(this.x,n),i=r-1,(n-this.x[i])*(this.y[r]-this.y[i])/(this.x[r]-this.x[i])+this.y[i]):0};u=function(){var n,t,i;return function(r,u){for(t=-1,n=r.length;n-t>1;)r[i=n+t>>1]<=u?t=i:n=i;return n}}()},getInterpolateFunction:function(n){f.controller.spline||(f.controller.spline=f.params.loop?new f.controller.LinearSpline(f.slidesGrid,n.slidesGrid):new f.controller.LinearSpline(f.snapGrid,n.snapGrid))},setTranslate:function(n,i){function s(t){n=t.rtl&&t.params.direction==="horizontal"?-f.translate:f.translate;f.params.controlBy==="slide"&&(f.controller.getInterpolateFunction(t),u=-f.controller.spline.interpolate(-n));u&&f.params.controlBy!=="container"||(o=(t.maxTranslate()-t.minTranslate())/(f.maxTranslate()-f.minTranslate()),u=(n-f.minTranslate())*o+t.minTranslate());f.params.controlInverse&&(u=t.maxTranslate()-u);t.updateProgress(u);t.setWrapperTranslate(u,!1,f);t.updateActiveIndex()}var r=f.params.control,o,u,e;if(f.isArray(r))for(e=0;e<r.length;e++)r[e]!==i&&r[e]instanceof t&&s(r[e]);else r instanceof t&&i!==r&&s(r)},setTransition:function(n,i){function e(t){t.setWrapperTransition(n,f);n!==0&&(t.onTransitionStart(),t.wrapper.transitionEnd(function(){r&&(t.params.loop&&f.params.controlBy==="slide"&&t.fixLoop(),t.onTransitionEnd())}))}var r=f.params.control,u;if(f.isArray(r))for(u=0;u<r.length;u++)r[u]!==i&&r[u]instanceof t&&e(r[u]);else r instanceof t&&i!==r&&e(r)}},f.hashnav={init:function(){var i,r,n,u,t,e,o;if(f.params.hashnav&&(f.hashnav.initialized=!0,i=document.location.hash.replace("#",""),i))for(r=0,n=0,u=f.slides.length;n<u;n++)t=f.slides.eq(n),e=t.attr("data-hash"),e!==i||t.hasClass(f.params.slideDuplicateClass)||(o=t.index(),f.slideTo(o,r,f.params.runCallbacksOnInit,!0))},setHash:function(){f.hashnav.initialized&&f.params.hashnav&&(document.location.hash=f.slides.eq(f.activeIndex).attr("data-hash")||"")}},f.disableKeyboardControl=function(){f.params.keyboardControl=!1;n(document).off("keydown",wt)},f.enableKeyboardControl=function(){f.params.keyboardControl=!0;n(document).on("keydown",wt)},f.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},f.params.mousewheelControl){try{new window.WheelEvent("wheel");f.mousewheel.event="wheel"}catch(dt){(window.WheelEvent||f.container[0]&&"wheel"in f.container[0])&&(f.mousewheel.event="wheel")}!f.mousewheel.event&&window.WheelEvent;f.mousewheel.event||document.onmousewheel===undefined||(f.mousewheel.event="mousewheel");f.mousewheel.event||(f.mousewheel.event="DOMMouseScroll")}f.disableMousewheelControl=function(){return f.mousewheel.event?(f.container.off(f.mousewheel.event,bt),!0):!1};f.enableMousewheelControl=function(){if(!f.mousewheel.event)return!1;f.container.on(f.mousewheel.event,bt);return!0};f.parallax={setTranslate:function(){f.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){kt(this,f.progress)});f.slides.each(function(){var t=n(this);t.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var n=Math.min(Math.max(t[0].progress,-1),1);kt(this,n)})})},setTransition:function(t){typeof t=="undefined"&&(t=f.params.speed);f.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var i=n(this),r=parseInt(i.attr("data-swiper-parallax-duration"),10)||t;t===0&&(r=0);i.transition(r)})}};f._plugins=[];for(at in f.plugins)vt=f.plugins[at](f,f.params[at]),vt&&f._plugins.push(vt);return f.callPlugins=function(n){for(var t=0;t<f._plugins.length;t++)n in f._plugins[t]&&f._plugins[t][n](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},f.emitterEventListeners={},f.emit=function(n){f.params[n]&&f.params[n](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var t;if(f.emitterEventListeners[n])for(t=0;t<f.emitterEventListeners[n].length;t++)f.emitterEventListeners[n][t](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);f.callPlugins&&f.callPlugins(n,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},f.on=function(n,t){return n=yt(n),f.emitterEventListeners[n]||(f.emitterEventListeners[n]=[]),f.emitterEventListeners[n].push(t),f},f.off=function(n,t){var i;if(n=yt(n),typeof t=="undefined")return f.emitterEventListeners[n]=[],f;if(f.emitterEventListeners[n]&&f.emitterEventListeners[n].length!==0){for(i=0;i<f.emitterEventListeners[n].length;i++)f.emitterEventListeners[n][i]===t&&f.emitterEventListeners[n].splice(i,1);return f}},f.once=function(n,t){n=yt(n);var i=function(){t(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);f.off(n,i)};f.on(n,i);return f},f.a11y={makeFocusable:function(n){return n.attr("tabIndex","0"),n},addRole:function(n,t){return n.attr("role",t),n},addLabel:function(n,t){return n.attr("aria-label",t),n},disable:function(n){return n.attr("aria-disabled",!0),n},enable:function(n){return n.attr("aria-disabled",!1),n},onEnterKey:function(t){if(t.keyCode===13){if(n(t.target).is(f.params.nextButton)){f.onClickNext(t);f.isEnd?f.a11y.notify(f.params.lastSlideMessage):f.a11y.notify(f.params.nextSlideMessage)}else if(n(t.target).is(f.params.prevButton)){f.onClickPrev(t);f.isBeginning?f.a11y.notify(f.params.firstSlideMessage):f.a11y.notify(f.params.prevSlideMessage)}n(t.target).is("."+f.params.bulletClass)&&n(t.target)[0].click()}},liveRegion:n('<span class="swiper-notification" aria-live="assertive" aria-atomic="true"><\/span>'),notify:function(n){var t=f.a11y.liveRegion;t.length!==0&&(t.html(""),t.html(n))},init:function(){f.params.nextButton&&f.nextButton&&f.nextButton.length>0&&(f.a11y.makeFocusable(f.nextButton),f.a11y.addRole(f.nextButton,"button"),f.a11y.addLabel(f.nextButton,f.params.nextSlideMessage));f.params.prevButton&&f.prevButton&&f.prevButton.length>0&&(f.a11y.makeFocusable(f.prevButton),f.a11y.addRole(f.prevButton,"button"),f.a11y.addLabel(f.prevButton,f.params.prevSlideMessage));n(f.container).append(f.a11y.liveRegion)},initPagination:function(){f.params.pagination&&f.params.paginationClickable&&f.bullets&&f.bullets.length&&f.bullets.each(function(){var t=n(this);f.a11y.makeFocusable(t);f.a11y.addRole(t,"button");f.a11y.addLabel(t,f.params.paginationBulletMessage.replace(/{{index}}/,t.index()+1))})},destroy:function(){f.a11y.liveRegion&&f.a11y.liveRegion.length>0&&f.a11y.liveRegion.remove()}},f.init=function(){f.params.loop&&f.createLoop();f.updateContainerSize();f.updateSlidesSize();f.updatePagination();f.params.scrollbar&&f.scrollbar&&(f.scrollbar.set(),f.params.scrollbarDraggable&&f.scrollbar.enableDraggable());f.params.effect!=="slide"&&f.effects[f.params.effect]&&(f.params.loop||f.updateProgress(),f.effects[f.params.effect].setTranslate());f.params.loop?f.slideTo(f.params.initialSlide+f.loopedSlides,0,f.params.runCallbacksOnInit):(f.slideTo(f.params.initialSlide,0,f.params.runCallbacksOnInit),f.params.initialSlide===0&&(f.parallax&&f.params.parallax&&f.parallax.setTranslate(),f.lazy&&f.params.lazyLoading&&(f.lazy.load(),f.lazy.initialImageLoaded=!0)));f.attachEvents();f.params.observer&&f.support.observer&&f.initObservers();f.params.preloadImages&&!f.params.lazyLoading&&f.preloadImages();f.params.autoplay&&f.startAutoplay();f.params.keyboardControl&&f.enableKeyboardControl&&f.enableKeyboardControl();f.params.mousewheelControl&&f.enableMousewheelControl&&f.enableMousewheelControl();f.params.hashnav&&f.hashnav&&f.hashnav.init();f.params.a11y&&f.a11y&&f.a11y.init();f.emit("onInit",f)},f.cleanupStyles=function(){f.container.removeClass(f.classNames.join(" ")).removeAttr("style");f.wrapper.removeAttr("style");f.slides&&f.slides.length&&f.slides.removeClass([f.params.slideVisibleClass,f.params.slideActiveClass,f.params.slideNextClass,f.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row");f.paginationContainer&&f.paginationContainer.length&&f.paginationContainer.removeClass(f.params.paginationHiddenClass);f.bullets&&f.bullets.length&&f.bullets.removeClass(f.params.bulletActiveClass);f.params.prevButton&&n(f.params.prevButton).removeClass(f.params.buttonDisabledClass);f.params.nextButton&&n(f.params.nextButton).removeClass(f.params.buttonDisabledClass);f.params.scrollbar&&f.scrollbar&&(f.scrollbar.track&&f.scrollbar.track.length&&f.scrollbar.track.removeAttr("style"),f.scrollbar.drag&&f.scrollbar.drag.length&&f.scrollbar.drag.removeAttr("style"))},f.destroy=function(n,t){f.detachEvents();f.stopAutoplay();f.params.scrollbar&&f.scrollbar&&f.params.scrollbarDraggable&&f.scrollbar.disableDraggable();f.params.loop&&f.destroyLoop();t&&f.cleanupStyles();f.disconnectObservers();f.params.keyboardControl&&f.disableKeyboardControl&&f.disableKeyboardControl();f.params.mousewheelControl&&f.disableMousewheelControl&&f.disableMousewheelControl();f.params.a11y&&f.a11y&&f.a11y.destroy();f.emit("onDestroy");n!==!1&&(f=null)},f.init(),f}},i,f,u,r;for(t.prototype={isSafari:function(){var n=navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(n){return Object.prototype.toString.apply(n)==="[object Array]"},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1},device:function(){var n=navigator.userAgent,i=n.match(/(Android);?[\s\/]+([\d.]+)?/),t=n.match(/(iPad).*OS\s([\d_]+)/),r=n.match(/(iPod)(.*OS\s([\d_]+))?/),u=!t&&n.match(/(iPhone\sOS)\s([\d_]+)/);return{ios:t||u||r,android:i}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var n=document.createElement("div").style;return"webkitPerspective"in n||"MozPerspective"in n||"OPerspective"in n||"MsPerspective"in n||"perspective"in n}(),flexbox:function(){for(var i=document.createElement("div").style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<t.length;n++)if(t[n]in i)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}()},plugins:{}},i=function(){var n=function(n){for(var i=this,t=0,t=0;t<n.length;t++)i[t]=n[t];return i.length=n.length,this},t=function(t,i){var e=[],r=0,o,s,u,f;if(t&&!i&&t instanceof n)return t;if(t)if(typeof t=="string")if(u=t.trim(),u.indexOf("<")>=0&&u.indexOf(">")>=0)for(f="div",u.indexOf("<li")===0&&(f="ul"),u.indexOf("<tr")===0&&(f="tbody"),(u.indexOf("<td")===0||u.indexOf("<th")===0)&&(f="tr"),u.indexOf("<tbody")===0&&(f="table"),u.indexOf("<option")===0&&(f="select"),s=document.createElement(f),s.innerHTML=t,r=0;r<s.childNodes.length;r++)e.push(s.childNodes[r]);else for(o=i||t[0]!=="#"||t.match(/[ .<>:~]/)?(i||document).querySelectorAll(t):[document.getElementById(t.split("#")[1])],r=0;r<o.length;r++)o[r]&&e.push(o[r]);else if(t.nodeType||t===window||t===document)e.push(t);else if(t.length>0&&t[0].nodeType)for(r=0;r<t.length;r++)e.push(t[r]);return new n(e)};return n.prototype={addClass:function(n){var r,t,i;if(typeof n=="undefined")return this;for(r=n.split(" "),t=0;t<r.length;t++)for(i=0;i<this.length;i++)this[i].classList.add(r[t]);return this},removeClass:function(n){for(var r=n.split(" "),i,t=0;t<r.length;t++)for(i=0;i<this.length;i++)this[i].classList.remove(r[t]);return this},hasClass:function(n){return this[0]?this[0].classList.contains(n):!1},toggleClass:function(n){for(var r=n.split(" "),i,t=0;t<r.length;t++)for(i=0;i<this.length;i++)this[i].classList.toggle(r[t]);return this},attr:function(n,t){var i,r;if(arguments.length===1&&typeof n=="string")return this[0]?this[0].getAttribute(n):undefined;for(i=0;i<this.length;i++)if(arguments.length===2)this[i].setAttribute(n,t);else for(r in n)this[i][r]=n[r],this[i].setAttribute(r,n[r]);return this},removeAttr:function(n){for(var t=0;t<this.length;t++)this[t].removeAttribute(n);return this},data:function(n,t){var u,i,r;if(typeof t=="undefined")return this[0]?(u=this[0].getAttribute("data-"+n),u?u:this[0].dom7ElementDataStorage&&n in this[0].dom7ElementDataStorage?this[0].dom7ElementDataStorage[n]:undefined):undefined;for(i=0;i<this.length;i++)r=this[i],r.dom7ElementDataStorage||(r.dom7ElementDataStorage={}),r.dom7ElementDataStorage[n]=t;return this},transform:function(n){for(var t,i=0;i<this.length;i++)t=this[i].style,t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=n;return this},transition:function(n){var i,t;for(typeof n!="string"&&(n=n+"ms"),i=0;i<this.length;i++)t=this[i].style,t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=n;return this},on:function(n,i,r,u){function s(n){var e=n.target,f,u;if(t(e).is(i))r.call(e,n);else for(f=t(e).parents(),u=0;u<f.length;u++)t(f[u]).is(i)&&r.call(f[u],n)}for(var o=n.split(" "),e,f=0;f<this.length;f++)if(typeof i=="function"||i===!1)for(typeof i=="function"&&(r=arguments[1],u=arguments[2]||!1),e=0;e<o.length;e++)this[f].addEventListener(o[e],r,u);else for(e=0;e<o.length;e++)this[f].dom7LiveListeners||(this[f].dom7LiveListeners=[]),this[f].dom7LiveListeners.push({listener:r,liveListener:s}),this[f].addEventListener(o[e],s,u);return this},off:function(n,t,i,r){for(var o=n.split(" "),u,e,f=0;f<o.length;f++)for(u=0;u<this.length;u++)if(typeof t=="function"||t===!1)typeof t=="function"&&(i=arguments[1],r=arguments[2]||!1),this[u].removeEventListener(o[f],i,r);else if(this[u].dom7LiveListeners)for(e=0;e<this[u].dom7LiveListeners.length;e++)this[u].dom7LiveListeners[e].listener===i&&this[u].removeEventListener(o[f],this[u].dom7LiveListeners[e].liveListener,r);return this},once:function(n,t,i,r){function f(e){i(e);u.off(n,t,f,r)}var u=this;typeof t=="function"&&(t=!1,i=arguments[1],r=arguments[2]);u.on(n,t,f,r)},trigger:function(n,t){for(var i,r=0;r<this.length;r++){try{i=new window.CustomEvent(n,{detail:t,bubbles:!0,cancelable:!0})}catch(u){i=document.createEvent("Event");i.initEvent(n,!0,!0);i.detail=t}this[r].dispatchEvent(i)}return this},transitionEnd:function(n){function u(f){if(f.target===this)for(n.call(this,f),t=0;t<i.length;t++)r.off(i[t],u)}var i=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],t,r=this;if(n)for(t=0;t<i.length;t++)r.on(i[t],u);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(n){return this.length>0?n?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(n){return this.length>0?n?this[0].offsetHeight+parseFloat(this.css("margin-top"))+parseFloat(this.css("margin-bottom")):this[0].offsetHeight:null},offset:function(){if(this.length>0){var n=this[0],t=n.getBoundingClientRect(),i=document.body,r=n.clientTop||i.clientTop||0,u=n.clientLeft||i.clientLeft||0,f=window.pageYOffset||n.scrollTop,e=window.pageXOffset||n.scrollLeft;return{top:t.top+f-r,left:t.left+e-u}}return null},css:function(n,t){var i,r;if(arguments.length===1)if(typeof n=="string"){if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(n)}else{for(i=0;i<this.length;i++)for(r in n)this[i].style[r]=n[r];return this}if(arguments.length===2&&typeof n=="string"){for(i=0;i<this.length;i++)this[i].style[n]=t;return this}return this},each:function(n){for(var t=0;t<this.length;t++)n.call(this[t],t,this[t]);return this},html:function(n){if(typeof n=="undefined")return this[0]?this[0].innerHTML:undefined;for(var t=0;t<this.length;t++)this[t].innerHTML=n;return this},text:function(n){if(typeof n=="undefined")return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t++)this[t].textContent=n;return this},is:function(i){var f,u,r;if(!this[0])return!1;if(typeof i=="string"){if(r=this[0],r===document)return i===document;if(r===window)return i===window;if(r.matches)return r.matches(i);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(i);if(r.mozMatchesSelector)return r.mozMatchesSelector(i);if(r.msMatchesSelector)return r.msMatchesSelector(i);for(f=t(i),u=0;u<f.length;u++)if(f[u]===this[0])return!0;return!1}if(i===document)return this[0]===document;if(i===window)return this[0]===window;if(i.nodeType||i instanceof n){for(f=i.nodeType?[i]:i,u=0;u<f.length;u++)if(f[u]===this[0])return!0;return!1}return!1},index:function(){if(this[0]){for(var n=this[0],t=0;(n=n.previousSibling)!==null;)n.nodeType===1&&t++;return t}return undefined},eq:function(t){if(typeof t=="undefined")return this;var r=this.length,i;return t>r-1?new n([]):t<0?(i=r+t,i<0?new n([]):new n([this[i]])):new n([this[t]])},append:function(t){for(var r,u,i=0;i<this.length;i++)if(typeof t=="string")for(u=document.createElement("div"),u.innerHTML=t;u.firstChild;)this[i].appendChild(u.firstChild);else if(t instanceof n)for(r=0;r<t.length;r++)this[i].appendChild(t[r]);else this[i].appendChild(t);return this},prepend:function(t){for(var r,u,i=0;i<this.length;i++)if(typeof t=="string")for(u=document.createElement("div"),u.innerHTML=t,r=u.childNodes.length-1;r>=0;r--)this[i].insertBefore(u.childNodes[r],this[i].childNodes[0]);else if(t instanceof n)for(r=0;r<t.length;r++)this[i].insertBefore(t[r],this[i].childNodes[0]);else this[i].insertBefore(t,this[i].childNodes[0]);return this},insertBefore:function(n){for(var i=t(n),u,r=0;r<this.length;r++)if(i.length===1)i[0].parentNode.insertBefore(this[r],i[0]);else if(i.length>1)for(u=0;u<i.length;u++)i[u].parentNode.insertBefore(this[r].cloneNode(!0),i[u])},insertAfter:function(n){for(var i=t(n),u,r=0;r<this.length;r++)if(i.length===1)i[0].parentNode.insertBefore(this[r],i[0].nextSibling);else if(i.length>1)for(u=0;u<i.length;u++)i[u].parentNode.insertBefore(this[r].cloneNode(!0),i[u].nextSibling)},next:function(i){return this.length>0?i?this[0].nextElementSibling&&t(this[0].nextElementSibling).is(i)?new n([this[0].nextElementSibling]):new n([]):this[0].nextElementSibling?new n([this[0].nextElementSibling]):new n([]):new n([])},nextAll:function(i){var f=[],u=this[0],r;if(!u)return new n([]);while(u.nextElementSibling)r=u.nextElementSibling,i?t(r).is(i)&&f.push(r):f.push(r),u=r;return new n(f)},prev:function(i){return this.length>0?i?this[0].previousElementSibling&&t(this[0].previousElementSibling).is(i)?new n([this[0].previousElementSibling]):new n([]):this[0].previousElementSibling?new n([this[0].previousElementSibling]):new n([]):new n([])},prevAll:function(i){var f=[],u=this[0],r;if(!u)return new n([]);while(u.previousElementSibling)r=u.previousElementSibling,i?t(r).is(i)&&f.push(r):f.push(r),u=r;return new n(f)},parent:function(n){for(var r=[],i=0;i<this.length;i++)n?t(this[i].parentNode).is(n)&&r.push(this[i].parentNode):r.push(this[i].parentNode);return t(t.unique(r))},parents:function(n){for(var u=[],i,r=0;r<this.length;r++)for(i=this[r].parentNode;i;)n?t(i).is(n)&&u.push(i):u.push(i),i=i.parentNode;return t(t.unique(u))},find:function(t){for(var f=[],u,r,i=0;i<this.length;i++)for(u=this[i].querySelectorAll(t),r=0;r<u.length;r++)f.push(u[r]);return new n(f)},children:function(i){for(var e=[],u,r,f=0;f<this.length;f++)for(u=this[f].childNodes,r=0;r<u.length;r++)i?u[r].nodeType===1&&t(u[r]).is(i)&&e.push(u[r]):u[r].nodeType===1&&e.push(u[r]);return new n(t.unique(e))},remove:function(){for(var n=0;n<this.length;n++)this[n].parentNode&&this[n].parentNode.removeChild(this[n]);return this},add:function(){for(var n=this,r,u,i=0;i<arguments.length;i++)for(u=t(arguments[i]),r=0;r<u.length;r++)n[n.length]=u[r],n.length++;return n}},t.fn=n.prototype,t.unique=function(n){for(var i=[],t=0;t<n.length;t++)i.indexOf(n[t])===-1&&i.push(n[t]);return i},t}(),f=["jQuery","Zepto","Dom7"],u=0;u<f.length;u++)window[f[u]]&&e(window[f[u]]);r=typeof i=="undefined"?window.Dom7||window.Zepto||window.jQuery:i;r&&("transitionEnd"in r.fn||(r.fn.transitionEnd=function(n){function u(f){if(f.target===this)for(n.call(this,f),t=0;t<i.length;t++)r.off(i[t],u)}var i=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],t,r=this;if(n)for(t=0;t<i.length;t++)r.on(i[t],u);return this}),"transform"in r.fn||(r.fn.transform=function(n){for(var t,i=0;i<this.length;i++)t=this[i].style,t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=n;return this}),"transition"in r.fn||(r.fn.transition=function(n){var i,t;for(typeof n!="string"&&(n=n+"ms"),i=0;i<this.length;i++)t=this[i].style,t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=n;return this}));window.Swiper=t}();typeof module!="undefined"?module.exports=window.Swiper:typeof define=="function"&&define.amd&&define([],function(){"use strict";return window.Swiper});!function(n,t){"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(n)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(this,function(n){function o(n){this.$container;this.constraints=null;this.__$tooltip;this.__init(n)}function e(t,i){var r=!0;return n.each(t,function(n){if(void 0===i[n]||t[n]!==i[n])return(r=!1,!1)}),r}function f(i){var r=i.attr("id"),u=r?t.window.document.getElementById(r):null;return u?u===i[0]:n.contains(t.window.document.body,i[0])}function h(){var t;if(!i)return!1;var f=i.document.body||i.document.documentElement,r=f.style,n="transition",u=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof r[n])return!0;for(n=n.charAt(0).toUpperCase()+n.substr(1),t=0;t<u.length;t++)if("string"==typeof r[u[t]+n])return!0;return!1}var r={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:"body",plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},i="undefined"!=typeof window?window:null,t={hasTouchCapability:!(!i||!("ontouchstart"in i||i.DocumentTouch&&i.document instanceof i.DocumentTouch||i.navigator.maxTouchPoints)),hasTransitions:h(),IE:!1,semVer:"4.1.4",window:i},s=function(){this.__$emitterPrivate=n({});this.__$emitterPublic=n({});this.__instancesLatestArr=[];this.__plugins={};this._env=t},u;s.prototype={__bridge:function(t,i,u){var e,f;return i[u]||(e=function(){},e.prototype=t,f=new e,f.__init&&f.__init(i),n.each(t,function(n){0!=n.indexOf("__")&&(i[n]?r.debug&&console.log("The "+n+" method of the "+u+" plugin conflicts with another plugin or native methods"):(i[n]=function(){return f[n].apply(f,Array.prototype.slice.apply(arguments))},i[n].bridged=f))}),i[u]=f),this},__setWindow:function(n){return t.window=n,this},_getRuler:function(n){return new o(n)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(t){var i=this,r,u;if("string"==typeof t)return r=t,u=null,r.indexOf(".")>0?u=i.__plugins[r]:n.each(i.__plugins,function(n,t){if(t.name.substring(t.name.length-r.length-1)=="."+r)return(u=t,!1)}),u;if(t.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return i.__plugins[t.name]=t,t.core&&i.__bridge(t.core,i,t.name),this},_trigger:function(){var n=Array.prototype.slice.apply(arguments);return"string"==typeof n[0]&&(n[0]={type:n[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,n),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,n),this},instances:function(t){var i=[],r=t||".tooltipstered";return n(r).each(function(){var t=n(this),r=t.data("tooltipster-ns");r&&n.each(r,function(n,r){i.push(t.data(r))})}),i},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(t){var i=t?t+" ":"";return n(i+".tooltipstered").toArray()},setDefaults:function(t){return n.extend(r,t),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}};n.tooltipster=new s;n.Tooltipster=function(t,i){this.__callbacks={close:[],open:[]};this.__closingTime;this.__Content;this.__contentBcr;this.__destroyed=!1;this.__destroying=!1;this.__$emitterPrivate=n({});this.__$emitterPublic=n({});this.__enabled=!0;this.__garbageCollector;this.__Geometry;this.__lastPosition;this.__namespace="tooltipster-"+Math.round(1e6*Math.random());this.__options;this.__$originParents;this.__pointerIsOverOrigin=!1;this.__previousThemes=[];this.__state="closed";this.__timeouts={close:[],open:null};this.__touchEvents=[];this.__tracker=null;this._$origin;this._$tooltip;this.__init(t,i)};n.Tooltipster.prototype={__init:function(i,u){var f=this,e,o,s;(f._$origin=n(i),f.__options=n.extend(!0,{},r,u),f.__optionsFormat(),!t.IE||t.IE>=f.__options.IEmin)?(e=null,(void 0===f._$origin.data("tooltipster-initialTitle")&&(e=f._$origin.attr("title"),void 0===e&&(e=null),f._$origin.data("tooltipster-initialTitle",e)),null!==f.__options.content)?f.__contentSet(f.__options.content):(s=f._$origin.attr("data-tooltip-content"),s&&(o=n(s)),o&&o[0]?f.__contentSet(o.first()):f.__contentSet(e)),f._$origin.removeAttr("title").addClass("tooltipstered"),f.__prepareOrigin(),f.__prepareGC(),n.each(f.__options.plugins,function(n,t){f._plug(t)}),t.hasTouchCapability&&n("body").on("touchmove."+f.__namespace+"-triggerOpen",function(n){f._touchRecordEvent(n)}),f._on("created",function(){f.__prepareTooltip()})._on("repositioned",function(n){f.__lastPosition=n.position})):f.__options.disabled=!0},__contentInsert:function(){var n=this,i=n._$tooltip.find(".tooltipster-content"),t=n.__Content,r=function(n){t=n};return n._trigger({type:"format",content:n.__Content,format:r}),n.__options.functionFormat&&(t=n.__options.functionFormat.call(n,n,{origin:n._$origin[0]},n.__Content)),"string"!=typeof t||n.__options.contentAsHTML?i.empty().append(t):i.text(t),n},__contentSet:function(t){return t instanceof n&&this.__options.contentCloning&&(t=t.clone(!0)),this.__Content=t,this._trigger({type:"updated",content:t}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.");},__geometry:function(){var e=this,c=e._$origin,y=e._$origin.is("area"),k,p,r,u,it;y&&(k=e._$origin.parent().attr("name"),c=n('img[usemap="#'+k+'"]'));var f=c[0].getBoundingClientRect(),d=n(t.window.document),g=n(t.window),l=c,i={available:{document:null,window:null},document:{size:{height:d.height(),width:d.width()}},window:{scroll:{left:t.window.scrollX||t.window.document.documentElement.scrollLeft,top:t.window.scrollY||t.window.document.documentElement.scrollTop},size:{height:g.height(),width:g.width()}},origin:{fixedLineage:!1,offset:{},size:{height:f.bottom-f.top,width:f.right-f.left},usemapImage:y?c[0]:null,windowOffset:{bottom:f.bottom,left:f.left,right:f.right,top:f.top}}};if(y&&(p=e._$origin.attr("shape"),r=e._$origin.attr("coords"),r&&(r=r.split(","),n.map(r,function(n,t){r[t]=parseInt(n)})),"default"!=p))switch(p){case"circle":var rt=r[0],ut=r[1],w=r[2],ft=ut-w,et=rt-w;i.origin.size.height=2*w;i.origin.size.width=i.origin.size.height;i.origin.windowOffset.left+=et;i.origin.windowOffset.top+=ft;break;case"rect":var nt=r[0],tt=r[1],ot=r[2],st=r[3];i.origin.size.height=st-tt;i.origin.size.width=ot-nt;i.origin.windowOffset.left+=nt;i.origin.windowOffset.top+=tt;break;case"poly":for(var o=0,s=0,a=0,v=0,b="even",h=0;h<r.length;h++)u=r[h],"even"==b?(u>a&&(a=u,0===h&&(o=a)),o>u&&(o=u),b="odd"):(u>v&&(v=u,1==h&&(s=v)),s>u&&(s=u),b="even");i.origin.size.height=v-s;i.origin.size.width=a-o;i.origin.windowOffset.left+=o;i.origin.windowOffset.top+=s}for(it=function(n){i.origin.size.height=n.height;i.origin.windowOffset.left=n.left;i.origin.windowOffset.top=n.top;i.origin.size.width=n.width},e._trigger({type:"geometry",edit:it,geometry:{height:i.origin.size.height,left:i.origin.windowOffset.left,top:i.origin.windowOffset.top,width:i.origin.size.width}}),i.origin.windowOffset.right=i.origin.windowOffset.left+i.origin.size.width,i.origin.windowOffset.bottom=i.origin.windowOffset.top+i.origin.size.height,i.origin.offset.left=i.origin.windowOffset.left+i.window.scroll.left,i.origin.offset.top=i.origin.windowOffset.top+i.window.scroll.top,i.origin.offset.bottom=i.origin.offset.top+i.origin.size.height,i.origin.offset.right=i.origin.offset.left+i.origin.size.width,i.available.document={bottom:{height:i.document.size.height-i.origin.offset.bottom,width:i.document.size.width},left:{height:i.document.size.height,width:i.origin.offset.left},right:{height:i.document.size.height,width:i.document.size.width-i.origin.offset.right},top:{height:i.origin.offset.top,width:i.document.size.width}},i.available.window={bottom:{height:Math.max(i.window.size.height-Math.max(i.origin.windowOffset.bottom,0),0),width:i.window.size.width},left:{height:i.window.size.height,width:Math.max(i.origin.windowOffset.left,0)},right:{height:i.window.size.height,width:Math.max(i.window.size.width-Math.max(i.origin.windowOffset.right,0),0)},top:{height:Math.max(i.origin.windowOffset.top,0),width:i.window.size.width}};"html"!=l[0].tagName.toLowerCase();){if("fixed"==l.css("position")){i.origin.fixedLineage=!0;break}l=l.parent()}return i},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),"string"==typeof this.__options.parent&&(this.__options.parent=n(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var t=this;return t.__options.selfDestruction?t.__garbageCollector=setInterval(function(){var i=(new Date).getTime();t.__touchEvents=n.grep(t.__touchEvents,function(n){return i-n.time>6e4});f(t._$origin)||t.destroy()},2e4):clearInterval(t.__garbageCollector),t},__prepareOrigin:function(){var n=this,i;return(n._$origin.off("."+n.__namespace+"-triggerOpen"),t.hasTouchCapability&&n._$origin.on("touchstart."+n.__namespace+"-triggerOpen touchend."+n.__namespace+"-triggerOpen touchcancel."+n.__namespace+"-triggerOpen",function(t){n._touchRecordEvent(t)}),n.__options.triggerOpen.click||n.__options.triggerOpen.tap&&t.hasTouchCapability)&&(i="",n.__options.triggerOpen.click&&(i+="click."+n.__namespace+"-triggerOpen "),n.__options.triggerOpen.tap&&t.hasTouchCapability&&(i+="touchend."+n.__namespace+"-triggerOpen"),n._$origin.on(i,function(t){n._touchIsMeaningfulEvent(t)&&n._open(t)})),(n.__options.triggerOpen.mouseenter||n.__options.triggerOpen.touchstart&&t.hasTouchCapability)&&(i="",n.__options.triggerOpen.mouseenter&&(i+="mouseenter."+n.__namespace+"-triggerOpen "),n.__options.triggerOpen.touchstart&&t.hasTouchCapability&&(i+="touchstart."+n.__namespace+"-triggerOpen"),n._$origin.on(i,function(t){!n._touchIsTouchEvent(t)&&n._touchIsEmulatedEvent(t)||(n.__pointerIsOverOrigin=!0,n._openShortly(t))})),(n.__options.triggerClose.mouseleave||n.__options.triggerClose.touchleave&&t.hasTouchCapability)&&(i="",n.__options.triggerClose.mouseleave&&(i+="mouseleave."+n.__namespace+"-triggerOpen "),n.__options.triggerClose.touchleave&&t.hasTouchCapability&&(i+="touchend."+n.__namespace+"-triggerOpen touchcancel."+n.__namespace+"-triggerOpen"),n._$origin.on(i,function(t){n._touchIsMeaningfulEvent(t)&&(n.__pointerIsOverOrigin=!1)})),n},__prepareTooltip:function(){var t=this,i=t.__options.interactive?"auto":"";return t._$tooltip.attr("id",t.__namespace).css({"pointer-events":i,zIndex:t.__options.zIndex}),n.each(t.__previousThemes,function(n,i){t._$tooltip.removeClass(i)}),n.each(t.__options.theme,function(n,i){t._$tooltip.addClass(i)}),t.__previousThemes=n.merge([],t.__options.theme),t},__scrollHandler:function(i){var r=this,u,f,e,o;return r.__options.triggerClose.scroll?r._close(i):(i.target===t.window.document?r.__Geometry.origin.fixedLineage||r.__options.repositionOnScroll&&r.reposition(i):(u=r.__geometry(),f=!1,("fixed"!=r._$origin.css("position")&&r.__$originParents.each(function(t,i){var e=n(i),o=e.css("overflow-x"),s=e.css("overflow-y"),r;return("visible"!=o||"visible"!=s)&&((r=i.getBoundingClientRect(),"visible"!=o&&(u.origin.windowOffset.left<r.left||u.origin.windowOffset.right>r.right))||"visible"!=s&&(u.origin.windowOffset.top<r.top||u.origin.windowOffset.bottom>r.bottom))?(f=!0,!1):"fixed"==e.css("position")?!1:void 0}),f)?r._$tooltip.css("visibility","hidden"):(r._$tooltip.css("visibility","visible"),r.__options.repositionOnScroll)?r.reposition(i):(e=u.origin.offset.left-r.__Geometry.origin.offset.left,o=u.origin.offset.top-r.__Geometry.origin.offset.top,r._$tooltip.css({left:r.__lastPosition.coord.left+e,top:r.__lastPosition.coord.top+o}))),r._trigger({type:"scroll",event:i})),r},__stateSet:function(n){return this.__state=n,this._trigger({type:"state",state:n}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,n.each(this.__timeouts.close,function(n,t){clearTimeout(t)}),this.__timeouts.close=[],this},__trackerStart:function(){var n=this,t=n._$tooltip.find(".tooltipster-content");return n.__options.trackTooltip&&(n.__contentBcr=t[0].getBoundingClientRect()),n.__tracker=setInterval(function(){var i,r,u;f(n._$origin)&&f(n._$tooltip)?(n.__options.trackOrigin&&(i=n.__geometry(),r=!1,e(i.origin.size,n.__Geometry.origin.size)&&(n.__Geometry.origin.fixedLineage?e(i.origin.windowOffset,n.__Geometry.origin.windowOffset)&&(r=!0):e(i.origin.offset,n.__Geometry.origin.offset)&&(r=!0)),r||(n.__options.triggerClose.mouseleave?n._close():n.reposition())),n.__options.trackTooltip&&(u=t[0].getBoundingClientRect(),u.height===n.__contentBcr.height&&u.width===n.__contentBcr.width||(n.reposition(),n.__contentBcr=u))):n._close()},n.__options.trackerInterval),n},_close:function(i,r){var u=this,o=!0,f,e;if(u._trigger({type:"close",event:i,stop:function(){o=!1}}),o||u.__destroying)if(r&&u.__callbacks.close.push(r),u.__callbacks.open=[],u.__timeoutsClear(),f=function(){n.each(u.__callbacks.close,function(n,t){t.call(u,u,{event:i,origin:u._$origin[0]})});u.__callbacks.close=[]},"closed"!=u.__state){var s=!0,c=new Date,l=c.getTime(),h=l+u.__options.animationDuration[1];("disappearing"==u.__state&&h>u.__closingTime&&(s=!1),s)&&(u.__closingTime=h,"disappearing"!=u.__state&&u.__stateSet("disappearing"),e=function(){clearInterval(u.__tracker);u._trigger({type:"closing",event:i});u._$tooltip.off("."+u.__namespace+"-triggerClose").removeClass("tooltipster-dying");n(t.window).off("."+u.__namespace+"-triggerClose");u.__$originParents.each(function(t,i){n(i).off("scroll."+u.__namespace+"-triggerClose")});u.__$originParents=null;n("body").off("."+u.__namespace+"-triggerClose");u._$origin.off("."+u.__namespace+"-triggerClose");u._off("dismissable");u.__stateSet("closed");u._trigger({type:"after",event:i});u.__options.functionAfter&&u.__options.functionAfter.call(u,u,{event:i,origin:u._$origin[0]});f()},t.hasTransitions?(u._$tooltip.css({"-moz-animation-duration":u.__options.animationDuration[1]+"ms","-ms-animation-duration":u.__options.animationDuration[1]+"ms","-o-animation-duration":u.__options.animationDuration[1]+"ms","-webkit-animation-duration":u.__options.animationDuration[1]+"ms","animation-duration":u.__options.animationDuration[1]+"ms","transition-duration":u.__options.animationDuration[1]+"ms"}),u._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),u.__options.animationDuration[1]>0&&u._$tooltip.delay(u.__options.animationDuration[1]),u._$tooltip.queue(e)):u._$tooltip.stop().fadeOut(u.__options.animationDuration[1],e))}else f();return u},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(i,r){var u=this,s,h,e,o;if(!u.__destroying&&f(u._$origin)&&u.__enabled&&(s=!0,"closed"==u.__state&&(u._trigger({type:"before",event:i,stop:function(){s=!1}}),s&&u.__options.functionBefore&&(s=u.__options.functionBefore.call(u,u,{event:i,origin:u._$origin[0]}))),s!==!1&&null!==u.__Content)){if(r&&u.__callbacks.open.push(r),u.__callbacks.close=[],u.__timeoutsClear(),e=function(){"stable"!=u.__state&&u.__stateSet("stable");n.each(u.__callbacks.open,function(n,t){t.call(u,u,{origin:u._$origin[0],tooltip:u._$tooltip[0]})});u.__callbacks.open=[]},"closed"!==u.__state)h=0,"disappearing"===u.__state?(u.__stateSet("appearing"),t.hasTransitions?(u._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),u.__options.animationDuration[0]>0&&u._$tooltip.delay(u.__options.animationDuration[0]),u._$tooltip.queue(e)):u._$tooltip.stop().fadeIn(e)):"stable"==u.__state&&e();else{if(u.__stateSet("appearing"),h=u.__options.animationDuration[0],u.__contentInsert(),u.reposition(i,!0),t.hasTransitions?(u._$tooltip.addClass("tooltipster-"+u.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":u.__options.animationDuration[0]+"ms","-ms-animation-duration":u.__options.animationDuration[0]+"ms","-o-animation-duration":u.__options.animationDuration[0]+"ms","-webkit-animation-duration":u.__options.animationDuration[0]+"ms","animation-duration":u.__options.animationDuration[0]+"ms","transition-duration":u.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=u.__state&&(u._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),u.__options.animationDuration[0]>0&&u._$tooltip.delay(u.__options.animationDuration[0]),u._$tooltip.queue(e))},0)):u._$tooltip.css("display","none").fadeIn(u.__options.animationDuration[0],e),u.__trackerStart(),n(t.window).on("resize."+u.__namespace+"-triggerClose",function(n){u.reposition(n)}).on("scroll."+u.__namespace+"-triggerClose",function(n){u.__scrollHandler(n)}),u.__$originParents=u._$origin.parents(),u.__$originParents.each(function(t,i){n(i).on("scroll."+u.__namespace+"-triggerClose",function(n){u.__scrollHandler(n)})}),u.__options.triggerClose.mouseleave||u.__options.triggerClose.touchleave&&t.hasTouchCapability){u._on("dismissable",function(n){n.dismissable?n.delay?(o=setTimeout(function(){u._close(n.event)},n.delay),u.__timeouts.close.push(o)):u._close(n):clearTimeout(o)});var c=u._$origin,l="",a="",o=null;u.__options.interactive&&(c=c.add(u._$tooltip));u.__options.triggerClose.mouseleave&&(l+="mouseenter."+u.__namespace+"-triggerClose ",a+="mouseleave."+u.__namespace+"-triggerClose ");u.__options.triggerClose.touchleave&&t.hasTouchCapability&&(l+="touchstart."+u.__namespace+"-triggerClose",a+="touchend."+u.__namespace+"-triggerClose touchcancel."+u.__namespace+"-triggerClose");c.on(a,function(n){if(u._touchIsTouchEvent(n)||!u._touchIsEmulatedEvent(n)){var t="mouseleave"==n.type?u.__options.delay:u.__options.delayTouch;u._trigger({delay:t[1],dismissable:!0,event:n,type:"dismissable"})}}).on(l,function(n){!u._touchIsTouchEvent(n)&&u._touchIsEmulatedEvent(n)||u._trigger({dismissable:!1,event:n,type:"dismissable"})})}u.__options.triggerClose.originClick&&u._$origin.on("click."+u.__namespace+"-triggerClose",function(n){u._touchIsTouchEvent(n)||u._touchIsEmulatedEvent(n)||u._close(n)});(u.__options.triggerClose.click||u.__options.triggerClose.tap&&t.hasTouchCapability)&&setTimeout(function(){if("closed"!=u.__state){var i="";u.__options.triggerClose.click&&(i+="click."+u.__namespace+"-triggerClose ");u.__options.triggerClose.tap&&t.hasTouchCapability&&(i+="touchend."+u.__namespace+"-triggerClose");n("body").on(i,function(t){u._touchIsMeaningfulEvent(t)&&(u._touchRecordEvent(t),u.__options.interactive&&n.contains(u._$tooltip[0],t.target)||u._close(t))});u.__options.triggerClose.tap&&t.hasTouchCapability&&n("body").on("touchstart."+u.__namespace+"-triggerClose",function(n){u._touchRecordEvent(n)})}},0);u._trigger("ready");u.__options.functionReady&&u.__options.functionReady.call(u,u,{origin:u._$origin[0],tooltip:u._$tooltip[0]})}u.__options.timer>0&&(o=setTimeout(function(){u._close()},u.__options.timer+h),u.__timeouts.close.push(o))}return u},_openShortly:function(n){var t=this,r=!0,i;return"stable"!=t.__state&&"appearing"!=t.__state&&!t.__timeouts.open&&(t._trigger({type:"start",event:n,stop:function(){r=!1}}),r)&&(i=0==n.type.indexOf("touch")?t.__options.delayTouch:t.__options.delay,i[0]?t.__timeouts.open=setTimeout(function(){t.__timeouts.open=null;t.__pointerIsOverOrigin&&t._touchIsMeaningfulEvent(n)?(t._trigger("startend"),t._open(n)):t._trigger("startcancel")},i[0]):(t._trigger("startend"),t._open(n))),t},_optionsExtract:function(t,i){var f=this,u=n.extend(!0,{},i),r=f.__options[t];return r||(r={},n.each(i,function(n){var t=f.__options[n];void 0!==t&&(r[n]=t)})),n.each(u,function(t,i){void 0!==r[t]&&("object"!=typeof i||i instanceof Array||null==i||"object"!=typeof r[t]||r[t]instanceof Array||null==r[t]?u[t]=r[t]:n.extend(u[t],r[t]))}),u},_plug:function(t){var i=n.tooltipster._plugin(t);if(!i)throw new Error('The "'+t+'" plugin is not defined');return i.instance&&n.tooltipster.__bridge(i.instance,this,i.name),this},_touchIsEmulatedEvent:function(n){for(var i,r=!1,u=(new Date).getTime(),t=this.__touchEvents.length-1;t>=0;t--){if(i=this.__touchEvents[t],!(u-i.time<500))break;i.target===n.target&&(r=!0)}return r},_touchIsMeaningfulEvent:function(n){return this._touchIsTouchEvent(n)&&!this._touchSwiped(n.target)||!this._touchIsTouchEvent(n)&&!this._touchIsEmulatedEvent(n)},_touchIsTouchEvent:function(n){return 0==n.type.indexOf("touch")},_touchRecordEvent:function(n){return this._touchIsTouchEvent(n)&&(n.time=(new Date).getTime(),this.__touchEvents.push(n)),this},_touchSwiped:function(n){for(var i,r=!1,t=this.__touchEvents.length-1;t>=0;t--){if(i=this.__touchEvents[t],"touchmove"==i.type){r=!0;break}if("touchstart"==i.type&&n===i.target)break}return r},_trigger:function(){var t=Array.prototype.slice.apply(arguments);return"string"==typeof t[0]&&(t[0]={type:t[0]}),t[0].instance=this,t[0].origin=this._$origin?this._$origin[0]:null,t[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,t),n.tooltipster._trigger.apply(n.tooltipster,t),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,t),this},_unplug:function(t){var i=this,r;return i[t]&&(r=n.tooltipster._plugin(t),r.instance&&n.each(r.instance,function(n){i[n]&&i[n].bridged===i[t]&&delete i[n]}),i[t].__destroy&&i[t].__destroy(),delete i[t]),i},close:function(n){return this.__destroyed?this.__destroyError():this._close(null,n),this},content:function(n){var i=this,r;return void 0===n?i.__Content:(i.__destroyed?i.__destroyError():(i.__contentSet(n),null!==i.__Content)?"closed"!==i.__state&&(i.__contentInsert(),i.reposition(),i.__options.updateAnimation)&&(t.hasTransitions?(r=i.__options.updateAnimation,i._$tooltip.addClass("tooltipster-update-"+r),setTimeout(function(){"closed"!=i.__state&&i._$tooltip.removeClass("tooltipster-update-"+r)},1e3)):i._$tooltip.fadeTo(200,.5,function(){"closed"!=i.__state&&i._$tooltip.fadeTo(200,1)})):i._close(),i)},destroy:function(){var t=this;return t.__destroyed?t.__destroyError():t.__destroying||(t.__destroying=!0,t._close(null,function(){var i,r;t._trigger("destroy");t.__destroying=!1;t.__destroyed=!0;t._$origin.removeData(t.__namespace).off("."+t.__namespace+"-triggerOpen");n("body").off("."+t.__namespace+"-triggerOpen");i=t._$origin.data("tooltipster-ns");i&&(1===i.length?(r=null,"previous"==t.__options.restoration?r=t._$origin.data("tooltipster-initialTitle"):"current"==t.__options.restoration&&(r="string"==typeof t.__Content?t.__Content:n("<div><\/div>").append(t.__Content).html()),r&&t._$origin.attr("title",r),t._$origin.removeClass("tooltipstered"),t._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")):(i=n.grep(i,function(n){return n!==t.__namespace}),t._$origin.data("tooltipster-ns",i)));t._trigger("destroyed");t._off();t.off();t.__Content=null;t.__$emitterPrivate=null;t.__$emitterPublic=null;t.__options.parent=null;t._$origin=null;t._$tooltip=null;n.tooltipster.__instancesLatestArr=n.grep(n.tooltipster.__instancesLatestArr,function(n){return t!==n});clearInterval(t.__garbageCollector)})),t},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(n){return this.close(n)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(n){return this.__destroyed||this.__destroying?this.__destroyError():this._open(null,n),this},option:function(t,i){return void 0===i?this.__options[t]:(this.__destroyed?this.__destroyError():(this.__options[t]=i,this.__optionsFormat(),n.inArray(t,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===t&&this.__prepareGC()),this)},reposition:function(n,t){var i=this;return i.__destroyed?i.__destroyError():(f(i._$tooltip)||t)&&(t||i._$tooltip.detach(),i.__Geometry=i.__geometry(),i._trigger({type:"reposition",event:n,helper:{geo:i.__Geometry}})),i},show:function(n){return this.open(n)},status:function(){return{destroyed:this.__destroyed,destroying:this.__destroying,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}};n.fn.tooltipster=function(){var t=Array.prototype.slice.apply(arguments),f="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.",i;if(0===this.length)return this;if("string"==typeof t[0])return i="#*$~&",this.each(function(){var e=n(this).data("tooltipster-ns"),r=e?n(this).data(e[0]):null,u;if(!r)throw new Error("You called Tooltipster's \""+t[0]+'" method on an uninitialized element');if("function"!=typeof r[t[0]])throw new Error('Unknown method "'+t[0]+'"');return this.length>1&&"content"==t[0]&&(t[1]instanceof n||"object"==typeof t[1]&&null!=t[1]&&t[1].tagName)&&!r.__options.contentCloning&&r.__options.debug&&console.log(f),u=r[t[0]](t[1],t[2]),u!==r||"instance"===t[0]?(i=u,!1):void 0}),"#*$~&"!==i?i:this;n.tooltipster.__instancesLatestArr=[];var e=t[0]&&void 0!==t[0].multiple,l=e&&t[0].multiple||!e&&r.multiple,o=t[0]&&void 0!==t[0].content,u=o&&t[0].content||!o&&r.content,s=t[0]&&void 0!==t[0].contentCloning,a=s&&t[0].contentCloning||!s&&r.contentCloning,h=t[0]&&void 0!==t[0].debug,c=h&&t[0].debug||!h&&r.debug;return this.length>1&&(u instanceof n||"object"==typeof u&&null!=u&&u.tagName)&&!a&&c&&console.log(f),this.each(function(){var u=!1,f=n(this),r=f.data("tooltipster-ns"),i=null;r?l?u=!0:c&&(console.log("Tooltipster: one or more tooltips are already attached to the element below. Ignoring."),console.log(this)):u=!0;u&&(i=new n.Tooltipster(this,t[0]),r||(r=[]),r.push(i.__namespace),f.data("tooltipster-ns",r),f.data(i.__namespace,i),i.__options.functionInit&&i.__options.functionInit.call(i,i,{origin:this}),i._trigger("init"));n.tooltipster.__instancesLatestArr.push(i)}),this};o.prototype={__init:function(t){this.__$tooltip=t;this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto");this.$container=n('<div class="tooltipster-ruler"><\/div>').append(this.__$tooltip).appendTo("body")},__forceRedraw:function(){var n=this.__$tooltip.parent();this.__$tooltip.detach();this.__$tooltip.appendTo(n)},constrain:function(n,t){return this.constraints={width:n,height:t},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:n}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""});this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){var n,i;if(this.__forceRedraw(),n=this.__$tooltip[0].getBoundingClientRect(),i={size:{height:n.height||n.bottom,width:n.width||n.right}},this.constraints){var r=this.__$tooltip.find(".tooltipster-content"),f=this.__$tooltip.outerHeight(),e=r[0].getBoundingClientRect(),u={height:f<=this.constraints.height,width:n.width<=this.constraints.width&&e.width>=r[0].scrollWidth-1};i.fits=u.height&&u.width}return t.IE&&t.IE<=11&&(i.size.width=Math.ceil(i.size.width)+1),i}};u=navigator.userAgent.toLowerCase();-1!=u.indexOf("msie")?t.IE=parseInt(u.split("msie")[1]):-1!==u.toLowerCase().indexOf("trident")&&-1!==u.indexOf(" rv:11")?t.IE=11:-1!=u.toLowerCase().indexOf("edge/")&&(t.IE=parseInt(u.toLowerCase().split("edge/")[1]))});!function(n,t){"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(n)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(this,function(n){function s(n){this.$container;this.constraints=null;this.__$tooltip;this.__init(n)}function e(t,i){var r=!0;return n.each(t,function(n){if(void 0===i[n]||t[n]!==i[n])return(r=!1,!1)}),r}function f(i){var r=i.attr("id"),u=r?t.window.document.getElementById(r):null;return u?u===i[0]:n.contains(t.window.document.body,i[0])}function c(){var t;if(!i)return!1;var f=i.document.body||i.document.documentElement,r=f.style,n="transition",u=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof r[n])return!0;for(n=n.charAt(0).toUpperCase()+n.substr(1),t=0;t<u.length;t++)if("string"==typeof r[u[t]+n])return!0;return!1}var r={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:"body",plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},i="undefined"!=typeof window?window:null,t={hasTouchCapability:!(!i||!("ontouchstart"in i||i.DocumentTouch&&i.document instanceof i.DocumentTouch||i.navigator.maxTouchPoints)),hasTransitions:c(),IE:!1,semVer:"4.1.4",window:i},h=function(){this.__$emitterPrivate=n({});this.__$emitterPublic=n({});this.__instancesLatestArr=[];this.__plugins={};this._env=t},u,o;return h.prototype={__bridge:function(t,i,u){var e,f;return i[u]||(e=function(){},e.prototype=t,f=new e,f.__init&&f.__init(i),n.each(t,function(n){0!=n.indexOf("__")&&(i[n]?r.debug&&console.log("The "+n+" method of the "+u+" plugin conflicts with another plugin or native methods"):(i[n]=function(){return f[n].apply(f,Array.prototype.slice.apply(arguments))},i[n].bridged=f))}),i[u]=f),this},__setWindow:function(n){return t.window=n,this},_getRuler:function(n){return new s(n)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(t){var i=this,r,u;if("string"==typeof t)return r=t,u=null,r.indexOf(".")>0?u=i.__plugins[r]:n.each(i.__plugins,function(n,t){if(t.name.substring(t.name.length-r.length-1)=="."+r)return(u=t,!1)}),u;if(t.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return i.__plugins[t.name]=t,t.core&&i.__bridge(t.core,i,t.name),this},_trigger:function(){var n=Array.prototype.slice.apply(arguments);return"string"==typeof n[0]&&(n[0]={type:n[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,n),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,n),this},instances:function(t){var i=[],r=t||".tooltipstered";return n(r).each(function(){var t=n(this),r=t.data("tooltipster-ns");r&&n.each(r,function(n,r){i.push(t.data(r))})}),i},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(t){var i=t?t+" ":"";return n(i+".tooltipstered").toArray()},setDefaults:function(t){return n.extend(r,t),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},n.tooltipster=new h,n.Tooltipster=function(t,i){this.__callbacks={close:[],open:[]};this.__closingTime;this.__Content;this.__contentBcr;this.__destroyed=!1;this.__destroying=!1;this.__$emitterPrivate=n({});this.__$emitterPublic=n({});this.__enabled=!0;this.__garbageCollector;this.__Geometry;this.__lastPosition;this.__namespace="tooltipster-"+Math.round(1e6*Math.random());this.__options;this.__$originParents;this.__pointerIsOverOrigin=!1;this.__previousThemes=[];this.__state="closed";this.__timeouts={close:[],open:null};this.__touchEvents=[];this.__tracker=null;this._$origin;this._$tooltip;this.__init(t,i)},n.Tooltipster.prototype={__init:function(i,u){var f=this,e,o,s;(f._$origin=n(i),f.__options=n.extend(!0,{},r,u),f.__optionsFormat(),!t.IE||t.IE>=f.__options.IEmin)?(e=null,(void 0===f._$origin.data("tooltipster-initialTitle")&&(e=f._$origin.attr("title"),void 0===e&&(e=null),f._$origin.data("tooltipster-initialTitle",e)),null!==f.__options.content)?f.__contentSet(f.__options.content):(s=f._$origin.attr("data-tooltip-content"),s&&(o=n(s)),o&&o[0]?f.__contentSet(o.first()):f.__contentSet(e)),f._$origin.removeAttr("title").addClass("tooltipstered"),f.__prepareOrigin(),f.__prepareGC(),n.each(f.__options.plugins,function(n,t){f._plug(t)}),t.hasTouchCapability&&n("body").on("touchmove."+f.__namespace+"-triggerOpen",function(n){f._touchRecordEvent(n)}),f._on("created",function(){f.__prepareTooltip()})._on("repositioned",function(n){f.__lastPosition=n.position})):f.__options.disabled=!0},__contentInsert:function(){var n=this,i=n._$tooltip.find(".tooltipster-content"),t=n.__Content,r=function(n){t=n};return n._trigger({type:"format",content:n.__Content,format:r}),n.__options.functionFormat&&(t=n.__options.functionFormat.call(n,n,{origin:n._$origin[0]},n.__Content)),"string"!=typeof t||n.__options.contentAsHTML?i.empty().append(t):i.text(t),n},__contentSet:function(t){return t instanceof n&&this.__options.contentCloning&&(t=t.clone(!0)),this.__Content=t,this._trigger({type:"updated",content:t}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.");},__geometry:function(){var e=this,c=e._$origin,y=e._$origin.is("area"),k,p,r,u,it;y&&(k=e._$origin.parent().attr("name"),c=n('img[usemap="#'+k+'"]'));var f=c[0].getBoundingClientRect(),d=n(t.window.document),g=n(t.window),l=c,i={available:{document:null,window:null},document:{size:{height:d.height(),width:d.width()}},window:{scroll:{left:t.window.scrollX||t.window.document.documentElement.scrollLeft,top:t.window.scrollY||t.window.document.documentElement.scrollTop},size:{height:g.height(),width:g.width()}},origin:{fixedLineage:!1,offset:{},size:{height:f.bottom-f.top,width:f.right-f.left},usemapImage:y?c[0]:null,windowOffset:{bottom:f.bottom,left:f.left,right:f.right,top:f.top}}};if(y&&(p=e._$origin.attr("shape"),r=e._$origin.attr("coords"),r&&(r=r.split(","),n.map(r,function(n,t){r[t]=parseInt(n)})),"default"!=p))switch(p){case"circle":var rt=r[0],ut=r[1],w=r[2],ft=ut-w,et=rt-w;i.origin.size.height=2*w;i.origin.size.width=i.origin.size.height;i.origin.windowOffset.left+=et;i.origin.windowOffset.top+=ft;break;case"rect":var nt=r[0],tt=r[1],ot=r[2],st=r[3];i.origin.size.height=st-tt;i.origin.size.width=ot-nt;i.origin.windowOffset.left+=nt;i.origin.windowOffset.top+=tt;break;case"poly":for(var o=0,s=0,a=0,v=0,b="even",h=0;h<r.length;h++)u=r[h],"even"==b?(u>a&&(a=u,0===h&&(o=a)),o>u&&(o=u),b="odd"):(u>v&&(v=u,1==h&&(s=v)),s>u&&(s=u),b="even");i.origin.size.height=v-s;i.origin.size.width=a-o;i.origin.windowOffset.left+=o;i.origin.windowOffset.top+=s}for(it=function(n){i.origin.size.height=n.height;i.origin.windowOffset.left=n.left;i.origin.windowOffset.top=n.top;i.origin.size.width=n.width},e._trigger({type:"geometry",edit:it,geometry:{height:i.origin.size.height,left:i.origin.windowOffset.left,top:i.origin.windowOffset.top,width:i.origin.size.width}}),i.origin.windowOffset.right=i.origin.windowOffset.left+i.origin.size.width,i.origin.windowOffset.bottom=i.origin.windowOffset.top+i.origin.size.height,i.origin.offset.left=i.origin.windowOffset.left+i.window.scroll.left,i.origin.offset.top=i.origin.windowOffset.top+i.window.scroll.top,i.origin.offset.bottom=i.origin.offset.top+i.origin.size.height,i.origin.offset.right=i.origin.offset.left+i.origin.size.width,i.available.document={bottom:{height:i.document.size.height-i.origin.offset.bottom,width:i.document.size.width},left:{height:i.document.size.height,width:i.origin.offset.left},right:{height:i.document.size.height,width:i.document.size.width-i.origin.offset.right},top:{height:i.origin.offset.top,width:i.document.size.width}},i.available.window={bottom:{height:Math.max(i.window.size.height-Math.max(i.origin.windowOffset.bottom,0),0),width:i.window.size.width},left:{height:i.window.size.height,width:Math.max(i.origin.windowOffset.left,0)},right:{height:i.window.size.height,width:Math.max(i.window.size.width-Math.max(i.origin.windowOffset.right,0),0)},top:{height:Math.max(i.origin.windowOffset.top,0),width:i.window.size.width}};"html"!=l[0].tagName.toLowerCase();){if("fixed"==l.css("position")){i.origin.fixedLineage=!0;break}l=l.parent()}return i},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),"string"==typeof this.__options.parent&&(this.__options.parent=n(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var t=this;return t.__options.selfDestruction?t.__garbageCollector=setInterval(function(){var i=(new Date).getTime();t.__touchEvents=n.grep(t.__touchEvents,function(n){return i-n.time>6e4});f(t._$origin)||t.destroy()},2e4):clearInterval(t.__garbageCollector),t},__prepareOrigin:function(){var n=this,i;return(n._$origin.off("."+n.__namespace+"-triggerOpen"),t.hasTouchCapability&&n._$origin.on("touchstart."+n.__namespace+"-triggerOpen touchend."+n.__namespace+"-triggerOpen touchcancel."+n.__namespace+"-triggerOpen",function(t){n._touchRecordEvent(t)}),n.__options.triggerOpen.click||n.__options.triggerOpen.tap&&t.hasTouchCapability)&&(i="",n.__options.triggerOpen.click&&(i+="click."+n.__namespace+"-triggerOpen "),n.__options.triggerOpen.tap&&t.hasTouchCapability&&(i+="touchend."+n.__namespace+"-triggerOpen"),n._$origin.on(i,function(t){n._touchIsMeaningfulEvent(t)&&n._open(t)})),(n.__options.triggerOpen.mouseenter||n.__options.triggerOpen.touchstart&&t.hasTouchCapability)&&(i="",n.__options.triggerOpen.mouseenter&&(i+="mouseenter."+n.__namespace+"-triggerOpen "),n.__options.triggerOpen.touchstart&&t.hasTouchCapability&&(i+="touchstart."+n.__namespace+"-triggerOpen"),n._$origin.on(i,function(t){!n._touchIsTouchEvent(t)&&n._touchIsEmulatedEvent(t)||(n.__pointerIsOverOrigin=!0,n._openShortly(t))})),(n.__options.triggerClose.mouseleave||n.__options.triggerClose.touchleave&&t.hasTouchCapability)&&(i="",n.__options.triggerClose.mouseleave&&(i+="mouseleave."+n.__namespace+"-triggerOpen "),n.__options.triggerClose.touchleave&&t.hasTouchCapability&&(i+="touchend."+n.__namespace+"-triggerOpen touchcancel."+n.__namespace+"-triggerOpen"),n._$origin.on(i,function(t){n._touchIsMeaningfulEvent(t)&&(n.__pointerIsOverOrigin=!1)})),n},__prepareTooltip:function(){var t=this,i=t.__options.interactive?"auto":"";return t._$tooltip.attr("id",t.__namespace).css({"pointer-events":i,zIndex:t.__options.zIndex}),n.each(t.__previousThemes,function(n,i){t._$tooltip.removeClass(i)}),n.each(t.__options.theme,function(n,i){t._$tooltip.addClass(i)}),t.__previousThemes=n.merge([],t.__options.theme),t},__scrollHandler:function(i){var r=this,u,f,e,o;return r.__options.triggerClose.scroll?r._close(i):(i.target===t.window.document?r.__Geometry.origin.fixedLineage||r.__options.repositionOnScroll&&r.reposition(i):(u=r.__geometry(),f=!1,("fixed"!=r._$origin.css("position")&&r.__$originParents.each(function(t,i){var e=n(i),o=e.css("overflow-x"),s=e.css("overflow-y"),r;return("visible"!=o||"visible"!=s)&&((r=i.getBoundingClientRect(),"visible"!=o&&(u.origin.windowOffset.left<r.left||u.origin.windowOffset.right>r.right))||"visible"!=s&&(u.origin.windowOffset.top<r.top||u.origin.windowOffset.bottom>r.bottom))?(f=!0,!1):"fixed"==e.css("position")?!1:void 0}),f)?r._$tooltip.css("visibility","hidden"):(r._$tooltip.css("visibility","visible"),r.__options.repositionOnScroll)?r.reposition(i):(e=u.origin.offset.left-r.__Geometry.origin.offset.left,o=u.origin.offset.top-r.__Geometry.origin.offset.top,r._$tooltip.css({left:r.__lastPosition.coord.left+e,top:r.__lastPosition.coord.top+o}))),r._trigger({type:"scroll",event:i})),r},__stateSet:function(n){return this.__state=n,this._trigger({type:"state",state:n}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,n.each(this.__timeouts.close,function(n,t){clearTimeout(t)}),this.__timeouts.close=[],this},__trackerStart:function(){var n=this,t=n._$tooltip.find(".tooltipster-content");return n.__options.trackTooltip&&(n.__contentBcr=t[0].getBoundingClientRect()),n.__tracker=setInterval(function(){var i,r,u;f(n._$origin)&&f(n._$tooltip)?(n.__options.trackOrigin&&(i=n.__geometry(),r=!1,e(i.origin.size,n.__Geometry.origin.size)&&(n.__Geometry.origin.fixedLineage?e(i.origin.windowOffset,n.__Geometry.origin.windowOffset)&&(r=!0):e(i.origin.offset,n.__Geometry.origin.offset)&&(r=!0)),r||(n.__options.triggerClose.mouseleave?n._close():n.reposition())),n.__options.trackTooltip&&(u=t[0].getBoundingClientRect(),u.height===n.__contentBcr.height&&u.width===n.__contentBcr.width||(n.reposition(),n.__contentBcr=u))):n._close()},n.__options.trackerInterval),n},_close:function(i,r){var u=this,o=!0,f,e;if(u._trigger({type:"close",event:i,stop:function(){o=!1}}),o||u.__destroying)if(r&&u.__callbacks.close.push(r),u.__callbacks.open=[],u.__timeoutsClear(),f=function(){n.each(u.__callbacks.close,function(n,t){t.call(u,u,{event:i,origin:u._$origin[0]})});u.__callbacks.close=[]},"closed"!=u.__state){var s=!0,c=new Date,l=c.getTime(),h=l+u.__options.animationDuration[1];("disappearing"==u.__state&&h>u.__closingTime&&(s=!1),s)&&(u.__closingTime=h,"disappearing"!=u.__state&&u.__stateSet("disappearing"),e=function(){clearInterval(u.__tracker);u._trigger({type:"closing",event:i});u._$tooltip.off("."+u.__namespace+"-triggerClose").removeClass("tooltipster-dying");n(t.window).off("."+u.__namespace+"-triggerClose");u.__$originParents.each(function(t,i){n(i).off("scroll."+u.__namespace+"-triggerClose")});u.__$originParents=null;n("body").off("."+u.__namespace+"-triggerClose");u._$origin.off("."+u.__namespace+"-triggerClose");u._off("dismissable");u.__stateSet("closed");u._trigger({type:"after",event:i});u.__options.functionAfter&&u.__options.functionAfter.call(u,u,{event:i,origin:u._$origin[0]});f()},t.hasTransitions?(u._$tooltip.css({"-moz-animation-duration":u.__options.animationDuration[1]+"ms","-ms-animation-duration":u.__options.animationDuration[1]+"ms","-o-animation-duration":u.__options.animationDuration[1]+"ms","-webkit-animation-duration":u.__options.animationDuration[1]+"ms","animation-duration":u.__options.animationDuration[1]+"ms","transition-duration":u.__options.animationDuration[1]+"ms"}),u._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),u.__options.animationDuration[1]>0&&u._$tooltip.delay(u.__options.animationDuration[1]),u._$tooltip.queue(e)):u._$tooltip.stop().fadeOut(u.__options.animationDuration[1],e))}else f();return u},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(i,r){var u=this,s,h,e,o;if(!u.__destroying&&f(u._$origin)&&u.__enabled&&(s=!0,"closed"==u.__state&&(u._trigger({type:"before",event:i,stop:function(){s=!1}}),s&&u.__options.functionBefore&&(s=u.__options.functionBefore.call(u,u,{event:i,origin:u._$origin[0]}))),s!==!1&&null!==u.__Content)){if(r&&u.__callbacks.open.push(r),u.__callbacks.close=[],u.__timeoutsClear(),e=function(){"stable"!=u.__state&&u.__stateSet("stable");n.each(u.__callbacks.open,function(n,t){t.call(u,u,{origin:u._$origin[0],tooltip:u._$tooltip[0]})});u.__callbacks.open=[]},"closed"!==u.__state)h=0,"disappearing"===u.__state?(u.__stateSet("appearing"),t.hasTransitions?(u._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),u.__options.animationDuration[0]>0&&u._$tooltip.delay(u.__options.animationDuration[0]),u._$tooltip.queue(e)):u._$tooltip.stop().fadeIn(e)):"stable"==u.__state&&e();else{if(u.__stateSet("appearing"),h=u.__options.animationDuration[0],u.__contentInsert(),u.reposition(i,!0),t.hasTransitions?(u._$tooltip.addClass("tooltipster-"+u.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":u.__options.animationDuration[0]+"ms","-ms-animation-duration":u.__options.animationDuration[0]+"ms","-o-animation-duration":u.__options.animationDuration[0]+"ms","-webkit-animation-duration":u.__options.animationDuration[0]+"ms","animation-duration":u.__options.animationDuration[0]+"ms","transition-duration":u.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=u.__state&&(u._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),u.__options.animationDuration[0]>0&&u._$tooltip.delay(u.__options.animationDuration[0]),u._$tooltip.queue(e))},0)):u._$tooltip.css("display","none").fadeIn(u.__options.animationDuration[0],e),u.__trackerStart(),n(t.window).on("resize."+u.__namespace+"-triggerClose",function(n){u.reposition(n)}).on("scroll."+u.__namespace+"-triggerClose",function(n){u.__scrollHandler(n)}),u.__$originParents=u._$origin.parents(),u.__$originParents.each(function(t,i){n(i).on("scroll."+u.__namespace+"-triggerClose",function(n){u.__scrollHandler(n)})}),u.__options.triggerClose.mouseleave||u.__options.triggerClose.touchleave&&t.hasTouchCapability){u._on("dismissable",function(n){n.dismissable?n.delay?(o=setTimeout(function(){u._close(n.event)},n.delay),u.__timeouts.close.push(o)):u._close(n):clearTimeout(o)});var c=u._$origin,l="",a="",o=null;u.__options.interactive&&(c=c.add(u._$tooltip));u.__options.triggerClose.mouseleave&&(l+="mouseenter."+u.__namespace+"-triggerClose ",a+="mouseleave."+u.__namespace+"-triggerClose ");u.__options.triggerClose.touchleave&&t.hasTouchCapability&&(l+="touchstart."+u.__namespace+"-triggerClose",a+="touchend."+u.__namespace+"-triggerClose touchcancel."+u.__namespace+"-triggerClose");c.on(a,function(n){if(u._touchIsTouchEvent(n)||!u._touchIsEmulatedEvent(n)){var t="mouseleave"==n.type?u.__options.delay:u.__options.delayTouch;u._trigger({delay:t[1],dismissable:!0,event:n,type:"dismissable"})}}).on(l,function(n){!u._touchIsTouchEvent(n)&&u._touchIsEmulatedEvent(n)||u._trigger({dismissable:!1,event:n,type:"dismissable"})})}u.__options.triggerClose.originClick&&u._$origin.on("click."+u.__namespace+"-triggerClose",function(n){u._touchIsTouchEvent(n)||u._touchIsEmulatedEvent(n)||u._close(n)});(u.__options.triggerClose.click||u.__options.triggerClose.tap&&t.hasTouchCapability)&&setTimeout(function(){if("closed"!=u.__state){var i="";u.__options.triggerClose.click&&(i+="click."+u.__namespace+"-triggerClose ");u.__options.triggerClose.tap&&t.hasTouchCapability&&(i+="touchend."+u.__namespace+"-triggerClose");n("body").on(i,function(t){u._touchIsMeaningfulEvent(t)&&(u._touchRecordEvent(t),u.__options.interactive&&n.contains(u._$tooltip[0],t.target)||u._close(t))});u.__options.triggerClose.tap&&t.hasTouchCapability&&n("body").on("touchstart."+u.__namespace+"-triggerClose",function(n){u._touchRecordEvent(n)})}},0);u._trigger("ready");u.__options.functionReady&&u.__options.functionReady.call(u,u,{origin:u._$origin[0],tooltip:u._$tooltip[0]})}u.__options.timer>0&&(o=setTimeout(function(){u._close()},u.__options.timer+h),u.__timeouts.close.push(o))}return u},_openShortly:function(n){var t=this,r=!0,i;return"stable"!=t.__state&&"appearing"!=t.__state&&!t.__timeouts.open&&(t._trigger({type:"start",event:n,stop:function(){r=!1}}),r)&&(i=0==n.type.indexOf("touch")?t.__options.delayTouch:t.__options.delay,i[0]?t.__timeouts.open=setTimeout(function(){t.__timeouts.open=null;t.__pointerIsOverOrigin&&t._touchIsMeaningfulEvent(n)?(t._trigger("startend"),t._open(n)):t._trigger("startcancel")},i[0]):(t._trigger("startend"),t._open(n))),t},_optionsExtract:function(t,i){var f=this,u=n.extend(!0,{},i),r=f.__options[t];return r||(r={},n.each(i,function(n){var t=f.__options[n];void 0!==t&&(r[n]=t)})),n.each(u,function(t,i){void 0!==r[t]&&("object"!=typeof i||i instanceof Array||null==i||"object"!=typeof r[t]||r[t]instanceof Array||null==r[t]?u[t]=r[t]:n.extend(u[t],r[t]))}),u},_plug:function(t){var i=n.tooltipster._plugin(t);if(!i)throw new Error('The "'+t+'" plugin is not defined');return i.instance&&n.tooltipster.__bridge(i.instance,this,i.name),this},_touchIsEmulatedEvent:function(n){for(var i,r=!1,u=(new Date).getTime(),t=this.__touchEvents.length-1;t>=0;t--){if(i=this.__touchEvents[t],!(u-i.time<500))break;i.target===n.target&&(r=!0)}return r},_touchIsMeaningfulEvent:function(n){return this._touchIsTouchEvent(n)&&!this._touchSwiped(n.target)||!this._touchIsTouchEvent(n)&&!this._touchIsEmulatedEvent(n)},_touchIsTouchEvent:function(n){return 0==n.type.indexOf("touch")},_touchRecordEvent:function(n){return this._touchIsTouchEvent(n)&&(n.time=(new Date).getTime(),this.__touchEvents.push(n)),this},_touchSwiped:function(n){for(var i,r=!1,t=this.__touchEvents.length-1;t>=0;t--){if(i=this.__touchEvents[t],"touchmove"==i.type){r=!0;break}if("touchstart"==i.type&&n===i.target)break}return r},_trigger:function(){var t=Array.prototype.slice.apply(arguments);return"string"==typeof t[0]&&(t[0]={type:t[0]}),t[0].instance=this,t[0].origin=this._$origin?this._$origin[0]:null,t[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,t),n.tooltipster._trigger.apply(n.tooltipster,t),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,t),this},_unplug:function(t){var i=this,r;return i[t]&&(r=n.tooltipster._plugin(t),r.instance&&n.each(r.instance,function(n){i[n]&&i[n].bridged===i[t]&&delete i[n]}),i[t].__destroy&&i[t].__destroy(),delete i[t]),i},close:function(n){return this.__destroyed?this.__destroyError():this._close(null,n),this},content:function(n){var i=this,r;return void 0===n?i.__Content:(i.__destroyed?i.__destroyError():(i.__contentSet(n),null!==i.__Content)?"closed"!==i.__state&&(i.__contentInsert(),i.reposition(),i.__options.updateAnimation)&&(t.hasTransitions?(r=i.__options.updateAnimation,i._$tooltip.addClass("tooltipster-update-"+r),setTimeout(function(){"closed"!=i.__state&&i._$tooltip.removeClass("tooltipster-update-"+r)},1e3)):i._$tooltip.fadeTo(200,.5,function(){"closed"!=i.__state&&i._$tooltip.fadeTo(200,1)})):i._close(),i)},destroy:function(){var t=this;return t.__destroyed?t.__destroyError():t.__destroying||(t.__destroying=!0,t._close(null,function(){var i,r;t._trigger("destroy");t.__destroying=!1;t.__destroyed=!0;t._$origin.removeData(t.__namespace).off("."+t.__namespace+"-triggerOpen");n("body").off("."+t.__namespace+"-triggerOpen");i=t._$origin.data("tooltipster-ns");i&&(1===i.length?(r=null,"previous"==t.__options.restoration?r=t._$origin.data("tooltipster-initialTitle"):"current"==t.__options.restoration&&(r="string"==typeof t.__Content?t.__Content:n("<div><\/div>").append(t.__Content).html()),r&&t._$origin.attr("title",r),t._$origin.removeClass("tooltipstered"),t._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")):(i=n.grep(i,function(n){return n!==t.__namespace}),t._$origin.data("tooltipster-ns",i)));t._trigger("destroyed");t._off();t.off();t.__Content=null;t.__$emitterPrivate=null;t.__$emitterPublic=null;t.__options.parent=null;t._$origin=null;t._$tooltip=null;n.tooltipster.__instancesLatestArr=n.grep(n.tooltipster.__instancesLatestArr,function(n){return t!==n});clearInterval(t.__garbageCollector)})),t},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(n){return this.close(n)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(n){return this.__destroyed||this.__destroying?this.__destroyError():this._open(null,n),this},option:function(t,i){return void 0===i?this.__options[t]:(this.__destroyed?this.__destroyError():(this.__options[t]=i,this.__optionsFormat(),n.inArray(t,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===t&&this.__prepareGC()),this)},reposition:function(n,t){var i=this;return i.__destroyed?i.__destroyError():(f(i._$tooltip)||t)&&(t||i._$tooltip.detach(),i.__Geometry=i.__geometry(),i._trigger({type:"reposition",event:n,helper:{geo:i.__Geometry}})),i},show:function(n){return this.open(n)},status:function(){return{destroyed:this.__destroyed,destroying:this.__destroying,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},n.fn.tooltipster=function(){var t=Array.prototype.slice.apply(arguments),f="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.",i;if(0===this.length)return this;if("string"==typeof t[0])return i="#*$~&",this.each(function(){var e=n(this).data("tooltipster-ns"),r=e?n(this).data(e[0]):null,u;if(!r)throw new Error("You called Tooltipster's \""+t[0]+'" method on an uninitialized element');if("function"!=typeof r[t[0]])throw new Error('Unknown method "'+t[0]+'"');return this.length>1&&"content"==t[0]&&(t[1]instanceof n||"object"==typeof t[1]&&null!=t[1]&&t[1].tagName)&&!r.__options.contentCloning&&r.__options.debug&&console.log(f),u=r[t[0]](t[1],t[2]),u!==r||"instance"===t[0]?(i=u,!1):void 0}),"#*$~&"!==i?i:this;n.tooltipster.__instancesLatestArr=[];var e=t[0]&&void 0!==t[0].multiple,l=e&&t[0].multiple||!e&&r.multiple,o=t[0]&&void 0!==t[0].content,u=o&&t[0].content||!o&&r.content,s=t[0]&&void 0!==t[0].contentCloning,a=s&&t[0].contentCloning||!s&&r.contentCloning,h=t[0]&&void 0!==t[0].debug,c=h&&t[0].debug||!h&&r.debug;return this.length>1&&(u instanceof n||"object"==typeof u&&null!=u&&u.tagName)&&!a&&c&&console.log(f),this.each(function(){var u=!1,f=n(this),r=f.data("tooltipster-ns"),i=null;r?l?u=!0:c&&(console.log("Tooltipster: one or more tooltips are already attached to the element below. Ignoring."),console.log(this)):u=!0;u&&(i=new n.Tooltipster(this,t[0]),r||(r=[]),r.push(i.__namespace),f.data("tooltipster-ns",r),f.data(i.__namespace,i),i.__options.functionInit&&i.__options.functionInit.call(i,i,{origin:this}),i._trigger("init"));n.tooltipster.__instancesLatestArr.push(i)}),this},s.prototype={__init:function(t){this.__$tooltip=t;this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto");this.$container=n('<div class="tooltipster-ruler"><\/div>').append(this.__$tooltip).appendTo("body")},__forceRedraw:function(){var n=this.__$tooltip.parent();this.__$tooltip.detach();this.__$tooltip.appendTo(n)},constrain:function(n,t){return this.constraints={width:n,height:t},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:n}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""});this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){var n,i;if(this.__forceRedraw(),n=this.__$tooltip[0].getBoundingClientRect(),i={size:{height:n.height||n.bottom,width:n.width||n.right}},this.constraints){var r=this.__$tooltip.find(".tooltipster-content"),f=this.__$tooltip.outerHeight(),e=r[0].getBoundingClientRect(),u={height:f<=this.constraints.height,width:n.width<=this.constraints.width&&e.width>=r[0].scrollWidth-1};i.fits=u.height&&u.width}return t.IE&&t.IE<=11&&(i.size.width=Math.ceil(i.size.width)+1),i}},u=navigator.userAgent.toLowerCase(),-1!=u.indexOf("msie")?t.IE=parseInt(u.split("msie")[1]):-1!==u.toLowerCase().indexOf("trident")&&-1!==u.indexOf(" rv:11")?t.IE=11:-1!=u.toLowerCase().indexOf("edge/")&&(t.IE=parseInt(u.toLowerCase().split("edge/")[1])),o="tooltipster.sideTip",n.tooltipster._plugin({name:o,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(n){var t=this;t.__instance=n;t.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random());t.__previousState="closed";t.__options;t.__optionsFormat();t.__instance._on("state."+t.__namespace,function(n){"closed"==n.state?t.__close():"appearing"==n.state&&"closed"==t.__previousState&&t.__create();t.__previousState=n.state});t.__instance._on("options."+t.__namespace,function(){t.__optionsFormat()});t.__instance._on("reposition."+t.__namespace,function(n){t.__reposition(n.event,n.helper)})},__close:function(){this.__instance.content()instanceof n&&this.__instance.content().detach();this.__instance._$tooltip.remove();this.__instance._$tooltip=null},__create:function(){var t=n('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"><\/div><\/div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"><\/div><div class="tooltipster-arrow-background"><\/div><\/div><\/div><\/div>');this.__options.arrow||t.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide();this.__options.minWidth&&t.css("min-width",this.__options.minWidth+"px");this.__options.maxWidth&&t.css("max-width",this.__options.maxWidth+"px");this.__instance._$tooltip=t;this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var t=this,i;(t.__options=t.__instance._optionsExtract(o,t.__defaults()),t.__options.position&&(t.__options.side=t.__options.position),"object"!=typeof t.__options.distance&&(t.__options.distance=[t.__options.distance]),t.__options.distance.length<4&&(void 0===t.__options.distance[1]&&(t.__options.distance[1]=t.__options.distance[0]),void 0===t.__options.distance[2]&&(t.__options.distance[2]=t.__options.distance[0]),void 0===t.__options.distance[3]&&(t.__options.distance[3]=t.__options.distance[1]),t.__options.distance={top:t.__options.distance[0],right:t.__options.distance[1],bottom:t.__options.distance[2],left:t.__options.distance[3]}),"string"==typeof t.__options.side)&&(i={top:"bottom",right:"left",bottom:"top",left:"right"},t.__options.side=[t.__options.side,i[t.__options.side]],"left"==t.__options.side[0]||"right"==t.__options.side[0]?t.__options.side.push("top","bottom"):t.__options.side.push("right","left"));6===n.tooltipster._env.IE&&t.__options.arrow!==!0&&(t.__options.arrow=!1)},__reposition:function(t,i){var r,u=this,y=u.__targetFind(i),e=[],l,a,f,h,v;u.__instance._$tooltip.detach();var s=u.__instance._$tooltip.clone(),c=n.tooltipster._getRuler(s),o=!1;switch(n.each(["window","document"],function(r,f){var a=null,r,l,h;if(u.__instance._trigger({container:f,helper:i,satisfied:o,takeTest:function(n){a=n},results:e,type:"positionTest"}),1==a||0!=a&&0==o&&("window"!=f||u.__options.viewportAware))for(r=0;r<u.__options.side.length;r++)l={horizontal:0,vertical:0},h=u.__options.side[r],"top"==h||"bottom"==h?l.vertical=u.__options.distance[h]:l.horizontal=u.__options.distance[h],u.__sideChange(s,h),n.each(["natural","constrained"],function(n,r){if(a=null,u.__instance._trigger({container:f,event:t,helper:i,mode:r,results:e,satisfied:o,side:h,takeTest:function(n){a=n},type:"positionTest"}),1==a||0!=a&&0==o){var s={container:f,distance:l,fits:null,mode:r,outerSize:null,side:h,size:null,target:y[h],whole:null},p="natural"==r?c.free():c.constrain(i.geo.available[f][h].width-l.horizontal,i.geo.available[f][h].height-l.vertical),v=p.measure();if(s.size=v.size,s.outerSize={height:v.size.height+l.vertical,width:v.size.width+l.horizontal},s.fits="natural"==r?i.geo.available[f][h].width>=s.outerSize.width&&i.geo.available[f][h].height>=s.outerSize.height?!0:!1:v.fits,"window"==f&&(s.whole=s.fits?"top"==h||"bottom"==h?i.geo.origin.windowOffset.right>=u.__options.minIntersection&&i.geo.window.size.width-i.geo.origin.windowOffset.left>=u.__options.minIntersection:i.geo.origin.windowOffset.bottom>=u.__options.minIntersection&&i.geo.window.size.height-i.geo.origin.windowOffset.top>=u.__options.minIntersection:!1),e.push(s),s.whole)o=!0;else if("natural"==s.mode&&(s.fits||s.size.width<=i.geo.available[f][h].width))return!1}})}),u.__instance._trigger({edit:function(n){e=n},event:t,helper:i,results:e,type:"positionTested"}),e.sort(function(n,t){var i,r;return n.whole&&!t.whole?-1:!n.whole&&t.whole?1:n.whole&&t.whole?(i=u.__options.side.indexOf(n.side),r=u.__options.side.indexOf(t.side),r>i?-1:i>r?1:"natural"==n.mode?-1:1):n.fits&&!t.fits?-1:!n.fits&&t.fits?1:n.fits&&t.fits?(i=u.__options.side.indexOf(n.side),r=u.__options.side.indexOf(t.side),r>i?-1:i>r?1:"natural"==n.mode?-1:1):"document"==n.container&&"bottom"==n.side&&"natural"==n.mode?-1:1}),r=e[0],r.coord={},r.side){case"left":case"right":r.coord.top=Math.floor(r.target-r.size.height/2);break;case"bottom":case"top":r.coord.left=Math.floor(r.target-r.size.width/2)}switch(r.side){case"left":r.coord.left=i.geo.origin.windowOffset.left-r.outerSize.width;break;case"right":r.coord.left=i.geo.origin.windowOffset.right+r.distance.horizontal;break;case"top":r.coord.top=i.geo.origin.windowOffset.top-r.outerSize.height;break;case"bottom":r.coord.top=i.geo.origin.windowOffset.bottom+r.distance.vertical}"window"==r.container?"top"==r.side||"bottom"==r.side?r.coord.left<0?r.coord.left=i.geo.origin.windowOffset.right-this.__options.minIntersection>=0?0:i.geo.origin.windowOffset.right-this.__options.minIntersection-1:r.coord.left>i.geo.window.size.width-r.size.width&&(r.coord.left=i.geo.origin.windowOffset.left+this.__options.minIntersection<=i.geo.window.size.width?i.geo.window.size.width-r.size.width:i.geo.origin.windowOffset.left+this.__options.minIntersection+1-r.size.width):r.coord.top<0?r.coord.top=i.geo.origin.windowOffset.bottom-this.__options.minIntersection>=0?0:i.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:r.coord.top>i.geo.window.size.height-r.size.height&&(r.coord.top=i.geo.origin.windowOffset.top+this.__options.minIntersection<=i.geo.window.size.height?i.geo.window.size.height-r.size.height:i.geo.origin.windowOffset.top+this.__options.minIntersection+1-r.size.height):(r.coord.left>i.geo.window.size.width-r.size.width&&(r.coord.left=i.geo.window.size.width-r.size.width),r.coord.left<0&&(r.coord.left=0));u.__sideChange(s,r.side);i.tooltipClone=s[0];i.tooltipParent=u.__instance.option("parent").parent[0];i.mode=r.mode;i.whole=r.whole;i.origin=u.__instance._$origin[0];i.tooltip=u.__instance._$tooltip[0];delete r.container;delete r.fits;delete r.mode;delete r.outerSize;delete r.whole;r.distance=r.distance.horizontal||r.distance.vertical;l=n.extend(!0,{},r);(u.__instance._trigger({edit:function(n){r=n},event:t,helper:i,position:l,type:"position"}),u.__options.functionPosition)&&(a=u.__options.functionPosition.call(u,u.__instance,i,l),a&&(r=a));c.destroy();"top"==r.side||"bottom"==r.side?(f={prop:"left",val:r.target-r.coord.left},h=r.size.width-this.__options.minIntersection):(f={prop:"top",val:r.target-r.coord.top},h=r.size.height-this.__options.minIntersection);f.val<this.__options.minIntersection?f.val=this.__options.minIntersection:f.val>h&&(f.val=h);v=i.geo.origin.fixedLineage?i.geo.origin.windowOffset:{left:i.geo.origin.windowOffset.left+i.geo.window.scroll.left,top:i.geo.origin.windowOffset.top+i.geo.window.scroll.top};r.coord={left:v.left+(r.coord.left-i.geo.origin.windowOffset.left),top:v.top+(r.coord.top-i.geo.origin.windowOffset.top)};u.__sideChange(u.__instance._$tooltip,r.side);i.geo.origin.fixedLineage?u.__instance._$tooltip.css("position","fixed"):u.__instance._$tooltip.css("position","");u.__instance._$tooltip.css({left:r.coord.left,top:r.coord.top,height:r.size.height,width:r.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(f.prop,f.val);u.__instance._$tooltip.appendTo(u.__instance.option("parent"));u.__instance._trigger({type:"repositioned",event:t,position:r})},__sideChange:function(n,t){n.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+t)},__targetFind:function(n){var r={},i=this.__instance._$origin[0].getClientRects(),u,t;return i.length>1&&(u=this.__instance._$origin.css("opacity"),1==u&&(this.__instance._$origin.css("opacity",.99),i=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1))),i.length<2?(r.top=Math.floor(n.geo.origin.windowOffset.left+n.geo.origin.size.width/2),r.bottom=r.top,r.left=Math.floor(n.geo.origin.windowOffset.top+n.geo.origin.size.height/2),r.right=r.left):(t=i[0],r.top=Math.floor(t.left+(t.right-t.left)/2),t=i.length>2?i[Math.ceil(i.length/2)-1]:i[0],r.right=Math.floor(t.top+(t.bottom-t.top)/2),t=i[i.length-1],r.bottom=Math.floor(t.left+(t.right-t.left)/2),t=i.length>2?i[Math.ceil((i.length+1)/2)-1]:i[i.length-1],r.left=Math.floor(t.top+(t.bottom-t.top)/2)),r}}}),n});_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(n,t,i){var s=function(n){for(var i=[],r=n.length,t=0;t!==r;i.push(n[t++]));return i},l=function(n,t,i){var u,r,f=n.cycle;for(u in f)r=f[u],n[u]="function"==typeof r?r(i,t[i]):r[i%r.length];delete n.cycle},r=function(n,t,u){i.call(this,n,t,u);this._cycle=0;this._yoyo=this.vars.yoyo===!0;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._dirty=!0;this.render=r.prototype.render},f=1e-10,e=i._internals,a=e.isSelector,v=e.isArray,u=r.prototype=i.to({},.1,{}),y=[],o,h,c;return r.version="1.19.0",u.constructor=r,u.kill()._gc=!1,r.killTweensOf=r.killDelayedCallsTo=i.killTweensOf,r.getTweensOf=i.getTweensOf,r.lagSmoothing=i.lagSmoothing,r.ticker=i.ticker,r.render=i.render,u.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),i.prototype.invalidate.call(this)},u.updateTo=function(n,t){var u,h=this.ratio,f=this.vars.immediateRender||n.immediateRender,e,o,s,r;t&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(u in n)this.vars[u]=n[u];if(this._initted||f)if(t)this._initted=!1,f&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&i._onPluginEvent("_onDisable",this),this._time/this._duration>.998)e=this._totalTime,this.render(0,!0,!1),this._initted=!1,this.render(e,!0,!1);else if(this._initted=!1,this._init(),this._time>0||f)for(s=1/(1-h),r=this._firstPT;r;)o=r.s+r.c,r.c*=s,r.s=o-r.c,r=r._next;return this},u.render=function(n,t,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var a,s,o,y,r,c,v,p,k=this._dirty?this.totalDuration():this._totalDuration,w=this._time,l=this._totalTime,b=this._cycle,u=this._duration,h=this._rawPrevTime;if(n>=k-1e-7?(this._totalTime=k,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=u,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(a=!0,s="onComplete",i=i||this._timeline.autoRemoveChildren),0===u&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(n=0),(0>h||0>=n&&n>=-1e-7||h===f&&"isPause"!==this.data)&&h!==n&&(i=!0,h>f&&(s="onReverseComplete")),this._rawPrevTime=p=!t||n||h===n?n:f)):1e-7>n?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==l||0===u&&h>0)&&(s="onReverseComplete",a=this._reversed),0>n&&(this._active=!1,0===u&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(i=!0),this._rawPrevTime=p=!t||n||h===n?n:f)),this._initted||(i=!0)):(this._totalTime=this._time=n,0!==this._repeat&&(y=u+this._repeatDelay,this._cycle=this._totalTime/y>>0,0!==this._cycle&&this._cycle===this._totalTime/y&&n>=l&&this._cycle--,this._time=this._totalTime-this._cycle*y,this._yoyo&&0!=(1&this._cycle)&&(this._time=u-this._time),this._time>u?this._time=u:this._time<0&&(this._time=0)),this._easeType?(r=this._time/u,c=this._easeType,v=this._easePower,(1===c||3===c&&r>=.5)&&(r=1-r),3===c&&(r*=2),1===v?r*=r:2===v?r*=r*r:3===v?r*=r*r*r:4===v&&(r*=r*r*r*r),this.ratio=1===c?1-r:2===c?r:this._time/u<.5?r/2:1-r/2):this.ratio=this._ease.getRatio(this._time/u)),w===this._time&&!i&&b===this._cycle)return void(l!==this._totalTime&&this._onUpdate&&(t||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=w,this._totalTime=l,this._rawPrevTime=h,this._cycle=b,e.lazyTweens.push(this),void(this._lazy=[n,t]);this._time&&!a?this.ratio=this._ease.getRatio(this._time/u):a&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==w&&n>=0&&(this._active=!0),0===l&&(2===this._initted&&n>0&&this._init(),this._startAt&&(n>=0?this._startAt.render(n,t,i):s||(s="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===u)&&(t||this._callback("onStart"))),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(0>n&&this._startAt&&this._startTime&&this._startAt.render(n,t,i),t||(this._totalTime!==l||s)&&this._callback("onUpdate"));this._cycle!==b&&(t||this._gc||this.vars.onRepeat&&this._callback("onRepeat"));s&&(!this._gc||i)&&(0>n&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(n,t,i),a&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[s]&&this._callback(s),0===u&&this._rawPrevTime===f&&p!==f&&(this._rawPrevTime=0))},r.to=function(n,t,i){return new r(n,t,i)},r.from=function(n,t,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new r(n,t,i)},r.fromTo=function(n,t,i,u){return u.startAt=i,u.immediateRender=0!=u.immediateRender&&0!=i.immediateRender,new r(n,t,u)},r.staggerTo=r.allTo=function(n,t,u,f,e,o,h){f=f||0;var b,c,p,w,d=0,g=[],nt=function(){u.onComplete&&u.onComplete.apply(u.onCompleteScope||this,arguments);e.apply(h||u.callbackScope||this,o||y)},tt=u.cycle,k=u.startAt&&u.startAt.cycle;for(v(n)||("string"==typeof n&&(n=i.selector(n)||n),a(n)&&(n=s(n))),n=n||[],0>f&&(n=s(n),n.reverse(),f*=-1),b=n.length-1,p=0;b>=p;p++){c={};for(w in u)c[w]=u[w];if(tt&&(l(c,n,p),null!=c.duration&&(t=c.duration,delete c.duration)),k){k=c.startAt={};for(w in u.startAt)k[w]=u.startAt[w];l(c.startAt,n,p)}c.delay=d+(c.delay||0);p===b&&e&&(c.onComplete=nt);g[p]=new r(n[p],t,c);d+=f}return g},r.staggerFrom=r.allFrom=function(n,t,i,u,f,e,o){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,r.staggerTo(n,t,i,u,f,e,o)},r.staggerFromTo=r.allFromTo=function(n,t,i,u,f,e,o,s){return u.startAt=i,u.immediateRender=0!=u.immediateRender&&0!=i.immediateRender,r.staggerTo(n,t,u,f,e,o,s)},r.delayedCall=function(n,t,i,u,f){return new r(t,0,{delay:n,onComplete:t,onCompleteParams:i,callbackScope:u,onReverseComplete:t,onReverseCompleteParams:i,immediateRender:!1,useFrames:f,overwrite:0})},r.set=function(n,t){return new r(n,0,t)},r.isTweening=function(n){return i.getTweensOf(n,!0).length>0},o=function(n,t){for(var u=[],f=0,r=n._first;r;)r instanceof i?u[f++]=r:(t&&(u[f++]=r),u=u.concat(o(r,t)),f=u.length),r=r._next;return u},h=r.getAllTweens=function(t){return o(n._rootTimeline,t).concat(o(n._rootFramesTimeline,t))},r.killAll=function(n,i,r,u){null==i&&(i=!0);null==r&&(r=!0);for(var o,f,s=h(0!=u),c=s.length,l=i&&r&&u,e=0;c>e;e++)f=s[e],(l||f instanceof t||(o=f.target===f.vars.onComplete)&&r||i&&!o)&&(n?f.totalTime(f._reversed?0:f.totalDuration()):f._enabled(!1,!1))},r.killChildTweensOf=function(n,t){if(null!=n){var f,o,h,u,l,c=e.tweenLookup;if("string"==typeof n&&(n=i.selector(n)||n),a(n)&&(n=s(n)),v(n))for(u=n.length;--u>-1;)r.killChildTweensOf(n[u],t);else{f=[];for(h in c)for(o=c[h].target.parentNode;o;)o===n&&(f=f.concat(c[h].tweens)),o=o.parentNode;for(l=f.length,u=0;l>u;u++)t&&f[u].totalTime(f[u].totalDuration()),f[u]._enabled(!1,!1)}}},c=function(n,i,r,u){i=i!==!1;r=r!==!1;u=u!==!1;for(var e,f,o=h(u),c=i&&r&&u,s=o.length;--s>-1;)f=o[s],(c||f instanceof t||(e=f.target===f.vars.onComplete)&&r||i&&!e)&&f.paused(n)},r.pauseAll=function(n,t,i){c(!0,n,t,i)},r.resumeAll=function(n,t,i){c(!1,n,t,i)},r.globalTimeScale=function(t){var r=n._rootTimeline,u=i.ticker.time;return arguments.length?(t=t||f,r._startTime=u-(u-r._startTime)*r._timeScale/t,r=n._rootFramesTimeline,u=i.ticker.frame,r._startTime=u-(u-r._startTime)*r._timeScale/t,r._timeScale=n._rootTimeline._timeScale=t,t):r._timeScale},u.progress=function(n,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-n:n)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()},u.totalProgress=function(n,t){return arguments.length?this.totalTime(this.totalDuration()*n,t):this._totalTime/this.totalDuration()},u.time=function(n,t){return arguments.length?(this._dirty&&this.totalDuration(),n>this._duration&&(n=this._duration),this._yoyo&&0!=(1&this._cycle)?n=this._duration-n+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(n+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(n,t)):this._time},u.duration=function(t){return arguments.length?n.prototype.duration.call(this,t):this._duration},u.totalDuration=function(n){return arguments.length?-1===this._repeat?this:this.duration((n-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},u.repeat=function(n){return arguments.length?(this._repeat=n,this._uncache(!0)):this._repeat},u.repeatDelay=function(n){return arguments.length?(this._repeatDelay=n,this._uncache(!0)):this._repeatDelay},u.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},r},!0);_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(n,t,i){var u=function(n){t.call(this,n);this._labels={};this.autoRemoveChildren=this.vars.autoRemoveChildren===!0;this.smoothChildTiming=this.vars.smoothChildTiming===!0;this._sortChildren=!0;this._onUpdate=this.vars.onUpdate;var r,u,i=this.vars;for(u in i)r=i[u],f(r)&&-1!==r.join("").indexOf("{self}")&&(i[u]=this._swapSelfInParams(r));f(i.tweens)&&this.add(i.tweens,0,i.align,i.stagger)},e=1e-10,o=i._internals,y=u._internals={},p=o.isSelector,f=o.isArray,h=o.lazyTweens,c=o.lazyRender,s=_gsScope._gsDefine.globals,l=function(n){var t,i={};for(t in n)i[t]=n[t];return i},a=function(n,t,i){var u,r,f=n.cycle;for(u in f)r=f[u],n[u]="function"==typeof r?r.call(t[i],i):r[i%r.length];delete n.cycle},w=y.pauseCallback=function(){},v=function(n){for(var i=[],r=n.length,t=0;t!==r;i.push(n[t++]));return i},r=u.prototype=new t;return u.version="1.19.0",r.constructor=u,r.kill()._gc=r._forcingPlayhead=r._hasPause=!1,r.to=function(n,t,r,u){var f=r.repeat&&s.TweenMax||i;return t?this.add(new f(n,t,r),u):this.set(n,r,u)},r.from=function(n,t,r,u){return this.add((r.repeat&&s.TweenMax||i).from(n,t,r),u)},r.fromTo=function(n,t,r,u,f){var e=u.repeat&&s.TweenMax||i;return t?this.add(e.fromTo(n,t,r,u),f):this.set(n,u,f)},r.staggerTo=function(n,t,r,f,e,o,s,h){var c,y,w=new u({onComplete:o,onCompleteParams:s,callbackScope:h,smoothChildTiming:this.smoothChildTiming}),b=r.cycle;for("string"==typeof n&&(n=i.selector(n)||n),n=n||[],p(n)&&(n=v(n)),f=f||0,0>f&&(n=v(n),n.reverse(),f*=-1),y=0;y<n.length;y++)c=l(r),c.startAt&&(c.startAt=l(c.startAt),c.startAt.cycle&&a(c.startAt,n,y)),b&&(a(c,n,y),null!=c.duration&&(t=c.duration,delete c.duration)),w.to(n[y],t,c,y*f);return this.add(w,e)},r.staggerFrom=function(n,t,i,r,u,f,e,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(n,t,i,r,u,f,e,o)},r.staggerFromTo=function(n,t,i,r,u,f,e,o,s){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,this.staggerTo(n,t,r,u,f,e,o,s)},r.call=function(n,t,r,u){return this.add(i.delayedCall(0,n,t,r),u)},r.set=function(n,t,r){return r=this._parseTimeOrLabel(r,0,!0),null==t.immediateRender&&(t.immediateRender=r===this._time&&!this._paused),this.add(new i(n,0,t),r)},u.exportRoot=function(n,t){n=n||{};null==n.smoothChildTiming&&(n.smoothChildTiming=!0);var r,o,f=new u(n),e=f._timeline;for(null==t&&(t=!0),e._remove(f,!0),f._startTime=0,f._rawPrevTime=f._time=f._totalTime=e._time,r=e._first;r;)o=r._next,t&&r instanceof i&&r.target===r.vars.onComplete||f.add(r,r._startTime-r._delay),r=o;return e.add(f,0),f},r.add=function(r,e,o,s){var l,v,a,h,c,y;if("number"!=typeof e&&(e=this._parseTimeOrLabel(e,0,!0,r)),!(r instanceof n)){if(r instanceof Array||r&&r.push&&f(r)){for(o=o||"normal",s=s||0,l=e,v=r.length,a=0;v>a;a++)f(h=r[a])&&(h=new u({tweens:h})),this.add(h,l),"string"!=typeof h&&"function"!=typeof h&&("sequence"===o?l=h._startTime+h.totalDuration()/h._timeScale:"start"===o&&(h._startTime-=h.delay())),l+=s;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,e);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(t.prototype.add.call(this,r,e),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(c=this,y=c.rawTime()>r._startTime;c._timeline;)y&&c._timeline.smoothChildTiming?c.totalTime(c._totalTime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return this},r.remove=function(t){var r,i;if(t instanceof n)return this._remove(t,!1),r=t._timeline=t.vars.useFrames?n._rootFramesTimeline:n._rootTimeline,t._startTime=(t._paused?t._pauseTime:r._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this;if(t instanceof Array||t&&t.push&&f(t)){for(i=t.length;--i>-1;)this.remove(t[i]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},r._remove=function(n,i){t.prototype._remove.call(this,n,i);var r=this._last;return r?this._time>r._startTime+r._totalDuration/r._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},r.append=function(n,t){return this.add(n,this._parseTimeOrLabel(null,t,!0,n))},r.insert=r.insertMultiple=function(n,t,i,r){return this.add(n,t||0,i,r)},r.appendMultiple=function(n,t,i,r){return this.add(n,this._parseTimeOrLabel(null,t,!0,n),i,r)},r.addLabel=function(n,t){return this._labels[n]=this._parseTimeOrLabel(t),this},r.addPause=function(n,t,r,u){var f=i.delayedCall(0,w,r,u||this);return f.vars.onComplete=f.vars.onReverseComplete=t,f.data="isPause",this._hasPause=!0,this.add(f,n)},r.removeLabel=function(n){return delete this._labels[n],this},r.getLabelTime=function(n){return null!=this._labels[n]?this._labels[n]:-1},r._parseTimeOrLabel=function(t,i,r,u){var e;if(u instanceof n&&u.timeline===this)this.remove(u);else if(u&&(u instanceof Array||u.push&&f(u)))for(e=u.length;--e>-1;)u[e]instanceof n&&u[e].timeline===this&&this.remove(u[e]);if("string"==typeof i)return this._parseTimeOrLabel(i,r&&"number"==typeof t&&null==this._labels[i]?t-this.duration():0,r);if(i=i||0,"string"==typeof t&&(isNaN(t)||null!=this._labels[t])){if(e=t.indexOf("="),-1===e)return null==this._labels[t]?r?this._labels[t]=this.duration()+i:i:this._labels[t]+i;i=parseInt(t.charAt(e-1)+"1",10)*Number(t.substr(e+1));t=e>1?this._parseTimeOrLabel(t.substr(0,e-1),0,r):this.duration()}else null==t&&(t=this.duration());return Number(t)+i},r.seek=function(n,t){return this.totalTime("number"==typeof n?n:this._parseTimeOrLabel(n),t!==!1)},r.stop=function(){return this.paused(!0)},r.gotoAndPlay=function(n,t){return this.play(n,t)},r.gotoAndStop=function(n,t){return this.pause(n,t)},r.render=function(n,t,i){this._gc&&this._enabled(!0,!1);var r,s,v,f,l,u,a,y=this._dirty?this.totalDuration():this._totalDuration,o=this._time,w=this._startTime,b=this._timeScale,p=this._paused;if(n>=y-1e-7)this._totalTime=this._time=y,this._reversed||this._hasPausedChild()||(s=!0,f="onComplete",l=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=n&&n>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===e)&&this._rawPrevTime!==n&&this._first&&(l=!0,this._rawPrevTime>e&&(f="onReverseComplete"))),this._rawPrevTime=this._duration||!t||n||this._rawPrevTime===n?n:e,n=y+.0001;else if(1e-7>n)if(this._totalTime=this._time=0,(0!==o||0===this._duration&&this._rawPrevTime!==e&&(this._rawPrevTime>0||0>n&&this._rawPrevTime>=0))&&(f="onReverseComplete",s=this._reversed),0>n)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(l=s=!0,f="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(l=!0),this._rawPrevTime=n;else{if(this._rawPrevTime=this._duration||!t||n||this._rawPrevTime===n?n:e,0===n&&s)for(r=this._first;r&&0===r._startTime;)r._duration||(s=!1),r=r._next;n=0;this._initted||(l=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!t){if(n>=o)for(r=this._first;r&&r._startTime<=n&&!u;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===this._rawPrevTime||(u=r),r=r._next;else for(r=this._last;r&&r._startTime>=n&&!u;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(u=r),r=r._prev;u&&(this._time=n=u._startTime,this._totalTime=n+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=n}if(this._time!==o&&this._first||i||l||u){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==o&&n>0&&(this._active=!0),0===o&&this.vars.onStart&&(0===this._time&&this._duration||t||this._callback("onStart")),a=this._time,a>=o)for(r=this._first;r&&(v=r._next,a===this._time&&(!this._paused||p));)(r._active||r._startTime<=a&&!r._paused&&!r._gc)&&(u===r&&this.pause(),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=v;else for(r=this._last;r&&(v=r._prev,a===this._time&&(!this._paused||p));){if(r._active||r._startTime<=o&&!r._paused&&!r._gc){if(u===r){for(u=r._prev;u&&u.endTime()>this._time;)u.render(u._reversed?u.totalDuration()-(n-u._startTime)*u._timeScale:(n-u._startTime)*u._timeScale,t,i),u=u._prev;u=null;this.pause()}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)}r=v}this._onUpdate&&(t||(h.length&&c(),this._callback("onUpdate")));f&&(this._gc||(w===this._startTime||b!==this._timeScale)&&(0===this._time||y>=this.totalDuration())&&(s&&(h.length&&c(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[f]&&this._callback(f)))}},r._hasPausedChild=function(){for(var n=this._first;n;){if(n._paused||n instanceof u&&n._hasPausedChild())return!0;n=n._next}return!1},r.getChildren=function(n,t,r,u){u=u||-9999999999;for(var e=[],f=this._first,o=0;f;)f._startTime<u||(f instanceof i?t!==!1&&(e[o++]=f):(r!==!1&&(e[o++]=f),n!==!1&&(e=e.concat(f.getChildren(!0,t,r)),o=e.length))),f=f._next;return e},r.getTweensOf=function(n,t){var r,u,f=this._gc,e=[],o=0;for(f&&this._enabled(!0,!0),r=i.getTweensOf(n),u=r.length;--u>-1;)(r[u].timeline===this||t&&this._contains(r[u]))&&(e[o++]=r[u]);return f&&this._enabled(!1,!0),e},r.recent=function(){return this._recent},r._contains=function(n){for(var t=n.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},r.shiftChildren=function(n,t,i){i=i||0;for(var u,r=this._first,f=this._labels;r;)r._startTime>=i&&(r._startTime+=n),r=r._next;if(t)for(u in f)f[u]>=i&&(f[u]+=n);return this._uncache(!0)},r._kill=function(n,t){if(!n&&!t)return this._enabled(!1,!1);for(var i=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),r=i.length,u=!1;--r>-1;)i[r]._kill(n,t)&&(u=!0);return u},r.clear=function(n){var t=this.getChildren(!1,!0,!0),i=t.length;for(this._time=this._totalTime=0;--i>-1;)t[i]._enabled(!1,!1);return n!==!1&&(this._labels={}),this._uncache(!0)},r.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return n.prototype.invalidate.call(this)},r._enabled=function(n,i){if(n===this._gc)for(var r=this._first;r;)r._enabled(n,!0),r=r._next;return t.prototype._enabled.call(this,n,i)},r.totalTime=function(){this._forcingPlayhead=!0;var t=n.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,t},r.duration=function(n){return arguments.length?(0!==this.duration()&&0!==n&&this.timeScale(this._duration/n),this):(this._dirty&&this.totalDuration(),this._duration)},r.totalDuration=function(n){if(!arguments.length){if(this._dirty){for(var f,r,i=0,t=this._last,u=999999999999;t;)f=t._prev,t._dirty&&t.totalDuration(),t._startTime>u&&this._sortChildren&&!t._paused?this.add(t,t._startTime-t._delay):u=t._startTime,t._startTime<0&&!t._paused&&(i-=t._startTime,this._timeline.smoothChildTiming&&(this._startTime+=t._startTime/this._timeScale),this.shiftChildren(-t._startTime,!1,-9999999999),u=0),r=t._startTime+t._totalDuration/t._timeScale,r>i&&(i=r),t=f;this._duration=this._totalDuration=i;this._dirty=!1}return this._totalDuration}return n&&this.totalDuration()?this.timeScale(this._totalDuration/n):this},r.paused=function(t){if(!t)for(var i=this._first,r=this._time;i;)i._startTime===r&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return n.prototype.paused.apply(this,arguments)},r.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===n._rootFramesTimeline},r.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},u},!0);_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(n,t,i){var f=function(t){n.call(this,t);this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._cycle=0;this._yoyo=this.vars.yoyo===!0;this._dirty=!0},u=1e-10,e=t._internals,o=e.lazyTweens,s=e.lazyRender,h=_gsScope._gsDefine.globals,c=new i(null,null,1,0),r=f.prototype=new n;return r.constructor=f,r.kill()._gc=!1,f.version="1.19.0",r.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),n.prototype.invalidate.call(this)},r.addCallback=function(n,i,r,u){return this.add(t.delayedCall(0,n,r,u),i)},r.removeCallback=function(n,t){if(n)if(null==t)this._kill(null,n);else for(var i=this.getTweensOf(n,!1),r=i.length,u=this._parseTimeOrLabel(t);--r>-1;)i[r]._startTime===u&&i[r]._enabled(!1,!1);return this},r.removePause=function(t){return this.removeCallback(n._internals.pauseCallback,t)},r.tweenTo=function(n,i){i=i||{};var f,e,r,u={ease:c,useFrames:this.usesFrames(),immediateRender:!1},o=i.repeat&&h.TweenMax||t;for(e in i)u[e]=i[e];return u.time=this._parseTimeOrLabel(n),f=Math.abs(Number(u.time)-this._time)/this._timeScale||.001,r=new o(this,f,u),u.onStart=function(){r.target.paused(!0);r.vars.time!==r.target.time()&&f===r.duration()&&r.duration(Math.abs(r.vars.time-r.target.time())/r.target._timeScale);i.onStart&&r._callback("onStart")},r},r.tweenFromTo=function(n,t,i){i=i||{};n=this._parseTimeOrLabel(n);i.startAt={onComplete:this.seek,onCompleteParams:[n],callbackScope:this};i.immediateRender=i.immediateRender!==!1;var r=this.tweenTo(t,i);return r.duration(Math.abs(r.vars.time-n)/this._timeScale||.001)},r.render=function(n,t,i){this._gc&&this._enabled(!0,!1);var r,v,w,l,a,b,f,k,g=this._dirty?this.totalDuration():this._totalDuration,e=this._duration,h=this._time,d=this._totalTime,tt=this._startTime,it=this._timeScale,c=this._rawPrevTime,nt=this._paused,y=this._cycle;if(n>=g-1e-7)this._locked||(this._totalTime=g,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(v=!0,l="onComplete",a=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=n&&n>=-1e-7||0>c||c===u)&&c!==n&&this._first&&(a=!0,c>u&&(l="onReverseComplete"))),this._rawPrevTime=this._duration||!t||n||this._rawPrevTime===n?n:u,this._yoyo&&0!=(1&this._cycle)?this._time=n=0:(this._time=e,n=e+.0001);else if(1e-7>n)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==h||0===e&&c!==u&&(c>0||0>n&&c>=0)&&!this._locked)&&(l="onReverseComplete",v=this._reversed),0>n)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(a=v=!0,l="onReverseComplete"):c>=0&&this._first&&(a=!0),this._rawPrevTime=n;else{if(this._rawPrevTime=e||!t||n||this._rawPrevTime===n?n:u,0===n&&v)for(r=this._first;r&&0===r._startTime;)r._duration||(v=!1),r=r._next;n=0;this._initted||(a=!0)}else if(0===e&&0>c&&(a=!0),this._time=this._rawPrevTime=n,this._locked||(this._totalTime=n,0!==this._repeat&&(b=e+this._repeatDelay,this._cycle=this._totalTime/b>>0,0!==this._cycle&&this._cycle===this._totalTime/b&&n>=d&&this._cycle--,this._time=this._totalTime-this._cycle*b,this._yoyo&&0!=(1&this._cycle)&&(this._time=e-this._time),this._time>e?(this._time=e,n=e+.0001):this._time<0?this._time=n=0:n=this._time)),this._hasPause&&!this._forcingPlayhead&&!t){if(n=this._time,n>=h)for(r=this._first;r&&r._startTime<=n&&!f;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===this._rawPrevTime||(f=r),r=r._next;else for(r=this._last;r&&r._startTime>=n&&!f;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(f=r),r=r._prev;f&&(this._time=n=f._startTime,this._totalTime=n+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==y&&!this._locked){var p=this._yoyo&&0!=(1&y),rt=p===(this._yoyo&&0!=(1&this._cycle)),ut=this._totalTime,ft=this._cycle,et=this._rawPrevTime,ot=this._time;if(this._totalTime=y*e,this._cycle<y?p=!p:this._totalTime+=e,this._time=h,this._rawPrevTime=0===e?c-.0001:c,this._cycle=y,this._locked=!0,h=p?0:e,this.render(h,t,0===e),t||this._gc||this.vars.onRepeat&&this._callback("onRepeat"),h!==this._time)return;if(rt&&(h=p?e+.0001:-.0001,this.render(h,!0,!1)),this._locked=!1,this._paused&&!nt)return;this._time=ot;this._totalTime=ut;this._cycle=ft;this._rawPrevTime=et}if(!(this._time!==h&&this._first||i||a||f))return void(d!==this._totalTime&&this._onUpdate&&(t||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==d&&n>0&&(this._active=!0),0===d&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||t||this._callback("onStart")),k=this._time,k>=h)for(r=this._first;r&&(w=r._next,k===this._time&&(!this._paused||nt));)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(f===r&&this.pause(),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=w;else for(r=this._last;r&&(w=r._prev,k===this._time&&(!this._paused||nt));){if(r._active||r._startTime<=h&&!r._paused&&!r._gc){if(f===r){for(f=r._prev;f&&f.endTime()>this._time;)f.render(f._reversed?f.totalDuration()-(n-f._startTime)*f._timeScale:(n-f._startTime)*f._timeScale,t,i),f=f._prev;f=null;this.pause()}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)}r=w}this._onUpdate&&(t||(o.length&&s(),this._callback("onUpdate")));l&&(this._locked||this._gc||(tt===this._startTime||it!==this._timeScale)&&(0===this._time||g>=this.totalDuration())&&(v&&(o.length&&s(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[l]&&this._callback(l)))},r.getActive=function(n,t,i){null==n&&(n=!0);null==t&&(t=!0);null==i&&(i=!1);for(var u,f=[],e=this.getChildren(n,t,i),o=0,s=e.length,r=0;s>r;r++)u=e[r],u.isActive()&&(f[o++]=u);return f},r.getLabelAfter=function(n){n||0!==n&&(n=this._time);for(var i=this.getLabelsArray(),r=i.length,t=0;r>t;t++)if(i[t].time>n)return i[t].name;return null},r.getLabelBefore=function(n){null==n&&(n=this._time);for(var t=this.getLabelsArray(),i=t.length;--i>-1;)if(t[i].time<n)return t[i].name;return null},r.getLabelsArray=function(){var n,t=[],i=0;for(n in this._labels)t[i++]={time:this._labels[n],name:n};return t.sort(function(n,t){return n.time-t.time}),t},r.progress=function(n,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-n:n)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()},r.totalProgress=function(n,t){return arguments.length?this.totalTime(this.totalDuration()*n,t):this._totalTime/this.totalDuration()},r.totalDuration=function(t){return arguments.length?-1!==this._repeat&&t?this.timeScale(this.totalDuration()/t):this:(this._dirty&&(n.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},r.time=function(n,t){return arguments.length?(this._dirty&&this.totalDuration(),n>this._duration&&(n=this._duration),this._yoyo&&0!=(1&this._cycle)?n=this._duration-n+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(n+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(n,t)):this._time},r.repeat=function(n){return arguments.length?(this._repeat=n,this._uncache(!0)):this._repeat},r.repeatDelay=function(n){return arguments.length?(this._repeatDelay=n,this._uncache(!0)):this._repeatDelay},r.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},r.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.getLabelBefore(this._time+1e-8)},f},!0),function(){var h=180/Math.PI,n=[],t=[],i=[],f={},c=_gsScope._gsDefine.globals,u=function(n,t,i,r){i===r&&(i=r-(r-t)/1e6);n===t&&(t=n+(i-n)/1e6);this.a=n;this.b=t;this.c=i;this.d=r;this.da=r-n;this.ca=i-n;this.ba=t-n},l=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",e=function(n,t,i,r){var e={a:n},u={},f={},o={c:r},s=(n+t)/2,a=(t+i)/2,h=(i+r)/2,c=(s+a)/2,l=(a+h)/2,v=(l-c)/8;return e.b=s+(n-s)/4,u.b=c+v,e.c=u.a=(e.b+u.b)/2,u.c=f.a=(c+l)/2,f.b=l-v,o.b=h+(r-h)/4,f.c=o.a=(f.b+o.b)/2,[e,u,f,o]},a=function(r,u,f,o,s){for(var y,c,nt,h,p,b,g,tt,l,k,d,it,rt=r.length-1,w=0,a=r[0].a,v=0;rt>v;v++)h=r[w],y=h.a,c=h.d,nt=r[w+1].d,s?(k=n[v],d=t[v],it=(d+k)*u*.25/(o?.5:i[v]||.5),p=c-(c-y)*(o?.5*u:0!==k?it/k:0),b=c+(nt-c)*(o?.5*u:0!==d?it/d:0),g=c-(p+((b-p)*(3*k/(k+d)+.5)/4||0))):(p=c-(c-y)*u*.5,b=c+(nt-c)*u*.5,g=c-(p+b)/2),p+=g,b+=g,h.c=tt=p,h.b=0!==v?a:a=h.a+.6*(h.c-h.a),h.da=c-y,h.ca=tt-y,h.ba=a-y,f?(l=e(y,a,tt,c),r.splice(w,1,l[0],l[1],l[2],l[3]),w+=4):w++,a=b;h=r[w];h.b=a;h.c=a+.4*(h.d-a);h.da=h.d-h.a;h.ca=h.c-h.a;h.ba=a-h.a;f&&(l=e(h.a,a,h.c,h.d),r.splice(w,1,l[0],l[1],l[2],l[3]))},v=function(i,r,f,e){var c,o,l,s,v,a,h=[];if(e)for(i=[e].concat(i),o=i.length;--o>-1;)"string"==typeof(a=i[o][r])&&"="===a.charAt(1)&&(i[o][r]=e[r]+Number(a.charAt(0)+a.substr(2)));if(c=i.length-2,0>c)return h[0]=new u(i[0][r],0,0,i[-1>c?0:1][r]),h;for(o=0;c>o;o++)l=i[o][r],s=i[o+1][r],h[o]=new u(l,0,0,s),f&&(v=i[o+2][r],n[o]=(n[o]||0)+(s-l)*(s-l),t[o]=(t[o]||0)+(v-s)*(v-s));return h[o]=new u(i[o][r],0,0,i[o+1][r]),h},o=function(r,u,e,o,s,h){var c,y,w,p,g,nt,k,tt,d={},b=[],it=h||r[0];s="string"==typeof s?","+s+",":l;null==u&&(u=1);for(y in r[0])b.push(y);if(r.length>1){for(tt=r[r.length-1],k=!0,c=b.length;--c>-1;)if(y=b[c],Math.abs(it[y]-tt[y])>.05){k=!1;break}k&&(r=r.concat(),h&&r.unshift(h),r.push(r[1]),h=r[r.length-3])}for(n.length=t.length=i.length=0,c=b.length;--c>-1;)y=b[c],f[y]=-1!==s.indexOf(","+y+","),d[y]=v(r,y,f[y],h);for(c=n.length;--c>-1;)n[c]=Math.sqrt(n[c]),t[c]=Math.sqrt(t[c]);if(!o){for(c=b.length;--c>-1;)if(f[y])for(w=d[b[c]],nt=w.length-1,p=0;nt>p;p++)g=w[p+1].da/t[p]+w[p].da/n[p]||0,i[p]=(i[p]||0)+g*g;for(c=i.length;--c>-1;)i[c]=Math.sqrt(i[c])}for(c=b.length,p=e?4:1;--c>-1;)y=b[c],w=d[y],a(w,u,e,o,f[y]),k&&(w.splice(0,p),w.splice(w.length-p,p));return d},y=function(n,t,i){t=t||"soft";var o,a,v,w,f,y,r,c,s,e,h,b={},l="cubic"===t?3:2,k="soft"===t,p=[];if(k&&i&&(n=[i].concat(n)),null==n||n.length<l+1)throw"invalid Bezier data";for(s in n[0])p.push(s);for(y=p.length;--y>-1;){for(s=p[y],b[s]=f=[],e=0,c=n.length,r=0;c>r;r++)o=null==i?n[r][s]:"string"==typeof(h=n[r][s])&&"="===h.charAt(1)?i[s]+Number(h.charAt(0)+h.substr(2)):Number(h),k&&r>1&&c-1>r&&(f[e++]=(o+f[e-2])/2),f[e++]=o;for(c=e-l+1,e=0,r=0;c>r;r+=l)o=f[r],a=f[r+1],v=f[r+2],w=2===l?0:f[r+3],f[e++]=h=3===l?new u(o,a,v,w):new u(o,(2*a+o)/3,(2*a+v)/3,v);f.length=e}return b},p=function(n,t,i){for(var e,s,o,a,v,y,r,u,h,f,c,p=1/i,l=n.length;--l>-1;)for(f=n[l],o=f.a,a=f.d-o,v=f.c-o,y=f.b-o,e=s=0,u=1;i>=u;u++)r=p*u,h=1-r,e=s-(s=(r*r*a+3*h*(r*v+h*y))*r),c=l*i+u-1,t[c]=(t[c]||0)+e*e},w=function(n,t){t=t>>0||6;var s,i,h,r,f=[],c=[],u=0,e=0,a=t-1,l=[],o=[];for(s in n)p(n[s],f,t);for(h=f.length,i=0;h>i;i++)u+=Math.sqrt(f[i]),r=i%t,o[r]=u,r===a&&(e+=u,r=i/t>>0,l[r]=o,c[r]=e,u=0,o=[]);return{length:e,lengths:c,segments:l}},r=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,global:!0,init:function(n,t,i){var c;this._target=n;t instanceof Array&&(t={values:t});this._func={};this._mod={};this._props=[];this._timeRes=null==t.timeResolution?6:parseInt(t.timeResolution,10);var r,a,f,e,l,s=t.values||[],h={},v=s[0],u=t.autoRotate||i.vars.orientToBezier;this._autoRotate=u?u instanceof Array?u:[["x","y","rotation",u===!0?0:Number(u)||0]]:null;for(r in v)this._props.push(r);for(f=this._props.length;--f>-1;)r=this._props[f],this._overwriteProps.push(r),a=this._func[r]="function"==typeof n[r],h[r]=a?n[r.indexOf("set")||"function"!=typeof n["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(n[r]),l||h[r]!==s[0][r]&&(l=h);if((this._beziers="cubic"!==t.type&&"quadratic"!==t.type&&"soft"!==t.type?o(s,isNaN(t.curviness)?1:t.curviness,!1,"thruBasic"===t.type,t.correlate,l):y(s,t.type,h),this._segCount=this._beziers[r].length,this._timeRes)&&(c=w(this._beziers,this._timeRes),this._length=c.length,this._lengths=c.lengths,this._segments=c.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length),u=this._autoRotate)for(this._initialRotations=[],u[0]instanceof Array||(this._autoRotate=u=[u]),f=u.length;--f>-1;){for(e=0;3>e;e++)r=u[f][e],this._func[r]="function"==typeof n[r]?n[r.indexOf("set")||"function"!=typeof n["get"+r.substr(3)]?r:"get"+r.substr(3)]:!1;r=u[f][2];this._initialRotations[f]=(this._func[r]?this._func[r].call(this._target):this._target[r])||0;this._overwriteProps.push(r)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(n){var c,d,t,u,i,r,o,w,v,f,l=this._segCount,g=this._func,a=this._target,it=n!==this._startRatio,e,b,k,y,p,nt,tt,s;if(this._timeRes){if(v=this._lengths,f=this._curSeg,n*=this._length,t=this._li,n>this._l2&&l-1>t){for(w=l-1;w>t&&(this._l2=v[++t])<=n;);this._l1=v[t-1];this._li=t;this._curSeg=f=this._segments[t];this._s2=f[this._s1=this._si=0]}else if(n<this._l1&&t>0){for(;t>0&&(this._l1=v[--t])>=n;);0===t&&n<this._l1?this._l1=0:t++;this._l2=v[t];this._li=t;this._curSeg=f=this._segments[t];this._s1=f[(this._si=f.length-1)-1]||0;this._s2=f[this._si]}if(c=t,n-=this._l1,t=this._si,n>this._s2&&t<f.length-1){for(w=f.length-1;w>t&&(this._s2=f[++t])<=n;);this._s1=f[t-1];this._si=t}else if(n<this._s1&&t>0){for(;t>0&&(this._s1=f[--t])>=n;);0===t&&n<this._s1?this._s1=0:t++;this._s2=f[t];this._si=t}r=(t+(n-this._s1)/(this._s2-this._s1))*this._prec||0}else c=0>n?0:n>=1?l-1:l*n>>0,r=(n-c*(1/l))*l;for(d=1-r,t=this._props.length;--t>-1;)u=this._props[t],i=this._beziers[u][c],o=(r*r*i.da+3*d*(r*i.ca+d*i.ba))*r+i.a,this._mod[u]&&(o=this._mod[u](o,a)),g[u]?a[u](o):a[u]=o;if(this._autoRotate)for(s=this._autoRotate,t=s.length;--t>-1;)u=s[t][2],nt=s[t][3]||0,tt=s[t][4]===!0?1:h,i=this._beziers[s[t][0]],e=this._beziers[s[t][1]],i&&e&&(i=i[c],e=e[c],b=i.a+(i.b-i.a)*r,y=i.b+(i.c-i.b)*r,b+=(y-b)*r,y+=(i.c+(i.d-i.c)*r-y)*r,k=e.a+(e.b-e.a)*r,p=e.b+(e.c-e.b)*r,k+=(p-k)*r,p+=(e.c+(e.d-e.c)*r-p)*r,o=it?Math.atan2(p-k,y-b)*tt+nt:this._initialRotations[t],this._mod[u]&&(o=this._mod[u](o,a)),g[u]?a[u](o):a[u]=o)}}),s=r.prototype;r.bezierThrough=o;r.cubicToQuadratic=e;r._autoCSS=!0;r.quadraticToCubic=function(n,t,i){return new u(n,(2*t+n)/3,(2*t+i)/3,i)};r._cssRegister=function(){var t=c.CSSPlugin;if(t){var n=t._internals,i=n._parseToProxy,u=n._setPluginRatio,f=n.CSSPropTween;n._registerComplexSpecialProp("bezier",{parser:function(n,t,e,o,s,h){t instanceof Array&&(t={values:t});h=new r;var a,v,l,p=t.values,y=p.length-1,w=[],c={};if(0>y)return s;for(a=0;y>=a;a++)l=i(n,p[a],o,s,h,y!==a),w[a]=l.end;for(v in t)c[v]=t[v];return c.values=w,s=new f(n,"bezier",0,0,l.pt,2),s.data=l,s.plugin=h,s.setRatio=u,0===c.autoRotate&&(c.autoRotate=!0),!c.autoRotate||c.autoRotate instanceof Array||(a=c.autoRotate===!0?0:Number(c.autoRotate),c.autoRotate=null!=l.end.left?[["left","top","rotation",a,!1]]:null!=l.end.x?[["x","y","rotation",a,!1]]:!1),c.autoRotate&&(o._transform||o._enableTransforms(!1),l.autoRotate=o._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,o._overwriteProps.push("rotation")),h._onInitTween(l.proxy,c,o._tween),s}})}};s._mod=function(n){for(var t,i=this._overwriteProps,r=i.length;--r>-1;)t=n[i[r]],t&&"function"==typeof t&&(this._mod[i[r]]=t)};s._kill=function(n){var r,t,i=this._props;for(r in this._beziers)if(r in n)for(delete this._beziers[r],delete this._func[r],t=i.length;--t>-1;)i[t]===r&&i.splice(t,1);if(i=this._autoRotate)for(t=i.length;--t>-1;)n[i[t][2]]&&i.splice(t,1);return this._super._kill.call(this,n)}}();_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(n,t){var ht,ni,e,si,r=function(){n.call(this,"css");this._overwriteProps.length=0;this.setRatio=r.prototype.setRatio},iu=_gsScope._gsDefine.globals,v={},i=r.prototype=new n("css"),dr,st,gr,nu,tu,gt;i.constructor=r;r.version="1.19.0";r.API=2;r.defaultTransformPerspective=0;r.defaultSkewType="compensated";r.defaultSmoothOrigin=!0;i="px";r.suffixMap={top:i,right:i,bottom:i,left:i,width:i,height:i,fontSize:i,padding:i,margin:i,perspective:i,lineHeight:""};var hi,er,ti,ii,or,ot,tt,it,ct=/(?:\-|\.|\b)(\d|\.|e\-)+/g,ci=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,li=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,ai=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,lt=/(?:\d|\-|\+|=|#|\.)*/g,vi=/opacity *= *([^)]*)/i,ru=/opacity:([^;]*)/i,uu=/alpha\(opacity *=.+?\)/i,fu=/^(rgb|hsl)/,sr=/([A-Z])/g,hr=/-([a-z])/gi,eu=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,cr=function(n,t){return t.toUpperCase()},ou=/(?:Left|Right|Width)/i,su=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,hu=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,k=/,(?=[^\)]*(?:\(|$))/gi,cu=/[\s,\(]/i,a=Math.PI/180,rt=180/Math.PI,ri={},y=document,yi=function(n){return y.createElementNS?y.createElementNS("http://www.w3.org/1999/xhtml",n):y.createElement(n)},d=yi("div"),pi=yi("img"),p=r._internals={_specialProps:v},g=navigator.userAgent,ut=function(){var t=g.indexOf("Android"),n=yi("a");return ti=-1!==g.indexOf("Safari")&&-1===g.indexOf("Chrome")&&(-1===t||Number(g.substr(t+8,1))>3),or=ti&&Number(g.substr(g.indexOf("Version/")+8,1))<6,ii=-1!==g.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(g)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(g))&&(ot=parseFloat(RegExp.$1)),n?(n.style.cssText="top:1px;opacity:.55;",/^0.55/.test(n.style.opacity)):!1}(),lr=function(n){return vi.test("string"==typeof n?n:(n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?parseFloat(RegExp.$1)/100:1},ar=function(n){window.console&&console.log(n)},vr="",wi="",at=function(n,t){t=t||d;var r,i,u=t.style;if(void 0!==u[n])return n;for(n=n.charAt(0).toUpperCase()+n.substr(1),r=["O","Moz","ms","Ms","Webkit"],i=5;--i>-1&&void 0===u[r[i]+n];);return i>=0?(wi=3===i?"ms":r[i],vr="-"+wi.toLowerCase()+"-",wi+n):null},ft=y.defaultView?y.defaultView.getComputedStyle:function(){},u=r.getStyle=function(n,t,i,r,u){var f;return ut||"opacity"!==t?(!r&&n.style[t]?f=n.style[t]:(i=i||ft(n))?f=i[t]||i.getPropertyValue(t)||i.getPropertyValue(t.replace(sr,"-$1").toLowerCase()):n.currentStyle&&(f=n.currentStyle[t]),null==u||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:u):lr(n)},w=p.convertToPixels=function(n,i,f,e,o){if("px"===e||!e)return f;if("auto"===e||!f)return 0;var s,h,a,l=ou.test(i),c=n,v=d.style,p=0>f,b=1===f;if(p&&(f=-f),b&&(f*=100),"%"===e&&-1!==i.indexOf("border"))s=f/100*(l?n.clientWidth:n.clientHeight);else{if(v.cssText="border:0 solid red;position:"+u(n,"position")+";line-height:0;","%"!==e&&c.appendChild&&"v"!==e.charAt(0)&&"rem"!==e)v[l?"borderLeftWidth":"borderTopWidth"]=f+e;else{if(c=n.parentNode||y.body,h=c._gsCache,a=t.ticker.frame,h&&l&&h.time===a)return h.width*f/100;v[l?"width":"height"]=f+e}c.appendChild(d);s=parseFloat(d[l?"offsetWidth":"offsetHeight"]);c.removeChild(d);l&&"%"===e&&r.cacheWidths!==!1&&(h=c._gsCache=c._gsCache||{},h.time=a,h.width=s/f*100);0!==s||o||(s=w(n,i,f,e,!0))}return b&&(s/=100),p?-s:s},yr=p.calculateOffset=function(n,t,i){if("absolute"!==u(n,"position",i))return 0;var r="left"===t?"Left":"Top",f=u(n,"margin"+r,i);return n["offset"+r]-(w(n,t,parseFloat(f),f.replace(lt,""))||0)},vt=function(n,t){var r,u,f,i={};if(t=t||ft(n,null))if(r=t.length)for(;--r>-1;)f=t[r],(-1===f.indexOf("-transform")||tr===f)&&(i[f.replace(hr,cr)]=t.getPropertyValue(f));else for(r in t)(-1===r.indexOf("Transform")||h===r)&&(i[r]=t[r]);else if(t=n.currentStyle||n.style)for(r in t)"string"==typeof r&&void 0===i[r]&&(i[r.replace(hr,cr)]=t[r]);return ut||(i.opacity=lr(n)),u=dt(n,t,!1),i.rotation=u.rotation,i.skewX=u.skewX,i.scaleX=u.scaleX,i.scaleY=u.scaleY,i.x=u.x,i.y=u.y,b&&(i.z=u.z,i.rotationX=u.rotationX,i.rotationY=u.rotationY,i.scaleZ=u.scaleZ),i.filters&&delete i.filters,i},bi=function(n,t,i,r,u){var e,f,o,s={},h=n.style;for(f in i)"cssText"!==f&&"length"!==f&&isNaN(f)&&(t[f]!==(e=i[f])||u&&u[f])&&-1===f.indexOf("Origin")&&("number"==typeof e||"string"==typeof e)&&(s[f]="auto"!==e||"left"!==f&&"top"!==f?""!==e&&"auto"!==e&&"none"!==e||"string"!=typeof t[f]||""===t[f].replace(ai,"")?e:0:yr(n,f),void 0!==h[f]&&(o=new nr(h,f,h[f],o)));if(r)for(f in r)"className"!==f&&(s[f]=r[f]);return{difs:s,firstMPT:o}},lu={width:["Left","Right"],height:["Top","Bottom"]},au=["marginLeft","marginRight","marginTop","marginBottom"],vu=function(n,t,i){if("svg"===(n.nodeName+"").toLowerCase())return(i||ft(n))[t]||0;if(n.getBBox&&rr(n))return n.getBBox()[t]||0;var r=parseFloat("width"===t?n.offsetWidth:n.offsetHeight),f=lu[t],e=f.length;for(i=i||ft(n,null);--e>-1;)r-=parseFloat(u(n,"padding"+f[e],i,!0))||0,r-=parseFloat(u(n,"border"+f[e]+"Width",i,!0))||0;return r},et=function(n,t){if("contain"===n||"auto"===n||"auto auto"===n)return n+" ";(null==n||""===n)&&(n="0 0");var f,r=n.split(" "),i=-1!==n.indexOf("left")?"0%":-1!==n.indexOf("right")?"100%":r[0],u=-1!==n.indexOf("top")?"0%":-1!==n.indexOf("bottom")?"100%":r[1];if(r.length>3&&!t){for(r=n.split(", ").join(",").split(","),n=[],f=0;f<r.length;f++)n.push(et(r[f]));return n.join(",")}return null==u?u="center"===i?"50%":"0":"center"===u&&(u="50%"),("center"===i||isNaN(parseFloat(i))&&-1===(i+"").indexOf("="))&&(i="50%"),n=i+" "+u+(r.length>2?" "+r[2]:""),t&&(t.oxp=-1!==i.indexOf("%"),t.oyp=-1!==u.indexOf("%"),t.oxr="="===i.charAt(1),t.oyr="="===u.charAt(1),t.ox=parseFloat(i.replace(ai,"")),t.oy=parseFloat(u.replace(ai,"")),t.v=n),t||n},yt=function(n,t){return"function"==typeof n&&(n=n(it,tt)),"string"==typeof n&&"="===n.charAt(1)?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-parseFloat(t)||0},c=function(n,t){return"function"==typeof n&&(n=n(it,tt)),null==n?t:"string"==typeof n&&"="===n.charAt(1)?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2))+t:parseFloat(n)||0},pt=function(n,t,i,r){var f,o,u,e,s,h=1e-6;return"function"==typeof n&&(n=n(it,tt)),null==n?e=t:"number"==typeof n?e=n:(f=360,o=n.split("_"),s="="===n.charAt(1),u=(s?parseInt(n.charAt(0)+"1",10)*parseFloat(o[0].substr(2)):parseFloat(o[0]))*(-1===n.indexOf("rad")?1:rt)-(s?0:t),o.length&&(r&&(r[i]=t+u),-1!==n.indexOf("short")&&(u%=f,u!==u%(f/2)&&(u=0>u?u+f:u-f)),-1!==n.indexOf("_cw")&&0>u?u=(u+9999999999*f)%f-(u/f|0)*f:-1!==n.indexOf("ccw")&&u>0&&(u=(u-9999999999*f)%f-(u/f|0)*f)),e=t+u),h>e&&e>-h&&(e=0),e},wt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ki=function(n,t,i){return n=0>n?n+1:n>1?n-1:n,255*(1>6*n?t+(i-t)*n*6:.5>n?i:2>3*n?t+(i-t)*(2/3-n)*6:t)+.5|0},ui=r.parseColor=function(n,t){var i,u,r,f,o,h,e,s,c,l,a;if(n)if("number"==typeof n)i=[n>>16,n>>8&255,255&n];else{if(","===n.charAt(n.length-1)&&(n=n.substr(0,n.length-1)),wt[n])i=wt[n];else if("#"===n.charAt(0))4===n.length&&(u=n.charAt(1),r=n.charAt(2),f=n.charAt(3),n="#"+u+u+r+r+f+f),n=parseInt(n.substr(1),16),i=[n>>16,n>>8&255,255&n];else if("hsl"===n.substr(0,3))if(i=a=n.match(ct),t){if(-1!==n.indexOf("="))return n.match(ci)}else o=Number(i[0])%360/360,h=Number(i[1])/100,e=Number(i[2])/100,r=.5>=e?e*(h+1):e+h-e*h,u=2*e-r,i.length>3&&(i[3]=Number(n[3])),i[0]=ki(o+1/3,u,r),i[1]=ki(o,u,r),i[2]=ki(o-1/3,u,r);else i=n.match(ct)||wt.transparent;i[0]=Number(i[0]);i[1]=Number(i[1]);i[2]=Number(i[2]);i.length>3&&(i[3]=Number(i[3]))}else i=wt.black;return t&&!a&&(u=i[0]/255,r=i[1]/255,f=i[2]/255,s=Math.max(u,r,f),c=Math.min(u,r,f),e=(s+c)/2,s===c?o=h=0:(l=s-c,h=e>.5?l/(2-s-c):l/(s+c),o=s===u?(r-f)/l+(f>r?6:0):s===r?(f-u)/l+2:(u-r)/l+4,o*=60),i[0]=o+.5|0,i[1]=100*h+.5|0,i[2]=100*e+.5|0),i},pr=function(n,t){for(var i,f,e=n.match(l)||[],r=0,o=e.length?"":n,u=0;u<e.length;u++)i=e[u],f=n.substr(r,n.indexOf(i,r)-r),r+=f.length+i.length,i=ui(i,t),3===i.length&&i.push(1),o+=f+(t?"hsla("+i[0]+","+i[1]+"%,"+i[2]+"%,"+i[3]:"rgba("+i.join(","))+")";return o+n.substr(r)},l="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(i in wt)l+="|"+i+"\\b";l=new RegExp(l+")","gi");r.colorStringFilter=function(n){var t,i=n[0]+n[1];l.test(i)&&(t=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),n[0]=pr(n[0],t),n[1]=pr(n[1],t));l.lastIndex=0};t.defaultStringFilter||(t.defaultStringFilter=r.colorStringFilter);var di=function(n,t,i,r){if(null==n)return function(n){return n};var e,s=t?(n.match(l)||[""])[0]:"",f=n.split(s).join("").match(li)||[],h=n.substr(0,n.indexOf(f[0])),c=")"===n.charAt(n.length-1)?")":"",o=-1!==n.indexOf(" ")?" ":",",u=f.length,a=u>0?f[0].replace(ct,""):"";return u?e=t?function(n){var p,v,t,y;if("number"==typeof n)n+=a;else if(r&&k.test(n)){for(y=n.replace(k,"|").split("|"),t=0;t<y.length;t++)y[t]=e(y[t]);return y.join(",")}if(p=(n.match(l)||[s])[0],v=n.split(p).join("").match(li)||[],t=v.length,u>t--)for(;++t<u;)v[t]=i?v[(t-1)/2|0]:f[t];return h+v.join(o)+o+p+c+(-1!==n.indexOf("inset")?" inset":"")}:function(n){var s,l,t;if("number"==typeof n)n+=a;else if(r&&k.test(n)){for(l=n.replace(k,"|").split("|"),t=0;t<l.length;t++)l[t]=e(l[t]);return l.join(",")}if(s=n.match(li)||[],t=s.length,u>t--)for(;++t<u;)s[t]=i?s[(t-1)/2|0]:f[t];return h+s.join(o)+c}:function(n){return n}},gi=function(n){return n=n.split(","),function(t,i,r,u,f,e,o){var s,h=(i+"").split(" ");for(o={},s=0;4>s;s++)o[n[s]]=h[s]=h[s]||h[(s-1)/2>>0];return u.parse(t,o,f,e)}},nr=(p._setPluginRatio=function(n){this.plugin.setRatio(n);for(var r,t,f,e,o,u=this.data,s=u.proxy,i=u.firstMPT,h=1e-6;i;)r=s[i.v],i.r?r=Math.round(r):h>r&&r>-h&&(r=0),i.t[i.p]=r,i=i._next;if(u.autoRotate&&(u.autoRotate.rotation=u.mod?u.mod(s.rotation,this.t):s.rotation),1===n||0===n)for(i=u.firstMPT,o=1===n?"e":"b";i;){if(t=i.t,t.type){if(1===t.type){for(e=t.xs0+t.s+t.xs1,f=1;f<t.l;f++)e+=t["xn"+f]+t["xs"+(f+1)];t[o]=e}}else t[o]=t.s+t.xs0;i=i._next}},function(n,t,i,r,u){this.t=n;this.p=t;this.v=i;this.r=u;r&&(r._prev=this,this._next=r)}),o=(p._parseToProxy=function(n,t,i,r,u,f){var c,e,o,s,v,h=r,l={},a={},y=i._transform,p=ri;for(i._transform=null,ri=t,r=v=i.parse(n,t,r,u),ri=p,f&&(i._transform=y,h&&(h._prev=null,h._prev&&(h._prev._next=null)));r&&r!==h;){if(r.type<=1&&(e=r.p,a[e]=r.s+r.c,l[e]=r.s,f||(s=new nr(r,"s",e,s,r.r),r.c=0),1===r.type))for(c=r.l;--c>0;)o="xn"+c,e=r.p+"_"+o,a[e]=r.data[o],l[e]=r[o],f||(s=new nr(r,o,e,s,r.rxp[o]));r=r._next}return{proxy:l,end:a,firstMPT:s,pt:v}},p.CSSPropTween=function(n,t,i,r,u,f,e,s,h,c,l){this.t=n;this.p=t;this.s=i;this.c=r;this.n=e||t;n instanceof o||si.push(this.n);this.r=s;this.type=f||0;h&&(this.pr=h,ht=!0);this.b=void 0===c?i:c;this.e=void 0===l?i+r:l;u&&(this._next=u,u._prev=this)}),fi=function(n,t,i,r,u,f){var e=new o(n,t,i,r-i,u,-1,f);return e.b=i,e.e=e.xs0=r,e},bt=r.parseComplex=function(n,t,i,u,f,e,s,h,c,a){i=i||e||"";"function"==typeof u&&(u=u(it,tt));s=new o(n,t,0,0,s,a?2:1,null,!1,h,i,u);u+="";f&&l.test(u+i)&&(u=[i,u],r.colorStringFilter(u),i=u[0],u=u[1]);var p,g,nt,v,y,ot,st,ft,b,ht,rt,w,lt,d=i.split(", ").join(",").split(" "),et=u.split(", ").join(",").split(" "),at=d.length,vt=hi!==!1;for((-1!==u.indexOf(",")||-1!==i.indexOf(","))&&(d=d.join(" ").replace(k,", ").split(" "),et=et.join(" ").replace(k,", ").split(" "),at=d.length),at!==et.length&&(d=(e||"").split(" "),at=d.length),s.plugin=c,s.setRatio=a,l.lastIndex=0,p=0;at>p;p++)if(v=d[p],y=et[p],ft=parseFloat(v),ft||0===ft)s.appendXtra("",ft,yt(y,ft),y.replace(ci,""),vt&&-1!==y.indexOf("px"),!0);else if(f&&l.test(v))w=y.indexOf(")")+1,w=")"+(w?y.substr(w):""),lt=-1!==y.indexOf("hsl")&&ut,v=ui(v,lt),y=ui(y,lt),b=v.length+y.length>6,b&&!ut&&0===y[3]?(s["xs"+s.l]+=s.l?" transparent":"transparent",s.e=s.e.split(et[p]).join("transparent")):(ut||(b=!1),lt?s.appendXtra(b?"hsla(":"hsl(",v[0],yt(y[0],v[0]),",",!1,!0).appendXtra("",v[1],yt(y[1],v[1]),"%,",!1).appendXtra("",v[2],yt(y[2],v[2]),b?"%,":"%"+w,!1):s.appendXtra(b?"rgba(":"rgb(",v[0],y[0]-v[0],",",!0,!0).appendXtra("",v[1],y[1]-v[1],",",!0).appendXtra("",v[2],y[2]-v[2],b?",":w,!0),b&&(v=v.length<4?1:v[3],s.appendXtra("",v,(y.length<4?1:y[3])-v,w,!1))),l.lastIndex=0;else if(ot=v.match(ct)){if(st=y.match(ci),!st||st.length!==ot.length)return s;for(nt=0,g=0;g<ot.length;g++)rt=ot[g],ht=v.indexOf(rt,nt),s.appendXtra(v.substr(nt,ht-nt),Number(rt),yt(st[g],rt),"",vt&&"px"===v.substr(ht+rt.length,2),0===g),nt=ht+rt.length;s["xs"+s.l]+=v.substr(nt)}else s["xs"+s.l]+=s.l||s["xs"+s.l]?" "+y:y;if(-1!==u.indexOf("=")&&s.data){for(w=s.xs0+s.data.s,p=1;p<s.l;p++)w+=s["xs"+p]+s.data["xn"+p];s.e=w+s["xs"+p]}return s.l||(s.type=-1,s.xs0=s.e),s.xfirst||s},s=9;for(i=o.prototype,i.l=i.pr=0;--s>0;)i["xn"+s]=0,i["xs"+s]="";i.xs0="";i._next=i._prev=i.xfirst=i.data=i.plugin=i.setRatio=i.rxp=null;i.appendXtra=function(n,t,i,r,u,f){var e=this,s=e.l;return e["xs"+s]+=f&&(s||e["xs"+s])?" "+n:n||"",i||0===s||e.plugin?(e.l++,e.type=e.setRatio?2:1,e["xs"+e.l]=r||"",s>0?(e.data["xn"+s]=t+i,e.rxp["xn"+s]=u,e["xn"+s]=t,e.plugin||(e.xfirst=new o(e,"xn"+s,t,i,e.xfirst||e,0,e.n,u,e.pr),e.xfirst.xs0=0),e):(e.data={s:t+i},e.rxp={},e.s=t,e.c=i,e.r=u,e)):(e["xs"+s]+=t+(r||""),e)};var wr=function(n,t){t=t||{};this.p=t.prefix?at(n)||n:n;v[n]=v[this.p]=this;this.format=t.formatter||di(t.defaultValue,t.color,t.collapsible,t.multi);t.parser&&(this.parse=t.parser);this.clrs=t.color;this.multi=t.multi;this.keyword=t.keyword;this.dflt=t.defaultValue;this.pr=t.priority||0},f=p._registerComplexSpecialProp=function(n,t,i){"object"!=typeof t&&(t={parser:i});var r,e,u=n.split(","),f=t.defaultValue;for(i=i||[f],r=0;r<u.length;r++)t.prefix=0===r&&t.prefix,t.defaultValue=i[r]||f,e=new wr(u[r],t)},yu=p._registerPluginProp=function(n){if(!v[n]){var t=n.charAt(0).toUpperCase()+n.substr(1)+"Plugin";f(n,{parser:function(n,i,r,u,f,e,o){var s=iu.com.greensock.plugins[t];return s?(s._cssRegister(),v[r].parse(n,i,r,u,f,e,o)):(ar("Error: "+t+" js file not loaded."),f)}})}};i=wr.prototype;i.parseComplex=function(n,t,i,r,u,f){var e,o,s,a,c,l,h=this.keyword;if(this.multi&&(k.test(i)||k.test(t)?(o=t.replace(k,"|").split("|"),s=i.replace(k,"|").split("|")):h&&(o=[t],s=[i])),s){for(a=s.length>o.length?s.length:o.length,e=0;a>e;e++)t=o[e]=o[e]||this.dflt,i=s[e]=s[e]||this.dflt,h&&(c=t.indexOf(h),l=i.indexOf(h),c!==l&&(-1===l?o[e]=o[e].split(h).join(""):-1===c&&(o[e]+=" "+h)));t=o.join(", ");i=s.join(", ")}return bt(n,this.p,t,i,this.clrs,this.dflt,r,this.pr,u,f)};i.parse=function(n,t,i,r,f,o){return this.parseComplex(n.style,this.format(u(n,this.p,e,!1,this.dflt)),this.format(t),f,o)};r.registerSpecialProp=function(n,t,i){f(n,{parser:function(n,r,u,f,e,s){var h=new o(n,u,0,0,e,2,u,!1,i);return h.plugin=s,h.setRatio=t(n,r,f._tween,u),h},priority:i})};r.useSVGTransformAttr=ti||ii;var nt,br="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),h=at("transform"),tr=vr+"transform",kt=at("transformOrigin"),b=null!==at("perspective"),ei=p.Transform=function(){this.perspective=parseFloat(r.defaultTransformPerspective)||0;this.force3D=r.defaultForce3D!==!1&&b?r.defaultForce3D||"auto":!1},pu=window.SVGElement,kr=function(n,t,i){var r,u=y.createElementNS("http://www.w3.org/2000/svg",n),f=/([a-z])([A-Z])/g;for(r in i)u.setAttributeNS(null,r.replace(f,"$1-$2").toLowerCase(),i[r]);return t.appendChild(u),u},oi=y.documentElement,wu=function(){var t,n,r,i=ot||/Android/i.test(g)&&!window.chrome;return y.createElementNS&&!i&&(t=kr("svg",oi),n=kr("rect",t,{width:100,height:50,x:100}),r=n.getBoundingClientRect().width,n.style[kt]="50% 50%",n.style[h]="scaleX(0.5)",i=r===n.getBoundingClientRect().width&&!(ii&&b),oi.removeChild(t)),i}(),ir=function(n,t,i,u,f,e){var c,a,v,y,p,w,h,b,k,d,g,l,nt,tt,o=n._gsTransform,s=fr(n,!0);o&&(nt=o.xOrigin,tt=o.yOrigin);(!u||(c=u.split(" ")).length<2)&&(h=n.getBBox(),t=et(t).split(" "),c=[(-1!==t[0].indexOf("%")?parseFloat(t[0])/100*h.width:parseFloat(t[0]))+h.x,(-1!==t[1].indexOf("%")?parseFloat(t[1])/100*h.height:parseFloat(t[1]))+h.y]);i.xOrigin=y=parseFloat(c[0]);i.yOrigin=p=parseFloat(c[1]);u&&s!==ur&&(w=s[0],h=s[1],b=s[2],k=s[3],d=s[4],g=s[5],l=w*k-h*b,a=y*(k/l)+p*(-b/l)+(b*g-k*d)/l,v=y*(-h/l)+p*(w/l)-(w*g-h*d)/l,y=i.xOrigin=c[0]=a,p=i.yOrigin=c[1]=v);o&&(e&&(i.xOffset=o.xOffset,i.yOffset=o.yOffset,o=i),f||f!==!1&&r.defaultSmoothOrigin!==!1?(a=y-nt,v=p-tt,o.xOffset+=a*s[0]+v*s[2]-a,o.yOffset+=a*s[1]+v*s[3]-v):o.xOffset=o.yOffset=0);e||n.setAttribute("data-svg-origin",c.join(" "))},bu=function(n){try{return n.getBBox()}catch(n){}},rr=function(n){return!!(pu&&n.getBBox&&n.getCTM&&bu(n)&&(!n.parentNode||n.parentNode.getBBox&&n.parentNode.getCTM))},ur=[1,0,0,1,0,0],fr=function(n,t){var f,i,r,e,c,l,a=n._gsTransform||new ei,v=1e5,o=n.style;if(h?i=u(n,tr,null,!0):n.currentStyle&&(i=n.currentStyle.filter.match(su),i=i&&4===i.length?[i[0].substr(4),Number(i[2].substr(4)),Number(i[1].substr(4)),i[3].substr(4),a.x||0,a.y||0].join(","):""),f=!i||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i,f&&h&&((l="none"===ft(n).display)||!n.parentNode)&&(l&&(e=o.display,o.display="block"),n.parentNode||(c=1,oi.appendChild(n)),i=u(n,tr,null,!0),f=!i||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i,e?o.display=e:l&&st(o,"display"),c&&oi.removeChild(n)),(a.svg||n.getBBox&&rr(n))&&(f&&-1!==(o[h]+"").indexOf("matrix")&&(i=o[h],f=0),r=n.getAttribute("transform"),f&&r&&(-1!==r.indexOf("matrix")?(i=r,f=0):-1!==r.indexOf("translate")&&(i="matrix(1,0,0,1,"+r.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",f=0))),f)return ur;for(r=(i||"").match(ct)||[],s=r.length;--s>-1;)e=Number(r[s]),r[s]=(c=e-(e|=0))?(c*v+(0>c?-.5:.5)|0)/v+e:e;return t&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r},dt=p.getTransform=function(n,i,f,e){if(n._gsTransform&&f&&!e)return n._gsTransform;var s,pt,dt,gt,ut,tt,o=f?n._gsTransform||new ei:new ei,ni=o.scaleX<0,ti=2e-5,ft=1e5,fi=b?parseFloat(u(n,kt,i,!1,"0 0 0").split(" ")[2])||o.zOrigin||0:0,oi=parseFloat(r.defaultTransformPerspective)||0;if(o.svg=!(!n.getBBox||!rr(n)),o.svg&&(ir(n,u(n,kt,i,!1,"50% 50%")+"",o,n.getAttribute("data-svg-origin")),nt=r.useSVGTransformAttr||wu),s=fr(n),s!==ur){if(16===s.length){var wt,et,bt,c,l,k=s[0],p=s[1],ht=s[2],si=s[3],it=s[4],v=s[5],d=s[6],hi=s[7],ct=s[8],w=s[9],y=s[10],ii=s[12],ri=s[13],ot=s[14],g=s[11],a=Math.atan2(d,y);o.zOrigin&&(ot=-o.zOrigin,ii=ct*ot-s[12],ri=w*ot-s[13],ot=y*ot+o.zOrigin-s[14]);o.rotationX=a*rt;a&&(c=Math.cos(-a),l=Math.sin(-a),wt=it*c+ct*l,et=v*c+w*l,bt=d*c+y*l,ct=it*-l+ct*c,w=v*-l+w*c,y=d*-l+y*c,g=hi*-l+g*c,it=wt,v=et,d=bt);a=Math.atan2(-ht,y);o.rotationY=a*rt;a&&(c=Math.cos(-a),l=Math.sin(-a),wt=k*c-ct*l,et=p*c-w*l,bt=ht*c-y*l,w=p*l+w*c,y=ht*l+y*c,g=si*l+g*c,k=wt,p=et,ht=bt);a=Math.atan2(p,k);o.rotation=a*rt;a&&(c=Math.cos(-a),l=Math.sin(-a),k=k*c+it*l,et=p*c+v*l,v=p*-l+v*c,d=ht*-l+d*c,p=et);o.rotationX&&Math.abs(o.rotationX)+Math.abs(o.rotation)>359.9&&(o.rotationX=o.rotation=0,o.rotationY=180-o.rotationY);o.scaleX=(Math.sqrt(k*k+p*p)*ft+.5|0)/ft;o.scaleY=(Math.sqrt(v*v+w*w)*ft+.5|0)/ft;o.scaleZ=(Math.sqrt(d*d+y*y)*ft+.5|0)/ft;o.rotationX||o.rotationY?o.skewX=0:(o.skewX=it||v?Math.atan2(it,v)*rt+o.rotation:o.skewX||0,Math.abs(o.skewX)>90&&Math.abs(o.skewX)<270&&(ni?(o.scaleX*=-1,o.skewX+=o.rotation<=0?180:-180,o.rotation+=o.rotation<=0?180:-180):(o.scaleY*=-1,o.skewX+=o.skewX<=0?180:-180)));o.perspective=g?1/(0>g?-g:g):0;o.x=ii;o.y=ri;o.z=ot;o.svg&&(o.x-=o.xOrigin-(o.xOrigin*k-o.yOrigin*it),o.y-=o.yOrigin-(o.yOrigin*p-o.xOrigin*v))}else if(!b||e||!s.length||o.x!==s[4]||o.y!==s[5]||!o.rotationX&&!o.rotationY){var ui=s.length>=6,lt=ui?s[0]:1,at=s[1]||0,vt=s[2]||0,yt=ui?s[3]:1;o.x=s[4]||0;o.y=s[5]||0;dt=Math.sqrt(lt*lt+at*at);gt=Math.sqrt(yt*yt+vt*vt);ut=lt||at?Math.atan2(at,lt)*rt:o.rotation||0;tt=vt||yt?Math.atan2(vt,yt)*rt+ut:o.skewX||0;Math.abs(tt)>90&&Math.abs(tt)<270&&(ni?(dt*=-1,tt+=0>=ut?180:-180,ut+=0>=ut?180:-180):(gt*=-1,tt+=0>=tt?180:-180));o.scaleX=dt;o.scaleY=gt;o.rotation=ut;o.skewX=tt;b&&(o.rotationX=o.rotationY=o.z=0,o.perspective=oi,o.scaleZ=1);o.svg&&(o.x-=o.xOrigin-(o.xOrigin*lt+o.yOrigin*vt),o.y-=o.yOrigin-(o.xOrigin*at+o.yOrigin*yt))}o.zOrigin=fi;for(pt in o)o[pt]<ti&&o[pt]>-ti&&(o[pt]=0)}return f&&(n._gsTransform=o,o.svg&&(nt&&n.style[h]?t.delayedCall(.001,function(){st(n.style,h)}):!nt&&n.getAttribute("transform")&&t.delayedCall(.001,function(){n.removeAttribute("transform")}))),o},ku=function(n){var o,p,t=this.data,nt=-t.rotation*a,ut=nt+t.skewX*a,e=1e5,h=(Math.cos(nt)*t.scaleX*e|0)/e,u=(Math.sin(nt)*t.scaleX*e|0)/e,f=(Math.sin(ut)*-t.scaleY*e|0)/e,c=(Math.cos(ut)*t.scaleY*e|0)/e,d=this.t.style,g=this.t.currentStyle,k,y,ft,et;if(g){p=u;u=-f;f=-p;o=g.filter;d.filter="";var i,r,l=this.t.offsetWidth,v=this.t.offsetHeight,tt="absolute"!==g.position,b="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+u+", M21="+f+", M22="+c,it=t.x+l*t.xPercent/100,rt=t.y+v*t.yPercent/100;if(null!=t.ox&&(i=(t.oxp?l*t.ox*.01:t.ox)-l/2,r=(t.oyp?v*t.oy*.01:t.oy)-v/2,it+=i-(i*h+r*u),rt+=r-(i*f+r*c)),tt?(i=l/2,r=v/2,b+=", Dx="+(i-(i*h+r*u)+it)+", Dy="+(r-(i*f+r*c)+rt)+")"):b+=", sizingMethod='auto expand')",d.filter=-1!==o.indexOf("DXImageTransform.Microsoft.Matrix(")?o.replace(hu,b):b+" "+o,(0===n||1===n)&&1===h&&0===u&&0===f&&1===c&&(tt&&-1===b.indexOf("Dx=0, Dy=0")||vi.test(o)&&100!==parseFloat(RegExp.$1)||-1===o.indexOf(o.indexOf("Alpha"))&&d.removeAttribute("filter")),!tt)for(et=8>ot?1:-1,i=t.ieOffsetX||0,r=t.ieOffsetY||0,t.ieOffsetX=Math.round((l-((0>h?-h:h)*l+(0>u?-u:u)*v))/2+it),t.ieOffsetY=Math.round((v-((0>c?-c:c)*v+(0>f?-f:f)*l))/2+rt),s=0;4>s;s++)y=au[s],k=g[y],p=-1!==k.indexOf("px")?parseFloat(k):w(this.t,y,parseFloat(k),k.replace(lt,""))||0,ft=p!==t[y]?2>s?-t.ieOffsetX:-t.ieOffsetY:2>s?i-t.ieOffsetX:r-t.ieOffsetY,d[y]=(t[y]=Math.round(p-ft*(0===s||2===s?1:et)))+"px"}},du=p.set3DTransformRatio=p.setTransformRatio=function(n){var c,l,tt,v,y,it,lt,at,ut,vt,yt,ft,ht,i,f,e,r,dt,g,o,s,pt,et,t=this.data,wt=this.t.style,u=t.rotation,bt=t.rotationX,kt=t.rotationY,k=t.scaleX,d=t.scaleY,rt=t.scaleZ,p=t.x,w=t.y,ot=t.z,ct=t.svg,st=t.perspective,gt=t.force3D;if(((1===n||0===n)&&"auto"===gt&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!gt)&&!ot&&!st&&!kt&&!bt&&1===rt||nt&&ct||!b)return void(u||t.skewX||ct?(u*=a,pt=t.skewX*a,et=1e5,c=Math.cos(u)*k,v=Math.sin(u)*k,l=Math.sin(u-pt)*-d,y=Math.cos(u-pt)*d,pt&&"simple"===t.skewType&&(r=Math.tan(pt-t.skewY*a),r=Math.sqrt(1+r*r),l*=r,y*=r,t.skewY&&(r=Math.tan(t.skewY*a),r=Math.sqrt(1+r*r),c*=r,v*=r)),ct&&(p+=t.xOrigin-(t.xOrigin*c+t.yOrigin*l)+t.xOffset,w+=t.yOrigin-(t.xOrigin*v+t.yOrigin*y)+t.yOffset,nt&&(t.xPercent||t.yPercent)&&(i=this.t.getBBox(),p+=.01*t.xPercent*i.width,w+=.01*t.yPercent*i.height),i=1e-6,i>p&&p>-i&&(p=0),i>w&&w>-i&&(w=0)),g=(c*et|0)/et+","+(v*et|0)/et+","+(l*et|0)/et+","+(y*et|0)/et+","+p+","+w+")",ct&&nt?this.t.setAttribute("transform","matrix("+g):wt[h]=(t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) matrix(":"matrix(")+g):wt[h]=(t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) matrix(":"matrix(")+k+",0,0,"+d+","+p+","+w+")");if(ii&&(i=.0001,i>k&&k>-i&&(k=rt=2e-5),i>d&&d>-i&&(d=rt=2e-5),!st||t.z||t.rotationX||t.rotationY||(st=0)),u||t.skewX)u*=a,f=c=Math.cos(u),e=v=Math.sin(u),t.skewX&&(u-=t.skewX*a,f=Math.cos(u),e=Math.sin(u),"simple"===t.skewType&&(r=Math.tan((t.skewX-t.skewY)*a),r=Math.sqrt(1+r*r),f*=r,e*=r,t.skewY&&(r=Math.tan(t.skewY*a),r=Math.sqrt(1+r*r),c*=r,v*=r))),l=-e,y=f;else{if(!(kt||bt||1!==rt||st||ct))return void(wt[h]=(t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) translate3d(":"translate3d(")+p+"px,"+w+"px,"+ot+"px)"+(1!==k||1!==d?" scale("+k+","+d+")":""));c=y=1;l=v=0}ut=1;tt=it=lt=at=vt=yt=0;ft=st?-1/st:0;ht=t.zOrigin;i=1e-6;o=",";s="0";u=kt*a;u&&(f=Math.cos(u),e=Math.sin(u),lt=-e,vt=ft*-e,tt=c*e,it=v*e,ut=f,ft*=f,c*=f,v*=f);u=bt*a;u&&(f=Math.cos(u),e=Math.sin(u),r=l*f+tt*e,dt=y*f+it*e,at=ut*e,yt=ft*e,tt=l*-e+tt*f,it=y*-e+it*f,ut*=f,ft*=f,l=r,y=dt);1!==rt&&(tt*=rt,it*=rt,ut*=rt,ft*=rt);1!==d&&(l*=d,y*=d,at*=d,yt*=d);1!==k&&(c*=k,v*=k,lt*=k,vt*=k);(ht||ct)&&(ht&&(p+=tt*-ht,w+=it*-ht,ot+=ut*-ht+ht),ct&&(p+=t.xOrigin-(t.xOrigin*c+t.yOrigin*l)+t.xOffset,w+=t.yOrigin-(t.xOrigin*v+t.yOrigin*y)+t.yOffset),i>p&&p>-i&&(p=s),i>w&&w>-i&&(w=s),i>ot&&ot>-i&&(ot=0));g=t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) matrix3d(":"matrix3d(";g+=(i>c&&c>-i?s:c)+o+(i>v&&v>-i?s:v)+o+(i>lt&&lt>-i?s:lt);g+=o+(i>vt&&vt>-i?s:vt)+o+(i>l&&l>-i?s:l)+o+(i>y&&y>-i?s:y);bt||kt||1!==rt?(g+=o+(i>at&&at>-i?s:at)+o+(i>yt&&yt>-i?s:yt)+o+(i>tt&&tt>-i?s:tt),g+=o+(i>it&&it>-i?s:it)+o+(i>ut&&ut>-i?s:ut)+o+(i>ft&&ft>-i?s:ft)+o):g+=",0,0,0,0,1,0,";g+=p+o+w+o+ot+o+(st?1+-ot/st:1)+")";wt[h]=g};for(i=ei.prototype,i.x=i.y=i.z=i.skewX=i.skewY=i.rotation=i.rotationX=i.rotationY=i.zOrigin=i.xPercent=i.yPercent=i.xOffset=i.yOffset=0,i.scaleX=i.scaleY=i.scaleZ=1,f("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(n,t,i,f,s,l,a){var yt;if(f._lastParsedTransform===a)return s;f._lastParsedTransform=a;"function"==typeof a[i]&&(yt=a[i],a[i]=t);var w,rt,lt,at,ot,ut,ft,st,g,vt=n._gsTransform,wt=n.style,bt=1e-6,gt=br.length,p=a,ht={},ct="transformOrigin",v=dt(n,e,!0,p.parseTransform),k=p.transform&&("function"==typeof p.transform?p.transform(it,tt):p.transform);if(f._transform=v,k&&"string"==typeof k&&h)rt=d.style,rt[h]=k,rt.display="block",rt.position="absolute",y.body.appendChild(d),w=dt(d,null,!1),v.svg&&(ut=v.xOrigin,ft=v.yOrigin,w.x-=v.xOffset,w.y-=v.yOffset,(p.transformOrigin||p.svgOrigin)&&(k={},ir(n,et(p.transformOrigin),k,p.svgOrigin,p.smoothOrigin,!0),ut=k.xOrigin,ft=k.yOrigin,w.x-=k.xOffset-v.xOffset,w.y-=k.yOffset-v.yOffset),(ut||ft)&&(st=fr(d,!0),w.x-=ut-(ut*st[0]+ft*st[2]),w.y-=ft-(ut*st[1]+ft*st[3]))),y.body.removeChild(d),w.perspective||(w.perspective=v.perspective),null!=p.xPercent&&(w.xPercent=c(p.xPercent,v.xPercent)),null!=p.yPercent&&(w.yPercent=c(p.yPercent,v.yPercent));else if("object"==typeof p){if(w={scaleX:c(null!=p.scaleX?p.scaleX:p.scale,v.scaleX),scaleY:c(null!=p.scaleY?p.scaleY:p.scale,v.scaleY),scaleZ:c(p.scaleZ,v.scaleZ),x:c(p.x,v.x),y:c(p.y,v.y),z:c(p.z,v.z),xPercent:c(p.xPercent,v.xPercent),yPercent:c(p.yPercent,v.yPercent),perspective:c(p.transformPerspective,v.perspective)},ot=p.directionalRotation,null!=ot)if("object"==typeof ot)for(rt in ot)p[rt]=ot[rt];else p.rotation=ot;"string"==typeof p.x&&-1!==p.x.indexOf("%")&&(w.x=0,w.xPercent=c(p.x,v.xPercent));"string"==typeof p.y&&-1!==p.y.indexOf("%")&&(w.y=0,w.yPercent=c(p.y,v.yPercent));w.rotation=pt("rotation"in p?p.rotation:"shortRotation"in p?p.shortRotation+"_short":"rotationZ"in p?p.rotationZ:v.rotation-v.skewY,v.rotation-v.skewY,"rotation",ht);b&&(w.rotationX=pt("rotationX"in p?p.rotationX:"shortRotationX"in p?p.shortRotationX+"_short":v.rotationX||0,v.rotationX,"rotationX",ht),w.rotationY=pt("rotationY"in p?p.rotationY:"shortRotationY"in p?p.shortRotationY+"_short":v.rotationY||0,v.rotationY,"rotationY",ht));w.skewX=pt(p.skewX,v.skewX-v.skewY);(w.skewY=pt(p.skewY,v.skewY))&&(w.skewX+=w.skewY,w.rotation+=w.skewY)}for(b&&null!=p.force3D&&(v.force3D=p.force3D,at=!0),v.skewType=p.skewType||v.skewType||r.defaultSkewType,lt=v.force3D||v.z||v.rotationX||v.rotationY||w.z||w.rotationX||w.rotationY||w.perspective,lt||null==p.scale||(w.scaleZ=1);--gt>-1;)g=br[gt],k=w[g]-v[g],(k>bt||-bt>k||null!=p[g]||null!=ri[g])&&(at=!0,s=new o(v,g,v[g],k,s),g in ht&&(s.e=ht[g]),s.xs0=0,s.plugin=l,f._overwriteProps.push(s.n));return k=p.transformOrigin,v.svg&&(k||p.svgOrigin)&&(ut=v.xOffset,ft=v.yOffset,ir(n,et(k),w,p.svgOrigin,p.smoothOrigin),s=fi(v,"xOrigin",(vt?v:w).xOrigin,w.xOrigin,s,ct),s=fi(v,"yOrigin",(vt?v:w).yOrigin,w.yOrigin,s,ct),(ut!==v.xOffset||ft!==v.yOffset)&&(s=fi(v,"xOffset",vt?ut:v.xOffset,v.xOffset,s,ct),s=fi(v,"yOffset",vt?ft:v.yOffset,v.yOffset,s,ct)),k=nt?null:"0px 0px"),(k||b&&lt&&v.zOrigin)&&(h?(at=!0,g=kt,k=(k||u(n,g,e,!1,"50% 50%"))+"",s=new o(wt,g,0,0,s,-1,ct),s.b=wt[g],s.plugin=l,b?(rt=v.zOrigin,k=k.split(" "),v.zOrigin=(k.length>2&&(0===rt||"0px"!==k[2])?parseFloat(k[2]):rt)||0,s.xs0=s.e=k[0]+" "+(k[1]||"50%")+" 0px",s=new o(v,"zOrigin",0,0,s,-1,s.n),s.b=rt,s.xs0=s.e=v.zOrigin):s.xs0=s.e=k):et(k+"",v)),at&&(f._transformType=v.svg&&nt||!lt&&3!==this._transformType?2:3),yt&&(a[i]=yt),s},prefix:!0}),f("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),f("borderRadius",{defaultValue:"0px",parser:function(n,t,i,r,f){t=this.format(t);var tt,l,d,h,o,s,p,a,it,rt,c,v,g,b,k,nt,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],ut=n.style;for(it=parseFloat(n.offsetWidth),rt=parseFloat(n.offsetHeight),tt=t.split(" "),l=0;l<y.length;l++)this.p.indexOf("border")&&(y[l]=at(y[l])),o=h=u(n,y[l],e,!1,"0px"),-1!==o.indexOf(" ")&&(h=o.split(" "),o=h[0],h=h[1]),s=d=tt[l],p=parseFloat(o),v=o.substr((p+"").length),g="="===s.charAt(1),g?(a=parseInt(s.charAt(0)+"1",10),s=s.substr(2),a*=parseFloat(s),c=s.substr((a+"").length-(0>a?1:0))||""):(a=parseFloat(s),c=s.substr((a+"").length)),""===c&&(c=ni[i]||v),c!==v&&(b=w(n,"borderLeft",p,v),k=w(n,"borderTop",p,v),"%"===c?(o=b/it*100+"%",h=k/rt*100+"%"):"em"===c?(nt=w(n,"borderLeft",1,"em"),o=b/nt+"em",h=k/nt+"em"):(o=b+"px",h=k+"px"),g&&(s=parseFloat(o)+a+c,d=parseFloat(h)+a+c)),f=bt(ut,y[l],o+" "+h,s+" "+d,!1,"0px",f);return f},prefix:!0,formatter:di("0px 0px 0px 0px",!1,!0)}),f("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(n,t,i,r,f){return bt(n.style,i,this.format(u(n,i,e,!1,"0px 0px")),this.format(t),!1,"0px",f)},prefix:!0,formatter:di("0px 0px",!1,!0)}),f("backgroundPosition",{defaultValue:"0 0",parser:function(n,t,i,r,f,o){var c,b,h,y,p,l,w="background-position",a=e||ft(n,null),s=this.format((a?ot?a.getPropertyValue(w+"-x")+" "+a.getPropertyValue(w+"-y"):a.getPropertyValue(w):n.currentStyle.backgroundPositionX+" "+n.currentStyle.backgroundPositionY)||"0 0"),v=this.format(t);if(-1!==s.indexOf("%")!=(-1!==v.indexOf("%"))&&v.split(",").length<2&&(l=u(n,"backgroundImage").replace(eu,""),l&&"none"!==l)){for(c=s.split(" "),b=v.split(" "),pi.setAttribute("src",l),h=2;--h>-1;)s=c[h],y=-1!==s.indexOf("%"),y!==(-1!==b[h].indexOf("%"))&&(p=0===h?n.offsetWidth-pi.width:n.offsetHeight-pi.height,c[h]=y?parseFloat(s)/100*p+"px":parseFloat(s)/p*100+"%");s=c.join(" ")}return this.parseComplex(n.style,s,v,f,o)},formatter:et}),f("backgroundSize",{defaultValue:"0 0",formatter:function(n){return n+="",et(-1===n.indexOf(" ")?n+" "+n:n)}}),f("perspective",{defaultValue:"0px",prefix:!0}),f("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),f("transformStyle",{prefix:!0}),f("backfaceVisibility",{prefix:!0}),f("userSelect",{prefix:!0}),f("margin",{parser:gi("marginTop,marginRight,marginBottom,marginLeft")}),f("padding",{parser:gi("paddingTop,paddingRight,paddingBottom,paddingLeft")}),f("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(n,t,i,r,f,o){var c,s,h;return 9>ot?(s=n.currentStyle,h=8>ot?" ":",",c="rect("+s.clipTop+h+s.clipRight+h+s.clipBottom+h+s.clipLeft+")",t=this.format(t).split(",").join(h)):(c=this.format(u(n,this.p,e,!1,this.dflt)),t=this.format(t)),this.parseComplex(n.style,c,t,f,o)}}),f("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),f("autoRound,strictUnits",{parser:function(n,t,i,r,u){return u}}),f("border",{defaultValue:"0px solid #000",parser:function(n,t,i,r,f,o){var s=u(n,"borderTopWidth",e,!1,"0px"),c=this.format(t).split(" "),h=c[0].replace(lt,"");return"px"!==h&&(s=parseFloat(s)/w(n,"borderTopWidth",1,h)+h),this.parseComplex(n.style,this.format(s+" "+u(n,"borderTopStyle",e,!1,"solid")+" "+u(n,"borderTopColor",e,!1,"#000")),c.join(" "),f,o)},color:!0,formatter:function(n){var t=n.split(" ");return t[0]+" "+(t[1]||"solid")+" "+(n.match(l)||["#000"])[0]}}),f("borderWidth",{parser:gi("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),f("float,cssFloat,styleFloat",{parser:function(n,t,i,r,u){var f=n.style,e="cssFloat"in f?"cssFloat":"styleFloat";return new o(f,e,0,0,u,-1,i,!1,0,f[e],t)}}),dr=function(n){var f,i=this.t,t=i.filter||u(this.data,"filter")||"",r=this.s+this.c*n|0;100===r&&(-1===t.indexOf("atrix(")&&-1===t.indexOf("radient(")&&-1===t.indexOf("oader(")?(i.removeAttribute("filter"),f=!u(this.data,"filter")):(i.filter=t.replace(uu,""),f=!0));f||(this.xn1&&(i.filter=t=t||"alpha(opacity="+r+")"),-1===t.indexOf("pacity")?0===r&&this.xn1||(i.filter=t+" alpha(opacity="+r+")"):i.filter=t.replace(vi,"opacity="+r))},f("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(n,t,i,r,f,s){var h=parseFloat(u(n,"opacity",e,!1,"1")),c=n.style,l="autoAlpha"===i;return"string"==typeof t&&"="===t.charAt(1)&&(t=("-"===t.charAt(0)?-1:1)*parseFloat(t.substr(2))+h),l&&1===h&&"hidden"===u(n,"visibility",e)&&0!==t&&(h=0),ut?f=new o(c,"opacity",h,t-h,f):(f=new o(c,"opacity",100*h,100*(t-h),f),f.xn1=l?1:0,c.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=n,f.plugin=s,f.setRatio=dr),l&&(f=new o(c,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===t?"hidden":"inherit"),f.xs0="inherit",r._overwriteProps.push(f.n),r._overwriteProps.push(i)),f}}),st=function(n,t){t&&(n.removeProperty?(("ms"===t.substr(0,2)||"webkit"===t.substr(0,6))&&(t="-"+t),n.removeProperty(t.replace(sr,"-$1").toLowerCase())):n.removeAttribute(t))},gr=function(n){if(this.t._gsClassPT=this,1===n||0===n){this.t.setAttribute("class",0===n?this.b:this.e);for(var t=this.data,i=this.t.style;t;)t.v?i[t.p]=t.v:st(i,t.p),t=t._next;1===n&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)},f("className",{parser:function(n,t,i,r,u,f,s){var c,y,l,a,h,v=n.getAttribute("class")||"",p=n.style.cssText;if(u=r._classNamePT=new o(n,i,0,0,u,2),u.setRatio=gr,u.pr=-11,ht=!0,u.b=v,y=vt(n,e),l=n._gsClassPT){for(a={},h=l.data;h;)a[h.p]=1,h=h._next;l.setRatio(1)}return n._gsClassPT=u,u.e="="!==t.charAt(1)?t:v.replace(new RegExp("(?:\\s|^)"+t.substr(2)+"(?![\\w-])"),"")+("+"===t.charAt(0)?" "+t.substr(2):""),n.setAttribute("class",u.e),c=bi(n,y,vt(n),s,a),n.setAttribute("class",v),u.data=c.firstMPT,n.style.cssText=p,u=u.xfirst=r.parse(n,c.difs,u,f)}}),nu=function(n){if((1===n||0===n)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var i,t,r,u,f,e=this.t.style,o=v.transform.parse;if("all"===this.e)e.cssText="",u=!0;else for(i=this.e.split(" ").join("").split(","),r=i.length;--r>-1;)t=i[r],v[t]&&(v[t].parse===o?u=!0:t="transformOrigin"===t?kt:v[t].p),st(e,t);u&&(st(e,h),f=this.t._gsTransform,f&&(f.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}},f("clearProps",{parser:function(n,t,i,r,u){return u=new o(n,i,0,0,u,2),u.setRatio=nu,u.e=t,u.pr=-10,u.data=r._tween,ht=!0,u}}),i="bezier,throwProps,physicsProps,physics2D".split(","),s=i.length;s--;)yu(i[s]);return i=r.prototype,i._firstPT=i._lastParsedTransform=i._transform=null,i._onInitTween=function(n,t,i,f){if(!n.nodeType)return!1;this._target=tt=n;this._tween=i;this._vars=t;it=f;hi=t.autoRound;ht=!1;ni=t.suffixMap||r.suffixMap;e=ft(n,"");si=this._overwriteProps;var a,c,s,y,b,k,w,p,d,l=n.style;if(er&&""===l.zIndex&&(a=u(n,"zIndex",e),("auto"===a||""===a)&&this._addLazySet(l,"zIndex",0)),"string"==typeof t&&(y=l.cssText,a=vt(n,e),l.cssText=y+";"+t,a=bi(n,a,vt(n)).difs,!ut&&ru.test(t)&&(a.opacity=parseFloat(RegExp.$1)),t=a,l.cssText=y),this._firstPT=t.className?c=v.className.parse(n,t.className,"className",this,null,null,t):c=this.parse(n,t,null),this._transformType){for(d=3===this._transformType,h?ti&&(er=!0,""===l.zIndex&&(w=u(n,"zIndex",e),("auto"===w||""===w)&&this._addLazySet(l,"zIndex",0)),or&&this._addLazySet(l,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(d?"visible":"hidden"))):l.zoom=1,s=c;s&&s._next;)s=s._next;p=new o(n,"transform",0,0,null,2);this._linkCSSP(p,null,s);p.setRatio=h?du:ku;p.data=this._transform||dt(n,e,!0);p.tween=i;p.pr=-1;si.pop()}if(ht){for(;c;){for(k=c._next,s=y;s&&s.pr>c.pr;)s=s._next;(c._prev=s?s._prev:b)?c._prev._next=c:y=c;(c._next=s)?s._prev=c:b=c;c=k}this._firstPT=y}return!0},i.parse=function(n,t,i,r){var f,d,h,c,a,s,y,l,p,b,k=n.style;for(f in t)s=t[f],"function"==typeof s&&(s=s(it,tt)),d=v[f],d?i=d.parse(n,s,f,this,i,r,t):(a=u(n,f,e)+"",p="string"==typeof s,"color"===f||"fill"===f||"stroke"===f||-1!==f.indexOf("Color")||p&&fu.test(s)?(p||(s=ui(s),s=(s.length>3?"rgba(":"rgb(")+s.join(",")+")"),i=bt(k,f,a,s,!0,"transparent",i,0,r)):p&&cu.test(s)?i=bt(k,f,a,s,!0,null,i,0,r):(h=parseFloat(a),y=h||0===h?a.substr((h+"").length):"",(""===a||"auto"===a)&&("width"===f||"height"===f?(h=vu(n,f,e),y="px"):"left"===f||"top"===f?(h=yr(n,f,e),y="px"):(h="opacity"!==f?0:1,y="")),b=p&&"="===s.charAt(1),b?(c=parseInt(s.charAt(0)+"1",10),s=s.substr(2),c*=parseFloat(s),l=s.replace(lt,"")):(c=parseFloat(s),l=p?s.replace(lt,""):""),""===l&&(l=f in ni?ni[f]:y),s=c||0===c?(b?c+h:c)+l:t[f],y!==l&&""!==l&&(c||0===c)&&h&&(h=w(n,f,h,y),"%"===l?(h/=w(n,f,100,"%")/100,t.strictUnits!==!0&&(a=h+"%")):"em"===l||"rem"===l||"vw"===l||"vh"===l?h/=w(n,f,1,l):"px"!==l&&(c=w(n,f,c,l),l="px"),b&&(c||0===c)&&(s=c+h+l)),b&&(c+=h),!h&&0!==h||!c&&0!==c?void 0!==k[f]&&(s||s+""!="NaN"&&null!=s)?(i=new o(k,f,c||h||0,0,i,-1,f,!1,0,a,s),i.xs0="none"!==s||"display"!==f&&-1===f.indexOf("Style")?s:a):ar("invalid "+f+" tween value: "+t[f]):(i=new o(k,f,h,c-h,i,0,f,hi!==!1&&("px"===l||"zIndex"===f),0,a,s),i.xs0=l))),r&&i&&!i.plugin&&(i.plugin=r);return i},i.setRatio=function(n){var r,u,i,t=this._firstPT,f=1e-6;if(1!==n||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(n||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;t;){if(r=t.c*n+t.s,t.r?r=Math.round(r):f>r&&r>-f&&(r=0),t.type)if(1===t.type)if(i=t.l,2===i)t.t[t.p]=t.xs0+r+t.xs1+t.xn1+t.xs2;else if(3===i)t.t[t.p]=t.xs0+r+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3;else if(4===i)t.t[t.p]=t.xs0+r+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3+t.xn3+t.xs4;else if(5===i)t.t[t.p]=t.xs0+r+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3+t.xn3+t.xs4+t.xn4+t.xs5;else{for(u=t.xs0+r+t.xs1,i=1;i<t.l;i++)u+=t["xn"+i]+t["xs"+(i+1)];t.t[t.p]=u}else-1===t.type?t.t[t.p]=t.xs0:t.setRatio&&t.setRatio(n);else t.t[t.p]=r+t.xs0;t=t._next}else for(;t;)2!==t.type?t.t[t.p]=t.b:t.setRatio(n),t=t._next;else for(;t;){if(2!==t.type)if(t.r&&-1!==t.type)if(r=Math.round(t.s+t.c),t.type){if(1===t.type){for(i=t.l,u=t.xs0+r+t.xs1,i=1;i<t.l;i++)u+=t["xn"+i]+t["xs"+(i+1)];t.t[t.p]=u}}else t.t[t.p]=r+t.xs0;else t.t[t.p]=t.e;else t.setRatio(n);t=t._next}},i._enableTransforms=function(n){this._transform=this._transform||dt(this._target,e,!0);this._transformType=this._transform.svg&&nt||!n&&3!==this._transformType?2:3},tu=function(){this.t[this.p]=this.e;this.data._linkCSSP(this,this._next,null,!0)},i._addLazySet=function(n,t,i){var r=this._firstPT=new o(n,t,0,0,this._firstPT,2);r.e=i;r.setRatio=tu;r.data=this},i._linkCSSP=function(n,t,i,r){return n&&(t&&(t._prev=n),n._next&&(n._next._prev=n._prev),n._prev?n._prev._next=n._next:this._firstPT===n&&(this._firstPT=n._next,r=!0),i?i._next=n:r||null!==this._firstPT||(this._firstPT=n),n._next=t,n._prev=i),n},i._mod=function(n){for(var t=this._firstPT;t;)"function"==typeof n[t.p]&&n[t.p]===Math.round&&(t.r=1),t=t._next},i._kill=function(t){var i,f,r,u=t;if(t.autoAlpha||t.alpha){u={};for(f in t)u[f]=t[f];u.opacity=1;u.autoAlpha&&(u.visibility=1)}for(t.className&&(i=this._classNamePT)&&(r=i.xfirst,r&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),i=this._firstPT;i;)i.plugin&&i.plugin!==f&&i.plugin._kill&&(i.plugin._kill(t),f=i.plugin),i=i._next;return n.prototype._kill.call(this,u)},gt=function(n,t,i){var e,u,r,f;if(n.slice)for(u=n.length;--u>-1;)gt(n[u],t,i);else for(e=n.childNodes,u=e.length;--u>-1;)r=e[u],f=r.type,r.style&&(t.push(vt(r)),i&&i.push(r)),1!==f&&9!==f&&11!==f||!r.childNodes.length||gt(r,t,i)},r.cascadeTo=function(n,i,r){var u,f,e,h,o=t.to(n,i,r),l=[o],c=[],a=[],s=[],v=t._internals.reservedProps;for(n=o._targets||o.target,gt(n,c,s),o.render(i,!0,!0),gt(n,a),o.render(0,!0,!0),o._enabled(!0),u=s.length;--u>-1;)if(f=bi(s[u],c[u],a[u]),f.firstMPT){f=f.difs;for(e in r)v[e]&&(f[e]=r[e]);h={};for(e in f)h[e]=c[u][e];l.push(t.fromTo(s[u],i,h,f))}return l},n.activate([r]),r},!0),function(){var t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(n,t,i){return this._tween=i,!0}}),i=function(n){for(;n;)n.f||n.blob||(n.m=Math.round),n=n._next},n=t.prototype;n._onInitAllProps=function(){for(var f,n,r,t=this._tween,e=t.vars.roundProps.join?t.vars.roundProps:t.vars.roundProps.split(","),u=e.length,o={},s=t._propLookup.roundProps;--u>-1;)o[e[u]]=Math.round;for(u=e.length;--u>-1;)for(f=e[u],n=t._firstPT;n;)r=n._next,n.pg?n.t._mod(o):n.n===f&&(2===n.f&&n.t?i(n.t._firstPT):(this._add(n.t,f,n.s,n.c),r&&(r._prev=n._prev),n._prev?n._prev._next=r:t._firstPT===n&&(t._firstPT=r),n._next=n._prev=null,t._propLookup[f]=s)),n=r;return!1};n._add=function(n,t,i,r){this._addTween(n,t,i,i+r,t,Math.round);this._overwriteProps.push(t)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.0",init:function(n,t,i,r){var u,f;if("function"!=typeof n.setAttribute)return!1;for(u in t)f=t[u],"function"==typeof f&&(f=f(r,n)),this._addTween(n,"setAttribute",n.getAttribute(u)+"",f+"",u,!1,u),this._overwriteProps.push(u);return!0}})}();_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.0",API:2,init:function(n,t,i,r){"object"!=typeof t&&(t={rotation:t});this.finals={};var f,o,h,s,u,c,e=t.useRadians===!0?2*Math.PI:360,l=1e-6;for(f in t)"useRadians"!==f&&(s=t[f],"function"==typeof s&&(s=s(r,n)),c=(s+"").split("_"),o=c[0],h=parseFloat("function"!=typeof n[f]?n[f]:n[f.indexOf("set")||"function"!=typeof n["get"+f.substr(3)]?f:"get"+f.substr(3)]()),s=this.finals[f]="string"==typeof o&&"="===o.charAt(1)?h+parseInt(o.charAt(0)+"1",10)*Number(o.substr(2)):Number(o)||0,u=s-h,c.length&&(o=c.join("_"),-1!==o.indexOf("short")&&(u%=e,u!==u%(e/2)&&(u=0>u?u+e:u-e)),-1!==o.indexOf("_cw")&&0>u?u=(u+9999999999*e)%e-(u/e|0)*e:-1!==o.indexOf("ccw")&&u>0&&(u=(u-9999999999*e)%e-(u/e|0)*e)),(u>l||-l>u)&&(this._addTween(n,f,h,h+u,f),this._overwriteProps.push(f)));return!0},set:function(n){var t;if(1!==n)this._super.setRatio.call(this,n);else for(t=this._firstPT;t;)t.f?t.t[t.p](this.finals[t.p]):t.t[t.p]=this.finals[t.p],t=t._next}})._autoCSS=!0;_gsScope._gsDefine("easing.Back",["easing.Ease"],function(n){var f,u,s,a=_gsScope.GreenSockGlobals||_gsScope,p=a.com.greensock,v=2*Math.PI,y=Math.PI/2,r=p._class,t=function(t,i){var u=r("easing."+t,function(){},!0),f=u.prototype=new n;return f.constructor=u,f.getRatio=i,u},h=n.register||function(){},e=function(n,t,i,u){var f=r("easing."+n,{easeOut:new t,easeIn:new i,easeInOut:new u},!0);return h(f,n),f},c=function(n,t,i){this.t=n;this.v=t;i&&(this.next=i,i.prev=this,this.c=i.v-t,this.gap=i.t-n)},l=function(t,i){var u=r("easing."+t,function(n){this._p1=n||0===n?n:1.70158;this._p2=1.525*this._p1},!0),f=u.prototype=new n;return f.constructor=u,f.getRatio=i,f.config=function(n){return new u(n)},u},w=e("Back",l("BackOut",function(n){return(n-=1)*n*((this._p1+1)*n+this._p1)+1}),l("BackIn",function(n){return n*n*((this._p1+1)*n-this._p1)}),l("BackInOut",function(n){return(n*=2)<1?.5*n*n*((this._p2+1)*n-this._p2):.5*((n-=2)*n*((this._p2+1)*n+this._p2)+2)})),o=r("easing.SlowMo",function(n,t,i){t=t||0===t?t:.7;null==n?n=.7:n>1&&(n=1);this._p=1!==n?t:0;this._p1=(1-n)/2;this._p2=n;this._p3=this._p1+this._p2;this._calcEnd=i===!0},!0),i=o.prototype=new n;return i.constructor=o,i.getRatio=function(n){var t=n+(.5-n)*this._p;return n<this._p1?this._calcEnd?1-(n=1-n/this._p1)*n:t-(n=1-n/this._p1)*n*n*n*t:n>this._p3?this._calcEnd?1-(n=(n-this._p3)/this._p1)*n:t+(n-t)*(n=(n-this._p3)/this._p1)*n*n*n:this._calcEnd?1:t},o.ease=new o(.7,.7),i.config=o.config=function(n,t,i){return new o(n,t,i)},f=r("easing.SteppedEase",function(n){n=n||1;this._p1=1/n;this._p2=n+1},!0),i=f.prototype=new n,i.constructor=f,i.getRatio=function(n){return 0>n?n=0:n>=1&&(n=.999999999),(this._p2*n>>0)*this._p1},i.config=f.config=function(n){return new f(n)},u=r("easing.RoughEase",function(t){t=t||{};for(var i,r,u,f,h,e,l=t.taper||"none",a=[],w=0,v=0|(t.points||20),o=v,y=t.randomize!==!1,b=t.clamp===!0,p=t.template instanceof n?t.template:null,s="number"==typeof t.strength?.4*t.strength:.4;--o>-1;)i=y?Math.random():1/v*o,r=p?p.getRatio(i):i,"none"===l?u=s:"out"===l?(f=1-i,u=f*f*s):"in"===l?u=i*i*s:.5>i?(f=2*i,u=f*f*.5*s):(f=2*(1-i),u=f*f*.5*s),y?r+=Math.random()*u-.5*u:o%2?r+=.5*u:r-=.5*u,b&&(r>1?r=1:0>r&&(r=0)),a[w++]={x:i,y:r};for(a.sort(function(n,t){return n.x-t.x}),e=new c(1,1,null),o=v;--o>-1;)h=a[o],e=new c(h.x,h.y,e);this._prev=new c(0,0,0!==e.t?e:e.next)},!0),i=u.prototype=new n,i.constructor=u,i.getRatio=function(n){var t=this._prev;if(n>t.t){for(;t.next&&n>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&n<=t.t;)t=t.prev;return this._prev=t,t.v+(n-t.t)/t.gap*t.c},i.config=function(n){return new u(n)},u.ease=new u,e("Bounce",t("BounceOut",function(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}),t("BounceIn",function(n){return(n=1-n)<1/2.75?1-7.5625*n*n:2/2.75>n?1-(7.5625*(n-=1.5/2.75)*n+.75):2.5/2.75>n?1-(7.5625*(n-=2.25/2.75)*n+.9375):1-(7.5625*(n-=2.625/2.75)*n+.984375)}),t("BounceInOut",function(n){var t=.5>n;return n=t?1-2*n:2*n-1,n=1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375,t?.5*(1-n):.5*n+.5})),e("Circ",t("CircOut",function(n){return Math.sqrt(1-(n-=1)*n)}),t("CircIn",function(n){return-(Math.sqrt(1-n*n)-1)}),t("CircInOut",function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)})),s=function(t,i,u){var f=r("easing."+t,function(n,t){this._p1=n>=1?n:1;this._p2=(t||u)/(1>n?n:1);this._p3=this._p2/v*(Math.asin(1/this._p1)||0);this._p2=v/this._p2},!0),e=f.prototype=new n;return e.constructor=f,e.getRatio=i,e.config=function(n,t){return new f(n,t)},f},e("Elastic",s("ElasticOut",function(n){return this._p1*Math.pow(2,-10*n)*Math.sin((n-this._p3)*this._p2)+1},.3),s("ElasticIn",function(n){return-(this._p1*Math.pow(2,10*(n-=1))*Math.sin((n-this._p3)*this._p2))},.3),s("ElasticInOut",function(n){return(n*=2)<1?-.5*this._p1*Math.pow(2,10*(n-=1))*Math.sin((n-this._p3)*this._p2):this._p1*Math.pow(2,-10*(n-=1))*Math.sin((n-this._p3)*this._p2)*.5+1},.45)),e("Expo",t("ExpoOut",function(n){return 1-Math.pow(2,-10*n)}),t("ExpoIn",function(n){return Math.pow(2,10*(n-1))-.001}),t("ExpoInOut",function(n){return(n*=2)<1?.5*Math.pow(2,10*(n-1)):.5*(2-Math.pow(2,-10*(n-1)))})),e("Sine",t("SineOut",function(n){return Math.sin(n*y)}),t("SineIn",function(n){return-Math.cos(n*y)+1}),t("SineInOut",function(n){return-.5*(Math.cos(Math.PI*n)-1)})),r("easing.EaseLookup",{find:function(t){return n.map[t]}},!0),h(a.SlowMo,"SlowMo","ease,"),h(u,"RoughEase","ease,"),h(f,"SteppedEase","ease,"),w},!0)});_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(n,t){"use strict";var g={},st=n.GreenSockGlobals=n.GreenSockGlobals||n,lt,o,vt,et,c;if(!st.TweenLite){var s,f,i,u,h,dt=function(n){for(var r=n.split("."),i=st,t=0;t<r.length;t++)i[r[t]]=i=i[r[t]]||{};return i},y=dt("com.greensock"),e=1e-10,gt=function(n){for(var i=[],r=n.length,t=0;t!==r;i.push(n[t++]));return i},ni=function(){},nt=function(){var n=Object.prototype.toString,t=n.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&n.call(i)===t)}}(),tt={},ti=function(i,r,u,f){this.sc=tt[i]?tt[i].sc:[];tt[i]=this;this.gsClass=null;this.func=u;var e=[];this.check=function(o){for(var l,a,c,h,v,s=r.length,y=s;--s>-1;)(l=tt[r[s]]||new ti(r[s],[])).gsClass?(e[s]=l.gsClass,y--):o&&l.sc.push(this);if(0===y&&u){if(a=("com.greensock."+i).split("."),c=a.pop(),h=dt(a.join("."))[c]=this.gsClass=u.apply(u,e),f)if(st[c]=g[c]=h,v="undefined"!=typeof module&&module.exports,!v&&"function"==typeof define&&define.amd)define((n.GreenSockAMDPath?n.GreenSockAMDPath+"/":"")+i.split(".").pop(),[],function(){return h});else if(v)if(i===t){module.exports=g[t]=h;for(s in g)h[s]=g[s]}else g[t]&&(g[t][c]=h);for(s=0;s<this.sc.length;s++)this.sc[s].check()}};this.check(!0)},ht=n._gsDefine=function(n,t,i,r){return new ti(n,t,i,r)},l=y._class=function(n,t,i){return t=t||function(){},ht(n,[],function(){return t},i),t};ht.globals=st;var ii=[0,0,1,1],a=l("easing.Ease",function(n,t,i,r){this._func=n;this._type=i||0;this._power=r||0;this._params=t?ii.concat(t):ii},!0),ut=a.map={},ct=a.register=function(n,t,i,r){for(var o,u,e,f,s=t.split(","),h=s.length,c=(i||"easeIn,easeOut,easeInOut").split(",");--h>-1;)for(u=s[h],o=r?l("easing."+u,null,!0):y.easing[u]||{},e=c.length;--e>-1;)f=c[e],ut[u+"."+f]=ut[f+u]=o[f]=n.getRatio?n:n[f]||new n};for(i=a.prototype,i._calcEnd=!1,i.getRatio=function(n){if(this._func)return this._params[0]=n,this._func.apply(null,this._params);var i=this._type,r=this._power,t=1===i?1-n:2===i?n:.5>n?2*n:2*(1-n);return 1===r?t*=t:2===r?t*=t*t:3===r?t*=t*t*t:4===r&&(t*=t*t*t*t),1===i?1-t:2===i?t:.5>n?t/2:1-t/2},s=["Linear","Quad","Cubic","Quart","Quint,Strong"],f=s.length;--f>-1;)i=s[f]+",Power"+f,ct(new a(null,null,1,f),i,"easeOut",!0),ct(new a(null,null,2,f),i,"easeIn"+(0===f?",easeNone":"")),ct(new a(null,null,3,f),i,"easeInOut");ut.linear=y.easing.Linear.easeIn;ut.swing=y.easing.Quad.easeInOut;lt=l("events.EventDispatcher",function(n){this._listeners={};this._eventTarget=n||this});i=lt.prototype;i.addEventListener=function(n,t,i,r,f){f=f||0;var s,o,e=this._listeners[n],c=0;for(this!==u||h||u.wake(),null==e&&(this._listeners[n]=e=[]),o=e.length;--o>-1;)s=e[o],s.c===t&&s.s===i?e.splice(o,1):0===c&&s.pr<f&&(c=o+1);e.splice(c,0,{c:t,s:i,up:r,pr:f})};i.removeEventListener=function(n,t){var i,r=this._listeners[n];if(r)for(i=r.length;--i>-1;)if(r[i].c===t)return void r.splice(i,1)};i.dispatchEvent=function(n){var r,u,t,i=this._listeners[n];if(i)for(r=i.length,r>1&&(i=i.slice(0)),u=this._eventTarget;--r>-1;)t=i[r],t&&(t.up?t.c.call(t.s||u,{type:n,target:u}):t.c.call(t.s||u))};var ft=n.requestAnimationFrame,at=n.cancelAnimationFrame,it=Date.now||function(){return(new Date).getTime()},w=it();for(s=["ms","moz","webkit","o"],f=s.length;--f>-1&&!ft;)ft=n[s[f]+"RequestAnimationFrame"],at=n[s[f]+"CancelAnimationFrame"]||n[s[f]+"CancelRequestAnimationFrame"];l("Ticker",function(n,t){var r,a,f,s,c,i=this,v=it(),o=t!==!1&&ft?"auto":!1,l=500,p=33,b="tick",y=function(n){var t,e,u=it()-w;u>l&&(v+=u-p);w+=u;i.time=(w-v)/1e3;t=i.time-c;(!r||t>0||n===!0)&&(i.frame++,c+=t+(t>=s?.004:s-t),e=!0);n!==!0&&(f=a(y));e&&i.dispatchEvent(b)};lt.call(i);i.time=i.frame=0;i.tick=function(){y(!0)};i.lagSmoothing=function(n,t){l=n||1/e;p=Math.min(t,l,0)};i.sleep=function(){null!=f&&(o&&at?at(f):clearTimeout(f),a=ni,f=null,i===u&&(h=!1))};i.wake=function(n){null!==f?i.sleep():n?v+=-w+(w=it()):i.frame>10&&(w=it()-l+5);a=0===r?ni:o&&ft?ft:function(n){return setTimeout(n,1e3*(c-i.time)+1|0)};i===u&&(h=!0);y(2)};i.fps=function(n){return arguments.length?(r=n,s=1/(r||60),c=this.time+s,void i.wake()):r};i.useRAF=function(n){return arguments.length?(i.sleep(),o=n,void i.fps(r)):o};i.fps(n);setTimeout(function(){"auto"===o&&i.frame<5&&"hidden"!==document.visibilityState&&i.useRAF(!1)},1500)});i=y.Ticker.prototype=new y.events.EventDispatcher;i.constructor=y.Ticker;o=l("core.Animation",function(n,t){if(this.vars=t=t||{},this._duration=this._totalDuration=n||0,this._delay=Number(t.delay)||0,this._timeScale=1,this._active=t.immediateRender===!0,this.data=t.data,this._reversed=t.reversed===!0,p){h||u.wake();var i=this.vars.useFrames?d:p;i.add(this,i._time);this.vars.paused&&this.paused(!0)}});u=o.ticker=new y.Ticker;i=o.prototype;i._dirty=i._gc=i._initted=i._paused=!1;i._totalTime=i._time=0;i._rawPrevTime=-1;i._next=i._last=i._onUpdate=i._timeline=i.timeline=null;i._paused=!1;vt=function(){h&&it()-w>2e3&&u.wake();setTimeout(vt,2e3)};vt();i.play=function(n,t){return null!=n&&this.seek(n,t),this.reversed(!1).paused(!1)};i.pause=function(n,t){return null!=n&&this.seek(n,t),this.paused(!0)};i.resume=function(n,t){return null!=n&&this.seek(n,t),this.paused(!1)};i.seek=function(n,t){return this.totalTime(Number(n),t!==!1)};i.restart=function(n,t){return this.reversed(!1).paused(!1).totalTime(n?-this._delay:0,t!==!1,!0)};i.reverse=function(n,t){return null!=n&&this.seek(n||this.totalDuration(),t),this.reversed(!0).paused(!1)};i.render=function(){};i.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this};i.isActive=function(){var t,n=this._timeline,i=this._startTime;return!n||!this._gc&&!this._paused&&n.isActive()&&(t=n.rawTime())>=i&&t<i+this.totalDuration()/this._timeScale};i._enabled=function(n,t){return h||u.wake(),this._gc=!n,this._active=this.isActive(),t!==!0&&(n&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!n&&this.timeline&&this._timeline._remove(this,!0)),!1};i._kill=function(){return this._enabled(!1,!1)};i.kill=function(n,t){return this._kill(n,t),this};i._uncache=function(n){for(var t=n?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this};i._swapSelfInParams=function(n){for(var t=n.length,i=n.concat();--t>-1;)"{self}"===n[t]&&(i[t]=this);return i};i._callback=function(n){var i=this.vars,r=i[n],t=i[n+"Params"],u=i[n+"Scope"]||i.callbackScope||this,f=t?t.length:0;switch(f){case 0:r.call(u);break;case 1:r.call(u,t[0]);break;case 2:r.call(u,t[0],t[1]);break;default:r.apply(u,t)}};i.eventCallback=function(n,t,i,r){if("on"===(n||"").substr(0,2)){var u=this.vars;if(1===arguments.length)return u[n];null==t?delete u[n]:(u[n]=t,u[n+"Params"]=nt(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,u[n+"Scope"]=r);"onUpdate"===n&&(this._onUpdate=t)}return this};i.delay=function(n){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+n-this._delay),this._delay=n,this):this._delay};i.duration=function(n){return arguments.length?(this._duration=this._totalDuration=n,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==n&&this.totalTime(this._totalTime*(n/this._duration),!0),this):(this._dirty=!1,this._duration)};i.totalDuration=function(n){return this._dirty=!1,arguments.length?this.duration(n):this._totalDuration};i.time=function(n,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(n>this._duration?this._duration:n,t)):this._time};i.totalTime=function(n,t,i){if(h||u.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>n&&!i&&(n+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var f=this._totalDuration,r=this._timeline;if(n>f&&!i&&(n=f),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?f-n:n)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1);(this._totalTime!==n||0===this._duration)&&(v.length&&rt(),this.render(n,t,!1),v.length&&rt())}return this};i.progress=i.totalProgress=function(n,t){var i=this.duration();return arguments.length?this.totalTime(i*n,t):i?this._time/i:this.ratio};i.startTime=function(n){return arguments.length?(n!==this._startTime&&(this._startTime=n,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,n-this._delay)),this):this._startTime};i.endTime=function(n){return this._startTime+(0!=n?this.totalDuration():this.duration())/this._timeScale};i.timeScale=function(n){if(!arguments.length)return this._timeScale;if(n=n||e,this._timeline&&this._timeline.smoothChildTiming){var t=this._pauseTime,i=t||0===t?t:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/n}return this._timeScale=n,this._uncache(!1)};i.reversed=function(n){return arguments.length?(n!=this._reversed&&(this._reversed=n,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed};i.paused=function(n){if(!arguments.length)return this._paused;var t,r,i=this._timeline;return n!=this._paused&&i&&(h||n||u.wake(),t=i.rawTime(),r=t-this._pauseTime,!n&&i.smoothChildTiming&&(this._startTime+=r,this._uncache(!1)),this._pauseTime=n?t:null,this._paused=n,this._active=this.isActive(),!n&&0!==r&&this._initted&&this.duration()&&(t=i.smoothChildTiming?this._totalTime:(t-this._startTime)/this._timeScale,this.render(t,t===this._totalTime,!0))),this._gc&&!n&&this._enabled(!0,!1),this};et=l("core.SimpleTimeline",function(n){o.call(this,0,n);this.autoRemoveChildren=this.smoothChildTiming=!0});i=et.prototype=new o;i.constructor=et;i.kill()._gc=!1;i._first=i._last=i._recent=null;i._sortChildren=!1;i.add=i.insert=function(n,t){var i,r;if(n._startTime=Number(t||0)+n._delay,n._paused&&this!==n._timeline&&(n._pauseTime=n._startTime+(this.rawTime()-n._startTime)/n._timeScale),n.timeline&&n.timeline._remove(n,!0),n.timeline=n._timeline=this,n._gc&&n._enabled(!0,!0),i=this._last,this._sortChildren)for(r=n._startTime;i&&i._startTime>r;)i=i._prev;return i?(n._next=i._next,i._next=n):(n._next=this._first,this._first=n),n._next?n._next._prev=n:this._last=n,n._prev=i,this._recent=n,this._timeline&&this._uncache(!0),this};i._remove=function(n,t){return n.timeline===this&&(t||n._enabled(!1,!0),n._prev?n._prev._next=n._next:this._first===n&&(this._first=n._next),n._next?n._next._prev=n._prev:this._last===n&&(this._last=n._prev),n._next=n._prev=n.timeline=null,n===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this};i.render=function(n,t,i){var u,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=n;r;)u=r._next,(r._active||n>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=u};i.rawTime=function(){return h||u.wake(),this._totalTime};var r=l("TweenLite",function(t,i,u){if(o.call(this,i,u),this.render=r.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"!=typeof t?t:r.selector(t)||t;var s,f,h,l=t.jquery||t.length&&t!==n&&t[0]&&(t[0]===n||t[0].nodeType&&t[0].style&&!t.nodeType),c=this.vars.overwrite;if(this._overwrite=c=null==c?oi[r.defaultOverwrite]:"number"==typeof c?c>>0:oi[c],(l||t instanceof Array||t.push&&nt(t))&&"number"!=typeof t[0])for(this._targets=h=gt(t),this._propLookup=[],this._siblings=[],s=0;s<h.length;s++)f=h[s],f?"string"!=typeof f?f.length&&f!==n&&f[0]&&(f[0]===n||f[0].nodeType&&f[0].style&&!f.nodeType)?(h.splice(s--,1),this._targets=h=h.concat(gt(f))):(this._siblings[s]=ot(f,this,!1),1===c&&this._siblings[s].length>1&&kt(f,this,null,1,this._siblings[s])):(f=h[s--]=r.selector(f),"string"==typeof f&&h.splice(s+1,1)):h.splice(s--,1);else this._propLookup={},this._siblings=ot(t,this,!1),1===c&&this._siblings.length>1&&kt(t,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-e,this.render(Math.min(0,-this._delay)))},!0),yt=function(t){return t&&t.length&&t!==n&&t[0]&&(t[0]===n||t[0].nodeType&&t[0].style&&!t.nodeType)},li=function(n,t){var i,r={};for(i in n)bt[i]||i in t&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!b[i]||b[i]&&b[i]._autoCSS)||(r[i]=n[i],delete n[i]);n.css=r};i=r.prototype=new o;i.constructor=r;i.kill()._gc=!1;i.ratio=0;i._firstPT=i._targets=i._overwrittenProps=i._startAt=null;i._notifyPluginsOfEnabled=i._lazy=!1;r.version="1.19.0";r.defaultEase=i._ease=new a(null,null,1,1);r.defaultOverwrite="auto";r.ticker=u;r.autoSleep=120;r.lagSmoothing=function(n,t){u.lagSmoothing(n,t)};r.selector=n.$||n.jQuery||function(t){var i=n.$||n.jQuery;return i?(r.selector=i,i(t)):"undefined"==typeof document?t:document.querySelectorAll?document.querySelectorAll(t):document.getElementById("#"===t.charAt(0)?t.substr(1):t)};var v=[],pt={},ri=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,ui=function(n){for(var i,t=this._firstPT,r=1e-6;t;)i=t.blob?n?this.join(""):this.start:t.c*n+t.s,t.m?i=t.m(i,this._target||t.t):r>i&&i>-r&&(i=0),t.f?t.fp?t.t[t.p](t.fp,i):t.t[t.p](i):t.t[t.p]=i,t=t._next},fi=function(n,t,i,r){var l,v,a,e,y,c,f,u=[n,t],s=0,o="",h=0;for(u.start=n,i&&(i(u),n=u[0],t=u[1]),u.length=0,l=n.match(ri)||[],v=t.match(ri)||[],r&&(r._next=null,r.blob=1,u._firstPT=u._applyPT=r),y=v.length,e=0;y>e;e++)f=v[e],c=t.substr(s,t.indexOf(f,s)-s),o+=c||!e?c:",",s+=c.length,h?h=(h+1)%5:"rgba("===c.substr(-5)&&(h=1),f===l[e]||l.length<=e?o+=f:(o&&(u.push(o),o=""),a=parseFloat(l[e]),u.push(a),u._firstPT={_next:u._firstPT,t:u,p:u.length-1,s:a,c:("="===f.charAt(1)?parseInt(f.charAt(0)+"1",10)*parseFloat(f.substr(2)):parseFloat(f)-a)||0,f:0,m:h&&4>h?Math.round:0}),s+=f.length;return o+=t.substr(s),o&&u.push(o),u.setRatio=ui,u},ei=function(n,t,i,u,f,e,o,s,h){"function"==typeof u&&(u=u(h||0,n));var y,a,l="get"===i?n[t]:i,v=typeof n[t],p="string"==typeof u&&"="===u.charAt(1),c={t:n,p:t,s:l,f:"function"===v,pg:0,n:f||t,m:e?"function"==typeof e?e:Math.round:0,pr:0,c:p?parseInt(u.charAt(0)+"1",10)*parseFloat(u.substr(2)):parseFloat(u)-l||0};return"number"!==v&&("function"===v&&"get"===i&&(a=t.indexOf("set")||"function"!=typeof n["get"+t.substr(3)]?t:"get"+t.substr(3),c.s=l=o?n[a](o):n[a]()),"string"==typeof l&&(o||isNaN(l))?(c.fp=o,y=fi(l,u,s||r.defaultStringFilter,c),c={t:y,p:"setRatio",s:0,c:1,f:2,pg:0,n:f||t,pr:0,m:0}):p||(c.s=parseFloat(l),c.c=parseFloat(u)-c.s||0)),c.c?((c._next=this._firstPT)&&(c._next._prev=c),this._firstPT=c,c):void 0},wt=r._internals={isArray:nt,isSelector:yt,lazyTweens:v,blobDif:fi},b=r._plugins={},k=wt.tweenLookup={},ai=0,bt=wt.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},oi={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},d=o._rootFramesTimeline=new et,p=o._rootTimeline=new et,si=30,rt=wt.lazyRender=function(){var n,t=v.length;for(pt={};--t>-1;)n=v[t],n&&n._lazy!==!1&&(n.render(n._lazy[0],n._lazy[1],!0),n._lazy=!1);v.length=0};p._startTime=u.time;d._startTime=u.frame;p._active=d._active=!0;setTimeout(rt,1);o._updateRoot=r.render=function(){var i,t,n;if(v.length&&rt(),p.render((u.time-p._startTime)*p._timeScale,!1,!1),d.render((u.frame-d._startTime)*d._timeScale,!1,!1),v.length&&rt(),u.frame>=si){si=u.frame+(parseInt(r.autoSleep,10)||120);for(n in k){for(t=k[n].tweens,i=t.length;--i>-1;)t[i]._gc&&t.splice(i,1);0===t.length&&delete k[n]}if(n=p._first,(!n||n._paused)&&r.autoSleep&&!d._first&&1===u._listeners.tick.length){for(;n&&n._paused;)n=n._next;n||u.sleep()}}};u.addEventListener("tick",o._updateRoot);var ot=function(n,t,i){var r,f,u=n._gsTweenID;if(k[u||(n._gsTweenID=u="t"+ai++)]||(k[u]={target:n,tweens:[]}),t&&(r=k[u].tweens,r[f=r.length]=t,i))for(;--f>-1;)r[f]===t&&r.splice(f,1);return k[u].tweens},hi=function(n,t,i,u){var e,o,f=n.vars.onOverwrite;return f&&(e=f(n,t,i,u)),f=r.onOverwrite,f&&(o=f(n,t,i,u)),e!==!1&&o!==!1},kt=function(n,t,i,r,u){var o,s,f,y;if(1===r||r>=4){for(y=u.length,o=0;y>o;o++)if((f=u[o])!==t)f._gc||f._kill(null,n,t)&&(s=!0);else if(5===r)break;return s}var h,c=t._startTime+e,l=[],a=0,v=0===t._duration;for(o=u.length;--o>-1;)(f=u[o])===t||f._gc||f._paused||(f._timeline!==t._timeline?(h=h||ci(t,0,v),0===ci(f,h,v)&&(l[a++]=f)):f._startTime<=c&&f._startTime+f.totalDuration()/f._timeScale>c&&((v||!f._initted)&&c-f._startTime<=2e-10||(l[a++]=f)));for(o=a;--o>-1;)if(f=l[o],2===r&&f._kill(i,n,t)&&(s=!0),2!==r||!f._firstPT&&f._initted){if(2!==r&&!hi(f,t))continue;f._enabled(!1,!1)&&(s=!0)}return s},ci=function(n,t,i){for(var u=n._timeline,f=u._timeScale,r=n._startTime;u._timeline;){if(r+=u._startTime,f*=u._timeScale,u._paused)return-100;u=u._timeline}return r/=f,r>t?r-t:i&&r===t||!n._initted&&2*e>r-t?e:(r+=n.totalDuration()/n._timeScale/f)>t+e?0:r-t-e};if(i._init=function(){var u,h,n,f,e,c,t=this.vars,s=this._overwrittenProps,l=this._duration,o=!!t.immediateRender,i=t.ease;if(t.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill());e={};for(f in t.startAt)e[f]=t.startAt[f];if(e.overwrite=!1,e.immediateRender=!0,e.lazy=o&&t.lazy!==!1,e.startAt=e.delay=null,this._startAt=r.to(this.target,0,e),o)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(t.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(o=!1);n={};for(f in t)bt[f]&&"autoCSS"!==f||(n[f]=t[f]);if(n.overwrite=0,n.data="isFromStart",n.lazy=o&&t.lazy!==!1,n.immediateRender=o,this._startAt=r.to(this.target,0,n),o){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=i=i?i instanceof a?i:"function"==typeof i?new a(i,t.easeParams):ut[i]||r.defaultEase:r.defaultEase,t.easeParams instanceof Array&&i.config&&(this._ease=i.config.apply(i,t.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(c=this._targets.length,u=0;c>u;u++)this._initProps(this._targets[u],this._propLookup[u]={},this._siblings[u],s?s[u]:null,u)&&(h=!0);else h=this._initProps(this.target,this._propLookup,this._siblings,s,0);if(h&&r._onPluginEvent("_onInitAllProps",this),s&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),t.runBackwards)for(n=this._firstPT;n;)n.s+=n.c,n.c=-n.c,n=n._next;this._onUpdate=t.onUpdate;this._initted=!0},i._initProps=function(t,i,r,u,f){var e,c,l,o,h,s;if(null==t)return!1;pt[t._gsTweenID]&&rt();this.vars.css||t.style&&t!==n&&t.nodeType&&b.css&&this.vars.autoCSS!==!1&&li(this.vars,t);for(e in this.vars)if(s=this.vars[e],bt[e])s&&(s instanceof Array||s.push&&nt(s))&&-1!==s.join("").indexOf("{self}")&&(this.vars[e]=s=this._swapSelfInParams(s,this));else if(b[e]&&(o=new b[e])._onInitTween(t,this.vars[e],this,f)){for(this._firstPT=h={_next:this._firstPT,t:o,p:"setRatio",s:0,c:1,f:1,n:e,pg:1,pr:o._priority,m:0},c=o._overwriteProps.length;--c>-1;)i[o._overwriteProps[c]]=this._firstPT;(o._priority||o._onInitAllProps)&&(l=!0);(o._onDisable||o._onEnable)&&(this._notifyPluginsOfEnabled=!0);h._next&&(h._next._prev=h)}else i[e]=ei.call(this,t,e,"get",s,e,0,null,this.vars.stringFilter,f);return u&&this._kill(u,t)?this._initProps(t,i,r,u,f):this._overwrite>1&&this._firstPT&&r.length>1&&kt(t,this,i,this._overwrite,r)?(this._kill(i,t),this._initProps(t,i,r,u,f)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(pt[t._gsTweenID]=!0),l)},i.render=function(n,t,i){var h,s,u,y,c=this._time,f=this._duration,o=this._rawPrevTime;if(n>=f-1e-7)this._totalTime=this._time=f,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(h=!0,s="onComplete",i=i||this._timeline.autoRemoveChildren),0===f&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(n=0),(0>o||0>=n&&n>=-1e-7||o===e&&"isPause"!==this.data)&&o!==n&&(i=!0,o>e&&(s="onReverseComplete")),this._rawPrevTime=y=!t||n||o===n?n:e);else if(1e-7>n)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==c||0===f&&o>0)&&(s="onReverseComplete",h=this._reversed),0>n&&(this._active=!1,0===f&&(this._initted||!this.vars.lazy||i)&&(o>=0&&(o!==e||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=y=!t||n||o===n?n:e)),this._initted||(i=!0);else if(this._totalTime=this._time=n,this._easeType){var r=n/f,l=this._easeType,a=this._easePower;(1===l||3===l&&r>=.5)&&(r=1-r);3===l&&(r*=2);1===a?r*=r:2===a?r*=r*r:3===a?r*=r*r*r:4===a&&(r*=r*r*r*r);this.ratio=1===l?1-r:2===l?r:.5>n/f?r/2:1-r/2}else this.ratio=this._ease.getRatio(n/f);if(this._time!==c||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=c,this._rawPrevTime=o,v.push(this),void(this._lazy=[n,t]);this._time&&!h?this.ratio=this._ease.getRatio(this._time/f):h&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==c&&n>=0&&(this._active=!0),0===c&&(this._startAt&&(n>=0?this._startAt.render(n,t,i):s||(s="_dummyGS")),this.vars.onStart&&(0!==this._time||0===f)&&(t||this._callback("onStart"))),u=this._firstPT;u;)u.f?u.t[u.p](u.c*this.ratio+u.s):u.t[u.p]=u.c*this.ratio+u.s,u=u._next;this._onUpdate&&(0>n&&this._startAt&&n!==-.0001&&this._startAt.render(n,t,i),t||(this._time!==c||h||i)&&this._callback("onUpdate"));s&&(!this._gc||i)&&(0>n&&this._startAt&&!this._onUpdate&&n!==-.0001&&this._startAt.render(n,t,i),h&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[s]&&this._callback(s),0===f&&this._rawPrevTime===e&&y!==e&&(this._rawPrevTime=0))}},i._kill=function(n,t,i){if("all"===n&&(n=null),null==n&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"!=typeof t?t||this._targets||this.target:r.selector(t)||t;var f,s,o,u,e,c,l,a,h,v=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((nt(t)||yt(t))&&"number"!=typeof t[0])for(f=t.length;--f>-1;)this._kill(n,t[f],i)&&(c=!0);else{if(this._targets){for(f=this._targets.length;--f>-1;)if(t===this._targets[f]){e=this._propLookup[f]||{};this._overwrittenProps=this._overwrittenProps||[];s=this._overwrittenProps[f]=n?this._overwrittenProps[f]||{}:"all";break}}else{if(t!==this.target)return!1;e=this._propLookup;s=this._overwrittenProps=n?this._overwrittenProps||{}:"all"}if(e){if(l=n||e,a=n!==s&&"all"!==s&&n!==e&&("object"!=typeof n||!n._tempKill),i&&(r.onOverwrite||this.vars.onOverwrite)){for(o in l)e[o]&&(h||(h=[]),h.push(o));if((h||!n)&&!hi(this,i,t,h))return!1}for(o in l)(u=e[o])&&(v&&(u.f?u.t[u.p](u.s):u.t[u.p]=u.s,c=!0),u.pg&&u.t._kill(l)&&(c=!0),u.pg&&0!==u.t._overwriteProps.length||(u._prev?u._prev._next=u._next:u===this._firstPT&&(this._firstPT=u._next),u._next&&(u._next._prev=u._prev),u._next=u._prev=null),delete e[o]),a&&(s[o]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return c},i.invalidate=function(){return this._notifyPluginsOfEnabled&&r._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],o.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-e,this.render(Math.min(0,-this._delay))),this},i._enabled=function(n,t){if(h||u.wake(),n&&this._gc){var i,f=this._targets;if(f)for(i=f.length;--i>-1;)this._siblings[i]=ot(f[i],this,!0);else this._siblings=ot(this.target,this,!0)}return o.prototype._enabled.call(this,n,t),this._notifyPluginsOfEnabled&&this._firstPT?r._onPluginEvent(n?"_onEnable":"_onDisable",this):!1},r.to=function(n,t,i){return new r(n,t,i)},r.from=function(n,t,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new r(n,t,i)},r.fromTo=function(n,t,i,u){return u.startAt=i,u.immediateRender=0!=u.immediateRender&&0!=i.immediateRender,new r(n,t,u)},r.delayedCall=function(n,t,i,u,f){return new r(t,0,{delay:n,onComplete:t,onCompleteParams:i,callbackScope:u,onReverseComplete:t,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:f,overwrite:0})},r.set=function(n,t){return new r(n,0,t)},r.getTweensOf=function(n,t){if(null==n)return[];n="string"!=typeof n?n:r.selector(n)||n;var i,u,f,e;if((nt(n)||yt(n))&&"number"!=typeof n[0]){for(i=n.length,u=[];--i>-1;)u=u.concat(r.getTweensOf(n[i],t));for(i=u.length;--i>-1;)for(e=u[i],f=i;--f>-1;)e===u[f]&&u.splice(i,1)}else for(u=ot(n).concat(),i=u.length;--i>-1;)(u[i]._gc||t&&!u[i].isActive())&&u.splice(i,1);return u},r.killTweensOf=r.killDelayedCallsTo=function(n,t,i){"object"==typeof t&&(i=t,t=!1);for(var u=r.getTweensOf(n,t),f=u.length;--f>-1;)u[f]._kill(i,n)},c=l("plugins.TweenPlugin",function(n,t){this._overwriteProps=(n||"").split(",");this._propName=this._overwriteProps[0];this._priority=t||0;this._super=c.prototype},!0),i=c.prototype,c.version="1.19.0",c.API=2,i._firstPT=null,i._addTween=ei,i.setRatio=ui,i._kill=function(n){var i,r=this._overwriteProps,t=this._firstPT;if(null!=n[this._propName])this._overwriteProps=[];else for(i=r.length;--i>-1;)null!=n[r[i]]&&r.splice(i,1);for(;t;)null!=n[t.n]&&(t._next&&(t._next._prev=t._prev),t._prev?(t._prev._next=t._next,t._prev=null):this._firstPT===t&&(this._firstPT=t._next)),t=t._next;return!1},i._mod=i._roundProps=function(n){for(var i,t=this._firstPT;t;)i=n[this._propName]||null!=t.n&&n[t.n.split(this._propName+"_").join("")],i&&"function"==typeof i&&(2===t.f?t.t._applyPT.m=i:t.m=i),t=t._next},r._onPluginEvent=function(n,t){var f,r,u,e,o,i=t._firstPT;if("_onInitAllProps"===n){for(;i;){for(o=i._next,r=u;r&&r.pr>i.pr;)r=r._next;(i._prev=r?r._prev:e)?i._prev._next=i:u=i;(i._next=r)?r._prev=i:e=i;i=o}i=t._firstPT=u}for(;i;)i.pg&&"function"==typeof i.t[n]&&i.t[n]()&&(f=!0),i=i._next;return f},c.activate=function(n){for(var t=n.length;--t>-1;)n[t].API===c.API&&(b[(new n[t])._propName]=n[t]);return!0},ht.plugin=function(n){if(!(n&&n.propName&&n.init&&n.API))throw"illegal plugin definition.";var i,r=n.propName,e=n.priority||0,o=n.overwriteProps,u={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},t=l("plugins."+r.charAt(0).toUpperCase()+r.substr(1)+"Plugin",function(){c.call(this,r,e);this._overwriteProps=o||[]},n.global===!0),f=t.prototype=new c(r);f.constructor=t;t.API=n.API;for(i in u)"function"==typeof n[i]&&(f[u[i]]=n[i]);return t.version=n.version,c.activate([t]),t},s=n._gsQueue){for(f=0;f<s.length;f++)s[f]();for(i in tt)tt[i].func||n.console.log("GSAP encountered missing dependency: "+i)}h=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define("underscore",t):(n=typeof globalThis!="undefined"?globalThis:n||self,function(){var r=n._,i=n._=t();i.noConflict=function(){return n._=r,i}}())}(this,function(){function f(n,t){return t=t==null?n.length-1:+t,function(){for(var f=Math.max(arguments.length-t,0),r=Array(f),i=0,u;i<f;i++)r[i]=arguments[i+t];switch(t){case 0:return n.call(this,r);case 1:return n.call(this,arguments[0],r);case 2:return n.call(this,arguments[0],arguments[1],r)}for(u=Array(t+1),i=0;i<t;i++)u[i]=arguments[i];return u[t]=r,n.apply(this,u)}}function a(n){var t=typeof n;return t==="function"||t==="object"&&!!n}function ye(n){return n===null}function vr(n){return n===void 0}function yr(n){return n===!0||n===!1||g.call(n)==="[object Boolean]"}function pe(n){return!!(n&&n.nodeType===1)}function i(n){var t="[object "+n+"]";return function(n){return g.call(n)===t}}function no(n){return n!=null&&r(n.getInt8)&&br(n.buffer)}function l(n,t){return n!=null&&se.call(n,t)}function to(n){return!wr(n)&&ae(n)&&!isNaN(parseFloat(n))}function nu(n){return pr(n)&&le(n)}function tu(n){return function(){return n}}function iu(n){return function(t){var i=n(t);return typeof i=="number"&&i>=0&&i<=ve}}function ru(n){return function(t){if(t!=null)return t[n]}}function uo(n){return cr?cr(n)&&!nt(n):io(n)&&ro.test(g.call(n))}function fo(n){for(var i={},r=n.length,t=0;t<r;++t)i[n[t]]=!0;return{contains:function(n){return i[n]===!0},push:function(t){return i[t]=!0,n.push(t)}}}function uu(n,t){t=fo(t);var u=ar.length,f=n.constructor,e=r(f)&&f.prototype||pt,i="constructor";for(l(n,i)&&!t.contains(i)&&t.push(i);u--;)i=ar[u],i in n&&n[i]!==e[i]&&!t.contains(i)&&t.push(i)}function t(n){var t,i;if(!a(n))return[];if(sr)return sr(n);t=[];for(i in n)l(n,i)&&t.push(i);return lr&&uu(n,t),t}function eo(n){if(n==null)return!0;var i=u(n);return typeof i=="number"&&(c(n)||wt(n)||ot(n))?i===0:u(t(n))===0}function fu(n,i){var e=t(i),o=e.length,f,r,u;if(n==null)return!o;for(f=Object(n),r=0;r<o;r++)if(u=e[r],i[u]!==f[u]||!(u in f))return!1;return!0}function n(t){if(t instanceof n)return t;if(!(this instanceof n))return new n(t);this._wrapped=t}function eu(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,st(n))}function gt(n,t,i,r){if(n===t)return n!==0||1/n==1/t;if(n==null||t==null)return!1;if(n!==n)return t!==t;var u=typeof n;return u!=="function"&&u!=="object"&&typeof t!="object"?!1:ou(n,t,i,r)}function ou(i,u,f,e){var s,h,p,c,a,o,y,v;if(i instanceof n&&(i=i._wrapped),u instanceof n&&(u=u._wrapped),s=g.call(i),s!==g.call(u))return!1;if(gr&&s=="[object Object]"&&nt(i)){if(!nt(u))return!1;s=dt}switch(s){case"[object RegExp]":case"[object String]":return""+i==""+u;case"[object Number]":return+i!=+i?+u!=+u:+i==0?1/+i==1/u:+i==+u;case"[object Date]":case"[object Boolean]":return+i==+u;case"[object Symbol]":return er.valueOf.call(i)===er.valueOf.call(u);case"[object ArrayBuffer]":case dt:return ou(eu(i),eu(u),f,e)}if(h=s==="[object Array]",!h&&kt(i)){if(p=st(i),p!==st(u))return!1;if(i.buffer===u.buffer&&i.byteOffset===u.byteOffset)return!0;h=!0}if(!h&&(typeof i!="object"||typeof u!="object"||(c=i.constructor,a=u.constructor,c!==a&&!(r(c)&&c instanceof c&&r(a)&&a instanceof a)&&"constructor"in i&&"constructor"in u)))return!1;for(f=f||[],e=e||[],o=f.length;o--;)if(f[o]===i)return e[o]===u;if(f.push(i),e.push(u),h){if(o=i.length,o!==u.length)return!1;while(o--)if(!gt(i[o],u[o],f,e))return!1}else{if(y=t(i),o=y.length,t(u).length!==o)return!1;while(o--)if(v=y[o],!(l(u,v)&&gt(i[v],u[v],f,e)))return!1}return f.pop(),e.pop(),!0}function oo(n,t){return gt(n,t)}function tt(n){var t,i;if(!a(n))return[];t=[];for(i in n)t.push(i);return lr&&uu(n,t),t}function ni(n){var t=u(n);return function(i){var e,f;if(i==null||(e=tt(i),u(e)))return!1;for(f=0;f<t;f++)if(!r(i[n[f]]))return!1;return n!==cu||!r(i[ti])}}function w(n){for(var r=t(n),u=r.length,f=Array(u),i=0;i<u;i++)f[i]=n[r[i]];return f}function yo(n){for(var r=t(n),u=r.length,f=Array(u),i=0;i<u;i++)f[i]=[r[i],n[r[i]]];return f}function lu(n){for(var u={},r=t(n),i=0,f=r.length;i<f;i++)u[n[r[i]]]=r[i];return u}function ri(n){var i=[],t;for(t in n)r(n[t])&&i.push(t);return i.sort()}function ui(n,t){return function(i){var e=arguments.length,r,u,f;if(t&&(i=Object(i)),e<2||i==null)return i;for(r=1;r<e;r++){var o=arguments[r],s=n(o),h=s.length;for(u=0;u<h;u++)f=s[u],t&&i[f]!==void 0||(i[f]=o[f])}return i}}function po(){return function(){}}function yu(n){var t,i;return a(n)?hr?hr(n):(t=po(),t.prototype=n,i=new t,t.prototype=null,i):{}}function wo(n,t){var i=yu(n);return t&&ht(i,t),i}function bo(n){return a(n)?c(n)?n.slice():au({},n):n}function ko(n,t){return t(n),n}function pu(n){return c(n)?n:[n]}function it(t){return n.toPath(t)}function fi(n,t){for(var r=t.length,i=0;i<r;i++){if(n==null)return void 0;n=n[t[i]]}if(r)return n}function wu(n,t,i){var r=fi(n,it(t));return vr(r)?i:r}function go(n,t){var r,i,u;for(t=it(t),r=t.length,i=0;i<r;i++){if(u=t[i],!l(n,u))return!1;n=n[u]}return!!r}function ei(n){return n}function rt(n){return n=ht({},n),function(t){return fu(t,n)}}function oi(n){return n=it(n),function(t){return fi(t,n)}}function ut(n,t,i){if(t===void 0)return n;switch(i==null?3:i){case 1:return function(i){return n.call(t,i)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return function(){return n.apply(t,arguments)}}function bu(n,t,i){return n==null?ei:r(n)?ut(n,t,i):a(n)&&!c(n)?rt(n):oi(n)}function si(n,t){return bu(n,t,Infinity)}function e(t,i,r){return n.iteratee!==si?n.iteratee(t,i):bu(t,i,r)}function ns(n,i,r){var u,f;i=e(i,r);var o=t(n),h=o.length,s={};for(u=0;u<h;u++)f=o[u],s[f]=i(n[f],f,n);return s}function ku(){}function ts(n){return n==null?ku:function(t){return wu(n,t)}}function is(n,t,i){var u=Array(Math.max(0,n)),r;for(t=ut(t,i,1),r=0;r<n;r++)u[r]=t(r);return u}function hi(n,t){return t==null&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))}function du(n){var r=function(t){return n[t]},i="(?:"+t(n).join("|")+")",u=RegExp(i),f=RegExp(i,"g");return function(n){return n=n==null?"":""+n,u.test(n)?n.replace(f,r):n}}function hs(n){return"\\"+os[n]}function cs(t,i,r){var f,s,e;!i&&r&&(i=r);i=vu({},i,n.templateSettings);var c=RegExp([(i.escape||ci).source,(i.interpolate||ci).source,(i.evaluate||ci).source].join("|")+"|$","g"),o=0,u="__p+='";if(t.replace(c,function(n,i,r,f,e){return u+=t.slice(o,e).replace(ss,hs),o=e+n.length,i?u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":f&&(u+="';\n"+f+"\n__p+='"),n}),u+="';\n",f=i.variable,f){if(!nf.test(f))throw new Error("variable is not a bare identifier: "+f);}else u="with(obj||{}){\n"+u+"}\n",f="obj";u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{s=new Function(f,"_",u)}catch(h){h.source=u;throw h;}return e=function(t){return s.call(this,t,n)},e.source="function("+f+"){\n"+u+"}",e}function ls(n,t,i){var e,f,u;if(t=it(t),e=t.length,!e)return r(i)?i.call(n):i;for(f=0;f<e;f++)u=n==null?void 0:n[t[f]],u===void 0&&(u=i,f=e),n=r(u)?u.call(n):u;return n}function as(n){var t=++tf+"";return n?n+t:t}function vs(t){var i=n(t);return i._chain=!0,i}function rf(n,t,i,r,u){if(!(r instanceof t))return n.apply(i,u);var f=yu(n.prototype),e=n.apply(f,u);return a(e)?e:f}function y(n,t,i,r){var e,s,l,f,h,a;if(r=r||[],t||t===0){if(t<=0)return r.concat(n)}else t=Infinity;for(e=r.length,s=0,l=u(n);s<l;s++)if(f=n[s],o(f)&&(c(f)||ot(f)))if(t>1)y(f,t-1,i,r),e=r.length;else for(h=0,a=f.length;h<a;)r[e++]=f[h++];else i||(r[e++]=f);return r}function ys(n,t){var i=function(r){var u=i.cache,f=""+(t?t.apply(this,arguments):r);return l(u,f)||(u[f]=n.apply(this,arguments)),u[f]};return i.cache={},i}function ps(n,t,i){var r,u,f,o,e=0,h,s;return i||(i={}),h=function(){e=i.leading===!1?0:b();r=null;o=n.apply(u,f);r||(u=f=null)},s=function(){var c=b(),s;return e||i.leading!==!1||(e=c),s=t-(c-e),u=this,f=arguments,s<=0||s>t?(r&&(clearTimeout(r),r=null),e=c,o=n.apply(u,f),r||(u=f=null)):r||i.trailing===!1||(r=setTimeout(h,s)),o},s.cancel=function(){clearTimeout(r);e=0;r=u=f=null},s}function ws(n,t,i){var r,s,u,o,e,h=function(){var f=b()-s;t>f?r=setTimeout(h,t-f):(r=null,i||(o=n.apply(e,u)),r||(u=e=null))},c=f(function(f){return e=this,u=f,s=b(),r||(r=setTimeout(h,t),i&&(o=n.apply(e,u))),o});return c.cancel=function(){clearTimeout(r);r=u=e=null},c}function bs(n,t){return v(t,n)}function vi(n){return function(){return!n.apply(this,arguments)}}function ks(){var n=arguments,t=n.length-1;return function(){for(var r=t,i=n[t].apply(this,arguments);r--;)i=n[r].call(this,i);return i}}function ds(n,t){return function(){if(--n<1)return t.apply(this,arguments)}}function ef(n,t){var i;return function(){return--n>0&&(i=t.apply(this,arguments)),n<=1&&(t=null),i}}function sf(n,i,r){var o,u,f,s;for(i=e(i,r),o=t(n),f=0,s=o.length;f<s;f++)if(u=o[f],i(n[u],u,n))return u}function hf(n){return function(t,i,r){i=e(i,r);for(var o=u(t),f=n>0?0:o-1;f>=0&&f<o;f+=n)if(i(t[f],f,t))return f;return-1}}function cf(n,t,i,r){var o;i=e(i,r,1);for(var h=i(t),f=0,s=u(n);f<s;)o=Math.floor((f+s)/2),i(n[o])<h?f=o+1:s=o;return f}function lf(n,t,i){return function(r,f,e){var s=0,o=u(r);if(typeof e=="number")n>0?s=e>=0?e:Math.max(e+o,s):o=e>=0?Math.min(e+1,o):e+o+1;else if(i&&e&&o)return e=i(r,f),r[e]===f?e:-1;if(f!==f)return e=t(d.call(r,s,o),nu),e>=0?e+s:-1;for(e=n>0?s:o-1;e>=0&&e<o;e+=n)if(r[e]===f)return e;return-1}}function wi(n,t,i){var u=o(n)?ct:sf,r=u(n,t,i);if(r!==void 0&&r!==-1)return n[r]}function gs(n,t){return wi(n,rt(t))}function s(n,i,r){var u,f,e;if(i=ut(i,r),o(n))for(u=0,f=n.length;u<f;u++)i(n[u],u,n);else for(e=t(n),u=0,f=e.length;u<f;u++)i(n[e[u]],e[u],n);return n}function p(n,i,r){var u,s;i=e(i,r);var f=!o(n)&&t(n),h=(f||n).length,c=Array(h);for(u=0;u<h;u++)s=f?f[u]:u,c[u]=i(n[s],s,n);return c}function vf(n){var i=function(i,r,u,f){var s=!o(i)&&t(i),c=(s||i).length,e=n>0?0:c-1,h;for(f||(u=i[s?s[e]:e],e+=n);e>=0&&e<c;e+=n)h=s?s[e]:e,u=r(u,i[h],h,i);return u};return function(n,t,r,u){var f=arguments.length>=3;return i(n,ut(t,u,4),r,f)}}function k(n,t,i){var r=[];return t=e(t,i),s(n,function(n,i,u){t(n,i,u)&&r.push(n)}),r}function nh(n,t,i){return k(n,vi(e(t)),i)}function yf(n,i,r){var f,h,u,s;for(i=e(i,r),f=!o(n)&&t(n),h=(f||n).length,u=0;u<h;u++)if(s=f?f[u]:u,!i(n[s],s,n))return!1;return!0}function pf(n,i,r){var f,h,u,s;for(i=e(i,r),f=!o(n)&&t(n),h=(f||n).length,u=0;u<h;u++)if(s=f?f[u]:u,i(n[s],s,n))return!0;return!1}function h(n,t,i,r){return o(n)||(n=w(n)),(typeof i!="number"||r)&&(i=0),pi(n,t,i)>=0}function ki(n,t){return p(n,oi(t))}function th(n,t){return k(n,rt(t))}function bf(n,t,i){var r=-Infinity,c=-Infinity,u,f,h,l;if(t==null||typeof t=="number"&&typeof n[0]!="object"&&n!=null)for(n=o(n)?n:w(n),h=0,l=n.length;h<l;h++)u=n[h],u!=null&&u>r&&(r=u);else t=e(t,i),s(n,function(n,i,u){f=t(n,i,u);(f>c||f===-Infinity&&r===-Infinity)&&(r=n,c=f)});return r}function ih(n,t,i){var r=Infinity,c=Infinity,u,f,h,l;if(t==null||typeof t=="number"&&typeof n[0]!="object"&&n!=null)for(n=o(n)?n:w(n),h=0,l=n.length;h<l;h++)u=n[h],u!=null&&u<r&&(r=u);else t=e(t,i),s(n,function(n,i,u){f=t(n,i,u);(f<c||f===Infinity&&r===Infinity)&&(r=n,c=f)});return r}function df(n){return n?c(n)?d.call(n):wt(n)?n.match(kf):o(n)?p(n,ei):w(n):[]}function gf(n,t,i){var r,e,h,f,s,c;if(t==null||i)return o(n)||(n=w(n)),n[hi(n.length-1)];for(r=df(n),e=u(r),t=Math.max(Math.min(t,e),0),h=e-1,f=0;f<t;f++)s=hi(f,h),c=r[f],r[f]=r[s],r[s]=c;return r.slice(0,t)}function rh(n){return gf(n,Infinity)}function uh(n,t,i){var r=0;return t=e(t,i),ki(p(n,function(n,i,u){return{value:n,index:r++,criteria:t(n,i,u)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||i===void 0)return 1;if(i<r||r===void 0)return-1}return n.index-t.index}),"value")}function at(n,t){return function(i,r,u){var f=t?[[],[]]:{};return r=e(r,u),s(i,function(t,u){var e=r(t,u,i);n(f,t,e)}),f}}function hh(n){return n==null?0:o(n)?n.length:t(n).length}function ch(n,t,i){return t in i}function te(n,t,i){return d.call(n,0,Math.max(0,n.length-(t==null||i?1:t)))}function gi(n,t,i){return n==null||n.length<1?t==null||i?void 0:[]:t==null||i?n[0]:te(n,n.length-t)}function vt(n,t,i){return d.call(n,t==null||i?1:t)}function lh(n,t,i){return n==null||n.length<1?t==null||i?void 0:[]:t==null||i?n[n.length-1]:vt(n,Math.max(0,n.length-t))}function ah(n){return k(n,Boolean)}function vh(n,t){return y(n,t,!1)}function tr(n,t,i,r){var o,c,s,a,f,l;for(yr(t)||(r=i,i=t,t=!1),i!=null&&(i=e(i,r)),o=[],c=[],s=0,a=u(n);s<a;s++)f=n[s],l=i?i(f,s,n):f,t&&!i?(s&&c===l||o.push(f),c=l):i?h(c,l)||(c.push(l),o.push(f)):h(o,f)||o.push(f);return o}function yh(n){for(var f=[],e=arguments.length,r,t,i=0,o=u(n);i<o;i++)if(r=n[i],!h(f,r)){for(t=1;t<e;t++)if(!h(arguments[t],r))break;t===e&&f.push(r)}return f}function ir(n){for(var i=n&&bf(n,u).length||0,r=Array(i),t=0;t<i;t++)r[t]=ki(n,t);return r}function ph(n,t){for(var r={},i=0,f=u(n);i<f;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r}function wh(n,t,i){var u,f,r;for(t==null&&(t=n||0,n=0),i||(i=t<n?-1:1),u=Math.max(Math.ceil((t-n)/i),0),f=Array(u),r=0;r<u;r++,n+=i)f[r]=n;return f}function bh(n,t){if(t==null||t<1)return[];for(var r=[],i=0,u=n.length;i<u;)r.push(d.call(n,i,i+=t));return r}function rr(t,i){return t._chain?n(i).chain():i}function fe(t){return s(ri(t),function(i){var r=n[i]=t[i];n.prototype[i]=function(){var t=[this._wrapped];return oe.apply(t,arguments),rr(this,r.apply(n,t))}}),n}var ur="1.13.6",fr=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},ft=Array.prototype,pt=Object.prototype,er=typeof Symbol!="undefined"?Symbol.prototype:null,oe=ft.push,d=ft.slice,g=pt.toString,se=pt.hasOwnProperty,or=typeof ArrayBuffer!="undefined",he=typeof DataView!="undefined",ce=Array.isArray,sr=Object.keys,hr=Object.create,cr=or&&ArrayBuffer.isView,le=isNaN,ae=isFinite,lr=!{toString:null}.propertyIsEnumerable("toString"),ar=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ve=Math.pow(2,53)-1,wt=i("String"),pr=i("Number"),we=i("Date"),be=i("RegExp"),ke=i("Error"),wr=i("Symbol"),br=i("ArrayBuffer"),kr=i("Function"),de=fr.document&&fr.document.childNodes,nt,c,et,ot,kt,u,dt,b,nf,tf,v,li,o,uf,ai,ff,of,ct,yi,pi,af,lt,bi,wf,kf,di,ne,nr,ie,re,ue,ee,yt;typeof/./!="function"&&typeof Int8Array!="object"&&typeof de!="function"&&(kr=function(n){return typeof n=="function"||!1});var r=kr,dr=i("Object"),gr=he&&dr(new DataView(new ArrayBuffer(8))),bt=typeof Map!="undefined"&&dr(new Map),ge=i("DataView");nt=gr?no:ge;c=ce||i("Array");et=i("Arguments"),function(){et(arguments)||(et=function(n){return l(n,"callee")})}();ot=et;var st=ru("byteLength"),io=iu(st),ro=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;kt=or?uo:tu(!1);u=ru("length");n.VERSION=ur;n.prototype.value=function(){return this._wrapped};n.prototype.valueOf=n.prototype.toJSON=n.prototype.value;n.prototype.toString=function(){return String(this._wrapped)};dt="[object DataView]";var ti="forEach",su="has",ii=["clear","delete"],hu=["get",su,"set"],so=ii.concat(ti,hu),cu=ii.concat(hu),ho=["add"].concat(ii,ti,su),co=bt?ni(so):i("Map"),lo=bt?ni(cu):i("WeakMap"),ao=bt?ni(ho):i("Set"),vo=i("WeakSet");var au=ui(tt),ht=ui(t),vu=ui(tt,!0);n.toPath=pu;n.iteratee=si;b=Date.now||function(){return(new Date).getTime()};var gu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},rs=du(gu),us=lu(gu),fs=du(us),es=n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},ci=/(.)^/,os={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ss=/\\|'|\r|\n|\u2028|\u2029/g;nf=/^\s*(\w|\$)+\s*$/;tf=0;v=f(function(n,t){var r=v.placeholder,i=function(){for(var f=0,o=t.length,e=Array(o),u=0;u<o;u++)e[u]=t[u]===r?arguments[f++]:t[u];while(f<arguments.length)e.push(arguments[f++]);return rf(n,i,this,this,e)};return i});v.placeholder=n;li=f(function(n,t,i){if(!r(n))throw new TypeError("Bind must be called on a function");var u=f(function(r){return rf(n,u,t,this,i.concat(r))});return u});o=iu(u);uf=f(function(n,t){var i,r;if(t=y(t,!1,!1),i=t.length,i<1)throw new Error("bindAll must be passed function names");while(i--)r=t[i],n[r]=li(n[r],n);return n});ai=f(function(n,t,i){return setTimeout(function(){return n.apply(null,i)},t)});ff=v(ai,n,1);of=v(ef,2);ct=hf(1);yi=hf(-1);pi=lf(1,ct,cf);af=lf(-1,yi);lt=vf(1);bi=vf(-1);wf=f(function(n,t,i){var u,f;return r(t)?f=t:(t=it(t),u=t.slice(0,-1),t=t[t.length-1]),p(n,function(n){var r=f;if(!r){if(u&&u.length&&(n=fi(n,u)),n==null)return void 0;r=n[t]}return r==null?r:r.apply(n,i)})});kf=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;var fh=at(function(n,t,i){l(n,i)?n[i].push(t):n[i]=[t]}),eh=at(function(n,t,i){n[i]=t}),oh=at(function(n,t,i){l(n,i)?n[i]++:n[i]=1}),sh=at(function(n,t,i){n[i?0:1].push(t)},!0);return di=f(function(n,t){var e={},i=t[0],u,s,f,o;if(n==null)return e;for(r(i)?(t.length>1&&(i=ut(i,t[1])),t=tt(n)):(i=ch,t=y(t,!1,!1),n=Object(n)),u=0,s=t.length;u<s;u++)f=t[u],o=n[f],i(o,f,n)&&(e[f]=o);return e}),ne=f(function(n,t){var i=t[0],u;return r(i)?(i=vi(i),t.length>1&&(u=t[1])):(t=p(y(t,!1,!1),String),i=function(n,i){return!h(t,i)}),di(n,i,u)}),nr=f(function(n,t){return t=y(t,!0,!0),k(n,function(n){return!h(t,n)})}),ie=f(function(n,t){return nr(n,t)}),re=f(function(n){return tr(y(n,!0,!0))}),ue=f(ir),s(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=ft[t];n.prototype[t]=function(){var n=this._wrapped;return n!=null&&(i.apply(n,arguments),(t==="shift"||t==="splice")&&n.length===0&&delete n[0]),rr(this,n)}}),s(["concat","join","slice"],function(t){var i=ft[t];n.prototype[t]=function(){var n=this._wrapped;return n!=null&&(n=i.apply(n,arguments)),rr(this,n)}}),ee={__proto__:null,VERSION:ur,restArguments:f,isObject:a,isNull:ye,isUndefined:vr,isBoolean:yr,isElement:pe,isString:wt,isNumber:pr,isDate:we,isRegExp:be,isError:ke,isSymbol:wr,isArrayBuffer:br,isDataView:nt,isArray:c,isFunction:r,isArguments:ot,isFinite:to,isNaN:nu,isTypedArray:kt,isEmpty:eo,isMatch:fu,isEqual:oo,isMap:co,isWeakMap:lo,isSet:ao,isWeakSet:vo,keys:t,allKeys:tt,values:w,pairs:yo,invert:lu,functions:ri,methods:ri,extend:au,extendOwn:ht,assign:ht,defaults:vu,create:wo,clone:bo,tap:ko,get:wu,has:go,mapObject:ns,identity:ei,constant:tu,noop:ku,toPath:pu,property:oi,propertyOf:ts,matcher:rt,matches:rt,times:is,random:hi,now:b,escape:rs,unescape:fs,templateSettings:es,template:cs,result:ls,uniqueId:as,chain:vs,iteratee:si,partial:v,bind:li,bindAll:uf,memoize:ys,delay:ai,defer:ff,throttle:ps,debounce:ws,wrap:bs,negate:vi,compose:ks,after:ds,before:ef,once:of,findKey:sf,findIndex:ct,findLastIndex:yi,sortedIndex:cf,indexOf:pi,lastIndexOf:af,find:wi,detect:wi,findWhere:gs,each:s,forEach:s,map:p,collect:p,reduce:lt,foldl:lt,inject:lt,reduceRight:bi,foldr:bi,filter:k,select:k,reject:nh,every:yf,all:yf,some:pf,any:pf,contains:h,includes:h,include:h,invoke:wf,pluck:ki,where:th,max:bf,min:ih,shuffle:rh,sample:gf,sortBy:uh,groupBy:fh,indexBy:eh,countBy:oh,partition:sh,toArray:df,size:hh,pick:di,omit:ne,first:gi,head:gi,take:gi,initial:te,last:lh,rest:vt,tail:vt,drop:vt,compact:ah,flatten:vh,without:ie,uniq:tr,unique:tr,union:re,intersection:yh,difference:nr,unzip:ir,transpose:ir,zip:ue,object:ph,range:wh,chunk:bh,mixin:fe,"default":n},yt=fe(ee),yt._=yt,yt});query=query||{};coned=coned||{};coned.constants=coned.constants||{};coned.constants={TRUE:"true",FALSE:"false",TABLET_MAX_SIZE:1024,TABLET_MIN_SIZE:768,MOBILE_MAX_SIZE:767,DEFAULT_SCENARIO:"1",HTML_EXTENSION:".html",ACTIVE_CLASS:"js-active",FIXED_CLASS:"js-fixed",HIDDEN_CLASS:"js-hidden",MODULE_CLASS:"js-module",HEADER_WRAPPER_CLASS:"js-header-wrapper",MODAL_SELECTOR_CLASS:"js-modal-selector-wrapper",PAGE_CONTENT_CLASS:"js-page-content",PAGE_DISABLED:"page-content--disabled",BODY_CLASS:"js-body",HTML_CLASS:"js-html",MOBILE_MODAL_OPEN:"mobile-modal-open",MOBILE_OVERLAY_OPEN:"mobile-overlay-open",MODAL_OPEN:"modal-open",ERROR_MESSAGE:"Error: Sorry, an error has occurred. Please try again.",ERROR_MESSAGE_VIEW_BILL:"Error: Sorry, your bill isn’t currently viewable. Try again later.",ICON_ERROR_MESSAGE:"error icon",SUCCESS_SERVICE_RESPONSE_CLASS:"js-success-service-response",ERROR_SERVICE_RESPONSE_CLASS:"js-error-service-response",QUALTRICS_TRIGGER_CLASS:"js-qualtrics-trigger",CONED_TABS_VISIBLE_CLASS:"coned-tabs--visible-parent",INPUT_ERROR_CLASS:"coned-input-message--error",DEEP_LINK_URL_PARAM_NAME:"sectionId",DEEP_LINK_URL_PARAM_TAB:"tab1",DEEP_LINK_URL_PARAM_ACTION:"action",CARD_FOCUS_CLASS:"card-tile--focus",MOUSE_USER:"mouse-user",VALID_CLASS:"valid",FOCUSABLE_ELEMENTS_DROPDOWN_MODAL_QUERY:'a[href]:not([tabindex="-1"]):not(.hidden), area[href]:not([tabindex="-1"]):not(.hidden), input:not([disabled]):not([tabindex="-1"]):not(.hidden), select:not([disabled]):not([tabindex="-1"]):not(.hidden), textarea:not([disabled]):not([tabindex="-1"]):not(.hidden), button:not([disabled]):not([tabindex="-1"]):not(.hidden), iframe:not([tabindex="-1"]):not(.hidden), object:not([tabindex="-1"]):not(.hidden), embed:not([tabindex="-1"]):not(.hidden), [tabindex]:not([tabindex="-1"]):not(.hidden), [contenteditable]:not([tabindex="-1"]):not(.hidden)',FOCUSABLE_ELEMENTS_QUERY:'[href]:not(.hidden), button:not(.hidden), input:not([type="hidden"]):not(.hidden), select:not(.hidden), textarea:not(.hidden), [tabindex]:not([tabindex="-1"]):not(.hidden)',FOCUSABLE_ELEMENTS_POPUP:"a[href]:not([disabled]), button:not([disabled])",MULTIPLE_GLOBAL_LAZY_LOAD_EVENT_DONE:"multiple-global-lazy-load-event-done",MULTIPLE_GLOBAL_LAZY_LOAD_ELEMENT:"js-multiple-global-lazy-load-element",CONED_INPUT:"coned-input",INPUT_FILLED_CLASS:"coned-input--filled",CONED_TEXT_AREA:"coned-textarea",TEXT_AREA_FILLED_CLASS:"coned-textarea--filled",CONED_CHECKBOX:"coned-checkbox__input",CHECKBOX_INPUT_FILLED:"coned-checkbox--checked",CONED_SELECT:"coned-select",SELECT_INPUT_FILLED:"coned-select--active",INTERNAL_SERVICE_ERROR:"500",BAD_REQUEST:"400",UNATHORIZED:"401",KEY_CODE:{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},KEYBOARD_CODE:{BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",NUMPAD_ENTER:"NumpadEnter",SHIFT:"Shift",ESC:"Escape",SPACE:"Space",END:"End",HOME:"Home",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",DELETE:"Delete"},COMMA:",",SEMICOLON:";",COLON:":",CUSTOM_EVENTS:{CHANGE_STATE_DETAIL:"change-state-detail",SET_STATE_DETAIL:"set-state-detail",GET_STATE_DETAIL:"get-state-detail"},ORDER:{PREV:"prev",NEXT:"next"},NOT_FOCUSABLE:{HIDDEN:"hidden",DISABLED:"disabled",TABINDEX:"tabindex",DISPLAY_NONE:"none",TABINDEX_ENABLE:"0",TABINDEX_NEGATIVE:"-1",FOCUSABLE_TAGS:"a input button select textarea iframe",FOCUSABLE_ROLES:"button link checkbox radio tab"},ARIA:{HIDDEN:"aria-hidden",LABEL:"aria-label",LABELLEDBY:"aria-labelledby",DESCRIBEDBY:"aria-describedby",CONTROLS:"aria-controls",EXPANDED:"aria-expanded",SELECTED:"aria-selected",PRESSED:"aria-pressed",CHECKED:"aria-checked",ROLE:"role",HASPOPUP:"aria-haspopup",LIVE:"aria-live",ATOMIC:"aria-atomic",BUSY:"aria-busy",GRABBED:"aria-grabbed",DROPEFFECT:"aria-dropeffect",OWNS:"aria-owns",RELEVANT:"aria-relevant",FLOWTO:"aria-flowto",ACTIVEDESCENDANT:"aria-activedescendant",SORT:"aria-sort",SEMANTICS:"aria-semantics",LEVEL:"aria-level",VALUEMIN:"aria-valuemin",VALUEMAX:"aria-valuemax",VALUENOW:"aria-valuenow",VALUETEXT:"aria-valuetext",MULTILINE:"aria-multiline",MULTISELECTABLE:"aria-multiselectable",READONLY:"aria-readonly",REQUIRED:"aria-required",INVALID:"aria-invalid",MODAL:"aria-modal",ORIENTATION:"aria-orientation",AUTOCOMPLETE:"aria-autocomplete",PLACEHOLDER:"aria-placeholder",POSINSET:"aria-posinset",SETSIZE:"aria-setsize"}};coned.plConstants={PATTERNLAB_CLASS:"js-patternlab",PATTERNLAB_SEARCH_RESULTS_NONE_PATH:"/get-content/search-results-none.html",PATTERNLAB_SEARCH_RESULTS_ALL_PATH:"/get-content/search-results-all.html",PATTERNLAB_SEARCH_RESULTS_PAGE_PATH:"/get-content/search-results-page.html",PATTERNLAB_SEARCH_RESULTS_TOPIC_PATH:"/get-content/search-results-topic.html",PATTERNLAB_SEARCH_RESULTS_TYPE_PATH:"/get-content/search-results-type.html",PATTERNLAB_SEARCH_RESULTS_VIEWED_PATH:"/get-content/search-results-viewed.html",CAPTCHA_FAKE_RESPONSE:"https://jsonplaceholder.typicode.com/posts/",GET_LOGIN:"/get-content/login.json",GET_LOGIN_TEXT:"/get-content/login-text.json",GET_LOGIN_ORU:"/get-content/login-oru.json",GET_LOGIN_MFA:"/get-content/login-mfa.json",GET_UNAUTHENTICATED_LOGIN_MFA:"/get-content/unauthenticated-login-mfa.json",GET_LOGIN_MFA_FAIL:"/get-content/login-mfa-fail.json",PATTERNLAB_POWER_YOUR_WAY_ESCO_LIST:"/get-content/esco-list.html",PATTERNLAB_LEAD_GEN_COMPANY_LIST:"/get-content/company-list.html",GET_MARKET_RATES:"/get-content/get-market-rates.json",GET_MARKET_RATES_HTML:"/get-content/get-market-rates.html",GET_ORU_MARKET_RATES_HTML:"/get-content/get-oru-market-rates.html",GET_ORU_MARKET_RATES_MAUI_HTML:"/get-content/get-oru-market-rates-maui.html",GET_METER_READING_HTML:"/get-content/get-meter-reading.html",GET_METER_PREVIOUS_READING_HTML:"/get-content/get-meter-previous-reading.html",GET_ESCO_COMPARISON_HTML:"/get-content/get-esco-comparison.html",GET_ORU_ESCO_COMPARISON_HTML:"/get-content/get-oru-esco-comparison.html",DELETE_STOP_SERVICE_ERROR:"/get-content/stop-service-error.json",GET_OUTAGE_STATUS:"/get-content/",INITIATE_FORGET_PASSWORD:"/get-content/initiate-forgot-password.json",GET_SMS_VERIFICATION:"/get-content/reset-password-sms.json",GET_ANSWER_VERIFICATION:"/get-content/reset-password-question.json",GET_QUESTION_UNLOCK_ACCOUNT:"/get-content/unlock-account-question.json",SET_NEW_PASSWORD:"/get-content/set-new-password.json",DEFAULT_SERVICE_ERROR:"/get-content/default-service-error.json",GET_CODE_REGISTER:"/get-content/register-get-code.json",GET_ACCOUNTS_REGISTER:"/get-content/register-get-accounts.json",GET_EMAIL_DOMAIN_LIST:"/get-content/get-email-domain-list.json",GET_STREET_ADDRESS_LIST:"/get-content/get-street-address-list.json",GET_STREET_ADDRESS_NO_RESULTS:"/get-content/get-street-address-no-results.json",GET_STREET_NAMES:"/get-content/get-street-names.json",GET_STREET_NUMBERS:"/get-content/get-street-numbers.json",GET_RESIDENCE_UNITS:"/get-content/get-residence-units.json",GET_VERIFY_ZIP_CODE:"/get-content/get-verify-zip-code.json",GET_ADDRESS_UNIT_LIST:"/get-content/get-address-unit-list.json",GET_ADDRESS_SINGLE_UNIT:"/get-content/get-address-single-unit.json",GET_ADDRESS_NO_UNITS:"/get-content/get-address-no-units.json",GET_ACCOUNT_EAP_ELIGIBLE:"/get-content/get-account-eap-eligible.json",GET_ACCOUNT_EAP_NON_ELIGIBLE:"/get-content/get-account-eap-non-eligible.json",GET_ACCOUNT_FOCUS:"/get-content/get-account-focus.json",GET_ACCOUNT_HOMEPAGE_SCENARIO:"/get-content/get-account-homepage-scenario.json",VERIFY_DATE_ERROR:"/get-content/service-verify-date-error.json",GET_ACCOUNT_MAID:"/get-content/get-account-maid.json",GET_ADD_ACCOUNTS_REDIRECT:"/get-content/get-add-accounts-redirect.json",UNAUTHENTICATED_REDIRECT:"/get-content/get-unauthenticated-redirect.json",GET_ACCOUNT_NUMBER:"/get-content/account-forgot-account.json",ADD_ACCOUNT_REDIRECT:"/get-content/account-success-redirect.json",GET_BILL:"/get-content/get-bill.json",GET_BILL_NO_AUTH:"/get-content/get-bill-non-authenticated.json",GET_FINANCIAL_ADVISOR_ACCOUNT_SELECTOR:"/get-content/get-financial-advisor-account-selector.json",POST_PAYMENT_SINGLE:"/get-content/post-payment-single.json",POST_PAYMENT_SINGLE_GUEST_PAY:"/get-content/post-payment-single-guest-pay.json",POST_PAYMENT_MULTIPLE:"/get-content/post-payment-multiple.json",PAYMENT_VIEW_DATA:"/get-content/payment-view-bill.csv",PMB_MFA_SINGLE:"/get-content/pmb-mfa-accounts-single.json",PMB_MFA_MULTIPLE:"/get-content/pmb-mfa-accounts-multiple.json",PMB_MFA_SEVERAL:"/get-content/pmb-mfa-accounts-several.json",GET_LOOKUP_ACCOUNT:"/get-content/get-lookup-account.json",GET_LOOKUP_ACCOUNTS:"/get-content/get-lookup-accounts.json",GET_OUTAGE_STATUS_SINGLE:"/get-content/get-outage-status-single.json",GET_OUTAGE_STATUS_MULTIPLE:"/get-content/get-outage-status-multiple.json",GET_NOTIFICATION_MESSAGE:"/get-content/get-notification-message.json",GET_BILL_LINK:"/get-content/get-bill-link.json",GET_LINK:"/get-content/get-link.json",GET_BILLING_PAYMENT_MASTER_LEVEL_TABLE_HTML:"/get-content/get-billing-payment-master-level-table.html",GET_BILLING_PAYMENT_TABLE_HTML:"/get-content/get-billing-payment-table.html",GET_BILLING_PAYMENT_TABLE_ORU_HTML:"/get-content/get-billing-payment-table-oru.html",GET_LSE_SCENARIO_HTML_URL:"/get-content/get-lse-scenario-",GET_MHS_SCENARIO_HTML_URL:"/get-content/get-mhs-scenario-",GET_CONCERN_SCENARIO_HTML_URL:"/get-content/get-concern-scenario-",GET_LPP_SCENARIO_HTML_URL:"/get-content/get-level-payment-plan-scenario-",GET_BUDGET_BILLING_SCENARIO_HTML_URL:"/get-content/get-budget-billing-scenario-",GET_PAYMENT_AGREEMENT_SCENARIO_HTML_URL:"/get-content/get-payment-agreement-scenario-",GET_PAYMENT_ASSISTANCE_ENROLLED_SCENARIO_HTML:"/get-content/get-payment-assistance-form-enrolled.html",GET_CORRESPONDENCE_TABLE_HTML:"/get-content/get-correspondence-table.html",GET_CORRESPONDENCE_TABLE_BILLING_HTML:"/get-content/get-correspondence-table-billing.html",GET_USAGE_HISTORY_TABLE_ORU_HTML:"/get-content/get-oru-usage-history.html",GET_USAGE_HISTORY_TABLE_ORU_ENERGY_USAGE_HTML:"/get-content/get-oru-usage-history-energy-usage.html",GET_AVAILABLE_LIVE_CHAT:"/get-content/get-available-live-chat.json",POST_DATA_CONNECTIONS_FORM:"/get-content/post-data-connections-form.json",GET_UNENROLL_UNITS_LIST:"/get-content/get-unenroll-units.html",GET_UNENROLL_NO_UNITS:"/get-content/get-unenroll-no-units.html",POST_ENROLL_UNIT_LIST:"/get-content/post-enroll-list.json",GET_MANAGE_MY_ACCOUNT_ORU_PAGR_0_HTML:"/get-content/get-oru-manage-my-account-pagr-sc-0.html",GET_MANAGE_MY_ACCOUNT_ORU_PAGR_1_HTML:"/get-content/get-oru-manage-my-account-pagr-sc-1.html",GET_MANAGE_MY_ACCOUNT_ORU_PAGR_2_HTML:"/get-content/get-oru-manage-my-account-pagr-sc-2.html",GET_MANAGE_MY_ACCOUNT_ORU_PAGR_3_HTML:"/get-content/get-oru-manage-my-account-pagr-sc-3.html",GET_MANAGE_MY_ACCOUNT_ORU_PAGR_4_HTML:"/get-content/get-oru-manage-my-account-pagr-sc-4.html",GET_MANAGE_MY_ACCOUNT_ORU_PAGR_5_HTML:"/get-content/get-oru-manage-my-account-pagr-sc-5.html",GET_MANAGE_MY_ACCOUNT_ORU_PAGR_6_HTML:"/get-content/get-oru-manage-my-account-pagr-sc-6.html",GET_MANAGE_MY_ACCOUNT_ORU_PAGR_9_HTML:"/get-content/get-oru-manage-my-account-pagr-sc-9.html",GET_MANAGE_MY_ACCOUNT_ORU_PAGR_10_HTML:"/get-content/get-oru-manage-my-account-pagr-sc-10.html",GET_MANAGE_MY_ACCOUNT_ORU_PAGR_11_HTML:"/get-content/get-oru-manage-my-account-pagr-sc-11.html",GET_MANAGE_MY_ACCOUNT_ORU_PAGR_12_HTML:"/get-content/get-oru-manage-my-account-pagr-sc-12.html",GET_MANAGE_MY_ACCOUNT_ORU_PAGR_13_HTML:"/get-content/get-oru-manage-my-account-pagr-sc-13.html",GET_MANAGE_MY_ACCOUNT_ORU_PAGR_14_HTML:"/get-content/get-oru-manage-my-account-pagr-sc-14.html",GET_MANAGE_MY_ACCOUNT_ORU_COMMERCIAL_PAGR_1_HTML:"/get-content/get-oru-commercial-manage-my-account-pagr-sc-1.html",GET_MANAGE_MY_ACCOUNT_HTML:"/get-content/get-manage-my-account.html",GET_REQUEST_ACCESS_HTML:"/get-content/get-request-access.html",GET_REQUEST_ACCESS_SUCCESS:"/get-content/get-request-access-success.json",GET_REQUEST_ACCESS_ERRORS:"/get-content/get-request-access-errors.json",GET_CUSTOMER_ACCOUNTS_HTML:"/get-content/get-customer-accounts.html",GET_MANAGE_ACCESS:"/get-content/get-manage-access.html",GET_ACCOUNT_REPORT_OUTAGE:"/get-content/report-valid-account.json",GET_CHECK_CONTACT_NUMBER:"/get-content/get-check-contact-number.json",GET_REPORT_OUTAGE_CONFIRMATION_SUCCESS:"/get-content/get-report-outage-confirmation-success.json",GET_REPORT_OUTAGE_CONFIRMATION_CHECK_OUTAGE_ERROR:"/get-content/get-report-outage-confirmation-check-outage-error.json",GET_LAST_USED_BANK_ACCOUNT_NUMBER:"/get-content/last-bank-account-number-bill.json",GET_HEADER_DYNAMIC_LINKS:"/get-content/get-header-dynamic-links.json",GET_ENROLLED_UNITS_DOWNLOAD:"/get-content/get-enrolled-units-download.json",GET_ENROLLED_UNITS_DOWNLOAD_ALREADY:"/get-content/get-enrolled-units-download-already.json",GET_ENERGY_INSIGHTS_DATA_BILLING:"/get-content/get-energy-insights-data-billing.html",GET_ENERGY_INSIGHTS_DATA_BILLING_COMMERCIAL:"/get-content/get-energy-insights-data-billing-commercial.html",GET_ENERGY_INSIGHTS_DATA_BILLING_IPP_SPP:"/get-content/get-energy-insights-data-billing-ipp-spp.html",GET_ENERGY_INSIGHTS_DATA_BILLING_IPP_RATE_2:"/get-content/get-energy-insights-data-billing-ipp-rate-2.html",GET_ENERGY_INSIGHTS_DATA_BILLING_IPP_RATE_4:"/get-content/get-energy-insights-data-billing-ipp-rate-4.html",GET_ENERGY_INSIGHTS_DATA_BILLING_IPP_RATE_5:"/get-content/get-energy-insights-data-billing-ipp-rate-5.html",GET_ENERGY_INSIGHTS_DATA_BILLING_IPP_RATE_6:"/get-content/get-energy-insights-data-billing-ipp-rate-6.html",GET_ENERGY_INSIGHTS_DATA_BILLING_IPP_RATE_7:"/get-content/get-energy-insights-data-billing-ipp-rate-7.html",GET_ENERGY_INSIGHTS_DATA_BILLING_SHR:"/get-content/get-energy-insights-data-billing-shr.html",GET_ORU_ENERGY_INSIGHTS_DATA_BILLING:"/get-content/get-oru-energy-insights-data-billing.html",GET_ORU_ENERGY_INSIGHTS_DATA_BILLING_COMMERCIAL:"/get-content/get-oru-energy-insights-data-billing-commercial.html",GET_ENERGY_INSIGHTS_DATA:"/get-content/get-energy-insights-data.html",GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RESIDENTIAL:"/get-content/get-energy-insights-data-energy-usage-residential.html",GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_IPP_SHR_SPP_RESIDENTIAL:"/get-content/get-energy-insights-data-energy-usage-ipp-shr-spp-residential.html",GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RATE_2_RESIDENTIAL:"/get-content/get-energy-insights-data-energy-usage-rate-2-residential.html",GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RATE_4_RESIDENTIAL:"/get-content/get-energy-insights-data-energy-usage-rate-4-residential.html",GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RATE_5_RESIDENTIAL:"/get-content/get-energy-insights-data-energy-usage-rate-5-residential.html",GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RATE_6_RESIDENTIAL:"/get-content/get-energy-insights-data-energy-usage-rate-6-residential.html",GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RATE_PILOTS_COMMERCIAL:"/get-content/get-energy-insights-data-energy-usage-rate-pilots-commercial.html",GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_NYPA:"/get-content/get-energy-insights-data-energy-usage-nypa.html",GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_COMMERCIAL:"/get-content/get-energy-insights-data-energy-usage-commercial.html",GET_ORU_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RESIDENTIAL:"/get-content/get-oru-energy-insights-data-energy-usage-residential.html",GET_ORU_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_IPP_SHR_SPP_RESIDENTIAL:"/get-content/get-oru-energy-insights-data-energy-usage-ipp-shr-spp-residential.html",GET_ORU_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_COMMERCIAL:"/get-content/get-oru-energy-insights-data-energy-usage-commercial.html",GET_ORU_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RTP:"/get-content/get-oru-energy-insights-data-energy-usage-rtp.html",GET_ENERGY_INSIGHTS_DATA_USAGE:"/get-content/get-energy-insights-data-usage.html",GET_ORU_ENERGY_INSIGHTS_DATA:"/get-content/get-oru-energy-insights-data.html",GET_CHART_LEGEND_DATA:"/get-content/charts/legendDataAttributes.json",GET_CHART_BILLING_PERIODS:"/get-content/charts/billingPeriods.json",GET_CHART_BILLING_PERIODS_RATE2:"/get-content/charts/B/billingPeriods.json",GET_CHART_BILLING_PERIODS_RATE5:"/get-content/charts/E/billingPeriods.json",GET_CHART_BILLING_PERIODS_RATE6:"/get-content/charts/F/billingPeriods.json",GET_CHART_BILLING_PERIODS_THERMOSTAT_A:"/get-content/charts/T-A/billingPeriods.json",GET_CHART_BILLING_PERIODS_THERMOSTAT_B:"/get-content/charts/T-B/billingPeriods.json",GET_CHART_BILLING_PERIODS_SOLAR:"/get-content/charts/Solar/billingPeriods.json",GET_CHART_BILLING_PERIODS_ODBR:"/get-content/charts/SPP/billingPeriods.json",GET_CHART_MONTHLY_DEMAND:"/get-content/charts/montlyDemand.json",GET_BILL_COMPARISON:"/get-content/billComparison.json",GET_SESSION_TIMEOUT:"/get-content/sessionTimeout.json",DAY_AHEAD_PEAK_DEMAND:"/get-content/dayAheadPeak.json",GET_MARKET_SUPPLY_CALCULATOR_SERVICES_ERROR:"/get-content/get-msc-result-error.json",GET_MARKET_SUPPLY_CALCULATOR_CALCULATE:"/get-content/get-msc-result-success.json",GET_NYISO_CALCULATOR_SERVICES_ERROR:"/get-content/get-nyiso-result-error.json",GET_NYISO_CALCULATOR_CALCULATE:"/get-content/get-nyiso-result-success.json",GET_SM_CALCULATOR_SERVICES_ERROR:"/get-content/get-sm-result-error.json",GET_SM_CALCULATOR_CALCULATE:"/get-content/get-sm-result-success.json",REAL_TIME_PRICES_DATA:"/get-content/real-time-pricing-data.csv",COMPARISON_TABLE_DATA:"/get-content/get-comparison-table-data.json",COMPARISON_TABLE_DATA_LONG:"/get-content/get-comparison-table-data-long.json"};query={};coned=coned||{};coned.utils=coned.utils||{};coned.utils.initializeModules=function(n){for(var o=n?n:document,f=o.getElementsByClassName(coned.constants.MODULE_CLASS),t,e,r,u,i=0;i<f.length;i++)t=f[i],t.dataset.moduleStarted!=="true"&&(e=t.dataset.moduleLoad,e!=="false"&&(r=t.dataset.module,t.dataset.moduleStarted="true",r&&(u=new coned.components[r](t),u.init&&u.init())))};coned.utils.isTouch=function(){var n=!!navigator.pointerEnabled||navigator.msPointerEnabled;return"ontouchstart"in window||window.DocumentTouch&&n};coned.utils.isElementHidden=function(n){return n&&!n.offsetParent};coned.utils.isMobile=function(){return window.innerWidth<=coned.constants.MOBILE_MAX_SIZE};coned.utils.isIOS=function(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document};coned.utils.isiPad=function(){return navigator.userAgent.match(/iPad/i)!==null};coned.utils.isTablet=function(){return window.innerWidth>=coned.constants.TABLET_MIN_SIZE&&window.innerWidth<=coned.constants.TABLET_MAX_SIZE};coned.utils.isLargeDesktop=function(){return window.innerWidth>coned.constants.TABLET_MAX_SIZE};coned.utils.isDesktop=function(){return window.innerWidth>coned.constants.MOBILE_MAX_SIZE};coned.utils.isPortrait=function(){return window.matchMedia("(orientation: portrait)").matches};coned.utils.isLandscape=function(){return window.matchMedia("(orientation: landscape)").matches};coned.utils.isSafari=function(){var t=navigator.userAgent.toLowerCase(),n;try{n=function(n){return n.toString()==="[object SafariRemoteNotification]"}(!window.safari||typeof safari!="undefined"&&window.safari.pushNotification)}catch(i){n=!1}return n=n||t.indexOf("safari")!=-1&&!(t.indexOf("chrome")!=-1)&&t.indexOf("version/")!=-1};coned.utils.isIE=function(){var n=window.navigator.userAgent,t=n.indexOf("MSIE ");return t>0||!!n.match(/Trident.*rv\:11\./)?!0:!1};coned.utils.isWinEdge=function(){return navigator.platform.toLowerCase().indexOf("win")!==-1&&(navigator.userAgent.toLowerCase().indexOf("touch")!==-1||navigator.userAgent.toLowerCase().indexOf("edge")!==-1)};coned.utils.isPatternLab=function(){return document.getElementsByClassName(coned.plConstants.PATTERNLAB_CLASS).length>0};coned.utils.isOru=function(){return coned.utils.isPatternLab()?!(document.querySelector("[class*=-oru]")==null):isOru};coned.utils.isDomVisible=function(n){return n.offsetWidth+n.getBoundingClientRect().width+n.offsetHeight+n.getBoundingClientRect().height!==0};coned.utils.eventType=function(){return coned.utils.isTouch()?"touchend":"click"};coned.utils.generalEvents=function(){return["touchend","click"]};coned.utils.triggerEvent=function(n,t,i){var r;i&&typeof CustomEvent=="function"?(r=new CustomEvent(t,{detail:i}),n.dispatchEvent(r)):"createEvent"in document?(r=document.createEvent("HTMLEvents"),r.initEvent(t,!1,!0),r.detail=i,n.dispatchEvent(r)):n.fireEvent("on"+t)};coned.utils.addMultipleListeners=function(n,t,i){for(var r=0;r<t.length;r++)n.addEventListener(t[r],i)};coned.utils.addGeneralListeners=function(n,t){n&&coned.utils.addMultipleListeners(n,coned.utils.generalEvents(),t)};coned.utils.removeMultipleListeners=function(n,t,i){for(var r=0;r<t.length;r++)n.removeEventListener(t[r],i)};coned.utils.removeGeneralListeners=function(n,t){n&&coned.utils.removeMultipleListeners(n,coned.utils.generalEvents(),t)};coned.utils.formatToCurrencyText=function(n,t,i){return i||(i="$"),n&&isFinite(n)&&!isNaN(n)||(n=0),i+n.toFixed(t).replace(/\d(?=(\d{3})+\.)/g,"$&,")};coned.utils.addParentListener=function(n,t,i,r){n&&coned.utils.addMultipleListeners(n,t,function(n){for(var t=n.target,u;t&&t!==n.currentTarget;){if(u=t.getAttribute("disabled"),t.classList.contains(i)&&!u)return r(t,n);t=t.parentElement}})};coned.utils.preventBehaviourError=function(n){var t;return n||(n=window.event),n.keyCode?t=n.keyCode:n.which&&(t=n.which),t==8||t==16||t==46||t==37||t==39?!0:!1};coned.utils.preventMovementError=function(n){var t;return n||(n=window.event),n.keyCode?t=n.keyCode:n.which&&(t=n.which),t==16||t==37||t==39?!0:!1};coned.utils.getUrlParameterValue=function(n){for(var u=window.location.search.substring(1),r=u.split("&"),i,t=0;t<r.length;t++)if(i=r[t].split("="),i[0].toLowerCase()==n.toLowerCase())return i[1];return!1};coned.utils.updateUrlParameter=function(n,t,i){for(var f=i||window.location.href,h=f.split("?")[0],r=f.includes("?")?f.split("?")[1].split("&"):[],e=n+"="+t,o=!1,s,u=0;u<r.length;u++)s=r[u].split("="),s[0]==n&&(r[u]=e,o=!0);return o||r.push(e),h+"?"+r.join("&")};coned.utils.updateAnchorParameter=function(n,t,i){var f=document.createElement("a"),u,h;f.href=n;var e=f.search.substring(1),r=e.split("&"),o=t+"="+i,s=!1;for(u=0;u<r.length;u++)h=r[u].split("="),h[0]==t&&(r[u]=o,s=!0);return s||r.push(o),f.href.replace(e,r.join("&"))};coned.utils.deleteAnchorParameter=function(n,t){var u=document.createElement("a"),f,i,r,e;for(u.href=n,f=u.search.substring(1),i=f.split("&"),r=0;r<i.length;r++)e=i[r].split("="),e[0]==t&&i.splice(r,1);return u.href.replace(f,i.join("&"))};coned.utils.scrollTo=function(n,t,i){var r=window.scrollY||window.pageYOffset;if(r!=n)var o=n-r,s=Math.PI/(t/10),u=0,f,h=r,e=setInterval(function(){r===n?(clearInterval(e),i&&i()):Math.abs(n-r)<=2?(window.scrollTo(0,n),clearInterval(e),i&&i()):(u=u+1,f=h+o*(.5-.5*Math.cos(u*s)),window.scrollTo(0,f),r=window.scrollY||window.pageYOffset)},10)};coned.utils.serviceDateFormat=function(n){var t=n.split("/");return t[2]+"-"+t[0]+"-"+t[1]};coned.utils.datepickerDateFormat=function(n,t){n=n||0;t=t||0;var i=n!=0&&n!=undefined?new Date(n):new Date,r=t!=0&&t!=undefined?new Date(t):new Date;return{minDate:i,maxDate:r}};coned.utils.dateFormat=function(n){n=n&&n!==""?0||n:0;return n!==0?new Date(n):new Date};coned.utils.dateFormatLongMonth=function(n){var t=new Date(n);return t.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})};coned.utils.setDatepickerStartEndDateLimit=function(n,t,i,r,u,f,e){var o=new Date,s=new Date,h=new Date(o.setFullYear(o.getFullYear()+r,o.getMonth()+t,o.getDate()+i)),c=new Date(s.setFullYear(s.getFullYear()+e,s.getMonth()+u,s.getDate()+f));n.dataset.minDateDays=h.toString();n.dataset.maxDateDays=c.toString()};coned.utils.fillInputWithFormattedDate=function(n,t){var i=t,r=i.getDate(),u=i.getMonth()+1,f=i.getFullYear();i=u+"/"+r+"/"+f;n.value=i;n.disabled=!0;n.classList.add(coned.constants.INPUT_FILLED_CLASS)};coned.utils.round=function(n,t){return Number(Math.round(n+"e"+t)+"e-"+t)};coned.utils.roundUp=function(n){var t=n>=0?Math.ceil(n):Math.floor(n);return t===-0?0:t};coned.utils.roundDown=function(n){var t=n>=0?Math.floor(n):Math.ceil(n);return t===-0?0:t};coned.utils.isEllipsisActive=function(n){return n.offsetWidth<n.scrollWidth};coned.utils.lineClamp=function(n){var t;n.dataset&&n.dataset.ceLineClampSmall&&(t=n.dataset.ceLineClampSmall);coned.utils.isTablet()&&n.dataset&&n.dataset.ceLineClampMedium&&(t=n.dataset.ceLineClampMedium);coned.utils.isLargeDesktop()&&n.dataset&&n.dataset.ceLineClampLarge&&(t=n.dataset.ceLineClampLarge);t&&(n.innerHTML=n.innerHTML.trim(),n.innerHTML=$clamp(n,{clamp:t}).clamped||n.innerHTML)};coned.utils.localDateToUTC=function(n,t){if(n=="")return"";var i=new Date(n),e=i.getUTCMonth(),s=i.getUTCDate(),h=i.getUTCFullYear(),r=i.getUTCHours(),u=i.getUTCMinutes(),f=i.getUTCSeconds(),o="";return e=e+1,(t||t==undefined)&&(r<10&&(r="0"+r),u<10&&(u="0"+u),f<10&&(f="0"+f),o=" "+r+":"+u+":"+f),e+"/"+s+"/"+h+o};coned.utils.getUrlParameters=function(){for(var t=window.location.search.substring(1),i=/\+/g,r=/([^&=]+)=?([^&]*)/g,n=r.exec(t),u={},f,e;n!=null;)f=coned.utils.stringDecode(n[1],i),e=coned.utils.stringDecode(n[2],i),n=r.exec(t),u[f]=e;return u};coned.utils.stringDecode=function(n,t){return decodeURIComponent(n.replace(t," "))};coned.utils.entitiesDecode=function(n){var t=document.createElement("textarea");return t.innerHTML=n,t.value};coned.utils.checkInputsFilled=function(n){$(n).find("."+coned.constants.CONED_INPUT).each(function(){$(this).val()&&($(this).addClass(coned.constants.INPUT_FILLED_CLASS),$(this).valid())});$(n).find("."+coned.constants.CONED_TEXT_AREA).each(function(){$(this).val()&&($(this).addClass(coned.constants.TEXT_AREA_FILLED_CLASS),$(this).valid())});$(n).find("."+coned.constants.CONED_CHECKBOX).each(function(){$(this).is(":checked")&&($(this).parent().addClass(coned.constants.CHECKBOX_INPUT_FILLED),$(this).valid())});$(n).find("."+coned.constants.CONED_SELECT).each(function(){$(this).val()&&($(this).addClass(coned.constants.SELECT_INPUT_FILLED),$(this).addClass(coned.constants.VALID_CLASS),$(this).siblings("label").css({display:"block",top:"16",opacity:"1"}),$(this).valid())})};coned.utils.formDataFileInputFix=function(n){var t=new FormData(n),i=n.querySelectorAll('input[type="file"]:not(:disabled):not([name=""])');return _.each(i,function(n){t.delete(n.name);_.each(n.fileList,function(i){t.append(n.name,i)})}),t};coned.utils.setUrlParameters=function(n){var t=[],r,u,i;if(t.push(window.location.pathname),t.push("?"),n)for(i in n)n.hasOwnProperty(i)&&n[i]&&(t.push(i),t.push("="),t.push(n[i]),t.push("&"));t.pop();r=t.join("");u=r.replace(window.location.origin,"");window.history.pushState({page:r},"",u)};coned.utils.toCamelCase=function(n){return n.replace(/-([a-z])/g,function(n){return n[1].toUpperCase()})};coned.utils.toHyphenCase=function(n){return n.replace(/([a-z][A-Z])/g,function(n){return n[0]+"-"+n[1].toLowerCase()})};coned.utils.insertStringAtIndex=function(n,t,i,r){if(r=r||!1,n&&!(i>n.length-1))return n.replace(/./g,function(n,u){return u==i?r?t:n+t:n})};coned.utils.qualtricsTriggering=function(n){typeof QSI!="undefined"&&(n.classList.add(coned.constants.QUALTRICS_TRIGGER_CLASS),QSI.API.unload(),QSI.API.load().done(QSI.API.run()))};coned.utils.changeListType=function(n,t){_.each(n,function(n){for(var r=document.createElement(t),i;n.firstChild;)r.appendChild(n.firstChild);for(i=n.attributes.length-1;i>=0;--i)r.attributes.setNamedItem(n.attributes[i].cloneNode());n.parentNode.replaceChild(r,n)})};coned.utils.processLargeData=function(n,t,i){var f=100,u=20,r=n&&n.length?Array.isArray(n)?n.concat():_.toArray(n).concat():null;if(!r){i&&i();return}setTimeout(function(){var n=+new Date+f;do t(r.shift());while(r.length>0&&n>+new Date);r.length>0?setTimeout(arguments.callee,u):i&&i()},u)};coned.utils.addKeyEvent=function(n,t,i,r,u){function o(t){var r=t.keyCode===s;if(r)i(t,n);else return}function h(n){f&&e?o(n):!f&&e?coned.utils.isDesktop()&&o(n):f&&!e&&coned.utils.isMobile()&&o(n)}var s=t,f=r!==undefined?r:!0,e=u!==undefined?u:!0;n.addEventListener("keydown",function(n){h(n)})};coned.utils.addFocusTrap=function(n,t,i,r,u){var f=n.querySelectorAll(coned.constants.FOCUSABLE_ELEMENTS_QUERY),s=t!==undefined?t:!0,h=i!==undefined?i:!0;f=Array.prototype.slice.call(f);r&&f.unshift(r);u&&f.push(u);var e=f[0],o=f[f.length-1],c=function(n){var r=n.key==="Tab"||n.keyCode===coned.constants.KEY_CODE.TAB,t=0,i=f.length-1;if(r&&i===t){n.preventDefault();return}if(o=f[i--],o.disabled||!coned.utils.isDomVisible(o))while(i>=0&&(o.disabled||!coned.utils.isDomVisible(o)))o=f[i--];if(e=f[t++],e.disabled||!coned.utils.isDomVisible(e))while(t>=0&&(e.disabled||!coned.utils.isDomVisible(e)))e=f[t++];!r||i<0||t>=f.length||(n.shiftKey?document.activeElement===e&&(o.focus(),n.preventDefault()):document.activeElement===o&&(e.focus(),n.preventDefault()))},l=function(n){s&&h?c(n):!s&&h?coned.utils.isDesktop()&&c(n):s&&!h&&coned.utils.isMobile()&&c(n)};return n.addEventListener("keydown",l),r&&e.addEventListener("keydown",l),{onFocusSelected:l}};coned.utils.logout=function(n,t){var i=new XMLHttpRequest;i.open("DELETE",n);i.withCredentials=!0;i.setRequestHeader("Accept","application/json");i.send(null);window.location.href=t};coned.utils.setInputUser=function(){var n=document.querySelector("body");window.addEventListener("keydown",function(){query.hasClass(n,coned.constants.MOUSE_USER)&&query.removeClass(n,coned.constants.MOUSE_USER)});window.addEventListener("mousedown",function(){query.hasClass(n,coned.constants.MOUSE_USER)||query.addClass(n,coned.constants.MOUSE_USER);var t=document.getElementsByClassName(coned.constants.CARD_FOCUS_CLASS);t.length>0&&query.removeClass(t,coned.constants.CARD_FOCUS_CLASS)},!0)};coned.utils.simulateEvent=function(n,t){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window});!n.dispatchEvent(i)};coned.utils.focusFirstFormInputField=function(n,t){for(var u=n.querySelectorAll(coned.constants.FOCUSABLE_ELEMENTS_QUERY),i,r=0;r<u.length;r++)if(i=u[r],!coned.utils.isElementHidden(i))if(t){if(i.classList.contains(t)){i.focus();break}}else{i.focus();break}};coned.utils.focusFirstFocusableElementNextSibling=function(n){var t=n&&n.nextElementSibling,r=t&&t.querySelectorAll(coned.constants.FOCUSABLE_ELEMENTS_QUERY),u=r&&_.filter(r,function(n){return!query.checkElementOrParentDisplayNone(n)}),f=u&&u[0],e=n&&n.querySelectorAll(coned.constants.FOCUSABLE_ELEMENTS_QUERY),i=e&&_.filter(e,function(n){return!query.checkElementOrParentDisplayNone(n)}),o=i&&i[i.length-1];t&&f?f.focus():o&&o.focus()};coned.utils.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=Math.random()*16|0,i=n=="x"?t:t&3|8;return i.toString(16)})};coned.utils.initLazyLoadingIO=function(n,t){var i;"IntersectionObserver"in window&&(i=new IntersectionObserver(function(n){n.forEach(function(n){if(n.isIntersecting){var r=n.target;t&&t(r);i.unobserve(r)}})},{root:null,rootMargin:"0px"}),i.observe(n))};coned.utils.doActionByURLParam=function(n,t){var i=coned.utils.getUrlParameters(),r=i[coned.constants.DEEP_LINK_URL_PARAM_ACTION];r===n&&t()};coned.utils.onScrollThrottler=function(n,t){var i,r=t?t:66;window.addEventListener("scroll",function(){i||(i=setTimeout(function(){i=null;n()},r))})};coned.utils.onResizeThrottler=function(n,t){var i,r=t?t:66;window.addEventListener("resize",function(){i||(i=setTimeout(function(){i=null;n()},r))})};coned.utils.updateFontResizeThrottler=function(n,t,i){var u,r;window.addEventListener("resize",function(){r||(r=setTimeout(function(){r=null;t.style.fontSize="";u=parseInt(window.getComputedStyle(t,null).getPropertyValue("font-size"));n(t,i,u)},1e3))})};coned.utils.updateFontToFitAncestor=function(n,t,i){if(n&&t&&i&&coned.utils.isDomVisible(t)){var o=i,r=parseInt(window.getComputedStyle(n,null).getPropertyValue("font-size")),u=n.offsetWidth,f=t.offsetWidth,e,s=function(n){for(var t=0,i,r;n!=null;)i=parseInt(window.getComputedStyle(n,null).getPropertyValue("padding-left")),r=parseInt(window.getComputedStyle(n,null).getPropertyValue("padding-right")),t+=i+r,n=n.parentElement;return t};if(e=s(n),u>f-e){while(u>f-e)r=parseInt(window.getComputedStyle(n,null).getPropertyValue("font-size"))-1,n.style.fontSize=r+"px",u=n.offsetWidth,f=t.offsetWidth;n.style.fontSize=r/10+"rem"}else if(u<f-e&&o>r){while(u<f-e&&o>r)r=parseInt(window.getComputedStyle(n,null).getPropertyValue("font-size"))+1,n.style.fontSize=r+"px",u=n.offsetWidth,f=t.offsetWidth;n.style.fontSize=r/10+"rem"}}};coned.utils.addRadioButtonsTagging=function(n,t,i){var u,f,r;if(n&&t){for(u=n.innerText,r=0;r<t.length;r++)if(t[r].checked){f=i.length?i[r]:t[r].value;break}dataLayer.push({event:"radio.button.selection","radio.button.question":u,"radio.button.selected":f})}};coned.utils.toggleAttributes=function(n,t){n&&n.setAttribute(t,n.getAttribute(t)===coned.constants.TRUE?coned.constants.FALSE:coned.constants.TRUE)};coned.utils.isOverflowingWidth=function(n){return n.clientWidth<n.scrollWidth};coned.utils.formatString=function(n,t){if(n.length>0&&t.length>0){var i=""+n;return t.forEach(function(n,t){var r="{"+t+"}",u=i.includes(r);u&&(i=i.replace(r,n))}),i}return n};coned.utils.isFocusableElement=function(n){var t=n.getAttribute(coned.constants.NOT_FOCUSABLE.TABINDEX),i=window.getComputedStyle(n),r=n.tagName.toLowerCase(),u=n.getAttribute("role");return n.classList.contains(coned.constants.NOT_FOCUSABLE.DISABLED)||n.classList.contains(coned.constants.NOT_FOCUSABLE.HIDDEN)||n.hasAttribute(coned.constants.NOT_FOCUSABLE.DISABLED)||n.getAttribute(coned.constants.ARIA.HIDDEN)==="true"?!1:t!==null&&parseInt(t,10)<0?!1:i.display===coned.constants.NOT_FOCUSABLE.DISPLAY_NONE||i.visibility===coned.constants.NOT_FOCUSABLE.HIDDEN?!1:u!==null&&coned.constants.NOT_FOCUSABLE.FOCUSABLE_ROLES.includes(u)&&!coned.constants.NOT_FOCUSABLE.FOCUSABLE_TAGS.includes(r)?t===coned.constants.NOT_FOCUSABLE.TABINDEX_ENABLE:coned.constants.NOT_FOCUSABLE.FOCUSABLE_TAGS.includes(r)||t!==null&&parseInt(t,10)>=0};coned.utils.handleNextPrevFocus=function(n,t,i){var r=i.indexOf(t);r===-1?n===coned.constants.ORDER.NEXT?i[0].focus():i[i.length-1].focus():n===coned.constants.ORDER.NEXT?r+1>=i.length?i[0].focus():i[r+1].focus():r-1<0?i[i.length-1].focus():i[r-1].focus()};coned.utils.getNextPrevFocus=function(n){var r=n.order,u=n.$container instanceof HTMLElement?n.$container:undefined,f=typeof n.canLoop=="boolean"?n.canLoop:!1,e=n.target?n.target:document.activeElement instanceof HTMLElement?document.activeElement:null,t=coned.utils.arrayFrom(u?u.querySelectorAll(coned.constants.FOCUSABLE_ELEMENTS_DROPDOWN_MODAL_QUERY):document.querySelectorAll(coned.constants.FOCUSABLE_ELEMENTS_DROPDOWN_MODAL_QUERY)),i=e?t.indexOf(e):-1,o=i===t.length-1,s=i===0,h=t.length>1;return r!=="next"&&r!=="prev"||t.length===0?null:i<0||!h?t[0]:r==="prev"?s&&f?t[t.length-1]:t[i-1]:o&&f?t[0]:t[i+1]};coned.utils.arrayFrom=function(n){return Array.prototype.slice.call(n)};coned.utils.buildRecordString=function(n){var t=n.split(coned.constants.SEMICOLON),i=function(n,t){var i=t.split(coned.constants.COLON);return n[i[0]]=i[1],n};return t.reduce(i,{})};coned.utils.buildRecordStringArray=function(n){var t=n.split(coned.constants.SEMICOLON),i=function(n,t){var i=t.split(coned.constants.COLON);return n[i[0]]=i[1].split(coned.constants.COMMA),n};return t.reduce(i,{})};coned.utils.isSameRecord=function(n,t){for(var r=Object.keys(t),f=Object.keys(n),u=r.length===f.length,i;u&&r.length;)i=r.shift(),u=typeof n[i]=="object"?coned.utils.isSameRecord(n[i],t[i]):n[i]===t[i];return u};coned.utils.isMatchedRecord=function(n,t){for(var f=Object.keys(t),c=Object.keys(n),r=f.length<=c.length,i,e,o,u,s,h;r&&f.length;)if(i=f.shift(),typeof n[i]=="object"){if(e=t[i],o=n[i],Array.isArray(e)&&Array.isArray(o))for(u=e.concat(),s=o.concat(),r=u.length<=s.length;r&&u.length>0;)h=u.shift(),typeof h=="string"&&(r=s.includes(h));r=coned.utils.isMatchedRecord(n[i],t[i])}else r=n[i]===t[i];return r};coned.utils.hasMatchingRecord=function(n,t){return Object.keys(t).every(function(i){return n[i]?n[i].some(function(n){return t[i].indexOf(n)!==-1}):!1})};coned.utils.arrayFocusSort=function(n,t){return n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?1:-1};coned.utils.setAriaHidden=function(n,t){n instanceof HTMLElement&&n.setAttribute(coned.constants.ARIA.HIDDEN,t?coned.constants.TRUE:coned.constants.FALSE)};coned.utils.setAriaHidden=function(n,t){n instanceof HTMLElement&&n.setAttribute(coned.constants.ARIA.HIDDEN,t?coned.constants.TRUE:coned.constants.FALSE)};coned.utils.getElementOrParentElementByClass=function(n,t){while(n!==null&&!n.classList.contains(t))n=n.parentElement;return n},function(n){function t(n,t){n&&(t?n.classList.remove("form-loading--hidden"):n.classList.add("form-loading--hidden"))}n.documentReady=function(n,t){t=t||document;t.addEventListener?t.addEventListener("DOMContentLoaded",function(){t.removeEventListener("DOMContentLoaded",arguments.callee,!1);n()},!1):t.attachEvent&&t.attachEvent("onreadystatechange",function(){t.readyState==="complete"&&(t.detachEvent("onreadystatechange",arguments.callee),n())})};n.insertChildAtIndex=function(n,t,i){i>=n.children.length?n.appendChild(t):n.insertBefore(t,n.children[i])};n.getClass=function(n,t){return n.className.match(new RegExp("([a-zA-Z0-9-_.]*"+t+"[a-zA-Z0-9-_.]*)","g"))};n.hasClass=function(n,t,i){if(i=i||!1,n){if(i){if(n.classList){for(var r=0;r<n.classList.length;r++)if(n.classList[r].includes(t))return!0;return!1}return n.className.includes(t)?!0:!1}return n.classList?n.classList.contains(t)?!0:!1:n.className.match(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi"))?!0:!1}};n.listHasClass=function(t,i,r){if(t){r=r||!1;for(var u=0;u<t.length;u++)if(n.hasClass(t[u],i)||r){if(n.hasClass(t[u],i)&&r)return!0}else return!1;return r?!1:!0}};n.addClass=function(n,t){var r=function(n){n&&(n.classList?n.classList.contains(t)||n.classList.add(t):n.className.match(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi"))||(n.className=n.className+" "+t))},f,u,i;if(n)if(Object.prototype.toString.call(n)==="[object Array]")for(f=n,u=0;u<f.length;u++){if(n=f[u],!n)return;if(n.length)for(i=0;i<n.length;i++)r(n[i]);else r(n)}else if(n.length)for(i=0;i<n.length;i++)r(n[i]);else r(n)};n.removeClass=function(n,t){var r=function(n){n.classList?n.classList.remove(t):n.className=n.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},f,u,i;if(n)if(Object.prototype.toString.call(n)==="[object Array]")for(f=n,u=0;u<f.length;u++){if(n=f[u],!n)return;if(n.length)for(i=0;i<n.length;i++)r(n[i]);else r(n)}else if(n.length)for(i=0;i<n.length;i++)r(n[i]);else r(n)};n.replaceClass=function(n,t,i){var u=function(n){n&&(n.classList?(n.classList.remove(i),n.classList.contains(t)||n.classList.add(t)):(n.className=n.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," "),n.className.match(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi"))||(n.className=n.className+" "+t)))},e,f,r;if(n)if(Object.prototype.toString.call(n)==="[object Array]")for(e=n,f=0;f<e.length;f++){if(n=e[f],!n)return;if(n.length)for(r=0;r<n.length;r++)u(n[r]);else u(n)}else if(n.length)for(r=0;r<n.length;r++)u(n[r]);else u(n)};n.fireEvent=function(n,t,i){var r;document.createEventObject?(r=document.createEventObject(),i&&(r.details=i),n.fireEvent("on"+t,r)):(r=document.createEvent("HTMLEvents"),r.initEvent(t,!0,!0),i&&(r.details=i),n.dispatchEvent(r))};n.selectParentElement=function(t,i){while(t!=null&&!n.hasClass(t,i))t=t.parentElement;return t};n.selectParentElementByTag=function(n,t){while(n!=null&&n.tagName.toLowerCase()!==t.toLowerCase())n=n.parentElement;return n};n.selectParentElementByAttribute=function(n,t,i){while(n!=null&&n.dataset[t]!==i)n=n.parentElement;return n};n.checkElementOrParentDisplayNone=function(n){for(var t=!1,i=0;n!=null;i++){if(window.getComputedStyle(n,null).display==="none"){t=!0;break}n=n.parentElement}return t};n.indexOf=function(n,t){for(var i=0;i<n.length;i++)if(n[i]===t)return i;return-1};n.contains=function(n,t){for(var i=n.length;i--;)if(n[i]===t)return!0;return!1};n.getData=function(i,r,u,f,e){var o=new XMLHttpRequest,s=[],c="",h;if(f){s.push(i);s.push("?");for(h in f)h&&f.hasOwnProperty(h)&&(s.push(h),s.push("="),s.push(f[h]),s.push("&"));s.pop();c=s.join("");i=c}o.open("GET",i,!0);o.onload=function(){t(e);var i="";o.status>=200&&o.status<400?(i=n.isJSON(o.responseText)?JSON.parse(o.responseText):o.responseText,r(i,o.status)):n.isJSON(o.response)?u(JSON.parse(o.response),o.status):u(o.response,o.status)};o.onerror=function(){t(e);var n={status:o.status,errorMsg:o.response};u(n,o.status)};t(e,!0);o.send()};n.postData=function(t,i,r,u,f,e){n.httpDataMethod(t,i,r,u,f,e,"POST")};n.deleteData=function(t,i,r,u,f,e){n.httpDataMethod(t,i,r,u,f,e,"DELETE")};n.putData=function(t,i,r,u,f,e){n.httpDataMethod(t,i,r,u,f,e,"PUT")};n.httpDataMethod=function(i,r,u,f,e,o,s){var h=new XMLHttpRequest;h.open(s,i,!0);e&&h.setRequestHeader("Content-Type","application/json");h.onload=function(){t(o);h.status>=200&&h.status<400?h.response?n.isJSON(h.response)?r(JSON.parse(h.response),h.status):r(h.response,h.status):r():n.isJSON(h.response)?u(JSON.parse(h.response),h.status):u(h.response,h.status)};h.onerror=function(){t(o);var n={status:h.status,errorMsg:h.response};u(n,h.status)};t(o,!0);h.send(f)};n.isJSON=function(n){try{JSON.parse(n)}catch(t){return!1}return!0};n.clearElement=function(n){while(n.firstChild)n.removeChild(n.firstChild)};n.scrollToElement=function(n,t){var i,r,u;t=t?t:document.getElementsByClassName("js-header-wrapper")[0];i=document.getElementsByClassName(coned.constants.CONED_TABS_VISIBLE_CLASS)[0];i!==undefined&&i.classList.remove(coned.constants.CONED_TABS_VISIBLE_CLASS);n.scrollIntoView(!0);r=window.pageYOffset;u=t.offsetHeight*2;r&&window.scroll(0,r-u);i!==undefined&&i.classList.add(coned.constants.CONED_TABS_VISIBLE_CLASS)};n.setCookie=function(n,t,i){var u="",r;i!==undefined&&(r=new Date(i),isNaN(r)||(u=";expires="+r.toUTCString()));document.cookie=n+"="+t+u+";path=/"};n.getCookie=function(n){for(var r=n+"=",u=document.cookie.split(";"),t,i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return null};n.deleteCookie=function(t){n.setCookie(t,"",-1)};n.getRadioInputValue=function(n,t){for(var u=n.querySelectorAll('[name="'+t+'"]'),r,i=0;i<u.length;i++)if(r=u[i],r.checked)return r.value};n.getCheckboxInputValue=function(n,t){var i=n.querySelector('[name="'+t+'"]');return i?i.checked:null};n.getCheckboxInputValueById=function(n,t){var i=n.querySelector("[id="+t+"]");return i?i.checked:null};n.getInputValue=function(n,t){var i=n.querySelector('[name="'+t+'"]'),r=i?i.value:null;return r=="default"?"":r};n.FORM_INPUT_VALUE_FUNCTIONS={radio:n.getRadioInputValue,checkbox:n.getCheckboxInputValue,checkboxId:n.getCheckboxInputValueById,"default":n.getInputValue};n.getFormInputValue=function(t,i){var r,u=t.querySelector('[name="'+i+'"]');if(u)return r=u.getAttribute("type"),r&&n.FORM_INPUT_VALUE_FUNCTIONS[r]?n.FORM_INPUT_VALUE_FUNCTIONS[r](t,i):n.FORM_INPUT_VALUE_FUNCTIONS["default"](t,i)};n.getFormInputValueById=function(t,i){var r,u=t.querySelector("#"+i);if(u)return r=u.getAttribute("type")+"Id",r&&n.FORM_INPUT_VALUE_FUNCTIONS[r]?n.FORM_INPUT_VALUE_FUNCTIONS[r](t,i):n.FORM_INPUT_VALUE_FUNCTIONS["default"](t,i)};n.setFormTextInputValue=function(n,t,i){var r=n.querySelector('[name="'+t+'"]');r.value=i};n.getFormTextInputValue=function(n,t){var i=n.querySelector('[name="'+t+'"]');if(i)return i.value.trim()};n.getRadioInputText=function(t,i,r,u){for(var s=t.querySelectorAll('[name="'+i+'"]'),e,h,o,f=0;f<s.length;f++)if(e=s[f],e.checked)return h=n.selectParentElement(e,r),o=h.getElementsByClassName(u)[0],o?o.innerText:null};n.getCheckboxInputText=function(t,i,r,u){var o=t.querySelector('[name="'+i+'"]'),e,f;return e=n.selectParentElement(o,r),f=e.getElementsByClassName(u)[0],f?f.innerText.trim():null};n.getDropdownInputText=function(n,t){var i=n.querySelector('[name="'+t+'"]');return i.selectedIndex>0?i.options[i.selectedIndex].text:""};n.getDropdownInputTextByElement=function(n){return n.selectedIndex>0?n.options[n.selectedIndex].text:""};n.getDropdownSelectedValue=function(n,t){var i=n.querySelector('[name="'+t+'"]');return i.selectedIndex>0?i.options[i.selectedIndex].value:""};n.FORM_INPUT_TEXT_FUNCTIONS={radio:n.getRadioInputText,checkbox:n.getCheckboxInputText,"default":n.getDropdownInputText};n.getFormInputText=function(t,i,r,u){var f,e=t.querySelector('[name="'+i+'"]');if(e)return f=e.getAttribute("type"),f&&n.FORM_INPUT_TEXT_FUNCTIONS[f]?n.FORM_INPUT_TEXT_FUNCTIONS[f](t,i,r,u):n.FORM_INPUT_TEXT_FUNCTIONS["default"](t,i)}}(query);query=query||{};coned=coned||{};coned.chart=coned.chart||{};coned.chart.createBarChart=function(n,t,i,r,u,f,e){var l,o=t.chartId,w=t.chartLeftPadding,a=t.chartData,s=t.colorsObj,b=t.dataType,k=t.xAxisLeftPadding,h=t.yAxis,d=t.kilowattSymbol,g=t.dollarSymbol,nt=t.lineArray,tt=t.initialLine,it=t.allTotalAverageValue,rt=t.dataMonthlyNames,v=t.monthlyPeriodsList,y=t.size,p=u?u.toString():"",c=s.nonSummerPeakValue?"nonSummer":s.unbilledSubscriptionOverageValue?"overage":"",ut=c==="nonSummer"?"#636363":"#94000f",ft=c==="nonSummer"?"nonSummerPeakValue"+p:"unbilledSubscriptionOverageValue"+p;return l=c3.generate({bindto:"#"+o,padding:{left:w},data:{x:"label",columns:a,type:"bar",types:{fixedSubscriptionRate:"line"},colors:s,groups:[b],order:function(n){n},selection:{grouped:!0}},zoom:{enabled:!1},legend:{show:!1},tooltip:{grouped:!0,contents:function(t,u,f,e){var b="",k=[],d=[],h=[],ft=String(u(t[0].x)),et=v[ft],ot=n+".demand.hover.state",s,nt,l,a,y,p,tt,w;for(dataLayer.push({event:ot}),s=0;s<t.length;s++)nt=t[s].value,h.push(nt),k.push(e(t[s])),d.push(t[s].id);for(l="",a="",s=0;s<t.length;s++){if(h[s]&&h[s]>0){i?(p=it[o][t[0].x],tt=/[0-9]*(.[0-9])/g,b=p?"<div class='coned-chart__chart-tooltip--paddingTop'><span class='coned-chart__chart-tooltip--type-color'><\/span><span class='coned-chart__chart-tooltip--type-text'>"+r+"<\/span><div class='coned-chart__chart-tooltip--type-numbers'><span class='coned-chart__chart-tooltip--type-numbers-value'>"+p+"<\/span><\/div><\/div>":"",w=h[s].toString().match(tt),y=w?w[0]:h[s]+".0"):y=h[s].toFixed(1);var c=d[s],ut=c==="nonSummerPeakValue"?"coned-chart__chart-tooltip--type-nonSummer":"",st=c==="unbilledSubscriptionOverageValue"?"coned-chart__chart-tooltip--type-subscriptionOverage":"",ht=ut!==""?ut:st,ct=c==="unBilledOverage"?"coned-chart__chart-tooltip--type-overage":"",lt=rt[c],at="<span class='"+ct+ht+" coned-chart__chart-tooltip--type-color' style='background-color:"+k[s]+"'><\/span>",vt="<span class='coned-chart__chart-tooltip--type-text'>"+lt+"<\/span>",yt="<span class='coned-chart__chart-tooltip--type-numbers-value'>"+g+y+"<\/span>",pt=c==="fixedSubscriptionRate"?"":"<div class='coned-chart__chart-tooltip--type'>"+at+vt+"<div class='coned-chart__chart-tooltip--type-numbers'>"+yt+"<\/div><\/div>";l+=pt}a=l!=""?"<div class='coned-chart__chart-tooltip'><div class='coned-chart__chart-tooltip--date'>"+et+"<\/div><div class='coned-chart__chart-tooltip--data'>"+l+b+"<\/div> <\/div>":""}return a}},axis:{x:{type:"category",padding:{left:k},tick:{multiline:!1}},y:{inner:!0,max:parseFloat(h[h.length-1]),show:!0,tick:{values:h,format:function(n){return n+d}}}},grid:{lines:{front:!1},y:{lines:nt},x:{lines:tt}},bar:{width:y},onrendered:function(){coned.chart.stripeBars(o,u,["nonSummerPeakValue","unbilledSubscriptionOverageValue"])}}),c!==""&&coned.chart.addPatternDefs(o,ft,ut,y),coned.chart.createTable(o,v,i,undefined,a,f,"barChart",e),l};coned.chart.stripeBars=function(n,t,i){for(var r=0;r<i.length;r++)d3.select("#"+n).select(".c3-bars-"+i[r]).each(function(){d3.select(this).selectAll("path").each(function(){var n=d3.select(this),u=i[r]+t.toString();n.style("fill","url(#"+u+"_rect)")})})};coned.chart.addPatternDefs=function(n,t,i,r){var u=d3.select("#"+n).select("defs").append("svg");u.append("pattern").attr("id",t+"_rect").attr("width",5).attr("height",5).append("rect").attr("width",r).attr("height","100%").attr("fill","url(#"+t+")").attr("stroke",i).attr("stroke-width",1.5);u.append("pattern").attr("id",t).attr("width",3).attr("height",3).attr("patternUnits","userSpaceOnUse").attr("patternTransform","rotate(45 0 0 )");u.select("#"+t).append("line").attr("y2",14).style("stroke",i).attr("stroke-width",2)};coned.chart.createLineChart=function(n,t,i,r,u,f,e,o,s){var a,h=t.chartId,w=t.chartLeftPadding,v=t.chartData,b=t.colorsObj,k=t.peakClass,l=t.generalDailyData,y=t.allCompleteMonths,d=t.xAxisLeftPadding,c=t.yAxis,g=t.linesArray,p=t.kilowattSymbol;return a=c3.generate({bindto:"#"+h,padding:{left:w},data:{x:"label",type:"area",types:{fixedSubscriptionRate:"line"},columns:v,colors:b,classes:{actualDemand:k,peakdeterminantDay:"coned-line-chart",offPeakdeterminantDay:"coned-line-chart",nonSummerdeterminantDay:"coned-line-chart",unbilledOverage:"coned-line-chart-overage",billedOverage:"coned-line-chart-billed",billedOverageDay:"coned-line-chart-billed"}},zoom:{enabled:!1},tooltip:{grouped:!0,contents:function(t,o,s,c){var a=0,ut=[],ft=[],d=[],k=o(t[0].x),v=l[h][String(k)][0],et=l[h][String(k)][1],g,nt,w,tt,it,ot=n+".demand.hover.state",b,rt;for(v=v.replace(/-([\s\S][^T]*):[\s\S]*/g,""),v=new Date(v),g=y[v.getMonth()],tt=v.getFullYear(),it=v.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),k=k.replace(/-([A-Z])*\w+/g,""),dataLayer.push({event:ot}),b=0;b<t.length;b++)d.push(t[b].value),ut.push(c(t[b])),ft.push(t[b].id);return nt=f?0:d[1]&&d[1]>0?1:0,a=t[nt].value.toFixed(2),a=a==="0.00"||a==="0.0"?"0":a,w=et&&r!==""?r:a==="0"?i:a<0?e:u,w=w.replace(/{{demand}}/g,"<span class='coned-chart__chart-tooltip--type-paragraph-bold'>"+a+p+"<\/span>"),w=w.replace("{{time}}","<span class='coned-chart__chart-tooltip--type-paragraph-bold'>"+it+" <\/span>"),rt="<span class='coned-chart__chart-tooltip--type-paragraph'>"+w+"<\/span>","<div class='coned-chart__chart-tooltip'> <div class='coned-chart__chart-tooltip--date'> "+g+" "+k+", "+tt+" <\/div> <div class='coned-chart__chart-tooltip--data'> "+rt+" <\/div><\/div>"}},legend:{show:!1},axis:{x:{type:"category",padding:{left:d},tick:{multiline:!1}},y:{inner:!0,max:parseFloat(c[c.length-1]),min:parseFloat(c[0]),padding:{bottom:0},show:!0,tick:{values:c,format:function(n){return n+p}}}},grid:{lines:{front:!1},y:{lines:g}},point:{r:4,focus:{expand:{r:4.5}}}}),coned.chart.createTable(h,l[h],undefined,y,v,o,"lineChart",s),a};coned.chart.addLegend=function(n,t,i,r,u,f,e,o,s,h){var c=s?" coned-tooltip--oru ":"",l=h?"-monthly":"";d3.select("#"+i).insert("div",".chart").attr("class","coned-chart__legend").selectAll("div").data(n).enter().append("div").attr("class","coned-chart__legend-type").attr("data-id",function(n){return n}).html(function(n){var t,i;return n!=="fixedSubscriptionRate"?(t="",n=="actualDemand"||n=="dailyUsageSupply"||n=="offPeakDemand"?t='<span class="coned-chart__legend-line coned-chart__legend-line--'+f+'" aria-hidden="true"><\/span>':(i=n==="determinantDay"?" coned-chart__legend-"+n+e+o:"",t='<span class="coned-chart__legend-color coned-chart__legend-'+n+i+'" aria-hidden="true"><\/span>'),'<div class="coned-chart-tooltip"><div class="coned-chart__tooltip coned-tooltip '+c+" js-module coned-chart__tooltip-"+n+'" data-module="ToolTipComponent">'+t+'<span class="coned-chart__legend-content'+l+'">'+r[n]+'<\/span><button type="button" class="coned-chart__tooltip-content coned-tooltip--open js-tooltip-open" aria-label="Information about '+r[n]+' " aria-expanded="false"><\/button><div class="tooltip__templates"><div class="coned-tooltip__wrapper js-coned-tooltip-wrapper"><button class="coned-tooltip--close js-tooltip-close"><\/button><div class="coned-tooltip__content"><p class="js-tooltip-content">'+u[n]+"<\/p><\/div><\/div><\/div><\/div><\/div>"):'<div class="coned-chart-tooltip"><div class="coned-chart__tooltip coned-tooltip '+c+' js-module" data-module="ToolTipComponent"><hr class=" coned-chart__legend-line coned-chart__legend-line--demandSubsc" aria-hidden="true"><\/hr>'+r[n]+'<button type="button" class="coned-chart__tooltip-content coned-tooltip--open js-tooltip-open" aria-label="Information" aria-expanded="false"><\/button><div class="tooltip__templates"><div class="coned-tooltip__wrapper js-coned-tooltip-wrapper"><button class="coned-tooltip--close js-tooltip-close"><\/button><div class="coned-tooltip__content"><p class="js-tooltip-content">'+u[n]+"<\/p><\/div><\/div><\/div><\/div><\/div>"}).each(function(n){var i=t.color(n);n==="unBilledOverage"?d3.select(this).select("span").attr("class","coned-chart__legend-color coned-chart__target-unbilled-overage"):d3.select(this).select(".coned-chart__legend-"+n).style("background-color",i)}).on("mouseover",function(n){t.focus(n)}).on("mouseout",function(){t.revert()})};coned.chart.initializeTooltips=function(n,t,i){for(var f=document.getElementById(t),u=f.getElementsByClassName(i),r=0;r<u.length;r++)new coned.components.ToolTipComponent(u[r]),coned.utils.addGeneralListeners(u[r],function(){coned.chart.tooltipTagging(n)})};coned.chart.tooltipTagging=function(n){var t=n+".demand.legend.tool.tip";dataLayer.push({event:t})};coned.chart.yAxisLines=function(n,t,i,r){for(var f=[],u=0;u<i.length;u++)f.push({value:i[u],text:"",position:"start"});return n&&t.forEach(function(n){var t={value:n,"class":"text-line-overage",text:n+r,position:"start"};f.push(t)}),f};coned.chart.fixChartHeight=function(n){var t=document.getElementById(n),i=t.getElementsByClassName("coned-chart__legend")[0].clientHeight,r=350+i,u=coned.utils.isMobile()?" width: 100%;":"";document.getElementsByClassName("coned-chart__container")[0].setAttribute("style","height:"+r+"px;"+u)};coned.chart.fixYearLine=function(n){var e=document.getElementById(n),t=e.getElementsByClassName("text-line-year")[0];if(t){var i=t.getElementsByTagName("line")[0],r=t.getElementsByTagName("text")[0],f=parseInt(i.getAttribute("x1")),u=f-20,o=f+50;i.setAttribute("x1",u);i.setAttribute("x2",u);r.setAttribute("transform","");r.setAttribute("x",o-37);r.setAttribute("y",16);d3.select("#"+n).select(".text-line-year").insert("rect","text").attr("class","coned-chart__line-rect").attr("width","35").attr("height","15").attr("x",u).attr("y","0")}};coned.chart.createRect=function(n,t,i){var o=i<=4?"41":"47",s,e,r,u,h,c,f;if(d3.select("#"+n).select(".c3-axis-y").attr("clip-path",null),d3.select("#"+n).select(".c3-axis-y").selectAll(".tick").select(".coned-chart__line-rect").remove("rect"),d3.select("#"+n).select(".c3-axis-y").selectAll(".tick").insert("rect","text").attr("class","coned-chart__line-rect").attr("width",o).attr("height","15").attr("x","0.5").attr("y","-8"),d3.select("#"+n).select(".c3-axis-y").selectAll(".tick").selectAll("text").selectAll("tspan").attr("x","4"),t){if(s=d3.select("#"+n).select(".text-line-overage").select("rect")._groups[0][0],!s){for(e=d3.select("#"+n).selectAll(".text-line-overage")._groups[0],r=[],u=0;u<e.length;u++)h=e[u],c=h.getElementsByTagName("line")[0].getAttribute("y1"),r.push(c);for(f=0;f<r.length;f++)d3.select("#"+n).select(".text-line-overage").insert("rect","text").attr("class","coned-chart__line-rect").attr("width",o).attr("height","15").attr("x","0.5").attr("y",r[f]-7.5),d3.select("#"+n).selectAll(".text-line-overage").select("line").style("display","none")}d3.select("#"+n).selectAll(".text-line-overage").select("text").attr("dy",3).attr("dx",2);setTimeout(function(){d3.select("#"+n).selectAll(".text-line-overage").select("text").attr("x",2).attr("text-anchor","start")},100)}};coned.chart.deleteYearRect=function(n){var t=document.getElementById(n),i=t.getElementsByClassName("text-line-year")[0];i&&(d3.select("#"+n).select(".text-line-year").remove("rect"),d3.select("#"+n).select(".c3-axis-y").select(".tick").remove("rect"))};coned.chart.resizeWindow=function(n,t,i,r,u){var f=document.getElementById(n);f&&(setTimeout(function(){coned.chart.resizeChart(n,t,r,u);coned.chart.fixXaxisValues(n,i)},300),coned.chart.fixChartHeight(n))};coned.chart.resizeChart=function(n,t,i,r){coned.chart.deleteYearRect(n);t.resize();coned.chart.createRect(n,i,r);coned.chart.fixYearLine(n)};coned.chart.fixXaxisValues=function(n,t){for(var e=document.getElementById(n),o=e.getElementsByClassName("c3-axis-x")[0],u=o.getElementsByTagName("g"),f,r,i=0;i<u.length;i++)f=u[i].getElementsByTagName("tspan")[0].textContent,r=f.replace(t,""),r=r.replace("-"," "),u[i].getElementsByTagName("tspan")[0].textContent=r};coned.chart.showTableInfo=function(n,t,i){i==="true"?(n.getElementsByClassName("js-chart-table-content")[0].removeAttribute("hidden"),n.getElementsByClassName("js-coned-chart-table-button")[0].setAttribute("aria-expanded",!0),document.getElementsByClassName("js-chart-table")[0].classList.add("expanded"),n.getElementsByClassName("js-table-icon")[0].classList.add("coned-chart__table-icon--up"),document.getElementById(t+"_table").removeAttribute("hidden")):(n.getElementsByClassName("js-chart-table-content")[0].setAttribute("hidden",!0),n.getElementsByClassName("js-coned-chart-table-button")[0].setAttribute("aria-expanded",!1),document.getElementsByClassName("js-chart-table")[0].classList.remove("expanded"),n.getElementsByClassName("js-table-icon")[0].classList.remove("coned-chart__table-icon--up"),document.getElementById(t+"_table").setAttribute("hidden",!0))};coned.chart.createTable=function(n,t,i,r,u,f,e,o){for(var ui=document.getElementsByClassName("js-chart-module-content")[0],rt=e==="barChart",h=u.slice(1),g=document.createElement("div"),ut=document.createElement("table"),fi=ut.createTHead(),at=fi.insertRow(0),st=document.createElement("th"),ei=ut.createTBody(),vt,a=[],c=[],yt,nt,ft,l,s,tt,w,bt,ct,b,k,kt,dt,gt,lt,ni,ti,y,ii,ri,d,it,ot,v=0;v<u.length;v++)u[v][0]==="label"?(at.appendChild(st),st.setAttribute("scope","col"),st.innerHTML=rt?f.billingCycleTable:f.dateTable):(yt=u[v][0]==="PeakdeterminantDay"||u[v][0]==="OffPeakdeterminantDay"||u[v][0]==="NonSummerdeterminantDay"?"determinantDay":u[v][0],nt=f[yt],nt.includes("Determinant")||nt.includes("Fixed")||nt.includes("Level")||(ft=document.createElement("th"),ft.setAttribute("scope","col"),at.appendChild(ft),ft.innerHTML=nt));for(l=0;l<u[0].length-1;l++){var pt=ei.insertRow(l),ht=document.createElement("td"),wt="",et=u[0][l+1],p;for(pt.appendChild(ht),s=0;s<h.length;s++)if(h[s][0].includes("determinant")||h[s][0].includes("Determinant"))h[s][l+1]!=null&&(wt=f[h[s][0]]===undefined?f.determinantDay:f[h[s][0]]);else if(h[s][0].includes("fixed"))if(k=ui.getElementsByClassName("js-coned-chart-table-button")[0],vt=!0,o.length===1&&f[h[s][0]].includes("Level")&&a.length===0)a.push("Your Subscription Level is "),c.push(o[0]);else if(h[s].includes(0))kt=et.replace(/-[0-9]*-/g," "),dt=k.dataset.fixedSubscriptionStartingText.replace("{{FIXEDDATE}}",kt),a.push(dt),c.push(o[0]);else if(o.length===1&&c.length===0)if(rt){var oi=u[0][l+1].replace(/-[0-9]*-/g," "),si=u[0][u[0].length-1].replace(/-[0-9]*-/g," "),hi=k.dataset.fixedSubscriptionRangeText.replace("{{FIRSTDATE}}",oi).replace("{{LASTDATE}}",si);a.push(hi);c.push(o[0])}else gt=k.dataset.fixedSubscriptionRateText,a.push(gt),c.push(o[0]);else o.length>1&&(lt=et.replace(/-[0-9]*-/g," "),c.length===0?c.push(h[s][l+1]):c[0]===h[s][l+1]?(ni=k.dataset.fixedSubscriptionRateUntilText.replace("{{STARTDATE}}",lt),a[0]=ni):c[0]!==h[s][l+1]&&o.length>c.length&&(ti=k.dataset.fixedSubscriptionRateChangedText.replace("{{STARTDATE}}",lt),c.push(h[s][l+1]),a[1]=ti));else tt=document.createElement("td"),w=h[s][l+1],pt.appendChild(tt),rt?i===!0?(bt=/[0-9]*(.[0-9])/g,ct=w.toString().match(bt),tt.innerHTML=ct?ct[0]:w+".0"):tt.innerHTML=w!==null?w.toFixed(1):"":(b=w.toFixed(2),b=b==="0.00"||b==="0.0"?"0":b,tt.innerHTML=b);rt?(p=t[et],p=coned.utils.isDesktop()==!0?p:p.replace("-","- <br>"),ht.innerHTML=p):(y=t[et][0],y=y.replace(/-([\s\S][^T]*):[\s\S]*/g,""),y=new Date(y),ii=r[y.getMonth()],ri=y.getFullYear(),d=y.getDate(),d=d<10?"0"+d:d,p=ii+" "+d+", "+ri,ht.innerHTML=p+"<\/br>"+wt)}if(vt)for(it=0;it<o.length;it++)ot=document.createElement("p"),ot.className="coned-chart__table-text",g.appendChild(ot),ot.innerHTML=a[it]+'<span class="coned-chart__table-text--bold">'+c[it]+"kW.<\/span>";g.setAttribute("id",n+"_table");g.appendChild(ut);g.setAttribute("hidden","");ut.setAttribute("tabindex","0");document.getElementsByClassName("js-chart-table-content")[0].appendChild(g)};query=query||{};coned=coned||{};coned.chartComponents=coned.chartComponents||{};coned.chartComponents.getBillingPeriods=function(n,t,i){return{AccountMaid:i,Index:t,Count:12,Rate:n}};coned.chartComponents.callMonthlyService=function(n,t,i,r,u,f){return{AccountMaid:n,Rate:t,StartDate:i,EndDate:r,Count:12,GroupBy:u,IsSolar:f}};coned.chartComponents.generateDailyDate=function(n,t,i,r){n=n.replace(/T[\s\S]*/g,"T12:00:00");t=t.replace(/T[\s\S]*/g,"T12:00:00");n=new Date(n);t=new Date(t);i&&n.setDate(n.getDate()+1);var u=r[n.getMonth()]+" "+n.getDate()+", "+n.getFullYear(),f=r[t.getMonth()]+" "+t.getDate()+", "+t.getFullYear();return u+" - "+f};coned.chartComponents.generateMonthlyDate=function(n,t,i){var r,u;return n=n.replace(/T[\s\S]*/g,"T12:00:00"),t=t.replace(/T[\s\S]*/g,"T12:00:00"),n=new Date(n),t=new Date(t),r=i[n.getMonth()]+" "+n.getFullYear(),u=i[t.getMonth()]+" "+t.getFullYear(),r+" - "+u};coned.chartComponents.getDailyChart=function(n,t,i,r,u,f){return{AccountMaid:n,Rate:t,StartDate:i,EndDate:r,GroupBy:u,IsSolar:f}};coned=coned||{};coned.moxie=coned.moxie||{};coned.moxie.eventList={"GoMoxie:widget:chat:suggestedArticles":"suggested","GoMoxie:widget:chat:articleViewed":"viewedchat","GoMoxie:widget:kb:articleViewed":"viewedkb","GoMoxie:widget:chat:deflected":"deflected","GoMoxie:widget:chat:escalatedToChat":"chat","GoMoxie:widget:kb:portalSearched":"search","GoMoxie:proactiveOffer":"displayed"};coned.moxie.eventHandler=function(n){var i={event:"moxiekbot.widget."+coned.moxie.eventList[n.type]},r=[],t=n.detail;t&&(t.articlesList&&(_.each(t.articlesList,function(n){r.push(n.articleTitle.trim())}),i.articleTitle=r.join("|")),t.searchText&&(i.searchText=t.searchText),t.articleTitle&&(i.articleTitle=t.articleTitle),t.status?t.status==="displayed"&&(i.widgetName=t.rule.name,dataLayer.push(i)):dataLayer.push(i))};coned.moxie.initEvents=function(){for(var n in coned.moxie.eventList)window.addEventListener(n,coned.moxie.eventHandler)};query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.AccordionList=function(){var n={OPEN_ACCORDION_SELECTOR:"js-accordion-selector",LAZY_LOAD_CLASS:"js-lazy-load",SCENARIO_CLASS:"js-scenario-page",LAZY_LOAD_LOADED_CLASS:"js-lazy-load-element-loaded",ACCORDION_CONTAIN:"js-accordion-contain",ITEM_CONTAIN:"js-item-contain",ICON_SELECTOR:"js-icon-selector",SUBMIT_BUTTON:"js-submit-button",CLOSE_ACCORDION_SELECTOR:"js-accordion-close",HIDDEN_CLASS:"hidden",ACTIVE_CLASS:"active",VISIBLE_CLASS:"visible",INACTIVE_CLASS:"manage-enroll__list--inactive",ALERT_CLASS:"manage-enroll__list--alert",COLLAPSIBLE_CLASS:"manage-enroll__contain--close",LINK_DESCRIPTION:"js-link-description",ITEM_ANIMATION:"check-list__item--animation",ICON_ENROLL:"js-icon-enroll",ICON_CHECK_STATUS:"icon-check-status",ICON_CLOSE:"icon-close",ICON_WARNING:"icon-safety-precaution",SERVICE_ERROR:"js-service-error",DIV_LOADING:"js-div-loading",ROTATE_ICON_SELECTOR:"js-rotate-icon-selector",ROTATE_ICON_MODIFIER:"transactional-review__edit-link--icon-rotate",ARIA_EXPANDED_ATTRIBUTE:"aria-expanded",ARIA_HIDDEN_ATTRIBUTE:"aria-hidden",FOCUS_PLACEHOLDER_CLASS:"js-focus-placeholder"},t=!1,i=function(i){var s,h,w,v,r,y,f,e,u,o,c,p,b=function(t){var i=t.getElementsByClassName(n.OPEN_ACCORDION_SELECTOR)[0],f=t.getElementsByClassName(n.ICON_ENROLL)[0],r=t.getElementsByClassName(n.ACCORDION_CONTAIN)[0],e=r.dataset.closeName;i.getElementsByClassName(n.LINK_DESCRIPTION)[0].innerHTML=e;t.classList.remove(n.ITEM_ANIMATION);f.classList.contains(n.ROTATE_ICON_SELECTOR)?f.classList.add(n.ROTATE_ICON_MODIFIER):f.classList.add(n.HIDDEN_CLASS);i.classList.add(n.ACTIVE_CLASS);r.classList.remove(n.COLLAPSIBLE_CLASS);r.classList.remove(n.HIDDEN_CLASS);u=t;i.setAttribute(n.ARIA_EXPANDED_ATTRIBUTE,!0);r.setAttribute(n.ARIA_HIDDEN_ATTRIBUTE,!1);o&&o.focus({preventScroll:!0});setTimeout(function(){i.focus()},500)},l=function(t,i){var r=t.getElementsByClassName(n.OPEN_ACCORDION_SELECTOR)[0],e=t.getElementsByClassName(n.ICON_ENROLL)[0],f=t.getElementsByClassName(n.ACCORDION_CONTAIN)[0],s=f.dataset.openName;r.getElementsByClassName(n.LINK_DESCRIPTION)[0].innerHTML=s;f.classList.add(n.COLLAPSIBLE_CLASS);f.classList.add(n.HIDDEN_CLASS);t.classList.add(n.ITEM_ANIMATION);e.classList.contains(n.ROTATE_ICON_SELECTOR)?e.classList.remove(n.ROTATE_ICON_MODIFIER):e.classList.remove(n.HIDDEN_CLASS);r.classList.remove(n.ACTIVE_CLASS);v=f.getElementsByClassName(n.SERVICE_ERROR)[0];v&&v.classList.add(n.HIDDEN_CLASS);u=null;r.setAttribute(n.ARIA_EXPANDED_ATTRIBUTE,!1);f.setAttribute(n.ARIA_HIDDEN_ATTRIBUTE,!0);i||(o&&o.focus({preventScroll:!0}),setTimeout(function(){var n=navigator.userAgent.toLowerCase().indexOf("safari/")>-1;n&&r.scrollIntoView({behavior:"auto",block:"center",inline:"center"});r.focus()},500))},a=function(n){u?u===n?c?c=!1:l(n):(l(u,!0),b(n)):b(n)},k=function(t){var i=t.getElementsByClassName(n.ICON_SELECTOR)[0];l(t);t.classList.remove(n.ALERT_CLASS);t.classList.remove(n.INACTIVE_CLASS);i.classList.remove(n.ICON_CLOSE);i.classList.remove(n.ICON_WARNING);i.classList.add(n.ICON_CHECK_STATUS)},d=function(){i.style.visibility=n.HIDDEN_CLASS;e.length&&e[0].classList.remove(n.HIDDEN_CLASS)},g=function(){query.listHasClass(r,n.LAZY_LOAD_LOADED_CLASS)&&(i.style.visibility=n.VISIBLE_CLASS,e.length&&e[0].classList.add(n.HIDDEN_CLASS),s=i.getElementsByClassName(n.OPEN_ACCORDION_SELECTOR),h=i.getElementsByClassName(n.SUBMIT_BUTTON),_.each(s,function(t){coned.utils.addGeneralListeners(t,function(t){t!==undefined&&t.preventDefault();var i=query.selectParentElement(t.target,n.ITEM_CONTAIN);a(i)})}),_.each(h,function(t){coned.utils.addGeneralListeners(t,function(t){t!==undefined&&t.preventDefault();var i=query.selectParentElement(t.target,n.ITEM_CONTAIN);k(i)})}),f.length&&f[0].removeEventListener("lazy-load-start",d),_.each(r,function(n){n.removeEventListener("lazy-load-element-loaded",g)}),p&&coned.utils.triggerEvent(window,coned.constants.MULTIPLE_GLOBAL_LAZY_LOAD_EVENT_DONE))},nt=function(t){t&&query.selectParentElement(t.target,n.CLOSE_ACCORDION_SELECTOR)&&(t.preventDefault(),l(query.selectParentElement(t.target,n.ITEM_CONTAIN)))},tt=function(){w=i.getElementsByClassName(n.ITEM_CONTAIN);r=i.getElementsByClassName(n.LAZY_LOAD_CLASS);y=i.getElementsByClassName(n.SCENARIO_CLASS);f=document.getElementsByClassName(n.LAZY_LOAD_CLASS+"-"+i.dataset.lazyLoadTrigger);e=i.parentElement.getElementsByClassName(n.DIV_LOADING);o=document.getElementsByClassName(n.FOCUS_PLACEHOLDER_CLASS)[0];u=null;c=!1;r.length?(query.addClass(i,coned.constants.MULTIPLE_GLOBAL_LAZY_LOAD_ELEMENT),p=!0):(s=i.getElementsByClassName(n.OPEN_ACCORDION_SELECTOR),h=i.getElementsByClassName(n.SUBMIT_BUTTON),p=!1)},it=function(){_.each(w,function(n){coned.utils.addGeneralListeners(n,nt);n.addEventListener("deeplink-event",function(n){c=!0;a(n.target)})});r.length||(_.each(s,function(t){coned.utils.addGeneralListeners(t,function(t){t!==undefined&&(t.stopPropagation(),t.preventDefault());var i=query.selectParentElement(t.target,n.ITEM_CONTAIN);a(i)})}),_.each(h,function(t){coned.utils.addGeneralListeners(t,function(t){t!==undefined&&t.preventDefault();var i=query.selectParentElement(t.target,n.ITEM_CONTAIN);k(i)})}));r.length&&(f.length&&f[0].addEventListener("lazy-load-start",d),_.each(r,function(n){n.addEventListener("lazy-load-element-loaded",g)}));coned.utils.isPatternLab()&&y.length&&_.each(y,function(t){t.addEventListener("scenarios-element-loaded",function(t){var i=t.target;coned.utils.addGeneralListeners(i,function(t){t!==undefined&&t.preventDefault();var i=query.selectParentElement(t.target,n.ITEM_CONTAIN);a(i)})})})},rt=function(){tt();it();t=!0};rt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.AccountDetailsElegible=function(){var n={FORM_SELECTOR:".js-elegible-details-form",TEXT_INFORMATION:"js-text-info",INPUT_INFORMATION:"js-input-info",EDIT_BUTTON_SELECTOR:"js-edit-button",HIDDEN_CLASS:"hidden",OPEN_CONTAINER_CLASS:"account-details__container--open"},t=!1,i=function(i){var r,u,f,e=function(){query.removeClass(u,n.HIDDEN_CLASS);query.addClass(f,n.HIDDEN_CLASS);r.classList.remove(n.HIDDEN_CLASS);i.classList.remove(n.OPEN_CONTAINER_CLASS)},o=function(){u=i.getElementsByClassName(n.TEXT_INFORMATION);f=i.getElementsByClassName(n.INPUT_INFORMATION);r=i.getElementsByClassName(n.EDIT_BUTTON_SELECTOR)[0]},s=function(){new coned.components.AccountDetails(i);new coned.components.ValidateForm(n.FORM_SELECTOR,e)},h=function(){o();s();t=!0};h()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.AccountDetails=function(){var n={EDIT_BUTTON_SELECTOR:"js-edit-button",CLOSE_BUTTON:"js-close-button",TEXT_INFORMATION:"js-text-info",INPUT_INFORMATION:"js-input-info",OPEN_CONTAINER_CLASS:"account-details__container--open",INPUT_SELECTOR:"js-coned-input",SERVICE_ERROR:"js-service-error",HIDDEN_CLASS:"hidden",FILLED_CLASS:"coned-input--filled",FIELD_DISABLED_CLASS:"coned-field--disabled",HEADER:"js-header-wrapper",MAILING_OPTION_CONTAINER:"js-mailing-address-container",ARIA_EXPANDED:"aria-expanded"},t=!1,i=function(i){var r,f,e,o,s,h,c,u,l=function(t){t.preventDefault();var o=i.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled]), input[type="email"]:not([disabled]), input[type="tel"]:not([disabled])'),s=o[0];u&&u.classList.remove(n.HIDDEN_CLASS);query.addClass(f,n.HIDDEN_CLASS);query.removeClass(e,n.HIDDEN_CLASS);r.classList.add(n.HIDDEN_CLASS);r.setAttribute(n.ARIA_EXPANDED,!0);i.classList.add(n.OPEN_CONTAINER_CLASS);s.focus()},a=function(t){t.preventDefault();y();query.removeClass(f,n.HIDDEN_CLASS);query.addClass(e,n.HIDDEN_CLASS);r.classList.remove(n.HIDDEN_CLASS);r.setAttribute(n.ARIA_EXPANDED,!1);i.classList.remove(n.OPEN_CONTAINER_CLASS);query.scrollToElement(i,c);u&&u.classList.add(n.HIDDEN_CLASS);r.focus()},v=function(n){var t=n.target;t.setAttribute("required","")},y=function(){h.classList.add(n.HIDDEN_CLASS)},p=function(){r=i.getElementsByClassName(n.EDIT_BUTTON_SELECTOR)[0];f=i.getElementsByClassName(n.TEXT_INFORMATION);e=i.getElementsByClassName(n.INPUT_INFORMATION);o=i.getElementsByClassName(n.CLOSE_BUTTON)[0];s=i.getElementsByClassName(n.INPUT_SELECTOR);h=i.getElementsByClassName(n.SERVICE_ERROR)[0];u=i.getElementsByClassName(n.MAILING_OPTION_CONTAINER)[0];c=document.getElementsByClassName(n.HEADER)[0]},w=function(){coned.utils.addGeneralListeners(o,a);coned.utils.addGeneralListeners(r,l);_.each(s,function(t){t.dataset.optional||t.addEventListener("change",v);t.classList.add(n.FILLED_CLASS)})},b=function(){p();w();t=!0};b()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.AccountDropdownLoggedIn=function(){var n={DROPDOWN_ITEM:"js-dropdown-item",DROPDOWN_ITEM_CONTENT:"js-account-content",DROPDOWN_CARROT:"js-dropdown-carrot",DROPDOWN_CHECKED_ITEM:"js-dropdown-check",DROPDOWN_LIST_HIDE_CLASS:"account-dropdown__list--hidden",DROPDOWN_CHECK_HIDE_CLASS:"account-dropdown__option-check--hidden",DROPDOWN_CARROT_UP_CLASS:"account-dropdown__icon--up",DROPDOWN_LIST_SCROLLABLE:"account-dropdown__list--scrollable",DROPDOWN_REMOVE_BUTTON:"account-dropdown__button--no-pointer",DROPDOWN_CONTAINER:"js-dropdown-container",ADD_ACCOUNT_CONTAINER:"js-add-account-container",ADD_ACCOUNT_SCROLLABLE:"account-dropdown__option--scrollable",ACCOUNT_URL_PARAMETER:"account=",ACCOUNT_URL_PARAMETER_NAME:"account",ACCOUNT_MAID_INPUT:"accountMaid",FORM_LOADING:"js-form-loading",FORM_LOADING_HIDDEN:"form-loading--hidden",PAGE_LOADING:"js-page-loading",PAGE_LOADING_HIDDEN:"page-loading--hidden",HIDDEN_CLASS:"hidden",FILTERS_TO_KEEP:["tab1","ThirdPartyId","client_id","scope","response_type","state","redirect_uri"],ARIA_EXPANDED_ATTRIBUTE:"aria-expanded",ARIA_SELECTED_ATTRIBUTE:"aria-selected",TEXT_SEARCH_INPUT_SELECTOR:"js-text-search-input",PRIMARY_NAV_ITEM_BOTTOM_SECTION:"js-primary-nav-item-bottom-section",ACCOUNT_BUTTON_DESKTOP:"js-account-button-desktop",ACCOUNT_BUTTON_MOBILE:"js-account-button-mobile",MOBILE_ELEMENTS_HEIGHT:365},t=!1,i=function(i){var r,l,u,f,a,e,v,y,o,s,p,w,h,nt=function(t){t.preventDefault();var i=query.selectParentElement(t.target,n.DROPDOWN_ITEM_CONTENT),r=i.parentElement;g(i,r)},tt=function(t){var i,u,f,r,e;t.preventDefault();i=t.keyCode;u=t.shiftKey;u&&i===coned.constants.KEY_CODE.TAB?(f=w,f.focus()):i==coned.constants.KEY_CODE.ENTER?(r=t.target,e=r.getElementsByClassName(n.DROPDOWN_ITEM_CONTENT)[0],g(e,r)):i==coned.constants.KEY_CODE.DOWN?k(t.target):i==coned.constants.KEY_CODE.UP?it(t.target):i==coned.constants.KEY_CODE.TAB&&(coned.utils.isMobile()?y.focus():v.focus())},c=function(t){return t&&t.classList.contains(n.HIDDEN_CLASS)},b=function(n){if(n&&c(n)){var t=n.nextElementSibling;return b(t)}return n},k=function(n){var t=b(n.nextElementSibling);t?t.focus():c(r[0])?k(r[0]):r[0].focus()},d=function(n){var t,i;return(n||(t=r.length-1,n=r[t]),c(n))?(i=n.previousElementSibling,d(i)):n},it=function(t){var i=d(t.previousElementSibling),u;i&&i.classList.contains(n.DROPDOWN_ITEM)?i.focus():(u=r.length-1,r[u].focus())},g=function(t,r){var h=r.getElementsByClassName(n.DROPDOWN_CHECKED_ITEM)[0],e,f,s;query.addClass(a,n.DROPDOWN_CHECK_HIDE_CLASS);l.innerHTML=t.innerHTML;h.classList.remove(n.DROPDOWN_CHECK_HIDE_CLASS);e=u.querySelectorAll('[aria-selected="true"]')[0];e&&e.setAttribute(n.ARIA_SELECTED_ATTRIBUTE,!1);r.setAttribute(n.ARIA_SELECTED_ATTRIBUTE,!0);f=ut(n.FILTERS_TO_KEEP);f=rt(r.dataset.account,n.ACCOUNT_URL_PARAMETER_NAME,n.ACCOUNT_URL_PARAMETER,f);o&&(o.value=r.dataset.account);query.fireEvent(i,"change",{account:r.dataset.account});coned.utils.isPatternLab()?(s=f.replace(window.location.origin,""),window.history.pushState({page:f},"",s)):(p.classList.remove(n.PAGE_LOADING_HIDDEN),window.location.href=f)},rt=function(n,t,i,r){r===undefined&&(r=window.location.href);var u=r.indexOf("?")===-1?"?":"&";return n!==""?r.split["?"]>1&&r.split["?"][1].includes(t)?r=coned.utils.updateAnchorParameter(r,t,n):r+=u+i+n:window.location.search.includes(t)&&(r=coned.utils.deleteAnchorParameter(r,t)),r},ut=function(n){var t=window.location.href,r=t.split("?")[1],u,i;return n===undefined&&(n=[]),r&&(u=r.split("&"),_.each(u,function(r){i=r.split("=")[0];n.includes(i)||(t=coned.utils.deleteAnchorParameter(t,i))})),t.substr(-1)==="?"&&(t=t.substring(0,t.length-1)),t},ft=function(){var t=r[0].offsetHeight,i,f;t===0&&(t=53);u.classList.add(n.DROPDOWN_LIST_SCROLLABLE);e&&e.classList.add(n.ADD_ACCOUNT_SCROLLABLE);coned.utils.isDesktop()?(i=t*h-18,u.style.height=i+"px"):(f=window.innerHeight-n.MOBILE_ELEMENTS_HEIGHT,u.style.height=f+"px")},et=function(){r=i.getElementsByClassName(n.DROPDOWN_ITEM);l=i.getElementsByClassName(n.DROPDOWN_ITEM_CONTENT)[0];f=i.getElementsByClassName(n.DROPDOWN_CARROT)[0];a=i.getElementsByClassName(n.DROPDOWN_CHECKED_ITEM);u=i.getElementsByClassName(n.DROPDOWN_CONTAINER)[0];e=document.getElementsByClassName(n.ADD_ACCOUNT_CONTAINER)[0];v=document.getElementsByClassName(n.ACCOUNT_BUTTON_DESKTOP)[0];y=document.getElementsByClassName(n.ACCOUNT_BUTTON_MOBILE)[0];o=document.getElementsByName(n.ACCOUNT_MAID_INPUT)[0];s=document.getElementsByClassName(n.FORM_LOADING)[0];p=document.getElementsByClassName(n.PAGE_LOADING)[0];w=i.getElementsByClassName(n.TEXT_SEARCH_INPUT_SELECTOR)[0];h=i.dataset.accountsLimit},ot=function(){if(r.length===0)f&&f.classList.add(n.HIDDEN_CLASS);else{for(var t=0;t<r.length;t++)coned.utils.addGeneralListeners(r[t],nt),r[t].addEventListener("keydown",tt);r.length>h&&ft()}s&&s.classList.add(n.FORM_LOADING_HIDDEN)},st=function(){et();ot();t=!0};st()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.AccountDropdown=function(){var n={DROPDOWN_BUTTON:"js-dropdown-button",DROPDOWN_LIST:"js-dropdown-list",DROPDOWN_ITEM:"js-dropdown-item",DROPDOWN_ITEM_CONTENT:"js-account-content",DROPDOWN_CARROT:"js-dropdown-carrot",DROPDOWN_CHECKED_ITEM:"js-dropdown-check",DROPDOWN_LIST_HIDE_CLASS:"account-dropdown__list--hidden",DROPDOWN_CHECK_HIDE_CLASS:"account-dropdown__option-check--hidden",DROPDOWN_CARROT_UP_CLASS:"account-dropdown__icon--up",DROPDOWN_LIST_SCROLLABLE:"account-dropdown__list--scrollable",DROPDOWN_REMOVE_BUTTON:"account-dropdown__button--no-pointer",DROPDOWN_CONTAINER:"js-dropdown-container",ADD_ACCOUNT_CONTAINER:"js-add-account-container",ADD_ACCOUNT_SCROLLABLE:"account-dropdown__option--scrollable",ACCOUNT_URL_PARAMETER:"account=",ACCOUNT_URL_PARAMETER_NAME:"account",ACCOUNT_MAID_INPUT:"accountMaid",FORM_LOADING:"js-form-loading",FORM_LOADING_HIDDEN:"form-loading--hidden",HIDDEN_CLASS:"hidden",FILTERS_TO_KEEP:["tab1"],ARIA_EXPANDED_ATTRIBUTE:"aria-expanded",ARIA_SELECTED_ATTRIBUTE:"aria-selected",TEXT_SEARCH_INPUT_SELECTOR:"js-text-search-input"},t=!1,i=function(i){var u,e,r,y,o,f,p,s,w,h,c,l,nt=function(t){t.preventDefault();query.hasClass(e,n.DROPDOWN_LIST_HIDE_CLASS)?tt():a()},tt=function(){u.setAttribute(n.ARIA_EXPANDED_ATTRIBUTE,!0);e.classList.remove(n.DROPDOWN_LIST_HIDE_CLASS);f.classList.add(n.DROPDOWN_CARROT_UP_CLASS)},a=function(){u.setAttribute(n.ARIA_EXPANDED_ATTRIBUTE,!1);e.classList.add(n.DROPDOWN_LIST_HIDE_CLASS);f.classList.remove(n.DROPDOWN_CARROT_UP_CLASS);c.value=""},it=function(t){t.preventDefault();var i=query.selectParentElement(t.target,n.DROPDOWN_ITEM_CONTENT),r=i.parentElement;g(i,r)},rt=function(t){var i,f,e,r,o;t.preventDefault();i=t.keyCode;f=t.shiftKey;f&&i===coned.constants.KEY_CODE.TAB?(e=c||u,e.focus()):i==coned.constants.KEY_CODE.ENTER?(r=t.target,o=r.getElementsByClassName(n.DROPDOWN_ITEM_CONTENT)[0],g(o,r)):i==coned.constants.KEY_CODE.DOWN?k(t.target):i==coned.constants.KEY_CODE.UP?ft(t.target):i==coned.constants.KEY_CODE.TAB&&s.children[0].focus()},ut=function(n){var t=n.keyCode,i=n.shiftKey;i||t!==coned.constants.KEY_CODE.TAB||a()},v=function(t){return t&&t.classList.contains(n.HIDDEN_CLASS)},b=function(n){if(n&&v(n)){var t=n.nextElementSibling;return b(t)}return n},k=function(n){var t=b(n.nextElementSibling);t?t.focus():v(r[0])?k(r[0]):r[0].focus()},d=function(n){var t,i;return(n||(t=r.length-1,n=r[t]),v(n))?(i=n.previousElementSibling,d(i)):n},ft=function(t){var i=d(t.previousElementSibling),u;i&&i.classList.contains(n.DROPDOWN_ITEM)?i.focus():(u=r.length-1,r[u].focus())},g=function(t,r){var s=r.getElementsByClassName(n.DROPDOWN_CHECKED_ITEM)[0],f,u,e;query.addClass(p,n.DROPDOWN_CHECK_HIDE_CLASS);y.innerHTML=t.innerHTML;s.classList.remove(n.DROPDOWN_CHECK_HIDE_CLASS);f=o.querySelectorAll('[aria-selected="true"]')[0];f&&f.setAttribute(n.ARIA_SELECTED_ATTRIBUTE,!1);r.setAttribute(n.ARIA_SELECTED_ATTRIBUTE,!0);a();u=ot(n.FILTERS_TO_KEEP);u=et(r.dataset.account,n.ACCOUNT_URL_PARAMETER_NAME,n.ACCOUNT_URL_PARAMETER,u);w.value=r.dataset.account;query.fireEvent(i,"change",{account:r.dataset.account});coned.utils.isPatternLab()?(e=u.replace(window.location.origin,""),window.history.pushState({page:u},"",e)):(h.classList.remove(n.FORM_LOADING_HIDDEN),window.location.href=u)},et=function(n,t,i,r){r===undefined&&(r=window.location.href);var u=r.indexOf("?")===-1?"?":"&";return n!==""?r.split["?"]>1&&r.split["?"][1].includes(t)?r=coned.utils.updateAnchorParameter(r,t,n):r+=u+i+n:window.location.search.includes(t)&&(r=coned.utils.deleteAnchorParameter(r,t)),r},ot=function(n){var t=window.location.href,r=t.split("?")[1],u,i;return n===undefined&&(n=[]),r&&(u=r.split("&"),_.each(u,function(r){i=r.split("=")[0];n.includes(i)||(t=coned.utils.deleteAnchorParameter(t,i))})),t.substr(-1)==="?"&&(t=t.substring(0,t.length-1)),t},st=function(){var t=r[0].offsetHeight,i;t===0&&(t=53);i=t*l-18;o.style.height=i+"px";o.classList.add(n.DROPDOWN_LIST_SCROLLABLE);s.classList.add(n.ADD_ACCOUNT_SCROLLABLE)},ht=function(){u=i.getElementsByClassName(n.DROPDOWN_BUTTON)[0];e=i.getElementsByClassName(n.DROPDOWN_LIST)[0];r=i.getElementsByClassName(n.DROPDOWN_ITEM);y=i.getElementsByClassName(n.DROPDOWN_ITEM_CONTENT)[0];f=i.getElementsByClassName(n.DROPDOWN_CARROT)[0];p=i.getElementsByClassName(n.DROPDOWN_CHECKED_ITEM);o=i.getElementsByClassName(n.DROPDOWN_CONTAINER)[0];s=i.getElementsByClassName(n.ADD_ACCOUNT_CONTAINER)[0];w=document.getElementsByName(n.ACCOUNT_MAID_INPUT)[0];h=document.getElementsByClassName(n.FORM_LOADING)[0];c=i.getElementsByClassName(n.TEXT_SEARCH_INPUT_SELECTOR)[0];l=i.dataset.accountsLimit},ct=function(){if(r.length===0)f&&f.classList.add(n.HIDDEN_CLASS),u.classList.add(n.DROPDOWN_REMOVE_BUTTON);else{coned.utils.addGeneralListeners(u,nt);s.addEventListener("keydown",ut);for(var t=0;t<r.length;t++)coned.utils.addGeneralListeners(r[t],it),r[t].addEventListener("keydown",rt);r.length>l&&st()}h&&h.classList.add(n.FORM_LOADING_HIDDEN)},lt=function(){ht();ct();t=!0};lt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.AccountFocus=function(){var n={POP_UP_SELECTOR:"js-popup",ACCOUNT_SELECTOR:"js-account",ACCOUNT_FOCUS_MODAL_SELECTOR:"js-set-account-focus",CLOSE_ACCOUNT_FOCUS:"js-close-account-focus",PAGE_LOADING:"js-page-loading",PAGE_LOADING_HIDDEN:"page-loading--hidden",HIDDEN_CLASS:"hidden",HERO_GREETING_CLASS:"js-hero-greeting",QUESTION_MARK:"?",AMPERSAND:"&",ACCOUNT:"account="},t=!1,i=function(i){var u,r,o,f,e,s,h,c=function(n){n&&n.preventDefault();var i=n?n.currentTarget:u[0],t={Maid:i.dataset.maid,PageId:h};n||(t.isClosingModal=!0);t=JSON.stringify(t);query.postData(s,a,v,t,!0);dataLayer.push({selectedAccountImage:i.dataset.accountImage})},a=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_ACCOUNT_FOCUS,l,function(){}):l(n)},l=function(t){var u=window.location.search,i=t.maid;(r.classList.add(n.HIDDEN_CLASS),t.noRedirect)||(e&&(coned.utils.isPatternLab()||e.classList.remove(n.PAGE_LOADING_HIDDEN)),t&&(window.location.href=t.redirectUrl&&!coned.utils.isPatternLab()?t.redirectUrl+window.location.search.replace(n.QUESTION_MARK,n.AMPERSAND):u===""?window.location.href+n.QUESTION_MARK+n.ACCOUNT+i:window.location.href+n.QUESTION_MARK+window.location.search.replace(n.QUESTION_MARK,n.AMPERSAND)+n.AMPERSAND+n.ACCOUNT+i))},v=function(){},y=function(n){n.preventDefault();c(null);dataLayer.push({event:"account.focus.cancel"})},p=function(){o=document.getElementsByClassName(n.POP_UP_SELECTOR)[0];r=document.getElementsByClassName(n.ACCOUNT_FOCUS_MODAL_SELECTOR)[0];u=i.getElementsByClassName(n.ACCOUNT_SELECTOR);f=r.getElementsByClassName(n.CLOSE_ACCOUNT_FOCUS)[0];e=document.getElementsByClassName(n.PAGE_LOADING)[0];s=i.dataset.serviceUrl;h=i.dataset.pageId},w=function(){_.each(u,function(n){coned.utils.addGeneralListeners(n,c)});new coned.utils.addFocusTrap(r);o.addEventListener("keydown",function(n){n.keyCode==27&&f.click()});f.addEventListener("click",function(n){y(n)})},b=function(){p();w();t=!0};b()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.FinancialAdvisorAccountSelector=function(){var n={HIDDEN_PAGE_LOADING_CLASS:"page-loading--hidden",CHANGE_EVENT:"change",ACCOUNT_STRING:"account",TRUE_STRING:"true",DATA_MASTER_ATTRIBUTE:"data-master-account",DATA_NYPA_ATTRIBUTE:"data-nypa",ARIA_SELECTED_ATRRIBUTE:"aria-selected",ADDRESS_DROPDOWN_SELECTOR:"js-address-dropdown",CONTINUE_BUTTON_SELECTOR:"js-continue-button",DROPDOWN_BUTTON_CONTAINER_SELECTOR:"js-dropdown-button-contain",PAGE_LOADING_SELECTOR:"js-page-loading"},t=!1,i=function(i){var u,r,f,e=function(){u=i.getElementsByClassName(n.ADDRESS_DROPDOWN_SELECTOR)[0];f=document.getElementsByClassName(n.PAGE_LOADING_SELECTOR)[0];r=document.getElementsByClassName(n.DROPDOWN_BUTTON_CONTAINER_SELECTOR)[0]},o=function(){u.addEventListener(n.CHANGE_EVENT,s);h()},s=function(t){var i=new URL(window.location.origin+window.location.pathname),r=t.details.account;query.removeClass(f,n.HIDDEN_PAGE_LOADING_CLASS);i.searchParams.set(n.ACCOUNT_STRING,r);window.location.href=i.href},h=function(){var t=document.getElementsByClassName(n.CONTINUE_BUTTON_SELECTOR)[0],i=r.getAttribute(n.DATA_MASTER_ATTRIBUTE)===n.TRUE_STRING||r.getAttribute(n.DATA_NYPA_ATTRIBUTE)===n.TRUE_STRING;t.disabled=i},c=function(){e();o();t=!0};c()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.AddAccountNotification=function(){var n=!1,t=function(){var t=function(){dataLayer.push({event:"virtualPageView",virtualPageUrl:"/en/add-account/pending-accounts"})},i=function(){t();n=!0};i()};return t.prototype.isLoaded=function(){return n},t}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.AddAccount=function(){var n={ADD_ACCOUNT_FORM:".js-add-account-form",ADD_ACCOUNT_FORM_WRAPPER:"js-add-account-form-wrapper",CONFIRM_OWNERSHIP_FORM:".js-confirm-ownership-form",CONFIRM_OWNERSHIP_SECURITY_WORD_OPTIONS:"js-security-word-option",CONFIRM_OWNERSHIP_SUBMIT:"js-transactional-submit-selector",SEND_RECOVERY_CODE_FORM_WRAPPER:"js-send-recovery-code-form-wrapper",SEND_RECOVERY_CODE_FORM:".js-send-recovery-code-form",ENTRY_RECOVERY_CODE_FORM_WRAPPER:"js-entry-recovery-code-form-wrapper",ENTRY_RECOVERY_CODE_FORM:".js-entry-recovery-code-form",ENTRY_SECURITY_WORD_FORM_WRAPPER:"js-entry-security-word-form-wrapper",ENTRY_SECURITY_WORD_FORM:".js-entry-security-word-form",FORGOT_ACCOUNT_NUMBER_LOOKUP_FORM_WRAPPER:"js-forgot-account-number-lookup-form-wrapper",FORGOT_ACCOUNT_NUMBER_LOOKUP_FORM:".js-forgot-account-number-lookup-form",FORGOT_SELECT_ACCOUNT_FORM_WRAPPER:"js-forgot-select-account-form-wrapper",FORGOT_SELECT_ACCOUNT_FORM:".js-forgot-select-account-form",SUBMIT_ANIMATION_BUTTON:"js-submit-progress-animation",ACCOUNT_NUMBER_CONTAIN:"js-account-info-contain",ACCOUNT_NUMBER_CONTAINER:"js-account-info-container",FORGOT_ACCOUNT_NUMBER_LINK:"js-forgot-account-number",NOT_MY_ACCOUNT_LINK:"js-not-my-account",SELECT_LOOKUP_WITH:"js-select-account-lookup-width",EMAIL_LOOKUP_SELECTOR:"js-lookup-email-selector",PHONE_LOOKUP_SELECTOR:"js-lookup-phone-selector",IGNORE_CLASS:"js-ignore-validation-class",SEND_CODE_AGAIN_LINK:"js-send-code-again",LOOKUP_ACCOUNT_NUMBER_LINK:"js-lookup-account-number",INPUT_CLASS:"js-coned-input",RADIO_INPUT_CLASS:"js-coned-radio",INPUT_FILLED_CLASS:"coned-input--filled",HIDDEN_CLASS:"hidden",REMEMBER_PHONE_OPTION:"js-phone-option",REMEMBER_EMAIL_OPTION:"js-email-option",RADIO_LABEL:"coned-radio__label-name",ADD_ACCOUNT_SITECORE_ID:"ScId",ADD_ACCOUNT_USER_ID:"UserId",ADD_ACCOUNT_ACCOUNT_NUMBER:"accountNumber",ADD_ACCOUNT_CONFIRM_TYPE:"confirmType",ADD_ACCOUNT_VERIFICATION_CODE:"verificationCode",ADD_ACCOUNT_LOOKUP_WITH:"lookupWith",ADD_ACCOUNT_EMAIL_ADDRESS:"emailAddress",ADD_ACCOUNT_PHONE_NUMBER:"phoneNumber",ADD_ACCOUNT_LAST_PAYMENT:"lastPaymentAmount",ADD_ACCOUNT_ERROR:"js-service-error",ADD_ACCOUNT_ERROR_MESSAGE:"js-error-message",MAID_INPUT:"AddAccountMAID",ADD_ACCOUNT:"AddAccount",CUSTOMER_SERVICE:"js-call-customer-service",REGISTER_PROFILE_BUTTON:"js-register-new-profile",NOTIFICATION_ONBOARDING_SELECTOR:"js-notification-onboarding",TURN_ON_EMAIL_NOTIFICATION_EVENT:"turn-on-email-notification",EMAIL_PLACEHOLDER:"{{EMAIL}}",TELEPHONE_PLACEHOLDER:"{{TELEPHONE}}",NOTIFICATION_ONBOARDING_PARAM:"notification-onboarding"},t=!1,i=function(i){var c,rt,u,s,e,l,lt,ut,at,ft,p,w,vt,yt,pt,et,wt,ot,f,a,b,st,ht,v,y,ct,bt,kt,r,h=function(){i.focus()},ti=function(){f=c.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];new coned.components.SubmitAnimation(f,ii,ui,it,!1,!0)},ii=function(){o();var t,r=c.dataset.addAccountService;t={ScId:query.getFormInputValue(i,n.ADD_ACCOUNT_SITECORE_ID),AddAccountScId:query.getFormInputValue(i,n.ADD_ACCOUNT),AccountNumber:query.getFormInputValue(c,n.ADD_ACCOUNT_ACCOUNT_NUMBER)};t=JSON.stringify(t);query.postData(r,k,d,t,!0)},k=function(n){r=n;f.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},ri=function(t){r=t;!ct||bt||kt?ai():(f.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS),coned.utils.triggerEvent(y,n.TURN_ON_EMAIL_NOTIFICATION_EVENT))},d=function(n){f.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);r=n;coned.utils.isPatternLab()&&(r.errorMsg='To manage more than 750 accounts, please <a class="transactional__error-link" href="http://localhost:7788/patterns/04-pages-10-transactional-register-00-pre-register/04-pages-10-transactional-register-00-pre-register.html">register a new profile.<\/a>')},ui=function(){dataLayer.push({event:"add.account.process","add.account":"step02"});c.classList.add(n.HIDDEN_CLASS);u.classList.remove(n.HIDDEN_CLASS);h();dataLayer.push({event:"add.account.process","add.account":"step05"});dataLayer.push({event:"virtualPageView",virtualPageUrl:"/en/add-account/confirm-account-ownership"});_.each(ut,function(n){n.innerHTML=lt.value});coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_ACCOUNT_MAID,function(n){g(n);nt(n);tt(n)},function(){}):(g(r),nt(r),tt(r))},fi=function(t,i){var u=t.getElementsByClassName(n.RADIO_INPUT_CLASS)[0],r=t.getElementsByClassName(n.RADIO_LABEL)[0];r.textContent=t.dataset.placeholder;r.textContent=t.dataset.placeholder.replace(n.EMAIL_PLACEHOLDER,i);u.checked=!1;t.classList.remove(n.HIDDEN_CLASS)},ei=function(t,i){var u=t.getElementsByClassName(n.RADIO_INPUT_CLASS)[0],r=t.getElementsByClassName(n.RADIO_LABEL)[0];r.textContent=t.dataset.placeholder;r.textContent=t.dataset.placeholder.replace(n.TELEPHONE_PLACEHOLDER,i);u.checked=!1;t.classList.remove(n.HIDDEN_CLASS)},g=function(t){var i=t.PhoneNumber,r=t.Email;r?fi(b,r):b.classList.add(n.HIDDEN_CLASS);i?_.each(a,function(n){ei(n,i)}):_.each(a,function(t){t.classList.add(n.HIDDEN_CLASS)});r||i?st.classList.add(n.HIDDEN_CLASS):st.classList.remove(n.HIDDEN_CLASS);ot.value=t.MAID;ht.disabled=!0},nt=function(n){bt=n.IsNYPA},tt=function(n){kt=n.IsMasterAccount},dt=function(){ht.disabled=!1},oi=function(){f=u.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];new coned.components.SubmitAnimation(f,si,hi,it,!1,!0)},si=function(){o();var t,f=u.dataset.sendRecoveryCodeService,r=query.getFormInputValue(u,n.ADD_ACCOUNT_CONFIRM_TYPE);t={ScId:query.getFormInputValue(i,n.ADD_ACCOUNT_SITECORE_ID),AddAccountScId:query.getFormInputValue(i,n.ADD_ACCOUNT),ConfirmType:r,MAID:query.getFormInputValue(i,n.MAID_INPUT)};dataLayer.push({"confirmation.method":r});t=JSON.stringify(t);query.postData(f,k,d,t,!0)},hi=function(){dataLayer.push({event:"add.account.process","add.account":"step06"});u.classList.add(n.HIDDEN_CLASS);s.classList.remove(n.HIDDEN_CLASS);h();dataLayer.push({event:"add.account.process","add.account":"step07"});dataLayer.push({event:"virtualPageView",virtualPageUrl:"/en/add-account/enter-confirmation-code"})},ci=function(){var t=ct?vi:function(){};f=s.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];new coned.components.SubmitAnimation(f,li,t,it,!1,!0)},li=function(){o();var t,r=s.dataset.entryRecoveryCodeService;t={ScId:query.getFormInputValue(i,n.ADD_ACCOUNT_SITECORE_ID),UserId:query.getFormInputValue(i,n.ADD_ACCOUNT_USER_ID),AddAccountScId:query.getFormInputValue(i,n.ADD_ACCOUNT),SecurityCode:query.getFormInputValue(s,n.ADD_ACCOUNT_VERIFICATION_CODE),MAID:query.getFormInputValue(i,n.MAID_INPUT)};t=JSON.stringify(t);query.postData(r,ri,d,t,!0)},ai=function(){dataLayer.push({event:"add.account.process","add.account":"step08"});coned.utils.isPatternLab()?query.getData(coned.plConstants.ADD_ACCOUNT_REDIRECT,gt,function(){}):gt(r)},gt=function(n){dataLayer.push({event:"virtualPageView",virtualPageUrl:"/en/manually-add-account/dashboard-view"});window.location.href=n.redirectUrl},vi=function(){query.addClass(s,n.HIDDEN_CLASS);query.removeClass(y,n.HIDDEN_CLASS);y.focus()},yi=function(){f=e.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];new coned.components.SubmitAnimation(f,pi,wi,it,!1,!0)},pi=function(){o();var t,r=e.dataset.forgotAccountNumberLookupService,u=query.getFormInputValue(e,n.ADD_ACCOUNT_LAST_PAYMENT),f=parseFloat(u.replace(/[^0-9-.]/g,""));t={ScId:query.getFormInputValue(i,n.ADD_ACCOUNT_SITECORE_ID),AddAccountScId:query.getFormInputValue(i,n.ADD_ACCOUNT),LookupWith:query.getFormInputValue(e,n.ADD_ACCOUNT_LOOKUP_WITH),Email:query.getFormInputValue(e,n.ADD_ACCOUNT_EMAIL_ADDRESS),Phone:query.getFormInputValue(e,n.ADD_ACCOUNT_PHONE_NUMBER),LastPayment:f};t=JSON.stringify(t);query.postData(r,k,d,t,!0)},wi=function(){dataLayer.push({event:"add.account.process","add.account":"step12a"});coned.utils.isPatternLab()?(query.getData(coned.plConstants.GET_ACCOUNT_NUMBER,ni,function(){}),query.getData(coned.plConstants.GET_ACCOUNT_MAID,function(n){g(n);nt(n);tt(n)},function(){})):(ni(r),g(r),nt(r),tt(r))},ni=function(t){o();var i=t.AccountNumber,r=i.substr(-5),u="**********"+r;_.each(ut,function(n){n.innerHTML=u});ot.value=t.MAID;e.classList.add(n.HIDDEN_CLASS);l.classList.remove(n.HIDDEN_CLASS);h();dataLayer.push({event:"add.account.process","add.account":"step11b"});dataLayer.push({event:"virtualPageView",virtualPageUrl:"/en/add-account/forgot-account-number/account-matched"})},bi=function(){f=l.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];new coned.components.SubmitAnimation(f,ki,function(){},function(){})},ki=function(){dataLayer.push({event:"add.account.process","add.account":"step12b"});o();k();l.classList.add(n.HIDDEN_CLASS);u.classList.remove(n.HIDDEN_CLASS);h()},it=function(){_.each(et,function(t){t.classList.remove(n.HIDDEN_CLASS);t.focus()});_.each(wt,function(n){n.innerHTML=r.errorMsg?r.errorMsg:coned.constants.ERROR_MESSAGE})},o=function(){_.each(et,function(t){t.classList.add(n.HIDDEN_CLASS)})},di=function(t){t.preventDefault();o();c.classList.remove(n.HIDDEN_CLASS);u.classList.add(n.HIDDEN_CLASS);s.classList.add(n.HIDDEN_CLASS);h();for(var i=0;i<rt.length;i++)rt[i].checked=!1},gi=function(){var r=ft.value,t=p.getElementsByClassName(n.INPUT_CLASS)[0],i=w.getElementsByClassName(n.INPUT_CLASS)[0];r=="phone"?(w.classList.remove(n.HIDDEN_CLASS),p.classList.add(n.HIDDEN_CLASS),t.classList.add(n.IGNORE_CLASS),i.classList.remove(n.IGNORE_CLASS)):(w.classList.add(n.HIDDEN_CLASS),p.classList.remove(n.HIDDEN_CLASS),t.classList.remove(n.IGNORE_CLASS),i.classList.add(n.IGNORE_CLASS))},nr=function(n){n.preventDefault();v.dataset.link&&v.dataset.link!==""&&(window.location.href=v.dataset.link)},tr=function(t){t.preventDefault();o();e.classList.remove(n.HIDDEN_CLASS);c.classList.add(n.HIDDEN_CLASS);h();dataLayer.push({event:"add.account.process","add.account":"step02opt"});dataLayer.push({event:"add.account.process","add.account":"step11a"});dataLayer.push({event:"virtualPageView",virtualPageUrl:"/en/add-account/forgot-account-number"})},ir=function(t){t.preventDefault();o();u.classList.remove(n.HIDDEN_CLASS);s.classList.add(n.HIDDEN_CLASS);h();dataLayer.push({event:"add.account.process","add.account":"step08opt1"})},rr=function(t){t.preventDefault();o();e.classList.remove(n.HIDDEN_CLASS);l.classList.add(n.HIDDEN_CLASS);h()},ur=function(){c=i.getElementsByClassName(n.ADD_ACCOUNT_FORM_WRAPPER)[0];rt=i.getElementsByClassName(n.CONFIRM_OWNERSHIP_SECURITY_WORD_OPTIONS);u=i.getElementsByClassName(n.SEND_RECOVERY_CODE_FORM_WRAPPER)[0];s=i.getElementsByClassName(n.ENTRY_RECOVERY_CODE_FORM_WRAPPER)[0];e=i.getElementsByClassName(n.FORGOT_ACCOUNT_NUMBER_LOOKUP_FORM_WRAPPER)[0];l=i.getElementsByClassName(n.FORGOT_SELECT_ACCOUNT_FORM_WRAPPER)[0];lt=i.getElementsByClassName(n.ACCOUNT_NUMBER_CONTAIN)[0];ut=i.getElementsByClassName(n.ACCOUNT_NUMBER_CONTAINER);at=i.getElementsByClassName(n.NOT_MY_ACCOUNT_LINK);ft=i.getElementsByClassName(n.SELECT_LOOKUP_WITH)[0];p=i.getElementsByClassName(n.EMAIL_LOOKUP_SELECTOR)[0];w=i.getElementsByClassName(n.PHONE_LOOKUP_SELECTOR)[0];vt=i.getElementsByClassName(n.FORGOT_ACCOUNT_NUMBER_LINK)[0];pt=i.getElementsByClassName(n.SEND_CODE_AGAIN_LINK)[0];yt=i.getElementsByClassName(n.LOOKUP_ACCOUNT_NUMBER_LINK)[0];et=i.getElementsByClassName(n.ADD_ACCOUNT_ERROR);wt=i.getElementsByClassName(n.ADD_ACCOUNT_ERROR_MESSAGE);ot=document.getElementsByName(n.MAID_INPUT)[0];a=u.getElementsByClassName(n.REMEMBER_PHONE_OPTION);b=u.getElementsByClassName(n.REMEMBER_EMAIL_OPTION)[0];st=u.getElementsByClassName(n.CUSTOMER_SERVICE)[0];ht=u.getElementsByClassName(n.CONFIRM_OWNERSHIP_SUBMIT)[0];v=i.getElementsByClassName(n.REGISTER_PROFILE_BUTTON)[0];y=i.getElementsByClassName(n.NOTIFICATION_ONBOARDING_SELECTOR)[0];ct=coned.utils.isPatternLab()?coned.utils.getUrlParameterValue(n.NOTIFICATION_ONBOARDING_PARAM)?!0:!1:y?!0:!1},fr=function(){new coned.components.ValidateForm(n.ADD_ACCOUNT_FORM,ti,"");new coned.components.ValidateForm(n.SEND_RECOVERY_CODE_FORM,oi,"");new coned.components.ValidateForm(n.ENTRY_RECOVERY_CODE_FORM,ci,"");new coned.components.ValidateForm(n.FORGOT_ACCOUNT_NUMBER_LOOKUP_FORM,yi,"."+n.IGNORE_CLASS);new coned.components.ValidateForm(n.FORGOT_SELECT_ACCOUNT_FORM,bi,"");coned.utils.addGeneralListeners(b,dt);for(var t=0;t<a.length;t++)coned.utils.addGeneralListeners(a[t],dt);_.each(at,function(n){coned.utils.addGeneralListeners(n,di)});coned.utils.addGeneralListeners(v,nr);coned.utils.addGeneralListeners(yt,rr);coned.utils.addGeneralListeners(pt,ir);coned.utils.addGeneralListeners(vt,tr);ft.addEventListener("change",gi);dataLayer.push({event:"add.account.process","add.account":"step01"});dataLayer.push({event:"virtualPageView",virtualPageUrl:"/en/add-account/lookup-account-info"})},er=function(){ur();fr();t=!0};er()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.AddressDropdown=function(){var n={DROPDOWN_BUTTON:"js-dropdown-button",DROPDOWN_LIST:"js-dropdown-list",DROPDOWN_ITEM:"js-dropdown-item",DROPDOWN_BUTTON_CONTAIN:"js-dropdown-button-contain",DROPDOWN_ITEM_CONTAIN:"js-dropdown-item-contain",DROPDOWN_CARROT:"js-dropdown-carrot",CHECKED_ICON_SELECTOR:"js-icon-check",DISPLAY_NONE_CLASS:"address-dropdown__list-item--hidden",CHECKED_ICON_CLASS:"icon-check-status",CARROT_UP:"address-dropdown__icon--up",DROPDOWN_REMOVE_BUTTON:"address-dropdown__button--no-button",VALIDATED_ACCOUNT_ERROR:"js-validated-account-error",SERVICE_ERROR_MESSAGE:"js-error-message",ACCOUNT_TYPE_COMMERCIAL:"C",HIDDEN_CLASS:"hidden",REPORT_OUTAGE_FORM_CONTAINER:"js-report-outage-form",REPORT_OUTAGE_FORM_LOADING:"js-form-loading",REPORT_OUTAGE_SUBMIT_BUTTON:"js-submit-outage",REPORT_OUTAGE_DROPDOWN_UPDATE_ACCOUNT:"js-address-dropdown-update-account",ENERGY_AFFORDABLE_FORM:"js-energy-affordable-form",SUBMIT_BUTTON:"js-submit-button",ROLE:"role",TABINDEX:"tabindex",ARIA_EXPANDED:"aria-expanded",ARIA_SELECTED:"aria-selected"},t=!1,i=function(i){var e,s,f,u,v,h,g,nt,r,c,p,o,w,tt,l,b,k,y,it=function(){query.hasClass(s,n.DISPLAY_NONE_CLASS)?vt():a()},st=function(n){n.preventDefault();it();f[0].focus()},ht=function(t){var u=t.keyCode,i;u==coned.constants.KEY_CODE.ENTER&&(it(),i=s.querySelectorAll('[aria-selected="true"]')[0],i&&i.setAttribute(n.ARIA_SELECTED,"false"),r?(r.parentElement.focus(),r.parentElement.setAttribute(n.ARIA_SELECTED,"true")):(f[0].focus(),f[0].setAttribute(n.ARIA_SELECTED,"true")))},rt=function(){u.dataset.getAccountEndpoint&&o?ft():d();u.dataset.accountType&&tt&&pt();e.setAttribute(n.ARIA_EXPANDED,"false");coned.utils.triggerEvent(r,"checkEligibility")},ut=function(t){if(y){y=!1;return}t.preventDefault();r=t.target.classList.contains(n.DROPDOWN_ITEM)?t.target.getElementsByClassName(n.DROPDOWN_ITEM_CONTAIN)[0]:query.selectParentElement(t.target,n.DROPDOWN_ITEM_CONTAIN);rt()},ct=function(n){var t=n.keyCode;t==coned.constants.KEY_CODE.ENTER?(r=n.target.children[0],rt(),e.focus()):t==coned.constants.KEY_CODE.TAB?a():t==coned.constants.KEY_CODE.ESC?(a(),e.focus()):t==coned.constants.KEY_CODE.UP?lt(n):t==coned.constants.KEY_CODE.DOWN&&at(n)},lt=function(n){n.preventDefault();var t=n.target.previousElementSibling;t?t.focus():f[f.length-1].focus()},at=function(n){n.preventDefault();var t=n.target.nextElementSibling;t?t.focus():f[0].focus()},d=function(){var nt=r.parentElement.getElementsByClassName(n.CHECKED_ICON_SELECTOR)[0],t=r.dataset.account,f=r.dataset.lastDigitsAccountNumber,e=r.dataset.street,s=r.dataset.city,h=r.dataset.state,c=r.dataset.zipcode,l=r.dataset.country,y=r.dataset.address2,p=r.dataset.mdac,w=r.dataset.unit,b=r.dataset.premise,k=r.dataset.company,d=r.dataset.accountMaid,g=r.dataset.accountNumber;u.dataset.account=t?t:"";u.dataset.lastDigitsAccountNumber=f?f:"";u.dataset.street=e?e:"";u.dataset.city=s?s:"";u.dataset.state=h?h:"";u.dataset.zipcode=c?c:"";u.dataset.country=l?l:"";u.dataset.address2=y?y:"";u.dataset.mdac=p?p:"";u.dataset.accountMaid=d?d:"";u.dataset.unit=w?w:"";u.dataset.premise=b?b:"";u.dataset.company=k?k:"";u.dataset.accountNumber=g?g:"";_.each(v,function(t){query.removeClass(t,n.CHECKED_ICON_CLASS)});query.addClass(nt,n.CHECKED_ICON_CLASS);query.fireEvent(i,"change",{account:t});u.innerHTML=r.innerHTML;a();r.dataset.validateAddress&&!coned.utils.isOru()&&o.dataset.moduleStarted!=="true"&&new coned.components.ReportOutage(o)},a=function(){query.addClass(s,n.DISPLAY_NONE_CLASS);query.removeClass(h,n.CARROT_UP);e.setAttribute(n.ARIA_EXPANDED,"false")},vt=function(){query.removeClass(s,n.DISPLAY_NONE_CLASS);query.addClass(h,n.CARROT_UP);e.setAttribute(n.ARIA_EXPANDED,"true")},yt=function(){for(var r=!1,t=0;t<v.length;t++)if(query.hasClass(v[t],n.CHECKED_ICON_CLASS)){r=!0;break}r||(g=i.getElementsByClassName(n.DROPDOWN_ITEM)[0],nt=g.getElementsByClassName(n.CHECKED_ICON_SELECTOR)[0],nt.classList.add(n.CHECKED_ICON_CLASS))},pt=function(){if(r.dataset.accountType===n.ACCOUNT_TYPE_COMMERCIAL){var t=l.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];t.innerHTML=r.dataset.errorMsg;l.classList.remove(n.HIDDEN_CLASS);l.focus();b.disabled=!0}else l.classList.add(n.HIDDEN_CLASS),b.disabled=!1},ft=function(){var i=u.dataset.getAccountEndpoint,f=u.dataset.filterByCreateOutage?!0:!1,t;c.classList.add(n.HIDDEN_CLASS);t={ScId:u.dataset.scid,Maid:r.dataset.accountMaid,FiltertByAllowCreateOutage:f};t=JSON.stringify(t);coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_ACCOUNT_REPORT_OUTAGE,et,ot,t,w):query.postData(i,et,ot,t,!0,w)},et=function(n){p.disabled=!1;u.dataset.hasError="false";r.dataset.account=n.AccountNumber;r.dataset.street=n.ServiceAddress.Street1;r.dataset.city=n.ServiceAddress.City;r.dataset.state=n.ServiceAddress.State;r.dataset.zipcode=n.ServiceAddress.PostalCode;r.dataset.country=n.ServiceAddress.Country;r.dataset.address2=n.ServiceAddress.UnitNumber;r.dataset.mdac=n.MultiDwellingAccessCode?n.MultiDwellingAccessCode:"";r.dataset.validateAddress=!1;d()},ot=function(t){var i=c.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];p.disabled=!0;u.dataset.hasError="true";c.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t&&t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;d();c.focus()},wt=function(){e=i.getElementsByClassName(n.DROPDOWN_BUTTON)[0];s=i.getElementsByClassName(n.DROPDOWN_LIST)[0];f=i.getElementsByClassName(n.DROPDOWN_ITEM);u=i.getElementsByClassName(n.DROPDOWN_BUTTON_CONTAIN)[0];h=i.getElementsByClassName(n.DROPDOWN_CARROT)[0];v=i.getElementsByClassName(n.CHECKED_ICON_SELECTOR);c=i.getElementsByClassName(n.VALIDATED_ACCOUNT_ERROR)[0];p=document.getElementsByClassName(n.REPORT_OUTAGE_SUBMIT_BUTTON)[0];o=document.getElementsByClassName(n.REPORT_OUTAGE_FORM_CONTAINER)[0];tt=document.getElementsByClassName(n.ENERGY_AFFORDABLE_FORM)[0];l=i.getElementsByClassName(n.VALIDATED_ACCOUNT_ERROR)[0];b=document.getElementsByClassName(n.SUBMIT_BUTTON)[0];o&&(w=o.getElementsByClassName(n.REPORT_OUTAGE_FORM_LOADING)[0],i.classList.contains(n.REPORT_OUTAGE_DROPDOWN_UPDATE_ACCOUNT)&&(k=coned.utils.isOru()?u.dataset.accountMaid:u.dataset.account))},bt=function(){var t,u;if(yt(),f.length===0)h&&h.classList.add(n.HIDDEN_CLASS),e.classList.add(n.DROPDOWN_REMOVE_BUTTON);else if(coned.utils.addGeneralListeners(e,st),e.addEventListener("keydown",ht),_.each(f,function(t){coned.utils.addGeneralListeners(t,ut);t.addEventListener("keydown",ct);t.addEventListener("accountInContext",ut);t.setAttribute(n.ROLE,"option");t.setAttribute(n.TABINDEX,"-1");t.setAttribute(n.ARIA_SELECTED,"false");t.addEventListener("touchstart",function(){y=!1},coned.supportsPassive?{passive:!0}:!1);t.addEventListener("touchmove",function(){y=!0},coned.supportsPassive?{passive:!0}:!1)}),window.addEventListener("click",function(n){query.selectParentElement(i,n.target.classList[0])&&a()}),o&&i.classList.contains(n.REPORT_OUTAGE_DROPDOWN_UPDATE_ACCOUNT))for(t=0;f[t];t++)if(u="",u=coned.utils.isOru()?f[t].children[0].dataset.accountMaid:f[t].children[0].dataset.account,u===k){r=f[t].children[0];ft();break}},kt=function(){wt();bt();t=!0};kt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.AddressLookup=function(){var n={ZIP_CODE_PARAM:'"zipcode":',SCID_PARAM:'"ScId":',ZIP_CODE_CLASS:"js-autocomplete-zipcode",ZIP_CODE_ERROR_CLASS:"js-address-autocomplete-zipcode-service-error",STREET_ADDRESS_CLASS:"js-autocomplete-street-address",STREET_ADDRESS_SERVICE_ERROR:"js-autocomplete-street-address-service-error",APARTMENT_UNIT_CLASS:"js-autocomplete-apartment-unit",ADDRESS_SCID_NAME:"AddressScId",ADDRESS_SELECTED_CLASS:"js-address-autocomplete-selected",ADDRESS_SELECTED_DETAIL_CLASS:"js-address-selected-detail",ADDRESS_SELECTED_MASKED_ACCOUNT_NUMBER:"js-address-masked-account-number",SHOW_OLD_EXPERIENCE_CLASS:"js-show-old-experience",ADDRESS_INPUT_FORM:"js-address-input-form",ADDRESS_AUTOCOMPLETE_FORM:"js-address-autocomplete-form",SEE_MORE_OPTIONS_CLASS:"js-see-more-options",DEFAULT_OPTION_CLASS:"js-default-option",DEFAULT_OPTION_LINK_CLASS:"js-default-option-link",AUTOCOMPLETE_INPUT:"js-autocomplete-input",AUTOCOMPLETE_LIST_INPUT:"js-autocomplete-list-input",AUTOCOMPLETE_LIST_WRAPPER_CLASS:"js-autocomplete-list-wrapper",ZIPCODE_URL_PARAMENTER:"addressAutocompleteZipCode",DISABLED_CLASS:"coned-field--disabled",VALID_CLASS:"valid",FILLED_CLASS:"coned-input--filled",HIDDEN_CLASS:"hidden",VALIDATE_IGNORE:"js-validate-ignore",ERROR_MESSAGE_CLASS:"js-error-message",OLD_EXPERIENCE:"input",AUTOCOMPLETE_ITEM:"js-autocomplete-item",AUTOCOMPLETE_LIST_CLASS:"js-autocomplete-list",ADDRESS_LOOKUP_BUTTON_CLASS:"js-lookup-button",LI_TAG:"li",UL_TAG:"ul",FORM_LOADING:"js-form-loading",LIVE_CHAT_AVAILABLE_SELECTOR:"js-live-chat-available",LIVE_CHAT_BUTTON:"js-live-chat-cta",STOP_CHAT:"stop"},t=!1,i=function(i){var f,o,e,u,s,r,h,a,v,it,rt,y,ut,g,l,c,ft,p,w,b,ct=function(t){t.preventDefault();i.dataset.currentExperience=n.OLD_EXPERIENCE;h.classList.add(n.HIDDEN_CLASS);h.classList.add(n.VALIDATE_IGNORE);a.classList.remove(n.HIDDEN_CLASS);a.classList.remove(n.VALIDATE_IGNORE);ht(!0);query.fireEvent(a,"show")},et=function(n){if(!coned.utils.preventMovementError(n)){var i=$(f)[0].value,r=i.length==5?$(f).valid():!1,u=h.dataset.verifyZipCodeServiceUrl,t;r?w!==f.value&&(w=f.value,nt(),t={ScId:b,ZipCode:encodeURIComponent(f.value)},query.getData(u,lt,at,t,g)):(nt(),w=f.value)}},nt=function(){if(o.classList.add(n.HIDDEN_CLASS),e.disabled=!0,e.parentElement.classList.add(n.DISABLED_CLASS),query.fireEvent(e.parentElement,"resetInput"),u.disabled=!0,u.parentElement.classList.add(n.DISABLED_CLASS),query.fireEvent(u.parentElement,"resetInput"),k(),c){var t=c.getElementsByClassName(n.LIVE_CHAT_BUTTON)[0];coned.utils.triggerEvent(t,n.STOP_CHAT)}},tt=function(){if(u.disabled=!0,u.parentElement.classList.add(n.DISABLED_CLASS),u.dataset.unitsList="",query.fireEvent(u.parentElement,"resetInput"),k(),c){var t=c.getElementsByClassName(n.LIVE_CHAT_BUTTON)[0];coned.utils.triggerEvent(t,n.STOP_CHAT)}},k=function(){s.classList.add(n.HIDDEN_CLASS);u.parentElement.classList.remove(n.HIDDEN_CLASS);r.innerHTML="";r.dataset.addressLine1="";r.dataset.addressLine2="";r.dataset.customerAddress="";r.dataset.maid="";r.dataset.premiseNumber="";ht(!0);y.classList.add(n.HIDDEN_CLASS)},lt=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_VERIFY_ZIP_CODE,ot,function(){}):ot(n)},at=function(t){o.classList.remove(n.HIDDEN_CLASS);o.getElementsByClassName(n.ERROR_MESSAGE_CLASS)[0].innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;o.focus()},ot=function(t){t.isValid?(e.disabled=!1,e.parentElement.classList.remove(n.DISABLED_CLASS),e.parentElement.dataset.listServiceUrl=h.dataset.getStreetsServiceUrl,e.parentElement.dataset.params="{"+n.SCID_PARAM+'"'+b+'",'+n.ZIP_CODE_PARAM+'"'+f.value+'"}'):t.errorMsg&&(o.classList.remove(n.HIDDEN_CLASS),o.getElementsByClassName(n.ERROR_MESSAGE_CLASS)[0].innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE,query.fireEvent(f,"invalidZip"),o.focus())},vt=function(t){var i,r,o;coned.utils.preventMovementError(t)||(i=h.dataset.getUnitsServiceUrl,r={ScId:b,zipcode:encodeURIComponent(f.value),street:encodeURIComponent(e.value)},query.fireEvent(u.parentElement,"resetInput"),query.getData(i,yt,pt,r,g),u.disabled=!1,u.parentElement.classList.remove(n.DISABLED_CLASS),c&&(o=c.getElementsByClassName(n.LIVE_CHAT_BUTTON)[0],coned.utils.triggerEvent(o,n.STOP_CHAT)))},yt=function(n){coned.utils.isPatternLab()?f.value==="10001"?query.getData(coned.plConstants.GET_ADDRESS_NO_UNITS,d,function(){}):f.value==="10002"?query.getData(coned.plConstants.GET_ADDRESS_SINGLE_UNIT,d,function(){}):query.getData(coned.plConstants.GET_ADDRESS_UNIT_LIST,d,function(){}):d(n)},pt=function(t){var i=l.getElementsByClassName(n.ERROR_MESSAGE_CLASS)[0],r=l.getElementsByClassName(n.ERROR_MESSAGE_CLASS)[0].innerHTML;i.innerHTML=t.errorMsg?t.errorMsg:r;l.classList.remove(n.HIDDEN_CLASS);l.focus()},d=function(t){var c,f,o,h,i,l;typeof Event=="function"?l=new Event("checkAddress",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("checkAddress",!0,!0));r.innerHTML="";s.classList.add(n.HIDDEN_CLASS);u.value="";u.dataset.unitsList="";t.AddressInfoArray&&(c=Object.keys(t.AddressInfoArray),c.length>1?(u.parentElement.getElementsByClassName(n.AUTOCOMPLETE_LIST_INPUT)[0].value=c.join(","),u.dataset.unitsList=JSON.stringify(t.AddressInfoArray),u.parentElement.classList.remove(n.HIDDEN_CLASS),ft?query.fireEvent(u.parentElement,"reloadList"):ft=new coned.components.AutocompleteInput(u.parentElement)):c.length===1&&(f=document.createElement("span"),o=document.createElement("span"),h=document.createElement("span"),i=t.AddressInfoArray[c[0]],f.classList.add(n.ADDRESS_SELECTED_MASKED_ACCOUNT_NUMBER),o.innerHTML=i.AddressLine1,h.innerHTML=i.AddressLine2,r.dataset.addressLine1=i.AddressLine1,r.dataset.addressLine2=i.AddressLine2,r.dataset.customerAddress=i.AddressLine1+"<br>"+i.AddressLine2,r.dataset.maid=i.Maid,r.dataset.premiseNumber=i.ServiceAddress.PremiseNumber,r.dataset.serviceAddress=JSON.stringify(i.ServiceAddress),r.appendChild(f),r.appendChild(o),r.appendChild(h),u.parentElement.classList.add(n.HIDDEN_CLASS),u.dispatchEvent(l),p&&s.classList.remove(n.HIDDEN_CLASS)));t.AddressInfo&&(f=document.createElement("span"),o=document.createElement("span"),h=document.createElement("span"),f.classList.add(n.ADDRESS_SELECTED_MASKED_ACCOUNT_NUMBER),o.innerHTML=t.AddressInfo.AddressLine1,h.innerHTML=t.AddressInfo.AddressLine2,r.dataset.maid=t.AddressInfo.Maid,r.dataset.premiseNumber=i.ServiceAddress.PremiseNumber,r.dataset.addressLine1=t.AddressInfo.AddressLine1,r.dataset.addressLine2=t.AddressInfo.AddressLine2,r.dataset.customerAddress=t.AddressInfo.AddressLine1+"<br>"+t.AddressInfo.AddressLine2,r.appendChild(f),r.appendChild(o),r.appendChild(h),u.parentElement.classList.add(n.HIDDEN_CLASS),u.dispatchEvent(l),p&&s.classList.remove(n.HIDDEN_CLASS));query.fireEvent(e,"selectedOptionEnd")},st=function(t){var i=query.selectParentElement(t.target.getElementsByClassName(n.DEFAULT_OPTION_LINK_CLASS)[0],n.AUTOCOMPLETE_ITEM);i&&coned.utils.addGeneralListeners(i,function(t){var u=t.currentTarget,r,i;r=query.selectParentElement(u,n.AUTOCOMPLETE_LIST_WRAPPER_CLASS);i=r.parentElement.getElementsByClassName(n.AUTOCOMPLETE_INPUT)[0];i.setAttribute(n.ARIA_EXPANDED,"false");r.classList.add(n.HIDDEN_CLASS);i===e&&tt();i.value="";y.classList.remove(n.HIDDEN_CLASS);y.focus()})},wt=function(){var i,f,e,t;r.innerHTML="";i=document.createElement("span");f=document.createElement("span");e=document.createElement("span");t=JSON.parse(u.dataset.unitsList)[u.value];e.classList.add(n.ADDRESS_SELECTED_MASKED_ACCOUNT_NUMBER);i.innerHTML=t.AddressLine1;f.innerHTML=t.AddressLine2;r.dataset.addressLine1=t.AddressLine1;r.dataset.addressLine2=t.AddressLine2;r.dataset.customerAddress=t.AddressLine1+"<br>"+t.AddressLine2;r.dataset.maid=t.Maid;r.dataset.premiseNumber=t.ServiceAddress.PremiseNumber;r.appendChild(e);r.appendChild(i);r.appendChild(f);p&&s.classList.remove(n.HIDDEN_CLASS);query.fireEvent(u,"selectedOptionEnd")},ht=function(n){v&&(v.disabled=n?!0:!1)},bt=function(){g=document.getElementsByClassName(n.FORM_LOADING)[0];f=i.getElementsByClassName(n.ZIP_CODE_CLASS)[0];o=i.getElementsByClassName(n.ZIP_CODE_ERROR_CLASS)[0];e=i.getElementsByClassName(n.STREET_ADDRESS_CLASS)[0];l=i.getElementsByClassName(n.STREET_ADDRESS_SERVICE_ERROR)[0];u=i.getElementsByClassName(n.APARTMENT_UNIT_CLASS)[0];it=e.parentElement.getElementsByClassName(n.AUTOCOMPLETE_LIST_WRAPPER_CLASS)[0];rt=u.parentElement.getElementsByClassName(n.AUTOCOMPLETE_LIST_WRAPPER_CLASS)[0];ut=i.getElementsByClassName(n.SHOW_OLD_EXPERIENCE_CLASS);y=i.getElementsByClassName(n.SEE_MORE_OPTIONS_CLASS)[0];a=i.getElementsByClassName(n.ADDRESS_INPUT_FORM)[0];h=i.getElementsByClassName(n.ADDRESS_AUTOCOMPLETE_FORM)[0];s=i.getElementsByClassName(n.ADDRESS_SELECTED_CLASS)[0];r=s.getElementsByClassName(n.ADDRESS_SELECTED_DETAIL_CLASS)[0];v=i.getElementsByClassName(n.ADDRESS_LOOKUP_BUTTON_CLASS)[0];c=document.getElementsByClassName(n.LIVE_CHAT_AVAILABLE_SELECTOR)[0];b=query.getFormInputValue(h,n.ADDRESS_SCID_NAME);w="";p=i.dataset.showSelectedAddress?i.dataset.showSelectedAddress==="true"?!0:!1:!0},kt=function(){var t=coned.utils.getUrlParameterValue(n.ZIPCODE_URL_PARAMENTER);f.addEventListener("input",et);f.addEventListener("cleanUp",nt);e.addEventListener("selectedOption",vt);e.addEventListener("inputChange",tt);e.addEventListener("input",function(){this.value===""&&tt()});it.addEventListener("change",st);rt.addEventListener("change",st);u.addEventListener("selectedOption",wt);u.addEventListener("inputChange",k);u.addEventListener("input",function(){this.value===""&&k()});_.each(ut,function(n){coned.utils.addGeneralListeners(n,ct)});(f.value!==""||t!==!1)&&(f.value=t,f.classList.add(n.VALID_CLASS),f.classList.add(n.FILLED_CLASS),et())},dt=function(){bt();kt();t=!0};dt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.AlertModule=function(){var n={ALERT_COOKIE_VARIABLE_NAME:"alertId",ALERT_CLOSE_BUTTON:"js-close-alert",ALERT_CLOSED_EVENT:"alert-closed",ALERT_IN_PAGE_CUSTOMER_MESSAGING:"js-in-page-customer-messaging",IN_PAGE_CUSTOMER_MESSAGING_DESCRIPTION:"js-in-page-customer-messaging-description",IN_PAGE_CUSTOMER_MESSAGING_COOKIE_VARIABLE_NAME:"inPageCustomerMessagingId",HIDDEN_CLASS:"hidden"},t=!1,i=function(i){var o,s,h,e,c,u,f,r,l,a=function(){var t=c.children,n="";_.each(t,function(t){n+=" "+t.textContent.trim()});dataLayer.push({customerMessagingText:n})},y=function(n){if(n.preventDefault(),i.dataset.persistent=="non-persistent"){var t=i.dataset.expiry;query.setCookie(f,u,t)}v();r&&a()},v=function(){TweenMax.to(i,.2,{opacity:"0",height:"0",onComplete:w})},p=function(){query.removeClass(i,n.HIDDEN_CLASS)},w=function(){i.remove();r||(b(),coned.utils.triggerEvent(document,n.ALERT_CLOSED_EVENT))},b=function(){var t=parseInt(window.getComputedStyle(s,null).getPropertyValue("height"),10),n;l&&(n=parseInt(window.getComputedStyle(e,null).getPropertyValue("height"),10),n>0&&(t-=n));TweenMax.to(h,.2,{paddingTop:t})},k=function(){o=i.getElementsByClassName(n.ALERT_CLOSE_BUTTON)[0];s=document.getElementsByClassName(coned.constants.HEADER_WRAPPER_CLASS)[0];h=document.getElementsByClassName(coned.constants.PAGE_CONTENT_CLASS)[0];e=document.getElementsByClassName(coned.constants.MODAL_SELECTOR_CLASS)[0];c=i.getElementsByClassName(n.IN_PAGE_CUSTOMER_MESSAGING_DESCRIPTION)[0];u=i.dataset.alertId;r=query.hasClass(i,n.ALERT_IN_PAGE_CUSTOMER_MESSAGING);f=r?n.IN_PAGE_CUSTOMER_MESSAGING_COOKIE_VARIABLE_NAME+u:n.ALERT_COOKIE_VARIABLE_NAME+u;l=e},d=function(){coned.utils.addGeneralListeners(o,y);r?query.getCookie(f)===null&&(p(),a()):query.getCookie(f)!=null&&v()},g=function(){k();d();t=!0};g()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.AnchorLink=function(){var n={ANCHOR_BUTTON:"js-anchor-button",ANCHOR_ACTIVE_CLASS:"anchor-link__nav-item--active",ANCHOR_SECTION:"js-section",SELECT_ELEMENT:"js-coned-select",SELECT_TEXT:"js-select-text",HEADER_WRAPPER:"header-wrapper",ARTICLE_HEADER:"article-header",LABEL_CLASS:"js-coned-select-label",ANCHOR_WRAPPER_SELECTOR:"js-anchors-wrappers",ANCHOR_WRAPPER_CLASS:"anchors-wrappers",ALERTS_CONTAINER:"js-alerts-container",ALERT_CLOSE_BUTTON:"js-close-alert",MODAL_SELECTOR_WRAPPER:"js-modal-selector-wrapper",MODAL_OPEN_BUTTON:"js-open-modal",MODAL_CLOSE_BUTTON:"js-close-modal",BUTTON_CONTAINER_SELECTOR:"js-anchor-link_list",SELECT_CONTAINER_SELECTOR:"js-anchor-link-select",HIDE_CLASS:"anchor-link--hidden",HIDE_CLASS_DISPLAY:"anchor-link--hidden-display",ROLE:"role",ROLE_TAB:"tab",ROLE_TABLIST:"tablist",ARIA_SELECTED:"aria-selected",TAB_INDEX:"tabindex",CLICK_EVENT:"click"},t=!1,i=function(i){var l,r,h,y,f,p,a,w,b,k,v,u,e,o,d,c,s,g=function(t){t.preventDefault();var u=t.type===n.CLICK_EVENT,e=query.selectParentElement(t.target,n.ANCHOR_BUTTON),o=u?e.dataset.value:t.target.options[t.target.selectedIndex].value,r=document.getElementById(o),s=i.style.position=="fixed"?25:coned.utils.isDesktop()?50:25,h=f.offsetHeight+i.offsetHeight+s;coned.utils.scrollTo(r.offsetTop-h,1e3);r.focus()},rt=function(){var n=document.documentElement.scrollTop||document.body.scrollTop,t=f.offsetHeight,r=i.offsetHeight;ut(n,t,r);ft(n,t,r)},ut=function(t,r,u){var o=i.offsetTop-t,h=t,c=o-r,e=coned.utils.isDesktop()?-35:-10,l=y.offsetHeight+u+e-10;c<=0&&!s?(i.style.position="fixed",i.style.top=f.offsetHeight+"px",i.style.marginTop=0,a.classList.toggle(n.ANCHOR_WRAPPER_CLASS),s=!0):s&&h<=l&&(i.style.position="relative",i.style.top=0,i.style.marginTop=e+"px",a.classList.toggle(n.ANCHOR_WRAPPER_CLASS),s=!1)},ft=function(n,t,u){var c=35,e={},f,s;_.each(d,function(i){e[i.id]=i.offsetTop-t-u-c;e[i.id]<=n&&(f=i.id)});f&&(s=i.querySelector("button[data-value*="+f+"]"),it(o),tt(s),r.value=f,h.innerHTML=r.options[r.selectedIndex].text)},et=function(n){n.preventDefault();var t=i.style.top,r=parseInt(t,10);i.style.top=r-p.offsetHeight+"px"},ot=function(n){if(n.preventDefault(),coned.utils.isDesktop()){var r=i.style.top,t=parseInt(r,10);i.style.top=b.style.height>"0px"?t-125+"px":t+125+"px"}},st=function(n){if(n.preventDefault(),coned.utils.isDesktop()){var t=i.style.top,r=parseInt(t,10);i.style.top=r-125+"px"}},nt=function(){query.removeClass(u,n.HIDE_CLASS_DISPLAY);query.removeClass(e,n.HIDE_CLASS_DISPLAY);u.offsetWidth>c?(query.removeClass(u,n.HIDE_CLASS),query.addClass(e,n.HIDE_CLASS),query.addClass(e,n.HIDE_CLASS_DISPLAY)):(query.addClass(u,n.HIDE_CLASS),query.addClass(u,n.HIDE_CLASS_DISPLAY),query.removeClass(e,n.HIDE_CLASS))},tt=function(t){t.setAttribute(n.ARIA_SELECTED,!0);t.setAttribute(n.TAB_INDEX,0);query.addClass(t,n.ANCHOR_ACTIVE_CLASS);o=t},it=function(t){t.setAttribute(n.ARIA_SELECTED,!1);t.setAttribute(n.TAB_INDEX,-1);query.removeClass(t,n.ANCHOR_ACTIVE_CLASS)},ht=function(n,t){n.stopPropagation();switch(n.keyCode){case coned.constants.KEY_CODE.HOME:n.preventDefault();t[0].focus();break;case coned.constants.KEY_CODE.END:n.preventDefault();t[t.length-1].focus();break;case coned.constants.KEY_CODE.RIGHT:case coned.constants.KEY_CODE.LEFT:case coned.constants.KEY_CODE.UP:case coned.constants.KEY_CODE.DOWN:n.preventDefault();ct(n,t)}},ct=function(n,t){var i=n.keyCode,f=Array.prototype.slice.call(t),r=f.indexOf(n.target),u;u=i===coned.constants.KEY_CODE.RIGHT||i===coned.constants.KEY_CODE.DOWN?at(r,t):lt(r,t);u.focus()},lt=function(n,t){return t[n-1]||t[t.length-1]},at=function(n,t){return t[n+1]||t[0]},vt=function(){l=i.getElementsByClassName(n.ANCHOR_BUTTON);r=i.getElementsByClassName(n.SELECT_ELEMENT)[0];h=i.getElementsByClassName(n.SELECT_TEXT)[0];a=document.getElementsByClassName(n.ANCHOR_WRAPPER_SELECTOR)[0];y=document.getElementsByClassName(n.ARTICLE_HEADER)[0];f=document.getElementsByClassName(n.HEADER_WRAPPER)[0];b=document.getElementsByClassName(n.MODAL_SELECTOR_WRAPPER)[0];v=document.getElementsByClassName(n.MODAL_OPEN_BUTTON)[0];k=document.getElementsByClassName(n.MODAL_CLOSE_BUTTON)[0];p=document.getElementsByClassName(n.ALERTS_CONTAINER)[0];u=i.getElementsByClassName(n.BUTTON_CONTAINER_SELECTOR)[0];e=i.getElementsByClassName(n.SELECT_CONTAINER_SELECTOR)[0];w=document.getElementsByClassName(n.ALERT_CLOSE_BUTTON);o=i.getElementsByClassName(n.ANCHOR_BUTTON)[0];d=document.getElementsByClassName(n.ANCHOR_SECTION);c=0;s=!1},yt=function(){coned.utils.onScrollThrottler(rt,20);u.setAttribute(n.ROLE,n.ROLE_TABLIST);_.each(l,function(t){coned.utils.addGeneralListeners(t,g);t.addEventListener("keydown",function(n){ht(n,l)});t.setAttribute(n.ROLE,n.ROLE_TAB);it(t);c+=t.offsetWidth});o&&tt(o);c+=40;_.each(w,function(n){coned.utils.addGeneralListeners(n,et)});r.addEventListener("change",g);v!=undefined&&(coned.utils.addGeneralListeners(v,ot),coned.utils.addGeneralListeners(k,st));window.addEventListener("resize",function(){nt();i.style.position=="fixed"&&(i.style.top=f.offsetHeight+"px")});nt();h&&r.length&&r.options[1]&&(h.innerHTML=r.options[1].text)},pt=function(){vt();yt();t=!0};pt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.Authentication=function(){var n={AUTH_SELECT:"js-coned-select",AUTH_OPTION:" js-auth-option",FORM_ITEM_VALIDATE:"js-item-validate",FORM_ITEM_IGNORE:"js-validate-ignore",INPUT:"js-coned-input",NOT_INPUT:"js-no-input",INPUT_FILLED:"coned-input--filled",INPUT_ACTIVE:"js-identification-active",INPUT_ERROR_CLASS:"coned-input-message--error",SSN_INPUT:"js-social-number",SOCIAL_SECURITY_NUMBER_LABEL:"social security number",DOB_INPUT:"js-birth-date",FORM:"js-start-service-form",START_SERVICE:"js-start-service",START_DATE:"js-start-date",START_DATE_STEP:"js-start-date-step",VALIDATE_BUTTON:"js-validate-identity-button",HIDDEN:"hidden",VALID:"valid",CHANGE_ADDRESS_EVENT:"change-address",FORM_DATE_SCID:"DateScId",FORM_FIRST_NAME_NAME:"firstName",FORM_LAST_NAME_NAME:"lastName",FORM_DOB_NAME:"identityDateOfBirth",FORM_SSN_NAME:"socialNumber",FORM_ZIPCODE_NAME:"startServiceZipCode",FORM_DRIVER_LICENSE_NAME:"driverLicense",FORM_DRIVER_LICENSE_ISSUED_STATE_NAME:"driverLicenseIssuedState",FORM_ALIEN_ID_NAME:"alienId",FORM_PUBLIC_ASSISTANCE_NAME:"publicAsistanceId",FORM_OVER_62_RADIO:"age62OverAlone",FORM_RADIO_NO_ANSWER:"No",FORM_RADIO_STATE_NAME:"state",FORM_RADIO_LOCATION_NAME:"location",FORM_RADIO_PLACE_NAME:"place",NO_IDENTIFICATION:"js-no-identification",FORM_PASSPORT_NAME:"startPassport",FORM_LOADING:"js-form-loading",CONFIRM_IDENTITY_BUTTON:"js-identity-button",VALIDATE_IDENTITY_ERROR:"js-validate-identity-service-error",VALIDATE_IDENTITY_ERROR_MESSAGE:"js-error-message",VALIDATE_IDENTITY_INPUT:"js-valid-identity-input",IS_FORM_BLOCKED:"js-form-blocked",CURRENT_STEP:"js-current-step",AUTH_INPUT:"js-auth-input",IS_ORU:"js-oru-authentication",IS_COMMERCIAL:"js-commercial-authentication",SERVICE_IDENTITY_STEP_SELECTOR:"js-service-identity-step",SERVICE_DATE_STEP_SELECTOR:"js-verify-date-step",START_DATE_FIELD_NAME:"startServiceDate",TAX_ID_FIELD_NAME:"taxId",AUTH_TYPE_COMMERCIAL_FIELD_NAME:"autTypeCommercial",BUSINESS_NAME_FIELD_NAME:"businessName",FIRST_NAME_FIELD_NAME:"firstNameCommercial",LAST_NAME_FIELD_NAME:"lastNameCommercial",SELECT_BUSINESS_VALUE:"js-business-name",SELECT_FULLNAME_VALUE:"js-full-name",CONED_FORM_FIELD_CONTAINER:"coned-form__field-container",DROPDOWN_LABEL_SELECTOR:"js-coned-select-label",ACTIVE_DROPDOWN_CLASS:"coned-select--active",NO_ID_DEPOSIT:"js-deposit",NO_ID_ZERO_DEPOSIT:"js-zero-deposit",WATERFALL_QUESTIONNAIRE:".js-waterfall-questions",WATERFALL_CONTINUE_BUTTON:".js-waterfall-questions-submit",FORM_WATERFALL_RADIOGROUPS:".js-waterfall-radiogroup",CONED_RADIO_SELECTOR:"js-coned-radio",VALIDATE_IDENTITY_ERROR_TAG:"error.validate.id",VALIDATE_IDENTITY_SUCCESS_TAG:"validate.id.success",VALIDATE_IDENTITY_INPUT_NAME:"autType"},t=!1,i=function(i){var l,tt,a,f,r,it,u,h,y,e,b,p,rt,k,ft,c,d,o,w,g,s,nt,v,et,lt=function(t){if(query.hasClass(t,n.AUTH_SELECT)){var i=t.parentElement.getElementsByClassName(n.DROPDOWN_LABEL_SELECTOR)[0];i.removeAttribute("style");t.removeAttribute("style");t.selectedIndex=0;t.classList.remove(n.ACTIVE_DROPDOWN_CLASS)}else t.value=""},at=function(t){var o=t?t.target:1,h=o[o.selectedIndex].value,c=i.getElementsByClassName(h),l=i.classList.contains(n.IS_COMMERCIAL);s=h==n.NO_IDENTIFICATION;e=document.getElementsByClassName(n.CURRENT_STEP)[0];_.each(tt,function(t){var i=t.querySelector("."+[n.INPUT,n.AUTH_SELECT,n.NO_IDENTIFICATION].join(", ."));t.classList.contains(n.NOT_INPUT)||(t.classList.add(n.HIDDEN),lt(i),i.classList.add(n.FORM_ITEM_IGNORE),i.classList.remove(n.INPUT_FILLED),i.classList.remove(n.INPUT_ACTIVE),i.classList.remove(n.INPUT_ERROR_CLASS),i.classList.remove(n.FORM_ITEM_VALIDATE));t.style.display="none"});_.each(c,function(t){var i=query.selectParentElement(t,n.CONED_FORM_FIELD_CONTAINER);i.classList.remove(n.HIDDEN);t.classList.remove(n.INPUT_ERROR_CLASS);i.classList.contains(n.NOT_INPUT)||(t.classList.add(n.FORM_ITEM_VALIDATE),t.classList.remove(n.FORM_ITEM_IGNORE),t.classList.add(n.INPUT_ACTIVE));i.style.display="block"});e.classList.add(n.IS_FORM_BLOCKED);u.disabled=!0;u.dataset.validIdentity="";!f||s||l||(f.classList.remove(n.HIDDEN),f.parentElement.classList.remove(n.HIDDEN));s&&(f.classList.add(n.HIDDEN),f.parentElement.classList.add(n.HIDDEN),st(),$(i).validate().checkForm()&&$(r).valid())},ot=function(){if(p.style.display!=="none"&&s)if($(r).validate().checkForm()){u.disabled=!1;h.classList.add(n.HIDDEN);e.classList.remove(n.IS_FORM_BLOCKED);var t=rt.dataset.zeroDeposit==="true"?!0:!1;v&&t&&!nt&&(u.disabled=!0,e.classList.add(n.IS_FORM_BLOCKED))}else u.disabled=!0,e.classList.add(n.IS_FORM_BLOCKED)},st=function(){if(s&&a.classList.contains(n.VALID)){var h=query.getFormInputValue(r,n.FORM_DOB_NAME),t=r.getElementsByClassName(n.NO_IDENTIFICATION)[0],c=rt.dataset.zeroDeposit==="true"?!0:!1,i=new Date(h),l=i.getDate(),y=i.getMonth(),p=i.getFullYear(),f=new Date(p+62,y,l),o=r.querySelectorAll('[name="'+n.FORM_OVER_62_RADIO+'"]'),u=query.selectParentElement(document.getElementsByClassName(n.NO_IDENTIFICATION)[0],n.CONED_FORM_FIELD_CONTAINER);nt=f<=new Date?!0:!1;f<=new Date?(t.classList.add(n.HIDDEN),u.classList.remove(n.HIDDEN),e.classList.remove(n.IS_FORM_BLOCKED),v&&(_.each(o,function(t){t.parentNode.parentNode.classList.remove("coned-form__field-disabled");t.value===n.FORM_RADIO_NO_ANSWER&&(t.checked=!1)}),k.classList.add(n.HIDDEN))):v?c?(t.classList.add(n.HIDDEN),u.classList.add(n.HIDDEN),e.classList.add(n.IS_FORM_BLOCKED),k.classList.remove(n.HIDDEN)):(t.classList.remove(n.HIDDEN),u.classList.remove(n.HIDDEN),k.classList.add(n.HIDDEN),_.each(o,function(t){t.parentNode.parentNode.classList.add("coned-form__field-disabled");t.value===n.FORM_RADIO_NO_ANSWER&&(t.checked=!0)})):t.classList.remove(n.HIDDEN)}},vt=function(){l[0].value=n.NO_IDENTIFICATION;l[0].dispatchEvent(new Event("change"));l[0].disabled=!0;p.dispatchEvent(new Event("change"))},yt=function(){var r=query.getFormInputValue(o,n.FORM_RADIO_STATE_NAME),u=query.getFormInputValue(o,n.FORM_RADIO_LOCATION_NAME),f=query.getFormInputValue(o,n.FORM_RADIO_PLACE_NAME),e=[r,u,f],s=i.dataset.validateIdentityService,t={answers:e};t=JSON.stringify(t);query.postData(s,ht,vt,t,!0,it)},pt=function(){o.classList.add(n.HIDDEN);d.parentElement.classList.remove(n.HIDDEN);c.parentElement.classList.remove(n.HIDDEN)},wt=function(){o.classList.remove(n.HIDDEN);d.parentElement.classList.add(n.HIDDEN);c.parentElement.classList.add(n.HIDDEN);r.focus();window.scrollTo(0,0)},bt=function(t){var f,u,e;if(t.preventDefault(),!$(r).valid()){coned.utils.focusFirstFormInputField(r,n.INPUT_ERROR_CLASS);return}f=i.dataset.validateIdentityService;u=v?{ScId:query.getFormInputValue(r,n.FORM_DATE_SCID),FirstName:query.getFormInputValue(r,n.FORM_FIRST_NAME_NAME),LastName:query.getFormInputValue(r,n.FORM_LAST_NAME_NAME),DateOfBirth:query.getFormInputValue(r,n.FORM_DOB_NAME),SSN:query.getFormInputValue(i,n.FORM_SSN_NAME).replace(/-/g,""),ServiceAddress:g,Street:query.getFormInputValue(r,n.FORM_DOB_NAME),Zip:query.getFormInputValue(r,n.FORM_DOB_NAME),IsNoIdentification:s}:{ScId:query.getFormInputValue(r,n.FORM_DATE_SCID),FirstName:query.getFormInputValue(r,n.FORM_FIRST_NAME_NAME),LastName:query.getFormInputValue(r,n.FORM_LAST_NAME_NAME),DateOfBirth:query.getFormInputValue(r,n.FORM_DOB_NAME),SSN:query.getFormInputValue(i,n.FORM_SSN_NAME).replace(/-/g,""),DriversLicense:query.getFormInputValue(i,n.FORM_DRIVER_LICENSE_NAME),DriversLicenseIssuingState:query.getFormInputValue(i,n.FORM_DRIVER_LICENSE_ISSUED_STATE_NAME),AlienID:query.getFormInputValue(i,n.FORM_ALIEN_ID_NAME),PublicAssistance:query.getFormInputValue(i,n.FORM_PUBLIC_ASSISTANCE_NAME),PassportNumber:query.getFormInputValue(i,n.FORM_PASSPORT_NAME),ServiceAddress:g,IsNoIdentification:s};e=u.SSN;u=JSON.stringify(u);query.postData(f,ht,function(n){kt(n,e)},u,!0,it)},ht=function(){f.classList.add(n.HIDDEN);f.parentElement.classList.add(n.HIDDEN);ut(n.VALIDATE_IDENTITY_SUCCESS_TAG);h.classList.add(n.HIDDEN);e.classList.remove(n.IS_FORM_BLOCKED);u.dataset.validIdentity=n.VALID;u.disabled=!1},kt=function(t,i){t.waterfallStep&&!v&&i?wt():(u.dataset.validIdentity="",u.disabled=!0,h.classList.remove(n.HIDDEN),e.classList.add(n.IS_FORM_BLOCKED),y.textContent=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE,ut(n.VALIDATE_IDENTITY_ERROR_TAG),h.focus())},ut=function(t){dataLayer.push({event:t,authenticationType:query.getFormInputText(r,n.VALIDATE_IDENTITY_INPUT_NAME).toLowerCase()})},dt=function(n){g=n.detail?{City:n.detail.City,State:n.detail.State,PostalCode:n.detail.PostalCode,PremiseNumber:n.detail.PremiseNumber,StreetAddress:n.detail.StreetAddress,UnitNumber:n.detail.UnitNumber}:null},ct=function(){var t=i.classList.contains(n.IS_COMMERCIAL);e=document.getElementsByClassName(n.CURRENT_STEP)[0];e.classList.add(n.IS_FORM_BLOCKED);u.disabled=!0;u.dataset.validIdentity="";l[0].options[l[0].selectedIndex].index>0&&f&&!s&&!t&&(f.classList.remove(n.HIDDEN),f.parentElement.classList.remove(n.HIDDEN));t&&ni()},gt=function(){var n=o.querySelectorAll('input[type="radio"]:checked');w.disabled=!(n.length===et)},ni=function(){var i=query.getFormInputValue(d,n.START_DATE_FIELD_NAME),r=query.getFormInputValue(c,n.TAX_ID_FIELD_NAME),t=query.getFormInputValue(c,n.AUTH_TYPE_COMMERCIAL_FIELD_NAME),f=query.getFormInputValue(c,n.BUSINESS_NAME_FIELD_NAME),o=query.getFormInputValue(c,n.FIRST_NAME_FIELD_NAME),s=query.getFormInputValue(c,n.LAST_NAME_FIELD_NAME),h=i&&i!=="",l=r&&r!=="",a=f&&f!=="",v=o&&o!=="",y=s&&s!=="";t&&t===n.SELECT_BUSINESS_VALUE?h&&l&&a&&(e.classList.remove(n.IS_FORM_BLOCKED),u.disabled=!1,u.dataset.validIdentity=n.VALID):t&&t===n.SELECT_FULLNAME_VALUE&&h&&l&&v&&y&&(e.classList.remove(n.IS_FORM_BLOCKED),u.disabled=!1,u.dataset.validIdentity=n.VALID)},ti=function(){d=document.getElementsByClassName(n.SERVICE_DATE_STEP_SELECTOR)[0];c=document.getElementsByClassName(n.SERVICE_IDENTITY_STEP_SELECTOR)[0];p=document.getElementsByClassName(n.START_DATE_STEP)[0];tt=i.getElementsByClassName(n.AUTH_OPTION);var t=_.reduce([].slice.call(tt),function(t,i){return[].slice.call(i.getElementsByClassName(n.AUTH_SELECT)).concat(t)},[]);l=_.difference(i.getElementsByClassName(n.AUTH_SELECT),t);f=i.getElementsByClassName(n.VALIDATE_BUTTON);f&&(f=f[0]);r=document.getElementsByClassName(n.FORM)[0];it=r.getElementsByClassName(n.FORM_LOADING)[0];u=r.getElementsByClassName(n.CONFIRM_IDENTITY_BUTTON);u&&(u=u[0]);a=r.getElementsByClassName(n.DOB_INPUT);a&&(a=a[0]);rt=document.getElementsByClassName(n.START_SERVICE)[0];k=document.getElementsByClassName(n.NO_ID_ZERO_DEPOSIT)[0];b=r.getElementsByClassName(n.START_DATE);b&&(b=b[0]);h=i.getElementsByClassName(n.VALIDATE_IDENTITY_ERROR);h&&(h=h[0]);y=i.getElementsByClassName(n.VALIDATE_IDENTITY_ERROR_MESSAGE);y&&(y=y[0]);ft=i.getElementsByClassName(n.AUTH_INPUT);o=document.querySelector(n.WATERFALL_QUESTIONNAIRE);w=document.querySelector(n.WATERFALL_CONTINUE_BUTTON);v=query.hasClass(i,n.IS_ORU);s=!1;nt=!1;g=null;et=o&&o.querySelectorAll(n.FORM_WATERFALL_RADIOGROUPS).length},ii=function(){Array.prototype.forEach.call(l,function(n){n.addEventListener("change",at)});a&&a.addEventListener("keyup",st);f&&coned.utils.addGeneralListeners(f,bt);_.each(ft,function(n){n.addEventListener("input",ct);n.addEventListener("keyup",ct)});p.addEventListener("change",ot);p.addEventListener("keyup",ot);u&&coned.utils.addGeneralListeners(u,function(){!u.disabled&&s&&ut(n.VALIDATE_IDENTITY_SUCCESS_TAG)});i.addEventListener(n.CHANGE_ADDRESS_EVENT,dt);o&&coned.utils.addParentListener(o,["change"],n.CONED_RADIO_SELECTOR,gt);w&&(w.addEventListener("click",yt),w.Callback=pt)},ri=function(){ti();ii();t=!0};ri()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.AutocompleteInput=function(){var n={AUTOCOMPLETE_INPUT:"js-autocomplete-input",AUTOCOMPLETE_LIST_INPUT:"js-autocomplete-list-input",AUTOCOMPLETE_ANNOUNCER:"js-autocomplete-results-announcer",AUTOCOMPLETE_ITEM:"js-autocomplete-item",AUTOCOMPLETE_ITEM_LIST:"js-autocomplete-list",AUTOCOMPLETE_ITEM_LIST_WRAPPER:"js-autocomplete-list-wrapper",AUTOCOMPLETE_ITEM_CLASS:"coned-autocomplete__item",AUTOCOMPLETE_ITEM_HIGHLIGHT:"coned-autocomplete__item--highlight",AUTOCOMPLETE_ITEM_UNHIGHLIGHT:"coned-autocomplete__item--unhighlight",AUTOCOMPLETE_DEFAULT_OPTION_LINK:"js-default-option-link",ITEM_HOVER_CLASS:"coned-autocomplete__item--hover",ARIA_SELECTED:"aria-selected",ARIA_POSINSET:"aria-posinset",ARIA_EXPANDED:"aria-expanded",ARIA_ACTIVEDESCENDANT:"aria-activedescendant",ROLE_ATTRIBUTE:"role",ID_ATTRIBUTE:"id",AMOUNT_STRING_TEMPLATE:"@AMOUNT",SELECTION_STRING_TEMPLATE:"@SELECTION",OPTION_ROLE_ATTRIBUTE:"option",HIDDEN_CLASS:"hidden",ANNOUNCE_HOVER:"hover",ANNOUNCE_RESULTS:"results",ANNOUNCE_SELECTION:"selection",FORM_LOADING:"js-form-loading",VALID_CLASS:"valid",RIGHT:"right",ERROR_CLASS:"js-error-message",ERROR_WRAPPER_CLASS:"coned-field-error-wrapper",SUBSTRING:"substr",MAIN_CONTENT_CLASS:"js-page-content",START_SERVICE_FORM:"js-start-service-form",TRANSFER_SERVICE_FORM:"js-transfer-service-form",COMMA:","},t=!1,i=function(i){var r,y,w,u,e,ht,vt,h,b,yt,pt,wt,bt,nt,l,tt,f,c,s,d,it,a,rt,o,ut,kt,v,g,ct=function(t){var o,u,f,s,h;i.dataset.listServiceUrl&&i.dataset.listServiceUrl!==""?(o=i.dataset.minInputLength,u=i.dataset.waitInputTime,g=r.value,r.value===""?(e.classList.add(n.HIDDEN_CLASS),query.fireEvent(i,"resetInput")):o?r.value.length>parseInt(o)&&(clearTimeout(bt),bt=setTimeout(dt,u&&parseInt(u)>0?u:0)):dt()):y&&(y.value!==""?(s=y.dataset.divider?y.dataset.divider:n.COMMA,h=y.value.split(s),f={AutocompleteArray:h},k(f,t)):(f={AutocompleteArray:[]},k(f,t),e.classList.add(n.HIDDEN_CLASS)))},dt=function(){var n={input:encodeURIComponent(r.value)},t=JSON.parse(i.dataset.params);query.fireEvent(r,"inputChange");n=Object.assign(n,t);query.getData(i.dataset.listServiceUrl,ii,ri,n,vt)},ii=function(n){coned.utils.isPatternLab()?i.dataset.listServiceResponse==="street"?i.parentElement.parentElement.getElementsByClassName("js-autocomplete-zipcode")[0].value==="10003"?query.getData(coned.plConstants.GET_STREET_ADDRESS_NO_RESULTS,k,function(){}):query.getData(coned.plConstants.GET_STREET_ADDRESS_LIST,k,function(){}):query.getData(coned.plConstants.GET_EMAIL_DOMAIN_LIST,k,function(){}):k(n)},ri=function(t){var u=i.parentElement.getElementsByClassName(r.parentElement.dataset.errorClass)[0],f=u.getElementsByClassName(n.ERROR_CLASS);f.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;u.classList.remove(n.HIDDEN_CLASS);query.fireEvent(i,"resetInput")},k=function(t,f){if(rt=_.find(u.children,function(n){return a&&a&&n.dataset.actualValue.includes(a)}),d=_.find(u.children,function(n){return s&&s!==""&&n.dataset.actualValue.includes(s)}),v=t.AutocompleteArray,r.value!==""&&v.length>0&&st(null,r.value),r.value===""&&i.dataset.listInitialLoad==="true"&&(st(null,r.value),e.classList.add(n.HIDDEN_CLASS)),u.innerHTML===""&&v.length<1&&(l=r.value,query.fireEvent(i,"resetInput"),a&&a!==""&&!rt&&(r.value=l,lt(),s&&s!==""&&!d&&ft())),f&&f.type==="reloadList"||(r.addEventListener("keyup",st),r.addEventListener("keydown",ei),r.addEventListener("focus",fi),r.addEventListener("blur",ui),u.addEventListener("touchstart",function(){nt=!1},coned.supportsPassive?{passive:!0}:!1),u.addEventListener("touchmove",function(){nt=!0},coned.supportsPassive?{passive:!0}:!1),v&&v.length>0&&(coned.utils.removeGeneralListeners(u,ot),coned.utils.addGeneralListeners(u,ot))),h){var o;coned.utils.removeGeneralListeners(h,ot);o=h.getElementsByClassName(n.AUTOCOMPLETE_DEFAULT_OPTION_LINK)[0];o&&coned.utils.removeGeneralListeners(o,ot)}},lt=function(){b=at(a);b.setAttribute("data-is-not-selectable","true");b&&(b.removeEventListener("mouseover",gt),b.removeEventListener("mouseout",ni));u.appendChild(b);e.classList.remove(n.HIDDEN_CLASS)},ft=function(){var t;h=s;it&&it!==""&&(t=document.createElement("button"),t.classList.add(n.AUTOCOMPLETE_DEFAULT_OPTION_LINK),t.setAttribute("type","button"),t.setAttribute("tabindex","-1"),t.innerText=it,h=s+" "+t.outerHTML);h=at(h);h.setAttribute("data-is-non-input","true");h.classList.add("js-autocomplete-default-option");u.appendChild(h);e.classList.remove(n.HIDDEN_CLASS);query.fireEvent(e,"change")},p=function(t){t=t||!1;var r;t===n.ANNOUNCE_RESULTS?r=w.dataset.announceResultsTemplate.replace(n.AMOUNT_STRING_TEMPLATE,u.children.length):t===n.ANNOUNCE_HOVER?r=f>=0&&f<u.children.length?h&&h.ariaSelected==="true"&&i.dataset.isMarketRates?w.dataset.announceDefaultOptionTemplate.replace(n.SELECTION_STRING_TEMPLATE,coned.utils.entitiesDecode(u.children[f].dataset.actualValue)):coned.utils.entitiesDecode(u.children[f].dataset.actualValue):w.dataset.announceNoSelectionTemplate:t===n.ANNOUNCE_SELECTION&&(r=w.dataset.announceSelectionTemplate.replace(n.SELECTION_STRING_TEMPLATE,coned.utils.entitiesDecode(u.children[f].dataset.actualValue)));w.innerHTML=r;setTimeout(function(){w.innerHTML=""},1e3)},ui=function(){setTimeout(function(){u.children.length&&!query.hasClass(e,n.HIDDEN_CLASS)&&(document.activeElement===document.body||document.activeElement===yt||document.activeElement===e||document.activeElement===pt||document.activeElement===wt||document.activeElement===u?(r.focus(),document.body.addEventListener("focus",et),coned.utils.addGeneralListeners(document.body,et)):e.classList.add(n.HIDDEN_CLASS))},300);u.children.length!==0||query.hasClass(e,n.HIDDEN_CLASS)||e.classList.add(n.HIDDEN_CLASS)},et=function(t){setTimeout(function(){if(t.target!==document.body){var r=t.target,u=query.selectParentElementByAttribute(r,"module",i.dataset.module);r===i||u&&u===i||(setTimeout(function(){e.classList.add(n.HIDDEN_CLASS)},300),document.body.removeEventListener("focus",et),coned.utils.removeGeneralListeners(document.body,et))}},300)},fi=function(){r.value===""&&v.length>1&&i.dataset.showAllItems==="true"&&st(null,"");(o.length>0||s)&&e.classList.remove(n.HIDDEN_CLASS)},ot=function(t){var i,s;if(nt){nt=!1;return}(i=query.hasClass(t.target,n.AUTOCOMPLETE_ITEM)?t.target:query.selectParentElement(t.target,n.AUTOCOMPLETE_ITEM),i)&&(i.dataset&&i.dataset.isNonInput==="true"||(query.hasClass(i,n.AUTOCOMPLETE_ITEM)||query.hasClass(i.parentElement,n.AUTOCOMPLETE_ITEM))&&(f=Array.from(u.children).indexOf(i),e.classList.add(n.HIDDEN_CLASS),i.setAttribute(n.ARIA_SELECTED,"false"),r.value=coned.utils.entitiesDecode(i.dataset.actualValue),l=r.value,p(n.ANNOUNCE_SELECTION),f=-1,ut&&(o=[],typeof Event=="function"?s=new Event("input",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("input",!0,!0)),r.dispatchEvent(s)),query.fireEvent(r,"selectedOption")))},gt=function(t){var i=t.currentTarget,e=u.querySelectorAll("."+n.ITEM_HOVER_CLASS);e.length&&_.each(e,function(t){t.classList.remove(n.ITEM_HOVER_CLASS);i.setAttribute(n.ARIA_SELECTED,"false")});f=Array.from(u.children).indexOf(i);i.dataset.isNonInput&&i.dataset.isNonInput==="true"||(r.value=coned.utils.entitiesDecode(i.dataset.actualValue),r.selectionStart=l.length,r.selectionEnd=r.value.length,r.scrollLeft=r.scrollWidth);i.classList.add(n.ITEM_HOVER_CLASS);i.setAttribute(n.ARIA_SELECTED,"true");r.setAttribute(n.ARIA_ACTIVEDESCENDANT,i.id);p(n.ANNOUNCE_HOVER)},ni=function(t){var i=t.currentTarget;f=-1;r.value=l;i.classList.remove(n.ITEM_HOVER_CLASS);i.setAttribute(n.ARIA_SELECTED,"false");r.removeAttribute(i.id);p(n.ANNOUNCE_HOVER)},ei=function(t){var i=t.keyCode,r=i===coned.constants.KEY_CODE.ENTER||i===coned.constants.KEY_CODE.TAB;r&&!query.hasClass(e,n.HIDDEN_CLASS)&&o.length&&f>-1&&t.preventDefault()},st=function(t,h){var it=!0,b,w,ot,nt,k,et;if(t){if(b=t.keyCode,w=u.children[f],t.preventDefault(),t.stopImmediatePropagation(),it=b>47&&b<58||b>64&&b<91||b>95&&b<112||b>185&&b<193||b>218&&b<223,it||b===coned.constants.KEY_CODE.BACKSPACE||b===coned.constants.KEY_CODE.DELETE)ot=u.querySelectorAll('[aria-selected="true"]'),_.each(ot,function(t){t.setAttribute(n.ARIA_SELECTED,"false")}),l=r.value,f=-1;else if((r.value===""||!o.length||query.hasClass(e,n.HIDDEN_CLASS))&&(b===coned.constants.KEY_CODE.TAB||b===coned.constants.KEY_CODE.SHIFT))return;if(u.children.length&&!query.hasClass(e,n.HIDDEN_CLASS)){if(b===coned.constants.KEY_CODE.DOWN){f<u.children.length-1&&(f>-1&&(w.classList.remove(n.ITEM_HOVER_CLASS),w.setAttribute(n.ARIA_SELECTED,"false")),w=u.children[++f],w.dataset.isNotSelectable==="true"&&f+1<u.children.length&&(w=u.children[++f]),w.dataset&&w.dataset.isNonInput==="true"||(r.value=coned.utils.entitiesDecode(w.dataset.actualValue),r.selectionStart=l.length,r.selectionEnd=r.value.length,r.scrollLeft=r.scrollWidth),w.classList.add(n.ITEM_HOVER_CLASS),w.setAttribute(n.ARIA_SELECTED,"true"),r.setAttribute(n.ARIA_ACTIVEDESCENDANT,w.id),p(n.ANNOUNCE_HOVER),w.offsetTop+w.offsetHeight>u.offsetHeight+u.scrollTop&&(u.scrollTop+=w.offsetHeight));return}if(b===coned.constants.KEY_CODE.UP){f>0&&u.children[0].dataset.isNotSelectable!=="true"?(w.classList.remove(n.ITEM_HOVER_CLASS),w.setAttribute(n.ARIA_SELECTED,"false"),w=u.children[--f],w.dataset&&w.dataset.isNonInput==="true"||(r.value=coned.utils.entitiesDecode(w.dataset.actualValue),r.selectionStart=l.length,r.selectionEnd=r.value.length,r.scrollLeft=r.scrollWidth),w.classList.add(n.ITEM_HOVER_CLASS),w.setAttribute(n.ARIA_SELECTED,"true"),r.setAttribute(n.ARIA_ACTIVEDESCENDANT,w.id),p(n.ANNOUNCE_HOVER),w.offsetTop<u.scrollTop&&(u.scrollTop-=w.offsetHeight)):(f<=0||u.children[0].dataset.isNotSelectable==="true")&&((f==0||u.children[0].dataset.isNotSelectable==="true")&&w.setAttribute(n.ARIA_SELECTED,"false"),r.value=l,o=[],f=-1,e.classList.add(n.HIDDEN_CLASS),r.removeAttribute(n.ARIA_ACTIVEDESCENDANT),p(n.ANNOUNCE_RESULTS),r.selectionStart=r.value.length,r.selectionEnd=r.value.length);return}if(f>=0&&(b===coned.constants.KEY_CODE.ENTER||b===coned.constants.KEY_CODE.RIGHT)){if(w.setAttribute(n.ARIA_SELECTED,"false"),w.dataset&&w.dataset.isNonInput==="true"){query.fireEvent(w,"click");return}r.value=coned.utils.entitiesDecode(w.dataset.actualValue);r.selectionStart=r.selectionEnd;r.scrollLeft=r.scrollWidth;g=r.value;p(n.ANNOUNCE_SELECTION);o=[];f=-1;e.classList.add(n.HIDDEN_CLASS);r.removeAttribute(n.ARIA_ACTIVEDESCENDANT);ut&&(typeof Event=="function"?nt=new Event("input",{bubbles:!0,cancelable:!0}):(nt=document.createEvent("Event"),nt.initEvent("input",!0,!0)),r.dispatchEvent(nt));query.fireEvent(r,"selectedOption");return}if(b===coned.constants.KEY_CODE.ESC){f>=0&&f<u.children.length&&w.setAttribute(n.ARIA_SELECTED,"false");o=[];f=-1;tt=!0;r.value=l;e.classList.add(n.HIDDEN_CLASS);r.removeAttribute(n.ARIA_ACTIVEDESCENDANT);return}if(f==-1&&b===coned.constants.KEY_CODE.ENTER)return}}if(tt)if(t&&t.keycode===coned.constants.KEY_CODE.DOWN||it&&(c&&r.value[r.value.length-1]===c||!c&&r.value.length===0))tt=!1;else return;if(o=v,h=h?h:r.value,u.innerHTML="",e.classList.add(n.HIDDEN_CLASS),r.removeAttribute(n.ARIA_ACTIVEDESCENDANT),c)if(h.toUpperCase().indexOf(c.toUpperCase())!==-1)et=h.split(c),k=et.splice(1,et.length-1).join(c);else{o=[];e.classList.add(n.HIDDEN_CLASS);r.removeAttribute(n.ARIA_ACTIVEDESCENDANT);return}else k=h;g!==r.value&&(query.fireEvent(r,"inputChange"),g=r.value);k&&ut&&(o=kt===n.SUBSTRING?_.filter(v,function(n){return n.toUpperCase().substr(0,k.length)===k.toUpperCase()}):_.filter(v,function(n){return n.toUpperCase().includes(k.toUpperCase())}),o.length===0&&(a&&a!==""&&!rt&&lt(),s&&s!==""&&!d&&ft()));!o.length||o.length===1&&o[0]===k?o.length!==1||i.dataset.isMarketRates?i.dataset.isMarketRates&&(y.value=o.join(","),ti(),e.classList.remove(n.HIDDEN_CLASS),u.innerHTML===""&&a&&a!==""&&!rt&&lt(),s&&s!==""&&!d&&ft()):(query.fireEvent(r,"selectedOption"),e.classList.add(n.HIDDEN_CLASS)):(y.value=o.join(","),ti(),e.classList.remove(n.HIDDEN_CLASS),s&&s!==""&&!d&&ft());p(n.ANNOUNCE_RESULTS)},ti=function(){for(var t=document.createDocumentFragment(),i,n=0;n<o.length;n++)i=at(o[n],t),t.appendChild(i);u.appendChild(t)},at=function(t,i){var f=document.createElement("li"),e=document.createElement("span"),o=document.createElement("span"),s=i?i.children.length:u.children.length;return f.setAttribute(n.ARIA_SELECTED,"false"),f.setAttribute(n.ARIA_POSINSET,s+1),f.setAttribute(n.ROLE_ATTRIBUTE,n.OPTION_ROLE_ATTRIBUTE),f.setAttribute(n.ID_ATTRIBUTE,n.AUTOCOMPLETE_ITEM_CLASS+"--"+s),f.classList.add(n.AUTOCOMPLETE_ITEM),f.classList.add(n.AUTOCOMPLETE_ITEM_CLASS),o.classList.add(n.AUTOCOMPLETE_ITEM_HIGHLIGHT),e.classList.add(n.AUTOCOMPLETE_ITEM_UNHIGHLIGHT),c&&r.value.toUpperCase().indexOf(c.toUpperCase())!==-1?(o.innerHTML=c+t,e.innerHTML=r.value.split(c)[0]):(o.innerHTML=t,e.innerHTML=""),f.setAttribute("data-actual-value",decodeURIComponent(e.innerHTML)+decodeURIComponent(o.innerHTML)),f.appendChild(e),f.appendChild(o),f.addEventListener("mouseover",gt),f.addEventListener("mouseout",ni),f},oi=function(){r.value="";u.innerHTML="";ht=r.parentElement.parentElement.getElementsByClassName(n.ERROR_WRAPPER_CLASS)[0];o="";v=[];r.classList.remove(coned.constants.INPUT_FILLED_CLASS);r.classList.remove(n.VALID_CLASS);r.classList.remove(coned.constants.INPUT_ERROR_CLASS);ht&&(ht.style.display="none")},si=function(){vt=document.getElementsByClassName(n.FORM_LOADING)[0];r=i.getElementsByClassName(n.AUTOCOMPLETE_INPUT)[0];y=i.getElementsByClassName(n.AUTOCOMPLETE_LIST_INPUT)[0];w=i.getElementsByClassName(n.AUTOCOMPLETE_ANNOUNCER)[0];u=i.getElementsByClassName(n.AUTOCOMPLETE_ITEM_LIST)[0];e=i.getElementsByClassName(n.AUTOCOMPLETE_ITEM_LIST_WRAPPER)[0];yt=document.getElementsByClassName(n.MAIN_CONTENT_CLASS)[0];pt=document.getElementsByClassName("js-start-service-form")[0];wt=document.getElementsByClassName("js-transfer-service-form")[0];c=i.dataset.keyTrigger&&i.dataset.keyTrigger!==""?i.dataset.keyTrigger:"";s=i.dataset.defaultOption&&i.dataset.defaultOption!==""?i.dataset.defaultOption:"";it=i.dataset.defaultOptionLink&&i.dataset.defaultOptionLink!==""?i.dataset.defaultOptionLink:"";a=i.dataset.noResultsOption&&i.dataset.noResultsOption!==""?i.dataset.noResultsOption:"";tt=!1;ut=i.dataset.filtering&&i.dataset.filtering!==""&&i.dataset.filtering==="false"?!1:!0;kt=i.dataset._filteringType;o=[];f=-1;l="";g="";v=[]},hi=function(){i.dataset.loadTrigger&&i.dataset.loadTrigger!==""?i.addEventListener(i.dataset.loadTrigger,ct):ct();i.addEventListener("resetInput",oi);i.addEventListener("reloadList",ct)},ci=function(){si();hi();t=!0};ci()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.AvailableConnections=function(){var n={LOADING_CLASS:"js-form-loading",AVAILABLE_CONNECTION_LINK_CLASS:"js-available-connection-link",HIDDEN_CLASS:"hidden",GREEN_BUTON_VENDOR_TAGGING:"greenbutton.vendor.select",DATA_USE_CERTIFICATION_VERSION_ATTRIBUTE:"data-use-certification-version",DATA_VENDOR_NAME_ATTRIBUTE:"data-vendor-name",TRUE_STR:"true"},t=!1,i=function(i){var r,u,f=function(){query.removeClass(r,n.HIDDEN_CLASS)},e=function(t){var i=t.currentTarget.getAttribute(n.DATA_USE_CERTIFICATION_VERSION_ATTRIBUTE)===n.TRUE_STR,r=t.currentTarget.getAttribute(n.DATA_VENDOR_NAME_ATTRIBUTE);dataLayer.push({event:n.GREEN_BUTON_VENDOR_TAGGING,vendor:r,useCertificationVersion:i})},o=function(){r=document.getElementsByClassName(n.LOADING_CLASS);u=i.getElementsByClassName(n.AVAILABLE_CONNECTION_LINK_CLASS)},s=function(){coned.utils.addParentListener(i,coned.utils.generalEvents(),n.AVAILABLE_CONNECTION_LINK_CLASS,f);Array.from(u).forEach(function(n){coned.utils.addGeneralListeners(n,e)})},h=function(){o();s();t=!0};h()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.BackgroundComponent=function(){var n={MOBILE_IMAGE_CLASS:"js-mobile-image",DESKTOP_IMAGE_CLASS:"js-desktop-image",IMAGE_SRC_ATTRIBUTE:"srcset"},t=!1,i=function(i){var f,e,r,u,o,s=function(){var t,s=window.innerWidth;s<o?(t=f.getAttribute(n.IMAGE_SRC_ATTRIBUTE),r.toLowerCase()!=="true"&&(i.style.backgroundImage="url('"+t+"')")):(t=e.getAttribute(n.IMAGE_SRC_ATTRIBUTE),u.toLowerCase()!=="true"&&(i.style.backgroundImage="url('"+t+"')"))},h=function(){f=i.getElementsByClassName(n.MOBILE_IMAGE_CLASS)[0];e=i.getElementsByClassName(n.DESKTOP_IMAGE_CLASS)[0];r=i.dataset.onlyDesktop;r?o=coned.constants.MOBILE_MAX_SIZE:(r="false",o=i.dataset.bgbreakpoint||coned.constants.MOBILE_MAX_SIZE);u=i.dataset.onlyMobile;u||(u="false")},c=function(){(f!=undefined||e!=undefined)&&(window.addEventListener("resize",function(){s()}),s())},l=function(){h();c();t=!0};l()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.BillComparison=function(){var n={CONED_BILL_DROPDOWN:"js-bill-comparison-options",CONED_COMPARISON_AMOUNT:"js-comparison-price",CONED_BILLED_AMOUNT:"js-billed-amount",CONED_BILL_PREV_AMOUNT:"data-prev-amount",CONED_BILL_PLAN_AMOUNT:"data-plan-amount",CONED_BILL_DROPDOWN_YEAR:"js-bill-comparison-options-year",CONED_COMPARISON_AMOUNT_YEAR:"js-comparison-price-year",CONED_BILLED_AMOUNT_YEAR:"js-billed-amount-year",CONED_BILL_PREV_AMOUNT_YEAR:"data-prev-amount-year",CONED_BILL_PLAN_AMOUNT_YEAR:"data-plan-amount-year",CONED_BILL_COMPARISON_TAG:"data-bill-comparison-tag",CONED_AMOUNT_TITLE:"js-price-title",CHANGE_EVENT:"change",CONED_BILL_DROPDOWN_YEAR_TYPE:"selectYear",CONED_BILL_YEAR:"Year",CONED_BILL_MONTH:"Month"},t=!1,i=function(i){var u,e,o,r,s,h,c,a=function(){var i=u[0].getAttribute(n.CONED_BILL_PREV_AMOUNT),l=u[0].getAttribute(n.CONED_BILL_PLAN_AMOUNT);if(f(i,l,e,o),r){var a=r[0].getAttribute(n.CONED_BILL_PREV_AMOUNT_YEAR),v=r[0].getAttribute(n.CONED_BILL_PLAN_AMOUNT_YEAR),t=r[0].innerHTML;c.innerHTML=t.substring(0,t.indexOf("("));f(a,v,s,h)}},f=function(n,t,i,r){n=parseFloat(n.replace(/,/g,"")).toFixed(2);t=parseFloat(t.replace(/,/g,"")).toFixed(2);var o=n.substring(n.indexOf(".")),s=t.substring(t.indexOf(".")),u="${{comparisonValue}}<sup>{{comparisonValueDecimal}}<\/sup>",f="${{billedAmount}}<sup>{{billedAmountDecimal}}<\/sup>",e="en-us";u=u.replace("{{comparisonValue}}",Math.floor(n).toLocaleString(e));u=u.replace("{{comparisonValueDecimal}}",o);f=f.replace("{{billedAmount}}",Math.floor(t).toLocaleString(e));f=f.replace("{{billedAmountDecimal}}",s);i.innerHTML=u;r.innerHTML=f},l=function(t){var r=t.target,v=r.value,l,a,y=i.getAttribute(n.CONED_BILL_COMPARISON_TAG),p=r.name===n.CONED_BILL_DROPDOWN_YEAR_TYPE?n.CONED_BILL_YEAR:n.CONED_BILL_MONTH,u;for(dataLayer.push({event:y,periodType:p}),u=0;u<r.length;u++)v==r[u].value&&(r.name===n.CONED_BILL_DROPDOWN_YEAR_TYPE?(l=r[u].getAttribute(n.CONED_BILL_PREV_AMOUNT_YEAR),a=r[u].getAttribute(n.CONED_BILL_PLAN_AMOUNT_YEAR),c.innerHTML=r[u].textContent.substring(0,r[u].textContent.indexOf("(")),f(l,a,s,h)):(l=r[u].getAttribute(n.CONED_BILL_PREV_AMOUNT),a=r[u].getAttribute(n.CONED_BILL_PLAN_AMOUNT),f(l,a,e,o)))},v=function(){u=i.getElementsByClassName(n.CONED_BILL_DROPDOWN)[0];e=i.getElementsByClassName(n.CONED_COMPARISON_AMOUNT)[0];o=i.getElementsByClassName(n.CONED_BILLED_AMOUNT)[0];r=i.getElementsByClassName(n.CONED_BILL_DROPDOWN_YEAR)[0];s=i.getElementsByClassName(n.CONED_COMPARISON_AMOUNT_YEAR)[0];h=i.getElementsByClassName(n.CONED_BILLED_AMOUNT_YEAR)[0];c=i.getElementsByClassName(n.CONED_AMOUNT_TITLE)[0]},y=function(){u.addEventListener(n.CHANGE_EVENT,l);r&&r.addEventListener(n.CHANGE_EVENT,l)},p=function(){v();y();a();t=!0};p()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.BillPaymentHistory=function(){var n={BILLING_PAYMENT_TABLE_CLASS:"js-billing-payment-table",TITLES_CLASS:"js-payment-titles",CHECKBOX_CHECKED_CLASS:"coned-checkbox--checked",PAYMENTS_CHECKBOX_CLASS:"js-check-payments",BILLING_PAYMENT_MODULE:"js-billing-payment-body",ITEM_CLASS:"js-item",PAYMENT_ITEM_CLASS:"js-payment-item",BILLS_CHECKBOX_CLASS:"js-check-bills",BILL_ITEM_CLASS:"js-bill-item",BILL_SUMPORTAL_CLASS:"js-sumportal-message",BILL_CANCELLED_CLASS:"billing-payment-item--cancelled",BILL_ITEM_OPEN_CLASS:"billing-payment-item--open",BILL_ITEM_ARROW_CLASS:"js-open-arrow",BILL_LINK_CLASS:"js-bill-link",SHOW_MORE_CLASS:"js-show-more",HIDE_SHOW_MORE_CLASS:"billing-payment-body__show-more--hide",ITEM_HIDDEN_CLASS:"billing-payment-item--hidden",ITEM_TABLE_HIDDEN:"animated-hero--animation-item",ITEM_TABLE_CLASS:"js-item-table",FORM_LOADING:"js-form-loading",DIV_LOADING_CLASS:"js-div-loading",DIV_LOADING_HIDDEN_CLASS:"form-loading--hidden",SITECORE_ID_NAME:"billingUsageScId",ACCOUNT_MAID_NAME:"accountMaid",TABLE_ERROR:"js-table-error",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",CHECKBOX_SELECTOR:"js-checkbox-selector",ERROR_CONTAINER_CLASS:"billing-module--sides-padding billing-module--top-bottom-padding transactional__error",ERROR_ICON_CLASSES:"transactional__error-icon icon-report-problem",HIDDEN_CLASS:"hidden",LOAD_PAYMENTS_PARAM:"loadPayments",FILTER_PAYMENTS_PARAM:"filterPayments",CHECKBOX_CLICKED_EVENT:"checkbox-clicked",DATA_GRID_MODULE:"js-data-grid",TAGGING_SELECTOR:"[data-tag-preffix]",NORMAL_TYPE_TAGGING:"Normal",CANCELLED_TYPE_TAGGING:"Cancelled",BILL_LINK_TAGGING:"bill.click",CANCELLED_APPEARANCE_TAGGING:"cancelledbill.appearance",FOCUS_LABEL_CHECKBOX:"coned-checkbox--focus"},t=!1,i=function(i){var p,w,r,e,h,ut,ft,f,o,u,a,b,k,et,s,v,c,ot,d,y,g,nt,tt,it,st=function(t){_.each(t,function(t,i){i<it&&t.classList.remove(n.HIDDEN_CLASS)})},l=function(t,f){var h;query.removeClass(s,n.HIDE_SHOW_MORE_CLASS);query.removeClass(w,n.HIDDEN_CLASS);v.classList.add(n.HIDDEN_CLASS);t.checked?(query.addClass(t.parentElement,n.CHECKBOX_CHECKED_CLASS),_.each(f,function(t){query.removeClass(t,n.ITEM_HIDDEN_CLASS)}),tt&&(st(f),u.checked&&(tt=!1))):(query.removeClass(t.parentElement,n.CHECKBOX_CHECKED_CLASS),_.each(f,function(t){query.addClass(t,n.ITEM_HIDDEN_CLASS)}));r.checked||u.checked||(query.addClass(s,n.HIDE_SHOW_MORE_CLASS),query.addClass(w,n.HIDDEN_CLASS),o.dataset.filterCriteria="");r.checked&&u.checked?o.dataset.filterCriteria=n.ITEM_CLASS:r.checked?o.dataset.filterCriteria=n.BILL_ITEM_CLASS:u.checked&&(o.dataset.filterCriteria=n.PAYMENT_ITEM_CLASS);e&&(r.checked?e.classList.remove(n.HIDDEN_CLASS):e.classList.add(n.HIDDEN_CLASS));b=i.getElementsByClassName(o.dataset.filterCriteria);b.length?(_.each(b,function(t){query.hasClass(t,n.HIDDEN_CLASS)&&(h=!0)}),h?s.classList.remove(n.HIDDEN_CLASS):s.classList.add(n.HIDDEN_CLASS)):(r.checked||u.checked)&&(v.classList.remove(n.HIDDEN_CLASS),s.classList.add(n.HIDDEN_CLASS),v.focus());g&&coned.utils.triggerEvent(g,n.CHECKBOX_CLICKED_EVENT)},at=function(t){t.preventDefault();query.addClass(k,n.ITEM_TABLE_HIDDEN);var u=t.target,i=query.selectParentElement(u,n.BILL_ITEM_CLASS),f=this.parentNode.parentNode.parentNode,e=f.getElementsByClassName(n.ITEM_TABLE_CLASS),r=0,o=200;query.hasClass(i,n.BILL_ITEM_OPEN_CLASS)?(query.removeClass(i,n.BILL_ITEM_OPEN_CLASS),query.addClass(k,n.ITEM_TABLE_HIDDEN)):(query.removeClass(h,n.BILL_ITEM_OPEN_CLASS),query.addClass(i,n.BILL_ITEM_OPEN_CLASS),_.each(e,function(t){setTimeout(function(){t.classList.remove(n.ITEM_TABLE_HIDDEN)},r);r+=o}))},vt=function(t){t.preventDefault();var o=query.selectParentElement(t.target,n.BILL_ITEM_CLASS),e,r,u;if(f=query.selectParentElement(t.target,n.BILL_LINK_CLASS),c=o.getElementsByClassName(n.SERVICE_ERROR)[0],c.classList.add(n.HIDDEN_CLASS),u=f.dataset.iscsv,e=u?i.dataset.documentCsvServiceUrl:i.dataset.billServiceUrl,f.dataset.billLink=="true"){window.open(f.href);return}r={ScId:i.dataset.scid,Maid:i.dataset.accountMaid};u?r.BillId=f.dataset.billId:(r.DocumentId=f.dataset.documentId,r.BillDate=f.dataset.billDate,r.Type=f.dataset.type);y=window.open();query.getData(e,yt,rt,r,ot);u&&!coned.utils.isSafari()&&setTimeout(function(){y.close()},5e3)},yt=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_BILL_LINK,ht,rt):n.Link&&n.Link!=""?ht(n):rt(n)},pt=function(t){var i=t.currentTarget,r=query.selectParentElement(i,n.BILL_ITEM_CLASS);dataLayer.push({event:i.dataset.tagPreffix+n.BILL_LINK_TAGGING,billType:query.hasClass(r,n.BILL_CANCELLED_CLASS)?n.CANCELLED_TYPE_TAGGING:n.NORMAL_TYPE_TAGGING})},wt=function(){var t=i.getElementsByClassName(n.BILL_CANCELLED_CLASS);t.length>0&&dataLayer.push({event:n.CANCELLED_APPEARANCE_TAGGING})},ht=function(n){f.dataset.billLink="true";f.href=n.Link;y.location.href=n.Link},rt=function(t){var i=c.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];y.close();c.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;c.focus()},bt=function(){var r=i.dataset.tableServiceUrl,t;t={AccountMaid:query.getFormInputValue(document,n.ACCOUNT_MAID_NAME),ScId:query.getFormInputValue(document,n.SITECORE_ID_NAME),isMasterAccount:i.dataset.isMasterAccount,isSubordinateAccount:i.dataset.isSubordinateAccount};t=JSON.stringify(t);query.postData(r,kt,lt,t,!0)},kt=function(n){if(coned.utils.isPatternLab()){var t=i.dataset.patternlabMasterLevelAccount,r;r=coned.utils.isOru()?t?coned.plConstants.GET_BILLING_PAYMENT_MASTER_LEVEL_TABLE_HTML:coned.plConstants.GET_BILLING_PAYMENT_TABLE_ORU_HTML:t?coned.plConstants.GET_BILLING_PAYMENT_MASTER_LEVEL_TABLE_HTML:coned.plConstants.GET_BILLING_PAYMENT_TABLE_HTML;query.getData(r,ct,lt)}else ct(n)},ct=function(t){d.classList.add(n.DIV_LOADING_HIDDEN_CLASS);p.innerHTML=t;ti();ii();coned.utils.initializeModules(p);wt()},lt=function(t){var f=document.createElement("p"),e=document.createElement("span"),o=document.createElement("span");f.className=n.ERROR_CONTAINER_CLASS;e.classList=n.ERROR_ICON_CLASSES;o.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;f.appendChild(e);f.appendChild(o);d.classList.add(n.DIV_LOADING_HIDDEN_CLASS);i.appendChild(f);r.disabled=!0;u.disabled=!0},dt=function(t){var i=t.target.classList.contains(n.CHECKBOX_EQUAL_HIERARCHY)?t.target.nextElementSibling:t.target.parentElement;query.addClass(i,n.FOCUS_LABEL_CHECKBOX)},gt=function(t){var i=t.target.classList.contains(n.CHECKBOX_EQUAL_HIERARCHY)?t.target.nextElementSibling:t.target.parentElement;query.removeClass(i,n.FOCUS_LABEL_CHECKBOX)},ni=function(){p=i.getElementsByClassName(n.BILLING_PAYMENT_TABLE_CLASS)[0];r=i.getElementsByClassName(n.BILLS_CHECKBOX_CLASS)[0];u=i.getElementsByClassName(n.PAYMENTS_CHECKBOX_CLASS)[0];d=i.getElementsByClassName(n.DIV_LOADING_CLASS)[0];nt=i.getElementsByClassName(n.CHECKBOX_SELECTOR);bt()},ti=function(){w=i.getElementsByClassName(n.TITLES_CLASS)[0];h=i.getElementsByClassName(n.BILL_ITEM_CLASS);ut=i.getElementsByClassName(n.BILL_LINK_CLASS);a=i.getElementsByClassName(n.PAYMENT_ITEM_CLASS);s=i.getElementsByClassName(n.SHOW_MORE_CLASS)[0];k=i.getElementsByClassName(n.ITEM_TABLE_CLASS);et=i.getElementsByClassName(n.BILL_ITEM_ARROW_CLASS);o=i.getElementsByClassName(n.BILLING_PAYMENT_MODULE)[0];ot=document.getElementsByClassName(n.FORM_LOADING)[0];v=i.getElementsByClassName(n.TABLE_ERROR)[0];g=i.getElementsByClassName(n.DATA_GRID_MODULE)[0];e=i.getElementsByClassName(n.BILL_SUMPORTAL_CLASS)[0];it=parseInt(o.dataset.initialLoad,10);tt=!0;ft=i.querySelectorAll(n.TAGGING_SELECTOR);r&&(r.checked=!0,query.addClass(r.parentElement,n.CHECKBOX_CHECKED_CLASS),e&&(r.checked?e.classList.remove(n.HIDDEN_CLASS):e.classList.add(n.HIDDEN_CLASS)));st(h);it<h.length&&query.removeClass(s,n.HIDDEN_CLASS)},ii=function(){var t,i;for(r&&r.addEventListener("change",function(){l(r,h)}),u&&u.addEventListener("change",function(){l(u,a)}),_.each(ut,function(n){coned.utils.addGeneralListeners(n,vt)}),_.each(et,function(n){coned.utils.addGeneralListeners(n,at)}),_.each(ft,function(n){coned.utils.addGeneralListeners(n,pt)}),t=0;t<nt.length;t++)i=nt[t],i.addEventListener("focusin",dt),i.addEventListener("focusout",gt);coned.utils.doActionByURLParam(n.LOAD_PAYMENTS_PARAM,function(){u.checked=!0;l(u,a)});coned.utils.doActionByURLParam(n.FILTER_PAYMENTS_PARAM,function(){u.checked=!0;l(u,a);r.checked=!1;l(r,h)})},ri=function(){ni();t=!0};ri()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.BopaEnrollEmptyModule=function(){var n=!1,t=function(){var t=function(){dataLayer.push({event:"bopa",bopa:"step2.0"})},i=function(){t();n=!0};i()};return t.prototype.isLoaded=function(){return n},t}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.BopaEnrollModule=function(){var n={HIDDEN_CLASS:"hidden",CHANGE_EVENT:"change",RESIZE_EVENT:"resize",DISABLED_ATTRIBUTE:"disabled",ARTICLE_HEADER_CLASS:"js-article-header",UNIT_LIST_STEP_CLASS:"js-step-unit-list",UNIT_LIST_CLEAR_CLASS:"js-unit-list-cancel",UNIT_LIST_SELECT_ALL_CLASS:"js-unit-list-select-all",UNIT_LIST_SUBMIT_CLASS:"js-next-button",UNIT_LIST_SUBMIT_NUMBER_CLASS:"js-unit-list-number",UNIT_LIST_UNITS_CLASS:"js-enroll-unit-list",UNIT_LIST_CHEKBOX_CLASS:"js-enroll-unit-checkbox",UNIT_LIST_RADIO_NAME:"bopaUnits",CONED_CHECKBOX_CHECK_CLASS:"coned-checkbox--checked",ANIMATION_STEP_CLASS:"js-step-animation",ANIMATION_SUBMIT_MODULE:"js-submit-progress-animation",ANIMATION_CURRENT_CLASS:"js-enroll-animation-current",ANIMATION_TOTAL_CLASS:"js-enroll-animation-total",ANIMATION_UNITS_TO_SEND:10,STATUS_STEP_CLASS:"js-step-status",STATUS_SUCCESS_CLASS:"js-enroll-status-success",STATUS_SUCCESS_LIST_CLASS:"js-enroll-status-success-list",STATUS_SUCCESS_NUMBER_CLASS:"js-enroll-status-success-number",STATUS_SUCCESS_CTA_CLASS:"js-status-success-secondary-link",STATUS_FAILED_CLASS:"js-enroll-status-failed",STATUS_FAILED_LIST_CLASS:"js-enroll-status-failed-list",STATUS_FAILED_NUMBER_CLASS:"js-enroll-status-failed-number",STATUS_ADDRESS_CLASS:"js-enroll-status-address",STATUS_SUCCESS_MORE_CLASS:"js-status-success-show-more",STATUS_FAILED_MORE_CLASS:"js-status-failed-show-more",STATUS_LIST_COMPLETE:"success-banner__span--visible"},t=!1,i=function(i){var o,dt,f,h,st,k,tt,ht,c,it,d,ct,u,lt,rt,l,y,ut,at,ft,a,p,vt,et,ot,r,v,g,w,b,s,e,yt=function(){a&&(coned.utils.isEllipsisActive(a)?p.classList.remove(n.HIDDEN_CLASS):p.classList.add(n.HIDDEN_CLASS));l&&(coned.utils.isEllipsisActive(l)?y.classList.remove(n.HIDDEN_CLASS):y.classList.add(n.HIDDEN_CLASS))},gt=function(){coned.utils.addGeneralListeners(y,function(n){pt(n,y,l)});coned.utils.addGeneralListeners(p,function(n){pt(n,p,a)})},pt=function(t,i,r){t.preventDefault();r.classList.add(n.STATUS_LIST_COMPLETE);i.classList.add(n.HIDDEN_CLASS)},nt=function(){var t={},i,u;r.length?(d&&(ot?(g=Math.floor(r.length/n.ANIMATION_UNITS_TO_SEND),u=r.length%n.ANIMATION_UNITS_TO_SEND,u>0&&g++,w=Math.floor(100/g),ot=!1,w!==100&&(b+=w,d.innerHTML="("+b+"%)")):(b+=w,d.innerHTML="("+b+"%)")),v=r.splice(0,n.ANIMATION_UNITS_TO_SEND),i=v.map(function(n){var t=n.id;return{ChildMaid:t}}),t={ChildMaids:i,BopaAcknowledgement:vt},t=JSON.stringify(t),query.postData(ht,ni,bt,t,!0)):it.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},ni=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.POST_ENROLL_UNIT_LIST,wt,bt,null):wt(n)},wt=function(n){var t,i;t=v.filter(function(t){return n.ProcessedUnits.indexOf(t.id)>-1});i=v.filter(function(t){return n.NotProcessedUnits.indexOf(t.id)>-1});s=s.concat(t);e=e.concat(i);coned.utils.isPatternLab()?setTimeout(function(){nt()},2e3):nt()},bt=function(){e=e.concat(v);nt()},ti=function(){dataLayer.push({event:"bopa",bopa:"step3.0"})},ii=function(n){dataLayer.push({event:"bopa",bopa:n})},kt=function(){var t,i,r,f;s.length&&(ti(),ii(s.length),lt.classList.remove(n.HIDDEN_CLASS),rt&&(rt.innerHTML=s.length),l&&(t=s.map(function(n){return n.name}),i=t.join(", "),l.innerHTML=i));e.length&&(at.classList.remove(n.HIDDEN_CLASS),ut&&ut.classList.add(n.HIDDEN_CLASS),ft&&(ft.innerHTML=e.length),a&&(r=e.map(function(n){return n.name}),f=r.join(", "),a.innerHTML=f));c.classList.add(n.HIDDEN_CLASS);u.classList.remove(n.HIDDEN_CLASS);yt();coned.utils.scrollTo(0,0)},ri=function(){new coned.components.SubmitAnimation(it,nt,kt,kt,!1,!1)},ui=function(){coned.utils.addGeneralListeners(dt,ei);coned.utils.addParentListener(st,[n.CHANGE_EVENT],n.UNIT_LIST_CHEKBOX_CLASS,oi);f.addEventListener(n.CHANGE_EVENT,fi);new coned.components.ValidateForm(o,si,"")},fi=function(t){t.preventDefault();var i=t.target;r=[];i.checked?(Array.prototype.forEach.call(k,function(t){var i={id:t.dataset.unitId,name:t.dataset.unitName};r.push(i);query.addClass(t.parentElement,n.CONED_CHECKBOX_CHECK_CLASS);t.checked=!0}),h.removeAttribute(n.DISABLED_ATTRIBUTE)):(Array.prototype.forEach.call(k,function(t){query.removeClass(t.parentElement,n.CONED_CHECKBOX_CHECK_CLASS);t.checked=!1}),h.setAttribute(n.DISABLED_ATTRIBUTE,!0))},ei=function(t){t.preventDefault();r=[];Array.prototype.forEach.call(k,function(t){query.removeClass(t.parentElement,n.CONED_CHECKBOX_CHECK_CLASS);t.checked=!1});f&&(f.checked=!1,query.removeClass(f.parentElement,n.CONED_CHECKBOX_CHECK_CLASS));h.setAttribute(n.DISABLED_ATTRIBUTE,!0)},oi=function(t,i){i.preventDefault();var u=i.target,o=u.dataset.unitId,e,s;u.checked?(s={id:o,name:u.dataset.unitName},r.push(s)):(e=r.findIndex(function(n){return n.id==o}),e>-1&&r.splice(e,1),f&&(f.checked=!1,query.removeClass(f.parentElement,n.CONED_CHECKBOX_CHECK_CLASS)));r.length===0?h.setAttribute(n.DISABLED_ATTRIBUTE,!0):h.removeAttribute(n.DISABLED_ATTRIBUTE)},si=function(){r.length&&(vt=query.getFormInputValue(i,n.UNIT_LIST_RADIO_NAME,!0,!1),ct.innerHTML=r.length,c.classList.remove(n.HIDDEN_CLASS),tt&&tt.classList.add(n.HIDDEN_CLASS),o.classList.add(n.HIDDEN_CLASS),coned.utils.scrollTo(0,0),ri())},hi=function(){ht=i.dataset.unitsService;ot=!0;r=[];v=[];g=0;w=0;b=0;s=[];e=[];tt=document.getElementsByClassName(n.ARTICLE_HEADER_CLASS)[0];o=i.getElementsByClassName(n.UNIT_LIST_STEP_CLASS)[0];f=o.getElementsByClassName(n.UNIT_LIST_SELECT_ALL_CLASS)[0];h=o.getElementsByClassName(n.UNIT_LIST_SUBMIT_CLASS)[0];st=o.getElementsByClassName(n.UNIT_LIST_UNITS_CLASS)[0];k=o.getElementsByClassName(n.UNIT_LIST_CHEKBOX_CLASS);c=i.getElementsByClassName(n.ANIMATION_STEP_CLASS)[0];it=c.getElementsByClassName(n.ANIMATION_SUBMIT_MODULE)[0];d=c.getElementsByClassName(n.ANIMATION_CURRENT_CLASS)[0];ct=c.getElementsByClassName(n.ANIMATION_TOTAL_CLASS)[0];u=i.getElementsByClassName(n.STATUS_STEP_CLASS)[0];lt=u.getElementsByClassName(n.STATUS_SUCCESS_CLASS)[0];rt=u.getElementsByClassName(n.STATUS_SUCCESS_NUMBER_CLASS)[0];l=u.getElementsByClassName(n.STATUS_SUCCESS_LIST_CLASS)[0];ut=u.getElementsByClassName(n.STATUS_SUCCESS_CTA_CLASS)[0];at=u.getElementsByClassName(n.STATUS_FAILED_CLASS)[0];ft=u.getElementsByClassName(n.STATUS_FAILED_NUMBER_CLASS)[0];a=u.getElementsByClassName(n.STATUS_FAILED_LIST_CLASS)[0];y=u.getElementsByClassName(n.STATUS_SUCCESS_MORE_CLASS)[0];p=u.getElementsByClassName(n.STATUS_FAILED_MORE_CLASS)[0]},ci=function(){window.addEventListener(n.RESIZE_EVENT,ai,!1);ui();gt()},li=function(){dataLayer.push({event:"bopa",bopa:"step2.1"})},ai=function(){et||(et=setTimeout(function(){et=null;yt()},66))},vi=function(){hi();ci();li();t=!0};vi()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.CalculatorFormAction=function(){var i={SELECT_CLASS:"js-coned-select"},n=!1,t=function(t){var r,u=function(n){window.location.href=n.value},f=function(){_.each(r,function(n){n.value=""})},e=function(){r=t.getElementsByClassName(i.SELECT_CLASS)},o=function(){_.each(r,function(n){n.addEventListener("change",function(){u(n)})});f()},s=function(){e();o();n=!0};s()};return t.prototype.isLoaded=function(){return n},t}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.CardLinks=function(){var n={CARD_LINK:"js-card-link",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",ENERGY_USAGE_MAID:"accountMaid",HIDDEN_CLASS:"hidden",FORM_LOADING:"js-form-loading"},t=!1,i=function(i){var f,r,u,s,h,e,o,a=function(t){t.preventDefault();var s=i.dataset.serviceUrl,f;if(r=t.target,o=r.dataset.redirectUrl,u.classList.add(n.HIDDEN_CLASS),r.dataset.cardLink==="true"){window.open(r.href);return}f={maid:query.getFormInputValue(document,n.ENERGY_USAGE_MAID),scId:i.dataset.scId};e=window.open();f=JSON.stringify(f);query.postData(s,v,l,f,!0,h)},v=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_LINK,c,l):c(n)},c=function(n){r.dataset.cardLink="true";r.href=o?o:n.redirectUrl;e.location.href=r.href},l=function(t){e.close();u.classList.remove(n.HIDDEN_CLASS);s.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;u.focus()},y=function(){f=i.getElementsByClassName(n.CARD_LINK);u=i.getElementsByClassName(n.SERVICE_ERROR)[0];s=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];h=document.getElementsByClassName(n.FORM_LOADING)[0]},p=function(){for(var n=0;n<f.length;n++)coned.utils.addGeneralListeners(f[n],a)},w=function(){y();p();t=!0};w()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.CardModuleForm=function(){var n={SELECT_ELEMENT:"js-coned-select",HIDDEN_FIELD:"coned-form__field-container--hidden",HIDDEABLE_CLASS_FIELDS:"js-hiddeable-field",SELECT_CLASS:"js-coned-select",SELECT_ACTIVE_CLASS:"js-coned-select-active",LABEL_CLASS:"js-coned-select-label"},t=!1,i=function(i){var r,u,f=function(){for(var f,u=i.getElementsByClassName(n.HIDDEABLE_CLASS_FIELDS),t=0;t<u.length;++t)query.addClass(u[t],n.HIDDEN_FIELD);f=r.options[r.selectedIndex].value;t=i.getElementsByClassName(f)[0];t.value="";query.removeClass(t.parentElement.parentElement,n.HIDDEN_FIELD)},e=function(){var t=i.getElementsByClassName(n.SELECT_CLASS);u.style.display="block";query.addClass(t,n.SELECT_ACTIVE_CLASS);TweenMax.to(u,.2,{top:"10",opacity:"1"})},o=function(){r.selectedIndex=1;f();e()},s=function(){r=i.getElementsByClassName(n.SELECT_ELEMENT)[0];u=i.getElementsByClassName(n.LABEL_CLASS)[0]},h=function(){r.addEventListener("change",f);o()},c=function(){s();h();t=!0};c()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.CardsClosed=function(){var n={OPEN_LINK_SELECTOR:"js-manage-cards-selector",CARD_SELECTOR:"js-cards-selector",CARD_CONTAINER_SELECTOR:"js-manage-cards-container",DISABLED_SELECTOR:"js-disabled-selector",CLOSE_CARD_SELECTOR:"js-close-card-selector",DISABLED_CARD_CLASS:"manage-cards__card--disabled",ACTIVE_CARD_CLASS:"manage-cards__card--active",CLOSE_BUTTON:"js-close-button",HIDDEN_CLASS:"hidden",ACCOUNT_MAID_INPUT:"accountMaid",FORM_LOADING:"js-form-loading",ERROR_CONTAINER_CLASS:"transactional__error",ERROR_ICON_CLASSES:"transactional__error-icon icon-report-problem",CARD_BUTTON_SPAN_CLASS:"manage-cards__link-description",DATA_ELECTRICITY_PREV_READ_DATE:"electricity-current-read-date",DATA_GAS_PREV_READ_DATE:"gas-current-read-date",DATA_ELECTRICITY_CURRENT_READ:"electricity-current-read",DATA_GAS_CURRENT_READ:"gas-current-read",MANAGE_CARDS_WRAPPER_ACTIVE:"manage-cards__contain-wrapper-active"},t=!1,i=function(i){var f,r,l,h,c,e,u,y,p,a,v,b=function(t){if(l=query.selectParentElement(t,n.CARD_SELECTOR),r=query.selectParentElement(t,n.OPEN_LINK_SELECTOR),r){for(var i=0;i<f.length;i++)if(f[i]===r)break;if(query.addClass(h,n.DISABLED_CARD_CLASS),query.removeClass(h,n.ACTIVE_CARD_CLASS),l.classList.remove(n.DISABLED_CARD_CLASS),l.classList.add(n.ACTIVE_CARD_CLASS),query.addClass(e,n.HIDDEN_CLASS),v=f[i].dataset.serviceType,v&&v!==""){u=e[i];switch(v){case"MarketRates":d();break;case"MeterReading":nt();break;case"EscoComparison":it()}}else e[i].classList.remove(n.HIDDEN_CLASS),e[i].focus();_.each(e,function(t){t.parentNode.classList.remove(n.MANAGE_CARDS_WRAPPER_ACTIVE)});query.addClass(e[i].parentNode,n.MANAGE_CARDS_WRAPPER_ACTIVE);query.addClass(c,n.HIDDEN_CLASS);l.getElementsByClassName(n.CLOSE_CARD_SELECTOR)[0].classList.remove(n.HIDDEN_CLASS);query.removeClass(f,n.HIDDEN_CLASS);r.classList.add(n.HIDDEN_CLASS)}},k=function(n){n.preventDefault();b(n.target)},w=function(t){t.preventDefault();for(var i=0;i<h.length;i++)if(query.hasClass(h[i],n.ACTIVE_CARD_CLASS))break;query.removeClass(h,n.DISABLED_CARD_CLASS);query.removeClass(h,n.ACTIVE_CARD_CLASS);query.addClass(e,n.HIDDEN_CLASS);query.addClass(c,n.HIDDEN_CLASS);query.removeClass(f,n.HIDDEN_CLASS);e[i].parentNode.classList.remove(n.MANAGE_CARDS_WRAPPER_ACTIVE);f[i].focus()},d=function(){var t=r.dataset.serviceUrl,i=r.dataset.serviceIndicator?r.dataset.serviceIndicator:"",u=r.dataset.gasRate?r.dataset.gasRate:"",f=r.dataset.lightingRate?r.dataset.lightingRate:"",e=r.dataset.electricRetailChoice?r.dataset.electricRetailChoice:"",o=r.dataset.electricCapacityObligation?r.dataset.electricCapacityObligation:"",h=r.dataset.electricTransmissionObligation?r.dataset.electricTransmissionObligation:"",c=r.dataset.lightingStrata?r.dataset.lightingStrata:"",l=r.dataset.showRatesTable?!0:!1,v=r.dataset.lightingIndicator?!0:!1,y={ElectricRate:r.dataset.electricRate,Zone:r.dataset.zone,GasRate:u,LightingRate:f,ElectricRetailChoice:e,ElectricCapacityObligation:o,ElectricTransmissionObligation:h,LightingStrata:c},n;n={AccountMaid:p.value,MarketRatesScId:r.dataset.marketRatesScid,IsOru:coned.utils.isOru(),MarketRate:y,ServiceIndicator:i,ShowRatesTable:l,LightingIndicator:v};n=JSON.stringify(n);query.postData(t,g,s,n,!0,a)},g=function(n){if(coned.utils.isPatternLab())if(coned.utils.isOru()){var t=i.dataset.cardsPatternlabMasterLevelAccount,r=t?coned.plConstants.GET_ORU_MARKET_RATES_MAUI_HTML:coned.plConstants.GET_ORU_MARKET_RATES_HTML;query.getData(r,o,s)}else query.getData(coned.plConstants.GET_MARKET_RATES_HTML,o,s);else o(n)},nt=function(){var t=r.dataset.serviceUrl,n;n={EnterMeterReadingScId:r.dataset.meterReadingScid,ShowElectricService:r.dataset.showElectricService,ShowGasService:r.dataset.showGasService,ElectricityCurrentRead:r.dataset.electricityCurrentRead||null,GasCurrentRead:r.dataset.gasCurrentRead||null,GasPrevReadDate:r.dataset.gasPrevReadDate||null,ElectricityPrevReadDate:r.dataset.electricityPrevReadDate||null,ElectricityReadingType:r.dataset.electricityReadingType||null,GasReadingType:r.dataset.gasReadingType||null,ElectricityNumberOfDials:r.dataset.electricityNumberOfDials||null,ElectricityReadingLowerBound:r.dataset.electricityReadingLowerBound||null,ElectricityReadingUpperBound:r.dataset.electricityReadingUpperBound||null,GasNumberOfDials:r.dataset.gasNumberOfDials||null,GasReadingLowerBound:r.dataset.gasReadingLowerBound||null,GasReadingUpperBound:r.dataset.gasReadingUpperBound||null};n=JSON.stringify(n);query.postData(t,tt,s,n,!0,a)},tt=function(n){coned.utils.isPatternLab()?coned.utils.isOru()?query.getData(coned.plConstants.GET_METER_READING_HTML,o,s):query.getData(coned.plConstants.GET_METER_PREVIOUS_READING_HTML,o,s):o(n)},it=function(){var u=r.dataset.serviceUrl,t,i,n;t={Name:r.dataset.electricEscoName,Phone:r.dataset.electricEscoPhone,Price:r.dataset.electricEscoCurrentPrice,SuppEffectiveDate:r.dataset.electricEscoEffectiveDate,PriceEffectiveDate:r.dataset.electricPriceEffectiveDate};i={Name:r.dataset.gasEscoName,Phone:r.dataset.gasEscoPhone,Price:r.dataset.gasEscoCurrentPrice,SuppEffectiveDate:r.dataset.gasEscoEffectiveDate,PriceEffectiveDate:r.dataset.gasPriceEffectiveDate};n={AccountMaid:p.value,EscoComparisonScId:r.dataset.escoComparisonScid,ShowComparisonTable:r.dataset.showComparisonTable,ElectricEsco:t,GasEsco:i};n=JSON.stringify(n);query.postData(u,rt,s,n,!0,a)},rt=function(n){coned.utils.isPatternLab()?coned.utils.isOru()?query.getData(coned.plConstants.GET_ORU_ESCO_COMPARISON_HTML,o,s):query.getData(coned.plConstants.GET_ESCO_COMPARISON_HTML,o,s):o(n)},o=function(t){var f,i;for(u.innerHTML=t,coned.utils.initializeModules(u),new coned.components.FormValidationModule(u),f=u.getElementsByClassName(n.CLOSE_BUTTON),i=0;i<f.length;i++)coned.utils.addGeneralListeners(f[i],w);u.classList.remove(n.HIDDEN_CLASS);u.focus();r.dataset.serviceType=""},s=function(t){var i=document.createElement("p"),r=document.createElement("span"),f=document.createElement("span");i.className=n.ERROR_CONTAINER_CLASS;r.classList=n.ERROR_ICON_CLASSES;f.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;i.appendChild(r);i.appendChild(f);u.innerHTML="";u.appendChild(i);u.classList.remove(n.HIDDEN_CLASS)},ut=function(){f=i.getElementsByClassName(n.OPEN_LINK_SELECTOR);h=i.getElementsByClassName(n.CARD_SELECTOR);c=i.getElementsByClassName(n.CLOSE_CARD_SELECTOR);e=i.getElementsByClassName(n.CARD_CONTAINER_SELECTOR);y=i.getElementsByClassName(n.CLOSE_BUTTON);p=document.getElementsByName(n.ACCOUNT_MAID_INPUT)[0];a=document.getElementsByClassName(n.FORM_LOADING)[0]},ft=function(){for(var i=coned.utils.getUrlParameters()||{},r=i[coned.constants.DEEP_LINK_URL_PARAM_NAME],u=_.where(h,function(n){return n.dataset.deepLinkId===r}),t=0;t<f.length;t++)coned.utils.addGeneralListeners(f[t],k);for(t=0;t<c.length;t++)coned.utils.addGeneralListeners(c[t],w);for(t=0;t<y.length;t++)coned.utils.addGeneralListeners(y[t],w);_.each(u,function(t){t.addEventListener("deeplink-event",function(t){var i=t.target.getElementsByClassName(n.CARD_BUTTON_SPAN_CLASS)[0];b(i)})})},et=function(){ut();ft();t=!0};et()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.CareOptions=function(){var n={CHECK_OPTION:"js-checkbox-selector",CARE_LIST:"js-care-list",OPTIONS_MASK:"js-care-mask",CARE_INPUT:"js-care-input",INPUT_ITEM:"js-item-validate",FORM_ITEM_IGNORE:"js-validate-ignore",INPUT_ERROR_CLASS:"coned-input-message--error",FORM:".transactional__form"},t=!1,i=function(i){var u,f,r,e=function(){var t=$(n.FORM).validate();u.checked?(_.each(f,function(t){t.classList.add(n.INPUT_ITEM);t.classList.remove(n.FORM_ITEM_IGNORE)}),TweenMax.to(r,.4,{display:"block"}),TweenMax.to(r,.4,{height:"auto"}),t.resetForm()):(_.each(f,function(t){t.classList.add(n.FORM_ITEM_IGNORE);t.classList.remove(n.INPUT_ITEM)}),TweenMax.to(r,.4,{height:0}),TweenMax.to(r,.4,{display:"none"}),t.resetForm())},o=function(){u=i.getElementsByClassName(n.CHECK_OPTION)[0];r=i.getElementsByClassName(n.OPTIONS_MASK)[0];f=i.getElementsByClassName(n.CARE_INPUT)},s=function(){u.addEventListener("change",e);e()},h=function(){o();s();t=!0};h()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.CheckOutageStatus=function(){var n={CHECK_OUTAGE_FORM:"js-check-outage",VALIDATE_ITEM:"js-item-validate",SUBMIT_BUTTON:"js-transactional-submit-selector",LOOKUP_BUTTON:"js-lookup-button",CONTINUE_BUTTON:"js-continue-button",CHECK_BUTTON_TEXT:"js-status-button-text",INPUT_FILLED:"coned-input--filled",SELECT_FILLED:"coned-select--active",FIND_ACCOUNT_CONTAINER:"js-find-account-container",ACCOUNT_OPTION_SELECT:"js-find-account",ACCOUNT_OPTION:"js-account-options",ACCOUNT_OPTION_PHONE:"phone",ACCOUNT_OPTION_ZIP_CODE:"zipcode",SELECT_LABEL_SELECTOR:"js-coned-select-label",ADDRESS_LOOKUP_FORM:"js-address-lookup",AUTOCOMPLETE_ZIPCODE:"js-autocomplete-zipcode",AUTOCOMPLETE_APARMENT_UNIT:"js-autocomplete-apartment-unit",ADDRESS_SELECTED_DETAIL_CLASS:"js-address-selected-detail",AUTOCOMPLETE_ADDRESS_SELECTED_CONTAINER:"js-address-autocomplete-selected",ACTIVE_DROPDOWN:"coned-select--active",RECAPTCHA:"js-recaptcha-container",NOT_MY_ADDRESS_BUTTON:"js-not-my-address",NOT_MY_ADDRESS_CONFIRMATION_BUTTON:"js-not-my-address-confirmation",ACCOUNT_RESULTS:"js-account-results",ACCOUNT_CONTAINER_SELECTOR:"js-account-info",ACCOUNTS_CONTAINER_SELECTOR:"js-accounts-info",ETR_SELECTOR:"js-etr",ETR_TITLE_SELECTOR:"js-etr-title",ACCOUNT_RECEPTOR:"js-account-receptor",MULTIPLE_ACCOUNT_SELECT:"js-multiple-account",ADDRESS_BOX_SELECTOR:"js-address-selector",ADDRESS_BOX_ADDRESS_1:"js-address-1",ADDRESS_BOX_ADDRESS_2:"js-address-2",ADDRESS_CONFIRMATION_BOX_ADDRESS_1:"js-address-confirmation-1",ADDRESS_CONFIRMATION_BOX_ADDRESS_2:"js-address-confirmation-2",OUTAGE_STATUS:"js-outage-status",OUTAGE_DESCRIPTION:"js-outage-description",OUTAGE_REPORT:"js-outage-report",FORM_LOADING:"js-form-loading",FORM_LOADING_HIDDEN:"form-loading--hidden",FORM_SCID_NAME:"ScId",FORM_UNAUTH_SCID_NAME:"UnauthScId",FORM_FIND_ACCOUNT_VIA_NAME:"findAccount",FORM_ACCOUNT_NUMBER_NAME:"accountNumber",FORM_PHONE_NUMBER_NAME:"phoneNumber",FORM_BOROUGH_NAME:"borough",LOOKUP_ERROR_SELECTOR:"js-lookup-service-error",STATUS_ERROR_SELECTOR:"js-status-service-error",ERROR_TEXT_SELECTOR:"js-error-message",HIDDEN_CLASS:"hidden",CAPTCHA_ELEMENT_CLASS:"js-recaptcha",SUBMIT_ANIMATION_CONTAINER:"js-submit-progress-animation",AMOUNT_LETTERS:4,TITLE_SELECTOR:"js-title",REQUIRED_FIELDS_MESSAGE_SELECTOR:"js-required-fields-message",DESCRIPTION_MAIN_SELECTOR:"js-description-main",CHECK_OUTAGE_NAV_SELECTOR:"js-check-outage-nav",DESCRIPTION_SECONDARY_SELECTOR:"js-description-secondary",OUTAGE_CONFIRMATION_SELECTOR:"js-outage-confirmation",STATUS_QUESTION_SELECTOR:"js-status-question",PREDICTIVE_FLAG_RECEIVED:"js-predictive-flag-received",PREDICTIVE_FLAG_INFORMATION:"js-predictive-flag-information",RESTORATION_UPDATES_CTA:"js-restoration-cta",OUTAGE_CONFIRMATION_HEADING_MARGIN_BOTTOM_CLASS:"outage-confirmation-banner__heading--no-margin-bottom",OUTAGE_TILES_SELECTOR:"js-outage-tiles",ADDRESS_DROPDOWN_BOX_TITLE_NON_AUTENTICATED:"address-box__container-title--non-authenticated",COVID_INFORMATION_PARAGRAPH:"js-covid-information-paragraph",CHECK_OUTAGE_CONTAINER:"js-check-outage-container",TEXT_AREA_BUTTONS_CONTAINER:"js-text-area-buttons-container",BUTTONS_CONTAINER_NO_MARGIN_TOP_CLASS:"confirmation-screen__buttons-container--no-margin-top",SYSTEM_OUT_PARAMETER:"system-out",DATE_TOKEN:"@DATE",TIME_TOKEN:"@TIME"},t=!1,i=function(i){var nt,f,pt,ut,ti,e,bi,s,o,y,tt,c,st,ii,ri,wt,ui,ht,r,a,l,ct,ki,bt,ft,et,ot,fi,kt,dt,di,gt,ei,gi,p,w,b,k,it,v,rt,oi,si,hi,nr,d,ci,g,u,h,lt,li,at,or=function(t){var i=t.parentElement.getElementsByClassName(n.SELECT_LABEL_SELECTOR)[0];for(i.removeAttribute("style"),t.removeAttribute("style"),t.selectedIndex=0,t.classList.remove(n.ACTIVE_DROPDOWN);t.length>1;)t.remove(1)},sr=function(){var t=this.options[e.selectedIndex].value,r=i.getElementsByClassName("js-"+t),u=i.getElementsByClassName(n.ACCOUNT_OPTION);nt.disabled=!1;t===n.ACCOUNT_OPTION_ZIP_CODE?(pt.classList.add(n.HIDDEN_CLASS),ut.classList.remove(n.HIDDEN_CLASS)):pt.classList.remove(n.HIDDEN_CLASS);tr();yi(ft);_.each(u,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(r,function(t){t.classList.remove(n.HIDDEN_CLASS)})},tr=function(){_.each(bi,function(t){t.value="";t.classList.remove(n.INPUT_FILLED);var i=t.parentElement.getElementsByClassName(n.SELECT_LABEL_SELECTOR)[0];i!=undefined&&(i.removeAttribute("style"),t.removeAttribute("style"),t.selectedIndex=0,t.classList.remove(n.SELECT_FILLED))});fi&&fi.classList.add(n.HIDDEN_CLASS)},hr=function(){var t=e.options[e.selectedIndex].value,r=$(i).valid();r&&(new coned.components.SubmitAnimation(f,cr,vr,ni,!1,!1),t===n.ACCOUNT_OPTION_ZIP_CODE&&gt.classList.remove(n.FORM_LOADING_HIDDEN))},cr=function(){var r=i.dataset.lookupServiceUrl,u=i.dataset.altCheckOutage,f=i.dataset.notFoundAccountMessage,e=query.getFormInputValue(i,n.FORM_ACCOUNT_NUMBER_NAME),o=di.dataset.maid,t;yi(ft);t={ScId:query.getFormInputValue(i,n.FORM_SCID_NAME),UnauthScId:query.getFormInputValue(i,n.FORM_UNAUTH_SCID_NAME),FindBy:query.getFormInputValue(i,n.FORM_FIND_ACCOUNT_VIA_NAME),PhoneNumber:query.getFormInputValue(i,n.FORM_PHONE_NUMBER_NAME),Borough:query.getFormInputValue(i,n.FORM_BOROUGH_NAME),AccountNumber:e,AccountMaid:o};u&&(t.NotFoundAccountMessage=f);query.postData(r,lr,ar,JSON.stringify(t),!0)},lr=function(n){(f.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS),at=!0,coned.utils.isPatternLab())||(h=n,lt&&ut.focus())},ar=function(n){(f.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS),at=!1,coned.utils.isPatternLab())||(h=n)},vr=function(){var t=e.options[e.selectedIndex].value;coned.utils.isPatternLab()?t==n.ACCOUNT_OPTION_PHONE?query.getData(coned.plConstants.GET_LOOKUP_ACCOUNTS,vt,ni):t!==n.ACCOUNT_OPTION_ZIP_CODE&&query.getData(coned.plConstants.GET_LOOKUP_ACCOUNT,vt,ni):t!==n.ACCOUNT_OPTION_ZIP_CODE&&vt(h);gt.classList.add(n.FORM_LOADING_HIDDEN)},yr=function(t){_.each(si,function(i){t==="show"?query.removeClass(i,n.HIDDEN_CLASS):t==="hide"&&query.addClass(i,n.HIDDEN_CLASS)})},vt=function(t){nt.classList.remove(n.LOOKUP_BUTTON);rr(!0);or(r);for(var i=a.length;i>1;i--)a[i-1].remove();l=a[0];t.Accounts.length>1?(f.classList.add(n.HIDDEN_CLASS),s.classList.add(n.HIDDEN_CLASS),wr(t.Accounts)):(s.classList.remove(n.HIDDEN_CLASS),pr(t.Accounts[0]));ti.classList.add(n.HIDDEN_CLASS);st.classList.remove(n.HIDDEN_CLASS);ei.classList.add(n.HIDDEN_CLASS);coned.utils.isOru()||(ct.classList.add(n.HIDDEN_CLASS),bt.classList.add(n.HIDDEN_CLASS));st&&st.focus()},pr=function(t){var f=l.getElementsByClassName(n.ADDRESS_BOX_ADDRESS_1)[0],r=l.getElementsByClassName(n.ADDRESS_BOX_ADDRESS_2)[0],e,o,s;ht.dataset.maid=t.MaskedAccountNumber;ht.innerHTML=t.AccountNumber;ri.classList.add(n.HIDDEN_CLASS);ii.classList.remove(n.HIDDEN_CLASS);u?(f.innerHTML=t.ServiceAddress.StreetAddress,t.ServiceAddress.UnitNumber&&t.ServiceAddress.UnitNumber.trim()!=""&&(f.innerHTML+=", "+t.ServiceAddress.UnitNumber),r.innerHTML=t.ServiceAddress.City,t.ServiceAddress.State&&(r.innerHTML+=", "+t.ServiceAddress.State),t.ServiceAddress.PostalCode&&(r.innerHTML+=" "+t.ServiceAddress.PostalCode)):(e="<b>"+t.AccountNumber.substr(t.AccountNumber.length-parseInt(i.dataset.accountNumberLength))+"<\/b>",f.classList.add(n.ADDRESS_DROPDOWN_BOX_TITLE_NON_AUTENTICATED),f.innerHTML=i.dataset.accountNumberMessage+e,t.hasOwnProperty("ServiceAddress")&&t.ServiceAddress!==null?(o="<b>"+t.ServiceAddress.StreetAddress.substr(0,parseInt(i.dataset.streetAddressLength))+"<\/b>",s=t.ServiceAddress.City+", "+t.ServiceAddress.State,r.innerHTML=i.dataset.streetAddressMessage+o+"<br>"+s):r.innerHTML=i.dataset.customerNameMessage+"<b>"+t.CustomerName.substr(0,i.dataset.customerNameLength)+"<\/b>");l.dataset.maid=t.MaskedAccountNumber;l.classList.remove(n.HIDDEN_CLASS);v.classList.add(n.HIDDEN_CLASS);tt.classList.remove(n.HIDDEN_CLASS)},wr=function(t){_.each(t,function(t,f){var h=document.createElement("option"),o=l.cloneNode(!0),s=o.getElementsByClassName(n.ADDRESS_BOX_ADDRESS_1)[0],e=o.getElementsByClassName(n.ADDRESS_BOX_ADDRESS_2)[0],c,a,y;h.text=t.AccountNumber;h.value=t.MaskedAccountNumber;r.add(h,f+1);u?(s.innerHTML=t.ServiceAddress.StreetAddress,t.ServiceAddress.UnitNumber&&t.ServiceAddress.UnitNumber.trim()!=""&&(s.innerHTML+=", "+t.ServiceAddress.UnitNumber),e.innerHTML=t.ServiceAddress.City,t.ServiceAddress.State&&(e.innerHTML+=", "+t.ServiceAddress.State),t.ServiceAddress.PostalCode&&(e.innerHTML+=" "+t.ServiceAddress.PostalCode)):(c="<b>"+t.AccountNumber.substr(t.AccountNumber.length-parseInt(i.dataset.accountNumberLength))+"<\/b>",s.classList.add(n.ADDRESS_DROPDOWN_BOX_TITLE_NON_AUTENTICATED),s.innerHTML=i.dataset.accountNumberMessage+c,t.hasOwnProperty("ServiceAddress")&&t.ServiceAddress!==null?(a="<b>"+t.ServiceAddress.StreetAddress.substr(0,parseInt(i.dataset.streetAddressLength))+"<\/b>",y=t.ServiceAddress.City+", "+t.ServiceAddress.State,e.innerHTML=i.dataset.streetAddressMessage+a+"<b>"+y+"<\/b>"):e.innerHTML=i.dataset.customerNameMessage+"<b>"+t.CustomerName.substr(0,i.dataset.customerNameLength)+"<\/b>");o.dataset.maid=t.MaskedAccountNumber;l.insertAdjacentElement("afterend",o);v.classList.add(n.HIDDEN_CLASS);tt.classList.remove(n.HIDDEN_CLASS)});l.parentNode.removeChild(l);a=i.getElementsByClassName(n.ADDRESS_BOX_SELECTOR);query.addClass(a,n.HIDDEN_CLASS);ii.classList.add(n.HIDDEN_CLASS);ri.classList.remove(n.HIDDEN_CLASS)},ni=function(){var t=ft.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];ft.classList.remove(n.HIDDEN_CLASS);t.innerHTML=h.errorMsg?h.errorMsg:coned.constants.ERROR_MESSAGE;ft.focus();gt.classList.add(n.FORM_LOADING_HIDDEN)},br=function(){f.classList.remove(n.HIDDEN_CLASS);coned.utils.isOru()||(ct.classList.add(n.HIDDEN_CLASS),bt.classList.add(n.HIDDEN_CLASS));kr()},kr=function(){var t,i=r.value;query.addClass(a,n.HIDDEN_CLASS);_.each(a,function(r){t=r.dataset.maid;i==t&&r.classList.remove(n.HIDDEN_CLASS)})},ir=function(t){t.preventDefault();var i=e.options[e.selectedIndex].value;p&&p.classList.add(n.OUTAGE_CONFIRMATION_HEADING_MARGIN_BOTTOM_CLASS);w&&w.classList.remove(n.HIDDEN_CLASS);b&&b.classList.remove(n.HIDDEN_CLASS);k&&k.classList.remove(n.HIDDEN_CLASS);s&&s.classList.add(n.HIDDEN_CLASS);c&&c.classList.remove(n.BUTTONS_CONTAINER_NO_MARGIN_TOP_CLASS);o&&o.classList.add(n.HIDDEN_CLASS);y&&y.classList.add(n.HIDDEN_CLASS);d&&d.classList.add(n.HIDDEN_CLASS);it&&it.classList.remove(n.HIDDEN_CLASS);ti.classList.remove(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);ei.classList.remove(n.HIDDEN_CLASS);rt.classList.remove(n.HIDDEN_CLASS);st.classList.add(n.HIDDEN_CLASS);nt.classList.add(n.LOOKUP_BUTTON);v.classList.add(n.HIDDEN_CLASS);tt.classList.remove(n.HIDDEN_CLASS);i===n.ACCOUNT_OPTION_ZIP_CODE&&(query.fireEvent(kt,"cleanUp"),f.classList.add(n.HIDDEN_CLASS),ut.classList.remove(n.HIDDEN_CLASS));rr();tr()},dr=function(t){t.preventDefault();p&&p.classList.add(n.OUTAGE_CONFIRMATION_HEADING_MARGIN_BOTTOM_CLASS);w&&w.classList.remove(n.HIDDEN_CLASS);b&&b.classList.remove(n.HIDDEN_CLASS);k&&k.classList.remove(n.HIDDEN_CLASS);c&&c.classList.remove(n.BUTTONS_CONTAINER_NO_MARGIN_TOP_CLASS);o&&o.classList.add(n.HIDDEN_CLASS);y&&y.classList.add(n.HIDDEN_CLASS);d&&d.classList.add(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);rt.classList.remove(n.HIDDEN_CLASS);v.classList.add(n.HIDDEN_CLASS);tt.classList.remove(n.HIDDEN_CLASS)},rr=function(t){var r=i.getElementsByClassName(n.CHECK_BUTTON_TEXT)[0],u=nt.dataset.text,f=nt.dataset.replaceText;r.innerHTML=t?f:u},gr=function(){var o=i.dataset.statusServiceUrl,s=i.dataset.noOutageText,h=i.dataset.outageStatusTextNoEtrResult,c=i.dataset.outageStatusTextNoEtr,l=i.dataset.outageStatusText,a=i.dataset.outageStatusTextExpiredEtr,v=i.dataset.altCheckOutage,f,u,t,e;f=r&&r.options.length>1?r.options[r.selectedIndex].value:ht.dataset.maid;yi(et);u=lt?g.getResponse():null;t={};lt&&u&&u!==""&&(e=u);v?(t={ScId:query.getFormInputValue(i,n.FORM_SCID_NAME),Maid:f,NoOutageText:s,OutageStatusTextNoETRResult:h,OutageStatusTextNoETR:c,OutageStatusText:l,OutageStatusTextExpiredETR:a,Verify:e},query.postData(o,ur,fr,JSON.stringify(t),!0)):(t={ScId:query.getFormInputValue(i,n.FORM_SCID_NAME),Maid:f,Verify:e},query.getData(o,ur,fr,t))},ur=function(n){f.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS);h=n},fr=function(n){f.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);h=n},nu=function(){coned.utils.isPatternLab()?r&&r.options.length>1?coned.utils.isOru()?query.getData(coned.plConstants.GET_OUTAGE_STATUS_MULTIPLE,vi,yt):query.getData(coned.plConstants.GET_OUTAGE_STATUS_MULTIPLE,ai,yt):coned.utils.isOru()?query.getData(coned.plConstants.GET_OUTAGE_STATUS_SINGLE,vi,yt):query.getData(coned.plConstants.GET_OUTAGE_STATUS_SINGLE,ai,yt):coned.utils.isOru()?vi(h):ai(h)},ai=function(t){var u=t.OutageExists,e=u&&t.OutageETR,h=u&&t.OutageDetails.RestoreTime,ot=u&&t.DateTimeAppNow,l=u&&new Date,a=u&&e&&new Date(ot).getTime(),g=u&&e&&new Date(e).getTime(),nt=u&&l.setHours(0,0,0,0),ut=u&&e&&new Date(e),ft=u&&e&&e.toString().match(/(\d{1,2}:\d{1,2}\s.{2})/gm)[0],st=u&&e&&e.toString().match(/(\d{1,2}\/\d{1,2}\/\d{4})/gm)[0],et=u&&e&&ut.setHours(0,0,0,0),ht=u&&e&&i.dataset.todayEtrMessage.replace(n.TIME_TOKEN,ft),lt=u&&e&&i.dataset.dateEtrMessage.replace(n.TIME_TOKEN,ft).replace(n.DATE_TOKEN,st);nr=u&&t.OutageDetails.IsPredictive;f.classList.add(n.HIDDEN_CLASS);u?(v.classList.remove(n.HIDDEN_CLASS),tt.classList.add(n.HIDDEN_CLASS),p&&p.classList.remove(n.OUTAGE_CONFIRMATION_HEADING_MARGIN_BOTTOM_CLASS),w&&w.classList.add(n.HIDDEN_CLASS),b&&b.classList.add(n.HIDDEN_CLASS),k&&k.classList.add(n.HIDDEN_CLASS),it&&it.classList.add(n.HIDDEN_CLASS),s&&s.classList.add(n.HIDDEN_CLASS),c&&c.classList.add(n.BUTTONS_CONTAINER_NO_MARGIN_TOP_CLASS),o&&o.classList.remove(n.HIDDEN_CLASS),y&&y.classList.remove(n.HIDDEN_CLASS),rt&&rt.classList.add(n.HIDDEN_CLASS),d&&d.classList.remove(n.HIDDEN_CLASS),ui.innerHTML="<b>"+i.dataset.etrTitle+"<\/b>",u&&h==="Out"&&e&&et===nt&&g>a&&ut.toDateString()===l.toDateString()?wt.innerHTML=ht:u&&h==="Out"&&e&&et>nt?wt.innerHTML=lt:(u&&h==="Out"&&e===""||u&&h==="Out"&&e&&g<a||u&&h!=="Out")&&(wt.innerHTML=i.dataset.asapEtrMessage),v&&v.focus()):(bt.classList.remove(n.HIDDEN_CLASS),ki.innerHTML=t.ErrorMessage,ct.classList.remove(n.HIDDEN_CLASS),ct.focus(),r&&r.options.length>1&&s&&s.classList.add(n.HIDDEN_CLASS));er()},vi=function(t){var i=t.OutageJobStatusLongText;f.classList.add(n.HIDDEN_CLASS);v.classList.remove(n.HIDDEN_CLASS);tt.classList.add(n.HIDDEN_CLASS);p&&p.classList.remove(n.OUTAGE_CONFIRMATION_HEADING_MARGIN_BOTTOM_CLASS);w&&w.classList.add(n.HIDDEN_CLASS);b&&b.classList.add(n.HIDDEN_CLASS);k&&k.classList.add(n.HIDDEN_CLASS);it&&it.classList.add(n.HIDDEN_CLASS);s&&s.classList.add(n.HIDDEN_CLASS);c&&c.classList.add(n.BUTTONS_CONTAINER_NO_MARGIN_TOP_CLASS);o&&o.classList.remove(n.HIDDEN_CLASS);y&&y.classList.remove(n.HIDDEN_CLASS);rt&&rt.classList.add(n.HIDDEN_CLASS);d&&d.classList.remove(n.HIDDEN_CLASS);ui.innerHTML="<b>"+i+"<\/b>";v.focus();er()},yt=function(){var t=et.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];et.classList.remove(n.HIDDEN_CLASS);t.innerHTML=h.errorMsg?h.errorMsg:coned.constants.ERROR_MESSAGE;et&&et.focus()},tu=function(){var n,t,i=r.value;return _.each(a,function(r){n=r.dataset.maid;i==n&&(t=r)}),t},er=function(){var w=i.getElementsByClassName(n.ADDRESS_CONFIRMATION_BOX_ADDRESS_1)[0],b=i.getElementsByClassName(n.ADDRESS_CONFIRMATION_BOX_ADDRESS_2)[0],s=r&&r.options.length>1,h=s?tu():l,k=h.getElementsByClassName(n.ADDRESS_BOX_ADDRESS_1)[0],t=h.getElementsByClassName(n.ADDRESS_BOX_ADDRESS_2)[0],f=t.textContent.includes(i.dataset.streetAddressMessage),a=!u&&i.dataset.streetAddressMessage,d=u&&i.dataset.streetAddressMessageAuthenticated,g=u&&i.dataset.accountNumberMessageAuthenticated,nt=s?query.getDropdownInputTextByElement(r):ht.textContent.trim(),tt=!u&&i.dataset.streetAddressLength-1,it=!u&&i.dataset.customerNameLength-1,v=!u&&i.dataset.customerNameMessage,y=k.innerHTML,e=u?t.innerHTML:f?t.textContent.split(a)[1]:t.textContent.split(v)[1],p=!u&&f?coned.utils.insertStringAtIndex(e,"<br>",tt):coned.utils.insertStringAtIndex(e,"<br>",it);w.innerHTML=u?g+" <b>"+nt+"<\/b>":y;b.innerHTML=u?d+" "+y+" <b>"+e+"<\/b>":f?a+"<b>"+p+"<\/b>":v+"<b>"+p+"<\/b>";nr===!0&&(oi&&oi.classList.remove(n.HIDDEN_CLASS),si&&yr("show"),hi&&hi.classList.remove(n.HIDDEN_CLASS),c&&c.classList.remove(n.BUTTONS_CONTAINER_NO_MARGIN_TOP_CLASS),o&&o.classList.add(n.HIDDEN_CLASS))},yi=function(t){t.classList.add(n.HIDDEN_CLASS)},pi=function(){var t=query.hasClass(nt,n.LOOKUP_BUTTON);t?hr():new coned.components.SubmitAnimation(f,gr,nu,yt,!1,!0)},wi=function(){u||!lt?pi():g&&g.getResponse()===""?g.checkRecaptcha():g&&g.getResponse()!==""&&(g.reset(),g.checkRecaptcha())},iu=function(){r&&(r.selectedIndex=0);e&&(e.selectedIndex=0)},ru=function(){u=i.dataset.userStatus;ht=i.getElementsByClassName(n.ACCOUNT_RECEPTOR)[0];r=i.getElementsByClassName(n.MULTIPLE_ACCOUNT_SELECT)[0];a=i.getElementsByClassName(n.ADDRESS_BOX_SELECTOR);nt=i.getElementsByClassName(n.SUBMIT_BUTTON)[0];f=nt.parentNode.parentNode;et=i.getElementsByClassName(n.STATUS_ERROR_SELECTOR)[0];p=i.getElementsByClassName(n.TITLE_SELECTOR)[0];w=i.getElementsByClassName(n.REQUIRED_FIELDS_MESSAGE_SELECTOR)[0];b=i.getElementsByClassName(n.DESCRIPTION_MAIN_SELECTOR)[0];k=i.getElementsByClassName(n.CHECK_OUTAGE_NAV_SELECTOR)[0];it=i.getElementsByClassName(n.DESCRIPTION_SECONDARY_SELECTOR)[0];v=i.getElementsByClassName(n.OUTAGE_CONFIRMATION_SELECTOR)[0];rt=i.getElementsByClassName(n.STATUS_QUESTION_SELECTOR)[0];oi=i.getElementsByClassName(n.PREDICTIVE_FLAG_RECEIVED)[0];si=i.getElementsByClassName(n.PREDICTIVE_FLAG_INFORMATION);hi=i.getElementsByClassName(n.RESTORATION_UPDATES_CTA)[0];ri=i.getElementsByClassName(n.ACCOUNTS_CONTAINER_SELECTOR)[0];wt=i.getElementsByClassName(n.ETR_SELECTOR)[0];ui=i.getElementsByClassName(n.ETR_TITLE_SELECTOR)[0];d=i.getElementsByClassName(n.OUTAGE_TILES_SELECTOR)[0];o=i.getElementsByClassName(n.NOT_MY_ADDRESS_CONFIRMATION_BUTTON)[0];y=i.getElementsByClassName(n.COVID_INFORMATION_PARAGRAPH)[0];tt=i.getElementsByClassName(n.CHECK_OUTAGE_CONTAINER)[0];c=i.getElementsByClassName(n.TEXT_AREA_BUTTONS_CONTAINER)[0];l=a[0];st=i.getElementsByClassName(n.ACCOUNT_RESULTS)[0];gi=document.getElementsByClassName(n.CAPTCHA_ELEMENT_CLASS);lt=gi.length;li=i.dataset.systemOut==="true"?!0:!1;coned.utils.isPatternLab()&&(li=coned.utils.getUrlParameterValue(n.SYSTEM_OUT_PARAMETER)?!0:!1);r&&(ci=r.dataset.selectedAccount);coned.utils.isOru()||(ct=i.getElementsByClassName(n.OUTAGE_STATUS)[0],bt=i.getElementsByClassName(n.OUTAGE_REPORT)[0],ki=i.getElementsByClassName(n.OUTAGE_DESCRIPTION)[0]);u||(e=i.getElementsByClassName(n.ACCOUNT_OPTION_SELECT)[0],bi=i.getElementsByClassName(n.VALIDATE_ITEM),ti=i.getElementsByClassName(n.FIND_ACCOUNT_CONTAINER)[0],ii=i.getElementsByClassName(n.ACCOUNT_CONTAINER_SELECTOR)[0],s=i.getElementsByClassName(n.NOT_MY_ADDRESS_BUTTON)[0],ot=i.getElementsByClassName(n.ADDRESS_LOOKUP_FORM)[0],di=ot.getElementsByClassName(n.ADDRESS_SELECTED_DETAIL_CLASS)[0],ut=ot.getElementsByClassName(n.CONTINUE_BUTTON)[0],kt=ot.getElementsByClassName(n.AUTOCOMPLETE_ZIPCODE)[0],fi=ot.getElementsByClassName(n.AUTOCOMPLETE_ADDRESS_SELECTED_CONTAINER)[0],dt=ot.getElementsByClassName(n.AUTOCOMPLETE_APARMENT_UNIT)[0],ft=i.getElementsByClassName(n.LOOKUP_ERROR_SELECTOR)[0],gt=i.getElementsByClassName(n.FORM_LOADING)[0],pt=i.getElementsByClassName(n.SUBMIT_ANIMATION_CONTAINER)[0],ei=i.getElementsByClassName(n.RECAPTCHA)[0],at=!0)},uu=function(){r&&(r.addEventListener("change",br),ci?(_.each(r.options,function(n){n.value==ci&&(n.selected="selected")}),query.fireEvent(r,"change")):iu());u?coned.utils.addGeneralListeners(o,dr):(e.addEventListener("change",sr),coned.utils.addGeneralListeners(s,ir),coned.utils.addGeneralListeners(o,ir),dt&&(dt.addEventListener("selectedOptionEnd",wi),dt.addEventListener("checkAddress",wi)),kt&&kt.addEventListener("invalidZip",function(){at=!1}),ut&&coned.utils.addGeneralListeners(ut,function(){var t=$(i).valid();t&&at?(coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_LOOKUP_ACCOUNT,vt,ni):vt(h),pt.classList.remove(n.HIDDEN_CLASS),window.scrollTo(0,0)):$(i).validate()}),li&&(e.value="zipcode",query.fireEvent(e,"change"),e.classList.add(n.HIDDEN_CLASS)));new coned.components.ValidateForm("."+n.CHECK_OUTAGE_FORM,wi);g=new coned.components.Recaptcha(i,pi,pi)},fu=function(){ru();uu();t=!0};fu()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.CheckboxReceipt=function(){var n={CHECKBOX_SELECTOR:"js-checkbox-selector",CHECKBOX_CHECKED_CLASS:"checkbox-receipt--disabled",CHECKBOX_INDICATOR:"checkbox-receipt__indicator"},t=!1,i=function(i){var r,u,f=function(){r.checked?query.removeClass(i,n.CHECKBOX_CHECKED_CLASS):query.addClass(i,n.CHECKBOX_CHECKED_CLASS)},e=function(n){n.preventDefault();r.click()},o=function(){r=i.getElementsByClassName(n.CHECKBOX_SELECTOR)[0];u=i.getElementsByClassName(n.CHECKBOX_INDICATOR)[0]},s=function(){r.addEventListener("change",f);coned.utils.addGeneralListeners(u,e)},h=function(){o();s();t=!0};h()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.CollapsibleContainerComponent=function(){var n={ARIA_EXPANDED:"aria-expanded",COLLAPSIBLE_CONTAINER_BTN_CLASS:"js-collapsible-container",COLLAPSIBLE_CONTAINERS_BTN_CLASS:"collapsible-container__item-button",COLLAPSIBLE_CONTAINER_ITEM_CLASS:"collapsible-container__item",COLLAPSIBLE_CONTAINER_ITEM_ACTIVE_CLASS:"collapsible-container__item--open",DEEP_LINK_EVENT:"deeplink-event"},t=!1,i=function(i){var u,r,e=function(t){var r=t.detail.collapseAll;r&&(Array.from(i.getElementsByClassName(n.COLLAPSIBLE_CONTAINER_ITEM_ACTIVE_CLASS)).forEach(function(t){t.classList.remove(n.COLLAPSIBLE_CONTAINER_ITEM_ACTIVE_CLASS)}),Array.from(i.getElementsByClassName(n.COLLAPSIBLE_CONTAINER_BTN_CLASS)).forEach(function(t){t.setAttribute(n.ARIA_EXPANDED,"true")}))},f=function(t,i){var u,f;t&&t.preventDefault();u=t?t.currentTarget:i;query.hasClass(u,n.COLLAPSIBLE_CONTAINERS_BTN_CLASS)||(u=u.parentElement);f=u.parentElement;query.hasClass(f,n.COLLAPSIBLE_CONTAINER_ITEM_ACTIVE_CLASS)?(u.setAttribute(n.ARIA_EXPANDED,"false"),query.removeClass(f,n.COLLAPSIBLE_CONTAINER_ITEM_ACTIVE_CLASS)):(u.setAttribute(n.ARIA_EXPANDED,"true"),query.removeClass(r,n.COLLAPSIBLE_CONTAINER_ITEM_ACTIVE_CLASS),query.addClass(f,n.COLLAPSIBLE_CONTAINER_ITEM_ACTIVE_CLASS))},o=function(){u=i.getElementsByClassName(n.COLLAPSIBLE_CONTAINER_BTN_CLASS);r=i.getElementsByClassName(n.COLLAPSIBLE_CONTAINER_ITEM_CLASS)},s=function(){_.each(u,function(n){coned.utils.addGeneralListeners(n,f)});_.each(r,function(t){t.addEventListener(n.DEEP_LINK_EVENT,function(t){var i=t.target.getElementsByClassName(n.COLLAPSIBLE_CONTAINER_BTN_CLASS)[0];f(null,i)})});i.addEventListener(coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,e)},h=function(){o();s();t=!0};h()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ComparisonTable=function(){var n={SITECORE_ID_NAME:"ScId",COLUMN_0_DROPDOWN_SELECTOR:"js-select-column-0",COLUMN_1_DROPDOWN_SELECTOR:"js-select-column-1",ROW_SELECTOR:"js-row",CELL_SELECTOR:"js-cell",IMAGE_SELECTOR:"js-image",TEXT_SELECTOR:"js-text",ERROR_MESSAGE_SELECTOR:"js-service-error",HEADER_SELECTOR:"js-header-wrapper",STICKY_ROW_SELECTOR:"js-sticky-row",STICKY_NAV_MODULE_SELECTOR:"js-anchor-link-module",HIDDEN_CLASS:"hidden",CHANGE_EVENT:"change",TOP_PROPERTY:"top",OPTION_ELEMENT:"option"},t=!1,i=function(i){var e,o,a,v,r,u,s,w,y,f,c,rt=function(){var r=i.dataset.getServiceUrl,t;t={scId:query.getFormInputValue(i,n.SITECORE_ID_NAME)};query.getData(r,ut,b,t,!1)},ut=function(n){if(coned.utils.isPatternLab()){var t=i.dataset.plDataLong?coned.plConstants.COMPARISON_TABLE_DATA_LONG:coned.plConstants.COMPARISON_TABLE_DATA;query.getData(t,function(n){k(n);d()},b)}else k(n),d()},b=function(){query.removeClass(w,n.HIDDEN_CLASS)},k=function(n){e=n},d=function(){var i=e[0].Cells,f=[r,u],t;f.forEach(function(r){for(var u=3;u<i.length;u++)t=document.createElement(n.OPTION_ELEMENT),t.value=t.text=i[u],r.add(t)})},g=function(t){var f=t.target,o=f.selectedIndex,l=f===r?0:1,a=[null,null],v,h,c,y,u,p,w,b,i;if(ft(o)){et(f);ot();return}for(a[l]=o,nt(a),i=0;i<e.length;i++)v=s[i],h=v.getElementsByClassName(n.CELL_SELECTOR)[l],p=e[i],u=p.Cells[o+1],e[i].IsImage===!0?(c=h.getElementsByClassName(n.IMAGE_SELECTOR)[0],w=u.split("|||")[0].trim().replace('alt="',"").replace('"',""),b=u.split("|||")[1].trim().replace('src="',"").replace('"',""),c.alt=w,c.src=b):(y=h.getElementsByClassName(n.TEXT_SELECTOR)[0],y.innerHTML=u)},ft=function(){return r.selectedIndex===u.selectedIndex?!0:!1},et=function(t){for(var y,o,h,c,a,v,i,f,p,w,b,e=0;e<s.length;e++)b=s[e].dataset.isImageRow,o=s[e].getElementsByClassName(n.CELL_SELECTOR),h=o[0],c=o[1],b?(i=h.getElementsByClassName(n.IMAGE_SELECTOR)[0],f=c.getElementsByClassName(n.IMAGE_SELECTOR)[0],p=i.alt,w=i.src,i.alt=f.alt,i.src=f.src,f.alt=p,f.src=w):(a=h.getElementsByClassName(n.TEXT_SELECTOR)[0],v=c.getElementsByClassName(n.TEXT_SELECTOR)[0],y=a.innerHTML,a.innerHTML=v.innerHTML,v.innerHTML=y);t===r?u.selectedIndex=l([!0,null]):r.selectedIndex=l([null,!0])},nt=function(n){n[0]!==null&&(o.dropdownCol0=n[0]);n[1]!==null&&(o.dropdownCol1=n[1])},l=function(n){return n[0]?o.dropdownCol0:n[1]?o.dropdownCol1:void 0},ot=function(){var n=l([!0,null]),t=l([null,!0]);nt([t,n])},st=function(n){a=n},h=function(){return a},ht=function(n){v=n},p=function(){return v},tt=function(n,t,i){var r,u=function(n){n.forEach(function(n){var r;n.contentRect.height!==t()&&(r=n.contentRect.height,i(r),it())})};r=new ResizeObserver(u);r.observe(n)},it=function(){var t=parseFloat(window.getComputedStyle(c,null).getPropertyValue(n.TOP_PROPERTY));f?t!==h()+p()&&(c.style.top=h()+p()+"px"):t!==h()&&(c.style.top=h()+"px")},ct=function(){r=i.getElementsByClassName(n.COLUMN_0_DROPDOWN_SELECTOR)[0];u=i.getElementsByClassName(n.COLUMN_1_DROPDOWN_SELECTOR)[0];s=i.getElementsByClassName(n.ROW_SELECTOR);w=i.getElementsByClassName(n.ERROR_MESSAGE_SELECTOR)[0];y=document.getElementsByClassName(n.HEADER_SELECTOR)[0];f=document.getElementsByClassName(n.STICKY_NAV_MODULE_SELECTOR)[0];c=i.getElementsByClassName(n.STICKY_ROW_SELECTOR)[0];o={dropdownCol0:r.selectedIndex,dropdownCol1:u.selectedIndex};a=y.offsetHeight;f&&(v=f.offsetHeight);it();rt()},lt=function(){r.addEventListener(n.CHANGE_EVENT,g);u.addEventListener(n.CHANGE_EVENT,g);tt(y,h,st);f&&tt(f,p,ht)},at=function(){ct();lt();t=!0};at()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ConedTabs=function(){var n={CONED_TAB_CONTAINER:"js-coned-tabs",CONED_TAB:"js-coned-tab",CONED_TAB_BUTTON:"js-conedtab-tab",CONED_TAB_SECTION:"js-conedtab-section",CONED_TAB_BUTTON_ACTIVE_CLASS:"coned-tabs__tab-item--active",CONED_TAB_SECTION_ACTIVE_CLASS:"coned-tabs__section--active",CONED_TAB_SECTION_INACTIVE_CLASS:"coned-tabs__section--inactive",CONED_TAB_DROPDOWN_SELECTOR:"js-coned-tabs-dropdown",CONED_TAB_DROPDOWN_BUTTON:"js-tab-dropdown-selector",CONED_TAB_DROPDOWN_ITEMS:"js-coned-tab-dropdown-item",CONED_TAB_DROPDOWN_CONTAINER_CLASS:"coned-tabs__dropdown",CONED_TAB_DROPDOWN_CLASS:"coned-tabs__tab--dropdown",CONED_TAB_ACTIVE:"js-tab-active",CONED_TAB_CHANGE_CLASS:"js-tab-cta-change",HIDDEN_CLASS:"hidden",TAB_URL_PARAMETER_NAME:"tab",TAB_URL_PARAMETER:"tab=",FORM_LOADING:"js-form-loading",FORM_LOADING_HIDDEN:"form-loading--hidden",ERROR_CONTAINER_CLASSES:"transactional__error content-gutter",ERROR_ICON_CLASSES:"transactional__error-icon icon-report-problem",TAB_LOADING_DATA_ATTRIBUTE:'data-tab-loading="true"',HEADER_WRAPPER_CLASS:"js-header-wrapper",CONED_TAB_PARENT_CONTAINER:"js-coned-tabs-container",CONED_DROPDOWN_CONTAINER:"js-coned-tabs-select",CONED_DROPDOWN_TOGGLE:"js-coned-tabs-select-toggle",CONED_DROPDOWN_SELECTED:"js-coned-tabs-select-selected",CONED_DROPDOWN_OPTIONS:"js-coned-tabs-options",CONED_DROPDOWN_OPTION:"js-coned-tabs-option",SCROLL_TO_ANIMATION_TIME:300,ACTIVE_CLASS:"active",PARENT_TAB_CLASS:"js-parent-tab",TAB_DEPTH_LEVEL_ATTRIBUTE:"data-tab-depth-level",LAZY_LOAD_CLASS:"js-lazy-load",HEADER_LOADED_WRAPPER_CLASS:"js-header-loaded-wrapper",ROLE:"role",ROLE_LISTBOX:"listbox",ROLE_OPTION:"option",ROLE_TAB:"tab",ROLE_TABPANEL:"tabpanel",ROLE_TABLIST:"tablist",ARIA_CONTROLS:"aria-controls",ARIA_SELECTED:"aria-selected",ARIA_EXPANDED:"aria-expanded",TABINDEX:"tabindex"},t=!1,i=function(i){var r,rt,u,c,o,l,a,d,ut,g,v,f,nt,e,ft,y,tt,s,et,w,p,ot,b,k,st=[],h,pt=function(t){var y,l,a,v,p,i,r;for(t.preventDefault(),e=t.target,query.hasClass(e,n.CONED_TAB_BUTTON)||(e=e.parentElement),v=e.dataset.value,p=e.dataset.tabIndex,et&&ni(e,v,p),f=document.getElementById(v),wt(f),f.hasAttribute("data-script-src")&&ht(),i=0;i<u.length;i++)query.removeClass(u[i],n.CONED_TAB_BUTTON_ACTIVE_CLASS),u[i].setAttribute(n.ARIA_SELECTED,!1),u[i].setAttribute("tabindex",-1);for(r=0;r<c.length;r++)query.addClass(c[r],"coned-tabs__section--inactive"),query.hasClass(c[r],n.CONED_TAB_SECTION_ACTIVE_CLASS)&&(query.removeClass(c[r],n.CONED_TAB_SECTION_ACTIVE_CLASS),query.fireEvent(f,"tab-inactive"));query.addClass(e,n.CONED_TAB_BUTTON_ACTIVE_CLASS);e.setAttribute(n.ARIA_SELECTED,!0);e.setAttribute(n.TABINDEX,0);query.addClass(f,n.CONED_TAB_SECTION_ACTIVE_CLASS);query.removeClass(f,n.CONED_TAB_SECTION_INACTIVE_CLASS);query.fireEvent(f,"tab-active");d&&(d.innerHTML=e.innerHTML);h||query.addClass(o,n.HIDDEN_CLASS);b&&(y=e.dataset.tabIndex,l=s.querySelector('[data-tab-index="'+y+'"]'),a=s.getElementsByClassName(n.ACTIVE_CLASS)[0],l&&tt&&(tt.innerHTML=l.innerHTML,l.classList.add(n.ACTIVE_CLASS)),a&&a.classList.remove(n.ACTIVE_CLASS));query.hasClass(e,n.LAZY_LOAD_CLASS,!0)&&!k&&coned.utils.triggerEvent(e,"lazy-load-start");window.dispatchEvent(new Event("resize"))},wt=function(t){if(!t.hasAttribute("data-child-initialized")&&query.hasClass(t,n.PARENT_TAB_CLASS)){var i=t.getElementsByClassName(n.CONED_TAB_BUTTON_ACTIVE_CLASS)[0];i.setAttribute(n.ARIA_SELECTED,!0);i.setAttribute(n.TABINDEX,0);i.click();t.setAttribute("data-child-initialized",!0)}},ht=function(){if(!f.hasAttribute("data-initialized-script")){var n=document.createElement("script");n.src=f.dataset.scriptSrc;f.appendChild(n);f.setAttribute("data-initialized-script",!0)}},bt=function(t){t.preventDefault();query.hasClass(o,n.HIDDEN_CLASS)?(query.removeClass(o,n.HIDDEN_CLASS),l.setAttribute(n.ARIA_EXPANDED,!0)):(query.addClass(o,n.HIDDEN_CLASS),l.setAttribute(n.ARIA_EXPANDED,!1))},kt=function(){query.addClass(o,n.CONED_TAB_DROPDOWN_CONTAINER_CLASS);query.addClass(o,n.HIDDEN_CLASS);r&&r.setAttribute(n.ROLE,n.ROLE_LISTBOX);for(var t=0;t<a.length;t++)query.addClass(a[t],n.CONED_TAB_DROPDOWN_CLASS),li(a[t])},ct=function(){query.removeClass(o,n.CONED_TAB_DROPDOWN_CONTAINER_CLASS);query.removeClass(o,n.HIDDEN_CLASS);r&&r.setAttribute(n.ROLE,n.ROLE_TABLIST);_.each(a,function(t){query.removeClass(t,n.CONED_TAB_DROPDOWN_CLASS)});_.each(u,function(n){ci(n)})},dt=function(){h=coned.utils.isDesktop();var n=r.parentElement;h?n.firstChild!=r&&n.insertBefore(r,n.firstChild):n.lastChild!=r&&n.appendChild(r)},lt=function(){h=coned.utils.isDesktop();h?ct():kt();dt()},gt=function(){var t;if(window.location.search.includes(n.TAB_URL_PARAMETER_NAME)){var e=r.dataset.tabDepthLevel||"",o=coned.utils.getUrlParameterValue(n.TAB_URL_PARAMETER_NAME+e),u=(o||"").split("-"),f='[data-value="'+u[0]+'"]';u[1]&&(f+='[data-tab-index="'+u[1]+'"]');t=i.querySelector(f);t&&st.includes(t.dataset.value)&&(query.hasClass(t,n.LAZY_LOAD_CLASS,!0)&&(k=!0,window.addEventListener("modules-loaded",function(){k=!1;coned.utils.triggerEvent(t,"lazy-load-start")})),t.click())}},ni=function(t,i,u){var f=coned.utils.getUrlParameters(),o=r.dataset.tabDepthLevel||"",e=n.TAB_URL_PARAMETER_NAME+o,s=u?i+"-"+u:i,h=_.keys(f),c;h.includes(e)&&f[e]===s||(c=_.filter(h,function(t){return t.includes(n.TAB_URL_PARAMETER_NAME)&&t.replace(n.TAB_URL_PARAMETER_NAME,"")>o}),f=_.omit(f,function(n,t){return c.includes(t)}),f[e]=s,coned.utils.setUrlParameters(f))},ti=function(t,i){i.preventDefault();var f=t,u,e;f.dataset.value&&(u=document.querySelector("."+n.CONED_TAB_BUTTON+'[data-value="'+f.dataset.value+'"]'),u&&(e=r.offsetTop-ft.offsetHeight,coned.utils.scrollTo(e,n.SCROLL_TO_ANIMATION_TIME),u.click()))},ii=function(){w==0&&Array.prototype.forEach.call(ut,function(n){w+=n.offsetWidth})},at=function(){ii();rt.clientWidth>w?(query.removeClass(r,n.HIDDEN_CLASS),query.addClass(y,n.HIDDEN_CLASS)):(query.addClass(r,n.HIDDEN_CLASS),query.removeClass(y,n.HIDDEN_CLASS))},ri=function(t,r){var f,u;r.preventDefault();t.classList.contains(n.ACTIVE_CLASS)||(f=t.dataset.tabIndex,u=i.querySelector('[data-tab-index="'+f+'"]'),u&&(ui(t),t.setAttribute(n.ARIA_SELECTED,!0),u.click()),vt())},ui=function(t){var i=t.parentElement.children;_.each(i,function(t){t.setAttribute(n.ARIA_SELECTED,!1)})},vt=function(){s.classList.add(n.HIDDEN_CLASS);v.setAttribute(n.ARIA_EXPANDED,!1)},fi=function(){s.classList.remove(n.HIDDEN_CLASS);v.setAttribute(n.ARIA_EXPANDED,!0)},ei=function(t,i){i.preventDefault();v||(v=i.target);s.classList.contains(n.HIDDEN_CLASS)?fi():vt()},yt=function(n,t,i){n.stopPropagation();switch(n.keyCode){case coned.constants.KEY_CODE.ENTER:case coned.constants.KEY_CODE.SPACE:n.target.click();break;case coned.constants.KEY_CODE.ESC:h||(t.click(),t.focus());break;case coned.constants.KEY_CODE.HOME:n.preventDefault();it(i[0]);break;case coned.constants.KEY_CODE.END:n.preventDefault();it(i[i.length-1]);break;case coned.constants.KEY_CODE.RIGHT:case coned.constants.KEY_CODE.LEFT:case coned.constants.KEY_CODE.UP:case coned.constants.KEY_CODE.DOWN:n.preventDefault();oi(n,i)}},oi=function(n,t){var i=n.keyCode,f=Array.prototype.slice.call(t),r=f.indexOf(n.target),u;u=i===coned.constants.KEY_CODE.RIGHT||i===coned.constants.KEY_CODE.DOWN?hi(r,t):si(r,t);it(u)},it=function(n){n.focus()},si=function(n,t){return t[n-1]||t[t.length-1]},hi=function(n,t){return t[n+1]||t[0]},ci=function(t){t.setAttribute(n.ROLE,n.ROLE_TAB);t.setAttribute(n.ARIA_CONTROLS,t.dataset.value)},li=function(t){t.children[0].setAttribute(n.ROLE,n.ROLE_OPTION);t.children[0].setAttribute(n.ARIA_CONTROLS,t.children[0].dataset.value)},ai=function(){b=i.dataset.dynamicTabs;et=i.dataset.updateUrl;h=coned.utils.isDesktop();r=i.getElementsByClassName(n.CONED_TAB_CONTAINER)[0];u=r.getElementsByClassName(n.CONED_TAB_BUTTON);o=i.getElementsByClassName(n.CONED_TAB_DROPDOWN_SELECTOR)[0];l=i.getElementsByClassName(n.CONED_TAB_DROPDOWN_BUTTON)[0];a=i.getElementsByClassName(n.CONED_TAB_DROPDOWN_ITEMS);d=i.getElementsByClassName(n.CONED_TAB_ACTIVE)[0];nt=document.getElementsByClassName(n.FORM_LOADING)[0];ft=document.getElementsByClassName(n.HEADER_WRAPPER_CLASS)[0];ut=i.getElementsByClassName(n.CONED_TAB);f=i.getElementsByClassName(n.CONED_TAB_SECTION_ACTIVE_CLASS)[0];b&&(rt=i.getElementsByClassName(n.CONED_TAB_PARENT_CONTAINER)[0],y=i.getElementsByClassName(n.CONED_DROPDOWN_CONTAINER)[0],tt=i.getElementsByClassName(n.CONED_DROPDOWN_SELECTED)[0],s=i.getElementsByClassName(n.CONED_DROPDOWN_OPTIONS)[0]);p=i.dataset.loadTag;w=0;k=!1;ot=i.dataset.instance;c=i.getElementsByClassName(n.CONED_TAB_SECTION+"-"+ot)},vi=function(){var n;"IntersectionObserver"in window&&(n=new IntersectionObserver(function(t){t.forEach(function(t){if(t.isIntersecting){var i=t.target;at();n.unobserve(i)}})},{root:null,rootMargin:"0px"}),n.observe(i))},yi=function(){for(var t=0;t<u.length;t++)coned.utils.addGeneralListeners(u[t],pt),st.push(u[t].dataset.value),u[t].addEventListener("keydown",function(n){yt(n,l,u)}),t===0?(u[t].setAttribute(n.TABINDEX,0),u[t].setAttribute(n.ARIA_SELECTED,!0)):(u[t].setAttribute(n.TABINDEX,-1),u[t].setAttribute(n.ARIA_SELECTED,!1));_.each(c,function(t){t.setAttribute(n.ROLE,n.ROLE_TABPANEL)});l&&coned.utils.addGeneralListeners(l.parentElement,bt);o?(lt(),window.addEventListener("resize",lt)):ct();p&&(query.isJSON(p)?dataLayer.push(JSON.parse(p)):dataLayer.push(p));b&&(coned.utils.addParentListener(y,coned.utils.generalEvents(),n.CONED_DROPDOWN_OPTION,ri),coned.utils.addParentListener(y,coned.utils.generalEvents(),n.CONED_DROPDOWN_TOGGLE,ei),g=s.getElementsByClassName(n.CONED_DROPDOWN_OPTION),_.each(g,function(n){n.addEventListener("keydown",function(n){yt(n,v,g)})}),window.addEventListener("resize",function(){at()}),vi());gt();coned.utils.addParentListener(i,coned.utils.generalEvents(),n.CONED_TAB_CHANGE_CLASS,ti);f&&f.hasAttribute("data-script-src")&&ht();nt&&nt.classList.add(n.FORM_LOADING_HIDDEN)},pi=function(){ai();yi();t=!0};pi()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ConfirmationScreen=function(){var n={TILES_SELECTOR:"js-tile",TILE_TITLE_SELECTOR:"js-tile-title",TILE_BUTTON_SELECTOR:"js-tile-button",TILE_CLICK_SUFIX:".tile.click",TAG_BUTTON_1:"tag-button-1",TAG_BUTTON_2:"tag-button-2"},t=!1,i=function(i){var r,u=function(){var t,i,u,f;_.each(r,function(r){t=r.getElementsByClassName(n.TILE_BUTTON_SELECTOR);t&&_.each(t,function(t){coned.utils.addGeneralListeners(t,function(){i=r.getElementsByClassName(n.TILE_TITLE_SELECTOR)[0];u=i?i.textContent.trim():"";f=query.hasClass(t,n.TAG_BUTTON_1)?n.TAG_BUTTON_1:n.TAG_BUTTON_2;dataLayer.push({event:r.dataset.tagPrefix+n.TILE_CLICK_SUFIX,tileTitle:u,tileButton:f})})})})},f=function(){r=i.getElementsByClassName(n.TILES_SELECTOR)},e=function(){r&&u()},o=function(){f();e();t=!0};o()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ContactUsFormModule=function(){var n={SELECT_ACTIVE_CLASS:"js-coned-select-active",LABEL_CLASS:"js-coned-select-label",FIELD_HIDDEN_CLASS:"coned-form__field-container--hidden",SELECT_CONTACT_ME_CLASS:"js-contact-me",CONTACT_ME_HIDDEN_CLASS:"js-contact-me-hidden",SELECT_CONTACT_TOPIC_CLASS:"js-contact-topic",CONTACT_TOPIC_HIDDEN_CLASS:"js-contact-topic-hidden",CONTACT_TOPIC_INPUT_CLASS:"js-contact-topic-field",CONTACT_TOPIC_UPLOAD_CLASS:"js-contact-topic-upload",CONTACT_ACCOUNT_VALUES:["bill","account","meter","moving"],CONTACT_UPLOAD_VALUE:"meter",CONTACT_US_EMAIL_CTA_CLASS:"js-contact-us-email-cta",HEADER_WRAPPER_CLASS:"js-header-wrapper",FORM_CONTACT_US:"js-form-contact-us",INPUTS_QUERY:'button, input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])',FORM_MESSAGE:"js-form-messages",SUCCESS_MESSAGE:"js-success-message",ERROR_MESSAGE:"js-error-message",RESET_FORM:"js-reset-button",DISPLAY:"display",INLINE_BLOCK:"inline-block",NONE:"none",HIDDEN_CLASS:"hidden",LOAD_METER_READING_PARAM:"enableMeterReading"},t=!1,i=function(i){var r,e,o,f,s,h,c,l,u,a,v,y,p,w,d=function(){e.style.display="block";query.addClass(r,n.SELECT_ACTIVE_CLASS);TweenMax.to(e,.2,{top:"10",opacity:"1"})},b=function(){var i=r.options[r.selectedIndex].value,t=document.getElementById(i);_.each(o,function(t){query.addClass(t,n.FIELD_HIDDEN_CLASS)});t.value="";query.removeClass(t.parentElement.parentElement,n.FIELD_HIDDEN_CLASS)},k=function(){var t=f.options[f.selectedIndex].value;_.each(s,function(t){query.addClass(t,n.FIELD_HIDDEN_CLASS)});n.CONTACT_ACCOUNT_VALUES.indexOf(t)!=-1&&(_.each(h,function(t){query.removeClass(t,n.FIELD_HIDDEN_CLASS)}),n.CONTACT_UPLOAD_VALUE==t&&query.removeClass(c,n.FIELD_HIDDEN_CLASS))},g=function(t){t.preventDefault();u.style[n.DISPLAY]===n.NONE&&(p.click(),u.style.display=n.INLINE_BLOCK,a.style.removeProperty(n.DISPLAY),v.style.removeProperty(n.DISPLAY),y.style.removeProperty(n.DISPLAY));coned.utils.focusFirstFormInputField(u);query.scrollToElement(u,w)},nt=function(){r.selectedIndex=1;b();d()},tt=function(){r=i.getElementsByClassName(n.SELECT_CONTACT_ME_CLASS)[0];e=i.getElementsByClassName(n.LABEL_CLASS)[0];o=i.getElementsByClassName(n.CONTACT_ME_HIDDEN_CLASS);f=i.getElementsByClassName(n.SELECT_CONTACT_TOPIC_CLASS)[0];s=i.getElementsByClassName(n.CONTACT_TOPIC_HIDDEN_CLASS);h=i.getElementsByClassName(n.CONTACT_TOPIC_INPUT_CLASS);c=i.getElementsByClassName(n.CONTACT_TOPIC_UPLOAD_CLASS)[0];u=i.getElementsByClassName(n.FORM_CONTACT_US)[0];l=document.getElementsByClassName(n.CONTACT_US_EMAIL_CTA_CLASS)[0];a=i.getElementsByClassName(n.FORM_MESSAGE)[0];v=i.getElementsByClassName(n.SUCCESS_MESSAGE)[0];y=i.getElementsByClassName(n.ERROR_MESSAGE)[0];p=i.getElementsByClassName(n.RESET_FORM)[0];w=document.getElementsByClassName(n.HEADER_WRAPPER_CLASS)[0]},it=function(){r&&(r.addEventListener("change",b),f.addEventListener("change",k),nt(),coned.utils.doActionByURLParam(n.LOAD_METER_READING_PARAM,function(){f.value="meter";k()}));u&&coned.utils.addGeneralListeners(l,g)},rt=function(){tt();it();t=!0};rt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ContentBlock=function(){var n={CONTENT_BLOCK_DESCRIPTION:".content-block__description",CONTENT_BLOCK_CTA:".content-block__cta"},t=!1,i=function(i){function e(){f();t=!0}var r=function(){for(var s=i.querySelector(n.CONTENT_BLOCK_DESCRIPTION),f=s.children,e,u,r,o,t=0;t<f.length;t++)for(e=f[t],u=_.filter(e.children,function(n){return n.tagName&&n.tagName.toLowerCase()==="a"}),r=0;r<u.children;r++)o=u[r],o.addEventListener("click",function(n){n.target.dataset.tagValue&&dataLayer.push({event:n.target.dataset.tagValue})})},u=function(){var t=i.querySelector(n.CONTENT_BLOCK_CTA);t&&t.addEventListener("click",function(n){n.currentTarget.dataset.tagValue&&dataLayer.push({event:n.currentTarget.dataset.tagValue})})},f=function(){r();u()};e()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.Correspondence=function(){var n={CORRESPONDENCE_TABLE_CLASS:"js-correspondence-table",CORRESPONDENCE_ITEM_CLASS:"js-item",CORRESPONDENCE_VIEW_LINK_CLASS:"js-view-correspondence",FORM_LOADING:"js-form-loading",DIV_LOADING_CLASS:"js-div-loading",DIV_LOADING_HIDDEN_CLASS:"form-loading--hidden",SITECORE_ID_NAME:"billingUsageScId",ACCOUNT_MAID_NAME:"accountMaid",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",ERROR_CONTAINER_CLASS:"billing-module--sides-padding billing-module--top-bottom-padding transactional__error",ERROR_ICON_CLASSES:"transactional__error-icon icon-report-problem",HIDDEN_CLASS:"hidden",CORRESPONDENCE_TABLE_UL_SELECTOR:".correspondence-body__table ul",SHOW_MORE_BTN:"correspondence-body__show-more",INITIALOAD:"initialLoad",PAGE_CONTENT_ANCESTOR_SELECTOR:"js-page-content",DOWNLOAD_TAGGING:"document.download"},t=!1,i=function(i){var l,a,r,u,v,f,e,o,y,w=function(t){t.preventDefault();var h=query.selectParentElement(t.target,n.CORRESPONDENCE_ITEM_CLASS),c=i.dataset.serviceUrl,f,e;if(r=query.selectParentElement(t.target,n.CORRESPONDENCE_VIEW_LINK_CLASS),u=h.getElementsByClassName(n.SERVICE_ERROR)[0],u.classList.add(n.HIDDEN_CLASS),e=r.dataset.letterType,dataLayer.push({event:n.DOWNLOAD_TAGGING,documentType:e}),r.dataset.correspondenceLink==="true"){window.open(r.href);return}f={ScId:query.getFormInputValue(document,n.SITECORE_ID_NAME),Maid:query.getFormInputValue(document,n.ACCOUNT_MAID_NAME),LetterDate:r.dataset.letterDate,LetterType:r.dataset.letterType,LetterCode:r.dataset.letterCode,SequenceNumber:r.dataset.sequenceNumber,DocumentId:r.dataset.documentId};o=window.open();query.getData(c,b,s,f,v)},b=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_BILL_LINK,p,s):n.Link&&n.Link!=""?p(n):s(n)},p=function(n){r.dataset.correspondenceLink="true";r.href=n.Link;o.location.href=n.Link},s=function(t){var i=u.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];o.close();u.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;u.focus()},k=function(){var r=i.dataset.tableServiceUrl,t;t={AccountMaid:query.getFormInputValue(document,n.ACCOUNT_MAID_NAME),ScId:query.getFormInputValue(document,n.SITECORE_ID_NAME)};t=JSON.stringify(t);query.postData(r,d,c,t,!0)},d=function(n){coned.utils.isPatternLab()?i.dataset.patternlabCorrespondenceTableBilling?query.getData(coned.plConstants.GET_CORRESPONDENCE_TABLE_BILLING_HTML,h,c):query.getData(coned.plConstants.GET_CORRESPONDENCE_TABLE_HTML,h,c):h(n)},h=function(t){f.classList.add(n.DIV_LOADING_HIDDEN_CLASS);l.innerHTML=t;a=i.getElementsByClassName(n.CORRESPONDENCE_VIEW_LINK_CLASS);v=document.getElementsByClassName(n.FORM_LOADING)[0];new coned.components.LoadMore(i,y);tt();it()},c=function(t){var r=document.createElement("p"),u=document.createElement("span"),e=document.createElement("span");r.className=n.ERROR_CONTAINER_CLASS;u.classList=n.ERROR_ICON_CLASSES;e.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;r.appendChild(u);r.appendChild(e);f.classList.add(n.DIV_LOADING_HIDDEN_CLASS);i.appendChild(r)},g=function(){var r=i.dataset[n.INITIALOAD],t=0;i.querySelector(n.CORRESPONDENCE_TABLE_UL_SELECTOR)&&i.querySelector(n.CORRESPONDENCE_TABLE_UL_SELECTOR).children&&(t=i.querySelector(n.CORRESPONDENCE_TABLE_UL_SELECTOR).children.length);r>=t&&e&&e.classList.add(n.HIDDEN_CLASS)},nt=function(){l=i.getElementsByClassName(n.CORRESPONDENCE_TABLE_CLASS)[0];f=i.getElementsByClassName(n.DIV_LOADING_CLASS)[0];y=query.selectParentElement(i,n.PAGE_CONTENT_ANCESTOR_SELECTOR)},tt=function(){e=i.getElementsByClassName(n.SHOW_MORE_BTN)[0]},it=function(){_.each(a,function(n){coned.utils.addGeneralListeners(n,w)});g()},rt=function(){nt();k();t=!0};rt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.CurrentlyEnrolled=function(){var n={HIDDEN_CLASS:"hidden",ITEM_ARROW:"js-open-arrow",ITEM_CTA_CLASS:"js-cta-item",ENROLLED_ITEM_CLASS:"js-currently-enrolled-item",ENROLLED_ITEM_OPEN_CLASS:"currently-enrolled__item--open",ENROLLED_DESCRIPTION_CLASS:"js-currently-enrolled-description",ENROLLED_DOWNLOAD_BUTTON:"js-download-enrolled-button",UNENROLL_CONTAINER_CLASS:"js-currently-unenroll",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",LOADED_ATTRIBUTE:"data-loaded",FORM_LOADING:"js-form-loading",FORM_LOADING_HIDDEN:"form-loading--hidden",ARIA_EXPANDED_ATTRIBUTE:"aria-expanded"},t=!1,i=function(i){var u,f,o,r,e,s=function(t,i){var r=t.dataset.closeName;query.removeClass(t,n.ENROLLED_ITEM_OPEN_CLASS);i.setAttribute(n.ARIA_EXPANDED_ATTRIBUTE,!1);i.firstElementChild.textContent=r;f=null;u=null},a=function(t,i){var r=t.dataset.openName;query.addClass(t,n.ENROLLED_ITEM_OPEN_CLASS);i.setAttribute(n.ARIA_EXPANDED_ATTRIBUTE,!0);i.firstElementChild.textContent=r;f=t;u=i},v=function(t,i){i.preventDefault();var o=t,r=query.selectParentElement(o,n.ENROLLED_ITEM_CLASS),h=r.getElementsByClassName(n.SERVICE_ERROR)[0],e=r.getElementsByClassName(n.ITEM_CTA_CLASS)[0];h.classList.add(n.HIDDEN_CLASS);query.hasClass(r,n.ENROLLED_ITEM_OPEN_CLASS)?s(r,e):(f&&u&&s(f,u),a(r,e),r.dataset.loaded||(y(r,e),r.dataset.loaded=!0))},y=function(n,t){var r={ParentMaid:n.dataset.parentMaid,ScId:i.dataset.scId};r=JSON.stringify(r);query.postData(i.dataset.serviceUnits,function(i){p(i,n,t)},function(i){c(i,n,t)},r,!0)},p=function(n,t,i){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_UNENROLL_UNITS_LIST,function(n){h(n,t,i)},function(n){c(n,t,i)},null):h(n,t,i)},h=function(t,i,r){var u=i.getElementsByClassName(n.UNENROLL_CONTAINER_CLASS)[0];u.innerHTML=t;coned.utils.initializeModules(u);r.focus()},c=function(t,i,r){var u=i.getElementsByClassName(n.SERVICE_ERROR)[0],f=u.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];s(i,r);i.removeAttribute(n.LOADED_ATTRIBUTE);u.classList.remove(n.HIDDEN_CLASS);f.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;u.focus()},w=function(t){if(t.preventDefault(),dataLayer.push({event:"lofll",lofll:"download.csv"}),r.dataset.fileLink){window.location=r.dataset.fileLink;return}var u={Maid:i.dataset.maid,ScId:i.dataset.scId};u=JSON.stringify(u);e.classList.remove(n.FORM_LOADING_HIDDEN);query.postData(i.dataset.downloadEnrolled,b,l,u,!0)},b=function(t){if(coned.utils.isPatternLab())r.dataset.fileLink=coned.plConstants.PAYMENT_VIEW_DATA;else if(t.url&&t.url!="")r.dataset.fileLink=t.url;else{l(t);return}dataLayer.push({event:"lofll",lofll:"success.data.request"});e.classList.add(n.FORM_LOADING_HIDDEN);window.location=r.dataset.fileLink},l=function(t){var i=o.getElementsByClassName(n.SERVICE_ERROR)[0],r=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];dataLayer.push({event:"lofll",lofll:"error.message"});i.classList.remove(n.HIDDEN_CLASS);r.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;e.classList.add(n.FORM_LOADING_HIDDEN);i.focus()},k=function(){o=document.getElementsByClassName(n.ENROLLED_DESCRIPTION_CLASS)[0];r=o.getElementsByClassName(n.ENROLLED_DOWNLOAD_BUTTON)[0];e=document.getElementsByClassName(n.FORM_LOADING)[0]},d=function(){coned.utils.addParentListener(i,coned.utils.generalEvents(),n.ITEM_ARROW,v);r&&coned.utils.addGeneralListeners(r,w)},g=function(){k();d();t=!0};g()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.CustomerMessaging=function(){var n={SHOW_LIST_BTN_SELECTOR:"js-show-full-list",ACCOUNT_NUMBER_SELECTOR:"js-account-number",SET_COOKIE_SELECTOR:"js-set-cookie",HIDDEN_CLASS:"hidden",COOKIE_MESSAGE_NAME:"CE_CUSTOMERMESSAGEREAD",FIRST_HIDDEN_ACCOUNT:4,LIST_MESSAGE_SELECTOR:"js-list-message",MESSAGE_SELECTOR:"js-message",MULTIPLE_MESSAGES_SELECTOR:"js-multiple-messages",LIST_BOX_SELECTOR:"js-listbox",MESSAGE_READ_STATE_SELECTOR:"js-message-read-state",ACTIVE_MESSAGES_CONTAINER_SELECTOR:"js-active-messages-container",LIST_MESSAGES_CONTAINER_SELECTOR:"js-list-messages-container",BACK_BUTTON_SELECTOR:"js-go-back",BACK_BUTTON_CONTAINER_SELECTOR:"js-go-back-container",POPUP_SELECTOR:"js-popup",POPUP_FOOTER_SELECTOR:"js-popup-footer",MOBILE_NAV_SELECTOR:"js-mobile-nav",REMIND_LATER_SELECTOR:"js-remind-me-later",TEXT_SPAN_REPLACE_SELECTOR:"js-text-span-replace",MESSAGE_ACTIVE_SELECTOR:"js-list-message-active",MESSAGE_READ_SELECTOR:"js-list-message-read",REMIND_AGAIN_PARAGRAPH_CONTAINER_SELECTOR:"js-remind-again-text",MESSAGE_UNREAD_CLASS:"customer-messaging__list-message--unread",MESSAGE_ACTIVE_CLASS:"customer-messaging__list-message--active",MESSAGE_CONTAINER_ACTIVE_CLASS:"customer-messaging__message-container--active",NAV_MOBILE_SHADOW_CLASS:"customer-messaging__nav-mobile--shadow",SHOW_ACTIVE_MESSAGE_ACTION:"show",HIDE_ACTIVE_MESSAGE_ACTION:"hide",READ_MESSAGES_ACTION:"read-messages",ALL_MESSAGES_ACTION:"all-messages",COOKIE_DIVIDER:"|",PX_UNIT:"px",EMPTY_STRING:"",PARAGRAPH_TAG:"p",TABINDEX:"tabindex",ARIA_SELECTED_ATTRIBUTE:"aria-selected",ARIA_ACTIVE_DESCENDANT_ATTRIBUTE:"aria-activedescendant",TRUE_VALUE:!0,FALSE_VALUE:!1,MINUS_ONE_TAB_INDEX:"-1",ZERO_TAB_INDEX:"0",CLICK_EVENT:"click",KEYDOWN_EVENT:"keydown",RESIZE_EVENT:"resize",CLOSE_TAGGING_BUTTON_SELECTOR:"js-close-tagging",CUSTOMER_MESSAGE_CLOSE_TAG:"customer.message.close"},t=!1,i=function(i){var y,p,tt,r,it,u,o,f,w,l,s,a,v,h,rt,b,c,ut,e,k,d,kt=function(t){var u=t.currentTarget,s=query.selectParentElement(u,n.MESSAGE_SELECTOR),r,f,o;if(r=e?s.getElementsByClassName(n.ACCOUNT_NUMBER_SELECTOR):i.getElementsByClassName(n.ACCOUNT_NUMBER_SELECTOR),query.hasClass(r[n.FIRST_HIDDEN_ACCOUNT],n.HIDDEN_CLASS)){for(f=n.FIRST_HIDDEN_ACCOUNT;f<r.length;f++)query.removeClass(r[f],n.HIDDEN_CLASS);u.textContent=u.dataset.replaceText;r[n.FIRST_HIDDEN_ACCOUNT].focus()}else{for(o=n.FIRST_HIDDEN_ACCOUNT;o<r.length;o++)query.addClass(r[o],n.HIDDEN_CLASS);u.textContent=u.dataset.text;r[n.FIRST_HIDDEN_ACCOUNT-1].focus()}},ft=function(n,t){var r=n,i=query.getCookie(r),u=t,f;f=new Date((new Date).setFullYear((new Date).getFullYear()+1));(!i||i&&i!==u)&&query.setCookie(r,u,f)},g=function(t){var f=query.getCookie(n.COOKIE_MESSAGE_NAME),u=n.EMPTY_STRING,i,e=function(t){var r=t.dataset.cookieMessage;f||i?u+=n.COOKIE_DIVIDER+r:u=r;i=f?f+u:u};Array.from(r).forEach(function(i){t===n.READ_MESSAGES_ACTION?query.hasClass(i,n.MESSAGE_READ_SELECTOR)&&e(i):t===n.ALL_MESSAGES_ACTION&&e(i)});i&&ft(n.COOKIE_MESSAGE_NAME,i)},et=function(){var t=query.getCookie(n.COOKIE_MESSAGE_NAME),r=i.dataset.cookieMessage,u;u=t?t+n.COOKIE_DIVIDER+r:r;ft(n.COOKIE_MESSAGE_NAME,u)},dt=function(){for(var t=0;t<p.length;t++)p[t].addEventListener(n.CLICK_EVENT,function(){e?g(n.ALL_MESSAGES_ACTION):et()})},ot=function(t){if(t===n.SHOW_ACTIVE_MESSAGE_ACTION)query.addClass(f,n.HIDDEN_CLASS),query.addClass(a,n.HIDDEN_CLASS),query.addClass(o,n.MESSAGE_CONTAINER_ACTIVE_CLASS),query.addClass(v,n.NAV_MOBILE_SHADOW_CLASS),query.removeClass(l,n.HIDDEN_CLASS),w.focus();else if(t===n.HIDE_ACTIVE_MESSAGE_ACTION){var i=f.getElementsByClassName(n.MESSAGE_ACTIVE_SELECTOR)[0];query.removeClass(f,n.HIDDEN_CLASS);query.removeClass(a,n.HIDDEN_CLASS);query.removeClass(o,n.MESSAGE_CONTAINER_ACTIVE_CLASS);query.removeClass(v,n.NAV_MOBILE_SHADOW_CLASS);query.addClass(l,n.HIDDEN_CLASS);i.focus()}},st=function(){o.focus()},nt=function(t){var o=!t,s=o?i.getElementsByClassName(n.MESSAGE_ACTIVE_SELECTOR)[0]:t.currentTarget,h=Array.from(r).indexOf(s),e;if(!o||s){for(e=0;e<u.length;e++)e===h?query.removeClass(u[e],n.HIDDEN_CLASS):query.addClass(u[e],n.HIDDEN_CLASS);coned.utils.isMobile()?o||query.hasClass(f,n.HIDDEN_CLASS)||ot(n.SHOW_ACTIVE_MESSAGE_ACTION):o?st(!0):st(!1)}},gt=function(n){n.stopPropagation();var i=c.currentIndex,t,r=n.currentTarget;switch(n.keyCode){case coned.constants.KEY_CODE.UP:n.preventDefault();t=i-1;at(t);break;case coned.constants.KEY_CODE.DOWN:n.preventDefault();t=i+1;at(t);break;case coned.constants.KEY_CODE.SPACE:n.preventDefault();lt(r);nt(n);ct()&&ht()}},ni=function(t){t.keyCode===coned.constants.KEY_CODE.ESC&&(e?g(n.ALL_MESSAGES_ACTION):et(),wt())},ht=function(){var i=b.dataset.replaceText,t=b.getElementsByTagName(n.PARAGRAPH_TAG)[0],r=h.dataset.replaceText;t&&(t.textContent=i);rt.textContent=r},ct=function(){for(var i=!0,t=0;t<r.length;t++)if(!query.hasClass(r[t],n.MESSAGE_READ_SELECTOR)){i=!1;break}return i},lt=function(t){Array.from(r).forEach(function(i){var u=i.getElementsByClassName(n.MESSAGE_READ_STATE_SELECTOR)[0],r;i!==t?(i.setAttribute(n.ARIA_SELECTED_ATTRIBUTE,n.FALSE_VALUE),query.removeClass(i,n.MESSAGE_ACTIVE_CLASS),query.removeClass(i,n.MESSAGE_ACTIVE_SELECTOR)):(r=i.id,i.setAttribute(n.ARIA_SELECTED_ATTRIBUTE,n.TRUE_VALUE),it.setAttribute(n.ARIA_ACTIVE_DESCENDANT_ATTRIBUTE,r),u.textContent=ut,query.addClass(i,n.MESSAGE_ACTIVE_CLASS),query.addClass(i,n.MESSAGE_ACTIVE_SELECTOR),query.addClass(i,n.MESSAGE_READ_SELECTOR),query.removeClass(i,n.MESSAGE_UNREAD_CLASS))})},at=function(t){if(t>=0&&t<r.length){var u=c.$currentOption,i=r[t];c.$currentOption=i;c.currentIndex=t;u&&u.setAttribute(n.TABINDEX,n.MINUS_ONE_TAB_INDEX);i&&(i.setAttribute(n.TABINDEX,n.ZERO_TAB_INDEX),i.focus())}},ti=function(){query.removeClass(f,n.HIDDEN_CLASS);query.removeClass(a,n.HIDDEN_CLASS);query.removeClass(o,n.MESSAGE_CONTAINER_ACTIVE_CLASS);query.removeClass(v,n.NAV_MOBILE_SHADOW_CLASS);query.addClass(l,n.HIDDEN_CLASS)},ii=function(t){var i,r=!1;return query.hasClass(s,n.HIDDEN_CLASS)&&(query.removeClass(s,n.HIDDEN_CLASS),r=!0),t&&ti(),Array.from(u).forEach(function(t){var r;t.style.height=n.EMPTY_STRING;query.hasClass(t,n.HIDDEN_CLASS)?(query.removeClass(t,n.HIDDEN_CLASS),r=t.getBoundingClientRect().height,query.addClass(t,n.HIDDEN_CLASS)):r=t.getBoundingClientRect().height;(!i||r>i)&&(i=r)}),r&&query.addClass(s,n.HIDDEN_CLASS),i},vt=function(t){if(coned.utils.isMobile())Array.from(u).forEach(function(t){t.style.height=n.EMPTY_STRING});else{var i=ii(t);Array.from(u).forEach(function(t){t.style.height=i+n.PX_UNIT})}},ri=function(){d=setInterval(function(){++k},1e3)},yt=function(){clearInterval(d);d=null},pt=function(){return k},wt=function(){dataLayer.push({event:n.CUSTOMER_MESSAGE_CLOSE_TAG,timeOfMessage:pt()});yt()},bt=function(n){dataLayer.push({timeOfMessage:pt()});n&&yt()},ui=function(){e=query.hasClass(i,n.MULTIPLE_MESSAGES_SELECTOR);y=i.getElementsByClassName(n.SHOW_LIST_BTN_SELECTOR);p=i.getElementsByClassName(n.SET_COOKIE_SELECTOR);tt=i.getElementsByClassName(n.CLOSE_TAGGING_BUTTON_SELECTOR);h=i.getElementsByClassName(n.REMIND_LATER_SELECTOR)[0];s=query.selectParentElement(i,n.POPUP_SELECTOR);k=0;e&&(r=i.getElementsByClassName(n.LIST_MESSAGE_SELECTOR),u=i.getElementsByClassName(n.MESSAGE_SELECTOR),it=i.getElementsByClassName(n.LIST_BOX_SELECTOR)[0],o=i.getElementsByClassName(n.ACTIVE_MESSAGES_CONTAINER_SELECTOR)[0],f=i.getElementsByClassName(n.LIST_MESSAGES_CONTAINER_SELECTOR)[0],w=i.getElementsByClassName(n.BACK_BUTTON_SELECTOR)[0],l=i.getElementsByClassName(n.BACK_BUTTON_CONTAINER_SELECTOR)[0],a=i.getElementsByClassName(n.POPUP_FOOTER_SELECTOR)[0],v=i.getElementsByClassName(n.MOBILE_NAV_SELECTOR)[0],rt=h.getElementsByClassName(n.TEXT_SPAN_REPLACE_SELECTOR)[0],b=i.getElementsByClassName(n.REMIND_AGAIN_PARAGRAPH_CONTAINER_SELECTOR)[0],ut=i.dataset.readMessageScreenreaderText,c={currentIndex:0,$currentOption:r[0]})},fi=function(){if(y.length>0&&Array.from(y).forEach(function(t){t.addEventListener(n.CLICK_EVENT,kt)}),e){Array.from(r).forEach(function(t){coned.utils.addGeneralListeners(t,function(n){var t=n.currentTarget;nt(n);lt(t);ct()&&ht()});t.addEventListener(n.KEYDOWN_EVENT,gt)});coned.utils.addGeneralListeners(w,function(){ot(n.HIDE_ACTIVE_MESSAGE_ACTION)});vt();coned.utils.onResizeThrottler(function(){vt(!0)});h.addEventListener(n.CLICK_EVENT,function(){g(n.READ_MESSAGES_ACTION)});coned.utils.onResizeThrottler(nt);Array.from(r).forEach(function(t){t.addEventListener(n.CLICK_EVENT,function(){bt(!1)})})}dt();s.addEventListener(n.KEYDOWN_EVENT,ni);ri();Array.from(tt).forEach(function(t){t.addEventListener(n.CLICK_EVENT,wt)});h.addEventListener(n.CLICK_EVENT,function(){bt(!0)})},ei=function(){ui();fi();t=!0};ei()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DashboardConcern=function(){var n={ACCOUNT_MAID:"account-maid",ENROLL_FORM_SELECTOR:"js-concern-enroll-form",MANAGE_FORM_SELECTOR:"js-concern-manage-form",ERROR_FORM_SELECTOR:"js-concern-error-form",SECONDARY_CONTACT_RADIO:"js-secondary-contact-radio",LINK_ACCORDION_SELECTOR:"js-accordion-selector",LINK_DESCRIPTION:"js-link-description",ACCORDION_SELECTOR:"js-accordion-contain",UNENROLLMENT_CLASS:"manage-enroll__list--inactive",ASSISTANCE_PROGRAM_ID:"assistanceProgramsSection",DEEP_LINK_TARGET_ID:"data-deep-link-id",ICON_STATUS_TEXT:"icon-status-text",HIDDEN_CLASS:"hidden",CHECKBOX_SELECTOR:"js-checkbox-selector",SERVICE_ERROR:"js-error-message",FORM_LOADING:"js-form-loading",FORM_SELECTOR:"js-concern-form",DATA_ENROLLED:"data-enrolled",SCID:"ScId",ELDERLY_CHECKBOX:"age62",BLIND_CHECKBOX:"blind",DISABILITY_CHECKBOX:"permanentlyDisabled",SECONDARY_CONTACT_YES:"js-secondary-contact-yes",SECONDARY_CONTACT_FORM:"js-secondary-contact-form",SECONDARY_CONTACT_FIRST_NAME:"secondaryContactFirstName",SECONDARY_CONTACT_LAST_NAME:"secondaryContactLastName",SECONDARY_CONTACT_ADDRESS:"secondaryContactAddress",SECONDARY_CONTACT_APARTMENT:"secondaryContactApartment",SECONDARY_CONTACT_CITY:"secondaryContactCity",SECONDARY_CONTACT_STATE:"secondaryContactState",SECONDARY_CONTACT_ZIPCODE:"secondaryContactZipCode",CONCERN_PARAMETER_NAME:"concern",LAZY_LOAD_CLASS:"js-lazy-load",LAZY_LOAD_TAB_CLASS:"js-lazy-load-manage-my-account",LAZY_LOAD_LOADED_CLASS:"js-lazy-load-element-loaded"},t=!1,i=function(i){var u,e,c,b,f,v,k,d,r,l,y,o,a,s,p,it=function(){var f=i.dataset.serviceUrl,t={Maid:document.getElementById(n.ACCOUNT_MAID).value,ScId:query.getFormInputValue(u,n.SCID),Elderly:query.getCheckboxInputValueById(u,n.ELDERLY_CHECKBOX),Blind:query.getCheckboxInputValueById(u,n.BLIND_CHECKBOX),Disability:query.getCheckboxInputValueById(u,n.DISABILITY_CHECKBOX),OptIn:s};s&&(t.FirstName=query.getFormInputValue(r,n.SECONDARY_CONTACT_FIRST_NAME),t.LastName=query.getFormInputValue(r,n.SECONDARY_CONTACT_LAST_NAME),t.Address=query.getFormInputValue(r,n.SECONDARY_CONTACT_ADDRESS),t.City=query.getFormInputValue(r,n.SECONDARY_CONTACT_CITY),t.State=query.getFormInputValue(r,n.SECONDARY_CONTACT_STATE),t.ZipCode=query.getFormInputValue(r,n.SECONDARY_CONTACT_ZIPCODE));t=JSON.stringify(t);query.postData(f,rt,ut,t,!0,k)},rt=function(){u.classList.add(n.HIDDEN_CLASS);e.classList.remove(n.HIDDEN_CLASS);i.classList.remove(n.UNENROLLMENT_CLASS);o.innerText=o.getAttribute(n.DATA_ENROLLED);f.dataset.openName=f.dataset.manage;query.scrollToElement(e,v);e.focus()},ut=function(){u.classList.add(n.HIDDEN_CLASS);c.classList.remove(n.HIDDEN_CLASS);query.scrollToElement(c,v);c.focus()},ft=function(t){var i=t.target;query.hasClass(i,n.SECONDARY_CONTACT_YES)?(r.classList.remove(n.HIDDEN_CLASS),s=!0,dataLayer.push({"support-status":"Added secondary contact"})):(r.classList.add(n.HIDDEN_CLASS),s=!1,dataLayer.push({"support-status":"No added secondary contact"}))},et=function(){var n="";_.each(y,function(t){t.checked&&(n=n+t.id+"/")});dataLayer.push({condition:n})},g=function(){u=i.getElementsByClassName(n.ENROLL_FORM_SELECTOR)[0];e=i.getElementsByClassName(n.MANAGE_FORM_SELECTOR)[0];c=i.getElementsByClassName(n.ERROR_FORM_SELECTOR)[0];b=i.getElementsByClassName(n.LINK_ACCORDION_SELECTOR)[0];f=i.getElementsByClassName(n.ACCORDION_SELECTOR)[0];d=i.getElementsByClassName(n.SECONDARY_CONTACT_RADIO);r=i.getElementsByClassName(n.SECONDARY_CONTACT_FORM)[0];k=document.getElementsByClassName(n.FORM_LOADING)[0];v=document.getElementsByClassName(n.HEADER)[0];y=i.getElementsByClassName(n.CHECKBOX_SELECTOR);o=i.getElementsByClassName(n.ICON_STATUS_TEXT)[0];s=!0;p=f.dataset.isEligible==="true"?!0:!1},nt=function(){p||query.hasClass(i,n.LAZY_LOAD_CLASS)||(e.classList.remove(n.HIDDEN_CLASS),u.classList.add(n.HIDDEN_CLASS),i.classList.remove(n.UNENROLLMENT_CLASS),o.innerText=o.getAttribute(n.DATA_ENROLLED),b.getElementsByClassName(n.LINK_DESCRIPTION)[0].innerHTML=f.dataset.manage,f.dataset.openName=f.dataset.manage);p&&(new coned.components.ValidateForm("."+n.ENROLL_FORM_SELECTOR,it),_.each(d,function(n){coned.utils.addGeneralListeners(n,ft)}),_.each(y,function(n){coned.utils.addGeneralListeners(n,et)}),dataLayer.push({"support-status":"Added secondary contact"}))},w=function(){if(!t){var n=i.dataset.serviceUrl,r;if(!n){h();return}query.getData(n,ot,h,r)}},ot=function(t){if(coned.utils.isPatternLab()){var i=coned.utils.getUrlParameterValue(n.CONCERN_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.CONCERN_PARAMETER_NAME):coned.constants.DEFAULT_SCENARIO,r=coned.plConstants.GET_CONCERN_SCENARIO_HTML_URL+i+coned.constants.HTML_EXTENSION;query.getData(r,tt,h)}else tt(t)},h=function(){i.classList.add(n.HIDDEN_CLASS);t=!0;a&&(l.removeEventListener("lazy-load-start",w),i.classList.add(n.LAZY_LOAD_LOADED_CLASS),coned.utils.triggerEvent(i,"lazy-load-element-loaded"))},tt=function(r){if(r){var o=new DOMParser,f,u,e;if(f=o.parseFromString(r,"text/html"),u=f.getElementsByClassName(n.FORM_SELECTOR),u.length!==0&&u[0].dataset.content!=="false")u=u[0];else{h();return}for(i.innerHTML=u.innerHTML,e=u.attributes;i.attributes.length>0;)i.removeAttribute(i.attributes[0].name);_.each(e,function(n){i.setAttribute(n.nodeName,n.nodeValue)});i.dataset.module&&(g(),nt(),coned.utils.initializeModules(i))}else{h();return}t=!0;a&&(l.removeEventListener("lazy-load-start",w),i.classList.add(n.LAZY_LOAD_LOADED_CLASS),coned.utils.triggerEvent(i,"lazy-load-element-loaded"));coned.utils.triggerEvent(window,"service-loaded")},st=function(){a=query.hasClass(i,n.LAZY_LOAD_CLASS);a?(l=document.getElementsByClassName(n.LAZY_LOAD_TAB_CLASS)[0],l.addEventListener("lazy-load-start",w)):(g(),nt(),t=!0)},ht=function(){st()};ht()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DashboardDirectPaymentPlan=function(){var n={FORM:".js-direct-payment-form",ENROLL_FORM_SELECTOR:"js-direct-payment-form",MANAGE_FORM_SELECTOR:"js-direct-payment-manage",ORU_MANAGE_FORM:"js-direct-payment-oru-manage",ENROLL_SUCCESS_MESSAGE:"js-direct-payment-enroll-message",CONFIRM_ENROLL_BUTTON:"js-confirm-enroll-button",ENROLL_CLOSE_BUTTON:"js-enroll-close-button",CLOSE_SELECTOR:"js-accordion-close",LINK_ACCORDION_SELECTOR:"js-accordion-selector",ACCORDION_SELECTOR:"js-accordion-contain",UNENROLLMENT_CLASS:"manage-enroll__list--inactive",ICON_STATUS_TEXT:"icon-status-text",CONTAIN_CHECKING_ACCOUNT:"js-checking-account-contain",CONTAIN_ROUTING_ABANUMBER:"js-routing-abanumber-contain",CONTAIN_ACCOUNT_NUMBER:"js-account-number-contain",CONTAINER_CHECKING_ACCOUNT:"js-checking-account-container",CONTAINER_ROUTING_ABANUMBER:"js-routing-abanumber-container",CONTAINER_ACCOUNT_NUMBER:"js-account-number-container",UNENROLL_BUTTON_SELECTOR:"js-unenroll-button",UNENROLL_CONFIRMATION_SELECTOR:"js-direct-payment-unenroll-confirmation",UNENROLL_CONFIRMATION_CANCEL_SELECTOR:"js-direct-payment-unenroll-cancel-confirmation",LINK_DESCRIPTION:"js-link-description",DATA_ENROLLED:"data-enrolled",DATA_NOT_ENROLLED:"data-not-enrolled",RADIO_LABEL_CLASS:"coned-radio__label-name",HIDDEN_CLASS:"hidden",FORM_SCID:"scId",FORM_ACCOUNT_NUMBER:"accountNumber",FORM_ACCOUNT_TYPE:"directPaymentAccountType",FORM_ROUTING_ABA:"routingAbaNumber",ACCOUNT_MAID_INPUT:"accountMaid",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",FORM_LOADING:"js-form-loading",HEADER:"js-header-wrapper",UPDATED_MESSAGE:"js-updated-message",DEFAULT_VALIDATOR_HIDDEN_SELECTOR:":hidden"},i=!1,t=!1,r=function(r){var h,u,f,c,w,it,o,e,rt,ut,ft,b,k,et,ot,l,st,a,ht,d,s,g,y,v,p,nt,tt=function(){var i=e.dataset.statement;i=="false"?(u&&u.classList.remove(n.HIDDEN_CLASS),r&&r.classList.add(n.UNENROLLMENT_CLASS),v.innerText=v.getAttribute(n.DATA_NOT_ENROLLED),h.getElementsByClassName(n.LINK_DESCRIPTION)[0].innerHTML=e.dataset.enroll,e.dataset.openName=e.dataset.enroll,t=!1):(f!==undefined?f.classList.remove(n.HIDDEN_CLASS):c&&c.classList.remove(n.HIDDEN_CLASS),u&&u.classList.add(n.HIDDEN_CLASS),r&&r.classList.remove(n.UNENROLLMENT_CLASS),v.innerText=v.getAttribute(n.DATA_ENROLLED),h.getElementsByClassName(n.LINK_DESCRIPTION)[0].innerHTML=e.dataset.manage,e.dataset.openName=e.dataset.manage,t=!0)},vt=function(){var t;k!==undefined&&(k.innerHTML=ut.value.replace(/.(?=.{4})/g,"*"),et.innerHTML=ft.value.replace(/.(?=.{4})/g,"*"));b!==undefined&&_.each(rt,function(i){i.checked&&(t=i.parentElement.getElementsByClassName(n.RADIO_LABEL_CLASS)[0].innerHTML,b.innerHTML=t)});nt=!0;pt()},yt=function(t){t.preventDefault();w.classList.add(n.HIDDEN_CLASS);o.classList.add(n.CLOSE_SELECTOR);e.dataset.statement="true";h.click();y.classList.remove(n.HIDDEN_CLASS);tt()},pt=function(){var i=r.dataset.serviceEnrollUrl,t;a.classList.add(n.HIDDEN_CLASS);t={Maid:d.value,ScId:query.getFormInputValue(r,n.FORM_SCID),BankAccountNumber:query.getFormInputValue(r,n.FORM_ACCOUNT_NUMBER)||"",BankRoutingNumber:query.getFormInputValue(r,n.FORM_ROUTING_ABA)||"",BankAccountType:query.getFormInputValue(r,n.FORM_ACCOUNT_TYPE)||""};query.scrollToElement(r,s);t=JSON.stringify(t);query.postData(i,ct,lt,t,!0,g)},wt=function(){var t=r.dataset.serviceUnenrollUrl,i={Maid:d.value,ScId:query.getFormInputValue(r,n.FORM_SCID)};a.classList.add(n.HIDDEN_CLASS);query.scrollToElement(r,s);query.deleteData(t,ct,lt,JSON.stringify(i),!0,g)},ct=function(){nt?(u.classList.add(n.HIDDEN_CLASS),w.classList.remove(n.HIDDEN_CLASS)):(l.classList.add(n.HIDDEN_CLASS),e.dataset.statement="false",h.click(),y.classList.remove(n.HIDDEN_CLASS),tt());query.scrollToElement(r,s);dataLayer.push({event:"coned.form.success",contentTitle:"direct-payment-plan"});r.classList.add(coned.constants.QUALTRICS_TRIGGER_CLASS);QSI.API.unload();QSI.API.load().done(QSI.API.run())},lt=function(t){a.classList.remove(n.HIDDEN_CLASS);ht.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;a.focus()},bt=function(t){t.preventDefault();f!==undefined?f.classList.add(n.HIDDEN_CLASS):c.classList.add(n.HIDDEN_CLASS);query.scrollToElement(r,s);l.classList.remove(n.HIDDEN_CLASS)},kt=function(t){t.preventDefault();f!==undefined?f.classList.remove(n.HIDDEN_CLASS):c.classList.remove(n.HIDDEN_CLASS);query.scrollToElement(r,s);l.classList.add(n.HIDDEN_CLASS)},dt=function(t){t.preventDefault();nt=!1;wt();y.classList.remove(n.HIDDEN_CLASS)},gt=function(t){t.preventDefault();f.classList.add(n.HIDDEN_CLASS);u.classList.remove(n.HIDDEN_CLASS);o.classList.remove(n.CLOSE_SELECTOR);p||(coned.utils.addGeneralListeners(o,at),p=!0)},at=function(i){i.preventDefault();t&&(f.classList.remove(n.HIDDEN_CLASS),u.classList.add(n.HIDDEN_CLASS),o.classList.add(n.CLOSE_SELECTOR))},ni=function(){h=r.getElementsByClassName(n.LINK_ACCORDION_SELECTOR)[0];u=r.getElementsByClassName(n.ENROLL_FORM_SELECTOR)[0];f=r.getElementsByClassName(n.MANAGE_FORM_SELECTOR)[0];c=r.getElementsByClassName(n.ORU_MANAGE_FORM)[0];w=r.getElementsByClassName(n.ENROLL_SUCCESS_MESSAGE)[0];it=r.getElementsByClassName(n.CONFIRM_ENROLL_BUTTON)[0];e=r.getElementsByClassName(n.ACCORDION_SELECTOR)[0];b=r.getElementsByClassName(n.CONTAINER_CHECKING_ACCOUNT)[0];k=r.getElementsByClassName(n.CONTAINER_ROUTING_ABANUMBER)[0];et=r.getElementsByClassName(n.CONTAINER_ACCOUNT_NUMBER)[0];rt=r.getElementsByClassName(n.CONTAIN_CHECKING_ACCOUNT);ut=r.getElementsByClassName(n.CONTAIN_ROUTING_ABANUMBER)[0];ft=r.getElementsByClassName(n.CONTAIN_ACCOUNT_NUMBER)[0];ot=r.getElementsByClassName(n.UNENROLL_BUTTON_SELECTOR)[0];l=r.getElementsByClassName(n.UNENROLL_CONFIRMATION_SELECTOR)[0];st=r.getElementsByClassName(n.UNENROLL_CONFIRMATION_CANCEL_SELECTOR)[0];o=r.getElementsByClassName(n.ENROLL_CLOSE_BUTTON)[0];a=r.getElementsByClassName(n.SERVICE_ERROR)[0];ht=r.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];d=document.getElementsByName(n.ACCOUNT_MAID_INPUT)[0];s=document.getElementsByClassName(n.HEADER)[0];g=document.getElementsByClassName(n.FORM_LOADING)[0];y=r.getElementsByClassName(n.UPDATED_MESSAGE)[0];v=r.getElementsByClassName(n.ICON_STATUS_TEXT)[0];p=!1},ti=function(){tt();new coned.components.ValidateForm(n.FORM,vt,n.DEFAULT_VALIDATOR_HIDDEN_SELECTOR,!0);coned.utils.addGeneralListeners(it,yt);f!==undefined&&(coned.utils.addGeneralListeners(ot,bt),coned.utils.addGeneralListeners(st,kt),l.addEventListener("submit",dt),f.addEventListener("submit",gt),t&&(coned.utils.addGeneralListeners(o,at),p=!0));u&&coned.utils.addMultipleListeners(u,["change","keyup"],function(){coned.components.ValidateForm.isFormValid(u,"",n.FORM_IGNORE_VALIDATION)})},ii=function(){ni();ti();i=!0};ii()};return r.prototype.isLoaded=function(){return i},r}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DashboardLevelPlan=function(){var n={FORM_SELECTOR:"js-level-plan",ENROLL_FORM:"js-level-plan-form",ENROLL_BUTTON_SELECTOR:"js-enroll-button",ENROLL_SELECTOR_GENERIC:"js-unenroll-",PAY_NOW_ENROLL_BUTTON_SELECTOR:"js-pay-now-enroll-button",ENROLL_CONFIRM_SELECTOR:"js-level-plan-enroll-message",MANAGE_FORM_SELECTOR:"js-level-plan-manage",SCENARIO_CLASS:"js-scenario-page",BUDGET_BILLING_CLASS:"js-budget-billing",MANAGE_FORM_CONFIRM_SELECTOR:"js-level-plan-manage-confirm",MANAGE_COMMUNICATION_SELECTOR:"js-level-plan-communication",UNAVAILABLE_FORM_SELECTOR:"js-level-plan-unavailable",LINK_ACCORDION_SELECTOR:"js-accordion-selector",LINK_DESCRIPTION:"js-link-description",ACCORDION_SELECTOR:"js-accordion-contain",UNENROLLMENT_CLASS:"manage-enroll__list--inactive",ALERT_CLASS:"manage-enroll__list--alert",ICON_STATUS_TEXT:"icon-status-text",ENROLLED:"Enrolled",DATA_ENROLLED:"data-enrolled",DATA_WARNING:"data-warning",WARNING:"Warning",HIDDEN_CLASS:"hidden",FORM_SCID:"scId",FORM_UPDATE_ACCOUNT_TYPE:"LPP",ACCOUNT_MAID_INPUT:"accountMaid",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",FORM_LOADING:"js-form-loading",FORM_UNENROLL_POSITIVE_SELECTOR:"js-unenroll-positive",FORM_UNENROLL_NEGATIVE_SELECTOR:"js-unenroll-negative",FORM_UNENROLL_ZERO_SELECTOR:"js-unenroll-zero",POSITIVE:"positive",NEGATIVE:"negative",ZERO:"zero",LPP_PARAMETER_NAME:"lpp",BBP_PARAMETER_NAME:"bbp",LAZY_LOAD_CLASS:"js-lazy-load",LAZY_LOAD_TAB_CLASS:"js-lazy-load-manage-my-account",LAZY_LOAD_LOADED_CLASS:"js-lazy-load-element-loaded",TAGGING_UNENROLL_CONFIRM:"event.unenroll.confirm"},t=!1,i=function(i){var h,g,e,f,u,y,nt,p,r,c,tt,w,it,b,k,l,o,rt,ut=!1,a,ft,et,ot,v=function(){if(!t){var n=i.dataset.loadServiceUrl,r;if(!n){ct();at();lt();ht();return}query.getData(n,vt,s,r)}},vt=function(t){var i,r,u,f;coned.utils.isPatternLab()?et?(u=coned.utils.getUrlParameterValue(n.BBP_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.BBP_PARAMETER_NAME):coned.constants.DEFAULT_SCENARIO,f=coned.plConstants.GET_BUDGET_BILLING_SCENARIO_HTML_URL+u+coned.constants.HTML_EXTENSION,query.getData(f,d,s)):(i=coned.utils.getUrlParameterValue(n.LPP_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.LPP_PARAMETER_NAME):coned.constants.DEFAULT_SCENARIO,r=coned.plConstants.GET_LPP_SCENARIO_HTML_URL+i+coned.constants.HTML_EXTENSION,query.getData(r,d,s)):d(t)},s=function(){i.classList.add(n.HIDDEN_CLASS);t=!0;a&&(l.removeEventListener("lazy-load-start",v),i.classList.add(n.LAZY_LOAD_LOADED_CLASS),coned.utils.triggerEvent(i,"lazy-load-element-loaded"))},d=function(r){if(r){var h=new DOMParser,e,f,o;if(e=h.parseFromString(r,"text/html"),f=e.getElementsByClassName(n.FORM_SELECTOR),f.length!==0&&f[0].dataset.content!=="false")f=f[0];else{s();return}for(i.innerHTML=f.innerHTML,o=f.attributes;i.attributes.length>0;)i.removeAttribute(i.attributes[0].name);_.each(o,function(n){i.setAttribute(n.nodeName,n.nodeValue)});f.dataset.module&&(ct(),at(),lt(),u&&ht(),coned.utils.initializeModules(i));ft&&coned.utils.triggerEvent(i,"scenarios-element-loaded")}else{s();return}t=!0;a&&(l.removeEventListener("lazy-load-start",v),i.classList.add(n.LAZY_LOAD_LOADED_CLASS),coned.utils.triggerEvent(i,"lazy-load-element-loaded"));coned.utils.triggerEvent(window,"service-loaded")},st=function(){var t=r.dataset.statement;t=="false"?f&&f.classList.add(n.HIDDEN_CLASS):t=="true"?(h.classList.add(n.HIDDEN_CLASS),f.classList.remove(n.HIDDEN_CLASS),i.classList.remove(n.UNENROLLMENT_CLASS),o.innerText=o.getAttribute(n.DATA_ENROLLED),p.getElementsByClassName(n.LINK_DESCRIPTION)[0].innerHTML=r.dataset.manage,r.dataset.openName=r.dataset.manage):(f.classList.add(n.HIDDEN_CLASS),h.classList.add(n.HIDDEN_CLASS),nt.classList.remove(n.HIDDEN_CLASS),i.classList.remove(n.UNENROLLMENT_CLASS),o.innerText=o.getAttribute(n.DATA_WARNING),i.classList.add(n.ALERT_CLASS))},yt=function(t){t.preventDefault();e&&e.classList.add(n.HIDDEN_CLASS);coned.utils.isOru()||(r.dataset.statement="true");p.click();st();ut&&(window.location.href=i.dataset.redirectUrl)},pt=function(t){t.preventDefault();var u=i.dataset.serviceUrl,r;ut=query.hasClass(t.currentTarget,n.PAY_NOW_ENROLL_BUTTON_SELECTOR);c.classList.add(n.HIDDEN_CLASS);r={Maid:b.value,ScId:query.getFormInputValue(i,n.FORM_SCID)};r=JSON.stringify(r);query.postData(u,wt,ti,r,!0,k)},wt=function(){var t=coned.utils.isOru()?"budget-payment-plan":"level-payment-plan";dataLayer.push({event:"coned.form.success",contentTitle:t});h.classList.add(n.HIDDEN_CLASS);e.classList.remove(n.HIDDEN_CLASS);i.classList.remove(n.UNENROLLMENT_CLASS);r.dataset.openName=r.dataset.manage;e.focus();coned.utils.isOru()&&coned.utils.qualtricsTriggering(i)},bt=function(t){_.each(t,function(t){t.classList.remove(n.HIDDEN_CLASS)})},kt=function(t){t.preventDefault();f.classList.add(n.HIDDEN_CLASS);u.classList.remove(n.HIDDEN_CLASS);u.focus()},dt=function(){f.classList.add(n.HIDDEN_CLASS);u.classList.add(n.HIDDEN_CLASS);y.classList.remove(n.HIDDEN_CLASS);y.focus()},gt=function(){dt();dataLayer.push({event:n.TAGGING_UNENROLL_CONFIRM,"unenroll-remaining-balance":r.dataset.unenrollRemainingBalance||"0"})},ni=function(t){w.classList.remove(n.HIDDEN_CLASS);it.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;w.focus()},ti=function(t){c.classList.remove(n.HIDDEN_CLASS);tt.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;c.focus()},ii=function(t){t.preventDefault();var r={Maid:b.value,ScId:query.getFormInputValue(i,n.FORM_SCID)};query.deleteData(ot,gt,ni,JSON.stringify(r),!0,k)},ht=function(){var t;switch(rt){case n.POSITIVE:t=n.ENROLL_SELECTOR_GENERIC+n.POSITIVE;break;case n.NEGATIVE:t=n.ENROLL_SELECTOR_GENERIC+n.NEGATIVE;break;case n.ZERO:t=n.ENROLL_SELECTOR_GENERIC+n.ZERO;break;default:t=n.ENROLL_SELECTOR_GENERIC+n.ZERO}bt(r.getElementsByClassName(t))},ri=function(){a=query.hasClass(i,n.LAZY_LOAD_CLASS);ft=query.hasClass(i,n.SCENARIO_CLASS);et=query.hasClass(i,n.BUDGET_BILLING_CLASS);a?(l=document.getElementsByClassName(n.LAZY_LOAD_TAB_CLASS)[0],l.addEventListener("lazy-load-start",v)):v()},ct=function(){p=i.getElementsByClassName(n.LINK_ACCORDION_SELECTOR)[0];r=i.getElementsByClassName(n.ACCORDION_SELECTOR)[0];h=i.getElementsByClassName(n.ENROLL_FORM)[0];g=i.getElementsByClassName(n.ENROLL_BUTTON_SELECTOR);e=i.getElementsByClassName(n.ENROLL_CONFIRM_SELECTOR)[0];f=i.getElementsByClassName(n.MANAGE_FORM_SELECTOR)[0];u=i.getElementsByClassName(n.MANAGE_FORM_CONFIRM_SELECTOR)[0];y=i.getElementsByClassName(n.MANAGE_COMMUNICATION_SELECTOR)[0];nt=i.getElementsByClassName(n.UNAVAILABLE_FORM_SELECTOR)[0];c=i.getElementsByClassName(n.SERVICE_ERROR)[0];tt=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];b=document.getElementsByName(n.ACCOUNT_MAID_INPUT)[0];k=document.getElementsByClassName(n.FORM_LOADING)[0];o=i.getElementsByClassName(n.ICON_STATUS_TEXT)[0];u&&(w=u.getElementsByClassName(n.SERVICE_ERROR)[0],it=u.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0])},lt=function(){rt=r.dataset&&r.dataset.levelPayment;ot=r.dataset&&r.dataset.unenrollServiceUrl},at=function(){st();_.each(g,function(n){coned.utils.addGeneralListeners(n,pt)});e&&e.addEventListener("submit",yt);f&&f.addEventListener("submit",kt);u&&u.addEventListener("submit",ii);r.dataset.levelPaymentScenario&&dataLayer.push({"level-payment-scenario":r.dataset.levelPaymentScenario})},ui=function(){ri()};ui()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DashboardLifeSavingEquipment=function(){var n={LSE_SECTION:"js-life-saving-equipment",FORM:"js-life-saving-form",ACCORDION_SELECTOR:"js-accordion-contain",MANAGE_SELECTOR:"js-manage-selector",ENROLL_SELECTOR:"js-enroll-selector",ENROLLMENT_STATUS_SELECTOR:"js-life-saving-enrollment-status",REVIEW_SELECTOR:"js-life-saving-review",LINK_ACCORDION_SELECTOR:"js-accordion-selector",LINK_DESCRIPTION:"js-link-description",LINK_ACCORDION_CLOSE:"js-accordion-close",UNENROLLMENT_CLASS:"manage-enroll__list--inactive",ALERT_CLASS:"manage-enroll__list--alert",ICON_STATUS_TEXT:"icon-status-text",REVIEW_EQUIPMENT_SELECTOR:"js-equipment-list-selector",REVIEW_CHECKBOX_EQUIPMENT:"js-equipment-checkbox-selector",REVIEW_CHECKBOX_INDICATOR:"js-checkbox-name-selector",REVIEW_OTHER_EQUIPMENT:"js-other-equipment-selector",ENROLL_SUCCESS_SELECTOR:"js-life-saving-success",EQUIPMENT_USED_HOURS:"js-equipment-used-hours",DATA_ENROLLED:"data-enrolled",HIDDEN_CLASS:"hidden",FORM_SCID:"scId",FORM_UPDATE_ACCOUNT_TYPE:"LSE",FORM_TANK_RESPIRATOR:"tankRespirator",FORM_CUIRASS_RESPIRATOR:"cuirassRespirator",FORM_ROCKING_BED:"rockingBed",FORM_ELECTRIC_OPERATED:"electricalOperated",FORM_APNEA_MONITOR:"apnaeMonitor",FORM_HEMODIALYSIS:"hemodialysisEquipment",FORM_OTHER:"optionOther",ACCOUNT_MAID_INPUT:"accountMaid",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",FORM_LOADING:"js-form-loading",HEADER:"js-header-wrapper",UPDATED_MESSAGE:"js-updated-message",REAPPLY:"js-reapply",FOCUS_PLACEHOLDER_CLASS:"js-focus-placeholder",LSE_PARAMETER_NAME:"lse",LAZY_LOAD_CLASS:"js-lazy-load",LAZY_LOAD_TAB_CLASS:"js-lazy-load-manage-my-account",LAZY_LOAD_LOADED_CLASS:"js-lazy-load-element-loaded"},t=!1,i=function(i){var r,c,f,v,u,k,d,g,y,p,e,nt,tt,o,it,rt,s,l,ut,w,a,ht=function(){var o,t="",r=0,s="";u.classList.add(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);_.each(g,function(i){o=i.parentNode.parentNode.getElementsByClassName(n.REVIEW_CHECKBOX_INDICATOR)[0];i.checked&&(r>0&&(t+=", "),t+=o.innerHTML,r++)});y.value!==""&&(r>0&&(s=", "),t+=s+y.value);d.innerHTML=t;query.scrollToElement(i,e)},ct=function(t){t.preventDefault();var u=i.dataset.serviceUrl,r;lt();r={Maid:tt.value,ScId:query.getFormInputValue(i,n.FORM_SCID),Tank:query.getFormInputValueById(i,n.FORM_TANK_RESPIRATOR),Curass:query.getFormInputValueById(i,n.FORM_CUIRASS_RESPIRATOR),RockingBed:query.getFormInputValueById(i,n.FORM_ROCKING_BED),ElecOperated:query.getFormInputValueById(i,n.FORM_ELECTRIC_OPERATED),Apnea:query.getFormInputValueById(i,n.FORM_APNEA_MONITOR),Herneo:query.getFormInputValueById(i,n.FORM_HEMODIALYSIS),Other:query.getFormInputValue(i,n.FORM_OTHER),UsedSleepingHours:query.getFormInputValueById(i,n.FORM_USED_SLEEPING_HOURS),SleepingHoursPerDay:query.getFormInputValueById(i,n.FORM_SLEEPING_HOURS_DAY)};r=JSON.stringify(r);query.postData(u,at,vt,r,!0,nt)},lt=function(){o.classList.add(n.HIDDEN_CLASS)},at=function(){f.classList.add(n.HIDDEN_CLASS);p.classList.remove(n.HIDDEN_CLASS);i.classList.remove(n.UNENROLLMENT_CLASS);i.classList.add(n.ALERT_CLASS);query.scrollToElement(i,e);o.classList.add(n.HIDDEN_CLASS);dataLayer.push({event:"coned.form.success",contentTitle:"life-support"});coned.utils.qualtricsTriggering(i);r.dataset.openName=r.dataset.pending},vt=function(t){o.classList.remove(n.HIDDEN_CLASS);it.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;o.focus()},yt=function(t){t.preventDefault();rt.classList.remove(n.HIDDEN_CLASS);r.dataset.statement="true";c.click();w.focus();query.scrollToElement(i,e);ft()},ft=function(){var t=r.dataset.statement;coned.utils.isOru()?t==="false"?v.classList.add(n.HIDDEN_CLASS):(u.classList.add(n.HIDDEN_CLASS),v.classList.remove(n.HIDDEN_CLASS),i.classList.remove(n.UNENROLLMENT_CLASS),s.innerText=s.getAttribute(n.DATA_ENROLLED),c.getElementsByClassName(n.LINK_DESCRIPTION)[0].innerHTML=r.dataset.manage,r.dataset.openName=r.dataset.manage):(i.classList.remove(n.UNENROLLMENT_CLASS),i.classList.remove(n.ALERT_CLASS),s.innerText=s.getAttribute(n.DATA_ENROLLED),c.getElementsByClassName(n.LINK_DESCRIPTION)[0].innerHTML=r.dataset.manage,r.dataset.openName=r.dataset.manage)},et=function(){r=i.getElementsByClassName(n.ACCORDION_SELECTOR)[0];v=i.getElementsByClassName(n.MANAGE_SELECTOR)[0];u=i.getElementsByClassName(n.ENROLL_SELECTOR)[0];k=i.getElementsByClassName(n.ENROLLMENT_STATUS_SELECTOR)[0];c=i.getElementsByClassName(n.LINK_ACCORDION_SELECTOR)[0];f=i.getElementsByClassName(n.REVIEW_SELECTOR)[0];d=i.getElementsByClassName(n.REVIEW_EQUIPMENT_SELECTOR)[0];g=i.getElementsByClassName(n.REVIEW_CHECKBOX_EQUIPMENT);y=i.getElementsByClassName(n.REVIEW_OTHER_EQUIPMENT)[0];p=i.getElementsByClassName(n.ENROLL_SUCCESS_SELECTOR)[0];e=document.getElementsByClassName(n.HEADER)[0];nt=document.getElementsByClassName(n.FORM_LOADING)[0];tt=document.getElementsByName(n.ACCOUNT_MAID_INPUT)[0];o=i.getElementsByClassName(n.SERVICE_ERROR)[0];it=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];rt=i.getElementsByClassName(n.UPDATED_MESSAGE)[0];s=i.getElementsByClassName(n.ICON_STATUS_TEXT)[0];ut=i.getElementsByClassName(n.REAPPLY)[0];w=document.getElementsByClassName(n.FOCUS_PLACEHOLDER_CLASS)[0]},b=function(){if(!t){var n=i.dataset.serviceUrl,r;if(!n){h();return}query.getData(n,pt,h,r)}},pt=function(t){if(coned.utils.isPatternLab()){var i=coned.utils.getUrlParameterValue(n.LSE_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.LSE_PARAMETER_NAME):coned.constants.DEFAULT_SCENARIO,r=coned.plConstants.GET_LSE_SCENARIO_HTML_URL+i+coned.constants.HTML_EXTENSION;query.getData(r,ot,h)}else ot(t)},h=function(){i.classList.add(n.HIDDEN_CLASS);t=!0;a&&(l.removeEventListener("lazy-load-start",b),i.classList.add(n.LAZY_LOAD_LOADED_CLASS),coned.utils.triggerEvent(i,"lazy-load-element-loaded"))},ot=function(r){if(r){var o=new DOMParser,f,u,e;if(f=o.parseFromString(r,"text/html"),u=f.getElementsByClassName(n.LSE_SECTION),u.length!==0&&u[0].dataset.content!=="false")u=u[0];else{h();return}for(i.innerHTML=u.innerHTML,e=u.attributes;i.attributes.length>0;)i.removeAttribute(i.attributes[0].name);_.each(e,function(n){i.setAttribute(n.nodeName,n.nodeValue)});i.dataset.module&&(et(),st(),coned.utils.initializeModules(i))}else{h();return}t=!0;a&&(l.removeEventListener("lazy-load-start",b),i.classList.add(n.LAZY_LOAD_LOADED_CLASS),coned.utils.triggerEvent(i,"lazy-load-element-loaded"));coned.utils.triggerEvent(window,"service-loaded")},wt=function(t){t.preventDefault();u.classList.remove(n.HIDDEN_CLASS);k.classList.add(n.HIDDEN_CLASS);i.classList.add(n.UNENROLLMENT_CLASS);w.focus();query.scrollToElement(u,e);u.focus();r.dataset.openName=r.dataset.enroll},bt=function(){a=query.hasClass(i,n.LAZY_LOAD_CLASS);a?(l=document.getElementsByClassName(n.LAZY_LOAD_TAB_CLASS)[0],l.addEventListener("lazy-load-start",b)):(et(),ft(),st(),t=!0)},st=function(){new coned.components.ValidateForm("."+n.FORM,ht,"");f!==undefined&&(f.addEventListener("submit",ct),p.addEventListener("submit",yt));coned.utils.addGeneralListeners(ut,wt)},kt=function(){bt()};kt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DashboardMedicalHardship=function(){var n={FORM:".js-medical-hardship-form",MHS_SECTION:"js-medical-hardship",LINK_ACCORDION_SELECTOR:"js-accordion-selector",LINK_DESCRIPTION:"js-link-description",FORM_SELECTOR:"js-medical-hardship-form",ENROLL_SUCCESS_SELECTOR:"js-medical-hardship-success-enroll",MANAGE_SELECTOR:"js-medical-hardship-manage",ENROLLMENT_STATUS_SELECTOR:"js-medical-hardship-enrollment-status",UNENROLLMENT_CLASS:"manage-enroll__list--inactive",ALERT_CLASS:"manage-enroll__list--alert",ACCORDION_SELECTOR:"js-accordion-contain",ICON_STATUS_TEXT:"icon-status-text",DATA_ENROLLED:"data-enrolled",ENROLLED:"Enrolled",HIDDEN_CLASS:"hidden",FORM_SCID:"scId",FORM_EMAIL:"medicalHardshipEmail",FORM_DESCRIPTION:"medicalHardshipDescription",FORM_UPDATE_ACCOUNT_TYPE:"MedicalHardship",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",FORM_LOADING:"js-form-loading",HEADER:"js-header-wrapper",ACCOUNT_MAID_INPUT:"accountMaid",UPDATED_MESSAGE:"js-updated-message",REAPPLY:"js-reapply",FOCUS_PLACEHOLDER_CLASS:"js-focus-placeholder",MHS_PARAMETER_NAME:"mhs",LAZY_LOAD_CLASS:"js-lazy-load",LAZY_LOAD_TAB_CLASS:"js-lazy-load-manage-my-account",LAZY_LOAD_LOADED_CLASS:"js-lazy-load-element-loaded"},t=!1,i=function(i){var c,f,y,w,u,r,e,b,k,o,d,g,s,nt,l,a,v,ft=function(){var r=i.dataset.serviceUrl,t;et();t={Maid:k.value,ScId:query.getFormInputValue(i,n.FORM_SCID),Email:query.getFormInputValue(i,n.FORM_EMAIL),DescribeEmergencyCondition:query.getFormInputValue(i,n.FORM_DESCRIPTION)};t=JSON.stringify(t);query.postData(r,ot,st,t,!0,b)},et=function(){o.classList.add(n.HIDDEN_CLASS)},ot=function(){f.classList.add(n.HIDDEN_CLASS);u.classList.remove(n.HIDDEN_CLASS);query.scrollToElement(i,e);i.classList.remove(n.UNENROLLMENT_CLASS);i.classList.add(n.ALERT_CLASS);o.classList.add(n.HIDDEN_CLASS);l.focus();query.scrollToElement(u,e);setTimeout(function(){u.focus()},500);dataLayer.push({event:"coned.form.success",contentTitle:"medical-hardship"});coned.utils.qualtricsTriggering(i);r.dataset.openName=r.dataset.pending},st=function(t){o.classList.remove(n.HIDDEN_CLASS);d.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;o.focus()},ht=function(t){t.preventDefault();g.classList.remove(n.HIDDEN_CLASS);r.dataset.statement="true";c.click();l.focus();query.scrollToElement(i,e);u.focus();tt()},tt=function(){var t=r.dataset.statement;coned.utils.isOru()?t=="false"?y.classList.add(n.HIDDEN_CLASS):(y.classList.remove(n.HIDDEN_CLASS),f.classList.add(n.HIDDEN_CLASS),i.classList.remove(n.UNENROLLMENT_CLASS),s.innerText=s.getAttribute(n.DATA_ENROLLED),c.getElementsByClassName(n.LINK_DESCRIPTION)[0].innerHTML=r.dataset.manage,r.dataset.openName=r.dataset.manage):(i.classList.remove(n.UNENROLLMENT_CLASS),i.classList.remove(n.ALERT_CLASS),s.innerText=s.getAttribute(n.DATA_ENROLLED),c.getElementsByClassName(n.LINK_DESCRIPTION)[0].innerHTML=r.dataset.manage,r.dataset.openName=r.dataset.manage)},p=function(){if(!t){var n=i.dataset.serviceUrl,r;if(!n){h();return}query.getData(n,ct,h,r)}},ct=function(t){if(coned.utils.isPatternLab()){var i=coned.utils.getUrlParameterValue(n.MHS_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.MHS_PARAMETER_NAME):coned.constants.DEFAULT_SCENARIO,r=coned.plConstants.GET_MHS_SCENARIO_HTML_URL+i+coned.constants.HTML_EXTENSION;query.getData(r,it,h)}else it(t)},h=function(){i.classList.add(n.HIDDEN_CLASS);t=!0;v&&(a.removeEventListener("lazy-load-start",p),i.classList.add(n.LAZY_LOAD_LOADED_CLASS),coned.utils.triggerEvent(i,"lazy-load-element-loaded"))},it=function(r){if(r){var o=new DOMParser,f,u,e;if(f=o.parseFromString(r,"text/html"),u=f.getElementsByClassName(n.MHS_SECTION),u.length!==0&&u[0].dataset.content!=="false")u=u[0];else{h();return}for(i.innerHTML=u.innerHTML,e=u.attributes;i.attributes.length>0;)i.removeAttribute(i.attributes[0].name);_.each(e,function(n){i.setAttribute(n.nodeName,n.nodeValue)});i.dataset.module&&(rt(),ut(),coned.utils.initializeModules(i))}else{h();return}t=!0;v&&(a.removeEventListener("lazy-load-start",p),i.classList.add(n.LAZY_LOAD_LOADED_CLASS),coned.utils.triggerEvent(i,"lazy-load-element-loaded"));coned.utils.triggerEvent(window,"service-loaded")},lt=function(t){t.preventDefault();f.classList.remove(n.HIDDEN_CLASS);w.classList.add(n.HIDDEN_CLASS);i.classList.add(n.UNENROLLMENT_CLASS);l.focus();query.scrollToElement(f,e);setTimeout(function(){f.focus()},500);r.dataset.openName=r.dataset.enroll},rt=function(){r=i.getElementsByClassName(n.ACCORDION_SELECTOR)[0];c=i.getElementsByClassName(n.LINK_ACCORDION_SELECTOR)[0];f=i.getElementsByClassName(n.FORM_SELECTOR)[0];u=i.getElementsByClassName(n.ENROLL_SUCCESS_SELECTOR)[0];w=i.getElementsByClassName(n.ENROLLMENT_STATUS_SELECTOR)[0];y=i.getElementsByClassName(n.MANAGE_SELECTOR)[0];e=document.getElementsByClassName(n.HEADER)[0];b=document.getElementsByClassName(n.FORM_LOADING)[0];k=document.getElementsByName(n.ACCOUNT_MAID_INPUT)[0];o=i.getElementsByClassName(n.SERVICE_ERROR)[0];d=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];g=i.getElementsByClassName(n.UPDATED_MESSAGE)[0];s=i.getElementsByClassName(n.ICON_STATUS_TEXT)[0];nt=i.getElementsByClassName(n.REAPPLY)[0];l=document.getElementsByClassName(n.FOCUS_PLACEHOLDER_CLASS)[0]},at=function(){v=query.hasClass(i,n.LAZY_LOAD_CLASS);v?(a=document.getElementsByClassName(n.LAZY_LOAD_TAB_CLASS)[0],a.addEventListener("lazy-load-start",p)):(rt(),tt(),ut(),t=!0)},ut=function(){new coned.components.ValidateForm(n.FORM,ft,"");u!==undefined&&u.addEventListener("submit",ht);coned.utils.addGeneralListeners(nt,lt)},vt=function(){at()};vt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DashboardPaperlessEbill=function(){var n={FORM:".js-paperless-ebill-form",MANAGE_FORM:".js-paperless-manage-form",LINK_ACCORDION_SELECTOR:"js-accordion-selector",ENROLL_FORM_SELECTOR:"js-paperless-ebill-form",MANAGE_FORM_SELECTOR:"js-paperless-manage-form",ACCORDION_SELECTOR:"js-accordion-contain",UNENROLLMENT_CLASS:"manage-enroll__list--inactive",ICON_STATUS_TEXT:"icon-status-text",ENROLL_EMAIL_CONTAINER:"js-enroll-email-selector",ENROLL_INPUT_EMAIL:"js-enroll-input-email",MANAGE_INPUT_EMAIL:"js-manage-input-email",UNENROLLMENT_BUTTON:"js-unenroll-button",MANAGE_EBILL_MESSAGE:"js-ebill-email",LINK_DESCRIPTION:"js-link-description",UNROLL_SUCCESS_SELECTOR:"js-paperless-unroll-success",UNROLL_SUCCESS_BUTTON:"js-unenroll-button-confirm",DATA_ENROLLED:"data-enrolled",DATA_NOT_ENROLLED:"data-not-enrolled",HIDDEN_CLASS:"hidden",FORM_SCID:"scId",FORM_EMAIL:"paperlessEnrollEmail",FORM_MANAGE_EMAIL:"paperlessManageEmail",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",FORM_LOADING:"js-form-loading",HEADER:"js-header-wrapper",ACCOUNT_MAID_INPUT:"accountMaid",UPDATED_MESSAGE:"js-updated-message"},t=!1,i=function(i){var f,o,s,b,r,k,d,a,g,v,y,p,h,nt,c,tt,e,u,w,l,it=function(){var t=r.dataset.statement;t=="false"?(f.getElementsByClassName(n.LINK_DESCRIPTION)[0].innerHTML=r.dataset.enroll,r.dataset.openName=r.dataset.enroll,i.classList.add(n.UNENROLLMENT_CLASS),e.innerText=e.getAttribute(n.DATA_NOT_ENROLLED)):(s&&s.classList.add(n.HIDDEN_CLASS),o&&o.classList.remove(n.HIDDEN_CLASS),i&&i.classList.remove(n.UNENROLLMENT_CLASS),e.innerText=e.getAttribute(n.DATA_ENROLLED),f.getElementsByClassName(n.LINK_DESCRIPTION)[0].innerHTML=r.dataset.manage,r.dataset.openName=r.dataset.manage)},rt=function(){h.classList.add(n.HIDDEN_CLASS)},ut=function(){if(w)c&&c.classList.remove(n.HIDDEN_CLASS),a.classList.add(n.HIDDEN_CLASS),s.classList.remove(n.HIDDEN_CLASS),f.click();else{var t=k.dataset.message;t=t.replace("@EMAIL",l);b.innerHTML=t;tt.dataset.currentEmail=l.toLowerCase();r.dataset.statement="true";f.click()}it();query.scrollToElement(i,v);rt();c.classList.remove(n.HIDDEN_CLASS);dataLayer.push({event:"coned.form.success",contentTitle:"paperless-ebill"});coned.utils.qualtricsTriggering(i)},ft=function(t){h.classList.remove(n.HIDDEN_CLASS);nt.textContent=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;h.focus()},et=function(t){var r=i.dataset.serviceEnrollUrl.toLowerCase();l=t?query.getFormInputValue(i,n.FORM_EMAIL):query.getFormInputValue(i,n.FORM_MANAGE_EMAIL);w=!1;u={Maid:p.value,ScId:query.getFormInputValue(i,n.FORM_SCID),Email:l.toLowerCase()};rt();u=JSON.stringify(u);query.postData(r,ut,ft,u,!0,y)},ot=function(t){t.preventDefault();o.classList.add(n.HIDDEN_CLASS);a.classList.remove(n.HIDDEN_CLASS);r.dataset.statement="false";query.scrollToElement(i,v)},st=function(t){t.preventDefault();var r=i.dataset.serviceUnenrollUrl.toLowerCase();w=!0;u={Maid:p.value,ScId:query.getFormInputValue(i,n.FORM_SCID)};u=JSON.stringify(u);query.deleteData(r,ut,ft,u,!0,y)},ht=function(){f=i.getElementsByClassName(n.LINK_ACCORDION_SELECTOR)[0];r=i.getElementsByClassName(n.ACCORDION_SELECTOR)[0];o=i.getElementsByClassName(n.MANAGE_FORM_SELECTOR)[0];s=i.getElementsByClassName(n.ENROLL_FORM_SELECTOR)[0];b=i.getElementsByClassName(n.ENROLL_EMAIL_CONTAINER)[0];k=i.getElementsByClassName(n.MANAGE_EBILL_MESSAGE)[0];d=i.getElementsByClassName(n.UNENROLLMENT_BUTTON)[0];a=i.getElementsByClassName(n.UNROLL_SUCCESS_SELECTOR)[0];g=i.getElementsByClassName(n.UNROLL_SUCCESS_BUTTON)[0];v=document.getElementsByClassName(n.HEADER)[0];y=document.getElementsByClassName(n.FORM_LOADING)[0];p=document.getElementsByName(n.ACCOUNT_MAID_INPUT)[0];h=i.getElementsByClassName(n.SERVICE_ERROR)[0];nt=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];c=i.getElementsByClassName(n.UPDATED_MESSAGE)[0];tt=i.getElementsByClassName(n.ENROLL_INPUT_EMAIL)[0];e=i.getElementsByClassName(n.ICON_STATUS_TEXT)[0]},ct=function(){it();new coned.components.ValidateForm(n.FORM,function(){et(!0)},"");new coned.components.ValidateForm(n.MANAGE_FORM,function(){et(!1)},"");coned.utils.addGeneralListeners(d,ot);coned.utils.addGeneralListeners(g,st)},lt=function(){ht();ct();t=!0};lt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DashboardPaymentAgreementCovidTerms=function(){var n={COMMERCIAL:"commercial",HIDDEN_CLASS:"hidden",ACCOUNT_MAID_INPUT:"accountMaid",FORM_LOADING:"js-form-loading",PAYMENT_AGREEMENT_FORM:"js-payment-agreement",SMALL_BUSINESS_IDENTIFY_RADIO:"paymentAgreementSmallBusinessIdentify",SMALL_BUSINESS_TYPE_RADIO:"paymentAgreementSmallBusinessType",SMALL_BUSINESS_FINANCIAL_IMPACT_RADIO:"paymentAgreementFinancialImpact",SMALL_BUSINESS_QUESTION:"js-covid-terms-small-business-question",SMALL_BUSINESS_TYPE_QUESTION:"js-covid-terms-small-business-type-question",SMALL_BUSINESS_FINANCIAL_IMPACT_QUESTION:"js-covid-terms-financial-impact-question",COVID_TERMS_DISCLAIMER:"js-payment-agreement-covid-disclaimer",PAGR_TERMS_DISCLAIMER:"js-payment-agreement-disclaimer",STANDARD_TERMS_DISCLAIMER:"js-payment-agreement-standard-disclaimer",FINANCIAL_IMPACT_DISCLAIMER:"js-payment-agreement-financial-impact-disclaimer",QUESTION_OPTION:"js-question-option",YES_ANSWER:"js-yes-answer",NO_ANSWER:"js-no-answer",CONTINUE_BUTTON:"js-covid-terms-continue",PAYMENT_TABLE:"js-payment-table",FORM_SCID:"scId",SHOW_COVID_TERMS:"show-covid-terms",TERM_TYPE_COVID:"COVID",PAYMENT_AGREEMENT_SMALL_BUSINESS_QUESTION_TAG:"covid.payagmt.q1",PAYMENT_AGREEMENT_SMALL_BUSINESS_TYPE_QUESTION_TAG:"covid.payagmt.q2",PAYMENT_AGREEMENT_SMALL_BUSINESS_FINANCIAL_IMPACT_QUESTION_TAG:"covid.payagmt.q3"},i=!1,t=function(t){var v,i,f,o,y,p,s,r,u,w,h,e,c,l,a,b=function(){var l,p,v,y,a;if(f){d();return}i===n.SMALL_BUSINESS_QUESTION?(l=query.getRadioInputValue(t,n.SMALL_BUSINESS_IDENTIFY_RADIO),a=$(t.querySelectorAll('[name="'+n.SMALL_BUSINESS_IDENTIFY_RADIO+'"]')).valid(),p=s.getElementsByClassName(n.QUESTION_OPTION),a&&(l==="YES"?(v=s.getElementsByClassName(n.YES_ANSWER)[0],v.classList.remove(n.HIDDEN_CLASS),r.classList.remove(n.HIDDEN_CLASS),i=n.SMALL_BUSINESS_TYPE_QUESTION,r.focus()):(y=s.getElementsByClassName(n.NO_ANSWER)[0],y.classList.remove(n.HIDDEN_CLASS),e.classList.remove(n.HIDDEN_CLASS),e.focus(),f=!0),dataLayer.push({event:n.PAYMENT_AGREEMENT_SMALL_BUSINESS_QUESTION_TAG,questionAnswer:l}))):i===n.SMALL_BUSINESS_TYPE_QUESTION?(l=query.getRadioInputValue(t,n.SMALL_BUSINESS_TYPE_RADIO),a=$(t.querySelectorAll('[name="'+n.SMALL_BUSINESS_TYPE_RADIO+'"]')).valid(),p=r.getElementsByClassName(n.QUESTION_OPTION),a&&(l==="NO"?(y=r.getElementsByClassName(n.NO_ANSWER)[0],y.classList.remove(n.HIDDEN_CLASS),u.classList.remove(n.HIDDEN_CLASS),i=n.SMALL_BUSINESS_FINANCIAL_IMPACT_QUESTION,u.focus()):(v=r.getElementsByClassName(n.YES_ANSWER)[0],v.classList.remove(n.HIDDEN_CLASS),e.classList.remove(n.HIDDEN_CLASS),e.focus(),f=!0),dataLayer.push({event:n.PAYMENT_AGREEMENT_SMALL_BUSINESS_TYPE_QUESTION_TAG,questionAnswer:l}))):i===n.SMALL_BUSINESS_FINANCIAL_IMPACT_QUESTION&&(l=query.getRadioInputValue(t,n.SMALL_BUSINESS_FINANCIAL_IMPACT_RADIO),a=$(t.querySelectorAll('[name="'+n.SMALL_BUSINESS_FINANCIAL_IMPACT_RADIO+'"]')).valid(),p=u.getElementsByClassName(n.QUESTION_OPTION),a&&(l==="YES"?(v=u.getElementsByClassName(n.YES_ANSWER)[0],v.classList.remove(n.HIDDEN_CLASS),k(),o=!0,h.classList.remove(n.HIDDEN_CLASS),h.focus(),dataLayer.push({covidPagrElegible:!0})):(y=u.getElementsByClassName(n.NO_ANSWER)[0],y.classList.remove(n.HIDDEN_CLASS),o=!1,c.classList.remove(n.HIDDEN_CLASS),c.focus(),dataLayer.push({covidPagrElegible:!1})),w.classList.add(n.HIDDEN_CLASS),f=!0,dataLayer.push({event:n.PAYMENT_AGREEMENT_SMALL_BUSINESS_FINANCIAL_IMPACT_QUESTION_TAG,questionAnswer:l})));a&&_.each(p,function(t){t.classList.add(n.HIDDEN_CLASS)})},k=function(){var i=t.dataset.covidIdentifyServiceUrl,r={Maid:y.value,ScId:query.getFormInputValue(l,n.FORM_SCID),AttestationName:n.TERM_TYPE_COVID};query.postData(i,function(){},function(){},JSON.stringify(r),!0,p)},d=function(){a.classList.add(n.SHOW_COVID_TERMS);a.dataset.covidTerms=o},g=function(){v=t.dataset.accountType===n.COMMERCIAL?!0:!1;i=n.SMALL_BUSINESS_QUESTION;f=!1;o=!1;y=document.getElementsByName(n.ACCOUNT_MAID_INPUT)[0];p=document.getElementsByClassName(n.FORM_LOADING)[0];s=t.getElementsByClassName(n.SMALL_BUSINESS_QUESTION)[0];r=t.getElementsByClassName(n.SMALL_BUSINESS_TYPE_QUESTION)[0];u=t.getElementsByClassName(n.SMALL_BUSINESS_FINANCIAL_IMPACT_QUESTION)[0];h=t.getElementsByClassName(n.COVID_TERMS_DISCLAIMER)[0];e=t.getElementsByClassName(n.PAGR_TERMS_DISCLAIMER)[0];c=t.getElementsByClassName(n.STANDARD_TERMS_DISCLAIMER)[0];w=t.getElementsByClassName(n.FINANCIAL_IMPACT_DISCLAIMER)[0];l=document.getElementsByClassName(n.PAYMENT_AGREEMENT_FORM)[0];a=l.getElementsByClassName(n.PAYMENT_TABLE)[0]},nt=function(){v&&t.classList.remove(n.HIDDEN_CLASS);new coned.components.ValidateForm(".js-payment-agreement-covid-enroll",b)},tt=function(){g();nt()};tt()};return t.prototype.isLoaded=function(){return i},t}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DashboardPaymentAgreementOru=function(){var n={ENROLL_FORM_SELECTOR:"js-payment-agreement-enroll",ORU_ENROLL_CONFIRMATION:"js-oru-enroll-confirmation",CANCEL_ENROLL_BUTTON:"js-cancel-enroll",MANAGE_FORM_SELECTOR:"js-manage-form",CLOSE_SELECTOR:"js-accordion-close",LINK_ACCORDION_SELECTOR:"js-accordion-selector",LINK_DESCRIPTION:"js-link-description",ACCORDION_SELECTOR:"js-accordion-contain",UNENROLLMENT_CLASS:"manage-enroll__list--inactive",ALERT_CLASS:"manage-enroll__list--alert",ICON_STATUS_TEXT:"icon-status-text",ENROLLED:"Enrolled",HIDDEN_CLASS:"hidden",FORM_SCID:"scId",FORM_UPDATE_ACCOUNT_TYPE:"PaymentAgreement",ACCOUNT_MAID_INPUT:"accountMaid",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",FORM_LOADING:"js-form-loading",EDIT_PAYMENT_AGREEMENT_POPUP:"js-edit-payment-agreement-popup",OPEN_EDIT_PAYMENT_AGREEMENT_POPUP_BUTTON:"js-open-edit-payment-agreement-popup",SCHEDULE_PAYMENT_BUTTON:"js-schedule-a-payment",MAKE_PAYMENT_BUTTON:"js-make-a-payment",MANAGE_SCHEDULE_PAYMENT_BUTTON:"js-schedule-a-payment-manage",PAYMENT_CANCEL_BUTTON:"js-accordion-close",PAYMENT_AGREEMENT_CHECK_TEXT:"js-item-title-selector",ACCEPT_PAYMENT_AGREEMENT_BUTTON:"js-accept-payment-agreement",PAYMENT_AGREEMENT_ACCEPTED_MESSAGE:"js-payment-agreement-accepted-message",PAYMENT_TABLE_CONTAINER:"js-payment-table",DOWN_PAYMENT_AMOUNT_SPAN:"js-payment-agreement-down-payment",NUMBER_OF_INSTALLMENTS_SPAN:"js-payment-agreement-number-installments",FINAL_PAYMENT_SPAN:"js-payment-agreement-final-payment-span",AMOUNT_PER_INSTALLMENT_SPAN:"js-payment-agreement-installment-amount-span",TOTAL_OUTSTANDING:"js-payment-agreement-total-outstanding",PAY_MY_BILL_OTHER_AMOUNT_URL_PARAM:"PaymentAmount",PAYMENT_AGREEMENT_EDITABLE:"js-payment-agreement-editable",POPUP_INACTIVE_CLASS:"payment-table__popup",POPUP_ACTIVE_CLASS:"payment-table__popup--active",MODIFIED_TERMS_ONLY:"js-payment-agreement-modified-terms-only",DOWN_PAYMENT_DUE_DATE:"js-payment-agreement-down-payment-due-date",RADIO_BUTTON_SELECTOR:"js-coned-radio",RADIO_INDICATOR:"coned-radio__indicator",RADIO_INDICATOR_FOCUS:"coned-radio__indicator--focus",TERM_TYPE_SAO:"SAO",TERM_TYPE_PGR:"PGR",PROGRESS_BAR:"js-pagr-progress-bar",PROGRESS_BAR_SMALL_BAR:"js-pagr-small-bg",PROGRESS_BAR_BIG_BAR:"js-pagr-big-bg",PROGRESS_BAR_INSTALLMENTS_CHECKPOINT:"js-pagr-installments-checkpoint",PROGRESS_BAR_DOWNPAYMENT_CHECKPOINT:"js-pagr-downpayment-checkpoint",PROGRESS_BAR_FINAL_CHECKPOINT:"js-pagr-final-checkpoint",PROGRESS_BAR_AMOUNT:"js-pagr-bar-amount",AMOUNT_CLASS:"manage-enroll__payment-agreement-progress-bar-amount",AMOUNT_GRAYED_SUFFIX:"--grayed",BAR_BIG_BAR_CLASS:"manage-enroll__payment-agreement-progress-bar-big-bg",SMALL_BAR_CLASS:"manage-enroll__payment-agreement-progress-bar-small-bg",SMALL_BAR_STARTED_SUFFIX:"--started",SMALL_BAR_FINISHED_SUFFIX:"--finished",PROGRESS_BAR_CHECKPOINT_CLASS:"manage-enroll__payment-agreement-progress-bar-checkpoint",CHECKPOINT_INSTALLMENTS_SUFFIX:"--installments",CHECKPOINT_ACTIVE_SUFFIX:"--active",CHECKPOINT_ARROW_ICON:"icon-arrow",CHECKPOINT_CHECK_ICON:"icon-check-status",CONTENT_TITLE_TAG:"payment-agreement",START_PAYMENT_AGREEMENT_UNEDITABLE_TAG:"start.payagmt.1",START_PAYMENT_AGREEMENT_EDITABLE_TAG:"start.payagmt.2",PAYMENT_AGREEMENT_FORM_SUCCESS_TAG:"coned.form.success",PAYMENT_AGREEMENT_FORM_ERROR_TAG:"coned.form.error",PAYMENT_AGREEMENT_FORM_CANCEL_TAG:"coned.form.cancel",PAYMENT_AGREEMENT_EDIT_TAG:"edit.payagmt",PAYMENT_AGREEMENT_SCHEDULE_TAG:"schedule.payment",PAYMENT_AGREEMENT_MAKE_PAYMENT_TAG:"make.payment"},t=!1,i=function(i){var it,u,r,f,y,rt,e,s,ut,ft,et,h,p,c,ot,w,st,b,k,d,ht,ct,lt,at,g,vt,nt,l,o,tt,a,v,kt=function(){var n={},t=parseFloat(st.innerHTML.replace(/(\$|,)/g,""))||0,i=parseFloat(b.innerHTML.replace(/(\$|,)/g,""))||0,r=t-i,u=parseFloat(ht.innerHTML.replace(/(\$|,)/g,""))||0;return n={DownPaymentAmount:i,InstallmentBase:r,FinalAmount:u,TotalOutstanding:t},k&&(n.NumberOfInstallments=parseInt(k.innerHTML)),d&&(n.AmountPerInstallment=parseFloat(d.innerHTML.replace(/(\$|,)/g,""))||0),n},yt=function(){var t=r.dataset.statement;t=="false"?e.classList.add(n.HIDDEN_CLASS):(f.classList.add(n.HIDDEN_CLASS),e.classList.remove(n.HIDDEN_CLASS),i.classList.remove(n.ALERT_CLASS),i.getElementsByClassName(n.ICON_STATUS_TEXT)[0].innerText=n.ENROLLED,u.getElementsByClassName(n.LINK_DESCRIPTION)[0].innerHTML=r.dataset.manage,r.dataset.openName=r.dataset.manage)},dt=function(n){n.preventDefault();window.location.href=i.dataset.redirectUrl},gt=function(n){n.preventDefault();window.location.href=i.dataset.queryRedirectUrl},ni=function(n){n.preventDefault();u.click()},pt=function(){var r=parseFloat(b.innerHTML.replace(/(\$|,)/g,"")).toFixed(2),t=i.dataset.queryRedirectUrl;t=coned.utils.updateUrlParameter(n.PAY_MY_BILL_OTHER_AMOUNT_URL_PARAM,r,t);window.location.href=t},ti=function(n){n&&n.preventDefault();pt()},ii=function(n){n.preventDefault();window.location.href=i.dataset.queryRedirectUrl},wt=function(t){t.preventDefault();var r=kt(),e=i.dataset.updateTermsServiceUrl,o=tt?n.TERM_TYPE_PGR:n.TERM_TYPE_SAO,f;ri();var u=new Date(ct.dataset.downPaymentDueDate),s=r.TotalOutstanding,h=r.DownPaymentAmount,c=u,l=u,a=r.AmountPerInstallment,v=new Date(u.setMonth(u.getMonth()+1)),y=r.NumberOfInstallments,p=r.FinalAmount,w=new Date(u.setMonth(u.getMonth()+r.NumberOfInstallments));f={Maid:ft.value,TermType:o,TotalAgreementAmount:s,DownPaymentAmount:h,DownPaymentDate:c,FirstPaymentDueDate:l,InstallmentAmount:a,InstallmentDueDate:v,NumberOfInstallments:y,FinalPaymentAmount:p,FinalPaymentDate:w};f=JSON.stringify(f);query.postData(e,ui,fi,f,!0,et)},ri=function(){s.classList.add(n.HIDDEN_CLASS)},ui=function(){hi();coned.utils.qualtricsTriggering(i);coned.utils.isOru()?(r.dataset.statement="true",yt(),y.classList.remove(n.HIDDEN_CLASS),f.classList.add(n.HIDDEN_CLASS),e.classList.add(n.HIDDEN_CLASS)):tt?(query.addClass(lt,n.HIDDEN_CLASS),query.addClass(at,n.HIDDEN_CLASS),c.classList.remove(n.HIDDEN_CLASS),g.innerHTML=g.dataset.originalText,vt.classList.remove(n.HIDDEN_CLASS),nt.innerHTML=nt.dataset.paymentAgreementConfirmationText):pt()},fi=function(t){s.classList.remove(n.HIDDEN_CLASS);ut.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;ci();s.focus()},ei=function(t){t.preventDefault();query.removeClass(h,n.HIDDEN_CLASS);h.classList.remove(n.POPUP_INACTIVE_CLASS);h.classList.add(n.POPUP_ACTIVE_CLASS)},oi=function(){var t=!query.hasClass(u,"active");t&&dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:o?n.START_PAYMENT_AGREEMENT_EDITABLE_TAG:n.START_PAYMENT_AGREEMENT_UNEDITABLE_TAG})},si=function(){dataLayer.push({event:n.PAYMENT_AGREEMENT_EDIT_TAG})},hi=function(){dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.PAYMENT_AGREEMENT_FORM_SUCCESS_TAG})},ci=function(){dataLayer.push({event:n.PAYMENT_AGREEMENT_FORM_ERROR_TAG})},bt=function(){dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.PAYMENT_AGREEMENT_SCHEDULE_TAG})},li=function(){dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.PAYMENT_AGREEMENT_MAKE_PAYMENT_TAG})},ai=function(){_.each(a,function(t,i){var s=t.getElementsByClassName(n.PROGRESS_BAR_SMALL_BAR)[0],p=t.getElementsByClassName(n.PROGRESS_BAR_BIG_BAR)[0],e=t.getElementsByClassName(n.PROGRESS_BAR_INSTALLMENTS_CHECKPOINT)[0],c=t.getElementsByClassName(n.PROGRESS_BAR_DOWNPAYMENT_CHECKPOINT)[0],l=t.getElementsByClassName(n.PROGRESS_BAR_FINAL_CHECKPOINT)[0],a=t.parentElement.getElementsByClassName(n.PROGRESS_BAR_AMOUNT),u=t.dataset.totalInstallments&&t.dataset.totalInstallments!==""?parseInt(t.dataset.totalInstallments):0,f=t.dataset.installmentsMade&&t.dataset.installmentsMade!==""?parseInt(t.dataset.installmentsMade):0,w=t.dataset.downpaymentCheck&&t.dataset.downpaymentCheck==="true"?!0:!1,b=t.dataset.finalCheck&&t.dataset.finalCheck==="true"?!0:!1,r,k="background: -moz-linear-gradient(middle, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: -webkit-gradient(left middle, left right, color-stop(@PERCENTAGE%, #00882B), color-stop(@PERCENTAGE%, white));                                        background: -webkit-linear-gradient(middle, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: -o-linear-gradient(middle, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: -ms-linear-gradient(middle, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: linear-gradient(to right, #00882B @PERCENTAGE%, white @PERCENTAGE%);".trim(),d="background: -moz-linear-gradient(top, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: -webkit-gradient(middle top, middle bottom, color-stop(@PERCENTAGE%, #00882B), color-stop(@PERCENTAGE%, white));                                        background: -webkit-linear-gradient(top, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: -o-linear-gradient(top, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: -ms-linear-gradient(top, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: linear-gradient(to bottom, #00882B @PERCENTAGE%, white @PERCENTAGE%);".trim(),y,o,h;w&&(c.classList.add(n.PROGRESS_BAR_CHECKPOINT_CLASS+n.CHECKPOINT_ACTIVE_SUFFIX),c.classList.add(n.CHECKPOINT_CHECK_ICON),a[1].classList.remove(n.AMOUNT_CLASS+n.AMOUNT_GRAYED_SUFFIX),e.classList.add(n.CHECKPOINT_ARROW_ICON),e.classList.add(n.PROGRESS_BAR_CHECKPOINT_CLASS+n.CHECKPOINT_ACTIVE_SUFFIX),s.classList.add(n.SMALL_BAR_CLASS+n.SMALL_BAR_STARTED_SUFFIX));f===0&&u>0?r=0:f>0&&f<u?(y=100/u,r=y>v?100*f/u:v+(100-v*2)*(f-1)/(u-2)):f===u&&(r=100,a[2].classList.remove(n.AMOUNT_CLASS+n.AMOUNT_GRAYED_SUFFIX),e.classList.add(n.CHECKPOINT_CHECK_ICON),e.classList.remove(n.CHECKPOINT_ARROW_ICON));e.classList.add(n.PROGRESS_BAR_CHECKPOINT_CLASS+"--"+i);p.classList.add(n.BAR_BIG_BAR_CLASS+"--"+i);o=document.createElement("style");h=document.querySelector("script");o.textContent+="@media only screen and (min-width: 768px){ ."+n.PROGRESS_BAR_CHECKPOINT_CLASS+n.CHECKPOINT_INSTALLMENTS_SUFFIX+"."+n.PROGRESS_BAR_CHECKPOINT_CLASS+"--"+i+"{ left: "+r+"% !important; }."+n.BAR_BIG_BAR_CLASS+"."+n.BAR_BIG_BAR_CLASS+"--"+i+"{ "+k.replace(/@PERCENTAGE/g,r)+" } }";o.textContent+="@media only screen and (max-width: 767px){ ."+n.PROGRESS_BAR_CHECKPOINT_CLASS+n.CHECKPOINT_INSTALLMENTS_SUFFIX+"."+n.PROGRESS_BAR_CHECKPOINT_CLASS+"--"+i+"{ top: "+r+"% !important; }."+n.BAR_BIG_BAR_CLASS+"."+n.BAR_BIG_BAR_CLASS+"--"+i+"{ "+d.replace(/@PERCENTAGE/g,r)+" } }";h.parentNode.insertBefore(o,h);b&&(l.classList.add(n.PROGRESS_BAR_CHECKPOINT_CLASS+n.CHECKPOINT_ACTIVE_SUFFIX),l.classList.add(n.CHECKPOINT_CHECK_ICON),s.classList.remove(n.SMALL_BAR_CLASS+n.SMALL_BAR_STARTED_SUFFIX),s.classList.add(n.SMALL_BAR_CLASS+n.SMALL_BAR_FINISHED_SUFFIX))})},vi=function(){it=i.getElementsByClassName(n.CLOSE_SELECTOR);u=i.getElementsByClassName(n.LINK_ACCORDION_SELECTOR)[0];r=i.getElementsByClassName(n.ACCORDION_SELECTOR)[0];f=i.getElementsByClassName(n.ENROLL_FORM_SELECTOR)[0];y=i.getElementsByClassName(n.ORU_ENROLL_CONFIRMATION)[0];e=i.getElementsByClassName(n.MANAGE_FORM_SELECTOR)[0];rt=i.getElementsByClassName(n.CANCEL_ENROLL_BUTTON)[0];s=i.getElementsByClassName(n.SERVICE_ERROR)[0];ut=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];ft=document.getElementsByName(n.ACCOUNT_MAID_INPUT)[0];et=document.getElementsByClassName(n.FORM_LOADING)[0];o=query.hasClass(i,n.PAYMENT_AGREEMENT_EDITABLE);w=i.getElementsByClassName(n.MANAGE_SCHEDULE_PAYMENT_BUTTON)[0];h=document.getElementsByClassName(n.EDIT_PAYMENT_AGREEMENT_POPUP)[0];b=i.getElementsByClassName(n.DOWN_PAYMENT_AMOUNT_SPAN)[0];k=i.getElementsByClassName(n.NUMBER_OF_INSTALLMENTS_SPAN)[0];c=i.getElementsByClassName(n.SCHEDULE_PAYMENT_BUTTON)[0];ot=i.getElementsByClassName(n.MAKE_PAYMENT_BUTTON)[0];g=i.getElementsByClassName(n.PAYMENT_CANCEL_BUTTON)[0];at=i.getElementsByClassName(n.ACCEPT_PAYMENT_AGREEMENT_BUTTON)[0];vt=i.getElementsByClassName(n.PAYMENT_AGREEMENT_ACCEPTED_MESSAGE)[0];lt=i.getElementsByClassName(n.PAYMENT_TABLE_CONTAINER)[0];st=i.getElementsByClassName(n.TOTAL_OUTSTANDING)[0];d=i.getElementsByClassName(n.AMOUNT_PER_INSTALLMENT_SPAN)[0];ht=i.getElementsByClassName(n.FINAL_PAYMENT_SPAN)[0];ct=i.getElementsByClassName(n.DOWN_PAYMENT_DUE_DATE)[0];nt=i.getElementsByClassName(n.PAYMENT_AGREEMENT_CHECK_TEXT)[0];l=i.getElementsByClassName(n.RADIO_BUTTON_SELECTOR);tt=query.hasClass(i,n.MODIFIED_TERMS_ONLY);o&&(p=i.getElementsByClassName(n.OPEN_EDIT_PAYMENT_AGREEMENT_POPUP_BUTTON));a=i.getElementsByClassName(n.PROGRESS_BAR);a&&(v=12)},yi=function(){yt();coned.utils.addGeneralListeners(c,ti);o?(f.addEventListener("submit",wt),_.each(p,function(n){coned.utils.addGeneralListeners(n,ei)})):f.addEventListener("submit",wt);e.addEventListener("submit",dt);coned.utils.addGeneralListeners(w,ii);a&&ai();y.addEventListener("submit",gt);coned.utils.addGeneralListeners(rt,ni);_.each(it,function(t){coned.utils.addGeneralListeners(t,function(){dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.PAYMENT_AGREEMENT_FORM_CANCEL_TAG})})});coned.utils.addGeneralListeners(u,oi);coned.utils.addGeneralListeners(w,bt);coned.utils.addGeneralListeners(ot,li);o&&(coned.utils.addGeneralListeners(c,bt),_.each(p,function(n){coned.utils.addGeneralListeners(n,si)}));for(var t=0;t<l.length;t++)l[t].addEventListener("focusin",function(){var t=this.parentElement.getElementsByClassName(n.RADIO_INDICATOR)[0];query.addClass(t,n.RADIO_INDICATOR_FOCUS)}),l[t].addEventListener("focusout",function(){var t=this.parentElement.getElementsByClassName(n.RADIO_INDICATOR)[0];query.removeClass(t,n.RADIO_INDICATOR_FOCUS)})},pi=function(){vi();yi();t=!0};pi()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DashboardPaymentAgreement=function(){var n={FORM_SIGNATURE_SELECTOR:"js-payment-agreement-signature",PAYMENT_AGREEMENT_COMMERCIAL:"js-payment-agreement-commercial",FORM_DPA_SBMT_BTN_SELECTOR:"js-dpa-sbmt-btn",EMAIL_PARAGRAPH:"js-email-paragraph",NO_EMAIL_PARAGRAPH:"js-no-email-paragraph",FORM_SIGNATURE_SBMT_SELECTOR:"manage-enroll__signature-submit",FORM_SIGNATURE_ERROR_SELECTOR:"coned-field-error-wrapper",SIGNATURE_ERROR_COPY:"js-signature-error__copy",FORM_SELECTOR:"js-payment-agreement",SIGNATURE_READY_BODY:"js-signature-body",SIGNATURE_COVID_READY_BODY:"js-covid-signature-body",SIGNATURE_READY_ERROR:"js-signature-error",DPA_SUCCESS_SELECTOR:"js-signature-ready",DPA_EMAIL_TOKEN:"js-email-token",ENROLL_FORM_SELECTOR:"js-payment-agreement-enroll",CANCEL_ENROLL_BUTTON:"js-cancel-enroll",MANAGE_FORM_SELECTOR:"js-manage-form",CLOSE_SELECTOR:"js-accordion-close",COVID_CLOSE_SELECTOR:"js-accordion-close-covid",CLOSE_SELECTOR_ACCEPT:"js-accordion-close-accept",LINK_ACCORDION_SELECTOR:"js-accordion-selector",LINK_DESCRIPTION:"js-link-description",ACCORDION_SELECTOR:"js-accordion-contain",UNENROLLMENT_CLASS:"manage-enroll__list--inactive",HIDDEN_CLASS:"hidden",DISABLED_ATTR:"disabled",FORM_SCID:"scId",CHANGE:"change",FORM_UPDATE_ACCOUNT_TYPE:"PaymentAgreement",ACCOUNT_MAID_INPUT:"accountMaid",DPA_PAYMENT_AGREEMENT:"js-payment-agreement-dpa",DPA_RADIO_CONFIRMATION_INPUT:"mailMyConfirmation",DPA_SIGNATURE_EMAIL:"signatureEmail",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",FORM_LOADING:"js-form-loading",EDIT_PAYMENT_AGREEMENT_POPUP:"js-edit-payment-agreement-popup",OPEN_EDIT_PAYMENT_AGREEMENT_POPUP_BUTTON:"js-open-edit-payment-agreement-popup",EDIT_PAYMENT_AGREEMENT_FORM:"js-edit-payment-agreement-form",SCHEDULE_PAYMENT_BUTTON:"js-schedule-a-payment",MAKE_PAYMENT_BUTTON:"js-make-a-payment",MANAGE_SCHEDULE_PAYMENT_BUTTON:"js-schedule-a-payment-manage",MANAGE_ACCEPT_PAYMENT_BUTTON:"js-accept-and-pay-manage",PAYMENT_CANCEL_BUTTON:"js-accordion-close",PAYMENT_AGREEMENT_CHECK_TEXT:"js-item-title-selector",ACCEPT_PAYMENT_AGREEMENT_BUTTON:"js-accept-payment-agreement",PAYMENT_AGREEMENT_ACCEPTED_MESSAGE:"js-payment-agreement-accepted-message",PAYMENT_TABLE_CONTAINER:"js-payment-table",DOWN_PAYMENT_AMOUNT_SPAN:"js-payment-agreement-down-payment",NUMBER_OF_INSTALLMENTS_SPAN:"js-payment-agreement-number-installments",FINAL_PAYMENT_SPAN:"js-payment-agreement-final-payment-span",AMOUNT_PER_INSTALLMENT_SPAN:"js-payment-agreement-installment-amount-span",TOTAL_OUTSTANDING:"js-payment-agreement-total-outstanding",PAY_MY_BILL_OTHER_AMOUNT_URL_PARAM:"PaymentAmount",PAYMENT_AGREEMENT_EDITABLE:"js-payment-agreement-editable",POPUP_INACTIVE_CLASS:"payment-table__popup",PAYMENT_AGREEMENT_TABLE:"js-payment-agreement-table-wrapper",POPUP_ACTIVE_CLASS:"payment-table__popup--active",POPUP_CONTAINER:"js-popup-container",MODIFIED_TERMS_ONLY:"js-payment-agreement-modified-terms-only",DOWN_PAYMENT_DUE_DATE:"js-payment-agreement-down-payment-due-date",DOWNPAYMENT_INPUT_CLASS:"js-currency-input--downpayment",INSTALLMENTS_INPUT_CLASS:"js-number-input--installments",INPUT_ERRORR_CLASS:"coned-input-message--error",SAVE_EDIT_FORM_BUTTON:"js-save-edit-payment-agreement",PAYMENT_AGREEMENT_SAO_SELECTOR:"js-payment-agreement-sao",PAYMENT_AGREEMENT_SAO_MODIFIED_SELECTOR:"js-payment-agreement-sao-modified-terms",PAYMENT_AGREEMENT_MODIFIED_SELECTOR:"js-payment-agreement-modified-terms-only",PAYMENT_AGREEMENT_BNA_RENEGOTIATE_SELECTOR:"js-payment-agreement-bna-renegotiate",BNA_RENEGOTIATE_PAYMENT_AGREEMENT_BANNER_SELECTOR:"js-bna-renegotiate-payment-agreement-banner",BNA_RENEGOTIATE_OVERVIEW_BILL_CARD_VIEW_PLAN_SELECTOR:"js-bna-renegotiate-overview-bill-card-view-plan",BNA_RENEGOTIATE_AGREEMENT_BUTTON:"js-bna-renegotiate-agreement-btn",BNA_RENEGOTIATE_SECTION:"js-bna-renegotiate",BNA_OPTIONS_SECTION:"js-bna-options",SCENARIO_CLASS:"js-scenario-page",ENABLE_EMAIL_SELECTOR:"js-enable-email",DISABLE_EMAIL_SELECTOR:"js-disable-email",DPA_EMAIL_INPUT_SELECTOR:"js-dpa-input-email",DPA_EMAIL_FIELDS_TO_HIDE:"js-dpa-email-to-hide",DPA_HIDDEN:"js-dpa-hidden",ICON_STATUS_TEXT:"icon-status-text",DATA_ENROLLED:"data-enrolled",FILLED_CLASS:"coned-input--filled",ARIA_HIDDEN_ATTR:"aria-hidden",INACTIVE_CLASS:"manage-enroll__list--inactive",ALERT_CLASS:"manage-enroll__list--alert",RADIO_BUTTON_SELECTOR:"js-coned-radio",RADIO_INDICATOR:"coned-radio__indicator",RADIO_INDICATOR_FOCUS:"coned-radio__indicator--focus",TERM_TYPE_SAO:"SAO",TERM_TYPE_PGR:"PGR",TERM_TYPE_COVID:"COVID",BLUR_EVENT:"blur",TABINDEX_ATTRIBUTE:"tabindex",PAGR_PARAMETER_NAME:"pagr",OVERPAYMENT:"op=true",QUESTION_MARK:"?",AMPERSAND:"&",COVID_IDENTIFY_FORM:"js-payment-agreement-covid-enroll",COVID_IDENTIFY_RADIO_BUTTONS:"js-payment-agreement-covid-identify",COVID_IDENTIFY_RADIO_NAME:"paymentAgreementCovidIdentify",COVID_IDENTIFY_ACCEPTED_VALUE:"paymentAgreementCovidIdentifyAccept",COVID_IDENTIFY_REJECTED_VALUE:"paymentAgreementCovidIdentifyReject",COVID_TERMS_RADIO_BUTTONS:"js-payment-agreement-terms",COVID_TERMS_RADIO_NAME:"paymentAgreementCovidTerms",COVID_TERMS_ACCEPTED_VALUE:"paymentAgreementCovidTermsAccept",COVID_TERMS_REJECTED_VALUE:"paymentAgreementCovidTermsReject",COVID_TERMS_ACCEPTED_TABLE:"js-payment-agreement-terms-covid-table",COVID_TERMS_REJECTED_TABLE:"js-payment-agreement-terms-standard-table",COVID_ACCEPTED_MESSAGE:"js-payment-agreement-covid-accepted-message",COVID_HIDE_ELEMENTS:"js-covid-hide",ACTIVE_DATE:"js-active-date",COMMERCIAL:"commercial",SHOW_COVID_TERMS:"show-covid-terms",CONTINUE_BUTTON:"js-covid-terms-continue",PROGRESS_BAR:"js-pagr-progress-bar",PROGRESS_BAR_SMALL_BAR:"js-pagr-small-bg",PROGRESS_BAR_BIG_BAR:"js-pagr-big-bg",PROGRESS_BAR_INSTALLMENTS_CHECKPOINT:"js-pagr-installments-checkpoint",PROGRESS_BAR_DOWNPAYMENT_CHECKPOINT:"js-pagr-downpayment-checkpoint",PROGRESS_BAR_FINAL_CHECKPOINT:"js-pagr-final-checkpoint",PROGRESS_BAR_AMOUNT:"js-pagr-bar-amount",AMOUNT_CLASS:"manage-enroll__payment-agreement-progress-bar-amount",AMOUNT_GRAYED_SUFFIX:"--grayed",BAR_BIG_BAR_CLASS:"manage-enroll__payment-agreement-progress-bar-big-bg",SMALL_BAR_CLASS:"manage-enroll__payment-agreement-progress-bar-small-bg",SMALL_BAR_STARTED_SUFFIX:"--started",SMALL_BAR_FINISHED_SUFFIX:"--finished",PROGRESS_BAR_CHECKPOINT_CLASS:"manage-enroll__payment-agreement-progress-bar-checkpoint",CHECKPOINT_INSTALLMENTS_SUFFIX:"--installments",CHECKPOINT_ACTIVE_SUFFIX:"--active",CHECKPOINT_ARROW_ICON:"icon-arrow",CHECKPOINT_CHECK_ICON:"icon-check-status",LAZY_LOAD_CLASS:"js-lazy-load",LAZY_LOAD_TAB_CLASS:"js-lazy-load-manage-my-account",LAZY_LOAD_LOADED_CLASS:"js-lazy-load-element-loaded",CONTENT_TITLE_TAG:"payment-agreement",START_PAYMENT_AGREEMENT_UNEDITABLE_TAG:"start.payagmt.1",START_PAYMENT_AGREEMENT_EDITABLE_TAG:"start.payagmt.2",PAYMENT_AGREEMENT_FORM_SUCCESS_TAG:"coned.form.success",PAYMENT_AGREEMENT_FORM_MODIFIED_TERMS_TAG:"coned.modified.terms.payagmt",PAYMENT_AGREEMENT_FORM_ERROR_TAG:"coned.form.error",PAYMENT_AGREEMENT_FORM_CANCEL_TAG:"coned.form.cancel",PAYMENT_AGREEMENT_EDIT_TAG:"edit.payagmt",PAYMENT_AGREEMENT_SCHEDULE_TAG:"schedule.payment",PAYMENT_AGREEMENT_MAKE_PAYMENT_TAG:"make.payment.payagmt",DPA_SBMT_BTN_TAG_CLASS:"tag-payment-agreement-signature-",DPA_CONFIRMATION_TYPE_EMAIL:"email",DPA_CONFIRMATION_TYPE_MAIL:"mail",SCENARIO_SAO_CANCEL_TAG:"tag.sao.cancel",SCENARIO_SAO_ACCEPT_TAG:"tag.sao.accept",SCENARIO_SAO_SCHEDULE_TAG:"tag.sao.schedule",SCENARIO_COMMERCIAL_CANCEL_TAG:"tag.commercial.cancel",SCENARIO_COMMERCIAL_ACCEPT_TAG:"tag.commercial.accept",SCENARIO_COMMERCIAL_SCHEDULE_TAG:"tag.commercial.schedule",SCENARIO_SAO_MODIFIED_CANCEL_TAG:"tag.sao.modify.cancel",SCENARIO_SAO_MODIFIED_ACCEPT_TAG:"tag.sao-modify.accept",SCENARIO_SAO_MODIFIED_EDIT_TAG:"tag.sao-modify.edit",SCENARIO_SAO_MODIFIED_SCHEDULE_TAG:"tag.sao-modify.schedule",SCENARIO_MODIFIED_CANCEL_TAG:"tag.modify.cancel",SCENARIO_MODIFIED_ACCEPT_TAG:"tag.modify.accept",SCENARIO_MODIFIED_EDIT_TAG:"tag.modify.edit",SCENARIO_MODIFIED_SCHEDULE_TAG:"tag.modify.schedule",SCENARIO_MODIFIED_COMMERCIAL_ACCEPT_TAG:"tag.modify.commercial.accept"},t=!1,i=function(i){var ni,yr,wt,nt,w,d,u,r,pr,di,wr,h,b,gi,nr,tr,bt,a,f,ti,tt,ot,ii,ri,ui,l,fi,it,br,ir,kr,kt,rt,st,ht,dt,o,ei,ut,rr,ur,oi,si,fr,er,ft,or,c,ct,dr,hi,g,et,sr,ci,v,s,hr,gr,nu,tu,lt,iu,cr,lr,k,e,li,ai,y,vi,ru,at,uu,vt,yi,fu,pi,p,wi,yt,pt,bi,eu=!1,ku=function(){var n={},t=parseFloat(kt.innerHTML.replace(/(\$|,)/g,""))||0,i=parseFloat(rt.innerHTML.replace(/(\$|,)/g,""))||0,r=t-i,u=parseFloat(dt[0].innerHTML.replace(/(\$|,)/g,""))||0;return n={DownPaymentAmount:i,InstallmentBase:r,FinalAmount:u,TotalOutstanding:t},st.length&&(n.NumberOfInstallments=parseInt(st[0].innerHTML)),ht.length&&(n.AmountPerInstallment=parseFloat(ht[0].innerHTML.replace(/(\$|,)/g,""))||0),n},du=function(){var t=a.dataset.statement;t==="false"?tt&&tt.classList.add(n.HIDDEN_CLASS):t==="true"&&(a.dataset.openName=a.dataset.manage,f&&f.classList.add(n.HIDDEN_CLASS),tt&&tt.classList.remove(n.HIDDEN_CLASS),i&&(i.classList.remove(n.ALERT_CLASS),i.classList.remove(n.INACTIVE_CLASS),g.innerText=g.getAttribute(n.DATA_ENROLLED)),bt&&(bt.getElementsByClassName(n.LINK_DESCRIPTION)[0].innerHTML=a.dataset.manage))},gu=function(n){n.preventDefault();i.dataset.redirectUrl&&(window.location.href=i.dataset.redirectUrl)},nf=function(t){var u=t.currentTarget.dataset.amount&&t.currentTarget.dataset.amount!==""?parseFloat(t.currentTarget.dataset.amount).toFixed(2):0,r=i.dataset.queryRedirectUrl;u&&(r=coned.utils.updateUrlParameter(n.PAY_MY_BILL_OTHER_AMOUNT_URL_PARAM,u,r));r&&(window.location.href=r)},tf=function(n){n&&n.preventDefault();lu();nf(n)},ou=function(t){t.preventDefault();i.dataset.queryRedirectUrl&&(window.location.href=i.dataset.queryRedirectUrl.indexOf("?")>-1?i.dataset.queryRedirectUrl+n.AMPERSAND+n.OVERPAYMENT:i.dataset.queryRedirectUrl+n.QUESTION_MARK+n.OVERPAYMENT)},su=function(t){t.preventDefault();var r=ku(),s=i.dataset.updateTermsServiceUrl,h=e?n.TERM_TYPE_COVID:fu||yi?n.TERM_TYPE_PGR:n.TERM_TYPE_SAO,f;hu();var u=o?o.dataset.downPaymentDueDate:"",c=r.TotalOutstanding,l=r.DownPaymentAmount,a=new Date(u),v=new Date(u),w=r.AmountPerInstallment,b=new Date(new Date(u).setMonth(new Date(u).getMonth()+1)),k=r.NumberOfInstallments,d=r.FinalAmount,g=new Date(new Date(u).setMonth(new Date(u).getMonth()+r.NumberOfInstallments));f={Maid:ri.value,TermType:h,TotalAgreementAmount:c,DownPaymentAmount:l,DownPaymentDate:a,FirstPaymentDueDate:v,InstallmentAmount:w,InstallmentDueDate:b,NumberOfInstallments:k,FinalPaymentAmount:d,FinalPaymentDate:g,HasEmail:wi};y&&at?dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.SCENARIO_MODIFIED_COMMERCIAL_ACCEPT_TAG}):p?dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.SCENARIO_SAO_ACCEPT_TAG}):yt?dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.SCENARIO_SAO_MODIFIED_ACCEPT_TAG}):pt?dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.SCENARIO_MODIFIED_ACCEPT_TAG}):y&&dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.SCENARIO_COMMERCIAL_ACCEPT_TAG});f=JSON.stringify(f);query.postData(s,ff,ef,f,!0,ui)},hu=function(){ot.classList.add(n.HIDDEN_CLASS)},ar=function(){if(!t){var n=i.dataset.eligibilityServiceUrl,r;if(!n){gt();return}query.getData(n,rf,gt,r)}},rf=function(t){if(coned.utils.isPatternLab()){var i=coned.utils.getUrlParameterValue(n.PAGR_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.PAGR_PARAMETER_NAME):coned.constants.DEFAULT_SCENARIO,r=coned.plConstants.GET_PAYMENT_AGREEMENT_SCENARIO_HTML_URL+i+coned.constants.HTML_EXTENSION;query.getData(r,cu,gt)}else cu(t)},gt=function(){i.classList.add(n.HIDDEN_CLASS);t=!0;pi&&(ni.removeEventListener("lazy-load-start",ar),i.classList.add(n.LAZY_LOAD_LOADED_CLASS),coned.utils.triggerEvent(i,"lazy-load-element-loaded"))},cu=function(r){if(r){var o=new DOMParser,f,u,e;if(f=o.parseFromString(r,"text/html"),u=f.getElementsByClassName(n.FORM_SELECTOR),u.length!==0&&u[0].dataset.content!=="false")u=u[0];else{gt();return}for(i.innerHTML=u.innerHTML,e=u.attributes;i.attributes.length>0;)i.removeAttribute(i.attributes[0].name);_.each(e,function(n){i.setAttribute(n.nodeName,n.nodeValue)});u.dataset.module&&(wu(),bu(),coned.utils.initializeModules(i));ru&&coned.utils.triggerEvent(i,"scenarios-element-loaded")}else{gt();return}t=!0;pi&&(ni.removeEventListener("lazy-load-start",ar),i.classList.add(n.LAZY_LOAD_LOADED_CLASS),coned.utils.triggerEvent(i,"lazy-load-element-loaded"));coned.utils.triggerEvent(window,"service-loaded")},uf=function(){at=!0;yi=!0},ff=function(t){var s;if(at?af():lf(),y?(s=e?"COVID 19 Terms":"Standard Terms",dataLayer.push({"covid-terms-commercial":s})):dataLayer.push({"covid-terms":e}),coned.utils.qualtricsTriggering(i),query.addClass(ei,n.HIDDEN_CLASS),query.addClass(ut,n.HIDDEN_CLASS),_.each(it,function(t){t.classList.remove(n.HIDDEN_CLASS)}),rr.innerHTML=rr.dataset.modifiedPayment,ur.innerHTML=ur.dataset.paymentAgreementConfirmationText,h&&(y||at||yi||k&&e))if(_.each(yr,function(t){query.addClass(t,n.HIDDEN_CLASS)}),t.hasOwnProperty("dpaProcessed")&&t.dpaProcessed===!1)vr();else if(wi){if(k&&e&&!p){ct=r?r.getElementsByClassName(n.DPA_EMAIL_TOKEN)[0]:u.getElementsByClassName(n.DPA_EMAIL_TOKEN)[0];w=r?r.getElementsByClassName(n.EMAIL_PARAGRAPH)[0]:u.getElementsByClassName(n.EMAIL_PARAGRAPH)[0];nt=r?r.getElementsByClassName(n.NO_EMAIL_PARAGRAPH)[0]:u.getElementsByClassName(n.NO_EMAIL_PARAGRAPH)[0];r?(r.classList.remove(n.HIDDEN_CLASS),u.classList.add(n.HIDDEN_CLASS)):u.classList.remove(n.HIDDEN_CLASS);w.classList.remove(n.HIDDEN_CLASS);var l=c.getElementsByClassName(n.SCHEDULE_PAYMENT_BUTTON)[0],o=c.getElementsByClassName(n.COVID_CLOSE_SELECTOR)[0],v=c.getElementsByClassName(n.CLOSE_SELECTOR)[0];l&&l.classList.add(n.HIDDEN_CLASS);v&&v.classList.add(n.HIDDEN_CLASS);o&&(o.classList.remove(n.HIDDEN_CLASS),o.innerHTML=o.dataset.acceptedCovid)}else k&&!e&&(ct=u.getElementsByClassName(n.DPA_EMAIL_TOKEN)[0],w=u.getElementsByClassName(n.EMAIL_PARAGRAPH)[0],nt=u.getElementsByClassName(n.NO_EMAIL_PARAGRAPH)[0],r&&r.classList.add(n.HIDDEN_CLASS),u.classList.remove(n.HIDDEN_CLASS));c.classList.remove(n.HIDDEN_CLASS);f.classList.add(n.HIDDEN_CLASS);c.focus();i.classList.remove(n.ALERT_CLASS);i.classList.remove(n.INACTIVE_CLASS);g.innerText=g.getAttribute(n.DATA_ENROLLED);a.dataset.openName=a.dataset.manage}else f.classList.add(n.HIDDEN_CLASS),h.classList.remove(n.HIDDEN_CLASS),h.focus(),k&&e&&!p?(ct=r?r.getElementsByClassName(n.DPA_EMAIL_TOKEN)[0]:u.getElementsByClassName(n.DPA_EMAIL_TOKEN)[0],w=r?r.getElementsByClassName(n.EMAIL_PARAGRAPH)[0]:u.getElementsByClassName(n.EMAIL_PARAGRAPH)[0],nt=r?r.getElementsByClassName(n.NO_EMAIL_PARAGRAPH)[0]:u.getElementsByClassName(n.NO_EMAIL_PARAGRAPH)[0],r?(r.classList.remove(n.HIDDEN_CLASS),u.classList.add(n.HIDDEN_CLASS)):u.classList.remove(n.HIDDEN_CLASS)):k&&!e&&(ct=u.getElementsByClassName(n.DPA_EMAIL_TOKEN)[0],w=u.getElementsByClassName(n.EMAIL_PARAGRAPH)[0],nt=u.getElementsByClassName(n.NO_EMAIL_PARAGRAPH)[0],r&&r.classList.add(n.HIDDEN_CLASS),u.classList.remove(n.HIDDEN_CLASS));else k&&e&&!p?(hr.classList.remove(n.HIDDEN_CLASS),hr.focus(),_.each(it,function(t){t.classList.add(n.HIDDEN_CLASS)}),_.each(di,function(t){t.classList.add(n.HIDDEN_CLASS)}),ut.type="button",ut.classList.remove(n.HIDDEN_CLASS),ut.classList.add(n.CLOSE_SELECTOR),ut.innerHTML=ut.dataset.acceptedCovid):(dr.classList.remove(n.HIDDEN_CLASS),f.focus()),i.classList.remove(n.ALERT_CLASS),i.classList.remove(n.INACTIVE_CLASS),g.innerText=g.getAttribute(n.DATA_ENROLLED),a.dataset.openName=a.dataset.manage;bi&&(cr&&query.addClass(cr,n.HIDDEN_CLASS),lr&&query.addClass(lr,n.HIDDEN_CLASS))},ef=function(t){t.hasOwnProperty("dpaProcessed")&&t.dpaProcessed===!1?vr():(ii.innerHTML=t.errorMsg?t.errorMsg:ii.innerHTML!==""?ii.innerText:coned.constants.ERROR_MESSAGE,ot.classList.remove(n.HIDDEN_CLASS),ot.focus(),vf())},vr=function(){f&&f.classList.add(n.HIDDEN_CLASS);h.classList.add(n.HIDDEN_CLASS);u.classList.remove(n.HIDDEN_CLASS);pr.classList.remove(n.HIDDEN_CLASS);w.classList.add(n.HIDDEN_CLASS);nt.classList.add(n.HIDDEN_CLASS);query.removeClass(c,n.HIDDEN_CLASS);c.focus();r&&k&&!p&&r.classList.add(n.HIDDEN_CLASS)},of=function(t){t.preventDefault();vi=t.target;oi=l.getElementsByClassName(n.DOWNPAYMENT_INPUT_CLASS)[0];si=l.getElementsByClassName(n.INSTALLMENTS_INPUT_CLASS)[0];oi.classList.remove(n.INPUT_ERRORR_CLASS);si.classList.remove(n.INPUT_ERRORR_CLASS);oi.value=t.currentTarget.dataset.originalDownpayment;coned.utils.triggerEvent(oi,"change");si.value=t.currentTarget.dataset.originalNumberinstallments;coned.utils.triggerEvent(si,"change");uu=$(l.getElementsByClassName(n.EDIT_PAYMENT_AGREEMENT_FORM)).validate();uu.resetForm();query.removeClass(l,n.HIDDEN_CLASS);l.classList.remove(n.POPUP_INACTIVE_CLASS);l.classList.add(n.POPUP_ACTIVE_CLASS);var i=l.getElementsByClassName(n.POPUP_CONTAINER)[0];i?i.focus():l.focus()},sf=function(){_.each(li,function(t,i){var s=t.getElementsByClassName(n.PROGRESS_BAR_SMALL_BAR)[0],y=t.getElementsByClassName(n.PROGRESS_BAR_BIG_BAR)[0],e=t.getElementsByClassName(n.PROGRESS_BAR_INSTALLMENTS_CHECKPOINT)[0],c=t.getElementsByClassName(n.PROGRESS_BAR_DOWNPAYMENT_CHECKPOINT)[0],l=t.getElementsByClassName(n.PROGRESS_BAR_FINAL_CHECKPOINT)[0],a=t.parentElement.getElementsByClassName(n.PROGRESS_BAR_AMOUNT),u=t.dataset.totalInstallments&&t.dataset.totalInstallments!==""?parseInt(t.dataset.totalInstallments):0,f=t.dataset.installmentsMade&&t.dataset.installmentsMade!==""?parseInt(t.dataset.installmentsMade):0,p=t.dataset.downpaymentCheck&&t.dataset.downpaymentCheck==="true"?!0:!1,w=t.dataset.finalCheck&&t.dataset.finalCheck==="true"?!0:!1,r,b="background: -moz-linear-gradient(middle, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: -webkit-gradient(left middle, left right, color-stop(@PERCENTAGE%, #00882B), color-stop(@PERCENTAGE%, white));                                        background: -webkit-linear-gradient(middle, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: -o-linear-gradient(middle, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: -ms-linear-gradient(middle, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: linear-gradient(to right, #00882B @PERCENTAGE%, white @PERCENTAGE%);".trim(),k="background: -moz-linear-gradient(top, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: -webkit-gradient(middle top, middle bottom, color-stop(@PERCENTAGE%, #00882B), color-stop(@PERCENTAGE%, white));                                        background: -webkit-linear-gradient(top, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: -o-linear-gradient(top, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: -ms-linear-gradient(top, #00882B @PERCENTAGE%, white @PERCENTAGE%);                                        background: linear-gradient(to bottom, #00882B @PERCENTAGE%, white @PERCENTAGE%);".trim(),v,o,h;p&&(c.classList.add(n.PROGRESS_BAR_CHECKPOINT_CLASS+n.CHECKPOINT_ACTIVE_SUFFIX),c.classList.add(n.CHECKPOINT_CHECK_ICON),a[1].classList.remove(n.AMOUNT_CLASS+n.AMOUNT_GRAYED_SUFFIX),e.classList.add(n.CHECKPOINT_ARROW_ICON),e.classList.add(n.PROGRESS_BAR_CHECKPOINT_CLASS+n.CHECKPOINT_ACTIVE_SUFFIX),s.classList.add(n.SMALL_BAR_CLASS+n.SMALL_BAR_STARTED_SUFFIX));f===0&&u>0?r=0:f>0&&f<u?(v=100/u,r=v>ai?100*f/u:ai+(100-ai*2)*(f-1)/(u-2)):f===u&&(r=100,a[2].classList.remove(n.AMOUNT_CLASS+n.AMOUNT_GRAYED_SUFFIX),e.classList.add(n.CHECKPOINT_CHECK_ICON),e.classList.remove(n.CHECKPOINT_ARROW_ICON));e.classList.add(n.PROGRESS_BAR_CHECKPOINT_CLASS+"--"+i);y.classList.add(n.BAR_BIG_BAR_CLASS+"--"+i);o=document.createElement("style");h=document.querySelector("script");o.textContent+="@media only screen and (min-width: 768px){ ."+n.PROGRESS_BAR_CHECKPOINT_CLASS+n.CHECKPOINT_INSTALLMENTS_SUFFIX+"."+n.PROGRESS_BAR_CHECKPOINT_CLASS+"--"+i+"{ left: "+r+"% !important; }."+n.BAR_BIG_BAR_CLASS+"."+n.BAR_BIG_BAR_CLASS+"--"+i+"{ "+b.replace(/@PERCENTAGE/g,r)+" } }";o.textContent+="@media only screen and (max-width: 767px){ ."+n.PROGRESS_BAR_CHECKPOINT_CLASS+n.CHECKPOINT_INSTALLMENTS_SUFFIX+"."+n.PROGRESS_BAR_CHECKPOINT_CLASS+"--"+i+"{ top: "+r+"% !important; }."+n.BAR_BIG_BAR_CLASS+"."+n.BAR_BIG_BAR_CLASS+"--"+i+"{ "+k.replace(/@PERCENTAGE/g,r)+" } }";h.parentNode.insertBefore(o,h);w&&(l.classList.add(n.PROGRESS_BAR_CHECKPOINT_CLASS+n.CHECKPOINT_ACTIVE_SUFFIX),l.classList.add(n.CHECKPOINT_CHECK_ICON),s.classList.remove(n.SMALL_BAR_CLASS+n.SMALL_BAR_STARTED_SUFFIX),s.classList.add(n.SMALL_BAR_CLASS+n.SMALL_BAR_FINISHED_SUFFIX))})},hf=function(){var t=!query.hasClass(bt,"active");t&&dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:vt?n.START_PAYMENT_AGREEMENT_EDITABLE_TAG:n.START_PAYMENT_AGREEMENT_UNEDITABLE_TAG})},cf=function(){y?dataLayer.push({event:n.SCENARIO_MODIFIED_EDIT_TAG}):yt?dataLayer.push({event:n.SCENARIO_SAO_MODIFIED_EDIT_TAG}):pt?dataLayer.push({event:n.SCENARIO_MODIFIED_EDIT_TAG}):dataLayer.push({event:n.PAYMENT_AGREEMENT_EDIT_TAG})},lf=function(){dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.PAYMENT_AGREEMENT_FORM_SUCCESS_TAG})},af=function(){dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.PAYMENT_AGREEMENT_FORM_MODIFIED_TERMS_TAG})},vf=function(){dataLayer.push({event:n.PAYMENT_AGREEMENT_FORM_ERROR_TAG})},lu=function(){p?dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.SCENARIO_SAO_SCHEDULE_TAG}):yt?dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.SCENARIO_SAO_MODIFIED_SCHEDULE_TAG}):pt?dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.SCENARIO_MODIFIED_SCHEDULE_TAG}):y?dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.SCENARIO_COMMERCIAL_SCHEDULE_TAG}):dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.PAYMENT_AGREEMENT_SCHEDULE_TAG})},yf=function(){dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.PAYMENT_AGREEMENT_MAKE_PAYMENT_TAG})},pf=function(){pi=query.hasClass(i,n.LAZY_LOAD_CLASS);ru=query.hasClass(i,n.SCENARIO_CLASS);pi?(ni=document.getElementsByClassName(n.LAZY_LOAD_TAB_CLASS)[0],ni.addEventListener("lazy-load-start",ar)):(wu(),bu())},au=function(n){for(var t=0,i=n.length;t<i;t++)if(n[t].checked)return n[t].value},wf=function(){if(h.classList.add(n.HIDDEN_CLASS),query.removeClass(c,n.HIDDEN_CLASS),c.focus(),f&&f.classList.add(n.HIDDEN_CLASS),k&&e&&!(coned.utils.isOru()&&p)){var r=c.getElementsByClassName(n.SCHEDULE_PAYMENT_BUTTON)[0],t=c.getElementsByClassName(n.COVID_CLOSE_SELECTOR)[0],u=c.getElementsByClassName(n.CLOSE_SELECTOR)[0];r&&r.classList.add(n.HIDDEN_CLASS);u&&u.classList.add(n.HIDDEN_CLASS);t&&(t.classList.remove(n.HIDDEN_CLASS),t.innerHTML=t.dataset.acceptedCovid)}au(er)==="email"?(ct.innerHTML=or.value,query.removeClass(w,n.HIDDEN_CLASS),query.addClass(nt,n.HIDDEN_CLASS)):(query.removeClass(nt,n.HIDDEN_CLASS),query.addClass(w,n.HIDDEN_CLASS));i.classList.remove(n.ALERT_CLASS);i.classList.remove(n.INACTIVE_CLASS);g.innerText=g.getAttribute(n.DATA_ENROLLED);a.dataset.openName=a.dataset.manage},bf=function(n){n.hasOwnProperty("dpaProcessed")&&n.dpaProcessed===!1&&vr()},kf=function(){var t=b.value;t&&t!=""?b.classList.add(n.FILLED_CLASS):b.classList.remove(n.FILLED_CLASS)},df=function(){var t=i.dataset.dpaServiceUrl,r={Type:au(er),Email:or.value||null,Maid:ri.value,ScId:query.getFormInputValue(i,n.FORM_SCID),UpdateAccountType:n.FORM_UPDATE_ACCOUNT_TYPE};query.postData(t,wf,bf,JSON.stringify(r),!0,ui)},vu=function(n){!vi||n.details&&n.details.isModified?ft.focus():vi.focus();vi=null},yu=function(){wr.removeAttribute(n.DISABLED_ATTR)},gf=function(){var t=n.DPA_SBMT_BTN_TAG_CLASS;b.setAttribute(n.DISABLED_ATTR,!0);_.each(gi,function(t){t.setAttribute(n.ARIA_HIDDEN_ATTR,!0)});query.removeClass(b,n.INPUT_ERRORR_CLASS);b.value="";b.classList.remove(n.FILLED_CLASS);wt.classList.add(t+n.DPA_CONFIRMATION_TYPE_MAIL);wt.classList.remove(t+n.DPA_CONFIRMATION_TYPE_EMAIL);ti=h.getElementsByClassName(n.FORM_SIGNATURE_ERROR_SELECTOR)[0];ti&&ti.parentNode.removeChild(ti);yu()},ne=function(){var t=n.DPA_SBMT_BTN_TAG_CLASS;b.removeAttribute(n.DISABLED_ATTR);_.each(gi,function(t){t.setAttribute(n.ARIA_HIDDEN_ATTR,!1)});wt.classList.add(t+n.DPA_CONFIRMATION_TYPE_EMAIL);wt.classList.remove(t+n.DPA_CONFIRMATION_TYPE_MAIL);yu()},te=function(t){var i=t.target,r;hu();i.value===n.COVID_TERMS_ACCEPTED_VALUE?(e=!0,v.classList.remove(n.HIDDEN_CLASS),s.classList.add(n.HIDDEN_CLASS),o&&o.classList.remove(n.ACTIVE_DATE),ft=v,kt=v.getElementsByClassName(n.TOTAL_OUTSTANDING)[0],rt=v.getElementsByClassName(n.DOWN_PAYMENT_AMOUNT_SPAN)[0],dt=v.getElementsByClassName(n.FINAL_PAYMENT_SPAN),st=v.getElementsByClassName(n.NUMBER_OF_INSTALLMENTS_SPAN),ht=v.getElementsByClassName(n.AMOUNT_PER_INSTALLMENT_SPAN),o=v.getElementsByClassName(n.DOWN_PAYMENT_DUE_DATE)[0],o&&o.classList.add(n.ACTIVE_DATE),_.each(it,function(n){n.dataset.amount=0})):i.value===n.COVID_TERMS_REJECTED_VALUE&&(e=!1,v.classList.add(n.HIDDEN_CLASS),s.classList.remove(n.HIDDEN_CLASS),o&&o.classList.remove(n.ACTIVE_DATE),ft=s,kt=s.getElementsByClassName(n.TOTAL_OUTSTANDING)[0],rt=s.getElementsByClassName(n.DOWN_PAYMENT_AMOUNT_SPAN)[0],dt=s.getElementsByClassName(n.FINAL_PAYMENT_SPAN),st=s.getElementsByClassName(n.NUMBER_OF_INSTALLMENTS_SPAN),ht=s.getElementsByClassName(n.AMOUNT_PER_INSTALLMENT_SPAN),o=s.getElementsByClassName(n.DOWN_PAYMENT_DUE_DATE)[0],o&&o.classList.add(n.ACTIVE_DATE),_.each(it,function(n){n.dataset.amount=parseFloat(rt.innerHTML.replace(/(\$|,)/g,""))||0}));y?(r=e?"COVID 19 Terms":"Standard Terms",dataLayer.push({"covid-terms-commercial":r})):dataLayer.push({"covid-terms":e})},ie=function(){if(e=!1,_.each(sr,function(t){t.checked&&t.value===n.COVID_IDENTIFY_ACCEPTED_VALUE&&(e=!0)}),e){var t=i.dataset.covidIdentifyServiceUrl,r={Maid:ri.value,ScId:query.getFormInputValue(i,n.FORM_SCID),AttestationName:n.TERM_TYPE_COVID};query.postData(t,ki,ki,JSON.stringify(r),!0,ui)}else ki()},ki=function(){if(p){et.classList.add(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);f.focus();return}if(e){var t;typeof Event=="function"?t=new Event(n.CHANGE,{bubbles:!0,cancelable:!0}):(t=document.createEvent("Event"),t.initEvent(n.CHANGE,!0,!0));ci[0].dispatchEvent(t);h&&(u.classList.add(n.HIDDEN_CLASS),r.classList.remove(n.HIDDEN_CLASS))}else _.each(gr,function(t){t.classList.add(n.HIDDEN_CLASS)}),_.each(ci,function(n){n.disabled=!0}),v.classList.add(n.HIDDEN_CLASS),s.classList.remove(n.HIDDEN_CLASS),o&&o.classList.remove(n.ACTIVE_DATE),ft=s,kt=s.getElementsByClassName(n.TOTAL_OUTSTANDING)[0],rt=s.getElementsByClassName(n.DOWN_PAYMENT_AMOUNT_SPAN)[0],dt=s.getElementsByClassName(n.FINAL_PAYMENT_SPAN),st=s.getElementsByClassName(n.NUMBER_OF_INSTALLMENTS_SPAN),ht=s.getElementsByClassName(n.AMOUNT_PER_INSTALLMENT_SPAN),o=s.getElementsByClassName(n.DOWN_PAYMENT_DUE_DATE)[0],o&&o.classList.add(n.ACTIVE_DATE),_.each(it,function(n){n.dataset.amount=parseFloat(rt.innerHTML.replace(/(\$|,)/g,""))||0}),h&&(u.classList.remove(n.HIDDEN_CLASS),r.classList.add(n.HIDDEN_CLASS));et.classList.add(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);f.focus()},pu=function(t){var i=t.currentTarget;i.hasAttribute(n.TABINDEX_ATTRIBUTE)&&(i.removeAttribute(n.TABINDEX_ATTRIBUTE),lt.removeEventListener(n.BLUR_EVENT,pu))},re=function(t){t.preventDefault();query.addClass(iu,n.HIDDEN_CLASS);query.removeClass(lt,n.HIDDEN_CLASS);lt.tabIndex=0;lt.focus();lt.addEventListener(n.BLUR_EVENT,pu)},wu=function(){di=i.getElementsByClassName(n.CLOSE_SELECTOR);bt=i.getElementsByClassName(n.LINK_ACCORDION_SELECTOR)[0];a=i.getElementsByClassName(n.ACCORDION_SELECTOR)[0];f=i.getElementsByClassName(n.ENROLL_FORM_SELECTOR)[0];tt=i.getElementsByClassName(n.MANAGE_FORM_SELECTOR)[0];ri=document.getElementsByName(n.ACCOUNT_MAID_INPUT)[0];ui=document.getElementsByClassName(n.FORM_LOADING)[0];ot=f?f.getElementsByClassName(n.SERVICE_ERROR)[0]:i.getElementsByClassName(n.SERVICE_ERROR)[0];ii=ot?ot.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0]:null;vt=query.hasClass(i,n.PAYMENT_AGREEMENT_EDITABLE);ir=i.getElementsByClassName(n.MANAGE_SCHEDULE_PAYMENT_BUTTON)[0];kr=i.getElementsByClassName(n.MANAGE_ACCEPT_PAYMENT_BUTTON)[0];l=document.getElementsByClassName(n.EDIT_PAYMENT_AGREEMENT_POPUP)[0];rt=i.getElementsByClassName(n.DOWN_PAYMENT_AMOUNT_SPAN)[0];st=i.getElementsByClassName(n.NUMBER_OF_INSTALLMENTS_SPAN);it=i.getElementsByClassName(n.SCHEDULE_PAYMENT_BUTTON);br=i.getElementsByClassName(n.MAKE_PAYMENT_BUTTON)[0];rr=i.getElementsByClassName(n.PAYMENT_CANCEL_BUTTON)[0];ut=i.getElementsByClassName(n.ACCEPT_PAYMENT_AGREEMENT_BUTTON)[0];ei=i.getElementsByClassName(n.PAYMENT_TABLE_CONTAINER)[0];ft=i.getElementsByClassName(n.PAYMENT_AGREEMENT_TABLE)[0];kt=i.getElementsByClassName(n.TOTAL_OUTSTANDING)[0];ht=i.getElementsByClassName(n.AMOUNT_PER_INSTALLMENT_SPAN);dt=i.getElementsByClassName(n.FINAL_PAYMENT_SPAN);o=ft?ft.getElementsByClassName(n.DOWN_PAYMENT_DUE_DATE)[0]:null;dr=i.getElementsByClassName(n.PAYMENT_AGREEMENT_ACCEPTED_MESSAGE)[0];h=i.getElementsByClassName(n.FORM_SIGNATURE_SELECTOR)[0];ur=i.getElementsByClassName(n.PAYMENT_AGREEMENT_CHECK_TEXT)[0];hi=i.getElementsByClassName(n.RADIO_BUTTON_SELECTOR);et=i.getElementsByClassName(n.COVID_IDENTIFY_FORM)[0];g=i.getElementsByClassName(n.ICON_STATUS_TEXT)[0];tu=document.getElementsByClassName(n.BNA_RENEGOTIATE_AGREEMENT_BUTTON)[0];nu=i.getElementsByClassName(n.CONTINUE_BUTTON)[0];y=i.dataset.isCommercial==="true";k=et&&i.dataset.hasCovidForm==="true";yi=query.hasClass(i,n.MODIFIED_TERMS_ONLY);fu=query.hasClass(i,n.PAYMENT_AGREEMENT_COMMERCIAL);p=query.hasClass(i,n.PAYMENT_AGREEMENT_SAO_SELECTOR);yt=query.hasClass(i,n.PAYMENT_AGREEMENT_SAO_MODIFIED_SELECTOR);pt=query.hasClass(i,n.PAYMENT_AGREEMENT_MODIFIED_SELECTOR);bi=query.hasClass(i,n.PAYMENT_AGREEMENT_BNA_RENEGOTIATE_SELECTOR);bi&&(lt=i.getElementsByClassName(n.BNA_RENEGOTIATE_SECTION)[0],iu=i.getElementsByClassName(n.BNA_OPTIONS_SECTION)[0],cr=document.getElementsByClassName(n.BNA_RENEGOTIATE_PAYMENT_AGREEMENT_BANNER_SELECTOR)[0],lr=document.getElementsByClassName(n.BNA_RENEGOTIATE_OVERVIEW_BILL_CARD_VIEW_PLAN_SELECTOR)[0]);vt&&(fr=i.getElementsByClassName(n.SAVE_EDIT_FORM_BUTTON)[0],fi=i.getElementsByClassName(n.OPEN_EDIT_PAYMENT_AGREEMENT_POPUP_BUTTON));(vt||k||y||coned.utils.isOru())&&h&&(d=document.getElementsByClassName(n.DPA_PAYMENT_AGREEMENT)[0],nr=h.getElementsByClassName(n.ENABLE_EMAIL_SELECTOR)[0],tr=h.getElementsByClassName(n.DISABLE_EMAIL_SELECTOR)[0],b=h.getElementsByClassName(n.DPA_EMAIL_INPUT_SELECTOR)[0],wr=h.getElementsByClassName(n.FORM_SIGNATURE_SBMT_SELECTOR)[0],c=i.getElementsByClassName(n.DPA_SUCCESS_SELECTOR)[0],er=document.getElementsByName(n.DPA_RADIO_CONFIRMATION_INPUT),or=document.getElementsByName(n.DPA_SIGNATURE_EMAIL)[0],gi=document.getElementsByClassName(n.DPA_EMAIL_FIELDS_TO_HIDE),yr=d.getElementsByClassName(n.DPA_HIDDEN),ct=c.getElementsByClassName(n.DPA_EMAIL_TOKEN)[0],w=d.getElementsByClassName(n.EMAIL_PARAGRAPH)[0],nt=d.getElementsByClassName(n.NO_EMAIL_PARAGRAPH)[0],u=d.getElementsByClassName(n.SIGNATURE_READY_BODY)[0],r=d.getElementsByClassName(n.SIGNATURE_COVID_READY_BODY)[0],pr=d.getElementsByClassName(n.SIGNATURE_READY_ERROR)[0],wt=d.getElementsByClassName(n.FORM_DPA_SBMT_BTN_SELECTOR)[0],wi=a.dataset.userHadAccount==="true"?!0:!1);at=!1;li=i.getElementsByClassName(n.PROGRESS_BAR);li&&(ai=12);et&&(sr=i.getElementsByClassName(n.COVID_IDENTIFY_RADIO_BUTTONS),ci=i.getElementsByClassName(n.COVID_TERMS_RADIO_BUTTONS),gr=i.getElementsByClassName(n.COVID_HIDE_ELEMENTS),v=i.getElementsByClassName(n.COVID_TERMS_ACCEPTED_TABLE)[0],s=i.getElementsByClassName(n.COVID_TERMS_REJECTED_TABLE)[0],hr=i.getElementsByClassName(n.COVID_ACCEPTED_MESSAGE)[0],e=!1)},bu=function(){if(!eu&&!coned.components.DashboardPaymentAgreement.prototype.isLoaded()){du();_.each(it,function(n){coned.utils.addGeneralListeners(n,tf)});vt?(f&&f.addEventListener("submit",su),fr&&fr.addEventListener("click",uf),l&&(l.addEventListener("close-popup",vu),new coned.utils.addKeyEvent(l,coned.constants.KEY_CODE.ESC,vu),new coned.utils.addFocusTrap(l)),fi&&_.each(fi,function(n){coned.utils.addGeneralListeners(n,of)}),bi&&coned.utils.addGeneralListeners(tu,re)):f&&f.addEventListener("submit",su);!tt||p||yt||pt||tt.addEventListener("submit",gu);d&&(tr&&tr.addEventListener("click",gf),nr&&nr.addEventListener("click",ne),new coned.components.ValidateForm("."+n.FORM_SIGNATURE_SELECTOR,df,""),b.addEventListener("change",kf),wi&&query.removeClass(w,n.HIDDEN_CLASS));et&&(et.dataset.accountType!==n.COMMERCIAL&&new coned.components.ValidateForm("."+n.COVID_IDENTIFY_FORM,ie,""),_.each(sr,function(t){t.addEventListener("change",function(t){var i=t.currentTarget;dataLayer.push({"covid-affected":i.checked&&i.value===n.COVID_IDENTIFY_ACCEPTED_VALUE})})}),_.each(ci,function(n){n.addEventListener("change",te)}));coned.utils.addGeneralListeners(ir,ou);coned.utils.addGeneralListeners(kr,ou);_.each(di,function(t){coned.utils.addGeneralListeners(t,function(){t.classList.contains(n.CLOSE_SELECTOR_ACCEPT)||(y&&at?dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.SCENARIO_MODIFIED_CANCEL_TAG}):p?dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.SCENARIO_SAO_CANCEL_TAG}):yt?dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.SCENARIO_SAO_MODIFIED_CANCEL_TAG}):pt?dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.SCENARIO_MODIFIED_CANCEL_TAG}):y?dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.SCENARIO_COMMERCIAL_CANCEL_TAG}):dataLayer.push({contentTitle:n.CONTENT_TITLE_TAG,event:n.PAYMENT_AGREEMENT_FORM_CANCEL_TAG}))})});li&&sf();coned.utils.addGeneralListeners(bt,hf);coned.utils.addGeneralListeners(ir,lu);coned.utils.addGeneralListeners(br,yf);vt&&_.each(fi,function(n){coned.utils.addGeneralListeners(n,cf)});for(var t=0;t<hi.length;t++)hi[t].addEventListener("focusin",function(){var t=this.parentElement.getElementsByClassName(n.RADIO_INDICATOR)[0];query.addClass(t,n.RADIO_INDICATOR_FOCUS)}),hi[t].addEventListener("focusout",function(){var t=this.parentElement.getElementsByClassName(n.RADIO_INDICATOR)[0];query.removeClass(t,n.RADIO_INDICATOR_FOCUS)});coned.utils.addGeneralListeners(nu,function(){setTimeout(function(){ei.classList.contains(n.SHOW_COVID_TERMS)&&(e=ei.dataset.covidTerms==="true"?!0:!1,ki())},300)})}eu=!0},ue=function(){pf()};ue()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DashboardPaymentAssistance=function(){var n={ACCOUNT_MAID:"account-maid",ENROLLED_FORM_SELECTOR:"js-payment-assistance-enrolled",LINK_ACCORDION_SELECTOR:"js-accordion-selector",LINK_DESCRIPTION:"js-link-description",ACCORDION_SELECTOR:"js-accordion-contain",UNENROLLMENT_CLASS:"manage-enroll__list--inactive",ASSISTANCE_PROGRAM_ID:"assistanceProgramsSection",DATA_ENROLLED:"data-enrolled",ICON_STATUS_TEXT:"icon-status-text",HIDDEN_CLASS:"hidden",FORM_SELECTOR:"js-payment-assistance-form",LAZY_LOAD_CLASS:"js-lazy-load",LAZY_LOAD_TAB_CLASS:"js-lazy-load-manage-my-account",LAZY_LOAD_LOADED_CLASS:"js-lazy-load-element-loaded"},t=!1,i=function(i){var h,u,f,o,e,c=function(){h=i.getElementsByClassName(n.LINK_ACCORDION_SELECTOR)[0];u=i.getElementsByClassName(n.ACCORDION_SELECTOR)[0];o=i.getElementsByClassName(n.ICON_STATUS_TEXT)[0]},l=function(){query.hasClass(i,n.LAZY_LOAD_CLASS)||(i.classList.remove(n.UNENROLLMENT_CLASS),o.innerText=o.getAttribute(n.DATA_ENROLLED),h.getElementsByClassName(n.LINK_DESCRIPTION)[0].innerHTML=u.dataset.manage,u.dataset.openName=u.dataset.manage)},s=function(){if(!t){var n=i.dataset.serviceUrl;if(!n){r();return}query.getData(n,v,r,"")}},v=function(n){if(coned.utils.isPatternLab())switch(i.dataset.scenario){case"0":query.getData(coned.plConstants.GET_PAYMENT_ASSISTANCE_ENROLLED_SCENARIO_HTML,a,r)}else a(n)},r=function(){i.classList.add(n.HIDDEN_CLASS);t=!0;e&&(f.removeEventListener("lazy-load-start",s),i.classList.add(n.LAZY_LOAD_LOADED_CLASS),coned.utils.triggerEvent(i,"lazy-load-element-loaded"))},a=function(u){if(u){var v=new DOMParser,h,o,a;if(h=v.parseFromString(u,"text/html"),o=h.getElementsByClassName(n.FORM_SELECTOR),o.length!==0&&o[0].dataset.content!=="false")o=o[0];else{r();return}for(i.innerHTML=o.innerHTML,a=o.attributes;i.attributes.length>0;)i.removeAttribute(i.attributes[0].name);_.each(a,function(n){i.setAttribute(n.nodeName,n.nodeValue)});i.dataset.module&&(c(),l(),coned.utils.initializeModules(i))}else{r();return}t=!0;e&&(f.removeEventListener("lazy-load-start",s),i.classList.add(n.LAZY_LOAD_LOADED_CLASS),coned.utils.triggerEvent(i,"lazy-load-element-loaded"));coned.utils.triggerEvent(window,"service-loaded")},y=function(){e=query.hasClass(i,n.LAZY_LOAD_CLASS);e?(f=document.getElementsByClassName(n.LAZY_LOAD_TAB_CLASS)[0],f.addEventListener("lazy-load-start",s)):(c(),l(),t=!0)},p=function(){y()};p()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SmartEnergyOptOutMobile=function(){var n={SMART_ENERGY_MODULE:"js-smart-energy-contain",OPT_OUT_START_FORM:"js-opt-out-start",OPT_OUT_REASON_FORM:"js-opt-out-reason",OPT_OUT_FINALIZE_FORM:"js-opt-out-finalize",OPT_OUT_SUCCESS_FORM:"js-opt-out-success",OPT_OUT_ERROR_FORM:"js-opt-out-error",OPT_OUT_LOADING_ERROR:"js-form-loading",OPT_OUT_COMMENT_FIELD:"js-opt-out-comment",OPT_OUT_REQUESTED_ERROR_FORM:"js-opt-out-requested-error",MONEY_RADIO_OPTION:"js-money-option",UNKNOWN_RADIO_OPTION:"js-unknown-option",PEAK_RADIO_OPTION:"js-peak-option",OTHER_RADIO_OPTION:"js-other-option",COMMENT_OPT_OUT:"js-opt-out-reason-comment",NEXT_OPT_OUT_BUTTON:"js-opt-out-next",OTHER_OPTION_LABEL_TEXT:"js-other-option-label",DATA_IS_EMAIL_REQUEST:"data-is-email-request",DATA_MAID:"data-maid",EMAIL_REQUEST:"EmailRequest",HIDDEN_CLASS:"hidden",REASON_FORM_0PTION:"reason",MONEY_OPTION:"money",HOURS_OPTION:"peak",UNDERSTAND_OPTION:"know",OTHER_OPTION:"Other",TAGGING_MONEY:"Save Money",TAGGING_HOURS:"Hours",TAGGING_UNDERSTAND:"Understand",OTHER_FORM_OPTION:"Other",OTHER_REQUIRED_TEXT:"Other*",COMMENT_TEXT_AREA:"otherComment"},t=!1,i=function(i){var u,c,o,r,l,s,f,a,v,y,p,e,w,b,k,d=function(){c.classList.add(n.HIDDEN_CLASS);o.classList.remove(n.HIDDEN_CLASS);dataLayer.push({event:"ipp.authoptout.start.2"})},g=function(){var u,t=query.getFormInputValue(i,n.REASON_FORM_0PTION);u=t.includes(n.MONEY_OPTION)?n.TAGGING_MONEY:t.includes(n.HOURS_OPTION)?n.TAGGING_HOURS:t.includes(n.UNDERSTAND_OPTION)?n.TAGGING_UNDERSTAND:n.OTHER_FORM_OPTION;window.scrollTo(0,0);o.classList.add(n.HIDDEN_CLASS);r.classList.remove(n.HIDDEN_CLASS);dataLayer.push({event:"ipp.authoptout.reason.2",optoutReason:u+"2"})},nt=function(){tt()},tt=function(){var l=i.dataset.serviceUrl,f,t,e,o,s,r,h=query.getFormInputValue(i,n.REASON_FORM_0PTION),c="";e=u.dataset.userName;o=u.dataset.userEmail;s=u.dataset.accountNumber;r=i.getAttribute(n.DATA_IS_EMAIL_REQUEST);f=u.getAttribute(n.DATA_MAID);h==n.OTHER_FORM_OPTION&&(c=query.getFormInputValue(i,n.COMMENT_TEXT_AREA));t={AccountMaid:f,Name:e,Email:o,Account:s,Reason:h,Comment:c};r&&(t[n.EMAIL_REQUEST]=r);t=JSON.stringify(t);query.postData(l,it,rt,t,!0,w)},it=function(t){var i;coned.utils.isPatternLab()||t!=undefined&&t.Success===!0?(r.classList.add(n.HIDDEN_CLASS),l.classList.remove(n.HIDDEN_CLASS),i="Success2"):(r.classList.add(n.HIDDEN_CLASS),s.classList.remove(n.HIDDEN_CLASS),i="Failure2");dataLayer.push({event:"ipp.authoptout.submit.2",confMessage:i})},rt=function(t){t.errorMsg==="AlreadyRequested"?(r.classList.add(n.HIDDEN_CLASS),k.classList.remove(n.HIDDEN_CLASS)):(r.classList.add(n.HIDDEN_CLASS),s.classList.remove(n.HIDDEN_CLASS));dataLayer.push({event:"ipp.authoptout.submit.2",confMessage:"Failure2"})},ut=function(){e.disabled=!0;f.classList.remove(n.HIDDEN_CLASS);i.getElementsByClassName(n.OTHER_OPTION_LABEL_TEXT)[0].innerText=n.OTHER_REQUIRED_TEXT},h=function(){b.value="";e.disabled=!1;f.classList.add(n.HIDDEN_CLASS);i.getElementsByClassName(n.OTHER_OPTION_LABEL_TEXT)[0].innerText=n.OTHER_FORM_OPTION},ft=function(){var t=query.getFormInputValue(i,n.COMMENT_TEXT_AREA);e.disabled=t!==""?!1:!0},et=function(){u=i.getElementsByClassName(n.SMART_ENERGY_MODULE)[0];c=i.getElementsByClassName(n.OPT_OUT_START_FORM)[0];o=i.getElementsByClassName(n.OPT_OUT_REASON_FORM)[0];r=i.getElementsByClassName(n.OPT_OUT_FINALIZE_FORM)[0];l=i.getElementsByClassName(n.OPT_OUT_SUCCESS_FORM)[0];s=i.getElementsByClassName(n.OPT_OUT_ERROR_FORM)[0];k=i.getElementsByClassName(n.OPT_OUT_REQUESTED_ERROR_FORM)[0];v=i.getElementsByClassName(n.MONEY_RADIO_OPTION)[0];y=i.getElementsByClassName(n.UNKNOWN_RADIO_OPTION)[0];p=i.getElementsByClassName(n.PEAK_RADIO_OPTION)[0];a=i.getElementsByClassName(n.OTHER_RADIO_OPTION)[0];f=i.getElementsByClassName(n.COMMENT_OPT_OUT)[0];e=i.getElementsByClassName(n.NEXT_OPT_OUT_BUTTON)[0];b=i.getElementsByClassName(n.OPT_OUT_COMMENT_FIELD)[0];w=i.getElementsByClassName(n.OPT_OUT_LOADING_ERROR)[0]},ot=function(){new coned.components.ValidateForm("."+n.OPT_OUT_START_FORM,d,"");new coned.components.ValidateForm("."+n.OPT_OUT_REASON_FORM,g,"");new coned.components.ValidateForm("."+n.OPT_OUT_FINALIZE_FORM,nt,"");coned.utils.addGeneralListeners(v,h);coned.utils.addGeneralListeners(y,h);coned.utils.addGeneralListeners(p,h);coned.utils.addGeneralListeners(a,ut);f!=undefined&&f.addEventListener("keyup",ft)},st=function(){et();ot();t=!0};st()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SmartEnergyOptOut=function(){var n={OPT_OUT_START_FORM:"js-opt-out-start",OPT_OUT_REASON_FORM:"js-opt-out-reason",OPT_OUT_FINALIZE_FORM:"js-opt-out-finalize",OPT_OUT_SUCCESS_FORM:"js-opt-out-success",OPT_OUT_ERROR_FORM:"js-opt-out-error",OPT_OUT_NEXT_BUTTON:"js-opt-out-next",OPT_OUT_COMMENT:"js-opt-out-reason-comment",OPT_OUT_LOADING_ERROR:"js-form-loading",OPT_OUT_COMMENT_FIELD:"js-opt-out-comment",OPT_OUT_RADIO_CHECKED:"input[type=radio]:checked",OPT_OUT_REQUESTED_ERROR_FORM:"js-opt-out-requested-error",MONEY_RADIO_OPTION:"js-money-option",UNKNOWN_RADIO_OPTION:"js-unknown-option",PEAK_RADIO_OPTION:"js-peak-option",OTHER_RADIO_OPTION:"js-other-option",CLOSE_SELECTOR:"js-accordion-close",LINK_ACCORDION_SELECTOR:"js-accordion-selector",ACCORDION_SELECTOR:"js-accordion-contain",ACCORDION_CONTAIN:"js-accordion-contain",DATA_IS_EMAIL_REQUEST:"data-is-email-request",ICON_STATUS_TEXT:"icon-status-text",ENROLLED:"Enrolled",NOT_ENROLLED:"Not enrolled",DATA_MAID:"data-maid",ENERGY_USAGE:"energy-usage",EMAIL_REQUEST:"EmailRequest",UNENROLLMENT_CLASS:"manage-enroll__list--inactive",REASON_FORM_0PTION:"reason",MONEY_OPTION:"money",HOURS_OPTION:"peak",UNDERSTAND_OPTION:"know",OTHER_OPTION:"Other",TAGGING_MONEY:"Save Money",TAGGING_HOURS:"Hours",TAGGING_UNDERSTAND:"Understand",OTHER_FORM_OPTION:"Other",OTHER_REQUIRED_TEXT:"Other*",OTHER_OPTION_LABEL_TEXT:"js-other-option-label",COMMENT_TEXT_AREA:"otherComment",HIDDEN_CLASS:"hidden"},i=!1,t=!1,r=function(r){var h,f,e,v,y,p,w,b,u,c,l,o,k,d,g,a,tt=function(){h.classList.add(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);dataLayer.push({event:"ipp.authoptout.start.1"})},it=function(){if(!t){s();var i=f.querySelector(n.OPT_OUT_RADIO_CHECKED);h.classList.remove(n.HIDDEN_CLASS);c.classList.add(n.HIDDEN_CLASS);l.classList.add(n.HIDDEN_CLASS);a.classList.add(n.HIDDEN_CLASS);f.classList.add(n.HIDDEN_CLASS);i&&(i.checked=!1);u.classList.add(n.HIDDEN_CLASS)}},rt=function(){o.disabled=!0;e.classList.remove(n.HIDDEN_CLASS);r.getElementsByClassName(n.OTHER_OPTION_LABEL_TEXT)[0].innerText=n.OTHER_REQUIRED_TEXT},s=function(){g.value="";o.disabled=!1;e.classList.add(n.HIDDEN_CLASS);r.getElementsByClassName(n.OTHER_OPTION_LABEL_TEXT)[0].innerText=n.OTHER_FORM_OPTION},ut=function(){var i,t=query.getFormInputValue(r,n.REASON_FORM_0PTION);i=t.includes(n.MONEY_OPTION)?n.TAGGING_MONEY:t.includes(n.HOURS_OPTION)?n.TAGGING_HOURS:t.includes(n.UNDERSTAND_OPTION)?n.TAGGING_UNDERSTAND:n.OTHER_FORM_OPTION;f.classList.add(n.HIDDEN_CLASS);u.classList.remove(n.HIDDEN_CLASS);dataLayer.push({event:"ipp.authoptout.reason.1",optoutReason:i+"1"})},ft=function(){var t=query.getFormInputValue(r,n.COMMENT_TEXT_AREA);o.disabled=t!==""?!1:!0},et=function(){var l=r.dataset.serviceUrl,f,t,i,e,o,s,u,h=query.getFormInputValue(r,n.REASON_FORM_0PTION),c="";i=r.getElementsByClassName(n.ACCORDION_CONTAIN)[0];e=i.dataset.userName;o=i.dataset.userEmail;s=i.dataset.accountNumber;f=i.dataset.maid;u=r.getAttribute(n.DATA_IS_EMAIL_REQUEST);h==n.OTHER_FORM_OPTION&&(c=query.getFormInputValue(r,n.COMMENT_TEXT_AREA));t={AccountMaid:f,Name:e,Email:o,Account:s,Reason:h,Comment:c};u&&(t[n.EMAIL_REQUEST]=u);t=JSON.stringify(t);query.postData(l,ot,st,t,!0,d)},ot=function(){u.classList.add(n.HIDDEN_CLASS);c.classList.remove(n.HIDDEN_CLASS);t=!0;nt();dataLayer.push({event:"ipp.authoptout.submit.1",confMessage:"Success1"})},st=function(i){i.errorMsg==="AlreadyRequested"?(u.classList.add(n.HIDDEN_CLASS),a.classList.remove(n.HIDDEN_CLASS),t=!0,nt()):(u.classList.add(n.HIDDEN_CLASS),l.classList.remove(n.HIDDEN_CLASS));dataLayer.push({event:"ipp.authoptout.submit.1",confMessage:"Failure1"})},nt=function(){var t=k.dataset.statement;t=="false"?(r.classList.remove(n.UNENROLLMENT_CLASS),r.getElementsByClassName(n.ICON_STATUS_TEXT)[0].innerText=n.ENROLLED):(r.classList.add(n.UNENROLLMENT_CLASS),r.getElementsByClassName(n.ICON_STATUS_TEXT)[0].innerText=n.NOT_ENROLLED)},ht=function(){h=r.getElementsByClassName(n.OPT_OUT_START_FORM)[0];f=r.getElementsByClassName(n.OPT_OUT_REASON_FORM)[0];e=r.getElementsByClassName(n.OPT_OUT_COMMENT)[0];u=r.getElementsByClassName(n.OPT_OUT_FINALIZE_FORM)[0];c=r.getElementsByClassName(n.OPT_OUT_SUCCESS_FORM)[0];l=r.getElementsByClassName(n.OPT_OUT_ERROR_FORM)[0];a=r.getElementsByClassName(n.OPT_OUT_REQUESTED_ERROR_FORM)[0];o=r.getElementsByClassName(n.OPT_OUT_NEXT_BUTTON)[0];y=r.getElementsByClassName(n.MONEY_RADIO_OPTION)[0];p=r.getElementsByClassName(n.UNKNOWN_RADIO_OPTION)[0];w=r.getElementsByClassName(n.PEAK_RADIO_OPTION)[0];v=r.getElementsByClassName(n.OTHER_RADIO_OPTION)[0];k=r.getElementsByClassName(n.ACCORDION_SELECTOR)[0];b=r.getElementsByClassName(n.CLOSE_SELECTOR);g=r.getElementsByClassName(n.OPT_OUT_COMMENT_FIELD)[0];d=r.getElementsByClassName(n.OPT_OUT_LOADING_ERROR)[0]},ct=function(){new coned.components.ValidateForm("."+n.OPT_OUT_START_FORM,tt,"");new coned.components.ValidateForm("."+n.OPT_OUT_REASON_FORM,ut,"");new coned.components.ValidateForm("."+n.OPT_OUT_FINALIZE_FORM,et,"");coned.utils.addGeneralListeners(y,s);coned.utils.addGeneralListeners(p,s);coned.utils.addGeneralListeners(w,s);coned.utils.addGeneralListeners(v,rt);e!=undefined&&e.addEventListener("keyup",ft);_.each(b,function(n){coned.utils.addGeneralListeners(n,function(){it()})})},lt=function(){ht();ct();i=!0};lt()};return r.prototype.isLoaded=function(){return i},r}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DashboardThirdPartyAccounts=function(){var n={TAB_CONTENT:"js-third-party-tab-content",ACCOUNTS_FORM:"js-third-party-form",ACCOUNTS_CONTAINER:"js-accounts-container",ACCOUNTS_NO_CONTENT:"js-third-party-no-content",ACCOUNT_ITEM:"js-third-party-checkbox-container",ACCOUNT_INPUT:"js-third-party-checkbox",ACCOUNT_EXPAND:"js-third-party-expand",ACCOUNT_EXPORT:"js-third-party-export-button",ACCOUNT_LIST_EXPORT:"js-third-party-account-list-export-button",FORM_LOADING:"js-form-loading",SEARCH_MODULE:"js-text-search-module",SEARCH_INPUT:"js-text-search-input",SELECT_ALL_INPUT:"js-third-party-select-all",TOTAL_AMOUNT:"js-total-amount",DESELECT_BUTTON:"js-third-party-deselect",SUBMIT_BUTTON:"js-third-party-submit",PAGINATION_MODULE:"js-pagination-wrapper",PAGINATION_RESULTS:"js-pagination-results",PAGINATION_TOTAL_CLASS:"js-total",PAGINATION_RESET_SELECTOR:"js-pagination-reset",PAGINATION_ITEM_HIDDEN:"js-pagination-item-hidden",POPUP_SUBMIT:"js-third-party-submit",POPUP_REMOVE_ACCESS_BUTTON_CLASS:"js-third-party-remove-access-btn",POPUP_LOADING_ANIMATION:"js-loading-animation",POPUP_LOADING_ANIMATION_PLAY:"js-animation-play",POPUP_CONFIRMATION_SUFFIX:"-confirmation-popup",POPUP_LOADING_SUFFIX:"-loading-popup",POPUP_SUCCESS_SUFFIX:"-success-popup",POPUP_ERROR_SUFFIX:"-error-popup",POPUP_ERROR_EXPORT_LIST_SUFFIX:"-export-list-error-popup",POPUP_ERROR_TITLE:"js-popup-title",POPUP_ERROR_DESCRIPTION:"js-popup-description",ACCOUNT_ROW_CLASSES:["dashboard-third-party-accounts__table-row","js-third-party-checkbox-container"],ACCOUNT_ROW_WRAPPER_CLASS:"dashboard-third-party-accounts__table-row-wrapper",ACCOUNT_ITEM_CLASSES:["dashboard-third-party-accounts__table-item"],ACCOUNT_CHECKBOX_CONTAINER_CLASSES:["dashboard-third-party-accounts__table-item","dashboard-third-party-accounts__table-item--checkbox"],ACCOUNT_LABEL_CONTAINER_CLASSES:["coned-checkbox","coned-checkbox__label"],ACCOUNT_CHECKBOX_INPUT_CLASSES:["coned-checkbox__input","dashboard-third-party-accounts__checkbox","js-third-party-checkbox","js-checkbox-selector"],ACCOUNT_CHECKBOX_INDICATOR_CLASS:"coned-checkbox__indicator",ACCOUNT_CHECKBOX_ANIMATION_CLASS:"coned-checkbox__animation-block",ACCOUNT_CHECKBOX_TYPE:"checkbox",DIV_TAG:"div",SPAN_TAG:"span",LABEL_TAG:"label",INPUT_TAG:"input",ACTIVE_ROW:"active-row",REQUEST_AMOUNT:"js-selected-amount",CHECKBOX_CONTAINER:"js-checkbox-container",CHECKBOX_CHECKED_CLASS:"coned-checkbox--checked",ITEM_IGNORE_SELECTOR:"js-item-ignore",SITECORE_ID:"ScId",HIDDEN_CLASS:"hidden",ARIA_LABEL:"aria-label",ARIA_EXPANDED:"aria-expanded",POPUP_CLOSE:"js-popup-close",TRUE_VALUE:"true"},t=!1,i=function(i){var h,v,s,e,c,b,ut,tt,l,it,st,a,ht,ft,w,r,y,ct,k,lt,p,at,u,o,rt,d,f,g,nt,bt=function(){p?_.each(lt,function(n){n.innerHTML=l.length}):vt()},vt=function(){var r=h.dataset.removeAccountsServiceUrl,f=query.selectParentElement(i,n.TAB_CONTENT),t;a.length>=2&&u&&o&&(query.fireEvent(o,"start-animation"),u.classList.remove(n.HIDDEN_CLASS));p&&p.classList.add(n.HIDDEN_CLASS);t={ScId:query.getFormInputValue(f,n.SITECORE_ID),AccountNumbers:a.join(",")};t=JSON.stringify(t);query.postData(r,kt,dt,t,!0)},kt=function(t){for(coned.utils.isPatternLab()&&(t={AccountsCurrentCount:969,AccountsNewCount:30,HadReachedAccountsWarningPoint:!1,HadReachedAccountsLimit:!1}),t?t.UpdateCounters=!0:t={UpdateCounters:!0},query.fireEvent(document,"update-counters",t);l.length>0;)v.removeChild(l.pop()),a.pop();if(c=i.querySelectorAll("."+n.ACCOUNT_INPUT+":not([disabled])"),b.length||(s?(s.classList.remove(n.HIDDEN_CLASS),h.classList.add(n.HIDDEN_CLASS)):i.classList.add(n.HIDDEN_CLASS),e&&e.length&&_.each(e,function(t){t.classList.add(n.HIDDEN_CLASS)})),c.length||(r.disabled=!0,query.selectParentElement(r,n.CHECKBOX_CONTAINER).classList.add(n.HIDDEN_CLASS)),r.checked&&(r.checked=!1,r.parentElement.classList.remove(n.CHECKBOX_CHECKED_CLASS)),w&&(w.value=""),u&&!u.classList.contains(n.HIDDEN_CLASS)&&o&&(query.fireEvent(o,"stop-animation"),u.classList.add(n.HIDDEN_CLASS)),rt){rt.classList.remove(n.HIDDEN_CLASS);var f=rt.getElementsByClassName(n.POPUP_CLOSE)[0];f&&f.focus()}y&&(y.innerHTML=c.length);k.disabled=!0;ot()},dt=function(t){if(u&&o&&f){o.classList.remove(n.POPUP_LOADING_ANIMATION_PLAY);u.classList.add(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);f.dataset.errorBackFocus=n.POPUP_REMOVE_ACCESS_BUTTON_CLASS;g.innerHTML=f.dataset.defaultTitle;nt.innerHTML=f.dataset.defaultDescription;t&&(t.errorTitle&&(g.innerHTML=t.errorTitle),t.errorMsg&&(nt.innerHTML=t.errorMsg));var i=f.getElementsByClassName(n.POPUP_CLOSE)[0];i&&i.focus()}},gt=function(){_.each(ut,function(t){if(!t.classList.contains(n.PAGINATION_ITEM_HIDDEN)){var i=t.getElementsByClassName(n.ACCOUNT_INPUT)[0];i.checked!==r.checked&&i.click()}});tt.length&&setTimeout(function(){_.each(tt,function(t){if(!t.classList.contains(n.PAGINATION_ITEM_HIDDEN)){var i=t.getElementsByClassName(n.ACCOUNT_INPUT)[0];i.checked!==r.checked&&i.click()}})},1)},et=function(){ut=i.querySelectorAll("."+n.ACCOUNT_ITEM+":not(."+n.HIDDEN_CLASS+"):not(."+n.ITEM_IGNORE_SELECTOR+"):not(."+n.PAGINATION_ITEM_HIDDEN+")");tt=i.querySelectorAll("."+n.ACCOUNT_ITEM+"."+n.HIDDEN_CLASS+":not(."+n.ITEM_IGNORE_SELECTOR+"):not(."+n.PAGINATION_ITEM_HIDDEN+")");y&&(y.innerHTML=ut.length+tt.length)},ot=function(){var u=i.getElementsByClassName(n.PAGINATION_MODULE)[0].dataset.divider,t=i.getElementsByClassName(n.PAGINATION_RESULTS)[0],f=i.getElementsByClassName(n.PAGINATION_TOTAL_CLASS)[0],e=i.getElementsByClassName(n.PAGINATION_RESET_SELECTOR)[0],r;for(Array.prototype.forEach.call(t.children,function(i){query.addClass(i,t.dataset.resultsHide);query.removeClass(i,n.PAGINATION_ITEM_HIDDEN)}),r=0;r<u;r++)query.removeClass(t.children[r],t.dataset.resultsHide);f.innerHTML=t.children.length;e.click();et()},ni=function(t){var i=t.currentTarget,u=i.parentElement;i.checked?(query.addClass(u,n.CHECKBOX_CHECKED_CLASS),a.push(i.value),l.push(query.selectParentElement(i,n.ACCOUNT_ITEM)),k.disabled=!1,l.length!=c.length||r.checked||(r.checked=!0,r.parentElement.classList.add(n.CHECKBOX_CHECKED_CLASS))):(query.removeClass(u,n.CHECKBOX_CHECKED_CLASS),a.splice(a.indexOf(i.value),1),l.splice(l.indexOf(query.selectParentElement(i,n.ACCOUNT_ITEM)),1),r.checked&&(r.checked=!1,r.parentElement.classList.remove(n.CHECKBOX_CHECKED_CLASS)),a.length||(k.disabled=!0))},ti=function(t){var i=t.currentTarget,r=query.selectParentElement(i,n.ACCOUNT_ITEM);r.classList.contains(n.ACTIVE_ROW)?(r.classList.remove(n.ACTIVE_ROW),i.setAttribute(n.ARIA_LABEL,i.dataset.openText),i.setAttribute(n.ARIA_EXPANDED,!1)):(r.classList.add(n.ACTIVE_ROW),i.setAttribute(n.ARIA_LABEL,i.dataset.closeText),i.setAttribute(n.ARIA_EXPANDED,!0))},ii=function(t){t.preventDefault();var r=t.currentTarget,f=h.dataset.exportServiceUrl,e=query.selectParentElement(i,n.TAB_CONTENT),s={ScId:query.getFormInputValue(e,n.SITECORE_ID),Maid:r.dataset.maid};st=r.dataset.buttonIndex;u&&o&&(query.fireEvent(o,"start-animation"),u.classList.remove(n.HIDDEN_CLASS));query.getData(f,ri,yt,s)},ri=function(t){coned.utils.isPatternLab()?window.location.href="https://file-examples.com/wp-content/uploads/2017/02/file_example_XLS_10.xls":t&&t.link&&t.link!==""?window.location.href=t.link:yt();u&&!u.classList.contains(n.HIDDEN_CLASS)&&o&&(query.fireEvent(o,"stop-animation"),u.classList.add(n.HIDDEN_CLASS))},yt=function(t){if(u&&!u.classList.contains(n.HIDDEN_CLASS)&&o&&(query.fireEvent(o,"stop-animation"),u.classList.add(n.HIDDEN_CLASS)),f){f.dataset.errorBackFocus=n.ACCOUNT_EXPORT;f.dataset.errorBackFocusIndex=st;f.classList.remove(n.HIDDEN_CLASS);g.innerHTML=f.dataset.defaultTitle;nt.innerHTML=f.dataset.defaultDescription;t&&(t.errorTitle&&(g.innerHTML=t.errorTitle),t.errorMsg&&(nt.innerHTML=t.errorMsg));var i=f.getElementsByClassName(n.POPUP_CLOSE)[0];i&&i.focus()}},ui=function(t){t.stopPropagation();t.preventDefault();d&&d.classList.add(n.HIDDEN_CLASS);var r=h.dataset.exportAccountListServiceUrl,u=query.selectParentElement(i,n.TAB_CONTENT),f={ScId:query.getFormInputValue(u,n.SITECORE_ID)};query.getData(r,fi,pt,f,ht)},fi=function(n){coned.utils.isPatternLab()?window.location.href="https://file-examples.com/wp-content/uploads/2017/02/file_example_XLS_10.xls":n&&n.link&&n.link!==""?window.location.href=n.link:pt()},pt=function(){d&&d.classList.remove(n.HIDDEN_CLASS)},wt=function(){r.checked&&(r.checked=!1,r.parentElement.classList.remove(n.CHECKBOX_CHECKED_CLASS));_.each(b,function(t){var i=t.getElementsByClassName(n.ACCOUNT_INPUT)[0];i.checked&&i.click()})},ei=function(t){t&&t.details&&t.details.Accounts&&_.each(t.details.Accounts,function(r){var w=_.chain(b).map(function(t){return t.getElementsByClassName(n.ACCOUNT_INPUT)[0]}).findWhere({id:t.details.AccountNumber})._wrapped,k,o,a,l,u,y,p,f;w&&(k=query.selectParentElement(w,n.ACCOUNT_ITEM),v.removeChild(k));o=document.createElement(n.DIV_TAG);_.each(n.ACCOUNT_ROW_CLASSES,function(n){o.classList.add(n)});r.RowClasses&&r.RowClasses.length&&_.each(r.RowClasses,function(n){o.classList.add(n)});a=document.createElement(n.DIV_TAG);a.classList.add(n.ACCOUNT_ROW_WRAPPER_CLASS);r.Checkbox&&(l=document.createElement(n.DIV_TAG),_.each(n.ACCOUNT_CHECKBOX_CONTAINER_CLASSES,function(n){l.classList.add(n)}),r.Checkbox.ContainerClasses&&r.Checkbox.ContainerClasses.length&&_.each(r.Checkbox.ContainerClasses,function(n){l.classList.add(n)}),f=document.createElement(n.LABEL_TAG),_.each(n.ACCOUNT_LABEL_CONTAINER_CLASSES,function(n){f.classList.add(n)}),r.Checkbox.LabelClasses&&r.Checkbox.LabelClasses.length&&_.each(r.Checkbox.LabelClasses,function(n){f.classList.add(n)}),u=document.createElement(n.INPUT_TAG),u.type=n.ACCOUNT_CHECKBOX_TYPE,u.name=r.Checkbox.InputName?r.Checkbox.InputName:"",u.id=r.Checkbox.InputValue?r.Checkbox.InputValue:"",u.value=r.Checkbox.InputValue?r.Checkbox.InputValue:"",u.disabled=!0,_.each(n.ACCOUNT_CHECKBOX_INPUT_CLASSES,function(n){u.classList.add(n)}),r.Checkbox.InputClasses&&r.Checkbox.InputClasses.length&&_.each(r.Checkbox.InputClasses,function(n){u.classList.add(n)}),y=document.createElement(n.DIV_TAG),y.classList.add(n.ACCOUNT_CHECKBOX_INDICATOR_CLASS),p=document.createElement(n.SPAN_TAG),p.classList.add(n.ACCOUNT_CHECKBOX_ANIMATION_CLASS),f.appendChild(u),f.appendChild(y),f.appendChild(p),l.appendChild(f),o.appendChild(l));r.Items&&r.Items.length&&_.each(r.Items,function(t){var i=document.createElement(n.DIV_TAG);_.each(n.ACCOUNT_ITEM_CLASSES,function(n){i.classList.add(n)});t.Classes&&t.Classes.length&&_.each(t.Classes,function(n){i.classList.add(n)});t.Content&&(i.innerHTML=t.Content);a.appendChild(i)});o.appendChild(a);v.insertBefore(o,v.getElementsByClassName(n.ITEM_IGNORE_SELECTOR)[0]);h.classList.remove(n.HIDDEN_CLASS);i.classList.remove(n.HIDDEN_CLASS);s&&s.classList.add(n.HIDDEN_CLASS);e&&e.length&&_.each(e,function(t){t.classList.remove(n.HIDDEN_CLASS)});c=i.querySelectorAll("."+n.ACCOUNT_INPUT+":not([disabled])");ot()})},oi=function(){h=i.getElementsByClassName(n.ACCOUNTS_FORM)[0];v=i.getElementsByClassName(n.ACCOUNTS_CONTAINER)[0];s=i.getElementsByClassName(n.ACCOUNTS_NO_CONTENT)[0];it=document.getElementsByClassName(n.ACCOUNT_LIST_EXPORT);i.dataset.noContentSelector&&(e=document.getElementsByClassName(i.dataset.noContentSelector));l=[];a=[];ht=document.getElementsByClassName(n.FORM_LOADING)[0];ft=i.getElementsByClassName(n.SEARCH_MODULE)[0];w=i.getElementsByClassName(n.SEARCH_INPUT)[0];r=i.getElementsByClassName(n.SELECT_ALL_INPUT)[0];y=i.getElementsByClassName(n.TOTAL_AMOUNT)[0];ct=i.getElementsByClassName(n.DESELECT_BUTTON)[0];k=i.getElementsByClassName(n.SUBMIT_BUTTON)[0];b=i.getElementsByClassName(n.ACCOUNT_ITEM);c=i.querySelectorAll("."+n.ACCOUNT_INPUT+":not([disabled])");i.dataset.popupSelector&&(p=document.getElementsByClassName(i.dataset.popupSelector+n.POPUP_CONFIRMATION_SUFFIX)[0],lt=p.getElementsByClassName(n.REQUEST_AMOUNT),at=p.getElementsByClassName(n.POPUP_SUBMIT)[0],u=document.getElementsByClassName(i.dataset.popupSelector+n.POPUP_LOADING_SUFFIX)[0],o=u.getElementsByClassName(n.POPUP_LOADING_ANIMATION)[0],rt=document.getElementsByClassName(i.dataset.popupSelector+n.POPUP_SUCCESS_SUFFIX)[0],f=document.getElementsByClassName(i.dataset.popupSelector+n.POPUP_ERROR_SUFFIX)[0],g=f.getElementsByClassName(n.POPUP_ERROR_TITLE)[0],nt=f.getElementsByClassName(n.POPUP_ERROR_DESCRIPTION)[0],d=document.getElementsByClassName(i.dataset.popupSelector+n.POPUP_ERROR_EXPORT_LIST_SUFFIX)[0])},si=function(){r.addEventListener("change",gt);v.addEventListener("page-change",et);i.dataset.addAccount&&i.dataset.addAccount==="true"?i.addEventListener("add-account",ei):_.each(it,function(n){coned.utils.addGeneralListeners(n,ui)});coned.utils.addGeneralListeners(ct,function(){wt();r.focus()});p&&coned.utils.addGeneralListeners(at,vt);ft&&ft.addEventListener("filter",function(){wt();et()});k.addEventListener("click",bt);w&&w.addEventListener("input",function(){w.value===""?_.each(it,function(t){t.classList.remove(n.HIDDEN_CLASS)}):_.each(it,function(t){t.classList.add(n.HIDDEN_CLASS)})})},hi=function(){v.children.length===0?(s?(h.classList.add(n.HIDDEN_CLASS),s.classList.remove(n.HIDDEN_CLASS),i.classList.remove(n.HIDDEN_CLASS)):i.classList.add(n.HIDDEN_CLASS),e&&e.length&&_.each(e,function(t){t.classList.add(n.HIDDEN_CLASS)})):(y&&(y.innerHTML=c.length),_.each(b,function(t,i){var u=t.querySelectorAll("."+n.ACCOUNT_INPUT+":not([disabled])"),r=t.getElementsByClassName(n.ACCOUNT_EXPORT),f=t.getElementsByClassName(n.ACCOUNT_EXPAND);u&&u.length&&u[0].addEventListener("change",ni);r&&r.length&&(coned.utils.addGeneralListeners(r[0],ii),r[0].dataset.buttonIndex=i);f&&f.length&&coned.utils.addGeneralListeners(f[0],ti)}),ot(),i.classList.remove(n.HIDDEN_CLASS),h.classList.remove(n.HIDDEN_CLASS),e&&e.length&&_.each(e,function(t){t.classList.remove(n.HIDDEN_CLASS)}),s&&s.classList.add(n.HIDDEN_CLASS),c.length&&query.selectParentElement(r,n.CHECKBOX_CONTAINER).classList.remove(n.HIDDEN_CLASS))},ci=function(){oi();si();hi();t=!0};ci()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DashboardThirdParty=function(){var n={TAB_CONTENT:"js-third-party-tab-content",CUSTOMER_ACCOUNTS_LAZY_LOAD:"js-lazy-load-customer-accounts",CUSTOMER_ACCOUNTS_TAB_CONTENT:"js-customer-accounts-tab-content",REQUEST_ACCESS_TAB:"js-request-access-tab",REQUEST_ACCESS_TAB_CONTENT:"js-request-access-tab-content",REQUEST_ACCESS_FORM:"js-request-access-form",REQUEST_ACCESS_SUBFORM_CONTAINER:"js-request-access-subform-container",REQUEST_ACCESS_CURRENT_ACCOUNTS_AMOUNT:"js-current-accounts-amount",REQUEST_ACCESS_PENDING_REQUESTS_AMOUNT:"js-pending-requests-amount",REQUEST_ACCESS_INPUT:"js-request-access-account-numbers",REQUEST_ACCESS_INPUT_NAME:"requestAccountNumberList",REQUEST_ACCESS_COUNTER:"js-request-access-account-counter",REQUEST_ACCESS_SUBMIT_BUTTON:"js-request-access-button",REQUEST_ACCESS_LINK:"js-request-access-link",REQUEST_ACCESS_REGISTER_MESSAGES:"js-request-access-register-message",REQUEST_ACCESS_RESPONSE:"js-request-access-response",REQUEST_ACCESS_RESPONSE_SUCCESS:"js-request-access-response-success",REQUEST_ACCESS_RESPONSE_SUCCESS_TITLE:"js-request-access-response-success-title",REQUEST_ACCESS_RESPONSE_SUCCESS_DESCRIPTION:"js-request-access-response-success-description",REQUEST_ACCESS_RESPONSE_ERROR:"js-request-access-response-error",REQUEST_ACCESS_RESPONSE_ERROR_TITLE:"js-request-access-response-error-title",REQUEST_ACCESS_RESPONSE_ERROR_DESCRIPTION:"js-request-access-response-error-description",REQUEST_ACCESS_RESPONSE_ERROR_ICON:"js-request-access-response-error-icon",REQUEST_ACCESS_RESPONSE_ERROR_LIST:"js-request-access-response-error-list",REQUEST_ACCESS_RESPONSE_ERROR_LIST_CONTAINER:"js-request-access-response-error-list-container",REQUEST_ACCESS_RESPONSE_ERROR_LIST_ELEMENT:"dashboard-third-party__response-error-list-element",REQUEST_ACCESS_RESPONSE_BUTTON:"js-request-access-try-again",REQUEST_ACCESS_RESPONSE_REGISTER_BUTTON:"js-request-access-register-profile",REQUEST_ACCESS_POPUP_LOADING:"js-request-access-loading-popup",REQUEST_ACCESS_POPUP_LOADING_TITLE:"js-loading-popup-title",REQUEST_ACCESS_POPUP_LOADING_ANIMATION:"js-loading-animation",REQUEST_ACCESS_POPUP_LOADING_ANIMATION_PLAY:"js-animation-play",REQUEST_ACCESS_LAZY_LOAD:"js-lazy-load-request-access",PENDING_ACCESS_TABLE:"js-pending-access",PENDING_ACCESS_CHECKBOX_INPUT:"js-third-party-checkbox",PENDING_ACCESS_CHECKBOX_CONTAINER:"js-third-party-checkbox-container",ACCOUNT_ITEM_ROW_CLASSES:["js-item-ignore"],ACCOUNT_ITEM_LABEL_CONTAINER_CLASSES:["invisible"],ACCOUNT_ITEM_LABEL_ACCOUNT_CLASS:["dashboard-third-party-accounts__table-item--pending-account"],ACCOUNT_ITEM_LABEL_REQUEST_CLASS:["dashboard-third-party-accounts__table-item--request"],ACCOUNT_ITEM_INPUT_NAME:"pendingAccountsCheckBox",TAGGING_GENERAL_PREFFIX:"Pilot.Reg.3P.",TAGGING_REQUEST_ACCESS_CTA:"Step07.Request.Access.CTA",DIV_TAG:"div",SPAN_TAG:"span",BUTTON_TAG:"button",DATE_TOKEN:"@DATE",AMOUNT_TOKEN:"@AMOUNT",PERCENTAGE_TOKEN:"@PERCENTAGE",BATCH_AMOUNT:5,SITECORE_ID:"ScId",TAB_URL_PARAMETER_NAME:"tab",ACCOUNT_SUFFIX:"--account",DESCRIPTION_SUFFIX:"--description",COUNTER_ERROR_CLASS:"dashboard-third-party__textarea-counter--error",RESPONSE_CONTAINER_BORDER_CLASS:"dashboard-third-party__response-container--border",NEXT_FOCUS_QUERY:'p:not(.hidden) [tabindex="0"], textarea:not(.hidden)',LOGGED_IN_CLASS:"primary-nav-item--logged-in",FORM_LOADING:"js-form-loading",TAB_CONTAINER:"js-conedtab-section-dashboard-third-party",LAZY_LOAD_CLASS:"js-lazy-load",LAZY_LOAD_LOADED_CLASS:"js-lazy-load-element-loaded",FILLED_INPUT_CLASS:"coned-input--filled",VALID_CLASS:"valid",HIDDEN_CLASS:"hidden"},t=!1,i=function(i){var d,a,g,ti,s,o,h,ii,ri,f,it,r,nt,e,v,ht,ct,lt,b,l,c,rt,ut,y,p,pt,ui,ft,et,at,wt,w,tt,u,k,vt,bt,kt,ot,st=function(){var n=a.dataset.loadAccountsServiceUrl;coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_CUSTOMER_ACCOUNTS_HTML,fi,dt,!0,ot):query.getData(n,fi,dt,!0,ot)},yt=function(){var n=s.dataset.loadAccountsServiceUrl;coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_REQUEST_ACCESS_HTML,ei,gt,!0,ot):query.getData(n,ei,gt,!0,ot)},fi=function(t,i){oi(t,i,a,dt);coned.utils.initializeModules(a);d[0].removeEventListener("lazy-load-start",st);a.classList.add(n.LAZY_LOAD_LOADED_CLASS);coned.utils.triggerEvent(a,"lazy-load-element-loaded")},dt=function(t,i){i===302&&location.reload();d[0].removeEventListener("lazy-load-start",st);a.classList.add(n.LAZY_LOAD_LOADED_CLASS);coned.utils.triggerEvent(a,"lazy-load-element-loaded")},ei=function(t,u){oi(t,u,s,gt);coned.utils.initializeModules(s);o=i.getElementsByClassName(n.REQUEST_ACCESS_FORM)[0];h=i.getElementsByClassName(n.REQUEST_ACCESS_SUBFORM_CONTAINER)[0];r=i.getElementsByClassName(n.REQUEST_ACCESS_INPUT)[0];nt=i.getElementsByClassName(n.REQUEST_ACCESS_COUNTER)[0];e=i.getElementsByClassName(n.REQUEST_ACCESS_SUBMIT_BUTTON)[0];ii=i.getElementsByClassName(n.REQUEST_ACCESS_CURRENT_ACCOUNTS_AMOUNT)[0];ri=i.getElementsByClassName(n.REQUEST_ACCESS_PENDING_REQUESTS_AMOUNT)[0];h=i.getElementsByClassName(n.REQUEST_ACCESS_SUBFORM_CONTAINER)[0];et=r&&r.dataset.maxAccounts&&r.dataset.maxAccounts!==""&&parseInt(r.dataset.maxAccounts)>0?parseInt(r.dataset.maxAccounts):50;v=i.getElementsByClassName(n.REQUEST_ACCESS_RESPONSE)[0];ht=i.getElementsByClassName(n.REQUEST_ACCESS_RESPONSE_SUCCESS)[0];ct=i.getElementsByClassName(n.REQUEST_ACCESS_RESPONSE_SUCCESS_TITLE)[0];lt=i.getElementsByClassName(n.REQUEST_ACCESS_RESPONSE_SUCCESS_DESCRIPTION)[0];b=i.getElementsByClassName(n.REQUEST_ACCESS_RESPONSE_ERROR)[0];l=i.getElementsByClassName(n.REQUEST_ACCESS_RESPONSE_ERROR_TITLE)[0];c=i.getElementsByClassName(n.REQUEST_ACCESS_RESPONSE_ERROR_DESCRIPTION)[0];rt=i.getElementsByClassName(n.REQUEST_ACCESS_RESPONSE_ERROR_ICON)[0];ut=i.getElementsByClassName(n.REQUEST_ACCESS_RESPONSE_ERROR_LIST)[0];y=i.getElementsByClassName(n.REQUEST_ACCESS_RESPONSE_ERROR_LIST_CONTAINER)[0];f=i.getElementsByClassName(n.REQUEST_ACCESS_RESPONSE_BUTTON)[0];it=i.getElementsByClassName(n.REQUEST_ACCESS_RESPONSE_REGISTER_BUTTON)[0];p=i.getElementsByClassName(n.REQUEST_ACCESS_REGISTER_MESSAGES);k=i.getElementsByClassName(n.REQUEST_ACCESS_POPUP_LOADING)[0];vt=k.getElementsByClassName(n.REQUEST_ACCESS_POPUP_LOADING_ANIMATION)[0];bt=k.getElementsByClassName(n.REQUEST_ACCESS_POPUP_LOADING_TITLE)[0];kt=i.getElementsByClassName(n.PENDING_ACCESS_TABLE)[0];r&&r.addEventListener("input",bi);f&&coned.utils.addGeneralListeners(f,wi);document.addEventListener("update-counters",vi);s.addEventListener("tab-active",yi);e&&new coned.components.ValidateForm("."+n.REQUEST_ACCESS_FORM,ai);g[0].removeEventListener("lazy-load-start",yt);s.classList.add(n.LAZY_LOAD_LOADED_CLASS);coned.utils.triggerEvent(s,"lazy-load-element-loaded")},gt=function(t,i){i===302&&location.reload();g[0].removeEventListener("lazy-load-start",yt);s.classList.add(n.LAZY_LOAD_LOADED_CLASS);coned.utils.triggerEvent(s,"lazy-load-element-loaded")},oi=function(t,i,r,u){if(t){var h=new DOMParser,e,o,f,s;if(e=h.parseFromString(t,"text/html"),f=e.getElementsByClassName(n.TAB_CONTAINER),f.length!==0)f=f[0];else if(e.getElementsByClassName(n.LOGGED_IN_CLASS).length===0)location.reload();else{u(t,i);return}if(f.innerHTML.trim()===""){u(t,i);return}for(r.innerHTML=f.innerHTML,o=f.attributes;r.attributes.length>0;)r.removeAttribute(r.attributes[0].name);_.each(o,function(n){r.setAttribute(n.nodeName,n.nodeValue)});s=r.getElementsByClassName(n.REQUEST_ACCESS_LINK);_.each(s,function(t){coned.utils.addGeneralListeners(t,function(t){t.preventDefault();dataLayer.push({event:n.TAGGING_GENERAL_PREFFIX+n.TAGGING_REQUEST_ACCESS_CTA});ti.click()})})}else{u(t,i);return}},si=function(t){if(ht.classList.add(n.HIDDEN_CLASS),b.classList.add(n.HIDDEN_CLASS),t)at=!1,l.innerHTML=l.dataset.amountErrorTitle,c.innerHTML=c.dataset.amountErrorDescription.replace(n.AMOUNT_TOKEN,et),f.innerHTML=f.dataset.errorLabel,rt.classList.remove(n.HIDDEN_CLASS),b.classList.remove(n.HIDDEN_CLASS);else{var i=_.where(u.Accounts,{Success:!0}),r=y.children;i.length&&(ct.innerHTML=i.length===1?ct.dataset.successTitleSingle:ct.dataset.successTitleMultiple.replace(n.AMOUNT_TOKEN,i.length),lt.innerHTML=i.length===1?lt.dataset.successDescriptionSingle:lt.dataset.successDescriptionMultiple,ht.classList.remove(n.HIDDEN_CLASS),f.innerHTML=f.dataset.successLabel);r.length&&(l.innerHTML=u&&u.HadReachedAccountsLimit?l.dataset.maxAccountErrorTitle.replace(n.AMOUNT_TOKEN,y.children.length):r.length===1?l.dataset.errorTitleSingle:l.dataset.errorTitleMultiple.replace(n.AMOUNT_TOKEN,y.children.length),c.innerHTML=u&&u.HadReachedAccountsLimit?c.dataset.maxAccountErrorDescription.replace(n.AMOUNT_TOKEN,y.children.length):r.length===1?c.dataset.errorDescriptionSingle:c.dataset.errorDescriptionMultiple.replace(n.AMOUNT_TOKEN,y.children.length),rt.classList.add(n.HIDDEN_CLASS),b.classList.remove(n.HIDDEN_CLASS),ut.classList.remove(n.HIDDEN_CLASS),f.innerHTML=f.dataset.errorLabel);r.length&&i.length?b.classList.add(n.RESPONSE_CONTAINER_BORDER_CLASS):b.classList.remove(n.RESPONSE_CONTAINER_BORDER_CLASS);u&&u.HadReachedAccountsLimit?(f.classList.add(n.HIDDEN_CLASS),it.classList.remove(n.HIDDEN_CLASS)):(f.classList.remove(n.HIDDEN_CLASS),it.classList.add(n.HIDDEN_CLASS))}},ai=function(){if(ft=r.value.split(/[,\s]/).filter(function(n){return n!==""}),ft.length>et)si(!0),ut.classList.add(n.HIDDEN_CLASS),h.classList.add(n.HIDDEN_CLASS),v.classList.remove(n.HIDDEN_CLASS),v.focus();else{tt=[];u=null;at=!0;wt=0;w=ft.length;y.innerHTML="";_.each(ft,function(n){var t=_.find(tt,function(t){return t.AccountNumber===n});tt.push({AccountNumber:n,IsDuplicated:t?!0:!1})});_.each(p,function(t){t.classList.add(n.HIDDEN_CLASS)});e.disabled=!0;bt.innerHTML=w===1?o.dataset.loadingTitleSingle:o.dataset.loadingTitleMultiple.replace(n.AMOUNT_TOKEN,w).replace(n.PERCENTAGE_TOKEN,"0");var t=w===1?e.dataset.tagSingle:w>1?e.dataset.tagMultiple:"";t&&dataLayer.push({event:t});query.fireEvent(vt,"start-animation");k.classList.remove(n.HIDDEN_CLASS);k.focus();hi()}},hi=function(){if(tt.length>0){var i=Math.min(n.BATCH_AMOUNT,tt.length),f=tt.splice(0,i),r=o.dataset.requestAccessServiceUrl,t={ScId:query.getFormInputValue(s,n.SITECORE_ID),TotalAccountsToAdd:ft.length,Accounts:f};wt+=i;t=JSON.stringify(t);coned.utils.isPatternLab()&&ui==="2"?query.postData(r,ni,ci,t,!0):query.postData(r,ci,ni,t,!0)}else si(),pi(),query.fireEvent(document,"update-counters",u),query.fireEvent(vt,"stop-animation"),k.classList.add(n.HIDDEN_CLASS),h.classList.add(n.HIDDEN_CLASS),v.classList.remove(n.HIDDEN_CLASS),v.focus(),dataLayer.push({event:n.TAGGING_GENERAL_PREFFIX+n.TAGGING_REQUEST_ACCESS_SUBMIT})},ci=function(n){coned.utils.isPatternLab()?setTimeout(function(){query.getData(coned.plConstants.GET_REQUEST_ACCESS_ERRORS,li,ni,null)},500):li(n)},ni=function(t){coned.utils.isPatternLab()&&ui==="2"&&(t.errorTitle="You’ve Entered Too Many Accounts",t.errorMsg="To manage more than 1,000 accounts, please register a new profile.",t.registerProfile="true");ht.classList.add(n.HIDDEN_CLASS);b.classList.remove(n.HIDDEN_CLASS);l.innerHTML=t.errorTitle?t.errorTitle:l.dataset.defaultTitle;c.innerHTML=t.errorMsg?t.errorMsg:c.dataset.defaultMsg;rt.classList.remove(n.HIDDEN_CLASS);ut.classList.add(n.HIDDEN_CLASS);t.registerProfile&&t.registerProfile==="true"&&(_.each(p,function(t){t.classList.add(n.HIDDEN_CLASS)}),f.classList.add(n.HIDDEN_CLASS),it.classList.remove(n.HIDDEN_CLASS));query.fireEvent(vt,"stop-animation");k.classList.add(n.HIDDEN_CLASS);h.classList.add(n.HIDDEN_CLASS);v.classList.remove(n.HIDDEN_CLASS);c.focus()},vi=function(t){if(t.details&&t.details.AccountsCurrentCount!==undefined&&t.details.AccountsNewCount!==undefined){var i=t.details.AccountsCurrentCount,u=t.details.AccountsNewCount;ii.innerHTML=i;ri.innerHTML=u;at&&(nt.innerHTML=o.dataset.multipleAccount.replace(n.AMOUNT_TOKEN,0),nt.classList.remove(n.COUNTER_ERROR_CLASS),r.value="",r.classList.remove(n.FILLED_INPUT_CLASS),r.classList.remove(n.VALID_CLASS),e.disabled=!0,at=!0);t.details.HadReachedAccountsWarningPoint?_.each(p,function(t){t.classList.remove(n.HIDDEN_CLASS)}):_.each(p,function(t){t.classList.add(n.HIDDEN_CLASS)});t.details.HadReachedAccountsLimit?(h.classList.add(n.HIDDEN_CLASS),e.disabled=!0):(h.classList.remove(n.HIDDEN_CLASS),e.disabled=!1);pt=t.details.UpdateCounters}},yi=function(){v.classList.add(n.HIDDEN_CLASS);pt||(u&&u.HadReachedAccountsWarningPoint?_.each(p,function(t){t.classList.remove(n.HIDDEN_CLASS)}):_.each(p,function(t){t.classList.add(n.HIDDEN_CLASS)}),u&&u.HadReachedAccountsLimit?(h.classList.add(n.HIDDEN_CLASS),e.disabled=!0):(h.classList.remove(n.HIDDEN_CLASS),e.disabled=!1));pt=!1},li=function(t){var i=Math.round(wt*100/w);bt.innerHTML=w===1?o.dataset.loadingTitleSingle:o.dataset.loadingTitleMultiple.replace(n.AMOUNT_TOKEN,w).replace(n.PERCENTAGE_TOKEN,i);t&&t.Accounts&&t.Accounts.length>0&&(u?(u.Accounts=u.Accounts.concat(t.Accounts),u.AccountsCurrentCount=t.AccountsCurrentCount,u.AccountsNewCount=t.AccountsNewCount,u.HadReachedAccountsWarningPoint=t.HadReachedAccountsWarningPoint,u.HadReachedAccountsLimit=t.HadReachedAccountsLimit):u=t,_.each(t.Accounts,function(t){if(!t.Success){var f=t.AccountNumber,e=t.ErrorMessage,i=document.createElement(n.DIV_TAG),r=document.createElement(n.SPAN_TAG),u=document.createElement(n.SPAN_TAG);r.innerHTML=f;u.innerHTML=e;r.classList.add(n.REQUEST_ACCESS_RESPONSE_ERROR_LIST_ELEMENT+n.ACCOUNT_SUFFIX);u.classList.add(n.REQUEST_ACCESS_RESPONSE_ERROR_LIST_ELEMENT+n.DESCRIPTION_SUFFIX);i.classList.add(n.REQUEST_ACCESS_RESPONSE_ERROR_LIST_ELEMENT);i.appendChild(r);i.appendChild(u);y.appendChild(i)}}));hi()},pi=function(){var i=kt.getElementsByClassName(n.PENDING_ACCESS_CHECKBOX_INPUT),r=_.where(u.Accounts,{Success:!0}),t={Accounts:[]};_.each(r,function(r){var f=_.find(i,function(n){return n.id===r.AccountNumber}),u,e,s;f&&(u=query.selectParentElement(f,n.PENDING_ACCESS_CHECKBOX_CONTAINER),u.parentNode.removeChild(u));e=o.dataset.requestedCopy.replace(n.DATE_TOKEN,r.RequestedDate);s={AccountNumber:r.AccountNumber,RowClasses:n.ACCOUNT_ITEM_ROW_CLASSES,Checkbox:{LabelClasses:n.ACCOUNT_ITEM_LABEL_CONTAINER_CLASSES,InputName:n.ACCOUNT_ITEM_INPUT_NAME,InputValue:r.AccountNumber},Items:[{Classes:n.ACCOUNT_ITEM_LABEL_ACCOUNT_CLASS,Content:r.AccountNumber},{Classes:n.ACCOUNT_ITEM_LABEL_REQUEST_CLASS,Content:e}]};t.Accounts.push(s)});query.fireEvent(kt,"add-account",t)},wi=function(t){t&&t.preventDefault();rt.classList.add(n.HIDDEN_CLASS);ut.classList.remove(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);it.classList.add(n.HIDDEN_CLASS);v.classList.add(n.HIDDEN_CLASS);u&&u.HadReachedAccountsLimit||(h.classList.remove(n.HIDDEN_CLASS),e.disabled=!1);p[0].focus()},bi=function(){r.value=r.value.replace(/([^\d,\s])/g,"");r.value=r.value.replace(/,{2,}/g,",");r.value=r.value.replace(/\s{2,}/g,"\n");r.value=r.value.replace(/(,\s|\s,)/g,",");r.value=r.value.replace(/^[\s,]/g,"");e.disabled=r.value.length===0;var t=r.value.split(/[,\s]/).filter(function(n){return n!==""}).length;nt.innerHTML=t===1?o.dataset.oneAccount.replace(n.AMOUNT_TOKEN,t):o.dataset.multipleAccount.replace(n.AMOUNT_TOKEN,t);t>et?nt.classList.add(n.COUNTER_ERROR_CLASS):nt.classList.remove(n.COUNTER_ERROR_CLASS);e.disabled=t>et||t===0;$(o).validate().checkForm()},ki=function(){d=i.getElementsByClassName(n.CUSTOMER_ACCOUNTS_LAZY_LOAD);a=i.getElementsByClassName(n.CUSTOMER_ACCOUNTS_TAB_CONTENT)[0];ti=i.getElementsByClassName(n.REQUEST_ACCESS_TAB)[0];s=i.getElementsByClassName(n.REQUEST_ACCESS_TAB_CONTENT)[0];g=i.getElementsByClassName(n.REQUEST_ACCESS_LAZY_LOAD);ot=document.getElementsByClassName(n.FORM_LOADING)[0]},di=function(){d&&d.length?window.location.search.includes(n.TAB_URL_PARAMETER_NAME)?d[0].addEventListener("lazy-load-start",st):st():st();g&&g.length?g[0].addEventListener("lazy-load-start",yt):yt()},gi=function(){ki();di();t=!0};gi()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DataConnectionsFormModule=function(){var n={DISABLED:"disabled",REQUIRED:"required",HIDDEN_CLASS:"hidden",VALID_CLASS:"valid",SUBMIT_EVENT:"submit",CHANGE_EVENT:"change",KEYUP_EVENT:"keyup",ADDRESS_DROPDOWN_CLASS:"js-address-dropdown",ADDRESS_DROPDOWN_SELECTED_CLASS:"js-dropdown-button-contain",ADDRESS_DROPDOWN_SELECTED_CARROT_CLASS:"js-dropdown-carrot",ADDRESS_DROPDOWN_LIST_CLASS:"js-dropdown-list",ADDRESS_DROPDOWN_DISPLAY_NONE_CLASS:"address-dropdown__list-item--hidden",ADDRESS_DROPDOWN_CARROT_UP_CLASS:"address-dropdown__icon--up",THIRDPARTY_CLASS:"js-form-thirdparty",TIMESPAN_SELECT_CLASS:"js-form-date-select",DATE_PICKER_CLASS:"js-form-date",DATE_PICKER_CONTAINER_CLASS:"js-form-date-container",TERMS_CONDITIONS_CHECKBOX_CLASS:"js-form-checkbox",SUBMIT_BUTTON_CLASS:"js-form-button",SUBMIT_BUTTON_CONTAINER_CLASS:"js-form-button-container",DATE_INVALID_ATTR:"aria-invalid",FORM_ID:"dataConnectionsForm",ERROR_CLASS:"js-service-error",ERROR_MESSAGE_CLASS:"js-error-message",FORM_INPUT_TIMESPAN_NAME:"timespanSelect",FORM_INPUT_DATE_NAME:"sharedate",FORM_INPUT_CHECKBOX_NAME:"terms",NEW_EXPERIENCE_SELECTOR:"js-new-experience",CATEGORIES_CHECKBOX:"js-categories-checkbox",AUTHORIZE_SUBMIT_BUTTON_SELECTOR:"js-authorize-submit",DECLINE_SUBMIT_BUTTON_SELECTOR:"js-decline-submit",SUBMIT_ANIMATION_CONTAINER_SELECTOR:"js-submit-animation",SUBMIT_ANIMATION_SELECTOR:"js-submit-progress-animation",CATEGORIES_CHECKBOXES_CHECKED_SELECTOR:'input[name="dataCategories"]:checked',FORM_INPUT_CLIENT_ID_NAME:"clientId",FORM_INPUT_THIRD_PARTY_ID_NAME:"thirdPartyId",FORM_INPUT_ORIGINAL_SCOPE_NAME:"originalScope",FORM_INPUT_ORIGINAL_STATE_NAME:"originalStateName",FORM_INPUT_RESPONSE_TYPE_NAME:"originalResponseType",FORM_INPUT_ORIGIANL_REDIRECT_URI__NAME:"originalRedirectURI",TIMEFRAME_DATE_PARAM_NAME:"timeFrameDate",VISIBILITY_HIDDEN_CLASS:"form__actions--visibility-hidden",CHECKBOX_CHECKED_CLASS:"coned-checkbox--checked",DISABLED_ATTRIBUTE:"disabled",TRUE_VALUE:!0,SHOW_ACTION:"show",HIDE_ACTION:"hide",LAND_GBC_TAGGING:"gbc.land",GREEN_BUTTON_TAGGING:"green.button",DECLINE_BUTTON_TAGGING:"gbc.decline",STEP_DATA_LAYER_THREE_TAGGING:"step2.1.3",STEP_DATA_LAYER_TWO_TAGGING:"step2.1.2",DATA_VENDOR_NAME_ATTRIBUTE:"data-vendor-name",UNCHECKED:"off",CHECKED:"on",GBC:"gbc.",DOT_STR:"."},t=!1,i=function(i){var r,o,w,h,u,a,ut,ft,b,s,k,et,d,ot,st,v,y,g,f,e,ht,p,nt,ct,lt,c,bt=function(){var n=new Date;n.setDate(n.getDate()+1);u.dataset.minDateDays=n;setTimeout(function(){$(u).datepicker("option","minDate",new Date(n));$(u).datepicker("option","onSelect",function(){$(this).trigger("change");l()})},1)},kt=function(t){t.preventDefault();var i=query.getFormInputValue(r,n.FORM_INPUT_TIMESPAN_NAME);i===v?(a.classList.remove(n.HIDDEN_CLASS),u.setAttribute(n.REQUIRED,""),dataLayer.push({event:n.GREEN_BUTTON_TAGGING,gbc:n.STEP_DATA_LAYER_TWO_TAGGING})):(a.classList.add(n.HIDDEN_CLASS),u.removeAttribute(n.REQUIRED));l()},l=function(){var n=!($(r).validate().checkForm()&&h.selectedIndex>0);c?(f.disabled=n,e.disabled=n):ft.disabled=n},dt=function(){Array.from(g).forEach(function(t){var i=t.parentElement;query.hasClass(i,n.CHECKBOX_CHECKED_CLASS)&&(t.checked=n.TRUE_VALUE)})},gt=function(){var i=document.querySelectorAll(n.CATEGORIES_CHECKBOXES_CHECKED_SELECTOR),t=[];return i.forEach(function(n){var r=n.checked,i;r&&(i=n.value,t.push(i))}),t},at=function(n){var t=n.currentTarget;ht=t},tt=function(){return ht},vt=function(t){t===n.SHOW_ACTION?(query.removeClass(p,n.HIDDEN_CLASS),query.addClass(f,n.VISIBILITY_HIDDEN_CLASS),query.addClass(e,n.VISIBILITY_HIDDEN_CLASS),f.disabled=n.TRUE_VALUE,e.disabled=n.TRUE_VALUE):t===n.HIDE_ACTION&&(query.addClass(p,n.HIDDEN_CLASS),query.removeClass(f,n.VISIBILITY_HIDDEN_CLASS),query.removeClass(e,n.VISIBILITY_HIDDEN_CLASS),f.removeAttribute(n.DISABLED_ATTRIBUTE),e.removeAttribute(n.DISABLED_ATTRIBUTE))},ni=function(){var i=tt(),t;s.classList.add(n.HIDDEN_CLASS);query.hasClass(i,n.AUTHORIZE_SUBMIT_BUTTON_SELECTOR)?t=ii:query.hasClass(i,n.DECLINE_SUBMIT_BUTTON_SELECTOR)&&(t=ri);vt(n.SHOW_ACTION);new coned.components.SubmitAnimation(nt,t,function(){},fi)},ti=function(){s.classList.add(n.HIDDEN_CLASS);new coned.components.SubmitAnimation(b,ui,function(){},rt)},ii=function(){var f=query.getFormInputValue(r,n.FORM_INPUT_CLIENT_ID_NAME),e=query.getFormInputValue(r,n.FORM_INPUT_THIRD_PARTY_ID_NAME),s=query.getFormInputValue(r,n.FORM_INPUT_ORIGINAL_SCOPE_NAME),h=query.getFormInputValue(r,n.FORM_INPUT_ORIGINAL_STATE_NAME),c=query.getFormInputValue(r,n.FORM_INPUT_RESPONSE_TYPE_NAME),l=query.getFormInputValue(r,n.FORM_INPUT_ORIGIANL_REDIRECT_URI__NAME),a=gt(),i=query.getFormInputValue(r,n.FORM_INPUT_TIMESPAN_NAME),u=o.getElementsByClassName(n.ADDRESS_DROPDOWN_SELECTED_CLASS)[0],t;t={clientID:f,thirdPartyId:e,originalScope:s,originalState:h,originalResponseType:c,originalRedirectUri:l,selectedScopes:a,maid:u.dataset.accountMaid,accountNumber:u.dataset.accountNumber,selectedTimeFrame:i};i===v&&(t[n.TIMEFRAME_DATE_PARAM_NAME]=query.getFormInputValue(r,n.FORM_INPUT_DATE_NAME));t=JSON.stringify(t);query.postData(ct,it,pt,t,!0,null)},ri=function(){var i=query.getFormInputValue(r,n.FORM_INPUT_THIRD_PARTY_ID_NAME),u=query.getFormInputValue(r,n.FORM_INPUT_ORIGINAL_STATE_NAME),f=query.getFormInputValue(r,n.FORM_INPUT_ORIGIANL_REDIRECT_URI__NAME),t;t={thirdPartyId:i,originalState:u,originalRedirectUri:f};t=JSON.stringify(t);query.postData(lt,it,pt,t,!0,null)},ui=function(){var u=query.getFormInputValue(r,n.FORM_INPUT_TIMESPAN_NAME),f=o.getElementsByClassName(n.ADDRESS_DROPDOWN_SELECTED_CLASS)[0],t={ScId:i.dataset.scid,Maid:f.dataset.accountMaid,AccountNumber:f.dataset.accountNumber,ThirdPartyId:w.dataset.thirdpartyId,AuthorizationOption:u};u===v&&(t.RevokeDate=query.getFormInputValue(r,n.FORM_INPUT_DATE_NAME));t=JSON.stringify(t);query.postData(st,it,rt,t,!0,null)},it=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.POST_DATA_CONNECTIONS_FORM,yt,rt):yt(n)},yt=function(t){var i=tt();c?query.hasClass(i,n.AUTHORIZE_SUBMIT_BUTTON_SELECTOR)?dataLayer.push({event:n.GREEN_BUTTON_TAGGING,gbc:n.STEP_DATA_LAYER_THREE_TAGGING,vendor2:y}):query.hasClass(i,n.DECLINE_SUBMIT_BUTTON_SELECTOR)&&dataLayer.push({event:n.DECLINE_BUTTON_TAGGING,vendor2:y}):(dataLayer.push({event:n.GREEN_BUTTON_TAGGING,gbc:w.dataset.thirdpartyName}),dataLayer.push({event:n.GREEN_BUTTON_TAGGING,gbc:n.STEP_DATA_LAYER_THREE_TAGGING}));window.location.href=t.RedirectUrl},rt=function(t){k.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;s.classList.remove(n.HIDDEN_CLASS);s.focus();b.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},pt=function(){nt.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS)},fi=function(t){var i=tt();k.innerHTML=t&&t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;s.classList.remove(n.HIDDEN_CLASS);vt(n.HIDE_ACTION);i.focus()},wt=function(){dataLayer.push({event:"green.button",gbc:"step2.1.1"})},ei=function(){dataLayer.push({event:n.LAND_GBC_TAGGING,vendor2:y})},oi=function(){query.addClass(ot,n.ADDRESS_DROPDOWN_DISPLAY_NONE_CLASS);query.removeClass(d,n.ADDRESS_DROPDOWN_CARROT_UP_CLASS)},si=function(t){var i=t.target.value.toLowerCase(),r=t.target.checked?n.CHECKED:n.UNCHECKED,u=n.GBC+i+n.DOT_STR+r;dataLayer.push({event:u})},hi=function(){c=query.hasClass(i,n.NEW_EXPERIENCE_SELECTOR);r=document.getElementById(n.FORM_ID);o=i.getElementsByClassName(n.ADDRESS_DROPDOWN_CLASS)[0];et=o.getElementsByClassName(n.ADDRESS_DROPDOWN_SELECTED_CLASS)[0];d=o.getElementsByClassName(n.ADDRESS_DROPDOWN_SELECTED_CARROT_CLASS)[0];ot=o.getElementsByClassName(n.ADDRESS_DROPDOWN_LIST_CLASS)[0];w=i.getElementsByClassName(n.THIRDPARTY_CLASS)[0];h=i.getElementsByClassName(n.TIMESPAN_SELECT_CLASS)[0];v=h.dataset.dateOption;a=i.getElementsByClassName(n.DATE_PICKER_CONTAINER_CLASS)[0];u=a.getElementsByClassName(n.DATE_PICKER_CLASS)[0];ut=i.getElementsByClassName(n.TERMS_CONDITIONS_CHECKBOX_CLASS)[0];ft=i.getElementsByClassName(n.SUBMIT_BUTTON_CLASS)[0];b=i.getElementsByClassName(n.SUBMIT_BUTTON_CONTAINER_CLASS)[0];s=i.getElementsByClassName(n.ERROR_CLASS)[0];k=i.getElementsByClassName(n.ERROR_MESSAGE_CLASS)[0];c?(y=i.getAttribute(n.DATA_VENDOR_NAME_ATTRIBUTE),g=i.getElementsByClassName(n.CATEGORIES_CHECKBOX),f=i.getElementsByClassName(n.AUTHORIZE_SUBMIT_BUTTON_SELECTOR)[0],e=i.getElementsByClassName(n.DECLINE_SUBMIT_BUTTON_SELECTOR)[0],p=i.getElementsByClassName(n.SUBMIT_ANIMATION_CONTAINER_SELECTOR)[0],nt=p.getElementsByClassName(n.SUBMIT_ANIMATION_SELECTOR)[0],ct=i.dataset.connectionsFormAuthorizeService,lt=i.dataset.connectionsFormDeclineService):st=i.dataset.connectionsFormService},ci=function(){bt();coned.utils.addGeneralListeners(et,wt);coned.utils.addGeneralListeners(d,wt);coned.utils.addGeneralListeners(ut,l);coned.utils.addMultipleListeners(u,[n.CHANGE_EVENT,n.KEYUP_EVENT],l);coned.utils.addMultipleListeners(h,[n.CHANGE_EVENT],kt);h.onfocus=oi;c?(new coned.components.ValidateForm("#"+n.FORM_ID,ni),coned.utils.addGeneralListeners(f,at),coned.utils.addGeneralListeners(e,at),dt(),Array.from(g).forEach(function(n){coned.utils.addGeneralListeners(n,l);coned.utils.addGeneralListeners(n,si)}),ei()):new coned.components.ValidateForm("#"+n.FORM_ID,ti)},li=function(){hi();ci();t=!0};li()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DataGrid=function(){var n={DATA_CELL:"js-data-cell",GRID_ROW:"js-grid-row",LOAD_MORE:"js-load-more-selector",NON_SEQUENTIAL_ROWS:"js-non-sequential-rows",TABINDEX:"tabindex",CHECKBOX_CLICKED_EVENT:"checkbox-clicked",TABINDEX_0_SELECTOR:'[tabindex="0"]'},t=!1,i=function(i){var r,f,e=!1,o,s,u,h,c,l=function(t){if(0<=t&&t<r.length&&!coned.utils.isElementHidden(r[t])){var i=u.tableCell;u.tableCell=r[t];u.index=t;i&&i.setAttribute(n.TABINDEX,-1);u.tableCell&&u.tableCell.setAttribute(n.TABINDEX,0);u.tableCell&&u.tableCell.focus()}},v=function(n){var t,r,i,s;n.stopPropagation();t=u.index;e&&(e=!1,t=o);r=t%f;switch(n.keyCode){case coned.constants.KEY_CODE.HOME:n.preventDefault();i=t-r;break;case coned.constants.KEY_CODE.END:n.preventDefault();s=f-1-r;i=t+s;break;case coned.constants.KEY_CODE.UP:i=t-f;break;case coned.constants.KEY_CODE.DOWN:i=t+f;break;case coned.constants.KEY_CODE.RIGHT:i=t+1;break;case coned.constants.KEY_CODE.LEFT:i=t-1}l(i)},y=function(t){var f;t.stopPropagation();f=u.index;e&&(e=!1,f=o);var c,i,p=query.selectParentElement(r[f],n.GRID_ROW),w=p.getElementsByClassName(n.DATA_CELL).length,s=p.nextElementSibling,b=s&&s.getElementsByClassName(n.DATA_CELL).length,h=p.previousElementSibling,k=h&&h.getElementsByClassName(n.DATA_CELL).length,a=r[f].dataset.cellPosition==="5",v=a?b:w,y=a?w:k;switch(t.keyCode){case coned.constants.KEY_CODE.UP:for(i=f-y;i>=0;i=i-y)if(coned.utils.isElementHidden(r[i])||r[i].dataset.cellPosition!==r[f].dataset.cellPosition)if(h)a?(y=h.getElementsByClassName(n.DATA_CELL).length,h=h.previousElementSibling):(h=h.previousElementSibling,y=h&&h.getElementsByClassName(n.DATA_CELL).length);else break;else{c=i;break}break;case coned.constants.KEY_CODE.DOWN:for(i=f+v;i<r.length;i=i+v)if(coned.utils.isElementHidden(r[i])||r[i].dataset.cellPosition!==r[f].dataset.cellPosition)if(s)a?(s=s.nextElementSibling,v=s&&s.getElementsByClassName(n.DATA_CELL).length):(v=s.getElementsByClassName(n.DATA_CELL).length,s=s.nextElementSibling);else break;else{c=i;break}break;case coned.constants.KEY_CODE.RIGHT:for(i=f+1;i<r.length;i++)if(!coned.utils.isElementHidden(r[i])){c=i;break}break;case coned.constants.KEY_CODE.LEFT:for(i=f-1;i>=0;i--)if(!coned.utils.isElementHidden(r[i])){c=i;break}}l(c)},p=function(n){e=!0;var i=n.detail,t=Object.values(r).indexOf(i);o=t!==-1?t:0},a=function(){var f=i.querySelector("."+n.DATA_CELL+n.TABINDEX_0_SELECTOR),t;for(f&&f.setAttribute(n.TABINDEX,-1),t=0;t<r.length;t++)if(!coned.utils.isElementHidden(r[t])){r[t].setAttribute(n.TABINDEX,0);u.tableCell=r[t];u.index=t;break}},w=function(){c=i.getElementsByClassName(n.DATA_CELL).length},b=function(){r=i.querySelectorAll("."+n.DATA_CELL);u={tableCell:r[0],index:0};f=i.querySelector("."+n.GRID_ROW).querySelectorAll("."+n.DATA_CELL).length;s=document.getElementsByClassName(n.LOAD_MORE)[0];h=!query.hasClass(i,n.NON_SEQUENTIAL_ROWS)},k=function(){h?(u.tableCell.setAttribute(n.TABINDEX,0),i.addEventListener("keydown",v)):(a(),i.addEventListener("keydown",y),i.addEventListener(n.CHECKBOX_CLICKED_EVENT,a));s.addEventListener("show-more-grid-focus",p)},d=function(){w();c&&(b(),k());t=!0};d()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DatePickerModule=function(){var n={ARIA_EXPANDED:"aria-expanded",ARIA_LABEL:"aria-label",CALENDAR_ICON:"js-calendar-icon",CALENDAR_VIEW_TEXT:"Calendar View",DATE_PICKER_CLASS:".ui-datepicker",DATE_PICKER_INSTRUCTIONS:"js-date-picker-instructions",DATE_PICKER_INSTRUCTIONS_CLASS:".js-date-picker-instructions",DATE_PICKER_INSTRUCTIONS_ACC_TITLE_CLASS:".js-date-picker-instructions-acc-title",DATE_PICKER_INSTRUCTIONS_LIST_CLASS:".js-date-picker-instructions-list",DATE_PICKER_INSTRUCTIONS_BODY_CLASS:".js-date-picker-instructions-body",DATE_PICKER_INSTRUCTIONS_BODY:"js-date-picker-instructions-body",DATE_PICKER_INSTRUCTIONS_ACC_BTN_CLASS:".js-date-picker-instructions-acc-btn",DATE_PICKER_INSTRUCTIONS_ACC_BTN:"js-date-picker-instructions-acc-btn",DATE_PICKER_NEXT_DATE:"js-next-datepicker-input",DISABLED_TEXT:"disabled",DIV_CONTAINER:"#ui-datepicker-div",ELEMENT_STATE_DEFAULT:".ui-state-default",FORM_DATE:"js-date",HAS_DATE_PICKER_CLASS:".hasDatepicker",ICON_CARROT:"icon-carrot",JS_DATE_CLASS:".js-date",LINK_STATE_DEFAULT:"a.ui-state-default",LINK_STATE_ACTIVE:"a.ui-state-active",NEXT_MONTH_TEXT:"Next Month",ARIA_CONTROLS:"aria-controls",ARIA_LIVE:"aria-live",ROLE:"role",REGION:"region",POLITE:"polite",MONTHS:["january","february","march","april","may","june","july","august","september","october","november","december"],PREV_MONTH_TEXT:"Previous Month",SELECTED_STATUS:"Selected",TITLE:"title",UI_DIV_CONTAINER:"ui-datepicker-div",UI_DATE_PREV:".ui-datepicker-prev",UI_DATE_NEXT:".ui-datepicker-next",UI_INSTRUCTIONS:"ui-instructions",UI_INSTRUCTIONS_BODY:"ui-instructions-body",UI_INSTRUCTIONS_BODY_COLLAPSED:"ui-instructions-body--collapsed",UI_INSTRUCTIONS_BODY_EXPANDED:"ui-instructions-body--expanded",UI_INSTRUCTIONS_HEADER:"ui-instructions-header",UI_INSTRUCTIONS_ACC_BTN:"ui-instructions-acc-btn",UI_INSTRUCTIONS_ACC_BTN_ICON:"ui-instructions-acc-btn-icon"},t=!1,i=function(i){function h(t){var e=$(t),s,r=$(t).hasClass("ui-datepicker-next"),u=n.MONTHS,o=$(".ui-datepicker-title .ui-datepicker-month").text().toLowerCase(),h=$.inArray(o.toLowerCase(),u),i=$(".ui-datepicker-title .ui-datepicker-year").text().toLowerCase(),f=r?h+1:h-1;r&&o===n.MONTHS[11]?(i=parseInt(i,10)+1,f=0):r||o!==n.MONTHS[0]||(i=parseInt(i,10)-1,f=u.length-1);s=r?n.NEXT_MONTH_TEXT+" "+u[f]+" "+i:n.PREV_MONTH_TEXT+" "+u[f]+" "+i;e.hasClass("ui-state-disabled")&&e.attr("aria-disabled",!0);e.find(".ui-icon").html(s)}function s(){var o=$(n.DIV_CONTAINER);if(o.find(n.DATE_PICKER_INSTRUCTIONS_CLASS).length===0){var s=$(i),u=document.createElement("div"),f=document.createElement("div"),t=document.createElement("div"),r=document.createElement("button"),e=document.createElement("span"),h=s.find(n.DATE_PICKER_INSTRUCTIONS_ACC_TITLE_CLASS);u.classList.add(n.UI_INSTRUCTIONS);u.classList.add(n.DATE_PICKER_INSTRUCTIONS);f.classList.add(n.UI_INSTRUCTIONS_HEADER);t.classList.add(n.UI_INSTRUCTIONS_BODY);t.classList.add(n.UI_INSTRUCTIONS_BODY_COLLAPSED);t.classList.add(n.DATE_PICKER_INSTRUCTIONS_BODY);t.setAttribute(n.ROLE,n.REGION);t.setAttribute(n.ARIA_LIVE,n.POLITE);t.setAttribute("id",n.DATE_PICKER_INFO_ID);r.classList.add(n.UI_INSTRUCTIONS_ACC_BTN);r.setAttribute(n.ARIA_EXPANDED,!1);r.setAttribute(n.ARIA_CONTROLS,n.DATE_PICKER_INFO_ID);r.classList.add(n.DATE_PICKER_INSTRUCTIONS_ACC_BTN);e.classList.add(n.ICON_CARROT);e.classList.add(n.UI_INSTRUCTIONS_ACC_BTN_ICON);r.innerHTML=h.html();r.innerHTML+=e.outerHTML;f.innerHTML=r.outerHTML;$(u).append(f).append(t);o.append(u)}}function u(){var t=$(n.DIV_CONTAINER),i,r;t&&(i=t.find(n.UI_DATE_NEXT),r=t.find(n.UI_DATE_PREV),r.attr("tabindex",0).attr("role","button").removeAttr("title"),i.attr("tabindex",0).attr("role","button").removeAttr("title"),g(),s(),h(i),h(r))}function g(){var i=$(n.LINK_STATE_DEFAULT),t;$(i).each(function(t,i){var o=$(i).closest("tr"),s=$("td",o),h=$.inArray(i.parentNode,s),c=$("thead tr th"),l=c[h],r=$("span",l)[0],u=$(".ui-datepicker-month")[0].innerHTML,f=$(".ui-datepicker-year")[0].innerHTML,a=i.innerHTML,e;r&&u&&a&&f&&(e=i.innerHTML+" "+u+" "+f+" "+r.title,i.setAttribute(n.ARIA_LABEL,e))});t=$(n.LINK_STATE_ACTIVE)[0];t&&v(t)}function nt(){for(var i=$(n.JS_DATE_CLASS),t=0;t<i.length;t++)$(i[t]).datepicker("hide")}function tt(){setTimeout(function(){var t=$(n.UI_DATE_NEXT)[0];t.click();u();f();e();$(n.UI_DATE_NEXT).focus()},0)}function it(){setTimeout(function(){var t=$(n.UI_DATE_PREV)[0];t.click();u();f();e();$(".ui-datepicker-prev").focus()},0)}function rt(t){var i,r,u;t&&(i=$(t).closest("td"),i)&&(r=$(i).next(),u=$(n.LINK_STATE_DEFAULT,r)[0],r&&u?u.focus():ft(t))}function ut(t){var r;if(t){var u=$(t).closest("tr"),i=$(u).next(),e=$(n.ELEMENT_STATE_DEFAULT,u),f=$.inArray(t,e);i&&i.length!==0?(r=a(f,i),r&&r.focus()):c(f)}}function c(t){t=t||0;var i=$(n.UI_DATE_NEXT)[0],r=document.getElementById(n.UI_DIV_CONTAINER);i.click();setTimeout(function(){u();e();f();var i=$(n.LINK_STATE_DEFAULT,r)[t];i.focus()},0)}function ft(t){var u,i,r;t&&(u=$(t).closest("tr"),i=$(u).next(),i&&i.length!==0?(r=$(n.LINK_STATE_DEFAULT,i)[0],r&&r.focus()):c())}function et(t){var i,r,u;t&&(i=$(t).closest("td"),i)&&(r=$(i).prev(),u=$(n.LINK_STATE_DEFAULT,r)[0],r&&u?u.focus():st(t))}function ot(t){var r;if(t){var u=$(t).closest("tr"),e=$(n.ELEMENT_STATE_DEFAULT,u),f=$.inArray(t,e),i=$(u).prev();i&&i.length!==0?(r=a(f,i),r&&r.focus()):l(f)}}function l(t){var s=$(n.UI_DATE_PREV)[0],h=document.getElementById(n.UI_DIV_CONTAINER),i,r,o;s.click();i=$("tr",h);r=$("td a.ui-state-default",i[i.length-1]);t===undefined&&(t=r.length-1);o=r[t];setTimeout(function(){u();e();f();o.focus()},0)}function st(n){var i,t,r,u;n&&(i=$(n).closest("tr"),i)&&(t=$(i).prev(),t&&t.length!==0?(r=$("td a.ui-state-default",t),u=r[r.length-1],u&&setTimeout(function(){u.focus()},0)):l())}function a(t,i){var u=$(n.ELEMENT_STATE_DEFAULT,i),r=u[t],f=$(r).is(n.LINK_STATE_DEFAULT);if(f)return r}function v(t){t.setAttribute(n.TITLE,n.SELECTED_STATUS)}var r,o=$(i).width(),w=function(n){n.preventDefault();o=$(i).width();$(this).datepicker("show")},b=function(){k();d()},k=function(){if(r.dataset.maxDateDays){var n=coned.utils.dateFormat(r.dataset.maxDateDays);r.dataset.maxDateDays=n.toString();setTimeout(function(){$(r).datepicker("option","maxDate",n)},1)}},d=function(){if(r.dataset.minDateDays){var n=coned.utils.dateFormat(r.dataset.minDateDays);r.dataset.minDateDays=n.toString();setTimeout(function(){$(r).datepicker("option","minDate",n)},1)}},f=function(){var t=$(n.DIV_CONTAINER),f=document.getElementById(n.UI_DIV_CONTAINER),i=t.find(n.UI_DATE_PREV),u=t.find(n.UI_DATE_NEXT),r=t.find(n.DATE_PICKER_INSTRUCTIONS_ACC_BTN_CLASS);t.off("keydown");t.on("keydown",function(n){n.keyCode===coned.constants.KEY_CODE.ESC&&(n.preventDefault(),nt())});u.off("keydown");u.on("keydown",function(n){(n.keyCode===coned.constants.KEY_CODE.ENTER||n.keyCode===coned.constants.KEY_CODE.SPACE)&&(n.preventDefault(),tt())});i.off("keydown");i.on("keydown",function(n){var t=n.key==="Tab"||n.keyCode===coned.constants.KEY_CODE.TAB;t?n.shiftKey&&(n.preventDefault(),r.focus()):(n.keyCode===coned.constants.KEY_CODE.ENTER||n.keyCode===coned.constants.KEY_CODE.SPACE)&&(n.preventDefault(),it())});r.off("keydown");r.on("keydown",function(t){var u=t.key==="Tab"||t.keyCode===coned.constants.KEY_CODE.TAB,r;u&&(t.shiftKey?(t.preventDefault(),r=$(n.LINK_STATE_DEFAULT,f)[0],r.focus()):(t.preventDefault(),i.focus()),y())})},e=function(){var t=$(n.DIV_CONTAINER);t.find(n.LINK_STATE_DEFAULT).off("keydown");t.find(n.LINK_STATE_DEFAULT).on("click",function(n){v(n.target)});t.find(n.LINK_STATE_DEFAULT).on("keydown",function(i){var r=i.key==="Tab"||i.keyCode===coned.constants.KEY_CODE.TAB;r?(i.preventDefault(),i.shiftKey?t.find(n.UI_DATE_NEXT).focus():t.find(n.DATE_PICKER_INSTRUCTIONS_ACC_BTN_CLASS).focus()):i.keyCode===coned.constants.KEY_CODE.LEFT?(i.preventDefault(),et(i.target)):i.keyCode===coned.constants.KEY_CODE.RIGHT?(i.preventDefault(),rt(i.target)):i.keyCode===coned.constants.KEY_CODE.UP?(i.preventDefault(),ot(i.target)):i.keyCode===coned.constants.KEY_CODE.DOWN&&(i.preventDefault(),ut(i.target))})},ht=function(t){t&&query.hasClass(t,n.DATE_PICKER_NEXT_DATE)&&(t.nextSibling.disabled=!0);t.addEventListener("click",function(){$(t).datepicker("show")})},y=function(){var t=document.querySelector(n.DATE_PICKER_INSTRUCTIONS_BODY_CLASS),i=document.querySelector(n.DATE_PICKER_INSTRUCTIONS_ACC_BTN_CLASS);i.setAttribute(n.ARIA_EXPANDED,!1);t.classList.add(n.UI_INSTRUCTIONS_BODY_COLLAPSED);t.classList.remove(n.UI_INSTRUCTIONS_BODY_EXPANDED);t.innerHTML=""},ct=function(){var r=$(i),u=r.find(n.DATE_PICKER_INSTRUCTIONS_LIST_CLASS),t=document.querySelector(n.DATE_PICKER_INSTRUCTIONS_BODY_CLASS),f=document.querySelector(n.DATE_PICKER_INSTRUCTIONS_ACC_BTN_CLASS);f.setAttribute(n.ARIA_EXPANDED,!0);t.classList.remove(n.UI_INSTRUCTIONS_BODY_COLLAPSED);t.classList.add(n.UI_INSTRUCTIONS_BODY_EXPANDED);setTimeout(function(){t.innerHTML=u.html()},10)},p=function(){var i=$(n.DIV_CONTAINER),t=i.find(n.DATE_PICKER_INSTRUCTIONS_ACC_BTN_CLASS);t.off("click");t.on("click",function(t){t&&t.target.classList.contains(n.DATE_PICKER_INSTRUCTIONS_ACC_BTN)&&(t.preventDefault(),t.target.attributes[n.ARIA_EXPANDED].value==="false"?ct():y())})},lt=function(){u();e();f();s();p()},at=function(){$(r).datepicker({inline:!0,showOn:"button",buttonText:n.CALENDAR_VIEW_TEXT,nextText:n.NEXT_MONTH_TEXT,prevText:n.PREV_MONTH_TEXT,showOtherMonths:!0,selectOtherMonths:!0,beforeShow:function(){var i=$(this).width(),t=$(n.DATE_PICKER_CLASS);t.css("min-width",i+"px");setTimeout(function(){var r=$(n.DIV_CONTAINER);r.attr("tabIndex",-1);lt(t);t.css("width",i+"px");t.css("visibility","visible");t.attr("role","application")},0);setTimeout(function(){var t=$(n.DIV_CONTAINER),i=t.find(".ui-datepicker-today a"),r=t.find(".ui-datepicker-current-day a");r.length>0?r.focus():i.length>0?i.focus():t.focus()},500)},onClose:function(){var n=$(this);n.focus();n.valid()},onSelect:function(){var n=$(this);n.change();coned.utils.triggerEvent(n[0],"dateSelected")},onChangeMonthYear:function(){o=$(this).width();setTimeout(function(){$(n.DIV_CONTAINER).css("width",o+"px");s();p()},0)}});ht(r);b()},vt=function(){r=i.getElementsByClassName(n.FORM_DATE)[0]},yt=function(){var t=i.getElementsByClassName(n.CALENDAR_ICON)[0];coned.utils.addGeneralListeners(t,w);$(window).resize(function(){var t=$(n.FORM_DATE);o=$(i).width();t.is(n.HAS_DATE_PICKER_CLASS)&&t.datepicker("hide")})},pt=function(){vt();yt();at();t=!0};pt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DayAheadPeak=function(){var n={LOADING_IMAGE:"js-form-loading",PEAK_VALUE_TEXT:"js-peak-value",PEAK_PARAGRAPH:"js-peak-text",TEMPERATURE_VALUE_TEXT:"js-temperature-text",ERROR:"js-service-error",ERROR_MESSAGE:"js-error-message",HIDDEN:"hidden",CARD_TITLE:"js-card-title",CARD_TITLE_BORDER:"js-card-border",KILOWATTS_VALUE_FIELD:"kiloWatts_value",PERCENTAGE_VALUE_FIELD:"percentage_value",TOTAL_VALUE_FIELD:"total_value",UNIT_MEASURE_FIELD:"unit_measure"},t=!1,i=function(i){var f,r,u,o=function(){var t=i.dataset.getDayAheadForecast,n;n={ScId:i.dataset.scid};n=JSON.stringify(n);query.postData(t,s,h,n,!0,f)},s=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.DAY_AHEAD_PEAK_DEMAND,e,function(){}):e(n)},e=function(t){var e=i.dataset.getAheadAmountText,f=i.dataset.getAheadText,o,s=i.dataset.getTemperatureVariable,h=i.dataset.temperatureTitle,c=i.dataset.peakDemandTitle,l=i.getElementsByClassName(n.PEAK_VALUE_TEXT)[0],a=i.getElementsByClassName(n.TEMPERATURE_VALUE_TEXT)[0],v=i.getElementsByClassName(n.PEAK_PARAGRAPH)[0];r.classList.remove(n.HIDDEN);u.classList.remove(n.HIDDEN);o=t.temperatureField+" "+s;a.innerHTML=h+'<span class="card-module__description--bold"> '+o+"<\/span>";e=e.replace(n.KILOWATTS_VALUE_FIELD,t.kiloWattsField);e=e.replace(n.UNIT_MEASURE_FIELD,t.measurementUnitField);l.innerHTML=c+'<span class="card-module__description--bold"> '+e+"<\/span>";f=f.replace(n.PERCENTAGE_VALUE_FIELD,t.percentageField);f=f.replace(n.TOTAL_VALUE_FIELD,t.totalLoadField);f=f.replace(n.UNIT_MEASURE_FIELD,t.measurementUnitField);v.innerHTML=f},h=function(t){var e=i.getElementsByClassName(n.ERROR)[0],f=i.getElementsByClassName(n.ERROR_MESSAGE)[0];coned.utils.isPatternLab()&&(t.errorMsg="Something went wrong. Please try again by refreshing the page.");r.classList.remove(n.HIDDEN);u.classList.remove(n.HIDDEN);f.innerHTML=t.errorMsg;e.classList.remove(n.HIDDEN);f.focus()},c=function(){f=i.getElementsByClassName(n.LOADING_IMAGE)[0];r=i.getElementsByClassName(n.CARD_TITLE)[0];u=i.getElementsByClassName(n.CARD_TITLE_BORDER)[0]},l=function(){c();o();t=!0};l()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DeepLink=function(){var n={DEEP_LINK_BUTTON_CLASS:"js-coned-deep-link",DEEP_LINK_BUTTONS_ATTRIBUTE:"data-deep-link-target",DEEP_LINK_TARGET_ID:"data-deep-link-id",ACTIVATE_TAB_ON_DEEP_LINK_ID:"data-activate-tab-on-deep-link-id",HEADER_WRAPPER_CLASS:"js-header-wrapper",DEEP_LINK_SCROLLED:"js-deep-link-scrolled",HEADER_LOADED_WRAPPER_CLASS:"js-header-loaded-wrapper",TAB_URL_PARAMETER_NAME:"tab",TAB_CONTAINER:"js-conedtab-section-dashboard",DATA_VALUE:"data-value",TAB_INDEX:"data-tab-index"},t=!1,i=function(i){var u=[],l,a,v,f,o,r,s,b=function(n){var t=coned.utils.getUrlParameters(),i=n.dataset.deepLinkTarget,r=n.dataset.deepLinkAction;i&&(t[coned.constants.DEEP_LINK_URL_PARAM_NAME]=i,r&&(t[coned.constants.DEEP_LINK_URL_PARAM_ACTION]=r),coned.utils.setUrlParameters(t))},k=function(n){var t=0;do t+=n.offsetTop||0,n=n.offsetParent;while(n);return t},h=function(t,i,u){var nt,w,tt;if(!r){r=!0;var a,b,v,e,o=u&&u.currentTarget?u.currentTarget:null,y=o&&o.dataset.deepLinkTab&&o.dataset.deepLinkTabType?{TabId:o.dataset.deepLinkTab,TabType:o.dataset.deepLinkTabType}:null,h=document.querySelector("["+n.ACTIVATE_TAB_ON_DEEP_LINK_ID+'="'+t+'"]');if(y){var f=coned.utils.getUrlParameters(),c=y.TabType,p=y.TabId,g=_.keys(f);g.includes(c)&&f[c]===p||(nt=_.filter(g,function(t){return t.includes(n.TAB_URL_PARAMETER_NAME)&&t.replace(n.TAB_URL_PARAMETER_NAME,"")>c[c.length-1]}),f=_.omit(f,function(n,t){return nt.includes(t)}),f[c]=p,coned.utils.setUrlParameters(f));w=p.split("-");tt=document.querySelector("["+n.DATA_VALUE+'="'+w[0]+'"]['+n.TAB_INDEX+'="'+w[1]+'"]');tt.click()}a=coned.utils.getUrlParameterValue(coned.constants.DEEP_LINK_URL_PARAM_TAB);b=a&&a.split("-");v=a&&document.getElementById(b[0]);e=v?v.querySelector("["+n.DEEP_LINK_TARGET_ID+'="'+t+'"]'):document.querySelector("["+n.DEEP_LINK_TARGET_ID+'="'+t+'"]');e&&getComputedStyle(e).visibility==="visible"?(setTimeout(function(){var n=k(e)-l.offsetHeight;d(e,n)},1e3),h&&(h.dataset.activateTabOnDeepLinkOnlyOnClick?h.dataset.activateTabOnDeepLinkOnlyOnClick&&s&&(h.click(),s=!1):h.click())):r=!1}},d=function(t,u){coned.utils.scrollTo(u,1e3,function(){window.removeEventListener("service-loaded",e);query.fireEvent(t,"deeplink-event");i.classList.contains(n.DEEP_LINK_SCROLLED)||i.classList.add(n.DEEP_LINK_SCROLLED);r=!1});t.setAttribute("tabindex","-1");t.focus()},c=function(n){n.preventDefault();var t=n.currentTarget,i=t.dataset.deepLinkTarget;t&&i&&(s=!0,b(t),h(i,!0,n))},e=function(){if(window.location.search.includes(coned.constants.DEEP_LINK_URL_PARAM_NAME)){var i=coned.utils.getUrlParameterValue(coned.constants.DEEP_LINK_URL_PARAM_NAME),u=coned.utils.getUrlParameterValue(coned.constants.DEEP_LINK_URL_PARAM_TAB),e=u&&u.split("-"),f=u&&document.getElementById(e[0]),t;t=f?f.querySelector("["+n.DEEP_LINK_TARGET_ID+'="'+i+'"]'):document.querySelector("["+n.DEEP_LINK_TARGET_ID+'="'+i+'"]');t&&!r&&(a=t.parentNode,getComputedStyle(t).visibility==="visible"?h(i,!1):(v=new MutationObserver(function(){getComputedStyle(t).visibility==="visible"&&h(i,!1)}),v.observe(a,{attributes:!0,attributeFilter:["style"]})))}},g=function(){o++;f.length===o&&e()},y=function(){p();w();t=!0;f.length?window.addEventListener("multiple-global-lazy-load-event-done",g):window.addEventListener("service-loaded",e);window.addEventListener("service-loaded",nt)},nt=function(){_.each(u,function(n){coned.utils.removeGeneralListeners(n,c)});u=i.getElementsByClassName(n.DEEP_LINK_BUTTON_CLASS);_.each(u,function(n){coned.utils.addGeneralListeners(n,c)})},p=function(){l=document.getElementsByClassName(n.HEADER_WRAPPER_CLASS)[0];u=i.getElementsByClassName(n.DEEP_LINK_BUTTON_CLASS);r=!1;f=document.getElementsByClassName(coned.constants.MULTIPLE_GLOBAL_LAZY_LOAD_ELEMENT);o=0},w=function(){_.each(u,function(n){coned.utils.addGeneralListeners(n,c)});f.length||e();coned.utils.triggerEvent(window,"header-ready")},tt=function(){i.dataset.lazyLoaded&&i.dataset.lazyLoaded==="true"?(p(),w(),t=!0):coned.utils.isPatternLab()?y():window.addEventListener("load",y)};tt()};return i.prototype.isLoaded=function(){return t},i}();coned=coned||{};coned.components=coned.components||{};coned.components.Dropdown=function(){var n={SELECTORS:{BUTTON:"js-dropdown-button",BUTTON_TEXT:"js-dropdown-button-text",CONTENT:"js-dropdown-content",SELECT_MULTIPLE:"js-select-multiple",SELECT_SINGLE:"js-select-single"},ATTRIBUTES:{DATA_COUNT:"data-count",DATA_VALUE:"data-value",SINGLE_SELECTION:"single-selection"}},t=!1,i=function(i){var r,u,f,e,s,a,v,h,c,y,l,p=function(){a&&(i.dataset.count=""+r.count,f.innerHTML=r.count>0?e+"("+r.count+")":e)},w=function(){v&&r.value&&(i.dataset.value=""+r.value,f.innerHTML=r.value.length>0?r.value:e)},b=function(){u.setAttribute(coned.constants.ARIA.EXPANDED,r.open?coned.constants.TRUE:coned.constants.FALSE);s.setAttribute(coned.constants.ARIA.HIDDEN,r.open?coned.constants.FALSE:coned.constants.TRUE)},k=function(n){var t=n.code,f=n.target,e=n.shiftKey,o=t===coned.constants.KEYBOARD_CODE.UP,s=t===coned.constants.KEYBOARD_CODE.DOWN,i=t===coned.constants.KEYBOARD_CODE.TAB,h=t===coned.constants.KEYBOARD_CODE.ESC;r.open&&(i||s||o||h)&&(n.preventDefault(),i&&e||o?coned.utils.handleNextPrevFocus(coned.constants.ORDER.PREV,f,c):(i&&!e||s)&&coned.utils.handleNextPrevFocus(coned.constants.ORDER.NEXT,f,c),h&&(u.focus(),u.click()))},o=function(n){typeof n.open!="undefined"&&(r.open=n.open,b());typeof n.count!="undefined"&&(r.count=n.count,p());typeof n.value!="undefined"&&(r.value=n.value,w());coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,r)},d=function(){o({open:!r.open})},g=function(n){y&&(f.innerHTML=n.detail.value.length>0?n.detail.value:e,o({open:!1}))},nt=function(n){Array.isArray(n.detail.value)?o({count:n.detail.value.length}):o({value:n.detail.value})},tt=function(n){!i.contains(n.target)&&r.open&&o({open:!1})},it=function(){r={open:!1};u=i.getElementsByClassName(n.SELECTORS.BUTTON)[0];f=u.getElementsByClassName(n.SELECTORS.BUTTON_TEXT)[0];e=f.innerHTML;s=i.getElementsByClassName(n.SELECTORS.CONTENT)[0];a=i.hasAttribute(n.ATTRIBUTES.DATA_COUNT);v=i.hasAttribute(n.ATTRIBUTES.DATA_VALUE);h=i.getElementsByClassName(n.SELECTORS.SELECT_MULTIPLE)[0];c=coned.utils.arrayFrom(s.querySelectorAll(coned.constants.FOCUSABLE_ELEMENTS_DROPDOWN_MODAL_QUERY)).sort(coned.utils.arrayFocusSort);y=i.hasAttribute(n.ATTRIBUTES.SINGLE_SELECTION);l=i.getElementsByClassName(n.SELECTORS.SELECT_SINGLE)[0]},rt=function(){i.addEventListener("keydown",k);u.addEventListener("click",d);h&&h.addEventListener(coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,nt);l&&l.addEventListener(coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,g);document.addEventListener("click",tt)},ut=function(){it();rt();coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,r);t=!0};ut()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.EditAccountForm=function(){var n={ACTIVE_CONNECTIONS_CONTAINER:"js-active-connections",ARIA_EXPANDED:"aria-expanded",COLLAPSIBLE_CONTAINER_ITEM_ACTIVE_CLASS:"collapsible-account-item__accordion",EDIT_BUTTON:"js-edit-button",ACCOUNT_ITEM_TITLE_CLASS:"collapsible-account-item__title",GRAY_COLOR_CLASS:"collapsible-account-item__title--gray-color",SELECT_ARROW:"js-coned-select-arrow",FORM_SELECT_MENU:"js-form-select-menu",FORM_SELECT_MENU_EXTRA_CONTENT:"js-form-select-menu-extra-content",CLOSE_BUTTON:"js-close-button",REQUIRED_ATTRIBUTE:"required",CHANGE_EVENT:"change",CLOSE_LABEL:"CLOSE",EDIT_LABEL:"EDIT",KEYUP_EVENT:"keyup",SHARE_OPTION_SELECT:"js-select-share-option",TIMESPAN_SELECT_CLASS:"js-form-date-select",DATE_PICKER_CONTAINER:"js-form-date-container",DATE_PICKER_CLASS:"js-form-date",DATE_PICKER_ACTIVE_CLASS:"coned-input--filled",DATE_PICKER_ERROR_CLASS:"coned-input-message--error",DATE_PICKER_ERROR_MESSAGE_CONTAINER:"coned-field-error-wrapper",HIDDEN_CLASS:"hidden",COLUMN_CLASS:"collapsible-account-item__form-column",ROTATE_CLASS:"collapsible-account-item__accordion-arrow--rotate",DISABLED_ATTRIBUTE:"disabled",CANCEL_BUTTON:"js-decline-submit",SAVE_BUTTON:"js-authorize-submit",SUBMIT_BUTTON_CONTAINER_CLASS:"js-form-button-container",SUBMIT_ANIMATION_CONTAINER_SELECTOR:"js-submit-animation",SUBMIT_ANIMATION_SELECTOR:"js-submit-progress-animation",FORM_SCID_NAME:"ScId",FORM_CLASS_SELECTOR:"js-register-form",FORM_CONTAINER_CLASS:"js-form-container",FORM_SHARE_UNTIL_CLASS:"js-share-until",FORM_SHARE_UNTIL_DEFAULT:"Share until",FORM_SHARE_OPTION_TEXT_CLASS:"js-share-option-text",FORM_SHARE_OPTION_ACTIVE_CLASS:"coned-select--active",FORM_SHARE_DATE_NAME:"sharedate",VISIBILITY_HIDDEN_CLASS:"form__actions--visibility-hidden",ERROR_CLASS:"js-service-error",ERROR_MESSAGE_CLASS:"js-error-message",FORM_INPUT_TIMESPAN_NAME:"timespanSelect",SELECT_VALUE_SHOW_DATE_PICKER:"2",SELECT_VALUE_STOP_SHARING_DATA:"3",BODY_SELECTOR:"js-body",BUTTON_ACTIVE_CONNECTIONS_SELECTOR:"js-button-active-connections",TOAST:"js-toast",SHOW_TOAST_EVENT:"show-toast-event"},t=!1,i=function(i){var nt,o,yt,pt,c,u,tt,it,wt,v,s,rt,bt,kt,h,ut,y,ft,et,l,ot,r,dt,st,p,ht,a,w,gt,ni,f,ct,lt,ti,b,k,d,oi=function(){var n=new Date;n.setDate(n.getDate()+1);r.dataset.minDateDays=n;setTimeout(function(){$(r).datepicker("option","minDate",new Date(n));$(r).datepicker("option","onSelect",function(){$(this).trigger("change");ii()})},1)},si=function(){var t=l.value;t===n.SELECT_VALUE_STOP_SHARING_DATA?et.classList.remove(n.HIDDEN_CLASS):et.classList.add(n.HIDDEN_CLASS)},hi=function(t){t.preventDefault();var i=l.value;i===n.SELECT_VALUE_SHOW_DATE_PICKER?(ot.classList.remove(n.HIDDEN_CLASS),r.setAttribute(n.REQUIRED_ATTRIBUTE,""),e(!1),dataLayer.push({event:"green.button",gbc:"step2.1.2"})):(ot.classList.add(n.HIDDEN_CLASS),r.removeAttribute(n.REQUIRED_ATTRIBUTE),e(!0));si()},ii=function(){var n=$(u).validate().checkForm()&&l.selectedIndex>0;e(n)},ci=function(){setTimeout(function(){pt.removeAttribute(n.ARIA_EXPANDED)},10)},g=function(t){t?(y.classList.add(n.ROTATE_CLASS),ft.classList.add(n.GRAY_COLOR_CLASS),u.classList.remove(n.HIDDEN_CLASS),u.classList.add(n.COLUMN_CLASS),c.ariaExpanded=!0):(y.classList.remove(n.ROTATE_CLASS),ft.classList.remove(n.GRAY_COLOR_CLASS),u.classList.add(n.HIDDEN_CLASS),c.ariaExpanded=!1);ci()},li=function(t){t.preventDefault();var i=!query.hasClass(y,n.ROTATE_CLASS);g(i)},ai=function(n){n.preventDefault();g(!1);c.focus()},vi=function(){var t=l.value;vt();t===n.SELECT_VALUE_STOP_SHARING_DATA?gi():yi()},yi=function(){w.classList.add(n.HIDDEN_CLASS);new coned.components.SubmitAnimation(s,wi,pi,rt,!1,!1)},pi=function(){b&&(vt(),g(!1),ui(),ei(),ri(!0))},ri=function(t){t&&(d=document.activeElement===nt?c:document.activeElement);var i=setInterval(function(){var t=query.hasClass(ut,n.HIDDEN_CLASS);t&&(d.focus(),clearInterval(i))},100)},ui=function(){var t=f.options[f.selectedIndex].value;e(!1);t===n.SELECT_VALUE_SHOW_DATE_PICKER?(h.innerHTML=r.value,ct.innerHTML=n.FORM_SHARE_UNTIL_DEFAULT):(ct.innerHTML=f.options[f.selectedIndex].text,h.innerHTML="")},wi=function(){var t={ScId:query.getFormInputValue(document,n.FORM_SCID_NAME),AuthorizationID:i.dataset.authorizationId,AuthorizationStartDate:i.dataset.authorizationStartDate,Date:coned.utils.localDateToUTC(query.getFormInputValue(i,n.FORM_SHARE_DATE_NAME)),ShareOption:f.value};t=JSON.stringify(t);query.putData(gt,bi,ki,t,!0,null)},bi=function(){s.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS);b=!0;lt=f.value;e(!1);lt===ti?(h.dataset.hasDate="true",a=r.value):(h.dataset.hasDate="false",a="")},ki=function(t){s.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);ni.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;w.classList.remove(n.HIDDEN_CLASS);w.focus();b=!1},di=function(){var n=new Date;n.setDate(n.getDate()+1);r.dataset.minDateDays=n;setTimeout(function(){$(r).datepicker("option","minDate",new Date(n))},1)},gi=function(){it.classList.add(n.HIDDEN_CLASS);new coned.components.SubmitAnimation(s,ur,rr,rt,!1,!1);dataLayer.push({event:"green.button",gbc:"step2.2"})},nr=function(){var t=o.getElementsByClassName(n.FORM_CONTAINER_CLASS).length,i=o.getElementsByClassName(n.FORM_CONTAINER_CLASS+" "+n.HIDDEN_CLASS).length,r=t-i==0;r&&query.addClass(o,n.HIDDEN_CLASS)},tr=function(){for(var r=Array.from(o.parentElement.children),i,u,t=0;t<r.length;t++)if(i=r[t],u=i.getElementsByClassName(n.EDIT_BUTTON)[0],!i.classList.contains(n.HIDDEN_CLASS)){at(u,!0);return}at(yt,!0)},at=function(t,i){for(var u=o.getElementsByClassName(n.FORM_CONTAINER_CLASS),f=0,r=0;r<u.length;r++)if(tt===u[r]){f=r===0?r+1:r;break}d=document.activeElement!==nt||i?t:u[f].getElementsByClassName(n.EDIT_BUTTON)[0];ri(!1)},ir=function(){var t=query.hasClass(o,n.HIDDEN_CLASS);t?tr():at(document.activeElement,!1)},rr=function(){k&&(vt(),g(!1),ui(),query.addClass(tt,n.HIDDEN_CLASS),nr(),ei(),ir())},vt=function(){var t=query.hasClass(p,n.VISIBILITY_HIDDEN_CLASS);t?(query.addClass(v,n.HIDDEN_CLASS),query.removeClass(p,n.VISIBILITY_HIDDEN_CLASS),query.removeClass(ht,n.VISIBILITY_HIDDEN_CLASS)):(query.removeClass(v,n.HIDDEN_CLASS),query.addClass(p,n.VISIBILITY_HIDDEN_CLASS),query.addClass(ht,n.VISIBILITY_HIDDEN_CLASS))},ur=function(){var t={ScId:query.getFormInputValue(document,n.FORM_SCID_NAME),AuthorizationID:i.dataset.authorizationId};t=JSON.stringify(t);query.deleteData(bt,fr,er,t,!0,null)},fr=function(){s.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS);k=!0},er=function(t){wt.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;it.classList.remove(n.HIDDEN_CLASS);s.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);k=!1},e=function(t){t?st.removeAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE):st.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE)},fi=function(n){var t=new Date(n);return t.getMonth()+1+"/"+t.getDate()+"/"+t.getFullYear()},or=function(){if(h.dataset.hasDate==="true"){sr();var t=i.dataset.endDate*1e3,n=fi(t);h.innerHTML=n;a=n;r.value=n}},sr=function(){var n=new Date,t=n.setDate(n.getDate()+1),i=fi(t);r.dataset.minDateDays=i},hr=function(){a===r.value?e(!1):e(!0)},ei=function(){coned.utils.triggerEvent(ut,n.SHOW_TOAST_EVENT)},cr=function(){nt=document.getElementsByClassName(n.BODY_SELECTOR)[0];o=query.selectParentElement(i,n.ACTIVE_CONNECTIONS_CONTAINER);yt=document.getElementsByClassName(n.BUTTON_ACTIVE_CONNECTIONS_SELECTOR)[0];pt=i.getElementsByClassName(n.COLLAPSIBLE_CONTAINER_ITEM_ACTIVE_CLASS)[0];c=i.getElementsByClassName(n.EDIT_BUTTON)[0];y=i.getElementsByClassName(n.SELECT_ARROW)[0];ft=i.getElementsByClassName(n.ACCOUNT_ITEM_TITLE_CLASS)[0];et=i.getElementsByClassName(n.FORM_SELECT_MENU_EXTRA_CONTENT)[0];l=i.getElementsByClassName(n.TIMESPAN_SELECT_CLASS)[0];ot=i.getElementsByClassName(n.DATE_PICKER_CONTAINER)[0];r=i.getElementsByClassName(n.DATE_PICKER_CLASS)[0];a=r.value;dt=i.getElementsByClassName(n.CANCEL_BUTTON)[0];st=i.getElementsByClassName(n.SAVE_BUTTON)[0];ut=document.getElementsByClassName(n.TOAST)[0];u=i.getElementsByClassName(n.FORM_CLASS_SELECTOR)[0];tt=i.getElementsByClassName(n.FORM_CONTAINER_CLASS)[0];kt=u.dataset.id;it=u.getElementsByClassName(n.ERROR_CLASS)[0];wt=i.getElementsByClassName(n.ERROR_MESSAGE_CLASS)[0];v=i.getElementsByClassName(n.SUBMIT_ANIMATION_CONTAINER_SELECTOR)[0];s=v.getElementsByClassName(n.SUBMIT_ANIMATION_SELECTOR)[0];h=i.getElementsByClassName(n.FORM_SHARE_UNTIL_CLASS)[0];p=i.getElementsByClassName(n.SAVE_BUTTON)[0];ht=i.getElementsByClassName(n.CANCEL_BUTTON)[0];bt=i.dataset.removeConnection;rt=function(){};w=u.getElementsByClassName(n.ERROR_CLASS)[0];f=i.getElementsByClassName(n.SHARE_OPTION_SELECT)[0];lt=f.options[f.selectedIndex].value;ti=i.dataset.dateValue;ct=i.getElementsByClassName(n.FORM_SHARE_OPTION_TEXT_CLASS)[0];ni=u.getElementsByClassName(n.ERROR_MESSAGE_CLASS)[0];gt=i.dataset.editConnection;b=!0;k=!0},lr=function(){oi();coned.utils.addGeneralListeners(c,li);coned.utils.addMultipleListeners(l,[n.CHANGE_EVENT],hi);coned.utils.addMultipleListeners(r,[n.CHANGE_EVENT,n.KEYUP_EVENT],ii);coned.utils.addGeneralListeners(dt,ai);e(!1);r.addEventListener(n.CHANGE_EVENT,hr);new coned.components.ValidateForm("."+n.FORM_CLASS_SELECTOR+'[data-id="'+kt+'"]',vi.bind(this));di();or()},ar=function(){cr();lr();t=!0};ar()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.EditPaymentAgreement=function(){var n={HIDDEN_CLASS:"hidden",SAVE_EDIT_FORM_BUTTON:"js-save-edit-payment-agreement",DOWN_PAYMENT_AMOUNT_SPAN:"js-down-payment-amount-text",NUMBER_OF_INSTALLMENTS_SPAN:"js-number-of-installments-text",INSTALLMENTS_AMOUNT_SPAN:"js-installments-amount-text",FINAL_PAYMENT_AMOUNT_SPAN:"js-final-payment-amount-text",TOTAL_PAYMENT_AMOUNT_SPAN:"js-total-payment-amount-text",CLOSE_EDIT_PAYMENT_AGREEMENT_BUTTON:"js-close-edit-payment-agreement",EDIT_PAYMENT_AGREEMENT_POPUP:"js-edit-payment-agreement-popup",POPUP_BUTTONS_MANAGE:"js-popup-buttons-manage",POPUP_INACTIVE_CLASS:"payment-table__popup",POPUP_ACTIVE_CLASS:"payment-table__popup--active",DOWNPAYMENT_INPUT_CLASS:"js-currency-input--downpayment",INSTALLMENTS_INPUT_CLASS:"js-number-input--installments",INSTALLMENT_AMOUNT_INPUT_CLASS:"js-number-input--installment-amount",INSTALLMENT_MAXIMUM_TOOLTIP_CLASS:"js-number-input--installments-maximum-tooltip",INSTALLMENT_MINIMUM_TOOLTIP_CLASS:"js-number-input--installments-minimum-tooltip",HIDDEN_INSTALLMENT_AMOUNT_MINIMUM_CLASS:"js-number-input--installment-amount-minimum",HIDDEN_FINAL_INSTALLMENT_AMOUNT_MINIMUM_CLASS:"js-number-input--final-installment-minimum",POPUP_PAYMENT_DETAILS_VALUE_CLASS:"popup__payment-details--value",POPUP_PAYMENT_DETAILS_VALUE_ERROR_CLASS:"popup__payment-details--value-error",INSTALLMENT_LOWER_RANGE_THREE:"3",INSTALLMENT_LOWER_RANGE_FOUR:"4",PAYMENT_AGREEMENT:"js-payment-agreement",TABLE_DOWN_PAYMENT_SPAN:"js-payment-agreement-down-payment-text",TABLE_DOWN_PAYMENT_AMOUNT:"js-payment-agreement-down-payment",TABLE_INSTALLMENTS_FORMULA_SPAN:"js-payment-agreement-installments-formula",TABLE_NUMBER_OF_INSTALLMENTS_SPAN:"js-payment-agreement-number-installments",TABLE_TOTAL_INSTALLMENTS_AMOUNT:"js-payment-agreement-total-installments",TABLE_FINAL_PAYMENT_SPAN:"js-payment-agreement-final-payment-span",TABLE_FINAL_PAYMENT_AMOUNT:"js-payment-agreement-final-payment-amount",TABLE_AMOUNT_PER_INSTALLMENT_SPAN:"js-payment-agreement-installment-amount-span",TABLE_TOTAL_OUTSTANDING:"js-payment-agreement-total-outstanding",TABLE_DOWN_PAYMENT_DUE_DATE:"js-payment-agreement-down-payment-due-date",TABLE_INSTALLMENTS_DATE_RANGE_SPAN:"js-payment-agreement-installments-date-range-span",TABLE_FINAL_PAYMENT_DATE_SPAN:"js-payment-agreement-final-payment-date-span",PAYMENT_AGREEMENT_ACCEPTED_DOWN_PAYMENT_SPAN:"js-payment-agreement-accepted-down-payment",NUMBER_OF_DECIMALS_IN_AMOUNT:2,OPEN_EDIT_PAYMENT_AGREEMENT_POPUP_BUTTON:"js-open-edit-payment-agreement-popup",PAYMENT_AGREEMENT_SAO_MODIFIED_SELECTOR:"js-payment-agreement-sao-modified-terms",PAYMENT_AGREEMENT_MODIFIED_SELECTOR:"js-payment-agreement-modified-terms-only",PAYMENT_AGREEMENT_NO_MODIFY:"js-pagr-no-modify",VARIABLE_INDEX_ELEMENTS:"js-variable-index",DATE_HIDE_ELEMENTS:"js-date-hide",DATE_SHOW_ELEMENTS:"js-date-show",SCHEDULE_PAYMENT_BUTTON:"js-schedule-a-payment",ACTIVE_DATE:"js-active-date",ATTRIBUTE_INITIAL_NUMBER_INSTALLMENTS:"data-initial-Numberinstallments",CLICK_SAVE_PAYMENT_AGREEMENT_TAG:"click.save.payagmt",ERROR_SAVE_PAYMENT_AGREEMENT_TAG:"error.save.payagmt",SUCCESS_SAVE_PAYMENT_AGREEMENT_TAG:"success.save.payagmt",CANCEL_EDIT_PAYMENT_AGREEMENT_TAG:"cancel.edit.payagmt",SCENARIO_SAO_MODIFIED_CANCEL_POPUP_TAG:"tag.sao.modify.cancel.popup",SCENARIO_SAO_MODIFIED_SAVE_POPUP_TAG:"tag.sao.modify.save",SCENARIO_MODIFIED_CANCEL_POPUP_TAG:"tag.modify.cancel.popup",SCENARIO_MODIFIED_SAVE_POPUP_TAG:"tag.modify.save"},t=!1,i=function(i){var o,l,e,u,a,v,c,w,s,ut,b,h,f,ft,k,d,r,et,ot,st,ht,ct,lt,at,vt,g,y,nt,yt,pt,tt,it,wt,bt,p,rt,kt=function(){var t=f.dataset.totalPaymentAmount&&f.dataset.totalPaymentAmount!==""?parseFloat(f.dataset.totalPaymentAmount.replace(/(\$|,)/g,""))||0:parseFloat(y.innerHTML.replace(/(\$|,)/g,""))||0,i=parseFloat(f.innerHTML.replace(/(\$|,)/g,""))||0,n=parseFloat(c.innerHTML.replace(/(\$|,)/g,""))||0,r=i-n,u=parseInt(w.innerHTML),e=parseFloat(s.innerHTML.replace(/(\$|,)/g,""))||0,o=parseFloat(h.innerHTML.replace(/(\$|,)/g,""))||0;return{DownPaymentAmount:n,NumberOfInstallments:u,AmountPerInstallment:e,InstallmentBase:r,FinalAmount:o,TotalOutstanding:t}},ii=function(){var t=kt(),u,f;_.each(et,function(i){i.className.includes(n.PAYMENT_AGREEMENT_NO_MODIFY)||(i.innerHTML=coned.utils.formatToCurrencyText(t.DownPaymentAmount,n.NUMBER_OF_DECIMALS_IN_AMOUNT))});_.each(bt,function(i){i.className.includes(n.PAYMENT_AGREEMENT_NO_MODIFY)||(i.dataset.amount=t.DownPaymentAmount)});_.each(ot,function(i){i.className.includes(n.PAYMENT_AGREEMENT_NO_MODIFY)||(i.innerHTML=coned.utils.formatToCurrencyText(t.DownPaymentAmount,n.NUMBER_OF_DECIMALS_IN_AMOUNT))});_.each(st,function(i){i.className.includes(n.PAYMENT_AGREEMENT_NO_MODIFY)||(i.innerHTML=coned.utils.formatToCurrencyText(t.AmountPerInstallment,n.NUMBER_OF_DECIMALS_IN_AMOUNT)+" x "+t.NumberOfInstallments)});_.each(ht,function(i){i.className.includes(n.PAYMENT_AGREEMENT_NO_MODIFY)||(i.innerHTML=t.NumberOfInstallments)});_.each(ct,function(i){i.className.includes(n.PAYMENT_AGREEMENT_NO_MODIFY)||(i.innerHTML=coned.utils.formatToCurrencyText(t.AmountPerInstallment*t.NumberOfInstallments,n.NUMBER_OF_DECIMALS_IN_AMOUNT))});_.each(g,function(i){i.className.includes(n.PAYMENT_AGREEMENT_NO_MODIFY)||(i.innerHTML=coned.utils.formatToCurrencyText(t.DownPaymentAmount,n.NUMBER_OF_DECIMALS_IN_AMOUNT))});_.each(at,function(i){i.className.includes(n.PAYMENT_AGREEMENT_NO_MODIFY)||(i.innerHTML=coned.utils.formatToCurrencyText(t.FinalAmount,n.NUMBER_OF_DECIMALS_IN_AMOUNT))});_.each(lt,function(i){i.className.includes(n.PAYMENT_AGREEMENT_NO_MODIFY)||(i.innerHTML=coned.utils.formatToCurrencyText(t.FinalAmount,n.NUMBER_OF_DECIMALS_IN_AMOUNT))});_.each(vt,function(i){i.className.includes(n.PAYMENT_AGREEMENT_NO_MODIFY)||(i.innerHTML=coned.utils.formatToCurrencyText(t.AmountPerInstallment,n.NUMBER_OF_DECIMALS_IN_AMOUNT))});_.each(y,function(i){i.className.includes(n.PAYMENT_AGREEMENT_NO_MODIFY)||(i.innerHTML=coned.utils.formatToCurrencyText(t.TotalOutstanding,n.NUMBER_OF_DECIMALS_IN_AMOUNT))});_.each(pt,function(t,i){var r=t.parentElement;for(t.innerHTML=i+1;r.tagName!=="TR"&&r!==null;)r=r.parentElement;r&&r.classList.remove(n.HIDDEN_CLASS)});var i=new Date(c.dataset.downPaymentDueDate),r="en-us",e=i.toLocaleString(r,{year:"numeric",month:"short",day:"numeric"});_.each(nt,function(t){t.className.includes(n.PAYMENT_AGREEMENT_NO_MODIFY)||(t.innerHTML=e,t.dataset.downPaymentDueDate=c.dataset.downPaymentDueDate)});i.setMonth(i.getMonth()+1);u=i.toLocaleString(r,{month:"short",year:"2-digit"});t.NumberOfInstallments>1&&(i.setMonth(i.getMonth()+t.NumberOfInstallments-1),u+=" - "+i.toLocaleString(r,{month:"short",year:"2-digit"}));_.each(wt,function(t){t.className.includes(n.PAYMENT_AGREEMENT_NO_MODIFY)||(t.innerHTML=u)});f=_.find(nt,function(t){return query.hasClass(t,n.ACTIVE_DATE)});i.setMonth(i.getMonth()+1);i.setDate(f.dataset.installmentPaymentDay);_.each(yt,function(t){t.className.includes(n.PAYMENT_AGREEMENT_NO_MODIFY)||(t.innerHTML=i.toLocaleString(r,{year:"numeric",month:"short",day:"numeric"}),t.classList.remove(n.HIDDEN_CLASS))});it.length&&_.each(it,function(t){t.classList.remove(n.HIDDEN_CLASS)});tt.length&&_.each(tt,function(t){t.classList.add(n.HIDDEN_CLASS)})},ri=function(){var t=kt(),i,r;ui();i=t.DownPaymentAmount;r=t.NumberOfInstallments;_.each(p,function(t){t.dataset.originalNumberinstallments=r;t.dataset.originalDownpayment=coned.utils.formatToCurrencyText(i,n.NUMBER_OF_DECIMALS_IN_AMOUNT)});dt();ii();query.fireEvent(o,"close-popup",{isModified:!0})},dt=function(){o.classList.remove(n.POPUP_ACTIVE_CLASS);o.classList.add(n.POPUP_INACTIVE_CLASS)},ui=function(){rt?dataLayer.push({event:n.SCENARIO_MODIFIED_SAVE_POPUP_TAG}):k?dataLayer.push({event:n.SCENARIO_SAO_MODIFIED_SAVE_POPUP_TAG}):d?dataLayer.push({event:n.SCENARIO_MODIFIED_SAVE_POPUP_TAG}):dataLayer.push({event:n.CLICK_SAVE_PAYMENT_AGREEMENT_TAG})},fi=function(){rt?dataLayer.push({event:n.SCENARIO_MODIFIED_CANCEL_POPUP_TAG}):k?dataLayer.push({event:n.SCENARIO_SAO_MODIFIED_CANCEL_POPUP_TAG}):d?dataLayer.push({event:n.SCENARIO_MODIFIED_CANCEL_POPUP_TAG}):dataLayer.push({event:n.CANCEL_EDIT_PAYMENT_AGREEMENT_TAG})},ei=function(){o=query.selectParentElement(i,n.EDIT_PAYMENT_AGREEMENT_POPUP);l=o.getElementsByClassName(n.CLOSE_EDIT_PAYMENT_AGREEMENT_BUTTON);e=i.getElementsByClassName(n.DOWNPAYMENT_INPUT_CLASS)[0];u=i.getElementsByClassName(n.INSTALLMENTS_INPUT_CLASS)[0];a=i.getElementsByClassName(n.HIDDEN_INSTALLMENT_AMOUNT_MINIMUM_CLASS)[0];v=i.getElementsByClassName(n.HIDDEN_FINAL_INSTALLMENT_AMOUNT_MINIMUM_CLASS)[0];c=i.getElementsByClassName(n.DOWN_PAYMENT_AMOUNT_SPAN)[0];w=i.getElementsByClassName(n.NUMBER_OF_INSTALLMENTS_SPAN)[0];s=i.getElementsByClassName(n.INSTALLMENTS_AMOUNT_SPAN)[0];ut=i.getElementsByClassName(n.INSTALLMENT_MAXIMUM_TOOLTIP_CLASS)[0];b=i.getElementsByClassName(n.INSTALLMENT_MINIMUM_TOOLTIP_CLASS)[0];h=i.getElementsByClassName(n.FINAL_PAYMENT_AMOUNT_SPAN)[0];f=i.getElementsByClassName(n.TOTAL_PAYMENT_AMOUNT_SPAN)[0];ft=i.getElementsByClassName(n.SAVE_EDIT_FORM_BUTTON)[0];r=o.parentElement;et=r.getElementsByClassName(n.TABLE_DOWN_PAYMENT_SPAN);ot=r.getElementsByClassName(n.TABLE_DOWN_PAYMENT_AMOUNT);st=r.getElementsByClassName(n.TABLE_INSTALLMENTS_FORMULA_SPAN);ht=r.getElementsByClassName(n.TABLE_NUMBER_OF_INSTALLMENTS_SPAN);lt=r.getElementsByClassName(n.TABLE_FINAL_PAYMENT_SPAN);at=r.getElementsByClassName(n.TABLE_FINAL_PAYMENT_AMOUNT);ct=r.getElementsByClassName(n.TABLE_TOTAL_INSTALLMENTS_AMOUNT);g=r.getElementsByClassName(n.PAYMENT_AGREEMENT_ACCEPTED_DOWN_PAYMENT_SPAN);vt=r.getElementsByClassName(n.TABLE_AMOUNT_PER_INSTALLMENT_SPAN);y=r.getElementsByClassName(n.TABLE_TOTAL_OUTSTANDING);nt=r.getElementsByClassName(n.TABLE_DOWN_PAYMENT_DUE_DATE);wt=r.getElementsByClassName(n.TABLE_INSTALLMENTS_DATE_RANGE_SPAN);yt=r.getElementsByClassName(n.TABLE_FINAL_PAYMENT_DATE_SPAN);bt=r.getElementsByClassName(n.SCHEDULE_PAYMENT_BUTTON);p=r.getElementsByClassName(n.OPEN_EDIT_PAYMENT_AGREEMENT_POPUP_BUTTON);pt=r.getElementsByClassName(n.VARIABLE_INDEX_ELEMENTS);tt=r.getElementsByClassName(n.DATE_HIDE_ELEMENTS);it=r.getElementsByClassName(n.DATE_SHOW_ELEMENTS);k=query.hasClass(r,n.PAYMENT_AGREEMENT_SAO_MODIFIED_SELECTOR);d=query.hasClass(r,n.PAYMENT_AGREEMENT_MODIFIED_SELECTOR);rt=r.dataset.isCommercial==="true"},oi=function(){for(var n=0;n<l.length;++n)l[n].tagName==="BUTTON"&&(coned.utils.addGeneralListeners(l[n],fi),coned.utils.addGeneralListeners(l[n],function(){dt();query.fireEvent(o,"close-popup")}));u&&e&&(coned.utils.addMultipleListeners(u,["change","keydown","focus","input"],si),coned.utils.addMultipleListeners(e,["change","keyup","input"],hi));coned.utils.addMultipleListeners(i,["change","keyup"],ti);ni();new coned.components.ValidateForm(i,ri,"")},si=function(){ci(u);$(i).valid()&&(w.innerHTML=u.value,c.innerHTML=e.value,gt())},hi=function(){ai(e);ni();$(i).valid()&&(c.innerHTML=e.value,w.innerHTML=u.value,gt())},gt=function(){var l=parseInt(u.value,10)+1,it=parseFloat(a.dataset.paymentMin.replace(/(\$|,)/g,"")),p=parseFloat(v.dataset.paymentMin.replace(/(\$|,)/g,"")),rt=f.dataset.totalPaymentAmount&&f.dataset.totalPaymentAmount!==""?parseFloat(f.dataset.totalPaymentAmount.replace(/(\$|,)/g,""))||0:parseFloat(y.innerHTML.replace(/(\$|,)/g,""))||0,c=parseFloat(e.value.replace(/(\$|,)/g,"")),tt=rt-c,w=i.dataset.installmentLowerRangeCalc,k=i.dataset.minInstallmentLimit,r,d,t,nt=Math.ceil(tt/l*100)/100,ut=(nt*l-tt)*-1,o;r=nt;t=(r+ut)/1;d=c+(l-1)*nt+t;r<it?(s.classList.remove(n.POPUP_PAYMENT_DETAILS_VALUE_CLASS),s.classList.add(n.POPUP_PAYMENT_DETAILS_VALUE_ERROR_CLASS),a.value=!1):(s.classList.remove(n.POPUP_PAYMENT_DETAILS_VALUE_ERROR_CLASS),s.classList.add(n.POPUP_PAYMENT_DETAILS_VALUE_CLASS),a.value=!0);t<p&&t>r+.99?(h.classList.remove(n.POPUP_PAYMENT_DETAILS_VALUE_CLASS),h.classList.add(n.POPUP_PAYMENT_DETAILS_VALUE_ERROR_CLASS),v.value=!1):(h.classList.remove(n.POPUP_PAYMENT_DETAILS_VALUE_ERROR_CLASS),h.classList.add(n.POPUP_PAYMENT_DETAILS_VALUE_CLASS),v.value=!0);p===parseInt(w)?(u.setAttribute("min",w),b.innerHTML=w):t<p?(o=parseInt(k),o=o++,u.setAttribute("min",o.toString()),b.innerHTML=o):(u.setAttribute("min",k),b.innerHTML=k);r&&t&&d&&c&&(s.innerHTML=coned.utils.formatToCurrencyText(r,n.NUMBER_OF_DECIMALS_IN_AMOUNT),h.innerHTML=coned.utils.formatToCurrencyText(t,n.NUMBER_OF_DECIMALS_IN_AMOUNT),f.innerHTML=coned.utils.formatToCurrencyText(d,n.NUMBER_OF_DECIMALS_IN_AMOUNT),g.innerHTML=coned.utils.formatToCurrencyText(c,n.NUMBER_OF_DECIMALS_IN_AMOUNT));ti()},ni=function(){p[0].hasAttribute(n.ATTRIBUTE_INITIAL_NUMBER_INSTALLMENTS)||(p[0].dataset.initialNumberinstallments=p[0].dataset.originalNumberinstallments);var s=f.dataset.totalPaymentAmount&&f.dataset.totalPaymentAmount!==""?parseFloat(f.dataset.totalPaymentAmount.replace(/(\$|,)/g,""))||0:parseFloat(y.innerHTML.replace(/(\$|,)/g,""))||0,h=parseFloat(e.value.replace(/(\$|,)/g,"")),c=s-h,t,r=i.dataset.maxInstallmentLimit,l=i.dataset.installmentLowerRangeCalc,o=coned.utils.roundDown(c/l);t=o>r?r:o;u.setAttribute("max",t);u.setAttribute("data-limit-max",t);ut.innerHTML=t},ti=function(){var t=coned.components.ValidateForm.isFormValid(i,"",n.FORM_IGNORE_VALIDATION)&&v.value==="true"&&a.value==="true";ft.disabled=!t},ci=function(n){var t=n.value.replace(/\D/g,"");n.value=t},li=function(n){return n.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},ai=function(t){var i=t.value.replace(/[^\d.-]/g,""),u="",r="",f;i=i.replace(/[-\s]+/g,"");i=i.split(".",2);f=parseInt(i[0])*1;typeof i[1]!="undefined"&&(i[1].length>2?(r=i[1][0],typeof i[1][1]!="undefined"&&(r+=i[1][1])):r=i[1],u="."+r);i[0].length>0?t.value="$"+li(f)+u:(t.value="",query.removeClass(t,n.INPUT_FILLED_CLASS))},vi=function(){ei();oi();t=!0};vi()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.EditProfile=function(){var n={EDIT_FIELD:"js-edit-profile-field",EDIT_FIELD_ACTIVE:"edit-profile__field--active",EDIT_CTA:"js-edit-profile-cta",EDIT_MAIN_CTA:"js-edit-main-cta",EDIT_PASSWORD_CTA:"js-edit-password-cta",EDIT_NOTIFICATION:"coned-checkbox-switch",SAVE_CTA:"js-save-profile-cta",SEND_CODE_CTA:"js-send-code-profile-cta",CANCEL_CTA:"js-cancel-profile-cta",STEP2_CANCEL_CTA:"js-step2-cancel-profile-cta",CANCEL_SEND_CODE_CLASS:"edit-profile__edit-link--cancel-send-code",FIELD_DESCRIPTION:"js-field-description",FIELD_INPUT_CONTAINER:"edit-profile__input",FIELD_LAST_NAME_INPUT:"js-last-name",FIELD_INPUT:"js-item-validate",PASSWORD_INPUT:"js-password-input",NEW_PASSWORD_INPUT:"js-new-password",CURRENT_PASSWORD_INPUT:"js-current-password",SELECT_TYPE:"js-edit-select-type",EDIT_PROFILE_FORM:".js-edit-profile-form",EMAIL_LIST_ITEM:"js-email-list-item",EDIT_EMAILS_CTAS:"js-edit-emails-cta",HIDDEN_CLASS:"hidden",FILLED_CLASS:"coned-input--filled",EMPTY_FIELD_CLASS:"edit-profile__description--empty",NOTIFICATION_MOBILE:"js-notification-phone",DROPDOWN_OPTIONS:"js-select-option",DROPDOWN_LABEL_SELECTOR:"js-coned-select-label",ACTIVE_DROPDOWN:"coned-select--active",ACTIVE_LABEL_DROPDOWN:"coned-select__label--active",SECURITY_ANSWER_SELECTOR:"js-security-answer",EDIT_PROFILE_SELECT:"js-edit-profile-select",FORM_IGNORE_VALIDATION:"js-validate-ignore",USERNAME_PHONE_GROUP:"js-username-phone-group",PASSWORD_FIELD_GROUP:"js-password-group",MFA_GROUP:"js-mfa-group",LANGUAGE_GROUP:"js-language-group",LANGUAGE_SELECT:"js-language-dropdown-selector",EMAIL_INPUT:"js-email-input",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",VERIFICATION_METHOD:"js-method-container",FORM_LOADING:"js-form-loading",FORM_LOADING_HIDDEN:"form-loading--hidden",NO_PHONE_ERROR:"js-no-phone-error",MOBILE_PHONE_TEXT:"js-mobile-phone-text",MOBILE_PHONE_INPUT:"js-input-phone-selector",VERIFICATION_SELECT:"js-step-verification-select",VERIFICATION_TEXT:"js-step-verification-text",VERIFICATION_PHONE:"js-phone-verification",VERIFICATION_PHONE_PARAGRAPH:"js-phone-verification-paragraph",VERIFICATION_CODE_SECTION:"js-send-code-section",VERIFICATION_TRY_AGAIN:"js-send-code-try-again",VERIFICATION_CODE_INPUT:"js-send-code-input",VERIFICATION_OPTION_QUESTION:"question",SECURITY_QUESTION_CONTAINER:"js-question-container",SELECT_CLASS_SELECTOR:"js-coned-select",PASSWORD_VALIDATION_PARAGRAPH:"register__validation-paragraph",PASSWORD_VALIDATION_ERROR:"register__validation--error",EDIT_USERNAME:"userName",EDIT_FIRST_NAME:"firstName",EDIT_LAST_NAME:"lastName",EDIT_MOBILE_PHONE:"mfaMobilePhone",EDIT_PREFERRED_NAME:"preferredName",EDIT_LANGUAGE:"profileLanguage",EDIT_CONFIRM_PASSWORD:"confirmPassword",EDIT_QUESTION:"securityQuestion",EDIT_ANSWER:"securityAnswer",EDIT_VERIFICATON_BY:"verificationOption",EDIT_VERIFICATION_CODE:"verificationCode",EDIT_PHONE_VERIFICATION_CODE:"phoneVerificationCode",EDIT_SCID:"ScId",EDIT_USER:"userId",EDIT_USER_SCID:"userScId",EDIT_PERSONAL_SCID:"personalScId",EDIT_CURRENT_PASSWORD:"profileCurrentPassword",EDIT_NEW_PASSWORD:"profileNewPassword",EDIT_NOTIFICATIONS_SCID:"notificationsScId",DOWNLOAD_ACCOUNTS_SCID:"downloadAccountsScId",DOWNLOAD_ACCOUNTS_CLASS:"js-download-accounts-list",DOWNLOAD_ACCOUNTS_SECTION_CLASS:"js-download-accounts-section",DOWNLOAD_ACCOUNTS_POPUP_ERROR_CLASS:"js-download-accounts-error-popup"},t=!1,i=function(i){var ht,ct,lt,at,vt,yt,nt,pt,wt,u,r,k,bt,a,kt,v,tt,h,dt,y,e,gt,ni,f,o,c,it,d,p,ci,g,s,ut,ft,ti,ii,rt,et,ri,w,b,l,li=function(){var n=s.options[s.selectedIndex].value;g.dataset.channel=n.toUpperCase()},ai=function(){ni.classList.add(n.HIDDEN_CLASS)},vi=function(){function u(i){i.preventDefault();var r=this.parentNode,u=r.getElementsByClassName(n.EDIT_EMAILS_CTAS)[0],f=r.getElementsByClassName(n.CANCEL_CTA)[0],e=query.hasClass(this,n.SAVE_CTA);e?(u.classList.add(n.HIDDEN_CLASS),f.classList.remove(n.HIDDEN_CLASS),_.each(t,function(t){t.classList.remove(n.HIDDEN_CLASS)})):(u.classList.remove(n.HIDDEN_CLASS),f.classList.add(n.HIDDEN_CLASS),_.each(t,function(t,i){i>=3&&t.classList.add(n.HIDDEN_CLASS)}))}var t=i.getElementsByClassName(n.EMAIL_LIST_ITEM),r=i.getElementsByClassName(n.EDIT_EMAILS_CTAS);_.each(r,function(n){coned.utils.addGeneralListeners(n,u)});_.each(t,function(t,i){i<=2&&t.classList.remove(n.HIDDEN_CLASS)})},ui=function(t){var i=t.parentElement.getElementsByClassName(n.DROPDOWN_LABEL_SELECTOR)[0];i.removeAttribute("style");t.removeAttribute("style");t.selectedIndex=0;t.classList.remove(n.ACTIVE_DROPDOWN)},yi=function(){_.each(gt,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(kt,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(bt,function(t){t.classList.remove(n.HIDDEN_CLASS)});_.each(ct,function(t){t.classList.remove(n.EDIT_FIELD_ACTIVE)});_.each(lt,function(t){t.classList.remove(n.HIDDEN_CLASS)});_.each(at,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(rt,function(t){t.classList.add(n.HIDDEN_CLASS);d.classList.add(n.HIDDEN_CLASS)});v.classList.add(n.HIDDEN_CLASS);tt.classList.add(n.HIDDEN_CLASS);h.classList.add(n.HIDDEN_CLASS)},pi=function(t){var rt,g,p;t.preventDefault();r=this.parentNode;u=r.getElementsByClassName(n.FIELD_DESCRIPTION)[0];f=r.getElementsByClassName(n.FIELD_LAST_NAME_INPUT)[0];k=r.getElementsByClassName(n.EDIT_CTA)[0];a=r.getElementsByClassName(n.SAVE_CTA)[0];e=r.getElementsByClassName(n.CANCEL_CTA)[0];o=r.getElementsByClassName(n.FIELD_INPUT_CONTAINER)[0];c=r.getElementsByClassName(n.FIELD_INPUT)[0];l=$(n.EDIT_PROFILE_FORM).validate();var nt=r.getElementsByClassName(n.FIELD_INPUT),ut=query.hasClass(this,n.CANCEL_CTA),s=query.hasClass(this,n.SAVE_CTA),w=query.hasClass(this,n.SEND_CODE_CTA),i=query.hasClass(r,n.SELECT_TYPE),h=query.hasClass(r,n.PASSWORD_FIELD_GROUP),ft=query.hasClass(r,n.VERIFICATION_PHONE),v,tt,y=[];if(i?(it=r.getElementsByClassName(n.EDIT_PROFILE_SELECT)[0],b=it.selectedIndex>=0?it.options[it.selectedIndex].text:""):(s||h||w||(c.value=u.dataset.value,c.classList.add(n.FILLED_CLASS)),b=c.value),f===undefined||s||(f.value=u.dataset.lastName,f.classList.add(n.FILLED_CLASS)),ut&&!s?fi(i,ft):(rt=query.hasClass(t.target,n.EDIT_MAIN_CTA),wi(i,rt)),h&&(_.each(nt,function(n){v=l.element(n);tt=n.dataset.valid}),l.resetForm()),query.hasClass(d,n.HIDDEN_CLASS)||y.push(d),s||w){if(_.each(nt,function(n){v=l.element(n);v||y.push(n)}),y<=0&&w){if(!i&&c.value===u.dataset.value)return;bi();return}if(y<=0&&!h){if(g=!1,f!==undefined&&f.value!==u.dataset.lastName&&(g=!0),!i&&c.value===u.dataset.value&&!g)return;ei()}else if(h&&v&&tt==="true")for(ei(),p=0;p<et.length;p++)et[p].classList.add(n.PASSWORD_VALIDATION_ERROR)}},wi=function(t,i){k.classList.add(n.HIDDEN_CLASS);r.classList.add(n.EDIT_FIELD_ACTIVE);u.classList.add(n.HIDDEN_CLASS);a.classList.remove(n.HIDDEN_CLASS);e.classList.remove(n.HIDDEN_CLASS);o.classList.remove(n.HIDDEN_CLASS);i&&e.focus();query.hasClass(r,n.VERIFICATION_PHONE)&&(query.hasClass(h,n.HIDDEN_CLASS)?(e.classList.add(n.CANCEL_SEND_CODE_CLASS),a.classList.add(n.HIDDEN_CLASS),v.classList.remove(n.HIDDEN_CLASS),tt.classList.remove(n.HIDDEN_CLASS)):(o.classList.add(n.HIDDEN_CLASS),h.classList.remove(n.HIDDEN_CLASS)));t&&(wt.value=pt.dataset.value)},fi=function(t,i){var f=o.getElementsByClassName(n.FIELD_INPUT),s=o.getElementsByClassName(n.SELECT_CLASS_SELECTOR);e.classList.add(n.HIDDEN_CLASS);k.classList.remove(n.HIDDEN_CLASS);k&&k.focus();r.classList.remove(n.EDIT_FIELD_ACTIVE);u.classList.remove(n.HIDDEN_CLASS);a.classList.add(n.HIDDEN_CLASS);o.classList.add(n.HIDDEN_CLASS);l.resetForm();i&&(e.classList.remove(n.CANCEL_SEND_CODE_CLASS),v.classList.add(n.HIDDEN_CLASS),tt.classList.add(n.HIDDEN_CLASS),h.classList.add(n.HIDDEN_CLASS),y.classList.remove(n.FIELD_INPUT));t&&(d.classList.add(n.HIDDEN_CLASS),_.each(rt,function(t){t.classList.add(n.HIDDEN_CLASS)}),_.each(s,function(n){ui(n)}));_.each(f,function(t){query.hasClass(t,n.SELECT_CLASS_SELECTOR)||(t.value="")});st()},bi=function(){var u=r.dataset.sendCodeService,f=r.dataset.resetCurrentMfa?r.dataset.resetCurrentMfa:null,t;st();t={ScId:query.getFormInputValue(i,n.EDIT_SCID),UserId:query.getFormInputValue(i,n.EDIT_USER),MobilePhoneNumber:query.getFormInputValue(i,n.EDIT_MOBILE_PHONE),StepVerification:r.dataset.stepVerification,ResetCurrentMfaFactor:f};t=JSON.stringify(t);query.postData(u,ki,si,t,!0,nt)},ki=function(t){i.dataset.factorId=t.FactorId;e.classList.remove(n.CANCEL_SEND_CODE_CLASS);a.classList.remove(n.HIDDEN_CLASS);v.classList.add(n.HIDDEN_CLASS);o.classList.add(n.HIDDEN_CLASS);h.classList.remove(n.HIDDEN_CLASS);y.classList.add(n.FIELD_INPUT);y.classList.remove(n.FILLED_CLASS);y.value="";l.resetForm()},di=function(t){t.preventDefault();e.classList.add(n.CANCEL_SEND_CODE_CLASS);a.classList.add(n.HIDDEN_CLASS);v.classList.remove(n.HIDDEN_CLASS);o.classList.remove(n.HIDDEN_CLASS);h.classList.add(n.HIDDEN_CLASS);y.classList.remove(n.FIELD_INPUT);l.resetForm()},ei=function(){var e=r.dataset.service,t,f,u;st();query.hasClass(r,n.USERNAME_PHONE_GROUP)?(oi(),t={ScId:query.getFormInputValue(i,n.EDIT_SCID),UserScId:query.getFormInputValue(i,n.EDIT_USER_SCID),PersonalScId:query.getFormInputValue(i,n.EDIT_PERSONAL_SCID),Login:query.getFormInputValue(i,n.EDIT_USERNAME),FirstName:query.getFormInputValue(i,n.EDIT_FIRST_NAME),LastName:query.getFormInputValue(i,n.EDIT_LAST_NAME),MobilePhone:query.getFormInputValue(i,n.EDIT_MOBILE_PHONE),DisplayName:query.getFormInputValue(i,n.EDIT_PREFERRED_NAME)}):query.hasClass(r,n.LANGUAGE_GROUP)?t={ScId:query.getFormInputValue(i,n.EDIT_SCID),NotificationsScId:query.getFormInputValue(i,n.EDIT_NOTIFICATIONS_SCID),PersonalScId:query.getFormInputValue(i,n.EDIT_PERSONAL_SCID),PreferenceId:g.dataset.preference,ChannelName:g.dataset.channel,Value:query.getFormInputValue(i,n.EDIT_LANGUAGE)}:query.hasClass(r,n.MFA_GROUP)?(f=p.options[p.selectedIndex].value,u=i.dataset.factorId?i.dataset.factorId:"",t={ScId:query.getFormInputValue(i,n.EDIT_SCID),UserScId:query.getFormInputValue(i,n.EDIT_USER_SCID),FactorId:u,CurrentPassword:query.getFormInputValue(i,n.EDIT_CONFIRM_PASSWORD),MobilePhoneNumber:query.getFormInputValue(i,n.EDIT_MOBILE_PHONE),SecurityQuestion:query.getFormInputValue(i,n.EDIT_QUESTION),SecurityQuestionValue:ut.options[ut.selectedIndex].text,SecurityAnswer:query.getFormInputValue(i,n.EDIT_ANSWER),StepVerification:query.getFormInputValue(i,n.EDIT_VERIFICATON_BY),SecurityCode:query.getFormInputValue(i,n.EDIT_VERIFICATION_CODE)},f!=n.VERIFICATION_OPTION_QUESTION&&(t.SecurityQuestionValue=null,t.SecurityQuestion=null,t.SecurityQuestionText=null,t.SecurityAnswer=null)):query.hasClass(r,n.VERIFICATION_PHONE)?(u=i.dataset.factorId?i.dataset.factorId:"",oi(),t={ScId:query.getFormInputValue(i,n.EDIT_SCID),UserScId:query.getFormInputValue(i,n.EDIT_USER_SCID),PersonalScId:query.getFormInputValue(i,n.EDIT_PERSONAL_SCID),Login:query.getFormInputValue(i,n.EDIT_USERNAME),FirstName:query.getFormInputValue(i,n.EDIT_FIRST_NAME),LastName:query.getFormInputValue(i,n.EDIT_LAST_NAME),MobilePhone:query.getFormInputValue(i,n.EDIT_MOBILE_PHONE),DisplayName:query.getFormInputValue(i,n.EDIT_PREFERRED_NAME),FactorId:u,CurrentPassword:query.getFormInputValue(i,n.EDIT_CONFIRM_PASSWORD),MobilePhoneNumber:query.getFormInputValue(i,n.EDIT_MOBILE_PHONE),SecurityQuestion:null,SecurityQuestionValue:null,SecurityAnswer:null,StepVerification:r.dataset.stepVerification,SecurityCode:query.getFormInputValue(i,n.EDIT_PHONE_VERIFICATION_CODE)}):query.hasClass(r,n.PASSWORD_FIELD_GROUP)&&(t={ScId:query.getFormInputValue(i,n.EDIT_SCID),UserScId:query.getFormInputValue(i,n.EDIT_USER_SCID),CurrentPassword:query.getFormInputValue(i,n.EDIT_CURRENT_PASSWORD),NewPassword:query.getFormInputValue(i,n.EDIT_NEW_PASSWORD)});t=JSON.stringify(t);query.postData(e,gi,si,t,!0,nt)},oi=function(){for(var e=i.getElementsByClassName(n.USERNAME_PHONE_GROUP),t=0;t<e.length;t++){var r=e[t],u=r.getElementsByClassName(n.FIELD_INPUT)[0],f=r.getElementsByClassName(n.FIELD_LAST_NAME_INPUT)[0],o=r.getElementsByClassName(n.FIELD_DESCRIPTION)[0];u&&u.value===""&&!query.hasClass(r,n.EDIT_FIELD_ACTIVE)&&(u.value=o.dataset.value);f!==undefined&&f.value===""&&(f.value=o.dataset.lastName)}},gi=function(){if(yi(),s&&s.value!=="default"){var t=s.value,i=g.dataset.urlStructure.replace("{{LANGUAGE}}",t);return window.location.href=i,!1}(query.hasClass(u,n.MOBILE_PHONE_TEXT)||query.hasClass(u,n.VERIFICATION_TEXT))&&window.location.reload();b!==""?(u.innerHTML=b,u.classList.remove(n.EMPTY_FIELD_CLASS)):u.dataset.placeholder!==undefined&&(u.innerHTML=u.dataset.placeholder,u.classList.add(n.EMPTY_FIELD_CLASS));u.dataset.value=b;f!==undefined&&(u.innerHTML+=" "+f.value,u.dataset.lastName=f.value);query.hasClass(c,n.CURRENT_PASSWORD_INPUT)&&(ii.value="",ti.value="",u.innerHTML="••••••");_.each(rt,function(t){t.classList.add(n.HIDDEN_CLASS)});fi();ui(p)},si=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.DEFAULT_SERVICE_ERROR,ot,ot,!0):ot(n)},ot=function(t){var i=query.hasClass(r,n.EDIT_NOTIFICATION);r=i?r.parentNode.parentNode:r;i&&(ci.checked=!1);var f=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE,u=r.getElementsByClassName(n.SERVICE_ERROR)[0],e=r.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];u.classList.remove(n.HIDDEN_CLASS);e.innerHTML=f;u.focus()},st=function(){_.each(yt,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(vt,function(n){n.innerHTML=""})},nr=function(t){t.stopPropagation();t.preventDefault();w&&w.classList.add(n.HIDDEN_CLASS);var r=i.getElementsByClassName(n.DOWNLOAD_ACCOUNTS_SECTION_CLASS)[0],u=r.dataset.serviceUrl,f={ScId:query.getFormInputValue(i,n.DOWNLOAD_ACCOUNTS_SCID)};query.getData(u,tr,hi,f,nt)},tr=function(n){coned.utils.isPatternLab()?window.location.href="https://file-examples.com/wp-content/uploads/2017/02/file_example_XLS_10.xls":n&&n.link&&n.link!==""?window.location.href=n.link:hi()},hi=function(){w&&w.classList.remove(n.HIDDEN_CLASS);w.focus()},ir=function(){ht=i.getElementsByClassName(n.EDIT_CTA);pt=i.getElementsByClassName(n.MOBILE_PHONE_TEXT)[0];wt=i.getElementsByClassName(n.MOBILE_PHONE_INPUT)[0];yt=i.getElementsByClassName(n.SERVICE_ERROR);vt=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE);ft=i.getElementsByClassName(n.SECURITY_QUESTION_CONTAINER)[0];ut=ft&&ft.getElementsByClassName(n.SELECT_CLASS_SELECTOR)[0];nt=i.getElementsByClassName(n.FORM_LOADING)[0];d=i.getElementsByClassName(n.NO_PHONE_ERROR)[0];p=i.getElementsByClassName(n.VERIFICATION_SELECT)[0];gt=i.getElementsByClassName(n.CANCEL_CTA);ni=i.getElementsByClassName(n.STEP2_CANCEL_CTA)[0];bt=i.getElementsByClassName(n.EDIT_MAIN_CTA);kt=i.getElementsByClassName(n.SAVE_CTA);v=i.getElementsByClassName(n.SEND_CODE_CTA)[0];tt=i.getElementsByClassName(n.VERIFICATION_PHONE_PARAGRAPH)[0];h=i.getElementsByClassName(n.VERIFICATION_CODE_SECTION)[0];dt=i.getElementsByClassName(n.VERIFICATION_TRY_AGAIN)[0];y=i.getElementsByClassName(n.VERIFICATION_CODE_INPUT)[0];ct=i.getElementsByClassName(n.EDIT_FIELD);lt=i.getElementsByClassName(n.FIELD_DESCRIPTION);at=i.getElementsByClassName(n.FIELD_INPUT_CONTAINER);g=i.getElementsByClassName(n.LANGUAGE_GROUP)[0];s=i.getElementsByClassName(n.LANGUAGE_SELECT)[0];ii=i.getElementsByClassName(n.CURRENT_PASSWORD_INPUT)[0];ti=i.getElementsByClassName(n.NEW_PASSWORD_INPUT)[0];rt=i.getElementsByClassName(n.VERIFICATION_METHOD);et=i.getElementsByClassName(n.PASSWORD_VALIDATION_PARAGRAPH);ri=i.getElementsByClassName(n.DOWNLOAD_ACCOUNTS_CLASS);w=i.getElementsByClassName(n.DOWNLOAD_ACCOUNTS_POPUP_ERROR_CLASS)[0]},rr=function(){_.each(ht,function(n){coned.utils.addGeneralListeners(n,pi)});s&&s.addEventListener("change",li);p&&p.addEventListener("change",ai);vi();new coned.components.ValidateForm(n.EDIT_PROFILE_FORM,"",n.FORM_IGNORE_VALIDATION);coned.utils.addGeneralListeners(dt,di);_.each(ri,function(n){coned.utils.addGeneralListeners(n,nr)})},ur=function(){ir();rr();t=!0};ur()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.EnergyAffordableProgramApplication=function(){var n={ENROLLED_PROGRAM:"js-enrolled-program",NOT_ENROLLED_PROGRAM:"js-not-enrolled-program",ENROLLED_RADIO:"js-enrolled-radio",ENROLLED_SELECT:"js-enrolled-program-select",SUPPORTING_DOCUMENTS:"js-supporting-documents",SUPPORTING_DOCUMENTS_RADIO:"js-supporting-documents-radio",SUPPORTING_DOCUMENTS_INPUT:"js-coned-inputfile",ADD_ACCOUNT_SITECORE_ID:"ScId",ADDRESS_DROPDOWN:"js-address-dropdown",ADDRESS_DROPDOWN_CONTAIN:"js-dropdown-item-contain",ADDRESS_DROPDOWN_ITEMS:"js-dropdown-item",ADDRESS_DROPDOWN_ELIGIBILITY_ERROR_MSG:"js-error-message",ADDRESS_DROPDOWN_ELIGIBILITY_ERROR:"js-eligibility-error",DROPDOWN_BUTTON:"js-dropdown-button-contain",CONTACT_NAME:"js-contact-name",CONTACT_PHONE:"js-contact-phone",CONTACT_STREET:"js-contact-street",CONTACT_CITY:"js-contact-city",CONTACT_STATE:"js-contact-state",CONTACT_ZIPCODE:"js-contact-zipcode",CONTACT_ACCOUNT_NUMBER_INPUT:"contactAccountNumber",CONTACT_NAME_INPUT:"contactName",CONTACT_PHONE_INPUT:"contactPhone",CONTACT_STREET_INPUT:"contactStreet",CONTACT_CITY_INPUT:"contactCity",CONTACT_STATE_INPUT:"contactState",CONTACT_ZIPCODE_INPUT:"contactZipcode",SIGNATURE_DATE:"js-signature-date",BQP_NAME:"js-bqp-name",BQP_SIGNATURE_CONTAINER:"js-bqp-signature-container",BQP_SIGNATURE_DATE:"js-bqp-signature-date",BQP_SIGNATURE:"js-bqp-signature",BQP_NAME_INPUT:"energyAffordableProgramApplicationBQPName",BQP_SIGNATURE_INPUT:"energyAffordableProgramApplicationBQPSignature",DROP_FILE_CLASS:"js-coned-inputfile-drag",SUBMIT_BUTTON:"js-submit-button",UPLOAD_FILE_LIST:"js-file-list",UPLOAD_FILE_INPUT:"js-file-upload-input",ERROR_UPLOAD_FILE_INPUT:"coned-field-error-wrapper",YES:"yes",NO:"no",HIDDEN:"hidden",EMPTY_STRING:"",ARIA_REQUIRED:"aria-required",REQUIRED_FIELD:"required",FORM_LOADING:"js-form-loading",TAG_ENROLLED_PROGRAM_RADIO:"Low Income - Step 2 Government assistance program",TAG_ENROLLED_PROGRAM_SELECT:"Low Income - Step 2.1 Government assistance program",TAG_ADDRESS_DROPDOWN_SELECTION:"Low Income - Step 1 Service Address Selection",TAG_ATTACHED_DOCUMENTATION:"Low Income – Step 3. Attach file",TAG_ERROR_ATTACHED_DOCUMENTATION:"Low Income – Step 3 Error/submit with no attachment"},t=!1,i=function(i){var c,v,b,u,k,s,d,f,y,g,nt,l,r,e,tt,it,p,a,rt,o,h,ft=function(t){var r=query.getFormInputValue(i,t.target.name);r===n.YES?(v.classList.add(n.HIDDEN),c.classList.remove(n.HIDDEN),u.setAttribute(n.REQUIRED_FIELD,n.EMPTY_STRING),u.setAttribute(n.ARIA_REQUIRED,"true"),dataLayer.push({event:n.TAG_ENROLLED_PROGRAM_RADIO,optionSelected:n.YES})):(c.classList.add(n.HIDDEN),v.classList.remove(n.HIDDEN),u.removeAttribute(n.ARIA_REQUIRED),u.removeAttribute(n.REQUIRED_FIELD),dataLayer.push({event:n.TAG_ENROLLED_PROGRAM_RADIO,optionSelected:n.NO}))},et=function(){c.classList.add(n.HIDDEN);u.removeAttribute(n.ARIA_REQUIRED);u.removeAttribute(n.REQUIRED_FIELD);l.classList.add(n.HIDDEN);r.removeAttribute(n.REQUIRED_FIELD);r.removeAttribute(n.ARIA_REQUIRED);e.removeAttribute(n.REQUIRED_FIELD);e.removeAttribute(n.ARIA_REQUIRED)},ut=function(t){var r=t.currentTarget.getElementsByClassName(n.ADDRESS_DROPDOWN_CONTAIN)[0],f,u,e,o,s,h;query.setFormTextInputValue(i,n.CONTACT_ACCOUNT_NUMBER_INPUT,r.dataset.account);f=i.getElementsByClassName(n.CONTACT_NAME)[0];f.innerHTML=r.dataset.name;query.setFormTextInputValue(i,n.CONTACT_NAME_INPUT,r.dataset.name);u=i.getElementsByClassName(n.CONTACT_PHONE)[0];r.dataset.phone?(u.innerHTML=r.dataset.phone,query.setFormTextInputValue(i,n.CONTACT_PHONE_INPUT,r.dataset.phone),u.classList.remove(n.HIDDEN)):(u.innerHTML=n.EMPTY_STRING,u.classList.add(n.HIDDEN),query.setFormTextInputValue(i,n.CONTACT_PHONE_INPUT,n.EMPTY_STRING));e=i.getElementsByClassName(n.CONTACT_STREET)[0];e.innerHTML=r.dataset.street+", "+r.dataset.address2;query.setFormTextInputValue(i,n.CONTACT_STREET_INPUT,r.dataset.street+", "+r.dataset.address2);o=i.getElementsByClassName(n.CONTACT_CITY)[0];o.innerHTML=r.dataset.city;query.setFormTextInputValue(i,n.CONTACT_CITY_INPUT,r.dataset.city);s=i.getElementsByClassName(n.CONTACT_STATE)[0];s.innerHTML=r.dataset.state;query.setFormTextInputValue(i,n.CONTACT_STATE_INPUT,r.dataset.state);h=i.getElementsByClassName(n.CONTACT_ZIPCODE)[0];h.innerHTML=r.dataset.zipcode;query.setFormTextInputValue(i,n.CONTACT_ZIPCODE_INPUT,r.dataset.zipcode);dataLayer.push({event:n.TAG_ADDRESS_DROPDOWN_SELECTION,optionSelected:null})},ot=function(n){var t=n.keyCode;t==coned.constants.KEY_CODE.ENTER&&ut(n)},st=function(){var t=query.getFormTextInputValue(i,n.BQP_NAME_INPUT);t!==n.EMPTY_STRING?(l.classList.remove(n.HIDDEN),r.setAttribute(n.REQUIRED_FIELD,n.EMPTY_STRING),r.setAttribute(n.ARIA_REQUIRED,"true"),e.setAttribute(n.REQUIRED_FIELD,n.EMPTY_STRING),e.setAttribute(n.ARIA_REQUIRED,"true")):(l.classList.add(n.HIDDEN),query.setFormTextInputValue(i,n.BQP_SIGNATURE_INPUT,n.EMPTY_STRING),r.removeAttribute(n.REQUIRED_FIELD),r.removeAttribute(n.ARIA_REQUIRED),r.classList.remove(coned.constants.INPUT_FILLED_CLASS),r.classList.remove(n.VALID_CLASS),r.classList.remove(coned.constants.INPUT_ERROR_CLASS),e.removeAttribute(n.REQUIRED_FIELD),e.removeAttribute(n.ARIA_REQUIRED))},ht=function(){h=p.hasChildNodes();h&&dataLayer.push({event:n.TAG_ATTACHED_DOCUMENTATION})},ct=function(){setTimeout(function(){h=p.hasChildNodes();h||dataLayer.push({event:n.TAG_ERROR_ATTACHED_DOCUMENTATION})},500)},lt=function(n){o?ct():(n.preventDefault(),query.scrollToElement(i,y),f.focus())},at=function(t){var u=k.dataset.eligibleAccountService,f=i.dataset.mat,r={ScId:query.getFormInputValue(i,n.ADD_ACCOUNT_SITECORE_ID),Maid:t.target.dataset.maid};f&&(r.mat=f);u?(coned.utils.isPatternLab()&&(o=t.target.dataset.eligible==="true"?!0:!1),r=JSON.stringify(r),query.postData(u,vt,yt,r,!0,a)):(o=!0,a.classList.add(n.HIDDEN))},vt=function(n){coned.utils.isPatternLab()?o?query.getData(coned.plConstants.GET_ACCOUNT_EAP_ELIGIBLE,w,function(){}):query.getData(coned.plConstants.GET_ACCOUNT_EAP_NON_ELIGIBLE,w,function(){}):w(n)},w=function(t){t.eligible?(f.classList.add(n.HIDDEN),o=!0):(f.classList.remove(n.HIDDEN),y.innerText=t.msg,f.focus(),o=!1)},yt=function(t){f.classList.remove(n.HIDDEN);f.innerHTML=t.msg},pt=function(){c=i.getElementsByClassName(n.ENROLLED_PROGRAM)[0];v=i.getElementsByClassName(n.NOT_ENROLLED_PROGRAM)[0];b=i.getElementsByClassName(n.ENROLLED_RADIO);u=i.getElementsByClassName(n.ENROLLED_SELECT)[0];s=i.getElementsByClassName(n.ADDRESS_DROPDOWN_ITEMS);d=i.getElementsByClassName(n.DROPDOWN_BUTTON)[0];f=i.getElementsByClassName(n.ADDRESS_DROPDOWN_ELIGIBILITY_ERROR)[0];y=f?f.getElementsByClassName(n.ADDRESS_DROPDOWN_ELIGIBILITY_ERROR_MSG)[0]:null;g=i.getElementsByClassName(n.SIGNATURE_DATE)[0];nt=i.getElementsByClassName(n.BQP_NAME)[0];l=i.getElementsByClassName(n.BQP_SIGNATURE_CONTAINER)[0];r=i.getElementsByClassName(n.BQP_SIGNATURE)[0];e=i.getElementsByClassName(n.BQP_SIGNATURE_DATE)[0];tt=i.getElementsByClassName(n.DROP_FILE_CLASS)[0];it=i.getElementsByClassName(n.SUBMIT_BUTTON)[0];p=i.getElementsByClassName(n.UPLOAD_FILE_LIST)[0];k=i.getElementsByClassName(n.ADDRESS_DROPDOWN)[0];a=document.getElementsByClassName(n.FORM_LOADING)[0];h=!1},wt=function(){var t,r;for(a.classList.remove("form-loading--hidden"),_.each(b,function(n){coned.utils.addGeneralListeners(n,ft)}),u.addEventListener("change",function(){dataLayer.push({event:n.TAG_ENROLLED_PROGRAM_SELECT,optionSelected:u.value})}),_.each(s,function(t){coned.utils.addGeneralListeners(t,ut);t.addEventListener("keydown",ot);t.getElementsByClassName(n.ADDRESS_DROPDOWN_CONTAIN)[0].addEventListener("checkEligibility",at)}),t=0;s[t];t++)if(rt=d.dataset.account,s[t].children[0].dataset.account===rt){setTimeout(function(){query.fireEvent(s[t],"accountInContext")},500);break}i.addEventListener("reset-form",et);r=new Date;coned.utils.fillInputWithFormattedDate(g,r);coned.utils.fillInputWithFormattedDate(e,r);setTimeout(function(){coned.utils.checkInputsFilled(i)},1e3);nt.addEventListener("input",st);tt.addEventListener("change",ht);it.addEventListener("click",lt)},bt=function(){pt();wt();t=!0};bt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.EnergySavings=function(){var n={INPUT_SELECTOR:".js-coned-input",SELECT_SELECTOR:".js-coned-select",EMAIL_SELECTOR:"js-energy-savings-email",SUBMIT_SELECTOR:"js-energy-savings-submit",ENERGY_SAVINGS_FORM:"js-energy-savings-form",FORM_LOADING:"js-form-loading",FORM_SITECORE_ID_NAME:"ScId",CONED_HEAT_PUMP:".js-heat-pump",CONFIRMATION_SCREEN_SELECTOR:"js-confirmation-screen",SUCCESS_MESSAGE_SELECTOR:"js-energy-savings-success",ERROR_MESSAGE_SELECTOR:"js-energy-savings-error",SUCCESS_PARAGRAPHS_CONTAINER_SELECTOR:"js-succes-paragraphs-container",ENERGY_SAVINGS_CONTAINER_SELECTOR:"js-energy-savings-container",FORM_WRAPPER_NO_BACKGROUND_CLASS:"coned-form-wrapper--no-background",ENERGY_SAVINGS_CONTAINER_NO_PADDING_CLASS:"energy-savings__container--no-padding",HIDDEN_CLASS:"hidden",URL_TILE_REDIRECT_PARAM:"tileRedirect",CAPTCHA_ELEMENT:"js-recaptcha",INPUT_ERROR_MESSAGE:"coned-input-message--error",FIELD_ERROR_CLASS:"coned-field-error-wrapper",CONED_FIELD:".coned-field",EMAIL_TOKEN:"@EMAIL",P_TAG:"p"},t=!1,i=function(i){var e,o,s,r,v,h,c,y,p,w,b,k,d,u,f,l,nt=function(){l?a():ct()},a=function(){var h=r.dataset.serviceUrl,i=f?u.getResponse():null,t={},s;f&&i&&i!==""&&(s=i);t={ScId:query.getFormInputValue(r,n.FORM_SITECORE_ID_NAME),I_would_like_to_learn_more_about__c:r.dataset.formName,Verify:s};_.each(e,function(n){t[n.name]=n.value});_.each(o,function(n){t[n.name]=n.value});t=JSON.stringify(t);query.postData(h,tt,it,t,!0,v)},tt=function(){dataLayer.push({event:"EEDM.submit.success"});dataLayer.push({event:"EEDM.learn.more",learnMoreEEDM:d.value});ut()},it=function(){dataLayer.push({event:"EEDM.submit.error"});l||u.reset();ft()},rt=function(){var t=b.value,i=w.getElementsByTagName(n.P_TAG);_.each(i,function(i){i.innerHTML=i.innerHTML.replace(n.EMAIL_TOKEN,t)})},g=function(){query.addClass(h,n.FORM_WRAPPER_NO_BACKGROUND_CLASS);query.addClass(h,n.ENERGY_SAVINGS_CONTAINER_NO_PADDING_CLASS)},ut=function(){rt();g();c.classList.remove(n.HIDDEN_CLASS);y.classList.remove(n.HIDDEN_CLASS);r.classList.add(n.HIDDEN_CLASS);dataLayer.push({event:"EEDM.confirmation.message"});window.scrollTo(0,0)},ft=function(){g();c.classList.remove(n.HIDDEN_CLASS);p.classList.remove(n.HIDDEN_CLASS);r.classList.add(n.HIDDEN_CLASS);dataLayer.push({event:"EEDM.system.error"});window.scrollTo(0,0)},et=function(t){var i=t.currentTarget,u=$(i).closest(n.CONED_FIELD)[0],r=u.getElementsByClassName(n.FIELD_ERROR_CLASS)[0];i.classList.remove(n.INPUT_ERROR_MESSAGE);r&&(r.style.display="none")},ot=function(){var t=coned.utils.getUrlParameters()||{};dataLayer.push({energySavingsForm:r.dataset.formName});t[n.URL_TILE_REDIRECT_PARAM]&&dataLayer.push({event:"EEDM.start"})},st=function(){s=i.getElementsByClassName(n.SUBMIT_SELECTOR)[0];r=i.getElementsByClassName(n.ENERGY_SAVINGS_FORM)[0];v=i.getElementsByClassName(n.FORM_LOADING)[0];h=i.getElementsByClassName(n.ENERGY_SAVINGS_CONTAINER_SELECTOR)[0];c=i.getElementsByClassName(n.CONFIRMATION_SCREEN_SELECTOR)[0];y=i.getElementsByClassName(n.SUCCESS_MESSAGE_SELECTOR)[0];p=i.getElementsByClassName(n.ERROR_MESSAGE_SELECTOR)[0];w=i.getElementsByClassName(n.SUCCESS_PARAGRAPHS_CONTAINER_SELECTOR)[0];b=i.getElementsByClassName(n.EMAIL_SELECTOR)[0];k=document.getElementsByClassName(n.CAPTCHA_ELEMENT);e=r.querySelectorAll(n.INPUT_SELECTOR);o=r.querySelectorAll(n.SELECT_SELECTOR);d=r.querySelectorAll(n.CONED_HEAT_PUMP)[0];f=k.length>0;l=r.dataset.userStatus},ht=function(){$(e).bind("keyup",function(n){n.preventDefault();s.disabled=!$(r).validate().checkForm()});$(o).bind("change",function(n){n.preventDefault();et(n);s.disabled=!$(r).validate().checkForm()});new coned.components.ValidateForm("."+n.ENERGY_SAVINGS_FORM,nt);f&&(u=new coned.components.Recaptcha(r,a,a))},ct=function(){f&&u&&u.getResponse()===""&&u.checkRecaptcha()},lt=function(){st();ht();ot();t=!0};lt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.EnergyUsage=function(){var n={ENERGY_USAGE_LINK:"js-energy-usage-link",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",ENERGY_USAGE_MAID:"accountMaid",HIDDEN_CLASS:"hidden",FORM_LOADING:"js-form-loading"},t=!1,i=function(i){var f,r,u,s,h,e,o,a=function(t){t.preventDefault();var s=i.dataset.serviceUrl,f;if(r=t.target,o=r.dataset.redirectUrl,u.classList.add(n.HIDDEN_CLASS),r.dataset.energyLink==="true"){window.open(r.href);return}f={maid:query.getFormInputValue(document,n.ENERGY_USAGE_MAID),scId:i.dataset.scId};e=window.open();f=JSON.stringify(f);query.postData(s,v,l,f,!0,h)},v=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_LINK,c,l):c(n)},c=function(n){r.dataset.energyLink="true";r.href=o?o:n.redirectUrl;e.location.href=r.href},l=function(t){e.close();u.classList.remove(n.HIDDEN_CLASS);s.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;u.focus()},y=function(){f=i.getElementsByClassName(n.ENERGY_USAGE_LINK);u=i.getElementsByClassName(n.SERVICE_ERROR)[0];s=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];h=document.getElementsByClassName(n.FORM_LOADING)[0]},p=function(){for(var n=0;n<f.length;n++)coned.utils.addGeneralListeners(f[n],a)},w=function(){y();p();t=!0};w()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.EnrollUnitsModule=function(){var n={HIDDEN_CLASS:"hidden",CHANGE_EVENT:"change",RESIZE_EVENT:"resize",DISABLED_ATTRIBUTE:"disabled",ARTICLE_HEADER_CLASS:"js-article-header",SLIDER_PANEL_CLASS:"js-slider-panel",UNIT_LIST_STEP_CLASS:"js-step-unit-list",UNIT_LIST_CLEAR_CLASS:"js-unit-list-cancel",UNIT_LIST_SELECT_ALL_CLASS:"js-unit-list-select-all",UNIT_LIST_SUBMIT_CLASS:"js-unit-list-submit",UNIT_LIST_SUBMIT_NUMBER_CLASS:"js-unit-list-number",UNIT_LIST_UNITS_CLASS:"js-enroll-unit-list",UNIT_LIST_CHEKBOX_CLASS:"js-enroll-unit-checkbox",CONED_CHECKBOX_CHECK_CLASS:"coned-checkbox--checked",CONFIRMATION_STEP_CLASS:"js-step-confirmation",CONFIRMATION_SHOW_MORE_CLASS:"js-enroll-confirmation-show-more",CONFIRMATION_TEXT_CLASS:"js-enroll-confirmation-text",CONFIRMATION_TEXT_FULL_CLASS:"enroll-units-confirmation__list-text--visible",CONFIRMATION_CONFIRM_CLASS:"js-enroll-confirmation-button",CONFIRMATION_CANCEL_CLASS:"js-enroll-cancel-button",CONFIRMATION_ADDRESS_CLASS:"js-enroll-confirmation-address",CONFIRMATION_PARTY_CLASS:"js-enroll-confirmation-party",CONFIRMATION_NUMBER_CLASS:"js-enroll-confirmation-number",ANIMATION_STEP_CLASS:"js-step-animation",ANIMATION_SUBMIT_MODULE:"js-submit-progress-animation",ANIMATION_CURRENT_CLASS:"js-enroll-animation-current",ANIMATION_TOTAL_CLASS:"js-enroll-animation-total",ANIMATION_UNITS_TO_SEND:10,STATUS_STEP_CLASS:"js-step-status",STATUS_SUCCESS_CLASS:"js-enroll-status-success",STATUS_SUCCESS_LIST_CLASS:"js-enroll-status-success-list",STATUS_SUCCESS_NUMBER_CLASS:"js-enroll-status-success-number",STATUS_FAILED_CLASS:"js-enroll-status-failed",STATUS_FAILED_LIST_CLASS:"js-enroll-status-failed-list",STATUS_FAILED_NUMBER_CLASS:"js-enroll-status-failed-number",STATUS_ADDRESS_CLASS:"js-enroll-status-address",STATUS_SUCCESS_MORE_CLASS:"js-status-success-show-more",STATUS_FAILED_MORE_CLASS:"js-status-failed-show-more",STATUS_LIST_COMPLETE:"success-banner__span--visible"},t=!1,i=function(i){var o,kt,e,c,it,dt,rt,b,k,u,s,l,gt,ni,ot,st,ht,ti,a,ct,ut,lt,f,ii,at,v,d,ri,vt,y,g,ui,fi,yt,pt,ei,wt,r,p,ft,nt,tt,w,h,oi=function(){y&&(coned.utils.isEllipsisActive(y)?g.classList.remove(n.HIDDEN_CLASS):g.classList.add(n.HIDDEN_CLASS));v&&(coned.utils.isEllipsisActive(v)?d.classList.remove(n.HIDDEN_CLASS):d.classList.add(n.HIDDEN_CLASS));f.focus()},vi=function(){coned.utils.addGeneralListeners(d,function(n){si(n,d,v)});coned.utils.addGeneralListeners(g,function(n){si(n,g,y)})},si=function(t,i,r){t.preventDefault();r.classList.add(n.STATUS_LIST_COMPLETE);i.classList.add(n.HIDDEN_CLASS)},et=function(){var t={},i,u;r.length?(ut&&(wt?(ft=Math.floor(r.length/n.ANIMATION_UNITS_TO_SEND),u=r.length%n.ANIMATION_UNITS_TO_SEND,u>0&&ft++,nt=Math.floor(100/ft),wt=!1,nt!==100&&(tt+=nt,ut.innerHTML="("+tt+"%)")):(tt+=nt,ut.innerHTML="("+tt+"%)")),p=r.splice(0,n.ANIMATION_UNITS_TO_SEND),i=p.map(function(n){return n.id}),t={ParentMaid:fi,Children:i},t=JSON.stringify(t),query.postData(ti,pi,ci,t,!0)):yi()},yi=function(){ct.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},pi=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.POST_ENROLL_UNIT_LIST,hi,ci,null):hi(n)},hi=function(n){var t,i;t=p.filter(function(t){return n.ProcessedUnits.indexOf(t.id)>-1});i=p.filter(function(t){return n.NotProcessedUnits.indexOf(t.id)>-1});w=w.concat(t);h=h.concat(i);coned.utils.isPatternLab()?setTimeout(function(){et()},2e3):et()},ci=function(){h=h.concat(p);et()},li=function(){var t,i,r,u;Array.prototype.forEach.call(ui,function(n){n.innerHTML=pt});w.length&&(ii.classList.remove(n.HIDDEN_CLASS),at&&(at.innerHTML=w.length),v&&(t=w.map(function(n){return n.name}),i=t.join(", "),v.innerHTML=i));h.length?(ri.classList.remove(n.HIDDEN_CLASS),vt&&(vt.innerHTML=h.length),y&&(r=h.map(function(n){return n.name}),u=r.join(", "),y.innerHTML=u),bi()):wi();a.classList.add(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);oi();coned.utils.scrollTo(0,0)},wi=function(){dataLayer.push({event:"lofll",lofll:"step2.6.1"})},bi=function(){dataLayer.push({event:"lofll",lofll:"step2.6.2"})},ki=function(){s&&coned.utils.addGeneralListeners(s,di);coned.utils.addGeneralListeners(gt,nr);coned.utils.addGeneralListeners(ni,tr)},di=function(t){t.preventDefault();query.addClass(l,n.CONFIRMATION_TEXT_FULL_CLASS);query.addClass(s,n.HIDDEN_CLASS)},gi=function(){dataLayer.push({event:"lofll",lofll:"step2.5"})},nr=function(t){t.preventDefault();gi();lt&&(lt.innerHTML=r.length);query.removeClass(a,n.HIDDEN_CLASS);query.addClass(u,n.HIDDEN_CLASS);coned.utils.scrollTo(0,0);ir();a.focus()},tr=function(t){t.preventDefault();u.classList.add(n.HIDDEN_CLASS);b&&b.classList.remove(n.HIDDEN_CLASS);k&&k.classList.remove(n.HIDDEN_CLASS);o.classList.remove(n.HIDDEN_CLASS);coned.utils.scrollTo(0,0)},ir=function(){new coned.components.SubmitAnimation(ct,et,li,li,!1,!1)},rr=function(){coned.utils.addGeneralListeners(c,hr);coned.utils.addGeneralListeners(kt,fr);coned.utils.addParentListener(dt,[n.CHANGE_EVENT],n.UNIT_LIST_CHEKBOX_CLASS,er);e.addEventListener(n.CHANGE_EVENT,ur)},ur=function(t){t.preventDefault();var u=t.target,i;r=[];u.checked?(i=Array.prototype.filter.call(rt,function(t){var i=t.getAttribute(n.DISABLED_ATTRIBUTE);return i&&i==="disabled"?!1:!0}),query.addClass(e.parentElement,n.CONED_CHECKBOX_CHECK_CLASS),Array.prototype.forEach.call(i,function(t){var i={id:t.dataset.unitId,name:t.dataset.unitName};r.push(i);query.addClass(t.parentElement,n.CONED_CHECKBOX_CHECK_CLASS);t.checked=!0}),c.removeAttribute(n.DISABLED_ATTRIBUTE)):(query.removeClass(e.parentElement,n.CONED_CHECKBOX_CHECK_CLASS),Array.prototype.forEach.call(rt,function(t){query.removeClass(t.parentElement,n.CONED_CHECKBOX_CHECK_CLASS);t.checked=!1}),c.setAttribute(n.DISABLED_ATTRIBUTE,!0));bt()},fr=function(t){t.preventDefault();r=[];Array.prototype.forEach.call(rt,function(t){query.removeClass(t.parentElement,n.CONED_CHECKBOX_CHECK_CLASS);t.checked=!1});e&&(e.checked=!1,query.removeClass(e.parentElement,n.CONED_CHECKBOX_CHECK_CLASS));c.setAttribute(n.DISABLED_ATTRIBUTE,!0);bt()},er=function(t,i){i.preventDefault();var u=t,o=u.dataset.unitId,f,s;u.checked?(s={id:o,name:u.dataset.unitName},r.push(s)):(f=r.findIndex(function(n){return n.id==o}),f>-1&&r.splice(f,1),e&&(e.checked=!1,query.removeClass(e.parentElement,n.CONED_CHECKBOX_CHECK_CLASS)));r.length===0?c.setAttribute(n.DISABLED_ATTRIBUTE,!0):c.removeAttribute(n.DISABLED_ATTRIBUTE);bt()},bt=function(){it&&(it.innerHTML=r.length?"("+r.length+")":"")},or=function(){var t,i;l&&(t=r.map(function(n){return n.name}),i=t.join(", "),l.innerHTML=i,query.removeClass(l,n.CONFIRMATION_TEXT_FULL_CLASS));ot&&(ot.innerHTML=pt);st&&(st.innerHTML=ei);ht&&(ht.innerHTML="("+r.length+")");s&&query.removeClass(s,n.HIDDEN_CLASS)},ai=function(){l&&(coned.utils.isEllipsisActive(l)?s.classList.remove(n.HIDDEN_CLASS):s.classList.add(n.HIDDEN_CLASS))},sr=function(){dataLayer.push({event:"lofll",lofll:r.length})},hr=function(t){t.preventDefault();r.length&&(sr(),or(),u.classList.remove(n.HIDDEN_CLASS),b&&b.classList.add(n.HIDDEN_CLASS),k&&k.classList.add(n.HIDDEN_CLASS),o.classList.add(n.HIDDEN_CLASS),ai(),coned.utils.scrollTo(0,0),u.focus())},cr=function(){ti=i.dataset.unitsService;fi=i.dataset.parentMaid;pt=i.dataset.address;ei=i.dataset.party;wt=!0;r=[];p=[];ft=0;nt=0;tt=0;w=[];h=[];b=document.getElementsByClassName(n.ARTICLE_HEADER_CLASS)[0];k=document.getElementsByClassName(n.SLIDER_PANEL_CLASS)[0];o=i.getElementsByClassName(n.UNIT_LIST_STEP_CLASS)[0];kt=o.getElementsByClassName(n.UNIT_LIST_CLEAR_CLASS)[0];e=o.getElementsByClassName(n.UNIT_LIST_SELECT_ALL_CLASS)[0];c=o.getElementsByClassName(n.UNIT_LIST_SUBMIT_CLASS)[0];it=o.getElementsByClassName(n.UNIT_LIST_SUBMIT_NUMBER_CLASS)[0];dt=o.getElementsByClassName(n.UNIT_LIST_UNITS_CLASS)[0];rt=o.getElementsByClassName(n.UNIT_LIST_CHEKBOX_CLASS);u=i.getElementsByClassName(n.CONFIRMATION_STEP_CLASS)[0];s=u.getElementsByClassName(n.CONFIRMATION_SHOW_MORE_CLASS)[0];gt=u.getElementsByClassName(n.CONFIRMATION_CONFIRM_CLASS)[0];ni=u.getElementsByClassName(n.CONFIRMATION_CANCEL_CLASS)[0];l=u.getElementsByClassName(n.CONFIRMATION_TEXT_CLASS)[0];ot=u.getElementsByClassName(n.CONFIRMATION_ADDRESS_CLASS)[0];st=u.getElementsByClassName(n.CONFIRMATION_PARTY_CLASS)[0];ht=u.getElementsByClassName(n.CONFIRMATION_NUMBER_CLASS)[0];a=i.getElementsByClassName(n.ANIMATION_STEP_CLASS)[0];ct=a.getElementsByClassName(n.ANIMATION_SUBMIT_MODULE)[0];ut=a.getElementsByClassName(n.ANIMATION_CURRENT_CLASS)[0];lt=a.getElementsByClassName(n.ANIMATION_TOTAL_CLASS)[0];f=i.getElementsByClassName(n.STATUS_STEP_CLASS)[0];ii=f.getElementsByClassName(n.STATUS_SUCCESS_CLASS)[0];at=f.getElementsByClassName(n.STATUS_SUCCESS_NUMBER_CLASS)[0];v=f.getElementsByClassName(n.STATUS_SUCCESS_LIST_CLASS)[0];ri=f.getElementsByClassName(n.STATUS_FAILED_CLASS)[0];vt=f.getElementsByClassName(n.STATUS_FAILED_NUMBER_CLASS)[0];y=f.getElementsByClassName(n.STATUS_FAILED_LIST_CLASS)[0];ui=f.getElementsByClassName(n.STATUS_ADDRESS_CLASS);d=f.getElementsByClassName(n.STATUS_SUCCESS_MORE_CLASS)[0];g=f.getElementsByClassName(n.STATUS_FAILED_MORE_CLASS)[0]},lr=function(){window.addEventListener(n.RESIZE_EVENT,vr,!1);rr();ki();vi()},ar=function(){dataLayer.push({event:"lofll",lofll:"step2.2"})},vr=function(){yt||(yt=setTimeout(function(){yt=null;ai();oi()},66))},yr=function(){cr();lr();ar();t=!0};yr()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ErrorPage=function(){var n={NOT_FOUND_CONTAINER_CLASS:"js-not-found",NOT_FOUND_ORU:"not-found--oru",NOT_FOUND_HEADER_CLASS:"js-header-wrapper",NOT_FOUND_HEADER_ORU:"header--oru",NOT_FOUND_PAGE_CLASS:"js-page-content",NOT_FOUND_LOGO_CLASS:"js-header-logo",SRC_ATTRIBUTE:"src",SRCSET_ATTRIBUTE:"srcset",NOT_FOUND_PICTURE:"js-picture",NOT_FOUND_PICTURE_MOBILE:"js-picture-mobile",NOT_FOUND_PICTURE_DESKTOP:"js-picture-desktop",NOT_FOUND_PICTURE_IMAGE:"js-picture-image",NOT_FOUND_FOOTER_CLASS:"js-footer",NOT_FOUND_FOOTER_ORU:"footer--oru",LOADER_CLASS:"js-form-loading",HIDDEN_CLASS:"hidden"},t=!1,i=function(i){var o,r,s,u,f,h,c,l,a,e,v=function(){var i,t;window.location.href.indexOf(".oru")>-1&&(i=f.dataset.mobileOru,t=f.dataset.desktopOru,o.classList.add(n.NOT_FOUND_ORU),r.setAttribute(n.SRC_ATTRIBUTE,r.dataset.oruLogo),e.classList.add(n.NOT_FOUND_HEADER_ORU),u.classList.add(n.NOT_FOUND_FOOTER_ORU),h.setAttribute(n.SRCSET_ATTRIBUTE,i),c.setAttribute(n.SRCSET_ATTRIBUTE,t),l.setAttribute(n.SRCSET_ATTRIBUTE,t));a.classList.remove(n.HIDDEN_CLASS);u.classList.remove(n.HIDDEN_CLASS);e.classList.remove(n.HIDDEN_CLASS);s.classList.add(n.HIDDEN_CLASS)},y=function(){o=document.getElementsByClassName(n.NOT_FOUND_CONTAINER_CLASS)[0];r=document.getElementsByClassName(n.NOT_FOUND_LOGO_CLASS)[0];u=document.getElementsByClassName(n.NOT_FOUND_FOOTER_CLASS)[0];s=document.getElementsByClassName(n.LOADER_CLASS)[0];a=document.getElementsByClassName(n.NOT_FOUND_PAGE_CLASS)[0];e=document.getElementsByClassName(n.NOT_FOUND_HEADER_CLASS)[0];f=i.getElementsByClassName(n.NOT_FOUND_PICTURE)[0];h=i.getElementsByClassName(n.NOT_FOUND_PICTURE_MOBILE)[0];c=i.getElementsByClassName(n.NOT_FOUND_PICTURE_DESKTOP)[0];l=i.getElementsByClassName(n.NOT_FOUND_PICTURE_IMAGE)[0]},p=function(){y();v();t=!0};p()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.FacetedFiltersComponent=function(){var n={WRAPPER_BY_FILTER:"js-search-filters-by",WRAPPER_TOPIC_FILTER:"js-dropdown-topic",WRAPPER_TYPE_FILTER:"js-dropdown-type",WRAPPER_FILTER_OPTIONS:"js-search-filters-options",DROPDOWN_TITLE_LINK:"js-dropdown-link",DROPDOWN_TITLE:"js-dropdown-title",DROPDOWN_LIST:"js-dropdown-list",FACETED_LIST:"js-faceted-list",FACETED_ITEM:"js-faceted-item",OPTION_TITLE:"js-dropdown-list-item-title",OPTION_LINK:"js-dropdown-list-item-link",OPTION_ACTIVE_CLASS:"dropdown-list-item-link--active",BUTTON_ACTIVE_CLASS:"dropdown-title--active",MOBILE_DROPDOWN_TITLE:"dropdown-title--mobile",FACETED_CRITERIA:"js-faceted-criteria",CATEGORY_BUTTON:"js-category-button",FILTER_BUTTON:"js-category-button",FILTER_ACTIVE_CLASS:"search-filters__by-nav-item--active",SHOW_FILTERS_BUTTON:"js-faceted-show-filters",SHOW_FILTERS_DESKTOP_BUTTON:"js-faceted-show-filters-desktop",HIDE_FILTERS_BUTTON:"js-faceted-bar-back",FILTER_OPTIONS:"js-search-filters-options",FILTER_OPTIONS_VISIBLE_CLASS:"faceted-search__filters-options--visible",FACETED_FILTER_BAR:"js-faceted-filters-bar",FACETED_FILTER_WRAP:"faceted-search__filters-options--wrap",FACETED_DROPDOWN_CLASS:"dropdown-title--faceted-search",FACETED_CLEAR:"js-faceted-bar-clear",FACETED_ARROW_ICON:"js-icon-carrot",FACETED_ARROW_OPEN:"drop-down-title-icon--open",RESULTS_TOTAL:"js-total",PAGINATION_START_CLASS:"js-start",PAGINATION_END_CLASS:"js-end",FACETED_RESULTS:"js-faceted-results",FACETED_NO_RESULTS:"js-faceted-no-results",FACETED_VISIBLE:"faceted-search--visible",FACETED_HIDDEN:"faceted-search--hidden",PAGINATION_RESET_CLASS:"js-pagination-reset",FACETED_PLACEHOLDER:"js-faceted-placeholder",PAGINATION_MODULE:"js-pagination-wrapper",DEPENDENCY_FILTERS:"js-dependency-filters",DEPENDENCY_FILTER_CLASS:"faceted-search__filters-options--dependency",HAS_FILTER_DEPENDENCY:"has-dependency",PAGE_MIN_HEIGHT_CLASS:"faceted-search__page-min-height",PAGINATION_CONTENT:"js-pagination-content",NAV_ITEM_NAME:"NAV",FACETED_NAV:"js-faceted-criteria-nav",ARIA_EXPANDED:"aria-expanded"},t=!1,i=!1,r=function(r){var e,ct,k,o,d,lt,at,vt,h,f,c,g,yt,pt,nt,u,l,p,tt,wt,it,bt,s,a,kt,rt,ut,ft,dt,gt,et,ni,w,v,ti=function(t){_.each(t,function(t){t.classList.remove(n.OPTION_ACTIVE_CLASS)})},ot=function(){var r=query.hasClass(o,n.DEPENDENCY_FILTER_CLASS),t=0,i=w.offsetWidth;_.each(h,function(n){t+=n.offsetWidth});!r&&!coned.utils.isMobile()&&t>i?(o.classList.add(n.DEPENDENCY_FILTER_CLASS),o.classList.add(n.FACETED_FILTER_WRAP),c.style.display="block",c.firstElementChild.innerHTML=c.dataset.activeText,o.classList.add(n.FILTER_OPTIONS_VISIBLE_CLASS)):t<i&&(o.classList.remove(n.DEPENDENCY_FILTER_CLASS),o.classList.remove(n.FACETED_FILTER_WRAP),c.style.display="none")},b=function(n,t){_.each(n,function(n){n.style.display=t})},oi=function(t){t.preventDefault();var r=t.target.dataset.value,u=t.target.parentNode.dataset.defaultFilter,f=document.querySelectorAll('[data-dependency-id="'+r+'"]'),e=document.querySelectorAll('[data-dependency-parent="'+u+'"]');s.innerHTML="";_.each(pt,function(t){t.classList.remove(n.FILTER_ACTIVE_CLASS)});b(e,"none");i?i=!1:_.each(e,function(t){t.dataset.filterCriteria=t.dataset.defaultFilter;t.dataset.filterCriteria=t.dataset.defaultFilter;var i=t.getElementsByClassName(n.OPTION_LINK);ht(t.dataset.defaultFilter);_.each(i,function(t){var i=t.parentNode.parentNode.parentNode.getElementsByClassName(n.DROPDOWN_TITLE)[0];i.innerHTML=i.parentNode.dataset.defaultTitle;t.classList.remove(n.OPTION_ACTIVE_CLASS)})});f.length>0&&(a.style.display="flex",b(f,"block"));this.classList.toggle(n.FILTER_ACTIVE_CLASS);this.parentNode.dataset.filterCriteria=r;ui(u,r);ot();st()},ii=function(){var t=ft.dataset.divider,u=1,f=t*u,i=s.getElementsByClassName(n.FACETED_ITEM).length,r;for(i?(rt.style.display="block",ut.style.display="none",it.innerHTML=i,ft.dataset.activePage=1,dt.innerHTML=t*u-(t-1),gt.innerHTML=t*u<i?t*u:i):(rt.style.display="none",ut.style.display="block"),$(".js-faceted-placeholder li").addClass("faceted-search__list-item--hidden"),r=f-t;r<f&&r<i;r++)$(".js-faceted-placeholder li:eq("+r+")").removeClass("faceted-search__list-item--hidden")},ri=function(n){n.addEventListener("touchstart",function(){v=!1});n.addEventListener("touchmove",function(){v=!0})},si=function(t){var i;if(t.preventDefault(),!v){var s=this.getElementsByClassName(n.OPTION_TITLE)[0].innerHTML,r=this.parentNode.parentNode.parentNode.getElementsByClassName(n.DROPDOWN_TITLE)[0],h=r.parentNode.dataset.defaultTitle,c=this.parentNode.parentNode.parentNode.getElementsByClassName(n.OPTION_LINK),l=query.hasClass(this,n.OPTION_ACTIVE_CLASS),u=this.dataset.value,f=this.parentNode.parentNode.parentNode.dataset.defaultFilter,e=this.parentNode.parentNode.parentNode,p=e.getElementsByClassName(n.DROPDOWN_TITLE_LINK)[0],o=document.querySelectorAll('[data-dependency-id="'+u+'"]'),w=document.querySelectorAll('[data-dependency-parent="'+f+'"]'),k=this.parentNode.parentNode.parentNode.getElementsByClassName(n.FACETED_ARROW_ICON)[0];k.classList.remove(n.FACETED_ARROW_OPEN);ti(c);_.each(w,function(t){var r=t.getElementsByClassName(n.OPTION_LINK),i;t.style.display="none";t.dataset.filterCriteria=t.dataset.defaultFilter;i=t.getElementsByClassName(n.OPTION_LINK);ht(t.dataset.defaultFilter);_.each(i,function(t){var i=t.parentNode.parentNode.parentNode.getElementsByClassName(n.DROPDOWN_TITLE)[0];i.innerHTML=i.parentNode.dataset.defaultTitle;t.classList.remove(n.OPTION_ACTIVE_CLASS)});ti(r)});ui(f,u);query.hasClass(e,n.HAS_FILTER_DEPENDENCY)&&o&&(a.style.display="flex");l?(r.innerHTML=h,u=f,ht(f)):(r.innerHTML=s,this.classList.add(n.OPTION_ACTIVE_CLASS),o.length>0&&(a.style.display="flex",b(o,"block")));e.dataset.filterCriteria=u;ot();st();i=r.parentNode;i&&query.hasClass(i,n.BUTTON_ACTIVE_CLASS);coned.utils.isMobile()?(t.type=="click"&&i&&i.focus(),p.click()):(i&&i.focus(),y())}},ui=function(n,t){var i=coned.utils.getUrlParameters(),r=_.keys(i);r.includes(n)&&i[n]===t||(i[n]=t,coned.utils.setUrlParameters(i))},hi=function(){var u=coned.utils.getUrlParameters(),r=_.keys(u);_.each(h,function(t){for(var o,e,f,i=0;i<r.length;i++)t.dataset.filterCriteria==r[i]&&(t.tagName==n.NAV_ITEM_NAME?(p=t.querySelectorAll('[data-value="'+u[r[i]]+'"]')[0],t.dataset.filterCriteria=u[r[i]]):(o=t.getElementsByClassName(n.DROPDOWN_TITLE)[0],e=t.querySelectorAll('[data-value="'+u[r[i]]+'"]')[0],o.innerHTML=e.getElementsByClassName(n.OPTION_TITLE)[0].innerHTML,e.classList.add(n.OPTION_ACTIVE_CLASS),t.dataset.filterCriteria=u[r[i]],f=document.querySelectorAll('[data-dependency-id="'+u[r[i]]+'"]'),query.hasClass(t,n.HAS_FILTER_DEPENDENCY)&&f&&(a.style.display="flex"),f.length>0&&b(f,"block")))});i=!0;p!=undefined&&p.click();ii();t||pi()},fi=function(n){var t,i=[];return _.each(n,function(n){t=n.dataset.filterCriteria;i.push(t)}),i},ci=function(n,t){for(var r=[],i=0;i<t.length;i++)t[i]!=n[i]&&r.push(i);return r},st=function(){var i=fi(h),t=ci(i,et);s.innerHTML="";_.each(at,function(n){for(var r=!0,f,h,e,o,u=0;u<t.length;u++)if(f=n.getAttribute("data-"+et[t[u]]),f.includes("|")){for(h=f.split("|"),e=r,o=0;o<h.length;o++)if(h[o]!=i[t[u]])e=!1;else{e=!0;break}r=e?!0&&r:r&&!1}else r=f!=i[t[u]]?r&&!1:!0&&r;r&&(bt=n.cloneNode(!0),s.appendChild(bt))});ni=s.getElementsByClassName(n.FACETED_ITEM);it.innerHTML=ni.length;ii();wt.click();query.hasClass(s,"faceted-search__list--faq")&&new coned.components.CollapsibleContainerComponent(s)},li=function(t){if(t.preventDefault(),!v){var f=query.hasClass(this,n.BUTTON_ACTIVE_CLASS),o=query.hasClass(this,n.MOBILE_DROPDOWN_TITLE),s=this.parentNode,h=o?r:s,i=h.getElementsByClassName(n.DROPDOWN_LIST),u=this.getElementsByClassName(n.FACETED_ARROW_ICON)[0];_.each(tt,function(t){t.classList.remove(n.FACETED_ARROW_OPEN)});u.classList.add(n.FACETED_ARROW_OPEN);f?(u.classList.remove(n.FACETED_ARROW_OPEN),y()):(y(),TweenMax.from(i,0,{y:-20,opacity:0}),_.each(i,function(n){n.style.display="block"}),_.each(e,function(n){n.style.display="flex"}),this.classList.toggle(n.BUTTON_ACTIVE_CLASS));coned.utils.isMobile()&&l.classList.add(n.FACETED_VISIBLE);_.each(e,function(t){query.hasClass(t,n.BUTTON_ACTIVE_CLASS)&&t.setAttribute(n.ARIA_EXPANDED,"true")})}},y=function(){var t=f.dataset.defaultText;_.each(ct,function(t){t.style.display="none";query.removeClass(e,n.BUTTON_ACTIVE_CLASS)});_.each(e,function(t){t.setAttribute(n.ARIA_EXPANDED,"false")});coned.utils.isMobile()||(f.firstElementChild.innerHTML=t,_.each(d,function(n){n.style.display="flex"}));l.classList.remove(n.FACETED_VISIBLE)},ai=function(t){t.preventDefault();var i=f.dataset.defaultText,r=f.dataset.activeText;l.classList.toggle(n.FACETED_VISIBLE);w.classList.toggle(n.PAGE_MIN_HEIGHT_CLASS);query.hasClass(l,n.FACETED_VISIBLE)?(this.firstElementChild.innerHTML=r,_.each(e,function(t){t.classList.add(n.FACETED_DROPDOWN_CLASS);t.style.display="flex"})):(this.firstElementChild.innerHTML=i,y(),_.each(e,function(t){t.classList.remove(n.FACETED_DROPDOWN_CLASS);t.style.display="none"}))},vi=function(t){t.preventDefault();var i=this.dataset.defaultText,r=this.dataset.activeText;nt.classList.toggle(n.FILTER_OPTIONS_VISIBLE_CLASS);this.firstElementChild.innerHTML=query.hasClass(nt,n.FILTER_OPTIONS_VISIBLE_CLASS)?r:i},ei=function(t){var r=t.currentTarget===g,i;t!=undefined&&t.preventDefault();(!v||r)&&(i=f.dataset.defaultText,f.firstElementChild.innerHTML=i,l.classList.remove(n.FACETED_VISIBLE),_.each(tt,function(t){t.classList.remove(n.FACETED_ARROW_OPEN)}),_.each(d,function(n){n.style.display="none"}),w.classList.remove(n.PAGE_MIN_HEIGHT_CLASS),y(),f.focus())},yi=function(t){t.preventDefault();var i=u.getElementsByClassName(n.FILTER_ACTIVE_CLASS)[0];_.each(h,function(n){n.dataset.filterCriteria=n.dataset.defaultFilter});i.click();_.each(k,function(t){t.classList.remove(n.OPTION_ACTIVE_CLASS)});st()},ht=function(n){var t=coned.utils.getUrlParameters();t=_.omit(t,n);coned.utils.setUrlParameters(t)},pi=function(){var n=kt.children.length;n===1&&(u.innerHTML=u.innerHTML.replace(/<nav/gi,"<div"),u.innerHTML=u.innerHTML.replace(/<\/nav>/gi,"<\/div>"),u.innerHTML=u.innerHTML.replace(/<button/gi,"<div"),u.innerHTML=u.innerHTML.replace(/<\/button>/gi,"<\/div>"),u.innerHTML=u.innerHTML.replace(/<span/gi,"<p"),u.innerHTML=u.innerHTML.replace(/<\/span>/gi,"<\/p>"))},wi=function(){e=r.getElementsByClassName(n.DROPDOWN_TITLE_LINK);ct=r.getElementsByClassName(n.DROPDOWN_LIST);k=r.getElementsByClassName(n.OPTION_LINK);o=r.getElementsByClassName(n.WRAPPER_FILTER_OPTIONS)[0];nt=r.getElementsByClassName(n.FILTER_OPTIONS)[0];d=o.getElementsByClassName(n.DROPDOWN_TITLE_LINK);lt=document.getElementsByClassName(n.FACETED_LIST)[0];it=document.getElementsByClassName(n.RESULTS_TOTAL)[0];at=lt.getElementsByClassName(n.FACETED_ITEM);vt=r.getElementsByClassName(n.CATEGORY_BUTTON);p=r.getElementsByClassName(n.CATEGORY_BUTTON)[0];pt=r.getElementsByClassName(n.FILTER_BUTTON);l=r.getElementsByClassName(n.FACETED_FILTER_BAR)[0];f=r.getElementsByClassName(n.SHOW_FILTERS_BUTTON)[0];c=r.getElementsByClassName(n.SHOW_FILTERS_DESKTOP_BUTTON)[0];g=r.getElementsByClassName(n.HIDE_FILTERS_BUTTON)[0];yt=r.getElementsByClassName(n.FACETED_CLEAR)[0];tt=r.getElementsByClassName(n.FACETED_ARROW_ICON);h=r.getElementsByClassName(n.FACETED_CRITERIA);wt=document.getElementsByClassName(n.PAGINATION_RESET_CLASS)[0];s=document.getElementsByClassName(n.FACETED_PLACEHOLDER)[0];kt=r.getElementsByClassName(n.FACETED_NAV)[0];ft=document.getElementsByClassName(n.PAGINATION_MODULE)[0];gt=document.getElementsByClassName(n.PAGINATION_END_CLASS)[0];dt=document.getElementsByClassName(n.PAGINATION_START_CLASS)[0];rt=document.getElementsByClassName(n.FACETED_RESULTS)[0];ut=document.getElementsByClassName(n.FACETED_NO_RESULTS)[0];w=document.getElementsByClassName(n.PAGINATION_CONTENT)[0];et=fi(h);a=r.getElementsByClassName(n.DEPENDENCY_FILTERS)[0];u=r.getElementsByClassName(n.WRAPPER_BY_FILTER)[0]},bi=function(){_.each(e,function(n){ri(n);coned.utils.addGeneralListeners(n,li)});_.each(k,function(n){ri(n);coned.utils.addGeneralListeners(n,si)});_.each(vt,function(n){coned.utils.addGeneralListeners(n,oi)});coned.utils.addGeneralListeners(f,ai);coned.utils.addGeneralListeners(g,ei);coned.utils.addGeneralListeners(yt,yi);coned.utils.addGeneralListeners(c,vi);window.addEventListener("resize",ei);window.addEventListener("resize",ot)},ki=function(){wi();bi();hi();t=!0};ki()};return r.prototype.isLoaded=function(){return t},r}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.FileAClaimForm=function(){var n={PAGE_HEADER:"js-page-header",ATTACH_FILE_CHECKBOX:"js-attach-file-checkbox",FILE_UPLOAD_INPUT:"js-coned-inputfile",CURRENCY_INPUT:"js-item-cost",AMOUNT_INPUTS:"js-item-amount",TOTAL_ITEMS_COST:"js-total-items-cost",TOTAL_ITEMS_AMOUNT:"js-total-items-amount",ADD_NEW_ROW_BUTTON:"js-add-new-row",SIGNATURE_DATE_INPUT:"js-signature-date",TOTAL_LOSS_INPUT:"js-total-loss",ITEMS_CONTAINER:"js-items-container",ITEM_HEADER:"js-item-header",ITEM_ROW:"js-item-row",ITEM_GROUP_1:"js-item-group-1",CONED_INPUT:".coned-input",CONED_TEXT_AREA:".coned-textarea",INPUT_FILLED_CLASS:"coned-input--filled",INPUT_FILLED_CLASS_SELECTOR:".coned-input--filled",TEXT_AREA_FILLED_CLASS:"coned-textarea--filled",MAX_ITEMS_MESSAGE:"js-max-items-message",SUCCESS_MESSAGE:"js-success-message",ERROR_MESSAGE:"js-error-message",DOLLAR_SIGN:"$",RECAPTCHA_ELEMENT:"js-recaptcha",MESSAGE_WRAPPER:"js-form-messages",FORM_WRAPPER:"js-form-wrapper",FORM_LOADING:"js-form-loading",FORM_LOADING_HIDDEN:"form-loading--hidden",TRY_AGAIN:"js-try-again",FORM_ID:"facSpoilageFormId",CONTACT_NAME:"facSpoilageName",CONTACT_ADDRESS:"facSpoilageAddress",CONTACT_APT:"facSpoilageApartmentNumber",CONTACT_CITY:"facSpoilageCity",CONTACT_STATE:"facSpoilageState",CONTACT_ZIP_CODE:"facSpoilageZipcode",CONTACT_DAY_PHONE:"facSpoilagePhone",CONTACT_EMAIL:"facSpoilageEmail",TYPE_OF_BUSINESS:"facSpoilageBusinessType",CONTACT_ACT_NUM:"facSpoilageAccountNumber",OUTAGE_START_DATE:"facSpoilageStartDate",OUTAGE_START_TIME:"facSpoilageStartTime",OUTAGE_START_DAYTIME:"facSpoilageStartDaytime",OUTAGE_END_DATE:"facSpoilageEndDate",OUTAGE_END_TIME:"facSpoilageEndTime",OUTAGE_END_DAYTIME:"facSpoilageEndDayTime",TOTAL_LOST:"facSpoilageTotalLoss",SIGNATURE:"facSpoilageSignature",SIGNATURE_DATE:"facSpoilageSignatureDate",SIGNATURE_POSITION:"facSpoilageSignaturePosition",ITEM_TYPE:"facSpoilageItemType",ITEM_AMOUNT:"facSpoilageItemAmount",ITEM_COST:"facSpoilageItemCost",HIDDEN_CLASS:"hidden",CONED_INPUT_CLASS:"coned-input",VALID_CLASS:"valid",FILLED_CLASS:"coned-input--filled",FORM_WRAPPER_NO_BACKGROUND_CLASS:"coned-form-wrapper--no-background"},t=!1,i=function(i){var b,c,o,f,k,d,g,v,y,e,p,l,nt,a,r,ut,tt,s,ft,u,w,it,h,ct=function(){f.classList.contains(n.HIDDEN_CLASS)?(f.classList.remove(n.HIDDEN_CLASS),y.classList.add(n.HIDDEN_CLASS),r.setAttribute("data-rule-fileRequired","false"),r.removeAttribute("aria-required")):(f.classList.add(n.HIDDEN_CLASS),y.classList.remove(n.HIDDEN_CLASS),r.setAttribute("data-rule-fileRequired","true"),r.setAttribute("aria-required","true"))},lt=function(){f.classList.remove(n.HIDDEN_CLASS);y.classList.add(n.HIDDEN_CLASS);r.setAttribute("data-rule-fileRequired","false");r.setAttribute("aria-required","false");l.innerHTML=coned.utils.formatToCurrencyText(0,2);nt.innerHTML=0},et=function(){var t=0,n,i;if(e&&l){for(n=0;n<e.length;n++)e[n]&&e[n].value&&p[n]&&p[n].value&&(i=e[n].value.replace(/\,/g,"").substring(1),t=t+parseFloat(i,10)*parseInt(p[n].value));l.innerHTML=coned.utils.formatToCurrencyText(t,2)}},ot=function(){for(var i=0,t=0;t<k.length;t++)k[t].querySelectorAll(n.INPUT_FILLED_CLASS_SELECTOR).length>0&&(i=i+1);nt.innerHTML=i},rt=function(){if(!(h>=parseInt(o.dataset.maxRows))&&!(h>=f.children.length)){var t=f.children[h++],i=t.getElementsByClassName(n.CONED_INPUT_CLASS);_.each(i,function(n,t){n.disabled=!1;n.addEventListener("keyup",ot);t&&n.addEventListener("keyup",et)});t.classList.remove(n.HIDDEN_CLASS);h>=parseInt(o.dataset.maxRows)&&(o.disabled=!0,d&&d.parentElement.classList.remove(n.HIDDEN_CLASS));i[0].focus()}},at=function(){for(var t=!1,n=f.children.length-1;n>0;n--)t?rt():(t=_.filter(f.children[n].querySelectorAll("input"),function(n){return n.value!==""}).length>0,t&&rt())},vt=function(){w&&u&&u.getResponse()===""&&u.checkRecaptcha()},st=function(){query.addClass(tt,n.FORM_WRAPPER_NO_BACKGROUND_CLASS);b.style.display="none"},yt=function(){query.removeClass(tt,n.FORM_WRAPPER_NO_BACKGROUND_CLASS);b.style.display="block"},ht=function(){var t,a;if($(i).validate().valid()){var v=i.dataset.serviceUrl,o=new FormData,s=[],f;for(t=1;t<=h;t++)e[t-1].disabled||e[t-1].value===""||(a={Type:query.getFormInputValue(i,n.ITEM_TYPE+t),Quantity:query.getFormInputValue(i,n.ITEM_AMOUNT+t),Cost:query.getFormInputValue(i,n.ITEM_COST+t).replace("$","")},s.push(a));f={FormId:query.getFormInputValue(i,n.FORM_ID),Name:query.getFormInputValue(i,n.CONTACT_NAME),Address:query.getFormInputValue(i,n.CONTACT_ADDRESS),Apartment:query.getFormInputValue(i,n.CONTACT_APT),City:query.getFormInputValue(i,n.CONTACT_CITY),State:query.getFormInputValue(i,n.CONTACT_STATE),Zipcode:query.getFormInputValue(i,n.CONTACT_ZIP_CODE),DaytimePhone:query.getFormInputValue(i,n.CONTACT_DAY_PHONE),Email:query.getFormInputValue(i,n.CONTACT_EMAIL),Account:query.getFormInputValue(i,n.CONTACT_ACT_NUM),OutageStartDate:query.getFormInputValue(i,n.OUTAGE_START_DATE),OutageStartTime:query.getFormInputValue(i,n.OUTAGE_START_TIME),OutageStartPeriod:query.getFormInputValue(i,n.OUTAGE_START_DAYTIME),OutageEndDate:query.getFormInputValue(i,n.OUTAGE_END_DATE),OutageEndTime:query.getFormInputValue(i,n.OUTAGE_END_TIME),OutageEndPeriod:query.getFormInputValue(i,n.OUTAGE_END_DAYTIME),ItemsListAttached:c.checked,Items:JSON.stringify(s),TotalAmountLoss:c.checked?query.getFormInputValue(i,n.TOTAL_LOST).replace(/\,/g,"").substring(1):l.innerHTML.replace(/\,/g,"").substring(1),Signature:query.getFormInputValue(i,n.SIGNATURE),SignatureDate:query.getFormInputValue(i,n.SIGNATURE_DATE),IsCommercial:it};it&&(f.TypeOfBusiness=query.getFormInputValue(i,n.TYPE_OF_BUSINESS),f.SignaturePosition=query.getFormInputValue(i,n.SIGNATURE_POSITION));w&&u&&(f.Verify=u.getResponse());f=JSON.stringify(f);o.append("data",f);r&&r.fileList.length&&_.each(r.fileList,function(n){o.append("filesAttached",n)});query.postData(v,pt,wt,o,!1,ut)}},pt=function(){st();i.classList.add(n.HIDDEN_CLASS);s.style.display="block";g.style.display="block";window.scrollTo(0,0);g.focus();dataLayer.push({event:"coned.form.success"})},wt=function(){st();i.classList.add(n.HIDDEN_CLASS);s.style.display="block";v.style.display="block";window.scrollTo(0,0);v.focus()},bt=function(){b=document.getElementsByClassName(n.PAGE_HEADER)[0];tt=document.getElementsByClassName(n.FORM_WRAPPER)[0];s=document.getElementsByClassName(n.MESSAGE_WRAPPER)[0];o=i.getElementsByClassName(n.ADD_NEW_ROW_BUTTON)[0];f=i.getElementsByClassName(n.ITEMS_CONTAINER)[0];d=i.getElementsByClassName(n.MAX_ITEMS_MESSAGE)[0];g=s.getElementsByClassName(n.SUCCESS_MESSAGE)[0];v=s.getElementsByClassName(n.ERROR_MESSAGE)[0];y=i.getElementsByClassName(n.TOTAL_LOSS_INPUT)[0];a=i.getElementsByClassName(n.SIGNATURE_DATE_INPUT)[0];e=i.getElementsByClassName(n.CURRENCY_INPUT);p=i.getElementsByClassName(n.AMOUNT_INPUTS);k=i.getElementsByClassName(n.ITEM_ROW);ft=document.getElementsByClassName(n.TRY_AGAIN)[0];u=!1;w=i.getElementsByClassName(n.RECAPTCHA_ELEMENT)[0];it=i.dataset.isCommercial==="true";h=1;c=i.getElementsByClassName(n.ATTACH_FILE_CHECKBOX)[0];l=i.getElementsByClassName(n.TOTAL_ITEMS_COST)[0].getElementsByTagName("p")[0];nt=i.getElementsByClassName(n.TOTAL_ITEMS_AMOUNT)[0].getElementsByTagName("p")[0];r=i.getElementsByClassName(n.FILE_UPLOAD_INPUT)[0];ut=document.getElementsByClassName(n.FORM_LOADING)[0]},kt=function(){if(new coned.components.ValidateForm(i,vt),u=new coned.components.Recaptcha(i,ht,ht),c&&(c.addEventListener("change",ct),i.addEventListener("reset-form",lt)),a){var t=new Date,r=t.getDate(),f=t.getMonth()+1,e=t.getFullYear();t=f+"/"+r+"/"+e;a.value=t;a.disabled=!0;a.classList.add(n.FILLED_CLASS)}_.each(i.getElementsByClassName(n.ITEM_GROUP_1),function(n,t){n.addEventListener("keyup",ot);t&&n.addEventListener("keyup",et)});coned.utils.addGeneralListeners(ft,function(){i.classList.remove(n.HIDDEN_CLASS);s.style.display="none";v.style.display="none";i.scrollIntoView(!0);yt();w&&u&&u.getResponse()===""&&u.reset()});o&&coned.utils.addGeneralListeners(o,rt);setTimeout(at,1100);setTimeout(function(){$(i).find(n.CONED_INPUT).each(function(){$(this).val()&&($(this).addClass(n.INPUT_FILLED_CLASS),$(this).valid())});$(i).find(n.CONED_TEXT_AREA).each(function(){$(this).val()&&($(this).addClass(n.TEXT_AREA_FILLED_CLASS),$(this).valid())})},1e3)},dt=function(){bt();kt();t=!0};dt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.FileInputComponent=function(){var n={INPUT_SELECTOR:"js-coned-inputfile",INPUT_ID:"files",DRAG_SELECTOR:"js-coned-inputfile-drag",MESSAGE_SELECTOR:"js-label-message",ERROR_MESSAGE_SELECTOR:"js-error-message",ERROR_CONTAINER_SELECTOR:"coned-field-error-wrapper",FORM_RESET_BUTTON:"js-reset-button",FILE_LIST:"js-file-list"},i=!1,t=[],r=function(r){function h(t){var i=r.getElementsByClassName(n.ERROR_CONTAINER_SELECTOR)[0];t=t==""?u.files:t;f.innerHTML="";i&&(i.style.display="none");!u.dataset.maxAmount||t.length+u.fileList.length<=parseInt(u.dataset.maxAmount)?_.each(t,function(n){y(n)}):(u.value="",f.innerHTML=u.dataset.errorAmountMsg.replace("@AMOUNT",u.dataset.maxAmount))}function a(n){var i=["Bytes","KB","MB","GB","TB"],t;return n==0?"n/a":(t=parseInt(Math.floor(Math.log(n)/Math.log(1024))),t==0)?n+" "+i[t]:(n/Math.pow(1024,t)).toFixed(1)+" "+i[t]}function v(n){var r=u.dataset&&u.dataset.addedFileClass?" "+u.dataset.addedFileClass:"",i,s,f,h='<div class="coned-inputfile__item"><p class="coned-inputfile__item-name'+r+'"><span class="coned-inputfile__item-title">File name:<\/span> '+n.name+'<\/p><p class="coned-inputfile__item-name'+r+'"><span class="coned-inputfile__item-title">Type:<\/span> '+n.type+'<\/p><p class="coned-inputfile__item-name'+r+'"><span class="coned-inputfile__item-title">Size:<\/span> '+a(n.size)+'<\/p><button data-file="'+n.name+'" class="coned-inputfile__label-remove js-remove-file">Delete<\/button><\/div>',o;if(u.multiple){if(u.fileList.push(n),t.push(n.size),u.fileList.length)for(f=!0,i=0,s=u.fileList.length;i<s-1;i++)u.fileList[i].name===n.name&&u.fileList[i].size===n.size&&u.fileList[i].lastModifiedDate.toString()===n.lastModifiedDate.toString()&&(o=u.fileList.indexOf(n),u.fileList.splice(o,1),t.splice(o,1),f=!1);f&&(e.innerHTML+=h)}else u.fileList=[n],t=[n.size],e.innerHTML=h}function y(n){var i;if(n!==undefined){var o=u.dataset.formats.split(","),c=n.name.split(".")[n.name.split(".").length-1].toLowerCase(),s=n.size,l=u.dataset.errorExtensionMsg+" "+u.dataset.formats.split(",").join(", ").toUpperCase(),a=parseInt(u.dataset.maxSize),y=u.dataset.errorFileMsg+" "+u.dataset.maxSize+"MB",p=u.dataset.maxTotalSize?parseInt(u.dataset.maxTotalSize):null,w=u.dataset.maxTotalSize?u.dataset.errorMaxSizeFileMsg+" "+u.dataset.maxTotalSize+"MB":null,r=!1,e=!0,b=a*1048576,k=p*1048576,h,d=u.dataset.maxTotalSize?_.reduce(t,function(n,t){return n+t}):null;for(i=0;i<o.length;i++)if(h=o[i],h==c){r=!0;break}if(u.dataset.maxTotalSize&&s>k-d)return f.innerHTML="",f.innerHTML+=w,e=!1,u.value="",u.required&&!u.fileList.length&&query.fireEvent(u,"inputFileInvalid"),!1;if(s>b)return f.innerHTML="",f.innerHTML+=y,e=!1,u.value="",u.required&&!u.fileList.length&&query.fireEvent(u,"inputFileInvalid"),!1;if(!r)return f.innerHTML="",f.innerHTML+=l,u.value="",u.required&&!u.fileList.length&&query.fireEvent(u,"inputFileInvalid"),!1;r&&e&&(query.fireEvent(u,"inputFileValid"),v(n),f.innerHTML="")}}function p(n){n.preventDefault();c.innerHTML="";f.innerHTML="";u.value="";e.innerHTML="";u.fileList=[];t=[]}function w(){var i=this.dataset.file,n;for(u.value="",f.innerHTML="",n=0;n<u.fileList.length;n++)if(u.fileList[n].name===i){u.fileList.splice(n,1);t.splice(n,1);break}this.parentNode.remove()}var u,c,o,f,e,s,l=function(){u.addEventListener("change",function(n){var t=n.dataTransfer&&n.dataTransfer.files.length?n.dataTransfer.files:n.target.files&&n.target.files.length?n.target.files:null;t&&h(t)},!1);u.addEventListener("blur",function(){f.innerHTML=""})},b=function(){u=r.getElementsByClassName(n.INPUT_SELECTOR)[0];c=r.getElementsByClassName(n.MESSAGE_SELECTOR)[0];f=r.getElementsByClassName(n.ERROR_MESSAGE_SELECTOR)[0];o=document.getElementsByClassName(n.FORM_RESET_BUTTON)[0];e=r.getElementsByClassName(n.FILE_LIST)[0];s=r.getElementsByClassName(n.DRAG_SELECTOR)[0];u.fileList=[]},k=function(){window.File&&window.FileList&&window.FileReader&&l();o&&coned.utils.addGeneralListeners(o,p);$("body").on("click",".js-remove-file",w);window.addEventListener("dragenter",function(n){n.preventDefault()},!1);window.addEventListener("dragover",function(n){n.preventDefault()});window.addEventListener("drop",function(n){n.preventDefault();(n.target===r||r.contains(n.target))&&(n.dataTransfer&&n.dataTransfer.files.length?(r.value=n.dataTransfer.files[0].name,h(n.dataTransfer.files)):h(n.target.files))});u.addEventListener("focusin",function(){s.classList.add("coned-inputfile__drag--focus")});u.addEventListener("focusout",function(){s.classList.remove("coned-inputfile__drag--focus")})},d=function(){b();k();i=!0};d()};return r.prototype.isLoaded=function(){return i},r}();coned=coned||{};coned.components=coned.components||{};coned.components.FilterGroup=function(){var n={CLASSES:{FADE_IN:"filter-group__wrapper--fade-in",FOOTER_MOBILE_SHOW:"modal-footer--show",MODAL_ENABLE:"modal-enable"},SELECTORS:{GROUP:"js-filter-group",MODAL:"js-modal",MODAL_FOOTER:"js-modal-footer",FILTERS:"js-select-multiple",FILTERS_WRAPPER:"js-filter-group-wrapper",BUTTON_OPEN:"js-modal-open",BUTTON_CLEAR:"js-filter-group-button-clear",BUTTON_CLEAR_MOBILE:"js-filter-group-button-clear-mobile",BUTTON_CLEAR_TEXT:"js-filter-group-button-clear-text",BUTTON_CLEAR_MOBILE_TEXT:"js-filter-group-button-clear-mobile-text"},ATTRIBUTES:{DATA_COUNT:"data-count",TABINDEX:"tabindex",TABINDEX_ENABLE:"0",TABINDEX_DISABLE:"-1",ROLE:"role",BUTTON:"button",PRESENTATION:"presentation"},NAME_PART_MOBILE:"-mobile",MAX_TIMEOUT_CALLBACKS:10,GAP_WRAPPER:20},t=!1,i=function(i){var r,l,u,o,a,p,v,w,s,b,h,k,d,y,f,g,e,nt,c,rt=function(){var t=f.parentElement,i=f.classList.contains(n.CLASSES.MODAL_ENABLE);t&&(e=t.clientWidth<g,e&&!i?f.classList.add(n.CLASSES.MODAL_ENABLE):!e&&i&&f.classList.remove(n.CLASSES.MODAL_ENABLE),u&&(e?(u.setAttribute(n.ATTRIBUTES.TABINDEX,n.ATTRIBUTES.TABINDEX_ENABLE),u.setAttribute(n.ATTRIBUTES.ROLE,n.ATTRIBUTES.BUTTON),u.innerHTML=r.count>0?s+"("+r.count+")":s):(u.removeAttribute(n.ATTRIBUTES.TABINDEX),u.removeAttribute(n.ATTRIBUTES.ROLE),u.innerHTML=s)))},tt=function(t){t?c.classList.contains(n.CLASSES.FOOTER_MOBILE_SHOW)||c.classList.add(n.CLASSES.FOOTER_MOBILE_SHOW):c.classList.contains(n.CLASSES.FOOTER_MOBILE_SHOW)&&c.classList.remove(n.CLASSES.FOOTER_MOBILE_SHOW)},st=function(n){l=n.detail;setTimeout(function(){l.open?tt(r.count>0):tt(!1)},400)},it=function(n){var t=h.filter(function(t){return t.dataset.name===n});return t.length>0?t[0]:null},ht=function(){i.dataset.count=""+r.count;r.count>0?(o.setAttribute(coned.constants.ARIA.HIDDEN,"false"),v.innerHTML=b+"("+r.count+")",l.open&&tt(!0),e&&(u.innerHTML=s+"("+r.count+")"),d&&(a.innerHTML=w+"("+r.count+")")):(e&&(u.innerHTML=s),d&&(a.innerHTML=w),v.innerHTML=b,o.setAttribute(coned.constants.ARIA.HIDDEN,"true"))},ut=function(n){var t=0;r.filters.forEach(function(n){Array.isArray(n.value)&&(t+=n.value.length)});r.count=t;ht();n&&n()},ft=function(t,i){var u=t.name.replace(n.NAME_PART_MOBILE,""),e=u+n.NAME_PART_MOBILE,f=it(u===t.name?e:u);return r.filters=r.filters.filter(function(n){return n.name!==u}),r.filters.push({name:u,value:t.value}),f&&coned.utils.triggerEvent(f,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,{value:t.value}),ut(i)},ct=function(){coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,r)},lt=function(t){var i={name:t.detail.name,value:t.detail.value},u=i.name.includes(n.NAME_PART_MOBILE);if((e||!u)&&(!e||u)){if(!r.isLoadedData)return ft(i);if(y){y=!1;return}return ft(i,ct)}},et=function(){var u,t;for(o.setAttribute("disabled","true"),u=[];r.filters.length>0;)if(t=r.filters.shift(),t){var s={name:t.name,value:[]},h=t.name+n.NAME_PART_MOBILE,f=it(t.name),e=it(h);(f||e)&&(y=!0);f&&coned.utils.triggerEvent(f,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,{value:[]});e&&coned.utils.triggerEvent(e,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,{value:[]});u.push(s)}r.filters=u.concat();ut(function(){o.removeAttribute("disabled");coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,r)})},at=function(){r={filters:[],count:0,isLoadedData:!1};y=!1;k=0;l={open:!1};nt=i.getElementsByClassName(n.SELECTORS.MODAL)[0];c=i.getElementsByClassName(n.SELECTORS.MODAL_FOOTER)[0];u=i.getElementsByClassName(n.SELECTORS.BUTTON_OPEN)[0];f=i.getElementsByClassName(n.SELECTORS.FILTERS_WRAPPER)[0];o=i.getElementsByClassName(n.SELECTORS.BUTTON_CLEAR)[0];a=i.getElementsByClassName(n.SELECTORS.BUTTON_CLEAR_TEXT)[0];p=i.getElementsByClassName(n.SELECTORS.BUTTON_CLEAR_MOBILE)[0];v=i.getElementsByClassName(n.SELECTORS.BUTTON_CLEAR_MOBILE_TEXT)[0];w=a.innerHTML;s=u.innerHTML;b=v.innerHTML;d=i.hasAttribute(n.ATTRIBUTES.DATA_COUNT);g=0;coned.utils.arrayFrom(f.children).forEach(function(t){t instanceof HTMLElement&&(g+=t.clientWidth+n.GAP_WRAPPER)});h=coned.utils.arrayFrom(i.getElementsByClassName(n.SELECTORS.FILTERS));f&&rt()},vt=function(){f&&window.addEventListener("resize",rt);nt&&nt.addEventListener(coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,st);h.forEach(function(n){n.addEventListener(coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,lt)});o.addEventListener("click",et);p&&p.addEventListener("click",et)},ot=function(){k+=1;var t=h.filter(function(n){return n.dataset.moduleStarted===coned.constants.TRUE});t.length!==h.length&&k<n.MAX_TIMEOUT_CALLBACKS?setTimeout(ot,100):(r.isLoadedData=!0,f&&!f.classList.contains(n.CLASSES.FADE_IN)&&f.classList.add(n.CLASSES.FADE_IN),coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,r))},yt=function(){at();vt();ot();t=!0};yt()};return i.prototype.isLoaded=function(){return t},i}();coned=coned||{};coned.components=coned.components||{};coned.components.FilterTable=function(){var n={SELECTORS:{FILTER_GROUP:"js-filter-group",ROWS:"table tbody > tr",DEFAULT_ROW:'table tbody > tr[data-value="no-results"]'},ATTRIBUTES:{DATA_COLUMNS:"data-columns",DATA_VALUE:"data-value"},DEFAULT_ROW_DATA_VALUE:"no-results",MAX_TIMEOUT_CALLBACKS:10},t=!1,i=function(i){var r,e,u,f,o,h=function(n,t){var i=n.split(", ").map(function(n){return n.trim()}),r=t.split(", "),u=r.reduce(function(n,t,r){return n[i[r]]=t,n},{});return{value:t,data:u}},c=function(){if(r.rowsFiltered.length===r.rows.length)f.setAttribute(coned.constants.ARIA.HIDDEN,coned.constants.TRUE),u.forEach(function(n){n.setAttribute(coned.constants.ARIA.HIDDEN,coned.constants.FALSE)});else if(r.rowsFiltered.length===0)f.setAttribute(coned.constants.ARIA.HIDDEN,coned.constants.FALSE),u.forEach(function(n){n.setAttribute(coned.constants.ARIA.HIDDEN,coned.constants.TRUE)});else{f.setAttribute(coned.constants.ARIA.HIDDEN,coned.constants.TRUE);var n=r.rowsFiltered.map(function(n){return n.value});u.forEach(function(t){var i=t.dataset.value;i?i&&!n.includes(i)?t.setAttribute(coned.constants.ARIA.HIDDEN,coned.constants.TRUE):t.setAttribute(coned.constants.ARIA.HIDDEN,coned.constants.FALSE):t.setAttribute(coned.constants.ARIA.HIDDEN,coned.constants.TRUE)})}},l=function(n){var t,u,f;if(r.filterGroup=n,t=r.rows.concat(),u=n.filters.filter(function(n){return n.value.length>0}).map(function(n){return{name:n.name,values:n.value.join(",")}}),u.length===0)r.rowsFiltered=t.concat();else while(u.length>0)f=u.shift(),t=t.filter(function(n){return f.values.includes(n.data[f.name])});r.rowsFiltered=t.concat();c();r.isLoadedData===!0&&coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,r)},a=function(n){l(n.detail)},v=function(){r={filterGroup:null,rows:[],rowsFiltered:[],isLoadedData:!1};e=i.getElementsByClassName(n.SELECTORS.FILTER_GROUP)[0];f=i.querySelector(n.SELECTORS.DEFAULT_ROW);u=[];i.querySelectorAll(n.SELECTORS.ROWS).forEach(function(t){var f,e,i;t.getAttribute(n.ATTRIBUTES.DATA_VALUE)!==n.DEFAULT_ROW_DATA_VALUE&&(u.push(t),f=t.getAttribute(n.ATTRIBUTES.DATA_COLUMNS),e=t.getAttribute(n.ATTRIBUTES.DATA_VALUE),(f,e)&&(i=h(f,e),i&&(r.rows.push(i),r.rowsFiltered.push(i))))})},y=function(){e.addEventListener(coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,a)},s=function(){o+=1;!r.filterGroup&&o<n.MAX_TIMEOUT_CALLBACKS?setTimeout(s,100):(r.isLoadedData=!0,coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,r))},p=function(){v();y();s();t=!0};p()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.FiltersComponent=function(){var n={DROPDOWN_CONTAINER_SELECTOR:"js-dropdown-filter",DROPDOWN_BUTTON_SELECTOR:"js-dropdown-button",DROPDOWN_BUTTON_TITLE_SELECTOR:"js-dropdown-title",DROPDOWN_BUTTON_ICON_SELECTOR:"js-icon-carrot",DROPDOWN_SORT_SELECTOR:"js-dropdown-sort",DROPDOWN_LIST_SELECTOR:"js-dropdown-list",DROPDOWN_ITEM_SELECTOR:"js-dropdown-item",DROPDOWN_ITEM_LINK_SELECTOR:"js-dropdown-item-link",DROPDOWN_ITEM_DEFAULT_SELECTOR:"js-dropdown-item-default",DROPDOWN_BUTTON_ICON_OPEN_CLASS:"dropdown-filters__title-icon--open",DROPDOWN_BUTTON_ACTIVE_CLASS:"dropdown-filters__item-button--active",DROPDOWN_ITEM_ACTIVE_CLASS:"dropdown-list-item__link--active",RESULTS_LIST_SELECTOR:"js-results-list",RESULTS_LIST_FAQ_SELECTOR:"js-results-list-faq",RESULTS_LIST_CARDS_SELECTOR:"js-results-list-cards",RESULTS_ITEM_SELECTOR:"js-result-item",RESULTS_CARD_SELECTOR:"js-card-selector",RESULTS_CARD_ANIMATION_CLASS:"card-tile__zoom--animation",RESULTS_ALL_VALUE:"ALL",HEADER_WRAPPER_SELECTOR:"js-header-wrapper",PAGINATION_SELECTOR:"js-pagination-wrapper",PAGINATION_RESULTS_SELECTOR:"js-pagination-results",PAGINATION_RESULTS_TOTAL_SELECTOR:"js-total",PAGINATION_RESET_SELECTOR:"js-pagination-reset",TAB_FILTER_SELECTOR:"js-tab-filter",TAB_FILTER_ITEM_SELECTOR:"js-tab-item-filter",TAB_FILTER_ACTIVE_CLASS:"search-filters__by-nav-item--active",FILTERS_SELECTOR:"js-filter",FILTERS_RESET_SELECTOR:"js-filters-reset",FILTER_BACK:"js-back",FILTER_BACK_ACTIVE:"js-back-active",FILTER_TOP:"js-filters-top",FILTER_CONTENT:"js-filters-content",FILTER_CONTENT_ACTIVE:"filters__content--active",FILTER_DROPDOWN_ITEM:"js-filter-dropdown",FILTER_DROPDOWN_ITEM_OPEN:"js-filter-open",FILTER_LISTS:"js-list-item",FILTER_LISTS_SEARCH:"js-list-item-search",FILTER_SEARCH_CONTAINER:"js-item-search-container",FILTER_SEARCH_OPTIONS_CONTAINER:"js-text-search-container",FILTER_SEARCH_OPTIONS_CLASS:"filters__search-container--fixed",FILTER_MAIN_ACTIVE_CLASS:"filters__item--active",FILTER_MAIN_ACTIVE_SELECTOR:"js-filters-active",FILTER_SHOW_FILTERS:"js-show-filters",FILTER_RESULTS_INFO:"js-results-info",FILTER_ITEM_VISIBILITY:"js-check-visibility",FILTER_ITEM_ACTIVE_CLASS:"filters__list-item--active",FILTER_ITEM_HIDDEN_CLASS:"filters__list-item--hidden",FILTER_MAIN_SUBTITLE:"js-subcategory-label",FILTER_MAIN_SUBTITLE_ACTIVE:"filters__sub-category--active",FILTERS_OPEN_MOBILE_CLASS:"filters--open",FILTERS_RESULTS_WRAPPER:"js-filter-results-wrapper",FILTERS_MOBILE_TITLE:"js-mobile-title",FILTERS_RESULTS_EMPTY:"js-filter-results-empty",FILTERS_TOTAL_RESULTS:"js-filter-total-results",FILTERS_RESULT_NUMBERS:"js-filter-result-numbers",FILTERS_RESET_BUTTON:"js-filters-reset-button",FILTERS_DEPENDENCY_FILTER:"faceted-search__dependency-filter",FILTER_LISTBOX:"js-filter-listbox",FILTERS_RESET_CTA:"js-filters-reset-cta",LOADING_CLASS:"js-form-loading",HIDDEN_LOADING_CLASS:"form-loading--hidden",TEXT_SEARCH_INPUT_SELECTOR:"js-text-search-input",DISABLE_ATTRIBUTE:"disabled",HIDDEN_CLASS:"hidden",SELECTED_CLASS:"selected",FILTERS_RESET_BUTTON_HIDDEN_CLASS:"filters__clear-button--hidden",ARIA_EXPANDED:"aria-expanded",ARIA_SELECTED:"aria-selected"},t=!1,i=function(i){var k,ft,et,at,vt,yt,pt,y,oi,si,wt,ot,r,bt,kt,h,dt,p,c,l,f,e,d,gt,o,tt,st,ni,w,s,it,b,ti,g,ii,u,a,nt,ri,ht,ct=function(){query.hasClass(l,n.FILTER_BACK_ACTIVE)?(v(),l.classList.remove(n.FILTER_BACK_ACTIVE),tt.innerHTML=f.dataset.defaultFilterName):(e.classList.remove(n.FILTER_CONTENT_ACTIVE),d.classList.remove(n.HIDDEN_CLASS),o.classList.remove(n.HIDDEN_CLASS),i.classList.remove(n.FILTERS_OPEN_MOBILE_CLASS),o.classList.remove(n.HIDDEN_CLASS),f.classList.add(n.HIDDEN_CLASS),p.classList.add(n.HIDDEN_CLASS),k.classList.remove(coned.constants.MOBILE_OVERLAY_OPEN),coned.utils.isMobile()&&(w.setAttribute(n.ARIA_EXPANDED,!1),w.focus()))},rt=function(t){t?p.classList.remove(n.HIDDEN_CLASS):(p.classList.add(n.HIDDEN_CLASS),i.classList.remove(n.FILTERS_OPEN_MOBILE_CLASS))},ki=function(){w.setAttribute(n.ARIA_EXPANDED,!0);e.classList.add(n.FILTER_CONTENT_ACTIVE);d.classList.add(n.HIDDEN_CLASS);o.classList.add(n.HIDDEN_CLASS);i.classList.add(n.FILTERS_OPEN_MOBILE_CLASS);f.classList.remove(n.HIDDEN_CLASS);k.classList.add(coned.constants.MOBILE_OVERLAY_OPEN);rt(!0);l.focus();window.scrollTo(0,0)},di=function(t,i){var f;if(i.preventDefault(),query.hasClass(t,n.FILTER_DROPDOWN_ITEM_OPEN))v();else{var o=t.dataset.filterCriteria,u=t.offsetLeft,s=t.offsetHeight,a=t.offsetWidth,r,e;for(v(),t.classList.add(n.FILTER_MAIN_ACTIVE_CLASS),t.classList.add(n.FILTER_MAIN_ACTIVE_SELECTOR),t.classList.toggle(n.FILTER_DROPDOWN_ITEM_OPEN),t.setAttribute(n.ARIA_EXPANDED,!0),coned.utils.isMobile()&&Array.prototype.forEach.call(c,function(t){t.classList.add(n.HIDDEN_CLASS)}),f=0;f<h.length;f++)if(r=h[f],e=r.getElementsByClassName(n.TEXT_SEARCH_INPUT_SELECTOR)[0],r.dataset.listValue===o){tt.innerHTML=r.dataset.listName;l.classList.add(n.FILTER_BACK_ACTIVE);r.classList.remove(n.HIDDEN_CLASS);coned.utils.isMobile()||(u>=a&&(u=u-60),r.style.position="absolute",r.style.top=s+"px",r.style.left=u+"px",TweenMax.from(r,.5,{y:15,opacity:0}));e&&(e.value="");coned.utils.focusFirstFormInputField(r);break}}},v=function(){Array.prototype.forEach.call(c,function(t){t.classList.remove(n.FILTER_DROPDOWN_ITEM_OPEN);t.classList.remove(n.FILTER_MAIN_ACTIVE_CLASS);t.classList.remove(n.FILTER_MAIN_ACTIVE_SELECTOR);t.setAttribute(n.ARIA_EXPANDED,!1);coned.utils.isMobile()&&t.classList.remove(n.HIDDEN_CLASS)});Array.prototype.forEach.call(h,function(t){t.classList.add(n.HIDDEN_CLASS)})},gi=function(n,t){t.preventDefault();hi(n);fi()},hi=function(t){query.hasClass(t,n.TAB_FILTER_ACTIVE_CLASS)||(query.removeClass(ot,n.TAB_FILTER_ACTIVE_CLASS),wt.dataset.value=t.dataset.value,wt.dataset.name=t.dataset.name,t.classList.add(n.TAB_FILTER_ACTIVE_CLASS))},ui=function(t,r){var s,u;r.preventDefault();var c=t.parentNode.parentNode.parentNode.dataset.listValue,l=t.parentNode.dataset.value,h=document.querySelectorAll('[data-dependency-parent="'+c+'"]');(h&&Array.prototype.forEach.call(h,function(t){var i=t.dataset.dependencyId.split("|"),r=i.includes(l);r?t.classList.contains(n.FILTERS_DEPENDENCY_FILTER)&&t.classList.remove(n.FILTERS_DEPENDENCY_FILTER):t.classList.contains(n.FILTERS_DEPENDENCY_FILTER)||t.classList.add(n.FILTERS_DEPENDENCY_FILTER)}),t.classList.contains(n.FILTER_ITEM_ACTIVE_CLASS))||(b.classList.remove(n.HIDDEN_LOADING_CLASS),s=query.selectParentElement(t,n.DROPDOWN_ITEM_SELECTOR),u=document.getElementsByClassName(n.FILTER_MAIN_ACTIVE_SELECTOR)[0],ci(u,s,!0),i.classList.remove(n.FILTERS_OPEN_MOBILE_CLASS),o.classList.remove(n.HIDDEN_CLASS),query.hasClass(u,n.DROPDOWN_SORT_SELECTOR)?ai(s.dataset.value):(fi(),ti&&li()),v(),u.focus(),coned.utils.isMobile()&&(e.classList.remove(n.FILTER_CONTENT_ACTIVE),d.classList.remove(n.HIDDEN_CLASS),f.classList.add(n.HIDDEN_CLASS),p.classList.add(n.HIDDEN_CLASS),k.classList.remove(coned.constants.MOBILE_OVERLAY_OPEN),w.focus()),b.classList.add(n.HIDDEN_LOADING_CLASS))},ci=function(t,i,r){if(!query.hasClass(i,n.FILTER_ITEM_ACTIVE_CLASS)){var e=t.getElementsByClassName(n.FILTER_MAIN_SUBTITLE)[0],s=t.dataset.defaultTitle,h=i.parentNode.getElementsByClassName(n.DROPDOWN_ITEM_SELECTOR),o=!1,c=query.selectParentElement(i,n.DROPDOWN_ITEM_SELECTOR);if(t.classList.add(n.SELECTED_CLASS),e.innerHTML=i.innerText,s&&i&&i.innerText&&s===i.innerText.trim()?(e.classList.remove(n.FILTER_MAIN_SUBTITLE_ACTIVE),o=!0):(e.classList.add(n.FILTER_MAIN_SUBTITLE_ACTIVE),o=!1),t.dataset.value=i.dataset.value,t.dataset.name=i.dataset.name,Array.prototype.forEach.call(h,function(t){t.classList.remove(n.FILTER_ITEM_ACTIVE_CLASS);i.classList.remove(n.HIDDEN_CLASS);t.setAttribute(n.ARIA_SELECTED,!1)}),i.classList.add(n.FILTER_ITEM_ACTIVE_CLASS),i.setAttribute(n.ARIA_SELECTED,!0),r){var u=coned.utils.getUrlParameters(),f=t.dataset.filterCriteria.trim(),l=c.dataset.value.trim();o?u[f]&&(u[f]=undefined):(delete u[f],u[f]=l);coned.utils.setUrlParameters(u)}}},li=function(){var i,r,t=Array.prototype.find.call(c,function(t){return t.classList.contains(n.SELECTED_CLASS)});t.dataset.defaultTitle&&t.dataset.value&&t.dataset.defaultTitle.toLowerCase()===t.dataset.value.toLowerCase()?(Array.prototype.forEach.call(et,function(t){t.classList.remove(n.FILTER_ITEM_HIDDEN_CLASS)}),Array.prototype.forEach.call(c,function(t){var i=t.getElementsByClassName(n.FILTER_MAIN_SUBTITLE)[0],r=t.dataset.defaultTitle;t.removeAttribute(n.DISABLE_ATTRIBUTE);i.innerHTML=r}),Array.prototype.forEach.call(dt,function(t){var u=t.getElementsByClassName(n.TEXT_SEARCH_INPUT_SELECTOR)[0];r=t.getElementsByClassName(n.FILTER_SEARCH_CONTAINER)[0];r.classList.remove(n.HIDDEN_CLASS);u.classList.remove(n.HIDDEN_CLASS);i=t.getElementsByClassName(n.FILTER_SEARCH_OPTIONS_CONTAINER);Array.prototype.forEach.call(i,function(t){t.classList.add(n.FILTER_SEARCH_OPTIONS_CLASS)})}),t.classList.remove(n.SELECTED_CLASS)):Array.prototype.forEach.call(c,function(t){t.classList.contains(n.SELECTED_CLASS)?t.classList.remove(n.SELECTED_CLASS):nr(t)})},nr=function(t){var s=t.dataset.filterCriteria,i=Array.prototype.find.call(h,function(n){return n.dataset.listValue===s}),u=i.getElementsByClassName(n.DROPDOWN_ITEM_SELECTOR),f,e=t.getElementsByClassName(n.FILTER_MAIN_SUBTITLE)[0],y=t.dataset.defaultTitle,c=t.dataset.noneTitle,l,r,o,v;a.length?Array.prototype.forEach.call(u,function(t){var i=a.findIndex(function(n){var i=n.data[s];return i.search(t.dataset.value)>-1});i===-1?t.classList.add(n.FILTER_ITEM_HIDDEN_CLASS):t.classList.remove(n.FILTER_ITEM_HIDDEN_CLASS)}):Array.prototype.forEach.call(u,function(t){t.classList.add(n.FILTER_ITEM_HIDDEN_CLASS)});f=Array.prototype.filter.call(u,function(t){return!t.classList.contains(n.FILTER_ITEM_HIDDEN_CLASS)});f.length?(t.removeAttribute(n.DISABLE_ATTRIBUTE),e.innerHTML===c&&(e.innerHTML=y),i.classList.contains(n.FILTER_LISTS_SEARCH)&&(r=i.getElementsByClassName(n.FILTER_SEARCH_CONTAINER)[0],o=i.getElementsByClassName(n.FILTER_SEARCH_OPTIONS_CONTAINER),l=i.dataset.searchMinimun,v=r.getElementsByClassName(n.TEXT_SEARCH_INPUT_SELECTOR)[0],v.classList.toggle(n.HIDDEN_CLASS),f.length<=l?(r.classList.add(n.HIDDEN_CLASS),Array.prototype.forEach.call(o,function(t){t.classList.remove(n.FILTER_SEARCH_OPTIONS_CLASS)})):(r.classList.remove(n.HIDDEN_CLASS),Array.prototype.forEach.call(o,function(t){t.classList.add(n.FILTER_SEARCH_OPTIONS_CLASS)})))):(t.setAttribute(n.DISABLE_ATTRIBUTE,n.DISABLE_ATTRIBUTE),e.innerHTML=c)},ai=function(n){u=u.sort(function(t,i){return parseFloat(i.getAttribute("data-"+n))-parseFloat(t.getAttribute("data-"+n))});ut()},fi=function(){var e=!0,o,i=[],t=[],f;a=ii.slice(0);Array.prototype.forEach.call(r,function(r){r.dataset.value!=undefined&&r.dataset.value!=""&&r.dataset.value!=n.RESULTS_ALL_VALUE&&(e=!1,t.push(r.dataset.name),t.push("|"),i.push({criteria:r.dataset.filterCriteria,value:r.dataset.value}))});i.length&&tr(i);t.pop();o=t.join("");ir(o,u.length);e?(vi(),pi()):er();vt!=undefined?(f=vt.getElementsByClassName(n.DROPDOWN_ITEM_ACTIVE_CLASS)[0],f!=undefined?ai(f.dataset.value):ut()):ut()},tr=function(n){n.length&&(a=a.filter(function(t){for(var r,f,u,i=0;i<n.length;i++)if(u=n[i],r=t.data[u.criteria],r){if(f=r.toUpperCase().split("|"),!f.includes(u.value.toUpperCase()))return!1}else return!1;return!0}),u=[],a.forEach(function(n){u.push(g[n.index])}))},ut=function(){var t="",r=[],e=u.length;u.forEach(function(n){r.push(n.outerHTML)});t=r.join("");s.innerHTML=t;e?(ri&&(e===nt?st.classList.add(n.HIDDEN_CLASS):st.classList.remove(n.HIDDEN_CLASS)),ni.classList.remove(n.HIDDEN_CLASS),gt.classList.add(n.HIDDEN_CLASS)):(ni.classList.add(n.HIDDEN_CLASS),gt.classList.remove(n.HIDDEN_CLASS));coned.utils.isMobile()?(l.classList.remove(n.FILTER_BACK_ACTIVE),tt.innerHTML=f.dataset.defaultFilterName,window.scrollTo(0,i.offsetTop-yt.offsetHeight)):coned.utils.scrollTo(i.offsetTop-yt.offsetHeight,500);rr();ur()},ir=function(n,t){dataLayer.push({event:"hem",hem:n,hemResults:t})},rr=function(){if(query.hasClass(s,n.RESULTS_LIST_CARDS_SELECTOR)){var t=s.getElementsByClassName(n.RESULTS_CARD_SELECTOR);coned.utils.initializeModules(s);Array.prototype.forEach.call(t,function(t){query.addClass(t,n.RESULTS_CARD_ANIMATION_CLASS)});new coned.components.LoadCardTiles(s)}else query.hasClass(s,n.RESULTS_LIST_FAQ_SELECTOR)&&new coned.components.CollapsibleContainerComponent(s)},ur=function(){var t=pt.dataset.divider,r=pt.dataset.tabletdivider,i=t*1,n,u;for(r&&coned.utils.isTablet()&&(t=r,i=t*1),Array.prototype.forEach.call(y.children,function(n){query.addClass(n,y.dataset.resultsHide)}),n=i-t;n<i&&n<y.children.length;n++)u=y.children[n],query.removeClass(u,y.dataset.resultsHide);oi.innerHTML=y.children.length;si.click()},vi=function(){u=g},fr=function(n,t){t.preventDefault();yi();coned.utils.setUrlParameters()},yi=function(){var t,u;b.classList.remove(n.HIDDEN_LOADING_CLASS);Array.prototype.forEach.call(et,function(t){t.classList.remove(n.FILTER_ITEM_ACTIVE_CLASS)});Array.prototype.forEach.call(r,function(t){var r=t.getElementsByClassName(n.FILTER_MAIN_SUBTITLE)[0],u=t.dataset.filterCriteria,o=e.querySelectorAll("[data-list-value="+u+"]")[0],i=o.getElementsByClassName(n.DROPDOWN_ITEM_DEFAULT_SELECTOR),f=document.querySelectorAll('[data-dependency-parent="'+u+'"]');f&&Array.prototype.forEach.call(f,function(t){t.classList.contains(n.FILTERS_DEPENDENCY_FILTER)||t.classList.add(n.FILTERS_DEPENDENCY_FILTER)});i&&i.length?(i=i[0],r.innerText=i.dataset.value,t.dataset.value=i.dataset.value,t.dataset.name="",i.classList.add(n.FILTER_ITEM_ACTIVE_CLASS),i.setAttribute(n.ARIA_SELECTED,!0)):(r.innerText=t.dataset.defaultTitle,t.dataset.value=n.RESULTS_ALL_VALUE,t.dataset.name="",i.setAttribute(n.ARIA_SELECTED,!1));r.classList.remove(n.FILTER_MAIN_SUBTITLE_ACTIVE)});Array.prototype.forEach.call(dt,function(i){t=i.getElementsByClassName(n.FILTER_SEARCH_CONTAINER)[0];var r=i.getElementsByClassName(n.TEXT_SEARCH_INPUT_SELECTOR)[0];t.classList.remove(n.HIDDEN_CLASS);r.classList.remove(n.HIDDEN_CLASS);u=i.getElementsByClassName(n.FILTER_SEARCH_OPTIONS_CONTAINER);Array.prototype.forEach.call(u,function(t){t.classList.add(n.FILTER_SEARCH_OPTIONS_CLASS)})});coned.utils.isMobile()?(Array.prototype.forEach.call(h,function(t){t.classList.add(n.HIDDEN_CLASS)}),l.classList.remove(n.FILTER_BACK_ACTIVE),tt.innerHTML=f.dataset.defaultFilterName,e.classList.remove(n.FILTER_CONTENT_ACTIVE),d.classList.remove(n.HIDDEN_CLASS),o.classList.remove(n.HIDDEN_CLASS),i.classList.remove(n.FILTERS_OPEN_MOBILE_CLASS),o.classList.remove(n.HIDDEN_CLASS),f.classList.add(n.HIDDEN_CLASS),p.classList.add(n.HIDDEN_CLASS),k.classList.remove(coned.constants.MOBILE_OVERLAY_OPEN),w.focus()):v();Array.prototype.forEach.call(et,function(t){t.classList.remove(n.FILTER_ITEM_HIDDEN_CLASS)});Array.prototype.forEach.call(c,function(t){var i=t.getElementsByClassName(n.FILTER_MAIN_SUBTITLE)[0],r=t.dataset.defaultTitle;t.removeAttribute(n.DISABLE_ATTRIBUTE);i.innerHTML=r});vi();ut();pi();b.classList.add(n.HIDDEN_LOADING_CLASS);c[0].focus()},pi=function(){bt.classList.add(n.FILTERS_RESET_BUTTON_HIDDEN_CLASS);kt.classList.add(n.HIDDEN_CLASS)},er=function(){bt.classList.remove(n.FILTERS_RESET_BUTTON_HIDDEN_CLASS);kt.classList.remove(n.HIDDEN_CLASS)},wi=function(){var u=coned.utils.getUrlParameters(),a,o,i,t,s,f,c,e,l;b.classList.remove(n.HIDDEN_LOADING_CLASS);for(i in u)if(u.hasOwnProperty(i)&&u[i])for(a=i,o=u[i],t=0;t<r.length;t++)if(r[t].dataset.filterCriteria==a){if(query.hasClass(r[t],n.FILTER_DROPDOWN_ITEM)){for(s=h[t].getElementsByClassName(n.DROPDOWN_ITEM_SELECTOR),r[t].classList.add(n.FILTER_MAIN_ACTIVE_SELECTOR),f=0;f<s.length;f++)if(c=s[f],c.dataset.value==o){ci(r[t],c,!1);fi();ti&&li();break}r[t].classList.remove(n.FILTER_MAIN_ACTIVE_SELECTOR)}else if(query.hasClass(r[t],n.TAB_FILTER_SELECTOR))for(e=0;e<ot.length;e++)if(l=ot[e],l.dataset.value==o){hi(l);break}break}b.classList.add(n.HIDDEN_LOADING_CLASS)},or=function(){var t=window.innerWidth;ut();coned.constants.TABLET_MIN_SIZE<=ht&&coned.constants.TABLET_MIN_SIZE>t?(Array.prototype.forEach.call(h,function(t){t.classList.add(n.HIDDEN_CLASS);t.removeAttribute("style")}),rt()):coned.constants.TABLET_MIN_SIZE>ht&&coned.constants.TABLET_MIN_SIZE<=t&&(e.classList.remove(n.FILTER_CONTENT_ACTIVE),d.classList.remove(n.HIDDEN_CLASS),o.classList.remove(n.HIDDEN_CLASS),i.classList.remove(n.FILTERS_OPEN_MOBILE_CLASS),o.classList.remove(n.HIDDEN_CLASS),f.classList.add(n.HIDDEN_CLASS),p.classList.add(n.HIDDEN_CLASS),k.classList.remove(coned.constants.MOBILE_OVERLAY_OPEN),rt(!0),v());ht=t},sr=function(t,r){var u,f,e,o;switch(t.keyCode){case coned.constants.KEY_CODE.ENTER:case coned.constants.KEY_CODE.SPACE:t.preventDefault();ui(t.target,t);break;case coned.constants.KEY_CODE.HOME:t.preventDefault();u=lt(r,r[0]);u.focus();break;case coned.constants.KEY_CODE.END:t.preventDefault();f=r.length-1;e=ei(r,r[f]);e.focus();break;case coned.constants.KEY_CODE.RIGHT:case coned.constants.KEY_CODE.LEFT:case coned.constants.KEY_CODE.UP:case coned.constants.KEY_CODE.DOWN:t.preventDefault();hr(r,t.target,t.keyCode);break;case coned.constants.KEY_CODE.TAB:coned.utils.isDesktop()?v():ct();break;case coned.constants.KEY_CODE.ESC:o=i.getElementsByClassName(n.FILTER_MAIN_ACTIVE_SELECTOR)[0];coned.utils.isDesktop()?v():ct();o.focus()}},hr=function(n,t,i){var r;r=i===coned.constants.KEY_CODE.RIGHT||i===coned.constants.KEY_CODE.DOWN?lt(n,t.nextElementSibling):ei(n,t.previousElementSibling);r&&r.focus()},lt=function(n,t){if(t||(t=n[0]),bi(t)){var i=t.nextElementSibling;t=lt(n,i)}return t},ei=function(n,t){var i,r;return t||(i=n.length-1,t=n[i]),bi(t)&&(r=t.previousElementSibling,t=ei(n,r)),t},bi=function(t){return t.classList.contains(n.HIDDEN_CLASS)||t.classList.contains(n.FILTER_ITEM_HIDDEN_CLASS)},cr=function(){var t,v,rt;for(ti=i.dataset.conditionalFiltering&&i.dataset.conditionalFiltering!=0||!1,ri=i.dataset.hideTotalNumber&&i.dataset.hideTotalNumber!=0||!1,k=document.getElementsByClassName(coned.constants.BODY_CLASS)[0],ft=i.getElementsByClassName(n.FILTER_LISTBOX),h=i.getElementsByClassName(n.FILTER_LISTS),dt=i.getElementsByClassName(n.FILTER_LISTS_SEARCH),p=i.getElementsByClassName(n.FILTER_ITEM_VISIBILITY)[0],c=i.getElementsByClassName(n.FILTER_DROPDOWN_ITEM),l=i.getElementsByClassName(n.FILTER_BACK)[0],e=i.getElementsByClassName(n.FILTER_CONTENT)[0],f=i.getElementsByClassName(n.FILTER_TOP)[0],w=i.getElementsByClassName(n.FILTER_SHOW_FILTERS)[0],d=i.getElementsByClassName(n.FILTER_RESULTS_INFO)[0],o=document.getElementsByClassName(n.FILTERS_RESULTS_WRAPPER)[0],tt=i.getElementsByClassName(n.FILTERS_MOBILE_TITLE)[0],st=i.getElementsByClassName(n.FILTERS_TOTAL_RESULTS)[0],ni=i.getElementsByClassName(n.FILTERS_RESULT_NUMBERS)[0],et=i.getElementsByClassName(n.DROPDOWN_ITEM_SELECTOR),at=i.getElementsByClassName(n.DROPDOWN_SORT_SELECTOR)[0],at&&(vt=at.getElementsByClassName(n.DROPDOWN_LIST_SELECTOR)[0]),yt=document.getElementsByClassName(n.HEADER_WRAPPER_SELECTOR)[0],pt=document.getElementsByClassName(n.PAGINATION_SELECTOR)[0],y=document.getElementsByClassName(n.PAGINATION_RESULTS_SELECTOR)[0],oi=document.getElementsByClassName(n.PAGINATION_RESULTS_TOTAL_SELECTOR)[0],si=document.getElementsByClassName(n.PAGINATION_RESET_SELECTOR)[0],wt=document.getElementsByClassName(n.TAB_FILTER_SELECTOR)[0],ot=document.getElementsByClassName(n.TAB_FILTER_ITEM_SELECTOR),r=document.getElementsByClassName(n.FILTERS_SELECTOR),gt=document.getElementsByClassName(n.FILTERS_RESULTS_EMPTY)[0],bt=document.getElementsByClassName(n.FILTERS_RESET_BUTTON)[0],kt=document.getElementsByClassName(n.FILTERS_RESET_CTA)[0],b=document.getElementsByClassName(n.LOADING_CLASS)[0],s=document.getElementsByClassName(n.RESULTS_LIST_SELECTOR)[0],it=s.getElementsByClassName(n.RESULTS_ITEM_SELECTOR),nt=it.length,g=new Array(nt),ii=new Array(nt),u=new Array(nt),a=new Array(nt),t=0;t<it.length;t++){g[t]=it[t].cloneNode(!0);u[t]=it[t].cloneNode(!0);v={};for(rt in g[t].dataset)v[coned.utils.toHyphenCase(rt)]=g[t].dataset[rt];ii[t]={data:v,index:t};a[t]={data:v,index:t}}},lr=function(){for(var t=0;t<ft.length;t++)ft[t].addEventListener("focus",function(n){var t=lt(n.target.children,n.target.firstElementChild);t.focus()}),function(n){n.addEventListener("keydown",function(t){sr(t,n.children)})}(ft[t]);i.addEventListener("focusout",function(t){coned.utils.isMobile()&&i.classList.contains(n.FILTERS_OPEN_MOBILE_CLASS)&&!i.contains(t.relatedTarget)&&ct()});coned.utils.isMobile()?coned.utils.addParentListener(e,["click"],n.DROPDOWN_ITEM_SELECTOR,ui):coned.utils.addParentListener(e,coned.utils.generalEvents(),n.DROPDOWN_ITEM_SELECTOR,ui);coned.utils.addParentListener(i,coned.utils.generalEvents(),n.TAB_FILTER_ITEM_SELECTOR,gi);coned.utils.addParentListener(i,coned.utils.generalEvents(),n.FILTERS_RESET_SELECTOR,fr);coned.utils.addParentListener(i,coned.utils.generalEvents(),n.FILTER_DROPDOWN_ITEM,di);l.addEventListener("click",ct);w.addEventListener("click",ki);window.addEventListener("resize",or);ht=window.innerWidth;coned.utils.isMobile()?rt():rt(!0);ri||st.classList.remove(n.HIDDEN_CLASS);window.addEventListener("popstate",function(){yi();wi()});wi()},ar=function(){cr();lr();t=!0};ar()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.FinancialStatement=function(){var n={CONED_INPUTS_SELECTOR:"js-coned-input",CONED_FORM_FIELDSET_SELECTOR:"js-coned-form__fieldset",INCOME_GOVERNMENT_BENEFITS_FIELDSET_SELECTOR:"js-fieldset-income-government-benefits",EXPENSES_FIELDSET_SELECTOR:"js-fieldset-expenses",TOTAL_CONTAINER_SELECTOR:"js-total-container",SIGNATURE_DATE_INPUT_SELECTOR:"js-signature-date",TOTAL_RESULT_CLASS:"js-total-result",DESCRIBE_YOU_RADIO_BUTTONS_NAME:"describeYouOption",OPTION_RESIDENTIAL_SELECTOR:"js-option-residential",OPTION_COMMERCIAL_SELECTOR:"js-option-commercial",CONTINUE_TO_FORM_BUTTON_SELECTOR:"js-continue-to-form",FINANCIAL_STATEMENT_QUESTIONS_SELECTOR:"js-financial-statement-questions",FINANCIAL_STATEMENT_MAIN_FORM_SELECTOR:"js-financial-statement-main-form",INITIAL_FORM_FOCUS_SELECTOR:"js-form-initial-focus",TOTAL_RESULT_HIDDEN_INPUTS_SELECTOR:"js-total-result-hidden-input",MY_ACCOUNT_RESIDENTIAL_BUTTON_SELECTOR:"js-my-account-residential",MY_ACCOUNT_COMMERCIAL_BUTTON_SELECTOR:"js-my-account-commercial",FINANCIAL_STATEMENT_INITIAL_FORM_SELECTOR:"js-financial-statement-initial-form",PAYMENT_ASSISTANCE_BUTTON_SELECTOR:"js-payment-assistance",SUMBIT_BUTTON:"form__actions-submit-button",SUCCESS_MESSAGE:"js-success-message",SUCCESS_ALT_MESSAGE:"js-success-alt-message",FORM_SUMBIT_SUCCESS_EVENT:"form-submit-success",HIDDEN_CLASS:"hidden",ARIA_HIDDEN:"aria-hidden",FILLED_CLASS:"coned-input--filled",STRONG_TAG:"STRONG",BLUR_EVENT:"blur",CHANGE_EVENT:"change",RESIDENTIAL_CUSTOMER:"residentialCustomer",COMMERCIAL_CUSTOMER:"commercialCustomer",TRUE_VALUE:"true",FALSE_VALUE:"false",NONE_VALUE:"none",BLOCK_VALUE:"block",TABINDEX_ATTRIBUTE:"tabindex",LOGIN_ACCOUNT_TAG:"tag.statementform.loginaccount",CONTINUE_TO_FORM_TAG:"tag.statementform.continuetoform",GET_ASSISTANCE_TAG:"tag.statementform.getassistance",FORM_NOT_ELIGIBLE:"coned.form.noteligible",FSF_QUALIFY_TAG:"fsf.qualify",RESIDENTIAL_ACCOUNT:"R",COMMERCIAL_ACCOUNT:"C",STEP_1_LOG_IN_MY_ACCOUNT:"step.01.log.in.my.account",STEP_1_CONTINUE_TO_FORM:"step.01.continue.to.form",STEP_1_GET_PAYMENT_ASSISTANCE:"step.01.get.payment.assistance"},t=!1,i=function(i){var a,e,o,v,u,y,p,w,b,r,k,d,g,nt,tt,s,h,it,c,l=function(t,i){query.addClass(i,n.HIDDEN_CLASS);query.removeClass(t,n.HIDDEN_CLASS)},ut=function(){var t=query.getRadioInputValue(i,n.DESCRIBE_YOU_RADIO_BUTTONS_NAME);t===n.RESIDENTIAL_CUSTOMER?l(e,o):t===n.COMMERCIAL_CUSTOMER&&l(o,e)},ft=function(){r.hasAttribute(n.TABINDEX_ATTRIBUTE)&&r.removeAttribute(n.TABINDEX_ATTRIBUTE)},rt=function(t){var c=t.target,r=query.selectParentElement(c,n.CONED_FORM_FIELDSET_SELECTOR),f=r.getElementsByClassName(n.CONED_INPUTS_SELECTOR),u=r.getElementsByClassName(n.TOTAL_CONTAINER_SELECTOR)[0],e=u.getElementsByClassName(n.TOTAL_RESULT_CLASS)[0],o=r.getElementsByClassName(n.TOTAL_RESULT_HIDDEN_INPUTS_SELECTOR)[0],i=document.createElement(n.STRONG_TAG),s=0,h=0;_.each(f,function(n){n.value===""||n.value==="$"?h++:s+=parseFloat(n.value.replace(/(\$|,)/g,""))});e&&u.removeChild(e);o.value="";h!==f.length&&(i.textContent=coned.utils.formatToCurrencyText(s,2),i.className=n.TOTAL_RESULT_CLASS,u.appendChild(i),o.value=i.textContent)},et=function(t){t.details.showAltMessage?(it.style.display=n.NONE_VALUE,c.style.display=n.BLOCK_VALUE,c.focus(),dataLayer.push({event:n.FORM_NOT_ELIGIBLE})):dataLayer.push({event:n.FSF_QUALIFY_TAG})},f=function(n,t,i){dataLayer.push({event:n,buttonValue:t,accountType:i})},ot=function(){u=i.getElementsByClassName(n.FINANCIAL_STATEMENT_QUESTIONS_SELECTOR)[0];y=u.getElementsByClassName(n.MY_ACCOUNT_RESIDENTIAL_BUTTON_SELECTOR)[0];p=u.getElementsByClassName(n.MY_ACCOUNT_COMMERCIAL_BUTTON_SELECTOR)[0];w=u.getElementsByClassName(n.PAYMENT_ASSISTANCE_BUTTON_SELECTOR)[0];b=i.getElementsByClassName(n.FINANCIAL_STATEMENT_MAIN_FORM_SELECTOR)[0];r=i.getElementsByClassName(n.INITIAL_FORM_FOCUS_SELECTOR)[0];a=i.querySelectorAll('[name="'+n.DESCRIBE_YOU_RADIO_BUTTONS_NAME+'"]');e=i.getElementsByClassName(n.OPTION_RESIDENTIAL_SELECTOR)[0];o=i.getElementsByClassName(n.OPTION_COMMERCIAL_SELECTOR)[0];v=i.getElementsByClassName(n.CONTINUE_TO_FORM_BUTTON_SELECTOR)[0];k=i.getElementsByClassName(n.FINANCIAL_STATEMENT_INITIAL_FORM_SELECTOR)[0];d=i.getElementsByClassName(n.INCOME_GOVERNMENT_BENEFITS_FIELDSET_SELECTOR)[0];g=d.getElementsByClassName(n.CONED_INPUTS_SELECTOR);nt=i.getElementsByClassName(n.EXPENSES_FIELDSET_SELECTOR)[0];tt=nt.getElementsByClassName(n.CONED_INPUTS_SELECTOR);s=i.getElementsByClassName(n.SIGNATURE_DATE_INPUT_SELECTOR)[0];h=document.getElementsByClassName(n.SUMBIT_BUTTON)[0];it=document.getElementsByClassName(n.SUCCESS_MESSAGE)[0];c=document.getElementsByClassName(n.SUCCESS_ALT_MESSAGE)[0]},st=function(){if(_.each(a,function(t){t.addEventListener(n.CHANGE_EVENT,ut)}),h.disabled=!0,coned.utils.addGeneralListeners(v,function(){l(b,u);query.removeClass(k,n.HIDDEN_CLASS);h.disabled=!1;r.tabIndex=0;r.focus();f(n.CONTINUE_TO_FORM_TAG,n.STEP_1_CONTINUE_TO_FORM,n.RESIDENTIAL_ACCOUNT)}),r.addEventListener(n.BLUR_EVENT,ft),_.each(g,function(t){t.addEventListener(n.BLUR_EVENT,rt)}),_.each(tt,function(t){t.addEventListener(n.BLUR_EVENT,rt)}),s){var t=new Date;coned.utils.fillInputWithFormattedDate(s,t)}i.addEventListener(n.FORM_SUMBIT_SUCCESS_EVENT,et);setTimeout(function(){coned.utils.checkInputsFilled(i)},1e3);coned.utils.addGeneralListeners(y,function(){f(n.LOGIN_ACCOUNT_TAG,n.STEP_1_LOG_IN_MY_ACCOUNT,n.RESIDENTIAL_ACCOUNT)});coned.utils.addGeneralListeners(p,function(){f(n.LOGIN_ACCOUNT_TAG,n.STEP_1_LOG_IN_MY_ACCOUNT,n.COMMERCIAL_ACCOUNT)});coned.utils.addGeneralListeners(w,function(){f(n.GET_ASSISTANCE_TAG,n.STEP_1_GET_PAYMENT_ASSISTANCE,n.COMMERCIAL_ACCOUNT)})},ht=function(){ot();st();t=!0};ht()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.FindAccountByAddress=function(){var n={ZIP_CODE_SELECTOR:"js-zipcode",ZIP_CODE_ERROR_SELECTOR:"js-zipcode-service-error",STREET_NAME_ERROR_SELECTOR:"js-street-name-service-error",STREET_NUMBER_ERROR_SELECTOR:"js-street-number-service-error",SELECT_STREET_NAME:"js-street-name",SELECT_STREET_NUMBER:"js-street-number",SELECT_RESIDENCE_UNIT:"js-residence-unit",SELECT_LABEL_SELECTOR:"js-coned-select-label",ACTIVE_DROPDOWN:"coned-select--active",FORM_ZIPCODE_NAME:"zipCode",FORM_STREET_NAME_NAME:"streetName",FORM_STREET_NUMBER_NAME:"streetNumber",FORM_RESIDENCE_UNIT_NAME:"residenceUnit",FORM_COMPANY_CODE_NAME:"CompanyId",FORM_SCID_NAME:"ScId",HIDDEN_CLASS:"hidden",FORM_LOADING:"js-form-loading",FORM_CURRENT_STEP:"js-current-step",IS_FORM_BLOCKED:"js-form-blocked",SERVICE_FORM:"transactional__form",LOOKUP_BUTTON:"js-lookup-button",DATE_PICKER_INPUT:"js-start-date",ERROR_TEXT_SELECTOR:"js-error-message"},t=!1,i=function(i){var a,u,r,f,h,c,o,v,e,y,p,w,l,b=function(t){var i=document.getElementsByClassName(n.FORM_CURRENT_STEP)[0];t?i.classList.add(n.IS_FORM_BLOCKED):i.classList.remove(n.IS_FORM_BLOCKED)},et=function(t){var s;if(!coned.utils.preventMovementError(t)){var o=t.target,h=$(e).validate(),c=o.value.length,a=c==5?h.element(o):!1,d=i.dataset.serviceUrl,g=i.dataset.searchForStreetname;k();l&&(y.disabled=!0,b(!0));a?w!=o.value&&(o.disabled=!0,w=o.value,ft(),s={ScId:query.getFormInputValue(e,n.FORM_SCID_NAME),SearchFor:g,CompanyCode:query.getFormInputValue(e,n.FORM_COMPANY_CODE_NAME),ZipCode:query.getFormInputValue(i,n.FORM_ZIPCODE_NAME)},query.getData(d,ot,st,s,v),l&&($(p).datepicker("option","minDate","1"),$(p).datepicker("option","maxDate","30d"))):(w=o.value,u.disabled=!0,r.disabled=!0,f.disabled=!0,ft())}},ot=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_STREET_NAMES,nt,g):nt(n)},st=function(n){u.disabled=!0;a.disabled=!1;g(n)},g=function(t){var i=h.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];h.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;h&&h.focus()},nt=function(n){var t;s(u);_.each(n.Addresses,function(n,i){t=document.createElement("option");t.text=n.Direction+" "+n.Street+" "+n.Artery;t.value=n.StreetNameKey;t.dataset.borough=n.Borough;u.add(t,i+1)});a.disabled=!1;u.disabled=!1;r.disabled=!0;f.disabled=!0},ht=function(t){var o=t.target,r=i.querySelector("[name="+n.FORM_STREET_NAME_NAME+"]"),u=r.options[r.selectedIndex],s=i.dataset.serviceUrl,h=i.dataset.searchForStreetnumber,f;o.disabled=!0;k();f={ScId:query.getFormInputValue(e,n.FORM_SCID_NAME),SearchFor:h,CompanyCode:query.getFormInputValue(e,n.FORM_COMPANY_CODE_NAME),ZipCode:query.getFormInputValue(i,n.FORM_ZIPCODE_NAME),StreetNameKey:u.value,Borough:u.dataset.borough};query.getData(s,ct,lt,f,v)},ct=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_STREET_NUMBERS,it,tt):it(n)},lt=function(n){r.disabled=!0;u.disabled=!1;tt(n)},tt=function(t){var i=c.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];c.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;c&&c.focus()},it=function(n){var t;s(r);s(f);l&&(y.disabled=!0,b(!0));_.each(n.Addresses,function(n,i){t=document.createElement("option");t.text=n.StreetNumber;t.value=n.StreetNumber;r.add(t,i+1)});u.disabled=!1;r.disabled=!1;f.disabled=!0},at=function(t){var o=t.target,r=i.querySelector("[name="+n.FORM_STREET_NAME_NAME+"]"),u=r.options[r.selectedIndex],s=i.dataset.serviceUrl,h=i.dataset.searchForUnit,f;o.disabled=!0;k();f={ScId:query.getFormInputValue(e,n.FORM_SCID_NAME),SearchFor:h,CompanyCode:query.getFormInputValue(e,n.FORM_COMPANY_CODE_NAME),ZipCode:query.getFormInputValue(i,n.FORM_ZIPCODE_NAME),StreetNameKey:u.value,Borough:u.dataset.borough,StreetNumber:query.getFormInputValue(i,n.FORM_STREET_NUMBER_NAME)};query.getData(s,vt,yt,f,v)},vt=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_RESIDENCE_UNITS,ut,rt):ut(n)},yt=function(n){f.disabled=!0;r.disabled=!1;rt(n)},rt=function(t){var i=o.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];o.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;o&&o.focus()},ut=function(n){var t;s(f);l&&(y.disabled=!0,b(!0));_.each(n.Addresses,function(n,i){t=document.createElement("option");t.text=n.UnitNo;t.value=n.AccountNumber;f.add(t,i+1)});r.disabled=!1;f.disabled=!1},ft=function(){s(u);s(r);s(f)},s=function(t){var i=t.parentElement.getElementsByClassName(n.SELECT_LABEL_SELECTOR)[0];for(i.removeAttribute("style"),t.removeAttribute("style"),t.selectedIndex=0,t.classList.remove(n.ACTIVE_DROPDOWN);t.length>1;)t.remove(1)},k=function(){d(h);d(c);d(o)},d=function(t){t.classList.add(n.HIDDEN_CLASS)},pt=function(){a=i.getElementsByClassName(n.ZIP_CODE_SELECTOR)[0];u=i.getElementsByClassName(n.SELECT_STREET_NAME)[0];r=i.getElementsByClassName(n.SELECT_STREET_NUMBER)[0];f=i.getElementsByClassName(n.SELECT_RESIDENCE_UNIT)[0];h=i.getElementsByClassName(n.ZIP_CODE_ERROR_SELECTOR)[0];c=i.getElementsByClassName(n.STREET_NAME_ERROR_SELECTOR)[0];o=i.getElementsByClassName(n.STREET_NUMBER_ERROR_SELECTOR)[0];o=i.getElementsByClassName(n.STREET_NUMBER_ERROR_SELECTOR)[0];v=document.getElementsByClassName(n.FORM_LOADING)[0];e=document.getElementsByClassName(i.dataset.parentForm)[0];y=document.getElementsByClassName(n.LOOKUP_BUTTON)[0];p=document.getElementsByClassName(n.DATE_PICKER_INPUT)[0];l=query.hasClass(e,n.SERVICE_FORM)},wt=function(){a.addEventListener("keyup",et);u.addEventListener("change",ht);r.addEventListener("change",at)},bt=function(){pt();wt();t=!0};bt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.FooterComponent=function(){var n={FOOTER_ITEM_BTN_CLASS:"js-footer-item-btn",FOOTER_ITEM_ICON_CLASS:"js-footer-item-icon",FOOTER_ITEM_ICON_OPEN_CLASS:"footer__primary-item-icon--open",FOOTER_ITEM_LINKS_CLASS:"js-footer-item-links",FOOTER_ITEM_LINKS_OPEN_CLASS:"footer__primary-item-links--open",FOOTER_BUTON_HOVER_CLASS:"footer__primary-item-btn--open"},t=!1,i=function(i){var r,u,f,e=function(t,i){var r=t.getElementsByClassName(n.FOOTER_ITEM_ICON_CLASS)[0];query.removeClass(r,n.FOOTER_ITEM_ICON_OPEN_CLASS);query.removeClass(i,n.FOOTER_ITEM_LINKS_OPEN_CLASS);query.addClass(t,n.FOOTER_BUTON_HOVER_CLASS)},o=function(t,i){var e=t.getElementsByClassName(n.FOOTER_ITEM_ICON_CLASS)[0];t.setAttribute("aria-expanded","true");query.removeClass(u,n.FOOTER_ITEM_LINKS_OPEN_CLASS);query.removeClass(f,n.FOOTER_ITEM_ICON_OPEN_CLASS);query.addClass(i,n.FOOTER_ITEM_LINKS_OPEN_CLASS);query.addClass(e,n.FOOTER_ITEM_ICON_OPEN_CLASS);query.addClass(r,n.FOOTER_BUTON_HOVER_CLASS);query.removeClass(t,n.FOOTER_BUTON_HOVER_CLASS)},s=function(t){var i,u,f;for(t.preventDefault(),i=t.target,query.hasClass(i,n.FOOTER_ITEM_BTN_CLASS)||(i=i.parentElement),u=i.parentElement.getElementsByClassName(n.FOOTER_ITEM_LINKS_CLASS)[0],f=0;f<r.length;f++)r[f].setAttribute("aria-expanded","false");query.hasClass(u,n.FOOTER_ITEM_LINKS_OPEN_CLASS)?e(i,u):o(i,u)},h=function(){r=i.getElementsByClassName(n.FOOTER_ITEM_BTN_CLASS);u=i.getElementsByClassName(n.FOOTER_ITEM_LINKS_CLASS);f=i.getElementsByClassName(n.FOOTER_ITEM_ICON_CLASS)},c=function(){for(var n=0;n<r.length;n++)coned.utils.addGeneralListeners(r[n],s)},l=function(){h();c();t=!0};l()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.FormProgress=function(){var n={STEP_CURRENT:"js-current-step",STEP_ITEM:"js-form-step",STEP_ITEM_CLASS:"form-progress-bar__item",STEP_ACTIVE_CLASS:"form-progress-bar__item--active",STEP_CURRENT_CLASS:"form-progress-bar__item--current",STEP_VALID_CLASS:"form-progress-bar__item--valid",STEP_NUMBER_CLASS:"form-progress-bar__item-number",STEP_NAME_CLASS:"form-progress-bar__item-name",STEP_DOT_CLASS:"form-progress-bar__item-dot",STEP_DOT_SELECTOR:"js-step-dot",STEPS_LIST:"js-steps-list",STEPS_LIST_HIDE_TITLE:"form-progress-bar__list--hide-title",FORM_STEPS:"js-steps",FORM_ITEM_VALIDATE:"js-item-validate",FORM_ITEM_IGNORE:"js-validate-ignore",BUTTON_NEXT:"js-next-button",FIELD_ERROR_MESSAGE:"coned-input-message--error",FORM_STEPS_LIST:"js-fieldset-list",ACTIVE_FORM:"coned-form-wrapper",SELECT_ELEMENT:"js-coned-select",DYNAMIC_FIELDS_ACTIVE:"steps-ready",PROGRESS_BAR:"js-progress",ANIMATION_SUBMIT_MODULE:".js-submit-progress-animation:not(.hidden)",HELP_CHECKBOX_SELECTOR:"js-extra-help-selector",HELP_LIST_ITEM_SELECTOR:"js-extra-help-item-selector",HELP_BUTTON_SELECTOR:"js-transactional-extra-help",HELP_INPUT_SELECTOR:"js-checkbox-selector",CHECK_LIST_SELECTOR:"js-check-list-selector",CHECK_LIST_ITEM_SELECTOR:"js-check-item-selector",CHECK_LIST_ITEM_CLASS:"check-list__item transactional__check-list-item",CHECK_LIST_TITLE_SELECTOR:"js-item-title-selector",EDIT_STEP_SELECTOR:"js-edit-step-selector",REVIEW_FIELDSET_SELECTOR:"js-step-review",REMOVE_STEP:"js-skip-step",ACCOUNT_PROFILE_STEP:"js-account-profile",TRANSACTIONAL_FORM:".transactional__form",EBILL_CHECK_BOX:"js-ebill-checkbox",EBILL_CHECK_LIST:"js-check-list-ebill",TOOLTIP_CONTAINER:"js-ebill-tooltip",FORM_DOB_NAME:"identityDateOfBirth",TOOLTIP_OPEN:"js-tooltip-open",TOOLTIP_CONTENT:"js-tooltip-content",TOOLTIP_LIST:"coned-tooltip__list",IS_FORM_BLOCKED:"js-form-blocked",HIDDEN_CLASS:"hidden",NAVIGATION_RESET:"js-form-navigation-reset",AUTHENTICATION_TYPE_SELECTOR:"js-identification-type",NO_IDENTIFICATION:"js-no-identification",DEPOSIT_PAYMENT_CONTINUE_BUTTON:"js-payment-method-button",DEPOSIT_PAYMENT_SUBMIT:"js-deposit-payment-submit",DEPOSIT_PAYMENT_STEP_SELECTOR:"js-step-no-id-pay",DIRECT_PAYMENT_STEP_SELECTOR:"js-step-direct-pay",DEPOSIT_ROUTING_ABA_SELECTOR:"js-deposit-routing-aba-number",DEPOSIT_ACCOUNT_NUMBER_SELECTOR:"js-deposit-account-number",DEPOSIT_BANK_CHECKING:"checking",DEPOSIT_BANK_SAVINGS:"savings",DIRECT_PAYMENT_ENROLL:"js-direct-payment-enroll",FORM_DP_ACCOUNT_TYPE_NAME:"accountType",FORM_DP_ROUTING_NUMBER_NAME:"routingAbaNumber",FORM_DP_ACCOUNT_NUMBER_NAME:"accountNumber",FILLED_CLASS:"coned-input--filled",DPP_BANK_CHECKING:"checkingAccount",DPP_BANK_SAVINGS:"savingsAccount",STEP_SUCCESS_EVENT:"step-success",STEP_ERROR_EVENT:"step-error",DEPOSIT_PAYMENT_LIMIT_AGE:62,START_SERVICE_SELECTOR:"js-start-service",MAX_STEPS_DESKTOP_VIEW:5,STEP_SMALL_VIEW:"form-progress-bar__item--small",CURRENT_FORM_SELECTOR:".js-current-form-step:visible",STEP_INFORMATION:"js-step-information",PROGRESS_BAR_STEP_BUTTON:".form-progress-bar__item-button",VISUALLY_HIDDEN:"visually-hidden",PROGRESS_CLASS_BUTTON:"form-progress-bar__item-button",STEPS_INFORMATION:"js-steps-information",DISABLED:"disabled",BUTTON_TAG:"button"},t=!1,i=function(i){var e,r,y,g,p,nt,tt,w,it,rt,o,ut,s,b,u,h,c,l,k,ft,et,a,ot,v,f=function(t,u,f){var c,p,l,w;f!==undefined&&f.preventDefault();c=e.length;c>=6?r.classList.add(n.STEPS_LIST_HIDE_TITLE):r.classList.remove(n.STEPS_LIST_HIDE_TITLE);_.each(r.children,function(t){r.childElementCount>n.MAX_STEPS_DESKTOP_VIEW?t.classList.add(n.STEP_SMALL_VIEW):t.classList.remove(n.STEP_SMALL_VIEW)});var o=t&&t.target?this:t,s=o.dataset.step,b=+o.offsetLeft,k=o.offsetWidth,d=b+k,nt=query.hasClass(o,n.STEP_ACTIVE_CLASS),tt=document.getElementsByClassName(n.FORM_STEPS),a=o.getElementsByClassName(n.STEP_DOT_SELECTOR)[0],it=new TimelineMax({repeat:0}),rt=document.getElementsByClassName(n.FORM_STEPS_LIST)[0],h=i.getElementsByClassName(n.STEP_CURRENT)[0],ut=rt.querySelectorAll('[data-step-form="'+h.dataset.step+'"]')[0],ft=h.classList.contains(n.IS_FORM_BLOCKED),et=h&&h.classList.contains(n.HELP_LIST_ITEM_SELECTOR)?!0:!1;c>6?r.classList.add(n.STEPS_LIST_HIDE_TITLE):r.classList.remove(n.STEPS_LIST_HIDE_TITLE);_.each(r.children,function(t){r.childElementCount>n.MAX_STEPS_DESKTOP_VIEW?t.classList.add(n.STEP_SMALL_VIEW):t.classList.remove(n.STEP_SMALL_VIEW)});t.target&&!v&&et&&$(n.CURRENT_FORM_SELECTOR).submit();p=ut.getElementsByClassName(n.FORM_ITEM_VALIDATE);l=[];_.each(p,function(t){query.hasClass(t,n.FIELD_ERROR_MESSAGE)&&l.push(t)});nt&&l<=0&&!ft&&(y.style.width=d-50+"px",y.style.marginLeft=0,w=document.getElementsByClassName(n.STEP_CURRENT)[0],_.each(e,function(t){if(t.classList.remove(n.STEP_CURRENT),t.classList.remove(n.STEP_CURRENT_CLASS),t.dataset.step>s){var i=t.querySelector(n.PROGRESS_BAR_STEP_BUTTON);t.classList.contains(n.STEP_ACTIVE_CLASS)||i.setAttribute(n.DISABLED,!0);t.classList.add(n.STEP_VALID_CLASS)}else s>t.dataset.step&&t.classList.remove(n.STEP_VALID_CLASS)}),it.to(a,.5,{opacity:0}).to(a,.5,{opacity:1}),ct(o),ht(o.dataset.step,e.length),at(w,o),_.each(tt,function(t){if(t.dataset.stepForm==s){t.style.display="block";vt(t);g=t.getElementsByClassName(n.BUTTON_NEXT);Array.prototype.forEach.call(g,function(n){n.dataset.nextStep=parseInt(s,10)+1;coned.utils.addGeneralListeners(n,yt)});var i=$(n.TRANSACTIONAL_FORM);i&&i[0].hasAttribute("tabindex")&&u!==!1&&i.focus()}else t.style.display="none"}),v=!1)},ht=function(t,i){var u=r.parentElement.parentElement.getElementsByClassName(n.STEPS_INFORMATION)[0],f=u.dataset.step,e=u.dataset.of,o=f+" "+(parseInt(t)+1)+" "+e+" "+(i+1);u.textContent=o},ct=function(t){t.classList.add(n.STEP_CURRENT);t.classList.add(n.STEP_CURRENT_CLASS);t.classList.add(n.STEP_ACTIVE_CLASS);t.classList.remove(n.STEP_VALID_CLASS);var i=t.querySelector(n.PROGRESS_BAR_STEP_BUTTON);i.removeAttribute(n.DISABLED)},lt=function(t){var r=t.getElementsByTagName(n.BUTTON_TAG)[0],i=t.getElementsByClassName(n.STEP_INFORMATION)[0];t.classList.remove(n.STEP_ACTIVE_CLASS);r.setAttribute(n.DISABLED,!0);i.textContent=i.dataset.incompleted},at=function(t,i){var r=i.getElementsByClassName(n.STEP_INFORMATION)[0],u=t.getElementsByClassName(n.STEP_INFORMATION)[0];t!=i?(r&&(r.textContent=r.dataset.current),u&&(u.textContent=u.dataset.completed)):i==t.parentElement.lastElementChild?u&&(u.textContent=u.dataset.completed):r&&(r.textContent=r.dataset.current)},vt=function(t){var i=t.getElementsByClassName(n.FORM_ITEM_VALIDATE);_.each(i,function(t){t.classList.remove(n.FORM_ITEM_IGNORE)})},yt=function(t){var s=!1,r;if(t!==undefined&&(t.preventDefault(),r=t.currentTarget,s=r.dataset.hasRedirect&&r.dataset.hasRedirect==="true"||r.disabled||!$(r).is(":visible")?!0:!1),!s){$(n.TRANSACTIONAL_FORM).submit();v=!0;var h=i.getElementsByClassName(n.STEP_CURRENT)[0],f=parseInt(i.getElementsByClassName(n.STEP_CURRENT)[0].dataset.step),c=document.getElementsByClassName(n.FORM_STEPS_LIST)[0],e=c.querySelectorAll('[data-step-form="'+f+'"]')[0],o=h.nextElementSibling,l=e.querySelectorAll(n.ANIMATION_SUBMIT_MODULE),a=document.getElementsByClassName(n.DIRECT_PAYMENT_ENROLL)[0];setTimeout(function(){var h=e.getElementsByClassName(n.FORM_ITEM_VALIDATE),r=[],i=query.selectParentElement(t.target,n.BUTTON_NEXT),s;_.each(h,function(t){query.hasClass(t,n.FIELD_ERROR_MESSAGE)&&r.push(t)});r.length>0?coned.utils.triggerEvent(i,n.STEP_ERROR_EVENT):r.length<=0&&o&&(coned.utils.triggerEvent(i,n.STEP_SUCCESS_EVENT),o.classList.add(n.STEP_ACTIVE_CLASS),Array.prototype.forEach.call(l,function(t){new coned.components.SubmitAnimation(t,o,function(){et&&(e.classList.contains(n.DIRECT_PAYMENT_STEP_SELECTOR)&&a.checked&&u.dataset.isCommercial==="true"&&pt(),i.Callback&&i.Callback())},function(){},!0,!0);t.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)}),s=$(n.TRANSACTIONAL_FORM).validate({}),s.resetForm(),$(n.TRANSACTIONAL_FORM)&&$(n.TRANSACTIONAL_FORM).focus(),f<=3&&dataLayer.push({event:"coned.form.step0"+f}))},80)}},pt=function(){var t=query.getFormInputValue(h,n.FORM_DP_ACCOUNT_TYPE_NAME),f=query.getFormInputValue(h,n.FORM_DP_ROUTING_NUMBER_NAME),e=query.getFormInputValue(h,n.FORM_DP_ACCOUNT_NUMBER_NAME),i,r;t===n.DPP_BANK_CHECKING?(i=u.querySelector("[value*="+n.DEPOSIT_BANK_CHECKING+"]"),i.checked=!0):t===n.DPP_BANK_SAVINGS&&(r=u.querySelector("[value*="+n.DEPOSIT_BANK_SAVINGS+"]"),r.checked=!0);c.value=f;l.value=e;c.classList.add(n.FILLED_CLASS);l.classList.add(n.FILLED_CLASS);c.classList.add("valid");l.classList.add("valid");k.disabled=!1;k.click();ft.disabled=!1},st=function(t,i,u,e){e=e||"";var s=document.createElement("li"),l=document.createElement("span"),a=document.createElement("span"),v=document.createElement("span"),h=document.createElement("span"),c=document.createElement("button"),y=$(r).children().filter(function(){return this.dataset.preload}).length,o=u.getElementsByClassName(n.STEP_INFORMATION)[0];s.classList.add(n.STEP_ITEM_CLASS);s.classList.add(n.STEP_ITEM);s.setAttribute("data-step",t);e&&e!==""&&(e=e.split(" "),_.each(e,function(n){s.classList.add(n)}));c.classList.add(n.PROGRESS_CLASS_BUTTON);h.classList.add(n.VISUALLY_HIDDEN);h.classList.add(n.STEP_INFORMATION);o.dataset.current&&h.setAttribute("data-current",o.dataset.current);o.dataset.completed&&h.setAttribute("data-completed",o.dataset.completed);o.dataset.incompleted&&h.setAttribute("data-incompleted",o.dataset.incompleted);o.dataset.incompleted&&(h.innerHTML=o.dataset.incompleted);t=parseInt(t)+y;l.classList.add(n.STEP_NUMBER_CLASS);l.innerHTML=t;a.classList.add(n.STEP_NAME_CLASS);a.innerHTML=i;v.classList.add(n.STEP_DOT_CLASS);v.classList.add(n.STEP_DOT_SELECTOR);c.appendChild(h);c.appendChild(l);c.appendChild(a);c.appendChild(v);s.appendChild(c);r.insertBefore(s,u.nextSibling);coned.utils.addGeneralListeners(s,f)},wt=function(t){var r,u,e;t!==undefined&&t.preventDefault();r=this.dataset.step;u=i.getElementsByClassName(n.STEP_CURRENT)[0];_.each(p,function(t){var u,i;t.dataset.selector==r&&(i=t.getElementsByClassName(n.HELP_INPUT_SELECTOR)[0],i?(i.click(),i.checked=!1):(u=t.querySelector("input:not(:checked)"),u.click()))});e=$(n.TRANSACTIONAL_FORM).validate({});e.resetForm();v=!0;o.click();d(t);f(o,!0);lt(u)},bt=function(){for(var t;e.length>3;)t=i.getElementsByClassName(n.STEP_ITEM)[3],t&&(t.removeEventListener("click",f),t.removeEventListener("touchend",f),r.removeChild(t))},d=function(t){var f,k,y;if(t===undefined||(t.preventDefault(),!t.target.disabled&&$(t.target).is(":visible"))){var d=t.target,r=4,s=[],c=[],l=[],h=i.getElementsByClassName(n.STEP_CURRENT)[0],e=document.getElementsByClassName(n.DIRECT_PAYMENT_ENROLL)[0],b=document.getElementsByClassName(n.AUTHENTICATION_TYPE_SELECTOR)[0],v;for(b&&e&&(v=b.value===n.NO_IDENTIFICATION&&!a&&!e.checked&&!dt(n.DEPOSIT_PAYMENT_LIMIT_AGE)?!0:!1),h.dataset.step<3&&(h=o),w.innerHTML="",bt(),_.each(p,function(t){var h=t.getElementsByClassName(n.HELP_INPUT_SELECTOR)[0],u,a,p=t.getElementsByClassName(n.TOOLTIP_CONTENT)[0],nt=t.getElementsByClassName(n.TOOLTIP_OPEN)[0],b=t.dataset.label,tt=t.dataset.selector,v=document.getElementsByClassName(tt)[0],f,o,i,y,k,d,g;t.classList.contains(n.AUTHENTICATION_TYPE_SELECTOR)&&t.value==n.NO_IDENTIFICATION&&!e.checked?(o=!1,f=t.dataset.breadcrumbTag):h?(o=h.checked,f=h.dataset.breadcrumbTag):(a=t.querySelector("input:checked"),a&&(u=a.value),o=u&&(u.toLowerCase()=="yes"||u.toLowerCase()=="true")?!0:!1,f=t.dataset.breadcrumbTag+" "+n.HELP_LIST_ITEM_SELECTOR);o?(i=document.createElement("li"),i.innerHTML=ot,i.className=n.CHECK_LIST_ITEM_CLASS,y=i.getElementsByClassName(n.TOOLTIP_LIST)[0],nt?(d=p?p.innerHTML:"",k=i.getElementsByClassName(n.TOOLTIP_CONTENT)[0],k.innerHTML=d,new coned.components.ToolTipComponent(y)):y.classList.add(n.HIDDEN_CLASS),v.dataset.stepForm=""+r,g=i.getElementsByClassName(n.CHECK_LIST_TITLE_SELECTOR)[0],g.innerHTML=b,w.appendChild(i),s.push(""+r),c.push(f),l.push(b),r++):v&&(v.dataset.stepForm="")}),u&&((v||u.dataset.isCommercial==="true")&&(u.dataset.stepForm=""+r,u.classList.remove(n.REMOVE_STEP),s.push(""+r),c.push(e.dataset.breadcrumbTag),l.push(u.dataset.label),r++),(e.checked||!v)&&u.dataset.isCommercial==="false"&&(u.dataset.stepForm="",u.style.display="none")),it.dataset.stepForm=""+r,st(""+r,"Review",h),f=s.length-1;f>=0;f--)st(s[f],l[f],h,c[f]);k=document.getElementsByClassName(n.EDIT_STEP_SELECTOR);y=3;_.each(k,function(t){var r=i.getElementsByClassName(n.STEP_ITEM)[y];coned.utils.addGeneralListeners(t,function(n){n.preventDefault();window.scrollTo(0,0);r.click()});y++});d.classList.add(n.DYNAMIC_FIELDS_ACTIVE)}},kt=function(){var i=document.getElementsByClassName(n.TOOLTIP_CONTAINER)[0],r=i.getElementsByClassName(n.TOOLTIP_OPEN)[0],t=s.getElementsByClassName(n.TOOLTIP_OPEN)[0];s.style.display=this.checked?"block":"none";r&&t&&t.classList.remove(n.HIDDEN_CLASS)},dt=function(t){var r=query.getFormInputValue(document,n.FORM_DOB_NAME);if(r){var i=new Date(r),u=i.getDate(),f=i.getMonth(),e=i.getFullYear(),o=new Date(e+t,f,u);return o<=new Date}return!1},gt=function(){e=i.getElementsByClassName(n.STEP_ITEM);y=i.getElementsByClassName(n.PROGRESS_BAR)[0];r=i.getElementsByClassName(n.STEPS_LIST)[0];p=document.getElementsByClassName(n.HELP_CHECKBOX_SELECTOR);nt=document.getElementsByClassName(n.HELP_BUTTON_SELECTOR);tt=document.getElementsByClassName(n.CHECK_LIST_ITEM_SELECTOR)[0];w=document.getElementsByClassName(n.CHECK_LIST_SELECTOR)[0];it=document.getElementsByClassName(n.REVIEW_FIELDSET_SELECTOR)[0];rt=document.getElementsByClassName(n.REMOVE_STEP);o=document.getElementsByClassName(n.ACCOUNT_PROFILE_STEP)[0];ut=document.getElementsByClassName(n.EBILL_CHECK_BOX)[0];s=document.getElementsByClassName(n.EBILL_CHECK_LIST)[0];b=document.getElementsByClassName(n.NAVIGATION_RESET)[0];u=document.getElementsByClassName(n.DEPOSIT_PAYMENT_STEP_SELECTOR)[0];h=document.getElementsByClassName(n.DIRECT_PAYMENT_STEP_SELECTOR)[0];l=document.getElementsByClassName(n.DEPOSIT_ACCOUNT_NUMBER_SELECTOR)[0];c=document.getElementsByClassName(n.DEPOSIT_ROUTING_ABA_SELECTOR)[0];ft=document.getElementsByClassName(n.DEPOSIT_PAYMENT_SUBMIT)[0];k=document.getElementsByClassName(n.DEPOSIT_PAYMENT_CONTINUE_BUTTON)[0];et=document.getElementsByClassName(n.START_SERVICE_SELECTOR)[0];ot=tt.innerHTML;a=!1},ni=function(){var t=i.getElementsByClassName(n.STEP_ITEM)[0];_.each(e,function(n){coned.utils.addGeneralListeners(n,f)});_.each(rt,function(n){coned.utils.addGeneralListeners(n,wt)});window.addEventListener("resize",function(){var t=i.getElementsByClassName(n.STEP_CURRENT)[0];f(t,!1)});f(t,!0);b&&coned.utils.addGeneralListeners(b,d);ut.addEventListener("change",kt);Array.prototype.forEach.call(nt,function(n){coned.utils.addGeneralListeners(n,d)});i.addEventListener("deposit-waived",function(){a=!0});i.addEventListener("deposit-required",function(){a=!1})},ti=function(){gt();ni();t=!0};ti()};return i.prototype.isLoaded=function(){return t},i}();coned=coned||{};coned.components=coned.components||{};coned.components.FormToTable=function(){var n={CLASSES:{SHOW_TABLE:"form-to-table__wrapper-table--show"},SELECTORS:{SELECTS:"js-select-single",ROWS:"table tbody > tr",DEFAULT_ROW:'table tbody > tr[data-value="no-results"]',WRAPPER_TABLE:"js-form-to-table-wrapper-table"}},t=!1,i=function(i){var r,e,o,f,u,s=function(t){var i=Object.keys(t).length===0||!t;r.selectedCombination&&coned.utils.isSameRecord(r.selectedCombination,t)||(r.selectedCombination=t,r.selectedRows.forEach(function(n){n.$row.setAttribute(coned.constants.ARIA.HIDDEN,coned.constants.TRUE)}),f.setAttribute(coned.constants.ARIA.HIDDEN,coned.constants.TRUE),r.selectedRows=r.rows.filter(function(n){return!i&&coned.utils.isMatchedRecord(n.combination,t)}),r.selectedRows.length>0?(r.selectedRows.forEach(function(n){n.$row.setAttribute(coned.constants.ARIA.HIDDEN,coned.constants.FALSE)}),u&&!u.classList.contains(n.CLASSES.SHOW_TABLE)&&u.classList.add(n.CLASSES.SHOW_TABLE),f.setAttribute(coned.constants.ARIA.HIDDEN,coned.constants.TRUE)):i?u&&u.classList.contains(n.CLASSES.SHOW_TABLE)&&u.classList.remove(n.CLASSES.SHOW_TABLE):f.setAttribute(coned.constants.ARIA.HIDDEN,coned.constants.FALSE))},h=function(n){var t={};r.selects=r.selects.map(function(i){return i.name===n.name&&(i.value=n.value),i.value.length>0&&(t[i.name]=i.value),i});s(t);coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,r)},c=function(){return e.map(function(n){return{name:n.dataset.name?n.dataset.name:"",value:""}})},l=function(){var n=[];return o.forEach(function(t){typeof t.dataset.combination=="string"&&n.push({combination:t.dataset.combination.split(", ").reduce(function(n,t){var i=t.split(":");return n[i[0]]=i[1],n},{}),$row:t})}),n},a=function(n){h(n.detail)},v=function(){e=coned.utils.arrayFrom(i.getElementsByClassName(n.SELECTORS.SELECTS));u=i.getElementsByClassName(n.SELECTORS.WRAPPER_TABLE)[0];o=coned.utils.arrayFrom(i.querySelectorAll(n.SELECTORS.ROWS));f=i.querySelector(n.SELECTORS.DEFAULT_ROW);r={selects:c(),rows:l(),selectedRows:[]}},y=function(){e.forEach(function(n){n.addEventListener(coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,a)})},p=function(){v();y();t=!0};p()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.FormValidationOptOutModule=function(){var n={MESSAGE_WRAPPER:"js-form-messages",MESSAGE_SUCESS:"js-success-message",MESSAGE_ERROR:"js-error-message",CONTACT_COPY:"js-contact-us-copy-block",CONTACT_SUCCESS_CLASS:"contact-us-form__copy-block--success",CAPTCHA_ELEMENT:"js-recaptcha",INPUT_ERROR_CLASS:"coned-input-message--error",FIELD_ERROR_CLASS:"coned-field-error-wrapper",CONED_INPUT:".coned-input",CONED_INPUT_PHONE:".coned-input-phone",CONED_TEXT_AREA:".coned-textarea",CONED_INPUT_BIRTH_DATE:".js-birth-date",CONED_INPUT_DATE_FORMAT:".js-date-format",CONED_INPUT_WEEK_DAYS:".js-week-days",CONED_INPUT_HOUR_DAY:".js-hours-day",INPUT_FILLED_CLASS:"coned-input--filled",TEXT_AREA_FILLED_CLASS:"coned-textarea--filled",GET_FILE_LIST:"js-file-list-button",RESET_BUTTON:"js-reset-button",FORM_SELECTOR:"coned-form",DROPDOWN_LABEL:"js-coned-select-label",INPUT_TEXT_SELECTOR:"js-coned-input",TEXTAREA_SELECTOR:"js-coned-textarea",FORM_LOADING_SELECTOR:"js-form-loading",FORM_LOADING_HIDDEN:"form-loading--hidden",FORM_LOADING_IMAGE:"js-form-loading-image",HEADER_WRAPPER:"js-header-wrapper",BORDER_ANIMATION_SELECTOR:"js-border-bar-selector",BORDER_ANIMATION_CLASS:"border-bar--animate",DATE_SELECTOR:"js-date",RADIO_BUTTON_SELECTOR:"js-coned-radio",CHECKBOX_SELECTOR:"js-checkbox-selector",DROPDOWN_SELECTOR:"js-coned-select",ACTIVE_DROPDOWN:"coned-select--active",CHECKBOX_CHECKED_CLASS:"coned-checkbox--checked",CURRENCY_INPUT_SELECTOR:"js-currency-input",ZIPCODE_USA_INPUT_SELECTOR:"js-zipcode-input",FORM_IGNORE_VALIDATION:".js-validate-ignore",PHONE_EXTENSION_SELECTOR:"js-validate-phone-extension",CONED_INPUT_FILLED:".js-item-filled",CONED_INPUT_NUMBERS:".js-number-input",NUMBER_FORMAT_SELECTOR:"js-number-format",CONED_NUMBER_ACCOUNT:"js-coned-account-number",ORU_NUMBER_ACCOUNT:"js-oru-account-number",CONED_INPUT_SSN:".js-input-ssn",CONED_ADDRESS_INPUT:"js-address-input",CONED_EIN_TAX_INPUT:".js-ein-tax-input",LIMITED_LENGTH_INPUT:"js-limit-length-input",FORM_NAME:"name",FORM_EMAIL:"optOutEmail",FORM_HOW_IMPROVE:"how-improve",FORM_COMMENT:"optOutComments",FORM_ACCOUNT_NUMBER:"optOutAccountNumber",CONED_RADIO_CLASS:"coned-radio",CONED_RADIO_LABEL_CLASS:"coned-radio__label-name",PARAMETER_NAME:"name",PARAMETER_EMAIL:"optOutEmail",PARAMETER_ACCOUNT:"optOutAccountNumber",PARAMETER_COMMENT:"optOutComments",PARAMETER_VERIFY:"optOutVerify",REASON_OTHER:"Other"},t=!1,i=function(i){function ii(){if(e=i.getElementsByClassName(n.FORM_SELECTOR)[0],ht=e.action,wt=e,ct=new FormData(wt),r.parentNode.style.position="relative",r.classList.remove(n.FORM_LOADING_HIDDEN),pt.scrollIntoView(!1),lt=window.pageYOffset,lt&&window.scroll(0,lt+st.offsetHeight),c&&o.getResponse()==="")return o.checkRecaptcha(),r.parentNode.style.position="",r.classList.add(n.FORM_LOADING_HIDDEN),!1;c?o.checkRecaptcha():kt(e,ct,ht)}function bt(){kt(e,ct,ht)}function kt(t,i,u){var e,h,f,l="",v=query.getFormInputValue(t,n.FORM_NAME),y=query.getFormInputValue(t,n.FORM_EMAIL),a=query.getFormInputText(t,n.FORM_HOW_IMPROVE,n.CONED_RADIO_CLASS,n.CONED_RADIO_LABEL_CLASS),p=query.getFormInputValue(t,n.FORM_ACCOUNT_NUMBER),s=query.getFormInputValue(t,n.FORM_HOW_IMPROVE);s==n.REASON_OTHER&&(a=s,h=query.getFormInputValue(t,n.FORM_COMMENT),l="&"+n.PARAMETER_COMMENT+"="+encodeURIComponent(h));o&&(f=c?o.getResponse():null);e=n.PARAMETER_EMAIL+"="+y+"&"+n.FORM_HOW_IMPROVE+"="+a+"&"+n.PARAMETER_ACCOUNT+"="+p+"&"+n.PARAMETER_NAME+"="+encodeURIComponent(v)+l;c&&f&&f!==""&&(e+="&"+n.PARAMETER_VERIFY+"="+f);i=e.split(" ").join("+");dataLayer.push({event:"ipp.optout.submit",optoutReason:s});query.postData(u,function(){r.parentNode.style.position="";r.classList.add(n.FORM_LOADING_HIDDEN);dt("success");t.style.display="none"},function(){r.parentNode.style.position="";r.classList.add(n.FORM_LOADING_HIDDEN);dt();t.style.display="none"},i,!0,"","POST")}function at(n,t){n&&(t?n.classList.remove("form-loading--hidden"):n.classList.add("form-loading--hidden"))}function ri(){v.scrollIntoView(!0);var n=window.pageYOffset;n&&window.scroll(0,n-st.offsetHeight)}function dt(t){var i=t?vt:y;i.style.display="block";v.style.display="block";ri();t&&(y.style.display="none",dataLayer.push({event:"coned.form.success"}));p&&query.addClass(p,n.CONTACT_SUCCESS_CLASS)}var v,vt,y,p,yt,w,u,f,h,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot,l,e,r,pt,o,st,ht,wt,ct,c,lt,ti=function(){$(n.CONED_INPUT).bind("change keyup",function(){$(this).val()!==""?$(this).addClass(n.INPUT_FILLED_CLASS):$(this).removeClass(n.INPUT_FILLED_CLASS)});$(n.CONED_TEXT_AREA).bind("change keyup",function(){$(this).val()!==""?$(this).addClass(n.TEXT_AREA_FILLED_CLASS):$(this).removeClass(n.TEXT_AREA_FILLED_CLASS)});$(n.CONED_INPUT_PHONE).keyup(function(n){coned.utils.preventBehaviourError(n)||(this.value=this.value.match(/\d*/g).join("").match(/(\d{0,3})(\d{0,3})(\d{0,4})/).slice(1).join("-").replace(/-*$/g,""))});$(n.CONED_INPUT_BIRTH_DATE).keyup(function(n){coned.utils.preventBehaviourError(n)||(this.value=this.value.match(/\d*/g).join("").match(/(\d{0,2})(\d{0,2})(\d{0,4})/).slice(1).join("/").replace(/\/*$/g,""))});$(n.CONED_INPUT_DATE_FORMAT).keyup(function(n){coned.utils.preventBehaviourError(n)||(this.value=this.value.match(/\d*/g).join("").match(/(\d{0,2})(\d{0,2})(\d{0,4})/).slice(1).join("/").replace(/\/*$/g,""))});$(n.CONED_INPUT_WEEK_DAYS).keyup(function(){this.value=this.value.match(/\d*/g).join("").match(/(\d{0,1})/).slice(1).join("-").replace(/-*$/g,"")});$(n.CONED_INPUT_HOUR_DAY).keyup(function(n){coned.utils.preventBehaviourError(n)||(this.value=this.value.match(/\d*/g).join("").match(/(\d{0,2})/).slice(1).join("-").replace(/-*$/g,""))});$(n.CONED_INPUT_FILLED).keyup(function(){$(this).valid()});$(n.CONED_INPUT_NUMBERS).keyup(function(){this.value=this.value.replace(/[^0-9]/g,"")});$(n.CONED_INPUT_SSN).keyup(function(n){coned.utils.preventBehaviourError(n)||(this.value=this.value.match(/\d*/g).join("").match(/(\d{0,3})(\d{0,2})(\d{0,4})/).slice(1).join("-").replace(/-*$/g,""))});$(n.CONED_EIN_TAX_INPUT).keyup(function(n){coned.utils.preventBehaviourError(n)||(this.value=this.value.match(/\d*/g).join("").match(/(\d{0,2})(\d{0,7})/).slice(1).join("-").replace(/-*$/g,""))})},ni;query.httpDataMethod=function(n,t,i,r,u,f,e){var o=new XMLHttpRequest;o.open(e,n,!0);u&&o.setRequestHeader("Content-type","application/x-www-form-urlencoded; Charset=ANSI");o.onload=function(){at(f);o.status>=200&&o.status<400?o.response?query.isJSON(o.response)?t(JSON.parse(o.response)):t(o.response):t():query.isJSON(o.response)?i(JSON.parse(o.response)):i(o.response)};o.onerror=function(){at(f);var n={status:o.status,errorMsg:o.response};i(n)};at(f,!0);o.send(r)};var ui=function(t){var r,v,e,y,o,w,s,c,l,p,a,b;for(t.preventDefault(),$(i).find("form").validate().resetForm(),r=0;r<u.length;r++)v=u[r],query.removeClass(v,n.INPUT_FILLED_CLASS),v.value="";for(e=0;e<f.length;e++)y=f[e],query.removeClass(y,n.TEXT_AREA_FILLED_CLASS),y.value="";for(o=0;o<k.length;o++)w=k[o],w.removeAttribute("style");for(s=0;s<d.length;s++)c=d[s],c.removeAttribute("style"),c.selectedIndex=0,c.classList.remove(n.ACTIVE_DROPDOWN);for(l=0;l<h.length;l++)p=h[l],query.removeClass(p,n.INPUT_FILLED_CLASS),p.value="";for(a=0;a<g.length;a++)b=g[a],b.checked=!1},fi=function(){for(var e,i,o,r,s,t=0;t<u.length;t++)e=u[t],e.value&&e.classList.add(n.INPUT_FILLED_CLASS);for(i=0;i<f.length;i++)o=f[i],o.value&&o.classList.add(n.TEXT_AREA_FILLED_CLASS);for(r=0;r<h.length;r++)s=h[r],s.value&&s.classList.add(n.INPUT_FILLED_CLASS)},s=function(n,t){if(n!==undefined&&n.target.value.length>=t){if(coned.utils.preventBehaviourError(n))return;n.preventDefault()}},a=function(t){var i=t.target.parentElement.getElementsByClassName(n.BORDER_ANIMATION_SELECTOR)[0];query.hasClass(i,n.BORDER_ANIMATION_CLASS)?query.removeClass(i,n.BORDER_ANIMATION_CLASS):query.addClass(i,n.BORDER_ANIMATION_CLASS)},ei=function(t){var r=t.target,i=t.target.parentElement;r.checked?query.addClass(i,n.CHECKBOX_CHECKED_CLASS):query.removeClass(i,n.CHECKBOX_CHECKED_CLASS)},oi=function(n){return n.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},si=function(t){var i=t.value.replace(/[^\d.-]/g,""),u="",r="",f;i=i.replace(/[-\s]+/g,"");i=i.split(".",2);f=parseInt(i[0])*1;typeof i[1]!="undefined"&&(i[1].length>2?(r=i[1][0],typeof i[1][1]!="undefined"&&(r+=i[1][1])):r=i[1],u="."+r);i[0].length>0?t.value="$"+oi(f)+u:(t.value="",query.removeClass(t,n.INPUT_FILLED_CLASS))},gt=function(n){if(!coned.utils.preventBehaviourError(n)){var t=n.target.value;n.target.value=t.replace(/\D/g,"")}},hi=function(n){if(!coned.utils.preventBehaviourError(n)){var t=n.target.value;n.target.value=t.replace(/[^\a-z\d\-\s]/gi,"")}},ci=function(){v=i.getElementsByClassName(n.MESSAGE_WRAPPER)[0];vt=i.getElementsByClassName(n.MESSAGE_SUCESS)[0];y=i.getElementsByClassName(n.MESSAGE_ERROR)[0];p=i.getElementsByClassName(n.CONTACT_COPY)[0];yt=i.getElementsByClassName(n.CAPTCHA_ELEMENT);w=i.getElementsByClassName(n.RESET_BUTTON)[0];u=i.getElementsByClassName(n.INPUT_TEXT_SELECTOR);f=i.getElementsByClassName(n.TEXTAREA_SELECTOR);b=i.getElementsByClassName(n.CHECKBOX_SELECTOR);k=i.getElementsByClassName(n.DROPDOWN_LABEL);h=i.getElementsByClassName(n.DATE_SELECTOR);g=i.getElementsByClassName(n.RADIO_BUTTON_SELECTOR);d=i.getElementsByClassName(n.DROPDOWN_SELECTOR);nt=i.getElementsByClassName(n.CURRENCY_INPUT_SELECTOR);tt=i.getElementsByClassName(n.ZIPCODE_USA_INPUT_SELECTOR);it=i.getElementsByClassName(n.PHONE_EXTENSION_SELECTOR);rt=i.getElementsByClassName(n.NUMBER_FORMAT_SELECTOR);ut=i.getElementsByClassName(n.CONED_NUMBER_ACCOUNT);ft=i.getElementsByClassName(n.ORU_NUMBER_ACCOUNT);et=i.getElementsByClassName(n.CONED_ADDRESS_INPUT);ot=i.getElementsByClassName(n.LIMITED_LENGTH_INPUT);l=i.getElementsByClassName(n.FORM_SELECTOR);r=i.getElementsByClassName(n.FORM_LOADING_SELECTOR)[0];pt=document.getElementsByClassName(n.FORM_LOADING_IMAGE)[0];st=document.getElementsByClassName(n.HEADER_WRAPPER)[0];c=yt.length},li=function(){var t,pt,r,ct,h,lt,c,wt,v,at,y,kt,p,vt,k,yt,d,dt,g,ni,st,ri,ht,oi;if(ti(),fi(),w!==undefined&&coned.utils.addGeneralListeners(w,ui),l)for(t=0;t<l.length;t++)pt=l[t],new coned.components.ValidateForm(pt,ii),e=i.getElementsByClassName(n.FORM_SELECTOR)[0],o=new coned.components.Recaptcha(e,bt,bt);for(r=0;r<u.length;r++)ct=u[r],ct.addEventListener("focus",a),ct.addEventListener("focusout",a);for(h=0;h<f.length;h++)lt=f[h],lt.addEventListener("focus",a),lt.addEventListener("focusout",a);for(c=0;c<b.length;c++)wt=b[c],wt.addEventListener("change",ei);for(v=0;v<tt.length;v++)at=tt[v],at.addEventListener("keyup",gt),at.addEventListener("keypress",function(n){s(n,5)});for(y=0;y<rt.length;y++)kt=rt[y],kt.addEventListener("keyup",gt);for(p=0;p<nt.length;p++)vt=nt[p],vt.addEventListener("keyup",function(n){coned.utils.preventBehaviourError(n)||si(vt)});for(k=0;k<et.length;k++)yt=et[k],yt.addEventListener("keyup",hi),yt.addEventListener("keypress",function(n){s(n,21)});for(d=0;d<it.length;d++)dt=it[d],dt.addEventListener("keypress",function(n){s(n,4)});for(g=0;g<ut.length;g++)ni=ut[g],ni.addEventListener("keypress",function(n){s(n,15)});for(st=0;st<ft.length;st++)ri=ft[st],ri.addEventListener("keypress",function(n){s(n,10)});for(ht=0;ht<ot.length;ht++)oi=ot[ht],oi.addEventListener("keypress",function(n){var t=n.target.dataset.ruleMaxlength;s(n,t)})};$.validator.addMethod("customEmail",function(n,t){return this.optional(t)||/^\w+([-+.']\w+)*[+]*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(n)},"Error: Please enter a valid email address.");$.validator.addMethod("customEmailReduced",function(n,t){return this.optional(t)||/^\w+([-.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(n)},"Error: Please enter a valid email address.");$.validator.addMethod("canadaZipCode",function(n,t){return this.optional(t)||/^(?!.*[DFIOQU])[A-VXY][0-9][A-Z] ?[0-9][A-Z][0-9]$/i.test(n)},"Error: The specified Canada ZIP Code is invalid.");$.validator.addMethod("USAZipCode",function(n,t){return this.optional(t)||/^([0-9]{5})(?:[-\s]*([0-9]{4}))?$/.test(n)},"Error: Please enter a valid ZIP code.");$.validator.addMethod("ssnValidation",function(n){return/^\d{3}-\d{2}-\d{4}$/.test(n)},"Error: Please enter a valid SSN number.");$.validator.addMethod("paymentLimits",function(n,t){var i=t.dataset.paymentMin?parseFloat(t.dataset.paymentMin):0,r=t.dataset.paymentMax?parseFloat(t.dataset.paymentMax):0;return n=parseFloat(n.replace(/[^\d.-]/g,"")),(i<=0||n>=i)&&(r<=0||n<=r)});$.validator.addMethod("installmentLimit",function(n,t){return parseFloat(t.dataset.installmentAmount)/parseFloat(n)>=5},"Error: Installment amount has to be higher than $5 per month.");$.validator.addMethod("lettersSpacesOnly",function(n){return/^[a-zA-Z ]*$/.test(n)},"Error: Please enter only letters.");$.validator.addMethod("addressInput",function(n,t){return this.optional(t)||/^[a-z\d\-\s]+$/i.test(n)},"Error: Please enter only numbers, letters, spaces or dashes.");$.validator.addMethod("endDate",function(n,t,i){return/Invalid|NaN/.test(new Date(n))?isNaN(n)&&isNaN($(i).val())||Number(n)>Number($(i).val()):new Date(n)>=new Date($(i).val())},"Error: End date must be greater than start date.");$.validator.addMethod("limitDays",function(n,t,i){var u=new Date($(i).val()),f=new Date(n),r=Math.round(Math.abs((u.getTime()-f.getTime())/864e5));if(r<30)return r<30},"Error: Date range cannot be greater than 30 days.");$.validator.addMethod("payLimitDays",function(n){var i=new Date,r=new Date(n),u=Math.abs(i.getTime()-r.getTime()),t=Math.ceil(u/864e5);if(t<=5)return t<=5},"Error: Date range cannot be greater than 5 days.");$.validator.addMethod("tomorrowLimit",function(n){var t=new Date,i=""+(t.getMonth()+1)+"/"+(t.getDate()+2)+"/"+t.getFullYear();if(n<i)return n},"Error: Real Time Prices are unavailable beyond tomorrow date");$.validator.addMethod("futureDate",function(n,t){var i=new Date,r=new Date(n);return this.optional(t)||r>i});$.validator.addMethod("todayDate",function(n,t){var r=new Date,u=r.setDate(r.getDate()-1),i=new Date(n);return i=i.setDate(i.getDate()),this.optional(t)||i>u});$.validator.addMethod("pastDate",function(n,t){var r=new Date,u=r.setDate(r.getDate()-1),i=new Date(n);return i=i.setDate(i.getDate()),this.optional(t)||i<u});$.validator.addMethod("transactionalStartDate",function(n,t,i){return/Invalid|NaN/.test(new Date(n))?isNaN(n)&&isNaN($(i).val())||Number(n)>Number($(i).val()):new Date(n)<=new Date($(i).val())},"Error: The service start date must be before or the same day the service end date.");$.validator.addMethod("transferLimitDays",function(n,t,i){var r=new Date($(i).val()),u=new Date(n),f=Math.round(Math.abs((r.getTime()-u.getTime())/864e5));return f<30},"Error: Dates within 30 calendar days");$.validator.addMethod("dateFormat",function(n){var t=Date.parse(n),i=n.split("/"),r=parseInt(i[0],10),u=parseInt(i[1],10),f=parseInt(i[2],10),e,o;return isNaN(t)?!1:i.length!==3?!1:(t=new Date(f,r-1,u),o=t.getFullYear()==f&&t.getMonth()+1==r&&t.getDate()==u,e=n.match(/^\d\d?\/\d\d?\/\d\d\d\d$/),o&&e)},"Error: Please enter a valid date in the format mm/dd/yyyy");$.validator.addMethod("nextPaymentDue",function(n,t){var u=t.dataset.extensionDays,i=t.dataset.paymentDay,f=i!==""?new Date(i):new Date,e=new Date(n),r=Math.ceil((e.getTime()-f.getTime())/864e5);return r>0&&r<=u},"Error: Date can’t be more than 10 days after bill is due");$.validator.addMethod("servicesLimitDates",function(n,t){var r,i,u=new Date(n).getTime();return t.dataset.minDateDays||t.dataset.maxDateDays?(r=t.dataset.minDateDays?new Date(t.dataset.minDateDays).getTime():(new Date).setHours(0,0,0,0),i=t.dataset.maxDateDays?new Date(t.dataset.maxDateDays).getTime():(new Date).setHours(0,0,0,0)):(r=(new Date).setHours(0,0,0,0),i=new Date,i.setDate(i.getDate()+5),i=i.setHours(0,0,0,0)),u>=r&&u<=i},"Error: Dates range is invalid for this account");$.validator.addMethod("lettersNumbersOnly",function(n,t){return this.optional(t)||/^[0-9a-zA-Z]+$/i.test(n)},"Error: Please enter letters and numbers only.");$.validator.addMethod("taxId",function(n,t){return this.optional(t)||/^[1-9]\d?-\d{7}$/i.test(n)},"Error: Please enter valid Tax ID number.");$.validator.addMethod("over18",function(n){var t=new Date(n),i=t.getDate(),r=t.getMonth(),u=t.getFullYear(),f=new Date(u+18,r,i);return f<=new Date},"Error: We’re sorry, you must be at least 18 years old to start service.");$.validator.addMethod("under150",function(n){var t=new Date(n),i=t.getDate(),r=t.getMonth(),u=t.getFullYear(),f=new Date(u+150,r,i);return f>=new Date},"Error: We’re sorry, you must be under a 150 years old to start service.");ni=function(){ci();li();t=!0};ni()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.FormValidationModule=function(){var n={PAGE_HEADER:"js-page-header",MESSAGE_WRAPPER:"js-form-messages",MESSAGE_SUCESS:"js-success-message",MESSAGE_SUCESS_FOCUS:"js-success-message-focus",MESSAGE_SUCCESS_ALT:"js-success-alt-message",MESSAGE_SUCCESS_ALT_FOCUS:"js-success-alt-message-focus",MESSAGE_ERROR:"js-error-message",MESSAGE_ERROR_FOCUS:"js-error-message-focus",CONTACT_COPY:"js-contact-us-copy-block",CONTACT_SUCCESS_CLASS:"contact-us-form__copy-block--success",CAPTCHA_ELEMENT:"js-recaptcha",INPUT_ERROR_CLASS:"coned-input-message--error",FIELD_ERROR_CLASS:"coned-field-error-wrapper",CONED_INPUT:".coned-input",CONED_INPUT_PHONE:".coned-input-phone",CONED_TEXT_AREA:".coned-textarea",CONED_FILE_INPUT:".coned-inputfile",CONED_SUBMIT_BUTTON:".js-submit-button",CONED_INPUT_BIRTH_DATE:".js-birth-date",CONED_INPUT_DATE_FORMAT:".js-date-format",CONED_INPUT_WEEK_DAYS:".js-week-days",CONED_INPUT_HOUR_DAY:".js-hours-day",INPUT_FILLED_CLASS:"coned-input--filled",TEXT_AREA_FILLED_CLASS:"coned-textarea--filled",INPUT_VALID_CLASS:"valid",GET_FILE_LIST:"js-file-list-button",RESET_BUTTON:"js-reset-button",TRY_AGAIN_BUTTON:"js-try-again-button",FORM_SELECTOR:"coned-form",DROPDOWN_LABEL:"js-coned-select-label",INPUT_TEXT_SELECTOR:"js-coned-input",TEXTAREA_SELECTOR:"js-coned-textarea",FORM_LOADING_SELECTOR:"js-form-loading",FORM_LOADING_HIDDEN:"form-loading--hidden",FORM_LOADING_IMAGE:"js-form-loading-image",HEADER_WRAPPER:"js-header-wrapper",BORDER_ANIMATION_SELECTOR:"js-border-bar-selector",BORDER_ANIMATION_CLASS:"border-bar--animate",DATE_SELECTOR:"js-date",RADIO_BUTTON_SELECTOR:"js-coned-radio",CHECKBOX_SELECTOR:"js-checkbox-selector",CHECKBOX_SWITCH_FOCUS_SELECTOR:"js-checkbox-switch-focus",DROPDOWN_SELECTOR:"js-coned-select",ACTIVE_DROPDOWN:"coned-select--active",CHECKBOX_CHECKED_CLASS:"coned-checkbox--checked",CHECKBOX_AUTO_CLASS:"coned-checkbox--auto",CURRENCY_INPUT_SELECTOR:"js-currency-input",CURRENCY_INPUT_OPTIONAL_SELECTOR:"js-currency-input-optional",TIME_INPUT_SELECTOR:"js-daytime-format",ZIPCODE_USA_INPUT_SELECTOR:"js-zipcode-input",ZIPCODE_USA_SELECTOR:"js-zipcode-input-selector",NO_SPACES_SELECTOR:"js-input-no-spaces",FORM_IGNORE_VALIDATION:".js-validate-ignore",PHONE_EXTENSION_SELECTOR:"js-validate-phone-extension",CONED_INPUT_FILLED:".js-item-filled",CONED_INPUT_NUMBERS:".js-number-input",NUMBER_FORMAT_SELECTOR:"js-number-format",CONED_NUMBER_ACCOUNT:"js-coned-account-number",ORU_NUMBER_ACCOUNT:"js-oru-account-number",ORU_ADDRESS_INPUT:"js-oru-address-input",CONED_INPUT_SSN:".js-input-ssn",CONED_ADDRESS_INPUT:"js-address-input",CONED_EIN_TAX_INPUT:".js-ein-tax-input",LIMITED_LENGTH_INPUT:"js-limit-length-input",TOTAL_AMOUNT_RESULT_SELECTOR:"js-total-result",TOTAL_RESULT_HIDDEN_INPUTS_SELECTOR:"js-total-result-hidden-input",CHECKBOX_EQUAL_HIERARCHY:"js-checkbox-equal-hierarchy-selector",VALIDATE_IN_BETWEEN_LENGTH_SELECTOR:"js-validate-no-in-between-length",VALIDATE_START_MIN_LENGTH_SELECTOR:"js-validate-start-min-length",VALIDATE_START_KEY_UP_SELECTOR:"js-validate-start-key-up",VALIDATE_START_MIN_EMAIL_SELECTOR:"js-validate-start-min-email",VALIDATE_START_BLUR_SELECTOR:"js-validate-start-blur",VALIDATE_TAB_SELECTOR:"js-validate-tab",VALIDATE_START_CHANGE_SELECTOR:"js-validate-start-change",VALIDATE_START_TWELVE_DIGITS_SELECTOR:"js-validate-start-twelve-digits",DATA_INPUT_SHOULD_START_VALIDATE:"data-input-should-start-validate",VALIDATE_CHANGE_FILLED_SELECTOR:"js-validate-change-filled",KEYUP_EVENT:"keyup",CHANGE_EVENT:"change",TOP_ERROR_MESSAGE:"js-error-top-message",BLUR_EVENT:"blur",SSN_LENGTH:9,ACCESSIBILITY_FORM:"js-a11y-form",ACCESSIBILITY_FORM_ERROR:"js-a11y-form--error",TABINDEX:"tabindex",FOCUS_LABEL_CHECKBOX:"coned-checkbox--focus",CHECKBOX_SWITCH_FOCUS:"coned-checkbox-switch--focus",FORM_WRAPPER_NO_BACKGROUND_CLASS:"coned-form-wrapper--no-background"},t=!1,i,r=function(r){function sr(){if(u=r.getElementsByClassName(n.FORM_SELECTOR)[0],ai=u.action,tt=u,vi=tt.querySelectorAll('input[type="file"]').length?coned.utils.formDataFileInputFix(tt):new FormData(tt),l&&(a=o.getResponse()),l&&a==="")return o.checkRecaptcha(),!1;l?o.checkRecaptcha():gi(u,vi,ai)}function pi(){b.parentNode.style.position="";b.classList.add(n.FORM_LOADING_HIDDEN)}function hr(){b.parentNode.style.position="relative";b.classList.remove(n.FORM_LOADING_HIDDEN);ki.scrollIntoView(!1);yi=window.pageYOffset;yi&&(g?window.scroll(0,yi+g.offsetHeight):window.scroll(0,0))}function di(){gi(u,vi,ai)}function gi(n,t,i){hr();o&&(a=l?o.getResponse():null);l&&a&&a!==""&&t.append("Verify",a);query.postData(i,function(t){pi();ir("success");nr();query.fireEvent(n,"submit-success");query.fireEvent(n,"form-submit-success",t)},function(){f?(pi(),ir(),nr(),query.fireEvent(n,"submit-error"),query.fireEvent(n,"form-submit-error")):(pi(),lr(),query.fireEvent(n,"submit-error"),query.fireEvent(n,"form-submit-error"))},t,!1,"")}function ir(t){var i=t?e:f;i.style.display="block";rt.style.display="block";t?(f&&(f.style.display="none"),query.fireEvent(u,"submit-success"),dataLayer.push({event:"coned.form.success"})):(query.fireEvent(u,"submit-error"),dataLayer.push({event:"coned.form.fail.submission"}));ut&&query.addClass(ut,n.CONTACT_SUCCESS_CLASS)}var y,rt,e,k,f,ut,bi,ft,h,et,ot,st,ht,ct,lt,at,vt,yt,c,p,w,pt,wt,bt,v,kt,dt,gt,ni,ti,ii,ri,ui,fi,ei,oi,si,hi,d,u,b,ki,g,ci,li,nt,o,ai,tt,vi,l,yi,a,or=function(){$(n.CONED_INPUT).bind("input change keyup",function(){$(this).val()!==""?$(this).addClass(n.INPUT_FILLED_CLASS):$(this).removeClass(n.INPUT_FILLED_CLASS)});$(n.CONED_TEXT_AREA).bind("change keyup",function(){$(this).val()!==""?$(this).addClass(n.TEXT_AREA_FILLED_CLASS):$(this).removeClass(n.TEXT_AREA_FILLED_CLASS)});$(n.CONED_INPUT_PHONE).bind("input keyup",function(n){coned.utils.preventBehaviourError(n)||(this.value=this.value.match(/\d*/g).join("").match(/(\d{0,3})(\d{0,3})(\d{0,4})/).slice(1).join("-").replace(/-*$/g,""))});$(r).find(n.CONED_FILE_INPUT).bind("inputFileInvalid inputFileValid",function(t){$(r).find(n.CONED_SUBMIT_BUTTON)[0].disabled=t.type==="inputFileInvalid"});$(n.CONED_INPUT_BIRTH_DATE).keyup(function(n){coned.utils.preventBehaviourError(n)||(this.value=this.value.match(/\d*/g).join("").match(/(\d{0,2})(\d{0,2})(\d{0,4})/).slice(1).join("/").replace(/\/*$/g,""))});$(n.CONED_INPUT_DATE_FORMAT).keyup(function(n){coned.utils.preventBehaviourError(n)||(this.value=this.value.match(/\d*/g).join("").match(/(\d{0,2})(\d{0,2})(\d{0,4})/).slice(1).join("/").replace(/\/*$/g,""))});$(n.CONED_INPUT_WEEK_DAYS).keyup(function(){this.value=this.value.match(/\d*/g).join("").match(/(\d{0,1})/).slice(1).join("-").replace(/-*$/g,"")});$(n.CONED_INPUT_HOUR_DAY).keyup(function(n){coned.utils.preventBehaviourError(n)||(this.value=this.value.match(/\d*/g).join("").match(/(\d{0,2})/).slice(1).join("-").replace(/-*$/g,""))});$(n.CONED_INPUT_FILLED).keyup(function(){$(this).valid()});$(n.CONED_INPUT_NUMBERS).keyup(function(){this.value=this.value.replace(/[^0-9]/g,"")});$(n.CONED_INPUT).keyup(function(){this.value=this.value.replace(/^\s+/g,"")});$(n.CONED_INPUT_SSN).keyup(function(t){if(!coned.utils.preventBehaviourError(t)){var r=this;clearTimeout(i);i=setTimeout(function(){var t=r.value.length;r.value=r.value.match(/\d*/g).join("").match(/(\d{0,3})(\d{0,2})(\d{0,4})/).slice(1).join("-").replace(/-*$/g,"");t>n.SSN_LENGTH&&$(r).valid()},1e3)}});$(n.CONED_EIN_TAX_INPUT).keyup(function(n){coned.utils.preventBehaviourError(n)||(this.value=this.value.match(/\d*/g).join("").match(/(\d{0,2})(\d{0,7})/).slice(1).join("-").replace(/-*$/g,""))})},nr=function(){u.style.display="none";query.addClass(r,n.FORM_WRAPPER_NO_BACKGROUND_CLASS);y&&(y.style.display="none");window.scrollTo(0,0)},cr=function(){query.hasClass(r,n.FORM_WRAPPER_NO_BACKGROUND_CLASS)&&query.removeClass(r,n.FORM_WRAPPER_NO_BACKGROUND_CLASS);y&&(y.style.display="block")},lr=function(){nt.classList.remove("hidden");nt.scrollIntoView(!0);var n=window.pageYOffset;n&&window.scroll(0,n-g.offsetHeight);query.fireEvent(u,"submit-error")},tr=function(t){switch(t.type){case"submit-success":e&&query.hasClass(e,n.MESSAGE_SUCESS_FOCUS)&&e.focus();break;case"submit-error":f&&query.hasClass(f,n.MESSAGE_ERROR_FOCUS)?f.focus():nt.focus()}},ar=function(){o&&l&&o.reset();cr();e.style.display="none";f.style.display="none";rt.style.display="none";u.style.display="block";u.scrollIntoView(!0);query.fireEvent(u,"form-try-again");dataLayer.push({event:"coned.form.fail.try.again"})},vr=function(t){var i,s,u,l,f,a,ut,y,e,b,o,k,it,d,g,nt,ft,tt,et,rt;for(t.preventDefault(),$(r).find("form").validate().resetForm(),s=0;s<h.length;s++)(u=h[s],u.disabled)||(i=u.parentElement.getElementsByClassName(n.BORDER_ANIMATION_SELECTOR)[0],query.removeClass(u,n.INPUT_FILLED_CLASS),query.removeClass(u,n.INPUT_VALID_CLASS),i&&query.removeClass(i,n.BORDER_ANIMATION_CLASS),u.value="");for(l=0;l<c.length;l++)(f=c[l],f.disabled)||(i=f.parentElement.getElementsByClassName(n.BORDER_ANIMATION_SELECTOR)[0],query.removeClass(f,n.TEXT_AREA_FILLED_CLASS),query.removeClass(f,n.INPUT_VALID_CLASS),i&&query.removeClass(i,n.BORDER_ANIMATION_CLASS),f.value="");for(a=0;a<wt.length;a++)ut=wt[a],ut.removeAttribute("style");for(y=0;y<bt.length;y++)(e=bt[y],e.disabled)||(e.removeAttribute("style"),e.selectedIndex=0,e.classList.remove(n.ACTIVE_DROPDOWN));for(b=0;b<p.length;b++)(o=p[b],o.disabled)||(i=o.parentElement.getElementsByClassName(n.BORDER_ANIMATION_SELECTOR)[0],query.removeClass(o,n.INPUT_FILLED_CLASS),query.removeClass(u,n.INPUT_VALID_CLASS),i&&query.removeClass(i,n.BORDER_ANIMATION_CLASS),o.value="");for(k=0;k<v.length;k++)(it=v[k],it.disabled)||(it.checked=!1);for(d=0;d<w.length;d++)(g=w[d],g.disabled)||(g.checked=!1,query.removeClass(g.parentElement,n.CHECKBOX_CHECKED_CLASS));for(nt=0;nt<si.length;nt++)ft=si[nt],ft.textContent="";for(tt=0;tt<hi.length;tt++)et=hi[tt],et.value="";rt=r.getElementsByClassName(n.FORM_SELECTOR)[0]?r.getElementsByClassName(n.FORM_SELECTOR)[0]:r.getElementsByTagName("form")[0];coned.utils.focusFirstFormInputField(rt);query.fireEvent(rt,"reset-form")},yr=function(){for(var u,i,f,r,e,t=0;t<h.length;t++)u=h[t],u.value&&u.classList.add(n.INPUT_FILLED_CLASS);for(i=0;i<c.length;i++)f=c[i],f.value&&f.classList.add(n.TEXT_AREA_FILLED_CLASS);for(r=0;r<p.length;r++)e=p[r],e.value&&e.classList.add(n.INPUT_FILLED_CLASS)},pr=function(n){var t=n.target;t.value!==""&&$(t).valid()},wr=function(t){var i=t.target,u=t.keyCode,r=!i.hasAttribute(n.DATA_INPUT_SHOULD_START_VALIDATE);u==coned.constants.KEY_CODE.TAB&&r?i.dataset.inputShouldStartValidate=!0:(r&&(i.dataset.inputShouldStartValidate=!0),$(i).valid())},rr=function(t){var i=t.target,r=!i.hasAttribute(n.DATA_INPUT_SHOULD_START_VALIDATE);r&&(i.dataset.inputShouldStartValidate=!0);$(i).valid()},br=function(t){var i=t.target,u=i.value,r=!i.hasAttribute(n.DATA_INPUT_SHOULD_START_VALIDATE);/.+@.+\..+/g.test(u)&&r?(i.dataset.inputShouldStartValidate=!0,$(i).valid()):r||$(i).valid()},kr=function(n){var t=n.keyCode;t==coned.constants.KEY_CODE.TAB&&$(this).valid()},dr=function(t){var i=t.target,r=i.value,u=r.length,f=i.dataset.ruleMinlength,e=!i.hasAttribute(n.DATA_INPUT_SHOULD_START_VALIDATE);u>=f?$(i).valid():e||$(i).valid()},ur=function(n){var t=n.target,o=t.value,f=o.length,e=parseInt(t.dataset.ruleMaxlength),r=parseInt(t.dataset.firstMax),h=parseInt(t.dataset.secondMax),u=!1,i;f<=r&&e!=r?(i=t.dataset.firstMax,u=!0):f>r&&e!=h&&(i=t.dataset.secondMax,u=!0);u===!0&&(t.dataset.ruleMinlength=i,t.dataset.ruleMaxlength=i,$(t).rules("add",{maxlength:i,minlength:i}));s(n,parseInt(i));$(t).valid()},gr=function(t){var i=t.target,u=i.value.length,r=!i.hasAttribute(n.DATA_INPUT_SHOULD_START_VALIDATE);r&&u===12?(i.dataset.inputShouldStartValidate=!0,$(i).valid()):r||$(i).valid()},s=function(n,t){if(n!==undefined&&n.target.value.length>=t){if(coned.utils.preventBehaviourError(n))return;n.preventDefault()}},nu=function(n,t){n.preventDefault();var u=n.target,r=u.value,i=n.clipboardData.getData("text"),o,e=t,c=e-r.length,f=u.selectionStart,s=u.selectionEnd,h=s-f,l=s!==f;i=i.replace(/[^0-9]/g,"");l?(i=r.length===e?i.substring(0,h):i.substring(0,c+h),r=r.splice(f,h,i),o=r.substring(0,e)):r.length!==0?(i=i.substring(0,c),r=r.splice(f,0,i),o=r.substring(0,e)):o=i.substring(0,e);u.value=o;l&&(i.length>h?u.setSelectionRange(f+i.length,f+i.length):u.setSelectionRange(s,s))},it=function(t){var i=t.target.parentElement.getElementsByClassName(n.BORDER_ANIMATION_SELECTOR)[0];query.hasClass(i,n.BORDER_ANIMATION_CLASS)?query.removeClass(i,n.BORDER_ANIMATION_CLASS):query.addClass(i,n.BORDER_ANIMATION_CLASS)},tu=function(t){var r=t.target,i;i=r.classList.contains(n.CHECKBOX_EQUAL_HIERARCHY)?t.target.nextElementSibling:t.target.parentElement;r.checked?query.addClass(i,n.CHECKBOX_CHECKED_CLASS):query.removeClass(i,n.CHECKBOX_CHECKED_CLASS)},iu=function(t){var i=t.target.classList.contains(n.CHECKBOX_EQUAL_HIERARCHY)?t.target.nextElementSibling:t.target.parentElement;query.addClass(i,n.FOCUS_LABEL_CHECKBOX)},ru=function(t){var i=t.target.classList.contains(n.CHECKBOX_EQUAL_HIERARCHY)?t.target.nextElementSibling:t.target.parentElement;query.removeClass(i,n.FOCUS_LABEL_CHECKBOX)},uu=function(t){var i=t.target.parentElement;query.addClass(i,n.CHECKBOX_SWITCH_FOCUS)},fu=function(t){var i=t.target.parentElement;query.removeClass(i,n.CHECKBOX_SWITCH_FOCUS)},eu=function(n){return n.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},ou=function(t){var i=t.value.replace(/[^\d.-]/g,""),u="",r="",f;i=i.replace(/[-\s]+/g,"");i=i.split(".",2);f=parseInt(i[0])*1;typeof i[1]!="undefined"&&(i[1].length>2?(r=i[1][0],typeof i[1][1]!="undefined"&&(r+=i[1][1])):r=i[1],u="."+r);i[0].length>0?t.value="$"+eu(f)+u:(t.value="",query.removeClass(t,n.INPUT_FILLED_CLASS))},su=function(t){var i=t.target;i.value==="$"&&(i.value="",query.removeClass(i,n.INPUT_FILLED_CLASS),query.removeClass(i,n.INPUT_VALID_CLASS))},hu=function(n){var t=n.value.split(":",2);t[0].length===3&&(typeof t[1]=="undefined"||t[1]==="")?n.value=t[0].slice(0,2)+":"+t[0].slice(2,4):t[0].length===1&&typeof t[1]!="undefined"&&t[1]!==""&&t[1].length>2?n.value=t[0][0]+t[1][0]+":"+t[1].slice(1,3):(t[0].length>2||typeof t[1]!="undefined"&&t[1]!==""&&t[1].length>2)&&(n.value=t[0].slice(-2)+":"+t[1].slice(-2))},wi=function(n){if(!coned.utils.preventBehaviourError(n)){var t=n.target.value;n.target.value=t.replace(/\D/g,"")}},cu=function(n){if(!coned.utils.preventBehaviourError(n)){var t=n.target.value;n.target.value=t.replace(" ","")}},lu=function(n){if(!coned.utils.preventBehaviourError(n)){var t=n.target.value;n.target.value=t.replace(/[^\a-z\d\-\s\&]/gi,"")}},au=function(){y=document.getElementsByClassName(n.PAGE_HEADER)[0];rt=r.getElementsByClassName(n.MESSAGE_WRAPPER)[0];e=r.getElementsByClassName(n.MESSAGE_SUCESS)[0];k=r.getElementsByClassName(n.MESSAGE_SUCCESS_ALT)[0];f=r.getElementsByClassName(n.MESSAGE_ERROR)[0];ut=r.getElementsByClassName(n.CONTACT_COPY)[0];bi=r.getElementsByClassName(n.CAPTCHA_ELEMENT);ft=r.getElementsByClassName(n.RESET_BUTTON)[0];ci=r.getElementsByClassName(n.TRY_AGAIN_BUTTON)[0];h=r.getElementsByClassName(n.INPUT_TEXT_SELECTOR);et=r.getElementsByClassName(n.VALIDATE_IN_BETWEEN_LENGTH_SELECTOR);ot=r.getElementsByClassName(n.VALIDATE_START_MIN_LENGTH_SELECTOR);st=r.getElementsByClassName(n.VALIDATE_START_KEY_UP_SELECTOR);ht=r.getElementsByClassName(n.VALIDATE_START_MIN_EMAIL_SELECTOR);ct=r.getElementsByClassName(n.VALIDATE_START_BLUR_SELECTOR);lt=r.getElementsByClassName(n.VALIDATE_TAB_SELECTOR);at=r.getElementsByClassName(n.VALIDATE_START_CHANGE_SELECTOR);yt=r.getElementsByClassName(n.VALIDATE_START_TWELVE_DIGITS_SELECTOR);vt=r.getElementsByClassName(n.VALIDATE_CHANGE_FILLED_SELECTOR);c=r.getElementsByClassName(n.TEXTAREA_SELECTOR);w=r.getElementsByClassName(n.CHECKBOX_SELECTOR);pt=r.getElementsByClassName(n.CHECKBOX_SWITCH_FOCUS_SELECTOR);wt=r.getElementsByClassName(n.DROPDOWN_LABEL);p=r.getElementsByClassName(n.DATE_SELECTOR);v=r.getElementsByClassName(n.RADIO_BUTTON_SELECTOR);bt=r.getElementsByClassName(n.DROPDOWN_SELECTOR);kt=r.getElementsByClassName(n.CURRENCY_INPUT_SELECTOR);dt=r.getElementsByClassName(n.TIME_INPUT_SELECTOR);gt=r.getElementsByClassName(n.ZIPCODE_USA_INPUT_SELECTOR);li=document.getElementsByClassName(n.ACCESSIBILITY_FORM);ni=r.getElementsByClassName(n.ZIPCODE_USA_SELECTOR);ti=r.getElementsByClassName(n.NO_SPACES_SELECTOR);ii=r.getElementsByClassName(n.PHONE_EXTENSION_SELECTOR);ri=r.getElementsByClassName(n.NUMBER_FORMAT_SELECTOR);ui=r.getElementsByClassName(n.CONED_NUMBER_ACCOUNT);fi=r.getElementsByClassName(n.ORU_NUMBER_ACCOUNT);ei=r.getElementsByClassName(n.CONED_ADDRESS_INPUT);oi=r.getElementsByClassName(n.LIMITED_LENGTH_INPUT);si=r.getElementsByClassName(n.TOTAL_AMOUNT_RESULT_SELECTOR);hi=r.getElementsByClassName(n.TOTAL_RESULT_HIDDEN_INPUTS_SELECTOR);d=r.getElementsByClassName(n.FORM_SELECTOR);b=r.getElementsByClassName(n.FORM_LOADING_SELECTOR)[0];ki=document.getElementsByClassName(n.FORM_LOADING_IMAGE)[0];g=document.getElementsByClassName(n.HEADER_WRAPPER)[0];nt=r.getElementsByClassName(n.TOP_ERROR_MESSAGE)[0];l=bi.length;a=""},vu=function(){e&&query.hasClass(e,n.MESSAGE_SUCESS_FOCUS)&&e.setAttribute(n.TABINDEX,"-1");f&&query.hasClass(f,n.MESSAGE_ERROR_FOCUS)&&f.setAttribute(n.TABINDEX,"-1");k&&query.hasClass(k,n.MESSAGE_SUCCESS_ALT_FOCUS)&&k.setAttribute(n.TABINDEX,"-1")},yu=function(){var e,vu,l,hr,a,yu,y,pu,p,wu,b,bu,k,ku,g,du,nt,gu,tt,nf,rt,tf,ut,cr,wt,t,bt,lr,si,eu,hi,rf,ai,uf,vi,yi,pi,ff,bi,i,ki,ef,gi,of,nr,au,ir,sf,fr,f,er,hf;if(or(),yr(),ft!==undefined&&coned.utils.addGeneralListeners(ft,vr),ci&&coned.utils.addGeneralListeners(ci,ar),d)for(e=0;e<d.length;e++)vu=d[e],new coned.components.ValidateForm(vu,sr),u=r.getElementsByClassName(n.FORM_SELECTOR)[0],r.dataset.initRecaptcha&&r.dataset.initRecaptcha!==coned.constants.TRUE||(o=new coned.components.Recaptcha(u,di,di));for(l=0;l<h.length;l++)hr=h[l],hr.addEventListener("focus",it),hr.addEventListener("focusout",it);for(a=0;a<et.length;a++)yu=et[a],yu.addEventListener(n.KEYUP_EVENT,ur);for(y=0;y<vt.length;y++)pu=vt[y],pu.addEventListener(n.CHANGE_EVENT,pr);for(p=0;p<ot.length;p++)wu=ot[p],wu.addEventListener(n.KEYUP_EVENT,dr);for(b=0;b<st.length;b++)bu=st[b],bu.addEventListener(n.KEYUP_EVENT,wr);for(k=0;k<lt.length;k++)ku=lt[k],ku.addEventListener(n.KEYUP_EVENT,kr);for(g=0;g<ct.length;g++)du=ct[g],du.addEventListener(n.BLUR_EVENT,rr);for(nt=0;nt<ht.length;nt++)gu=ht[nt],gu.addEventListener(n.KEYUP_EVENT,br);for(tt=0;tt<at.length;tt++)nf=at[tt],nf.addEventListener(n.CHANGE_EVENT,rr);for(rt=0;rt<yt.length;rt++)tf=yt[rt],tf.addEventListener(n.KEYUP_EVENT,gr);for(ut=0;ut<c.length;ut++)cr=c[ut],cr.addEventListener("focus",it),cr.addEventListener("focusout",it);for(wt=0;wt<w.length;wt++)t=w[wt],query.hasClass(t.parentElement,n.CHECKBOX_AUTO_CLASS)||t.addEventListener("change",tu),t.addEventListener("focusin",iu),t.addEventListener("focusout",ru);for(bt=0;bt<pt.length;bt++)lr=pt[bt],lr.addEventListener("focusin",uu),lr.addEventListener("focusout",fu);for(si=0;si<gt.length;si++)eu=gt[si],eu.addEventListener("keyup",wi),eu.addEventListener("keypress",function(n){s(n,5)});for(hi=0;hi<ni.length;hi++)rf=ni[hi],rf.addEventListener("keyup",wi);for(ai=0;ai<ri.length;ai++)uf=ri[ai],uf.addEventListener("keyup",wi);for(vi=0;vi<kt.length;vi++)yi=kt[vi],yi.addEventListener("keyup",function(n){coned.utils.preventBehaviourError(n)||ou(n.currentTarget)}),query.hasClass(yi,n.CURRENCY_INPUT_OPTIONAL_SELECTOR)&&yi.addEventListener(n.BLUR_EVENT,su);for(pi=0;pi<dt.length;pi++)ff=dt[pi],ff.addEventListener("keyup",function(n){coned.utils.preventBehaviourError(n)||(n.currentTarget.value=n.currentTarget.value.replace(/[^\d:]/g,""),hu(n.currentTarget))});for(bi=0;bi<ei.length;bi++)i=ei[bi],i.addEventListener("keyup",lu),$(i).hasClass(n.ORU_ADDRESS_INPUT)?i.addEventListener("keypress",function(n){s(n,28)}):i.addEventListener("keypress",function(n){s(n,21)});for(ki=0;ki<ii.length;ki++)ef=ii[ki],ef.addEventListener("keypress",function(n){s(n,4)});for(gi=0;gi<ui.length;gi++)of=ui[gi],of.addEventListener("keypress",function(n){s(n,15)});for(nr=0;nr<fi.length;nr++)au=fi[nr],au.addEventListener("keypress",function(n){s(n,11)}),au.addEventListener("paste",function(t){nu(t,11);ur(t);$(this).val()!==""?$(this).addClass(n.INPUT_FILLED_CLASS):$(this).removeClass(n.INPUT_FILLED_CLASS)});for(ir=0;ir<oi.length;ir++)sf=oi[ir],sf.addEventListener("keypress",function(n){var t=n.target.dataset.ruleMaxlength;s(n,t)});for(fr=0;fr<li.length;fr++)(function(){for(var i=li[fr],r=i.getElementsByClassName(n.ACCESSIBILITY_FORM_ERROR),u,t=0;t<r.length;t++)u=r[t],u.addEventListener("blur",function(){coned.utils.focusFirstFormInputField(i)})})();for(r.addEventListener("submit-success",tr),r.addEventListener("submit-error",tr),f=0;f<v.length;f++)v[f].addEventListener("focusin",function(){query.addClass(this.nextElementSibling,"coned-radio__indicator--focus")}),v[f].addEventListener("focusout",function(){query.removeClass(this.nextElementSibling,"coned-radio__indicator--focus")});for(er=0;er<ti.length;er++)hf=ti[er],hf.addEventListener("keyup",cu)},fr,er;$.validator.addMethod("customName",function(n,t){return this.optional(t)||/[a-zA-Z]+\s+[a-zA-Z]+/g.test(n)},"Error: First name and last name required.");$.validator.addMethod("customEmail",function(n,t){return this.optional(t)||/^\w+[-+.'\w]*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(n)},"Error: Please enter a valid email address.");$.validator.addMethod("customEmailReduced",function(n,t){return this.optional(t)||/^\w+([-.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(n)},"Error: Please enter a valid email address.");$.validator.addMethod("canadaZipCode",function(n,t){return this.optional(t)||/^(?!.*[DFIOQU])[A-VXY][0-9][A-Z] ?[0-9][A-Z][0-9]$/i.test(n)},"Error: The specified Canada ZIP Code is invalid.");$.validator.addMethod("USAZipCode",function(n,t){return this.optional(t)||/^([0-9]{5})(?:[-\s]*([0-9]{4}))?$/.test(n)},"Error: Please enter a valid ZIP code.");$.validator.addMethod("ssnValidation",function(n){return/^\d{3}-\d{2}-\d{4}$/.test(n)},"Error: Please enter a valid SSN number.");$.validator.addMethod("nameAllowedCharactersValidation",function(n,t){return this.optional(t)||/^[a-zA-Z0-9\s'\-\&]+$/.test(n)},"Error: Please enter a valid name.");$.validator.addMethod("fullNameAllowedCharactersValidation",function(n,t){return this.optional(t)||/^[a-zA-Z-'\s]+$/.test(n)?!0:(dataLayer.push({event:"foreign.char.error",field:t.name}),!1)},"Error: Please enter a valid name.");$.validator.addMethod("businessNameAllowedCharactersValidation",function(n,t){return this.optional(t)||/^[a-zA-Z0-9-'/&?!\s]+$/.test(n)?!0:(dataLayer.push({event:"foreign.char.error",field:t.name}),!1)},"Error: Please enter a valid name.");$.validator.addMethod("accountLimit",function(n,t){var i=t.dataset.maxAccounts&&t.dataset.maxAccounts!==0?parseFloat(t.dataset.maxAccounts):50;return n=n.split(/[,\s]/).filter(function(n){return n!==""}).length,n>=0&&n<=i},function(n,t){return"Error: Please limit your request to a maximum of "+t.dataset.maxAccounts+" account numbers at a time."});$.validator.addMethod("limitAmount",function(n,t){var i=t.dataset.limitMin?parseFloat(t.dataset.limitMin.replace(/[^\d.-]/g,"")):0,r=t.dataset.limitMax?parseFloat(t.dataset.limitMax.replace(/[^\d.-]/g,"")):0;return n=parseFloat(n.replace(/[^\d.-]/g,"")),(i<=0||n>=i)&&(r<=0||n<=r)},function(n,t){return t.dataset.limitAmountErrorMsg?t.dataset.limitAmountErrorMsg.replace("@MIN",t.dataset.limitMin).replace("@MAX",t.dataset.limitMax):"Error: Please enter a value between"+t.dataset.limitMin?t.dataset.limitMin:"0 and "+t.dataset.limitMax?t.dataset.limitMax:0});$.validator.addMethod("skipOrFillMinimum",function(n,t,i){var s=typeof i=="string"?parseInt(i.substring(1,i.length-1).split(",")[0]):i[0],u=typeof i=="string"?i.substring(1,i.length-1).split(",").slice(1,i.substring(1,i.length-1).split(",").length).join(","):i[1];u=u.substring(1,u.length-1);var r=$(u,t.form),f=r.eq(0),e=f.data("valid_skip")?f.data("valid_skip"):$.extend({},this),o=r.filter(function(){return e.elementValue(this)}).length,h=o===0||o>=s||t.value!=="";return f.data("valid_skip",e),$(t).data("being_validated")||(r.data("being_validated",!0),r.each(function(){e.element(this)}),r.data("being_validated",!1)),h},function(n,t){var i=t.dataset.ruleSkiporfillminimum,r=typeof i=="string"?parseInt(i.substring(1,i.length-1).split(",")[0]):i[0];return"Error: Please either skip these fields or fill at least "+r+" of them."});$.validator.addMethod("paymentLimits",function(n,t){var i=t.dataset.paymentMin?parseFloat(t.dataset.paymentMin.replace(/[^\d.-]/g,"")):0,r=t.dataset.paymentMax?parseFloat(t.dataset.paymentMax.replace(/[^\d.-]/g,"")):0;return n=parseFloat(n.replace(/[^\d.-]/g,"")),(i<=0||n>=i)&&(r<=0||n<=r)});$.validator.addMethod("paymentHigherNoZero",function(n,t){var i=t.dataset.paymentMin?parseFloat(t.dataset.paymentMin):0;return n=parseFloat(n.replace(/[^\d.-]/g,"")),n==0||i>0&&n>=i},"Error: Final Payment can't be less than $1. Please adjust your downpayment or number of installment.");$.validator.addMethod("paymentHigherThanZero",function(n){return n===""?!0:(n=parseFloat(n.replace(/[^\d.-]/g,"")),n>0)},"Error: Final Payment can't be 0. Please adjust your downpayment.");$.validator.addMethod("installmentLimit",function(n,t){return parseFloat(t.dataset.installmentBase)/parseFloat(n)>=5},"Error: Installment amount has to be higher than $5 per month.");$.validator.addMethod("lettersSpacesOnly",function(n){return/^[a-zA-Z ]*$/.test(n)},"Error: Please enter only letters.");$.validator.addMethod("addressInput",function(n,t){return this.optional(t)||/^[a-z\d\-\s\&]+$/i.test(n)},"Error: Please enter only numbers, letters, spaces or dashes.");$.validator.addMethod("fileRequired",function(n,t){return t.dataset.ruleFilerequired==="false"||!!t.fileList.length},"Error: This field is required.");$.validator.addMethod("routingNumber",function(n){for(var i=0,t=0;t<n.length;t+=3)i+=parseInt(n.charAt(t),10)*3+parseInt(n.charAt(t+1),10)*7+parseInt(n.charAt(t+2),10);return i!=0&&i%10==0?!0:!1},"Error: Please enter a valid routing/ABA number.");$.validator.addMethod("dateFormat",function(n){var t=Date.parse(n),i=n.split("/"),r=parseInt(i[0],10),u=parseInt(i[1],10),f=parseInt(i[2],10),e,o;return isNaN(t)?!1:i.length!==3?!1:(t=new Date(f,r-1,u),o=t.getFullYear()==f&&t.getMonth()+1==r&&t.getDate()==u,e=n.match(/^\d\d?\/\d\d?\/\d\d\d\d$/),o&&e)},"Error: Please enter a valid date in the format mm/dd/yyyy");$.validator.addMethod("endDateTime",function(n,t,i){var f=$(i.split(",")[0]).val(),e=$(i.split(",")[1]).val(),o=$(i.split(",")[2]).val(),s=$(i.split(",")[3]).val(),h=$(i.split(",")[4]).val(),c=$(i.split(",")[5]).val(),r=f+" "+e+" "+o,u=s+" "+h+" "+c;return/Invalid|NaN/.test(new Date(r))||/Invalid|NaN/.test(new Date(u))?!0:new Date(r)<new Date(u)},"Error: End date must be greater than start date.");$.validator.addMethod("todayPastDateMultiple",function(n,t,i){var u=new Date,f=$(i.split(",")[0]).val(),e=$(i.split(",")[1]).val(),o=$(i.split(",")[2]).val(),r=f+" "+e+" "+o;return/Invalid|NaN/.test(new Date(r))?!0:new Date(r)<=u},"Error: End date must be greater than start date.");$.validator.addMethod("endDate",function(n,t,i){return/Invalid|NaN/.test(new Date(n))?isNaN(n)&&isNaN($(i).val())||Number(n)>Number($(i).val()):new Date(n)>=new Date($(i).val())},"Error: End date must be greater than start date.");$.validator.addMethod("endDateStrict",function(n,t,i){return/Invalid|NaN/.test(new Date(n))?isNaN(n)&&isNaN($(i).val())||Number(n)>Number($(i).val()):new Date(n)>new Date($(i).val())},"Error: End date must be greater than start date.");$.validator.addMethod("limitDays",function(n,t,i){var u=$(i)?new Date($(i).val()):new Date,f=new Date(n),r=Math.round(Math.abs((u.getTime()-f.getTime())/864e5));if(r<30)return r<30},"Error: Date range cannot be greater than 30 days.");$.validator.addMethod("rangeDays",function(t,i,r){r=r.split(",");var f=$(r)?new Date($(r[0]).val()):new Date,e=$(r)?new Date($(r[1]).val()):new Date,u=Math.round(Math.abs((f.getTime()-e.getTime())/864e5));return $(r[0]).val()===""||$(r[1]).val()===""?!0:u<parseInt(r[2])?($(r[0]).hasClass(n.INPUT_ERROR_CLASS)&&(query.removeClass($(r[0]),n.INPUT_ERROR_CLASS),$(r[0])[0].parentElement.parentElement.getElementsByClassName("coned-field-error-wrapper")[0].remove()),$(r[1]).hasClass(n.INPUT_ERROR_CLASS)&&(query.removeClass($(r[1]),n.INPUT_ERROR_CLASS),$(r[1])[0].parentElement.parentElement.getElementsByClassName("coned-field-error-wrapper")[0].remove()),u<parseInt(r[2])):void 0},"Error: Date range is invalid.");$.validator.addMethod("payLimitDays",function(n){var i=new Date,r=new Date(n),u=Math.abs(i.getTime()-r.getTime()),t=Math.ceil(u/864e5);if(t<=5)return t<=5},"Error: Date range cannot be greater than 5 days.");$.validator.addMethod("startDate",function(n,t,i){var r=new Date(i),u=new Date(n);return r.getTime()<=u.getTime()},$.validator.format("Error: Date must be after {0}."));$.validator.addMethod("tomorrowLimit",function(n){var t=new Date,i=new Date(n),r=new Date(t.setDate(t.getDate()+1));return i<r||i.toString()===r.toString()},"Error: Real Time Prices are unavailable beyond tomorrow date");$.validator.addMethod("futureDate",function(n,t){var i=new Date,r=new Date(n);return this.optional(t)||r>i});$.validator.addMethod("todayDate",function(n,t){var r=new Date,u=r.setDate(r.getDate()-1),i=new Date(n);return i=i.setDate(i.getDate()),this.optional(t)||i>u});$.validator.addMethod("pastDate",function(n,t){var r=new Date,u=r.setDate(r.getDate()-1),i=new Date(n);return i=i.setDate(i.getDate()),this.optional(t)||i<u});$.validator.addMethod("pastTodayDate",function(n,t){var r=new Date,u=r.setDate(r.getDate()),i=new Date(n);return i=i.setDate(i.getDate()),this.optional(t)||i<=u});$.validator.addMethod("customDateLimit",function(n,t,i){i=i.split(",");var r=new Date,u=new Date(n),e=new Date(r.setFullYear(r.getFullYear()+parseFloat(i[2]),r.getMonth()+parseFloat(i[0]),r.getDate()+parseFloat(i[1]))),f=new Date(e.setHours(0,0,0));return u>f||u.toString()===f.toString()},"Error: Please enter a valid date.");$.validator.addMethod("transactionalStartDate",function(n,t,i){return/Invalid|NaN/.test(new Date(n))?isNaN(n)&&isNaN($(i).val())||Number(n)>Number($(i).val()):new Date(n)<=new Date($(i).val())},"Error: The service start date must be before or the same day the service end date.");$.validator.addMethod("daytimeFormat",function(n){return/^(0?[1-9]|1[0-2]):([0-5]?[0-9])$/.test(n)},"Error: Please enter a valid day time in the format hh:mm");$.validator.addMethod("transferLimitDays",function(n,t,i){var r=new Date($(i).val()),u=new Date(n),f=Math.round(Math.abs((r.getTime()-u.getTime())/864e5));return f<30},"Error: Dates within 30 calendar days");$.validator.addMethod("nextPaymentDue",function(n,t){var u=t.dataset.extensionDays,i=t.dataset.paymentDay,f=i!==""?new Date(i):new Date,e=new Date(n),r=Math.ceil((e.getTime()-f.getTime())/864e5);return r>0&&r<=u},"Error: Date can’t be more than 10 days after bill is due");$.validator.addMethod("servicesLimitDates",function(n,t){var r,i,u=new Date(n).getTime();return t.dataset.minDateDays||t.dataset.maxDateDays?(r=t.dataset.minDateDays?new Date(t.dataset.minDateDays).getTime():(new Date).setHours(0,0,0,0),i=t.dataset.maxDateDays?new Date(t.dataset.maxDateDays).getTime():(new Date).setHours(0,0,0,0)):(r=(new Date).setHours(0,0,0,0),i=new Date,i.setDate(i.getDate()+5),i=i.setHours(0,0,0,0)),u>=r&&u<=i},"Error: Dates range is invalid for this account");$.validator.addMethod("extensionLimitDates",function(n,t){var r=new Date(t.dataset.minDateDays).getTime(),u=new Date(t.dataset.maxDateDays).getTime(),i=new Date(n).getTime();return i>=r&&i<=u},function(n,t){var u=new Date(t.dataset.minDateDays).getTime(),f=new Date(t.dataset.maxDateDays).getTime(),i=new Date(t.value).getTime(),r=t.dataset.locale;return i<u?t.dataset.dateBeforePaymentMsg:i>f?r?t.dataset.dateAfterPaymentMsg.replace("@DATE",new Date(t.dataset.maxDateDays).toLocaleString(r,{year:"numeric",month:"long",day:"numeric"})):t.dataset.dateAfterPaymentMsg.replace("@DATE",t.dataset.maxDateDays):t.dataset.defaultErrorMsg});$.validator.addMethod("lettersNumbersOnly",function(n,t){return this.optional(t)||/^[0-9a-zA-Z]+$/i.test(n)},"Error: Please enter letters and numbers only.");$.validator.addMethod("autocompleteMustMatchOption",function(n,t){var i,r,u;if(t.dataset.ruleAutocompletemustmatchoption.includes("|")){r=t.dataset.ruleAutocompletemustmatchoption.split("|");switch(r[0]){case"data":i=t.dataset[r[1]];break;case"class":i=t.parentElement.getElementsByClassName(r[1])[0].value}switch(r[2]){case"JSON":i=_.keys(JSON.parse(i));break;case"comma":i=i.split(",")}}for(u=0;u<i.length;u++)if(n===coned.utils.entitiesDecode(i[u]))return!0;return!1},"Error: Please enter a correct option.");$.validator.addMethod("taxId",function(n,t){return this.optional(t)||/^[1-9]\d?-\d{7}$/i.test(n)},"Error: Please enter valid Tax ID number.");$.validator.addMethod("over18",function(n){var t=new Date(n),i=t.getDate(),r=t.getMonth(),u=t.getFullYear(),f=new Date(u+18,r,i);return f<=new Date},"Error: We’re sorry, you must be at least 18 years old to start service.");$.validator.addMethod("under150",function(n){var t=new Date(n),i=t.getDate(),r=t.getMonth(),u=t.getFullYear(),f=new Date(u+150,r,i);return f>=new Date},"Error: We’re sorry, you must be under a 150 years old to start service.");fr=function(){$.extend($.validator.messages,{required:"Error: This field is required.",email:"Error: Please enter a valid email address.",phoneUS:"Error: Please specify a valid phone number"})};er=function(){au();vu();yu();fr();t=!0};er()};return r.prototype.isLoaded=function(){return t},r}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.GalleryComponent=function(){var n={BUTTON_NEXT:"js-gallery-next",BUTTON_PREV:"js-gallery-prev",BUTTON_NEXT_MOBILE:"js-gallery-mob-next",BUTTON_PREV_MOBILE:"js-gallery-mob-prev",GALLERY_TITLE:"js-gallery-title",GALLERY_CAPTION:"js-gallery-caption",GALLERY_LINK:"js-gallery-link",GALLERY_DATE:"js-gallery-date",GALLERY_COUNTER:"js-gallery-counter",GALLERY_CONTROLS:"js-gallery-controls",SLIDE_ITEM:"swiper-slide",SWIPER_CONTAINER:"swiper-container",ACTIVE_SLIDE:"swiper-slide-active"},t=!1,i=function(i){var h,c,u,l,f,a,r,v,y,p,w,b,k,e,o,d,g,s,nt=function(){h=i.getElementsByClassName(n.GALLERY_TITLE)[0];c=i.getElementsByClassName(n.GALLERY_CAPTION)[0];u=i.getElementsByClassName(n.GALLERY_LINK)[0];l=i.getElementsByClassName(n.GALLERY_DATE)[0];f=i.getElementsByClassName(n.GALLERY_COUNTER)[0];a=i.getElementsByClassName(n.GALLERY_CONTROLS)[0];y=i.getElementsByClassName(n.BUTTON_NEXT_MOBILE)[0];p=i.getElementsByClassName(n.BUTTON_PREV_MOBILE)[0];w=i.getElementsByClassName(n.BUTTON_NEXT);b=i.getElementsByClassName(n.BUTTON_PREV);v=i.getElementsByClassName(n.SLIDE_ITEM);k=i.getElementsByClassName(n.SWIPER_CONTAINER);s=i.dataset.name;o="next-"+s;e="prev-"+s},tt=function(){function s(r){r=i.getElementsByClassName(n.ACTIVE_SLIDE)[0];g=parseInt(r.getAttribute("data-swiper-slide-index"))+1;d=t.slides.length-2;f.innerHTML=g+"/"+d;nt(r)}function nt(n){h.innerHTML=n.dataset.title;c.innerHTML=n.dataset.caption;u.innerHTML=n.dataset.source;u.href=n.dataset.link;l.innerHTML=n.dataset.date;u.parentNode.style.display=n.dataset.link.length<1?"none":"block"}if(query.addClass(w,o),query.addClass(b,e),v.length>1){var t=new Swiper(k,{loop:!0,followFinger:!1,nextButton:"."+o,prevButton:"."+e});r=i.getElementsByClassName(n.ACTIVE_SLIDE)[0];s(r);t.on("onSlideChangeEnd",function(){r=i.getElementsByClassName(n.ACTIVE_SLIDE)[0];s(r)});coned.utils.addGeneralListeners(y,t.slideNext);coned.utils.addGeneralListeners(p,t.slidePrev)}else f.style.display="none",a.style.display="none",r=i.getElementsByClassName(n.SLIDE_ITEM)[0],nt(r)},it=function(){nt();tt();t=!0};it()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.GeneralClaims=function(){var n={LOCATION_ADDRESS_CONTAINER:"js-location-address",TYPE_OF_INCIDENT_EXPLAIN:"js-toi-explain",WEATHER_EXPLAIN:"js-weather-explain",CONED_CONTACT_EXPLAIN:"js-coned-contact-explain",CONED_CONTRACTOR_NAME:"js-coned-contractor-name",POLICE_MESSAGE:"js-police-message",INSURANCE_INFO:"js-insurance-info",INSURANCE_EXPLAIN:"js-insurance-explain",LOCATION_CHECKBOX:"js-location-contact-checkbox",INCIDENT_CHECKBOXES:"js-type-incident-checkbox",INCIDENT_MOTOR_VEHICLE_CHECKBOX_ID:"generalClaimTypeIncidentMotorVehicle",WEATHER_CHECKBOXES:"js-weather-checkbox",CONED_CONTACT_CHECKBOXES:"js-coned-contact-radio",CONED_CONTRACTOR_RADIOS:"js-coned-contractor-radio",CONED_CONTRACTOR_RADIOS_NAME:"generalClaimConedContractor",POLICE_RADIOS:"js-police-radio",INSURANCE_RADIOS:"js-insurance-radio",TOTAL_AMOUNT_INPUT:"js-total-amount",SIGNATURE_DATE_INPUT:"js-signature-date",SUBMIT_BUTTON_SELECTOR:"js-submit-button",HIDDEN_CLASS:"hidden",FILLED_CLASS:"coned-input--filled",ARIA_HIDDEN:"aria-hidden",FALSE_VALUE:"false",INSURANCE_VALUE:"insurance",OTHER_VALUE:"other",TRUE_VALUE:"true",YES_VALUE:"yes",LESS_EQUAL_TAG:"<=reference claim amount",GREATER_TAG:">reference claim amount",VEHICLE_TAG:"vehicle",NO_VEHICLE_TAG:"novehicle",CONTRACTOR_TAG:"contractor",NO_CONTRACTOR_TAG:"nocontractor"},t=!1,i=function(i){var f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,u,tt,it,r=function(t,i){t?(i.classList.remove(n.HIDDEN_CLASS),i.setAttribute(n.ARIA_HIDDEN,n.FALSE_VALUE)):(i.classList.add(n.HIDDEN_CLASS),i.setAttribute(n.ARIA_HIDDEN,n.TRUE_VALUE))},rt=function(){f&&r(!1,f);e&&r(!1,e);o&&r(!1,o);s&&r(!1,s);h&&r(!1,h);c&&r(!1,c);l&&r(!1,l);a&&r(!1,a)},ut=function(){if($(i).validate().checkForm()){var t=query.getRadioInputValue(i,n.CONED_CONTRACTOR_RADIOS_NAME),r=t===n.YES_VALUE,u=p.checked;dataLayer.push({selections:(u?n.VEHICLE_TAG:n.NO_VEHICLE_TAG)+"."+(r?n.CONTRACTOR_TAG:n.NO_CONTRACTOR_TAG)})}},ft=function(){f=i.getElementsByClassName(n.LOCATION_ADDRESS_CONTAINER)[0];e=i.getElementsByClassName(n.TYPE_OF_INCIDENT_EXPLAIN)[0];o=i.getElementsByClassName(n.WEATHER_EXPLAIN)[0];s=i.getElementsByClassName(n.CONED_CONTACT_EXPLAIN)[0];h=i.getElementsByClassName(n.CONED_CONTRACTOR_NAME)[0];c=i.getElementsByClassName(n.POLICE_MESSAGE)[0];l=i.getElementsByClassName(n.INSURANCE_INFO)[0];a=i.getElementsByClassName(n.INSURANCE_EXPLAIN)[0];v=i.getElementsByClassName(n.LOCATION_CHECKBOX)[0];y=i.getElementsByClassName(n.INCIDENT_CHECKBOXES);p=document.getElementById(n.INCIDENT_MOTOR_VEHICLE_CHECKBOX_ID);w=i.getElementsByClassName(n.WEATHER_CHECKBOXES);b=i.getElementsByClassName(n.CONED_CONTACT_CHECKBOXES);k=i.getElementsByClassName(n.CONED_CONTRACTOR_RADIOS);d=i.getElementsByClassName(n.POLICE_RADIOS);g=i.getElementsByClassName(n.INSURANCE_RADIOS);nt=i.getElementsByClassName(n.TOTAL_AMOUNT_INPUT)[0];u=i.getElementsByClassName(n.SIGNATURE_DATE_INPUT)[0];tt=i.getElementsByClassName(n.SUBMIT_BUTTON_SELECTOR)[0];it=i.dataset&&i.dataset.distributionListAmount&&parseInt(i.dataset.distributionListAmount)?parseInt(i.dataset.distributionListAmount):3e3},et=function(){if(v.addEventListener("change",function(n){r(n.target.checked,f)}),nt.addEventListener("blur",function(t){t.target.value!==""&&dataLayer.push({DLS:parseFloat(t.target.value.replace(/[\$\,]/g,""))<=it?n.LESS_EQUAL_TAG:n.GREATER_TAG})}),_.each(y,function(t){t.addEventListener("change",function(t){t.target.value===n.OTHER_VALUE&&r(t.target.checked,e)})}),_.each(w,function(t){t.addEventListener("change",function(t){t.target.value===n.OTHER_VALUE&&r(t.target.checked,o)})}),_.each(b,function(t){t.addEventListener("change",function(t){r(t.target.checked&&t.target.value===n.YES_VALUE,s)})}),_.each(k,function(t){t.addEventListener("change",function(t){r(t.target.checked&&t.target.value===n.YES_VALUE,h)})}),_.each(d,function(t){t.addEventListener("change",function(t){r(t.target.checked&&t.target.value===n.YES_VALUE,c)})}),_.each(g,function(t){t.addEventListener("change",function(t){r(t.target.checked&&t.target.value===n.INSURANCE_VALUE,l);r(t.target.checked&&t.target.value===n.OTHER_VALUE,a)})}),i.addEventListener("reset-form",rt),u){var t=new Date,p=t.getDate(),ft=t.getMonth()+1,et=t.getFullYear();t=ft+"/"+p+"/"+et;u.value=t;u.disabled=!0;u.classList.add(n.FILLED_CLASS)}coned.utils.addGeneralListeners(tt,ut);setTimeout(function(){coned.utils.checkInputsFilled(i)},1e3)},ot=function(){ft();et();t=!0};ot()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.GoogleTranslateComponent=function(){var n={GOOGLE_TRANSLATE_BTN_CLASS:"js-google-translate-btn",GOOGLE_TRANSLATE_ELEMENT_CLASS:"js-google-translate-element",GOOGLE_TRANSLATE_ELEMENT_OPEN_CLASS:"google-translate__element--open",GOOGLE_TRANSLATE_SELECT_CLASS:".goog-te-combo",GOOGLE_TRANSLATE_BAR_CLOSE_CLASS:".goog-close-link",MODAL_SELECTOR_LINK_CLASS:"modal-selector__link",MODAL_SELECTOR_LINK_ACTIVE_CLASS:"modal-selector__link--active"},t=!1,i=function(i){var u,o,s,f,r,e,l=function(t){t.preventDefault();t.target.style.display="none";query.addClass(o,n.GOOGLE_TRANSLATE_ELEMENT_OPEN_CLASS)},h=function(){query.removeClass(r,n.MODAL_SELECTOR_LINK_ACTIVE_CLASS);query.addClass(u,n.MODAL_SELECTOR_LINK_ACTIVE_CLASS)},c=function(){query.removeClass(u,n.MODAL_SELECTOR_LINK_ACTIVE_CLASS)},a=function(){var n=function(){e!=r[0].text&&(e=r[0].text,h(),window.clearInterval(t))},t=window.setInterval(n,2e3)},v=function(){u=i.getElementsByClassName(n.GOOGLE_TRANSLATE_BTN_CLASS)[0];o=i.getElementsByClassName(n.GOOGLE_TRANSLATE_ELEMENT_CLASS)[0];s=$(n.GOOGLE_TRANSLATE_SELECT_CLASS);f=$(n.GOOGLE_TRANSLATE_BAR_CLOSE_CLASS);r=i.parentElement.parentElement.getElementsByClassName(n.MODAL_SELECTOR_LINK_CLASS);e=r[0].text},y=function(){coned.utils.addGeneralListeners(u,l);$("body").on("change",s,h);$("body").on("click",f,c);$("body").on("click",f,c);a()},p=function(){v();y();t=!0};p()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.GraphicsCard=function(){var i={GRAPHICS_GRID_INFO_CONTAINER_SELECTOR:"js-graphics-grid-info-container-selector"},n=!1,t=function(t){var r,u,f,e=function(){u=Array.prototype.map.call(r,function(n){return n.clientHeight});f=Math.max.apply(null,u);Array.prototype.forEach.call(r,function(n){n.style.height=f+"px"})},o=function(){Array.prototype.map.call(r,function(n){n.style.height=""});e()},s=function(){r=t.getElementsByClassName(i.GRAPHICS_GRID_INFO_CONTAINER_SELECTOR)},h=function(){e();window.addEventListener("resize",o)},c=function(){s();h();n=!0};c()};return t.prototype.isLoaded=function(){return n},t}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.HeaderComponent=function(){var n={HEADER_MENU_CLASS:"js-action-menu",HEADER_MENU_ICON_CLASS:"header__action-btn-icon",MODAL_SELECTOR:"js-modal-selector",MODAL_SELECTOR_LIST:"js-modal-selector-list",HEADER_MENU_ICON:"icon-menu",HEADER_MENU_OPEN_ICON:"icon-close",MODAL_ACTIVE_CLASS:"header__secondary-link--active",MODAL_SELECTOR_WRAPPER_ACTIVE:"modal-selector-wrapper--active",LOGGED_IN_MODAL_CLASS:"js-modal-logged-in-wrapper",LOGGED_IN_MODAL_OPEN_CLASS:"modal-logged-in-wrapper--open",OPEN_LOGGED_IN_MODAL:"js-open-logged-in-modal",CLOSE_LOGGED_IN_MODAL:"js-close-logged-in-modal",LOGGED_IN_MODAL_ITEM_CLASS:"js-modal-logged-in-item",NAV_CLASS:"header__primary",NAV_OPEN_CLASS:"header__primary--open",NAV_PRIMARY_ITEM_HOVER_CLASS:"hover",NAV_PRIMARY_ITEM_CLASS:"js-primary-nav-item",NAV_PRIMARY_ITEM_LINK_CLASS:"primary-nav-item__anchor",NAV_ITEM_CLASS:"js-nav-item",NAV_ITEM_CLASS_SELECTOR:".js-nav-item",NAV_ITEM_ICON_CLASS:"primary-nav-item__icon",NAV_ITEM_ICON_OPEN_CLASS:"primary-nav-item__icon--open",NAV_ITEM_LINKS_CLASS:"primary-nav-item__links",NAV_ITEM_BOTTOM_SECTION:"js-primary-nav-item-bottom-section",NAV_ITEM_LINKS_OPEN_CLASS:"primary-nav-item__links--open",NAV_ITEM_NAME:"js-primary-nav-name",NAV_ITEM_ADDRESS:"js-primary-nav-address",NAV_BUTTON_ACCOUNT_SELECTOR:"js-nav-button-account-selector",NAV_ITEM_PRIMARY_ACCOUNT_SELECTOR:"js-primary-nav-item-account-selector",NAV_ITEM_DROPDOWN_CONTAINER:"js-dropdown-container",NAV_ITEM_DROPDOWN_ITEM:"js-account-dropdown-search-item-desktop",NAV_OPEN_MODAL:"js-open-modal",NAV_MOBILE_OPEN_MODAL:"js-mobile-modal-open",NAV_CLOSE_MODAL:"js-close-modal",NAV_MOBILE_SECONDARY:"js-nav-mobile-secondary",NAV_MOBILE_SECONDARY_INIT_PADDING:40,NAV_MOBILE_PRIMARY_ITEM_FORWARD:"js-primary-nav-mobile-item-forward",NAV_MOBILE_PRIMARY_ITEM_BACK:"js-primary-nav-mobile-item-back",NAV_MOBILE_DRAWER_PRIMARY_WRAPPER:"js-primary-nav-drawer-wrapper",NAV_MOBILE_DRAWER_SECONDARY_WRAPPER:"js-secondary-nav-drawer-wrapper",NAV_MOBILE_DRAWER_PRIMARY_HIDE:"primary-nav-drawer__primary-wrapper--hide",NAV_MOBILE_DRAWER_SECONDARY_SHOW:"primary-nav-drawer__secondary-wrapper--show",NAV_MOBILE_BOTTOM_PADDING:"25",ALERTS_CONTAINER_CLASS:"js-alerts-container",LOGOUT_LINK_CLASS:"js-logout",ORU_NAV_CLASS:"header--oru",ORANGE_COLOR:"#e77613",BLUE_COLOR:"#069bd7",ANIMATION_MENU_SELECTOR:"js-animation-selector",ANIMATION_MENU_CLASS:"header--nav-item-animation",DYNAMIC_LINK_CLASS:"js-dynamic-link",ANCHOR_TAG_SELECTOR:"a",HIDDEN_CLASS:"hidden",VISUALLY_HIDDEN_CLASS:"visually-hidden",BOTTOM_LINKS:"js-bottom-links",VIRTUAL_ASSISTANT_CLASS:"va-chat",ALERT_CLOSED_EVENT:"alert-closed",SEARCH_DESCRIPTION:"js-search-description",HEADER_BORDER_ANIMATION_TIME:.3,LANGUAGE_SWITCHER_CONTAINER_SELECTOR:"js-language-switcher-container",LANGUAGE_SWITCHER_SELECT_LANGUAGE_EVENT:"selectLanguage",ARIA_EXPANDED:"aria-expanded",ARIA_MODAL:"aria-modal",ROLE:"role",DIALOG:"dialog",EVENT_TYPE_MOUSEOENTER:"mouseenter",EVENT_TYPE_MOUSELEAVE:"mouseleave",SCREEN_MAX_HEIGHT_200_ZOOM:690,SCREEN_MAX_HEIGHT_WITH_ALERT_200_ZOOM:75,DROPDOWN_ITEM_HEIGHT:90},t=!1,i=function(i){var vt,ci,d,w,o,u,a,li,ft,g,yt,s,pt,e,y,h,wt,ai,bt,b,f,l,v,nt,kt,tt,dt,gt,ni,k,it,ti,ii,vi,yi,p,ri,et,ui,c,ot,st,r,fi,ht=function(t,i,r){r?setTimeout(function(){t.classList.remove(n.ANIMATION_MENU_CLASS)},i):setTimeout(function(){t.classList.add(n.ANIMATION_MENU_CLASS)},i)},pi=function(){o.style.height=""},ct=function(){var t=300;for(st=!0,r=0;r<l.length;r++)ht(l[r],t);setTimeout(function(){bt.classList.remove(coned.constants.MOBILE_MODAL_OPEN);b.classList.remove(coned.constants.MOBILE_MODAL_OPEN);o.classList.remove(n.NAV_OPEN_CLASS);d.classList.remove(n.HEADER_MENU_OPEN_ICON);d.classList.add(n.HEADER_MENU_ICON);query.removeClass(u,n.NAV_PRIMARY_ITEM_HOVER_CLASS);pi();f&&f.classList.remove(n.HIDDEN_CLASS);st=!1},t*2);TweenMax.to(o,n.HEADER_BORDER_ANIMATION_TIME,{borderBottom:"1px solid #636363"});fi&&o.removeEventListener("keydown",fi.onFocusSelected,!1)},tr=function(){var e=300,t=0,i="3px",s="solid",h=.05,u;ot=!0;bt.classList.add(coned.constants.MOBILE_MODAL_OPEN);b.classList.add(coned.constants.MOBILE_MODAL_OPEN);setTimeout(function(){for(u=window.innerHeight-parseInt(i),o.classList.add(n.NAV_OPEN_CLASS),d.classList.add(n.HEADER_MENU_OPEN_ICON),d.classList.remove(n.HEADER_MENU_ICON),f&&f.classList.add(n.HIDDEN_CLASS),r=0;r<l.length;r++)t+=e,ht(l[r],t,!0);TweenMax.to(o,h,{ease:Sine.easeInOut,height:u});TweenMax.to(o,n.HEADER_BORDER_ANIMATION_TIME,{borderBottom:i+" "+s+" "+et});fi=new coned.utils.addFocusTrap(o,!0,!1);ot=!1;setTimeout(function(){gr()},150)},100)},ir=function(t){t.preventDefault();ot||st||(query.hasClass(o,n.NAV_OPEN_CLASS)?ct():tr())},lt=function(t){for(r=0;r<t.length;r++)t[r].querySelector(n.NAV_ITEM_CLASS_SELECTOR)&&t[r].querySelector(n.NAV_ITEM_CLASS_SELECTOR).setAttribute(n.ARIA_EXPANDED,!1)},ei=function(){query.removeClass(li,n.NAV_ITEM_ICON_OPEN_CLASS);query.removeClass(ft,n.NAV_ITEM_LINKS_OPEN_CLASS);lt(u)},rr=function(t){query.selectParentElement(t.target,n.NAV_PRIMARY_ITEM_CLASS)===null&&(u&&u.length&&(query.removeClass(u,n.NAV_PRIMARY_ITEM_HOVER_CLASS),lt(u)),c&&rt()&&f.classList.remove(n.HIDDEN_CLASS))},oi=function(t){var i=query.selectParentElement(t.target,n.NAV_PRIMARY_ITEM_CLASS);u&&u.length&&(query.removeClass(u,n.NAV_PRIMARY_ITEM_HOVER_CLASS),lt(u));c&&rt()&&ut();ei();i.querySelector(n.NAV_ITEM_CLASS_SELECTOR).focus()},ur=function(t,i,r){ei();query.addClass(t,n.NAV_ITEM_ICON_OPEN_CLASS);query.addClass(i,n.NAV_ITEM_LINKS_OPEN_CLASS);r.setAttribute(n.ARIA_EXPANDED,!0)},fr=function(t){t.preventDefault();var r=query.selectParentElement(t.target,n.NAV_ITEM_CLASS),i=query.selectParentElement(r,n.NAV_PRIMARY_ITEM_CLASS),e=r.getElementsByClassName(n.NAV_ITEM_ICON_CLASS)[0],f=i.getElementsByClassName(n.NAV_ITEM_LINKS_CLASS)[0];lt(u);coned.utils.isMobile()?query.hasClass(f,n.NAV_ITEM_LINKS_OPEN_CLASS)?ei():ur(e,f,r):query.hasClass(i,n.NAV_PRIMARY_ITEM_HOVER_CLASS)?query.removeClass(u,n.NAV_PRIMARY_ITEM_HOVER_CLASS):(query.removeClass(u,n.NAV_PRIMARY_ITEM_HOVER_CLASS),query.addClass(i,n.NAV_PRIMARY_ITEM_HOVER_CLASS),i.querySelector(n.NAV_ITEM_CLASS_SELECTOR).setAttribute(n.ARIA_EXPANDED,!0))},er=function(){this.parentNode.classList.remove(n.NAV_PRIMARY_ITEM_HOVER_CLASS)},wi=function(n){n.preventDefault();e.style.height!="0px"&&e.style.height!==""?at():(or(),n.target.focusBack=!0)},or=function(){var t;coned.utils.isMobile()&&h!==undefined&&(h.style.display="none");s.classList.add(n.MODAL_ACTIVE_CLASS);e.classList.add(n.MODAL_SELECTOR_WRAPPER_ACTIVE);e.parentElement.classList.remove(n.HIDDEN_CLASS);t=coned.utils.isDesktop()?{height:"125px"}:{height:o.clientHeight-3,borderBottom:"3px solid "+et};coned.utils.isMobile()&&b.classList.add(coned.constants.MOBILE_MODAL_OPEN);TweenMax.to(e,.3,t);s.setAttribute(n.ARIA_EXPANDED,!0);setTimeout(function(){ci.children[0].querySelector(n.ANCHOR_TAG_SELECTOR).focus()},500)},at=function(t){t!==undefined&&(t.preventDefault(),s.focus());query.removeClass(s,n.MODAL_ACTIVE_CLASS);query.removeClass(e,n.MODAL_SELECTOR_WRAPPER_ACTIVE);query.addClass(e.parentElement,n.HIDDEN_CLASS);TweenMax.to(e,.3,{height:"0",borderBottom:"0px",onComplete:sr});s.setAttribute(n.ARIA_EXPANDED,!1);setTimeout(function(){s&&s.focusBack?(s.focus(),s.focusBack=!1):y&&y.focusBack&&(y.focus(),y.focusBack=!1)},500)},sr=function(){coned.utils.isMobile()&&h!==undefined&&(h.style.display="block")},si=function(){var t=300,i;for(r=0;r<tt.length;r++)i=tt[r],TweenMax.to(i,.3,{top:"25px",opacity:"0"});for(r=0;r<l.length;r++)ht(l[r],t);setTimeout(function(){b.classList.remove(coned.constants.MOBILE_MODAL_OPEN);v.classList.remove(n.LOGGED_IN_MODAL_OPEN_CLASS);f&&f.classList.remove(n.HIDDEN_CLASS)},t);TweenMax.to(v,.3,{borderBottom:"0"});setTimeout(function(){nt.focus()},500)},hr=function(){var t=0,i;for(b.classList.add(coned.constants.MOBILE_MODAL_OPEN),v.classList.add(n.LOGGED_IN_MODAL_OPEN_CLASS),f&&f.classList.add(n.HIDDEN_CLASS),TweenMax.to(v,.3,{borderBottom:"3px solid "+et}),r=0;r<l.length;r++)t+=300,ht(l[r],t,!0);for(r=0;r<tt.length;r++)i=tt[r],TweenMax.to(i,.6,{top:"0",opacity:"1"});setTimeout(function(){kt.focus()},500)},bi=function(t){t.preventDefault();query.hasClass(v,n.LOGGED_IN_MODAL_OPEN_CLASS)?si():hr()},cr=function(n){n.preventDefault();coned.utils.logout(this.dataset.logoutUrl,this.href)},lr=function(){var n=i.dataset.dynamicLinksServiceUrl;query.getData(n,ar,function(){})},ar=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_HEADER_DYNAMIC_LINKS,ki,function(){}):ki(n)},ki=function(n){var i,t;for(r=0;r<it.length;r++)i=it[r],t=i.dataset.linkType,n[t]&&n[t]!=""&&(i.href=n[t])},hi=function(){var t=parseFloat(window.getComputedStyle(wt,null).getPropertyValue("height")),i=k.parentElement,r=i.getElementsByClassName(n.NAV_ITEM_PRIMARY_ACCOUNT_SELECTOR)[0],u=window.innerHeight;r.style.maxHeight=u-t-10+"px"},di=function(){var n=window.getComputedStyle(wt,null).getPropertyValue("height");n!=ri&&(TweenMax.to(ai,.2,{paddingTop:n}),ri=n)},gi=function(t){t?(w.setAttribute(n.ROLE,n.DIALOG),w.setAttribute(n.ARIA_MODAL,!0)):(w.removeAttribute(n.ROLE),w.removeAttribute(n.ARIA_MODAL))},vr=function(){var n=window.innerWidth,t=o.style.height!=="";ui!==n&&(p&&gi(coned.utils.isMobile()),ct(),ui=n,p&&at(),nt!==undefined&&si(),t&&pi(),h!==undefined&&di())},yr=function(n){var t=n.keyCode,i=n.shiftKey;i&&t===coned.constants.KEY_CODE.TAB&&oi(n)},pr=function(n){var t=n.keyCode,i=coned.constants.KEY_CODE.SPACE,r=coned.constants.KEY_CODE.ENTER,u=coned.constants.KEY_CODE.ESC;c&&rt()&&((t===r||t===u)&&ut(),t===i&&ut(!0))},wr=function(n){var t=n.keyCode,i=n.shiftKey;i||t!==coned.constants.KEY_CODE.TAB||oi(n)},br=function(){var f=k.parentElement,r=f.getElementsByClassName(n.NAV_ITEM_DROPDOWN_CONTAINER)[0],u=r&&r.getElementsByClassName(n.NAV_ITEM_DROPDOWN_ITEM),i=u&&u.length,t;return i===0||i===1||i===undefined?t=n.SCREEN_MAX_HEIGHT_200_ZOOM-n.DROPDOWN_ITEM_HEIGHT*2:i===2?t=n.SCREEN_MAX_HEIGHT_200_ZOOM-n.DROPDOWN_ITEM_HEIGHT:i>=3&&(t=n.SCREEN_MAX_HEIGHT_200_ZOOM),h!==undefined&&h.offsetHeight>0&&(t=t+n.SCREEN_MAX_HEIGHT_WITH_ALERT_200_ZOOM),t},rt=function(){var n=br();if(f&&window.innerWidth>=coned.constants.TABLET_MIN_SIZE&&window.innerHeight<=n)return!0},ut=function(t){_.each(a,function(i){var r=i.parentElement.getElementsByClassName(n.NAV_ITEM_LINKS_CLASS)[0];t?query.checkElementOrParentDisplayNone(r)?f.classList.add(n.HIDDEN_CLASS):f.classList.remove(n.HIDDEN_CLASS):query.checkElementOrParentDisplayNone(r)?f.classList.remove(n.HIDDEN_CLASS):f.classList.add(n.HIDDEN_CLASS)})},nr=function(t){var i=t.currentTarget,r=c&&k.parentElement;t.type==n.EVENT_TYPE_MOUSEOENTER?(t.target.children[0].setAttribute(n.ARIA_EXPANDED,!0),c&&rt()&&i===r&&ut()):t.type==n.EVENT_TYPE_MOUSELEAVE&&(t.target.children[0].setAttribute(n.ARIA_EXPANDED,!1),c&&rt()&&i===r&&ut())},kr=function(t){var u=t.currentTarget.dataset.secondaryNav,r;i.getElementsByClassName(n.NAV_MOBILE_DRAWER_PRIMARY_WRAPPER)[0].classList.add(n.NAV_MOBILE_DRAWER_PRIMARY_HIDE);r=document.querySelector("[data-secondary-nav-id='"+u+"']");r.classList.add(n.NAV_MOBILE_DRAWER_SECONDARY_SHOW)},dr=function(t){var f=t.currentTarget.dataset.primaryNav,u=i.getElementsByClassName(n.NAV_MOBILE_DRAWER_SECONDARY_WRAPPER);for(r=0;r<u.length;r++)if(u[r].dataset.secondaryNavId===f){u[r].classList.remove(n.NAV_MOBILE_DRAWER_SECONDARY_SHOW);break}i.getElementsByClassName(n.NAV_MOBILE_DRAWER_PRIMARY_WRAPPER)[0].classList.remove(n.NAV_MOBILE_DRAWER_PRIMARY_HIDE)},gr=function(){var u=g.length*g[0].offsetHeight,t=document.getElementsByClassName(n.NAV_MOBILE_SECONDARY)[0],r,i;t.style.paddingTop=n.NAV_MOBILE_SECONDARY_INIT_PADDING+"px";r=t.offsetHeight;i=window.innerHeight-u-r-n.NAV_MOBILE_BOTTOM_PADDING;i>0&&(t.style.paddingTop=i+"px")},nu=function(){vt=i.getElementsByClassName(n.HEADER_MENU_CLASS)[0];d=vt.getElementsByClassName(n.HEADER_MENU_ICON_CLASS)[0];o=i.getElementsByClassName(n.NAV_CLASS)[0];u=i.getElementsByClassName(n.NAV_PRIMARY_ITEM_CLASS);a=i.getElementsByClassName(n.NAV_ITEM_CLASS);li=i.getElementsByClassName(n.NAV_ITEM_ICON_CLASS);ft=i.getElementsByClassName(n.NAV_ITEM_LINKS_CLASS);g=i.getElementsByClassName(n.NAV_MOBILE_PRIMARY_ITEM_FORWARD);yt=i.getElementsByClassName(n.NAV_MOBILE_PRIMARY_ITEM_BACK);v=i.getElementsByClassName(n.LOGGED_IN_MODAL_CLASS)[0];nt=i.getElementsByClassName(n.OPEN_LOGGED_IN_MODAL)[0];kt=i.getElementsByClassName(n.CLOSE_LOGGED_IN_MODAL)[0];tt=i.getElementsByClassName(n.LOGGED_IN_MODAL_ITEM_CLASS);l=i.getElementsByClassName(n.ANIMATION_MENU_SELECTOR);dt=document.getElementsByClassName(n.LOGOUT_LINK_CLASS);ti=document.getElementsByClassName(n.BOTTOM_LINKS)[0];wt=document.getElementsByClassName(coned.constants.HEADER_WRAPPER_CLASS)[0];ai=document.getElementsByClassName(coned.constants.PAGE_CONTENT_CLASS)[0];b=document.getElementsByClassName(coned.constants.BODY_CLASS)[0];bt=document.getElementsByClassName(coned.constants.HTML_CLASS)[0];f=document.getElementsByClassName(n.VIRTUAL_ASSISTANT_CLASS)[0];h=document.getElementsByClassName(n.ALERTS_CONTAINER_CLASS)[0];it=document.getElementsByClassName(n.DYNAMIC_LINK_CLASS);w=i.getElementsByClassName(n.MODAL_SELECTOR)[0];gt=i.getElementsByClassName(n.NAV_ITEM_NAME)[0];ni=i.getElementsByClassName(n.NAV_ITEM_ADDRESS)[0];k=i.getElementsByClassName(n.NAV_BUTTON_ACCOUNT_SELECTOR)[0];ii=i.getElementsByClassName(n.SEARCH_DESCRIPTION);vi=document.getElementsByClassName(n.LANGUAGE_SWITCHER_CONTAINER_SELECTOR);c=k;ri=0;et=query.hasClass(i,n.ORU_NAV_CLASS)?n.ORANGE_COLOR:n.BLUE_COLOR;ot=!1;st=!1;yi=vi;p=w;p&&(s=i.getElementsByClassName(n.NAV_OPEN_MODAL)[0],y=i.getElementsByClassName(n.NAV_MOBILE_OPEN_MODAL)[0],pt=i.getElementsByClassName(n.NAV_CLOSE_MODAL)[0],e=i.getElementsByClassName(coned.constants.MODAL_SELECTOR_CLASS)[0],ci=i.getElementsByClassName(n.MODAL_SELECTOR_LIST)[0])},tu=function(){var f,t;for(coned.utils.addGeneralListeners(vt,ir),yi&&i.addEventListener(n.LANGUAGE_SWITCHER_SELECT_LANGUAGE_EVENT,ct),r=0;r<a.length;r++)coned.utils.addGeneralListeners(a[r],fr),a[r].addEventListener("mouseleave",er),a[r].addEventListener("keydown",yr),a[r].parentElement.addEventListener("mouseenter",nr),a[r].parentElement.addEventListener("mouseleave",nr);for(c&&k.addEventListener("keyup",pr),f=0;f<ft.length;f++)t=ft[f].lastElementChild,t&&t.classList.contains(n.NAV_ITEM_BOTTOM_SECTION)&&ti&&(t=ti.lastElementChild),t&&t.addEventListener("keydown",wr);for(coned.utils.addGeneralListeners(window,rr),nt!==undefined&&(coned.utils.addGeneralListeners(nt,bi),coned.utils.addGeneralListeners(kt,bi)),p&&s!==undefined&&y!==undefined&&pt!==undefined&&(coned.utils.addGeneralListeners(s,wi),coned.utils.addGeneralListeners(y,wi),coned.utils.addGeneralListeners(pt,at)),h!==undefined&&(di(),c&&hi()),r=0;r<dt.length;r++)coned.utils.addGeneralListeners(dt[r],cr);for(it&&it.length&&lr(),window.addEventListener("resize",vr),h!==undefined&&c&&(window.addEventListener("resize",hi),document.addEventListener(n.ALERT_CLOSED_EVENT,hi)),ui=window.innerWidth,p&&gi(),r=0;r<u.length;r++)new coned.utils.addKeyEvent(u[r],coned.constants.KEY_CODE.ESC,oi,!1,!0);for(ii.length>0&&coned.utils.isSafari()&&query.replaceClass(ii,n.HIDDEN_CLASS,n.VISUALLY_HIDDEN_CLASS),r=0;r<g.length;r++)coned.utils.addGeneralListeners(g[r],kr);for(r=0;r<yt.length;r++)coned.utils.addGeneralListeners(yt[r],dr);new coned.utils.addKeyEvent(i,coned.constants.KEY_CODE.ESC,ct,!0,!1);p&&(e&&new coned.utils.addFocusTrap(e,!0,!1),e&&new coned.utils.addKeyEvent(e,coned.constants.KEY_CODE.ESC,at));v&&new coned.utils.addKeyEvent(v,coned.constants.KEY_CODE.ESC,si);gt&&coned.utils.lineClamp(gt);ni&&coned.utils.lineClamp(ni)},iu=function(){nu();tu();t=!0};iu()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.IconsNavigation=function(){var i={ITEM_CTA:"icons-navigation__item-cta"},n=!1,t=function(){function t(n,t){function r(n){i===null&&(n=i=n);var u=n-i,s=o(u,f,e,t);window.scrollTo(0,s);u<t&&requestAnimationFrame(r)}function o(n,t,i,r){return(n/=r/2,n<1)?i/2*n*n+t:(n--,-i/2*(n*(n-2)-1)+t)}n=document.getElementById(n);var u=n.getBoundingClientRect().top,f=window.pageYOffset,e=u-90,i=null;requestAnimationFrame(r)}function r(){for(var u=document.getElementsByClassName(i.ITEM_CTA),f,r=0;r<u.length;r++)f=u[r],f.addEventListener("click",function(n){var i=n.currentTarget.href.split("#")[1];t(i,1e3);dataLayer.push({event:n.currentTarget.dataset.navEvent})});n=!0}r()};return t.prototype.isLoaded=function(){return n},t}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ImageModalModule=function(){var n={MAIN_CONTENT_ID:"mainContent",HIDDEN_CLASS:"hidden",CLOSE_BUTTON:"js-image-modal-close",EXPAND_BUTTON:"js-image-modal-expand",OPEN_BUTTON:"js-image-modal-open",ARIA_EXPANDED_ATTRIBUTE:"aria-expanded"},t=!1,i=function(i){var r,u,f=function(t){(t.classList.add(n.HIDDEN_CLASS),_.each(r,function(t){t.setAttribute(n.ARIA_EXPANDED_ATTRIBUTE,!1)}),t&&t.dataset.noBackFocus)||(t.BackFocus?t.BackFocus.focus({preventScroll:!0}):document.getElementById(n.MAIN_CONTENT_ID).focus())},e=function(t){var u,e;t.preventDefault();u=query.hasClass(this,n.OPEN_BUTTON);u?(i.classList.remove(n.HIDDEN_CLASS),_.each(r,function(t){t.setAttribute(n.ARIA_EXPANDED_ATTRIBUTE,!0)}),t.currentTarget&&(i.BackFocus=t.currentTarget),e=i.getElementsByClassName(n.CLOSE_BUTTON),e[0].focus()):f(i,t)},o=function(t,i){if(t.keyCode==coned.constants.KEY_CODE.ESC){var r=!query.hasClass(i,n.HIDDEN_CLASS);r&&f(i,t)}},s=function(){r=document.querySelectorAll("."+n.EXPAND_BUTTON+"."+i.dataset.openButton);u=i.getElementsByClassName(n.CLOSE_BUTTON)},h=function(){_.each(r,function(n){n.addEventListener("click",e)});_.each(u,function(n){n.addEventListener("click",e)});new coned.utils.addFocusTrap(i);i.addEventListener("keydown",function(n){o(n,i)})},c=function(){s();h();t=!0};c()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.InteractiveSurveyModule=function(){var n={SELECT_CLASS:"js-energy-sources",SELECT_TRIGGER_VALUE:"oil",SELECT_HIDDEN_CLASS:"js-energy-select-hidden",FIELD_HIDDEN_CLASS:"coned-form__field-container--hidden"},t=!1,i=function(i){var u,r,f=function(t){var i=t.target.value;i===n.SELECT_TRIGGER_VALUE?_.each(r,function(t){t.classList.remove(n.FIELD_HIDDEN_CLASS)}):_.each(r,function(t){t.classList.add(n.FIELD_HIDDEN_CLASS)})},e=function(){u=i.getElementsByClassName(n.SELECT_CLASS)[0];r=i.getElementsByClassName(n.SELECT_HIDDEN_CLASS)},o=function(){u.addEventListener("change",f)},s=function(){e();o();t=!0};s()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.IppChartsComponent=function(){var n={ARIA_CURRENT:"aria-current",CONED_ENERGY_USAGE:"energy-usage",CONED_CHART:"coned-chart",CONED_CHART_HIDE_CLASS:"coned-chart--hide",CONED_CHART_TAB_ACTIVE_CLASS:"coned-tabs__tab-item--active",CONED_CHART_DEMAND_TAB_HIDDEN:"coned-tabs--visibility-hidden",CONED_CHART_DATE:"coned-chart__middle-text--date",CONED_CHART_MONTH_BUTTON:"js-coned-chart-monthly",CONED_CHART_DATE_BUTTON:"js-coned-chart-daily",CONED_CHART_BUTTON_DISABLED:"coned-chart__buttons--square-blue-disabled",CONED_CHART_PEAK_CONTENT:"coned-chart__peak-content",CONED_CHART_BUTTONS_HIDE:"coned-chart__buttons--hide",CONED_CHART_ARROW_HIDE:"coned-chart__arrow--hide",CONED_CHART_LEFT_ARROW:"coned-chart__arrow--left",CONED_CHART_RIGHT_ARROW:"coned-chart__arrow--right",CONED_CHART_ERROR:"coned-chart__error-message",CONED_CHART_FORM_LOADING:"js-form-loading",CONED_CHART_PEAK_OPTION:"js-coned-radio-chart-peak",CONED_CHART_OFFPEAK_OPTION:"js-coned-radio-chart-offpeak",CONED_CHART_NONSUMMER_OPTION:"js-coned-radio-chart-nonsummer",CONED_CHART_DEMAND_BUTTON:"js-demandTab",CONED_CHART_MOBILE_DEMAND:"js-demandMobileTab",CONED_CHART_ERROR_MESSAGE:"js-chart-module-error",CONED_CHART_NODATA_MESSAGE:"js-chart-module-noData-error",CONED_CHART_MODULE:"js-chart-module-content",CONED_CHART_CONTAINER:"js-chart-container",CONED_CHART_NOTE:"js-chart-note",CONED_CHART_SERVICE:"data-chart-service",CONED_CHART_DATA_MAID:"data-maid",CONED_CHART_DATA_RATE:"data-rate",CONED_CHART_DATA_TIME:"data-chart-time",CONED_CHART_DATA_TYPE:"data-chart-type",CONED_CHART_DATE_TEXT:"data-chart-date-text",CONED_CHART_DATA_FROM_DATE:"data-from-date",CONED_CHART_DATA_TO_DATE:"data-to-date",CONED_CHART_DATA_ZERO_HOVER:"data-zero-value-hover",CONED_CHART_DATA_REGULAR_HOVER:"data-regular-day-hover",CONED_CHART_DATA_SPECIAL_HOVER:"data-chart-special-day",CONED_CHART_DETERMINANT:"data-determinantname",CONED_CHART_BILLING_ERROR:"data-billing-error",CONED_CHART_TOTAL_AVERAGE_DEMAND:"data-total-average-legend",CONED_CHART_DATA_PERIOD:"data-period",CONED_CHART_DATA_WEEK:"data-week",CONED_CHART_DATA_SYMBOL:"data-symbol",CONED_CHART_DATA_IS_SOLAR:"data-is-solar",CONED_CHART_ARIA_HIDDEN:"aria-hidden",CONED_CHART_TYPE:"Type",CONED_CHART_FIXED_SUBSCRIPTION:"fixedSubscriptionRate",CONED_CHART_TOTAL_AVERAGE_DEMAND_VALUE:"totalAverageDemandValue",CONED_CHART_IPP_OPTION:"IPP",CONED_CHART_STANDARD_OPTION:"Standard",CONED_CHART_PEAK:"Peak",CONED_CHART_OFFPEAK:"OffPeak",CONED_CHART_NONSUMMER:"NonSummer",CONED_CHART_TRANSITION:"Transition",CONED_CHART_OFF_PEAK:"Off-Peak",CONED_CHART_NONSUMMER_PEAK:"Non-Summer",CONED_CHART_GROUPBY_MONTHLY:"Monthly",CONED_CHART_GROUPBY_WEEKLY:"Weekly",CONED_CHART_YEAR:"Year",CONED_CHART_QUATER:"Quarter",CONED_CHART_NO_DATA:"None",CONED_CHART_RADIO_OPTION:"peak",CONED_CHART_DEMAND:"demand",CONED_CHART_USAGE:"usage",CONED_CHART_BILLING:"billing",CONED_CHART_MONTHLY:"monthly",CONED_CHART_DAILY:"daily",CONED_CHART_TRUE:"true",CONED_HIDDEN_CLASS:"hidden",CONED_DISABLED_ATTR:"disabled",CONED_CHART_SUBSCRIPTION_COLOR:"#94000f",CONED_CHART_OVERAGE_COLOR:"#ffffff",CONED_CHART_DETERMINANT_COLOR:"#7a7a7a",CONED_CHART_BLUE_COLOR:"#069bd7",CONED_CHART_PEAK_COLOR:"#27aa5e",CONED_CHART_OFFPEAK_COLOR:"#19522c",CONED_CHART_NONSUMMER_COLOR:"#ffffff",CONED_CHART_WHITE_COLOR:"#fff",CONED_CHART_BLACK_COLOR:"#000000",CONED_DATA_ATTRIBUTES_JSON:"/_static/legendDataAttributes.json"},t=!1,i=function(i){var wi,c,v,ti,ai,nu,d,vt,bi,ii,h,p,hr,ct,tu,iu,ru,lt,ot,uu,pu,wt,wu,fu,w,it,ut,yt,eu,rt,ou,su,ri,ui,tr,ki,cr,fi,s,vi,ei,u,hu,cu,l,ir,rr,ur,a,lr,lu,ft,bu,ku,au,fr,oi,et,at,er,si,yi,e,nt,vu,r,f,bt,kt,dt,st,b,tt,y,k,g,gt,hi,or,o,sr,ar,vr,yu,di,ci,yr,du,gu,nf,tf,rf,uf,pr=function(){var i=wi.dataset.getBillingPeriods,t,r=wi.getAttribute(n.CONED_CHART_DATA_MAID);o=o?o:wi.getAttribute(n.CONED_CHART_DATA_RATE);query.addClass(ct,n.CONED_HIDDEN_CLASS);h.setAttribute(n.CONED_DISABLED_ATTR,!0);p.setAttribute(n.CONED_DISABLED_ATTR,!0);t=coned.chartComponents.getBillingPeriods(o,si,r);query.getData(i,lf,wr,t)},wr=function(){dataLayer.push({event:"IPP.demand.error.message"});si=si-12;query.addClass(ot,n.CONED_HIDDEN_CLASS);query.removeClass(ct,n.CONED_HIDDEN_CLASS);query.addClass(lt,n.CONED_HIDDEN_CLASS);query.addClass(h,n.CONED_CHART_ARROW_HIDE);query.removeClass(p,n.CONED_CHART_ARROW_HIDE);ii.innerHTML=hr.getAttribute(n.CONED_CHART_BILLING_ERROR);s===n.CONED_CHART_MONTHLY?hi=!0:gt=!0},lf=function(n){if(coned.utils.isPatternLab()){var t=document.querySelector("[data-patternlab-ipp-chart-rate2]")?coned.plConstants.GET_CHART_BILLING_PERIODS_RATE2:document.querySelector("[data-patternlab-ipp-chart-rate5]")?coned.plConstants.GET_CHART_BILLING_PERIODS_RATE5:document.querySelector("[data-patternlab-ipp-chart-rate6]")?coned.plConstants.GET_CHART_BILLING_PERIODS_RATE6:coned.plConstants.GET_CHART_BILLING_PERIODS;query.getData(t,ff,wr)}else ff(n)},ff=function(t){if(rt=rt.concat(t.periods),ki=t.morePeriods,cr=t.currentPeriodType,yi=ai.getAttribute(n.CONED_CHART_DATA_SYMBOL),fu=ai.getAttribute(n.CONED_CHART_DATA_IS_SOLAR),ki&&query.removeClass(h,n.CONED_CHART_ARROW_HIDE),t&&t.periods&&t.periods.length>0){query.removeClass(ai,n.CONED_CHART_DEMAND_TAB_HIDDEN);query.removeClass(nu,n.CONED_HIDDEN_CLASS);var i=t.periods,u=Object.keys(i),r;at=[];u.forEach(function(t){at.push(i[t].billToDate);i[t].billProgram===n.CONED_CHART_IPP_OPTION&&tr++;(i[t].billProgram===n.CONED_CHART_IPP_OPTION||i[t].billProgram===n.CONED_CHART_STANDARD_OPTION)&&(r=t)});ou=i[r].billFromDate;su=i[0].billToDate;yf();h.removeAttribute(n.CONED_DISABLED_ATTR);p.removeAttribute(n.CONED_DISABLED_ATTR);cu?cu=!1:document.activeElement===document.body&&h.focus()}else query.addClass(nu,n.CONED_HIDDEN_CLASS),query.addClass(ai,n.CONED_CHART_DEMAND_TAB_HIDDEN)},ef=function(t){t.preventDefault();w.length===0&&(query.addClass(ct,n.CONED_HIDDEN_CLASS),query.removeClass(ot,n.CONED_HIDDEN_CLASS),query.removeClass(lt,n.CONED_HIDDEN_CLASS),br());coned.utils.removeMultipleListeners(ai,coned.utils.generalEvents(),ef)},af=function(t){t.preventDefault();var i=c.classList.contains(n.CONED_CHART_BUTTON_DISABLED);(coned.chart.showTableInfo(wt.parentElement,u,!1),i)||(dataLayer.push({event:"IPP.demand.toggle.view",ToggleLevel:"Daily"}),cr&&cr!==n.CONED_CHART_NO_DATA?sf(cr):sf(n.CONED_CHART_PEAK),cf(n.CONED_CHART_DAILY),gr(c))},vf=function(){var i,t,r;(dataLayer.push({event:"IPP.demand.toggle.view",ToggleLevel:"Monthly"}),i=v.classList.contains(n.CONED_CHART_BUTTON_DISABLED),i)||(coned.chart.showTableInfo(wt.parentElement,u,!1),gt&&(t=document.getElementById(u),t&&(r=t.getAttribute(n.CONED_CHART_DATE_TEXT),ii.innerHTML=r,query.removeClass(ot,n.CONED_HIDDEN_CLASS),query.addClass(ct,n.CONED_HIDDEN_CLASS),query.removeClass(lt,n.CONED_HIDDEN_CLASS),gt=!1)),hi&&!w[0]?(query.addClass(ti,n.CONED_CHART_BUTTONS_HIDE),query.removeClass(c,n.CONED_CHART_BUTTON_DISABLED),query.addClass(v,n.CONED_CHART_BUTTON_DISABLED),v.setAttribute(n.ARIA_CURRENT,!0),c.setAttribute(n.ARIA_CURRENT,!1),br()):(s=n.CONED_CHART_MONTHLY,nt=0,f=0,e=0,ni(w[0]),d&&d.setAttribute(n.CONED_DISABLED_ATTR,"true"),nr(w[0])),cf(n.CONED_CHART_MONTHLY),gr(v))},yf=function(){var o=at.length-1,t=at[o],r=at[0],u=i.getElementsByClassName(n.CONED_CHART_TAB_ACTIVE_CLASS)[0];if(a=coned.chartComponents.generateMonthlyDate(t,r,bu),!er&&u.classList.contains(n.CONED_CHART_TAB_ACTIVE_CLASS)&&u.click(),er&&s===n.CONED_CHART_MONTHLY)a=coned.chartComponents.generateMonthlyDate(t,r,ft),br();else if(er&&s===n.CONED_CHART_DAILY){var f=pt(),h=f===n.CONED_CHART_PEAK?it:ut,c=h.indexOf(l)+1,v=coned.utils.isMobile()||coned.utils.isTablet()?e:c;gi(f,v)}},br=function(){if(rt){var i=v.getAttribute(n.CONED_CHART_SERVICE),t,r=wi.getAttribute(n.CONED_CHART_DATA_MAID),u=coned.utils.isMobile()||coned.utils.isTablet()?n.CONED_CHART_QUATER:n.CONED_CHART_YEAR;fi=n.CONED_CHART_DEMAND;t=coned.chartComponents.callMonthlyService(r,o,ou,su,u,fu);query.getData(i,wf,pf,t,uu)}},pf=function(){var t=at.length-1,i=at[t],r=at[0];hi=!0;or=!1;a=coned.chartComponents.generateMonthlyDate(i,r,ft);ii.innerHTML=a;dataLayer.push({event:"IPP.demand.error.message"});query.removeClass(hr,n.CONED_HIDDEN_CLASS);query.addClass(ot,n.CONED_HIDDEN_CLASS);query.addClass(lt,n.CONED_HIDDEN_CLASS);query.removeClass(ct,n.CONED_HIDDEN_CLASS);w.length>0?(query.addClass(h,n.CONED_CHART_ARROW_HIDE),query.removeClass(p,n.CONED_CHART_ARROW_HIDE)):(query.addClass(h,n.CONED_CHART_ARROW_HIDE),query.addClass(p,n.CONED_CHART_ARROW_HIDE))},wf=function(t){var r=i.getElementsByClassName(n.CONED_CHART_TAB_ACTIVE_CLASS)[0];query.addClass(ct,n.CONED_HIDDEN_CLASS);query.removeClass(ot,n.CONED_HIDDEN_CLASS);query.removeClass(lt,n.CONED_HIDDEN_CLASS);at=[];or=ki?!1:!0;pi(r);w.push(u);hi=!1;coned.utils.isPatternLab()?query.getData(hu,li,wr):li(t)},ht=function(){return o==="E"||o==="F"},pt=function(){var t=query.getFormInputValue(i,n.CONED_CHART_RADIO_OPTION);return t?t:n.CONED_CHART_PEAK},pi=function(t){var r="",o,h,l="";s=t.getAttribute(n.CONED_CHART_DATA_TIME);vi="";s===n.CONED_CHART_DAILY?(query.addClass(c,n.CONED_CHART_BUTTON_DISABLED),query.removeClass(v,n.CONED_CHART_BUTTON_DISABLED),v.setAttribute(n.ARIA_CURRENT,!1),c.setAttribute(n.ARIA_CURRENT,!0),vi=query.getFormInputValue(i,n.CONED_CHART_RADIO_OPTION),vi=vi?vi:ht()?n.CONED_CHART_PEAK:"",ri=rt[e].billFromDate,ui=rt[e].billToDate,o=coned.chartComponents.generateDailyDate(ri,ui,!1,ft).replace(/\s|[,]/g,""),vi!=""&&query.removeClass(ti,n.CONED_CHART_BUTTONS_HIDE),(coned.utils.isMobile()||coned.utils.isTablet())&&(r="M",l=f)):(query.addClass(v,n.CONED_CHART_BUTTON_DISABLED),query.removeClass(c,n.CONED_CHART_BUTTON_DISABLED),v.setAttribute(n.ARIA_CURRENT,!0),c.setAttribute(n.ARIA_CURRENT,!1),o=a?a.replace(/\s|[,]/g,""):coned.chartComponents.generateMonthlyDate(ou,su,ft).replace(/\s|[,]/g,""),r=coned.utils.isMobile()||coned.utils.isTablet()?"M":"");fi===undefined&&(fi=t.getAttribute(n.CONED_CHART_DATA_TYPE));h=coned.utils.isPatternLab()?document.querySelector("[data-patternlab-ipp-chart-rate2]")?"B/":document.querySelector("[data-patternlab-ipp-chart-rate5]")?"E/":document.querySelector("[data-patternlab-ipp-chart-rate6]")?"F/":"":"";u=fi+o+vi;hu="/get-content/charts/"+h+u+r+".json";u+=l},li=function(t){var h,c,l,v;if(s===n.CONED_CHART_DAILY)if(coned.utils.isTablet()||coned.utils.isMobile()){f=yr?t.items.length-1:f;yr=!1;var o=pt(),p=o===n.CONED_CHART_PEAK?bt:o===n.CONED_CHART_OFFPEAK?kt:dt,w=o===n.CONED_CHART_PEAK?y:o===n.CONED_CHART_OFFPEAK?k:g,d=o===n.CONED_CHART_PEAK?document.getElementById(ut[nt]):document.getElementById(it[nt]),et=o===n.CONED_CHART_PEAK?it:o===n.CONED_CHART_OFFPEAK?ut:yt,ot=i.getElementsByClassName(n.CONED_CHART_DATE_BUTTON)[0],ht=rt[e].billRates;p[e]||(o===n.CONED_CHART_PEAK?bt[e]=t:o===n.CONED_CHART_OFFPEAK?kt[e]=t:dt[e]=t);f=f<0?d.getAttribute(n.CONED_CHART_DATA_WEEK):f;t.items[f]||(v=document.getElementById(u),f=parseInt(v.getAttribute(n.CONED_CHART_DATA_WEEK))+1);h=t.items[f].periods.length-1;c=t.items[f].periods[0].demandDate;l=t.items[f].periods[h].demandDate;a=coned.chartComponents.generateDailyDate(l,c,!1,ft);pi(ot);ht&&_.invert(w[r])[u]===undefined?bf():et.indexOf(u)<0&&of();t=t.items[f]}else h=t.items[f].periods.length-1,c=t.items[f].periods[0].demandDate,l=t.items[f].periods[h].demandDate,a=coned.chartComponents.generateDailyDate(l,c,!1,ft),t=t.items[0];else if(st[b]===undefined&&(st[b]=t.items),coned.utils.isTablet()||coned.utils.isMobile()){var ct=st[b][tt].periods.length-1,lt=st[b][tt].periods[ct].endDate,at=st[b][tt].periods[0].endDate;a=coned.chartComponents.generateMonthlyDate(lt,at,ft);t=t.items?t.items[tt]:t}else t=t.items[0];gf(t)},bf=function(){var t=u;t=t.match(/[A-Za-z]*[0-9]*-[A-Za-z]*[0-9]*/g)[0];y[r]===undefined&&(y[r]={});y[r][f]=t+n.CONED_CHART_PEAK+f;o!=="E"&&o!=="F"&&(k[r]===undefined&&(k[r]={}),k[r][f]=t+n.CONED_CHART_OFFPEAK+f);o==="B"&&(g[r]===undefined&&(g[r]={}),g[r][f]=t+n.CONED_CHART_NONSUMMER+f)},of=function(){var t=u,i;t=t.match(/[A-Za-z]*[0-9]*-[A-Za-z]*[0-9]*/g)[0];i=coned.utils.isTablet()||coned.utils.isMobile()?f:"";it.push(t+n.CONED_CHART_PEAK+i);ut.push(t+n.CONED_CHART_OFFPEAK+i);yt.push(t+n.CONED_CHART_NONSUMMER+i)},sf=function(t){var u=!0,r,i,f,e;hi&&(query.removeClass(ot,n.CONED_HIDDEN_CLASS),query.addClass(ct,n.CONED_HIDDEN_CLASS),query.removeClass(lt,n.CONED_HIDDEN_CLASS));ht()?i=it:(d.removeAttribute(n.CONED_DISABLED_ATTR),t===n.CONED_CHART_PEAK?(d.checked=!0,vt.checked=!1):t===n.CONED_CHART_OFFPEAK?(d.checked=!1,vt.checked=!0):(d.checked=!1,vt.checked=!1,bi.checked=!0),r=pt(),i=r===n.CONED_CHART_PEAK?it:r===n.CONED_CHART_OFFPEAK?ut:yt,f=r===n.CONED_CHART_PEAK?y:r===n.CONED_CHART_OFFPEAK?k:g,i=coned.utils.isMobile()||coned.utils.isTablet()?f[0]:i);e=coned.utils.isMobile()||coned.utils.isTablet()?i!==undefined?Object.keys(i).length:0:i.length;e>0&&(s=n.CONED_CHART_DAILY,u=!1,ni(i[0]));u&&gi(t,0)},gi=function(t,i){var s;r=i;ht()||(t===n.CONED_CHART_PEAK?(ei=n.CONED_CHART_PEAK,vt.checked=!1):t===n.CONED_CHART_OFFPEAK?(ei=n.CONED_CHART_OFFPEAK,d.checked=!1):(ei=n.CONED_CHART_NONSUMMER,vt.checked=!1,d.checked=!1));s=coned.utils.isMobile()||coned.utils.isTablet()?n.CONED_CHART_GROUPBY_WEEKLY:n.CONED_CHART_GROUPBY_MONTHLY;var l=c.getAttribute(n.CONED_CHART_SERVICE),f,u=rt[e].billRates,a=wi.getAttribute(n.CONED_CHART_DATA_MAID),h;ri=rt[i].billFromDate;ui=rt[i].billToDate;h=di?o==="F"?u.length>1?n.CONED_CHART_TRANSITION:u[0]:u[0]:u&&u.indexOf(t)>-1?t:n.CONED_CHART_NO_DATA;f=coned.chartComponents.getDailyChart(a,o,ri,ui,s,fu);f[n.CONED_CHART_TYPE]=h;ht()&&(f.FixedSubscriptionRate=rt[e].billFixedSubscriptionRate);query.getData(l,df,kf,f,uu)},kf=function(){dataLayer.push({event:"IPP.demand.error.message"});gt=!0;a=coned.chartComponents.generateDailyDate(ri,ui,!0,ft);ii.innerHTML=a;query.addClass(h,n.CONED_CHART_ARROW_HIDE);query.addClass(lt,n.CONED_HIDDEN_CLASS);query.addClass(ot,n.CONED_HIDDEN_CLASS);query.removeClass(ct,n.CONED_HIDDEN_CLASS);query.addClass(c,n.CONED_CHART_BUTTON_DISABLED);query.removeClass(v,n.CONED_CHART_BUTTON_DISABLED);query.removeClass(ti,n.CONED_CHART_BUTTONS_HIDE);v.setAttribute(n.ARIA_CURRENT,!1);c.setAttribute(n.ARIA_CURRENT,!0);var t=pt(),i=t===n.CONED_CHART_PEAK?it:ut;r==="0"?(query.addClass(h,n.CONED_CHART_ARROW_HIDE),query.addClass(p,n.CONED_CHART_ARROW_HIDE)):nt>0&&nt-1<i.length&&(query.addClass(h,n.CONED_CHART_ARROW_HIDE),query.removeClass(p,n.CONED_CHART_ARROW_HIDE))},df=function(t){var o=i.getElementsByClassName(n.CONED_CHART_DATE_BUTTON)[0],f=pt(),r=f===n.CONED_CHART_PEAK?it:f===n.CONED_CHART_OFFPEAK?ut:yt;if(query.removeClass(ot,n.CONED_HIDDEN_CLASS),query.addClass(ct,n.CONED_HIDDEN_CLASS),query.removeClass(lt,n.CONED_HIDDEN_CLASS),coned.utils.isMobile()||coned.utils.isTablet())if(vu){var e=document.getElementById(r[nt]),s=e.getAttribute(n.CONED_CHART_DATA_FROM_DATE),h=e.getAttribute(n.CONED_CHART_DATA_TO_DATE);a=coned.chartComponents.generateDailyDate(s,h,!1,ft);vu=!1}else a=coned.chartComponents.generateDailyDate(ri,ui,!1,ft);else a=coned.chartComponents.generateDailyDate(ri,ui,!0,ft);ee();pi(o);r[nt]&&(u=r[nt],nr(u));coned.utils.isMobile()||coned.utils.isTablet()||r.indexOf(u)<0&&of();coned.utils.isPatternLab()?query.getData(hu,li,wr):li(t)},gf=function(t){var a=document.getElementById(u),e,o,i,h,r,f,c;if(s===n.CONED_CHART_DAILY)for(o=au[u]={},i=0;i<t.periods.length;i++)h=t.periods[i].label,o[h]=[t.periods[i].measuredTime,t.periods[i].specialDay];else tt++;if(query.addClass(ti,n.CONED_CHART_BUTTONS_HIDE),nr(u),a)ni(u);else{if(et=t.yAxis,ci=t.fixedSubscriptionYAxis,e=t.periods,ci)for(r=0;r<ci.length;r++)f=et.indexOf(ci[r]),f>-1&&et.splice(f,1);c=document.getElementById(l);query.addClass(c,n.CONED_CHART_HIDE_CLASS);ne();te(e.reverse())}},nr=function(t){var o,d,ft;if(s===n.CONED_CHART_DAILY){var i=pt(),c=i===n.CONED_CHART_PEAK?it:i===n.CONED_CHART_OFFPEAK?ut:yt,l=rt[e].billRates,nt=i===n.CONED_CHART_PEAK?bt:i===n.CONED_CHART_OFFPEAK?kt:dt,a=i===n.CONED_CHART_PEAK?y:i===n.CONED_CHART_OFFPEAK?k:g,v=coned.utils.isMobile()||coned.utils.isTablet()?e:c.indexOf(t),et=(coned.utils.isMobile()||coned.utils.isTablet())&&l&&nt[v]&&nt[v].items[f+1]?!1:!0;v<tr-1||!et?query.removeClass(h,n.CONED_CHART_ARROW_HIDE):coned.utils.isMobile()||coned.utils.isTablet()?(ft=Object.keys(a[r]).length-1,l?(o=i===n.CONED_CHART_PEAK?y:i===n.CONED_CHART_OFFPEAK?k:g,d=o[r][f+1]||o[r+1]?!0:!1):(o=i===n.CONED_CHART_PEAK?bt:i===n.CONED_CHART_OFFPEAK?kt:dt,d=o[e]?o[e].items.length-1>f:!1),ki||d||a[r][ft]!==t?query.removeClass(h,n.CONED_CHART_ARROW_HIDE):query.addClass(h,n.CONED_CHART_ARROW_HIDE)):ki&&c.indexOf(t)===tr-1?query.removeClass(h,n.CONED_CHART_ARROW_HIDE):query.addClass(h,n.CONED_CHART_ARROW_HIDE);l&&(coned.utils.isMobile()||coned.utils.isTablet())?r>0||_.invert(a[r])[u]>0?query.removeClass(p,n.CONED_CHART_ARROW_HIDE):query.addClass(p,n.CONED_CHART_ARROW_HIDE):c.indexOf(t)>0?query.removeClass(p,n.CONED_CHART_ARROW_HIDE):query.addClass(p,n.CONED_CHART_ARROW_HIDE)}else coned.utils.isTablet()||coned.utils.isMobile()?!or||st[b][tt]||w.indexOf(t)<w.length-1?query.removeClass(h,n.CONED_CHART_ARROW_HIDE):query.addClass(h,n.CONED_CHART_ARROW_HIDE):!or||w.indexOf(t)<w.length-1?(query.removeClass(h,n.CONED_CHART_ARROW_HIDE),kr(p,h)):(query.addClass(h,n.CONED_CHART_ARROW_HIDE),kr(h,p)),w.indexOf(t)>0?(query.removeClass(p,n.CONED_CHART_ARROW_HIDE),kr(h,p)):(query.addClass(p,n.CONED_CHART_ARROW_HIDE),kr(p,h))},kr=function(t,i){query.hasClass(t,n.CONED_CHART_ARROW_HIDE)&&document.activeElement===t&&i.focus()},ni=function(t){var i,f,e;fr=l;l=t;u=l;i=document.getElementById(l);f=document.getElementById(fr);query.removeClass(i,n.CONED_CHART_HIDE_CLASS);fr!=l&&query.addClass(f,n.CONED_CHART_HIDE_CLASS);a=i.getAttribute(n.CONED_CHART_DATE_TEXT);r=parseInt(i.getAttribute(n.CONED_CHART_DATA_PERIOD));s===n.CONED_CHART_DAILY?(query.addClass(c,n.CONED_CHART_BUTTON_DISABLED),query.removeClass(v,n.CONED_CHART_BUTTON_DISABLED),v.setAttribute(n.ARIA_CURRENT,!1),c.setAttribute(n.ARIA_CURRENT,!0),query.removeClass(ti,n.CONED_CHART_BUTTONS_HIDE)):(query.addClass(v,n.CONED_CHART_BUTTON_DISABLED),query.removeClass(c,n.CONED_CHART_BUTTON_DISABLED),c.setAttribute(n.ARIA_CURRENT,!1),v.setAttribute(n.ARIA_CURRENT,!0),query.addClass(ti,n.CONED_CHART_BUTTONS_HIDE));e=document.getElementById(t).classList.contains(n.CONED_CHART_ERROR);e?(query.addClass(ot,n.CONED_HIDDEN_CLASS),query.removeClass(tu,n.CONED_HIDDEN_CLASS)):(query.removeClass(ot,n.CONED_HIDDEN_CLASS),query.addClass(tu,n.CONED_HIDDEN_CLASS),query.removeClass(lt,n.CONED_HIDDEN_CLASS));hf();nr(l);coned.chart.fixChartHeight(u)},ne=function(){for(var w=query.getFormInputValue(i,n.CONED_CHART_RADIO_OPTION),l=w?w:n.CONED_CHART_DAILY,g=o==="F"||o==="B",f=s===n.CONED_CHART_MONTHLY,nt=s===n.CONED_CHART_DAILY,b=ht()?"subscriptionRate":"nonSubscriptionRate",e=f?ir:rr,a=f?v:c,tt=l===n.CONED_CHART_PEAK?d:l===n.CONED_CHART_OFFPEAK?vt:l===n.CONED_CHART_NONSUMMER?bi:c,k=ht()&&nt||f?a:tt,u=sr[s][b].legend,y=sr[s][b].tooltip,r=Object.keys(u),t,p,h=0;h<r.length;h++)t=r[h],p=t.match("overageDeterminant")||t.match("billedOverage")||t.match("unbilledOverage")?o:"",e[t+p]=k.getAttribute(u[t])+" ("+yi+")",ur[t+p]=k.getAttribute(y[t]);e.billingCycleTable=wt.dataset.billingCycleLegend;e.dateTable=wt.dataset.dateLegend;g&&f&&(u=sr[s][o].legend,y=sr[s][o].tooltip,r=Object.keys(u)[0],e[r]=a.getAttribute(u[r])+" ("+yi+")",ur[r]=a.getAttribute(y[r]))},te=function(t){var i=Object.keys(t[0]),y=Object.keys(t[0]),l={},c,h,u,r,f,a,v,e;for(s===n.CONED_CHART_MONTHLY?(ar=i.indexOf(n.CONED_CHART_TOTAL_AVERAGE_DEMAND_VALUE)>-1?!0:!1,c=ar?i.length-5:i.length-4,i.splice(0,3),i.splice(c)):(c=i.length,i=i.slice(4,c)),di=i.indexOf(n.CONED_CHART_FIXED_SUBSCRIPTION)>0?!0:!1,fi===n.CONED_CHART_DEMAND&&s===n.CONED_CHART_DAILY&&query.removeClass(ti,n.CONED_CHART_BUTTONS_HIDE),s===n.CONED_CHART_MONTHLY&&o==="F"&&i.splice(1,0,i.pop()),h=i.length,s===n.CONED_CHART_DAILY&&di&&(i[h-1]=i[h-1]+o,i[h-2]=o==="F"?i[h-2]+o:i[h-2]),l=fe(l,i),u=Object.keys(t).map(function(n){return t[n]}),lr="",lu="",e=0;e<u.length;e++)u[e].splitLabel!=""&&(lr=u[e].label,lu=u[e].splitLabel),r=u[e].beginDate,f=u[e].endDate,r&&f&&(r=r.replace(/T[\s\S]*/g,"T12:00:00"),f=f.replace(/T[\s\S]*/g,"T12:00:00"),r=new Date(r),f=new Date(f),r.setDate(r.getDate()+1),a=ft[r.getMonth()]+" "+r.getDate()+", "+r.getFullYear(),v=ft[f.getMonth()]+" "+f.getDate()+", "+f.getFullYear(),eu[u[e].label]=a+" - "+v);hf();ie(l,y,c,u,i)},ie=function(t,r,u,f,e){for(var h=[],k=[],c,it,rt,p,ut,nt,l,w,tt,a,b,v,y=0;y<r.length;y++){for(k.push(r[y]),c=0;c<f.length;c++)it=f[c],rt=Object.keys(it),rt.forEach(function(n){n===r[y]&&k.push(f[c][n])}),p=f[c].totalAverageDemandValue,p&&p!==0&&(ut=/[0-9]*(.[0-9])/g,nt=p.toString().match(ut),vr[c]=nt?nt[0]:p+".0");h.push(k);k=[]}if(s===n.CONED_CHART_MONTHLY)u=ar?h.length-4:h.length-3,h.splice(0,2),h.splice(u),re(s,fi,e,h,t);else{u=h.length;h=h.slice(3,u);var d=ht()?h[3]:h[2],g=h[1],ft=ht()?"":query.getFormInputValue(i,n.CONED_CHART_RADIO_OPTION);for(d[0]=ft+d[0],l=1;l<g.length;l++)d[l]=d[l]===!1?null:g[l];if(di){for(w=h[4],tt=h[1],w[0]=w[0]+o,a=1;a<tt.length;a++)w[a]=w[a]===!1?null:g[a];if(o==="F")for(b=h[5],b[0]=b[0]+o,v=1;v<tt.length;v++)b[v]=b[v]===!1?null:g[v]}ue(s,e,h,t)}return h},re=function(t,i,r,f,e){var s,tt=coned.chart.yAxisLines(di,ci,et,yi),h,it=lr?[{value:lr,"class":"text-line-year",text:lu}]:[],rt=coned.utils.isMobile()||coned.utils.isTablet()?.25:.75,y,b,k=t===n.CONED_CHART_MONTHLY?ir:rr,p=pt(),ut=p===n.CONED_CHART_PEAK?"actualDemand":p===n.CONED_CHART_OFFPEAK?"offPeakDemand":"nonSummerDemand",ft=ht(),ot=v.getAttribute(n.CONED_CHART_TOTAL_AVERAGE_DEMAND),c;fr=l;l=u;o==="E"?(s=["unbilledSubscriptionOverageValue","averageDemandValue"],h=coned.utils.isMobile()?22:24):o==="F"?(s=["unbilledSubscriptionOverageValue","billedSubscriptionOverageValue","averageDemandValue"],h=coned.utils.isMobile()?22:24):(s=[],h=coned.utils.isMobile()?22:17);d3.select(".coned-chart__container").insert("div").attr("id",u);y=document.getElementById(u);y.setAttribute(n.CONED_CHART_DATE_TEXT,a);ht()&&(yu[u]=vr,vr={});b={chartId:u,chartLeftPadding:coned.utils.isMobile()||coned.utils.isTablet()?20:11,chartData:f,colorsObj:e,dataType:s,xAxisLeftPadding:rt,yAxis:et,kilowattSymbol:yi,dollarSymbol:"",lineArray:tt,initialLine:it,allTotalAverageValue:yu,dataMonthlyNames:ir,monthlyPeriodsList:eu,size:h};oi=coned.chart.createBarChart(n.CONED_CHART_IPP_OPTION,b,ft,ot,w.length,k,ci);var st=t==="daily"?/-([A-Z])*\w+/g:/-([0-9]{4})/g,d=et[et.length-1].length,g=et[0].length,nt=d>g?d:g,ct=t===n.CONED_CHART_MONTHLY;coned.chart.addLegend(r,oi,u,k,ur,ut,p,o,undefined,ct);coned.chart.fixChartHeight(u);coned.chart.initializeTooltips(n.CONED_CHART_IPP_OPTION,u,"coned-chart-tooltip");coned.chart.deleteYearRect(u);oi.resize();coned.chart.createRect(u,ht(),nt);coned.chart.fixYearLine(u);coned.chart.resizeWindow(u,oi,st,ht(),nt);c=y.querySelector("svg");c&&(c.setAttribute("focusable",!1),c.setAttribute("aria-hidden",!0))},ue=function(t,i,r,s){var it,b;fr=l;l=u;d3.select(".coned-chart__container").insert("div").attr("id",u);var h=document.getElementById(u),k,rt=coned.chart.yAxisLines(di,ci,et,yi),g=et[et.length-1].length,nt=et[0].length,ut=g>nt?g:nt;h.setAttribute(n.CONED_CHART_DATE_TEXT,a);h.setAttribute(n.CONED_CHART_DATA_FROM_DATE,ri);h.setAttribute(n.CONED_CHART_DATA_TO_DATE,ui);h.setAttribute(n.CONED_CHART_DATA_PERIOD,e);h.setAttribute(n.CONED_CHART_DATA_WEEK,f);k=ei===n.CONED_CHART_NONSUMMER?"coned-line-nonSummerChart":ei===n.CONED_CHART_OFFPEAK?"coned-line-offPeakChart":"coned-line-peakChart";var tt=coned.utils.isMobile()||coned.utils.isTablet()?.4:tt=1.5,ft=coned.utils.isMobile()||coned.utils.isTablet()?20:11,w=pt(),ot={chartId:u,chartLeftPadding:ft,chartData:r,colorsObj:s,peakClass:k,generalDailyData:au,allCompleteMonths:ku,xAxisLeftPadding:tt,yAxis:et,linesArray:rt,kilowattSymbol:yi},v,y,p;if(w===n.CONED_CHART_OFFPEAK?(v=vt.getAttribute(n.CONED_CHART_DATA_ZERO_HOVER),p=vt.getAttribute(n.CONED_CHART_DATA_REGULAR_HOVER),y=""):w===n.CONED_CHART_PEAK?o==="E"||o==="F"?(v=c.getAttribute(n.CONED_CHART_DATA_ZERO_HOVER),p=c.getAttribute(n.CONED_CHART_DATA_REGULAR_HOVER),y=o==="E"?"":c.getAttribute(n.CONED_CHART_DATA_SPECIAL_HOVER)):o==="A"||o==="C"||o==="2"?(v=d.getAttribute(n.CONED_CHART_DATA_SPECIAL_HOVER),p=d.getAttribute(n.CONED_CHART_DATA_REGULAR_HOVER),y=d.getAttribute(n.CONED_CHART_DATA_SPECIAL_HOVER)):(v=d.getAttribute(n.CONED_CHART_DATA_ZERO_HOVER),p=d.getAttribute(n.CONED_CHART_DATA_REGULAR_HOVER),y=o!=="B"?d.getAttribute(n.CONED_CHART_DATA_SPECIAL_HOVER):""):(v=bi.getAttribute(n.CONED_CHART_DATA_ZERO_HOVER),p=bi.getAttribute(n.CONED_CHART_DATA_REGULAR_HOVER),y=""),oi=coned.chart.createLineChart(n.CONED_CHART_IPP_OPTION,ot,v,y,p,ht(),undefined,rr,ci),r.length>0){var st=t===n.CONED_CHART_MONTHLY?ir:rr,ct=w===n.CONED_CHART_PEAK?"actualDemand":w===n.CONED_CHART_OFFPEAK?"offPeakDemand":"nonSummerDemand",lt=t===n.CONED_CHART_MONTHLY;coned.chart.addLegend(i,oi,u,st,ur,ct,w,o,undefined,lt);coned.chart.fixChartHeight(u);coned.chart.initializeTooltips(n.CONED_CHART_IPP_OPTION,u,"coned-chart-tooltip")}coned.chart.deleteYearRect(u);coned.chart.resizeChart(u,oi,ht(),ut);it=t==="daily"?/-([A-Z])*\w+/g:/-([0-9]{4})/g;coned.chart.fixXaxisValues(u,it);b=h.querySelector("svg");b&&(b.setAttribute("focusable",!1),b.setAttribute("aria-hidden",!0))},fe=function(t,i){var r,u,e,f;if(s===n.CONED_CHART_MONTHLY)for(fi===n.CONED_CHART_DEMAND&&(r=o==="B"?gu:o==="E"?nf:o==="F"?rf:du),u=0;u<i.length;u++)t[i[u]]=r[u];else for(fi===n.CONED_CHART_USAGE?r=[n.CONED_CHART_BLUE_COLOR]:o==="E"?r=tf:o==="F"?r=uf:(e=pt(),r=e===n.CONED_CHART_PEAK?[n.CONED_CHART_PEAK_COLOR,n.CONED_CHART_WHITE_COLOR]:e===n.CONED_CHART_OFFPEAK?[n.CONED_CHART_OFFPEAK_COLOR,n.CONED_CHART_WHITE_COLOR]:[n.CONED_CHART_NONSUMMER_COLOR,n.CONED_CHART_WHITE_COLOR]),f=0;f<i.length;f++)t[i[f]]=r[f];return t},hf=function(){query.removeClass(hr,n.CONED_HIDDEN_CLASS);ii.innerHTML=a},dr=function(t){var v=t===n.CONED_CHART_OFFPEAK?n.CONED_CHART_OFF_PEAK:t===n.CONED_CHART_NONSUMMER?n.CONED_CHART_NONSUMMER_PEAK:t,c,o,s=nt,l=pt(),a=l===n.CONED_CHART_PEAK?bt:l===n.CONED_CHART_OFFPEAK?kt:dt,p=a[e]?!0:!1,w=i.getElementsByClassName(n.CONED_CHART_DATE_BUTTON)[0],h=rt[e].billRates;dataLayer.push({event:"IPP.demand.peak.offpeak.view",PeakLevel:v});coned.chart.showTableInfo(wt.parentElement,u,!1);gt&&(query.removeClass(ot,n.CONED_HIDDEN_CLASS),query.addClass(ct,n.CONED_HIDDEN_CLASS),query.removeClass(lt,n.CONED_HIDDEN_CLASS),nr(u));t===n.CONED_CHART_NONSUMMER?(ei=n.CONED_CHART_NONSUMMER,d.checked=!1,vt.checked=!1,h&&(coned.utils.isMobile()||coned.utils.isTablet())?g[r]&&(o=g[r][f]):o=yt[s]):t===n.CONED_CHART_OFFPEAK?(ei=n.CONED_CHART_OFFPEAK,d.checked=!1,h&&(coned.utils.isMobile()||coned.utils.isTablet())?k[r]&&(o=k[r][f]):o=ut[s]):(ei=n.CONED_CHART_PEAK,vt.checked=!1,s=s===-1?0:s,h&&(coned.utils.isMobile()||coned.utils.isTablet())?y[r]&&(o=y[r][f]):o=it[s]);c=document.getElementById(o);c?ni(o):p?(pi(w),li(a[e])):rt[e]?gi(t,e):pr();gt=!1},ee=function(){y[r.toString()]=y[r.toString()]!==undefined?y[r.toString()]:{};k[r.toString()]=k[r.toString()]!==undefined?k[r.toString()]:{};g[r.toString()]=g[r.toString()]!==undefined?g[r.toString()]:{}},oe=function(t){var ri,o,ui,p,v,lt,d,et,ot,ht;if(t.preventDefault(),coned.chart.showTableInfo(wt.parentElement,u,!1),dataLayer.push({event:"IPP.demand.navigation.billing",label:"Backward arrow"}),er=!0,s===n.CONED_CHART_MONTHLY)w.indexOf(l)===w.length-1?(p=12,st[b]&&st[b][tt]&&(coned.utils.isMobile()||coned.utils.isTablet())?(b=st[b][tt]?b:b++,tt=st[b][tt]?tt:0,d=i.getElementsByClassName(n.CONED_CHART_TAB_ACTIVE_CLASS)[0],et=st[b][tt].periods.length-1,ot=st[b][tt].periods[et].beginDate,ht=st[b][tt].periods[0].endDate,a=coned.chartComponents.generateMonthlyDate(ot,ht,ft),pi(d),w.push(u),li(st[b][tt])):at.length>0?(et=at.length-1,ot=at[et],ht=at[0],a=coned.chartComponents.generateMonthlyDate(ot,ht,ft),b++,tt=0,br()):(si=si+p,b++,tt=0,pr())):(o=w.indexOf(l),ri=w[o+1],ni(ri));else{var c=pt(),vt=c===n.CONED_CHART_PEAK?it:c===n.CONED_CHART_OFFPEAK?ut:yt,h=c===n.CONED_CHART_PEAK?bt:c===n.CONED_CHART_OFFPEAK?kt:dt,gt=c===n.CONED_CHART_PEAK?y:c===n.CONED_CHART_OFFPEAK?k:g,ti,ii,fi,ct=rt[e].billRates;o=ct&&(coned.utils.isMobile()||coned.utils.isTablet())?_.invert(gt[r])[l]:vt.indexOf(l);lt=ct&&(coned.utils.isMobile()||coned.utils.isTablet())?h[r]&&h[r].items[parseInt(o)+1]===undefined||h[r]===undefined?r+1:r:r;o=ct&&(coned.utils.isMobile()||coned.utils.isTablet())?h[r]&&h[r].items[parseInt(o)+1]===undefined||h[r]===undefined?"-1":o:o;v=ct&&(coned.utils.isMobile()||coned.utils.isTablet())?gt[lt]?gt[lt][parseInt(o)+1]:undefined:vt[o+1];ui=document.getElementById(v);nt++;coned.utils.isMobile()||coned.utils.isTablet()?(f++,ti=h[e]===undefined||h[e].items.length===f?!0:!1,fi=parseInt(e)===rt.length-1?!0:!1,ii=ti&&fi):ii=vt.indexOf(l)===tr-1;ki&&ii?(p=12,si=si+p,e++,f=0,pr()):ui?(e=parseInt(document.getElementById(v).getAttribute(n.CONED_CHART_DATA_PERIOD)),f=parseInt(document.getElementById(v).getAttribute(n.CONED_CHART_DATA_WEEK)),ni(v)):coned.utils.isMobile()||coned.utils.isTablet()?ti?(e++,gi(c,e),f=0):(d=i.getElementsByClassName(n.CONED_CHART_DATE_BUTTON)[0],pi(d),li(h[e])):(e++,gi(c,o+1))}},se=function(t){var v,ht,tt,o=pt(),ti=rt[e].billRates,ri,at,ui,fi,h,ei,p,ft,et,oi,b,d,vt,c,si;if(nt=s===n.CONED_CHART_MONTHLY?nt:nt-1,t.preventDefault(),coned.chart.showTableInfo(wt.parentElement,u,!1),dataLayer.push({event:"IPP.demand.navigation.billing",label:"Forward arrow"}),gt){if(ti&&(coned.utils.isMobile()||coned.utils.isTablet())){if(ui=u.indexOf(n.CONED_CHART_OFFPEAK)>-1?kt:u.indexOf(n.CONED_CHART_PEAK)>-1?bt:dt,fi=u.indexOf(n.CONED_CHART_OFFPEAK)>-1?k:u.indexOf(n.CONED_CHART_PEAK)>-1?y:g,ri=o===n.CONED_CHART_PEAK?y:o===n.CONED_CHART_OFFPEAK?k:g,tt=ui[r-1]?fi[r-1][ui[r-1].items.length-1]:fi[r-1][0],at=document.getElementById(tt),!at){r--;e--;dr(o);return}}else ri=o===n.CONED_CHART_PEAK?it:o===n.CONED_CHART_OFFPEAK?ut:yt,tt=ri[nt],at=document.getElementById(tt)?!0:!1;if(at){u=tt;v=document.getElementById(u);ht=v.getAttribute(n.CONED_CHART_DATE_TEXT,a);e=v.getAttribute(n.CONED_CHART_DATA_PERIOD);f=v.getAttribute(n.CONED_CHART_DATA_WEEK);ii.innerHTML=ht;ni(u);query.removeClass(ot,n.CONED_HIDDEN_CLASS);query.addClass(ct,n.CONED_HIDDEN_CLASS);query.removeClass(lt,n.CONED_HIDDEN_CLASS);gt=!1;return}query.removeClass(ot,n.CONED_HIDDEN_CLASS);query.addClass(ct,n.CONED_HIDDEN_CLASS);query.removeClass(lt,n.CONED_HIDDEN_CLASS);gt=!1}if(hi&&s===n.CONED_CHART_MONTHLY){v=document.getElementById(u);ht=v.getAttribute(n.CONED_CHART_DATE_TEXT,a);query.removeClass(ot,n.CONED_HIDDEN_CLASS);query.addClass(ct,n.CONED_HIDDEN_CLASS);query.removeClass(lt,n.CONED_HIDDEN_CLASS);ii.innerHTML=ht;nr(u);hi=!1;return}if(s===n.CONED_CHART_MONTHLY)h=w.indexOf(l)-1,ni(w[h]);else{if(f--,ti&&(coned.utils.isMobile()||coned.utils.isTablet())){if(p=_.invert(y[r])[l]>-1?n.CONED_CHART_PEAK:_.invert(k[r])[l]>-1?n.CONED_CHART_OFFPEAK:n.CONED_CHART_NONSUMMER,c=p===n.CONED_CHART_PEAK?y:p===n.CONED_CHART_OFFPEAK?k:g,h=f,h===-1){var ci=o===n.CONED_CHART_PEAK?bt:o===n.CONED_CHART_OFFPEAK?kt:dt,st=c[r-1],vi=ci[r-1]?Object.keys(ci[r-1].items).length-1:st?st[Object.keys(st).length-1]:undefined;h=st?st[vi]:undefined;r--}else h=c[r][h];e=f<0?e-1:e;f=f>-1?f:c[r]&&Object.keys(c[r]).length>0?Object.keys(c[r]).length-1:0;ei=document.getElementById(h);y[r]&&(b=y[r]?document.getElementById(y[r][f]):null,d=k[r]?document.getElementById(k[r][f]):null,vt=g[r]?document.getElementById(g[r][f]):null,ft=b?b:d?d:vt);et=h}else p=it.indexOf(l)>-1?n.CONED_CHART_PEAK:ut.indexOf(l)>-1?n.CONED_CHART_OFFPEAK:n.CONED_CHART_NONSUMMER,h=p===n.CONED_CHART_PEAK?it.indexOf(l)-1:p===n.CONED_CHART_OFFPEAK?ut.indexOf(l)-1:yt.indexOf(l)-1,oi=o===n.CONED_CHART_PEAK?it:o===n.CONED_CHART_OFFPEAK?ut:yt,ei=document.getElementById(oi[h]),b=document.getElementById(it[nt]),d=document.getElementById(ut[nt]),vt=document.getElementById(yt[nt]),ft=b?b:d?d:vt,et=oi[h],e=f<0?e-1:e;if(ei)e=parseInt(document.getElementById(et).getAttribute(n.CONED_CHART_DATA_PERIOD)),f=parseInt(document.getElementById(et).getAttribute(n.CONED_CHART_DATA_WEEK)),ni(et);else{if(si=!0,coned.utils.isMobile()||coned.utils.isTablet()){var ai=o===n.CONED_CHART_PEAK?bt:o===n.CONED_CHART_OFFPEAK?kt:dt,yi=ai[e]?!0:!1,wi=i.getElementsByClassName(n.CONED_CHART_DATE_BUTTON)[0];yi&&(si=!1,pi(wi),li(ai[e]))}si&&(ti&&(coned.utils.isMobile()||coned.utils.isTablet())?yr=c[e]===undefined||Object.keys(c[e]).length>0?!0:!1:f=f<0?ft.getAttribute(n.CONED_CHART_DATA_WEEK):f,gi(o,e),a=ft?ft.getAttribute(n.CONED_CHART_DATE_TEXT):a)}}},cf=function(t){(o==="E"||o==="F")&&(t===n.CONED_CHART_DAILY?(query.addClass(iu,n.CONED_HIDDEN_CLASS),query.removeClass(ru,n.CONED_HIDDEN_CLASS)):(query.addClass(ru,n.CONED_HIDDEN_CLASS),query.removeClass(iu,n.CONED_HIDDEN_CLASS)))},he=function(){var t=coned.utils.isPatternLab()?coned.plConstants.GET_CHART_LEGEND_DATA:window.location.origin+n.CONED_DATA_ATTRIBUTES_JSON;query.getData(t,function(n){sr=n},function(){})},gr=function(n){var t=coned.utils.isMobile()==!0?"mobile":"desktop",i="data-"+t+"-arrow-prev",r="data-"+t+"-arrow-next",u=n.getAttribute(r),f=n.getAttribute(i);h.setAttribute("aria-label",f);p.setAttribute("aria-label",u)},ce=function(){v&&query.hasClass(v,n.CONED_CHART_BUTTON_DISABLED)?gr(v):c&&query.hasClass(c,n.CONED_CHART_BUTTON_DISABLED)&&gr(c)},le=function(){coned.utils.addGeneralListeners(ai,ef);coned.utils.addGeneralListeners(c,af);coned.utils.addGeneralListeners(v,vf);coned.utils.addGeneralListeners(h,oe);coned.utils.addGeneralListeners(p,se);coned.utils.addGeneralListeners(vt,function(){dr("OffPeak")});coned.utils.addGeneralListeners(d,function(){dr("Peak")});coned.utils.addGeneralListeners(bi,function(){dr("NonSummer")});ce();window.addEventListener("resize",function(){var r=document.getElementsByClassName(n.CONED_CHART_DEMAND_BUTTON)[0],f=window.innerWidth,e=f>coned.constants.TABLET_MAX_SIZE==!0?"desktop":"mobile";if(u&&r.classList.contains(n.CONED_CHART_TAB_ACTIVE_CLASS))if(wu!==e)location.reload();else{var o=s==="daily"?/-([A-Z])*\w+/g:/-([0-9]{4})/g,t=et[et.length-1].length,i=et[0].length,h=t>i?t:i;coned.chart.resizeWindow(u,oi,o,ht(),h)}});coned.utils.addGeneralListeners(pu,function(n){n.preventDefault();var t=wt.hasAttribute("hidden")?"true":"false";coned.chart.showTableInfo(this.parentElement,u,t)})},ae=function(){wi=document.getElementsByClassName(n.CONED_ENERGY_USAGE)[0];uu=document.getElementsByClassName(n.CONED_CHART_FORM_LOADING)[0];hr=i.getElementsByClassName(n.CONED_CHART_MODULE)[0];ot=i.getElementsByClassName(n.CONED_CHART_CONTAINER)[0];lt=i.getElementsByClassName(n.CONED_CHART_NOTE)[0];ct=i.getElementsByClassName(n.CONED_CHART_ERROR_MESSAGE)[0];tu=i.getElementsByClassName(n.CONED_CHART_NODATA_MESSAGE)[0];ai=i.getElementsByClassName(n.CONED_CHART_DEMAND_BUTTON)[0];nu=i.getElementsByClassName(n.CONED_CHART_MOBILE_DEMAND)[0];c=i.getElementsByClassName(n.CONED_CHART_DATE_BUTTON)[0];v=i.getElementsByClassName(n.CONED_CHART_MONTH_BUTTON)[0];ii=i.getElementsByClassName(n.CONED_CHART_DATE)[0];ti=i.getElementsByClassName(n.CONED_CHART_PEAK_CONTENT)[0];d=i.getElementsByClassName(n.CONED_CHART_PEAK_OPTION)[0];vt=i.getElementsByClassName(n.CONED_CHART_OFFPEAK_OPTION)[0];bi=i.getElementsByClassName(n.CONED_CHART_NONSUMMER_OPTION)[0];h=i.getElementsByClassName(n.CONED_CHART_LEFT_ARROW)[0];p=i.getElementsByClassName(n.CONED_CHART_RIGHT_ARROW)[0];ru=i.getElementsByClassName("coned-chart__note-paragraph--demandDaily")[0];iu=i.getElementsByClassName("coned-chart__note-paragraph--demandMonthly")[0];pu=i.getElementsByClassName("js-coned-chart-table-button")[0];wt=i.getElementsByClassName("js-chart-table-content")[0];bu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];ft=wt.dataset.shortenedMonthsList.split(",");ku=["January","February","March","April","May","June","July","August","September","October","November","December"];wu=window.innerWidth>coned.constants.TABLET_MAX_SIZE==!0?"desktop":"mobile";w=[];it=[];ut=[];yt=[];eu={};rt=[];tr=0;ir={};rr={};ur={};au={};er=!1;si=0;e=0;nt=0;vu=!1;f=0;bt={};kt={};dt={};st=[];b=0;tt=0;y={};k={};g={};gt=!1;hi=!1;or=!1;ar=!1;vr={};yu={};yr=!1;du=[n.CONED_CHART_PEAK_COLOR,n.CONED_CHART_OFFPEAK_COLOR];gu=[n.CONED_CHART_PEAK_COLOR,n.CONED_CHART_OFFPEAK_COLOR,n.CONED_CHART_NONSUMMER_COLOR];nf=[n.CONED_CHART_PEAK_COLOR,n.CONED_CHART_OVERAGE_COLOR,n.CONED_CHART_SUBSCRIPTION_COLOR];tf=[n.CONED_CHART_PEAK_COLOR,n.CONED_CHART_SUBSCRIPTION_COLOR,n.CONED_CHART_DETERMINANT_COLOR,n.CONED_CHART_OVERAGE_COLOR];rf=[n.CONED_CHART_PEAK_COLOR,n.CONED_CHART_SUBSCRIPTION_COLOR,n.CONED_CHART_SUBSCRIPTION_COLOR,n.CONED_CHART_OVERAGE_COLOR];uf=[n.CONED_CHART_PEAK_COLOR,n.CONED_CHART_SUBSCRIPTION_COLOR,n.CONED_CHART_DETERMINANT_COLOR,n.CONED_CHART_SUBSCRIPTION_COLOR,n.CONED_CHART_BLACK_COLOR];cu=!0},ve=function(){ae();le();he();pr();t=!0};ve()};return i.prototype.isLoaded=function(){return t},i}();var query=query||{},coned=coned||{},weglot=window.Weglot||{};coned.components=coned.components||{};coned.components.LanguageSwitcher=function(){var n={SWITCHER_CONTAINER_SELECTOR:"js-lang-switcher-container",OPEN_CONTROLS_SELECTOR:"js-open-lang-switcher",MODAL_OPENED_SELECTOR:"js-lang-switcher-open",DESKTOP_SWITCHER_SELECTOR:"js-lang-switcher-desktop",LANGUAGE_OPTIONS_CONTAINER_SELECTOR:"js-language-switcher-options-container",LANGUAGE_OPTIONS_MOBILE_CONTAINER_SELECTOR:"js-language-switcher-options-container-mobile",LANG_OPTION_ITEM_SELECTOR:"js-lang-switcher-option-item",LANG_OPTION_ITEM_SELECTED_SELECTOR:"js-lang-switcher-option-item-selected",SWITCHER_LABEL_SELECTOR:"js-lang-switcher-label",SWITCHER_ACTION_ICON_SELECTOR:"js-lang-switcher-action-icon",LANG_OPTION_ITEM_CHECK_SELECTOR:"js-lang-option-check",HEADER_SELECTOR:"js-header-select-language",LANGUAGE_SWITCHER_DESKTOP_CONTROL_SELECTOR:"js-language-switcher-desktop-control",LANG_OPTION_ITEM_CLASS:"language-switcher-option-item",LANG_OPTION_SELECTED_ITEM_CLASS:"language-switcher-option-item--selected",LANG_OPTION_ITEM_LANGUAGE_CLASS:"language-switcher-option-item--language",LANG_OPTION_ITEM_LANGUAGE_SELECTED_CLASS:"language-switcher-option-item--language--selected",SWITCHER_ACTION_ICON_OPEN_CLASS:"language-switcher-action-icon--open",SWITCHER_DESKTOP_CONTROL_OPEN_CLASS:"language-switcher-desktop-control--open",LANG_OPTION_ITEM_CHECK_ICON_CLASS:"language-switcher-option-item-check-icon",LANGUAGE_SWITCHER_SELECT_LANGUAGE_EVENT:"selectLanguage",HREF_ATTRIBUTE:"href",DATA_OPTION_LANG_ATTRIBUTE:"data-lang",HIDDEN_CLASS:"hidden",LOCAL_NAME_TOKEN:"{LOC}",ENG_NAME_TOKEN:"{ENG}",LANG_NAME_SEPARATOR:"|",LOCALIZED_LANG_SEPARATOR:",",LANG_CODE_SEPARATOR:"-",LANG_URL_PARAM:"language=",LANG_URL_PARAM_REGEX:/\&language=[A-Za-z]{2}/g,LANG_URL_PATH_REGEX:/^\/[A-Za-z]{2}/,LANG_OPTION_ITEM_CHECK_ICON_STATUS_CLASS:"icon-check-status",ARIA_EXPANDED_ATTRIBUTE:"aria-expanded",ARIA_ACTIVE_DESCENDANT_ATTRIBUTE:"aria-activedescendant",MINUS_ONE_TAB_INDEX:"-1",ZERO_TAB_INDEX:"0",DESKTOP_DEVICE:"Desktop",MOBILE_DEVICE:"Mobile",KEYDOWN_EVENT:"keydown"},t=!1,i=function(){var d,r,s,y,e,c,l,h,a,i,p,w,b,u,v,g,f,nt,lt=function(){var t,i;try{if(!weglot||weglot.options.languages===undefined)throw new Error("Language options configuration cannot be found.");r.includes(weglot.options.language_from)||r.push(weglot.options.language_from);h=weglot.options.languages.map(function(n){var t=n.custom_code!==null?n.custom_code:n.language_to,i=k(t,n.custom_name);return{code:t,localName:i.displayName,englishName:i.altName}});t=k(weglot.options.language_from,weglot.options.language_from_custom_name);h.unshift({code:weglot.options.language_from,localName:t.displayName,englishName:t.altName});e!==undefined&&e!==""&&e!=="custom"&&h.sort(function(n,t){var i=n[e]||"",r=t[e]||"";return i<r?-1:i>r?1:0});i=et();_.each(h,function(t){var r=i===t.code;v.appendChild(rt(t,r,v,n.MOBILE_DEVICE));u.appendChild(rt(t,r,u,n.DESKTOP_DEVICE))});ut(i);a={currentIndex:0,$currentOption:u.children[0]}}catch(f){}},at=function(n){n.preventDefault();var t=n.currentTarget.dataset.lang;tt(t)},tt=function(t){try{var i=et();t!==""&&t!==i&&(r!=undefined&&r.includes(t)&&!coned.utils.isPatternLab()?(weglot.getCurrentLang()!==weglot.options.language_from&&weglot.switchTo(weglot.options.language_from),it(t)):(weglot.switchTo(t),coned.utils.triggerEvent(nt,n.LANGUAGE_SWITCHER_SELECT_LANGUAGE_EVENT)))}catch(u){}o()},it=function(t){try{if(r!=undefined&&r.includes(t))ht(t,!0);else{var i=ot();i!==""&&i!==weglot.options.language_from||window.location.search.includes(n.LANG_URL_PARAM)?ht(weglot.options.language_from,!1):(ut(t),ft(t,u),ft(t,v))}}catch(f){}},vt=function(t){t.preventDefault();i!==undefined&&(query.hasClass(i,n.MODAL_OPENED_SELECTOR)?o():st())},rt=function(t,i,r,u){var f=document.createElement("li"),o,e,s;return f.classList.add(n.LANG_OPTION_ITEM_CLASS),f.ariaSelected=i,f.role="option",f.tabIndex=t.code=="en"?n.ZERO_TAB_INDEX:n.MINUS_ONE_TAB_INDEX,f.id=t.englishName.concat(u),f.addEventListener(n.KEYDOWN_EVENT,wt),o=document.createElement("span"),o.classList.add(n.LANG_OPTION_ITEM_CHECK_ICON_STATUS_CLASS),o.classList.add(n.LANG_OPTION_ITEM_CHECK_SELECTOR),o.classList.add(n.LANG_OPTION_ITEM_CHECK_ICON_CLASS),o.classList.add(n.HIDDEN_CLASS),e=document.createElement("span"),e.setAttribute(n.DATA_OPTION_LANG_ATTRIBUTE,t.code),e.classList.add(n.LANG_OPTION_ITEM_LANGUAGE_CLASS),e.classList.add(n.LANG_OPTION_ITEM_SELECTOR),coned.utils.addGeneralListeners(e,at),s=y!==""?y.replaceAll(n.LOCAL_NAME_TOKEN,t.localName).replaceAll(n.ENG_NAME_TOKEN,t.englishName):t.localName,e.innerText=s,i&&(e.classList.add(c),l.forEach(function(n){f.classList.add(n)}),o.classList.remove(n.HIDDEN_CLASS),r.setAttribute(n.ARIA_ACTIVE_DESCENDANT_ATTRIBUTE,f.id)),f.appendChild(o),f.appendChild(e),f},k=function(t,i){var u=weglot.getLanguageName(t),r=u.split(n.LANG_NAME_SEPARATOR);return r.length>1?{displayName:r[0],altName:r[1]}:{displayName:u,altName:i!==null?i:""}},ut=function(n){if(w!==undefined){var t=k(n,"").displayName;_.each(w,function(n){n.innerText=t})}},ft=function(t,i){var r=i.children;_.each(r,function(r){var f=r.getElementsByClassName(n.LANG_OPTION_ITEM_LANGUAGE_CLASS)[0],u=r.getElementsByClassName(n.LANG_OPTION_ITEM_CHECK_SELECTOR)[0],e=t===f.dataset.lang,o=query.hasClass(r,n.LANG_OPTION_ITEM_SELECTED_SELECTOR);r.ariaSelected=e;e?(o||(f.classList.add(c),l.forEach(function(n){r.classList.add(n)})),query.hasClass(u,n.HIDDEN_CLASS)&&u.classList.remove(n.HIDDEN_CLASS),i.setAttribute(n.ARIA_ACTIVE_DESCENDANT_ATTRIBUTE,r.id)):(o&&(f.classList.remove(c),l.forEach(function(n){r.classList.remove(n)})),query.hasClass(u,n.HIDDEN_CLASS)||u.classList.add(n.HIDDEN_CLASS))})},et=function(){var n=ot();return n!==""&&n!==weglot.options.language_from?n:weglot.getCurrentLang()},ot=function(){if(s!=undefined&&s!==""){var t=h.find(function(t){return t.code===s||t.code===s+n.LANG_CODE_SEPARATOR});return t&&t!==undefined?t.code:""}return""},st=function(){i.classList.add(n.MODAL_OPENED_SELECTOR);i.classList.remove(n.HIDDEN_CLASS);b.classList.add(n.SWITCHER_ACTION_ICON_OPEN_CLASS);f.parentElement.classList.add(n.SWITCHER_DESKTOP_CONTROL_OPEN_CLASS);f.setAttribute(n.ARIA_EXPANDED_ATTRIBUTE,"true")},o=function(){i.classList.remove(n.MODAL_OPENED_SELECTOR);i.classList.add(n.HIDDEN_CLASS);b.classList.remove(n.SWITCHER_ACTION_ICON_OPEN_CLASS);f.parentElement.classList.remove(n.SWITCHER_DESKTOP_CONTROL_OPEN_CLASS);f.setAttribute(n.ARIA_EXPANDED_ATTRIBUTE,"false")},ht=function(t,i){var f;t=t.trim().split(n.LANG_CODE_SEPARATOR)[0];var e=coned.utils.isPatternLab()?"":"/"+t,o=coned.utils.isPatternLab()?window.location.pathname:window.location.pathname.replace(n.LANG_URL_PATH_REGEX,""),u=i===!0?n.LANG_URL_PARAM+t:"",r=window.location.search!==""?window.location.search.replaceAll("?","&"):"";r.includes(n.LANG_URL_PARAM)&&(r=r.replace(n.LANG_URL_PARAM_REGEX,""));r=u!==""?"?"+u+r:r.replace(/^\&/,"?");f=window.location.origin+e+o+r;window.location.href=f},yt=function(n){n.stopPropagation();var i=a.currentIndex,t;switch(n.keyCode){case coned.constants.KEY_CODE.UP:n.preventDefault();t=i-1;ct(t,a,u);break;case coned.constants.KEY_CODE.DOWN:n.preventDefault();t=i+1;ct(t,a,u);break;case coned.constants.KEY_CODE.ESC:o();f.focus()}},ct=function(t,i,r){if(t>=0&&t<r.children.length){var f=i.$currentOption,u=r.children[t];i.$currentOption=u;i.currentIndex=t;f&&(f.tabIndex=n.MINUS_ONE_TAB_INDEX);u&&(u.tabIndex=n.ZERO_TAB_INDEX,u.focus())}},pt=function(t){t.stopPropagation();switch(t.keyCode){case coned.constants.KEY_CODE.SPACE:t.preventDefault();query.hasClass(i,n.MODAL_OPENED_SELECTOR)?o():st();break;case coned.constants.KEY_CODE.ESC:o();f.focus()}},wt=function(n){var t=n.currentTarget.children[1].dataset.lang,i=n.keyCode===coned.constants.KEY_CODE.SPACE||n.keyCode===coned.constants.KEY_CODE.ENTER;t&&i&&(n.stopPropagation(),n.preventDefault(),tt(t))};coned.utils.onResizeThrottler(function(){coned.utils.isMobile()&&query.hasClass(i,n.MODAL_OPENED_SELECTOR)&&o()});var bt=function(){i=document.getElementsByClassName(n.SWITCHER_CONTAINER_SELECTOR)[0];u=document.getElementsByClassName(n.LANGUAGE_OPTIONS_CONTAINER_SELECTOR)[0];v=document.getElementsByClassName(n.LANGUAGE_OPTIONS_MOBILE_CONTAINER_SELECTOR)[0];g=document.getElementsByClassName(n.LANGUAGE_SWITCHER_DESKTOP_CONTROL_SELECTOR)[0];p=document.getElementsByClassName(n.OPEN_CONTROLS_SELECTOR);w=document.getElementsByClassName(n.SWITCHER_LABEL_SELECTOR);b=document.getElementsByClassName(n.SWITCHER_ACTION_ICON_SELECTOR)[0];f=document.getElementsByClassName(n.DESKTOP_SWITCHER_SELECTOR)[0];nt=document.getElementsByClassName(n.HEADER_SELECTOR)[0];d=i.dataset.apiKey;s=i.dataset.currentSysLang;y=i.dataset.optionDisplayFormat;e=i.dataset.optionsSortBy;r=[];var t=i.dataset.localizedLang;t!==undefined&&t!==""&&(r=t.split(n.LOCALIZED_LANG_SEPARATOR).filter(function(n){return n!==""}));c=n.LANG_OPTION_ITEM_LANGUAGE_SELECTED_CLASS;l=[n.LANG_OPTION_SELECTED_ITEM_CLASS,n.LANG_OPTION_ITEM_SELECTED_SELECTOR]},kt=function(){p!==undefined&&_.each(p,function(n){coned.utils.addGeneralListeners(n,vt)});weglot.on("initialized",lt);weglot.on("languageChanged",function(n,t){t&&t!=""&&(n!==weglot.options.language_from||coned.utils.isPatternLab())&&it(n)});u.addEventListener(n.KEYDOWN_EVENT,yt);g.addEventListener(n.KEYDOWN_EVENT,pt)},dt=function(){try{if(!weglot)throw new Error("Weglot instance cannot be found.");weglot.initialize({api_key:d,hide_switcher:!0})}catch(n){}},gt=function(){bt();kt();dt();t=!0};gt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.LeadGenForm=function(){var n={LEAD_GEN_FORM:"coned-lead-gen-form",FORM_SELECT:"js-coned-select",FORM_SELECTOR:"js-lead-gen-form",FORM_LOADING:"js-form-loading",FORM_LEAD_LIST:"js-lead-gen-form-company-list",LEAD_CUSTOMER_TYPE:"js-customer-type",LEAD_SERVICE_TYPE:"js-service-type",LEAD_LOCATION:"js-location",CUSTOMER_PARAGRAPH:"js-customer-paragraph",SERVICE_PARAGRAPH:"js-service-paragraph",LOCATION_PARAGRAPH:"js-location-paragraph",FILTER_CUSTOMER:"customer=",FILTER_SERVICE:"service=",FILTER_LOCATION:"location=",LIST_CONTAINER:"js-company-container",LEAD_GEN_CUSTOMER:"customer",LEAD_GEN_SERVICE:"service",LEAD_GEN_LOCATION:"location",LEAD_GEN_SELECT_CUSTOMER:"js-select-customer",LEAD_GEN_SELECT_SERVICE_TYPE:"js-select-service",LEAD_GEN_SELECT_LOCATION:"js-select-location",LEAD_GEN_TABLE_ROW:"js-table-row",LEAD_GEN_SELECT_MENU_SERVICE:"js-select-menu-service",LEAD_GEN_SELECT_MENU_LOCATION:"js-select-menu-location",FALSE:"false",RESET_BUTTON:"js-reset-form-button",INPUT_TEXT_SELECTOR:"js-coned-input",BORDER_ANIMATION_SELECTOR:"js-border-bar-selector",BORDER_ANIMATION_CLASS:"border-bar--animate",INPUT_FILLED_CLASS:"coned-input--filled",SUBMIT_BUTTON:"js-submit-form-button",FAQ_BUTTON:"js-faq-form-button",LEAD_GEN_COMPANY_CHECKBOX:"js-lead-gen-checkbox",LEAD_GEN_COMPANY_LINK:"js-lead-gen-link",TOAST:"js-toast",SHOW_TOAST:"toast-show",TOAST_EXPANDED:"js-toast--expanded",LEAD_GEN_FORM_TOP:"lead-gen-form__top",HIDDEN_CLASS:"hidden",LEAD_GEN_STEP_1:"DR Lead Gen Step 1",LEAD_GEN_STEP_2:"DR Lead Gen Step 2",LEAD_GEN_STEP_3:"DR Lead Gen Step 3",LEAD_GEN_RESET_STEP:"DR Lead Gen Reset",LEAD_GEN_SUBMIT_STEP:"DR Lead Gen Submit",LEAD_GEN_FAQ_STEP:"DR Lead Gen FAQs",LEAD_GEN_CHECKBOX:"DR Lead Search Result Checkbox",LEAD_GEN_HIPERLINK:"DR Lead Search Result Hyperlink"},t=!1,i=function(i){var g,l,nt,tt,it,u,f,e,w,h,rt,r,o,s,ut,ft,et,b,ot,k,d,y,st,ht,ct,lt,at,vt,yt,p,a,c,v,pt=function(){for(var i,r,t,n=0;n<h.length;n++){c[n]=h[n].cloneNode(!0);a[n]=h[n].cloneNode(!0);i={};for(r in c[n].dataset)i[coned.utils.toHyphenCase(r)]=c[n].dataset[r];v[n]={data:i,index:n}}t=[];Array.prototype.forEach.call(rt,function(n){n.value!=undefined&&n.value!=""&&n.value!="default"&&t.push({criteria:n.dataset.filterCriteria,value:n.value})});t.length&&wt(t);ti();bt()},wt=function(n){n.length&&(v=v.filter(function(t){for(var r,f,u,i=0;i<n.length;i++)if(u=n[i],r=t.data[u.criteria],r){if(f=r.toUpperCase().split("|"),!f.includes(u.value.toUpperCase()))return!1}else return!1;return!0}),a=[],v.forEach(function(n){a.push(c[n.index])}),h=c);var t="",i=[];a.forEach(function(n){i.push(n.outerHTML)});t=i.join("");w.innerHTML=t},bt=function(){if(r=u.options[u.selectedIndex].text,o=f.options[f.selectedIndex].text,s=e.options[e.selectedIndex].text,r!="Customer Type"&&st.classList.remove(n.HIDDEN_CLASS),o!="Service Type"&&ht.classList.remove(n.HIDDEN_CLASS),s!="Location"){var t=document.getElementsByClassName(n.LEAD_GEN_FORM)[0];coned.utils.isMobile()&&gt();kt();g.classList.add(n.LEAD_GEN_FORM_TOP);l.classList.remove(n.HIDDEN_CLASS);new coned.components.FormValidationModule(t)}},kt=function(){r=u.options[u.selectedIndex].text;o=f.options[f.selectedIndex].text;s=e.options[e.selectedIndex].text;r!="Customer Type"&&(nt.innerHTML=r,ut.classList.remove(n.HIDDEN_CLASS));o!="Service Type"&&(tt.innerHTML=o,ft.classList.remove(n.HIDDEN_CLASS));s!="Location"&&(it.innerHTML=s,et.classList.remove(n.HIDDEN_CLASS))},dt=function(){var i=document.getElementsByClassName(n.LIST_CONTAINER)[0],t;coned.utils.isPatternLab()&&(t=coned.plConstants.PATTERNLAB_LEAD_GEN_COMPANY_LIST);query.getData(t,function(n){i.innerHTML=n})},gt=function(){y.classList.contains(n.TOAST_EXPANDED)||(y.classList.add(n.SHOW_TOAST),new coned.components.ToastModule(y))},ni=function(t){var e,f,u;for(t.preventDefault(),$(i).find("form").validate().resetForm(),f=0;f<d.length;f++)(u=d[f],u.disabled)||(e=u.parentElement.getElementsByClassName(n.BORDER_ANIMATION_SELECTOR)[0],query.removeClass(u,n.INPUT_FILLED_CLASS),query.removeClass(u,n.INPUT_VALID_CLASS),e&&query.removeClass(e,n.BORDER_ANIMATION_CLASS),u.value="");dataLayer.push({event:n.LEAD_GEN_RESET_STEP,customerType:r})},ti=function(){vt=i.getElementsByClassName(n.LEAD_GEN_COMPANY_CHECKBOX);yt=i.getElementsByClassName(n.LEAD_GEN_COMPANY_LINK);Array.prototype.forEach.call(vt,function(n){coned.utils.addGeneralListeners(n,function(n){ii(n)})});Array.prototype.forEach.call(yt,function(n){coned.utils.addGeneralListeners(n,function(n){ri(n)})})},ii=function(t){var u=t.currentTarget.name,f=i.querySelectorAll('[data-name="'+u+'"]')[0],e=f.dataset.company;dataLayer.push({event:n.LEAD_GEN_CHECKBOX,customerType:r,clickedCompany:e})},ri=function(t){var u=t.currentTarget.dataset.name,f=i.querySelectorAll('[data-name="'+u+'"]')[0],e=f.dataset.company;dataLayer.push({event:n.LEAD_GEN_HIPERLINK,customerType:r,clickedCompany:e})},ui=function(){l=i.getElementsByClassName(n.FORM_LEAD_LIST)[0];nt=l.getElementsByClassName(n.LEAD_CUSTOMER_TYPE)[0];tt=l.getElementsByClassName(n.LEAD_SERVICE_TYPE)[0];it=l.getElementsByClassName(n.LEAD_LOCATION)[0];ut=i.getElementsByClassName(n.CUSTOMER_PARAGRAPH)[0];ft=i.getElementsByClassName(n.SERVICE_PARAGRAPH)[0];et=i.getElementsByClassName(n.LOCATION_PARAGRAPH)[0];g=i.getElementsByClassName(n.FORM_SELECTOR)[0];u=document.getElementsByName(n.LEAD_GEN_CUSTOMER)[0];f=document.getElementsByName(n.LEAD_GEN_SERVICE)[0];e=document.getElementsByName(n.LEAD_GEN_LOCATION)[0];ct=i.getElementsByClassName(n.LEAD_GEN_SELECT_CUSTOMER)[0];lt=i.getElementsByClassName(n.LEAD_GEN_SELECT_SERVICE_TYPE)[0];at=i.getElementsByClassName(n.LEAD_GEN_SELECT_LOCATION)[0];r=u.options[u.selectedIndex];o=f.options[f.selectedIndex];s=e.options[e.selectedIndex];rt=i.getElementsByClassName(n.FORM_SELECT);st=i.getElementsByClassName(n.LEAD_GEN_SELECT_MENU_SERVICE)[0];ht=i.getElementsByClassName(n.LEAD_GEN_SELECT_MENU_LOCATION)[0];y=i.getElementsByClassName(n.TOAST)[0];b=i.getElementsByClassName(n.RESET_BUTTON)[0];d=i.getElementsByClassName(n.INPUT_TEXT_SELECTOR);ot=i.getElementsByClassName(n.SUBMIT_BUTTON)[0];k=i.getElementsByClassName(n.FAQ_BUTTON)[0];w=i.getElementsByClassName(n.LIST_CONTAINER)[0];h=w.getElementsByClassName(n.LEAD_GEN_TABLE_ROW);p=h.length;c=new Array(p);a=new Array(p);v=new Array(p)},fi=function(){for(var u=i.getElementsByClassName(n.FORM_SELECT),t=0;t<u.length;t++)u[t].addEventListener("change",pt);b!==undefined&&coned.utils.addGeneralListeners(b,ni);coned.utils.isPatternLab()&&dt();ct.addEventListener("change",function(){dataLayer.push({event:n.LEAD_GEN_STEP_1,customerType:r})});lt.addEventListener("change",function(){dataLayer.push({event:n.LEAD_GEN_STEP_2,serviceType:o})});at.addEventListener("change",function(){dataLayer.push({event:n.LEAD_GEN_STEP_3,location:s})});ot.addEventListener("click",function(){dataLayer.push({event:n.LEAD_GEN_SUBMIT_STEP,customerType:r})});k&&k.addEventListener("click",function(){dataLayer.push({event:n.LEAD_GEN_FAQ_STEP,customerType:r})})},ei=function(){ui();fi();t=!0};ei()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.LinearStepper=function(){var n={STEPS_CONTENT_WRAPPER:"js-steps-content",STEPS_CONTENT:"js-step-content",LINEAR_STEPPER:"js-linear-stepper",STEP:"js-step",IS_CURRENT:"is-current"},t=!1,i=function(i){var r,u,f,e,o,s=function(){_.each(u,function(t){t.dataset.step===o&&t.classList.add(n.IS_CURRENT)})},h=function(){r=i.getElementsByClassName(n.STEPS_CONTENT_WRAPPER)[0];u=r.getElementsByClassName(n.STEPS_CONTENT);f=i.getElementsByClassName(n.LINEAR_STEPPER)[0];e=f.getElementsByClassName(n.IS_CURRENT)[0];o=e.dataset.step},c=function(){s()},l=function(){h();c();t=!0};l()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.LiveChatCTA=function(){var n={LIVE_CHAT_AVAILABITY_MESSAGE:"js-live-chat-availability-message",LIVE_CHAT_NO_AVAILABLE_MESSAGE:"js-live-chat-no-available",LIVE_CHAT_INFOBOX:"js-informational-box",INIT_EVENT:"init",STOP_EVENT:"stop",HIDDEN_CLASS:"hidden"},t=!1,i=function(i){var s,e,o,h,u,r,c=function(){if(i){var t=i.dataset.serviceUrl,o=i.dataset.waitTime,s=i.dataset.maxCalls,u=i.dataset.chatAlwaysAvailable,e=1;clearInterval(r);u&&u==="true"?(i.parentElement.classList.remove(n.HIDDEN_CLASS),i.disabled=!1,f(!1)):(query.getData(t,l,a),r=setInterval(function(){e<s?(query.getData(t,l,a),e++):(i.parentElement.classList.add(n.HIDDEN_CLASS),f(!0),clearInterval(r))},o))}},l=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_AVAILABLE_LIVE_CHAT,v,function(){}):v(n)},a=function(){i.parentElement.classList.add(n.HIDDEN_CLASS);f(!0)},v=function(t){t&&t.chatAvailable?(i.parentElement.classList.remove(n.HIDDEN_CLASS),s.innerHTML=i.dataset.availableChatMessage,i.disabled=!1,f(!1)):(i.parentElement.classList.add(n.HIDDEN_CLASS),s.innerHTML="",f(!0))},y=function(){clearInterval(r);r=null;i.parentElement.classList.add(n.HIDDEN_CLASS);u&&(e.classList.add(n.HIDDEN_CLASS),o.classList.add(n.HIDDEN_CLASS))},f=function(t){u&&(t?(e.classList.remove(n.HIDDEN_CLASS),o.classList.add(n.HIDDEN_CLASS)):(e.classList.add(n.HIDDEN_CLASS),o.classList.remove(n.HIDDEN_CLASS),i.focus()))},p=function(){s=document.getElementsByClassName(n.LIVE_CHAT_AVAILABITY_MESSAGE)[0];e=document.getElementsByClassName(n.LIVE_CHAT_NO_AVAILABLE_MESSAGE)[0];h=i.dataset.initOnLoad;u=i.dataset.hasMessage&&i.dataset.hasMessage==="true";r=null;u&&(o=i.parentElement.getElementsByClassName(n.LIVE_CHAT_INFOBOX)[0])},w=function(){h&&h==="true"?c():(i.addEventListener(n.INIT_EVENT,c),i.addEventListener(n.STOP_EVENT,y));coned.utils.addGeneralListeners(i,function(){i.disabled=u;clearInterval(r)})},b=function(){p();w();t=!0};b()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.LoadCardTilesIppDashboard=function(){var n={CARD_CLASS:"js-card-selector",CARD_CLASS_LINK_ELEMENT:".card-tile__link-wrapper",CARD_CLASS_CTA_ELEMENT:".card-tile__info-container--type-cta",CARD_CLASS_WRAPPER:"card-tile__link-wrapper",CARD_CLASS_FOCUS:"card-tile--focus",CARD_CLASS_TITLE_ELEMENT:".card-tile__title",CARD_CLASS_DESCRIPTION_ELEMENT:".card-tile__description",ANIMATION_CLASS:"card-tile__zoom--animation"},t=!1,i=function(i){var r,f=function(){for(var t=0,i,n=0;n<r.length;n++)i=r[n],e(i,t),t+=200},e=function(t,i){setTimeout(function(){t.classList.remove(n.ANIMATION_CLASS)},i)},u=function(){for(var t,n=0;n<r.length;n++)t=r[n],o(t);window.addEventListener("resize",u)},o=function(t){var r=t.querySelector(n.CARD_CLASS_TITLE_ELEMENT),i=t.querySelector(n.CARD_CLASS_DESCRIPTION_ELEMENT),u=t.querySelector(n.CARD_CLASS_LINK_ELEMENT),f=t.querySelector(n.CARD_CLASS_CTA_ELEMENT);(i&&u||i&&f)&&(coned.utils.lineClamp(r),coned.utils.lineClamp(i))},s=function(){r=i.getElementsByClassName(n.CARD_CLASS);i.parentElement.dataset.triggerTag&&i.parentElement.dataset.triggerTag!=="true"||dataLayer.push({event:"tipsView"})},h=function(){var t,i;for(f(),u(),t=document.getElementsByClassName(n.CARD_CLASS_WRAPPER),t=t.length>0?t:document.getElementsByClassName(n.CARD_CLASS_GRID_WRAPPER),i=0;i<t.length;i++)t[i].addEventListener("focusin",function(t){t.currentTarget.parentElement.parentElement.classList.add(n.CARD_CLASS_FOCUS)}),t[i].addEventListener("focusout",function(){var t=document.getElementsByClassName(n.CARD_CLASS_FOCUS);t.length>0&&t[0].classList.remove(n.CARD_CLASS_FOCUS)})},c=function(){s();h();t=!0};c()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.LoadCardTiles=function(){var n={CARD_CLASS:"js-card-selector",CARD_CLASS_LINK_ELEMENT:".card-tile__link-wrapper",CARD_CLASS_CTA_ELEMENT:".card-tile__info-container--type-cta",CARD_CLASS_TITLE_ELEMENT:".card-tile__title",CARD_CLASS_DESCRIPTION_ELEMENT:".card-tile__description",CARD_CLASS_WRAPPER:"card-tile__link-wrapper",CARD_CLASS_TILE_WRAPPER:"card-tile-wrapper",CARD_CLASS_GRID_WRAPPER:"card-tile-grid__link-wrapper",CARD_CLASS_FOCUS:"card-tile--focus",CARD_CLASS_MODULE_WRAPPER:"card-module__wrapper-link",CARD_CLASS_MODULE_WRAPPER_FOCUS:"card-module__wrapper-link--focus",ANIMATION_CLASS:"card-tile__zoom--animation",OVERVIEW_BILL_CARD_CONTAINER_ELEMENT:"js-overview-bill-card-container",OVERVIEW_BILL_CARD_PRICE_ELEMENT:"js-overview-bill-card-price",FONT_SIZE:"font-size",SELECTOR_CE_LINE_CLAMP:".js-ce-line-clamp"},t=!1,i=function(i){var u,f,e,r,o,s=function(){for(var t=0,i,n=0;n<u.length;n++)i=u[n],l(i,t),t+=200},h=function(){for(var t,n=0;n<u.length;n++)t=u[n],c(t)},c=function(t){var u=t.querySelector(n.CARD_CLASS_TITLE_ELEMENT),i=t.querySelector(n.CARD_CLASS_DESCRIPTION_ELEMENT),f=t.querySelector(n.CARD_CLASS_LINK_ELEMENT),e=t.querySelector(n.CARD_CLASS_CTA_ELEMENT),r=t.querySelectorAll(n.SELECTOR_CE_LINE_CLAMP);(i&&f||i&&e)&&(coned.utils.lineClamp(u),coned.utils.lineClamp(i));r.length!=0&&Array.from(r).forEach(function(n){coned.utils.lineClamp(n)})},l=function(t,i){setTimeout(function(){t.classList.remove(n.ANIMATION_CLASS)},i)},a=function(){u=i.getElementsByClassName(n.CARD_CLASS);f=i.getElementsByClassName(n.CARD_CLASS_MODULE_WRAPPER);e=i.getElementsByClassName(n.OVERVIEW_BILL_CARD_CONTAINER_ELEMENT)[0];r=i.getElementsByClassName(n.OVERVIEW_BILL_CARD_PRICE_ELEMENT)[0];r&&(o=parseInt(window.getComputedStyle(r,null).getPropertyValue(n.FONT_SIZE)))},v=function(){var t,i,l,c,u;for(s(),h(),e&&r&&(coned.utils.updateFontToFitAncestor(r,e,o),coned.utils.updateFontResizeThrottler(coned.utils.updateFontToFitAncestor,r,e)),t=document.getElementsByClassName(n.CARD_CLASS_WRAPPER),t=t.length>0?t:document.getElementsByClassName(n.CARD_CLASS_GRID_WRAPPER),i=0;i<t.length;i++)t[i].addEventListener("focusin",function(t){t.currentTarget.parentElement.parentElement.classList.add(n.CARD_CLASS_FOCUS)}),t[i].addEventListener("focusout",function(){var t=document.getElementsByClassName(n.CARD_CLASS_FOCUS);t.length>0&&t[0].classList.remove(n.CARD_CLASS_FOCUS)});for(l=document.getElementsByClassName(n.CARD_CLASS_TILE_WRAPPER),c=0;c<l.length;c++)l[c].addEventListener("focus",function(t){var i=document.getElementsByClassName(n.CARD_CLASS_FOCUS);i.length>0&&i[0].classList.remove(n.CARD_CLASS_FOCUS);t.currentTarget.classList.add(n.CARD_CLASS_FOCUS)});for(u=0;u<f.length;u++)f[u].addEventListener("focusin",function(){query.addClass(event.target.parentElement,n.CARD_CLASS_MODULE_WRAPPER_FOCUS)}),f[u].addEventListener("focusout",function(){query.removeClass(event.target.parentElement,n.CARD_CLASS_MODULE_WRAPPER_FOCUS)})},y=function(){a();v();t=!0};y()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.LoadEnergyInsightsOpower=function(){var n={TIP_CARDS_CONTAINER:"js-tips-cards",TIP_CARDS_DATA:"js-tip-cards-data",BILL_ANALYSIS_CONTAINER:"js-bill-analysis",BILL_ANALYSIS_DATA:"js-bill-analysis-data",BILL_COMPARISON_CONTAINER:"js-bill-comparison",BILL_COMPARISON_DATA:"js-bill-comparison-data",ENERGY_USAGE_CONTAINER:"js-energy-usage",ENERGY_USAGE_DATA:"js-energy-usage-data",DIV_LOADING_CLASS:"js-div-loading",DIV_LOADING_HIDDEN_CLASS:"form-loading--hidden",ENERGY_USAGE_CLASS:"energy-usage",OVERVIEW_BILL_ANALYSIS_CLASS:"overview-bill-analysis",ERROR_PARAGRAPH_CLASS:"js-service-error",ERROR_MESSAGE:"js-error-message",HIDDEN_CLASS:"hidden",GREEN_DATA_CONTAINER:"js-green-data-container",DATA_BROWSER_CONTAINER:"js-data-browser-container",DATA_BROWSER_CONTAINER_BILLING:"js-data-browser-container-billing",DATA_BROWSER_CONTAINER_USAGE:"js-data-browser-container-usage",REAL_TIME_CONTAINER:"js-real-time-container",REAL_TIME_INFORMATIONAL_MESSAGE:"js-real-time-informational-message",ENERGY_SNAPSHOT_CONTAINER:"js-energy-snapshot-container",SIMILAR_HOMES_CONTAINER:"js-similar-homes-container",HOME_ENERGY_CONTAINER:"js-home-energy-container",POPUP:"js-popup",REMOVE_ACCOUNT_MODULE:"js-remove-account",UPLIGHT_WIDGET:"js-ff-widget",UPLIGHT_WIDGET_ERROR_MESSAGE:"js-uplight-widget-not-available",MODULE_CLASS:"js-module",LOAD_ENERGY_INSIGHTS_ERROR:"js-load-energy-insights-error",DATA_BROWSER_WIDGET_BILLING_TAG:'<opower-widget-data-browser opower-instance="billing"><\/opower-widget-data-browser>',DATA_BROWSER_WIDGET_USAGE_TAG:'<opower-widget-data-browser opower-instance="usage"><\/opower-widget-data-browser>',DATA_BROWSER_WIDGET_SIMILAR_HOMES_TAG:'<opower-widget-data-browser opower-instance="similar-homes"><\/opower-widget-data-browser>',NEIGHBOR_COMPARISON_WIDGET_TAG:"<opower-widget-neighbor-comparison><\/opower-widget-neighbor-comparison>",REAL_TIME_WIDGET_TAG:'<opower-widget-real-time-ami class="coned-tabs__widget--zero-z-index"><\/opower-widget-real-time-ami>',GREEN_BUTTON_WIDGET_TAG:"<opower-widget-usage-export><\/opower-widget-usage-export>",SCRIPT_ELEMENT:"script",HOME_ENERGY_BREAKDOWN_WIDGET_TAGS:'<opower-widget-survey opower-instance="widget-survey-splash"><\/opower-widget-survey> <opower-widget-disaggregation opower-instance="widget-disaggregation"><\/opower-widget-disaggregation>',HOME_ENERGY_BREAKDOWN_WIDGET_V2_TAGS:'<opower-widget-survey opower-instance="{{heb-widget-survey-v2-instance}}"><\/opower-widget-survey> <opower-widget-usage-categories opower-instance="{{heb-widget-usage-categories-v2-instance}}"><\/opower-widget-usage-categories>',OPOWER_CUSTOMER_ID:"js-opower-customer-id",SERVICE_ERROR:'<p class="service-unavailable-error">Service Not Available<\/p>',OPOWER_UNAUTHORIZED_EVENT:"opower:unauthorized",OPOWER_START_EVENT:"opower:start",ENERGY_USAGE_LOADED_EVENT:"energy-usage-loaded",STATE_URL_PARAMETER_KEY:"&state=",OPOWER_VERTICAL_BAR_URL_PARAMETER_VALUE:"opower|",REDIRECT_URL_PARAMETER_KEY:"&redirect_uri="},t=!1,i=function(i){var o,it,s,yt,v,pt,f,h,c,e,rt,y,p,l,wt,w,b,ut,k,bt,g,ft,et,ot,st,d,ht,ct,nt,kt,lt,dt,at,vt,gt,tt,ni,ti,ui=function(){var n=i.dataset.serviceUrl,t;if(!n){r();return}t={async:1,opowerData:i.dataset.opowerData};query.getData(n,fi,r,t)},fi=function(n){coned.utils.isPatternLab()?coned.utils.isOru()?i.dataset.oruPatternlabBillingPage?query.getData(coned.plConstants.GET_ORU_ENERGY_INSIGHTS_DATA_BILLING,u,r):i.dataset.oruPatternlabCommercialPage?query.getData(coned.plConstants.GET_ORU_ENERGY_INSIGHTS_DATA_BILLING_COMMERCIAL,u,r):i.dataset.oruPatternlabBillingShrPage?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_BILLING_SHR,u,r):i.dataset.oruPatternlabEnergyUsageResidentialPage?query.getData(coned.plConstants.GET_ORU_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RESIDENTIAL,u,r):i.dataset.oruPatternlabEnergyUsageIppShrSppResidentialPage?query.getData(coned.plConstants.GET_ORU_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_IPP_SHR_SPP_RESIDENTIAL,u,r):i.dataset.oruPatternlabEnergyUsageCommercialPage?query.getData(coned.plConstants.GET_ORU_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_COMMERCIAL,u,r):i.dataset.oruPatternlabEnergyUsageRtpPage?query.getData(coned.plConstants.GET_ORU_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RTP,u,r):query.getData(coned.plConstants.GET_ORU_ENERGY_INSIGHTS_DATA,u,r):i.dataset.patternlabUsage?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_USAGE,u,r):i.dataset.patternlabEscoChart?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_CHART_DATA_ESCO,u,r):i.dataset.patternlabNonEscoChart?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_CHART_DATA_NON_ESCO,u,r):i.dataset.patternlabBillingPage?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_BILLING,u,r):i.dataset.patternlabBillingCommercialPage?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_BILLING_COMMERCIAL,u,r):i.dataset.patternlabBillingIppSppPage?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_BILLING_IPP_SPP,u,r):i.dataset.patternlabBillingIppRate2Page?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_BILLING_IPP_RATE_2,u,r):i.dataset.patternlabBillingIppRate4Page?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_BILLING_IPP_RATE_4,u,r):i.dataset.patternlabBillingIppRate5Page?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_BILLING_IPP_RATE_5,u,r):i.dataset.patternlabBillingIppRate6Page?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_BILLING_IPP_RATE_6,u,r):i.dataset.patternlabBillingIppRate7Page?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_BILLING_IPP_RATE_7,u,r):i.dataset.patternlabBillingShrPage?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_BILLING_SHR,u,r):i.dataset.patternlabEnergyUsageResidentialPage?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RESIDENTIAL,u,r):i.dataset.patternlabEnergyUsageIppShrSppResidentialPage?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_IPP_SHR_SPP_RESIDENTIAL,u,r):i.dataset.patternlabEnergyUsageRate2ResidentialPage?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RATE_2_RESIDENTIAL,u,r):i.dataset.patternlabEnergyUsageRate4ResidentialPage?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RATE_4_RESIDENTIAL,u,r):i.dataset.patternlabEnergyUsageRate5ResidentialPage?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RATE_5_RESIDENTIAL,u,r):i.dataset.patternlabEnergyUsageRate6ResidentialPage?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RATE_6_RESIDENTIAL,u,r):i.dataset.patternlabEnergyUsageRatePilotsCommercialPage?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_RATE_PILOTS_COMMERCIAL,u,r):i.dataset.patternlabEnergyUsageNypaPage?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_NYPA,u,r):i.dataset.patternlabEnergyUsageCommercialPage?query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA_ENERGY_USAGE_COMMERCIAL,u,r):query.getData(coned.plConstants.GET_ENERGY_INSIGHTS_DATA,u,r):u(n)},r=function(t){et&&et.classList.add(n.DIV_LOADING_HIDDEN_CLASS);ot&&ot.classList.add(n.DIV_LOADING_HIDDEN_CLASS);st&&st.classList.add(n.DIV_LOADING_HIDDEN_CLASS);ri();b&&b.classList.remove(n.HIDDEN_CLASS);ut&&(ut.innerHTML=t?t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE:coned.constants.ERROR_MESSAGE);b&&b.focus();k&&k.classList.remove(n.HIDDEN_CLASS);bt.innerHTML=t?t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE:coned.constants.ERROR_MESSAGE;k&&k.focus();wi(t)},a=function(){query.hasClass(i,n.LOAD_ENERGY_INSIGHTS_ERROR)||(query.addClass(i,n.LOAD_ENERGY_INSIGHTS_ERROR),at=!0,ii())},u=function(t){var r=document.createElement(n.SCRIPT_ELEMENT),u=i.dataset.scriptSrcOpower;coned.utils.isIE()||(u?(r.src=u,document.head.appendChild(r)):a());o!=[]&&si(t);s&&ei(t);f&&hi(t);v&&oi(t)},ei=function(t){var r=new DOMParser,i;i=r.parseFromString(t,"text/html");yt=i.getElementsByClassName(n.BILL_ANALYSIS_DATA)[0];s.innerHTML=yt.innerHTML;coned.utils.initializeModules(s)},oi=function(t){var r=new DOMParser,i;i=r.parseFromString(t,"text/html");pt=i.getElementsByClassName(n.BILL_COMPARISON_DATA)[0];v.innerHTML=pt.innerHTML;coned.utils.initializeModules(v)},si=function(t){var u=new DOMParser,r,i;if(r=u.parseFromString(t,"text/html"),it=r.getElementsByClassName(n.TIP_CARDS_DATA)[0],it!==undefined)for(i=0;i<o.length;i++)o[i].innerHTML=it.innerHTML,coned.utils.initializeModules(o[i]);else ri()},hi=function(t){var u=new DOMParser,r;r=u.parseFromString(t,"text/html");wt=r.getElementsByClassName(n.ENERGY_USAGE_DATA)[0];f.innerHTML=wt.innerHTML;ht=document.getElementsByClassName(n.POPUP)[0];ct=document.getElementsByClassName(n.REMOVE_ACCOUNT_MODULE)[0];w=f.getElementsByClassName(n.GREEN_DATA_CONTAINER)[0];h=f.getElementsByClassName(n.DATA_BROWSER_CONTAINER_BILLING)[0];c=f.getElementsByClassName(n.DATA_BROWSER_CONTAINER_USAGE)[0];e=f.getElementsByClassName(n.REAL_TIME_CONTAINER)[0];rt=e&&e.getElementsByClassName(n.REAL_TIME_INFORMATIONAL_MESSAGE)[0];y=f.getElementsByClassName(n.ENERGY_SNAPSHOT_CONTAINER)[0];p=f.getElementsByClassName(n.SIMILAR_HOMES_CONTAINER)[0];l=f.getElementsByClassName(n.HOME_ENERGY_CONTAINER)[0];coned.utils.initializeModules(f);c&&(c.innerHTML=n.DATA_BROWSER_WIDGET_USAGE_TAG);h&&(h.innerHTML=n.DATA_BROWSER_WIDGET_BILLING_TAG);e&&(rt&&query.removeClass(rt,n.HIDDEN_CLASS),e.innerHTML+=n.REAL_TIME_WIDGET_TAG);y&&(y.innerHTML=n.NEIGHBOR_COMPARISON_WIDGET_TAG);p&&(p.innerHTML=n.DATA_BROWSER_WIDGET_SIMILAR_HOMES_TAG);w&&(w.innerHTML=n.GREEN_BUTTON_WIDGET_TAG);l&&(l.innerHTML=gt?n.HOME_ENERGY_BREAKDOWN_WIDGET_V2_TAGS.replace("{{heb-widget-survey-v2-instance}}",l.dataset.hebWidgetSurveyV2Instance).replace("{{heb-widget-usage-categories-v2-instance}}",l.dataset.hebWidgetUsageCategoriesV2Instance):n.HOME_ENERGY_BREAKDOWN_WIDGET_TAGS);ht&&ct&&(ht.classList.add(n.MODULE_CLASS),ct.classList.add(n.MODULE_CLASS),coned.utils.initializeModules(document));coned.utils.triggerEvent(i,n.ENERGY_USAGE_LOADED_EVENT)},ci=function(){var t=document.createElement(n.SCRIPT_ELEMENT),r=i.dataset.scriptSrcOpower;r?(t.src=r,document.head.appendChild(t)):a();h=f.getElementsByClassName(n.DATA_BROWSER_CONTAINER_BILLING)[0];c=f.getElementsByClassName(n.DATA_BROWSER_CONTAINER_USAGE)[0];e=f.getElementsByClassName(n.REAL_TIME_CONTAINER)[0];c&&(c.innerHTML=n.DATA_BROWSER_WIDGET_USAGE_TAG);h&&(h.innerHTML=n.DATA_BROWSER_WIDGET_BILLING_TAG);e&&(e.innerHTML=n.REAL_TIME_WIDGET_TAG);ni?query.removeClass(kt,n.HIDDEN_CLASS):query.removeClass(nt,n.HIDDEN_CLASS);coned.utils.triggerEvent(i,n.ENERGY_USAGE_LOADED_EVENT)},ii=function(){at&&vt&&query.hasClass(i,n.LOAD_ENERGY_INSIGHTS_ERROR)&&(h&&(h.innerHTML=n.SERVICE_ERROR),c&&(c.innerHTML=n.SERVICE_ERROR),e&&(e.innerHTML=n.SERVICE_ERROR),y&&(y.innerHTML=n.SERVICE_ERROR),p&&(p.innerHTML=n.SERVICE_ERROR),w&&(w.innerHTML=n.SERVICE_ERROR),l&&(l.innerHTML=n.SERVICE_ERROR))},li=function(){var n=i.dataset.tokenServiceUrlOpower;if(!n){a();return}query.getData(n,ai,vi)},ai=function(n){var t=i.dataset.redirectUrlOpower,r;if(!t){a();return}n?(r={accessToken:n},dt(null,r)):tt||query.getData(t,yi,pi)},vi=function(){a()},yi=function(t){t?(t+=n.REDIRECT_URL_PARAMETER_KEY+encodeURIComponent(window.location.protocol+"//"+window.location.host),t+=n.STATE_URL_PARAMETER_KEY+encodeURIComponent(n.OPOWER_VERTICAL_BAR_URL_PARAMETER_VALUE+window.location.pathname+window.location.search),window.location.href=t):a()},pi=function(){a()},ri=function(){for(var t=0;t<d.length;t++)d[t]&&d[t].classList.add(n.DIV_LOADING_HIDDEN_CLASS)},wi=function(t){for(var i=0;i<g.length;i++)g[i].classList.remove(n.HIDDEN_CLASS),ft[i].innerHTML=t?t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE:coned.constants.ERROR_MESSAGE},bi=function(){o=document.getElementsByClassName(n.TIP_CARDS_CONTAINER);s=document.getElementsByClassName(n.BILL_ANALYSIS_CONTAINER)[0];f=document.getElementsByClassName(n.ENERGY_USAGE_CONTAINER)[0];v=document.getElementsByClassName(n.BILL_COMPARISON_CONTAINER)[0];s&&(b=s.getElementsByClassName(n.ERROR_PARAGRAPH_CLASS)[0],ut=s.getElementsByClassName(n.ERROR_MESSAGE)[0],et=s.getElementsByClassName(n.DIV_LOADING_CLASS)[0]);f&&(k=f.getElementsByClassName(n.ERROR_PARAGRAPH_CLASS)[0],bt=f.getElementsByClassName(n.ERROR_MESSAGE)[0],ot=f.getElementsByClassName(n.DIV_LOADING_CLASS)[0]);v&&(st=v.getElementsByClassName(n.DIV_LOADING_CLASS)[0]);d=[];g=[];ft=[];for(var t=0;t<o.length;t++)d.push(o[t].getElementsByClassName(n.DIV_LOADING_CLASS)[0]),g.push(o[t].getElementsByClassName(n.ERROR_PARAGRAPH_CLASS)[0]),ft.push(o[t].getElementsByClassName(n.ERROR_MESSAGE)[0]);at=!1;vt=!1;gt=i.dataset.useHomeEnergyV2;tt=i.dataset.mobileApp;tt&&(nt=document.getElementsByClassName(n.UPLIGHT_WIDGET)[0],kt=document.getElementsByClassName(n.UPLIGHT_WIDGET_ERROR_MESSAGE)[0],ti=coned.utils.isIOS(),ni=nt&&ti&&nt.dataset.widgetHideIos)},ki=function(){i.addEventListener(n.ENERGY_USAGE_LOADED_EVENT,function(){vt=!0;ii()});tt?ci():ui();coned.utils.isPatternLab()||coned.utils.isIE()||(window.addEventListener(n.OPOWER_UNAUTHORIZED_EVENT,function(n){dt=n.detail.authorize;n.preventDefault();li()}),window.addEventListener(n.OPOWER_START_EVENT,function(t){lt=document.getElementsByClassName(n.OPOWER_CUSTOMER_ID)[0];lt&&(window.opowerApi=t.detail,window.opowerApi.setEntityIds([lt.value]),window.opowerApi.start())}))},di=function(){bi();ki();t=!0};di()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.LoadHero=function(){var n={JS_ITEM_SELECTOR:"js-fadein-selector",JS_IMAGE_SELECTOR:"js-fadein-image-selector",JS_EVENT_MODE_SELECTOR:"js-event-mode",JS_GREETING_TITLE:"js-greeting-title",JS_GREETING_SUBTITLE:"js-greeting-subtitle",ANIMATION_CLASS:"animated-hero--animation-item",ANIMATION_IMAGE_CLASS:"animated-hero--animation-image",SCENARIO_DEFAULT:"1",SCENARIO_ARREARS:"2",SCENARIO_GENERIC:"3"},t=!1,i=function(i){var s,r,f,u,h,y,e=!1,o=!1,c=function(){var n=i.parentElement.parentElement;coned.utils.isMobile()?e||(n.insertBefore(i.parentElement,n.firstChild),o=!1,e=!0):o||(n.insertBefore(i.parentElement,n.lastChild),o=!0,e=!1)},l=function(){var t="";switch(u){case n.SCENARIO_DEFAULT:t="default";break;case n.SCENARIO_ARREAR:t="arrear";break;case n.SCENARIO_GENERIC:t="generic"}dataLayer.push({HomeScenario:t})},p=function(){if(!h){var t=i.dataset.serviceUrl,n;n={ScId:i.dataset.scid};n=JSON.stringify(n);query.postData(t,w,a,n,!0)}},w=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_ACCOUNT_HOMEPAGE_SCENARIO,v,a):v(n)},a=function(){},v=function(t){var r=i.getElementsByClassName(n.JS_GREETING_SUBTITLE)[0];r.innerHTML=t.Message;u=t.Scenario;l()},b=function(){s=i.getElementsByClassName(n.JS_ITEM_SELECTOR);r=document.getElementsByClassName(n.JS_IMAGE_SELECTOR);f=i.getElementsByClassName(n.JS_GREETING_TITLE)[0];u=i.dataset.scenario;h=i.dataset.maintenance==="true"?!0:!1},k=function(){var e=300,t=0;r&&r.length&&setTimeout(function(){query.removeClass(r,n.ANIMATION_IMAGE_CLASS)},t);_.each(s,function(i){setTimeout(function(){query.removeClass(i,n.ANIMATION_CLASS)},t+e);t+=e});y&&(window.addEventListener("resize",c),c());f&&coned.utils.lineClamp(f);u&&l();i.addEventListener("account-change",p)},d=function(){b();k();t=!0};d()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.LoadMoreBillPayment=function(){var n={SHOW_MORE_CLASS:"js-show-more",ITEM_CLASS:"js-item",HIDDEN_CLASS:"hidden",BILL_LINK_SELECTOR:"js-bill-link",PAYMENT_ITEM_SELECTOR:"js-payment-item",BILL_ITEM_SELECTOR:"js-bill-item",PAYMENT_HISTORY_WRAPPER_SELECTOR:"js-billing-payment-history-wrapper",DATA_CELL:"js-data-cell",DATA_GRID_MODULE:"js-data-grid",LOAD_MORE:"js-load-more-selector",SHOW_MORE_GRID_FOCUS_EVENT:"show-more-grid-focus"},t=!1,i=function(i){var f,e,o,s,u,h,r,c=function(t){t.stopPropagation();t.preventDefault();var e=[],s=i.dataset.filterCriteria;o=i.getElementsByClassName(s);r=s===n.ITEM_CLASS?h:u;_.each(o,function(t){query.hasClass(t,n.HIDDEN_CLASS)&&e.push(t)});e.length<=r&&query.addClass(f,n.HIDDEN_CLASS);l(e,s)},l=function(t){_.each(t,function(t,i){var u;i<r&&(t.classList.remove(n.HIDDEN_CLASS),i===0&&(u=t.getElementsByClassName(n.DATA_CELL)[0],u&&(u.focus(),coned.utils.triggerEvent(s,n.SHOW_MORE_GRID_FOCUS_EVENT,u))))})},a=function(){f=i.getElementsByClassName(n.SHOW_MORE_CLASS)[0];e=i.getElementsByClassName(n.ITEM_CLASS);s=document.getElementsByClassName(n.LOAD_MORE)[0];u=parseInt(i.dataset.loadMore,10);h=u*2;r=u},v=function(){e&&coned.utils.addGeneralListeners(f,c)},y=function(){a();v();t=!0};y()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.LoadMore=function(){var n={SHOW_MORE_CLASS:"js-show-more",ITEM_CLASS:"js-item",HIDDEN_CLASS:"hidden"},t=!1,i=function(i,r){var o,u,e,s,f,h,l=function(t){t.preventDefault();s=!0;c(f,f+h);f=f+h;f>=u.length&&query.addClass(o,n.HIDDEN_CLASS)},c=function(f,o){for(var h=!1,c;f<o&&f<u.length;f++)query.removeClass(u[f],n.HIDDEN_CLASS),r&&!h&&t&&(e=u[f].querySelector(coned.constants.FOCUSABLE_ELEMENTS_QUERY),e?(e.focus(),h=!0):f===u.length-1&&coned.utils.focusFirstFocusableElementNextSibling(r)),s&&(!h&&t&&(e=u[f].children[0],e?(e.focus(),coned.utils.triggerEvent(i,"show-more-grid-focus",e),h=!0):f===u.length-1&&(c=u[f-1].children[0],c.focus(),coned.utils.triggerEvent(i,"show-more-grid-focus",c))),s=!1)},a=function(){o=i.getElementsByClassName(n.SHOW_MORE_CLASS)[0];u=i.getElementsByClassName(n.ITEM_CLASS);f=parseInt(i.dataset.initialLoad);h=parseInt(i.dataset.loadMore)},v=function(){u&&(c(0,f),o&&f<u.length&&(query.removeClass(o,n.HIDDEN_CLASS),coned.utils.addGeneralListeners(o,l)))},y=function(){a();v();t=!0};y()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.LoadSurveyOpower=function(){var n={SURVEY_CONTAINER:"js-survey-container",MODULE_CLASS:"js-module",LOAD_ENERGY_INSIGHTS_ERROR:"js-load-energy-insights-error",SURVEY_FULL_WIDGET_TAG:'<opower-widget-survey opower-instance="{{widget-survey-full-instance}}"><\/opower-widget-survey>',SCRIPT_ELEMENT:"script",OPOWER_CUSTOMER_ID:"js-opower-customer-id",SERVICE_ERROR:'<p class="service-unavailable-error">Service Not Available<\/p>',OPOWER_UNAUTHORIZED_EVENT:"opower:unauthorized",OPOWER_START_EVENT:"opower:start",ENERGY_USAGE_LOADED_EVENT:"energy-usage-loaded",STATE_URL_PARAMETER_KEY:"&state=",OPOWER_VERTICAL_BAR_URL_PARAMETER_VALUE:"opower|",REDIRECT_URL_PARAMETER_KEY:"&redirect_uri="},t=!1,i=function(i){var u,f,e,r=function(){query.hasClass(i,n.LOAD_ENERGY_INSIGHTS_ERROR)||(query.addClass(i,n.LOAD_ENERGY_INSIGHTS_ERROR),s())},o=function(){var t=document.createElement(n.SCRIPT_ELEMENT),f=i.dataset.scriptSrcOpower;coned.utils.isIE()||(f?(t.src=f,document.head.appendChild(t)):r());u&&!query.hasClass(i,n.LOAD_ENERGY_INSIGHTS_ERROR)&&(u.innerHTML=n.SURVEY_FULL_WIDGET_TAG.replace("{{widget-survey-full-instance}}",i.dataset.widgetSurveyFullInstance))},s=function(){u&&(u.innerHTML=n.SERVICE_ERROR)},h=function(){var n=i.dataset.tokenServiceUrlOpower;if(!n){r();return}query.getData(n,c,l)},c=function(n){var t=i.dataset.redirectUrlOpower,u;if(!t){r();return}n?(u={accessToken:n},e(null,u)):query.getData(t,a,v)},l=function(){r()},a=function(t){t?(t+=n.REDIRECT_URL_PARAMETER_KEY+encodeURIComponent(window.location.protocol+"//"+window.location.host),t+=n.STATE_URL_PARAMETER_KEY+encodeURIComponent(n.OPOWER_VERTICAL_BAR_URL_PARAMETER_VALUE+window.location.pathname+window.location.search),window.location.href=t):r()},v=function(){r()},y=function(){u=i.getElementsByClassName(n.SURVEY_CONTAINER)[0]},p=function(){o();coned.utils.isPatternLab()||coned.utils.isIE()||(window.addEventListener(n.OPOWER_UNAUTHORIZED_EVENT,function(n){e=n.detail.authorize;n.preventDefault();h()}),window.addEventListener(n.OPOWER_START_EVENT,function(t){f=document.getElementsByClassName(n.OPOWER_CUSTOMER_ID)[0];f&&(window.opowerApi=t.detail,window.opowerApi.setEntityIds([f.value]),window.opowerApi.start())}))},w=function(){y();p();t=!0};w()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.LoadingAnimation=function(){var n={SLICE_RIGHT_SELECTOR:"js-slice-right-selector",SLICE_LEFT_SELECTOR:"js-slice-left-selector",SLICE_RIGHT_WHITE_CLASS:"loading-animation__slice-right--white",SLICE_LEFT_WHITE_CLASS:"loading-animation__slice-left--white",ANIMATION_PLAY:"js-animation-play"},t=!1,i=function(i){var r,u,f,e=20,o=function(n,t){var i="-webkit-transform rotate("+t+"deg);-moz-transform rotate("+t+"deg);-ms-transform: rotate("+t+"deg);-o-transform: rotate("+t+"deg);transform: rotate("+t+"deg);zoom: 1;";n.setAttribute("style",i)},h=function(n,t){var f=180,e=0,i=n/t*360;i<=180?f=i:e=i-180;o(r,f);o(u,e)},s=function(t){function s(){e==100?query.hasClass(i,n.ANIMATION_PLAY)?(e=0,r.classList.toggle(n.SLICE_RIGHT_WHITE_CLASS),u.classList.toggle(n.SLICE_LEFT_WHITE_CLASS)):(clearInterval(o),u.removeAttribute("style"),r.removeAttribute("style"),i.dataset.noPageDisabled&&i.dataset.noPageDisabled==="true"||f.classList.remove(coned.constants.PAGE_DISABLED)):(e++,h(e,100))}var e=0,o=setInterval(s,t);i.dataset.noPageDisabled&&i.dataset.noPageDisabled==="true"||f.classList.add(coned.constants.PAGE_DISABLED)},c=function(){r=i.getElementsByClassName(n.SLICE_RIGHT_SELECTOR)[0];u=i.getElementsByClassName(n.SLICE_LEFT_SELECTOR)[0];f=document.getElementsByClassName(coned.constants.PAGE_CONTENT_CLASS)[0]},l=function(){query.hasClass(i,n.ANIMATION_PLAY)&&setTimeout(function(){s(e,!0)},300);i.addEventListener("start-animation",function(){i.classList.add(n.ANIMATION_PLAY);setTimeout(function(){s(e,!0)},300)});i.addEventListener("stop-animation",function(){i.classList.remove(n.ANIMATION_PLAY)})},a=function(){c();l();t=!0};a()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.LoadingPageAnimation=function(){var i={ANIMATION_SUBMIT_MODULE:"js-submit-progress-animation"},n=!1,t=function(t){var u,r=function(){},f=function(){new coned.components.SubmitAnimation(u,r,r,r,!1,!0)},e=function(){u=t.getElementsByClassName(i.ANIMATION_SUBMIT_MODULE)[0]},o=function(){e();f();n=!0};o()};return t.prototype.isLoaded=function(){return n},t}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.LoginFormComponent=function(){var n={OPEN_BUTTON_SELECTOR:"js-nav-login",OPEN_BUTTON_MOBILE_SELECTOR:"js-action-login",OPEN_MOBILE_SELECTOR:"js-mobile-login-open",CLOSE_BUTTON_SELECTOR:"js-close-login",LOGIN_ANIMATION_SELECTOR:"js-login-animator",ANIMATOR_CLASS:"login--animator",LOGIN_ACTIVE_CLASS:"login--active",LOGIN_DROPDOWN:".js-login-dropdown",LOGIN_DROPDOWN_SELECTOR:"js-login-dropdown-selector",LOGIN_DROPDOWN_NEW_DEVICE_FORM:".js-login-dropdown-new-device-form",LOGIN_DROPDOWN_NEW_DEVICE_FORM_SELECTOR:"js-login-dropdown-new-device-form-selector",DROPDOWN_LOGIN_CONTAINER:"js-dropdown-login-container",LOGIN_BUTTON_SELECTOR:"js-login-button-selector",ARROW_LOGIN:"js-arrow-login-in",ARROW_MODIFIER:"primary-nav-item__arrow--active",LOGIN_DROPDOWN_HEADER_SELECTOR:"js-login-dropdown-header-selector",HIDDEN_DESKTOP_CLASS:"login__header-container--hidden-desktop",ACTIVE_LOGIN:"login--active",SUBMIT_CONTAINER_REVERSED:"submit-button__container--bg-container-reversed",SUBMIT_BUTTON_CONTAINER_SELECTOR:"js-submit-container",DROPDOWN_VALUE:"dropdown",NAV_SEARCH_SELECTOR:"js-nav-search",LOGIN_LIST_CONTAINER:"login__list--dropdown",LOGIN_FORM:".js-login-form",LOGIN_FORM_SELECTOR:"js-login-form-selector",LOGIN_NEW_DEVICE_FORM:".js-login-new-device-form",LOGIN_NEW_DEVICE_FORM_SELECTOR:"js-login-new-device-form-selector",LOGIN_INPUT_EMAIL:"LoginEmail",LOGIN_INPUT_PASSWORD:"LoginPassword",LOGIN_INPUT_REMEMBER_ME:"LoginRememberMe",LOGIN_INPUT_MFA:"LoginMFACode",SUBMIT_BUTTON:"js-login-submit-button",NEW_DEVICE_SUBMIT_BUTTON:"js-device-submit-button",SUBMIT_ANIMATION_BUTTON:"js-submit-progress-animation",HIDDEN_CLASS:"hidden",FORM_IGNORE_VALIDATION:":hidden",INPUT_TEXT_SELECTOR:"js-coned-input",INPUT_NUMBER:"js-number-input",INPUT_EMAIL:"js-email-input",INPUT_PASSWORD:"js-password-input",INPUT_DEVICE_CODE:"js-device-code-input",INPUT_FILLED_CLASS:"coned-input--filled",SHOW_PASSWORD_BUTTON:"js-show-password",NEW_DEVICE_ERROR:"js-login-new-device-error-msg",LOGIN_FORM_ERROR:"js-login-error-msg",NEW_DEVICE_INTRO_MSG:"js-new-device-intro",NEW_DEVICE_INPUT_LABEL:"js-device-code-label",CHECKBOX_LABEL:"coned-checkbox__label",CHECKBOX_LABEL_CHECKED:"coned-checkbox--checked",REMEMBER_ME_COOKIE_NAME:"rememberme",RETURN_URL_PARAMETER_NAME:"returnUrl",FROM_URI_PARAMETER_NAME:"fromURI",RELAY_STATE_PARAMETER_NAME:"RelayState",HIDDEN:"hidden",ARIA_EXPANDED:"aria-expanded",ARIA_MODAL:"aria-modal",ARIA_LABEL:"aria-label",ROLE:"role",DIALOG:"dialog",LOGIN_SUCCESS_TAG:"Login.Success"},t=!1,i=function(i){var p,w,ut,d,f,e,kt,ft,b,s,g,et,lt,dt,gt,ni,v,c,ti,at,ot,st,y,ht,ii,ri,ui,fi,ei,oi,h,u,nt,tt,it,si,rt,vt,o,yt,r,pt,l,hi=function(){dataLayer.push({event:n.LOGIN_SUCCESS_TAG})},gi=function(t,i,r){r?setTimeout(function(){t.classList.remove(n.ANIMATOR_CLASS)},i):setTimeout(function(){t.classList.add(n.ANIMATOR_CLASS)},i)},ci=function(t){t.preventDefault();var f=window.innerHeight,r=100;for(TweenMax.to(i,.4,{height:f}),l=0;l<d.length;l++)gi(d[l],r,!0),r+=400;u.classList.add(n.LOGIN_ACTIVE_CLASS);o.setAttribute(n.ARIA_EXPANDED,!0);setTimeout(function(){b.focus()},500);t.target.focusBack=!0},wt=function(){for(TweenMax.to(i,.3,{height:0,borderBottom:0}),tt.classList.contains(n.HIDDEN)||tt.classList.add(n.HIDDEN),l=0;l<d.length;l++)d[l].classList.add(n.ANIMATOR_CLASS);u.classList.remove(n.LOGIN_ACTIVE_CLASS);o.setAttribute(n.ARIA_EXPANDED,!1);setTimeout(function(){p&&p.focusBack?(p.focus(),p.focusBack=!1):w&&w.focusBack&&(w.focus(),w.focusBack=!1)},500)},nr=function(t){t?o.setAttribute(n.ARIA_EXPANDED,!0):o.setAttribute(n.ARIA_EXPANDED,!1)},li=function(t){t?(u.setAttribute(n.ROLE,n.DIALOG),u.setAttribute(n.ARIA_MODAL,!0)):(u.removeAttribute(n.ROLE),u.removeAttribute(n.ARIA_MODAL))},tr=function(){var r=coned.utils.isMobile(),o=i.style.height!==""&&i.style.height!=="0px",t;u&&li(r);nr(o);o&&(t=window.innerHeight-3,r?TweenMax.to(i,.1,{height:t}):(t=f.classList.contains(n.HIDDEN_CLASS)?e.offsetHeight+it.offsetHeight:f.offsetHeight+it.offsetHeight,TweenMax.to(i,.1,{height:t})))},ai=function(t){var u,i,f,e;t.preventDefault();u=r==n.DROPDOWN_VALUE?ft:at;i=u.type;i=="password"?(i="text",f=this.dataset.replaceText,e=this.dataset.ariaReplaceText):(i="password",f=this.dataset.text,e=this.dataset.ariaText);ir(t.target,u,i,f,e);r===n.DROPDOWN_VALUE&&ft.focus()},ir=function(t,i,r,u,f){var e=t.firstElementChild;i.type=r;e.innerHTML=u;t.setAttribute(n.ARIA_LABEL,f)},a=function(){var u=coned.components.ValidateForm.isFormValid(i,"",n.FORM_IGNORE_VALIDATION,!0),t;if(r==n.DROPDOWN_VALUE)g.disabled=u?!1:!0,et.disabled=s.value.length===0?!0:!1;else{if(u)for(t=0;t<y.length;t++)y[t].disabled=!1;else for(t=0;t<y.length;t++)y[t].disabled=!0;ht.disabled=st.value.length===0?!0:!1}},k=function(n,t){n.innerHTML=t?t:coned.constants.ERROR_MESSAGE;n.parentElement.style.display="block";n.parentElement.focus()},bt=function(n){n.innerHTML="";n.parentElement.style.display="none";n.parentElement.focus()},vi=function(t,i,u){var o,l,f,a;if(r==n.DROPDOWN_VALUE?(o=e,l=gt,f=s,a=ni):(o=c,f=st,l=ui,a=fi),i.login){if(i.noMfa){window.location.href=i.noMfaRedirectUrl;return}i.newDevice?(window.scrollTo(0,0),r==n.DROPDOWN_VALUE&&(it.classList.remove(n.HIDDEN_DESKTOP_CLASS),setTimeout(function(){pt==="false"&&(coned.utils.isMobile()||(di(),ki()))},i.waitingTime)),h.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS),l.innerText=i.newDeviceText,a.innerText=i.newDeviceInputLabel,i.isNumeric?(f.classList.add(n.INPUT_NUMBER),f.type="tel",f.pattern="[0-9]*"):(f.classList.remove(n.INPUT_NUMBER),f.type="text",f.patttern=""),new coned.components.FormValidationModule(o),t.classList.add(n.HIDDEN_CLASS),o.classList.remove(n.HIDDEN_CLASS),setTimeout(function(){s&&s.focus();e&&new coned.utils.addFocusTrap(e,!0,!1,ut[0])},500)):(r==n.DROPDOWN_VALUE?dataLayer.push({event:"Nav.Login.Success"}):dataLayer.push({isLoggedIn:"true"}),hi(),window.location.href=i.authRedirectUrl)}else h.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS),setTimeout(function(){k(u,i.loginErrorMsg)},1500)},rr=function(){var t=document.getElementsByClassName(n.INPUT_EMAIL),i=document.getElementsByClassName(n.INPUT_PASSWORD);_.each(t,function(t){t.value="";t.classList.remove(n.INPUT_FILLED_CLASS)});_.each(i,function(t){t.value="";t.classList.remove(n.INPUT_FILLED_CLASS)});r==n.DROPDOWN_VALUE?b.focus():ot.focus()},ur=function(){s.value="";s.classList.remove(n.INPUT_FILLED_CLASS);bt(lt)},yi=function(t,i){coned.utils.isPatternLab()&&r==n.DROPDOWN_VALUE&&s.value==="none"&&(window.location.href=t.authRedirectUrl);t.code?(pt=!0,r==n.DROPDOWN_VALUE?dataLayer.push({"Nav.Login.Success":"true"}):dataLayer.push({isLoggedIn:"true"}),hi(),window.location.href=t.authRedirectUrl):(h.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS),setTimeout(function(){k(i,t.codeErrorMsg)},1500))},pi=function(){function d(){query.postData(ei,tt,it,s,!0)}function g(){if(coned.utils.isPatternLab()){var i;i=coned.utils.isOru()?coned.plConstants.GET_LOGIN_ORU:r==n.DROPDOWN_VALUE?coned.plConstants.GET_LOGIN_TEXT:coned.plConstants.GET_LOGIN;query.getData(i,function(n){vi(u,n,t)},function(){k(t,coned.constants.ERROR_MESSAGE)})}else vi(u,y,t)}function nt(){k(t,coned.constants.ERROR_MESSAGE)}function tt(n){y=n;g()}function it(){h.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS)}var u,t,s,c=query.getFormInputValue(i,n.LOGIN_INPUT_EMAIL).trim(),l=query.getFormInputValue(i,n.LOGIN_INPUT_REMEMBER_ME),e=coned.utils.getUrlParameterValue(n.RETURN_URL_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.RETURN_URL_PARAMETER_NAME):"",a=coned.utils.getUrlParameterValue(n.FROM_URI_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.FROM_URI_PARAMETER_NAME):"",w=coned.utils.getUrlParameterValue(n.RELAY_STATE_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.RELAY_STATE_PARAMETER_NAME):"",b=encodeURIComponent(window.location.pathname+window.location.search),y,p,o;r==n.DROPDOWN_VALUE?(u=f,t=dt):(u=v,t=ri);e===""&&(e=a);r==n.DROPDOWN_VALUE&&(e=e===""&&rt===""?b:rt);l?(p=new Date((new Date).setFullYear((new Date).getFullYear()+1)),query.setCookie(n.REMEMBER_ME_COOKIE_NAME,c,p)):query.deleteCookie(n.REMEMBER_ME_COOKIE_NAME);o=new XMLHttpRequest;o.open("DELETE",i.dataset.logoutUrl);o.withCredentials=!0;o.setRequestHeader("Accept","application/json");o.send(null);s={LoginEmail:c,LoginPassword:query.getFormInputValue(i,n.LOGIN_INPUT_PASSWORD),LoginRememberMe:l,ReturnUrl:e,FromURI:a,OpenIdRelayState:w};s=JSON.stringify(s);bt(t);h=u.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];new coned.components.SubmitAnimation(h,d,function(){},nt,!1,!0)},wi=function(){function y(){query.postData(oi,b,d,f,!0)}function p(){if(coned.utils.isPatternLab()){var i;i=r==n.DROPDOWN_VALUE?coned.plConstants.GET_LOGIN_MFA:coned.plConstants.GET_LOGIN_MFA_FAIL;query.getData(i,function(n){yi(n,t)},function(){k(t,coned.constants.ERROR_MESSAGE)})}else yi(l,t)}function w(){k(t,coned.constants.ERROR_MESSAGE)}function b(n){l=n;p()}function d(){h.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS)}var o,t,f,u=coned.utils.getUrlParameterValue(n.RETURN_URL_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.RETURN_URL_PARAMETER_NAME):"",s=coned.utils.getUrlParameterValue(n.FROM_URI_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.FROM_URI_PARAMETER_NAME):"",a=coned.utils.getUrlParameterValue(n.RELAY_STATE_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.RELAY_STATE_PARAMETER_NAME):"",v=encodeURIComponent(window.location.pathname+window.location.search),l;r==n.DROPDOWN_VALUE?(o=e,t=lt):(o=c,t=ii);u===""&&(u=s);r==n.DROPDOWN_VALUE&&(u=u===""&&rt===""?v:rt);f={MFACode:query.getFormInputValue(i,n.LOGIN_INPUT_MFA),ReturnUrl:u,FromURI:s,OpenIdRelayState:a};f=JSON.stringify(f);bt(t);h=o.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];new coned.components.SubmitAnimation(h,y,function(){},w,!1,!0)},fr=function(){u.classList.contains(n.ACTIVE_LOGIN)&&u.style.height!="0px"?(ct(),setTimeout(function(){nt.focus()},100)):(er(),setTimeout(function(){b.focus()},100))},er=function(){u.classList.add(n.ACTIVE_LOGIN);u.style.height="auto";tt.classList.remove(n.HIDDEN);o.setAttribute(n.ARIA_EXPANDED,!0)},bi=function(n){coned.utils.isMobile()?wt(n):ki()},ct=function(n){di();bi(n)},or=function(n){bi(n);coned.utils.isDesktop()&&setTimeout(function(){o.focus()},100)},sr=function(n){ct(n);coned.utils.isDesktop()&&setTimeout(function(){o.focus()},100)},ki=function(){u.classList.remove(n.ACTIVE_LOGIN);u.style.height="0";tt.classList.add(n.HIDDEN);o.setAttribute(n.ARIA_EXPANDED,!1)},di=function(){f.classList.remove(n.HIDDEN_CLASS);e.classList.add(n.HIDDEN_CLASS);it.classList.add(n.HIDDEN_DESKTOP_CLASS);g.disabled=!0;Array.prototype.forEach.call(si,function(t){t.classList.contains(n.SUBMIT_CONTAINER_REVERSED)&&t.classList.remove(n.SUBMIT_CONTAINER_REVERSED)});rr();ur()},hr=function(n){var t=n.keyCode,i=n.shiftKey;i||coned.utils.isMobile()||t!==coned.constants.KEY_CODE.TAB||wt(n)},cr=function(n){var t=n.keyCode,r=i.style.height!==""&&i.style.height!=="0px";t==coned.constants.KEY_CODE.TAB&&r&&wt(n)},lr=function(){r=i.dataset.loginType;ei=i.dataset.loginUrl;rt=i.dataset.redirectUrl;oi=i.dataset.newDeviceUrl;r==n.DROPDOWN_VALUE?ar():vr()},ar=function(){p=document.getElementsByClassName(n.OPEN_BUTTON_MOBILE_SELECTOR)[0];w=document.getElementsByClassName(n.OPEN_MOBILE_SELECTOR)[0];ut=i.getElementsByClassName(n.CLOSE_BUTTON_SELECTOR);d=i.getElementsByClassName(n.LOGIN_ANIMATION_SELECTOR);f=i.getElementsByClassName(n.LOGIN_DROPDOWN_SELECTOR)[0];e=i.getElementsByClassName(n.LOGIN_DROPDOWN_NEW_DEVICE_FORM_SELECTOR)[0];b=f.getElementsByClassName(n.INPUT_EMAIL)[0];ft=f.getElementsByClassName(n.INPUT_PASSWORD)[0];kt=f.getElementsByClassName(n.SHOW_PASSWORD_BUTTON)[0];g=f.getElementsByClassName(n.SUBMIT_BUTTON)[0];dt=f.getElementsByClassName(n.LOGIN_FORM_ERROR)[0];s=e.getElementsByClassName(n.INPUT_DEVICE_CODE)[0];et=e.getElementsByClassName(n.NEW_DEVICE_SUBMIT_BUTTON)[0];lt=e.getElementsByClassName(n.NEW_DEVICE_ERROR)[0];gt=e.getElementsByClassName(n.NEW_DEVICE_INTRO_MSG)[0];ni=e.getElementsByClassName(n.NEW_DEVICE_INPUT_LABEL)[0];u=document.getElementsByClassName(n.DROPDOWN_LOGIN_CONTAINER)[0];nt=document.getElementsByClassName(n.LOGIN_BUTTON_SELECTOR)[0];tt=document.getElementsByClassName(n.ARROW_LOGIN)[0];it=document.getElementsByClassName(n.LOGIN_DROPDOWN_HEADER_SELECTOR)[0];si=i.getElementsByClassName(n.SUBMIT_BUTTON_CONTAINER_SELECTOR);vt=document.getElementsByClassName(n.NAV_SEARCH_SELECTOR)[0];o=document.getElementsByClassName(n.OPEN_BUTTON_SELECTOR)[0];pt="false"},vr=function(){v=i.getElementsByClassName(n.LOGIN_FORM_SELECTOR)[0];c=i.getElementsByClassName(n.LOGIN_NEW_DEVICE_FORM_SELECTOR)[0];ot=v.getElementsByClassName(n.INPUT_EMAIL)[0];at=v.getElementsByClassName(n.INPUT_PASSWORD)[0];ti=v.getElementsByClassName(n.SHOW_PASSWORD_BUTTON)[0];y=v.getElementsByClassName(n.SUBMIT_BUTTON);ri=v.getElementsByClassName(n.LOGIN_FORM_ERROR)[0];st=c.getElementsByClassName(n.INPUT_DEVICE_CODE)[0];ht=c.getElementsByClassName(n.NEW_DEVICE_SUBMIT_BUTTON)[0];ii=c.getElementsByClassName(n.NEW_DEVICE_ERROR)[0];ui=c.getElementsByClassName(n.NEW_DEVICE_INTRO_MSG)[0];fi=c.getElementsByClassName(n.NEW_DEVICE_INPUT_LABEL)[0];o=document.getElementsByClassName(n.OPEN_BUTTON_SELECTOR)[0]},yr=function(){var t,o,h,c;if(r==n.DROPDOWN_VALUE)coned.utils.addGeneralListeners(p,ci),Array.prototype.forEach.call(ut,function(n){coned.utils.addGeneralListeners(n,ct)}),coned.utils.addGeneralListeners(w,ci),u&&(nt.addEventListener("click",fr),vt&&vt.addEventListener("click",ct)),window.addEventListener("resize",tr),coned.utils.addGeneralListeners(kt,ai),b.addEventListener("keyup",a),b.addEventListener("selectedOption",a),ft.addEventListener("keyup",a),s.addEventListener("input",a),g.disabled=!0,et.disabled=!0,yt=document.getElementsByClassName(n.LOGIN_LIST_CONTAINER)[0].firstElementChild.lastElementChild.firstElementChild,yt&&yt.addEventListener("keydown",hr),nt&&nt.addEventListener("keyup",cr),new coned.components.ValidateForm(n.LOGIN_DROPDOWN,pi,""),new coned.components.ValidateForm(n.LOGIN_DROPDOWN_NEW_DEVICE_FORM,wi,"");else{for(coned.utils.addGeneralListeners(ti,ai),ot.addEventListener("keyup",a),ot.addEventListener("selectedOption",a),at.addEventListener("keyup",a),st.addEventListener("input",a),t=0;t<y.length;t++)y[t].disabled=!0;ht.disabled=!0;new coned.components.ValidateForm(n.LOGIN_FORM,pi,"");new coned.components.ValidateForm(n.LOGIN_NEW_DEVICE_FORM,wi,"")}o=query.getCookie(n.REMEMBER_ME_COOKIE_NAME);o!==null&&(h=i.querySelector('[name="'+n.LOGIN_INPUT_REMEMBER_ME+'"]'),c=i.getElementsByClassName(n.CHECKBOX_LABEL)[0],query.setFormTextInputValue(i,n.LOGIN_INPUT_EMAIL,o),h.checked=!0,c.classList.add(n.CHECKBOX_LABEL_CHECKED));u&&li(coned.utils.isMobile());f&&new coned.utils.addFocusTrap(f,!0,!1,ut[0]);f&&new coned.utils.addKeyEvent(f,coned.constants.KEY_CODE.ESC,or);f&&new coned.utils.addKeyEvent(e,coned.constants.KEY_CODE.ESC,sr)},pr=function(){lr();yr();t=!0};pr()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.MaidTrackingBanner=function(){var n={FOOTER_SELECTOR:"js-footer",FOOTER_MARGIN_BOTTOM:"footer--add-margin-bottom",MAID_TRACKING_BANNER:"js-maid-tracking-banner",MAID_TRACKING_BANNER_TERMS_CONDITIONS:"js-terms-conditions",MAID_TRACKING_BANNER_PRIVACY_POLICY:"js-privacy-policy",MAID_TRACKING_BANNER_CTA:"js-maid-tracking-banner__cta",MAID_TRACKING_BANNER_ORU_CLASS:"maid-tracking-banner--oru",MAID_TRACKING_BANNER_ORU_CTA_CLASS:"maid-tracking-banner__cta--oru",HIDDEN_CLASS:"hidden",MAID_TRACKING_BANNER_COOKIE_NAME:"maidTrackingBanner",MAID_TRACKING_BANNER_COOKIE_STATIC_VALUE:"isAlreadyClosed",RECAPTCHA_CLASS:"js-recaptcha",RECAPTCHA_MODIFIER_CLASS:"js-recaptcha--maid-active",VIRTUAL_ASSISTANT_CLASS:".va-chat",VIRTUAL_ASSISTANT_CLASS_UP_DESKTOP:"72px",VIRTUAL_ASSISTANT_CLASS_UP_MOBILE:"120px",VIRTUAL_ASSISTANT_CLASS_DOWN:"-1px"},t=!1,i=function(i){var e,o,s,h,u,r,c,l,f=function(n,t){n.style.bottom=t},v=function(){dataLayer.push({event:"maidtrackingbanner.appearance"})},y=function(){dataLayer.push({event:"maid.terms.conditions"})},p=function(){dataLayer.push({event:"maid.privacy.policy"})},w=function(){dataLayer.push({event:"maid.banner.x"})},b=function(){e=document.getElementsByClassName(n.FOOTER_SELECTOR);o=i.getElementsByClassName(n.MAID_TRACKING_BANNER_TERMS_CONDITIONS);s=i.getElementsByClassName(n.MAID_TRACKING_BANNER_PRIVACY_POLICY);h=i.getElementsByClassName(n.MAID_TRACKING_BANNER_CTA);u=document.getElementsByClassName(n.RECAPTCHA_CLASS);r=document.querySelector(n.VIRTUAL_ASSISTANT_CLASS);c=n.MAID_TRACKING_BANNER_COOKIE_STATIC_VALUE;l=n.MAID_TRACKING_BANNER_COOKIE_NAME+c},k=function(){var t,o;if(w(),query.addClass(i,n.HIDDEN_CLASS),e[0].classList.remove(n.FOOTER_MARGIN_BOTTOM),u)for(t=0;t<u.length;t++)u[t].classList.remove(n.RECAPTCHA_MODIFIER_CLASS);o=new Date((new Date).setFullYear((new Date).getFullYear()+1));query.setCookie(l,c,o);r&&f(r,n.VIRTUAL_ASSISTANT_CLASS_DOWN)},a=function(t){query.hasClass(i,n.HIDDEN_CLASS)?f(t,n.VIRTUAL_ASSISTANT_CLASS_DOWN):coned.utils.isMobile()?f(t,n.VIRTUAL_ASSISTANT_CLASS_UP_MOBILE):f(t,n.VIRTUAL_ASSISTANT_CLASS_UP_DESKTOP)},d=function(){if(query.getCookie(l)!=null)query.addClass(i,n.HIDDEN_CLASS),r&&f(r,n.VIRTUAL_ASSISTANT_CLASS_DOWN);else if(v(),query.addClass(e,n.FOOTER_MARGIN_BOTTOM),i.classList.remove(n.HIDDEN_CLASS),u)for(var t=0;t<u.length;t++)u[t].classList.add(n.RECAPTCHA_MODIFIER_CLASS);coned.utils.isOru()&&(query.addClass(i,n.MAID_TRACKING_BANNER_ORU_CLASS),query.addClass(h,n.MAID_TRACKING_BANNER_ORU_CTA_CLASS));o.length&&o[0].addEventListener("click",y);s.length&&s[0].addEventListener("click",p);h[0].addEventListener("click",k);r&&(a(r),window.addEventListener("resize",function(){a(r)}))},g=function(){b();d();t=!0};setTimeout(g,5e3)};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ManageThirdParty=function(){var n={CONFIRMATION_POPUP:"js-manage-third-party-confirmation-popup",CONFIRMATION_POPUP_SUBMIT:"js-manage-third-party-confirmation-submit",SUCCESS_POPUP:"js-manage-third-party-success-popup",ERROR_POPUP:"js-manage-third-party-error-popup",POPUP_TITLE:"js-popup-title",POPUP_DESCRIPTION:"js-popup-description",POPUP_ENTITY:"js-manage-third-party-popup-entity",POPUP_BUTTON:"js-popup-button",POPUP_CLOSE:"js-popup-close",MODULE_SELECTOR:"js-manage-third-party",ACCESS_CONTENT:"js-manage-third-party-content",ACCESS_ITEM:"js-manage-third-party-table-item",CTA_CONTAINER:"js-manage-third-party-cta-container",ITEM_DATE:"js-manage-third-party-date",ALLOW_ACCESS_LINK:"js-manage-allow-access",DENY_ACCESS_LINK:"js-manage-deny-access",REMOVE_ACCESS_LINK:"js-manage-remove-access",LINK_TAG:"a",LINK_CLASSES:["manage-third-party__cta","js-manage-remove-access"],LINK_HREF:"#",FORM_LOADING:"js-form-loading",DIV_LOADING:"js-div-loading",SITECORE_ID:"ScId",VERIFICATION_TOKEN:"Token",HIDDEN_CLASS:"hidden",ALLOW_VALUE:"allow",DENY_VALUE:"deny",REMOVE_VALUE:"remove",EDIT_BUTTON:"js-edit-button",LAZY_LOAD_CLASS:"js-lazy-load",LAZY_LOAD_TAB_CLASS:"js-lazy-load-manage-my-account",LAZY_LOAD_LOADED_CLASS:"js-lazy-load-element-loaded",TAGGING_PREFIX:"Pilot.Reg.3P.",TAGGING_ALLOW_ACCESS:"Acct.Manage.Account.Allow",TAGGING_DENY_ACCESS:"Acct.Manage.Account.Deny",TAGGING_REMOVE_ACCESS:"Acct.Manage.Account.Remove",TAGGING_REMOVE_CONFIRM:"Acct.Manage.Account.Remove.Confirm"},t=!1,i=function(i){var e,st,r,a,v,d,f,s,h,g,y,nt,tt,it,rt,ut,p,w,ft,o,ht,u,ct,et,ot,c,b=function(){if(!t){var r=i.dataset.serviceUrl,u;if(!r){l();return}o.length&&o[0].classList.remove(n.HIDDEN_CLASS);query.getData(r,pt,l,u)}},pt=function(n){coned.utils.isPatternLab()?setTimeout(function(){query.getData(coned.plConstants.GET_MANAGE_ACCESS,lt,l)},5e3):lt(n)},l=function(){t=!0;i.classList.add(n.HIDDEN_CLASS);o.length&&o[0].classList.add(n.HIDDEN_CLASS);w&&(p.removeEventListener("lazy-load-start",b),i.classList.add(n.LAZY_LOAD_LOADED_CLASS))},lt=function(r){if(r){var s=new DOMParser,f,u,e;if(f=s.parseFromString(r,"text/html"),u=f.getElementsByClassName(n.MODULE_SELECTOR),u.length!==0)u=u[0];else{l();return}for(i.innerHTML=u.innerHTML,e=u.attributes;i.attributes&&i.attributes.length>0;)i.removeAttribute(i.attributes[0].name);_.each(e,function(n){i.setAttribute(n.nodeName,n.nodeValue)});ti();ii();coned.utils.initializeModules(i);i.classList.remove(n.HIDDEN_CLASS);o=i.getElementsByClassName(n.DIV_LOADING);o.length&&o[0].classList.add(n.HIDDEN_CLASS)}else{l();return}t=!0;w&&(p.removeEventListener("lazy-load-start",b),i.classList.add(n.LAZY_LOAD_LOADED_CLASS))},k=function(t){var f,o,h,l,a,s;t&&t.preventDefault();f=t.target;o=f.dataset.value;u=query.selectParentElement(f,n.ACCESS_ITEM);ct=f;et=u;ot=et.nextElementSibling;o===n.REMOVE_VALUE?(h=e.getElementsByClassName(n.POPUP_ENTITY),c=n.REMOVE_VALUE,_.each(h,function(n){n.innerHTML=u.dataset.entityName}),e.classList.remove(n.HIDDEN_CLASS),g.focus(),dataLayer.push({event:n.TAGGING_PREFIX+n.TAGGING_REMOVE_ACCESS})):(l=o===n.ALLOW_VALUE?!0:!1,a=tt.dataset.accessServiceUrl,r.dataset.access=o,s={ScId:query.getFormInputValue(i,n.SITECORE_ID),VerificationToken:query.getFormInputValue(u,n.VERIFICATION_TOKEN),RequestId:u.dataset.requestId,AllowAccess:l},s=JSON.stringify(s),query.postData(a,wt,bt,s,!0,ft))},wt=function(){var t,f,e,o;r.dataset.access===n.ALLOW_VALUE?(f=u.getElementsByClassName(n.CTA_CONTAINER)[0],e=u.getElementsByClassName(n.ITEM_DATE)[0],c=n.ALLOW_VALUE,a.innerHTML=r.dataset.allowTitle,v.innerHTML=r.dataset.allowDescription,e.innerHTML=i.dataset.acceptedCopy,t=document.createElement(n.LINK_TAG),_.each(n.LINK_CLASSES,function(n){t.classList.add(n)}),t.href=n.LINK_HREF,t.dataset.value=n.REMOVE_VALUE,t.innerHTML=i.dataset.acceptedLinkCopy,f.innerHTML="",f.appendChild(t),coned.utils.addGeneralListeners(t,k),dataLayer.push({event:n.TAGGING_PREFIX+n.TAGGING_ALLOW_ACCESS})):r.dataset.access===n.DENY_VALUE&&(c=n.DENY_VALUE,a.innerHTML=r.dataset.denyTitle,v.innerHTML=r.dataset.denyDescription,u.parentNode.removeChild(u),dataLayer.push({event:n.TAGGING_PREFIX+n.TAGGING_DENY_ACCESS}));o=r.getElementsByClassName(n.POPUP_ENTITY);_.each(o,function(n){n.innerHTML=u.dataset.entityName});u=null;r.classList.remove(n.HIDDEN_CLASS);y.focus()},bt=function(t){t?(s.innerHTML=t.errorTitle?t.errorTitle:f.dataset.defaultTitle,h.innerHTML=t.errorMsg?t.errorMsg:f.dataset.defaultDescription):(s.innerHTML=f.dataset.defaultTitle,h.innerHTML=f.dataset.defaultDescription);f.classList.remove(n.HIDDEN_CLASS)},kt=function(t){t&&t.preventDefault();var f=u.dataset.entityId,e=tt.dataset.removeServiceUrl,r;r={ScId:query.getFormInputValue(i,n.SITECORE_ID),VerificationToken:query.getFormInputValue(u,n.VERIFICATION_TOKEN),RequestId:f};r=JSON.stringify(r);query.postData(e,dt,gt,r,!0,ft)},dt=function(){e.classList.add(n.HIDDEN_CLASS);a.innerHTML=r.dataset.removeTitle;v.innerHTML=r.dataset.removeDescription;var t=r.getElementsByClassName(n.POPUP_ENTITY);_.each(t,function(n){n.innerHTML=u.dataset.entityName});u.parentNode.removeChild(u);u=null;r.classList.remove(n.HIDDEN_CLASS);y.focus();dataLayer.push({event:n.TAGGING_PREFIX+n.TAGGING_REMOVE_CONFIRM})},gt=function(t){e.classList.add(n.HIDDEN_CLASS);t?(s.innerHTML=t.errorTitle?t.errorTitle:f.dataset.defaultTitle,h.innerHTML=t.errorMsg?t.errorMsg:f.dataset.defaultDescription):(s.innerHTML=f.dataset.defaultTitle,h.innerHTML=f.dataset.defaultDescription);f.classList.remove(n.HIDDEN_CLASS)},at=function(){setTimeout(function(){ct.focus()},100)},vt=function(){setTimeout(function(){var t,i;(c===n.REMOVE_VALUE||c===n.DENY_VALUE)&&(ot?(t=ot.querySelector(coned.constants.FORM_INPUTS_QUERY),t.focus()):ht.focus());c===n.ALLOW_VALUE&&(i=et.getElementsByClassName(n.REMOVE_ACCESS_LINK)[0],i.focus())},100)},yt=function(t,i){if(t.keyCode==coned.constants.KEY_CODE.ESC){var r=query.hasClass(i,n.CONFIRMATION_POPUP);r?at():vt()}},ni=function(){w=query.hasClass(i,n.LAZY_LOAD_CLASS);o=i.getElementsByClassName(n.DIV_LOADING);w?(p=document.getElementsByClassName(n.LAZY_LOAD_TAB_CLASS)[0],p.addEventListener("lazy-load-start",b)):b()},ti=function(){e=document.getElementsByClassName(n.CONFIRMATION_POPUP)[0];st=e.getElementsByClassName(n.CONFIRMATION_POPUP_SUBMIT)[0];r=document.getElementsByClassName(n.SUCCESS_POPUP)[0];a=r.getElementsByClassName(n.POPUP_TITLE)[0];v=r.getElementsByClassName(n.POPUP_DESCRIPTION)[0];d=r.getElementsByClassName(n.POPUP_BUTTON);f=document.getElementsByClassName(n.ERROR_POPUP)[0];s=f.getElementsByClassName(n.POPUP_TITLE)[0];h=f.getElementsByClassName(n.POPUP_DESCRIPTION)[0];g=e.getElementsByClassName(n.POPUP_CLOSE)[0];y=r.getElementsByClassName(n.POPUP_CLOSE)[0];tt=i.getElementsByClassName(n.ACCESS_CONTENT)[0];nt=i.getElementsByClassName(n.ACCESS_ITEM);it=i.getElementsByClassName(n.ALLOW_ACCESS_LINK);rt=i.getElementsByClassName(n.DENY_ACCESS_LINK);ut=i.getElementsByClassName(n.REMOVE_ACCESS_LINK);ft=document.getElementsByClassName(n.FORM_LOADING)[0];ht=document.getElementsByClassName(n.EDIT_BUTTON)[0]},ii=function(){nt.length||i.classList.add(n.HIDDEN_CLASS);coned.utils.addGeneralListeners(st,kt);it.length&&_.each(it,function(n){coned.utils.addGeneralListeners(n,k)});rt.length&&_.each(rt,function(n){coned.utils.addGeneralListeners(n,k)});ut.length&&_.each(ut,function(n){coned.utils.addGeneralListeners(n,k)});d.length&&_.each(d,function(t){coned.utils.addGeneralListeners(t,function(){nt.length||i.classList.add(n.HIDDEN_CLASS)})});e.addEventListener("keydown",function(n){yt(n,e)});r.addEventListener("keydown",function(n){yt(n,r)});coned.utils.addGeneralListeners(g,at);coned.utils.addGeneralListeners(y,vt)},ri=function(){ni()};ri()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.MarketRates=function(){var n={MARKET_RATES_FORM:".js-market-rates",STANDARD_TOTAL:"js-standard-total",MARKET_SUPPLY_TOTAL:"js-market-supply-total",MARKET_SUPPLY_ON_PEAK:"js-market-supply-on-peak",MARKET_SUPPLY_OFF_PEAK:"js-market-supply-off-peak",SUPPLY_ADJUSTMENTS_TOTAL:"js-supply-adjustments-total",SUPPLY_ADJUSTMENTS_ON_PEAK:"js-supply-adjustments-on-peak",SUPPLY_ADJUSTMENTS_OFF_PEAK:"js-supply-adjustments-off-peak",SUPPLY_CHARGE_TOTAL:"js-supply-charge-total",SUPPLY_CHARGE_ON_PEAK:"js-supply-charge-on-peak",SUPPLY_CHARGE_OFF_PEAK:"js-supply-charge-off-peak",PRICE_TO_COMPARE:"js-price-to-compare",FORM_SITECORE_ID_NAME:"scId",FORM_LOADING:"js-form-loading",SERVICE_ERROR:"js-service-error",ERROR_TEXT_SELECTOR:"js-error-message",HIDDEN_CLASS:"hidden",SELECT_BILLING_PERIOD:"js-billing-period",INPUT_FILLED:"coned-input--filled",ACCOUNT_MAID_INPUT:"accountMaid",MARKET_RATES_TABLE:"js-market-rates-table",CANCEL_BUTTON:"js-close-button",DEFAULT_OPTION_LINK_CLASS:"js-default-option-link",AUTOCOMPLETE_LIST_WRAPPER_CLASS:"js-autocomplete-list-wrapper",AUTOCOMPLETE_ITEM:"js-autocomplete-item"},t=!1,i=function(i){var s,h,c,l,a,v,y,p,w,f,b,u,r,e,k,d,g,it=function(){r.classList.add(n.INPUT_FILLED)},rt=function(){var s=i.dataset.serviceUrl,t=r.dataset.billingPeriods,f,u,e;nt();t=JSON.parse(t);f=r.value.replaceAll(/\s|-|,/g,"");t=t[f]&&t[f].split("|");t?(u={Maid:k.value,ScId:query.getFormInputValue(i,n.FORM_SITECORE_ID_NAME),FromDate:t&&t[0],ToDate:t&&t[1]},u=JSON.stringify(u),query.postData(s,ut,o,u,!0,b)):(e=[],r.value="",r.classList.remove(coned.constants.INPUT_FILLED_CLASS),r.classList.remove(n.VALID_CLASS),r.classList.remove(coned.constants.INPUT_ERROR_CLASS),e.errorMsg=r.dataset.invalidBillingPeriod,o(e))},nt=function(){u.classList.add(n.HIDDEN_CLASS)},ut=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_MARKET_RATES,tt,o):tt(n)},tt=function(t){var r;if(coned.utils.isOru())r=Number.isNaN(parseFloat(t.KwhPriceRA))?t.KwhPriceRA:coned.utils.round(parseFloat(t.KwhPriceRA),2),f.innerHTML=r,f.parentElement.classList.remove(n.HIDDEN_CLASS);else{var u=Number.isNaN(parseFloat(t.MarketSupplyTotal))?t.MarketSupplyTotal:coned.utils.round(parseFloat(t.MarketSupplyTotal),2),e=Number.isNaN(parseFloat(t.MarketSupplyOnPeak))?t.MarketSupplyOnPeak:coned.utils.round(parseFloat(t.MarketSupplyOnPeak),2),o=Number.isNaN(parseFloat(t.MarketSupplyOffPeak))?t.MarketSupplyOffPeak:coned.utils.round(parseFloat(t.MarketSupplyOffPeak),2),b=Number.isNaN(parseFloat(t.SupplyAdjustmentsTotal))?t.SupplyAdjustmentsTotal:coned.utils.round(parseFloat(t.SupplyAdjustmentsTotal),2),k=Number.isNaN(parseFloat(t.SupplyAdjustmentsOnPeak))?t.SupplyAdjustmentsOnPeak:coned.utils.round(parseFloat(t.SupplyAdjustmentsOnPeak),2),g=Number.isNaN(parseFloat(t.SupplyAdjustmentsOffPeak))?t.SupplyAdjustmentsOffPeak:coned.utils.round(parseFloat(t.SupplyAdjustmentsOffPeak),2),nt=Number.isNaN(parseFloat(t.SupplyChargeTotal))?t.SupplyChargeTotal:coned.utils.round(parseFloat(t.SupplyChargeTotal),2),tt=Number.isNaN(parseFloat(t.SupplyChargeOnPeak))?t.SupplyChargeOnPeak:coned.utils.round(parseFloat(t.SupplyChargeOnPeak),2),it=Number.isNaN(parseFloat(t.SupplyChargeOffPeak))?t.SupplyChargeOffPeak:coned.utils.round(parseFloat(t.SupplyChargeOffPeak),2);s.innerHTML=u;h.innerHTML=e;c.innerHTML=o;l.innerHTML=b;a.innerHTML=k;v.innerHTML=g;y.innerHTML=nt;p.innerHTML=tt;w.innerHTML=it;d.classList.remove(n.HIDDEN_CLASS)}coned.utils.qualtricsTriggering(i)},o=function(t){var i=u.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];u.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;u.focus()},ft=function(t){var i=query.selectParentElement(t.target.getElementsByClassName(n.DEFAULT_OPTION_LINK_CLASS)[0],n.AUTOCOMPLETE_ITEM);i&&coned.utils.addGeneralListeners(i,function(){r.setAttribute(n.ARIA_EXPANDED,"false");e.classList.add(n.HIDDEN_CLASS);var t=r.parentElement.dataset.defaultOptionLinkUrl;window.location.href=t})},et=function(){s=document.getElementsByClassName(n.MARKET_SUPPLY_TOTAL)[0];h=document.getElementsByClassName(n.MARKET_SUPPLY_ON_PEAK)[0];c=document.getElementsByClassName(n.MARKET_SUPPLY_OFF_PEAK)[0];l=document.getElementsByClassName(n.SUPPLY_ADJUSTMENTS_TOTAL)[0];a=document.getElementsByClassName(n.SUPPLY_ADJUSTMENTS_ON_PEAK)[0];v=document.getElementsByClassName(n.SUPPLY_ADJUSTMENTS_OFF_PEAK)[0];y=document.getElementsByClassName(n.SUPPLY_CHARGE_TOTAL)[0];p=document.getElementsByClassName(n.SUPPLY_CHARGE_ON_PEAK)[0];w=document.getElementsByClassName(n.SUPPLY_CHARGE_OFF_PEAK)[0];f=document.getElementsByClassName(n.PRICE_TO_COMPARE)[0];b=document.getElementsByClassName(n.FORM_LOADING)[0];u=i.getElementsByClassName(n.SERVICE_ERROR)[0];r=i.getElementsByClassName(n.SELECT_BILLING_PERIOD)[0];k=document.getElementsByName(n.ACCOUNT_MAID_INPUT)[0];d=document.getElementsByClassName(n.MARKET_RATES_TABLE)[0];g=i.getElementsByClassName(n.CANCEL_BUTTON)[0];e=r.parentElement.getElementsByClassName(n.AUTOCOMPLETE_LIST_WRAPPER_CLASS)[0]},ot=function(){r.addEventListener("selectedOption",it);e.addEventListener("change",ft);new coned.components.ValidateForm(n.MARKET_RATES_FORM,rt);coned.utils.addGeneralListeners(g,nt)},st=function(){et();ot();t=!0};st()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.MarketSupplyCalculator=function(){var n={FORM:"js-market-supply-calculator-form",CLEAR_BTN_CLASS:"js-reset-button",MSC_RESULT_TABLE_CLASS:"js-msc-result",MSC_SERVICE_ERROR:"js-msc-service-error",MSC_ELECTRICAL_RATE_SELECT:"js-msc-electrical-rate",MSC_HEADER_SUPER_PEAK:"js-msc-super-peak-header",MSC_HEADER_STANDARD_CUSTOMER:"js-msc-standard-customer-total-header",MSC_RESULT_SUPER_PEAK:"js-msc-super-peak",MSC_RESULT_STANDARD_CUSTOMER:"js-msc-standard-customer-total",MSC_RESULT_VOLUNTARY_CUSTOMER_ON_PEAK:"js-msc-voluntary-customer-on-peak",MSC_RESULT_VOLUNTARY_CUSTOMER_OFF_PEAK:"js-msc-voluntary-customer-off-peak",FORM_SITECORE_ID:"scId",FORM_ELECTRICAL_RATE:"mscElectricalRate",FORM_ZONE:"mscZone",FORM_START_DATE:"mscStartDate",FORM_END_DATE:"mscEndDate",FORM_LOADING:"js-form-loading",ERROR_MESSAGE:"js-error-message",HIDDEN_CLASS:"hidden",RECAPTCHA_ELEMENT:"js-recaptcha"},t=!1,i=function(i){var r,y,e,f,p,c,l,s,h,w,b,a,u,o,g=function(){f.classList.add(n.HIDDEN_CLASS);e.classList.add(n.HIDDEN_CLASS);o&&u&&u.reset();p.focus()},v=function(){var c=i.dataset.serviceUrl,t,s,h;f.classList.add(n.HIDDEN_CLASS);e.classList.add(n.HIDDEN_CLASS);s=o&&u?u.getResponse():"";t={scId:query.getFormInputValue(document,n.FORM_SITECORE_ID),loadZone:query.getDropdownSelectedValue(r,n.FORM_ZONE),serviceClass:query.getDropdownSelectedValue(r,n.FORM_ELECTRICAL_RATE).split(",")[0],serviceClassType:query.getDropdownSelectedValue(r,n.FORM_ELECTRICAL_RATE).split(",")[1],fromDate:coned.utils.serviceDateFormat(query.getInputValue(r,n.FORM_START_DATE)),toDate:coned.utils.serviceDateFormat(query.getInputValue(r,n.FORM_END_DATE)),verify:s};h=JSON.stringify(t);query.postData(c,nt,tt,h,!0,a)},nt=function(n){coned.utils.isPatternLab()?n=query.getData(coned.plConstants.GET_MARKET_SUPPLY_CALCULATOR_CALCULATE,k,function(){}):k(n)},k=function(t){t.MarketSupplySuperPeak?(s.innerText=t.MarketSupplySuperPeak,c.parentElement.classList.remove(n.HIDDEN_CLASS),s.parentElement.classList.remove(n.HIDDEN_CLASS),l.parentElement.classList.add(n.HIDDEN_CLASS),h.parentElement.classList.add(n.HIDDEN_CLASS)):(h.innerText=t.MarketSupplyTotal,c.parentElement.classList.add(n.HIDDEN_CLASS),s.parentElement.classList.add(n.HIDDEN_CLASS),l.parentElement.classList.remove(n.HIDDEN_CLASS),h.parentElement.classList.remove(n.HIDDEN_CLASS));w.innerText=t.MarketSupplyOnPeak;b.innerText=t.MarketSupplyOffPeak;e.classList.remove(n.HIDDEN_CLASS);e.focus()},tt=function(n){coned.utils.isPatternLab()?n=query.getData(coned.plConstants.GET_MARKET_SUPPLY_CALCULATOR_SERVICES_ERROR,d,function(){}):d(n)},d=function(t){var i=f.getElementsByClassName(n.ERROR_MESSAGE)[0];i.innerText=t.errorMsg&&t.errorMsg!==""?t.errorMsg:i.innerText;f.classList.remove(n.HIDDEN_CLASS);f.focus()},it=function(){a.classList.remove(n.FORM_LOADING_HIDDEN);o&&u&&(u.getResponse()!==""&&u.reset(),u.checkRecaptcha())},rt=function(){r=i.getElementsByClassName(n.FORM)[0];y=r.getElementsByClassName(n.CLEAR_BTN_CLASS)[0];e=i.getElementsByClassName(n.MSC_RESULT_TABLE_CLASS)[0];f=r.getElementsByClassName(n.MSC_SERVICE_ERROR)[0];p=r.getElementsByClassName(n.MSC_ELECTRICAL_RATE_SELECT)[0];c=i.getElementsByClassName(n.MSC_HEADER_SUPER_PEAK)[0];l=i.getElementsByClassName(n.MSC_HEADER_STANDARD_CUSTOMER)[0];s=i.getElementsByClassName(n.MSC_RESULT_SUPER_PEAK)[0];h=i.getElementsByClassName(n.MSC_RESULT_STANDARD_CUSTOMER)[0];w=i.getElementsByClassName(n.MSC_RESULT_VOLUNTARY_CUSTOMER_ON_PEAK)[0];b=i.getElementsByClassName(n.MSC_RESULT_VOLUNTARY_CUSTOMER_OFF_PEAK)[0];a=document.getElementsByClassName(n.FORM_LOADING)[0];u=!1;o=i.getElementsByClassName(n.RECAPTCHA_ELEMENT)[0]},ut=function(){o?(new coned.components.ValidateForm(r,it),u=new coned.components.Recaptcha(i,v,v)):new coned.components.ValidateForm(r,v);coned.utils.addGeneralListeners(y,g)},ft=function(){rt();ut();t=!0};ft()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.MaskedField=function(){var n={MASKED_FIELD_BTN_CLASS:"js-masked-field-button",ARIA_LABEL:"aria-label"},t=!1,i=function(){var i,r=function(n){var e,i,t,r,f;n.preventDefault();e=n.target.dataset.maskedFieldClassName;i=document.getElementsByClassName(e)[0];i&&(t=i.type,t=="password"?(t="text",r=this.dataset.replaceText,f=this.dataset.ariaReplaceText):(t="password",r=this.dataset.text,f=this.dataset.ariaText),u(n.target,i,t,r,f))},u=function(t,i,r,u,f){var e=t.firstElementChild;i.type=r;e.innerHTML=u;t.setAttribute(n.ARIA_LABEL,f)},f=function(){i=document.getElementsByClassName(n.MASKED_FIELD_BTN_CLASS)},e=function(){_.each(i,function(n){coned.utils.addGeneralListeners(n,r)})},o=function(){f();e();t=!0};o()};return i.prototype.isLoaded=function(){return t},i}();coned=coned||{};coned.components=coned.components||{};coned.components.Modal=function(){var t=!1,n={CLASSES:{HIDDEN:"hidden",VIRTUAL_ASSISTANT:"va-chat",FOOTER_SHOW:"modal-footer--show"},SELECTORS:{SELECT_MULTIPLE:"js-select-miltiple-option",BUTTON_OPEN:"js-modal-open",BUTTON_FOCUS_OPEN:"js-modal-focus-open",BUTTON_CLOSE:"js-modal-close",BUTTON_FOCUS_CLOSE:"js-modal-focus-close",CONTAINER:"js-modal-container",CONTENT:"js-modal-content",FOOTER:"js-modal-footer"}},i=function(i){var u,v,y,c,f,p,r,w,e,o,l,a,b,h,k=function(){i.setAttribute(coned.constants.ARIA.HIDDEN,u.open?coned.constants.FALSE:coned.constants.TRUE);u.open?(setTimeout(function(){document.body.classList.add(coned.constants.MODAL_OPEN);e&&e.classList.add(n.CLASSES.HIDDEN)},200),setTimeout(function(){u.open&&l&&o&&(o.blur(),l.focus())},400)):setTimeout(function(){document.body.classList.remove(coned.constants.MODAL_OPEN);e&&e.classList.remove(n.CLASSES.HIDDEN);o&&o.focus()},200)},s=function(n){u.open!==n.open&&(u.open=n.open,k(),coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,u))},d=function(n){n&&typeof n.detail.open!="undefined"&&s({open:n.detail.open})},g=function(){s({open:!1})},nt=function(n){!c.contains(n.target)&&u.open&&s({open:!1})},tt=function(n){var t=n.currentTarget,i;t instanceof HTMLElement&&(i=coned.utils.isFocusableElement(t),i&&s({open:!0}))},it=function(n){var i=n.currentTarget,t=n.code,u=t===coned.constants.KEYBOARD_CODE.SPACE,f=t===coned.constants.KEYBOARD_CODE.ENTER||t===coned.constants.KEYBOARD_CODE.NUMPAD_ENTER,r;i instanceof HTMLElement&&(r=coned.utils.isFocusableElement(i),r&&(u||f)&&(n.stopImmediatePropagation(),n.preventDefault(),s({open:!0})))},rt=function(t){var f=t.code,i=t.target,e=t.shiftKey,o=f===coned.constants.KEYBOARD_CODE.TAB,s=f===coned.constants.KEYBOARD_CODE.SPACE,h=f===coned.constants.KEYBOARD_CODE.ENTER||f===coned.constants.KEYBOARD_CODE.NUMPAD_ENTER;u.open&&(t.preventDefault(),o&&(e?coned.utils.handleNextPrevFocus(coned.constants.ORDER.PREV,i,r):coned.utils.handleNextPrevFocus(coned.constants.ORDER.NEXT,i,r)),(s||h)&&(t.preventDefault(),i instanceof HTMLElement&&!i.classList.contains(n.CLASSES.SELECT_MULTIPLE)&&i.click()))},ut=function(){u={open:!1};e=document.getElementsByClassName(n.CLASSES.VIRTUAL_ASSISTANT)[0];y=i.getElementsByClassName(n.SELECTORS.CONTAINER)[0];p=i.dataset.clickContainerClose===coned.constants.TRUE;w=coned.utils.arrayFrom(i.parentElement.getElementsByClassName(n.SELECTORS.BUTTON_OPEN));f=i.getElementsByClassName(n.SELECTORS.FOOTER)[0];a=f?f.dataset.fixed===coned.constants.TRUE:!1;h=f?Array.from(f.querySelectorAll(coned.constants.FOCUSABLE_ELEMENTS_DROPDOWN_MODAL_QUERY)):[];c=i.getElementsByClassName(n.SELECTORS.CONTENT)[0];r=coned.utils.arrayFrom(c.querySelectorAll(coned.constants.FOCUSABLE_ELEMENTS_DROPDOWN_MODAL_QUERY)).sort(coned.utils.arrayFocusSort);v=coned.utils.arrayFrom(i.getElementsByClassName(n.SELECTORS.BUTTON_CLOSE));o=i.parentElement.getElementsByClassName(n.SELECTORS.BUTTON_FOCUS_OPEN)[0];l=i.parentElement.getElementsByClassName(n.SELECTORS.BUTTON_FOCUS_CLOSE)[0];b=new MutationObserver(et)},ft=function(n){n.currentTarget instanceof HTMLElement&&n.currentTarget.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},et=function(t){t.forEach(function(t){t.type==="attributes"&&t.attributeName==="class"&&(r=f.classList.contains(n.CLASSES.FOOTER_SHOW)?r.concat(h):r.filter(function(n){return!h.includes(n)}))})},ot=function(){i.addEventListener("keydown",rt);i.addEventListener(coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,d);v.forEach(function(n){n.addEventListener("click",g)});w.forEach(function(n){n.addEventListener("click",tt);n.addEventListener("keydown",it)});p&&y.addEventListener("click",nt);r&&(a&&(r=r.filter(function(n){return!h.includes(n)})),r.forEach(function(n){n.addEventListener("focusin",ft)}));f&&a&&b.observe(f,{attributes:!0,attributeFilter:["class"]})},st=function(){ut();ot();t=!0};st()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.MoxieModule=function(){var n={REDIRECT_LINK_CLASS:"js-redirect",CLOSE_CLASS:"con-close-area",CONTAINER_ID:"concierge"},t=!1,i=function(i){var r,u,f,e=function(n){n.preventDefault();coned.utils.isPatternLab()?f.style.display="none":u.click();window.parent.window.location.href=this.href},o=function(){r=i.getElementsByClassName(n.REDIRECT_LINK_CLASS)[0];u=window.parent.document.getElementsByClassName(n.CLOSE_CLASS)[0];f=window.parent.document.getElementById(n.CONTAINER_ID)},s=function(){coned.utils.addGeneralListeners(r,e)},h=function(){o();s();t=!0};h()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.MultiFactorAuthentication=function(){var n={MFA_FORM:"js-mfa-parent-form",CHECKBOX_NO_PHONE:"js-checkbox-selector",INPUT_PHONE_SELECTOR:"js-input-phone-selector",PHONE_VERIFICATION_CONTAINER:"js-phone-verification-container",SECURITY_QUESTION_CONTAINER:"js-question-container",VERIFICATION_METHOD_SELECT:"js-step-verification-select",VERIFICATION_METHOD_TEXT:"js-verification-text",VERIFICATION_METHOD_CONTAINER:"js-method-container",IGNORE_CLASS:"js-validate-ignore",VALIDATE_CLASS:"js-item-validate",SELECT_CLASS_SELECTOR:"js-coned-select",INPUT_CLASS_SELECTOR:"js-coned-input",FILLED_CLASS:"coned-input--filled",HIDDEN_CLASS:"hidden",ERROR_MESSAGE_CLASS:"coned-input-message--error",VERIFICATION_OPTION_GOOGLE:"google",VERIFICATION_OPTION_OKTA:"okta",VERIFICATION_OPTION_CALL:"call",VERIFICATION_OPTION_SMS:"sms",VERIFICATION_OPTION_QUESTION:"question",GET_CODE_BUTTON:"js-get-code",GET_CODE_INPUT_CONTAINER:"js-get-code-input-container",CODE_CALL_DESCRIPTION:"js-call-description",CODE_SMS_DESCRIPTION:"js-sms-description",TRY_AGAIN_BUTTON:"js-try-again",DEVICE_CONTAINER:"js-device-container",DEVICE_SELECTOR:"js-select-device",DEVICE_DOWNLOAD_MESSAGE:"js-device-message",SCAN_CODE_CONTAINER:"js-scan-code",NO_SCAN_CONTAINER:"js-no-scan",SCAN_CODE_INPUT_CONTAINER:"js-enter-code",SCAN_LINK:"js-scan-link",CANT_SCAN_LINK:"js-cant",GOOGLE_GET_SCAN_CODE_BUTTON:"js-get-scan-code-google",OKTA_GET_SCAN_CODE_BUTTON:"js-get-scan-code-okta",GET_SCAN_CODE_BUTTON:"js-get-scan-code",VERIFICATION_CODE_INPUT:"js-verification-code",VERIFICATION_GOOGLE_CODE:"js-google-code",VERIFICATION_OKTA_CODE:"js-okta-code",VERIFICATION_SECURITY_ANSWER:"js-security-answer",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",SUBMIT_BUTTON:"js-transactional-submit-selector",FORM_LOADING:"js-form-loading",FORM_LOADING_HIDDEN:"form-loading--hidden",SITECORE_ID:"ScId",USER_ID:"userId",MOBILE_PHONE:"mfaMobilePhone",VERIFICATON_BY:"verificationOption",PASSWORD:"registerPasword",QUESTION:"securityQuestion",ANSWER:"securityAnswer",VERIFICATION_CODE:"verificationCode",VERIFICATION_INPUTS:"js-verification-input",GOOGLE_SCAN_CODE_IMAGE:"js-google-qrcode-img",GOOGLE_SCAN_CODE_TEXT:"js-google-qrcode-text",OKTA_SCAN_CODE_IMAGE:"js-okta-qrcode-img",OKTA_SCAN_CODE_TEXT:"js-okta-qrcode-text",NO_PHONE_ERROR:"js-no-phone-error",QUESTION_CODE:"js-question-code",PASSWORD_VALIDATION_CONTAINER:"js-password-validation",VALIDATION_ERROR_CLASS:"register__validation--error",FORM_MFA_VALID:"mfa-is-valid",CAPTCHA_ELEMENT:"js-recaptcha",TAGGING_MFA_SELECT:"Step05.mfa",TAGGING_NO_PHONE:"Step05.No.Mobile.Check.Box"},t=!1,i=function(i){var y,p,a,ft,dt,gt,e,w,r,o,et,ot,st,ht,ni,u,c,ti,ii,ct,lt,ri,ui,b,at,vt,d,g,fi,ei,oi,l,nt,si,hi,ci,li,ai,vi,yi,pi,wi,k,yt,v,f,h,tt,s,pt,it,bi,ki=function(){var t=$(r).valid();t?u.disabled=!1:(u.disabled=!0,u.options[0].selected=!0,_.each(g,function(t){t.classList.add(n.HIDDEN_CLASS)}),_.each(d,function(t){t.classList.add(n.HIDDEN_CLASS)}))},gi=function(){coned.utils.isMobile()?(y.classList.add(n.HIDDEN_CLASS),a.classList.add(n.HIDDEN_CLASS),p.classList.remove(n.HIDDEN_CLASS),ft.classList.remove(n.HIDDEN_CLASS)):(y.classList.remove(n.HIDDEN_CLASS),a.classList.remove(n.HIDDEN_CLASS),p.classList.add(n.HIDDEN_CLASS))},rt=function(){var t=$(this).valid(),i=yt?yt.getElementsByClassName(n.VALIDATION_ERROR_CLASS):"";t&&i.length<=0?(nt.disabled=!1,e.classList.add(n.FORM_MFA_VALID)):(nt.disabled=!0,e.classList.remove(n.FORM_MFA_VALID))},nr=function(t){t.preventDefault();var i=o.getElementsByClassName(n.SCAN_CODE_INPUT_CONTAINER)[0],r=o.getElementsByClassName(n.NO_SCAN_CONTAINER)[0];i.classList.remove(n.HIDDEN_CLASS);this.classList.add(n.HIDDEN_CLASS);r.classList.add(n.HIDDEN_CLASS)},tr=function(t){t.preventDefault();var i=o.getElementsByClassName(n.SCAN_CODE_INPUT_CONTAINER)[0],r=o.getElementsByClassName(n.NO_SCAN_CONTAINER)[0];i.classList.remove(n.HIDDEN_CLASS);this.classList.add(n.HIDDEN_CLASS);r.classList.add(n.HIDDEN_CLASS)},ir=function(t){t.preventDefault();query.hasClass(this,n.CANT_SCAN_LINK)?(y.classList.add(n.HIDDEN_CLASS),a.classList.add(n.HIDDEN_CLASS),p.classList.remove(n.HIDDEN_CLASS),ft.classList.remove(n.HIDDEN_CLASS)):(y.classList.remove(n.HIDDEN_CLASS),a.classList.remove(n.HIDDEN_CLASS),p.classList.add(n.HIDDEN_CLASS))},rr=function(){var t=this.options[this.selectedIndex].value,i="js-message-"+t,r=et.getElementsByClassName(i)[0];y=o.getElementsByClassName(n.SCAN_CODE_CONTAINER)[0];p=o.getElementsByClassName(n.NO_SCAN_CONTAINER)[0];a=o.getElementsByClassName(n.SCAN_CODE_INPUT_CONTAINER)[0];ft=o.getElementsByClassName(n.GET_SCAN_CODE_BUTTON)[0];dt=o.getElementsByClassName(n.SCAN_CODE_CONTAINER)[0];gt=o.getElementsByClassName(n.CANT_SCAN_LINK)[0];_.each(ni,function(t){t.classList.add(n.HIDDEN_CLASS)});r.classList.remove(n.HIDDEN_CLASS);dt.classList.remove(n.HIDDEN_CLASS);a.classList.remove(n.HIDDEN_CLASS);coned.utils.isMobile()&&gt.click();window.addEventListener("resize",gi)},wt=function(t){t&&t.preventDefault();it||(nt.disabled=!0);l.value="";ot.classList.add(n.HIDDEN_CLASS);c.classList.remove(n.HIDDEN_CLASS);(s==n.VERIFICATION_OPTION_CALL||s==n.VERIFICATION_OPTION_SMS)&&h&&f&&f.getResponse()!==""&&f.reset();h&&v[0].classList.contains(n.HIDDEN_CLASS)&&v[0].classList.remove(n.HIDDEN_CLASS)},ur=function(){var t=w.checked;t?(r.disabled=!0,r.value="",r.classList.remove(n.FILLED_CLASS),r.classList.remove(n.ERROR_MESSAGE_CLASS),r.classList.add(n.IGNORE_CLASS),u.disabled=!0,pt.resetForm(),l.classList.add(n.IGNORE_CLASS),u.classList.add(n.IGNORE_CLASS),ct.classList.add(n.HIDDEN_CLASS),r.classList.add(n.IGNORE_CLASS),lt.classList.add(n.IGNORE_CLASS),b.classList.remove(n.HIDDEN_CLASS),at.classList.remove(n.IGNORE_CLASS),vt.classList.remove(n.IGNORE_CLASS)):(r.disabled=!1,r.classList.remove(n.IGNORE_CLASS),b.classList.add(n.HIDDEN_CLASS),r.classList.remove(n.IGNORE_CLASS),lt.classList.remove(n.IGNORE_CLASS),at.classList.add(n.IGNORE_CLASS),vt.classList.add(n.IGNORE_CLASS),ct.classList.remove(n.HIDDEN_CLASS),l.classList.remove(n.IGNORE_CLASS),u.classList.remove(n.IGNORE_CLASS));kt();_.each(g,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(d,function(t){t.classList.add(n.HIDDEN_CLASS)});u.options[0].selected=!0},fr=function(){var t=r.value!==""&&$(r).valid();s=u.options[u.selectedIndex].value;_.each(g,function(t){t.classList.add(n.HIDDEN_CLASS)});t||s==n.VERIFICATION_OPTION_QUESTION?(er(s),k&&k.classList.add(n.HIDDEN_CLASS)):k&&k.classList.remove(n.HIDDEN_CLASS);pt.resetForm();kt();(s==n.VERIFICATION_OPTION_CALL||s==n.VERIFICATION_OPTION_SMS)&&h&&!f&&(f=new coned.components.Recaptcha(e,ut,ut))},er=function(t){var f="js-"+t+"-container",e="js-"+t+"-code",s="js-"+t+"-message",u=i.getElementsByClassName(s)[0],r=i.getElementsByClassName(e)[0],h=query.hasClass(r,n.QUESTION_CODE);o=i.getElementsByClassName(f)[0];t==n.VERIFICATION_OPTION_SMS?(u.classList.remove(n.HIDDEN_CLASS),c.firstElementChild.innerHTML=c.dataset.text,st.classList.remove(n.HIDDEN_CLASS),ht.classList.add(n.HIDDEN_CLASS),wt()):t==n.VERIFICATION_OPTION_CALL?(c.firstElementChild.innerHTML=c.dataset.replaceText,u.classList.remove(n.HIDDEN_CLASS),st.classList.add(n.HIDDEN_CLASS),ht.classList.remove(n.HIDDEN_CLASS),wt()):t==n.VERIFICATION_OPTION_QUESTION?(tt="js-device-container-"+t,et=i.getElementsByClassName(tt)[0],l.classList.add(n.IGNORE_CLASS)):(tt="js-device-container-"+t,et=i.getElementsByClassName(tt)[0],l.classList.add(n.IGNORE_CLASS),ut());_.each(d,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(wi,function(t){var i=query.hasClass(t,n.QUESTION_CODE);i||(t.name="");t.classList.add(n.IGNORE_CLASS);t.classList.remove(n.VALIDATE_CLASS)});h||(r.name=n.VERIFICATION_CODE);r.classList.remove(n.IGNORE_CLASS);r.classList.add(n.VALIDATE_CLASS);o.classList.remove(n.HIDDEN_CLASS)},di=function(t){kt();ot.classList.remove(n.HIDDEN_CLASS);e.dataset.factorId=t.FactorId;s==n.VERIFICATION_OPTION_GOOGLE?(ai.src=t.ImageSource,vi.innerHTML=t.SharedSecret):s==n.VERIFICATION_OPTION_OKTA&&(yi.src=t.ImageSource,pi.innerHTML=t.SharedSecret)},or=function(t){if(coned.utils.isPatternLab()){var i=coned.plConstants.GET_CODE_REGISTER;query.getData(i,di,function(){})}else di(t);c.classList.add(n.HIDDEN_CLASS)},ut=function(t){t&&t.preventDefault();var o=i.dataset.codeService,c=r?$(r).valid():!0,l=i.dataset.resetCurrentMfa?i.dataset.resetCurrentMfa:null,u;c&&(u={FirstSet:bi,ScId:query.getFormInputValue(e,n.SITECORE_ID),UserId:query.getFormInputValue(e,n.USER_ID),MobilePhoneNumber:query.getFormInputValue(e,n.MOBILE_PHONE),StepVerification:query.getFormInputValue(e,n.VERIFICATON_BY),ResetCurrentMfaFactor:l},(s==n.VERIFICATION_OPTION_CALL||s==n.VERIFICATION_OPTION_SMS)&&h&&f&&f.getResponse()!==""&&(u.Verify=f.getResponse()),h&&!v[0].classList.contains(n.HIDDEN_CLASS)&&v[0].classList.add(n.HIDDEN_CLASS),u=JSON.stringify(u),query.postData(o,or,sr,u,!0,li))},sr=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.DEFAULT_SERVICE_ERROR,bt,bt):(bt(n),h&&f&&f.getResponse()!==""&&f.reset())},bt=function(t){var r=t.errorMsg,u=i.getElementsByClassName(n.SERVICE_ERROR),f=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE);_.each(u,function(t){t.classList.remove(n.HIDDEN_CLASS)});_.each(f,function(n){n.innerHTML=r})},kt=function(){_.each(ui,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(ri,function(n){n.innerHTML=""})},hr=function(n){n&&n.preventDefault();h&&f&&f.getResponse()===""?f.checkRecaptcha():h||ut()},cr=function(){e=query.selectParentElement(i,n.MFA_FORM);w=i.getElementsByClassName(n.CHECKBOX_NO_PHONE)[0];r=e.getElementsByClassName(n.INPUT_PHONE_SELECTOR)[0];ct=i.getElementsByClassName(n.PHONE_VERIFICATION_CONTAINER)[0];lt=i.getElementsByClassName(n.PHONE_VERIFICATION_CONTAINER)[0];b=i.getElementsByClassName(n.SECURITY_QUESTION_CONTAINER)[0];vt=b.getElementsByClassName(n.SELECT_CLASS_SELECTOR)[0];at=b.getElementsByClassName(n.INPUT_CLASS_SELECTOR)[0];u=i.getElementsByClassName(n.VERIFICATION_METHOD_SELECT)[0];d=i.getElementsByClassName(n.VERIFICATION_METHOD_TEXT);g=i.getElementsByClassName(n.VERIFICATION_METHOD_CONTAINER);c=i.getElementsByClassName(n.GET_CODE_BUTTON)[0];ot=i.getElementsByClassName(n.GET_CODE_INPUT_CONTAINER)[0];ui=document.getElementsByClassName(n.SERVICE_ERROR);ri=document.getElementsByClassName(n.SERVICE_ERROR_MESSAGE);st=i.getElementsByClassName(n.CODE_SMS_DESCRIPTION)[0];ht=i.getElementsByClassName(n.CODE_CALL_DESCRIPTION)[0];ti=i.getElementsByClassName(n.TRY_AGAIN_BUTTON);ii=i.getElementsByClassName(n.DEVICE_SELECTOR);ni=i.getElementsByClassName(n.DEVICE_DOWNLOAD_MESSAGE);fi=i.getElementsByClassName(n.SCAN_LINK);ei=i.getElementsByClassName(n.GOOGLE_GET_SCAN_CODE_BUTTON)[0];oi=i.getElementsByClassName(n.OKTA_GET_SCAN_CODE_BUTTON)[0];l=i.getElementsByClassName(n.VERIFICATION_CODE_INPUT)[0];ci=i.getElementsByClassName(n.VERIFICATION_GOOGLE_CODE)[0];hi=i.getElementsByClassName(n.VERIFICATION_OKTA_CODE)[0];si=i.getElementsByClassName(n.VERIFICATION_SECURITY_ANSWER)[0];nt=e.getElementsByClassName(n.SUBMIT_BUTTON)[0];li=e.getElementsByClassName(n.FORM_LOADING)[0];ai=i.getElementsByClassName(n.GOOGLE_SCAN_CODE_IMAGE)[0];vi=i.getElementsByClassName(n.GOOGLE_SCAN_CODE_TEXT)[0];yi=i.getElementsByClassName(n.OKTA_SCAN_CODE_IMAGE)[0];pi=i.getElementsByClassName(n.OKTA_SCAN_CODE_TEXT)[0];wi=i.getElementsByClassName(n.VERIFICATION_INPUTS);k=i.getElementsByClassName(n.NO_PHONE_ERROR)[0];yt=document.getElementsByClassName(n.PASSWORD_VALIDATION_CONTAINER)[0];v=document.getElementsByClassName(n.CAPTCHA_ELEMENT);h=v.length>0;pt=$(e).validate();it=i.dataset.editProfile;bi=!!i.dataset.firstSet},lr=function(){it||(w.addEventListener("change",ur),r.addEventListener("keyup",ki),r.addEventListener("change",ki),l.addEventListener("keyup",rt),ci.addEventListener("keyup",rt),hi.addEventListener("keyup",rt),si.addEventListener("keyup",rt));u.addEventListener("change",fr);coned.utils.addGeneralListeners(c,hr);coned.utils.addGeneralListeners(ei,nr);coned.utils.addGeneralListeners(oi,tr);_.each(ti,function(n){coned.utils.addGeneralListeners(n,wt)});_.each(ii,function(n){n.addEventListener("change",rr)});_.each(fi,function(n){coned.utils.addGeneralListeners(n,ir)});i.dataset.tagging&&(it||w.addEventListener("change",function(){w.checked&&dataLayer.push({event:i.dataset.tagging+n.TAGGING_NO_PHONE})}),u.addEventListener("change",function(){dataLayer.push({event:i.dataset.tagging+n.TAGGING_MFA_SELECT,pilotRegMFA:u.options[u.selectedIndex].text.trim()})}))},ar=function(){cr();lr();t=!0};ar()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.MultipleAccounts=function(){var n={SELECT_ALL_ACCOUNTS_CHECK:"js-add-all-accounts",SELECTED_ACCOUNTS_LINK:"js-selected-account-link",SELECTED_ACCOUNTS_LINK_MIN_WIDTH:"250px",MAX_ACCOUNT_ERROR_SELECTOR:"js-max-accounts-error",ACCOUNTS_BUTTON_DISABLED_CLASS:"register-accounts__banner-button--disabled",ACCOUNTS_ITEM_JS:"js-register-accounts-item",ACCOUNT_CHECKBOX_JS:"js-checkbox-accounts-selector",SHOW_MORE_LINK_SELECTOR:"js-show-more-link-selector",ACCOUNT_COUNTER:"js-account-counter",REGISTER_SITECORE_ID:"ScId",USER_ID:"userId",HIDDEN_CLASS:"hidden",SERVICE_ERROR_SELECTOR:"js-service-error",ERROR_TEXT_SELECTOR:"js-error-message",NEXT_FOCUS_QUERY:'p:not(.hidden) [tabindex="0"], a[tabindex="0"]:not(.hidden), input:not(.hidden), button:not(.hidden):not(:disabled)',REGISTER_ACCOUNTS_SELECTOR:"js-register-accounts",SUBMIT_ANIMATION_BUTTON:"js-submit-progress-animation",NOTIFICATION_ONBOARDING_SELECTOR:"js-notification-onboarding",TURN_ON_EMAIL_NOTIFICATION_EVENT:"turn-on-email-notification"},t=!1,i=function(i){var o,u,r,s,h,f,c,p,l,a,e,v,b=function(){if(this.checked){var n=i.dataset.maxAccounts&&parseInt(i.dataset.maxAccounts)?parseInt(i.dataset.maxAccounts):750;u.disabled=!1;_.each(r,function(n){n.checked=!0});dataLayer.push({event:"add.account.process","add.account":"step01a"});e&&(dataLayer.push({event:"add.account.process","add.account":"step01opt"}),e=!1);r.length>n&&w();s.innerHTML=r.length;this.parentElement.classList.add("coned-checkbox--checked")}else u.disabled=!0,s.innerHTML="0",_.each(r,function(n){n.checked=!1}),this.parentElement.classList.remove("coned-checkbox--checked"),y()},k=function(t){t.preventDefault();var i;_.each(r,function(t){i=query.selectParentElement(t,n.ACCOUNTS_ITEM_JS);i.classList.remove(n.HIDDEN_CLASS)});h.parentElement.classList.add(n.HIDDEN_CLASS)},d=function(){var t;_.each(r,function(i,r){r>11&&(t=query.selectParentElement(i,n.ACCOUNTS_ITEM_JS),t.classList.add(n.HIDDEN_CLASS))});r.length>11&&h.parentElement.classList.remove(n.HIDDEN_CLASS)},g=function(t){t.preventDefault();var i=0;_.each(r,function(n){n.checked&&i++});i>0&&(u.classList.remove(n.ACCOUNTS_BUTTON_DISABLED_CLASS),tt());y()},nt=function(){var n=_.filter(r,function(n){return n.checked}).length,t=i.dataset.maxAccounts&&parseInt(i.dataset.maxAccounts)?parseInt(i.dataset.maxAccounts):750;n>0?(u.disabled=!1,e&&(dataLayer.push({event:"add.account.process","add.account":"step01opt"}),e=!1)):u.disabled=!0;o.checked=n===r.length?!0:!1;s.innerHTML=n;n>t?w():y()},tt=function(){new coned.components.SubmitAnimation(a,it,et,ut,!1,!0)},it=function(){var f=i.dataset.addAccountsService,t,u=[];_.each(r,function(n){n.checked&&u.push({Maid:n.name})});t={ScId:query.getFormInputValue(i,n.REGISTER_SITECORE_ID),UserId:query.getFormInputValue(i,n.USER_ID),Accounts:u};t=JSON.stringify(t);query.postData(f,rt,ft,t,!0)},rt=function(){query.addClass(a,coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS);u.style.minWidth=n.SELECTED_ACCOUNTS_LINK_MIN_WIDTH;coned.utils.triggerEvent(l,n.TURN_ON_EMAIL_NOTIFICATION_EVENT)},ut=function(){var t=f.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];f.classList.remove(n.HIDDEN_CLASS);t.innerHTML=v.errorMsg?v.errorMsg:coned.constants.ERROR_MESSAGE;f.focus()},ft=function(n){query.addClass(a,coned.constants.ERROR_SERVICE_RESPONSE_CLASS);v=n},w=function(){c.classList.remove(n.HIDDEN_CLASS);c.focus()},y=function(){f.classList.add(n.HIDDEN_CLASS);c.classList.add(n.HIDDEN_CLASS)},et=function(){query.addClass(p,n.HIDDEN_CLASS);query.removeClass(l,n.HIDDEN_CLASS);l.focus();window.scrollTo(0,0)},ot=function(){r=i.getElementsByClassName(n.ACCOUNT_CHECKBOX_JS);s=i.getElementsByClassName(n.ACCOUNT_COUNTER)[0];u=i.getElementsByClassName(n.SELECTED_ACCOUNTS_LINK)[0];o=i.getElementsByClassName(n.SELECT_ALL_ACCOUNTS_CHECK)[0];h=i.getElementsByClassName(n.SHOW_MORE_LINK_SELECTOR)[0];f=i.getElementsByClassName(n.SERVICE_ERROR_SELECTOR)[0];c=i.getElementsByClassName(n.MAX_ACCOUNT_ERROR_SELECTOR)[0];p=i.getElementsByClassName(n.REGISTER_ACCOUNTS_SELECTOR)[0];l=i.getElementsByClassName(n.NOTIFICATION_ONBOARDING_SELECTOR)[0];a=i.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];e=!0},st=function(){coned.utils.addGeneralListeners(h,k);coned.utils.addGeneralListeners(u,g);o.addEventListener("change",b);d();u.disabled=!0;_.each(r,function(n){coned.utils.addGeneralListeners(n,nt)});dataLayer.push({event:"virtualPageView",virtualPageUrl:"/en/add-account/select-matched-accounts"})},ht=function(){ot();st();t=!0};ht()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.MyAccount=function(){var n={FORM_LOADING:"js-form-loading",FORM_LOADING_HIDDEN:"form-loading--hidden",LAZY_LOAD_CLASS:"js-lazy-load"},t=!1,i=function(i){var r,u=function(){query.hasClass(i,n.LAZY_LOAD_CLASS,!0)?window.addEventListener("modules-loaded",function(){coned.utils.triggerEvent(i,"lazy-load-start")}):(f(),e(),t=!0)},f=function(){r=document.getElementsByClassName(n.FORM_LOADING)[0]},e=function(){r&&r.classList.add(n.FORM_LOADING_HIDDEN)},o=function(){u()};o()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.NavigationButtonsBanner=function(){var n={BACK_BUTTON:"js-back-button",CONTINUE_BUTTON:"js-continue-button",CURRENT_STEP:"js-current-step",FIRST_STEP_NAV_BUTTONS:"navigation-buttons__content--first-step",NAVIGATION_BANNER_SELECTOR:"js-navigation-banner",HIDDEN_CLASS:"hidden",STEPS_PARENT_SELECTOR:"js-steps-parent",RESULT_OVERVIEW_SELECTOR:"js-result-overview",DATA_ACCOUNT_TYPE_ATTRIBUTE:"data-account-type",COMMERCIAL_STRING:"C",DATA_LAYER_EVENT_STR:"data-layer",FINANCIAL_ADVISOR_TAGGING:"FA.",DATA_STATUS_TAGGING:"data-status"},t=!1,i=function(i){var f,o,e,u,r,s=function(t){var l,a;t.preventDefault();r++;var v=u.getAttribute(n.DATA_ACCOUNT_TYPE_ATTRIBUTE)===n.COMMERCIAL_STRING,o=u.getElementsByClassName(n.CURRENT_STEP)[0],c=u.getElementsByClassName(n.RESULT_OVERVIEW_SELECTOR)[0],s=v||u.childElementCount-1<=r?c:u.querySelectorAll('[data-step="'+r+'"]')[0],y=query.hasClass(s,n.RESULT_OVERVIEW_SELECTOR),p=o.getAttribute(n.DATA_LAYER_EVENT_STR);h(p);y?(l=c.getAttribute(n.DATA_STATUS_TAGGING),a=n.FINANCIAL_ADVISOR_TAGGING+l,query.addClass(i,n.HIDDEN_CLASS),dataLayer.push({event:a})):(query.removeClass(o,n.CURRENT_STEP),query.removeClass(f,n.HIDDEN_CLASS),query.removeClass(e,n.FIRST_STEP_NAV_BUTTONS));query.addClass(o,n.HIDDEN_CLASS);query.removeClass(s,n.HIDDEN_CLASS);query.addClass(s,n.CURRENT_STEP)},h=function(n){var t={};n.split(",").forEach(function(n){var i=n.split(":"),r=i[0].trim(),u=i[1].trim();t[r]=u});dataLayer.push(t)},c=function(){r--;var t=i.getElementsByClassName(n.CURRENT_STEP)[0],u=i.querySelectorAll('[data-step="'+r+'"]')[0];t.classList.add(n.HIDDEN_CLASS);t.classList.remove(n.CURRENT_STEP);u.classList.add(n.CURRENT_STEP);u.classList.remove(n.HIDDEN_CLASS);r===1&&(f.classList.add(n.HIDDEN_CLASS),e.classList.add(n.FIRST_STEP_NAV_BUTTONS))},l=function(){f=i.getElementsByClassName(n.BACK_BUTTON)[0];o=i.getElementsByClassName(n.CONTINUE_BUTTON)[0];e=i.getElementsByClassName(n.NAVIGATION_BANNER_SELECTOR)[0];u=document.getElementsByClassName(n.STEPS_PARENT_SELECTOR)[0];r=1},a=function(){coned.utils.addGeneralListeners(o,s);coned.utils.addGeneralListeners(f,c)},v=function(){l();a();t=!0};v()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.NotificationOnboarding=function(){var n={FORM_IGNORE_VALIDATION:"js-validate-ignore",HIDDEN_CLASS:"hidden",EMPTY_STRING:"",NOTIFICATION_CHECK:"js-notification-check",NOTIFICATION_CHECK_EMAIL:"js-notification-check-email",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",FORM_LOADING:"js-form-loading",EDIT_SCID:"ScId",TURN_ON_EMAIL_NOTIFICATION_EVENT:"turn-on-email-notification",TRUE_STRING:"true",TRUE_VALUE:!0,FALSE_VALUE:!1,TOAST:"js-toast",SHOW_TOAST_EVENT:"show-toast-event",GENERAL_NOTIFICATION_TAG:"general.notification",ON_STRING:"on",OFF_STRING:"off",PERIOD_STRING:"."},t=!1,i=function(i){var e,l,r,u,a,o,s,f,v,h=function(t,f,e){var o=t,h,c=o?!0:!1,s;r=o?t.target.parentNode:f.parentNode;h=r.dataset.service;u=o?t.target:f;s={ScId:query.getFormInputValue(i,n.EDIT_SCID),PreferenceBillReminderId:r.dataset.preferenceBillReminder,PreferenceOnlineTransConfirmId:r.dataset.preferenceOnlineTransConfirm,PreferencePaymentProcessedId:r.dataset.preferencePaymentProcessed,PreferencePaymentDueId:r.dataset.preferencePaymentDue,ChannelName:r.dataset.channel,Value:o?u.checked:e};s=JSON.stringify(s);query.postData(h,function(){y(c,e);o&&p(r,u)},function(){w(c)},s,!0,l)},y=function(n,t){b();n?k():u.checked=t},p=function(t,i){var r=n.PERIOD_STRING+t.dataset.channel.toLowerCase(),u=i.checked?n.PERIOD_STRING+n.ON_STRING:n.PERIOD_STRING+n.OFF_STRING;dataLayer.push({event:n.GENERAL_NOTIFICATION_TAG+r+u})},w=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.DEFAULT_SERVICE_ERROR,n?c:function(){},n?c:function(){},!0):n&&c()},c=function(){u.checked=!u.checked;var t=r.dataset.serviceError?r.dataset.serviceError:coned.constants.ERROR_MESSAGE;o.classList.remove(n.HIDDEN_CLASS);s.innerHTML=t},b=function(){o.classList.add(n.HIDDEN_CLASS);s.innerHTML=""},k=function(){coned.utils.triggerEvent(a,n.SHOW_TOAST_EVENT)},d=function(){e=i.getElementsByClassName(n.NOTIFICATION_CHECK);l=i.getElementsByClassName(n.FORM_LOADING)[0];a=i.getElementsByClassName(n.TOAST)[0];o=i.getElementsByClassName(n.SERVICE_ERROR)[0];s=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];f=i.getElementsByClassName(n.NOTIFICATION_CHECK_EMAIL)[0];v=i.dataset.standalone===n.TRUE_STRING?n.TRUE_VALUE:n.FALSE_VALUE},g=function(){e.length>0&&Array.from(e).forEach(function(n){coned.utils.addGeneralListeners(n,h)});v?f&&h(null,f,!0):i.addEventListener(n.TURN_ON_EMAIL_NOTIFICATION_EVENT,function(){f&&h(null,f,!0)})},nt=function(){d();g();t=!0};nt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.NYISOCalculator=function(){var n={FORM:"js-nyiso-calculator-form",CLEAR_BTN_CLASS:"js-reset-button",NYISO_ZONE:"js-nyiso-zone",NYISO_RESULT_TABLE_DESCRIPTION_CLASS:"js-result-table-description",NYISO_RESULT_TABLE_CLASS:"js-nyiso-result",NYISO_SERVICE_ERROR:"js-nyiso-service-error",TABLE_ROW:"js-data-table-row",TABLE_ROW_HOUR:"js-nyiso-hour",TABLE_ROW_PRICE:"js-nyiso-price",FORM_SITECORE_ID:"scId",FORM_DATE:"nyisoDate",FORM_ZONE:"nyisoZone",FORM_LOADING:"js-form-loading",ERROR_MESSAGE:"js-error-message",HIDDEN_CLASS:"hidden",RECAPTCHA_ELEMENT:"js-recaptcha"},t=!1,i=function(i){var u,l,a,s,f,e,h,r,o,p=function(){e.classList.add(n.HIDDEN_CLASS);s.classList.add(n.HIDDEN_CLASS);f.classList.add(n.HIDDEN_CLASS);o&&r&&r.reset();setTimeout(function(){a.focus()},500)},c=function(){var l=i.dataset.serviceUrl,t,s,c;e.classList.add(n.HIDDEN_CLASS);f.classList.add(n.HIDDEN_CLASS);s=o&&r?r.getResponse():"";t={scId:query.getFormInputValue(document,n.FORM_SITECORE_ID),loadZone:query.getDropdownSelectedValue(u,n.FORM_ZONE),date:coned.utils.serviceDateFormat(query.getInputValue(u,n.FORM_DATE)),verify:s};c=JSON.stringify(t);query.postData(l,w,b,c,!0,h)},w=function(n){coned.utils.isPatternLab()?n=query.getData(coned.plConstants.GET_NYISO_CALCULATOR_CALCULATE,v,function(){}):v(n)},v=function(t){var r=f.getElementsByTagName("tbody")[0],u=i.getElementsByClassName(n.TABLE_ROW)[0].cloneNode(!0);r.innerHTML="";r.appendChild(u);_.each(t.Prices,function(t){var i=u.cloneNode(!0),e=i.getElementsByClassName(n.TABLE_ROW_HOUR)[0],f;e.innerHTML=t.Hour;f=i.getElementsByClassName(n.TABLE_ROW_PRICE)[0];f.innerHTML=t.Price;i.classList.remove(n.HIDDEN_CLASS);r.appendChild(i)});u.classList.add(n.HIDDEN_CLASS);s.classList.remove(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);f.focus()},b=function(n){coned.utils.isPatternLab()?n=query.getData(coned.plConstants.GET_NYISO_CALCULATOR_SERVICES_ERROR,y,function(){}):y(n)},y=function(t){var i=e.getElementsByClassName(n.ERROR_MESSAGE)[0];i.innerText=t.errorMsg&&t.errorMsg!==""?t.errorMsg:i.innerText;e.classList.remove(n.HIDDEN_CLASS);e.focus()},k=function(){h.classList.remove(n.FORM_LOADING_HIDDEN);o&&r&&(r.getResponse()!==""&&r.reset(),r.checkRecaptcha())},d=function(){u=i.getElementsByClassName(n.FORM)[0];l=i.getElementsByClassName(n.CLEAR_BTN_CLASS)[0];a=u.getElementsByClassName(n.NYISO_ZONE)[0];s=i.getElementsByClassName(n.NYISO_RESULT_TABLE_DESCRIPTION_CLASS)[0];f=i.getElementsByClassName(n.NYISO_RESULT_TABLE_CLASS)[0];e=i.getElementsByClassName(n.NYISO_SERVICE_ERROR)[0];h=document.getElementsByClassName(n.FORM_LOADING)[0];r=!1;o=i.getElementsByClassName(n.RECAPTCHA_ELEMENT)[0]},g=function(){o?(new coned.components.ValidateForm(u,k),r=new coned.components.Recaptcha(i,c,c)):new coned.components.ValidateForm(u,c);coned.utils.addGeneralListeners(l,p)},nt=function(){d();g();t=!0};nt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.OdbrChartsComponent=function(){var n={ARIA_CURRENT:"aria-current",CONED_ENERGY_USAGE:"energy-usage",CONED_CHART:"coned-chart",CONED_CHART_HIDE_CLASS:"coned-chart--hide",CONED_CHART_TAB_ACTIVE_CLASS:"coned-tabs__tab-item--active",CONED_CHART_DEMAND_TAB_HIDDEN:"coned-tabs--visibility-hidden",CONED_CHART_DATE:"coned-chart__middle-text--date",CONED_CHART_MONTH_BUTTON:"js-coned-chart-monthly",CONED_CHART_DATE_BUTTON:"js-coned-chart-daily",CONED_CHART_BUTTON_DISABLED:"coned-chart__buttons--square-blue-disabled",CONED_CHART_PEAK_CONTENT:"coned-chart__peak-content",CONED_CHART_BUTTONS_HIDE:"coned-chart__buttons--hide",CONED_CHART_ARROW_HIDE:"coned-chart__arrow--hide",CONED_CHART_LEFT_ARROW:"coned-chart__arrow--left",CONED_CHART_RIGHT_ARROW:"coned-chart__arrow--right",CONED_CHART_ERROR:"coned-chart__error-message",CONED_CHART_FORM_LOADING:"js-form-loading",CONED_CHART_PEAK_OPTION:"js-coned-radio-chart-peak",CONED_CHART_OFFPEAK_OPTION:"js-coned-radio-chart-offpeak",CONED_CHART_DEMAND_BUTTON:"js-demandTab",CONED_CHART_MOBILE_DEMAND:"js-demandMobileTab",CONED_CHART_ERROR_MESSAGE:"js-chart-module-error",CONED_CHART_NODATA_MESSAGE:"js-chart-module-noData-error",CONED_CHART_MODULE:"js-chart-module-content",CONED_CHART_CONTAINER:"js-chart-container",CONED_CHART_NOTE:"js-chart-note",CONED_CHART_SERVICE:"data-chart-service",CONED_CHART_DATA_MAID:"data-maid",CONED_CHART_DATA_RATE:"data-rate",CONED_CHART_DATA_TIME:"data-chart-time",CONED_CHART_DATA_TYPE:"data-chart-type",CONED_CHART_DATE_TEXT:"data-chart-date-text",CONED_CHART_DATA_FROM_DATE:"data-from-date",CONED_CHART_DATA_TO_DATE:"data-to-date",CONED_CHART_DATA_ZERO_HOVER:"data-zero-value-hover",CONED_CHART_DATA_REGULAR_HOVER:"data-regular-day-hover",CONED_CHART_DATA_SPECIAL_HOVER:"data-chart-special-day",CONED_CHART_BILLING_ERROR:"data-billing-error",CONED_CHART_DATA_PERIOD:"data-period",CONED_CHART_DATA_WEEK:"data-week",CONED_CHART_DATA_SYMBOL:"data-symbol",CONED_CHART_TYPE:"Type",CONED_CHART_FIXED_SUBSCRIPTION:"fixedSubscriptionRate",CONED_CHART_TOTAL_AVERAGE_DEMAND_VALUE:"totalAverageDemandValue",CONED_CHART_SPP_OPTION:"SPP",CONED_CHART_ODBR_OPTION:"ODBR",CONED_CHART_STANDARD_OPTION:"Standard",CONED_CHART_PEAK:"Peak",CONED_CHART_OFFPEAK:"OffPeak",CONED_CHART_OFF_PEAK:"Off-Peak",CONED_CHART_GROUPBY_MONTHLY:"Monthly",CONED_CHART_GROUPBY_WEEKLY:"Weekly",CONED_CHART_YEAR:"Year",CONED_CHART_QUATER:"Quarter",CONED_CHART_NO_DATA:"None",CONED_CHART_RADIO_OPTION:"peak",CONED_CHART_DEMAND:"demand",CONED_CHART_USAGE:"usage",CONED_CHART_BILLING:"billing",CONED_CHART_MONTHLY:"monthly",CONED_CHART_DAILY:"daily",CONED_CHART_TRUE:"true",CONED_HIDDEN_CLASS:"hidden",CONED_DISABLED_ATTR:"disabled",CONED_CHART_PEAK_COLOR:"#27aa5e",CONED_CHART_OFFPEAK_COLOR:"#19522c",CONED_CHART_WHITE_COLOR:"#fff",CONED_DATA_ATTRIBUTES_JSON:"/_static/legendDataAttributes.json"},t=!1,i=function(i){var oi,c,l,bt,si,lr,st,lt,kt,o,y,nr,ft,ar,et,it,vr,ru,at,uu,w,nt,rt,yr,d,pr,wr,dt,gt,vi,hi,tr,yi,s,fi,pi,r,br,kr,a,wi,bi,ir,h,rr,dr,tt,fu,eu,gr,ki,ni,ot,ht,di,ti,ci,e,g,nu,u,f,vt,yt,ut,p,k,v,b,pt,ii,gi,ri,tu,ur,ou,su,fr,er=function(){var i=oi.dataset.getBillingPeriods,t,r=oi.getAttribute(n.CONED_CHART_DATA_MAID);ri=ri?ri:oi.getAttribute(n.CONED_CHART_DATA_RATE);query.addClass(ft,n.CONED_HIDDEN_CLASS);o.setAttribute(n.CONED_DISABLED_ATTR,!0);y.setAttribute(n.CONED_DISABLED_ATTR,!0);t=coned.chartComponents.getBillingPeriods(ri,ti,r);query.getData(i,yu,or,t)},or=function(){dataLayer.push({event:"ODBR.demand.error.message"});ti=ti-12;query.addClass(it,n.CONED_HIDDEN_CLASS);query.removeClass(ft,n.CONED_HIDDEN_CLASS);query.addClass(et,n.CONED_HIDDEN_CLASS);query.addClass(o,n.CONED_CHART_ARROW_HIDE);query.removeClass(y,n.CONED_CHART_ARROW_HIDE);kt.innerHTML=nr.getAttribute(n.CONED_CHART_BILLING_ERROR);s===n.CONED_CHART_MONTHLY?ii=!0:pt=!0},yu=function(n){if(coned.utils.isPatternLab()){var t=coned.plConstants.GET_CHART_BILLING_PERIODS_ODBR;query.getData(t,hu,or)}else hu(n)},hu=function(t){if(d=d.concat(t.periods),hi=t.morePeriods,tr=t.currentPeriodType,ci=si.getAttribute(n.CONED_CHART_DATA_SYMBOL),hi&&query.removeClass(o,n.CONED_CHART_ARROW_HIDE),t&&t.periods&&t.periods.length>0){query.removeClass(si,n.CONED_CHART_DEMAND_TAB_HIDDEN);query.removeClass(lr,n.CONED_HIDDEN_CLASS);var i=t.periods,u=Object.keys(i),r;ht=[];u.forEach(function(t){ht.push(i[t].billToDate);i[t].billProgram===n.CONED_CHART_SPP_OPTION&&vi++;(i[t].billProgram===n.CONED_CHART_SPP_OPTION||i[t].billProgram===n.CONED_CHART_STANDARD_OPTION)&&(r=t)});pr=i[r].billFromDate;wr=i[0].billToDate;bu();o.removeAttribute(n.CONED_DISABLED_ATTR);y.removeAttribute(n.CONED_DISABLED_ATTR);kr?kr=!1:document.activeElement===document.body&&o.focus()}else query.addClass(lr,n.CONED_HIDDEN_CLASS),query.addClass(si,n.CONED_CHART_DEMAND_TAB_HIDDEN)},cu=function(t){t.preventDefault();w.length===0&&(query.addClass(ft,n.CONED_HIDDEN_CLASS),query.removeClass(it,n.CONED_HIDDEN_CLASS),query.removeClass(et,n.CONED_HIDDEN_CLASS),sr());coned.utils.removeMultipleListeners(si,coned.utils.generalEvents(),cu)},pu=function(t){t.preventDefault();var i=c.classList.contains(n.CONED_CHART_BUTTON_DISABLED);i||(dataLayer.push({event:"ODBR.demand.toggle.view",ToggleLevel:"Daily"}),coned.chart.showTableInfo(at.parentElement,r,!1),tr&&tr!==n.CONED_CHART_NO_DATA?au(tr):au(n.CONED_CHART_PEAK),cr(c))},wu=function(){var i,t,u;(dataLayer.push({event:"ODBR.demand.toggle.view",ToggleLevel:"Monthly"}),i=l.classList.contains(n.CONED_CHART_BUTTON_DISABLED),i)||(coned.chart.showTableInfo(at.parentElement,r,!1),pt&&(t=document.getElementById(r),t&&(u=t.getAttribute(n.CONED_CHART_DATE_TEXT),kt.innerHTML=u,query.removeClass(it,n.CONED_HIDDEN_CLASS),query.addClass(ft,n.CONED_HIDDEN_CLASS),query.removeClass(et,n.CONED_HIDDEN_CLASS),pt=!1)),ii&&!w[0]?(query.addClass(bt,n.CONED_CHART_BUTTONS_HIDE),query.removeClass(c,n.CONED_CHART_BUTTON_DISABLED),query.addClass(l,n.CONED_CHART_BUTTON_DISABLED),l.setAttribute(n.ARIA_CURRENT,!0),c.setAttribute(n.ARIA_CURRENT,!1),sr()):(s=n.CONED_CHART_MONTHLY,g=0,f=0,e=0,wt(w[0]),st&&st.setAttribute(n.CONED_DISABLED_ATTR,"true"),ai(w[0]),cr(l)))},bu=function(){var o=ht.length-1,t=ht[o],r=ht[0],u=i.getElementsByClassName(n.CONED_CHART_TAB_ACTIVE_CLASS)[0];if(h=coned.chartComponents.generateMonthlyDate(t,r,fu),!di&&u.classList.contains(n.CONED_CHART_TAB_ACTIVE_CLASS)&&u.click(),di&&s===n.CONED_CHART_MONTHLY)h=coned.chartComponents.generateMonthlyDate(t,r,tt),sr();else if(di&&s===n.CONED_CHART_DAILY){var f=ct(),c=f===n.CONED_CHART_PEAK?nt:rt,l=c.indexOf(a)+1,v=coned.utils.isMobile()||coned.utils.isTablet()?e:l;li(f,v)}},sr=function(){if(d){var i=l.getAttribute(n.CONED_CHART_SERVICE),t,r=oi.getAttribute(n.CONED_CHART_DATA_MAID),u=coned.utils.isMobile()||coned.utils.isTablet()?n.CONED_CHART_QUATER:n.CONED_CHART_YEAR;yi=n.CONED_CHART_DEMAND;t=coned.chartComponents.callMonthlyService(r,ri,pr,wr,u,!1);query.getData(i,du,ku,t,vr)}},ku=function(){var t=ht.length-1,i=ht[t],r=ht[0];ii=!0;gi=!1;h=coned.chartComponents.generateMonthlyDate(i,r,tt);kt.innerHTML=h;dataLayer.push({event:"ODBR.demand.error.message"});query.removeClass(nr,n.CONED_HIDDEN_CLASS);query.addClass(it,n.CONED_HIDDEN_CLASS);query.addClass(et,n.CONED_HIDDEN_CLASS);query.removeClass(ft,n.CONED_HIDDEN_CLASS);w.length>0?(query.addClass(o,n.CONED_CHART_ARROW_HIDE),query.removeClass(y,n.CONED_CHART_ARROW_HIDE)):(query.addClass(o,n.CONED_CHART_ARROW_HIDE),query.addClass(y,n.CONED_CHART_ARROW_HIDE))},du=function(t){var u=i.getElementsByClassName(n.CONED_CHART_TAB_ACTIVE_CLASS)[0];query.addClass(ft,n.CONED_HIDDEN_CLASS);query.removeClass(it,n.CONED_HIDDEN_CLASS);query.removeClass(et,n.CONED_HIDDEN_CLASS);ht=[];gi=hi?!1:!0;ei(u);w.push(r);ii=!1;coned.utils.isPatternLab()?query.getData(br,ui,or):ui(t)},ct=function(){var t=query.getFormInputValue(i,n.CONED_CHART_RADIO_OPTION);return t?t:n.CONED_CHART_PEAK},ei=function(t){var u="",o,a,v="";s=t.getAttribute(n.CONED_CHART_DATA_TIME);fi="";s===n.CONED_CHART_DAILY?(query.addClass(c,n.CONED_CHART_BUTTON_DISABLED),query.removeClass(l,n.CONED_CHART_BUTTON_DISABLED),l.setAttribute(n.ARIA_CURRENT,!1),c.setAttribute(n.ARIA_CURRENT,!0),fi=query.getFormInputValue(i,n.CONED_CHART_RADIO_OPTION),fi=fi?fi:"",dt=d[e].billFromDate,gt=d[e].billToDate,o=coned.chartComponents.generateDailyDate(dt,gt,!1,tt).replace(/\s|[,]/g,""),fi!=""&&query.removeClass(bt,n.CONED_CHART_BUTTONS_HIDE),(coned.utils.isMobile()||coned.utils.isTablet())&&(u="M",v=f)):(query.addClass(l,n.CONED_CHART_BUTTON_DISABLED),query.removeClass(c,n.CONED_CHART_BUTTON_DISABLED),l.setAttribute(n.ARIA_CURRENT,!0),c.setAttribute(n.ARIA_CURRENT,!1),o=h?h.replace(/\s|[,]/g,""):coned.chartComponents.generateMonthlyDate(pr,wr,tt).replace(/\s|[,]/g,""),u=coned.utils.isMobile()||coned.utils.isTablet()?"M":"");yi===undefined&&(yi=t.getAttribute(n.CONED_CHART_DATA_TYPE));a=coned.utils.isPatternLab()?n.CONED_CHART_SPP_OPTION+"/":"";r=yi+o+fi;br="/get-content/charts/"+a+r+u+".json";r+=v},ui=function(t){var c,l,a,y;if(s===n.CONED_CHART_DAILY)if(coned.utils.isTablet()||coned.utils.isMobile()){f=fr?t.items.length-1:f;fr=!1;var o=ct(),w=o===n.CONED_CHART_PEAK?vt:yt,it=o===n.CONED_CHART_PEAK?v:b,ft=o===n.CONED_CHART_PEAK?document.getElementById(rt[g]):document.getElementById(nt[g]),et=o===n.CONED_CHART_PEAK?nt:rt,ot=i.getElementsByClassName(n.CONED_CHART_DATE_BUTTON)[0],st=d[e].billRates;w[e]||(o===n.CONED_CHART_PEAK?vt[e]=t:yt[e]=t);f=f<0?ft.getAttribute(n.CONED_CHART_DATA_WEEK):f;t.items[f]||(y=document.getElementById(r),f=parseInt(y.getAttribute(n.CONED_CHART_DATA_WEEK))+1);c=t.items[f].periods.length-1;l=t.items[f].periods[0].demandDate;a=t.items[f].periods[c].demandDate;h=coned.chartComponents.generateDailyDate(a,l,!1,tt);ei(ot);st&&_.invert(it[u])[r]===undefined?gu():et.indexOf(r)<0&&lu();t=t.items[f]}else c=t.items[f].periods.length-1,l=t.items[f].periods[0].demandDate,a=t.items[f].periods[c].demandDate,h=coned.chartComponents.generateDailyDate(a,l,!1,tt),t=t.items[0];else if(ut[p]===undefined&&(ut[p]=t.items),coned.utils.isTablet()||coned.utils.isMobile()){var ht=ut[p][k].periods.length-1,lt=ut[p][k].periods[ht].endDate,at=ut[p][k].periods[0].endDate;h=coned.chartComponents.generateMonthlyDate(lt,at,tt);t=t.items?t.items[k]:t}else t=t.items[0];rf(t)},gu=function(){var t=r;t=t.match(/[A-Za-z]*[0-9]*-[A-Za-z]*[0-9]*/g)[0];v[u]===undefined&&(v[u]={});v[u][f]=t+n.CONED_CHART_PEAK+f;b[u]===undefined&&(b[u]={});b[u][f]=t+n.CONED_CHART_OFFPEAK+f},lu=function(){var t=r,i;t=t.match(/[A-Za-z]*[0-9]*-[A-Za-z]*[0-9]*/g)[0];i=coned.utils.isTablet()||coned.utils.isMobile()?f:"";nt.push(t+n.CONED_CHART_PEAK+i);rt.push(t+n.CONED_CHART_OFFPEAK+i)},au=function(t){var u=!0,r,i,f,e;ii&&(query.removeClass(it,n.CONED_HIDDEN_CLASS),query.addClass(ft,n.CONED_HIDDEN_CLASS),query.removeClass(et,n.CONED_HIDDEN_CLASS));st.removeAttribute(n.CONED_DISABLED_ATTR);t===n.CONED_CHART_PEAK?(st.checked=!0,lt.checked=!1):(st.checked=!1,lt.checked=!0);r=ct();i=r===n.CONED_CHART_PEAK?nt:rt;f=r===n.CONED_CHART_PEAK?v:b;i=coned.utils.isMobile()||coned.utils.isTablet()?f[0]:i;e=coned.utils.isMobile()||coned.utils.isTablet()?i!==undefined?Object.keys(i).length:0:i.length;e>0&&(s=n.CONED_CHART_DAILY,u=!1,wt(i[0]));u&&li(t,0)},li=function(t,i){var f,h=c.getAttribute(n.CONED_CHART_SERVICE),r,o=d[e].billRates,l=oi.getAttribute(n.CONED_CHART_DATA_MAID),s;u=i;t===n.CONED_CHART_PEAK?(pi=n.CONED_CHART_PEAK,lt.checked=!1):(pi=n.CONED_CHART_OFFPEAK,st.checked=!1);f=coned.utils.isMobile()||coned.utils.isTablet()?n.CONED_CHART_GROUPBY_WEEKLY:n.CONED_CHART_GROUPBY_MONTHLY;dt=d[i].billFromDate;gt=d[i].billToDate;s=o&&o.indexOf(t)>-1?t:n.CONED_CHART_NO_DATA;r=coned.chartComponents.getDailyChart(l,ri,dt,gt,f);r[n.CONED_CHART_TYPE]=s;query.getData(h,tf,nf,r,vr)},nf=function(){dataLayer.push({event:"ODBR.demand.error.message"});pt=!0;h=coned.chartComponents.generateDailyDate(dt,gt,!0,tt);kt.innerHTML=h;query.addClass(o,n.CONED_CHART_ARROW_HIDE);query.addClass(et,n.CONED_HIDDEN_CLASS);query.addClass(it,n.CONED_HIDDEN_CLASS);query.removeClass(ft,n.CONED_HIDDEN_CLASS);query.addClass(c,n.CONED_CHART_BUTTON_DISABLED);query.removeClass(l,n.CONED_CHART_BUTTON_DISABLED);query.removeClass(bt,n.CONED_CHART_BUTTONS_HIDE);l.setAttribute(n.ARIA_CURRENT,!1);c.setAttribute(n.ARIA_CURRENT,!0);var t=ct(),i=t===n.CONED_CHART_PEAK?nt:rt;u==="0"?(query.addClass(o,n.CONED_CHART_ARROW_HIDE),query.addClass(y,n.CONED_CHART_ARROW_HIDE)):g>0&&g-1<i.length&&(query.addClass(o,n.CONED_CHART_ARROW_HIDE),query.removeClass(y,n.CONED_CHART_ARROW_HIDE))},tf=function(t){var e=i.getElementsByClassName(n.CONED_CHART_DATE_BUTTON)[0],o=ct(),u=o===n.CONED_CHART_PEAK?nt:rt;if(query.removeClass(it,n.CONED_HIDDEN_CLASS),query.addClass(ft,n.CONED_HIDDEN_CLASS),query.removeClass(et,n.CONED_HIDDEN_CLASS),coned.utils.isMobile()||coned.utils.isTablet())if(nu){var f=document.getElementById(u[g]),s=f.getAttribute(n.CONED_CHART_DATA_FROM_DATE),c=f.getAttribute(n.CONED_CHART_DATA_TO_DATE);h=coned.chartComponents.generateDailyDate(s,c,!1,tt);nu=!1}else h=coned.chartComponents.generateDailyDate(dt,gt,!1,tt);else h=coned.chartComponents.generateDailyDate(dt,gt,!0,tt);cf();ei(e);u[g]&&(r=u[g],ai(r));coned.utils.isMobile()||coned.utils.isTablet()||u.indexOf(r)<0&&lu();coned.utils.isPatternLab()?query.getData(br,ui,or):ui(t)},rf=function(t){var h=document.getElementById(r),u,f,i,e,o;if(s===n.CONED_CHART_DAILY)for(f=gr[r]={},i=0;i<t.periods.length;i++)e=t.periods[i].label,f[e]=[t.periods[i].measuredTime,t.periods[i].specialDay];else k++;query.addClass(bt,n.CONED_CHART_BUTTONS_HIDE);ai(r);h?wt(r):(ot=t.yAxis,u=t.periods,o=document.getElementById(a),query.addClass(o,n.CONED_CHART_HIDE_CLASS),uf(),ff(u.reverse()))},ai=function(t){var i,tt,ft;if(s===n.CONED_CHART_DAILY){var h=ct(),c=h===n.CONED_CHART_PEAK?nt:rt,l=d[e].billRates,it=h===n.CONED_CHART_PEAK?vt:yt,a=h===n.CONED_CHART_PEAK?v:b,g=coned.utils.isMobile()||coned.utils.isTablet()?e:c.indexOf(t),et=(coned.utils.isMobile()||coned.utils.isTablet())&&l&&it[g]&&it[g].items[f+1]?!1:!0;g<vi-1||!et?query.removeClass(o,n.CONED_CHART_ARROW_HIDE):coned.utils.isMobile()||coned.utils.isTablet()?(ft=Object.keys(a[u]).length-1,l?(i=h===n.CONED_CHART_PEAK?v:b,tt=i[u][f+1]||i[u+1]?!0:!1):(i=h===n.CONED_CHART_PEAK?vt:yt,tt=i[e]?i[e].items.length-1>f:!1),hi||tt||a[u][ft]!==t?query.removeClass(o,n.CONED_CHART_ARROW_HIDE):query.addClass(o,n.CONED_CHART_ARROW_HIDE)):hi&&c.indexOf(t)===vi-1?query.removeClass(o,n.CONED_CHART_ARROW_HIDE):query.addClass(o,n.CONED_CHART_ARROW_HIDE);l&&(coned.utils.isMobile()||coned.utils.isTablet())?u>0||_.invert(a[u])[r]>0?query.removeClass(y,n.CONED_CHART_ARROW_HIDE):query.addClass(y,n.CONED_CHART_ARROW_HIDE):c.indexOf(t)>0?query.removeClass(y,n.CONED_CHART_ARROW_HIDE):query.addClass(y,n.CONED_CHART_ARROW_HIDE)}else coned.utils.isTablet()||coned.utils.isMobile()?!gi||ut[p][k]||w.indexOf(t)<w.length-1?query.removeClass(o,n.CONED_CHART_ARROW_HIDE):query.addClass(o,n.CONED_CHART_ARROW_HIDE):!gi||w.indexOf(t)<w.length-1?(query.removeClass(o,n.CONED_CHART_ARROW_HIDE),hr(y,o)):(query.addClass(o,n.CONED_CHART_ARROW_HIDE),hr(o,y)),w.indexOf(t)>0?(query.removeClass(y,n.CONED_CHART_ARROW_HIDE),hr(o,y)):(query.addClass(y,n.CONED_CHART_ARROW_HIDE),hr(y,o))},hr=function(t,i){query.hasClass(t,n.CONED_CHART_ARROW_HIDE)&&document.activeElement===t&&i.focus()},wt=function(t){var i,f,e;ki=a;a=t;r=a;i=document.getElementById(a);f=document.getElementById(ki);query.removeClass(i,n.CONED_CHART_HIDE_CLASS);ki!=a&&query.addClass(f,n.CONED_CHART_HIDE_CLASS);h=i.getAttribute(n.CONED_CHART_DATE_TEXT);u=parseInt(i.getAttribute(n.CONED_CHART_DATA_PERIOD));s===n.CONED_CHART_DAILY?(query.addClass(c,n.CONED_CHART_BUTTON_DISABLED),query.removeClass(l,n.CONED_CHART_BUTTON_DISABLED),l.setAttribute(n.ARIA_CURRENT,!1),c.setAttribute(n.ARIA_CURRENT,!0),query.removeClass(bt,n.CONED_CHART_BUTTONS_HIDE)):(query.addClass(l,n.CONED_CHART_BUTTON_DISABLED),query.removeClass(c,n.CONED_CHART_BUTTON_DISABLED),c.setAttribute(n.ARIA_CURRENT,!1),l.setAttribute(n.ARIA_CURRENT,!0),query.addClass(bt,n.CONED_CHART_BUTTONS_HIDE));e=document.getElementById(t).classList.contains(n.CONED_CHART_ERROR);e?(query.addClass(it,n.CONED_HIDDEN_CLASS),query.removeClass(ar,n.CONED_HIDDEN_CLASS)):(query.removeClass(it,n.CONED_HIDDEN_CLASS),query.addClass(ar,n.CONED_HIDDEN_CLASS),query.removeClass(et,n.CONED_HIDDEN_CLASS));vu();ai(a);coned.chart.fixChartHeight(r)},uf=function(){for(var e=query.getFormInputValue(i,n.CONED_CHART_RADIO_OPTION),o=e?e:n.CONED_CHART_DAILY,u=s===n.CONED_CHART_MONTHLY,h="nonSubscriptionRate",f=u?wi:bi,p=u?l:c,w=o===n.CONED_CHART_PEAK?st:o===n.CONED_CHART_OFFPEAK?lt:c,a=u?p:w,v=tu[s][h].legend,b=tu[s][h].tooltip,y=Object.keys(v),t,r=0;r<y.length;r++)t=y[r],f[t]=a.getAttribute(v[t])+" ("+ci+")",ir[t]=a.getAttribute(b[t]);f.billingCycleTable=at.dataset.billingCycleLegend;f.dateTable=at.dataset.dateLegend},ff=function(t){var r=Object.keys(t[0]),a=Object.keys(t[0]),h={},o,u,i,f,c,l,e;for(s===n.CONED_CHART_MONTHLY?(ur=r.indexOf(n.CONED_CHART_TOTAL_AVERAGE_DEMAND_VALUE)>-1?!0:!1,o=ur?r.length-5:r.length-4,r.splice(0,3),r.splice(o)):(o=r.length,r=r.slice(4,o)),s===n.CONED_CHART_DAILY&&query.removeClass(bt,n.CONED_CHART_BUTTONS_HIDE),h=hf(h,r),u=Object.keys(t).map(function(n){return t[n]}),rr="",dr="",e=0;e<u.length;e++)u[e].splitLabel!=""&&(rr=u[e].label,dr=u[e].splitLabel),i=u[e].beginDate,f=u[e].endDate,i&&f&&(i=i.replace(/T[\s\S]*/g,"T12:00:00"),f=f.replace(/T[\s\S]*/g,"T12:00:00"),i=new Date(i),f=new Date(f),i.setDate(i.getDate()+1),c=tt[i.getMonth()]+" "+i.getDate()+", "+i.getFullYear(),l=tt[f.getMonth()]+" "+f.getDate()+", "+f.getFullYear(),yr[u[e].label]=c+" - "+l);vu();ef(h,a,o,u,r)},ef=function(t,r,u,f,e){for(var o=[],v=[],h,w,b,a,k,p,c,l=0;l<r.length;l++){for(v.push(r[l]),h=0;h<f.length;h++)w=f[h],b=Object.keys(w),b.forEach(function(n){n===r[l]&&v.push(f[h][n])}),a=f[h].totalAverageDemandValue,a&&a!==0&&(k=/[0-9]*(.[0-9])/g,p=a.toString().match(k),ou[h]=p?p[0]:a+".0");o.push(v);v=[]}if(s===n.CONED_CHART_MONTHLY)u=ur?o.length-4:o.length-3,o.splice(0,2),o.splice(u),of(s,yi,e,o,t);else{u=o.length;o=o.slice(3,u);var y=o[2],d=o[1],g=query.getFormInputValue(i,n.CONED_CHART_RADIO_OPTION);for(y[0]=g+y[0],c=1;c<d.length;c++)y[c]=y[c]===!1?null:d[c];sf(s,e,o,t)}return o},of=function(t,i,u,f,e){var c,g=coned.chart.yAxisLines(!1,[],ot,ci),v,nt=rr?[{value:rr,"class":"text-line-year",text:dr}]:[],tt=coned.utils.isMobile()||coned.utils.isTablet()?.25:.75,s,y,p=t===n.CONED_CHART_MONTHLY?wi:bi,w=ct(),it=w===n.CONED_CHART_PEAK?"actualDemand":"offPeakDemand",rt=l.getAttribute(n.CONED_CHART_TOTAL_AVERAGE_DEMAND),o;ki=a;a=r;c=[];v=coned.utils.isMobile()?22:17;d3.select(".coned-chart__container").insert("div").attr("id",r);s=document.getElementById(r);s.setAttribute(n.CONED_CHART_DATE_TEXT,h);y={chartId:r,chartLeftPadding:coned.utils.isMobile()||coned.utils.isTablet()?20:11,chartData:f,colorsObj:e,dataType:c,xAxisLeftPadding:tt,yAxis:ot,kilowattSymbol:ci,dollarSymbol:"",lineArray:g,initialLine:nt,allTotalAverageValue:su,dataMonthlyNames:wi,monthlyPeriodsList:yr,size:v};ni=coned.chart.createBarChart(n.CONED_CHART_ODBR_OPTION,y,!1,rt,undefined,p);var ut=t==="daily"?/-([A-Z])*\w+/g:/-([0-9]{4})/g,b=ot[ot.length-1].length,k=ot[0].length,d=b>k?b:k,ft=t===n.CONED_CHART_MONTHLY;coned.chart.addLegend(u,ni,r,p,ir,it,w,ri,undefined,ft);coned.chart.fixChartHeight(r);coned.chart.initializeTooltips(n.CONED_CHART_ODBR_OPTION,r,"coned-chart-tooltip");coned.chart.deleteYearRect(r);ni.resize();coned.chart.createRect(r,!1,d);coned.chart.fixYearLine(r);coned.chart.resizeWindow(r,ni,ut,!1,d);o=s.querySelector("svg");o&&(o.setAttribute("focusable",!1),o.setAttribute("aria-hidden",!0))},sf=function(t,i,u,o){var d,l;ki=a;a=r;d3.select(".coned-chart__container").insert("div").attr("id",r);var s=document.getElementById(r),w,g=coned.chart.yAxisLines(!1,[],ot,ci),b=ot[ot.length-1].length,k=ot[0].length,nt=b>k?b:k;s.setAttribute(n.CONED_CHART_DATE_TEXT,h);s.setAttribute(n.CONED_CHART_DATA_FROM_DATE,dt);s.setAttribute(n.CONED_CHART_DATA_TO_DATE,gt);s.setAttribute(n.CONED_CHART_DATA_PERIOD,e);s.setAttribute(n.CONED_CHART_DATA_WEEK,f);w=pi===n.CONED_CHART_OFFPEAK?"coned-line-offPeakChart":"coned-line-peakChart";var tt=coned.utils.isMobile()||coned.utils.isTablet()?.4:1.5,it=coned.utils.isMobile()||coned.utils.isTablet()?20:11,c=ct(),rt={chartId:r,chartLeftPadding:it,chartData:u,colorsObj:o,peakClass:w,generalDailyData:gr,allCompleteMonths:eu,xAxisLeftPadding:tt,yAxis:ot,linesArray:g,kilowattSymbol:ci},v,y,p;if(c===n.CONED_CHART_OFFPEAK?(v=lt.getAttribute(n.CONED_CHART_DATA_ZERO_HOVER),p=lt.getAttribute(n.CONED_CHART_DATA_REGULAR_HOVER),y=lt.getAttribute(n.CONED_CHART_DATA_SPECIAL_HOVER)):c===n.CONED_CHART_PEAK&&(v=st.getAttribute(n.CONED_CHART_DATA_ZERO_HOVER),p=st.getAttribute(n.CONED_CHART_DATA_REGULAR_HOVER),y=st.getAttribute(n.CONED_CHART_DATA_SPECIAL_HOVER)),ni=coned.chart.createLineChart(n.CONED_CHART_ODBR_OPTION,rt,v,y,p,!1,undefined,bi),u.length>0){var ut=t===n.CONED_CHART_MONTHLY?wi:bi,ft=c===n.CONED_CHART_PEAK?"actualDemand":"offPeakDemand",et=t===n.CONED_CHART_MONTHLY;coned.chart.addLegend(i,ni,r,ut,ir,ft,c,ri,undefined,et);coned.chart.fixChartHeight(r);coned.chart.initializeTooltips(n.CONED_CHART_ODBR_OPTION,r,"coned-chart-tooltip")}coned.chart.deleteYearRect(r);coned.chart.resizeChart(r,ni,!1,nt);d=t==="daily"?/-([A-Z])*\w+/g:/-([0-9]{4})/g;coned.chart.fixXaxisValues(r,d);l=s.querySelector("svg");l&&(l.setAttribute("focusable",!1),l.setAttribute("aria-hidden",!0))},hf=function(t,i){var f,r,e,u;if(s===n.CONED_CHART_MONTHLY)for(f=[n.CONED_CHART_PEAK_COLOR,n.CONED_CHART_OFFPEAK_COLOR],r=0;r<i.length;r++)t[i[r]]=f[r];else for(e=ct(),f=e===n.CONED_CHART_PEAK?[n.CONED_CHART_PEAK_COLOR,n.CONED_CHART_WHITE_COLOR]:[n.CONED_CHART_OFFPEAK_COLOR,n.CONED_CHART_WHITE_COLOR],u=0;u<i.length;u++)t[i[u]]=f[u];return t},vu=function(){query.removeClass(nr,n.CONED_HIDDEN_CLASS);kt.innerHTML=h},iu=function(t){var a=t===n.CONED_CHART_OFFPEAK?n.CONED_CHART_OFF_PEAK:t,h,o,s=g,y=ct(),c=y===n.CONED_CHART_PEAK?vt:yt,p=c[e]?!0:!1,w=i.getElementsByClassName(n.CONED_CHART_DATE_BUTTON)[0],l=d[e].billRates;dataLayer.push({event:"ODBR.demand.peak.offpeak.view",PeakLevel:a});coned.chart.showTableInfo(at.parentElement,r,!1);pt&&(query.removeClass(it,n.CONED_HIDDEN_CLASS),query.addClass(ft,n.CONED_HIDDEN_CLASS),query.removeClass(et,n.CONED_HIDDEN_CLASS),ai(r));t===n.CONED_CHART_OFFPEAK?(pi=n.CONED_CHART_OFFPEAK,st.checked=!1,l&&(coned.utils.isMobile()||coned.utils.isTablet())?b[u]&&(o=b[u][f]):o=rt[s]):(pi=n.CONED_CHART_PEAK,lt.checked=!1,s=s===-1?0:s,l&&(coned.utils.isMobile()||coned.utils.isTablet())?v[u]&&(o=v[u][f]):o=nt[s]);h=document.getElementById(o);h?wt(o):p?(ei(w),ui(c[e])):d[e]?li(t,e):er();pt=!1},cf=function(){v[u.toString()]=v[u.toString()]!==undefined?v[u.toString()]:{};b[u.toString()]=b[u.toString()]!==undefined?b[u.toString()]:{}},lf=function(t){var ni,o,ii,it,l,pt,ft,et,ot,st;if(t.preventDefault(),coned.chart.showTableInfo(at.parentElement,r,!1),dataLayer.push({event:"ODBR.demand.navigation.billing",label:"Backward arrow"}),di=!0,s===n.CONED_CHART_MONTHLY)w.indexOf(a)===w.length-1?(it=12,ut[p]&&ut[p][k]&&(coned.utils.isMobile()||coned.utils.isTablet())?(p=ut[p][k]?p:p++,k=ut[p][k]?k:0,ft=i.getElementsByClassName(n.CONED_CHART_TAB_ACTIVE_CLASS)[0],et=ut[p][k].periods.length-1,ot=ut[p][k].periods[et].beginDate,st=ut[p][k].periods[0].endDate,h=coned.chartComponents.generateMonthlyDate(ot,st,tt),ei(ft),w.push(r),ui(ut[p][k])):ht.length>0?(et=ht.length-1,ot=ht[et],st=ht[0],h=coned.chartComponents.generateMonthlyDate(ot,st,tt),p++,k=0,sr()):(ti=ti+it,p++,k=0,er())):(o=w.indexOf(a),ni=w[o+1],wt(ni));else{var y=ct(),bt=y===n.CONED_CHART_PEAK?nt:rt,c=y===n.CONED_CHART_PEAK?vt:yt,kt=y===n.CONED_CHART_PEAK?v:b,dt,gt,ri,lt=d[e].billRates;o=lt&&(coned.utils.isMobile()||coned.utils.isTablet())?_.invert(kt[u])[a]:bt.indexOf(a);pt=lt&&(coned.utils.isMobile()||coned.utils.isTablet())?c[u]&&c[u].items[parseInt(o)+1]===undefined||c[u]===undefined?u+1:u:u;o=lt&&(coned.utils.isMobile()||coned.utils.isTablet())?c[u]&&c[u].items[parseInt(o)+1]===undefined||c[u]===undefined?"-1":o:o;l=lt&&(coned.utils.isMobile()||coned.utils.isTablet())?kt[pt]?kt[pt][parseInt(o)+1]:undefined:bt[o+1];ii=document.getElementById(l);g++;coned.utils.isMobile()||coned.utils.isTablet()?(f++,dt=c[e]===undefined||c[e].items.length===f?!0:!1,ri=parseInt(e)===d.length-1?!0:!1,gt=dt&&ri):gt=bt.indexOf(a)===vi-1;hi&&gt?(it=12,ti=ti+it,e++,f=0,er()):ii?(e=parseInt(document.getElementById(l).getAttribute(n.CONED_CHART_DATA_PERIOD)),f=parseInt(document.getElementById(l).getAttribute(n.CONED_CHART_DATA_WEEK)),wt(l)):coned.utils.isMobile()||coned.utils.isTablet()?dt?(e++,li(y,e),f=0):(ft=i.getElementsByClassName(n.CONED_CHART_DATE_BUTTON)[0],ei(ft),ui(c[e])):(e++,li(y,o+1))}},af=function(t){var y,st,k,l=ct(),dt=d[e]?d[e].billRates:undefined,gt,ht,ni,ti,o,ri,lt,tt,ut,fi,p,bt,c,oi;if(g=s===n.CONED_CHART_MONTHLY?g:g-1,t.preventDefault(),coned.chart.showTableInfo(at.parentElement,r,!1),dataLayer.push({event:"ODBR.demand.navigation.billing",label:"Forward arrow"}),pt){if(dt&&(coned.utils.isMobile()||coned.utils.isTablet())){if(ni=r.indexOf(n.CONED_CHART_OFFPEAK)>-1?yt:vt,ti=r.indexOf(n.CONED_CHART_OFFPEAK)>-1?b:v,gt=l===n.CONED_CHART_PEAK?v:b,k=ni[u-1]?ti[u-1][ni[u-1].items.length-1]:ti[u-1][0],ht=document.getElementById(k),!ht){u--;e--;iu(l);return}}else gt=l===n.CONED_CHART_PEAK?nt:rt,k=gt[g],ht=document.getElementById(k)?!0:!1;if(ht){r=k;y=document.getElementById(r);st=y.getAttribute(n.CONED_CHART_DATE_TEXT,h);e=y.getAttribute(n.CONED_CHART_DATA_PERIOD);f=y.getAttribute(n.CONED_CHART_DATA_WEEK);kt.innerHTML=st;wt(r);query.removeClass(it,n.CONED_HIDDEN_CLASS);query.addClass(ft,n.CONED_HIDDEN_CLASS);query.removeClass(et,n.CONED_HIDDEN_CLASS);pt=!1;return}query.removeClass(it,n.CONED_HIDDEN_CLASS);query.addClass(ft,n.CONED_HIDDEN_CLASS);query.removeClass(et,n.CONED_HIDDEN_CLASS);pt=!1}if(ii&&s===n.CONED_CHART_MONTHLY){y=document.getElementById(r);st=y.getAttribute(n.CONED_CHART_DATE_TEXT,h);query.removeClass(it,n.CONED_HIDDEN_CLASS);query.addClass(ft,n.CONED_HIDDEN_CLASS);query.removeClass(et,n.CONED_HIDDEN_CLASS);kt.innerHTML=st;ai(r);ii=!1;return}if(s===n.CONED_CHART_MONTHLY)o=w.indexOf(a)-1,wt(w[o]);else{if(f--,dt&&(coned.utils.isMobile()||coned.utils.isTablet())){if(lt=_.invert(v[u])[a]>-1?n.CONED_CHART_PEAK:n.CONED_CHART_OFFPEAK,c=lt===n.CONED_CHART_PEAK?v:b,o=f,o===-1){var si=l===n.CONED_CHART_PEAK?vt:yt,ot=c[u-1],ci=si[u-1]?Object.keys(si[u-1].items).length-1:ot?ot[Object.keys(ot).length-1]:undefined;o=ot?ot[ci]:undefined;u--}else o=c[u][o];e=f<0?e-1:e;f=f>-1?f:c[u]&&Object.keys(c[u]).length>0?Object.keys(c[u]).length-1:0;ri=document.getElementById(o);v[u]&&(p=v[u]?document.getElementById(v[u][f]):null,bt=b[u]?document.getElementById(b[u][f]):null,tt=p?p:bt);ut=o}else lt=nt.indexOf(a)>-1?n.CONED_CHART_PEAK:n.CONED_CHART_OFFPEAK,o=lt===n.CONED_CHART_PEAK?nt.indexOf(a)-1:rt.indexOf(a)-1,fi=l===n.CONED_CHART_PEAK?nt:rt,ri=document.getElementById(fi[o]),p=document.getElementById(nt[g]),bt=document.getElementById(rt[g]),tt=p?p:bt,ut=fi[o],e=f<0?e-1:e;if(ri)e=parseInt(document.getElementById(ut).getAttribute(n.CONED_CHART_DATA_PERIOD)),f=parseInt(document.getElementById(ut).getAttribute(n.CONED_CHART_DATA_WEEK)),wt(ut);else{if(oi=!0,coned.utils.isMobile()||coned.utils.isTablet()){var hi=l===n.CONED_CHART_PEAK?vt:yt,vi=hi[e]?!0:!1,yi=i.getElementsByClassName(n.CONED_CHART_DATE_BUTTON)[0];vi&&(oi=!1,ei(yi),ui(hi[e]))}oi&&(dt&&(coned.utils.isMobile()||coned.utils.isTablet())?fr=c[e]===undefined||Object.keys(c[e]).length>0?!0:!1:f=f<0?tt.getAttribute(n.CONED_CHART_DATA_WEEK):f,li(l,e),h=tt?tt.getAttribute(n.CONED_CHART_DATE_TEXT):h)}}},vf=function(){var t=coned.utils.isPatternLab()?coned.plConstants.GET_CHART_LEGEND_DATA:window.location.origin+n.CONED_DATA_ATTRIBUTES_JSON;query.getData(t,function(n){tu=n},function(){})},cr=function(n){var t=coned.utils.isMobile()==!0?"mobile":"desktop",i="data-"+t+"-arrow-prev",r="data-"+t+"-arrow-next",u=n.getAttribute(r),f=n.getAttribute(i);o.setAttribute("aria-label",f);y.setAttribute("aria-label",u)},yf=function(){l&&query.hasClass(l,n.CONED_CHART_BUTTON_DISABLED)?cr(l):c&&query.hasClass(c,n.CONED_CHART_BUTTON_DISABLED)&&cr(c)},pf=function(){coned.utils.addGeneralListeners(si,cu);coned.utils.addGeneralListeners(c,pu);coned.utils.addGeneralListeners(l,wu);coned.utils.addGeneralListeners(o,lf);coned.utils.addGeneralListeners(y,af);coned.utils.addGeneralListeners(lt,function(){iu("OffPeak")});coned.utils.addGeneralListeners(st,function(){iu("Peak")});yf();window.addEventListener("resize",function(){var u=document.getElementsByClassName(n.CONED_CHART_DEMAND_BUTTON)[0],f=window.innerWidth,e=f>coned.constants.TABLET_MAX_SIZE==!0?"desktop":"mobile";if(r&&u.classList.contains(n.CONED_CHART_TAB_ACTIVE_CLASS))if(uu!==e)location.reload();else{var o=s==="daily"?/-([A-Z])*\w+/g:/-([0-9]{4})/g,t=ot[ot.length-1].length,i=ot[0].length,h=t>i?t:i;coned.chart.resizeWindow(r,ni,o,!1,h)}});coned.utils.addGeneralListeners(ru,function(n){n.preventDefault();var t=at.hasAttribute("hidden")?"true":"false";coned.chart.showTableInfo(this.parentElement,r,t)})},wf=function(){oi=document.getElementsByClassName(n.CONED_ENERGY_USAGE)[0];vr=document.getElementsByClassName(n.CONED_CHART_FORM_LOADING)[0];nr=i.getElementsByClassName(n.CONED_CHART_MODULE)[0];it=i.getElementsByClassName(n.CONED_CHART_CONTAINER)[0];et=i.getElementsByClassName(n.CONED_CHART_NOTE)[0];ft=i.getElementsByClassName(n.CONED_CHART_ERROR_MESSAGE)[0];ar=i.getElementsByClassName(n.CONED_CHART_NODATA_MESSAGE)[0];si=i.getElementsByClassName(n.CONED_CHART_DEMAND_BUTTON)[0];lr=i.getElementsByClassName(n.CONED_CHART_MOBILE_DEMAND)[0];c=i.getElementsByClassName(n.CONED_CHART_DATE_BUTTON)[0];l=i.getElementsByClassName(n.CONED_CHART_MONTH_BUTTON)[0];kt=i.getElementsByClassName(n.CONED_CHART_DATE)[0];bt=i.getElementsByClassName(n.CONED_CHART_PEAK_CONTENT)[0];st=i.getElementsByClassName(n.CONED_CHART_PEAK_OPTION)[0];lt=i.getElementsByClassName(n.CONED_CHART_OFFPEAK_OPTION)[0];o=i.getElementsByClassName(n.CONED_CHART_LEFT_ARROW)[0];y=i.getElementsByClassName(n.CONED_CHART_RIGHT_ARROW)[0];ru=i.getElementsByClassName("js-coned-chart-table-button")[0];at=i.getElementsByClassName("js-chart-table-content")[0];fu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];tt=at.dataset.shortenedMonthsList.split(",");eu=["January","February","March","April","May","June","July","August","September","October","November","December"];uu=window.innerWidth>coned.constants.TABLET_MAX_SIZE==!0?"desktop":"mobile";w=[];nt=[];rt=[];yr={};d=[];vi=0;wi={};bi={};ir={};gr={};di=!1;ti=0;e=0;g=0;nu=!1;f=0;vt={};yt={};ut=[];p=0;k=0;v={};b={};pt=!1;ii=!1;gi=!1;ur=!1;ou={};su={};fr=!1;kr=!0},bf=function(){wf();pf();vf();er();t=!0};bf()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.OnloadPageModule=function(){var n={ONLOAD_HIDDEN_CLASS:"onload-hidden"},t=!1,i=function(){var i,r=function(){i=document.getElementsByClassName(n.ONLOAD_HIDDEN_CLASS)},u=function(){while(i&&i.length)for(var t=0;t<i.length;++t)i[t].classList.remove(n.ONLOAD_HIDDEN_CLASS)},f=function(){r();u();t=!0};f()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.OptOutUnauthenticated=function(){var n={REQUIRED_COMMENT_SELECTOR:"js-required-comment",NO_REQUIRED_COMMENT_SELECTOR:"js-no-required-comment",COMMENT_SECTION:"js-optout-comments",SUBMIT_BUTTON:"js-submit-button",COMMENT_FIELD_CLASS:"coned-form__field-container--comment",TEXT_AREA_FILLED_CLASS:"coned-textarea--filled",INPUT_ERROR_CLASS:"coned-input-message--error",FIELD_ERROR_CLASS:"coned-field-error-wrapper",REQUIRED:"required",DISABLED:"disabled",FORM_REASON:"reason",MONEY_OPTION:"money",HOURS_OPTION:"hours",TAGGING_MONEY:"Save Money",TAGGING_HOURS:"Hours",TAGGING_OTHER:"Other"},t=!1,i=function(i){var u,r,f,e,o,s,c=function(){r.setAttribute(n.REQUIRED,"");r.removeAttribute(n.DISABLED)},h=function(){r.removeAttribute(n.REQUIRED);r.setAttribute(n.DISABLED,"");r.value="";query.removeClass(r,n.TEXT_AREA_FILLED_CLASS);r.classList.remove(n.INPUT_ERROR_CLASS);var t=f.getElementsByClassName(n.FIELD_ERROR_CLASS)[0];t&&(t.style.display="none")},l=function(){var t,r=query.getFormInputValue(i,n.FORM_REASON);t=r.includes(n.MONEY_OPTION)?n.TAGGING_MONEY:r.includes(n.HOURS_OPTION)?n.TAGGING_HOURS:n.TAGGING_OTHER;dataLayer.push({event:"ipp.optout.submit",optoutReason:t})},a=function(){u=i.getElementsByClassName(n.REQUIRED_COMMENT_SELECTOR)[0];e=i.getElementsByClassName(n.NO_REQUIRED_COMMENT_SELECTOR)[0];o=i.getElementsByClassName(n.NO_REQUIRED_COMMENT_SELECTOR)[1];r=i.getElementsByClassName(n.COMMENT_SECTION)[0];s=i.getElementsByClassName(n.SUBMIT_BUTTON)[0];f=i.getElementsByClassName(n.COMMENT_FIELD_CLASS)[0]},v=function(){coned.utils.addGeneralListeners(u,c);coned.utils.addGeneralListeners(e,h);coned.utils.addGeneralListeners(o,h);coned.utils.isOru()||coned.utils.addGeneralListeners(s,l)},y=function(){a();v();t=!0};y()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.OruClaimForm=function(){var n={PAGE_HEADER:"js-page-header",LOCATION_ADDRESS_CONTAINER:"js-location-address",ORU_CLAIM_FORM_CONTAINER:"js-oru-account-number-container",TYPE_OF_INCIDENT_EXPLAIN:"js-toi-explain",WEATHER_EXPLAIN:"js-weather-explain",SUBMIT_POPUP_BUTTON:"js-submit-popup",CLOSE_POPUP_BUTTON:"js-close-popup",UPLOAD_FILE_INPUT:"js-file-upload-input",ERROR_UPLOAD_FILE_INPUT:"coned-field-error-wrapper",UPLOAD_FILE_LIST:"js-file-list",POPUP_CLAIM_FORM:"js-popup-claim-form",REQUIRED_FIELD:"required",DATE:"js-date",NO_PADDING_TOP:"coned-form__field-container--description-no-padding-top",FORM_WRAPPER_NO_BACKGROUND_CLASS:"coned-form-wrapper--no-background",SUCCESS_MESSAGE:"js-success-message",SUCCESS_MESSAGE_FOCUS:"js-success-message-focus",SUCCESS_ALT_MESSAGE:"js-success-alt-message",SUCCESS_ALT_MESSAGE_FOCUS:"js-success-alt-message-focus",ERROR_MESSAGE:"js-error-message",ERROR_MESSAGE_FOCUS:"js-error-message-focus",RECAPTCHA_ELEMENT:"js-recaptcha",FORM_WRAPPER:"js-form-wrapper",MESSAGE_WRAPPER:"js-form-messages",FORM_LOADING:"js-form-loading",INCIDENT_RELATED:"js-incident-related",TRY_AGAIN:"js-try-again",FILE_UPLOAD_INPUT:"js-coned-inputfile",IS_INVOLVED_CONTRACTOR:"js-oru-is-involved-contractor",ORU_CONTACT_CHECKBOXES:"js-oru-contact-radio",ORU_CONTACT_EXPLAIN:"js-oru-contact-explain",POLICE_RADIOS:"js-police-radio",POLICE_MESSAGE:"js-police-message",INSURANCE_RADIOS:"js-insurance-radio",INSURANCE_INFO:"js-insurance-info",INSURANCE_EXPLAIN:"js-insurance-explain",RESET_BUTTON:"js-reset-button",FORM_INPUT_QUERY:'input:not([type="hidden"]):not(.hidden)',INCIDENT_MOTOR_VEHICLE_CHECKBOX_ID:"motor-checkbox",TOTAL_AMOUNT_INPUT:"js-total-amount",FORM_ID:"generalClaimFormId",CONTACT_NAME:"not-outage-claim-form-name",CONTACT_TYPE:"userType",CONTACT_BUSINESS:"not-outage-claim-form-business",CONTACT_ADDRESS:"not-outage-claim-form-address",CONTACT_APT:"not-outage-claim-form-apartment-number",CONTACT_CITY:"not-outage-claim-form-city",CONTACT_STATE:"not-outage-claim-form-state",CONTACT_ZIP_CODE:"not-outage-claim-form-zipcode",CONTACT_DAY_PHONE:"not-outage-claim-form-phone",CONTACT_EMAIL:"not-outage-claim-form-email",RELATED_TO_ORU:"incidentRelated",CONTACT_ACCOUNT_NUMBER:"oru-claim-form-account-number",DATE_INCIDENT:"not-outage-claim-form-date",TIME:"not-outage-claim-form-time",TIME_FRAME:"not-outage-claim-form-time-frame",LOCATION_DIFERENT:"js-location-is-diferent",INCIDENT_ADDRESS:"generalClaimIncidentAddress",INCIDENT_APT:"generalClaimIncidentApartmentNumber",INCIDENT_CITY:"generalClaimIncidentCity",INCIDENT_STATE:"generalClaimIncidentState",INCIDENT_ZIP:"generalClaimIncidentZipcode",INCIDENT_IS_RELATED:"js-incident-checkbox",INCIDENT_EXPLAIN:"generalClaimOtherIncident",WEATHER_CONDITION:"js-weather-checkbox",WEATHER_EXPLAIN_INPUT:"generalClaimOtherWeather",IS_INVOLVED:"js-is-involved-checkbox",ORU_CONTRACTOR:"generalClaimFormContractor",TAKE_ACTIONS:"take-actions",TAKE_ACTIONS_EXPLAIN:"take-actions-explain",PREMISES:"premisis",CONTACT_REPORT:"generalClaimOruContact",CALL_DETAILS:"generalClaimOruContactExplain",POLICE_INVOLVED:"generalClaimPolice",CLAIM_INSURANCE:"generalClaimInsurance",INSURANCE_CARRIER:"generalClaimInsuranceCarrier",POLICY_NUMBER:"generalClaimInsurancePolicy",INSURANCE_EXPLAIN_INPUT:"generalClaimInsuranceExplain",INCIDENT_DESCRIPTION:"incident-description",DETAILS_DESCRIPTION:"details-description",TOTAL_AMOUNT:"total-amount",SIGNATURE:"not-outage-claim-form-signature",SIGNATURE_DATE_INPUT:"not-outage-claim-form-signature-date",SIGNATURE_DATE:"js-date-format",ARIA_HIDDEN:"aria-hidden",HIDDEN:"hidden",ARIA_REQUIRED:"aria-required",OTHER_VALUE:"Other",YES:"Yes",NO:"No",INSURANCE_VALUE:"Insurance",TRUE_VALUE:"true",FALSE_VALUE:"false",TABINDEX:"tabindex",LESS_EQUAL_TAG:"<=reference claim amount",GREATER_TAG:">reference claim amount",VEHICLE_TAG:"vehicle",NO_VEHICLE_TAG:"novehicle",CONTRACTOR_TAG:"contractor",NO_CONTRACTOR_TAG:"nocontractor"},t=!1,i=function(i){var rt,e,l,a,v,ct,ut,lt,at,vt,y,ft,et,p,yt,pt,wt,w,bt,b,k,d,g,kt,nt,c,dt,gt,ot,f,h,o,s,ni,ti,u,tt,it,ii,r=function(t,i){t?(i.classList.remove(n.HIDDEN),i.setAttribute(n.ARIA_HIDDEN,n.FALSE_VALUE)):(i.classList.add(n.HIDDEN),i.setAttribute(n.ARIA_HIDDEN,n.TRUE_VALUE))},fi=function(t){var u=query.getRadioInputValue(i,t.target.name);u===n.YES?(e&&r(!0,e),ft.classList.add(n.NO_PADDING_TOP)):(e&&r(!1,e),ft.classList.remove(n.NO_PADDING_TOP))},ei=function(){e&&r(!1,e);a&&r(!1,a);v&&r(!1,v);p&&r(!1,p);l&&r(!1,l);w&&r(!1,w);b&&r(!1,b);k&&r(!1,k)},oi=function(){var t=nt.checked,i=kt.checked;dataLayer.push({selections:(i?n.VEHICLE_TAG:n.NO_VEHICLE_TAG)+"."+(t?n.CONTRACTOR_TAG:n.NO_CONTRACTOR_TAG)})},ri=function(){it=ct.hasChildNodes();it?ui():setTimeout(function(){y.classList.remove(n.HIDDEN);ut.focus()},150)},si=function(){tt&&u&&u.getResponse()===""&&u.checkRecaptcha()},st=function(){tt&&u&&u.getResponse()!==""&&u.reset()},ht=function(){query.addClass(ot,n.FORM_WRAPPER_NO_BACKGROUND_CLASS);rt.style.display="none"},hi=function(){query.removeClass(ot,n.FORM_WRAPPER_NO_BACKGROUND_CLASS);rt.style.display="block"},ui=function(){var r,f;oi();var a=i.dataset.serviceUrl,e=new FormData,h=[],l=[],o,s,t;for(r=0;r<d.length;r++)o=d[r],o.checked&&h.push(o.value);for(f=0;f<g.length;f++)s=g[f],s.checked&&l.push(s.value);t={FormId:query.getFormInputValue(i,n.FORM_ID),Name:query.getFormInputValue(i,n.CONTACT_NAME),UserType:query.getFormInputValue(i,n.CONTACT_TYPE),BussinessName:query.getFormInputValue(i,n.CONTACT_BUSINESS),Address:query.getFormInputValue(i,n.CONTACT_ADDRESS),Apartment:query.getFormInputValue(i,n.CONTACT_APT),City:query.getFormInputValue(i,n.CONTACT_CITY),State:query.getFormInputValue(i,n.CONTACT_STATE),Zipcode:query.getFormInputValue(i,n.CONTACT_ZIP_CODE),DaytimePhone:query.getFormInputValue(i,n.CONTACT_DAY_PHONE),Email:query.getFormInputValue(i,n.CONTACT_EMAIL),IsRelatedToORU:query.getFormInputValue(i,n.RELATED_TO_ORU),Account:query.getFormInputValue(i,n.CONTACT_ACCOUNT_NUMBER),DateOfIncident:query.getFormInputValue(i,n.DATE_INCIDENT),Time:query.getFormInputValue(i,n.TIME),TimeFrame:query.getFormInputValue(i,n.TIME_FRAME),LocationIsDiferent:et.checked,ContactAddress:query.getFormInputValue(i,n.INCIDENT_ADDRESS),ContactApartment:query.getFormInputValue(i,n.INCIDENT_APT),ContactCity:query.getFormInputValue(i,n.INCIDENT_CITY),ContactState:query.getFormInputValue(i,n.INCIDENT_STATE),ContactZipCode:query.getFormInputValue(i,n.INCIDENT_ZIP),IncidentIsRelated:JSON.stringify(h),OtherIncident:query.getFormInputValue(i,n.INCIDENT_EXPLAIN),WeatherConditions:JSON.stringify(l),OtherWeather:query.getFormInputValue(i,n.WEATHER_EXPLAIN_INPUT),InvolvedORUContractor:nt.checked,ORUContractor:query.getFormInputValue(i,n.ORU_CONTRACTOR),TakeActions:query.getFormInputValue(i,n.TAKE_ACTIONS),TakeActionsExplain:query.getFormInputValue(i,n.TAKE_ACTIONS_EXPLAIN),Premises:query.getFormInputValue(i,n.PREMISES),ContactReport:query.getFormInputValue(i,n.CONTACT_REPORT),CallDetails:query.getFormInputValue(i,n.CALL_DETAILS),PoliceInvolved:query.getFormInputValue(i,n.POLICE_INVOLVED),ClaimInsurance:query.getFormInputValue(i,n.CLAIM_INSURANCE),InsuranceCarrier:query.getFormInputValue(i,n.INSURANCE_CARRIER),PolicyNumber:query.getFormInputValue(i,n.POLICY_NUMBER),InsuranceExplain:query.getFormInputValue(i,n.INSURANCE_EXPLAIN_INPUT),IncidentDescription:query.getFormInputValue(i,n.INCIDENT_DESCRIPTION),DetailsDescription:query.getFormInputValue(i,n.DETAILS_DESCRIPTION),TotalAmount:query.getFormInputValue(i,n.TOTAL_AMOUNT),Signature:query.getFormInputValue(i,n.SIGNATURE),SignatureDate:query.getFormInputValue(i,n.SIGNATURE_DATE_INPUT)};tt&&u&&(t.Verify=u.getResponse());t=JSON.stringify(t);e.append("data",t);c&&c.fileList.length&&_.each(c.fileList,function(n){e.append("filesAttached",n)});query.postData(a,ci,li,e,!1,gt)},ci=function(){it?(ht(),i.classList.add(n.HIDDEN),f.style.display="block",h.style.display="block",window.scrollTo(0,0),h.focus()):(ht(),i.classList.add(n.HIDDEN),f.style.display="block",o.style.display="block",window.scrollTo(0,0),o.focus());dataLayer.push({event:"coned.form.success"})},li=function(){ht();i.classList.add(n.HIDDEN);f.style.display="block";s.style.display="block";o.style.display="none";window.scrollTo(0,0);s.focus();dataLayer.push({event:"coned.form.fail.submission"})},ai=function(t,i){if(t.keyCode==coned.constants.KEY_CODE.ESC){var r=!query.hasClass(i,n.HIDDEN_CLASS);r&&st()}},vi=function(){rt=document.getElementsByClassName(n.PAGE_HEADER)[0];e=i.getElementsByClassName(n.ORU_CLAIM_FORM_CONTAINER)[0];a=i.getElementsByClassName(n.TYPE_OF_INCIDENT_EXPLAIN)[0];v=i.getElementsByClassName(n.WEATHER_EXPLAIN)[0];at=i.getElementsByClassName(n.INCIDENT_RELATED);ct=i.getElementsByClassName(n.UPLOAD_FILE_LIST)[0];ut=document.getElementsByClassName(n.SUBMIT_POPUP_BUTTON)[0];lt=document.getElementsByClassName(n.CLOSE_POPUP_BUTTON)[0];vt=i.getElementsByClassName(n.SIGNATURE_DATE)[0];y=document.getElementsByClassName(n.POPUP_CLAIM_FORM)[0];ft=i.getElementsByClassName(n.DATE)[0];et=i.getElementsByClassName(n.LOCATION_DIFERENT)[0];d=i.getElementsByClassName(n.INCIDENT_IS_RELATED);g=i.getElementsByClassName(n.WEATHER_CONDITION);nt=i.getElementsByClassName(n.IS_INVOLVED)[0];ot=document.getElementsByClassName(n.FORM_WRAPPER)[0];f=document.getElementsByClassName(n.MESSAGE_WRAPPER)[0];h=f.getElementsByClassName(n.SUCCESS_MESSAGE)[0];o=f.getElementsByClassName(n.SUCCESS_ALT_MESSAGE)[0];s=f.getElementsByClassName(n.ERROR_MESSAGE)[0];ni=document.getElementsByClassName(n.TRY_AGAIN)[0];c=i.getElementsByClassName(n.FILE_UPLOAD_INPUT)[0];gt=document.getElementsByClassName(n.FORM_LOADING)[0];p=i.getElementsByClassName(n.LOCATION_ADDRESS_CONTAINER)[0];yt=i.getElementsByClassName(n.IS_INVOLVED_CONTRACTOR)[0];pt=i.getElementsByClassName(n.ORU_CONTACT_CHECKBOXES);l=i.getElementsByClassName(n.ORU_CONTACT_EXPLAIN)[0];wt=i.getElementsByClassName(n.POLICE_RADIOS);w=i.getElementsByClassName(n.POLICE_MESSAGE)[0];bt=i.getElementsByClassName(n.INSURANCE_RADIOS);b=i.getElementsByClassName(n.INSURANCE_INFO)[0];k=i.getElementsByClassName(n.INSURANCE_EXPLAIN)[0];ti=i.getElementsByClassName(n.RESET_BUTTON)[0];kt=document.getElementById(n.INCIDENT_MOTOR_VEHICLE_CHECKBOX_ID);dt=i.getElementsByClassName(n.TOTAL_AMOUNT_INPUT)[0];it=!1;u=!1;tt=i.getElementsByClassName(n.RECAPTCHA_ELEMENT)[0];ii=i.dataset&&i.dataset.distributionListAmount&&parseInt(i.dataset.distributionListAmount)?parseInt(i.dataset.distributionListAmount):3e3},yi=function(){h&&query.hasClass(h,n.SUCCESS_MESSAGE_FOCUS)&&h.setAttribute(n.TABINDEX,"-1");s&&query.hasClass(s,n.ERROR_MESSAGE_FOCUS)&&s.setAttribute(n.TABINDEX,"-1");o&&query.hasClass(o,n.SUCCESS_ALT_MESSAGE_FOCUS)&&o.setAttribute(n.TABINDEX,"-1")},pi=function(){new coned.components.ValidateForm(i,si);u=new coned.components.Recaptcha(i,ri,ri);i.addEventListener("reset-form",ei);var t=new Date;coned.utils.fillInputWithFormattedDate(vt,t);setTimeout(function(){coned.utils.checkInputsFilled(i)},1e3);_.each(at,function(n){coned.utils.addGeneralListeners(n,fi)});et.addEventListener("change",function(n){r(n.target.checked,p)});nt.addEventListener("change",function(n){r(n.target.checked,yt)});_.each(d,function(t){t.addEventListener("change",function(t){t.target.value===n.OTHER_VALUE&&r(t.target.checked,a)})});_.each(g,function(t){t.addEventListener("change",function(t){t.target.value===n.OTHER_VALUE&&r(t.target.checked,v)})});_.each(pt,function(t){t.addEventListener("change",function(t){r(t.target.checked&&t.target.value===n.YES,l)})});_.each(wt,function(t){t.addEventListener("change",function(t){r(t.target.checked&&t.target.value===n.YES,w)})});_.each(bt,function(t){t.addEventListener("change",function(t){r(t.target.checked&&t.target.value===n.INSURANCE_VALUE,b);r(t.target.checked&&t.target.value===n.OTHER_VALUE,k)})});dt.addEventListener("blur",function(t){t.target.value!==""&&dataLayer.push({DLS:parseFloat(t.target.value.replace(/[\$\,]/g,""))<=ii?n.LESS_EQUAL_TAG:n.GREATER_TAG})});coned.utils.addGeneralListeners(ut,function(){ui()});coned.utils.addGeneralListeners(ni,function(){i.classList.remove(n.HIDDEN);f.style.display="none";s.style.display="none";i.scrollIntoView(!0);hi();st()});coned.utils.addGeneralListeners(ti,function(){var t=i.querySelectorAll(n.FORM_INPUT_QUERY)[0];t&&t.focus()});coned.utils.addGeneralListeners(lt,function(){c.focus();st()});y.addEventListener("keydown",function(n){ai(n,y)})},wi=function(){vi();yi();pi();t=!0};wi()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.OverviewBillAnalysis=function(){var n={COMPARE_BUTTON:"js-bill-compare",COMPARE_BUTTON_ACTIVE:"overview-bill-analysis__nav-item--active",BILL_DISCLAIMER:"js-bill-disclaimer",BILL_ANALYSIS_INFO:"js-analysis-information",BILL_ANALYSIS_ACTIVE:"overview-bill-analysis__information--active",TABS_CONTAINER:"js-coned-tabs-bill-compare",HIDDEN_CLASS:"hidden",ROLE:"ROLE",ROLE_TAB:"tab",ARIA_SELECTED:"aria-selected",TABINDEX:"tabindex"},t=!1,i=function(i){var r,u,f,e=function(t){var s,o,i,e,h;for(t.preventDefault(),s=this.dataset.bill,o=this.dataset.hideDisclaimer&&this.dataset.hideDisclaimer==="true"?!0:!1,o&&u?u.classList.add(n.HIDDEN_CLASS):!o&&u&&u.classList.remove(n.HIDDEN_CLASS),i=0;i<r.length;i++)r[i].classList.remove(n.COMPARE_BUTTON_ACTIVE);for(i=0;i<f.length;i++)e=f[i],h=e.dataset.billInformation,h===s?e.classList.add(n.BILL_ANALYSIS_ACTIVE):e.classList.remove(n.BILL_ANALYSIS_ACTIVE);this.classList.add(n.COMPARE_BUTTON_ACTIVE)},o=function(t){var i=t.keyCode,o=Array.prototype.slice.call(r),f=o.indexOf(t.target),e,u;switch(i){case coned.constants.KEY_CODE.LEFT:e=r[f-1]?r[f-1]:r[r.length-1];break;case coned.constants.KEY_CODE.RIGHT:e=r[f+1]?r[f+1]:r[0]}if(i==coned.constants.KEY_CODE.LEFT||i==coned.constants.KEY_CODE.RIGHT)e.focus();else if(i==coned.constants.KEY_CODE.ENTER||i==coned.constants.KEY_CODE.SPACE){for(u=0;u<r.length;u++)r[u].setAttribute(n.TABINDEX,"-1"),r[u].setAttribute(n.ARIA_SELECTED,"false");t.target.setAttribute(n.TABINDEX,"0");t.target.setAttribute(n.ARIA_SELECTED,"true");t.target.click()}},s=function(){r=i.getElementsByClassName(n.COMPARE_BUTTON);u=i.getElementsByClassName(n.BILL_DISCLAIMER)[0];f=i.getElementsByClassName(n.BILL_ANALYSIS_INFO)},h=function(){for(var t=0;t<r.length;t++)coned.utils.addGeneralListeners(r[t],e),r[t].parentElement.addEventListener("keydown",o),query.hasClass(r[t],n.COMPARE_BUTTON_ACTIVE)?(r[t].setAttribute(n.ARIA_SELECTED,"true"),r[t].setAttribute(n.TABINDEX,"0")):(r[t].setAttribute(n.ARIA_SELECTED,"false"),r[t].setAttribute(n.TABINDEX,"-1")),r[t].setAttribute(n.ROLE,n.ROLE_TAB)},c=function(){s();h();t=!0};c()};return i.prototype.isLoaded=function(){return t},i}();coned=coned||{};coned.components=coned.components||{};coned.components.PaginationSimpleInformation=function(){var t=!1,n={VALUES:{EMPTY:"",DISPLAY_KEY:"display",EMPTY_KEY:"empty"}},i=function(i){var r,u,f=function(){if(r.isSeted)if(r.totalItems&&r.currentPage&&r.itemsPerPage){var t=r.currentPage*r.itemsPerPage,f=t-r.itemsPerPage+1,e=r.totalItems;t>e&&(t=e);f<1&&(f=1);i.innerHTML=coned.utils.formatString(u[n.VALUES.DISPLAY_KEY],[String(f),String(t),String(e)])}else i.innerHTML=coned.utils.formatString(u[n.VALUES.EMPTY_KEY],[String(0)]);else i.innerHTML=n.VALUES.EMPTY},e=function(n){r=n;f()},o=function(n){e(n.detail)},s=function(){r={};u=i.dataset.formats?coned.utils.buildRecordString(i.dataset.formats):{}},h=function(){i.addEventListener(coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,o)},c=function(){s();h();f();t=!0};c()};return i.prototype.isLoaded=function(){return t},i}();coned=coned||{};coned.components=coned.components||{};coned.components.PaginationSimpleItems=function(){var t=!1,n={SELECTORS:{HEADER_WRAPPER:"js-header-wrapper",ITEM:"js-pagination-simple-item",NO_RESULTS:"js-pagination-simple-no-results",COLLAPSIBLE:'[data-module="CollapsibleContainerComponent"]'},ATTRIBUTES:{DATA_ORDER:"data-order"}},i=function(i){var r,u,o=function(){var t=[];return Array.isArray(u.$items)&&u.$items.forEach(function(i){var r=i.dataset.categories,u={},f=Array.from(i.querySelectorAll(n.SELECTORS.COLLAPSIBLE));r&&r.length>0&&(u=coned.utils.buildRecordStringArray(r));t.push({$element:i,$collapsibles:f,id:i.dataset.id?i.dataset.id:"",title:i.getAttribute(coned.constants.ARIA.LABEL)?i.getAttribute(coned.constants.ARIA.LABEL):"",isFeatured:i.dataset.featured?i.dataset.featured===coned.constants.TRUE:!1,categories:u})}),t},f=function(n,t){n instanceof HTMLElement&&n.setAttribute(coned.constants.ARIA.HIDDEN,t?coned.constants.TRUE:coned.constants.FALSE)},s=function(){var t=document.getElementsByClassName(n.SELECTORS.HEADER_WRAPPER)[0],r=t instanceof HTMLElement?t.offsetHeight:0,u=i.getBoundingClientRect().top+window.scrollY;window.scrollY!==0&&r!==0&&window.scrollTo({top:u-r-100,behavior:"smooth"})},e=function(){var h,t,e,c,o;if(r.isSeted){while(r.displayItems.length>0)h=r.displayItems.shift(),h.$collapsibles.forEach(function(n){coned.utils.triggerEvent(n,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,{collapseAll:!0})}),f(h.$element,!0),h.$element.removeAttribute(n.ATTRIBUTES.DATA_ORDER);if(r.pagination&&r.sortedPages){if(f(u.$no_results,r.pagination.currentPage!==0),r.pagination.currentPage>0&&(t=r.sortedPages[r.pagination.currentPage-1],t&&t.length>0))for(e=0;e<t.length;e++)c=t[e],c&&(o=r.items.find(function(n){return n.id===c.itemId}),o&&(r.displayItems.push(o),o.$element.dataset.order=e+1,o.$element.removeAttribute(coned.constants.ARIA.HIDDEN)))}else f(u.$no_results,!0);typeof r.pagination!="undefined"&&typeof r.pagination.canScroll!="undefined"&&r.pagination.canScroll&&s()}r.isSeted||coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,r)},h=function(n){r=n;e()},c=function(n){h(n.detail)},l=function(){u={$items:coned.utils.arrayFrom(i.getElementsByClassName(n.SELECTORS.ITEM)),$no_results:i.getElementsByClassName(n.SELECTORS.NO_RESULTS)[0]};r={isSeted:!1,items:o(),displayItems:[]}},a=function(){i.addEventListener(coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,c)},v=function(){l();a();e();t=!0};v()};return i.prototype.isLoaded=function(){return t},i}();coned=coned||{};coned.components=coned.components||{};coned.components.PaginationSimple=function(){var t=!1,n={CLASSES:{PAGINATION_PREV:"pagination__cta--prev",PAGINATION_NEXT:"pagination__cta--next",PAGINATION_CTA:"pagination__cta",PAGINATION_ACTIVE:"pagination__cta--active"},SELECTORS:{PAGINATION_SPAN_CURRENT:"js-pagination-span-current"},DATA_TEXT:{CURRENT:"Current",FIRST:"First",LAST:"Last",PAGE:"Page",NEXT:"Next",PREVIOUS:"Previous",NAVIGATION:"Pagination"},VALUES:{EMPTY:"",SPACE:" ",MAX_PAGES:5,HREF_PREV:"prev-page",HREF_NEXT:"next-page",ROLE:"role",PRESENTATION:"presentation",SPAN_CARROT:'<span class="icon-carrot"><\/span>',SPAN_PAGE:'<span class="visually-hidden visually-hidden--desktop">Page&nbsp;<\/span>',SELECTOR_FORMAT:'a[data-page="{0}"]',CHANGE_FOCUS:"change-focus"}},i=function(i){var u,r,l=function(n){var t=new URLSearchParams(window.location.search),r=t.get("page")?parseInt(t.get("page")):null,i=n&&typeof n=="number"?n:1;return r!==null&&r!==i&&(r<1||typeof u.totalPages=="number"&&r>u.totalPages?(t.delete("page"),window.history.replaceState(null,"",window.location.pathname+(t.toString()?"?"+t.toString():""))):i=r),i<1||typeof u.totalPages=="number"&&i>u.totalPages?(i=1,t.delete("page"),window.history.replaceState(null,"",window.location.pathname+(t.toString()?"?"+t.toString():""))):i!==r&&(t.set("page",i),window.history.replaceState(null,"",window.location.pathname+"?"+t.toString())),i},h=function(n){if(u.isSeted){var t=new URL(window.location.href);n===1?t.searchParams.delete("page"):t.searchParams.set("page",n);history.pushState(null,"",t.toString())}},f=function(t){var u=coned.utils.formatString(n.VALUES.SELECTOR_FORMAT,[t]),r=i.querySelector(u);return r instanceof HTMLElement?r:null},e=function(t){if(t.$element){var i=t.$element.getAttribute(coned.constants.ARIA.LABEL);i=i?i.replace(r.textCurrent,n.VALUES.EMPTY):n.VALUES.EMPTY;t.$element.parentElement.setAttribute(coned.constants.ARIA.HIDDEN,t.visible?coned.constants.FALSE:coned.constants.TRUE);t.current?(t.$element.setAttribute(coned.constants.ARIA.LABEL,r.textCurrent+n.VALUES.SPACE+i),t.$element.classList.add(n.CLASSES.PAGINATION_ACTIVE)):t.$element.setAttribute(coned.constants.ARIA.LABEL,i)}},o=function(t,o){var y;if(u.totalPages!==0){var l=t===1,a=t===(typeof u.totalPages!="undefined"?u.totalPages:0),p=r.$firstPageVisible&&t===Number(r.$firstPageVisible.dataset.page),w=r.$lastPageVisible&&t===Number(r.$lastPageVisible.dataset.page),v=r.textPage+" "+t,s=f(t),c=i.getElementsByClassName(n.CLASSES.PAGINATION_ACTIVE)[0];c&&(y=c.getAttribute(coned.constants.ARIA.LABEL),c.classList.remove(n.CLASSES.PAGINATION_ACTIVE),c.setAttribute(coned.constants.ARIA.LABEL,y.replace(r.textCurrent,n.VALUES.EMPTY)));r.$firstPageVisible&&r.$lastPageVisible&&u.totalPages>n.VALUES.MAX_PAGES&&(!l&&p&&(r.$firstPageVisible=f(t-1),e({$element:r.$firstPageVisible,visible:!0}),e({$element:r.$lastPageVisible}),r.$lastPageVisible=f(t+n.VALUES.MAX_PAGES-2)),!a&&w&&(e({$element:r.$firstPageVisible}),r.$firstPageVisible=f(t-n.VALUES.MAX_PAGES+2),r.$lastPageVisible=f(t+1),e({$element:r.$lastPageVisible,visible:!0})));u.currentPage=t;r.$currentPage=f(t);r.$currentPage&&e({$element:r.$currentPage,visible:!0,current:!0});r.$next&&(e({$element:r.$next,visible:!a}),a&&u.$srLive&&o&&(s&&(r.$next.blur(),s.focus()),coned.utils.triggerEvent(u.$srLive,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,{valueKey:n.VALUES.CHANGE_FOCUS,formatValues:[r.$next.getAttribute(coned.constants.ARIA.LABEL),v]})));r.$prev&&(e({$element:r.$prev,visible:!l}),l&&u.$srLive&&o&&(s&&(r.$prev.blur(),s.focus()),coned.utils.triggerEvent(u.$srLive,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,{valueKey:n.VALUES.CHANGE_FOCUS,formatValues:[r.$prev.getAttribute(coned.constants.ARIA.LABEL),v]})));h(t);coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,u)}},s=function(t){var u=document.createElement("li"),i=document.createElement("a");return t.label&&(i.setAttribute(coned.constants.ARIA.LABEL,t.label),t.label.includes(r.textNext)&&(i.href=n.VALUES.HREF_NEXT),t.label.includes(r.textPrevious)&&(i.href=n.VALUES.HREF_PREV)),t.classes&&t.classes.forEach(function(n){i.classList.add(n)}),t.innerHTML&&(i.innerHTML=t.innerHTML),t.page&&(i.dataset.page=t.page,i.href=t.page),u.appendChild(i),u.setAttribute(coned.constants.ARIA.HIDDEN,coned.constants.TRUE),u},a=function(){var f=document.createElement("nav"),i=document.createElement("ul"),o=s({classes:[n.CLASSES.PAGINATION_CTA,n.CLASSES.PAGINATION_PREV],innerHTML:n.VALUES.SPAN_CARROT,label:r.textPrevious+n.VALUES.SPACE+r.textPage}),h=s({classes:[n.CLASSES.PAGINATION_CTA,n.CLASSES.PAGINATION_NEXT],innerHTML:n.VALUES.SPAN_CARROT,label:r.textNext+n.VALUES.SPACE+r.textPage}),t,e;for(i.appendChild(o),i.setAttribute(n.VALUES.ROLE,n.VALUES.PRESENTATION),t=1;t<=u.totalPages;t++)e=s({classes:[n.CLASSES.PAGINATION_CTA],innerHTML:n.VALUES.SPAN_PAGE+t,page:n.VALUES.EMPTY+t,label:t===1?r.textFirst+n.VALUES.SPACE+r.textPage+n.VALUES.SPACE+t:r.textPage+n.VALUES.SPACE+t}),t===u.totalPages&&(e=s({classes:[n.CLASSES.PAGINATION_CTA],innerHTML:n.VALUES.SPAN_PAGE+t,page:n.VALUES.EMPTY+t,label:r.textLast+n.VALUES.SPACE+r.textPage+n.VALUES.SPACE+t})),i.appendChild(e);return i.appendChild(h),f.setAttribute(coned.constants.ARIA.LABEL,r.textNavigation),f.appendChild(i),f},v=function(){r={textCurrent:i.dataset.textCurrent?i.dataset.textCurrent:n.DATA_TEXT.CURRENT,textFirst:i.dataset.textFirst?i.dataset.textFirst:n.DATA_TEXT.FIRST,textLast:i.dataset.textLast?i.dataset.textLast:n.DATA_TEXT.LAST,textPage:i.dataset.textPage?i.dataset.textPage:n.DATA_TEXT.PAGE,textNext:i.dataset.textNext?i.dataset.textNext:n.DATA_TEXT.NEXT,textPrevious:i.dataset.textPrevious?i.dataset.textPrevious:n.DATA_TEXT.PREVIOUS,textNavigation:i.dataset.textNavigation?i.dataset.textNavigation:n.DATA_TEXT.NAVIGATION};i.innerHTML="";h(1)},y=function(){(v(),u.totalPages<2)||(i.appendChild(a()),r.$pages=coned.utils.arrayFrom(i.getElementsByClassName(n.CLASSES.PAGINATION_CTA)),r.$prev=i.getElementsByClassName(n.CLASSES.PAGINATION_PREV)[0],r.$next=i.getElementsByClassName(n.CLASSES.PAGINATION_NEXT)[0],r.$firstPageVisible=f(1),r.$lastPageVisible=f(Math.min(n.VALUES.MAX_PAGES,u.totalPages)),r.$firstPage=f(1),r.$lastPage=f(u.totalItems),r.$firstPageVisible&&(r.$firstPageVisible.setAttribute(coned.constants.ARIA.LABEL,r.textCurrent+n.VALUES.EMPTY+r.$firstPageVisible.getAttribute(coned.constants.ARIA.LABEL)),r.$firstPage.classList.add(n.CLASSES.PAGINATION_ACTIVE)),tt())},p=function(){var r,t;if(typeof u.totalPages!="undefined"&&u.totalPages>1){for(r=Math.min(u.totalPages,n.VALUES.MAX_PAGES),t=1;t<=r;t++)e({$element:f(t),visible:!0});u.currentPage&&o(u.currentPage)}else coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,u)},c=function(n,t){typeof n.totalItems=="number"&&n.totalItems>0&&typeof n.itemsPerPage=="number"&&n.itemsPerPage>0?(u.isSeted=n.isSeted?n.isSeted:!1,u.totalItems=n.totalItems,u.itemsPerPage=n.itemsPerPage,u.totalPages=n.totalItems&&n.itemsPerPage?Math.ceil(n.totalItems/n.itemsPerPage):undefined,u.currentPage=t?n.currentPage:l(n.currentPage)):(u.isSeted=n.isSeted?n.isSeted:!1,u.totalItems=0,u.currentPage=0,u.totalPages=0);y();p()},w=function(n){n.preventDefault();n.stopImmediatePropagation();n.stopPropagation();u.canScroll=!0;o(u.currentPage-1,!0)},b=function(n){n.preventDefault();n.stopImmediatePropagation();n.stopPropagation();u.canScroll=!0;o(u.currentPage+1,!0)},k=function(n){n.preventDefault();n.stopImmediatePropagation();n.stopPropagation();var t=n.currentTarget;t instanceof HTMLElement&&t.dataset.page&&(u.canScroll=!0,o(Number(t.dataset.page)))},d=function(n){u.isSeted?c(n.detail,!0):c(n.detail)},g=function(){r={textCurrent:i.dataset.textCurrent?i.dataset.textCurrent:n.DATA_TEXT.CURRENT,textFirst:i.dataset.textFirst?i.dataset.textFirst:n.DATA_TEXT.FIRST,textLast:i.dataset.textLast?i.dataset.textLast:n.DATA_TEXT.LAST,textPage:i.dataset.textPage?i.dataset.textPage:n.DATA_TEXT.PAGE,textNext:i.dataset.textNext?i.dataset.textNext:n.DATA_TEXT.NEXT,textPrevious:i.dataset.textPrevious?i.dataset.textPrevious:n.DATA_TEXT.PREVIOUS,textNavigation:i.dataset.textNavigation?i.dataset.textNavigation:n.DATA_TEXT.NAVIGATION};u={isSeted:!1,canScroll:!1,itemsPerPage:i.dataset.itemsPerPage?parseInt(i.dataset.itemsPerPage):5}},nt=function(){i.addEventListener(coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,d)},tt=function(){r.$prev&&r.$prev.addEventListener("click",w);r.$next&&r.$next.addEventListener("click",b);Array.isArray(r.$pages)&&r.$pages.forEach(function(n){n.addEventListener("click",k)})},it=function(){g();nt();t=!0;coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,u)};it()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.PaginationComponent=function(){var n={PAGINATION_CONTENT_CLASS:"js-pagination-content",PAGINATION_RESET_CLASS:"js-pagination-reset",PAGINATION_CLASS:"pagination",PAGINATION_ORU_CLASS:"pagination--oru",PAGINATION_MOBILE_HIDE_CLASS:"pagination--desktop",PAGINATION_MOBILE_SHOW_CLASS:"pagination--mobile",PAGINATION_ITEM_CLASS:"pagination__item",PAGINATION_ITEM_WIDER_CLASS:"pagination__item--wider",PAGINATION_LINK_CLASS:"pagination__link",PAGINATION_ICON_CLASS:"icon-carrot",PAGINATION_PREV_CLASS:"pagination__link--prev",PAGINATION_NEXT_CLASS:"pagination__link--next",PAGINATION_TEXT_CLASS:"pagination__text",PAGINATION_ELEMENT:"ul",PAGINATION_ITEM_ELEMENT:"li",PAGINATION_LINK_ELEMENT:"button",PAGINATION_TEXT_ELEMENT:"p",PAGINATION_TOTAL_CLASS:"js-total",PAGINATION_START_CLASS:"js-start",PAGINATION_END_CLASS:"js-end",PAGINATION_PAGE_URL_PARAMETER_NAME:"page",PAGINATION_PAGE_URL_PARAMETER:"page=",PAGINATION_PAGE_TEXT:"Page ",PAGINATION_RESULTS_CLASS:"js-pagination-results",PAGINATION_LIMIT:5,PAGINATION_ANIMATION_TIME:300,HEADER_WRAPPER_CLASS:"js-header-wrapper",PAGINATION_HIDDEN_ELEMENT:"js-pagination-item-hidden",MAIN_CONTENT:"#mainContent",RESULTS_ANIMATION_SELECTOR:"js-results-selector",RESULTS_ANIMATION_CLASS:"search-results__item--animation",ARIA_LABEL:"aria-label",ARIA_CURRENT:"aria-current",ARIA_PAGE_TEXT:"page",ARIA_LABEL_PAGE_TEXT:"Go to Page ",ARIA_LABEL_NEXT_PAGE_TEXT:"Go to Next Page",ARIA_LABEL_PREVIOUS_PAGE_TEXT:"Go to Previous Page"},r=!1,t,i=function(i){var h,l,b,f,c,it,g,v,p,u,e,o,rt,ut,a,k,s,nt,y=!1,ft,et=function(n){var t,i;n.preventDefault();t=document.createElement("a");t.href=n.target.dataset.href;i=f.dataset.service+t.search;window.history.pushState({page:t.href},"",t.pathname+t.search);coned.utils.isPatternLab()&&(i=coned.plConstants.PATTERNLAB_SEARCH_RESULTS_PAGE_PATH);query.getData(i,function(n){f.innerHTML=n;st();at();window.scrollTo(0,0)},function(){});v&&v.focus();query.fireEvent(c,"page-change")},ot=function(i){i.preventDefault();var s=i.target.dataset.href,h=e*s,r,o,l,a,w=[];for(_.each(c.children,function(n){query.addClass(n,p)}),it=c.parentElement.querySelectorAll("."+n.PAGINATION_RESULTS_CLASS+" > :not(."+n.PAGINATION_HIDDEN_ELEMENT+")"),r=h-e;r<h&&r<u;r++)o=it[r],query.removeClass(o,p),w.push(o);y?(nt&&(a=f.getBoundingClientRect(),l=a.top+window.pageYOffset-g.offsetHeight,coned.utils.scrollTo(l,n.PAGINATION_ANIMATION_TIME)),t&&t(w)):y=!y;ht(s);v&&v.focus();query.fireEvent(c,"page-change")},lt=function(i){var s=e*i,r,o,h,l=[];for(_.each(c.children,function(n){query.addClass(n,p)}),r=s-e;r<s&&r<u;r++)o=c.children[r],query.removeClass(o,p),l.push(o);y?(nt&&(h=f.offsetTop-g.offsetHeight,coned.utils.scrollTo(h,n.PAGINATION_ANIMATION_TIME)),t&&t()):y=!y;ht(i);v&&v.focus();query.fireEvent(c,"page-change")},st=function(t){t!=undefined&&t.preventDefault();u=f.getElementsByClassName(n.PAGINATION_TOTAL_CLASS)[0];u=u!=null?parseInt(u.innerText):0;o=Math.ceil(u/e);query.clearElement(i);a&&ct(1);o>1&&tt()},ht=function(t){u=f.getElementsByClassName(n.PAGINATION_TOTAL_CLASS)[0];u=u!=null?parseInt(u.innerText):0;o=Math.ceil(u/e);query.clearElement(i);ct(t);o>1&&tt()},at=function(){var t=0;_.each(ft,function(i){t+=n.PAGINATION_ANIMATION_TIME;setTimeout(function(){query.removeClass(i,n.RESULTS_ANIMATION_CLASS)},t)})},ct=function(n){i.dataset.activePage=n;rt.innerHTML=e*n-(e-1);ut.innerHTML=e*n<u?e*n:u},d=function(t,i,r){var f=document.createElement(n.PAGINATION_ITEM_ELEMENT),u=document.createElement(n.PAGINATION_LINK_ELEMENT),o=window.location.href.indexOf("?")===-1?"?":"&",e;u.dataset.href=a?i:window.location.search.includes(n.PAGINATION_PAGE_URL_PARAMETER_NAME)?coned.utils.updateUrlParameter(n.PAGINATION_PAGE_URL_PARAMETER_NAME,i):window.location.href+o+n.PAGINATION_PAGE_URL_PARAMETER+i;e=t===n.PAGINATION_PREV_CLASS?n.ARIA_LABEL_PREVIOUS_PAGE_TEXT:n.ARIA_LABEL_NEXT_PAGE_TEXT;u.setAttribute(n.ARIA_LABEL,e);u.setAttribute(n.ARIA_CURRENT,!1);query.addClass(f,n.PAGINATION_ITEM_CLASS);query.addClass(u,n.PAGINATION_LINK_CLASS);query.addClass(u,t);query.addClass(u,n.PAGINATION_ICON_CLASS);a?coned.utils.addGeneralListeners(u,ot):coned.utils.addGeneralListeners(u,et);f.appendChild(u);r.appendChild(f)},w=function(t,i,r){var u,f=document.createElement(n.PAGINATION_ITEM_ELEMENT),o=window.location.href.indexOf("?")===-1?"?":"&",e=!1;t!=s?(u=document.createElement(n.PAGINATION_LINK_ELEMENT),u.dataset.href=a?t:window.location.search.includes(n.PAGINATION_PAGE_URL_PARAMETER_NAME)?coned.utils.updateUrlParameter(n.PAGINATION_PAGE_URL_PARAMETER_NAME,t):window.location.href+o+n.PAGINATION_PAGE_URL_PARAMETER+t,query.addClass(u,n.PAGINATION_LINK_CLASS),a?coned.utils.addGeneralListeners(u,ot):coned.utils.addGeneralListeners(u,et)):(u=document.createElement(n.PAGINATION_TEXT_ELEMENT),query.addClass(u,n.PAGINATION_TEXT_CLASS),query.addClass(f,n.PAGINATION_ITEM_WIDER_CLASS),e=n.ARIA_PAGE_TEXT);u.setAttribute(n.ARIA_CURRENT,e);u.setAttribute(n.ARIA_LABEL,n.ARIA_LABEL_PAGE_TEXT+t);u.innerText=i+t;query.addClass(f,n.PAGINATION_ITEM_CLASS);f.appendChild(u);r.appendChild(f)},tt=function(){if(o=Math.ceil(u/e),s=1,a)s=parseInt(i.dataset.activePage);else{var r=coned.utils.getUrlParameterValue(n.PAGINATION_PAGE_URL_PARAMETER_NAME),t=parseInt(r);isNaN(t)||(s=t)}h=document.createElement(n.PAGINATION_ELEMENT);l=document.createElement(n.PAGINATION_ELEMENT);query.addClass(h,n.PAGINATION_CLASS);query.addClass(h,n.PAGINATION_MOBILE_HIDE_CLASS);query.addClass(l,n.PAGINATION_CLASS);query.addClass(l,n.PAGINATION_MOBILE_SHOW_CLASS);i.dataset.desktopModifiers&&query.addClass(h,i.dataset.mobileModifiers);i.dataset.mobileModifiers&&query.addClass(l,i.dataset.mobileModifiers);vt();yt();i.appendChild(h);i.appendChild(l)},vt=function(){s>1&&d(n.PAGINATION_PREV_CLASS,s-1,l);w(s,n.PAGINATION_PAGE_TEXT,l);s!=o&&d(n.PAGINATION_NEXT_CLASS,s+1,l)},yt=function(){var i,r,f,u,t;if(s>1&&o>n.PAGINATION_LIMIT&&d(n.PAGINATION_PREV_CLASS,s-1,h),i=s-k,r=s+k,f=s>k+1,u=o>n.PAGINATION_LIMIT,f&&u)if(r<=o)for(t=i;t<=r;t++)w(t,"",h);else for(i=o-(n.PAGINATION_LIMIT-1),t=i;t<=o;t++)w(t,"",h);else if(u)for(t=1;t<=n.PAGINATION_LIMIT;t++)w(t,"",h);else for(t=1;t<=o;t++)w(t,"",h);s!=o&&o>n.PAGINATION_LIMIT&&d(n.PAGINATION_NEXT_CLASS,s+1,h)},pt=function(){var n=parseInt(i.dataset.tabletdivider);n&&coned.utils.isTablet()?e=n:coned.utils.isDesktop()&&(e=parseInt(i.dataset.divider))},wt=function(){v=document.querySelector(n.MAIN_CONTENT);f=query.selectParentElement(i,n.PAGINATION_CONTENT_CLASS);f||(f=i.parentNode.getElementsByClassName(n.PAGINATION_CONTENT_CLASS)[0]);b=f.getElementsByClassName(n.PAGINATION_RESET_CLASS)[0];b||(b=i.parentNode.getElementsByClassName(n.PAGINATION_RESET_CLASS)[0]);ft=f.getElementsByClassName(n.RESULTS_ANIMATION_SELECTOR);c=f.getElementsByClassName(n.PAGINATION_RESULTS_CLASS)[0];g=document.getElementsByClassName(n.HEADER_WRAPPER_CLASS)[0];c!=undefined&&(p=c.dataset.resultsHide);a=i.dataset.staticPagination==="true";u=f.getElementsByClassName(n.PAGINATION_TOTAL_CLASS)[0];rt=f.getElementsByClassName(n.PAGINATION_START_CLASS)[0];ut=f.getElementsByClassName(n.PAGINATION_END_CLASS)[0];k=Math.floor(n.PAGINATION_LIMIT/2);e=parseInt(i.dataset.divider);var t=parseInt(i.dataset.tabletdivider);t&&coned.utils.isTablet()&&(e=t);u=u!=null?parseInt(u.innerText):0;nt=i.dataset.scrollTop==="true";o=Math.ceil(u/e)},bt=function(){coned.utils.isOru()&&query.addClass(i,n.PAGINATION_ORU_CLASS);f!=null&&o>1&&tt();coned.utils.addGeneralListeners(b,st);a&&lt(1);window.addEventListener("resize",pt)},kt=function(){wt();bt();r=!0};kt()};return i.prototype.isLoaded=function(){return r},i.prototype.setChangeEvent=function(n){t=n},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.PasswordProfile=function(){var n={SHOW_PASSWORD_BUTTON:"js-show-password",PASSWORD_INPUT:"js-password-input",MESSAGE_CHARACTERS:"js-register-characters",MESSAGE_UPPERCASE:"js-register-uppercase",MESSAGE_NUMBER:"js-register-number",MESSAGE_PASSWORD:"js-register-password",INPUT_CLASS_SELECTOR:"js-coned-input",ERROR_CLASS:"register__validation--error",ERROR_MESSAGE_CLASS:"coned-input-message--error",HIDDEN_CLASS:"hidden",USERNAME_SELECTOR:"js-username-selector",IGNORE_CLASS:"js-validate-ignore",CHECK_ICON:"icon-check-status",CLOSE_ICON:"icon-close"},t=!1,i=function(i){var f,r,e,o,s,h,c,l,a=function(){f=i.getElementsByClassName(n.SHOW_PASSWORD_BUTTON)[0];r=i.getElementsByClassName(n.PASSWORD_INPUT)[0];e=i.getElementsByClassName(n.MESSAGE_CHARACTERS)[0];o=i.getElementsByClassName(n.MESSAGE_UPPERCASE)[0];s=i.getElementsByClassName(n.MESSAGE_NUMBER)[0];h=i.getElementsByClassName(n.MESSAGE_PASSWORD)[0];c=document.getElementsByClassName(n.USERNAME_SELECTOR)[0];l=c.innerHTML},v=function(n){n.preventDefault();var t=r.type;t=="password"?(r.type="text",n.target.innerHTML=this.dataset.replaceText):(r.type="password",n.target.innerHTML=this.dataset.text)},u=function(t,i,r){var u,f;switch(i){case"minMax":u=/^.{8,30}$/;break;case"uppercase":u=/(?=.*[a-z])(?=.*[A-Z])/;break;case"number":u=/[0-9\s]+/;break;case"password":f=y(r,l)}return i!="password"&&(f=u.test(r)),f?(query.removeClass(t,n.ERROR_CLASS),query.removeClass(t.children[0],n.CLOSE_ICON),query.addClass(t.children[0],n.CHECK_ICON)):(query.addClass(t,n.ERROR_CLASS),query.removeClass(t.children[0],n.CHECK_ICON),query.addClass(t.children[0],n.CLOSE_ICON)),f},y=function(n,t){for(var e=t.length,r=!0,u,f,i=0;i+3<=e;i++)u=t.substring(i,i+3),f=n.indexOf(u),f>0&&(r=!1);return r},p=function(){var n=r.value,t=u(e,"minMax",n),i=u(o,"uppercase",n),f=u(s,"number",n),c=u(h,"password",n);r.dataset.valid=t&&i&&f&&c?!0:!1},w=function(){coned.utils.addGeneralListeners(f,v);r!=undefined&&r.addEventListener("keyup",p)},b=function(){a();w();t=!0};b()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.CreditCardPayBill=function(){var n=!1,t=function(t){var i=function(){t.submit()},r=function(){i();n=!0};r()};return t.prototype.isLoaded=function(){return n},t}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.PayMyBillNoLogin=function(){var n={PAGE_HEADER:"js-page-header",HERO_SECTION_SELECTOR:"js-hero",SINGLE_PMB_MODULE_SELECTOR:"js-single-pmb-module",FORM_SELECTOR:"js-no-login-form",RADIO_BUTTON_SELECTOR:"js-coned-radio",BILL_SELECTOR:"js-bill-selector",ACCOUNT_NUMBER_INPUT:"js-account-number-input",NOT_YOUR_ACCOUNT_SELECTOR:"js-not-your-account",BILL_HEADER_SELECTOR:"js-bill-header",ACCOUNT_ADDRESS_SELECTOR:"js-account-address",ACCOUNT_NUMBER_SELECTOR:"js-account-number-selector",SERVICE_TYPE_SELECTOR:"js-service-fee",SUBMIT_ANIMATION_SELECTOR:"js-submit-progress-animation",AMOUNT_INPUT_SELECTOR:"js-currency-input",INPUT_DATE_SELECTOR:"js-current-datepicker-input",BILL_LOOKUP_ERROR_SELECTOR:"js-bill-lookup-error",TOTAL_AMOUNT:"js-total-selector",ERROR_TEXT_SELECTOR:"js-error-message",FORM_SCID_NAME:"ScId",FORM_ACCOUNT_NUMBER_NAME:"accountNumber",FORM_PAYMENT_METHOD_NAME:"paymentMethod",FORM_EMAIL_ADDRESS_NAME:"emailAddress",INPUT_FILLED_CLASS:"coned-input--filled",DUE_BILL_CARD_CLASSES:"pay-my-bill-card pay-my-bill-card--red",DUE_BILL_CARD_MESSAGE_CLASS:"pay-my-bill-card__title",PAYMENT_METHOD_CONTAINER:"js-payment-method-container",BANK_ACCOUNT_INPUT_RADIO:"js-bank-account-radio",CREDIT_CARD_INPUT_RADIO:"js-credit-card-radio",CREDIT_CARD_INFO_MESSAGE:"js-credit-card-message",CREDIT_CARD_EMAIL_INPUT:"js-credit-card-input",EMAIL_INPUT:"js-email-address",CREDIT_CARD_MESSAGE_CONTAINER:"js-credit-card-message-container",CREDIT_CARD_MESSAGE_SELECTOR:"js-credit-card-thanks",ACCOUNT_ADDRESS:"js-account-address",ACCOUNT_NUMBER:"js-account-number",FORM_STEP_CLASS:"js-step-form",FINISH_STEP_SELECTOR:"js-step-finish",HIDDEN_CLASS:"hidden",SELECTED_CLASS:"selected",SUBMIT_BUTTON:"js-transactional-submit-selector",CAPTCHA_ELEMENT:"js-recaptcha",FILLED_INPUT:"coned-input--filled",ACTIVE_SELECT:"coned-select--active",ERROR_INPUT:"coned-input-message--error",VALID_CLASS:"valid",POPUP_DPP_ELEMENT:"js-popup-dpp",POPUP_CONTENT_CLASS:"popup__content",NEW_WINDOW_SPAN:"js-new-window-span",MINIMUM_PAYMENT_ALERT:"js-minimum-payment-alert",VISUALY_HIDDEN_CLASS:"visually-hidden",DATA_INPUT_SHOULD_START_VALIDATE:"data-input-should-start-validate",ACCOUNT_TOKEN:/@ACCOUNT/g,ADDRESS_TOKEN:/@ADDRESS/g,EMAIL_TOKEN:/@EMAIL/g,NUMBER_TOKEN:/@NUMBER/g,IMGSRC_TOKEN:/@IMGSRC/g,IMGALT_TOKEN:/@IMGALT/g,MIN_TOKEN:/@MIN/g,MAX_TOKEN:/@MAX/g,TAG_START:"guest.pay.start",TAG_SUBMIT_SUCCESS:"guest.pay.submit",TAG_SUBMIT_ERROR:"guest.pay.error",TAG_PAYMENT_METHOD:"guest.pay.paymentMethod",TAG_THANK_YOU_PAGE:"guest.pay.confirmation",TAG_PAY_BILL_CREDIT_CARD:"pay.bill.creditcard",SELECTED_ADDRESS_SUBTITLE:"js-chosen-account-subtitle",MFA_GET_CODE:"js-get-security-code",MFA_WRONG_ADDRESS:"js-wrong-address",PMB_MAIN_FORM:"js-pmb-guest-main-form",PMB_MFA_FORM:"js-pmb-guest-mfa-form",MANUAL_ACCOUNT:"js-manual-account",MFA_CHOOSE_ACCOUNT:"js-mfa-choose-account",MFA_CHOOSE_ACCOUNT_CONTAINER:"js-mfa-choose-account-container",MFA_ADDRESS_DROPDOWN:"js-address-dropdown",MFA_STEP_1:"js-mfa-get-account-step-1",MFA_STEP_2:"js-mfa-get-account-step-2",MFA_CONTACT_TYPE:"js-contact-type-mfa",MFA_CONTACT_TYPE_CONTENT:"js-contact-type-content-mfa",MFA_EMAIL_INPUT:"js-mfa-email",MFA_PHONE_INPUT:"js-mfa-phone",MFA_SEND_CODE:"js-send-code-button",MFA_PHONE_RADIOS:"js-phone-contact-method",MFA_TEXT_DESCRIPTION:"js-mfa-text-description",MFA_VOICE_DESCRIPTION:"js-mfa-voice-description",MFA_EMAIL_DESCRIPTION:"js-mfa-email-description",MFA_CODE_INPUT:"js-mfa-code-input",MFA_SEND_AGAIN:"js-send-code-again",MFA_SERVICE_ERROR:"js-mfa-service-error",MFA_SUBMIT_CODE:"js-submit-code-button",MFA_CONTACT_TYPE_DICT:{phone:"js-phone-contact-mfa",email:"js-email-contact-mfa"},MFA_CONTACT_TYPE_NAME:"contactOption",MFA_PHONE_NUMBER_NAME:"mfaPhoneNumber",MFA_EMAIL_INPUT_NAME:"mfaEmail",MFA_PHONE_CONTACT_TYPE_NAME:"phoneContactMethod",MFA_CODE_INPUT_NAME:"verificationCode",MFA_ADDRESS_BOX_RADIO_NAME:"addressBoxRadio",MULTIPLE_ADDRESS_CONTAINER:"js-address-button-container",MULTIPLE_ADDRESS_BUTTON:"js-address-button",SEVERAL_ADDRESS_CONTAINER:"js-dropdown-list",SEVERAL_ADDRESS_BUTTON:"js-dropdown-item-contain",SINGLE_ADDRESS_TEMPLATE:'<div class="address-box address-box--no-margin" data-account="@ACCOUNT"><div class="address-box__container address-dropdown__select"><div class="address-box__info"><p class="address-box__container-title">@ADDRESS<\/p><\/div><\/div><\/div>',MULTIPLE_ADDRESS_CONTAINER_TEMPLATE:'<div class="coned-form__addresses-container js-address-button-container"><\/div>',MULTIPLE_ADDRESS_TEMPLATE:'<div class="coned-form__address-box-button-wrapper"><input id="@ACCOUNT" name="addressBoxRadio" class="visually-hidden coned-form__address-box-button js-address-button" type="radio" data-account="@ACCOUNT"><label for="@ACCOUNT"><img class="coned-form__address-box-button-image" src="@IMGSRC" alt="@IMGALT"/><p class="coned-form__address-box-button-address">@ADDRESS<\/p><span class="icon-check-status coned-form__address-box-button-check"><\/span><\/label><\/div>',SEVERAL_ADDRESS_CONTAINER_TEMPLATE:'<div class="address-dropdown__container address-dropdown__container--no-margin"><div class="js-a11y-form js-address-dropdown address-dropdown address-dropdown--full-width js-module" data-module="AddressDropdown"><div class="address-dropdown__button js-dropdown-button" tabindex="0" role="button" aria-haspopup="true" aria-describedby="pmbDropdownAddressIdDescripcion" aria-controls="pmbDropdownAddressIdControls"><div class="address-box  address-box--no-margin js-dropdown-button-contain tag-transfer-service-address-dropdown" data-account="@ACCOUNT"><div class="address-box__container address-dropdown__select"><div class="address-box__info"><p class="address-box__container-title">@ADDRESS<\/p><\/div><\/div><\/div><span class="icon-carrot address-dropdown__icon js-dropdown-carrot"><\/span><\/div><span id="pmbDropdownAddressIdDescripcion" class="visually-hidden">Press the enter key to access the list. Inside of it, move using up and down arrows to review and enter to select.<\/span><ul id="pmbDropdownAddressIdControls" class="address-dropdown__list js-dropdown-list address-dropdown__list-item--hidden" role="listbox"><\/ul><\/div><\/div>',SEVERAL_ADDRESS_TEMPLATE:'<li class="address-dropdown__list-item js-dropdown-item " role="option" tabindex="-1" aria-selected="false"><div class="address-box  address-box--item js-dropdown-item-contain" data-account="@ACCOUNT"><div class="address-box__container"><div class="address-box__info"><p class="address-box__container-title">@ADDRESS<\/p><\/div><\/div><\/div><span class="address-dropdown__icon address-dropdown__icon--check js-icon-check"><\/span><\/li>',SEVERAL_ADDRESS_SELECTED_TEMPLATE:'<li class="address-dropdown__list-item js-dropdown-item " role="option" tabindex="-1" aria-selected="true"><div class="address-box  address-box--item js-dropdown-item-contain" data-account="@ACCOUNT"><div class="address-box__container"><div class="address-box__info"><p class="address-box__container-title">@ADDRESS<\/p><\/div><\/div><\/div><span class="address-dropdown__icon address-dropdown__icon--check js-icon-check icon-check-status"><\/span><\/li>',TONP_AMOUNT_MESSAGE:"js-tonp-message"},t=!1,i=function(i){var ii,ri,f,a,pi,ui,wi,bi,ki,y,st,ht,it,di,rt,fi,ei,ct,lt,b,oi,pt,si,hi,at,gi,ut,l,nr,vt,tr,ft,ir,yt,p,u,ci,k,d,rr,ur,et,li,ai,ot,o,r,s,e,vi,w,fr,v,yi,wt,g,nt,tt,h,er,bt,kt,dt,gt,c,ni=function(){new coned.components.SubmitAnimation(ht,pr,kr,sr,!1,!0)},pr=function(){if(p&&u&&u.getResponse()==="")ht.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);else{var r=i.dataset.serviceUrl,t;dataLayer.push({event:"find.bill.click"});st.classList.add(n.HIDDEN_CLASS);t={ScId:query.getFormInputValue(document,n.FORM_SCID_NAME),PaymentMethod:query.getFormInputValue(i,n.FORM_PAYMENT_METHOD_NAME),EmailAddress:encodeURIComponent(query.getFormInputValue(i,n.FORM_EMAIL_ADDRESS_NAME)),IsMultipay:!1};t.AccountNumber=c?c:query.getFormInputValue(i,n.FORM_ACCOUNT_NUMBER_NAME);p&&u&&u.getResponse()!==""&&(t.Verify=u.getResponse());query.getData(r,wr,br,t)}},wr=function(n){ht.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS);k=n},br=function(n){ht.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);k=n},kr=function(){p&&u&&u.reset();coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_BILL_NO_AUTH,or,sr):or(k)},dr=function(t,i,r,u){var f=oi.innerHTML,e=si.innerHTML,o=hi.innerHTML;f=f.replace("{{LINKCARD}}",t);oi.innerHTML=f;e=e.replace("{{ADDRESS}}","<strong>"+i+"<\/strong>");si.innerHTML=e;o=o.replace("{{ACCOUNT}}","<strong>"+r+"<\/strong>");hi.innerHTML=o;dataLayer.push({event:n.TAG_PAY_BILL_CREDIT_CARD,creditAccountType:u});setTimeout(function(){window.open(t)},3e3)},or=function(t){var r,s,h,u,e;if(ct.checked)ii&&ii.classList.add(n.HIDDEN_CLASS),dr(t.CreditCardRedirectUrl,t.Address,t.AccountNumber,t.AccountType),i.classList.add(n.HIDDEN_CLASS),gi.classList.add(n.HIDDEN_CLASS),at.classList.remove(n.HIDDEN_CLASS),pt.classList.remove(n.HIDDEN_CLASS),f.classList.remove(n.HIDDEN_CLASS),window.scrollTo(0,0),pt.focus(),coned.components.singlePayMyBill.rebindEvents(),dataLayer.push({event:n.TAG_THANK_YOU_PAGE,contentTitle:ct.value});else{wi.innerHTML=t.Address;bi.innerHTML=c?c:a.value;ki.dataset.type=t.AccountType;di.dataset.minAmount=t.PaymentLowerLimit;y.dataset.paymentMin=t.PaymentLowerLimit;y.dataset.paymentMax=t.PaymentUpperLimit;it.dataset.accountNumber=c?c:a.value;it.dataset.accountLastDigits=t.LastAccountDigits;it.dataset.confirmationEmail=t.ConfirmationEmail;it.dataset.address=t.Address;it.dataset.maid=t.Maid;ut&&(ut.innerHTML=ut.innerHTML.replace("@MIN",parseFloat(t.PaymentLowerLimit).toFixed(2)),ut.innerHTML=ut.innerHTML.replace("@MAX",parseFloat(t.PaymentUpperLimit).toFixed(2)));r=y.dataset.msgPaymentlimits;r=r.replace("@MIN",parseFloat(t.PaymentLowerLimit).toFixed(2));r=r.replace("@MAX",parseFloat(t.PaymentUpperLimit).toFixed(2));y.dataset.msgPaymentlimits=r;t.FullAmountDue&&t.FullAmountDueCents&&(s=t.FullAmountDue+t.FullAmountDueCents,h=parseFloat(s.replaceAll(",","")),y.value=h<0?0:t.FullAmountDue+t.FullAmountDueCents,y.classList.add(n.INPUT_FILLED_CLASS),coned.utils.triggerEvent(y,"keyup"),y.removeAttribute(n.DATA_INPUT_SHOULD_START_VALIDATE));var o=new Date,v=o.getDate(),p=o.getMonth(),w=o.getFullYear(),b=++p+"/"+v+"/"+w;rt.value=b;rt.classList.add(n.FILLED_INPUT);setTimeout(function(){var i=t.LatestAllowedPostPaymentDate?coned.utils.datepickerDateFormat(null,t.LatestAllowedPostPaymentDate):{minDate:"0",maxDate:"5d"},n=new Date;n.setDate(n.getDate()+5);rt.dataset.maxDateDays=t.LatestAllowedPostPaymentDate?t.LatestAllowedPostPaymentDate:n.toLocaleString("en-us").split(",")[0];$(rt).datepicker("option","minDate",i.minDate);$(rt).datepicker("option","maxDate",i.maxDate)},1);t.OverDue&&(u=document.createElement("div"),e=document.createElement("h3"),u.classList=n.DUE_BILL_CARD_CLASSES,e.className=n.DUE_BILL_CARD_MESSAGE_CLASS,e.innerHTML=t.OverDueMessage,u.appendChild(e),ui.parentNode.insertBefore(u,ui));i.classList.add(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);t.ShowDPP&&ft&&(t.DPPNotificationMessage&&(ir.innerText=t.DPPNotificationMessage),ft.classList.contains(n.HIDDEN_CLASS)&&ft.classList.remove(n.HIDDEN_CLASS))}dataLayer.push({event:"find.bill.success"});dataLayer.push({event:n.TAG_SUBMIT_SUCCESS,contentTitle:l.paymentMethod.value})},sr=function(){if(p&&u&&u.reset(),k){var i=st.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0],t=k&&k.errorMsg?k.errorMsg:coned.constants.ERROR_MESSAGE;st.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t;st.focus();dataLayer.push({event:"find.bill.error"});dataLayer.push({event:n.TAG_SUBMIT_ERROR,contentTitle:t})}},gr=function(t){t.preventDefault();a.value="";query.removeClass(a,n.INPUT_FILLED_CLASS);i.classList.remove(n.HIDDEN_CLASS);f.classList.add(n.HIDDEN_CLASS)},hr=function(){ct.checked?(yt.classList.remove(n.HIDDEN_CLASS),yt.classList.add(n.VISUALY_HIDDEN_CLASS),lt&&lt.classList.remove(n.HIDDEN_CLASS),b&&b.classList.remove(n.HIDDEN_CLASS)):ei.checked&&(yt.classList.add(n.HIDDEN_CLASS),yt.classList.remove(n.VISUALY_HIDDEN_CLASS),lt&&lt.classList.add(n.HIDDEN_CLASS),b&&b.classList.add(n.HIDDEN_CLASS))},nu=function(){vt.disabled=!($(l).validate().checkForm()&&(c||a.value!==""))},tu=function(){et.classList.add(n.HIDDEN_CLASS);ri&&ri.classList.add(n.HIDDEN_CLASS);o.classList.remove(n.HIDDEN_CLASS);o.focus()},iu=function(){var t=o.getElementsByClassName(n.MFA_CONTACT_TYPE_DICT[e.value])[0],i=o.getElementsByClassName(n.RADIO_BUTTON_SELECTOR);_.each(vi,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(i,function(n){n.checked=!1});v.value="";v.classList.remove(n.VALID_CLASS);v.classList.remove(n.FILLED_INPUT);v.classList.remove(n.ERROR_INPUT);w.value="";w.classList.remove(n.VALID_CLASS);w.classList.remove(n.FILLED_INPUT);w.classList.remove(n.ERROR_INPUT);$(l).validate().resetForm();t.classList.remove(n.HIDDEN_CLASS);e.value==="email"&&dataLayer.push({contactMethod:"email"})},ru=function(){var t=s.getElementsByClassName(n.MFA_SERVICE_ERROR)[0],i=t.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];i.innerHTML=coned.constants.ERROR_MESSAGE;t.classList.add(n.HIDDEN_CLASS);g.parentElement.classList.add(n.HIDDEN_CLASS);nt.parentElement.classList.add(n.HIDDEN_CLASS);tt.parentElement.classList.add(n.HIDDEN_CLASS);h.value="";h.classList.remove(n.VALID_CLASS);h.classList.remove(n.FILLED_INPUT);h.classList.remove(n.ERROR_INPUT);kt.disabled=!0;s.classList.add(n.HIDDEN_CLASS);r.classList.remove(n.HIDDEN_CLASS);r.focus()},cr=function(){new coned.components.SubmitAnimation(wt,eu,lr,ou,!1,!0)},uu=function(n){wt.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS);dt=[n,200]},fu=function(n,t){wt.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);dt=[n,t]},eu=function(){var i=r.dataset.serviceUrl,t;tt.parentElement.classList.add(n.HIDDEN_CLASS);nt.parentElement.classList.add(n.HIDDEN_CLASS);g.parentElement.classList.add(n.HIDDEN_CLASS);t={ScId:query.getFormInputValue(document,n.FORM_SCID_NAME),ContactMethod:query.getFormInputValue(r,n.MFA_CONTACT_TYPE_NAME),VerificationMethod:""};e.value==="phone"?(t.VerificationValue=query.getFormInputValue(r,n.MFA_PHONE_NUMBER_NAME),t.VerificationMethod=query.getFormInputValue(r,n.MFA_PHONE_CONTACT_TYPE_NAME)):t.VerificationValue=query.getFormInputValue(r,n.MFA_EMAIL_INPUT_NAME);p&&u&&u.getResponse()!==""&&(t.Verify=u.getResponse());t=JSON.stringify(t);query.postData(i,uu,fu,t,!0)},lr=function(){var t=r.getElementsByClassName(n.MFA_SERVICE_ERROR)[0];t.classList.add(n.HIDDEN_CLASS);e.value==="email"?(tt.parentElement.classList.remove(n.HIDDEN_CLASS),tt.innerHTML=tt.dataset.originalText.replace(n.EMAIL_TOKEN,w.value)):e.value==="phone"&&query.getFormInputValue(r,n.MFA_PHONE_CONTACT_TYPE_NAME)==="voice"?(nt.parentElement.classList.remove(n.HIDDEN_CLASS),nt.innerHTML=nt.dataset.originalText.replace(n.NUMBER_TOKEN,v.value)):e.value==="phone"&&query.getFormInputValue(r,n.MFA_PHONE_CONTACT_TYPE_NAME)==="text"&&(g.parentElement.classList.remove(n.HIDDEN_CLASS),g.innerHTML=g.dataset.originalText.replace(n.NUMBER_TOKEN,v.value));r.classList.add(n.HIDDEN_CLASS);s.classList.remove(n.HIDDEN_CLASS);s.focus();p&&u&&u.reset()},ou=function(){var i=dt[0],e=dt[1],t,f;if(!coned.utils.isPatternLab()&&e>=500){lr();return}t=r.getElementsByClassName(n.MFA_SERVICE_ERROR)[0];f=t.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];f.innerHTML=i.errorMsg?i.errorMsg:coned.constants.ERROR_MESSAGE;t.classList.remove(n.HIDDEN_CLASS);t.focus();p&&u&&u.reset()},su=function(){new coned.components.SubmitAnimation(bt,lu,au,ar,!1,!0)},hu=function(n){bt.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS);gt=n},cu=function(n){bt.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);gt=n},lu=function(){var f=s.dataset.serviceUrl,u=s.getElementsByClassName(n.MFA_SERVICE_ERROR)[0],o=u.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0],t,i;o.innerHTML=coned.constants.ERROR_MESSAGE;u.classList.add(n.HIDDEN_CLASS);t={ScId:query.getFormInputValue(document,n.FORM_SCID_NAME),VerificationMethod:query.getFormInputValue(r,n.MFA_CONTACT_TYPE_NAME),AccessCode:query.getFormInputValue(s,n.MFA_CODE_INPUT_NAME)};e.value==="phone"?t.VerificationValue=query.getFormInputValue(r,n.MFA_PHONE_NUMBER_NAME):(t.VerificationValue=query.getFormInputValue(r,n.MFA_EMAIL_INPUT_NAME),i=b.getElementsByClassName(n.EMAIL_INPUT)[0],i&&(i.value=query.getFormInputValue(r,n.MFA_EMAIL_INPUT_NAME),i.classList.add(n.FILLED_INPUT),i.classList.add(n.VALID_CLASS)));t=JSON.stringify(t);query.postData(f,hu,cu,t,!0)},au=function(){var t=gt,i;if(!coned.utils.isPatternLab()&&(!t||!t.Accounts||!t.Accounts.length)){ar();return}i=s.getElementsByClassName(n.MFA_SERVICE_ERROR)[0];i.classList.add(n.HIDDEN_CLASS);coned.utils.isPatternLab()?parseInt(h.value)===1?query.getData(coned.plConstants.PMB_MFA_SINGLE,ti,function(){},{}):2<=parseInt(h.value)&&parseInt(h.value)<=6?query.getData(coned.plConstants.PMB_MFA_MULTIPLE,ti,function(){},{}):query.getData(coned.plConstants.PMB_MFA_SEVERAL,ti,function(){},{}):ti(t)},ar=function(){var i=gt,t=s.getElementsByClassName(n.MFA_SERVICE_ERROR)[0],r=t.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];r.innerHTML=i.errorMsg?i.errorMsg:coned.constants.ERROR_MESSAGE;t.classList.remove(n.HIDDEN_CLASS);t.focus()},ti=function(t){var i=t.Accounts,f=new DOMParser,u,e,h,a,v,y,p;i.length===1?(e=i[0],a=n.SINGLE_ADDRESS_TEMPLATE.replace(n.ADDRESS_TOKEN,e.Address).replace(n.ACCOUNT_TOKEN,e.AccountNumber),c=e.AccountNumber,h=f.parseFromString(a,"text/html").getElementsByTagName("div")[0],ot.appendChild(h),d.innerHTML=d.dataset.singleAccount):2<=i.length&&i.length<=6?(u=f.parseFromString(n.MULTIPLE_ADDRESS_CONTAINER_TEMPLATE,"text/html").getElementsByTagName("div")[0],i.forEach(function(t,i){var r,o=n.MULTIPLE_ADDRESS_TEMPLATE.replace(n.ADDRESS_TOKEN,t.Address).replace(n.IMGSRC_TOKEN,t.ImageLink).replace(n.IMGALT_TOKEN,t.ImageAlt).replace(n.ACCOUNT_TOKEN,t.AccountNumber),e;r=f.parseFromString(o,"text/html").getElementsByTagName("div")[0];r.addEventListener("change",vr);i===0&&(e=r.getElementsByClassName(n.MULTIPLE_ADDRESS_BUTTON)[0],e.setAttribute("required",""),e.setAttribute("aria-required","true"));u.appendChild(r);d.innerHTML=d.dataset.multipleAccounts}),ot.appendChild(u)):(v=n.SEVERAL_ADDRESS_CONTAINER_TEMPLATE.replace(n.ADDRESS_TOKEN,i[0].Address).replace(n.ACCOUNT_TOKEN,i[0].AccountNumber),c=i[0].AccountNumber,u=f.parseFromString(v,"text/html").getElementsByTagName("div")[0],y=u.getElementsByClassName(n.MFA_ADDRESS_DROPDOWN)[0],p=u.getElementsByClassName(n.SEVERAL_ADDRESS_CONTAINER)[0],i.forEach(function(t,i){var r,u;u=i===0?n.SEVERAL_ADDRESS_SELECTED_TEMPLATE.replace(n.ADDRESS_TOKEN,t.Address).replace(n.ACCOUNT_TOKEN,t.AccountNumber):n.SEVERAL_ADDRESS_TEMPLATE.replace(n.ADDRESS_TOKEN,t.Address).replace(n.ACCOUNT_TOKEN,t.AccountNumber);r=f.parseFromString(u,"text/html").getElementsByTagName("li")[0];p.appendChild(r)}),y.addEventListener("change",vr),ot.appendChild(u),coned.utils.initializeModules(ot),d.innerHTML=d.dataset.multipleAccounts);li.classList.add(n.HIDDEN_CLASS);ai.classList.remove(n.HIDDEN_CLASS);s.classList.add(n.HIDDEN_CLASS);r.classList.remove(n.HIDDEN_CLASS);o.classList.add(n.HIDDEN_CLASS);et.classList.remove(n.HIDDEN_CLASS);et.focus();vt.disabled=!($(l).validate().checkForm()&&c)},vr=function(n){c=n.details&&n.details.account?n.details.account:n.target.dataset.account},vu=function(){var i=o.getElementsByClassName(n.RADIO_BUTTON_SELECTOR),u=o.querySelector('label[for="'+e.id+'"]'),t;c=null;t=b.getElementsByClassName(n.EMAIL_INPUT)[0];t&&(t.value="",t.classList.remove(n.FILLED_INPUT),t.classList.remove(n.VALID_CLASS),t.classList.remove(n.ERROR_INPUT));u.style.cssText="";e.classList.remove(n.FILLED_INPUT);e.classList.remove(n.ACTIVE_SELECT);e.classList.remove(n.ERROR_INPUT);e.classList.remove(n.VALID_CLASS);_.each(e.children,function(n,t){t===0?(n.disabled=!1,n.selected=!0,n.disabled=!0):n.selected=!1});_.each(vi,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(i,function(n){n.checked=!1});g.parentElement.classList.add(n.HIDDEN_CLASS);nt.parentElement.classList.add(n.HIDDEN_CLASS);tt.parentElement.classList.add(n.HIDDEN_CLASS);v.value="";v.classList.remove(n.VALID_CLASS);v.classList.remove(n.FILLED_INPUT);v.classList.remove(n.ERROR_INPUT);w.value="";w.classList.remove(n.VALID_CLASS);w.classList.remove(n.FILLED_INPUT);w.classList.remove(n.ERROR_INPUT);h.value="";h.classList.remove(n.VALID_CLASS);h.classList.remove(n.FILLED_INPUT);h.classList.remove(n.ERROR_INPUT);a.value="";a.classList.remove(n.VALID_CLASS);a.classList.remove(n.FILLED_INPUT);a.classList.remove(n.ERROR_INPUT);yi.disabled=!0;kt.disabled=!0;ot.innerHTML="";$(l).validate().resetForm();vt.disabled=!$(l).validate().checkForm();ai.classList.add(n.HIDDEN_CLASS);li.classList.remove(n.HIDDEN_CLASS);et.classList.add(n.HIDDEN_CLASS);o.classList.remove(n.HIDDEN_CLASS);r.classList.remove(n.HIDDEN_CLASS);r.focus()},yu=function(t){dataLayer.push({event:n.TAG_PAYMENT_METHOD,contentTitle:t.target.value})},pu=function(){ci||(dataLayer.push({event:n.TAG_START}),ci=!0)},wu=function(){ii=document.getElementsByClassName(n.PAGE_HEADER)[0];ri=i.getElementsByClassName(n.HERO_SECTION_SELECTOR)[0];f=document.getElementsByClassName(n.BILL_SELECTOR)[0];a=i.getElementsByClassName(n.ACCOUNT_NUMBER_INPUT)[0];pi=f.getElementsByClassName(n.NOT_YOUR_ACCOUNT_SELECTOR)[0];ui=f.getElementsByClassName(n.BILL_HEADER_SELECTOR)[0];wi=f.getElementsByClassName(n.ACCOUNT_ADDRESS_SELECTOR)[0];bi=f.getElementsByClassName(n.ACCOUNT_NUMBER_SELECTOR)[0];ki=f.getElementsByClassName(n.SERVICE_TYPE_SELECTOR)[0];y=f.getElementsByClassName(n.AMOUNT_INPUT_SELECTOR)[0];st=i.getElementsByClassName(n.BILL_LOOKUP_ERROR_SELECTOR)[0];it=f.getElementsByClassName(n.SINGLE_PMB_MODULE_SELECTOR)[0];di=f.getElementsByClassName(n.TOTAL_AMOUNT)[0];fi=i.getElementsByClassName(n.PAYMENT_METHOD_CONTAINER)[0];ei=fi.getElementsByClassName(n.BANK_ACCOUNT_INPUT_RADIO)[0];rt=f.getElementsByClassName(n.INPUT_DATE_SELECTOR)[0];ct=fi.getElementsByClassName(n.CREDIT_CARD_INPUT_RADIO)[0];lt=i.getElementsByClassName(n.CREDIT_CARD_INFO_MESSAGE)[0];b=i.getElementsByClassName(n.CREDIT_CARD_EMAIL_INPUT)[0];gi=f.getElementsByClassName(n.FORM_STEP_CLASS)[0];l=i.getElementsByClassName(n.FORM_SELECTOR)[0];vt=l.getElementsByClassName(n.SUBMIT_BUTTON)[0];ht=l.getElementsByClassName(n.SUBMIT_ANIMATION_SELECTOR)[0];nr=l.getElementsByClassName(n.RADIO_BUTTON_SELECTOR);at=f.getElementsByClassName(n.FINISH_STEP_SELECTOR)[0];pt=at.getElementsByClassName(n.CREDIT_CARD_MESSAGE_SELECTOR)[0];oi=pt.getElementsByClassName(n.CREDIT_CARD_MESSAGE_CONTAINER)[0];si=at.getElementsByClassName(n.ACCOUNT_ADDRESS)[0];hi=at.getElementsByClassName(n.ACCOUNT_NUMBER)[0];ft=f.getElementsByClassName(n.POPUP_DPP_ELEMENT)[0];ut=f.getElementsByClassName(n.MINIMUM_PAYMENT_ALERT)[0];tr=document.getElementsByClassName(n.CAPTCHA_ELEMENT);yt=l.getElementsByClassName(n.NEW_WINDOW_SPAN)[0];p=tr.length>0;ci=!1;ft&&(ir=ft.getElementsByClassName(n.POPUP_CONTENT_CLASS)[0]);o=i.getElementsByClassName(n.PMB_MFA_FORM)[0];o&&(d=i.getElementsByClassName(n.SELECTED_ADDRESS_SUBTITLE)[0],rr=i.getElementsByClassName(n.MFA_GET_CODE)[0],ur=i.getElementsByClassName(n.MFA_WRONG_ADDRESS)[0],et=i.getElementsByClassName(n.PMB_MAIN_FORM)[0],li=i.getElementsByClassName(n.MANUAL_ACCOUNT)[0],ai=i.getElementsByClassName(n.MFA_CHOOSE_ACCOUNT)[0],ot=i.getElementsByClassName(n.MFA_CHOOSE_ACCOUNT_CONTAINER)[0],r=i.getElementsByClassName(n.MFA_STEP_1)[0],s=i.getElementsByClassName(n.MFA_STEP_2)[0],e=i.getElementsByClassName(n.MFA_CONTACT_TYPE)[0],vi=i.getElementsByClassName(n.MFA_CONTACT_TYPE_CONTENT),w=i.getElementsByClassName(n.MFA_EMAIL_INPUT)[0],v=i.getElementsByClassName(n.MFA_PHONE_INPUT)[0],fr=i.getElementsByClassName(n.MFA_PHONE_RADIOS),yi=i.getElementsByClassName(n.MFA_SEND_CODE)[0],wt=r.getElementsByClassName(n.SUBMIT_ANIMATION_SELECTOR)[0],g=i.getElementsByClassName(n.MFA_TEXT_DESCRIPTION)[0],nt=i.getElementsByClassName(n.MFA_VOICE_DESCRIPTION)[0],tt=i.getElementsByClassName(n.MFA_EMAIL_DESCRIPTION)[0],h=i.getElementsByClassName(n.MFA_CODE_INPUT)[0],er=i.getElementsByClassName(n.MFA_SEND_AGAIN)[0],kt=i.getElementsByClassName(n.MFA_SUBMIT_CODE)[0],bt=s.getElementsByClassName(n.SUBMIT_ANIMATION_SELECTOR)[0])},bu=function(){vt.disabled=!0;coned.utils.addGeneralListeners(pi,gr);_.each(nr,function(n){coned.utils.addGeneralListeners(n,yu)});coned.utils.addMultipleListeners(et,["change","keyup"],nu);a.addEventListener("focus",pu);ei.addEventListener("change",hr);ct.addEventListener("change",hr);o&&(coned.utils.addGeneralListeners(rr,tu),e.addEventListener("change",iu),e.addEventListener("focus",function(){e.classList.remove(n.ERROR_INPUT)}),coned.utils.addMultipleListeners(r,["change","keyup"],function(){yi.disabled=!$(r).validate().checkForm()}),coned.utils.addMultipleListeners(s,["change","keyup"],function(){kt.disabled=h.value===""}),coned.utils.addGeneralListeners(er,ru),coned.utils.addGeneralListeners(ur,vu),_.each(fr,function(n){n.addEventListener("change",function(n){n.target.checked&&dataLayer.push({contactMethod:"phone-"+n.target.value})})}));o&&new coned.components.ValidateForm("."+n.MFA_STEP_2,su);p?(new coned.components.ValidateForm("."+n.FORM_SELECTOR,yr,":hidden",!0),u=new coned.components.Recaptcha(i,ni,ni),o&&new coned.components.ValidateForm("."+n.MFA_STEP_1,yr,":hidden",!0)):(new coned.components.ValidateForm("."+n.FORM_SELECTOR,ni,":hidden",!0),o&&new coned.components.ValidateForm("."+n.MFA_STEP_1,cr,":hidden",!0))},yr=function(n){var t=n===l?ni:cr;p&&u&&u.getResponse()===""&&u.checkRecaptcha(null,!1,!1,t)},ku=function(){wu();bu();t=!0};ku()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.MultiplePayMyBill=function(){var n={MULTIPLE_PAYMENT_FORM_STEP:"js-step-multiple-payment",SELECT_BILLS_BUTTON_CLASS:"js-select-bills",DOWNLOAD_BILLS_BUTTON_CLASS:"js-download-bills",TOTAL_AMOUNT_INPUT:"js-total-currency",MAIN_TOTAL_AMOUNT:"js-main-total-amount",FILLED_INPUT:"coned-input--filled",OTHER_AMOUNT_CONTAINER:"js-other-amount-container",OTHER_AMOUNT_CHECKBOX:"js-show-other-input",UL_CLASS:"transactional__half",LI_CLASS:"coned-form__field-container transactional__half-block",VALIDATION_SELECTOR:"js-form-validation",INPUT_TITLE:"js-input-title",INPUT_CURRENCY_SELECTOR:"js-currency-input",HIDDEN_FORM_SELECTOR:"js-form-content-selector",SUBMIT_BUTTON:"js-transactional-submit-selector",SUBMIT_BUTTON_TEXT:"js-transactional-submit-text",SUBMIT_ANIMATION_CONTAINER:"js-submit-progress-animation",FORM_SELECTOR:"js-multiple-pmb-form",FINISH_HIDDEN_ELEMENT:"js-multiple-pmb",PAYMENT_REFERENCE_SELECTOR:"js-payment-reference",ACCOUNT_EMAIL_SELECTOR:"js-account-email",INPUT_DYNAMIC_INPUT:"js-dynamic-currency",AMOUNT_TITLE_SELECTOR:"js-amount-title",OWE_SELECTOR:"js-owe-selector",LABEL_SELECTOR:"js-coned-label",MINIMUM_PAYMENT_ALERT:"js-minimum-payment-alert",ENERGY_SHARE_SELECTOR:"js-energy-share-selector",ENERGY_AMOUNT_SELECTOR:"js-energy-share",ROW_ENERGY_SHARE:"js-row-energy-share",ROW_SERVICE_FEE:"js-row-service-fee",ROW_TEXT_CLASS:"billing-table__description",PAYMENT_METHOD_DROPDOWN:"js-payment-method",PAYMENT_METHOD_TOOLTIP:"js-payment-method-tooltip",TOTAL_AMOUNT_SELECTOR:"js-total-selector",AMOUNT_SELECTOR:"js-amount-selector",CREDIT_CARD_PAYMENT_SELECTOR:"js-credit-card-payment",CREDIT_CARD_MESSAGE_RESIDENTIAL:"js-credit-card-message-residential",CREDIT_CARD_MESSAGE_COMMERCIAL:"js-credit-card-message-commercial",CREDIT_CARD_LINK:"js-credit-card-link",SERVICE_FEE_SELECTOR:"js-service-fee",PAYMENT_AMOUNT_SELECTOR:"js-payment-amount",CHECKED_CLASS:"coned-checkbox--checked",ENERGY_SHARE_MODULE:"js-energy-share-module",ENERGY_SHARE_OTHER_STATE_TEXT:"js-other-state-text",ENERGY_SHARE_NEW_JERSEY_TEXT:"js-new-jersey-text",ENERGY_SHARE_CHECKBOX_TEXT:"js-checkbox-name-selector",DPP_ENROLL_CONTAINER_SELECTOR:"js-dpp-enroll-container",DPP_ENROLL_SELECTOR:"js-dpp-enroll",DPP_ENROLL_HIDE_CLASS:"transactional--hidden",CREDIT_CARD_OPTION_SELECTOR:"js-credit-card-option-selector",LAST_ACCOUNT_OPTION_SELECTOR:"js-last-account-option-selector",THANKS_MESSAGE_SELECTOR:"js-pay-my-bill-thanks",CREDIT_CARD_MESSAGE_SELECTOR:"js-credit-card-thanks",DATE_PICKER_SELECTOR:"js-date-picker-selector",CREDIT_CARD_SELECTOR:"js-credit-card-selector",BILL_PAYMENT_ERROR:"js-bill-payment-error",ERROR_TEXT_SELECTOR:"js-error-message",FORM_SCID_NAME:"ScId",FORM_PAYMENT_METHOD_NAME:"paymentMethod",FORM_ROUTING_ABA_NUMBER_NAME:"routingAbaNumber",FORM_BANK_ACCOUNT_NUMBER_NAME:"bankAccountNumber",FORM_DPP_ENROLL_NAME:"dppEnroll",FORM_PAYMENT_DATE_NAME:"paymentDate",FORM_PAYMENT_TYPE_NAME:"paymentType",FORM_ENERGY_SHARE_NAME:"energyShare",INPUT_DATE_SELECTOR:"js-current-datepicker-input",PAYMENT_AMOUNT_PARAMETER:"PaymentAmount=",ACCOUNT_NUMBER_PARAMETER:"AccountNumber=",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",HEADER_TOTAL_AMOUNT_CLASS:"js-total-amount",OHTER_AMOUNT_CLASS:"js-other-amount",BILL_HEADER_CLASS:"js-bill-header",CREADIT_CARD_MESSAGE_TITLE_CLASS:"js-credit-card-message-title",CREADIT_CARD_MESSAGE_DESCRIPTION_CLASS:"js-credit-card-message-description",HEADER_MESSAGE_BILL:"js-header-message",HEADER_MESSAGE_BILL_ALL:"js-header-message-all",HEADER_MESSAGE_BILL_SOME:"js-header-message-some",HEADER_MESSAGE_BILL_ONE:"js-header-message-one",CANCEL_POPUP:"js-cancel-popup",CONFIRM_CANCEL_BUTTON:"js-confirm-cancel-button",MY_ACCOUNT_BTN:"js-batch-my-account-btn",STEP_PAYMENT:"js-step-payment",ACCOUNT_TOKEN:"@ACCOUNT",PARTIAL_PAYMENT_WARNING_MSG:".js-partial-payment-warning",MASTER_ACCOUNT:"master",MAID_MASK:"{{MAID}}",PAYMENT_ERROR:"js-payment-error",RESIDENTIAL:"R",MULTIPLE_PAYMENT_BILLS_STEP:"js-step-bill-list",CHECKALL_CHECKBOX:"js-check-all",RECEIPT_LABEL:"js-check-receipt",RECEIPT_LABEL_BOX:"js-check-receipt-box",RECEIPT_CHECKBOX:"js-checkbox-selector",BILL_LINK_CLASS:"js-bill-link",ACCOUNT_ADDRESS:"js-account-address",PROCEED_PAYMENT_BUTTON_CLASS:"js-unit-list-submit",SELECT_ALL_CHECKBOX_CLASS:"js-select-all-bills",CLEAR_ALL_CTA_CLASS:"js-clear-all-bills",BILLS_CONTAINER_CLASS:"js-bill-list",BILLS_NUMBER_CLASS:"js-bills-selected",ANIMATION_STEP_CLASS:"js-step-animation",ANIMATION_TOTAL_CLASS:"js-enroll-animation-total",ANIMATION_CURRENT_CLASS:"js-enroll-animation-current",ANIMATION_BILL_CLASS:"js-enroll-animation-bill",LOADING_ANIMATION_PLAY:"js-animation-play",ACTIVE_BATCH:"js-active-batch",BATCH_BANNER_CONTAINER:"js-batch-banner",BATCH_BANNER_TITLE:"js-batches-process-header",BATCH_BANNER_DESCRIPTION:"js-batch-process",NO_BATCH_BANNER_CONTAINER:"js-no-batch-banner",BATCH_PROCESS_CONTAINER:"js-batch-process-container",BATCH_RESULTS_CONTAINER:"js-batch-results",BATCH_ITEM:"js-batch-item",BATCH_ICON:"js-batch-icon",BATCH_LOADING:"js-loading-animation",BATCH_DESCRPTION:"js-batch-description",BATCH_DESCRPTION_TEXT:"js-batch-description-text",BATCH_BUTTON_CONTAINER:"js-batch-buttons-container",BATCH_PAY:"js-batch-pay",BATCH_CANCEL:"js-batch-cancel",BATCH_DESCRIPTION:"js-batches-process-description",BATCH_ITEM_STRUCTURE:'<div class="pay-my-bill__batch-container js-batch-item" aria-live="polite"><div class="pay-my-bill__batch-description js-batch-description"><div class="pay-my-bill__batch-icon js-batch-icon" aria-hidden="true"><\/div><div class="pay-my-bill__batch-icon loading-animation-component loading-animation-component--bg-container loading-animation-component--small loading-animation-component--blue js-loading-animation js-module hidden" data-module="LoadingAnimation" data-no-page-disabled="true"><div class="loading-animation-component__clip-right"><div class="loading-animation-component__slice-right js-slice-right-selector loading-animation__slice-right--white"><\/div><\/div><div class="loading-animation-component__clip-left"><div class="loading-animation-component__slice-left js-slice-left-selector loading-animation__slice-left--white"><\/div><\/div><div class="loading-animation-component__top js-top-selector"><\/div><\/div><p class="pay-my-bill__batch-description-paragraph js-batch-description-text"><\/p><\/div><div class="pay-my-bill__batch-buttons js-batch-buttons-container hidden"><button class="transactional__link transactional__link--no-decoration js-batch-cancel"><\/button><button class="pay-my-bill__batch-buttons--pay-batch js-batch-pay"><span><\/span><\/button><\/div><\/div>',BATCH_TOKEN:"@BATCH",AMOUNT1_TOKEN:"@AMOUNT1",AMOUNT2_TOKEN:"@AMOUNT2",PERCENTAGE_TOKEN:"@PERCENTAGE",BATCH_CHECK_CLASS:"pay-my-bill__batch-icon-check",BATCH_WARNING_CLASS:"pay-my-bill__batch-icon-warning",BATCH_ERROR_CLASS:"pay-my-bill__batch-icon-error",BATCH_SUCCESS_TOKEN:"ready",BATCH_LOADING_TOKEN:"loading",BATCH_CANCELLED_TOKEN:"cancelled",BATCH_WARNINGS_TOKEN:"warning",MULTIPLE_PAYMENT_STATUS_SUCCESS_BANNER:"js-pay-multiple-status-success",MULTIPLE_PAYMENT_STATUS_SUCCESS_NUMBER:"js-pay-multiple-status-success-number",MULTIPLE_PAYMENT_STATUS_SUCCESS_LIST:"js-pay-multiple-status-success-list",MULTIPLE_PAYMENT_STATUS_SUCCESS_MORE:"js-status-success-show-more",MULTIPLE_PAYMENT_STATUS_SUCCESS_TITLE:"js-pay-multiple-status-success-title",MULTIPLE_PAYMENT_STATUS_SUCCESS_INFO:"js-pay-multiple-status-success-info",MULTIPLE_PAYMENT_STATUS_FAILED_NUMBER:"js-pay-multiple-status-failed-number",MULTIPLE_PAYMENT_STATUS_FAILED_LIST:"js-pay-multiple-status-failed-list",MULTIPLE_PAYMENT_STATUS_FAILED_MORE:"js-status-failed-show-more",MULTIPLE_PAYMENT_STATUS_FAILED_BANNER:"js-pay-multiple-status-failed",MULTIPLE_PAYMENT_STATUS_SUCCESS_BILL:"js-pay-multiple-status-success-bill",MULTIPLE_PAYMENT_STATUS_FAILED_BILL:"js-pay-multiple-status-failed-bill",TAB_BILLS_PROCESSED_CONTAINER:"js-bills-processed-container",TAB_NOT_PAYABLE_CHECK_CONTAINER:"js-not-payable-check-container",TAB_BILLS_NOT_PROCESSED_CONTAINER:"js-bills-not-processed-container",TAB_BILLS_PROCESSED:"js-bills-processed",TAB_NOT_PAYABLE_CHECK:"js-not-payable-check",TAB_BILLS_NOT_PROCESSED:"js-bills-not-processed",BUTTON_BILLS_PROCESSED:"js-show-more-bills-processed",BUTTON_BILLS_NOT_PROCESSED:"js-show-more-bills-not-processed",BUTTON_NOT_PAYABLE:"js-show-more-not-payable-check",SUCCESS_PICTURE_SELECTOR:"js-success-picture",FAIL_PICTURE_SELECTOR:"js-fail-picture",MULTIPLE_PAYMENT_STATUS_NOT_PAYABLE_CHECK_NUMBER:"js-pay-multiple-status-pay-check-number",SHOW_MORE_CLASS:"js-show-more",SUCCESS_VALUE:"success",FAIL_VALUE:"fail",CONFIRMATION_VALUE:"Confirmation",ACCOUNT_NUMBER_VALUE:"Account Number",LIST_ELEMENT_CLASS_SELECTOR:"js-item",LIST_ELEMENT_CLASSESS_HIDDEN:" hidden js-item",CONTAINER_RIGHT_ELEMENT_CLASSES:"billing-payment-item__container-right",LIST_ELEMENT_TITLE_CLASSES:"billing-payment-item__title",MARKUP_LIST_ELEMENT:"li",MARKUP_PARAGRAPH_ELEMENT:"p",MARKUP_SPAN_ELEMENT:"span",STATUS_LIST_COMPLETE:"success-banner__span--visible",NO_ERROR_CODES_PROVIDED_MESSAGE:"No error codes provided",PAYMENT_STATUS_MESSAGE:"js-payment-status-message",TABLE_BODY:"billing-payment-table__body",POST_PAYMENT:"billing-payment-table--post-payment",PAYMENT_TABLE:"billing-payment-table",SHOW_DESKTOP:"billing-payment-table__data--desktop",SHOW_MOBILE:"billing-payment-table__data--mobile",TEXT_RIGHT:"billing-payment-table__data--right",TR_ELEMENT:"tr",TD_ELEMENT:"td",TH_ELEMENT:"th",CHANGE_EVENT:"change",RESIZE_EVENT:"resize",HIDDEN_CLASS:"hidden",DEFAULT_VALIDATOR_HIDDEN_SELECTOR:":hidden",DISABLED_ATTRIBUTE:"disabled",FONT_SIZE:"font-size",CHILD_LIST_TYPE:"childList",CLASS_ATTRIBUTE:"class",TRUE_VALUE:!0,NULL_VALUE:null,FINISH_STEP:"js-finish-selector",THANKS_BANNER_CONTAIN:"js-transactional-thanks",TRANSACTION_RESULT_IMG_SELECTOR:"js-transaction-result-img",FORM_LOADING:"js-form-loading",FORM_LOADING_HIDDEN:"form-loading--hidden",ACTIVE_DROPDOWN:"coned-select--active",SELECT_LABEL_SELECTOR:"js-coned-select-label",NUMBER_INPUT_SELECTOR:"js-number-input",DATA_INPUT_SHOULD_START_VALIDATE:"data-input-should-start-validate",VALIDATE_START_MIN_LENGTH_CLASS:"js-validate-start-min-length",FIELD_ERROR_WRAPPER:"coned-field-error-wrapper",INPUT_ERROR_CLASS:"coned-input-message--error",CLOSE_POPUP_BUTTON:"js-popup-close",TAGGING_EVENT:"Pay My Bill",LESS_THAN_THREE:"Less than 3",THREE_TO_TEN:"Between 3-10",ELEVEN_TO_TWENTY:"Between 11-20",TWENTYONE_TO_FIFTY:"Between 21-50",FIFTYONE_TO_HUNDRED:"Between 51-100",ONEHUNDRED_TO_FIVEHUNDRED:"Between 101-500",MORE_THAN_FIVEHUNDRED:"More than 500",TAG_PAY_BILL_CREDIT_CARD:"pay.bill.creditcard"},t=!1,i=function(i){var ue,c,tu,iu,ii,k,fe,ci,li,ri,fr,ai,ru,uu,r,fu,eu,ou,su,yt,pt,er,rt,wt,p,hu,cu,lu,ut,g,or,y,au,bt,vi,nt,ui,sr,a,vu,ee,yu,pu,v,o,yi,tt,u,ft,wu,hr,oe,cr,bu,se,lr,he,ku,fi,ce,le,ae,ar,kt,ve,du,ye,pe,dt,gu,nf,tf,rf,at,we,pi,wi,be,ke,f,ei,gt,uf,de,ge,no,vr,ff,s,ef,bi,ki,of,to,vt,et,yr,sf,hf,io,ot,h,w,cf,di,pr,lf,af,vf,ro,st,l,e,wr,gi,ht,d,uo,br,oi,yf,pf,kr,si,wf,dr,ct,bf,lt,it,kf,b,fs=function(){coned.utils.addGeneralListeners(bu,function(n){fo(n,bu,cr)});coned.utils.addGeneralListeners(ku,function(n){fo(n,ku,he)});window.addEventListener(n.RESIZE_EVENT,es,!1)},fo=function(t,i,r){t.preventDefault();r.classList.add(n.STATUS_LIST_COMPLETE);i.classList.add(n.HIDDEN_CLASS)},es=function(){vf||(vf=setTimeout(function(){vf=null},66))},df=function(){Array.prototype.forEach.call(vu,function(t){t.removeAttribute(n.DISABLED_ATTRIBUTE)})},nr=function(){Array.prototype.forEach.call(vu,function(t){t.setAttribute(n.DISABLED_ATTRIBUTE,!0)})},os=function(t,i){var r,e;i.preventDefault();r=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":checked:not(:disabled)");ct&&rt.classList.remove(n.HIDDEN_CLASS);ct=!1;r.length===1&&(e={Maid:r[0].dataset.maid,ScId:gt.dataset.scid},query.getData(yf,so,ne,e,a),r[0].dataset.accountType===n.MASTER_ACCOUNT&&(ct||rt.classList.add(n.HIDDEN_CLASS),ct=!0));gs();tt.classList.remove(n.HIDDEN_CLASS);u.classList.add(n.HIDDEN_CLASS);v&&v.focus();window.scrollTo(0,0);ss();f.disabled=!0},eo=function(t){var i;switch(!0){case t<3:i=n.LESS_THAN_THREE;break;case t>2&&t<11:i=n.THREE_TO_TEN;break;case t>10&&t<21:i=n.ELEVEN_TO_TWENTY;break;case t>20&&t<51:i=n.TWENTYONE_TO_FIFTY;break;case t>50&&t<101:i=n.FIFTYONE_TO_HUNDRED;break;case t>100&&t<501:i=n.ONEHUNDRED_TO_FIVEHUNDRED;break;default:i=n.MORE_THAN_FIVEHUNDRED}dataLayer.push({event:n.TAGGING_EVENT,accountsCount:i})},ss=function(){if(r){var t=r.parentElement.getElementsByClassName(n.SELECT_LABEL_SELECTOR)[0];t.removeAttribute("style");r.removeAttribute("style");r.selectedIndex=0;r.classList.remove(n.ACTIVE_DROPDOWN);r.classList.remove(n.INPUT_ERROR_CLASS);gf(r)}k&&k.checked&&k.click();g&&g.checked&&g.click();nt&&(nt.classList.remove(n.FILLED_INPUT),nt.classList.remove(n.INPUT_ERROR_CLASS),nt.value="",gf(nt));bt&&bt.classList.add(n.HIDDEN_CLASS);ff&&Array.prototype.forEach.call(ff,function(t){t.classList.remove(n.FILLED_INPUT);t.classList.remove(n.INPUT_ERROR_CLASS);t.value="";gf(t);t.hasAttribute(n.DATA_INPUT_SHOULD_START_VALIDATE)&&t.removeAttribute(n.DATA_INPUT_SHOULD_START_VALIDATE)})},gf=function(t){var i=t.parentElement.parentElement.getElementsByClassName(n.FIELD_ERROR_WRAPPER)[0];i&&(i.style.display="none")},hs=function(t){t.preventDefault();var i=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":checked:not(:disabled)");b=!0;v.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE);o.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE);f.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE);nr();i.length>=100&&a.classList.remove(n.FORM_LOADING_HIDDEN);coned.utils.processLargeData(i,function(n){n.click()},function(){b=!1;ni();a.classList.add(n.FORM_LOADING_HIDDEN)});c.checked&&(c.checked=!1,c.parentElement.classList.remove(n.CHECKED_CLASS))},cs=function(t,u){var s=u,a=s.target.id,y=r.value,h,l;er.dataset.type=s.target.dataset.accountType;s.target.checked?(h={id:a,maid:s.target.dataset.maid},e.push(h),si.push(h),lt+=1,it=parseFloat(it)+parseFloat(s.target.dataset.amount.replace(/,/g,""))):(l=e.findIndex(function(n){return n.id==a}),l>-1&&e.splice(l,1),lt-=1,it=parseFloat(it)-parseFloat(s.target.dataset.amount.replace(/,/g,"")),c.checked=!1,c.parentElement.classList.remove(n.CHECKED_CLASS));it<0&&(it=0);b||(lt?(df(),o.classList.remove(n.HIDDEN_CLASS),v.removeAttribute(n.DISABLED_ATTRIBUTE),o.removeAttribute(n.DISABLED_ATTRIBUTE),f.removeAttribute(n.DISABLED_ATTRIBUTE)):(nr(),v.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE),f.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE),v.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE),o.classList.add(n.HIDDEN_CLASS),o.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE),f.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE)),oo(),ni(),ah(s.target.checked,s.target),y!=i.dataset.creditOption&&lt===1?p.classList.remove(n.HIDDEN_CLASS):nu(),hi(!0),b=!1)},ls=function(){var i=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":not(:disabled)"),t;i.length!==0&&(v.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE),o.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE),f.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE),nr(),b=!0,c.checked?(t=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":not(:checked):not(:disabled)"),t.length>=100&&a.classList.remove(n.FORM_LOADING_HIDDEN),coned.utils.processLargeData(t,function(n){n.click()},function(){v.removeAttribute(n.DISABLED_ATTRIBUTE);o.removeAttribute(n.DISABLED_ATTRIBUTE);f.removeAttribute(n.DISABLED_ATTRIBUTE);df();b=!1;ni();hi(!0);te(ir);a.classList.add(n.FORM_LOADING_HIDDEN)}),c.parentElement.classList.add(n.CHECKED_CLASS)):(t=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":checked:not(:disabled)"),t.length>=100&&a.classList.remove(n.FORM_LOADING_HIDDEN),coned.utils.processLargeData(t,function(n){n.click()},function(){b=!1;ni();hi(!0);a.classList.add(n.FORM_LOADING_HIDDEN)}),c.parentElement.classList.remove(n.CHECKED_CLASS)))},oo=function(){var t=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":checked:not(:disabled)").length,i=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":not(:disabled)").length;i==t?(c.checked=!0,c.parentElement.classList.add(n.CHECKED_CLASS)):(c.checked=!1,c.parentElement.classList.remove(n.CHECKED_CLASS))},as=function(){var e=document.createElement("ul"),r=document.createElement("li"),t=u.querySelector("."+n.RECEIPT_LABEL_BOX+":checked:not(:disabled)"),s,i,c,l=parseFloat(t.dataset.amount.replace(/,/g,"")),f;ii.innerHTML="";e.className=n.UL_CLASS;ii.appendChild(e);er.dataset.type=t.dataset.accountType;r.className=n.LI_CLASS;r.innerHTML=ro;s=r.getElementsByClassName(n.INPUT_TITLE)[0];s.innerHTML=t.dataset.address;c=r.getElementsByClassName(n.LABEL_SELECTOR)[0];c.setAttribute("for","payment-amount"+(h?"-"+h:""));i=r.getElementsByClassName(n.INPUT_DYNAMIC_INPUT)[0];i.setAttribute("name","paymentAmount"+(h?h:""));i.setAttribute("id","payment-amount"+(h?"-"+h:""));i.setAttribute("data-value",l);i.setAttribute("data-amount",l);i.setAttribute("data-maid",t.dataset.maid);i.addEventListener("keyup",ys);f=t.dataset.msgPaymentlimits;f=f.replace("@MIN",t.dataset.paymentMin);f=f.replace("@MAX",t.dataset.paymentMax);i.setAttribute("data-msg-paymentlimits",f);i.setAttribute("data-rule-paymentlimits","#payment-amount"+(h?"-"+h:""));i.setAttribute("data-payment-min",t.dataset.paymentMin);i.setAttribute("data-payment-max",t.dataset.paymentMax);i.setAttribute("data-address",t.dataset.address);i.setAttribute("data-account-number",t.dataset.accountNumber);i.setAttribute("data-maid",t.dataset.maid);i.setAttribute("data-bill-date",t.dataset.billDate);t.dataset.dppEnrolled=="false"?ut.classList.remove(n.DPP_ENROLL_HIDE_CLASS):(ut.classList.add(n.DPP_ENROLL_HIDE_CLASS),g.checked&&g.click());coned.utils.isOru()&&(t.dataset.state==="NJ"?(hu.classList.add(n.HIDDEN_CLASS),cu.classList.remove(n.HIDDEN_CLASS),lu.innerHTML=p.dataset.newJerseyCheckbox,ru.innerHTML=p.dataset.newJerseyRow):(hu.classList.remove(n.HIDDEN_CLASS),cu.classList.add(n.HIDDEN_CLASS),lu.innerHTML=p.dataset.otherStateCheckbox,ru.innerHTML=p.dataset.otherStateRow));e.appendChild(r);o.classList.remove(n.HIDDEN_CLASS);_.each(pu,function(n){n.innerHTML=1});new coned.components.FormValidationModule(ue)},ni=function(){var n=it;iu.value=n;wt.dataset.amount=n;wt.innerHTML=rr(n.toFixed(2)+"");vs(n);Array.prototype.forEach.call(pu,function(n){n.innerHTML=lt});Array.prototype.forEach.call(eu,function(t){t.innerHTML=rr(n.toFixed(2)+"");t.dataset.amount=n});tu.length===lt?(dt.innerHTML=gu.innerHTML,ei.innerHTML=f.dataset.multipleBill):lt===1?(dt.innerHTML=tf.innerHTML,ei.innerHTML=f.dataset.oneBill):(dt.innerHTML=nf.innerHTML,ei.innerHTML=f.dataset.multipleBill);rt&&!coned.utils.isOru()?gr():coned.utils.isOru()&&tr()},tr=function(){f.disabled=!$(gt).validate().checkForm()},gr=function(){!ct&&ui&&ui.dataset.amount&&ui.dataset.minAmount&&parseFloat(ui.dataset.amount)<parseFloat(ui.dataset.minAmount)?(rt.classList.remove(n.HIDDEN_CLASS),f.disabled=!0):(rt.classList.add(n.HIDDEN_CLASS),tr())},so=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_LAST_USED_BANK_ACCOUNT_NUMBER,ho,ne):ho(n)},ho=function(t){var u;t.LastBankAccountNumber&&t.LastBankAccountNumber!==""?(u=r.dataset.message,y.text=u.replace(n.ACCOUNT_TOKEN,t.LastBankAccountNumber),y.dataset.valid=!0):y.dataset.valid=!1;t.CreditCardRedirectUrl&&t.CreditCardRedirectUrl!==""&&(i.dataset.creditPayment=t.CreditCardRedirectUrl);to=t.CreditCardRedirect;hi(!0)},ne=function(){y.dataset.valid=!1;hi()},vs=function(n){var r=[],t=[],f,e="",u="",o="",i=Math.round(n%1*100).toString(),s=Math.floor(n);for(r.push("$"),u=s.toString().split("");u.length>3;)f=u.splice(-3,3).reverse(),t=t.concat(f),t.push(",");u.length&&(t=t.concat(u.reverse()));r=r.concat(t.reverse());i.length===1&&(i=i[0]!="0"?"0"+i:i.concat("0"));o="<sup>."+i+"<\/sup>";r.push(o);e=r.join("");ft.innerHTML=e},ys=function(n){var i=n.target,t=i.value,r;t=t.replace(/[^\d.]/g,"");r=t.match(/^-?\d+(?:\.\d{0,2})?/);t=parseFloat(r?r[0]:0);i.dataset.amount=isNaN(t)?i.dataset.value:t;lo()},ps=function(){var i=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":not(:disabled)"),t=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":checked:not(:disabled)");i.length!==0&&(nr(),v.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE),o.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE),f.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE),b=!0,t.length>=100&&a.classList.remove(n.FORM_LOADING_HIDDEN),coned.utils.processLargeData(t,function(n){n.click()},function(){b=!1;ni();a.classList.add(n.FORM_LOADING_HIDDEN)}),e=[],si=[],window.scrollTo(0,0),c.checked&&c.parentElement.classList.remove(n.CHECKED_CLASS),tt.classList.add(n.HIDDEN_CLASS),u.classList.remove(n.HIDDEN_CLASS))},ws=function(){if(o.dataset.fileLink){window.location=o.dataset.fileLink;return}var t=[],i=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":checked:not(:disabled)");du.classList.add(n.HIDDEN_CLASS);coned.utils.processLargeData(i,function(n){var i={accountNumber:n.dataset.accountNumber,amount:n.dataset.amount,billDate:n.dataset.billDate};t.push(i)},function(){bs(t)})},bs=function(t){var r=o.dataset.url,i={AccountsData:t};i=JSON.stringify(i);a.classList.remove(n.FORM_LOADING_HIDDEN);query.postData(r,ks,co,i,!0)},ks=function(t){if(coned.utils.isPatternLab())o.dataset.fileLink=coned.plConstants.PAYMENT_VIEW_DATA;else if(t.url&&t.url!="")o.dataset.fileLink=t.url;else{co(t);return}a.classList.add(n.FORM_LOADING_HIDDEN);window.location=o.dataset.fileLink},co=function(t){ve.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;du.classList.remove(n.HIDDEN_CLASS);a.classList.add(n.FORM_LOADING_HIDDEN)},lo=function(){for(var n=0,u=0,f,i,r,t=0;t<li.length;t++)i=li[t].dataset.amount.replace(/,/g,""),r=li[t].dataset.value.replace(/,/g,""),u=i!=r?parseFloat(i):parseFloat(r),n+=u;f=n;n=rr(n.toFixed(2)+"");wt.dataset.amount=f;wt.innerHTML=n;ir()},ao=function(){var u=r.value,t;if(u==i.dataset.creditOption){if(query.addClass(su,n.HIDDEN_CLASS),uu.classList.remove(n.HIDDEN_CLASS),to===n.RESIDENTIAL){for(t=0;t<pt.length;t++)pt[t].classList.add(n.HIDDEN_CLASS);for(t=0;t<yt.length;t++)yt[t].classList.remove(n.HIDDEN_CLASS)}else{for(t=0;t<yt.length;t++)yt[t].classList.add(n.HIDDEN_CLASS);for(t=0;t<pt.length;t++)pt[t].classList.remove(n.HIDDEN_CLASS)}ut.classList.add(n.HIDDEN_CLASS);p.classList.add(n.HIDDEN_CLASS);au.classList.add(n.HIDDEN_CLASS);bt.classList.add(n.HIDDEN_CLASS);g.checked&&g.click();k.checked&&k.click();nu();ir()}else{for(query.removeClass(su,n.HIDDEN_CLASS),uu.classList.add(n.HIDDEN_CLASS),t=0;t<yt.length;t++)yt[t].classList.add(n.HIDDEN_CLASS);for(t=0;t<pt.length;t++)pt[t].classList.add(n.HIDDEN_CLASS);ct||ut.classList.remove(n.HIDDEN_CLASS);au.classList.remove(n.HIDDEN_CLASS);bt.classList.remove(n.HIDDEN_CLASS);er.dataset.amount=0;u==i.dataset.lastAccountOption&&bt.classList.add(n.HIDDEN_CLASS);hi();te(ir)}},ds=function(){k.checked?(bi&&bi.classList.remove(n.HIDDEN_CLASS),query.removeClass(ii,n.HIDDEN_CLASS),f.removeAttribute(n.DISABLED_ATTRIBUTE),lo(),nu(),vo(),p.classList.add(n.HIDDEN_CLASS)):(bi&&bi.classList.add(n.HIDDEN_CLASS),query.addClass(ii,n.HIDDEN_CLASS),p.classList.remove(n.HIDDEN_CLASS),ni())},hi=function(t){var o=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":checked:not(:disabled)").length,e=r.value;o===1?(query.insertChildAtIndex(r,or,5),ct||ut.classList.remove(n.HIDDEN_CLASS),wu.classList.remove(n.HIDDEN_CLASS),fu.classList.add(n.HIDDEN_CLASS),t&&as(),dt.innerHTML=tf.innerHTML,ei.innerHTML=f.dataset.oneBill,y.dataset.valid!="true"||r.contains(y)?y.dataset.valid!="true"&&r.contains(y)&&y.remove():query.insertChildAtIndex(r,y,1),ct||e===i.dataset.lastAccountOption||e===i.dataset.creditOption||e==="default"?ut.classList.add(n.HIDDEN_CLASS):ut.classList.remove(n.HIDDEN_CLASS)):(or.remove(),y.remove(),ut.classList.add(n.HIDDEN_CLASS),wu.classList.add(n.HIDDEN_CLASS),fu.classList.remove(n.HIDDEN_CLASS),ei.innerHTML=f.dataset.multipleBill,dt.innerHTML=tu.length===o?gu.innerHTML:nf.innerHTML,k.checked&&k.click(),g.checked&&g.click())},te=function(t){var f=parseFloat(wt.dataset.amount.replace(/,/g,"")),e=parseFloat(iu.value.replace(/,/g,"")),o=r.value,s=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":checked:not(:disabled)").length;f==e&&o!=i.dataset.creditOption&&s===1?p.classList.remove(n.HIDDEN_CLASS):nu();t()},nu=function(){ri.checked=!1;ri.parentElement.classList.remove(n.CHECKED_CLASS);p.classList.add(n.HIDDEN_CLASS);fr.dataset.amount=0;ai.classList.add(n.HIDDEN_CLASS)},vo=function(){ri.checked?(ai.classList.remove(n.HIDDEN_CLASS),fr.dataset.amount=1):(ai.classList.add(n.HIDDEN_CLASS),fr.dataset.amount=0);te(ir)},ir=function(){var n,t=0,u,f;for(h=0;h<ou.length;h++)n=ou[h],r.value==i.dataset.creditOption&&n.dataset.type!==undefined?(u=n.dataset.type=="commercial"?parseFloat(n.dataset.commercialValue.replace(/,/g,""))/100*parseFloat(wt.dataset.amount.replace(/,/g,"")):parseFloat(n.dataset.residentialValue.replace(/,/g,"")),n.innerHTML=rr(u.toFixed(2)+"")):u=parseFloat(n.dataset.amount.replace(/,/g,"")),t+=u;f=t;t=rr(t.toFixed(2)+"");Array.prototype.forEach.call(eu,function(n){n.innerHTML=t;n.dataset.amount=f});rt&&!coned.utils.isOru()?gr():coned.utils.isOru()&&tr()},gs=function(){var t,i;if(r.value!==""&&r.selectedIndex!==0)for(t=1;t<=r.options.length;)if(i=r.options[t],query.hasClass(i,n.HIDDEN_CLASS))t++;else{r.selectedIndex=t;ao();break}},nh=function(n){return n.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},rr=function(n){var t=n.replace(/[^\d.-]/g,""),i="";return t=t.split(".",2),typeof t[1]!="undefined"&&(i="."+t[1]),"$"+nh(t[0])+i},yo=function(n){return n=n.replace(/[^\d.-]/g,""),parseFloat(n)},ti=function(){var l=i.dataset.serviceUrl,f=query.getFormInputValue(i,n.FORM_DPP_ENROLL_NAME),o=query.getFormInputValue(i,n.FORM_ENERGY_SHARE_NAME),s=query.getFormInputValue(i,n.FORM_PAYMENT_METHOD_NAME),r=[],h=!1,t,u;if(vi.classList.add(n.HIDDEN_CLASS),s==i.dataset.lastAccountOption&&(h=!0),e.length){if(w){var a=vt.getElementsByClassName(n.ACTIVE_BATCH)[0],c=a.getElementsByClassName(n.BATCH_DESCRPTION_TEXT)[0],v=c.innerText;tt.classList.add(n.HIDDEN_CLASS);document.getElementsByClassName(n.STEP_PAYMENT)[0].classList.remove(n.HIDDEN_CLASS);u=po(!0,c,v)}else pi&&(u=po(!1));uo=e.splice(0,dr);r=th(u,uo);r.length>1&&(o=null,f=null);t={ScId:query.getFormInputValue(i,n.FORM_SCID_NAME),PaymentDate:query.getFormInputValue(i,n.FORM_PAYMENT_DATE_NAME),PaymentType:s,BankAccountNumber:query.getFormInputValue(i,n.FORM_BANK_ACCOUNT_NUMBER_NAME),BankRoutingNumber:query.getFormInputValue(i,n.FORM_ROUTING_ABA_NUMBER_NAME),IsMultipay:!0,AutopayFlag:f,EnergyShareFlag:o,UseAccountFromLastPayment:h,Accounts:r};t=JSON.stringify(t);query.postData(l,rh,bo,t,!0)}else uh()},po=function(n,t,i){var r,u;return wr?(r=oi,gi=Math.floor(e.length/dr),u=e.length%dr,u>0&&gi++,ht=Math.floor(100/gi),ht==0&&(pf=100/gi,wf=!0,ht=1),wr=!1,ht!==100&&(d+=ht,n?t.innerHTML=i.replace(/[(][0-9]*[%][)]/g,"("+ht+"%)"):pi.innerHTML="("+d+"%)")):(r=oi+1,wf?(kr+=pf,Math.floor(kr)>d&&(d+=ht,n?t.innerHTML=i.replace(/[(][0-9]*[%][)]/g,"("+d+"%)"):pi.innerHTML="("+d+"%)")):(d+=ht,n?t.innerHTML=i.replace(/[(][0-9]*[%][)]/g,"("+d+"%)"):pi.innerHTML="("+d+"%)")),r},th=function(n,t){var i=[],r;return h=n,t.length===1&&h==0&&k.checked?(r=_.filter(li,function(n){if(n.dataset.maid===t[0].maid)return n}),i.push(wo(r[0])),oi=h,h++):_.each(t,function(n){var t=u.querySelector('input[data-maid="'+n.maid+'"]');i.push(wo(t));oi=h;h++}),i},wo=function(n){var t,i;return t=n.dataset.amount!=n.dataset.value?parseFloat(n.dataset.amount.replace(/,/g,"")):parseFloat(n.dataset.value.replace(/,/g,"")),i=ri.checked?t+1:t,{Maid:n.dataset.maid,PaymentLowerLimit:yo(n.dataset.paymentMin),PaymentUpperLimit:yo(n.dataset.paymentMax),AccountNumber:n.dataset.accountNumber,Address:n.dataset.address,PaymentAmount:t,TotalAmount:i}},ih=function(){var r=i.dataset.creditPayment,e=ye.innerHTML,t=pe.innerHTML,f=u.querySelector("."+n.RECEIPT_LABEL_BOX+":checked:not(:disabled)"),o=f&&f.dataset.accountType;t=t.replace("@LINK",r);fi.classList.remove(n.HIDDEN_CLASS);ce.innerHTML=e;cr.innerHTML=t;cr.classList.add(n.STATUS_LIST_COMPLETE);fi.focus();dataLayer.push({event:n.TAG_PAY_BILL_CREDIT_CARD,creditAccountType:o});window.open(r)},rh=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.POST_PAYMENT_MULTIPLE,ko,bo,null):ko(n)},bo=function(){coned.utils.isPatternLab()?setTimeout(function(){ti()},2e3):ti()},uh=function(){w?(ns(),fh()):rf.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},fh=function(){var t=vt.getElementsByClassName(n.ACTIVE_BATCH)[0],r=cf===n.FAIL_VALUE?n.BATCH_WARNINGS_TOKEN:n.BATCH_SUCCESS_TOKEN,i;ur(t,{index:t.dataset.index,amount1:t.dataset.amount},r);t.classList.remove(n.ACTIVE_BATCH);si.length===0&&(i=sf.getElementsByClassName(n.BATCH_DESCRIPTION)[0],lf===0?(yr.innerHTML=s.dataset.successTitle,i.innerHTML=s.dataset.successDescription):(yr.innerHTML=s.dataset.partiallyTitle,i.innerHTML=s.dataset.partiallyDescription),hf.classList.remove(n.HIDDEN_CLASS));dh()},ko=function(n){coned.utils.isPatternLab()?setTimeout(function(){go(n);ti()},2e3):(go(n),ti())},go=function(n){if(fe.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS),l){var t=l.RefNumbers.concat(n.RefNumbers),i=l.eCommerceJson.transactionProducts.concat(n.eCommerceJson.transactionProducts),r=l.eCommerceJson.transactionTotal+parseFloat(n.eCommerceJson.transactionTotal);l.RefNumbers=t;l.eCommerceJson.transactionProducts=i;l.eCommerceJson.transactionTotal=Math.round(r*100)/100}else l=n,l.eCommerceJson.transactionTotal=Math.round(parseFloat(l.eCommerceJson.transactionTotal)*100)/100},ns=function(){var t=[],f;if(r.value==i.dataset.creditOption){hr.classList.remove(n.HIDDEN_CLASS);tt.classList.add(n.HIDDEN_CLASS);window.scrollTo(0,0);return}coned.utils.isPatternLab()&&(f=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":checked:not(:disabled)"),coned.utils.processLargeData(f,function(n){var i=l.RefNumbers.find(function(t){return n.dataset.maid===t.Maid});t.push(i)},function(){l.RefNumbers=t}));dataLayer.push(l.eCommerceJson);hh(l);w?et.classList.remove(n.HIDDEN_CLASS):(at.classList.add(n.HIDDEN_CLASS),hr.classList.remove(n.HIDDEN_CLASS),tt.classList.add(n.HIDDEN_CLASS));window.scrollTo(0,0);coned.utils.qualtricsTriggering(i)},ts=function(t,i,r,u){var e,l,s,a,f,h,o,c;t.length&&(e=w?et.getElementsByClassName(r)[0]:fi.getElementsByClassName(r)[0],a=e.getElementsByClassName(u)[0],e.classList.remove(n.HIDDEN_CLASS),s=a.getElementsByTagName("table")[0],Array.prototype.forEach.call(t,function(t){var u=document.createElement("tbody"),r=document.createElement("tbody"),w=document.createElement(n.TD_ELEMENT),v=document.createElement(n.TR_ELEMENT),y=document.createElement(n.TR_ELEMENT),b=document.createElement(n.TH_ELEMENT),a=document.createElement(n.TD_ELEMENT),p=document.createElement(n.TD_ELEMENT);p.classList.add(n.TEXT_RIGHT);f=document.createElement(n.TR_ELEMENT);f.classList.add(n.POST_PAYMENT);f.classList.add(n.PAYMENT_TABLE);u.classList.add(n.SHOW_DESKTOP);r.classList.add(n.SHOW_MOBILE);c=e.getElementsByClassName(n.LIST_ELEMENT_CLASS_SELECTOR).length/2;c>9?(u.className+=n.LIST_ELEMENT_CLASSESS_HIDDEN,r.className+=n.LIST_ELEMENT_CLASSESS_HIDDEN):(u.classList.add(n.LIST_ELEMENT_CLASS_SELECTOR),r.classList.add(n.LIST_ELEMENT_CLASS_SELECTOR));w.innerHTML=t.ServiceAddress;h=document.createElement(n.TD_ELEMENT);o=i==n.SUCCESS_VALUE?t.RefNumber:t.AccountNumber;h.innerHTML=o;a.setAttribute("colspan","2");a.innerHTML=t.ServiceAddress;v.appendChild(a);b.innerHTML=n.CONFIRMATION_VALUE;p.innerHTML=o;v.appendChild(a);y.appendChild(b);y.appendChild(p);f.appendChild(w);f.appendChild(h);u.appendChild(f);r.appendChild(v);r.appendChild(y);s.appendChild(u);s.appendChild(r);c>9&&(l=e.getElementsByClassName(n.SHOW_MORE_CLASS)[0],l.classList.remove(n.HIDDEN_CLASS))}))},eh=function(t){t.preventDefault();var i=t.srcElement.tagName.toLowerCase()==="span"?t.srcElement.parentElement:t.srcElement;i.classList.contains(n.BUTTON_BILLS_PROCESSED)?ie(n.TAB_BILLS_PROCESSED,n.BUTTON_BILLS_PROCESSED):i.classList.contains(n.BUTTON_BILLS_NOT_PROCESSED)?ie(n.TAB_BILLS_NOT_PROCESSED,n.BUTTON_BILLS_NOT_PROCESSED):ie(n.TAB_NOT_PAYABLE_CHECK,n.BUTTON_NOT_PAYABLE)},ie=function(t,i){var u=w?et:fi,f=u.getElementsByClassName(t)[0],r=f.getElementsByClassName(n.LIST_ELEMENT_CLASS_SELECTOR),e=[],s=n.LIST_ELEMENT_CLASS_SELECTOR+" "+n.HIDDEN_CLASS,o;Array.prototype.forEach.call(r,function(t){query.hasClass(t,n.HIDDEN_CLASS)&&e.push(t)});_.each(e,function(t,i){i<10&&t.classList.remove(n.HIDDEN_CLASS)});r=f.getElementsByClassName(s);r.length==0&&(o=u.getElementsByClassName(i)[0],o.classList.add(n.HIDDEN_CLASS))},oh=function(t,r,u){var e,o,f,s,h;o=i.getElementsByClassName(r)[0];f=o.getElementsByClassName(n.LIST_ELEMENT_CLASS_SELECTOR);e=i.getElementsByClassName(t)[0];e.classList.remove(n.HIDDEN_CLASS);_.each(f,function(t,i){i>9&&t.classList.add(n.HIDDEN_CLASS)});f.length>10&&(h=e.getElementsByClassName(n.SHOW_MORE_CLASS)[0],h.classList.remove(n.HIDDEN_CLASS));s=i.getElementsByClassName(u)[0];s.innerHTML=f.length},sh=function(t){var r=i.getElementsByClassName(t)[0],u=r.getElementsByClassName(n.LIST_ELEMENT_CLASS_SELECTOR);return u.length?!0:!1},hh=function(t){var i=[],r=[],h,e,u,o,f,s;if(t&&t.RefNumbers&&t.RefNumbers.length&&(i=t.RefNumbers.filter(function(n){return n.Success}),r=t.RefNumbers.filter(function(n){return!n.Success})),bf&&(of.href=of.href.replace("{{MAID}}",t.RefNumbers[0].Maid),t.RefNumbers[0].SuccessCode))for(h=t.RefNumbers[0].SuccessCode.split("_")[1],e=0;e<ki.length;e++)ki[e].dataset.paymentStatus===h&&(ki[e].classList.remove(n.HIDDEN_CLASS),ki[e].focus());w||(i.length?de.classList.remove(n.HIDDEN_CLASS):ge.classList.remove(n.HIDDEN_CLASS),fi.classList.remove(n.HIDDEN_CLASS));i.length&&(cf=n.SUCCESS_VALUE,pr=i.length,ts(i,n.SUCCESS_VALUE,n.TAB_BILLS_PROCESSED_CONTAINER,n.TAB_BILLS_PROCESSED));r.length&&(cf=n.FAIL_VALUE,di=r.length,lf+=di,lh(r),ts(r,n.FAIL_VALUE,n.TAB_BILLS_NOT_PROCESSED_CONTAINER,n.TAB_BILLS_NOT_PROCESSED));vr&&sh(n.TAB_NOT_PAYABLE_CHECK)&&(oh(n.TAB_NOT_PAYABLE_CHECK_CONTAINER,n.TAB_NOT_PAYABLE_CHECK,n.MULTIPLE_PAYMENT_STATUS_NOT_PAYABLE_CHECK_NUMBER),c.checked?vr.classList.remove(n.HIDDEN_CLASS):vr.classList.add(n.HIDDEN_CLASS));i.length&&(u=w?le:be,w?(o=ar.innerText,ar.innerText=o===""?i.length:parseInt(o)+i.length,u.innerHTML=ar.innerText==="1"?u.dataset.oneBill:u.dataset.multipleBill):(oe.innerHTML=i.length,u.innerHTML=i.length===1?u.dataset.oneBill:u.dataset.multipleBill));r.length&&(f=w?ae:ke,w?(s=lr.innerText,lr.innerText=s===""?r.length:parseInt(s)+r.length,f.innerHTML=lr.innerText==="1"?f.dataset.oneBill:f.dataset.multipleBill):(se.innerHTML=r.length,f.innerHTML=r.length===1?f.dataset.oneBill:f.dataset.multipleBill))},ch=function(){var u=vi.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0],t,i,r;for(u.innerHTML=l.errorMsg?l.errorMsg:coned.constants.ERROR_MESSAGE,vi.classList.remove(n.HIDDEN_CLASS),vi.focus(),at.classList.add(n.HIDDEN_CLASS),t=0;t<ci.length;t++)i=ci[t],r=i.classList.contains(n.MULTIPLE_PAYMENT_BILLS_STEP),r||i.classList.remove(n.HIDDEN_CLASS);dataLayer.push({event:"pay.bill.error"})},lh=function(t){_.each(t,function(t){var i={event:"pay.bill.error"},r;t.PaymentErrors&&t.PaymentErrors.errorDetails?(r=[],_.each(t.PaymentErrors.errorDetails,function(n){r.push(n.errorCode)}),i.payBillErrors=r.join("|")):i.payBillErrors=n.NO_ERROR_CODES_PROVIDED_MESSAGE;t.Maid!==null&&(i.maid=t.Maid);dataLayer.push(i)})},ah=function(t,r){var f,e,u;t?i.dataset.creditPayment=r.dataset.creditPaymentUrl:(u=document.getElementsByClassName(n.CHECKED_CLASS)[0],u&&(f=u.getElementsByClassName(n.RECEIPT_CHECKBOX)[0],e=f.dataset.creditPaymentUrl,i.dataset.creditPayment=e))},vh=function(t,i){i.preventDefault();var r=t,f=query.selectParentElement(r,n.FINISH_HIDDEN_ELEMENT),e=query.selectParentElement(r,n.RECEIPT_LABEL),o=e.parentElement,s=f.dataset.linkServiceUrl,u;if(yi=r,sr=o.getElementsByClassName(n.SERVICE_ERROR)[0],sr.classList.add(n.HIDDEN_CLASS),yi.dataset.billLink){window.open(yi.href,"_blank");return}u={ScId:r.dataset.scid,Maid:r.dataset.maid,BillDate:r.dataset.billDate,Type:r.dataset.type};uf=window.open();query.getData(s,yh,re,u,a)},yh=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_BILL_LINK,is,re):n.Link&&n.Link!=""?is(n):re(n)},is=function(n){yi.dataset.billLink="true";yi.href=n.Link;uf.location.href=n.Link},re=function(t){var i=sr.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];uf.close();sr.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE},ph=function(t){var i=$("."+n.FORM_SELECTOR).validate();i.element(t.target)},wh=function(){var t,i;for(br=e.length,br&&(we.innerHTML=br),t=0;t<ci.length;t++)i=ci[t],i.classList.add(n.HIDDEN_CLASS);at.classList.remove(n.HIDDEN_CLASS);window.scrollTo(0,0)},bh=function(){var t=query.getFormInputValue(i,n.FORM_PAYMENT_METHOD_NAME);bf=e.length===1?!0:!1;t==i.dataset.creditOption?(ih(),tt.classList.add(n.HIDDEN_CLASS),hr.classList.remove(n.HIDDEN_CLASS),window.scrollTo(0,0),dataLayer.push({event:"pay.bill.submit",paymentMethod:t})):st&&e.length>st?(eo(e.length),dataLayer.push({event:"pay.multiple.submit",paymentMethod:t}),kh()):(wh(),e.length===1?(wi.innerHTML=wi.dataset.oneBill,dataLayer.push({event:"pay.bill.submit",paymentMethod:t})):(wi.innerHTML=wi.dataset.multipleBill,eo(e.length),dataLayer.push({event:"pay.multiple.submit",paymentMethod:t})),new coned.components.SubmitAnimation(rf,ti,ns,ch))},kh=function(){w=!0;for(var t=0;t<Math.ceil(e.length/st);t++)st*(t+1)<=e.length?rs(t+1,st):rs(t+1,e.length-st*t);af=1;ot=vt.getElementsByClassName(n.BATCH_ITEM)[0];ur(ot,{index:ot.dataset.index,amount1:ot.dataset.amount,percentage:0},n.BATCH_LOADING_TOKEN);e=si.splice(0,st);ti();s.classList.remove(n.HIDDEN_CLASS);window.scrollTo(0,0)},dh=function(){if(ot=vt.querySelector("."+n.BATCH_ITEM+'[data-index="'+ ++af+'"]'),ot){var t=ot.getElementsByClassName(n.BATCH_BUTTON_CONTAINER)[0];ot.classList.add(n.ACTIVE_BATCH);t.classList.remove(n.HIDDEN_CLASS);d=0;kr=0}},rs=function(t,i){var r=(new DOMParser).parseFromString(n.BATCH_ITEM_STRUCTURE,"text/html").getElementsByClassName(n.BATCH_ITEM)[0],u=r.getElementsByClassName(n.BATCH_PAY)[0],f=r.getElementsByClassName(n.BATCH_CANCEL)[0],o=ef.getElementsByClassName(n.CLOSE_POPUP_BUTTON);r.dataset.index=t;r.dataset.amount=i;ur(r,{index:t,amount1:i});u.getElementsByTagName("span")[0].innerHTML=s.dataset.payButtonText;f.innerHTML=s.dataset.cancelButtonText;coned.utils.addGeneralListeners(f,function(){ef.classList.remove(n.HIDDEN_CLASS);o[0].focus()});coned.utils.addGeneralListeners(u,function(u){u.preventDefault();e=si.splice(0,st);wr=!0;oi=0;l=undefined;ur(r,{index:t,amount1:i,percentage:0},n.BATCH_LOADING_TOKEN);ti()});_.each(o,function(t){coned.utils.addGeneralListeners(t,function(){var t=vt.getElementsByClassName(n.ACTIVE_BATCH)[0],i=t.getElementsByClassName(n.BATCH_CANCEL)[0];i.focus()})});vt.appendChild(r)},gh=function(){var u=sf.getElementsByClassName(n.BATCH_DESCRIPTION)[0],t=ot.dataset.index,r=vt.getElementsByClassName(n.BATCH_ITEM),i;for(t;t<=r.length;t++)i=r[t-1],ur(i,{index:t,amount1:i.dataset.amount},n.BATCH_CANCELLED_TOKEN);hf.classList.remove(n.HIDDEN_CLASS);yr.innerHTML=s.dataset.partiallyTitle;u.innerHTML=s.dataset.cancelDescription},ur=function(t,i,r){var w=t.getElementsByClassName(n.BATCH_DESCRPTION_TEXT)[0],f=t.getElementsByClassName(n.BATCH_ICON)[0],e=t.getElementsByClassName(n.BATCH_LOADING)[0],o=t.getElementsByClassName(n.BATCH_BUTTON_CONTAINER)[0],u,l=!0,h=s.dataset.bills,c=s.dataset.bill,a,v,y,p;nc(t);switch(r){case n.BATCH_SUCCESS_TOKEN:f.classList.add(n.BATCH_CHECK_CLASS);f.classList.remove(n.HIDDEN_CLASS);o.classList.add(n.HIDDEN_CLASS);u=s.dataset.successAllText;u=u.replace(n.BATCH_TOKEN,i.index).replace(n.AMOUNT1_TOKEN,i.amount1);break;case n.BATCH_WARNINGS_TOKEN:f.classList.add(n.BATCH_WARNING_CLASS);f.classList.remove(n.HIDDEN_CLASS);o.classList.add(n.HIDDEN_CLASS);u=s.dataset.successPartialText;u=u.replace(n.BATCH_TOKEN,i.index).replace(n.AMOUNT1_TOKEN,pr).replace(n.AMOUNT2_TOKEN,di);String(pr)==="1"&&(a=u.match(/:\s[0-9\sA-Za-z]*-/g),v=a[0].replace(h,c),u=u.replace(/:\s[0-9\sA-Za-z]*-/g,v));String(di)==="1"&&(y=u.match(/-\s[0-9\sA-Za-z]*/g),p=y[0].replace(h,c),u=u.replace(/-\s[0-9\sA-Za-z]*/g,p));l=!1;break;case n.BATCH_LOADING_TOKEN:query.hasClass(e,n.LOADING_ANIMATION_PLAY)||(new coned.components.LoadingAnimation(e),query.fireEvent(e,"start-animation"));t.classList.add(n.ACTIVE_BATCH);f.classList.add(n.HIDDEN_CLASS);e.classList.remove(n.HIDDEN_CLASS);o.classList.add(n.HIDDEN_CLASS);u=s.dataset.loadingText;u=u.replace(n.BATCH_TOKEN,i.index).replace(n.AMOUNT1_TOKEN,i.amount1).replace(n.PERCENTAGE_TOKEN,i.percentage);break;case n.BATCH_CANCELLED_TOKEN:f.classList.add(n.BATCH_ERROR_CLASS);f.classList.remove(n.HIDDEN_CLASS);o.classList.add(n.HIDDEN_CLASS);u=s.dataset.cancelledText;u=u.replace(n.BATCH_TOKEN,i.index).replace(n.AMOUNT1_TOKEN,i.amount1);break;default:f.classList.remove(n.HIDDEN_CLASS);u=s.dataset.pendingText;u=u.replace(n.BATCH_TOKEN,i.index).replace(n.AMOUNT1_TOKEN,i.amount1)}l&&String(i.amount1)==="1"&&(u=u.replace(h,c),u=u.replace(h.toLowerCase(),c.toLowerCase()));w.innerHTML=u},nc=function(t){var i=t.getElementsByClassName(n.BATCH_ICON)[0],r=t.getElementsByClassName(n.BATCH_LOADING)[0];i.classList.remove(n.BATCH_WARNING_CLASS);i.classList.remove(n.BATCH_ERROR_CLASS);i.classList.remove(n.BATCH_CHECK_CLASS);i.classList.remove(n.HIDDEN_CLASS);r.classList.add(n.HIDDEN_CLASS)},us=function(){ft.style.fontSize="";kf=parseInt(window.getComputedStyle(ft,n.NULL_VALUE).getPropertyValue(n.FONT_SIZE))},tc=function(){var i={childList:n.TRUE_VALUE},t,r=function(t){t[0].type!==n.CHILD_LIST_TYPE||query.hasClass(tt,n.HIDDEN_CLASS)||(us(),coned.utils.updateFontToFitAncestor(ft,kt,kf))};t=new MutationObserver(r);t.observe(ft,i)},ic=function(){var i={attributes:n.TRUE_VALUE},t,r=function(t){t[0].attributeName!==n.CLASS_ATTRIBUTE||query.hasClass(tt,n.HIDDEN_CLASS)||(us(),coned.utils.updateFontToFitAncestor(ft,kt,kf))};t=new MutationObserver(r);t.observe(tt,i)},rc=function(){var t=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":not(:disabled)");v.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE);o.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE);f.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE);nr();b=!0;coned.utils.processLargeData(t,function(n){n.checked?(it+=parseFloat(n.dataset.amount.replace(/,/g,"")),lt++):n.click()},function(){var t,i;it&&(v.removeAttribute(n.DISABLED_ATTRIBUTE),o.removeAttribute(n.DISABLED_ATTRIBUTE),f.removeAttribute(n.DISABLED_ATTRIBUTE),df());ni();oo();b=!1;t=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":checked:not(:disabled)");t.length>1||t.length===0?(or.remove(),y.remove()):t.length===1&&(i={Maid:t[0].dataset.maid,ScId:gt.dataset.scid},query.getData(yf,so,ne,i,a));a.classList.add(n.FORM_LOADING_HIDDEN)})},uc=function(){ue=document.getElementsByClassName(n.VALIDATION_SELECTOR)[0];c=document.getElementsByClassName(n.CHECKALL_CHECKBOX)[0];tu=document.getElementsByClassName(n.RECEIPT_LABEL);ci=document.getElementsByClassName(n.FINISH_HIDDEN_ELEMENT);su=i.getElementsByClassName(n.CREDIT_CARD_PAYMENT_SELECTOR);iu=i.getElementsByClassName(n.TOTAL_AMOUNT_INPUT)[0];ii=i.getElementsByClassName(n.OTHER_AMOUNT_CONTAINER)[0];k=i.getElementsByClassName(n.OTHER_AMOUNT_CHECKBOX)[0];fe=i.getElementsByClassName(n.SUBMIT_ANIMATION_CONTAINER)[0];li=i.getElementsByClassName(n.INPUT_DYNAMIC_INPUT);ri=i.getElementsByClassName(n.ENERGY_SHARE_SELECTOR)[0];ai=i.getElementsByClassName(n.ROW_ENERGY_SHARE)[0];ru=ai.getElementsByClassName(n.ROW_TEXT_CLASS)[0];uu=i.getElementsByClassName(n.ROW_SERVICE_FEE)[0];fr=i.getElementsByClassName(n.ENERGY_AMOUNT_SELECTOR)[0];r=i.getElementsByClassName(n.PAYMENT_METHOD_DROPDOWN)[0];fu=i.getElementsByClassName(n.PAYMENT_METHOD_TOOLTIP)[0];eu=i.getElementsByClassName(n.TOTAL_AMOUNT_SELECTOR);ou=i.getElementsByClassName(n.AMOUNT_SELECTOR);yt=i.getElementsByClassName(n.CREDIT_CARD_MESSAGE_RESIDENTIAL);pt=i.getElementsByClassName(n.CREDIT_CARD_MESSAGE_COMMERCIAL);er=i.getElementsByClassName(n.SERVICE_FEE_SELECTOR)[0];rt=i.getElementsByClassName(n.MINIMUM_PAYMENT_ALERT)[0];wt=i.getElementsByClassName(n.PAYMENT_AMOUNT_SELECTOR)[0];p=i.getElementsByClassName(n.ENERGY_SHARE_MODULE)[0];hu=i.getElementsByClassName(n.ENERGY_SHARE_OTHER_STATE_TEXT)[0];cu=i.getElementsByClassName(n.ENERGY_SHARE_NEW_JERSEY_TEXT)[0];lu=p.getElementsByClassName(n.ENERGY_SHARE_CHECKBOX_TEXT)[0];ut=i.getElementsByClassName(n.DPP_ENROLL_CONTAINER_SELECTOR)[0];g=i.getElementsByClassName(n.DPP_ENROLL_SELECTOR)[0];or=i.getElementsByClassName(n.CREDIT_CARD_OPTION_SELECTOR)[0];y=i.getElementsByClassName(n.LAST_ACCOUNT_OPTION_SELECTOR)[0];au=i.getElementsByClassName(n.DATE_PICKER_SELECTOR)[0];bt=i.getElementsByClassName(n.CREDIT_CARD_SELECTOR)[0];vi=i.getElementsByClassName(n.BILL_PAYMENT_ERROR)[0];nt=i.getElementsByClassName(n.INPUT_DATE_SELECTOR)[0];a=document.getElementsByClassName(n.FORM_LOADING)[0];vu=i.getElementsByClassName(n.PROCEED_PAYMENT_BUTTON_CLASS);ee=i.getElementsByClassName(n.CLEAR_ALL_CTA_CLASS)[0];yu=i.getElementsByClassName(n.BILLS_CONTAINER_CLASS)[0];v=i.getElementsByClassName(n.SELECT_BILLS_BUTTON_CLASS)[0];o=i.getElementsByClassName(n.DOWNLOAD_BILLS_BUTTON_CLASS)[0];tt=i.getElementsByClassName(n.MULTIPLE_PAYMENT_FORM_STEP)[0];u=i.getElementsByClassName(n.MULTIPLE_PAYMENT_BILLS_STEP)[0];hr=i.getElementsByClassName(n.STEP_PAYMENT)[0];pu=i.getElementsByClassName(n.BILLS_NUMBER_CLASS);ft=i.getElementsByClassName(n.HEADER_TOTAL_AMOUNT_CLASS)[0];wu=i.getElementsByClassName(n.OHTER_AMOUNT_CLASS)[0];ui=i.getElementsByClassName(n.MAIN_TOTAL_AMOUNT)[0];oe=i.getElementsByClassName(n.MULTIPLE_PAYMENT_STATUS_SUCCESS_NUMBER)[0];cr=i.getElementsByClassName(n.MULTIPLE_PAYMENT_STATUS_SUCCESS_LIST)[0];bu=i.getElementsByClassName(n.MULTIPLE_PAYMENT_STATUS_SUCCESS_MORE)[0];se=i.getElementsByClassName(n.MULTIPLE_PAYMENT_STATUS_FAILED_NUMBER)[0];he=i.getElementsByClassName(n.MULTIPLE_PAYMENT_STATUS_FAILED_LIST)[0];ku=i.getElementsByClassName(n.MULTIPLE_PAYMENT_STATUS_FAILED_MORE)[0];fi=i.getElementsByClassName(n.MULTIPLE_PAYMENT_STATUS_SUCCESS_BANNER)[0];ce=i.getElementsByClassName(n.MULTIPLE_PAYMENT_STATUS_SUCCESS_TITLE)[0];kt=i.getElementsByClassName(n.BILL_HEADER_CLASS)[0];ve=kt.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];du=kt.getElementsByClassName(n.SERVICE_ERROR)[0];ye=i.getElementsByClassName(n.CREADIT_CARD_MESSAGE_TITLE_CLASS)[0];pe=i.getElementsByClassName(n.CREADIT_CARD_MESSAGE_DESCRIPTION_CLASS)[0];dt=i.getElementsByClassName(n.HEADER_MESSAGE_BILL)[0];gu=i.getElementsByClassName(n.HEADER_MESSAGE_BILL_ALL)[0];nf=i.getElementsByClassName(n.HEADER_MESSAGE_BILL_SOME)[0];tf=i.getElementsByClassName(n.HEADER_MESSAGE_BILL_ONE)[0];at=i.getElementsByClassName(n.ANIMATION_STEP_CLASS)[0];io=i.getElementsByClassName(n.CONFIRM_CANCEL_BUTTON)[0];bi=i.querySelector(n.PARTIAL_PAYMENT_WARNING_MSG);s=i.getElementsByClassName(n.BATCH_BANNER_CONTAINER)[0];vt=i.getElementsByClassName(n.BATCH_PROCESS_CONTAINER)[0];et=i.getElementsByClassName(n.BATCH_RESULTS_CONTAINER)[0];yr=i.getElementsByClassName(n.BATCH_BANNER_TITLE)[0];sf=i.getElementsByClassName(n.BATCH_BANNER_DESCRIPTION)[0];hf=et.getElementsByClassName(n.MY_ACCOUNT_BTN)[0];rf=at.getElementsByClassName(n.SUBMIT_ANIMATION_CONTAINER)[0];we=at.getElementsByClassName(n.ANIMATION_TOTAL_CLASS)[0];pi=at.getElementsByClassName(n.ANIMATION_CURRENT_CLASS)[0];wi=at.getElementsByClassName(n.ANIMATION_BILL_CLASS)[0];be=i.getElementsByClassName(n.MULTIPLE_PAYMENT_STATUS_SUCCESS_BILL)[0];ke=i.getElementsByClassName(n.MULTIPLE_PAYMENT_STATUS_FAILED_BILL)[0];le=et.getElementsByClassName(n.MULTIPLE_PAYMENT_STATUS_SUCCESS_BILL)[0];ae=et.getElementsByClassName(n.MULTIPLE_PAYMENT_STATUS_FAILED_BILL)[0];ar=et.getElementsByClassName(n.MULTIPLE_PAYMENT_STATUS_SUCCESS_NUMBER)[0];lr=et.getElementsByClassName(n.MULTIPLE_PAYMENT_STATUS_FAILED_NUMBER)[0];f=i.getElementsByClassName(n.SUBMIT_BUTTON)[0];ei=i.getElementsByClassName(n.SUBMIT_BUTTON_TEXT)[0];gt=i.getElementsByClassName(n.FORM_SELECTOR)[0];ef=i.getElementsByClassName(n.CANCEL_POPUP)[0];de=i.getElementsByClassName(n.SUCCESS_PICTURE_SELECTOR)[0];ge=i.getElementsByClassName(n.FAIL_PICTURE_SELECTOR)[0];no=i.getElementsByClassName(n.SHOW_MORE_CLASS);vr=i.getElementsByClassName(n.TAB_NOT_PAYABLE_CHECK_CONTAINER)[0];ff=bt.getElementsByClassName(n.NUMBER_INPUT_SELECTOR);ki=i.getElementsByClassName(n.PAYMENT_STATUS_MESSAGE);of=i.getElementsByClassName(n.PAYMENT_ERROR)[0];ro=ii.innerHTML;st=i.dataset.batchSize?parseInt(i.dataset.batchSize):null;w=!1;e=[];wr=!0;gi=0;ht=0;d=0;br=0;oi=0;af=0;yf=u.dataset.lastUsedBankAccountService;lt=0;it=0;b=!1;pf=0;kr=0;si=[];wf=!1;di=0;pr=0;lf=0;dr=s.dataset.unitsToSend;ct=!1},fc=function(){setTimeout(function(){$(nt).datepicker("option","minDate","0");$(nt).datepicker("option","maxDate","5d")},1);nt.addEventListener("change",ph);new coned.components.ValidateForm("."+n.FORM_SELECTOR,bh,n.DEFAULT_VALIDATOR_HIDDEN_SELECTOR,!0);coned.utils.addMultipleListeners(gt,["change","keyup"],function(){coned.components.ValidateForm.isFormValid(gt,"",n.FORM_IGNORE_VALIDATION);rt&&!coned.utils.isOru()?gr():coned.utils.isOru()&&tr()});coned.utils.addGeneralListeners(v,ps);coned.utils.addGeneralListeners(o,ws);coned.utils.addGeneralListeners(ee,hs);c.addEventListener(n.CHANGE_EVENT,ls);coned.utils.addParentListener(yu,[n.CHANGE_EVENT],n.RECEIPT_LABEL_BOX,cs);r.addEventListener(n.CHANGE_EVENT,ao);k.addEventListener(n.CHANGE_EVENT,ds);ri.addEventListener(n.CHANGE_EVENT,vo);coned.utils.addParentListener(u,coned.utils.generalEvents(),n.PROCEED_PAYMENT_BUTTON_CLASS,os);coned.utils.addParentListener(yu,coned.utils.generalEvents(),n.BILL_LINK_CLASS,vh);$(nt).on("change",function(){coned.components.ValidateForm.isFormValid(gt,"",n.FORM_IGNORE_VALIDATION);rt&&!coned.utils.isOru()?gr():coned.utils.isOru()&&tr()});fs();Array.prototype.forEach.call(no,function(n){coned.utils.addGeneralListeners(n,eh)});var t=u.querySelectorAll("."+n.RECEIPT_LABEL_BOX+":not(:disabled)");t.length===0&&(f.disabled=!0,v.disabled=!0);coned.utils.addGeneralListeners(io,gh);kt&&ft&&(ic(),tc(),coned.utils.updateFontResizeThrottler(coned.utils.updateFontToFitAncestor,ft,kt))},ec=function(){uc();fc();rc();t=!0};ec()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.PayBillNotification=function(){var n={SCID:"ScId",NOTIFICATION:"js-notification",CHECKBOX_CLASS:"js-checkbox-selector",NOT_NOW_BUTTON:"js-notification-notNow",CONFIRM_BUTTON:"js-notification-confirm",BANNER:"js-notification-banner",BANNER_TITLE:"js-notification-banner-title",BANNER_DESCRIPTION:"js-notification-banner-description",BANNER_BUTTON:"js-notification-banner-button",BANNER_BUTTON_SPAN:"js-notification-banner-button-text",EMAIL_TEXT:"js-notification-email-text",HIDDEN:"hidden",EMAIL:"email",DISABLED:"disabled",PAY_MY_BILL:"Pay My Bill",CANCEL_BUTTON_ACTION:"Notification Solicitation Cancel",CANCEL_BUTTON_LABEL:"Step 1 Cancel",CONFIRM_BUTTON_ACTION:"Notification Solicitation Enroll"},t=!1,i=function(i){var o,u,a,e,r,s,h,c,l,f,v=function(t){var r=!1,i;for(t.currentTarget.checked===!0&&e.hasAttribute(n.DISABLED)&&e.removeAttribute(n.DISABLED),i=0;i<u.length;i++)if(u[i].checked===!1)r=!0;else{r=!1;break}r&&e.setAttribute(n.DISABLED,!0)},y=function(){for(var c=r.dataset.sendNotificationServiceUrl,e,o={},h=i.getElementsByClassName(n.EMAIL_TEXT)[0],s,t=0;t<u.length;t++)s=u[t].name,o[s]=u[t].checked,u[t].checked===!0&&(f!==""&&(f+="/"),f+=s);h&&h.getAttribute(n.HIDDEN)===null&&(o[n.EMAIL]=!0,f=n.EMAIL);e={ScId:query.getFormInputValue(document,n.SCID),PreferenceId:r.dataset.preference,Channels:o};e=JSON.stringify(e);query.postData(c,w,b,e,!0)},p=function(){dataLayer.push({event:n.PAY_MY_BILL,action:n.CANCEL_BUTTON_ACTION,label:n.CANCEL_BUTTON_LABEL});s.innerHTML=r.dataset.notNowTitle;h.innerHTML=r.dataset.notNowDescription;l.innerHTML=r.dataset.notNowButton;c.href=r.dataset.notNowUrl;r.removeAttribute(n.HIDDEN);o.setAttribute(n.HIDDEN,!0)},w=function(){dataLayer.push({event:n.PAY_MY_BILL,action:n.CONFIRM_BUTTON_ACTION,label:f});s.innerHTML=r.dataset.confirmTitle;h.innerHTML=r.dataset.confirmDescription;l.innerHTML=r.dataset.confirmButton;c.href=r.dataset.successUrl;r.removeAttribute(n.HIDDEN);o.setAttribute(n.HIDDEN,!0)},b=function(){s.innerHTML=r.dataset.errorTitle;h.innerHTML=r.dataset.errorDescription;l.innerHTML=r.dataset.errorButton;c.href=r.dataset.errorUrl;r.removeAttribute(n.HIDDEN);o.setAttribute(n.HIDDEN,!0)},k=function(){o=i.getElementsByClassName(n.NOTIFICATION)[0];u=i.getElementsByClassName(n.CHECKBOX_CLASS);a=i.getElementsByClassName(n.NOT_NOW_BUTTON)[0];e=i.getElementsByClassName(n.CONFIRM_BUTTON)[0];r=i.getElementsByClassName(n.BANNER)[0];s=i.getElementsByClassName(n.BANNER_TITLE)[0];h=i.getElementsByClassName(n.BANNER_DESCRIPTION)[0];c=i.getElementsByClassName(n.BANNER_BUTTON)[0];l=i.getElementsByClassName(n.BANNER_BUTTON_SPAN)[0];f=""},d=function(){for(var n=0;n<u.length;n++)coned.utils.addGeneralListeners(u[n],function(){v(event)});a.addEventListener("click",p);e.addEventListener("click",y)},g=function(){k();d();t=!0};g()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.singlePayMyBill=function(){var n={PAGE_HEADER:"js-page-header",FORM_SELECTOR:"js-single-pmb-form",PAYMENT_METHOD_SELECTOR:"js-payment-method",AMOUNT_INPUT_SELECTOR:"js-currency-input",FINISH_STEP_SELECTOR:"js-step-finish",FINISH_STEP_FOCUS_SELECTOR:"js-final-step-focus",PMB_ELEMENTS_SELECTOR:"js-single-pmb",PAYMENT_REFERENCE_SELECTOR:"js-payment-reference",ACCOUNT_EMAIL_CONTAINER_SELECTOR:"js-account-email-container",OWE_SELECTOR:"js-owe-selector",AMOUNT_TITLE_SELECTOR:"js-amount-title",CREDIT_CARD_SELECTOR:"js-credit-card-selector",CREDIT_CARD_PAYMENT_SELECTOR:"js-credit-card-payment",ENERGY_SHARE_SELECTOR:"js-energy-share-selector",THANKS_MESSAGE_SELECTOR:"js-pay-my-bill-thanks",CREDIT_CARD_MESSAGE_SELECTOR:"js-credit-card-thanks",PAYMENT_ERROR_MESSAGE_SELECTOR:"js-pay-my-bill-error",PARAGRAPHS_ERROR_SELECTOR:"js-error-paragraph",INPUT_DATE_SELECTOR:"js-current-datepicker-input",MINUMUM_PAYMENT_ALERT:"js-minimum-payment-alert",AMOUNT_SELECTOR:"js-amount-selector",TOTAL_AMOUNT_SELECTOR:"js-total-selector",ENERGY_AMOUNT_SELECTOR:"js-energy-share",PAYMENT_AMOUNT_SELECTOR:"js-payment-amount",SERVICE_FEE_SELECTOR:"js-service-fee",SUBMIT_ANIMATION:"js-submit-progress-animation",SELECT_DROPDOWN_LABEL:"js-coned-select-label",ROW_ENERGY_SHARE:"js-row-energy-share",ROW_SERVICE_FEE:"js-row-service-fee",CREDIT_CARD_MESSAGE:"js-credit-card-message",CREDIT_CARD_MESSAGE_CONTAINER:"js-credit-card-message-container",ENERGY_SHARE_MODULE:"js-energy-share-module",BILL_PAYMENT_ERROR:"js-bill-payment-error",ERROR_TEXT_SELECTOR:"js-error-message",FORM_SCID_NAME:"ScId",FORM_PAYMENT_METHOD_NAME:"paymentMethod",FORM_ROUTING_ABA_NUMBER_NAME:"routingAbaNumber",FORM_BANK_ACCOUNT_NUMBER_NAME:"bankAccountNumber",FORM_DPP_ENROLL_NAME:"dppEnroll",FORM_PAYMENT_DATE_NAME:"paymentDate",FORM_PAYMENT_TYPE_NAME:"paymentType",FORM_PAYMENT_AMOUNT_NAME:"paymentAmount",FORM_ENERGY_SHARE_NAME:"energyShare",DROPDOWN_ACTIVE:"coned-select--active",ACTIVE_LABEL:"coned-select__label--active",FILLED_INPUT:"coned-input--filled",CHECKED_CLASS:"coned-checkbox--checked",HIDDEN_CLASS:"hidden",AUTH_USER:"js-auth-user",CONFIRM_PAY_BILL_ERROR:"js-pay-bill-confirm-error",BILL_LINK_CLASS:"js-bill-link",FORM_LOADING:"js-form-loading",BILL_HEADER_CLASS:"js-bill-header",HEADER_TOTAL_AMOUNT_CLASS:"js-total-amount",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",PAYMENT_AMOUNT_PARAMETER:"PaymentAmount=",ACCOUNT_NUMBER_PARAMETER:"AccountNumber=",ACCOUNT_ADDRESS:"js-account-address",ACCOUNT_NUMBER:"js-account-number",PAYMENT_DATE:"js-payment-date",SUBMIT_BUTTON:"js-transactional-submit-selector",ANIMATION_STEP_CLASS:"js-step-animation",FORM_STEP_CLASS:"js-step-form",HEADER_SELECTOR:"js-header-wrapper",BILLING_TABLE_SELECTOR:"js-billing-table",PAYMENT_AMOUNT_CHECKBOX:"js-payment-amount-option",TOOLTIP_DATE_SELECTOR:"js-tooltip-date",POPUP_CONFIRMATION_MESSAGE:"js-popup-confirmation",POPUP_CONFIRMATION_BUTTON:"js-popup-button-confirmation",BILL_AMOUNT_PAY:"bill.amount.pay",OTHER_AMOUNT:"ANOTHER_AMOUNT",BNA_AMOUNT:"BNA_AMOUNT",IS_SUMMARY_BILLING_SELECTOR:"js-is-summary-billing-program",IS_COMMERCIAL_SELECTOR:"js-is-commercial",OTHER_VALUE:"other",HALF_CONTAINER_MODIFIER:"transactional__half-block",FULL_CONTAINER_MODIFIER:"transactional__full",DATA_INPUT_SHOULD_START_VALIDATE:"data-input-should-start-validate",PARTIAL_PAYMENT_WARNING_MSG:".js-partial-payment-warning",NOTIFICATION_BANNER:"js-pay-bill-notification-card",GUEST_PAY_LINK:"js-pay-guest-link",GUEST_PAY_DATA_MODULE:'[data-module="PayMyBillNoLogin"]',DEFAULT_VALIDATOR_HIDDEN_SELECTOR:":hidden",PAYMENT_STATUS_MESSAGE:"js-payment-status-message",LEGACY_METER_MESSAGE:"js-legacy-meter-message",TABINDEX:"tabindex",OVERPAYMENT_PARAGRAPH:"js-overpayment-paragraph",FONT_SIZE:"font-size",TAG_CONFIRM_PAY_BILL_ERROR:"gp.confirm.error",TAG_GUEST_PAY_CLICK:"scenario.guestpay.click",NO_ERROR_CODES_PROVIDED_MESSAGE:"No error codes provided",TAG_GUEST_PAY_TILE_SCENARIO:"Pay as Guest",TAG_PAY_BILL_CREDIT_CARD:"pay.bill.creditcard",TAG_ACCOUNT_TYPE_COMMERCIAL:"commercial",TAG_ACCOUNT_TYPE_RESIDENTIAL:"residential"},i=!1,t=function(r){var ui,st,p,ht,ct,f,sr,fi,ei,oi,lt,at,w,si,b,h,vt,s,hr,c,hi,ci,li,ai,cr,u,vi,yt,yi,k,pi,d,g,wi,l,nt,lr,tt,it,bi,ki,rt,pt,ar,ut,vr,di,wt,ft,o,yr,pr,et,gi,bt,nr,wr,e,ot,y,kt,tr,ir,dt,br,rr,gt,nu=function(t){var u=t.target.value,i;if(u==r.dataset.creditOption){for(query.addClass(at,n.HIDDEN_CLASS),query.addClass(w,n.HIDDEN_CLASS),yi.classList.remove(n.HIDDEN_CLASS),d.classList.add(n.HIDDEN_CLASS),i=0;i<k.length;i++)k[i].classList.remove(n.HIDDEN_CLASS);kr();v()}else{for(query.removeClass(at,n.HIDDEN_CLASS),query.removeClass(w,n.HIDDEN_CLASS),yi.classList.add(n.HIDDEN_CLASS),hr.dataset.amount=0,i=0;i<k.length;i++)k[i].classList.add(n.HIDDEN_CLASS);u==r.dataset.lastAccountOption&&query.addClass(at,n.HIDDEN_CLASS);y?(d.classList.remove(n.HIDDEN_CLASS),ni(v)):v()}},ur=function(){for(var i=null,r="",f,t=0;o[t];++t)if(o[t].checked){i=o[t];ir=o[t].dataset.paymentOptionName;break}r=i.dataset.paymentOptionType;r==n.OTHER_AMOUNT||r==n.OTHER_VALUE?(u.value="",s.innerHTML="$0.00",s.dataset.amount=0,query.removeClass(u,n.FILLED_INPUT),u.disabled=!1,u.hasAttribute(n.DATA_INPUT_SHOULD_START_VALIDATE)&&u.removeAttribute(n.DATA_INPUT_SHOULD_START_VALIDATE),u.parentNode.parentNode.classList.remove(n.HIDDEN_CLASS),ft&&ft.classList.remove(n.HIDDEN_CLASS)):(u.value=a(parseFloat(i.dataset.paymentAmount.replace(/,/g,"")).toFixed(2)),s.dataset.amount=i.dataset.paymentAmount,s.innerHTML=a(parseFloat(i.dataset.paymentAmount.replace(/,/g,"")).toFixed(2)),query.addClass(u,n.FILLED_INPUT),u.disabled=!0,query.removeClass(u,coned.constants.INPUT_ERROR_CLASS),f=u.parentNode.nextSibling,f&&f.remove(),u.parentNode.parentNode.classList.add(n.HIDDEN_CLASS),ft&&ft.classList.add(n.HIDDEN_CLASS));ni(v)},tu=function(n){var r=n.target,t=r.value,i;t=t.replace(/[^\d.]/g,"");i=t.match(/^-?\d+(?:\.\d{0,2})?/);t=parseFloat(i?i[0]:0);s.dataset.amount=t;r.value===""?(s.innerHTML="$0.00",s.dataset.amount=0):s.innerHTML=a(parseFloat(s.dataset.amount).toFixed(2));ni(v)},iu=function(){br||coned.utils.isOru()&&h.dataset.minAmount&&h.dataset.amount||(parseFloat(h.dataset.amount)<parseFloat(h.dataset.minAmount)?si.classList.remove(n.HIDDEN_CLASS):si.classList.add(n.HIDDEN_CLASS));or()},ni=function(t){var i=parseFloat(s.dataset.amount.replace(/,/g,"")),r=parseFloat(vi.dataset.amount.replace(/,/g,""));y&&(i==r?d.classList.remove(n.HIDDEN_CLASS):kr());t()},kr=function(){b.checked=!1;b.parentElement.classList.remove(n.CHECKED_CLASS);d.classList.add(n.HIDDEN_CLASS);vt.dataset.amount=0;yt.classList.add(n.HIDDEN_CLASS)},ru=function(){b.checked?(yt.classList.remove(n.HIDDEN_CLASS),vt.dataset.amount=1):(yt.classList.add(n.HIDDEN_CLASS),vt.dataset.amount=0);v()},v=function(){var n,t=0,i,u;for(e=0;e<hi.length;e++)n=hi[e],ht.value==r.dataset.creditOption&&n.dataset.type!==undefined?(i=n.dataset.type=="commercial"?parseFloat(n.dataset.commercialValue.replace(/,/g,""))/100*parseFloat(s.dataset.amount.replace(/,/g,"")):parseFloat(n.dataset.residentialValue.replace(/,/g,"")),n.innerHTML=a(i.toFixed(2)+"")):i=parseFloat(n.dataset.amount.replace(/,/g,"")),t+=i;u=t;t=a(t.toFixed(2)+"");h.innerHTML=t;h.dataset.amount=u;iu()},uu=function(n){return n.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},a=function(n){var t=n.replace(/[^\d.-]/g,""),i="";return t=t.split(".",2),typeof t[1]!="undefined"&&(i="."+t[1]),"$"+uu(t[0])+i},fu=function(){var t=new Date,i=t.getDate(),r=t.getMonth(),u=t.getFullYear(),f=++r+"/"+i+"/"+u;c.value=f;c.classList.add(n.FILLED_INPUT);o[0].checked=!0;ur()},eu=function(t){for(var i=0;o[i];++i)if(o[i].dataset.paymentOptionType==n.OTHER_AMOUNT){o[i].checked=!0;break}ur();u.value=a(parseFloat(t).toFixed(2));s.innerHTML=a(parseFloat(t).toFixed(2));s.dataset.amount=t;query.addClass(u,n.FILLED_INPUT);ni(v)},ou=function(){var n;return gt?n=!0:(n=!1,gt=!0),n},su=function(){var f=!1,t,i,r;if(kt){for(t=0;o[t];++t)o[t].checked&&o[t].dataset.paymentOptionType==n.OTHER_AMOUNT&&(f=!0);f?(i=u.value.replace("$","").replace(/,/g,""),i=parseFloat(i),r=tr.replace("$","").replace(/,/g,""),r=parseFloat(r),i<r?yr.classList.remove(n.HIDDEN_CLASS):ti()):ti()}else ti()},ti=function(){var t=query.getFormInputValue(r,n.FORM_PAYMENT_METHOD_NAME),i=new Date(c.value).getTime()>(new Date).setHours(0,0,0,0)?!0:!1,u={event:"pay.bill.submit",paymentMethod:t,PostPaymentSelected:i.toString()};i&&(u.PostPaymentDate=c.value);dataLayer.push(u);dt||dataLayer.push({event:n.BILL_AMOUNT_PAY,PaymentAmountOption:ir});g.classList.add(n.HIDDEN_CLASS);t==r.dataset.creditOption?(lu(),ri()):(rt.classList.remove(n.HIDDEN_CLASS),pt.classList.add(n.HIDDEN_CLASS),window.scrollTo(0,0),new coned.components.SubmitAnimation(ct,hu,yu,fr))},hu=function(){var u=r.dataset.serviceUrl,f=query.getFormInputValue(r,n.FORM_PAYMENT_METHOD_NAME),e=cu(),i=!1,t;f==r.dataset.lastAccountOption&&(i=!0);t={ScId:query.getFormInputValue(r,n.FORM_SCID_NAME),PaymentDate:query.getFormInputValue(r,n.FORM_PAYMENT_DATE_NAME),PaymentType:query.getFormInputValue(r,n.FORM_PAYMENT_METHOD_NAME),BankAccountNumber:query.getFormInputValue(r,n.FORM_BANK_ACCOUNT_NUMBER_NAME),BankRoutingNumber:query.getFormInputValue(r,n.FORM_ROUTING_ABA_NUMBER_NAME),AutopayFlag:query.getFormInputValue(r,n.FORM_DPP_ENROLL_NAME),EnergyShareFlag:query.getFormInputValue(r,n.FORM_ENERGY_SHARE_NAME),IsMultipay:!1,UseAccountFromLastPayment:i,Accounts:e};t=JSON.stringify(t);ou()||query.postData(u,au,vu,t,!0)},cu=function(){return[{Maid:r.dataset.maid,PaymentLowerLimit:ii(u.dataset.paymentMin),PaymentUpperLimit:ii(u.dataset.paymentMax),AccountNumber:r.dataset.accountNumber,Address:r.dataset.address,PaymentAmount:ii(s.dataset.amount),TotalAmount:ii(h.innerHTML)}]},ii=function(n){return n=n.replace(/[^\d.-]/g,""),parseFloat(n)},lu=function(){var f=r.dataset.creditPayment,t=pi.innerHTML,i=tt.innerHTML,u=it.innerHTML;t=t.replace("{{LINKCARD}}",f);pi.innerHTML=t;i=i.replace("{{ADDRESS}}","<strong>"+r.dataset.address+"<\/strong>");tt.innerHTML=i;u=u.replace("{{ACCOUNT}}","<strong>"+r.dataset.accountNumber+"<\/strong>");it.innerHTML=u;dataLayer.push({event:n.TAG_PAY_BILL_CREDIT_CARD,creditAccountType:dt?n.TAG_ACCOUNT_TYPE_COMMERCIAL:n.TAG_ACCOUNT_TYPE_RESIDENTIAL});window.open(f)},au=function(n){ct.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS);ot=n},vu=function(n){ct.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);ot=n;gt=!1},yu=function(){if(coned.utils.isPatternLab()){var t=document.querySelector(n.GUEST_PAY_DATA_MODULE);t?query.getData(coned.plConstants.POST_PAYMENT_SINGLE_GUEST_PAY,ri,fr):query.getData(coned.plConstants.POST_PAYMENT_SINGLE,ri,fr)}else ri(ot)},ri=function(t){var v=tt.innerHTML,y=it.innerHTML,p=bi.innerHTML,g,nt,ut,o,l,c,d;if(ui&&ui.classList.add(n.HIDDEN_CLASS),ht.value==r.dataset.creditOption){li.classList.remove(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);pt.classList.add(n.HIDDEN_CLASS);window.scrollTo(0,0);li.focus();return}if(rt.classList.add(n.HIDDEN_CLASS),t.RefNumbers[0].SuccessCode)for(ut=t.RefNumbers[0].SuccessCode.split("_")[1],o=0;o<bt.length;o++)bt[o].dataset.paymentStatus===ut&&bt[o].classList.remove(n.HIDDEN_CLASS);if(rr&&rr==="true")for(l=0;l<nr.length;l++)nr[l].classList.remove(n.HIDDEN_CLASS);if(dataLayer.push(t.eCommerceJson),t.RefNumbers[0].Success){var i=u.value,e=vi.dataset.amount,w=oi.innerHTML,b=fi.innerHTML,k=ei.innerHTML;if(i=i.replace("$","").replace(/,/g,""),i=parseFloat(i),e=e.replace("$","").replace(/,/g,""),e=parseFloat(e),i<e){var ft=(e-i).toFixed(2),ot="?"+n.PAYMENT_AMOUNT_PARAMETER+ft,st="&"+n.ACCOUNT_NUMBER_PARAMETER+t.RefNumbers[0].Maid,ct=ot+st,s=lt.innerHTML;s=s.replace("{{VALUEOWE}}","$"+ft);s=s.replace("{{LINKOWE}}",ct);lt.innerHTML=s;lt.classList.remove(n.HIDDEN_CLASS)}h.innerHTML=a(parseFloat(h.innerHTML.replace("$","").replace(/,/g,"")).toFixed(2));w=w.replace("{{AMOUNT}}",h.innerHTML);oi.innerHTML=w;b=b.replace("{{REFERENCE}}",t.RefNumbers[0].RefNumber);fi.innerHTML=b;k=k.replace("{{EMAIL}}",r.dataset.confirmationEmail);ei.innerHTML=k;f.classList.remove(n.HIDDEN_CLASS);ci.classList.remove(n.HIDDEN_CLASS);ci.focus();dataLayer.push({event:"coned.transaction.success"})}else cr.innerHTML=t.RefNumbers[0].errorMsg,et&&et.classList.add(n.HIDDEN_CLASS),c={event:"pay.bill.error"},t.RefNumbers[0].PaymentErrors&&t.RefNumbers[0].PaymentErrors.errorDetails?(d=[],_.each(t.RefNumbers[0].PaymentErrors.errorDetails,function(n){d.push(n.errorCode)}),c.payBillErrors=d.join("|")):c.payBillErrors=n.NO_ERROR_CODES_PROVIDED_MESSAGE,t.RefNumbers[0].Maid!==null&&(c.maid=t.RefNumbers[0].Maid),f.classList.remove(n.HIDDEN_CLASS),ai.classList.remove(n.HIDDEN_CLASS),ai.focus(),dataLayer.push(c);v=v.replace("{{ADDRESS}}","<strong>"+t.RefNumbers[0].ServiceAddress+"<\/strong>");tt.innerHTML=v;nt=r.dataset.accountLastDigits?r.dataset.accountLastDigits:t.RefNumbers[0].AccountNumber;y=y.replace("{{ACCOUNT}}","<strong>"+nt+"<\/strong>");it.innerHTML=y;p=p.replace("{{PAYMENTDATE}}",t.RefNumbers[0].PaymentDate);g=coned.utils.dateFormatLongMonth(p);bi.innerHTML=g;window.scrollTo(0,0);coned.utils.qualtricsTriggering(r)},fr=function(){var t=g.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];et&&et.classList.add(n.HIDDEN_CLASS);g.classList.remove(n.HIDDEN_CLASS);t.innerHTML=ot.errorMsg?ot.errorMsg:coned.constants.ERROR_MESSAGE;g.focus();rt.classList.add(n.HIDDEN_CLASS);pt.classList.remove(n.HIDDEN_CLASS);query.scrollToElement(vr,ar);dataLayer.push({event:"pay.bill.error"})},pu=function(t){t.preventDefault();var i=query.selectParentElement(t.target,n.PMB_ELEMENTS_SELECTOR),u=i.dataset.linkServiceUrl,r;if(l=query.selectParentElement(t.target,n.BILL_LINK_CLASS),nt=i.getElementsByClassName(n.SERVICE_ERROR)[0],nt.classList.add(n.HIDDEN_CLASS),l.dataset.billLink){window.open(l.dataset.billLink,"_blank");return}r={ScId:l.dataset.scid,Maid:l.dataset.maid,BillDate:l.dataset.billDate,Type:l.dataset.type};di=window.open();query.getData(u,wu,er,r,lr)},wu=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_BILL_LINK,dr,er):n.Link&&n.Link!=""?dr(n):er(n)},dr=function(n){l.dataset.billLink=n.Link;di.location.href=n.Link},er=function(t){var i=nt.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];di.close();nt.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;nt.focus()},or=function(){var n=$(ut).validate().checkForm();ki.disabled=!n||parseFloat(h.dataset.amount)<parseFloat(h.dataset.minAmount)},gr=function(){dataLayer.push({event:n.TAG_CONFIRM_PAY_BILL_ERROR})},bu=function(){dataLayer.push({event:n.TAG_GUEST_PAY_CLICK,tileScenario:n.TAG_GUEST_PAY_TILE_SCENARIO})},ku=function(t){var i=$("."+n.FORM_SELECTOR).validate();i.element(t.target)};t.rebindEvents=function(){wt=r.getElementsByClassName(n.CONFIRM_PAY_BILL_ERROR)[0];y||coned.utils.addGeneralListeners(wt,gr)};var du=function(){return parseInt(window.getComputedStyle(p,null).getPropertyValue(n.FONT_SIZE))},gu=function(){ui=document.getElementsByClassName(n.PAGE_HEADER)[0];st=r.getElementsByClassName(n.BILL_HEADER_CLASS)[0];p=r.getElementsByClassName(n.HEADER_TOTAL_AMOUNT_CLASS)[0];ar=document.getElementsByClassName(n.HEADER_SELECTOR)[0];rt=r.getElementsByClassName(n.ANIMATION_STEP_CLASS)[0];pt=r.getElementsByClassName(n.FORM_STEP_CLASS)[0];ut=r.getElementsByClassName(n.FORM_SELECTOR)[0];f=r.getElementsByClassName(n.FINISH_STEP_SELECTOR)[0];sr=r.getElementsByClassName(n.FINISH_STEP_FOCUS_SELECTOR);vi=r.getElementsByClassName(n.AMOUNT_SELECTOR)[0];hi=ut.getElementsByClassName(n.AMOUNT_SELECTOR);ht=r.getElementsByClassName(n.PAYMENT_METHOD_SELECTOR)[0];at=r.getElementsByClassName(n.CREDIT_CARD_SELECTOR);w=r.getElementsByClassName(n.CREDIT_CARD_PAYMENT_SELECTOR);b=r.getElementsByClassName(n.ENERGY_SHARE_SELECTOR)[0];h=r.getElementsByClassName(n.TOTAL_AMOUNT_SELECTOR)[0];vt=r.getElementsByClassName(n.ENERGY_AMOUNT_SELECTOR)[0];s=r.getElementsByClassName(n.PAYMENT_AMOUNT_SELECTOR)[0];hr=r.getElementsByClassName(n.SERVICE_FEE_SELECTOR)[0];c=r.getElementsByClassName(n.INPUT_DATE_SELECTOR)[0];u=r.getElementsByClassName(n.AMOUNT_INPUT_SELECTOR)[0];yt=r.getElementsByClassName(n.ROW_ENERGY_SHARE)[0];yi=r.getElementsByClassName(n.ROW_SERVICE_FEE)[0];k=r.getElementsByClassName(n.CREDIT_CARD_MESSAGE);d=r.getElementsByClassName(n.ENERGY_SHARE_MODULE)[0];g=r.getElementsByClassName(n.BILL_PAYMENT_ERROR)[0];si=r.getElementsByClassName(n.MINUMUM_PAYMENT_ALERT)[0];ct=rt.getElementsByClassName(n.SUBMIT_ANIMATION)[0];fi=f.getElementsByClassName(n.PAYMENT_REFERENCE_SELECTOR)[0];ei=f.getElementsByClassName(n.ACCOUNT_EMAIL_CONTAINER_SELECTOR)[0];lt=f.getElementsByClassName(n.OWE_SELECTOR)[0];oi=f.getElementsByClassName(n.AMOUNT_TITLE_SELECTOR)[0];ci=f.getElementsByClassName(n.THANKS_MESSAGE_SELECTOR)[0];li=f.getElementsByClassName(n.CREDIT_CARD_MESSAGE_SELECTOR)[0];ai=f.getElementsByClassName(n.PAYMENT_ERROR_MESSAGE_SELECTOR)[0];cr=f.getElementsByClassName(n.PARAGRAPHS_ERROR_SELECTOR)[0];pi=f.getElementsByClassName(n.CREDIT_CARD_MESSAGE_CONTAINER)[0];wi=r.getElementsByClassName(n.BILL_LINK_CLASS);lr=r.getElementsByClassName(n.FORM_LOADING)[0];tt=f.getElementsByClassName(n.ACCOUNT_ADDRESS)[0];it=f.getElementsByClassName(n.ACCOUNT_NUMBER)[0];bi=f.getElementsByClassName(n.PAYMENT_DATE)[0];vr=r.getElementsByClassName(n.BILLING_TABLE_SELECTOR)[0];ki=r.getElementsByClassName(n.SUBMIT_BUTTON)[0];y=query.hasClass(r,n.AUTH_USER);wt=r.getElementsByClassName(n.CONFIRM_PAY_BILL_ERROR)[0];o=r.getElementsByClassName(n.PAYMENT_AMOUNT_CHECKBOX);yr=r.getElementsByClassName(n.POPUP_CONFIRMATION_MESSAGE)[0];pr=r.getElementsByClassName(n.POPUP_CONFIRMATION_BUTTON)[0];et=r.getElementsByClassName(n.NOTIFICATION_BANNER)[0];gi=r.getElementsByClassName(n.GUEST_PAY_LINK)[0];ft=r.querySelector(n.PARTIAL_PAYMENT_WARNING_MSG);bt=f.getElementsByClassName(n.PAYMENT_STATUS_MESSAGE);nr=f.getElementsByClassName(n.LEGACY_METER_MESSAGE);wr=r.getElementsByClassName(n.OVERPAYMENT_PARAGRAPH)[0];kt=!1;tr=0;ir="";dt=!1;br=r.classList.contains(n.IS_SUMMARY_BILLING_SELECTOR);rr=r.dataset.legacyMeter;gt=!1},nf=function(){var t,i,f;for(new coned.components.ValidateForm("."+n.FORM_SELECTOR,su,n.DEFAULT_VALIDATOR_HIDDEN_SELECTOR,!0),ki.disabled=!0,ht.addEventListener("change",nu),t=r.dataset.paymentAmount,e=0;e<w.length;e++)w[e].classList.contains(n.IS_COMMERCIAL_SELECTOR)&&(dt=!0);for(y&&(b.addEventListener("change",ru),fu()),u.addEventListener("keyup",tu),setTimeout(function(){var n=c.dataset.minDateDays||c.dataset.maxDateDays?coned.utils.datepickerDateFormat(c.dataset.minDateDays,c.dataset.maxDateDays):{minDate:"0",maxDate:"5d"};$(c).datepicker("option","minDate",n.minDate);$(c).datepicker("option","maxDate",n.maxDate)},1),c.addEventListener("change",ku),t&&t!==""&&eu(t),e=0;e<wi.length;e++)coned.utils.addGeneralListeners(wi[e],pu);for(e=0;e<o.length;e++)o[e].addEventListener("change",ur),o[e].dataset.paymentOptionType==n.BNA_AMOUNT&&(tr=o[e].dataset.paymentAmount,kt=!0);$(ut).on("change","."+n.INPUT_DATE_SELECTOR,or);coned.utils.addMultipleListeners(ut,["change","keyup"],or);kt&&coned.utils.addGeneralListeners(pr,ti);y||coned.utils.addGeneralListeners(wt,gr);gi&&coned.utils.addGeneralListeners(gi,bu);i=window.location.href;f=i.match("op=true");f&&wr.removeAttribute("hidden");_.each(sr,function(t){t.setAttribute(n.TABINDEX,"-1")});st&&p&&(coned.utils.updateFontToFitAncestor(p,st,du()),coned.utils.updateFontResizeThrottler(coned.utils.updateFontToFitAncestor,p,st))},tf=function(){gu();nf();i=!0};tf()};return t.prototype.isLoaded=function(){return i},t}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.PaymentExtension=function(){var n={PAYMENT_EXTENSION_FORM:".js-payment-extension-form",SUCCESS_SELECTOR:"js-success-selector",SUCCESS_MESSAGE_SELECTOR:"js-success-message",DATE_SELECTOR:"js-date",ACCOUNT_MAID_INPUT:"accountMaid",FORM_SITECORE_ID_NAME:"scId",FORM_DATE_NAME:"date",FORM_LOADING:"js-form-loading",SERVICE_ERROR:"js-service-error",ERROR_TEXT_SELECTOR:"js-error-message",HIDDEN_CLASS:"hidden",HEADER:"js-header-wrapper",CANCEL_BUTTON:"js-close-button",DATE_TOKEN:"@DATE"},t=!1,i=function(i){var f,e,r,o,s,u,h,c,a=function(){var f=i.dataset.serviceUrl,u=i.dataset.newDueDate,t;l();t={Maid:o.value,ScId:query.getFormInputValue(i,n.FORM_SITECORE_ID_NAME),Date:u===""?r.value:u};t=JSON.stringify(t);query.postData(f,v,y,t,!0,s)},l=function(){u.classList.add(n.HIDDEN_CLASS)},v=function(){var c=r.dataset.locale,t=e.innerHTML,u=r.dataset.paymentDay,l=r.value,a=u!==""?new Date(u):new Date,o=new Date(l),s=Math.ceil((o.getTime()-a.getTime())/864e5);t=t.replace("{{DAYS}}",s);t=t.replace("{{DUE_DATE}}",o.toLocaleString(c,{year:"numeric",month:"long",day:"numeric"}));e.innerHTML=t;dataLayer.push({daysOfExtension:s});i.classList.add(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);query.scrollToElement(i,h);dataLayer.push({event:"coned.form.success",contentTitle:"payment-extension"});i.classList.add(coned.constants.QUALTRICS_TRIGGER_CLASS);QSI.API.unload();QSI.API.load().done(QSI.API.run())},y=function(t){var i=u.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];u.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;u.focus()},p=function(){f=document.getElementsByClassName(n.SUCCESS_SELECTOR)[0];e=f.getElementsByClassName(n.SUCCESS_MESSAGE_SELECTOR)[0];r=i.getElementsByClassName(n.DATE_SELECTOR)[0];o=document.getElementsByName(n.ACCOUNT_MAID_INPUT)[0];s=document.getElementsByClassName(n.FORM_LOADING)[0];u=i.getElementsByClassName(n.SERVICE_ERROR)[0];h=document.getElementsByClassName(n.HEADER)[0];c=i.getElementsByClassName(n.CANCEL_BUTTON)[0]},w=function(){new coned.components.ValidateForm(n.PAYMENT_EXTENSION_FORM,a);coned.utils.addGeneralListeners(c,l)},b=function(){p();w();t=!0};b()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.PlannedContributionModule=function(){var n={RADIO_CLASS:"input[name=donation]:radio",RADIO_OTHER_VALUE:"other",RADIO_HIDDEN_FIELD:"js-other",RADIO_HIDE_FIELD:"coned-form__field-container--hidden"},t=!1,i=function(i){var u,r,f=function(){var t=this.value;t==n.RADIO_OTHER_VALUE?query.removeClass(r,n.RADIO_HIDE_FIELD):query.addClass(r,n.RADIO_HIDE_FIELD)},e=function(){u=$(n.RADIO_CLASS);r=i.getElementsByClassName(n.RADIO_HIDDEN_FIELD)[0].parentElement.parentElement},o=function(){u.change(f)},s=function(){e();o();t=!0};s()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.PopupModule=function(){var n={HIDDEN_CLASS:"hidden",BUTTON_POPUP:"js-popup-button",MAIN_CONTENT_ID:"mainContent",CLOSE_BUTTON:"js-popup-close",OPEN_BUTTON:"js-popup-open",SHOW_POPUP:"js-show-popup",HAS_SLIDER_CLASS:"js-has-slider",POPUP_SHOW_SECONDARY_EVENT:"popup-show-secondary",POPUP_VISIBLE_EVENT:"popup-visible",UNAUTHENTICATED_LOGIN:"js-unauthenticated-login",LOGIN_BUTTON:"js-login-button",UNAUTH_LOGIN_BUTTON:"js-unauth-login-button",LOGIN_SUBMIT_BUTTON:"js-transactional-submit-selector",DATA_ERROR_BACK_FOCUS_CLASS:"data-error-back-focus-class",DATA_ERROR_BACK_FOCUS_INDEX:"data-error-back-focus-index",NEW_FEATURE_MESSAGING:"js-new-feature-messaging",COOKIE_NAME:"newFeatureMessagingShouldShow",FEATURE_MESSAGING_START_TAG:"feature.messaging.start",FEATURE_MESSAGING_CLOSE_TAG:"feature.messaging.close"},t=!1,i=function(i){var o,s,f,u,e,h,c,r,l,a=function(t){var i=0;dataLayer.push({event:n.FEATURE_MESSAGING_START_TAG});l=setInterval(function(){++i;t.dataset.taggingOpenSeconds=i;t.dataset.taggingTimerId=l},1e3)},w=function(t){dataLayer.push({messageTime:t.dataset.taggingOpenSeconds});dataLayer.push({event:n.FEATURE_MESSAGING_CLOSE_TAG});clearInterval(t.dataset.taggingTimerId)},v=function(t){var e,o;if(t.classList.add(n.HIDDEN_CLASS),query.hasClass(t,n.SHOW_POPUP)&&(t.dataset.alreadyClosed=!0),!t||!t.dataset.noBackFocus){if(h){var s=i.dataset.errorBackFocus,u=document.getElementsByClassName(s),f=t.dataset.errorBackFocusIndex;f?(t.BackFocus=u[f],t.removeAttribute(n.DATA_ERROR_BACK_FOCUS_CLASS),t.removeAttribute(n.DATA_ERROR_BACK_FOCUS_INDEX)):t.BackFocus=u[0]}t.BackFocus?(e=i.dataset.backFocusScroll==="false"?!0:!1,e?t.BackFocus.focus({preventScroll:!0}):t.BackFocus.focus()):r.length>1&&y()?(o=y(),coned.utils.triggerEvent(o,n.POPUP_SHOW_SECONDARY_EVENT)):query.hasClass(t,n.UNAUTH_LOGIN_BUTTON)?(t.classList.remove(n.UNAUTH_LOGIN_BUTTON),c.getElementsByClassName(n.LOGIN_SUBMIT_BUTTON)[0].focus()):document.getElementById(n.MAIN_CONTENT_ID).focus();t.dataset.cookie&&nt(t);query.hasClass(t,n.NEW_FEATURE_MESSAGING)&&w(t)}},y=function(){for(var t,n=0;n<r.length;n++)if(!r[n][0].dataset.alreadyClosed)return r[n][0];return t},b=function(t){var i=t.target,u=i.querySelectorAll(coned.constants.FOCUSABLE_ELEMENTS_QUERY),f=u[0],r=query.hasClass(i,n.NEW_FEATURE_MESSAGING),e=r&&i,o=query.hasClass(i,n.HAS_SLIDER_CLASS);setTimeout(function(){i.classList.remove(n.HIDDEN_CLASS);f.focus();o&&(coned.utils.triggerEvent(i,n.POPUP_VISIBLE_EVENT),r&&a(e))},500)},p=function(t){var r,u;t.preventDefault();r=query.hasClass(this,n.OPEN_BUTTON);r?(i.classList.remove(n.HIDDEN_CLASS),t.currentTarget&&(i.BackFocus=t.currentTarget),u=i.getElementsByClassName(n.CLOSE_BUTTON),u[0].focus()):v(i,t)},k=function(){var n=[];return Array.from(f).forEach(function(t){var r=[t,t.dataset.popupPriority?t.dataset.popupPriority:100],u,i;if(n.length===0)n.push(r);else{for(u=0,i=0;i<n.length;i++)if(r[1]>=n[i][1]&&(u=i+1),r[1]<n[i][1]){u=i;break}n.splice(u,0,r)}}),n},d=function(){var i,t;if(f.length>0)if(i=!1,_.each(r,function(t){var r=t[0],f=query.hasClass(r,n.HAS_SLIDER_CLASS),e=query.hasClass(r,n.NEW_FEATURE_MESSAGING),u;i?r.addEventListener(n.POPUP_SHOW_SECONDARY_EVENT,b):(r.classList.remove(n.HIDDEN_CLASS),i=!0);u=!query.hasClass(r,n.HIDDEN_CLASS);f&&u&&(coned.utils.triggerEvent(r,n.POPUP_VISIBLE_EVENT),e&&a(r))}),coned.utils.isDomVisible(e))e.focus();else for(t=1;t<u.length;t++)if(coned.utils.isDomVisible(u[t])){u[t].focus();break}},g=function(t,i){if(t.keyCode==coned.constants.KEY_CODE.ESC){var r=!query.hasClass(i,n.HIDDEN_CLASS);r&&v(i,t)}},nt=function(t){var r=n.COOKIE_NAME,i=query.getCookie(r),u=t.dataset.cookie,f=new Date((new Date).setFullYear((new Date).getFullYear()+1));(!i||i&&i!==u)&&query.setCookie(r,u,f)},tt=function(){o=document.querySelectorAll("."+n.BUTTON_POPUP+"."+i.dataset.openButton);s=i.getElementsByClassName(n.CLOSE_BUTTON);f=document.getElementsByClassName(n.SHOW_POPUP);r=k();u=i.querySelectorAll(coned.constants.FOCUSABLE_ELEMENTS_QUERY);e=u[0];h=i.dataset.errorPopup;c=document.getElementsByClassName(n.UNAUTHENTICATED_LOGIN)[0]},it=function(){_.each(o,function(n){n.addEventListener("click",p)});_.each(s,function(n){n.addEventListener("click",p)});new coned.utils.addFocusTrap(i);i.classList.contains(n.SHOW_POPUP)&&setTimeout(d,500);i.addEventListener("keydown",function(n){g(n,i)})},rt=function(){tt();it();t=!0};rt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.PowerSwitch=function(){var n={HIDDEN:"hidden",RESIDENTIAL_RADIO:"js-account-residential",COMMERCIAL_RADIO:"js-account-commercial",RESIDENTIAL_NAME_INPUT_CONTAINER:"js-residential-name-input",COMMERCIAL_NAME_INPUT_CONTAINER:"js-commercial-name-input",RESIDENTIAL_NAME_INPUT_NAME:"nameBillResidential",COMMERCIAL_NAME_INPUT_NAME:"nameBillBusiness",EMPTY_STRING:""},t=!1,i=function(i){var f,e,r,u,o=function(){r.classList.remove(n.HIDDEN);query.setFormTextInputValue(i,n.RESIDENTIAL_NAME_INPUT_NAME,n.EMPTY_STRING);u.classList.add(n.HIDDEN)},s=function(){r.classList.add(n.HIDDEN);query.setFormTextInputValue(i,n.COMMERCIAL_NAME_INPUT_NAME,n.EMPTY_STRING);u.classList.remove(n.HIDDEN)},h=function(){f=i.getElementsByClassName(n.RESIDENTIAL_RADIO)[0];e=i.getElementsByClassName(n.COMMERCIAL_RADIO)[0];r=i.getElementsByClassName(n.RESIDENTIAL_NAME_INPUT_CONTAINER)[0];u=i.getElementsByClassName(n.COMMERCIAL_NAME_INPUT_CONTAINER)[0]},c=function(){coned.utils.addGeneralListeners(f,o);coned.utils.addGeneralListeners(e,s)},l=function(){h();c();t=!0};l()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.PowerYourWayForm=function(){var n={FORM_SELECTOR:"js-power-your-way-form",FORM_LOADING:"js-form-loading",FORM_ESCO_LIST:"js-power-your-way-form-esco-list",ESCO_CUSTOMER_TYPE:"js-customer-type",ESCO_SERVICE_TYPE:"js-service-type",ESCO_LOCATION:"js-location",FILTER_CUSTOMER:"customer=",FILTER_SERVICE:"service=",FILTER_LOCATION:"location=",LIST_CONTAINER:"js-escos-container",CONED_INPUT:".coned-input",INPUT_FILLED_CLASS:"coned-input--filled",POWER_YOUR_WAY_CUSTOMER:"powerYourWayCustomer",POWER_YOUR_WAY_SERVICE:"powerYourWayService",POWER_YOUR_WAY_LOCATION:"powerYourWayLocation",DATA_INIT_RECAPTCHA_ATTR:"data-init-recaptcha"},t=!1,i=function(i){var f,r,e,o,s,u,h,c=function(){$(n.CONED_INPUT).change(function(){$(this).val()!==""?$(this).addClass(n.INPUT_FILLED_CLASS):$(this).removeClass(n.INPUT_FILLED_CLASS)})},l=function(){var t=document.getElementsByName(n.POWER_YOUR_WAY_CUSTOMER)[0],c=document.getElementsByName(n.POWER_YOUR_WAY_SERVICE)[0],l=document.getElementsByName(n.POWER_YOUR_WAY_LOCATION)[0],b=document.getElementsByClassName(n.LIST_CONTAINER)[0],a=t.options[t.selectedIndex],v=c.options[c.selectedIndex],y=l.options[l.selectedIndex],k=n.FILTER_CUSTOMER+a.value,d=n.FILTER_SERVICE+v.value,g=n.FILTER_LOCATION+y.value,p=i.dataset.service,nt=p.indexOf("?")===-1?"?":"&",w=p+nt+k+"&"+d+"&"+g;e.innerHTML=a.text;o.innerHTML=v.text;s.innerHTML=y.text;coned.utils.isPatternLab()&&(w=coned.plConstants.PATTERNLAB_POWER_YOUR_WAY_ESCO_LIST);query.getData(w,function(t){b.innerHTML=t;u.setAttribute(n.DATA_INIT_RECAPTCHA_ATTR,coned.constants.false);new coned.components.FormValidationModule(u)},function(){},"",h);f.style.display="none";r.style.display="block";r.scrollIntoView()},a=function(){r=i.getElementsByClassName(n.FORM_ESCO_LIST)[0];e=r.getElementsByClassName(n.ESCO_CUSTOMER_TYPE)[0];o=r.getElementsByClassName(n.ESCO_SERVICE_TYPE)[0];s=r.getElementsByClassName(n.ESCO_LOCATION)[0];f=i.getElementsByClassName(n.FORM_SELECTOR)[0];u=i.parentNode;h=u.getElementsByClassName(n.FORM_LOADING)[0];c()},v=function(){new coned.components.ValidateForm("."+n.FORM_SELECTOR,l)},y=function(){a();v();t=!0};y()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.PreRegisterValidation=function(){var n={SUBMIT_BUTTON:"js-transactional-submit-selector",SUBMIT_ANIMATION_BUTTON:"js-submit-progress-animation",FORM_CLASS_SELECTOR:".js-register-form",SUCCESS_BANNER:"js-finish-selector",FORM_CONTAINER_SELECTOR:"js-register-container",SUCCESS_BANNER_TITLE:"js-success-email",INPUT_EMAIL_SELECTOR:"js-email-selector",HIDDEN_CLASS:"hidden",PRE_REGISTER_SITECORE_ID:"ScId",PRE_REGISTER_FIRST_NAME:"registerFirstName",PRE_REGISTER_LAST_NAME:"registerLastName",PRE_REGISTER_EMAIL:"registerEmail",PRE_REGISTER_ERROR:"js-password-error",PRE_REGISTER_ERROR_MESSAGE:"js-error-message",FROM_URI_PARAMETER_NAME:"fromURI",RESET_PASSWORD:"js-pre-register-reset-password",ACCOUNT_ERROR:"js-remove-account-error",FORM_LOADING:"js-form-loading",SERVICE_ERROR_MESSAGE:"js-error-message",CAPTCHA_ELEMENT_CLASS:"js-recaptcha",CAPTCHA_ERROR_CLASS:"js-captcha-error",VALIDATE_IGNORE_CLASS:"js-validate-ignore",CHECKBOX_CHECKED_CLASS:"coned-checkbox--checked",EMPTY_STRING:"",DISABLED_ATTRIBUTE:"disabled",THIRD_PARTY_CHECKBOX:"js-third-party-checkbox",THIRD_PARTY_COMPANY_INPUT:"js-third-party-company",THIRD_PARTY_COMPANY_INPUT_NAME:"thirdPartyCompany",THIRD_PARTY_COMPANY_INPUT_CONTAINER:"js-third-party-company-container",TAGGING_CHECK_BOX:"Step01.Check.Box",TAGGING_SUBMIT:"Step01.Submit",TAGGING_REGISTRATION_SUCCESS:"Step02.Page.Load"},t=!1,i=function(i){var f,o,e,s,y,b,l,p,k,a,d,g,h,w,u,r,c,v,nt,rt=function(){if(c&&r&&r.getResponse()==="")o.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);else{st();var t,f=i.dataset.preRegisterService,e=coned.utils.getUrlParameterValue(n.FROM_URI_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.FROM_URI_PARAMETER_NAME):"";t={ScId:query.getFormInputValue(i,n.PRE_REGISTER_SITECORE_ID),FirstName:query.getFormInputValue(i,n.PRE_REGISTER_FIRST_NAME),LastName:query.getFormInputValue(i,n.PRE_REGISTER_LAST_NAME),Email:query.getFormInputValue(i,n.PRE_REGISTER_EMAIL),FromUri:e};u&&(t.UserType=u.checked?"MyAccount/AccountManager":"",t.Organization=u.checked?query.getFormInputValue(i,n.THIRD_PARTY_COMPANY_INPUT_NAME):"");c&&r&&r.getResponse()!==""&&(t.Verify=r.getResponse());t=JSON.stringify(t);query.postData(f,ut,ft,t,!0)}},ut=function(){o.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},ft=function(n){o.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);v=n},et=function(){dataLayer.push({event:"registration.process",registration:"step02"});var t=s.innerHTML;s.parentElement.setAttribute("data-email",y.value);s.innerHTML=t.replace("@EMAIL","<b>"+y.value+"<\/b>");query.removeClass(e,n.HIDDEN_CLASS);query.addClass(b,n.HIDDEN_CLASS);e.focus();k=e.getElementsByClassName(n.RESET_PASSWORD)[0];coned.utils.addGeneralListeners(k,ht);dataLayer.push({event:"registration.process",registration:"step03"});dataLayer.push({event:"virtualPageView",virtualPageUrl:"/en/register/email-activation-sent"});i.dataset.tagging&&u&&u.checked&&dataLayer.push({event:i.dataset.tagging+n.TAGGING_REGISTRATION_SUCCESS})},ot=function(){v&&v.errorMsg&&(l.classList.remove(n.HIDDEN_CLASS),p.innerHTML=v.errorMsg,l.focus(),r.reset())},st=function(){l.classList.add(n.HIDDEN_CLASS);p.innerHTML=""},tt=function(){new coned.components.SubmitAnimation(o,rt,et,ot,!1,!0)},ht=function(n){n.preventDefault();var r=i.dataset.updatePasswordService,t=s.parentElement.dataset.email.toLowerCase(),u={email:encodeURIComponent(t)};t&&query.getData(r,ct,lt,u,d)},ct=function(){a.classList.add(n.HIDDEN_CLASS)},lt=function(t){var i=a.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];a.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;i.focus()},it=function(){u.checked?(h.required=!0,h.classList.remove(n.VALIDATE_IGNORE_CLASS),w.classList.remove(n.HIDDEN_CLASS),f.disabled=!$(i).validate().checkForm(),i.dataset.tagging&&dataLayer.push({event:i.dataset.tagging+n.TAGGING_CHECK_BOX})):(h.required=!1,h.classList.add(n.VALIDATE_IGNORE_CLASS),w.classList.add(n.HIDDEN_CLASS),f.disabled=!$(i).validate().checkForm())},at=function(){c&&r&&r.getResponse()!==""&&r.reset()},vt=function(){setTimeout(function(){u&&it();coned.utils.checkInputsFilled(i);nt=coned.components.ValidateForm.isFormValid(n.FORM_CLASS_SELECTOR,n.EMPTY_STRING,n.VALIDATE_IGNORE_CLASS);nt?f.removeAttribute(n.DISABLED_ATTRIBUTE):f.setAttribute(n.DISABLED_ATTRIBUTE,"");at()},1e3)},yt=function(){f=i.getElementsByClassName(n.SUBMIT_BUTTON)[0];y=i.getElementsByClassName(n.INPUT_EMAIL_SELECTOR)[0];e=document.getElementsByClassName(n.SUCCESS_BANNER)[0];s=document.getElementsByClassName(n.SUCCESS_BANNER_TITLE)[0];o=i.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];b=document.getElementsByClassName(n.FORM_CONTAINER_SELECTOR)[0];l=i.getElementsByClassName(n.PRE_REGISTER_ERROR)[0];p=i.getElementsByClassName(n.PRE_REGISTER_ERROR_MESSAGE)[0];u=i.getElementsByClassName(n.THIRD_PARTY_CHECKBOX)[0];h=i.getElementsByClassName(n.THIRD_PARTY_COMPANY_INPUT)[0];w=i.getElementsByClassName(n.THIRD_PARTY_COMPANY_INPUT_CONTAINER)[0];a=e.getElementsByClassName(n.ACCOUNT_ERROR)[0];d=e.getElementsByClassName(n.FORM_LOADING)[0];g=document.getElementsByClassName(n.CAPTCHA_ELEMENT_CLASS);c=g.length},pt=function(){dataLayer.push({event:"virtualPageView",virtualPageUrl:"/en/register/who-is-registering"});i.addEventListener("input",function(){f.disabled=!$(i).validate().checkForm()});u&&u.addEventListener("change",it);i.dataset.tagging&&coned.utils.addGeneralListeners(f,function(){u&&u.checked&&dataLayer.push({event:i.dataset.tagging+n.TAGGING_SUBMIT})});new coned.components.ValidateForm(n.FORM_CLASS_SELECTOR,wt,n.VALIDATE_IGNORE_CLASS);r=new coned.components.Recaptcha(document.querySelector(n.FORM_CLASS_SELECTOR),tt,tt);vt()},wt=function(){c&&r&&r.getResponse()===""&&r.checkRecaptcha()},bt=function(){yt();pt();t=!0};bt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.PreferenceCenter=function(){var n={PREFERENCE_CENTER_FORM:".js-preference-center-form",FORM_IGNORE_VALIDATION:"js-validate-ignore",HIDDEN_CLASS:"hidden",NOTIFICATION_CHECK:"js-notification-check",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",FORM_LOADING:"js-form-loading",CHECKBOX_SWITCH_FOCUS:"coned-checkbox-switch--focus",EDIT_SCID:"ScId",EDIT_NOTIFICATIONS_SCID:"notificationsScId",TAGGING_CHECKED_ON:".on",TAGGING_CHECKED_OFF:".off"},t=!1,i=function(i){var f,o,s,h,r,u,c=function(){v()},l=function(){var e,t,f;r=this.parentNode;u=r.getElementsByClassName(n.NOTIFICATION_CHECK)[0];e=r.dataset.service;t={ScId:query.getFormInputValue(i,n.EDIT_SCID),NotificationsScId:query.getFormInputValue(i,n.EDIT_NOTIFICATIONS_SCID),PreferenceId:r.dataset.preference,ChannelName:r.dataset.channel,Value:u.checked};t=JSON.stringify(t);query.postData(e,c,a,t,!0,h);f=JSON.parse(u.dataset.tag);f&&(f.event+=u.checked?n.TAGGING_CHECKED_ON:n.TAGGING_CHECKED_OFF,dataLayer.push(f))},a=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.DEFAULT_SERVICE_ERROR,e,e,!0):e(n)},e=function(t){var i=query.hasClass(r,n.EDIT_NOTIFICATION);r=i?r.parentNode.parentNode:r;i&&(u.checked=!1);var e=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE,f=r.getElementsByClassName(n.SERVICE_ERROR)[0],o=r.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];f.classList.remove(n.HIDDEN_CLASS);o.innerHTML=e;f.focus()},v=function(){_.each(s,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(o,function(n){n.innerHTML=""})},y=function(){f=i.getElementsByClassName(n.NOTIFICATION_CHECK);h=i.getElementsByClassName(n.FORM_LOADING)[0];s=i.getElementsByClassName(n.SERVICE_ERROR);o=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)},p=function(){f.length>0&&_.each(f,function(t){coned.utils.addGeneralListeners(t,l);t.addEventListener("focusin",function(t){query.addClass(t.target.parentElement,n.CHECKBOX_SWITCH_FOCUS)});t.addEventListener("focusout",function(t){query.removeClass(t.target.parentElement,n.CHECKBOX_SWITCH_FOCUS)})});new coned.components.ValidateForm(n.PREFERENCE_CENTER_FORM,"",n.FORM_IGNORE_VALIDATION)},w=function(){y();p();t=!0};w()};return i.prototype.isLoaded=function(){return t},i}();coned=coned||{};coned.components=coned.components||{};coned.components.ProgramSavingsFilters=function(){var t=!1,n={CLASSES:{FOOTER_MOBILE_SHOW:"modal-footer--show",MODAL_ENABLE:"modal-enable",FOCUS_VISIBLE:"program-savings-filters__button-clear--focus-visible"},SELECTORS:{SR_LIVE:"js-sr-live",MODAL:"js-modal",MODAL_FOOTER:"js-modal-footer",PAGINATION:"js-pagination-simple",PAGINATION_INFORMATION:"js-pagination-simple-information",PAGINATION_INFORMATION_MOBILE:"js-pagination-information-mobile",PAGINATION_ITEMS:"js-pagination-simple-items",PAGINATION_SORT:"js-select-single",PAGINATION_SORT_MOBILE:"js-radio-group",FILTERS:"js-select-multiple",FILTERS_OPTIONS:"js-select-miltiple-option",FILTERS_HEADER:"js-select-multiple-header",BUTTON_CLEAR:"js-program-savings-filters-button-clear",BUTTON_SR_CLEAR:"js-program-savings-filters-button-sr-clear",BUTTON_CLEAR_MOBILE:"js-program-savings-filters-button-clear-mobile",FILTER_COUNT:"js-program-savings-filters-count",CLEAR_COUNT:"js-program-savings-filters-clear-count",RESULT_CTA:"js-result-cta",CHECKBOX:"js-checkbox-selector"},VALUES:{EMPTY:"",SORT_AZ:"Programs: A–Z",SORT_ZA:"Programs: Z–A",SORT_FEATURED:"Featured",RESULTS:" Results",MOBILE_NAME:"-mobile",DESKTOP_BREAKPOINT:1024,CHANGE_FOCUS_KEY:"change-focus"},EVENTS:{PAGINATION:"pagination",FILTER:"filter",SORT:"sort",ITEMS:"items",CLICK:"click"}},i=function(i){var r,e,o,c=function(n,t){var i=n.title.toUpperCase(),r=t.title.toUpperCase();return i<r?-1:i>r?1:0},l=function(n,t){var i=n.title.toUpperCase(),r=t.title.toUpperCase();return i<r?1:i>r?-1:0},a=function(n,t){var i=n.title.toUpperCase(),r=t.title.toUpperCase();return i<r?-1:i>r?1:0},v=function(){var n,t,i;return r.filteredItems.length>0&&(n=r.filteredItems.concat(),t=r.paginationSortState?r.paginationSortState.value:r.textSortAz,t===r.textSortFeatured&&(n=n.sort(a)),n=t===r.textSortZa?n.sort(l):n.sort(c),typeof r.paginationState.itemsPerPage=="number"&&r.paginationState.itemsPerPage>0)?(i=function(n,t,i){var u=Math.floor(i/r.paginationState.itemsPerPage);return n[u]||(n[u]=[]),n[u].push(t),n},n.map(function(n,t){return{order:t+1,itemId:n.id}}).reduce(i,[])):[]},y=function(n,t){return n+t.value.length},p=function(){return r.filtersState?r.filtersState.concat().reduce(y,0):0},w=function(){var n={};r.filtersState.forEach(function(t){t.value.length>0&&(n[t.name]=t.value)});r.filteredItems=r.paginationItemsState.items.concat().filter(function(t){return coned.utils.hasMatchingRecord(t.categories,n)})},u=function(t){if(r.isSetedFilters&&r.isSetedItems&&r.isSetedPagination&&r.paginationState&&r.filtersState&&r.paginationItemsState&&r.isSetedSort&&r.paginationSortState){var i=p();i===0?(r.filteredItems=r.paginationItemsState.items.concat(),r.$buttonClear&&(coned.utils.setAriaHidden(r.$buttonClear,!0),r.$buttonClear.blur()),r.$buttonSrClear&&(coned.utils.setAriaHidden(r.$buttonSrClear,!0),r.$buttonClear.blur()),r.$spanFilterCount&&r.spanFilterCountHTML&&(r.$spanFilterCount.innerHTML=r.spanFilterCountHTML),r.$clearCount&&r.clearCountHTML&&(r.$clearCount.innerHTML=r.clearCountHTML)):(r.$buttonClear&&coned.utils.setAriaHidden(r.$buttonClear,!1),r.$buttonSrClear&&coned.utils.setAriaHidden(r.$buttonSrClear,!1),r.$spanFilterCount&&r.spanFilterCountHTML&&(r.$spanFilterCount.innerHTML=r.spanFilterCountHTML+" ("+i+")"),r.$clearCount&&r.clearCountHTML&&(r.$clearCount.innerHTML=r.clearCountHTML+" ("+i+")"),w());(t===n.EVENTS.FILTER||t===n.EVENTS.SORT||r.paginationState.totalItems!==r.filteredItems.length)&&(r.paginationState.totalItems=r.filteredItems.length,r.paginationState.currentPage=1,r.paginationState.canScroll=!1,coned.utils.triggerEvent(r.$pagination,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,r.paginationState));t===n.EVENTS.PAGINATION&&(r.paginationItemsState.pagination=r.paginationState,r.paginationItemsState.sortedPages=v(),r.$paginationItems&&coned.utils.triggerEvent(r.$paginationItems,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,r.paginationItemsState))}},b=function(t){t.detail.isSeted?(r.isSetedPagination=!0,r.paginationState=t.detail,r.$paginationInformation&&coned.utils.triggerEvent(r.$paginationInformation,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,r.paginationState),r.$paginationInformationMobile&&(r.$paginationInformationMobile.innerHTML=r.paginationState.totalItems+n.VALUES.RESULTS),u(n.EVENTS.PAGINATION)):(r.paginationState=t.detail,r.paginationState.isSeted=!0,r.paginationState.$srLive=r.$srLive,coned.utils.triggerEvent(r.$pagination,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,r.paginationState))},k=function(t){t.detail.isSeted||(r.paginationItemsState=t.detail,r.paginationItemsState.isSeted=!0,coned.utils.triggerEvent(r.$paginationItems,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,r.paginationItemsState),r.isSetedItems=!0,u(n.EVENTS.ITEMS))},s=function(t){var i=t.target||t.currentTarget,f=i instanceof HTMLElement&&i.classList.contains(n.SELECTORS.PAGINATION_SORT_MOBILE);r.isSetedSort||(r.isSetedSort=!0);r.paginationSortState=t.detail;f?r.modal.open&&coned.utils.triggerEvent(r.$paginationSort,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,{value:t.detail.value===n.VALUES.SORT_AZ?"":t.detail.value}):(u(n.EVENTS.SORT),r.modal.open||coned.utils.triggerEvent(r.$paginationSortMobile,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,{value:t.detail.value===""?n.VALUES.SORT_AZ:t.detail.value}))},d=function(t){var c=t.detail.name.includes(n.VALUES.MOBILE_NAME),o=window.innerWidth<n.VALUES.DESKTOP_BREAKPOINT,i=t.detail.name.replace(n.VALUES.MOBILE_NAME,n.VALUES.EMPTY),l=i+n.VALUES.MOBILE_NAME,s,h,f,e;c?o&&r.$filters&&r.isSetedFilters&&(e=r.$filters.find(function(n){return n.dataset.name===i}),e&&coned.utils.triggerEvent(e,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,{value:t.detail.value})):(r.isSetedFilters?(h=r.filtersState.concat().map(function(n){return n.name===t.detail.name?{name:t.detail.name,value:t.detail.value}:n}),r.filtersState=h.concat()):(s=r.filtersState.indexOf(function(n){return n.name===i}),s===-1&&r.filtersState.push({name:t.detail.name,value:t.detail.value})),r.isSetedFilters=r.$filters.length-r.filtersState.length===r.filtersState.length,r.isSetedFilters&&!r.isHandledFilterState&&u(n.EVENTS.FILTER),!o&&r.$filters&&(f=r.$filters.find(function(n){return n.dataset.name===l}),f&&coned.utils.triggerEvent(f,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,{value:t.detail.value})))},f=function(t){var i=t.currentTarget||t.target,o,u,f,e;i instanceof HTMLButtonElement&&!i.classList.contains(n.SELECTORS.BUTTON_CLEAR_MOBILE)&&(o=i.classList.contains(n.CLASSES.FOCUS_VISIBLE),u=coned.utils.getNextPrevFocus({order:o?"prev":"next"}),u&&(i.blur(),u.focus(),r.$srLive&&(f=i.textContent,e=u.textContent,u.getAttribute(coned.constants.ARIA.LABEL)&&(e=u.getAttribute(coned.constants.ARIA.LABEL)+n.VALUES.EMPTY+e),i.getAttribute(coned.constants.ARIA.LABEL)&&(f=i.getAttribute(coned.constants.ARIA.LABEL)+n.VALUES.EMPTY+f),coned.utils.triggerEvent(r.$srLive,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,{valueKey:n.VALUES.CHANGE_FOCUS_KEY,formatValues:[f,e]}))),coned.utils.setAriaHidden(i,!0));r.isHandledFilterState=!0;r.$filters.forEach(function(n,t){t+1===r.$filters.length&&(r.isHandledFilterState=!1);coned.utils.triggerEvent(n,coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,{value:[]})})},h=function(t){r.$modalFooter&&(t?r.$modalFooter.classList.contains(n.CLASSES.FOOTER_MOBILE_SHOW)||r.$modalFooter.classList.add(n.CLASSES.FOOTER_MOBILE_SHOW):r.$modalFooter.classList.contains(n.CLASSES.FOOTER_MOBILE_SHOW)&&r.$modalFooter.classList.remove(n.CLASSES.FOOTER_MOBILE_SHOW))},g=function(n){r.modal=n.detail;setTimeout(function(){r.modal.open?h(!0):h(!1)},400)},nt=function(n){r.srLiveState=n.detail},tt=function(){dataLayer.push({page_title:document.title,page_url:window.location.href})},it=function(t){var i=t.currentTarget,u=query.selectParentElement(i,n.SELECTORS.FILTERS),r=u.getElementsByClassName(n.SELECTORS.FILTERS_HEADER)[0],f=r&&r.innerText,e=i.getElementsByClassName(n.SELECTORS.CHECKBOX)[0];dataLayer.push({filter_name:f,filter_value:e.value})},rt=function(){r={$pagination:i.getElementsByClassName(n.SELECTORS.PAGINATION)[0],$paginationInformation:i.getElementsByClassName(n.SELECTORS.PAGINATION_INFORMATION)[0],$paginationInformationMobile:i.getElementsByClassName(n.SELECTORS.PAGINATION_INFORMATION_MOBILE)[0],$paginationItems:i.getElementsByClassName(n.SELECTORS.PAGINATION_ITEMS)[0],$filters:coned.utils.arrayFrom(i.getElementsByClassName(n.SELECTORS.FILTERS)),$paginationSort:i.getElementsByClassName(n.SELECTORS.PAGINATION_SORT)[0],$paginationSortMobile:i.getElementsByClassName(n.SELECTORS.PAGINATION_SORT_MOBILE)[0],$modal:i.getElementsByClassName(n.SELECTORS.MODAL)[0],$modalFooter:i.getElementsByClassName(n.SELECTORS.MODAL_FOOTER)[0],filtersState:[],isSetedSort:!1,isSetedFilters:!1,isSetedPagination:!1,isSetedItems:!1,isHandledFilterState:!1,modal:{open:!1},$buttonClear:i.getElementsByClassName(n.SELECTORS.BUTTON_CLEAR)[0],$buttonSrClear:i.getElementsByClassName(n.SELECTORS.BUTTON_SR_CLEAR)[0],$buttonClearMobile:i.getElementsByClassName(n.SELECTORS.BUTTON_CLEAR_MOBILE)[0],$spanFilterCount:i.getElementsByClassName(n.SELECTORS.FILTER_COUNT)[0],$clearCount:i.getElementsByClassName(n.SELECTORS.CLEAR_COUNT)[0],$srLive:i.getElementsByClassName(n.SELECTORS.SR_LIVE)[0],textSortAz:typeof i.dataset.textSortAz=="string"?i.dataset.textSortAz:n.VALUES.SORT_AZ,textSortZa:typeof i.dataset.textSortZa=="string"?i.dataset.textSortZa:n.VALUES.SORT_ZA,textSortFeatured:typeof i.dataset.textSortFeatured=="string"?i.dataset.textSortFeatured:n.VALUES.SORT_FEATURED};r.$spanFilterCount&&(r.spanFilterCountHTML=r.$spanFilterCount.innerHTML);r.$clearCount&&(r.clearCountHTML=r.$clearCount.innerHTML);e=document.getElementsByClassName(n.SELECTORS.RESULT_CTA);o=document.getElementsByClassName(n.SELECTORS.FILTERS_OPTIONS)},ut=function(){r.$pagination&&r.$pagination.addEventListener(coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,b);r.$paginationItems&&r.$paginationItems.addEventListener(coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,k);r.$paginationSort&&r.$paginationSort.addEventListener(coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,s);r.$paginationSortMobile&&r.$paginationSortMobile.addEventListener(coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,s);r.$filters&&Array.isArray(r.$filters)&&r.$filters.forEach(function(n){n.addEventListener(coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,d)});r.$buttonClear&&r.$buttonClear.addEventListener("click",f);r.$buttonSrClear&&r.$buttonSrClear.addEventListener("click",f);r.$buttonClearMobile&&r.$buttonClearMobile.addEventListener("click",f);r.$modal&&r.$modal.addEventListener(coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,g);r.$srLive&&r.$srLive.addEventListener(coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,nt);Array.from(e).forEach(function(t){t.addEventListener(n.EVENTS.CLICK,tt)});Array.from(o).forEach(function(t){t.addEventListener(n.EVENTS.CLICK,it)})},ft=function(){rt();ut();t=!0};ft()};return i.prototype.isLoaded=function(){return t},i}();coned=coned||{};coned.components=coned.components||{};coned.components.ResultProgram=function(){var n={BODY_CLASS:"js-body",PROGRAM_SELECT:"js-program",CLOSE_PROGRAM_SELECT:"js-close-program",HIDDEN_CLASS:"hidden",DATA_ATRIBUTE_LABEL:"data-program-label",DATA_PROGRAM_ATRIBUTE:"data-program",PROGRAM_ARROW:"program__tile-arrow",PROGRAM_DETAILS:"program__details",ROTATE_CLASS:"financial-advisor-result--rotate",KEY_PRESSED:"",OPEN_CARD_EVENT:"FA.open.card",FINANCIAL_ADVISOR_TAGGING:"FA."},t=!1,i=function(i){var r,u,f,o=function(){r=i.getElementsByClassName(n.PROGRAM_SELECT);u=document.getElementsByClassName(n.PROGRAM_DETAILS);f=document.getElementsByClassName(n.PROGRAM_ARROW)},s=function(){Array.from(r).forEach(h)},h=function(t){var u=t.getAttribute(n.DATA_ATRIBUTE_LABEL),i=t.parentElement.querySelector('[data-program="'+u+'"]'),f=t.parentElement.parentElement,e=t.getElementsByClassName(n.PROGRAM_ARROW)[0],r=i.getElementsByClassName(n.CLOSE_PROGRAM_SELECT)[0];coned.utils.addGeneralListeners(t,function(n){a(n,i,e,r)});coned.utils.addGeneralListeners(r,function(n){c(n,t,i,f)})},c=function(t,i,r){t.preventDefault();r.classList.add(n.HIDDEN_CLASS);e();i.focus()},e=function(){Array.from(f).forEach(function(t){t.classList.remove(n.ROTATE_CLASS)})},l=function(){Array.from(u).forEach(function(t){t.classList.contains(n.HIDDEN_CLASS)||t.classList.add(n.HIDDEN_CLASS)});e()},a=function(t,i,r,u){var f=i.getAttribute(n.DATA_PROGRAM_ATRIBUTE),e=n.FINANCIAL_ADVISOR_TAGGING+f.replaceAll(" ","_");if(t.preventDefault(),!i.classList.contains(n.HIDDEN_CLASS)){i.classList.add(n.HIDDEN_CLASS);r.classList.remove(n.ROTATE_CLASS);return}l();i.classList.remove(n.HIDDEN_CLASS);r.classList.add(n.ROTATE_CLASS);t.pointerType==n.KEY_PRESSED&&u.focus();dataLayer.push({event:n.OPEN_CARD_EVENT,programName:e})},v=function(){o();s();t=!0};v()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ProgressInPlanBar=function(){var n={PROGRESS_BAR_SELECTOR:"js-progress-plan-bar",PROGRESS_ELEMENT_CLASS:"overview-bill-analysis__progress-plan-element",PROGRESS_ELEMENT_BAR_CLASS:"overview-bill-analysis__progress-plan-bar",PROGRESS_ELEMENT_BAR_PROGRESSED_MODIFIER:"overview-bill-analysis__progress-plan-bar--progressed",PROGRESS_ELEMENT_BAR_SELECTED_MODIFIER:"overview-bill-analysis__progress-plan-bar--selected",PROGRESS_ELEMENT_PARAGRAPH_CLASS:"overview-bill-analysis__progress-plan-paragraph",PROGRESS_ELEMENT_SPAN_CURRENT_CLASS:"analysis-column__service-icon analysis-column__service-icon--check icon-check-status",LIST_ELEMENT:"li",PARAGRAPH_ELEMENT:"p",SPAN_ELEMENT:"span",DIV_ELEMENT:"div"},t=!1,i=function(i){var r,u,f=function(){var e,t,o,s,f;if(!isNaN(r))for(r=parseInt(r),f=1;f<=u;f++)e=document.createElement(n.LIST_ELEMENT),e.classList.add(n.PROGRESS_ELEMENT_CLASS),t=document.createElement(n.DIV_ELEMENT),t.classList.add(n.PROGRESS_ELEMENT_BAR_CLASS),o=document.createElement(n.PARAGRAPH_ELEMENT),o.classList.add(n.PROGRESS_ELEMENT_PARAGRAPH_CLASS),o.innerHTML=f,f<r?t.classList.add(n.PROGRESS_ELEMENT_BAR_PROGRESSED_MODIFIER):r==f&&(s=document.createElement(n.SPAN_ELEMENT),s.className=n.PROGRESS_ELEMENT_SPAN_CURRENT_CLASS,t.classList.add(n.PROGRESS_ELEMENT_BAR_SELECTED_MODIFIER),t.appendChild(s)),e.appendChild(t),e.appendChild(o),i.appendChild(e)},e=function(){r=i.dataset.currentMonth;u=i.dataset.monthsCount},o=function(){f()},s=function(){e();o();t=!0};s()};return i.prototype.isLoaded=function(){return t},i}();coned=coned||{};coned.components=coned.components||{};coned.components.RadioGroup=function(){var t=!1,n={ORDER:{NEXT:"next",PREV:"prev"},SELECTORS:{RADIO:"js-coned-radio"}},i=function(i){var u,r,f=function(n){if(r.options&&r.$inputs){u.value=r.options.includes(n.detail.value)?n.detail.value:r.default?r.default:"";var t=r.$inputs.find(function(t){return t instanceof HTMLInputElement&&t.value===n.detail.value});t&&t.click()}},e=function(){r.$inputs.forEach(function(n){n instanceof HTMLInputElement&&(n.setAttribute(coned.constants.ARIA.CHECKED,n.checked?coned.constants.TRUE:coned.constants.FALSE),n.checked&&(u.value=n.value,r.selected=n.value,r.$selected=n,coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,u)))})},o=function(t){var f=document.activeElement,u;if(r.$inputs.includes(f)){u=null;switch(t.key){case coned.constants.KEYBOARD_CODE.DOWN:case coned.constants.KEYBOARD_CODE.RIGHT:t.stopImmediatePropagation();t.preventDefault();u=coned.utils.getNextPrevFocus({order:n.ORDER.NEXT,$container:i,canLoop:!0});u&&(u.click(),u.focus());break;case coned.constants.KEYBOARD_CODE.UP:case coned.constants.KEYBOARD_CODE.LEFT:t.stopImmediatePropagation();t.preventDefault();u=coned.utils.getNextPrevFocus({order:n.ORDER.PREV,$container:i,canLoop:!0});u&&(u.click(),u.focus());break;case coned.constants.KEYBOARD_CODE.TAB:r.$inputs&&r.$inputs.length>0&&(t.stopImmediatePropagation(),t.preventDefault(),t.shiftKey?(u=coned.utils.getNextPrevFocus({order:n.ORDER.PREV,target:r.$inputs[0]}),u.focus()):(u=coned.utils.getNextPrevFocus({order:n.ORDER.NEXT,target:r.$inputs[r.$inputs.length-1]}),u.focus()))}}},s=function(n){r.$selected&&n.target!==r.$selected&&(n.preventDefault(),r.$selected.focus())},h=function(){u={name:"",value:""};r={$inputs:coned.utils.arrayFrom(i.getElementsByClassName(n.SELECTORS.RADIO)),selected:i.dataset.default?i.dataset.default:null};r.$inputs&&(r.options=[],r.$inputs.forEach(function(n,t){n instanceof HTMLInputElement&&(t===0&&(u.name=n.name),r.selected&&n.value===r.selected?(r.$selected=n,n.checked=!0,n.setAttribute(coned.constants.ARIA.CHECKED,coned.constants.TRUE),u.value=n.value):n.setAttribute(coned.constants.ARIA.CHECKED,coned.constants.FALSE),r.options.push(n.value))}),coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,u))},c=function(){r.$inputs&&r.$inputs.forEach(function(n){n.addEventListener("change",e);n.addEventListener("focusin",s)});i.addEventListener("keydown",o,{capture:!0});i.addEventListener(coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,f)},l=function(){h();c();t=!0};l()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.RealTimeDataOpower=function(){var t=!1,n={REAL_TIME_TAB_CLASS:"js-real-time-tab",BILLING_USAGE_SELECTOR:"js-billing-usage",COMPARISONS_ANALYSIS_SELECTOR:"js-comparisons-analysis",DATA_BROWSER_CONTAINER_BILLING:"js-data-browser-container-billing",DATA_BROWSER_CONTAINER_USAGE:"js-data-browser-container-usage",SIMILAR_HOMES_CONTAINER:"js-similar-homes-container",DATA_BROWSER_WIDGET_BILLING_TAG:'<opower-widget-data-browser opower-instance="billing"><\/opower-widget-data-browser>',DATA_BROWSER_WIDGET_USAGE_TAG:'<opower-widget-data-browser opower-instance="usage"><\/opower-widget-data-browser>',DATA_BROWSER_WIDGET_SIMILAR_HOMES_TAG:'<opower-widget-data-browser opower-instance="similar-homes"><\/opower-widget-data-browser>',LOAD_ENERGY_INSIGHTS:"js-load-energy-insights",LOAD_ENERGY_INSIGHTS_ERROR:"js-load-energy-insights-error",NEIGHBORS_CHART_TYPE:"neighbors",COST_CHART_TYPE:"cost",USAGE_CHART_TYPE:"usage",CAPTURE_GROUP_$1:"$1",TAB_NAV_PARAM:"ou-data-browser",TAB1_VALUE:"sectionBillingUsage-2",TAB1_KEY:"tab1",TAB3_KEY:"tab3"},i=function(i){var r,u,f,e,s,o,h=function(){var t=coned.utils.getUrlParameters(),u=n.TAB_NAV_PARAM,i=_.keys(t),r;i.includes(u)&&(r=_.filter(i,function(t){return t.includes(n.TAB_NAV_PARAM)}),t=_.omit(t,function(n,t){return r.includes(t)}),coned.utils.setUrlParameters(t))},c=function(){var t=new URLSearchParams(window.location.search);t.has(n.TAB2_KEY)||h()},l=function(t){var c=t.dataset.realTimeTab,l=["usage","neighbors"],a=l[0],h=l.includes(c)?c:a;f=i.getElementsByClassName(n.BILLING_USAGE_SELECTOR)[0];e=i.getElementsByClassName(n.COMPARISONS_ANALYSIS_SELECTOR)[0];r=i.getElementsByClassName(n.DATA_BROWSER_CONTAINER_USAGE)[0];u=i.getElementsByClassName(n.SIMILAR_HOMES_CONTAINER)[0];o=query.hasClass(s,n.LOAD_ENERGY_INSIGHTS_ERROR);o||(h===n.USAGE_CHART_TYPE&&(r&&!r.innerHTML&&(r.innerHTML=n.DATA_BROWSER_WIDGET_USAGE_TAG),f&&f.dataset.realTimeTab&&(f.dataset.realTimeTab=h)),h===n.NEIGHBORS_CHART_TYPE&&(u&&!u.innerHTML&&(u.innerHTML=n.DATA_BROWSER_WIDGET_SIMILAR_HOMES_TAG),e&&e.dataset.realTimeTab&&(e.dataset.realTimeTab=h)))},a=function(){s=document.getElementsByClassName(n.LOAD_ENERGY_INSIGHTS)[0];o=!1},v=function(){c();coned.utils.addParentListener(i,coned.utils.generalEvents(),n.REAL_TIME_TAB_CLASS,l)},y=function(){a();v();t=!0};y()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.RealTimePrices=function(){var n={START_DATE_INPUT:"js-start-date",END_DATE_INPUT:"js-end-date",SERVICE_TYPE_SELECT:"js-service-type",START_DATE_FILTER:"startDate=",END_DATE_FILTER:"endDate=",SERVICE_TYPE_FILTER:"servCode=",REAL_TIME_FORM:".js-real-time-prices-form",CONED_INPUT:"coned-input",INPUT_FILLED_CLASS:"coned-input--filled",SELECT_LABEL:"js-coned-select-label",INPUT_TEXT_SELECTOR:"js-coned-input",RESET_BUTTON:"js-reset-button"},t=!1,i=function(i){var r,u,f,e,o=function(){$(n.CONED_INPUT).bind("change keyup",function(){$(this).val()!==""?$(this).addClass(n.INPUT_FILLED_CLASS):$(this).removeClass(n.INPUT_FILLED_CLASS)})},s=function(){var t=r.value,i=u.value,o=n.START_DATE_FILTER+t,s=n.END_DATE_FILTER+i,h=f.options[f.selectedIndex],c=n.SERVICE_TYPE_FILTER+h.value,l=e+o+"&"+s+"&"+c;window.location.href=l},h=function(){e=i.dataset.redirectUrl;r=i.getElementsByClassName(n.START_DATE_INPUT)[0];u=i.getElementsByClassName(n.END_DATE_INPUT)[0];f=i.getElementsByClassName(n.SERVICE_TYPE_SELECT)[0];o()},c=function(){$("."+n.START_DATE_INPUT).on("change",function(){u.value&&$(".js-end-date").valid()});$("."+n.END_DATE_INPUT).on("change",function(){r.value&&$(".js-start-date").valid()});new coned.components.ValidateForm(n.REAL_TIME_FORM,s)},l=function(){h();c();t=!0};l()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.RealTimePricingCalculator=function(){var n={START_DATE_INPUT:"js-start-date",END_DATE_INPUT:"js-end-date",MESSAGE_WRAPPER:"js-form-messages",MESSAGE_ERROR:"js-error-message",MESSAGE_SUCCESS:"js-success-message",RTP_CALCULATOR_WRAPPER:"js-rtp-calculator-wrapper",HIDDEN_CLASS:"hidden",NONE_VALUE:"none",BLOCK_VALUE:"block",CHANGE_EVENT:"change",FORM_SUMBIT_SUCCESS_EVENT:"form-submit-success",FORM_SUMBIT_ERROR_EVENT:"form-submit-error",FORM_TRY_AGAIN_EVENT:"form-try-again"},t=!1,i=function(i){var u,f,e,o,s,r,h=function(n){var t;coned.utils.isPatternLab()?window.location.href=coned.plConstants.REAL_TIME_PRICES_DATA:(t=n&&n.details,t&&t.link&&t.link!==""?window.location.href=t.link:c())},c=function(){i.style.display=n.NONE_VALUE;s.style.display=n.NONE_VALUE;e.style.display=n.BLOCK_VALUE;o.style.display=n.BLOCK_VALUE},l=function(){u=i.getElementsByClassName(n.START_DATE_INPUT)[0];f=i.getElementsByClassName(n.END_DATE_INPUT)[0];r=document.getElementsByClassName(n.RTP_CALCULATOR_WRAPPER)[0];e=r.getElementsByClassName(n.MESSAGE_WRAPPER)[0];o=r.getElementsByClassName(n.MESSAGE_ERROR)[0];s=r.getElementsByClassName(n.MESSAGE_SUCCESS)[0]},a=function(){setTimeout(function(){coned.utils.checkInputsFilled(i)},1e3);$("."+n.START_DATE_INPUT).on(n.CHANGE_EVENT,function(){f.value&&$("."+n.END_DATE_INPUT).valid()});$("."+n.END_DATE_INPUT).on(n.CHANGE_EVENT,function(){u.value&&$("."+n.START_DATE_INPUT).valid()});i.addEventListener(n.FORM_SUMBIT_SUCCESS_EVENT,h);i.addEventListener(n.FORM_SUMBIT_ERROR_EVENT,h);coned.utils.setDatepickerStartEndDateLimit(u,0,0,-2,0,1,0);coned.utils.setDatepickerStartEndDateLimit(f,0,0,-2,0,1,0)},v=function(){l();a();t=!0};v()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.Recaptcha=function(){var t={CAPTCHA_ELEMENT_CLASS:"js-recaptcha",GOOGLE_RECAPTCHA_API_EXPLICIT_URL:"https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoadCallback&render=explicit",GOOGLE_RECAPTCHA_READY_EVENT:"onRecaptchaLoaded",SUBMIT_BUTTON:"js-submit-button",FORM_ACTIONS:"form__actions",RECAPTCHA_LOADING_ERROR_WRAPPER:"recaptcha-error-wrapper",RECAPTCHA_LOADING_ERROR:"recaptcha__loading--error"},i=!1,n=function(r,u,f,e,o){var s,c,h,y=function(n,t,i,h){var c,v,y,a;u=h?h:u;f=h?h:f;r=n||r;e=t||e||!1;c=i||i===0?i:o||o===0?o:!1;v=c||c===0?l(c):l();v!=""?(y=new FormData,a=s.getAttribute("data-verify-url"),coned.utils.isPatternLab()&&(a=coned.plConstants.CAPTCHA_FAKE_RESPONSE),query.postData(a,w,function(){},y,!1)):grecaptcha.execute()},l=function(n){return grecaptcha?n===0||n===1?grecaptcha.getResponse(n):o===0||o===1?grecaptcha.getResponse(o):grecaptcha.getResponse():null},p=function(){if(!grecaptcha)return null;grecaptcha.reset()},a=function(){f&&grecaptcha.ready(function(){grecaptcha.render(s,{"site-key":s.getAttribute("data-sitekey"),"verify-url":s.getAttribute("data-verify-url"),size:"invisible",badge:"bottomleft",callback:function(){e?f(c):f()}})})},w=function(n){if(n)e?u(r):u();else return grecaptcha.execute(),!1},b=function(){c=r;s=c.querySelector("."+t.CAPTCHA_ELEMENT_CLASS);h=r.querySelectorAll("button[type=submit]")[0]},k=function(){try{s&&grecaptcha&&a()}catch(n){d(!1)}},d=function(n){var i=0,r=5,t=setInterval(function(){try{s&&grecaptcha&&(a(),n=!0)}catch(u){coned.utils.addGeneralListeners(h,v)}finally{n?(coned.utils.removeGeneralListeners(h,v),clearInterval(t)):++i===r&&(clearInterval(t),g())}},3e3)},g=function(){var n=document.createElement("div"),i=document.createElement("span"),r=query.selectParentElement(h,t.FORM_ACTIONS);n.classList.add(t.RECAPTCHA_LOADING_ERROR_WRAPPER);i.classList.add(t.RECAPTCHA_LOADING_ERROR);i.innerHTML=coned.constants.ERROR_MESSAGE;n.appendChild(i);coned.utils.isMobile()?query.insertChildAtIndex(r,n,2):query.insertChildAtIndex(r,n,0)},v=function(n){n.preventDefault()},nt=function(){b();k();i=!0};nt();n.prototype.checkRecaptcha=y;n.prototype.getResponse=l;n.prototype.reset=p};return n.prototype.isLoaded=function(){return i},n}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.RegisterProviderValidation=function(){var n={SUBMIT_BUTTON:"js-transactional-submit-selector",SUBMIT_ANIMATION_BUTTON:"js-submit-progress-animation",FORM_CLASS_SELECTOR:".js-register-form",SUCCESS_BANNER:"js-finish-selector",ARTICLE_HEADER_CLASS:"js-article-header",SUCCESS_BANNER_TITLE:"js-success-email",HIDDEN_CLASS:"hidden",PRE_REGISTER_SITECORE_ID:"ScId",COMPANY_NAME:"companyName",FIRST_NAME:"firstName",LAST_NAME:"lastName",PHONE_NUMBER:"phoneNumber",PHONE_EXTENSION:"extension",EMAIL_ADDRESS:"emailAddress",ERROR_LABEL:"js-error-label",ERROR_MESSAGE:"js-error-message",CHECKBOX:"js-checkbox",SITECORE_ID:"ScId",COMPANY_NAME_INPUT:"js-company-name-input",FIRST_NAME_INPUT:"js-first-name-input",LAST_NAME_INPUT:"js-last-name-input",PHONE_NUMBER_INPUT:"js-phone-number-input",EMAIL_ADDRESS_INPUT:"js-email-address-input"},t=!1,i=function(i){var u,f,y,p,e,s,h,o,c,l,a,w,v,k=function(){it();var t,r=i.dataset.registerProviderService;t={ScId:query.getFormInputValue(i,n.SITECORE_ID),CompanyName:query.getFormInputValue(i,n.COMPANY_NAME),FirstName:query.getFormInputValue(i,n.FIRST_NAME),LastName:query.getFormInputValue(i,n.LAST_NAME),PhoneNumber:query.getFormInputValue(i,n.PHONE_NUMBER),PhoneExtension:query.getFormInputValue(i,n.PHONE_EXTENSION),Email:query.getFormInputValue(i,n.EMAIL_ADDRESS)};t=JSON.stringify(t);query.postData(r,d,g,t,!0)},d=function(){u.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},g=function(n){u.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);v=n},nt=function(){query.removeClass(y,n.HIDDEN_CLASS);i.classList.add(n.HIDDEN_CLASS);query.addClass(p,n.HIDDEN_CLASS);dataLayer.push({event:"green.button",gbc:"step1.5"})},tt=function(){var t=v.errorMsg?v.errorMsg:coned.constants.ERROR_MESSAGE;e.classList.remove(n.HIDDEN_CLASS);s.innerHTML=t;e.focus()},it=function(){e.classList.add(n.HIDDEN_CLASS);s.innerHTML=""},b=function(){new coned.components.SubmitAnimation(u,k,nt,tt,!1,!0)},rt=function(){w.checkRecaptcha()},r=function(){f.disabled=h.value.length===0||o.value.length===0||c.value.length===0||l.value.length===0||a.value.length===0?!0:!1},ut=function(){y=document.getElementsByClassName(n.SUCCESS_BANNER)[0];u=i.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];p=document.getElementsByClassName(n.ARTICLE_HEADER_CLASS)[0];e=i.getElementsByClassName(n.ERROR_LABEL)[0];s=i.getElementsByClassName(n.ERROR_MESSAGE)[0];f=i.getElementsByClassName(n.SUBMIT_BUTTON)[0];h=i.getElementsByClassName(n.COMPANY_NAME_INPUT)[0];o=i.getElementsByClassName(n.FIRST_NAME_INPUT)[0];c=i.getElementsByClassName(n.LAST_NAME_INPUT)[0];l=i.getElementsByClassName(n.PHONE_NUMBER_INPUT)[0];a=i.getElementsByClassName(n.EMAIL_ADDRESS_INPUT)[0]},ft=function(){new coned.components.ValidateForm(n.FORM_CLASS_SELECTOR,rt);h.addEventListener("input",r);o.addEventListener("input",r);c.addEventListener("input",r);l.addEventListener("input",r);o.addEventListener("input",r);a.addEventListener("input",r);f.disabled=!0;w=new coned.components.Recaptcha(i,b,b)},et=function(){ut();ft();t=!0};et()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.RegisterSuccess=function(){var n={REQUEST_POWER_ON_SELECTOR:"js-request-power-on",ADD_ACCOUNT_SELECTOR:"js-add-account"},t=!1,i=function(i){var r,u,f=function(){dataLayer.push({event:"registration.process",registration:"step05a"});dataLayer.push({event:"registration.step05a"})},e=function(){dataLayer.push({event:"registration.process",registration:"step05b"});dataLayer.push({event:"registration.step05b"})},o=function(){dataLayer.push({event:"registration.process",registration:"step05"});dataLayer.push({event:"registration.step05"})},s=function(){r=i.getElementsByClassName(n.REQUEST_POWER_ON_SELECTOR)[0];u=i.getElementsByClassName(n.ADD_ACCOUNT_SELECTOR)[0]},h=function(){r.addEventListener("click",f);u.addEventListener("click",e)},c=function(){s();h();o();t=!0};c()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.RegisterValidation=function(){var n={SHOW_PASSWORD_BUTTON:"js-show-password",REMEMBER_ME_COOKIE_NAME:"rememberme",PASSWORD_INPUT:"js-password-input",CONFIRM_PASSWORD_INPUT:"js-confirm-password-input",EMAIL_INPUT:"js-email-input",MESSAGE_CHARACTERS:"js-register-characters",MESSAGE_UPPERCASE:"js-register-uppercase",MESSAGE_NUMBER:"js-register-number",MESSAGE_PASSWORD:"js-register-password",SUBMIT_BUTTON:"js-transactional-submit-selector",SUBMIT_ANIMATION_BUTTON:"js-submit-progress-animation",REGISTER_FORM:"js-register-form",USERNAME_SELECTOR:"js-username-selector",ERROR_CLASS:"register__validation--error",ERROR_MESSAGE_CLASS:"coned-input-message--error",INPUT_CLASS_SELECTOR:"js-coned-input",HIDDEN_CLASS:"hidden",IGNORE_CLASS:"js-validate-ignore",SELECT_CLASS_SELECTOR:"js-coned-select",LABEL_CLASS_SELECTOR:"js-coned-label",SECURITY_QUESTION_CONTAINER:"js-question-container",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",REGISTER_SITECORE_ID:"ScId",REGISTER_USER_ID:"userId",REGISTER_MOBILE_PHONE:"mfaMobilePhone",REGISTER_VERIFICATON_BY:"verificationOption",REGISTER_PASSWORD:"registerPasword",REGISTER_QUESTION:"securityQuestion",REGISTER_ANSWER:"securityAnswer",REGISTER_VERIFICATION_CODE:"verificationCode",REGISTER_ACCESS_CODE:"accessCode",FORM_MFA_VALID:"mfa-is-valid",SET_PASSWORD_STEP:"js-set-password",SET_MULTIFACTOR_STEP:"js-set-multifactor",SUCCESS_BANNER_SINGLE:"js-finish-single",SUCCESS_BANNER_SINGLE_RETIREE:"js-finish-single-retiree",LOGIN_RETIREE_BUTTON:"js-single-retiree-link",FORM_CONTAINER_SELECTOR:"js-register-container",LOGIN_FORM_COMPONENT_NAME:"LoginFormComponent",FROM_URI_PARAMETER:"&fromURI=",CHECK_ICON:"icon-check-status",CLOSE_ICON:"icon-close",TAGGING_PAGE_LOAD:"Step04.Page.Load",TAGGING_SUBMIT:"Step04.Submit"},t=!1,i=function(i){function et(n){if(coned.utils.isPatternLab()){var t;t=coned.utils.isOru()?coned.plConstants.GET_LOGIN_ORU:coned.plConstants.GET_LOGIN;query.getData(t,function(n){n.authRedirectUrl=coned.utils.isOru()?"/?p=pages-oru-dashboard":"/?p=pages-dashboard";nt(n)},function(){setTimeout(function(){f("")},1500)})}else nt(n)}var l,r,e,w,b,k,d,a,u,g,v,s,y,o,tt=function(t){t.preventDefault();var i=this.parentNode.getElementsByClassName(n.INPUT_CLASS_SELECTOR)[0],r=i.type;r=="password"?(i.type="text",t.target.innerHTML=this.dataset.replaceText):(i.type="password",t.target.innerHTML=this.dataset.text)},h=function(t,i,r){var u,f;switch(i){case"minMax":u=/^.{8,30}$/;break;case"uppercase":u=/(?=.*[a-z])(?=.*[A-Z])/;break;case"number":u=/[0-9\s]+/;break;case"password":f=it(r,y)}return i!="password"&&(f=u.test(r)),f?(t.classList.remove(n.ERROR_CLASS),query.removeClass(t.children[0],n.CLOSE_ICON),query.addClass(t.children[0],n.CHECK_ICON)):(t.classList.add(n.ERROR_CLASS),query.removeClass(t.children[0],n.CHECK_ICON),query.addClass(t.children[0],n.CLOSE_ICON)),f},p=function(){var t=r.value,i=h(w,"minMax",t),u=h(b,"uppercase",t),f=h(k,"number",t),e=h(d,"password",t);i&&u&&f&&e?r.classList.add(n.VALID_CONFIRMATION):r.classList.remove(n.VALID_CONFIRMATION);c()},it=function(n,t){for(var e=t.length,r=!0,u,f,i=0;i+3<=e;i++)u=t.substring(i,i+3),f=n.indexOf(u),f>0&&(r=!1);return r},c=function(){var t=query.hasClass(r,n.VALID_CONFIRMATION),u=$(i).validate();a.disabled=t&&u.element(e)?!1:!0},rt=function(n){u.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS);o=n;ct();ot()},ut=function(n){u.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);o=n},ft=function(){u.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);setTimeout(function(){f("")},1500)},nt=function(t){if(t.login){if(t.noMfa){var i=o.LoginPageUrl?n.FROM_URI_PARAMETER+o.LoginPageUrl:"";window.location.href=t.noMfaRedirectUrl+i;return}dataLayer.push({isLoggedIn:"true"});window.location.href=t.authRedirectUrl;return}u.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS);setTimeout(function(){f("")},1500)},ot=function(){var u=i.dataset.loginUrl,r={LoginEmail:y,LoginPassword:query.getFormInputValue(i,n.REGISTER_PASSWORD),LoginRememberMe:!1,ReturnUrl:"",OpenIdRelayState:""},t;r=JSON.stringify(r);query.deleteCookie(n.REMEMBER_ME_COOKIE_NAME);t=new XMLHttpRequest;t.open("DELETE",i.dataset.logoutUrl);t.withCredentials=!0;t.setRequestHeader("Accept","application/json");t.send(null);query.postData(u,et,ft,r,!0)},st=function(){i.dataset.tagging&&dataLayer.push({event:i.dataset.tagging+n.TAGGING_SUBMIT});new coned.components.SubmitAnimation(u,ht,function(){},lt,!1,!1)},ht=function(){var r=i.dataset.setPasswordService,t;t={ScId:query.getFormInputValue(i,n.REGISTER_SITECORE_ID),AccessCode:query.getFormInputValue(i,n.REGISTER_ACCESS_CODE),UserId:query.getFormInputValue(i,n.REGISTER_USER_ID),Password:query.getFormInputValue(i,n.REGISTER_PASSWORD)};t=JSON.stringify(t);query.postData(r,rt,ut,t,!0)},ct=function(){dataLayer.push({event:"registration.process",registration:"step04b"});coned.utils.qualtricsTriggering(i);at();dataLayer.push({event:"registration.process",registration:"step04c"});dataLayer.push({event:"virtualPageView",virtualPageUrl:"/en/register/create-profile/set-mfa"})},lt=function(){coned.utils.isPatternLab()?query.getData(coned.plConstants.DEFAULT_SERVICE_ERROR,f,f):f(o)},f=function(t){var i=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;_.each(s,function(t){t.classList.remove(n.HIDDEN_CLASS)});_.each(v,function(n){n.innerHTML=i});s[0].focus()},at=function(){_.each(s,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(v,function(n){n.innerHTML=""})},vt=function(){l=i.getElementsByClassName(n.SHOW_PASSWORD_BUTTON);r=i.getElementsByClassName(n.PASSWORD_INPUT)[0];e=i.getElementsByClassName(n.CONFIRM_PASSWORD_INPUT)[0];w=i.getElementsByClassName(n.MESSAGE_CHARACTERS)[0];b=i.getElementsByClassName(n.MESSAGE_UPPERCASE)[0];k=i.getElementsByClassName(n.MESSAGE_NUMBER)[0];d=i.getElementsByClassName(n.MESSAGE_PASSWORD)[0];g=i.getElementsByClassName(n.USERNAME_SELECTOR)[0];u=i.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];s=i.parentNode.parentNode.getElementsByClassName(n.SERVICE_ERROR);v=i.parentNode.parentNode.getElementsByClassName(n.SERVICE_ERROR_MESSAGE);a=i.getElementsByClassName(n.SUBMIT_BUTTON)[0];y=g.dataset.username},yt=function(){for(var t=0;t<l.length;t++)coned.utils.addGeneralListeners(l[t],tt);r.addEventListener("keyup",p);e.addEventListener("keyup",c);new coned.components.ValidateForm("."+n.REGISTER_FORM,st);r.value!==""&&(r.classList.add(n.FILLED_CLASS),p(),c());e.value!==""&&(e.classList.add(n.FILLED_CLASS),p(),c());dataLayer.push({event:"registration.process",registration:"step04a"});dataLayer.push({event:"virtualPageView",virtualPageUrl:"/en/register/create-profile/set-password"});i.dataset.tagging&&dataLayer.push({event:i.dataset.tagging+n.TAGGING_PAGE_LOAD})},pt=function(){vt();yt();t=!0};pt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.RemoveAccount=function(){var n={REMOVE_ACCOUNT_LINK_SELECTOR:"js-remove-account",REMOVE_ACCOUNT_ERROR_SELECTOR:"js-remove-account-error",ERROR_TEXT_SELECTOR:"js-error-message",HIDDEN_CLASS:"hidden",FORM_LOADING:"js-form-loading",FORM_LOADING_HIDDEN_CLASS:"form-loading--hidden"},t=!1,i=function(i){var r,u,f,o=function(n){n.preventDefault();c(u);var i=r.dataset.service,t={Maid:r.dataset.maid,ScId:r.dataset.scid};t=JSON.stringify(t);query.deleteData(i,s,h,t,!0,f)},s=function(){f.classList.remove(n.FORM_LOADING_HIDDEN_CLASS);window.location.href=window.location.origin+window.location.pathname},h=function(n){if(coned.utils.isPatternLab()){var t=coned.plConstants.DELETE_STOP_SERVICE_ERROR;query.getData(t,e,function(){})}else e(n)},e=function(t){var i=u.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];u.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;u.focus()},c=function(t){t.classList.add(n.HIDDEN_CLASS)},l=function(){r=i.getElementsByClassName(n.REMOVE_ACCOUNT_LINK_SELECTOR)[0];u=document.getElementsByClassName(n.REMOVE_ACCOUNT_ERROR_SELECTOR)[0];f=document.getElementsByClassName(n.FORM_LOADING)[0]},a=function(){coned.utils.addGeneralListeners(r,o)},v=function(){l();a();t=!0};v()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ReportOutageOru=function(){var n={FORM:".js-report-outage-form",HAVE_POWER_SELECT:"js-have-power",BANNER_CONTAINER:"js-banner-container",LOCATION_STEP:"js-location",LOCATION_STEP_NO_ACCOUNTS:"js-location-no-accounts",CONTACT_STEP:"js-contact-details",FIND_ADDRESS_BUTTON:"js-lookup-button",ACCOUNT_OPTION_ACTIVE:"report-outage__account-option--active",ACCOUNT_OPTION:"js-account-option",ACCOUNT_NUMBER_INPUT:"js-number-input",ACCOUNT_NUMBER:"js-oru-account-number",ADDRESS_RECORD_CONTAINER:"js-address-record-container",ADDITIONAL_DETAILS_CONTAINER:"js-additional-details",SEARCH_BY_ADDRESS_LINK:"js-search-address-link",SUBMIT_CONTAINER:"js-submit-progress-animation",SUBMIT_CONTAINER_ACTIVE:"report-outage__animation--active",FIND_ACCOUNT_CONTAINER:"js-find-account-container",FIND_ACCOUNT_BY_NUMBER:"js-find-account-by-number",FIND_ACCOUNT_BY_ADDRESS:"js-find-by-address",FIND_BY_ADDRESS_ACCOUNT_DETAIL:"js-address-selected-detail",FIND_BY_ADDRESS_ACCOUNT_NUMBER:"js-address-masked-account-number",FIND_BY_OPTION:"js-find-by-option",FIND_BY_OPTION_ACTIVE:"js-find-by-option-active",FIND_ACCOUNT_SELECT:"js-find-account",OUTAGE_MY_ADDRESS_CHECK:"js-outage-my-address",NOT_MY_ADDRESS_WRAPPER:"js-not-my-address-wrapper",ADDRESS_LOOKUP_FORM:"js-address-lookup",AUTOCOMPLETE_ZIPCODE:"js-autocomplete-zipcode",AUTOCOMPLETE_APARMENT_UNIT:"js-autocomplete-apartment-unit",AUTOCOMPLETE_SELECTED_ADDRESS:"js-address-autocomplete-selected",ADDRESS_SELECTED_CLASS:"js-address-autocomplete-selected",ADDRESS_SELECTED_DETAIL_CLASS:"js-address-selected-detail",ADDRESS_SELECTED_MASKED_ACCOUNT_NUMBER:"js-address-masked-account-number",FORM_SUBMIT_BUTTON:"js-submit-outage",NOT_MY_ADDRESS_LINK:"js-not-my-address-link",VALID_ITEM:"js-item-validate",LOOKUP_RESULT:"js-address-lookup-result",ISSUE_TYPE_CONTAINER:"js-issue-type-container",ISSUE_TYPE_SELECTOR:"js-issue-type",SHOCK_OPTIONS:"js-shock-options",NO_PARTIAL_OPTIONS:"js-no-partial-options",ADDRESS_SELECTED:"js-dropdown-button",ADDRESS_TITLE:"address-box__container-title",ADDRESS_SUBTITLE:"address-box__container-subtitle",FULL_NAME:"js-full-name",CONTACT_NUMBER:"js-contact-number",OTHER_AFFECTED_RECEPTOR:"js-other-affected-receptor",FULL_NAME_RECEPTOR:"js-name-receptor",FINISH_REPORT_BANNER:"js-finish-report",FINISH_REPORT_TITLE:"js-success-banner-title",FINISH_REPORT_ACCOUNT:"js-account-info",FINISH_REPORT_STREET_ADDRESS:"js-street-address",FINISH_REPORT_CITY:"js-city",FINISH_REPORT_ETR_TITLE:"js-etr-title",FINISH_REPORT_CONTACT_NUMBER:"js-contact-info-number",FINISH_REPORT_BANNER_CONTAINER:"js-finish-report-container",FINISH_REPORT_BANNER_FOCUS:"js-finish-report-focus",FINISH_CHECK_OUTAGE_ERROR_MESSAGE:"js-check-outage-error-message",FINISH_CONFIRMATION_PARAGRAPHS:"js-confirmation-paragraphs",SERVICE_ISSUE_FORMS:"js-issues-forms",SERVICE_ISSUE_ACTIVE:"service-issue-active",SUCCESS_INFORMATION:"js-oru-success-information",DROPDOWN_SELECTOR:"js-coned-select",DROPDOWN_LABEL_SELECTOR:"js-coned-select-label",ACTIVE_DROPDOWN_CLASS:"coned-select--active",ACTIVE_LABEL_DROPDOWN_CLASS:"coned-select__label--active",ADITIONAL_PHONE_SELECTOR:"js-additional-phone",ADITIONAL_EMAIL_SELECTOR:"js-additional-email",INPUT_CLASS:"js-coned-input",HIDDEN_CLASS:"hidden",FORM_IGNORE_VALIDATION:"js-validate-ignore",INPUT_DISABLED:"coned-field--disabled",INPUT_FILLED_CLASS:"coned-input--filled",FORM_ACCOUNT_NUMBER:"accountNumber",FIND_BY_ACCOUNT:"account",FIND_BY_PHONE:"phone",FIND_ADDRESS:"zipcode",LOOKUP_SERVICE_ERROR:"js-lookup-service-error",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",ACCOUNT_DATA:"js-dropdown-button-contain",ACCOUNT_TITLE:"address-box__container-title",ACCOUNT_SUB_TITLE:"address-box__container-subtitle",FORM_SCID:"ScId",FORM_HAVE_POWER:"havePower",FORM_SERVICE_ISSUE:"selectServiceIssue",FORM_PHONE_NUMBER:"contactNumber",FORM_WIRE_LOCATION:"wireLocation",FORM_WIRE_LOCATION_SHOCK:"wireLocationShock",FORM_WIRE_CONDITION:"wireCondition",FORM_WIRE_CONDITION_SHOCK:"wireConditionShock",FORM_POLE_CONDITION:"poleCondition",FORM_DESCRIPTION_OTHER_POLE:"descriptionOtherPole",FORM_DESCRIPTION_OTHER_SHOCK:"descriptionOtherShock",ADDRESS_DROPDOWN_MODULE:"js-address-dropdown",ADDRESS_DROPDOWN_LIST:"js-dropdown-list",ADDRESS_DROPDOWN_LIST_ITEM:"js-dropdown-item",ADDRESS_DROPDOWN_LIST_ITEM_CLASS:"address-dropdown__list-item",ADDRESS_DROPDOWN_ITEM_CONTAIN:"js-dropdown-item-contain",ADDRESS_DROPDOWN_BOX:"address-box",ADDRESS_DROPDOWN_BOX_ITEM:"address-box--item",ADDRESS_DROPDOWN_BOX_CONTAINER:"address-box__container",ADDRESS_DROPDOWN_BOX_INFO:"address-box__info",ADDRESS_DROPDOWN_BOX_TITLE:"address-box__container-title",ADDRESS_DROPDOWN_BOX_TITLE_NON_AUTENTICATED:"address-box__container-title--non-authenticated",ADDRESS_DROPDOWN_BOX_SUBTITLE:"address-box__container-subtitle",ADDRESS_DROPDOWN_BOX_ICON:"address-dropdown__icon",ADDRESS_DROPDOWN_BOX_ICON_CHECK_CLASS:"address-dropdown__icon--check",ADDRESS_DROPDOWN_BOX_ICON_CHECK:"js-icon-check",ADDRESS_DROPDOWN_BOX_CARROT:"js-dropdown-carrot",TRANSACTIONAL_WRAPPER:"transactional__wrapper",MARGIN_BOTTOM:"transactional__wrapper--margin-bottom",NOTIFICATION_MESSAGE_PARAGRAPH:"js-notification-message",NOTIFICATION_CONTAINER_CLASS:"js-notification-container",CAPTCHA_ELEMENT_CLASS:"js-recaptcha",ACCOUNT_LOOKUP_FORM:"js-address-autocomplete-form",SYSTEM_OUT_PARAMETER:"system-out",TABINDEX:"tabindex"},t=!1,i=function(i){var oi,ir,c,v,si,f,y,st,r,p,ft,hi,et,rr,e,it,yt,pt,ci,w,o,rt,l,b,li,ai,s,vi,ut,wt,yi,k,d,g,bt,pi,ur,a,kt,fr,er,dt,ht,or,gt,wi,bi,sr,hr,nt,ni,ti,cr,ct,ki,di,lr,ar,h,tt,u,ii,ri,ui,ot=function(t,i){function f(){r.classList.toggle(n.MASK_ACTIVE)}var r=t.parentNode,u=i?i:t.offsetHeight;TweenMax.to(r,.4,{minHeight:u,onComplete:f})},vr=function(){u&&!pi?(r.classList.add(n.HIDDEN_CLASS),o.classList.remove(n.HIDDEN_CLASS),l.classList.remove(n.HIDDEN_CLASS),s.classList.remove(n.HIDDEN_CLASS),dataLayer.push({event:"coned.form.step02"})):(l.classList.add(n.SUBMIT_CONTAINER_ACTIVE),c.classList.remove(n.HIDDEN_CLASS),r.classList.remove(n.HIDDEN_CLASS))},yr=function(n){n.scrollIntoView(!0);var t=window.pageYOffset;t&&window.scroll(0,t-100)},pr=function(){var n=$(i).valid();n&&new coned.components.SubmitAnimation(l,wr,br,kr,!1,!0)},wr=function(){var c=i.dataset.serviceUrl,l=k.getElementsByClassName(n.ACCOUNT_DATA)[0],r=ii?nt.getResponse():null,a=null,t,f,e,o,s,h;u&&(b.checked||(c=i.dataset.serviceUaUrl));g.classList.add(n.HIDDEN_CLASS);a=u?b.checked?l.dataset.accountMaid:st.dataset.maid:l.dataset.accountMaid;query.hasClass(wt,n.HIDDEN_CLASS)?(f=query.getFormInputValue(i,n.FORM_WIRE_LOCATION),e=query.getFormInputValue(i,n.FORM_WIRE_CONDITION),h=query.getFormInputValue(i,n.FORM_DESCRIPTION_OTHER_POLE),o=query.getFormInputValue(i,n.FORM_HAVE_POWER),s=query.getFormInputValue(i,n.FORM_POLE_CONDITION)):(f=query.getFormInputValue(i,n.FORM_WIRE_LOCATION_SHOCK),e=query.getFormInputValue(i,n.FORM_WIRE_CONDITION_SHOCK),h=query.getFormInputValue(i,n.FORM_DESCRIPTION_OTHER_SHOCK),o=query.getFormInputValue(i,n.FORM_SERVICE_ISSUE),s="");t={ScId:query.getFormInputValue(i,n.FORM_SCID),Maid:a,HavePower:o,ContactName:"",PhoneNumber:query.getFormInputValue(i,n.FORM_PHONE_NUMBER),WireLocation:f,WireCondition:e,PoleCondition:s,DescriptionOther:h,Alorica:i.dataset.alorica,CheckoutageScId:i.dataset.checkoutageScid};ii&&r&&r!==""&&(t.Verify=r);t=JSON.stringify(t);coned.utils.isPatternLab()&&u?query.getData(coned.plConstants.GET_NOTIFICATION_MESSAGE,dr,fi):query.postData(c,dr,fi,t,!0)},br=function(){if(coned.utils.isPatternLab()){var n=Boolean(i.dataset.checkOutageError);n?tt=query.getData(coned.plConstants.GET_REPORT_OUTAGE_CONFIRMATION_CHECK_OUTAGE_ERROR,gi,fi):query.getData(coned.plConstants.GET_OUTAGE_STATUS_SINGLE,gi,fi)}else gi(tt)},gi=function(t){var o,s,h;i.classList.add(n.HIDDEN_CLASS);var r=i.getElementsByClassName(n.ADDRESS_SELECTED)[0],f="",e="";u?b&&b.checked?(f=r.getElementsByClassName(n.ADDRESS_TITLE)[0].innerHTML,e=r.getElementsByClassName(n.ADDRESS_SUBTITLE)[0].innerHTML):(f=st.dataset.addressLine1,e=st.dataset.addressLine2):(o=r.getElementsByClassName(n.ACCOUNT_DATA)[0],ni=o.dataset.lastDigitsAccountNumber,ti=o.dataset.street.substr(0,parseInt(i.dataset.streetAddressLength)));s=bt.value.trim();h=t.OutageJobStatusLongText;a.classList.remove(n.HIDDEN_CLASS);fr.classList.remove(n.HIDDEN_CLASS);dataLayer.push({event:"coned.form.success"});coned.utils.qualtricsTriggering(i);t.ErrorOnCheckOutage?(bi.classList.add(n.HIDDEN_CLASS),wi.classList.remove(n.HIDDEN_CLASS)):(bi.classList.remove(n.HIDDEN_CLASS),wi.classList.add(n.HIDDEN_CLASS),er.innerHTML="<b>"+h+"<\/b>");u?(dt.classList.add(n.HIDDEN_CLASS),or.classList.add(n.HIDDEN_CLASS),ht.innerHTML=ht.innerHTML.replace("{{ADDRESS}}","<b>"+f+" "+e+"<\/b>")):(dt.innerHTML=dt.innerHTML.replace("{{ACCOUNT}}","<b>"+ni+"<\/b>"),ht.innerHTML=ht.innerHTML.replace("{{ADDRESS}}","<b>"+ti+"<\/b>"));s?gt.innerHTML=gt.innerHTML.replace("{{NUMBER}}","<b>"+s+"<\/b>"):gt.classList.add(n.HIDDEN_CLASS);kt.focus()},kr=function(){var t=g.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];g.classList.remove(n.HIDDEN_CLASS);t.innerHTML=tt&&tt.errorMsg?tt.errorMsg:coned.constants.ERROR_MESSAGE;g.focus();l.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS)},dr=function(n){tt=coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_REPORT_OUTAGE_CONFIRMATION_SUCCESS,uu,!1):n;l.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},uu=function(n){tt=n},fi=function(n){tt=n;l.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS)},fu=function(){var t=this.options[ut.selectedIndex].value;ut.classList.add(n.SERVICE_ISSUE_ACTIVE);t===lr||t===ar?(c.classList.remove(n.HIDDEN_CLASS),r.classList.remove(n.HIDDEN_CLASS),s.classList.add(n.HIDDEN_CLASS),u&&(b.checked?k.classList.remove(n.HIDDEN_CLASS):f.classList.remove(n.HIDDEN_CLASS)),query.hasClass(yt,n.HIDDEN_CLASS)||lt("show"),nr(),vr(),dataLayer.push({event:"coned.form.step01"})):(c.classList.add(n.HIDDEN_CLASS),s.classList.add(n.HIDDEN_CLASS),r.classList.add(n.HIDDEN_CLASS),o.classList.add(n.HIDDEN_CLASS),window.open(t))},eu=function(){return query.getInputValue(i,n.FORM_SERVICE_ISSUE)},lt=function(t){t==="show"?(query.removeClass(s,n.HIDDEN_CLASS),query.removeClass(o,n.HIDDEN_CLASS)):t==="hide"&&(query.addClass(s,n.HIDDEN_CLASS),query.addClass(o,n.HIDDEN_CLASS))},nr=function(t){var i,f;t!==undefined&&t.preventDefault();i=c.getElementsByClassName(n.ACCOUNT_OPTION);r.classList.add(n.HIDDEN_CLASS);(!u||pi)&&(f=y.getElementsByClassName(n.INPUT_CLASS),v.disabled=!1,at(v),ct===ki||ct===di?ui&&iu()?lt("show"):lt("hide"):ui&&eu()&&iu()?lt("show"):lt("hide"),r.classList.remove(n.HIDDEN_CLASS),y.style.display="flex",y.classList.add(n.FIND_BY_OPTION_ACTIVE),w.classList.add(n.HIDDEN_CLASS),_.each(f,function(t){var i=t.parentNode;i.classList.remove(n.INPUT_DISABLED);t.classList.remove(n.INPUT_FILLED_CLASS);t.disabled=!1}),ot(w));t&&yr(c);u||w.classList.add(n.HIDDEN_CLASS);l.classList.remove(n.SUBMIT_CONTAINER_ACTIVE);r.classList.add(n.SUBMIT_CONTAINER_ACTIVE);_.each(i,function(t){t.getElementsByClassName(n.INPUT_CLASS)[0].value="";t.classList.add(n.HIDDEN_CLASS);t.classList.remove(n.ACCOUNT_OPTION_ACTIVE)});ou()},ou=function(){var t=s.getElementsByClassName(n.DROPDOWN_SELECTOR);_.each(t,function(n){at(n)});bt.value="";bt.classList.remove(n.INPUT_FILLED_CLASS)},at=function(t){var i=t.parentNode.getElementsByClassName(n.DROPDOWN_LABEL_SELECTOR)[0];i.style="";t.style="";t.selectedIndex=0;t.classList.remove(n.ACTIVE_DROPDOWN_CLASS)},vt=function(t,i){i=i||!1;var r=si.getElementsByClassName(n.INPUT_CLASS),u=si.getElementsByClassName(n.DROPDOWN_SELECTOR);t?(_.each(r,function(t){t.parentNode.classList.add(n.INPUT_DISABLED_CLASS);t.disabled=!0}),_.each(u,function(n){n.disabled=!0})):(_.each(u,function(n){n.disabled=!1;i||at(n)}),_.each(r,function(t){t.parentNode.classList.remove(n.INPUT_DISABLED_CLASS);t.disabled=!1}))},tr=function(t){t.preventDefault();ft=i.getElementsByClassName(n.ACCOUNT_OPTION_ACTIVE)[0];s.classList.add(n.HIDDEN_CLASS);o.classList.add(n.HIDDEN_CLASS);d.classList.add(n.HIDDEN_CLASS);r.classList.remove(n.ERROR_SERVICE_RESPONSE_CLASS);r.classList.remove(n.SUCCESS_SERVICE_RESPONSE_CLASS);r.classList.remove(n.HIDDEN_CLASS);yt.classList.add(n.HIDDEN_CLASS);var f=$(i).valid();f&&(u||(ft?vt(!0):vt()),new coned.components.SubmitAnimation(r,su,cu,gr,!1))},su=function(){var h=i.dataset.lookAccountService,c=i.dataset.notFoundAccountMessage,l=i.dataset.createOutageNotAllowedMessage,s=query.getFormInputValue(i,n.FORM_ACCOUNT_NUMBER),a=i.dataset.filterByCreateOutage?i.dataset.filterByCreateOutage:!1,y=pt.dataset.maid,t,r,f,o;u||ft&&(o=ft.getElementsByClassName(n.INPUT_CLASS)[0],f=o.value,query.hasClass(o,n.ACCOUNT_NUMBER)?(f="",r=n.FIND_BY_ACCOUNT):r=n.FIND_BY_PHONE);(s===""&&e&&e.value||u)&&(r=n.FIND_ADDRESS,f="");t={ScId:query.getFormInputValue(i,n.FORM_SCID),AccountNumber:s,AccountMaid:y,PhoneNumber:f,FindBy:r,FiltertByAllowCreateOutage:a,Borough:query.getFormInputValue(i,n.FORM_BOROUGH),NotFoundAccountMessage:c,CreateOutageNotAllowedMessage:l};coned.utils.isPatternLab()?u?query.getData(coned.plConstants.GET_LOOKUP_ACCOUNT,ei,function(){}):v.options[v.selectedIndex].value==n.FIND_BY_PHONE?query.getData(coned.plConstants.GET_LOOKUP_ACCOUNTS,ei,function(){}):query.getData(coned.plConstants.GET_LOOKUP_ACCOUNT,ei,function(){}):(t=JSON.stringify(t),query.postData(h,ei,hu,t,!0))},ei=function(n){h=n;r.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS);rt.disabled=!1},hu=function(n){h=n;r.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);rt.disabled=!0},gr=function(t){var u=d.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];u.innerHTML=t?i.dataset.lookByPhoneError:h&&h.errorMsg?h.errorMsg:coned.constants.ERROR_MESSAGE;d.classList.remove(n.HIDDEN_CLASS);r.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);d.focus();vt()},cu=function(){var f=query.hasClass(i,n.FIND_BY_PHONE),t;if(f&&h.Accounts.length>1){gr(!0);return}h.Accounts.length&&(r.classList.remove(n.HIDDEN_CLASS),l.classList.add(n.HIDDEN_CLASS),o.classList.remove(n.HIDDEN_CLASS),l.classList.remove(n.HIDDEN_CLASS),rt.classList.remove(n.HIDDEN_CLASS),r.classList.add(n.HIDDEN_CLASS),dataLayer.push({event:"coned.form.step02"}),ft?u?(k.classList.remove(n.HIDDEN_CLASS),ot(w)):(w.classList.remove(n.HIDDEN_CLASS),ot(w)):u||w.classList.add(n.HIDDEN_CLASS),s.classList.remove(n.HIDDEN_CLASS),u?b.checked?nu(h):(t=pt.getElementsByClassName(n.ADDRESS_SELECTED_MASKED_ACCOUNT_NUMBER)[0],t.innerHTML=h.Accounts[0].AccountNumber,st.dataset.account=h.Accounts[0].AccountNumberRaw,ci.classList.remove(n.HIDDEN_CLASS)):nu(h))},nu=function(t){var y=u?k.getElementsByClassName(n.ADDRESS_DROPDOWN_LIST)[0]:i.getElementsByClassName(n.ADDRESS_DROPDOWN_LIST)[0],f,r,l,o,s,a,c,v,e;y.innerHTML="";_.each(t.Accounts,function(t){if(f=document.createElement("li"),f.classList.add(n.ADDRESS_DROPDOWN_LIST_ITEM),f.classList.add(n.ADDRESS_DROPDOWN_LIST_ITEM_CLASS),r=document.createElement("div"),r.classList.add(n.ADDRESS_DROPDOWN_BOX),r.classList.add(n.ADDRESS_DROPDOWN_BOX_ITEM),r.classList.add(n.ADDRESS_DROPDOWN_ITEM_CONTAIN),r.dataset.account=t.AccountNumberRaw,r.dataset.accountMaid=t.MaskedAccountNumber?t.MaskedAccountNumber:"",u||(r.dataset.lastDigitsAccountNumber=t.AccountNumber.substr(t.AccountNumber.length-parseInt(i.dataset.accountNumberLength))),t.hasOwnProperty("ServiceAddress")&&t.ServiceAddress!==null&&(r.dataset.street=t.ServiceAddress.StreetAddress,r.dataset.city=t.ServiceAddress.City,r.dataset.state=t.ServiceAddress.State,r.dataset.zipcode=t.ServiceAddress.PostalCode,r.dataset.country=t.ServiceAddress.Country,r.dataset.address2=t.ServiceAddress.Division),r.dataset.mdac=t.MultiDwellingAccessCode,l=document.createElement("div"),l.classList.add(n.ADDRESS_DROPDOWN_BOX_CONTAINER),r.appendChild(l),o=document.createElement("div"),o.classList.add(n.ADDRESS_DROPDOWN_BOX_INFO),l.appendChild(o),s=document.createElement("p"),s.classList.add(n.ADDRESS_DROPDOWN_BOX_TITLE),u||s.classList.add(n.ADDRESS_DROPDOWN_BOX_TITLE_NON_AUTENTICATED),o.appendChild(s),a=document.createElement("p"),a.classList.add(n.ADDRESS_DROPDOWN_BOX_SUBTITLE),o.appendChild(a),u?(v=t.ServiceAddress.StreetAddress,t.ServiceAddress.UnitNumber&&t.ServiceAddress.UnitNumber.trim()!=""&&(v+=", "+t.ServiceAddress.UnitNumber),e=t.ServiceAddress.City,t.ServiceAddress.State&&(e+=", "+t.ServiceAddress.State),t.ServiceAddress.PostalCode&&(e+=" "+t.ServiceAddress.PostalCode)):(ni="<b>"+t.AccountNumber.substr(t.AccountNumber.length-parseInt(i.dataset.accountNumberLength))+"<\/b>",v=i.dataset.accountNumberMessage+ni,t.hasOwnProperty("ServiceAddress")&&t.ServiceAddress!==null?(ti="<b>"+t.ServiceAddress.StreetAddress.substr(0,parseInt(i.dataset.streetAddressLength))+"<\/b>",cr=t.ServiceAddress.City+", "+t.ServiceAddress.State,e=i.dataset.streetAddressMessage+ti+"<br>"+cr):e=i.dataset.customerNameMessage+t.CustomerName.substr(0,i.dataset.customerNameLength)),s.innerHTML=v,a.innerHTML=e,c=document.createElement("span"),c.classList.add(n.ADDRESS_DROPDOWN_BOX_ICON),c.classList.add(n.ADDRESS_DROPDOWN_BOX_ICON_CHECK_CLASS),c.classList.add(n.ADDRESS_DROPDOWN_BOX_ICON_CHECK),f.appendChild(r),f.appendChild(c),y.appendChild(f),!ft){var h=pt.getElementsByClassName(n.ADDRESS_SELECTED_MASKED_ACCOUNT_NUMBER)[0];h.innerHTML=t.AccountNumber;ci.classList.remove(n.HIDDEN_CLASS)}});u?b.checked&&tu(h):tu(h)},tu=function(t){var e=u?k.getElementsByClassName(n.ADDRESS_DROPDOWN_MODULE)[0]:i.getElementsByClassName(n.ADDRESS_DROPDOWN_MODULE)[0],o=e.cloneNode(!0),s=o.getElementsByClassName(n.ADDRESS_DROPDOWN_ITEM_CONTAIN)[0],f=i.getElementsByClassName(n.ADDRESS_DROPDOWN_BOX_CARROT),r;if(e.parentNode.replaceChild(o,e),new coned.components.AddressDropdown(o),s.click(),t.Accounts.length<=1)for(r=0;r<f.length;r++)f[r].classList.add(n.HIDDEN_CLASS);else for(r=0;r<f.length;r++)f[r].classList.remove(n.HIDDEN_CLASS)},lu=function(t){t.preventDefault();var i=c.getElementsByClassName(n.ACCOUNT_OPTION);_.each(i,function(t){t.classList.remove(n.ACCOUNT_OPTION_ACTIVE);t.classList.add(n.HIDDEN_CLASS)});y.classList.remove(n.FIND_BY_OPTION_ACTIVE);f.classList.add(n.FIND_BY_OPTION_ACTIVE);f.classList.remove(n.HIDDEN_CLASS);p.disabled=!0;r.classList.remove(n.HIDDEN_CLASS);y.classList.add(n.HIDDEN_CLASS);w.classList.add(n.HIDDEN_CLASS);o.classList.add(n.HIDDEN_CLASS);s.classList.add(n.HIDDEN_CLASS);g.classList.add(n.HIDDEN_CLASS);rr.value="";yr(c);ot(f);ot(w,0);vt(!0);e.value="";e.disabled=!1;e.parentNode.classList.remove(n.INPUT_DISABLED_CLASS);e.classList.remove(n.INPUT_FILLED_CLASS);query.fireEvent(e,"cleanUp");p.classList.add(n.HIDDEN_CLASS)},au=function(){var i=this.options[v.selectedIndex].value,r="js-"+i+"-number",t=c.getElementsByClassName(r)[0],u=c.getElementsByClassName(n.ACCOUNT_OPTION);_.each(u,function(t){t.classList.remove(n.ACCOUNT_OPTION_ACTIVE);t.classList.add(n.HIDDEN_CLASS);t.getElementsByClassName(n.INPUT_CLASS)[0].value=""});t.classList.add(n.ACCOUNT_OPTION_ACTIVE);t.classList.remove(n.HIDDEN_CLASS);g.classList.add(n.HIDDEN_CLASS)},iu=function(){var u=hr.getElementsByClassName(n.INPUT_CLASS),i=[],t=[],r,e=f.classList.contains(n.FIND_BY_OPTION_ACTIVE);return Array.from(u).forEach(function(n){coned.utils.isDomVisible(n)&&i.push(n)}),i.forEach(function(n){query.hasClass(n,"valid")?t.push(!0):t.push(!1)}),r=!t.includes(!1),r&&e},vu=function(){ct=this.options[oi.selectedIndex].value;ir.classList.add(n.HIDDEN_CLASS);s.classList.add(n.HIDDEN_CLASS);ut.selectedIndex=0;ut.classList.remove(n.SERVICE_ISSUE_ACTIVE);at(ut);ct===ki||ct===di?(c.classList.remove(n.HIDDEN_CLASS),vi.classList.add(n.HIDDEN_CLASS),wt.classList.add(n.HIDDEN_CLASS),yi.classList.remove(n.HIDDEN_CLASS),vr(),u||(f.classList.contains(n.FIND_BY_OPTION_ACTIVE)?(vt(!0),e.disabled=!1,e.parentNode.classList.remove(n.INPUT_DISABLED_CLASS),f.classList.remove(n.FIND_BY_OPTION_ACTIVE),f.classList.add(n.HIDDEN_CLASS)):(f.classList.add(n.HIDDEN_CLASS),ot(f)))):(f.classList.add(n.HIDDEN_CLASS),ur.classList.add(n.MARGIN_BOTTOM),c.classList.add(n.HIDDEN_CLASS),r.classList.add(n.HIDDEN_CLASS),o.classList.add(n.HIDDEN_CLASS),vi.classList.remove(n.HIDDEN_CLASS),wt.classList.remove(n.HIDDEN_CLASS),yi.classList.add(n.HIDDEN_CLASS));u||(ui?(f.classList.add(n.FIND_BY_OPTION_ACTIVE),f.classList.remove(n.HIDDEN_CLASS),y.classList.add(n.HIDDEN_CLASS),y.classList.remove(n.FIND_BY_OPTION_ACTIVE),p.classList.add(n.HIDDEN_CLASS),p.disabled=!0):(y.classList.add(n.FIND_BY_OPTION_ACTIVE),y.classList.remove(n.HIDDEN_CLASS),dataLayer.push({event:"coned.form.step01"})));v&&at(v);nr()},yu=function(){u||!ii?new coned.components.SubmitAnimation(l,wr,br,kr,!1,!0):nt&&nt.getResponse()===""?nt.checkRecaptcha():nt&&nt.getResponse()!==""&&(nt.reset(),nt.checkRecaptcha())},ru=function(){var n=$(i).validate();n.resetForm()},pu=function(){if(b.checked){_.each(li,function(t){t.classList.remove(n.HIDDEN_CLASS)});query.fireEvent(e,"cleanUp");ri&&(ri=!1);o.classList.remove(n.HIDDEN_CLASS);s.classList.remove(n.HIDDEN_CLASS);l.classList.remove(n.HIDDEN_CLASS);r.classList.add(n.HIDDEN_CLASS);f.classList.add(n.HIDDEN_CLASS);k.classList.remove(n.HIDDEN_CLASS);f.classList.remove(n.FIND_BY_OPTION_ACTIVE);p.classList.add(n.HIDDEN_CLASS);d.classList.add(n.HIDDEN_CLASS);g.classList.add(n.HIDDEN_CLASS);var t=k.getElementsByClassName(n.ACCOUNT_DATA)[0];rt.disabled=t.dataset.hasError===coned.constants.TRUE?!0:!1}else _.each(li,function(t){t.classList.add(n.HIDDEN_CLASS)}),o.classList.add(n.HIDDEN_CLASS),s.classList.add(n.HIDDEN_CLASS),k.classList.add(n.HIDDEN_CLASS),r.classList.remove(n.HIDDEN_CLASS),f.classList.remove(n.HIDDEN_CLASS),f.classList.add(n.FIND_BY_OPTION_ACTIVE),d.classList.add(n.HIDDEN_CLASS),g.classList.add(n.HIDDEN_CLASS),e.value="",e.disabled=!1,e.parentNode.classList.remove(n.INPUT_DISABLED_CLASS),p.classList.add(n.HIDDEN_CLASS),p.disabled=!0},wu=function(){oi=i.getElementsByClassName(n.HAVE_POWER_SELECT)[0];ir=document.getElementsByClassName(n.BANNER_CONTAINER)[0];c=i.getElementsByClassName(n.LOCATION_STEP)[0];pi=i.getElementsByClassName(n.LOCATION_STEP_NO_ACCOUNTS)[0];si=i.getElementsByClassName(n.FIND_ACCOUNT_CONTAINER)[0];p=document.getElementsByClassName(n.FIND_ADDRESS_BUTTON)[0];r=p.parentNode.parentNode;v=i.getElementsByClassName(n.FIND_ACCOUNT_SELECT)[0];y=i.getElementsByClassName(n.FIND_ACCOUNT_BY_NUMBER)[0];f=i.getElementsByClassName(n.FIND_ACCOUNT_BY_ADDRESS)[0];st=i.getElementsByClassName(n.FIND_BY_ADDRESS_ACCOUNT_DETAIL)[0];li=i.getElementsByClassName(n.NOT_MY_ADDRESS_WRAPPER);b=i.getElementsByClassName(n.OUTAGE_MY_ADDRESS_CHECK)[0];hi=i.getElementsByClassName(n.SEARCH_BY_ADDRESS_LINK)[0];et=i.getElementsByClassName(n.ADDRESS_LOOKUP_FORM)[0];e=et.getElementsByClassName(n.AUTOCOMPLETE_ZIPCODE)[0];yt=et.getElementsByClassName(n.AUTOCOMPLETE_SELECTED_ADDRESS)[0];it=et.getElementsByClassName(n.AUTOCOMPLETE_APARMENT_UNIT)[0];ci=et.getElementsByClassName(n.ADDRESS_SELECTED_CLASS)[0];pt=et.getElementsByClassName(n.ADDRESS_SELECTED_DETAIL_CLASS)[0];w=i.getElementsByClassName(n.ADDRESS_RECORD_CONTAINER)[0];rr=i.getElementsByClassName(n.ACCOUNT_NUMBER_INPUT)[0];o=i.getElementsByClassName(n.CONTACT_STEP)[0];rt=document.getElementsByClassName(n.FORM_SUBMIT_BUTTON)[0];l=rt.parentNode.parentNode;ai=i.getElementsByClassName(n.NOT_MY_ADDRESS_LINK)[0];s=i.getElementsByClassName(n.ADDITIONAL_DETAILS_CONTAINER)[0];vi=i.getElementsByClassName(n.ISSUE_TYPE_CONTAINER)[0];ut=i.getElementsByClassName(n.ISSUE_TYPE_SELECTOR)[0];wt=i.getElementsByClassName(n.SHOCK_OPTIONS)[0];yi=i.getElementsByClassName(n.NO_PARTIAL_OPTIONS)[0];g=i.getElementsByClassName(n.SERVICE_ERROR)[0];k=i.getElementsByClassName(n.LOOKUP_RESULT)[0];d=i.getElementsByClassName(n.LOOKUP_SERVICE_ERROR)[0];bt=i.getElementsByClassName(n.CONTACT_NUMBER)[0];ur=i.getElementsByClassName(n.TRANSACTIONAL_WRAPPER)[0];a=document.getElementsByClassName(n.FINISH_REPORT_BANNER_CONTAINER)[0];kt=a.getElementsByClassName(n.FINISH_REPORT_BANNER_FOCUS)[0];fr=a.getElementsByClassName(n.FINISH_REPORT_BANNER)[0];er=a.getElementsByClassName(n.FINISH_REPORT_ETR_TITLE)[0];dt=a.getElementsByClassName(n.FINISH_REPORT_ACCOUNT)[0];ht=a.getElementsByClassName(n.FINISH_REPORT_STREET_ADDRESS)[0];or=a.getElementsByClassName(n.FINISH_REPORT_CITY)[0];gt=a.getElementsByClassName(n.FINISH_REPORT_CONTACT_NUMBER)[0];bi=a.getElementsByClassName(n.FINISH_CONFIRMATION_PARAGRAPHS)[0];wi=a.getElementsByClassName(n.FINISH_CHECK_OUTAGE_ERROR_MESSAGE)[0];sr=document.getElementsByClassName(n.CAPTCHA_ELEMENT_CLASS);hr=i.getElementsByClassName(n.ACCOUNT_LOOKUP_FORM)[0];ki=i.dataset.powerNo;di=i.dataset.powerPartial;lr=i.dataset.shockOptionHuman;ar=i.dataset.shockOptionAnimal;u=i.dataset.userStatus;ii=sr.length;ri=!0;ui=coned.utils.isPatternLab()?coned.utils.getUrlParameterValue(n.SYSTEM_OUT_PARAMETER)?!0:!1:i.dataset.systemOut==="true"?!0:!1},bu=function(){oi.addEventListener("change",vu);ut.addEventListener("change",fu);coned.utils.addGeneralListeners(p,tr);it&&(it.addEventListener("selectedOptionEnd",tr),it.addEventListener("checkAddress",tr),it.addEventListener("inputChange",function(){$(it).valid()||(ru(),o.classList.add(n.HIDDEN_CLASS),d.classList.add(n.HIDDEN_CLASS),r.classList.remove(n.ERROR_SERVICE_RESPONSE_CLASS),r.classList.remove(n.SUCCESS_SERVICE_RESPONSE_CLASS),r.classList.remove(n.HIDDEN_CLASS))}),it.parentElement.addEventListener("resetInput",function(){query.hasClass(yt,n.HIDDEN_CLASS)||ru();ri||o.classList.add(n.HIDDEN_CLASS);d.classList.add(n.HIDDEN_CLASS);r.classList.remove(n.ERROR_SERVICE_RESPONSE_CLASS);r.classList.remove(n.SUCCESS_SERVICE_RESPONSE_CLASS);r.classList.remove(n.HIDDEN_CLASS)}));v&&v.addEventListener("change",au);ai&&coned.utils.addGeneralListeners(ai,nr);hi&&coned.utils.addGeneralListeners(hi,lu);u&&b.addEventListener("change",pu);kt&&kt.setAttribute(n.TABINDEX,"-1");new coned.components.ValidateForm(n.FORM,yu);nt=new coned.components.Recaptcha(i,pr,pr)},ku=function(){wu();bu();t=!0};ku()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ReportOutage=function(){var n={FORM:".js-report-outage-form",HAVE_POWER_SELECT:"js-have-power",TREE_WIRE_PROBLEM_CONTAINER:"js-tree-wire-problem-container",DAMAGED_WIRE_RADIO_LABEL:"js-damaged-wire-radio-label",DAMAGED_WIRE_YES_RADIO:"js-damaged-wire-yes",DAMAGED_WIRE_NO_RADIO:"js-damaged-wire-no",FIND_ACCOUNT_SELECT:"js-find-account",FIND_BY_ACCOUNT:"account",FIND_BY_PHONE:"phone",FIND_ADDRESS:"zipcode",LOCATION_STEP:"js-location",CONTACT_STEP:"js-contact-details",STEP_ACTIVE:"report-outage__step--active",ACCOUNT_OPTION_ACTIVE:"report-outage__account-option--active",ACCOUNT_OPTION:"js-account-option",ACCOUNT_NUMBER:"js-coned-account-number",BANNER_CONTAINER:"js-banner-container",SUBMIT_CONTAINER:"js-submit-progress-animation",SUBMIT_CONTAINER_ACTIVE:"report-outage__animation--active",SEARCH_BY_ADDRESS_LINK:"js-search-address-link",FIND_ACCOUNT_CONTAINER:"js-find-account-container",FIND_ACCOUNT_BY_NUMBER:"js-find-account-by-number",FIND_ACCOUNT_BY_ADDRESS:"js-find-by-address",ADDRESS_LOOKUP_FORM:"js-address-lookup",AUTOCOMPLETE_ZIPCODE:"js-autocomplete-zipcode",AUTOCOMPLETE_APARMENT_UNIT:"js-autocomplete-apartment-unit",AUTOCOMPLETE_SELECTED_ADDRESS:"js-address-autocomplete-selected",ADDRESS_SELECTED_CLASS:"js-address-autocomplete-selected",ADDRESS_SELECTED_DETAIL_CLASS:"js-address-selected-detail",ADDRESS_SELECTED_MASKED_ACCOUNT_NUMBER:"js-address-masked-account-number",ACCOUNT_NUMBER_MASKED_PART:"***********",DIM_FLICKER_RADIO_LABEL:"js-dim-flicker-radio-label",DIM_FLICKER_YES_RADIO:"js-dim-flicker-yes",DIM_FLICKER_NO_RADIO:"js-dim-flicker-no",FLICKER_LIGHTS_HIDDEN:"js-flicker-lights-hidden",FIND_ADDRESS_BUTTON:"js-lookup-button",ADDRESS_RECORD_CONTAINER:"js-address-record-container",OTHER_DETAILS_CONTAINER:"js-outage-other-details-container",NOT_MY_ADDRESS_LINK:"js-not-my-address-link",FIND_BY_OPTION:"js-find-by-option",FIND_BY_OPTION_ACTIVE:"js-find-by-option-active",ACCOUNT_NUMBER_INPUT:"js-find-number-input",MASK_ACTIVE:"report-outage__mask--active",VALID_ITEM:"js-item-validate",FORM_SUBMIT_BUTTON:"js-submit-outage",ADDRESS_SELECTED:"js-dropdown-button",ADRESS_TITLE:"address-box__container-title",ADRESS_SUBTITLE:"address-box__container-subtitle",FULL_NAME:"js-full-name",FULL_NAME_HAS_POWER:"js-full-name-has-power",CONTACT_NUMBER:"js-contact-number",CONTACT_NUMBER_HAS_POWER:"js-contact-number-has-power",NO_PARTIAL_POWER_FORM:"js-no-partial-power-form",HAS_POWER_FORM:"js-has-power-form",FINISH_REPORT_STREET_ADDRESS:"js-street-address",FINISH_REPORT_ACCOUNT:"js-account-info",FINISH_REPORT_CITY:"js-city",FINISH_REPORT_CONTACT_NAME:"js-contact-info-name",FINISH_REPORT_CONTACT_NUMBER:"js-contact-info-number",FINISH_REPORT_BANNER_CONTAINER:"js-finish-report-container",FINISH_REPORT_BANNER:"js-finish-report",FINISH_REPORT_BANNER_HAS_POWER:"js-finish-report-has-power",FINISH_REPORT_BANNER_FOCUS:"js-finish-report-focus",FINISH_REPORT_ETR:"js-etr",FINISH_REPORT_DUPLICATE:"js-duplicate-outage",FINISH_CHECK_OUTAGE_ERROR_MESSAGE:"js-check-outage-error-message",FINISH_CONFIRMATION_PARAGRAPHS:"js-confirmation-paragraphs",OUTAGE_MY_ADDRESS_CHECK:"js-outage-my-address",NOT_MY_ADDRESS_WRAPPER:"js-not-my-address-wrapper",PHONE_CALL_RADIO_BUTTON:"js-phone-call",PHONE_TEXT_RADIO_BUTTON:"js-phone-text",LOOKUP_RESULT:"js-address-lookup-result",PARTIAL_OPTIONS_CONTAINER:"js-partial-options",OTHER_AFFECTED_DESCRIPTION:"js-other-affected-description",OTHER_AFFECTED_CONTAINER:"js-others-affected-container",OTHER_AFFECTED_ALERT_CONTAINER:"js-affected-alert-container",OTHER_AFFECTED_ALERT:"js-affected-alert",OTHER_AFFECTED_ACTIVE:"report-outage__affected-container--active",OTHER_ISSUES_OPTIONS:"js-other-issue-options",OTHER_ISSUES_SELECT:"js-other-issue",OTHER_ISSUES_BANNER:"js-banner-other-issue",OTHER_AFFECTED_SELECT:"js-other-affected",WIRE_DOWN_SELECT:"js-wire-down-select",TREE_BRANCH_SELECT:"js-tree-branch-down",ISSUE_DETAILS_CONTAINER:"js-issue-details-container",DROPDOWN_LABEL_SELECTOR:"js-coned-select-label",DROPDOWN_CLASS:"js-coned-select",ACTIVE_DROPDOWN_CLASS:"coned-select--active",ACTIVE_LABEL_DROPDOWN_CLASS:"coned-select__label--active",INPUT_CLASS:"js-coned-input",HIDDEN_CLASS:"hidden",INPUT_DISABLED_CLASS:"coned-field--disabled",INPUT_FILLED_CLASS:"coned-input--filled",BOROUGH_DROPDOWN_CONTAINER:"js-borough-container",BOROUGH_DROPDOWN_SELECT:"js-borough-select",FORM_CLASS:"js-report-outage-form",FORM_ACCOUNT_NUMBER:"accountNumber",FORM_CONTACT_NAME:"fullName",FORM_CONTACT_NAME_HAS_POWER:"fullNameHasPower",FORM_PHONE_NUMBER:"contactNumber",FORM_PHONE_NUMBER_HAS_POWER:"contactNumberHasPower",FORM_WIRE_LOCATION:"wireLocation",FORM_WIRE_CONDITION:"wireTreeCondition",FORM_SPARKING_FIRE:"sparkingFire",FORM_TREE_LOCATION:"treeLocation",FORM_HAVE_POWER:"havePower",FORM_OTHERS_AFFECTED:"otherAffected",FORM_HAVE_POWER_SERVICE_ISSUE:"otherIssue",FORM_BOROUGH:"borough",FORM_FIND_BY:"findAccount",FORM_SCID:"ScId",FORM_OTHER_STREET_NUMBER:"OtherLocationStreetNumber",FORM_OTHER_STREET:"OtherLocationStreet",FORM_OTHER_BOROUGH_COUNTY:"OtherLocationBoroughCounty",LOOKUP_SERVICE_ERROR:"js-lookup-service-error",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",ADDRESS_DROPDOWN_MODULE:"js-address-dropdown",ADDRESS_DROPDOWN_LIST:"js-dropdown-list",ADDRESS_DROPDOWN_LIST_ITEM:"js-dropdown-item",ADDRESS_DROPDOWN_LIST_ITEM_CLASS:"address-dropdown__list-item",ADDRESS_DROPDOWN_ITEM_CONTAIN:"js-dropdown-item-contain",ADDRESS_DROPDOWN_BOX:"address-box",ADDRESS_DROPDOWN_BOX_ITEM:"address-box--item",ADDRESS_DROPDOWN_BOX_CONTAINER:"address-box__container",ADDRESS_DROPDOWN_BOX_INFO:"address-box__info",ADDRESS_DROPDOWN_BOX_TITLE:"address-box__container-title",ADDRESS_DROPDOWN_BOX_TITLE_NON_AUTENTICATED:"address-box__container-title--non-authenticated",ADDRESS_DROPDOWN_BOX_SUBTITLE:"address-box__container-subtitle",ADDRESS_DROPDOWN_BOX_ICON:"address-dropdown__icon",ADDRESS_DROPDOWN_BOX_ICON_CHECK_CLASS:"address-dropdown__icon--check",ADDRESS_DROPDOWN_BOX_ICON_CHECK:"js-icon-check",ADDRESS_DROPDOWN_BOX_CARROT:"js-dropdown-carrot",ACCOUNT_DATA:"js-dropdown-button-contain",WIRE_DOWN_OPTIONS:"js-wire-down-options-container",WIRE_LOCATION_OTHER_CONTAINER:"js-wire-location-other-container",HAVE_DIRECTIONS:"js-no-directions",ADDRESS_DESCRIPTION:"js-my-address-description",REQUIRED_FIELD:"required",VALID_CLASS:"valid",TRANSACTIONAL_WRAPPER:"transactional__wrapper",MARGIN_BOTTOM:"transactional__wrapper--margin-bottom",NOTIFICATION_MESSAGE_PARAGRAPH:"js-notification-message",NOTIFICATION_CONTAINER_CLASS:"js-notification-container",CELLULAR_LABEL:"js-cellular-label",LANDLINE_LABEL:"js-landline-label",CELLULAR_PHONE_TYPE:"Cellular",CAPTCHA_ELEMENT_CLASS:"js-recaptcha",UNKNOWN_VALUE:"Unknown",PARAGRAPH_TAG:"p",AFFECTED_ALERT_TITLE_CLASS:"report-outage__affected-alert-title",AFFECTED_ALERT_DESCRIPTION_CLASS:"report-outage__affected-alert-description",INPUT_MESSAGE_ERROR:"coned-input-message--error",SYSTEM_OUT_PARAMETER:"system-out",DATA_INPUT_SHOULD_START_VALIDATE:"data-input-should-start-validate",VALIDATE_SHOW_CONTACT_STEP_SELECTOR:"js-validate-show-contact-step",FORM_IGNORE_VALIDATION:":hidden",SHOW_ACTION:"show",HIDE_ACTION:"hide",EMPTY_STRING:"",TRUE_VALUE:!0,TABINDEX:"tabindex",ARIA_REQUIRED:"aria-required",ARIA_INVALID:"aria-invalid",YES_VALUE:"YES",NO_VALUE:"NO"},t=!1,i=function(i){var yi,wt,vu,at,kr,pi,dr,w,yu,tr,pu,ir,gr,h,d,nu,ei,v,bt,tu,iu,wu,b,rr,ur,wi,bu,fr,ru,uu,fu,eu,ou,su,ku,du,kt,y,o,gu,c,u,et,s,rt,oi,r,g,hu,nt,nf,er,ut,dt,or,sr,ht,a,bi,si,hi,ot,p,gt,ct,k,tf,rf,ft,ni,tt,hr,cr,uf,ti,ii,ff,ri,ui,ef,of,ci,ki,lr,ar,sf,lt,vt,li,di,vr,f,yr,ai,it,pr,cu,e=function(t,i){function f(){r.classList.toggle(n.MASK_ACTIVE)}var r=t.parentNode,u=i?i:t.offsetHeight;TweenMax.to(r,.4,{minHeight:u,onComplete:f})},ie=function(){e(y);e(s);e(wt)},wr=function(){f&&!li?st():(du.classList.add(n.SUBMIT_CONTAINER_ACTIVE),h.classList.add(n.STEP_ACTIVE));de()},hf=function(n){n.scrollIntoView(!0);var t=window.pageYOffset;t&&window.scroll(0,t-100)},cf=function(){var n=$(i).valid();n&&new coned.components.SubmitAnimation(g,lf,af,vf,!1,!0)},lu=function(t){t.preventDefault();ui=i.getElementsByClassName(n.ACCOUNT_OPTION_ACTIVE)[0];d.classList.add(n.HIDDEN_CLASS);ot.classList.add(n.HIDDEN_CLASS);r.classList.remove(n.ERROR_SERVICE_RESPONSE_CLASS);r.classList.remove(n.SUCCESS_SERVICE_RESPONSE_CLASS);r.classList.remove(n.HIDDEN_CLASS);tu.classList.add(n.HIDDEN_CLASS);o&&(o.classList.add(n.HIDDEN_CLASS),e(o,0));c&&(c.classList.add(n.HIDDEN_CLASS),e(c,0),l(u),vi(),et.classList.remove(n.OTHER_AFFECTED_ACTIVE));var f=$(i).valid();f?(ui?yt(!0):yt(),new coned.components.SubmitAnimation(r,re,ue,fe,!1)):coned.utils.focusFirstFormInputField(i,n.INPUT_MESSAGE_ERROR)},re=function(){var s=i.dataset.lookAccountService,h=i.dataset.notFoundAccountMessage,c=i.dataset.createOutageNotAllowedMessage,o=query.getFormInputValue(i,n.FORM_ACCOUNT_NUMBER),l=i.dataset.filterByCreateOutage?i.dataset.filterByCreateOutage:!1,a=iu.dataset.maid,t,r,u,e;f||ui&&(e=ui.getElementsByClassName(n.INPUT_CLASS)[0],u=e.value,query.hasClass(e,n.ACCOUNT_NUMBER)?(u="",r=n.FIND_BY_ACCOUNT):r=n.FIND_BY_PHONE);(o===""&&v&&v.value||f)&&(r=n.FIND_ADDRESS,u="");t={ScId:query.getFormInputValue(i,n.FORM_SCID),AccountNumber:o,AccountMaid:a,PhoneNumber:u,FindBy:r,FiltertByAllowCreateOutage:l,Borough:query.getFormInputValue(i,n.FORM_BOROUGH),NotFoundAccountMessage:h,CreateOutageNotAllowedMessage:c};coned.utils.isPatternLab()?f?query.getData(coned.plConstants.GET_LOOKUP_ACCOUNT,br,function(){}):w.options[w.selectedIndex].value==n.FIND_BY_PHONE?query.getData(coned.plConstants.GET_LOOKUP_ACCOUNTS,br,function(){}):query.getData(coned.plConstants.GET_LOOKUP_ACCOUNT,br,function(){}):(t=JSON.stringify(t),query.postData(s,br,ee,t,!0))},ue=function(){var s=!1,t,i;ot.classList.add(n.HIDDEN_CLASS);r.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS);r.classList.remove(n.SUBMIT_CONTAINER_ACTIVE);r.classList.add(n.HIDDEN_CLASS);bi.classList.remove(n.HIDDEN_CLASS);a.disabled=!1;u.disabled=!1;oi.disabled=!1;dataLayer.push({event:"coned.form.step02"});ui?(y.classList.remove(n.HIDDEN_CLASS),e(y),o&&(o.classList.remove(n.HIDDEN_CLASS),e(o))):o&&(o.classList.remove(n.HIDDEN_CLASS),e(o),s=!0);ki=!0;he(ai);query.hasClass(ef,coned.constants.MOUSE_USER)||(t=at.checked?a:s?o.getElementsByClassName(n.OTHER_AFFECTED_SELECT)[0]:y.getElementsByClassName(n.ADDRESS_SELECTED)[0],f||(ui?t=y.getElementsByClassName(n.ADDRESS_SELECTED)[0]:(i=ut.options[ut.selectedIndex].value,i===di?t=a:i===vr&&(t=ht))),t.focus())},fe=function(){var t=ot.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];ot.classList.remove(n.HIDDEN_CLASS);t.innerHTML=ai&&ai.errorMsg?ai.errorMsg:coned.constants.ERROR_MESSAGE;r.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);ot.focus();oi.disabled=!0;yt(!1,!0)},br=function(n){ai=n;r.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},ee=function(n){ai=n;r.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS)},oe=function(){query.hasClass(d,n.HIDDEN_CLASS)||(f||!pr?new coned.components.SubmitAnimation(g,lf,af,vf,!1,!0):lt&&lt.getResponse()===""?lt.checkRecaptcha():lt&&lt.getResponse()!==""&&(lt.reset(),lt.checkRecaptcha()))},lf=function(){var u=i.dataset.serviceUrl,r=pr?lt.getResponse():null,t,e=parseInt(i.dataset.multiDwellingCode,10);f&&(nt.checked||(u=i.dataset.serviceUaUrl));t={ScId:query.getFormInputValue(i,n.FORM_SCID),Maid:k.dataset.accountMaid,ContactName:vt?query.getFormInputValue(i,n.FORM_CONTACT_NAME_HAS_POWER):query.getFormInputValue(i,n.FORM_CONTACT_NAME),PhoneNumber:vt?query.getFormInputValue(i,n.FORM_PHONE_NUMBER_HAS_POWER):query.getFormInputValue(i,n.FORM_PHONE_NUMBER),ReceiveSMSAlerts:!1,WireLocation:query.getFormInputValue(i,n.FORM_WIRE_LOCATION),WireCondition:query.getFormInputValue(i,n.FORM_WIRE_CONDITION),SparkingOrFire:query.getFormInputValue(i,n.FORM_SPARKING_FIRE),PoleCondition:"",DescriptionOther:"",Channel:tt&&tt?tt.checked?tt.value:ni.value:"",TreeLocation:query.getFormInputValue(i,n.FORM_TREE_LOCATION),OtherLocationStreetNumber:query.getFormInputValue(i,n.FORM_OTHER_STREET_NUMBER),OtherLocationStreet:query.getFormInputValue(i,n.FORM_OTHER_STREET),OtherLocationBoroughCounty:query.getFormInputValue(i,n.FORM_OTHER_BOROUGH_COUNTY),HavePower:query.getFormInputValue(i,n.FORM_HAVE_POWER),DueToDownedOrDamagedWires:at.checked?!0:!1,OthersAffected:query.getFormInputValue(i,n.FORM_OTHERS_AFFECTED)?query.getFormInputValue(i,n.FORM_OTHERS_AFFECTED):yr>e?"":n.UNKNOWN_VALUE,DimFlicker:tr.checked?!0:!1,HavePowerServiceIssue:query.getFormInputValue(i,n.FORM_HAVE_POWER_SERVICE_ISSUE),Comment:"",PhoneExtension:"",MedicalEmergencyFlag:!0,Alorica:i.dataset.alorica,FromAccountList:nt?nt.checked:!1,CheckoutageScId:i.dataset.checkoutageScid};pr&&r&&r!==""&&(t.Verify=r);t=JSON.stringify(t);coned.utils.isPatternLab()&&f?query.getData(coned.plConstants.GET_NOTIFICATION_MESSAGE,yf,wf):query.postData(u,yf,wf,t,!0)},af=function(){var t,r,e;i.classList.add(n.HIDDEN_CLASS);t=nt&&!nt.checked?y.getElementsByClassName(n.ADDRESS_SELECTED)[0]:i.getElementsByClassName(n.ADDRESS_SELECTED)[0];var o=t.getElementsByClassName(n.ADRESS_TITLE)[0].innerHTML,s=t.getElementsByClassName(n.ADRESS_SUBTITLE)[0].innerHTML,h=u.options[u.selectedIndex].text,c=u.options[u.selectedIndex].value,l=vt?i.getElementsByClassName(n.FULL_NAME_HAS_POWER)[0].value:i.getElementsByClassName(n.FULL_NAME)[0].value,a=vt?uf.value.trim():ft.value.trim(),v=vt?document.getElementsByClassName(n.FINISH_REPORT_BANNER_HAS_POWER)[0]:document.getElementsByClassName(n.FINISH_REPORT_BANNER)[0];f||(r=t.getElementsByClassName(n.ACCOUNT_DATA)[0],lr=r.dataset.lastDigitsAccountNumber,ar=r.dataset.street.substr(0,parseInt(i.dataset.streetAddressLength)));b.classList.remove(n.HIDDEN_CLASS);v.classList.remove(n.HIDDEN_CLASS);dataLayer.push({event:"coned.form.success"});coned.utils.qualtricsTriggering(i);f?(ur.classList.add(n.HIDDEN_CLASS),bu.classList.add(n.HIDDEN_CLASS),wi.innerHTML=wi.innerHTML.replace("{{ADDRESS}}","<b>"+o+" "+s+"<\/b>")):(ur.innerHTML=ur.innerHTML.replace("{{ACCOUNT}}","<b>"+lr+"<\/b>"),wi.innerHTML=wi.innerHTML.replace("{{ADDRESS}}","<b>"+ar+"<\/b>"));c=="default"?fr.classList.add(n.HIDDEN_CLASS):fr.innerHTML=fr.innerHTML.replace("{{OTHERS}}","<b>"+h+"<\/b>");ru.innerHTML=ru.innerHTML.replace("{{NAME}}","<b>"+l+"<\/b>");uu.innerHTML=uu.innerHTML.replace("{{NUMBER}}","<b>"+a+"<\/b>");it&&(it.ErrorOnCheckOutage?(su.classList.add(n.HIDDEN_CLASS),ou.classList.remove(n.HIDDEN_CLASS)):(su.classList.remove(n.HIDDEN_CLASS),ou.classList.add(n.HIDDEN_CLASS),fu.innerHTML=fu.innerHTML.replace("{{ETR}}",it.ReportOutageETR),dataLayer.push({event:"virtualPageView",virtualPageUrl:"/en/report-outage/confirmation-etr"}),e=it.Duplicate==="true"?!0:!1,e?eu.classList.remove(n.HIDDEN_CLASS):eu.classList.add(n.HIDDEN_CLASS)));rr.focus()},vf=function(){var t=p.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];p.classList.remove(n.HIDDEN_CLASS);t.innerHTML=it&&it.errorMsg?it.errorMsg:coned.constants.ERROR_MESSAGE;p.focus();g.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS)},yf=function(n){if(coned.utils.isPatternLab()){var t=Boolean(i.dataset.checkOutageError);it=t?query.getData(coned.plConstants.GET_REPORT_OUTAGE_CONFIRMATION_CHECK_OUTAGE_ERROR,pf,!1):query.getData(coned.plConstants.GET_REPORT_OUTAGE_CONFIRMATION_SUCCESS,pf,!1)}else it=n;g.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},pf=function(n){it=n},wf=function(n){it=n;g.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS)},bf=function(){nt.checked?(_.each(hu,function(t){t.classList.remove(n.HIDDEN_CLASS)}),query.fireEvent(v,"cleanUp"),cu?cu=!1:d.classList.remove(n.HIDDEN_CLASS),g.classList.remove(n.HIDDEN_CLASS),r.classList.add(n.HIDDEN_CLASS),s.classList.add(n.HIDDEN_CLASS),er.classList.add(n.HIDDEN_CLASS),bi.classList.add(n.HIDDEN_CLASS),s.classList.remove(n.FIND_BY_OPTION_ACTIVE),ot.classList.add(n.HIDDEN_CLASS),p.classList.add(n.HIDDEN_CLASS),yt(),pt(),gi(),at.checked&&ct.classList.remove(n.HIDDEN_CLASS)):(_.each(hu,function(t){t.classList.add(n.HIDDEN_CLASS)}),d.classList.add(n.HIDDEN_CLASS),bi.classList.add(n.HIDDEN_CLASS),r.classList.remove(n.HIDDEN_CLASS),s.classList.remove(n.HIDDEN_CLASS),s.classList.add(n.FIND_BY_OPTION_ACTIVE),ct.classList.add(n.HIDDEN_CLASS),ot.classList.add(n.HIDDEN_CLASS),p.classList.add(n.HIDDEN_CLASS),yt(!0),v.value="",v.disabled=!1,v.parentNode.classList.remove(n.INPUT_DISABLED_CLASS),kt.classList.add(n.HIDDEN_CLASS),c&&c.classList.add(n.HIDDEN_CLASS))},se=function(){var r=ri.dataset.alertTitle,u=ri.dataset.alertTitleType,t=document.createElement(u);t.classList.add(n.AFFECTED_ALERT_TITLE_CLASS);t.innerText=r;var f=ri.dataset.alertDescription,e=n.PARAGRAPH_TAG,i=document.createElement(e);i.classList.add(n.AFFECTED_ALERT_DESCRIPTION_CLASS);i.innerText=f;ri.appendChild(t);ri.appendChild(i)},vi=function(){ri.innerText=""},gi=function(){var f=u.options[u.selectedIndex].value,r=ut.options[ut.selectedIndex].value,e=parseInt(k.dataset.mdac,10),o=parseInt(i.dataset.multiDwellingCode,10),s=i.dataset.othersAffectedNo,t;p.classList.add(n.HIDDEN_CLASS);e>o&&f===s&&!(r==di||r==vr)?et.classList.contains(n.OTHER_AFFECTED_ACTIVE)||(et.classList.add(n.OTHER_AFFECTED_ACTIVE),ci=!0,nr(n.HIDE_ACTION),t=setTimeout(function(){se()},500)):(vi(),et.classList.remove(n.OTHER_AFFECTED_ACTIVE),ci=!1,st());at.checked&&(t&&clearTimeout(t),vi(),et.classList.remove(n.OTHER_AFFECTED_ACTIVE),ci=!1,st())},yt=function(t,i){i=i||!1;var r=dr.getElementsByClassName(n.INPUT_CLASS),u=dr.getElementsByClassName(n.DROPDOWN_CLASS);t?(_.each(r,function(t){t.parentNode.classList.add(n.INPUT_DISABLED_CLASS);t.disabled=!0}),_.each(u,function(n){n.disabled=!0})):(_.each(u,function(n){n.disabled=!1;i||l(n)}),_.each(r,function(t){t.parentNode.classList.remove(n.INPUT_DISABLED_CLASS);t.disabled=!1}))},he=function(t){var v=f?er.getElementsByClassName(n.ADDRESS_DROPDOWN_LIST)[0]:i.getElementsByClassName(n.ADDRESS_DROPDOWN_LIST)[0],u,r,c,o,s,l,h,a,e;v.innerHTML="";_.each(t.Accounts,function(t){if(u=document.createElement("li"),u.classList.add(n.ADDRESS_DROPDOWN_LIST_ITEM),u.classList.add(n.ADDRESS_DROPDOWN_LIST_ITEM_CLASS),r=document.createElement("div"),r.classList.add(n.ADDRESS_DROPDOWN_BOX),r.classList.add(n.ADDRESS_DROPDOWN_BOX_ITEM),r.classList.add(n.ADDRESS_DROPDOWN_ITEM_CONTAIN),r.dataset.account=t.AccountNumberRaw,r.dataset.accountMaid=t.MaskedAccountNumber?t.MaskedAccountNumber:"",f||(r.dataset.lastDigitsAccountNumber=t.AccountNumber.substr(t.AccountNumber.length-parseInt(i.dataset.accountNumberLength))),t.hasOwnProperty("ServiceAddress")&&t.ServiceAddress!==null&&(r.dataset.street=t.ServiceAddress.StreetAddress,r.dataset.city=t.ServiceAddress.City,r.dataset.state=t.ServiceAddress.State,r.dataset.zipcode=t.ServiceAddress.PostalCode,r.dataset.country=t.ServiceAddress.Country,r.dataset.address2=t.ServiceAddress.Division),r.dataset.mdac=t.MultiDwellingAccessCode,r.dataset.accountType=t.AccountType,c=document.createElement("div"),c.classList.add(n.ADDRESS_DROPDOWN_BOX_CONTAINER),r.appendChild(c),o=document.createElement("div"),o.classList.add(n.ADDRESS_DROPDOWN_BOX_INFO),c.appendChild(o),s=document.createElement("p"),s.classList.add(n.ADDRESS_DROPDOWN_BOX_TITLE),f||s.classList.add(n.ADDRESS_DROPDOWN_BOX_TITLE_NON_AUTENTICATED),o.appendChild(s),l=document.createElement("p"),l.classList.add(n.ADDRESS_DROPDOWN_BOX_SUBTITLE),o.appendChild(l),f?(a=t.ServiceAddress.StreetAddress,t.ServiceAddress.UnitNumber&&t.ServiceAddress.UnitNumber.trim()!=""&&(a+=", "+t.ServiceAddress.UnitNumber),e=t.ServiceAddress.City,t.ServiceAddress.State&&(e+=", "+t.ServiceAddress.State),t.ServiceAddress.PostalCode&&(e+=" "+t.ServiceAddress.PostalCode)):(lr=t.AccountNumber.substr(t.AccountNumber.length-parseInt(i.dataset.accountNumberLength)),a=i.dataset.accountNumberMessage+lr,t.hasOwnProperty("ServiceAddress")&&t.ServiceAddress!==null?(ar=t.ServiceAddress.StreetAddress.substr(0,parseInt(i.dataset.streetAddressLength)),sf=t.ServiceAddress.City+", "+t.ServiceAddress.State,e=i.dataset.streetAddressMessage+ar+"<br>"+sf):e=i.dataset.customerNameMessage+t.CustomerName.substr(0,i.dataset.customerNameLength)),!ui){var y=iu.getElementsByClassName(n.ADDRESS_SELECTED_MASKED_ACCOUNT_NUMBER)[0];y.innerHTML=t.AccountNumber;wu.classList.remove(n.HIDDEN_CLASS)}s.innerHTML=a;l.innerHTML=e;h=document.createElement("span");h.classList.add(n.ADDRESS_DROPDOWN_BOX_ICON);h.classList.add(n.ADDRESS_DROPDOWN_BOX_ICON_CHECK_CLASS);h.classList.add(n.ADDRESS_DROPDOWN_BOX_ICON_CHECK);u.appendChild(r);u.appendChild(h);v.appendChild(u)});ce(t)},ce=function(t){var s=f?er.getElementsByClassName(n.ADDRESS_DROPDOWN_MODULE)[0]:i.getElementsByClassName(n.ADDRESS_DROPDOWN_MODULE)[0],u=s.cloneNode(!0),h=u.getElementsByClassName(n.ADDRESS_DROPDOWN_ITEM_CONTAIN)[0],e=i.getElementsByClassName(n.ADDRESS_DROPDOWN_BOX_CARROT),o,r;for(s.parentNode.replaceChild(u,s),new coned.components.AddressDropdown(u),o=u.getElementsByClassName(n.ADDRESS_DROPDOWN_LIST_ITEM),r=0;r<o.length;r++)coned.utils.addGeneralListeners(o[r],pt),coned.utils.addGeneralListeners(o[r],gi);if(h.click(),pt(),!f)if(t.Accounts.length<=1)for(r=0;r<e.length;r++)e[r].classList.add(n.HIDDEN_CLASS);else for(r=0;r<e.length;r++)e[r].classList.remove(n.HIDDEN_CLASS)},pt=function(){var o=document.getElementsByClassName(n.OTHER_AFFECTED_DESCRIPTION)[0],s=yi.options[yi.selectedIndex].value,h=i.dataset.havePowerNo,t=s===h,r=u.dataset.otherAffectedRequiredText,e=u.dataset.otherAffectedOptionalText,v=parseInt(i.dataset.multiDwellingCode,10);k=nt&&!nt.checked?y.getElementsByClassName(n.ACCOUNT_DATA)[0]:i.getElementsByClassName(n.ACCOUNT_DATA)[0];yr=k&&k.dataset&&k.dataset.mdac?k.dataset.mdac:null;yr>v&&(t&&kr.checked||!t)?(u.setAttribute(n.REQUIRED_FIELD,""),u.options[0].text=r,u.setAttribute(n.ARIA_REQUIRED,"true"),u.parentElement.children[0].innerText=r):(u.removeAttribute(n.REQUIRED_FIELD),u.options[0].text=e,u.parentElement.children[0].innerText=e,u.removeAttribute(n.ARIA_REQUIRED,"false"),$(i).validate().element(u));bi.classList.remove(n.HIDDEN_CLASS);o.classList.remove(n.HIDDEN_CLASS);f&&!li||yr?(c.classList.remove(n.HIDDEN_CLASS),(at.checked||ut.options[ut.selectedIndex].value===di)&&(l(a),a.classList.remove(n.HIDDEN_CLASS),ct.classList.remove(n.HIDDEN_CLASS))):c.classList.add(n.HIDDEN_CLASS)},le=function(t){var i;t!==undefined&&t.preventDefault();var c=h.getElementsByClassName(n.ACCOUNT_OPTION),a=h.getElementsByClassName(n.ACCOUNT_OPTION)[0],v=s.getElementsByClassName(n.DROPDOWN_CLASS);rt&&(i=rt.getElementsByClassName(n.INPUT_CLASS),w.disabled=!1,w.selectedIndex=1,_.each(i,function(t){t.parentNode.classList.remove(n.INPUT_DISABLED_CLASS);t.disabled=!1}));y.classList.add(n.HIDDEN_CLASS);d.classList.add(n.HIDDEN_CLASS);s.classList.add(n.HIDDEN_CLASS);r.classList.remove(n.HIDDEN_CLASS);p.classList.add(n.HIDDEN_CLASS);o&&o.classList.add(n.HIDDEN_CLASS);_.each(c,function(t){t.classList.add(n.HIDDEN_CLASS);t.classList.remove(n.ACCOUNT_OPTION_ACTIVE);t.getElementsByClassName(n.ACCOUNT_NUMBER_INPUT)[0].value=""});f||(rt.style.display="flex",rt.classList.add(n.FIND_BY_OPTION_ACTIVE),rt.classList.remove(n.HIDDEN_CLASS),si.classList.add(n.HIDDEN_CLASS),l(hi),hi.disabled=!0);e(y);e(s);t&&hf(h);s.classList.remove(n.FIND_BY_OPTION_ACTIVE);g.classList.remove(n.SUBMIT_CONTAINER_ACTIVE);r.classList.add(n.SUBMIT_CONTAINER_ACTIVE);pt();l(u);f||a.classList.add(n.ACCOUNT_OPTION_ACTIVE);_.each(v,function(n){l(n);n.disabled=!0});yt()},ae=function(t){t.preventDefault();var i=h.getElementsByClassName(n.ACCOUNT_OPTION);_.each(i,function(t){t.classList.remove(n.ACCOUNT_OPTION_ACTIVE);t.classList.add(n.HIDDEN_CLASS)});rt.classList.remove(n.FIND_BY_OPTION_ACTIVE);s.classList.add(n.FIND_BY_OPTION_ACTIVE);s.classList.remove(n.HIDDEN_CLASS);r.classList.remove(n.HIDDEN_CLASS);kt.classList.remove(n.HIDDEN_CLASS);rt.classList.add(n.HIDDEN_CLASS);y.classList.add(n.HIDDEN_CLASS);d.classList.add(n.HIDDEN_CLASS);si.classList.add(n.HIDDEN_CLASS);p.classList.add(n.HIDDEN_CLASS);nf.value="";hf(h);e(s);e(y,0);yt(!0);v.value="";v.disabled=!1;v.parentNode.classList.remove(n.INPUT_DISABLED_CLASS);v.classList.remove(n.INPUT_FILLED_CLASS);query.fireEvent(v,"cleanUp");kt.classList.add(n.HIDDEN_CLASS);o&&o.classList.add(n.HIDDEN_CLASS)},ve=function(){var u=this.options[w.selectedIndex].value,f="js-"+u+"-number",t=h.getElementsByClassName(f)[0],o=h.getElementsByClassName(n.ACCOUNT_OPTION),l=$(i).validate();_.each(o,function(t){t.classList.remove(n.ACCOUNT_OPTION_ACTIVE);t.classList.add(n.HIDDEN_CLASS)});hi.disabled=!1;l.resetForm();t.classList.add(n.ACCOUNT_OPTION_ACTIVE);t.getElementsByClassName(n.INPUT_DISABLED_CLASS)[0]?t.getElementsByClassName(n.INPUT_DISABLED_CLASS)[0].classList.remove(n.INPUT_DISABLED_CLASS):"";t.getElementsByClassName(n.INPUT_CLASS)[0].disabled=!1;t.classList.remove(n.HIDDEN_CLASS);p.classList.add(n.HIDDEN_CLASS);kt.classList.remove(n.HIDDEN_CLASS);r.classList.remove(n.HIDDEN_CLASS);s.classList.add(n.HIDDEN_CLASS);e(s);d.classList.add(n.HIDDEN_CLASS);c&&(c.classList.add(n.HIDDEN_CLASS),e(c))},l=function(t){var i=t.parentNode.getElementsByClassName(n.DROPDOWN_LABEL_SELECTOR)[0];i.style="";t.style="";t.selectedIndex=0;t.classList.remove(n.ACTIVE_DROPDOWN_CLASS)},kf=function(){var n=$(i).validate();n.resetForm()},df=function(){for(var u=this.options[this.selectedIndex].value,f=i.dataset.wireLocationOther,o=i.dataset.treeLocationOther,r=gt.getElementsByClassName(n.INPUT_CLASS),s=gt.getElementsByClassName(n.DROPDOWN_CLASS)[0],t=0;t<r.length;t++)r[t].value="",r[t].classList.remove(n.INPUT_FILLED_CLASS),r[t].removeAttribute(n.DATA_INPUT_SHOULD_START_VALIDATE);l(s);u===f||u===o?gt.classList.remove(n.HIDDEN_CLASS):gt.classList.add(n.HIDDEN_CLASS);st();p.classList.add(n.HIDDEN_CLASS);e(y)},ye=function(){l(a);l(u);et.classList.remove(n.OTHER_AFFECTED_ACTIVE);p.classList.add(n.HIDDEN_CLASS);at.checked?(a.classList.remove(n.HIDDEN_CLASS),ct.classList.remove(n.HIDDEN_CLASS)):(a.classList.add(n.HIDDEN_CLASS),gt.classList.add(n.HIDDEN_CLASS),ct.classList.add(n.HIDDEN_CLASS));pt();gi();coned.utils.addRadioButtonsTagging(vu,pi,[n.YES_VALUE,n.NO_VALUE])},pe=function(){var t=this.options[ut.selectedIndex].value,e=i.dataset.issueManholeProblems,o=i.dataset.issueOtherElectrical,u=!0;l(a);l(ht);a.classList.add(n.HIDDEN_CLASS);ct.classList.add(n.HIDDEN_CLASS);gt.classList.add(n.HIDDEN_CLASS);p.classList.add(n.HIDDEN_CLASS);pt();gi();t===e||t===o?(dt.classList.remove(n.HIDDEN_CLASS),fi(n.HIDE_ACTION),nr(n.HIDE_ACTION),ht.classList.add(n.HIDDEN_CLASS),u=!1):t===di?(a.classList.remove(n.HIDDEN_CLASS),fi(n.SHOW_ACTION),ht.classList.add(n.HIDDEN_CLASS),dt.classList.add(n.HIDDEN_CLASS),ct.classList.remove(n.HIDDEN_CLASS),a.classList.remove(n.HIDDEN_CLASS),st(),wr()):t===vr?(ht.classList.remove(n.HIDDEN_CLASS),fi(n.SHOW_ACTION),dt.classList.add(n.HIDDEN_CLASS),st(),wr()):(fi(n.SHOW_ACTION),dt.classList.add(n.HIDDEN_CLASS),ht.classList.add(n.HIDDEN_CLASS),wr());ki&&st();u&&gf();f&&!li&&r.classList.add(n.HIDDEN_CLASS)},gf=function(){dataLayer.push({event:"coned.form.step01"});f&&dataLayer.push({event:"coned.form.step02"})},we=function(){var t=!1,u,r;$(ft).valid()?t=!0:(t=!1,ft.classList.remove(n.INPUT_MESSAGE_ERROR),ft.parentElement.nextElementSibling.style.display="none");ft.value.trim()&&t&&ft.dataset.prevVal!==ft.value?(u=i.dataset.checkContactNumberService,r={ScId:query.getFormInputValue(i,n.FORM_SCID),PhoneNumber:query.getFormInputValue(i,n.FORM_PHONE_NUMBER)},ni.checked=tt.checked=!1,r=JSON.stringify(r),coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_CHECK_CONTACT_NUMBER,ne,te):query.postData(u,ne,te,r,!0)):t||(ni.checked=tt.checked=!1,tt.parentElement.parentElement.classList.remove(n.HIDDEN_CLASS));ft.dataset.prevVal=ft.value},ne=function(t){if(t&&!t.error&&t.phoneType){var i=t.phoneType===n.CELLULAR_PHONE_TYPE;i?(ni.checked=tt.checked=!1,tt.parentElement.parentElement.classList.remove(n.HIDDEN_CLASS),ti.length?ti[0].classList.remove(n.HIDDEN_CLASS):"",ii.length?ii[0].classList.add(n.HIDDEN_CLASS):""):(ni.checked=!0,tt.parentElement.parentElement.classList.add(n.HIDDEN_CLASS),ti.length?ti[0].classList.add(n.HIDDEN_CLASS):"",ii.length?ii[0].classList.remove(n.HIDDEN_CLASS):"")}},te=function(){ni.checked=!0;tt.parentElement.parentElement.classList.add(n.HIDDEN_CLASS);ti.length?ti[0].classList.add(n.HIDDEN_CLASS):"";ii.length?ii[0].classList.remove(n.HIDDEN_CLASS):""},be=function(){var t,u=this.options[yi.selectedIndex].value,b=i.dataset.havePowerNo,d=i.dataset.havePowerPartial,g=u===b,nt=u===d,o=!0,c=i.dataset.systemOut==="true"?!0:!1;coned.utils.isPatternLab()&&(c=coned.utils.getUrlParameterValue(n.SYSTEM_OUT_PARAMETER)?!0:!1);ku.classList.add(n.HIDDEN_CLASS);fi(n.HIDE_ACTION);nr(n.HIDE_ACTION);wr();ut.selectedIndex=0;ht.classList.add(n.HIDDEN_CLASS);a.classList.add(n.HIDDEN_CLASS);ct.classList.add(n.HIDDEN_CLASS);p.classList.add(n.HIDDEN_CLASS);l(ut);!f&!ki&&(w.selectedIndex=0,t=h.getElementsByClassName(n.ACCOUNT_OPTION),si.classList.add(n.HIDDEN_CLASS),c?(s.classList.add(n.FIND_BY_OPTION_ACTIVE),s.classList.remove(n.HIDDEN_CLASS),rt.classList.remove(n.FIND_BY_OPTION_ACTIVE)):(rt.classList.add(n.FIND_BY_OPTION_ACTIVE),rt.classList.remove(n.HIDDEN_CLASS)),s.classList.contains(n.FIND_BY_OPTION_ACTIVE)?(yt(!0),v.disabled=!1,v.parentNode.classList.remove(n.INPUT_DISABLED_CLASS)):(s.classList.add(n.HIDDEN_CLASS),s.classList.remove(n.FIND_BY_OPTION_ACTIVE),e(s)),l(w),l(hi),hi.disabled=!0,w.disabled=!1,k&&(k.dataset.mdac=""),_.each(t,function(t){var i=t.querySelector("input");i.value="";i.classList.remove(n.VALID_CLASS);i.classList.remove(n.INPUT_FILLED_CLASS);t.classList.remove(n.ACCOUNT_OPTION_ACTIVE);t.classList.add(n.HIDDEN_CLASS)}));g?(au(pi),wt.classList.remove(n.HIDDEN_CLASS),sr.classList.add(n.HIDDEN_CLASS),or.classList.add(n.HIDDEN_CLASS),dt.classList.add(n.HIDDEN_CLASS),hr.classList.remove(n.HIDDEN_CLASS),cr.classList.add(n.HIDDEN_CLASS),vt=!1):nt?(au(ir),wt.classList.add(n.HIDDEN_CLASS),e(wt,"0"),sr.classList.remove(n.HIDDEN_CLASS),or.classList.add(n.HIDDEN_CLASS),dt.classList.add(n.HIDDEN_CLASS),hr.classList.remove(n.HIDDEN_CLASS),cr.classList.add(n.HIDDEN_CLASS),vt=!1):(rf.classList.add(n.MARGIN_BOTTOM),wt.classList.add(n.HIDDEN_CLASS),sr.classList.add(n.HIDDEN_CLASS),or.classList.remove(n.HIDDEN_CLASS),hr.classList.add(n.HIDDEN_CLASS),cr.classList.remove(n.HIDDEN_CLASS),ci||(et.classList.remove(n.OTHER_AFFECTED_ACTIVE),vi()),au(pi),o=!1,vt=!0);o&&gf();f&&!li||ki||!query.hasClass(y,n.HIDDEN_CLASS)?r.classList.add(n.HIDDEN_CLASS):r.classList.remove(n.HIDDEN_CLASS);e(wt);pt()},ke=function(){w.selectedIndex>1?si.classList.remove(n.HIDDEN_CLASS):si.classList.add(n.HIDDEN_CLASS)},de=function(){!li||k&&k.dataset.account||(tf.classList.add(n.HIDDEN_CLASS),nt.checked=!0,nt.click(),r.classList.remove(n.HIDDEN_CLASS))},ge=function(){tr.checked?_.each(gr,function(t){t.classList.add(n.HIDDEN_CLASS)}):_.each(gr,function(t){t.classList.remove(n.HIDDEN_CLASS)});coned.utils.addRadioButtonsTagging(yu,ir,[n.YES_VALUE,n.NO_VALUE])},au=function(t){_.each(t,function(t){t.checked=!1;query.removeClass(t,n.VALID_CLASS);t.removeAttribute(n.ARIA_INVALID);t.removeAttribute(n.DATA_INPUT_SHOULD_START_VALIDATE)})},st=function(){nr(n.HIDE_ACTION);var t=coned.components.ValidateForm.isFormValid(n.FORM,n.EMPTY_STRING,n.FORM_IGNORE_VALIDATION,n.TRUE_VALUE),i=!query.hasClass(h,n.HIDDEN_CLASS);t&&i&&!ci&&nr(n.SHOW_ACTION)},fi=function(t){t===n.SHOW_ACTION?(h.classList.add(n.STEP_ACTIVE),h.classList.remove(n.HIDDEN_CLASS)):t===n.HIDE_ACTION&&(h.classList.remove(n.STEP_ACTIVE),h.classList.add(n.HIDDEN_CLASS))},nr=function(t){t===n.SHOW_ACTION?(g.classList.add(n.SUBMIT_CONTAINER_ACTIVE),g.classList.remove(n.HIDDEN_CLASS),oi.classList.remove(n.HIDDEN_CLASS),d.classList.remove(n.HIDDEN_CLASS)):t===n.HIDE_ACTION&&(g.classList.remove(n.SUBMIT_CONTAINER_ACTIVE),g.classList.add(n.HIDDEN_CLASS),oi.classList.add(n.HIDDEN_CLASS),d.classList.add(n.HIDDEN_CLASS))},no=function(){yi=i.getElementsByClassName(n.HAVE_POWER_SELECT)[0];wt=i.getElementsByClassName(n.TREE_WIRE_PROBLEM_CONTAINER)[0];vu=i.getElementsByClassName(n.DAMAGED_WIRE_RADIO_LABEL)[0];at=i.getElementsByClassName(n.DAMAGED_WIRE_YES_RADIO)[0];kr=i.getElementsByClassName(n.DAMAGED_WIRE_NO_RADIO)[0];pi=[at,kr];w=i.getElementsByClassName(n.FIND_ACCOUNT_SELECT)[0];h=i.getElementsByClassName(n.LOCATION_STEP)[0];d=i.getElementsByClassName(n.CONTACT_STEP)[0];nu=i.getElementsByClassName(n.SEARCH_BY_ADDRESS_LINK)[0];ei=i.getElementsByClassName(n.ADDRESS_LOOKUP_FORM)[0];v=ei.getElementsByClassName(n.AUTOCOMPLETE_ZIPCODE)[0];tu=ei.getElementsByClassName(n.AUTOCOMPLETE_SELECTED_ADDRESS)[0];bt=ei.getElementsByClassName(n.AUTOCOMPLETE_APARMENT_UNIT)[0];wu=ei.getElementsByClassName(n.ADDRESS_SELECTED_CLASS)[0];iu=ei.getElementsByClassName(n.ADDRESS_SELECTED_DETAIL_CLASS)[0];y=i.getElementsByClassName(n.ADDRESS_RECORD_CONTAINER)[0];o=i.getElementsByClassName(n.OTHER_DETAILS_CONTAINER)[0];gu=i.getElementsByClassName(n.NOT_MY_ADDRESS_LINK)[0];ku=document.getElementsByClassName(n.BANNER_CONTAINER)[0];du=document.getElementsByClassName(n.SUBMIT_CONTAINER)[0];rt=i.getElementsByClassName(n.FIND_ACCOUNT_BY_NUMBER)[0];s=i.getElementsByClassName(n.FIND_ACCOUNT_BY_ADDRESS)[0];kt=document.getElementsByClassName(n.FIND_ADDRESS_BUTTON)[0];r=kt.parentNode.parentNode;oi=document.getElementsByClassName(n.FORM_SUBMIT_BUTTON)[0];g=oi.parentNode.parentNode;c=i.getElementsByClassName(n.OTHER_AFFECTED_CONTAINER)[0];u=i.getElementsByClassName(n.OTHER_AFFECTED_SELECT)[0];et=i.getElementsByClassName(n.OTHER_AFFECTED_ALERT_CONTAINER)[0];ri=i.getElementsByClassName(n.OTHER_AFFECTED_ALERT)[0];hu=i.getElementsByClassName(n.NOT_MY_ADDRESS_WRAPPER);nt=i.getElementsByClassName(n.OUTAGE_MY_ADDRESS_CHECK)[0];er=i.getElementsByClassName(n.LOOKUP_RESULT)[0];sr=i.getElementsByClassName(n.PARTIAL_OPTIONS_CONTAINER)[0];or=i.getElementsByClassName(n.OTHER_ISSUES_OPTIONS)[0];ut=i.getElementsByClassName(n.OTHER_ISSUES_SELECT)[0];dt=i.getElementsByClassName(n.OTHER_ISSUES_BANNER)[0];a=i.getElementsByClassName(n.WIRE_DOWN_SELECT)[0];ht=i.getElementsByClassName(n.TREE_BRANCH_SELECT)[0];bi=i.getElementsByClassName(n.ISSUE_DETAILS_CONTAINER)[0];si=i.getElementsByClassName(n.BOROUGH_DROPDOWN_CONTAINER)[0];hi=i.getElementsByClassName(n.BOROUGH_DROPDOWN_SELECT)[0];ot=i.getElementsByClassName(n.LOOKUP_SERVICE_ERROR)[0];p=i.getElementsByClassName(n.SERVICE_ERROR)[0];gt=i.getElementsByClassName(n.WIRE_LOCATION_OTHER_CONTAINER)[0];ct=i.getElementsByClassName(n.WIRE_DOWN_OPTIONS)[0];dr=i.getElementsByClassName(n.FIND_ACCOUNT_CONTAINER)[0];yu=i.getElementsByClassName(n.DIM_FLICKER_RADIO_LABEL)[0];tr=i.getElementsByClassName(n.DIM_FLICKER_YES_RADIO)[0];pu=i.getElementsByClassName(n.DIM_FLICKER_NO_RADIO)[0];ir=[tr,pu];gr=i.getElementsByClassName(n.FLICKER_LIGHTS_HIDDEN);nf=i.getElementsByClassName(n.ACCOUNT_NUMBER)[0];tf=i.getElementsByClassName(n.ADDRESS_DESCRIPTION)[0];rf=i.getElementsByClassName(n.TRANSACTIONAL_WRAPPER)[0];ni=i.getElementsByClassName(n.PHONE_CALL_RADIO_BUTTON)[0];tt=i.getElementsByClassName(n.PHONE_TEXT_RADIO_BUTTON)[0];ft=i.getElementsByClassName(n.CONTACT_NUMBER)[0];uf=i.getElementsByClassName(n.CONTACT_NUMBER_HAS_POWER)[0];hr=i.getElementsByClassName(n.NO_PARTIAL_POWER_FORM)[0];b=document.getElementsByClassName(n.FINISH_REPORT_BANNER_CONTAINER)[0];rr=b.getElementsByClassName(n.FINISH_REPORT_BANNER_FOCUS)[0];ur=b.getElementsByClassName(n.FINISH_REPORT_ACCOUNT)[0];wi=b.getElementsByClassName(n.FINISH_REPORT_STREET_ADDRESS)[0];bu=b.getElementsByClassName(n.FINISH_REPORT_CITY)[0];fr=b.getElementsByClassName(n.OTHER_AFFECTED_DESCRIPTION)[0];ru=b.getElementsByClassName(n.FINISH_REPORT_CONTACT_NAME)[0];uu=b.getElementsByClassName(n.FINISH_REPORT_CONTACT_NUMBER)[0];fu=b.getElementsByClassName(n.FINISH_REPORT_ETR)[0];eu=b.getElementsByClassName(n.FINISH_REPORT_DUPLICATE)[0];su=b.getElementsByClassName(n.FINISH_CONFIRMATION_PARAGRAPHS)[0];ou=b.getElementsByClassName(n.FINISH_CHECK_OUTAGE_ERROR_MESSAGE)[0];cr=i.getElementsByClassName(n.HAS_POWER_FORM)[0];ti=i.getElementsByClassName(n.CELLULAR_LABEL);ii=i.getElementsByClassName(n.LANDLINE_LABEL);ff=document.getElementsByClassName(n.CAPTCHA_ELEMENT_CLASS);ef=document.getElementsByClassName(coned.constants.BODY_CLASS)[0];of=i.getElementsByClassName(n.VALIDATE_SHOW_CONTACT_STEP_SELECTOR);pr=ff.length;ci=!1;ki=!1;li=query.hasClass(i,n.HAVE_DIRECTIONS);di=i.dataset.issueWiresDown;vr=i.dataset.issueTreeBranchOnWire;f=i.dataset.userStatus;cu=!0},to=function(){var t=i.getElementsByClassName(n.ADDRESS_DROPDOWN_MODULE)[0];w&&w.addEventListener("change",ke);_.each(ir,function(t){t.addEventListener("change",function(){ge();query.hasClass(h,n.HIDDEN_CLASS)&&fi(n.SHOW_ACTION);st()})});ft.addEventListener("input",we);yi.addEventListener("change",be);_.each(pi,function(t){t.addEventListener("change",function(){ye();query.hasClass(h,n.HIDDEN_CLASS)&&fi(n.SHOW_ACTION);st()})});u.addEventListener("change",gi);ut.addEventListener("change",pe);a.addEventListener("change",df);ht.addEventListener("change",df);_.each(of,function(n){n.addEventListener("input",st)});coned.utils.addGeneralListeners(kt,lu);bt&&(bt.addEventListener("selectedOptionEnd",lu),bt.addEventListener("checkAddress",lu),bt.addEventListener("inputChange",function(){$(bt).valid()||(kf(),d.classList.add(n.HIDDEN_CLASS),ot.classList.add(n.HIDDEN_CLASS),r.classList.remove(n.ERROR_SERVICE_RESPONSE_CLASS),r.classList.remove(n.SUCCESS_SERVICE_RESPONSE_CLASS),r.classList.remove(n.HIDDEN_CLASS),o&&(o.classList.add(n.HIDDEN_CLASS),e(o,0)),c&&(c.classList.add(n.HIDDEN_CLASS),e(c,0),l(u),vi(),et.classList.remove(n.OTHER_AFFECTED_ACTIVE)))}),bt.parentElement.addEventListener("resetInput",function(){query.hasClass(tu,n.HIDDEN_CLASS)||kf();d.classList.add(n.HIDDEN_CLASS);ot.classList.add(n.HIDDEN_CLASS);r.classList.remove(n.ERROR_SERVICE_RESPONSE_CLASS);r.classList.remove(n.SUCCESS_SERVICE_RESPONSE_CLASS);r.classList.remove(n.HIDDEN_CLASS);o&&(o.classList.add(n.HIDDEN_CLASS),e(o,0));c&&(c.classList.add(n.HIDDEN_CLASS),e(c,0),l(u),vi(),et.classList.remove(n.OTHER_AFFECTED_ACTIVE))}));new coned.components.ValidateForm(n.FORM,oe,n.FORM_IGNORE_VALIDATION,!0);lt=new coned.components.Recaptcha(i,cf,cf);f?(nt.addEventListener("change",bf),t&&t.addEventListener("change",bf),k=i.getElementsByClassName(n.ACCOUNT_DATA)[0],pt()):(w.addEventListener("change",ve),coned.utils.addGeneralListeners(gu,le),nu&&coned.utils.addGeneralListeners(nu,ae));rr&&rr.setAttribute(n.TABINDEX,"-1");window.addEventListener("resize",ie)},io=function(){no();to();t=!0};io()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ReportTableComponent=function(){var n={ITEM:"js-item",ITEM_OPEN:"table-item--open",ITEM_ARROW:"js-open-arrow",EXPAND_ALL:"js-expand-all",EXPAND_ACTIVE:"js-expand-active",BY_ITEM:"js-table-by-item",BY_ITEM_ACTIVE:"report-table__navigation-by-item--active",TABLE:"js-table",HIDDEN_CLASS:"hidden"},t=!1,i=function(i){var f,e,r,u,o,h=function(t){t.preventDefault();var i=this.parentNode;query.hasClass(i,n.ITEM_OPEN)?i.classList.remove(n.ITEM_OPEN):(query.removeClass(f,n.ITEM_OPEN),i.classList.add(n.ITEM_OPEN))},c=function(n){function i(n){for(var t=0;t<r.length;t++)r[t].innerHTML=n}n.preventDefault();var t=this.dataset.defaultText,u=this.dataset.activeText,f=this.innerText;f==t?(s(!0),i(u)):(s(),i(t))},s=function(t){t?query.addClass(f,n.ITEM_OPEN):query.removeClass(f,n.ITEM_OPEN)},l=function(){var t=this.dataset.value,r="js-table-"+t,f=i.getElementsByClassName(r)[0];query.addClass(o,n.HIDDEN_CLASS);query.removeClass(u,n.BY_ITEM_ACTIVE);f.classList.remove(n.HIDDEN_CLASS);this.classList.add(n.BY_ITEM_ACTIVE)},a=function(){f=i.getElementsByClassName(n.ITEM);e=i.getElementsByClassName(n.ITEM_ARROW);r=i.getElementsByClassName(n.EXPAND_ALL);u=i.getElementsByClassName(n.BY_ITEM);o=i.getElementsByClassName(n.TABLE)},v=function(){for(var t,i,n=0;n<e.length;n++)coned.utils.addGeneralListeners(e[n],h);if(r.length>0)for(t=0;t<r.length;t++)coned.utils.addGeneralListeners(r[t],c);if(u.length>0)for(i=0;i<u.length;i++)coned.utils.addGeneralListeners(u[i],l)},y=function(){a();v();t=!0};y()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ResetPassword=function(){var n={FORM_CLASS_SELECTOR:".js-reset-form",SELECT_WIDTH_DROPDOWN:"js-coned-select",EMAIL_SELECTOR_CONTAINER:"js-email-selector",PHONE_SELECTOR_CONTAINER:"js-phone-selector",SMS_MESSAGE_CONTIANER:"js-message-selector",DISPLAY_CLASS:"transactional--finish",SUBMIT_BUTTON_SELECTOR:"js-transactional-submit-selector",INPUT_CLASS_SELECTOR:"js-coned-input",FORM_IGNORE_VALIDATION:"js-validation-ignore",FINISH_STEP_SELECTOR:"js-finish-step-selector",FINISH_STEP_CLASS:"transactional--finish",FINISH_MESSAGE_SELECTOR:"js-sucess-receptor",SUBMIT_ANIMATION_BUTTON:"js-submit-progress-animation",FINISH_MESSAGE_CONTAINER:"js-data-message",FIRST_STEP_FORM:"js-first-step-form",CODE_VERIFICATION_FORM:"js-code-verification-code",RESET_PASSWORD_FORM:"js-reset-password",RESET_PASSWORD_SELECTOR:"js-reset-password-selector",REVERT_RESET_SELECTOR:"js-revert-reset-selector",SECURITY_QUESTION_CONTAINER:"js-security-container",SECURITY_QUESTION:"js-security-question",SECURITY_ANSWER:"js-security-answer",RECAPTCHA_ELEMENT:"js-recaptcha",RESET_ERROR:"js-reset-error",RESET_ERROR_MESSAGE:"js-error-message",RESET_DESCRIPTION:"js-reset-description",HIDDEN_CLASS:"hidden",SMS_OPTION:"sms",EMAIL_OPTION:"email",RESET_QUESTION_INPUT:"resetSecurityQuestion",RESET_EMAIL_INPUT:"resetEmail",RESET_VERIFICATION_CODE_INPUT:"verificationCode",RESET_SITECORE_ID:"ScId",RESET_STATE_TOKEN:"StateToken",USER_NAME_SELECTOR:"js-username-selector",FROM_URI_PARAMETER_NAME:"fromURI"},i=!1,t=!1,r=function(r){var s,g,a,nt,tt,v,y,l,p,w,f,e,it,rt,h,ut,b,ft,u,o,k,c,et,ct=function(i){i&&i.preventDefault();var r=f.getElementsByClassName(n.INPUT_CLASS_SELECTOR)[0];t=!1;w.classList.remove(n.HIDDEN_CLASS);f.classList.add(n.HIDDEN_CLASS);r.classList.add(n.FORM_IGNORE_VALIDATION);u&&o&&(u.reset(),o.classList.remove(n.HIDDEN_CLASS))},lt=function(){s.value=="sms"?query.removeClass(a,n.HIDDEN_CLASS):query.addClass(a,n.HIDDEN_CLASS);nt.disabled=!1},at=function(){var i,f,h=r.dataset.initiateService,c=r.dataset.smsService,l=s.value,e=coned.utils.getUrlParameterValue(n.FROM_URI_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.FROM_URI_PARAMETER_NAME):"";t?(i={email:query.getFormInputValue(r,n.RESET_EMAIL_INPUT),PassCode:query.getFormInputValue(r,n.RESET_VERIFICATION_CODE_INPUT),ScId:query.getFormInputValue(document,n.RESET_SITECORE_ID),FactorType:et,StateToken:query.getFormInputValue(document,n.RESET_STATE_TOKEN),FromUri:e},f=c):(i={email:query.getFormInputValue(r,n.RESET_EMAIL_INPUT),unlockWithFactor:l,ScId:query.getFormInputValue(document,n.RESET_SITECORE_ID),FromUri:e},f=h,o&&u&&(i.Verify=u.getResponse()));i=JSON.stringify(i);query.postData(f,vt,yt,i,!0)},vt=function(n){l.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS);c=n},yt=function(n){l.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);c=n;u&&o&&u.reset()},pt=function(){if(ht(),coned.utils.isPatternLab()){var n=coned.plConstants.INITIATE_FORGET_PASSWORD;query.getData(n,ot,function(){})}else ot(c)},ot=function(i){if(i&&i.success)if(rt.classList.add(n.HIDDEN_CLASS),t=!0,s.value==n.EMAIL_OPTION)dt();else{var r=f.getElementsByClassName(n.INPUT_CLASS_SELECTOR)[0];w.classList.add(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);r.classList.remove(n.FORM_IGNORE_VALIDATION);b.value=i.stateToken;o.classList.add(n.HIDDEN_CLASS);et=i.factorType}else e.classList.remove(n.HIDDEN_CLASS),h.innerHTML=i.errorMsg},wt=function(){t?d():o&&u&&u.getResponse()===""&&u.checkRecaptcha()},bt=function(){if(ht(),coned.utils.isPatternLab()){var n=coned.plConstants.GET_SMS_VERIFICATION;query.getData(n,st,function(){})}else st(c)},st=function(t){t&&t.stateToken?(e.classList.add(n.HIDDEN_CLASS),r.classList.add(n.HIDDEN_CLASS),f.classList.add(n.HIDDEN_CLASS),ut.classList.remove(n.HIDDEN_CLASS),b.value=t.stateToken,ft.dataset.username=t.Username):(f.classList.remove(n.HIDDEN_CLASS),e.classList.remove(n.HIDDEN_CLASS),h.innerHTML=t.errorMsg)},kt=function(){e.classList.remove(n.HIDDEN_CLASS);h.innerHTML=c.errorMsg;e.focus()},ht=function(){e.classList.add(n.HIDDEN_CLASS);h.innerHTML=""},dt=function(){var t,i,u;s.value==n.SMS_OPTION?(i=p.dataset.sms,t=i,y.innerHTML=t):(u=p.dataset.email,t=u,t=t.replace("@DATA","<b>"+tt.value+"<\/b>"));r.style.display="none";v.classList.remove(n.FINISH_STEP_CLASS);y.innerHTML=t},d=function(){k=t?bt:pt;new coned.components.SubmitAnimation(l,at,k,kt,!1,!0)},gt=function(){s=r.getElementsByClassName(n.SELECT_WIDTH_DROPDOWN)[0];g=r.getElementsByClassName(n.EMAIL_SELECTOR_CONTAINER)[0];a=r.getElementsByClassName(n.SMS_MESSAGE_CONTIANER)[0];nt=r.getElementsByClassName(n.SUBMIT_BUTTON_SELECTOR)[0];tt=g.getElementsByClassName(n.INPUT_CLASS_SELECTOR)[0];v=document.getElementsByClassName(n.FINISH_STEP_SELECTOR)[0];y=v.getElementsByClassName(n.FINISH_MESSAGE_SELECTOR)[0];l=r.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];p=r.getElementsByClassName(n.FINISH_MESSAGE_CONTAINER)[0];w=r.getElementsByClassName(n.FIRST_STEP_FORM)[0];f=r.getElementsByClassName(n.CODE_VERIFICATION_FORM)[0];it=r.getElementsByClassName(n.REVERT_RESET_SELECTOR)[0];e=r.getElementsByClassName(n.RESET_ERROR)[0];h=r.getElementsByClassName(n.RESET_ERROR_MESSAGE)[0];rt=r.getElementsByClassName(n.RESET_DESCRIPTION)[0];ut=document.getElementsByClassName(n.RESET_PASSWORD_SELECTOR)[0];b=document.getElementsByName(n.RESET_STATE_TOKEN)[0];ft=document.getElementsByClassName(n.USER_NAME_SELECTOR)[0];u=!1;o=r.getElementsByClassName(n.RECAPTCHA_ELEMENT)[0]},ni=function(){s.addEventListener("change",lt);coned.utils.addGeneralListeners(it,ct);u=new coned.components.Recaptcha(r,d,d);new coned.components.ValidateForm(n.FORM_CLASS_SELECTOR,wt,"."+n.FORM_IGNORE_VALIDATION)},ti=function(){gt();ni();i=!0};ti()};return r.prototype.isLoaded=function(){return i},r}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SafetyInspectionModule=function(){var n={CHECKBOX_HIDE_CLASS:"js-checkbox-other",CHECKBOX_HIDE_FIELD:"coned-form__field-container--hidden",CHECKBOX_HIDE_FIELD_SELECTOR:"js-field-container-hidden"},t=!1,i=function(i){var u,r,f=function(t){var i=t.target.checked;i?query.removeClass(r,n.CHECKBOX_HIDE_FIELD):query.addClass(r,n.CHECKBOX_HIDE_FIELD)},e=function(){u=i.getElementsByClassName(n.CHECKBOX_HIDE_CLASS)[0];r=i.getElementsByClassName(n.CHECKBOX_HIDE_FIELD_SELECTOR)[0]},o=function(){u.addEventListener("change",f)},s=function(){e();o();t=!0};s()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SearchFiltersComponent=function(){var n={WRAPPER_BY_FILTER:"js-search-filters-by",WRAPPER_TOPIC_FILTER:"js-dropdown-topic",WRAPPER_TYPE_FILTER:"js-dropdown-type",WRAPPER_FILTER_OPTIONS:"js-search-filters-options",DROPDOWN_TITLE_LINK:"js-dropdown-link",DROPDOWN_TITLE:"js-dropdown-title",DROPDOWN_TITLE_TYPE_OPTION:"dropdown-title__type-option",DROPDOWN_LIST:"js-dropdown-list",FILTER_BUTTON:"js-filter-button",OPTION_LINK:"js-dropdown-list-item-link",OPTION_TITLE:"js-dropdown-list-item-title",OPTION_ACTIVE_CLASS:"dropdown-list-item-link--active",BUTTON_ACTIVE_CLASS:"dropdown-title--active",FILTER_ACTIVE_CLASS:"search-filters__by-nav-item--active",MOBILE_DROPDOWN_TITLE:"dropdown-title--mobile",VISIBLE_MOBILE:"visible-mobile",FILTER_URL_PARAMETER_NAME:"filter",FILTER_URL_PARAMETER:"filter=",TOPIC_URL_PARAMETER_NAME:"topic",TOPIC_URL_PARAMETER:"topic=",TYPE_URL_PARAMETER_NAME:"type",TYPE_URL_PARAMETER:"type=",PAGINATION_URL_PARAMETER_NAME:"page",PAGINATION_CONTENT_CLASS:"js-pagination-content",PAGINATION_RESET_CLASS:"js-pagination-reset",RESULTS_ANIMATION_SELECTOR:"js-results-selector",RESULTS_ANIMATION_CLASS:"search-results__item--animation",CLEAR_FILTERS:"js-search-clear-filters",ARIA_EXPANDED:"aria-expanded"},t=!1,i=function(i){var u,b,o,h,k,c,l,a,f,r,s,d,g,nt,v,it=function(n,t){for(var r=-1,i=0;n.length>i;i++)if(n[i].dataset.value==t){r=i;break}return r},y=function(n,t){if(window.location.search.includes(n)){var r=coned.utils.getUrlParameterValue(n),i=it(t,r);i>-1&&t[i].click()}},rt=function(){y(n.FILTER_URL_PARAMETER_NAME,o);y(n.TOPIC_URL_PARAMETER_NAME,c.getElementsByClassName(n.OPTION_LINK));y(n.TYPE_URL_PARAMETER_NAME,l.getElementsByClassName(n.OPTION_LINK));v=!1},ut=function(t){t.preventDefault();_.each(o,function(t){t.classList.remove(n.FILTER_ACTIVE_CLASS)});this.classList.toggle(n.FILTER_ACTIVE_CLASS);w()},ft=function(t){t.preventDefault();var s=query.hasClass(this,n.BUTTON_ACTIVE_CLASS),f=query.hasClass(this,n.MOBILE_DROPDOWN_TITLE),h=this.parentNode,c=f?i:h,o=c.getElementsByClassName(n.DROPDOWN_LIST);s?e():(e(),TweenMax.from(o,.2,{y:-20,opacity:0}),_.each(o,function(n){n.style.display="block"}),f&&(_.each(u,function(n){n.style.display="block"}),r.length>0&&query.addClass(r,n.VISIBLE_MOBILE)),this.classList.toggle(n.BUTTON_ACTIVE_CLASS),_.each(u,function(t){query.hasClass(t,n.BUTTON_ACTIVE_CLASS)&&t.setAttribute(n.ARIA_EXPANDED,"true")}))},e=function(){_.each(b,function(t){t.style.display="none";query.removeClass(u,n.BUTTON_ACTIVE_CLASS)});_.each(u,function(t){t.setAttribute(n.ARIA_EXPANDED,"false")});coned.utils.isMobile()?(_.each(f,function(n){n.style.display="none"}),r.length>0&&query.removeClass(r,n.VISIBLE_MOBILE)):(_.each(f,function(n){n.setAttribute("style","display: flex !important;")}),r.length>0&&query.addClass(r,n.VISIBLE_MOBILE))},et=function(t){var s,u;t.preventDefault();var h=this.getElementsByClassName(n.OPTION_TITLE)[0].innerHTML,r=this.parentNode.parentNode.parentNode.getElementsByClassName(n.DROPDOWN_TITLE)[0],c=r.parentNode.dataset.defaultTitle,l=this.parentNode.parentNode.parentNode.getElementsByClassName(n.OPTION_LINK),a=query.hasClass(this,n.OPTION_ACTIVE_CLASS),o=coned.utils.isMobile();_.each(l,function(t){t.classList.remove(n.OPTION_ACTIVE_CLASS);t.setAttribute("aria-selected","false")});o&&_.each(f,function(n){n.style.display="none"});a?r.innerHTML=c:(r.innerHTML=h,this.classList.add(n.OPTION_ACTIVE_CLASS),this.setAttribute("aria-selected","true"));o&&t.type=="click"?(s=i.getElementsByClassName(n.MOBILE_DROPDOWN_TITLE)[0],s.focus()):(u=r.parentNode,u&&query.hasClass(u,n.BUTTON_ACTIVE_CLASS)&&u.focus());e();w()},p=function(n,t,i,r,u){return i!=""?window.location.search.includes(r)?t=coned.utils.updateAnchorParameter(t,r,i):t+=n+u+i:window.location.search.includes(r)&&(t=coned.utils.deleteAnchorParameter(t,r)),t},w=function(){var y;if(!v){var o=k.getElementsByClassName(n.FILTER_ACTIVE_CLASS),h=c.getElementsByClassName(n.OPTION_ACTIVE_CLASS),a=l.getElementsByClassName(n.OPTION_ACTIVE_CLASS),r=o.length?o[0].dataset.value:"",u=h.length?h[0].dataset.value:"",f=a.length?a[0].dataset.value:"",e=window.location.href.indexOf("?")===-1?"?":"&",t=window.location.href,i="";t=p(e,t,r,n.FILTER_URL_PARAMETER_NAME,n.FILTER_URL_PARAMETER);t=p(e,t,u,n.TOPIC_URL_PARAMETER_NAME,n.TOPIC_URL_PARAMETER);t=p(e,t,f,n.TYPE_URL_PARAMETER_NAME,n.TYPE_URL_PARAMETER);t=coned.utils.deleteAnchorParameter(t,n.PAGINATION_URL_PARAMETER_NAME);y=t.replace(window.location.origin,"");window.history.pushState({page:t},"",y);i=s.dataset.service+t.replace(window.location.origin+window.location.pathname,"");coned.utils.isPatternLab()&&(r!=""&&r>1&&u!=""&&f!=""?i=coned.plConstants.PATTERNLAB_SEARCH_RESULTS_NONE_PATH:r!=""&&r>1&&u!=""?i=coned.plConstants.PATTERNLAB_SEARCH_RESULTS_ALL_PATH:u!=""?i=coned.plConstants.PATTERNLAB_SEARCH_RESULTS_TOPIC_PATH:f!=""?i=coned.plConstants.PATTERNLAB_SEARCH_RESULTS_TYPE_PATH:r!=""&&(i=coned.plConstants.PATTERNLAB_SEARCH_RESULTS_VIEWED_PATH));query.getData(i,function(n){s.innerHTML=n;d.click();window.scrollTo(0,0);tt()},function(){})}},tt=function(){var i=100,t=0;_.each(g,function(r){t+=i;setTimeout(function(){query.removeClass(r,n.RESULTS_ANIMATION_CLASS)},t)})},ot=function(t){t.preventDefault();Array.prototype.forEach.call(a,function(t){var i=t.parentNode.parentNode.parentNode.getElementsByClassName(n.DROPDOWN_TITLE)[0],r=i.parentNode.dataset.defaultTitle,u=t.parentNode.parentNode.parentNode.getElementsByClassName(n.OPTION_LINK),e=coned.utils.isMobile();_.each(u,function(t){t.classList.remove(n.OPTION_ACTIVE_CLASS);i.innerHTML=r});e&&_.each(f,function(n){n.style.display="none"})});w()},st=function(){u=i.getElementsByClassName(n.DROPDOWN_TITLE_LINK);b=i.getElementsByClassName(n.DROPDOWN_LIST);o=i.getElementsByClassName(n.FILTER_BUTTON);a=i.getElementsByClassName(n.OPTION_LINK);k=i.getElementsByClassName(n.WRAPPER_BY_FILTER)[0];c=i.getElementsByClassName(n.WRAPPER_TOPIC_FILTER)[0];l=i.getElementsByClassName(n.WRAPPER_TYPE_FILTER)[0];h=i.getElementsByClassName(n.WRAPPER_FILTER_OPTIONS)[0];f=h.getElementsByClassName(n.DROPDOWN_TITLE_LINK);r=h.getElementsByClassName(n.DROPDOWN_TITLE_TYPE_OPTION);s=document.getElementsByClassName(n.PAGINATION_CONTENT_CLASS)[0];d=document.getElementsByClassName(n.PAGINATION_RESET_CLASS)[0];g=s.getElementsByClassName(n.RESULTS_ANIMATION_SELECTOR);nt=i.getElementsByClassName(n.CLEAR_FILTERS)[0];v=!0},ht=function(){_.each(u,function(n){coned.utils.addGeneralListeners(n,ft)});_.each(o,function(n){coned.utils.addGeneralListeners(n,ut)});_.each(a,function(n){coned.utils.addGeneralListeners(n,et)});window.addEventListener("resize",e);rt();tt();e();coned.utils.addGeneralListeners(nt,ot)},ct=function(){st();ht();t=!0};ct()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SearchSubmit=function(){var n={INPUT_SELECTOR:"js-search-box-input",INPUT_ANIMATION_SELECTOR:"js-input-selector",INPUT_CLASS_ANIMATION:"search-box__animation--start",SEARCH_INPUT:"js-search-box-input",CAPTCHA_ELEMENT:"js-button-recaptcha",CAPTCHA_VERIFY_SELECTOR:"js-recaptcha-verify-selector"},t=!1,i=function(i){var f,e,r,o,s,l,u,h,a=function(t,i){query.hasClass(t,n.INPUT_CLASS_ANIMATION)?query.removeClass(t,i):query.addClass(t,i)},v=function(n){var t=encodeURI(n);r.action="";r.action=o+"?search="+t},c=function(){var i=s.value,f=encodeURI(i),t;h&&u&&u.getResponse()!==""&&(t=document.getElementById(n.CAPTCHA_VERIFY_SELECTOR),t?t.setAttribute("value",u.getResponse()):(t=document.createElement("INPUT"),t.setAttribute("id",n.CAPTCHA_VERIFY_SELECTOR),t.setAttribute("name","verify"),t.setAttribute("class","hidden"),t.setAttribute("value",u.getResponse()),r.appendChild(t)));r.action="";r.action=o+"?search="+f;r.submit();u.reset()},y=function(){f=i.getElementsByClassName(n.INPUT_SELECTOR)[0];e=i.getElementsByClassName(n.INPUT_ANIMATION_SELECTOR)[0];r=i;s=i.getElementsByClassName(n.SEARCH_INPUT)[0];o=i.action;l=r.getElementsByClassName(n.CAPTCHA_ELEMENT);h=l.length>0},p=function(){f.addEventListener("focus",function(){a(e,n.INPUT_CLASS_ANIMATION)});f.addEventListener("focusout",function(){a(e,n.INPUT_CLASS_ANIMATION)});h?(u=new coned.components.Recaptcha(r,c,c),r.addEventListener("submit",function(){c()})):r.addEventListener("submit",function(){v(s.value)})},w=function(){y();p();t=!0};w()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SearchBoxComponent=function(){var n={SEARCH_WRAPPER:"search-box",PRIMARY_NAV_ITEM:"js-primary-nav-item",FORM_WRAPPER:"search-box__form-wrapper",LIST_WRAPPER:"search-box__suggested-wrapper",SEARCH_BOX_ACTIVE_CLASS:"search-box--active",SEARCH_BOX_INPUT:"js-search-box-input",CLOSE_BUTTON:"js-close-search",OPEN_NAV_BUTTON:"js-nav-search",OPEN_ACTION_BUTTON:"js-action-search",OPEN_SECONDARY_BUTTON:"js-sec-search",NAV_CLOSE_LANGUAGE:"js-language-close",HEADER_PRIMARY_MENU_OPEN:"header__primary--open",ORU_NAV_CLASS:"header--oru",ORANGE_COLOR:"#e77613",BLUE_COLOR:"#069bd7",HOVER_CLASS:"hover",VIRTUAL_ASSISTANT_CLASS:"va-chat",HIDDEN_CLASS:"hidden"},t=!1,i=function(i){var r,u,e,f,s,h,c,o,l,a,v,p,w=function(t){t.preventDefault();query.removeClass(i,n.SEARCH_BOX_ACTIVE_CLASS);query.removeClass(h,coned.constants.MODAL_OPEN);query.removeClass(c,n.HIDDEN_CLASS);TweenMax.to([o,r,l],.3,{opacity:0,y:0,onComplete:k});a.value="";document.activeElement!=document.body&&document.activeElement.classList.contains(n.SEARCH_BOX_INPUT)&&document.activeElement.blur();setTimeout(function(){f&&f.focusBack?(f.focus(),f.focusBack=!1):u&&u.focusBack?(u.focus(),u.focusBack=!1):u&&e.focusBack&&(e.focus(),e.focusBack=!1)},500)},y=function(t){var u,r;for(t.target.focusBack=!0,t.preventDefault(),query.addClass(i,n.SEARCH_BOX_ACTIVE_CLASS),query.addClass(h,coned.constants.MODAL_OPEN),query.addClass(c,n.HIDDEN_CLASS),s!=undefined&&s.click(),u=window.innerHeight-3,TweenMax.to(i,.3,{borderBottom:"3px solid "+p,height:u,onComplete:b}),r=0;r<v.length;r++)query.removeClass(v[r],n.HOVER_CLASS);setTimeout(function(){a.focus()},500)},b=function(){TweenMax.to([o,r],.4,{delay:0,y:-40,opacity:1});TweenMax.to(l,.2,{delay:.3,y:-40,opacity:1});o.style.position="fixed";r.style.position="fixed"},k=function(){TweenMax.to(i,.1,{borderBottom:"0",height:"0"});o.style.position="absolute";r.style.position="absolute"},d=function(){if(i.style.height!=""&&i.style.height!="0px"){var n=window.innerHeight-3;TweenMax.to(i,.1,{height:n})}},g=function(){h=document.getElementsByClassName(coned.constants.BODY_CLASS)[0];c=document.getElementsByClassName(n.VIRTUAL_ASSISTANT_CLASS)[0];v=document.getElementsByClassName(n.PRIMARY_NAV_ITEM);r=i.getElementsByClassName(n.CLOSE_BUTTON)[0];s=document.getElementsByClassName(n.NAV_CLOSE_LANGUAGE)[0];o=i.getElementsByClassName(n.FORM_WRAPPER)[0];l=i.getElementsByClassName(n.LIST_WRAPPER)[0];u=document.getElementsByClassName(n.OPEN_NAV_BUTTON)[0];e=document.getElementsByClassName(n.OPEN_ACTION_BUTTON)[0];f=document.getElementsByClassName(n.OPEN_SECONDARY_BUTTON)[0];a=document.getElementsByClassName(n.SEARCH_BOX_INPUT)[0];p=document.getElementsByClassName(n.ORU_NAV_CLASS).length>0?n.ORANGE_COLOR:n.BLUE_COLOR},nt=function(){r!=null&&coned.utils.addGeneralListeners(r,w);coned.utils.addGeneralListeners(u,y);coned.utils.addGeneralListeners(e,y);f!=null&&coned.utils.addGeneralListeners(f,y);new coned.utils.addKeyEvent(i,coned.constants.KEY_CODE.ESC,w);new coned.utils.addFocusTrap(i);window.addEventListener("resize",d)},tt=function(){g();nt();t=!0};tt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SecurityWordConfirmation=function(){var n={FORGOT_CONFIRM_ACCOUNT_FORM:".js-forgot-confirm-account-form",CONFIRM_OWNERSHIP_FORM_WRAPPER:"js-confirm-ownership-form-wrapper",CONFIRM_OWNERSHIP_FORM:".js-confirm-ownership-form",CONFIRM_OWNERSHIP_SECURITY_WORD_CONTAINER:"js-security-word-input-container",CONFIRM_OWNERSHIP_SECURITY_WORD_OPTIONS:"js-security-word-option",CONFIRM_OWNERSHIP_SECURITY_WORD_OPTION_NO:"js-security-word-option-no",CONFIRM_OWNERSHIP_SECURITY_WORD_INPUT:"js-security-word-input",CONFIRM_OWNERSHIP_SUBMIT:"js-transactional-submit-selector",IGNORE_CLASS:"js-ignore-validation-class",HIDDEN_CLASS:"hidden"},t=!1,i=function(i){var f,r,e,u,o,s,h=function(){this.value==="yes"?(u.disabled=!0,e.classList.remove(n.HIDDEN_CLASS),r.classList.remove(n.IGNORE_CLASS)):(u.disabled=!1,e.classList.add(n.HIDDEN_CLASS),r.value="",r.classList.remove(n.INPUT_FILLED_CLASS),r.classList.add(n.IGNORE_CLASS))},c=function(){var n=r.value!=="";u.disabled=n?!1:!0},l=function(){s=i.dataset.parentForm;o=document.getElementsByClassName(s)[0];f=i.getElementsByClassName(n.CONFIRM_OWNERSHIP_SECURITY_WORD_OPTIONS);r=i.getElementsByClassName(n.CONFIRM_OWNERSHIP_SECURITY_WORD_INPUT)[0];u=o.getElementsByClassName(n.CONFIRM_OWNERSHIP_SUBMIT)[0];e=i.getElementsByClassName(n.CONFIRM_OWNERSHIP_SECURITY_WORD_CONTAINER)[0]},a=function(){for(var n=0;n<f.length;n++)coned.utils.addGeneralListeners(f[n],h);r.addEventListener("keyup",c)},v=function(){l();a();t=!0};v()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.DropdownComponent=function(){var n={SELECT_CLASS:"js-coned-select",LABEL_CLASS:"js-coned-select-label",SELECT_ACTIVE_SELECTOR:"js-coned-select-active",SELECT_ACTIVE_ClASS:"coned-select--active",SELECT_TAG:"general.dropdown.selection"},t=!1,i=function(i){var u,r,f=function(){var t=i.getElementsByClassName(n.SELECT_CLASS),u=t[0],f,e;r.style.display="block";query.addClass(t,n.SELECT_ACTIVE_SELECTOR);query.addClass(t,n.SELECT_ACTIVE_ClASS);TweenMax.to(r,.2,{top:"16",opacity:"1"});f=r.innerText;e=u.options[u.selectedIndex].text;dataLayer.push({event:n.SELECT_TAG,"dropdown.question":f,"dropdown.selected":e})},e=function(){u=i.getElementsByClassName(n.SELECT_CLASS);r=i.getElementsByClassName(n.LABEL_CLASS)[0]},o=function(){for(var n=0;n<u.length;n++)u[n].addEventListener("change",f)},s=function(){e();o();t=!0};s()};return i.prototype.isLoaded=function(){return t},i}();coned=coned||{};coned.components=coned.components||{};coned.components.SelectMultiple=function(){var n={CLASSES:{OPTION_FOCUS:"select-multiple__option--focus",OPTION_CHECKBOX_FOCUS:"coned-checkbox--focus",CHECKBOX_CHECKED:"coned-checkbox--checked"},SELECTORS:{OPTIONS:"js-select-miltiple-option",CHECKBOX:"js-checkbox-selector"},ATTRIBUTES:{CHECKED:"checked",DATA_VALUE:"data-value"}},t=!1,i=function(i){var r,u,s=function(t,i){var r=t.getElementsByClassName(n.SELECTORS.CHECKBOX)[0],u;r instanceof HTMLInputElement&&(u=r.parentElement,u&&(i?u.classList.add(n.CLASSES.CHECKBOX_CHECKED):u.classList.remove(n.CLASSES.CHECKBOX_CHECKED)),i?r.setAttribute(n.ATTRIBUTES.CHECKED,i):r.removeAttribute(n.ATTRIBUTES.CHECKED));t.setAttribute(coned.constants.ARIA.CHECKED,i)},h=function(){i.dataset.value=JSON.stringify(r.value);u.forEach(function(n){var t=e(n),i=r.value.includes(t.value);s(n,i)})},f=function(n){r.value=n;h();coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,r)},c=function(n){var t=r.value.concat(),i=t.includes(n.value);i&&n.selected&&(t=t.filter(function(t){return t!==n.value}));i||n.selected||t.push(n.value);f(t.concat())},e=function(t){var i=t.getElementsByClassName(n.SELECTORS.CHECKBOX)[0],u=t.getAttribute(coned.constants.ARIA.CHECKED)===coned.constants.TRUE,r=t.getAttribute(n.ATTRIBUTES.DATA_VALUE),f=i instanceof HTMLInputElement?i.value:"";return{value:r?r:f,selected:u}},l=function(n){if(n.preventDefault(),n.currentTarget instanceof HTMLElement){var t=e(n.currentTarget);c(t)}},a=function(n){if(n.target){var t=n.target||n.currentTarget;n.code===coned.constants.KEYBOARD_CODE.ENTER||n.code===coned.constants.KEYBOARD_CODE.SPACE||n.code===coned.constants.KEYBOARD_CODE.NUMPAD_ENTER?(n.stopImmediatePropagation(),n.preventDefault(),t.click()):n.code===coned.constants.KEYBOARD_CODE.ESC&&t.blur()}},v=function(n){f(n.detail.value)},o=function(t,i){var u=t.getElementsByClassName(n.SELECTORS.CHECKBOX)[0],r;i?u?(r=u.parentElement,r&&!r.classList.contains(n.CLASSES.OPTION_CHECKBOX_FOCUS)&&r.classList.add(n.CLASSES.OPTION_CHECKBOX_FOCUS)):t.classList.contains(n.CLASSES.OPTION_FOCUS)||t.classList.add(n.CLASSES.OPTION_FOCUS):(coned.utils.arrayFrom(t.getElementsByClassName(n.CLASSES.OPTION_FOCUS)).forEach(function(t){t.classList.remove(n.CLASSES.OPTION_FOCUS)}),coned.utils.arrayFrom(t.getElementsByClassName(n.CLASSES.OPTION_CHECKBOX_FOCUS)).forEach(function(t){t.classList.remove(n.CLASSES.OPTION_CHECKBOX_FOCUS)}))},y=function(n){var t=n.target||n.currentTarget;t&&o(t,!0)},p=function(n){var t=n.target||n.currentTarget;t&&o(t,!1)},w=function(){var t=typeof i.dataset.name!="undefined"?i.dataset.name:"";r={name:t,value:[]};u=coned.utils.arrayFrom(i.getElementsByClassName(n.SELECTORS.OPTIONS))},b=function(){u.forEach(function(n){n.addEventListener("click",l);n.addEventListener("keydown",a);n.addEventListener("focusin",y);n.addEventListener("focusout",p)});i.addEventListener(coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,v)},k=function(){w();b();coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,r);t=!0};k()};return i.prototype.isLoaded=function(){return t},i}();coned=coned||{};coned.components=coned.components||{};coned.components.SelectSingle=function(){var i={SELECTORS:{OPTIONS:"js-select-single-option"},ATTRIBUTES:{DATA_VALUE:"data-value"}},n=!1,t=function(t){var e,u,r,o=function(){if(r=t.dataset.default?t.dataset.default:"",u.length>0){var n=u.find(function(n){return n.dataset.value===r});r=n?n.dataset.value?n.dataset.value:"":""}else r="";f({value:r+""})},s=function(){u.forEach(function(n){var t=n.dataset.value===e.value;t?n.setAttribute(coned.constants.ARIA.SELECTED,coned.constants.TRUE):n.setAttribute(coned.constants.ARIA.SELECTED,coned.constants.FALSE)})},f=function(n){e.value=n.value;t.dataset.value=n.value;s();coned.utils.triggerEvent(t,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,e)},h=function(n){f(n.detail)},c=function(n){var t=n.target||n.currentTarget;t instanceof HTMLElement&&(n.code===coned.constants.KEYBOARD_CODE.ENTER||n.code===coned.constants.KEYBOARD_CODE.SPACE||n.code===coned.constants.KEYBOARD_CODE.NUMPAD_ENTER?(n.stopImmediatePropagation(),n.preventDefault(),t.click()):n.code===coned.constants.KEYBOARD_CODE.ESC&&t.blur())},l=function(n){n.currentTarget instanceof HTMLElement&&(n.currentTarget.getAttribute(coned.constants.ARIA.SELECTED)===coned.constants.TRUE?r.length>0?f({value:""+r}):f({value:""}):f({value:n.currentTarget.dataset.value}))},a=function(){e={name:t.dataset.name?t.dataset.name:"",value:""};u=coned.utils.arrayFrom(t.getElementsByClassName(i.SELECTORS.OPTIONS));o()},v=function(){u.forEach(function(n){n.addEventListener("click",l);n.addEventListener("keydown",c)});t.addEventListener(coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,h)},y=function(){a();v();n=!0};y()};return t.prototype.isLoaded=function(){return n},t}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ServerErrorPage=function(){var n={SERVER_ERROR_HEADER_CLASS:"js-header-wrapper",SERVER_ERROR_HEADER_ORU:"header--oru",SERVER_ERROR_PAGE_CLASS:"js-page-content",SERVER_ERROR_LOGO_CLASS:"js-header-logo",SRC_ATTRIBUTE:"src",SRCSET_ATTRIBUTE:"srcset",SERVER_ERROR_PICTURE:"js-picture",SERVER_ERROR_PICTURE_MOBILE:"js-picture-mobile",SERVER_ERROR_PICTURE_DESKTOP:"js-picture-desktop",SERVER_ERROR_PICTURE_IMAGE:"js-picture-image",SERVER_ERROR_FOOTER_CLASS:"js-footer",SERVER_ERROR_FOOTER_ORU:"footer--oru",LOADER_CLASS:"js-form-loading",HIDDEN_CLASS:"hidden",SERVER_ERROR_TEXT:"js-error-text",SERVER_ERROR_TEXT_ORU:"js-error-text-oru"},t=!1,i=function(i){var r,o,u,f,s,h,c,l,e,a,v,y=function(){var i,t;window.location.href.indexOf("oru.")>-1&&(i=f.dataset.mobileOru,t=f.dataset.desktopOru,r.setAttribute(n.SRC_ATTRIBUTE,r.dataset.oruLogo),e.classList.add(n.SERVER_ERROR_HEADER_ORU),u.classList.add(n.SERVER_ERROR_FOOTER_ORU),s.setAttribute(n.SRCSET_ATTRIBUTE,i),h.setAttribute(n.SRCSET_ATTRIBUTE,t),c.setAttribute(n.SRC_ATTRIBUTE,t),a.classList.add(n.HIDDEN_CLASS),v.classList.remove(n.HIDDEN_CLASS));l.classList.remove(n.HIDDEN_CLASS);u.classList.remove(n.HIDDEN_CLASS);e.classList.remove(n.HIDDEN_CLASS);o.classList.add(n.HIDDEN_CLASS)},p=function(){r=document.getElementsByClassName(n.SERVER_ERROR_LOGO_CLASS)[0];u=document.getElementsByClassName(n.SERVER_ERROR_FOOTER_CLASS)[0];o=document.getElementsByClassName(n.LOADER_CLASS)[0];l=document.getElementsByClassName(n.SERVER_ERROR_PAGE_CLASS)[0];e=document.getElementsByClassName(n.SERVER_ERROR_HEADER_CLASS)[0];f=i.getElementsByClassName(n.SERVER_ERROR_PICTURE)[0];s=i.getElementsByClassName(n.SERVER_ERROR_PICTURE_MOBILE)[0];h=i.getElementsByClassName(n.SERVER_ERROR_PICTURE_DESKTOP)[0];c=i.getElementsByClassName(n.SERVER_ERROR_PICTURE_IMAGE)[0];a=i.getElementsByClassName(n.SERVER_ERROR_TEXT)[0];v=i.getElementsByClassName(n.SERVER_ERROR_TEXT_ORU)[0]},w=function(){p();y();t=!0};w()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ServiceAccountDetails=function(){var n={NAME_SELECTOR:"js-name-selector",FORM_SELECTOR:"js-service-account-details-form",EMAIL_SELECTOR:"js-email-selector",PHONE_SELECTOR:"js-phone-selector",ALTERNATIVE_PHONE_SELECTOR:"js-alternative-phone-selector",SERVICE_ADDRESS_SELECTOR:"js-service-address",SECUNDARY_ADDRESS_SELECTOR:"js-secundary-address-oru",CITY_SELECTOR:"js-city-selector",COUNTRY_SELECTOR:"js-country-oru",STATE_SELECTOR:"js-state-selector",ZIPCODE_SELECTOR:"js-zipcode-selector",INPUT_NAME:"js-input-name",INPUT_EMAIL:"js-input-email",INPUT_PHONE:"js-input-phone",INPUT_ALTERNATIVE_PHONE:"js-input-alternative-phone",INPUT_SERVICE_ADDRESS:"js-input-service-address",INPUT_SECUNDARY_ADDRESS:"js-input-secundary-address",INPUT_CITY:"js-input-city",INPUT_STATE:"js-input-state",INPUT_STATE_OPTIONS:"js-select-option",INPUT_ZIPCODE:"js-input-zipcode",TEXT_INFORMATION:"js-text-info",INPUT_INFORMATION:"js-input-info",EDIT_BUTTON_SELECTOR:"js-edit-button",USER_NAME:"js-account-info-container",HIDDEN_CLASS:"hidden",OPEN_CONTAINER_CLASS:"account-details__container--open",MOBILE_EXTENSION:"js-mobile-extension",ALTERNATIVE_EXTENSION:"js-alternative-extension",MOBILE_PHONE_EXTENSION:"js-mobile-phone-extension",ALTERNATIVE_PHONE_EXTENSION:"js-alternative-phone-extension",SELECT_ACTIVE:"coned-select--active",SELECT_MODIFIER:"account-details__select",COUNTRY_SELECTOR_CANADA:"js-country-canada",COUNTRY_SELECTOR_USA:"js-country-usa",DROPDOWN_COUNTRY:"js-input-country",OTHER_COUNTRY:"js-other-country",IGNORE_VALIDATION_CLASS:"js-ignore-validation-class",IGNORE_CLASS:"js-validation-ignore",USA_ZIPCODE:"js-usa-zipcode",CANADA_ZIPCODE:"js-canada-zipcode",FORM_SCID:"scId",FORM_USER_EMAIL:"accountUserEmail",FORM_MOBILE_NUMBER:"mobilePhoneNumber",FORM_MOBILE_EXTENSION:"mobilePhoneExtension",FORM_ALTERNATIVE_NUMBER:"alternativePhoneNumber",FORM_ALTERNATIVE_NUMBER_EXTENSION:"alternativePhoneExtension",FORM_GIVE_PERMISSION:"givePermission",FORM_ACCOUNT_TYPE:"ServiceDetails",FORM_DIRECT_PAYMENT_AGREE:"directPaymentAgree",FORM_NAME:"mailingAddressName",FORM_ADDRESS:"serviceAddress",FORM_ADDRESS_TWO:"secundaryAddress",FORM_STATE:"state",FORM_USA_CANADA_CITY:"cityAddress",FORM_OTHER_CITY:"cityOtherAddress",FORM_USA_ZIPCODE:"mailingZipCode",FORM_CANADA_ZIPCODE:"mailingCanadaZipCode",FORM_COUNTRY:"selectCountry",FORM_COUNTRY_NAME:"countryName",ACCOUNT_MAID_INPUT:"accountMaid",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",FORM_LOADING:"js-form-loading",HEADER:"js-header-wrapper",SERVICE_OPTION_CONTAINER:"js-mailing-address-container",SERVICE_CHECKBOX:"js-service-mailing",DROPDOWN_LABEL_SELECTOR:"js-coned-select-label",ACTIVE_DROPDOWN:"coned-select--active",ACOUNT_DETAILS_ACTIVE_DROPDOWN:"account-details__select--active",FILLED_CLASS:"coned-input--filled",FIELD_DISABLED_CLASS:"coned-field--disabled",INPUT_MAILING_SELECTOR:"js-input-mailing-address",SELECT_SELECTOR:"js-coned-select",OTHER_CITY:"js-other-city",USA_CANADA_CITY:"js-usa-canada-city",OPTION_ELEMENT:"option",LIST_TYPE_ELEMENT:"li",WRAPPER_SELECTOR:"js-wrapper-selector",WRAPPER:"account-details__info-wrapper",MAILING_OPTION_CONTAINER:"js-mailing-address-container",ACCOUNT_DETAILS_POPUP:"js-account-details-popup-selector",CONTINUE_BUTTON_SELECTOR:"js-popup-button-confirmation",CLOSE_BUTTON:"js-close-button",SAVE_BUTTON:"js-save-button"},t=!1,i=function(i){var wt,hi,bt,st,kt,ht,ct,dt,lt,gt,at,y,p,c,ci,u,li,vt,b,k,ni,f,d,ti,g,nt,a,h,r,e,o,s,ai,vi,ii,tt,yi,yt,l,ri,ui,it,rt,v,ut,fi,ft,pi,wi,bi,ei,et,w,ot,oi,ki=function(){var t;ei.resetForm();l&&l.checked?(_.each(ui,function(t){t.value=t.dataset.serviceValue;t.classList.add(n.FILLED_CLASS);t.parentNode.classList.add(n.FIELD_DISABLED_CLASS);t.disabled=!0}),_.each(ri,function(i){var f=i.options.length,u,r;for(t=i.parentNode,t.classList.add(n.ACOUNT_DETAILS_ACTIVE_DROPDOWN),i.disabled=!0,r=0;r<f;r++)u=i.options[r].value,u===i.dataset.serviceValue&&(i.selectedIndex=i.options[r].index)})):(_.each(ui,function(t){t.dataset.optional||t.setAttribute("required","");t.parentNode.classList.remove(n.FIELD_DISABLED_CLASS);t.disabled=!1}),_.each(ri,function(i){var u=!1,e=i.options.length,f,r;if(i.dataset.optional||i.setAttribute("required",""),i.disabled=!1,i.dataset.savedValue=="")di(i);else{for(r=0;r<e;r++)f=i.options[r].value,f===i.dataset.savedValue&&(t=i.parentNode,t.classList.add(n.ACOUNT_DETAILS_ACTIVE_DROPDOWN),i.selectedIndex=i.options[r].index,i.classList.add(n.SELECT_ACTIVE),u=!0);u||di(i)}}));f!==undefined&&pt(!1)},di=function(t){var i=t.parentNode.getElementsByClassName(n.DROPDOWN_LABEL_SELECTOR)[0],r=t.parentNode;i.style="";t.style="";t.selectedIndex=0;t.classList.remove(n.ACTIVE_DROPDOWN);r.classList.remove(n.ACOUNT_DETAILS_ACTIVE_DROPDOWN)},gi=function(t,i){var r=t.innerHTML.trim(),u=i.getElementsByClassName(n.INPUT_STATE_OPTIONS);_.each(u,function(n){n.innerHTML.trim()==r&&n.setAttribute("selected","")});i.classList.add(n.SELECT_ACTIVE);i.parentElement.classList.add(n.SELECT_MODIFIER)},nr=function(){vt.value=at.innerHTML;b.value=y.dataset.phone;k.value=p.dataset.phone;r!==undefined&&r.dataset.extension!==""?o.value=r.innerHTML.replace(r.dataset.copy,""):r!==undefined&&o.value===""&&o.classList.remove(n.FILLED_CLASS);e!==undefined&&e.dataset.extension!==""?s.value=e.innerHTML.replace(e.dataset.copy,""):r!==undefined&&s.value===""&&s.classList.remove(n.FILLED_CLASS);dt.value=wt.textContent;lt.value=lt.dataset.savedValue;gi(ht,u);ei=$(i).validate();coned.utils.isOru()&&(gt.value=bt.innerHTML,gi(st,f),pt(!1));it.dataset.serviceAddress=l&&l.checked?"true":"false";_.each(li,function(n){n.value=ct.innerHTML.trim()});_.each(ci,function(n){n.value=kt.innerHTML.trim()})},tr=function(){at.innerHTML=vt.value;y.innerHTML=y.dataset.phoneLabel+" "+b.value;y.dataset.phone=b.value;p.innerHTML=p.dataset.phoneLabel+" "+k.value;p.dataset.phone=k.value;r!==undefined&&o.value!==""?(r.innerHTML=r.dataset.copy+o.value,r.dataset.extension=o.value,o.classList.add(n.FILLED_CLASS)):r!==undefined&&o.value===""&&(r.innerHTML="",r.dataset.extension="",o.classList.remove(n.FILLED_CLASS));e!==undefined&&s.value!==""?(e.innerHTML=e.dataset.copy+s.value,e.dataset.extension=s.value,o.classList.add(n.FILLED_CLASS)):r!==undefined&&s.value===""&&(e.innerHTML="",e.dataset.extension="",s.classList.remove(n.FILLED_CLASS));wt.textContent=dt.value;hi.innerHTML=lt.value;kt.innerHTML=i.querySelector("[name="+w+"]").value;ht.innerHTML=u.options[u.selectedIndex].text;ct.innerHTML=i.querySelector("[name="+et+"]").value;coned.utils.isOru()&&(f.value.toLowerCase()=="other"?(st.innerHTML=query.getFormInputValue(i,n.FORM_COUNTRY_NAME),ct.innerHTML=""):st.innerHTML=f[f.selectedIndex].text,u.value.toLowerCase()=="default"&&(ht.innerHTML=""),bt.innerHTML=gt.value)},ir=function(t){t.preventDefault();var r=i.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled]), input[type="email"]:not([disabled]), input[type="tel"]:not([disabled])'),u=r[0];ft&&ft.classList.remove(n.HIDDEN_CLASS);query.addClass(ni,n.HIDDEN_CLASS);query.removeClass(ti,n.HIDDEN_CLASS);c.classList.add(n.HIDDEN_CLASS);c.setAttribute(n.ARIA_EXPANDED,!0);fi.classList.remove(n.WRAPPER);i.classList.add(n.OPEN_CONTAINER_CLASS);u.focus()},si=function(){query.removeClass(ni,n.HIDDEN_CLASS);query.addClass(ti,n.HIDDEN_CLASS);fi.classList.add(n.WRAPPER);query.addClass(ut,n.HIDDEN_CLASS);c.classList.remove(n.HIDDEN_CLASS);c.setAttribute(n.ARIA_EXPANDED,!1);i.classList.remove(n.OPEN_CONTAINER_CLASS);ft&&ft.classList.add(n.HIDDEN_CLASS);c.focus()},rr=function(){ut.BackFocus=bi;var t=ut.querySelectorAll(coned.constants.FOCUSABLE_ELEMENTS_POPUP),i=t[0];ut.classList.remove(n.HIDDEN_CLASS);i.focus()},ur=function(n){n.preventDefault();pt(!1,!0)},pt=function(t,i){var r=f.value.toLowerCase(),e;f.dataset.savedValue.toLowerCase()!="usa"&&f.dataset.savedValue.toLowerCase()!="canada"&&i&&(r="other",f.selectedIndex=3);ei.resetForm();a.classList.add(n.IGNORE_VALIDATION_CLASS);a.parentElement.classList.add(n.HIDDEN_CLASS);h.classList.add(n.IGNORE_VALIDATION_CLASS);h.parentElement.classList.add(n.HIDDEN_CLASS);u.parentElement.classList.remove(n.HIDDEN_CLASS);u.classList.remove(n.IGNORE_VALIDATION_CLASS);d.parentElement.classList.add(n.HIDDEN_CLASS);d.classList.add(n.IGNORE_VALIDATION_CLASS);v.classList.remove(n.IGNORE_VALIDATION_CLASS);v.parentElement.classList.remove(n.HIDDEN_CLASS);rt.parentElement.classList.add(n.HIDDEN_CLASS);r=="usa"?(query.addClass(nt,n.HIDDEN_CLASS),query.removeClass(g,n.HIDDEN_CLASS),ot&&(coned.utils.changeListType(nt,n.LIST_TYPE_ELEMENT),oi=u.selectedIndex,coned.utils.changeListType(g,n.OPTION_ELEMENT)),a.classList.remove(n.IGNORE_VALIDATION_CLASS),a.parentElement.classList.remove(n.HIDDEN_CLASS),et=n.FORM_USA_ZIPCODE,w=n.FORM_USA_CANADA_CITY):r=="canada"?(query.removeClass(nt,n.HIDDEN_CLASS),query.addClass(g,n.HIDDEN_CLASS),ot&&(coned.utils.changeListType(g,n.LIST_TYPE_ELEMENT),oi=u.selectedIndex,coned.utils.changeListType(nt,n.OPTION_ELEMENT)),h.classList.remove(n.IGNORE_VALIDATION_CLASS),h.parentElement.classList.remove(n.HIDDEN_CLASS),et=n.FORM_CANADA_ZIPCODE,w=n.FORM_USA_CANADA_CITY):r=="other"&&(u.parentElement.classList.add(n.HIDDEN_CLASS),u.classList.add(n.IGNORE_VALIDATION_CLASS),d.parentElement.classList.remove(n.HIDDEN_CLASS),d.classList.remove(n.IGNORE_VALIDATION_CLASS),v.classList.add(n.IGNORE_VALIDATION_CLASS),v.parentElement.classList.add(n.HIDDEN_CLASS),rt.parentElement.classList.remove(n.HIDDEN_CLASS),w=n.FORM_OTHER_CITY);ot&&(u.selectedIndex=oi);t&&(e=u.parentElement.getElementsByClassName(n.DROPDOWN_LABEL_SELECTOR)[0],e.removeAttribute("style"),u.removeAttribute("style"),u.selectedIndex=0,u.classList.remove(n.SELECT_ACTIVE),u.parentElement.classList.remove(n.ACOUNT_DETAILS_ACTIVE_DROPDOWN),a.value="",a.classList.remove(n.FILLED_CLASS),h.value="",h.classList.remove(n.FILLED_CLASS),rt.value="",rt.classList.remove(n.FILLED_CLASS),v.value="",v.classList.remove(n.FILLED_CLASS))},fr=function(){it.dataset.serviceAddress=="true"&&l.checked&&(yt.classList.add(n.HIDDEN_CLASS),si(),query.scrollToElement(i,ii));var h=i.dataset.serviceUrl,c=vt.value!=at.innerHTML,u=b.value!=y.dataset.phone,f=k.value!=p.dataset.phone,t;r!==undefined&&(r.innerHTML!==""?u=r.dataset.copy+o.value!=r.innerHTML:o.value!==""&&(u=!0));e!==undefined&&(e.innerHTML!==""?f=e.dataset.copy+s.value!=e.innerHTML:s.value!==""&&(f=!0));er();t={Maid:ai.value,ScId:query.getFormInputValue(i,n.FORM_SCID),UpdateAccountType:n.FORM_ACCOUNT_TYPE,Email:query.getFormInputValue(i,n.FORM_USER_EMAIL),EmailUpdated:c,MobilePhone:query.getFormInputValue(i,n.FORM_MOBILE_NUMBER),MobilePhoneExtension:query.getFormInputValue(i,n.FORM_MOBILE_EXTENSION),AlternatePhoneUpdated:u,AlternativePhone:query.getFormInputValue(i,n.FORM_ALTERNATIVE_NUMBER),AlternativePhoneExtension:query.getFormInputValue(i,n.FORM_ALTERNATIVE_NUMBER_EXTENSION),PrimaryPhoneUpdated:f,MailingAddress:or()};t=JSON.stringify(t);query.postData(h,sr,hr,t,!0,vi)},er=function(){tt.classList.add(n.HIDDEN_CLASS)},or=function(){var r,t,u,e;return f!==undefined&&f.value.toLowerCase()=="other"?(r="",t=query.getFormInputValue(i,n.FORM_COUNTRY_NAME),u=null):(r=query.getFormInputValue(i,n.FORM_STATE),t=query.getFormInputValue(i,n.FORM_COUNTRY),u=query.getFormInputValue(i,et)),e={Name:query.getFormInputValue(i,n.FORM_NAME),Street1:query.getFormInputValue(i,n.FORM_ADDRESS),Street2:query.getFormInputValue(i,n.FORM_ADDRESS_TWO),Street3:null,City:query.getFormInputValue(i,w),State:r,PostalCode:u,Country:t,AddressKey:null},f!==undefined&&(f.dataset.savedValue=t),e},sr=function(){tr();si();nr();tt.classList.add(n.HIDDEN_CLASS);query.scrollToElement(i,ii);yt&&(yt.classList.add(n.HIDDEN_CLASS),h!==undefined&&h.parentElement.classList.add(n.HIDDEN_CLASS))},hr=function(t){tt.classList.remove(n.HIDDEN_CLASS);yi.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;tt.focus()},cr=function(){wt=i.getElementsByClassName(n.NAME_SELECTOR)[0];hi=i.getElementsByClassName(n.SERVICE_ADDRESS_SELECTOR)[0];bt=i.getElementsByClassName(n.SECUNDARY_ADDRESS_SELECTOR)[0];kt=i.getElementsByClassName(n.CITY_SELECTOR)[0];ht=i.getElementsByClassName(n.STATE_SELECTOR)[0];ct=i.getElementsByClassName(n.ZIPCODE_SELECTOR)[0];dt=i.getElementsByClassName(n.INPUT_NAME)[0];lt=i.getElementsByClassName(n.INPUT_SERVICE_ADDRESS)[0];gt=i.getElementsByClassName(n.INPUT_SECUNDARY_ADDRESS)[0];ci=i.getElementsByClassName(n.INPUT_CITY);rt=i.getElementsByClassName(n.OTHER_CITY)[0];v=i.getElementsByClassName(n.USA_CANADA_CITY)[0];u=i.getElementsByClassName(n.INPUT_STATE)[0];li=i.getElementsByClassName(n.INPUT_ZIPCODE);ni=i.getElementsByClassName(n.TEXT_INFORMATION);ti=i.getElementsByClassName(n.INPUT_INFORMATION);f=i.getElementsByClassName(n.DROPDOWN_COUNTRY)[0];nt=i.getElementsByClassName(n.COUNTRY_SELECTOR_CANADA);g=i.getElementsByClassName(n.COUNTRY_SELECTOR_USA);st=i.getElementsByClassName(n.COUNTRY_SELECTOR)[0];d=i.getElementsByClassName(n.OTHER_COUNTRY)[0];a=i.getElementsByClassName(n.USA_ZIPCODE)[0];h=i.getElementsByClassName(n.CANADA_ZIPCODE)[0];tt=i.getElementsByClassName(n.SERVICE_ERROR)[0];yi=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];yt=i.getElementsByClassName(n.SERVICE_OPTION_CONTAINER)[0];l=i.getElementsByClassName(n.SERVICE_CHECKBOX)[0];ui=i.getElementsByClassName(n.INPUT_MAILING_SELECTOR);ri=i.getElementsByClassName(n.SELECT_SELECTOR);ai=document.getElementsByName(n.ACCOUNT_MAID_INPUT)[0];ii=document.getElementsByClassName(n.HEADER)[0];vi=document.getElementsByClassName(n.FORM_LOADING)[0];it=document.getElementsByClassName(n.FORM_SELECTOR)[0];ft=i.getElementsByClassName(n.MAILING_OPTION_CONTAINER)[0];et=n.FORM_USA_ZIPCODE;w=n.FORM_USA_CANADA_CITY;ot=!1;at=i.getElementsByClassName(n.EMAIL_SELECTOR)[0];y=i.getElementsByClassName(n.PHONE_SELECTOR)[0];p=i.getElementsByClassName(n.ALTERNATIVE_PHONE_SELECTOR)[0];vt=i.getElementsByClassName(n.INPUT_EMAIL)[0];b=i.getElementsByClassName(n.INPUT_PHONE)[0];k=i.getElementsByClassName(n.INPUT_ALTERNATIVE_PHONE)[0];r=i.getElementsByClassName(n.MOBILE_EXTENSION)[0];e=i.getElementsByClassName(n.ALTERNATIVE_EXTENSION)[0];o=i.getElementsByClassName(n.MOBILE_PHONE_EXTENSION)[0];s=i.getElementsByClassName(n.ALTERNATIVE_PHONE_EXTENSION)[0];c=i.getElementsByClassName(n.EDIT_BUTTON_SELECTOR)[0];wi=i.getElementsByClassName(n.CLOSE_BUTTON)[0];fi=document.getElementsByClassName(n.WRAPPER_SELECTOR)[0];ut=document.getElementsByClassName(n.ACCOUNT_DETAILS_POPUP)[0];pi=document.getElementsByClassName(n.CONTINUE_BUTTON_SELECTOR)[0];bi=document.getElementsByClassName(n.SAVE_BUTTON)[0]},lr=function(){coned.utils.addGeneralListeners(wi,si);coned.utils.addGeneralListeners(c,ir);new coned.components.ValidateForm(it,rr);nr();f!==undefined&&(f.addEventListener("change",function(){pt(!0)}),coned.utils.addGeneralListeners(c,ur));l&&l.addEventListener("change",ki);ki();ot=!0;coned.utils.addGeneralListeners(pi,fr);new coned.components.AccountDetails(i)},ar=function(){cr();lr();t=!0};ar()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ServiceManagementZipcodeStep=function(){var n={ZIP_CODE_SELECTOR:"js-service-management-zipcode-input",CONTINUE_SELECTOR:"js-service-management-zipcode-submit",ZIP_CODE_FORM:"js-service-management-form",FORM_LOADING:"js-form-loading",RECAPTCHA:"js-recaptcha",FORM_COMPANY_CODE_NAME:"serviceManagementCompanyCode",FORM_ADDRESS_SCID_NAME:"serviceManagementScId",FORM_ZIPCODE_NAME:"serviceManagementZipCode",NEXT_STEP_LISTENER:"trigger-next-step",INPUT_FILLED_CLASS:"coned-input--filled",VALID_CLASS:"valid"},t=!1,i=function(i){var u,r,e,o,s,f,l=function(){r.disabled=!0;s?f&&f.getResponse()===""?f.checkRecaptcha():(f.reset(),f.checkRecaptcha()):h()},h=function(t){t&&t.preventDefault();var u=e.dataset.zipcodeServiceUrl,h=e.dataset.searchForStreetname,r;r={ScId:query.getFormInputValue(i,n.FORM_ADDRESS_SCID_NAME),SearchFor:h,CompanyCode:query.getFormInputValue(i,n.FORM_COMPANY_CODE_NAME),ZipCode:query.getFormInputValue(e,n.FORM_ZIPCODE_NAME)};s&&f&&f.getResponse()!==""&&(r.Verify=f.getResponse());coned.utils.isPatternLab()?(o.classList.remove("form-loading--hidden"),setTimeout(function(){o.classList.add("form-loading--hidden");c()},2e3)):query.getData(u,c,a,r,o)},c=function(){var t=[],f=u.dataset.queryParameter.split(","),i={breadcrumbCopy:r.dataset.breadcrumbCopy,nextStep:r.dataset.nextStep,inputs:[{name:u.name,value:u.value}]};_.each(f,function(n){t.push({name:n,value:u.value})});t.length&&(i.changeHref=t);r.disabled=!1;query.fireEvent(r,n.NEXT_STEP_LISTENER,i)},a=function(t){var i={breadcrumbCopy:r.dataset.breadcrumbCopy,nextStep:r.dataset.errorStep,inputs:[{name:u.name,value:u.value}]};t?t.internalError?(i.nextStep=r.dataset.internalErrorStep,dataLayer.push({event:"transferService.internal.error"})):dataLayer.push({event:"transferService.notInArea.error"}):dataLayer.push({event:"transferService.notInArea.error"});r.disabled=!1;query.fireEvent(r,n.NEXT_STEP_LISTENER,i)},v=function(){e=i.getElementsByClassName(n.ZIP_CODE_FORM)[0];u=i.getElementsByClassName(n.ZIP_CODE_SELECTOR)[0];r=i.getElementsByClassName(n.CONTINUE_SELECTOR)[0];o=i.getElementsByClassName(n.FORM_LOADING)[0];s=i.getElementsByClassName(n.RECAPTCHA).length?!0:!1},y=function(){u.addEventListener("keyup",function(n){n||(n=window.event);n.preventDefault();var t=u.value.length;r.disabled=t==5?!$(e).validate().checkForm():!0;n.keyCode==13&&r.click()});new coned.components.ValidateForm("."+n.ZIP_CODE_FORM,l,"."+n.VALIDATE_IGNORE);s&&(f=new coned.components.Recaptcha(e,h,h))},p=function(){v();y();t=!0};p()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ServiceManagement=function(){var n={HEADER:"js-header-wrapper",STEP_CONTAINER:"js-service-management-steps-container",STEP_SELECTOR:"js-service-management-step",STEP_NEXT_BUTTON:"js-step-next-button",STEP_FINAL_BUTTON:"js-final-step-button",STEP_HAS_INPUT:"js-step-has-input-button",STEP_PARAGRAPH:"js-service-management-step-paragraph",BREADCRUMBS_CONTAINER:"js-service-management-breadcrumbs-container",STEP_BREADCRUMB:"js-service-management-breadcrumb",STEP_BREADCRUMB_TEXT:"js-service-management-breadcrumb-text",BREADCRUMBS_EDIT_BUTTONS:"service-management__breadcrumb-expand",DISABLED_PROGRESS_BAR_ITEM_CLASS:"form-progress-bar__item-disabled",PROGRESS_BAR_STEP:"js-get-started-breadcrumb",PROGRESS_BAR_SELECTOR:"js-form-progress-bar",INPUT_FILLED_CLASS:"coned-input--filled",NEXT_STEP_LISTENER:"trigger-next-step",INACTIVE_CLASS:"inactive",HIDDEN_CLASS:"hidden",VALID_CLASS:"valid",TAG_PREFIX:"tag-",BORDER_FOCUS_SIZE:4,TAB_INDEX:"tabindex",STEPS_LIST:"js-steps-list",ARIA_LABEL_ATTRIBUTE:"aria-label",USING_MOUSE_CLASS:"service-management__using-mouse",ENTER_KEY:13},t=!1,i=function(i){var h,f,c,e,l,u,o,r,s,a,y=function(t){var i=t.currentTarget,p,w,b;if(i.disabled||i.wasDragged)return!1;var c=r.getElementsByClassName(n.STEP_NEXT_BUTTON),e=f.querySelector("."+n.STEP_BREADCRUMB+'[data-step-id="'+r.dataset.stepId+'"]'),y=e.querySelector("."+n.BREADCRUMBS_EDIT_BUTTONS),a=e.getElementsByClassName(n.STEP_BREADCRUMB_TEXT)[0],s=u.querySelector("."+n.STEP_SELECTOR+'[data-step-id="'+i.dataset.nextStep+'"]'),v=s.querySelectorAll('input[type="text"]'),o=s.getElementsByClassName(n.STEP_NEXT_BUTTON),k=document.getElementsByClassName(n.PROGRESS_BAR_STEP)[0];a.innerHTML=i.dataset.breadcrumbCopy;y.setAttribute(n.ARIA_LABEL_ATTRIBUTE,i.dataset.breadcrumbAssistiveCopy);query.hasClass(i,n.STEP_HAS_INPUT)&&(p=r.querySelectorAll('input[type="text"]'),_.each(p,function(t){a.innerHTML=a.innerHTML.split("@"+t.name).join(t.value);y.setAttribute(n.ARIA_LABEL_ATTRIBUTE,i.dataset.breadcrumbAssistiveCopy.split("@"+t.name).join(t.value));t.value="";t.classList.remove(n.VALID_CLASS);t.classList.remove(n.INPUT_FILLED_CLASS)}));v&&v.length&&(w=s.querySelector("form"),_.each(v,function(t){t.value="";t.classList.remove(n.INPUT_FILLED_CLASS)}),$(w).validate().resetForm(),o&&o.length&&_.each(o,function(n){n.disabled=!0}));c&&c.length&&_.each(c,function(n){n.disabled=!0});query.hasClass(e,n.TAG_PREFIX,!0)&&(b=query.getClass(e,n.TAG_PREFIX),_.each(b,function(n){e.className=e.className.replace(n,"")}));e.classList.add(i.dataset.breadcrumbTag);r.classList.add(n.INACTIVE_CLASS);s.classList.remove(n.INACTIVE_CLASS);e.classList.remove(n.INACTIVE_CLASS);o&&o.length&&_.each(o,function(t){query.hasClass(t,n.STEP_HAS_INPUT)||setTimeout(function(){t.disabled=!1},500)});r=s;r!=l[0]&&query.removeClass(k,n.DISABLED_PROGRESS_BAR_ITEM_CLASS);coned.utils.isMobile()&&coned.utils.scrollTo(u.offsetTop+f.offsetHeight-h.offsetHeight,500)},p=function(t){var y=t.currentTarget,b,o,s,k,d;if(y.disabled||y.wasDragged)return!1;var c=r.getElementsByClassName(n.STEP_NEXT_BUTTON),i=f.querySelector("."+n.STEP_BREADCRUMB+'[data-step-id="'+r.dataset.stepId+'"]'),p=i.querySelector("."+n.BREADCRUMBS_EDIT_BUTTONS),l=i.getElementsByClassName(n.STEP_BREADCRUMB_TEXT)[0],e=u.querySelector("."+n.STEP_SELECTOR+'[data-step-id="'+t.details.nextStep+'"]'),a=e.querySelectorAll('input[type="text"]'),v=e.getElementsByClassName(n.STEP_NEXT_BUTTON),w=t.srcElement;if(l.innerHTML=t.details.breadcrumbCopy,p.setAttribute(n.ARIA_LABEL_ATTRIBUTE,w.dataset.breadcrumbAssistiveCopy),t.details.inputs&&_.each(t.details.inputs,function(t){l.innerHTML=l.innerHTML.split("@"+t.name).join(t.value);p.setAttribute(n.ARIA_LABEL_ATTRIBUTE,w.dataset.breadcrumbAssistiveCopy.split("@"+t.name).join(t.value))}),a&&a.length&&(b=e.querySelector("form"),_.each(a,function(t){t.value="";t.classList.remove(n.INPUT_FILLED_CLASS)}),$(b).validate().resetForm()),t.details.changeHref){for(o=u.querySelector("."+n.STEP_SELECTOR+'[data-step-id="'+t.details.nextStep+'"]'),s=o.getElementsByClassName(n.STEP_FINAL_BUTTON);!s.length;)k=o.getElementsByClassName(n.STEP_NEXT_BUTTON)[0],o=u.querySelector("."+n.STEP_SELECTOR+'[data-step-id="'+k.dataset.nextStep+'"]'),s=o.getElementsByClassName(n.STEP_FINAL_BUTTON);_.each(t.details.changeHref,function(n){s[0].href=coned.utils.updateUrlParameter(n.name,n.value,s[0].href)})}c&&c.length&&_.each(c,function(n){n.disabled=!0});query.hasClass(i,n.TAG_PREFIX,!0)&&(d=query.getClass(i,n.TAG_PREFIX),_.each(d,function(n){i.className=i.className.replace(n,"")}));i.classList.add(t.target.dataset.breadcrumbTag);r.classList.add(n.INACTIVE_CLASS);e.classList.remove(n.INACTIVE_CLASS);i.classList.remove(n.INACTIVE_CLASS);v&&v.length&&_.each(v,function(t){query.hasClass(t,n.STEP_HAS_INPUT)||setTimeout(function(){t.disabled=!1},500)});r=e;coned.utils.isMobile()&&coned.utils.scrollTo(u.offsetTop+f.offsetHeight-h.offsetHeight,500)},v=function(){for(var n=0;n<o.length;n++)o[n]!=null&&coned.utils.lineClamp(o[n])},w=function(t){var h=t.currentTarget,c=h.parentNode,i;if(h.wasDragged)return!1;var f=r.getElementsByClassName(n.STEP_NEXT_BUTTON),o=u.querySelector("."+n.STEP_SELECTOR+'[data-step-id="'+c.dataset.stepId+'"]'),s=o.getElementsByClassName(n.STEP_NEXT_BUTTON),a=document.getElementsByClassName(n.PROGRESS_BAR_STEP)[0];for(i=query.indexOf(e,c);i<e.length;i++)e[i].classList.add(n.INACTIVE_CLASS);f&&f.length&&_.each(f,function(n){n.disabled=!0});r.classList.add(n.INACTIVE_CLASS);o.classList.remove(n.INACTIVE_CLASS);s&&s.length&&_.each(s,function(n){setTimeout(function(){n.disabled=!1},500)});r=o;r==l[0]&&query.addClass(a,n.DISABLED_PROGRESS_BAR_ITEM_CLASS)},b=function(){h=document.getElementsByClassName(n.HEADER)[0];e=i.getElementsByClassName(n.STEP_BREADCRUMB);c=i.querySelectorAll("."+n.BREADCRUMBS_EDIT_BUTTONS);f=i.getElementsByClassName(n.BREADCRUMBS_CONTAINER)[0];l=i.getElementsByClassName(n.STEP_SELECTOR);o=i.getElementsByClassName(n.STEP_PARAGRAPH);u=i.getElementsByClassName(n.STEP_CONTAINER)[0];r=i.getElementsByClassName(n.STEP_SELECTOR)[0];s=i.getElementsByClassName(n.STEP_NEXT_BUTTON);a=document.getElementsByClassName(n.PROGRESS_BAR_SELECTOR)[0]},k=function(){setTimeout(function(){_.each(s,function(n){n.disabled=!1})},300)},d=function(){v();window.addEventListener("resize",v);_.each(s,function(t){query.hasClass(t,n.STEP_HAS_INPUT)?t.addEventListener(n.NEXT_STEP_LISTENER,p):coned.utils.addGeneralListeners(t,function(n){n.stopPropagation();n.preventDefault();y(n)})});_.each(c,function(n){coned.utils.addGeneralListeners(n,w)});_.each(c,function(n){n.addEventListener("touchstart",function(n){var t=n.currentTarget;t.wasDragged=!1},coned.supportsPassive?{passive:!0}:!1);n.addEventListener("touchmove",function(n){var t=n.currentTarget;t.wasDragged=!0},coned.supportsPassive?{passive:!0}:!1)});_.each(s,function(n){n.addEventListener("touchstart",function(n){var t=n.currentTarget;t.wasDragged=!1},coned.supportsPassive?{passive:!0}:!1);n.addEventListener("touchmove",function(n){var t=n.currentTarget;t.wasDragged=!0},coned.supportsPassive?{passive:!0}:!1)});i.addEventListener("mousedown",function(){query.addClass(i,n.USING_MOUSE_CLASS);query.addClass(a,n.USING_MOUSE_CLASS)});i.addEventListener("keydown",function(){query.removeClass(i,n.USING_MOUSE_CLASS);query.removeClass(a,n.USING_MOUSE_CLASS)})},g=function(){b();k();d();t=!0};g()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SessionTimeOut=function(){var n={SESSION_TIME_OUT_ALERT:"js-timeout-alert",SESSION_TIME_OUT_EXPIRED:"js-timeout-expired",LOG_OUT:"js-session-logout",STAY_IN:"js-stay-logged-in",TIMER:"js-timer",CLOSE_BUTTON:"js-close-button",HIDDEN_CLASS:"hidden",TWO_MINUTES:120,SIXTY_SECONDS:"60000",THIRTEEN_MINUTES:"780000"},t=!1,i=function(i){var f,u,v,y,e,o,r,p,s,h,c=function(n){clearTimeout(v);v=setTimeout(function(){query.getData(f,d,function(){})},n)},d=function(n){if(coned.utils.isPatternLab()){var t=coned.plConstants.GET_SESSION_TIMEOUT;query.getData(t,l,function(){})}else l(n)},l=function(t){var u=parseInt(t.RemainingSeconds);u<=n.TWO_MINUTES?(i.classList.remove(n.HIDDEN_CLASS),r.focus(),ft(u,s)):(u=(u-n.TWO_MINUTES)*1e3,c(u))},g=function(){clearInterval(u);k()},nt=function(n){clearInterval(u);l(n)},a=function(){clearInterval(u);i.classList.add(n.HIDDEN_CLASS);s.textContent="02:00"},tt=function(){event.stopPropagation();event.preventDefault();a();coned.utils.logout(r.dataset.logoutUrl,r.href)},it=function(){a();location.reload()},w=function(){query.postData(y,rt,ut)},rt=function(){a();c(n.THIRTEEN_MINUTES)},ut=function(){setTimeout(function(){w()},n.SIXTY_SECONDS)},ft=function(t,f){var o=t,e,s,h;e=b(o);s=e.minutes;h=e.seconds;f.textContent=s+":"+h;o--;i.classList.remove(n.HIDDEN_CLASS);r.focus();u=setInterval(function(){e=b(o);s=e.minutes;h=e.seconds;f.textContent=s+":"+h;o--<0&&(o=t,clearInterval(u),k())},1e3)},b=function(n){var t=parseInt(n/60,10),i=parseInt(n%60,10);return t=t<10?"0"+t:t,i=i<10?"0"+i:i,{minutes:t,seconds:i}},k=function(){e.classList.add(n.HIDDEN_CLASS);o.classList.remove(n.HIDDEN_CLASS);h.focus()},et=function(){f=i.dataset.getAuthToken;y=i.dataset.setKeepAlive;e=i.getElementsByClassName(n.SESSION_TIME_OUT_ALERT)[0];o=i.getElementsByClassName(n.SESSION_TIME_OUT_EXPIRED)[0];r=i.getElementsByClassName(n.LOG_OUT)[0];p=i.getElementsByClassName(n.STAY_IN)[0];s=i.getElementsByClassName(n.TIMER)[0];h=i.getElementsByClassName(n.CLOSE_BUTTON)[0]},ot=function(){r.addEventListener("click",tt);p.addEventListener("click",w);h.addEventListener("click",it);new coned.utils.addFocusTrap(e);new coned.utils.addFocusTrap(o);coned.utils.isPatternLab()||document.addEventListener("visibilitychange",function(){document.hidden||query.getData(f,nt,g)})},st=function(){et();ot();var r=i.dataset.isAuthenticaded;r!=="false"&&c(n.THIRTEEN_MINUTES);t=!0};st()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SetMultiFactorAuthentication=function(){var n={SET_MFA_FORM:"js-mfa-parent-form",SUBMIT_ANIMATION_BUTTON:"js-submit-progress-animation",SUBMIT_BUTTON:"js-transactional-submit-selector",SECURITY_QUESTION_SELECT:"js-coned-select",SET_MFA_ACCESS_CODE:"accessCode",SET_MFA_SITECORE_ID:"ScId",SET_MFA_USER_ID:"userId",SET_MFA_MOBILE_PHONE:"mfaMobilePhone",SET_MFA_QUESTION:"securityQuestion",SET_MFA_ANSWER:"securityAnswer",SET_MFA_VERIFICATON_BY:"verificationOption",SET_MFA_VERIFICATION_CODE:"verificationCode",HIDDEN_CLASS:"hidden",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",FROM_URI_PARAMETER_NAME:"fromURI",TAGGING_PAGE_LOAD:"Step05.Page.Load",TAGGING_CODE_SUBMIT:"Step05.Submit",TAGGING_SUCCESS:"Step06.Reg.Complete"},t=!1,i=function(i){var u,e,o,s,h,r,a=function(){new coned.components.SubmitAnimation(u,v,y,p,!1,!1)},v=function(){var r=i.dataset.service,f=i.dataset.factorId?i.dataset.factorId:"",u=query.getFormInputValue(i,n.SET_MFA_VERIFICATON_BY),t;w();t={FirstSet:!0,AccessCode:query.getFormInputValue(i,n.SET_MFA_ACCESS_CODE),ScId:query.getFormInputValue(i,n.SET_MFA_SITECORE_ID),UserId:query.getFormInputValue(i,n.SET_MFA_USER_ID),FactorId:f,MobilePhoneNumber:query.getFormInputValue(i,n.SET_MFA_MOBILE_PHONE),SecurityQuestion:query.getFormInputValue(i,n.SET_MFA_QUESTION),SecurityQuestionValue:o.options[o.selectedIndex].text,SecurityAnswer:query.getFormInputValue(i,n.SET_MFA_ANSWER),StepVerification:u,SecurityCode:query.getFormInputValue(i,n.SET_MFA_VERIFICATION_CODE),ReturnUrl:coned.utils.getUrlParameterValue(n.FROM_URI_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.FROM_URI_PARAMETER_NAME):"",ReturnUrlAutoAddAccounts:i.dataset.urlAutoAddAccounts};t.MobilePhoneNumber===null||t.MobilePhoneNumber===""?t.StepVerification=null:(t.SecurityQuestion=null,t.SecurityAnswer=null,t.SecurityQuestionValue=null);dataLayer.push({mfa:u});i.dataset.tagging&&dataLayer.push({event:i.dataset.tagging+n.TAGGING_CODE_SUBMIT});e.disabled=!0;t=JSON.stringify(t);coned.utils.isPatternLab()?(r=coned.plConstants.GET_LOGIN_MFA,query.getData(r,c,l,t)):query.postData(r,c,l,t,!0)},y=function(){if(r.Status){dataLayer.push({isLoggedIn:"true"});i.dataset.tagging&&dataLayer.push({event:i.dataset.tagging+n.TAGGING_SUCCESS});window.location.href=r.authRedirectUrl;return}u.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);r.errorMsg=r.codeErrorMsg;f(r)},p=function(){e.disabled=!1;coned.utils.isPatternLab()?query.getData(coned.plConstants.DEFAULT_SERVICE_ERROR,f,f):f(r)},w=function(){_.each(s,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(h,function(n){n.innerHTML=""})},c=function(n){r=n;u.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},l=function(n){u.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);r=n},f=function(t){var i=t.errorMsg;_.each(s,function(t){t.classList.remove(n.HIDDEN_CLASS);t.focus()});_.each(h,function(n){n.innerHTML=i})},b=function(){u=i.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];e=i.getElementsByClassName(n.SUBMIT_BUTTON)[0];o=i.getElementsByClassName(n.SECURITY_QUESTION_SELECT)[0];s=i.getElementsByClassName(n.SERVICE_ERROR);h=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)},k=function(){i.dataset.tagging&&dataLayer.push({event:i.dataset.tagging+n.TAGGING_PAGE_LOAD});new coned.components.ValidateForm("."+n.SET_MFA_FORM,a)},d=function(){b();k();t=!0};d()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SetNewPassword=function(){var n={FORM_CLASS_SELECTOR:".js-set-password-form",PASSWORD_INPUT:"js-password-input",CONFIRM_PASSWORD_INPUT:"js-confirm-password-input",SHOW_PASSWORD_BUTTON:"js-show-password",INPUT_CLASS:"js-coned-input",MESSAGE_CHARACTERS:"js-register-characters",MESSAGE_UPPERCASE:"js-register-uppercase",MESSAGE_NUMBER:"js-register-number",MESSAGE_PASSWORD:"js-register-password",SUBMIT_BUTTON:"js-transactional-submit-selector",USERNAME_SELECTOR:"js-username-selector",ERROR_CLASS:"register__validation--error",SUBMIT_ANIMATION_BUTTON:"js-submit-progress-animation",FORM_CONTAINER_SELECTOR:"js-form-selector",FINISH_STEP_SELECTOR:"js-finish-selector",LOGIN_URL_SELECTOR:"js-login-url-selector",HIDDEN_CLASS:"hidden",SET_PASSWORD_INPUT_NAME:"newPassword",PASSWORD_ERROR:"js-password-error",PASSWORD_ERROR_MESSAGE:"js-error-message",SET_PASSWORD_SITECORE_ID:"ScId",STATE_TOKEN:"StateToken",LOGIN_URL:"loginPageUrl",FROM_URI_PARAMETER:"fromURI=",CHECK_ICON:"icon-check-status",CLOSE_ICON:"icon-close"},t=!1,i=function(i){var u,s,h,a,v,y,p,c,f,w,b,k,e,l,d,r,tt=function(t){t.preventDefault();var i=this.parentNode.getElementsByClassName(n.INPUT_CLASS)[0],r=i.type;r=="password"?(i.type="text",t.target.innerHTML=this.dataset.replaceText):(i.type="password",t.target.innerHTML=this.dataset.text)},o=function(t,i,r){var u,f;switch(i){case"minMax":u=/^.{8,30}$/;break;case"uppercase":u=/(?=.*[a-z])(?=.*[A-Z])/;break;case"number":u=/[0-9\s]+/;break;case"password":f=it(r,d)}return i!="password"&&(f=u.test(r)),f?(query.removeClass(t,n.ERROR_CLASS),query.removeClass(t.children[0],n.CLOSE_ICON),query.addClass(t.children[0],n.CHECK_ICON)):(query.addClass(t,n.ERROR_CLASS),query.removeClass(t.children[0],n.CHECK_ICON),query.addClass(t.children[0],n.CLOSE_ICON)),f},it=function(n,t){for(var e=t.length,r=!0,u,f,i=0;i+3<=e;i++)u=t.substring(i,i+3),f=n.indexOf(u),f>0&&(r=!1);return r},rt=function(){var t=u.value,i=o(a,"minMax",t),r=o(v,"uppercase",t),f=o(y,"number",t),e=o(p,"password",t);i&&r&&f&&e?u.classList.add(n.VALID_CONFIRMATION):u.classList.remove(n.VALID_CONFIRMATION);g()},g=function(){var t=query.hasClass(u,n.VALID_CONFIRMATION),r=$(i).validate();c.disabled=t&&r.element(s)?!1:!0},ut=function(){var t,r=i.dataset.setPasswordService;t={NewPassword:query.getFormInputValue(i,n.SET_PASSWORD_INPUT_NAME),ScId:query.getFormInputValue(document,n.SET_PASSWORD_SITECORE_ID),stateToken:query.getFormInputValue(document,n.STATE_TOKEN)};t=JSON.stringify(t);query.postData(r,ft,et,t,!0)},ft=function(t){f.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS);r=t;r&&n.LOGIN_URL in r&&r[n.LOGIN_URL]&&setTimeout(function(){window.location.href=r[n.LOGIN_URL]},5e3)},et=function(n){f.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);r=n},ot=function(){if(ht(),coned.utils.isPatternLab()){var n=coned.plConstants.SET_NEW_PASSWORD;query.getData(n,nt,function(){})}else nt()},nt=function(){var t=document.getElementsByClassName(n.LOGIN_URL_SELECTOR)[0],i;r&&n.LOGIN_URL in r&&r[n.LOGIN_URL]&&(i=t.getAttribute("href")+"?"+n.FROM_URI_PARAMETER+encodeURIComponent(r[n.LOGIN_URL]),t.setAttribute("href",i));w.classList.add(n.HIDDEN_CLASS);k.classList.remove(n.HIDDEN_CLASS)},st=function(){e.classList.remove(n.HIDDEN_CLASS);l.innerHTML=r.errorMsg;e.focus()},ht=function(){e.classList.add(n.HIDDEN_CLASS);l.innerHTML=""},ct=function(){new coned.components.SubmitAnimation(f,ut,ot,st,!1,!0)},lt=function(){u=i.getElementsByClassName(n.PASSWORD_INPUT)[0];s=i.getElementsByClassName(n.CONFIRM_PASSWORD_INPUT)[0];h=i.getElementsByClassName(n.SHOW_PASSWORD_BUTTON);a=i.getElementsByClassName(n.MESSAGE_CHARACTERS)[0];v=i.getElementsByClassName(n.MESSAGE_UPPERCASE)[0];y=i.getElementsByClassName(n.MESSAGE_NUMBER)[0];p=i.getElementsByClassName(n.MESSAGE_PASSWORD)[0];c=i.getElementsByClassName(n.SUBMIT_BUTTON)[0];b=i.getElementsByClassName(n.USERNAME_SELECTOR)[0];f=i.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];w=document.getElementsByClassName(n.FORM_CONTAINER_SELECTOR)[0];k=document.getElementsByClassName(n.FINISH_STEP_SELECTOR)[0];e=i.getElementsByClassName(n.PASSWORD_ERROR)[0];l=i.getElementsByClassName(n.PASSWORD_ERROR_MESSAGE)[0];d=b.dataset.username},at=function(){u.addEventListener("keyup",rt);s.addEventListener("keyup",g);for(var t=0;t<h.length;t++)coned.utils.addGeneralListeners(h[t],tt);new coned.components.ValidateForm(n.FORM_CLASS_SELECTOR,ct)},vt=function(){lt();at();t=!0};vt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ShrChartsComponent=function(){var n={ARIA_CURRENT:"aria-current",CONED_ENERGY_USAGE:"energy-usage",CONED_CHART:"coned-chart",CONED_CHART_HIDE_CLASS:"coned-chart--hide",CONED_CHART_TAB_ACTIVE_CLASS:"coned-tabs__tab-item--active",CONED_CHART_DEMAND_TAB_HIDDEN:"coned-tabs--visibility-hidden",CONED_CHART_DATE:"coned-chart__middle-text--date",CONED_CHART_MONTH_BUTTON:"js-coned-chart-monthly",CONED_CHART_DATE_BUTTON:"js-coned-chart-daily",CONED_CHART_EVENT_BUTTON:"js-coned-chart-event",CONED_CHART_BUTTON_DISABLED:"coned-chart__buttons--square-blue-disabled",CONED_CHART_ORU_BUTTON_DISABLED:"coned-chart__buttons--square-teal-disabled",CONED_CHART_BUTTONS_HIDE:"coned-chart__buttons--hide",CONED_CHART_ARROW_HIDE:"coned-chart__arrow--hide",CONED_CHART_LEFT_ARROW:"coned-chart__arrow--left",CONED_CHART_RIGHT_ARROW:"coned-chart__arrow--right",CONED_CHART_ERROR:"coned-chart__error-message",CONED_CHART_DAILY_NOTE:"coned-chart__note-paragraph--demandDaily",CONED_CHART_EVENT_NOTE:"coned-chart__note-paragraph--demandEvent",CONED_CHART_HEADER:"coned-chart__header-title",CONED_CHART_FORM_LOADING:"js-form-loading",CONED_CHART_DEMAND_BUTTON:"js-demandTab",CONED_CHART_MOBILE_DEMAND:"js-demandMobileTab",CONED_CHART_ERROR_MESSAGE:"js-chart-module-error",CONED_CHART_NODATA_MESSAGE:"js-chart-module-noData-error",CONED_CHART_MODULE:"js-chart-module-content",CONED_CHART_CONTAINER:"js-chart-container",CONED_CHART_NOTE:"js-chart-note",CONED_CHART_SERVICE:"data-chart-service",CONED_CHART_DATA_MAID:"data-maid",CONED_CHART_DATA_RATE:"data-rate",CONED_CHART_DATA_TIME:"data-chart-time",CONED_CHART_DATE_TEXT:"data-chart-date-text",CONED_CHART_DATA_FROM_DATE:"data-from-date",CONED_CHART_DATA_TO_DATE:"data-to-date",CONED_CHART_DATA_ZERO_HOVER:"data-zero-value-hover",CONED_CHART_DATA_REGULAR_HOVER:"data-regular-day-hover",CONED_CHART_DATA_NEGATIVE_HOVER:"data-negative-value-hover",CONED_CHART_BILLING_ERROR:"data-billing-error",CONED_CHART_TOTAL_AVERAGE_DEMAND:"data-total-average-legend",CONED_CHART_DATA_PERIOD:"data-period",CONED_CHART_DATA_WEEK:"data-week",CONED_CHART_DATA_SYMBOL:"data-symbol",CONED_CHART_DATA_IS_SOLAR:"data-is-solar",CONED_CHART_FIXED_SUBSCRIPTION:"FixedSubscriptionRate",CONED_CHART_TYPE:"Type",CONED_CHART_TOTAL_AVERAGE_DEMAND_VALUE:"totalAverageDemandValue",CONED_CHART_SHR_OPTION:"SHR",CONED_CHART_STANDARD_OPTION:"Standard",CONED_CHART_GROUPBY_MONTHLY:"Monthly",CONED_CHART_GROUPBY_WEEKLY:"Weekly",CONED_CHART_YEAR:"Year",CONED_CHART_QUATER:"Quarter",CONED_CHART_DEMAND:"demand",CONED_CHART_MONTHLY:"monthly",CONED_CHART_DAILY:"daily",CONED_CHART_EVENT:"event",CONED_CHART_TRUE:"true",CONED_HIDDEN_CLASS:"hidden",CONED_DISABLED_ATTR:"disabled",CONED_CHART_DAILY_COLOR:"#27aa5e",CONED_CHART_EVENT_COLOR:"#94000f",CONED_DATA_ATTRIBUTES_JSON:"/_static/legendDataAttributes.json"},t=!1,i=function(i){var si,c,h,l,pt,hr,dt,y,w,hi,ut,cr,lr,ht,ft,ou,ar,vr,vt,su,hu,vi,k,et,lt,yr,tt,cu,lu,gt,ni,yi,ci,u,a,r,pr,wr,p,nr,br,kr,pi,v,tr,dr,it,au,vu,wi,ti,g,nt,bi,gr,ii,ei,s,at,ri,f,ir,b,ot,ki,nu,st,e,o,d,tu,iu,rt,wt,bt,ct,yt,rr,ur,ru,kt,ui,yu,pu,wu,bu,ku,uu=function(){var i=si.dataset.getBillingPeriods,r=si.getAttribute(n.CONED_CHART_DATA_MAID),t;ot=ot?ot:si.getAttribute(n.CONED_CHART_DATA_RATE);query.addClass(ut,n.CONED_HIDDEN_CLASS);y.setAttribute(n.CONED_DISABLED_ATTR,!0);w.setAttribute(n.CONED_DISABLED_ATTR,!0);t=coned.chartComponents.getBillingPeriods(ot,ii,r);query.getData(i,ef,fr,t)},fr=function(){dataLayer.push({event:"SHR.demand.error.message"});ii=ii-12;query.addClass(ft,n.CONED_HIDDEN_CLASS);query.removeClass(ut,n.CONED_HIDDEN_CLASS);query.addClass(ht,n.CONED_HIDDEN_CLASS);query.addClass(y,n.CONED_CHART_ARROW_HIDE);query.removeClass(w,n.CONED_CHART_ARROW_HIDE);dt.innerHTML=hi.getAttribute(n.CONED_CHART_BILLING_ERROR);u===n.CONED_CHART_MONTHLY?ri=!0:at=!0},ef=function(t){if(vi=pt.getAttribute(n.CONED_CHART_DATA_IS_SOLAR),coned.utils.isPatternLab()){var i=vi==="true"?coned.plConstants.GET_CHART_BILLING_PERIODS_SOLAR:document.querySelector("[data-patternlab-shr-chart-thermostat-B]")||document.querySelector("[data-oru-patternlab-shr-chart-thermostat-B]")?coned.plConstants.GET_CHART_BILLING_PERIODS_THERMOSTAT_B:coned.plConstants.GET_CHART_BILLING_PERIODS_THERMOSTAT_A;query.getData(i,du,fr)}else du(t)},du=function(t){if(tt=tt.concat(t.periods),ci=t.morePeriods,ei=pt.getAttribute(n.CONED_CHART_DATA_SYMBOL),ci&&query.removeClass(y,n.CONED_CHART_ARROW_HIDE),t&&t.periods&&t.periods.length>0){query.removeClass(pt,n.CONED_CHART_DEMAND_TAB_HIDDEN);query.removeClass(hr,n.CONED_HIDDEN_CLASS);var i=t.periods,u=Object.keys(i),r;nt=[];u.forEach(function(t){nt.push(i[t].billToDate);i[t].billProgram===n.CONED_CHART_SHR_OPTION&&yi++;(i[t].billProgram===n.CONED_CHART_SHR_OPTION||i[t].billProgram===n.CONED_CHART_STANDARD_OPTION)&&(r=t)});cu=i[r].billFromDate;lu=i[0].billToDate;hf();y.removeAttribute(n.CONED_DISABLED_ATTR);w.removeAttribute(n.CONED_DISABLED_ATTR);wr?wr=!1:document.activeElement===document.body&&y.focus()}else query.addClass(hr,n.CONED_HIDDEN_CLASS),query.addClass(pt,n.CONED_CHART_DEMAND_TAB_HIDDEN)},gu=function(){k.length===0&&(query.addClass(ut,n.CONED_HIDDEN_CLASS),query.removeClass(ft,n.CONED_HIDDEN_CLASS),query.removeClass(ht,n.CONED_HIDDEN_CLASS),er());coned.utils.removeMultipleListeners(pt,coned.utils.generalEvents(),gu)},fu=function(){var t=c.classList.contains(a);t||(r&&coned.chart.showTableInfo(vt.parentElement,r,!1),s=!1,st=0,o=0,e=0,u=n.CONED_CHART_DAILY,v=undefined,kt=ot==="5"?!0:!1,dataLayer.push({event:"SHR.demand.toggle.view",ToggleLevel:"Daily"}),rf(),or(n.CONED_CHART_DAILY),eu(n.CONED_CHART_DAILY),ai(c),coned.utils.removeMultipleListeners(pt,coned.utils.generalEvents(),fu))},of=function(t){t.preventDefault();var i=l.classList.contains(a);(coned.chart.showTableInfo(vt.parentElement,r,!1),i)||(s=!0,st=0,o=0,e=0,u=n.CONED_CHART_EVENT,v=undefined,dataLayer.push({event:"SHR.demand.toggle.view",ToggleLevel:"Event"}),rf(),or(n.CONED_CHART_EVENT),eu(n.CONED_CHART_EVENT),ai(l))},sf=function(){var i,t,f;(dataLayer.push({event:"SHR.demand.toggle.view",ToggleLevel:"Monthly"}),coned.chart.showTableInfo(vt.parentElement,r,!1),i=h.classList.contains(a),s=!1,v=undefined,i)||(at&&(t=document.getElementById(r),t&&(f=t.getAttribute(n.CONED_CHART_DATE_TEXT),dt.innerHTML=f,query.removeClass(ft,n.CONED_HIDDEN_CLASS),query.addClass(ut,n.CONED_HIDDEN_CLASS),query.removeClass(ht,n.CONED_HIDDEN_CLASS),at=!1)),ri&&!k[0]?(query.removeClass(c,a),query.removeClass(l,a),query.addClass(h,a),c.setAttribute(n.ARIA_CURRENT,!1),l.setAttribute(n.ARIA_CURRENT,!1),h.setAttribute(n.ARIA_CURRENT,!0),er()):(u=n.CONED_CHART_MONTHLY,st=0,o=0,e=0,fi(k[0]),gi(k[0])),or(u),eu(n.CONED_CHART_MONTHLY),ai(h))},hf=function(){var r=nt.length-1,f=nt[r],o=nt[0],t=i.getElementsByClassName(n.CONED_CHART_TAB_ACTIVE_CLASS)[0];if(v=coned.chartComponents.generateMonthlyDate(f,o,au),!bi&&t.classList.contains(n.CONED_CHART_TAB_ACTIVE_CLASS)&&t.click(),bi&&u===n.CONED_CHART_MONTHLY)er();else if(bi&&u===n.CONED_CHART_DAILY){var s=u===n.CONED_CHART_DAILY?et:lt,h=s.indexOf(p)+1,c=coned.utils.isMobile()||coned.utils.isTablet()?e:h;di(c)}},er=function(){if(tt){var i=h.getAttribute(n.CONED_CHART_SERVICE),t,r=si.getAttribute(n.CONED_CHART_DATA_MAID),u=coned.utils.isMobile()||coned.utils.isTablet()?n.CONED_CHART_QUATER:n.CONED_CHART_YEAR;t=coned.chartComponents.callMonthlyService(r,ot,cu,lu,u,vi);query.getData(i,lf,cf,t,vr)}},cf=function(){var t=nt.length-1,i=nt[t],r=nt[0];ri=!0;ki=!1;v=coned.chartComponents.generateMonthlyDate(i,r,it);dt.innerHTML=v;dataLayer.push({event:"SHR.demand.error.message"});query.removeClass(hi,n.CONED_HIDDEN_CLASS);query.addClass(ft,n.CONED_HIDDEN_CLASS);query.addClass(ht,n.CONED_HIDDEN_CLASS);query.removeClass(ut,n.CONED_HIDDEN_CLASS);k.length>0?(query.addClass(y,n.CONED_CHART_ARROW_HIDE),query.removeClass(w,n.CONED_CHART_ARROW_HIDE)):(query.addClass(y,n.CONED_CHART_ARROW_HIDE),query.addClass(w,n.CONED_CHART_ARROW_HIDE))},lf=function(t){var u=i.getElementsByClassName(n.CONED_CHART_TAB_ACTIVE_CLASS)[0];query.addClass(ut,n.CONED_HIDDEN_CLASS);query.removeClass(ft,n.CONED_HIDDEN_CLASS);query.removeClass(ht,n.CONED_HIDDEN_CLASS);ki=ci?!1:!0;li(u);k.push(r);ri=!1;coned.utils.isPatternLab()?query.getData(pr,oi,fr):oi(t);nt=[];or("monthly")},or=function(t){var r=t===n.CONED_CHART_MONTHLY?h:t===n.CONED_CHART_DAILY?c:l,u=r.getAttribute("data-header-title"),f=r.getAttribute("data-header-title-tooltip"),o=r.getAttribute("data-header-title-link"),e=document.getElementsByClassName("js-chart-module-content")[0],s=coned.utils.isOru()?" coned-tooltip--oru ":"",a=coned.utils.isOru()?"coned-chart__header-link--orange":"coned-chart__header-link--blue",i;f?(d3.select(".js-chart-middle-text").select(".coned-chart__header").select(".coned-tooltip").remove(),d3.select(".js-chart-middle-text").select(".coned-chart__header").html('<div class="coned-tooltip '+s+' js-module" data-module="ToolTipComponent"><p class="coned-chart__header-title" > <\/p><button type="button" class="coned-tooltip__text coned-tooltip--open js-tooltip-open coned-chart__tooltip--icon" aria-label="Information" aria-expanded="false" onclick="dataLayer.push({\'event\': \'SHR.demand.top.tool.tip\'});"><\/button><div class="tooltip__templates"><div class="coned-tooltip__wrapper js-coned-tooltip-wrapper"><button type="button" class="coned-tooltip--close js-tooltip-close" aria-label="close"><\/button><div class="coned-tooltip__content"><p class="js-tooltip-content">'+f+'&nbsp;<a class="coned-chart__header-link '+a+' tag-shr-learn-more" href="'+o+'"> Learn More<\/a><\/p><\/div><\/div><\/div><\/div>'),setTimeout(function(){i=e.getElementsByClassName("coned-chart__header")[0];new coned.components.ToolTipComponent(i);nf(u)},50)):(i=e.getElementsByClassName("coned-chart__header")[0],i.getElementsByClassName("coned-tooltip__text")[0].classList.add("hidden"),nf(u))},nf=function(t){ou=i.getElementsByClassName(n.CONED_CHART_HEADER)[0];ou.innerHTML=t},li=function(t){var f="",i,y,p="",w="",k=vi==="true"?"Solar/":ot==="4"?"T-A/":"T-B/",b;if(u=t.getAttribute(n.CONED_CHART_DATA_TIME),u===n.CONED_CHART_DAILY||u===n.CONED_CHART_EVENT)b=s?l:c,w=u,query.addClass(b,a),query.removeClass(h,a),h&&h.setAttribute(n.ARIA_CURRENT,!1),u===n.CONED_CHART_DAILY?(query.removeClass(l,a),c.setAttribute(n.ARIA_CURRENT,!0),l.setAttribute(n.ARIA_CURRENT,!1)):(query.removeClass(c,a),c.setAttribute(n.ARIA_CURRENT,!1),l.setAttribute(n.ARIA_CURRENT,!0)),gt=tt[e].billFromDate,ni=tt[e].billToDate,i=coned.chartComponents.generateDailyDate(gt,ni,!1,it).replace(/\s|[,]/g,""),(coned.utils.isMobile()||coned.utils.isTablet())&&(f="M",p=o);else{if(query.addClass(h,a),query.removeClass(c,a),c.setAttribute(n.ARIA_CURRENT,!1),h&&h.setAttribute(n.ARIA_CURRENT,!0),v)i=v.replace(/\s|[,]/g,"");else{var d=nt.length-1,g=nt[d],rt=nt[0];v=coned.chartComponents.generateMonthlyDate(g,rt,it);i=v.replace(/\s|[,]/g,"")}f=coned.utils.isMobile()||coned.utils.isTablet()?"M":""}y=coned.utils.isPatternLab()?k:"";r=n.CONED_CHART_DEMAND+i+w;pr="/get-content/charts/"+y+r+f+".json";r+=p},oi=function(t){var h,c,l,a;if(u===n.CONED_CHART_DAILY||u===n.CONED_CHART_EVENT)if(coned.utils.isTablet()||coned.utils.isMobile()){o=ir?t.items.length-1:o;ir=!1;var y=s?bt:wt,p=s?yt:ct,w=u===n.CONED_CHART_DAILY?et:lt,k=s?n.CONED_CHART_EVENT_BUTTON:n.CONED_CHART_DATE_BUTTON,g=i.getElementsByClassName(k)[0],nt=tt[e].billRates;y[e]||(s?bt[e]=t:wt[e]=t);t.items[o]||(a=document.getElementById(r),o=parseInt(a.getAttribute(n.CONED_CHART_DATA_WEEK))+1);h=t.items[o].periods.length-1;c=t.items[o].periods[0].demandDate;l=t.items[o].periods[h].demandDate;v=coned.chartComponents.generateDailyDate(l,c,!1,it);li(g);nt&&_.invert(p[f])[r]===undefined?af():w.indexOf(r)<0&&tf();t=t.items[o]}else h=t.items[o].periods.length-1,c=t.items[o].periods[0].demandDate,l=t.items[o].periods[h].demandDate,v=coned.chartComponents.generateDailyDate(l,c,!1,it),t=t.items[0];else if(rt[b]===undefined&&(rt[b]=t.items),coned.utils.isTablet()||coned.utils.isMobile()){var ut=rt[b][d].periods.length-1,ft=rt[b][d].periods[ut].endDate,ot=rt[b][d].periods[0].endDate;v=coned.chartComponents.generateMonthlyDate(ft,ot,it);t=t.items?t.items[d]:t}else t=t.items[0];yf(t)},af=function(){var n=r,t=s?yt:ct;n=n.match(/[A-Za-z]*[0-9]*-[A-Za-z]*[0-9]*/g)[0];t[f]===undefined&&(t[f]={});t[f][o]=n+u+o},tf=function(){var t=r,i;t=t.match(/[A-Za-z]*[0-9]*-[A-Za-z]*[0-9]*/g)[0];i=coned.utils.isTablet()||coned.utils.isMobile()?o:"";s?lt.push(t+n.CONED_CHART_EVENT+i):et.push(t+n.CONED_CHART_DAILY+i)},rf=function(){var i=!0,r,u,t,f;ri&&(query.removeClass(ft,n.CONED_HIDDEN_CLASS),query.addClass(ut,n.CONED_HIDDEN_CLASS),query.removeClass(ht,n.CONED_HIDDEN_CLASS));r=s===!0?lt:et;u=s===!0?yt:ct;t=coned.utils.isMobile()||coned.utils.isTablet()?u[0]:r;f=coned.utils.isMobile()||coned.utils.isTablet()?t!==undefined?Object.keys(t).length:0:t.length;f>0&&(i=!1,fi(t[0]));i&&di(0)},di=function(t){var r;f=t;r=coned.utils.isMobile()||coned.utils.isTablet()?n.CONED_CHART_GROUPBY_WEEKLY:n.CONED_CHART_GROUPBY_MONTHLY;var h=u===n.CONED_CHART_DAILY?c:l,a=h.getAttribute(n.CONED_CHART_SERVICE),i,o=tt[e].billRates,s=o?o[0]:"null",v=si.getAttribute(n.CONED_CHART_DATA_MAID);if(gt=tt[t].billFromDate,ni=tt[t].billToDate,s==="null"){uf();return}i=coned.chartComponents.getDailyChart(v,ot,gt,ni,r,vi);kt&&(i[n.CONED_CHART_FIXED_SUBSCRIPTION]=tt[e].billFixedSubscriptionRate);u===n.CONED_CHART_DAILY&&(i[n.CONED_CHART_TYPE]=s);query.getData(a,vf,uf,i,vr)},uf=function(){var t,i;dataLayer.push({event:"SHR.demand.error.message"});t=u===n.CONED_CHART_DAILY?c:l;at=!0;v=coned.chartComponents.generateDailyDate(gt,ni,!0,it);dt.innerHTML=v;query.removeClass(hi,n.CONED_HIDDEN_CLASS);query.addClass(y,n.CONED_CHART_ARROW_HIDE);query.addClass(ht,n.CONED_HIDDEN_CLASS);query.addClass(ft,n.CONED_HIDDEN_CLASS);query.removeClass(ut,n.CONED_HIDDEN_CLASS);h&&h.disabled?(query.removeClass(h,a),h.setAttribute(n.ARIA_CURRENT,!1)):c.disabled?(query.removeClass(c,a),c.setAttribute(n.ARIA_CURRENT,!1)):l.disabled&&(query.removeClass(l,a),l.setAttribute(n.ARIA_CURRENT,!1));query.addClass(t,a);t.setAttribute(n.ARIA_CURRENT,!0);query.removeClass(hi,n.CONED_HIDDEN_CLASS);i=u===n.CONED_CHART_DAILY?et:lt;f==="0"?(query.addClass(y,n.CONED_CHART_ARROW_HIDE),query.addClass(w,n.CONED_CHART_ARROW_HIDE)):st>0&&st-1<i.length&&(query.addClass(y,n.CONED_CHART_ARROW_HIDE),query.removeClass(w,n.CONED_CHART_ARROW_HIDE))},vf=function(t){var e=s?n.CONED_CHART_EVENT_BUTTON:n.CONED_CHART_DATE_BUTTON,o=i.getElementsByClassName(e)[0],u=s?lt:et;if(query.removeClass(ft,n.CONED_HIDDEN_CLASS),query.addClass(ut,n.CONED_HIDDEN_CLASS),query.removeClass(ht,n.CONED_HIDDEN_CLASS),coned.utils.isMobile()||coned.utils.isTablet())if(gr){var f=document.getElementById(u[st]),h=f.getAttribute(n.CONED_CHART_DATA_FROM_DATE),c=f.getAttribute(n.CONED_CHART_DATA_TO_DATE);v=coned.chartComponents.generateDailyDate(h,c,!1,it);gr=!1}else v=coned.chartComponents.generateDailyDate(gt,ni,!1,it);else v=coned.chartComponents.generateDailyDate(gt,ni,!0,it);(coned.utils.isMobile()||coned.utils.isTablet())&&ne();li(o);u[st]&&(r=u[st],gi(r));coned.utils.isMobile()||coned.utils.isTablet()||u.indexOf(r)<0&&tf();coned.utils.isPatternLab()?query.getData(pr,oi,fr):oi(t)},yf=function(t){var a=document.getElementById(r),i,f,s,h,c,e,o,l;if(u===n.CONED_CHART_DAILY)for(h=tu[r]={},i=0;i<t.periods.length;i++)f=t.periods[i].label,h[f]=[t.periods[i].measuredTime,t.periods[i].specialDay];else if(u===n.CONED_CHART_EVENT)for(c=iu[r]={},i=0;i<t.periods.length;i++)f=t.periods[i].label,c[f]=[t.periods[i].measuredTime];else d++;if(gi(r),a)fi(r);else{if(g=t.yAxis,ui=t.fixedSubscriptionYAxis,s=t.periods,ui)for(e=0;e<ui.length;e++)o=g.indexOf(ui[e]),o>-1&&g.splice(o,1);l=document.getElementById(p);query.addClass(l,n.CONED_CHART_HIDE_CLASS);pf();wf(s.reverse())}},gi=function(t){var i,v,g;if(u===n.CONED_CHART_DAILY||s){var h=s?lt:et,c=tt[e].billRates,p=s?bt:wt,l=s?yt:ct,a=coned.utils.isMobile()||coned.utils.isTablet()?e:h.indexOf(t),nt=(coned.utils.isMobile()||coned.utils.isTablet())&&c&&p[a]&&p[a].items[o+1]?!1:!0;a<yi-1||!nt?query.removeClass(y,n.CONED_CHART_ARROW_HIDE):coned.utils.isMobile()||coned.utils.isTablet()?(g=Object.keys(l[f]).length-1,c?(i=s?yt:ct,v=i[f][o+1]||i[f+1]?!0:!1):(i=s?bt:wt,v=i[e]?i[e].items.length-1>o:!1),ci||v||l[f][g]!==t?query.removeClass(y,n.CONED_CHART_ARROW_HIDE):query.addClass(y,n.CONED_CHART_ARROW_HIDE)):ci&&h.indexOf(t)===yi-1?query.removeClass(y,n.CONED_CHART_ARROW_HIDE):query.addClass(y,n.CONED_CHART_ARROW_HIDE);c&&(coned.utils.isMobile()||coned.utils.isTablet())?f>0||_.invert(l[f])[r]>0?query.removeClass(w,n.CONED_CHART_ARROW_HIDE):query.addClass(w,n.CONED_CHART_ARROW_HIDE):h.indexOf(t)>0?query.removeClass(w,n.CONED_CHART_ARROW_HIDE):query.addClass(w,n.CONED_CHART_ARROW_HIDE)}else coned.utils.isTablet()||coned.utils.isMobile()?!ki||rt[b][d]||k.indexOf(t)<k.length-1?query.removeClass(y,n.CONED_CHART_ARROW_HIDE):query.addClass(y,n.CONED_CHART_ARROW_HIDE):!ki||k.indexOf(t)<k.length-1?(query.removeClass(y,n.CONED_CHART_ARROW_HIDE),sr(w,y)):(query.addClass(y,n.CONED_CHART_ARROW_HIDE),sr(y,w)),k.indexOf(t)>0?(query.removeClass(w,n.CONED_CHART_ARROW_HIDE),sr(y,w)):(query.addClass(w,n.CONED_CHART_ARROW_HIDE),sr(w,y))},sr=function(t,i){query.hasClass(t,n.CONED_CHART_ARROW_HIDE)&&document.activeElement===t&&i.focus()},fi=function(t){var i,e,o;wi=p;p=t;r=p;i=document.getElementById(p);e=document.getElementById(wi);query.removeClass(i,n.CONED_CHART_HIDE_CLASS);wi!=p&&query.addClass(e,n.CONED_CHART_HIDE_CLASS);v=i.getAttribute(n.CONED_CHART_DATE_TEXT);f=parseInt(i.getAttribute(n.CONED_CHART_DATA_PERIOD));u===n.CONED_CHART_DAILY?(query.addClass(c,a),query.removeClass(h,a),query.removeClass(l,a),l.setAttribute(n.ARIA_CURRENT,!1),c.setAttribute(n.ARIA_CURRENT,!0),h&&h.setAttribute(n.ARIA_CURRENT,!1)):u===n.CONED_CHART_EVENT?(query.addClass(l,a),query.removeClass(h,a),query.removeClass(c,a),c.setAttribute(n.ARIA_CURRENT,!1),l.setAttribute(n.ARIA_CURRENT,!0),h&&h.setAttribute(n.ARIA_CURRENT,!1)):(query.addClass(h,a),query.removeClass(c,a),query.removeClass(l,a),c.setAttribute(n.ARIA_CURRENT,!1),l.setAttribute(n.ARIA_CURRENT,!1),h.setAttribute(n.ARIA_CURRENT,!0));o=document.getElementById(t).classList.contains(n.CONED_CHART_ERROR);o?(query.addClass(ft,n.CONED_HIDDEN_CLASS),query.removeClass(cr,n.CONED_HIDDEN_CLASS)):(query.removeClass(ft,n.CONED_HIDDEN_CLASS),query.addClass(cr,n.CONED_HIDDEN_CLASS),query.removeClass(ht,n.CONED_HIDDEN_CLASS));at&&(query.addClass(ut,n.CONED_HIDDEN_CLASS),at=!1);ff();gi(p);coned.chart.fixChartHeight(r)},pf=function(){for(var a=u===n.CONED_CHART_MONTHLY,p=u===n.CONED_CHART_DAILY,v=ot==="5"?"subscriptionRate":"nonSubscriptionRate",r=a?nr:s?kr:br,f=a?h:p?c:l,o=nu[u][v].legend,y=nu[u][v].tooltip,t=Object.keys(o),i,e=0;e<t.length;e++)i=t[e],r[i]=f.getAttribute(o[i])+" ("+ei+")",pi[i]=f.getAttribute(y[i]);r.billingCycleTable=vt.dataset.billingCycleLegend;r.dateTable=vt.dataset.dateLegend;r[t]=f.getAttribute(o[t])+" ("+ei+")";pi[t]=f.getAttribute(y[t])},wf=function(t){var r=Object.keys(t[0]),a=Object.keys(t[0]),h={},s,f,i,e,c,l,o;for(u===n.CONED_CHART_MONTHLY?(rr=r.indexOf(n.CONED_CHART_TOTAL_AVERAGE_DEMAND_VALUE)>-1?!0:!1,s=rr?r.length-5:r.length-4,r.splice(0,3),r.splice(s)):(s=r.length,r=r.slice(4,s)),h=gf(h,r),f=Object.keys(t).map(function(n){return t[n]}),tr="",dr="",o=0;o<f.length;o++)f[o].splitLabel!=""&&(tr=f[o].label,dr=f[o].splitLabel),i=f[o].beginDate,e=f[o].endDate,i&&e&&(i=i.replace(/T[\s\S]*/g,"T12:00:00"),e=e.replace(/T[\s\S]*/g,"T12:00:00"),i=new Date(i),e=new Date(e),i.setDate(i.getDate()+1),c=it[i.getMonth()]+" "+i.getDate()+", "+i.getFullYear(),l=it[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear(),yr[f[o].label]=c+" - "+l);ff();bf(h,a,s,f,r)},bf=function(t,i,r,f,e){for(var o=[],l=[],s,v,y,c,p,a,h=0;h<i.length;h++){for(l.push(i[h]),s=0;s<f.length;s++)v=f[s],y=Object.keys(v),y.forEach(function(n){n===i[h]&&l.push(f[s][n])}),c=f[s].totalAverageDemandValue,c&&c!==0&&(p=/[0-9]*(.[0-9])/g,a=c.toString().match(p),ur[s]=a?a[0]:c+".0");o.push(l);l=[]}return u===n.CONED_CHART_MONTHLY?(r=rr?o.length-4:o.length-3,o.splice(0,2),o.splice(r),kf(u,e,o,t)):(r=o.length,o=o.slice(3,r),df(u,e,o,t)),o},kf=function(t,i,u,f){var s,k=coned.chart.yAxisLines(kt,ui,g,ei),c,d=tr?[{value:tr,"class":"text-line-year",text:dr}]:[],nt=coned.utils.isMobile()||coned.utils.isTablet()?.25:.75,o,l,a=nr,tt=h?h.getAttribute(n.CONED_CHART_TOTAL_AVERAGE_DEMAND):"",e;wi=p;p=r;s=[];c=coned.utils.isMobile()?22:24;d3.select(".coned-chart__container").insert("div").attr("id",r);o=document.getElementById(r);o.setAttribute(n.CONED_CHART_DATE_TEXT,v);ru[r]=ur;ur={};l={chartId:r,chartLeftPadding:coned.utils.isMobile()||coned.utils.isTablet()?20:11,chartData:u,colorsObj:f,dataType:s,xAxisLeftPadding:nt,yAxis:g,kilowattSymbol:ei,dollarSymbol:"",lineArray:k,initialLine:d,allTotalAverageValue:ru,dataMonthlyNames:nr,monthlyPeriodsList:yr,size:c};ti=coned.chart.createBarChart(n.CONED_CHART_SHR_OPTION,l,!1,tt,undefined,a,ui);var it=t===n.CONED_CHART_DAILY?/-([A-Z])*\w+/g:/-([0-9]{4})/g,y=g[g.length-1].length,w=g[0].length,b=y>w?y:w,rt=t===n.CONED_CHART_MONTHLY;coned.chart.addLegend(i,ti,r,a,pi,"actualDemand","Peak",ot,coned.utils.isOru(),rt);coned.chart.fixChartHeight(r);coned.chart.initializeTooltips(n.CONED_CHART_SHR_OPTION,r,"coned-chart-tooltip");coned.chart.deleteYearRect(r);ti.resize();coned.chart.createRect(r,kt,b);coned.chart.fixYearLine(r);coned.chart.resizeWindow(r,ti,it,kt,b);e=o.querySelector("svg");e&&(e.setAttribute("focusable",!1),e.setAttribute("aria-hidden",!0))},df=function(t,i,u,f){var rt,w;wi=p;p=r;d3.select(".coned-chart__container").insert("div").attr("id",r);var h=document.getElementById(r),k,ut=coned.chart.yAxisLines(kt,ui,g,ei),d=g[g.length-1].length,nt=g[0].length,ft=d>nt?d:nt;h.setAttribute(n.CONED_CHART_DATE_TEXT,v);h.setAttribute(n.CONED_CHART_DATA_FROM_DATE,gt);h.setAttribute(n.CONED_CHART_DATA_TO_DATE,ni);h.setAttribute(n.CONED_CHART_DATA_PERIOD,e);h.setAttribute(n.CONED_CHART_DATA_WEEK,o);k=s?"coned-line-eventChart":"coned-line-peakChart";var tt=coned.utils.isMobile()||coned.utils.isTablet()?.4:tt=1.5,et=coned.utils.isMobile()||coned.utils.isTablet()?20:11,st={chartId:r,chartLeftPadding:et,chartData:u,colorsObj:f,peakClass:k,generalDailyData:s?iu:tu,allCompleteMonths:vu,xAxisLeftPadding:tt,yAxis:g,linesArray:ut,kilowattSymbol:ei},b,a,ht,y,it=t===n.CONED_CHART_DAILY?br:kr;if(t===n.CONED_CHART_DAILY?(a=c.getAttribute(n.CONED_CHART_DATA_ZERO_HOVER),y=c.getAttribute(n.CONED_CHART_DATA_REGULAR_HOVER)):(a=l.getAttribute(n.CONED_CHART_DATA_ZERO_HOVER),b=l.getAttribute(n.CONED_CHART_DATA_NEGATIVE_HOVER),y=l.getAttribute(n.CONED_CHART_DATA_REGULAR_HOVER)),t===n.CONED_CHART_DAILY?(a=c.getAttribute(n.CONED_CHART_DATA_ZERO_HOVER),y=c.getAttribute(n.CONED_CHART_DATA_REGULAR_HOVER)):(a=l.getAttribute(n.CONED_CHART_DATA_ZERO_HOVER),b=l.getAttribute(n.CONED_CHART_DATA_NEGATIVE_HOVER),y=l.getAttribute(n.CONED_CHART_DATA_REGULAR_HOVER)),ti=coned.chart.createLineChart(n.CONED_CHART_SHR_OPTION,st,a,ht,y,kt,b,it,ui),u.length>0){var ct=it,lt=t===n.CONED_CHART_DAILY?"actualDemand":"actualEventDemand",at=t===n.CONED_CHART_MONTHLY;coned.chart.addLegend(i,ti,r,ct,pi,lt,"Peak",ot,coned.utils.isOru(),at);coned.chart.fixChartHeight(r);coned.chart.initializeTooltips(n.CONED_CHART_SHR_OPTION,r,"coned-chart-tooltip")}coned.chart.deleteYearRect(r);coned.chart.resizeChart(r,ti,kt,ft);rt=t===n.CONED_CHART_DAILY||n.CONED_CHART_EVENT?/-([A-Z])*\w+/g:/-([0-9]{4})/g;coned.chart.fixXaxisValues(r,rt);w=h.querySelector("svg");w&&(w.setAttribute("focusable",!1),w.setAttribute("aria-hidden",!0))},gf=function(t,i){for(var f=ot==="4"?pu:wu,e=ot==="4"?bu:ku,o=u===n.CONED_CHART_MONTHLY?yu:u===n.CONED_CHART_DAILY?f:e,r=0;r<i.length;r++)t[i[r]]=o[r];return t},ff=function(){query.removeClass(hi,n.CONED_HIDDEN_CLASS);dt.innerHTML=v},ne=function(){var n=s?yt:ct;n[f.toString()]=n[f.toString()]!==undefined?n[f.toString()]:{}},te=function(t){var gt,h,ni,a,l,ot,y,w,g,ut,ri;if(t.preventDefault(),coned.chart.showTableInfo(vt.parentElement,r,!1),dataLayer.push({event:"SHR.demand.navigation.billing",label:"Backward arrow"}),bi=!0,at=!1,u===n.CONED_CHART_MONTHLY)k.indexOf(p)===k.length-1?(a=12,rt[b]&&rt[b][d]&&(coned.utils.isMobile()||coned.utils.isTablet())?(b=rt[b][d]?b:b++,d=rt[b][d]?d:0,y=i.getElementsByClassName(n.CONED_CHART_TAB_ACTIVE_CLASS)[0],w=rt[b][d].periods.length-1,g=rt[b][d].periods[w].beginDate,ut=rt[b][d].periods[0].endDate,v=coned.chartComponents.generateMonthlyDate(g,ut,it),li(y),k.push(r),oi(rt[b][d])):nt.length>0?(w=nt.length-1,g=nt[w],ut=nt[0],v=coned.chartComponents.generateMonthlyDate(g,ut,it),b++,d=0,er()):(ii=ii+a,b++,d=0,uu())):(h=k.indexOf(p),gt=k[h+1],fi(gt));else{var ht=s?lt:et,c=s?bt:wt,pt=s?yt:ct,kt,dt,ti,ft=tt[e].billRates;h=ft&&(coned.utils.isMobile()||coned.utils.isTablet())?_.invert(pt[f])[p]:ht.indexOf(p);ot=ft&&(coned.utils.isMobile()||coned.utils.isTablet())?c[f]&&c[f].items[parseInt(h)+1]===undefined||c[f]===undefined?f+1:f:f;h=ft&&(coned.utils.isMobile()||coned.utils.isTablet())?c[f]&&c[f].items[parseInt(h)+1]===undefined||c[f]===undefined?"-1":h:h;l=ft&&(coned.utils.isMobile()||coned.utils.isTablet())?pt[ot]?pt[ot][parseInt(h)+1]:undefined:ht[h+1];ni=document.getElementById(l);st++;coned.utils.isMobile()||coned.utils.isTablet()?(o++,kt=c[e]===undefined||c[e].items.length===o?!0:!1,ti=parseInt(e)===tt.length-1?!0:!1,dt=kt&&ti):dt=ht.indexOf(p)===yi-1;ci&&dt?(a=12,ii=ii+a,e++,o=0,uu()):ni?(e=parseInt(document.getElementById(l).getAttribute(n.CONED_CHART_DATA_PERIOD)),o=parseInt(document.getElementById(l).getAttribute(n.CONED_CHART_DATA_WEEK)),fi(l)):coned.utils.isMobile()||coned.utils.isTablet()?kt?(e++,di(e),o=0):(ri=s?n.CONED_CHART_EVENT_BUTTON:n.CONED_CHART_DATE_BUTTON,y=i.getElementsByClassName(ri)[0],li(y),oi(c[e])):(e++,di(h+1))}},ie=function(t){var l,g,a,nt,y,it,rt,h,ot,w,b,pt,gt,c,kt;if(t.preventDefault(),nt=u===n.CONED_CHART_MONTHLY?undefined:tt[e].billRates,st=u===n.CONED_CHART_MONTHLY?st:st-1,coned.chart.showTableInfo(vt.parentElement,r,!1),dataLayer.push({event:"SHR.demand.navigation.billing",label:"Forward arrow"}),at){if(nt&&(coned.utils.isMobile()||coned.utils.isTablet())?(rt=r.indexOf(n.CONED_CHART_DAILY)>-1?wt:bt,y=s?yt:ct,a=rt[f-1]?y[f-1][rt[f-1].items.length-1]:y[f-1][0],it=document.getElementById(a)):(y=s?lt:et,a=y[st],it=document.getElementById(a)?!0:!1),it){r=a;l=document.getElementById(r);g=l.getAttribute(n.CONED_CHART_DATE_TEXT,v);e=l.getAttribute(n.CONED_CHART_DATA_PERIOD);o=l.getAttribute(n.CONED_CHART_DATA_WEEK);dt.innerHTML=g;fi(r);query.removeClass(ft,n.CONED_HIDDEN_CLASS);query.addClass(ut,n.CONED_HIDDEN_CLASS);query.removeClass(ht,n.CONED_HIDDEN_CLASS);at=!1;return}query.removeClass(ft,n.CONED_HIDDEN_CLASS);query.addClass(ut,n.CONED_HIDDEN_CLASS);query.removeClass(ht,n.CONED_HIDDEN_CLASS);at=!1}if(ri&&u===n.CONED_CHART_MONTHLY){l=document.getElementById(r);g=l.getAttribute(n.CONED_CHART_DATE_TEXT,v);query.removeClass(ft,n.CONED_HIDDEN_CLASS);query.addClass(ut,n.CONED_HIDDEN_CLASS);query.removeClass(ht,n.CONED_HIDDEN_CLASS);dt.innerHTML=g;gi(r);ri=!1;return}if(u===n.CONED_CHART_MONTHLY)h=k.indexOf(p)-1,fi(k[h]);else{if(o--,nt&&(coned.utils.isMobile()||coned.utils.isTablet())){if(c=s?yt:ct,h=o,h===-1){var ni=s?bt:wt,d=c[f-1],ii=ni[f-1]?Object.keys(ni[f-1].items).length-1:d?d[Object.keys(d).length-1]:undefined;h=d?d[ii]:undefined;f--}else h=c[f][h];e=o<0?e-1:e;o=o>-1?o:c[f]&&Object.keys(c[f]).length>0?Object.keys(c[f]).length-1:0;ot=document.getElementById(h);ct[f]&&(w=ct[f]?document.getElementById(ct[f][o]):null);b=h}else gt=et.indexOf(p)>-1?n.CONED_CHART_DAILY:n.CONED_CHART_EVENT,h=gt===n.CONED_CHART_EVENT?lt.indexOf(p)-1:et.indexOf(p)-1,pt=s?lt:et,ot=document.getElementById(pt[h]),w=document.getElementById(et[st]),b=pt[h],e=o<0?e-1:e;if(ot)e=parseInt(document.getElementById(b).getAttribute(n.CONED_CHART_DATA_PERIOD)),o=parseInt(document.getElementById(b).getAttribute(n.CONED_CHART_DATA_WEEK)),fi(b);else{if(kt=!0,coned.utils.isMobile()||coned.utils.isTablet()){var ti=s?bt:wt,ui=ti[e]?!0:!1,ei=s?n.CONED_CHART_EVENT_BUTTON:n.CONED_CHART_DATE_BUTTON,si=i.getElementsByClassName(ei)[0];ui&&(kt=!1,li(si),oi(ti[e]))}kt&&(nt&&(coned.utils.isMobile()||coned.utils.isTablet())?ir=c[e]===undefined||Object.keys(c[e]).length>0?!0:!1:o=o<0?w.getAttribute(n.CONED_CHART_DATA_WEEK):o,di(e),v=w?w.getAttribute(n.CONED_CHART_DATE_TEXT):v)}}},eu=function(){ot==="5"&&(s?(query.addClass(lr,n.CONED_HIDDEN_CLASS),query.removeClass(ar,n.CONED_HIDDEN_CLASS)):(query.addClass(ar,n.CONED_HIDDEN_CLASS),query.removeClass(lr,n.CONED_HIDDEN_CLASS)))},re=function(){var t=coned.utils.isPatternLab()?coned.plConstants.GET_CHART_LEGEND_DATA:window.location.origin+n.CONED_DATA_ATTRIBUTES_JSON;query.getData(t,function(n){nu=n},function(){})},ai=function(n){var t=coned.utils.isMobile()==!0?"mobile":"desktop",i="data-"+t+"-arrow-prev",r="data-"+t+"-arrow-next",u=n.getAttribute(r),f=n.getAttribute(i);y.setAttribute("aria-label",f);w.setAttribute("aria-label",u)},ue=function(){h&&query.hasClass(h,a)?ai(h):c&&query.hasClass(c,a)?ai(c):l&&query.hasClass(l,a)&&ai(l)},fe=function(){h?coned.utils.addGeneralListeners(pt,gu):coned.utils.addGeneralListeners(pt,fu);coned.utils.addGeneralListeners(c,fu);coned.utils.addGeneralListeners(l,of);coned.utils.addGeneralListeners(h,sf);coned.utils.addGeneralListeners(y,te);coned.utils.addGeneralListeners(w,ie);ue();window.addEventListener("resize",function(){var f=document.getElementsByClassName(n.CONED_CHART_DEMAND_BUTTON)[0],e=window.innerWidth,o=e>coned.constants.TABLET_MAX_SIZE==!0?"desktop":"mobile";if(r&&f.classList.contains(n.CONED_CHART_TAB_ACTIVE_CLASS))if(hu!==o)location.reload();else{var s=u===n.CONED_CHART_DAILY||u===n.CONED_CHART_EVENT?/-([A-Z])*\w+/g:/-([0-9]{4})/g,t=g[g.length-1].length,i=g[0].length,h=t>i?t:i;coned.chart.resizeWindow(r,ti,s,kt,h)}});coned.utils.addGeneralListeners(su,function(n){n.preventDefault();var t=vt.hasAttribute("hidden")?"true":"false";coned.chart.showTableInfo(this.parentElement,r,t)})},ee=function(){si=document.getElementsByClassName(n.CONED_ENERGY_USAGE)[0];vr=document.getElementsByClassName(n.CONED_CHART_FORM_LOADING)[0];hi=i.getElementsByClassName(n.CONED_CHART_MODULE)[0];ft=i.getElementsByClassName(n.CONED_CHART_CONTAINER)[0];ht=i.getElementsByClassName(n.CONED_CHART_NOTE)[0];ut=i.getElementsByClassName(n.CONED_CHART_ERROR_MESSAGE)[0];cr=i.getElementsByClassName(n.CONED_CHART_NODATA_MESSAGE)[0];pt=i.getElementsByClassName(n.CONED_CHART_DEMAND_BUTTON)[0];hr=i.getElementsByClassName(n.CONED_CHART_MOBILE_DEMAND)[0];c=i.getElementsByClassName(n.CONED_CHART_DATE_BUTTON)[0];h=i.getElementsByClassName(n.CONED_CHART_MONTH_BUTTON)[0];l=i.getElementsByClassName(n.CONED_CHART_EVENT_BUTTON)[0];dt=i.getElementsByClassName(n.CONED_CHART_DATE)[0];y=i.getElementsByClassName(n.CONED_CHART_LEFT_ARROW)[0];w=i.getElementsByClassName(n.CONED_CHART_RIGHT_ARROW)[0];lr=i.getElementsByClassName(n.CONED_CHART_DAILY_NOTE)[0];ar=i.getElementsByClassName(n.CONED_CHART_EVENT_NOTE)[0];su=i.getElementsByClassName("js-coned-chart-table-button")[0];vt=i.getElementsByClassName("js-chart-table-content")[0];au=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];it=vt.dataset.shortenedMonthsList.split(",");vu=["January","February","March","April","May","June","July","August","September","October","November","December"];hu=window.innerWidth>coned.constants.TABLET_MAX_SIZE==!0?"desktop":"mobile";k=[];et=[];lt=[];yr={};tt=[];yi=0;nr={};br={};kr={};pi={};tu={};iu={};bi=!1;ii=0;gr=!1;wt={};bt={};rt=[];b=0;d=0;ct={};yt={};at=!1;ri=!1;ki=!1;rr=!1;ur={};ru={};ir=!1;s=!1;a=coned.utils.isOru()?n.CONED_CHART_ORU_BUTTON_DISABLED:n.CONED_CHART_BUTTON_DISABLED;yu=[n.CONED_CHART_DAILY_COLOR];pu=[n.CONED_CHART_DAILY_COLOR];wu=[n.CONED_CHART_DAILY_COLOR,n.CONED_CHART_EVENT_COLOR];bu=[n.CONED_CHART_EVENT_COLOR];ku=[n.CONED_CHART_EVENT_COLOR,n.CONED_CHART_EVENT_COLOR];wr=!0},oe=function(){ee();fe();re();uu();t=!0};oe()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SkipToMainContentComponent=function(){var i={MAIN_CONTENT:"mainContent"},n=!1,t=function(t){var r,u=function(n){n.preventDefault();r.focus()},f=function(){r=document.getElementById(i.MAIN_CONTENT)},e=function(){coned.utils.addGeneralListeners(t,u)},o=function(){f();e();n=!0};o()};return t.prototype.isLoaded=function(){return n},t}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SleepingHours=function(){var n={RADIO_OPTION:"js-radio-life-support",RADIO_OPTION_YES:"js-radio-life-support-yes",INPUT_MASK:"js-mask",INPUT_ITEM:"js-item-validate",FIELD_CONTAINER:"js-sleeping-input",FORM_ITEM_IGNORE:"js-validate-ignore",INPUT_ERROR_CLASS:"coned-input-message--error",INPUT:"js-slepping-hours-input",FORM:".transactional__form"},t=!1,i=function(i){var f,e,u,r,o,s=function(){var t=$(n.FORM).validate(),i;o.checked?(i=e.offsetHeight+35,r.classList.add(n.INPUT_ITEM),r.classList.remove(n.FORM_ITEM_IGNORE),TweenMax.to(u,.4,{height:i}),t.resetForm()):(r.classList.add(n.FORM_ITEM_IGNORE),r.classList.remove(n.INPUT_ERROR_CLASS),r.classList.remove(n.INPUT_ITEM),r.value="",TweenMax.to(u,.4,{height:0}),t.resetForm())},h=function(){f=i.getElementsByClassName(n.RADIO_OPTION);o=i.getElementsByClassName(n.RADIO_OPTION_YES)[0];e=i.getElementsByClassName(n.FIELD_CONTAINER)[0];u=i.getElementsByClassName(n.INPUT_MASK)[0];r=i.getElementsByClassName(n.INPUT)[0]},c=function(){_.each(f,function(n){n.addEventListener("change",s)})},l=function(){h();c();t=!0};l()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SliderComponent=function(){var n={ARIA_CURRENT:"aria-current",BUTTON_NEXT_CLASS:".js-swiper-button-next",BUTTON_PREV_CLASS:".js-swiper-button-prev",PAGINATION_CLASS:".js-swiper-pagination",SLIDER_COMPONENT_CLASS:".js-slider-component",BULLET_BUTTON_CLASS:"js-bullet-button",BULLET_ACTIVE_CLASS:".swiper-pagination-bullet-active",ACTIVE_SLIDE:"swiper-slide-active",DUPLICATE_SLIDES_CLASS:"swiper-slide-duplicate",SLIDER_IMAGE_CLASS:"js-slide-image",SLIDES_SELECTOR:"js-slide",SLIDE_INDEX_ATTR_SELECTOR:"data-swiper-slide-index",POP_UP_SELECTOR:"js-popup",SLIDER_COUNTER:"js-slider-counter",SLIDER_COUNTER_CURRENT:"js-slider-counter-current",SLIDER_COUNTER_TOTAL:"js-slider-counter-total",POPUP_VISIBLE_EVENT:"popup-visible",HIDDEN_CLASS:"hidden",RESIZE_EVENT:"resize",ON_SLIDE_CHANGE_END_EVENT:"onSlideChangeEnd",DATA_BULLET_INDEX_ATTR:"data-bullet-index",PX:"px",ANIMATION_SPEED:500};return function(t){var i,r,u,c,o,l,s,f,e,a,v,h,y=function(t,r){i&&i.removeAttribute(n.ARIA_CURRENT);i=r||t.target;i&&i.setAttribute(n.ARIA_CURRENT,!0)},nt=function(t){var i=t.target.getAttribute(n.DATA_BULLET_INDEX_ATTR);a.innerHTML=i},p=function(){var i=parseInt(v.innerHTML),r=s.length,u=t.getElementsByClassName(n.ACTIVE_SLIDE)[0];i!==r&&(v.innerHTML=s.length);a.innerHTML=parseInt(u.getAttribute(n.SLIDE_INDEX_ATTR_SELECTOR))+1},w=function(t){var i=c.querySelector(n.BULLET_ACTIVE_CLASS);y(t,i)},tt=function(t,i){i+=" "+n.BULLET_BUTTON_CLASS;var r='aria-label = "View slide '+(t+1)+'"data-bullet-index ="'+(t+1)+'"';return t===0&&(r+=' aria-current = "true"'),'<button class = "'+i+'"'+r+"><\/button>"},b=function(){var f=t.getElementsByClassName(n.ACTIVE_SLIDE)[0],i=f.getElementsByClassName(n.SLIDER_IMAGE_CLASS)[0],e=i.offsetHeight,s=parseInt(window.getComputedStyle(i).marginTop),h=r.offsetHeight,u=e/2-h/2+s;r.style.top=u+n.PX;o.style.top=u+n.PX},k=function(){l=t.querySelector(n.SLIDER_COMPONENT_CLASS);s=t.querySelectorAll("."+n.SLIDES_SELECTOR+":not(."+n.DUPLICATE_SLIDES_CLASS+")");s.length===1?(h=new Swiper(l,{watchOverflow:!0,loop:!1,followFinger:!1}),query.addClass(r,n.HIDDEN_CLASS),query.addClass(o,n.HIDDEN_CLASS),query.addClass(e,n.HIDDEN_CLASS)):(h=new Swiper(l,{speed:n.ANIMATION_SPEED,loop:!0,followFinger:!1,pagination:n.PAGINATION_CLASS,paginationClickable:!0,paginationType:"bullets",paginationBulletRender:tt,nextButton:n.BUTTON_NEXT_CLASS,prevButton:n.BUTTON_PREV_CLASS}),e&&p());h.init()},d=function(){for(var n=0;n<u.length;n++)coned.utils.addGeneralListeners(u[n],y),e&&coned.utils.addGeneralListeners(u[n],nt)},it=function(){if(window.addEventListener(n.RESIZE_EVENT,b),d(),e)h.on(n.ON_SLIDE_CHANGE_END_EVENT,p)},g=function(){u=c.querySelectorAll("."+n.BULLET_BUTTON_CLASS);i=u[0]},rt=function(){f=query.selectParentElement(t,n.POP_UP_SELECTOR)},ut=function(){r=t.querySelector(n.BUTTON_NEXT_CLASS);o=t.querySelector(n.BUTTON_PREV_CLASS);c=t.querySelector(n.PAGINATION_CLASS);e=t.getElementsByClassName(n.SLIDER_COUNTER)[0];a=t.getElementsByClassName(n.SLIDER_COUNTER_CURRENT)[0];v=t.getElementsByClassName(n.SLIDER_COUNTER_TOTAL)[0];f||g()},ft=function(){f?f.addEventListener(n.POPUP_VISIBLE_EVENT,function(){k();b();g();it()}):d();coned.utils.addGeneralListeners(r,w);coned.utils.addGeneralListeners(o,w)},et=function(){rt();f||k();ut();ft()};et()}}();coned=coned||{};coned.components=coned.components||{};coned.components.SrLive=function(){var n=!1,t={VALUES:{SPACE:" ",NBSP:"&nbsp;"}},i=function(i){var r,u=1,f=function(n){var f=n.detail.valueKey,s=n.detail.formatValues,e=r.values&&f?r.values[f]?r.values[f]:"":"",o;f&&e.length>0&&(u++,o=Array.from({length:u},function(){return t.VALUES.NBSP}).join(t.VALUES.SPACE),u>10&&(u=0),i.innerHTML=o+(s?coned.utils.formatString(e,s):e)+o)},e=function(){r={values:i.dataset.values?coned.utils.buildRecordString(i.dataset.values):{}}},o=function(){i.addEventListener(coned.constants.CUSTOM_EVENTS.SET_STATE_DETAIL,f)},s=function(){e();o();n=!0;coned.utils.triggerEvent(i,coned.constants.CUSTOM_EVENTS.CHANGE_STATE_DETAIL,r)};s()};return i.prototype.isLoaded=function(){return n},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.StartDate=function(){var n={DISABLED_MODAL:"js-disabled-modal",DISABLED_MODAL_CLASS:"disabled-modal",INPUT_DATE:".js-current-datepicker-input",INPUT_NEXT_DATE:"js-next-datepicker-input",SUBMIT_SELECTOR:"js-start-day-selector"},t=!1,i=function(){var u,i,r,f=function(t){var f=t.target.value;f!=""?(query.removeClass(u,n.DISABLED_MODAL_CLASS),i.disabled=!1,i.nextSibling.disabled=!1):(query.addClass(u,n.DISABLED_MODAL_CLASS),i.disabled=!0,r.disabled=!0,i.nextSibling.disabled=!0)},e=function(n){var t=n.target.value;r.disabled=t!=""?!1:!0},o=function(){u=document.getElementsByClassName(n.DISABLED_MODAL)[0];i=document.getElementsByClassName(n.INPUT_NEXT_DATE)[0];r=document.getElementsByClassName(n.SUBMIT_SELECTOR)[0]},s=function(){$(n.INPUT_DATE).on("change",f);$("."+n.INPUT_NEXT_DATE).on("change",e)},h=function(){o();s();t=!0};h()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.StartServiceCCG=function(){var n={FORM_SELECTOR:"js-start-service-ccg-form",START_CCG_INITIAL_CLASS:"js-start-service-ccg",PHONE_RADIO_BUTTON:"js-phone-radio",EMAIL_RADIO_BUTTON:"js-email-radio",PHONE_INPUT:"js-phone-number",EMAIL_INPUT:"js-email-address",SUBMIT_BUTTON:"js-transactional-submit-selector",SUBMIT_ANIMATION:"js-submit-progress-animation",FORM_LOADING:"js-form-loading",FINISH_STEP_SELECTOR:"js-finish-message",CAPTCHA_ELEMENT_CLASS:"js-recaptcha",RECAPTCHA:"js-recaptcha-container",IGNORE_VALIDATION:"js-ignore-validation",SERVICE_ERROR:"js-service-error",ERROR_MESSAGE:"js-error-message",START_SERVICE_CCG_FINISH_MAIN:"js-start-service-ccg-finish-main",TABINDEX:"tabindex",FIELD_CONTAINER:"coned-form__field-container",HIDDEN_CLASS:"hidden",REQUIRED_ATTRIBUTE:"required",FORM_ID:"FormId",SERVICE_ADDRESS_NAME:"serviceAddress",BUSINESS_NAME:"businessName",FIRST_NAME:"firstName",LAST_NAME:"lastName",CONTACT_TYPE_NAME:"contactType",PHONE_NAME:"phoneNumber",EMAIL_NAME:"emailAddress",EMAIL_VALUE:"email",PHONE_VALUE:"phone"},t=!1,i=function(i){var r,y,e,h,p,u,f,w,b,o,s,c,k,d,l,a,g,rt=function(){g?v():l.checkRecaptcha()},v=function(){new coned.components.SubmitAnimation(o,ut,ft,nt)},ut=function(){var u=a?l.getResponse():null,f=r.dataset.serviceUrl,t=new FormData;t.append("FormId",query.getFormInputValue(i,n.FORM_ID));t.append("ServiceAddress",query.getFormInputValue(i,n.SERVICE_ADDRESS_NAME));t.append("BusinessName",query.getFormInputValue(i,n.BUSINESS_NAME));t.append("FirstName",query.getFormInputValue(i,n.FIRST_NAME));t.append("LastName",query.getFormInputValue(i,n.LAST_NAME));t.append("ContactType",query.getFormInputValue(i,n.CONTACT_TYPE_NAME));h.checked?t.append("PhoneNumber",query.getFormInputValue(i,n.PHONE_NAME)):t.append("EmailAddress",query.getFormInputValue(i,n.EMAIL_NAME));a&&u&&u!==""&&t.append("Verify",u);query.postData(f,et,nt,t,!1,w)},ft=function(){y.classList.add(n.HIDDEN_CLASS);query.removeClass(d,n.HIDDEN_CLASS);query.removeClass(e,n.HIDDEN_CLASS);e.focus();window.scrollTo(0,0)},et=function(){s.classList.add(n.HIDDEN_CLASS);o.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},nt=function(t){s.classList.remove(n.HIDDEN_CLASS);o.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);c.innerHTML=t.errorMsg&&t.errorMsg!==""?t.errorMsg:coned.constants.ERROR_MESSAGE;s.focus()},tt=function(){b.disabled=!$(r).validate().checkForm()},it=function(t){var i=t.currentTarget,r=query.selectParentElement(u,n.FIELD_CONTAINER),e=query.selectParentElement(f,n.FIELD_CONTAINER);i.value===n.PHONE_VALUE?(r.classList.remove(n.HIDDEN_CLASS),e.classList.add(n.HIDDEN_CLASS),u.classList.remove(n.IGNORE_VALIDATION),u.setAttribute(n.REQUIRED_ATTRIBUTE,n.REQUIRED_ATTRIBUTE),f.classList.add(n.IGNORE_VALIDATION),f.removeAttribute(n.REQUIRED_ATTRIBUTE)):i.value===n.EMAIL_VALUE&&(r.classList.add(n.HIDDEN_CLASS),e.classList.remove(n.HIDDEN_CLASS),u.classList.add(n.IGNORE_VALIDATION),u.removeAttribute(n.REQUIRED_ATTRIBUTE),f.classList.remove(n.IGNORE_VALIDATION),f.setAttribute(n.REQUIRED_ATTRIBUTE,n.REQUIRED_ATTRIBUTE));tt()},ot=function(){r=i.getElementsByClassName(n.FORM_SELECTOR)[0];y=document.getElementsByClassName(n.START_CCG_INITIAL_CLASS)[0];h=i.getElementsByClassName(n.PHONE_RADIO_BUTTON)[0];p=i.getElementsByClassName(n.EMAIL_RADIO_BUTTON)[0];u=i.getElementsByClassName(n.PHONE_INPUT)[0];f=i.getElementsByClassName(n.EMAIL_INPUT)[0];w=i.getElementsByClassName(n.FORM_LOADING)[0];b=i.getElementsByClassName(n.SUBMIT_BUTTON)[0];o=i.getElementsByClassName(n.SUBMIT_ANIMATION)[0];s=i.getElementsByClassName(n.SERVICE_ERROR)[0];c=i.getElementsByClassName(n.ERROR_MESSAGE)[0];d=document.getElementsByClassName(n.FINISH_STEP_SELECTOR)[0];e=i.getElementsByClassName(n.START_SERVICE_CCG_FINISH_MAIN)[0];k=document.getElementsByClassName(n.CAPTCHA_ELEMENT_CLASS);a=k.length;g=r.dataset.userStatus},st=function(){r.addEventListener("input",tt);h.addEventListener("change",it);p.addEventListener("change",it);e.setAttribute(n.TABINDEX,"-1");new coned.components.ValidateForm("."+n.FORM_SELECTOR,rt,n.IGNORE_VALIDATION);l=new coned.components.Recaptcha(r,v,v)},ht=function(){ot();st();t=!0};ht()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.StartService=function(){var n={FORM:"coned-form",START_SERVICE:"js-start-service",START_FORM:".js-start-service-form",START_FORM_CLASS:"js-start-service-form",ADDRESS_LOOKUP_FORM:"js-address-lookup",AUTOCOMPLETE_APARMENT_UNIT:"js-autocomplete-apartment-unit",AUTOCOMPLETE_SELECTED_ADDRESS_DETAIL:"js-address-selected-detail",NEXT_BUTTON:"js-next-button",NEXT_MAIN_BUTTON:"js-next-main-button",FINISH_BUTTON:"js-finish-button",LOOKUP_BUTTON:"js-lookup-button",DATE_PICKER_INPUT:"js-start-date",DATE_PICKER_INPUT_CLASS:".js-start-date",START_DATE_RECEPTOR:"js-start-date-receptor",ADDRESS_RECEPTOR:"js-address-receptor",NAME:"js-first-name",LAST_NAME:"js-last-name",NAME_COMMERCIAL:"js-first-name-commercial",LAST_NAME_COMMERCIAL:"js-last-name-commercial",NAME_RECEPTOR:"js-first-name-receptor",LAST_NAME_RECEPTOR:"js-last-name-receptor",DATE_OF_BIRTH:"js-birth-date",DATE_OF_BIRTH_RECEPTOR:"js-date-birth-receptor",PROFILE_SUBMIT_BUTTON:"js-transactional-extra-help",IDENTIFICATION:"js-identification-active",IDENTIFICATION_RECEPTOR:"js-identification-receptor",IDENTIFICATION_TITLE_RECEPTOR:"js-identification-title-receptor",IDENTIFICATION_SELECT:"js-identification-type",NO_IDENTIFICATION:"js-no-identification",IDENTITY_BUTTON:"js-identity-button",PHONE_TITLE_RECEPTOR:"js-phone-title-receptor",EMAIL:"js-start-email",EMAIL_RECEPTOR:"js-email-receptor",PHONE:"js-start-phone",PHONE_RECEPTOR:"js-phone-receptor",PHONE_TYPE_SELECT:"js-phone-type-select",LIFE_SUPPORT_SELECT:"js-start-service-life-support",DISABLILTY_SELECT:"js-start-service-disability",SUCCESS_EMAIL_RECEPTOR:"js-sucess-email-receptor",SUCCESS_DATE_RECEPTOR:"js-success-date-receptor",ANIMATION_SUBMIT_MODULE:"js-submit-progress-animation",EDIT_ACCOUNT_INFORMATION:"js-edit-account-information",ACCOUNT_PROFILE_SELECTOR:"js-account-profile",FORM_IGNORE_VALIDATION:".js-validate-ignore",STEPS_LIST:"js-steps-list",STEP_FINISH:"js-form-finish",STEP_FINISH_ACTIVE:"form-progress-bar__finish--active",STEP_PROGRESS_BAR:"js-form-progress-bar",FINISH_BAR_CLASS:"form-progress-bar--finish",FINISH_STEP_SELECTOR:"js-finish-message",MAILING_ZIPCODE:"js-mailing-zipcode",MAILING_CANADA_ZIPCODE:"js-mailing-canada-zipcode",MAILING_STATE:"js-mailing-state",MAILING_STATE_CANADA:"js-mailing-state-canada",MAILING_TOWN:"js-mailing-town",MAILING_STREET:"js-mailing-street",MAILING_NAME:"js-mailing-name",MAILING_OPTIONS_CONTAINER:"js-mailing-options",MAILING_CHECKBOX:"js-start-service-mailing",MAILING_INPUT_OPTIONS:"js-mailing-input",MAILING_OPTIONS_CLASS:"transactional__mailing-options",MAILING_RECEPTOR:"js-mailing-receptor",VALIDATE_IGNORE:"js-validate-ignore",INPUT_ERROR_MESSAGE:"coned-input-message--error",COUNTRY_DROPDOWN:"js-mailing-country",OTHER_COUNTRY:"js-other-country",INPUT_VALIDATE:"js-item-validate",ACTIVE_DROPDOWN:"coned-select--active",SOCIAL_SECURITY_NUMBER:"Social Security Number",DROPDOWN_LABEL:"js-coned-select-label",DROPDOWN_ACTIVE_CLASS:"js-coned-select-active",USA_ZIPCODE_SELECTOR:"js-usa-zipcode-selector",TAX_ID_NUMBER:"Tax ID Number",CANADA_ZIPCODE_SELECTOR:"js-canada-zipcode-selector",DISABILITY_AGE_62_ALONE_RECEPTOR:"js-age62OverAlone-receptor",DISABILITY_MEMBERS_62_OVER_18_UNDER_RECEPTOR:"js-members62Over18Under-receptor",DISABILITY_DISABLED_BLIND_RECEPTOR:"js-disabledOrBlind-receptor",NO_DEPOSIT_ALERT:"js-no-deposit-alert",DISABILITY_RADIOS:"js-disability-radio",CITY_SELECTOR:"js-city-selector",ADDRESS_STEP_SELECTOR:"js-address-step",VERIFY_DATE_STEP_SELECTOR:"js-verify-date-step",SERVICE_IDENTITY_STEP_SELECTOR:"js-service-identity-step",ACCOUNT_PROFILE_STEP_SELECTOR:"js-account-profile-step",DIRECT_PAYMENT_STEP_SELECTOR:"js-step-direct-pay",DEPOSIT_PAYMENT_STEP_SELECTOR:"js-step-no-id-pay",LIFE_SUPPORT_STEP_SELECTOR:"js-step-life-support",LIFE_SUPPORT_RADIOS_SELECTOR:"js-radio-lse-needed",LIFE_SUPPORT_RADIO_YES_SELECTOR:"js-radio-lse-needed-yes",LIFE_SUPPORT_RADIO_ERROR_SELECTOR:"js-lse-error",DISABILITY_STEP_SELECTOR:"js-step-disability",REVIEW_STEP_SELECTOR:"js-step-review",ACCOUNT_NUMBER_ERROR_SELECTOR:"js-account-number-service-error",START_DATE_ERROR_SELECTOR:"js-start-date-service-error",CHECK_AVAILABILITY_ERROR:"js-check-availability-service-error",START_SERVICE_ERROR_SELECTOR:"js-start-service-error",LIVE_CHAT_AVAILABLE_SELECTOR:"js-live-chat-available",LIVE_CHAT_ERROR_MESSAGE:"js-live-chat-error-message",LIVE_CHAT_AVAILABLE_MESSAGE:"js-live-chat-available-message",LIVE_CHAT_BUTTON:"js-live-chat-cta",INIT_CHAT:"init",STOP_CHAT:"stop",ERROR_TEXT_SELECTOR:"js-error-message",FORM_COMPANY_CODE_NAME:"companyCode",FORM_ADDRESS_SCID_NAME:"AddressScId",FORM_START_DATE_SCID_NAME:"DateScId",FORM_ROP_INDICATOR:"residency",FORM_ACCOUNT_PROFILE_SCID_NAME:"AccountProfileScId",FORM_DIRECT_PAYMENT_SCID_NAME:"DirectPaymentScId",FORM_LIFE_SUPPORT_SCID_NAME:"LifeSupportScId",FORM_DISABILITY_SCID_NAME:"DisabilityScId",FORM_ZIPCODE_NAME:"startServiceZipCode",FORM_STREET_NAME_NAME:"streetName",FORM_STREET_NUMBER_NAME:"streetNumber",FORM_RESIDENCE_UNIT_NAME:"residenceUnit",FORM_START_DATE_NAME:"startServiceDate",FORM_FIRST_NAME_NAME:"firstName",FORM_LAST_NAME_NAME:"lastName",FORM_FIRST_NAME_COMMERCIAL:"firstNameCommercial",FORM_LAST_NAME_COMMERCIAL:"lastNameCommercial",FORM_DOB_NAME:"identityDateOfBirth",FORM_SSN_NAME:"socialNumber",FORM_DRIVER_LICENSE_NAME:"driverLicense",FORM_DRIVER_LICENSE_ISSUED_STATE_NAME:"driverLicenseIssuedState",FORM_ALIEN_ID_NAME:"alienId",FORM_PUBLIC_ASSISTANCE_NAME:"publicAsistanceId",FORM_PASSPORT_NAME:"startPassport",FORM_EMAIL_NAME:"emailAdress",FORM_PHONE_TYPE_NAME:"phoneType",FORM_PHONE_NUMBER_NAME:"phoneNumber",FORM_MAILING_ADDRESS_NAME:"mailingAddress",FORM_MAILING_NAME_NAME:"mailingName",FORM_SECURTY_WORD:"js-start-security-word",FORM_MAILING_STREET_NAME:"mailingStreet",FORM_MAILING_ADDRESS_ONE_NAME:"mailingAddressOne",FORM_MAILING_ADDRESS_TWO_NAME:"mailingAddressTwo",FORM_MAILING_COUNTRY_NAME:"mailingCountry",FORM_MAILING_OTHER_COUNTRY_NAME_NAME:"otherMailingCountryName",FORM_MAILING_CITY_NAME:"mailingCity",FORM_MAILING_TOWN_NAME:"mailingTown",FORM_MAILING_STATE_NAME_USA:"mailingState",FORM_MAILING_STATE_NAME_CANADA:"mailingStateCanada",FORM_MAILING_ZIPCODE_NAME:"mailingZipCode",FORM_MAILING_CANADA_ZIPCODE_NAME:"mailingCanadaZipCode",FORM_SECURITY_WORD_NAME:"securityWord",FORM_EBILL_ENROLL_NAME:"ebillEnroll",FORM_DIRECT_PAYMENT_ENROLL_NAME:"directPaymentEnroll",FORM_LIFE_SUPPORT_NAME:"lifeSupportEnroll",FORM_DISABILITY_NAME:"disabilityEnroll",FORM_DP_ACCOUNT_TYPE_NAME:"accountType",FORM_DP_ROUTING_NUMBER_NAME:"routingAbaNumber",FORM_DP_ACCOUNT_NUMBER_NAME:"accountNumber",FORM_NID_PAYMENT_METHOD_NAME:"paymentMethod",FORM_NID_ROUTING_NUMBER_NAME:"depositRoutingAbaNumber",FORM_NID_ACCOUNT_NUMBER_NAME:"depositAccountNumber",FORM_LS_TANK_RESPIRATOR_ID:"tankRespirator",FORM_LS_CUIRASS_RESPIRATOR_ID:"cuirassRespirator",FORM_LS_ROCKING_RESPIRATOR_ID:"rockingRespirator",FORM_LS_ELECTRICAL_RESPIRATOR_ID:"electricalRespirator",FORM_LS_APNEA_MONITOR_ID:"apneaMonitor",FORM_LS_HEMODIALYSIS_ID:"hemodialysis",FORM_LS_OTHER_NAME:"lifeSupportOther",FORM_DISABILITY_AGE_62_ID:"age62",FORM_DISABILITY_BLIND_ID:"blind",FORM_DISABILITY_PERMANENTLY_DISABLED_ID:"permanentlyDisabled",FORM_DISABILITY_UNDER_AGE_18_ID:"underAge18",FORM_DISABILITY_OTHER_NOTIFIED_NAME:"otherNotified",FORM_DISABILITY_FIRST_NAME_NAME:"disabilityFirstName",FORM_DISABILITY_LAST_NAME_NAME:"disabilityLastName",FORM_DISABILITY_STREET_ADDRESS_NAME:"disabilityStreetAddress",FORM_DISABILITY_CITY_NAME:"disabilityCity",FORM_DISABILITY_STATE_NAME:"disabilityState",FORM_DISABILITY_ZIPCODE_NAME:"disabilityZipCode",FORM_DISABILITY_DAY_TIME_NUMBER_NAME:"dayTimeNumber",FORM_DISABILITY_NIGHT_TIME_NUMBER_NAME:"nightTimeNumber",FORM_ORU_DISABILITY_AGE_62_ALONE_NAME:"age62OverAlone",FORM_ORU_DISABILITY_MEMBERS_62_OVER_18_UNDER:"members62Over18Under",FORM_ORU_DISABILITY_DISABLED_BLIND:"disabledOrBlind",HIDDEN_CLASS:"hidden",HIDDEN_FORM_LOADING:"form-loading--hidden",FORM_LOADING:"js-form-loading",FORM_STEP:"js-form-step",FORM_CURRENT_STEP:"js-current-form-step",NAV_CURRENT_STEP:"js-current-step",FORM_STEP_ACTIVE:"form-progress-bar__item--active",IS_FORM_BLOCKED:"js-form-blocked",CONED_RADIO_SELECTOR:"js-coned-radio",CONED_RADIO_CLASS:"coned-radio",CONED_RADIO_LABEL_CLASS:"coned-radio__label-name",INPUT_FULL:"transactional__half--full",INPUT_EVENT:"input",CHANGE_EVENT:"change",DISABLED_ATTRIBUTE:"disabled",COMMERCIAL_ACCOUNT_SELECTOR:"js-commercial-account",FORM_BUSINESS_NAME:"businessName",FORM_BOPA_AWKNOLEDGEMENT_NAME:"bopaAcknowledgement",BUSINESS_NAME_RECEPTOR:"js-business-name-receptor",BUSINESS_NAME:"js-business-name",FULL_NAME:"js-full-name",BOPA_CHECKLIST_INFO:"js-check-list-bopa-info",COMMERCIAL_DISABLED:"js-commercial-disabled",COMMERCIAL_NO_REQUIRED:"js-commercial-no-required",COMMERCIAL_NO_VALIDATE:"js-commercial-no-validate",COMMERCIAL_VALIDATE:"js-commercial-validate",COMMERCIAL_HIDDEN:"js-commercial-hidden",COMMERCIAL_VISIBLE:"js-commercial-visible",COMMERCIAL_VISIBLE_HIDDEN:"js-commercial-visible-hidden",COMMERCIAL_HIDDEN_VISIBLE:"js-commercial-hidden-visible",FORM_ITEM_IGNORE:"js-validate-ignore",FORM_ITEM_VALIDATE:"js-item-validate",TAX_INPUT_VALUE:"js-ein-tax-input",TAX_INPUT_NAME:"taxId",INPUT_ACTIVE_VALUE:"js-identification-active",AUTHENTICATION_SELECTOR:"js-authentication",NO_INPUT:"js-no-input",IS_COMMERCIAL:"js-commercial-authentication",ACCOUNT_TYPE_RESIDENTIAL:"R",ACCOUNT_TYPE_COMMERCIAL:"C",SKIP_STEP_CLASS:"js-skip-step",HELP_INPUT_SELECTOR:"js-checkbox-selector",HELP_CHECKBOX_SELECTOR:"js-extra-help-selector",SELECT_AUTH:"js-select-auth",SELECT_AUTH_COMMERCIAL:"js-select-auth-commercial",COMMERCIAL_INITIAL_AMMOUNT:"js-commercial-initial-ammount",COMMERCIAL_INITIAL_TIME:"js-commercial-initial-time",BOPA_RADIO_NOT_SURE:"NOT SURE",FILLED_CLASS:"coned-input--filled",IDENTIFICATION_STRING:"Identification",RADIO_YES_OPTION:"Yes",RADIO_NO_OPTION:"No",DIRECT_PAYMENT:"js-direct-payment-enroll",DEPOSIT_HIDDEN:"js-has-deposit",DEPOSIT_BANK_HIDDEN:"js-has-deposit-bank",DEPOSIT_MAIL_HIDDEN:"js-has-deposit-mail",DEPOSIT_AMOUNT:"js-deposit-amount",CAPTCHA_ELEMENT:"js-recaptcha",DEPOSIT_PAYMENT_RADIOS:"js-payment-method-radio",DEPOSIT_PAYMENT_CONTINUE_BUTTON:"js-payment-method-button",DEPOSIT_ACCOUNT_TYPE_LABEL:"js-deposit-account-type-label",DEPOSIT_PAYMENT_METHOD_CONTENT:"js-payment-method-content",DEPOSIT_ROUTING_ABA_SELECTOR:"js-deposit-routing-aba-number",DEPOSIT_ACCOUNT_NUMBER_SELECTOR:"js-deposit-account-number",DEPOSIT_MAIL_BILL_CONTENT:"js-bill-mail-content",DEPOSIT_BANK_CONTENT:"js-bank-account-content",DEPOSIT_BANK_CHECKING:"checking",DEPOSIT_BANK_SAVINGS:"savings",DEPOSIT_RECEIVE_IN_MAIL:"Bill",DEPOSIT_MAIL_BILL:"bill",DEPOSIT_TOTAL_SELECTOR:"js-total-selector",DEPOSIT_PAYMENT_SUBMIT:"js-deposit-payment-submit",DPP_BANK_CHECKING:"checkingAccount",DPP_BANK_SAVINGS:"savingsAccount",CANADA_SELECT_VALUE:"canada",USA_SELECT_VALUE:"usa",CANADA_DROPDOWN_CONTAINER:"js-canada-state-selector",USA_DROPDOWN_CONTAINER:"js-usa-state-selector",ITEM_CHECK_FORM:"js-item-check-form",ABLE_TO_BACKDATE_SELECTOR:"js-inactive-can-backdate-description",MUST_BACKDATE_SELECTOR:"js-inactive-must-backdate-description",RED_PARAGRAPH_MODIFIER:"transactional__paragraph--red",BIRTH_DATE:".js-birth-date",ABLE_TO_BACKDATE:"AB",MUST_BACKDATE:"MB",SSN_LABEL:"SSN",VALID:"valid",COMMERCIAL_TAX_ID:"CommercialTaxId",CHANGE_ADDRESS_EVENT:"change-address",ADDRESS_AVERAGE_PARAGRAPH:"js-paragraph-address-average",AVERAGE_ELEMENT_SELECTOR:"js-paragraph-average",RADIO_AGE_62_OVER_ALONE:"js-age-62-over-alone",START_SERVICE_FINISH_MAIN:"js-start-service-finish-main",TABINDEX:"tabindex",DROPDOWN_DICTIONARY:{"js-social-number":"SSN","js-drivers-license":"DriverLicense","js-alien-id":"AlienID","js-public-assistance-id":"PublicAssistanceID","js-passport":"Passport","js-no-identification":"NoID"},STEP_SUCCESS_EVENT:"step-success",STEP_ERROR_EVENT:"step-error",STEP_3D_SUCCESS_TAG:"start.step3d.success",STEP_3D_ERROR_TAG:"start.step3d.error",ACCOUNT_NUMBER_TAG:"enter.bank.acct",ROUTING_ABA_TAG:"enter.routing",DEPOSIT_CHECK_TAG:"Check",NO_ERROR_CODES:"start.no.error.code",TAGGING_PHONE_TYPE:"enter.phone.type",TAGGING_INACTIVE:"Inactive",TAGGING_ACTIVE:"Active",TAGGING_CONED_FORM_SUCCESS:"coned.form.success",TAGGING_CCG_FORM:"startserv.submit.ccg-form",HAS_ELECTRICITY_COLD_AMI:"js-has-electricity-cold-ami",DEFAULT_SUCCESS_MESSAGE:"js-default-success-message",START_DATE_PLACEHOLDER:"@DATE",ZERO_AMOUNT:"0",ARIA_DISABLED:"aria-disabled"},t=!1,i=function(i){var r,hi,ci,of,l,li,h,sf,hf,cf,ai,lf,vi,ct,ar,af,vf,vr,yf,yr,pf,pr,wr,wf,bf,kf,kt,dt,df,f,o,gf,ne,tt,et,yi,br,kr,dr,te,lt,d,gt,pi,wi,ie,re,ue,fe,gr,at,ot,s,u,ni,y,it,bi,ee,ki,nu,tu,di,ti,ii,oe,se,gi,g,nr,rt,he,tr,a,iu,st,ru,ri,ir,ce,le,rr,ae,ve,ye,ur,uu,fu,v,p,w,ht,eu,vt,k,ou,su,pe,hu,yt,pt,cu,lu,au,fr,ui,vu,b,er,or,we,yu,pu,wu,nt,be,e,fi,ei,bu,ku,ke,de,du,ut,ge,gu,sr,oi,nf,si,hr,tf,ft,rf,c=function(t){var i=document.getElementsByClassName(n.NAV_CURRENT_STEP)[0];t?i.classList.add(n.IS_FORM_BLOCKED):i.classList.remove(n.IS_FORM_BLOCKED)},no=function(){ut&&(er=document.querySelector('iframe[src^="https://www.google.com/recaptcha"][src*="bframe"]'),or=er.parentNode.parentNode,we=new MutationObserver(function(){or&&or.style.visibility==="hidden"&&(g.classList.contains(n.HIDDEN_FORM_LOADING)||g.classList.add(n.HIDDEN_FORM_LOADING))}),we.observe(or,{attributes:!0,attributeFilter:["style"]}))},cr=function(t,i){tf=l?l.value:undefined;rf=l?l.dataset.unitsList:undefined;ft=rf?JSON.parse(rf)[tf].ServiceAddress:JSON.parse(li.dataset.serviceAddress);var u=at.dataset.checkAvailabilityService,r,f=ft.City,e=ft.State,o=ft.PostalCode,s=ft.PremiseNumber,h=ft.StreetAddress;yu&&(t=yu,yu="");pu&&(i=pu,pu="");g.classList.contains(n.HIDDEN_FORM_LOADING)||g.classList.add(n.HIDDEN_FORM_LOADING);rt.disabled=!0;ko();t&&typeof t=="string"||(nt=li.dataset.maid);_.each(rr,function(t){!query.hasClass(t,n.NAV_CURRENT_STEP)&&query.hasClass(t,n.FORM_STEP_ACTIVE)&&(t.classList.remove(n.FORM_STEP_ACTIVE),wu.push(t))});r={ScId:query.getFormInputValue(at,n.FORM_ADDRESS_SCID_NAME),AccountMaid:nt,AccountNumber:i,IsStartService:!0,IsTransferService:!1,ServiceAddress:{City:f,State:e,PostalCode:o,PremiseNumber:s,StreetAddress:h,UnitNumber:tf}};ut&&b&&b.getResponse()!==""&&(r.Verify=b.getResponse());r=JSON.stringify(r);query.postData(u,ho,lo,r,!0,g)},ho=function(t){if(coned.utils.isPatternLab()){var i=new Date,r=new Date,u=l.value,f=l.value;coned.utils.isOru()?(i.setDate(i.getDate()+1),r.setUTCMonth(r.getUTCMonth()+6),t.InactiveBackDate=""):f=="PD"||f=="10C"?(i.setDate(i.getDate()-60),r.setUTCMonth(r.getUTCMonth()+6),t.InactiveBackDate=n.ABLE_TO_BACKDATE):f=="FD"||f=="11B"?(i.setDate(i.getDate()-60),r.setDate(r.getDate()-1),t.InactiveBackDate=n.MUST_BACKDATE):(i.setDate(i.getDate()+1),r.setUTCMonth(r.getUTCMonth()+6),t.InactiveBackDate="");t.MinDate=i.toJSON().replace(/-/g,"/").slice(0,10);t.MaxDate=r.toJSON().replace(/-/g,"/").slice(0,10);t.maid=12345678910;t.AccountNumber="MF+TooI1iJE/j6+lImO5Xgwe/qMm1anl0/e9XW65CmjFn6Fg+DZY2vmZq2BV99o2WGHYyS2W0HuNwLbJGg+bp4tETtowjHhZzm/HhrULXBy1kD2JJ0t9WKKl7otA26X6";t.ServiceAddress={City:"FLORAL PARK ",Country:"",Division:"Queens",PostalCode:"11001",State:"NY",StreetAddress:"86- 22 260 STREET",UnitNumber:"PD"};coned.utils.isOru()?u==="700935004000055"&&(t.AverageBillAmount="80.00"):u==="005100006014108"||u==="HPH"?t.RedirectTo="/patterns/04-pages-09-transactional-services-00-start-service-ccg/04-pages-09-transactional-services-00-start-service-ccg.html":u==="005100006013107"||u==="CPH"?(t.AccountType=n.ACCOUNT_TYPE_COMMERCIAL,t.InitialDepositAmount="14,256.25",t.InitialDepositTime=12):(t.AccountType=n.ACCOUNT_TYPE_RESIDENTIAL,t.InitialDepositAmount="1,692.63",t.InitialDepositTime=12,t.AverageBillAmount="80.00");coned.utils.isOru()&&(t.InitialDepositAmount="1,692.63",t.InitialDepositTime=12);oi&&(t.IsElectricityColdAmi=!0)}co(t)},co=function(t){var i,f,o,u;gu=t.AverageBillAmount;ge=t.AccountType;ku=t.RedirectTo&&t.RedirectTo!==""?t.RedirectTo:"";i=dt.getElementsByClassName(n.DEFAULT_SUCCESS_MESSAGE)[0];rt.dataset.hasRedirect=t.RedirectTo&&t.RedirectTo!==""?"true":"false";gi&&(f=gi.getElementsByClassName(n.LIVE_CHAT_BUTTON)[0],coned.utils.triggerEvent(f,n.STOP_CHAT));t.ServiceAddress&&coned.utils.triggerEvent(ir,n.CHANGE_ADDRESS_EVENT,t.ServiceAddress);t.IsElectricityColdAmi?(oi=!0,fr=hi.getElementsByClassName(n.HAS_ELECTRICITY_COLD_AMI),ui=dt.getElementsByClassName(n.HAS_ELECTRICITY_COLD_AMI),_.each(fr,function(t){t.classList.remove(n.HIDDEN_CLASS)}),_.each(ui,function(t){t.classList.remove(n.HIDDEN_CLASS)}),i.classList.add(n.HIDDEN_CLASS),dataLayer.push({ElectricityAMI:!0})):(oi=!1,fr=hi.getElementsByClassName(n.HAS_ELECTRICITY_COLD_AMI),ui=dt.getElementsByClassName(n.HAS_ELECTRICITY_COLD_AMI),_.each(fr,function(t){t.classList.add(n.HIDDEN_CLASS)}),_.each(ui,function(t){t.classList.add(n.HIDDEN_CLASS)}),i.classList.remove(n.HIDDEN_CLASS),dataLayer.push({ElectricityAMI:!1}));t.AccountType===n.ACCOUNT_TYPE_COMMERCIAL?(e=!0,y.dataset.isCommercial="true",uu&&(uu.innerHTML="$"+t.InitialDepositAmount),fu&&(fu.innerHTML=t.InitialDepositTime)):(y.dataset.isCommercial="false",e=!1);o=document.getElementsByClassName(n.DEPOSIT_AMOUNT);u=document.getElementsByClassName(n.DEPOSIT_TOTAL_SELECTOR)[0];_.each(o,function(n){n.innerHTML="$"+t.InitialDepositAmount});u&&(u.innerHTML="$"+t.InitialDepositAmount);nf=t.InitialDepositAmount;r.dataset.zeroDeposit=nf!==n.ZERO_AMOUNT||wt()?!1:!0;gu&&cu&&(cu.classList.remove(n.HIDDEN_CLASS),lu&&(lu.innerHTML="$"+gu));(ei===undefined||ei===null)&&(ei=e);de=t.ServiceAddress.UnitNumber;ft.PremiseNumber&&(du=ft.PremiseNumber);t.CompanyCode&&(ke=t.CompanyCode);rt.disabled=!1;c();bo(t.MinDate,t.MaxDate);yt&&pt&&(sr=t.InactiveBackDate===n.ABLE_TO_BACKDATE||t.InactiveBackDate===n.MUST_BACKDATE,e||t.InactiveBackDate!==n.ABLE_TO_BACKDATE?e||t.InactiveBackDate!==n.MUST_BACKDATE?(yt.parentElement.classList.add(n.HIDDEN_CLASS),pt.parentElement.classList.add(n.HIDDEN_CLASS)):(yt.parentElement.classList.add(n.HIDDEN_CLASS),pt.parentElement.classList.remove(n.HIDDEN_CLASS)):(yt.parentElement.classList.remove(n.HIDDEN_CLASS),pt.parentElement.classList.add(n.HIDDEN_CLASS)));coned.utils.isOru()||(e?po():(wo(),vt.disabled=!0),ei!==e&&ao());_.each(wu,function(t){t.classList.add(n.FORM_STEP_ACTIVE)});ei=e;ut&&rt.focus()},lo=function(t){var e=ii.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0],u=at.dataset.liveChatAvailable,i={event:"startserv.address.error"},f,r;rt.disabled=!0;u&&u==="true"?(f=gi.getElementsByClassName(n.LIVE_CHAT_BUTTON)[0],coned.utils.triggerEvent(f,n.INIT_CHAT),t&&t.errorMsg&&t.liveChatAvailableMessage&&(oe.innerHTML=t.errorMsg,se.innerHTML=t.liveChatAvailableMessage)):(e.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE,ii.classList.remove(n.HIDDEN_CLASS),ii.focus());c(!0);t.errorCode.toString()===coned.constants.BAD_REQUEST&&(t.errorDetails&&t.errorDetails.errorDetails?(r=[],_.each(t.errorDetails.errorDetails,function(n){r.push(n.errorCode)}),i.startservAddError=r.join("|")):i.startservAddError=n.NO_ERROR_CODES,t.maid!==null&&(nt=t.maid,i.maid=t.maid),dataLayer.push(i))},ao=function(){Array.prototype.forEach.call(ae,function(n){n.disabled=!0});vo();yo()},vo=function(){Array.prototype.forEach.call(ve,function(t){var i=t.getElementsByClassName(n.HELP_INPUT_SELECTOR)[0],r,f,u;i?i.checked&&(i.click(),i.checked=!1):(u=t.querySelector("input:checked"),u&&(r=u.value),r&&(r.toLowerCase()=="yes"||r.toLowerCase()=="true")&&(f=t.querySelector("input:not(:checked)"),f.click()))})},yo=function(){Array.prototype.forEach.call(rr,function(t,i){i!==0&&t.classList.add(n.IS_FORM_BLOCKED)});rr[0].classList.remove(n.IS_FORM_BLOCKED)},po=function(){var t=r.getElementsByClassName(n.COMMERCIAL_NO_REQUIRED),i=r.getElementsByClassName(n.COMMERCIAL_NO_VALIDATE),u=r.getElementsByClassName(n.COMMERCIAL_DISABLED),f=r.getElementsByClassName(n.COMMERCIAL_VALIDATE),e=document.getElementsByClassName(n.COMMERCIAL_HIDDEN),o=document.getElementsByClassName(n.COMMERCIAL_VISIBLE);Array.prototype.forEach.call(t,function(n){n.required=!1});Array.prototype.forEach.call(i,function(t){t.classList.add(n.FORM_ITEM_IGNORE);t.classList.remove(n.FORM_ITEM_VALIDATE)});Array.prototype.forEach.call(f,function(t){t.classList.remove(n.FORM_ITEM_IGNORE);t.classList.add(n.FORM_ITEM_VALIDATE)});Array.prototype.forEach.call(u,function(n){n.disabled=!0});Array.prototype.forEach.call(e,function(t){t.classList.add(n.HIDDEN_CLASS)});Array.prototype.forEach.call(o,function(t){t.classList.contains(n.COMMERCIAL_VISIBLE_HIDDEN)||t.classList.remove(n.HIDDEN_CLASS)});ri&&ri.classList.add(n.INPUT_ACTIVE_VALUE);ir.classList.add(n.IS_COMMERCIAL);to(ur)},wo=function(){var t=r.getElementsByClassName(n.COMMERCIAL_NO_REQUIRED),i=r.getElementsByClassName(n.COMMERCIAL_NO_VALIDATE),u=r.getElementsByClassName(n.COMMERCIAL_VALIDATE),f=r.getElementsByClassName(n.COMMERCIAL_DISABLED),e=document.getElementsByClassName(n.COMMERCIAL_HIDDEN),o=document.getElementsByClassName(n.COMMERCIAL_VISIBLE);Array.prototype.forEach.call(t,function(n){n.required=!0});Array.prototype.forEach.call(f,function(n){n.disabled=!1});Array.prototype.forEach.call(i,function(t){t.classList.remove(n.FORM_ITEM_IGNORE);t.classList.add(n.FORM_ITEM_VALIDATE)});Array.prototype.forEach.call(u,function(t){t.classList.add(n.FORM_ITEM_IGNORE);t.classList.remove(n.FORM_ITEM_VALIDATE)});Array.prototype.forEach.call(e,function(t){t.classList.contains(n.COMMERCIAL_HIDDEN_VISIBLE)||t.classList.remove(n.HIDDEN_CLASS)});Array.prototype.forEach.call(o,function(t){t.classList.add(n.HIDDEN_CLASS)});ri&&ri.classList.remove(n.INPUT_ACTIVE_VALUE);ir.classList.remove(n.IS_COMMERCIAL);to(ye)},bo=function(n,t){var i=coned.utils.datepickerDateFormat(n,t);h.dataset.minDateDays=i.minDate.toJSON().replace(/-/g,"/").slice(0,10);h.dataset.maxDateDays=i.maxDate.toJSON().replace(/-/g,"/").slice(0,10);setTimeout(function(){$(h).datepicker("option","minDate",new Date(i.minDate));$(h).datepicker("option","maxDate",new Date(i.maxDate))},1)},to=function(t){var i=t.parentElement.getElementsByClassName(n.DROPDOWN_LABEL)[0];i.removeAttribute("style");t.removeAttribute("style");t.selectedIndex=0;t.classList.remove(n.ACTIVE_DROPDOWN)},ko=function(){lr(ii);tu&&lr(tu)},go=function(t){var r=t,u=$(n.START_FORM).validate(),f=u.element(r),e=ot.dataset.verifyDateServiceUrl,i;f&&!fi&&(fi=!0,h.classList.add(n.FILLED_CLASS),r.disabled=!0,lr(di),i={Maid:nt,ScServiceAddressId:query.getFormInputValue(at,n.FORM_ADDRESS_SCID_NAME),ScStartDateId:query.getFormInputValue(ot,n.FORM_START_DATE_SCID_NAME),StartServiceDate:r.value,UnitNumber:de,PremiseNumber:du},coned.utils.isOru()&&(i.CompanyCode=ke),i=JSON.stringify(i),query.postData(e,ns,ts,i,!0,g))},ns=function(){fi=!1;h.disabled=!1;h.focus();c();oo()},ts=function(n){fi=!1;coned.utils.isPatternLab()?query.getData(coned.plConstants.VERIFY_DATE_ERROR,uf,uf):uf(n)},uf=function(t){var i=di.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];di.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;h.classList.remove(n.FILLED_CLASS);h.value="";h.disabled=!1;h.focus();c(!0)},lr=function(t){t&&t.classList.add(n.HIDDEN_CLASS)},is=function(){this.checked?(br.classList.add(n.MAILING_OPTIONS_CLASS),_.each(kr,function(t){t.classList.add(n.VALIDATE_IGNORE);t.classList.remove(n.INPUT_ERROR_MESSAGE);t.classList.remove(n.INPUT_VALIDATE)})):(br.classList.remove(n.MAILING_OPTIONS_CLASS),_.each(kr,function(t){t.classList.remove(n.VALIDATE_IGNORE);t.classList.add(n.INPUT_VALIDATE)}))},rs=function(){var t=f.parentElement.parentElement.parentElement,r=t.getElementsByClassName(n.DROPDOWN_LABEL)[0],i=lt.value.toLowerCase();t.classList.remove(n.HIDDEN_CLASS);r.setAttribute("style","");pi.classList.add(n.HIDDEN_CLASS);gt.classList.add(n.HIDDEN_CLASS);us(i);i===n.USA_SELECT_VALUE?(gt.classList.remove(n.HIDDEN_CLASS),tt.classList.remove(n.VALIDATE_IGNORE),tt.classList.add(n.INPUT_VALIDATE),et.classList.add(n.VALIDATE_IGNORE),et.classList.remove(n.INPUT_VALIDATE),wi.classList.remove(n.INPUT_FULL),ff(!1)):i===n.CANADA_SELECT_VALUE?(pi.classList.remove(n.HIDDEN_CLASS),et.classList.remove(n.VALIDATE_IGNORE),et.classList.add(n.INPUT_VALIDATE),tt.classList.add(n.VALIDATE_IGNORE),tt.classList.remove(n.INPUT_VALIDATE),wi.classList.remove(n.INPUT_FULL),ff(!1)):(t.classList.add(n.HIDDEN_CLASS),gt.classList.remove(n.HIDDEN_CLASS),tt.classList.remove(n.VALIDATE_IGNORE),tt.classList.remove(n.INPUT_VALIDATE),et.classList.add(n.VALIDATE_IGNORE),et.classList.remove(n.INPUT_VALIDATE),wi.classList.add(n.INPUT_FULL),ff(!0))},ff=function(t){t?(d.parentNode.parentNode.classList.remove(n.HIDDEN_CLASS),d.classList.remove(n.INPUT_ERROR_MESSAGE),d.classList.remove(n.VALIDATE_IGNORE),d.classList.add(n.INPUT_VALIDATE),gt.classList.add(n.HIDDEN_CLASS),pi.classList.add(n.HIDDEN_CLASS)):(d.parentNode.parentNode.classList.add(n.HIDDEN_CLASS),d.classList.add(n.INPUT_ERROR_MESSAGE),d.classList.add(n.VALIDATE_IGNORE),d.classList.remove(n.INPUT_VALIDATE))},us=function(t){f.disabled=!0;f.selectedIndex=0;f.setAttribute("style","");ou.classList.add(n.HIDDEN_CLASS);f.classList.remove(n.ACTIVE_DROPDOWN);f.classList.remove(n.DROPDOWN_ACTIVE_CLASS);o.disabled=!0;o.selectedIndex=0;o.setAttribute("style","");su.classList.add(n.HIDDEN_CLASS);o.classList.remove(n.ACTIVE_DROPDOWN);o.classList.remove(n.DROPDOWN_ACTIVE_CLASS);t===n.USA_SELECT_VALUE?(ou.classList.remove(n.HIDDEN_CLASS),f.disabled=!1,f.classList.add(n.ACTIVE_DROPDOWN),f.classList.add(n.INPUT_VALIDATE),f.classList.add(n.DROPDOWN_ACTIVE_CLASS),f.classList.remove(n.VALIDATE_IGNORE),f.classList.remove(n.HIDDEN_CLASS),o.classList.remove(n.INPUT_VALIDATE),o.classList.add(n.VALIDATE_IGNORE),o.classList.add(n.HIDDEN_CLASS)):t===n.CANADA_SELECT_VALUE&&(su.classList.remove(n.HIDDEN_CLASS),o.disabled=!1,o.classList.add(n.ACTIVE_DROPDOWN),o.classList.add(n.INPUT_VALIDATE),o.classList.add(n.DROPDOWN_ACTIVE_CLASS),o.classList.remove(n.VALIDATE_IGNORE),o.classList.remove(n.HIDDEN_CLASS),f.classList.remove(n.INPUT_VALIDATE),f.classList.add(n.VALIDATE_IGNORE),f.classList.add(n.HIDDEN_CLASS))},fs=function(){var r=query.selectParentElement(s,n.FORM_CURRENT_STEP),t=r.getElementsByClassName(n.ANIMATION_SUBMIT_MODULE)[0],i=kt.getElementsByClassName(n.FORM_STEP);ee.checked?(ki.classList.remove(n.HIDDEN_CLASS),ot.classList.add(n.HIDDEN_CLASS),s.classList.add(n.HIDDEN_CLASS),t.classList.add(n.HIDDEN_CLASS),query.addClass(i,n.IS_FORM_BLOCKED),ki.focus()):(ki.classList.add(n.HIDDEN_CLASS),ot.classList.remove(n.HIDDEN_CLASS),s.classList.remove(n.HIDDEN_CLASS),t.classList.remove(n.HIDDEN_CLASS),query.removeClass(i,n.IS_FORM_BLOCKED))},es=function(){nr=nu.getElementsByClassName(n.ANIMATION_SUBMIT_MODULE)[0];new coned.components.SubmitAnimation(nr,ss,ps,ws,!1,!0)},io=function(t){var w,b,ft,k,d,l,nt,y,p,yt,pt;if(t.preventDefault(),!t.currentTarget.disabled){eo();var rt=query.selectParentElement(t.target,n.NEXT_BUTTON),ut=document.getElementsByClassName(n.FORM_STEP),dt=ut[ut.length-1],gt=rt&&query.hasClass(rt,n.FINISH_BUTTON),ni=coned.utils.isDomVisible(nu),a;coned.utils.addGeneralListeners(dt,io);gt&&ni&&es();w=li.dataset.customerAddress;h&&(b=$.datepicker.formatDate("MM dd, yy",new Date(h.value)));ct&&(ft=$.datepicker.formatDate("MM dd, yy",new Date(ct.value)));e?(k=ce.value,d=le.value):(k=cf.value,d=lf.value);var i=r.getElementsByClassName(n.IDENTIFICATION)[0],s="",c="";i||(i=v);l=document.getElementsByClassName(n.DEPOSIT_HIDDEN);e||i.value===n.NO_IDENTIFICATION?e?_.each(l,function(t){query.hasClass(t,n.COMMERCIAL_HIDDEN)?t.classList.add(n.HIDDEN_CLASS):t.classList.remove(n.HIDDEN_CLASS)}):r.getElementsByClassName(n.DIRECT_PAYMENT)[0].checked||wt()?(_.each(l,function(t){t.classList.add(n.HIDDEN_CLASS)}),s=i.options[i.selectedIndex].innerHTML,c=n.IDENTIFICATION_STRING):(_.each(l,function(t){t.classList.remove(n.HIDDEN_CLASS)}),s=i.options[i.selectedIndex].innerHTML,c=n.IDENTIFICATION_STRING):(_.each(l,function(t){t.classList.add(n.HIDDEN_CLASS)}),s=i.value,c=i.nextElementSibling.innerHTML,c===n.SOCIAL_SECURITY_NUMBER?s=i.value.replace(/\d(?=.{4})/g,"*"):c===n.TAX_ID_NUMBER&&(s=i.value.replace(/\d(?=.{4})/g,"*")));var et=vr.value,ti=yr.value,g,ii=tr.options[tr.selectedIndex].text;if(iu&&(g=iu.value),yi.checked)dr.innerHTML=w;else{if(p=f.options[f.selectedIndex].text,coned.utils.isOru()){var ot=query.getFormInputValue(u,n.FORM_MAILING_COUNTRY_NAME),ri=ot.toLowerCase()===n.CANADA_SELECT_VALUE?n.FORM_MAILING_CANADA_ZIPCODE_NAME:n.FORM_MAILING_ZIPCODE_NAME,ui=lt.options[lt.selectedIndex].text,ht=query.getFormInputValue(u,n.FORM_MAILING_ADDRESS_ONE_NAME),at=query.getFormInputValue(u,n.FORM_MAILING_ADDRESS_TWO_NAME),vt=query.getFormInputValue(u,n.FORM_MAILING_CITY_NAME);y=query.getFormInputValue(u,ri);p=ot.toLowerCase()!==n.CANADA_SELECT_VALUE?f.options[f.selectedIndex].text:o.options[o.selectedIndex].text;nt=ui!="Other"?ht+" "+at+"<br>"+vt+", "+p+" "+y:ht+" "+at+"<br>"+vt+", "+query.getFormInputValue(u,n.FORM_MAILING_OTHER_COUNTRY_NAME_NAME)}else yt=gf.value,pt=ne.value,y=tt.value,nt=pt+"<br>"+yt+", "+p+" "+y;dr.innerHTML=nt}if(e&&(g?(ai.parentElement.parentElement.classList.add(n.HIDDEN_CLASS),Array.prototype.forEach.call(vi,function(t){t.parentElement.parentElement.classList.add(n.HIDDEN_CLASS)}),st&&st.parentElement.parentElement.classList.remove(n.HIDDEN_CLASS)):(ai.parentElement.parentElement.classList.remove(n.HIDDEN_CLASS),Array.prototype.forEach.call(vi,function(t){t.parentElement.parentElement.classList.remove(n.HIDDEN_CLASS)}),st&&st.parentElement.parentElement.classList.add(n.HIDDEN_CLASS))),sf.innerHTML=b,hf.innerHTML=w,ai.innerHTML=k,Array.prototype.forEach.call(vi,function(n){n.innerHTML=d}),st&&(st.innerHTML=g),ar&&(ar.innerHTML=ft),Array.prototype.forEach.call(af,function(n){n.innerHTML=s}),Array.prototype.forEach.call(vf,function(n){n.innerHTML=c}),yf.innerHTML=et,pf.innerHTML=ti,he.innerHTML=ii,pr&&(pr.innerHTML=et),wr&&(wr.innerHTML=b),ru&&(a=query.getFormInputText(u,n.FORM_BOPA_AWKNOLEDGEMENT_NAME,n.CONED_RADIO_CLASS,n.CONED_RADIO_LABEL_CLASS),a&&a!==""&&(ru.innerHTML=a)),coned.utils.isOru()){var it=query.getFormInputValue(r,n.FORM_ORU_DISABILITY_AGE_62_ALONE_NAME),bt=query.getFormInputValue(r,n.FORM_ORU_DISABILITY_MEMBERS_62_OVER_18_UNDER),kt=query.getFormInputValue(r,n.FORM_ORU_DISABILITY_DISABLED_BLIND);ie.innerHTML=it;re.innerHTML=bt;ue.innerHTML=kt;_.each(vu,function(t){t.disabled=!1;t.setAttribute(n.ARIA_DISABLED,!1)});(it===n.RADIO_YES_OPTION||bt===n.RADIO_YES_OPTION||kt===n.RADIO_YES_OPTION)&&_.each(l,function(t){t.classList.add(n.HIDDEN_CLASS)});it===n.RADIO_NO_OPTION&&_.each(vu,function(t){t.disabled=!0;t.setAttribute(n.ARIA_DISABLED,!0)})}}},os=function(t){var f=document.getElementsByClassName(n.DEPOSIT_HIDDEN),o=v.options[v.selectedIndex].value,e,u,i;if(o===n.NO_IDENTIFICATION&&!wt()){for(e=query.getFormInputValue(r,t.target.name),hr=!1,si[t.target.name]=e===n.RADIO_YES_OPTION?!0:!1,u=Object.keys(si),i=0;i<u.length;i++)si[u[i]]&&(hr=!0);hr?(gr.classList.remove(n.HIDDEN_CLASS),_.each(f,function(t){t.classList.remove(n.HIDDEN_CLASS)}),coned.utils.triggerEvent(kt,"deposit-waived")):(gr.classList.add(n.HIDDEN_CLASS),_.each(f,function(t){t.classList.add(n.HIDDEN_CLASS);coned.utils.triggerEvent(kt,"deposit-required")}))}},ss=function(){var g=r.dataset.startServiceUrl,tt=!query.getFormInputValue(u,n.FORM_MAILING_ADDRESS_NAME),b=query.getFormInputValue(u,n.FORM_EBILL_ENROLL_NAME),f=query.getFormInputValue(u,n.FORM_LIFE_SUPPORT_NAME),k=query.getFormInputValue(r,n.FORM_DISABILITY_OTHER_NOTIFIED_NAME),o=coned.utils.isOru()?!0:query.getFormInputValue(u,n.FORM_DISABILITY_NAME),h=query.getFormInputValue(u,n.FORM_DIRECT_PAYMENT_ENROLL_NAME),t,c=query.getFormInputValue(r,n.FORM_ROP_INDICATOR),l=query.getFormInputValue(u,n.FORM_BOPA_AWKNOLEDGEMENT_NAME),d=query.getFormInputValue(s,n.FORM_SSN_NAME),a=query.getFormInputValue(s,n.TAX_INPUT_NAME),it=v.options[v.selectedIndex].value,i,p,w;lr(ti);t={ScStartDateId:query.getFormInputValue(ot,n.FORM_START_DATE_SCID_NAME),ScServiceAddressId:query.getFormInputValue(at,n.FORM_ADDRESS_SCID_NAME),ScAccountProfileId:query.getFormInputValue(u,n.FORM_ACCOUNT_PROFILE_SCID_NAME),ScDirectPaymentId:query.getFormInputValue(ni,n.FORM_DIRECT_PAYMENT_SCID_NAME),ScLifeSupportEquipmentId:query.getFormInputValue(r,n.FORM_LIFE_SUPPORT_SCID_NAME),ScDisabilityId:query.getFormInputValue(r,n.FORM_DISABILITY_SCID_NAME),StartDate:query.getFormInputValue(ot,n.FORM_START_DATE_NAME),Email:query.getFormInputValue(u,n.FORM_EMAIL_NAME),Phone:query.getFormInputValue(u,n.FORM_PHONE_NUMBER_NAME),PhoneType:query.getFormInputValue(u,n.FORM_PHONE_TYPE_NAME),Maid:nt,IdentificationType:a?n.COMMERCIAL_TAX_ID:n.SSN_LABEL,MailingAddress:ls(tt),SecurityWord:"",EbillFlag:b,DPPFlag:h,PremiseNumber:du};b&&dataLayer.push({event:"startservice.ebill"});t.AccountType=ge;t.IdentificationType=n.DROPDOWN_DICTIONARY[v.options[v.selectedIndex].value];!e&&(it!==n.NO_IDENTIFICATION||h||wt())||(i=query.getFormInputValue(y,n.FORM_NID_PAYMENT_METHOD_NAME),p=y.getElementsByClassName(n.DEPOSIT_AMOUNT)[0].innerHTML.split("$")[1].replace(/,/g,""),i===n.DEPOSIT_BANK_CHECKING||i===n.DEPOSIT_BANK_SAVINGS?(t.RequiredDepositFlag=!0,t.DepositPayment={},t.DepositPayment.PaymentType=n.DEPOSIT_CHECK_TAG,t.DepositPayment.BankAccountType=query.getFormInputValue(y,n.FORM_NID_PAYMENT_METHOD_NAME),t.DepositPayment.BankRoutingNumber=query.getFormInputValue(y,n.FORM_NID_ROUTING_NUMBER_NAME),t.DepositPayment.BankAccountNumber=query.getFormInputValue(y,n.FORM_NID_ACCOUNT_NUMBER_NAME),t.DepositPayment.DepositAmount=parseFloat(p),dataLayer.push({deposit:"true"})):i===n.DEPOSIT_RECEIVE_IN_MAIL.toLowerCase()&&(t.RequiredDepositFlag=!0,t.DepositPayment={},t.DepositPayment.PaymentType=n.DEPOSIT_RECEIVE_IN_MAIL,t.DepositPayment.DepositAmount=parseFloat(p),dataLayer.push({deposit:"true"})));h&&(t.AutopayDetails={BankAccountType:query.getFormInputValue(ni,n.FORM_DP_ACCOUNT_TYPE_NAME),BankRoutingNumber:query.getFormInputValue(ni,n.FORM_DP_ROUTING_NUMBER_NAME),BankAccountNumber:query.getFormInputValue(ni,n.FORM_DP_ACCOUNT_NUMBER_NAME)},dataLayer.push({event:"startservice.dpp"}));e?(t.CommercialTaxId=a.replace(/-/g,""),t.CustomerFirstName=query.getFormInputValue(s,n.FORM_FIRST_NAME_COMMERCIAL).trim(),t.CustomerLastName=query.getFormInputValue(s,n.FORM_LAST_NAME_COMMERCIAL).trim(),t.BusinessName=query.getFormInputValue(s,n.FORM_BUSINESS_NAME).trim(),t.IdentificationType=a?n.COMMERCIAL_TAX_ID:n.SSN_LABEL,l&&l!==n.BOPA_RADIO_NOT_SURE&&(t.BOPAAcknowledgement=l)):(t.DateOfBirth=query.getFormInputValue(s,n.FORM_DOB_NAME),t.SSNNo=d?d.replace(/-/g,""):"",t.DriverLicenseNo=query.getFormInputValue(s,n.FORM_DRIVER_LICENSE_NAME),t.DriverLicenseState=query.getFormInputValue(s,n.FORM_DRIVER_LICENSE_ISSUED_STATE_NAME),t.ResidentAlienId=query.getFormInputValue(s,n.FORM_ALIEN_ID_NAME),t.PublicAssistanceId=query.getFormInputValue(s,n.FORM_PUBLIC_ASSISTANCE_NAME),t.Passport=query.getFormInputValue(s,n.FORM_PASSPORT_NAME),t.CustomerFirstName=query.getFormInputValue(s,n.FORM_FIRST_NAME_NAME).trim(),t.CustomerLastName=query.getFormInputValue(s,n.FORM_LAST_NAME_NAME).trim(),c&&c!==""&&(t.RPOIndicator=c),coned.utils.isOru()?(w=uo(o,k),t.ConcernFlag=Object.values(w).includes(!0)?!0:!1,t.ElderlyBlindAndDisabled=w):o.toLowerCase()==="yes"?(t.ConcernFlag=!0,t.Concern=uo(o,k),dataLayer.push({event:"startservice.specialservices"})):t.ConcernFlag=!1,f&&f.toLowerCase()==="yes"?(t.LSEFlag=!0,t.LSE=ys(f),dataLayer.push({event:"startservice.lifesupport"})):t.LSEFlag=!1);t=JSON.stringify(t);query.postData(g,hs,cs,t,!0)},hs=function(){nr.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},cs=function(n){nr.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);be=n},ls=function(t){var r;if(!t)return null;if(coned.utils.isOru()){var i=query.getFormInputValue(u,n.FORM_MAILING_COUNTRY_NAME),f=i.toLowerCase()=="canada"?n.FORM_MAILING_CANADA_ZIPCODE_NAME:n.FORM_MAILING_ZIPCODE_NAME,e=i.toLowerCase()=="other"?"":i.toLowerCase()=="usa"?query.getFormInputValue(u,n.FORM_MAILING_STATE_NAME_USA):query.getFormInputValue(u,n.FORM_MAILING_STATE_NAME_CANADA);r={Street1:query.getFormInputValue(u,n.FORM_MAILING_ADDRESS_ONE_NAME).replace(/\t/g," "),Street2:query.getFormInputValue(u,n.FORM_MAILING_ADDRESS_TWO_NAME).replace(/\t/g," "),City:query.getFormInputValue(u,n.FORM_MAILING_CITY_NAME).replace(/\t/g," "),State:e,PostalCode:query.getFormInputValue(u,f).toUpperCase(),Country:i,OtherCountryName:query.getFormInputValue(u,n.FORM_MAILING_OTHER_COUNTRY_NAME_NAME)}}else r={Name:query.getFormInputValue(u,n.FORM_MAILING_NAME_NAME).replace(/\t/g," "),Street1:query.getFormInputValue(u,n.FORM_MAILING_STREET_NAME).replace(/\t/g," "),City:query.getFormInputValue(u,n.FORM_MAILING_TOWN_NAME).replace(/\t/g," "),State:query.getFormInputValue(u,n.FORM_MAILING_STATE_NAME_USA),PostalCode:query.getFormInputValue(u,n.FORM_MAILING_ZIPCODE_NAME)};return r},as=function(t){var r=document.getElementsByClassName(n.DEPOSIT_PAYMENT_METHOD_CONTENT),i=t.currentTarget.value;_.each(r,function(t){t.classList.add(n.HIDDEN_CLASS)});i===n.DEPOSIT_MAIL_BILL?(ro(i),k.disabled=!1,ht.disabled=!0,k.parentElement.classList.remove(n.HIDDEN_CLASS),ht.classList.add(n.HIDDEN_CLASS)):(k.disabled=!0,ht.disabled=!1,k.parentElement.classList.add(n.HIDDEN_CLASS),ht.classList.remove(n.HIDDEN_CLASS))},ro=function(t){var o=document.getElementsByClassName(n.DEPOSIT_PAYMENT_METHOD_CONTENT),i=document.getElementsByClassName(n.DEPOSIT_MAIL_HIDDEN),r=document.getElementsByClassName(n.DEPOSIT_BANK_HIDDEN),u,f,e;_.each(o,function(t){t.classList.add(n.HIDDEN_CLASS)});w.required=!1;p.required=!1;w.classList.add(n.VALIDATE_IGNORE);p.classList.add(n.VALIDATE_IGNORE);w.classList.remove(n.FORM_ITEM_VALIDATE);p.classList.remove(n.FORM_ITEM_VALIDATE);t==n.DEPOSIT_BANK_CHECKING||t==n.DEPOSIT_BANK_SAVINGS?(u=document.getElementsByClassName(n.DEPOSIT_BANK_CONTENT)[0],f=document.getElementsByClassName(n.DEPOSIT_ACCOUNT_TYPE_LABEL),query.addClass(i,n.HIDDEN_CLASS),query.removeClass(r,n.HIDDEN_CLASS),u.classList.remove(n.HIDDEN_CLASS),_.each(f,function(n){n.innerHTML=t}),w.required=!0,p.required=!0,w.classList.remove(n.VALIDATE_IGNORE),p.classList.remove(n.VALIDATE_IGNORE),w.classList.add(n.FORM_ITEM_VALIDATE),p.classList.add(n.FORM_ITEM_VALIDATE)):(e=document.getElementsByClassName(n.DEPOSIT_MAIL_BILL_CONTENT)[0],query.removeClass(i,n.HIDDEN_CLASS),query.addClass(r,n.HIDDEN_CLASS),e.classList.remove(n.HIDDEN_CLASS));ef()},vs=function(){k.parentElement.classList.remove(n.HIDDEN_CLASS);ht.classList.add(n.HIDDEN_CLASS);ro(query.getFormInputValue(y,n.FORM_NID_PAYMENT_METHOD_NAME))},wt=function(){var i=query.getFormInputValue(r,n.FORM_DOB_NAME),t=new Date(i),u=t.getDate(),f=t.getMonth(),e=t.getFullYear(),o=new Date(e+62,f,u);return o<=new Date},ys=function(t){return t?{Tank:query.getCheckboxInputValueById(it,n.FORM_LS_TANK_RESPIRATOR_ID),Curass:query.getCheckboxInputValueById(it,n.FORM_LS_CUIRASS_RESPIRATOR_ID),RockingBed:query.getCheckboxInputValueById(it,n.FORM_LS_ROCKING_RESPIRATOR_ID),ElecOperated:query.getCheckboxInputValueById(it,n.FORM_LS_ELECTRICAL_RESPIRATOR_ID),Apnea:query.getCheckboxInputValueById(it,n.FORM_LS_APNEA_MONITOR_ID),Herneo:query.getCheckboxInputValueById(it,n.FORM_LS_HEMODIALYSIS_ID),Other:query.getFormInputValue(it,n.FORM_LS_OTHER_NAME)}:null},uo=function(t,i){var u,f;return t?(coned.utils.isOru()?u={OverAge62Alone:query.getFormInputValue(r,n.FORM_ORU_DISABILITY_AGE_62_ALONE_NAME)===n.RADIO_YES_OPTION?!0:!1,MembersOver62Under18:query.getFormInputValue(r,n.FORM_ORU_DISABILITY_MEMBERS_62_OVER_18_UNDER)===n.RADIO_YES_OPTION?!0:!1,DisabledOrBlind:query.getFormInputValue(r,n.FORM_ORU_DISABILITY_DISABLED_BLIND)===n.RADIO_YES_OPTION?!0:!1}:(f=null,i&&(f={Name:query.getFormInputValue(r,n.FORM_DISABILITY_FIRST_NAME_NAME),LastName:query.getFormInputValue(r,n.FORM_DISABILITY_LAST_NAME_NAME),Street:query.getFormInputValue(r,n.FORM_DISABILITY_STREET_ADDRESS_NAME),City:query.getFormInputValue(r,n.FORM_DISABILITY_CITY_NAME),State:query.getFormInputValue(r,n.FORM_DISABILITY_STATE_NAME),ZipCode:query.getFormInputValue(r,n.FORM_DISABILITY_ZIPCODE_NAME),DayPhone:query.getFormInputValue(r,n.FORM_DISABILITY_DAY_TIME_NUMBER_NAME),NightPhone:query.getFormInputValue(r,n.FORM_DISABILITY_NIGHT_TIME_NUMBER_NAME)}),u={OverAge62:query.getCheckboxInputValueById(r,n.FORM_DISABILITY_AGE_62_ID),IsBlind:query.getCheckboxInputValueById(r,n.FORM_DISABILITY_BLIND_ID),IsPermDisability:query.getCheckboxInputValueById(r,n.FORM_DISABILITY_PERMANENTLY_DISABLED_ID),Delegate:f}),u):null},ps=function(){var r=new Date(h.value),t={event:n.TAGGING_CONED_FORM_SUCCESS},u;oi&&(u=$.datepicker.formatDate("MM dd, yy",new Date(h.value)),_.each(ui,function(t){t.innerHTML=t.innerHTML.replace(n.START_DATE_PLACEHOLDER,u)}));bf.style.display="none";hi.style.display="none";kf.classList.add(n.STEP_FINISH_ACTIVE);kt.classList.add(n.FINISH_BAR_CLASS);query.removeClass(dt,n.HIDDEN_CLASS);query.removeClass(ci,n.HIDDEN_CLASS);ci.focus();(pt||yt)&&!e&&(r>new Date?(t.startServiceFuturedate=$.datepicker.formatDate("MM dd, yy",r),t.startServiceFuturedateComplete="True",t.UserAccountStatus=sr?n.TAGGING_INACTIVE:n.TAGGING_ACTIVE,nt&&(t.maid=nt)):r<new Date&&(t.startServiceBackdate=$.datepicker.formatDate("MM dd, yy",r),t.startServiceBackdateComplete="True",t.UserAccountStatus=sr?n.TAGGING_INACTIVE:n.TAGGING_ACTIVE,nt&&(t.maid=nt)));dataLayer.push(t);coned.utils.qualtricsTriggering(i)},ws=function(){if(coned.utils.isPatternLab()){var n=coned.plConstants.DELETE_STOP_SERVICE_ERROR;query.getData(n,fo,function(){})}else fo(be)},fo=function(t){var i=ti.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];ti.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;ti.focus()},bt=function(){var v=query.getFormInputValue(u,n.FORM_EMAIL_NAME),y=query.getFormInputValue(u,n.FORM_PHONE_TYPE_NAME),p=query.getFormInputValue(u,n.FORM_PHONE_NUMBER_NAME),w=query.getFormInputValue(u,n.FORM_LIFE_SUPPORT_NAME),b=query.getFormInputValue(u,n.FORM_DISABILITY_NAME),t=v&&v.trim()!=="",i=y&&y.trim()!=="",r=p&&p.trim()!=="",k=w&&w.trim()!=="",d=b&&b.trim()!=="",g=query.getFormInputValue(u,n.FORM_MAILING_NAME_NAME),nt=query.getFormInputValue(u,n.FORM_MAILING_STREET_NAME),tt=query.getFormInputValue(u,n.FORM_MAILING_TOWN_NAME),it=query.getFormInputValue(u,n.FORM_MAILING_STATE_NAME_USA),rt=query.getFormInputValue(u,n.FORM_MAILING_ZIPCODE_NAME),ut=g&&g.trim()!=="",ft=nt&&nt.trim()!=="",et=tt&&tt.trim()!=="",h=it&&it.trim()!=="",l=rt&&rt.trim()!=="",ot=query.getFormInputValue(u,n.FORM_MAILING_ADDRESS_ONE_NAME),st=query.getFormInputValue(u,n.FORM_MAILING_ADDRESS_TWO_NAME),f=query.getFormInputValue(u,n.FORM_MAILING_COUNTRY_NAME),ht=query.getFormInputValue(u,n.FORM_MAILING_CITY_NAME),ct=query.getFormInputValue(u,n.FORM_MAILING_STATE_NAME_CANADA),lt=query.getFormInputValue(u,n.FORM_MAILING_CANADA_ZIPCODE_NAME),ni=ot&&ot.trim()!=="",at=!0,ti=f&&f.trim()!=="",ii=ht&&ht.trim()!=="",ri=ct&&ct.trim()!=="",ui=lt&&lt.trim()!=="",vt=query.getFormInputValue(u,n.FORM_ORU_DISABILITY_AGE_62_ALONE_NAME),yt=query.getFormInputValue(u,n.FORM_ORU_DISABILITY_MEMBERS_62_OVER_18_UNDER),pt=query.getFormInputValue(u,n.FORM_ORU_DISABILITY_DISABLED_BLIND),wt=query.getFormInputValue(u,n.FORM_BOPA_AWKNOLEDGEMENT_NAME),bt=vt&&vt.trim()!=="",kt=yt&&yt.trim()!=="",dt=pt&&pt.trim()!=="",gt=wt&&wt.trim()!=="",o=!1,s=!1;au=u.querySelector('[name="'+n.FORM_MAILING_ADDRESS_TWO_NAME+'"]');at=au&&au.required?st&&st.trim()!=="":!0;bu?coned.utils.isOru()?t&&i&&r&&bt&&kt&&dt?(Array.prototype.forEach.call(a,function(n){n.disabled=!1}),c()):(Array.prototype.forEach.call(a,function(n){n.disabled=!0}),c(!0)):e?t&&i&&r&&gt?(Array.prototype.forEach.call(a,function(n){n.disabled=!1}),c()):(Array.prototype.forEach.call(a,function(n){n.disabled=!0}),c(!0)):t&&i&&r&&k&&d?(Array.prototype.forEach.call(a,function(n){n.disabled=!1}),c()):(Array.prototype.forEach.call(a,function(n){n.disabled=!0}),c(!0)):coned.utils.isOru()?(f.toLowerCase()=="canada"?(o=ui,s=ri):f.toLowerCase()=="usa"?(o=l,s=h):(o=!0,s=!0),t&&i&&r&&bt&&kt&&dt&&ni&&at&&ti&&ii&&s&&o?(Array.prototype.forEach.call(a,function(n){n.disabled=!1}),c()):(Array.prototype.forEach.call(a,function(n){n.disabled=!0}),c(!0))):e?t&&i&&r&&gt&&ut&&ft&&et&&h&&l?(Array.prototype.forEach.call(a,function(n){n.disabled=!1}),c()):(Array.prototype.forEach.call(a,function(n){n.disabled=!0}),c(!0)):t&&i&&r&&k&&d&&ut&&ft&&et&&h&&l?(Array.prototype.forEach.call(a,function(n){n.disabled=!1}),c()):(Array.prototype.forEach.call(a,function(n){n.disabled=!0}),c(!0))},bs=function(){vr.addEventListener(n.INPUT_EVENT,function(){bt()},!1);tr.addEventListener(n.CHANGE_EVENT,function(t){var i=t.currentTarget,r=i.value;bt();dataLayer.push({event:n.TAGGING_PHONE_TYPE,phone:r})},!1);yr.addEventListener(n.INPUT_EVENT,function(){bt()},!1);yi.addEventListener(n.CHANGE_EVENT,function(n){var t=n.target;bu=t.checked;bt()},!1);coned.utils.addParentListener(u,[n.CHANGE_EVENT],n.CONED_RADIO_SELECTOR,bt);coned.utils.addParentListener(u,[n.INPUT_EVENT],n.MAILING_INPUT_OPTIONS,bt)},ef=function(){var i=query.getFormInputValue(y,n.FORM_NID_PAYMENT_METHOD_NAME);if(i===n.DEPOSIT_MAIL_BILL)k.disabled=!1;else{var t=$(n.START_FORM).validate(),r=t.check(p),u=t.check(w);u&&r&&(k.disabled=!1)}},ks=function(t){var i={},r;t.type===n.STEP_ERROR_EVENT?i.event=n.STEP_3D_ERROR_TAG:t.type===n.STEP_SUCCESS_EVENT&&(r=query.getFormInputValue(y,n.FORM_NID_PAYMENT_METHOD_NAME),i.event=n.STEP_3D_SUCCESS_TAG,i.paymentMethod=r==n.DEPOSIT_BANK_CHECKING||r==n.DEPOSIT_BANK_SAVINGS?n.DEPOSIT_CHECK_TAG:"");dataLayer.push(i)},ds=function(){$(w).valid()&&dataLayer.push({event:n.ACCOUNT_NUMBER_TAG})},gs=function(){$(p).valid()&&dataLayer.push({event:n.ROUTING_ABA_TAG})},eo=function(){var t=$(n.DATE_PICKER_INPUT_CLASS);t.on("change",function(){go(this)})},oo=function(){var i=document.getElementsByClassName(n.NAV_CURRENT_STEP)[0],t="",u;t=e?ur.options[ur.selectedIndex].value:v.options[v.selectedIndex].value;$(r).validate().checkForm()&&(vt.dataset.validIdentity===n.VALID||t===n.NO_IDENTIFICATION||t===n.BUSINESS_NAME||t===n.FULL_NAME)?(vt.disabled=!1,i.classList.remove(n.IS_FORM_BLOCKED),u=r.dataset.zeroDeposit==="true"?!0:!1,coned.utils.isOru()&&u&&!wt()&&(vt.disabled=!0,i.classList.add(n.IS_FORM_BLOCKED))):(vt.disabled=!0,i.classList.add(n.IS_FORM_BLOCKED))},so=function(){if(rt.disabled=!0,g.classList.contains(n.HIDDEN_FORM_LOADING)&&g.classList.remove(n.HIDDEN_FORM_LOADING),ut&&b&&b.getResponse()==="")b.checkRecaptcha();else if(ut&&b&&b.getResponse()!==""){b.reset();var t=setInterval(function(){er=document.querySelector('iframe[src^="https://www.google.com/recaptcha"][src*="bframe"]');er&&(no(),clearInterval(t))},100);b.checkRecaptcha()}},nh=function(){r=document.getElementsByClassName(n.START_SERVICE)[0];hi=document.getElementsByClassName(n.START_FORM_CLASS)[0];of=r.getElementsByClassName(n.ADDRESS_LOOKUP_FORM)[0];l=r.getElementsByClassName(n.AUTOCOMPLETE_APARMENT_UNIT)[0];li=of.getElementsByClassName(n.AUTOCOMPLETE_SELECTED_ADDRESS_DETAIL)[0];wf=r.getElementsByClassName(n.NEXT_BUTTON);ae=r.getElementsByClassName(n.NEXT_MAIN_BUTTON);bf=document.getElementsByClassName(n.STEPS_LIST)[0];kf=document.getElementsByClassName(n.STEP_FINISH)[0];kt=document.getElementsByClassName(n.STEP_PROGRESS_BAR)[0];dt=document.getElementsByClassName(n.FINISH_STEP_SELECTOR)[0];h=r.getElementsByClassName(n.DATE_PICKER_INPUT)[0];sf=r.getElementsByClassName(n.START_DATE_RECEPTOR)[0];hf=r.getElementsByClassName(n.ADDRESS_RECEPTOR)[0];cf=r.getElementsByClassName(n.NAME)[0];lf=r.getElementsByClassName(n.LAST_NAME)[0];ce=r.getElementsByClassName(n.NAME_COMMERCIAL)[0];le=r.getElementsByClassName(n.LAST_NAME_COMMERCIAL)[0];iu=r.getElementsByClassName(n.BUSINESS_NAME)[0];st=r.getElementsByClassName(n.BUSINESS_NAME_RECEPTOR)[0];ai=r.getElementsByClassName(n.NAME_RECEPTOR)[0];vi=r.getElementsByClassName(n.LAST_NAME_RECEPTOR);ct=r.getElementsByClassName(n.DATE_OF_BIRTH)[0];ar=r.getElementsByClassName(n.DATE_OF_BIRTH_RECEPTOR)[0];af=r.getElementsByClassName(n.IDENTIFICATION_RECEPTOR);vf=r.getElementsByClassName(n.IDENTIFICATION_TITLE_RECEPTOR);he=r.getElementsByClassName(n.PHONE_TITLE_RECEPTOR)[0];vr=r.getElementsByClassName(n.EMAIL)[0];yf=r.getElementsByClassName(n.EMAIL_RECEPTOR)[0];yr=r.getElementsByClassName(n.PHONE)[0];pf=r.getElementsByClassName(n.PHONE_RECEPTOR)[0];pr=document.getElementsByClassName(n.SUCCESS_EMAIL_RECEPTOR)[0];wr=document.getElementsByClassName(n.SUCCESS_DATE_RECEPTOR)[0];te=r.getElementsByClassName(n.EDIT_ACCOUNT_INFORMATION);df=document.getElementsByClassName(n.ACCOUNT_PROFILE_SELECTOR)[0];yi=r.getElementsByClassName(n.MAILING_CHECKBOX)[0];br=r.getElementsByClassName(n.MAILING_OPTIONS_CONTAINER)[0];kr=r.getElementsByClassName(n.MAILING_INPUT_OPTIONS);dr=r.getElementsByClassName(n.MAILING_RECEPTOR)[0];f=r.getElementsByClassName(n.MAILING_STATE)[0];o=r.getElementsByClassName(n.MAILING_STATE_CANADA)[0];gf=r.getElementsByClassName(n.MAILING_TOWN)[0];ne=r.getElementsByClassName(n.MAILING_STREET)[0];tt=r.getElementsByClassName(n.MAILING_ZIPCODE)[0];et=r.getElementsByClassName(n.MAILING_CANADA_ZIPCODE)[0];lt=r.getElementsByClassName(n.COUNTRY_DROPDOWN)[0];d=r.getElementsByClassName(n.OTHER_COUNTRY)[0];gt=r.getElementsByClassName(n.USA_ZIPCODE_SELECTOR)[0];pi=r.getElementsByClassName(n.CANADA_ZIPCODE_SELECTOR)[0];ie=r.getElementsByClassName(n.DISABILITY_AGE_62_ALONE_RECEPTOR)[0];re=r.getElementsByClassName(n.DISABILITY_MEMBERS_62_OVER_18_UNDER_RECEPTOR)[0];ue=r.getElementsByClassName(n.DISABILITY_DISABLED_BLIND_RECEPTOR)[0];gr=r.getElementsByClassName(n.NO_DEPOSIT_ALERT)[0];fe=r.getElementsByClassName(n.DISABILITY_RADIOS);at=r.getElementsByClassName(n.ADDRESS_STEP_SELECTOR)[0];ot=r.getElementsByClassName(n.VERIFY_DATE_STEP_SELECTOR)[0];s=r.getElementsByClassName(n.SERVICE_IDENTITY_STEP_SELECTOR)[0];u=r.getElementsByClassName(n.ACCOUNT_PROFILE_STEP_SELECTOR)[0];ni=r.getElementsByClassName(n.DIRECT_PAYMENT_STEP_SELECTOR)[0];y=r.getElementsByClassName(n.DEPOSIT_PAYMENT_STEP_SELECTOR)[0];it=r.getElementsByClassName(n.LIFE_SUPPORT_STEP_SELECTOR)[0];bi=r.getElementsByClassName(n.LIFE_SUPPORT_RADIOS_SELECTOR);ee=r.getElementsByClassName(n.LIFE_SUPPORT_RADIO_YES_SELECTOR)[0];ki=r.getElementsByClassName(n.LIFE_SUPPORT_RADIO_ERROR_SELECTOR)[0];nu=r.getElementsByClassName(n.REVIEW_STEP_SELECTOR)[0];tu=r.getElementsByClassName(n.ACCOUNT_NUMBER_ERROR_SELECTOR)[0];ii=document.getElementsByClassName(n.CHECK_AVAILABILITY_ERROR)[0];ti=r.getElementsByClassName(n.START_SERVICE_ERROR_SELECTOR)[0];di=r.getElementsByClassName(n.START_DATE_ERROR_SELECTOR)[0];gi=r.getElementsByClassName(n.LIVE_CHAT_AVAILABLE_SELECTOR)[0];oe=r.getElementsByClassName(n.LIVE_CHAT_ERROR_MESSAGE)[0];se=r.getElementsByClassName(n.LIVE_CHAT_AVAILABLE_MESSAGE)[0];g=r.getElementsByClassName(n.FORM_LOADING)[0];rt=document.getElementsByClassName(n.LOOKUP_BUTTON)[0];tr=r.getElementsByClassName(n.PHONE_TYPE_SELECT)[0];wi=r.getElementsByClassName(n.CITY_SELECTOR)[0];a=r.getElementsByClassName(n.PROFILE_SUBMIT_BUTTON);ru=r.getElementsByClassName(n.BOPA_CHECKLIST_INFO)[0];ri=r.getElementsByClassName(n.TAX_INPUT_VALUE)[0];ir=r.getElementsByClassName(n.AUTHENTICATION_SELECTOR)[0];rr=document.getElementsByClassName(n.FORM_STEP);ve=document.getElementsByClassName(n.HELP_CHECKBOX_SELECTOR);ye=r.getElementsByClassName(n.SELECT_AUTH)[0];ur=r.getElementsByClassName(n.SELECT_AUTH_COMMERCIAL)[0];uu=r.getElementsByClassName(n.COMMERCIAL_INITIAL_AMMOUNT)[0];fu=r.getElementsByClassName(n.COMMERCIAL_INITIAL_TIME)[0];v=document.getElementsByClassName(n.IDENTIFICATION_SELECT)[0];pe=r.getElementsByClassName(n.CAPTCHA_ELEMENT);eu=r.getElementsByClassName(n.DEPOSIT_PAYMENT_RADIOS);k=document.getElementsByClassName(n.DEPOSIT_PAYMENT_SUBMIT)[0];ht=document.getElementsByClassName(n.DEPOSIT_PAYMENT_CONTINUE_BUTTON)[0];w=document.getElementsByClassName(n.DEPOSIT_ACCOUNT_NUMBER_SELECTOR)[0];p=document.getElementsByClassName(n.DEPOSIT_ROUTING_ABA_SELECTOR)[0];ou=r.getElementsByClassName(n.USA_DROPDOWN_CONTAINER)[0];su=r.getElementsByClassName(n.CANADA_DROPDOWN_CONTAINER)[0];vt=r.getElementsByClassName(n.IDENTITY_BUTTON)[0];hu=r.getElementsByClassName(n.ITEM_CHECK_FORM);yt=r.getElementsByClassName(n.ABLE_TO_BACKDATE_SELECTOR)[0];pt=r.getElementsByClassName(n.MUST_BACKDATE_SELECTOR)[0];cu=r.getElementsByClassName(n.ADDRESS_AVERAGE_PARAGRAPH)[0];lu=r.getElementsByClassName(n.AVERAGE_ELEMENT_SELECTOR)[0];vu=r.getElementsByClassName(n.RADIO_AGE_62_OVER_ALONE);ci=i.getElementsByClassName(n.START_SERVICE_FINISH_MAIN)[0];ut=pe.length;bu=!0;sr=!1;wu=[];fi=!1;oi=i.dataset.isEletricityColdAmi;si=[];hr=!1},th=function(){var t,i;if(ut?l&&(l.addEventListener("selectedOptionEnd",so),l.addEventListener("checkAddress",so),l.addEventListener("checkAddress",no)):l&&(l.addEventListener("selectedOptionEnd",cr),l.addEventListener("checkAddress",cr)),yi.addEventListener("change",is),coned.utils.addGeneralListeners(rt,function(){ku&&(dataLayer.push({event:n.TAGGING_CCG_FORM}),window.location.href=ku)}),_.each(wf,function(n){coned.utils.addGeneralListeners(n,io)}),_.each(te,function(t){coned.utils.addGeneralListeners(t,function(t){t.preventDefault();window.scrollTo(0,0);df.click();$(n.START_FORM)&&$(n.START_FORM).focus()})}),lt&&lt.addEventListener("change",rs),bi.length>0)for(t=0;t<bi.length;t++)i=bi[t],i.addEventListener("change",fs);_.each(fe,function(n){coned.utils.addGeneralListeners(n,os)});eo();eu.length&&_.each(eu,function(n){n.addEventListener("change",as)});ht.addEventListener("click",vs);coned.utils.addMultipleListeners(w,["keyup","change"],ef);coned.utils.addMultipleListeners(p,["keyup","change"],ef);k&&coned.utils.addMultipleListeners(k,[n.STEP_SUCCESS_EVENT,n.STEP_ERROR_EVENT],ks);w.addEventListener("keyup",ds);p.addEventListener("keyup",gs);hu&&_.each(hu,function(n){n.addEventListener("change",oo)});ct&&(ct.addEventListener("focusout",function(){$(n.BIRTH_DATE).valid()}),ct.addEventListener("keyup",ih));ci.setAttribute(n.TABINDEX,"-1");new coned.components.ValidateForm(n.START_FORM,function(){});ut&&(b=new coned.components.Recaptcha(document.querySelector(n.START_FORM),cr,cr));bs()},ih=function(){var f=v.options[v.selectedIndex].value,i=$(n.BIRTH_DATE)[0].value,e=i!==""&&i.length==10?$(n.BIRTH_DATE).valid():!1,o=coned.utils.isOru()&&nf===n.ZERO_AMOUNT?!1:!0,u,t;e&&f===n.NO_IDENTIFICATION&&(u=r.getElementsByClassName(n.NO_IDENTIFICATION)[0],t=query.selectParentElement(u,n.NO_INPUT),wt()?t.classList.add(n.HIDDEN_CLASS):t.classList.remove(n.HIDDEN_CLASS));o},rh=function(){nh();th();t=!0};rh()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.StopServiceNoAuth=function(){var n={AUTHENTICATION_CONTAINER_SELECTOR:"js-authentication-container",DROPDOWN_BUTTON:"js-dropdown-button-contain",ADDRESS_BOX:"js-address-box",ADDRESS_BOX_TITLE:"js-address-box-title",ADDRESS_BOX_SUBTITLE:"js-address-box-subtitle",STOP_SERVICE_SELECTOR:"js-stop-service",STOP_SERVICE_CONTAINER_SELECTOR:"js-stop-service-container",UNAUTHENTICATED_LOGIN_SELECTOR:"js-unauthenticated-login",UNAUTHENTICATED_STOP_SERVICE:"js-unauthenticated-stop-service",HIDDEN_CLASS:"hidden",DATA_MODULE:"data-module",STOP_SERVICE_MODULE:"StopService",UNAUTHENTICATED_ACCOUNT_MAID:"UnauthenticatedLoginMAID",DATA_TAGGING:"data-tagging-preffix",TAGGING_CONFIRM_ACCOUNT:"Confirm.Account",TAGGING_PREFFIX:"Unauthenticated."},t=!1,i=function(i){var o,e,f,s,h,u,c,r,l=function(){e&&(e.dataset.accountMaid=query.getFormInputValue(r,n.UNAUTHENTICATED_ACCOUNT_MAID));f&&(f.dataset.accountMaid=query.getFormInputValue(r,n.UNAUTHENTICATED_ACCOUNT_MAID));r.dataset.taggingPreffix&&r.dataset.taggingPreffix!==""&&(u.setAttribute(n.DATA_TAGGING,n.TAGGING_PREFFIX+r.dataset.taggingPreffix),dataLayer.push({event:n.TAGGING_PREFFIX+r.dataset.taggingPreffix+n.TAGGING_CONFIRM_ACCOUNT}));u.classList.add(n.UNAUTHENTICATED_STOP_SERVICE);u.setAttribute(n.DATA_MODULE,n.STOP_SERVICE_MODULE);new coned.components.StopService(u);c.classList.remove(n.HIDDEN_CLASS);o.classList.add(n.HIDDEN_CLASS)},a=function(n){var t=n.detail,i=t.FinalBillAddress.Address2&&t.FinalBillAddress.Address2!==""?t.FinalBillAddress.StreetOrAddress&&t.FinalBillAddress.StreetOrAddress!==""?t.FinalBillAddress.StreetOrAddress+", "+t.FinalBillAddress.Address2:t.FinalBillAddress.Address2:t.FinalBillAddress.StreetOrAddress,r=t.FinalBillAddress.City+", "+t.FinalBillAddress.StateOrProvince+", "+t.FinalBillAddress.ZipCode;i+=t.FinalBillAddress.UnitNumber&&t.FinalBillAddress.UnitNumber!==""?", "+t.FinalBillAddress.UnitNumber:"";s.innerHTML=i;h.innerHTML=r;t.FinalBillAddress.UnitNumber&&(f.dataset.unit=t.FinalBillAddress.UnitNumber)},v=function(){o=i.getElementsByClassName(n.AUTHENTICATION_CONTAINER_SELECTOR)[0];e=i.getElementsByClassName(n.DROPDOWN_BUTTON)[0];f=i.getElementsByClassName(n.ADDRESS_BOX)[0];s=i.getElementsByClassName(n.ADDRESS_BOX_TITLE)[0];h=i.getElementsByClassName(n.ADDRESS_BOX_SUBTITLE)[0];c=i.getElementsByClassName(n.STOP_SERVICE_CONTAINER_SELECTOR)[0];u=i.getElementsByClassName(n.STOP_SERVICE_SELECTOR)[0];r=i.getElementsByClassName(n.UNAUTHENTICATED_LOGIN_SELECTOR)[0]},y=function(){r.addEventListener("login-success",l);r.addEventListener("account-available",a)},p=function(){v();y();t=!0};p()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.StopService=function(){var n={ARIA_LABELLED_BY:"aria-labelledby",SUBMIT_BUTTON_SELECTOR:"js-transactional-submit-selector",SUBMIT_ANIMATION_SELECTOR:"js-submit-progress-animation",FINISH_STEP_ERROR_MESSAGE:"js-service-error-msg",FINISH_STEP_MESSAGES_CONTAINER:"js-form-messages",FINISH_STEP_ERROR_CONTAINER:"js-finish-step-selector-error",FINISH_STEP_CONTAINER:"js-finish-step-selector",DATE_PICKER_INPUT:"js-current-datepicker-input",STOP_FORM:".transactional__form",STOP_FORM_WRAPPER:"js-stop-service-form-wrapper",DROPDOWN_BUTTON:"js-dropdown-button-contain",COUNTRY_SELECTOR:"js-country-selector",STATE_SELECTOR:"js-state-selector",SELECT_LABEL_SELECTOR:"js-coned-select-label",OTHER_COUNTRY:"js-other-country",DROPDOWN_OPTION_USA:"js-country-usa",DROPDOWN_OPTION_CANADA:"js-country-canada",DROPDOWN_LABEL_SELECTOR:"js-coned-select-label",ACTIVE_DROPDOWN:"coned-select--active",ACCOUNT_DROPDOWN_ITEMS:"js-dropdown-item",ACCOUNT_DROPDOWN_ITEM:"address-box",USA_ZIPCODE_SELECTOR:"js-zipcode-selector",USA_ZIPCODE_INPUT:"js-zipcode-input",CANADA_ZIPCODE_SELECTOR:"js-canada-zipcode-selector",CANADA_ZIPCODE_INPUT:"js-canada-zipcode-input",CITY_SELECTOR:"js-city-selector",SERVICE_ERROR_SELECTOR:"js-service-error",INPUT_ERROR_MESSAGE:"coned-input-message--error",ERROR_TEXT_SELECTOR:"js-error-message",VALIDATE_IGNORE:"js-validate-ignore",INPUT_VALIDATE:"js-item-validate",HIDDEN_CLASS:"hidden",CHECK_AVAILABILITY_ERROR:"js-check-availability-service-error",ACTIVE_DROPDOWN_CLASS:"coned-select--active",UNAUTHENTICATED_STOP_SERVICE:"js-unauthenticated-stop-service",ACTIVE_DROPDOWN_LABEL_CLASS:"coned-select__label--active",RADIO_LABEL_ADDRESS:"js-radio-label-selector",RADIO_ADDRESS_NAME:"addressType",ADDRESS_RADIO_BUTTONS:"js-address-radio-button",HAS_EBILL_SELECTOR:"js-has-ebill",HAS_EMAIL_SELECTOR:"js-has-email",HAS_NO_EMAIL_SELECTOR:"js-has-no-email",SET_ADDRESS_SELECTOR:"js-set-address-selector",PRIMARY_PHONE_INPUT:"js-primary-phone-input",ADDRESS_INPUTS:"js-stop-optional-input",ADDRESS_BOX:"js-address-box",NAME_CANADA_ZIP:"stopServiceCanadaZip",NAME_INPUT_ZIP:"stopServiceZip",NAME_COUNTRY:"stopServiceCountry",NAME_OTHER_COUNTRY:"stopServiceOtherCountryName",NAME_STREET:"stopServiceStreetNumber",NAME_ADDRESS:"stopServiceAddress",NAME_SECONDARY_ADDRESS:"stopServiceSecondaryAddress",NAME_INPUT_NAME:"stopServiceName",FORM_ADDRESS_SCID_NAME:"AddressScId",NAME_CITY:"stopServiceCity",NAME_STATE:"stopServiceState",NAME_PHONE:"stopServicePhone",NAME_SITECORE_ID:"stopServiceScId",FORM_LOADING:"js-form-loading",INPUT_FULL:"transactional__half--full",FILLED_CLASS:"coned-input--filled",STOP_DATE_ERROR_SELECTOR:"js-stop-date-service-error",CONED_INPUT:"js-coned-input",CONED_SELECT:"js-coned-select",VALID_CLASS:"valid",EMAIL_MASK:"@EMAIL",ADDRESS_MASK:"@ADDRESS",CURRENT_ADDRESS:"currentAddress",FIELD_ERROR_CLASS:"coned-field-error-wrapper",RADIO_BUTTON_CLASS:"coned-radio",OPTION_ELEMENT:"option",LIST_TYPE_ELEMENT:"li",RADIO_GROUP_CLASS:"js-radio-group",RADIO_GROUP_HAS_EBILL_LABEL_ID:"radioGroupHasEbillLabel",RADIO_GROUP_HAS_EMAIL_LABEL_ID:"radioGroupHasEmailLabel",RADIO_GROUP_HAS_NO_EMAIL_LABEL_ID:"radioGroupHasNoEmailLabel",FORM_FIELD:"js-form-field",TAGGING_SERVICE_SUBMIT_SUCCESS:"Submit.Success",TAGGING_SERVICE_SUBMIT_FAILURE:"Submit.Failure",TAGGING_SERVICE_END_DATE_EBILL:"End.Date.Ebill",TAGGING_SERVICE_END_DATE_FORM_ERROR:"End.Date.Form.Error",TAGGING_SERVICE_END_DATE_NO_EBILL:"End.Date.No.Ebill",TAGGING_SERVICE_END_DATE_NO_EMAIL:"End.Date.No.Email",TAGGING_PREFFIX_UNAUTHENTICATED:"Unauthenticated."},t=!1,i=function(i){var l,tt,vt,yt,pt,wt,bt,r,u,o,s,y,p,c,it,a,rt,v,w,kt,b,k,ut,d,ft,g,oi,si,dt,et,ot,nt,e,st,hi,ht,ct,gt,f,lt,at,h,ni,ti,ii,vi=function(){var s=query.getFormInputValue(i,n.NAME_COUNTRY),c=query.getFormInputValue(i,n.NAME_STREET),v=query.getFormInputValue(i,n.NAME_ADDRESS),y=s?s:null,p=c?c:v,b=i.dataset.stopServiceUrl,l=vt.querySelectorAll("."+[n.HAS_EBILL_SELECTOR,n.HAS_EMAIL_SELECTOR,n.HAS_NO_EMAIL_SELECTOR].join(", .")),t=null,a,f,e;w.parentElement.classList.add(n.HIDDEN_CLASS);a=o&&o.value.toLowerCase()=="canada"?query.getFormInputValue(i,n.NAME_CANADA_ZIP).toUpperCase():query.getFormInputValue(i,n.NAME_INPUT_ZIP);t=at?{Name:h.Name,StreetOrAddress:h.StreetOrAddress,Address2:h.Address2,UnitNumber:h.UnitNumber,Country:h.Country,OtherCountryName:h.OtherCountryName,City:h.City,StateOrProvince:h.StateOrProvince,ZipCode:h.ZipCode}:{Name:query.getFormInputValue(i,n.NAME_INPUT_NAME),StreetOrAddress:p,Address2:query.getFormInputValue(i,n.NAME_SECONDARY_ADDRESS),Country:y,UnitNumber:"",OtherCountryName:query.getFormInputValue(i,n.NAME_OTHER_COUNTRY),City:query.getFormInputValue(i,n.NAME_CITY),StateOrProvince:query.getFormInputValue(i,n.NAME_STATE),ZipCode:a};l&&t&&(e=t.Address2&&t.Address2!==""?t.StreetOrAddress&&t.StreetOrAddress!==""?t.StreetOrAddress+", "+t.Address2:t.Address2:t.StreetOrAddress,e+=t.UnitNumber&&t.UnitNumber!==""?", "+t.UnitNumber:"",e+=", "+t.City+", "+t.StateOrProvince+", "+t.ZipCode,_.each(l,function(t){t.innerHTML=t.innerHTML.replace(n.ADDRESS_MASK,"<b>"+e+"<\/b>")}));f={ScId:query.getFormInputValue(i,n.NAME_SITECORE_ID),AccessToken:coned.utils.getUrlParameterValue("token"),MaskedAccountNumber:u?u.dataset.accountMaid:d.dataset.accountMaid,StopServiceDate:coned.utils.serviceDateFormat(r.value),Phone:query.getFormInputValue(i,n.NAME_PHONE),PhoneType:"Home",FinalBillAddress:t,premiseNumber:u&&u.dataset.premise?u.dataset.premise:ni};f=JSON.stringify(f);query.deleteData(b,yi,pi,f,!0)},yi=function(){f&&(gt?dataLayer.push({event:f+n.TAGGING_SERVICE_END_DATE_EBILL}):ct?dataLayer.push({event:f+n.TAGGING_SERVICE_END_DATE_NO_EBILL}):dataLayer.push({event:f+n.TAGGING_SERVICE_END_DATE_NO_EMAIL}));tt.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},pi=function(n){tt.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);ii=n},wi=function(){i.classList.add(n.HIDDEN_CLASS);yt.classList.remove(n.HIDDEN_CLASS);vt.classList.remove(n.HIDDEN_CLASS);f&&f!==""&&f.indexOf(n.TAGGING_PREFFIX_UNAUTHENTICATED!==-1)&&dataLayer.push({event:f+n.TAGGING_SERVICE_SUBMIT_SUCCESS});i.classList.contains(n.UNAUTHENTICATED_STOP_SERVICE)||dataLayer.push({event:"coned.form.success"});coned.utils.qualtricsTriggering(i)},bi=function(){coned.utils.isPatternLab()?query.getData(coned.plConstants.DELETE_STOP_SERVICE_ERROR,ri,ri):ri(ii);f&&f!==""&&f.indexOf(n.TAGGING_PREFFIX_UNAUTHENTICATED!==-1)&&dataLayer.push({event:f+n.TAGGING_SERVICE_SUBMIT_FAILURE})},ri=function(t){var r=t.errorMsg;coned.utils.isOru()?(w.parentElement.classList.remove(n.HIDDEN_CLASS),w.innerHTML=r,w.parentElement.focus()):(wt.innerHTML=r&&r!==""?"<p>"+r+"<\/p>":wt.innerHTML,i.classList.add(n.HIDDEN_CLASS),yt.classList.remove(n.HIDDEN_CLASS),pt.classList.remove(n.HIDDEN_CLASS),pt.parentElement.scrollIntoView())},ki=function(){var n=$(r).valid();l.disabled=n&&lt?!1:!0},ci=function(){var t=s.parentElement.getElementsByClassName(n.SELECT_LABEL_SELECTOR)[0];query.addClass(y,n.HIDDEN_CLASS);query.addClass(p,n.HIDDEN_CLASS);coned.utils.changeListType(y,n.LIST_TYPE_ELEMENT);coned.utils.changeListType(p,n.LIST_TYPE_ELEMENT);rt.classList.add(n.HIDDEN_CLASS);it.classList.add(n.HIDDEN_CLASS);s.parentElement.parentElement.parentElement.classList.remove(n.HIDDEN_CLASS);t.removeAttribute("style");s.removeAttribute("style");s.selectedIndex=0;s.classList.remove(n.ACTIVE_DROPDOWN);o.value.toLowerCase()=="usa"?(query.removeClass(p,n.HIDDEN_CLASS),coned.utils.changeListType(p,n.OPTION_ELEMENT),s.classList.remove(n.VALIDATE_IGNORE),it.classList.remove(n.HIDDEN_CLASS),a.classList.remove(n.VALIDATE_IGNORE),v.classList.add(n.VALIDATE_IGNORE),v.classList.remove(n.INPUT_VALIDATE),ft.classList.remove(n.INPUT_FULL),ui(!1)):o.value.toLowerCase()=="canada"?(query.removeClass(y,n.HIDDEN_CLASS),coned.utils.changeListType(y,n.OPTION_ELEMENT),s.classList.remove(n.VALIDATE_IGNORE),rt.classList.remove(n.HIDDEN_CLASS),v.classList.remove(n.VALIDATE_IGNORE),a.classList.add(n.VALIDATE_IGNORE),a.classList.remove(n.INPUT_VALIDATE),ft.classList.remove(n.INPUT_FULL),ui(!1)):(s.parentElement.parentElement.parentElement.classList.add(n.HIDDEN_CLASS),s.classList.add(n.VALIDATE_IGNORE),a.classList.add(n.VALIDATE_IGNORE),a.classList.remove(n.INPUT_VALIDATE),v.classList.add(n.VALIDATE_IGNORE),v.classList.remove(n.INPUT_VALIDATE),ft.classList.add(n.INPUT_FULL),ui(!0))},ui=function(t){t?(c.parentNode.parentNode.classList.remove(n.HIDDEN_CLASS),c.classList.remove(n.INPUT_ERROR_MESSAGE),c.classList.remove(n.VALIDATE_IGNORE),c.classList.add(n.INPUT_VALIDATE),it.classList.add(n.HIDDEN_CLASS),rt.classList.add(n.HIDDEN_CLASS)):(c.parentNode.parentNode.classList.add(n.HIDDEN_CLASS),c.classList.add(n.INPUT_ERROR_MESSAGE),c.classList.add(n.VALIDATE_IGNORE),c.classList.remove(n.INPUT_VALIDATE))},di=function(){var t=o.parentElement.getElementsByClassName(n.DROPDOWN_LABEL_SELECTOR)[0];o.selectedIndex=1;o.classList.add(n.ACTIVE_DROPDOWN_CLASS);t.classList.add(n.ACTIVE_DROPDOWN_LABEL_CLASS);ci()},gi=function(n){var t=n.keyCode;t==coned.constants.KEY_CODE.ENTER&&fi(n)},fi=function(t){var o,s,f,r,e;o=t?t.currentTarget.children[0]:u?u:d;s=o.dataset.accountMaid;f=i.dataset.checkAvailabilityService;f&&f!==""?(lt=!1,l.disabled=!0,b.classList.add(n.HIDDEN_CLASS),e={ScId:query.getFormInputValue(i,n.NAME_SITECORE_ID),AccountMaid:s,IsStartService:!1,IsTransferService:!1},e=JSON.stringify(e),query.postData(f,li,ai,e,!0,kt)):(r=coned.accountData,r?(r.Phone||(r.Phone=r.PhoneNumber),li(r)):ai())},li=function(n){if(coned.utils.isPatternLab()){var t=new Date,i=new Date;t.setDate(t.getDate()+1);i.setUTCMonth(i.getUTCMonth()+1);n={MinDate:t.toJSON(),MaxDate:i.toJSON(),AccountType:"R",InitialDepositAmount:"5950",ServiceAddress:null,GenericServiceError:null,FinalBillAddress:{Name:"John Smith",StreetOrAddress:"910 Boston Post Rd",Address2:null,City:"Rye",StateOrProvince:"NY",FormattedStateOrProvince:null,ZipCode:"10580",Country:"",OtherCountryName:null,FormattedCountry:null,UnitNumber:"PD"},HasEbill:!0,EbillEmail:"john.smith@some.com",Phone:"9149670142",PremiseNumber:"00PD"}}nr(n)},nr=function(t){var f,s,o,u;for(lt=!0,ii=t,ni=t.PremiseNumber,t.MinDate=t.MinDate.replace(/-/g,"/").slice(0,10),t.MaxDate=t.MaxDate.replace(/-/g,"/").slice(0,10),ir(t.MinDate,t.MaxDate),r.disabled=!1,l.disabled=!0,f=0;f<g.length;f++)g[f].disabled=!1;for(r.value="",r.classList.contains(n.FILLED_CLASS)&&r.classList.remove(n.FILLED_CLASS),r.classList.contains(n.VALID_CLASS)&&r.classList.remove(n.VALID_CLASS),r.classList.contains(n.INPUT_ERROR_MESSAGE)&&r.classList.remove(n.INPUT_ERROR_MESSAGE),s=nt.querySelectorAll(["."+n.CONED_INPUT,"."+n.CONED_SELECT].join(", ")),o=t.FinalBillAddress.Address2&&t.FinalBillAddress.Address2!==""?t.FinalBillAddress.StreetOrAddress&&t.FinalBillAddress.StreetOrAddress!==""?t.FinalBillAddress.StreetOrAddress+", "+t.FinalBillAddress.Address2:t.FinalBillAddress.Address2:t.FinalBillAddress.StreetOrAddress,o+=t.FinalBillAddress.UnitNumber&&t.FinalBillAddress.UnitNumber!==""?", "+t.FinalBillAddress.UnitNumber:"",o+=", "+t.FinalBillAddress.City+", "+t.FinalBillAddress.StateOrProvince+", "+t.FinalBillAddress.ZipCode,_.each(s,function(t){t.classList.add(n.VALIDATE_IGNORE)}),oi.innerHTML=o,h=t.FinalBillAddress,t.Phone&&t.Phone!==""?(e.value=t.Phone,$(e).trigger("keyup"),e.classList.add(n.VALID_CLASS),e.classList.add(n.FILLED_CLASS)):(e.value="",e.classList.contains(n.FILLED_CLASS)&&e.classList.remove(n.FILLED_CLASS),e.classList.contains(n.VALID_CLASS)&&e.classList.remove(n.VALID_CLASS),e.classList.contains(n.INPUT_ERROR_MESSAGE)&&e.classList.remove(n.INPUT_ERROR_MESSAGE)),st=i.getElementsByClassName(n.FIELD_ERROR_CLASS),u=0;u<st.length;u++)st[u]&&(st[u].style.display="none");hi=i.getElementsByClassName(n.RADIO_BUTTON_CLASS);hi[0].checked=!0;t.HasEbill?(gt=!0,ct=!0,_.each(dt,function(i){i.innerHTML=i.dataset.originalMessage.replace(n.EMAIL_MASK,"<b>"+t.EbillEmail+"<\/b>");i.classList.remove(n.HIDDEN_CLASS)}),ht.setAttribute(n.ARIA_LABELLED_BY,n.RADIO_GROUP_HAS_EBILL_LABEL_ID),query.addClass(et,n.HIDDEN_CLASS),query.addClass(ot,n.HIDDEN_CLASS)):(t.EbillEmail&&t.EbillEmail!==""?(ct=!0,_.each(et,function(i){i.innerHTML=i.dataset.originalMessage.replace(n.EMAIL_MASK,"<b>"+t.EbillEmail+"<\/b>");i.classList.remove(n.HIDDEN_CLASS)}),ht.setAttribute(n.ARIA_LABELLED_BY,n.RADIO_GROUP_HAS_EMAIL_LABEL_ID),query.addClass(ot,n.HIDDEN_CLASS)):(ht.setAttribute(n.ARIA_LABELLED_BY,n.RADIO_GROUP_HAS_NO_EMAIL_LABEL_ID),query.removeClass(ot,n.HIDDEN_CLASS),query.addClass(et,n.HIDDEN_CLASS)),query.addClass(dt,n.HIDDEN_CLASS));bt.classList.remove(n.HIDDEN_CLASS)},tr=function(t){var i=nt.querySelectorAll(["."+n.CONED_INPUT,"."+n.CONED_SELECT].join(", "));t.target.value===n.CURRENT_ADDRESS?(at=!0,nt.classList.add(n.HIDDEN_CLASS),_.each(i,function(t){t.classList.add(n.VALIDATE_IGNORE)})):(at=!1,nt.classList.remove(n.HIDDEN_CLASS),_.each(i,function(t){coned.utils.isElementHidden(t)||t.classList.remove(n.VALIDATE_IGNORE)}))},ir=function(n,t){var i=new Date(n),u=new Date(t);i.setDate(i.getDate());u.setDate(u.getDate());r.dataset.minDateDays=n;r.dataset.maxDateDays=t;setTimeout(function(){$(r).datepicker("option","minDate",new Date(i));$(r).datepicker("option","maxDate",new Date(u));coned.utils.isOru()&&$(r).datepicker("option","beforeShowDay",$.datepicker.noWeekends)},1)},ai=function(t){var u=b.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0],i;for(u.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE,b.classList.remove(n.HIDDEN_CLASS),r.disabled=!0,l.disabled=!0,i=0;i<g.length;i++)g[i].disabled=!0;bt.classList.add(n.HIDDEN_CLASS);b.focus()},rr=function(){new coned.components.SubmitAnimation(tt,vi,wi,bi,!1,!0)},ur=function(t){var f=t.target,e=$(i).validate(),o=e.element(f),s=i.dataset.verifyDateServiceUrl,r;o&&(f.disabled=!0,ut.classList.add(n.HIDDEN_CLASS),r={ScServiceAddressId:query.getFormInputValue(i,n.FORM_ADDRESS_SCID_NAME),ScStopDateId:query.getFormInputValue(i,n.NAME_SITECORE_ID),UnitNumber:u?u.dataset.unit:d.dataset.unit,Maid:u?u.dataset.accountMaid:d.dataset.accountMaid,StopServiceDate:f.value},coned.utils.isOru()&&(r.CompanyCode=u.dataset.company,r.PremiseNumber=u&&u.dataset.premise?u.dataset.premise:ni),r=JSON.stringify(r),query.postData(s,fr,er,r,!0,kt))},fr=function(){r.disabled=!1;l.disabled=!lt;r.focus()},er=function(t){f&&dataLayer.push({event:f+n.TAGGING_SERVICE_END_DATE_FORM_ERROR});coned.utils.isPatternLab()?query.getData(coned.plConstants.VERIFY_DATE_ERROR,ei,ei):ei(t)},ei=function(t){var i=ut.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];ut.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;r.value="";r.classList.remove(n.FILLED_CLASS);r.disabled=!1;r.focus();l.disabled=!0},or=function(){l=i.getElementsByClassName(n.SUBMIT_BUTTON_SELECTOR)[0];tt=i.getElementsByClassName(n.SUBMIT_ANIMATION_SELECTOR)[0];bt=i.getElementsByClassName(n.STOP_FORM_WRAPPER)[0];r=i.getElementsByClassName(n.DATE_PICKER_INPUT)[0];vt=document.getElementsByClassName(n.FINISH_STEP_CONTAINER)[0];yt=document.getElementsByClassName(n.FINISH_STEP_MESSAGES_CONTAINER)[0];pt=document.getElementsByClassName(n.FINISH_STEP_ERROR_CONTAINER)[0];wt=document.getElementsByClassName(n.FINISH_STEP_ERROR_MESSAGE)[0];u=i.getElementsByClassName(n.DROPDOWN_BUTTON)[0];o=i.getElementsByClassName(n.COUNTRY_SELECTOR)[0];y=i.getElementsByClassName(n.DROPDOWN_OPTION_CANADA);p=i.getElementsByClassName(n.DROPDOWN_OPTION_USA);c=i.getElementsByClassName(n.OTHER_COUNTRY)[0];s=i.getElementsByClassName(n.STATE_SELECTOR)[0];it=i.getElementsByClassName(n.USA_ZIPCODE_SELECTOR)[0];a=i.getElementsByClassName(n.USA_ZIPCODE_INPUT)[0];rt=i.getElementsByClassName(n.CANADA_ZIPCODE_SELECTOR)[0];v=i.getElementsByClassName(n.CANADA_ZIPCODE_INPUT)[0];ft=i.getElementsByClassName(n.CITY_SELECTOR)[0];g=i.getElementsByClassName(n.ADDRESS_INPUTS);w=i.getElementsByClassName(n.SERVICE_ERROR_SELECTOR)[0];b=i.getElementsByClassName(n.CHECK_AVAILABILITY_ERROR)[0];kt=i.getElementsByClassName(n.FORM_LOADING)[0];k=i.getElementsByClassName(n.ACCOUNT_DROPDOWN_ITEMS);ut=i.getElementsByClassName(n.STOP_DATE_ERROR_SELECTOR)[0];e=i.getElementsByClassName(n.PRIMARY_PHONE_INPUT)[0];d=i.getElementsByClassName(n.ADDRESS_BOX)[0];si=i.getElementsByClassName(n.ADDRESS_RADIO_BUTTONS);oi=i.getElementsByClassName(n.RADIO_LABEL_ADDRESS)[0];dt=document.getElementsByClassName(n.HAS_EBILL_SELECTOR);et=document.getElementsByClassName(n.HAS_EMAIL_SELECTOR);ot=document.getElementsByClassName(n.HAS_NO_EMAIL_SELECTOR);nt=i.getElementsByClassName(n.SET_ADDRESS_SELECTOR)[0];ht=i.getElementsByClassName(n.RADIO_GROUP_CLASS)[0];at=!0;gt=!1;ct=!1;f=i.dataset.taggingPreffix;ti=""},sr=function(){var t,i;$(r).on("change",ur);for(o&&(o.addEventListener("change",ci),di()),$("."+n.DATE_PICKER_INPUT).change(ki),_.each(si,function(n){n.addEventListener("change",tr)}),fi(),t=0;k[t];t++)if(ti=u.dataset.account,k[t].children[0].dataset.account===ti){setTimeout(function(){query.fireEvent(k[t],"accountInContext")},500);break}_.each(k,function(n){coned.utils.addGeneralListeners(n,fi);n.addEventListener("keydown",gi)});new coned.components.ValidateForm(n.STOP_FORM,rr,"."+n.VALIDATE_IGNORE);i=$(n.STOP_FORM);i&&i[0].hasAttribute("tabindex")&&i.focus()},hr=function(){or();sr();t=!0};hr()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.StreetLightTableComponent=function(){var n={ITEM:"js-item",ITEM_OPEN:"street-lights__table-item--open",ITEM_ARROW:"js-open-arrow"},t=!1,i=function(i){var u,r,f=function(t){t.preventDefault();var i=this.parentNode,r=t.target;query.hasClass(i,n.ITEM_OPEN)?(i.classList.remove(n.ITEM_OPEN),r.setAttribute("aria-expanded","false")):(query.removeClass(u,n.ITEM_OPEN),i.classList.add(n.ITEM_OPEN),r.setAttribute("aria-expanded","true"))},e=function(){u=i.getElementsByClassName(n.ITEM);r=i.getElementsByClassName(n.ITEM_ARROW)},o=function(){for(var n=0;n<r.length;n++)coned.utils.addGeneralListeners(r[n],f)},s=function(){e();o();t=!0};s()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SubMeteringCalculator=function(){var n={FORM:"js-sub-metering-calculator-form",CLEAR_BTN_CLASS:"js-reset-button",SM_ZIPCODE:"js-sm-zipcode",SM_START_DATE:"js-sm-start-date",SM_END_DATE:"js-sm-end-date",SM_RESULT_TABLE_DESCRIPTION:"js-result-table-description",SM_RESULT_TABLE:"js-sm-result",SM_RESULT_ELECTRICITY_CHARGES:"js-sm-electricity-charges",SM_RESULT_OTHER_FEES:"js-sm-other-fees",SM_RESULT_TOTAL_CHARGES:"js-sm-total-charges",SM_SERVICE_ERROR:"js-sm-service-error ",FORM_SITECORE_ID:"scId",FORM_ZIPCODE:"smZipcode",FORM_START_DATE:"smStartDate",FORM_END_DATE:"smEndDate",FORM_CONSUMPTION:"smConsumption",FORM_LOADING:"js-form-loading",ERROR_MESSAGE:"js-error-message",HIDDEN_CLASS:"hidden",RECAPTCHA_ELEMENT:"js-recaptcha",HEADER:"js-header-wrapper"},t=!1,i=function(i){var f,y,c,u,r,l,s,p,w,b,o,a,k,e,h,nt=function(){o.classList.add(n.HIDDEN_CLASS);l.classList.add(n.HIDDEN_CLASS);s.classList.add(n.HIDDEN_CLASS);h&&e&&e.reset();r.dataset.minDateDays=i.dataset.calendarsMinDate;r.dataset.maxDateDays=i.dataset.calendarsMaxDate;$(r).datepicker("option","minDate",coned.utils.dateFormat(r.dataset.minDateDays));$(r).datepicker("option","maxDate",coned.utils.dateFormat(r.dataset.maxDateDays));u.dataset.minDateDays=i.dataset.calendarsMinDate;u.dataset.maxDateDays=i.dataset.calendarsMaxDate;$(u).datepicker("option","minDate",coned.utils.dateFormat(u.dataset.minDateDays));$(u).datepicker("option","maxDate",coned.utils.dateFormat(u.dataset.maxDateDays));c.focus();query.scrollToElement(c,k)},tt=function(){var n=new Date(u.value),t=new Date,i=r.dataset.ruleRangedays,f=i.split(",")[2];n.setDate(n.getDate()+(parseInt(f,10)-1));n>t&&(n=t);r.dataset.maxDateDays=n.toString();$(r).datepicker("option","maxDate",coned.utils.dateFormat(r.dataset.maxDateDays));r.dataset.minDateDays=new Date(u.value).toString();$(r).datepicker("option","minDate",coned.utils.dateFormat(r.dataset.minDateDays))},it=function(){var n=new Date(r.value),t=u.dataset.ruleRangedays,i=t.split(",")[2];n.setDate(n.getDate()-parseInt(i,10));u.dataset.minDateDays=n.toString()},v=function(){var c=i.dataset.serviceUrl,t,r,u;o.classList.add(n.HIDDEN_CLASS);s.classList.add(n.HIDDEN_CLASS);r=h&&e?e.getResponse():"";t={scId:query.getFormInputValue(document,n.FORM_SITECORE_ID),postalCode:query.getFormInputValue(f,n.FORM_ZIPCODE),fromDate:coned.utils.serviceDateFormat(query.getInputValue(f,n.FORM_START_DATE)),toDate:coned.utils.serviceDateFormat(query.getInputValue(f,n.FORM_END_DATE)),consumption:query.getFormInputValue(f,n.FORM_CONSUMPTION),verify:r};u=JSON.stringify(t);query.postData(c,rt,ut,u,!0,a)},rt=function(n){coned.utils.isPatternLab()?n=query.getData(coned.plConstants.GET_SM_CALCULATOR_CALCULATE,d,function(){}):d(n)},d=function(t){p.innerText=t.ElectricCharges;w.innerText=t.OtherFees;b.innerText=t.TotalCharges;l.classList.remove(n.HIDDEN_CLASS);s.classList.remove(n.HIDDEN_CLASS);s.focus()},ut=function(n){coned.utils.isPatternLab()?n=query.getData(coned.plConstants.GET_SM_CALCULATOR_SERVICES_ERROR,g,function(){}):g(n)},g=function(t){var i=o.getElementsByClassName(n.ERROR_MESSAGE)[0];i.innerText=t.errorMsg&&t.errorMsg!==""?t.errorMsg:i.innerText;o.classList.remove(n.HIDDEN_CLASS);o.focus()},ft=function(){a.classList.remove(n.FORM_LOADING_HIDDEN);h&&e&&(e.getResponse()!==""&&e.reset(),e.checkRecaptcha())},et=function(){f=i.getElementsByClassName(n.FORM)[0];y=i.getElementsByClassName(n.CLEAR_BTN_CLASS)[0];c=f.getElementsByClassName(n.SM_ZIPCODE)[0];u=f.getElementsByClassName(n.SM_START_DATE)[0];r=f.getElementsByClassName(n.SM_END_DATE)[0];l=i.getElementsByClassName(n.SM_RESULT_TABLE_DESCRIPTION)[0];s=i.getElementsByClassName(n.SM_RESULT_TABLE)[0];p=i.getElementsByClassName(n.SM_RESULT_ELECTRICITY_CHARGES)[0];w=i.getElementsByClassName(n.SM_RESULT_OTHER_FEES)[0];b=i.getElementsByClassName(n.SM_RESULT_TOTAL_CHARGES)[0];o=i.getElementsByClassName(n.SM_SERVICE_ERROR)[0];a=document.getElementsByClassName(n.FORM_LOADING)[0];k=document.getElementsByClassName(n.HEADER)[0];e=!1;h=i.getElementsByClassName(n.RECAPTCHA_ELEMENT)[0]},ot=function(){h?(new coned.components.ValidateForm(f,ft),e=new coned.components.Recaptcha(i,v,v)):new coned.components.ValidateForm(f,v);u.addEventListener("dateSelected",tt);r.addEventListener("dateSelected",it);coned.utils.addGeneralListeners(y,nt)},st=function(){et();ot();t=!0};st()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SubmitMeterForm=function(){var n={ELECTRIC_ELEMENT_CLASS:".js-electric-input",GAS_ELEMENT_CLASS:".js-gas-input",ELECTRIC_ELEMENT:"js-electric-input",GAS_ELEMENT:"js-gas-input",NO_EZ_OPTION_NAME:"js-no-ez-options",ELECTRIC_METER_INPUT_SELECTOR:"js-electric-meter-input-selector",GAS_METER_INPUT_SELECTOR:"js-gas-meter-input-selector",INPUT_LABEL_CLASS:"coned-input--filled"},t=!1,i=function(i){var f,r,u,e,o,l=function(){f=i.getElementsByClassName(n.NO_EZ_OPTION_NAME);r=i.getElementsByClassName(n.ELECTRIC_METER_INPUT_SELECTOR)[0];u=i.getElementsByClassName(n.GAS_METER_INPUT_SELECTOR)[0];e=i.getElementsByClassName(n.GAS_ELEMENT)[0];o=i.getElementsByClassName(n.ELECTRIC_ELEMENT)[0]},s=function(n){TweenMax.to(n,.3,{display:"block",height:"auto",opacity:1})},h=function(n){TweenMax.to(n,.3,{display:"none",height:"0",opacity:0})},a=function(n){n==="electric"?(s(r),h(u),c(o)):(h(r),s(u),c(e))},c=function(t){t.value>0&&query.addClass(t,n.INPUT_LABEL_CLASS)},v=function(){_.each(f,function(n){n.addEventListener("change",function(){a(n.value)})});$(n.GAS_ELEMENT_CLASS).change(function(){$("#Gas").val(parseInt($(this).val()))});$(n.ELECTRIC_ELEMENT_CLASS).change(function(){$("#Electric").val(parseInt($(this).val()))})},y=function(){l();v();t=!0};y()};return i.prototype._isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SubmitAnimation=function(){var n={SLICE_RIGHT_SELECTOR:"js-slice-right-selector",SLICE_LEFT_SELECTOR:"js-slice-left-selector",SUBMIT_SELECTOR:"js-transactional-submit-selector",SUBMIT_CLOSE_CLASS:"submit-button--close",SUBMIT_CONTAINER_SELECTOR:"js-submit-container",SUBMIT_CONTAINER_CLASS:"submit-button__container--bg-container",SUBMIT_TOP_SELCTOR:"js-top-selector",SUBMIT_TOP_CLASS:"submit-button__top--show",SUBMIT_ERROR_CLASS:"submit-button--error",SUBMIT_CONTAINER_REVERSED:"submit-button__container--bg-container-reversed",SLICE_RIGHT_WHITE_CLASS:"submit-button__slice-right--white",SLICE_LEFT_WHITE_CLASS:"submit-button__slice-left--white",SPAN_TEXT_HIDDEN_CLASS:"submit-button__text--hidden"},t=!1,i=function(i,r,u,f,e,o,s){var l,a,h,c,y,v,w=20,p=function(n,t){var i="-webkit-transform rotate("+t+"deg);-moz-transform rotate("+t+"deg);-ms-transform: rotate("+t+"deg);-o-transform: rotate("+t+"deg);transform: rotate("+t+"deg);zoom: 1;";n.setAttribute("style",i)},b=function(n,t){var r=180,u=0,i=n/t*360;i<=180?r=i:u=i-180;p(l,r);p(a,u)},k=function(t){function k(){s==100?query.hasClass(i,coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)||query.hasClass(i,coned.constants.ERROR_SERVICE_RESPONSE_CLASS)?(clearInterval(p),h.style.display="flex",query.removeClass(y,n.SUBMIT_TOP_CLASS),query.removeClass(c,n.SUBMIT_CONTAINER_CLASS),query.removeClass(c,n.SUBMIT_CONTAINER_REVERSED),query.removeClass(h,n.SUBMIT_CLOSE_CLASS),h.innerHTML='<span class="">.<\/span>',a.removeAttribute("style"),l.removeAttribute("style"),setTimeout(function(){e&&r.click();query.removeClass(h,n.SPAN_TEXT_HIDDEN_CLASS);h.innerHTML=w;h.classList.remove(n.SUBMIT_ERROR_CLASS);query.hasClass(i,coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)?(u(),v.classList.remove(coned.constants.PAGE_DISABLED),i.classList.remove(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS),o&&window.scrollTo(0,0)):(f(),v.classList.remove(coned.constants.PAGE_DISABLED),i.classList.remove(coned.constants.ERROR_SERVICE_RESPONSE_CLASS))},400)):(s=0,c.classList.toggle(n.SUBMIT_CONTAINER_REVERSED),l.classList.toggle(n.SLICE_RIGHT_WHITE_CLASS),a.classList.toggle(n.SLICE_LEFT_WHITE_CLASS)):(s++,b(s,100))}var s=0,p=setInterval(k,t),w=h.innerHTML;e||r();v.classList.add(coned.constants.PAGE_DISABLED)},d=function(t){query.addClass(t,n.SUBMIT_CLOSE_CLASS);query.addClass(t,n.SPAN_TEXT_HIDDEN_CLASS);query.addClass(c,n.SUBMIT_CONTAINER_CLASS);query.addClass(y,n.SUBMIT_TOP_CLASS);h.style.display="none";setTimeout(function(){k(w,!0)},300)},g=function(){l=i.getElementsByClassName(n.SLICE_RIGHT_SELECTOR)[0];a=i.getElementsByClassName(n.SLICE_LEFT_SELECTOR)[0];h=i.getElementsByClassName(n.SUBMIT_SELECTOR)[0];c=i.getElementsByClassName(n.SUBMIT_CONTAINER_SELECTOR)[0];y=i.getElementsByClassName(n.SUBMIT_TOP_SELCTOR)[0];v=document.getElementsByClassName(coned.constants.PAGE_CONTENT_CLASS)[0]},nt=function(){s||d(h)},tt=function(){g();nt();t=!0};tt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SuggestionTile=function(){var n={SUGGESTION_TILE_CTA:"js-suggestion-tile-cta",IOS_BUTTON_SELECTOR:"js-ios-button",ANDROID_BUTTON_SELECTOR:"js-android-button",MARGIN_TOP_MODIFIER:"overview-bill-card-side__cta--margin-top",HIDDEN_CLASS:"hidden",toMatchAndroid:[/Android/i],toMatchIos:[/iPhone/i,/iPad/i,/iPod/i]},t=!1,i=function(i){var u,r,f,e,s=function(n){var t={event:"scenario"+e+".click"},i=n.target.dataset.eventLabel?n.target.dataset.eventLabel:n.target.parentElement.dataset.eventLabel;i&&(t.contentTitle=i);dataLayer.push(t)},h=function(){var t,i;t=n.toMatchAndroid.some(o);i=n.toMatchIos.some(o);t||i?t?r.classList.add(n.HIDDEN_CLASS):f.classList.add(n.HIDDEN_CLASS):r.classList.add(n.MARGIN_TOP_MODIFIER)},o=function(n){return navigator.userAgent.match(n)},c=function(){u=i.getElementsByClassName(n.SUGGESTION_TILE_CTA);r=i.getElementsByClassName(n.IOS_BUTTON_SELECTOR)[0];f=i.getElementsByClassName(n.ANDROID_BUTTON_SELECTOR)[0];e=i.dataset.tileScenario},l=function(){if(e)for(var n=0;n<u.length;++n)coned.utils.addGeneralListeners(u[n],s);r&&f&&h()},a=function(){c();l();t=!0};a()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.SummaryBillingInformation=function(){var n={BILLING_GRID:".js-data-grid",BILLING_GRID_REMOVE_BORDER:"summary-billing-information__table-row--no-borders",BILL_LINK_CLASS:"js-view-bill",BILL_ITEM_CLASS:"js-item",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",HIDDEN_CLASS:"hidden",FORM_LOADING:"js-form-loading",SHOW_MORE_BUTTON:".js-show-more"},t=!1,i=function(i){var r,h,f,u,e,o,l=function(t){t.preventDefault();var e=query.selectParentElement(t.target,n.BILL_ITEM_CLASS),l,o,c;if(r=query.selectParentElement(t.target,n.BILL_LINK_CLASS),u=e.nextElementSibling,u&&u.classList.add(n.HIDDEN_CLASS),e.classList.remove(n.BILLING_GRID_REMOVE_BORDER),c=r.dataset.iscsv,l=c?i.dataset.documentCsvServiceUrl:i.dataset.billServiceUrl,r.dataset.billLink){window.open(r.href);return}o={Maid:r.dataset.accountMaid,MasterMaid:r.dataset.masterMaid,ScId:i.dataset.billInfoScid};c?o.BillId=r.dataset.billId:o.BillDate=r.dataset.billDate;f=window.open();query.getData(l,function(n){a(n,e)},function(n){s(n,e)},o,h);c&&!coned.utils.isSafari()&&setTimeout(function(){f.close()},5e3)},a=function(n,t){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_LINK,c,function(n){s(n,t)}):n.Link&&n.Link!=""?c(n):s(n,t)},c=function(n){r.dataset.billLink="true";r.href=n.Link;f.location.href=n.Link},s=function(t,i){var r=u.getElementsByClassName(n.SERVICE_ERROR)[0],e=r.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];f.close();i.classList.add(n.BILLING_GRID_REMOVE_BORDER);u.classList.remove(n.HIDDEN_CLASS);e.textContent=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;r.focus()},v=function(){var t=i.querySelector(n.BILLING_GRID);t&&t.focus()},y=function(){o=i.getElementsByClassName(n.BILL_LINK_CLASS);h=document.getElementsByClassName(n.FORM_LOADING)[0];e=i.querySelector(n.SHOW_MORE_BUTTON)},p=function(){e&&e.addEventListener("click",v);for(var n=0;n<o.length;n++)coned.utils.addGeneralListeners(o[n],l)},w=function(){y();p();t=!0};w()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.TableTabsNavigation=function(){var n={TAB_SELECTOR:"js-tab-selector",TABLE_SELECTOR:"js-table-selector",ACTIVE_TAB_CLASS:"manage-cards__tabs-link--active",HIDDEN_CLASS:"hidden"},t=!1,i=function(i){var r,u,e=function(){r=i.getElementsByClassName(n.TAB_SELECTOR);u=i.getElementsByClassName(n.TABLE_SELECTOR)},f=function(t,i){query.removeClass(r,n.ACTIVE_TAB_CLASS);query.addClass(u,n.HIDDEN_CLASS);t.classList.add(n.ACTIVE_TAB_CLASS);u[i].classList.remove(n.HIDDEN_CLASS)},o=function(n,t,i){switch(n.keyCode){case coned.constants.KEY_CODE.ENTER:case coned.constants.KEY_CODE.SPACE:f(t,i);l(t);break;case coned.constants.KEY_CODE.HOME:n.preventDefault();r[0].focus();break;case coned.constants.KEY_CODE.END:n.preventDefault();r[r.length-1].focus();break;case coned.constants.KEY_CODE.RIGHT:case coned.constants.KEY_CODE.LEFT:n.preventDefault();s(n,t,i)}},s=function(n,t,i){var u=n.keyCode,r;r=u===coned.constants.KEY_CODE.RIGHT?c(i):h(i);r.focus()},h=function(n){return r[n-1]||r[r.length-1]},c=function(n){return r[n+1]||r[0]},l=function(n){_.each(r,function(n){n.setAttribute("tabindex","-1");n.setAttribute("aria-selected",!1)});n.setAttribute("tabindex","0");n.setAttribute("aria-selected",!0)},a=function(){_.each(r,function(n,t){coned.utils.addGeneralListeners(n,function(i){i.preventDefault();f(n,t)});n.addEventListener("keydown",function(i){o(i,n,t)})})},v=function(){e();a();t=!0};v()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.TextSearch=function(){var n={TEXT_SEARCH_INPUT_SELECTOR:"js-text-search-input",NO_TEXT_SEARCH_SELECTOR:"js-no-text-search",PAGINATION_SELECTOR:"js-pagination-wrapper",PAGINATION_RESULTS_SELECTOR:"js-pagination-results",PAGINATION_RESULTS_TOTAL_SELECTOR:"js-total",PAGINATION_RESET_SELECTOR:"js-pagination-reset",PAGINATION_HIDDEN_ELEMENT:"js-pagination-item-hidden",HIDDEN_CLASS:"hidden"},t=!1,i=function(i){var f,s,h,c,r,a,e,u,v,y,l,p,w,b,k,d,o,g,nt=function(){if(g!==f.value){var t=g=f.value,y,p,w,u,e,s,b=!1,a,v;p=new RegExp("(>[^<.]*)("+t+")([^<.]*)","gi");w=new RegExp("(>[^<.]*)*("+t+")([^<.]*)","gi");u='$1<span class="'+d+'">$2<\/span>$3';_.each(h,function(i,r){v=!1;a=0;Array.prototype.forEach.call(i.children,function(i){i.classList.contains(n.NO_TEXT_SEARCH_SELECTOR)||(i.innerHTML=o[r][a],y=i.innerText,y.toLowerCase().indexOf(t.toLowerCase())>-1&&(s=_.unescape(i.innerHTML),e=i.childElementCount>0?s.replace(p,u):s.replace(w,u),i.innerHTML=e,v=!0),a++)});v?(i.classList.remove(n.HIDDEN_CLASS),i.classList.remove(n.PAGINATION_HIDDEN_ELEMENT),b=!0):(i.classList.add(n.HIDDEN_CLASS),i.classList.add(n.PAGINATION_HIDDEN_ELEMENT))});b?(c.classList.add(n.HIDDEN_CLASS),r&&r.length&&_.each(r,function(t){t.classList.remove(n.HIDDEN_CLASS)})):(c.classList.remove(n.HIDDEN_CLASS),r&&r.length&&_.each(r,function(t){t.classList.add(n.HIDDEN_CLASS)}));l&&tt();query.fireEvent(i,"filter")}},tt=function(){var i=a.dataset.divider,r=i*1,t,f;for(u=e.parentElement.querySelectorAll("."+n.PAGINATION_RESULTS_SELECTOR+" > :not(."+n.PAGINATION_HIDDEN_ELEMENT+")"),Array.prototype.forEach.call(u,function(n){query.addClass(n,e.dataset.resultsHide)}),t=r-i;t<r&&t<u.length;t++)f=u[t],query.removeClass(f,e.dataset.resultsHide);v.innerHTML=u.length;y.click()},it=function(){if(p=i.dataset.textSearchContainer,w=i.dataset.textSearchItem,b=i.dataset.textSearchNoResults,d=i.dataset.textSearchHighlight,o=[],i.dataset.textSearchNoResultsHide&&i.dataset.textSearchNoResultsHide!==""&&(k=i.dataset.textSearchNoResultsHide,r=document.getElementsByClassName(k)),s=document.getElementsByClassName(p)[0],h=s.getElementsByClassName(w),c=s.getElementsByClassName(b)[0],f=i.getElementsByClassName(n.TEXT_SEARCH_INPUT_SELECTOR)[0],l=i.dataset.textSearchIsPaginationSearch==="true",l){var t=document.getElementsByClassName(i.dataset.textSearchPaginationContainer)[0];a=t.getElementsByClassName(n.PAGINATION_SELECTOR)[0];e=t.getElementsByClassName(n.PAGINATION_RESULTS_SELECTOR)[0];v=t.getElementsByClassName(n.PAGINATION_RESULTS_TOTAL_SELECTOR)[0];y=t.getElementsByClassName(n.PAGINATION_RESET_SELECTOR)[0]}_.each(h,function(t,i){o[i]=[];Array.prototype.forEach.call(t.children,function(t){t.classList.contains(n.NO_TEXT_SEARCH_SELECTOR)||o[i].push(t.innerHTML)})})},rt=function(){f.addEventListener("keyup",nt)},ut=function(){it();rt();t=!0};ut()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ThirdPartyAccessConfirmation=function(){var n={MAIN_CONFIRMATION_BANNER:"js-main-confirmation",ACCESS_CONFIRMATION_BANNER:"js-accept-confirmation",GRANTED_ACCESS_BANNER:"js-granted-access",DENIED_ACCESS_BANNER:"js-denied-access",EXPIRED_LINK_BANNER:"js-expired-link",ALREADY_COMPLETED_BANNER:"js-already-completed",ALLOW_CONFIRMATION_BUTTON:"js-allow-confirmation",ALLOW_ACCESS_BUTTON:"js-allow-access",DENY_ACCESS_BUTTON:"js-deny-access",ALLOW_VALUE:"allow",DENY_VALUE:"deny",TAGGING_GENERAL_PREFFIX:"Pilot.Reg.3P.Acct.",TAGGING_ALLOW_ACCESS:"Step02.Allow",TAGGING_DENY_ACCESS:"Step02.Deny",TAGGING_LINK_EXPIRED:"Step02.Link.Expired",TAGGING_CONFIRM_ALLOW_ACCESS:"Step03.Confirm.Allow",TAGGING_CONFIRM_DENY_ACCESS:"Step03.Confirm.Deny",TAGGING_ACCESS_GRANTED:"Step04.Access.Granted.Page.Load",TAGGING_ACCESS_DENIED:"Step04.Access.Denied.Page.Load",TAGGING_ALREADY_COMPLETED:"Step04.Already.Completed.Page.Load",CONFIRMATION_SCID:"ScId",CONFIRMATION_REQUEST_ID:"RequestId",CONFIRMATION_TOKEN:"Token",SERVICE_ERROR:"js-service-error",FORM_LOADING:"js-form-loading",HIDDEN_CLASS:"hidden"},t=!1,i=function(i){var u,f,h,c,l,a,e,o,v,y,r,s,w=function(t){t.preventDefault();u.classList.add(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS)},p=function(t){t.preventDefault();var u=i.dataset.confirmServiceUrl,r;s=t.currentTarget.dataset.value===n.ALLOW_VALUE?!0:!1;r={ScId:query.getFormInputValue(i,n.CONFIRMATION_SCID),RequestId:query.getFormInputValue(i,n.CONFIRMATION_REQUEST_ID),VerificationToken:query.getFormInputValue(i,n.CONFIRMATION_TOKEN),AllowAccess:s};r=JSON.stringify(r);query.postData(u,b,k,r,!0,y)},b=function(){f.classList.add(n.HIDDEN_CLASS);u.classList.add(n.HIDDEN_CLASS);s?(h.classList.remove(n.HIDDEN_CLASS),dataLayer.push({event:n.TAGGING_GENERAL_PREFFIX+n.TAGGING_ACCESS_GRANTED})):(c.classList.remove(n.HIDDEN_CLASS),dataLayer.push({event:n.TAGGING_GENERAL_PREFFIX+n.TAGGING_ACCESS_DENIED}))},k=function(t){r.innerHTML=t&&t.errorMsg?t.errorMsg:r.dataset.defaultMsg;query.removeClass(r,n.HIDDEN_CLASS);r.focus()},d=function(){u=i.getElementsByClassName(n.MAIN_CONFIRMATION_BANNER)[0];f=i.getElementsByClassName(n.ACCESS_CONFIRMATION_BANNER)[0];h=i.getElementsByClassName(n.GRANTED_ACCESS_BANNER)[0];c=i.getElementsByClassName(n.DENIED_ACCESS_BANNER)[0];l=i.getElementsByClassName(n.EXPIRED_LINK_BANNER)[0];a=i.getElementsByClassName(n.ALREADY_COMPLETED_BANNER)[0];e=i.getElementsByClassName(n.ALLOW_CONFIRMATION_BUTTON)[0];o=i.getElementsByClassName(n.ALLOW_ACCESS_BUTTON)[0];v=i.getElementsByClassName(n.DENY_ACCESS_BUTTON);y=i.getElementsByClassName(n.FORM_LOADING)[0];r=i.getElementsByClassName(n.SERVICE_ERROR)},g=function(){l?dataLayer.push({event:n.TAGGING_GENERAL_PREFFIX+n.TAGGING_LINK_EXPIRED}):a?dataLayer.push({event:n.TAGGING_GENERAL_PREFFIX+n.TAGGING_ALREADY_COMPLETED}):(coned.utils.addGeneralListeners(e,w),coned.utils.addGeneralListeners(o,p),_.each(v,function(n){coned.utils.addGeneralListeners(n,p)}),coned.utils.addGeneralListeners(e,function(){dataLayer.push({event:n.TAGGING_GENERAL_PREFFIX+n.TAGGING_ALLOW_ACCESS})}),coned.utils.addGeneralListeners(o,function(){dataLayer.push({event:n.TAGGING_GENERAL_PREFFIX+n.TAGGING_CONFIRM_ALLOW_ACCESS})}),coned.utils.addGeneralListeners(u.getElementsByClassName(n.DENY_ACCESS_BUTTON)[0],function(){dataLayer.push({event:n.TAGGING_GENERAL_PREFFIX+n.TAGGING_DENY_ACCESS})}),coned.utils.addGeneralListeners(f.getElementsByClassName(n.DENY_ACCESS_BUTTON)[0],function(){dataLayer.push({event:n.TAGGING_GENERAL_PREFFIX+n.TAGGING_CONFIRM_DENY_ACCESS})}))},nt=function(){d();g();t=!0};nt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.TipsFiltersComponent=function(){var n={HEADER_WRAPPER:"header-wrapper",DROPDOWN_SORT_CLASS:"js-dropdown-sort",DROPDOWN_BUTTON_CLASS:"js-dropdown-button",DROPDOWN_BUTTON_ACTIVE_CLASS:"tips-filters__item-button--active",DROPDOWN_BUTTON_TITLE_CLASS:"js-dropdown-title",DROPDOWN_BUTTON_ICON_CLASS:"js-icon-carrot",DROPDOWN_BUTTON_ICON_OPEN_CLASS:"drop-down-title-icon--open",DROPDOWN_LIST_CLASS:"js-dropdown-list",DROPDOWN_ITEM_CLASS:"js-dropdown-item",DROPDOWN_ITEM_ACTIVE_CLASS:"dropdown-list-item-link--active",TIPS_LIST_CLASS:"js-tips-list",TIPS_ITEM_CLASS:"js-tips-item",TIPS_ALL_VALUE:"ALL",TIPS_CARD_SELECTOR:"js-card-selector",TIPS_CARD_ANIMATION_CLASS:"card-tile__zoom--animation",PAGINATION_MODULE:"js-pagination-wrapper",PAGINATION_RESET_CLASS:"js-pagination-reset",PAGINATION_RESULTS_CLASS:"js-pagination-results",PAGINATION_RESULTS_TOTAL:"js-total",CARD_CLASS_WRAP:"card-tile__link-wrapper",CARD_CLASS_FOCUS:"card-tile--focus",ARIA_EXPANDED:"aria-expanded",ARIA_CURRENT:"aria-current"},t=!1,i=function(i){var y,u,p,c,w,o,b,k,d,g,nt,e,s,f,r,l,a,h,et=function(t){t.preventDefault();var r=query.hasClass(this,n.DROPDOWN_BUTTON_ACTIVE_CLASS),u=this.parentNode,i=u.getElementsByClassName(n.DROPDOWN_LIST_CLASS)[0],f=this.getElementsByClassName(n.DROPDOWN_BUTTON_ICON_CLASS)[0];r?v():(v(),TweenMax.from(i,.2,{y:-20,opacity:0}),i.style.display="block",query.addClass(this,n.DROPDOWN_BUTTON_ACTIVE_CLASS),query.addClass(f,n.DROPDOWN_BUTTON_ICON_OPEN_CLASS),this.setAttribute(n.ARIA_EXPANDED,!0))},v=function(){_.each(g,function(n){n.style.display="none"});query.removeClass(o,n.DROPDOWN_BUTTON_ACTIVE_CLASS);query.removeClass(b,n.DROPDOWN_BUTTON_ICON_OPEN_CLASS);_.each(o,function(t){t.getAttribute(n.ARIA_EXPANDED)&&t.setAttribute(n.ARIA_EXPANDED,!1)})},ot=function(t,i){_.each(i,function(t){t.getAttribute(n.ARIA_CURRENT)&&t.setAttribute(n.ARIA_CURRENT,!1)});t.setAttribute(n.ARIA_CURRENT,!0)},st=function(t){if(t.preventDefault(),!query.hasClass(this,n.DROPDOWN_ITEM_ACTIVE_CLASS)){var i=this.parentNode.parentNode.parentNode.parentNode,u=i.getElementsByClassName(n.DROPDOWN_BUTTON_CLASS)[0],r=this.parentNode.parentNode.getElementsByClassName(n.DROPDOWN_ITEM_CLASS),f=u.getElementsByClassName(n.DROPDOWN_BUTTON_TITLE_CLASS)[0],e=this.innerText.trim();query.removeClass(r,n.DROPDOWN_ITEM_ACTIVE_CLASS);query.addClass(this,n.DROPDOWN_ITEM_ACTIVE_CLASS);ot(this,r);f.innerText=e;v();query.hasClass(i,n.DROPDOWN_SORT_CLASS)?tt(this.dataset.value):it(this.dataset.value,this.dataset.subValue);ut();ft();c.click()}},tt=function(n){r=r.sort(function(t,i){return parseFloat(i.getAttribute("data-"+n))-parseFloat(t.getAttribute("data-"+n))});rt()},ht=function(t){var r=i.querySelector('[data-value="'+t+'"]'),f=i.querySelector('[data-value="'+t+'"]').parentNode.parentNode.parentNode.parentNode,u=f.getElementsByClassName(n.DROPDOWN_BUTTON_CLASS)[0],e=u.parentNode.parentNode.getElementsByClassName(n.DROPDOWN_ITEM_CLASS),o=u.getElementsByClassName(n.DROPDOWN_BUTTON_TITLE_CLASS)[0],s=r.innerText.trim();query.removeClass(e,n.DROPDOWN_ITEM_ACTIVE_CLASS);query.addClass(r,n.DROPDOWN_ITEM_ACTIVE_CLASS);o.innerText=s},it=function(t,i){var e,o,u,h,s;if(r=[],t.toUpperCase()==n.TIPS_ALL_VALUE)r=f;else{for(e=0;e<f.length;e++)(o=f[e].cloneNode(!0),u=o.getAttribute("data-"+i),u!=null)&&(u.includes("|")?(h=u.toUpperCase().split("|"),h.includes(t.toUpperCase())&&r.push(o)):u.toUpperCase()==t.toUpperCase()&&r.push(o));r.length===0&&(r=f)}s=d.getElementsByClassName(n.DROPDOWN_ITEM_ACTIVE_CLASS)[0];s!=undefined&&tt(s.dataset.value);rt()},rt=function(){for(var t="",i,n=0;n<r.length;n++)i=r[n].cloneNode(!0),t+=i.outerHTML;e.innerHTML=t},ut=function(){var t=e.getElementsByClassName(n.TIPS_CARD_SELECTOR);window.scrollTo(0,i.offsetTop-w.offsetHeight);coned.utils.initializeModules(e);_.each(t,function(t){query.addClass(t,n.TIPS_CARD_ANIMATION_CLASS)});new coned.components.LoadCardTiles(e)},ft=function(){var t=y.dataset.divider,i=t*1,n,r;for(_.each(u.children,function(n){query.addClass(n,u.dataset.resultsHide)}),n=i-t;n<i&&n<u.children.length;n++)r=u.children[n],query.removeClass(r,u.dataset.resultsHide);p.innerHTML=u.children.length},ct=function(){var v,t;for(y=document.getElementsByClassName(n.PAGINATION_MODULE)[0],u=document.getElementsByClassName(n.PAGINATION_RESULTS_CLASS)[0],p=document.getElementsByClassName(n.PAGINATION_RESULTS_TOTAL)[0],c=document.getElementsByClassName(n.PAGINATION_RESET_CLASS)[0],w=document.getElementsByClassName(n.HEADER_WRAPPER)[0],o=i.getElementsByClassName(n.DROPDOWN_BUTTON_CLASS),b=i.getElementsByClassName(n.DROPDOWN_BUTTON_ICON_CLASS),k=i.getElementsByClassName(n.DROPDOWN_SORT_CLASS)[0],d=k.getElementsByClassName(n.DROPDOWN_LIST_CLASS)[0],g=i.getElementsByClassName(n.DROPDOWN_LIST_CLASS),nt=i.getElementsByClassName(n.DROPDOWN_ITEM_CLASS),e=document.getElementsByClassName(n.TIPS_LIST_CLASS)[0],s=e.getElementsByClassName(n.TIPS_ITEM_CLASS),l=i.dataset.filteredResults,a=i.dataset.filterCategory,h=i.dataset.filterValue,v=s.length,f=new Array(v),r=new Array(v),t=0;t<v;t++)f[t]=s[t].cloneNode(!0),r[t]=s[t].cloneNode(!0);l&&l.toLowerCase()==="true"&&h&&a&&(it(h,a),ut(),r.length!==f.length&&(ht(h),ft(),c.click()))},lt=function(){var i,t;for(_.each(o,function(n){coned.utils.addGeneralListeners(n,et)}),_.each(nt,function(n){coned.utils.addGeneralListeners(n,st)}),i=document.getElementsByClassName(n.CARD_CLASS_WRAP),t=0;t<i.length;t++)i[t].addEventListener("focus",function(t){var i=document.getElementsByClassName(n.CARD_CLASS_FOCUS);i.length>0&&i[0].classList.remove(n.CARD_CLASS_FOCUS);t.currentTarget.parentElement.parentElement.classList.add(n.CARD_CLASS_FOCUS)})},at=function(){ct();lt();t=!0};at()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ToastModule=function(){var n={HIDDEN_CLASS:"hidden",BUTTON_TOAST:"js-toast-button",CLOSE_BUTTON:"js-toast-close",SHOW_TOAST:"toast-show",SHOW_TOAST_BOTTOM_12:"toast-show-bottom-12",TOAST_EXPANDED:"js-toast--expanded",TOAST_MESSAGE:"js-toast-message",TOAST_REUSABLE:"js-toast-reusable",TOAST_NOT_ADD_ROLE_ALERT:"js-no-dynamically-add-role-alert",SHOW_TOAST_EVENT:"show-toast-event",TOAST_DESCRIPTION_SELECTOR:"js-toast-description",FIVE_SECONDS:5e3,FADEOUT_CSS_ANIMATION_TIME:500,ARIA_ROLE:"role",ALERT:"alert"},t=!1,i=function(i){var s,u,f,h,r,e,o=function(){e?i.classList.remove(n.SHOW_TOAST_BOTTOM_12):i.classList.remove(n.SHOW_TOAST);r&&(u.removeAttribute(n.ARIA_ROLE),i.classList.remove(n.TOAST_EXPANDED),setTimeout(function(){i.classList.add(n.HIDDEN_CLASS)},n.FADEOUT_CSS_ANIMATION_TIME))},c=function(){var t=query.hasClass(i,n.TOAST_NOT_ADD_ROLE_ALERT);i.classList.remove(n.HIDDEN_CLASS);r&&(e?i.classList.add(n.SHOW_TOAST_BOTTOM_12):i.classList.add(n.SHOW_TOAST));i.classList.contains(n.TOAST_EXPANDED)||(t?f.innerText=f.innerText:u.setAttribute(n.ARIA_ROLE,n.ALERT),i.classList.add(n.TOAST_EXPANDED),setTimeout(function(){o()},n.FIVE_SECONDS))},l=function(t,i){if(t.keyCode==coned.constants.KEY_CODE.ESC){var r=!query.hasClass(i,n.SHOW_TOAST);r&&o(t)}},a=function(){s=i.getElementsByClassName(n.CLOSE_BUTTON);u=i.getElementsByClassName(n.TOAST_MESSAGE)[0];f=i.getElementsByClassName(n.TOAST_DESCRIPTION_SELECTOR)[0];h=i.classList.contains(n.SHOW_TOAST);r=i.classList.contains(n.TOAST_REUSABLE);e=window.getComputedStyle(i,null).getPropertyValue("bottom")==="12px"?!0:!1},v=function(){_.each(s,function(n){n.addEventListener("click",o)});new coned.utils.addFocusTrap(i);h&&c();r&&i.addEventListener(n.SHOW_TOAST_EVENT,function(){c()});i.addEventListener("keydown",function(n){l(n,i)})},y=function(){a();v();t=!0};y()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ToolTipComponent=function(){var n={ARIA_EXPANDED:"aria-expanded",ROLE:"role",DIALOG_ROLE:"dialog",REGION_ROLE:"region",ARIA_LABEL:"aria-label",ARIA_LABELLEDBY:"aria-labelledby",TOOLTIP_DUMMY_FOCUS:"js-tooltip-focus",TOOLTIP_OPEN_SELECTOR:"js-tooltip-open",TOOLTIP_CLOSE_SELECTOR:"js-tooltip-close",TOOLTIP_WRAPPER_SELECTOR:"js-coned-tooltip-wrapper",TOOLTIP_CONTENT_CLASS:"coned-tooltip__content",TOOLTIP_TEMPLATES_CLASS:"tooltip__templates",TOOLTIPSTER_CLASS:"tooltipster-sidetip",TOOLTIPSTER_CLASS_ORU:"tooltipster-sidetip--oru",TOOLTIP_CLASS_ORU:"coned-tooltip--oru",TOOLTIP_CLASS_OPEN:"tooltip-opened",MOUSE_USER_CLASS:"mouse-user",BODY_CLASS:"js-body"},t=!1,i=function(i){var u,r,h,c,f,o,s,l=function(){u=i.getElementsByClassName(n.TOOLTIP_OPEN_SELECTOR)[0]},a=function(){$(i).find("."+n.TOOLTIP_OPEN_SELECTOR).tooltipster({content:$(i).find("."+n.TOOLTIP_WRAPPER_SELECTOR),trigger:"custom",onlyOne:!0,side:"top",width:"100%",minWidth:"100%",zIndex:"9998",interactive:!0,functionBefore:p,functionReady:w,triggerOpen:{click:!0,touchstart:!0},triggerClose:{click:!0,touchstart:!0}});var t=i.getElementsByClassName(n.TOOLTIP_CLOSE_SELECTOR)[0];v();t&&(t.focusBack=!0,t.addEventListener("click",e))},v=function(){var t=i.getElementsByClassName(n.TOOLTIP_WRAPPER_SELECTOR)[0],f=i.getElementsByClassName(n.TOOLTIP_CONTENT_CLASS)[0],r=i.getElementsByClassName(n.TOOLTIP_CLOSE_SELECTOR)[0],u;do u=coned.utils.generateUUID();while(document.getElementById(u));t&&t.setAttribute(n.ROLE,n.DIALOG_ROLE);t&&t.setAttribute(n.ARIA_LABELLEDBY,u);f&&f.setAttribute("id",u);r&&!r.hasAttribute(n.ARIA_LABEL)&&(r.setAttribute(n.ARIA_LABEL,"Close"),r.setAttribute("type","button"))},y=function(t){var i=document.getElementsByClassName(n.BODY_CLASS)[0];$("."+n.TOOLTIP_DUMMY_FOCUS).remove();(!i.classList.contains(n.MOUSE_USER_CLASS)||t.target.focusBack)&&u&&u.focus()},p=function(){o=i.getElementsByClassName(n.TOOLTIP_TEMPLATES_CLASS)[0];s=o&&o.cloneNode(!0)},w=function(t){if(r=document.getElementById(t.__namespace),new coned.utils.addFocusTrap(r),h=r.getElementsByClassName(n.TOOLTIP_WRAPPER_SELECTOR)[0],c=r.getElementsByClassName(n.TOOLTIP_CLOSE_SELECTOR)[0],f=document.createElement("div"),u.setAttribute(n.ARIA_EXPANDED,"true"),r.addEventListener("keydown",b),h.setAttribute(n.ROLE,n.DIALOG_ROLE),c.focus(),r.classList.add(n.TOOLTIP_CLASS_OPEN),f.classList.add(n.TOOLTIP_DUMMY_FOCUS),f.setAttribute("tabindex","0"),$(f).appendTo("body"),s){var o=i.getElementsByClassName(n.TOOLTIP_TEMPLATES_CLASS);o[0].getElementsByClassName(n.TOOLTIP_WRAPPER_SELECTOR)[0]||o&&o[0].appendChild(s.children[0])}coned.utils.isOru()&&(query.addClass(r,n.TOOLTIPSTER_CLASS_ORU),query.addClass(r,n.TOOLTIP_CLASS_ORU));r.addEventListener("focusout",function(n){r.contains(n.relatedTarget)||e(n)})},b=function(n){var t=n&&n.keyCode?n.keyCode:null;t==coned.constants.KEY_CODE.ESC&&e(n)},e=function(t){r.classList.contains(n.TOOLTIP_CLASS_OPEN)&&(r.classList.remove(n.TOOLTIP_CLASS_OPEN),r.removeEventListener("blur",e),u.setAttribute(n.ARIA_EXPANDED,"false"),$(i).find("."+n.TOOLTIP_OPEN_SELECTOR).tooltipster("hide"),y(t))},k=function(){l();a();t=!0};k()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.TrackedVideo=function(){var n={VIDEO_PARENT_CLASS:"full-media-with-content__media-container",PLAY_PAUSE_BUTTON_CLASS:"text-and-video-content__button",PLAY_PAUSE_ICON_CLASS:"text-and-video-content__button_icon",CAPTION_SETTINGS_CLASS:"vjs-caption-settings",LAZY_CLASS:"js-lazy",PLAY_CLASS:"js-play",PAUSE_CLASS:"js-pause",PLAY_ICON:"icon-play",PAUSE_ICON:"icon-pause",ORANGE_MODIFIER_CLASS:"--orange",BLUE_MODIFIER_CLASS:"--blue",PLAY_ARIA_LABEL:"btn-play-label",PAUSE_ARIA_LABEL:"btn-pause-label",VIDEO:"video",LOOP:"loop",ARIA_POLITE:"polite",VISUALLY_HIDDEN:"visually-hidden"},t=!1,i=function(i){var r=function(){function s(){i.style.display="none";c.className=n.VIDEO_PARENT_CLASS;u=!0}var t=videojs(i).player(),c=i.parentElement,u=!1,r=!1,l=1e4,h,f=i.getAttribute(n.PLAY_ARIA_LABEL),e=i.getAttribute(n.PAUSE_ARIA_LABEL),a=i.getElementsByTagName(n.VIDEO)[0],v=function(t){var r=t.getAttribute("id");coned.utils.isDesktop()&&(videojs(r).play(),setTimeout(function(){var t=i.getElementsByClassName(n.PLAY_PAUSE_BUTTON_CLASS)[0];videojs(r).pause();o(t)},5e3));t.classList.remove(n.LAZY_CLASS)},o=function(t,i){t.classList.contains(n.PLAY_CLASS)?(t.classList.remove(n.PLAY_CLASS),t.classList.add(n.PAUSE_CLASS),t.firstChild.nextSibling.textContent="State video: "+f+", press for "+e+" video.",t.firstChild.classList.remove(n.PLAY_ICON),t.firstChild.classList.add(n.PAUSE_ICON),i&&(videojs(i).play(),a.setAttribute(n.LOOP,""))):(t.classList.remove(n.PAUSE_CLASS),t.classList.add(n.PLAY_CLASS),t.firstChild.nextSibling.textContent="State video: "+e+", press for "+f+" video.",t.firstChild.classList.remove(n.PAUSE_ICON),t.firstChild.classList.add(n.PLAY_ICON),i&&videojs(i).pause())},y=function(){var t=document.createElement("button"),r=document.createElement("span"),u=document.createElement("span"),s=coned.utils.isDesktop()?n.PAUSE_ICON:n.PLAY_ICON,h=coned.utils.isDesktop()?n.PAUSE_CLASS:n.PLAY_CLASS,c=coned.utils.isOru()?n.ORANGE_MODIFIER_CLASS:n.BLUE_MODIFIER_CLASS;t.classList.add(n.PLAY_PAUSE_BUTTON_CLASS);t.classList.add(n.PLAY_PAUSE_BUTTON_CLASS+c);t.classList.add(h);t.setAttribute("aria-live",n.ARIA_POLITE);r.classList.add(n.PLAY_PAUSE_ICON_CLASS);r.classList.add(s);u.classList.add(n.VISUALLY_HIDDEN);u.textContent="State video: "+e+", press for "+f+" video.";t.appendChild(r);t.appendChild(u);i.appendChild(t);t.addEventListener("click",function(){o(t,i)})};i.classList.contains(n.LAZY_CLASS)&&(y(),coned.utils.initLazyLoadingIO(i,v));t.ready(function(){var f=i.getAttribute("video-label");i.removeAttribute("aria-label");i.removeAttribute("role");i.getElementsByClassName(n.CAPTION_SETTINGS_CLASS)[0].removeAttribute("role");f&&i.setAttribute("aria-label",f);t.error_&&(u||s());t.on("play",function(n){n.target.dataset.tagValue&&dataLayer.push({event:n.target.dataset.tagValue})});t.on("error",function(){u||(s(),r=!1)});if(i.dataset.bgVideo){t.on("waiting",function(){r||(r=!0,h=setTimeout(function(){!u&&r&&(s(),r=!1)},l))});t.on("playing",function(){r?(clearTimeout(h),r=!1):u&&t.pause().currentTime(0)})}t.on("ended",function(){var r=i.getElementsByClassName(n.PLAY_PAUSE_BUTTON_CLASS)[0];t.pause().currentTime(0);r&&o(r)})})},u=function(){r();t=!0};u()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.TransferService=function(){var n={TRANSFER_SERVICE_SELECTOR:"js-transfer-service",TRANSFER_FORM:".js-transfer-service-form",TRANSFER_FORM_CLASS:"js-transfer-service-form",ADDRESS_BUTTON_RECEPTOR:"js-dropdown-button-receptor",ADDRESS_LOOKUP_FORM:"js-address-lookup",AUTOCOMPLETE_APARMENT_UNIT:"js-autocomplete-apartment-unit",AUTOCOMPLETE_SELECTED_ADDRESS_DETAIL:"js-address-selected-detail",CURRENT_ADDRESS_TITLE:"js-current-address-title",MOVING_ADDRESS_1:"js-moving-address1",MOVING_ADDRESS_2:"js-moving-address2",ADDRESS_CONTAINER_CLASS:"address-box__container",ADDRESS_CURRENT_DATE_CONTAIN:"js-current-datapicker-contain",ADDRESS_NEXT_DATE_CONTAIN:"js-next-datapicker-contain",ADDRESS_NEXT_DATE_CLASS:".js-next-datapicker-contain",ADDRESS_CURRENT_DATE_RECEPTOR:"js-current-datapicker-receptor",ADDRESS_NEXT_DATE_RECEPTOR:"js-next-datapicker-receptor",EMAIL_RECEPTOR:"js-email-receptor",PHONE_RECEPTOR:"js-phone-receptor",PHONE_TYPE_SELECT:"js-phone-type-select",PHONE_TITLE_RECEPTOR:"js-phone-title-receptor",EDIT_ACCOUNT_INFORMATION:"js-edit-account-information",NEXT_BUTTON:"js-next-button",FINISH_BUTTON:"js-finish-button",DATE_PICKER_INPUT_CLASS:".js-start-date",ACCOUNT_PROFILE_SELECTOR:"js-account-profile",STEPS_LIST:"js-steps-list",STEP_FINISH:"js-form-finish",STEP_FINISH_ACTIVE:"form-progress-bar__finish--active",STEP_PROGRESS_BAR:"js-form-progress-bar",FINISH_BAR_CLASS:"form-progress-bar--finish",FINISH_STEP_SELECTOR:"js-finish-message",ANIMATION_SUBMIT_MODULE:"js-submit-progress-animation",ADDRESS_STEP_SELECTOR:"js-address-step",VERIFY_DATE_STEP_SELECTOR:"js-verify-date-step",ACCOUNT_PROFILE_STEP_SELECTOR:"js-account-profile-step",DIRECT_PAYMENT_STEP_SELECTOR:"js-step-direct-pay",LIFE_SUPPORT_STEP_SELECTOR:"js-step-life-support",DISABILITY_STEP_SELECTOR:"js-step-disability",REVIEW_STEP_SELECTOR:"js-step-review",TRANSFER_DATE_ERROR_SELECTOR:"js-transfer-date-service-error",TRANSFER_STOP_DATE_ERROR_SELECTOR:"js-transfer-stop-date-service-error",TRANSFER_SERVICE_ERROR_SELECTOR:"js-transfer-service-error",ERROR_TEXT_SELECTOR:"js-error-message",FORM_COMPANY_CODE_NAME:"companyCode",FORM_ADDRESS_SCID_NAME:"AddressScId",FORM_START_DATE_SCID_NAME:"DateScId",FORM_ACCOUNT_PROFILE_SCID_NAME:"AccountProfileScId",FORM_DIRECT_PAYMENT_SCID_NAME:"DirectPaymentScId",FORM_LIFE_SUPPORT_SCID_NAME:"LifeSupportScId",FORM_DISABILITY_SCID_NAME:"DisabilityScId",FORM_ZIPCODE_NAME:"transferServiceZipCode",FORM_STREET_NAME_NAME:"streetName",FORM_STREET_NUMBER_NAME:"streetNumber",FORM_RESIDENCE_UNIT_NAME:"residenceUnit",FORM_END_DATE_NAME:"transferServiceEndDate",FORM_START_DATE_NAME:"transferServiceStartDate",FORM_EMAIL_NAME:"emailAdress",FORM_PHONE_TYPE_NAME:"phoneType",FORM_PHONE_NUMBER_NAME:"phoneNumber",FORM_MAILING_ADDRESS_NAME:"mailingAddress",FORM_MAILING_NAME_NAME:"mailingName",FORM_MAILING_ADDRESS_ONE_NAME:"mailingAddressOne",FORM_MAILING_CITY_NAME:"mailingCity",FORM_MAILING_STATE_NAME:"mailingState",FORM_MAILING_ZIPCODE_NAME:"mailingZipCode",FORM_EBILL_ENROLL_NAME:"ebillEnroll",FORM_DIRECT_PAYMENT_ENROLL_NAME:"directPaymentEnroll",FORM_LIFE_SUPPORT_NAME:"lifeSupportEnroll",FORM_DISABILITY_NAME:"disabilityEnroll",FORM_DP_ACCOUNT_TYPE_NAME:"accountType",FORM_DP_ROUTING_NUMBER_NAME:"routingAbaNumber",FORM_DP_ACCOUNT_NUMBER_NAME:"accountNumber",FORM_LS_TANK_RESPIRATOR_ID:"tankRespirator",FORM_LS_CUIRASS_RESPIRATOR_ID:"cuirassRespirator",FORM_LS_ROCKING_RESPIRATOR_ID:"rockingRespirator",FORM_LS_ELECTRICAL_RESPIRATOR_ID:"electricalRespirator",FORM_LS_APNEA_MONITOR_ID:"apneaMonitor",FORM_LS_HEMODIALYSIS_ID:"hemodialysis",FORM_LS_OTHER_NAME:"lifeSupportOther",FORM_LS_DAYS_NAME:"lifeSupportDays",FORM_LS_HOURS_NAME:"lifeSupportHours",FORM_LS_EQUIPMENT_SLEEPING_NAME:"equipmentSleeping",FORM_LS_HOURS_PER_DAY_NAME:"lifeSupportHoursPerDay",FORM_DISABILITY_AGE_62_ID:"age62",FORM_DISABILITY_BLIND_ID:"blind",FORM_DISABILITY_PERMANENTLY_DISABLED_ID:"permanentlyDisabled",FORM_DISABILITY_UNDER_AGE_18_ID:"underAge18",FORM_DISABILITY_OTHER_NOTIFIED_NAME:"otherNotified",FORM_DISABILITY_FIRST_NAME_NAME:"disabilityFirstName",FORM_DISABILITY_LAST_NAME_NAME:"disabilityLastName",FORM_DISABILITY_STREET_ADDRESS_NAME:"disabilityStreetAddress",FORM_DISABILITY_CITY_NAME:"disabilityCity",FORM_DISABILITY_STATE_NAME:"disabilityState",FORM_DISABILITY_ZIPCODE_NAME:"disabilityZipCode",FORM_DISABILITY_DAY_TIME_NUMBER_NAME:"dayTimeNumber",FORM_DISABILITY_NIGHT_TIME_NUMBER_NAME:"nightTimeNumber",HIDDEN_CLASS:"hidden",INPUT_VALIDATE:"js-item-validate",VALIDATE_IGNORE:"js-validate-ignore",FORM_LOADING:"js-form-loading",FORM_LOADING_HIDDEN:"form-loading--hidden",ACCOUNT_DROPDOWN_ITEMS:"js-dropdown-item",LOOKUP_BUTTON:"js-lookup-button",VALIDATE_BY_ADDRESS_ERROR:"js-check-availability-current-service-error",VALIDATE_BY_RESIDENCE_UNIT_ERROR:"js-check-availability-service-error",DROPDOWN_BUTTON:"js-dropdown-button-contain",FORM_STEP:"js-form-step",FORM_CURRENT_STEP:"js-current-step",FORM_STEP_ACTIVE:"form-progress-bar__item--active",DROPDOWN_LABEL:"js-coned-select-label",ACTIVE_DROPDOWN:"coned-select--active",IS_FORM_BLOCKED:"js-form-blocked",DATE_PICKER_INPUT:"js-current-datepicker-input",DATE_PICKER_NEXT_DATE:"js-next-datepicker-input",DEFAULT_SUCCESS_MESSAGE:"js-default-success-message",SUCCESS_BANNER_DATE:"js-banner-date",SUCCESS_DATE_TOKEN:"{{DATE}}",SUCCESS_EMAIL_TOKEN:"{{EMAIL}}",EMAIL_INPUT_CLASS:"js-transfer-email",PHONE_TYPE_SELECT_CLASS:"js-phone-type-select",PHONE_INPUT_CLASS:"js-transfer-phone",PROFILE_SUBMIT_BUTTON:"js-transactional-extra-help",CONED_RADIO_SELECTOR:"js-coned-radio",INPUT_EVENT:"input",CHANGE_EVENT:"change",FILLED_CLASS:"coned-input--filled",DISABLED_ATTRIBUTE:"disabled",ACCOUNT_TYPE_COMMERCIAL:"C",ACCOUNT_TYPE_RESIDENTIAL:"R",HEADER:"js-header-wrapper",HAS_ELECTRICITY_COLD_AMI:"js-has-electricity-cold-ami",TRANSFER_SERVICE_FINISH_MAIN:"js-transfer-service-finish-main",TABINDEX:"tabindex",TAGGING_PHONE_TYPE:"enter.phone.type",TAGGING_ZIPCODE_ERROR:"transferService.zipcode.error",TAGGING_ADDRESS_CHANGE:""},t=!1,i=function(i){var r,oi,tt,si,hi,ci,li,it,l,ai,kt,a,vi,yi,pi,wi,bi,ki,di,gi,rt,nr,tr,v,h,u,k,o,f,ir,ut,ft,d,et,ot,st,y,g,p,e,rr,ht,ct,dt,ur,fr,er,c,or,lt,at,gt,s,sr,vt,hr,ni,ti,w,b,yt,pt,wt,ii,nt=function(t){var i=document.getElementsByClassName(n.FORM_CURRENT_STEP)[0];t?i.classList.add(n.IS_FORM_BLOCKED):i.classList.remove(n.IS_FORM_BLOCKED)},cr=function(t,i){var u=v.dataset.checkAvailabilityService,f=document.getElementsByClassName(n.FORM_STEP),r;w=i;vr();_.each(f,function(t){!query.hasClass(t,n.FORM_CURRENT_STEP)&&query.hasClass(t,n.FORM_STEP_ACTIVE)&&(t.classList.remove(n.FORM_STEP_ACTIVE),ti.push(t))});r={ScId:query.getFormInputValue(v,n.FORM_ADDRESS_SCID_NAME),StartServiceMaid:pt,StopServiceMaid:wt,PremiseNumber:b,IsStartService:w,IsTransferService:!0};r=JSON.stringify(r);query.postData(u,pr,ar,r,!0,et);w&&!ni&&(query.scrollToElement(ai,er),or.focus())},pr=function(t){if(coned.utils.isPatternLab()){var i=new Date,r=new Date;i.setDate(i.getDate()+1);r.setUTCMonth(r.getUTCMonth()+1);t={MinDate:i.toJSON().replace(/-/g,"/").slice(0,10),MaxDate:r.toJSON().replace(/-/g,"/").slice(0,10)};t.ServiceAddress={City:"NEW YORK",State:"NY",UnitNumber:"11C"};t.AccountNumber="123456789012345";t.AccountType=s==="700935004000055"||s==="12345678901"?n.ACCOUNT_TYPE_COMMERCIAL:n.ACCOUNT_TYPE_RESIDENTIAL;yt&&(t.IsElectricityColdAmi=!0)}wr(t)},ri=function(t){t?(t.preventDefault(),s=t.currentTarget.children[0].dataset.account):s=y.dataset.account;p=r.getElementsByClassName(n.VALIDATE_BY_ADDRESS_ERROR)[0];wt=s;cr(s,!1)},lr=function(){s=l.dataset.maid;b=l.dataset.premiseNumber;p=r.getElementsByClassName(n.VALIDATE_BY_RESIDENCE_UNIT_ERROR)[0];pt=s;cr(s,!0)},wr=function(t){var r=t.AccountType===n.ACCOUNT_TYPE_COMMERCIAL,f=v.dataset.comercialAccountErrorMsg,u=y.dataset.premise;w?(kr(t.MinDate),hr=!r,t.IsElectricityColdAmi?(yt=!0,lt=i.getElementsByClassName(n.HAS_ELECTRICITY_COLD_AMI),at=rt.getElementsByClassName(n.HAS_ELECTRICITY_COLD_AMI),_.each(lt,function(t){t.classList.remove(n.HIDDEN_CLASS)}),_.each(at,function(t){t.classList.remove(n.HIDDEN_CLASS)}),dataLayer.push({ElectricityAMI:!0})):(yt=!1,lt=i.getElementsByClassName(n.HAS_ELECTRICITY_COLD_AMI),at=rt.getElementsByClassName(n.HAS_ELECTRICITY_COLD_AMI),_.each(lt,function(t){t.classList.add(n.HIDDEN_CLASS)}),_.each(at,function(t){t.classList.add(n.HIDDEN_CLASS)}),dataLayer.push({ElectricityAMI:!1}))):(ni=!r,vt=!0,br(t.MinDate,t.MaxDate));r?ar({errorMsg:f}):p.classList.add(n.HIDDEN_CLASS);vr();t.AccountNumber&&w&&(sr=t.AccountNumber);b=l.dataset.premiseNumber;ii=u?u:t.PremiseNumber;y.dataset.premise=ii;_.each(ti,function(t){t.classList.add(n.FORM_STEP_ACTIVE)})},br=function(n,t){var i=new Date(n),r=new Date(t);i.setDate(i.getDate());r.setDate(r.getDate());i=i.toJSON().replace(/-/g,"/").slice(0,10);r=r.toJSON().replace(/-/g,"/").slice(0,10);e.dataset.minDateDays=i;e.dataset.maxDateDays=r;setTimeout(function(){$(e).datepicker("option","minDate",new Date(i));$(e).datepicker("option","maxDate",new Date(r))},1)},kr=function(n){if(n)n=n.replace(/-/g,"/").slice(0,10),c.dataset.minDateDays=n,setTimeout(function(){$(c).datepicker("option","minDate",new Date(n));c.nextSibling.disabled=!0},1);else{var t=new Date;t.setDate(t.getDate());t=t.toJSON().replace(/-/g,"/").slice(0,10);c.dataset.minDateDays=t;setTimeout(function(){$(c).datepicker("option","minDate",new Date(t));c.nextSibling.disabled=!0},1)}},dr=function(n){var t=new Date(n);t.setDate(t.getDate());t=t.toJSON().replace(/-/g,"/").slice(0,10);c.dataset.maxDateDays=t;setTimeout(function(){$(c).datepicker("option","maxDate",new Date(t))},1)},ar=function(t){var i=p.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];st.disabled=!0;vt=w?vt:!1;i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;p.classList.remove(n.HIDDEN_CLASS);p.focus()},vr=function(){hr&&ni&&vt?(st.disabled=!1,nt()):st.disabled=!0},gr=function(t){var r=t.target,u=t.target.value,f=$(n.TRANSFER_FORM).validate(),e=f.element(r),o=h.dataset.verifyDateServiceUrl,i;(u!=""&&dr(u),e)&&(r.disabled=!0,ei(ft),i={ScStartDateId:query.getFormInputValue(h,n.FORM_START_DATE_SCID_NAME),ScServiceAddressId:query.getFormInputValue(v,n.FORM_ADDRESS_SCID_NAME),StartServiceMaid:pt,StopServiceMaid:wt,PremiseNumber:b,StopServiceDate:r.value,StartServiceDate:""},i=JSON.stringify(i),query.postData(o,nu,tu,i,!0,et))},nu=function(){e.disabled=!1;e.focus();nt()},tu=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.VERIFY_DATE_ERROR,ui,ui):ui(n)},ui=function(t){var i=ft.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];ft.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;e.value="";e.classList.remove(n.FILLED_CLASS);e.disabled=!1;e.focus();nt(!0)},iu=function(t){var r=t.target,u=$(n.TRANSFER_FORM).validate(),f=u.element(r),e=h.dataset.verifyDateServiceUrl,i;f&&(r.disabled=!0,ei(ut),i={ScStartDateId:query.getFormInputValue(h,n.FORM_START_DATE_SCID_NAME),ScServiceAddressId:query.getFormInputValue(v,n.FORM_ADDRESS_SCID_NAME),PremiseNumber:b,StartServiceMaid:pt,StartServiceDate:r.value,StopServiceDate:query.getFormInputValue(h,n.FORM_END_DATE_NAME)},i=JSON.stringify(i),query.postData(e,ru,uu,i,!0,et))},ru=function(){a.disabled=!1;a.focus();nt()},uu=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.VERIFY_DATE_ERROR,fi,fi):fi(n)},fi=function(t){var i=ut.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];ut.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;a.value="";a.classList.remove(n.FILLED_CLASS);a.disabled=!1;e.focus();nt()},ei=function(t){t.classList.add(n.HIDDEN_CLASS)},yr=function(t){var f,e,o;if(t.preventDefault(),!t.currentTarget.disabled){var i=query.selectParentElement(t.target,n.NEXT_BUTTON),r=document.getElementsByClassName(n.FORM_STEP),s=r[r.length-1];coned.utils.addGeneralListeners(s,yr);i&&query.hasClass(i,n.FINISH_BUTTON)&&(ot=ir.getElementsByClassName(n.ANIMATION_SUBMIT_MODULE)[0],new coned.components.SubmitAnimation(ot,fu,lu,au,!1,!0));f=y.getElementsByClassName(n.ADDRESS_CONTAINER_CLASS)[0];_.each(si,function(t){var i=t.getElementsByClassName(n.ADDRESS_CONTAINER_CLASS)[0];i.innerHTML=f.innerHTML});_.each(hi,function(n){n.innerHTML=l.dataset.addressLine1});_.each(ci,function(n){n.innerHTML=l.dataset.addressLine2});e=$.datepicker.formatDate("MM dd, yy",new Date(kt.value));o=$.datepicker.formatDate("MM dd, yy",new Date(a.value));vi.innerHTML=e;yi.innerHTML=o;tr.innerHTML=query.getFormInputValue(u,n.FORM_EMAIL_NAME);rr.innerHTML=ht.options[ht.selectedIndex].text;pi.innerHTML=query.getFormInputValue(u,n.FORM_PHONE_NUMBER_NAME)}},fu=function(){var c=r.dataset.transferServiceUrl,e=query.getFormInputValue(u,n.FORM_LIFE_SUPPORT_NAME),a=query.getFormInputValue(f,n.FORM_DISABILITY_OTHER_NOTIFIED_NAME),s=query.getFormInputValue(u,n.FORM_DISABILITY_NAME),t,p=l.dataset.maid,i;ei(d);t={AccountNumber:sr,Maid:p,StartDate:query.getFormInputValue(h,n.FORM_START_DATE_NAME),Email:query.getFormInputValue(u,n.FORM_EMAIL_NAME),Phone:query.getFormInputValue(u,n.FORM_PHONE_NUMBER_NAME),PhoneType:query.getFormInputValue(u,n.FORM_PHONE_TYPE_NAME),EbillFlag:query.getFormInputValue(u,n.FORM_EBILL_ENROLL_NAME),DPPflag:query.getFormInputValue(u,n.FORM_DIRECT_PAYMENT_ENROLL_NAME),PremiseNumber:b,AutopayDetails:{BankAccountType:query.getFormInputValue(k,n.FORM_DP_ACCOUNT_TYPE_NAME),BankRoutingNumber:query.getFormInputValue(k,n.FORM_DP_ROUTING_NUMBER_NAME),BankAccountNumber:query.getFormInputValue(k,n.FORM_DP_ACCOUNT_NUMBER_NAME)}};s.toLowerCase()==="yes"?(t.ConcernFlag=!0,t.Concern=cu(s,a)):t.ConcernFlag=!1;e&&e.toLowerCase()==="yes"?(t.LSEFlag=!0,t.LSE=hu(e)):t.LSEFlag=!1;i={ScStartDateId:query.getFormInputValue(h,n.FORM_START_DATE_SCID_NAME),ScServiceAddressId:query.getFormInputValue(v,n.FORM_ADDRESS_SCID_NAME),ScAccountProfileId:query.getFormInputValue(u,n.FORM_ACCOUNT_PROFILE_SCID_NAME),ScDirectPaymentId:query.getFormInputValue(k,n.FORM_DIRECT_PAYMENT_SCID_NAME),ScLifeSupportEquipmentId:query.getFormInputValue(o,n.FORM_LIFE_SUPPORT_SCID_NAME),ScDisabilityId:query.getFormInputValue(f,n.FORM_DISABILITY_SCID_NAME),ID:y.dataset.account,StopService:su(),StartService:t};i=JSON.stringify(i);query.postData(c,eu,ou,i,!0)},eu=function(){ot.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},ou=function(n){ot.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);gt=n},su=function(){return{StopDate:query.getFormInputValue(h,n.FORM_END_DATE_NAME),Phone:query.getFormInputValue(u,n.FORM_PHONE_NUMBER_NAME),PhoneType:query.getFormInputValue(u,n.FORM_PHONE_TYPE_NAME),Maid:wt,PremiseNumber:ii}},hu=function(t){return t?{Tank:query.getCheckboxInputValueById(o,n.FORM_LS_TANK_RESPIRATOR_ID),Curass:query.getCheckboxInputValueById(o,n.FORM_LS_CUIRASS_RESPIRATOR_ID),RockingBed:query.getCheckboxInputValueById(o,n.FORM_LS_ROCKING_RESPIRATOR_ID),ElecOperated:query.getCheckboxInputValueById(o,n.FORM_LS_ELECTRICAL_RESPIRATOR_ID),Apnea:query.getCheckboxInputValueById(o,n.FORM_LS_APNEA_MONITOR_ID),Herneo:query.getCheckboxInputValueById(o,n.FORM_LS_HEMODIALYSIS_ID),Other:query.getFormInputValue(o,n.FORM_LS_OTHER_NAME),UsedSleepingHours:query.getFormInputValue(o,n.FORM_LS_EQUIPMENT_SLEEPING_NAME),SleepingHoursPerDay:query.getFormInputValue(o,n.FORM_LS_HOURS_PER_DAY_NAME)}:null},cu=function(t,i){var r=null;return t?(i&&(r={Name:query.getFormInputValue(f,n.FORM_DISABILITY_FIRST_NAME_NAME),LastName:query.getFormInputValue(f,n.FORM_DISABILITY_LAST_NAME_NAME),Street:query.getFormInputValue(f,n.FORM_DISABILITY_STREET_ADDRESS_NAME),City:query.getFormInputValue(f,n.FORM_DISABILITY_CITY_NAME),State:query.getFormInputValue(f,n.FORM_DISABILITY_STATE_NAME),ZipCode:query.getFormInputValue(f,n.FORM_DISABILITY_ZIPCODE_NAME),DayPhone:query.getFormInputValue(f,n.FORM_DISABILITY_DAY_TIME_NUMBER_NAME),NightPhone:query.getFormInputValue(f,n.FORM_DISABILITY_NIGHT_TIME_NUMBER_NAME)}),{OverAge62:query.getCheckboxInputValueById(f,n.FORM_DISABILITY_AGE_62_ID),IsBlind:query.getCheckboxInputValueById(f,n.FORM_DISABILITY_BLIND_ID),IsPermDisability:query.getCheckboxInputValueById(f,n.FORM_DISABILITY_PERMANENTLY_DISABLED_ID),Delegate:r}):null},lu=function(){dataLayer.push({event:"coned.form.success"});coned.utils.qualtricsTriggering(i);var t=query.getFormInputValue(h,n.FORM_START_DATE_NAME),r=$.datepicker.formatDate("MM dd, yy",new Date(t));ct&&(ct.innerHTML=ct.innerHTML.replace(n.SUCCESS_DATE_TOKEN,r));ki.style.display="none";oi.style.display="none";di.classList.add(n.STEP_FINISH_ACTIVE);gi.classList.add(n.FINISH_BAR_CLASS);query.removeClass(rt,n.HIDDEN_CLASS);query.removeClass(tt,n.HIDDEN_CLASS);tt.focus()},au=function(){var t=d.getElementsByClassName(n.ERROR_TEXT_SELECTOR)[0];d.classList.remove(n.HIDDEN_CLASS);d.focus();t.innerHTML=gt.errorMsg?gt.errorMsg:coned.constants.ERROR_MESSAGE},bt=function(){var t=query.getFormInputValue(u,n.FORM_EMAIL_NAME),i=query.getFormInputValue(u,n.FORM_PHONE_TYPE_NAME),r=query.getFormInputValue(u,n.FORM_PHONE_NUMBER_NAME),f=query.getFormInputValue(u,n.FORM_LIFE_SUPPORT_NAME),e=query.getFormInputValue(u,n.FORM_DISABILITY_NAME),o=t&&t.trim()!=="",s=i&&i.trim()!=="",h=r&&r.trim()!=="",c=f&&f.trim()!=="",l=e&&e.trim()!=="";o&&s&&h&&c&&l?dt.removeAttribute(n.DISABLED_ATTRIBUTE):dt.setAttribute(n.DISABLED_ATTRIBUTE,n.DISABLED_ATTRIBUTE)},vu=function(){ur.addEventListener(n.INPUT_EVENT,function(){bt()},!1);ht.addEventListener(n.CHANGE_EVENT,function(t){var i=t.currentTarget,r=i.value;bt();dataLayer.push({event:n.TAGGING_PHONE_TYPE,phone:r})},!1);fr.addEventListener(n.INPUT_EVENT,function(){bt()},!1);coned.utils.addParentListener(u,[n.CHANGE_EVENT],n.CONED_RADIO_SELECTOR,bt)},yu=function(n){var t=n.keyCode;t==coned.constants.KEY_CODE.ENTER&&ri(n)},pu=function(){r=document.getElementsByClassName(n.TRANSFER_SERVICE_SELECTOR)[0];oi=document.getElementsByClassName(n.TRANSFER_FORM_CLASS)[0];rt=document.getElementsByClassName(n.FINISH_STEP_SELECTOR)[0];st=document.getElementsByClassName(n.LOOKUP_BUTTON)[0];ct=document.getElementsByClassName(n.SUCCESS_BANNER_DATE)[0];bi=r.getElementsByClassName(n.NEXT_BUTTON);ki=document.getElementsByClassName(n.STEPS_LIST)[0];di=document.getElementsByClassName(n.STEP_FINISH)[0];gi=document.getElementsByClassName(n.STEP_PROGRESS_BAR)[0];nr=document.getElementsByClassName(n.ACCOUNT_PROFILE_SELECTOR)[0];si=r.getElementsByClassName(n.ADDRESS_BUTTON_RECEPTOR);hi=r.getElementsByClassName(n.MOVING_ADDRESS_1);ci=r.getElementsByClassName(n.MOVING_ADDRESS_2);ai=r.getElementsByClassName(n.CURRENT_ADDRESS_TITLE)[0];kt=r.getElementsByClassName(n.ADDRESS_CURRENT_DATE_CONTAIN)[0];a=r.getElementsByClassName(n.ADDRESS_NEXT_DATE_CONTAIN)[0];vi=r.getElementsByClassName(n.ADDRESS_CURRENT_DATE_RECEPTOR)[0];yi=r.getElementsByClassName(n.ADDRESS_NEXT_DATE_RECEPTOR)[0];li=r.getElementsByClassName(n.ADDRESS_LOOKUP_FORM)[0];it=r.getElementsByClassName(n.AUTOCOMPLETE_APARMENT_UNIT)[0];l=li.getElementsByClassName(n.AUTOCOMPLETE_SELECTED_ADDRESS_DETAIL)[0];pi=r.getElementsByClassName(n.PHONE_RECEPTOR)[0];rr=r.getElementsByClassName(n.PHONE_TITLE_RECEPTOR)[0];wi=r.getElementsByClassName(n.EDIT_ACCOUNT_INFORMATION);tr=r.getElementsByClassName(n.EMAIL_RECEPTOR)[0];v=r.getElementsByClassName(n.ADDRESS_STEP_SELECTOR)[0];h=r.getElementsByClassName(n.VERIFY_DATE_STEP_SELECTOR)[0];u=r.getElementsByClassName(n.ACCOUNT_PROFILE_STEP_SELECTOR)[0];k=r.getElementsByClassName(n.DIRECT_PAYMENT_STEP_SELECTOR)[0];o=r.getElementsByClassName(n.LIFE_SUPPORT_STEP_SELECTOR)[0];f=r.getElementsByClassName(n.DISABILITY_STEP_SELECTOR)[0];ir=r.getElementsByClassName(n.REVIEW_STEP_SELECTOR)[0];ut=r.getElementsByClassName(n.TRANSFER_DATE_ERROR_SELECTOR)[0];ft=r.getElementsByClassName(n.TRANSFER_STOP_DATE_ERROR_SELECTOR)[0];d=r.getElementsByClassName(n.TRANSFER_SERVICE_ERROR_SELECTOR)[0];et=r.getElementsByClassName(n.FORM_LOADING)[0];g=r.getElementsByClassName(n.ACCOUNT_DROPDOWN_ITEMS);y=r.getElementsByClassName(n.DROPDOWN_BUTTON)[0];e=r.getElementsByClassName(n.DATE_PICKER_INPUT)[0];c=document.getElementsByClassName(n.DATE_PICKER_NEXT_DATE)[0];ht=r.getElementsByClassName(n.PHONE_TYPE_SELECT)[0];p=r.getElementsByClassName(n.VALIDATE_BY_ADDRESS_ERROR)[0];or=r.getElementsByClassName(n.VALIDATE_BY_ADDRESS_ERROR)[0];dt=r.getElementsByClassName(n.PROFILE_SUBMIT_BUTTON)[0];ur=r.getElementsByClassName(n.EMAIL_INPUT_CLASS)[0];fr=r.getElementsByClassName(n.PHONE_INPUT_CLASS)[0];er=document.getElementsByClassName(n.HEADER)[0];tt=i.getElementsByClassName(n.TRANSFER_SERVICE_FINISH_MAIN)[0];ti=[];yt=i.dataset.isEletricityColdAmi},wu=function(){_.each(bi,function(n){coned.utils.addGeneralListeners(n,yr)});_.each(wi,function(t){coned.utils.addGeneralListeners(t,function(t){t.preventDefault();window.scrollTo(0,0);nr.click();$(n.TRANSFER_FORM)&&$(n.TRANSFER_FORM).focus()})});setTimeout(function(){$(kt).datepicker("option","minDate","1")},0);$(e).on("change",gr);$(n.ADDRESS_NEXT_DATE_CLASS).on("change",iu);ri();_.each(g,function(n){coned.utils.addGeneralListeners(n,ri);n.addEventListener("keydown",yu)});for(var t=0;g[t];t++)if(s=y.dataset.account,g[t].children[0].dataset.account===s){setTimeout(function(){query.fireEvent(g[t],"accountInContext")},500);break}it&&(it.addEventListener("selectedOptionEnd",lr),it.addEventListener("checkAddress",lr));tt.setAttribute(n.TABINDEX,"-1");new coned.components.ValidateForm(n.TRANSFER_FORM,function(){},n.VALIDATE_IGNORE);vu()},bu=function(){pu();wu();t=!0};bu()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.UnauthenticatedLogin=function(){var n={ACCOUNT_NUMBER_FORMS:"js-unauthenticated-login-account-number-form",CREDENTIALS_FORMS:"js-unauthenticated-login-credentials-form",ENTRY_RECOVERY_CODE_FORM:"js-entry-recovery-code-form",ENTRY_RECOVERY_CODE_FORM_WRAPPER:"js-entry-recovery-code-form-wrapper",MAIN_LOGIN_FORMS:"js-unauthenticated-login-forms",SEND_RECOVERY_FORM:"js-send-recovery-code-form",SEND_RECOVERY_FORM_WRAPPER:"js-send-recovery-code-form-wrapper",VERIFY_MFA_FORM:"js-unauthenticated-login-verify-mfa-form",VERIFY_MFA_WRAPPER:"js-unauthenticated-login-verify-mfa-wrapper",ACCOUNT_NUMBER_INPUT_NAME:"accountNumber",CREDENTIALS_EMAIL_NAME:"credentialsEmail",CREDENTIALS_PASSWORD_NAME:"credentialsPassword",CONFIRM_ACCOUNT_METHOD_RADIOS_NAME:"unauthenticatedLoginConfirmType",VERIFICATION_CODE_NAME:"verificationCode",VERIFY_MFA_CODE_INPUT_NAME:"unauthenticatedLoginMFACode",ACCOUNT_SCID_INPUT:"UnauthenticatedLoginAccountSCID",ACCOUNT_NUMBER_INPUT:"js-unauthenticated-login-account-number",CONFIRM_ACCOUNT_METHOD_RADIOS:"js-unauthenticated-login-confirm-type",CREDENTIALS_EMAIL_INPUT:"js-unauthenticated-login-email-input",CREDENTIALS_PASSWORD_INPUT:"js-unauthenticated-login-password-input",CREDENTIALS_EMAIL_NAME_MOBILE:"credentialsEmailM",CREDENTIALS_EMAIL_NAME_DESKTOP:"credentialsEmailD",MAID_INPUT:"UnauthenticatedLoginMAID",VERIFICATION_CODE_INPUT:"js-unathenticated-login-verification-code-input",VERIFY_MFA_CODE_INPUT:"js-unauthenticated-login-device-code-input",CONFIRM_ACCOUNT_SUBMIT:"js-unauthenticated-login-confirm-account-submit",RECOVERY_FORM_SUBMIT:"js-unauthenticated-login-recovery-form-submit",VERIFY_MFA_SUBMIT:"js-unauthenticated-login-verify-mfa-submit",ACCOUNT_INFO_CONTAINER:"js-unathenticated-login-account-info-container",ACCOUNT_NUMBER_ERROR:"js-account-number-service-error",ACCOUNT_NUMBER_ERROR_MESSAGE:"js-account-number-error-message",CALL_CUSTOMER_SERVICE:"js-unauthenticated-login-call-customer-service",CONFIRM_ACCOUNT_DIFFERENT_ACCOUNT:"js-unathenticated-login-different-account",CREDENTIALS_SHOW_PASSWORD:"js-credentials-show-password",CREDENTIALS_ERROR_MSG:"js-credentials-error-msg",RADIO_INPUT_CLASS:"js-coned-radio",RADIO_LABEL:"coned-radio__label-name",RECOVERY_EMAIL_OPTION:"js-email-option",RECOVERY_PHONE_OPTION:"js-phone-option",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",SUBMIT_ANIMATION_BUTTON:"js-submit-progress-animation",TRANSACTIONAL_SUBMIT_BUTTON_SELECTOR:"js-transactional-submit-selector",VERIFICATION_CODE_SEND_AGAIN:"js-unathenticated-login-send-code-again",VERIFY_MFA_CODE_LABEL:"js-unauthenticated-login-device-code-label",VERIFY_MFA_ERROR_MSG:"js-unauthenticated-login-verify-mfa-error-msg",VERIFY_MFA_NEW_DEVICE_INTRO:"js-unauthenticated-login-new-device-intro",UNAUTH_LOGIN_BUTTON:"js-unauth-login-button",EMAIL_MASK:"{{EMAIL}}",FROM_URI_PARAMETER_NAME:"fromURI",HIDDEN_CLASS:"hidden",FORM_IGNORE_VALIDATION:":hidden",INPUT_FILLED_CLASS:"coned-input--filled",INPUT_ERROR_CLASS:"coned-input-message--error",RELAY_STATE_PARAMETER_NAME:"RelayState",RETURN_URL_PARAMETER_NAME:"returnUrl",SITECORE_ID:"stopServiceScId",TELEPHONE_MASK:"{{TELEPHONE}}",TAGGING_ACCOUNT_NUMBER:"Account.Number",TAGGING_INTENT_START_FLOW:"Intent.Start.Flow",TAGGING_ACCOUNT_NUMBER_ERROR:"Account.Number.Error",TAGGING_CONFIRM_ACCOUNT_ERROR:"Confirm.Account.Error",TAGGING_CONFIRM_ACCOUNT_TRY_AGAIN:"Confirm.Account.Try.Again",TAGGING_CONFIRM_CHOOSE_DIFFERENT_ACCOUNT:"Choose.Different.Account",TAGGING_LOG_IN_TO_TRANSFER:"Log.In.To.Transfer",TAGGING_PREFIX:"Unauthenticated.",TAGGING_SUBMIT_ERROR:"Submit.Error",TAGGING_SUBMIT_SUCCESS:"Submit.Success",TAGGING_SEND_CODE_SUCCESS:"Send.Code",CAPTCHA_ELEMENT_CLASS:"js-recaptcha",LOGIN_SUCCESS_TAG:"Login.Success"},t=!1,i=function(i){var s,o,h,g,at,c,vt,rt,v,yt,ut,b,pt,wt,ft,et,bt,r,kt,dt,k,gt,ot,ni,ti,ii,y,st,nt,ri,ui,fi,ei,oi,f,e,l,p,u,si,a,hi=function(){dataLayer.push({event:n.LOGIN_SUCCESS_TAG})},w=function(t,i){t.length?_.each(t,function(t){t.innerHTML=i?i:coned.constants.ERROR_MESSAGE;t.parentElement.classList.remove(n.HIDDEN_CLASS);t.parentElement.style.display="block"}):(t.innerHTML=i?i:coned.constants.ERROR_MESSAGE,t.parentElement.classList.remove(n.HIDDEN_CLASS),t.parentElement.style.display="block")},ci=function(t){t.length?_.each(t,function(t){t.innerHTML="";t.parentElement.classList.add(n.HIDDEN_CLASS);t.parentElement.style.display="none"}):(t.innerHTML="",t.parentElement.classList.add(n.HIDDEN_CLASS),t.parentElement.style.display="none")},d=function(){_.each(nt,function(t){t.classList.add(n.HIDDEN_CLASS)})},pi=function(n){kt.disabled=n.target.value===""},wi=function(n){bt.disabled=n.target.value===""},bi=function(t){t.preventDefault();var u=t.currentTarget.parentElement.getElementsByClassName(n.CREDENTIALS_PASSWORD_INPUT)[0],f=u.type,i,r;f=="password"?_.each(b,function(n){n.type="text";r=t.currentTarget.dataset.replaceText;i=t.target;i.innerHTML=r}):_.each(b,function(n){n.type="password";r=t.currentTarget.dataset.text;i=t.target;i.innerHTML=r})},ht=function(t){if(t.length&&t.length>0)_.each(t,function(t){var i=t.getElementsByClassName(n.TRANSACTIONAL_SUBMIT_BUTTON_SELECTOR)[0];i.disabled=!$(t).validate().checkForm()});else{var i=t.getElementsByClassName(n.TRANSACTIONAL_SUBMIT_BUTTON_SELECTOR)[0];i.disabled=!$(t).validate().checkForm()}},ki=function(){function c(){query.postData(vt.dataset.newDeviceUrl,v,y,i,!0)}function l(){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_UNAUTHENTICATED_LOGIN_MFA,function(n){li(n,t)},function(){w(t,coned.constants.ERROR_MESSAGE)}):li(s,t)}function a(){w(t,coned.constants.ERROR_MESSAGE)}function v(n){s=n;l()}function y(){r.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS)}var f=rt,t=ei,i,u=coned.utils.getUrlParameterValue(n.RETURN_URL_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.RETURN_URL_PARAMETER_NAME):o[0].dataset.redirectUrl?o[0].dataset.redirectUrl:"",e=coned.utils.getUrlParameterValue(n.FROM_URI_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.FROM_URI_PARAMETER_NAME):"",h=coned.utils.getUrlParameterValue(n.RELAY_STATE_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.RELAY_STATE_PARAMETER_NAME):"",s;u===""&&(u=e);i={MFACode:query.getFormInputValue(f,n.VERIFY_MFA_CODE_INPUT_NAME),ReturnUrl:u,FromURI:e,OpenIdRelayState:h};i=JSON.stringify(i);ci(t);r=f.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];new coned.components.SubmitAnimation(r,c,function(){},a,!1,!0)},li=function(t,i){t.code?(dataLayer.push({event:u+n.TAGGING_LOG_IN_TO_TRANSFER}),it(t)):(r.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS),setTimeout(function(){w(i,t.codeErrorMsg)},1500))},di=function(t){function v(){query.postData(i.dataset.loginUrl,b,k,e,!0)}function y(){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_LOGIN,function(n){ai(i,n,u)},function(){w(u,coned.constants.ERROR_MESSAGE)}):ai(i,c,u)}function p(){w(u,coned.constants.ERROR_MESSAGE)}function b(n){c=n;y()}function k(){r.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS)}var i=query.hasClass(t,n.CREDENTIALS_FORMS)?t:query.selectParentElement(t.target,n.CREDENTIALS_FORMS),u=ii,e,l=query.getFormInputValue(i,n.CREDENTIALS_EMAIL_NAME+i.dataset.uiType).trim(),s=coned.utils.getUrlParameterValue(n.RETURN_URL_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.RETURN_URL_PARAMETER_NAME):o[0].dataset.redirectUrl?o[0].dataset.redirectUrl:"",h=coned.utils.getUrlParameterValue(n.FROM_URI_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.FROM_URI_PARAMETER_NAME):"",a=coned.utils.getUrlParameterValue(n.RELAY_STATE_PARAMETER_NAME)?coned.utils.getUrlParameterValue(n.RELAY_STATE_PARAMETER_NAME):"",c,f;s===""&&(s=h);f=new XMLHttpRequest;f.open("DELETE",i.dataset.logoutUrl);f.withCredentials=!0;f.setRequestHeader("Accept","application/json");f.send(null);e={LoginEmail:l,LoginPassword:query.getFormInputValue(i,n.CREDENTIALS_PASSWORD_NAME+i.dataset.uiType),LoginRememberMe:!1,ReturnUrl:s,FromURI:h,OpenIdRelayState:a};e=JSON.stringify(e);ci(u);r=i.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];new coned.components.SubmitAnimation(r,v,function(){},p,!1,!0)},ai=function(t,i,f){var o=rt,s=oi,e=ft,h=fi;if(i.login){if(i.noMfa){it(i);return}i.newDevice?(window.scrollTo(0,0),r.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS),s.innerText=i.newDeviceText,h.innerText=i.newDeviceInputLabel,i.isNumeric?(e.classList.add(n.INPUT_NUMBER),e.type="tel",e.pattern="[0-9]*"):(e.classList.remove(n.INPUT_NUMBER),e.type="text",e.patttern=""),new coned.components.FormValidationModule(o),g.classList.add(n.HIDDEN_CLASS),o.classList.remove(n.HIDDEN_CLASS)):(dataLayer.push({event:u+n.TAGGING_LOG_IN_TO_TRANSFER}),hi(),window.location.href=i.authRedirectUrl)}else r.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS),setTimeout(function(){w(f,i.loginErrorMsg)},1500)},gi=function(t){var i=query.hasClass(t,n.ACCOUNT_NUMBER_FORMS)?t:query.selectParentElement(t.target,n.ACCOUNT_NUMBER_FORMS);l=i.dataset.uiType==="D"?0:1;dataLayer.push({event:u+n.TAGGING_ACCOUNT_NUMBER});dataLayer.push({event:u+n.TAGGING_INTENT_START_FLOW});l?e.checkRecaptcha(i,!0,l):f.checkRecaptcha(i,!0,l)},tt=function(t){var i=query.hasClass(t,n.ACCOUNT_NUMBER_FORMS)?t:query.selectParentElement(t.target,n.ACCOUNT_NUMBER_FORMS);query.addClass(k,n.HIDDEN_CLASS);query.removeClass(v,n.INPUT_ERROR_CLASS);r=i.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];new coned.components.SubmitAnimation(r,nr,ir,tr,!1,!0)},nr=function(){d();var t,r=s[0].dataset.checkAccountService;t={ScId:query.getFormInputValue(i,n.SITECORE_ID),AddAccountScId:query.getFormInputValue(i,n.ACCOUNT_SCID_INPUT),AccountMaid:query.getFormInputValue(s[0],n.ACCOUNT_NUMBER_INPUT_NAME+s[0].dataset.uiType)};l?a&&e&&e.getResponse()!==""&&(t.Verify=e.getResponse()):a&&f&&f.getResponse()!==""&&(t.Verify=f.getResponse());t=JSON.stringify(t);query.postData(r,ct,lt,t,!0)},ct=function(n){p=n;r.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},lt=function(n){p=n;r.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS)},vi=function(){dataLayer.push({event:u+n.TAGGING_SUBMIT_ERROR});_.each(nt,function(t){t.classList.remove(n.HIDDEN_CLASS)});_.each(ri,function(n){n.innerHTML=p.errorMsg?p.errorMsg:coned.constants.ERROR_MESSAGE});nt[0].focus()},tr=function(){query.removeClass(k,n.HIDDEN_CLASS);_.each(k,function(n){n.style.display="block"});_.each(gt,function(n){n.style.display="block";n.innerHTML=n.dataset.errorMessage;n.focus()});l?a&&e&&e.getResponse()!==""&&e.reset():a&&f&&f.getResponse()!==""&&f.reset();dataLayer.push({event:u+n.TAGGING_ACCOUNT_NUMBER});dataLayer.push({event:u+n.TAGGING_ACCOUNT_NUMBER_ERROR});query.addClass(v,n.INPUT_ERROR_CLASS)},ir=function(){g.classList.add(n.HIDDEN_CLASS);c.classList.remove(n.HIDDEN_CLASS);_.each(dt,function(n){n.innerHTML=v[0].value});coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_ACCOUNT_MAID,yi,function(){}):yi(p)},yi=function(t){var r=t.PhoneNumber,u=t.Email,f;if(u){var e=y.getElementsByClassName(n.RADIO_INPUT_CLASS)[0],i=y.getElementsByClassName(n.RADIO_LABEL)[0],o=t.Email;i.innerHTML=y.dataset.placeholder;i.innerHTML=i.innerHTML.replace(n.EMAIL_MASK,o);e.checked=!1;y.classList.remove(n.HIDDEN_CLASS)}else y.classList.add(n.HIDDEN_CLASS);r?(f=t.PhoneNumber,_.each(st,function(t){var r=t.getElementsByClassName(n.RADIO_INPUT_CLASS)[0],i=t.getElementsByClassName(n.RADIO_LABEL)[0];i.innerHTML=t.dataset.placeholder;i.innerHTML=i.innerHTML.replace(n.TELEPHONE_MASK,f);r.checked=!1;t.classList.remove(n.HIDDEN_CLASS)})):_.each(st,function(t){t.classList.add(n.HIDDEN_CLASS)});u||r?ot.classList.add(n.HIDDEN_CLASS):ot.classList.remove(n.HIDDEN_CLASS);pt.value=t.MAID;et.disabled=!0},rr=function(){et.disabled=!1},ur=function(t){t.preventDefault();d();c.classList.remove(n.HIDDEN_CLASS);h.classList.add(n.HIDDEN_CLASS);dataLayer.push({event:u+n.TAGGING_CONFIRM_ACCOUNT_TRY_AGAIN})},fr=function(t){t.preventDefault();d();g.classList.remove(n.HIDDEN_CLASS);c.classList.add(n.HIDDEN_CLASS);h.classList.add(n.HIDDEN_CLASS);l?a&&e&&e.getResponse()!==""&&e.reset():a&&f&&f.getResponse()!==""&&f.reset();dataLayer.push({event:u+n.TAGGING_CONFIRM_CHOOSE_DIFFERENT_ACCOUNT})},er=function(){r=at.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];new coned.components.SubmitAnimation(r,or,sr,vi,!1,!0)},or=function(){d();var t,r=c.dataset.sendRecoveryCodeService,u=query.getFormInputValue(c,n.CONFIRM_ACCOUNT_METHOD_RADIOS_NAME);t={ScId:query.getFormInputValue(i,n.SITECORE_ID),AddAccountScId:query.getFormInputValue(i,n.ACCOUNT_SCID_INPUT),ConfirmType:u,MAID:query.getFormInputValue(i,n.MAID_INPUT)};t=JSON.stringify(t);query.postData(r,ct,lt,t,!0)},sr=function(){dataLayer.push({event:u+n.TAGGING_SEND_CODE_SUCCESS});c.classList.add(n.HIDDEN_CLASS);h.classList.remove(n.HIDDEN_CLASS)},hr=function(){r=h.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];new coned.components.SubmitAnimation(r,cr,lr,vi,!1,!0)},cr=function(){d();var t,r=h.dataset.entryRecoveryCodeService;t={ScId:query.getFormInputValue(i,n.SITECORE_ID),AddAccountScId:query.getFormInputValue(i,n.ACCOUNT_SCID_INPUT),SecurityCode:query.getFormInputValue(h,n.VERIFICATION_CODE_NAME),MAID:query.getFormInputValue(i,n.MAID_INPUT)};t=JSON.stringify(t);query.postData(r,ct,lt,t,!0)},lr=function(){coned.utils.isPatternLab()?query.getData(coned.plConstants.UNAUTHENTICATED_REDIRECT,it,function(){}):it(p)},it=function(n){hi();coned.accountData=n;coned.utils.triggerEvent(i,"account-available",n);n&&(n.redirectUrl||n.authRedirectUrl)?window.location.href=n.redirectUrl?n.redirectUrl:n.authRedirectUrl?n.authRedirectUrl:o[0].dataset.redirectUrl:(r.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS),coned.utils.triggerEvent(i,"login-success"))},ar=function(){s=i.getElementsByClassName(n.ACCOUNT_NUMBER_FORMS);o=i.getElementsByClassName(n.CREDENTIALS_FORMS);h=i.getElementsByClassName(n.ENTRY_RECOVERY_CODE_FORM_WRAPPER)[0];g=i.getElementsByClassName(n.MAIN_LOGIN_FORMS)[0];at=i.getElementsByClassName(n.SEND_RECOVERY_FORM)[0];c=i.getElementsByClassName(n.SEND_RECOVERY_FORM_WRAPPER)[0];vt=i.getElementsByClassName(n.VERIFY_MFA_FORM)[0];rt=i.getElementsByClassName(n.VERIFY_MFA_WRAPPER)[0];v=i.getElementsByClassName(n.ACCOUNT_NUMBER_INPUT);yt=i.getElementsByClassName(n.CONFIRM_ACCOUNT_METHOD_RADIOS);ut=i.getElementsByClassName(n.CREDENTIALS_EMAIL_INPUT);b=i.getElementsByClassName(n.CREDENTIALS_PASSWORD_INPUT);pt=document.getElementsByName(n.MAID_INPUT)[0];wt=i.getElementsByClassName(n.VERIFICATION_CODE_INPUT)[0];ft=i.getElementsByClassName(n.VERIFY_MFA_CODE_INPUT)[0];et=i.getElementsByClassName(n.CONFIRM_ACCOUNT_SUBMIT)[0];bt=i.getElementsByClassName(n.RECOVERY_FORM_SUBMIT)[0];kt=i.getElementsByClassName(n.VERIFY_MFA_SUBMIT)[0];dt=i.getElementsByClassName(n.ACCOUNT_INFO_CONTAINER);k=i.getElementsByClassName(n.ACCOUNT_NUMBER_ERROR);gt=i.getElementsByClassName(n.ACCOUNT_NUMBER_ERROR_MESSAGE);ot=i.getElementsByClassName(n.CALL_CUSTOMER_SERVICE)[0];ni=i.getElementsByClassName(n.CONFIRM_ACCOUNT_DIFFERENT_ACCOUNT);ti=i.getElementsByClassName(n.CREDENTIALS_SHOW_PASSWORD);ii=i.getElementsByClassName(n.CREDENTIALS_ERROR_MSG);y=i.getElementsByClassName(n.RECOVERY_EMAIL_OPTION)[0];st=i.getElementsByClassName(n.RECOVERY_PHONE_OPTION);nt=i.getElementsByClassName(n.SERVICE_ERROR);ri=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE);ui=i.getElementsByClassName(n.VERIFICATION_CODE_SEND_AGAIN)[0];fi=i.getElementsByClassName(n.VERIFY_MFA_CODE_LABEL)[0];ei=i.getElementsByClassName(n.VERIFY_MFA_ERROR_MSG)[0];oi=i.getElementsByClassName(n.VERIFY_MFA_NEW_DEVICE_INTRO)[0];si=document.getElementsByClassName(n.CAPTCHA_ELEMENT_CLASS);a=si.length;u=n.TAGGING_PREFIX+i.dataset.taggingPreffix;u=u+(u.substr(-1)==="."?"":".")},vr=function(){ft.addEventListener("input",pi);wt.addEventListener("input",wi);coned.utils.addGeneralListeners(ui,ur);_.each(ni,function(n){coned.utils.addGeneralListeners(n,fr)});_.each(ti,function(n){coned.utils.addGeneralListeners(n,bi)});_.each(yt,function(n){coned.utils.addGeneralListeners(n,rr)});_.each(v,function(t){t.addEventListener("input",function(t){query.addClass(k,n.HIDDEN_CLASS);_.each(v,function(i){i!==t.target&&(i.value=t.target.value,$(i).valid(),t.target.value===""?i.classList.remove(n.INPUT_FILLED_CLASS):i.classList.add(n.INPUT_FILLED_CLASS))});ht(s)})});_.each(ut,function(t){t.addEventListener("input",function(t){_.each(ut,function(i){i!==t.target&&(i.value=t.target.value,$(i).valid(),t.target.value===""?i.classList.remove(n.INPUT_FILLED_CLASS):i.classList.add(n.INPUT_FILLED_CLASS))});ht(o)})});_.each(b,function(t){t.addEventListener("input",function(t){_.each(b,function(i){i!==t.target&&(i.value=t.target.value,$(i).valid(),t.target.value===""?i.classList.remove(n.INPUT_FILLED_CLASS):i.classList.add(n.INPUT_FILLED_CLASS))});ht(o)})});new coned.components.ValidateForm("."+n.ACCOUNT_NUMBER_FORMS,gi,"");new coned.components.ValidateForm("."+n.CREDENTIALS_FORMS,di,"",!0);new coned.components.ValidateForm("."+n.VERIFY_MFA_FORM,ki,"");new coned.components.ValidateForm("."+n.SEND_RECOVERY_FORM,er,"");new coned.components.ValidateForm("."+n.ENTRY_RECOVERY_CODE_FORM,hr,"");var t=s[1],i=s[0];f=new coned.components.Recaptcha(i,tt,tt,!0);e=new coned.components.Recaptcha(t,tt,tt,!0)},yr=function(){ar();vr();t=!0};yr()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.UnenrollUnitsModule=function(){var n={HIDDEN_CLASS:"hidden",CHANGE_EVENT:"change",RESIZE_EVENT:"resize",DISABLED_ATTRIBUTE:"disabled",UNIT_LIST_STEP_CLASS:"js-step-unit-list",UNIT_LIST_CLEAR_CLASS:"js-unit-list-cancel",UNIT_LIST_SELECT_ALL_CLASS:"js-unit-list-select-all",UNIT_LIST_SUBMIT_CLASS:"js-unit-list-submit",UNIT_LIST_SUBMIT_NUMBER_CLASS:"js-unit-list-number",UNIT_LIST_UNITS_CLASS:"js-enroll-unit-list",UNIT_LIST_CHEKBOX_CLASS:"js-enroll-unit-checkbox",CONED_CHECKBOX_CHECK_CLASS:"coned-checkbox--checked",CONFIRMATION_STEP_CLASS:"js-step-confirmation",CONFIRMATION_SHOW_MORE_CLASS:"js-enroll-confirmation-show-more",CONFIRMATION_TEXT_CLASS:"js-enroll-confirmation-text",CONFIRMATION_TEXT_FULL_CLASS:"enroll-units-confirmation__list-text--visible",CONFIRMATION_CONFIRM_CLASS:"js-enroll-confirmation-button",CONFIRMATION_CANCEL_CLASS:"js-enroll-cancel-button",CONFIRMATION_ADDRESS_CLASS:"js-enroll-confirmation-address",CONFIRMATION_PARTY_CLASS:"js-enroll-confirmation-party",CONFIRMATION_NUMBER_CLASS:"js-enroll-confirmation-number",ANIMATION_STEP_CLASS:"js-step-animation",ANIMATION_SUBMIT_MODULE:"js-submit-progress-animation",ANIMATION_CURRENT_CLASS:"js-enroll-animation-current",ANIMATION_TOTAL_CLASS:"js-enroll-animation-total",ANIMATION_UNITS_TO_SEND:10,STATUS_STEP_CLASS:"js-step-status",STATUS_SUCCESS_CLASS:"js-enroll-status-success",STATUS_SUCCESS_LIST_CLASS:"js-enroll-status-success-list",STATUS_SUCCESS_NUMBER_CLASS:"js-enroll-status-success-number",STATUS_FAILED_CLASS:"js-enroll-status-failed",STATUS_FAILED_LIST_CLASS:"js-enroll-status-failed-list",STATUS_FAILED_NUMBER_CLASS:"js-enroll-status-failed-number",STATUS_ADDRESS_CLASS:"js-enroll-status-address",STATUS_SUCCESS_MORE_CLASS:"js-status-success-show-more",STATUS_FAILED_MORE_CLASS:"js-status-failed-show-more",STATUS_LIST_COMPLETE:"success-banner__span--visible",ARTICLE_HEADER_CLASS:"js-article-header",CONED_TABS_CLASS:"js-coned-tabs",PAGINATION_CLASS:"js-currently-enrolled-pagination",SLIDER_CLASS:"js-slider-panel",BOPA_STATUS_CLASS:"js-bopa-status",CURRENTLY_ENROLL_DESCRIPTION_CLASS:"js-currently-enrolled-description",CURRENTLY_ENROLL_CONTAINER_CLASS:"js-currently-enrolled-container",CURRENTLY_ENROLL_ITEM_CLASS:"js-currently-enrolled-item",CURRENTLY_ITEM_UNENROLL_CLASS:"currently-enrolled__item--unenroll",CURRENTLY_ITEM_OPEN_CLASS:"currently-enrolled__item--open",TAB_CLASS:"js-conedtab-section-enroll-units-section",HEADER_WRAPPER_CLASS:"js-header-wrapper"},t=!1,i=function(i){var o,ri,e,c,tt,ui,it,fi,et,ot,ei,st,ht,ct,lt,at,s,oi,u,v,l,si,hi,vt,yt,pt,ci,a,wt,rt,bt,f,li,kt,y,k,ai,dt,p,d,vi,yi,gt,ni,pi,ti,r,w,ut,g,nt,b,h,wi=function(){p&&(coned.utils.isEllipsisActive(p)?d.classList.remove(n.HIDDEN_CLASS):d.classList.add(n.HIDDEN_CLASS));y&&(coned.utils.isEllipsisActive(y)?k.classList.remove(n.HIDDEN_CLASS):k.classList.add(n.HIDDEN_CLASS));f.focus()},tr=function(){coned.utils.addGeneralListeners(k,function(n){bi(n,k,y)});coned.utils.addGeneralListeners(d,function(n){bi(n,d,p)})},bi=function(t,i,r){t.preventDefault();r.classList.add(n.STATUS_LIST_COMPLETE);i.classList.add(n.HIDDEN_CLASS)},ft=function(){var t={},i,u;r.length?(rt&&(ti?(ut=Math.floor(r.length/n.ANIMATION_UNITS_TO_SEND),u=r.length%n.ANIMATION_UNITS_TO_SEND,u>0&&ut++,g=Math.floor(100/ut),ti=!1,g!==100&&(nt+=g,rt.innerHTML="("+nt+"%)")):(nt+=g,rt.innerHTML="("+nt+"%)")),w=r.splice(0,n.ANIMATION_UNITS_TO_SEND),i=w.map(function(n){return n.id}),t={ParentMaid:yi,Children:i},t=JSON.stringify(t),query.deleteData(ci,ir,di,t,!0)):wt.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS)},ir=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.POST_ENROLL_UNIT_LIST,ki,di,null,!1):ki(n)},ki=function(n){var t,i;t=w.filter(function(t){return n.ProcessedUnits.indexOf(t.id)>-1});i=w.filter(function(t){return n.NotProcessedUnits.indexOf(t.id)>-1});b=b.concat(t);h=h.concat(i);coned.utils.isPatternLab()?setTimeout(function(){ft()},2e3):ft()},di=function(){h=h.concat(w);ft()},gi=function(){var t,i,r,u;Array.prototype.forEach.call(vi,function(n){n.innerHTML=ni});b.length&&(li.classList.remove(n.HIDDEN_CLASS),kt&&(kt.innerHTML=b.length),y&&(t=b.map(function(n){return n.name}),i=t.join(", "),y.innerHTML=i));h.length?(ai.classList.remove(n.HIDDEN_CLASS),dt&&(dt.innerHTML=h.length),p&&(r=h.map(function(n){return n.name}),u=r.join(", "),p.innerHTML=u),ur()):rr();a.classList.add(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);wi();coned.utils.scrollTo(0,0)},rr=function(){dataLayer.push({event:"lofll",lofll:"step3.2.1"})},ur=function(){dataLayer.push({event:"lofll",lofll:"step3.2.2"})},fr=function(){coned.utils.addGeneralListeners(v,er);coned.utils.addGeneralListeners(si,sr);coned.utils.addGeneralListeners(hi,hr)},er=function(t){t.preventDefault();query.addClass(l,n.CONFIRMATION_TEXT_FULL_CLASS);query.addClass(v,n.HIDDEN_CLASS)},or=function(){dataLayer.push({event:"lofll",lofll:"step3.1"})},sr=function(t){t.preventDefault();or();bt&&(bt.innerHTML=r.length);query.removeClass(a,n.HIDDEN_CLASS);query.addClass(u,n.HIDDEN_CLASS);coned.utils.scrollTo(0,0);cr();a.focus()},hr=function(t){t.preventDefault();var r=t.target,i=query.selectParentElement(r,n.CURRENTLY_ENROLL_ITEM_CLASS),f=i.getElementsByClassName(n.CURRENTLY_ENROLL_CONTAINER_CLASS)[0];s.forEach(function(t){query.removeClass(t,n.HIDDEN_CLASS)});Array.prototype.forEach.call(at,function(t){query.removeClass(t,n.HIDDEN_CLASS)});query.removeClass(i,n.CURRENTLY_ITEM_UNENROLL_CLASS);query.removeClass(f,n.HIDDEN_CLASS);u.classList.add(n.HIDDEN_CLASS);o.classList.remove(n.HIDDEN_CLASS);coned.utils.scrollTo(oi,10)},cr=function(){new coned.components.SubmitAnimation(wt,ft,gi,gi,!1,!1)},lr=function(){coned.utils.addGeneralListeners(c,br);coned.utils.addGeneralListeners(ri,vr);coned.utils.addParentListener(ui,[n.CHANGE_EVENT],n.UNIT_LIST_CHEKBOX_CLASS,yr);e.addEventListener(n.CHANGE_EVENT,ar)},ar=function(t){t.preventDefault();var u=t.target,i;r=[];u.checked?(i=Array.prototype.filter.call(it,function(t){var i=t.getAttribute(n.DISABLED_ATTRIBUTE);return i&&i==="disabled"?!1:!0}),query.addClass(e.parentElement,n.CONED_CHECKBOX_CHECK_CLASS),Array.prototype.forEach.call(i,function(t){var i={id:t.dataset.unitId,name:t.dataset.unitName};r.push(i);query.addClass(t.parentElement,n.CONED_CHECKBOX_CHECK_CLASS);t.checked=!0}),c.removeAttribute(n.DISABLED_ATTRIBUTE)):(query.removeClass(e.parentElement,n.CONED_CHECKBOX_CHECK_CLASS),Array.prototype.forEach.call(it,function(t){query.removeClass(t.parentElement,n.CONED_CHECKBOX_CHECK_CLASS);t.checked=!1}),c.setAttribute(n.DISABLED_ATTRIBUTE,!0));ii()},vr=function(t){t.preventDefault();r=[];Array.prototype.forEach.call(it,function(t){query.removeClass(t.parentElement,n.CONED_CHECKBOX_CHECK_CLASS);t.checked=!1});e&&(e.checked=!1,query.removeClass(e.parentElement,n.CONED_CHECKBOX_CHECK_CLASS));c.setAttribute(n.DISABLED_ATTRIBUTE,!0);ii()},yr=function(t,i){i.preventDefault();var u=t,o=u.dataset.unitId,f,s;u.checked?(s={id:o,name:u.dataset.unitName},r.push(s)):(f=r.findIndex(function(n){return n.id==o}),f>-1&&r.splice(f,1),e&&(e.checked=!1,query.removeClass(e.parentElement,n.CONED_CHECKBOX_CHECK_CLASS)));r.length===0?c.setAttribute(n.DISABLED_ATTRIBUTE,!0):c.removeAttribute(n.DISABLED_ATTRIBUTE);ii()},ii=function(){tt&&(tt.innerHTML=r.length?"("+r.length+")":"")},pr=function(){var t,i;l&&(t=r.map(function(n){return n.name}),i=t.join(", "),l.innerHTML=i,query.removeClass(l,n.CONFIRMATION_TEXT_FULL_CLASS));vt&&(vt.innerHTML=ni);yt&&(yt.innerHTML=pi);pt&&(pt.innerHTML="("+r.length+")");query.removeClass(v,n.HIDDEN_CLASS)},nr=function(){l&&(coned.utils.isEllipsisActive(l)?v.classList.remove(n.HIDDEN_CLASS):v.classList.add(n.HIDDEN_CLASS))},wr=function(){dataLayer.push({event:"lofll",lofll:r.length})},br=function(t){t.preventDefault();var e,i,f;r.length&&(e=t.target,i=query.selectParentElement(e,n.CURRENTLY_ENROLL_ITEM_CLASS),f=i.getElementsByClassName(n.CURRENTLY_ENROLL_CONTAINER_CLASS)[0],at=ei.querySelectorAll("."+n.CURRENTLY_ENROLL_ITEM_CLASS+":not(."+n.HIDDEN_CLASS+"):not(."+n.CURRENTLY_ITEM_OPEN_CLASS+")"),oi=f.offsetTop-fi.offsetHeight,wr(),pr(),u.classList.remove(n.HIDDEN_CLASS),o.classList.add(n.HIDDEN_CLASS),u.focus(),s.forEach(function(t){query.addClass(t,n.HIDDEN_CLASS)}),Array.prototype.forEach.call(at,function(t){query.addClass(t,n.HIDDEN_CLASS)}),query.addClass(i,n.CURRENTLY_ITEM_UNENROLL_CLASS),query.addClass(f,n.HIDDEN_CLASS),nr(),coned.utils.scrollTo(0,0))},kr=function(){ci=i.dataset.unitsService;yi=i.dataset.parentMaid;ni=i.dataset.address;pi=i.dataset.party;ti=!0;r=[];w=[];ut=0;g=0;nt=0;b=[];h=[];s=[];fi=document.getElementsByClassName(n.HEADER_WRAPPER_CLASS)[0];et=document.getElementsByClassName(n.ARTICLE_HEADER_CLASS)[0];ot=document.getElementsByClassName(n.CONED_TABS_CLASS)[0];ct=document.getElementsByClassName(n.SLIDER_CLASS)[0];ei=query.selectParentElement(i,n.TAB_CLASS);st=document.getElementsByClassName(n.PAGINATION_CLASS)[0];ht=document.getElementsByClassName(n.CURRENTLY_ENROLL_DESCRIPTION_CLASS)[0];lt=document.getElementsByClassName(n.BOPA_STATUS_CLASS)[0];et&&s.push(et);ot&&s.push(ot);st&&s.push(st);ht&&s.push(ht);ct&&s.push(ct);lt&&s.push(lt);o=i.getElementsByClassName(n.UNIT_LIST_STEP_CLASS)[0];ri=o.getElementsByClassName(n.UNIT_LIST_CLEAR_CLASS)[0];e=o.getElementsByClassName(n.UNIT_LIST_SELECT_ALL_CLASS)[0];c=o.getElementsByClassName(n.UNIT_LIST_SUBMIT_CLASS)[0];tt=o.getElementsByClassName(n.UNIT_LIST_SUBMIT_NUMBER_CLASS)[0];ui=o.getElementsByClassName(n.UNIT_LIST_UNITS_CLASS)[0];it=o.getElementsByClassName(n.UNIT_LIST_CHEKBOX_CLASS);u=i.getElementsByClassName(n.CONFIRMATION_STEP_CLASS)[0];v=u.getElementsByClassName(n.CONFIRMATION_SHOW_MORE_CLASS)[0];si=u.getElementsByClassName(n.CONFIRMATION_CONFIRM_CLASS)[0];hi=u.getElementsByClassName(n.CONFIRMATION_CANCEL_CLASS)[0];l=u.getElementsByClassName(n.CONFIRMATION_TEXT_CLASS)[0];vt=u.getElementsByClassName(n.CONFIRMATION_ADDRESS_CLASS)[0];yt=u.getElementsByClassName(n.CONFIRMATION_PARTY_CLASS)[0];pt=u.getElementsByClassName(n.CONFIRMATION_NUMBER_CLASS)[0];a=i.getElementsByClassName(n.ANIMATION_STEP_CLASS)[0];wt=a.getElementsByClassName(n.ANIMATION_SUBMIT_MODULE)[0];rt=a.getElementsByClassName(n.ANIMATION_CURRENT_CLASS)[0];bt=a.getElementsByClassName(n.ANIMATION_TOTAL_CLASS)[0];f=i.getElementsByClassName(n.STATUS_STEP_CLASS)[0];li=f.getElementsByClassName(n.STATUS_SUCCESS_CLASS)[0];kt=f.getElementsByClassName(n.STATUS_SUCCESS_NUMBER_CLASS)[0];y=f.getElementsByClassName(n.STATUS_SUCCESS_LIST_CLASS)[0];ai=f.getElementsByClassName(n.STATUS_FAILED_CLASS)[0];dt=f.getElementsByClassName(n.STATUS_FAILED_NUMBER_CLASS)[0];p=f.getElementsByClassName(n.STATUS_FAILED_LIST_CLASS)[0];vi=f.getElementsByClassName(n.STATUS_ADDRESS_CLASS);k=f.getElementsByClassName(n.STATUS_SUCCESS_MORE_CLASS)[0];d=f.getElementsByClassName(n.STATUS_FAILED_MORE_CLASS)[0]},dr=function(){window.addEventListener(n.RESIZE_EVENT,gr,!1);lr();fr();tr()},gr=function(){gt||(gt=setTimeout(function(){gt=null;nr();wi()},66))},nu=function(){kr();dr();t=!0};nu()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.UnlockAccount=function(){var n={FORM_CLASS_SELECTOR:".js-unlock-form",SELECT_WIDTH_DROPDOWN:"js-coned-select",EMAIL_SELECTOR_CONTAINER:"js-email-selector",PHONE_SELECTOR_CONTAINER:"js-phone-selector",SMS_MESSAGE_CONTIANER:"js-message-selector",DISPLAY_CLASS:"transactional--finish",SUBMIT_BUTTON_SELECTOR:"js-transactional-submit-selector",INPUT_CLASS_SELECTOR:"js-coned-input",FORM_IGNORE_VALIDATION:"js-validation-ignore",FINISH_STEP_SELECTOR:"js-finish-step-selector",FINISH_STEP_CLASS:"transactional--finish",FINISH_MESSAGE_SELECTOR:"js-sucess-receptor",SUBMIT_ANIMATION_BUTTON:"js-submit-progress-animation",FINISH_MESSAGE_CONTAINER:"js-data-message",FIRST_STEP_FORM:"js-first-step-form",CODE_VERIFICATION_FORM:"js-code-verification-code",UNLOCK_PASSWORD_FORM:"js-unlock-password",UNLOCK_PASSWORD_SELECTOR:"js-unlock-password-selector",REVERT_UNLOCK_SELECTOR:"js-revert-unlock-selector",SECURITY_QUESTION_CONTAINER:"js-security-container",SECURITY_QUESTION:"js-security-question",SECURITY_ANSWER:"js-security-answer",UNLOCK_ERROR:"js-unlock-error",UNLOCK_ERROR_MESSAGE:"js-unlock-error-message",UNLOCK_DESCRIPTION:"js-unlock-description",HIDDEN_CLASS:"hidden",SMS_OPTION:"sms",EMAIL_OPTION:"email",UNLOCK_QUESTION_INPUT:"unlockSecurityQuestion",UNLOCK_EMAIL_INPUT:"unlockEmail",UNLOCK_VERIFICATION_CODE_INPUT:"verificationCode",UNLOCK_VIA:"js-unlock-via",UNLOCK_ALTERNATIVE:"js-unlock-alternative",UNLOCK_SITECORE_ID:"ScId"},r=!1,t=!1,i=!1,u=function(u){var h,rt,y,ut,ft,p,w,c,b,k,e,l,et,a,f,ot,st,o,d,g,s,v,at=function(i){i.preventDefault();var r=e.getElementsByClassName(n.INPUT_CLASS_SELECTOR)[0];t=!1;k.classList.remove(n.HIDDEN_CLASS);e.classList.add(n.HIDDEN_CLASS);r.classList.add(n.FORM_IGNORE_VALIDATION)},vt=function(){h.value==n.SMS_OPTION?(query.removeClass(y,n.HIDDEN_CLASS),g.innerHTML=n.EMAIL_OPTION,_.each(d,function(t){t.innerHTML=n.SMS_OPTION})):(query.addClass(y,n.HIDDEN_CLASS),g.innerHTML=n.SMS_OPTION,_.each(d,function(t){t.innerHTML=n.EMAIL_OPTION}));ut.disabled=!1},yt=function(){var r,f=u.dataset.initiateService,e=u.dataset.smsService,o=u.dataset.questionService,s=h.value;st.classList.add(n.HIDDEN_CLASS);t?i?(r={questionAnswer:query.getFormInputValue(u,n.UNLOCK_QUESTION_INPUT),ScId:query.getFormInputValue(u,n.UNLOCK_SITECORE_ID)},r=JSON.stringify(r),query.postData(o,nt,tt,r,!0)):(r={PassCode:query.getFormInputValue(u,n.UNLOCK_VERIFICATION_CODE_INPUT),ScId:query.getFormInputValue(u,n.UNLOCK_SITECORE_ID)},r=JSON.stringify(r),query.postData(e,nt,tt,r,!0)):(r={email:query.getFormInputValue(u,n.UNLOCK_EMAIL_INPUT),unlockWithFactor:s,ScId:query.getFormInputValue(u,n.UNLOCK_SITECORE_ID)},r=JSON.stringify(r),query.postData(f,nt,tt,r,!0))},nt=function(n){c.classList.add(coned.constants.SUCCESS_SERVICE_RESPONSE_CLASS);s=n},tt=function(n){c.classList.add(coned.constants.ERROR_SERVICE_RESPONSE_CLASS);s=n},pt=function(){if(it(),coned.utils.isPatternLab()){var n=coned.plConstants.INITIATE_FORGET_PASSWORD;query.getData(n,ht,function(){})}else ht(s)},ht=function(i){if(i&&i.success){var r=e.getElementsByClassName(n.INPUT_CLASS_SELECTOR)[0];t=!0;k.classList.add(n.HIDDEN_CLASS);e.classList.remove(n.HIDDEN_CLASS);r.classList.remove(n.FORM_IGNORE_VALIDATION)}else f.classList.remove(n.HIDDEN_CLASS),o.innerHTML=i.errorMsg,f.focus()},wt=function(){if(it(),coned.utils.isPatternLab()){var n=coned.plConstants.GET_ANSWER_VERIFICATION;query.getData(n,ct,function(){})}else ct(s)},ct=function(t){t&&t.success?(l.classList.add(n.HIDDEN_CLASS),a.classList.add(n.FORM_IGNORE_VALIDATION),f.classList.add(n.HIDDEN_CLASS),dt()):(l.classList.remove(n.HIDDEN_CLASS),a.classList.remove(n.FORM_IGNORE_VALIDATION),f.classList.remove(n.HIDDEN_CLASS),o.innerHTML=t.errorMsg,f.focus())},bt=function(){if(it(),coned.utils.isPatternLab()){var n=coned.plConstants.GET_QUESTION_UNLOCK_ACCOUNT;query.getData(n,lt,function(){})}else lt(s)},lt=function(t){t&&t.success?(e.classList.add(n.HIDDEN_CLASS),f.classList.add(n.HIDDEN_CLASS),l.classList.remove(n.HIDDEN_CLASS),a.classList.remove(n.FORM_IGNORE_VALIDATION),et.innerHTML=t.recoveryQuestion,i=!0):(e.classList.remove(n.HIDDEN_CLASS),f.classList.remove(n.HIDDEN_CLASS),o.innerHTML=t.errorMsg,f.focus())},kt=function(){f.classList.remove(n.HIDDEN_CLASS);o.innerHTML=s.errorMsg;f.focus()},it=function(){f.classList.add(n.HIDDEN_CLASS);o.innerHTML=""},dt=function(){var t,i,r;u.style.display="none";h.value==n.SMS_OPTION?(i=b.dataset.sms,t=i,w.innerHTML=t):(r=b.dataset.email,t=r,t=t.replace("@DATA","<b>"+ft.value+"<\/b>"));p.classList.remove(n.FINISH_STEP_CLASS);w.innerHTML=t},gt=function(){v=t?i?wt:bt:pt;new coned.components.SubmitAnimation(c,yt,v,kt,!1,!0)},ni=function(){h=u.getElementsByClassName(n.SELECT_WIDTH_DROPDOWN)[0];rt=u.getElementsByClassName(n.EMAIL_SELECTOR_CONTAINER)[0];y=u.getElementsByClassName(n.SMS_MESSAGE_CONTIANER)[0];ut=u.getElementsByClassName(n.SUBMIT_BUTTON_SELECTOR)[0];ft=rt.getElementsByClassName(n.INPUT_CLASS_SELECTOR)[0];p=document.getElementsByClassName(n.FINISH_STEP_SELECTOR)[0];w=p.getElementsByClassName(n.FINISH_MESSAGE_SELECTOR)[0];c=u.getElementsByClassName(n.SUBMIT_ANIMATION_BUTTON)[0];b=u.getElementsByClassName(n.FINISH_MESSAGE_CONTAINER)[0];k=u.getElementsByClassName(n.FIRST_STEP_FORM)[0];e=u.getElementsByClassName(n.CODE_VERIFICATION_FORM)[0];ot=u.getElementsByClassName(n.REVERT_UNLOCK_SELECTOR)[0];l=u.getElementsByClassName(n.SECURITY_QUESTION_CONTAINER)[0];a=u.getElementsByClassName(n.SECURITY_ANSWER)[0];et=u.getElementsByClassName(n.SECURITY_QUESTION)[0];f=u.getElementsByClassName(n.UNLOCK_ERROR)[0];o=u.getElementsByClassName(n.UNLOCK_ERROR_MESSAGE)[0];st=u.getElementsByClassName(n.UNLOCK_DESCRIPTION)[0];d=u.getElementsByClassName(n.UNLOCK_VIA);g=u.getElementsByClassName(n.UNLOCK_ALTERNATIVE)[0]},ti=function(){h.addEventListener("change",vt);coned.utils.addGeneralListeners(ot,at);new coned.components.ValidateForm(n.FORM_CLASS_SELECTOR,gt)},ii=function(){ni();ti();r=!0};ii()};return u.prototype.isLoaded=function(){return r},u}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.UnsupportedBrowserBanner=function(){var n={UA_OPERA:"opr",UA_OPERA_LEGACY:"opera",UA_EDGE:"edg/",UA_EDGE_LEGACY:"edge",UA_CHROME:"chrome",UA_SAFARI:"safari",UA_FIREFOX:"firefox",UA_SEAMONKEY:"seamonkey",UA_CHROMIUM:"chromium",UA_IE:"trident",BROWSER_OPERA:"opera",BROWSER_OPERA_LEGACY:"operalegacy",BROWSER_EDGE:"edge",BROWSER_EDGE_LEGACY:"edgelegacy",BROWSER_CHROME:"chrome",BROWSER_SAFARI:"safari",BROWSER_FIREFOX:"firefox",BROWSER_IE:"ie",BROWSER_OTHER:"other",VERSION_STRING:"version",HIDDEN_CLASS:"hidden",VERTICAL_LINE_STRING:"|",COLON_STRING:":"},t=!1,i=function(i){var u,r,a,s,h,f,e,o,c,l,v=function(){var t,i;switch(!0){case u.indexOf(n.UA_OPERA_LEGACY)>-1:t=n.BROWSER_OPERA_LEGACY;i=n.UA_OPERA_LEGACY;break;case u.indexOf(n.UA_OPERA)>-1:t=n.BROWSER_OPERA;i=n.UA_OPERA;break;case u.indexOf(n.UA_EDGE_LEGACY)>-1:t=n.BROWSER_EDGE_LEGACY;i=n.UA_EDGE_LEGACY;break;case u.indexOf(n.UA_EDGE)>-1:t=n.BROWSER_EDGE;i=n.UA_EDGE;break;case u.indexOf(n.UA_CHROME)>-1&&u.indexOf(n.UA_CHROMIUM)===-1&&u.indexOf(n.UA_EDGE)===-1:t=n.BROWSER_CHROME;i=n.UA_CHROME;break;case u.indexOf(n.UA_SAFARI)>-1&&u.indexOf(n.UA_CHROME)===-1&&u.indexOf(n.UA_CHROMIUM)===-1:t=n.BROWSER_SAFARI;i=n.UA_SAFARI;break;case u.indexOf(n.UA_FIREFOX)>-1&&u.indexOf(n.UA_SEAMONKEY)===-1:t=n.BROWSER_FIREFOX;i=n.UA_FIREFOX;break;case u.indexOf(n.UA_IE)>-1:t=n.BROWSER_IE;i=n.UA_IE;break;default:t=n.BROWSER_OTHER}return[t,i]},y=function(){var t,i;if(r===n.BROWSER_IE||r===n.BROWSER_OPERA_LEGACY||r===n.BROWSER_OTHER)return i=null;if(r===n.BROWSER_OPERA||r===n.BROWSER_EDGE_LEGACY||r===n.BROWSER_CHROME||r===n.BROWSER_FIREFOX||r===n.BROWSER_EDGE)try{t=new RegExp("(?:"+a+")/?([0-9]+)","i")}catch(f){t=null}else if(r===n.BROWSER_SAFARI)try{t=new RegExp("(?:"+n.VERSION_STRING+")/([0-9]+)","i")}catch(f){t=null}try{return i=u.match(t)[1],parseInt(i)}catch(f){return i=null}},p=function(){return i.dataset.browsersBlacklistVersions?i.dataset.browsersBlacklistVersions.split(n.VERTICAL_LINE_STRING):null},w=function(){return i.dataset.browsersHideBannerList?i.dataset.browsersHideBannerList.split(n.VERTICAL_LINE_STRING):null},b=function(){for(var n=0;n<e.length;n++)if(r===e[n].toLowerCase())return!0;return!1},k=function(){return i.dataset.browsersShowBannerList?i.dataset.browsersShowBannerList.split(n.VERTICAL_LINE_STRING):null},d=function(){for(var t=0;t<o.length;t++)if(r===o[t].toLowerCase())return query.removeClass(i,n.HIDDEN_CLASS),!0;return!1},g=function(){var u,e,o,t;if(r===n.BROWSER_IE||r===n.BROWSER_OPERA_LEGACY){query.removeClass(i,n.HIDDEN_CLASS);return}for(t=0;t<f.length;t++)if(u=f[t].split(n.COLON_STRING),e=u[0].toLowerCase(),o=parseInt(u[1].toLowerCase()),r&&r===e){h&&h<o&&query.removeClass(i,n.HIDDEN_CLASS);return}},nt=function(){u=navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase();s=v();r=s[0];a=s[1];h=y();e=w();c=e&&b();o=k();l=o&&d();f=!c&&!l&&p()},tt=function(){c||l||!f||g()},it=function(){nt();tt();t=!0};it()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.UsageChart=function(){var n={CONED_ENERGY_USAGE:"energy-usage",USAGE_TAB:"js-usageTab",CONED_CHART_DATA_MAID:"data-maid",CONED_HIDDEN_CLASS:"hidden",USAGE_CONTENT:".js-usage-chart"},t=!1,i=function(){var i,r,u,f=function(){UsageGraph.init(n.USAGE_CONTENT,u);coned.utils.removeMultipleListeners(i,coned.utils.generalEvents(),f)},e=function(){i=document.getElementsByClassName(n.USAGE_TAB)[0];r=document.getElementsByClassName(n.CONED_ENERGY_USAGE)[0];u=r.getAttribute(n.CONED_CHART_DATA_MAID)},o=function(){coned.utils.addGeneralListeners(i,f)},s=function(){e();o();t=!0};s()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.UsageHistory=function(){var n={ITEM_CLASS:"js-item",ITEM_LINK_CLASS:"js-item-link",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_MESSAGE:"js-error-message",ACCOUNT_MAID:"accountMaid",HIDDEN_CLASS:"hidden",FORM_LOADING:"js-form-loading",USAGE_LOAD_MORE_MODULE:"js-load-more-module",USAGE_HISTORY_WRAPPER_SELECTOR:"js-usage-history-wrapper"},t=!1,i=function(i){var f,r,c,e,u,o,l,y=function(t){t.preventDefault();var s=query.selectParentElement(t.target,n.ITEM_CLASS),h=i.dataset.linkService,f;u=query.selectParentElement(t.target,n.ITEM_LINK_CLASS);r=s.getElementsByClassName(n.SERVICE_ERROR)[0];r.classList.add(n.HIDDEN_CLASS);f={Maid:query.getFormInputValue(document,n.ACCOUNT_MAID),ScId:i.dataset.scid,Type:u.dataset.type,StartDate:u.dataset.startDate,EndDate:u.dataset.endDate,TimeStamp:u.dataset.timestamp};o=window.open();query.getData(h,p,v,f,e)},p=function(){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_LINK,a,v):a()},a=function(){o.location.href=u.href},v=function(t){var i=r.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];o.close();r.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE;r.focus()},w=function(){var t=i.dataset.serviceUrl,n;n={ScId:i.dataset.scid,AccountMaid:i.dataset.accountMaid,AccountNumber:i.dataset.accountNumber,ShowMoreInitialLoad:i.dataset.initialLoad,ShowMoreLoadNumberPerClick:i.dataset.loadMore};n=JSON.stringify(n);query.postData(t,b,s,n,!0,e)},b=function(n){coned.utils.isPatternLab()?i.dataset.oruPatternlabEnergyUsageRtpPage?query.getData(coned.plConstants.GET_USAGE_HISTORY_TABLE_ORU_ENERGY_USAGE_HTML,h,s):query.getData(coned.plConstants.GET_USAGE_HISTORY_TABLE_ORU_HTML,h,s):h(n)},s=function(t){var r=i.getElementsByClassName(n.SERVICE_ERROR)[0],u=r.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];r.classList.remove(n.HIDDEN_CLASS);u.innerHTML=t&&t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE},h=function(t){i.innerHTML=t;c=i.getElementsByClassName(n.USAGE_LOAD_MORE_MODULE)[0];f=i.getElementsByClassName(n.ITEM_LINK_CLASS);r=i.getElementsByClassName(n.SERVICE_ERROR)[0];new coned.components.LoadMore(c,l);for(var u=0;u<f.length;u++)coned.utils.addGeneralListeners(f[u],y)},k=function(){e=document.getElementsByClassName(n.FORM_LOADING)[0];l=query.selectParentElement(i,n.USAGE_HISTORY_WRAPPER_SELECTOR)},d=function(){w()},g=function(){k();d();t=!0};g()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ValidateForm=function(){var n={CHECKBOX_CONTAINER:"coned-checkbox__container--flex",ERROR_WRAPPER_CLASS:"coned-field-error-wrapper",ARIA_LIVE_CLASS:"js-aria-live-errors",INPUT_MESSAGE_ERROR_CLASS:"coned-input-message--error",ARIA_LABEL:"aria-label",ROLE:"role",VALUE_IMG:"img",ARIA_INVALID_ATTR:"aria-invalid",PAYMENT_METHOD_CLASS:"js-payment-method",FALSE_VALUE:"false",NONE_VALUE:"none",CHANGE_EVENT:"change"},i=!1,r=function(t,i,r,u){var f={errorElement:"span",wrapper:"div",errorClass:n.INPUT_MESSAGE_ERROR_CLASS,ignore:r,invalidHandler:function(n,t){var i=t.errorList,r=i[0];setTimeout(function(){r.element.focus()},0)},errorPlacement:function(t,i){var f=query.hasClass(i[0],n.PAYMENT_METHOD_CLASS),u,r;query.hasClass(i[0],n.ARIA_LIVE_CLASS)&&t[0].setAttribute("aria-live","polite");t.addClass(n.ERROR_WRAPPER_CLASS);i.attr("type")=="checkbox"&&query.hasClass(i.parent().parent()[0],n.CHECKBOX_CONTAINER)?t.insertBefore(i.parent().parent()):i.attr("type")=="radio"||i.attr("type")=="checkbox"?t.insertBefore(i.parent()):i.is("select")&&f?(t.insertAfter(i.parent()),u=function(){t[0].style.display=n.NONE_VALUE;query.removeClass(i,n.INPUT_MESSAGE_ERROR_CLASS);i[0].setAttribute(n.ARIA_INVALID_ATTR,n.FALSE_VALUE)},setTimeout(function(){u()},0),i[0].addEventListener(n.CHANGE_EVENT,u)):t.insertAfter(i.parent());r=document.createElement("span");r.classList.add(n.INPUT_MESSAGE_ERROR_CLASS);r.setAttribute(n.ARIA_LABEL,i[0].dataset.iconErrorTe||coned.constants.ICON_ERROR_MESSAGE);r.setAttribute(n.ROLE,n.VALUE_IMG);t[0].insertBefore(r,t[0].childNodes[0])},submitHandler:function(n){i(n)}};return u&&(f.onkeyup=!1),$(t).validate(f)},t=function(n,t,u,f){var e=function(){$(n).each(function(){r(this,t,u,f)})},o=function(){e();i=!0};o()};return t.prototype.isLoaded=function(){return i},t.isFormValid=function(n,t,i,u){var f=r(n,t,i,u);return f.checkForm()},t}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ValidateImage=function(){var n=!1,t=function(t){var u,i,r,f=function(){r=new Image;r.onerror=e;r.src=i},e=function(){t.setAttribute("src",u)},o=function(){u=t.dataset.imageDefault;i=t.getAttribute("src",i)},s=function(){f()},h=function(){o();s();n=!0};h()};return t.prototype.isLoaded=function(){return n},t}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.VideoModule=function(){var n={VIDEO_PLAYER:"js-video-player",VIDEO_LIST_WRAPPER:"js-videos-wrapper",VIDEO_TITLE:"js-video-title",VIDEO_DESCRIPTION:"js-video-description",VIDEO_DESCRIPTION_PARAGRAPH:"js-video-paragraph",VIDEO_ITEM_CLASS:"coned-video__video-item",VIDEO_THUMBNAIL_SELECTOR:"js-video-item",VIDEO_THUMBNAIL_CLASS:"coned-video__video-item-thumbnail",VIDEO_ACTIVE_CLASS:"coned-video--video-item--active",THUMBNAIL_ACTIVE_CLASS:"coned-video__thumbnail--active ",DISABLE_STATE:"gallery__button--disable",CONTROLS_SELECTOR:"js-list-controls",NEXT_BUTTON:".js-next",PREV_BUTTON:".js-prev",SHORT_LIST_MODIFIER:"coned-video__video-item--shortlist",MAX_DESCRIPTION:"230",DESCRIPTION_ELLIPSIS_CLASS:"coned-video__paragraph--ellipsis",DESCRIPTION_OPEN_CLASS:"coned-video__description--open"},t=!1,i=function(i){var s,h,f,r,u,c,e,o=function(){var t=u.offsetHeight;t>n.MAX_DESCRIPTION?(r.classList.add(n.DESCRIPTION_ELLIPSIS_CLASS),coned.utils.addGeneralListeners(r,a),window.addEventListener("resize",v)):r.classList.remove(n.DESCRIPTION_ELLIPSIS_CLASS)},a=function(t){t!=undefined&&t.preventDefault();r.classList.toggle(n.DESCRIPTION_OPEN_CLASS);var u=query.hasClass(r,n.DESCRIPTION_OPEN_CLASS),f=u?i.offsetHeight-160:n.MAX_DESCRIPTION;TweenMax.to(r,.4,{maxHeight:f})},v=function(){query.hasClass(r,n.DESCRIPTION_OPEN_CLASS)&&(r.classList.toggle(n.DESCRIPTION_OPEN_CLASS),TweenMax.to(r,.4,{maxHeight:n.MAX_DESCRIPTION}))},l=function(n){var t,i;if(n)return t=n.longDescription?n.longDescription:"",i=n.description?n.description:"",t?t:i},y=function(){var t=i.querySelectorAll("[data-video-id]")[0],r=t.dataset.videoId,s="video-"+r,n;videojs(s).one("loadedmetadata",function(){var t=this;e=t.mediainfo;n=l(e);f.innerHTML=e.name?e.name:"";u.innerHTML=n;o()})},p=function(){videojs(s).one("loadedmetadata",function(){function d(t){t.preventDefault();var i=this.dataset.playlistIndex;_.each(a,function(t){t.classList.remove(n.VIDEO_ACTIVE_CLASS)});this.classList.add(n.VIDEO_ACTIVE_CLASS);f.innerHTML=this.dataset.videoTitle?this.dataset.videoTitle:"";u.innerHTML=this.dataset.videoDescription?this.dataset.videoDescription:"";o();r.classList.remove(n.DESCRIPTION_OPEN_CLASS);y.playlist.currentItem(parseInt(i,10));y.play()}var y=this,b,t,a,e,v,k,p=y.playlist(),s;b=p.length;_.each(p,function(i,r){i=p[r];k=l(i);t=document.createElement("li");t.classList.add(n.VIDEO_ITEM_CLASS);t.classList.add(n.VIDEO_THUMBNAIL_SELECTOR);t.setAttribute("data-playlist-index",r);t.setAttribute("data-video-title",i.name);t.setAttribute("data-video-description",k);e=document.createElement("img");e.setAttribute("class",n.VIDEO_THUMBNAIL_CLASS);e.setAttribute("src",i.thumbnail);e.setAttribute("alt",i.name);v=document.createElement("span");v.classList.add("coned-video__thumbnail-title");v.innerHTML=i.name;t.appendChild(e);t.appendChild(v);h.appendChild(t)});s=i.getElementsByClassName(n.VIDEO_THUMBNAIL_SELECTOR)[0];f.innerHTML=s.dataset.videoTitle?s.dataset.videoTitle:"";u.innerHTML=s.dataset.videoDescription;o();s.classList.add(n.VIDEO_ACTIVE_CLASS);b>2?w():(c.style.display="none",_.each(a,function(t){t.classList.add(n.SHORT_LIST_MODIFIER)}));a=i.getElementsByClassName(n.VIDEO_THUMBNAIL_SELECTOR);_.each(a,function(n){coned.utils.addGeneralListeners(n,d)})})},w=function(){new Swiper(".swiper-container",{slideClass:"js-video-item",wrapperClass:"js-videos-wrapper",nextButton:n.NEXT_BUTTON,prevButton:n.PREV_BUTTON,slidesPerView:4,loop:!0,breakpoints:{480:{slidesPerView:2},900:{slidesPerView:3},980:{slidesPerView:4}}})},b=function(){s=i.getElementsByClassName(n.VIDEO_PLAYER)[0];h=i.getElementsByClassName(n.VIDEO_LIST_WRAPPER)[0];f=i.getElementsByClassName(n.VIDEO_TITLE)[0];r=i.getElementsByClassName(n.VIDEO_DESCRIPTION)[0];u=i.getElementsByClassName(n.VIDEO_DESCRIPTION_PARAGRAPH)[0];c=i.getElementsByClassName(n.CONTROLS_SELECTOR)[0]},k=function(){i.querySelectorAll("[data-video-id]").length>0?y():p()},d=function(){b();k();t=!0};d()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.ViewCurrentBill=function(){var n={BILL_LINK_CLASS:"js-bill-link",FORM_LOADING:"js-form-loading",DIV_LOADING_CLASS:"js-div-loading",SERVICE_ERROR:"js-service-error-view-bill",SERVICE_ERROR_MESSAGE:"js-error-message",HIDDEN_CLASS:"hidden",CTA_CONTAINER_SELECTOR:"js-overview-bill-card__cta-container",CTA_CONTAINER_THREE_ELEMENTS:"overview-bill-card__cta-container--three-elements",CTA_SELECTOR:"js-overview-bill-card__cta",OVERVIEW_BILL_CARD_SELECTOR:"js-overview-bill-card-container",SUMMARY_BILLING_CARD_SELECTOR:"js-summary-billing-card",EXTRA_MOBILE_PADDING_BOTTOM:"overview-bill-card--padding-bottom-mobile-error"},t=!1,i=function(i){var s,r,u,h,e,c,f,l,v=function(t){t.preventDefault();var l,s,c;if(r=query.selectParentElement(t.target,n.BILL_LINK_CLASS),u=f.getElementsByClassName(n.SERVICE_ERROR)[0],u.classList.add(n.HIDDEN_CLASS),c=r.dataset.iscsv,l=c?i.dataset.documentCsvServiceUrl:i.dataset.billServiceUrl,r.dataset.billLink=="true"){window.open(r.href);return}s={Maid:i.dataset.accountMaid,MasterMaid:i.dataset.masterMaid,ScId:i.dataset.scid};c?s.BillId=i.dataset.billId:(s.BillDate=i.dataset.billDate,s.Type=r.dataset.type);e=window.open();query.getData(l,y,o,s,h);c&&!coned.utils.isSafari()&&setTimeout(function(){e.close()},5e3)},y=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.GET_BILL_LINK,a,o):n.Link&&n.Link!=""?a(n):o(n)},a=function(t){r.dataset.billLink="true";r.href=t.Link;e.location.href=t.Link;f.classList.contains(n.EXTRA_MOBILE_PADDING_BOTTOM)&&(u.classList.add(n.HIDDEN_CLASS),f.classList.remove(n.EXTRA_MOBILE_PADDING_BOTTOM))},o=function(t){var i=u.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];e.close();u.classList.remove(n.HIDDEN_CLASS);i.innerHTML=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE_VIEW_BILL;f.classList.contains(n.SUMMARY_BILLING_CARD_SELECTOR)||f.classList.add(n.EXTRA_MOBILE_PADDING_BOTTOM);u.focus()},p=function(){s=i.getElementsByClassName(n.BILL_LINK_CLASS);h=document.getElementsByClassName(n.FORM_LOADING)[0];f=document.getElementsByClassName(n.OVERVIEW_BILL_CARD_SELECTOR)[0]?document.getElementsByClassName(n.OVERVIEW_BILL_CARD_SELECTOR)[0]:document.getElementsByClassName(n.SUMMARY_BILLING_CARD_SELECTOR)[0];c=i.getElementsByClassName(n.CTA_CONTAINER_SELECTOR)[0];var t=i.getElementsByClassName(n.CTA_SELECTOR);l=t.length},w=function(){_.each(s,function(n){coned.utils.addGeneralListeners(n,v)});l>2&&c.classList.add(n.CTA_CONTAINER_THREE_ELEMENTS)},b=function(){p();w();t=!0};b()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.WamiForm=function(){var n={PREFERENCE_CENTER_FORM:".js-preference-center-form",FORM_IGNORE_VALIDATION:"js-validate-ignore",HIDDEN_CLASS:"hidden",NOTIFICATION_CHECK:"js-notification-check",HDA_NOTIFICATION_CHECK:"js-hda-notification",ACCORDION_SELECTOR_ACTIVE:"js-accordion-selector active",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_CONTAINER:"js-service-error-container",SERVICE_ERROR_MESSAGE:"js-error-message",FORM_LOADING:"js-form-loading",CHECKBOX_SWITCH_FOCUS:"coned-checkbox-switch--focus",EDIT_SCID:"ScId",EDIT_NOTIFICATIONS_SCID:"notificationsScId",TAGGING_CHECKED_ON:".on",TAGGING_CHECKED_OFF:".off",WAMI_STRING:"WAMI"},t=!1,i=function(i){var f,s,h,c,l,u,r,a,e,v=function(){w();b()},y=function(){u=this.parentNode;r=u.getElementsByClassName(n.NOTIFICATION_CHECK)[0];var f=u.dataset.service,t;a===r&&(e=i.getElementsByClassName(n.ACCORDION_SELECTOR_ACTIVE)[0],e&&e.click());t={ScId:query.getFormInputValue(i,n.EDIT_SCID),NotificationsScId:query.getFormInputValue(i,n.EDIT_NOTIFICATIONS_SCID),PreferenceId:u.dataset.preference,ChannelName:u.dataset.channel,IsIppSubscription:u.dataset.isIppSubscription,Value:r.checked,Maid:r.dataset.maid,Email:r.dataset.email,Phone:r.dataset.phone};t=JSON.stringify(t);query.postData(f,v,p,t,!0,l)},p=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.DEFAULT_SERVICE_ERROR,o,o,!0):o(n)},o=function(t){r.checked=!r.checked;var e=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE,i=u.parentElement.parentElement.getElementsByClassName(n.SERVICE_ERROR_CONTAINER)[0],f=i.getElementsByClassName(n.SERVICE_ERROR)[0],o=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];i.classList.remove(n.HIDDEN_CLASS);f.classList.remove(n.HIDDEN_CLASS);o.innerHTML=e;f.focus()},w=function(){_.each(c,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(s,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(h,function(n){n.innerHTML=""})},b=function(){if(r.dataset.tag){var t=JSON.parse(r.dataset.tag);t.event+=r.checked?n.TAGGING_CHECKED_ON:n.TAGGING_CHECKED_OFF;dataLayer.push(t)}},k=function(){f=i.getElementsByClassName(n.NOTIFICATION_CHECK);l=i.getElementsByClassName(n.FORM_LOADING)[0];c=i.getElementsByClassName(n.SERVICE_ERROR);s=i.getElementsByClassName(n.SERVICE_ERROR_CONTAINER);h=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE);a=i.getElementsByClassName(n.HDA_NOTIFICATION_CHECK)[0]},d=function(){f.length>0&&_.each(f,function(t){coned.utils.addGeneralListeners(t,y);t.addEventListener("focusin",function(t){query.addClass(t.target.parentElement,n.CHECKBOX_SWITCH_FOCUS)});t.addEventListener("focusout",function(t){query.removeClass(t.target.parentElement,n.CHECKBOX_SWITCH_FOCUS)})});new coned.components.ValidateForm(n.PREFERENCE_CENTER_FORM,"",n.FORM_IGNORE_VALIDATION)},g=function(){k();d();t=!0};g()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.Wami=function(){var n={SEE_ALL_ACCOUNTS_BUTTON:"js-see-all-accounts-button",LIMITED_SINGLE_ACCOUNTS:"js-limited-single-accounts",ALL_SINGLE_ACCOUNTS:"js-all-single-accounts",MANAGE_ACCOUNT_BTNS:"js-manage-account",CHECK_EMAIL:"js-email",CHECK_PHONE:"js-phone",SERVICE_ERROR:"js-service-error",SERVICE_ERROR_CONTAINER:"js-service-error-container",SERVICE_ERROR_MESSAGE:"js-error-message",HEADER_WRAPPER_CLASS:"js-header-wrapper",BACK_BUTTON:"js-wami-back-button",ALL_ACCOUNTS_PARAM_VALUE:"allAccounts",ACTION_PARAM:"action",POPSTATE:"popstate",PAGINATION_ANIMATION_TIME:300,HIDDEN_CLASS:"hidden"},t=!1,i=function(i){var h,e,r,c,l,o,a,u,v,y,p,w=function(t){t.preventDefault();var i=coned.utils.updateUrlParameter(n.ACTION_PARAM,n.ALL_ACCOUNTS_PARAM_VALUE);window.history.pushState({},"",i)},b=function(t){t.preventDefault();var u=window.location.href,i=coned.utils.deleteAnchorParameter(u,n.ACTION_PARAM),r=i.length-1;i.charAt(r)==="?"&&(i=i.slice(0,r));window.history.pushState({},"",i)},f=function(f){f===undefined&&(f=!0);var s,h,l,o,a=coned.utils.getUrlParameterValue(n.ACTION_PARAM);l=a===n.ALL_ACCOUNTS_PARAM_VALUE?e:r;o=a===n.ALL_ACCOUNTS_PARAM_VALUE?r:e;l.classList.add(n.HIDDEN_CLASS);o.classList.remove(n.HIDDEN_CLASS);t&&(o===r?u?u.focus():i.focus():i.focus());f&&(s=o.getBoundingClientRect(),h=s.top+window.pageYOffset-c.offsetHeight,coned.utils.scrollTo(h,n.PAGINATION_ANIMATION_TIME))},k=function(n){var t=n.target;if(!t.classList.contains("active")){var i=t.parentElement.dataset.accountMaid,r=t.parentElement.dataset.service,u={maid:i};o=t.parentElement.parentElement;a=n.target;query.getData(r,d,g,u)}},d=function(t){nt();var i=o.getElementsByTagName("input");_.each(i,function(i){i.classList.contains(n.CHECK_EMAIL)?i.checked=t.email:i.classList.contains(n.CHECK_PHONE)&&(i.checked=t.sms)})},g=function(n){coned.utils.isPatternLab()?query.getData(coned.plConstants.DEFAULT_SERVICE_ERROR,s,s,!0):s(n)},s=function(t){a.click();var u=t.errorMsg?t.errorMsg:coned.constants.ERROR_MESSAGE,i=o.getElementsByClassName(n.SERVICE_ERROR_CONTAINER)[0],r=i.getElementsByClassName(n.SERVICE_ERROR)[0],f=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)[0];i.classList.remove(n.HIDDEN_CLASS);r.classList.remove(n.HIDDEN_CLASS);f.innerHTML=u;r.focus()},nt=function(){_.each(v,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(y,function(t){t.classList.add(n.HIDDEN_CLASS)});_.each(p,function(n){n.innerHTML=""})},tt=function(){h=i.getElementsByClassName(n.SEE_ALL_ACCOUNTS_BUTTON)[0];e=i.getElementsByClassName(n.LIMITED_SINGLE_ACCOUNTS)[0];r=i.getElementsByClassName(n.ALL_SINGLE_ACCOUNTS)[0];c=document.getElementsByClassName(n.HEADER_WRAPPER_CLASS)[0];l=i.getElementsByClassName(n.MANAGE_ACCOUNT_BTNS);u=i.getElementsByClassName(n.BACK_BUTTON)[0];v=i.getElementsByClassName(n.SERVICE_ERROR);y=i.getElementsByClassName(n.SERVICE_ERROR_CONTAINER);p=i.getElementsByClassName(n.SERVICE_ERROR_MESSAGE)},it=function(){coned.utils.addGeneralListeners(h,function(n){w(n);f()});coned.utils.addGeneralListeners(u,function(n){b(n);f()});window.addEventListener(n.POPSTATE,function(){f()});_.each(l,function(n){coned.utils.addGeneralListeners(n,k)})},rt=function(){tt();it();coned.utils.doActionByURLParam(n.ALL_ACCOUNTS_PARAM_VALUE,function(){f(!1)});t=!0};rt()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};coned.components=coned.components||{};coned.components.WasThisHelpfulComponent=function(){var n={HELPFUL_BTN_CLASS:"js-helpful-button",HELPFUL_BTN_ACTIVE_CLASS:"was-this-helpful__button--active",ARIA_PRESSED:"aria-pressed"},t=!1,i=function(i){var r,u=function(t){t.preventDefault();var i=t.target,u=t.target==r[0]?r[1]:r[0];query.removeClass(r,n.HELPFUL_BTN_ACTIVE_CLASS);query.addClass(i,n.HELPFUL_BTN_ACTIVE_CLASS);i.setAttribute(n.ARIA_PRESSED,"true");u.setAttribute(n.ARIA_PRESSED,"false")},f=function(){r=i.getElementsByClassName(n.HELPFUL_BTN_CLASS)},e=function(){_.each(r,function(n){coned.utils.addGeneralListeners(n,u)})},o=function(){_.each(r,function(t){t.setAttribute(n.ARIA_PRESSED,"false")})},s=function(){f();e();o();t=!0};s()};return i.prototype.isLoaded=function(){return t},i}();query=query||{};coned=coned||{};query.documentReady(function(){var n,t;coned.supportsPassive=!1;try{n=Object.defineProperty({},"passive",{get:function(){return coned.supportsPassive=!0,!1}});window.addEventListener("testPassive",null,n);window.removeEventListener("testPassive",null,n)}catch(i){}coned.utils.initializeModules();coned.utils.setInputUser();t=document.getElementsByClassName("js-lazy-load");t.length&&coned.utils.triggerEvent(window,"modules-loaded");coned.accountData=null;coned.moxie.initEvents()})