1function calculateSubscriptionPrice(e){return this.params=e||{},this.roundPrice=e=>{const t=currency_decimal_separator;currency_decimal_separator=".";const i=format_price(e,{mask:"#####0.00"});return currency_decimal_separator=t,i},this.formatPrice=e=>format_price(e,{mask:this.currencyFormat,currency:this.symbol,currency_space:this.currencySpace,currency_before_price:this.currencyBeforeValue}),this.percentagePrice=(e,t,i,n)=>{let r=0===n?0:i*(n/100);return r+=t,r=e-r,r>0?r:0},this.quotaPrice=(e,t,i)=>{let n=t+i;return n=e-n,n>0?n:0},this.calculatePercent=(e,t)=>100-100*t/e,this.netPrice=(e,t)=>{const i=e-e*t/100;return i>0?i:0},this.init=()=>{const{max:t,maxNet:i,save:n,before:r,rebateValue:o,rebateType:s,currencyFormat:a,symbol:l,currencySpace:c,currencyBeforeValue:u}=e;if(!t&&!o)return!1;this.currencyFormat=a||app_shop.vars?.currency?.format||app_shop.vars?.currency_format,this.symbol=l||app_shop.vars?.currency?.symbol||app_shop.vars?.symbol,this.currencySpace=c||app_shop.vars?.currency?.space||app_shop.vars?.currency_space,this.currencyBeforeValue=u||app_shop.vars?.currency?.beforeValue||app_shop.vars.currency_before_value,this.rebateType=s||"percentage";const h="percentage"===this.rebateType?this.percentagePrice(+t,+n,+r,+o):this.quotaPrice(+t,+n,+o),d=this.calculatePercent(t,h),p=this.netPrice(i,d);return{gross:{value:this.roundPrice(h),formatted:this.formatPrice(h)},net:{value:this.roundPrice(p),formatted:this.formatPrice(p)},percent:Math.round(d)}},this.init()}class VanillaCalendar{constructor(e,t){this.HTMLElement="object"==typeof e?e:document.querySelector(e),this.HTMLElement&&(this.type=t?.type??"default",this.date={min:t?.date?.min??"1970-01-01",max:t?.date?.max??"2470-12-31",today:t?.date?.today??new Date},this.info={top:t?.info?.top??!1,bottom:t?.info?.bottom??!1},this.customDayNames=t?.customDayNames??[],this.settings={lang:t?.settings?.lang??app_shop?.vars?.language?.symbol??"pl",iso8601:t?.settings?.iso8601??!0,workingDays:t?.settings?.workingDays??null,disabled:{weekDay:t?.settings?.disabled?.weekDay??null,weekends:t?.settings?.disabled?.weekends??!1},range:{min:t?.settings?.range?.min??this.date.min,max:t?.settings?.range?.max??this.date.max,disabled:t?.settings?.range?.disabled??null,enabled:t?.settings?.range?.enabled??null},selection:{day:t?.settings?.selection?.day??"single",month:t?.settings?.selection?.month??!0,year:t?.settings?.selection?.year??!0,time:t?.settings?.selection?.time??!1,controlTime:t?.settings?.selection?.controlTime??"all",stepHours:t?.settings?.selection?.stepHours??1,stepMinutes:t?.settings?.selection?.stepMinutes??1},selected:{dates:t?.settings?.selected?.dates??null,month:t?.settings?.selected?.month??null,year:t?.settings?.selected?.year??null,holidays:t?.settings?.selected?.holidays??null,time:t?.settings?.selected?.time??null},visibility:{templateHeader:t?.settings?.visibility?.templateHeader??"%M %Y",monthShort:t?.settings?.visibility?.monthShort??!0,weekNumbers:t?.settings?.visibility?.weekNumbers??!1,weekend:t?.settings?.visibility?.weekend??!0,today:t?.settings?.visibility?.today??!0,disabled:t?.settings?.visibility?.disabled??!1}},this.locale={months:t?.locale?.months??[],weekday:t?.locale?.weekday??[]},this.actions={clickDay:t?.actions?.clickDay??null,clickMonth:t?.actions?.clickMonth??null,clickYear:t?.actions?.clickYear??null,changeTime:t?.actions?.changeTime??null,afterRender:t?.actions?.afterRender??null,afterFocus:t?.actions?.afterFocus??null},this.popups=t?.popups??null,this.currentType=this.type,this.selectedKeeping=null,this.userTime=!1)}generateDate(e){const t=e.getUTCFullYear();let i=e.getUTCMonth()+1,n=e.getUTCDate();return i=i<10?`0${i}`:i,n=n<10?`0${n}`:n,`${t}-${i}-${n}`}transformTime12(e){const t=Number(e);let i=t;return 0===t?i="12":13===t?i="01":14===t?i="02":15===t?i="03":16===t?i="04":17===t?i="05":18===t?i="06":19===t?i="07":20===t?i="08":21===t?i="09":22===t?i="10":23===t&&(i="11"),i}transformTime24(e,t){const i=Number(e);let n=i;return"AM"===t?12===i&&(n="00"):"PM"===t&&(1===i?n="13":2===i?n="14":3===i?n="15":4===i?n="16":5===i?n="17":6===i?n="18":7===i?n="19":8===i?n="20":9===i?n="21":10===i?
1n="22":11===i&&(n="23")),n}setVariablesDates(){null!==this.settings.selected.dates?this.selectedDates=this.settings.selected.dates:this.selectedDates=[],null!==this.settings.selected.month&&this.settings.selected.month>=0&&this.settings.selected.month<12?this.selectedMonth=this.settings.selected.month:this.selectedMonth=this.date.today.getUTCMonth(),null!==this.settings.selected.year&&this.settings.selected.year>=0&&this.settings.selected.year<=9999?this.selectedYear=this.settings.selected.year:this.selectedYear=this.date.today.getUTCFullYear(),this.viewYear=this.selectedYear,this.dateMin=this.settings.visibility.disabled?new Date(this.date.min):new Date(this.settings.range.min),this.dateMax=this.settings.visibility.disabled?new Date(this.date.max):new Date(this.settings.range.max);const e=!0===this.settings.selection.time||12===this.settings.selection.time;if(e||24===this.settings.selection.time){if("string"==typeof this.settings.selected.time){const t=e?/^([0-9]|0[1-9]|1[0-2]):([0-5][0-9])|(AM|PM)/g:/^([0-1]?[0-9]|2[0-3]):([0-5][0-9])/g;this.settings.selected.time.replace(t,((t,i,n,r)=>{i&&n&&(this.userTime=!0,this.selectedHours=i,this.selectedMinutes=n),r&&e?this.selectedKeeping=r:e&&(this.selectedKeeping="AM")}))}!this.userTime&&e?(this.selectedHours=this.transformTime12(this.date.today.getHours()),this.selectedMinutes=this.date.today.getMinutes(),this.selectedKeeping=Number(this.date.today.getHours())>12?"PM":"AM"):this.userTime||(this.selectedHours=this.date.today.getHours(),this.selectedMinutes=this.date.today.getMinutes()),this.selectedHours=Number(this.selectedHours)<10?`0${Number(this.selectedHours)}`:`${this.selectedHours}`,this.selectedMinutes=Number(this.selectedMinutes)<10?`0${Number(this.selectedMinutes)}`:`${this.selectedMinutes}`,this.selectedTime=`${this.selectedHours}:${this.selectedMinutes}${this.selectedKeeping?` ${this.selectedKeeping}`:""}`}else this.settings.selection.time&&(this.settings.selection.time=null)}createDOM(){"default"===this.currentType?(this.HTMLElement.classList.add("vanilla-calendar_default"),this.HTMLElement.classList.remove("vanilla-calendar_month"),this.HTMLElement.classList.remove("vanilla-calendar_year"),this.HTMLElement.innerHTML=`\n ${this.info.top?'\n <div class="vanilla-calendar-info --top"></div>\n ':""}\n <div class="vanilla-calendar-header">\n <button type="button"\n class="vanilla-calendar-arrow vanilla-calendar-arrow_prev"\n data-calendar-arrow="prev"\n title="Prev">\n </button>\n <div class="vanilla-calendar-header__content"></div>\n <button type="button"\n class="vanilla-calendar-arrow vanilla-calendar-arrow_next"\n data-calendar-arrow="next"\n title="Next">\n </button>\n </div>\n ${this.settings.visibility.weekNumbers?'\n <div class="vanilla-calendar-column">\n <b class="vanilla-calendar-column__title">#</b>\n <div class="vanilla-calendar-column__content vanilla-calendar-week-numbers"></div>\n </div>\n ':""}\n <div class="vanilla-calendar-content">\n <div class="vanilla-calendar-week"></div>\n <div class="vanilla-calendar-days"></div>\n ${this.settings.selection.time?'\n <div class="vanilla-calendar-time"></div>\n ':""}\n </div>\n ${this.info.bottom?'\n <div class="vanilla-calendar-info --bottom"></div>\n ':""}\n `):"month"===this.currentType?(this.HTMLElement.classList.remove("vanilla-calendar_default"),this.HTMLElement.classList.add("vanilla-calendar_month"),this.HTMLElement.classList.remove("vanilla-calendar_year"),this.HTMLElement.innerHTML='\n <div class="vanilla-calendar-header">\n <div class="vanilla-calendar-header__content"></div>\n </div>\n <div class="vanilla-calendar-content">\n <div class="vanilla-calendar-months"></div>\n </div>'):"year"===this.currentType&&(this.HTMLElement.classList.remove("vanilla-calendar_default"),this.HTMLElement.classList.remove("vanilla-calendar_month"),this.HTMLElement.classList.add("vanilla-calendar_year"),this.HTMLElement.innerHTML='\n <div class="vanilla-calendar-header">\n <button type="button"\n class="vanilla-calendar-arrow vanilla-calendar-arrow_prev"\n title="prev">\n </button>\n <div class="vanilla-calendar-header__content"></div>\n <button type="button"\n class="vanilla-calendar-arrow vanilla-calendar-arrow_next"\n title="next">\n </button>\n </div>\n <div class="vanilla-calendar-content">\n <div class="vanilla-calendar-years"></div>\n </div>')}createHeader(){const e=this.HTMLElement.querySelector(".vanilla-calendar-header__content"),t=this.settings.selection.month?"":" vanilla-calendar-month_disabled",i=this.settings.selection.year?"":" vanilla-calendar-year_disabled",n=`\n <button type="button"\n class="vanilla-calendar-month${t}"\n ${t?' tabindex="-1" ':""}\n data-calendar-selected-month="${this.selectedMonth}">\n ${this.locale.months[this.selectedMonth]}\n </button>`.replace(/[\n\t]/g,""),r=`\n <button type="button"\n class="vanilla-calendar-year${i}"\n ${i?' tabindex="-1" ':""}\n data-calendar-selected-year="${this.selectedYear}">\n ${this.selectedYear}\n </button>`.replace(/[\n\t]/g,"");let o=this.settings.visibility.templateHeader.replace("%M",n);o=o.replace("%Y",r),e.innerHTML=o}controlArrows(){if(!["default","year"].includes(this.currentType))return;const e=this.HTMLElement.querySelector(".vanilla-calendar-arrow_prev"),t=this.HTMLElement.querySelector(".vanilla-calendar-arrow_next");(()=>{if("default"!==this.currentType)return;const i=this.selectedMonth===this.dateMin.getUTCMonth(),n=this.selectedMonth===this.dateMax.getUTCMonth(),r=!this.settings.selection.year||this.selectedYear===this.dateMin.getUTCFullYear(),o=!this.settings.selection.year||this.selectedYear===this.dateMax.getUTCFullYear();i&&r||!this.settings.selection.month?e.style.visibility="hidden":e.style.visibility=null,n&&o||!this.settings.selection.month?t.style.visibility="hidden":t.style.visibility=null})(),(()=>{"year"===this.currentType&&(this.dateMin.getUTCFullYear()&&this.viewYear-7<=this.dateMin.getUTCFullYear()?e.style.visibility="hidden":e.style.visibility=null,this.dateMax.getUTCFullYear()&&this.viewYear+7>=this.dateMax.getUTCFullYear()?t.style.visibility="hidden":t.style.visibility=null)})()}createWeek(){const e=this.HTMLElement.querySelector(".vanilla-calendar-week"),t=document.createElement("b");t.className="vanilla-calendar-week__day";const i=[...this.locale.weekday];this.settings.iso8601&&i.push(i.shift()),e.innerHTML="";for(let n=0;n<i.length;n++){const r=i[n],o=t.cloneNode(!0);this.settings.visibility.weekend&&this.settings.iso8601?5!==n&&6!==n||o.classList.add("vanilla-calendar-week__day_weekend"):this.settings.visibility.weekend&&!this.settings.iso8601&&(0!==n&&6!==n||o.classList.add("vanilla-calendar-week__day_weekend")),o.innerText=`${r}`,e.append(o)}}getWeekNumber(e){const t=new Date(e).getUTCDate(),i=new Date(e).getUTCMonth(),n=new Date(e).getUTCFullYear(),r=new Date(n,i,t),o=new Date(Date.UTC(r.getUTCFullYear(),0,1)),s=Math.ceil(((r-o)/864e5+1)/7);return{year:r.getUTCFullYear(),week:s}}createWeekNumbers(e,t){if(!this.settings.visibility.weekNumbers)return;const i=this.HTMLElement.querySelector(".vanilla-calendar-week-numbers"),n=this.HTMLElement.querySelectorAll(".vanilla-calendar-day__btn"),r=Math.ceil((e+t)/7),o=document.createElement("span");o.className="vanilla-calendar-week-number",i.innerHTML="";for(let e=0;e<r;e++){const t=this.getWeekNumber(n[7*e].dataset.calendarDay),r=o.cloneNode(!0);r.innerText=`${t.week}`,r.dataset.calendarYearWeek=`${t.year}`,i.append(r)}}createPopup(e){if(this.popups)for(const t in this.popups)if(Object.hasOwnProperty.call(this.popups,t)){const i=e.querySelector(`[data-calendar-day="${t}"]`);if(i){const e=this.popups[t];i.classList.add(e.modifier),i.parentNode.innerHTML+=`<div class="vanilla-calendar-day__popup">${e.html}</div>`}}}createDays(){const e=new Date(Date.UTC(this.selectedYear,this.selectedMonth,1)),t=new Date(Date.UTC(this.selectedYear,this.selectedMonth+1,0)).getUTCDate();let i=Number(e.getUTCDay());this.settings.iso8601&&(i=Number((0!==e.getUTCDay()?e.getUTCDay():7)-1));const n=this.HTMLElement.querySelector(".vanilla-calendar-days"),r=document.createElement("div"),o=document.createElement("button");r.className="vanilla-calendar-day",o.className="vanilla-calendar-day__btn",o.t
1ype="button",["single","multiple","multiple-ranged"].includes(this.settings.selection.day)&&n.classList.add("vanilla-calendar-days_selecting"),n.innerHTML="";const s=(e,t,i,n)=>{!this.settings.visibility.weekend||0!==t&&6!==t||e.classList.add("vanilla-calendar-day__btn_weekend"),Array.isArray(this.settings.selected.holidays)&&this.settings.selected.holidays.forEach((t=>{t===i&&e.classList.add("vanilla-calendar-day__btn_holiday")}));let r=this.date.today.getUTCDate(),o=this.date.today.getUTCMonth()+1;r=r<10?`0${r}`:r,o=o<10?`0${o}`:o;const s=`${this.date.today.getUTCFullYear()}-${o}-${r}`;if(this.settings.visibility.today&&e.dataset.calendarDay===s&&e.classList.add("vanilla-calendar-day__btn_today"),0===this.selectedDates.indexOf(i)||this.selectedDates[0]&&this.selectedDates.indexOf(i)===this.selectedDates.length-1?e.classList.add("vanilla-calendar-day__btn_selected"):"multiple-ranged"===this.settings.selection.day&&this.selectedDates.indexOf(i)>0?(e.classList.add("vanilla-calendar-day__btn_selected"),e.classList.add("vanilla-calendar-day__btn_intermediate")):this.selectedDates.indexOf(i)>0&&e.classList.add("vanilla-calendar-day__btn_selected"),(this.settings.range.min>i||this.settings.range.max<i)&&(e.classList.add("vanilla-calendar-day__btn_disabled"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true")),this.settings.selection.month||n||(e.classList.add("vanilla-calendar-day__btn_disabled"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true")),this.settings.selection.year||new Date(i).getFullYear()===this.selectedYear||(e.classList.add("vanilla-calendar-day__btn_disabled"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true")),Array.isArray(this.settings.range.disabled)?this.settings.range.disabled.forEach((t=>{t===i&&(e.classList.add("vanilla-calendar-day__btn_disabled"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true"))})):Array.isArray(this.settings.range.enabled)&&(e.classList.add("vanilla-calendar-day__btn_disabled"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true"),this.settings.range.enabled.forEach((t=>{t===i&&(e.classList.remove("vanilla-calendar-day__btn_disabled"),e.removeAttribute("tabindex"),e.removeAttribute("aria-hidden"))}))),!this.settings.disabled.weekends||0!==t&&6!==t||(e.classList.add("vanilla-calendar-day__btn_disabled"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true")),Array.isArray(this.settings.disabled.weekDay)&&this.settings.disabled.weekDay.forEach((i=>{i===t&&(e.classList.add("vanilla-calendar-day__btn_disabled"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true"))})),Array.isArray(this.settings.workingDays)&&(this.settings.workingDays.includes(t)||(e.classList.add("vanilla-calendar-day__btn_disabled"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true"))),this.customDayNames?.length){const t=this.customDayNames.find((e=>e.date===i));if(t){const{class:i="",name:n}=t||{};e.classList.add(i),n&&(e.innerHTML=n)}}},a=(e,t,i,a,l)=>{const c=r.cloneNode(!0),u=o.cloneNode(!0);l&&u.classList.add(l),u.innerText=e,u.dataset.calendarDay=i,s(u,t,i,a),c.append(u),n.append(c)};(()=>{let e=new Date(Date.UTC(this.selectedYear,this.selectedMonth,0)).getUTCDate()-i,t=this.selectedYear,n=this.selectedMonth;0===this.selectedMonth?(n=this.locale.months.length,t=this.selectedYear-1):this.selectedMonth<10&&(n=`0${this.selectedMonth}`);for(let r=0;r<i;r++){e+=1;const i=`${t}-${n}-${e}`,r=new Date(Date.UTC(this.selectedYear,this.selectedMonth,e-1)).getUTCMonth()-1,o=new Date(Date.UTC(this.selectedYear,r,e)).getUTCDay();a(e,o,i,!1,"vanilla-calendar-day__btn_prev")}})(),(()=>{for(let e=1;e<=t;e++){const t=new Date(Date.UTC(this.selectedYear,this.selectedMonth,e)),i=this.generateDate(t),n=t.getUTCDay();a(e,n,i,!0)}})(),(()=>{const e=i+t,n=Math.ceil(e/this.locale.weekday.length),r=this.locale.weekday.length*n-e;let o=this.selectedYear,s=this.selectedMonth+2;this.selectedMonth+1===this.locale.months.length?(s="01",o=this.selectedYear+1):this.selectedMonth+2<10&&(s=`0${this.selectedMonth+2}`);for(let e=1;e<=r;e++){const t=`${o}-${s}-${e<10?`0${e}`:e}`,i=new Date(Date.UTC(this.selectedYear,this.selectedMonth,e)).getUTCMonth()+1,n=new Date(Date.UTC(this.selectedYear,i,e)).getUTCDay();a(e,n,t,!1,"vanilla-calendar-day__btn_next")}})(),this.createPopup(n),this.createWeekNumbers(i,t),this.actions.afterRender&&this.actions.afterRender(this)}changeMonth(e){const t=this.locale.months.length-1;switch(e){case"prev":0!==this.selectedMonth?this.selectedMonth-=1:this.settings.selection.year&&(this.selectedYear-=1,this.selectedMonth=t);break;case"next":this.selectedMonth!==t?this.selectedMonth+=1:this.settings.selection.year&&(this.selectedYear+=1,this.selectedMonth=0)}this.settings.selected.month=this.selectedMonth,this.settings.selected.year=this.selectedYear,this.createHeader(),this.controlArrows(),this.createDays()}createYears(){this.currentType="year",this.createDOM(),this.createHeader(),this.controlArrows();const e=this.HTMLElement.querySelector(".vanilla-calendar-years");this.settings.selection.year&&e.classList.add("vanilla-calendar-years_selecting");const t=document.createElement("button");t.type="button",t.className="vanilla-calendar-years__year";for(let i=this.viewYear-7;i<this.viewYear+8;i++){const n=i,r=t.cloneNode(!0);n===this.selectedYear&&r.classList.add("vanilla-calendar-years__year_selected"),n<this.dateMin.getUTCFullYear()&&(r.classList.add("vanilla-calendar-years__year_disabled"),r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true")),n>this.dateMax.getUTCFullYear()&&(r.classList.add("vanilla-calendar-years__year_disabled"),r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true")),r.dataset.calendarYear=n,r.innerText=`${n}`,e.append(r)}this.actions.afterRender&&this.actions.afterRender(this)}createMonths(){this.currentType="month",this.createDOM(),this.createHeader();const e=this.HTMLElement.querySelector(".vanilla-calendar-months");this.settings.selection.month&&e.classList.add("vanilla-calendar-months_selecting");const t=document.createElement("button");t.type="button",t.className="vanilla-calendar-months__month";for(let i=0;i<this.locale.months.length;i++){const n=this.locale.months[i],r=t.cloneNode(!0);i===this.selectedMonth&&r.classList.add("vanilla-calendar-months__month_selected"),i<this.dateMin.getUTCMonth()&&this.selectedYear===this.dateMin.getUTCFullYear()&&(r.classList.add("vanilla-calendar-months__month_disabled"),r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true")),i>this.dateMax.getUTCMonth()&&this.selectedYear===this.dateMax.getUTCFullYear()&&(r.classList.add("vanilla-calendar-months__month_disabled"),r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true")),r.dataset.calendarMonth=i,r.title=`${n}`,r.innerText=`${this.settings.visibility.monthShort?n.substring(0,3):n}`,e.append(r)}this.actions.afterRender&&this.actions.afterRender(this)}controlTime(e){const t=this.HTMLElement.querySelector('.vanilla-calendar-time__range input[name="hours"]'),i=this.HTMLElement.querySelector('.vanilla-calendar-time__range input[name="minutes"]'),n=this.HTMLElement.querySelector('.vanilla-calendar-time__hours input[name="hours"]'),r=this.HTMLElement.querySelector('.vanilla-calendar-time__minutes input[name="minutes"]'),o=this.HTMLElement.querySelector(".vanilla-calendar-time__keeping"),s=(e,t)=>{e.addEventListener("mouseover",(()=>t.classList.add("is-focus")))},a=(e,t)=>{e.addEventListener("mouseout",(()=>t.classList.remove("is-focus")))},l=(e,t,i)=>{"hours"===i?this.selectedHours=`${t}`:"minutes"===i&&(this.selectedMinutes=`${t}`),this.selectedTime=`${this.selectedHours}:${this.selectedMinutes}${this.selectedKeeping?` ${this.selectedKeeping}`:""}`,this.settings.selected.time=this.selectedTime,this.actions.changeTime&&this.actions.changeTime(e,this.selectedTime,this.selectedHours,this.selectedMinutes,this.selectedKeeping)},c=(e,t,i,n)=>{e.addEventListener("input",(e=>{let r=Number(e.target.value);r=r<10?`0${r}`:`${r}`,"hours"===i&&12===n?Number(e.target.value)<n&&Number(e.target.value)>0?(t.value=r,this.selectedKeeping="AM",o.innerText=this.selectedKeeping,l(e,r,i)):(0===Number(e.target.value)?(this.selectedKeeping="AM",o.innerText="AM"):(this.selectedKeeping="PM",o.innerText="PM"),t.value=this.transformTime12(e.target.value),l(e,this.transformTime12(e.target.value),i)):(t.value=r,l
1(e,r,i))}))},u=(e,t,i,n)=>{t.addEventListener("change",(t=>{let r=Number(t.target.value);r=r<10?`0${r}`:`${r}`,"hours"===i&&12===n?t.target.value&&Number(t.target.value)<=n&&Number(t.target.value)>0?(t.target.value=r,e.value=this.transformTime24(r,this.selectedKeeping),l(t,r,i)):t.target.value&&Number(t.target.value)<24&&(Number(t.target.value)>n||0===Number(t.target.value))?(0===Number(t.target.value)?(this.selectedKeeping="AM",o.innerText="AM"):(this.selectedKeeping="PM",o.innerText="PM"),t.target.value=this.transformTime12(t.target.value),e.value=r,l(t,this.transformTime12(t.target.value),i)):t.target.value=this.selectedHours:t.target.value&&Number(t.target.value)<=n&&Number(t.target.value)>=0?(t.target.value=r,e.value=r,l(t,r,i)):"hours"===i?t.target.value=this.selectedHours:"minutes"===i&&(t.target.value=this.selectedMinutes)}))};s(t,n),s(i,r),a(t,n),a(i,r),c(t,n,"hours",24===e?23:e),c(i,r,"minutes"),u(t,n,"hours",24===e?23:e),u(i,r,"minutes",59),o&&o.addEventListener("click",(e=>{o.innerText.includes("AM")?this.selectedKeeping="PM":this.selectedKeeping="AM",t.value=this.transformTime24(this.selectedHours,this.selectedKeeping),l(e,this.selectedHours,"hours"),o.innerText=this.selectedKeeping}))}createTime(){const e=this.HTMLElement.querySelector(".vanilla-calendar-time");if(!e)return;const t=!0===this.settings.selection.time?12:this.settings.selection.time,i="range"===this.settings.selection.controlTime;e.innerHTML=`\n <div class="vanilla-calendar-time__content">\n <label class="vanilla-calendar-time__hours">\n <input type="text"\n name="hours"\n maxlength="2"\n value="${this.selectedHours}"\n ${i?"disabled":""}>\n </label>\n <label class="vanilla-calendar-time__minutes">\n <input type="text"\n name="minutes"\n maxlength="2"\n value="${this.selectedMinutes}"\n ${i?"disabled":""}>\n </label>\n ${12===t?`\n <button type="button"\n class="vanilla-calendar-time__keeping"\n ${i?"disabled":""}>${this.selectedKeeping}</button>\n `:""}\n </div>\n <div class="vanilla-calendar-time__ranges">\n <label class="vanilla-calendar-time__range">\n <input type="range"\n name="hours"\n min="0"\n max="23"\n step="${this.settings.selection.stepHours}"\n value="${this.selectedKeeping?this.transformTime24(this.selectedHours,this.selectedKeeping):this.selectedHours}">\n </label>\n <label class="vanilla-calendar-time__range">\n <input type="range"\n name="minutes"\n min="0"\n max="59"\n step="${this.settings.selection.stepMinutes}"\n value="${this.selectedMinutes}">\n </label>\n </div>`,this.controlTime(t)}getLocale(){if("define"!==this.settings.lang){this.locale.weekday=[];for(let e=0;e<7;e++){let t=new Date(0,0,e).toLocaleString(this.settings.lang,{weekday:"short"});t=`${t.charAt(0).toUpperCase()}${t.substring(1,t.length)}`,t=t.replace(/\./,""),this.locale.weekday.push(t)}this.locale.months=[];for(let e=0;e<12;e++){let t=new Date(0,e).toLocaleString(this.settings.lang,{month:"long"});t=`${t.charAt(0).toUpperCase()}${t.substring(1,t.length)}`,t=t.replace(/\./,""),this.locale.months.push(t)}}}createInfo(){if(this.info.top){this.HTMLElement.querySelector(".vanilla-calendar-info.--top").innerHTML=this.info.top}if(this.info.bottom){this.HTMLElement.querySelector(".vanilla-calendar-info.--bottom").innerHTML=this.info.bottom}}update(){this.setVariablesDates(),this.getLocale(),this.createDOM(),this.createHeader(),this.controlArrows(),this.createTime(),this.createInfo(),"default"===this.currentType?(this.createWeek(),this.createDays()):"month"===this.currentType?this.createMonths():"year"===this.currentType&&this.createYears(),this.actions.afterRender&&this.actions.afterRender(this)}focusElement({type:e="day"}){const t=this.HTMLElement.querySelector(".vanilla-calendar-day__btn_selected:not(.disabled)");if("day"===e&&t)return t.focus(),void(this.actions.afterFocus&&this.actions.afterFocus(this,e));const i=Array.from(this.HTMLElement.querySelectorAll(".vanilla-calendar-content button"));i.find((e=>-1===e?.className.indexOf("disabled")&&-1===e?.className.indexOf("prev")))?.focus?.(),this.actions.afterFocus&&this.actions.afterFocus(this,e)}click(){this.HTMLElement.addEventListener("click",(e=>{const t=e.target.closest(".vanilla-calendar-arrow"),i=e.target.closest(".vanilla-calendar-arrow_prev"),n=e.target.closest(".vanilla-calendar-arrow_next"),r=e.target.closest(".vanilla-calendar-day__btn"),o=e.target.closest(".vanilla-calendar-day__btn_prev"),s=e.target.closest(".vanilla-calendar-day__btn_next"),a=e.target.closest(".vanilla-calendar-year"),l=e.target.closest(".vanilla-calendar-years__year"),c=e.target.closest(".vanilla-calendar-month"),u=e.target.closest(".vanilla-calendar-months__month"),h=()=>{r.classList.contains("vanilla-calendar-day__btn_selected")?this.selectedDates.splice(this.selectedDates.indexOf(r.dataset.calendarDay),1):(this.selectedDates=[],this.selectedDates.push(r.dataset.calendarDay))},d=()=>{r.classList.contains("vanilla-calendar-day__btn_selected")?this.selectedDates.splice(this.selectedDates.indexOf(r.dataset.calendarDay),1):this.selectedDates.push(r.dataset.calendarDay)},p=()=>
1{if(this.selectedDates.length>1&&(this.selectedDates=[]),this.selectedDates.push(r.dataset.calendarDay),!this.selectedDates[1])return;const e=new Date(Date.UTC(new Date(this.selectedDates[0]).getUTCFullYear(),new Date(this.selectedDates[0]).getUTCMonth(),new Date(this.selectedDates[0]).getUTCDate())),t=new Date(Date.UTC(new Date(this.selectedDates[1]).getUTCFullYear(),new Date(this.selectedDates[1]).getUTCMonth(),new Date(this.selectedDates[1]).getUTCDate())),i=e=>{const t=this.generateDate(e);this.settings.range.disabled&&this.settings.range.disabled.includes(t)||this.selectedDates.push(t)};if(this.selectedDates=[],t>e)for(let n=e;n<=t;n.setUTCDate(n.getUTCDate()+1))i(n);else for(let n=e;n>=t;n.setUTCDate(n.getUTCDate()-1))i(n)};(()=>{t&&"year"!==this.currentType&&"month"!==this.currentType&&(this.changeMonth(e.target.dataset.calendarArrow),this.focusElement({type:"arrow"}))})(),(()=>{if(["single","multiple","multiple-ranged"].includes(this.settings.selection.day)&&r){switch(this.settings.selection.day){case"single":h();break;case"multiple":d();break;case"multiple-ranged":p()}this.actions.clickDay&&this.actions.clickDay(e,this.selectedDates),this.settings.selected.dates=this.selectedDates,o?this.changeMonth("prev"):s?this.changeMonth("next"):this.createDays(),this.focusElement({type:"day"})}})(),(()=>{this.settings.selection.year&&(t&&"year"===this.currentType?(n?this.viewYear+=15:i&&(this.viewYear-=15),this.createYears(),this.focusElement({type:"year"})):"year"!==this.currentType&&a?(this.createYears(),this.focusElement({type:"year"})):"year"===this.currentType&&a?(this.currentType=this.type,this.update(),this.focusElement({type:"year"})):l&&(this.selectedYear=Number(l.dataset.calendarYear),this.currentType=this.type,this.selectedMonth<this.dateMin.getUTCMonth()&&this.selectedYear===this.dateMin.getUTCFullYear()&&(this.settings.selected.month=this.dateMin.getUTCMonth()),this.selectedMonth>this.dateMax.getUTCMonth()&&this.selectedYear===this.dateMax.getUTCFullYear()&&(this.settings.selected.month=this.dateMax.getUTCMonth()),this.actions.clickYear&&this.actions.clickYear(e,this.selectedYear),this.settings.selected.year=this.selectedYear,this.update(),this.focusElement({type:"year"})))})(),(()=>{this.settings.selection.month&&("month"!==this.currentType&&c?(this.createMonths(),this.focusElement({type:"month"})):"month"===this.currentType&&c?(this.currentType=this.type,this.update(),this.focusElement({type:"month"})):u&&(this.selectedMonth=Number(u.dataset.calendarMonth),this.currentType=this.type,this.actions.clickMonth&&this.actions.clickMonth(e,this.selectedMonth),this.settings.selected.month=this.selectedMonth,this.update(),this.focusElement({type:"month"})))})()}))}init(){this.HTMLElement&&(this.update(),this.click())}}function FormValidation(e){const{form:t,formSelector:i,afterValidate:n,afterValidateForm:r}=e||{};this.debounce=(e,t=500)=>{let i;return(...n)=>{clearTimeout(i),i=setTimeout((()=>e(...n)),t)}},this.fetchData=async e=>{try{const t=await fetch(`${app_shop?.urls?.graphql||"/graphql/v1/"}?query=validateClientData`,{method:"POST",body:JSON.stringify({query:`query {${e}}`})});return await t.json()}catch(e){return!1}},this.vars={passwordLengthMin:6,passwordLengthMax:30,changedInputs:[]},this.callbacks={validate:n,validateAll:r},this.errorCode={birth_date:app_shop?.txt?.errorCode?.birth_date||"Wpisz poprawnÄ
datÄ urodzenia w formacie RRRR-MM-DD",illegal_characters_client_city:app_shop?.txt?.errorCode?.illegal_characters_client_city||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_firm:app_shop?.txt?.errorCode?.illegal_characters_client_firm||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_firstname:app_shop?.txt?.errorCode?.illegal_characters_client_firstname||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_lastname:app_shop?.txt?.errorCode?.illegal_characters_client_lastname||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_nip:app_shop?.txt?.errorCode?.illegal_characters_client_nip||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_phone:app_shop?.txt?.errorCode?.illegal_characters_client_phone||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_phone2:app_shop?.txt?.errorCode?.illegal_characters_client_phone2||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_street:app_shop?.txt?.errorCode?.illegal_characters_client_street||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_additional:app_shop?.txt?.errorCode?.illegal_characters_delivery_additional||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_city:app_shop?.txt?.errorCode?.illegal_characters_delivery_city||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_firstname:app_shop?.txt?.errorCode?.illegal_characters_delivery_firstname||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_lastname:app_shop?.txt?.errorCode?.illegal_characters_delivery_lastname||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_phone:app_shop?.txt?.errorCode?.illegal_characters_delivery_phone||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_street:
1app_shop?.txt?.errorCode?.illegal_characters_delivery_street||"Jeden z użytych znaków jest niedozwolony.",incorect_delivery_region:app_shop?.txt?.errorCode?.incorect_delivery_region||"Wybierz kraj odbiorcy przesyÅki.",incorect_delivery_zipcode:app_shop?.txt?.errorCode?.incorect_delivery_zipcode||"Wpisz kod pocztowy odbiorcy przesyÅki.",incorect_email:app_shop?.txt?.errorCode?.incorect_email||"BÅÄdnie wpisany e-mail. Wpisz peÅny adres e-mail, np. [email protected]",incorect_invoice_phone:app_shop?.txt?.errorCode?.incorect_invoice_phone||"Wpisz telefon klienta.",incorect_invoice_zipcode:app_shop?.txt?.errorCode?.incorect_invoice_zipcode||"Wpisz kod pocztowy klienta.",incorect_login:app_shop?.txt?.errorCode?.incorect_login||"BÅÄdnie wpisany login. Login musi mieÄ minimum 3, a maksimum 40 znaków. Możesz użyÄ liter i cyfr oraz symboli @ . - _.",incorect_nip:app_shop?.txt?.errorCode?.incorect_nip||"Niepoprawny NIP dla wybranego kraju.",incorect_phone:app_shop?.txt?.errorCode?.incorect_phone||"Wpisz swój telefon.",incorect_shops:app_shop?.txt?.errorCode?.incorect_shops||"Wybierz sklep z listy.",incorect_zipcode:app_shop?.txt?.errorCode?.incorect_zipcode||"BÅÄdnie wpisany kod pocztowy.",incorrect_region:app_shop?.txt?.errorCode?.incorrect_region||"BÅÄdnie wybrany region.",invalid_format:app_shop?.txt?.errorCode?.invalid_format||"NieprawidÅowy format. Pole musi zawieraÄ przynajmniej jednÄ
literÄ.",login_equals_password:app_shop?.txt?.errorCode?.login_equals_password||"HasÅo jest takie samo jak login. Wpisz inne hasÅo.",login_taken:app_shop?.txt?.errorCode?.login_taken||"Podany login jest już zajÄty",login_taken_login_propose:app_shop?.txt?.errorCode?.login_taken_login_propose||"Podany login jest już zajÄty.<br/><br/>Proponowany login: ",no_city:app_shop?.txt?.errorCode?.no_city||"Wpisz w to pole nazwÄ miasta.",no_delivery_city:app_shop?.txt?.errorCode?.no_delivery_city||"Wpisz miejscowoÅÄ odbiorcy przesyÅki.",no_delivery_firstname:app_shop?.txt?.errorCode?.no_delivery_firstname||"Wpisz imiÄ odbiorcy przesyÅki.",no_delivery_lastname:app_shop?.txt?.errorCode?.no_delivery_lastname||"Wpisz nazwisko odbiorcy przesyÅki.",no_delivery_street:app_shop?.txt?.errorCode?.no_delivery_street||"Wpisz ulicÄ i numer domu odbiorcy przesyÅki.",no_firmname:app_shop?.txt?.errorCode?.no_firmname||"BÅÄdnie wpisana nazwa firmy.",no_firstname:app_shop?.txt?.errorCode?.no_firstname||"Wpisz w to pole swoje imiÄ.",no_invoice_city:app_shop?.txt?.errorCode?.no_invoice_city||"Wpisz miejscowoÅÄ klienta.",no_invoice_firmname:app_shop?.txt?.errorCode?.no_invoice_firmname||"Wpisz nazwÄ firmy klienta.",no_invoice_firstname:app_shop?.txt?.errorCode?.no_invoice_firstname||"Wpisz imiÄ klienta.",no_invoice_lastname:app_shop?.txt?.errorCode?.no_invoice_lastname||"Wpisz nazwisko klienta.",no_invoice_street:app_shop?.txt?.errorCode?.no_invoice_street||"Wpisz ulicÄ i numer domu klienta.",no_invoice_street_number:app_shop?.txt?.errorCode?.no_invoice_street_number||"Wpisz ulicÄ i numer domu klienta.",no_login:app_shop?.txt?.errorCode?.no_login||"Wpisz w to pole swój login.",no_name:app_shop?.txt?.errorCode?.no_name||"Wpisz w to pole swoje nazwisko.",no_password:app_shop?.txt?.errorCode?.no_password||"Wpisz w to pole swoje hasÅo.",no_street:app_shop?.txt?.errorCode?.no_street||"Wpisz nazwÄ ulicy lub miejscowoÅci.",no_street_number:app_shop?.txt?.errorCode?.no_street_number||"Podaj nr domu.",no_street_number_uk:app_shop?.txt?.errorCode?.no_street_number_uk||"Brakuje numeru domu.",not_equal_passwords:app_shop?.txt?.errorCode?.not_equal_passwords||"Wpisane hasÅa nie sÄ
takie same. Wpisz ponownie hasÅo i potwierdzenie.",password_to_long:app_shop?.txt?.errorCode?.password_to_long||"Za dÅugie hasÅo. Wpisz krótsze hasÅo (maksimum",password_to_short:app_shop?.txt?.errorCode?.password_to_short||"Zbyt krótkie hasÅo. Wpisz dÅuższe hasÅo (minimum",used_login:app_shop?.txt?.errorCode?.used_login||"Podany login jest już zajÄty",incorrect_iban:app_shop?.txt?.errorCode?.incorrect_iban||app_shop.txt.txt_validation5||"Format numeru konta bankowego jest niepoprawny"},this.passwordErrorCodes=["no_password","not_equal_passwords","password_to_long","password_to_short","login_equals_password"],this.loginErrorCodes=["incorect_login","login_taken","login_taken_login_propose","no_login","used_login"],this.txt={mandatoryField:app_shop?.txt?.formValidation?.mandatoryField||"ProszÄ wypeÅniÄ to pole.",zipcodeFormat:app_shop?.txt?.formValidation?.z
1ipcodeFormat||"Poprawne formaty kodu pocztowego dla wybranego kraju to [X - cyfra; Y - litera]:",characters:app_shop?.txt?.formValidation?.characters||"znaków).",noOptionSelected:app_shop?.txt?.formValidation?.noOptionSelected||"ProszÄ wybraÄ opcjÄ.",minimalCharacters:app_shop?.txt?.formValidation?.minimalCharacters||app_shop.txt?.txt_validation1||"Minimalna liczba znaków dla tego pola to ",maximumCharacters:app_shop?.txt?.formValidation?.maximumCharacters||app_shop.txt?.txt_validation2||"Maksymalna liczba znaków dla tego pola to ",onlyDigital:app_shop?.txt?.formValidation?.onlyDigital||"Pole nie może zawieraÄ cyfr."},this.queries={VALIDATE_FIRSTNAME_QUERY:e=>`validateClientData(ClientDataInput: { clientData: {\n clientBillingData: {\n firstname: "${e?.replace?.(/"/g,'\\"')}"\n }\n }}) {\n messages {\n code\n message\n }\n }`,VALIDATE_LASTNAME_QUERY:e=>`validateClientData(ClientDataInput: { clientData: {\n clientBillingData: {\n lastname: "${e?.replace?.(/"/g,'\\"')}"\n }\n }}) {\n messages {\n code\n message\n }\n }`,VALIDATE_ADDITIONAL_QUERY:e=>`validateClientData(ClientDataInput: { clientData: {\n clientBillingData: {\n companyName: "${e?.replace?.(/"/g,'\\"')}"\n }\n }}) {\n messages {\n code\n message\n }\n }`,VALIDATE_NIP_QUERY:(e,t)=>`validateClientData(ClientDataInput: { clientData: {\n clientBillingData: {\n country: ${t}\n }\n taxNumber: "${e?.replace?.(/"/g,'\\"')}"\n }}) {\n messages {\n code\n message\n }\n }`,VALIDATE_STREET_QUERY:(e,t)=>`validateClientData(ClientDataInput: { clientData: {\n clientBillingData: {\n street: "${e?.replace?.(/"/g,'\\"')}"\n country: ${t}\n }\n }}) {\n messages {\n code\n message\n }\n }`,VALIDATE_ZIPCODE_QUERY:(e,t)=>`validateClientData(ClientDataInput: { clientData: {\n clientBillingData: {\n zipcode: "${e?.replace?.(/"/g,'\\"')}"\n country: ${t}\n }\n }}) {\n messages {\n code\n message\n }\n }`,VALIDATE_CITY_QUERY:e=>`validateClientData(ClientDataInput: { clientData: {\n clientBillingData: {\n city: "${e?.replace?.(/"/g,'\\"')}"\n }\n }}) {\n messages {\n code\n message\n }\n }`,VALIDATE_PHONE_QUERY:(e,t)=>`validateClientData(ClientDataInput: { clientData: {\n clientBillingData: {\n phone: "${e?.replace?.(/"/g,'\\"')}"\n country: ${t}\n }\n }}) {\n messages {\n code\n message\n }\n }`,VALIDATE_EMAIL_QUERY:e=>`validateClientData(ClientDataInput: {clientData: {\n email: "${e?.replace?.(/"/g,'\\"')}"\n }}) {\n messages {\n code\n message\n }\n clientExists\n }`,VALIDATE_BIRTHDATE_QUERY:e=>`validateClientData(ClientDataInput: {clientData: {\n birthDate: "${e?.replace?.(/"/g,'\\"')}"\n }}) {\n messages {\n code\n message\n }\n }`,VALIDATE_LOGIN_QUERY:(e,t)=>`validateClientData(ClientDataInput: {loginAndPassword: {\n login: "${e?.replace?.(/"/g,'\\"')}"\n ${t?`password: "${t?.replace?.(/"/g,'\\"')}"`:""}\n }}) {\n messages {\n code\n message\n }\n }`,VALIDATE_PASSWORD_QUERY:(e,t)=>`validateClientData(ClientDataInput: {loginAndPassword: {\n ${t?`login: "${t?.replace?.(/"/g,'\\"')}"`:""}\n password: "${e?.replace?.(/"/g,'\\"')}"\n }}) {\n messages {\n code\n message\n }\n }`,VALIDATE_INPUTS_QUERY:e=>JSON.stringify({query:`query {\n validateClientData(${e}) {\n messages {\n code\n message\n }\n }\n }`})},this.events={onInput:e=>{const{target:t}=e;this.vars.changedInputs.push(t),this.debounces.validateInput(t)},onChange:e=>{const{target:t}=e;this.validateCheckbox(t)},onSubmit:async e=>{if("true"===this.form.dataset.handled)return void delete this.form.dataset.handled;e.preventDefault();await this.validateForm()?(this.form.classList.remove("--fail-validation"),this.form.dataset.handled="true",this.form.submit()):this.form.classList.add("--fail-validation")}},this.concatErrorMessages=e=>{const{code:t}=e[0];switch(t){case"incorect_zipcode":return`${this.errorCode[t]} ${this.txt.zipcodeFormat} ${e[1]?.message}`;case"password_to_short":return`${this.errorCode[t]} ${this.vars.passwordLengthMin} ${this.txt.characters}`;case"password_to_long":return`${this.errorCode[t]} ${this.vars.passwordLengthMax} ${this.txt.characters}`;default:return this.errorCode[t]}},this.checkDigital=e=>!!/\d/.test(e),this.validateFirstnameGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:r}=t,o=this.queries.VALIDATE_FIRSTNAME_QUERY(r);if(i)return this.queries.VALIDATE_FIRSTNAME_QUERY(r);const s=n||await this.fetchData(o),{messages:a}=s?.data?.validateClientData||s;return this.checkDigital(r)?this.txt.onlyDigital:a?.length?this.concatErrorMessages(a):""},this.validateLastnameGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:r}=t,o=this.queries.VALIDATE_LASTNAME_QUERY(r);if(i)return this.queries.VALIDATE_LASTNAME_QUERY(r);const s=n||await this.fetchData(o),{messages:a}=s?.data?.validateClientData||s;return this.checkDigital(r)?this.txt.onlyDigital:a?.length?this.concatErrorMessages(a):""},this.validateAdditionalGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:r}=t,o=this.queries.VALIDATE_ADDITIONAL_QUERY(r);if(i)return o;const s=n||await this.fetchData(o),{messages:a}=s?.data?.validateClientData||s;return a?.length?this.concatErrorMessages(a):""},this.validateNipGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:r}=t,{region:o}=t.dataset,s=this.queries.VALIDATE_NIP_QUERY(r,o);if(i)return s;const a=n||await this.fetchData(s),{messages:l}=a?.data?.validateClientData||a;return l?.length?this.concatErrorMessages(l):""},this.validateStreetGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:r}=t,{concatFrom:o,region:s}=t.dataset,a=this.form?.querySelector(o),l=`${r} ${a?.value||""}`,c=this.queries.VALIDATE_STREET_QUERY(l,s);if(i)return c;const u=n||await this.fetchData(c),{messages:h}=u?.data?.validateClientData||u;return h?.length?a&&"no_street_number"===h[0].code?(this.setValidityState(a,this.concatErrorMessages(h)),""):this.concatErrorMessages(h):(a&&this.setValidityState(a,""),"")},this.validateZipcodeGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:r}=t,{region:o}=t.dataset,s=this.queries.VALIDATE_ZIPCODE_QUERY(r,o);if(i)return s;const a=n||await this.fetchData(s),{messages:l}=a?.data?.validateClientData||a;return l?.length?this.concatErrorMessages(l):""},this.validateCityGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:r}=t,o=this.queries.VALIDATE_CITY_QUERY(r);if(i)return o;const s=n||await this.fetchData(o),{messages:a}=s?.data?.validateClientData||s;return a?.length?this.concatErrorMessages(a):""},this.validatePhone=e=>{const{input:t,getQuery:i}=e;if(i)return"";const{value:n}=t;return n.length>=9?"":this.concatErrorMessages([{code:"incorect_phone"}])},this.validatePhoneGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:r}=t,{concatFrom:o,region:s}=t.dataset,a=this.form?.querySelector(o),l=a?.value||"",c=l?`${l}${r}`:r;if(!s)return this.validatePhone(e);const u=this.queries.VALIDATE_PHONE_QUERY(c,s);if(i)return u;const h=n||await this.fetchData(u),{messages:d}=h?.data?.validateClientData||h;return d?.length?this.concatErrorMessages(d):""},this.validateEmailGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:r}=t,o=this.queries.VALIDATE_EMAIL_QUERY(r);if(i)return o;const s=n||await this.fetchData(o),{messages:a}=s?.data?.validateClientData||s;return a?.length?this.concatErrorMessages(a):""},this.validateBirthdateGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:r}=t,o=this.queries.VALIDATE_BIRTHDATE_QUERY(r);if(i)return o;const s=n||await this.fetchData(o),{messages:a}=s?.data?.validateClientData||s;return a?.length?this.concatErrorMessages(a):""},this.setPasswordState=({element:e,messages:t})=>{if(!t.length)return void this.removeValidityState(e);const i=t.filter((e=>this.passwordErrorCodes.includes(e.code)));if(!i.length)return void this.removeValidityState(e);const n=this.concatErrorMessages(i);this.setValidityState(e,n)},this.validateLoginGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:r}=t,{concatPassword:o}=t.dataset,s=this.form?.querySelector(o),a=s?.value||"",l=this.queries.VALIDATE_LOGIN_QUERY(r,a);if(i)return l;const c=n||await this.fetchData(l),{messages:u}=c?.data?.validateClientData||c;if(a&&this.setPasswordState({element:s,messages:u}),!u?.length)return"";
1const h=u.filter((e=>!this.passwordErrorCodes.includes(e.code)));return h.length?this.concatErrorMessages(h):""},this.validatePasswordGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:r}=t,{concatLogin:o}=t.dataset,s=this.form?.querySelector(o),a=s?.value||"",l=this.queries.VALIDATE_PASSWORD_QUERY(r,a);if(i)return l;const c=n||await this.fetchData(l),{messages:u}=c?.data?.validateClientData||c;if(!u?.length)return"";const h=u.filter((e=>!this.loginErrorCodes.includes(e.code)));return h.length?this.concatErrorMessages(h):""},this.validateIBANGQL=async e=>{const{input:t,getQuery:i}=e,{value:n}=t;if(i)return"";const r=await fetch(`/ajax/payments.php?action=verify_iban&bankAccount=${n}`),o=await r.json(),{errno:s}=o||{};return s?this.concatErrorMessages([{code:"incorrect_iban"}]):""},this.getInputQueries=async e=>(await Promise.all(e.map((async e=>{const t=await this.validateGraphQL({input:e,getQuery:!0});return`${e.id}:${t}`})))).join(""),this.validateInputsGQL=async e=>{const t=await this.getInputQueries(e),i=await this.fetchData(t);i?.data&&Object.keys(i.data).forEach((async t=>{const[n]=e.filter((e=>e.id===t));if(!n)return;const r=await this.validateGraphQL({input:n,response:i.data[t]});this.setValidityState(n,r)}))},this.clientExists=async e=>{const t=this.queries.VALIDATE_EMAIL_QUERY(e),i=await this.fetchData(t),{clientExists:n}=i?.data?.validateClientData||i;return n},this.validateMinLength=e=>{const t=e.getAttribute("minlength");return t?+t<=e.value.length?"":`${this.txt.minimalCharacters}${t}`:""},this.validateMaxLength=e=>{const t=e.getAttribute("maxlength");return t?+t>=e.value.length?"":`${this.txt.maximumCharacters}${t}`:""},this.validateInputs=async e=>{e.forEach((e=>{const t=this.validateNotEmpty(e)||this.validateMinLength(e)||this.validateMaxLength(e);""!==t&&this.setValidityState(e,t)}));const t=[...e].filter((e=>e.closest(".f-feedback:not(.--error)")));if(!t.length)return;[...t].filter((e=>!e.hasAttribute("data-graphql"))).forEach((e=>{this.setValidityState(e,"")}));const i=[...t].filter((e=>e.hasAttribute("data-graphql")));if(!i.length)return;const n=i.findIndex((e=>"iban"===e.dataset.graphql));-1!==n&&(await this.validateInput(i[n]),i.splice(n,1)),i.length&&await this.validateInputsGQL(i)},this.isPhoneNumber=e=>new RegExp("^[0-9*#+() ]+$").test(e),this.getGQLType=e=>{const{graphql:t}=e.dataset,i=t.split(" ");if(2===i.filter((e=>"phone"===e||"email"===e)).length){return this.isPhoneNumber(e.value)?"phone":"email"}return i[0]},this.validateGraphQL=async e=>{const{input:t,getQuery:i,response:n}=e,{graphql:r}=t.dataset;if(!r)return!1;const o=r.split(" ");switch(1===o.length?o[0]:this.getGQLType(t)){case"firstname":return await this.validateFirstnameGQL({input:t,getQuery:i,response:n});case"lastname":return await this.validateLastnameGQL({input:t,getQuery:i,response:n});case"additional":case"firm":return await this.validateAdditionalGQL({input:t,getQuery:i,response:n});case"nip":return await this.validateNipGQL({input:t,getQuery:i,response:n});case"street":return await this.validateStreetGQL({input:t,getQuery:i,response:n});case"zipcode":return await this.validateZipcodeGQL({input:t,getQuery:i,response:n});case"city":return await this.validateCityGQL({input:t,getQuery:i,response:n});case"phone":return await this.validatePhoneGQL({input:t,getQuery:i,response:n});case"email":return await this.validateEmailGQL({input:t,getQuery:i,response:n});case"birthdate":return await this.validateBirthdateGQL({input:t,getQuery:i,response:n});case"login":return await this.validateLoginGQL({input:t,getQuery:i,response:n});case"password":return await this.validatePasswordGQL({input:t,getQuery:i,response:n});case"iban":return await this.validateIBANGQL({input:t,getQuery:i,response:n});default:return this.setValidityState(t,"")}},this.validateInput=async e=>{const t=[...new Set(this.vars.changedInputs)].filter((e=>"username"!==e.autocomplete&&"current-password"!==e.autocomplete));if(this.vars.changedInputs=[],t.length>1)return this.removeAllValidityState(),this.validateForm(),!1;const{concatTo:i}=e.dataset;if(i)return this.validateInput(this.form.querySelector(i));let n=this.validateNotEmpty(e)||this.validateMinLength(e)||this.validateMaxLength(e);if(""!==n)return this.setValidityState(e,n);return e.getAttribute("data-graphql")?(n=await this.validateGraphQL({input:e}),this.setValidityState(e,n)):this.setValidityState(e,n)},this.validateSelects=e=>{e.forEach((e=>{this.validateSelect(e)}))},this.validateSelect=e=>{if(!e)return!0;let t="";return e.closest(".--placeholder")&&e.selectedIndex<1?(t=this.txt.noOptionSelected,this.setValidityState(e,t)):this.setValidityState(e,t)},this.validateCheckboxes=e=>{e.forEach((e=>{this.validateCheckbox(e)}))},this.validateCheckbox=e=>!e||(e.checked?this.setValidityState(e,"",!0):this.setValidityState(e,"error",!0)),this.validateObjectGQL=async(e={})=>{let t="";for(const[i,n]of Object.entries(e)){const r={dataset:{}};r.value="street"===i&&e.streetNumber?`${n} ${e.streetNumber}`:n,r.dataset.region=e.region,r.dataset.graphql=i;const o=await this.validateGraphQL({input:r,getQuery:!0});o&&(t+=`${i}:${o}`)}if(""===t)return!0;const i=await this.fetchData(t);if(!i?.data)return!0;const n=[];for(const[t,r]of Object.entries(i.data)){const o={dataset:{}};o.value="street"===t&&e.streetNumber?`${r} ${e.streetNumber}`:r,o.dataset.region=e.region,o.dataset.graphql=t,n.push(await this.validateGraphQL({input:o,response:i.data[t]}))}return!n.filter((e=>""!==e)).length},this.validateObjectRequired=(e={},t=[])=>{if(!t.length)return!0;for(const[i,n]of Object.entries(e))if(t.includes(i)&&""===n)return validRequired=!1,!1;return!0},this.validateObject=async(e={},t)=>{if(!this.validateObjectRequired(e,t))return!1;return!!await this.validateObjectGQL(e,t)},this.validateForm=async e=>{const t=e||this.form,i=t.querySelectorAll('.f-control.--validate:not(:disabled):not([type="checkbox"])'),n=[...i].filter((e=>e.closest(".f-feedback:not(.--error):not(.--success)")));await this.validateInputs(n);const r=t.querySelectorAll("select.f-select.--validate:not(:disabled), div.f-select.--validate select:not(:disabled)"),o=[...r].filter((e=>e.closest(".f-feedback:not(.--error):not(.--success)")));this.validateSelects(o);const s=t.querySelectorAll('.f-control.--validate[type="checkbox"]:not(:disabled)'),a=[...s].filter((e=>e.closest(".--checkbox:not(.--error):not(.--success), .--switch:not(.--error):not(.--success)")));this.validateCheckboxes(a);const l=[...i].filter((e=>e.closest(".f-feedback.--error"))),c=[...r].filter((e=>e.closest(".f-feedback.--error"))),u=[...s].filter((e=>e.closest(".--checkbox.--error, .--switch.--error, .f-feedback.--error")));return l.length||c.length||u.length?("function"==typeof this.callbacks.validateAll&&this.callbacks.validateAll(e,!1),!1):("function"==typeof this.callbacks.validateAll&&this.callbacks.validateAll(e,!0),!0)},this.validateNotEmpty=e=>e.required||0!==e.value.length?e.value.length>0?"":this.txt.mandatoryField:"",this.createMessageElement=e=>{const t=document.createElement("div");return t.classList.add("f-message"),t.setAttribute("aria-live","polite"),e.append(t),t},this.setValidityState=(e,t,i)=>{if(!(e&&e instanceof HTMLElement))return!1;const n=e.closest(".f-feedback")||e.parentNode;n.classList.remove("--success","--error");const r=!i&&(n.querySelector(".f-message")||this.createMessageElement(n));return n.classList.toggle("--empty",""===e.value),""===t?(n.classList.add("--success"),r&&(r.textContent=""),"function"==typeof this.callbacks.validate&&this.callbacks.validate(e,!0),!0):(n.classList.add("--error"),r&&(r.textContent=t),"function"==typeof this.callbacks.validate&&this.callbacks.validate(e,!1),!1)},this.getValidityState=e=>{if(!e)return"";const t=e.closest(".f-feedback")||e.parentNode;return t.classList.contains("--success")?"success":t.classList.contains("--error")?"error":""},this.removeAllValidityState=e=>{(e||this.form).querySelectorAll(".f-control.--validate").forEach((e=>{this.removeValidityState(e)}))},this.removeValidityState=e=>{const t=e.closest(".f-feedback")||e.parentNode;t.classList.remove("--success","--error");const i=t.querySelector(".f-message");i&&(i.textContent="")},this.removeEvents=()=>{this.form&&(this.form.querySelectorAll(".f-control.--validate").forEach((e=>{"checkbox"!==e.type?e.removeEventListener("input",this.events.onInput):e.removeEventListener("change",this.events.onChange)})),"FORM"===this.form.tagName&&this.form.removeEventListener("submit",this.events.onSubmit))},this.initEvents=()=>{this.form&&(this.form.querySelectorAll(".f-control.--validate").forEach((e=>{"checkbox"!==e.type?e.addEventListener("input",this.events.onInput):e.addEventListener("change",this.events.onChange)})),"FORM"===this.form.tagName&&this.form.addEventListener("submit",this.events.onSubmit))},this.init=()=>{this.form=t||document.querySelector(i)||document,this.initEvents()},this.destroy=()=>{this.removeEvents()},this.reInit=()=>{this.destroy(),this.init()},this.debounces={validateInput:this.debounce(this.validateInput)}}app_shop.graphql||(app_shop.graphql={}),app_shop.graphql.trackingEvents=async e=>{const{headers:t}=e||{};if(!t)return!1;const i=t.get("x-iai-tracking-events");if(!i||+i<1)return!1;const n=JSON.stringify({query:"query {\n trackingEvents\n }"});try{const e=await fetch(`${app_shop?.urls?.graphql||"/graphql/v1/"}?trackingEvents`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:n}),t=await e.json();return t.data.trackingEvents?.forEach((e=>{const t=new Function(e);try{t()}catch(e){}})),t.data.trackingEvents}catch(e){return[]}},app_shop.fn.ajaxLoadSite=function(e){if((()=>{const e=document.getElementById("ajaxLoadSite"),t=document.getElementById("ajaxLoadSite_cover");e&&e.remove(),t&&t.remove()})(),!e)return;const t=`\n <div id="ajaxLoadSite_cover" style="height:${document.body.scrollHeight}px;width:100%;position:absolute;
1left:0;top:0;"></div>\n <div id="ajaxLoadSite" style="left:50%;transform:translateX(-50%);"></div>\n `;document.body.insertAdjacentHTML("beforeend",t)},app_shop.fn.ajaxLoadSiteMessage=function(e){const t=document.getElementById("ajaxLoadSite");t&&t.append(e)};class WebAuthn{constructor(e={}){this.IAIAccountsUrl=e.IAIAccountsUrl||"https://accounts.idosell.com/",this.urls=e.urls||{generateRegister:`${this.IAIAccountsUrl}webAuthn/generateRegisterRequest.php`,register:`${this.IAIAccountsUrl}webAuthn/register.php`,generateLogin:`${this.IAIAccountsUrl}webAuthn/generateLoginRequest.php`,login:`${this.IAIAccountsUrl}webAuthn/login.php`,gql:"/graphql/v1/"},this.supportMac=e.supportMac??!0,this.supportIos=e.supportIos??!0,this.supportSafari=e.supportSafari??!0,this.supportOpera=e.supportOpera??!0}async fetchDataGQL(e={}){const{data:t,url:i,urlParameter:n=""}=e;if(!t)return!1;const r=`${i||this.urls.gql||"/graphql/v1/"}${n}`;try{const e=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:t});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return await e.json()}catch(e){throw new Error(`A connection error occurred. It was not possible to retrieve data from ${r}`)}}async fetchData(e={}){const{data:t,url:i}=e;if(!t||!i)return!1;try{const e=await fetch(i,{method:"POST",body:t,credentials:"include",cache:"no-cache"});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return await e.json()}catch(e){throw new Error(`A connection error occurred. It was not possible to retrieve data from ${i}`)}}browserNotSupported(){const e=new Error("Browser not supported.");throw e.code=1,e}isOpera(){const{browser:e}=document.documentElement.dataset;return!!e&&("Opera"===e||"Safari"===e&&navigator.userAgent.indexOf("OP")>-1)}isNotSupportedSafari(){const{browser:e,browserVersion:t}=document.documentElement.dataset;return!(!e||!t)&&("Safari"===e&&+t<15)}async checkBrowserSupport(){return!(!window.fetch||!navigator.credentials||!navigator.credentials.create||!window.PublicKeyCredential?.isUserVerifyingPlatformAuthenticatorAvailable||!await(window.PublicKeyCredential?.isUserVerifyingPlatformAuthenticatorAvailable())||!this.supportMac&&app_shop.vars.isMac||!this.supportIos&&app_shop.vars.isIos||!this.supportSafari&&app_shop.vars.isSafari||!this.supportOpera&&this.isOpera()||this.isNotSupportedSafari())}checkResponse(e){if(!e)throw new Error("Failed to retrieve data.");if("error"===e.status)throw new Error(e.errorMsg||"Unknown error occured.")}recursiveBase64StrToArrayBuffer(e){const t="=?BINARY?B?";let i={};if(Array.isArray(e))i=e.map((e=>this.recursiveBase64StrToArrayBuffer(e)));else{if("object"!=typeof e)return e;Object.keys(e).forEach((n=>{if("string"==typeof e[n]){let r=e[n];if(r.startsWith(t)&&r.endsWith("?=")){r=r.slice(11,-2);const e=window.atob(r),t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);i[n]=t.buffer}else i[n]=e[n]}else i[n]=this.recursiveBase64StrToArrayBuffer(e[n])}))}return i}arrayBufferToBase64(e){const t=new Uint8Array(e),i=Array.from(t,(e=>String.fromCharCode(e))).join("");return window.btoa(i)}async registration({userLogin:e="",authorizeToken:t=""}){if(await this.checkBrowserSupport()||this.browserNotSupported(),!e)throw new Error('"userLogin" is required.');if(!t)throw new Error('"authorizeToken" is required. GraphQL expressCheckoutVerifyOtp > verificationToken.');const i=await this.fetchData({data:t,url:this.urls.generateRegister});this.checkResponse(i);const n=JSON.parse(i.data),r=this.recursiveBase64StrToArrayBuffer(n),o=await navigator.credentials.create(r),{clientDataJSON:s,attestationObject:a}=o?.response||{},l={userLogin:e,domain:window.location.hostname,authenticatorTransportMethods:o.response.getTransports?o.response.getTransports():[],clientDataJSONBase64:s?this.arrayBufferToBase64(s):"",attestationObjectBase64:a?this.arrayBufferToBase64(a):""},c=await this.fetchData({data:JSON.stringify(l),url:this.urls.register});this.checkResponse(c)}async login(){await this.checkBrowserSupport()||this.browserNotSupported();const e={domain:window.location.hostname},t=await this.fetchData({data:JSON.stringify(e),url:this.urls.generateLogin});this.checkResponse(t);const i=JSON.parse(t.data),n=this.recursiveBase64StrToArrayBuffer(i),r=await navigator.credentials.get(n),{rawId:o,response:{clientDataJSON:s,authenticatorData:a,signature:l,userHandle:c}}=r||{},u={domain:window.location.hostname,publicKeyCredentialBinRawId:o?this.arrayBufferToBase64(o):null,clientDataJSONBase64:s?this.arrayBufferToBase64(s):null,authenticatorDataBase64:a?this.arrayBufferToBase64(a):null,
1signatureBase64:l?this.arrayBufferToBase64(l):null,userHandleBinBase64:c?this.arrayBufferToBase64(c):null},h=await this.fetchData({data:JSON.stringify(u),url:this.urls.login});if(this.checkResponse(h),"success"!==h.status)throw new Error(h.ms);return await this.loginToShop(h.loginToken)}async loginToShop(e){if(!e)throw new Error('"loginToken" is invalid.');const t=JSON.stringify({query:`mutation{\n loginByIAIAccountsToken(token: "${e}") {\n status\n login\n }\n }`}),i=await this.fetchDataGQL({data:t,urlParameter:"?mutation=loginByToken"});return i?.data?.loginByIAIAccountsToken}}app_shop.fn.cookie={get:function(e){const t=document.cookie.split(";");for(let i=0;i<t.length;i++){const n=t[i].trim(),[r,o]=n.split("=");if(r===e)return decodeURIComponent(o)}return null},set:function(e,t,i){let n="";if(i){const e=new Date;e.setTime(e.getTime()+24*i*60*60*1e3),n=`; expires=${e.toUTCString()}`}document.cookie=`${e}=${encodeURIComponent(t)}${n}; path=/`},remove:function(e){this.set(e,"",-1)}};var projectorv3_disable_ajax=projectorv3_disable_ajax||1,projectorClass=function(){classObj=this,this.currency="",this.curr_class="",this.firstRun=!0,this.onDisableAlert=!0,this.timeoutAjax=18e3,this.errorMsg=[],this.currentSizeObj={},this.configObj={},this.action="",this.innerHTML="",this.nettoPrice="net"===app_shop.vars.priceType,this.options=[],this.options.hide_unit=!1,this.options.friendly_shipping_format=[],this.options.endStartFunction=function(){},this.options.endInitFunction=function(){},this.options.beginStartFunction=function(){},this.options.endShippingFunction=function(){},this.options.formatPrice=function(e){},this.externalFormatFn=!1,this.options.endGetAjaxProductDataFunction=function(){},this.options.clearXMLGetAjaxProductDataFunction=function(e){},this.options.beginGetAjaxProductDataFunction=function(){},this.options.endSetCurrentSizeFunction=function(){},this.options.ajaxAddFunction=function(e){classObj.alert(classObj.txt.dodano_produkt)},this.options.contenersPrefix="projector_",this.options.curr_before_price=!1,this.options.choiceSize=!1,this.options.contact_link="/contact.php",this.options.hoursBeforeOrderBy=3,this.isStarted=!1,this.prefix=this.options.contenersPrefix,this.actions={},this.txt=[],this.txt.oszczedzasz="OszczÄdzasz ",this.txt.taniej="%, czyli ",this.txt.wzestawie=" kupujÄ
c w zestawie",this.txt.niedostepny="Produkt niedostÄpny",this.txt.tylkotel="Cena na telefon. Skontaktuj siÄ ze sprzedawcÄ
",this.txt.tylko_punkty="Towar dostÄpny tylko w programie lojalnoÅciowym.",this.txt.gratis="Dostawa gratis!",this.txt.gratis_produkt="Gratis!",this.txt.niemastanu="Produkt niedostÄpny",this.txt.status_24="24 godz.",this.txt.status_48="48 godz.",this.txt.status_natychmiast="w ciÄ
gu 24h",this.txt.day=" dzieÅ ",this.txt.days=" dni ",this.txt.hour=" godz. ",this.txt.hours=" godz. ",this.txt.min=" min ",this.txt.mins=" min ",this.txt.za=" za ",this.txt.proc="%",this.txt.wybrany_rozmiar="Rozmiar",this.txt.wysylka="WysyÅka ",this.txt.wysylka_za="WysyÅka w ciÄ
gu ",this.txt.dostepny="Dostawa ",this.txt.dostepny_za="Dostawa za ",this.txt.pkt="pkt.",this.txt.status_full="wiÄksza iloÅÄ",this.txt.status_amount_null="brak w magazynie",this.txt.forpointsonly="Produkt możesz kupiÄ za punkty",this.txt.disable_desc="Skontaktuj siÄ z nami",this.txt.choiceSize="Wybierz rozmiar",this.txt.maksymalnie="Maksymalnie możesz zamówiÄ",this.txt.minimalnie="Minimalnie możesz zamówiÄ",this.txt.brak_magazyn="Brak na magazynie",this.txt.dodano_produkt="Produkt zostaÅ dodany.",this.txt.dodano_produkt_blad="WystÄ
piÅ bÅÄ
d podczas dodawania produktu.",this.txt.ilosc_mm="",this.txt.ilosc_mo="",this.txt.ilosc_mo_inf="",this.txt.infinity="",this.txt.koszt_od="Koszt od ",this.txt.wysylka_total_begin="<br/>(z tow. z koszyka ",this.txt.wysylka_total_end=")",this.txt.nawias_end="",this.txt.amount="",this.txt.order_by="Zamów do ",this.txt.it_will_ship_today=" to wyÅlemy dzisiaj";var e=!0;this.isset=function(e){return void 0!==window[e]},this.getAttr=function(e,t){return e&&e.hasAttribute(t)?e.getAttribute(t):""},this.getData=function(e){try{return e}catch(e){}},this.getIndex=function(e,t){var i=0;for(var n in e){if(t===i)return n;i++}return null},this.formatPrice=function(e,t,i,n,r){return currency=i||this.currentSizeObj.currency,r=!!r,t&&(this.configObj.rebateNumber&&r&&(e=this.configObj.rebateNumber.price),e*=this.configObj.valueOfNumberInput),n?parseFloat(e.toFixed(2)):this.externalFormatFn?this.options.formatPrice({price:e,currency:currency}):this.options.curr_before_price?'<span class="projector_price"><span class="projector_currency">'+currency+"</span>"+(1*e).toFixed(2)+"</span>":'<span class="projector_price">'+(1*e).toFixed(2)+'<span class="projector_currency">'+currency+"</span></span>"},this.status_description=function(){if(this.hide(document.querySelector("#"+this.prefix+"status_gfx")),document.querySelector("#"+this.prefix+"status")?.classList.add("--status-hide"),this.currentSizeObj.amount_mm&&this.currentSizeObj.amount_mo&&""!=this.txt.ilosc_mm){var e=this.currentSizeObj.amount_mm,t=this.currentSizeObj.amount_mo,i=e+" "+(e>1?this.currentSizeObj.unit_plural:this.currentSizeObj.unit),n=t+" "+(t>1?this.currentSizeObj.unit_plural:this.currentSizeObj.unit),r=this.txt.ilosc_mm.format(i),o=this.txt.ilosc_mo.format(n);if(e>0&&-1==t)return document.querySelector("#"+this.prefix+"status_description")&&(document.querySelector("#"+this.prefix+"status_description").innerHTML='<div id="#'+this.prefix+'amount_mm">'+r+'</div><div id="#'+this.prefix+'amount_mo">'+this.txt.ilosc_mo_inf+"</div>"),!1;if(e>0&&t>0)return document.querySelector("#"+this.prefix+"status_description")&&(document.querySelector("#"+this.prefix+"status_description").innerHTML='<div id="#'+this.prefix+'amount_mm">'+r+'</div><div id="#'+this.prefix+'amount_mo">'+o+"</div>"),!1}this.currentSizeObj.availability.delivery_date&&"disable"==this.currentSizeObj.availability.status?document.querySelector("#"+this.prefix+"status_description")&&(document.querySelector("#"+this.prefix+"status_description").innerHTML=this.currentSizeObj.availability.status_description+" <span>"+this.currentSizeObj.availability.delivery_date+"</span>"):this.currentSizeObj.availability.status_description?(document.querySelector("#"+this.prefix+"status_description")&&(document.querySelector("#"+this.prefix+"status_description").innerHTML=this.currentSizeObj.availability.status_description),document.querySelector("#"+this.prefix+"status_description")?.classList.remove("--status-hide","--phone-disable")):"disable"==this.currentSizeObj.availability.status?(document.querySelector("#"+this.prefix+"status")?.classList.add("--status-hide","--phone-disable"),this.hide(document.querySelector("#"+this.prefix+"status_description_wrapper"))):(document.querySelector("#"+this.prefix+"status")?.classList.remove("--status-hide","--phone-disable"),this.hide(document.querySelector("#"+this.prefix+"status_description_wrapper"))),this.currentSizeObj.availability.status_gfx&&(this.show(document.querySelector("#"+this.prefix+"status_gfx")),document.querySelector("#"+this.prefix+"status_gfx")?.setAttribute("src",this.currentSizeObj.availability.status_gfx),document.querySelector("#"+this.prefix+"status")?.classList.remove("--status-hide"))},this.sellBy=function(e,t,i){if("disable"==this.currentSizeObj.availability.status)return!this.onDisableAlert||"product_bundle"==this.currentSizeObj.product_type&&1==this.firstRun||this.alert(this.txt.niedostepny),e;if(e=parseFloat(e),t=parseFloat(t),i=parseFloat(i),(isNaN(i)||i<=e)&&0===Object.keys(product_data.order_quantity_range).length)return e.toFixed(t);number=Math.floor(i/e)*e,number=(i/e*e-number).toFixed(t+1)>0?(1*number+e).toFixed(t):number.toFixed(t),number=parseFloat(number);var n=this.currentSizeObj.amount,r=e;if(0!==Object.keys(product_data.order_quantity_range).length){var o=product_data.order_quantity_range;if(o.max_quantity_per_order){var s=parseFloat(o.max_quantity_per_order);n=n>s||-1==n?s:n}if(o.max_size_quantity_per_order){var a=parseFloat(o.max_size_quantity_per_order);n=n>a||-1==n?a:n}if(o.min_quantity_per_order){var l=parseFloat(o.min_quantity_per_order);r=l>r?l:r}if(o.min_size_quantity_per_order){var c=parseFloat(o.min_size_quantity_per_order);r=c>r?c:r}if(o.minimum_quantity_subscription){var u=parseFloat(o.minimum_quantity_subscription);r=u>r?u:r}}if(r&&number<r){if(this.isStarted){const i=(Math.ceil(parseFloat(r)/e)*e).toFixed(t)>1?this.currentSizeObj.unit_plural:this.currentSizeObj.unit;this.alert(this.txt.minimalnie+" "+(Math.ceil(parseFloat(r)/e)*e).toFixed(t)+" "+i)}return this.isStarted=!0,(Math.ceil(parseFloat(r)/e)*e).toFixed(t)}if(number>n&&-1!=n){const i=(Math.floor(parseFloat(n)/e)*e).toFixed(t)>1?this.currentSizeObj.unit_plural:this.currentSizeObj.unit;return this.alert(this.txt.maksymalnie+" "+(Math.floor(parseFloat(n)/e)*e).toFixed(t)+" "+i),this.isStarted=!0,(Math.floor(parseFloat(n)/e)*e).toFixed(t)}return this.isStarted=!0,number},this.projectorInit=function(e){if(!this.isset("product_data"))return this.errorMsg.push("no data"),!1;this.curr_class=document.querySelector("#"+this.prefix+"form")?.className,e.contenersPrefix&&(this.options.contenersPrefix=e.contenersPrefix,this.prefix=e.contenersPrefix),"undefined"!==e.onDisableAlert&&(this.onDisableAlert=e.onDisableAlert),e.beginStartFunction&&(this.options.beginStartFunction=e.beginStartFunction),e.formatPrice&&(this.options.formatPrice=e.formatPrice,this.externalFormatFn=!0),e.endInitFunction&&(this.options.endInitFunction=e.endInitFunction),e.endStartFunction&&(this.options.endStartFunction=e.endStartFunction),e.endShippingFunction&&(this.options.endShippingFunction=e.endShippingFunction),e.endSetCurrentSizeFunction&&(this.options.endSetCurrentSizeFunction=e.endSetCurrentSizeFunction),e.ajaxAddFunction&&(this.options.ajaxAddFunction=e.ajaxAddFunction),e.clearXMLGetAjaxProductDataFunction&&(this.options.clearXMLGetAjaxProductDataFunction=e.clearXMLGetAjaxProductDataFunction),e.endGetAjaxProductDataFunction&&(this.options.endGetAjaxProductDataFunction=e.endGetAjaxProductDataFunction),e.beginGetAjaxProductDataFunction&&(this.options.beginGetAjaxProductDataFunction=e.beginGetAjaxProductDataFunction),e.hide_unit&&(this.options.hide_unit=e.hide_unit),e.curr_before_price&&(this.options.curr_before_price=e.curr_before_price),e.contact_link&&(this.options.contact_link=e.contact_link),e.hoursBeforeOrderBy&&(this.options.hoursBeforeOrderBy=e.hoursBeforeOrderBy),e.getShippingTimeFunction&&e.productParam
1sFunction&&(this.options.getShippingTimeFunction=e.getShippingTimeFunction,this.options.productParamsFunction=e.productParamsFunction),e.friendly_shipping_format&&(this.options.friendly_shipping_format=e.friendly_shipping_format),product_data.currency&&(this.currency=product_data.currency),this.txt.amount=document.querySelector("#"+this.prefix+"amount")?.innerHTML,product_data.sizes&&product_data.sizes.onesize&&(this.setCurrentSizeObj(this.getIndex(product_data.sizes,0)),this.start()),this.options.endInitFunction()},this.variety=function(e,t,i){return 1==e?t:i},this.formatDate=e=>e.slice(0,10).split("-").reverse().slice(0,-1).join("."),this.shippingTimeBuffer=[],this.timeoutHandle="",this.updateShippingTime=async()=>{const e=await this.options.getShippingTimeFunction(this.options.productParamsFunction());if(e&&e.data&&e.data.shipping&&e.data.shipping.shippingTime){const t=e.data.shipping.shippingTime;this.currentSizeObj.shipping_time={},this.currentSizeObj.shipping_time.unknown_time=t.unknownTime,this.currentSizeObj.shipping_time.today=`${t.shippingTime.today}`,this.currentSizeObj.shipping_time.today_shipment_deadline=t.todayShipmentDeadline,this.currentSizeObj.shipping_time.days=t.shippingTime.time.days,this.currentSizeObj.shipping_time.hours=t.shippingTime.time.hours,this.currentSizeObj.shipping_time.minutes=t.shippingTime.time.minutes,this.currentSizeObj.shipping_time.week_day=t.shippingTime.weekDay,this.currentSizeObj.shipping_time.week_amount=t.shippingTime.weekAmount,this.currentSizeObj.shipping_time.time=t.time}return e},this.shippingTime=async function(e){result=[];const t=md5(this.options.productParamsFunction()),i=this.shippingTimeBuffer.filter((e=>e.key===t));let n={};if(i.length)return i[0];if(projectorv3_disable_ajax&&0==projectorv3_disable_ajax||(n=await this.updateShippingTime()),"disable"!==this.currentSizeObj.availability.status&&this.currentSizeObj.shipping_time){const e=this.currentSizeObj.shipping_time;let i=!1;if(e.today_shipment_deadline){const t=e.today_shipment_deadline.split(":"),n=new Date;n.setHours(t[0],t[1],t[2]);const r=new Date;r.setHours(r.getHours()+this.options.hoursBeforeOrderBy),i=n.getTime()-r.getTime()<0}if(e.today_shipment_deadline&&i){result[0]=this.txt.order_by,result[1]=e.today_shipment_deadline.slice(0,-3)+this.txt.it_will_ship_today;const i={key:t,value:result,response:n};return this.shippingTimeBuffer.push(i),i}if("true"==e.today){result[0]=this.txt.wysylka,result[1]=this.options.friendly_shipping_format[0];const e={key:t,value:result,response:n};return this.shippingTimeBuffer.push(e),e}if(0===+e.days||1===+e.days&&0===+e.hours&&0===+e.minutes){this.txt.tomorrow?(result[0]=this.txt.wysylka,result[1]=this.txt.tomorrow):(result[0]=this.txt.wysylka_za,result[1]=this.txt.status_24);const e={key:t,value:result,response:n};return this.shippingTimeBuffer.push(e),e}if(+e.days>29&&this.txt.shipmentIn){result[0]=this.txt.shipmentIn,result[1]=+e.days+this.txt.days;const i={key:t,value:result,response:n};return this.shippingTimeBuffer.push(i),i}result[0]=this.txt.wysylka,result[1]=this.options.friendly_shipping_format[+e.week_day],+e.week_amount>0&&(result[1]+=`(${this.formatDate(e.time)})`)}const r={key:t,value:result,response:n};return this.shippingTimeBuffer.push(r),r},this.show=function(e){if(!e)return;if(""!==e.style.display)return void(e.style.display="");const{display:t}=getComputedStyle(e);e.style.display="none"!==t?t:"block"},this.hide=function(e){e&&(e.style.display="none")},this.off=function(e){if(!e)return;const t=e.cloneNode(!0);e.parentNode.replaceChild(t,e)},this.start=function(){if(this.options.beginStartFunction(),window.projectorv3_disable_ajax=projectorv3_disable_ajax||1,!this.currentSizeObj.type)return!1;var t=this;const n=document.getElementById("projector_form")?.getAttribute("data-subscription");var r=async function(){(product_data.sizes.uniw||product_data.sizes.onesize)&&t.setCurrentSizeObj("uniw"),"true"===n?t.currentSizeObj.price=product_data.sizes[t.currentSizeObj.type].price_subscription:"false"===n&&(t.currentSizeObj.price=product_data.sizes[t.currentSizeObj.type].price_normal),document.querySelector("#"+t.prefix+"form")&&(document.querySelector("#"+t.prefix+"form").className=t.curr_class+" "+t.currentSizeObj.availability.status),t.configObj.displaySize="onesize"!=t.currentSizeObj.type,t.currentSizeObj.availability&&(t.configObj.disableNumberInput="disable"==t.currentSizeObj.availability.status),t.configObj.disableBuyButton=!1,"disable"!=t.currentSizeObj.availability.status&&"true"!=t.currentSizeObj.phone_price||(t.configObj.disableBuyButton=!0),t.configObj.displayBuySection=!!t.currentSizeObj.gratis;var r=t.currentSizeObj.unit_sellby+"";if(document.querySelector("#"+t.options.contenersPrefix+"number")&&(r=document.querySelector("#"+t.options.contenersPrefix+"number").value),t.configObj.valueOfNumberInput=t.sellBy(t.currentSizeObj.unit_sellby,t.currentSizeObj.unit_precision,r.replace(",",".")),t.currentSizeObj.rebateNumber)for(i in t.configObj.rabatIndex=-1,t.configObj.rabatIndex_last=-1,t.currentSizeObj.rebateNumber){var o=t.currentSizeObj.rebateNumber[i].threshold_end?t.currentSizeObj.rebateNumber[i].threshold_end:t.configObj.valueOfNumberInput;if(parseFloat(t.configObj.valueOfNumberInput)>=parseFloat(t.currentSizeObj.rebateNumber[i].threshold)&&parseFloat(t.configObj.valueOfNumberInput)<=parseFloat(o)){if(t.configObj.rabatIndex=i,t.configObj.rabatIndex_last=i,!t.currentSizeObj.rebateNumber[1*i+1]||parseFloat(t.configObj.valueOfNumberInput)<parseFloat(t.currentSizeObj.rebateNumber[1*i+1].threshold))break}else parseFloat(t.configObj.valueOfNumberInput)>=parseFloat(t.currentSizeObj.rebateNumber[i].threshold)&&(t.configObj.rabatIndex_last=i)}if(t.configObj.rabatIndex&&-1!=t.configObj.rabatIndex?(t.configObj.rebateNumber=t.currentSizeObj.rebateNumber[t.configObj.rabatIndex],t.configObj.rebateNumberNext=t.configObj.rebateNumber):t.configObj.rebateNumber=!1,t.currentSizeObj.rebateNumber&&t.currentSizeObj.rebateNumber[1*t.configObj.rabatIndex+1]&&(t.configObj.rebateNumberNext=t.currentSizeObj.rebateNumber[1*t.configObj.rabatIndex+1]),t.configObj.rabatIndex_last&&t.currentSizeObj.rebateNumber[1*t.configObj.rabatIndex_last+1]&&
1(t.configObj.rebateNumberNext=t.currentSizeObj.rebateNumber[1*t.configObj.rabatIndex_last+1]),"onesize"==t.currentSizeObj.type||"uniw"==t.currentSizeObj.type?t.hide(document.querySelector("#"+t.prefix+"sizes_cont")):t.show(document.querySelector("#"+t.prefix+"sizes_cont")),t.status_description(),document.querySelector("#"+t.prefix+"amount")){t.show(document.querySelector("#"+t.prefix+"amount"));var s=t.currentSizeObj.amount;0==s?t.hide(document.querySelector("#"+t.prefix+"amount")):-1==s&&(s=t.txt.infinity,""==t.txt.infinity&&t.hide(document.querySelector("#"+t.prefix+"amount"))),1==s?s=s+" "+t.currentSizeObj.unit:s>1&&(s=s+" "+t.currentSizeObj.unit_plural),document.querySelector("#"+t.prefix+"amount")&&(document.querySelector("#"+t.prefix+"amount").innerHTML=t.txt.amount.format(s))}if(t.currentSizeObj.product_type&&"product_virtual"==t.currentSizeObj.product_type&&t.hide(document.querySelector("#"+t.prefix+"amount")),"y"==t.currentSizeObj.availability.visible&&t.currentSizeObj&&t.currentSizeObj.availability.status_description?(t.show(document.querySelector("#"+t.prefix+"status_description_wrapper")),t.currentSizeObj.availability.status_gfx&&t.show(document.querySelector("#"+t.prefix+"status_gfx")),document.querySelector("#"+t.prefix+"status")?.classList.remove("--status-hide")):(t.hide(document.querySelector("#"+t.prefix+"status_description_wrapper")),t.hide(document.querySelector("#"+t.prefix+"status_gfx")),document.querySelector("#"+t.prefix+"status")?.classList.add("--status-hide")),"true"==t.currentSizeObj.availability.delivery_days_undefined&&"true"==t.currentSizeObj.delivery.undefined?t.hide(document.querySelector("#"+t.prefix+"delivery_wrapper")):t.show(document.querySelector("#"+t.prefix+"delivery_wrapper")),t.hide(document.querySelector("#"+t.prefix+"delivery_days")),projectorv3_disable_ajax&&0==projectorv3_disable_ajax){if(t.hide(document.querySelector("#"+t.prefix+"delivery_days")),t.currentSizeObj&&"true"!=t.currentSizeObj.availability.delivery_days_undefined){document.querySelector("#"+t.prefix+"status")?.classList.add("--loading","--time-show");const e=await t.shippingTime();if(e.value.length?(document.querySelector("#"+t.prefix+"delivery_label")&&(t.show(document.querySelector("#"+t.prefix+"delivery_label")),document.querySelector("#"+t.prefix+"delivery_label").innerHTML=e.value[0]),document.querySelector("#"+t.prefix+"delivery_days")&&(t.show(document.querySelector("#"+t.prefix+"delivery_days")),document.querySelector("#"+t.prefix+"delivery_days").innerHTML=e.value[1])):document.querySelector("#"+t.prefix+"status")?.classList.remove("--time-show"),document.querySelector("#"+t.prefix+"status_wrapper")){const e=document.querySelector("#"+t.prefix+"status_wrapper");e.style.minHeight="0px",e.style.minHeight=`${e.offsetHeight}px`}document.querySelector("#"+t.prefix+"status")?.classList.remove("--loading"),t.options.endShippingFunction(e.response)}}else if("true"!=t.currentSizeObj.availability.delivery_days_undefined){var a=t;clearTimeout(a.timeHandle),document.querySelector("#"+a.prefix+"delivery_days")&&document.querySelector("#"+a.prefix+"delivery_days").closest(".product_section")?.classList.add("loading"),a.timeHandle=setTimeout((async function(){document.querySelector("#"+t.prefix+"status")?.classList.add("--loading","--time-show");const e=await t.shippingTime();if(e.value.length?(document.querySelector("#"+t.prefix+"delivery_label")&&(t.show(document.querySelector("#"+t.prefix+"delivery_label")),document.querySelector("#"+t.prefix+"delivery_label").innerHTML=e.value[0]),document.querySelector("#"+t.prefix+"delivery_days")&&(t.show(document.querySelector("#"+t.prefix+"delivery_days")),document.querySelector("#"+t.prefix+"delivery_days").innerHTML=e.value[1])):document.querySelector("#"+t.prefix+"status")?.classList.remove("--time-show"),document.querySelector("#"+t.prefix+"status_wrapper")){const e=document.querySelector("#"+t.prefix+"status_wrapper");e.style.minHeight="0px",e.style.minHeight=`${e.offsetHeight}px`}document.querySelector("#"+t.prefix+"status")?.classList.remove("--loading"),t.options.endShippingFunction(e.response)}),50)}t.hide(document.querySelector("#"+t.prefix+"shipping_unknown")),t.currentSizeObj.product_type&&("product_virtual"==t.currentSizeObj.product_type||"product_service"==t.currentSizeObj.product_type)||"disable"==t.currentSizeObj.availability.status?(t.hide(document.querySelector("#"+t.prefix+"shipping_info")),t.hide(document.querySelector("#"+t.prefix+"shipping_dialog")),t.currentSizeObj.availability.status_description?t.show(document.querySelector("#"+t.prefix+"status_description")):t.hide(document.querySelector("#"+t.prefix+"status_description"))):(t.show(document.querySelector("#"+t.prefix+"shipping_info")),t.show(document.querySelector("#"+t.prefix+"shipping_dialog")),t.hide(document.querySelector("#"+t.prefix+"status_description"))),t.currentSizeObj.delay_time&&"true"==t.currentSizeObj.delay_time.unknown_delivery_time&&"order"==t.currentSizeObj.availability.status?(t.hide(document.querySelector("#"+t.prefix+"shipping_info")),t.hide(document.querySelector("#"+t.prefix+"shipping_dialog")),t.hide(document.querySelector("#"+t.prefix+"status_description")),t.hide(document.querySelector("#"+t.prefix+"status_wrapper")),document.querySelector("#"+t.prefix+"status")?.classList.add("--unknown-show"),t.show(document.querySelector("#"+t.prefix+"shipping_unknown"))):(document.querySelector("#"+t.prefix+"status")?.classList.remove("--unknown-show"),t.show(document.querySelector("#"+t.prefix+"status_wrapper"))),document.querySelector("#"+t.prefix+"shipping")&&(0==t.currentSizeObj.delivery.shipping?document.querySelector("#"+t.prefix+"shipping").innerHTML=t.txt.gratis:(document.querySelector("#"+t.prefix+"shipping").innerHTML=t.txt.koszt_od+t.formatPrice(t.currentSizeObj.delivery.shipping,e),document.querySelector("#"+t.prefix+"shipping")?.setAttribute("data-price",t.txt.koszt_od+t.formatPrice(t.currentSizeObj.delivery.shipping,e,!1,!0))),"true"==t.currentSizeObj.delivery.undefined?t.hide(document.querySelector("#"+t.prefix+"shipping")):t.show(document.querySelector("#"+t.prefix+"shipping"))),t.currentSizeObj.price.advanceprice?(t.show(document.querySelector("#"+t.prefix+"advanceprice_wrapper")),document.querySelector("#"+t.prefix+"advanceprice")&&(document.querySelector("#"+t.prefix+"advanceprice").innerHTML=t.formatPrice(t.currentSizeObj.price.advanceprice,e),document.querySelector("#"+t.prefix+"advanceprice")?.setAttribute("data-price",t.formatPrice(t.currentSizeObj.price.advanceprice,e,!1,!0)))):t.hide(document.querySelector("#"+t.prefix+"advanceprice_wrapper")),t.show(document.querySelector("#"+t.prefix+"sellbyprice_wrapper")),document.querySelector("#"+t.prefix+"sellbyprice")&&(document.querySelector("#"+t.prefix+"sellbyprice").innerHTML=t.nettoPrice?t.currentSizeObj.price.price_net_formatted:t.currentSizeObj.price.price_formatted,document.querySelector("#"+t.prefix+"sellbyprice")?.setAttribute("data-price",t.nettoPrice?t.currentSizeObj.price.price_net:t.currentSizeObj.price.value)),t.hide(document.querySelector("#"+t.prefix+"prices_wrapper")),t.currentSizeObj.price.srp&&t.currentSizeObj.price.srp>0&&t.currentSizeObj.price.srp!=t.currentSizeObj.price.value?(t.show(document.querySelector("#"+t.prefix+"price_srp_wrapper")),t.show(document.querySelector("#"+t.prefix+"prices_wrapper")),document.querySelector("#"+t.prefix+"price_srp")&&(document.querySelector("#"+t.prefix+"price_srp").innerHTML=t.formatPrice(t.nettoPrice?t.currentSizeObj.price.srp_net:t.currentSizeObj.price.srp,e),document.querySelector("#"+t.prefix+"price_srp")?.setAttribute("data-price",t.formatPrice(t.nettoPrice?t.currentSizeObj.price.srp_net:t.currentSizeObj.price.srp,e,!1,!0)))):t.hide(document.querySelector("#"+t.prefix+"price_srp_wrapper")),t.currentSizeObj.price.price_net&&t.currentSizeObj.price.price_net>0?(t.show(document.querySelector("#"+t.prefix+"price_net_wrapper")),t.show(document.querySelector("#"+t.prefix+"price_net")),document.querySelector("#"+t.prefix+"price_net")&&(document.querySelector("#"+t.prefix+"price_net").innerHTML=t.formatPrice(t.nettoPrice?t.currentSizeObj.price.value:t.currentSizeObj.price.price_net,e),document.querySelector("#"+t.prefix+"price_net")?.setAttribute("data-price",t.formatPrice(t.nettoPrice?t.currentSizeObj.price.value:t.currentSizeObj.price.price_net,e,!1,!0)))):(t.hide(document.querySelector("#"+t.prefix+"price_net_wrapper")),t.hide(document.querySelector("#"+t.prefix+"price_net")));let l="";if("true"==t.currentSizeObj.phone_price)t.currentSizeObj.price.points>0?(t.hide(document.querySelector("#"+t.prefix+"price_value")),t.show(document.querySelector("#"+t.prefix+"prices_wrapper")),document.querySelector("#"+t.prefix+"prices_wrapper")?.classList.add("--only-points")):(t.show(document.querySelector("#"+t.prefix+"price_value")),t.show(document.querySelector("#"+t.prefix+"prices_wrapper")),document.querySelector("#"+t.prefix+"prices_wrapper")?.classList.remove("--only-points"),document.querySelector("#"+t.prefix+"price_value")&&(t.currentSizeObj.availability.status_gfx_tel&&""!=t.currentSizeObj.availability.status_gfx_tel?document.querySelector("#"+t.prefix+"price_value").innerHTML='<a class="projector_prices__contact" target="_blank" href="'+t.options.contact_link+'"><img src="'+t.currentSizeObj.availability.status_gfx_tel+'"/><span>'+t.currentSizeObj.availability.status_description_tel+"</span></a>":document.querySelector("#"+t.prefix+"price_value").innerHTML='<a class="projector_prices__contact" target="_blank" href="'+t.options.contact_link+'">'+t.currentSizeObj.availability.status_description_tel+"</a>"));else if(t.show(document.querySelector("#"+t.prefix+"price_value")),t.show(document.querySelector("#"+t.prefix+"prices_wrapper")),document.querySelector("#"+t.prefix+"prices_wrapper")?.classList.remove("--only-points"),t.currentSizeObj.price.rebateNumber){const e=t.configObj.valueOfNumberInput;if(t.currentSizeObj.price.rebateNumber.items.includes(null))document.querySelector("#"+t.prefix+"price_value")&&(+e>=+t.currentSizeObj.price.rebateNumber.nextleft?(document.querySelector("#"+t.prefix+"price_value").innerHTML=t.formatPrice(t.nettoPrice?t.currentSizeObj.price.rebateNumber.nextprice_net:t.currentSizeObj.price.rebateNumber.nextprice,!0,!1,!1),document.querySelector("#"+t.prefix+"price_value")?.setAttribute("data-price",t.formatPrice(t.nettoPrice?t.currentSizeObj.price.rebateNumber.nextprice_net:t.currentSizeObj.price.rebateNumber.nextprice,!0,!1,!0)),l=t.nettoPrice?t.currentSizeObj.price.rebateNumber.nextprice_net:t.currentSizeObj.price.rebateNumber.nextprice,t.rebateThreshold=t.currentSizeObj.price.rebateNumber.nextthreshold):(document.querySelector("#"+t.prefix+"price_value").innerHTML=t.formatPrice(t.nettoPrice?t.currentSizeObj.price.price_net:t.currentSizeObj.price.value,!0,!1,!1),document.querySelector("#"+t.prefix+"price_value")?.setAttribute("data-price",t.formatPrice(t.nettoPrice?t.currentSizeObj.price.price_net:t.currentSizeObj.price.value,!0,!1,!0)),t.rebateThreshold=!1));else{const i=[...t.currentSizeObj.price.rebateNumber.items].reverse().find((t=>e>=+t.left));document.querySelector("#"+t.prefix+"price_value")&&(i?(document.querySelector("#"+t.prefix+"price_value").innerHTML=t.formatPrice(t.nettoPrice?i.price_net:i.price,!0,!1,!1),document.querySelector("#"+t.prefix+"price_value")?.setAttribute("data-price",t.formatPrice(t.nettoPrice?i.price_net:i.price,!0,!1,!0)),l=t.nettoPrice?i.price_net:i.price,t.rebateThreshold=i.threshold):(document.querySelector("#"+t.prefix+"price_value").innerHTML=t.formatPrice(t.nettoPrice?t.currentSizeObj.price.price_net:t.currentSizeObj.price.value,!0,!1,!1),document.querySelector("#"+t.prefix+"price_value")?.setAttribute("data-price",t.formatPrice(t.nettoPrice?t.currentSizeObj.price.price_net:t.currentSizeObj.price.value,!0,!1,!0)),t.rebateThreshold=!1))}}else document.querySelector("#"+t.prefix+"price_value")&&(document.querySelector("#"+t.prefix+"price_value").innerHTML=t.formatPrice(t.nettoPrice?t.currentSizeObj.price.price_net:t.currentSizeObj.price.value,!0,!1,!1),document.querySelector("#"+t.prefix+"price_value")?.setAttribute("data-price",t.formatPrice(t.nettoPrice?t.currentSizeObj.price.price_net:t.currentSizeObj.price.value,!0,!1,!0)));if(t.currentSizeObj.price.maxprice?t.currentSizeObj.price.maxprice>0?(t.show(document.querySelector("#"+t.prefix+"price_maxprice")),document.querySelector("#"+t.prefix+"price_maxprice")&&(document.querySelector("#"+t.prefix+"price_maxprice").innerHTML=t.formatPrice(t.nettoPrice?t.currentSizeObj.price.maxprice_net:t.currentSizeObj.price.maxprice,e),document.querySelector("#"+t.prefix+"price_maxprice")?.setAttribute("data-price",t.formatPrice(t.nettoPrice?t.currentSizeObj.price.maxprice_net:t.currentSizeObj.price.maxprice,e,!1,!0)))):t.hide(document.querySelector("#"+t.prefix+"price_maxprice")):""!=l?(t.currentSizeObj.price.maxprice=t.currentSizeObj.price.value,t.currentSizeObj.price.maxprice_net=t.currentSizeObj.price.price_net,t.currentSizeObj.price.maxprice>0?(t.show(document.querySelector("#"+t.prefix+"price_maxprice")),document.querySelector("#"+t.prefix+"price_maxprice")&&(document.querySelector("#"+t.prefix+"price_maxprice").innerHTML=t.formatPrice(t.nettoPrice?t.currentSizeObj.price.maxprice_net:t.currentSizeObj.price.maxprice,e),document.querySelector("#"+t.prefix+"price_maxprice")?.setAttribute("data-price",t.formatPrice(t.nettoPrice?t.currentSizeObj.price.maxprice_net:t.currentSizeObj.price.maxprice,e,!1,!0)))):t.hide(document.querySelector("#"+t.prefix+"price_maxprice"))):t.hide(document.querySelector("#"+t.prefix+"price_maxprice")),t.currentSizeObj.price.omnibus_price&&document.querySelector("#"+t.prefix+"omnibus_price_value")&&(document.querySelector("#"+t.prefix+"omnibus_price_value").innerHTML=t.formatPrice(t.nettoPrice?t.currentSizeObj.price.omnibus_price_net:t.currentSizeObj.price.omnibus_price,e),document.querySelector("#"+t.prefix+"omnibus_price_value")?.setAttribute("data-price",t.formatPrice(t.nettoPrice?t.currentSizeObj.price.omnibus_price_net:t.currentSizeObj.price.omnibus_price,e,!1,!0))),t.currentSizeObj.price.beforerebate&&document.querySelector("#"+t.prefix+"price_beforerebate")&&(document.querySelector("#"+t.prefix+"price_beforerebate").innerHTML=t.formatPrice(t.nettoPrice?t.currentSizeObj.price.beforerebate_net:t.currentSizeObj.price.beforerebate,e),document.querySelector("#"+t.prefix+"price_beforerebate")?.setAttribute("data-price",t.formatPrice(t.nettoPrice?t.currentSizeObj.price.beforerebate_net:t.currentSizeObj.price.beforerebate,e,!1,!0))),t.currentSizeObj.price.maxprice&&document.querySelector("#"+t.prefix+"new_price_value")&&(document.querySelector("#"+t.prefix+"new_price_value").innerHTML=t.formatPrice(t.nettoPrice?t.currentSizeObj.price.maxprice_net:t.currentSizeObj.price.maxprice,e),document.querySelector("#"+t.prefix+"new_price_value")?.setAttribute("data-price",t.formatPrice(t.nettoPrice?t.currentSizeObj.price.maxprice_net:t.currentSizeObj.price.maxprice,e,!1,!0))),t.options.hide_unit?(t.hide(document.querySelector("#"+t.prefix+"price_unit_sellby")),t.hide(document.querySelector("#"+t.prefix+"price_unit"))):1==t.configObj.valueOfNumberInput?(t.hide(document.querySelector("#"+t.prefix+"price_unit_sellby")),document.querySelector("#"+t.prefix+"price_unit_sellby")&&(document.querySelector("#"+t.prefix+"price_unit_sellby").innerHTML=t.configObj.valueOfNumberInput),document.querySelector("#"+t.prefix+"price_unit")&&(document.querySelector("#"+t.prefix+"price_unit").innerHTML=t.currentSizeObj.unit)):(t.show(document.querySelector("#"+t.prefix+"price_unit_sellby")),document.querySelector("#"+t.prefix+"price_unit_sellby")&&(document.querySelector("#"+t.prefix+"price_unit_sellby").innerHTML=t.configObj.valueOfNumberInput),document.querySelector("#"+t.prefix+"price_unit")&&(document.querySelector("#"+t.prefix+"price_unit").innerHTML=t.currentSizeObj.unit_plural?t.currentSizeObj.unit_plural:t.currentSizeObj.unit)),t.currentSizeObj.bundle_price||t.currentSizeObj.price.yousave_percent?t.show(document.querySelector("#"+t.prefix+"yousave_bundle_wrapper")):t.hide(document.querySelector("#"+t.prefix+"yousave_bundle_wrapper")),yousaveTmp=t.nettoPrice?t.currentSizeObj.price.yousave_net:t.currentSizeObj.price.yousave,yousave_percentTmp=t.currentSizeObj.price.yousave_percent,""!=l&&(yousaveTmp=t.nettoPrice?+t.curren
1tSizeObj.price.maxprice_net-+l:+t.currentSizeObj.price.maxprice-+l,yousave_percentTmp=(100*+yousaveTmp/(t.nettoPrice?+t.currentSizeObj.price.maxprice_net:+t.currentSizeObj.price.maxprice)).toFixed()),0===+yousave_percentTmp&&(yousave_percentTmp=(+yousaveTmp/(t.nettoPrice?+t.currentSizeObj.price.price_net:+t.currentSizeObj.price.value)*100).toFixed(1)),document.querySelector("#"+t.prefix+"price_yousave")&&("true"!=t.currentSizeObj.phone_price&&t.currentSizeObj.bundle_price&&t.currentSizeObj.bundle_price.amount_diff_gross>0?(t.show(document.querySelector("#"+t.prefix+"price_yousave")),document.querySelector("#"+t.prefix+"price_yousave").innerHTML=t.txt.oszczedzasz+t.currentSizeObj.bundle_price.percent_diff+t.txt.taniej+t.formatPrice(t.nettoPrice?t.currentSizeObj.bundle_price.amount_diff_net:t.currentSizeObj.bundle_price.amount_diff_gross,e)+t.txt.wzestawie,document.querySelector("#"+t.prefix+"price_yousave")?.setAttribute("data-price",t.formatPrice(t.nettoPrice?t.currentSizeObj.bundle_price.amount_diff_net:t.currentSizeObj.bundle_price.amount_diff_gross,e,!1,!0))):"true"!=t.currentSizeObj.phone_price&&yousaveTmp?(t.show(document.querySelector("#"+t.prefix+"price_yousave")),document.querySelector("#"+t.prefix+"price_yousave").innerHTML=t.txt.oszczedzasz+yousave_percentTmp+t.txt.taniej+t.formatPrice(yousaveTmp,e)+t.txt.nawias_end,document.querySelector("#"+t.prefix+"price_yousave")?.setAttribute("data-price",t.formatPrice(yousaveTmp,e,!1,!0))):t.hide(document.querySelector("#"+t.prefix+"price_yousave"))),t.hide(document.querySelector("#"+t.prefix+"price_points_wrapper")),t.currentSizeObj.price.points>0&&(t.show(document.querySelector("#"+t.prefix+"price_points")),document.querySelector("#"+t.prefix+"price_points")&&(document.querySelector("#"+t.prefix+"price_points").innerHTML=t.formatPrice(t.currentSizeObj.price.points,e,t.txt.pkt,!0).toFixed(2)+t.txt.pkt,document.querySelector("#"+t.prefix+"price_points")?.setAttribute("data-price",t.formatPrice(t.currentSizeObj.price.points,e,t.txt.pkt,!0).toFixed(2))),t.show(document.querySelector("#"+t.prefix+"points_wrapper")),t.show(document.querySelector("#"+t.prefix+"price_points_wrapper"))),t.currentSizeObj.price.points_recive>0?(t.show(document.querySelector("#"+t.prefix+"points_wrapper")),t.show(document.querySelector("#"+t.prefix+"points_recive_points")),document.querySelector("#"+t.prefix+"points_recive_points")&&(document.querySelector("#"+t.prefix+"points_recive_points").innerHTML=t.formatPrice(t.currentSizeObj.price.points_recive,e,t.txt.pkt,!0).toFixed(2)+t.txt.pkt,document.querySelector("#"+t.prefix+"points_recive_points")?.setAttribute("data-price",t.formatPrice(t.currentSizeObj.price.points_recive,e,t.txt.pkt,!0).toFixed(2))),t.show(document.querySelector("#"+t.prefix+"price_points_recive_wrapper"))):t.hide(document.querySelector("#"+t.prefix+"price_points_recive_wrapper")),t.currentSizeObj.for_points,t.hide(document.querySelector("#"+t.prefix+"tell_availability")),document.querySelector("#"+t.prefix+"tell_availability")){document.querySelector("#"+t.prefix+"tell_availability").querySelectorAll("input").forEach((e=>e.disabled=!0))}var c=t;if(t.configObj.addBasketFnBtn)t.off(document.querySelector("#"+t.prefix+"button_basket")),document.querySelector("#"+t.prefix+"button_basket")&&document.querySelector("#"+t.prefix+"button_basket").addEventListener("click",(function(e){c.configObj.addBasketFnBtn(),e.preventDefault()})),document.querySelector("#"+t.prefix+"button_basket")?.classList.remove("disabled");else if(t.configObj.disableBuyButtonTXT){var u=t.configObj.disableBuyButtonTXT;document.querySelector("#"+t.prefix+"button_basket")&&document.querySelector("#"+t.prefix+"button_basket").addEventListener("click",(function(e){classObj.alert(u),e.preventDefault()})),document.querySelector("#"+t.prefix+"number")&&(document.querySelector("#"+t.prefix+"number").disabled=!0)}else if("disable"==t.currentSizeObj.availability.status){if(t.hide(document.querySelector("#"+t.prefix+"price_points_wrapper")),document.querySelector("#"+t.prefix+"button_basket")&&document.querySelector("#"+t.prefix+"button_basket").addEventListener("click",(function(e){classObj.alert(classObj.txt.niedostepny),e.preventDefault()})),document.querySelector("#"+t.prefix+"button_basket")?.classList.add("disabled"),document.querySelector("#"+t.prefix+"number")&&(document.querySelector("#"+t.prefix+"number").disabled=!0),t.show(document.querySelector("#"+t.prefix+"tell_availability")),document.querySelector("#"+t.prefix+"tell_availability")){document.querySelector("#"+t.prefix+"tell_availability").querySelectorAll("input").forEach((e=>e.disabled=!1))}}else"true"==t.currentSizeObj.phone_price&&t.currentSizeObj.price.points>0?(document.querySelector("#"+t.prefix+"button_basket")&&document.querySelector("#"+t.prefix+"button_basket").addEventListener("click",(function(e){classObj.alert(classObj.txt.tylko_punkty),e.preventDefault()})),document.querySelector("#"+t.prefix+"button_basket")?.classList.add("disabled"),document.querySelector("#"+t.prefix+"number")&&(document.querySelector("#"+t.prefix+"number").disabled=!0)):"true"==t.currentSizeObj.phone_price?(document.querySelector("#"+t.prefix+"number")&&(document.querySelector("#"+t.prefix+"number").disabled=!1),document.querySelector("#"+t.prefix+"button_basket")&&document.querySelector("#"+t.prefix+"button_basket").addEventListener("click",(function(e){classObj.alert(classObj.txt.tylkotel),e.preventDefault()})),document.querySelector("#"+t.prefix+"button_basket")?.classList.add("disabled"),document.querySelector("#"+t.prefix+"number")&&(document.querySelector("#"+t.prefix+"number").disabled=!0),document.querySelector("#"+t.prefix+"form")?.classList.add("--phone")):(t.off(document.querySelector("#"+t.prefix+"button_basket")),document.querySelector("#"+t.prefix+"button_basket")?.classList.remove("disabled"),document.querySelector("#"+t.prefix+"number")&&(document.querySelector("#"+t.prefix+"number").disabled=!1),document.querySelector("#"+t.prefix+"form")?.classList.remove("--phone"));return t.currentSizeObj.gratis&&(t.hide(document.querySelector("#"+t.prefix+"buy_section")),t.hide(document.querySelector("#"+t.prefix+"price_points_wrapper"))),t.currentSizeObj.price.basket_enable&&"y"==t.currentSizeObj.price.basket_enable&&"true"==t.currentSizeObj.phone_price&&(t.off(document.querySelector("#"+t.prefix+"button_basket")),document.querySelector("#"+t.prefix+"button_basket")?.classList.remove("disabled"),document.querySelector("#"+t.prefix+"number")&&(document.querySelector("#"+t.prefix+"number").disabled=!1),document.querySelector("#"+t.prefix+"price_value")&&(document.querySelector("#"+t.prefix+"price_value").innerHTML='<span class="'+t.prefix+'_price_gratis">'+t.txt.gratis_produkt+"</span>")),document.querySelector("#"+t.options.contenersPrefix+"number")&&(document.querySelector("#"+t.options.contenersPrefix+"number").value=t.configObj.valueOfNumberInput),document.querySelector("#"+t.options.contenersPrefix+"buy_section .f-dropdown-button")&&(document.querySelector("#"+t.options.contenersPrefix+"buy_section .f-dropdown-button").textContent=t.configObj.valueOfNumberInput),t.configObj.rebateNumberNext&&(document.querySelector("#"+t.prefix+"product_rebatenumber_value")&&(document.querySelector("#"+t.prefix+"product_rebatenumber_value").textContent=(t.configObj.rebateNumberNext.value+t.txt.proc).replace(/\.00/gi,"")),document.querySelector("#"+t.prefix+"product_rebatenumber_threshold")&&(
1document.querySelector("#"+t.prefix+"product_rebatenumber_threshold").textContent=t.configObj.rebateNumberNext.threshold.replace(/\.00/gi,""))),t.firstRun=!1,t.options.endStartFunction(),!0};const o=async e=>{const t=await fetch(e);return await t.json()};product_data.sizes[t.currentSizeObj.type].availability?"true"!==n||product_data.sizes[t.currentSizeObj.type].price_subscription?"false"!==n||product_data.sizes[t.currentSizeObj.type].price_normal?r():o("/ajax/projector.php?action=get&product="+product_data.product_id+"&size="+t.currentSizeObj.type+"&get=sizeprices").then((e=>{product_data.sizes[t.currentSizeObj.type].price=e.sizeprices,product_data.sizes[t.currentSizeObj.type].price_normal=e.sizeprices,r()})):o("/ajax/projector.php?action=get&product="+product_data.product_id+"&size="+t.currentSizeObj.type+"&get=sizeprices&subscription=1").then((e=>{product_data.sizes[t.currentSizeObj.type].price=e.sizeprices,product_data.sizes[t.currentSizeObj.type].price_subscription=e.sizeprices,r()})):product_data.sizes&&("product_bundle"!=product_data.product_type?o("/ajax/projector.php?action=get&product="+product_data.product_id+"&size="+t.currentSizeObj.type+"&get=sizeavailability,sizedelivery,sizeprices"+("true"===n?"&subscription=1":"")).then((e=>{product_data.sizes[t.currentSizeObj.type].availability=e.sizeavailability,product_data.sizes[t.currentSizeObj.type].delivery=e.sizedelivery,product_data.sizes[t.currentSizeObj.type].price=e.sizeprices,product_data.sizes[t.currentSizeObj.type].delay_time=e.sizeavailability.delay_time,"true"===n?product_data.sizes[t.currentSizeObj.type].price_subscription=e.sizeprices:product_data.sizes[t.currentSizeObj.type].price_normal=e.sizeprices,r()})):"product_bundle"==product_data.product_type&&app_shop.fn.update_bundle&&app_shop.fn.update_bundle())},this.liczProcent=function(e,t){return(e=parseFloat(e))-e*((t=parseFloat(t))/100)},this.addAction=function(e,t,i){this.actions[e]||(this.actions[e]={}),this.actions[e][t]=i},this.getConfigObj=function(){return this.configObj},this.alert=function(e){Alertek.show_alert(e)},this.setCurrentSizeObj=async function(e){if(projectorv3_disable_ajax&&0==projectorv3_disable_ajax)product_data.sizes[e]?(this.currentSizeObj=product_data.sizes[e],this.currentSizeObj.product_type=product_data.product_type,this.currentSizeObj.currency=product_data.currency,this.currentSizeObj.unit=product_data.unit,this.currentSizeObj.unit_plural=product_data.unit_plural?product_data.unit_plural:"",this.currentSizeObj.unit_sellby=""!=product_data.unit_sellby?product_data.unit_sellby:1,this.currentSizeObj.unit_precision=""!=product_data.unit_precision?product_data.unit_precision:0):this.errorMsg.push("setCurrentSize no data"),this.options.endSetCurrentSizeFunction();else{var t=this,i=function(){"onesize"==e&&(e="uniw"),product_data.sizes[e]?(t.currentSizeObj=product_data.sizes[e],t.currentSizeObj.product_type=product_data.product_type,t.currentSizeObj.currency=product_data.currency,t.currentSizeObj.unit=product_data.unit,t.currentSizeObj.unit_plural=product_data.unit_plural?product_data.unit_plural:"",t.currentSizeObj.unit_sellby=""!=product_data.unit_sellby?product_data.unit_sellby:1,t.currentSizeObj.unit_precision=""!=product_data.unit_precision?product_data.unit_precision:0,product_data.for_points&&(t.currentSizeObj.for_points=product_data.for_points)):t.errorMsg.push("setCurrentSize no data")};if(product_data.sizes)i();else{const e=await fetch("/ajax/projector.php?action=get&product="+product_data.product_id+"&get=sizes"),n=await e.json();if(n.sizes){product_data.sizes={};for(const e of n.sizes.items)product_data.sizes[e.type]=e;i(),t.start()}}this.options.endSetCurrentSizeFunction()}},this.getCurrentSizeObj=function(e){return this.currentSizeObj},this.getCalculatedPrice=(e="price")=>{switch(e){case"advance":return{value:parseFloat(document.querySelector(`#${this.prefix}advanceprice`)?.getAttribute("data-price")),formatted:document.querySelector(`#${this.prefix}advanceprice`)?.innerHTML};case"srp":return{value:parseFloat(document.querySelector(`#${this.prefix}price_srp`)?.getAttribute("data-price")),formatted:document.querySelector(`#${this.prefix}price_srp`)?.innerHTML};case"net":return{value:parseFloat(document.querySelector(`#${this.prefix}price_net`)?.getAttribute("data-price")),formatted:document.querySelector(`#${this.prefix}price_net`)?.innerHTML};case"max":return{value:parseFloat(document.querySelector(`#${this.prefix}price_maxprice`)?.getAttribute("data-price")),formatted:document.querySelector(`#${this.prefix}price_maxprice`)?.innerHTML};case"omnibus":return{value:parseFloat(document.querySelector(`#${this.prefix}omnibus_price_value`)?.getAttribute("data-price")),formatted:document.querySelector(`#${this.prefix}omnibus_price_value`)?.innerHTML};case"before":return{value:parseFloat(document.querySelector(`#${this.prefix}price_beforerebate`)?.getAttribute("data-price")),formatted:document.querySelector(`#${this.prefix}price_beforerebate`)?.innerHTML};case"new":return{value:parseFloat(document.querySelector(`#${this.prefix}new_price_value`)?.getAttribute("data-price")),formatted:document.querySelector(`#${this.prefix}new_price_value`)?.innerHTML};case"points":return{value:parseFloat(document.querySelector(`#${this.prefix}price_points`)?.getAttribute("data-price")),formatted:document.querySelector(`#${this.prefix}price_points`)?.innerHTML};case"pointsRecive":return{value:parseFloat(document.querySelector(`#${this.prefix}points_recive_points`)?.getAttribute("data-price")),formatted:document.querySelector(`#${this.prefix}points_recive_points`)?.innerHTML};default:return{value:parseFloat(document.querySelector(`#${this.prefix}price_value`)?.getAttribute("data-price")),formatted:document.querySelector(`#${this.prefix}price_value`)?.innerHTML}}}};app_shop.vars.xhr="",app_shop.getFile=e=>{const t=document.createElement("script");t.src=`${app_shop.urls.prefix}${e}.js`,document.body.appendChild(t)},app_shop.getOuterJS=e=>{e.forEach((e=>{const t=document.createElement("script");t.src=`${app_shop.urls.prefix}${e}.js`,document.body.appendChild(t)}))},app_shop.run=(e,t,i,n)=>
1{(Array.isArray(t)?t:[t]).forEach((t=>{app_shop.fnrun[t]=app_shop.fnrun[t]||[],app_shop.fnrun[t].push({w:i,fn:e,a:n})}))},app_shop.runArr=(e,t,i)=>{e&&e.forEach((e=>{const{w:t,fn:n,a:r}=e;(!t||null!==document.querySelector(t))&&(i&&t&&!r||n())}))};class iaiGetAjax{constructor(){this.data={},this.cache={},this.fn={}}addToData(e,t,i){this.data[e]||(this.data[e]=t,this.fn[e]=i)}projector(e){this.addToData("Projector",{format:"json",params:{}},e)}basket(e){this.addToData("Basket",{},e)}wishlist(e){this.addToData("Wishlist",{},e)}comparers(e){this.addToData("Comparers",{},e)}snippets(e,t){this.addToData("Snippets",{format:"json",params:{mobile:t.mobile,tablet:t.tablet,pc:t.pc,request_uri:t.request_uri,additional_ajax:t.additional_ajax}},e)}toplayersAndWidgets(e,t){this.addToData("ToplayersAndWidgets",{format:"json",params:{mobile:t.mobile,tablet:t.tablet,pc:t.pc,request_uri:t.request_uri,additional_ajax:t.additional_ajax}},e)}reInit(e=[]){e.length?(Object.keys(this.data).forEach((t=>{e.includes(t)||(delete this.data[t],delete this.fn[t],delete this.cache[t])})),this.init()):this.init()}init(){const e=`request=${JSON.stringify(this.data)}`;fetch("/ajax/get.php",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:e}).then((e=>e.json())).then((e=>{this.cache=e,Object.values(this.fn).forEach((e=>e(this.cache)))})).catch((e=>{}))}}const iaiGet=new iaiGetAjax;app_shop.fn.change_url=e=>{history.pushState&&history.pushState({foo:"bar"},"",decodeURIComponent(e))},app_shop.fn.evalJSFromHtml=function(e){(e?.querySelectorAll("script.ajaxLoad")||[]).forEach((e=>{const t=document.createElement("script");t.innerHTML=e.innerHTML,document.body.appendChild(t)}))},app_shop.fn.load=async(e,t,i,n="")=>{const r=`${e}${n}`,o=new AbortController,s=setTimeout((()=>o.abort()),16e3);t.forEach((([e])=>document.querySelector(e)?.classList.add("load-content")));try{const n=await fetch(r,{signal:o.signal}),s=await n.text(),a=(new DOMParser).parseFromString(s,"text/html");t.forEach((e=>{const[t,i]=e,n=document.querySelector(t),r=a.querySelector(i);n&&r&&(n.outerHTML=r.outerHTML)})),app_shop.fn.change_url(e),app_shop.fn.evalJSFromHtml(a),i&&i(a)}catch(t){window.location.href=e}finally{clearTimeout(s)}},app_shop.fn.variety=(e,t,i)=>1===+e?t:i,app_shop.fn.setGrid=()=>{if(1===app_shop.vars.view){return void document.querySelectorAll(".setMobileGrid").forEach((e=>{const t=e.dataset.item,i=document.querySelector(t);if(!i)return;const n=document.createElement("del");n.className="domHandler",n.dataset.item=t,n.style.display="none",e.before(n),e.append(i)}))}document.querySelectorAll(".domHandler").forEach((e=>{const t=e.dataset.item,i=document.querySelector(t);i&&(e.after(i),e.remove())}))},app_shop.fn.runAjaxFn=()=>{if(app_shop.runArr(app_shop.fnrun.all,"all",!0),app_shop.vars.view)return void app_shop.runArr(app_shop.fnrun[app_shop.vars.view],app_shop.vars.view,!0);const e=document.getElementById("viewType");if(!e)return;const{width:t}=window.getComputedStyle(e);app_shop.vars.view=parseInt(t,10),app_shop.runArr(app_shop.fnrun[app_shop.vars.view],app_shop.vars.view,!0)},app_shop.runApp=()=>{const e=document.getElementById("viewType"),{width:t}=window.getComputedStyle(e)||{};app_shop.vars.view=parseInt(t,10)||1,app_shop.runArr(app_shop.fnrun.all,"all"),app_shop.runArr(app_shop.fnrun[app_shop.vars.view],app_shop.vars.view),app_shop.fn.setGrid(),app_shop.getOuterJS(app_shop.files),iaiGet.init();let i,n=app_shop.vars.view;const r=()=>{clearTimeout(i),i=setTimeout((()=>{const{width:t}=window.getComputedStyle(e);app_shop.vars.view=parseInt(t,10),app_shop.vars.view!==n&&(n=app_shop.vars.view,app_shop.runArr(app_shop.fnrun[app_shop.vars.view],app_shop.vars.view),app_shop.fn.setGrid())}),100)};window.removeEventListener("resize",r),window.addEventListener("resize",r)},app_shop.fn.getRwdSrc=e=>{if(!e)return"";const{src_mobile:t,src_tablet:i,src_desktop:n}=e.dataset||e.data()||{},r=[t,i,n,n][app_shop.vars.view-1];return r||""},app_shop.fn.rwdBanner=(e,t)=>{e&&t&&t.forEach((t=>{app_shop.run((()=>{document.querySelectorAll(e).forEach((e=>{e.querySelectorAll("img.rwd-src").forEach((e=>{e.setAttribute("src",app_shop.fn.getRwdSrc(e))}))}))}),t,e)}
1))},String.prototype.format=function(...e){let t=this;return e.forEach((e=>{t=t.replace(/%[a-z]/,e)})),t},app_shop.fn.news_data=function(e){const{data:t,month_names:i,format:n="%d-%m-%y"}=e||{};if(!t)return!1;const r=t.split("-");return!(r.length<3)&&(i&&(r[1]=i[parseInt(r[1],10)-1]),n.format(r[2],r[1],r[0]))},app_shop.fn.setHeight=e=>{const{selector:t,selectors:i,container:n}=e||{};if(!t&&!i||!n)return;const r=document.querySelector(n);if(!r)return;const o=e=>{if(!e)return 0;const{marginLeft:t,marginRight:i}=window.getComputedStyle(e);return e.offsetWidth+parseInt(t,10)+parseInt(i,10)},s=o(r),a=o(r.firstElementChild),l=e=>{if(!document.querySelectorAll(e).length)return;if(!a)return;const t=Math.round(s/a);if(!t)return;const i=[...r.children];for(let n=0;n<i.length;n+=t){const r=i.slice(n,n+t).map((t=>t.querySelector(e))),o=Math.max(...r.map((e=>e?.offsetHeight)));r.forEach((e=>{e&&(e.style.minHeight=`${o}px`)}))}};t&&l(t),i?.length&&i.forEach((e=>l(e)))};var markerClusterer=function(e){"use strict";function t(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}class i{static isAdvancedMarkerAvailable(e){return google.maps.marker&&!0===e.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(e.position.lat&&e.position.lng)return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return!!this.isAdvancedMarker(e)||e.getVisible()}}class n{constructor(e){let{markers:t,position:i}=e;this.markers=t,i&&(i instanceof google.maps.LatLng?this._position=i:this._position=new google.maps.LatLng(i))}get bounds(){if(0===this.markers.length&&!this._position)return;const e=new google.maps.LatLngBounds(this._position,this._position);for(const t of this.markers)e.extend(i.getPosition(t));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((e=>i.getVisible(e))).length}push(e){this.markers.push(e)}delete(){this.marker&&(i.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}const r=(e,t,n,r)=>{const s=o(e.getBounds(),t,r);return n.filter((e=>s.contains(i.getPosition(e))))},o=(e,t,i)=>{const{northEast:n,southWest:r}=l(e,t),o=c({northEast:n,southWest:r},i);return u(o,t)},s=(e,t,i)=>
vendor: 5,162 bytes, line 1
1{const n=o(e,t,i),r=n.getNorthEast(),s=n.getSouthWest();return[s.lng(),s.lat(),r.lng(),r.lat()]},a=(e,t)=>{const i=(t.lat-e.lat)*Math.PI/180,n=(t.lng-e.lng)*Math.PI/180,r=Math.sin(i/2),o=Math.sin(n/2),s=r*r+Math.cos(e.lat*Math.PI/180)*Math.cos(t.lat*Math.PI/180)*o*o;return 2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))*6371},l=(e,t)=>({northEast:t.fromLatLngToDivPixel(e.getNorthEast()),southWest:t.fromLatLngToDivPixel(e.getSouthWest())}),c=(e,t)=>{let{northEast:i,southWest:n}=e;return i.x+=t,i.y-=t,n.x-=t,n.y+=t,{northEast:i,southWest:n}},u=(e,t)=>{let{northEast:i,southWest:n}=e;const r=t.fromDivPixelToLatLng(n),o=t.fromDivPixelToLatLng(i);return new google.maps.LatLngBounds(r,o)};class h{constructor(e){let{maxZoom:t=16}=e;this.maxZoom=t}noop(e){let{markers:t}=e;return p(t)}}class d extends h{constructor(e){var{viewportPadding:i=60}=e;super(t(e,["viewportPadding"])),this.viewportPadding=60,this.viewportPadding=i}calculate(e){let{markers:t,map:i,mapCanvasProjection:n}=e;return i.getZoom()>=this.maxZoom?{clusters:this.noop({markers:t}),changed:!1}:{clusters:this.cluster({markers:r(i,n,t,this.viewportPadding),map:i,mapCanvasProjection:n})}}}const p=e=>e.map((e=>new n({position:i.getPosition(e),markers:[e]})));var m=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}((function e(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){if(t.constructor!==i.constructor)return!1;var n,r,o;if(Array.isArray(t)){if((n=t.length)!=i.length)return!1;for(r=n;0!=r--;)if(!e(t[r],i[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(i).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(i,o[r]))return!1;for(r=n;0!=r--;){var s=o[r];if(!e(t[s],i[s]))return!1}return!0}return t!=t&&i!=i}));const f=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class _{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[t,i]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");const n=i>>4;if(1!==n)throw new Error(`Got v${n} data when expected v1.`);const r=f[15&i];if(!r)throw new Error("Unrecognized array type.");const[o]=new Uint16Array(e,2,1),[s]=new Uint32Array(e,4,1);return new _(s,o,r,e)}constructor(e,t=64,i=Float64Array,n){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=i,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const r=f.indexOf(this.ArrayType),o=2*e*this.ArrayType.BYTES_PER_ELEMENT,s=e*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-s%8)%8;if(r<0)throw new Error(`Unexpected typed array class: ${i}.`);n&&n instanceof ArrayBuffer?(this.data=n,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+s+a,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+o+s+a),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+s+a,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+r]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=e,this.coords[this._pos++]=t,i}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return g(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,i,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:o,nodeSize:s}=this,a=[0,r.length-1,0],l=[];for(;a.length;){const c=a.pop()||0,u=a.pop()||0,h=a.pop()||0;if(u-h<=s){for(let s=h;s<=u;s++){const a=o[2*s],c=o[2*s+1];a>=e&&a<=i&&c>=t&&c<=n&&l.push(r[s])}continue}const d=h+u>>1,p=o[2*d],m=o[2*d+1];p>=e&&p<=i&&m>=t&&m<=n&&l.push(r[d]),(0===c?e<=p:t<=m)&&(a.push(h),a.push(d-1),a.push(1-c)),(0===c?i>=p:n>=m)&&(a.push(d+1),a.push(u),a.push(1-c))}return l}within(e,t,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:r,nodeSize:o}=this,s=[0,n.length-1,0],a=[],l=i*i;for(;s.length;){const c=s.pop()||0,u=s.pop()||0,h=s.pop()||0;if(u-h<=o){for(let i=h;i<=u;i++)x(r[2*i],r[2*i+1],e,t)<=l&&a.push(n[i]);continue}const d=h+u>>1,p=r[2*d],m=r[2*d+1];x(p,m,e,t)<=l&&a.push(n[d]),(0===c?e-i<=p:t-i<=m)&&(s.push(h),s.push(d-1),s.push(1-c)),(0===c?e+i>=p:t+i>=m)&&(s.push(d+1),s.push(u),s.push(1-c))}return a}}function g(e,t,i,n,r,o){if(r-n<=i)return;const s=n+r>>1;y(e,t,s,n,r,o),g(e,t,i,n,s-1,1-o),g(e,t,i,s+1,r,1-o)}function y(e,t,i,n,r,o){for(;r>n;){if(r-n>600){const s=r-n+1,a=i-n+1,l=Math.log(s),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(s-c)/s)*(a-s/2<0?-1:1);y(e,t,i,Math.max(n,Math.floor(i-a*c/s+u)),Math.min(r,Math.floor(i+(s-a)*c/s+u)),o)}const s=t[2*i+o];let a=n,l=r;
vendor: 4,991 bytes, line 1
1for(v(e,t,n,i),t[2*r+o]>s&&v(e,t,n,r);a<l;){for(v(e,t,a,l),a++,l--;t[2*a+o]<s;)a++;for(;t[2*l+o]>s;)l--}t[2*n+o]===s?v(e,t,n,l):(l++,v(e,t,l,r)),l<=i&&(n=l+1),i<=l&&(r=l-1)}}function v(e,t,i,n){b(e,i,n),b(t,2*i,2*n),b(t,2*i+1,2*n+1)}function b(e,t,i){const n=e[t];e[t]=e[i],e[i]=n}function x(e,t,i,n){const r=e-i,o=t-n;return r*r+o*o}const w={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},S=Math.fround||(L=new Float32Array(1),e=>(L[0]=+e,L[0]));var L;class k{constructor(e){this.options=Object.assign(Object.create(w),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:i,maxZoom:n}=this.options;e.length;this.points=e;const r=[];for(let t=0;t<e.length;t++){const i=e[t];if(!i.geometry)continue;const[n,o]=i.geometry.coordinates,s=S(P(n)),a=S(M(o));r.push(s,a,1/0,t,-1,1),this.options.reduce&&r.push(0)}let o=this.trees[n+1]=this._createTree(r);for(let e=n;e>=i;e--){Date.now();o=this.trees[e]=this._createTree(this._cluster(o,e))}return this}getClusters(e,t){let i=((e[0]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,e[1]));let r=180===e[2]?180:((e[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)i=-180,r=180;else if(i>r){const e=this.getClusters([i,n,180,o],t),s=this.getClusters([-180,n,r,o],t);return e.concat(s)}const s=this.trees[this._limitZoom(t)],a=s.range(P(i),M(o),P(r),M(n)),l=s.data,c=[];for(const e of a){const t=this.stride*e;c.push(l[t+5]>1?T(l,t,this.clusterProps):this.points[l[t+3]])}return c}getChildren(e){const t=this._getOriginId(e),i=this._getOriginZoom(e),n="No cluster with the specified id.",r=this.trees[i];if(!r)throw new Error(n);const o=r.data;if(t*this.stride>=o.length)throw new Error(n);const s=this.options.radius/(this.options.extent*Math.pow(2,i-1)),a=o[t*this.stride],l=o[t*this.stride+1],c=r.within(a,l,s),u=[];for(const t of c){const i=t*this.stride;o[i+4]===e&&u.push(o[i+5]>1?T(o,i,this.clusterProps):this.points[o[i+3]])}if(0===u.length)throw new Error(n);return u}getLeaves(e,t,i){t=t||10,i=i||0;const n=[];return this._appendLeaves(n,e,t,i,0),n}getTile(e,t,i){const n=this.trees[this._limitZoom(e)],r=Math.pow(2,e),{extent:o,radius:s}=this.options,a=s/o,l=(i-a)/r,c=(i+1+a)/r,u={features:[]};return this._addTileFeatures(n.range((t-a)/r,l,(t+1+a)/r,c),n.data,t,i,r,u),0===t&&this._addTileFeatures(n.range(1-a/r,l,1,c),n.data,r,i,r,u),t===r-1&&this._addTileFeatures(n.range(0,l,a/r,c),n.data,-1,i,r,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const i=this.getChildren(e);if(t++,1!==i.length)break;e=i[0].properties.cluster_id}return t}_appendLeaves(e,t,i,n,r){const o=this.getChildren(t);for(const t of o){const o=t.properties;if(o&&o.cluster?r+o.point_count<=n?r+=o.point_count:r=this._appendLeaves(e,o.cluster_id,i,n,r):r<n?r++:e.push(t),e.length===i)break}return r}_createTree(e){const t=new _(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let i=0;i<e.length;i+=this.stride)t.add(e[i],e[i+1]);return t.finish(),t.data=e,t}_addTileFeatures(e,t,i,n,r,o){for(const s of e){const e=s*this.stride,a=t[e+5]>1;let l,c,u;if(a)l=C(t,e,this.clusterProps),c=t[e],u=t[e+1];else{const i=this.points[t[e+3]];l=i.properties;const[n,r]=i.geometry.coordinates;c=P(n),u=M(r)}const h={type:1,geometry:[[Math.round(this.options.extent*(c*r-i)),Math.round(this.options.extent*(u*r-n))]],tags:l};let d;d=a||this.options.generateId?t[e+3]:this.points[t[e+3]].id,void 0!==d&&(h.id=d),o.features.push(h)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:i,extent:n,reduce:r,minPoints:o}=this.options,s=i/(n*Math.pow(2,t)),a=e.data,l=[],c=this.stride;for(let i=0;i<a.length;i+=c){if(a[i+2]<=t)continue;a[i+2]=t;const n=a[i],u=a[i+1],h=e.within(a[i],a[i+1],s),d=a[i+5];let p=d;for(const e of h){const i=e*c;a[i+2]>t&&(p+=a[i+5])}if(p>d&&p>=o){let e,o=n*d,s=u*d,m=-1;const f=(i/c<<5)+(t+1)+this.points.length;for(const n of h){const l=n*c;if(a[l+2]<=t)continue;a[l+2]=t;const u=a[l+5];o+=a[l]*u,s+=a[l+1]*u,a[l+4]=f,r&&(e||(e=this._map(a,i,!0),m=this.clusterProps.length,this.clusterProps.push(e)),r(e,this._map(a,l)))}a[i+4]=f,l.push(o/p,s/p,1/0,f,-1,p),r&&l.push(m)}else{for(let e=0;e<c;e++)l.push(a[i+e]);if(p>1)for(const e of h){const i=e*c;if(!(a[i+2]<=t)){a[i+2]=t;for(let e=0;e<c;e++)l.push(a[i+e])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,i){if(e[t+5]>1){const n=this.clusterProps[e[t+6]];return i?Object.assign({},n):n}const n=this.points[e[t+3]].properties,r=this.options.map(n);return i&&r===n?Object.assign({},r):r}}function T(e,t,i){return{type:"Feature",id:e[t+3],properties:C(e,t,i),geometry:{type:"Point",coordinates:[(n=e[t],360*(n-.5)),E(e[t+1])]}};var n}function C(e,t,i){const n=e[t+5],r=n>=1e4?`${Math.round(n/1e3)}
1k`:n>=1e3?Math.round(n/100)/10+"k":n,o=e[t+6],s=-1===o?{}:Object.assign({},i[o]);return Object.assign(s,{cluster:!0,cluster_id:e[t+3],point_count:n,point_count_abbreviated:r})}function P(e){return e/360+.5}function M(e){const t=Math.sin(e*Math.PI/180),i=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return i<0?0:i>1?1:i}function E(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}class z extends h{constructor(e){var{maxZoom:i,radius:n=60}=e,r=t(e,["maxZoom","radius"]);super({maxZoom:i}),this.state={zoom:-1},this.superCluster=new k(Object.assign({maxZoom:this.maxZoom,radius:n},r))}calculate(e){let t=!1;const n={zoom:e.map.getZoom()};if(!m(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const n=this.markers.map((e=>{const t=i.getPosition(e);return{type:"Feature",geometry:{type:"Point",coordinates:[t.lng(),t.lat()]},properties:{marker:e}}}));this.superCluster.load(n)}return t||(this.state.zoom<=this.maxZoom||n.zoom<=this.maxZoom)&&(t=!m(this.state,n)),this.state=n,t&&(this.clusters=this.cluster(e)),{clusters:this.cluster
vendor: 6,203 bytes, line 1
1s,changed:t}}cluster(e){let{map:t}=e;return this.superCluster.getClusters([-180,-90,180,90],Math.round(t.getZoom())).map((e=>this.transformCluster(e)))}transformCluster(e){let{geometry:{coordinates:[t,r]},properties:o}=e;if(o.cluster)return new n({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((e=>e.properties.marker)),position:{lat:r,lng:t}});const s=o.marker;return new n({markers:[s],position:i.getPosition(s)})}}class A{constructor(e,t){this.markers={sum:e.length};const i=t.map((e=>e.count)),n=i.reduce(((e,t)=>e+t),0);this.clusters={count:t.length,markers:{mean:n/t.length,sum:n,min:Math.min(...i),max:Math.max(...i)}}}}class j{render(e,t,n){let{count:r,position:o}=e;const s=`<svg fill="${r>Math.max(10,t.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${r}</text>\n</svg>`,a=`Cluster of ${r} markers`,l=Number(google.maps.Marker.MAX_ZINDEX)+r;if(i.isAdvancedMarkerAvailable(n)){const e=(new DOMParser).parseFromString(s,"image/svg+xml").documentElement;e.setAttribute("transform","translate(0 25)");const t={map:n,position:o,zIndex:l,title:a,content:e};return new google.maps.marker.AdvancedMarkerElement(t)}const c={position:o,zIndex:l,title:a,icon:{url:`data:image/svg+xml;base64,${btoa(s)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(c)}}class O{constructor(){!function(e,t){for(let i in t.prototype)e.prototype[i]=t.prototype[i]}(O,google.maps.OverlayView)}}var I;e.MarkerClustererEvents=void 0,(I=e.MarkerClustererEvents||(e.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",I.CLUSTERING_END="clusteringend",I.CLUSTER_CLICK="click";const B=(e,t,i)=>{i.fitBounds(t.bounds)};return e.AbstractAlgorithm=h,e.AbstractViewportAlgorithm=d,e.Cluster=n,e.ClusterStats=A,e.DefaultRenderer=j,e.GridAlgorithm=class extends d{constructor(e){var{maxDistance:i=4e4,gridSize:n=40}=e;super(t(e,["maxDistance","gridSize"])),this.clusters=[],this.state={zoom:-1},this.maxDistance=i,this.gridSize=n}calculate(e){let{markers:t,map:i,mapCanvasProjection:n}=e;const o={zoom:i.getZoom()};let s=!1;return this.state.zoom>=this.maxZoom&&o.zoom>=this.maxZoom||(s=!m(this.state,o)),this.state=o,i.getZoom()>=this.maxZoom?{clusters:this.noop({markers:t}),changed:s}:{clusters:this.cluster({markers:r(i,n,t,this.viewportPadding),map:i,mapCanvasProjection:n})}}cluster(e){let{markers:t,map:i,mapCanvasProjection:n}=e;return this.clusters=[],t.forEach((e=>{this.addToClosestCluster(e,i,n)})),this.clusters}addToClosestCluster(e,t,r){let s=this.maxDistance,l=null;for(let t=0;t<this.clusters.length;t++){const n=this.clusters[t],r=a(n.bounds.getCenter().toJSON(),i.getPosition(e).toJSON());r<s&&(s=r,l=n)}if(l&&o(l.bounds,r,this.gridSize).contains(i.getPosition(e)))l.push(e);else{const t=new n({markers:[e]});this.clusters.push(t)}}},e.MarkerClusterer=class extends O{constructor(e){let{map:t,markers:i=[],algorithmOptions:n={},algorithm:r=new z(n),renderer:o=new j,onClusterClick:s=B}=e;super(),this.markers=[...i],this.clusters=[],this.algorithm=r,this.renderer=o,this.onClusterClick=s,t&&this.setMap(t)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach((e=>{this.addMarker(e,!0)})),t||this.render()}removeMarker(e,t){const n=this.markers.indexOf(e);return-1!==n&&(i.setMap(e,null),this.markers.splice(n,1),t||this.render(),!0)}removeMarkers(e,t){let i=!1;return e.forEach((e=>{i=this.removeMarker(e,!0)||i})),i&&!t&&this.render(),i}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const t=this.getMap();if(t instanceof google.maps.Map&&t.getProjection()){google.maps.event.trigger(this,e.MarkerClustererEvents.CLUSTERING_BEGIN,this);const{clusters:n,changed:r}=this.algorithm.calculate({markers:this.markers,map:t,mapCanvasProjection:this.getProjection()});if(r||null==r){const e=new Set;for(const t of n)1==t.markers.length&&e.add(t.markers[0]);const t=[];for(const n of this.clusters)null!=n.marker&&(1==n.markers.length?e.has(n.marker)||i.setMap(n.marker,null):t.push(n.marker));this.clusters=n,this.renderClusters(),requestAnimationFrame((()=>t.forEach((e=>i.setMap(e,null)))))}google.maps.event.trigger(this,e.MarkerClustererEvents.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach((e=>i.setMap(e,null))),this.clusters.forEach((e=>e.delete())),this.clusters=[]}renderClusters(){const t=new A(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((r=>{1===r.markers.length?r.marker=r.markers[0]:(r.marker=this.renderer.render(r,t,n),r.markers.forEach((e=>i.setMap(e,null))),this.onClusterClick&&r.marker.addListener("click",(t=>{google.maps.event.trigger(this,e.MarkerClustererEvents.CLUSTER_CLICK,r),this.onClusterClick(t,r,n)}))),i.setMap(r.marker,n)}))}},e.MarkerUtils=i,e.NoopAlgorithm=class extends h{constructor(e){super(t(e,[]))}calculate(e){let{markers:t,map:i,mapCanvasProjection:n}=e;return{clusters:this.cluster({markers:t,map:i,mapCanvasProjection:n}),changed:!1}}cluster(e){return this.noop(e)}},e.SuperClusterAlgorithm=z,e.SuperClusterViewportAlgorithm=class extends d{constructor(e){var{maxZoom:i,radius:n=60,viewportPadding:r=60}=e,o=t(e,["maxZoom","radius","viewportPadding"]);super({maxZoom:i,viewportPadding:r}),this.superCluster=new k(Object.assign({maxZoom:this.maxZoom,radius:n},o)),this.state={zoom:-1,view:[0,0,0,0]}}calculate(e){const t={zoom:Math.round(e.map.getZoom()),view:s(e.map.getBounds(),e.mapCanvasProjection,this.viewportPadding)};let n=!m(this.state,t);if(!m(e.markers,this.markers)){n=!0,this.markers=[...e.markers];const t=this.markers.map((e=>{const t=i.getPosition(e);return{type:"Feature",geometry:{type:"Point",coordinates:[t.lng(),t.lat()]},properties:{marker:e}}}));this.superCluster.load(t)}
1return n&&(this.clusters=this.cluster(e),this.state=t),{clusters:this.clusters,changed:n}}cluster(e){let{map:t,mapCanvasProjection:i}=e;const n={zoom:Math.round(t.getZoom()),view:s(t.getBounds(),i,this.viewportPadding)};return this.superCluster.getClusters(n.view,n.zoom).map((e=>this.transformCluster(e)))}transformCluster(e){let{geometry:{coordinates:[t,r]},properties:o}=e;if(o.cluster)return new n({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((e=>e.properties.marker)),position:{lat:r,lng:t}});const s=o.marker;return new n({markers:[s],position:i.getPosition(s)})}},e.defaultOnClusterClickHandler=B,e.distanceBetweenPoints=a,e.extendBoundsToPaddedViewport=o,e.extendPixelBounds=c,e.filterMarkersToPaddedViewport=r,e.getPaddedViewport=s,e.noop=p,e.pixelBoundsToLatLngBounds=u,Object.defineProperty(e,"__esModule",{value:!0}),e}({}); 2/* @preserve 3 * Leaflet 1.8.0, a JS library for interactive maps. https://leafletjs.com 4 * (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade 5 */!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).leaflet={})}(this,(function(e){"use strict";function t(e){for(var t,i,n=1,r=arguments.length;n<r;n++)for(t in i=arguments[n])e[t]=i[t];return e}var i=Object.create||function(e){return n.prototype=e,new n};function n(){}function r(e,t){var i=Array.prototype.slice;if(e.bind)return e.bind.apply(e,i.call(arguments,1));var n=i.call(arguments,2);return function(){return e.apply(t,n.length?n.concat(i.call(arguments)):arguments)}}var o=0;function s(e){return"_leaflet_id"in e||(e._leaflet_id=++o),e._leaflet_id}function a(e,t,i){var n,r,o=function(){n=!1,r&&(s.apply(i,r),r=!1)},s=function(){n?r=arguments:(e.apply(i,arguments),setTimeout(o,t),n=!0)};return s}function l(e,t,i){var n=t[1],r=n-(t=t[0]);return e===n&&i?e:((e-t)%r+r)%r+t}function c(){return!1}function u(e,t){return!1===t?e:(t=Math.pow(10,void 0===t?6:t),Math.round(e*t)/t)}function h(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function d(e){return h(e).split(/\s+/)}function p(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?i(e.options):{}),t)e.options[n]=t[n];return e.options}function m(e,t,i){var n,r=[];for(n in e)r.push(encodeURIComponent(i?n.toUpperCase():n)+"="+encodeURIComponent(e[n]));return(t&&-1!==t.indexOf("?")?"&":"?")+r.join("&")}var f=/\{ *([\w_ -]+) *\}/g;function _(e,t){return e.replace(f,(function(e,i){if(void 0===(i=t[i]))throw new Error("No value provided for variable "+e);return"function"==typeof i?i(t):i}))}var g=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function y(e,t){for(var i=0;i<e.length;i++)if(e[i]===t)return i;return-1}var v="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var x=0;function w(e){var t=+new Date,i=Math.max(0,16-(t-x));return x=t+i,window.setTimeout(e,i)}var S=window.requestAnimationFrame||b("RequestAnimationFrame")||w,k=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function T(e,t,i){if(!i||S!==w)return S.call(window,r(e,t));e.call(t)}function C(e){e&&k.call(window,e)}var P={__proto__:null,extend:t,create:i,bind:r,get lastId(){return o},stamp:s,throttle:a,wrapNum:l,falseFn:c,formatNum:u,trim:h,splitWords:d,setOptions:p,getParamString:m,template:_,isArray:g,indexOf:y,emptyImageUrl:v,requestFn:S,cancelFn:k,requestAnimFrame:T,cancelAnimFrame:C};function M(){}M.extend=function(e){function n(){p(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var r,o=n.__super__=this.prototype,s=i(o);for(r in(s.constructor=n).prototype=s,this)Object.prototype.hasOwnProperty.call(this,r)&&"prototype"!==r&&"__super__"!==r&&(n[r]=this[r]);if(e.statics&&t(n,e.statics),e.includes){var a=e.includes;if("undefined"!=typeof L&&L&&L.Mixin){a=g(a)?a:[a];for(var l=0;l<a.length;l++)a[l],L.Mixin.Events}t.apply(null,[s].concat(e.includes))}return t(s,e),delete s.statics,delete s.includes,s.options&&(s.options=o.options?i(o.options):{},t(s.options,e.options)),s._initHooks=[],s.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=s._initHooks.length;e<t;e++)s._initHooks[e].call(this)}},n},M.include=function(e){var i=this.prototype.options;return t(this.prototype,e),e.options&&(this.prototype.options=i,this.mergeOptions(e.options)),this},M.mergeOptions=function(e){return t(this.prototype.options,e),this},M.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1
5),i="function"==typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var E={on:function(e,t,i){if("object"==typeof e)for(var n in e)this._on(n,e[n],t);else for(var r=0,o=(e=d(e)).length;r<o;r++)this._on(e[r],t,i);return this},off:function(e,t,i){if(arguments.length)if("object"==typeof e)for(var n in e)this._off(n,e[n],t);else{e=d(e);for(var r=1===arguments.length,o=0,s=e.length;o<s;o++)r?this._off(e[o]):this._off(e[o],t,i)}else delete this._events;return this},_on:function(e,t,i){if("function"!=typeof t);else{this._events=this._events||{};for(var n=this._events[e],r=(e=(n||(this._events[e]=n=[]),{fn:t,ctx:i=i===this?void 0:i}),n),o=0,s=r.length;o<s;o++)if(r[o].fn===t&&r[o].ctx===i)return;r.push(e)}},_off:function(e,t,i){var n,r,o;if(this._events&&(n=this._events[e]))if(1===arguments.length){if(this._firingCount)for(r=0,o=n.length;r<o;r++)n[r].fn=c;delete this._events[e]}else if(i===this&&(i=void 0),"function"!=typeof t);else for(r=0,o=n.length;r<o;r++){var s=n[r];if(s.ctx===i&&s.fn===t)return this._firingCount&&(s.fn=c,this._events[e]=n=n.slice()),void n.splice(r,1)}},fire:function(e,i,n){if(!this.listens(e,n))return this;var r=t({},i,{type:e,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var o=this._events[e];if(o){this._firingCount=this._firingCount+1||1;for(var s=0,a=o.length;s<a;s++){var l=o[s];l.fn.call(l.ctx||this,r)}this._firingCount--}}return n&&this._propagateEvent(r),this},listens:function(e,t){var i=this._events&&this._events[e];if(i&&i.length)return!0;if(t)for(var n in this._eventParents)if(this._eventParents[n].listens(e,t))return!0;return!1},once:function(e,t,i){if("object"==typeof e){for(var n in e)this.once(n,e[n],t);return this}var o=r((function(){this.off(e,t,i).off(e,o,i)}),this);return this.on(e,t,i).on(e,o,i)},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[s(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[s(e)],this},_propagateEvent:function(e){for(var i in this._eventParents)this._eventParents[i].fire(e.type,t({layer:e.target,propagatedFrom:e.target},e),!0)}},z=(E.addEventListener=E.on,E.removeEventListener=E.clearAllEventListeners=E.off,E.addOneTimeEventListener=E.once,E.fireEvent=E.fire,E.hasEventListeners=E.listens,M.extend(E));function A(e,t,i){this.x=i?Math.round(e):e,this.y=i?Math.round(t):t}var j=Math.trunc||function(e){return 0<e?Math.floor(e):Math.ceil(e)};function O(e,t,i){return e instanceof A?e:g(e)?new A(e[0],e[1]):null==e?e:"object"==typeof e&&"x"in e&&"y"in e?new A(e.x,e.y):new A(e,t,i)}function I(e,t){if(e)for(var i=t?[e,t]:e,n=0,r=i.length;n<r;n++)this.extend(i[n])}function B(e,t){return!e||e instanceof I?e:new I(e,t)}function D(e,t){if(e)for(var i=t?[e,t]:e,n=0,r=i.length;n<r;n++)this.extend(i[n])}function q(e,t){return e instanceof D?e:new D(e,t)}function N(e,t,i){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==i&&(this.alt=+i)}function Z(e,t,i){return e instanceof N?e:g(e)&&"object"!=typeof e[0]?3===e.length?new N(e[0],e[1],e[2]):2===e.length?new N(e[0],e[1]):null:null==e?e:"object"==typeof e&&"lat"in e?new N(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new N(e,t,i)}A.prototype={clone:function(){return new A(this.x,this.y)},add:function(e){return this.clone()._add(O(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(O(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new A(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new A(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=j(this.x),this.y=j(this.y),this},distanceTo:function(e){var t=(e=O(e)).x-this.x;e=e.y-this.y;return Math.sqrt(t*t+e*e)},equals:function(e){return(e=O(e)).x===this.x&&e.y===this.y},contains:function(e){return e=O(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},I.prototype={extend:function(e){return e=O(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new A((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return new A(this.min.x,this.max.y)},getTopRight:function(){return new A(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,i;return(e=("number"==typeof e[0]||e instanceof A?O:B)(e))instanceof I?(t=e.min,i=e.max):t=i=e,t.x>=this.min.x&&i.x<=this.max.x&&t.y>=this.min.y&&i.y<=this.max.y},intersects:function(e){e=B(e);var t=this.min,i=this.max,n=e.min,r=(e=e.max).x>=t.x&&n.x<=i.x;e=e.y>=t.y&&n.y<=i.y;return r&&e},overlaps:function(e){e=B(e);var t=this.min,i=this.max,n=e.min,r=(e=e.max).x>t.x&&n.x<i.x;e=e.y>t.y&&n.y<i.y;return r&&e},isValid:function(){return!(!this.min||!this.max)}},D.prototype={extend:function(e){var t,i,n=this._southWest,r=this._northEast;if(e instanceof N)i=t=e;else{if(!(e instanceof D))return e?this.extend(Z(e)||q(e)):this;if(t=e._southWest,i=e._northEast,!t||!i)return this}return n||r?(n.lat=Math.min(t.lat,n.lat),n.lng=Math.min(t.lng,n.lng),r.lat=Math.max(i.lat,r.lat),r.lng=Math.max(i.lng,r.lng)):(this._southWest=new N(t.lat,t.lng),this._northEast=new N(i.lat,i.lng)),this},pad:function(e){var t=this._southWest,i=this._northEast,n=Math.abs(t.lat-i.lat)*e;e=Math.abs(t.lng-i.lng)*e;return new D(new N(t.lat-n,t.lng-e),new N(i.lat+n,i.lng+e))},getCenter:function(){return new N((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new N(this.getNorth(),this.getWest())},getSouthEast:function(){return new N(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
5,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e=("number"==typeof e[0]||e instanceof N||"lat"in e?Z:q)(e);var t,i,n=this._southWest,r=this._northEast;return e instanceof D?(t=e.getSouthWest(),i=e.getNorthEast()):t=i=e,t.lat>=n.lat&&i.lat<=r.lat&&t.lng>=n.lng&&i.lng<=r.lng},intersects:function(e){e=q(e);var t=this._southWest,i=this._northEast,n=e.getSouthWest(),r=(e=e.getNorthEast()).lat>=t.lat&&n.lat<=i.lat;e=e.lng>=t.lng&&n.lng<=i.lng;return r&&e},overlaps:function(e){e=q(e);var t=this._southWest,i=this._northEast,n=e.getSouthWest(),r=(e=e.getNorthEast()).lat>t.lat&&n.lat<i.lat;e=e.lng>t.lng&&n.lng<i.lng;return r&&e},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=q(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!(!this._southWest||!this._northEast)}};var H={latLngToPoint:function(e,t){return e=this.projection.project(e),t=this.scale(t),this.transformation._transform(e,t)},pointToLatLng:function(e,t){return t=this.scale(t),e=this.transformation.untransform(e,t),this.projection.unproject(e)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds;e=this.scale(e);return new I(this.transformation.transform(t.min,e),this.transformation.transform(t.max,e))},infinite:!(N.prototype={equals:function(e,t){return!!e&&(e=Z(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+u(this.lat,e)+", "+u(this.lng,e)+")"},distanceTo:function(e){return F.distance(this,Z(e))},wrap:function(){return F.wrapLatLng(this)},toBounds:function(e){var t=(e=180*e/40075017)/Math.cos(Math.PI/180*this.lat);return q([this.lat-e,this.lng-t],[this.lat+e,this.lng+t])},clone:function(){return new N(this.lat,this.lng,this.alt)}}),wrapLatLng:function(e){var t=this.wrapLng?l(e.lng,this.wrapLng,!0):e.lng;return new N(this.wrapLat?l(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),i=this.wrapLatLng(t),n=t.lat-i.lat;t=t.lng-i.lng;
vendor: 8,376 bytes, line 5
5return 0==n&&0==t?e:(i=e.getSouthWest(),e=e.getNorthEast(),new D(new N(i.lat-n,i.lng-t),new N(e.lat-n,e.lng-t)))}},F=t({},H,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var i=Math.PI/180,n=e.lat*i,r=t.lat*i,o=Math.sin((t.lat-e.lat)*i/2);t=Math.sin((t.lng-e.lng)*i/2),e=o*o+Math.cos(n)*Math.cos(r)*t*t,i=2*Math.atan2(Math.sqrt(e),Math.sqrt(1-e));return this.R*i}}),R={R:R=6378137,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,i=this.MAX_LATITUDE;i=Math.max(Math.min(i,e.lat),-i),i=Math.sin(i*t);return new A(this.R*e.lng*t,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(e){var t=180/Math.PI;return new N((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:new I([-(R*=Math.PI),-R],[R,R])};function W(e,t,i,n){if(g(e))return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=i,this._d=n}function $(e,t,i,n){return new W(e,t,i,n)}W.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return e.x=(t=t||1)*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return new A((e.x/(t=t||1)-this._b)/this._a,(e.y/t-this._d)/this._c)}};var G=t({},F,{code:"EPSG:3857",projection:R,transformation:$(G=.5/(Math.PI*R.R),.5,-G,.5)}),V=t({},G,{code:"EPSG:900913"});function U(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Y(e,t){for(var i,n,r,o,s="",a=0,l=e.length;a<l;a++){for(i=0,n=(r=e[a]).length;i<n;i++)s+=(i?"L":"M")+(o=r[i]).x+" "+o.y;s+=t?Pe.svg?"z":"x":""}return s||"M0 0"}var Q=document.documentElement.style,J="ActiveXObject"in window,X=J&&!document.addEventListener,K="msLaunchUri"in navigator&&!("documentMode"in document),ee=Ce("webkit"),te=Ce("android"),ie=Ce("android 2")||Ce("android 3"),ne=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),re=(ne=te&&Ce("Google")&&ne<537&&!("AudioNode"in window),!!window.opera),oe=!K&&Ce("chrome"),se=Ce("gecko")&&!ee&&!re&&!J,ae=!oe&&Ce("safari"),le=Ce("phantom"),ce="OTransition"in Q,ue=0===navigator.platform.indexOf("Win"),he=J&&"transition"in Q,de="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ie,pe=(Q="MozPerspective"in Q,!window.L_DISABLE_3D&&(he||de||Q)&&!ce&&!le),me=(Fi="undefined"!=typeof orientation||Ce("mobile"))&&ee,fe=Fi&&de,_e=!window.PointerEvent&&window.MSPointerEvent,ge=!(!window.PointerEvent&&!_e),ye="ontouchstart"in window||!!window.TouchEvent,ve=!window.L_NO_TOUCH&&(ye||ge),be=Fi&&re,xe=Fi&&se,we=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),Se=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",c,t),window.removeEventListener("testPassiveEventSupport",c,t)}catch(e){}return e}(),Le=!!document.createElement("canvas").getContext,ke=!(!document.createElementNS||!U("svg").createSVGRect),Te=!!ke&&((Te=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(Te.firstChild&&Te.firstChild.namespaceURI));function Ce(e){return 0<=navigator.userAgent.toLowerCase().indexOf(e)}var Pe={ie:J,ielt9:X,edge:K,webkit:ee,android:te,android23:ie,androidStock:ne,opera:re,chrome:oe,gecko:se,safari:ae,phantom:le,opera12:ce,win:ue,ie3d:he,webkit3d:de,gecko3d:Q,any3d:pe,mobile:Fi,mobileWebkit:me,mobileWebkit3d:fe,msPointer:_e,pointer:ge,touch:ve,touchNative:ye,mobileOpera:be,mobileGecko:xe,retina:we,passiveEvents:Se,canvas:Le,svg:ke,vml:!ke&&function(){try{var e=document.createElement("div"),t=(e.innerHTML='<v:shape adj="1"/>',e.firstChild);return t.style.behavior="url(#default#VML)",t&&"object"==typeof t.adj}catch(e){return!1}}(),inlineSvg:Te},Me=Pe.msPointer?"MSPointerDown":"pointerdown",Ee=Pe.msPointer?"MSPointerMove":"pointermove",ze=Pe.msPointer?"MSPointerUp":"pointerup",Ae=Pe.msPointer?"MSPointerCancel":"pointercancel",je={touchstart:Me,touchmove:Ee,touchend:ze,touchcancel:Ae},Oe={touchstart:function(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Mt(t),Ze(e,t)},touchmove:Ze,touchend:Ze,touchcancel:Ze},Ie={},Be=!1;function De(e){Ie[e.pointerId]=e}function qe(e){Ie[e.pointerId]&&(Ie[e.pointerId]=e)}function Ne(e){delete Ie[e.pointerId]}function Ze(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in t.touches=[],Ie)t.touches.push(Ie[i]);t.changedTouches=[t],e(t)}}var He,Fe,Re,We,$e,Ge,Ve=ct(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ue=ct(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ye="webkitTransition"===Ue||"OTransition"===Ue?Ue+"End":"transitionend";function Qe(e){return"string"==typeof e?document.getElementById(e):e}function Je(e,t){var i=e.style[t]||e.currentStyle&&e.currentStyle[t];return"auto"===(i=i&&"auto"!==i||!document.defaultView?i:(e=document.defaultView.getComputedStyle(e,null))?e[t]:null)?null:i}function Xe(e,t,i){return(e=document.createElement(e)).className=t||"",i&&i.appendChild(e),e}function Ke(e){var t=e.parentNode;t&&t.removeChild(e)}function et(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function tt(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function it(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function nt(e,t){return void 0!==e.classList?e.classList.contains(t):0<(e=at(e)).length&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e)}function rt(e,t){var i;if(void 0!==e.classList)for(var n=d(t),r=0,o=n.length;r<o;r++)e.classList.add(n[r]);else nt(e,t)||st(e,((i=at(e))?i+" ":"")+t)}function ot(e,t){void 0!==e.classList?e.classList.remove(t):st(e,h((" "+at(e)+" ").replace(" "+t+" "," ")))}function st(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function at(e){return void 0===(e=e.correspondingElement?e.correspondingElement:e).className.baseVal?e.className:e.className.baseVal}function lt(e,t){if("opacity"in e.style)e.style.opacity=t;else if("filter"in e.style){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=e.filters.item(n)}catch(e){if(1===t)return}t=Math.round(100*t),i?(i.Enabled=100!==t,i.Opacity=t):e.style.filter+=" progid:"+n+"(opacity="+t+")"}}function ct(e){for(var t=document.documentElement.style,i=0;i<e.length;i++)if(e[i]in t)return e[i];return!1}function ut(e,t,i){t=t||new A(0,0),e.style[Ve]=(Pe.ie3d?"translate("+t.x+"px,"+t.y+"px)":"translate3d("+t.x+"px,"+t.y+"px,0)")+(i?" scale("+i+")":"")}function ht(e,t){e._leaflet_pos=t,Pe.any3d?ut(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function dt(e){return e._leaflet_pos||new A(0,0)}function pt(){vt(window,"dragstart",Mt)}function mt(){xt(window,"dragstart",Mt)}function ft(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(_t(),Ge=($e=e).style.outline,e.style.outline="none",vt(window,"keydown",_t))}function _t(){$e&&($e.style.outline=Ge,Ge=$e=void 0,xt(window,"keydown",_t))}function gt(e){for(;!((e=e.parentNode).offsetWidth&&e.offsetHeight||e===document.body););return e}function yt(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}function vt(e,t,i,n){if(t&&"object"==typeof t)for(var r in t)Lt(e,r,t[r],i);else for(var o=0,s=(t=d(t)).length;o<s;o++)Lt(e,t[o],i,n);return this}We="onselectstart"in document?(Re=function(){vt(window,"selectstart",Mt)},function(){xt(window,"selectstart",Mt)}):(Fe=ct(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),Re=function(){var e;Fe&&(e=document.documentElement.style,He=e[Fe],e[Fe]="none")},function(){Fe&&(document.documentElement.style[Fe]=He,He=void 0)}),J={__proto__:null,TRANSFORM:Ve,TRANSITION:Ue,TRANSITION_END:Ye,get:Qe,getStyle:Je,create:Xe,remove:Ke,empty:et,toFront:tt,toBack:it,hasClass:nt,addClass:rt,removeClass:ot,setClass:st,getClass:at,setOpacity:lt,testProp:ct,setTransform:ut,setPosition:ht,getPosition:dt,get disableTextSelection(){return Re},get enableTextSelection(){return We},disableImageDrag:pt,enableImageDrag:mt,preventOutline:ft,restoreOutline:_t,getSizedParentNode:gt,getScale:yt};var bt="_leaflet_events";function xt(e,t,i,n){if(1===arguments.length)wt(e),delete e[bt];else if(t&&"object"==typeof t)for(var r in t)kt(e,r,t[r],i);else if(t=d(t),2===arguments.length)wt(e,(function(e){return-1!==y(t,e)}));else for(var o=0,s=t.length;o<s;o++)kt(e,t[o],i,n);return this}function wt(e,t){for(var i in e[bt]){var n=i.split(/\d/)[0];t&&!t(n)||kt(e,n,null,null,i)}}
5var St={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Lt(e,t,i,n){var r,o,a=t+s(i)+(n?"_"+s(n):"");e[bt]&&e[bt][a]||(o=r=function(t){return i.call(n||e,t||window.event)},!Pe.touchNative&&Pe.pointer&&0===t.indexOf("touch")?r=function(e,t,i){return"touchstart"!==t||Be||(document.addEventListener(Me,De,!0),document.addEventListener(Ee,qe,!0),document.addEventListener(ze,Ne,!0),document.addEventListener(Ae,Ne,!0),Be=!0),Oe[t]?(i=Oe[t].bind(this,i),e.addEventListener(je[t],i,!1),i):L.Util.falseFn}(e,t,r):Pe.touch&&"dblclick"===t?r=function(e,t){e.addEventListener("dblclick",t);var i,n=0;function r(e){var r;1!==e.detail?i=e.detail:"mouse"===e.pointerType||e.sourceCapabilities&&!e.sourceCapabilities.firesTouchEvents||((r=Date.now())-n<=200?2===++i&&t(function(e){var t,i,n={};for(i in e)t=e[i],n[i]=t&&t.bind?t.bind(e):t;return(e=n).type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}(e)):i=1,n=r)}return e.addEventListener("click",r),{dblclick:t,simDblclick:r}}(e,r):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(St[t]||t,r,!!Pe.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?e.addEventListener(St[t],r=function(t){t=t||window.event,Ot(e,t)&&o(t)},!1):e.addEventListener(t,o,!1):e.attachEvent("on"+t,r),e[bt]=e[bt]||{},e[bt][a]=r)}function kt(e,t,i,n,r){var o,a;r=r||t+s(i)+(n?"_"+s(n):""),(i=e[bt]&&e[bt][r])&&(!Pe.touchNative&&Pe.pointer&&0===t.indexOf("touch")?(n=e,a=i,je[o=t]&&n.removeEventListener(je[o],a,!1)):Pe.touch&&"dblclick"===t?(n=i,(a=e).removeEventListener("dblclick",n.dblclick),a.removeEventListener("click",n.simDblclick)):"removeEventListener"in e?e.removeEventListener(St[t]||t,i,!1):e.detachEvent("on"+t,i),e[bt][r]=null)}function Tt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function Ct(e){return Lt(e,"wheel",Tt),this}function Pt(e){return vt(e,"mousedown touchstart dblclick contextmenu",Tt),e._leaflet_disable_click=!0,this}function Mt(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function Et(e){return Mt(e),Tt(e),this}function zt(e,t){if(!t)return new A(e.clientX,e.clientY);var i=yt(t),n=i.boundingClientRect;return new A((e.clientX-n.left)/i.x-t.clientLeft,(e.clientY-n.top)/i.y-t.clientTop)}var At=Pe.win&&Pe.chrome?2*window.devicePixelRatio:Pe.gecko?window.devicePixelRatio:1;function jt(e){return Pe.edge?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/At:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}function Ot(e,t){var i=t.relatedTarget;if(!i)return!0;try{for(;i&&i!==e;)i=i.parentNode}catch(e){return!1}return i!==e}X={__proto__:null,on:vt,off:xt,stopPropagation:Tt,disableScrollPropagation:Ct,disableClickPropagation:Pt,preventDefault:Mt,stop:Et,getMousePosition:zt,getWheelDelta:jt,isExternalTarget:Ot,addListener:vt,removeListener:xt};var It=z.extend({run:function(e,t,i,n){this.stop(),this._el=e,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=dt(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=T(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,i=1e3*this._duration;t<i?this._runFrame(this._easeOut(t/i),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){e=this._startPos.add(this._offset.multiplyBy(e)),t&&e._round(),ht(this._el,e),this.fire("step")},_complete:function(){C(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),Bt=z.extend({options:{crs:G,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,t){t=p(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(Z(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Ue&&Pe.any3d&&!Pe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),vt(this._proxy,Ye,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
5,setView:function(e,i,n){return i=void 0===i?this._zoom:this._limitZoom(i),e=this._limitCenter(Z(e),i,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=t({animate:n.animate},n.zoom),n.pan=t({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,i,n.zoom):this._tryAnimatedPan(e,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,i),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(Pe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(Pe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,i){var n=this.getZoomScale(t),r=this.getSize().divideBy(2);e=(e instanceof A?e:this.latLngToContainerPoint(e)).subtract(r).multiplyBy(1-1/n),n=this.containerPointToLatLng(r.add(e));return this.setView(n,t,{zoom:i})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():q(e);var i=O(t.paddingTopLeft||t.padding||[0,0]),n=O(t.paddingBottomRight||t.padding||[0,0]),r=this.getBoundsZoom(e,!1,i.add(n));return(r="number"==typeof t.maxZoom?Math.min(t.maxZoom,r):r)===1/0?{center:e.getCenter(),zoom:r}
5:(t=n.subtract(i).divideBy(2),n=this.project(e.getSouthWest(),r),i=this.project(e.getNorthEast(),r),{center:this.unproject(n.add(i).divideBy(2).add(t),r),zoom:r})},fitBounds:function(e,t){if(!(e=q(e)).isValid())throw new Error("Bounds are not valid.");return e=this._getBoundsCenterZoom(e,t),this.setView(e.center,e.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){return t=t||{},(e=O(e).round()).x||e.y?(!0===t.animate||this.getSize().contains(e)?(this._panAnim||(this._panAnim=new It,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate?(rt(this._mapPane,"leaflet-pan-anim"),i=this._getMapPanePos().subtract(e).round(),this._panAnim.run(this._mapPane,i,t.duration||.25,t.easeLinearity)):(this._rawPanBy(e),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this):this.fire("moveend");var i},flyTo:function(e,t,i){if(!1===(i=i||{}).animate||!Pe.any3d)return this.setView(e,t,i);this._stop();var n=this.project(this.getCenter()),r=this.project(e),o=this.getSize(),s=this._zoom,a=(e=Z(e),t=void 0===t?s:t,Math.max(o.x,o.y)),l=a*this.getZoomScale(s,t),c=r.distanceTo(n)||1,u=1.42,h=u*u;function d(e){return e=(l*l-a*a+(e?-1:1)*h*h*c*c)/(2*(e?l:a)*h*c),(e=Math.sqrt(e*e+1)-e)<1e-9?-18:Math.log(e)}function p(e){return(Math.exp(e)-Math.exp(-e))/2}function m(e){return(Math.exp(e)+Math.exp(-e))/2}var f=d(0);var _=Date.now(),g=(d(1)-f)/u,y=i.duration?1e3*i.duration:1e3*g*.8;return this._moveStart(!0,i.noMoveStart),function i(){var o=(Date.now()-_)/y,l=(1-Math.pow(1-o,1.5))*g;o<=1?(this._flyToFrame=T(i,this),this._move(this.unproject(n.add(r.subtract(n).multiplyBy(function(e){return a*(m(f)*(p(e=f+u*e)/m(e))-p(f))/h}(l)/c)),s),this.getScaleZoom(a/(o=l,a*(m(f)/m(f+u*o))),s),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}.call(this),this},flyToBounds:function(e,t){return e=this._getBoundsCenterZoom(e,t),this.flyTo(e.center,e.zoom,t)},setMaxBounds:function(e){return(e=q(e)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var i=this.getCenter();e=this._limitCenter(i,this._zoom,q(e));return i.equals(e)||this.panTo(e,t),this._enforcingBounds=!1,this},panInside:function(e,t){var i=O((t=t||{}).paddingTopLeft||t.padding||[0,0]),n=O(t.paddingBottomRight||t.padding||[0,0]),r=this.project(this.getCenter()),o=(e=this.project(e),(i=B([(o=this.getPixelBounds()).min.add(i),o.max.subtract(n)])).getSize());return i.contains(e)||(this._enforcingBounds=!0,n=e.subtract(i.getCenter()),i=i.extend(e).getSize().subtract(o),r.x+=n.x<0?-i.x:i.x,r.y+=n.y<0?-i.y:i.y,this.panTo(this.unproject(r),t),this._enforcingBounds=!1),this},invalidateSize:function(e){if(!this._loaded)return this;e=t({animate:!1,pan:!0},!0===e?{animate:!0}:e);var i=this.getSize(),n=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),o=i.divideBy(2).round(),s=n.divideBy(2).round();return(o=o.subtract(s)).x||o.y?(e.animate&&e.pan?this.panBy(o):(e.pan&&this._rawPanBy(o),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=t({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=r(this._handleGeolocationResponse,this),n=r(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,n,e):navigator.geolocation.getCurrentPosition(i,n,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){var t;this._container._leaflet_id&&(t=e.code,e=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+e+"."}))},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t,i,n=new N(e.coords.latitude,e.coords.longitude),r=n.toBounds(2*e.coords.accuracy),o=this._locateOptions,s=(o.setVie
vendor: 9,897 bytes, line 5
5w&&(t=this.getBoundsZoom(r),this.setView(n,o.maxZoom?Math.min(t,o.maxZoom):t)),{latlng:n,bounds:r,timestamp:e.timestamp});for(i in e.coords)"number"==typeof e.coords[i]&&(s[i]=e.coords[i]);this.fire("locationfound",s)}},addHandler:function(e,t){return t?(t=this[e]=new t(this),this._handlers.push(t),this.options[e]&&t.enable(),this):this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}for(var e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),Ke(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(C(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)Ke(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){return t=Xe("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane),e&&(this._panes[e]=t),t},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new D(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,i){e=q(e),i=O(i||[0,0]);var n=this.getZoom()||0,r=this.getMinZoom(),o=this.getMaxZoom(),s=e.getNorthWest(),a=(e=e.getSouthEast(),i=this.getSize().subtract(i),e=B(this.project(e,n),this.project(s,n)).getSize(),s=Pe.any3d?this.options.zoomSnap:1,i.x/e.x);i=i.y/e.y,e=t?Math.max(a,i):Math.min(a,i),n=this.getScaleZoom(e,n);return s&&(n=Math.round(n/(s/100))*(s/100),n=t?Math.ceil(n/s)*s:Math.floor(n/s)*s),Math.max(r,Math.min(o,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){return new I(e=this._getTopLeftPoint(e,t),e.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"==typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var i=this.options.crs;return t=void 0===t?this._zoom:t,i.scale(e)/i.scale(t)},getScaleZoom:function(e,t){var i=this.options.crs;t=void 0===t?this._zoom:t,e=i.zoom(e*i.scale(t));return isNaN(e)?1/0:e},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(Z(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(O(e),t)},layerPointToLatLng:function(e){return e=O(e).add(this.getPixelOrigin()),this.unproject(e)},latLngToLayerPoint:function(e){return this.project(Z(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(Z(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(q(e))},distance:function(e,t){return this.options.crs.distance(Z(e),Z(t))},containerPointToLayerPoint:function(e){return O(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return O(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){return e=this.containerPointToLayerPoint(O(e)),this.layerPointToLatLng(e)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Z(e)))},mouseEventToContainerPoint:function(e){return zt(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){if(!(e=this._container=Qe(e)))throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");vt(e,"scroll",this._onScroll,this),this._containerId=s(e)},_initLayout:function(){var e=this._container,t=(this._fadeAnimated=this.options.fadeAnimation&&Pe.any3d,rt(e,"leaflet-container"+(Pe.touch?" leaflet-touch":"")+(Pe.retina?" leaflet-retina":"")+(Pe.ielt9?" leaflet-oldie":"")+(Pe.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),Je(e,"position"));"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ht(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(rt(e.markerPane,"leaflet-zoom-hide"),rt(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t){ht(this._mapPane,new A(0,0));var i=!this._loaded,n=(this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset"),this._zoom!==t);this._moveStart(n,!1)._move(e,t)._moveEnd(n),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,i,n){void 0===t&&(t=this._zoom);var r=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),n?i&&i.pinch&&this.fire("zoom",i):((r||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return C(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){ht(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={};var t=e?xt:vt;t((this._targets[s(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),Pe.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){C(this._resizeRequest),this._resizeRequest=T((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var i,n=[],r="mouseout"===t||"mouseover"===t,o=e.target||e.srcElement,a=!1;o;){if((i=this._targets[s(o)])&&("click"===t||"preclick"===t)&&this._draggableMoved(i)){a=!0;break}if(i&&i.listens(t,!0)){if(r&&!Ot(o,e))break;if(n.push(i),r)break}if(o===this._container)break;o=o.parentNode}return n.length||a||r||!this.listens(t,!0)?n:[this]},_isClickDisabled:function(e){for(;e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t,i=e.target||e.srcElement;!this._loaded||i._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(i)||("mousedown"===(t=e.type)&&ft(i),this._fireDOMEvent(e,t))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,i,n){"click"===e.type&&((l=t({},e)).type="preclick",this._fireDOMEvent(l,l.type,n));var r=this._findEventTargets(e,i);if(n){for(var o=[],s=0;s<n.length;s++)n[s].listens(i,!0)&&o.push(n[s]);r=o.concat(r)}if(r.length){"contextmenu"===i&&Mt(e);var a,l=r[0],c={originalEvent:e};for("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type&&(a=l.getLatLng&&(!l._radius||l._radius<=10),c.containerPoint=a?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(e),c.layerPoint=this.containerPointToLayerPoint(c.containerPoint),c.latlng=a?l.getLatLng():this.layerPointToLatLng(c.layerPoint)),s=0;s<r.length;s++)if(r[s].fire(i,c,!0),c.originalEvent._stopped||!1===r[s].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,i))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return dt(this._mapPane)||new A(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var i=this.getSize()._divideBy(2);return this.project(e,t)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,i){return i=this._getNewPixelOrigin(i,t),this.project(e,t)._subtract(i)},_latLngBoundsToNewLayerBounds:function(e,t,i){return i=this._getNewPixelOrigin(i,t),B([this.project(e.getSouthWest
5(),t)._subtract(i),this.project(e.getNorthWest(),t)._subtract(i),this.project(e.getSouthEast(),t)._subtract(i),this.project(e.getNorthEast(),t)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,i){if(!i)return e;var n=this.project(e,t),r=this.getSize().divideBy(2);r=new I(n.subtract(r),n.add(r));return(r=this._getBoundsOffset(r,i,t)).round().equals([0,0])?e:this.unproject(n.add(r),t)},_limitOffset:function(e,t){if(!t)return e;var i=new I((i=this.getPixelBounds()).min.add(e),i.max.add(e));return e.add(this._getBoundsOffset(i,t))},_getBoundsOffset:function(e,t,i){return i=(t=B(this.project(t.getNorthEast(),i),this.project(t.getSouthWest(),i))).min.subtract(e.min),t=t.max.subtract(e.max),new A(this._rebound(i.x,-t.x),this._rebound(i.y,-t.y))},_rebound:function(e,t){return 0<e+t?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),i=this.getMaxZoom(),n=Pe.any3d?this.options.zoomSnap:1;return n&&(e=Math.round(e/n)*n),Math.max(t,Math.min(i,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ot(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){return e=this._getCenterOffset(e)._trunc(),!(!0!==(t&&t.animate)&&!this.getSize().contains(e)||(this.panBy(e,t),0))},_createAnimProxy:function(){var e=this._proxy=Xe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=Ve,i=this._proxy.style[t];ut(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),i===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ke(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();ut(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&0<=e.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(t);n=this._getCenterOffset(e)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(n)||(T((function(){this._moveStart(!0,!1)._animateZoom(e,t,!0)}),this),0))},_animateZoom:function(e,t,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,rt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ot(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Dt(e){return new Nt(e)}var qt,Nt=M.extend({options:{position:"topright"},initialize:function(e){p(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),i=this.getPosition();e=e._controlCorners[i];return rt(t,"leaflet-control"),-1!==i.indexOf("bottom")?e.insertBefore(t,e.firstChild):e.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(Ke(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(e){this._map&&e&&0<e.screenX&&0<e.screenY&&this._map.getContainer().focus()}}),Zt=(Bt.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this}
5,_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",i=this._controlContainer=Xe("div",t+"control-container",this._container);function n(n,r){e[n+r]=Xe("div",t+n+" "+t+r,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)Ke(this._controlCorners[e]);Ke(this._controlContainer),delete this._controlCorners,delete this._controlContainer}}),Nt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,i,n){return i<n?-1:n<i?1:0}},initialize:function(e,t,i){for(var n in p(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,e)this._addLayer(e[n],n);for(n in t)this._addLayer(t[n],n,!0)},onAdd:function(e){this._initLayout(),this._update(),(this._map=e).on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return Nt.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){return e.off("add remove",this._onLayerChange,this),(e=this._getLayer(s(e)))&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){rt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(rt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):ot(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ot(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=Xe("div",e),i=this.options.collapsed,n=(t.setAttribute("aria-haspopup",!0),Pt(t),Ct(t),this._section=Xe("section",e+"-list")),r=(i&&(this._map.on("click",this.collapse,this),vt(t,{mouseenter:function(){vt(n,"click",Mt),this.expand(),setTimeout((function(){xt(n,"click",Mt)}))},mouseleave:this.collapse},this)),this._layersLink=Xe("a",e+"-toggle",t));r.href="#",r.title="Layers",r.setAttribute("role","button"),vt(r,"click",Mt),vt(r,"focus",this.expand,this),i||this.expand(),this._baseLayersList=Xe("div",e+"-base",n),this._separator=Xe("div",e+"-separator",n),this._overlaysList=Xe("div",e+"-overlays",n),t.appendChild(n)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&s(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,i){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:i}),this.options.sortLayers&&this._layers.sort(r((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;et(this._baseLayersList),et(this._overlaysList),this._layerControlInputs=[];for(var e,t,i,n=0,r=0;r<this._layers.length;r++)i=this._layers[r],this._addItem(i),t=t||i.overlay,e=e||!i.overlay,n+=i.overlay?0:1;return this.options.hideSingleBase&&(this._baseLayersList.style.display=(e=e&&1<n)?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(s(e.target));(e=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null)&&this._map.fire(e,t)},_createRadioElement:function(e,t){return e='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",(t=document.createElement("div")).innerHTML=e,t.firstChild},_addItem:function(e){var t,i=document.createElement("label"),n=this._map.hasLayer(e.layer),r=((n=(e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=n):t=this._createRadioElement("leaflet-base-layers_"+s(this),n),this._layerControlInputs.push(t),t.layerId=s(e.layer),vt(t,"click",this._onInputClick,this),document.createElement("span"))).innerHTML=" "+e.name,document.createElement("span"));return i.appendChild(r),r.appendChild(t),r.appendChild(n),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){var e,t,i=this._layerControlInputs,n=[],r=[];this._handlingClick=!0;for(var o=i.length-1;0<=o;o--)e=i[o],t=this._getLayer(e.layerId).layer,e.checked?n.push(t):e.checked||r.push(t);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])&&this._map.removeLayer(r[o]);for(o=0;o<n.length;o++)this._map.hasLayer(n[o])||this._map.addLayer(n[o]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var e,t,i=this._layerControlInputs,n=this._map.getZoom(),r
vendor: 9,151 bytes, line 5
5=i.length-1;0<=r;r--)e=i[r],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&n<t.options.minZoom||void 0!==t.options.maxZoom&&n>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this}})),Ht=Nt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",i=Xe("div",t+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,t+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,t+"-out",i,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,i,n,r){return(i=Xe("a",i,n)).innerHTML=e,i.href="#",i.title=t,i.setAttribute("role","button"),i.setAttribute("aria-label",t),Pt(i),vt(i,"click",Et),vt(i,"click",r,this),vt(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";ot(this._zoomInButton,t),ot(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),!this._disabled&&e._zoom!==e.getMinZoom()||(rt(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),!this._disabled&&e._zoom!==e.getMaxZoom()||(rt(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}}),Ft=(Bt.mergeOptions({zoomControl:!0}),Bt.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Ht,this.addControl(this.zoomControl))})),Nt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",i=Xe("div",t),n=this.options;return this._addScales(n,t+"-line",i),e.on(n.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),i},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,i){e.metric&&(this._mScale=Xe("div",t,i)),e.imperial&&(this._iScale=Xe("div",t,i))},_update:function(){var e=(t=this._map).getSize().y/2,t=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(t)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e);this._updateScale(this._mScale,t<1e3?t+" m":t/1e3+" km",t/e)},_updateImperial:function(e){var t,i;5280<(e=3.2808399*e)?(i=this._getRoundNum(t=e/5280),this._updateScale(this._iScale,i+" mi",i/t)):(i=this._getRoundNum(e),this._updateScale(this._iScale,i+" ft",i/e))},_updateScale:function(e,t,i){e.style.width=Math.round(this.options.maxWidth*i)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1);return t*(10<=(e=e/t)?10:5<=e?5:3<=e?3:2<=e?2:1)}})),Rt=Nt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Pe.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(e){p(this,e),this._attributions={}},onAdd:function(e){for(var t in(e.attributionControl=this)._container=Xe("div","leaflet-control-attribution"),Pt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",(function(){this.removeAttribution(e.layer.getAttribution())}),this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e&&(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update()),this},removeAttribution:function(e){return e&&this._attributions[e]&&(this._attributions[e]--,this._update()),this},_update:function(){if(this._map){var e,t=[];for(e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}}),Wt=(K=(Bt.mergeOptions({attributionControl:!0}),Bt.addInitHook((function(){this.options.attributionControl&&(new Rt).addTo(this)})),Nt.Layers=Zt,Nt.Zoom=Ht,Nt.Scale=Ft,Nt.Attribution=Rt,Dt.layers=function(e,t,i){return new Zt(e,t,i)},Dt.zoom=function(e){return new Ht(e)},Dt.scale=function(e){return new Ft(e)},Dt.attribution=function(e){return new Rt(e)},M.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}})),ee=(K.addTo=function(e,t){return e.addHandler(t,this),this},{Events:E}),Pe.touch?"touchstart mousedown":"mousedown"),$t=z.extend({options:{clickTolerance:3},initialize:function(e,t,i,n){p(this,n),this._element=e,this._dragStartTarget=t||e,this._preventOutline=i},enable:function(){this._enabled||(vt(this._dragStartTarget,Wt,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&($t._dragging===this&&this.finishDrag(!0),xt(this._dragStartTarget,Wt,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){var t,i;this._enabled&&(this._moved=!1,nt(this._element,"leaflet-zoom-anim")||(e.touches&&1!==e.touches.length?$t._dragging===this&&this.finishDrag():$t._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches||(($t._dragging=this)._preventOutline&&ft(this._element),pt(),Re(),this._moving||(this.fire("down"),i=e.touches?e.touches[0]:e,t=gt(this._element),this._startPoint=new A(i.clientX,i.clientY),this._startPos=dt(this._element),this._parentScale=yt(t),i="mousedown"===e.type,vt(document,i?"mousemove":"touchmove",this._onMove,this),vt(document,i?"mouseup":"touchend touchcancel",this._onUp,this)))))},_onMove:function(e){var t;this._enabled&&(e.touches&&1<e.touches.length?this._moved=!0:!(t=new A((t=e.touches&&1===e.touches.length?e.touches[0]:e).clientX,t.clientY)._subtract(this._startPoint)).x&&!t.y||Math.abs(t.x)+Math.abs(t.y)<this.options.clickTolerance||(t.x/=this._parentScale.x,t.y/=this._parentScale.y,Mt(e),this._moved||(this.fire("dragstart"),this._moved=!0,rt(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),rt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(t),this._moving=!0,this._lastEvent=e,this._updatePosition()))},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),ht(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){ot(document.body,"leaflet-dragging"),this._lastTarget&&(ot(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),xt(document,"mousemove touchmove",this._onMove,this),xt(document,"mouseup touchend touchcancel",this._onUp,this),mt(),We(),this._moved&&this._moving&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,$t._dragging=!1}});function Gt(e,t){return t&&e.length?function(e,t){var i=e.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);n[0]=n[i-1]=1,function e(t,i,n,r,o){var s,a,l,c=0;for(a=r+1;a<=o-1;a++)c<(l=Jt(t[a],t[r],t[o],!0))&&(s=a,c=l);n<c&&(i[s]=1,e(t,i,n,r,s),e(t,i,n,s,o))}(e,n,t,0,i-1);var r,o=[];for(r=0;r<i;r++)n[r]&&o.push(e[r]);return o}(e=function(e,t){for(var i=[e[0]],n=1,r=0,o=e.length;n<o;n++)(function(e,t){var i=t.x-e.x;return i*i+(t=t.y-e.y)*t})(e[n],e[r])>t&&(i.push(e[n]),r=n);return r<o-1&&i.push(e[o-1]),i}(e,t*=t),t):e.slice()}function Vt(e,t,i){return Math.sqrt(Jt(e,t,i,!0))}function Ut(e,t,i,n,r){var o,s,a,l=n?qt:Qt(e,i),c=Qt(t,i);for(qt=c;;){if(!(l|c))return[e,t];if(l&c)return!1;a=Qt(s=Yt(e,t,o=l||c,i,r),i),o===l?(e=s,l=a):(t=s,c=a)}}function Yt(e,t,i,n,r){var o,s,a=t.x-e.x,l=(t=t.y-e.y,n.min);n=n.max;return 8&i?(o=e.x+a*(n.y-e.y)/t,s=n.y):4&i?(o=e.x+a*(l.y-e.y)/t,s=l.y):2&i?(o=n.x,s=e.y+t*(n.x-e.x)/a):1&i&&
vendor: 4,317 bytes, line 5
5(o=l.x,s=e.y+t*(l.x-e.x)/a),new A(o,s,r)}function Qt(e,t){var i=0;return e.x<t.min.x?i|=1:e.x>t.max.x&&(i|=2),e.y<t.min.y?i|=4:e.y>t.max.y&&(i|=8),i}function Jt(e,t,i,n){var r=t.x,o=(t=t.y,i.x-r),s=i.y-t,a=o*o+s*s;return 0<a&&(1<(a=((e.x-r)*o+(e.y-t)*s)/a)?(r=i.x,t=i.y):0<a&&(r+=o*a,t+=s*a)),o=e.x-r,s=e.y-t,n?o*o+s*s:new A(r,t)}function Xt(e){return!g(e[0])||"object"!=typeof e[0][0]&&void 0!==e[0][0]}function Kt(e){return Xt(e)}function ei(e,t,i){for(var n,r,o,s,a,l,c,u=[1,4,2,8],h=0,d=e.length;h<d;h++)e[h]._code=Qt(e[h],t);for(o=0;o<4;o++){for(l=u[o],n=[],h=0,r=(d=e.length)-1;h<d;r=h++)s=e[h],a=e[r],s._code&l?a._code&l||((c=Yt(a,s,l,t,i))._code=Qt(c,t),n.push(c)):(a._code&l&&((c=Yt(a,s,l,t,i))._code=Qt(c,t),n.push(c)),n.push(s));e=n}return e}te={__proto__:null,simplify:Gt,pointToSegmentDistance:Vt,closestPointOnSegment:function(e,t,i){return Jt(e,t,i)},clipSegment:Ut,_getEdgeIntersection:Yt,_getBitCode:Qt,_sqClosestPointOnSegment:Jt,isFlat:Xt,_flat:Kt};ie={__proto__:null,clipPolygon:ei},ne={project:function(e){return new A(e.lng,e.lat)},unproject:function(e){return new N(e.y,e.x)},bounds:new I([-180,-90],[180,90])},re={R:6378137,R_MINOR:6356752.314245179,bounds:new I([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,i=this.R,n=e.lat*t,r=this.R_MINOR/i,o=(r=Math.sqrt(1-r*r))*Math.sin(n);o=Math.tan(Math.PI/4-n/2)/Math.pow((1-o)/(1+o),r/2),n=-i*Math.log(Math.max(o,1e-10));return new A(e.lng*t*i,n)},unproject:function(e){for(var t,i=180/Math.PI,n=this.R,r=this.R_MINOR/n,o=Math.sqrt(1-r*r),s=Math.exp(-e.y/n),a=Math.PI/2-2*Math.atan(s),l=0,c=.1;l<15&&1e-7<Math.abs(c);l++)t=o*Math.sin(a),t=Math.pow((1-t)/(1+t),o/2),a+=c=Math.PI/2-2*Math.atan(s*t)-a;return new N(a*i,e.x*i/n)}},oe={__proto__:null,LonLat:ne,Mercator:re,SphericalMercator:R},ae=t({},F,{code:"EPSG:3395",projection:re,transformation:$(se=.5/(Math.PI*re.R),.5,-se,.5)});var ti=t({},F,{code:"EPSG:4326",projection:ne,transformation:$(1/180,1,-1/180,.5)}),ii=(le=t({},H,{projection:ne,transformation:$(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var i=t.lng-e.lng;t=t.lat-e.lat;return Math.sqrt(i*i+t*t)},infinite:!0}),ce=(H.Earth=F,H.EPSG3395=ae,H.EPSG3857=G,H.EPSG900913=V,H.EPSG4326=ti,H.Simple=le,z.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[s(e)]=this},removeInteractiveTarget:function(e){return delete this._map._targets[s(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t,i=e.target;i.hasLayer(this)&&(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents&&(t=this.getEvents(),i.on(t,this),this.once("remove",(function(){i.off(t,this)}),this)),this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this}))}})),Bt.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=s(e);return this._layers[t]||((this._layers[t]=e)._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=s(e);return this._layers[t]&&(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null),this},hasLayer:function(e){return s(e)in this._layers},eachLayer:function(e,t){for(var i in this._layers)e.call(t,this._layers[i]);return this},_addLayers:function(e){for(var t=0,i=(e=e?g(e)?e:[e]:[]).length;t<i;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[s(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){e=s(e),this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var e,t=1/0,i=-1/0,n=this._getZoomSpan();for(e in this._zoomBoundLayers){var r=this._zoomBoundLayers[e].options;t=void 0===r.minZoom?t:Math.min(t,r.minZoom),i=void 0===r.maxZoom?i:Math.max(i,r.maxZoom)}
vendor: 7,690 bytes, line 5
5this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}}),ce.extend({initialize:function(e,t){var i,n;if(p(this,t),this._layers={},e)for(i=0,n=e.length;i<n;i++)this.addLayer(e[i])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){return e=e in this._layers?e:this.getLayerId(e),this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(e){return("number"==typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,i,n=Array.prototype.slice.call(arguments,1);for(t in this._layers)(i=this._layers[t])[e]&&i[e].apply(i,n);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var i in this._layers)e.call(t,this._layers[i]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:s})),ni=ii.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),ii.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?((e=e in this._layers?this._layers[e]:e).removeEventParent(this),ii.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e,t=new D;for(e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),ri=M.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){p(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var i=this._getIconUrl(e);if(!i){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}return i=this._createImg(i,t&&"IMG"===t.tagName?t:null),this._setIconStyles(i,e),!this.options.crossOrigin&&""!==this.options.crossOrigin||(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i},_setIconStyles:function(e,t){var i=this.options,n=O(n="number"==typeof(n=i[t+"Size"])?[n,n]:n),r=O("shadow"===t&&i.shadowAnchor||i.iconAnchor||n&&n.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(i.className||""),r&&(e.style.marginLeft=-r.x+"px",e.style.marginTop=-r.y+"px"),n&&(e.style.width=n.x+"px",e.style.height=n.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Pe.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}}),oi=ri.extend({options:{iconUrl:"/gfx/standards/marker-icon.png",iconRetinaUrl:"/gfx/standards/marker-icon-2x.png",shadowUrl:"/gfx/standards/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return"string"!=typeof oi.imagePath&&(oi.imagePath=this._detectIconPath()),(this.options.imagePath||oi.imagePath)+ri.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){function t(e,t,i){return(t=t.exec(e))&&t[i]}return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=Xe("div","leaflet-default-icon-path",document.body),t=Je(e,"background-image")||Je(e,"backgroundImage");return document.body.removeChild(e),(t=this._stripUrl(t))?t:(e=document.querySelector('link[href$="leaflet.css"]'))?e.href.substring(0,e.href.length-11-1):""}}),si=K.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new $t(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),rt(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&ot(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,i=t._map,n=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,o=dt(t._icon),s=i.getPixelBounds(),a=i.getPixelOrigin();(a=B(s.min._subtract(a).add(r),s.max._subtract(a).subtract(r))).contains(o)||(r=O((Math.max(a.max.x,o.x)-a.max.x)/(s.max.x-a.max.x)-(Math.min(a.min.x,o.x)-a.min.x)/(s.min.x-a.min.x),(Math.max(a.max.y,o.y)-a.max.y)/(s.max.y-a.max.y)-(Math.min(a.min.y,o.y)-a.min.y)/(s.min.y-a.min.y)).multiplyBy(n),i.panBy(r,{animate:!1}),this._draggable._newPos._add(r),this._draggable._startPos._add(r),ht(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=T(this._adjustPan.bind(this,e)))},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(C(this._panRequest),this._panRequest=T(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,i=t._shadow,n=dt(t._icon),r=t._map.layerPointToLatLng(n);i&&ht(i,n),t._latlng=r,e.latlng=r,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){C(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),ai=ce.extend({options:{icon:new oi,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){p(this,t),this._latlng=Z(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;return this._latlng=Z(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){var e;return this._icon&&this._map&&(e=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(e)),this},_initIcon:function(){var e,t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=!1,r=!1;(e=((e=t.icon.createIcon(this._icon))!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(e.title=t.title),"IMG"===e.tagName&&(e.alt=t.alt||"")),rt(e,i
vendor: 4,454 bytes, line 5
5),t.keyboard&&(e.tabIndex="0",e.setAttribute("role","button")),this._icon=e,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&vt(e,"focus",this._panOnFocus,this),t.icon.createShadow(this._shadow)))!==this._shadow&&(this._removeShadow(),r=!0),e&&(rt(e,i),e.alt=""),this._shadow=e,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),e&&r&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&xt(this._icon,"focus",this._panOnFocus,this),Ke(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ke(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&ht(this._icon,e),this._shadow&&ht(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){e=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round(),this._setPos(e)},_initInteraction:function(){var e;this.options.interactive&&(rt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),si&&(e=this.options.draggable,this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new si(this),e&&this.dragging.enable()))},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&<(this._icon,e),this._shadow&<(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e,t,i=this._map;i&&(e=(t=this.options.icon.options).iconSize?O(t.iconSize):O(0,0),t=t.iconAnchor?O(t.iconAnchor):O(0,0),i.panInside(this._latlng,{paddingTopLeft:t,paddingBottomRight:e.subtract(t)}))},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),li=ce.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return p(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),ci=li.extend({options:{fill:!0,radius:10},initialize:function(e,t){p(this,t),this._latlng=Z(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=Z(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return li.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,i=this._clickTolerance();e=[e+i,t+i];this._pxBounds=new I(this._point.subtract(e),this._point.add(e))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),ui=ci.extend({initialize:function(e,i,n){if(p(this,i="number"==typeof i?t({},n,{radius:i}
vendor: 1,640 bytes, line 5
5):i),this._latlng=Z(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new D(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:li.prototype.setStyle,_project:function(){var e,t,i,n,r,o=this._latlng.lng,s=this._latlng.lat,a=this._map,l=a.options.crs;l.distance===F.distance?(n=Math.PI/180,r=this._mRadius/F.R/n,e=a.project([s+r,o]),t=a.project([s-r,o]),t=e.add(t).divideBy(2),i=a.unproject(t).lat,n=Math.acos((Math.cos(r*n)-Math.sin(s*n)*Math.sin(i*n))/(Math.cos(s*n)*Math.cos(i*n)))/n,!isNaN(n)&&0!==n||(n=r/Math.cos(Math.PI/180*s)),this._point=t.subtract(a.getPixelOrigin()),this._radius=isNaN(n)?0:t.x-a.project([i,o-n]).x,this._radiusY=t.y-e.y):(r=l.unproject(l.project(this._latlng).subtract([this._mRadius,0])),this._point=a.latLngToLayerPoint(this._latlng),this._radius=this._point.x-a.latLngToLayerPoint(r).x),this._updateBounds()}}),hi=li.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){p(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t=1/0,i=null,n=Jt,r=0,o=this._parts.length;r<o;r++)for(var s=this._parts[r],a=1,l=s.length;a<l;a++){var c,u,h=n(e,c=s[a-1],u=s[a],!0);h<t&&(t=h,i=n(e,c,u))}return i&&(i.distance=Math.sqrt(t)),i}
5,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,i,n,r,o,s=this._rings[0],a=s.length;if(!a)return null;for(t=e=0;e<a-1;e++)t+=s[e].distanceTo(s[e+1])/2;if(0===t)return this._map.layerPointToLatLng(s[0]);for(i=e=0;e<a-1;e++)if(n=s[e],r=s[e+1],t<(i+=o=n.distanceTo(r)))return this._map.layerPointToLatLng([r.x-(o=(i-t)/o)*(r.x-n.x),r.y-o*(r.y-n.y)])},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=Z(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new D,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return Xt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],i=Xt(e),n=0,r=e.length;n<r;n++)i?(t[n]=Z(e[n]),this._bounds.extend(t[n])):t[n]=this._convertLatLngs(e[n]);return t},_project:function(){var e=new I;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=new A(e=this._clickTolerance(),e);this._rawPxBounds&&(this._pxBounds=new I([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(e,t,i){var n,r,o=e[0]instanceof N,s=e.length;if(o){for(r=[],n=0;n<s;n++)r[n]=this._map.latLngToLayerPoint(e[n]),i.extend(r[n]);t.push(r)}else for(n=0;n<s;n++)this._projectLatlngs(e[n],t,i)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var t,i,n,r,o=this._parts,s=0,a=0,l=this._rings.length;s<l;s++)for(t=0,i=(r=this._rings[s]).length;t<i-1;t++)(n=Ut(r[t],r[t+1],e,t,!0))&&(o[a]=o[a]||[],o[a].push(n[0]),n[1]===r[t+1]&&t!==i-2||(o[a].push(n[1]),a++))},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,i=0,n=e.length;i<n;i++)e[i]=Gt(e[i],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var i,n,r,o,s,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(i=0,o=this._parts.length;i<o;i++)for(n=0,r=(s=(a=this._parts[i]).length)-1;n<s;r=n++)if((t||0!==n)&&Vt(e,a[r],a[n])<=l)return!0;return!1}});hi._flat=Kt;var di=hi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
vendor: 7,434 bytes, line 5
5,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,i,n,r,o,s,a,l,c=this._rings[0],u=c.length;if(!u)return null;for(e=o=s=a=0,t=u-1;e<u;t=e++)i=c[e],n=c[t],r=i.y*n.x-n.y*i.x,s+=(i.x+n.x)*r,a+=(i.y+n.y)*r,o+=3*r;return l=0===o?c[0]:[s/o,a/o],this._map.layerPointToLatLng(l)},_convertLatLngs:function(e){var t=(e=hi.prototype._convertLatLngs.call(this,e)).length;return 2<=t&&e[0]instanceof N&&e[0].equals(e[t-1])&&e.pop(),e},_setLatLngs:function(e){hi.prototype._setLatLngs.call(this,e),Xt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return(Xt(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints:function(){var e=this._renderer._bounds,t=new A(t=this.options.weight,t);e=new I(e.min.subtract(t),e.max.add(t));if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var i,n=0,r=this._rings.length;n<r;n++)(i=ei(this._rings[n],e,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,i,n,r,o,s,a,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(r=0,a=this._parts.length;r<a;r++)for(o=0,s=(l=(t=this._parts[r]).length)-1;o<l;s=o++)i=t[o],n=t[s],i.y>e.y!=n.y>e.y&&e.x<(n.x-i.x)*(e.y-i.y)/(n.y-i.y)+i.x&&(c=!c);return c||hi.prototype._containsPoint.call(this,e,!0)}}),pi=ni.extend({initialize:function(e,t){p(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,i,n,r=g(e)?e:e.features;if(r){for(t=0,i=r.length;t<i;t++)((n=r[t]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var o=this.options;if(o.filter&&!o.filter(e))return this;var s=mi(e,o);return s?(s.feature=xi(e),s.defaultOptions=s.options,this.resetStyle(s),o.onEachFeature&&o.onEachFeature(e,s),this.addLayer(s)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=t({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){e.setStyle&&("function"==typeof t&&(t=t(e.feature)),e.setStyle(t))}});function mi(e,t){var i,n,r,o,s="Feature"===e.type?e.geometry:e,a=s?s.coordinates:null,l=[],c=t&&t.pointToLayer,u=t&&t.coordsToLatLng||_i;if(!a&&!s)return null;switch(s.type){case"Point":return fi(c,e,i=u(a),t);case"MultiPoint":for(r=0,o=a.length;r<o;r++)i=u(a[r]),l.push(fi(c,e,i,t));return new ni(l);case"LineString":case"MultiLineString":return n=gi(a,"LineString"===s.type?0:1,u),new hi(n,t);case"Polygon":case"MultiPolygon":return n=gi(a,"Polygon"===s.type?1:2,u),new di(n,t);case"GeometryCollection":for(r=0,o=s.geometries.length;r<o;r++){var h=mi({geometry:s.geometries[r],type:"Feature",properties:e.properties},t);h&&l.push(h)}return new ni(l);default:throw new Error("Invalid GeoJSON object.")}}function fi(e,t,i,n){return e?e(t,i):new ai(i,n&&n.markersInheritOptions&&n)}function _i(e){return new N(e[1],e[0],e[2])}function gi(e,t,i){for(var n,r=[],o=0,s=e.length;o<s;o++)n=t?gi(e[o],t-1,i):(i||_i)(e[o]),r.push(n);return r}function yi(e,t){return void 0!==(e=Z(e)).alt?[u(e.lng,t),u(e.lat,t),u(e.alt,t)]:[u(e.lng,t),u(e.lat,t)]}function vi(e,t,i,n){for(var r=[],o=0,s=e.length;o<s;o++)r.push(t?vi(e[o],t-1,i,n):yi(e[o],n));return!t&&i&&r.push(r[0]),r}function bi(e,i){return e.feature?t({},e.feature,{geometry:i}):xi(i)}function xi(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}function wi(e,t){return new pi(e,t)}ue={toGeoJSON:function(e){return bi(this,{type:"Point",coordinates:yi(this.getLatLng(),e)})}},ai.include(ue),ui.include(ue),ci.include(ue),hi.include({toGeoJSON:function(e){var t=!Xt(this._latlngs);return bi(this,{type:(t?"Multi":"")+"LineString",coordinates:vi(this._latlngs,t?1:0,!1,e)})}}),di.include({toGeoJSON:function(e){var t=!Xt(this._latlngs),i=t&&!Xt(this._latlngs[0]);e=vi(this._latlngs,i?2:t?1:0,!0,e);return bi(this,{type:(i?"Multi":"")+"Polygon",coordinates:e=t?e:[e]})}}),ii.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(i){t.push(i.toGeoJSON(e).geometry.coordinates)})),bi(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var i="GeometryCollection"===t,n=[];return this.eachLayer((function(t){t.toGeoJSON&&(t=t.toGeoJSON(e),i?n.push(t.geometry):"FeatureCollection"===(t=xi(t)).type?n.push.apply(n,t.features):n.push(t))})),i?bi(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});he=wi;var Si=ce.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,i){this._url=e,this._bounds=q(t),p(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(rt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ke(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&tt(this._image),this},bringToBack:function(){return this._map&&it(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=q(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:Xe("img");rt(t,"leaflet-image-layer"),this._zoomAnimated&&rt(t,"leaflet-zoom-animated"),this.options.className&&rt(t,this.options.className),t.onselectstart=c,t.onmousemove=c,t.onload=r(this.fire,this,"load"),t.onerror=r(this._overlayOnError,this,"error"),!this.options.crossOrigin&&""!==this.options.crossOrigin||(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom);e=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;ut(this._image,e,t)},_reset:function(){var e=this._image,t=new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=t.getSize();ht(e,t.min),e.style.width=i.x+"px",e.style.height=i.y+"px"},_updateOpacity:function(){lt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),Li=Si.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
vendor: 5,459 bytes, line 5
5ine:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:Xe("video");if(rt(t,"leaflet-image-layer"),this._zoomAnimated&&rt(t,"leaflet-zoom-animated"),this.options.className&&rt(t,this.options.className),t.onselectstart=c,t.onmousemove=c,t.onloadeddata=r(this.fire,this,"load"),e){for(var i=t.getElementsByTagName("source"),n=[],o=0;o<i.length;o++)n.push(i[o].src);this._url=0<i.length?n:[t.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var a=Xe("source");a.src=this._url[s],t.appendChild(a)}}}}),ki=Si.extend({_initImage:function(){var e=this._image=this._url;rt(e,"leaflet-image-layer"),this._zoomAnimated&&rt(e,"leaflet-zoom-animated"),this.options.className&&rt(e,this.options.className),e.onselectstart=c,e.onmousemove=c}}),Ti=ce.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0},initialize:function(e,t){p(this,e),this._source=t},openOn:function(e){return(e=arguments.length?e:this._source._map).hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&<(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&<(this._container,1),this.bringToFront(),this.options.interactive&&(rt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(lt(this._container,0),this._removeTimeout=setTimeout(r(Ke,void 0,this._container),200)):Ke(this._container),this.options.interactive&&(ot(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=Z(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&tt(this._container),this},bringToBack:function(){return this._map&&it(this._container),this},_prepareOpen:function(e){if(!(i=this._source)._map)return!1;if(i instanceof ni){var t,i=null,n=this._source._layers;for(t in n)if(n[t]._map){i=n[t];break}if(!i)return!1;this._source=i}if(!e)if(i.getCenter)e=i.getCenter();else if(i.getLatLng)e=i.getLatLng();else{if(!i.getBounds)throw new Error("Unable to get source layer LatLng.");e=i.getBounds().getCenter()}return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){var e,t,i;this._map&&(t=this._map.latLngToLayerPoint(this._latlng),e=O(this.options.offset),i=this._getAnchor(),this._zoomAnimated?ht(this._container,t.add(i)):e=e.add(t).add(i),t=this._containerBottom=-e.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+e.x,this._container.style.bottom=t+"px",this._container.style.left=i+"px")},_getAnchor:function(){return[0,0]}}),Ci=(Bt.include({_initOverlay:function(e,t,i,n){var r=t;return r instanceof e||(r=new e(n).setContent(t)),i&&r.setLatLng(i),r}}),ce.include({_initOverlay:function(e,t,i,n){var r=i;return r instanceof e?(p(r,n),r._source=this):(r=t&&!n?t:new e(n,this)).setContent(i),r}}),Ti.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(e){return!(e=arguments.length?e:this._source._map).hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Ti.prototype.openOn.call(this,e)},onAdd:function(e){Ti.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof li||this._source.on("preclick",Tt))},onRemove:function(e){Ti.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof li||this._source.off("preclick",Tt))},getEvents:function(){var e=Ti.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&
vendor: 6,087 bytes, line 5
5(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=Xe("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=Xe("div",e+"-content-wrapper",t);this._contentNode=Xe("div",e+"-content",i),Pt(t),Ct(this._contentNode),vt(t,"contextmenu",Tt),this._tipContainer=Xe("div",e+"-tip-container",t),this._tip=Xe("div",e+"-tip",this._tipContainer),this.options.closeButton&&((i=this._closeButton=Xe("a",e+"-close-button",t)).setAttribute("role","button"),i.setAttribute("aria-label","Close popup"),i.href="#close",i.innerHTML='<span aria-hidden="true">×</span>',vt(i,"click",this.close,this))},_updateLayout:function(){var e=this._contentNode,t=e.style,i=(t.width="",t.whiteSpace="nowrap",e.offsetWidth),n=(i=Math.min(i,this.options.maxWidth),i=(i=Math.max(i,this.options.minWidth),t.width=i+1+"px",t.whiteSpace="",t.height="",e.offsetHeight),this.options.maxHeight),r="leaflet-popup-scrolled";n&&n<i?(t.height=n+"px",rt(e,r)):ot(e,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){e=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);var t=this._getAnchor();ht(this._container,e.add(t))},_adjustPan:function(e){var t,i,n,r,o,s,a,l;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),t=this._map,i=parseInt(Je(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+i,l=this._containerWidth,(n=new A(this._containerLeft,-i-this._containerBottom))._add(dt(this._container)),n=t.layerPointToContainerPoint(n),o=O(this.options.autoPanPadding),r=O(this.options.autoPanPaddingTopLeft||o),o=O(this.options.autoPanPaddingBottomRight||o),s=t.getSize(),a=0,n.x+l+o.x>s.x&&(a=n.x+l-s.x+o.x),n.x-a-r.x<(l=0)&&(a=n.x-r.x),n.y+i+o.y>s.y&&(l=n.y+i-s.y+o.y),n.y-l-r.y<0&&(l=n.y-r.y),(a||l)&&t.fire("autopanstart").panBy([a,l],{animate:e&&"moveend"===e.type}))},_getAnchor:function(){return O(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),Pi=(Bt.mergeOptions({closePopupOnClick:!0}),Bt.include({openPopup:function(e,t,i){return this._initOverlay(Ci,e,t,i).openOn(this),this},closePopup:function(e){return(e=arguments.length?e:this._popup)&&e.close(),this}}),ce.include({bindPopup:function(e,t){return this._popup=this._initOverlay(Ci,this._popup,e,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e){return this._popup&&this._popup._prepareOpen(e)&&this._popup.openOn(this._map),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){var t;this._popup&&this._map&&(Et(e),t=e.layer||e.target,this._popup._source!==t||t instanceof li?(this._popup._source=t,this.openPopup(e.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng))},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}}),Ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Ti.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){Ti.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=Ti.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Xe("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,i=this._map,n=this._container,r=i.latLngToContainerPoint(i.getCenter()),o=(i=i.layerPointToContainerPoint(e),this.options.direction),s=n.offsetWidth,a=n.offsetHeight,l=O(this.options.offset),c=this._getAnchor();i="top"===o?(t=s/2,a):"bottom"===o?(t=s/2,0):(t="center"===o?s/2:"right"===o?0:"left"===o?s:i.x<r.x?(o="right",0):(o="left",s+2*(l.x+c.x)),a/2);e=e.subtract(O(t,i,!0)).add(l).add(c),ot(n,"leaflet-tooltip-right"),ot(n,"leaflet-tooltip-left"),ot(n,"leaflet-tooltip-top"),ot(n,"leaflet-tooltip-bottom"),rt(n,"leaflet-tooltip-"+o),ht(n,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&<(this._container,e)},_animateZoom:function(e){e=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),this._setPosition(e)},_getAnchor:function(){return O(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}})),Mi=(Bt.include({openTooltip:function(e,t,i){return this._initOverlay(Pi,e,t,i).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),ce.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Pi,this._tooltip,e,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){var t,i;!e&&this._tooltipHandlersAdded||(t=e?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip}
vendor: 6,281 bytes, line 5
5,this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,i.click=this._openTooltip),this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),this[t](i),this._tooltipHandlersAdded=!e)},openTooltip:function(e){return this._tooltip&&this._tooltip._prepareOpen(e)&&this._tooltip.openOn(this._map),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_openTooltip:function(e){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0))},_moveTooltip:function(e){var t=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(e=this._map.mouseEventToContainerPoint(e.originalEvent),e=this._map.containerPointToLayerPoint(e),t=this._map.layerPointToLatLng(e)),this._tooltip.setLatLng(t)}}),ri.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){e=e&&"DIV"===e.tagName?e:document.createElement("div");var t=this.options;return t.html instanceof Element?(et(e),e.appendChild(t.html)):e.innerHTML=!1!==t.html?t.html:"",t.bgPos&&(t=O(t.bgPos),e.style.backgroundPosition=-t.x+"px "+-t.y+"px"),this._setIconStyles(e,"icon"),e},createShadow:function(){return null}}));ri.Default=oi;var Ei=ce.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Pe.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){p(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),Ke(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(tt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(it(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){var e;return this._map&&(this._removeAllTiles(),(e=this._clampZoom(this._map.getZoom()))!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()),this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof A?e:new A(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,i=this.getPane().children,n=-e(-1/0,1/0),r=0,o=i.length;r<o;r++)t=i[r].style.zIndex,i[r]!==this._container&&t&&(n=e(n,+t));isFinite(n)&&(this.options.zIndex=n+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Pe.ielt9){lt(this._container,this.options.opacity);var e,t=+new Date,i=!1,n=!1;for(e in this._tiles){var r,o=this._tiles[e];o.current&&o.loaded&&(r=Math.min(1,(t-o.loaded)/200),lt(o.el,r),r<1?i=!0:(o.active?n=!0:this._onOpaqueTile(o),o.active=!0))}n&&!this._noPrune&&this._pruneTiles(),i&&(C(this._fadeFrame),this._fadeFrame=T(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=Xe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var i in this._levels)i=Number(i),this._levels[i].el.children.length||i===e?(this._levels[i].el.style.zIndex=t-Math.abs(e-i),this._onUpdateLevel(i)):(Ke(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[e],r=this._map;return n||((n=this._levels[e]={}).el=Xe("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=t,n.origin=r.project(r.unproject(r.getPixelOrigin()),e).round(),n.zoom=e,this._setZoomTransform(n,r.getCenter(),r.getZoom()),n.el.offsetWidth,this._onCreateLevel(n)),this._level=n}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var e,t,i,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(i=this._tiles[e]).retain=i.current;for(e in this._tiles)(i=this._tiles[e]).current&&!i.active&&(t=i.coords,this._retainParent(t.x,t.y,t.z,t.z-5)||this._retainChildren(t.x,t.y,t.z,t.z+2));for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)Ke(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,i,n){i-=1;var r=((r=new A(+(e=Math.floor(e/2)),+(t=Math.floor(t/2)))).z=i,this._tileCoordsToKey(r));return(r=this._tiles[r])&&r.active?r.retain=!0:(r&&r.loaded&&(r.retain=!0),n<i&&this._retainParent(e,t,i,n))},_retainChildren:function(e,t,i,n){for(var r=2*e;r<2*e+2;r++)for(var o=2*t;o<2*t+2;o++){var s=((s=new A(r,o)).z=i+1,this._tileCoordsToKey(s));(s=this._tiles[s])&&s.active?s.retain=!0:(s&&s.loaded&&(s.retain=!0),i+1<n&&this._retainChildren(r,o,i+1,n))}}
5,_resetView:function(e){e=e&&(e.pinch||e.flyTo),this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,i,n){var r=Math.round(t),o=(r=void 0!==this.options.maxZoom&&r>this.options.maxZoom||void 0!==this.options.minZoom&&r<this.options.minZoom?void 0:this._clampZoom(r),this.options.updateWhenZooming&&r!==this._tileZoom);n&&!o||(this._tileZoom=r,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==r&&this._update(e),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var i in this._levels)this._setZoomTransform(this._levels[i],e,t)},_setZoomTransform:function(e,t,i){var n=this._map.getZoomScale(i,e.zoom);t=e.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(t,i)).round();Pe.any3d?ut(e.el,t,n):ht(e.el,t)},_resetGrid:function(){var e=this._map,t=e.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,r=this._map.getPixelWorldBounds(this._tileZoom);r&&(this._globalTileRange=this._pxBoundsToTileRange(r)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],n).x/i.x),Math.ceil(e.project([0,t.wrapLng[1]],n).x/i.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],n).y/i.x),Math.ceil(e.project([t.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=(i=this._map)._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),i=(t=i.getZoomScale(t,this._tileZoom),e=i.project(e,this._tileZoom).floor(),i.getSize().divideBy(2*t));return new I(e.subtract(i),e.add(i))},_update:function(e){if(n=this._map){var t=this._clampZoom(n.getZoom());if(void 0===e&&(e=n.getCenter()),void 0!==this._tileZoom){var i,n=this._getTiledPixelBounds(e),r=this._pxBoundsToTileRange(n),o=r.getCenter(),s=[],a=(n=this.options.keepBuffer,new I(r.getBottomLeft().subtract([n,-n]),r.getTopRight().add([n,-n])));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(i in this._tiles){var l=this._tiles[i].coords;l.z===this._tileZoom&&a.contains(new A(l.x,l.y))||(this._tiles[i].current=!1)}if(1<Math.abs(t-this._tileZoom))this._setView(e,t);else{for(var c=r.min.y;c<=r.max.y;c++)for(var u=r.min.x;u<=r.max.x;u++){var h,d=new A(u,c);d.z=this._tileZoom,this._isValidTile(d)&&((h=this._tiles[this._tileCoordsToKey(d)])?h.current=!0:s.push(d))}if(s.sort((function(e,t){return e.distanceTo(o)-t.distanceTo(o)})),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var p=document.createDocumentFragment();for(u=0;u<s.length;u++)this._addTile(s[u],p);this._level.el.appendChild(p)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var i=this._globalTileRange;if(!t.wrapLng&&(e.x<i.min.x||e.x>i.max.x)||!t.wrapLat&&(e.y<i.min.y||e.y>i.max.y))return!1}return!this.options.bounds||(t=this._tileCoordsToBounds(e),q(this.options.bounds).overlaps(t))},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,i=this.getTileSize(),n=e.scaleBy(i);i=n.add(i);return[t.unproject(n,e.z),t.unproject(i,e.z)]},_tileCoordsToBounds:function(e){return e=new D((e=this._tileCoordsToNwSe(e))[0],e[1]),this.options.noWrap?e:this._map.wrapLatLngBounds(e)},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=new A(+(e=e.split(":"))[0],+e[1]);return t.z=+e[2],t},_removeTile:function(e){var t=this._tiles[e];t&&(Ke(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){rt(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=c,e.onmousemove=c,Pe.ielt9&&this.options.opacity<1&<(e,this.options.opacity)},_addTile:function(e,t){var i=this._getTilePos(e),n=this._tileCoordsToKey(e),o=this.createTile(this._wrapCoords(e),r(this._tileReady,this,e));this._initTile(o),this.createTile.length<2&&T(r(this._tileReady,this,e,null,o)),ht(o,i),this._tiles[n]={el:o,c
vendor: 8,022 bytes, line 5
5oords:e,current:!0},t.appendChild(o),this.fire("tileloadstart",{tile:o,coords:e})},_tileReady:function(e,t,i){t&&this.fire("tileerror",{error:t,tile:i,coords:e});var n=this._tileCoordsToKey(e);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(lt(i.el,0),C(this._fadeFrame),this._fadeFrame=T(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),t||(rt(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Pe.ielt9||!this._map._fadeAnimated?T(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new A(this._wrapX?l(e.x,this._wrapX):e.x,this._wrapY?l(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new I(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}}),zi=Ei.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,(t=p(this,t)).detectRetina&&Pe.retina&&0<t.maxZoom&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),"string"==typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var i=document.createElement("img");return vt(i,"load",r(this._tileOnLoad,this,t,i)),vt(i,"error",r(this._tileOnError,this,t,i)),!this.options.crossOrigin&&""!==this.options.crossOrigin||(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.setAttribute("role","presentation"),i.src=this.getTileUrl(e),i},getTileUrl:function(e){var i={r:Pe.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(e=this._globalTileRange.max.y-e.y,this.options.tms&&(i.y=e),i["-y"]=e),_(this._url,t(i,this.options))},_tileOnLoad:function(e,t){Pe.ielt9?setTimeout(r(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,i){var n=this.options.errorTileUrl;n&&t.getAttribute("src")!==n&&(t.src=n),e(i,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return(e=this.options.zoomReverse?t-e:e)+this.options.zoomOffset},_getSubdomain:function(e){return e=Math.abs(e.x+e.y)%this.options.subdomains.length,this.options.subdomains[e]},_abortLoading:function(){var e,t,i;for(e in this._tiles)this._tiles[e].coords.z!==this._tileZoom&&((i=this._tiles[e].el).onload=c,i.onerror=c,i.complete||(i.src=v,t=this._tiles[e].coords,Ke(i),delete this._tiles[e],this.fire("tileabort",{tile:i,coords:t})))},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute("src",v),Ei.prototype._removeTile.call(this,e)},_tileReady:function(e,t,i){if(this._map&&(!i||i.getAttribute("src")!==v))return Ei.prototype._tileReady.call(this,e,t,i)}});function Ai(e,t){return new zi(e,t)}var ji=zi.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,i){this._url=e;var n,r=t({},this.defaultWmsParams);for(n in i)n in this.options||(r[n]=i[n]);e=(i=p(this,i)).detectRetina&&Pe.retina?2:1;var o=this.getTileSize();r.width=o.x*e,r.height=o.y*e,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[t]=this._crs.code,zi.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),i=(t=(i=B((i=this._crs).project(t[0]),i.project(t[1]))).min,i.max);t=(1.3<=this._wmsVersion&&this._crs===ti?[t.y,t.x,i.y,i.x]:[t.x,t.y,i.x,i.y]).join(",");return(i=zi.prototype.getTileUrl.call(this,e))+m(this.wmsParams,i,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+t},setParams:function(e,i){return t(this.wmsParams,e),i||this.redraw(),this}});zi.WMS=ji,Ai.wms=function(e,t){return new ji(e,t)};var Oi=ce.extend({options:{padding:.1},initialize:function(e){p(this,e),s(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&rt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var i=this._map.getZoomScale(t,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,t);n=n.multiplyBy(-i).add(r).subtract(this._map._getNewPixelOrigin(e,t));Pe.any3d?ut(this._container,n,i):ht(this._container,n)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),i=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new I(i,i.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Ii=Oi.extend({options:{tolerance:0},getEvents:function(){var e=Oi.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Oi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");vt(e,"mousemove",this._onMouseMove,this),vt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),vt(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){C(this._redrawRequest),delete this._ctx,Ke(this._container),xt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){var e,t,i,n;this._map._animatingZoom&&this._bounds||(Oi.prototype._update.call(this),e=this._bounds,t=this._container,i=e.getSize(),n=Pe.retina?2:1,ht(t,e.min),t.width=n*i.x,t.height=n*i.y,t.style.width=i.x+"px",t.style.height=i.y+"px",Pe.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update"))},_reset:function(){Oi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),e=(this._layers[s(e)]=e)._order={layer:e,prev:this._drawLast,next:null},this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=(i=e._order).next,i=i.prev;t?t.prev=i:this._drawLast=i,i?i.next=t:this._drawFirst=t,delete e._order,delete this._layers[s(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)}
vendor: 8,712 bytes, line 5
5,_updateDashArray:function(e){if("string"==typeof e.options.dashArray){for(var t,i=e.options.dashArray.split(/[, ]+/),n=[],r=0;r<i.length;r++){if(t=Number(i[r]),isNaN(t))return;n.push(t)}e.options._dashArray=n}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||T(this._redraw,this))},_extendRedrawBounds:function(e){var t;e._pxBounds&&(t=(e.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new I,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t])))},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e,t=this._redrawBounds;t?(e=t.getSize(),this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)):(this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore())},_draw:function(){var e,t,i=this._redrawBounds;this._ctx.save(),i&&(t=i.getSize(),this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,t.x,t.y),this._ctx.clip()),this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)e=n.layer,(!i||e._pxBounds&&e._pxBounds.intersects(i))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var i,n,r,o,s=e._parts,a=s.length,l=this._ctx;if(a){for(l.beginPath(),i=0;i<a;i++){for(n=0,r=s[i].length;n<r;n++)o=s[i][n],l[n?"lineTo":"moveTo"](o.x,o.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){var t,i,n,r;this._drawing&&!e._empty()&&(t=e._point,i=this._ctx,n=Math.max(Math.round(e._radius),1),1!=(r=(Math.max(Math.round(e._radiusY),1)||n)/n)&&(i.save(),i.scale(1,r)),i.beginPath(),i.arc(t.x,t.y/r,n,0,2*Math.PI,!1),1!=r&&i.restore(),this._fillStroke(i,e))},_fillStroke:function(e,t){var i=t.options;i.fill&&(e.globalAlpha=i.fillOpacity,e.fillStyle=i.fillColor||i.color,e.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=i.opacity,e.lineWidth=i.weight,e.strokeStyle=i.color,e.lineCap=i.lineCap,e.lineJoin=i.lineJoin,e.stroke())},_onClick:function(e){for(var t,i,n=this._map.mouseEventToLayerPoint(e),r=this._drawFirst;r;r=r.next)(t=r.layer).options.interactive&&t._containsPoint(n)&&(("click"===e.type||"preclick"===e.type)&&this._map._draggableMoved(t)||(i=t));this._fireEvent(!!i&&[i],e)},_onMouseMove:function(e){var t;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(t=this._map.mouseEventToLayerPoint(e),this._handleMouseHover(e,t))},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(ot(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var i,n,o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(t)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(e),n&&(rt(this._container,"leaflet-interactive"),this._fireEvent([n],e,"mouseover"),this._hoveredLayer=n)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(r((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(e,t,i){this._map._fireDOMEvent(t,i||t.type,e)},_bringToFront:function(e){var t,i,n=e._order;n&&(t=n.next,i=n.prev,t&&((t.prev=i)?i.next=t:t&&(this._drawFirst=t),n.prev=this._drawLast,(this._drawLast.next=n).next=null,this._drawLast=n,this._requestRedraw(e)))},_bringToBack:function(e){var t,i,n=e._order;n&&(t=n.next,(i=n.prev)&&((i.next=t)?t.prev=i:i&&(this._drawLast=i),n.prev=null,n.next=this._drawFirst,this._drawFirst.prev=n,this._drawFirst=n,this._requestRedraw(e)))}});function Bi(e){return Pe.canvas?new Ii(e):null}var Di=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),qi=(de={_initContainer:function(){this._container=Xe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Oi.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=Di("shape");rt(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=Di("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[s(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;Ke(t),e.removeInteractiveTarget(t),delete this._layers[s(e)]},_updateStyle:function(e){var t=e._stroke,i=e._fill,n=e.options,r=e._container;r.stroked=!!n.stroke,r.filled=!!n.fill,n.stroke?(t=t||(e._stroke=Di("stroke")),r.appendChild(t),t.weight=n.weight+"px",t.color=n.color,t.opacity=n.opacity,n.dashArray?t.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=n.lineCap.replace("butt","flat"),t.joinstyle=n.lineJoin):t&&(r.removeChild(t),e._stroke=null),n.fill?(i=i||(e._fill=Di("fill")),r.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(r.removeChild(i),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),i=Math.round(e._radius),n=Math.round(e._radiusY||i);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+i+","+n+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){tt(e._container)},_bringToBack:function(e){it(e._container)}},Pe.vml?Di:U),Ni=Oi.extend({_initContainer:function(){this._container=qi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=qi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ke(this._container),xt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){var e,t,i;this._map._animatingZoom&&this._bounds||(Oi.prototype._update.call(this),t=(e=this._bounds).getSize(),i=this._container,this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,i.setAttribute("width",t.x),i.setAttribute("height",t.y)),ht(i,e.min),i.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update"))},_initPath:function(e){var t=e._path=qi("path");e.options.className&&rt(t,e.options.className),e.options.interactive&&rt(t,"leaflet-interactive"),this._updateStyle(e),this._layers[s(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){Ke(e._path),e.removeInteractiveTarget(e._path),delete this._layers[s(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path;e=e.options;t&&(e.stroke?(t.setAttribute("stroke",e.color),t.setAttribute("stroke-opacity",e.opacity),t.setAttribute("stroke-width",e.weight),t.setAttribute("stroke-linecap",e.lineCap),t.setAttribute("stroke-linejoin",e.lineJoin),e.dashArray?t.setAttribute("stroke-dasharray",e.dashArray):t.removeAttribute("stroke-dasharray"),e.dashOffset?t.setAttribute("stroke-dashoffset",e.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),e.fill?(t.setAttribute("fill",e.fillColor||e.color),t.setAttribute("fill-opacity",e.fillOpacity),t.setAttribute("fill-rule",e.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,Y(e._parts,t))},_updateCircle:function(e){var t=e._point,i=Math.max(Math.round(e._radius),1),n="a"+i+","+(Math.max(Math.round(e._radiusY),1)||i)+" 0 1,0 ";t=e._empty()?"M0 0":"M"+(t.x-i)+","+t.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(e,t)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){tt(e._path)},_bringToBack:function(e){it(e._path)}});function Zi(e){return Pe.svg||Pe.vml?new Ni(e):null}Pe.vml&&Ni.include(de),Bt.include({getRenderer:function(e){return e=(e=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&Bi(e)||Zi(e)}});var Hi=di.extend({initialize:function(e,t){di.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))}
vendor: 11,311 bytes, line 5
5,_boundsToLatLngs:function(e){return[(e=q(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});Ni.create=qi,Ni.pointsToPath=Y,pi.geometryToLayer=mi,pi.coordsToLatLng=_i,pi.coordsToLatLngs=gi,pi.latLngToCoords=yi,pi.latLngsToCoords=vi,pi.getFeature=bi,pi.asFeature=xi,Bt.mergeOptions({boxZoom:!0});Q=K.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){vt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){xt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ke(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),Re(),pt(),this._startPoint=this._map.mouseEventToContainerPoint(e),vt(document,{contextmenu:Et,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=Xe("div","leaflet-zoom-box",this._container),rt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=(e=new I(this._point,this._startPoint)).getSize();ht(this._box,e.min),this._box.style.width=t.x+"px",this._box.style.height=t.y+"px"},_finish:function(){this._moved&&(Ke(this._box),ot(this._container,"leaflet-crosshair")),We(),mt(),xt(document,{contextmenu:Et,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){1!==e.which&&1!==e.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0),e=new D(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})))},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}),Bt.addInitHook("addHandler","boxZoom",Q),Bt.mergeOptions({doubleClickZoom:!0}),pe=K.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,i=t.getZoom(),n=t.options.zoomDelta;i=e.originalEvent.shiftKey?i-n:i+n;"center"===t.options.doubleClickZoom?t.setZoom(i):t.setZoomAround(e.containerPoint,i)}});var Fi=(Bt.addInitHook("addHandler","doubleClickZoom",pe),Bt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),K.extend({addHooks:function(){var e;this._draggable||(e=this._map,this._draggable=new $t(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))),rt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ot(this._map._container,"leaflet-grab"),ot(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e,t=this._map;t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(e=q(this._map.options.maxBounds),this._offsetLimit=B(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){var t,i;this._map.options.inertia&&(t=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(i),this._times.push(t),this._prunePositions(t)),this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;1<this._positions.length&&50<e-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){var e,t;this._viscosity&&this._offsetLimit&&(e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit,e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e))},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),i=this._initialWorldOffset,n=((r=this._draggable._newPos.x)-t+i)%e+t-i,r=(r+t+i)%e-t-i;e=Math.abs(n+i)<Math.abs(r+i)?n:r;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=e},_onDragEnd:function(e){var t,i,n,r,o=this._map,s=o.options,a=!s.inertia||e.noInertia||this._times.length<2;o.fire("dragend",e),a?o.fire("moveend"):(this._prunePositions(+new Date),e=this._lastPos.subtract(this._positions[0]),a=(this._lastTime-this._times[0])/1e3,t=s.easeLinearity,a=(e=e.multiplyBy(t/a)).distanceTo([0,0]),i=Math.min(s.inertiaMaxSpeed,a),e=e.multiplyBy(i/a),n=i/(s.inertiaDeceleration*t),(r=e.multiplyBy(-n/2).round()).x||r.y?(r=o._limitOffset(r,o.options.maxBounds),T((function(){o.panBy(r,{duration:n,easeLinearity:t,noMoveStart:!0,animate:!0})}))):o.fire("moveend"))}})),Ri=(me=(Bt.addInitHook("addHandler","dragging",Fi),Bt.mergeOptions({keyboard:!0,keyboardPanDelta:80}),K.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),vt(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),xt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){var e,t,i;this._focused||(i=document.body,e=document.documentElement,t=i.scrollTop||e.scrollTop,i=i.scrollLeft||e.scrollLeft,this._map._container.focus(),window.scrollTo(i,t))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){for(var t=this._panKeys={},i=this.keyCodes,n=0,r=i.left.length;n<r;n++)t[i.left[n]]=[-1*e,0];for(n=0,r=i.right.length;n<r;n++)t[i.right[n]]=[e,0];for(n=0,r=i.down.length;n<r;n++)t[i.down[n]]=[0,e];for(n=0,r=i.up.length;n<r;n++)t[i.up[n]]=[0,-1*e]},_setZoomDelta:function(e){for(var t=this._zoomKeys={},i=this.keyCodes,n=0,r=i.zoomIn.length;n<r;n++)t[i.zoomIn[n]]=e;for(n=0,r=i.zoomOut.length;n<r;n++)t[i.zoomOut[n]]=-e},_addHooks:function(){vt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){xt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,i=e.keyCode,n=this._map;if(i in this._panKeys)n._panAnim&&n._panAnim._inProgress||(t=this._panKeys[i],e.shiftKey&&(t=O(t).multiplyBy(3)),n.panBy(t),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds));else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Et(e)}}})),fe=(Bt.addInitHook("addHandler","keyboard",me),Bt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60}),K.extend({addHooks:function(){vt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){xt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=jt(e),i=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date),t=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),t),Et(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),i=this._map.options.zoomSnap||0,n=(e._stop(),this._delta/(4*this._map.options.wheelPxPerZoomLevel));n=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,i=i?Math.ceil(n/i)*i:n,n=e._limitZoom(t+(0<this._delta?i:-i))-t;this._delta=0,this._startTime=null,n&&("center"===e.options.scrollWheelZoom?e.setZoom(t+n):e.setZoomAround(this._lastMousePos,t+n))}})),_e=(Bt.addInitHook("addHandler","scrollWheelZoom",fe),Bt.mergeOptions({tapHold:Pe.touchNative&&Pe.safari&&Pe.mobile,tapTolerance:15}),K.extend({addHooks:function(){vt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){xt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){var t;clearTimeout(this._holdTimeout),1===e.touches.length&&(t=e.touches[0],this._startPos=this._newPos=new A(t.clientX,t.clientY),this._holdTimeout=setTimeout(r((function(){this._cancel(),this._isTapValid()&&(vt(document,"touchend",Mt),vt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))}),this),600),vt(document,"touchend touchcancel contextmenu",this._cancel,this),vt(document,"touchmove",this._onMove,this))},_cancelClickPrevent:function e(){xt(document,"touchend",Mt),xt(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),xt(document,"touchend touchcancel contextmenu",this._cancel,this),xt(document,"touchmove",this._onMove,this)},_onMove:function(e){e=e.touches[0],this._newPos=new A(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){(e=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY}))._simulated=!0,t.target.dispatchEvent(e)}})),ge=(Bt.addInitHook("addHandler","tapHold",_e),Bt.mergeOptions({touchZoom:Pe.touch,bounceAtZoomLimits:!0}),K.extend({addHooks:function(){rt(this._map._container,"leaflet-touch-zoom"),vt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ot(this._map._container,"leaflet-touch-zoom"),xt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t,i,n=this._map;!e.touches||2!==e.touches.length||n._animatingZoom||this._zooming||(t=n.mouseEventToContainerPoint(e.touches[0]),i=n.mou
5seEventToContainerPoint(e.touches[1]),this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),"center"!==n.options.touchZoom&&(this._pinchStartLatLng=n.containerPointToLatLng(t.add(i)._divideBy(2))),this._startDist=t.distanceTo(i),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),vt(document,"touchmove",this._onTouchMove,this),vt(document,"touchend touchcancel",this._onTouchEnd,this),Mt(e))},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,i=t.mouseEventToContainerPoint(e.touches[0]),n=t.mouseEventToContainerPoint(e.touches[1]),o=i.distanceTo(n)/this._startDist;if(this._zoom=t.getScaleZoom(o,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&o<1||this._zoom>t.getMaxZoom()&&1<o)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1==o)return}else{if(i=i._add(n)._divideBy(2)._subtract(this._centerPoint),1==o&&0===i.x&&0===i.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(i),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),C(this._animRequest),n=r(t._move,t,this._center,this._zoom,{pinch:!0,round:!1}),this._animRequest=T(n,this,!0),Mt(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,C(this._animRequest),xt(document,"touchmove",this._onTouchMove,this),xt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}})),Bt.addInitHook("addHandler","touchZoom",ge),Bt.BoxZoom=Q,Bt.DoubleClickZoom=pe,Bt.Drag=Fi,Bt.Keyboard=me,Bt.ScrollWheelZoom=fe,Bt.TapHold=_e,Bt.TouchZoom=ge,e.Bounds=I,e.Browser=Pe,e.CRS=H,e.Canvas=Ii,e.Circle=ui,e.CircleMarker=ci,e.Class=M,e.Control=Nt,e.DivIcon=Mi,e.DivOverlay=Ti,e.DomEvent=X,e.DomUtil=J,e.Draggable=$t,e.Evented=z,e.FeatureGroup=ni,e.GeoJSON=pi,e.GridLayer=Ei,e.Handler=K,e.Icon=ri,e.ImageOverlay=Si,e.LatLng=N,e.LatLngBounds=D,e.Layer=ce,e.LayerGroup=ii,e.LineUtil=te,e.Map=Bt,e.Marker=ai,e.Mixin=ee,e.Path=li,e.Point=A,e.PolyUtil=ie,e.Polygon=di,e.Polyline=hi,e.Popup=Ci,e.PosAnimation=It,e.Projection=oe,e.Rectangle=Hi,e.Renderer=Oi,e.SVG=Ni,e.SVGOverlay=ki,e.TileLayer=zi,e.Tooltip=Pi,e.Transformation=W,e.Util=P,e.VideoOverlay=Li,e.bind=r,e.bounds=B,e.canvas=Bi,e.circle=function(e,t,i){return new ui(e,t,i)},e.circleMarker=function(e,t){return new ci(e,t)},e.control=Dt,e.divIcon=function(e){return new Mi(e)},e.extend=t,e.featureGroup=function(e,t){return new ni(e,t)},e.geoJSON=wi,e.geoJson=he,e.gridLayer=function(e){return new Ei(e)},e.icon=function(e){return new ri(e)},e.imageOverlay=function(e,t,i){return new Si(e,t,i)},e.latLng=Z,e.latLngBounds=q,e.layerGroup=function(e,t){return new ii(e,t)},e.map=function(e,t){return new Bt(e,t)},e.marker=function(e,t){return new ai(e,t)},e.point=O,e.polygon=function(e,t){return new di(e,t)},e.polyline=function(e,t){return new hi(e,t)},e.popup=function(e,t){return new Ci(e,t)},e.rectangle=function(e,t){return new Hi(e,t)},e.setOptions=p,e.stamp=s,e.svg=Zi,e.svgOverlay=function(e,t,i){return new ki(e,t,i)},e.tileLayer=Ai,e.tooltip=function(e,t){return new Pi(e,t)},e.transformation=$,e.version="1.8.0",e.videoOverlay=function(e,t,i){return new Li(e,t,i)},window.L);e.noConflict=function(){return window.L=Ri,this},window.L=e})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e=e||self).Leaflet=e.Leaflet||{},e.Leaflet.markercluster={}))}(this,(function(e){"use strict";var t=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(e){L.Util.setOptions(this,e),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var t=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,t?this._withAnimation:this._noAnimation),this._markerCluster
vendor: 10,998 bytes, line 5
5=t?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(e){if(e instanceof L.LayerGroup)return this.addLayers([e]);if(!e.getLatLng)return this._nonPointGroup.addLayer(e),this.fire("layeradd",{layer:e}),this;if(!this._map)return this._needsClustering.push(e),this.fire("layeradd",{layer:e}),this;if(this.hasLayer(e))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(e,this._maxZoom),this.fire("layeradd",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var t=e,i=this._zoom;if(e.__parent)for(;t.__parent._zoom>=i;)t=t.__parent;return this._currentShownBounds.contains(t.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(e,t):this._animationAddLayerNonAnimated(e,t)),this},removeLayer:function(e){return e instanceof L.LayerGroup?this.removeLayers([e]):(e.getLatLng?this._map?e.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(e)),this._removeLayer(e,!0),this.fire("layerremove",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),e.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(e)&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow())):(!this._arraySplice(this._needsClustering,e)&&this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e})):(this._nonPointGroup.removeLayer(e),this.fire("layerremove",{layer:e})),this)},addLayers:function(e,t){if(!L.Util.isArray(e))return this.addLayer(e);var i,n=this._featureGroup,r=this._nonPointGroup,o=this.options.chunkedLoading,s=this.options.chunkInterval,a=this.options.chunkProgress,l=e.length,c=0,u=!0;if(this._map){var h=(new Date).getTime(),d=L.bind((function(){var p=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(o&&c%200==0){var m=(new Date).getTime()-p;if(s<m)break}if((i=e[c])instanceof L.LayerGroup)u&&(e=e.slice(),u=!1),this._extractNonGroupLayers(i,e),l=e.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),t||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var f=i.__parent.getAllChildMarkers(),_=f[0]===i?f[1]:f[0];n.removeLayer(_)}}else r.addLayer(i),t||this.fire("layeradd",{layer:i})}a&&a(c,l,(new Date).getTime()-h),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)}),this);d()}else for(var p=this._needsClustering;c<l;c++)(i=e[c])instanceof L.LayerGroup?(u&&(e=e.slice(),u=!1),this._extractNonGroupLayers(i,e),l=e.length):i.getLatLng?this.hasLayer(i)||p.push(i):r.addLayer(i);return this},removeLayers:function(e){var t,i,n=e.length,r=this._featureGroup,o=this._nonPointGroup,s=!0;if(!this._map){for(t=0;t<n;t++)(i=e[t])instanceof L.LayerGroup?(s&&(e=e.slice(),s=!1),this._extractNonGroupLayers(i,e),n=e.length):(this._arraySplice(this._needsClustering,i),o.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var a=e.slice(),l=n;for(t=0;t<l;t++)(i=a[t])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,a),l=a.length):this._unspiderfyLayer(i)}for(t=0;t<n;t++)(i=e[t])instanceof L.LayerGroup?(s&&(e=e.slice(),s=!1),this._extractNonGroupLayers(i,e),n=e.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),r.hasLayer(i)&&(r.removeLayer(i),i.clusterShow&&i.clusterShow())):(o.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(e){e.off(this._childMarkerEventHandlers,this),delete e.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var e=new L.LatLngBounds;this._topClusterLevel&&e.extend(this._topClusterLevel._bounds);for(var t=this._needsClustering.length-1;0<=t;t--)e.extend(this._needsClustering[t].getLatLng());return e.extend(this._nonPointGroup.getBounds()),e},eachLayer:function(e,t){var i,n,r,o=this._needsClustering.slice(),s=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),n=o.length-1;0<=n;n--){for(i=!0,r=s.length-1;0<=r;r--)if(s[r].layer===o[n]){i=!1;break}i&&e.call(t,o[n])}this._nonPointGroup.eachLayer(e,t)},getLayers:function(){var e=[];return this.eachLayer((function(t){e.push(t)})),e},getLayer:function(e){var t=null;return e=parseInt(e,10),this.eachLayer((function(i){L.stamp(i)===e&&(t=i)})),t},hasLayer:function(e){if(!e)return!1;var t,i=this._needsClustering;for(t=i.length-1;0<=t;t--)if(i[t]===e)return!0;for(t=(i=this._needsRemoving).length-1;0<=t;t--)if(i[t].layer===e)return!1;return!(!e.__parent||e.__parent._group!==this)||this._nonPointGroup.hasLayer(e)},zoomToShowLayer:function(e,t){var i=this._map;"function"!=typeof t&&(t=function(){});var n=function(){!i.hasLayer(e)&&!i.hasLayer(e.__parent)||this._inZoomAnimation||(this._map.off("moveend",n,this),this.off("animationend",n,this),i.hasLayer(e)?t():e.__parent._icon&&(this.once("spiderfied",t,this),e.__parent.spiderfy()))};e._icon&&this._map.getBounds().contains(e.getLatLng())?t():e.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",n,this),this._map.panTo(e.getLatLng())):(this._map.on("moveend",n,this),this.on("animationend",n,this),e.__parent.zoomToBounds())},onAdd:function(e){var t,i,n;if(this._map=e,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(e),this._nonPointGroup.addTo(e),this._gridClusters||this._generateInitialClusters(),this._maxLat=e.options.crs.projection.MAX_LATITUDE,t=0,i=this._needsRemoving.length;t<i;t++)(n=this._needsRemoving[t]).newlatlng=n.layer._latlng,n.layer._latlng=n.latlng;for(t=0,i=this._needsRemoving.length;t<i;t++)n=this._needsRemoving[t],this._removeLayer(n.layer,!0),n.layer._latlng=n.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(e){e.off("zoomend",this._zoomEnd,this),e.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(e){for(var t=e;t&&!t._icon;)t=t.__parent;return t||null},_arraySplice:function(e,t){for(var i=e.length-1;0<=i;i--)if(e[i]===t)return e.splice(i,1),!0},_removeFromGridUnclustered:function(e,t){for(var i=this._map,n=this._gridUnclustered,r=Math.floor(this._map.getMinZoom());r<=t&&n[t].removeObject(e,i.project(e.getLatLng(),t));t--);},_childMarkerDragStart:function(e){e.target.__dragStart=e.target._latlng},_childMarkerMoved:function(e){if(!this._ignoreMove&&!e.target.__dragStart){var t=e.target._popup&&e.target._popup.isOpen();this._moveChild(e.target,e.oldLatLng,e.latlng),t&&e.target.openPopup()}},_moveChild:function(e,t,i){e._latlng=t,this.removeLayer(e),e._latlng=i,this.addLayer(e)},_childMarkerDragEnd:function(e){var t=e.target.__dragStart;delete e.target.__dragStart,t&&this._moveChild(e.target,t,e.target._latlng)},_removeLayer:function(e,t,i){var n=this._gridClusters,r=this._gridUnclustered,o=this._featureGroup,s=this._map,a=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(e,this._maxZoom);var l,c=e.__parent,u=c._markers;for(this._arraySplice(u,e);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<a));)t&&c._childCount<=1?(l=c._markers[0]===e?c._markers[1]:c._markers[0],n[c._zoom].removeObject(c,s.project(c._cLatLng,c._zoom)),r[c._zoom].addObject(l,s.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(o.removeLayer(c),i||o.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete e.__parent},_isOrIsParent:function(e,t){for(;t;){if(e===t)return!0;t=t.parentNode}return!1},fire:function(e,t,i){if(t&&t.layer instanceof L.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.layer._icon,t.originalEvent.relatedTarget))return;e="cluster"+e}L.FeatureGroup.prototype.fire.call(this,e,t,i)},listens:function(e,t){return L.FeatureGroup.prototype.listens.call(this,e,t)||L.FeatureGroup.prototype.listens.call(this,"cluster"+e,t)},_defaultIconCreateFunction:function(e){var t=e.getChildCount(),i=" marker-cluster-";return i+=t<10?"small":t<100?"medium":"large",new L.DivIcon({html:"<div><span>"+t+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var e=this._map,t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom;(t||n||r)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),e.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(e){var t=e.layer,i=t;if("clusterkeypress"!==e.type||!e.originalEvent||13===e.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===t._childCount&&this.options.spiderfyOnMaxZoom?t.spiderfy():this.options.zoomToBoundsOnClick&&t.zoomToBounds(),this.options.spiderfyOnEveryZoom&&t.spiderfy(),e.originalEvent&&13===e.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(e){var t=this._map;this._inZoomAnimation||(this._shownPolygon&&t.removeLayer(this._shownPolygon),2<e.layer.getChildCount()&&e.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(e.layer.getConvexHull(),this.options.polygonOptions),t.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var e=this.options.spiderfyOnMaxZoom,t=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom,r=this._map;(e||i||n)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),t&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),r.off("zoomend",this._hideCoverage,this))}
vendor: 7,130 bytes, line 5
5,_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var e=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),e),this._currentShownBounds=e}},_generateInitialClusters:function(){var e=Math.ceil(this._map.getMaxZoom()),t=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,n=i;"function"!=typeof i&&(n=function(){return i}),null!==this.options.disableClusteringAtZoom&&(e=this.options.disableClusteringAtZoom-1),this._maxZoom=e,this._gridClusters={},this._gridUnclustered={};for(var r=e;t<=r;r--)this._gridClusters[r]=new L.DistanceGrid(n(r)),this._gridUnclustered[r]=new L.DistanceGrid(n(r));this._topClusterLevel=new this._markerCluster(this,t-1)},_addLayer:function(e,t){var i,n,r=this._gridClusters,o=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(e),e.on(this._childMarkerEventHandlers,this);s<=t;t--){i=this._map.project(e.getLatLng(),t);var a=r[t].getNearObject(i);if(a)return a._addChild(e),void(e.__parent=a);if(a=o[t].getNearObject(i)){var l=a.__parent;l&&this._removeLayer(a,!1);var c=new this._markerCluster(this,t,a,e);r[t].addObject(c,this._map.project(c._cLatLng,t)),a.__parent=c;var u=e.__parent=c;for(n=t-1;n>l._zoom;n--)u=new this._markerCluster(this,n,u),r[n].addObject(u,this._map.project(a.getLatLng(),n));return l._addChild(u),void this._removeFromGridUnclustered(a,t)}o[t].addObject(e,i)}this._topClusterLevel._addChild(e),e.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(e){e instanceof L.MarkerCluster&&e._iconNeedsUpdate&&e._updateIcon()}))},_enqueue:function(e){this._queue.push(e),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var e=0;e<this._queue.length;e++)this._queue[e].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var e=Math.round(this._map._zoom);this._processQueue(),this._zoom<e&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,e)):this._zoom>e?(this._animationStart(),this._animationZoomOut(this._zoom,e)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(e){var t=this._maxLat;return void 0!==t&&(e.getNorth()>=t&&(e._northEast.lat=1/0),e.getSouth()<=-t&&(e._southWest.lat=-1/0)),e},_animationAddLayerNonAnimated:function(e,t){if(t===e)this._featureGroup.addLayer(e);else if(2===t._childCount){t._addToMap();var i=t.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else t._updateIcon()},_extractNonGroupLayers:function(e,t){var i,n=e.getLayers(),r=0;for(t=t||[];r<n.length;r++)(i=n[r])instanceof L.LayerGroup?this._extractNonGroupLayers(i,t):t.push(i);return t},_overrideMarkerIcon:function(e){return e.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[e]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(e,t){this._animationAddLayerNonAnimated(e,t)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(e,t){var i,n=this._getExpandedVisibleBounds(),r=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(n,e,o,(function(o){var s,a=o._latlng,l=o._markers;for(n.contains(a)||(a=null),o._isSingleParent()&&e+1===t?(r.removeLayer(o),o._recursivelyAddChildrenToMap(null,t,n)):(o.clusterHide(),o._recursivelyAddChildrenToMap(a,t,n)),i=l.length-1;0<=i;i--)s=l[i],n.contains(s._latlng)||r.removeLayer(s)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(n,t),r.eachLayer((function(e){e instanceof L.MarkerCluster||!e._icon||e.clusterShow()})),this._topClusterLevel._recursively(n,e,t,(function(e){e._recursivelyRestoreChildPositions(t)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(n,e,o,(function(e){r.removeLayer(e),e.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(e,t){this._animationZoomOutSingle(this._topClusterLevel,e-1,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e,this._getExpandedVisibleBounds())},_animationAddLayer:function(e,t){var i=this,n=this._featureGroup;n.addLayer(e),t!==e&&(2<t._childCount?(t._updateIcon(),this._forceLayout(),this._animationStart(),e._setPos(this._map.latLngToLayerPoint(t.getLatLng())),e.clusterHide(),this._enqueue((function(){n.removeLayer(e),e.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(t,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(e,t,i){var n=this._getExpandedVisibleBounds(),r=Math.floor(this._map.getMinZoom());e._recursivelyAnimateChildrenInAndAddSelfToMap(n,r,t+1,i);var o=this;this._forceLayout(),e._recursivelyBecomeVisible(n,i),this._enqueue((function(){if(1===e._childCount){var s=e._markers[0];this._ignoreMove=!0,s.setLatLng(s.getLatLng()),this._ignoreMove=!1,s.clusterShow&&s.clusterShow()}else e._recursively(n,i,r,(function(e){e._recursivelyRemoveChildrenFromMap(n,r,t+1)}));o._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(e){return new L.MarkerClusterGroup(e)};
vendor: 11,824 bytes, line 5
5var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(e,t,i,n){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:e.options.clusterPane}),this._group=e,this._zoom=t,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),n&&this._addChild(n)},getAllChildMarkers:function(e,t){e=e||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(e,t);for(var n=this._markers.length-1;0<=n;n--)t&&this._markers[n].__dragStart||e.push(this._markers[n]);return e},getChildCount:function(){return this._childCount},zoomToBounds:function(e){for(var t,i=this._childClusters.slice(),n=this._group._map,r=n.getBoundsZoom(this._bounds),o=this._zoom+1,s=n.getZoom();0<i.length&&o<r;){o++;var a=[];for(t=0;t<i.length;t++)a=a.concat(i[t]._childClusters);i=a}o<r?this._group._map.setView(this._latlng,o):r<=s?this._group._map.setView(this._latlng,s+1):this._group._map.fitBounds(this._bounds,e)},getBounds:function(){var e=new L.LatLngBounds;return e.extend(this._bounds),e},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(e,t){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(e),e instanceof L.MarkerCluster?(t||(this._childClusters.push(e),e.__parent=this),this._childCount+=e._childCount):(t||this._markers.push(e),this._childCount++),this.__parent&&this.__parent._addChild(e,!0)},_setClusterCenter:function(e){this._cLatLng||(this._cLatLng=e._cLatLng||e._latlng)},_resetBounds:function(){var e=this._bounds;e._southWest&&(e._southWest.lat=1/0,e._southWest.lng=1/0),e._northEast&&(e._northEast.lat=-1/0,e._northEast.lng=-1/0)},_recalculateBounds:function(){var e,t,i,n,r=this._markers,o=this._childClusters,s=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),e=0;e<r.length;e++)i=r[e]._latlng,this._bounds.extend(i),s+=i.lat,a+=i.lng;for(e=0;e<o.length;e++)(t=o[e])._boundsNeedUpdate&&t._recalculateBounds(),this._bounds.extend(t._bounds),i=t._wLatLng,n=t._childCount,s+=i.lat*n,a+=i.lng*n;this._latlng=this._wLatLng=new L.LatLng(s/l,a/l),this._boundsNeedUpdate=!1}},_addToMap:function(e){e&&(this._backupLatlng=this._latlng,this.setLatLng(e)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(e,t,i){this._recursively(e,this._group._map.getMinZoom(),i-1,(function(e){var i,n,r=e._markers;for(i=r.length-1;0<=i;i--)(n=r[i])._icon&&(n._setPos(t),n.clusterHide())}),(function(e){var i,n,r=e._childClusters;for(i=r.length-1;0<=i;i--)(n=r[i])._icon&&(n._setPos(t),n.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(e,t,i,n){this._recursively(e,n,t,(function(r){r._recursivelyAnimateChildrenIn(e,r._group._map.latLngToLayerPoint(r.getLatLng()).round(),i),r._isSingleParent()&&i-1===n?(r.clusterShow(),r._recursivelyRemoveChildrenFromMap(e,t,i)):r.clusterHide(),r._addToMap()}))},_recursivelyBecomeVisible:function(e,t){this._recursively(e,this._group._map.getMinZoom(),t,null,(function(e){e.clusterShow()}))},_recursivelyAddChildrenToMap:function(e,t,i){this._recursively(i,this._group._map.getMinZoom()-1,t,(function(n){if(t!==n._zoom)for(var r=n._markers.length-1;0<=r;r--){var o=n._markers[r];i.contains(o._latlng)&&(e&&(o._backupLatlng=o.getLatLng(),o.setLatLng(e),o.clusterHide&&o.clusterHide()),n._group._featureGroup.addLayer(o))}}),(function(t){t._addToMap(e)}))},_recursivelyRestoreChildPositions:function(e){for(var t=this._markers.length-1;0<=t;t--){var i=this._markers[t];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(e-1===this._zoom)for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._restorePosition();else for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._recursivelyRestoreChildPositions(e)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(e,t,i,n){var r,o;this._recursively(e,t-1,i-1,(function(e){for(o=e._markers.length-1;0<=o;o--)r=e._markers[o],n&&n.contains(r._latlng)||(e._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())}),(function(e){for(o=e._childClusters.length-1;0<=o;o--)r=e._childClusters[o],n&&n.contains(r._latlng)||(e._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())}))},_recursively:function(e,t,i,n,r){var o,s,a=this._childClusters,l=this._zoom;if(t<=l&&(n&&n(this),r&&l===i&&r(this)),l<t||l<i)for(o=a.length-1;0<=o;o--)(s=a[o])._boundsNeedUpdate&&s._recalculateBounds(),e.intersects(s._bounds)&&s._recursively(e,t,i,n,r)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var e=this.options.opacity;return this.setOpacity(0),this.options.opacity=e,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(e){this._cellSize=e,this._sqCellSize=e*e,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(e,t){var i=this._getCoord(t.x),n=this._getCoord(t.y),r=this._grid,o=r[n]=r[n]||{},s=o[i]=o[i]||[],a=L.Util.stamp(e);this._objectPoint[a]=t,s.push(e)},updateObject:function(e,t){this.removeObject(e),this.addObject(e,t)},removeObject:function(e,t){var i,n,r=this._getCoord(t.x),o=this._getCoord(t.y),s=this._grid,a=s[o]=s[o]||{},l=a[r]=a[r]||[];for(delete this._objectPoint[L.Util.stamp(e)],i=0,n=l.length;i<n;i++)if(l[i]===e)return l.splice(i,1),1===n&&delete a[r],!0},eachObject:function(e,t){var i,n,r,o,s,a,l=this._grid;for(i in l)for(n in s=l[i])for(r=0,o=(a=s[n]).length;r<o;r++)e.call(t,a[r])&&(r--,o--)},getNearObject:function(e){var t,i,n,r,o,s,a,l,c=this._getCoord(e.x),u=this._getCoord(e.y),h=this._objectPoint,d=this._sqCellSize,p=null;for(t=u-1;t<=u+1;t++)if(r=this._grid[t])for(i=c-1;i<=c+1;i++)if(o=r[i])for(n=0,s=o.length;n<s;n++)a=o[n],((l=this._sqDist(h[L.Util.stamp(a)],e))<d||l<=d&&null===p)&&(d=l,p=a);return p},_getCoord:function(e){var t=Math.floor(e/this._cellSize);return isFinite(t)?t:e},_sqDist:function(e,t){var i=t.x-e.x,n=t.y-e.y;return i*i+n*n}},L.QuickHull={getDistant:function(e,t){var i=t[1].lat-t[0].lat;return(t[0].lng-t[1].lng)*(e.lat-t[0].lat)+i*(e.lng-t[0].lng)},findMostDistantPointFromBaseLine:function(e,t){var i,n,r,o=0,s=null,a=[];for(i=t.length-1;0<=i;i--)n=t[i],0<(r=this.getDistant(n,e))&&(a.push(n),o<r&&(o=r,s=n));return{maxPoint:s,newPoints:a}},buildConvexHull:function(e,t){var i=[],n=this.findMostDistantPointFromBaseLine(e,t);return n.maxPoint?i=(i=i.concat(this.buildConvexHull([e[0],n.maxPoint],n.newPoints))).concat(this.buildConvexHull([n.maxPoint,e[1]],n.newPoints)):[e[0]]},getConvexHull:function(e){var t,i,n=!1,r=!1,o=!1,s=!1,a=null,l=null,c=null,u=null,h=null;for(t=e.length-1;0<=t;t--){var d=e[t];(!1===n||d.lat>n)&&(n=(a=d).lat),(!1===r||d.lat<r)&&(r=(l=d).lat),(!1===o||d.lng>o)&&(o=(c=d).lng),(!1===s||d.lng<s)&&(s=(u=d).lng)}return i=r!==n?(h=l,a):(h=u,c),[].concat(this.buildConvexHull([h,i],e),this.buildConvexHull([i,h],e))}},L.MarkerCluster.include({getConvexHull:function(){var e,t,i=this.getAllChildMarkers(),n=[];for(t=i.length-1;0<=t;t--)e=i[t].getLatLng(),n.push(e);return L.QuickHull.getConvexHull(n)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var e,t=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),e=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(t.length,i):t.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(t.length,i):(i.y+=10,this._generatePointsCircle(t.length,i)),this._animationSpiderfy(t,e)}},unspiderfy:function(e){this._group._inZoomAnimation||(this._animationUnspiderfy(e),this._group._spiderfied=null)},_generatePointsCircle:function(e,t){var i,n,r=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+e)/this._2PI,o=this._2PI/e,s=[];for(r=Math.max(r,35),s.length=e,i=0;i<e;i++)n=this._circleStartAngle+i*o,s[i]=new L.Point(t.x+r*Math.cos(n),t.y+r*Math.sin(n))._round();return s},_generatePointsSpiral:function(e,t){var i,n=this._group.options.spiderfyDistanceMultiplier,r=n*this._spiralLengthStart,o=n*this._spiralFootSeparation,s=n*this._spiralLengthFactor*this._2PI,a=0,l=[];for(i=l.length=e;0<=i;i--)i<e&&(l[i]=new L.Point(t.x+r*Math.cos(a),t.y+r*Math.sin(a))._round()),r+=s/(a+=o/r+5e-4*i);return l},_noanimationUnspiderfy:function(){var e,t,i=this._group,n=i._map,r=i._featureGroup,o=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),t=o.length-1;0<=t;t--)e=o[t],r.removeLayer(e),e._preSpiderfyLatlng&&(e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng),e.setZIndexOffset&&e.setZIndexOffset(0),e._spiderLeg&&(n.removeLayer(e._spiderLeg),delete e._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:o}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(e,t){var i,n,r,o,s=this._group,a=s._map,l=s._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(s._ignoreMove=!0,i=0;i<e.length;i++)o=a.layerPointToLatLng(t[i]),n=e[i],r=new L.Polyline([this._latlng,o],c),a.addLayer(r),n._spiderLeg=r,n._preSpiderfyLatlng=n._latlng,n.setLatLng(o),n.setZIndexOffset&&n.setZIndexOffset(1e6),l.addLayer(n);this.setOpacity(.3),s._ignoreMove=!1,s.fire("spiderfied",{cluster:this,markers:e})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(e,t){var i,n,r,o,s,a,l=this,c=this._group,u=c._map,h=c._featureGroup,d=this._latlng,p=u.latLngToLayerPoint(d),m=L.Path.SVG,f=L.extend({},this._group.options.spiderLegPolylineOptions),_=f.opacity;for(void 0===_&&(_=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),m?(f.opacity=0,f.className=(f.className||"")+" leaflet-cluster-spider-leg"):f.opacity=_,c._ignoreMove=!0,i=0;i<e.length;i++)n=e[i],a=u.layerPointToLatLng(t[i]),r=new L.Polyline([d,a],f),u.addLayer(r),n._spiderLeg=r,m&&(s=(o=r._path).getTotalLength()+.1,o.style.strokeDasharray=s,o.style.strokeDashoffset=s),n.setZIndexOffset&&n.setZIndexOffset(1e6),n.clusterHide&&n.clusterHide(),h.addLayer(n),n._setPos&&n._setPos(p);for(c._forceLayout(),c._animationStart(),i=e.length-1;0<=i;i--)a=u.layerPointToLatLng(t[i]),(n=e[i])._preSpiderfyLatlng=n._latlng,n.setLatLng(a),n.clusterShow&&n.clusterShow(),m&&((o=(r=n._spiderLeg)._path).style.strokeDashoffset=0,r.setStyle({opacity:_}));this.setOpacity(.3),c._ignoreMove=!1,setTimeout((function(){c._animationEnd(),c.fire("spiderfied",{cluster:l,markers:e})}),200)},_animationUnspiderfy:function(e){var t,i,n,r,o,s,a=this,l=this._group,c=l._map,u=l._featureGroup,h=e?c._latLngToNewLayerPoint(this._latlng,e.zoom,e.center):c.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),p=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),i=d.length-1;0<=i;i--)(t=d[i])._preSpiderfyLatlng&&(t.closePopup(),t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng,s=!0,t._setPos&&(t._setPos(h),s=!1),t.clusterHide&&(t.clusterHide(),s=!1),s&&u.removeLayer(t),p&&(o=(r=(n=t._spiderLeg)._path).getTotalLength()+.1,r.style.strokeDashoffset=o,n.setStyle({opacity:0}
5)));l._ignoreMove=!1,setTimeout((function(){var e=0;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&e++;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&(t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),1<e&&u.removeLayer(t),c.removeLayer(t._spiderLeg),delete t._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:a,markers:d})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(e){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(e))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(e){this._spiderfied&&this._spiderfied.unspiderfy(e)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(e){e._spiderLeg&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),this._map.removeLayer(e._spiderLeg),delete e._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(e){return e?e instanceof L.MarkerClusterGroup?e=e._topClusterLevel.getAllChildMarkers():e instanceof L.LayerGroup?e=e._layers:e instanceof L.MarkerCluster?e=e.getAllChildMarkers():e instanceof L.Marker&&(e=[e]):e=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(e),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(e),this},_flagParentsIconsNeedUpdate:function(e){var t,i;for(t in e)for(i=e[t].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(e){var t,i;for(t in e)i=e[t],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(e,t){var i=this.options.icon;return L.setOptions(i,e),this.setIcon(i),t&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),e.MarkerClusterGroup=t,e.MarkerCluster=i,Object.defineProperty(e,"__esModule",{value:!0})}));const appModules={_debug:(e,t)=>{},list:new Map,types:["module","script"],positions:["head","body_top","body_bottom","before_shop_js","after_shop_js"],loadTimeout:5e3,shopJsName:"shop.js",validators:{moduleValid:(e,t)=>!e&&!t||(appModules._debug("load",`link wybranego moduÅu nie jest poprawny: ${e}`),!1),moduleInstalled:e=>!!appModules.list.has(e)||(appModules._debug("moduleInstalled","wskazany moduÅ nie zostaÅ zainstalowany."),!1),allowedType:e=>{const{types:t}=appModules;return!!t.includes(e)||(appModules._debug("allowedType",`type skryptu musi byÄ jednÄ
z opcji: ${t.join(", ")}`),!1)},scriptPosition:e=>{const{positions:t}=appModules;return!!t.includes(e)||(appModules._debug("scriptPosition",`pozycja osadzenia skryptu musi byÄ jednÄ
z opcji: ${t.join(", ")}`),!1)},scriptNotLoaded:e=>!(document.querySelectorAll(`script[src*="${e}"]`).length>0)||(appModules._debug("scriptNotLoaded",`skrypt z linkiem ${e} zostaÅ już zaÅadowany`),!1),validateLink:e=>!!e||(appModules._debug("scriptNotLoaded",`skrypt z linkiem ${e} zostaÅ już zaÅadowany`),!1)},getModule:e=>appModules.list.has(e)?appModules.list.get(e):{link:"",content:null},installModule:(e,t)=>"string"!=typeof e||"string"!=typeof t?(appModules._debug("installModule","link/name musi byÄ stringiem."),!1):appModules.list.has(e)?(appModules._debug("installModule",`wskazany moduÅ zostaÅ już zainstalowany: ${e}`),!1):(appModules.list.set(e,{link:t,content:null}),!0),load:async(e,{type:t="module",position:i="head",scriptAttrs:n={}}={})=>{const{link:r,content:o}
5=appModules.getModule(e),{moduleInstalled:s,allowedType:a,scriptPosition:l}=appModules.validators;return!!s(e)&&(!!a(t)&&(o||("module"===t?appModules._loadModule({name:e,link:r}):"script"===t?!!l(i)&&appModules._loadScript({link:r,position:i,scriptAttrs:n}):void 0)))},_updateModule:(e,t)=>{if(appModules.list.has(e)){const i=appModules.getModule(e);return appModules.list.set(e,{...i,content:t}),!0}return!1},_loadModule:async({name:e,link:t})=>{try{const i=await import(t);return appModules._updateModule(e,i),i}catch(e){return appModules._debug("load",`WystÄ
piÅ bÅÄ
d pobierania moduÅu: ${e}`),!1}},_loadScript:async({link:e="",position:t="head",scriptAttrs:i={}}={})=>new Promise(((n,r)=>{try{if(!appModules.validators.validateLink(e))return r(!1);if(!appModules.validators.scriptNotLoaded(e))return r(!1);const o=document.createElement("script");o.src=e,((e,t)=>{if(Object.getPrototypeOf(t)!==Object.prototype)return!1;Object.entries(t).forEach((([t,i])=>{e.setAttribute(t,i)}))})(o,i),o.addEventListener("load",(()=>{n(!0)})),o.addEventListener("error",((e,t,i,n,o)=>{appModules._debug("load",`bÅÄ
d Åadowania skryptu: ${e}, ${t}, ${i}, ${n}, ${o}`),r(!1)})),appModules._appendScript(o,t)}catch(e){appModules._debug("load",`bÅÄ
d osadzania skryptu: ${e}`),r(!1)}})),_appendScript(e,t){const{shopJsName:i}=appModules;switch(t){case"body_top":document.body.insertAdjacentElement("afterbegin",e);break;case"body_bottom":document.body.insertAdjacentElement("beforeend",e);break;case"before_shop_js":{const t=document.querySelector(`script[src*="${i}"]`);if(!t){appModules._debug("_loadScript","before_shop_js - nie znaleziono tagu script z shop.js");break}t.insertAdjacentElement("beforeend",e);break}case"after_shop_js":{const t=document.querySelector(`script[src*="${i}"]`);if(!t){appModules._debug("_loadScript","after_shop_js - nie znaleziono tagu script z shop.js");break}t.insertAdjacentElement("afterend",e);break}default:document.head.appendChild(e)}}};!function(e){"use strict";function t(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function i(e,i,n,r,o,s){return t(function(e,t){return e<<t|e>>>32-t}(t(t(i,e),t(r,s)),o),n)}function n(e,t,n,r,o,s,a){return i(t&n|~t&r,e,t,o,s,a)}function r(e,t,n,r,o,s,a){return i(t&r|n&~r,e,t,o,s,a)}function o(e,t,n,r,o,s,a){return i(t^n^r,e,t,o,s,a)}function s(e,t,n,r,o,s,a){return i(n^(t|~r),e,t,o,s,a)}function a(e,i){e[i>>5]|=128<<i%32,e[14+(i+64>>>9<<4)]=i;var a,l,c,u,h,d=1732584193,p=-271733879,m=-1732584194,f=271733878;for(a=0;a<e.length;a+=16)l=d,c=p,u=m,h=f,p=s(p=s(p=s(p=s(p=o(p=o(p=o(p=o(p=r(p=r(p=r(p=r(p=n(p=n(p=n(p=n(p,m=n(m,f=n(f,d=n(d,p,m,f,e[a],7,-680876936),p,m,e[a+1],12,-389564586),d,p,e[a+2],17,606105819),f,d,e[a+3],22,-1044525330),m=n(m,f=n(f,d=n(d,p,m,f,e[a+4],7,-176418897),p,m,e[a+5],12,1200080426),d,p,e[a+6],17,-1473231341),f,d,e[a+7],22,-45705983),m=n(m,f=n(f,d=n(d,p,m,f,e[a+8],7,1770035416),p,m,e[a+9],12,-1958414417),d,p,e[a+10],17,-42063),f,d,e[a+11],22,-1990404162),m=n(m,f=n(f,d=n(d,p,m,f,e[a+12],7,1804603682),p,m,e[a+13],12,-40341101),d,p,e[a+14],17,-1502002290),f,d,e[a+15],22,1236535329),m=r(m,f=r(f,d=r(d,p,m,f,e[a+1],5,-165796510),p,m,e[a+6],9,-1069501632),d,p,e[a+11],14,643717713),f,d,e[a],20,-373897302),m=r(m,f=r(f,d=r(d,p,m,f,e[a+5],5,-701558691),p,m,e[a+10],9,38016083),d,p,e[a+15],14,-660478335),f,d,e[a+4],20,-405537848),m=r(m,f=r(f,d=r(d,p,m,f,e[a+9],5,568446438),p,m,e[a+14],9,-1019803690),d,p,e[a+3],14,-187363961),f,d,e[a+8],20,1163531501),m=r(m,f=r(f,d=r(d,p,m,f,e[a+13],5,-1444681467),p,m,e[a+2],9,-51403784),d,p,e[a+7],14,1735328473),f,d,e[a+12],20,-1926607734),m=o(m,f=o(f,d=o(d,p,m,f,e[a+5],4,-378558),p,m,e[a+8],11,-2022574463),d,p,e[a+11],16,1839030562),f,d,e[a+14],23,-35309556),m=o(m,f=o(f,d=o(d,p,m,f,e[a+1],4,-1530992060),p,m,e[a+4],11,1272893353),d,p,e[a+7],16,-155497632),f,d,e[a+10],23,-1094730640),m=o(m,f=o(f,d=o(d,p,m,f,e[a+13],4,681279174),p,m,e[a],11,-358537222),d,p,e[a+3],16,-722521979),f,d,e[a+6],23,76029189),m=o(m,f=o(f,d=o(d,p,m,f,e[a+9],4,-640364487),p,m,e[a+12],11,-421815835),d,p,e[a+15],16,530742520),f,d,e[a+2],23,-995338651),m=s(m,f=s(f,d=s(d,p,m,f,e[a],6,-198630844),p,m,e[a+7],10,1126891415),d,p,e[a+14],15,-1416354905),f,d,e[a+5],21,-57434055),m=s(m,f=s(f,d=s(d,p,m,f,e[a+12],6,1700485571),p,m,e[a+3],10,-1894986606),d,p,e[a+10],15,-1051523),f,d,e[a+1],21,-2054922799),m=s(m,f=s(f,d=s(d,p,m,f,e[a+8],6,1873313359),p,m,e[a+15],10,-30611744),d,p,e[a+6],15,-1560198380),f,d,e[a+13],21,1309151649),m=s(m,f=s(f,d=s(d,p,m,f,e[a+4],6,-145523070),p,m,e[a+11],10,-1120210379),d,p,e[a+2],15,718787259),f,d,e[a+9],21,-343485551),d=t(d,l),p=t(p,c
5),m=t(m,u),f=t(f,h);return[d,p,m,f]}function l(e){var t,i="",n=32*e.length;for(t=0;t<n;t+=8)i+=String.fromCharCode(e[t>>5]>>>t%32&255);return i}function c(e){var t,i=[];for(i[(e.length>>2)-1]=void 0,t=0;t<i.length;t+=1)i[t]=0;var n=8*e.length;for(t=0;t<n;t+=8)i[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return i}function u(e){var t,i,n="";for(i=0;i<e.length;i+=1)t=e.charCodeAt(i),n+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return n}function h(e){return unescape(encodeURIComponent(e))}function d(e){return function(e){return l(a(c(e),8*e.length))}(h(e))}function p(e,t){return function(e,t){var i,n,r=c(e),o=[],s=[];for(o[15]=s[15]=void 0,r.length>16&&(r=a(r,8*e.length)),i=0;i<16;i+=1)o[i]=909522486^r[i],s[i]=1549556828^r[i];return n=a(o.concat(c(t)),512+8*t.length),l(a(s.concat(n),640))}(h(e),h(t))}function m(e,t,i){return t?i?p(t,e):function(e,t){return u(p(e,t))}(t,e):i?d(e):function(e){return u(d(e))}(e)}"function"==typeof define&&define.amd?define((function(){return m})):"object"==typeof module&&module.exports?module.exports=m:e.md5=m}(window),window.format_price=function(e,t){var i=e,n=(t=t||{}).mask||"### ##0,00";currency_grouping_separator&&(n=n.replace(",",currency_grouping_separator)),currency_decimal_separator&&(n=n.replace(".",currency_decimal_separator));var r=t.currency||"",o=t.currency_space?" ":"",s=!!t.currency_before_price;if(!n||isNaN(+i))return i;var a=(i="-"==n.charAt(0)?-i:+i)<0?i=-i:0,l=n.match(/[^\d\-\+#]/g),c=l&&l[l.length-1]||".",u=l&&l[1]&&l[0]||",";n=n.split(c);i=+(i=i.toFixed(n[1]&&n[1].length))+"";var h=n[1]&&n[1].lastIndexOf("0"),d=i.split(".");(!d[1]||d[1]&&d[1].length<=h)&&(i=(+i).toFixed(h+1));var p=n[0].split(u);n[0]=p.join("");var m=n[0]&&n[0].indexOf("0");if(m>-1)for(;d[0].length<n[0].length-m;)d[0]="0"+d[0];else 0==+d[0]&&(d[0]="");(i=i.split("."))[0]=d[0];var f=p[1]&&p[p.length-1].length;if(f){for(var _=i[0],g="",y=_.length%f,v=0,b=_.length;v<b;v++)g+=_.charAt(v),!((v-y+1)%f)&&v<b-f&&(g+=u);i[0]=g}i[1]=n[1]&&i[1]?c+i[1]:"";e=(a?"-":"")+i[0]+i[1];return e=s?r+o+e:e+o+r},app_shop.fn.fontCallback=()=>{void 0!==app_shop.fn.fontCallbackMenu&&app_shop.fn.fontCallbackMenu()};var google_map_style_array=[{featureType:"landscape",stylers:[{saturation:-100},{lightness:65},{visibility:"on"}]},{featureType:"poi",stylers:[{saturation:-100},{lightness:51},{visibility:"simplified"}]},{featureType:"road.highway",stylers:[{saturation:-100},{visibility:"simplified"}]},{featureType:"road.arterial",stylers:[{saturation:-100},{lightness:30},{visibility:"on"}]},{featureType:"road.local",stylers:[{saturation:-100},{lightness:40},{visibility:"on"}]},{featureType:"transit",stylers:[{saturation:-100},{visibility:"simplified"}]},{featureType:"administrative.province",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"on"},{lightness:-25},{saturation:-100}]},{featureType:"water",elementType:"geometry",stylers:[{hue:"#ffff00"},{lightness:-25},{saturation:-97}]}];app_shop.run((function(){document.documentElement.classList.remove("_mobile")}),[2,3,4],"body",!0),app_shop.run((function(){document.documentElement.classList.add("_mobile")}),1,"body",!0),app_shop.run((()=>{document.querySelectorAll(".cm img.rwd-src").forEach((e=>{e.setAttribute("src",app_shop.fn.getRwdSrc(e))}))}),[1,2,3,4],".cm img.rwd-src"),app_shop.run((function(){document.querySelectorAll("img.b-lazy").forEach((e=>{e.closest("a")?.classList.add("loading")})),app_shop.vars.bLazy=new Blazy({breakpoints:[{width:420,src:"data-src-small"}],success:function(e){e.closest(".loading")?.classList.remove("loading")}}),app_shop.fn.addFocusEventListeners();const e=document.querySelectorAll(".form-group .form-control, .f-group .f-control");setTimeout((()=>{e.forEach((e=>app_shop.fn.addFocused.call(e)))}),500),app_shop.fn.setupFileInputListeners(),app_shop.fn.backTop({txt:'<i class="icon-angle-up"></i>'});let t=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",`${t}px`),window.addEventListener("resize",(()=>{t=.01*window.innerHeight,document.documentElement.style.setProperty("--vh",`${t}px`)}))}),"all"),app_shop.fn.fixed_scroll=(e,t)=>
5{let i=window.scrollY;const n=window;window.addEventListener("scroll",(function(r){n.scrollY>i&&n.scrollY>0?!e.classList.contains(t)&&e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t),i=n.scrollY}))},app_shop.fn.isIos=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,app_shop.vars.isIos=app_shop.fn.isIos(),app_shop.fn.isSafari=()=>isSafari=navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&-1==navigator.userAgent.indexOf("CriOS")&&-1==navigator.userAgent.indexOf("FxiOS"),app_shop.vars.isSafari=app_shop.fn.isSafari(),app_shop.run((function(){app_shop.fn.fixed_scroll(document.documentElement,"scroll"),app_shop.vars.isIos&&document.documentElement.classList.add("--ios"),app_shop.vars.isSafari&&document.documentElement.classList.add("--safari")}),[1,2],"#container"),app_shop.run((function(){document.querySelectorAll(".moreInfo__show").forEach((e=>{e.addEventListener("click",(function(){this.parentElement.classList.toggle("--hover"),this.parentElement.querySelector(".moreInfo")?.classList.toggle("--hover")}))}))}),"all",".moreInfo__show"),app_shop.txt.txt_77752_1="File cannot be uploaded %s because it is larger than the allowed size of %dMB.",app_shop.txt.txt_77752_2="File cannot be uploaded %s, because its type of files is invali
5d.",app_shop.txt.txt_77752_3="Possible picture formats: .jpg.",app_shop.txt.txt_77752_4="Max. picture size is: %spx.";var hotspotAjaxWrapType="";app_shop.txt.txt_validation1="The minimum number of characters for this field is ",app_shop.txt.txt_validation2="The maximum number of characters for this field is ",app_shop.txt.txt_validation3="Incorrectly typed e-mail address. Enter the full e-mail address, e.g. [email protected].",app_shop.txt.txt_validation4="This field is required.",app_shop.txt.txt_validation5="Bank account number format is invalid ",app_shop.txt.txt_validation6="Phone number should contain a minimum of 9 characters ",app_shop.txt.hotspot_prev="Previous from this category",app_shop.txt.hotspot_next="Next in this category";const Alertek={alert_cover:"",cloudID:"",alert_timer:null,fadeIn:()=>{Alertek.cloudID.style.display="block",Alertek.cloudID.style.transition="opacity 0.5s",Alertek.cloudID.style.opacity=0,setTimeout((()=>{Alertek.cloudID.style.opacity=1}),0)},fadeOut:()=>{Alertek.cloudID.style.opacity=0,setTimeout((()=>{Alertek.cloudID.style.display="none"}),500)},Start:(e,t,i=4e3)=>{clearTimeout(Alertek.alert_timer),document.querySelector("#alert_cover")?.remove();const n=document.createElement("div");n.className="alertek"+(t?` ${t}`:""),n.id="alert_cover",n.style.display="none",n.onclick=Alertek.hide_alert,document.body.appendChild(n),t||n.classList.add("menu_messages_message"),Alertek.cloudID=n,e&&(Alertek.cloudID.innerHTML=e,Alertek.fadeIn(),Alertek.alert_timer=setTimeout(Alertek.End,i))},End:()=>{Alertek.fadeOut()},Info:(e,t)=>{Alertek.Start(e,"--info",t)},Warning:(e,t)=>{Alertek.Start(e,"--warning",t)},Error:(e,t)=>{Alertek.Start(e,"--error",t)},Success:(e,t)=>{Alertek.Start(e,"--success",t)},show_alert:(e,t)=>{Alertek.Start(e,!1,t)},hide_alert:()=>{Alertek.End()}};document.documentElement.classList.remove("_mobile"),app_shop.fn.addFocused=function(e,t){if("number"==typeof t)return;const{target:i}=e||{};let n=i?[i]:[this];t instanceof HTMLElement?n=[t]:t&&(n=document.querySelectorAll(t)),n.forEach((e=>{const t=e.nextElementSibling;t&&["control-label","f-label"].some((e=>t.classList.contains(e)))&&e.classList.toggle("focused",""!==e.value)}))},app_shop.fn.addFocusEventListeners=function(e=".form-group .form-control, .f-group .f-control"){["change","input","focus","blur"].forEach((t=>{document.addEventListener(t,(t=>{const{target:i}=t;i.closest&&i?.closest(e)&&app_shop.fn.addFocused(t)}),!0)}))},app_shop.fn.setupFileInputListeners=()=>{document.addEventListener("change",(e=>{const{target:t}=e;t?.closest('input[type="file"]')&&(e=>{if(!(window.File&&window.FileReader&&window.FileList&&window.Blob))return;(e=>{const{target:t}=e,i=t.nextElementSibling;if(i?.classList.contains("f-label")){if(t.value.length)return i.classList.add("--file"),i.getAttribute("data-label")||i.setAttribute("data-label",i.textContent),void(i.textContent=t.value.split("\\").pop());i.classList.remove("--file"),i.textContent=i.getAttribute("data-label")||""}})(e);const{files:t}=e.target;if(0===t.length)return;const{name:i="",size:n,type:r}=t[0],[o]=i.split(".").reverse();if(app_shop.vars.blacklist_mime?.includes(r)&&app_shop.txt.txt_77752_2)return e.target.value="",void Alertek.Start(app_shop.txt.txt_77752_2.replace("%s",i));if(app_shop.vars.blacklist_extension?.includes(o)&&app_shop.txt.txt_77752_2)return e.target.value="",void Alertek.Start(app_shop.txt.txt_77752_2.replace("%s",i));const{max_filesize:s}=e.target.dataset;s&&n>+s&&app_shop.txt.txt_77752_1&&(e.target.value="",Alertek.Start(app_shop.txt.txt_77752_1.replace("%s",i).replace("%d",(+s/1048576).toFixed(2))))})(e)}),!0)},app_shop.fn.backTop=({txt:e='<i class="icon-chevron-up"></i>'})=>{const t=()=>{const e=window.innerWidth,t=document.getElementById("container")?.offsetWidth,n=.5*(e-t)-20;return n>=(i.offsetWidth||50)?n-(i.offsetWidth||50)+"px":"10px"},i=document.createElement("a");i.id="backTop",i.innerHTML=e,i.style.right=t(),document.body.appendChild(i),i.addEventListener("click",(()=>{window.scrollTo({top:0,behavior:"smooth"})})),window.addEventListener("scroll",(()=>{window.scrollY>2*window.innerHeight?i.style.display="block":i.style.display="none"})),window.addEventListener("resize",(()=>{i.style.right=t()}))},function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.Blazy=t()}(this,(function(){function e(e){var i=e._util;i.elements=function(e){for(var t=[],i=(e=e.root.querySelectorAll(e.selector)).length;i--;t.unshift(e[i]));return t}(e.options),i.count=i.elements.length,i.destroyed&&(i.destroyed=!1,e.options.container&&h(e.options.container,(function(e){c(e,"scroll",i.validateT)})),c(window,"resize",i.saveViewportOffsetT),c(window,"resize",i.validateT),c(window,"scroll",i.validateT)),t(e)}function t(e){for(var t=e._util,n=0;n<t.count;n++){var r,o=t.elements[n],a=o;r=e.options;var l=a.getBoundingClientRect();r.container&&_&&(a=a.closest(r.containerClass))?r=!!i(a=a.getBoundingClientRect(),m)&&i(l,{top:a.top-r.offset,right:a.right+r.offset,bottom:a.bottom+r.offset,left:a.left-r.offset}):r=i(l,m),(r||s(o,e.options.successClass))&&(e.load(o),t.elements.splice(n,1),t.count--,n--)}0===t.count&&e.destroy()}function i(e,t){return e.right>=t.left&&e.bottom>
5=t.top&&e.left<=t.right&&e.top<=t.bottom}function n(e,t,i){if(!s(e,i.successClass)&&(t||i.loadInvisible||0<e.offsetWidth&&0<e.offsetHeight))if(t=e.getAttribute(p)||e.getAttribute(i.src)){var n=(t=t.split(i.separator))[f&&1<t.length?1:0],l=e.getAttribute(i.srcset),d="img"===e.nodeName.toLowerCase(),m=(t=e.parentNode)&&"picture"===t.nodeName.toLowerCase();if(d||void 0===e.src){var _=new Image,g=function(){i.error&&i.error(e,"invalid"),a(e,i.errorClass),u(_,"error",g),u(_,"load",y)},y=function(){d?m||o(e,n,l):e.style.backgroundImage='url("'+n+'")',r(e,i),u(_,"load",y),u(_,"error",g)};m&&(_=e,h(t.getElementsByTagName("source"),(function(e){var t=i.srcset,n=e.getAttribute(t);n&&(e.setAttribute("srcset",n),e.removeAttribute(t))}))),c(_,"error",g),c(_,"load",y),o(_,n,l)}else e.src=n,r(e,i)}else"video"===e.nodeName.toLowerCase()?(h(e.getElementsByTagName("source"),(function(e){var t=i.src,n=e.getAttribute(t);n&&(e.setAttribute("src",n),e.removeAttribute(t))})),e.load(),r(e,i)):(i.error&&i.error(e,"missing"),a(e,i.errorClass))}function r(e,t){a(e,t.successClass),t.success&&t.success(e),e.removeAttribute(t.src),e.removeAttribute(t.srcset),h(t.breakpoints,(function(t){e.removeAttribute(t.src)}))}function o(e,t,i){i&&e.setAttribute("srcset",i),e.src=t}function s(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")}function a(e,t){s(e,t)||(e.className+=" "+t)}function l(e){m.bottom=(window.innerHeight||document.documentElement.clientHeight)+e,m.right=(window.innerWidth||document.documentElement.clientWidth)+e}function c(e,t,i){e.attachEvent?e.attachEvent&&e.attachEvent("on"+t,i):e.addEventListener(t,i,{capture:!1,passive:!0})}function u(e,t,i){e.detachEvent?e.detachEvent&&e.detachEvent("on"+t,i):e.removeEventListener(t,i,{capture:!1,passive:!0})}function h(e,t){if(e&&t)for(var i=e.length,n=0;n<i&&!1!==t(e[n],n);n++);}function d(e,t,i){var n=0;return function(){var r=+new Date;r-n<t||(n=r,e.apply(i,arguments))}}var p,m,f,_;return function(i){if(!document.querySelectorAll){var r=document.createStyleSheet();document.querySelectorAll=function(e,t,i,n,o){for(o=document.all,t=[],i=(e=e.replace(/\[for\b/gi,"[htmlFor").split(",")).length;i--;){for(r.addRule(e[i],"k:v"),n=o.length;n--;)o[n].currentStyle.k&&t.push(o[n]);r.removeRule(0)}return t}}var o=this,s=o._util={};s.elements=[],s.destroyed=!0,o.options=i||{},o.options.error=o.options.error||!1,o.options.offset=o.options.offset||100,o.options.root=o.options.root||document,o.options.success=o.options.success||!1,o.options.selector=o.options.selector||".b-lazy",o.options.separator=o.options.separator||"|",o.options.containerClass=o.options.container,o.options.container=!!o.options.containerClass&&document.querySelectorAll(o.options.containerClass),o.options.errorClass=o.options.errorClass||"b-error",o.options.breakpoints=o.options.breakpoints||!1,o.options.loadInvisible=o.options.loadInvisible||!1,o.options.successClass=o.options.successClass||"b-loaded",o.options.validateDelay=o.options.validateDelay||25,o.options.saveViewportOffsetDelay=o.options.saveViewportOffsetDelay||50,o.options.srcset=o.options.srcset||"data-srcset",o.options.src=p=o.options.src||"data-src",_=Element.prototype.closest,f=1<window.devicePixelRatio,(m={}).top=0-o.options.offset,m.left=0-o.options.offset,o.revalidate=function(){e(this)},o.load=function(e,t){var i=this.options;void 0===e.length?n(e,t,i):h(e,(function(e){n(e,t,i)}))},o.destroy=function(){var e=this._util;this.options.container&&h(this.options.container,(function(t){u(t,"scroll",e.validateT)})),u(window,"scroll",e.validateT),u(window,"resize",e.validateT),u(window,"resize",e.saveViewportOffsetT),e.count=0,e.elements.length=0,e.destroyed=!0},s.validateT=d((function(){t(o)}),o.options.validateDelay,o),s.saveViewportOffsetT=d((function(){l(o.options.offset)}),o.options.saveViewportOffsetDelay,o),l(o.options.offset),h(o.options.breakpoints,(function(e){if(e.width>=window.screen.width)return p=e.src,!1})),setTimeout((function(){e(o)}))}}));const SelectToDropdown=function(e){return this.params=e,this.init=()=>{const{direction:e="down",selector:t,generateDropdownCallback:i,clickDropdownCallback:n,afterClickDropdownCallback:r,disableMobileView:o}=this.params;this.selects=document.querySelectorAll(t),this.direction=e,this.generateDropdownCallback=i,this.clickDropdownCallback=n,this.afterClickDropdownCallback=r,this.disableMobileView=o,this.selects.length&&(this.generateDropdown(),document.addEventListener("click",this.closeDropdown))},this.transformOptionListByDirection=e=>"top"===this.direction?e.reverse().join(""):e.join(""),this.generateDropdown=()=>
5{this.selects.forEach((e=>{e.selectedIndex<0&&(e.selectedIndex=0);const t=[...e.querySelectorAll("option")].map(((e,t)=>`\n <li class="f-dropdown-li${e.hasAttribute("class")?` ${e.getAttribute("class")}`:""}${e.disabled?" --disabled":""}">\n <a class="f-dropdown-item${e.selected?" --selected":""}" href="#${e.getAttribute("value")}" data-index="${t}" data-value="${e.getAttribute("value")}" ${[...e.attributes].filter((e=>e.name.startsWith("data-"))).map((e=>`${e.name}="${e.value}"`)).join(" ")}>${e.innerHTML}</a>\n </li>\n `)),i=`<div class="f-dropdown f-group ${e.getAttribute("class")} ${this.disableMobileView?"--disable-mobile-view":""}" data-direction="${this.direction}">\n <button type="button" class="f-control f-dropdown-toggle${e.disabled?" --disabled":""}${e.hasAttribute("readonly")?" --readonly":""}" data-indexcurrent="${e.options[e.selectedIndex].index}">\n ${e.hasAttribute("data-label")?`<strong class="f-dropdown-label">${e.getAttribute("data-label")}</strong>`:""}\n <span class="f-dropdown-button">${e.options[e.selectedIndex].text}</span>\n </button>\n <ul class="f-dropdown-menu">\n ${this.transformOptionListByDirection(t)}\n </ul>\n </div>`,n=document.createElement("div");n.innerHTML=i;const r=n.firstChild;e.insertAdjacentElement("afterend",r),r.insertBefore(e,r.firstChild),Object.values(e.classList).forEach((t=>e.classList.replace(t,`${t}-select`))),this.openDropdown(r),this.clickDropdown(r),this.disableMobileView||this.mobileView(r),this.generateDropdownCallback&&this.generateDropdownCallback(r)}))},this.mobileView=e=>{e.querySelector("select").addEventListener("change",(function(){const t=this.selectedIndex;e.querySelectorAll(".f-dropdown-li").forEach((e=>{parseInt(e.querySelector(".f-dropdown-item").getAttribute("data-index"),10)===t&&e.click()}))}))},this.openDropdown=e=>{e.querySelector("button.f-dropdown-toggle").addEventListener("click",(function(e){if(e.preventDefault(),this.classList.contains("--disabled"))return!1;this.parentNode.classList.toggle("--open")}))},this.closeDropdown=e=>{document.querySelectorAll(".f-dropdown").forEach((t=>!!t.classList.contains("--open")&&((!e||"click"!==e.type||t===e||!t.contains(e.target))&&void t.classList.remove("--open"))))},this.clickDropdown=e=>{if(this.clickDropdownCallback)this.clickDropdownCallback(e);else{const t=this.afterClickDropdownCallback;e.querySelectorAll(".f-dropdown-li").forEach((i=>{i.addEventListener("click",(function(i){i.preventDefault();const n=this.querySelector(".f-dropdown-item"),r=e.querySelectorAll(".f-dropdown-item"),o=n.getAttribute("data-index"),s=n.innerHTML,a=e.querySelector("select"),l=e.querySelector("button.f-dropdown-toggle"),c=l.querySelector(".f-dropdown-button"),u=e.querySelector(".f-dropdown-item.--selected");r.forEach((e=>e.classList.remove("--selected","--prev"))),u.classList.add("--prev"),n.classList.add("--selected"),a.selectedIndex=o,c.innerHTML=s,l.setAttribute("data-indexcurrent",n.getAttribute("data-index")),e.classList.remove("--open"),t&&t(this)}))}))}},this.destroy=()=>{this.selects.forEach((e=>{const t=e.closest(".f-dropdown");t&&(t.insertAdjacentElement("afterend",e),t.remove(),e.classList.forEach((t=>e.classList.replace(t,t.slice(0,-7)))))}))},this.reInit=()=>{this.destroy(),this.init()},this.init()};function FixedElement(e="element",t="--fixed",i="spacerClass",n="top",r=()=>{}){const o=this;let s=!1;const a=document.querySelector(e),l={elH:a.getBoundingClientRect().height,elOffset:a.getBoundingClientRect().top+a.ownerDocument.defaultView.pageYOffset};this.revalidate=()=>{l.elH=a.getBoundingClientRect().height;const e=document.querySelector(`.${i}`);l.elOffset=e?e.getBoundingClientRect().top+e.ownerDocument.defaultView.pageYOffset:a.getBoundingClientRect().top+a.ownerDocument.defaultView.pageYOffset,s=!0},this.modifyElement=()=>{("top"===n?window.scrollY>l.elOffset:"bottom"===n?window.scrollY-l.elH+window.screen.height<l.elOffset:void 0)?!a.classList.contains(t)&&(a.classList.add(t),(e=>{let t=document.createElement("div");t.className=i,t.style.paddingTop=`${e}px`,a.after(t)})(l.elH),r(!0)):a.classList.contains(t)&&(a.classList.remove(t),(()=>{const e=document.querySelector(`.${i}`);e&&e.parentNode.removeChild(e)})(),r(!1))},this.init=()=>{if(null===a)return!1;window.addEventListener("scroll",(()=>{s=!0})),scroll=setInterval((function(){s&&(s=!1,o.modifyElement())}),30),o.modifyElement()},this.clear=()=>{clearInterval(scroll)}}app_shop.fn.changeLiteral=(e,t,i)=>{const n=e%10,r=e%100,o=[];return!0!==i&&o.push(e),1===e&&t[1]?o.push(t[1]):(0===e||n>=0&&n<=1||n>=5&&n<=9||r>10&&r<20)&&t[0]?o.push(t[0]):(r<10||r>20)&&n>=2&&n<=4&&t[2]&&o.push(t[2]),o.join(" ")},Modal=function(e){const t=this;if(this.params=e||{},this.viewportElement=document.querySelector('head meta[name="viewport"]'),this.viewportContentCopy=app_shop.vars?.meta?.viewportContent,this.txt={"Zamknij modal":"Close modal"},this.changeViewport=()=>{const{viewportContent:e}=this.params;if(!this.viewportElement&&!this.changeViewportFlag)return;const t="string"==typeof e&&e||"user-scalable=no, initial-scale=1, maximum-scale=1, width=device-width, viewport-fit=cover";this.viewportElement.setAttribute("content",t)},this.restoreViewport=()=>{(this.viewportElement||this.changeViewportFlag)&&this.viewportContentCopy&&this.viewportElement.setAttribute("content",this.viewportContentCopy)},this.closeModal=()=>{const e=document.getElementById("modal");this.beforeClose&&this.beforeClose(e);const t=document.getElementById("modal_placeholder");if(t){const i=e.querySelector(".modal__content > *");t.insertAdjacentElement("afterend",i),t.parentNode.removeChild(t)}e.parentNode.removeChild(e),document.documentElement.classList.remove("--modal"),document.removeEventListener("click",this.events.eventDelegation,!0),document.removeEventListener("keydown",this.events.escClick),this.enableTabIndexes&&document.removeEventListener("keyup",this.events.tabFocusClick),this.afterClose&&this.afterClose(e,this),this.changeViewportFlag&&this.restoreViewport()},this.createElement=e=>{const{element:t,classes:i,id:n,href:r,attributes:o}=e,s=document.createElement(t);return void 0!==i&&(s.className=i),void 0!==n&&(s.id=n),void 0!==r&&(s.href=r),void 0!==o&&Array.isArray(o)&&o.forEach((({name:e,value:t})=>{s.setAttribute(e,t)})),s},this.injectionElement=(e,t)=>
5{if(this.element||this.html)if(this.html)e.innerHTML=this.html;else if(this.element&&(!("function"==typeof jQuery&&this.element instanceof jQuery)||this.element.length)){if("function"==typeof jQuery&&this.element instanceof jQuery)return document.body.contains(this.element[0])&&this.element[0].insertAdjacentElement("afterend",t),void e.appendChild(this.element[0]);document.body.contains(this.element)&&this.element.insertAdjacentElement("afterend",t),e.appendChild(this.element)}},this.createModal=()=>{document.getElementById("modal")&&this.closeModal();const e=this.createElement({element:"div",classes:this.classList?`modal ${this.classList}`:"modal",id:"modal",attributes:[{name:"role",value:"dialog"}]}),t=this.createElement({element:"div",classes:"modal__wrapper"}),i=this.createElement({element:"div",id:"modal_placeholder"}),n=this.createElement({element:"a",classes:"modal__close",href:"#modalClose",attributes:[{name:"aria-label",value:this.txt["Zamknij modal"]}]}),r=this.createElement({element:"div",classes:"modal__content"});this.injectionElement(r,i),t.appendChild(n),t.appendChild(r),e.appendChild(t),document.documentElement.classList.add("--modal"),this.initEvents(),this.changeViewportFlag&&this.restoreViewport(),this.changeViewportFlag&&this.changeViewport(),this.beforeShow&&this.beforeShow(e,this),document.body.appendChild(e),this.classList&&this.classList.includes("--absolute")&&window.scrollTo(0,0),app_shop?.vars?.bLazy?.revalidate(),this.afterShow&&this.afterShow(e,this),this.enableTabIndexes&&(this.assignTabIndexes(),this.setFocusOnFirstElement&&this.focusFirstElement())},this.assignTabIndexes=()=>{const e=document.querySelector('#modal[role="dialog"]');if(!e)return;let t=1;const i=e=>{e.matches(this.allowedElementsForTabIndex)&&e.setAttribute("tabindex",t++),[...e.children].forEach((e=>{i(e)}))};i(e)},this.focusFirstElement=(e=!1)=>{const t=document.querySelector('#modal[role="dialog"]');t&&(e?t.querySelector("[tabindex]")?.focus?.():t.querySelector("[tabindex]:not(.modal__close)")?.focus?.())},this.getFocusableElements=()=>{const e=document.querySelector('#modal[role="dialog"]');return e?[...e.querySelectorAll("[tabindex]")]:[]},this.restoreModalFocus=(e=()=>{},i=!1)=>{const n=t.getFocusableElements(),r=document.activeElement;n.includes(r)||(e(),t.focusFirstElement(i))},this.events={eventDelegation:e=>{const i=document.getElementById("modal"),n=!(!document.getElementById("topLayerBackDrop")||"none"===document.getElementById("topLayerBackDrop").style.display),r=!(!document.querySelector(".iai_cookie")||document.querySelector(".iai_cookie").classList.contains("d-none"));for(const t of this.notCloseSelectors)if(e.target.closest(t))return!1;const o=document.activeElement.closest(".cop_pickup_map__wrapper");return(!i||i.querySelector(".modal__wrapper").contains(e.target)||n||r||"INPUT"===document.activeElement.tagName||o)&&!e.target.closest(".modal__close")||(e.preventDefault(),t.closeModal()),!1},escClick:e=>{"Escape"===e.key&&t.closeModal()},onFocus:e=>{t.restoreModalFocus((()=>{e.preventDefault()}))},tabFocusClick:e=>{const{key:i}=e,n="Tab"===i,r="ArrowLeft"===i,o="ArrowRight"===i;if(t.enableTabIndexes&&(n||r||o)){const i=t.getFocusableElements(),n=document.activeElement;t.restoreModalFocus((()=>{e.preventDefault()}),!0),(r||o)&&i.forEach(((e,t,i)=>{if(e===n){if(r){const e=t>=1?t-1:i.length-1;i[e]?.focus?.()}if(o){const e=t<=i.length-2?t+1:0;i[e]?.focus?.()}}}))}}},this.initEvents=()=>{document.removeEventListener("click",this.events.eventDelegation,!0),document.addEventListener("click",this.events.eventDelegation,!0),document.removeEventListener("keydown",this.events.escClick),document.addEventListener("keydown",this.events.escClick),this.enableTabIndexes&&(document.removeEventListener("keyup",this.events.tabFocusClick),document.addEventListener("keyup",this.events.tabFocusClick))},this.init=()=>{const{element:e,html:t,classList:i,beforeShow:n,afterShow:r,beforeClose:o,afterClose:s,notCloseSelectors:a,changeViewport:l,enableTabIndexes:c,setFocusOnFirstElement:u,allowedElementsForTabIndex:h}=this.params;this.element=e||!1,this.html=t||!1,this.beforeShow=n||!1,this.afterShow=r||!1,this.beforeClose=o||!1,this.afterClose=s||!1,this.classList=i||!1,this.notCloseSelectors=a||[],this.changeViewportFlag=l??!0,this.enableTabIndexes=c??!0,this.setFocusOnFirstElement=u??!1,this.allowedElementsForTabIndex=h??"a, button",this.createModal()},!this.params.notInit)return this.init()},app_shop.run((function(){document.querySelectorAll("form:not(.is-validated)").forEach((e=>{e.addEventListener("submit",(e=>{e.target.classList.add("--submitting"),e.target.addEventListener("submit",(e=>(e.preventDefault(),!1)))}))}))}),"all","form"),app_shop.run((function(){document.querySelectorAll("[data-change-literal-days]").forEach((e=>{const t=+e.getAttribute("data-change-literal-days");e.textContent=app_shop.fn.changeLiteral(t,["days","day","days"],!1)}))}),"all","[data-change-literal-days]",!0),app_shop.run((function(){document.querySelectorAll("[data-change-literal-days-up-to]").forEach((e=>{const t=+e.getAttribute("data-change-literal-days-up-to");e.textContent=app_shop.fn.changeLiteral(t,["days","day","days"],!1)}))}),"all","[data-change-literal-days-up-to]",!0),app_shop.run((function(){document.addEventListener("click",(e=>{const{target:t}=e;if(t.closest(".l_welcome__element.--logout")||t.closest(".logout_link"))for(let e=0;e<sessionStorage.length;){const t=sessionStorage.key(e);t.startsWith("expchck")?sessionStorage.removeItem(t):e+=1}}))}),"all",".l_welcome__element.--logout, .logout_link"),RegionForced=function(e){this.params=e||{},this.txt={label:"Your selected country of delivery is ",labelZipcode:"Your selected delivery region is ",currency:"Prices displayed in currency: ",timeAndCosts:"Delivery times and costs displayed for the country: ",timeAndCostsZipcode:"Delivery times and costs displayed for the region: ",andRegion:" and region: ",continue:"Continue",restoreDefault:"Restore default delivery country: ",restoreDefaultZipcode:"Restore default delivery region: "},this.events={unsetRegion:e=>(e.preventDefault(),this.unsetTemporaryRegion(),!1),unsetZipcode:e=>(e.preventDefault(),this.unsetTemporaryZipcode(),!1),unsetRegionAndZipcode:e=>(e.preventDefault(),this.unsetTemporaryRegionAndZipcode(),!1),continue:e=>(e.preventDefault(),this.modifyCookie(),this.modal.closeModal(),!1)},this.queries={unsetRegion:()=>JSON.stringify({query:"mutation {\n unsetTemporaryRegion {\n status\n error {\n code\n message\n }\n }\n }"}),unsetZipcode:()=>JSON.stringify({query:"mutation {\n unsetTemporaryZipcode {\n status\n error {\n code\n message\n }\n }\n }"}),unsetRegionAndZipcode:()=>JSON.stringify({query:"mutation {\n unsetTemporaryRegion {\n status\n error {\n code\n message\n }\n }\n unsetTemporaryZipcode {\n status\n error {\n code\n message\n }\n }\n }"})},this.fetchData=async(e={})=>{const{data:t,link:i,linkParameter:n=""}=e;if(!t)return!1;try{const e=await fetch(`${i||app_shop.urls.graphql||"/graphql/v1"}${n}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:t});return await e.json()}catch(e){return!1}},this.unsetTemporaryRegion=async()=>{const e=document.querySelector(".modal");e&&e.classList.add("--loading");const t=await this.fetchData({data:this.queries.unsetRegion(),linkParameter:"?mutation=unsetRegion"}),{status:i}=t?.data?.unsetTemporaryRegion;e&&e.classList.add("--remove"),"success"===i&&(document.cookie="setRegion
5Forced=; path=/; Max-Age=-99999999;",window.location.reload())},this.unsetTemporaryZipcode=async()=>{const e=document.querySelector(".modal");e&&e.classList.add("--loading");const t=await this.fetchData({data:this.queries.unsetZipcode(),linkParameter:"?mutation=unsetZipcode"}),{status:i}=t?.data?.unsetTemporaryZipcode;e&&e.classList.add("--remove"),"success"===i&&(document.cookie="setZipcodeForced=; path=/; Max-Age=-99999999;",window.location.reload())},this.unsetTemporaryRegionAndZipcode=async()=>{const e=document.querySelector(".modal");e&&e.classList.add("--loading");const t=await this.fetchData({data:this.queries.unsetRegionAndZipcode(),linkParameter:"?mutation=unsetRegionAndZipcode"}),{status:i}=t?.data?.unsetTemporaryRegion;e&&e.classList.add("--remove"),"success"===i&&(document.cookie="setRegionForced=; path=/; Max-Age=-99999999;",document.cookie="setZipcodeForced=; path=/; Max-Age=-99999999;",window.location.reload())},this.getCookieByName=e=>{const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length&&t.pop().split(";").shift()},this.create=({currentCountry:e,defaultCountry:t,currentZipcode:i,defaultZipcode:n})=>{const r=!e&&i,o=!r&&i,s=document.createElement("div");s.classList.add("region_forced"),s.innerHTML=`<div class="region_forced__label">
5\n <span class="region_forced__label_text">${r?this.txt.labelZipcode:this.txt.label}</span>\n <strong class="region_forced__label_value">${r?i:e}</strong>\n </div>\n <div class="region_forced__body">\n <div class="region_forced__item --currency">\n <span classs="region_forced__item_text">${this.txt.currency}</span>\n <strong class="region_forced__item_value">${app_shop?.vars?.currency?.id}</strong>\n </div>\n <div class="region_forced__item --delivery">\n <span classs="region_forced__item_text">${r?this.txt.timeAndCostsZipcode:this.txt.timeAndCosts}</span>\n <strong class="region_forced__item_value">${r?i:e}</strong>\n ${o?`<span class="region_forced__and_region">${this.txt.andRegion}<strong>${i}</strong></span>`:""}\n </div>\n </div>\n <div class="region_forced__buttons">\n <button class="region_forced__continue btn --solid --large" type="button">${this.txt.continue}</button>\n <a href="#unsetTemporaryRegion" class="region_forced__unset">${r?this.txt.restoreDefaultZipcode:this.txt.restoreDefault}<strong>${r?n:t}</strong></a>\n </div>`,this.modal=new Modal({element:s,classList:"--region-forced"});let a="region";r&&(a="zipcode"),o&&(a="regionAndZipcode"),this.initEvents({type:a})},this.modifyCookie=()=>{const e=this.getCookieByName("setRegionForced"),t=this.getCookieByName("setZipcodeForced"),i=JSON.parse(e),n=JSON.parse(t);i&&(i.showModal=!1,document.cookie=`setRegionForced=${JSON.stringify(i)}; path=/;`),n&&(n.showModal=!1,document.cookie=`setZipcodeForced=${JSON.stringify(n)}; path=/;`)},this.initEvents=({type:e})=>{const t=document.querySelector(".region_forced__unset");t&&("region"===e&&t.addEventListener("click",this.events.unsetRegion),"zipcode"===e&&t.addEventListener("click",this.events.unsetZipcode),"regionAndZipcode"===e&&t.addEventListener("click",this.events.unsetRegionAndZipcode));const i=document.querySelector(".region_forced__continue");i&&i.addEventListener("click",this.events.continue)},this.init=()=>{const e=this.getCookieByName("setRegionForced"),t=this.getCookieByName("setZipcodeForced");if(!e&&!t)return;const i=JSON.parse(e),n=JSON.parse(t),{currentCountry:r,defaultCountry:o,showModal:s}=i||{},{currentZipcode:a,defaultZipcode:l,showModal:c}=n||{};(s||c)&&this.create({currentCountry:r,defaultCountry:o,currentZipcode:a,defaultZipcode:l})}},app_shop.fn.regionForced=new RegionForced,app_shop.run((function(){app_shop.fn.regionForced.init()}),"all","#container:not(.place-order_page):not(.prepaid_page)"),app_shop.txt||(app_shop.txt={}),app_shop.txt.errorCode||(app_shop.txt.errorCode={}),app_shop.txt.errorCode.birth_date="Enter your birth date in the YYYY-MM-DD format",app_shop.txt.errorCode.illegal_characters_client_city="One of the characters is invalid.",app_shop.txt.errorCode.illegal_characters_client_firm="One of the characters is invalid.",app_shop.txt.errorCode.illegal_characters_client_firstname="One of the characters is invalid.",app_shop.txt.errorCode.illegal_characters_client_lastname="One of the characters is invalid.",app_shop.txt.errorCode.illegal_characters_client_nip="One of the characters is invalid.",app_shop.txt.errorCode.illegal_characters_client_phone="One of the characters is invalid.",app_shop.txt.errorCode.illegal_characters_client_phone2="One of the characters is invalid.",app_shop.txt.errorCode.illegal_characters_client_street="One of the characters is invalid.",app_shop.txt.errorCode.illegal_characters_delivery_additional="One of the characters is invalid.",app_shop.txt.errorCode.illegal_characters_delivery_city="One of the characters is invalid.",app_shop.txt.errorCode.illegal_characters_delivery_firstname="One of the characters is invalid.",app_shop.txt.errorCode.illegal_characters_delivery_lastname="One of the characters is invalid.",app_shop.txt.errorCode.illegal_characters_delivery_phone="One of the characters is invalid.",app_shop.txt.errorCode.illegal_characters_delivery_street="One of the characters is invalid.",app_shop.txt.errorCode.incorect_delivery_region="Select a recipient\'s country.",app_shop.txt.errorCode.incorect_delivery_zipcode="Enter a recipient\'s postal code.",app_shop.txt.errorCode.incorect_email="Incorrectly typed e-mail address. Enter the full e-mail address, e.g. [email protected]",app_shop.txt.errorCode.incorect_invoice_phone="Enter the customer\'s phone.",app_shop.txt.errorCode.incorect_invoice_zipcode="Enter the customer\'s postal code.",app_shop.txt.errorCode.incorect_login="Incorrect login. Login must have a minimum of 3, and a maximum of 40 characters. You can use letters, numbers and symbols @ . - _.",app_shop.txt.errorCode.incorect_nip="Incorrectly typed VAT Number.",app_shop.txt.errorCode.incorect_phone="Enter your phone number.",app_shop.txt.errorCode.incorect_shops="Select a shop from the list.",app_shop.txt.errorCode.incorect_zipcode="Incorrectly typed postal code.",app_shop.txt.errorCode.incorrect_region="Incorrectly selected area.",app_shop.txt.errorCode.invalid_format="Invalid format.",app_shop.txt.errorCode.login_equals_password="Password is the same as login. Enter another password.",app_shop.txt.errorCode.login_taken="The given login is already taken.",app_shop.txt.errorCode.login_taken_login_propose="The given login is already taken.<br/><br/>Suggested login: ",app_shop.txt.errorCode.no_city="Enter the city name.",app_shop.txt.errorCode.no_delivery_city="Enter a recipient\'s city.",app_shop.txt.errorCode.no_delivery_firstname="Enter the name of a recipient.",app_shop.txt.errorCode.no_delivery_lastname="Enter the surname of a recipient.",app_shop.txt.errorCode.no_delivery_street="Enter recipient\'s street name and a property number.",app_shop.txt.errorCode.no_firmname="Incorrectly typed company name.",app_shop.txt.errorCode.no_firstname="Enter your name.",app_shop.txt.errorCode.no_invoice_city="Wpisz miasto klienta.",app_shop.txt.errorCode.no_invoice_firmname="Enter the customer\'s company name.",app_shop.txt.errorCode.no_invoice_firstname="Enter the customer\'s name.",app_shop.txt.errorCode.no_invoice_lastname="Enter the customer\'s name.",app_shop.txt.errorCode.no_invoice_street="Enter the street and house number of the customer.",app_shop.txt.errorCode.no_invoice_street_number="Enter the street and house number of the customer.",app_shop.txt.errorCode.no_login="Enter your login here.",app_shop.txt.errorCode.no_name="Enter your surname.",app_shop.txt.errorCode.no_password="Enter your password here.",app_shop.txt.errorCode.no_street="Enter street or city name.",app_shop.txt.errorCode.no_street_number="Enter the house no..",app_shop.txt.errorCode.no_street_number_u
5k="The property number is missing.",app_shop.txt.errorCode.not_equal_passwords="The passwords you entered are not the same. Please re-enter the password in both fields.",app_shop.txt.errorCode.password_to_long="The password is too long. Enter a shorter one (maximum length is.",app_shop.txt.errorCode.password_to_short="The entered password is too short. Enter a longer one (at least.",app_shop.txt.errorCode.used_login="The given login is already taken.",app_shop.txt.errorCode.incorrect_iban="Bank account number format is invalid",app_shop.txt.formValidation||(app_shop.txt.formValidation={}),app_shop.txt.formValidation.mandatoryField="Mandatory field.",app_shop.txt.formValidation.zipcodeFormat="Valid postal code formats for the indicated country are [X - numeric character, Y - alphabetic character]:",app_shop.txt.formValidation.characters="characters).",app_shop.txt.formValidation.minimalCharacters="The minimum number of characters for this field is ",app_shop.txt.formValidation.maximumCharacters="The maximum number of characters for this field is ";const omnibusDetailsTxt={"Najniższa cena produktu w okresie 30 dni przed wprowadzeniem obniżki":"Lowest price in 30 days before discount","Cena regularna":"Regular price","Cena bez kodu":"Price without code","Cena nadchodzÄ
ca od":"Upcoming price from",Promocja:"Special offer",Okazja:"Bargain","Kod rabatowy":"A discount code"};function Bars(){this.calculatePosition=(e,t)=>e.reduce(((e,i,n)=>n<t?e+i.offsetHeight:e),0),this.setPosition=()=>{const e=[...document.querySelectorAll(".bars_top .bars__item[data-fixed]")];e.forEach(((t,i)=>{t.style.setProperty("--position",this.calculatePosition(e,i))}));const t=[...document.querySelectorAll(".bars_bottom .bars__item[data-fixed]")].reverse();t.forEach(((e,i)=>{e.style.setProperty("--position",this.calculatePosition(t,i))}))},this.fixed=()=>{const e=document.querySelectorAll(".bars__item[data-fixed]");let t=0,i=0;e.forEach((e=>{const n=+getComputedStyle(e).getPropertyValue("--position"),r=e.getBoundingClientRect().top-n,o=e.getBoundingClientRect().bottom+n-window.innerHeight;r<0||o>=0?(e.style.setProperty("min-height",`${e.offsetHeight}px`),e.classList.add("--fixed"),e.closest(".bars_top")?t+=e.offsetHeight:i+=e.offsetHeight):(e.classList.remove("--fixed"),e.style.removeProperty("min-height"))}
5)),document.documentElement.style.setProperty("--top-fixed-bars-height",`${t}px`),document.documentElement.style.setProperty("--bottom-fixed-bars-height",`${i}px`)},this.closeBarClick=e=>{const{target:t}=e;if(t.closest(".bars__close")){e.preventDefault();const i=t.closest(".bars__item");i.parentNode.removeChild(i),this.saveClosing(i),this.reset()}},this.removeClosedBars=()=>{(JSON.parse(localStorage.getItem("closedBars"))||[]).forEach((e=>{const t=document.getElementById(e);t&&t.parentNode.removeChild(t)})),this.checkEmptyBars()},this.checkEmptyBars=()=>{const e=document.querySelector(".bars_top");0===e?.childNodes.length&&e.parentNode.removeChild(e);const t=document.querySelector(".bars_bottom");0===t?.childNodes.length&&t.parentNode.removeChild(t)},this.saveClosing=e=>{const{id:t}=e,i=JSON.parse(localStorage.getItem("closedBars"))||[];i.push(t),localStorage.setItem("closedBars",JSON.stringify(i))},this.setBarsHeight=()=>{if(document.documentElement.classList.contains("--scroll-down"))return!1;const e=document.querySelector(".bars_top")?.offsetHeight;return document.documentElement.style.setProperty("--bars-height",`${e}px`),!0},this.clearAll=()=>{document.querySelectorAll(".bars__item[data-fixed]").forEach((e=>{e.classList.remove("--fixed"),e.style.removeProperty("--position"),e.style.removeProperty("min-height")}))},this.destroy=()=>{document.removeEventListener("scroll",this.fixed),document.removeEventListener("click",this.closeBarClick),window.removeEventListener("resize",this.setBarsHeight),this.clearAll()},this.reset=()=>{this.destroy(),this.init()},this.init=()=>{this.removeClosedBars(),document.addEventListener("click",this.closeBarClick),app_shop.vars.view<3&&(this.setBarsHeight(),window.addEventListener("resize",this.setBarsHeight)),app_shop.vars.view>2&&(this.setPosition(),this.fixed(),document.addEventListener("scroll",this.fixed))}}app_shop.fn.getOmnibusDetails=e=>{const{productData:t,sizeId:i,priceType:n=app_shop.vars.priceType}=e||{};if(!t)return!1;const r=t.sizes.find((e=>e.id===i))||t;if(!r?.price)return!1;const o={add:[],remove:["--omnibus","--omnibus-short","--omnibus-code","--omnibus-code-short","--omnibus-new-price","--omnibus-higher"]},s={},a=r.price?.omnibusPriceDetails?.unit?.[n]?.formatted||r.price.omnibusPrice[n]?.formatted;if(!a)return{classes:o};o.add.push("--omnibus"),o.remove=o.remove.filter((e=>"--omnibus"!==e));const l=t?.unit?.sellBy,c=!(!r?.price?.unit?.[n]?.formatted||!r.price.max?.[n]?.value)&&format_price(parseFloat(r.price.max?.[n]?.value)*parseFloat(l),{mask:app_shop.vars.currency_format,currency:app_shop.vars?.currency?.symbol,currency_space:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value})||r.price.max?.[n]?.formatted;c&&c!==a||(o.add.push("--omnibus-short"),o.remove=o.remove.filter((e=>"--omnibus-short"!==e))),app_shop.vars.omnibus?.rebateCodeActivate&&r.price?.rebateCodeActive&&(o.add.push("--omnibus-code"),s.rebateCodeActive=`<span class="label --code --omnibus">${omnibusDetailsTxt?.["Kod rabatowy"]}</span>`,o.remove=o.remove.filter((e=>"--omnibus-code"!==e)));const u=r.price.beforeRebateDetails?.unit?.[n]?.formatted||r.price.beforeRebate[n]?.formatted;app_shop.vars.omnibus?.rebateCodeActivate&&u===a&&r.price?.rebateCodeActive&&(o.add.push("--omnibus-code-short"),o.remove=o.remove.filter((e=>"--omnibus-code-short"!==e)));const h=r.price.omnibusPriceDetails?.newPriceEffectiveUntil?.formatted;h&&(o.add.push("--omnibus-new-price"),o.remove=o.remove.filter((e=>"--omnibus-new-price"!==e)));const d=r.price.omnibusPriceDetails?.omnibusPriceIsHigherThanSellingPrice;d&&(o.add.push("--omnibus-higher"),o.remove=o.remove.filter((e=>"--omnibus-higher"!==e))),d&&!h||s?.rebateCodeActive||(s.bargain=`<span class="label --bargain --omnibus">${omnibusDetailsTxt?.Okazja}</span>`);let p="";d?p="-":0!==r.price.omnibusPriceDetails?.youSavePercent&&(p="+");const m=`${p}${r.price.omnibusPriceDetails?.youSavePercent}%`;0===Object.keys(s)?.length&&(s.bargain=`<span class="label --promo --omnibus"><img src="/gfx/custom/fire.svg" alt="Ikona ognia"/>-${r.price.youSavePercent}%</span>`);const f={price:a,visible:!0,percent:m,html:`<span class="omnibus_price__text">${omnibusDetailsTxt["Najniższa cena produktu w okresie 30 dni przed wprowadzeniem obniżki"]}: </span><del class="omnibus_price__value">${a}</del><span class="price_percent">${m}</span>`},_=c?{max:{price:c,visible:!0,percent:`-${r.price.youSavePercent}%`,html:`<span class="omnibus_label">${omnibusDetailsTxt["Cena regularna"]}: </span>\n <del>${c}</del><span class="price_percent">-${r.price.youSavePercent}%</span>`}}:{},g=u?{beforeRebate:{price:u,visible:!!o.add.includes("--omnibus-code"),percent:`-${r.price.beforeRebateDetails?.youSavePercent}%`,html:`<span class="omnibus_label">${omnibusDetailsTxt["Cena bez kodu"]}: </span>\n <del>${u}</del>
5\n <span class="price_percent">-${r.price.beforeRebateDetails?.youSavePercent}%</span>`}}:{},y=h?{newPriceEffectiveUntil:{date:h,price:c,visible:!!o.add.includes("--omnibus-new-price"),html:`<span class="omnibus_label">${omnibusDetailsTxt["Cena nadchodzÄ
ca od"]} </span>\n <span class="new_price__date">${h}: </span>\n <span class="new_price__value">${c}</span>`}}:{};return{classes:o,omnibus:f,..._,...g,...y,...{omnibusLabel:{name:Object.keys(s)?.[0]||"",html:s[Object.keys(s)?.[0]]}}}},app_shop.run((()=>{let e=!1;const t={"Przejdź do zawartoÅci strony":"Skip to page content","Przejdź do wyszukiwarki":"Go to search"},i=`<div class="buttons tabfocus__buttons">\n <button class="btn --outline --medium" id="tabFocusModalMainContent">${t["Przejdź do zawartoÅci strony"]}</button>\n <button class="btn --outline --medium" id="tabFocusModalSearch">${t["Przejdź do wyszukiwarki"]}</button>\n </div>`,n=t=>{e=void 0!==t?t:!e},r=(e,t)=>{n(!0),e.querySelector("#tabFocusModalMainContent")?.addEventListener("click",(e=>{t.closeModal(),setTimeout((()=>{[...document.querySelectorAll("#layout [tabindex]")].find((e=>e.checkVisibility()))?.focus?.(),n(!1)}),100)})),e.querySelector("#tabFocusModalSearch")?.addEventListener("click",(()=>{t.closeModal(),setTimeout((()=>{document.querySelector(".menu_search__input")?.focus?.(),n(!1)}),100)}))};let o=0;document.addEventListener("keyup",(t=>{app_shop.vars.view<3||document.documentElement.classList.contains("touch")||"Tab"===t.key&&!1===e&&o++<1&&new Modal({classList:"--tab-focus",html:i,afterShow:r,setFocusOnFirstElement:!0})}))}),"all",".main_page"),app_shop.run((function(){app_shop.fn.bars=new Bars,app_shop.fn.bars.init()}),"all","html:not(.order_process)"),app_shop.run((function(){app_shop.fn.bars.reset()}),[1,2,3,4],"html:not(.order_process)"),app_shop.run((()=>{const e=document.getElementById("rabateCode");if(!e)return void document.documentElement.classList.remove("--rabateCode");if(app_shop.fn.cookie.get("rabateCode_clicked"))return e.remove(),void document.documentElement.classList.remove("--rabateCode");document.documentElement.classList.add("--rabateCode");const t=document.querySelector("#rabateCode .rabateCode__close");t&&t.addEventListener("click",(t=>{t.preventDefault(),app_shop.fn.cookie.set("rabateCode_clicked",!0,1),e.remove(),document.documentElement.classList.remove("--rabateCode")}))}),"all",".--rabateCode"),app_shop.run((function(){app_shop.fn.searchResults=new SearchResults({resultsLimit:6,inputLengthToStartSearching:2})}),"all","#menu_search");const searchTxt={categories:"Categories",cms:"Info",beforeProducer:"Producer: ",beforeSeries:"Series: ",separator:" / ",buttonAllText:"Show all",telPrice:"Price on phone demand"};SearchResults=function(e){const t=this;return this.params=e||{},this.vars={typingTimer:"",doneTypingInterval:500,searchResultQuery:"/graphql/v1/"},this.fetchData=async()=>{const e=this.searchInput.value;if(e.length<this.inputLengthToStartSearching)return!1;if(sessionStorage.getItem(`search_${e}`))return JSON.parse(sessionStorage.getItem(`search_${e}`));const t=JSON.stringify({query:`query {\n productsTextSearch(searchInput: {\n text: "${e}",\n limit: ${this.resultsLimit}\n }) {\n products {\n name, link, iconSmall, iconSmallSecond,\n price {\n price {\n gross {\n value\n formatted\n }\n net {\n value\n formatted\n }\n }\n }\n }\n series {\n name, link\n }\n producers {\n name, link\n }\n menuNodes {\n name, link\n }\n cms {\n name, link\n }\n searchQueries {\n name, link\n }\n }\n }`});try{const i=await fetch(this.vars.searchResultQuery,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:t}),n=(await i.json()).data.productsTextSearch;return sessionStorage.setItem(`search_${e}`,JSON.stringify(n)),n}catch(e){return!1}},this.openResults=()=>{this.searchInput.closest("form").classList.add("--open"),this.resultsWrapper.scrollTop=0,document.documentElement.classList.add("--results-open"),document.querySelector("#container.main_page")&&document.documentElement.classList.add("--results-main-open")},this.closeResults=()=>{this.searchInput.closest("form").classList.remove("--open"),document.documentElement.classList.remove("--results-open"),document.querySelector("#container.main_page")&&document.documentElement.classList.remove("--results-main-open")},this.buildResult=async()=>{this.searchInput.closest("form").classList.add("--loading");const e=await this.fetchData();if(this.searchInput.closest("form").classList.remove("--loading"),this.resultsWrapper.innerHTML="",e){if(!Object.values(e).filter((e=>e?e.length:"")).length)return this.closeResults(),!1;if(this.openResults(),e.searchQueries&&e.searchQueries.length){const t=this.searchInput.value,i=new RegExp(t,"i");this.resultsWrapper.innerHTML+=`\n <div class="search_result__block --queries">\n ${e.searchQueries.map((e=>`<a class="search_result__item --query" href="${e.link}">${e.name.replace(i,"<b>$&</b>")}</a>`)).join("")}\n </div>\n `}Object.keys(e).filter((e=>"searchQueries"!==e)).some((t=>e[t]?e[t].length:""))&&(this.resultsWrapper.innerHTML+='<div class="search_result__block --others"></div>',e.products&&e.products.length&&(this.resultsWrapper.querySelector(".search_result__block.--others").innerHTML+=`\n <div class="search_result__sub --products">\n ${e.products.map((e=>`\n <a class="search_result__item --product" href="${e.link}">
5\n <span class="search_result__icon">${void 0!==e.iconSmallSecond?`<picture>\n <source type="image/webp" srcset="${e.iconSmall}"/>\n <img src="${e.iconSmallSecond}" alt="${e.name}">\n </picture>`:`<img src="${e.iconSmall}" alt="${e.name}" />`}</span>\n <span class="search_result__name_wrapper">\n <span class="search_result__name">${e.name}</span>\n <span class="search_result__price">${t.netPrice?0!==e.price.price.net.value?e.price.price.net.formatted:searchTxt.telPrice:0!==e.price.price.gross.value?e.price.price.gross.formatted:searchTxt.telPrice}</span>\n </span>\n </a>\n `)).join("")}\n <button type="submit" class="search_result__item --button-all${t.buttonAllClass}">${searchTxt.buttonAllText}</button>\n </div>\n `),(e.producers&&e.producers.length||e.series&&e.series.length||e.menuNodes&&e.menuNodes.length)&&(this.resultsWrapper.querySelector(".search_result__block.--others").innerHTML+=`\n <div class="search_result__sub --categories">\n <strong class="search_result__label">${searchTxt.categories}</strong>\n <div class="search_result__items">\n ${e.producers?e.producers.map((e=>`\n <a class="search_result__item --producer" href="${e.link}">\n <span class="search_result__name_label">${searchTxt.beforeProducer}</span><span class="search_result__name">${e.name}</span>\n </a>\n `)).join(""):""}\n\n ${e.series?e.series.map((e=>`\n <a class="search_result__item --series" href="${e.link}">\n <span class="search_result__name_label">${searchTxt.beforeSeries}</span><span class="search_result__name">${e.name}</span>\n </a>\n `)).join(""):""}\n\n ${e.menuNodes?e.menuNodes.map((e=>`\n <a class="search_result__item --menu" href="${e.link}">\n <span class="search_result__name">${e.bc?e.bc.item.map((e=>e.title)).join(searchTxt.separator):e.name}</span>\n </a>\n `)).join(""):""}\n </div>\n </div>\n `),e.cms&&e.cms.length&&(this.resultsWrapper.querySelector(".search_result__block.--others").innerHTML+=`\n <div class="search_result__sub --cms">\n <strong class="search_result__label">${searchTxt.cms}</strong>\n <div class="search_result__items">\n ${e.cms.map((e=>`\n <a class="search_result__item --cms" href="${e.link}">\n <span class="search_result__name">${e.name}</span>\n </a>\n `)).join("")}\n </div>\n </div>\n `))}else this.closeResults();return this.afterBuildResult&&this.afterBuildResult(e),!0},this.updateSearchInput=()=>{const e=t.resultsWrapper.querySelector(".search_result__item.--active .search_result__name")?t.resultsWrapper.querySelector(".search_result__item.--active .search_result__name").textContent:t.resultsWrapper.querySelector(".search_result__item.--active").textContent;t.searchInput.value=e},this.updateFocusElement=e=>{this.resultsWrapper.querySelectorAll(".search_result__item").forEach((e=>e.classList.remove("--active"))),"null"!=typeof e&&e.classList.add("--active"),"null"!=typeof e&&e.focus(),this.updateSearchInput()},this.initEvents=()=>{const e=document.getElementById("menu_search");e&&e.addEventListener("submit",(function(){const e=t.searchInput.getAttribute("data-value");e&&(t.searchInput.value=e)})),this.searchInput.addEventListener("keyup",(function(e){const i=e.which||e.keyCode||0;37!==i&&38!==i&&39!==i&&40!==i&&(t.searchInput.setAttribute("data-value",this.value),clearTimeout(t.vars.typingTimer),t.vars.typingTimer=setTimeout(t.buildResult,t.vars.doneTypingInterval),document.querySelector("html._mobile:not(.sidebar_open):not(.--search-open) .main_page")&&window.scrollTo(0,0))}
5)),this.searchInput.addEventListener("keydown",(function(e){const i=e.which||e.keyCode||0;return 37===i||38===i||39===i||40===i||(t.searchInput.setAttribute("data-value",this.value),clearTimeout(t.vars.typingTimer),t.searchInput.closest("form").classList.add("--focus"),!document.querySelector(".--search-open")||13!==i)||(e.preventDefault(),this.closest("form").submit(),!1)})),this.searchInput.addEventListener("focus",(function(){window.screen.width<768&&!document.documentElement.classList.contains("--search-open")&&!document.documentElement.classList.contains("sidebar_open")&&(document.documentElement.classList.add("--search-open"),$(".main_slider").slick("slickSetOption","autoplay",!1,!0),document.documentElement.scrollIntoView()),this.closest("form").classList.add("--focus")})),document.addEventListener("scroll",(function(e){window.scrollY>0?document.documentElement.classList.add("--scroll-down"):$("html").hasClass("sidebar_open")||$("html").hasClass("filters_open")||document.documentElement.classList.remove("--scroll-down")})),document.querySelector(".search_result, .search_result__block").addEventListener("scroll",(function(){app_shop.vars.view<3&&document.activeElement.blur()})),document.addEventListener("keydown",(function(e){if(t.searchInput.closest("form.--open.--focus")){const i=e.which||e.keyCode||0;if(37===i||38===i||39===i||40===i){e.preventDefault();const n=[...t.resultsWrapper.querySelectorAll(".search_result__item"),t.resultsWrapper.querySelector(".search_result__button_all")],r=t.resultsWrapper.querySelector(".search_result__item.--query"),o=t.resultsWrapper.querySelector(".search_result__block.--others .search_result__item");switch(i){case 40:{const e=n.indexOf(t.resultsWrapper.querySelector(".search_result__item.--active"));e>-1&&n[e+1]?t.updateFocusElement(n[e+1]):t.updateFocusElement(n[0]);break}case 38:{const e=n.indexOf(t.resultsWrapper.querySelector(".search_result__item.--active"));e>-1&&n[e-1]?t.updateFocusElement(n[e-1]):t.updateFocusElement(n[n.length-1]),t.updateSearchInput();break}case 37:1!==app_shop.vars.view&&r&&o&&t.updateFocusElement(r);break;case 39:1!==app_shop.vars.view&&r&&o&&t.updateFocusElement(o);break;default:return!0}}else 13!==i&&t.searchInput.focus();return!1}})),document.addEventListener("click",(function(e){return e.target.closest(".menu_search__mobile")&&(e.preventDefault(),document.documentElement.classList.add("--search-open"),$(".main_slider").slick("slickSetOption","autoplay",!1,!0),t.searchInput.focus()),e.target.closest(".--search-open .menu_search__submit")&&(e.preventDefault(),document.documentElement.classList.remove("--search-open","--results-main-open"),$(".main_slider").slick("slickSetOption","autoplay",!0,!0)),e.target.closest("header .navbar-toggler")&&document.documentElement.classList.remove("--results-main-open"),t.searchInput.closest("form").classList.contains("--focus")&&!t.searchInput.closest("form").contains(e.target)&&t.searchInput.closest("form").classList.remove("--focus"),!1}))},this.init=()=>{const{searchInput:e,resultsWrapper:t,resultsLimit:i,inputLengthToStartSearching:n,afterBuildResult:r,buttonAllClass:o}=this.params;this.searchInput=e?document.querySelector(e):document.querySelector(".menu_search__input"),this.resultsWrapper=t?document.querySelector(t):document.querySelector(".search_result"),this.resultsLimit=i||"",this.inputLengthToStartSearching=n||4,this.netPrice="net"===app_shop.vars.priceType,this.afterBuildResult=r||!1,this.buttonAllClass=o||" btn --outline",this.initEvents()},this.init()},app_shop.run((()=>{app_shop.fn.selectPaging=new SelectToDropdown({selector:"#menu_settings select.form-control:not(.f-dropdown)",generateDropdownCallback:e=>{e.classList.remove("form-control")}});const e=document.querySelector("#menu_settings form");if(!e)return;const t=document.querySelector("#menu_settings .open_trigger");t&&t.addEventListener("click",(()=>{e.classList.toggle("active")}))}),"all","#menu_settings");const DefaultShoppingList=function(){return this.vars={firstListName:"Lista zakupowa"},this.queries={addList:()=>JSON.stringify({query:`mutation {\n shoppingListCreate(ShoppingListSettingsInput: {\n name: "${this.vars.firstListName}",\n }) {\n status\n id\n }\n }`})},this.fetchData=async e=>{try{const t=await fetch("/graphql/v1/?query=createShoppingList",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:e});await app_shop.graphql.trackingEvents(t);return await t.json()}catch(e){return!1}},this.createList=async()=>{await this.fetchData(this.queries.addList())},this.initEvents=()=>{document.addEventListener("click",(async e=>{const{target:t}=e;t.closest(".slt_link.--empty, .slt_lists__nav_link.--empty, .slm_lists__nav_link.--empty")&&(e.preventDefault(),await this.createList(
5),window.location.href=t.closest("[href]")?.href)}))},this.initEvents()};app_shop.run((function(){app_shop.fn.defaultShoppingList=new DefaultShoppingList}),"all",".slt_link.--empty, .slt_lists__nav_link.--empty, .slm_lists__nav_link.--empty"),app_shop.fn.customBasket=e=>`\n <div class="topBasket__row">\n <a class="topBasket__item --photo" href="${e.link}">\n ${void 0!==e.icon_second?`<picture>\n <source type="image/webp" srcset="${e.icon}"/>\n <img src="${e.icon_second}" alt="${e.name}">\n </picture>`:`<img src="${e.icon}" alt="${e.name}">`}\n </a>\n <a class="topBasket__item --name" href="${e.link}">\n <span class="topBasket__name">${e.name}</span>\n ${"uniw"!==e.size?`<span class="topBasket__size">${e.size_name}</span>`:""}\n ${e.product_version_name?`<span class="topBasket__version">${e.product_version_name}</span>`:""}\n </a>\n <span class="topBasket__item --sum">\n <span class="value">${e.count}</span>\n <span class="unit">${e.worth_unit}</span>\n </span>\n <span class="topBasket__item --prices">${"net"===app_shop.vars.priceType?e.prices.worth_net_formatted:e.prices.worth_gros_formatted}</span>\n </div>\n`,app_shop.fn.menu_basket_cache=function(){const e=document.getElementById("menu_basket");if(!e)return;iaiGet?.data?.Basket&&iaiGet.reInit?iaiGet.reInit(["Basket"]):iaiGet.basket((t=>{e.classList.remove("--skeleton");const{Basket:{response:{basket:i}={}}={}}=t||{};if(!i)return;app_shop.vars.basket=i;const{products:n=[],user:r={}}=i;app_shop.vars.user=r,e.classList.toggle("--hide",!n.length||n.length>22),e.classList.toggle("--list",n.length>10);const o=e.querySelector(".topBasket__price");if(o){const{worth_net_formatted:e,worth_formatted:t}=i;o.innerHTML="net"===app_shop.vars.priceType?e:t}const s=e.querySelector(".badge");if(s){const{productsCounter:e=0}=i;s.innerHTML=e>0?e:""}const a=e.querySelector("#shipppingCost");if(a){const{shippingCost_net_formatted:e,shippingCost_formatted:t}=i;a.innerHTML="net"===app_shop.vars.priceType?e:t}const l=document.getElementById("freeShipping");if(l){const{toShippingFree:e}=i;l.classList.toggle("--active",0===+e)}if(!n.length)return void("function"==typeof app_shop.fn.afterBasketCallback&&app_shop.fn.afterBasketCallback(i));let c="";n.forEach((e=>{c+=app_shop.fn.customBasket(e)}));const u=e.querySelector(".topBasket__block.--products");u&&(u.innerHTML=c);const h=n.find((e=>""===e.name||"0"!==e.subscription_period));e.classList.toggle("--oneclick-hide",!!h);document.querySelectorAll(".topBasket__details").forEach((e=>{e.removeAttribute("style")})),"function"==typeof app_shop.fn.afterBasketCallback&&app_shop.fn.afterBasketCallback(i)}))};const menu_basket_cache=app_shop.fn.menu_basket_cache;app_shop.run((()=>{app_shop.fn.menu_basket_cache()}),"all","#menu_basket");var submenuWidth="200",dlmenu_showmore="",dlmenu_shownumber="",dlmenu_columnHeight="",dlmenu_columnConcat="",dlmenu_padding="",dlmenu_columns="",dlmenu_wide="";app_shop.fn.isTouchEnabled=()=>"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,document.documentElement.classList.toggle("no-touch",!app_shop.fn.isTouchEnabled()),document.documentElement.classList.toggle("touch",app_shop.fn.isTouchEnabled()),app_shop.fn.checkOverflow=()=>{if(document.querySelectorAll(".nvabar-nav .--overflow").forEach((e=>e.classList.remove("--overflow"))),app_shop.vars.view<3)return;const e=document.documentElement.clientWidth;document.querySelectorAll(".navbar-nav > .nav-item").forEach((t=>{const i=e-t.getBoundingClientRect().left+window.scrollX;if(i<parseInt(submenuWidth,10)&&t.classList.add("--overflow"),i<2*parseInt(submenuWidth,10)){const e=t.querySelector(".navbar-subnav");if(!e)return;e.classList.add("--overflow")}}))},app_shop.fn.desktopTouchMenu=e=>{const{target:t}
5=e,i=t.closest(".nav-link");if(!i)return;const n=i.nextElementSibling;if(!n)return;document.querySelectorAll(".nav-item ul").forEach((e=>{e!==n&&e.classList.remove("active")}));document.querySelector("#menu_categories.wide")&&!n.classList.contains("navbar-subnav")||n.classList.contains("active")||(dlmenu_wide&&(app_shop.fn.concatColumns(n),app_shop.fn.setPositionMenu(n)),n.classList.add("active"),e.preventDefault())},app_shop.fn.mobileMenuNav=e=>{const{target:t}=e;if(app_shop.vars.view>2&&t.closest(".noevent"))return;const i=t.closest(".nav-link");if(!i)return;if(!i.nextElementSibling)return;const n=i.closest(".nav-item");n&&(e.preventDefault(),n.classList.toggle("nav-open"))},app_shop.fn.mobileMenuBack=e=>{e.preventDefault();const{target:t}=e,i=t.closest(".nav-open");i&&i.classList.remove("nav-open")},app_shop.fn.moveSearchToAsideMenu=()=>{const e=document.getElementById("menu_search");if(!e)return;const t=document.querySelector('aside .setMobileGrid[data-item="#menu_navbar"]');if(!t)return;if(document.documentElement.classList.contains("sidebar_open")){const i=document.createElement("del");return i.classList.add("handler"),i.dataset.item="#menu_search",i.style.display="none",e.before(i),void t.before(e)}const i=document.querySelector('header .handler[data-item="#menu_search"]');i&&(i.before(e),i.remove())},app_shop.fn.showHideAsideMenu=()=>{document.documentElement.classList.contains("filters_open")||document.documentElement.classList.toggle("sidebar_open"),document.documentElement.classList.remove("filters_open"),app_shop.fn.moveSearchToAsideMenu(),app_shop.fn.setMobileCategories?.(),document.querySelectorAll(".nav-open").forEach((e=>e.classList.remove("nav-open")))},app_shop.fn.extendNavItems=e=>{e.preventDefault();const{target:t}
5=e,i=t.closest(".nav-link");if(!i)return;const n=i.textContent;i.textContent=i.getAttribute("txt_alt"),i.setAttribute("txt_alt",n);const r=i.closest("ul");r?.classList.toggle("show");const o=i.closest(".navbar-subnav");o?.classList.add("active")},app_shop.fn.concatColumns=e=>{if(!dlmenu_columnConcat)return;let t=document.createElement("li");t.classList.add("nav-item","nav-merge");let i=parseInt(dlmenu_columnHeight,10);e.querySelectorAll("& > .nav-item").forEach((e=>{const{nextElementSibling:n}=e,r=e.offsetHeight,o=n?.offsetHeight;if(e.classList.contains("--all")&&(i=0),r<i&&o+r<i)return e.after(t),t.append(e),void(i-=r);r<i&&(e.after(t),t.append(e),i=parseInt(dlmenu_columnHeight,10),t=document.createElement("li"),t.classList.add("nav-item","nav-merge"))}))},app_shop.fn.setPositionMenu=e=>{const t=document.querySelector("#menu_categories");if(!t)return;const i=t.offsetWidth-dlmenu_padding,n=e.querySelectorAll("& > .nav-item:not(.--all)").length;if(e.classList.add(`--cols${n}`),n<dlmenu_columns&&window.screen.width>1200||n<dlmenu_columns-1&&window.screen.width<1200){const t=e.offsetWidth,{offsetLeft:n}=e.parentElement,r=n<0?0:n,o=i-(t+r);let s=r- -1*o;s=o>0?r:s,e.style.setProperty("left",`${s}px`)}},app_shop.run((()=>{document.addEventListener("click",(e=>{const{target:t}=e;t.closest(".navbar-toggler")?app_shop.fn.showHideAsideMenu():t.closest("aside .navbar-collapse .nav-link")?app_shop.fn.mobileMenuNav(e):t.closest("aside .nav-header__backLink")?app_shop.fn.mobileMenuBack(e):t.closest("#menu_categories .nav-item.--extend")?app_shop.fn.extendNavItems(e):!document.documentElement.classList.contains("sidebar_open")&&!document.documentElement.classList.contains("filters_open")||t.closest("aside")||app_shop.fn.showHideAsideMenu()}));const e=app_shop?.vars?.isIos?"touchstart":"click";document.addEventListener(e,(e=>{const{target:t}=e;t.closest(".touch header .navbar-collapse .nav-link")&&app_shop.fn.desktopTouchMenu(e)})),document.querySelectorAll(".navbar-subnav").forEach((e=>{e.addEventListener("mouseover",(()=>{document.querySelectorAll(".navbar-subnav").forEach((e=>{e.classList.remove("active")}))}))})),dlmenu_wide&&document.querySelectorAll(".no-touch .navbar-nav > .nav-item > .nav-link").forEach((e=>{e.addEventListener("mouseover",(e=>{const{target:t}=e,{nextElementSibling:i}=t,{visited:n}=t.dataset;i&&i?.classList.contains("navbar-subnav")&&(n||(app_shop.fn.concatColumns(i),app_shop.fn.setPositionMenu(i)),t.dataset.visited=!0)}))}))}),"all","#menu_categories"),app_shop.run((()=>{app_shop.vars.view>2&&(document.documentElement.classList.remove("sidebar_open","filters_open"),app_shop.fn.moveSearchToAsideMenu()),dlmenu_wide||app_shop.fn.checkOverflow()}),[1,2,3,4],"#menu_categories"),app_shop.run((function(){document.querySelectorAll("#menu_categories .nav-gfx.nav-hover").forEach((e=>{e.addEventListener("mouseover",(()=>{const t=`${e.offsetHeight}px`;e.style.width=`${e.offsetWidth}px`,e.style.height=t,e.classList.add("--hover")}
5)),e.closest(".nav-item")?.addEventListener?.("mouseleave",(()=>{e.style.width="",e.style.height="",e.classList.remove("--hover")}))}))}),"all","#menu_categories .nav-gfx.nav-hover"),app_shop.run((function(){document.querySelectorAll("#menu_categories .nav-gfx.nav-hover").forEach((e=>{e.style.width="",e.style.height=""}))}),[1,2,3,4],"#menu_categories .nav-gfx.nav-hover"),app_shop.run((()=>{const e=document.querySelector(".slm_lists");if(!e)return;document.querySelectorAll(".slm_lists__label").forEach((t=>{t.addEventListener("click",(()=>{e.classList.toggle("--active")}))}))}),"all",".slm_lists__label");const excludeFromMove=["#menu_contact"];function simple_tooltip(e,t,i){return this.tipHandle="",this.pushSelectors=()=>{app_shop.vars.simpleTooltipOptions.push({targetItems:e,tooltipId:t,onLeft:i})},this.getTooltipOptions=e=>app_shop.vars.simpleTooltipOptions.find((t=>e.closest(t.targetItems))),this.getTooltipContent=(e,t)=>{if(!e.closest(t))return!1;const i=e.closest(t);if(i.nextElementSibling?.classList.contains("tooltipContent"))return i.nextElementSibling.innerHTML.trim();if(i.title){const{title:e}=i;return i.dataset.title=e,i.removeAttribute("title"),e.trim()}return!!i.dataset.title&&i.dataset.title.trim()},this.createTooltip=(e,t)=>{document.getElementById(e)&&document.getElementById(e).remove();const i=document.createElement("div");return i.style.display="block",i.className=e,i.id=e,i.innerHTML=`<p>${t}</p>`,i.addEventListener("mouseenter",(()=>clearTimeout(this.tipHandle))),i.addEventListener("mouseleave",(()=>i.remove())),document.body.appendChild(i),i},this.setTooltipPosition=(e,t)=>{const n=window.scrollY,r=window.innerWidth,o=15;let s=0,a=0;i||!1?(s=e.pageX-t.offsetWidth-o<=0?e.pageX+o:e.pageX-o-t.offsetWidth,a=n+30>=e.pageY-t.offsetHeight?n+o:e.pageY-t.offsetHeight-o):(s=r-30>=t.offsetWidth+e.pageX?e.pageX+o:r-t.offsetWidth-o,a=n+30>=e.pageY-t.offsetHeight?n+o:e.pageY-t.offsetHeight-o),t.style.left=`${s}px`,t.style.top=`${a}px`},this.onMouseMove=e=>{const{target:t}=e,i=this.getTooltipOptions(t);if(!i)return;const n=this.getTooltipContent(t,i.targetItems);if(!n)return;const r=this.createTooltip(i.tooltipId,n);this.setTooltipPosition(e,r)},this.onMouseOut=e=>{const{target:t}=e,i=this.getTooltipOptions(t);if(!i)return;const n=document.getElementById(i.tooltipId);n&&(this.tipHandle=setTimeout((()=>{n.remove()}),500))},this.onTouchStart=e=>{const{target:t}=e;this.getTooltipOptions(t)||app_shop.vars.simpleTooltipOptions.forEach((e=>{const i=document.getElementById(e.tooltipId);i&&(t.closest(`#${e.tooltipId}`)||i.remove())}))},this.initEvents=()=>{document.documentElement.classList.contains("--tooltip-initiated")||(document.documentElement.classList.add("--tooltip-initiated"),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseout",this.onMouseOut),document.addEventListener("touchstart",this.onTouchStart))},this.init=()=>{this.pushSelectors(),this.initEvents()},this.init()}function calculate_instalments(params){let{minPrice:minPrice,maxPrice:maxPrice,totalPrice:totalPrice,link:link,instalmentName:instalmentName,priceType:priceType}=params;"object"!=typeof params&&null!==params&&([minPrice,maxPrice,totalPrice,,link,,instalmentName,,priceType]=arguments),minPrice=parseFloat(minPrice,10)||!1;const minPriceFormat=!!minPrice&&`${format_price(minPrice,{mask:app_shop.vars.currency_format,currency:instalmentData.currency,currency_space:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value})}${priceType&&"net"===priceType?app_shop.txt.instalmentNet:""}`;maxPrice=parseFloat(maxPrice,10)||!1;const maxPriceFormat=!!maxPrice&&`${format_price(maxPrice,{mask:app_shop.vars.currency_format,currency:instalmentData.currency,currency_space:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value})}${priceType&&"net"===priceType?app_shop.txt.instalmentNet:""}`;totalPrice=parseFloat(totalPrice,10)||!1,link=link||!1,instalmentName=instalmentName||!1,priceType=priceType||!1;let productsPrice="";productsPrice=priceType&&"net"===priceType?document.getElementById("projector_number")?instalmentData.priceNet*document.getElementById("projector_number").value:instalmentData.priceNet:document.getElementById("projector_number")?instalmentData.price*document.getElementById("projector_number").value:instalmentData.price;const productsPriceFormat=`${format_price(productsPrice,{mask:app_shop.vars.currency_format,currency:instalmentData.currency,currency_space
5:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value})}${priceType&&"net"===priceType?app_shop.txt.instalmentNet:""}`;if(link&&-1!==link.indexOf("{calculate_price}")&&(link=link.replace("{calculate_price}","XXX")),0===productsPrice)return eval(link),!1;if(0===instalmentData.basketCount&&(!minPrice&&!maxPrice||minPrice&&productsPrice>=minPrice&&maxPrice&&productsPrice<=maxPrice))return eval(link.replace("XXX",productsPrice)),!1;let infoHTML="";minPrice&&productsPrice<minPrice?infoHTML=`\n <div class='menu_messages_message'>\n <div class='menu_messages_message_sub'>\n <p>${app_shop.txt.instalmentLabelMin}${instalmentName}${app_shop.txt.instalmentLabelTo}${minPriceFormat}</p>\n </div>\n </div>\n `:maxPrice&&productsPrice>maxPrice&&(infoHTML=`\n <div class='menu_messages_message'>\n <div class='menu_messages_message_sub'>\n <p>${app_shop.txt.instalmentLabelMax}${instalmentName}${app_shop.txt.instalmentLabelTo}${maxPriceFormat}</p>\n </div>\n </div>\n `);let sumPrice=0;sumPrice=totalPrice?(totalPrice+productsPrice).toFixed(2):((priceType&&"net"===priceType?instalmentData.basketCostNet:instalmentData.basketCost)+productsPrice).toFixed(2);const sumPriceFormat=`${format_price(sumPrice,{mask:app_shop.vars.currency_format,currency:instalmentData.currency,currency_space:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value})}${priceType&&"net"===priceType?app_shop.txt.instalmentNet:""}`;let buttonHTML="";if(document.querySelector("#container.projector_page")&&(buttonHTML=`\n <button class="instalment_calculator__button ${minPrice&&productsPrice<minPrice||maxPrice&&productsPrice>maxPrice?app_shop.txt.instalmentButtonDisableClassDialog:app_shop.txt.instalmentButtonClassDialog}"${minPrice&&productsPrice<minPrice||maxPrice&&productsPrice>maxPrice?"":` onclick="${link.replace("XXX",productsPrice)}"`}>\n <span class="instalment_calculator__button_txt">${app_shop.txt.instalmentSingleProduct}</span>\n <span class="instalment_calculator__button_price">${productsPriceFormat}</span>\n ${minPrice&&productsPrice<minPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMin}</span>`:""}\n ${maxPrice&&productsPrice>maxPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMax}</span>`:""}\n </button>\n `,0!==instalmentData.basketCount&&(buttonHTML+=`\n <button class="instalment_calculator__button ${minPrice&&sumPrice<minPrice||maxPrice&&sumPrice>maxPrice?app_shop.txt.instalmentButtonDisableClassDialog:app_shop.txt.instalmentButtonClassDialog}"${minPrice&&sumPrice<minPrice||maxPrice&&sumPrice>maxPrice?"":` onclick="${link.replace("XXX",sumPrice)}"`}>\n <span class="instalment_calculator__button_txt">${app_shop.txt.instalmentBasketProduct}</span>\n <span class="instalment_calculator__button_price">${sumPriceFormat}</span>\n ${minPrice&&sumPrice<minPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMinBasket}</span>`:""}\n ${maxPrice&&sumPrice>maxPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMaxBasket}</span>`:""}\n </button>\n `)),document.querySelector("#container.basketedit_page")){if(minPrice&&productsPrice>=minPrice&&maxPrice&&productsPrice<=maxPrice)return eval(link.replace("XXX",productsPrice)),!1;buttonHTML=`\n <button class="instalment_calculator__button ${minPrice&&productsPrice<minPrice||maxPrice&&productsPrice>maxPrice?app_shop.txt.instalmentButtonDisableClassDialog:app_shop.txt.instalmentButtonClassDialog}"${minPrice&&productsPrice<minPrice||maxPrice&&productsPrice>maxPrice?"":` onclick="${link.replace("XXX",productsPrice)}"`}>\n <span class="instalment_calculator__button_txt">${app_shop.txt.instalmentMultiProduct}</span>\n <span class="instalment_calculator__button_price">${productsPriceFormat}</span>\n ${minPrice&&productsPrice<minPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMinB}</span>`:""}\n ${maxPrice&&productsPrice>maxPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMaxB}</span>`:""}\n </button>\n `}Modal({html:infoHTML+buttonHTML,classList:"instalment_calculator"})}app_shop.fn.setGrid=()=>{switch(app_shop.vars.view){case 4:case 3:document.querySelectorAll(".domHandler").forEach((e=>{const t=e.dataset.item,i=document.querySelector(t);i&&(excludeFromMove.includes(t)||e.after(i),e.remove())}
5));break;case 2:case 1:if(document.querySelector(".domHandler"))return;document.querySelectorAll(".setMobileGrid").forEach((e=>{const t=e.dataset.item,i=document.querySelector(t);if(!i||e.querySelectorAll(t).length>0)return;const n=document.createElement("del");n.classList.add("domHandler"),n.dataset.item=t,n.style.display="none",i.before(n),excludeFromMove.includes(t)?e.append(i.cloneNode(!0)):e.append(i)}))}},app_shop.fn.setMobileCategories=function(){const e=document.querySelector("#mobileCategories");e&&(e.classList.contains("--inited")||(e.classList.add("--inited"),(()=>{const e=document.querySelector("#mobileCategories");document.querySelector("aside")?.prepend(e),e.addEventListener("click",(e=>{const{target:t}=e;var i;t.closest(".mobileCategories__link")&&(e.preventDefault(),document.querySelectorAll(".mobileCategories__link").forEach((e=>{e.classList.remove("--active"),document.querySelectorAll(e.dataset.ids.split(",")).forEach((e=>{e.style.display="none",e.classList.remove("--active")}))})),(i=t.closest(".mobileCategories__link")).classList.add("--active"),document.querySelectorAll(i.dataset.ids.split(",")).forEach((e=>{e.style.display="",e.classList.add("--active")})))}))})()),e.querySelector(".mobileCategories__link")?.click())},app_shop.run((()=>{document.querySelectorAll('.footer_links_sub a[data-gfx-enabled="true"]').forEach((e=>{e.addEventListener("mouseover",(e=>{const t=e.target.closest('a[data-gfx-enabled="true"]').querySelector("img");if(!t)return;const{onmouseover:i}=t.dataset;i&&(t.dataset.tmp=t.src,t.src=i)})),e.addEventListener("mouseout",(e=>{const t=e.target.closest('a[data-gfx-enabled="true"]').querySelector("img");if(!t)return;const{tmp:i}=t.dataset;i&&(t.src=i,delete t.dataset.tmp)}))}))}),"all",'.footer_links_sub a[data-gfx-enabled="true"]'),app_shop.run((()=>{document.querySelectorAll(".footer_tab__header").forEach((e=>{e.addEventListener("click",(()=>{if("true"===e.getAttribute("data-hide-arrow"))return;const t=e.getAttribute("aria-controls"),i=document.getElementById(t),n="true"===e.getAttribute("aria-expanded");(app_shop.vars.view<2||app_shop.vars.view>=2&&!n)&&(e.setAttribute("aria-expanded",!n),e.setAttribute("data-previous-state",!n),i.setAttribute("aria-hidden",n))}))}))}),"all",".footer_tab__header, .footer_links_sub"),app_shop.run((()=>{document.querySelectorAll("#footer_links [aria-hidden]").forEach((e=>{if(1===app_shop.vars.view&&!e.hasAttribute("data-previous-state")){const t=e.getAttribute("aria-hidden");e.setAttribute("data-previous-state",t)}const t=e.getAttribute("data-previous-state");e.setAttribute("aria-hidden",t??!1)}))}),[1,2,3,4],".footer_tab__header, .footer_links_sub"),app_shop.run((()=>{const e=document.querySelector("#manageCookies");e?.addEventListener("click",(()=>{"function"==typeof prepareCookiesConfiguration&&prepareCookiesConfiguration()}))}),"all","#manageCookies"),app_shop.run((()=>{simple_tooltip(".showTip","n59581_tooltip_dictionary"),simple_tooltip("#contentcolumn_order1 .showTip_order1","n59581_tooltip"),simple_tooltip("#basketedit_gifts .showTip_gift","n59581_tooltip"),simple_tooltip("#basketedit_productslist .showTip_basket","n59581_tooltip"),simple_tooltip("span.btn_note","n59581_instalment_note")}),"all","body"),app_shop.vars.simpleTooltipOptions=[],app_shop.txt.instalmentLabel="",app_shop.txt.instalmentSingleProduct="Calculate instalments only for this product",app_shop.txt.instalmentMultiProduct="Calculate instalments for selected products",app_shop.txt.instalmentBasketProduct="Calculate instalments including the amount from the cart",app_shop.txt.instalmentNoTall="Not all of the products in the cart are allowed to be paid with this instalment system. Go to the details of every product to find out if it can be purchased this way. If you decide to pay by instalments, the payment for unallowed products will have to be made with other payment methods.",app_shop.txt.instalmentTooMany="There are too many products in the cart to pay for this order by instalments. Decrease the products quantity to ",app_shop.txt.instalmentTooMany2=" to be able to use the instalment system. The units of a single product are not limited.",app_shop.txt.instalmentLabelTo=" is ",app_shop.txt.instalmentLabelMinBasket="You cannot run the instalments simulation for a cart content, because the minimum sum that allows for purchase made by ",app_shop.txt.instalmentTextMin="Increase the product quantity to run the instalments calculator.",app_shop.txt.instalmentTextMinBasket="Increase the product quantity or place additional products in a cart.",app_shop.txt.instalmentTextMinB="Increase the product quantity in a cart, to run the instalments calculator.",app_shop.txt.instalmentLabelMax="You cannot run the instalments simulation, because the maximum sum that allows for purchase made by ",app_shop.txt.instalmentLabelMaxBasket="You cannot run the instalments simulation for a cart content, because the maximum sum that allows for purchase made by ",app_shop.txt.instalmentTextMax="Decrease the product quantity to run the instalments calculator.",app_shop.txt.instalmentTextMaxBasket="Decrease the product quantity or remove some products from a cart.",app_shop.txt.instalmentTextMaxB="Decrease the product quantity in a cart, to run the instalments calculator.",app_shop.txt.instalmentLabelMin="You cannot run the instalments simulation for this product, because the minimum sum that allows for purchase made by ",app_shop.txt.instalmentButtonClassDialog="btn --solid --medium",app_shop.txt.instalmentButtonDisableClassDialog="btn --solid --secondary --medium --disabled",app_shop.txt.instalmentNet=" net",app_shop.run((function(){Modal({element:document.getElementById("menu_notice")})}),"all","#menu_notice"),app_shop.run((()=>{iaiGet.snippets((e=>{const{Snippets:{response:{items:t={}}={}}={}}=e||{};t&&Object.values(t).forEach((e=>{const{region:t,content:i}=e||{};if(!t||!i)return;const n=document.createElement("div");n.innerHTML=i;const r=[...n.childNodes];switch(t){case"head":r.forEach((e=>{if("SCRIPT"===e.tagName){const t=document.createElement("script");t.text=e.innerHTML,document.head.append(t)}else document.head.append(e)}));break;
5case"body_top":r.forEach((e=>{if("SCRIPT"===e.tagName){const t=document.createElement("script");t.text=e.innerHTML,document.body?.prepend(t)}else document.body?.prepend(e)}));break;default:r.forEach((e=>{if("SCRIPT"===e.tagName){const t=document.createElement("script");t.text=e.innerHTML,document.body?.append(t)}else document.body?.append(e)}))}}))}),{mobile:1===app_shop.vars.view,tablet:2===app_shop.vars.view,pc:app_shop.vars.view>2,request_uri:app_shop.vars.requestUri,additional_ajax:app_shop.vars.additionalAjax}),iaiGet.toplayersAndWidgets((e=>{const{ToplayersAndWidgets:{response:{items:t={}}={}}={}}=e||{};t&&Object.entries(t).forEach((([e,t])=>{if("script"===e){const e=document.createElement("script");return e.text=t,void document.body?.append(e)}const{content:i}=t||{};if(!i)return;const n=document.createElement("div");n.innerHTML=i;const r=[...n.getElementsByTagName("script")];r.forEach((e=>e.remove())),document.body?.append(...n.childNodes),r.forEach((e=>{const t=document.createElement("script");e.src?t.src=e.src:t.textContent=e.textContent,document.body?.append(t)}))}))}),{mobile:1===app_shop.vars.view,tablet:2===app_shop.vars.view,pc:app_shop.vars.view>2,request_uri:app_shop.vars.requestUri,additional_ajax:app_shop.vars.additionalAjax})}),"all","body"),appModules.installModule("Slider","/gfx/eng/menu_slider_core.js.gzip?r=1783590879"),app_shop.vars.sliderConfig={debugSlider:app_shop?.vars?.customSliderConfig?.debugSlider??!0,sliderList:[]},app_shop.vars.utils={debugFlag:app_shop.vars.sliderConfig.debugSlider,debug(e,t,...i){if(!app_shop.vars.utils.debugFlag)return;const[,,n,r,...o]=(new Error)?.stack?.match(/(:[\d]+)/gim)??[];if(!n||!r)return;n.replace(":",""),r.replace(":","")}},appModules.installModule("SwiperCore","/gfx/eng/menu_slider_modules_1.js.gzip?r=1783590879"),appModules.installModule("SwiperControlls","/gfx/eng/menu_slider_modules_2.js.gzip?r=1783590879"),appModules.installModule("SwiperEffects","/gfx/eng/menu_slider_modules_3.js.gzip?r=1783590879"),appModules.installModule("SwiperNavigation","/gfx/eng/menu_slider_modules_4.js.gzip?r=1783590879"),appModules.installModule("SwiperUtils","/gfx/eng/menu_slider_modules_5.js.gzip?r=1783590879"),app_shop.run((()=>{const e=document.querySelector("header");if(!e)return;const t=document.querySelector(".breadcrumbs");e.append(t)}),[3,4],".breadcrumbs"),app_shop.run((()=>{const e=document.getElementById("layout");if(!e)return;const t=document.querySelector(".breadcrumbs");e.prepend(t)}),[1,2],".breadcrumbs"),app_shop.run((()=>{document.querySelector(".breadcrumbs #back_button").addEventListener("click",(e=>{e.preventDefault(),window.history.back()}))}),"all",".breadcrumbs #back_button"),app_shop.run((()=>{new FormValidation({formSelector:".newsletter__form"}).init()}),"all","#menu_newsletter"),app_shop.fn.rwdBanner(".platnosci_54388",[1,2,3,4]),function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var i=[],n=Object.getPrototypeOf,r=i.slice,o=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},s=i.push,a=i.indexOf,l={},c=l.toString,u=l.hasOwnProperty,h=u.toString,d=h.call(Object),p={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},f=function(e){return null!=e&&e===e.window},_=e.document,g={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,i){var n,r,o=(i=i||_).createElement("script");if(o.text=e,t)for(n in g)(r=t[n]||t.getAttribute&&t.getAttribute(n))&&o.setAttribute(n,r);i.head.appendChild(o).parentNode.removeChild(o)}function v(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var b="3.5.1",x=function(e,t){return new x.fn.init(e,t)};function w(e){var t=!!e&&"length"in e&&e.length,i=v(e);return!m(e)&&!f(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}x.fn=x.prototype={jquery:b,constructor:x,length:0,toArray:function(){return r.call(this)},get:function(e){return null==e?r.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);
vendor: 12,573 bytes, line 5
5return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(0<=i&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:i.sort,splice:i.splice},x.extend=x.fn.extend=function(){var e,t,i,n,r,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||m(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=e[t],"__proto__"!==t&&s!==n&&(c&&n&&(x.isPlainObject(n)||(r=Array.isArray(n)))?(i=s[t],o=r&&!Array.isArray(i)?[]:r||x.isPlainObject(i)?i:{},r=!1,s[t]=x.extend(c,o,n)):void 0!==n&&(s[t]=n));return s},x.extend({expando:"jQuery"+(b+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==c.call(e)||(t=n(e))&&("function"!=typeof(i=u.call(t,"constructor")&&t.constructor)||h.call(i)!==d))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){y(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,n=0;if(w(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},makeArray:function(e,t){var i=t||[];return null!=e&&(w(Object(e))?x.merge(i,"string"==typeof e?[e]:e):s.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:a.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,r=e.length;n<i;n++)e[r++]=t[n];return e.length=r,e},grep:function(e,t,i){for(var n=[],r=0,o=e.length,s=!i;r<o;r++)!t(e[r],r)!==s&&n.push(e[r]);return n},map:function(e,t,i){var n,r,s=0,a=[];if(w(e))for(n=e.length;s<n;s++)null!=(r=t(e[s],s,i))&&a.push(r);else for(s in e)null!=(r=t(e[s],s,i))&&a.push(r);return o(a)},guid:1,support:p}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=i[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var S=function(e){var t,i,n,r,o,s,a,l,c,u,h,d,p,m,f,_,g,y,v,b="sizzle"+1*new Date,x=e.document,w=0,S=0,L=le(),k=le(),T=le(),C=le(),P=function(e,t){return e===t&&(h=!0),0},M={}.hasOwnProperty,E=[],z=E.pop,A=E.push,j=E.push,O=E.slice,I=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",D="[\\x20\\t\\r\\n\\f]",q="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",N="\\["+D+"*("+q+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+D+"*\\]",Z=":("+q+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",H=new RegExp(D+"+","g"),F=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g"),R=new RegExp("^"+D+"*,"+D+"*"),W=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),$=new RegExp(D+"|>"),G=new RegExp(Z),V=new RegExp("^"+q+"$"),U={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+Z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),ie=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},ne=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){d()},se=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{j.apply(E=O.call(x.childNodes),x.childNodes),E[x.childNodes.length].nodeType}catch(t){j={apply:E.length?function(e,t){A.apply(e,O.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function ae(e,t,n,r){var o,a,c,u,h,m,g,y=t&&t.ownerDocument,x=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return n;if(!r&&(d(t),t=t||p,f)){if(11!==x&&(h=K.exec(e)))if(o=h[1]){if(9===x){if(!(c=t.getElementById(o)))return n;if(c.id===o)return n.push(c),n}else if(y&&(c=y.getElementById(o))&&v(t,c)&&c.id===o)return n.push(c),n}else{if(h[2])return j.apply(n,t.getElementsByTagName(e)),n;if((o=h[3])&&i.getElementsByClassName&&t.getElementsByClassName)return j.apply(n,t.getElementsByClassName(o)),n}if(i.qsa&&!C[e+" "]&&(!_||!_.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(g=e,y=t,1===x&&($.test(e)||W.test(e))){for((y=ee.test(e)&&ge(t.parentNode)||t)===t&&i.scope||((u=t.getAttribute("id"))?u=u.replace(ne,re):t.setAttribute("id",u=b)),a=(m=s(e)).length;a--;)m[a]=(u?"#"+u:":scope")+" "+ve(m[a]);g=m.join(",")}try{return j.apply(n,y.querySelectorAll(g)),n}catch(t){C(e,!0)}finally{u===b&&t.removeAttribute("id")}}}return l(e.replace(F,"$1"),t,n,r)}function le(){var e=[];return function t(i,r){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=r}}function ce(e){return e[b]=!0,e}function ue(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var i=e.split("|"),r=i.length;r--;)n.attrHandle[i[r]]=t}function de(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function me(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function fe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function _e(e){return ce((function(t){return t=+t,ce((function(i,n){for(var r,o=e([],i.length,t),s=o.length;s--;)i[r=o[s]]&&(i[r]=!(n[r]=i[r]))}))}))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=ae.support={},o=ae.isXML=function(e){var t=e.namespaceURI,i=(e.ownerDocument||e).documentElement;return!Y.test(t||i&&i.nodeName||"HTML")},d=ae.setDocument=function(e){var t,r,s=e?e.ownerDocument||e:x;return s!=p&&9===s.nodeType&&s.documentElement&&(m=(p=s).documentElement,f=!o(p),x!=p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",oe,!1):r.attachEvent&&r.attachEvent("onunload",oe)),i.scope=ue((function(e){return m.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),i.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),i.getElementsByTagName=ue((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),i.getElementsByClassName=X.test(p.getElementsByClassName),i.getById=ue((function(e){return m.appendChild(e).id=b,!p.getElementsByName||!p.getElementsByName(b).length})),i.getById?(n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var i=t.getElementById(e);return i?[i]:[]}}):(n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var i,n,r,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(r=t.getElementsByName(e),n=0;o=r[n++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),n.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&f)return t.getElementsByClassName(e)},g=[],_=[],(i.qsa=X.test(p.querySelectorAll))&&(ue((function(e){var t;m.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&_.push("[*^$]="+D+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||_.push("\\["+D+"*(?:value|"+B+")"),e.querySelectorAll("[id~="+b+"-]").length||_.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||_.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||_.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||_.push(".#.+[+~]"),e.querySelectorAll("\\\f"),_.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&_.push("name"+D+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&_.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&_.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),_.push(",.*:")}))),(i.matchesSelector=X.test(y=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ue((function(e){i.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),g.push("!=",Z)})),_=_.length&&new RegExp(_.join("|")),g=g.length&&new RegExp(g.join("|")),t=X.test(m.compareDocumentPosition),v=t||X.test(m.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},P=t?function(e,t){if(e===t)return h=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e==p||e.ownerDocument==x&&v(x,e)?-1:t==p||t.ownerDocument==x&&v(x,t)?1:u?I(u,e)-I(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return h=!0,0;var i,n=0,r=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!r||!o)return e==p?-1:t==p?1:r?-1:o?1:u?I(u,e)-I(u,t):0;if(r===o)return de(e,t);for(i=e;i=i.parentNode;)s.unshift(i);for(i=t;i=i.parentNode;)a.unshift(i);for(;s[n]===a[n];)n++;return n?de(s[n],a[n]):s[n]==x?-1:a[n]==x?1:0}),p},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(d(e),i.matchesSelector&&f&&!C[t+" "]&&(!g||!g.test(t))&&(!_||!_.test(t)))try{var n=y.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){C(t,!0)}return 0<ae(t,p,null,[e]).length},ae.contains=function(e,t){return(e.ownerDocument||e)!=p&&d(e),v(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=p&&d(e);var r=n.attrHandle[t.toLowerCase()],o=r&&M.call(n.attrHandle,t.toLowerCase())?r(e,t,!f):void 0;return void 0!==o?o:i.attributes||!f?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ae.escape=function(e){return(e+"").replace(ne,re)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,n=[],r=0,o=0;if(h=!i.detectDuplicates,u=!i.sortStable&&e.slice(0),e.sort(P),h){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return u=null,e},r=ae.getText=function(e){var t,i="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=r(e)}
vendor: 4,205 bytes, line 5
5else if(3===o||4===o)return e.nodeValue}else for(;t=e[n++];)i+=r(t);return i},(n=ae.selectors={cacheLength:50,createPseudo:ce,match:U,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return U.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&G.test(i)&&(t=s(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=L[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&L(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(n){var r=ae.attr(n,e);return null==r?"!="===t:!t||(r+="","="===t?r===i:"!="===t?r!==i:"^="===t?i&&0===r.indexOf(i):"*="===t?i&&-1<r.indexOf(i):"$="===t?i&&r.slice(-i.length)===i:"~="===t?-1<(" "+r.replace(H," ")+" ").indexOf(i):"|="===t&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,r){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,i,l){var c,u,h,d,p,m,f=o!==s?"nextSibling":"previousSibling",_=t.parentNode,g=a&&t.nodeName.toLowerCase(),y=!l&&!a,v=!1;if(_){if(o){for(;f;){for(d=t;d=d[f];)if(a?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;m=f="only"===e&&!m&&"nextSibling"}return!0}if(m=[s?_.firstChild:_.lastChild],s&&y){for(v=(p=(c=(u=(h=(d=_)[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===w&&c[1])&&c[2],d=p&&_.childNodes[p];d=++p&&d&&d[f]||(v=p=0)||m.pop();)if(1===d.nodeType&&++v&&d===t){u[e]=[w,p,v];break}}else if(y&&(v=p=(c=(u=(h=(d=t)[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===w&&c[1]),!1===v)for(;(d=++p&&d&&d[f]||(v=p=0)||m.pop())&&((a?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++v||(y&&((u=(h=d[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]=[w,v]),d!==t)););return(v-=r)===n||v%n==0&&0<=v/n}}},PSEUDO:function(e,t){var i,r=n.pseudos[e]||n.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return r[b]?r(t):1<r.length?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,i){for(var n,o=r(e,t),s=o.length;s--;)e[n=I(e,o[s])]=!(i[n]=o[s])})):function(e){return r(e,0,i)}):r}},pseudos:{not:ce((function(e){var t=[],i=[],n=a(e.replace(F,"$1"));return n[b]?ce((function(e,t,i,r){for(var o,s=n(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))})):function(e,r,o){return t[0]=e,n(t,null,o,i),t[0]=null,!i.pop()}})),has:ce((function(e){return function(t){return 0<ae(e,t).length}})),contains:ce((function(e){return e=e.replace(te,ie),function(t){return-1<(t.textContent||r(t)).indexOf(e)}})),lang:ce((function(e){return V.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ie).toLowerCase(),function(t){var i;do{if(i=f?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===m},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)}
vendor: 6,001 bytes, line 5
5,input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:_e((function(){return[0]})),last:_e((function(e,t){return[t-1]})),eq:_e((function(e,t,i){return[i<0?i+t:i]})),even:_e((function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e})),odd:_e((function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e})),lt:_e((function(e,t,i){for(var n=i<0?i+t:t<i?t:i;0<=--n;)e.push(n);return e})),gt:_e((function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e}))}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})n.pseudos[t]=me(t);function ye(){}function ve(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function be(e,t,i){var n=t.dir,r=t.next,o=r||n,s=i&&"parentNode"===o,a=S++;return t.first?function(t,i,r){for(;t=t[n];)if(1===t.nodeType||s)return e(t,i,r);return!1}:function(t,i,l){var c,u,h,d=[w,a];if(l){for(;t=t[n];)if((1===t.nodeType||s)&&e(t,i,l))return!0}else for(;t=t[n];)if(1===t.nodeType||s)if(u=(h=t[b]||(t[b]={}))[t.uniqueID]||(h[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[n]||t;else{if((c=u[o])&&c[0]===w&&c[1]===a)return d[2]=c[2];if((u[o]=d)[2]=e(t,i,l))return!0}return!1}}function xe(e){return 1<e.length?function(t,i,n){for(var r=e.length;r--;)if(!e[r](t,i,n))return!1;return!0}:e[0]}function we(e,t,i,n,r){for(var o,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(o=e[a])&&(i&&!i(o,n,r)||(s.push(o),c&&t.push(a)));return s}function Se(e,t,i,n,r,o){return n&&!n[b]&&(n=Se(n)),r&&!r[b]&&(r=Se(r,o)),ce((function(o,s,a,l){var c,u,h,d=[],p=[],m=s.length,f=o||function(e,t,i){for(var n=0,r=t.length;n<r;n++)ae(e,t[n],i);return i}(t||"*",a.nodeType?[a]:a,[]),_=!e||!o&&t?f:we(f,d,e,a,l),g=i?r||(o?e:m||n)?[]:s:_;if(i&&i(_,g,a,l),n)for(c=we(g,p),n(c,[],a,l),u=c.length;u--;)(h=c[u])&&(g[p[u]]=!(_[p[u]]=h));if(o){if(r||e){if(r){for(c=[],u=g.length;u--;)(h=g[u])&&c.push(_[u]=h);r(null,g=[],c,l)}for(u=g.length;u--;)(h=g[u])&&-1<(c=r?I(o,h):d[u])&&(o[c]=!(s[c]=h))}}else g=we(g===s?g.splice(m,g.length):g),r?r(null,s,g,l):j.apply(s,g)}))}function Le(e){for(var t,i,r,o=e.length,s=n.relative[e[0].type],a=s||n.relative[" "],l=s?1:0,u=be((function(e){return e===t}),a,!0),h=be((function(e){return-1<I(t,e)}),a,!0),d=[function(e,i,n){var r=!s&&(n||i!==c)||((t=i).nodeType?u(e,i,n):h(e,i,n));return t=null,r}];l<o;l++)if(i=n.relative[e[l].type])d=[be(xe(d),i)];else{if((i=n.filter[e[l].type].apply(null,e[l].matches))[b]){for(r=++l;r<o&&!n.relative[e[r].type];r++);return Se(1<l&&xe(d),1<l&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(F,"$1"),i,l<r&&Le(e.slice(l,r)),r<o&&Le(e=e.slice(r)),r<o&&ve(e))}d.push(i)}return xe(d)}return ye.prototype=n.filters=n.pseudos,n.setFilters=new ye,s=ae.tokenize=function(e,t){var i,r,o,s,a,l,c,u=k[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=n.preFilter;a;){for(s in i&&!(r=R.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=W.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(F," ")}),a=a.slice(i.length)),n.filter)!(r=U[s].exec(a))||c[s]&&!(r=c[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return t?a.length:a?ae.error(e):k(e,l).slice(0)},a=ae.compile=function(e,t){var i,r,o,a,l,u,h=[],m=[],_=T[e+" "];if(!_){for(t||(t=s(e)),i=t.length;i--;)(_=Le(t[i]))[b]?h.push(_):m.push(_);(_=T(e,(r=m,a=0<(o=h).length,l=0<r.length,u=function(e,t,i,s,u){var h,m,_,g=0,y="0",v=e&&[],b=[],x=c,S=e||l&&n.find.TAG("*",u),L=w+=null==x?1:Math.random()||.1,k=S.length;for(u&&(c=t==p||t||u);y!==k&&null!=(h=S[y]);y++){if(l&&h){for(m=0,t||h.ownerDocument==p||(d(h),i=!f);_=r[m++];)if(_(h,t||p,i)){s.push(h);break}u&&(w=L)}a&&((h=!_&&h)&&g--,e&&v.push(h))}if(g+=y,a&&y!==g){for(m=0;_=o[m++];)_(v,b,t,i);if(e){if(0<g)for(;y--;)v[y]||b[y]||(b[y]=z.call(s));b=we(b)}j.apply(s,b),u&&!e&&0<b.length&&1<g+o.length&&ae.uniqueSort(s)}return u&&(w=L,c=x),v},a?ce(u):u))).selector=e}return _},l=ae.select=function(e,t,i,r){var o,l,c,u,h,d="function"==typeof e&&e,p=!r&&s(e=d.selector||e);if(i=i||[],1===p.length){if(2<(l=p[0]=p[0].slice(0)).length&&"ID"===(c=l[0]).type&&9===t.nodeType&&f&&n.relative[l[1].type]){if(!(t=(n.find.ID(c.matches[0].replace(te,ie),t)||[])[0]))return i;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=U.needsContext.test(e)?0:l.length;o--&&(c=l[o],!n.relative[u=c.type]);)if((h=n.find[u])&&(r=h(c.matches[0].replace(te,ie),ee.test(l[0].type)&&ge(t.parentNode)||t))){if(l.splice(o,1),!(e=r.length&&ve(l)))return j.apply(i,r),i;break}}return(d||a(e,p))(r,t,!f,i,!t||ee.test(e)&&ge(t.parentNode)||t),i},i.sortStable=b.split("").sort(P).join("")===b,i.detectDuplicates=!!h,d(),i.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||he("type|href|height|width",(function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),i.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||he("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||he(B,(function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null})),ae}(e);x.find=S,x.expr=S.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=S.uniqueSort,x.text=S.getText,x.isXMLDoc=S.isXML,x.contains=S.contains,x.escapeSelector=S.escape;var L=function(e,t,i){for(var n=[],r=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&x(e).is(i))break;n.push(e)}return n},k=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},T=x.expr.match.needsContext;
vendor: 5,768 bytes, line 5
5function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(e,t,i){return m(t)?x.grep(e,(function(e,n){return!!t.call(e,n,e)!==i})):t.nodeType?x.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?x.grep(e,(function(e){return-1<a.call(t,e)!==i})):x.filter(t,e,i)}x.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?x.find.matchesSelector(n,e)?[n]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,i,n=this.length,r=this;if("string"!=typeof e)return this.pushStack(x(e).filter((function(){for(t=0;t<n;t++)if(x.contains(r[t],this))return!0})));for(i=this.pushStack([]),t=0;t<n;t++)x.find(e,r[t],i);return 1<n?x.uniqueSort(i):i},filter:function(e){return this.pushStack(M(this,e||[],!1))},not:function(e){return this.pushStack(M(this,e||[],!0))},is:function(e){return!!M(this,"string"==typeof e&&T.test(e)?x(e):e||[],!1).length}});var E,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,i){var n,r;if(!e)return this;if(i=i||E,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:z.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:_,!0)),P.test(n[1])&&x.isPlainObject(t))for(n in t)m(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(r=_.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==i.ready?i.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,E=x(_);var A=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),i=t.length;return this.filter((function(){for(var e=0;e<i;e++)if(x.contains(this,t[e]))return!0}))},closest:function(e,t){var i,n=0,r=this.length,o=[],s="string"!=typeof e&&x(e);if(!T.test(e))for(;n<r;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(s?-1<s.index(i):1===i.nodeType&&x.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(1<o.length?x.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?a.call(x(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return L(e,"parentNode")},parentsUntil:function(e,t,i){return L(e,"parentNode",i)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return L(e,"nextSibling")},prevAll:function(e){return L(e,"previousSibling")},nextUntil:function(e,t,i){return L(e,"nextSibling",i)},prevUntil:function(e,t,i){return L(e,"previousSibling",i)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return null!=e.contentDocument&&n(e.contentDocument)?e.contentDocument:(C(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(i,n){var r=x.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=x.filter(n,r)),1<this.length&&(j[e]||x.uniqueSort(r),A.test(e)&&r.reverse()),this.pushStack(r)}}));var I=/[^\x20\t\r\n\f]+/g;function B(e){return e}function D(e){throw e}function q(e,t,i,n){var r;try{e&&m(r=e.promise)?r.call(e).done(t).fail(i):e&&m(r=e.then)?r.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}x.Callbacks=function(e){var t,i;e="string"==typeof e?(t=e,i={},x.each(t.match(I)||[],(function(e,t){i[t]=!0})),i):x.extend({},e);var n,r,o,s,a=[],l=[],c=-1,u=function(){for(s=s||e.once,o=n=!0;l.length;c=-1)for(r=l.shift();++c<a.length;)!1===a[c].apply(r[0],r[1])&&e.stopOnFalse&&(c=a.length,r=!1);e.memory||(r=!1),n=!1,s&&(a=r?[]:"")},h={add:function(){return a&&(r&&!n&&(c=a.length-1,l.push(r)),function t(i){x.each(i,(function(i,n){m(n)?e.unique&&h.has(n)||a.push(n):n&&n.length&&"string"!==v(n)&&t(n)}))}(arguments),r&&!n&&u()),this},remove:function(){return x.each(arguments,(function(e,t){for(var i;-1<(i=x.inArray(t,a,i));)a.splice(i,1),i<=c&&c--})),this},has:function(e){return e?-1<x.inArray(e,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return s=l=[],a=r="",this},disabled:function(){return!a},lock:function(){return s=l=[],r||n||(a=r=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),n||u()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!o}};return h},x.extend({Deferred:function(t){var i=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return x.Deferred((function(t){x.each(i,(function(i,n){var r=m(e[n[4]])&&e[n[4]];o[n[1]]((function(){var e=r&&r.apply(this,arguments);e&&m(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[n[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(t,n,r){var o=0;function s(t,i,n,r){return function(){var a=this,l=arguments,c=function(){var e,c;
vendor: 5,963 bytes, line 5
5if(!(t<o)){if((e=n.apply(a,l))===i.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(c)?r?c.call(e,s(o,i,B,r),s(o,i,D,r)):(o++,c.call(e,s(o,i,B,r),s(o,i,D,r),s(o,i,B,i.notifyWith))):(n!==B&&(a=void 0,l=[e]),(r||i.resolveWith)(a,l))}},u=r?c:function(){try{c()}catch(e){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(e,u.stackTrace),o<=t+1&&(n!==D&&(a=void 0,l=[e]),i.rejectWith(a,l))}};t?u():(x.Deferred.getStackHook&&(u.stackTrace=x.Deferred.getStackHook()),e.setTimeout(u))}}return x.Deferred((function(e){i[0][3].add(s(0,e,m(r)?r:B,e.notifyWith)),i[1][3].add(s(0,e,m(t)?t:B)),i[2][3].add(s(0,e,m(n)?n:D))})).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},o={};return x.each(i,(function(e,t){var s=t[2],a=t[5];r[t[1]]=s.add,a&&s.add((function(){n=a}),i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,i=t,n=Array(i),o=r.call(arguments),s=x.Deferred(),a=function(e){return function(i){n[e]=this,o[e]=1<arguments.length?r.call(arguments):i,--t||s.resolveWith(n,o)}};if(t<=1&&(q(e,s.done(a(i)).resolve,s.reject,!t),"pending"===s.state()||m(o[i]&&o[i].then)))return s.then();for(;i--;)q(o[i],a(i),s.reject);return s.promise()}});var N=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,i){e.console&&e.console.warn&&t&&N.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},x.readyException=function(t){e.setTimeout((function(){throw t}))};var Z=x.Deferred();function H(){_.removeEventListener("DOMContentLoaded",H),e.removeEventListener("load",H),x.ready()}x.fn.ready=function(e){return Z.then(e).catch((function(e){x.readyException(e)})),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0)!==e&&0<--x.readyWait||Z.resolveWith(_,[x])}}),x.ready.then=Z.then,"complete"===_.readyState||"loading"!==_.readyState&&!_.documentElement.doScroll?e.setTimeout(x.ready):(_.addEventListener("DOMContentLoaded",H),e.addEventListener("load",H));var F=function(e,t,i,n,r,o,s){var a=0,l=e.length,c=null==i;if("object"===v(i))for(a in r=!0,i)F(e,t,a,i[a],!0,o,s);else if(void 0!==n&&(r=!0,m(n)||(s=!0),c&&(s?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(x(e),i)})),t))for(;a<l;a++)t(e[a],i,s?n:n.call(e[a],a,t(e[a],i)));return r?e:c?t.call(e):l?t(e[0],i):o},R=/^-ms-/,W=/-([a-z])/g;function $(e,t){return t.toUpperCase()}function G(e){return e.replace(R,"ms-").replace(W,$)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function U(){this.expando=x.expando+U.uid++}U.uid=1,U.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,r=this.cache(e);if("string"==typeof t)r[G(t)]=i;else for(n in t)r[G(n)]=t[n];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][G(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(G):(t=G(t))in n?[t]:t.match(I)||[]).length;for(;i--;)delete n[t[i]]}(void 0===t||x.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var Y=new U,Q=new U,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,X=/[A-Z]/g;function K(e,t,i){var n,r;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(X,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===(r=i)||"false"!==r&&("null"===r?null:r===+r+""?+r:J.test(r)?JSON.parse(r):r)}catch(e){}Q.set(e,t,i)}else i=void 0;return i}x.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,i){return Q.access(e,t,i)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,i){return Y.access(e,t,i)},_removeData:function(e,t){Y.remove(e,t)}}),x.fn.extend({data:function(e,t){var i,n,r,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(r=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){for(i=s.length;i--;)s[i]&&0===(n=s[i].name).indexOf("data-")&&(n=G(n.slice(5)),K(o,n,r[n]));Y.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){Q.set(this,e)})):F(this,(function(t){var i;if(o&&void 0===t)return void 0!==(i=Q.get(o,e))||void 0!==(i=K(o,e))?i:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),x.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=Y.get(e,t),i&&(!n||Array.isArray(i)?n=Y.access(e,t,x.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=x.queue(e,t),n=i.length,r=i.shift(),o=x._queueHooks(e,t);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete o.stop,r.call(e,(function(){x.dequeue(e,t)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return Y.get(e,i)||Y.access(e,i,{empty:x.Callbacks("once memory").add((function(){Y.remove(e,[t+"queue",i])}))})}}),x.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?x.queue(this[0],e):void 0===t?this:this.each((function(){var i=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&x.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){x.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,r=x.Deferred(),o=this,s=this.length,a=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;
vendor: 7,961 bytes, line 5
5)(i=Y.get(o[s],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),r.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ne=_.documentElement,re=function(e){return x.contains(e.ownerDocument,e)},oe={composed:!0};ne.getRootNode&&(re=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var se=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&re(e)&&"none"===x.css(e,"display")};function ae(e,t,i,n){var r,o,s=20,a=n?function(){return n.cur()}:function(){return x.css(e,t,"")},l=a(),c=i&&i[3]||(x.cssNumber[t]?"":"px"),u=e.nodeType&&(x.cssNumber[t]||"px"!==c&&+l)&&te.exec(x.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)x.style(e,t,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,x.style(e,t,u+c),i=i||[]}return i&&(u=+u||+l||0,r=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=r)),r}var le={};function ce(e,t){for(var i,n,r,o,s,a,l,c=[],u=0,h=e.length;u<h;u++)(n=e[u]).style&&(i=n.style.display,t?("none"===i&&(c[u]=Y.get(n,"display")||null,c[u]||(n.style.display="")),""===n.style.display&&se(n)&&(c[u]=(l=s=o=void 0,s=(r=n).ownerDocument,a=r.nodeName,(l=le[a])||(o=s.body.appendChild(s.createElement(a)),l=x.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),le[a]=l)))):"none"!==i&&(c[u]="none",Y.set(n,"display",i)));for(u=0;u<h;u++)null!=c[u]&&(e[u].style.display=c[u]);return e}x.fn.extend({show:function(){return ce(this,!0)},hide:function(){return ce(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){se(this)?x(this).show():x(this).hide()}))}});var ue,he,de=/^(?:checkbox|radio)$/i,pe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;ue=_.createDocumentFragment().appendChild(_.createElement("div")),(he=_.createElement("input")).setAttribute("type","radio"),he.setAttribute("checked","checked"),he.setAttribute("name","t"),ue.appendChild(he),p.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="<option></option>",p.option=!!ue.lastChild;var fe={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,"",""]};function _e(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t)?x.merge([e],i):i}function ge(e,t){for(var i=0,n=e.length;i<n;i++)Y.set(e[i],"globalEval",!t||Y.get(t[i],"globalEval"))}fe.tbody=fe.tfoot=fe.colgroup=fe.caption=fe.thead,fe.th=fe.td,p.option||(fe.optgroup=fe.option=[1,"<select multiple='multiple'>","</select>"]);var ye=/<|&#?\w+;/;function ve(e,t,i,n,r){for(var o,s,a,l,c,u,h=t.createDocumentFragment(),d=[],p=0,m=e.length;p<m;p++)if((o=e[p])||0===o)if("object"===v(o))x.merge(d,o.nodeType?[o]:o);else if(ye.test(o)){for(s=s||h.appendChild(t.createElement("div")),a=(pe.exec(o)||["",""])[1].toLowerCase(),l=fe[a]||fe._default,s.innerHTML=l[1]+x.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;x.merge(d,s.childNodes),(s=h.firstChild).textContent=""}else d.push(t.createTextNode(o));for(h.textContent="",p=0;o=d[p++];)if(n&&-1<x.inArray(o,n))r&&r.push(o);else if(c=re(o),s=_e(h.appendChild(o),"script"),c&&ge(s),i)for(u=0;o=s[u++];)me.test(o.type||"")&&i.push(o);return h}var be=/^key/,xe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,we=/^([^.]*)(?:\.(.+)|)/;function Se(){return!0}function Le(){return!1}function ke(e,t){return e===function(){try{return _.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,i,n,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)Te(e,a,i,n,t[a],o);return e}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=Le;else if(!r)return e;return 1===o&&(s=r,(r=function(e){return x().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=x.guid++)),e.each((function(){x.event.add(this,t,r,n,i)}))}function Ce(e,t,i){i?(Y.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var n,o,s=Y.get(this,t);if(1&e.isTrigger&&this[t]){if(s.length)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(s=r.call(arguments),Y.set(this,t,s),n=i(this,t),this[t](),s!==(o=Y.get(this,t))||n?Y.set(this,t,!1):o={},s!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else s.length&&(Y.set(this,t,{value:x.event.trigger(x.extend(s[0],x.Event.prototype),s.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,t)&&x.event.add(e,t,Se)}x.event={global:{},add:function(e,t,i,n,r){var o,s,a,l,c,u,h,d,p,m,f,_=Y.get(e);if(V(e))for(i.handler&&(i=(o=i).handler,r=o.selector),r&&x.find.matchesSelector(ne,r),i.guid||(i.guid=x.guid++),(l=_.events)||(l=_.events=Object.create(null)),(s=_.handle)||(s=_.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(I)||[""]).length;c--;)p=f=(a=we.exec(t[c])||[])[1],m=(a[2]||"").split(".").sort(),p&&(h=x.event.special[p]||{},p=(r?h.delegateType:h.bindType)||p,h=x.event.special[p]||{},u=x.extend({type:p,origType:f,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:m.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,n,m,s)||e.addEventListener&&e.addEventListener(p,s)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),x.event.global[p]=!0)},remove:function(e,t,i,n,r){var o,s,a,l,c,u,h,d,p,m,f,_=Y.hasData(e)&&Y.get(e);if(_&&(l=_.events)){for(c=(t=(t||"").match(I)||[""]).length;c--;)if(p=f=(a=we.exec(t[c])||[])[1],m=(a[2]||"").split(".").sort(),p){for(h=x.event.special[p]||{},d=l[p=(n?h.delegateType:h.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)u=d[o],!r&&f!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));s&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,m,_.handle)||x.removeEvent(e,p,_.handle),delete l[p])}else for(p in l)x.event.remove(e,p+t[c],i,n,!0);x.isEmptyObject(l)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,i,n,r,o,s,a=new Array(arguments.length),l=x.event.fix(e),c=(Y.get(this,"events")||Object.create(null))[l.type]||[],u=x.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=x.event.handlers.call(this,l,c),t=0;(r=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,i=0;(o=r.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(n=((x.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var i,n,r,o,s,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},i=0;i<l;i++)void 0===s[r=(n=t[i]).selector+" "]&&(s[r]=n.needsContext?-1<x(r,this).index(c):x.find(r,this,null,[c]).length),s[r]&&o.push(n);o.length&&a.push({elem:c,handlers:o})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:!0,configurable:!0,get:m(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]}
vendor: 2,431 bytes, line 5
5,set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return de.test(t.type)&&t.click&&C(t,"input")&&Ce(t,"click",Se),!1},trigger:function(e){var t=this||e;return de.test(t.type)&&t.click&&C(t,"input")&&Ce(t,"click"),!0},_default:function(e){var t=e.target;return de.test(t.type)&&t.click&&C(t,"input")&&Y.get(t,"click")||C(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Se:Le,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Le,isPropagationStopped:Le,isImmediatePropagationStopped:Le,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Se,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Se,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Se,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.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:function(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&xe.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(e,t){x.event.special[e]={setup:function(){return Ce(this,e,ke),!1},trigger:function(){return Ce(this,e),!0},delegateType:t}}
vendor: 5,906 bytes, line 5
5)),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||x.contains(this,n))||(e.type=r.origType,i=r.handler.apply(this,arguments),e.type=t),i}}})),x.fn.extend({on:function(e,t,i,n){return Te(this,e,t,i,n)},one:function(e,t,i,n){return Te(this,e,t,i,n,1)},off:function(e,t,i){var n,r;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,x(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=Le),this.each((function(){x.event.remove(this,e,i,t)}))}});var Pe=/<script|<style|<link/i,Me=/checked\s*(?:[^=]|=\s*.checked.)/i,Ee=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function ze(e,t){return C(e,"table")&&C(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Ae(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var i,n,r,o,s,a;if(1===t.nodeType){if(Y.hasData(e)&&(a=Y.get(e).events))for(r in Y.remove(t,"handle events"),a)for(i=0,n=a[r].length;i<n;i++)x.event.add(t,r,a[r][i]);Q.hasData(e)&&(o=Q.access(e),s=x.extend({},o),Q.set(t,s))}}function Ie(e,t,i,n){t=o(t);var r,s,a,l,c,u,h=0,d=e.length,f=d-1,_=t[0],g=m(_);if(g||1<d&&"string"==typeof _&&!p.checkClone&&Me.test(_))return e.each((function(r){var o=e.eq(r);g&&(t[0]=_.call(this,r,o.html())),Ie(o,t,i,n)}));if(d&&(s=(r=ve(t,e[0].ownerDocument,!1,e,n)).firstChild,1===r.childNodes.length&&(r=s),s||n)){for(l=(a=x.map(_e(r,"script"),Ae)).length;h<d;h++)c=r,h!==f&&(c=x.clone(c,!0,!0),l&&x.merge(a,_e(c,"script"))),i.call(e[h],c,h);if(l)for(u=a[a.length-1].ownerDocument,x.map(a,je),h=0;h<l;h++)c=a[h],me.test(c.type||"")&&!Y.access(c,"globalEval")&&x.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?x._evalUrl&&!c.noModule&&x._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(Ee,""),c,u))}return e}function Be(e,t,i){for(var n,r=t?x.filter(t,e):e,o=0;null!=(n=r[o]);o++)i||1!==n.nodeType||x.cleanData(_e(n)),n.parentNode&&(i&&re(n)&&ge(_e(n,"script")),n.parentNode.removeChild(n));return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var n,r,o,s,a,l,c,u=e.cloneNode(!0),h=re(e);if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(s=_e(u),n=0,r=(o=_e(e)).length;n<r;n++)a=o[n],"input"===(c=(l=s[n]).nodeName.toLowerCase())&&de.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(i)for(o=o||_e(e),s=s||_e(u),n=0,r=o.length;n<r;n++)Oe(o[n],s[n]);else Oe(e,u);return 0<(s=_e(u,"script")).length&&ge(s,!h&&_e(e,"script")),u},cleanData:function(e){for(var t,i,n,r=x.event.special,o=0;void 0!==(i=e[o]);o++)if(V(i)){if(t=i[Y.expando]){if(t.events)for(n in t.events)r[n]?x.event.remove(i,n):x.removeEvent(i,n,t.handle);i[Y.expando]=void 0}i[Q.expando]&&(i[Q.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return F(this,(function(e){return void 0===e?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ie(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ze(this,e).appendChild(e)}))},prepend:function(){return Ie(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ze(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ie(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ie(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(_e(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return x.clone(this,e,t)}))},html:function(e){return F(this,(function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Pe.test(e)&&!fe[(pe.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(x.cleanData(_e(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ie(this,arguments,(function(t){var i=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(_e(this)),i&&i.replaceChild(t,this))}),e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){x.fn[e]=function(e){for(var i,n=[],r=x(e),o=r.length-1,a=0;a<=o;a++)i=a===o?this:this.clone(!0),x(r[a])[t](i),s.apply(n,i.get());return this.pushStack(n)}}));var De=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),qe=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=e),i.getComputedStyle(t)},Ne=function(e,t,i){var n,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in n=i.call(e),t)e.style[r]=o[r];return n},Ze=new RegExp(ie.join("|"),"i");function He(e,t,i){var n,r,o,s,a=e.style;return(i=i||qe(e))&&(""!==(s=i.getPropertyValue(t)||i[t])||re(e)||(s=x.style(e,t)),!p.pixelBoxStyles()&&De.test(s)&&Ze.test(t)&&(n=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=i.width,a.width=n,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+"":s}function Fe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;
5left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ne.appendChild(c).appendChild(u);var t=e.getComputedStyle(u);n="1%"!==t.top,l=12===i(t.marginLeft),u.style.right="60%",s=36===i(t.right),r=36===i(t.width),u.style.position="absolute",o=12===i(u.offsetWidth/3),ne.removeChild(c),u=null}}function i(e){return Math.round(parseFloat(e))}var n,r,o,s,a,l,c=_.createElement("div"),u=_.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===u.style.backgroundClip,x.extend(p,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,i,n,r;return null==a&&(t=_.createElement("table"),i=_.createElement("tr"),n=_.createElement("div"),t.style.cssText="position:absolute;left:-11111px",i.style.height="1px",n.style.height="9px",ne.appendChild(t).appendChild(i).appendChild(n),r=e.getComputedStyle(i),a=3<parseInt(r.height),ne.removeChild(t)),a}}
vendor: 6,437 bytes, line 5
5))}();var Re=["Webkit","Moz","ms"],We=_.createElement("div").style,$e={};function Ge(e){return x.cssProps[e]||$e[e]||(e in We?e:$e[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=Re.length;i--;)if((e=Re[i]+t)in We)return e}(e)||e)}var Ve=/^(none|table(?!-c[ea]).+)/,Ue=/^--/,Ye={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function Je(e,t,i){var n=te.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function Xe(e,t,i,n,r,o){var s="width"===t?1:0,a=0,l=0;if(i===(n?"border":"content"))return 0;for(;s<4;s+=2)"margin"===i&&(l+=x.css(e,i+ie[s],!0,r)),n?("content"===i&&(l-=x.css(e,"padding"+ie[s],!0,r)),"margin"!==i&&(l-=x.css(e,"border"+ie[s]+"Width",!0,r))):(l+=x.css(e,"padding"+ie[s],!0,r),"padding"!==i?l+=x.css(e,"border"+ie[s]+"Width",!0,r):a+=x.css(e,"border"+ie[s]+"Width",!0,r));return!n&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l}function Ke(e,t,i){var n=qe(e),r=(!p.boxSizingReliable()||i)&&"border-box"===x.css(e,"boxSizing",!1,n),o=r,s=He(e,t,n),a="offset"+t[0].toUpperCase()+t.slice(1);if(De.test(s)){if(!i)return s;s="auto"}return(!p.boxSizingReliable()&&r||!p.reliableTrDimensions()&&C(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===x.css(e,"display",!1,n))&&e.getClientRects().length&&(r="border-box"===x.css(e,"boxSizing",!1,n),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+Xe(e,t,i||(r?"border":"content"),o,n,s)+"px"}function et(e,t,i,n,r){return new et.prototype.init(e,t,i,n,r)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=He(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!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,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=G(t),l=Ue.test(t),c=e.style;if(l||(t=Ge(a)),s=x.cssHooks[t]||x.cssHooks[a],void 0===i)return s&&"get"in s&&void 0!==(r=s.get(e,!1,n))?r:c[t];"string"==(o=typeof i)&&(r=te.exec(i))&&r[1]&&(i=ae(e,t,r),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=r&&r[3]||(x.cssNumber[a]?"":"px")),p.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(i=s.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var r,o,s,a=G(t);return Ue.test(t)||(t=Ge(a)),(s=x.cssHooks[t]||x.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,i)),void 0===r&&(r=He(e,t,n)),"normal"===r&&t in Qe&&(r=Qe[t]),""===i||i?(o=parseFloat(r),!0===i||isFinite(o)?o||0:r):r}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,i,n){if(i)return!Ve.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ke(e,t,n):Ne(e,Ye,(function(){return Ke(e,t,n)}))},set:function(e,i,n){var r,o=qe(e),s=!p.scrollboxSize()&&"absolute"===o.position,a=(s||n)&&"border-box"===x.css(e,"boxSizing",!1,o),l=n?Xe(e,t,n,a,o):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Xe(e,t,"border",!1,o)-.5)),l&&(r=te.exec(i))&&"px"!==(r[3]||"px")&&(e.style[t]=i,i=x.css(e,t)),Je(0,i,l)}}})),x.cssHooks.marginLeft=Fe(p.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(He(e,"marginLeft"))||e.getBoundingClientRect().left-Ne(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(e,t){x.cssHooks[e+t]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];n<4;n++)r[e+ie[n]+t]=o[n]||o[n-2]||o[0];return r}},"margin"!==e&&(x.cssHooks[e+t].set=Je)})),x.fn.extend({css:function(e,t){return F(this,(function(e,t,i){var n,r,o={},s=0;if(Array.isArray(t)){for(n=qe(e),r=t.length;s<r;s++)o[t[s]]=x.css(e,t[s],!1,n);return o}return void 0!==i?x.style(e,t,i):x.css(e,t)}),e,t,1<arguments.length)}}),((x.Tween=et).prototype={constructor:et,init:function(e,t,i,n,r,o){this.elem=e,this.prop=i,this.easing=r||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(x.cssNumber[i]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,i=et.propHooks[this.prop];return this.options.duration?this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):et.propHooks._default.set(this),this}}).init.prototype=et.prototype,(et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[Ge(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=et.prototype.init,x.fx.step={};var tt,it,nt,rt,ot=/^(?:toggle|show|hide)$/,st=/queueHooks$/;function at(){it&&(!1===_.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(at):e.setTimeout(at,x.fx.interval),x.fx.tick())}function lt(){return e.setTimeout((function(){tt=void 0})),tt=Date.now()}function ct(e,t){var i,n=0,r={height:e};for(t=t?1:0;n<4;n+=2-t)r["margin"+(i=ie[n])]=r["padding"+i]=e;return t&&(r.opacity=r.width=e),r}function ut(e,t,i){for(var n,r=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),o=0,s=r.length;o<s;o++)if(n=r[o].call(i,t,e))return n}function ht(e,t,i){var n,r,o=0,s=ht.prefilters.length,a=x.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=tt||lt(),i=Math.max(0,c.startTime+c.duration-t),n=1-(i/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(n);return a.notifyWith(e,[c,n,i]),n<1&&s?i:(s||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},i),originalProperties:t,originalOptions:i,startTime:tt||lt(),duration:i.duration,tweens:[],createTween:function(t,i){var n=x.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||
vendor: 4,108 bytes, line 5
5c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)c.tweens[i].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var i,n,r,o,s;for(i in e)if(r=t[n=G(i)],o=e[i],Array.isArray(o)&&(r=o[1],o=e[i]=o[0]),i!==n&&(e[n]=o,delete e[i]),(s=x.cssHooks[n])&&"expand"in s)for(i in o=s.expand(o),delete e[n],o)i in e||(e[i]=o[i],t[i]=r);else t[n]=r}(u,c.opts.specialEasing);o<s;o++)if(n=ht.prefilters[o].call(c,e,u,c.opts))return m(n.stop)&&(x._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return x.map(u,ut,c),m(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),x.fx.timer(x.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}x.Animation=x.extend(ht,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return ae(i.elem,e,te.exec(t),i),i}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(I);for(var i,n=0,r=e.length;n<r;n++)i=e[n],ht.tweeners[i]=ht.tweeners[i]||[],ht.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,r,o,s,a,l,c,u,h="width"in t||"height"in t,d=this,p={},m=e.style,f=e.nodeType&&se(e),_=Y.get(e,"fxshow");for(n in i.queue||(null==(s=x._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always((function(){d.always((function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()}))}))),t)if(r=t[n],ot.test(r)){if(delete t[n],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!_||void 0===_[n])continue;f=!0}p[n]=_&&_[n]||x.style(e,n)}if((l=!x.isEmptyObject(t))||!x.isEmptyObject(p))for(n in h&&1===e.nodeType&&(i.overflow=[m.overflow,m.overflowX,m.overflowY],null==(c=_&&_.display)&&(c=Y.get(e,"display")),"none"===(u=x.css(e,"display"))&&(c?u=c:(ce([e],!0),c=e.style.display||c,u=x.css(e,"display"),ce([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===x.css(e,"float")&&(l||(d.done((function(){m.display=c})),null==c&&(u=m.display,c="none"===u?"":u)),m.display="inline-block")),i.overflow&&(m.overflow="hidden",d.always((function(){m.overflow=i.overflow[0],m.overflowX=i.overflow[1],m.overflowY=i.overflow[2]}))),l=!1,p)l||(_?"hidden"in _&&(f=_.hidden):_=Y.access(e,"fxshow",{display:c}),o&&(_.hidden=!f),f&&ce([e],!0),d.done((function(){for(n in f||ce([e]),Y.remove(e,"fxshow"),p)x.style(e,n,p[n])}))),l=ut(f?_[n]:0,n,d),n in _||(_[n]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),x.speed=function(e,t,i){var n=e&&"object"==typeof e?x.extend({},e):{complete:i||!i&&t||m(e)&&e,duration:e,easing:i&&t||t&&!m(t)&&t};return x.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in x.fx.speeds?n.duration=x.fx.speeds[n.duration]:n.duration=x.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){m(n.old)&&n.old.call(this),n.queue&&x.dequeue(this,n.queue)},n},x.fn.extend({fadeTo:function(e,t,i,n){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var r=x.isEmptyObject(e),o=x.speed(t,i,n),s=function(){var t=ht(this,x.extend({},e),o);(r||Y.get(this,"finish"))&&t.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=x.timers,s=Y.get(this);if(r)s[r]&&s[r].stop&&n(s[r]);else for(r in s)s[r]&&s[r].stop&&st.test(r)&&n(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(i),t=!1,o.splice(r,1));!t&&i||x.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=Y.get(this),n=i[e+"queue"],r=i[e+"queueHooks"],o=x.timers,s=n?n.length:0;for(i.finish=!0,x.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1)
vendor: 5,991 bytes, line 5
5);for(t=0;t<s;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish}))}}),x.each(["toggle","show","hide"],(function(e,t){var i=x.fn[t];x.fn[t]=function(e,n,r){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(ct(t,!0),e,n,r)}})),x.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){x.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}})),x.timers=[],x.fx.tick=function(){var e,t=0,i=x.timers;for(tt=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||x.fx.stop(),tt=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){it||(it=!0,at())},x.fx.stop=function(){it=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(t,i){return t=x.fx&&x.fx.speeds[t]||t,i=i||"fx",this.queue(i,(function(i,n){var r=e.setTimeout(i,t);n.stop=function(){e.clearTimeout(r)}}))},nt=_.createElement("input"),rt=_.createElement("select").appendChild(_.createElement("option")),nt.type="checkbox",p.checkOn=""!==nt.value,p.optSelected=rt.selected,(nt=_.createElement("input")).value="t",nt.type="radio",p.radioValue="t"===nt.value;var dt,pt=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return F(this,x.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,i){var n,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?x.prop(e,t,i):(1===o&&x.isXMLDoc(e)||(r=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?dt:void 0)),void 0!==i?null===i?void x.removeAttr(e,t):r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:(e.setAttribute(t,i+""),i):r&&"get"in r&&null!==(n=r.get(e,t))?n:null==(n=x.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&C(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,r=t&&t.match(I);if(r&&1===e.nodeType)for(;i=r[n++];)e.removeAttribute(i)}}),dt={set:function(e,t,i){return!1===t?x.removeAttr(e,i):e.setAttribute(i,i),i}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=pt[t]||x.find.attr;pt[t]=function(e,t,n){var r,o,s=t.toLowerCase();return n||(o=pt[s],pt[s]=r,r=null!=i(e,t,n)?s:null,pt[s]=o),r}}));var mt=/^(?:input|select|textarea|button)$/i,ft=/^(?:a|area)$/i;function _t(e){return(e.match(I)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function yt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(I)||[]}x.fn.extend({prop:function(e,t){return F(this,x.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each((function(){delete this[x.propFix[e]||e]}))}}),x.extend({prop:function(e,t,i){var n,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(e)||(t=x.propFix[t]||t,r=x.propHooks[t]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):mt.test(e.nodeName)||ft.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(e){var t,i,n,r,o,s,a,l=0;if(m(e))return this.each((function(t){x(this).addClass(e.call(this,t,gt(this)))}));if((t=yt(e)).length)for(;i=this[l++];)if(r=gt(i),n=1===i.nodeType&&" "+_t(r)+" "){for(s=0;o=t[s++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");r!==(a=_t(n))&&i.setAttribute("class",a)}return this},removeClass:function(e){var t,i,n,r,o,s,a,l=0;if(m(e))return this.each((function(t){x(this).removeClass(e.call(this,t,gt(this)))}));if(!arguments.length)return this.attr("class","");if((t=yt(e)).length)for(;i=this[l++];)if(r=gt(i),n=1===i.nodeType&&" "+_t(r)+" "){for(s=0;o=t[s++];)for(;-1<n.indexOf(" "+o+" ");)n=n.replace(" "+o+" "," ");r!==(a=_t(n))&&i.setAttribute("class",a)}return this},toggleClass:function(e,t){var i=typeof e,n="string"===i||Array.isArray(e);return"boolean"==typeof t&&n?t?this.addClass(e):this.removeClass(e):m(e)?this.each((function(i){x(this).toggleClass(e.call(this,i,gt(this),t),t)})):this.each((function(){var t,r,o,s;if(n)for(r=0,o=x(this),s=yt(e);t=s[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==i||((t=gt(this))&&Y.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Y.get(this,"__className__")||""))}))},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&-1<(" "+_t(gt(i))+" ").indexOf(t))return!0;return!1}});var vt=/\r/g;x.fn.extend({val:function(e){var t,i,n,r=this[0];return arguments.length?(n=m(e),this.each((function(i){var r;1===this.nodeType&&(null==(r=n?e.call(this,i,x(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=x.map(r,(function(e){return null==e?"":e+""}))),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=x.valHooks[r.type]||x.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(vt,""):null==i?"":i:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:_t(x.text(e))}},select:{get:function(e){var t,i,n,r=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:r.length;for(n=o<0?l:s?o:0;n<l;n++)if(((i=r[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!C(i.parentNode,"optgroup"))){if(t=x(i).val(),s)return t;a.push(t)}return a}
vendor: 5,480 bytes, line 5
5,set:function(e,t){for(var i,n,r=e.options,o=x.makeArray(t),s=r.length;s--;)((n=r[s]).selected=-1<x.inArray(x.valHooks.option.get(n),o))&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<x.inArray(x(e).val(),t)}},p.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),p.focusin="onfocusin"in e;var bt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(t,i,n,r){var o,s,a,l,c,h,d,p,g=[n||_],y=u.call(t,"type")?t.type:t,v=u.call(t,"namespace")?t.namespace.split("."):[];if(s=p=a=n=n||_,3!==n.nodeType&&8!==n.nodeType&&!bt.test(y+x.event.triggered)&&(-1<y.indexOf(".")&&(y=(v=y.split(".")).shift(),v.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[x.expando]?t:new x.Event(y,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),i=null==i?[t]:x.makeArray(i,[t]),d=x.event.special[y]||{},r||!d.trigger||!1!==d.trigger.apply(n,i))){if(!r&&!d.noBubble&&!f(n)){for(l=d.delegateType||y,bt.test(l+y)||(s=s.parentNode);s;s=s.parentNode)g.push(s),a=s;a===(n.ownerDocument||_)&&g.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=g[o++])&&!t.isPropagationStopped();)p=s,t.type=1<o?l:d.bindType||y,(h=(Y.get(s,"events")||Object.create(null))[t.type]&&Y.get(s,"handle"))&&h.apply(s,i),(h=c&&s[c])&&h.apply&&V(s)&&(t.result=h.apply(s,i),!1===t.result&&t.preventDefault());return t.type=y,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(g.pop(),i)||!V(n)||c&&m(n[y])&&!f(n)&&((a=n[c])&&(n[c]=null),x.event.triggered=y,t.isPropagationStopped()&&p.addEventListener(y,xt),n[y](),t.isPropagationStopped()&&p.removeEventListener(y,xt),x.event.triggered=void 0,a&&(n[c]=a)),t.result}},simulate:function(e,t,i){var n=x.extend(new x.Event,i,{type:e,isSimulated:!0});x.event.trigger(n,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return x.event.trigger(e,t,i,!0)}}),p.focusin||x.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,r=Y.access(n,t);r||n.addEventListener(e,i,!0),Y.access(n,t,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=Y.access(n,t)-1;r?Y.access(n,t,r):(n.removeEventListener(e,i,!0),Y.remove(n,t))}}}));var wt=e.location,St={guid:Date.now()},Lt=/\?/;x.parseXML=function(t){var i;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+t),i};var kt=/\[\]$/,Tt=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,Pt=/^(?:input|select|textarea|keygen)/i;function Mt(e,t,i,n){var r;if(Array.isArray(t))x.each(t,(function(t,r){i||kt.test(e)?n(e,r):Mt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,i,n)}));else if(i||"object"!==v(t))n(e,t);else for(r in t)Mt(e+"["+r+"]",t[r],i,n)}x.param=function(e,t){var i,n=[],r=function(e,t){var i=m(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,(function(){r(this.name,this.value)}));else for(i in e)Mt(i,e[i],t,r);return n.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Pt.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!de.test(e))})).map((function(e,t){var i=x(this).val();return null==i?null:Array.isArray(i)?x.map(i,(function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}})):{name:t.name,value:i.replace(Tt,"\r\n")}})).get()}});var Et=/%20/g,zt=/#.*$/,At=/([?&])_=[^&]*/,jt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,It=/^\/\//,Bt={},Dt={},qt="*/".concat("*"),Nt=_.createElement("a");function Zt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,r=0,o=t.toLowerCase().match(I)||[];if(m(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Ht(e,t,i,n){var r={},o=e===Dt;function s(a){var l;return r[a]=!0,x.each(e[a]||[],(function(e,a){var c=a(t,i,n);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)})),l}return s(t.dataTypes[0])||!r["*"]&&s("*")}function Ft(e,t){var i,n,r=x.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&x.extend(!0,e,n),e}Nt.href=wt.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qt,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":x.parseXML}
vendor: 6,135 bytes, line 5
5,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,x.ajaxSettings),t):Ft(x.ajaxSettings,e)},ajaxPrefilter:Zt(Bt),ajaxTransport:Zt(Dt),ajax:function(t,i){"object"==typeof t&&(i=t,t=void 0),i=i||{};var n,r,o,s,a,l,c,u,h,d,p=x.ajaxSetup({},i),m=p.context||p,f=p.context&&(m.nodeType||m.jquery)?x(m):x.event,g=x.Deferred(),y=x.Callbacks("once memory"),v=p.statusCode||{},b={},w={},S="canceled",L={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=jt.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)L.always(e[L.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||S;return n&&n.abort(t),k(0,t),this}};if(g.promise(L),p.url=((t||p.url||wt.href)+"").replace(It,wt.protocol+"//"),p.type=i.method||i.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(I)||[""],null==p.crossDomain){l=_.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Nt.protocol+"//"+Nt.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),Ht(Bt,p,i,L),c)return L;for(h in(u=x.event&&p.global)&&0==x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ot.test(p.type),r=p.url.replace(zt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Et,"+")):(d=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(Lt.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(At,"$1"),d=(Lt.test(r)?"&":"?")+"_="+St.guid+++d),p.url=r+d),p.ifModified&&(x.lastModified[r]&&L.setRequestHeader("If-Modified-Since",x.lastModified[r]),x.etag[r]&&L.setRequestHeader("If-None-Match",x.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||i.contentType)&&L.setRequestHeader("Content-Type",p.contentType),L.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+qt+"; q=0.01":""):p.accepts["*"]),p.headers)L.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(m,L,p)||c))return L.abort();if(S="abort",y.add(p.complete),L.done(p.success),L.fail(p.error),n=Ht(Dt,p,i,L)){if(L.readyState=1,u&&f.trigger("ajaxSend",[L,p]),c)return L;p.async&&0<p.timeout&&(a=e.setTimeout((function(){L.abort("timeout")}),p.timeout));try{c=!1,n.send(b,k)}catch(t){if(c)throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,i,s,l){var h,d,_,b,w,S=i;c||(c=!0,a&&e.clearTimeout(a),n=void 0,o=l||"",L.readyState=0<t?4:0,h=200<=t&&t<300||304===t,s&&(b=function(e,t,i){for(var n,r,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)o=l[0];else{for(r in i){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),i[o]}(p,L,s)),!h&&-1<x.inArray("script",p.dataTypes)&&(p.converters["text script"]=function(){}),b=function(e,t,i,n){var r,o,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=u.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(r in c)if((a=r.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[r]:!0!==c[r]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,b,L,h),h?(p.ifModified&&((w=L.getResponseHeader("Last-Modified"))&&(x.lastModified[r]=w),(w=L.getResponseHeader("etag"))&&(x.etag[r]=w)),204===t||"HEAD"===p.type?S="nocontent":304===t?S="notmodified":(S=b.state,d=b.data,h=!(_=b.error))):(_=S,!t&&S||(S="error",t<0&&(t=0))),L.status=t,L.statusText=(i||S)+"",h?g.resolveWith(m,[d,S,L]):g.rejectWith(m,[L,S,_]),L.statusCode(v),v=void 0,u&&f.trigger(h?"ajaxSuccess":"ajaxError",[L,p,h?d:_]),y.fireWith(m,[L,S]),u&&(f.trigger("ajaxComplete",[L,p]),--x.active||x.event.trigger("ajaxStop")))}return L},getJSON:function(e,t,i){return x.get(e,t,i,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,i,n,r){return m(i)&&(r=r||n,n=i,i=void 0),x.ajax(x.extend({url:e,type:t,dataType:r,data:i,success:n},x.isPlainObject(e)&&e))}})),x.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),x._evalUrl=function(e,t,i){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,i)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return m(e)?this.each((function(t){x(this).wrapInner(e.call(this,t))})):this.each((function(){var t=x(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=m(e);return this.each((function(i){x(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Rt={0:200,1223:204},Wt=x.ajaxSettings.xhr();
vendor: 2,201 bytes, line 5
5p.cors=!!Wt&&"withCredentials"in Wt,p.ajax=Wt=!!Wt,x.ajaxTransport((function(t){var i,n;if(p.cors||Wt&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);i=function(e){return function(){i&&(i=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Rt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=i(),n=a.onerror=a.ontimeout=i("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout((function(){i&&n()}))},i=i("abort");try{a.send(t.hasContent&&t.data||null)}catch(r){if(i)throw r}},abort:function(){i&&i()}}})),x.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),x.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(n,r){t=x("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&r("error"===e.type?404:200,e.type)}),_.head.appendChild(t[0])},abort:function(){i&&i()}}}));var $t,Gt=[],Vt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||x.expando+"_"+St.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",(function(t,i,n){var r,o,s,a=!1!==t.jsonp&&(Vt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(t.data)&&"data");
vendor: 1,655 bytes, line 5
5if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=m(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Vt,"$1"+r):!1!==t.jsonp&&(t.url+=(Lt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||x.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){s=arguments},n.always((function(){void 0===o?x(e).removeProp(r):e[r]=o,t[r]&&(t.jsonpCallback=i.jsonpCallback,Gt.push(r)),s&&m(o)&&o(s[0]),s=o=void 0})),"script"})),p.createHTMLDocument=(($t=_.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===$t.childNodes.length),x.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(p.createHTMLDocument?((n=(t=_.implementation.createHTMLDocument("")).createElement("base")).href=_.location.href,t.head.appendChild(n)):t=_),o=!i&&[],(r=P.exec(e))?[t.createElement(r[1])]:(r=ve([e],t,o),o&&o.length&&x(o).remove(),x.merge([],r.childNodes)));var n,r,o},x.fn.load=function(e,t,i){var n,r,o,s=this,a=e.indexOf(" ");return-1<a&&(n=_t(e.slice(a)),e=e.slice(0,a)),m(t)?(i=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<s.length&&x.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){o=arguments,s.html(n?x("<div>").append(x.parseHTML(e)).find(n):e)})).always(i&&function(e,t){s.each((function(){i.apply(this,o||[e.responseText,t,e])}))}),this},x.expr.pseudos.animated=function(e){return x.grep(x.timers,(function(t){return e===t.elem})).length},x.offset={setOffset:function(e,t,i){var n,r,o,s,a,l,c=x.css(e,"position"),u=x(e),h={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=x.css(e,"to
5p"),l=x.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(s=(n=u.position()).top,r=n.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),m(t)&&(t=t.call(e,i,x.extend({},a))),null!=t.top&&(h.top=t.top-a.top+s),null!=t.left&&(h.left=t.left-a.left+r),"using"in t?t.using.call(e,h):("number"==typeof h.top&&(h.top+="px"),"number"==typeof h.left&&(h.left+="px"),u.css(h))}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){x.offset.setOffset(this,e,t)}));var t,i,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],r={top:0,left:0};if("fixed"===x.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((r=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),r.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-x.css(n,"marginTop",!0),left:t.left-r.left-x.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||ne}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i="pageYOffset"===t;x.fn[e]=function(n){return F(this,(function(e,n,r){var o;if(f(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[n];o?o.scrollTo(i?o.pageXOffset:r,i?r:o.pageYOffset):e[n]=r}),e,n,arguments.length)}})),x.each(["top","left"],(function(e,t){x.cssHooks[t]=Fe(p.pixelPosition,(function(e,i){if(i)return i=He(e,t),De.test(i)?x(e).position()[t]+"px":i}))})),x.each({Height:"height",Width:"width"},(function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,n){x.fn[n]=function(r,o){var s=arguments.length&&(i||"boolean"!=typeof r),a=i||(!0===r||!0===o?"margin":"border");return F(this,(function(t,i,r){var o;return f(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?x.css(t,i,a):x.style(t,i,r,a)}),t,s?r:void 0,s)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){x.fn[t]=function(e){return this.on(t,e)}})),x.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),x.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(e,t){x.fn[t]=function(e,i){return 0<arguments.length?this.on(t,null,e,i):this.trigger(t)}}));var Ut=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var i,n,o;if("string"==typeof t&&(i=e[t],t=e,e=i),m(e))return n=r.call(arguments,2),(o=function(){return e.apply(t||this,n.concat(r.call(arguments)))}).guid=e.guid=e.guid||x.guid++,o},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=C,x.isFunction=m,x.isWindow=f,x.camelCase=G,x.type=v,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(Ut,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return x}));var Yt=e.jQuery,Qt=e.$;return x.noConflict=function(t){return e.$===x&&(e.$=Qt),t&&e.jQuery===x&&(e.jQuery=Yt),x},void 0===t&&(e.jQuery=e.$=x),x})), 6/*! jQuery Migrate v3.3.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ 7void 0===jQuery.migrateMute&&(jQuery.migrateMute=!0),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],(function(t){return e(t,window)})):"object"==typeof module&&module.exports?module.exports=e(require("jquery"),window):e(jQuery,window)}((function(e,t){"use strict";function i(t){return 0<=function(e,t){var i,n=/^(\d+)\.(\d+)\.(\d+)/,r=n.exec(e)||[],o=n.exec(t)||[];for(i=1;i<=3;i++){if(+r[i]>+o[i])return 1;if(+r[i]<+o[i])return-1}return 0}(e.fn.jquery,t)}e.migrateVersion="3.3.1",t.console&&t.console.log&&(e&&i("3.0.0")||t.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),e.migrateWarnings&&t.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),t.console.log("JQMIGRATE: Migrate is installed"+(e.migrateMute?"":" with logging active")+", version "+e.migrateVersion));var n={};function r(i){var r=t.console;e.migrateDeduplicateWarnings&&n[i]||(n[i]=!0,e.migrateWarnings.push(i),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+i),e.migrateTrace&&r.trace&&r.trace()))}function o(e,t,i,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return r(n),i},set:function(e){r(n),i=e}})}function s(e,t,i,n){e[t]=function(){return r(n),i.apply(this,arguments)}}e.migrateDeduplicateWarnings=!0,e.migrateWarnings=[],void 0===e.migrateTrace&&(e.migrateTrace=!0),e.migrateReset=function(){n={},e.migrateWarnings.length=0},"BackCompat"===t.document.compatMode&&r("jQuery is not compatible with Quirks Mode");var a,l={},c=e.fn.init,u=e.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,d=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;for(a in e.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(r("jQuery( '#' ) is not a valid selector"),t[0]=[]),c.apply(this,t)},e.fn.init.prototype=e.fn,e.find=function(e){var i=Array.prototype.slice.call(arguments);if("string"==typeof e&&h.test(e))try{t.document.querySelector(e)}catch(n){e=e.replace(d,(function(e,t,i,n){return"["+t+i+'"'+n+'"]'}));try{t.document.querySelector(e),r("Attribute selector with '#' must be quoted: "+i[0]),i[0]=e}catch(e){r("Attribute selector with '#' was not fixed: "+i[0])}}return u.apply(this,i)},u)Object.prototype.hasOwnProperty.call(u,a)&&(e.find[a]=u[a]);if(s(e.fn,"size",(function(){return this.length}),"jQuery.fn.size() is deprecated and removed; use the .length property"),s(e,"parseJSON",(function(){return JSON.parse.apply(null,arguments)}),"jQuery.parseJSON is deprecated; use JSON.parse"),s(e,"holdReady",e.holdReady,"jQuery.holdReady is deprecated"),s(e,"unique",e.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),o(e.expr,"filters",e.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),o(e.expr,":",e.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),i("3.1.1")&&s(e,"trim",(function(e){return null==e?"":(e+"").replace(p,"")}),"jQuery.trim is deprecated; use String.prototype.trim"),i("3.2.0")&&s(e,"nodeName",(function(e,t){return e.no
7deName&&e.nodeName.toLowerCase()===t.toLowerCase()}),"jQuery.nodeName is deprecated"),i("3.3.0")&&(s(e,"isNumeric",(function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))}),"jQuery.isNumeric() is deprecated"),e.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()})),s(e,"type",(function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[Object.prototype.toString.call(e)]||"object":typeof e}),"jQuery.type is deprecated"),s(e,"isFunction",(function(e){return"function"==typeof e}),"jQuery.isFunction() is deprecated"),s(e,"isWindow",(function(e){return null!=e&&e===e.window}),"jQuery.isWindow() is deprecated"),s(e,"isArray",Array.isArray,"jQuery.isArray is deprecated; use Array.isArray")),e.ajax){var m=e.ajax;e.ajax=function(){var e=m.apply(this,arguments);return e.promise&&(s(e,"success",e.done,"jQXHR.success is deprecated and removed"),s(e,"error",e.fail,"jQXHR.error is deprecated and removed"),s(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e}}var f=e.fn.removeAttr,_=e.fn.toggleClass,g=/\S+/g;function y(e){return e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))}e.fn.removeAttr=function(t){var i=this;return e.each(t.match(g),(function(t,n){e.expr.match.bool.test(n)&&(r("jQuery.fn.removeAttr no longer sets boolean properties: "+n),i.prop(n,!1))})),f.apply(this,arguments)};var v,b=!(e.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?_.apply(this,arguments):(r("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each((function(){var i=this.getAttribute&&this.getAttribute("class")||"";i&&e.data(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":e.data(this,"__className__")||"")})))}),x=/^[a-z]/,w=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;e.swap&&e.each(["height","width","reliableMarginRight"],(function(t,i){var n=e.cssHooks[i]&&e.cssHooks[i].get;n&&(e.cssHooks[i].get=function(){var e;return b=!0,e=n.apply(this,arguments),b=!1,e})})),e.swap=function(e,t,i,n){var o,s,a={};for(s in b||r("jQuery.swap() is undocumented and deprecated"),t)a[s]=e.style[s],e.style[s]=t[s];for(s in o=i.apply(e,n||[]),t)e.style[s]=a[s];return o},i("3.4.0")&&"undefined"!=typeof Proxy&&(e.cssProps=new Proxy(e.cssProps||{},{set:function(){return r("JQMIGRATE: jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e.cssNumber||(e.cssNumber={}),v=e.fn.css,e.fn.css=function(t,i){var n,o=this;return t&&"object"==typeof t&&!Array.isArray(t)&&e.each(t,(function(t,i){e.fn.css.call(o,t,i)})),"number"==typeof i&&(function(e){return x.test(e)&&w.test(e[0].toUpperCase()+e.slice(1))}(n=y(t))||e.cssNumber[n]||r('Number-typed values are deprecated for jQuery.fn.css( "'+t+'", value )')),v.apply(this,arguments)};var S=e.data;if(e.data=function(t,i,n){var o,s,a;if(i&&"object"==typeof i&&2===arguments.length){for(a in o=e.hasData(t)&&S.call(this,t),s={},i)a!==y(a)?(r("jQuery.data() always sets/gets camelCased names: "+a),o[a]=i[a]):s[a]=i[a];return S.call(this,t,s),i}return i&&"string"==typeof i&&i!==y(i)&&(o=e.hasData(t)&&S.call(this,t))&&i in o?(r("jQuery.data() always sets/gets camelCased names: "+i),2<arguments.length&&(o[i]=n),o[i]):S.apply(this,arguments)},e.fx){var L,k,T=e.Tween.prototype.run,C=function(e){return e};e.Tween.prototype.run=function(){1<e.easing[this.easing].length&&(r("'jQuery.easing."+this.easing.toString()+"' should use only one argument"),e.easing[this.easing]=C),T.apply(this,arguments)},L=e.fx.interval||13,k="jQuery.fx.interval is deprecated",t.requestAnimationFrame&&Object.defineProperty(e.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return t.document.hidden||r(k),L},set:function(e){r(k),L=e}})}var P=e.fn.load,M=e.event.add,E=e.event.fix;function z(e){var i=t.document.implementation.createHTMLDocument("");return i.body.innerHTML=e,i.body&&i.body.innerHTML}function A(e){var t=e.replace(j,"<$1></$2>");t!==e&&z(e)!==z(t)&&r("HTML tags must be properly nested and closed: "+e)}e.event.props=[],e.event.fixHooks={},o(e.event.props,"concat",e.event.props.concat,"jQuery.event.props.concat() is deprecated and removed"),e.event.fix=function(t){var i,n=t.type,o=this.fixHooks[n],s=e.event.props;if(s.length)for(r("jQuery.event.props are deprecated and removed: "+s.join());s.length;)e.event.addProp(s.pop());if(o&&!o._migrated_&&(o._migrated_=!0,r("jQuery.event.fixHooks are deprecated and removed: "+n),(s=o.props)&&s.length))for(;s.length;)e.event.addProp(s.pop());return i=E.call(this,t),o&&o.filter?o.filter(i,t):i},e.event.add=function(e,i){return e===t&&"load"===i&&"complete"===t.document.readyState&&r("jQuery(window).on('load'...) called after load event occurred"),M.apply(this,arguments)},e.each(["load","unload","error"],(function(t,i){e.fn[i]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===i&&"string"==typeof e[0]?P.apply(this,e):(r("jQuery.fn."+i+"() is deprecated"),e.splice(0,0,i),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))}})),e.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(t,i){e.fn[i]=function(e,t){return r("jQuery.fn."+i+"() event shorthand is deprecated"),0<arguments.length?this.on(i,null,e,t):this.trigger(i)}})),e((function(){e(t.document).triggerHandler("ready")})),e.event.special.ready={setup:function(){this===t.document&&r("'ready' event is deprecated")}},e.fn.extend({bind:function(e,t,i){return r("jQuery.fn.bind() is deprecated"),this.on(e,null,t,i)},unbind:function(e,t){return r("jQuery.fn.unbind() is deprecated"),this.off(e,null,t)},delegate:function(e,t,i,n){return r("jQuery.fn.delegate() is deprecated"),this.on(t,e,i,n)},undelegate:function(e,t,i){return r("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return r("jQuery.fn.hover() is deprecated"),this.on("mouseenter",e).on("mouseleave",t||e)}});var j=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,O=e.htmlPrefilter;e.UNSAFE_restoreLegacyHtmlPrefilter=function(){e.htmlPrefilter=function(e){return A(e),e.replace(j,"<$1></$2>")}},e.htmlPrefilter=function(e){return A(e),O(e)};var I=e.fn.offset;if(e.fn.offset=function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(r("jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},e.ajax){var B=e.param;e.param=function(t,i){var n=e.ajaxSettings&&e.ajaxSettings.traditional;return void 0===i&&n&&(r("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),i=n),B.call(this,t,i)}}var D=e.fn.andSelf||e.fn.addBack;if(e.fn.andSelf=function(){return r("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),D.apply(this,arguments)},e.Deferred){var q=e.Deferred,N=[["resolve","done",e.Callbacks("once memory"),e.Callbacks("once memory"),"resolved"],["reject","fail",e.Callbacks("once memory"),e.Callbacks("once memory"),"rejected"],["notify","progress",e.Callbacks("memory"),e.Callbacks("memory")]];e.Deferred=function(t){var i=q(),n=i.promise();return i.pipe=n.pipe=function(){var t=arguments;return r("deferred.pipe() is deprecated"),e.Deferred((function(r){e.each(N,(function(e,o){var s="function"==typeof t[e]&&t[e];i[o[1]]((function(){var e=s&&s.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(r.resolve).fail(r.reject).progress(r.notify):r[o[0]+"With"](this===n?r.promise():this,s?[e]:arguments)}))})),t=null})).promise()},t&&t.call(i,i),i},e.Deferred.exceptionHook=q.exceptionHook}return e}
7)),app_shop.graphql.searchListShippingInput=()=>`ShippingInput: {\n mode: product\n products: [${[...document.querySelectorAll("[data-size].--current")].map((e=>`{\n id: ${e.querySelector(".search_versions__product_input").value}\n size: "${"onesize"===e.querySelector(".search_versions__size_input").value?"uniw":e.querySelector(".search_versions__size_input").value}"\n quantity: ${"0"===e.querySelector(".search_versions__quantity").value?e.querySelector(".search_versions__quantity").getAttribute("data-unit_sellby"):e.querySelector(".search_versions__quantity").value}\n }`)).join(",")}]\n }`,app_shop.fn.searchListAddToBasket=async e=>{let t=e;"FORM"!==e.tagName&&(t=document.createElement("form"),"function"==typeof e[Symbol.iterator]?e.forEach((e=>{t.appendChild(e.cloneNode(!0))})):t.appendChild(e.cloneNode(!0)));const i=new URLSearchParams(new FormData(t));i.append("getAjax",!0),i.append("mode",1);try{const e=await fetch("/basketchange.php?type=multiproduct",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",Accept:"application/json"},body:i});await app_shop.graphql.trackingEvents(e);const t=await e.json();return"function"==typeof window.Core?.basketChanged&&window.Core.basketChanged(t),t}catch(e){return!1}};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.