PageSourceSearch

https://sklepdlaogrodu.pl/gfx/pol/shop.js.gzip?r=1790014776

js sklepdlaogrodu.pl collected 2026-09-26 11:36:47 UTC 734,984 bytes, 32 lines download raw bytes

1function calculateSubscriptionPrice(t){return this.params=t||{},this.roundPrice=t=>{const e=currency_decimal_separator;currency_decimal_separator=".";const i=format_price(t,{mask:"#####0.00"});return currency_decimal_separator=e,i},this.formatPrice=t=>format_price(t,{mask:this.currencyFormat,currency:this.symbol,currency_space:this.currencySpace,currency_before_price:this.currencyBeforeValue}),this.percentagePrice=(t,e,i,n)=>{let o=0===n?0:i*(n/100);return o+=e,o=t-o,o>0?o:0},this.quotaPrice=(t,e,i)=>{let n=e+i;return n=t-n,n>0?n:0},this.calculatePercent=(t,e)=>100-100*e/t,this.netPrice=(t,e)=>{const i=t-t*e/100;return i>0?i:0},this.init=()=>{const{max:e,maxNet:i,save:n,before:o,rebateValue:s,rebateType:r,currencyFormat:a,symbol:l,currencySpace:c,currencyBeforeValue:d}=t;if(!e&&!s)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=d||app_shop.vars?.currency?.beforeValue||app_shop.vars.currency_before_value,this.rebateType=r||"percentage";const u="percentage"===this.rebateType?this.percentagePrice(+e,+n,+o,+s):this.quotaPrice(+e,+n,+s),p=this.calculatePercent(e,u),h=this.netPrice(i,p);return{gross:{value:this.roundPrice(u),formatted:this.formatPrice(u)},net:{value:this.roundPrice(h),formatted:this.formatPrice(h)},percent:Math.round(p)}},this.init()}app_shop.graphql||(app_shop.graphql={}),app_shop.graphql.getLowestPrice=async t=>{const e=JSON.stringify({query:`query {\n      getLastLowestProductPrices(${t}) {\n        id\n        sizes {\n          id\n          price {\n            ${app_shop?.vars?.priceType||"gross"} {\n              value\n              currency\n              formatted\n            }\n          }\n        }\n      }\n    }`});try{const t=app_shop?.urls?.graphql?`${app_shop?.urls?.graphql}?getLastLowestProductPrices`:"/graphql/v1/?getLastLowestProductPrices",i=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:e});return await i.json()}catch(t){return console.error("AJAX fetchLastLowestProductPrices() Error:",t),!1}};class VanillaCalendar{constructor(t,e){this.HTMLElement="object"==typeof t?t:document.querySelector(t),this.HTMLElement&&(this.type=e?.type??"default",this.date={min:e?.date?.min??"1970-01-01",max:e?.date?.max??"2470-12-31",today:e?.date?.today??new Date},this.info={top:e?.info?.top??!1,bottom:e?.info?.bottom??!1},this.customDayNames=e?.customDayNames??[],this.settings={lang:e?.settings?.lang??app_shop?.vars?.language?.symbol??"pl",iso8601:e?.settings?.iso8601??!0,workingDays:e?.settings?.workingDays??null,disabled:{weekDay:e?.settings?.disabled?.weekDay??null,weekends:e?.settings?.disabled?.weekends??!1},range:{min:e?.settings?.range?.min??this.date.min,max:e?.settings?.range?.max??this.date.max,disabled:e?.settings?.range?.disabled??null,enabled:e?.settings?.range?.enabled??null},selection:{day:e?.settings?.selection?.day??"single",month:e?.settings?.selection?.month??!0,year:e?.settings?.selection?.year??!0,time:e?.settings?.selection?.time??!1,controlTime:e?.settings?.selection?.controlTime??"all",stepHours:e?.settings?.selection?.stepHours??1,stepMinutes:e?.settings?.selection?.stepMinutes??1}
1,selected:{dates:e?.settings?.selected?.dates??null,month:e?.settings?.selected?.month??null,year:e?.settings?.selected?.year??null,holidays:e?.settings?.selected?.holidays??null,time:e?.settings?.selected?.time??null},visibility:{templateHeader:e?.settings?.visibility?.templateHeader??"%M %Y",monthShort:e?.settings?.visibility?.monthShort??!0,weekNumbers:e?.settings?.visibility?.weekNumbers??!1,weekend:e?.settings?.visibility?.weekend??!0,today:e?.settings?.visibility?.today??!0,disabled:e?.settings?.visibility?.disabled??!1}},this.locale={months:e?.locale?.months??[],weekday:e?.locale?.weekday??[]},this.actions={clickDay:e?.actions?.clickDay??null,clickMonth:e?.actions?.clickMonth??null,clickYear:e?.actions?.clickYear??null,changeTime:e?.actions?.changeTime??null,afterRender:e?.actions?.afterRender??null,afterFocus:e?.actions?.afterFocus??null},this.popups=e?.popups??null,this.currentType=this.type,this.selectedKeeping=null,this.userTime=!1)}generateDate(t){const e=t.getUTCFullYear();let i=t.getUTCMonth()+1,n=t.getUTCDate();return i=i<10?`0${i}`:i,n=n<10?`0${n}`:n,`${e}-${i}-${n}`}transformTime12(t){const e=Number(t);let i=e;return 0===e?i="12":13===e?i="01":14===e?i="02":15===e?i="03":16===e?i="04":17===e?i="05":18===e?i="06":19===e?i="07":20===e?i="08":21===e?i="09":22===e?i="10":23===e&&(i="11"),i}transformTime24(t,e){const i=Number(t);let n=i;return"AM"===e?12===i&&(n="00"):"PM"===e&&(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?n="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 t=!0===this.settings.selection.time||12===this.settings.selection.time;if(t||24===this.settings.selection.time){if("string"==typeof this.settings.selected.time){const e=t?/^([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(e,((e,i,n,o)=>{i&&n&&(this.userTime=!0,this.selectedHours=i,this.selectedMinutes=n),o&&t?this.selectedKeeping=o:t&&(this.selectedKeeping="AM")}))}!this.userTime&&t?(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,console.error("The value of the time property can be: false, true, 12 or 24."))}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 t=this.HTMLElement.querySelector(".vanilla-calendar-header__content"),e=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${e}"\n      ${e?' tabindex="-1" ':""}\n      data-calendar-selected-month="${this.selectedMonth}">\n      ${this.locale.months[this.selectedMonth]}\n    </button>`.replace(/[\n\t]/g,""),o=`\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 s=this.settings.visibility.templateHeader.replace("%M",n);s=s.replace("%Y",o),t.innerHTML=s}controlArrows(){if(!["default","year"].includes(this.currentType))return;const t=this.HTMLElement.querySelector(".vanilla-calendar-arrow_prev"),e=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(),o=!this.settings.selection.year||this.selectedYear===this.dateMin.getUTCFullYear(),s=!this.settings.selection.year||this.selectedYear===this.dateMax.getUTCFullYear();i&&o||!this.settings.selection.month?t.style.visibility="hidden":t.style.visibility=null,n&&s||!this.settings.selection.month?e.style.visibility="hidden":e.style.visibility=null})(),(()=>{"year"===this.currentType&&(this.dateMin.getUTCFullYear()&&this.viewYear-7<=this.dateMin.getUTCFullYear()?t.style.visibility="hidden":t.style.visibility=null,this.dateMax.getUTCFullYear()&&this.viewYear+7>=this.dateMax.getUTCFullYear()?e.style.visibility="hidden":e.style.visibility=null)})()}createWeek(){const t=this.HTMLElement.querySelector(".vanilla-calendar-week"),e=d
1ocument.createElement("b");e.className="vanilla-calendar-week__day";const i=[...this.locale.weekday];this.settings.iso8601&&i.push(i.shift()),t.innerHTML="";for(let n=0;n<i.length;n++){const o=i[n],s=e.cloneNode(!0);this.settings.visibility.weekend&&this.settings.iso8601?5!==n&&6!==n||s.classList.add("vanilla-calendar-week__day_weekend"):this.settings.visibility.weekend&&!this.settings.iso8601&&(0!==n&&6!==n||s.classList.add("vanilla-calendar-week__day_weekend")),s.innerText=`${o}`,t.append(s)}}getWeekNumber(t){const e=new Date(t).getUTCDate(),i=new Date(t).getUTCMonth(),n=new Date(t).getUTCFullYear(),o=new Date(n,i,e),s=new Date(Date.UTC(o.getUTCFullYear(),0,1)),r=Math.ceil(((o-s)/864e5+1)/7);return{year:o.getUTCFullYear(),week:r}}createWeekNumbers(t,e){if(!this.settings.visibility.weekNumbers)return;const i=this.HTMLElement.querySelector(".vanilla-calendar-week-numbers"),n=this.HTMLElement.querySelectorAll(".vanilla-calendar-day__btn"),o=Math.ceil((t+e)/7),s=document.createElement("span");s.className="vanilla-calendar-week-number",i.innerHTML="";for(let t=0;t<o;t++){const e=this.getWeekNumber(n[7*t].dataset.calendarDay),o=s.cloneNode(!0);o.innerText=`${e.week}`,o.dataset.calendarYearWeek=`${e.year}`,i.append(o)}}createPopup(t){if(this.popups)for(const e in this.popups)if(Object.hasOwnProperty.call(this.popups,e)){const i=t.querySelector(`[data-calendar-day="${e}"]`);if(i){const t=this.popups[e];i.classList.add(t.modifier),i.parentNode.innerHTML+=`<div class="vanilla-calendar-day__popup">${t.html}</div>`}}}createDays(){const t=new Date(Date.UTC(this.selectedYear,this.selectedMonth,1)),e=new Date(Date.UTC(this.selectedYear,this.selectedMonth+1,0)).getUTCDate();let i=Number(t.getUTCDay());this.settings.iso8601&&(i=Number((0!==t.getUTCDay()?t.getUTCDay():7)-1));const n=this.HTMLElement.querySelector(".vanilla-calendar-days"),o=document.createElement("div"),s=document.createElement("button");o.className="vanilla-calendar-day",s.className="vanilla-calendar-day__btn",s.type="button",["single","multiple","multiple-ranged"].includes(this.settings.selection.day)&&n.classList.add("vanilla-calendar-days_selecting"),n.innerHTML="";const r=(t,e,i,n)=>{!this.settings.visibility.weekend||0!==e&&6!==e||t.classList.add("vanilla-calendar-day__btn_weekend"),Array.isArray(this.settings.selected.holidays)&&this.settings.selected.holidays.forEach((e=>{e===i&&t.classList.add("vanilla-calendar-day__btn_holiday")}));let o=this.date.today.getUTCDate(),s=this.date.today.getUTCMonth()+1;o=o<10?`0${o}`:o,s=s<10?`0${s}`:s;const r=`${this.date.today.getUTCFullYear()}-${s}-${o}`;if(this.settings.visibility.today&&t.dataset.calendarDay===r&&t.classList.add("vanilla-calendar-day__btn_today"),0===this.selectedDates.indexOf(i)||this.selectedDates[0]&&this.selectedDates.indexOf(i)===this.selectedDates.length-1?t.classList.add("vanilla-calendar-day__btn_selected"):"multiple-ranged"===this.settings.selection.day&&this.selectedDates.indexOf(i)>0?(t.classList.add("vanilla-calendar-day__btn_selected"),t.classList.add("vanilla-calendar-day__btn_intermediate")):this.selectedDates.indexOf(i)>0&&t.classList.add("vanilla-calendar-day__btn_selected"),(this.settings.range.min>i||this.settings.range.max<i)&&(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true")),this.settings.selection.month||n||(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true")),this.settings.selection.year||new Date(i).getFullYear()===this.selectedYear||(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true")),Array.isArray(this.settings.range.disabled)?this.settings.range.disabled.forEach((e=>{e===i&&(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"))})):Array.isArray(this.settings.range.enabled)&&(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"),this.settings.range.enabled.forEach((e=>{e===i&&(t.classList.remove("vanilla-calendar-day__btn_disabled"),t.removeAttribute("tabindex"),t.removeAttribute("aria-hidden"))}))),!this.settings.disabled.weekends||0!==e&&6!==e||(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true")),Array.isArray(this.settings.disabled.weekDay)&&this.settings.disabled.weekDay.forEach((i=>{i===e&&(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"))})),Array.isArray(this.settings.workingDays)&&(this.settings.workingDays.includes(e)||(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"))),this.customDayNames?.length){const e=this.customDayNames.find((t=>t.date===i));if(e){const{class:i="",name:n}=e||{};t.classList.add(i),n&&(t.innerHTML=n)}}},a=(t,e,i,a,l)=>{const c=o.cloneNode(!0),d=s.cloneNode(!0);l&&d.classList.add(l),d.innerText=t,d.dataset.calendarDay=i,r(d,e,i,a),c.append(d),n.append(c)};(()=>{let t=new Date(Date.UTC(this.selectedYear,this.selectedMonth,0)).getUTCDate()-i,e=this.selectedYear,n=this.selectedMonth;0===this.selectedMonth?(n=this.locale.months.length,e=this.selectedYear-1):this.selectedMonth<10&&(n=`0${this.selectedMonth}`);for(let o=0;o<i;o++){t+=1;const i=`${e}-${n}-${t}`,o=new Date(Date.UTC(this.selectedYear,this.selectedMonth,t-1)).getUTCMonth()-1,s=new Date(Date.UTC(this.selectedYear,o,t)).getUTCDay();a(t,s,i,!1,"vanilla-calendar-day__btn_prev")}})(),(()=>{for(let t=1;t<=e;t++){const e=new Date(Date.UTC(this.selectedYear,this.selectedMonth,t)),i=this.generateDate(e),n=e.getUTCDay();a(t,n,i,!0)}})(),(()=>{const t=i+e,n=Math.ceil(t/this.locale.weekday.length),o=this.locale.weekday.length*n-t;let s=this.selectedYear,r=this.selectedMonth+2;this.selectedMonth+1===this.locale.months.length?(r="01",s=this.selectedYear+1):this.selectedMonth+2<10&&(r=`0${this.selectedMonth+2}`);for(let t=1;t<=o;t++){const e=`${s}-${r}-${t<10?`0${t}`:t}`,i=new Date(Date.UTC(this.selectedYear,this.selectedMonth,t)).getUTCMonth()+1,n=new Date(Date.UTC(this.selectedYear,i,t)).getUTCDay();a(t,n,e,!1,"vanilla-calendar-day__btn_next")}})(),this.createPopup(n),this.createWeekNumbers(i,e),this.actions.afterRender&&this.actions.afterRender(this)}changeMonth(t){const e=this.locale.months.length-1;switch(t){case"prev":0!==this.selectedMonth?this.selectedMonth-=1:this.settings.selection.year&&(this.selectedYear-=1,this.selectedMonth=e);break;case"next":this.selectedMonth!==e?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 t=this.HTMLElement.querySelector(".vanilla-calendar-years");this.settings.selection.year&&t.classList.add("vanilla-calendar-years_selecting");const e=document.createElement("button");e.type="button",e.className="vanilla-calendar-years__year";for(let i=this.viewYear-7;i<this.viewYear+8;i++){const n=i,o=e.cloneNode(!0);n===this.selectedYear&&o.classList.add("vanilla-calendar-years__year_selected"),n<this.dateMin.getUTCFullYear()&&(o.classList.add("vanilla-calendar-years__year_disabled"),o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true")),n>this.dateMax.getUTCFullYear()&&(o.classList.add("vanilla-calendar-years__year_disabled"),o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true")),o.dataset.calendarYear=n,o.innerText=`${n}`,t.append(o)}this.actions.afterRender&&this.actions.afterRender(this)}createMonths(){this.currentType="month",this.createDOM(),this.createHeader();const t=this.HTMLElement.querySelector(".vanilla-calendar-months");this.settings.selection.month&&t.classList.add("vanilla-calendar-months_selecting");const e=document.createElement("button");e.type="button",e.className="vanilla-calendar-months__month";for(let i=0;i<this.locale.months.length;i++){const n=this.locale.months[i],o=e.cloneNode(!0);i===this.selectedMonth&&o.classList.add("vanilla-calendar-months__month_selected"),i<this.dateMin.getUTCMonth()&&this.selectedYear===this.dateMin.getUTCFullYear()&&(o.classList.add("vanilla-calendar-months__month_disabled"),o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true")),i>this.dateMax.getUTCMonth()&&this.selectedYear===this.dateMax.getUTCFullYear()&&(o.classList.add("vanilla-calendar-months__month_disabled"),o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true")),o.dataset.calendarMonth=i,o.title=`${n}`,o.innerText=`${this.settings.visibility.monthShort?n.substring(0,3):n}`,t.append(o)}this.actions.afterRender&&this.actions.afterRender(this)}controlTime(t){const e=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"]'),o=this.HTMLElement.querySelector('.vanilla-calendar-time__minutes input[name="minutes"]'),s=this.HTMLElement.querySelector(".vanilla-calendar-time__keeping"),r=(t,e)=>{t.addEventListener("mouseover",(()=>e.classList.add("is-focus")))},a=(t,e)=>{t.addEventListener("mouseout",(()=>e.classList.remove("is-focus")))},l=(t,e,i)=>{"hours"===i?this.selectedHours=`${e}`:"minutes"===i&&(this.selectedMinutes=`${e}`),this.selectedTime=`${this.selectedHours}:${this.selectedMinutes}${this.selectedKeeping?` ${this.selectedKeeping}`:""}`,this.settings.selected.time=this.selectedTime,this.actions.changeTime&&this.actions.changeTime(t,this.selectedTime,this.selectedHours,this.selectedMinutes,this.selectedKeeping)}
1,c=(t,e,i,n)=>{t.addEventListener("input",(t=>{let o=Number(t.target.value);o=o<10?`0${o}`:`${o}`,"hours"===i&&12===n?Number(t.target.value)<n&&Number(t.target.value)>0?(e.value=o,this.selectedKeeping="AM",s.innerText=this.selectedKeeping,l(t,o,i)):(0===Number(t.target.value)?(this.selectedKeeping="AM",s.innerText="AM"):(this.selectedKeeping="PM",s.innerText="PM"),e.value=this.transformTime12(t.target.value),l(t,this.transformTime12(t.target.value),i)):(e.value=o,l(t,o,i))}))},d=(t,e,i,n)=>{e.addEventListener("change",(e=>{let o=Number(e.target.value);o=o<10?`0${o}`:`${o}`,"hours"===i&&12===n?e.target.value&&Number(e.target.value)<=n&&Number(e.target.value)>0?(e.target.value=o,t.value=this.transformTime24(o,this.selectedKeeping),l(e,o,i)):e.target.value&&Number(e.target.value)<24&&(Number(e.target.value)>n||0===Number(e.target.value))?(0===Number(e.target.value)?(this.selectedKeeping="AM",s.innerText="AM"):(this.selectedKeeping="PM",s.innerText="PM"),e.target.value=this.transformTime12(e.target.value),t.value=o,l(e,this.transformTime12(e.target.value),i)):e.target.value=this.selectedHours:e.target.value&&Number(e.target.value)<=n&&Number(e.target.value)>=0?(e.target.value=o,t.value=o,l(e,o,i)):"hours"===i?e.target.value=this.selectedHours:"minutes"===i&&(e.target.value=this.selectedMinutes)}))};r(e,n),r(i,o),a(e,n),a(i,o),c(e,n,"hours",24===t?23:t),c(i,o,"minutes"),d(e,n,"hours",24===t?23:t),d(i,o,"minutes",59),s&&s.addEventListener("click",(t=>{s.innerText.includes("AM")?this.selectedKeeping="PM":this.selectedKeeping="AM",e.value=this.transformTime24(this.selectedHours,this.selectedKeeping),l(t,this.selectedHours,"hours"),s.innerText=this.selectedKeeping}))}createTime(){const t=this.HTMLElement.querySelector(".vanilla-calendar-time");if(!t)return;const e=!0===this.settings.selection.time?12:this.settings.selection.time,i="range"===this.settings.selection.controlTime;t.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===e?`\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(e)}getLocale(){if("define"!==this.settings.lang){this.locale.weekday=[];for(let t=0;t<7;t++){let e=new Date(0,0,t).toLocaleString(this.settings.lang,{weekday:"short"});e=`${e.charAt(0).toUpperCase()}${e.substring(1,e.length)}`,e=e.replace(/\./,""),this.locale.weekday.push(e)}this.locale.months=[];for(let t=0;t<12;t++){let e=new Date(0,t).toLocaleString(this.settings.lang,{month:"long"});e=`${e.charAt(0).toUpperCase()}${e.substring(1,e.length)}`,e=e.replace(/\./,""),this.locale.months.push(e)}}}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:t="day"}){const e=this.HTMLElement.querySelector(".vanilla-calendar-day__btn_selected:not(.disabled)");if("day"===t&&e)return e.focus(),void(this.actions.afterFocus&&this.actions.afterFocus(this,t));const i=Array.from(this.HTMLElement.querySelectorAll(".vanilla-calendar-content button"));i.find((t=>-1===t?.className.indexOf("disabled")&&-1===t?.className.indexOf("prev")))?.focus?.(),this.actions.afterFocus&&this.actions.afterFocus(this,t)}click(){this.HTMLElement.addEventListener("click",(t=>{const e=t.target.closest(".vanilla-calendar-arrow"),i=t.target.closest(".vanilla-calendar-arrow_prev"),n=t.target.closest(".vanilla-calendar-arrow_next"),o=t.target.closest(".vanilla-calendar-day__btn"),s=t.target.closest(".vanilla-calendar-day__btn_prev"),r=t.target.closest(".vanilla-calendar-day__btn_next"),a=t.target.closest(".vanilla-calendar-year"),l=t.target.closest(".vanilla-calendar-years__year"),c=t.target.closest(".vanilla-calendar-month"),d=t.target.closest(".vanilla-calendar-months__month"),u=()=>{o.classList.contains("vanilla-calendar-day__btn_selected")?this.selectedDates.splice(this.selectedDates.indexOf(o.dataset.calendarDay),1):(this.selectedDates=[],this.selectedDates.push(o.dataset.calendarDay))},p=()=>{o.classList.contains("vanilla-calendar-day__btn_selected")?this.selectedDates.splice(this.selectedDates.indexOf(o.dataset.calendarDay),1):this.selectedDates.push(o.dataset.calendarDay)},h=()=>
1{if(this.selectedDates.length>1&&(this.selectedDates=[]),this.selectedDates.push(o.dataset.calendarDay),!this.selectedDates[1])return;const t=new Date(Date.UTC(new Date(this.selectedDates[0]).getUTCFullYear(),new Date(this.selectedDates[0]).getUTCMonth(),new Date(this.selectedDates[0]).getUTCDate())),e=new Date(Date.UTC(new Date(this.selectedDates[1]).getUTCFullYear(),new Date(this.selectedDates[1]).getUTCMonth(),new Date(this.selectedDates[1]).getUTCDate())),i=t=>{const e=this.generateDate(t);this.settings.range.disabled&&this.settings.range.disabled.includes(e)||this.selectedDates.push(e)};if(this.selectedDates=[],e>t)for(let n=t;n<=e;n.setUTCDate(n.getUTCDate()+1))i(n);else for(let n=t;n>=e;n.setUTCDate(n.getUTCDate()-1))i(n)};(()=>{e&&"year"!==this.currentType&&"month"!==this.currentType&&(this.changeMonth(t.target.dataset.calendarArrow),this.focusElement({type:"arrow"}))})(),(()=>{if(["single","multiple","multiple-ranged"].includes(this.settings.selection.day)&&o){switch(this.settings.selection.day){case"single":u();break;case"multiple":p();break;case"multiple-ranged":h()}this.actions.clickDay&&this.actions.clickDay(t,this.selectedDates),this.settings.selected.dates=this.selectedDates,s?this.changeMonth("prev"):r?this.changeMonth("next"):this.createDays(),this.focusElement({type:"day"})}})(),(()=>{this.settings.selection.year&&(e&&"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(t,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"})):d&&(this.selectedMonth=Number(d.dataset.calendarMonth),this.currentType=this.type,this.actions.clickMonth&&this.actions.clickMonth(t,this.selectedMonth),this.settings.selected.month=this.selectedMonth,this.update(),this.focusElement({type:"month"})))})()}))}init(){this.HTMLElement&&(this.update(),this.click())}}function FormValidation(t){const{form:e,formSelector:i,afterValidate:n,afterValidateForm:o}=t||{};this.debounce=(t,e=500)=>{let i;return(...n)=>{clearTimeout(i),i=setTimeout((()=>t(...n)),e)}},this.fetchData=async t=>{try{const e=await fetch(`${app_shop?.urls?.graphql||"/graphql/v1/"}?query=validateClientData`,{method:"POST",body:JSON.stringify({query:`query {${t}}`})});return await e.json()}catch(t){return console.error("AJAX FormValidation() validateClientData Error:",t),!1}},this.vars={passwordLengthMin:6,passwordLengthMax:30,changedInputs:[]},this.callbacks={validate:n,validateAll:o},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:t=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        firstname: "${t?.replace?.(/"/g,'\\"')}"\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_LASTNAME_QUERY:t=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        lastname: "${t?.replace?.(/"/g,'\\"')}"\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_ADDITIONAL_QUERY:t=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        companyName: "${t?.replace?.(/"/g,'\\"')}"\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_NIP_QUERY:(t,e)=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        country: ${e}\n      }\n      taxNumber: "${t?.replace?.(/"/g,'\\"')}"\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_STREET_QUERY:(t,e)=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        street: "${t?.replace?.(/"/g,'\\"')}"\n        country: ${e}\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_ZIPCODE_QUERY:(t,e)=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        zipcode: "${t?.replace?.(/"/g,'\\"')}"\n        country: ${e}\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_CITY_QUERY:t=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        city: "${t?.replace?.(/"/g,'\\"')}"\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_PHONE_QUERY:(t,e)=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        phone: "${t?.replace?.(/"/g,'\\"')}"\n        country: ${e}\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_EMAIL_QUERY:t=>`validateClientData(ClientDataInput: {clientData: {\n      email: "${t?.replace?.(/"/g,'\\"')}"\n    }}) {\n      messages {\n        code\n        message\n      }\n      clientExists\n    }`,VALIDATE_BIRTHDATE_QUERY:t=>`validateClientData(ClientDataInput: {clientData: {\n      birthDate: "${t?.replace?.(/"/g,'\\"')}"\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_LOGIN_QUERY:(t,e)=>`validateClientData(ClientDataInput: {loginAndPassword: {\n      login: "${t?.replace?.(/"/g,'\\"')}"\n      ${e?`password: "${e?.replace?.(/"/g,'\\"')}"`:""}\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_PASSWORD_QUERY:(t,e)=>`validateClientData(ClientDataInput: {loginAndPassword: {\n      ${e?`login: "${e?.replace?.(/"/g,'\\"')}"`:""}\n      password: "${t?.replace?.(/"/g,'\\"')}"\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_INPUTS_QUERY:t=>JSON.stringify({query:`query {\n        validateClientData(${t}) {\n          messages {\n            code\n            message\n          }\n        }\n      }`})},this.events={onInput:t=>{const{target:e}=t;this.vars.changedInputs.push(e),this.debounces.validateInput(e)},onChange:t=>{const{target:e}=t;this.validateCheckbox(e)},onSubmit:async t=>{if("true"===this.form.dataset.handled)return void delete this.form.dataset.handled;t.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=t=>{const{code:e}=t[0];switch(e){case"incorect_zipcode":return`${this.errorCode[e]} ${this.txt.zipcodeFormat} ${t[1]?.message}`;case"password_to_short":return`${this.errorCode[e]} ${this.vars.passwordLengthMin} ${this.txt.characters}`;case"password_to_long":return`${this.errorCode[e]} ${this.vars.passwordLengthMax} ${this.txt.characters}`;default:return this.errorCode[e]}},this.checkDigital=t=>!!/\d/.test(t),this.validateFirstnameGQL=async t=>{const{input:e,getQuery:i,response:n}=t,{value:o}=e,s=this.queries.VALIDATE_FIRSTNAME_QUERY(o);if(i)return this.queries.VALIDATE_FIRSTNAME_QUERY(o);const r=n||await this.fetchData(s),{messages:a}=r?.data?.validateClientData||r;return this.checkDigital(o)?this.txt.onlyDigital:a?.length?this.concatErrorMessages(a):""},this.validateLastnameGQL=async t=>{const{input:e,getQuery:i,response:n}=t,{value:o}=e,s=this.queries.VALIDATE_LASTNAME_QUERY(o);if(i)return this.queries.VALIDATE_LASTNAME_QUERY(o);const r=n||await this.fetchData(s),{messages:a}=r?.data?.validateClientData||r;return this.checkDigital(o)?this.txt.onlyDigital:a?.length?this.concatErrorMessages(a):""},this.validateAdditionalGQL=async t=>{const{input:e,getQuery:i,response:n}=t,{value:o}=e,s=this.queries.VALIDATE_ADDITIONAL_QUERY(o);if(i)return s;const r=n||await this.fetchData(s),{messages:a}=r?.data?.validateClientData||r;return a?.length?this.concatErrorMessages(a):""},this.validateNipGQL=async t=>{const{input:e,getQuery:i,response:n}=t,{value:o}=e,{region:s}=e.dataset,r=this.queries.VALIDATE_NIP_QUERY(o,s);if(i)return r;const a=n||await this.fetchData(r),{messages:l}=a?.data?.validateClientData||a;return l?.length?this.concatErrorMessages(l):""},this.validateStreetGQL=async t=>{const{input:e,getQuery:i,response:n}=t,{value:o}=e,{concatFrom:s,region:r}=e.dataset,a=this.form?.querySelector(s),l=`${o} ${a?.value||""}`,c=this.queries.VALIDATE_STREET_QUERY(l,r);if(i)return c;const d=n||await this.fetchData(c),{messages:u}=d?.data?.validateClientData||d;return u?.length?a&&"no_street_number"===u[0].code?(this.setValidityState(a,this.concatErrorMessages(u)),""):this.concatErrorMessages(u):(a&&this.setValidityState(a,""),"")},this.validateZipcodeGQL=async t=>{const{input:e,getQuery:i,response:n}=t,{value:o}=e,{region:s}=e.dataset,r=this.queries.VALIDATE_ZIPCODE_QUERY(o,s);if(i)return r;const a=n||await this.fetchData(r),{messages:l}=a?.data?.validateClientData||a;return l?.length?this.concatErrorMessages(l):""},this.validateCityGQL=async t=>{const{input:e,getQuery:i,response:n}=t,{value:o}=e,s=this.queries.VALIDATE_CITY_QUERY(o);if(i)return s;const r=n||await this.fetchData(s),{messages:a}=r?.data?.validateClientData||r;return a?.length?this.concatErrorMessages(a):""},this.validatePhone=t=>{const{input:e,getQuery:i}=t;if(i)return"";const{value:n}=e;return n.length>=9?"":this.concatErrorMessages([{code:"incorect_phone"}])},this.validatePhoneGQL=async t=>{const{input:e,getQuery:i,response:n}=t,{value:o}=e,{concatFrom:s,region:r}=e.dataset,a=this.form?.querySelector(s),l=a?.value||"",c=l?`${l}${o}`:o;if(!r)return this.validatePhone(t);const d=this.queries.VALIDATE_PHONE_QUERY(c,r);if(i)return d;const u=n||await this.fetchData(d),{messages:p}=u?.data?.validateClientData||u;return p?.length?this.concatErrorMessages(p):""},this.validateEmailGQL=async t=>{const{input:e,getQuery:i,response:n}=t,{value:o}=e,s=this.queries.VALIDATE_EMAIL_QUERY(o);if(i)return s;const r=n||await this.fetchData(s),{messages:a}=r?.data?.validateClientData||r;return a?.length?this.concatErrorMessages(a):""},this.validateBirthdateGQL=async t=>{const{input:e,getQuery:i,response:n}=t,{value:o}=e,s=this.queries.VALIDATE_BIRTHDATE_QUERY(o);if(i)return s;const r=n||await this.fetchData(s),{messages:a}=r?.data?.validateClientData||r;return a?.length?this.concatErrorMessages(a):""},this.setPasswordState=({element:t,messages:e})=>
1{if(!e.length)return void this.removeValidityState(t);const i=e.filter((t=>this.passwordErrorCodes.includes(t.code)));if(!i.length)return void this.removeValidityState(t);const n=this.concatErrorMessages(i);this.setValidityState(t,n)},this.validateLoginGQL=async t=>{const{input:e,getQuery:i,response:n}=t,{value:o}=e,{concatPassword:s}=e.dataset,r=this.form?.querySelector(s),a=r?.value||"",l=this.queries.VALIDATE_LOGIN_QUERY(o,a);if(i)return l;const c=n||await this.fetchData(l),{messages:d}=c?.data?.validateClientData||c;if(a&&this.setPasswordState({element:r,messages:d}),!d?.length)return"";const u=d.filter((t=>!this.passwordErrorCodes.includes(t.code)));return u.length?this.concatErrorMessages(u):""},this.validatePasswordGQL=async t=>{const{input:e,getQuery:i,response:n}=t,{value:o}=e,{concatLogin:s}=e.dataset,r=this.form?.querySelector(s),a=r?.value||"",l=this.queries.VALIDATE_PASSWORD_QUERY(o,a);if(i)return l;const c=n||await this.fetchData(l),{messages:d}=c?.data?.validateClientData||c;if(!d?.length)return"";const u=d.filter((t=>!this.loginErrorCodes.includes(t.code)));return u.length?this.concatErrorMessages(u):""},this.validateIBANGQL=async t=>{const{input:e,getQuery:i}=t,{value:n}=e;if(i)return"";const o=await fetch(`/ajax/payments.php?action=verify_iban&bankAccount=${n}`),s=await o.json(),{errno:r}=s||{};return r?this.concatErrorMessages([{code:"incorrect_iban"}]):""},this.getInputQueries=async t=>(await Promise.all(t.map((async t=>{const e=await this.validateGraphQL({input:t,getQuery:!0});return`${t.id}:${e}`})))).join(""),this.validateInputsGQL=async t=>{const e=await this.getInputQueries(t),i=await this.fetchData(e);i?.data&&Object.keys(i.data).forEach((async e=>{const[n]=t.filter((t=>t.id===e));if(!n)return;const o=await this.validateGraphQL({input:n,response:i.data[e]});this.setValidityState(n,o)}))},this.clientExists=async t=>{const e=this.queries.VALIDATE_EMAIL_QUERY(t),i=await this.fetchData(e),{clientExists:n}=i?.data?.validateClientData||i;return n},this.validateMinLength=t=>{const e=t.getAttribute("minlength");return e?+e<=t.value.length?"":`${this.txt.minimalCharacters}${e}`:""},this.validateMaxLength=t=>{const e=t.getAttribute("maxlength");return e?+e>=t.value.length?"":`${this.txt.maximumCharacters}${e}`:""},this.validateInputs=async t=>{t.forEach((t=>{const e=this.validateNotEmpty(t)||this.validateMinLength(t)||this.validateMaxLength(t);""!==e&&this.setValidityState(t,e)}));const e=[...t].filter((t=>t.closest(".f-feedback:not(.--error)")));if(!e.length)return;[...e].filter((t=>!t.hasAttribute("data-graphql"))).forEach((t=>{this.setValidityState(t,"")}));const i=[...e].filter((t=>t.hasAttribute("data-graphql")));if(!i.length)return;const n=i.findIndex((t=>"iban"===t.dataset.graphql));-1!==n&&(await this.validateInput(i[n]),i.splice(n,1)),i.length&&await this.validateInputsGQL(i)},this.isPhoneNumber=t=>new RegExp("^[0-9*#+() ]+$").test(t),this.getGQLType=t=>{const{graphql:e}=t.dataset,i=e.split(" ");if(2===i.filter((t=>"phone"===t||"email"===t)).length){return this.isPhoneNumber(t.value)?"phone":"email"}return i[0]},this.validateGraphQL=async t=>{const{input:e,getQuery:i,response:n}=t,{graphql:o}=e.dataset;if(!o)return!1;const s=o.split(" ");switch(1===s.length?s[0]:this.getGQLType(e)){case"firstname":return await this.validateFirstnameGQL({input:e,getQuery:i,response:n});case"lastname":return await this.validateLastnameGQL({input:e,getQuery:i,response:n});case"additional":case"firm":return await this.validateAdditionalGQL({input:e,getQuery:i,response:n});case"nip":return await this.validateNipGQL({input:e,getQuery:i,response:n});case"street":return await this.validateStreetGQL({input:e,getQuery:i,response:n});case"zipcode":return await this.validateZipcodeGQL({input:e,getQuery:i,response:n});case"city":return await this.validateCityGQL({input:e,getQuery:i,response:n});case"phone":return await this.validatePhoneGQL({input:e,getQuery:i,response:n});case"email":return await this.validateEmailGQL({input:e,getQuery:i,response:n});case"birthdate":return await this.validateBirthdateGQL({input:e,getQuery:i,response:n});case"login":return await this.validateLoginGQL({input:e,getQuery:i,response:n});case"password":return await this.validatePasswordGQL({input:e,getQuery:i,response:n});case"iban":return await this.validateIBANGQL({input:e,getQuery:i,response:n});default:return console.warn(`No support for validation '${o}' in validateClientData GraphQL`),this.setValidityState(e,"")}},this.validateInput=async t=>{const e=[...new Set(this.vars.changedInputs)].filter((t=>"username"!==t.autocomplete&&"current-password"!==t.autocomplete));if(this.vars.changedInputs=[],e.length>1)return this.removeAllValidityState(),this.validateForm(),!1;const{concatTo:i}=t.dataset;if(i)return this.validateInput(this.form.querySelector(i));let n=this.validateNotEmpty(t)||this.validateMinLength(t)||this.validateMaxLength(t);if(""!==n)return this.setValidityState(t,n);return t.getAttribute("data-graphql")?(n=await this.validateGraphQL({input:t}),this.setValidityState(t,n)):this.setValidityState(t,n)},this.validateSelects=t=>{t.forEach((t=>{this.validateSelect(t)}))},this.validateSelect=t=>{if(!t)return!0;let e="";return t.closest(".--placeholder")&&t.selectedIndex<1?(e=this.txt.noOptionSelected,this.setValidityState(t,e)):this.setValidityState(t,e)},this.validateCheckboxes=t=>{t.forEach((t=>{this.validateCheckbox(t)}))},this.validateCheckbox=t=>!t||(t.checked?this.setValidityState(t,"",!0):this.setValidityState(t,"error",!0)),this.validateObjectGQL=async(t={})=>{let e="";for(const[i,n]of Object.entries(t)){const o={dataset:{}};o.value="street"===i&&t.streetNumber?`${n} ${t.streetNumber}`:n,o.dataset.region=t.region,o.dataset.graphql=i;const s=await this.validateGraphQL({input:o,getQuery:!0});s&&(e+=`${i}:${s}`)}if(""===e)return!0;const i=await this.fetchData(e);if(!i?.data)return!0;const n=[];for(const[e,o]of Object.entries(i.data)){const s={dataset:{}};s.value="street"===e&&t.streetNumber?`${o} ${t.streetNumber}`:o,s.dataset.region=t.region,s.dataset.graphql=e,n.push(await this.validateGraphQL({input:s,response:i.data[e]}))}return!n.filter((t=>""!==t)).length},this.validateObjectRequired=(t={},e=[])=>{if(!e.length)return!0;for(const[i,n]of Object.entries(t))if(e.includes(i)&&""===n)return validRequired=!1,!1;return!0},this.validateObject=async(t={},e)=>{if(!this.validateObjectRequired(t,e))return!1;return!!await this.validateObjectGQL(t,e)},this.validateForm=async t=>{const e=t||this.form,i=e.querySelectorAll('.f-control.--validate:not(:disabled):not([type="checkbox"])'),n=[...i].filter((t=>t.closest(".f-feedback:not(.--error):not(.--success)")));await this.validateInputs(n);const o=e.querySelectorAll("select.f-select.--validate:not(:disabled), div.f-select.--validate select:not(:disabled)"),s=[...o].filter((t=>t.closest(".f-feedback:not(.--error):not(.--success)")));this.validateSelects(s);const r=e.querySelectorAll('.f-control.--validate[type="checkbox"]:not(:disabled)'),a=[...r].filter((t=>t.closest(".--checkbox:not(.--error):not(.--success), .--switch:not(.--error):not(.--success)")));this.validateCheckboxes(a);const l=[...i].filter((t=>t.closest(".f-feedback.--error"))),c=[...o].filter((t=>t.closest(".f-feedback.--error"))),d=[...r].filter((t=>t.closest(".--checkbox.--error, .--switch.--error, .f-feedback.--error")));return l.length||c.length||d.length?("function"==typeof this.callbacks.validateAll&&this.callbacks.validateAll(t,!1),!1):("function"==typeof this.callbacks.validateAll&&this.callbacks.validateAll(t,!0),!0)},this.validateNotEmpty=t=>t.required||0!==t.value.length?t.value.length>0?"":this.txt.mandatoryField:"",this.createMessageElement=t=>{const e=document.createElement("div");return e.classList.add("f-message"),e.setAttribute("aria-live","polite"),t.append(e),e},this.setValidityState=(t,e,i)=>{if(!(t&&t instanceof HTMLElement))return!1;const n=t.closest(".f-feedback")||t.parentNode;n.classList.remove("--success","--error");const o=!i&&(n.querySelector(".f-message")||this.createMessageElement(n));return n.classList.toggle("--empty",""===t.value),""===e?(n.classList.add("--success"),o&&(o.textContent=""),"function"==typeof this.callbacks.validate&&this.callbacks.validate(t,!0),!0):(n.classList.add("--error"),o&&(o.textContent=e),"function"==typeof this.callbacks.validate&&this.callbacks.validate(t,!1),!1)},this.getValidityState=t=>{if(!t)return"";const e=t.closest(".f-feedback")||t.parentNode;return e.classList.contains("--success")?"success":e.classList.contains("--error")?"error":""},this.removeAllValidityState=t=>{(t||this.form).querySelectorAll(".f-control.--validate").forEach((t=>{this.removeValidityState(t)}))},this.removeValidityState=t=>{const e=t.closest(".f-feedback")||t.parentNode;e.classList.remove("--success","--error");const i=e.querySelector(".f-message");i&&(i.textContent="")},this.removeEvents=()=>{this.form&&(this.form.querySelectorAll(".f-control.--validate").forEach((t=>{"checkbox"!==t.type?t.removeEventListener("input",this.events.onInput):t.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((t=>{"checkbox"!==t.type?t.addEventListener("input",this.events.onInput):t.addEventListener("change",this.events.onChange)})),"FORM"===this.form.tagName&&this.form.addEventListener("submit",this.events.onSubmit))},this.init=()=>{this.form=e||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 t=>{const{headers:e}=t||{};if(!e)return!1;const i=e.get("x-iai-tracking-events");if(!i||+i<1)return!1;const n=JSON.stringify({query:"query {\n      trackingEvents\n    }"});try{const t=await fetch(`${app_shop?.urls?.graphql||"/graphql/v1/"}?trackingEvents`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:n}),e=await t.json();return e.data.trackingEvents?.forEach((t=>{const e=new Function(t);try{e()}catch(e){console.error("AJAX getTrackingEvents() Event-Error: ",t,e)}})),e.data.trackingEvents}catch(t){return console.error("AJAX getTrackingEvents() Error:",t),[]}},app_shop.fn.ajaxLoadSite=function(t){if((()=>{const t=document.getElementById("ajaxLoadSite"),e=document.getElementById("ajaxLoadSite_cover");t&&t.remove(),e&&e.remove()})(),!t)return;const e=`\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",e)},app_shop.fn.ajaxLoadSiteMessage=function(t){const e=document.getElementById("ajaxLoadSite");e&&e.append(t)};class WebAuthn{constructor(t={}){this.IAIAccountsUrl=t.IAIAccountsUrl||"https://accounts.idosell.com/",this.urls=t.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=t.supportMac??!0,this.supportIos=t.supportIos??!0,this.supportSafari=t.supportSafari??!0,this.supportOpera=t.supportOpera??!0}async fetchDataGQL(t={}){const{data:e,url:i,urlParameter:n=""}=t;if(!e)return!1;const o=`${i||this.urls.gql||"/graphql/v1/"}${n}`;try{const t=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:e});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.json()}catch(t){throw new Error(`A connection error occurred. It was not possible to retrieve data from ${o}`)}}async fetchData(t={}){const{data:e,url:i}=t;if(!e||!i)return!1;try{const t=await fetch(i,{method:"POST",body:e,credentials:"include",cache:"no-cache"});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.json()}catch(t){throw new Error(`A connection error occurred. It was not possible to retrieve data from ${i}`)}}browserNotSupported(){const t=new Error("Browser not supported.");throw t.code=1,t}isOpera(){const{browser:t}=document.documentElement.dataset;return!!t&&("Opera"===t||"Safari"===t&&navigator.userAgent.indexOf("OP")>-1)}isNotSupportedSafari(){const{browser:t,browserVersion:e}=document.documentElement.dataset;return!(!t||!e)&&("Safari"===t&&+e<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(t){if(!t)throw new Error("Failed to retrieve data.");if("error"===t.status)throw new Error(t.errorMsg||"Unknown error occured.")}recursiveBase64StrToArrayBuffer(t){const e="=?BINARY?B?";let i={};if(Array.isArray(t))i=t.map((t=>this.recursiveBase64StrToArrayBuffer(t)));else{if("object"!=typeof t)return t;Object.keys(t).forEach((n=>{if("string"==typeof t[n]){let o=t[n];if(o.startsWith(e)&&o.endsWith("?=")){o=o.slice(11,-2);const t=window.atob(o),e=new Uint8Array(t.length);for(let i=0;i<t.length;i++)e[i]=t.charCodeAt(i);i[n]=e.buffer}else i[n]=t[n]}else i[n]=this.recursiveBase64StrToArrayBuffer(t[n])}))}return i}arrayBufferToBase64(t){const e=new Uint8Array(t),i=Array.from(e,(t=>String.fromCharCode(t))).join("");return window.btoa(i)}async registration({userLogin:t="",authorizeToken:e=""}){if(await this.checkBrowserSupport()||this.browserNotSupported(),!t)throw new Error('"userLogin" is required.');if(!e)throw new Error('"authorizeToken" is required. GraphQL expressCheckoutVerifyOtp > verificationToken.');const i=await this.fetchData({data:e,url:this.urls.generateRegister});this.checkResponse(i);const n=JSON.parse(i.data),o=this.recursiveBase64StrToArrayBuffer(n),s=await navigator.credentials.create(o),{clientDataJSON:r,attestationObject:a}=s?.response||{},l={userLogin:t,domain:window.location.hostname,authenticatorTransportMethods:s.response.getTransports?s.response.getTransports():[],clientDataJSONBase64:r?this.arrayBufferToBase64(r):"",attestationObjectBase64:a?this.arrayBufferToBase64(a):""},c=await this.fetchData({data:JSON.stringify(l),url:this.urls.register});this.checkResponse(c),console.log(c)}async login(){await this.checkBrowserSupport()||this.browserNotSupported();const t={domain:window.location.hostname},e=await this.fetchData({data:JSON.stringify(t),url:this.urls.generateLogin});this.checkResponse(e);const i=JSON.parse(e.data),n=this.recursiveBase64StrToArrayBuffer(i),o=await navigator.credentials.get(n),{rawId:s,response:{clientDataJSON:r,authenticatorData:a,signature:l,userHandle:c}}=o||{},d={domain:window.location.hostname,publicKeyCredentialBinRawId:s?this.arrayBufferToBase64(s):null,clientDataJSONBase64:r?this.arrayBufferToBase64(r):null,authenticatorDataBase64:a?this.arrayBufferToBase64(a):null,
1signatureBase64:l?this.arrayBufferToBase64(l):null,userHandleBinBase64:c?this.arrayBufferToBase64(c):null},u=await this.fetchData({data:JSON.stringify(d),url:this.urls.login});if(this.checkResponse(u),"success"!==u.status)throw new Error(u.ms);return await this.loginToShop(u.loginToken)}async loginToShop(t){if(!t)throw new Error('"loginToken" is invalid.');const e=JSON.stringify({query:`mutation{\n        loginByIAIAccountsToken(token: "${t}") {\n          status\n          login\n        }\n      }`}),i=await this.fetchDataGQL({data:e,urlParameter:"?mutation=loginByToken"});return i?.data?.loginByIAIAccountsToken}}app_shop.fn.setHeight=t=>{const{selector:e,selectors:i,container:n}=t||{};if(!e&&!i||!n)return;const o=document.querySelector(n);if(!o)return;const s=t=>{if(!t)return 0;const{marginLeft:e,marginRight:i}=window.getComputedStyle(t);return t.offsetWidth+parseInt(e,10)+parseInt(i,10)},r=s(o),a=s(o.firstElementChild),l=t=>{if(!document.querySelectorAll(t).length)return;if(!a)return;const e=Math.round(r/a);if(!e)return;const i=[...o.children];for(let n=0;n<i.length;n+=e){const o=i.slice(n,n+e).map((e=>e.querySelector(t))),s=Math.max(...o.map((t=>t?.offsetHeight)));o.forEach((t=>{t&&(t.style.minHeight=`${s}px`)}))}};e&&l(e),i?.length&&i.forEach((t=>l(t)))};var markerClusterer=function(t){"use strict";function e(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i}class i{static isAdvancedMarkerAvailable(t){return google.maps.marker&&!0===t.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(t){return google.maps.marker&&t instanceof google.maps.marker.AdvancedMarkerElement}static setMap(t,e){this.isAdvancedMarker(t)?t.map=e:t.setMap(e)}static getPosition(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(t.position.lat&&t.position.lng)return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}static getVisible(t){return!!this.isAdvancedMarker(t)||t.getVisible()}}class n{constructor(t){let{markers:e,position:i}=t;this.markers=e,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 t=new google.maps.LatLngBounds(this._position,this._position);for(const e of this.markers)t.extend(i.getPosition(e));return t}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((t=>i.getVisible(t))).length}push(t){this.markers.push(t)}delete(){this.marker&&(i.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}const o=(t,e,n,o)=>{const r=s(t.getBounds(),e,o);return n.filter((t=>r.contains(i.getPosition(t))))},s=(t,e,i)=>{const{northEast:n,southWest:o}=l(t,e),s=c({northEast:n,southWest:o},i);return d(s,e)},r=(t,e,i)=>
vendor: 4,794 bytes, line 1
1{const n=s(t,e,i),o=n.getNorthEast(),r=n.getSouthWest();return[r.lng(),r.lat(),o.lng(),o.lat()]},a=(t,e)=>{const i=(e.lat-t.lat)*Math.PI/180,n=(e.lng-t.lng)*Math.PI/180,o=Math.sin(i/2),s=Math.sin(n/2),r=o*o+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*s*s;return 2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r))*6371},l=(t,e)=>({northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}),c=(t,e)=>{let{northEast:i,southWest:n}=t;return i.x+=e,i.y-=e,n.x-=e,n.y+=e,{northEast:i,southWest:n}},d=(t,e)=>{let{northEast:i,southWest:n}=t;const o=e.fromDivPixelToLatLng(n),s=e.fromDivPixelToLatLng(i);return new google.maps.LatLngBounds(o,s)};class u{constructor(t){let{maxZoom:e=16}=t;this.maxZoom=e}noop(t){let{markers:e}=t;return h(e)}}class p extends u{constructor(t){var{viewportPadding:i=60}=t;super(e(t,["viewportPadding"])),this.viewportPadding=60,this.viewportPadding=i}calculate(t){let{markers:e,map:i,mapCanvasProjection:n}=t;return i.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e}),changed:!1}:{clusters:this.cluster({markers:o(i,n,e,this.viewportPadding),map:i,mapCanvasProjection:n})}}}const h=t=>t.map((t=>new n({position:i.getPosition(t),markers:[t]})));var _=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function t(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var n,o,s;if(Array.isArray(e)){if((n=e.length)!=i.length)return!1;for(o=n;0!=o--;)if(!t(e[o],i[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if((n=(s=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(i,s[o]))return!1;for(o=n;0!=o--;){var r=s[o];if(!t(e[r],i[r]))return!1}return!0}return e!=e&&i!=i}));const m=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class f{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[e,i]=new Uint8Array(t,0,2);if(219!==e)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 o=m[15&i];if(!o)throw new Error("Unrecognized array type.");const[s]=new Uint16Array(t,2,1),[r]=new Uint32Array(t,4,1);return new f(r,s,o,t)}constructor(t,e=64,i=Float64Array,n){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=i,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const o=m.indexOf(this.ArrayType),s=2*t*this.ArrayType.BYTES_PER_ELEMENT,r=t*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-r%8)%8;if(o<0)throw new Error(`Unexpected typed array class: ${i}.`);n&&n instanceof ArrayBuffer?(this.data=n,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+r+a,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+s+r+a),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+r+a,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){const i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=t,this.coords[this._pos++]=e,i}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return g(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,i,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:s,nodeSize:r}=this,a=[0,o.length-1,0],l=[];for(;a.length;){const c=a.pop()||0,d=a.pop()||0,u=a.pop()||0;if(d-u<=r){for(let r=u;r<=d;r++){const a=s[2*r],c=s[2*r+1];a>=t&&a<=i&&c>=e&&c<=n&&l.push(o[r])}continue}const p=u+d>>1,h=s[2*p],_=s[2*p+1];h>=t&&h<=i&&_>=e&&_<=n&&l.push(o[p]),(0===c?t<=h:e<=_)&&(a.push(u),a.push(p-1),a.push(1-c)),(0===c?i>=h:n>=_)&&(a.push(p+1),a.push(d),a.push(1-c))}return l}within(t,e,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:o,nodeSize:s}=this,r=[0,n.length-1,0],a=[],l=i*i;for(;r.length;){const c=r.pop()||0,d=r.pop()||0,u=r.pop()||0;if(d-u<=s){for(let i=u;i<=d;i++)x(o[2*i],o[2*i+1],t,e)<=l&&a.push(n[i]);continue}const p=u+d>>1,h=o[2*p],_=o[2*p+1];x(h,_,t,e)<=l&&a.push(n[p]),(0===c?t-i<=h:e-i<=_)&&(r.push(u),r.push(p-1),r.push(1-c)),(0===c?t+i>=h:e+i>=_)&&(r.push(p+1),r.push(d),r.push(1-c))}return a}}
vendor: 5,570 bytes, line 1
1function g(t,e,i,n,o,s){if(o-n<=i)return;const r=n+o>>1;v(t,e,r,n,o,s),g(t,e,i,n,r-1,1-s),g(t,e,i,r+1,o,1-s)}function v(t,e,i,n,o,s){for(;o>n;){if(o-n>600){const r=o-n+1,a=i-n+1,l=Math.log(r),c=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*c*(r-c)/r)*(a-r/2<0?-1:1);v(t,e,i,Math.max(n,Math.floor(i-a*c/r+d)),Math.min(o,Math.floor(i+(r-a)*c/r+d)),s)}const r=e[2*i+s];let a=n,l=o;for(y(t,e,n,i),e[2*o+s]>r&&y(t,e,n,o);a<l;){for(y(t,e,a,l),a++,l--;e[2*a+s]<r;)a++;for(;e[2*l+s]>r;)l--}e[2*n+s]===r?y(t,e,n,l):(l++,y(t,e,l,o)),l<=i&&(n=l+1),i<=l&&(o=l-1)}}function y(t,e,i,n){b(t,i,n),b(e,2*i,2*n),b(e,2*i+1,2*n+1)}function b(t,e,i){const n=t[e];t[e]=t[i],t[i]=n}function x(t,e,i,n){const o=t-i,s=e-n;return o*o+s*s}const w={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},k=Math.fround||(S=new Float32Array(1),t=>(S[0]=+t,S[0]));var S;class C{constructor(t){this.options=Object.assign(Object.create(w),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:i,maxZoom:n}=this.options;e&&console.time("total time");const o=`prepare ${t.length} points`;e&&console.time(o),this.points=t;const s=[];for(let e=0;e<t.length;e++){const i=t[e];if(!i.geometry)continue;const[n,o]=i.geometry.coordinates,r=k($(n)),a=k(E(o));s.push(r,a,1/0,e,-1,1),this.options.reduce&&s.push(0)}let r=this.trees[n+1]=this._createTree(s);e&&console.timeEnd(o);for(let t=n;t>=i;t--){const i=+Date.now();r=this.trees[t]=this._createTree(this._cluster(r,t)),e&&console.log("z%d: %d clusters in %dms",t,r.numItems,+Date.now()-i)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let i=((t[0]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,t[1]));let o=180===t[2]?180:((t[2]+180)%360+360)%360-180;const s=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)i=-180,o=180;else if(i>o){const t=this.getClusters([i,n,180,s],e),r=this.getClusters([-180,n,o,s],e);return t.concat(r)}const r=this.trees[this._limitZoom(e)],a=r.range($(i),E(s),$(o),E(n)),l=r.data,c=[];for(const t of a){const e=this.stride*t;c.push(l[e+5]>1?T(l,e,this.clusterProps):this.points[l[e+3]])}return c}getChildren(t){const e=this._getOriginId(t),i=this._getOriginZoom(t),n="No cluster with the specified id.",o=this.trees[i];if(!o)throw new Error(n);const s=o.data;if(e*this.stride>=s.length)throw new Error(n);const r=this.options.radius/(this.options.extent*Math.pow(2,i-1)),a=s[e*this.stride],l=s[e*this.stride+1],c=o.within(a,l,r),d=[];for(const e of c){const i=e*this.stride;s[i+4]===t&&d.push(s[i+5]>1?T(s,i,this.clusterProps):this.points[s[i+3]])}if(0===d.length)throw new Error(n);return d}getLeaves(t,e,i){e=e||10,i=i||0;const n=[];return this._appendLeaves(n,t,e,i,0),n}getTile(t,e,i){const n=this.trees[this._limitZoom(t)],o=Math.pow(2,t),{extent:s,radius:r}=this.options,a=r/s,l=(i-a)/o,c=(i+1+a)/o,d={features:[]};return this._addTileFeatures(n.range((e-a)/o,l,(e+1+a)/o,c),n.data,e,i,o,d),0===e&&this._addTileFeatures(n.range(1-a/o,l,1,c),n.data,o,i,o,d),e===o-1&&this._addTileFeatures(n.range(0,l,a/o,c),n.data,-1,i,o,d),d.features.length?d:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const i=this.getChildren(t);if(e++,1!==i.length)break;t=i[0].properties.cluster_id}return e}_appendLeaves(t,e,i,n,o){const s=this.getChildren(e);for(const e of s){const s=e.properties;if(s&&s.cluster?o+s.point_count<=n?o+=s.point_count:o=this._appendLeaves(t,s.cluster_id,i,n,o):o<n?o++:t.push(e),t.length===i)break}return o}_createTree(t){const e=new f(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let i=0;i<t.length;i+=this.stride)e.add(t[i],t[i+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,i,n,o,s){for(const r of t){const t=r*this.stride,a=e[t+5]>1;let l,c,d;if(a)l=L(e,t,this.clusterProps),c=e[t],d=e[t+1];else{const i=this.points[e[t+3]];l=i.properties;const[n,o]=i.geometry.coordinates;c=$(n),d=E(o)}const u={type:1,geometry:[[Math.round(this.options.extent*(c*o-i)),Math.round(this.options.extent*(d*o-n))]],tags:l};let p;p=a||this.options.generateId?e[t+3]:this.points[e[t+3]].id,void 0!==p&&(u.id=p),s.features.push(u)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const{radius:i,extent:n,reduce:o,minPoints:s}=this.options,r=i/(n*Math.pow(2,e)),a=t.data,l=[],c=this.stride;for(let i=0;i<a.length;i+=c){if(a[i+2]<=e)continue;a[i+2]=e;const n=a[i],d=a[i+1],u=t.within(a[i],a[i+1],r),p=a[i+5];let h=p;for(const t of u){const i=t*c;a[i+2]>e&&(h+=a[i+5])}if(h>p&&h>=s){let t,s=n*p,r=d*p,_=-1;const m=(i/c<<5)+(e+1)+this.points.length;for(const n of u){const l=n*c;if(a[l+2]<=e)continue;a[l+2]=e;const d=a[l+5];s+=a[l]*d,r+=a[l+1]*d,a[l+4]=m,o&&(t||(t=this._map(a,i,!0),_=this.clusterProps.length,this.clusterProps.push(t)),o(t,this._map(a,l)))}a[i+4]=m,l.push(s/h,r/h,1/0,m,-1,h),o&&l.push(_)}else{for(let t=0;t<c;t++)l.push(a[i+t]);if(h>1)for(const t of u){const i=t*c;if(!(a[i+2]<=e)){a[i+2]=e;for(let t=0;t<c;t++)l.push(a[i+t])}}}}return l}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,i){if(t[e+5]>1){const n=this.clusterProps[t[e+6]];return i?Object.assign({},n):n}const n=this.points[t[e+3]].properties,o=this.options.map(n);return i&&o===n?Object.assign({},o):o}}function T(t,e,i){return{type:"Feature",id:t[e+3],properties:L(t,e,i),geometry:{type:"Point",coordinates:[(n=t[e],360*(n-.5)),I(t[e+1])]}};var n}function L(t,e,i){const n=t[e+5],o=n>=1e4?`${Math.round(n/1e3)}
1k`:n>=1e3?Math.round(n/100)/10+"k":n,s=t[e+6],r=-1===s?{}:Object.assign({},i[s]);return Object.assign(r,{cluster:!0,cluster_id:t[e+3],point_count:n,point_count_abbreviated:o})}function $(t){return t/360+.5}function E(t){const e=Math.sin(t*Math.PI/180),i=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return i<0?0:i>1?1:i}function I(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}class M extends u{constructor(t){var{maxZoom:i,radius:n=60}=t,o=e(t,["maxZoom","radius"]);super({maxZoom:i}),this.state={zoom:-1},this.superCluster=new C(Object.assign({maxZoom:this.maxZoom,radius:n},o))}calculate(t){let e=!1;const n={zoom:t.map.getZoom()};if(!_(t.markers,this.markers)){e=!0,this.markers=[...t.markers];const n=this.markers.map((t=>{const e=i.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(n)}return e||(this.state.zoom<=this.maxZoom||n.zoom<=this.maxZoom)&&(e=!_(this.state,n)),this.state=n,e&&(this.clusters=this.cluster(t)),{cluster
vendor: 6,217 bytes, line 1
1s:this.clusters,changed:e}}cluster(t){let{map:e}=t;return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map((t=>this.transformCluster(t)))}transformCluster(t){let{geometry:{coordinates:[e,o]},properties:s}=t;if(s.cluster)return new n({markers:this.superCluster.getLeaves(s.cluster_id,1/0).map((t=>t.properties.marker)),position:{lat:o,lng:e}});const r=s.marker;return new n({markers:[r],position:i.getPosition(r)})}}class z{constructor(t,e){this.markers={sum:t.length};const i=e.map((t=>t.count)),n=i.reduce(((t,e)=>t+e),0);this.clusters={count:e.length,markers:{mean:n/e.length,sum:n,min:Math.min(...i),max:Math.max(...i)}}}}class j{render(t,e,n){let{count:o,position:s}=t;const r=`<svg fill="${o>Math.max(10,e.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">${o}</text>\n</svg>`,a=`Cluster of ${o} markers`,l=Number(google.maps.Marker.MAX_ZINDEX)+o;if(i.isAdvancedMarkerAvailable(n)){const t=(new DOMParser).parseFromString(r,"image/svg+xml").documentElement;t.setAttribute("transform","translate(0 25)");const e={map:n,position:s,zIndex:l,title:a,content:t};return new google.maps.marker.AdvancedMarkerElement(e)}const c={position:s,zIndex:l,title:a,icon:{url:`data:image/svg+xml;base64,${btoa(r)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(c)}}class A{constructor(){!function(t,e){for(let i in e.prototype)t.prototype[i]=e.prototype[i]}(A,google.maps.OverlayView)}}var P;t.MarkerClustererEvents=void 0,(P=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",P.CLUSTERING_END="clusteringend",P.CLUSTER_CLICK="click";const B=(t,e,i)=>{i.fitBounds(e.bounds)};return t.AbstractAlgorithm=u,t.AbstractViewportAlgorithm=p,t.Cluster=n,t.ClusterStats=z,t.DefaultRenderer=j,t.GridAlgorithm=class extends p{constructor(t){var{maxDistance:i=4e4,gridSize:n=40}=t;super(e(t,["maxDistance","gridSize"])),this.clusters=[],this.state={zoom:-1},this.maxDistance=i,this.gridSize=n}calculate(t){let{markers:e,map:i,mapCanvasProjection:n}=t;const s={zoom:i.getZoom()};let r=!1;return this.state.zoom>=this.maxZoom&&s.zoom>=this.maxZoom||(r=!_(this.state,s)),this.state=s,i.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e}),changed:r}:{clusters:this.cluster({markers:o(i,n,e,this.viewportPadding),map:i,mapCanvasProjection:n})}}cluster(t){let{markers:e,map:i,mapCanvasProjection:n}=t;return this.clusters=[],e.forEach((t=>{this.addToClosestCluster(t,i,n)})),this.clusters}addToClosestCluster(t,e,o){let r=this.maxDistance,l=null;for(let e=0;e<this.clusters.length;e++){const n=this.clusters[e],o=a(n.bounds.getCenter().toJSON(),i.getPosition(t).toJSON());o<r&&(r=o,l=n)}if(l&&s(l.bounds,o,this.gridSize).contains(i.getPosition(t)))l.push(t);else{const e=new n({markers:[t]});this.clusters.push(e)}}},t.MarkerClusterer=class extends A{constructor(t){let{map:e,markers:i=[],algorithmOptions:n={},algorithm:o=new M(n),renderer:s=new j,onClusterClick:r=B}=t;super(),this.markers=[...i],this.clusters=[],this.algorithm=o,this.renderer=s,this.onClusterClick=r,e&&this.setMap(e)}addMarker(t,e){this.markers.includes(t)||(this.markers.push(t),e||this.render())}addMarkers(t,e){t.forEach((t=>{this.addMarker(t,!0)})),e||this.render()}removeMarker(t,e){const n=this.markers.indexOf(t);return-1!==n&&(i.setMap(t,null),this.markers.splice(n,1),e||this.render(),!0)}removeMarkers(t,e){let i=!1;return t.forEach((t=>{i=this.removeMarker(t,!0)||i})),i&&!e&&this.render(),i}clearMarkers(t){this.markers.length=0,t||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_BEGIN,this);const{clusters:n,changed:o}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(o||null==o){const t=new Set;for(const e of n)1==e.markers.length&&t.add(e.markers[0]);const e=[];for(const n of this.clusters)null!=n.marker&&(1==n.markers.length?t.has(n.marker)||i.setMap(n.marker,null):e.push(n.marker));this.clusters=n,this.renderClusters(),requestAnimationFrame((()=>e.forEach((t=>i.setMap(t,null)))))}google.maps.event.trigger(this,t.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((t=>i.setMap(t,null))),this.clusters.forEach((t=>t.delete())),this.clusters=[]}renderClusters(){const e=new z(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((o=>{1===o.markers.length?o.marker=o.markers[0]:(o.marker=this.renderer.render(o,e,n),o.markers.forEach((t=>i.setMap(t,null))),this.onClusterClick&&o.marker.addListener("click",(e=>{google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTER_CLICK,o),this.onClusterClick(e,o,n)}))),i.setMap(o.marker,n)}))}},t.MarkerUtils=i,t.NoopAlgorithm=class extends u{constructor(t){super(e(t,[]))}calculate(t){let{markers:e,map:i,mapCanvasProjection:n}=t;return{clusters:this.cluster({markers:e,map:i,mapCanvasProjection:n}),changed:!1}}cluster(t){return this.noop(t)}},t.SuperClusterAlgorithm=M,t.SuperClusterViewportAlgorithm=class extends p{constructor(t){var{maxZoom:i,radius:n=60,viewportPadding:o=60}=t,s=e(t,["maxZoom","radius","viewportPadding"]);super({maxZoom:i,viewportPadding:o}),this.superCluster=new C(Object.assign({maxZoom:this.maxZoom,radius:n},s)),this.state={zoom:-1,view:[0,0,0,0]}}calculate(t){const e={zoom:Math.round(t.map.getZoom()),view:r(t.map.getBounds(),t.mapCanvasProjection,this.viewportPadding)};let n=!_(this.state,e);if(!_(t.markers,this.markers)){n=!0,this.markers=[...t.markers];const e=this.markers.map((t=>{const e=i.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(e)}
1return n&&(this.clusters=this.cluster(t),this.state=e),{clusters:this.clusters,changed:n}}cluster(t){let{map:e,mapCanvasProjection:i}=t;const n={zoom:Math.round(e.getZoom()),view:r(e.getBounds(),i,this.viewportPadding)};return this.superCluster.getClusters(n.view,n.zoom).map((t=>this.transformCluster(t)))}transformCluster(t){let{geometry:{coordinates:[e,o]},properties:s}=t;if(s.cluster)return new n({markers:this.superCluster.getLeaves(s.cluster_id,1/0).map((t=>t.properties.marker)),position:{lat:o,lng:e}});const r=s.marker;return new n({markers:[r],position:i.getPosition(r)})}},t.defaultOnClusterClickHandler=B,t.distanceBetweenPoints=a,t.extendBoundsToPaddedViewport=s,t.extendPixelBounds=c,t.filterMarkersToPaddedViewport=o,t.getPaddedViewport=r,t.noop=h,t.pixelBoundsToLatLngBounds=d,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
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(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).leaflet={})}(this,(function(t){"use strict";function e(t){for(var e,i,n=1,o=arguments.length;n<o;n++)for(e in i=arguments[n])t[e]=i[e];return t}var i=Object.create||function(t){return n.prototype=t,new n};function n(){}function o(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var s=0;function r(t){return"_leaflet_id"in t||(t._leaflet_id=++s),t._leaflet_id}function a(t,e,i){var n,o,s=function(){n=!1,o&&(r.apply(i,o),o=!1)},r=function(){n?o=arguments:(t.apply(i,arguments),setTimeout(s,e),n=!0)};return r}function l(t,e,i){var n=e[1],o=n-(e=e[0]);return t===n&&i?t:((t-e)%o+o)%o+e}function c(){return!1}function d(t,e){return!1===e?t:(e=Math.pow(10,void 0===e?6:e),Math.round(t*e)/e)}function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function p(t){return u(t).split(/\s+/)}function h(t,e){for(var n in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?i(t.options):{}),e)t.options[n]=e[n];return t.options}function _(t,e,i){var n,o=[];for(n in t)o.push(encodeURIComponent(i?n.toUpperCase():n)+"="+encodeURIComponent(t[n]));return(e&&-1!==e.indexOf("?")?"&":"?")+o.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function f(t,e){return t.replace(m,(function(t,i){if(void 0===(i=e[i]))throw new Error("No value provided for variable "+t);return"function"==typeof i?i(e):i}))}var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function v(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function w(t){var e=+new Date,i=Math.max(0,16-(e-x));return x=e+i,window.setTimeout(t,i)}var k=window.requestAnimationFrame||b("RequestAnimationFrame")||w,S=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function C(t,e,i){if(!i||k!==w)return k.call(window,o(t,e));t.call(e)}function T(t){t&&S.call(window,t)}var $={__proto__:null,extend:e,create:i,bind:o,get lastId(){return s},stamp:r,throttle:a,wrapNum:l,falseFn:c,formatNum:d,trim:u,splitWords:p,setOptions:h,getParamString:_,template:f,isArray:g,indexOf:v,emptyImageUrl:y,requestFn:k,cancelFn:S,requestAnimFrame:C,cancelAnimFrame:T};function E(){}E.extend=function(t){function n(){h(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var o,s=n.__super__=this.prototype,r=i(s);for(o in(r.constructor=n).prototype=r,this)Object.prototype.hasOwnProperty.call(this,o)&&"prototype"!==o&&"__super__"!==o&&(n[o]=this[o]);if(t.statics&&e(n,t.statics),t.includes){var a=t.includes;if("undefined"!=typeof L&&L&&L.Mixin){a=g(a)?a:[a];for(var l=0;l<a.length;
vendor: 7,957 bytes, line 5
5l++)a[l]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}e.apply(null,[r].concat(t.includes))}return e(r,t),delete r.statics,delete r.includes,r.options&&(r.options=s.options?i(s.options):{},e(r.options,t.options)),r._initHooks=[],r.callInitHooks=function(){if(!this._initHooksCalled){s.callInitHooks&&s.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=r._initHooks.length;t<e;t++)r._initHooks[t].call(this)}},n},E.include=function(t){var i=this.prototype.options;return e(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},E.mergeOptions=function(t){return e(this.prototype.options,t),this},E.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var I={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var o=0,s=(t=p(t)).length;o<s;o++)this._on(t[o],e,i);return this},off:function(t,e,i){if(arguments.length)if("object"==typeof t)for(var n in t)this._off(n,t[n],e);else{t=p(t);for(var o=1===arguments.length,s=0,r=t.length;s<r;s++)o?this._off(t[s]):this._off(t[s],e,i)}else delete this._events;return this},_on:function(t,e,i){if("function"!=typeof e)console.warn("wrong listener type: "+typeof e);else{this._events=this._events||{};for(var n=this._events[t],o=(t=(n||(this._events[t]=n=[]),{fn:e,ctx:i=i===this?void 0:i}),n),s=0,r=o.length;s<r;s++)if(o[s].fn===e&&o[s].ctx===i)return;o.push(t)}},_off:function(t,e,i){var n,o,s;if(this._events&&(n=this._events[t]))if(1===arguments.length){if(this._firingCount)for(o=0,s=n.length;o<s;o++)n[o].fn=c;delete this._events[t]}else if(i===this&&(i=void 0),"function"!=typeof e)console.warn("wrong listener type: "+typeof e);else{for(o=0,s=n.length;o<s;o++){var r=n[o];if(r.ctx===i&&r.fn===e)return this._firingCount&&(r.fn=c,this._events[t]=n=n.slice()),void n.splice(o,1)}console.warn("listener not found")}},fire:function(t,i,n){if(!this.listens(t,n))return this;var o=e({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var r=0,a=s.length;r<a;r++){var l=s[r];l.fn.call(l.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,e){"string"!=typeof t&&console.warn('"string" type argument expected');var i=this._events&&this._events[t];if(i&&i.length)return!0;if(e)for(var n in this._eventParents)if(this._eventParents[n].listens(t,e))return!0;return!1},once:function(t,e,i){if("object"==typeof t){for(var n in t)this.once(n,t[n],e);return this}var s=o((function(){this.off(t,e,i).off(t,s,i)}),this);return this.on(t,e,i).on(t,s,i)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[r(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[r(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}},M=(I.addEventListener=I.on,I.removeEventListener=I.clearAllEventListeners=I.off,I.addOneTimeEventListener=I.once,I.fireEvent=I.fire,I.hasEventListeners=I.listens,E.extend(I));function z(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var j=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};function A(t,e,i){return t instanceof z?t:g(t)?new z(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new z(t.x,t.y):new z(t,e,i)}function P(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function B(t,e){return!t||t instanceof P?t:new P(t,e)}function D(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function O(t,e){return t instanceof D?t:new D(t,e)}function W(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function N(t,e,i){return t instanceof W?t:g(t)&&"object"!=typeof t[0]?3===t.length?new W(t[0],t[1],t[2]):2===t.length?new W(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new W(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new W(t,e,i)}z.prototype={clone:function(){return new z(this.x,this.y)},add:function(t){return this.clone()._add(A(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(A(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new z(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new z(this.x/t.x,this.y/t.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(t){var e=(t=A(t)).x-this.x;t=t.y-this.y;return Math.sqrt(e*e+t*t)},equals:function(t){return(t=A(t)).x===this.x&&t.y===this.y},contains:function(t){return t=A(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+d(this.x)+", "+d(this.y)+")"}},P.prototype={extend:function(t){return t=A(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new z(this.min.x,this.max.y)},getTopRight:function(){return new z(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(t){var e,i;return(t=("number"==typeof t[0]||t instanceof z?A:B)(t))instanceof P?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=B(t);var e=this.min,i=this.max,n=t.min,o=(t=t.max).x>=e.x&&n.x<=i.x;t=t.y>=e.y&&n.y<=i.y;return o&&t},overlaps:function(t){t=B(t);var e=this.min,i=this.max,n=t.min,o=(t=t.max).x>e.x&&n.x<i.x;t=t.y>e.y&&n.y<i.y;return o&&t},isValid:function(){return!(!this.min||!this.max)}},D.prototype={extend:function(t){var e,i,n=this._southWest,o=this._northEast;if(t instanceof W)i=e=t;else{if(!(t instanceof D))return t?this.extend(N(t)||O(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||o?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),o.lat=Math.max(i.lat,o.lat),o.lng=Math.max(i.lng,o.lng)):(this._southWest=new W(e.lat,e.lng),this._northEast=new W(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t;t=Math.abs(e.lng-i.lng)*t;return new D(new W(e.lat-n,e.lng-t),new W(i.lat+n,i.lng+t))},getCenter:function(){return new W((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 W(this.getNorth(),this.getWest())},getSouthEast:function(){return new W(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
vendor: 2,399 bytes, line 5
5,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t=("number"==typeof t[0]||t instanceof W||"lat"in t?N:O)(t);var e,i,n=this._southWest,o=this._northEast;return t instanceof D?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=O(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=(t=t.getNorthEast()).lat>=e.lat&&n.lat<=i.lat;t=t.lng>=e.lng&&n.lng<=i.lng;return o&&t},overlaps:function(t){t=O(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=(t=t.getNorthEast()).lat>e.lat&&n.lat<i.lat;t=t.lng>e.lng&&n.lng<i.lng;return o&&t},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=O(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}};var H={latLngToPoint:function(t,e){return t=this.projection.project(t),e=this.scale(e),this.transformation._transform(t,e)},pointToLatLng:function(t,e){return e=this.scale(e),t=this.transformation.untransform(t,e),this.projection.unproject(t)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds;t=this.scale(t);return new P(this.transformation.transform(e.min,t),this.transformation.transform(e.max,t))},infinite:!(W.prototype={equals:function(t,e){return!!t&&(t=N(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+d(this.lat,t)+", "+d(this.lng,t)+")"},distanceTo:function(t){return F.distance(this,N(t))},wrap:function(){return F.wrapLatLng(this)},toBounds:function(t){var e=(t=180*t/40075017)/Math.cos(Math.PI/180*this.lat);return O([this.lat-t,this.lng-e],[this.lat+t,this.lng+e])},clone:function(){return new W(this.lat,this.lng,this.alt)}}),wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new W(this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat;e=e.lng-i.lng;
vendor: 6,964 bytes, line 5
5return 0==n&&0==e?t:(i=t.getSouthWest(),t=t.getNorthEast(),new D(new W(i.lat-n,i.lng-e),new W(t.lat-n,t.lng-e)))}},F=e({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,s=Math.sin((e.lat-t.lat)*i/2);e=Math.sin((e.lng-t.lng)*i/2),t=s*s+Math.cos(n)*Math.cos(o)*e*e,i=2*Math.atan2(Math.sqrt(t),Math.sqrt(1-t));return this.R*i}}),Z={R:Z=6378137,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE;i=Math.max(Math.min(i,t.lat),-i),i=Math.sin(i*e);return new z(this.R*t.lng*e,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(t){var e=180/Math.PI;return new W((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:new P([-(Z*=Math.PI),-Z],[Z,Z])};function q(t,e,i,n){if(g(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=n}function G(t,e,i,n){return new q(t,e,i,n)}q.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return t.x=(e=e||1)*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return new z((t.x/(e=e||1)-this._b)/this._a,(t.y/e-this._d)/this._c)}};var R=e({},F,{code:"EPSG:3857",projection:Z,transformation:G(R=.5/(Math.PI*Z.R),.5,-R,.5)}),Y=e({},R,{code:"EPSG:900913"});function V(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function U(t,e){for(var i,n,o,s,r="",a=0,l=t.length;a<l;a++){for(i=0,n=(o=t[a]).length;i<n;i++)r+=(i?"L":"M")+(s=o[i]).x+" "+s.y;r+=e?$t.svg?"z":"x":""}return r||"M0 0"}var J=document.documentElement.style,Q="ActiveXObject"in window,X=Q&&!document.addEventListener,K="msLaunchUri"in navigator&&!("documentMode"in document),tt=Lt("webkit"),et=Lt("android"),it=Lt("android 2")||Lt("android 3"),nt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ot=(nt=et&&Lt("Google")&&nt<537&&!("AudioNode"in window),!!window.opera),st=!K&&Lt("chrome"),rt=Lt("gecko")&&!tt&&!ot&&!Q,at=!st&&Lt("safari"),lt=Lt("phantom"),ct="OTransition"in J,dt=0===navigator.platform.indexOf("Win"),ut=Q&&"transition"in J,pt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!it,ht=(J="MozPerspective"in J,!window.L_DISABLE_3D&&(ut||pt||J)&&!ct&&!lt),_t=(Fi="undefined"!=typeof orientation||Lt("mobile"))&&tt,mt=Fi&&pt,ft=!window.PointerEvent&&window.MSPointerEvent,gt=!(!window.PointerEvent&&!ft),vt="ontouchstart"in window||!!window.TouchEvent,yt=!window.L_NO_TOUCH&&(vt||gt),bt=Fi&&ot,xt=Fi&&rt,wt=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),kt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",c,e),window.removeEventListener("testPassiveEventSupport",c,e)}catch(t){}return t}(),St=!!document.createElement("canvas").getContext,Ct=!(!document.createElementNS||!V("svg").createSVGRect),Tt=!!Ct&&((Tt=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(Tt.firstChild&&Tt.firstChild.namespaceURI));function Lt(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var $t={ie:Q,ielt9:X,edge:K,webkit:tt,android:et,android23:it,androidStock:nt,opera:ot,chrome:st,gecko:rt,safari:at,phantom:lt,opera12:ct,win:dt,ie3d:ut,webkit3d:pt,gecko3d:J,any3d:ht,mobile:Fi,mobileWebkit:_t,mobileWebkit3d:mt,msPointer:ft,pointer:gt,touch:yt,touchNative:vt,mobileOpera:bt,mobileGecko:xt,retina:wt,passiveEvents:kt,canvas:St,svg:Ct,vml:!Ct&&function(){try{var t=document.createElement("div"),e=(t.innerHTML='<v:shape adj="1"/>',t.firstChild);return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),inlineSvg:Tt},Et=$t.msPointer?"MSPointerDown":"pointerdown",It=$t.msPointer?"MSPointerMove":"pointermove",Mt=$t.msPointer?"MSPointerUp":"pointerup",zt=$t.msPointer?"MSPointerCancel":"pointercancel",jt={touchstart:Et,touchmove:It,touchend:Mt,touchcancel:zt},At={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ee(e),Nt(t,e)},touchmove:Nt,touchend:Nt,touchcancel:Nt},Pt={},Bt=!1;function Dt(t){Pt[t.pointerId]=t}function Ot(t){Pt[t.pointerId]&&(Pt[t.pointerId]=t)}function Wt(t){delete Pt[t.pointerId]}function Nt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],Pt)e.touches.push(Pt[i]);e.changedTouches=[e],t(e)}}var Ht,Ft,Zt,qt,Gt,Rt,Yt=ce(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Vt=ce(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ut="webkitTransition"===Vt||"OTransition"===Vt?Vt+"End":"transitionend";function Jt(t){return"string"==typeof t?document.getElementById(t):t}function Qt(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];return"auto"===(i=i&&"auto"!==i||!document.defaultView?i:(t=document.defaultView.getComputedStyle(t,null))?t[e]:null)?null:i}function Xt(t,e,i){return(t=document.createElement(t)).className=e||"",i&&i.appendChild(t),t}function Kt(t){var e=t.parentNode;e&&e.removeChild(t)}function te(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ee(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ie(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ne(t,e){return void 0!==t.classList?t.classList.contains(e):0<(t=ae(t)).length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t)}function oe(t,e){var i;if(void 0!==t.classList)for(var n=p(e),o=0,s=n.length;o<s;o++)t.classList.add(n[o]);else ne(t,e)||re(t,((i=ae(t))?i+" ":"")+e)}function se(t,e){void 0!==t.classList?t.classList.remove(e):re(t,u((" "+ae(t)+" ").replace(" "+e+" "," ")))}function re(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function ae(t){return void 0===(t=t.correspondingElement?t.correspondingElement:t).className.baseVal?t.className:t.className.baseVal}function le(t,e){if("opacity"in t.style)t.style.opacity=e;else if("filter"in t.style){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}}function ce(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function de(t,e,i){e=e||new z(0,0),t.style[Yt]=($t.ie3d?"translate("+e.x+"px,"+e.y+"px)":"translate3d("+e.x+"px,"+e.y+"px,0)")+(i?" scale("+i+")":"")}function ue(t,e){t._leaflet_pos=e,$t.any3d?de(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function pe(t){return t._leaflet_pos||new z(0,0)}function he(){ye(window,"dragstart",Ee)}function _e(){xe(window,"dragstart",Ee)}function me(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(fe(),Rt=(Gt=t).style.outline,t.style.outline="none",ye(window,"keydown",fe))}function fe(){Gt&&(Gt.style.outline=Rt,Rt=Gt=void 0,xe(window,"keydown",fe))}function ge(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function ve(t){var e=t.getBoundingClientRect();
5return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}function ye(t,e,i,n){if(e&&"object"==typeof e)for(var o in e)Se(t,o,e[o],i);else for(var s=0,r=(e=p(e)).length;s<r;s++)Se(t,e[s],i,n);return this}qt="onselectstart"in document?(Zt=function(){ye(window,"selectstart",Ee)},function(){xe(window,"selectstart",Ee)}):(Ft=ce(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),Zt=function(){var t;Ft&&(t=document.documentElement.style,Ht=t[Ft],t[Ft]="none")},function(){Ft&&(document.documentElement.style[Ft]=Ht,Ht=void 0)}),Q={__proto__:null,TRANSFORM:Yt,TRANSITION:Vt,TRANSITION_END:Ut,get:Jt,getStyle:Qt,create:Xt,remove:Kt,empty:te,toFront:ee,toBack:ie,hasClass:ne,addClass:oe,removeClass:se,setClass:re,getClass:ae,setOpacity:le,testProp:ce,setTransform:de,setPosition:ue,getPosition:pe,get disableTextSelection(){return Zt},get enableTextSelection(){return qt},disableImageDrag:he,enableImageDrag:_e,preventOutline:me,restoreOutline:fe,getSizedParentNode:ge,getScale:ve};var be="_leaflet_events";function xe(t,e,i,n){if(1===arguments.length)we(t),delete t[be];else if(e&&"object"==typeof e)for(var o in e)Ce(t,o,e[o],i);else if(e=p(e),2===arguments.length)we(t,(function(t){return-1!==v(e,t)}));else for(var s=0,r=e.length;s<r;s++)Ce(t,e[s],i,n);return this}function we(t,e){for(var i in t[be]){var n=i.split(/\d/)[0];e&&!e(n)||Ce(t,n,null,null,i)}}
vendor: 4,882 bytes, line 5
5var ke={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Se(t,e,i,n){var o,s,a=e+r(i)+(n?"_"+r(n):"");t[be]&&t[be][a]||(s=o=function(e){return i.call(n||t,e||window.event)},!$t.touchNative&&$t.pointer&&0===e.indexOf("touch")?o=function(t,e,i){return"touchstart"!==e||Bt||(document.addEventListener(Et,Dt,!0),document.addEventListener(It,Ot,!0),document.addEventListener(Mt,Wt,!0),document.addEventListener(zt,Wt,!0),Bt=!0),At[e]?(i=At[e].bind(this,i),t.addEventListener(jt[e],i,!1),i):(console.warn("wrong event specified:",e),L.Util.falseFn)}(t,e,o):$t.touch&&"dblclick"===e?o=function(t,e){t.addEventListener("dblclick",e);var i,n=0;function o(t){var o;1!==t.detail?i=t.detail:"mouse"===t.pointerType||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents||((o=Date.now())-n<=200?2===++i&&e(function(t){var e,i,n={};for(i in t)e=t[i],n[i]=e&&e.bind?e.bind(t):e;return(t=n).type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}(t)):i=1,n=o)}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}(t,o):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(ke[e]||e,o,!!$t.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?t.addEventListener(ke[e],o=function(e){e=e||window.event,Ae(t,e)&&s(e)},!1):t.addEventListener(e,s,!1):t.attachEvent("on"+e,o),t[be]=t[be]||{},t[be][a]=o)}function Ce(t,e,i,n,o){var s,a;o=o||e+r(i)+(n?"_"+r(n):""),(i=t[be]&&t[be][o])&&(!$t.touchNative&&$t.pointer&&0===e.indexOf("touch")?(n=t,a=i,jt[s=e]?n.removeEventListener(jt[s],a,!1):console.warn("wrong event specified:",s)):$t.touch&&"dblclick"===e?(n=i,(a=t).removeEventListener("dblclick",n.dblclick),a.removeEventListener("click",n.simDblclick)):"removeEventListener"in t?t.removeEventListener(ke[e]||e,i,!1):t.detachEvent("on"+e,i),t[be][o]=null)}function Te(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Le(t){return Se(t,"wheel",Te),this}function $e(t){return ye(t,"mousedown touchstart dblclick contextmenu",Te),t._leaflet_disable_click=!0,this}function Ee(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ie(t){return Ee(t),Te(t),this}function Me(t,e){if(!e)return new z(t.clientX,t.clientY);var i=ve(e),n=i.boundingClientRect;return new z((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var ze=$t.win&&$t.chrome?2*window.devicePixelRatio:$t.gecko?window.devicePixelRatio:1;function je(t){return $t.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/ze:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Ae(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}X={__proto__:null,on:ye,off:xe,stopPropagation:Te,disableScrollPropagation:Le,disableClickPropagation:$e,preventDefault:Ee,stop:Ie,getMousePosition:Me,getWheelDelta:je,isExternalTarget:Ae,addListener:ye,removeListener:xe};var Pe=M.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=pe(t),this._offset=e.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=C(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){t=this._startPos.add(this._offset.multiplyBy(t)),e&&t._round(),ue(this._el,t),this.fire("step")},_complete:function(){T(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Be=M.extend({options:{crs:R,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(t,e){e=h(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(N(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Vt&&$t.any3d&&!$t.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),ye(this._proxy,Ut,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
vendor: 16,385 bytes, line 5
5,setView:function(t,i,n){return i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(N(t),i,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=e({animate:n.animate},n.zoom),n.pan=e({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,i),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||($t.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||($t.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2);t=(t instanceof z?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),n=this.containerPointToLatLng(o.add(t));return this.setView(n,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():O(t);var i=A(e.paddingTopLeft||e.padding||[0,0]),n=A(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));return(o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0?{center:t.getCenter(),zoom:o}:(e=n.subtract(i).divideBy(2),n=this.project(t.getSouthWest(),o),i=this.project(t.getNorthEast(),o),{center:this.unproject(n.add(i).divideBy(2).add(e),o),zoom:o})},fitBounds:function(t,e){if(!(t=O(t)).isValid())throw new Error("Bounds are not valid.");return t=this._getBoundsCenterZoom(t,e),this.setView(t.center,t.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){return e=e||{},(t=A(t).round()).x||t.y?(!0===e.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new Pe,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate?(oe(this._mapPane,"leaflet-pan-anim"),i=this._getMapPanePos().subtract(t).round(),this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)):(this._rawPanBy(t),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this):this.fire("moveend");var i},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!$t.any3d)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),o=this.project(t),s=this.getSize(),r=this._zoom,a=(t=N(t),e=void 0===e?r:e,Math.max(s.x,s.y)),l=a*this.getZoomScale(r,e),c=o.distanceTo(n)||1,d=1.42,u=d*d;function p(t){return t=(l*l-a*a+(t?-1:1)*u*u*c*c)/(2*(t?l:a)*u*c),(t=Math.sqrt(t*t+1)-t)<1e-9?-18:Math.log(t)}function h(t){return(Math.exp(t)-Math.exp(-t))/2}function _(t){return(Math.exp(t)+Math.exp(-t))/2}var m=p(0);var f=Date.now(),g=(p(1)-m)/d,v=i.duration?1e3*i.duration:1e3*g*.8;return this._moveStart(!0,i.noMoveStart),function i(){var s=(Date.now()-f)/v,l=(1-Math.pow(1-s,1.5))*g;s<=1?(this._flyToFrame=C(i,this),this._move(this.unproject(n.add(o.subtract(n).multiplyBy(function(t){return a*(_(m)*(h(t=m+d*t)/_(t))-h(m))/u}(l)/c)),r),this.getScaleZoom(a/(s=l,a*(_(m)/_(m+d*s))),r),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){return t=this._getBoundsCenterZoom(t,e),this.flyTo(t.center,t.zoom,e)},setMaxBounds:function(t){return(t=O(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter();t=this._limitCenter(i,this._zoom,O(t));return i.equals(t)||this.panTo(t,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=A((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=A(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),s=(t=this.project(t),(i=B([(s=this.getPixelBounds()).min.add(i),s.max.subtract(n)])).getSize());return i.contains(t)||(this._enforcingBounds=!0,n=t.subtract(i.getCenter()),i=i.extend(t).getSize().subtract(s),o.x+=n.x<0?-i.x:i.x,o.y+=n.y<0?-i.y:i.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1),this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize(),n=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),s=i.divideBy(2).round(),r=n.divideBy(2).round();return(s=s.subtract(r)).x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(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(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,n,t):navigator.geolocation.getCurrentPosition(i,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e;this._container._leaflet_id&&(e=t.code,t=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+t+"."}))},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e,i,n=new W(t.coords.latitude,t.coords.longitude),o=n.toBounds(2*t.coords.accuracy),s=this._locateOptions,r=(s.setView&&(e=this.getBoundsZoom(o),this.setView(n,s.maxZoom?Math.min(e,s.maxZoom):e)),{latlng:n,bounds:o,timestamp:t.timestamp});for(i in t.coords)"number"==typeof t.coords[i]&&(r[i]=t.coords[i]);this.fire("locationfound",r)}},addHandler:function(t,e){return e?(e=this[t]=new e(this),this._handlers.push(e),this.options[t]&&e.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(t){this._container._leaflet_id=void 0,this._containerId=void 0}for(var t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),Kt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(T(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)Kt(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){return e=Xt("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane),t&&(this._panes[t]=e),e},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new D(this.unproject(t.getBottomLeft()),this.unproject(t.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(t,e,i){t=O(t),i=A(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=(t=t.getSouthEast(),i=this.getSize().subtract(i),t=B(this.project(t,n),this.project(r,n)).getSize(),r=$t.any3d?this.options.zoomSnap:1,i.x/t.x);i=i.y/t.y,t=e?Math.max(a,i):Math.min(a,i),n=this.getScaleZoom(t,n);return r&&(n=Math.round(n/(r/100))*(r/100),n=e?Math.ceil(n/r)*r:Math.floor(n/r)*r),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){return new P(t=this._getTopLeftPoint(t,e),t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e,t=i.zoom(t*i.scale(e));return isNaN(t)?1/0:t},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(N(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(A(t),e)},layerPointToLatLng:function(t){return t=A(t).add(this.getPixelOrigin()),this.unproject(t)},latLngToLayerPoint:function(t){return this.project(N(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(N(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(O(t))},distance:function(t,e){return this.options.crs.distance(N(t),N(e))},containerPointToLayerPoint:function(t){return A(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return A(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){return t=this.containerPointToLayerPoint(A(t)),this.layerPointToLatLng(t)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(N(t)))},mouseEventToContainerPoint:function(t){return Me(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){if(!(t=this._container=Jt(t)))throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");ye(t,"scroll",this._onScroll,this),this._containerId=r(t)},_initLayout:function(){var t=this._container,e=(this._fadeAnimated=this.options.fadeAnimation&&$t.any3d,oe(t,"leaflet-container"+($t.touch?" leaflet-touch":"")+($t.retina?" leaflet-retina":"")+($t.ielt9?" leaflet-oldie":"")+($t.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),Qt(t,"position"));"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ue(this._mapPane,new z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(oe(t.markerPane,"leaflet-zoom-hide"),oe(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){ue(this._mapPane,new z(0,0));var i=!this._loaded,n=(this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset"),this._zoom!==e);this._moveStart(n,!1)._move(t,e)._moveEnd(n),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return T(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ue(this._mapPane,this._getMapPanePos().subtract(t))},_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(t){this._targets={};var e=t?xe:ye;e((this._targets[r(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),$t.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){T(this._resizeRequest),this._resizeRequest=C((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],o="mouseout"===e||"mouseover"===e,s=t.target||t.srcElement,a=!1;s;){if((i=this._targets[r(s)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){a=!0;break}if(i&&i.listens(e,!0)){if(o&&!Ae(s,t))break;if(n.push(i),o)break}if(s===this._container)break;s=s.parentNode}return n.length||a||o||!this.listens(e,!0)?n:[this]},_isClickDisabled:function(t){for(;t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e,i=t.target||t.srcElement;!this._loaded||i._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(i)||("mousedown"===(e=t.type)&&me(i),this._fireDOMEvent(t,e))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,n){"click"===t.type&&((l=e({},t)).type="preclick",this._fireDOMEvent(l,l.type,n));var o=this._findEventTargets(t,i);if(n){for(var s=[],r=0;r<n.length;r++)n[r].listens(i,!0)&&s.push(n[r]);o=s.concat(o)}if(o.length){"contextmenu"===i&&Ee(t);var a,l=o[0],c={originalEvent:t};for("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(a=l.getLatLng&&(!l._radius||l._radius<=10),c.containerPoint=a?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),c.layerPoint=this.containerPointToLayerPoint(c.containerPoint),c.latlng=a?l.getLatLng():this.layerPointToLatLng(c.layerPoint)),r=0;r<o.length;r++)if(o[r].fire(i,c,!0),c.originalEvent._stopped||!1===o[r].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,i))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return pe(this._mapPane)||new z(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){return i=this._getNewPixelOrigin(i,e),this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,i){return i=this._getNewPixelOrigin(i,e),B([this.project(t.getSouthWest
vendor: 15,677 bytes, line 5
5(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),o=this.getSize().divideBy(2);o=new P(n.subtract(o),n.add(o));return(o=this._getBoundsOffset(o,i,e)).round().equals([0,0])?t:this.unproject(n.add(o),e)},_limitOffset:function(t,e){if(!e)return t;var i=new P((i=this.getPixelBounds()).min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,i){return i=(e=B(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i))).min.subtract(t.min),e=e.max.subtract(t.max),new z(this._rebound(i.x,-e.x),this._rebound(i.y,-e.y))},_rebound:function(t,e){return 0<t+e?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=$t.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){se(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){return t=this._getCenterOffset(t)._trunc(),!(!0!==(e&&e.animate)&&!this.getSize().contains(t)||(this.panBy(t,e),0))},_createAnimProxy:function(){var t=this._proxy=Xt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=Yt,i=this._proxy.style[e];de(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Kt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();de(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e);n=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(n)||(C((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,oe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&se(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 De(t){return new We(t)}var Oe,We=E.extend({options:{position:"topright"},initialize:function(t){h(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition();t=t._controlCorners[i];return oe(e,"leaflet-control"),-1!==i.indexOf("bottom")?t.insertBefore(e,t.firstChild):t.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(Kt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0<t.screenX&&0<t.screenY&&this._map.getContainer().focus()}}),Ne=(Be.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=Xt("div",e+"control-container",this._container);function n(n,o){t[n+o]=Xt("div",e+n+" "+e+o,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)Kt(this._controlCorners[t]);Kt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}}),We.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in h(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),(this._map=t).on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return We.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){return t.off("add remove",this._onLayerChange,this),(t=this._getLayer(r(t)))&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){oe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(oe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):se(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return se(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=Xt("div",t),i=this.options.collapsed,n=(e.setAttribute("aria-haspopup",!0),$e(e),Le(e),this._section=Xt("section",t+"-list")),o=(i&&(this._map.on("click",this.collapse,this),ye(e,{mouseenter:function(){ye(n,"click",Ee),this.expand(),setTimeout((function(){xe(n,"click",Ee)}))},mouseleave:this.collapse},this)),this._layersLink=Xt("a",t+"-toggle",e));o.href="#",o.title="Layers",o.setAttribute("role","button"),ye(o,"click",Ee),ye(o,"focus",this.expand,this),i||this.expand(),this._baseLayersList=Xt("div",t+"-base",n),this._separator=Xt("div",t+"-separator",n),this._overlaysList=Xt("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&r(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(o((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;te(this._baseLayersList),te(this._overlaysList),this._layerControlInputs=[];for(var t,e,i,n=0,o=0;o<this._layers.length;o++)i=this._layers[o],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,n+=i.overlay?0:1;return this.options.hideSingleBase&&(this._baseLayersList.style.display=(t=t&&1<n)?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(r(t.target));(t=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null)&&this._map.fire(t,e)},_createRadioElement:function(t,e){return t='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",(e=document.createElement("div")).innerHTML=t,e.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer),o=((n=(t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+r(this),n),this._layerControlInputs.push(e),e.layerId=r(t.layer),ye(e,"click",this._onInputClick,this),document.createElement("span"))).innerHTML=" "+t.name,document.createElement("span"));return i.appendChild(o),o.appendChild(e),o.appendChild(n),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=i.length-1;0<=s;s--)t=i[s],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])&&this._map.removeLayer(o[s]);for(s=0;s<n.length;s++)this._map.hasLayer(n[s])||this._map.addLayer(n[s]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),o=i.length-1;0<=o;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this}})),He=We.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=Xt("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.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(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){return(i=Xt("a",i,n)).innerHTML=t,i.href="#",i.title=e,i.setAttribute("role","button"),i.setAttribute("aria-label",e),$e(i),ye(i,"click",Ie),ye(i,"click",o,this),ye(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";se(this._zoomInButton,e),se(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),!this._disabled&&t._zoom!==t.getMinZoom()||(oe(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),!this._disabled&&t._zoom!==t.getMaxZoom()||(oe(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}}),Fe=(Be.mergeOptions({zoomControl:!0}),Be.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new He,this.addControl(this.zoomControl))})),We.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=Xt("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=Xt("div",e,i)),t.imperial&&(this._iScale=Xt("div",e,i))},_update:function(){var t=(e=this._map).getSize().y/2,e=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(e)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t);this._updateScale(this._mScale,e<1e3?e+" m":e/1e3+" km",e/t)},_updateImperial:function(t){var e,i;5280<(t=3.2808399*t)?(i=this._getRoundNum(e=t/5280),this._updateScale(this._iScale,i+" mi",i/e)):(i=this._getRoundNum(t),this._updateScale(this._iScale,i+" ft",i/t))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1);return e*(10<=(t=t/e)?10:5<=t?5:3<=t?3:2<=t?2:1)}})),Ze=We.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+($t.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(t){h(this,t),this._attributions={}},onAdd:function(t){for(var e in(t.attributionControl=this)._container=Xt("div","leaflet-control-attribution"),$e(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t,e=[];for(t in this._attributions)this._attributions[t]&&e.push(t);var i=[];this.options.prefix&&i.push(this.options.prefix),e.length&&i.push(e.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}}),qe=(K=(Be.mergeOptions({attributionControl:!0}),Be.addInitHook((function(){this.options.attributionControl&&(new Ze).addTo(this)})),We.Layers=Ne,We.Zoom=He,We.Scale=Fe,We.Attribution=Ze,De.layers=function(t,e,i){return new Ne(t,e,i)},De.zoom=function(t){return new He(t)},De.scale=function(t){return new Fe(t)},De.attribution=function(t){return new Ze(t)},E.extend({initialize:function(t){this._map=t},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}})),tt=(K.addTo=function(t,e){return t.addHandler(e,this),this},{Events:I}),$t.touch?"touchstart mousedown":"mousedown"),Ge=M.extend({options:{clickTolerance:3}
vendor: 4,187 bytes, line 5
5,initialize:function(t,e,i,n){h(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(ye(this._dragStartTarget,qe,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ge._dragging===this&&this.finishDrag(!0),xe(this._dragStartTarget,qe,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var e,i;this._enabled&&(this._moved=!1,ne(this._element,"leaflet-zoom-anim")||(t.touches&&1!==t.touches.length?Ge._dragging===this&&this.finishDrag():Ge._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((Ge._dragging=this)._preventOutline&&me(this._element),he(),Zt(),this._moving||(this.fire("down"),i=t.touches?t.touches[0]:t,e=ge(this._element),this._startPoint=new z(i.clientX,i.clientY),this._startPos=pe(this._element),this._parentScale=ve(e),i="mousedown"===t.type,ye(document,i?"mousemove":"touchmove",this._onMove,this),ye(document,i?"mouseup":"touchend touchcancel",this._onUp,this)))))},_onMove:function(t){var e;this._enabled&&(t.touches&&1<t.touches.length?this._moved=!0:!(e=new z((e=t.touches&&1===t.touches.length?t.touches[0]:t).clientX,e.clientY)._subtract(this._startPoint)).x&&!e.y||Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance||(e.x/=this._parentScale.x,e.y/=this._parentScale.y,Ee(t),this._moved||(this.fire("dragstart"),this._moved=!0,oe(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),oe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(e),this._moving=!0,this._lastEvent=t,this._updatePosition()))},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),ue(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){se(document.body,"leaflet-dragging"),this._lastTarget&&(se(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),xe(document,"mousemove touchmove",this._onMove,this),xe(document,"mouseup touchend touchcancel",this._onUp,this),_e(),qt(),this._moved&&this._moving&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,Ge._dragging=!1}});function Re(t,e){return e&&t.length?function(t,e){var i=t.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);n[0]=n[i-1]=1,function t(e,i,n,o,s){var r,a,l,c=0;for(a=o+1;a<=s-1;a++)c<(l=Qe(e[a],e[o],e[s],!0))&&(r=a,c=l);n<c&&(i[r]=1,t(e,i,n,o,r),t(e,i,n,r,s))}(t,n,e,0,i-1);var o,s=[];for(o=0;o<i;o++)n[o]&&s.push(t[o]);return s}(t=function(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;n<s;n++)(function(t,e){var i=e.x-t.x;return i*i+(e=e.y-t.y)*e})(t[n],t[o])>e&&(i.push(t[n]),o=n);return o<s-1&&i.push(t[s-1]),i}(t,e*=e),e):t.slice()}function Ye(t,e,i){return Math.sqrt(Qe(t,e,i,!0))}function Ve(t,e,i,n,o){var s,r,a,l=n?Oe:Je(t,i),c=Je(e,i);for(Oe=c;;){if(!(l|c))return[t,e];if(l&c)return!1;a=Je(r=Ue(t,e,s=l||c,i,o),i),s===l?(t=r,l=a):(e=r,c=a)}}function Ue(t,e,i,n,o){var s,r,a=e.x-t.x,l=(e=e.y-t.y,n.min);n=n.max;return 8&i?(s=t.x+a*(n.y-t.y)/e,r=n.y):4&i?(s=t.x+a*(l.y-t.y)/e,r=l.y):2&i?(s=n.x,r=t.y+e*(n.x-t.x)/a):1&i&&(s=l.x,r=t.y+e*(l.x-t.x)/a),new z(s,r,o)}function Je(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function Qe(t,e,i,n){var o=e.x,s=(e=e.y,i.x-o),r=i.y-e,a=s*s+r*r;return 0<a&&(1<(a=((t.x-o)*s+(t.y-e)*r)/a)?(o=i.x,e=i.y):0<a&&(o+=s*a,e+=r*a)),s=t.x-o,r=t.y-e,n?s*s+r*r:new z(o,e)}function Xe(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Ke(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Xe(t)}function ti(t,e,i){for(var n,o,s,r,a,l,c,d=[1,4,2,8],u=0,p=t.length;u<p;u++)t[u]._code=Je(t[u],e);for(s=0;s<4;s++){for(l=d[s],n=[],u=0,o=(p=t.length)-1;u<p;o=u++)r=t[u],a=t[o],r._code&l?a._code&l||((c=Ue(a,r,l,e,i))._code=Je(c,e),n.push(c)):(a._code&l&&((c=Ue(a,r,l,e,i))._code=Je(c,e),n.push(c)),n.push(r));t=n}return t}et={__proto__:null,simplify:Re,pointToSegmentDistance:Ye,closestPointOnSegment:function(t,e,
vendor: 3,182 bytes, line 5
5i){return Qe(t,e,i)},clipSegment:Ve,_getEdgeIntersection:Ue,_getBitCode:Je,_sqClosestPointOnSegment:Qe,isFlat:Xe,_flat:Ke};it={__proto__:null,clipPolygon:ti},nt={project:function(t){return new z(t.lng,t.lat)},unproject:function(t){return new W(t.y,t.x)},bounds:new P([-180,-90],[180,90])},ot={R:6378137,R_MINOR:6356752.314245179,bounds:new P([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,s=(o=Math.sqrt(1-o*o))*Math.sin(n);s=Math.tan(Math.PI/4-n/2)/Math.pow((1-s)/(1+s),o/2),n=-i*Math.log(Math.max(s,1e-10));return new z(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),l=0,c=.1;l<15&&1e-7<Math.abs(c);l++)e=s*Math.sin(a),e=Math.pow((1-e)/(1+e),s/2),a+=c=Math.PI/2-2*Math.atan(r*e)-a;return new W(a*i,t.x*i/n)}},st={__proto__:null,LonLat:nt,Mercator:ot,SphericalMercator:Z},at=e({},F,{code:"EPSG:3395",projection:ot,transformation:G(rt=.5/(Math.PI*ot.R),.5,-rt,.5)});var ei=e({},F,{code:"EPSG:4326",projection:nt,transformation:G(1/180,1,-1/180,.5)}),ii=(lt=e({},H,{projection:nt,transformation:G(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng;e=e.lat-t.lat;return Math.sqrt(i*i+e*e)},infinite:!0}),ct=(H.Earth=F,H.EPSG3395=at,H.EPSG3857=R,H.EPSG900913=Y,H.EPSG4326=ei,H.Simple=lt,M.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[r(t)]=this},removeInteractiveTarget:function(t){return delete this._map._targets[r(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e,i=t.target;i.hasLayer(this)&&(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents&&(e=this.getEvents(),i.on(e,this),this.once("remove",(function(){i.off(e,this)}),this)),this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this}))}})),Be.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=r(t);return this._layers[e]||((this._layers[e]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=r(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer:function(t){return r(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?g(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[r(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){t=r(t),this._zoomBoundLayers[t]&&(
vendor: 8,596 bytes, line 5
5delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var t,e=1/0,i=-1/0,n=this._getZoomSpan();for(t in this._zoomBoundLayers){var o=this._zoomBoundLayers[t].options;e=void 0===o.minZoom?e:Math.min(e,o.minZoom),i=void 0===o.maxZoom?i:Math.max(i,o.maxZoom)}this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=e===1/0?void 0:e,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)}}),ct.extend({initialize:function(t,e){var i,n;if(h(this,e),this._layers={},t)for(i=0,n=t.length;i<n;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){return t=t in this._layers?t:this.getLayerId(t),this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:r})),ni=ii.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),ii.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?((t=t in this._layers?this._layers[t]:t).removeEventParent(this),ii.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t,e=new D;for(t in this._layers){var i=this._layers[t];e.extend(i.getBounds?i.getBounds():i.getLatLng())}return e}}),oi=E.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){h(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}return i=this._createImg(i,e&&"IMG"===e.tagName?e:null),this._setIconStyles(i,t),!this.options.crossOrigin&&""!==this.options.crossOrigin||(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i},_setIconStyles:function(t,e){var i=this.options,n=A(n="number"==typeof(n=i[e+"Size"])?[n,n]:n),o=A("shadow"===e&&i.shadowAnchor||i.iconAnchor||n&&n.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),n&&(t.style.width=n.x+"px",t.style.height=n.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return $t.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),si=oi.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(t){return"string"!=typeof si.imagePath&&(si.imagePath=this._detectIconPath()),(this.options.imagePath||si.imagePath)+oi.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){function e(t,e,i){return(e=e.exec(t))&&e[i]}return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=Xt("div","leaflet-default-icon-path",document.body),e=Qt(t,"background-image")||Qt(t,"backgroundImage");return document.body.removeChild(t),(e=this._stripUrl(e))?e:(t=document.querySelector('link[href$="leaflet.css"]'))?t.href.substring(0,t.href.length-11-1):""}}),ri=K.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Ge(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),oe(t,"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&&se(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,s=pe(e._icon),r=i.getPixelBounds(),a=i.getPixelOrigin();(a=B(r.min._subtract(a).add(o),r.max._subtract(a).subtract(o))).contains(s)||(o=A((Math.max(a.max.x,s.x)-a.max.x)/(r.max.x-a.max.x)-(Math.min(a.min.x,s.x)-a.min.x)/(r.min.x-a.min.x),(Math.max(a.max.y,s.y)-a.max.y)/(r.max.y-a.max.y)-(Math.min(a.min.y,s.y)-a.min.y)/(r.min.y-a.min.y)).multiplyBy(n),i.panBy(o,{animate:!1}),this._draggable._newPos._add(o),this._draggable._startPos._add(o),ue(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=C(this._adjustPan.bind(this,t)))},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(T(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=pe(e._icon),o=e._map.layerPointToLatLng(n);i&&ue(i,n),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){T(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),ai=ct.extend({options:{icon:new si,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(t,e){h(this,e),this._latlng=N(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.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(t){var e=this._latlng;return this._latlng=N(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){var t;return this._icon&&this._map&&(t=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(t)),this},_initIcon:function(){var t,e=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=!1,o=!1;(t=((t=e.icon.createIcon(this._icon))!==this._icon&&(this._icon&&this._removeIcon(),n=!0,e.title&&(t.title=e.title),"IMG"===t.tagName&&(t.alt=e.alt||"")),oe(t,i),e.keyboard&&(t.tabIndex="0",t.setAttribute("role","button")),this._icon=t,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ye(t,"focus",this._panOnFocus,this),e.icon.createShadow(this._shadow)))!==this._shadow&&(this._removeShadow(),o=!0),t&&(oe(t,i),t.alt=""),this._shadow=t,e.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),t&&o&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}
vendor: 5,478 bytes, line 5
5),this.options.autoPanOnFocus&&xe(this._icon,"focus",this._panOnFocus,this),Kt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Kt(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&ue(this._icon,t),this._shadow&&ue(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round(),this._setPos(t)},_initInteraction:function(){var t;this.options.interactive&&(oe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),ri&&(t=this.options.draggable,this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new ri(this),t&&this.dragging.enable()))},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&le(this._icon,t),this._shadow&&le(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t,e,i=this._map;i&&(t=(e=this.options.icon.options).iconSize?A(e.iconSize):A(0,0),e=e.iconAnchor?A(e.iconAnchor):A(0,0),i.panInside(this._latlng,{paddingTopLeft:e,paddingBottomRight:t.subtract(e)}))},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),li=ct.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(t){this._renderer=t.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(t){return h(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"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(t,e){h(this,e),this._latlng=N(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=N(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return li.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance();t=[t+i,e+i];this._pxBounds=new P(this._point.subtract(t),this._point.add(t))},_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(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),di=ci.extend({initialize:function(t,i,n){if(h(this,i="number"==typeof i?e({},n,{radius:i}):i),this._latlng=N(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new D(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:li.prototype.setStyle,_project:function(){var t,e,i,n,o,s=this._latlng.lng,r=this._latlng.lat,a=this._map,l=a.options.crs;l.distance===F.distance?(n=Math.PI/180,o=this._mRadius/F.R/n,t=a.project([r+o,s]),e=a.project([r-o,s]),e=t.add(e).divideBy(2),i=a.unproject(e).lat,n=Math.acos((Math.cos(o*n)-Math.sin(r*n)*Math.sin(i*n))/(Math.cos(r*n)*Math.cos(i*n)))/n,!isNaN(n)&&0!==n||(n=o/Math.cos(Math.PI/180*r)),this._point=e.subtract(a.getPixelOrigin()),this._radius=isNaN(n)?0:e.x-a.project([i,s-n]).x,this._radiusY=e.y-t.y):(o=l.unproject(l.project(this._latlng).subtract([this._mRadius,0])),this._point=a.latLngToLayerPoint(this._latlng),this._radius=this._point.x-a.latLngToLayerPoint(o).x),this._updateBounds()}}),ui=li.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){h(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e=1/0,i=null,n=Qe,o=0,s=this._parts.length;o<s;o++)for(var r=this._parts[o],a=1,l=r.length;a<l;a++){var c,d,u=n(t,c=r[a-1],d=r[a],!0);u<e&&(e=u,i=n(t,c,d))}return i&&(i.distance=Math.sqrt(e)),i}
5,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,i,n,o,s,r=this._rings[0],a=r.length;if(!a)return null;for(e=t=0;t<a-1;t++)e+=r[t].distanceTo(r[t+1])/2;if(0===e)return this._map.layerPointToLatLng(r[0]);for(i=t=0;t<a-1;t++)if(n=r[t],o=r[t+1],e<(i+=s=n.distanceTo(o)))return this._map.layerPointToLatLng([o.x-(s=(i-e)/s)*(o.x-n.x),o.y-s*(o.y-n.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=N(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new D,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Xe(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=Xe(t),n=0,o=t.length;n<o;n++)i?(e[n]=N(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new P;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=new z(t=this._clickTolerance(),t);this._rawPxBounds&&(this._pxBounds=new P([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(t,e,i){var n,o,s=t[0]instanceof W,r=t.length;if(s){for(o=[],n=0;n<r;n++)o[n]=this._map.latLngToLayerPoint(t[n]),i.extend(o[n]);e.push(o)}else for(n=0;n<r;n++)this._projectLatlngs(t[n],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var e,i,n,o,s=this._parts,r=0,a=0,l=this._rings.length;r<l;r++)for(e=0,i=(o=this._rings[r]).length;e<i-1;e++)(n=Ve(o[e],o[e+1],t,e,!0))&&(s[a]=s[a]||[],s[a].push(n[0]),n[1]===o[e+1]&&e!==i-2||(s[a].push(n[1]),a++))},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=Re(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,o,s,r,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,s=this._parts.length;i<s;i++)for(n=0,o=(r=(a=this._parts[i]).length)-1;n<r;o=n++)if((e||0!==n)&&Ye(t,a[o],a[n])<=l)return!0;return!1}});ui._flat=Ke;var pi=ui.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
vendor: 4,826 bytes, line 5
5,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,i,n,o,s,r,a,l,c=this._rings[0],d=c.length;if(!d)return null;for(t=s=r=a=0,e=d-1;t<d;e=t++)i=c[t],n=c[e],o=i.y*n.x-n.y*i.x,r+=(i.x+n.x)*o,a+=(i.y+n.y)*o,s+=3*o;return l=0===s?c[0]:[r/s,a/s],this._map.layerPointToLatLng(l)},_convertLatLngs:function(t){var e=(t=ui.prototype._convertLatLngs.call(this,t)).length;return 2<=e&&t[0]instanceof W&&t[0].equals(t[e-1])&&t.pop(),t},_setLatLngs:function(t){ui.prototype._setLatLngs.call(this,t),Xe(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return(Xe(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints:function(){var t=this._renderer._bounds,e=new z(e=this.options.weight,e);t=new P(t.min.subtract(e),t.max.add(e));if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,n=0,o=this._rings.length;n<o;n++)(i=ti(this._rings[n],t,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,o,s,r,a,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(s=0,r=(l=(e=this._parts[o]).length)-1;s<l;r=s++)i=e[s],n=e[r],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(c=!c);return c||ui.prototype._containsPoint.call(this,t,!0)}}),hi=ni.extend({initialize:function(t,e){h(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=g(t)?t:t.features;if(o){for(e=0,i=o.length;e<i;e++)((n=o[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var s=this.options;if(s.filter&&!s.filter(t))return this;var r=_i(t,s);return r?(r.feature=xi(t),r.defaultOptions=r.options,this.resetStyle(r),s.onEachFeature&&s.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function _i(t,e){var i,n,o,s,r="Feature"===t.type?t.geometry:t,a=r?r.coordinates:null,l=[],c=e&&e.pointToLayer,d=e&&e.coordsToLatLng||fi;if(!a&&!r)return null;switch(r.type){case"Point":return mi(c,t,i=d(a),e);case"MultiPoint":for(o=0,s=a.length;o<s;o++)i=d(a[o]),l.push(mi(c,t,i,e));return new ni(l);case"LineString":case"MultiLineString":return n=gi(a,"LineString"===r.type?0:1,d),new ui(n,e);case"Polygon":case"MultiPolygon":return n=gi(a,"Polygon"===r.type?1:2,d),new pi(n,e);case"GeometryCollection":for(o=0,s=r.geometries.length;o<s;o++){var u=_i({geometry:r.geometries[o],type:"Feature",properties:t.properties},e);u&&l.push(u)}return new ni(l);default:throw new Error("Invalid GeoJSON object.")}}function mi(t,e,i,n){return t?t(e,i):new ai(i,n&&n.markersInheritOptions&&n)}function fi(t){return new W(t[1],t[0],t[2])}function gi(t,e,i){for(var n,o=[],s=0,r=t.length;s<r;s++)n=e?gi(t[s],e-1,i):(i||fi)(t[s]),o.push(n);return o}function vi(t,e){return void 0!==(t=N(t)).alt?[d(t.lng,e),d(t.lat,e),d(t.alt,e)]:[d(t.lng,e),d(t.lat,e)]}function yi(t,e,i,n){for(var o=[],s=0,r=t.length;s<r;s++)o.push(e?yi(t[s],e-1,i,n):vi(t[s],n));return!e&&i&&o.push(o[0]),o}function bi(t,i){return t.feature?e({},t.feature,{geometry:i}):xi(i)}function xi(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}function wi(t,e){return new hi(t,e)}dt={toGeoJSON:function(t){return bi(this,{type:"Point",coordinates:vi(this.getLatLng(),t)})}},ai.include(dt),di.include(dt),ci.include(dt),ui.include({toGeoJSON:function(t){var e=!Xe(this._latlngs);return bi(this,{type:(e?"Multi":"")+"LineString",coordinates:yi(this._latlngs,e?1:0,!1,t)})}}),pi.include({toGeoJSON:function(t){var e=!Xe(this._latlngs),i=e&&!Xe(this._latlngs[0]);t=yi(this._latlngs,i?2:e?1:0,!0,t);return bi(this,{type:(i?"Multi":"")+"Polygon",coordinates:t=e?t:[t]})}}),ii.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)})),bi(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer((function(e){e.toGeoJSON&&(e=e.toGeoJSON(t),i?n.push(e.geometry):"FeatureCollection"===(e=xi(e)).type?n.push.apply(n,e.features):n.push(e))})),i?bi(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});ut=wi;var ki=ct.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""}
vendor: 11,476 bytes, line 5
5,initialize:function(t,e,i){this._url=t,this._bounds=O(e),h(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(oe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Kt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ee(this._image),this},bringToBack:function(){return this._map&&ie(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=O(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:Xt("img");oe(e,"leaflet-image-layer"),this._zoomAnimated&&oe(e,"leaflet-zoom-animated"),this.options.className&&oe(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=o(this.fire,this,"load"),e.onerror=o(this._overlayOnError,this,"error"),!this.options.crossOrigin&&""!==this.options.crossOrigin||(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom);t=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;de(this._image,t,e)},_reset:function(){var t=this._image,e=new P(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();ue(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){le(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 t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Si=ki.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:Xt("video");if(oe(e,"leaflet-image-layer"),this._zoomAnimated&&oe(e,"leaflet-zoom-animated"),this.options.className&&oe(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=o(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],s=0;s<i.length;s++)n.push(i[s].src);this._url=0<i.length?n:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var r=0;r<this._url.length;r++){var a=Xt("source");a.src=this._url[r],e.appendChild(a)}}}}),Ci=ki.extend({_initImage:function(){var t=this._image=this._url;oe(t,"leaflet-image-layer"),this._zoomAnimated&&oe(t,"leaflet-zoom-animated"),this.options.className&&oe(t,this.options.className),t.onselectstart=c,t.onmousemove=c}}),Ti=ct.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0},initialize:function(t,e){h(this,t),this._source=e},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&le(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&le(this._container,1),this.bringToFront(),this.options.interactive&&(oe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(le(this._container,0),this._removeTimeout=setTimeout(o(Kt,void 0,this._container),200)):Kt(this._container),this.options.interactive&&(se(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=N(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,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 t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ee(this._container),this},bringToBack:function(){return this._map&&ie(this._container),this},_prepareOpen:function(t){if(!(i=this._source)._map)return!1;if(i instanceof ni){var e,i=null,n=this._source._layers;for(e in n)if(n[e]._map){i=n[e];break}if(!i)return!1;this._source=i}if(!t)if(i.getCenter)t=i.getCenter();else if(i.getLatLng)t=i.getLatLng();else{if(!i.getBounds)throw new Error("Unable to get source layer LatLng.");t=i.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){var t,e,i;this._map&&(e=this._map.latLngToLayerPoint(this._latlng),t=A(this.options.offset),i=this._getAnchor(),this._zoomAnimated?ue(this._container,e.add(i)):t=t.add(e).add(i),e=this._containerBottom=-t.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+t.x,this._container.style.bottom=e+"px",this._container.style.left=i+"px")},_getAnchor:function(){return[0,0]}}),Li=(Be.include({_initOverlay:function(t,e,i,n){var o=e;return o instanceof t||(o=new t(n).setContent(e)),i&&o.setLatLng(i),o}}),ct.include({_initOverlay:function(t,e,i,n){var o=i;return o instanceof t?(h(o,n),o._source=this):(o=e&&!n?e:new t(n,this)).setContent(i),o}}),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(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Ti.prototype.openOn.call(this,t)},onAdd:function(t){Ti.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof li||this._source.on("preclick",Te))},onRemove:function(t){Ti.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof li||this._source.off("preclick",Te))},getEvents:function(){var t=Ti.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=Xt("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=Xt("div",t+"-content-wrapper",e);this._contentNode=Xt("div",t+"-content",i),$e(e),Le(this._contentNode),ye(e,"contextmenu",Te),this._tipContainer=Xt("div",t+"-tip-container",e),this._tip=Xt("div",t+"-tip",this._tipContainer),this.options.closeButton&&((i=this._closeButton=Xt("a",t+"-close-button",e)).setAttribute("role","button"),i.setAttribute("aria-label","Close popup"),i.href="#close",i.innerHTML='<span aria-hidden="true">&#215;</span>',ye(i,"click",this.close,this))},_updateLayout:function(){var t=this._contentNode,e=t.style,i=(e.width="",e.whiteSpace="nowrap",t.offsetWidth),n=(i=Math.min(i,this.options.maxWidth),i=(i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="",t.offsetHeight),this.options.maxHeight),o="leaflet-popup-scrolled";n&&n<i?(e.height=n+"px",oe(t,o)):se(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);var e=this._getAnchor();ue(this._container,t.add(e))},_adjustPan:function(t){var e,i,n,o,s,r,a,l;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),e=this._map,i=parseInt(Qt(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+i,l=this._containerWidth,(n=new z(this._containerLeft,-i-this._containerBottom))._add(pe(this._container)),n=e.layerPointToContainerPoint(n),s=A(this.options.autoPanPadding),o=A(this.options.autoPanPaddingTopLeft||s),s=A(this.options.autoPanPaddingBottomRight||s),r=e.getSize(),a=0,n.x+l+s.x>r.x&&(a=n.x+l-r.x+s.x),n.x-a-o.x<(l=0)&&(a=n.x-o.x),n.y+i+s.y>r.y&&(l=n.y+i-r.y+s.y),n.y-l-o.y<0&&(l=n.y-o.y),(a||l)&&e.fire("autopanstart").panBy([a,l],{animate:t&&"moveend"===t.type}))},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),$i=(Be.mergeOptions({closePopupOnClick:!0}),Be.include({openPopup:function(t,e,i){return this._initOverlay(Li,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),ct.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Li,this._popup,t,e),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(t){return this._popup&&this._popup._prepareOpen(t)&&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(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e;this._popup&&this._map&&(Ie(t),e=t.layer||t.target,this._popup._source!==e||e instanceof li?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)}
vendor: 8,470 bytes, line 5
5,_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}}),Ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Ti.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Ti.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Ti.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Xt("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i=this._map,n=this._container,o=i.latLngToContainerPoint(i.getCenter()),s=(i=i.layerPointToContainerPoint(t),this.options.direction),r=n.offsetWidth,a=n.offsetHeight,l=A(this.options.offset),c=this._getAnchor();i="top"===s?(e=r/2,a):"bottom"===s?(e=r/2,0):(e="center"===s?r/2:"right"===s?0:"left"===s?r:i.x<o.x?(s="right",0):(s="left",r+2*(l.x+c.x)),a/2);t=t.subtract(A(e,i,!0)).add(l).add(c),se(n,"leaflet-tooltip-right"),se(n,"leaflet-tooltip-left"),se(n,"leaflet-tooltip-top"),se(n,"leaflet-tooltip-bottom"),oe(n,"leaflet-tooltip-"+s),ue(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&le(this._container,t)},_animateZoom:function(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),this._setPosition(t)},_getAnchor:function(){return A(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}})),Ei=(Be.include({openTooltip:function(t,e,i){return this._initOverlay($i,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),ct.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay($i,this._tooltip,t,e),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(t){var e,i;!t&&this._tooltipHandlersAdded||(e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip},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[e](i),this._tooltipHandlersAdded=!t)},openTooltip:function(t){return this._tooltip&&this._tooltip._prepareOpen(t)&&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(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0))},_moveTooltip:function(t){var e=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(t=this._map.mouseEventToContainerPoint(t.originalEvent),t=this._map.containerPointToLayerPoint(t),e=this._map.layerPointToLatLng(t)),this._tooltip.setLatLng(e)}}),oi.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){t=t&&"DIV"===t.tagName?t:document.createElement("div");var e=this.options;return e.html instanceof Element?(te(t),t.appendChild(e.html)):t.innerHTML=!1!==e.html?e.html:"",e.bgPos&&(e=A(e.bgPos),t.style.backgroundPosition=-e.x+"px "+-e.y+"px"),this._setIconStyles(t,"icon"),t},createShadow:function(){return null}}));oi.Default=si;var Ii=ct.extend({options:{tileSize:256,opacity:1,updateWhenIdle:$t.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(t){h(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),Kt(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ee(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ie(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){var t;return this._map&&(this._removeAllTiles(),(t=this._clampZoom(this._map.getZoom()))!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()),this},getEvents:function(){var t={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)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof z?t:new z(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,n=-t(-1/0,1/0),o=0,s=i.length;o<s;o++)e=i[o].style.zIndex,i[o]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!$t.ielt9){le(this._container,this.options.opacity);var t,e=+new Date,i=!1,n=!1;for(t in this._tiles){var o,s=this._tiles[t];s.current&&s.loaded&&(o=Math.min(1,(e-s.loaded)/200),le(s.el,o),o<1?i=!0:(s.active?n=!0:this._onOpaqueTile(s),s.active=!0))}n&&!this._noPrune&&this._pruneTiles(),i&&(T(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=Xt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)i=Number(i),this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(Kt(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=Xt("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),n.el.offsetWidth,this._onCreateLevel(n)),this._level=n}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var t,e,i,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(i=this._tiles[t]).retain=i.current;for(t in this._tiles)(i=this._tiles[t]).current&&!i.active&&(e=i.coords,this._retainParent(e.x,e.y,e.z,e.z-5)||this._retainChildren(e.x,e.y,e.z,e.z+2));for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)Kt(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0}
vendor: 4,990 bytes, line 5
5,_retainParent:function(t,e,i,n){i-=1;var o=((o=new z(+(t=Math.floor(t/2)),+(e=Math.floor(e/2)))).z=i,this._tileCoordsToKey(o));return(o=this._tiles[o])&&o.active?o.retain=!0:(o&&o.loaded&&(o.retain=!0),n<i&&this._retainParent(t,e,i,n))},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var r=((r=new z(o,s)).z=i+1,this._tileCoordsToKey(r));(r=this._tiles[r])&&r.active?r.retain=!0:(r&&r.loaded&&(r.retain=!0),i+1<n&&this._retainChildren(o,s,i+1,n))}},_resetView:function(t){t=t&&(t.pinch||t.flyTo),this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,n){var o=Math.round(e),s=(o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o),this.options.updateWhenZooming&&o!==this._tileZoom);n&&!s||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom);e=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();$t.any3d?de(t.el,e,n):ue(t.el,e)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=(i=this._map)._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),i=(e=i.getZoomScale(e,this._tileZoom),t=i.project(t,this._tileZoom).floor(),i.getSize().divideBy(2*e));return new P(t.subtract(i),t.add(i))},_update:function(t){if(n=this._map){var e=this._clampZoom(n.getZoom());if(void 0===t&&(t=n.getCenter()),void 0!==this._tileZoom){var i,n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),s=o.getCenter(),r=[],a=(n=this.options.keepBuffer,new P(o.getBottomLeft().subtract([n,-n]),o.getTopRight().add([n,-n])));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.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 z(l.x,l.y))||(this._tiles[i].current=!1)}if(1<Math.abs(e-this._tileZoom))this._setView(t,e);else{for(var c=o.min.y;c<=o.max.y;c++)for(var d=o.min.x;d<=o.max.x;d++){var u,p=new z(d,c);p.z=this._tileZoom,this._isValidTile(p)&&((u=this._tiles[this._tileCoordsToKey(p)])?u.current=!0:r.push(p))}if(r.sort((function(t,e){return t.distanceTo(s)-e.distanceTo(s)})),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var h=document.createDocumentFragment();for(d=0;d<r.length;d++)this._addTile(r[d],h);this._level.el.appendChild(h)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}return!this.options.bounds||(e=this._tileCoordsToBounds(t),O(this.options.bounds).overlaps(e))},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i);i=n.add(i);return[e.unproject(n,t.z),e.unproject(i,t.z)]},_tileCoordsToBounds:function(t){return t=new D((t=this._tileCoordsToNwSe(t))[0],t[1]),this.options.noWrap?t:this._map.wrapLatLngBounds(t)},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=new z(+(t=t.split(":"))[0],+t[1]);return e.z=+t[2],e},_removeTile:function(t){var e=this._tiles[t];e&&(Kt(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){oe(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,$t.ielt9&&this.options.opacity<1&&le(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&C(o(this._tileReady,this,t,null,s)),ue(s,i),this._tiles[n]={el:s,coords:t,current:!0},e.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})}
vendor: 5,872 bytes, line 5
5,_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(le(i.el,0),T(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(oe(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),$t.ielt9||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new z(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new P(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),Mi=Ii.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=h(this,e)).detectRetina&&$t.retina&&0<e.maxZoom&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return ye(i,"load",o(this._tileOnLoad,this,e,i)),ye(i,"error",o(this._tileOnError,this,e,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(t),i},getTileUrl:function(t){var i={r:$t.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(t=this._globalTileRange.max.y-t.y,this.options.tms&&(i.y=t),i["-y"]=t),f(this._url,e(i,this.options))},_tileOnLoad:function(t,e){$t.ielt9?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return(t=this.options.zoomReverse?e-t:t)+this.options.zoomOffset},_getSubdomain:function(t){return t=Math.abs(t.x+t.y)%this.options.subdomains.length,this.options.subdomains[t]},_abortLoading:function(){var t,e,i;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((i=this._tiles[t].el).onload=c,i.onerror=c,i.complete||(i.src=y,e=this._tiles[t].coords,Kt(i),delete this._tiles[t],this.fire("tileabort",{tile:i,coords:e})))},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",y),Ii.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==y))return Ii.prototype._tileReady.call(this,t,e,i)}});function zi(t,e){return new Mi(t,e)}var ji=Mi.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var n,o=e({},this.defaultWmsParams);for(n in i)n in this.options||(o[n]=i[n]);t=(i=h(this,i)).detectRetina&&$t.retina?2:1;var s=this.getTileSize();o.width=s.x*t,o.height=s.y*t,this.wmsParams=o},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,Mi.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=(e=(i=B((i=this._crs).project(e[0]),i.project(e[1]))).min,i.max);e=(1.3<=this._wmsVersion&&this._crs===ei?[e.y,e.x,i.y,i.x]:[e.x,e.y,i.x,i.y]).join(",");return(i=Mi.prototype.getTileUrl.call(this,t))+_(this.wmsParams,i,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+e},setParams:function(t,i){return e(this.wmsParams,t),i||this.redraw(),this}});Mi.WMS=ji,zi.wms=function(t,e){return new ji(t,e)};var Ai=ct.extend({options:{padding:.1},initialize:function(t){h(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&oe(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 t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e);n=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));$t.any3d?de(this._container,n,i):ue(this._container,n)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).roun
vendor: 5,433 bytes, line 5
5d();this._bounds=new P(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Pi=Ai.extend({options:{tolerance:0},getEvents:function(){var t=Ai.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ai.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");ye(t,"mousemove",this._onMouseMove,this),ye(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ye(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){T(this._redrawRequest),delete this._ctx,Kt(this._container),xe(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){var t,e,i,n;this._map._animatingZoom&&this._bounds||(Ai.prototype._update.call(this),t=this._bounds,e=this._container,i=t.getSize(),n=$t.retina?2:1,ue(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",$t.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update"))},_reset:function(){Ai.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),t=(this._layers[r(t)]=t)._order={layer:t,prev:this._drawLast,next:null},this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=(i=t._order).next,i=i.prev;e?e.prev=i:this._drawLast=i,i?i.next=e:this._drawFirst=e,delete t._order,delete this._layers[r(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){for(var e,i=t.options.dashArray.split(/[, ]+/),n=[],o=0;o<i.length;o++){if(e=Number(i[o]),isNaN(e))return;n.push(e)}t.options._dashArray=n}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(t){var e;t._pxBounds&&(e=(t.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new P,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e])))},_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 t,e=this._redrawBounds;e?(t=e.getSize(),this._ctx.clearRect(e.min.x,e.min.y,t.x,t.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 t,e,i=this._redrawBounds;this._ctx.save(),i&&(e=i.getSize(),this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,e.x,e.y),this._ctx.clip()),this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,o,s,r=t._parts,a=r.length,l=this._ctx;if(a){for(l.beginPath(),i=0;i<a;i++){for(n=0,o=r[i].length;n<o;n++)s=r[i][n],l[n?"lineTo":"moveTo"](s.x,s.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){var e,i,n,o;this._drawing&&!t._empty()&&(e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),1!=(o=(Math.max(Math.round(t._radiusY),1)||n)/n)&&(i.save(),i.scale(1,o)),i.beginPath(),i.arc(e.x,e.y/o,n,0,2*Math.PI,!1),1!=o&&i.restore(),this._fillStroke(i,t))},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(n)&&(("click"===t.type||"preclick"===t.type)&&this._map._draggableMoved(e)||(i=e));this._fireEvent(!!i&&[i],t)},_onMouseMove:function(t){var e;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(e=this._map.mouseEventToLayerPoint(t),this._handleMouseHover(t,e))},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(se(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,n,s=this._drawFirst;s;s=s.next)(i=s.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(oe(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(o((function(){this._mouseHoverThrottled=!1}),this),32)}}
vendor: 5,347 bytes, line 5
5,_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e,i,n=t._order;n&&(e=n.next,i=n.prev,e&&((e.prev=i)?i.next=e:e&&(this._drawFirst=e),n.prev=this._drawLast,(this._drawLast.next=n).next=null,this._drawLast=n,this._requestRedraw(t)))},_bringToBack:function(t){var e,i,n=t._order;n&&(e=n.next,(i=n.prev)&&((i.next=e)?e.prev=i:i&&(this._drawLast=i),n.prev=null,n.next=this._drawFirst,this._drawFirst.prev=n,this._drawFirst=n,this._requestRedraw(t)))}});function Bi(t){return $t.canvas?new Pi(t):null}var Di=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Oi=(pt={_initContainer:function(){this._container=Xt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ai.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Di("shape");oe(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Di("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;Kt(e),t.removeInteractiveTarget(e),delete this._layers[r(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e=e||(t._stroke=Di("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i=i||(t._fill=Di("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ee(t._container)},_bringToBack:function(t){ie(t._container)}},$t.vml?Di:V),Wi=Ai.extend({_initContainer:function(){this._container=Oi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Oi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Kt(this._container),xe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){var t,e,i;this._map._animatingZoom&&this._bounds||(Ai.prototype._update.call(this),e=(t=this._bounds).getSize(),i=this._container,this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),ue(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update"))},_initPath:function(t){var e=t._path=Oi("path");t.options.className&&oe(e,t.options.className),t.options.interactive&&oe(e,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Kt(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path;t=t.options;e&&(t.stroke?(e.setAttribute("stroke",t.color),e.setAttribute("stroke-opacity",t.opacity),e.setAttribute("stroke-width",t.weight),e.setAttribute("stroke-linecap",t.lineCap),e.setAttribute("stroke-linejoin",t.lineJoin),t.dashArray?e.setAttribute("stroke-dasharray",t.dashArray):e.removeAttribute("stroke-dasharray"),t.dashOffset?e.setAttribute("stroke-dashoffset",t.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),t.fill?(e.setAttribute("fill",t.fillColor||t.color),e.setAttribute("fill-opacity",t.fillOpacity),e.setAttribute("fill-rule",t.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,U(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ";e=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,e)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ee(t._path)},_bringToBack:function(t){ie(t._path)}});function Ni(t){return $t.svg||$t.vml?new Wi(t):null}$t.vml&&Wi.include(pt),Be.include({getRenderer:function(t){return t=(t=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Bi(t)||Ni(t)}});var Hi=pi.extend({initialize:function(t,e){pi.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))}
vendor: 16,298 bytes, line 5
5,_boundsToLatLngs:function(t){return[(t=O(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});Wi.create=Oi,Wi.pointsToPath=U,hi.geometryToLayer=_i,hi.coordsToLatLng=fi,hi.coordsToLatLngs=gi,hi.latLngToCoords=vi,hi.latLngsToCoords=yi,hi.getFeature=bi,hi.asFeature=xi,Be.mergeOptions({boxZoom:!0});J=K.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){ye(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){xe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Kt(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(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Zt(),he(),this._startPoint=this._map.mouseEventToContainerPoint(t),ye(document,{contextmenu:Ie,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=Xt("div","leaflet-zoom-box",this._container),oe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=(t=new P(this._point,this._startPoint)).getSize();ue(this._box,t.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(Kt(this._box),se(this._container,"leaflet-crosshair")),qt(),_e(),xe(document,{contextmenu:Ie,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0),t=new D(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})))},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}),Be.addInitHook("addHandler","boxZoom",J),Be.mergeOptions({doubleClickZoom:!0}),ht=K.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta;i=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}});var Fi=(Be.addInitHook("addHandler","doubleClickZoom",ht),Be.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),K.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new Ge(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))),oe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){se(this._map._container,"leaflet-grab"),se(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 t,e=this._map;e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=O(this._map.options.maxBounds),this._offsetLimit=B(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var e,i;this._map.options.inertia&&(e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(i),this._times.push(e),this._prunePositions(e)),this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1<this._positions.length&&50<t-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){var t,e;this._viscosity&&this._offsetLimit&&(t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit,t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=((o=this._draggable._newPos.x)-e+i)%t+e-i,o=(o+e+i)%t-e-i;t=Math.abs(n+i)<Math.abs(o+i)?n:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=t},_onDragEnd:function(t){var e,i,n,o,s=this._map,r=s.options,a=!r.inertia||t.noInertia||this._times.length<2;s.fire("dragend",t),a?s.fire("moveend"):(this._prunePositions(+new Date),t=this._lastPos.subtract(this._positions[0]),a=(this._lastTime-this._times[0])/1e3,e=r.easeLinearity,a=(t=t.multiplyBy(e/a)).distanceTo([0,0]),i=Math.min(r.inertiaMaxSpeed,a),t=t.multiplyBy(i/a),n=i/(r.inertiaDeceleration*e),(o=t.multiplyBy(-n/2).round()).x||o.y?(o=s._limitOffset(o,s.options.maxBounds),C((function(){s.panBy(o,{duration:n,easeLinearity:e,noMoveStart:!0,animate:!0})}))):s.fire("moveend"))}})),Zi=(_t=(Be.addInitHook("addHandler","dragging",Fi),Be.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(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),ye(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),xe(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 t,e,i;this._focused||(i=document.body,t=document.documentElement,e=i.scrollTop||t.scrollTop,i=i.scrollLeft||t.scrollLeft,this._map._container.focus(),window.scrollTo(i,e))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){for(var e=this._panKeys={},i=this.keyCodes,n=0,o=i.left.length;n<o;n++)e[i.left[n]]=[-1*t,0];for(n=0,o=i.right.length;n<o;n++)e[i.right[n]]=[t,0];for(n=0,o=i.down.length;n<o;n++)e[i.down[n]]=[0,t];for(n=0,o=i.up.length;n<o;n++)e[i.up[n]]=[0,-1*t]},_setZoomDelta:function(t){for(var e=this._zoomKeys={},i=this.keyCodes,n=0,o=i.zoomIn.length;n<o;n++)e[i.zoomIn[n]]=t;for(n=0,o=i.zoomOut.length;n<o;n++)e[i.zoomOut[n]]=-t},_addHooks:function(){ye(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){xe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,n=this._map;if(i in this._panKeys)n._panAnim&&n._panAnim._inProgress||(e=this._panKeys[i],t.shiftKey&&(e=A(e).multiplyBy(3)),n.panBy(e),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds));else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Ie(t)}}})),mt=(Be.addInitHook("addHandler","keyboard",_t),Be.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60}),K.extend({addHooks:function(){ye(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){xe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=je(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date),e=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),e),Ie(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0,n=(t._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=t._limitZoom(e+(0<this._delta?i:-i))-e;this._delta=0,this._startTime=null,n&&("center"===t.options.scrollWheelZoom?t.setZoom(e+n):t.setZoomAround(this._lastMousePos,e+n))}})),ft=(Be.addInitHook("addHandler","scrollWheelZoom",mt),Be.mergeOptions({tapHold:$t.touchNative&&$t.safari&&$t.mobile,tapTolerance:15}),K.extend({addHooks:function(){ye(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){xe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){var e;clearTimeout(this._holdTimeout),1===t.touches.length&&(e=t.touches[0],this._startPos=this._newPos=new z(e.clientX,e.clientY),this._holdTimeout=setTimeout(o((function(){this._cancel(),this._isTapValid()&&(ye(document,"touchend",Ee),ye(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),600),ye(document,"touchend touchcancel contextmenu",this._cancel,this),ye(document,"touchmove",this._onMove,this))},_cancelClickPrevent:function t(){xe(document,"touchend",Ee),xe(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),xe(document,"touchend touchcancel contextmenu",this._cancel,this),xe(document,"touchmove",this._onMove,this)},_onMove:function(t){t=t.touches[0],this._newPos=new z(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){(t=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY}))._simulated=!0,e.target.dispatchEvent(t)}})),gt=(Be.addInitHook("addHandler","tapHold",ft),Be.mergeOptions({touchZoom:$t.touch,bounceAtZoomLimits:!0}),K.extend({addHooks:function(){oe(this._map._container,"leaflet-touch-zoom"),ye(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){se(this._map._container,"leaflet-touch-zoom"),xe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e,i,n=this._map;!t.touches||2!==t.touches.length||n._animatingZoom||this._zooming||(e=n.mouseEventToContainerPoint(t.touches[0]),i=n.mouseEventToContainerPoint(t.touches[1]),this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),"center"!==n.options.touchZoom&&(this._pinchStartLatLng=n.containerPointToLatLng(e.add(i)._divideBy(2))),this._startDist=e.distanceTo(i),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),ye(document,"touchmove",this._onTouchMove,this),ye(document,"touchend touchcancel",this._onTouchEnd,this),Ee(t))},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),s=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(s,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&s<1||this._zoom>e.getMaxZoom()&&1<s)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1==s)return}else{if(i=i._add(n)._divideBy(2)._subtract(this._centerPoint),1==s&&0===i.x&&0===i.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(i),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),T(this._animRequest),n=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1}),this._animRequest=C(n,this,!0),Ee(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,T(this._animRequest),xe(document,"touchmove",this._onTouchMove,this),xe(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}})),Be.addInitHook("addHandler","touchZoom",gt),Be.BoxZoom=J,Be.DoubleClickZoom=ht,Be.Drag=Fi,Be.Keyboard=_t,Be.ScrollWheelZoom=mt,Be.TapHold=ft,Be.TouchZoom=gt,t.Bounds=P,t.Browser=$t,t.CRS=H,t.Canvas=Pi,t.Circle=di,t.CircleMarker=ci,t.Class=E,t.Control=We,t.DivIcon=Ei,t.DivOverlay=Ti,t.DomEvent=X,t.DomUtil=Q,t.Draggable=Ge,t.Evented=M,t.FeatureGroup=ni,t.GeoJSON=hi,t.GridLayer=Ii,t.Handler=K,t.Icon=oi,t.ImageOverlay=ki,t.LatLng=W,t.LatLngBounds=D,t.Layer=ct,t.LayerGroup=ii,t.LineUtil=et,t.Map=Be,t.Marker=ai,t.Mixin=tt,t.Path=li,t.Point=z,t.PolyUtil=it,t.Polygon=pi,t.Polyline=ui,t.Popup=Li,t.PosAnimation=Pe,t.Projection=st,t.Rectangle=Hi,t.Renderer=Ai,t.SVG=Wi,t.SVGOverlay=Ci,t.TileLayer=Mi,t.Tooltip=$i,t.Transformation=q,t.Util=$,t.VideoOverlay=Si,t.bind=o,t.bounds=B,t.canvas=Bi,t.circle=function(t,e,i){return new di(t,e,i)},t.circleMarker=function(t,e){return new ci(t,e)},t.control=De,t.divIcon=function(t){return new Ei(t)},t.extend=e,t.featureGroup=function(t,e){return new ni(t,e)},t.geoJSON=wi,t.geoJson=ut,t.gridLayer=function(t){return new Ii(t)},t.icon=function(t){return new oi(t)},t.imageOverlay=function(t,e,i){return new ki(t,e,i)},t.latLng=N,t.latLngBounds=O,t.layerGroup=function(t,e){return new ii(t,e)},t.map=function(t,e){return new Be(t,e)},t.marker=function(t,e){return new ai(t,e)},t.point=A,t.polygon=function(t,e){return new pi(t,e)},t.polyline=function(t,e){return new ui(t,e)},t.popup=function(t,e){return new Li(t,e)},t.rectangle=function(t,e){return new Hi(t,e)},t.setOptions=h,t.stamp=r,t.svg=Ni,t.svgOverlay=function(t,e,i){return new Ci(t,e,i)},t.tileLayer=zi,t.tooltip=function(t,e){return new $i(t,e)},t.transformation=G,t.version="1.8.0",t.videoOverlay=function(t,e,i){return new Si(t,e,i)},window.L);t.noConflict=function(){return window.L=Zi,this},window.L=t})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t=t||self).Leaflet=t.Leaflet||{},t.Leaflet.markercluster={}))}(this,(function(t){"use strict";var e=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(t){L.Util.setOptions(this,t),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 e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster
vendor: 10,998 bytes, line 5
5=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,i=this._zoom;if(t.__parent)for(;e.__parent._zoom>=i;)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):(t.getLatLng?this._map?t.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow())):(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t})):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t})),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var i,n=this._featureGroup,o=this._nonPointGroup,s=this.options.chunkedLoading,r=this.options.chunkInterval,a=this.options.chunkProgress,l=t.length,c=0,d=!0;if(this._map){var u=(new Date).getTime(),p=L.bind((function(){var h=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(s&&c%200==0){var _=(new Date).getTime()-h;if(r<_)break}if((i=t[c])instanceof L.LayerGroup)d&&(t=t.slice(),d=!1),this._extractNonGroupLayers(i,t),l=t.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),e||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),f=m[0]===i?m[1]:m[0];n.removeLayer(f)}}else o.addLayer(i),e||this.fire("layeradd",{layer:i})}a&&a(c,l,(new Date).getTime()-u),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(p,this.options.chunkDelay)}),this);p()}else for(var h=this._needsClustering;c<l;c++)(i=t[c])instanceof L.LayerGroup?(d&&(t=t.slice(),d=!1),this._extractNonGroupLayers(i,t),l=t.length):i.getLatLng?this.hasLayer(i)||h.push(i):o.addLayer(i);return this},removeLayers:function(t){var e,i,n=t.length,o=this._featureGroup,s=this._nonPointGroup,r=!0;if(!this._map){for(e=0;e<n;e++)(i=t[e])instanceof L.LayerGroup?(r&&(t=t.slice(),r=!1),this._extractNonGroupLayers(i,t),n=t.length):(this._arraySplice(this._needsClustering,i),s.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=t.slice(),l=n;for(e=0;e<l;e++)(i=a[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,a),l=a.length):this._unspiderfyLayer(i)}for(e=0;e<n;e++)(i=t[e])instanceof L.LayerGroup?(r&&(t=t.slice(),r=!1),this._extractNonGroupLayers(i,t),n=t.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),o.hasLayer(i)&&(o.removeLayer(i),i.clusterShow&&i.clusterShow())):(s.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(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;0<=e;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,n,o,s=this._needsClustering.slice(),r=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(s),n=s.length-1;0<=n;n--){for(i=!0,o=r.length-1;0<=o;o--)if(r[o].layer===s[n]){i=!1;break}i&&t.call(e,s[n])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(i){L.stamp(i)===t&&(e=i)})),e},hasLayer:function(t){if(!t)return!1;var e,i=this._needsClustering;for(e=i.length-1;0<=e;e--)if(i[e]===t)return!0;for(e=(i=this._needsRemoving).length-1;0<=e;e--)if(i[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var i=this._map;"function"!=typeof e&&(e=function(){});var n=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",n,this),this.off("animationend",n,this),i.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",n,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",n,this),this.on("animationend",n,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,i,n;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,i=this._needsRemoving.length;e<i;e++)(n=this._needsRemoving[e]).newlatlng=n.layer._latlng,n.layer._latlng=n.latlng;for(e=0,i=this._needsRemoving.length;e<i;e++)n=this._needsRemoving[e],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(t){t.off("zoomend",this._zoomEnd,this),t.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(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var i=t.length-1;0<=i;i--)if(t[i]===e)return t.splice(i,1),!0},_removeFromGridUnclustered:function(t,e){for(var i=this._map,n=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());o<=e&&n[e].removeObject(t,i.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,i){t._latlng=e,this.removeLayer(t),t._latlng=i,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,i){var n=this._gridClusters,o=this._gridUnclustered,s=this._featureGroup,r=this._map,a=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var l,c=t.__parent,d=c._markers;for(this._arraySplice(d,t);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<a));)e&&c._childCount<=1?(l=c._markers[0]===t?c._markers[1]:c._markers[0],n[c._zoom].removeObject(c,r.project(c._cLatLng,c._zoom)),o[c._zoom].addObject(l,r.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(s.removeLayer(c),i||s.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},fire:function(t,e,i){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,i)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick,o=this.options.spiderfyOnEveryZoom;(e||n||o)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom,o=this._map;(t||i||n)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),o.off("zoomend",this._hideCoverage,this))}
vendor: 4,879 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 t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,n=i;"function"!=typeof i&&(n=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var o=t;e<=o;o--)this._gridClusters[o]=new L.DistanceGrid(n(o)),this._gridUnclustered[o]=new L.DistanceGrid(n(o));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,n,o=this._gridClusters,s=this._gridUnclustered,r=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);r<=e;e--){i=this._map.project(t.getLatLng(),e);var a=o[e].getNearObject(i);if(a)return a._addChild(t),void(t.__parent=a);if(a=s[e].getNearObject(i)){var l=a.__parent;l&&this._removeLayer(a,!1);var c=new this._markerCluster(this,e,a,t);o[e].addObject(c,this._map.project(c._cLatLng,e)),a.__parent=c;var d=t.__parent=c;for(n=e-1;n>l._zoom;n--)d=new this._markerCluster(this,n,d),o[n].addObject(d,this._map.project(a.getLatLng(),n));return l._addChild(d),void this._removeFromGridUnclustered(a,e)}s[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&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,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):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(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,n=t.getLayers(),o=0;for(e=e||[];o<n.length;o++)(i=n[o])instanceof L.LayerGroup?this._extractNonGroupLayers(i,e):e.push(i);return e},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});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(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var i,n=this._getExpandedVisibleBounds(),o=this._featureGroup,s=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(n,t,s,(function(s){var r,a=s._latlng,l=s._markers;
vendor: 3,221 bytes, line 5
5for(n.contains(a)||(a=null),s._isSingleParent()&&t+1===e?(o.removeLayer(s),s._recursivelyAddChildrenToMap(null,e,n)):(s.clusterHide(),s._recursivelyAddChildrenToMap(a,e,n)),i=l.length-1;0<=i;i--)r=l[i],n.contains(r._latlng)||o.removeLayer(r)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(n,e),o.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(n,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(n,t,s,(function(t){o.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,n=this._featureGroup;n.addLayer(t),e!==t&&(2<e._childCount?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){n.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var n=this._getExpandedVisibleBounds(),o=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(n,o,e+1,i);var s=this;this._forceLayout(),t._recursivelyBecomeVisible(n,i),this._enqueue((function(){if(1===t._childCount){var r=t._markers[0];this._ignoreMove=!0,r.setLatLng(r.getLatLng()),this._ignoreMove=!1,r.clusterShow&&r.clusterShow()}else t._recursively(n,i,o,(function(t){t._recursivelyRemoveChildrenFromMap(n,o,e+1)}));s._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(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,n){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,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(t,e){t=t||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var n=this._markers.length-1;0<=n;n--)e&&this._markers[n].__dragStart||t.push(this._markers[n]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,i=this._childClusters.slice(),n=this._group._map,o=n.getBoundsZoom(this._bounds),s=this._zoom+1,r=n.getZoom();0<i.length&&s<o;){s++;var a=[];for(e=0;e<i.length;e++)a=a.concat(i[e]._childClusters);i=a}
vendor: 10,854 bytes, line 5
5s<o?this._group._map.setView(this._latlng,s):o<=r?this._group._map.setView(this._latlng,r+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_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(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,n,o=this._markers,s=this._childClusters,r=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<o.length;t++)i=o[t]._latlng,this._bounds.extend(i),r+=i.lat,a+=i.lng;for(t=0;t<s.length;t++)(e=s[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,n=e._childCount,r+=i.lat*n,a+=i.lng*n;this._latlng=this._wLatLng=new L.LatLng(r/l,a/l),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,i){this._recursively(t,this._group._map.getMinZoom(),i-1,(function(t){var i,n,o=t._markers;for(i=o.length-1;0<=i;i--)(n=o[i])._icon&&(n._setPos(e),n.clusterHide())}),(function(t){var i,n,o=t._childClusters;for(i=o.length-1;0<=i;i--)(n=o[i])._icon&&(n._setPos(e),n.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,n){this._recursively(t,n,e,(function(o){o._recursivelyAnimateChildrenIn(t,o._group._map.latLngToLayerPoint(o.getLatLng()).round(),i),o._isSingleParent()&&i-1===n?(o.clusterShow(),o._recursivelyRemoveChildrenFromMap(t,e,i)):o.clusterHide(),o._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(n){if(e!==n._zoom)for(var o=n._markers.length-1;0<=o;o--){var s=n._markers[o];i.contains(s._latlng)&&(t&&(s._backupLatlng=s.getLatLng(),s.setLatLng(t),s.clusterHide&&s.clusterHide()),n._group._featureGroup.addLayer(s))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;0<=e;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._restorePosition();else for(var o=this._childClusters.length-1;0<=o;o--)this._childClusters[o]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,n){var o,s;this._recursively(t,e-1,i-1,(function(t){for(s=t._markers.length-1;0<=s;s--)o=t._markers[s],n&&n.contains(o._latlng)||(t._group._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow())}),(function(t){for(s=t._childClusters.length-1;0<=s;s--)o=t._childClusters[s],n&&n.contains(o._latlng)||(t._group._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow())}))},_recursively:function(t,e,i,n,o){var s,r,a=this._childClusters,l=this._zoom;if(e<=l&&(n&&n(this),o&&l===i&&o(this)),l<e||l<i)for(s=a.length-1;0<=s;s--)(r=a[s])._boundsNeedUpdate&&r._recalculateBounds(),t.intersects(r._bounds)&&r._recursively(t,e,i,n,o)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),n=this._getCoord(e.y),o=this._grid,s=o[n]=o[n]||{},r=s[i]=s[i]||[],a=L.Util.stamp(t);this._objectPoint[a]=e,r.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,n,o=this._getCoord(e.x),s=this._getCoord(e.y),r=this._grid,a=r[s]=r[s]||{},l=a[o]=a[o]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,n=l.length;i<n;i++)if(l[i]===t)return l.splice(i,1),1===n&&delete a[o],!0},eachObject:function(t,e){var i,n,o,s,r,a,l=this._grid;for(i in l)for(n in r=l[i])for(o=0,s=(a=r[n]).length;o<s;o++)t.call(e,a[o])&&(o--,s--)},getNearObject:function(t){var e,i,n,o,s,r,a,l,c=this._getCoord(t.x),d=this._getCoord(t.y),u=this._objectPoint,p=this._sqCellSize,h=null;for(e=d-1;e<=d+1;e++)if(o=this._grid[e])for(i=c-1;i<=c+1;i++)if(s=o[i])for(n=0,r=s.length;n<r;n++)a=s[n],((l=this._sqDist(u[L.Util.stamp(a)],t))<p||l<=p&&null===h)&&(p=l,h=a);return h},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}},L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i,n,o,s=0,r=null,a=[];for(i=e.length-1;0<=i;i--)n=e[i],0<(o=this.getDistant(n,t))&&(a.push(n),s<o&&(s=o,r=n));return{maxPoint:r,newPoints:a}},buildConvexHull:function(t,e){var i=[],n=this.findMostDistantPointFromBaseLine(t,e);return n.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],n.maxPoint],n.newPoints))).concat(this.buildConvexHull([n.maxPoint,t[1]],n.newPoints)):[t[0]]},getConvexHull:function(t){var e,i,n=!1,o=!1,s=!1,r=!1,a=null,l=null,c=null,d=null,u=null;for(e=t.length-1;0<=e;e--){var p=t[e];(!1===n||p.lat>n)&&(n=(a=p).lat),(!1===o||p.lat<o)&&(o=(l=p).lat),(!1===s||p.lng>s)&&(s=(c=p).lng),(!1===r||p.lng<r)&&(r=(d=p).lng)}return i=o!==n?(u=l,a):(u=d,c),[].concat(this.buildConvexHull([u,i],t),this.buildConvexHull([i,u],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,i=this.getAllChildMarkers(),n=[];for(e=i.length-1;0<=e;e--)t=i[e].getLatLng(),n.push(t);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 t,e=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),t=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(e.length,i):e.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(e.length,i):(i.y+=10,this._generatePointsCircle(e.length,i)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var i,n,o=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,s=this._2PI/t,r=[];for(o=Math.max(o,35),r.length=t,i=0;i<t;i++)n=this._circleStartAngle+i*s,r[i]=new L.Point(e.x+o*Math.cos(n),e.y+o*Math.sin(n))._round();return r},_generatePointsSpiral:function(t,e){var i,n=this._group.options.spiderfyDistanceMultiplier,o=n*this._spiralLengthStart,s=n*this._spiralFootSeparation,r=n*this._spiralLengthFactor*this._2PI,a=0,l=[];for(i=l.length=t;0<=i;i--)i<t&&(l[i]=new L.Point(e.x+o*Math.cos(a),e.y+o*Math.sin(a))._round()),o+=r/(a+=s/o+5e-4*i);return l},_noanimationUnspiderfy:function(){var t,e,i=this._group,n=i._map,o=i._featureGroup,s=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),e=s.length-1;0<=e;e--)t=s[e],o.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(n.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:s}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,n,o,s,r=this._group,a=r._map,l=r._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(r._ignoreMove=!0,i=0;i<t.length;i++)s=a.layerPointToLatLng(e[i]),n=t[i],o=new L.Polyline([this._latlng,s],c),a.addLayer(o),n._spiderLeg=o,n._preSpiderfyLatlng=n._latlng,n.setLatLng(s),n.setZIndexOffset&&n.setZIndexOffset(1e6),l.addLayer(n);this.setOpacity(.3),r._ignoreMove=!1,r.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var i,n,o,s,r,a,l=this,c=this._group,d=c._map,u=c._featureGroup,p=this._latlng,h=d.latLngToLayerPoint(p),_=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),f=m.opacity;for(void 0===f&&(f=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),_?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=f,c._ignoreMove=!0,i=0;i<t.length;i++)n=t[i],a=d.layerPointToLatLng(e[i]),o=new L.Polyline([p,a],m),d.addLayer(o),n._spiderLeg=o,_&&(r=(s=o._path).getTotalLength()+.1,s.style.strokeDasharray=r,s.style.strokeDashoffset=r),n.setZIndexOffset&&n.setZIndexOffset(1e6),n.clusterHide&&n.clusterHide(),u.addLayer(n),n._setPos&&n._setPos(h);for(c._forceLayout(),c._animationStart(),i=t.length-1;0<=i;i--)a=d.layerPointToLatLng(e[i]),(n=t[i])._preSpiderfyLatlng=n._latlng,n.setLatLng(a),n.clusterShow&&n.clusterShow(),_&&((s=(o=n._spiderLeg)._path).style.strokeDashoffset=0,o.setStyle({opacity:f}));this.setOpacity(.3),c._ignoreMove=!1,setTimeout((function(){c._animationEnd(),c.fire("spiderfied",{cluster:l,markers:t})}),200)},_animationUnspiderfy:function(t){var e,i,n,o,s,r,a=this,l=this._group,c=l._map,d=l._featureGroup,u=t?c._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):c.latLngToLayerPoint(this._latlng),p=this.getAllChildMarkers(null,!0),h=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),i=p.length-1;0<=i;i--)(e=p[i])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,r=!0,e._setPos&&(e._setPos(u),r=!1),e.clusterHide&&(e.clusterHide(),r=!1),r&&d.removeLayer(e),h&&(s=(o=(n=e._spiderLeg)._path).getTotalLength()+.1,o.style.strokeDashoffset=s,n.setStyle({opacity:0}
5)));l._ignoreMove=!1,setTimeout((function(){var t=0;for(i=p.length-1;0<=i;i--)(e=p[i])._spiderLeg&&t++;for(i=p.length-1;0<=i;i--)(e=p[i])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),1<t&&d.removeLayer(e),c.removeLayer(e._spiderLeg),delete e._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:a,markers:p})}),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(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t)for(i=t[e].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=i,Object.defineProperty(t,"__esModule",{value:!0})}));const appModules={_debug:(t,e)=>{console.warn(`[appModules.${t}] - ${e}`)},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:(t,e)=>!t&&!e||(appModules._debug("load",`link wybranego modułu nie jest poprawny: ${t}`),!1),moduleInstalled:t=>!!appModules.list.has(t)||(appModules._debug("moduleInstalled","wskazany moduł nie został zainstalowany."),!1),allowedType:t=>{const{types:e}=appModules;return!!e.includes(t)||(appModules._debug("allowedType",`type skryptu musi być jedną z opcji: ${e.join(", ")}`),!1)},scriptPosition:t=>{const{positions:e}=appModules;return!!e.includes(t)||(appModules._debug("scriptPosition",`pozycja osadzenia skryptu musi być jedną z opcji: ${e.join(", ")}`),!1)},scriptNotLoaded:t=>!(document.querySelectorAll(`script[src*="${t}"]`).length>0)||(appModules._debug("scriptNotLoaded",`skrypt z linkiem ${t} został już załadowany`),!1),validateLink:t=>!!t||(appModules._debug("scriptNotLoaded",`skrypt z linkiem ${t} został już załadowany`),!1)},getModule:t=>appModules.list.has(t)?appModules.list.get(t):{link:"",content:null},installModule:(t,e)=>"string"!=typeof t||"string"!=typeof e?(appModules._debug("installModule","link/name musi być stringiem."),!1):appModules.list.has(t)?(appModules._debug("installModule",`wskazany moduł został 
5już zainstalowany: ${t}`),!1):(appModules.list.set(t,{link:e,content:null}),!0),load:async(t,{type:e="module",position:i="head",scriptAttrs:n={}}={})=>{const{link:o,content:s}=appModules.getModule(t),{moduleInstalled:r,allowedType:a,scriptPosition:l}=appModules.validators;return!!r(t)&&(!!a(e)&&(s||("module"===e?appModules._loadModule({name:t,link:o}):"script"===e?!!l(i)&&appModules._loadScript({link:o,position:i,scriptAttrs:n}):void 0)))},_updateModule:(t,e)=>{if(appModules.list.has(t)){const i=appModules.getModule(t);return appModules.list.set(t,{...i,content:e}),!0}return!1},_loadModule:async({name:t,link:e})=>{try{const i=await import(e);return appModules._updateModule(t,i),i}catch(t){return appModules._debug("load",`Wystąpił błąd pobierania modułu: ${t}`),!1}},_loadScript:async({link:t="",position:e="head",scriptAttrs:i={}}={})=>new Promise(((n,o)=>{try{if(!appModules.validators.validateLink(t))return o(!1);if(!appModules.validators.scriptNotLoaded(t))return o(!1);const s=document.createElement("script");s.src=t,((t,e)=>{if(Object.getPrototypeOf(e)!==Object.prototype)return!1;Object.entries(e).forEach((([e,i])=>{t.setAttribute(e,i)}))})(s,i),s.addEventListener("load",(()=>{n(!0)})),s.addEventListener("error",((t,e,i,n,s)=>{appModules._debug("load",`błąd ładowania skryptu: ${t}, ${e}, ${i}, ${n}, ${s}`),o(!1)})),appModules._appendScript(s,e)}catch(t){appModules._debug("load",`błąd osadzania skryptu: ${t}`),o(!1)}})),_appendScript(t,e){const{shopJsName:i}=appModules;switch(e){case"body_top":document.body.insertAdjacentElement("afterbegin",t);break;case"body_bottom":document.body.insertAdjacentElement("beforeend",t);break;case"before_shop_js":{const e=document.querySelector(`script[src*="${i}"]`);if(!e){appModules._debug("_loadScript","before_shop_js - nie znaleziono tagu script z shop.js");break}e.insertAdjacentElement("beforeend",t);break}case"after_shop_js":{const e=document.querySelector(`script[src*="${i}"]`);if(!e){appModules._debug("_loadScript","after_shop_js - nie znaleziono tagu script z shop.js");break}e.insertAdjacentElement("afterend",t);break}default:document.head.appendChild(t)}}},serializeError=t=>{if(t instanceof Error)return t.stack||`${t.name}: ${t.message}`;if("string"==typeof t)return t;try{return JSON.stringify(t)}catch{return String(t)}};window.errorLog=async t=>{const e=new URLSearchParams({JSerror:serializeError(t)});try{await fetch(`/graphql/v1/?${e}`,{method:"POST",body:"query { hello }"})}catch(t){return console.error(`Błąd zapytania JSerror - ${t}`),!1}console.error(t)},function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var i=[],n=Object.getPrototypeOf,o=i.slice,s=i.flat?function(t){return i.flat.call(t)}:function(t){return i.concat.apply([],t)},r=i.push,a=i.indexOf,l={},c=l.toString,d=l.hasOwnProperty,u=d.toString,p=u.call(Object),h={},_=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},m=function(t){return null!=t&&t===t.window},f=t.document,g={type:!0,src:!0,nonce:!0,noModule:!0};function v(t,e,i){var n,o,s=(i=i||f).createElement("script");if(s.text=t,e)for(n in g)(o=e[n]||e.getAttribute&&e.getAttribute(n))&&s.setAttribute(n,o);i.head.appendChild(s).parentNode.removeChild(s)}function y(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[c.call(t)]||"object":typeof t}var b="3.5.1",x=function(t,e){return new x.fn.init(t,e)};function w(t){var e=!!t&&"length"in t&&t.length,i=y(t);return!_(t)&&!m(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}x.fn=x.prototype={jquery:b,constructor:x,length:0,toArray:function(){return o.call(this)},get:function(t){return null==t?o.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=x.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(0<=i&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:r,sort:i.sort,splice:i.splice},x.extend=x.fn.extend=function(){var t,e,i,n,o,s,r=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"==typeof r||_(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&r!==n&&(c&&n&&(x.isPlainObject(n)||(o=Array.isArray(n)))?(i=r[e],s=o&&!Array.isArray(i)?[]:o||x.isPlainObject(i)?i:{},o=!1,r[e]=x.extend(c,s,n)):void 0!==n&&(r[e]=n));return r},x.extend({expando:"jQuery"+(b+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==c.call(t)||(e=n(t))&&("function"!=typeof(i=d.call(e,"constructor")&&e.constructor)||u.call(i)!==p))},isEmptyObject:function(t){var e;
vendor: 11,016 bytes, line 5
5for(e in t)return!1;return!0},globalEval:function(t,e,i){v(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(w(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},makeArray:function(t,e){var i=e||[];return null!=t&&(w(Object(t))?x.merge(i,"string"==typeof t?[t]:t):r.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:a.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,o=t.length;n<i;n++)t[o++]=e[n];return t.length=o,t},grep:function(t,e,i){for(var n=[],o=0,s=t.length,r=!i;o<s;o++)!e(t[o],o)!==r&&n.push(t[o]);return n},map:function(t,e,i){var n,o,r=0,a=[];if(w(t))for(n=t.length;r<n;r++)null!=(o=e(t[r],r,i))&&a.push(o);else for(r in t)null!=(o=e(t[r],r,i))&&a.push(o);return s(a)},guid:1,support:h}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=i[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){l["[object "+e+"]"]=e.toLowerCase()}));var k=function(t){var e,i,n,o,s,r,a,l,c,d,u,p,h,_,m,f,g,v,y,b="sizzle"+1*new Date,x=t.document,w=0,k=0,S=lt(),C=lt(),T=lt(),L=lt(),$=function(t,e){return t===e&&(u=!0),0},E={}.hasOwnProperty,I=[],M=I.pop,z=I.push,j=I.push,A=I.slice,P=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)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]",O="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+D+"*("+O+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+D+"*\\]",N=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",H=new RegExp(D+"+","g"),F=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g"),Z=new RegExp("^"+D+"*,"+D+"*"),q=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),G=new RegExp(D+"|>"),R=new RegExp(N),Y=new RegExp("^"+O+"$"),V={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+N),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")},U=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),it=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ot=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},st=function(){p()},rt=bt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{j.apply(I=A.call(x.childNodes),x.childNodes),I[x.childNodes.length].nodeType}catch(e){j={apply:I.length?function(t,e){z.apply(t,A.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function at(t,e,n,o){var s,a,c,d,u,_,g,v=e&&e.ownerDocument,x=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return n;if(!o&&(p(e),e=e||h,m)){if(11!==x&&(u=K.exec(t)))if(s=u[1]){if(9===x){if(!(c=e.getElementById(s)))return n;if(c.id===s)return n.push(c),n}else if(v&&(c=v.getElementById(s))&&y(e,c)&&c.id===s)return n.push(c),n}else{if(u[2])return j.apply(n,e.getElementsByTagName(t)),n;if((s=u[3])&&i.getElementsByClassName&&e.getElementsByClassName)return j.apply(n,e.getElementsByClassName(s)),n}if(i.qsa&&!L[t+" "]&&(!f||!f.test(t))&&(1!==x||"object"!==e.nodeName.toLowerCase())){if(g=t,v=e,1===x&&(G.test(t)||q.test(t))){for((v=tt.test(t)&&gt(e.parentNode)||e)===e&&i.scope||((d=e.getAttribute("id"))?d=d.replace(nt,ot):e.setAttribute("id",d=b)),a=(_=r(t)).length;a--;)_[a]=(d?"#"+d:":scope")+" "+yt(_[a]);g=_.join(",")}try{return j.apply(n,v.querySelectorAll(g)),n}catch(e){L(t,!0)}finally{d===b&&e.removeAttribute("id")}}}return l(t.replace(F,"$1"),e,n,o)}function lt(){var t=[];return function e(i,o){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=o}}function ct(t){return t[b]=!0,t}function dt(t){var e=h.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var i=t.split("|"),o=i.length;o--;)n.attrHandle[i[o]]=e}function pt(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ht(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function _t(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function mt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&rt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ft(t){return ct((function(e){return e=+e,ct((function(i,n){for(var o,s=t([],i.length,e),r=s.length;r--;)i[o=s[r]]&&(i[o]=!(n[o]=i[o]))}))}))}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=at.support={},s=at.isXML=function(t){var e=t.namespaceURI,i=(t.ownerDocument||t).documentElement;return!U.test(e||i&&i.nodeName||"HTML")},p=at.setDocument=function(t){var e,o,r=t?t.ownerDocument||t:x;return r!=h&&9===r.nodeType&&r.documentElement&&(_=(h=r).documentElement,m=!s(h),x!=h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",st,!1):o.attachEvent&&o.attachEvent("onunload",st)),i.scope=dt((function(t){return _.appendChild(t).appendChild(h.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),i.attributes=dt((function(t){return t.className="i",!t.getAttribute("className")})),i.getElementsByTagName=dt((function(t){return t.appendChild(h.createComment("")),!t.getElementsByTagName("*").length})),i.getElementsByClassName=X.test(h.getElementsByClassName),i.getById=dt((function(t){return _.appendChild(t).id=b,!h.getElementsByName||!h.getElementsByName(b).length})),i.getById?(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var i,n,o,s=e.getElementById(t);if(s){if((i=s.getAttributeNode("id"))&&i.value===t)return[s];for(o=e.getElementsByName(t),n=0;s=o[n++];)if((i=s.getAttributeNode("id"))&&i.value===t)return[s]}return[]}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],o=0,s=e.getElementsByTagName(t);if("*"===t){for(;i=s[o++];)1===i.nodeType&&n.push(i);return n}return s},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},g=[],f=[],(i.qsa=X.test(h.querySelectorAll))&&(dt((function(t){var e;_.appendChild(t).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&f.push("[*^$]="+D+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||f.push("\\["+D+"*(?:value|"+B+")"),t.querySelectorAll("[id~="+b+"-]").length||f.push("~="),(e=h.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||f.push(":checked"),t.querySelectorAll("a#"+b+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll("\\\f"),f.push("[\\r\\n\\f]")})),dt((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=h.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&f.push("name"+D+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&f.push(":enabled",":disabled"),_.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),f.push(",.*:")}))),(i.matchesSelector=X.test(v=_.matches||_.webkitMatchesSelector||_.mozMatchesSelector||_.oMatchesSelector||_.msMatchesSelector))&&dt((function(t){i.disconnectedMatch=v.call(t,"*"),v.call(t,"[s!='']:x"),g.push("!=",N)})),f=f.length&&new RegExp(f.join("|")),g=g.length&&new RegExp(g.join("|")),e=X.test(_.compareDocumentPosition),y=e||X.test(_.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},$=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t==h||t.ownerDocument==x&&y(x,t)?-1:e==h||e.ownerDocument==x&&y(x,e)?1:d?P(d,t)-P(d,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var i,n=0,o=t.parentNode,s=e.parentNode,r=[t],a=[e];if(!o||!s)return t==h?-1:e==h?1:o?-1:s?1:d?P(d,t)-P(d,e):0;if(o===s)return pt(t,e);for(i=t;i=i.parentNode;)r.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?pt(r[n],a[n]):r[n]==x?-1:a[n]==x?1:0}),h},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if(p(t),i.matchesSelector&&m&&!L[e+" "]&&(!g||!g.test(e))&&(!f||!f.test(e)))try{var n=v.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){L(e,!0)}return 0<at(e,h,null,[t]).length},at.contains=function(t,e){return(t.ownerDocument||t)!=h&&p(t),y(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!=h&&p(t);var o=n.attrHandle[e.toLowerCase()],s=o&&E.call(n.attrHandle,e.toLowerCase())?o(t,e,!m):void 0;return void 0!==s?s:i.attributes||!m?t.getAttribute(e):(s=t.getAttributeNode(e))&&s.specified?s.value:null},at.escape=function(t){return(t+"").replace(nt,ot)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,n=[],o=0,s=0;if(u=!i.detectDuplicates,d=!i.sortStable&&t.slice(0),t.sort($),u){for(;e=t[s++];)e===t[s]&&(o=n.push(s));for(;o--;)t.splice(n[o],1)}return d=null,t},o=at.getText=function(t){var e,i="",n=0,s=t.nodeType;
vendor: 4,290 bytes, line 5
5if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=o(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=o(e);return i},(n=at.selectors={cacheLength:50,createPseudo:ct,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&R.test(i)&&(e=r(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+D+")"+t+"("+D+"|$)"))&&S(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var o=at.attr(n,t);return null==o?"!="===e:!e||(o+="","="===e?o===i:"!="===e?o!==i:"^="===e?i&&0===o.indexOf(i):"*="===e?i&&-1<o.indexOf(i):"$="===e?i&&o.slice(-i.length)===i:"~="===e?-1<(" "+o.replace(H," ")+" ").indexOf(i):"|="===e&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,o){var s="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===o?function(t){return!!t.parentNode}:function(e,i,l){var c,d,u,p,h,_,m=s!==r?"nextSibling":"previousSibling",f=e.parentNode,g=a&&e.nodeName.toLowerCase(),v=!l&&!a,y=!1;if(f){if(s){for(;m;){for(p=e;p=p[m];)if(a?p.nodeName.toLowerCase()===g:1===p.nodeType)return!1;_=m="only"===t&&!_&&"nextSibling"}return!0}if(_=[r?f.firstChild:f.lastChild],r&&v){for(y=(h=(c=(d=(u=(p=f)[b]||(p[b]={}))[p.uniqueID]||(u[p.uniqueID]={}))[t]||[])[0]===w&&c[1])&&c[2],p=h&&f.childNodes[h];p=++h&&p&&p[m]||(y=h=0)||_.pop();)if(1===p.nodeType&&++y&&p===e){d[t]=[w,h,y];break}}else if(v&&(y=h=(c=(d=(u=(p=e)[b]||(p[b]={}))[p.uniqueID]||(u[p.uniqueID]={}))[t]||[])[0]===w&&c[1]),!1===y)for(;(p=++h&&p&&p[m]||(y=h=0)||_.pop())&&((a?p.nodeName.toLowerCase()!==g:1!==p.nodeType)||!++y||(v&&((d=(u=p[b]||(p[b]={}))[p.uniqueID]||(u[p.uniqueID]={}))[t]=[w,y]),p!==e)););return(y-=o)===n||y%n==0&&0<=y/n}}},PSEUDO:function(t,e){var i,o=n.pseudos[t]||n.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return o[b]?o(e):1<o.length?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,i){for(var n,s=o(t,e),r=s.length;r--;)t[n=P(t,s[r])]=!(i[n]=s[r])})):function(t){return o(t,0,i)}):o}},pseudos:{not:ct((function(t){var e=[],i=[],n=a(t.replace(F,"$1"));return n[b]?ct((function(t,e,i,o){for(var s,r=n(t,null,o,[]),a=t.length;a--;)(s=r[a])&&(t[a]=!(e[a]=s))})):function(t,o,s){return e[0]=t,n(e,null,s,i),e[0]=null,!i.pop()}})),has:ct((function(t){return function(e){return 0<at(t,e).length}})),contains:ct((function(t){return t=t.replace(et,it),function(e){return-1<(e.textContent||o(e)).indexOf(t)}})),lang:ct((function(t){return Y.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(et,it).toLowerCase(),function(e){var i;do{if(i=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===_},focus:function(t){return t===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:mt(!1),disabled:mt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)}
vendor: 4,170 bytes, line 5
5,header:function(t){return Q.test(t.nodeName)},input:function(t){return J.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ft((function(){return[0]})),last:ft((function(t,e){return[e-1]})),eq:ft((function(t,e,i){return[i<0?i+e:i]})),even:ft((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:ft((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:ft((function(t,e,i){for(var n=i<0?i+e:e<i?e:i;0<=--n;)t.push(n);return t})),gt:ft((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=ht(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=_t(e);function vt(){}function yt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function bt(t,e,i){var n=e.dir,o=e.next,s=o||n,r=i&&"parentNode"===s,a=k++;return e.first?function(e,i,o){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,o);return!1}:function(e,i,l){var c,d,u,p=[w,a];if(l){for(;e=e[n];)if((1===e.nodeType||r)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||r)if(d=(u=e[b]||(e[b]={}))[e.uniqueID]||(u[e.uniqueID]={}),o&&o===e.nodeName.toLowerCase())e=e[n]||e;else{if((c=d[s])&&c[0]===w&&c[1]===a)return p[2]=c[2];if((d[s]=p)[2]=t(e,i,l))return!0}return!1}}function xt(t){return 1<t.length?function(e,i,n){for(var o=t.length;o--;)if(!t[o](e,i,n))return!1;return!0}:t[0]}function wt(t,e,i,n,o){for(var s,r=[],a=0,l=t.length,c=null!=e;a<l;a++)(s=t[a])&&(i&&!i(s,n,o)||(r.push(s),c&&e.push(a)));return r}function kt(t,e,i,n,o,s){return n&&!n[b]&&(n=kt(n)),o&&!o[b]&&(o=kt(o,s)),ct((function(s,r,a,l){var c,d,u,p=[],h=[],_=r.length,m=s||function(t,e,i){for(var n=0,o=e.length;n<o;n++)at(t,e[n],i);return i}(e||"*",a.nodeType?[a]:a,[]),f=!t||!s&&e?m:wt(m,p,t,a,l),g=i?o||(s?t:_||n)?[]:r:f;if(i&&i(f,g,a,l),n)for(c=wt(g,h),n(c,[],a,l),d=c.length;d--;)(u=c[d])&&(g[h[d]]=!(f[h[d]]=u));if(s){if(o||t){if(o){for(c=[],d=g.length;d--;)(u=g[d])&&c.push(f[d]=u);o(null,g=[],c,l)}for(d=g.length;d--;)(u=g[d])&&-1<(c=o?P(s,u):p[d])&&(s[c]=!(r[c]=u))}}else g=wt(g===r?g.splice(_,g.length):g),o?o(null,r,g,l):j.apply(r,g)}))}function St(t){for(var e,i,o,s=t.length,r=n.relative[t[0].type],a=r||n.relative[" "],l=r?1:0,d=bt((function(t){return t===e}),a,!0),u=bt((function(t){return-1<P(e,t)}),a,!0),p=[function(t,i,n){var o=!r&&(n||i!==c)||((e=i).nodeType?d(t,i,n):u(t,i,n));return e=null,o}];l<s;l++)if(i=n.relative[t[l].type])p=[bt(xt(p),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[b]){for(o=++l;o<s&&!n.relative[t[o].type];o++);return kt(1<l&&xt(p),1<l&&yt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(F,"$1"),i,l<o&&St(t.slice(l,o)),o<s&&St(t=t.slice(o)),o<s&&yt(t))}p.push(i)}return xt(p)}return vt.prototype=n.filters=n.pseudos,n.setFilters=new vt,r=at.tokenize=function(t,e){var i,o,s,r,a,l,c,d=C[t+" "];if(d)return e?0:d.slice(0);for(a=t,l=[],c=n.preFilter;a;){for(r in i&&!(o=Z.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(s=[])),i=!1,(o=q.exec(a))&&(i=o.shift(),s.push({value:i,type:o[0].replace(F," ")}),a=a.slice(i.length)),n.filter)!(o=V[r].exec(a))||c[r]&&!(o=c[r](o))||(i=o.shift(),s.push({value:i,type:r,matches:o}),a=a.slice(i.length));if(!i)break}return e?a.length:a?at.error(t):C(t,l).slice(0)},a=at.compile=function(t,e){var i,o,s,a,l,d,u=[],_=[],f=T[t+" "];if(!f){for(e||(e=r(t)),i=e.length;i--;)(f=St(e[i]))[b]?u.push(f):_.push(f);(f=T(t,(o=_,a=0<(s=u).length,l=0<o.length,d=function(t,e,i,r,d){var u,_,f,g=0,v="0",y=t&&[],b=[],x=c,k=t||l&&n.find.TAG("*",d),S=w+=null==x?1:Math.random()||.1,C=k.length;for(d&&(c=e==h||e||d);v!==C&&null!=(u=k[v]);v++){if(l&&u){for(_=0,e||u.ownerDocument==h||(p(u),i=!m);f=o[_++];)if(f(u,e||h,i)){r.push(u);break}d&&(w=S)}a&&((u=!f&&u)&&g--,t&&y.push(u))}if(g+=v,a&&v!==g){for(_=0;f=s[_++];)f(y,b,e,i);if(t){if(0<g)for(;v--;)y[v]||b[v]||(b[v]=M.call(r));b=wt(b)}j.apply(r,b),d&&!t&&0<b.length&&1<g+s.length&&at.uniqueSort(r)}return d&&(w=S,c=x),y},a?ct(d):d))).selector=t}return f}
vendor: 4,622 bytes, line 5
5,l=at.select=function(t,e,i,o){var s,l,c,d,u,p="function"==typeof t&&t,h=!o&&r(t=p.selector||t);if(i=i||[],1===h.length){if(2<(l=h[0]=h[0].slice(0)).length&&"ID"===(c=l[0]).type&&9===e.nodeType&&m&&n.relative[l[1].type]){if(!(e=(n.find.ID(c.matches[0].replace(et,it),e)||[])[0]))return i;p&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(s=V.needsContext.test(t)?0:l.length;s--&&(c=l[s],!n.relative[d=c.type]);)if((u=n.find[d])&&(o=u(c.matches[0].replace(et,it),tt.test(l[0].type)&&gt(e.parentNode)||e))){if(l.splice(s,1),!(t=o.length&&yt(l)))return j.apply(i,o),i;break}}return(p||a(t,h))(o,e,!m,i,!e||tt.test(t)&&gt(e.parentNode)||e),i},i.sortStable=b.split("").sort($).join("")===b,i.detectDuplicates=!!u,p(),i.sortDetached=dt((function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))})),dt((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ut("type|href|height|width",(function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),i.attributes&&dt((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ut("value",(function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),dt((function(t){return null==t.getAttribute("disabled")}))||ut(B,(function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null})),at}(t);x.find=k,x.expr=k.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=k.uniqueSort,x.text=k.getText,x.isXMLDoc=k.isXML,x.contains=k.contains,x.escapeSelector=k.escape;var S=function(t,e,i){for(var n=[],o=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&x(t).is(i))break;n.push(t)}return n},C=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},T=x.expr.match.needsContext;function L(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var $=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function E(t,e,i){return _(e)?x.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?x.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?x.grep(t,(function(t){return-1<a.call(e,t)!==i})):x.filter(e,t,i)}x.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?x.find.matchesSelector(n,t)?[n]:[]:x.find.matches(t,x.grep(e,(function(t){return 1===t.nodeType})))},x.fn.extend({find:function(t){var e,i,n=this.length,o=this;if("string"!=typeof t)return this.pushStack(x(t).filter((function(){for(e=0;e<n;e++)if(x.contains(o[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)x.find(t,o[e],i);return 1<n?x.uniqueSort(i):i},filter:function(t){return this.pushStack(E(this,t||[],!1))},not:function(t){return this.pushStack(E(this,t||[],!0))},is:function(t){return!!E(this,"string"==typeof t&&T.test(t)?x(t):t||[],!1).length}});var I,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e,i){var n,o;if(!t)return this;if(i=i||I,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:M.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:f,!0)),$.test(n[1])&&x.isPlainObject(e))for(n in e)_(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(o=f.getElementById(n[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):_(t)?void 0!==i.ready?i.ready(t):t(x):x.makeArray(t,this)}).prototype=x.fn,I=x(f);var z=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(x.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,o=this.length,s=[],r="string"!=typeof t&&x(t);if(!T.test(t))for(;n<o;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?-1<r.index(i):1===i.nodeType&&x.find.matchesSelector(i,t))){s.push(i);break}return this.pushStack(1<s.length?x.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?a.call(x(t),this[0]):a.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return S(t,"parentNode")}
vendor: 4,844 bytes, line 5
5,parentsUntil:function(t,e,i){return S(t,"parentNode",i)},next:function(t){return A(t,"nextSibling")},prev:function(t){return A(t,"previousSibling")},nextAll:function(t){return S(t,"nextSibling")},prevAll:function(t){return S(t,"previousSibling")},nextUntil:function(t,e,i){return S(t,"nextSibling",i)},prevUntil:function(t,e,i){return S(t,"previousSibling",i)},siblings:function(t){return C((t.parentNode||{}).firstChild,t)},children:function(t){return C(t.firstChild)},contents:function(t){return null!=t.contentDocument&&n(t.contentDocument)?t.contentDocument:(L(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},(function(t,e){x.fn[t]=function(i,n){var o=x.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(o=x.filter(n,o)),1<this.length&&(j[t]||x.uniqueSort(o),z.test(t)&&o.reverse()),this.pushStack(o)}}));var P=/[^\x20\t\r\n\f]+/g;function B(t){return t}function D(t){throw t}function O(t,e,i,n){var o;try{t&&_(o=t.promise)?o.call(t).done(e).fail(i):t&&_(o=t.then)?o.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}x.Callbacks=function(t){var e,i;t="string"==typeof t?(e=t,i={},x.each(e.match(P)||[],(function(t,e){i[e]=!0})),i):x.extend({},t);var n,o,s,r,a=[],l=[],c=-1,d=function(){for(r=r||t.once,s=n=!0;l.length;c=-1)for(o=l.shift();++c<a.length;)!1===a[c].apply(o[0],o[1])&&t.stopOnFalse&&(c=a.length,o=!1);t.memory||(o=!1),n=!1,r&&(a=o?[]:"")},u={add:function(){return a&&(o&&!n&&(c=a.length-1,l.push(o)),function e(i){x.each(i,(function(i,n){_(n)?t.unique&&u.has(n)||a.push(n):n&&n.length&&"string"!==y(n)&&e(n)}))}(arguments),o&&!n&&d()),this},remove:function(){return x.each(arguments,(function(t,e){for(var i;-1<(i=x.inArray(e,a,i));)a.splice(i,1),i<=c&&c--})),this},has:function(t){return t?-1<x.inArray(t,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return r=l=[],a=o="",this},disabled:function(){return!a},lock:function(){return r=l=[],o||n||(a=o=""),this},locked:function(){return!!r},fireWith:function(t,e){return r||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),n||d()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!s}};return u},x.extend({Deferred:function(e){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",o={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return x.Deferred((function(e){x.each(i,(function(i,n){var o=_(t[n[4]])&&t[n[4]];s[n[1]]((function(){var t=o&&o.apply(this,arguments);t&&_(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[n[0]+"With"](this,o?[t]:arguments)}))})),t=null})).promise()},then:function(e,n,o){var s=0;function r(e,i,n,o){return function(){var a=this,l=arguments,c=function(){var t,c;if(!(e<s)){if((t=n.apply(a,l))===i.promise())throw new TypeError("Thenable self-resolution");c=t&&("object"==typeof t||"function"==typeof t)&&t.then,_(c)?o?c.call(t,r(s,i,B,o),r(s,i,D,o)):(s++,c.call(t,r(s,i,B,o),r(s,i,D,o),r(s,i,B,i.notifyWith))):(n!==B&&(a=void 0,l=[t]),(o||i.resolveWith)(a,l))}},d=o?c:function(){try{c()}catch(t){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(t,d.stackTrace),s<=e+1&&(n!==D&&(a=void 0,l=[t]),i.rejectWith(a,l))}};e?d():(x.Deferred.getStackHook&&(d.stackTrace=x.Deferred.getStackHook()),t.setTimeout(d))}}return x.Deferred((function(t){i[0][3].add(r(0,t,_(o)?o:B,t.notifyWith)),i[1][3].add(r(0,t,_(e)?e:B)),i[2][3].add(r(0,t,_(n)?n:D))})).promise()},promise:function(t){return null!=t?x.extend(t,o):o}},s={};return x.each(i,(function(t,e){var r=e[2],a=e[5];o[e[1]]=r.add,a&&r.add((function(){n=a}),i[3-t][2].disable,i[3-t][3].disable,i[0][2].lock,i[0][3].lock),r.add(e[3].fire),s[e[0]]=function(){return s[e[0]+"With"](this===s?void 0:this,arguments),this},s[e[0]+"With"]=r.fireWith})),o.promise(s),e&&e.call(s,s),s},when:function(t){var e=arguments.length,i=e,n=Array(i),s=o.call(arguments),r=x.Deferred(),a=function(t){return function(i){n[t]=this,s[t]=1<arguments.length?o.call(arguments):i,--e||r.resolveWith(n,s)}};if(e<=1&&(O(t,r.done(a(i)).resolve,r.reject,!e),"pending"===r.state()||_(s[i]&&s[i].then)))return r.then();for(;i--;)O(s[i],a(i),r.reject);return r.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,i){t.console&&t.console.warn&&e&&W.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},x.readyException=function(e){t.setTimeout((function(){throw e}))};var N=x.Deferred();function H(){f.removeEventListener("DOMContentLoaded",H),t.removeEventListener("load",H),x.ready()}
vendor: 1,662 bytes, line 5
5x.fn.ready=function(t){return N.then(t).catch((function(t){x.readyException(t)})),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0)!==t&&0<--x.readyWait||N.resolveWith(f,[x])}}),x.ready.then=N.then,"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll?t.setTimeout(x.ready):(f.addEventListener("DOMContentLoaded",H),t.addEventListener("load",H));var F=function(t,e,i,n,o,s,r){var a=0,l=t.length,c=null==i;if("object"===y(i))for(a in o=!0,i)F(t,e,a,i[a],!0,s,r);else if(void 0!==n&&(o=!0,_(n)||(r=!0),c&&(r?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(x(t),i)})),e))for(;a<l;a++)e(t[a],i,r?n:n.call(t[a],a,e(t[a],i)));return o?t:c?e.call(t):l?e(t[0],i):s},Z=/^-ms-/,q=/-([a-z])/g;function G(t,e){return e.toUpperCase()}function R(t){return t.replace(Z,"ms-").replace(q,G)}var Y=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function V(){this.expando=x.expando+V.uid++}V.uid=1,V.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Y(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,o=this.cache(t);if("string"==typeof e)o[R(e)]=i;else for(n in e)o[R(n)]=e[n];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][R(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(R):(e=R(e))in n?[e]:e.match(P)||[]).length;for(;i--;)delete n[e[i]]}
vendor: 4,527 bytes, line 5
5(void 0===e||x.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!x.isEmptyObject(e)}};var U=new V,J=new V,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,X=/[A-Z]/g;function K(t,e,i){var n,o;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(X,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i="true"===(o=i)||"false"!==o&&("null"===o?null:o===+o+""?+o:Q.test(o)?JSON.parse(o):o)}catch(t){}J.set(t,e,i)}else i=void 0;return i}x.extend({hasData:function(t){return J.hasData(t)||U.hasData(t)},data:function(t,e,i){return J.access(t,e,i)},removeData:function(t,e){J.remove(t,e)},_data:function(t,e,i){return U.access(t,e,i)},_removeData:function(t,e){U.remove(t,e)}}),x.fn.extend({data:function(t,e){var i,n,o,s=this[0],r=s&&s.attributes;if(void 0===t){if(this.length&&(o=J.get(s),1===s.nodeType&&!U.get(s,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&(n=R(n.slice(5)),K(s,n,o[n]));U.set(s,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each((function(){J.set(this,t)})):F(this,(function(e){var i;if(s&&void 0===e)return void 0!==(i=J.get(s,t))||void 0!==(i=K(s,t))?i:void 0;this.each((function(){J.set(this,t,e)}))}),null,e,1<arguments.length,null,!0)},removeData:function(t){return this.each((function(){J.remove(this,t)}))}}),x.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=U.get(t,e),i&&(!n||Array.isArray(i)?n=U.access(t,e,x.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=x.queue(t,e),n=i.length,o=i.shift(),s=x._queueHooks(t,e);"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===e&&i.unshift("inprogress"),delete s.stop,o.call(t,(function(){x.dequeue(t,e)}),s)),!n&&s&&s.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return U.get(t,i)||U.access(t,i,{empty:x.Callbacks("once memory").add((function(){U.remove(t,[e+"queue",i])}))})}}),x.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?x.queue(this[0],t):void 0===e?this:this.each((function(){var i=x.queue(this,t,e);x._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&x.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){x.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,o=x.Deferred(),s=this,r=this.length,a=function(){--n||o.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(i=U.get(s[r],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),o.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],nt=f.documentElement,ot=function(t){return x.contains(t.ownerDocument,t)},st={composed:!0};nt.getRootNode&&(ot=function(t){return x.contains(t.ownerDocument,t)||t.getRootNode(st)===t.ownerDocument});var rt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&ot(t)&&"none"===x.css(t,"display")};function at(t,e,i,n){var o,s,r=20,a=n?function(){return n.cur()}:function(){return x.css(t,e,"")},l=a(),c=i&&i[3]||(x.cssNumber[e]?"":"px"),d=t.nodeType&&(x.cssNumber[e]||"px"!==c&&+l)&&et.exec(x.css(t,e));if(d&&d[3]!==c){for(l/=2,c=c||d[3],d=+l||1;r--;)x.style(t,e,d+c),(1-s)*(1-(s=a()/l||.5))<=0&&(r=0),d/=s;d*=2,x.style(t,e,d+c),i=i||[]}return i&&(d=+d||+l||0,o=i[1]?d+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=d,n.end=o)),o}var lt={};function ct(t,e){for(var i,n,o,s,r,a,l,c=[],d=0,u=t.length;d<u;d++)(n=t[d]).style&&(i=n.style.display,e?("none"===i&&(c[d]=U.get(n,"display")||null,c[d]||(n.style.display="")),""===n.style.display&&rt(n)&&(c[d]=(l=r=s=void 0,r=(o=n).ownerDocument,a=o.nodeName,(l=lt[a])||(s=r.body.appendChild(r.createElement(a)),l=x.css(s,"display"),s.parentNode.removeChild(s),"none"===l&&(l="block"),lt[a]=l)))):"none"!==i&&(c[d]="none",U.set(n,"display",i)));for(d=0;d<u;d++)null!=c[d]&&(t[d].style.display=c[d]);return t}x.fn.extend({show:function(){return ct(this,!0)},hide:function(){return ct(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){rt(this)?x(this).show():x(this).hide()}))}});var dt,ut,pt=/^(?:checkbox|radio)$/i,ht=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_t=/^$|^module$|\/(?:java|ecma)script/i;dt=f.createDocumentFragment().appendChild(f.createElement("div")),(ut=f.createElement("input")).setAttribute("type","radio"),ut.setAttribute("checked","checked"),ut.setAttribute("name","t"),dt.appendChild(ut),h.checkClone
vendor: 6,534 bytes, line 5
5=dt.cloneNode(!0).cloneNode(!0).lastChild.checked,dt.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!dt.cloneNode(!0).lastChild.defaultValue,dt.innerHTML="<option></option>",h.option=!!dt.lastChild;var mt={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 ft(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&L(t,e)?x.merge([t],i):i}function gt(t,e){for(var i=0,n=t.length;i<n;i++)U.set(t[i],"globalEval",!e||U.get(e[i],"globalEval"))}mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td,h.option||(mt.optgroup=mt.option=[1,"<select multiple='multiple'>","</select>"]);var vt=/<|&#?\w+;/;function yt(t,e,i,n,o){for(var s,r,a,l,c,d,u=e.createDocumentFragment(),p=[],h=0,_=t.length;h<_;h++)if((s=t[h])||0===s)if("object"===y(s))x.merge(p,s.nodeType?[s]:s);else if(vt.test(s)){for(r=r||u.appendChild(e.createElement("div")),a=(ht.exec(s)||["",""])[1].toLowerCase(),l=mt[a]||mt._default,r.innerHTML=l[1]+x.htmlPrefilter(s)+l[2],d=l[0];d--;)r=r.lastChild;x.merge(p,r.childNodes),(r=u.firstChild).textContent=""}else p.push(e.createTextNode(s));for(u.textContent="",h=0;s=p[h++];)if(n&&-1<x.inArray(s,n))o&&o.push(s);else if(c=ot(s),r=ft(u.appendChild(s),"script"),c&&gt(r),i)for(d=0;s=r[d++];)_t.test(s.type||"")&&i.push(s);return u}var bt=/^key/,xt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,wt=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function St(){return!1}function Ct(t,e){return t===function(){try{return f.activeElement}catch(t){}}()==("focus"===e)}function Tt(t,e,i,n,o,s){var r,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)Tt(t,a,i,n,e[a],s);return t}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),!1===o)o=St;else if(!o)return t;return 1===s&&(r=o,(o=function(t){return x().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=x.guid++)),t.each((function(){x.event.add(this,e,o,n,i)}))}function Lt(t,e,i){i?(U.set(t,e,!1),x.event.add(t,e,{namespace:!1,handler:function(t){var n,s,r=U.get(this,e);if(1&t.isTrigger&&this[e]){if(r.length)(x.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=o.call(arguments),U.set(this,e,r),n=i(this,e),this[e](),r!==(s=U.get(this,e))||n?U.set(this,e,!1):s={},r!==s)return t.stopImmediatePropagation(),t.preventDefault(),s.value}else r.length&&(U.set(this,e,{value:x.event.trigger(x.extend(r[0],x.Event.prototype),r.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===U.get(t,e)&&x.event.add(t,e,kt)}x.event={global:{},add:function(t,e,i,n,o){var s,r,a,l,c,d,u,p,h,_,m,f=U.get(t);if(Y(t))for(i.handler&&(i=(s=i).handler,o=s.selector),o&&x.find.matchesSelector(nt,o),i.guid||(i.guid=x.guid++),(l=f.events)||(l=f.events=Object.create(null)),(r=f.handle)||(r=f.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(P)||[""]).length;c--;)h=m=(a=wt.exec(e[c])||[])[1],_=(a[2]||"").split(".").sort(),h&&(u=x.event.special[h]||{},h=(o?u.delegateType:u.bindType)||h,u=x.event.special[h]||{},d=x.extend({type:h,origType:m,data:n,handler:i,guid:i.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:_.join(".")},s),(p=l[h])||((p=l[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,_,r)||t.addEventListener&&t.addEventListener(h,r)),u.add&&(u.add.call(t,d),d.handler.guid||(d.handler.guid=i.guid)),o?p.splice(p.delegateCount++,0,d):p.push(d),x.event.global[h]=!0)},remove:function(t,e,i,n,o){var s,r,a,l,c,d,u,p,h,_,m,f=U.hasData(t)&&U.get(t);if(f&&(l=f.events)){for(c=(e=(e||"").match(P)||[""]).length;c--;)if(h=m=(a=wt.exec(e[c])||[])[1],_=(a[2]||"").split(".").sort(),h){for(u=x.event.special[h]||{},p=l[h=(n?u.delegateType:u.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=s=p.length;s--;)d=p[s],!o&&m!==d.origType||i&&i.guid!==d.guid||a&&!a.test(d.namespace)||n&&n!==d.selector&&("**"!==n||!d.selector)||(p.splice(s,1),d.selector&&p.delegateCount--,u.remove&&u.remove.call(t,d));r&&!p.length&&(u.teardown&&!1!==u.teardown.call(t,_,f.handle)||x.removeEvent(t,h,f.handle),delete l[h])}else for(h in l)x.event.remove(t,h+e[c],i,n,!0);x.isEmptyObject(l)&&U.remove(t,"handle events")}},dispatch:function(t){var e,i,n,o,s,r,a=new Array(arguments.length),l=x.event.fix(t),c=(U.get(this,"events")||Object.create(null))[l.type]||[],d=x.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,l)){for(r=x.event.handlers.call(this,l,c),e=0;(o=r[e++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,i=0;(s=o.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(n=((x.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,a))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,l),l.result}},handlers:function(t,e){var i,n,o,s,r,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&1<=t.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(s=[],r={},i=0;i<l;i++)void 0===r[o=(n=e[i]).selector+" "]&&(r[o]=n.needsContext?-1<x(o,this).index(c):x.find(o,this,null,[c]).length),r[o]&&s.push(n);s.length&&a.push({elem:c,handlers:s})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:_(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[x.expando]?t:new x.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return pt.test(e.type)&&e.click&&L(e,"input")&&Lt(e,"click",kt),!1},trigger:function(t){var e=this||t;return pt.test(e.type)&&e.click&&L(e,"input")&&Lt(e,"click"),!0},_default:function(t){var e=t.target;return pt.test(e.type)&&e.click&&L(e,"input")&&U.get(e,"click")||L(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}}
vendor: 1,811 bytes, line 5
5,x.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},x.Event=function(t,e){if(!(this instanceof x.Event))return new x.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?kt:St,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&x.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:St,isPropagationStopped:St,isImmediatePropagationStopped:St,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=kt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=kt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=kt,t&&!this.isSimulated&&t.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(t){var e=t.button;return null==t.which&&bt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&xt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(t,e){x.event.special[t]={setup:function(){return Lt(this,t,Ct),!1},trigger:function(){return Lt(this,t),!0},delegateType:e}}
vendor: 4,550 bytes, line 5
5)),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){x.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=t.relatedTarget,o=t.handleObj;return n&&(n===this||x.contains(this,n))||(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}})),x.fn.extend({on:function(t,e,i,n){return Tt(this,t,e,i,n)},one:function(t,e,i,n){return Tt(this,t,e,i,n,1)},off:function(t,e,i){var n,o;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,x(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=St),this.each((function(){x.event.remove(this,t,i,e)}))}});var $t=/<script|<style|<link/i,Et=/checked\s*(?:[^=]|=\s*.checked.)/i,It=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Mt(t,e){return L(t,"table")&&L(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function zt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function jt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function At(t,e){var i,n,o,s,r,a;if(1===e.nodeType){if(U.hasData(t)&&(a=U.get(t).events))for(o in U.remove(e,"handle events"),a)for(i=0,n=a[o].length;i<n;i++)x.event.add(e,o,a[o][i]);J.hasData(t)&&(s=J.access(t),r=x.extend({},s),J.set(e,r))}}function Pt(t,e,i,n){e=s(e);var o,r,a,l,c,d,u=0,p=t.length,m=p-1,f=e[0],g=_(f);if(g||1<p&&"string"==typeof f&&!h.checkClone&&Et.test(f))return t.each((function(o){var s=t.eq(o);g&&(e[0]=f.call(this,o,s.html())),Pt(s,e,i,n)}));if(p&&(r=(o=yt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===o.childNodes.length&&(o=r),r||n)){for(l=(a=x.map(ft(o,"script"),zt)).length;u<p;u++)c=o,u!==m&&(c=x.clone(c,!0,!0),l&&x.merge(a,ft(c,"script"))),i.call(t[u],c,u);if(l)for(d=a[a.length-1].ownerDocument,x.map(a,jt),u=0;u<l;u++)c=a[u],_t.test(c.type||"")&&!U.access(c,"globalEval")&&x.contains(d,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?x._evalUrl&&!c.noModule&&x._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},d):v(c.textContent.replace(It,""),c,d))}return t}function Bt(t,e,i){for(var n,o=e?x.filter(e,t):t,s=0;null!=(n=o[s]);s++)i||1!==n.nodeType||x.cleanData(ft(n)),n.parentNode&&(i&&ot(n)&&gt(ft(n,"script")),n.parentNode.removeChild(n));return t}x.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,o,s,r,a,l,c,d=t.cloneNode(!0),u=ot(t);if(!(h.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(r=ft(d),n=0,o=(s=ft(t)).length;n<o;n++)a=s[n],"input"===(c=(l=r[n]).nodeName.toLowerCase())&&pt.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(e)if(i)for(s=s||ft(t),r=r||ft(d),n=0,o=s.length;n<o;n++)At(s[n],r[n]);else At(t,d);return 0<(r=ft(d,"script")).length&&gt(r,!u&&ft(t,"script")),d},cleanData:function(t){for(var e,i,n,o=x.event.special,s=0;void 0!==(i=t[s]);s++)if(Y(i)){if(e=i[U.expando]){if(e.events)for(n in e.events)o[n]?x.event.remove(i,n):x.removeEvent(i,n,e.handle);i[U.expando]=void 0}i[J.expando]&&(i[J.expando]=void 0)}}}),x.fn.extend({detach:function(t){return Bt(this,t,!0)},remove:function(t){return Bt(this,t)},text:function(t){return F(this,(function(t){return void 0===t?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Pt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Mt(this,t).appendChild(t)}))},prepend:function(){return Pt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Mt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Pt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Pt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(x.cleanData(ft(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return x.clone(this,t,e)}))},html:function(t){return F(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!$t.test(t)&&!mt[(ht.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}
vendor: 4,520 bytes, line 5
5).nodeType&&(x.cleanData(ft(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Pt(this,arguments,(function(e){var i=this.parentNode;x.inArray(this,t)<0&&(x.cleanData(ft(this)),i&&i.replaceChild(e,this))}),t)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){x.fn[t]=function(t){for(var i,n=[],o=x(t),s=o.length-1,a=0;a<=s;a++)i=a===s?this:this.clone(!0),x(o[a])[e](i),r.apply(n,i.get());return this.pushStack(n)}}));var Dt=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),Ot=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)},Wt=function(t,e,i){var n,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];for(o in n=i.call(t),e)t.style[o]=s[o];return n},Nt=new RegExp(it.join("|"),"i");function Ht(t,e,i){var n,o,s,r,a=t.style;return(i=i||Ot(t))&&(""!==(r=i.getPropertyValue(e)||i[e])||ot(t)||(r=x.style(t,e)),!h.pixelBoxStyles()&&Dt.test(r)&&Nt.test(e)&&(n=a.width,o=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=o,a.maxWidth=s)),void 0!==r?r+"":r}function Ft(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(d){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",nt.appendChild(c).appendChild(d);var e=t.getComputedStyle(d);n="1%"!==e.top,l=12===i(e.marginLeft),d.style.right="60%",r=36===i(e.right),o=36===i(e.width),d.style.position="absolute",s=12===i(d.offsetWidth/3),nt.removeChild(c),d=null}}function i(t){return Math.round(parseFloat(t))}var n,o,s,r,a,l,c=f.createElement("div"),d=f.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===d.style.backgroundClip,x.extend(h,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),r},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),s},reliableTrDimensions:function(){var e,i,n,o;return null==a&&(e=f.createElement("table"),i=f.createElement("tr"),n=f.createElement("div"),e.style.cssText="position:absolute;left:-11111px",i.style.height="1px",n.style.height="9px",nt.appendChild(e).appendChild(i).appendChild(n),o=t.getComputedStyle(i),a=3<parseInt(o.height),nt.removeChild(e)),a}}))}();var Zt=["Webkit","Moz","ms"],qt=f.createElement("div").style,Gt={};function Rt(t){return x.cssProps[t]||Gt[t]||(t in qt?t:Gt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Zt.length;i--;)if((t=Zt[i]+e)in qt)return t}(t)||t)}var Yt=/^(none|table(?!-c[ea]).+)/,Vt=/^--/,Ut={position:"absolute",visibility:"hidden",display:"block"},Jt={letterSpacing:"0",fontWeight:"400"};function Qt(t,e,i){var n=et.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function Xt(t,e,i,n,o,s){var r="width"===e?1:0,a=0,l=0;if(i===(n?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(l+=x.css(t,i+it[r],!0,o)),n?("content"===i&&(l-=x.css(t,"padding"+it[r],!0,o)),"margin"!==i&&(l-=x.css(t,"border"+it[r]+"Width",!0,o))):(l+=x.css(t,"padding"+it[r],!0,o),"padding"!==i?l+=x.css(t,"border"+it[r]+"Width",!0,o):a+=x.css(t,"border"+it[r]+"Width",!0,o));return!n&&0<=s&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-l-a-.5))||0),l}function Kt(t,e,i){var n=Ot(t),o=(!h.boxSizingReliable()||i)&&"border-box"===x.css(t,"boxSizing",!1,n),s=o,r=Ht(t,e,n),a="offset"+e[0].toUpperCase()+e.slice(1);if(Dt.test(r)){if(!i)return r;r="auto"}return(!h.boxSizingReliable()&&o||!h.reliableTrDimensions()&&L(t,"tr")||"auto"===r||!parseFloat(r)&&"inline"===x.css(t,"display",!1,n))&&t.getClientRects().length&&(o="border-box"===x.css(t,"boxSizing",!1,n),(s=a in t)&&(r=t[a])),(r=parseFloat(r)||0)+Xt(t,e,i||(o?"border":"content"),s,n,r)+"px"}function te(t,e,i,n,o){return new te.prototype.init(t,e,i,n,o)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Ht(t,"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:{}
vendor: 4,670 bytes, line 5
5,style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,s,r,a=R(e),l=Vt.test(e),c=t.style;if(l||(e=Rt(a)),r=x.cssHooks[e]||x.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(o=r.get(t,!1,n))?o:c[e];"string"==(s=typeof i)&&(o=et.exec(i))&&o[1]&&(i=at(t,e,o),s="number"),null!=i&&i==i&&("number"!==s||l||(i+=o&&o[3]||(x.cssNumber[a]?"":"px")),h.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var o,s,r,a=R(e);return Vt.test(e)||(e=Rt(a)),(r=x.cssHooks[e]||x.cssHooks[a])&&"get"in r&&(o=r.get(t,!0,i)),void 0===o&&(o=Ht(t,e,n)),"normal"===o&&e in Jt&&(o=Jt[e]),""===i||i?(s=parseFloat(o),!0===i||isFinite(s)?s||0:o):o}}),x.each(["height","width"],(function(t,e){x.cssHooks[e]={get:function(t,i,n){if(i)return!Yt.test(x.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Kt(t,e,n):Wt(t,Ut,(function(){return Kt(t,e,n)}))},set:function(t,i,n){var o,s=Ot(t),r=!h.scrollboxSize()&&"absolute"===s.position,a=(r||n)&&"border-box"===x.css(t,"boxSizing",!1,s),l=n?Xt(t,e,n,a,s):0;return a&&r&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-Xt(t,e,"border",!1,s)-.5)),l&&(o=et.exec(i))&&"px"!==(o[3]||"px")&&(t.style[e]=i,i=x.css(t,e)),Qt(0,i,l)}}})),x.cssHooks.marginLeft=Ft(h.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Ht(t,"marginLeft"))||t.getBoundingClientRect().left-Wt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(t,e){x.cssHooks[t+e]={expand:function(i){for(var n=0,o={},s="string"==typeof i?i.split(" "):[i];n<4;n++)o[t+it[n]+e]=s[n]||s[n-2]||s[0];return o}},"margin"!==t&&(x.cssHooks[t+e].set=Qt)})),x.fn.extend({css:function(t,e){return F(this,(function(t,e,i){var n,o,s={},r=0;if(Array.isArray(e)){for(n=Ot(t),o=e.length;r<o;r++)s[e[r]]=x.css(t,e[r],!1,n);return s}return void 0!==i?x.style(t,e,i):x.css(t,e)}),t,e,1<arguments.length)}}),((x.Tween=te).prototype={constructor:te,init:function(t,e,i,n,o,s){this.elem=t,this.prop=i,this.easing=o||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||(x.cssNumber[i]?"":"px")},cur:function(){var t=te.propHooks[this.prop];return t&&t.get?t.get(this):te.propHooks._default.get(this)},run:function(t){var e,i=te.propHooks[this.prop];return this.options.duration?this.pos=e=x.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):te.propHooks._default.set(this),this}}).init.prototype=te.prototype,(te.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=x.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||!x.cssHooks[t.prop]&&null==t.elem.style[Rt(t.prop)]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=te.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=te.prototype.init,x.fx.step={};var ee,ie,ne,oe,se=/^(?:toggle|show|hide)$/,re=/queueHooks$/;function ae(){ie&&(!1===f.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(ae):t.setTimeout(ae,x.fx.interval),x.fx.tick())}function le(){return t.setTimeout((function(){ee=void 0})),ee=Date.now()}function ce(t,e){var i,n=0,o={height:t};for(e=e?1:0;n<4;n+=2-e)o["margin"+(i=it[n])]=o["padding"+i]=t;return e&&(o.opacity=o.width=t),o}function de(t,e,i){for(var n,o=(ue.tweeners[e]||[]).concat(ue.tweeners["*"]),s=0,r=o.length;s<r;s++)if(n=o[s].call(i,e,t))return n}function ue(t,e,i){var n,o,s=0,r=ue.prefilters.length,a=x.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var e=ee||le(),i=Math.max(0,c.startTime+c.duration-e),n=1-(i/c.duration||0),s=0,r=c.tweens.length;s<r;s++)c.tweens[s].run(n);return a.notifyWith(t,[c,n,i]),n<1&&r?i:(r||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},i),originalProperties:e,originalOptions:i,startTime:ee||le(),duration:i.duration,tweens:[],createTween:function(e,i){var n=x.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(o)return this;for(o=!0;i<n;i++)c.tweens[i].run(1);
vendor: 1,467 bytes, line 5
5return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),d=c.props;for(function(t,e){var i,n,o,s,r;for(i in t)if(o=e[n=R(i)],s=t[i],Array.isArray(s)&&(o=s[1],s=t[i]=s[0]),i!==n&&(t[n]=s,delete t[i]),(r=x.cssHooks[n])&&"expand"in r)for(i in s=r.expand(s),delete t[n],s)i in t||(t[i]=s[i],e[i]=o);else e[n]=o}(d,c.opts.specialEasing);s<r;s++)if(n=ue.prefilters[s].call(c,t,d,c.opts))return _(n.stop)&&(x._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return x.map(d,de,c),_(c.opts.start)&&c.opts.start.call(t,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:t,anim:c,queue:c.opts.queue})),c}x.Animation=x.extend(ue,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return at(i.elem,t,et.exec(e),i),i}]},tweener:function(t,e){_(t)?(e=t,t=["*"]):t=t.match(P);for(var i,n=0,o=t.length;n<o;n++)i=t[n],ue.tweeners[i]=ue.tweeners[i]||[],ue.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,o,s,r,a,l,c,d,u="width"in e||"height"in e,p=this,h={},_=t.style,m=t.nodeType&&rt(t),f=U.get(t,"fxshow");for(n in i.queue||(null==(r=x._queueHooks(t,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,p.always((function(){p.always((function(){r.unqueued--,x.queue(t,"fx").length||r.empty.fire()}))}))),e)if(o=e[n],se.test(o)){if(delete e[n],s=s||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||
vendor: 4,582 bytes, line 5
5!f||void 0===f[n])continue;m=!0}h[n]=f&&f[n]||x.style(t,n)}if((l=!x.isEmptyObject(e))||!x.isEmptyObject(h))for(n in u&&1===t.nodeType&&(i.overflow=[_.overflow,_.overflowX,_.overflowY],null==(c=f&&f.display)&&(c=U.get(t,"display")),"none"===(d=x.css(t,"display"))&&(c?d=c:(ct([t],!0),c=t.style.display||c,d=x.css(t,"display"),ct([t]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===x.css(t,"float")&&(l||(p.done((function(){_.display=c})),null==c&&(d=_.display,c="none"===d?"":d)),_.display="inline-block")),i.overflow&&(_.overflow="hidden",p.always((function(){_.overflow=i.overflow[0],_.overflowX=i.overflow[1],_.overflowY=i.overflow[2]}))),l=!1,h)l||(f?"hidden"in f&&(m=f.hidden):f=U.access(t,"fxshow",{display:c}),s&&(f.hidden=!m),m&&ct([t],!0),p.done((function(){for(n in m||ct([t]),U.remove(t,"fxshow"),h)x.style(t,n,h[n])}))),l=de(m?f[n]:0,n,p),n in f||(f[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ue.prefilters.unshift(t):ue.prefilters.push(t)}}),x.speed=function(t,e,i){var n=t&&"object"==typeof t?x.extend({},t):{complete:i||!i&&e||_(t)&&t,duration:t,easing:i&&e||e&&!_(e)&&e};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(){_(n.old)&&n.old.call(this),n.queue&&x.dequeue(this,n.queue)},n},x.fn.extend({fadeTo:function(t,e,i,n){return this.filter(rt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var o=x.isEmptyObject(t),s=x.speed(e,i,n),r=function(){var e=ue(this,x.extend({},t),s);(o||U.get(this,"finish"))&&e.stop(!0)};return r.finish=r,o||!1===s.queue?this.each(r):this.queue(s.queue,r)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,o=null!=t&&t+"queueHooks",s=x.timers,r=U.get(this);if(o)r[o]&&r[o].stop&&n(r[o]);else for(o in r)r[o]&&r[o].stop&&re.test(o)&&n(r[o]);for(o=s.length;o--;)s[o].elem!==this||null!=t&&s[o].queue!==t||(s[o].anim.stop(i),e=!1,s.splice(o,1));!e&&i||x.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=U.get(this),n=i[t+"queue"],o=i[t+"queueHooks"],s=x.timers,r=n?n.length:0;for(i.finish=!0,x.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),x.each(["toggle","show","hide"],(function(t,e){var i=x.fn[e];x.fn[e]=function(t,n,o){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(ce(e,!0),t,n,o)}})),x.each({slideDown:ce("show"),slideUp:ce("hide"),slideToggle:ce("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){x.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),x.timers=[],x.fx.tick=function(){var t,e=0,i=x.timers;for(ee=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||x.fx.stop(),ee=void 0},x.fx.timer=function(t){x.timers.push(t),x.fx.start()},x.fx.interval=13,x.fx.start=function(){ie||(ie=!0,ae())},x.fx.stop=function(){ie=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,i){return e=x.fx&&x.fx.speeds[e]||e,i=i||"fx",this.queue(i,(function(i,n){var o=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(o)}}))},ne=f.createElement("input"),oe=f.createElement("select").appendChild(f.createElement("option")),ne.type="checkbox",h.checkOn=""!==ne.value,h.optSelected=oe.selected,(ne=f.createElement("input")).value="t",ne.type="radio",h.radioValue="t"===ne.value;var pe,he=x.expr.attrHandle;x.fn.extend({attr:function(t,e){return F(this,x.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each((function(){x.removeAttr(this,t)}))}}),x.extend({attr:function(t,e,i){var n,o,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?x.prop(t,e,i):(1===s&&x.isXMLDoc(t)||(o=x.attrHooks[e.toLowerCase()]||(x.expr.match.bool.test(e)?pe:void 0)),void 0!==i?null===i?void x.removeAttr(t,e):o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:(t.setAttribute(e,i+""),i):o&&"get"in o&&null!==(n=o.get(t,e))?n:null==(n=x.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!h.radioValue&&"radio"===e&&L(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,o=e&&e.match(P);if(o&&1===t.nodeType)for(;i=o[n++];)t.removeAttribute(i)}}
vendor: 3,908 bytes, line 5
5),pe={set:function(t,e,i){return!1===e?x.removeAttr(t,i):t.setAttribute(i,i),i}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=he[e]||x.find.attr;he[e]=function(t,e,n){var o,s,r=e.toLowerCase();return n||(s=he[r],he[r]=o,o=null!=i(t,e,n)?r:null,he[r]=s),o}}));var _e=/^(?:input|select|textarea|button)$/i,me=/^(?:a|area)$/i;function fe(t){return(t.match(P)||[]).join(" ")}function ge(t){return t.getAttribute&&t.getAttribute("class")||""}function ve(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(P)||[]}x.fn.extend({prop:function(t,e){return F(this,x.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each((function(){delete this[x.propFix[t]||t]}))}}),x.extend({prop:function(t,e,i){var n,o,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&x.isXMLDoc(t)||(e=x.propFix[e]||e,o=x.propHooks[e]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:t[e]=i:o&&"get"in o&&null!==(n=o.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=x.find.attr(t,"tabindex");return e?parseInt(e,10):_e.test(t.nodeName)||me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(x.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.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(t){var e,i,n,o,s,r,a,l=0;if(_(t))return this.each((function(e){x(this).addClass(t.call(this,e,ge(this)))}));if((e=ve(t)).length)for(;i=this[l++];)if(o=ge(i),n=1===i.nodeType&&" "+fe(o)+" "){for(r=0;s=e[r++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");o!==(a=fe(n))&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,o,s,r,a,l=0;if(_(t))return this.each((function(e){x(this).removeClass(t.call(this,e,ge(this)))}));if(!arguments.length)return this.attr("class","");if((e=ve(t)).length)for(;i=this[l++];)if(o=ge(i),n=1===i.nodeType&&" "+fe(o)+" "){for(r=0;s=e[r++];)for(;-1<n.indexOf(" "+s+" ");)n=n.replace(" "+s+" "," ");o!==(a=fe(n))&&i.setAttribute("class",a)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):_(t)?this.each((function(i){x(this).toggleClass(t.call(this,i,ge(this),e),e)})):this.each((function(){var e,o,s,r;if(n)for(o=0,s=x(this),r=ve(t);e=r[o++];)s.hasClass(e)?s.removeClass(e):s.addClass(e);else void 0!==t&&"boolean"!==i||((e=ge(this))&&U.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":U.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&-1<(" "+fe(ge(i))+" ").indexOf(e))return!0;return!1}});var ye=/\r/g;x.fn.extend({val:function(t){var e,i,n,o=this[0];return arguments.length?(n=_(t),this.each((function(i){var o;1===this.nodeType&&(null==(o=n?t.call(this,i,x(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=x.map(o,(function(t){return null==t?"":t+""}))),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))}))):o?(e=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(o,"value"))?i:"string"==typeof(i=o.value)?i.replace(ye,""):null==i?"":i:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:fe(x.text(t))}},select:{get:function(t){var e,i,n,o=t.options,s=t.selectedIndex,r="select-one"===t.type,a=r?null:[],l=r?s+1:o.length;for(n=s<0?l:r?s:0;n<l;n++)if(((i=o[n]).selected||n===s)&&!i.disabled&&(!i.parentNode.disabled||!L(i.parentNode,"optgroup"))){if(e=x(i).val(),r)return e;a.push(e)}return a}
vendor: 4,525 bytes, line 5
5,set:function(t,e){for(var i,n,o=t.options,s=x.makeArray(e),r=o.length;r--;)((n=o[r]).selected=-1<x.inArray(x.valHooks.option.get(n),s))&&(i=!0);return i||(t.selectedIndex=-1),s}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<x.inArray(x(t).val(),e)}},h.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),h.focusin="onfocusin"in t;var be=/^(?:focusinfocus|focusoutblur)$/,xe=function(t){t.stopPropagation()};x.extend(x.event,{trigger:function(e,i,n,o){var s,r,a,l,c,u,p,h,g=[n||f],v=d.call(e,"type")?e.type:e,y=d.call(e,"namespace")?e.namespace.split("."):[];if(r=h=a=n=n||f,3!==n.nodeType&&8!==n.nodeType&&!be.test(v+x.event.triggered)&&(-1<v.indexOf(".")&&(v=(y=v.split(".")).shift(),y.sort()),c=v.indexOf(":")<0&&"on"+v,(e=e[x.expando]?e:new x.Event(v,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:x.makeArray(i,[e]),p=x.event.special[v]||{},o||!p.trigger||!1!==p.trigger.apply(n,i))){if(!o&&!p.noBubble&&!m(n)){for(l=p.delegateType||v,be.test(l+v)||(r=r.parentNode);r;r=r.parentNode)g.push(r),a=r;a===(n.ownerDocument||f)&&g.push(a.defaultView||a.parentWindow||t)}for(s=0;(r=g[s++])&&!e.isPropagationStopped();)h=r,e.type=1<s?l:p.bindType||v,(u=(U.get(r,"events")||Object.create(null))[e.type]&&U.get(r,"handle"))&&u.apply(r,i),(u=c&&r[c])&&u.apply&&Y(r)&&(e.result=u.apply(r,i),!1===e.result&&e.preventDefault());return e.type=v,o||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(g.pop(),i)||!Y(n)||c&&_(n[v])&&!m(n)&&((a=n[c])&&(n[c]=null),x.event.triggered=v,e.isPropagationStopped()&&h.addEventListener(v,xe),n[v](),e.isPropagationStopped()&&h.removeEventListener(v,xe),x.event.triggered=void 0,a&&(n[c]=a)),e.result}},simulate:function(t,e,i){var n=x.extend(new x.Event,i,{type:t,isSimulated:!0});x.event.trigger(n,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each((function(){x.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return x.event.trigger(t,e,i,!0)}}),h.focusin||x.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){x.event.simulate(e,t.target,x.event.fix(t))};x.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,o=U.access(n,e);o||n.addEventListener(t,i,!0),U.access(n,e,(o||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,o=U.access(n,e)-1;o?U.access(n,e,o):(n.removeEventListener(t,i,!0),U.remove(n,e))}}}));var we=t.location,ke={guid:Date.now()},Se=/\?/;x.parseXML=function(e){var i;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(e){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),i};var Ce=/\[\]$/,Te=/\r?\n/g,Le=/^(?:submit|button|image|reset|file)$/i,$e=/^(?:input|select|textarea|keygen)/i;function Ee(t,e,i,n){var o;if(Array.isArray(e))x.each(e,(function(e,o){i||Ce.test(t)?n(t,o):Ee(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,i,n)}));else if(i||"object"!==y(e))n(t,e);else for(o in e)Ee(t+"["+o+"]",e[o],i,n)}x.param=function(t,e){var i,n=[],o=function(t,e){var i=_(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,(function(){o(this.name,this.value)}));else for(i in t)Ee(i,t[i],e,o);return n.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&$e.test(this.nodeName)&&!Le.test(t)&&(this.checked||!pt.test(t))})).map((function(t,e){var i=x(this).val();return null==i?null:Array.isArray(i)?x.map(i,(function(t){return{name:e.name,value:t.replace(Te,"\r\n")}})):{name:e.name,value:i.replace(Te,"\r\n")}})).get()}});var Ie=/%20/g,Me=/#.*$/,ze=/([?&])_=[^&]*/,je=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ae=/^(?:GET|HEAD)$/,Pe=/^\/\//,Be={},De={},Oe="*/".concat("*"),We=f.createElement("a");function Ne(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,o=0,s=e.toLowerCase().match(P)||[];if(_(i))for(;n=s[o++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function He(t,e,i,n){var o={},s=t===De;function r(a){var l;
vendor: 4,337 bytes, line 5
5return o[a]=!0,x.each(t[a]||[],(function(t,a){var c=a(e,i,n);return"string"!=typeof c||s||o[c]?s?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)})),l}return r(e.dataTypes[0])||!o["*"]&&r("*")}function Fe(t,e){var i,n,o=x.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((o[i]?t:n||(n={}))[i]=e[i]);return n&&x.extend(!0,t,n),t}We.href=we.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(we.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Oe,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},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Fe(Fe(t,x.ajaxSettings),e):Fe(x.ajaxSettings,t)},ajaxPrefilter:Ne(Be),ajaxTransport:Ne(De),ajax:function(e,i){"object"==typeof e&&(i=e,e=void 0),i=i||{};var n,o,s,r,a,l,c,d,u,p,h=x.ajaxSetup({},i),_=h.context||h,m=h.context&&(_.nodeType||_.jquery)?x(_):x.event,g=x.Deferred(),v=x.Callbacks("once memory"),y=h.statusCode||{},b={},w={},k="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(c){if(!r)for(r={};e=je.exec(s);)r[e[1].toLowerCase()+" "]=(r[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=r[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==c&&(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)S.always(t[S.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||k;return n&&n.abort(e),C(0,e),this}};if(g.promise(S),h.url=((e||h.url||we.href)+"").replace(Pe,we.protocol+"//"),h.type=i.method||i.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(P)||[""],null==h.crossDomain){l=f.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=We.protocol+"//"+We.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=x.param(h.data,h.traditional)),He(Be,h,i,S),c)return S;for(u in(d=x.event&&h.global)&&0==x.active++&&x.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ae.test(h.type),o=h.url.replace(Me,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Ie,"+")):(p=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(Se.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(ze,"$1"),p=(Se.test(o)?"&":"?")+"_="+ke.guid+++p),h.url=o+p),h.ifModified&&(x.lastModified[o]&&S.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&S.setRequestHeader("If-None-Match",x.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||i.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Oe+"; q=0.01":""):h.accepts["*"]),h.headers)S.setRequestHeader(u,h.headers[u]);if(h.beforeSend&&(!1===h.beforeSend.call(_,S,h)||c))return S.abort();if(k="abort",v.add(h.complete),S.done(h.success),S.fail(h.error),n=He(De,h,i,S)){if(S.readyState=1,d&&m.trigger("ajaxSend",[S,h]),c)return S;h.async&&0<h.timeout&&(a=t.setTimeout((function(){S.abort("timeout")}),h.timeout));try{c=!1,n.send(b,C)}catch(e){if(c)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,i,r,l){var u,p,f,b,w,k=i;c||(c=!0,a&&t.clearTimeout(a),n=void 0,s=l||"",S.readyState=0<e?4:0,u=200<=e&&e<300||304===e,r&&(b=function(t,e,i){for(var n,o,s,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(o in a)if(a[o]&&a[o].test(n)){l.unshift(o);break}if(l[0]in i)s=l[0];else{for(o in i){if(!l[0]||t.converters[o+" "+l[0]]){s=o;break}r||(r=o)}s=s||r}if(s)return s!==l[0]&&l.unshift(s),i[s]}(h,S,r)),!u&&-1<x.inArray("script",h.dataTypes)&&(h.converters["text script"]=function(){}
vendor: 4,399 bytes, line 5
5),b=function(t,e,i,n){var o,s,r,a,l,c={},d=t.dataTypes.slice();if(d[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];for(s=d.shift();s;)if(t.responseFields[s]&&(i[t.responseFields[s]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=d.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(r=c[l+" "+s]||c["* "+s]))for(o in c)if((a=o.split(" "))[1]===s&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[o]:!0!==c[o]&&(s=a[0],d.unshift(a[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}(h,b,S,u),u?(h.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(x.lastModified[o]=w),(w=S.getResponseHeader("etag"))&&(x.etag[o]=w)),204===e||"HEAD"===h.type?k="nocontent":304===e?k="notmodified":(k=b.state,p=b.data,u=!(f=b.error))):(f=k,!e&&k||(k="error",e<0&&(e=0))),S.status=e,S.statusText=(i||k)+"",u?g.resolveWith(_,[p,k,S]):g.rejectWith(_,[S,k,f]),S.statusCode(y),y=void 0,d&&m.trigger(u?"ajaxSuccess":"ajaxError",[S,h,u?p:f]),v.fireWith(_,[S,k]),d&&(m.trigger("ajaxComplete",[S,h]),--x.active||x.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,i){return x.get(t,e,i,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],(function(t,e){x[e]=function(t,i,n,o){return _(i)&&(o=o||n,n=i,i=void 0),x.ajax(x.extend({url:t,type:e,dataType:o,data:i,success:n},x.isPlainObject(t)&&t))}})),x.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),x._evalUrl=function(t,e,i){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){x.globalEval(t,e,i)}})},x.fn.extend({wrapAll:function(t){var e;return this[0]&&(_(t)&&(t=t.call(this[0])),e=x(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return _(t)?this.each((function(e){x(this).wrapInner(t.call(this,e))})):this.each((function(){var e=x(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=_(t);return this.each((function(i){x(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Ze={0:200,1223:204},qe=x.ajaxSettings.xhr();h.cors=!!qe&&"withCredentials"in qe,h.ajax=qe=!!qe,x.ajaxTransport((function(e){var i,n;if(h.cors||qe&&!e.crossDomain)return{send:function(o,s){var r,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r];for(r in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(r,o[r]);i=function(t){return function(){i&&(i=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Ze[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&&t.setTimeout((function(){i&&n()}))},i=i("abort");try{a.send(e.hasContent&&e.data||null)}catch(o){if(i)throw o}},abort:function(){i&&i()}}})),x.ajaxPrefilter((function(t){t.crossDomain&&(t.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(t){return x.globalEval(t),t}}}),x.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),x.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,o){e=x("<script>").attr(t.scriptAttrs||{}
vendor: 4,723 bytes, line 5
5).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&o("error"===t.type?404:200,t.type)}),f.head.appendChild(e[0])},abort:function(){i&&i()}}}));var Ge,Re=[],Ye=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Re.pop()||x.expando+"_"+ke.guid++;return this[t]=!0,t}}),x.ajaxPrefilter("json jsonp",(function(e,i,n){var o,s,r,a=!1!==e.jsonp&&(Ye.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ye.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=_(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ye,"$1"+o):!1!==e.jsonp&&(e.url+=(Se.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return r||x.error(o+" was not called"),r[0]},e.dataTypes[0]="json",s=t[o],t[o]=function(){r=arguments},n.always((function(){void 0===s?x(t).removeProp(o):t[o]=s,e[o]&&(e.jsonpCallback=i.jsonpCallback,Re.push(o)),r&&_(s)&&s(r[0]),r=s=void 0})),"script"})),h.createHTMLDocument=((Ge=f.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ge.childNodes.length),x.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(h.createHTMLDocument?((n=(e=f.implementation.createHTMLDocument("")).createElement("base")).href=f.location.href,e.head.appendChild(n)):e=f),s=!i&&[],(o=$.exec(t))?[e.createElement(o[1])]:(o=yt([t],e,s),s&&s.length&&x(s).remove(),x.merge([],o.childNodes)));var n,o,s},x.fn.load=function(t,e,i){var n,o,s,r=this,a=t.indexOf(" ");return-1<a&&(n=fe(t.slice(a)),t=t.slice(0,a)),_(e)?(i=e,e=void 0):e&&"object"==typeof e&&(o="POST"),0<r.length&&x.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done((function(t){s=arguments,r.html(n?x("<div>").append(x.parseHTML(t)).find(n):t)})).always(i&&function(t,e){r.each((function(){i.apply(this,s||[t.responseText,e,t])}))}),this},x.expr.pseudos.animated=function(t){return x.grep(x.timers,(function(e){return t===e.elem})).length},x.offset={setOffset:function(t,e,i){var n,o,s,r,a,l,c=x.css(t,"position"),d=x(t),u={};"static"===c&&(t.style.position="relative"),a=d.offset(),s=x.css(t,"top"),l=x.css(t,"left"),("absolute"===c||"fixed"===c)&&-1<(s+l).indexOf("auto")?(r=(n=d.position()).top,o=n.left):(r=parseFloat(s)||0,o=parseFloat(l)||0),_(e)&&(e=e.call(t,i,x.extend({},a))),null!=e.top&&(u.top=e.top-a.top+r),null!=e.left&&(u.left=e.left-a.left+o),"using"in e?e.using.call(t,u):("number"==typeof u.top&&(u.top+="px"),"number"==typeof u.left&&(u.left+="px"),d.css(u))}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){x.offset.setOffset(this,t,e)}));var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],o={top:0,left:0};if("fixed"===x.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===x.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((o=x(t).offset()).top+=x.css(t,"borderTopWidth",!0),o.left+=x.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-x.css(n,"marginTop",!0),left:e.left-o.left-x.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===x.css(t,"position");)t=t.offsetParent;return t||nt}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;x.fn[t]=function(n){return F(this,(function(t,n,o){var s;if(m(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===o)return s?s[e]:t[n];s?s.scrollTo(i?s.pageXOffset:o,i?o:s.pageYOffset):t[n]=o}),t,n,arguments.length)}})),x.each(["top","left"],(function(t,e){x.cssHooks[e]=Ft(h.pixelPosition,(function(t,i){if(i)return i=Ht(t,e),Dt.test(i)?x(t).position()[e]+"px":i}))})),x.each({Height:"height",Width:"width"},(function(t,e){x.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){x.fn[n]=function(o,s){var r=arguments.length&&(i||"boolean"!=typeof o),a=i||(!0===o||!0===s?"margin":"border");return F(this,(function(e,i,o){var s;return m(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===o?x.css(e,i,a):x.style(e,i,o,a)}),e,r?o:void 0,r)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){x.fn[e]=function(t){return this.on(e,t)}}
5)),x.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),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(t,e){x.fn[e]=function(t,i){return 0<arguments.length?this.on(e,null,t,i):this.trigger(e)}}));var Ve=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;x.proxy=function(t,e){var i,n,s;if("string"==typeof e&&(i=t[e],e=t,t=i),_(t))return n=o.call(arguments,2),(s=function(){return t.apply(e||this,n.concat(o.call(arguments)))}).guid=t.guid=t.guid||x.guid++,s},x.holdReady=function(t){t?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=L,x.isFunction=_,x.isWindow=m,x.camelCase=R,x.type=y,x.now=Date.now,x.isNumeric=function(t){var e=x.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},x.trim=function(t){return null==t?"":(t+"").replace(Ve,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return x}));var Ue=t.jQuery,Je=t.$;return x.noConflict=function(e){return t.$===x&&(t.$=Je),e&&t.jQuery===x&&(t.jQuery=Ue),x},void 0===e&&(t.jQuery=t.$=x),x})),jQuery.fn.size=function(){return this.length},$.curCSS=function(t,e,i){$(t).css(e,i)},
6/*!
7 * jQuery Migrate - v3.3.1 - 2020-06-25T01:07Z
8 * Copyright OpenJS Foundation and other contributors
9 */
10function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],(function(e){return t(e,window)})):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}((function(t,e){"use strict";function i(e){return function(t,e){var i,n=/^(\d+)\.(\d+)\.(\d+)/,o=n.exec(t)||[],s=n.exec(e)||[];for(i=1;i<=3;i++){if(+o[i]>+s[i])return 1;if(+o[i]<+s[i])return-1}return 0}(t.fn.jquery,e)>=0}t.migrateVersion="3.3.1";function n(t,e,i,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return i},set:function(t){i=t}})}function o(t,e,i,n){t[e]=function(){return i.apply(this,arguments)}}t.migrateDeduplicateWarnings=!0,t.migrateWarnings=[],void 0===t.migrateTrace&&(t.migrateTrace=!0),t.migrateReset=function(){t.migrateWarnings.length=0},e.document.compatMode;var s,r={},a=t.fn.init,l=t.find,c=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,d=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,u=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;for(s in t.fn.init=function(t){var e=Array.prototype.slice.call(arguments);return"string"==typeof t&&"#"===t&&(e[0]=[]),a.apply(this,e)},t.fn.init.prototype=t.fn,t.find=function(t){var i=Array.prototype.slice.call(arguments);if("string"==typeof t&&c.test(t))try{e.document.querySelector(t)}catch(n){t=t.replace(d,(function(t,e,i,n){return"["+e+i+'"'+n+'"]'}));try{e.document.querySelector(t),i[0],i[0]=t}catch(t){i[0]}}return l.apply(this,i)},l)Object.prototype.hasOwnProperty.call(l,s)&&(t.find[s]=l[s]);if(o(t.fn,"size",(function(){return this.length})),o(t,"parseJSON",(function(){return JSON.parse.apply(null,arguments)})),o(t,"holdReady",t.holdReady),o(t,"unique",t.uniqueSort),n(t.expr,"filters",t.expr.pseudos),n(t.expr,":",t.expr.pseudos),i("3.1.1")&&o(t,"trim",(function(t){return null==t?"":(t+"").replace(u,"")})),i("3.2.0")&&o(t,"nodeName",(function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()})),i("3.3.0")&&(o(t,"isNumeric",(function(t){var e=typeof t;return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))})),t.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){r["[object "+e+"]"]=e.toLowerCase()})),o(t,"type",(function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?r[Object.prototype.toString.call(t)]||"object":typeof t})),o(t,"isFunction",(function(t){return"function"==typeof t})),o(t,"isWindow",(function(t){return null!=t&&t===t.window})),o(t,"isArray",Array.isArray)),t.ajax){var p=t.ajax;t.ajax=function(){var t=p.apply(this,arguments);return t.promise&&(o(t,"success",t.done),o(t,"error",t.fail),o(t,"complete",t.always)),t}}
10var h=t.fn.removeAttr,_=t.fn.toggleClass,m=/\S+/g;function f(t){return t.replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()}))}t.fn.removeAttr=function(e){var i=this;return t.each(e.match(m),(function(e,n){t.expr.match.bool.test(n)&&i.prop(n,!1)})),h.apply(this,arguments)},t.fn.toggleClass=function(e){return void 0!==e&&"boolean"!=typeof e?_.apply(this,arguments):this.each((function(){var i=this.getAttribute&&this.getAttribute("class")||"";i&&t.data(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":t.data(this,"__className__")||"")}))};var g,v=/^[a-z]/,y=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;t.swap&&t.each(["height","width","reliableMarginRight"],(function(e,i){var n=t.cssHooks[i]&&t.cssHooks[i].get;n&&(t.cssHooks[i].get=function(){var t;return t=n.apply(this,arguments),t})})),t.swap=function(t,e,i,n){var o,s,r={};for(s in e)r[s]=t.style[s],t.style[s]=e[s];for(s in o=i.apply(t,n||[]),e)t.style[s]=r[s];return o},i("3.4.0")&&"undefined"!=typeof Proxy&&(t.cssProps=new Proxy(t.cssProps||{},{set:function(){return Reflect.set.apply(this,arguments)}})),t.cssNumber||(t.cssNumber={}),g=t.fn.css,t.fn.css=function(e,i){var n,o,s=this;return e&&"object"==typeof e&&!Array.isArray(e)&&t.each(e,(function(e,i){t.fn.css.call(s,e,i)})),"number"==typeof i&&(n=f(e),o=n,v.test(o)&&y.test(o[0].toUpperCase()+o.slice(1))||t.cssNumber[n]),g.apply(this,arguments)};var b=t.data;if(t.data=function(e,i,n){var o,s,r;if(i&&"object"==typeof i&&2===arguments.length){for(r in o=t.hasData(e)&&b.call(this,e),s={},i)r!==f(r)?o[r]=i[r]:s[r]=i[r];return b.call(this,e,s),i}return i&&"string"==typeof i&&i!==f(i)&&(o=t.hasData(e)&&b.call(this,e))&&i in o?(arguments.length>2&&(o[i]=n),o[i]):b.apply(this,arguments)},t.fx){var x,w=t.Tween.prototype.run,k=function(t){return t};t.Tween.prototype.run=function(){t.easing[this.easing].length>1&&(this.easing.toString(),t.easing[this.easing]=k),w.apply(this,arguments)},x=t.fx.interval||13,e.requestAnimationFrame&&Object.defineProperty(t.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return e.document.hidden,x},set:function(t){x=t}})}var S=t.fn.load,C=t.event.add,T=t.event.fix;t.event.props=[],t.event.fixHooks={},n(t.event.props,"concat",t.event.props.concat),t.event.fix=function(e){var i,n=e.type,o=this.fixHooks[n],s=t.event.props;if(s.length)for(s.join();s.length;)t.event.addProp(s.pop());if(o&&!o._migrated_&&(o._migrated_=!0,(s=o.props)&&s.length))for(;s.length;)t.event.addProp(s.pop());return i=T.call(this,e),o&&o.filter?o.filter(i,e):i},t.event.add=function(t,i){return t===e&&"load"===i&&e.document.readyState,C.apply(this,arguments)},t.each(["load","unload","error"],(function(e,i){t.fn[i]=function(){var t=Array.prototype.slice.call(arguments,0);return"load"===i&&"string"==typeof t[0]?S.apply(this,t):(t.splice(0,0,i),arguments.length?this.on.apply(this,t):(this.triggerHandler.apply(this,t),this))}})),t.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,i){t.fn[i]=function(t,e){return arguments.length>0?this.on(i,null,t,e):this.trigger(i)}})),t((function(){t(e.document).triggerHandler("ready")})),t.event.special.ready={setup:function(){e.document}},t.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}});var L=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,$=t.htmlPrefilter,E=function(t){var i=e.document.implementation.createHTMLDocument("");return i.body.innerHTML=t,i.body&&i.body.innerHTML},I=function(t){var e=t.replace(L,"<$1></$2>");e!==t&&(E(t),E(e))};t.UNSAFE_restoreLegacyHtmlPrefilter=function(){t.htmlPrefilter=function(t){return I(t),t.replace(L,"<$1></$2>")}},t.htmlPrefilter=function(t){return I(t),$(t)};var M=t.fn.offset;if(t.fn.offset=function(){var t=this[0];return!t||t.nodeType&&t.getBoundingClientRect?M.apply(this,arguments):arguments.length?this:void 0},t.ajax){var z=t.param;t.param=function(e,i){var n=t.ajaxSettings&&t.ajaxSettings.traditional;return void 0===i&&n&&(i=n),z.call(this,e,i)}}var j=t.fn.andSelf||t.fn.addBack;if(t.fn.andSelf=function(){return j.apply(this,arguments)},t.Deferred){var A=t.Deferred,P=[["resolve","done",t.Callbacks("once memory"),t.Callbacks("once memory"),"resolved"],["reject","fail",t.Callbacks("once memory"),t.Callbacks("once memory"),"rejected"],["notify","progress",t.Callbacks("memory"),t.Callbacks("memory")]];t.Deferred=function(e){var i=A(),n=i.promise();return i.pipe=n.pipe=function(){var e=arguments;return t.Deferred((function(o){t.each(P,(function(t,s){var r="function"==typeof e[t]&&e[t];i[s[1]]((function(){var t=r&&r.apply(this,arguments);t&&"function"==typeof t.promise?t.promise().done(o.resolve).fail(o.reject).progress(o.notify):o[s[0]+"With"](this===n?o.promise():this,r?[t]:arguments)}))})),e=null})).promise()},e&&e.call(i,i),i},t.Deferred.exceptionHook=A.exceptionHook}return t}
10)),jQuery.event.special.touchstart={setup:function(t,e,i){this.addEventListener("touchstart",i,{passive:!1})}},jQuery.event.special.touchmove={setup:function(t,e,i){this.addEventListener("touchmove",i,{passive:!1})}},jQuery.event.special.wheel={setup:function(t,e,i){this.addEventListener("wheel",i,{passive:!0})}},jQuery.event.special.mousewheel={setup:function(t,e,i){this.addEventListener("mousewheel",i,{passive:!0})}};var console=console||{};console.log=console.log||function(){},console.info=console.info||function(){};var fun_pc=[],fun_pc_large=[],fun_tablet=[],fun_mobile=[];function _instanceof(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function _classCallCheck(t,e){if(!_instanceof(t,e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),t}app_shop.vars.xhr="",app_shop.getFile=function(t){$.getScript(app_shop.urls.prefix+t+".js")},app_shop.getOuterJS=function(t){for(var e in t)$.getScript(app_shop.urls.prefix+t[e]+".js",(function(){console.log("file: "+t[e])}))},app_shop.run=function(t,e,n,o){if($.isArray(e))for(i in e)app_shop.fnrun[e[i]]||(app_shop.fnrun[e[i]]=[]),app_shop.fnrun[e[i]].push({w:n,fn:t,a:o});else app_shop.fnrun[e]||(app_shop.fnrun[e]=[]),app_shop.fnrun[e].push({w:n,fn:t,a:o})},app_shop.runArr=function(t,e,i){if(t){var n,o;for(n=0,o=t.length;n<o;n++){var s=t[n].w,r=t[n].fn,a=t[n].a;i?s?$(s).size()&&a&&(r(),console.log("mode "+e+":"+s)):a&&(r(),console.log("mode "+e+":"+s)):s?$(s).size()&&(r(),console.log("mode "+e+":"+s)):(r(),console.log("mode "+e+":"+s))}}};var iaiGetAjax=function(){function t(e){_classCallCheck(this,t),this.data={},this.cache={},this.fn=[]}return _createClass(t,[{key:"projector",value:function(){this.data.Projector={format:"json",params:{}},this.fn.push(fn)}},{key:"basket",value:function(t){this.data.Basket={},this.fn.push(t)}},{key:"wishlist",value:function(t){this.data.Wishlist={},this.fn.push(t)}},{key:"comparers",value:function(t){this.data.Comparers={},this.fn.push(t)}},{key:"snippets",value:function(t,e){this.data.Snippets?console.log("Snippets data exist"):this.data.Snippets={format:"json",params:{mobile:e.mobile,tablet:e.tablet,pc:e.pc,request_uri:e.request_uri,additional_ajax:e.additional_ajax}},this.fn.push(t)}},{key:"toplayersAndWidgets",value:function(t,e){this.data.ToplayersAndWidgets?console.log("ToplayersAndWidgets data exist"):this.data.ToplayersAndWidgets={format:"json",params:{mobile:e.mobile,tablet:e.tablet,pc:e.pc,request_uri:e.request_uri,additional_ajax:e.additional_ajax}},this.fn.push(t)}},{key:"hotspot",value:function(t,e){}},{key:"hotspotMain",value:function(t,e){}},{key:"hotspotProjector",value:function(t,e){}},{key:"hotspotSearch",value:function(t,e){}},{key:"init",value:function(){var t="request="+JSON.stringify(this.data),e=this;$.ajax({type:"POST",url:"/ajax/get.php",dataType:"JSON",data:t,success:function(t){e.cache=t,e.fn.forEach((function(t){t(e.cache)}))},error:function(){}})}}]),t}(),iaiGet=new iaiGetAjax;app_shop.fn.change_url=function(t){history.pushState&&history.pushState({foo:"bar"},"",decodeURIComponent(t))},app_shop.fn.evalJSFromHtml=function(t){var e=document.createElement("div");e.innerHTML=t;for(var i=e.getElementsByTagName("script"),n=[],o=0;o<i.length;++o)"SCRIPT"!==i[o].tagName||"ajaxLoad"!=i[o].className&&"ajaxLoad"!=i[o].parentNode.className||n.push(i[o]);$("body").append(n)},app_shop.fn.load=function(t,e,i,n){app_shop.vars.xhr&&4!=app_shop.vars.xhr.readystate&&app_shop.vars.xhr.abort(),$(e).addClass("load-content");for(var o=0;e.length>
10o;o++)$(e[o][0]).addClass("load-content");app_shop.vars.xhr=$.ajax({url:t+n,timeout:16e3,success:function(n,o){for(var s=0;e.length>s;s++)$(e[s][0]).removeClass("load-content").html($(n).find(e[s][1]).html());app_shop.fn.change_url(t),app_shop.fn.evalJSFromHtml(n),i&&i()},error:function(e){window.location.href=t}})},app_shop.fn.variety=function(t,e,i){return 1==t?e:i},app_shop.fn.setGrid=function(){1==app_shop.vars.view?$(".setMobileGrid").each((function(){var t=$(this).data("item");$(t).before('<del class="domHandler" data-item="'+t+'" style="display:none">'),$(this).append($(t))})):$(".domHandler").each((function(){var t=$(this).data("item");$(this).after($(t)),$(this).remove()}))},app_shop.fn.runAjaxFn=function(){app_shop.vars.view=Math.round($("#viewType").width());app_shop.vars.view;if(app_shop.runArr(app_shop.fnrun.all,"all",!0),!app_shop.vars.view)return!1;app_shop.runArr(app_shop.fnrun[app_shop.vars.view],app_shop.vars.view,!0)},app_shop.runApp=function(){app_shop.vars.view=Math.round($("#viewType").width());var t=app_shop.vars.view;if(app_shop.runArr(app_shop.fnrun.all,"all"),!app_shop.vars.view)return!1;app_shop.runArr(app_shop.fnrun[app_shop.vars.view],app_shop.vars.view),app_shop.fn.setGrid(),$(window).off("resize.view"),$(window).on("resize.view",(function(){app_shop.vars.view=Math.round($("#viewType").width()),app_shop.vars.view!=t&&(t=app_shop.vars.view,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()},app_shop.fn.getRwdSrc=function(t){var e=[t.data("src_mobile"),t.data("src_tablet"),t.data("src_desktop"),t.data("src_desktop")],i=e[app_shop.vars.view-1];return i||(e=e.join(" ").split(" ")).length&&(i=1==app_shop.vars.view?e[0]:e.pop()),i},app_shop.fn.rwdBanner=function(t,e){for(i in e)app_shop.run((function(){$(t).find("img.rwd-src").each((function(){$this=$(this),$this.attr("src",app_shop.fn.getRwdSrc($this))}))}),e[i],t)},function(t){t.fn.iai_align=function(){return this.each((function(){if(t(this).data("align")){var e=t(this).data("align").split("|"),n="",o=0,s=t(this);for(i in e)if(option=e[i].split("#"),n=option[0],"px"==(option[1]||"px")){o=Math.max.apply(null,s.find(n).map((function(){return t(this).outerHeight()})).get());s.find(n).css("min-height",o)}else s.find(n).each((function(){t(this).wrap('<div style="display: table;width:100%;height:100%;table-layout: fixed;"><div style="display: table-cell;vertical-align: middle;min-height:100%">')}))}}))}}(jQuery),String.prototype.format=function(){var t,e=this;for(t in arguments)e=e.replace(/%[a-z]/,arguments[t]);return e},app_shop.fn.news_data=function(t){var e="";if(!t.data||!(e=t.data.split("-"))||e.length<3)return!1;var i=t.format||"%d-%m-%y";return t.month_names&&(e[1]=t.month_names[parseInt(e[1])-1]),i.format(e[2],e[1],e[0])},function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(i,n){var o,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(i),appendDots:t(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},s.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
10sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(s,s.initials),s.activeBreakpoint=null,s.animType=null,s.animProp=null,s.breakpoints=[],s.breakpointSettings=[],s.cssTransitions=!1,s.focussed=!1,s.interrupted=!1,s.hidden="hidden",s.paused=!0,s.positionProp=null,s.respondTo=null,s.rowCount=1,s.shouldClick=!0,s.$slider=t(i),s.$slidesCache=null,s.transformType=null,s.transitionType=null,s.visibilityChange="visibilitychange",s.windowWidth=0,s.windowTimer=null,o=t(i).data("slick")||{},s.options=t.extend({},s.defaults,n,o),s.currentSlide=s.options.initialSlide,s.originalSettings=s.options,void 0!==document.mozHidden?(s.hidden="mozHidden",s.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(s.hidden="webkitHidden",s.visibilityChange="webkitvisibilitychange"),s.autoPlay=t.proxy(s.autoPlay,s),s.autoPlayClear=t.proxy(s.autoPlayClear,s),s.autoPlayIterator=t.proxy(s.autoPlayIterator,s),s.changeSlide=t.proxy(s.changeSlide,s),s.clickHandler=t.proxy(s.clickHandler,s),s.selectHandler=t.proxy(s.selectHandler,s),s.setPosition=t.proxy(s.setPosition,s),s.swipeHandler=t.proxy(s.swipeHandler,s),s.dragHandler=t.proxy(s.dragHandler,s),s.keyHandler=t.proxy(s.keyHandler,s),s.instanceUid=e++,s.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,s.registerBreakpoints(),s.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,i,n){var o=this;if("boolean"==typeof i)n=i,i=null;else if(i<0||i>=o.slideCount)return!1;o.unload(),"number"==typeof i?0===i&&0===o.$slides.length?t(e).appendTo(o.$slideTrack):n?t(e).insertBefore(o.$slides.eq(i)):t(e).insertAfter(o.$slides.eq(i)):!0===n?t(e).prependTo(o.$slideTrack):t(e).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each((function(e,i){t(i).attr("data-slick-index",e)})),o.$slidesCache=o.$slides,o.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,i){var n={},o=this;o.animateHeight(),!0===o.options.rtl&&!1===o.options.vertical&&(e=-e),!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:e},o.options.speed,o.options.easing,i):o.$slideTrack.animate({top:e},o.options.speed,o.options.easing,i):!1===o.cssTransitions?(!0===o.options.rtl&&(o.currentLeft=-o.currentLeft),t({animStart:o.currentLeft}).animate({animStart:e},{duration:o.options.speed,easing:o.options.easing,step:function(t){t=Math.ceil(t),!1===o.options.vertical?(n[o.animType]="translate("+t+"px, 0px)",o.$slideTrack.css(n)):(n[o.animType]="translate(0px,"+t+"px)",o.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(o.applyTransition(),e=Math.ceil(e),!1===o.options.vertical?n[o.animType]="translate3d("+e+"px, 0px, 0px)":n[o.animType]="translate3d(0px,"+e+"px, 0px)",o.$slideTrack.css(n),i&&setTimeout((function(){o.disableTransition(),i.call()}),o.options.speed))},e.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e&&null!==e&&(e=t(e).not(this.$slider)),e},e.prototype.asNavFor=function(e){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each((function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)}))},e.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;
vendor: 5,080 bytes, line 10
10t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,i,n=this;if(!0===n.options.dots){for(n.$slider.addClass("slick-dotted"),i=t("<ul />").addClass(n.options.dotsClass),e=0;e<=n.getDotCount();e+=1)i.append(t("<li />").append(n.options.customPaging.call(this,n,e)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each((function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")})),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,i,n,o,s,r,a=this;if(n=document.createDocumentFragment(),s=a.$slider.children(),a.options.rows>1){for(r=a.options.slidesPerRow*a.options.rows,o=Math.ceil(s.length/r),t=0;t<o;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var d=t*r+(e*a.options.slidesPerRow+i);s.get(d)&&c.appendChild(s.get(d))}l.appendChild(c)}n.appendChild(l)}a.$slider.empty().append(n),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var n,o,s,r=this,a=!1,l=r.$slider.width(),c=window.innerWidth||t(window).width();if("window"===r.respondTo?s=c:"slider"===r.respondTo?s=l:"min"===r.respondTo&&(s=Math.min(c,l)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){for(n in o=null,r.breakpoints)r.breakpoints.hasOwnProperty(n)&&(!1===r.originalSettings.mobileFirst?s<r.breakpoints[n]&&(o=r.breakpoints[n]):s>r.breakpoints[n]&&(o=r.breakpoints[n]));null!==o?null!==r.activeBreakpoint?(o!==r.activeBreakpoint||i)&&(r.activeBreakpoint=o,"unslick"===r.breakpointSettings[o]?r.unslick(o):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[o]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=o):(r.activeBreakpoint=o,"unslick"===r.breakpointSettings[o]?r.unslick(o):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[o]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=o):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),a=o),e||!1===a||r.$slider.trigger("breakpoint",[r,a])}},e.prototype.changeSlide=function(e,i){var n,o,s=this,r=t(e.currentTarget);switch(r.is("a")&&e.preventDefault(),r.is("li")||(r=r.closest("li")),n=s.slideCount%s.options.slidesToScroll!=0?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,e.data.message){case"previous":o=0===n?s.options.slidesToScroll:s.options.slidesToShow-n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-o,!1,i);break;case"next":o=0===n?s.options.slidesToScroll:n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+o,!1,i);break;case"index":var a=0===e.data.index?0:e.data.index||r.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(a),!1,i),r.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i;if(i=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.
10slick",t.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&((t=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){t(this).attr("style",t(this).data("originalStyling"))})),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout((function(){i.disableTransition(t),e.call()}),i.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",(function(i){i.stopImmediatePropagation();var n=t(this);setTimeout((function(){e.options.pauseOnFocus&&(e.focussed=n.is(":focus"),e.autoPlay())}),0)}))},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++n;else for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},e.prototype.getLeft=function(t){var e,i,n,o,s=this,r=0;return s.slideOffset=0,i=s.$slides.first().outerHeight(!0),!0===s.options.infinite?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideWidth*s.options.slidesToShow*-1,o=-1,!0===s.options.vertical&&!0===s.options.centerMode&&(2===s.options.slidesToShow?o=-1.5:1===s.options.slidesToShow&&(o=-2)),r=i*s.options.slidesToShow*o),s.slideCount%s.options.slidesToScroll!=0&&t+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(t>s.slideCount?(s.slideOffset=(s.options.slidesToShow-(t-s.slideCount))*s.slideWidth*-1,r=(s.options.slidesToShow-(t-s.slideCount))*i*-1):(s.slideOffset=s.slideCount%s.options.slidesToScroll*s.slideWidth*-1,r=s.slideCount%s.options.slidesToScroll*i*-1))):t+s.options.slidesToShow>s.slideCount&&(s.slideOffset=(t+s.options.slidesToShow-s.slideCount)*s.slideWidth,r=(t+s.options.slidesToShow-s.slideCount)*i),s.slideCount<=s.options.slidesToShow&&(s.slideOffset=0,r=0),!0===s.options.centerMode&&s.slideCount<=s.options.slidesToShow?s.slideOffset=s.slideWidth*Math.floor(s.options.slidesToShow)/2-s.slideWidth*s.slideCount/2:!0===s.options.centerMode&&!0===s.options.infinite?s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth:!0===s.options.centerMode&&(s.slideOffset=0,s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)),e=!1===s.options.vertical?t*s.slideWidth*-1+s.slideOffset:t*i*-1+r,!0===s.options.variableWidth&&(n=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow),e=!0===s.options.rtl?n[0]?-1*(s.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===s.options.centerMode&&(n=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow+1),e=!0===s.options.rtl?n[0]?-1*(s.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,e+=(s.$list.width()-n.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){return this.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,o=[];for(!1===e.options.infinite?t=e.slideCount:(i=-1*e.options.slidesToScroll,n=-1*e.options.slidesToScroll,t=2*e.slideCount);i<t;)o.push(i),i=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return o},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,n=this;return i=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each((function(o,s){if(s.offsetLeft-i+t(s).outerWidth()/2>-1*n.swipeLeft)return e=s,!1})),Math.abs(t(e).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:
10parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},e.prototype.initADA=function(){var e=this,i=Math.ceil(e.slideCount/e.options.slidesToShow),n=e.getNavigableIndexes().filter((function(t){return t>=0&&t<e.slideCount}));e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each((function(i){var o=n.indexOf(i);t(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+i,tabindex:-1}),-1!==o&&t(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+o})})),e.$dots.attr("role","tablist").find("li").each((function(o){var s=n[o];t(this).attr({role:"presentation"}),t(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+o,"aria-controls":"slick-slide"+e.instanceUid+s,"aria-label":o+1+" of "+i,"aria-selected":null,tabindex:"-1"})})).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var o=e.currentSlide,s=o+e.options.slidesToShow;o<s;o++)e.$slides.eq(o).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"}
10,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(e.setPosition)},e.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each((function(){var e=t(this),i=t(this).attr("data-lazy"),n=t(this).attr("data-srcset"),o=t(this).attr("data-sizes")||s.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0}
vendor: 7,114 bytes, line 10
10,100,(function(){n&&(e.attr("srcset",n),o&&e.attr("sizes",o)),e.attr("src",i).animate({opacity:1},200,(function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),s.$slider.trigger("lazyLoaded",[s,e,i])}))},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,e,i])},r.src=i}))}var i,n,o,s=this;if(!0===s.options.centerMode?!0===s.options.infinite?o=(n=s.currentSlide+(s.options.slidesToShow/2+1))+s.options.slidesToShow+2:(n=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),o=s.options.slidesToShow/2+1+2+s.currentSlide):(n=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide,o=Math.ceil(n+s.options.slidesToShow),!0===s.options.fade&&(n>0&&n--,o<=s.slideCount&&o++)),i=s.$slider.find(".slick-slide").slice(n,o),"anticipated"===s.options.lazyLoad)for(var r=n-1,a=o,l=s.$slider.find(".slick-slide"),c=0;c<s.options.slidesToScroll;c++)r<0&&(r=s.slideCount-1),i=(i=i.add(l.eq(r))).add(l.eq(a)),r--,a++;e(i),s.slideCount<=s.options.slidesToShow?e(s.$slider.find(".slick-slide")):s.currentSlide>=s.slideCount-s.options.slidesToShow?e(s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow)):0===s.currentSlide&&e(s.$slider.find(".slick-cloned").slice(-1*s.options.slidesToShow))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(e){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,e]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange&&t(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var i,n,o,s,r,a=this,l=t("img[data-lazy]",a.$slider);l.length?(i=l.first(),n=i.attr("data-lazy"),o=i.attr("data-srcset"),s=i.attr("data-sizes")||a.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){o&&(i.attr("srcset",o),s&&i.attr("sizes",s)),i.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,i,n]),a.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout((function(){a.progressiveLazyLoad(e+1)}),500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,i,n]),a.progressiveLazyLoad())},r.src=n):a.$slider.trigger("allImagesLoaded",[a])},e.prototype.refresh=function(e){var i,n,o=this;n=o.slideCount-o.options.slidesToShow,!o.options.infinite&&o.currentSlide>n&&(o.currentSlide=n),o.slideCount<=o.options.slidesToShow&&(o.currentSlide=0),i=o.currentSlide,o.destroy(!0),t.extend(o,o.initials,{currentSlide:i}),o.init(),e||o.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,i,n,o=this,s=o.options.responsive||null;if("array"===t.type(s)&&s.length){for(e in o.respondTo=o.options.respondTo||"window",s)if(n=o.breakpoints.length-1,s.hasOwnProperty(e)){for(i=s[e].breakpoint;n>=0;)o.breakpoints[n]&&o.breakpoints[n]===i&&o.breakpoints.splice(n,1),n--;o.breakpoints.push(i),o.breakpointSettings[i]=s[e].settings}o.breakpoints.sort((function(t,e){return o.options.mobileFirst?t-e:e-t}))}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout((function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()}),50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,i){var n=this;if(t="boolean"==typeof t?!0===(e=t)?0:n.slideCount-1:!0===e?--t:t,n.slideCount<1||t<0||t>n.slideCount-1)return!1;n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},e.prototype.setCSS=function(t){var e,i,n=this,o={};!0===n.options.rtl&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",o[n.positionProp]=t,!1===n.transformsEnabled?n.$slideTrack.css(o):(o={},!1===n.cssTransitions?(o[n.animType]="translate("+e+", "+i+")",n.$slideTrack.css(o)):(o[n.animType]="translate3d("+e+", "+i+", 0px)",n.$slideTrack.css(o)))},e.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,i=this;i.$slides.each((function(n,o){e=i.slideWidth*n*-1,!0===i.options.rtl?t(o).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}
10):t(o).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})})),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,i,n,o,s,r=this,a=!1;if("object"===t.type(arguments[0])?(n=arguments[0],a=arguments[1],s="multiple"):"string"===t.type(arguments[0])&&(n=arguments[0],o=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)r.options[n]=o;else if("multiple"===s)t.each(n,(function(t,e){r.options[t]=e}));else if("responsive"===s)for(i in o)if("array"!==t.type(r.options.responsive))r.options.responsive=[o[i]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===o[i].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(o[i])}a&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},e.prototype.setSlideClasses=function(t){var e,i,n,o,s=this;if(i=s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),s.$slides.eq(t).addClass("slick-current"),!0===s.options.centerMode){var r=s.options.slidesToShow%2==0?1:0;e=Math.floor(s.options.slidesToShow/2),!0===s.options.infinite&&(t>=e&&t<=s.slideCount-1-e?s.$slides.slice(t-e+r,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=s.options.slidesToShow+t,i.slice(n-e+1+r,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-s.options.slidesToShow).addClass("slick-center"):t===s.slideCount-1&&i.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(t).addClass("slick-center")}else t>=0&&t<=s.slideCount-s.options.slidesToShow?s.$slides.slice(t,t+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=s.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(o=s.slideCount%s.options.slidesToShow,n=!0===s.options.infinite?s.options.slidesToShow+t:t,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-t<s.options.slidesToShow?i.slice(n-(s.options.slidesToShow-o),n+o).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==s.options.lazyLoad&&"anticipated"!==s.options.lazyLoad||s.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,n,o=this;if(!0===o.options.fade&&(o.options.centerMode=!1),!0===o.options.infinite&&!1===o.options.fade&&(i=null,o.slideCount>o.options.slidesToShow)){for(n=!0===o.options.centerMode?o.options.slidesToShow+1:o.options.slidesToShow,e=o.slideCount;e>o.slideCount-n;e-=1)i=e-1,t(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(e=0;e<n+o.slideCount;e+=1)i=e,t(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each((function(){t(this).attr("id","")}))}},e.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},e.prototype.selectHandler=function(e){var i=this,n=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),o=parseInt(n.attr("data-slick-index"));o||(o=0),i.slideCount<=i.options.slidesToShow?i.slideHandler(o,!1,!0):i.slideHandler(o)}
10,e.prototype.slideHandler=function(t,e,i){var n,o,s,r,a,l=null,c=this;if(e=e||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===t))if(!1===e&&c.asNavFor(t),n=t,l=c.getLeft(n),r=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?r:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(t<0||t>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(r,(function(){c.postSlide(n)})):c.postSlide(n));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(t<0||t>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(r,(function(){c.postSlide(n)})):c.postSlide(n));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),o=n<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+n:n>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:n-c.slideCount:n,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,o]),s=c.currentSlide,c.currentSlide=o,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(a=(a=c.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(s),c.fadeSlide(o,(function(){c.postSlide(o)}))):c.postSlide(o),void c.animateHeight();!0!==i?c.animateSlide(l,(function(){c.postSlide(o)})):c.postSlide(o)}},e.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,i,n,o=this;return t=o.touchObject.startX-o.touchObject.curX,e=o.touchObject.startY-o.touchObject.curY,i=Math.atan2(e,t),(n=Math.round(180*i/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?!1===o.options.rtl?"left":"right":n>=135&&n<=225?!1===o.options.rtl?"right":"left":!0===o.options.verticalSwiping?n>=35&&n<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,i,n,o,s,r,a=this;return s=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!a.dragging||a.scrolling||s&&1!==s.length)&&(e=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==s?s[0].pageX:t.clientX,a.touchObject.curY=void 0!==s?s[0].pageY:t.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&r>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=r),i=a.swipeDirection(),void 0!==t.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,t.preventDefault()),o=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(o=a.touchObject.curY>a.touchObject.startY?1:-1),n=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===i||a.currentSlide>=a.getDotCount()&&"left"===i)&&(n=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=e+n*o:a.swipeLeft=e+n*(a.$list.height()/a.listWidth)*o,!0===a.options.verticalSwiping&&(a.swipeLeft=e+n*o),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},e.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
10,e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,i,n=this,o=arguments[0],s=Array.prototype.slice.call(arguments,1),r=n.length;for(t=0;t<r;t++)if("object"==typeof o||void 0===o?n[t].slick=new e(n[t],o):i=n[t].slick[o].apply(n[t].slick,s),void 0!==i)return i;return n}}));var centerImage=function(t,e,i){var n=[];$(t).each((function(t){var o=new Image;o.src=$(this).attr("src"),n[t]=$(this),elementHeight=0,o.complete?(elementHeight=n[t].is(":visible")?n[t].height():o.height,elementHeight>e?n[t].css("max-height",e):n[t].css({"background-color":i,"padding-top":(e-elementHeight)/2,"padding-bottom":(e-elementHeight)/2})):o.onload=function(){elementHeight=n[t].is(":visible")?n[t].height():o.height,elementHeight>e?n[t].css("max-height",e):n[t].css({"background-color":i,"padding-top":(e-elementHeight)/2,"padding-bottom":(e-elementHeight)/2})}}))};function parseURLParams(t){var e={},i=t.indexOf("?")+1,n=t.indexOf("#")+1||t.length+1,o=t.slice(i,n-1);if(o===t||""===o)return e;for(var s=o.replace(/\+/g," ").split("&"),r=0;r<s.length;r++){var a=s[r].split("="),l=decodeURIComponent(a[0]),c=decodeURIComponent(a[1]);l in e||(e[l]=[]),e[l].push(2===a.length?c:null)}return e}jQuery.cookie=function(t,e,i){if(arguments.length>1&&"[object Object]"!==String(e)){if(i=jQuery.extend({},i),null==e&&(i.expires=-1),"number"==typeof i.expires){var n=i.expires,o=i.expires=new Date;o.setDate(o.getDate()+n)}return e=String(e),document.cookie=[encodeURIComponent(t),"=",i.raw?e:encodeURIComponent(e),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}var s,r=(i=e||{}).raw?function(t){return t}:decodeURIComponent;return(s=new RegExp("(?:^|; )"+encodeURIComponent(t)+"=([^;]*)").exec(document.cookie))?r(s[1]):null},function(t){"use strict";function e(t,e){var i=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(i>>16)<<16|65535&i}function i(t,i,n,o,s,r){return e(function(t,e){return t<<e|t>>>32-e}(e(e(i,t),e(o,r)),s),n)}function n(t,e,n,o,s,r,a){return i(e&n|~e&o,t,e,s,r,a)}function o(t,e,n,o,s,r,a){return i(e&o|n&~o,t,e,s,r,a)}function s(t,e,n,o,s,r,a){return i(e^n^o,t,e,s,r,a)}function r(t,e,n,o,s,r,a){return i(n^(e|~o),t,e,s,r,a)}function a(t,i){t[i>>5]|=128<<i%32,t[14+(i+64>>>9<<4)]=i;var a,l,c,d,u,p=1732584193,h=-271733879,_=-1732584194,m=271733878;for(a=0;a<t.length;a+=16)l=p,c=h,d=_,u=m,h=r(h=r(h=r(h=r(h=s(h=s(h=s(h=s(h=o(h=o(h=o(h=o(h=n(h=n(h=n(h=n(h,_=n(_,m=n(m,p=n(p,h,_,m,t[a],7,-680876936),h,_,t[a+1],12,-389564586),p,h,t[a+2],17,606105819),m,p,t[a+3],22,-1044525330),_=n(_,m=n(m,p=n(p,h,_,m,t[a+4],7,-176418897),h,_,t[a+5],12,1200080426),p,h,t[a+6],17,-1473231341),m,p,t[a+7],22,-45705983),_=n(_,m=n(m,p=n(p,h,_,m,t[a+8],7,1770035416),h,_,t[a+9],12,-1958414417),p,h,t[a+10],17,-42063),m,p,t[a+11],22,-1990404162),_=n(_,m=n(m,p=n(p,h,_,m,t[a+12],7,1804603682),h,_,t[a+13],12,-40341101),p,h,t[a+14],17,-1502002290),m,p,t[a+15],22,1236535329),_=o(_,m=o(m,p=o(p,h,_,m,t[a+1],5,-165796510),h,_,t[a+6],9,-1069501632),p,h,t[a+11],14,643717713),m,p,t[a],20,-373897302),_=o(_,m=o(m,p=o(p,h,_,m,t[a+5],5,-701558691),h,_,t[a+10],9,38016083),p,h,t[a+15],14,-660478335),m,p,t[a+4],20,-405537848),_=o(_,m=o(m,p=o(p,h,_,m,t[a+9],5,568446438),h,_,t[a+14],9,-1019803690),p,h,t[a+3],14,-187363961),m,p,t[a+8],20,1163531501),_=o(_,m=o(m,p=o(p,h,_,m,t[a+13],5,-1444681467),h,_,t[a+2],9,-51403784),p,h,t[a+7],14,1735328473),m,p,t[a+12],20,-1926607734),_=s(_,m=s(m,p=s(p,h,_,m,t[a+5],4,-378558),h,_,t[a+8],11,-2022574463),p,h,t[a+11],16,1839030562),m,p,t[a+14],23,-35309556),_=s(_,m=s(m,p=s(p,h,_,m,t[a+1],4,-1530992060),h,_,t[a+4],11,1272893353),p,h,t[a+7],16,-155497632),m,p,t[a+10],23,-1094730640),_=s(_,m=s(m,p=s(p,h,_,m,t[a+13],4,681279174),h,_,t[a],11,-358537222),p,h,t[a+3],16,-722521979),m,p,t[a+6],23,76029189),_=s(_,m=s(m,p=s(p,h,_,m,t[a+9],4,-640364487),h,_,t[a+12],11,-421815835),p,h,t[a+15],16,530742520),m,p,t[a+2],23,-995338651),_=r(_,m=r(m,p=r(p,h,_,m,t[a],6,-198630844),h,_,t[a+7],10,1126891415),p,h,t[a+14],15,-1416354905),m,p,t[a+5],21,-57434055),_=r(_,m=r(m,p=r(p,h,_,m,t[a+12],6,1700485571),h,_,t[a+3],10,-1894986606),p,h,t[a+10],15,-1051523),m,p,t[a+1],21,-2054922799),_=r(_,m=r(m,p=r(p,h,_,m,t[a+8],6,1873313359),h,_,t[a+15],10,-30611744),p,h,t[a+6],15,-1560198380),m,p,t[a+13],21,1309151649),_=r(_,m=r(m,p=r(p,h,_,m,t[a+4],6,-145523070),h,_,t[a+11],10,-1120210379),p,h,t[a+2],15,718787259),m,p,t[a+9],21,-343485551),p=e(p,l),h=e(h,c),_=e(_,d),m=e(m,u);return[p,h,_,m]}function l(t){var e,i="",n=32*t.length;for(e=0;e<n;e+=8)i+=String.fromCharCode(t[e>>5]>>>e%32&255);return i}function c(t){var e,i=[];for(i[(t.length>>2)-1]=void 0,e=0;e<i.length;e+=1)i[e]=0;var n=8*t.length;for(e=0;e<n;e+=8)i[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return i}function d(t){var e,i,n="";for(i=0;i<t.length;i+=1)e=t.charCodeAt(i),n+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return n}function u(t){return unescape(encodeURIComponent(t))}function p(t){return function(t){return l(a(c(t),8*t.length))}(u(t))}function h(t,e){return function(t,e){var i,n,o=c(t),s=[],r=[];for(s[15]=r[15]=void 0,o.length>16&&(o=a(o,8*t.length)),i=0;i<16;i+=1)s[i]=909522486^o[i],r[i]=1549556828^o[i];return n=a(s.concat(c(e)),512+8*e.length),l(a(r.concat(n),640))}(u(t),u(e))}function _(t,e,i){return e?i?h(e,t):function(t,e){return d(h(t,e))}(e,t):i?p(t):function(t){return d(p(t))}(t)}"function"==typeof define&&define.amd?define((function(){return _})):"object"==typeof module&&module.exports?module.exports=_:t.md5=_}(window),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e():"function"==typeof define&&define.amd?define(e):e()}(0,(function(){"use strict";function t(t){var e=this.constructor;return this.then((function(i){return e.resolve(t()).then((function(){return i}))}),(function(i){return e.resolve(t()).then((function(){return e.reject(i)}))}))}function e(){}function i(t){if(!(this instanceof i))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],a(t,this)}function n(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,i._immediateFn((function(){var i=1===t._state?e.onFulfilled:e.onRejected;if(null!==i){var n;try{n=i(t._value)}catch(t){return void s(e.promise,t)}o(e.promise,n)}else(1===t._state?o:s)(e.promise,t._value)}))):t._deferreds.push(e)}function o(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void r(t);if("function"==typeof n)return void a(function(t,e){return function(){t.apply(e,arguments)}}(n,e),t)}t._state=1,t._value=e,r(t)}catch(e){s(t,e)}}function s(t,e){t._state=2,t._value=e,r(t)}function r(t){2===t._state&&0===t._deferreds.length&&i._immediateFn((function(){t._handled||i._unhandledRejectionFn(t._value)}));for(var e=0,o=t._deferreds.length;o>e;e++)n(t,t._deferreds[e]);t._deferreds=null}function a(t,e){var i=!1;try{t((function(t){i||(i=!0,o(e,t))}),(function(t){i||(i=!0,s(e,t))}))}catch(t){if(i)return;i=!0,s(e,t)}}var l=setTimeout;i.prototype.catch=function(t){return this.then(null,t)},i.prototype.then=function(t,i){var o=new this.constructor(e);
10return n(this,new function(t,e,i){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=i}(t,i,o)),o},i.prototype.finally=t,i.all=function(t){return new i((function(e,i){function n(t,r){try{if(r&&("object"==typeof r||"function"==typeof r)){var a=r.then;if("function"==typeof a)return void a.call(r,(function(e){n(t,e)}),i)}o[t]=r,0==--s&&e(o)}catch(t){i(t)}}if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var o=Array.prototype.slice.call(t);if(0===o.length)return e([]);for(var s=o.length,r=0;o.length>r;r++)n(r,o[r])}))},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i((function(e){e(t)}))},i.reject=function(t){return new i((function(e,i){i(t)}))},i.race=function(t){return new i((function(e,i){for(var n=0,o=t.length;o>n;n++)t[n].then(e,i)}))},i._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){l(t,0)},i._unhandledRejectionFn=function(t){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var c=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"Promise"in c?c.Promise.prototype.finally||(c.Promise.prototype.finally=t):c.Promise=i}));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(t){},this.externalFormatFn=!1,this.options.endGetAjaxProductDataFunction=function(){},this.options.clearXMLGetAjaxProductDataFunction=function(t){},this.options.beginGetAjaxProductDataFunction=function(){},this.options.endSetCurrentSizeFunction=function(){},this.options.ajaxAddFunction=function(t){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 t=!0;this.isset=function(t){return void 0!==window[t]},this.getAttr=function(t,e){return t.is("["+e+"]")?t.attr(e):""},this.getData=function(t){try{return t}catch(t){}},this.getIndex=function(t,e){var i=0;for(var n in t){if(e===i)return n;i++}return null}
10,this.formatPrice=function(t,e,i,n,o){return currency=i||this.currentSizeObj.currency,o=!!o,e&&(this.configObj.rebateNumber&&o&&(t=this.configObj.rebateNumber.price),t*=this.configObj.valueOfNumberInput),n?t:this.externalFormatFn?this.options.formatPrice({price:t,currency:currency}):this.options.curr_before_price?'<span class="projector_price"><span class="projector_currency">'+currency+"</span>"+(1*t).toFixed(2)+"</span>":'<span class="projector_price">'+(1*t).toFixed(2)+'<span class="projector_currency">'+currency+"</span></span>"},this.status_description=function(){if($("#"+this.prefix+"status_gfx").hide(),$("#"+this.prefix+"status").addClass("--status-hide"),this.currentSizeObj.amount_mm&&this.currentSizeObj.amount_mo&&""!=this.txt.ilosc_mm){var t=this.currentSizeObj.amount_mm,e=this.currentSizeObj.amount_mo,i=t+" "+(t>1?this.currentSizeObj.unit_plural:this.currentSizeObj.unit),n=e+" "+(e>1?this.currentSizeObj.unit_plural:this.currentSizeObj.unit),o=this.txt.ilosc_mm.format(i),s=this.txt.ilosc_mo.format(n);if(t>0&&-1==e)return $("#"+this.prefix+"status_description").html('<div id="#'+this.prefix+'amount_mm">'+o+'</div><div id="#'+this.prefix+'amount_mo">'+this.txt.ilosc_mo_inf+"</div>"),!1;if(t>0&&e>0)return $("#"+this.prefix+"status_description").html('<div id="#'+this.prefix+'amount_mm">'+o+'</div><div id="#'+this.prefix+'amount_mo">'+s+"</div>"),!1}this.currentSizeObj.availability.delivery_date&&"disable"==this.currentSizeObj.availability.status?$("#"+this.prefix+"status_description").html(this.currentSizeObj.availability.status_description+" <span>"+this.currentSizeObj.availability.delivery_date+"</span>"):this.currentSizeObj.availability.status_description?($("#"+this.prefix+"status_description").html(this.currentSizeObj.availability.status_description),$("#"+this.prefix+"status").removeClass("--status-hide --phone-disable")):"disable"==this.currentSizeObj.availability.status?($("#"+this.prefix+"status").addClass("--status-hide --phone-disable"),$("#"+this.prefix+"status_description_wrapper").hide()):($("#"+this.prefix+"status").removeClass("--status-hide --phone-disable"),$("#"+this.prefix+"status_description_wrapper").hide()),this.currentSizeObj.availability.status_gfx&&($("#"+this.prefix+"status_gfx").show().attr("src",this.currentSizeObj.availability.status_gfx),$("#"+this.prefix+"status").removeClass("--status-hide"))},this.sellBy=function(t,e,i){if("disable"==this.currentSizeObj.availability.status)return!this.onDisableAlert||"product_bundle"==this.currentSizeObj.product_type&&1==this.firstRun||this.alert(this.txt.niedostepny),t;if(t=parseFloat(t),e=parseFloat(e),i=parseFloat(i),!$.isNumeric(i)||i<=t){if(jQuery.isEmptyObject(product_data.order_quantity_range))return t.toFixed(e);t=t.toFixed(e)}number=Math.floor(i/t)*t,number=(i/t*t-number).toFixed(e+1)>0?(1*number+t).toFixed(e):number.toFixed(e),number=parseFloat(number);var n=this.currentSizeObj.amount,o=t;if(!jQuery.isEmptyObject(product_data.order_quantity_range)){var s=product_data.order_quantity_range;if(s.max_quantity_per_order){var r=parseFloat(s.max_quantity_per_order);n=n>r||-1==n?r:n}if(s.max_size_quantity_per_order){var a=parseFloat(s.max_size_quantity_per_order);n=n>a||-1==n?a:n}if(s.min_quantity_per_order){var l=parseFloat(s.min_quantity_per_order);o=l>o?l:o}if(s.min_size_quantity_per_order){var c=parseFloat(s.min_size_quantity_per_order);o=c>o?c:o}if(s.minimum_quantity_subscription){var d=parseFloat(s.minimum_quantity_subscription);o=d>o?d:o}}if(o&&number<o){if(this.isStarted){const i=(Math.ceil(parseFloat(o)/t)*t).toFixed(e)>1?this.currentSizeObj.unit_plural:this.currentSizeObj.unit;this.alert(this.txt.minimalnie+" "+(Math.ceil(parseFloat(o)/t)*t).toFixed(e)+" "+i)}return this.isStarted=!0,(Math.ceil(parseFloat(o)/t)*t).toFixed(e)}if(number>n&&-1!=n){const i=(Math.floor(parseFloat(n)/t)*t).toFixed(e)>1?this.currentSizeObj.unit_plural:this.currentSizeObj.unit;return this.alert(this.txt.maksymalnie+" "+(Math.floor(parseFloat(n)/t)*t).toFixed(e)+" "+i),this.isStarted=!0,(Math.floor(parseFloat(n)/t)*t).toFixed(e)}return this.isStarted=!0,number},this.projectorInit=function(t){if(!this.isset("product_data"))return this.errorMsg.push("no data"),!1;this.curr_class=$("#"+this.prefix+"form").attr("class"),t.contenersPrefix&&(this.options.contenersPrefix=t.contenersPrefix,this.prefix=t.contenersPrefix),"undefined"!==t.onDisableAlert&&(this.onDisableAlert=t.onDisableAlert),t.beginStartFunction&&(this.options.beginStartFunction=t.beginStartFunction),t.formatPrice&&(this.options.formatPrice=t.formatPrice,this.externalFormatFn=!0),t.endInitFunction&&(this.options.endInitFunction=t.endInitFunction),t.endStartFunction&&(this.options.endStartFunction=t.endStartFunction),t.endShippingFunction&&(this.options.endShippingFunction=t.endShippingFunction),t.endSetCurrentSizeFunction&&(this.options.endSetCurrentSizeFunction=t.endSetCurrentSizeFunction),t.ajaxAddFunction&&(this.options.ajaxAddFunction=t.ajaxAddFunction),t.clearXMLGetAjaxProductDataFunction&&(this.options.clearXMLGetAjaxProductDataFunction=t.clearXMLGetAjaxProductDataFunction),t.endGetAjaxProductDataFunction&&(this.options.endGetAjaxProductDataFunction=t.endGetAjaxProductDataFunction),t.beginGetAjaxProductDataFunction&&(this.options.beginGetAjaxProductDataFunction=t.beginGetAjaxProductDataFunction),t.hide_unit&&(this.options.hide_unit=t.hide_unit),t.curr_before_price&&(this.options.curr_before_price=t.curr_before_price),t.contact_link&&(this.options.contact_link=t.contact_link),t.hoursBeforeOrderBy&&(this.options.hoursBeforeOrderBy=t.hoursBeforeOrderBy),t.getShippingTimeFunction&&t.productParam
10sFunction&&(this.options.getShippingTimeFunction=t.getShippingTimeFunction,this.options.productParamsFunction=t.productParamsFunction),t.friendly_shipping_format&&(this.options.friendly_shipping_format=t.friendly_shipping_format),product_data.currency&&(this.currency=product_data.currency),this.txt.amount=$("#"+this.prefix+"amount").html(),product_data.sizes&&product_data.sizes.onesize&&(this.setCurrentSizeObj(this.getIndex(product_data.sizes,0)),this.start()),this.options.endInitFunction()},this.variety=function(t,e,i){return 1==t?e:i},this.formatDate=t=>t.slice(0,10).split("-").reverse().slice(0,-1).join("."),this.shippingTimeBuffer=[],this.timeoutHandle="",this.updateShippingTime=async()=>{const t=await this.options.getShippingTimeFunction(this.options.productParamsFunction());if(t&&t.data&&t.data.shipping&&t.data.shipping.shippingTime){const e=t.data.shipping.shippingTime;this.currentSizeObj.shipping_time={},this.currentSizeObj.shipping_time.unknown_time=e.unknownTime,this.currentSizeObj.shipping_time.today=`${e.shippingTime.today}`,this.currentSizeObj.shipping_time.today_shipment_deadline=e.todayShipmentDeadline,this.currentSizeObj.shipping_time.days=e.shippingTime.time.days,this.currentSizeObj.shipping_time.hours=e.shippingTime.time.hours,this.currentSizeObj.shipping_time.minutes=e.shippingTime.time.minutes,this.currentSizeObj.shipping_time.week_day=e.shippingTime.weekDay,this.currentSizeObj.shipping_time.week_amount=e.shippingTime.weekAmount,this.currentSizeObj.shipping_time.time=e.time}return t},this.shippingTime=async function(t){result=[];const e=md5(this.options.productParamsFunction()),i=this.shippingTimeBuffer.filter((t=>t.key===e));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 t=this.currentSizeObj.shipping_time;let i=!1;if(t.today_shipment_deadline){const e=t.today_shipment_deadline.split(":"),n=new Date;n.setHours(e[0],e[1],e[2]);const o=new Date;o.setHours(o.getHours()+this.options.hoursBeforeOrderBy),i=n.getTime()-o.getTime()<0}if(t.today_shipment_deadline&&i){result[0]=this.txt.order_by,result[1]=t.today_shipment_deadline.slice(0,-3)+this.txt.it_will_ship_today;const i={key:e,value:result,response:n};return this.shippingTimeBuffer.push(i),i}if("true"==t.today){result[0]=this.txt.wysylka,result[1]=this.options.friendly_shipping_format[0];const t={key:e,value:result,response:n};return this.shippingTimeBuffer.push(t),t}if(0===+t.days||1===+t.days&&0===+t.hours&&0===+t.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 t={key:e,value:result,response:n};return this.shippingTimeBuffer.push(t),t}if(+t.days>29&&this.txt.shipmentIn){result[0]=this.txt.shipmentIn,result[1]=+t.days+this.txt.days;const i={key:e,value:result,response:n};return this.shippingTimeBuffer.push(i),i}result[0]=this.txt.wysylka,result[1]=this.options.friendly_shipping_format[+t.week_day],+t.week_amount>0&&(result[1]+=`(${this.formatDate(t.time)})`)}const o={key:e,value:result,response:n};return this.shippingTimeBuffer.push(o),o},this.start=function(){if(this.options.beginStartFunction(),window.projectorv3_disable_ajax=projectorv3_disable_ajax||1,!this.currentSizeObj.type)return!1;var e=this;const n=document.getElementById("projector_form")?.getAttribute("data-subscription");var o=async function(){(product_data.sizes.uniw||product_data.sizes.onesize)&&e.setCurrentSizeObj("uniw"),"true"===n?e.currentSizeObj.price=product_data.sizes[e.currentSizeObj.type].price_subscription:"false"===n&&(e.currentSizeObj.price=product_data.sizes[e.currentSizeObj.type].price_normal),$("#"+e.prefix+"form").attr("class",e.curr_class+" "+e.currentSizeObj.availability.status),e.configObj.displaySize="onesize"!=e.currentSizeObj.type,e.currentSizeObj.availability&&(e.configObj.disableNumberInput="disable"==e.currentSizeObj.availability.status),e.configObj.disableBuyButton=!1,"disable"!=e.currentSizeObj.availability.status&&"true"!=e.currentSizeObj.phone_price||(e.configObj.disableBuyButton=!0),e.configObj.displayBuySection=!!e.currentSizeObj.gratis;var o=e.currentSizeObj.unit_sellby+"";if($("#"+e.options.contenersPrefix+"number").size()&&(o=$("#"+e.options.contenersPrefix+"number").val()),e.configObj.valueOfNumberInput=e.sellBy(e.currentSizeObj.unit_sellby,e.currentSizeObj.unit_precision,o.replace(",",".")),e.currentSizeObj.rebateNumber)for(i in e.configObj.rabatIndex=-1,e.configObj.rabatIndex_last=-1,e.currentSizeObj.rebateNumber){var s=e.currentSizeObj.rebateNumber[i].threshold_end?e.currentSizeObj.rebateNumber[i].threshold_end:e.configObj.valueOfNumberInput;if(parseFloat(e.configObj.valueOfNumberInput)>=parseFloat(e.currentSizeObj.rebateNumber[i].threshold)&&parseFloat(e.configObj.valueOfNumberInput)<=parseFloat(s)){if
10(e.configObj.rabatIndex=i,e.configObj.rabatIndex_last=i,!e.currentSizeObj.rebateNumber[1*i+1]||parseFloat(e.configObj.valueOfNumberInput)<parseFloat(e.currentSizeObj.rebateNumber[1*i+1].threshold))break}else parseFloat(e.configObj.valueOfNumberInput)>=parseFloat(e.currentSizeObj.rebateNumber[i].threshold)&&(e.configObj.rabatIndex_last=i)}if(e.configObj.rabatIndex&&-1!=e.configObj.rabatIndex?(e.configObj.rebateNumber=e.currentSizeObj.rebateNumber[e.configObj.rabatIndex],e.configObj.rebateNumberNext=e.configObj.rebateNumber):e.configObj.rebateNumber=!1,e.currentSizeObj.rebateNumber&&e.currentSizeObj.rebateNumber[1*e.configObj.rabatIndex+1]&&(e.configObj.rebateNumberNext=e.currentSizeObj.rebateNumber[1*e.configObj.rabatIndex+1]),e.configObj.rabatIndex_last&&e.currentSizeObj.rebateNumber[1*e.configObj.rabatIndex_last+1]&&(e.configObj.rebateNumberNext=e.currentSizeObj.rebateNumber[1*e.configObj.rabatIndex_last+1]),"onesize"==e.currentSizeObj.type||"uniw"==e.currentSizeObj.type?$("#"+e.prefix+"sizes_cont").hide():$("#"+e.prefix+"sizes_cont").show(),e.status_description(),$("#"+e.prefix+"amount").size()){$("#"+e.prefix+"amount").show();var r=e.currentSizeObj.amount;0==r?$("#"+e.prefix+"amount").hide():-1==r&&(r=e.txt.infinity,""==e.txt.infinity&&$("#"+e.prefix+"amount").hide()),1==r?r=r+" "+e.currentSizeObj.unit:r>1&&(r=r+" "+e.currentSizeObj.unit_plural),$("#"+e.prefix+"amount").html(e.txt.amount.format(r))}if(e.currentSizeObj.product_type&&"product_virtual"==e.currentSizeObj.product_type&&$("#"+e.prefix+"amount").hide(),"y"==e.currentSizeObj.availability.visible&&e.currentSizeObj&&e.currentSizeObj.availability.status_description?($("#"+e.prefix+"status_description_wrapper").show(),e.currentSizeObj.availability.status_gfx&&$("#"+e.prefix+"status_gfx").show(),$("#"+e.prefix+"status").removeClass("--status-hide")):($("#"+e.prefix+"status_description_wrapper").hide(),$("#"+e.prefix+"status_gfx").hide(),$("#"+e.prefix+"status").addClass("--status-hide")),"true"==e.currentSizeObj.availability.delivery_days_undefined&&"true"==e.currentSizeObj.delivery.undefined?$("#"+e.prefix+"delivery_wrapper").hide():$("#"+e.prefix+"delivery_wrapper").show(),$("#"+e.prefix+"delivery_days").hide(),projectorv3_disable_ajax&&0==projectorv3_disable_ajax){if($("#"+e.prefix+"delivery_days").hide(),e.currentSizeObj&&"true"!=e.currentSizeObj.availability.delivery_days_undefined){$("#"+e.prefix+"status").addClass("--loading --time-show");const t=await e.shippingTime();t.value.length?($("#"+e.prefix+"delivery_label").show().html(t.value[0]),$("#"+e.prefix+"delivery_days").show().html(t.value[1])):$("#"+e.prefix+"status").removeClass("--time-show"),$("#"+e.prefix+"status_wrapper").css("min-height","0px").css("min-height",`${$("#"+e.prefix+"status_wrapper").height()}px`),$("#"+e.prefix+"status").removeClass("--loading"),e.options.endShippingFunction(t.response)}}else if("true"!=e.currentSizeObj.availability.delivery_days_undefined){var a=e;clearTimeout(a.timeHandle),$("#"+a.prefix+"delivery_days").parents(".product_section").addClass("loading"),a.timeHandle=setTimeout((async function(){$("#"+e.prefix+"status").addClass("--loading --time-show");const t=await e.shippingTime();t.value.length?($("#"+e.prefix+"delivery_label").show().html(t.value[0]),$("#"+e.prefix+"delivery_days").show().html(t.value[1])):$("#"+e.prefix+"status").removeClass("--time-show"),$("#"+e.prefix+"status_wrapper").css("min-height","0px").css("min-height",`${$("#"+e.prefix+"status_wrapper").height()}px`),$("#"+e.prefix+"status").removeClass("--loading"),e.options.endShippingFunction(t.response)}),50)}$("#"+e.prefix+"shipping_unknown").hide(),e.currentSizeObj.product_type&&("product_virtual"==e.currentSizeObj.product_type||"product_service"==e.currentSizeObj.product_type)||"disable"==e.currentSizeObj.availability.status?($("#"+e.prefix+"shipping_info").hide(),$("#"+e.prefix+"shipping_dialog").hide(),e.currentSizeObj.availability.status_description?$("#"+e.prefix+"status_description").show():$("#"+e.prefix+"status_description").hide()):($("#"+e.prefix+"shipping_info").show(),$("#"+e.prefix+"shipping_dialog").show(),$("#"+e.prefix+"status_description").hide()),e.currentSizeObj.delay_time&&"true"==e.currentSizeObj.delay_time.unknown_delivery_time&&"order"==e.currentSizeObj.availability.status?($("#"+e.prefix+"shipping_info").hide(),$("#"+e.prefix+"shipping_dialog").hide(),$("#"+e.prefix+"status_description").hide(),$("#"+e.prefix+"status_wrapper").hide(),$("#"+e.prefix+"status").addClass("--unknown-show"),$("#"+e.prefix+"shipping_unknown").show()):($("#"+e.prefix+"status").removeClass("--unknown-show"),$("#"+e.prefix+"status_wrapper").show()),0==e.currentSizeObj.delivery.shipping?$("#"+e.prefix+"shipping").html(e.txt.gratis):$("#"+e.prefix+"shipping").html(e.txt.koszt_od+e.formatPrice(e.currentSizeObj.delivery.shipping,t)),"true"==e.currentSizeObj.delivery.undefined?$("#"+e.prefix+"shipping").hide():$("#"+e.prefix+"shipping").show(),e.currentSizeObj.price.advanceprice?($("#"+e.prefix+"advanceprice_wrapper").show(),$("#"+e.prefix+"advanceprice").html(e.formatPrice(e.currentSizeObj.price.advanceprice,t))):$("#"+e.prefix+"advanceprice_wrapper").hide(),$("#"+e.prefix+"sellbyprice_wrapper").show(),$("#"+e.prefix+"sellbyprice").html(e.nettoPrice?e.currentSizeObj.price.price_net_formatted:e.currentSizeObj.price.price_formatted),$("#"+e.prefix+"prices_wrapper").hide(),e.currentSizeObj.price.srp&&e.currentSizeObj.price.srp>0&&e.currentSizeObj.price.srp!=e.currentSizeObj.price.value?($("#"+e.prefix+"price_srp_wrapper").show(),$("#"+e.prefix+"prices_wrapper").show(),$("#"+e.prefix+"price_srp").html(e.formatPrice(e.nettoPrice?e.currentSizeObj.price.srp_net:e.currentSizeObj.price.srp,t))):$("#"+e.prefix+"price_srp_wrapper").hide(),e.currentSizeObj.price.price_net&&e.currentSizeObj.price.price_net>0?($("#"+e.prefix+"price_net_wrapper").show(),$("#"+e.prefix+"price_net").show(),$("#"+e.prefix+"price_net").html(e.formatPrice(e.nettoPrice?e.currentSizeObj.price.value:e.currentSizeObj.price.price_net,t))):($("#"+e.prefix+"price_net_wrapper").hide(),$("#"+e.prefix+"price_net").hide());let l="";if("true"==e.currentSizeObj.phone_price)e.currentSizeObj.price.points>0?($("#"+e.prefix+"price_value").hide(),$("#"+e.prefix+"prices_wrapper").show().addClass("--only-points")):($("#"+e.prefix+"price_value").show(),$("#"+e.prefix+"prices_wrapper").show().removeClass("--only-points"),e.currentSizeObj.availability.status_gfx_tel&&""!=e.currentSizeObj.availability.status_gfx_tel?$("#"+e.prefix+"price_value").html('<a class="projector_prices__contact" target="_blank" href="'+e.options.contact_link+'"><img src="'+e.currentSizeObj.availability.status_gfx_tel+'"/><span>'+e.currentSizeObj.availability.status_description_tel+"</span></a>"):$("#"+e.prefix+"price_value").html('<a class="projector_prices__contact" target="_blank" href="'+e.options.contact_link+'">'+e.currentSizeObj.availability.status_description_tel+"</a>"));else if($("#"+e.prefix+"prices_wrapper").show().removeClass("--only-points"),$("#"+e.prefix+"price_value").show(),e.currentSizeObj.price.rebateNumber){const t=e.configObj.valueOfNumberInput;if(e.currentSizeObj.price.rebateNumber.items.includes(null))+t>=+e.currentSizeObj.price.rebateNumber.nextleft?($("#"+e.prefix+"price_value").html(e.formatPrice(e.nettoPrice?e.currentSizeObj.price.rebateNumber.nextprice_net:e.currentSizeObj.price.rebateNumber.nextprice,!0,!1,!1)),l=e.nettoPrice?e.currentSizeObj.price.rebateNumber.nextprice_net:e.currentSizeObj.price.rebateNumber.nextprice,e.rebateThreshold=e.currentSizeObj.price.rebateNumber.nextthreshold):($("#"+e.prefix+"price_value").html(e.formatPrice(e.nettoPrice?e.currentSizeObj.price.price_net:e.currentSizeObj.price.value,!0,!1,!1)),e.rebateThreshold=!1);else{const i=[...e.currentSizeObj.price.rebateNumber.items].reverse().find((e=>t>=+e.left));i?($("#"+e.prefix+"price_value").html(e.formatPrice(e.nettoPrice?i.price_net:i.price,!0,!1,!1)),l=e.nettoPrice?i.price_net:i.price,e.rebateThreshold=i.threshold):($("#"+e.prefix+"price_value").html(e.formatPrice(e.nettoPrice?e.currentSizeObj.price.price_net:e.currentSizeObj.price.value,!0,!1,!1)),e.rebateThreshold=!1)}}else $("#"+e.prefix+"price_value").html(e.formatPrice(e.nettoPrice?e.currentSizeObj.price.price_net:e.currentSizeObj.price.value,!0,!1,!1));e.currentSizeObj.price.maxprice?e.currentSizeObj.price.maxprice>0?($("#"+e.prefix+"price_maxprice").show(),$("#"+e.prefix+"price_maxprice").html(e.formatPrice(e.nettoPrice?e.currentSizeObj.price.maxprice_net:e.currentSizeObj.price.maxprice,t))):$("#"+e.prefix+"price_maxprice").hide():""!=l?(e.currentSizeObj.price.maxprice=e.currentSizeObj.price.value,e.currentSizeObj.price.maxprice_net=e.currentSizeObj.price.price_net,e.currentSizeObj.price.maxprice>0?($("#"+e.prefix+"price_maxprice").show(),$("#"+e.prefix+"price_maxprice").html(e.formatPrice(e.nettoPrice?e.currentSizeObj.price.maxprice_net:e.currentSizeObj.price.maxprice,t))):$("#"+e.prefix+"price_maxprice").hide()):$("#"+e.prefix+"price_maxprice").hide(),e.currentSizeObj.price.omnibus_price&&$("#"+e.prefix+"omnibus_price_value").html(e.formatPrice(e.nettoPrice?e.currentSizeObj.price.omnibus_price_net:e.currentSizeObj.price.omnibus_price,t)),e.options.hide_unit?$("#"+e.prefix+"price_unit_sellby, #"+e.prefix+"price_unit").hide():1==e.configObj.valueOfNumberInput?($("#"+e.prefix+"price_unit_sellby").hide().html(e.configObj.valueOfNumberInput),$("#"+e.prefix+"price_unit").html(e.currentSizeObj.unit)):($("#"+e.prefix+"price_unit_sellby").show().html(e.configObj.valueOfNumberInput),$("#"+e.prefix+"price_unit").html(e.currentSizeObj.unit_plural?e.currentSizeObj.unit_plural:e.currentSizeObj.unit)),e.currentSizeObj.bundle_price||e.currentSizeObj.price.yousave_percent?$("#"+e.prefix+"yousave_bundle_wrapper").show():$("#"+e.prefix+"yousave_bundle_wrapper").hide(),yousaveTmp=e.nettoPrice?e.currentSizeObj.price.yousave_net:e.currentSizeObj.price.yousave,yousave_percentTmp=e.currentSizeObj.price.yousave_percent,""!=l&&(yousaveTmp=e.nettoPrice?+e.currentSizeObj.price.maxprice_net-+l:+e.currentSizeObj.price.maxprice-+l,yousave_percentTmp=(100*+yousaveTmp/(e.nettoPrice?+e.currentSizeObj.price.maxprice_net:+e.currentSizeObj.price.maxprice)).toFixed()),0===+yousave_percentTmp&&(yousave_percentTmp=(+yousaveTmp/(e.nettoPrice?+e.currentSizeObj.price.price_net:+e.currentSizeObj.price.value)*100).toFixed(1)),"true"!=e.currentSizeObj.phone_price&&e.currentSizeObj.bundle_price&&e.currentSizeObj.bundle_price.amount_diff_gross>
100?$("#"+e.prefix+"price_yousave").show().html(e.txt.oszczedzasz+e.currentSizeObj.bundle_price.percent_diff+e.txt.taniej+e.formatPrice(e.nettoPrice?e.currentSizeObj.bundle_price.amount_diff_net:e.currentSizeObj.bundle_price.amount_diff_gross,t)+e.txt.wzestawie):"true"!=e.currentSizeObj.phone_price&&yousaveTmp?$("#"+e.prefix+"price_yousave").show().html(e.txt.oszczedzasz+yousave_percentTmp+e.txt.taniej+e.formatPrice(yousaveTmp,t)+e.txt.nawias_end):$("#"+e.prefix+"price_yousave").hide(),$("#"+e.prefix+"price_points_wrapper").hide(),e.currentSizeObj.price.points>0&&($("#"+e.prefix+"price_points").show().html(e.formatPrice(e.currentSizeObj.price.points,t,e.txt.pkt,!0).toFixed(2)+e.txt.pkt),$("#"+e.prefix+"points_wrapper").show(),$("#"+e.prefix+"price_points_wrapper").show()),e.currentSizeObj.price.points_recive>0?($("#"+e.prefix+"points_wrapper").show(),$("#"+e.prefix+"points_recive_points").show().html(e.formatPrice(e.currentSizeObj.price.points_recive,t,e.txt.pkt,!0).toFixed(2)+e.txt.pkt),$("#"+e.prefix+"price_points_recive_wrapper").show()):$("#"+e.prefix+"price_points_recive_wrapper").hide(),e.currentSizeObj.for_points,$("#"+e.prefix+"tell_availability").hide(),$("#"+e.prefix+"tell_availability").find("input").prop("disabled",!0);var c=e;if(e.configObj.addBasketFnBtn)$("#"+e.prefix+"button_basket").off("click"),$("#"+e.prefix+"button_basket").on("click",(function(){return c.configObj.addBasketFnBtn(),!1})).removeClass("disabled");else if(e.configObj.disableBuyButtonTXT){var d=e.configObj.disableBuyButtonTXT;$("#"+e.prefix+"button_basket").on("click",(function(){return classObj.alert(d),!1})).addClass("disabled"),$("#"+e.prefix+"number").prop("disabled",!0)}else"disable"==e.currentSizeObj.availability.status?($("#"+e.prefix+"price_points_wrapper").hide(),$("#"+e.prefix+"button_basket").on("click",(function(){return classObj.alert(classObj.txt.niedostepny),!1})).addClass("disabled"),$("#"+e.prefix+"number").prop("disabled",!0),$("#"+e.prefix+"tell_availability").show(),$("#"+e.prefix+"tell_availability").find("input").prop("disabled",!1)):"true"==e.currentSizeObj.phone_price&&e.currentSizeObj.price.points>0?($("#"+e.prefix+"button_basket").on("click",(function(){return classObj.alert(classObj.txt.tylko_punkty),!1})).addClass("disabled"),$("#"+e.prefix+"number").prop("disabled",!0)):"true"==e.currentSizeObj.phone_price?($("#"+e.prefix+"number").prop("disabled",!1),$("#"+e.prefix+"button_basket").on("click",(function(){return classObj.alert(classObj.txt.tylkotel),!1})).addClass("disabled"),$("#"+e.prefix+"number").prop("disabled",!0),$("#"+e.prefix+"form").addClass("--phone")):($("#"+e.prefix+"button_basket").off("click").removeClass("disabled"),$("#"+e.prefix+"number").prop("disabled",!1),$("#"+e.prefix+"form").removeClass("--phone"));return e.currentSizeObj.gratis&&($("#"+e.prefix+"buy_section").hide(),$("#"+e.prefix+"price_points_wrapper").hide()),e.currentSizeObj.price.basket_enable&&"y"==e.currentSizeObj.price.basket_enable&&"true"==e.currentSizeObj.phone_price&&($("#"+e.prefix+"button_basket").off("click").removeClass("disabled"),$("#"+e.prefix+"number").prop("disabled",!1),$("#"+e.prefix+"price_value").html('<span class="'+e.prefix+'_price_gratis">'+e.txt.gratis_produkt+"</span>")),$("#"+e.options.contenersPrefix+"number").val(e.configObj.valueOfNumberInput),$("#"+e.options.contenersPrefix+"buy_section .f-dropdown-button").text(e.configObj.valueOfNumberInput),e.configObj.rebateNumberNext&&($("#"+e.prefix+"product_rebatenumber_value").text((e.configObj.rebateNumberNext.value+e.txt.proc).replace(/\.00/gi,"")),$("#"+e.prefix+"product_rebatenumber_threshold").text(e.configObj.rebateNumberNext.threshold.replace(/\.00/gi,""))),e.firstRun=!1,e.options.endStartFunction(),!0};product_data.sizes[e.currentSizeObj.type].availability?"true"!==n||product_data.sizes[e.currentSizeObj.type].price_subscription?"false"!==n||product_data.sizes[e.currentSizeObj.type].price_normal?o():$.getJSON("/ajax/projector.php?action=get&product="+product_data.product_id+"&size="+e.currentSizeObj.type+"&get=sizeprices",(function(t){product_data.sizes[e.currentSizeObj.type].price=t.sizeprices,product_data.sizes[e.currentSizeObj.type].price_normal=t.sizeprices,o()})):$.getJSON("/ajax/projector.php?action=get&product="+product_data.product_id+"&size="+e.currentSizeObj.type+"&get=sizeprices&subscription=1",(function(t){product_data.sizes[e.currentSizeObj.type].price=t.sizeprices,product_data.sizes[e.currentSizeObj.type].price_subscription=t.sizeprices,o()})):product_data.sizes&&("product_bundle"!=product_data.product_type?$.getJSON("/ajax/projector.php?action=get&product="+product_data.product_id+"&size="+e.currentSizeObj.type+"&get=sizeavailability,sizedelivery,sizeprices"+("true"===n?"&subscription=1":""),(function(t){product_data.sizes[e.currentSizeObj.type].availability=t.sizeavailability,product_data.sizes[e.currentSizeObj.type].delivery=t.sizedelivery,product_data.sizes[e.currentSizeObj.type].price=t.sizeprices,product_data.sizes[e.currentSizeObj.type].delay_time=t.sizeavailability.delay_time,"true"===n?product_data.sizes[e.currentSizeObj.type].price_subscription=t.sizeprices:product_data.sizes[e.currentSizeObj.type].price_normal=t.sizeprices,o()})):"product_bundle"==product_data.product_type&&app_shop.fn.update_bundle&&app_shop.fn.update_bundle())},this.liczProcent=function(t,e){return(t=parseFloat(t))-t*((e=parseFloat(e))/100)}
10,this.addAction=function(t,e,i){this.actions[t]||(this.actions[t]={}),this.actions[t][e]=i},this.getConfigObj=function(){return this.configObj},this.alert=function(t){Alertek.show_alert(t)},this.setCurrentSizeObj=function(t){if(projectorv3_disable_ajax&&0==projectorv3_disable_ajax)product_data.sizes[t]?(this.currentSizeObj=product_data.sizes[t],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 e=this,i=function(){"onesize"==t&&(t="uniw"),product_data.sizes[t]?(e.currentSizeObj=product_data.sizes[t],e.currentSizeObj.product_type=product_data.product_type,e.currentSizeObj.currency=product_data.currency,e.currentSizeObj.unit=product_data.unit,e.currentSizeObj.unit_plural=product_data.unit_plural?product_data.unit_plural:"",e.currentSizeObj.unit_sellby=""!=product_data.unit_sellby?product_data.unit_sellby:1,e.currentSizeObj.unit_precision=""!=product_data.unit_precision?product_data.unit_precision:0,product_data.for_points&&(e.currentSizeObj.for_points=product_data.for_points)):e.errorMsg.push("setCurrentSize no data")};product_data.sizes?i():$.getJSON("/ajax/projector.php?action=get&product="+product_data.product_id+"&get=sizes",(function(t){t.sizes&&(product_data.sizes={},$.each(t.sizes.items,(function(t,e){product_data.sizes[e.type]=e})),i(),e.start())})),this.options.endSetCurrentSizeFunction()}},this.getCurrentSizeObj=function(t){return this.currentSizeObj},this.getAjaxProductData=function(t){classObj.options.beginGetAjaxProductDataFunction(),$.ajax({type:"GET",timeout:this.timeoutAjax,url:"/projector.php?product="+t+"&shop_xml=true&getProductXML=true",dataType:"xml",success:function(t){classObj.options.clearXMLGetAjaxProductDataFunction(t);var e={},i=classObj.getAttr($("product:first",t),"id");e.currency=shop_currency,e.product_type=classObj.getAttr($("product:first",t),"product_type"),e.unit=classObj.getAttr($("product sizes_version:first",t),"unit"),e.unit_plural=classObj.getAttr($("product sizes_version:first",t),"unit_plural"),e.unit_sellby=classObj.getAttr($("product sizes_version:first",t),"unit_sellby"),e.unit_precision=classObj.getAttr($("product sizes_version:first",t),"unit_precision"),e.sizes={},$("product versions:first version[id="+i+"] size",t).each((function(){e.sizes[classObj.getAttr($(this),"type")]=$.xml2json($("<p/>").append($(this)).html())})),product_data=e,classObj.setCurrentSizeObj(classObj.getIndex(product_data.sizes,0)),projectorObj.start(),classObj.options.endGetAjaxProductDataFunction()},error:function(){}})}};
11/*! jQuery UI - v1.13.1 - 2022-01-24
12* http://jqueryui.com
13* Includes: keycode.js, widgets/datepicker.js
14* Copyright jQuery Foundation and other contributors; Licensed MIT */
15!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}((function(t){"use strict";t.ui=t.ui||{};var e;
16/*!
17 * jQuery UI Keycode 1.13.1
18 * http://jqueryui.com
19 *
20 * Copyright jQuery Foundation and other contributors
21 * Released under the MIT license.
22 * http://jquery.org/license
23 */t.ui.version="1.13.1",t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
vendor: 5,461 bytes, lines 23-32
23ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=n(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,(function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",i,o)}function o(){t.datepicker._isDisabledDatepicker(e.inline?e.dpDiv.parent()[0]:e.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function s(e,i){for(var n in t.extend(e,i),i)null==i[n]&&(e[n]=i[n]);return e}
24/*!
25 * jQuery UI Datepicker 1.13.1
26 * http://jqueryui.com
27 *
28 * Copyright jQuery Foundation and other contributors
29 * Released under the MIT license.
30 * http://jquery.org/license
31 */
32t.extend(t.ui,{datepicker:{version:"1.13.1"}}),t.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return s(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,o,s;o="div"===(n=e.nodeName.toLowerCase())||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(s=this._newInst(t(e),o)).settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,s):o&&this._inlineDatepicker(e,s)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,o,s,r=this._get(i,"appendText"),a=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=t("<span>").addClass(this._appendClass).text(r),e[a?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||e.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(o=this._get(i,"buttonText"),s=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=t("<img>").addClass(this._triggerClass).attr({src:s,alt:o,title:o}):(i.trigger=t("<button type='button'>").addClass(this._triggerClass),s?i.trigger.html(t("<img>").attr({src:s,alt:o,title:o})):i.trigger.text(o)),e[a?"before":"after"](i.trigger),i.trigger.on("click",(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1})))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,o,s=new Date(2009,11,20),r=this._get(t,"dateFormat");r.match(/[DM]/)&&(e=function(t){for(i=0,n=0,o=0;o<t.length;o++)t[o].length>i&&(i=t[o].length,n=o);return n},s.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),s.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())),t.input.attr("size",this._formatDate(t,s).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,o,r){var a,l,c,d,u,p=this._dialogInst;return p||(this.uuid+=1,a="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+a+"' style='position: absolute; top: -100px; width: 0px;'/>
32"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(p=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",p)),s(p.settings,o||{}),i=i&&i.constructor===Date?this._formatDate(p,i):i,this._dialogInput.val(i),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,d=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+d,c/2-150+u]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",p),this},_destroyDatepicker:function(i){var n,o=t(i),s=t.data(i,"datepicker");o.hasClass(this.markerClassName)&&(n=i.nodeName.toLowerCase(),t.removeData(i,"datepicker"),"input"===n?(s.append.remove(),s.trigger.remove(),o.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||o.removeClass(this.markerClassName).empty(),e===s&&(e=null,this._curInst=null))},_enableDatepicker:function(e){var i,n,o=t(e),s=t.data(e,"datepicker");o.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,s.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=o.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})))},_disableDatepicker:function(e){var i,n,o=t(e),s=t.data(e,"datepicker");o.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,s.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=o.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,n){var o,r,a,l,c=this._getInst(e);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?t.extend({},t.datepicker._defaults):c?"all"===i?t.extend({},c.settings):this._get(c,i):null;o=i||{},"string"==typeof i&&((o={})[i]=n),c&&(this._curInst===c&&this._hideDatepicker(),r=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),s(c.settings,o),null!==a&&void 0!==o.dateFormat&&void 0===o.minDate&&(c.settings.minDate=this._formatDate(c,a)),null!==l&&void 0!==o.dateFormat&&void 0===o.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in o&&(o.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),c),this._autoSize(c),this._setDate(c,r),this._updateAlternate(c),this._updateDatepicker(c))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,o,s=t.datepicker._getInst(e.target),r=!0,a=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),r=!1;break;case 13:return(o=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",s.dpDiv))[0]&&t.datepicker._selectDay(e.target,s.selectedMonth,s.selectedYear,o[0]),(i=t.datepicker._get(s,"onSelect"))?(n=t.datepicker._formatDate(s),i.apply(s.input?s.input[0]:null,[n,s])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),r=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),r=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,a?1:-1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),r=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,a?-1:1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),r=e.ctrlKey||e.metaKey;break;default:r=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):r=!1;r&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,o=t.datepicker._getInst(e.target);if(t.datepicker._get(o,"constrainInput"))return i=t.datepicker._possibleChars(t.datepicker._get(o,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){var i,n,o,r,a,l,c;("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e)||(i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(o=(n=t.datepicker._get(i,"beforeShow"))?n.apply(e,[e,i]):{})&&(s(i.settings,o),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),r=!1,t(e).parents().each((function(){return!(r|="fixed"===t(this).css("position"))})),a={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),a=t.datepicker._checkOffset(i,a,r),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":r?"fixed":"absolute",display:"none",left:a.left+"px",to
vendor: 23,492 bytes, line 32
32p:a.top+"px"}),i.inline||(l=t.datepicker._get(i,"showAnim"),c=t.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[l]?i.dpDiv.show(l,t.datepicker._get(i,"showOptions"),c):i.dpDiv[l||"show"](l?c:null),t.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),t.datepicker._curInst=i)))},_updateDatepicker:function(i){this.maxRows=4,e=i,i.dpDiv.empty().append(this._generateHTML(i)),this._attachHandlers(i);var n,s=this._getNumberOfMonths(i),r=s[1],a=i.dpDiv.find("."+this._dayOverClass+" a"),l=t.datepicker._get(i,"onUpdateDatepicker");a.length>0&&o.apply(a.get(0)),i.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r>1&&i.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",17*r+"em"),i.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),i.dpDiv[(this._get(i,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),i===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),i.yearshtml&&(n=i.yearshtml,setTimeout((function(){n===i.yearshtml&&i.yearshtml&&i.dpDiv.find("select.ui-datepicker-year").first().replaceWith(i.yearshtml),n=i.yearshtml=null}),0)),l&&l.apply(i.input?i.input[0]:null,[i])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,n){var o=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?o-r:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+a?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+o>l&&l>o?Math.abs(i.left+o-l):0),i.top-=Math.min(i.top,i.top+s>c&&c>s?Math.abs(s+a):0),i},_findPos:function(e){for(var i,n=this._getInst(e),o=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.pseudos.hidden(e));)e=e[o?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,n,o,s,r=this._curInst;!r||e&&r!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(r,"showAnim"),n=this._get(r,"duration"),o=function(){t.datepicker._tidyDialog(r)},t.effects&&(t.effects.effect[i]||t.effects[i])?r.dpDiv.hide(i,t.datepicker._get(r,"showOptions"),n,o):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,o),i||o(),this._datepickerShowing=!1,(s=this._get(r,"onClose"))&&s.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===n)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var o=t(e),s=this._getInst(o[0]);this._isDisabledDatepicker(o[0])||(this._adjustInstDate(s,i,n),this._updateDatepicker(s))},_gotoToday:function(e){var i,n=t(e),o=this._getInst(n[0]);this._get(o,"gotoCurrent")&&o.currentDay?(o.selectedDay=o.currentDay,o.drawMonth=o.selectedMonth=o.currentMonth,o.drawYear=o.selectedYear=o.currentYear):(i=new Date,o.selectedDay=i.getDate(),o.drawMonth=o.selectedMonth=i.getMonth(),o.drawYear=o.selectedYear=i.getFullYear()),this._notifyChange(o),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var o=t(e),s=this._getInst(o[0]);s["selected"+("M"===n?"Month":"Year")]=s["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(o)},_selectDay:function(e,i,n,o){var s,r=t(e);t(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((s=this._getInst(r[0])).selectedDay=s.currentDay=parseInt(t("a",o).attr("data-date")),s.selectedMonth=s.currentMonth=i,s.selectedYear=s.currentYear=n,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,o=t(e),s=this._getInst(o[0]);i=null!=i?i:this._formatDate(s),s.input&&s.input.val(i),this._updateAlternate(s),(n=this._get(s,"onSelect"))?n.apply(s.input?s.input[0]:null,[i,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&&s.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,n,o,s=this._get(e,"altField");s&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),o=this.formatDate(i,n,this._getFormatConfig(e)),t(document).find(s).val(o))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var o,s,r,a,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,d="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),u=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,h=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,_=(n?n.monthNames:null)||this._defaults.monthNames,m=-1,f=-1,g=-1,v=-1,y=!1,b=function(t){var i=o+1<e.length&&e.charAt(o+1)===t;return i&&o++,i},x=function(t){var e=b(t),n="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,o=new RegExp("^\\d{"+("y"===t?n:1)+","+n+"}"),s=i.substring(l).match(o);if(!s)throw"Missing number at position "+l;return l+=s[0].length,parseInt(s[0],10)},w=function(e,n,o){var s=-1,r=t.map(b(e)?o:n,(function(t,e){return[[e,t]]})).sort((function(t,e){return-(t[1].length-e[1].length)}));if(t.each(r,(function(t,e){var n=e[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return s=e[0],l+=n.length,!1})),-1!==s)return s+1;throw"Unknown name at position "+l},k=function(){if(i.charAt(l)!==e.charAt(o))throw"Unexpected literal at position "+l;l++};for(o=0;o<e.length;o++)if(y)"'"!==e.charAt(o)||b("'")?k():y=!1;else switch(e.charAt(o)){case"d":g=x("d");break;case"D":w("D",u,p);break;case"o":v=x("o");break;case"m":f=x("m");break;case"M":f=w("M",h,_);break;case"y":m=x("y");break;case"@":m=(a=new Date(x("@"))).getFullYear(),f=a.getMonth()+1,g=a.getDate();break;case"!":m=(a=new Date((x("!")-this._ticksTo1970)/1e4)).getFullYear(),f=a.getMonth()+1,g=a.getDate();break;case"'":b("'")?k():y=!0;break;default:k()}if(l<i.length&&(r=i.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===m?m=(new Date).getFullYear():m<100&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(m<=d?0:-100)),v>-1)for(f=1,g=v;;){if(g<=(s=this._getDaysInMonth(m,f-1)))break;f++,g-=s}if((a=this._daylightSavingAdjust(new Date(m,f-1,g))).getFullYear()!==m||a.getMonth()+1!==f||a.getDate()!==g)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,o=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,s=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},c=function(t,e,i){var n=""+e;if(l(t))for(;n.length<i;)n="0"+n;return n},d=function(t,e,i,n){return l(t)?n[e]:i[e]},u="",p=!1;if(e)for(n=0;n<t.length;n++)if(p)"'"!==t.charAt(n)||l("'")?u+=t.charAt(n):p=!1;else switch(t.charAt(n)){case"d":u+=c("d",e.getDate(),2);break;case"D":u+=d("D",e.getDay(),o,s);break;case"o":u+=c("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=c("m",e.getMonth()+1,2);break;case"M":u+=d("M",e.getMonth(),r,a);break;case"y":u+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?u+="'":p=!0;break;default:u+=t.charAt(n)}return u},_possibleChars:function(t){var e,i="",n=!1,o=function(i){var n=e+1<t.length&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;e<t.length;e++)if(n)"'"!==t.charAt(e)||o("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":o("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,o=this._getDefaultDate(t),s=o,r=this._getFormatConfig(t);try{s=this.parseDate(i,n,r)||o}catch(t){n=e?"":n}t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),t.currentDay=n?s.getDate():0,t.currentMonth=n?s.getMonth():0,t.currentYear=n?s.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var o=null==i||""===i?n:"string"==typeof i?function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,o=n.getFullYear(),s=n.getMonth(),r=n.getDate(),a=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=a.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":s+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(o,s));break;case"y":case"Y":o+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(o,s))}l=a.exec(i)}return new Date(o,s,r)}(i):"number"==typeof i?isNaN(i)?n:function(t){var e=new Date;return e.setDate(e.getDate()+t),e}(i):new Date(i.getTime());return(o=o&&"Invalid Date"===o.toString()?n:o)&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,o=t.selectedMonth,s=t.selectedYear,r=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=r.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=r.getMonth(),t.drawYear=t.selectedYear=t.currentYear=r.getFullYear(),o===t.selectedMonth&&s===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map((function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])}))},_generateHTML:function(e){var i,n,o,s,r,a,l,c,d,u,p,h,_,m,f,g,v,y,b,x,w,k,S,C,T,L,$,E,I,M,z,j,A,P,B,D,O,W,N,H=new Date,F=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),Z=this._get(e,"isRTL"),q=this._get(e,"showButtonPanel"),G=this._get(e,"hideIfNoPrevNext"),R=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),V=this._get(e,"showCurrentAtPos"),U=this._get(e,"stepMonths"),J=1!==Y[0]||1!==Y[1],Q=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(e,"min"),K=this._getMinMaxDate(e,"max"),tt=e.drawMonth-V,et=e.drawYear;if(tt<0&&(tt+=12,et--),K)for(i=this._daylightSavingAdjust(new Date(K.getFullYear(),K.getMonth()-Y[0]*Y[1]+1,K.getDate())),i=X&&i<X?X:i;this._daylightSavingAdjust(new Date(et,tt,1))>i;)--tt<0&&(tt=11,et--);for(e.drawMonth=tt,e.drawYear=et,n=this._get(e,"prevText"),n=R?this.formatDate(n,this._daylightSavingAdjust(new Date(et,tt-U,1)),this._getFormatConfig(e)):n,o=this._canAdjustMonth(e,-1,et,tt)?t("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:n}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(Z?"e":"w")).text(n))[0].outerHTML:G?"":t("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:n}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(Z?"e":"w")).text(n))[0].outerHTML,s=this._get(e,"nextText"),s=R?this.formatDate(s,this._daylightSavingAdjust(new Date(et,tt+U,1)),this._getFormatConfig(e)):s,r=this._canAdjustMonth(e,1,et,tt)?t("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:s}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(Z?"w":"e")).text(s))[0].outerHTML:G?"":t("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:s}).append(t("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(Z?"w":"e")).text(s))[0].outerHTML,a=this._get(e,"currentText"),l=this._get(e,"gotoCurrent")&&e.currentDay?Q:F,a=R?this.formatDate(a,l,this._getFormatConfig(e)):a,c="",e.inline||(c=t("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),d="",q&&(d=t("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(Z?c:"").append(this._isInRange(e,l)?t("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(a):"").append(Z?"":c)[0].outerHTML),u=parseInt(this._get(e,"firstDay"),10),u=isNaN(u)?0:u,p=this._get(e,"showWeek"),h=this._get(e,"dayNames"),_=this._get(e,"dayNamesMin"),m=this._get(e,"monthNames"),f=this._get(e,"monthNamesShort"),g=this._get(e,"beforeShowDay"),v=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),b=this._getDefaultDate(e),x="",k=0;k<Y[0];k++){for(S="",this.maxRows=4,C=0;C<Y[1];C++){if(T=this._daylightSavingAdjust(new Date(et,tt,e.selectedDay)),L=" ui-corner-all",$="",J){if($+="<div class='ui-datepicker-group",Y[1]>1)switch(C){case 0:$+=" ui-datepicker-group-first",L=" ui-corner-"+(Z?"right":"left");break;case Y[1]-1:$+=" ui-datepicker-group-last",L=" ui-corner-"+(Z?"left":"right");break;default:$+=" ui-datepicker-group-middle",L=""}$+="'>"}for($+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+L+"'>"+(/all|left/.test(L)&&0===k?Z?r:o:"")+(/all|right/.test(L)&&0===k?Z?o:r:"")+this._generateMonthYearHeader(e,tt,et,X,K,k>0||C>0,m,f)+"</div><table class='ui-datepicker-calendar'><thead><tr>",E=p?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",w=0;w<7;w++)E+="<th scope='col'"+((w+u+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+h[I=(w+u)%7]+"'>"+_[I]+"</span></th>";for($+=E+"</tr></thead><tbody>",M=this._getDaysInMonth(et,tt),et===e.selectedYear&&tt===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,M)),z=(this._getFirstDayOfMonth(et,tt)-u+7)%7,j=Math.ceil((z+M)/7),A=J&&this.maxRows>j?this.maxRows:j,this.maxRows=A,P=this._daylightSavingAdjust(new Date(et,tt,1-z)),B=0;B<A;B++){for($+="<tr>",D=p?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(P)+"</td>":"",w=0;w<7;w++)O=g?g.apply(e.input?e.input[0]:null,[P]):[!0,""],N=(W=P.getMonth()!==tt)&&!y||!O[0]||X&&P<X||K&&P>K,D+="<td class='"+((w+u+6)%7>=5?" ui-datepicker-week-end":"")+(W?" ui-datepicker-other-month":"")+(P.getTime()===T.getTime()&&tt===e.selectedMonth&&e._keyEvent||b.getTime()===P.getTime()&&b.getTime()===T.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(W&&!v?"":" "+O[1]+(P.getTime()===Q.getTime()?" "+this._currentClass:"")+(P.getTime()===F.getTime()?" ui-datepicker-today":""))+"'"+(W&&!v||!O[2]?"":" title='"+O[2].replace(/'/g,"&#39;")+"'")+(N?"":" data-handler='selectDay' data-event='click' data-month='"+P.getMonth()+"' data-year='"+P.getFullYear()+"'")+">"+(W&&!v?"&#xa0;":N?"<span class='ui-state-default'>"+P.getDate()+"</span>":"<a class='ui-state-default"+(P.getTime()===F.getTime()?" ui-state-highlight":"")+(P.getTime()===Q.getTime()?" ui-state-active":"")+(W?" ui-priority-secondary":"")+"' href='#' aria-current='"+(P.getTime()===Q.getTime()?"true":"false")+"' data-date='"+P.getDate()+"'>"+P.getDate()+"</a>")+"</td>",P.setDate(P.getDate()+1),P=this._daylightSavingAdjust(P);$+=D+"</tr>"}++tt>11&&(tt=0,et++),S+=$+="</tbody></table>"+(J?"</div>"+(Y[0]>0&&C===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}x+=S}return x+=d,e._keyEvent=!1,x},_generateMonthYearHeader:function(t,e,i,n,o,s,r,a){var l,c,d,u,p,h,_,m,f=this._get(t,"changeMonth"),g=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),y=this._get(t,"selectMonthLabel"),b=this._get(t,"selectYearLabel"),x="<div class='ui-datepicker-title'>",w="";if(s||!f)w+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=n&&n.getFullYear()===i,c=o&&o.getFullYear()===i,w+="<select class='ui-datepicker-month' aria-label='"+y+"' data-handler='selectMonth' data-event='change'>",d=0;d<12;d++)(!l||d>=n.getMonth())&&(!c||d<=o.getMonth())&&(w+="<option value='"+d+"'"+(d===e?" selected='selected'":"")+">"+a[d]+"</option>");w+="</select>"}if(v||(x+=w+(!s&&f&&g?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",s||!g)x+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(t,"yearRange").split(":"),p=(new Date).getFullYear(),h=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?p+parseInt(t,10):parseInt(t,10);return isNaN(e)?p:e},_=h(u[0]),m=Math.max(_,h(u[1]||"")),_=n?Math.max(_,n.getFullYear()):_,m=o?Math.min(m,o.getFullYear()):m,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+b+"' data-handler='selectYear' data-event='change'>";_<=m;_++)t.yearshtml+="<option value='"+_+"'"+(_===i?" selected='selected'":"")+">"+_+"</option>";t.yearshtml+="</select>",x+=t.yearshtml,t.yearshtml=null}return x+=this._get(t,"yearSuffix"),v&&(x+=(!s&&f&&g?"":"&#xa0;")+w),x+="</div>"},_adjustInstDate:function(t,e,i){var n=t.selectedYear+("Y"===i?e:0),o=t.selectedMonth+("M"===i?e:0),s=Math.min(t.selectedDay,this._getDaysInMonth(n,o))+("D"===i?e:0),r=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,o,s)));t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),o=i&&e<i?i:e;return n&&o>n?n:o},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var o=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,n+(e<0?e:o[0]*o[1]),1));return e<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i,n,o=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),r=null,a=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),r=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=n),i[1].match(/[+\-].*/)&&(a+=n)),(!o||e.getTime()>=o.getTime())&&(!s||e.getTime()<=s.getTime())&&(!r||e.getFullYear()>=r)&&(!a||e.getFullYear()<=a)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var o=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),o,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each((function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)})):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.13.1";t.datepicker})),app_shop.fn.fontCallback=()=>{void 0!==app_shop.fn.fontCallbackMenu&&app_shop.fn.fontCallbackMenu()},WebFontConfig={google:{families:["Open+Sans:400,600,700:latin,latin-ext&display=swap"]},active:app_shop.fn.fontCallback},function(){var t=document.createElement("script");t.src=("https:"==document.location.protocol?"https":"http")+"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js",t.async="true";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}(),app_shop.fn.evalJSFromHtml=function(t){(t?.querySelectorAll("script.ajaxLoad")||[]).forEac
32h((t=>{const e=document.createElement("script");e.innerHTML=t.innerHTML,document.body.appendChild(e)}))},app_shop.run((function(){const t=document.getElementById("trustmate-sidebar");"/pl/basketedit.html"===window.location.pathname&&(t.style.display="none")}),"all");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(){$("[data-ajaxLoad]").length&&(app_shop.fn.hotspotAjaxInit=new HotspotAjaxInit({afterAllHotspotsCallback:()=>{$(".hotspot:not(.--list):not(.--slider):not(.--bundle):not(.--added)").each((function(){$(this).find(".product__name").setHeight($(this).find(".products")),$(this).find(".product__prices").setHeight($(this).find(".products"))})),app_shop.vars.hotspot_slider=new HotspotSlider({selector:".hotspot.--slider .products:not(.slick-initialized)",callbackBefore:t=>{t.each((function(){$(this).on("init",(function(t){app_shop.fn.multiSlideAdaptiveHeight(this)})).on("beforeChange",(function(t,e,i){app_shop.fn.multiSlideAdaptiveHeight(this)})),$(this).find(".product__name").setHeight($(this)),$(this).find(".product__prices").setHeight($(this))}))},callbackAfter:t=>{app_shop.fn.initProductDataSearch(".hotspot .product"),app_shop.fn.addProductsToBasket(document.querySelectorAll(".hotspot .product:not(.--active-buy) .add_to_basket__wrapper"))}}),app_shop.fn.hotspotSlick=new HotspotSlider({selector:".hotspot:not(.--list):not(.--slider):not(.--bundle):not(.--added) .products:not(.slick-initialized)",options:{slidesToShow:4,slidesToScroll:1,dots:!1,arrows:!0,prevArrow:'<a class="slick-prev" href=""><i class="icon-angle-left"></i></a>',nextArrow:'<a class="slick-next" href=""><i class="icon-angle-right"></i></a>',infinite:!1,responsive:[]},callbackBefore:t=>{t.each((function(){$(this).on("init",(function(t){app_shop.fn.multiSlideAdaptiveHeight(this)})).on("beforeChange",(function(t,e,i){app_shop.fn.multiSlideAdaptiveHeight(this)})),$(this).find(".product__name").setHeight($(this)),$(this).find(".product__prices").setHeight($(this))}))}}),1===app_shop.vars.view&&$(".hotspot:not(.--list):not(.--slider):not(.--bundle):not(.--added) .products.slick-initialized").slick("unslick"),app_shop.fn.projectorTabs&&app_shop.fn.projectorTabs.init(),$(".hotspot .products").scroll((function(){app_shop.vars.bLazy&&app_shop.vars.bLazy.revalidate()}))}}))}),"all","body",!0),app_shop.run((function(){app_shop.fn.hotspotSlick=new HotspotSlider({selector:".hotspot:not(.--list):not(.--slider):not(.--bundle):not(.--added) .products:not(.slick-initialized)",options:{slidesToShow:4,slidesToScroll:1,dots:!1,arrows:!0,prevArrow:'<a class="slick-prev" href=""><i class="icon-angle-left"></i></a>',nextArrow:'<a class="slick-next" href=""><i class="icon-angle-right"></i></a>',infinite:!1,responsive:[]},callbackBefore:t=>{t.each((function(){$(this).on("init",(function(t){app_shop.fn.multiSlideAdaptiveHeight(this)})).on("beforeChange",(function(t,e,i){app_shop.fn.multiSlideAdaptiveHeight(this)})),$(this).find(".product__name").setHeight($(this)),$(this).find(".product__prices").setHeight($(this))}))}})}),"all",".hotspot"),app_shop.run((function(){$(".hotspot:not(.--list):not(.--slider):not(.--bundle):not(.--added)").each((function(){$(this).find(".product__name").setHeight($(this).find(".products")),$(this).find(".product__prices").setHeight($(this).find(".products"))})),1===app_shop.vars.view?$(".hotspot:not(.--list):not(.--slider):not(.--bundle):not(.--added) .products.slick-initialized").slick("unslick"):app_shop.fn.hotspotSlick.init()}),[1,2,3,4],".hotspot"),app_shop.run((function(){$(".hotspot .products").scroll((function(){app_shop.vars.bLazy&&app_shop.vars.bLazy.revalidate()}))}),1,".hotspot .products"),app_shop.run((function(){app_shop.vars.hotspot_slider=new HotspotSlider({selector:".hotspot.--slider .products:not(.slick-initialized)",callbackBefore:t=>{t.each((function(){$(this).on("init",(function(t){app_shop.fn.multiSlideAdaptiveHeight(this)}
32)).on("beforeChange",(function(t,e,i){app_shop.fn.multiSlideAdaptiveHeight(this)})),$(this).find(".product__name").setHeight($(this)),$(this).find(".product__prices").setHeight($(this))}))}})}),"all",".hotspot.--slider"),app_shop.run((function(){$("[data-tablet-class]").each((function(){$(this).removeClass($(this).attr("data-tablet-class"))})),$("[data-mobile-class]").each((function(){$(this).removeClass($(this).attr("data-mobile-class"))})),$("html").removeClass("_mobile")}),[3,4],"body",!0),app_shop.run((function(){setTabletClass(),$("#projector_form div.product_info").prepend($("div.product_info_top")),$("#projector_form h1").after($("div.projector_description"))}),2,"body",!0),app_shop.run((function(){setMobileClass(),$("#n67367").length?($("#n67367").before($("div.product_info_top")),$("#n67367").before($("div.projector_description"))):($("#projector_form div.product_info").append($("div.product_info_top")),$("#projector_form div.product_info").append($("div.projector_description")))}),1,"body",!0),app_shop.run((function(){$(".cm").find("img.rwd-src").each((function(){$this=$(this),$this.attr("src",app_shop.fn.getRwdSrc($this))}))}),[1,2,3,4]),app_shop.run((function(){$("img.b-lazy").parents("a").addClass("loading"),app_shop.vars.bLazy=new Blazy({breakpoints:[{width:420,src:"data-src-small"}],success:function(t){$(t).parents(".loading").removeClass("loading"),$("#main_banner1 .main_slider.slick-slider").length&&setTimeout((()=>{$("#main_banner1 .main_slider").find(".slick-slide").height("auto"),$("#main_banner1 .main_slider").slick("setOption","","",!0)}),100)}}),$(".form-group .form-control, .f-group .f-control").on("change input focus blur",app_shop.fn.addFocused),setTimeout((()=>{$(".form-group .form-control, .f-group .f-control").each(app_shop.fn.addFocused)}),500),$(".f-group.--file .f-control").on("change",(function(){var t=$(this),e=t.siblings(".f-label");t.val().length?(e.addClass("--file"),e.attr("data-label")||e.attr("data-label",e.text()),e.text(t.val())):(e.removeClass("--file"),e.text(e.attr("data-label")))})),$(".drop_down_label").append(" <span>"),$(".drop_down_list > .active").each((function(){$(this).parents(".drop_down_wrapper").find(".drop_down_label span").html($(this).html())})),$(document).on("click touchstart",".drop_down_label",(function(){$(this).toggleClass("open_list"),$(this).next(".drop_down_list").slideToggle()})),$(document).on("click",".drop_down_list > *",(function(){$(this).parents(".drop_down_wrapper").find(".drop_down_label span").text($(this).text()),$(this).parents(".drop_down_wrapper").find(".drop_down_label").removeClass("open_list"),$(this).parents(".drop_down_list").slideUp()})),$("table.ui-responsive").each((function(){if($(this).find("thead th").length)var t=$.map($(this).find("thead tr th"),(function(t,e){return $(t).text()}));else t=$.map($(this).find("thead tr td"),(function(t,e){return $(t).text()}));$(this).find("tbody tr").each((function(){$(this).find("td:first").replaceWith((function(e,i){return t[0]?$("<th/>").html('<b class="ui-table-cell-label">'+t[0]+"</b>"+i):$("<th/>").html(i)}))})),$(this).find("tbody tr").each((function(){$(this).find("td").each((function(e){t[e+1]&&$(this).prepend('<b class="ui-table-cell-label">'+t[e+1]+"</b>")}))}))})),$(".align_row").iai_align(),$("body").append($("#alert_cover")),$("body").backTop({txt:'<i class="icon-chevron-up"></i>'});let t=window.visualViewport?.01*window.visualViewport.height:.01*window.innerHeight;document.documentElement.style.setProperty("--vh",`${t}px`),window.visualViewport?window.visualViewport.addEventListener("resize",(function(){t=.01*window.visualViewport.height,document.documentElement.style.setProperty("--vh",`${t}px`)})):window.addEventListener("resize",(()=>{t=.01*window.innerHeight,document.documentElement.style.setProperty("--vh",`${t}px`)}))}),"all"),app_shop.run((function(){$(".article__date").each((function(){const t=$(this),e=app_shop.fn.news_data({data:t.text(),month_names:iaical_shortNames,format:"<div>%d</div><span>%m</span>"});e&&t.html(e)}))}),"all",".article__date"),app_shop.fn.fixed_scroll=(t,e)=>{let i=window.scrollY;const n=window;window.addEventListener("scroll",(function(o){n.scrollY>i&&n.scrollY>0?!t.classList.contains(e)&&t.classList.add(e):t.classList.contains(e)&&t.classList.remove(e),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.querySelector("html"),"scroll"),app_shop.vars.isIos&&$("html").addClass("--ios"),app_shop.vars.isSafari&&$("html").addClass("--safari")}),[1,2],"#container"),app_shop.run((function(){$(".moreInfo__show").on("click",(function(){$(this).parent().toggleClass("--hover"),$(this).parent().find(".moreInfo").toggleClass("--hover")}))}),"all",".moreInfo__show"),app_shop.txt.txt_77752_1="Nie można wgrać pliku %s, ponieważ przekracza maksymalny dozwolony rozmiar %dMB.",app_shop.txt.txt_77752_2="Nie można wgrać pliku %s, ponieważ załączanie plików tego typu jest niedozwolone.",app_shop.txt.txt_77752_3="Dopuszczalne formaty zdjęć: .jpg.",app_shop.txt.txt_77752_4="Maksymalny rozmiar zdjęcia to: %spx.";var hotspotAjaxWrapType="";function ownKeys(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
vendor: 9,627 bytes, line 32
32e%2?ownKeys(Object(i),!0).forEach((function(e){_defineProperty(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function _defineProperty(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}app_shop.txt.txt_validation1="Minimalna liczba znaków dla tego pola to ",app_shop.txt.txt_validation2="Maksymalna liczba znaków dla tego pola to ",app_shop.txt.txt_validation3="Błędnie wpisany e-mail. Wpisz pełny adres e-mail, np. [email protected].",app_shop.txt.txt_validation4="Te pole jest obowiązkowe.",app_shop.txt.txt_validation5="Format numeru konta bankowego jest niepoprawny ",app_shop.txt.txt_validation6="Numer telefonu powinien zawierać minimum 9 znaków ",app_shop.txt.hotspot_prev="Poprzedni z tej kategorii",app_shop.txt.hotspot_next="Następny z tej kategorii",function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(){for(var t=window.document,e=o(t);e;)e=o(t=e.ownerDocument);return t}(),e=[],i=null,n=null;r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r._setupCrossOriginUpdater=function(){return i||(i=function(t,i){n=t&&i?u(t,i):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),i},r._resetCrossOriginUpdater=function(){i=null,n=null},r.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},r.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},r.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,i){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==i[e-1]}))},r.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},r.prototype._monitorIntersections=function(e){var i=e.defaultView;if(i&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,s=null,r=null;this.POLL_INTERVAL?s=i.setInterval(n,this.POLL_INTERVAL):(a(i,"resize",n,!0),a(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in i&&(r=new i.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(s&&t.clearInterval(s),l(t,"resize",n,!0)),l(e,"scroll",n,!0),r&&r.disconnect()}));var c=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=c){var d=o(e);d&&this._monitorIntersections(d.ownerDocument)}}},r.prototype._unmonitorIntersections=function(e){var i=this._monitoringDocuments.indexOf(e);if(-1!=i){var n=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some((function(t){var i=t.element.ownerDocument;if(i==e)return!0;for(;i&&i!=n;){var s=o(i);if((i=s&&s.ownerDocument)==e)return!0}return!1}))){var s=this._monitoringUnsubscribes[i];if(this._monitoringDocuments.splice(i,1),this._monitoringUnsubscribes.splice(i,1),s(),e!=n){var r=o(e);r&&this._unmonitorIntersections(r.ownerDocument)}}}},r.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},r.prototype._checkForIntersections=function(){if(this.root||!i||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(n){var o=n.element,r=c(o),a=this._rootContainsTarget(o),l=n.entry,d=t&&a&&this._computeTargetAndRootIntersection(o,r,e),u=null;this._rootContainsTarget(o)?i&&!this.root||(u=e):u={top:0,bottom:0,left:0,right:0,width:0,height:0};var p=n.entry=new s({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:r,rootBounds:u,intersectionRect:d});l?t&&a?this._hasCrossedThreshold(l,p)&&this._queuedEntries.push(p):l&&l.isIntersecting&&this._queuedEntries.push(p):this._queuedEntries.push(p)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},r.prototype._computeTargetAndRootIntersection=function(e,o,s){if("none"!=window.getComputedStyle(e).display){for(var r,a,l,d,p,_,m,f,g=o,v=h(e),y=!1;!y&&v;){var b=null,x=1==v.nodeType?window.getComputedStyle(v):{};if("none"==x.display)return null;if(v==this.root||9==v.nodeType)if(y=!0,v==this.root||v==t)i&&!this.root?!n||0==n.width&&0==n.height?(v=null,b=null,g=null):b=n:b=s;else{var w=h(v),k=w&&c(w),S=w&&this._computeTargetAndRootIntersection(w,k,s);k&&S?(v=w,b=u(k,S)):(v=null,g=null)}else{var C=v.ownerDocument;v!=C.body&&v!=C.documentElement&&"visible"!=x.overflow&&(b=c(v))}if(b&&(r=b,a=g,void 0,void 0,void 0,void 0,void 0,void 0,l=Math.max(r.top,a.top),d=Math.min(r.bottom,a.bottom),p=Math.max(r.left,a.left),f=d-l,g=(m=(_=Math.min(r.right,a.right))-p)>=0&&f>=0&&{top:l,bottom:d,left:p,right:_,width:m,height:f}||null),!g)break;v=v&&h(v)}return g}},r.prototype._getRootRect=function(){var e;if(this.root&&!_(this.root))e=c(this.root);else{var i=_(this.root)?this.root:t,n=i.documentElement,o=i.body;e={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(e)},r.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,i){return"px"==e.unit?e.value:e.value*(i%2?t.width:t.height)/100})),i={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return i.width=i.right-i.left,i.height=i.bottom-i.top,i},r.prototype._hasCrossedThreshold=function(t,e){var i=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(i!==n)for(var o=0;o<this.thresholds.length;o++){var s=this.thresholds[o];if(s==i||s==n||s<i!=s<n)return!0}},r.prototype._rootIsInDom=function(){return!this.root||p(t,this.root)},r.prototype._rootContainsTarget=function(e){var i=this.root&&(this.root.ownerDocument||this.root)||t;return p(i,e)&&(!this.root||i==e.ownerDocument)},r.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},r.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=r,window.IntersectionObserverEntry=s}function o(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function s(t){this.time=t.time,this.target=t.target,this.rootBounds=d(t.rootBounds),this.boundingClientRect=d(t.boundingClientRect),this.intersectionRect=d(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,i=e.width*e.height,n=this.intersectionRect,o=n.width*n.height;this.intersectionRatio=i?Number((o/i).toFixed(4)):this.isIntersecting?1:0}function r(t,e){var i,n,o,s=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(s.root&&1!=s.root.nodeType&&9!=s.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(i=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){i(),o=null}),n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(s.rootMargin),this.thresholds=this._initThresholds(s.threshold),this.root=s.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(t,e,i,n){"function"==typeof t.addEventListener?t.addEventListener(e,i,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,i)}function l(t,e,i,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,i,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,i)}function c(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function u(t,e){var i=e.top-t.top,n=e.left-t.left;
32return{top:i,left:n,height:e.height,width:e.width,bottom:i+e.height,right:n+e.width}}function p(t,e){for(var i=e;i;){if(i==t)return!0;i=h(i)}return!1}function h(e){var i=e.parentNode;return 9==e.nodeType&&e!=t?o(e):(i&&i.assignedSlot&&(i=i.assignedSlot.parentNode),i&&11==i.nodeType&&i.host?i.host:i)}function _(t){return t&&9===t.nodeType}}();const Alertek={alert_cover:"",cloudID:"",alert_timer:null,Start:(t,e,i=4e3)=>{if(clearTimeout(Alertek.alert_timer),$("#alert_cover").remove(),$("body").append(`<div id="alert_cover" class="alertek ${e?`${e}`:""}" style="display:none" onclick="Alertek.hide_alert();"><![CDATA[]]></div>`),e||$("#alert_cover").addClass("menu_messages_message"),Alertek.cloudID=$("#alert_cover"),t){if(Alertek.cloudID.html(t),!e){const t=parseInt($(window).height()/2-Alertek.cloudID.height()/2+$(window).scrollTop()),e=parseInt($(window).width()/2-Alertek.cloudID.width()/2);Alertek.cloudID.css({top:t,marginLeft:e,left:0})}Alertek.cloudID.fadeIn(500),Alertek.alert_timer=setTimeout(Alertek.End,i)}},End:()=>{Alertek.cloudID.fadeOut(500)},Info:(t,e)=>{Alertek.Start(t,"--info",e)},Warning:(t,e)=>{Alertek.Start(t,"--warning",e)},Error:(t,e)=>{Alertek.Start(t,"--error",e)},Success:(t,e)=>{Alertek.Start(t,"--success",e)},show_alert:(t,e)=>{Alertek.Start(t,!1,e)},hide_alert:()=>{Alertek.End()}};$(this).addClass($(this).attr("data-tablet-class")),$("html").removeClass("_mobile"),app_shop.run((function(){setTimeout((function(){$.cookie("ck_cook");$.cookie("login")&&($.cookie("ck_cook",!0,{expires:30}),$("#ckdsclmrshtdwn").click())}),500)}),"all","body"),function(t){t.fn.separateElements=function(e){var i=t.extend({numCol:4},e);return this.each((function(){$this=t(this),$this.find(".separator").remove(),$this.find("> *:nth-child("+i.numCol+"n)").after('<div class="clearfix separator">')}))}}(jQuery),function(t){t.fn.wrappTableLayout=function(e){var i=t.extend({numCol:4,wrapper:'<div class="table_row">',tableClass:"table_wrapper",cellClass:"table_cell",wrapp:!0},e);return this.each((function(){$this=t(this);var e=$this.find("> *");if($this.is("."+i.tableClass)&&($this.removeClass(i.tableClass),e.removeClass(i.cellClass),e.find("> *").unwrap(),e=$this.find("> *")),i.wrapp){$this.addClass(i.tableClass),e.addClass(i.cellClass);for(var n=0,o=e.length;n<o;n+=i.numCol)e.slice(n,n+i.numCol).wrapAll(i.wrapper)}}))}}(jQuery);var IAI_Ajax={Request:function(_url,pd,fun){$.ajax({type:"POST",url:_url,data:pd}).done((function(responseText){fun&&fun.onSuccess&&(fun.arg?eval(fun.onSuccess+"('"+responseText+"', '"+fun.arg+"');"):eval(fun.onSuccess+"('"+responseText+"');"))}))}};app_shop.fn.addFocused=function(t,e){const i=e?$(e):$(this);(i.next().hasClass("control-label")||i.next().hasClass("f-label"))&&(""!=i.val()?i.addClass("focused"):i.removeClass("focused"))},$.fn.textWidth=function(t,e){return $.fn.textWidth.fakeEl||($.fn.textWidth.fakeEl=$("<span>").hide().appendTo(document.body)),$.fn.textWidth.fakeEl.text(t||this.val()||this.text()).css("font",e||this.css("font")),$.fn.textWidth.fakeEl.width()};const loadImageFromInput=t=>new Promise(((e,i)=>{const n=(window.URL||window.webkitURL).createObjectURL(t),o=new Image;o.onload=()=>e({width:o.width,height:o.height}),o.onerror=i,o.src=n}));$(document).on("change","input[type=file]",(function(){if(!(window.File&&window.FileReader&&window.FileList&&window.Blob))return!1;const t=this.files[0],{name:e,size:i,type:n}=t||{},[o]=e.split(".").reverse(),s=$(this).data("max_filesize"),r=s&&i<=Number(s),a=app_shop.vars.blacklist_mime&&app_shop.vars.blacklist_mime.includes(n),l=app_shop.vars.blacklist_extension&&app_shop.vars.blacklist_extension.includes(o);let c="";return a||l&&app_shop.txt.txt_77752_2?c=app_shop.txt.txt_77752_2.format(e):!r&&app_shop.txt.txt_77752_1&&s&&(c=app_shop.txt.txt_77752_1.format(e,(s/1048576).toFixed(2))),c?($(this).val(""),Alertek.Start(c),!1):void 0})),$.fn.inView=function(){return $(window).scrollTop()+$(window).height()+100>$(this).position().top},function(t){t.fn.backTop=function(e){var i=t.extend({speed:500,txt:"&uarr;",id:"backTop",duration:500},e);t("#"+i.id).remove(),t("body").append("<a id="+i.id+">"+i.txt+"</a>");var n=t("#"+i.id),o=2*t(window).height(),s=i.speed;getRightOffset=function(){var e=10,i=.5*(t(window).width()-t("#container").outerWidth())-2*e;i>=n.outerWidth()&&(e=i-n.outerWidth()+e),n.css("right",e+"px")},getRightOffset(),t(window).resize((function(){getRightOffset()})),t(document).scroll((function(){t(window).scrollTop()>=o?n.fadeIn(s):n.fadeOut(s)})),n.click((function(){t("html, body").animate({scrollTop:0},{duration:i.duration})}))}}
32(jQuery),function(t,e,i){function n(t,e){return typeof t===e}function o(t){var e=k.className,i=b._config.classPrefix||"";if(S&&(e=e.baseVal),b._config.enableJSClass){var n=new RegExp("(^|\\s)"+i+"no-js(\\s|$)");e=e.replace(n,"$1"+i+"js$2")}b._config.enableClasses&&(e+=" "+i+t.join(" "+i),S?k.className.baseVal=e:k.className=e)}function s(t,e){if("object"==typeof t)for(var i in t)w(t,i)&&s(i,t[i]);else{var n=(t=t.toLowerCase()).split("."),r=b[n[0]];if(2==n.length&&(r=r[n[1]]),void 0!==r)return b;e="function"==typeof e?e():e,1==n.length?b[n[0]]=e:(!b[n[0]]||b[n[0]]instanceof Boolean||(b[n[0]]=new Boolean(b[n[0]])),b[n[0]][n[1]]=e),o([(e&&0!=e?"":"no-")+n.join("-")]),b._trigger(t,e)}return b}function r(t){return t.replace(/([a-z])-([a-z])/g,(function(t,e,i){return e+i.toUpperCase()})).replace(/^-/,"")}function a(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):S?e.createElementNS.call(e,"http://www.w3.org/2000/svg",arguments[0]):e.createElement.apply(e,arguments)}function l(e,i,n){var o;if("getComputedStyle"in t){o=getComputedStyle.call(t,e,i);var s=t.console;if(null!==o)n&&(o=o.getPropertyValue(n));else if(s){s[s.error?"error":"log"].call(s,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!i&&e.currentStyle&&e.currentStyle[n];return o}function c(t,e){return!!~(""+t).indexOf(e)}function d(t,e){return function(){return t.apply(e,arguments)}}function u(t,i,n,o){var s,r,l,c,d="modernizr",u=a("div"),p=function(){var t=e.body;return t||((t=a(S?"svg":"body")).fake=!0),t}();if(parseInt(n,10))for(;n--;)(l=a("div")).id=o?o[n]:d+(n+1),u.appendChild(l);return(s=a("style")).type="text/css",s.id="s"+d,(p.fake?p:u).appendChild(s),p.appendChild(u),s.styleSheet?s.styleSheet.cssText=t:s.appendChild(e.createTextNode(t)),u.id=d,p.fake&&(p.style.background="",p.style.overflow="hidden",c=k.style.overflow,k.style.overflow="hidden",k.appendChild(p)),r=i(u,t),p.fake?(p.parentNode.removeChild(p),k.style.overflow=c,k.offsetHeight):u.parentNode.removeChild(u),!!r}function p(t){return t.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()})).replace(/^ms-/,"-ms-")}function h(e,n){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(p(e[o]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var s=[];o--;)s.push("("+p(e[o])+":"+n+")");return u("@supports ("+(s=s.join(" or "))+") { #modernizr { position: absolute; } }",(function(t){return"absolute"==l(t,null,"position")}))}return i}function _(t,e,o,s){function l(){u&&(delete M.style,delete M.modElem)}if(s=!n(s,"undefined")&&s,!n(o,"undefined")){var d=h(t,o);if(!n(d,"undefined"))return d}for(var u,p,_,m,f,g=["modernizr","tspan","samp"];!M.style&&g.length;)u=!0,M.modElem=a(g.shift()),M.style=M.modElem.style;for(_=t.length,p=0;_>p;p++)if(m=t[p],f=M.style[m],c(m,"-")&&(m=r(m)),M.style[m]!==i){if(s||n(o,"undefined"))return l(),"pfx"!=e||m;try{M.style[m]=o}catch(t){}if(M.style[m]!=f)return l(),"pfx"!=e||m}return l(),!1}function m(t,e,i,o,s){var r=t.charAt(0).toUpperCase()+t.slice(1),a=(t+" "+L.join(r+" ")+r).split(" ");return n(e,"string")||n(e,"undefined")?_(a,e,o,s):function(t,e,i){var o;for(var s in t)if(t[s]in e)return!1===i?t[s]:n(o=e[t[s]],"function")?d(o,i||e):o;return!1}(a=(t+" "+T.join(r+" ")+r).split(" "),e,i)}function f(t,e,n){return m(t,i,i,e,n)}var g=[],v=[],y={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var i=this;setTimeout((function(){e(i[t])}),0)},addTest:function(t,e,i){v.push({name:t,fn:e,options:i})},addAsyncTest:function(t){v.push({name:null,fn:t})}},b=function(){};b.prototype=y,b=new b;var x=y._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];y._prefixes=x;var w,k=e.documentElement,S="svg"===k.nodeName.toLowerCase(),C="Moz O ms Webkit",T=y._config.usePrefixes?C.toLowerCase().split(" "):[];y._domPrefixes=T,function(){var t={}.hasOwnProperty;w=n(t,"undefined")||n(t.call,"undefined")?function(t,e){return e in t&&n(t.constructor.prototype[e],"undefined")}:function(e,i){return t.call(e,i)}}(),y._l={},y.on=function(t,e){this._l[t]||(this._l[t]=[]),this._l[t].push(e),b.hasOwnProperty(t)&&setTimeout((function(){b._trigger(t,b[t])}),0)},y._trigger=function(t,e){if(this._l[t]){var i=this._l[t];setTimeout((function(){var t;for(t=0;t<i.length;t++)(0,i[t])(e)}),0),delete this._l[t]}},b._q.push((function(){y.addTest=s})),b.addTest("canvas",(function(){var t=a("canvas");return!(!t.getContext||!t.getContext("2d"))}));var L=y._config.usePrefixes?C.split(" "):[];y._cssomPrefixes=L;var $=function(e){var n,o=x.length,s=t.CSSRule;if(void 0===s)return i;if(!e)return!1;if((n=(e=e.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in s)return"@"+e;for(var r=0;o>r;r++){var a=x[r];if(a.toUpperCase()+"_"+n in s)return"@-"+a.toLowerCase()+"-"+e}return!1};y.atRule=$;var E=y.testStyles=u;E("#modernizr { width: 50vw; }",(function(e){var i=parseInt(t.innerWidth/2,10),n=parseInt(l(e,null,"width"),10);b.addTest("cssvwunit",n==i)}));var I={elem:a("modernizr")};b._q.push((function(){delete I.elem}));var M={style:I.elem.style};b._q.unshift((function(){delete M.style}
32)),y.testAllProps=m,y.prefixed=function(t,e,i){return 0===t.indexOf("@")?$(t):(-1!=t.indexOf("-")&&(t=r(t)),e?m(t,e,i):m(t,"pfx"))},y.testAllProps=f,b.addTest("flexbox",f("flexBasis","1px",!0)),b.addTest("touch",(function(){var i;if("ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch)i=!0;else{var n=["@media (",x.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");E(n,(function(t){i=9===t.offsetTop}))}return i})),function(){var t,e,i,o,s,r;for(var a in v)if(v.hasOwnProperty(a)){if(t=[],(e=v[a]).name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(i=0;i<e.options.aliases.length;i++)t.push(e.options.aliases[i].toLowerCase());for(o=n(e.fn,"function")?e.fn():e.fn,s=0;s<t.length;s++)1===(r=t[s].split(".")).length?b[r[0]]=o:(!b[r[0]]||b[r[0]]instanceof Boolean||(b[r[0]]=new Boolean(b[r[0]])),b[r[0]][r[1]]=o),g.push((o?"":"no-")+r.join("-"))}}(),o(g),delete y.addTest,delete y.addAsyncTest;for(var z=0;z<b._q.length;z++)b._q[z]();t.Modernizr=b}(window,document),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.Blazy=e()}(this,(function(){function t(t){var i=t._util;i.elements=function(t){for(var e=[],i=(t=t.root.querySelectorAll(t.selector)).length;i--;e.unshift(t[i]));return e}(t.options),i.count=i.elements.length,i.destroyed&&(i.destroyed=!1,t.options.container&&u(t.options.container,(function(t){c(t,"scroll",i.validateT)})),c(window,"resize",i.saveViewportOffsetT),c(window,"resize",i.validateT),c(window,"scroll",i.validateT)),e(t)}function e(t){for(var e=t._util,n=0;n<e.count;n++){var o,s=e.elements[n],a=s;o=t.options;var l=a.getBoundingClientRect();o.container&&f&&(a=a.closest(o.containerClass))?o=!!i(a=a.getBoundingClientRect(),_)&&i(l,{top:a.top-o.offset,right:a.right+o.offset,bottom:a.bottom+o.offset,left:a.left-o.offset}):o=i(l,_),(o||r(s,t.options.successClass))&&(t.load(s),e.elements.splice(n,1),e.count--,n--)}0===e.count&&t.destroy()}function i(t,e){return t.right>=e.left&&t.bottom>=e.top&&t.left<=e.right&&t.top<=e.bottom}function n(t,e,i){if(!r(t,i.successClass)&&(e||i.loadInvisible||0<t.offsetWidth&&0<t.offsetHeight))if(e=t.getAttribute(h)||t.getAttribute(i.src)){var n=(e=e.split(i.separator))[m&&1<e.length?1:0],l=t.getAttribute(i.srcset),p="img"===t.nodeName.toLowerCase(),_=(e=t.parentNode)&&"picture"===e.nodeName.toLowerCase();if(p||void 0===t.src){var f=new Image,g=function(){i.error&&i.error(t,"invalid"),a(t,i.errorClass),d(f,"error",g),d(f,"load",v)},v=function(){p?_||s(t,n,l):t.style.backgroundImage='url("'+n+'")',o(t,i),d(f,"load",v),d(f,"error",g)};_&&(f=t,u(e.getElementsByTagName("source"),(function(t){var e=i.srcset,n=t.getAttribute(e);n&&(t.setAttribute("srcset",n),t.removeAttribute(e))}))),c(f,"error",g),c(f,"load",v),s(f,n,l)}else t.src=n,o(t,i)}else"video"===t.nodeName.toLowerCase()?(u(t.getElementsByTagName("source"),(function(t){var e=i.src,n=t.getAttribute(e);n&&(t.setAttribute("src",n),t.removeAttribute(e))})),t.load(),o(t,i)):(i.error&&i.error(t,"missing"),a(t,i.errorClass))}function o(t,e){a(t,e.successClass),e.success&&e.success(t),t.removeAttribute(e.src),t.removeAttribute(e.srcset),u(e.breakpoints,(function(e){t.removeAttribute(e.src)}))}function s(t,e,i){i&&t.setAttribute("srcset",i),t.src=e}function r(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")}function a(t,e){r(t,e)||(t.className+=" "+e)}function l(t){_.bottom=(window.innerHeight||document.documentElement.clientHeight)+t,_.right=(window.innerWidth||document.documentElement.clientWidth)+t}function c(t,e,i){t.attachEvent?t.attachEvent&&t.attachEvent("on"+e,i):t.addEventListener(e,i,{capture:!1,passive:!0})}function d(t,e,i){t.detachEvent?t.detachEvent&&t.detachEvent("on"+e,i):t.removeEventListener(e,i,{capture:!1,passive:!0})}function u(t,e){if(t&&e)for(var i=t.length,n=0;n<i&&!1!==e(t[n],n);n++);}function p(t,e,i){var n=0;return function(){var o=+new Date;o-n<e||(n=o,t.apply(i,arguments))}}var h,_,m,f;return function(i){if(!document.querySelectorAll){var o=document.createStyleSheet();
32document.querySelectorAll=function(t,e,i,n,s){for(s=document.all,e=[],i=(t=t.replace(/\[for\b/gi,"[htmlFor").split(",")).length;i--;){for(o.addRule(t[i],"k:v"),n=s.length;n--;)s[n].currentStyle.k&&e.push(s[n]);o.removeRule(0)}return e}}var s=this,r=s._util={};r.elements=[],r.destroyed=!0,s.options=i||{},s.options.error=s.options.error||!1,s.options.offset=s.options.offset||100,s.options.root=s.options.root||document,s.options.success=s.options.success||!1,s.options.selector=s.options.selector||".b-lazy",s.options.separator=s.options.separator||"|",s.options.containerClass=s.options.container,s.options.container=!!s.options.containerClass&&document.querySelectorAll(s.options.containerClass),s.options.errorClass=s.options.errorClass||"b-error",s.options.breakpoints=s.options.breakpoints||!1,s.options.loadInvisible=s.options.loadInvisible||!1,s.options.successClass=s.options.successClass||"b-loaded",s.options.validateDelay=s.options.validateDelay||25,s.options.saveViewportOffsetDelay=s.options.saveViewportOffsetDelay||50,s.options.srcset=s.options.srcset||"data-srcset",s.options.src=h=s.options.src||"data-src",f=Element.prototype.closest,m=1<window.devicePixelRatio,(_={}).top=0-s.options.offset,_.left=0-s.options.offset,s.revalidate=function(){t(this)},s.load=function(t,e){var i=this.options;void 0===t.length?n(t,e,i):u(t,(function(t){n(t,e,i)}))},s.destroy=function(){var t=this._util;this.options.container&&u(this.options.container,(function(e){d(e,"scroll",t.validateT)})),d(window,"scroll",t.validateT),d(window,"resize",t.validateT),d(window,"resize",t.saveViewportOffsetT),t.count=0,t.elements.length=0,t.destroyed=!0},r.validateT=p((function(){e(s)}),s.options.validateDelay,s),r.saveViewportOffsetT=p((function(){l(s.options.offset)}),s.options.saveViewportOffsetDelay,s),l(s.options.offset),u(s.options.breakpoints,(function(t){if(t.width>=window.screen.width)return h=t.src,!1})),setTimeout((function(){t(s)}))}})),function(t){var e,i,n="center",o="left",s="right",r="auto";function a(e){this.$element=t(e),this.original_text=this.$element.html(),this.settings=t.extend({},t.fn.trunk8.defaults)}function l(){var e,n,o,s,a=this.data("trunk8"),l=a.settings,c=l.width,d=l.side,u=l.fill,p=i.getLineHeight(this)*l.lines,h=a.original_text,_=h.length,m="";if(this.html(h),c===r){if(this.height()<=p)return;for(e=0,n=_-1;e<=n;)o=e+(n-e>>1),s=i.eatStr(h,d,_-o,u),this.html(s),this.height()>p?n=o-1:(e=o+1,m=m.length>s.length?m:s);this.html(""),this.html(m),l.tooltip&&this.attr("title",h)}else isNaN(c)?t.error('Invalid width "'+c+'".'):(o=_-c,s=i.eatStr(h,d,o,u),this.html(s),l.tooltip&&this.attr("title",h))}a.prototype.updateSettings=function(e){this.settings=t.extend(this.settings,e)},e={init:function(e){return this.each((function(){var i=t(this),n=i.data("trunk8");n||i.data("trunk8",n=new a(this)),n.updateSettings(e),l.call(i)}))},update:function(e){return this.each((function(){var i=t(this);e&&(i.data("trunk8").original_text=e),l.call(i)}))},revert:function(){return this.each((function(){var e=t(this).data("trunk8").original_text;t(this).html(e)}))},getSettings:function(){return this.get(0).data("trunk8").settings}},i={eatStr:function(e,r,a,l){var c,d,u=e.length,p=i.eatStr.generateKey.apply(null,arguments);if(i.eatStr.cache[p])return i.eatStr.cache[p];if("string"==typeof e&&0!==u||t.error('Invalid source string "'+e+'".'),a<0||a>u)t.error('Invalid bite size "'+a+'".');else if(0===a)return e;switch("string"!=typeof(l+"")&&t.error("Fill unable to be converted to a string."),r){case s:return i.eatStr.cache[p]=t.trim(e.substr(0,u-a))+l;case o:return i.eatStr.cache[p]=l+t.trim(e.substr(a));case n:return c=u>>1,d=a>>1,i.eatStr.cache[p]=t.trim(i.eatStr(e.substr(0,u-c),s,a-d,""))+l+t.trim(i.eatStr(e.substr(u-c),o,d,""));default:t.error('Invalid side "'+r+'".')}},getLineHeight:function(e){var i,n=t(e),o=n.css("float"),s=n.css("position"),r=n.html(),a="line-height-test";return"none"!==o&&n.css("float","none"),"absolute"===s&&n.css("position","static"),n.html("i").wrap('<div id="'+a+'" />'),i=t("#"+a).innerHeight(),n.html(r).css({float:o,position:s}).unwrap(),i}},i.eatStr.cache={},i.eatStr.generateKey=function(){return Array.prototype.join.call(arguments,"")},t.fn.trunk8=function(i){return e[i]?e[i].apply(this,Array.prototype.slice.call(arguments,1
32)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.trunk8"):e.init.apply(this,arguments)},t.fn.trunk8.defaults={fill:"&hellip;",lines:1,side:s,tooltip:!0,width:r}}(jQuery);var responsiveSwitch=function(){var t=parseInt(window.responsiveSwitchBreakpoint)||1024,e="ResponsiveSwitch",i="content",n="data-rs",o="rs-link-to-desktop",s="rs-link-to-responsive",r="rs-link-inactive",a="rs-link-active";function l(){var o=document.querySelector('meta[name="viewport"]');return null==o.getAttribute(n)&&o.setAttribute(n,o.getAttribute(i)),o.getAttribute(i)==o.getAttribute(n)?(document.cookie=e+"=true;path=/",document.documentElement.clientWidth!=window.innerWidth?document.location.href=m():o.setAttribute(i,"width="+t+"px, initial-scale="+document.documentElement.clientWidth/t)):(document.cookie=e+"=false;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",document.documentElement.clientWidth!=window.innerWidth?document.location.href=m():o.setAttribute(i,o.getAttribute(n))),!1}var c=!1;function d(){for(var e=document.querySelectorAll(".rs-link"),i=0;i<e.length;i++){var n=e[i];null!=n&&(_(n,s),_(n,o),_(n,r),_(n,a),p()?(h(n,s),h(n,a),n.innerHTML=n.getAttribute("data-link-responsive")):document.documentElement&&(document.documentElement.clientWidth<t||"true"==n.getAttribute("data-always-visible"))?(h(n,o),h(n,a),n.innerHTML=n.getAttribute("data-link-desktop")):(h(n,r),n.innerHTML=""),c||n.addEventListener("click",(function(t){(t=t||window.event).preventDefault(),u()}),!1))}c=!0}function u(){l(),d()}function p(){return document.cookie.search(e+"=true")>-1}function h(t,e){t.className+=" "+e}function _(t,e){t.className=" "+t.className+" ",t.className=t.className.replace(" "+e+" ","")}function m(){var t=(new Date).getTime();return document.location.protocol+"//"+document.location.host+document.location.pathname+(window.location.search?window.location.search+"&":"?")+"rsTimestamp="+t+document.location.hash}return p()&&l(),document.addEventListener&&(document.addEventListener("DOMContentLoaded",d,!1),document.addEventListener("orientationchange",d,!1),window.addEventListener("resize",d,!1)),{toggle:u}}();function procesArrayFunctions(t){var e,i;for(e=0,i=t.length;e<i;e++){$(t[e][1]).length&&t[e][0]($(t[e][1]))}}$.fn.maxHeightO=function(){var t=0;return this.each((function(){t=Math.max(t,$(this).outerHeight())})),t},$.fn.maxHeight=function(){var t=0;return this.height("auto"),this.each((function(){t=Math.max(t,$(this).outerHeight())})),this.height(t),this};var setMobileClass=function(){$("[data-tablet-class]").each((function(){$(this).removeClass($(this).attr("data-tablet-class"))})),$("[data-mobile-class]").each((function(){$(this).addClass($(this).attr("data-mobile-class"))})),$("html").addClass("_mobile")},setTabletClass=function(){$("[data-mobile-class]").each((function(){$(this).removeClass($(this).attr("data-mobile-class"))})),$("[data-tablet-class]").each((function(){$(this).addClass($(this).attr("data-tablet-class"))})),$("html").removeClass("_mobile")};app_shop.formControl={vars:{minLength:function(t){return app_shop.txt.txt_validation1+t+"."},maxLength:function(t){return app_shop.txt.txt_validation2+t+"."},email:app_shop.txt.txt_validation3,required:app_shop.txt.txt_validation4,bankAccount:app_shop.txt.txt_validation5,phone:app_shop.txt.txt_validation6},patterns:{email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},timeHandle:"",ajaxValidation:function(t,e,i,n,o){var s,r,a,l,c,d;if(r=this,a=t.parent(),l=t.data("validation"),d=t.data("ajaxtype"),s=l+"="+e,t.data("serialize")&&t.data("serialize").indexOf("data-")>-1&&(s+="&"+t.attr(t.data("serialize"))),""==e)return r.clearValidation(a),r.resetRequiredClass(a),!1;"get"==d?$.get(i,s,(function(e){e.errno?("bankAccount"==l&&(c=r.vars.bankAccount),r.addError(t,c),o&&o()):(r.addSuccess(t),n&&n())}),"json"):$.post(i,s,(function(e){e.errno?("bankAccount"==l&&(c=r.vars.bankAccount),r.addError(t,c),o&&o()):(r.addSuccess(t),n&&n())}),"json")}
32,ajaxValidationWithData:function(t,e,i,n){$.post(t,e,(function(t){0!=t.errno?n&&n(t):i&&i(t)}),"json")},validate:function(t,e){var i,n,o,s,r,a,l;if(o=t.parent(),i=t.attr("type"),n=t.val(),this.patterns.email,s=t.attr("minlength"),r=t.attr("maxlength"),a=t.data("validate"),l=t.data("validation-url"),"checkbox"==t.attr("type"))t.is(":checked")?t.parents(".has-feedback, .f-feedback").removeClass("has-error --error").addClass("has-success --success"):t.parents(".has-feedback, .f-feedback").removeClass("has-success --success").addClass("has-error --error");else if(l)this.ajaxValidation(t,n,l);else{if(s){if(n.length<s)return this.addError(t,this.vars.minLength(s)),!1;this.addSuccess(t)}if(r){if(n.length>r)return this.addError(t,this.vars.minLength(r)),!1;this.addSuccess(t)}"email"==i&&this.checkMail(t),a&&"text"==i&&(a.indexOf("phone")>-1||a.indexOf("email")>-1)&&($.isNumeric(n)?n.length<9?this.addError(t,this.vars.phone):this.addSuccess(t):a.indexOf("email")>-1?this.checkMail(t):a.indexOf("phone")>-1&&this.addError(t,this.vars.phone)),n||e||(this.clearValidation(o),this.resetRequiredClass(o))}},checkMail:function(t){t.val().match(this.patterns.email)?this.addSuccess(t):this.addError(t,this.vars.email)},checkForm:function(t,e){var i,n,o;return i=t.find("input.validate:enabled:visible, textarea.validate:enabled:visible, input.--validate:enabled:visible, textarea.--validate:enabled:visible"),t.find('input[type="checkbox"]').not("[disabled]").not(":checked"),o=this,!i.length||(i.each((function(){o.validate($(this),!0)})),this.resetRequiredClass(i),!(n=t.find(".has-error:visible:first, .--error:visible:first")).length||($("html, body").animate({scrollTop:app_shop.vars.view<3?n.offset().top-10-$("header").outerHeight():n.offset().top-10},300),!1))},checkValidateFields:function(t,e){var i=t.find("input.validate:enabled:visible, textarea.validate:enabled:visible, input.--validate:enabled:visible, textarea.--validate:enabled:visible"),n=t.find("input#terms_agree[required]").not("[disabled]").not(":checked"),o=!0;if((that=this,this.resetRequiredClass(i),i.length)&&(i.each((function(){$this=$(this),o=!$.trim($this.val()),$this.is("[required]")&&o&&(that.addError($this),$this.parents(".form-group, .f-group").find(" > div").append('<span class="help-block validate_message text-danger">'+app_shop.txt.txt_validation4+"</span>"),n.each((function(){that.addError($this)})))})),that.resetRequiredClass(t),t.find(".has-error:visible:first, .--error:visible:first").length))return!1;return!0},addSuccess:function(t){this.clearValidation(t.parent()),this.removeErrorInfo(t),(t=t.is("[type=checkbox]")?t.parents("div.checkbox, .--checkbox"):t.parent()).addClass("has-success --success")},addError:function(t,e){this.clearValidation(t.parent()),e&&this.addErrorInfo(t,e),(t=t.is("[type=checkbox]")?t.parents("div.checkbox, .--checkbox"):t.parent()).addClass("has-error --error")},clearValidation:function(t){this.removeErrorInfo(t),t.removeClass("has-success has-error has-required --success --error --required")},resetRequiredClass:function(t){t.find("input.validate[required], input.--validate[required]").parent().not(".has-success,.has-error,.checkbox, .--success, .--error, .--checkbox").addClass("has-required --required")},addErrorInfo:function(t,e){this.removeErrorInfo(t),t.parent().append('<span class="help-block validate_message text-danger">'+e+"</span>")},removeErrorInfo:function(t){t.children(".validate_message").remove()}},$.fn.setHeight=function(t){var e=Math.round(t.outerWidth(!0)/t.children().outerWidth(!0)),i=t.children().length;if(e>0)for(var n=0;n<i;n+=e){var o=t.children().slice(n,n+e);o.find(this).length&&(o=o.find(this)),o.removeAttr("style"),o.css("min-height",o.maxHeightO())}};const HotspotSlider=function(t){return this.params=t,this.defaults={prevArrow:`<a class="hotspot__arrow --prev" href=""><span>${app_shop.txt.hotspot_prev}</span></a>`,nextArrow:`<a class="hotspot__arrow --next" href=""><span>${app_shop.txt.hotspot_next}</span></a>`,dotsClass:"hotspot__dots",arrows:!0,dots:!0,slidesToShow:6,slidesToScroll:6,responsive:[{breakpoint:1200,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:979,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:757,settings:{slidesToShow:1,slidesToScroll:1,swipeToSlide:!0,centerMode:!0,centerPadding:"24vw",dots:!1}},{breakpoint:550,settings:{slidesToShow:1,slidesToScroll:1,swipeToSlide:!0,centerMode:!0,centerPadding:"18vw",dots:!1}}]},this.init=()=>{const{selector:t,options:e,callbackBefore:i,callbackAfter:n}
32=this.params;this.settings=_objectSpread({},this.defaults,{},e),this.selector=t,this.slider=$(t),"function"==typeof i&&i(this.slider),this.slider.on("afterChange",(function(){app_shop.vars.bLazy&&app_shop.vars.bLazy.revalidate()})),"function"==typeof n&&n(this.slider)},this.reset=()=>{this.slider&&this.slider.slick("unslick"),this.init(this.params)},this.destroy=()=>{this.slider&&this.slider.slick("unslick")},this.init()};app_shop.fn.multiSlideAdaptiveHeight=t=>{const e=[];let i=0;setTimeout((function(){$(t).addClass("--adaptive"),$(".slick-track .slick-active",t).each((function(t){e[t]=$(this).outerHeight()})),e.forEach((t=>{t>i&&(i=t)})),$(".slick-list",t).height(i)}),10)};const SelectToDropdown=function(t){return this.params=t,this.init=()=>{const{selector:t,generateDropdownCallback:e,clickDropdownCallback:i,afterClickDropdownCallback:n,disableMobileView:o}=this.params;this.selects=document.querySelectorAll(t),this.generateDropdownCallback=e,this.clickDropdownCallback=i,this.afterClickDropdownCallback=n,this.disableMobileView=o,this.selects.length&&(this.generateDropdown(),document.addEventListener("click",this.closeDropdown))},this.generateDropdown=()=>{this.selects.forEach((t=>{t.selectedIndex<0&&(t.selectedIndex=0);const e=`<div class="f-dropdown f-group ${t.getAttribute("class")} ${this.disableMobileView?"--disable-mobile-view":""}">\n        <button type="button" class="f-control f-dropdown-toggle${t.disabled?" --disabled":""}" data-indexcurrent="${t.options[t.selectedIndex].index}">\n          ${t.hasAttribute("data-label")?`<strong class="f-dropdown-label">${t.getAttribute("data-label")}</strong>`:""}\n          <span class="f-dropdown-button">${t.options[t.selectedIndex].text}</span>\n        </button>\n        <ul class="f-dropdown-menu">\n          ${[...t.querySelectorAll("option")].map(((t,e)=>`\n            <li class="f-dropdown-li${t.hasAttribute("class")?` ${t.getAttribute("class")}`:""}${t.disabled?" --disabled":""}">\n              <a class="f-dropdown-item${t.selected?" --selected":""}" href="#${t.getAttribute("value")}" data-index="${e}" data-value="${t.getAttribute("value")}" ${[...t.attributes].filter((t=>t.name.startsWith("data-"))).map((t=>`${t.name}="${t.value}"`)).join(" ")}>${t.innerHTML}</a>\n            </li>\n          `)).join("")}\n        </ul>\n      </div>`,i=document.createElement("div");i.innerHTML=e;const n=i.firstChild;t.insertAdjacentElement("afterend",n),n.insertBefore(t,n.firstChild),Object.values(t.classList).forEach((e=>t.classList.replace(e,`${e}-select`))),this.openDropdown(n),this.clickDropdown(n),this.disableMobileView||this.mobileView(n),this.generateDropdownCallback&&this.generateDropdownCallback(n)}))},this.mobileView=t=>{t.querySelector("select").addEventListener("change",(function(){const e=this.selectedIndex;t.querySelectorAll(".f-dropdown-li").forEach((t=>{parseInt(t.querySelector(".f-dropdown-item").getAttribute("data-index"),10)===e&&t.click()}))}))},this.openDropdown=t=>{t.querySelector("button.f-dropdown-toggle").addEventListener("click",(function(t){if(t.preventDefault(),this.classList.contains("--disabled"))return!1;this.parentNode.classList.toggle("--open")}))},this.closeDropdown=t=>{document.querySelectorAll(".f-dropdown").forEach((e=>!!e.classList.contains("--open")&&((!t||"click"!==t.type||e===t||!e.contains(t.target))&&void e.classList.remove("--open"))))},this.clickDropdown=t=>{if(this.clickDropdownCallback)this.clickDropdownCallback(t);else{const e=this.afterClickDropdownCallback;t.querySelectorAll(".f-dropdown-li").forEach((i=>{i.addEventListener("click",(function(i){i.preventDefault();const n=this.querySelector(".f-dropdown-item"),o=t.querySelectorAll(".f-dropdown-item"),s=n.getAttribute("data-index"),r=n.innerHTML,a=t.querySelector("select"),l=t.querySelector("button.f-dropdown-toggle"),c=l.querySelector(".f-dropdown-button"),d=t.querySelector(".f-dropdown-item.--selected");o.forEach((t=>t.classList.remove("--selected","--prev"))),d.classList.add("--prev"),n.classList.add("--selected"),a.selectedIndex=s,c.innerHTML=r,l.setAttribute("data-indexcurrent",n.getAttribute("data-index")),t.classList.remove("--open"),e&&e(this)}))}))}},this.destroy=()=>
32{this.selects.forEach((t=>{const e=t.closest(".f-dropdown");e&&(e.insertAdjacentElement("afterend",t),e.remove(),t.classList.forEach((e=>t.classList.replace(e,e.slice(0,-7)))))}))},this.reInit=()=>{this.destroy(),this.init()},this.init()};app_shop.fn.changeLiteral=(t,e,i)=>{const n=t%10,o=t%100,s=[];return!0!==i&&s.push(t),1===t&&e[1]?s.push(e[1]):(0===t||n>=0&&n<=1||n>=5&&n<=9||o>10&&o<20)&&e[0]?s.push(e[0]):(o<10||o>20)&&n>=2&&n<=4&&e[2]&&s.push(e[2]),s.join(" ")};const HotspotAjaxInit=function(t){const e=this;return this.params=t||{},this.vars={loaded:!1,hotspotElements:document.querySelectorAll("[data-ajaxload=true]")},this.fetchHotspots=async t=>{try{const e=await fetch(t);return await e.json()}catch(t){return console.error("AJAX fetchHotspots() Error:",t),!1}},this.hotspotInView=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(e.vars.loaded||(e.getHotspot(),e.vars.loaded=!0),e.hotspotInView.unobserve(t.target))}))})),this.getHotspot=async()=>{let t="";document.querySelector(".projector_page")&&(t=document.getElementById("projector_product_hidden")&&document.getElementById("projector_product_hidden").value||document.getElementById("projector_form")&&document.getElementById("projector_form").getAttribute("data-product_id")||"");const i=[];document.querySelector(".basketedit_page")&&(document.querySelectorAll(".productslist_item").forEach((t=>{i.push(t.querySelector('input[name*="product"]').value)})),document.querySelectorAll(".basket__block[data-product-id]").forEach((t=>{i.push(t.querySelector('input[name*="product"]').value)})));const n=[...this.vars.hotspotElements].map((t=>t.getAttribute("id"))).join(","),o=`/ajax/hotspots.php?action=get-hotspots-html&zones-names=${n}&components=${n}&zones-types=${[...this.vars.hotspotElements].map((t=>t.getAttribute("data-pagetype"))).join(",")}&product=${t}&products=${i.join(";")}`;this.vars.hotspotElements.forEach((t=>{t.classList.add("load-content")}));const s=await this.fetchHotspots(o);s?(this.vars.hotspotElements.forEach((t=>{t.classList.remove("load-content")})),Object.keys(s).forEach((t=>{const i=document.getElementById(t);""!==s[t]?i&&(i.outerHTML=s[t]):i&&i.parentNode.removeChild(i),app_shop.vars.bLazy&&app_shop.vars.bLazy.revalidate(),e.afterOneHotspotCallback&&e.afterOneHotspotCallback(i)})),e.afterAllHotspotsCallback&&e.afterAllHotspotsCallback()):this.vars.hotspotElements.forEach((t=>{t.parentNode.removeChild(t)}))},this.init=()=>{const{afterOneHotspotCallback:t,afterAllHotspotsCallback:i}=this.params;this.afterOneHotspotCallback=t||!1,this.afterAllHotspotsCallback=i||!1,this.vars.hotspotElements.forEach((t=>{e.hotspotInView.observe(t)}))},this.init()};function FixedElement(t="element",e="--fixed",i="spacerClass",n="top",o=()=>{}){const s=this;let r=!1;const a=document.querySelector(t),l={elH:a.getBoundingClientRect().height,elOffset:a.getBoundingClientRect().top+a.ownerDocument.defaultView.pageYOffset};this.revalidate=()=>{l.elH=a.getBoundingClientRect().height;const t=document.querySelector(`.${i}`);l.elOffset=t?t.getBoundingClientRect().top+t.ownerDocument.defaultView.pageYOffset:a.getBoundingClientRect().top+a.ownerDocument.defaultView.pageYOffset,r=!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(e)&&(a.classList.add(e),(t=>{let e=document.createElement("div");e.className=i,e.style.paddingTop=`${t}px`,a.after(e)})(l.elH),o(!0)):a.classList.contains(e)&&(a.classList.remove(e),(()=>{const t=document.querySelector(`.${i}`);t&&t.parentNode.removeChild(t)})(),o(!1))},this.init=()=>{if(null===a)return!1;window.addEventListener("scroll",(()=>{r=!0})),scroll=setInterval((function(){r&&(r=!1,s.modifyElement())}),30),s.modifyElement()},this.clear=()=>{clearInterval(scroll)}}Modal=function(t){const e=this;if(this.params=t||{},this.closeModal=()=>{const t=document.getElementById("modal");this.beforeClose&&this.beforeClose(t);const e=document.getElementById("modal_placeholder");if(e){const i=t.querySelector(".modal__content > *");e.insertAdjacentElement("afterend",i),e.parentNode.removeChild(e)}t.parentNode.removeChild(t),document.documentElement.classList.remove("--modal"),document.removeEventListener("click",this.events.eventDelegation,!0),document.removeEventListener("keydown",this.events.escClick),this.afterClose&&this.afterClose(t,this)},this.createElement=t=>{const{element:e,classes:i,id:n,href:o}=t,s=document.createElement(e);return void 0!==i&&(s.className=i),void 0!==n&&(s.id=n),void 0!==o&&(s.href=o),s},this.createModal=()=>{document.getElementById("modal")&&this.closeModal();const t=this.createElement({element:"div",classes:this.classList?`modal ${this.classList}`:"modal",id:"modal"}),e=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"}),o=this.createElement({element:"div",classes:"modal__content"});this.element?this.element instanceof jQuery&&this.element.length?(document.body.contains(this.element[0])&&this.element[0].insertAdjacentElement("afterend",i),o.appendChild(this.element[0])):this.element instanceof jQuery||
32(document.body.contains(this.element)&&this.element.insertAdjacentElement("afterend",i),o.appendChild(this.element)):this.html&&(o.innerHTML=this.html),e.appendChild(n),e.appendChild(o),t.appendChild(e),document.documentElement.classList.add("--modal"),this.initEvents(),this.beforeShow&&this.beforeShow(t,this),document.body.appendChild(t),this.classList&&this.classList.includes("--absolute")&&window.scrollTo(0,0),app_shop?.vars?.bLazy?.revalidate(),this.afterShow&&this.afterShow(t,this)},this.events={eventDelegation:t=>{const i=document.getElementById("modal"),n=!(!document.getElementById("topLayerBackDrop")||"none"===document.getElementById("topLayerBackDrop").style.display),o=!(!document.querySelector("#iai_cookie_wrapper")||document.querySelector("#iai_cookie_wrapper").classList.contains("d-none"));return(i&&!i.querySelector(".modal__wrapper").contains(t.target)&&!n&&!o&&"INPUT"!==document.activeElement.tagName||t.target.closest(".modal__close"))&&(t.preventDefault(),e.closeModal()),!1},escClick:t=>{"Escape"===t.key&&e.closeModal()}},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.init=()=>{const{element:t,html:e,classList:i,beforeShow:n,afterShow:o,beforeClose:s,afterClose:r}=this.params;this.element=t||!1,this.html=e||!1,this.beforeShow=n||!1,this.afterShow=o||!1,this.beforeClose=s||!1,this.afterClose=r||!1,this.classList=i||!1,this.createModal()},!this.params.notInit)return this.init()},app_shop.run((function(){document.querySelectorAll("form").forEach((t=>{t.addEventListener("submit",(t=>{t.target.classList.add("--submitting"),t.target.addEventListener("submit",(t=>(t.preventDefault(),!1)))}))}))}),"all","form"),app_shop.run((function(){document.querySelectorAll("[data-change-literal-days]").forEach((t=>{const e=+t.getAttribute("data-change-literal-days");t.textContent=app_shop.fn.changeLiteral(e,["dni","dzień","dni"],!1)}))}),"all","[data-change-literal-days]",!0),app_shop.run((function(){document.querySelectorAll("[data-change-literal-days-up-to]").forEach((t=>{const e=+t.getAttribute("data-change-literal-days-up-to");t.textContent=app_shop.fn.changeLiteral(e,["dni","dnia","dni"],!1)}))}),"all","[data-change-literal-days-up-to]",!0),app_shop.txt.txt_succes_basket_add="Produkt został dodany do koszyka",app_shop.txt.txt_error_basket_add="Wystąpił błąd przy dodaniu produkta do koszyka",app_shop.txt.txt_error_availibility="Maksymalnie możesz dodać: ",app_shop.txt.txt_error_input_num_value="Minimalnie możesz dodać: ",app_shop.txt.basket_message_succes="Produkt został dodany do koszyka",app_shop.txt.basket_message_error="Wystąpił błąd podczas dodawania do koszyka",app_shop.fn.productData=[],app_shop.fn.initProductDataSearch=(t="")=>{document.querySelectorAll(t).forEach((t=>{const e=t?.querySelector(".add_to_basket__wrapper"),i=!t?.classList.contains("--active-buy");e&&i&&(app_shop.fn.productData=[...app_shop.fn.productData,{id:e.getAttribute("data-id"),availableAmount:-1===parseInt(e.getAttribute("data-amount"))?1/0:parseInt(e.getAttribute("data-amount")),quantity:parseInt(e.getAttribute("data-quantity")),unitSellby:parseInt(e.getAttribute("data-unit_sellby")),size:e.getAttribute("data-size"),unit:e.getAttribute("data-unit")}])}))};const addProductsToBasketQuery=t=>{const{id:e,size:i,quantity:n}=app_shop.fn.productData.find((e=>e.id===t));return{query:`\n            mutation addProductsToBasket{\n            addProductsToBasket(ProductInput : [{id: ${e}, size: "${i}", quantity: ${n}}]){\n                status,\n                results{\n                    status,\n                    error{\n                        code,\n                        message\n                    }\n                }\n            }\n        }`}};function Bars(){this.calculatePosition=(t,e)=>t.reduce(((t,i,n)=>n<e?t+i.offsetHeight:t),0),this.setPosition=()=>{const t=[...document.querySelectorAll(".bars_top .bars__item[data-fixed]")];t.forEach(((e,i)=>{e.style.setProperty("--position",this.calculatePosition(t,i))}));const e=[...document.querySelectorAll(".bars_bottom .bars__item[data-fixed]")].reverse();e.forEach(((t,i)=>{t.style.setProperty("--position",this.calculatePosition(e,i))}))},this.fixed=()=>{document.querySelectorAll(".bars__item[data-fixed]").forEach((t=>{const e=+getComputedStyle(t).getPropertyValue("--position"),i=t.getBoundingClientRect().top-e,n=t.getBoundingClientRect().bottom+e-window.innerHeight;i<0||n>=0?(t.style.setProperty("min-height",`${t.offsetHeight}px`),t.classList.add("--fixed")):(t.classList.remove("--fixed"),t.style.removeProperty("min-height"))}))},this.closeBarClick=t=>{const{target:e}=t;if(e.closest(".bars__close")){t.preventDefault();const i=e.closest(".bars__item");i.parentNode.removeChild(i),this.saveClosing(i),this.reset()}},this.removeClosedBars=()=>
32{(JSON.parse(localStorage.getItem("closedBars"))||[]).forEach((t=>{const e=document.getElementById(t);e&&e.parentNode.removeChild(e)})),this.checkEmptyBars()},this.checkEmptyBars=()=>{const t=document.querySelector(".bars_top");0===t?.childNodes.length&&t.parentNode.removeChild(t);const e=document.querySelector(".bars_bottom");0===e?.childNodes.length&&e.parentNode.removeChild(e)},this.saveClosing=t=>{const{id:e}=t,i=JSON.parse(localStorage.getItem("closedBars"))||[];i.push(e),localStorage.setItem("closedBars",JSON.stringify(i))},this.setBarsHeight=()=>{if(document.documentElement.classList.contains("--scroll-down"))return!1;const t=document.querySelector(".bars_top")?.offsetHeight;return document.documentElement.style.setProperty("--bars-height",`${t}px`),!0},this.clearAll=()=>{document.querySelectorAll(".bars__item[data-fixed]").forEach((t=>{t.classList.remove("--fixed"),t.style.removeProperty("--position"),t.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.addProductsToBasket=t=>{(t||document.querySelectorAll(".product:not(.--active-buy) .add_to_basket__wrapper")).forEach((t=>{const e=t.querySelector(".add_to_basket_btn"),i=async(t,e)=>{await(async(t,e)=>{document.querySelector(`.add_to_basket__wrapper[data-id="${t}"] .add_to_basket_btn`).classList.add("--loading");try{const t=await fetch("/graphql/v1/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)});return await t.json()}catch(t){return console.error("AJAX fetchDataGraphQL() Error:",t),!1}})(t,e).then((e=>{const i=e.data.addProductsToBasket;if(document.querySelector(`.add_to_basket__wrapper[data-id="${t}"] .add_to_basket_btn`).classList.remove("--loading"),"success"===i.status){if(null===i.results[0].error&&"error"!==i.results[0].status)return menu_basket_cache(),document.querySelector(".topBasket.--hide")&&document.querySelector(".topBasket.--hide").classList.remove("--hide"),fetch("/return.php"),Alertek.Success(app_shop.txt.basket_message_succes);Alertek.Error(app_shop.txt.basket_message_error),console.error(i.results[0].error.message)}}))};e.addEventListener("click",(e=>{e.preventDefault(),i(t.getAttribute("data-id"),addProductsToBasketQuery(t.getAttribute("data-id")))})),t.closest(".product").classList.add("--active-buy")}))},document.addEventListener("DOMContentLoaded",(function(){var t=document.querySelector("header"),e=document.getElementById("menu_categories"),i=Math.round(window.scrollY||document.documentElement.scrollTop);function n(){window.innerWidth>978?t.classList.add("header_desktop"):t.classList.remove("header_desktop")}n(),window.addEventListener("resize",n),window.addEventListener("scroll",(function(){if(window.innerWidth>978){var n=Math.round(window.scrollY||document.documentElement.scrollTop);if(n<0)return;n>50?t.classList.add("scrolled"):t.classList.remove("scrolled"),n>i?(e.classList.add("menu_categories__scrolled"),t.classList.add("scrolled")):(e.classList.remove("menu_categories__scrolled"),t.classList.remove("scrolled")),i=n}}))})),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.txt.txt_118559_6="",!app_shop.txt.txt_118559_6&&(app_shop.txt.txt_118559_6=1),app_shop.run((()=>{console.log("test"),null===$.cookie("rabateCode_clicked")&&Boolean(document.querySelector("#rabateCode"))?$("html").addClass("--rabateCode"):($("#rabateCode").remove(),$("html").removeClass("--rabateCode")),$("#rabateCode .rabateCode__close").on("click",(function(t){return t.preventDefault(),$.cookie("rabateCode_clicked",!0,{expires:parseInt(app_shop.txt.txt_1185
3259_6)}),$("#rabateCode").remove(),$("html").removeClass("--rabateCode"),!1}))}),"all",".--rabateCode"),document.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelector(".top_banner__customer-service"),e=document.querySelector(".top_banner__club");t.addEventListener("click",(()=>{t.querySelector(".top_baner__down").classList.toggle("top_bner__up");document.querySelector(".top_banner__customer-service-list").classList.toggle("top_banner--visible")})),e.addEventListener("click",(()=>{e.querySelector(".top_baner__down").classList.toggle("top_baner__up");document.querySelector(".top_banner__club-list").classList.toggle("top_banner--visible")}))})),app_shop.run((function(){app_shop.fn.searchResults=new SearchResults({resultsLimit:6,inputLengthToStartSearching:2})}),"all","#menu_search"),app_shop.run((function(){const t=localStorage.getItem("loyalityProgram"),e=document.querySelector(".loyalty-program--banner--mobile"),i=document.getElementById("main_banner1");i&&t&&(e?.classList.remove("--hidden"),i?.classList.add("loyalty-margin"))}),"all","#menu_search");const searchTxt={categories:"Kategorie",cms:"Informacje",beforeProducer:"Producent: ",beforeSeries:"Seria: ",separator:" / ",buttonAllText:"Pokaż wszystkie",telPrice:"Cena na telefon"};SearchResults=function(t){const e=this;return this.params=t||{},this.vars={typingTimer:"",doneTypingInterval:500,searchResultQuery:"/graphql/v1/"},this.fetchData=async()=>{const t=this.searchInput.value;if(t.length<this.inputLengthToStartSearching)return!1;if(sessionStorage.getItem(`search_${t}`))return JSON.parse(sessionStorage.getItem(`search_${t}`));const e=JSON.stringify({query:`query {\n        productsTextSearch(searchInput: {\n            text: "${t}",\n            limit: ${this.resultsLimit}\n          }) {\n            products {\n              name, link, iconSmall,\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:e}),n=(await i.json()).data.productsTextSearch;return sessionStorage.setItem(`search_${t}`,JSON.stringify(n)),n}catch(t){return console.error("AJAX fetchDataSearchResults() Error:",t),!1}},this.openResults=()=>{this.searchInput.closest("form").classList.add("--open"),this.resultsWrapper.scrollTop=0,document.documentElement.classList.add("--results-open");const t=document.querySelector(".search_result");t.style.display="block",t.style.padding="0",document.querySelector("#container")&&document.documentElement.classList.add("--results-main-open")},this.closeResults=()=>{this.searchInput.closest("form").classList.remove("--open"),document.documentElement.classList.remove("--results-open");document.querySelector(".search_result").style.display="",document.querySelector("#container")&&document.documentElement.classList.remove("--results-main-open")},this.buildResult=async()=>{this.searchInput.closest("form").classList.add("--loading");const t=await this.fetchData();if(this.searchInput.closest("form").classList.remove("--loading"),this.resultsWrapper.innerHTML="",t){if(!Object.values(t).filter((t=>t?t.length:"")).length)return this.closeResults(),!1;if(this.openResults(),t.searchQueries&&t.searchQueries.length){const e=this.searchInput.value,i=new RegExp(e,"i");this.resultsWrapper.innerHTML+=`\n          <div class="search_result__block --queries">\n            ${t.searchQueries.map((t=>`<a class="search_result__item --query" href="${t.link}">${t.name.replace(i,"<b>$&</b>")}</a>`)).join("")}\n          </div>\n        `}Object.keys(t).filter((t=>"searchQueries"!==t)).some((e=>t[e]?t[e].length:""))&&(this.resultsWrapper.innerHTML+='<div class="search_result__block --others"></div>',t.products&&t.products.length&&(this.resultsWrapper.querySelector(".search_result__block.--others").innerHTML+=`\n            <div class="search_result__sub --products">\n              ${t.products.map((t=>`\n                <a class="search_result__item --product" href="${t.link}">
32\n                  <span class="search_result__icon"><img src="${t.iconSmall}" alt="${t.name}" /></span>\n                  <span class="search_result__name_wrapper">\n                    <span class="search_result__name">${t.name}</span>\n                    <span class="search_result__price">${e.netPrice?0!==t.price.price.net.value?t.price.price.net.formatted:searchTxt.telPrice:0!==t.price.price.gross.value?t.price.price.gross.formatted:searchTxt.telPrice}</span>\n                  </span>\n                </a>\n              `)).join("")}\n              <button type="submit" class="search_result__item --button-all${e.buttonAllClass}">${searchTxt.buttonAllText}</button>\n            </div>\n          `),(t.producers&&t.producers.length||t.series&&t.series.length||t.menuNodes&&t.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                ${t.producers?t.producers.map((t=>`\n                  <a class="search_result__item --producer" href="${t.link}">\n                    <span class="search_result__name_label">${searchTxt.beforeProducer}</span><span class="search_result__name">${t.name}</span>\n                  </a>\n                `)).join(""):""}\n\n                ${t.series?t.series.map((t=>`\n                  <a class="search_result__item --series" href="${t.link}">\n                    <span class="search_result__name_label">${searchTxt.beforeSeries}</span><span class="search_result__name">${t.name}</span>\n                  </a>\n                `)).join(""):""}\n\n                ${t.menuNodes?t.menuNodes.map((t=>`\n                  <a class="search_result__item --menu" href="${t.link}">\n                    <span class="search_result__name">${t.bc?t.bc.item.map((t=>t.title)).join(searchTxt.separator):t.name}</span>\n                  </a>\n                `)).join(""):""}\n              </div>\n            </div>\n          `),t.cms&&t.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                ${t.cms.map((t=>`\n                  <a class="search_result__item --cms" href="${t.link}">\n                    <span class="search_result__name">${t.name}</span>\n                  </a>\n                `)).join("")}\n              </div>\n            </div>\n          `))}else this.closeResults();return this.afterBuildResult&&this.afterBuildResult(t),!0},this.updateSearchInput=()=>{const t=e.resultsWrapper.querySelector(".search_result__item.--active .search_result__name")?e.resultsWrapper.querySelector(".search_result__item.--active .search_result__name").textContent:e.resultsWrapper.querySelector(".search_result__item.--active").textContent;e.searchInput.value=t},this.updateFocusElement=t=>{this.resultsWrapper.querySelectorAll(".search_result__item").forEach((t=>t.classList.remove("--active"))),"null"!=typeof t&&t.classList.add("--active"),"null"!=typeof t&&t.focus(),this.updateSearchInput()},this.initEvents=()=>{const t=document.querySelector(".menu_search__clean"),i=document.getElementById("menu_search");i&&i.addEventListener("submit",(function(){const t=e.searchInput.getAttribute("data-value");t&&(e.searchInput.value=t)})),this.searchInput.addEventListener("input",(function(){this.value.length>0?t.style.display="block":t.style.display="none"})),t.addEventListener("click",(function(i){i.preventDefault(),e.searchInput.value="",e.searchInput.setAttribute("data-value",""),t.style.display="none",e.resultsWrapper.innerHTML="",e.closeResults(),e.searchInput.focus()})),this.searchInput.addEventListener("keyup",(function(t){const i=t.
32which||t.keyCode||0;37!==i&&38!==i&&39!==i&&40!==i&&(e.searchInput.setAttribute("data-value",this.value),clearTimeout(e.vars.typingTimer),e.vars.typingTimer=setTimeout(e.buildResult,e.vars.doneTypingInterval),document.querySelector("html._mobile:not(.sidebar_open):not(.--search-open) .main_page")&&window.scrollTo(0,0))})),this.searchInput.addEventListener("keydown",(function(t){const i=t.which||t.keyCode||0;return 37===i||38===i||39===i||40===i||(e.searchInput.setAttribute("data-value",this.value),clearTimeout(e.vars.typingTimer),e.searchInput.closest("form").classList.add("--focus"),!document.querySelector(".--search-open")||13!==i)||(t.preventDefault(),this.closest("form").submit(),!1)})),this.searchInput.addEventListener("focus",(function(){this.closest("form").classList.add("--focus")})),document.querySelector(".search_result, .search_result__block").addEventListener("scroll",(function(){app_shop.vars.view<3&&document.activeElement.blur()})),document.addEventListener("keydown",(function(t){const i=t.which||t.keyCode||0;if(!e.searchInput.closest("form.--open.--focus"))return;const n=e.resultsWrapper.querySelector(".search_result__item.--active"),o=[...e.resultsWrapper.querySelectorAll(".search_result__item"),e.resultsWrapper.querySelector(".search_result__button_all")].filter(Boolean),s=e.resultsWrapper.querySelector(".search_result__item.--query"),r=e.resultsWrapper.querySelector(".search_result__block.--others .search_result__item");if(n)if(37===i||38===i||39===i||40===i){t.preventDefault();const a=o.indexOf(n);switch(i){case 40:a>-1&&o[a+1]?e.updateFocusElement(o[a+1]):e.updateFocusElement(o[0]);break;case 38:a>-1&&o[a-1]?e.updateFocusElement(o[a-1]):e.updateFocusElement(o[o.length-1]),e.updateSearchInput();break;case 37:1!==app_shop.vars.view&&s&&r&&e.updateFocusElement(s);break;case 39:1!==app_shop.vars.view&&s&&r&&e.updateFocusElement(r)}}else 13!==i&&e.searchInput.focus();else 40===i&&(t.preventDefault(),o.length&&e.updateFocusElement(o[0]))})),document.addEventListener("click",(function(t){t.target.closest(".--search-open .menu_search__submit")&&(t.preventDefault(),document.documentElement.classList.remove("--search-open","--results-main-open"),$(".main_slider").slick("slickSetOption","autoplay",!0,!0)),t.target.closest("header .navbar-toggler")&&document.documentElement.classList.remove("--results-main-open");const i=document.querySelector(".menu_search__block");return e.searchInput.closest("form").classList.contains("--focus")&&(!e.searchInput.closest("form").contains(t.target)||i&&!i.contains(t.target))&&(e.closeResults(),e.searchInput.closest("form").classList.remove("--focus")),!1}))},this.init=()=>{const{searchInput:t,resultsWrapper:e,resultsLimit:i,inputLengthToStartSearching:n,afterBuildResult:o,buttonAllClass:s}=this.params;this.searchInput=t?document.querySelector(t):document.querySelector(".menu_search__input"),this.resultsWrapper=e?document.querySelector(e):document.querySelector(".search_result"),this.resultsLimit=i||"",this.inputLengthToStartSearching=n||4,this.netPrice="net"===app_shop.vars.priceType,this.afterBuildResult=o||!1,this.buttonAllClass=s||" btn --outline",this.initEvents()},this.init()},app_shop.run((function(){$(document).on("click",".open_trigger, #menu_settings li:first-child .form-group:first-child > label",(function(){return $("#menu_settings form").toggleClass("active"),!1})),app_shop.fn.selectPaging=new SelectToDropdown({selector:"#menu_settings  select.form-control:not(.f-dropdown)",generateDropdownCallback:t=>{t.classList.remove("form-control")}})}),"all","#menu_settings"),app_shop.fn.basketCacheCallBack=function(t){$("#menu_basket").not(".--hide").hover((function(){$(".topBasket__sub").toggleClass("--hover")})),void 0!==t.user&&(app_shop.vars.user=t.user)},app_shop.txt.txt_76942_summary="",app_shop.txt.txt_76942_basket="",app_shop.txt.txt_76942_basket_list="10",app_shop.txt.txt_76942_basket_hide="22";var menu_basket_cache=function(t){app_shop.fn.customBusket||(app_shop.fn.customBusket=function(t){return`\n    <div class="topBasket__row">\n      <a class="topBasket__item --photo" href="${t.link}">\n        <img src="${t.icon}" alt="${t.name}">\n      </a>\n      <a class="topBasket__item --name" href="${t.link}">
32\n        <span class="topBasket__name">${t.name}</span>\n        ${"uniw"!=t.size?'<span class="topBasket__size">'+t.size_name+"</span>":""}${t.product_version_name?'<span class="topBasket__version">'+t.product_version_name+"</span>":""}\n      </a>\n      <span class="topBasket__item --sum">\n        <span class="value">${t.count}</span>\n        <span class="unit">${t.worth_unit}</span>\n      </span>\n      <span class="topBasket__item --prices">${"net"===app_shop.vars.priceType?t.prices.worth_net_formatted:t.prices.worth_gros_formatted}</span>\n    </div>`}),app_shop.fn.basketCacheCallBack||(app_shop.fn.basketCacheCallBack=function(){$("#menu_basket").not(".--hide").hover((function(){$(".topBasket__sub").toggleClass("--hover")}))}),$.ajax({type:"GET",url:"/ajax/basket.php?&getAjax=true",dataType:"JSON",success:function(t){if(0==(t=t.basket).products.length&&$("#menu_basket").addClass("--hide"),t.products.length>=parseFloat(app_shop.txt.txt_76942_basket_list)&&($(".topBasket__details.--products").addClass("--list"),$("#menu_basket").removeClass("--hide")),t.products.length>parseFloat(app_shop.txt.txt_76942_basket_hide)&&$("#menu_basket").addClass("--hide"),$("#menu_basket .topBasket__price").html("net"===app_shop.vars.priceType?t.worth_net_formatted:t.worth_formatted),t.productsCounter>0?$("#menu_basket .badge").html(t.productsCounter):$("#menu_basket .badge").html(""),$("#menu_basket #shipppingCost").text("net"===app_shop.vars.priceType?t.shippingCost_net_formatted:t.shippingCost_formatted),$("#freeShipping").length>0&&0==parseFloat(t.toShippingFree)?$("#freeShipping").addClass("--active"):$("#freeShipping").length>0&&parseFloat(t.toShippingFree)>=0&&$("#freeShipping").removeClass("--active"),0!=t.products.length){let e="";const n=[...t.products];for(i in t.products)e+=app_shop.fn.customBusket(n[i]);$(".topBasket__block.--products").html(e);t.products.filter((t=>""===t.name)).length&&document.getElementById("menu_basket").classList.add("--oneclick-hide");t.products.filter((t=>"0"!==t.subscription_period)).length&&document.getElementById("menu_basket").classList.add("--oneclick-hide")}else $(".topBasket__details").hide();$(".topBasket__details").removeAttr("style"),$(".topBasket__price").removeAttr("style"),window.screen.width<979&&$("topBasket__details").remove(),app_shop.fn.basketCacheCallBack(t)}}),t&&iaiGet.wishlist((function(t){if(!t.Wishlist.response.attributes)return!1;var e=$("#menu_basket .wishes_link span.hidden-phone"),i=e.text(),n=t.Wishlist.response.attributes.count;e.text(i.replace(/\(.{1,3}\)/,"("+n+")")),e.next(".badge").remove(),n>0&&e.after('<span class="badge badge-important visible-phone">'+n+"</span>")}))};app_shop.fn.sesion2link=function(){var t=$.cookie("client"),e=new RegExp("[\\?&]client=([^&#]*)");if(!t||$.isEmptyObject(app_shop.vars.sites)||!app_shop.vars.session_share||"true"!=app_shop.vars.session_share)return!1;$('a[href*="http://"],a[href*="https://"],a[href^="//"]').each((function(){if(-1!=$.inArray(this.hostname,app_shop.vars.sites)){var i=$(this).get(0),n=i.href;null==e.exec(n)&&(-1!=n.indexOf("?")?i.pathname+="&client="+t:i.pathname+="?client="+t)}}))},app_shop.run((function(){app_shop.vars.cache_html?menu_basket_cache(!0):menu_basket_cache(!1),$(".topBasket__price").removeAttr("style")}),"all");var submenuWidth="200",dlmenu_showmore="1",dlmenu_shownumber="10",dlmenu_columnHeight="320",dlmenu_columnConcat="1",dlmenu_padding="30",dlmenu_columns="5",dlmenu_wide="true";app_shop.fn.mobileGen=function(t=!1){t?$(".nav-header").remove():$(".nav-header").length||$("aside .nav-link + ul").each((function(){var t=$(this),e=t.prev(),i=(e.text().trim(),e.attr("href")||"#"),n=t.find(".nav-link.nav-gfx").attr("href")||i,o=$('<li class="nav-header">');o.append('<a href="#backLink" class="nav-header__backLink"><i class="icon-angle-left"></i></a>'),o.append(e.clone()),o.append('<a href="'+n+'" class="nav-header__goto">Pokaż wszystkie produkty z kategorii</a>'),t.prepend(o)}))},app_shop.run((function(){var t=$(window).width();$(".navbar-nav .isOverflow").removeClass("isOverflow"),$(".navbar-nav > .nav-item").each((function(){var e;$this=$(this),(e=t-$this.offset().left)<parseInt(submenuWidth)&&$this.addClass("isOverflow"),e<parseInt(2*submenuWidth)&&$this.find(".navbar-subnav").addClass("isOverflow")})),$(".nav-link img.rwd-src").each((function(){$this=$(this),$this.attr("src",app_shop.fn.getRwdSrc($this))})),app_shop.vars.view<2?window.matchMedia("(display-mode: standalone)").matches&&$(".nav-link").each((function(t){$(this).next().is("ul")&&($(this).attr("data-href",$(this).attr("href")),$(this).attr("href","##"),$(this).addClass("not_selectable"))})):$(".nav-link").each((function(t){""!=$(this).attr("data-href")&&($(this).attr("href",$(this).attr("data-href")),$(this).removeAttr("data-href")),$(this).removeClass("not_selectable")})),app_shop.vars.view>2&&$("html").removeClass("filters_open").removeClass("sidebar_open")}),[1,2,3,4],"#menu_categories"),app_shop.run((function(){app_shop.fn.mobileGen(!0)}),[3,4],"#menu_categories"),$(document).on("click",".navbar-toggler",(function(t){return t.preventDefault(),$("html").hasClass("filters_open")||$("html").hasClass("sidebar_open")?($("html").removeClass("filters_open").removeClass("sidebar_open"),$('header .handler[data-item="menu_search"]').before($("#menu_search")),$('header .handler[data-item="menu_search"]').remove()):($("html").addClass("sidebar_open"),$("#menu_search").before('<del class="handler" data-item="menu_search" style="display:none"></del>'),"object"==typeof app_shop.fn.shoppingList?$('aside .setMobileGrid[data-item="#menu_navbar"]').before($("#menu_search")):$('aside .setMobileGrid[data-item="#menu_navbar"]').after($("#menu_search"))),$("aside .navbar-subnav, aside .navbar-subsubnav, aside, #menu_settings form").scrollTop(0),app_shop.fn.mobileGen(),app_shop.fn.setMobileCategories&&app_shop.fn.setMobileCategories(),!1})),$(document).on("click","aside .navbar-collapse .nav-link",(function(){var t=$(this).next(),e=$(this).parent(),i=t.children();if(t.is("ul")&&app_shop.vars.view<3)return e.toggleClass("nav-open"),2===i.length&&i.last(
32).toggleClass("nav-open"),!1})),$(document).on("click","aside .nav-header .nav-header__backLink",(function(){var t=$(this).parents(".nav-open").eq(0),e=t.parents("ul").eq(0),i=e.children();return t.removeClass("nav-open"),2===i.length&&e.parents(".nav-open").eq(0).removeClass("nav-open"),!1})),$(document).on("click",".touch header .navbar-collapse .nav-link",(function(t){var e=$(this).next(),i=e.is(".active");return $(".nav-item ul").removeClass("active"),$(this).parent().parent().hasClass("navbar-nav")&&$(".navbar-subnav").removeClass("--hover"),!!($("#menu_navbar").parent(".wide").size()&&e.parents("ul").size()>1)||(e.is("ul")?(i?(e.removeClass("active"),e.find("ul.active").removeClass("active"),e.parents("ul").not(".navbar-nav").addClass("active")):(e.addClass("active"),e.parents("ul").not(".navbar-nav").addClass("active"),$("body").off("click.navbar"),$("body").on("click.navbar",(function(t){$(".nav-item ul").removeClass("active")}))),$(this).next(".navbar-subnav").length>0&&(!$(this).attr("data-visited")&&(app_shop.fn.concatColumns(e),app_shop.fn.setPositionMenu(e)),$(this).attr("data-visited","true")),t.preventDefault(),!1):void 0)})),$(document).on("click",".sidebar_open header, .sidebar_open #content, .sidebar_open footer, .filters_open header, .filters_open #content, .filters_open footer",(function(t){return $("html").removeClass("sidebar_open filters_open"),$(".nav-open").removeClass("nav-open"),$("#menu_settings form").removeClass("active"),$('header .handler[data-item="menu_search"]').before($("#menu_search")),$('header .handler[data-item="menu_search"]').remove(),app_shop.fn.setMobileCategories&&app_shop.fn.setMobileCategories(),t.preventDefault(),!1})),app_shop.run((function(){const t=localStorage.getItem("loyalityProgram"),e=document.querySelector(".loyalty-program--banner--desktop"),i=document.querySelector(".loyalty-program--banner--mobile"),n=document.getElementById("main_banner1");n&&t&&(e?.classList.remove("--hidden"),i?.classList.remove("--hidden"),n.classList.add("loyalty-margin")),dlmenu_wide&&($("#menu_categories .nav-item.--extend").each((function(){$(this).off(),$(this).on("click",(function(t){t.preventDefault(),$(this).parent().toggleClass("show");let e=$(this).find("a"),i=e.text();return e.off(),e.text(e.attr("txt_alt")),e.attr("txt_alt",i),e.parents(".navbar-subnav").addClass("--hover"),!1}))})),$(".navbar-subnav").on("mouseover",(function(){$(".navbar-subnav").removeClass("--hover")})),$(".no-touch .navbar-nav > .nav-item > .nav-link").on("mouseover",(function(){$(this).next(".navbar-subnav").length>0&&(!$(this).attr("data-visited")&&(app_shop.fn.concatColumns($(this).next(".navbar-subnav")),app_shop.fn.setPositionMenu($(this).next(".navbar-subnav"))),$(this).attr("data-visited","true"))})),app_shop.fn.concatColumns=function(t){if(void 0!==dlmenu_columnConcat&&""!=dlmenu_columnConcat){let e=$("<li>",{class:"nav-item nav-merge"}),i=parseInt(dlmenu_columnHeight);t.find(" > .nav-item").each((function(){const t=$(this);let n=t.height(),o=t.next().height();!t.hasClass("nav-merge")&&(n=t.height()),!t.next().hasClass("nav-merge")&&(o=t.next().height()),t.hasClass("--all")&&(i=0),n<i&&o+n<i?(t.after(e),e.append(t),i-=n):n<i&&(t.after(e),e.append(t),i=parseInt(dlmenu_columnHeight),e=$("<li>",{class:"nav-item nav-merge"}))}))}},$("#menu_categories .navbar-nav > .nav-item").each((function(){0===$(this).find("li.nav-item:not(.empty):not(.nav-merge)").length&&$(this).addClass("--noBold")})),app_shop.fn.setPositionMenu=function(t){const e=$("#menu_categories").width()-dlmenu_padding,i=t.find("> .nav-item:not(.--all)").length;if(t.addClass("--cols"+i),i<dlmenu_columns&&window.screen.width>1200||i<dlmenu_columns-1&&window.screen.width<1200){let i=t,n=i.parent().position().left;n=n<0?0:n;let o=e-(i.width()+n),s=n- -1*o;s=o>0?n:s,i.css("left",s+"px")}},document.querySelectorAll(".nav-link:not(.nav-gfx) > img.gfx_lvl_1.--omo").forEach((t=>{t.style.maxWidth=`${t.previousElementSibling.offsetWidth}px`})))}),[3,4],"#menu_categories"),app_shop.run((function(){$(".nav-link.nav-gfx").on({mouseenter(){const t=$(this).find("img"),e=t.data("omo"),i=t.parent().innerWidth()-t.parent().width(),n=t.parent().innerHeight()-t.parent().height();e&&(t.parent().css("min-width",t.width()+i),t.parent().css("min-height",t.height()+n),t.attr("data-tmp_img",t.attr("src")),"img_rwd"===e?1===app_shop.vars.view?t.attr("src",t.data("omo_mobile")):2===app_shop.vars.view?t.attr("src",t.data("omo_tablet")):t.attr("src",t.data("omo_desktop")):t.attr("src",t.data("omo_img")))},mouseleave(){const t=$(this).find("img"),e=t.data("tmp_img");e&&(t.attr("src",e),t.removeAttr("data-tmp_img"))}})}),"all",".nav-link"),app_shop.run((function(){$("#layout").prepend($(".breadcrumbs"))}),[1,2,3,4],".breadcrumbs"),app_shop.run((function(){$(".breadcrumbs").on("click","#back_button",(function(){return window.history.back(),!1}))}),"all",".breadcrumbs"),app_shop.run((()=>{const t=document.querySelector(".slm_lists");if(!t)return;document.querySelectorAll(".slm_lists__label").forEach((e=>{e.addEventListener("click",(()=>{t.classList.toggle("--active")}))}))}),"all",".slm_lists__label"),app_shop.fn.setGrid=function(){switch(app_shop.vars.view){case 4:case 3:$(".domHandler").each((function(){var t=$(this).data("item");$(this).after($(t)),$(this).remove()}));break;case 2:case 1:$(".domHandler").length||$(".setMobileGrid").each((function(){var t=$(this).data("item");$(t).before('<del class="domHandler" data-item="'+t+'" style="display:none">'),$(this).append($(t))}))}},app_shop.fn.setMobileCategories=function(){const t=(t,e)=>{e.split(",").forEach((t=>{$(t).hide(),$(t).removeClass("--active")})),t.split(",").forEach((t=>{$(t).show(),$(t).addClass("--active")}))},e=()=>{$("aside").prepend($("#mobileCategories"));let e="";$("#mobileCategories .mobileCategories__link").each((function(){e+=`${e}, ${$(this).attr("data-ids")}`,$(this).off(),$(this).on("click",(function(){return $("#mobileCategories .mobileCategories__link").removeClass("--active"),$(this).addClass("--active"),t($(this).attr("data-ids"),e),!1}))})),t($("#mobileCategories .mobileCategories__link").first().attr("data-ids"),e),$("#mobileCategories .mobileCategories__link").removeClass("--active"),$("#mobileCategories .mobileCategories__link").first().addClass("--active")};$("#mobileCategories").length&&e()};const filtersActionsCall=()=>{$(".filters__options .--show-hidden").on("click",(function(){const t=$(this).data("id");return $(`#${t}_content`).toggleClass("--shown"),$(this).toggleClass("--shown"),!1})),$(".filters__toggler:not(.--not-expandable)").on("click",(function(){const t=$(this).data("id");return $(`#${t}_expand`).slideToggle("fast"),$(this).toggleClass("--not-expanded"),!1})),$("#PriceRangeFrom, #PriceRangeTo").on("keyup",(function(){const t=$(this),e=$(this).parent(),i=t.val();t.val(t.val().replace(/[^0-9]/g,""));
32const n=$.fn.textWidth(i,"14px Arial");n>e.width()-30?t.width(e.width()-30):t.width(n+10)})),$("#PriceRangeFrom, #PriceRangeTo").keyup(),$("#filter_xpress_expand input").on("change",(function(t){t.stopPropagation();const e=$(this);app_shop.vars.clickedXPRESS=e.attr("name").split("_")[1],e.is(":checked")&&"false"===e.attr("data-localized")&&Modal({html:$("#xpress_toplayer").html(),classList:"xpress_zipcode_verification"})}));document.querySelector(".filters__form").addEventListener("submit",(function(t){const e=document.querySelector("#PriceRangeFrom"),i=document.querySelector("#PriceRangeTo");if(parseFloat(e?.value)>parseFloat(i?.value))return t.preventDefault(),document.querySelector(".filters__price").classList.add("has-error"),!1}))};app_shop.run((function(){app_shop.vars.filtersRef=new Filters({funcActionCall:filtersActionsCall,getQuantity:app_shop.vars.getQuantity||!0,funcAjaxLoad:()=>{app_shop.vars.bLazy.revalidate()}})}),"all","#Filters",!0),app_shop.run((function(){app_shop.fn.xpressCouriersInit()}),"all","#xpress_toplayer",!0);const xpress_txt={};function simple_tooltip(t,e,i){var n="",o="";$(document).on("mouseover",t,(function(){$(this).next().is(".tooltipContent")?n=$(this).next().html():$(this).prop("title")&&(n=$(this).prop("title"),$(this).removeAttr("title")),$("#"+e).remove(),clearTimeout(o),$("body").append("<div style='display:none;' class='"+e+"' id='"+e+"'><p></p></div>"),$("#"+e).hover((function(){clearTimeout(o)}),(function(){$("#"+e).remove()})),""!=n&&" "!=n&&"undefined"!=n&&($("#"+e).find("p").html(n),$("#"+e).fadeIn(400))})),$(document).on("mousemove",t,(function(t){var n,o,s=$(window).scrollTop(),r=$(window).width(),a=15;i||!1?(n=t.pageX-$("#"+e).outerWidth(!0)-a<=0?t.pageX+a:t.pageX-a-$("#"+e).outerWidth(!0),o=s+30>=t.pageY-$("#"+e).height()?s+a:t.pageY-$("#"+e).outerHeight(!0)-a):(n=r-30>=$("#"+e).width()+t.pageX?t.pageX+a:r-$("#"+e).width()-a,o=s+30>=t.pageY-$("#"+e).height()?s+a:t.pageY-$("#"+e).height()-a),$("#"+e).css({left:n,top:o})})),$(document).on("mouseout",t,(function(){$(this).next().is(".tooltipContent")||$(this).prop("title",n),o=setTimeout((function(){$("#"+e).remove()}),500)})),$(document).bind("touchstart",(function(i){0===$(i.target).closest("#"+e).length&&0===$(i.target).closest(t).length&&$("#"+e).length&&$("#"+e).remove()}))}xpress_txt.zipcode_invalid="Podany kod pocztowy jest nieprawidłowy.",xpress_txt.localization="Lokalizacja",xpress_txt.courier_not_available="Przykro nam, ale nasz ekspresowy kurier nie obsługuje tej okolicy. ",xpress_txt.courier_not_available2="Twoje zamówienie zostanie dostarczone w standardowym czasie, a kuriera wybierzesz podczas składania zamówienia.",xpress_txt.courier_not_available3="OK",xpress_txt.ajax_error="Wystąpił nieoczekiwany błąd. Proszę spróbować ponownie. ",xpress_txt.geolocation_error="Wystąpił błąd poczas sprawdzania kodu pocztowego. Proszę spróbować ponownie.",xpress_txt.geolocation_error2="Nie można pobrać kodu pocztowego. ",app_shop.run((function(){$("#menu_blog_bydates > ul > li > a").on("click",(function(){if($(this).next("ul"))return $(this).parent().hasClass("active")?$(this).parent().removeClass("active"):($("#menu_blog_bydates > ul > li").removeClass("active"),$(this).parent().addClass("active")),!1}))}),"all","#menu_blog_bydates",!0),app_shop.run((function(){$("#menu_newsletter form").on("submit",(function(){return app_shop.formControl.validate($("#mailing_policy")),app_shop.formControl.checkForm($(this))})),$("#menu_newsletter").find("input").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle),obj=$(this),app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(obj)}),500)})),$("#menu_newsletter button.add_newsletter").on("click",(function(){return app_shop.formControl.validate($("#mailing_policy")),app_shop.formControl.checkForm($(this).parents("form"))}))}),"all","#menu_newsletter"),document.addEventListener("DOMContentLoaded",(()=>{function t(){$(".footer_links_label:not(:only-child)").on("click",(function(t){return t.preventDefault(),$(this).next().slideToggle("fast"),$(this).parents(".footer_links").toggleClass("--open"),!1})),$("#footer_links .footer_links#menu_orders").addClass("--open"),$("#footer_links .footer_links#menu_orders .footer_links_label").next().show()}t(),window.addEventListener("resize",(function(){window.innerWidth>=1024&&t()}))})),app_shop.run((function(){window.innerWidth>=1024&&($(".footer_links_label").off("click"),$(".footer_links_label").next().show())}),[2,3,4],".footer_links_label"),app_shop.run((function(){$(".footer_links_sub a").on({mouseenter(){const t=$(this).find("img");t.data("onmouseover")&&(t.attr("data-tmp_img",t.attr("src")),t.attr("src",t.data("onmouseover")))},mouseleave(){const t=$(this).find("img"),e=t.data("tmp_img");e&&(t.attr("src",e),t.removeAttr("data-tmp_img"))}})}),"all",".footer_links"),document.addEventListener("DOMContentLoaded",(function(){const t=document.querySelectorAll(".menu_socials__item a"),e=document.querySelector(".opinions_badge__all_link");t.forEach((t=>{t.setAttribute("target","_blank"),t.setAttribute("rel","noopener nofollow")})),e&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener nofollow"))})),app_shop.fn.rwdBanner(".platnosci_54388",[1,2,3,4]),app_shop.run((function(){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");var iaical_dateFormat="yy-mm-dd",iaical_firstDay="1";days_01_txt="n",days_02_txt="pn",days_03_txt="wt",days_04_txt="śr",days_05_txt="czw",days_06_txt="pt",days_07_txt="so",month_01_txt="Styczeń",month_02_txt="Luty",month_03_txt="Marzec",month_04_txt="KwiecieÅ
32„",month_05_txt="Maj",month_06_txt="Czerwiec",month_07_txt="Lipiec",month_08_txt="Sierpień",month_09_txt="Wrzesień",month_10_txt="Październik",month_11_txt="Listopad",month_12_txt="Grudzień",month_2_01_txt="Stycznia",month_2_02_txt="Lutego",month_2_03_txt="Marca",month_2_04_txt="Kwietnia",month_2_05_txt="Maja",month_2_06_txt="Czerwca",month_2_07_txt="Lipca",month_2_08_txt="Sierpnia",month_2_09_txt="Września",month_2_10_txt="Października",month_2_11_txt="Listopada",month_2_12_txt="Grudnia",month_3_01_txt="STY",month_3_02_txt="LUT",month_3_03_txt="MAR",month_3_04_txt="KWI",month_3_05_txt="MAJ",month_3_06_txt="CZE",month_3_07_txt="LIP",month_3_08_txt="SIE",month_3_09_txt="WRZ",month_3_10_txt="PAŹ",month_3_11_txt="LIS",month_3_12_txt="GRU",iaical_monthNext="Następny miesiąc",iaical_monthPrev="Poprzedni miesiąc";var iaical_daysShort=[days_01_txt,days_02_txt,days_03_txt,days_04_txt,days_05_txt,days_06_txt,days_07_txt],iaical_monthNames=[month_01_txt,month_02_txt,month_03_txt,month_04_txt,month_05_txt,month_06_txt,month_07_txt,month_08_txt,month_09_txt,month_10_txt,month_11_txt,month_12_txt],iaical_monthNames2=[month_2_01_txt,month_2_02_txt,month_2_03_txt,month_2_04_txt,month_2_05_txt,month_2_06_txt,month_2_07_txt,month_2_08_txt,month_2_09_txt,month_2_10_txt,month_2_11_txt,month_2_12_txt],iaical_shortNames=[month_3_01_txt,month_3_02_txt,month_3_03_txt,month_3_04_txt,month_3_05_txt,month_3_06_txt,month_3_07_txt,month_3_08_txt,month_3_09_txt,month_3_10_txt,month_3_11_txt,month_3_12_txt],shopCalendar={getMonthDays:function(t,e){return new Date(t,e,0).getDate()},printDays:function(t,e,i,n,o,s,r){var a=window.Working_days||{},l=new Date(i,e-1,t);l.setDate(l.getDate()+parseInt(n)),$("#pickupl_calbind").length&&$("#pickupl_calbind").datepicker({defaultDate:l,minDate:l}),$(o+"1").length&&document.getElementById(o+"1").onclick();for(var c=1;c<=s;c++){for(_year=l.getFullYear(),_month=l.getMonth()+1,_day=l.getDate();r&&Holidays[_day+"_"+_month+"_"+_year];)l.setDate(l.getDate()+1),_year=l.getFullYear(),_month=l.getMonth()+1,_day=l.getDate();var d=100;if(!$.isEmptyObject(a))for(;--d;){if(-1!=$.inArray(l.getDay(),a)){_year=l.getFullYear(),_month=l.getMonth()+1,_day=l.getDate();break}l.setDate(l.getDate()+1)}_month=_month<10?"0"+_month:_month,_day=_day<10?"0"+_day:_day,d?($("#"+o+c+" input").val([_year,_month,_day].join("-")),$("#"+o+c+" > div > *").eq(1).html(_day),$("#"+o+c+" > div > *").eq(2).html(iaical_monthNames2[parseInt(_month)-1])):($("#"+o+c+" input").val("-"),$("#"+o+c+" > div > *").eq(1).html("-"),$("#"+o+c+" > div > *").eq(2).html("")),l.setDate(l.getDate()+1)}},setHolidays:function(t){var e=window.Holidays||{},i=window.Working_days||{};if(null!=e)for(holiday in e)if(t.getDate()+"_"+(t.getMonth()+1)+"_"+t.getFullYear()==holiday)return[!1,""];if(null!=i&&i.length){var n=t.getDay();if(-1==$.inArray(n,i))return[!1,""]}return[!0,""]}};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
32: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"})}function runOmnibusFallback(){try{const t=document.querySelectorAll("[data-last_price_change_date]:not([data-omnibus]):not(.--omnibus):not(.--omnibus-short)");if(0===t.length)return;void 0!==app_shop.fn.omnibusGrapqhlFallback?app_shop.fn.omnibusGrapqhlFallback?.init?.(t):app_shop.fn.omnibusGrapqhlFallback=new OmnibusGraphqlFallback(t)}catch(t){console.error("[OmnibusFallback]:runOmnibusFallback Error",t)}}app_shop.txt.instalmentLabel="",app_shop.txt.instalmentSingleProduct="Oblicz raty tylko dla tego produktu",app_shop.txt.instalmentMultiProduct="Oblicz raty produktów w koszyku",app_shop.txt.instalmentBasketProduct="Oblicz raty łącznie z wartością koszyka",app_shop.txt.instalmentNoTall="Nie wszystkie umieszczone w koszyku produkty umożliwią zakup tym systemem ratalnym. Przejdź do szczegółów każdego z produktów aby dowiedzieć się które z nich umożliwiają taki zakup. Jeżeli zdecydujesz się na zakup na raty, opłata za te produkty będzie musiała być wniesiona odrębnie pozostałymi sposobami płatności.",app_shop.txt.instalmentTooMany="W koszyku znajduje się zbyt duża ilość produktów aby móc opłacić zamówienie tym systemem ratalnym. Zmniejsz ilość produktów do ",app_shop.txt.instalmentTooMany2=" aby móc skorzystać z systemu rat. Ilość sztuk jednego produktu nie jest limitowana.",app_shop.txt.instalmentLabelTo=" to ",app_shop.txt.instalmentLabelMinBasket="Nie możesz uruchomić symulacji rat dla całego koszyka, ponieważ minimalna kwota umożliwiająca zakupy przez ",app_shop.txt.instalmentTextMin="Zwiększ ilość sztuk produktu, aby uruchomić kalkulator rat.",app_shop.txt.instalmentTextMinBasket="Zwiększ ilość sztuk tego produktu, lub wrzuć do koszyka dodatkowe produkty.",app_shop.txt.instalmentTextMinB="Zwiększ ilość produktów w koszyku, aby uruchomić kalkulator rat.",app_shop.txt.instalmentLabelMax="Maksymalna kwota umożliwiająca zakupy przez ",app_shop.txt.instalmentLabelMaxBasket="Nie możesz uruchomić symulacji rat dla całego koszyka, ponieważ maksymalna kwota umożliwiająca zakupy przez ",app_shop.txt.instalmentTextMax="Zmniejsz ilość sztuk produktu, aby uruchomić kalkulator rat.",app_shop.txt.instalmentTextMaxBasket="Zmniejsz ilość sztuk tego produktu, lub usuń z koszyka niektóre produkty.",app_shop.txt.instalmentTextMaxB="Zmniejsz ilość produktów w koszyku, aby uruchomić kalkulator rat.",app_shop.txt.instalmentLabelMin="Minimalna kwota umożliwiająca zakupy przez ",app_shop.txt.instalmentButtonClassDialog="btn --solid --medium",app_shop.txt.instalmentButtonDisableClassDialog="btn --solid --secondary --medium --disabled",app_shop.txt.instalmentNet=" netto",app_shop.run((function(){Modal({element:document.getElementById("menu_notice")})}),"all","#menu_notice"),app_shop.run((function(){iaiGet.snippets((function(t){var e=t.Snippets.response.items;for(var i in e)switch(e[i].region){case"head":$("head").append(e[i].content);break;
32case"body_top":$("body").prepend(e[i].content);break;default:$("body").append(e[i].content)}}),{mobile:(1==app_shop.vars.view).toString(),tablet:(2==app_shop.vars.view).toString(),pc:(app_shop.vars.view>=3).toString(),request_uri:app_shop.vars.request_uri,additional_ajax:app_shop.vars.additional_ajax}),iaiGet.toplayersAndWidgets((function(json){var ToplayersAndWidgets=json.ToplayersAndWidgets.response.items;for(var key in ToplayersAndWidgets)"script"===key?eval(ToplayersAndWidgets[key]):$("body").append(ToplayersAndWidgets[key].content)}),{mobile:(1==app_shop.vars.view).toString(),tablet:(2==app_shop.vars.view).toString(),pc:(app_shop.vars.view>=3).toString(),request_uri:app_shop.vars.request_uri,additional_ajax:app_shop.vars.additional_ajax})}),"all"),app_shop.run((function(){"function"==typeof runOmnibusFallback&&runOmnibusFallback()}),"all","[data-last_price_change_date]",!0),appModules.installModule("ExpChck","/gfx/pol/express_checkout.js.gzip?r=1790014753"),app_shop.fn.webAuthnExpChck=new WebAuthn({IAIAccountsUrl:app_shop.vars.IAIAccountsUrl,supportOpera:!1}),-1!==window.location.href.search("#servicesLoginExpChck")&&document.documentElement.classList.add("--expchck-loading"),app_shop.run((async()=>{if(-1!==window.location.href.search("#servicesLoginExpChck")){app_shop.fn.expChck||await appModules.load("ExpChck",{type:"script"});const t=!!document.querySelector(".basketedit_page");let e=!1,i=!1;const n=document.querySelector(".basketedit_express_checkout")||document.querySelector("#cop_summary_template")?.content?.cloneNode(!0)?.querySelector(".cop_buttons__button.--express-checkout");return t&&n?(e=n.hasAttribute("data-virtual-product"),i=n.hasAttribute("data-service-product")):"undefined"!=typeof product_data&&(e=!("product_virtual"!==product_data.product_type),i=!("product_service"!==product_data.product_type)),window.location.hash="",void(app_shop.vars.isLogged?app_shop.fn.expChck.goStep("summary",{previousStep:null,basketeditCheckout:t,virtualProduct:e,serviceProduct:i}):(app_shop.fn.expChck.clearCache(),app_shop.vars.isLogged=!0,app_shop.fn.expChck.goStep("summary",{previousStep:null,state:{loginFromService:!0},basketeditCheckout:t,virtualProduct:e,serviceProduct:i})))}let t=.01*window.innerHeight;document.documentElement.style.setProperty("--vh_expchck",`${t}px`),window.addEventListener("resize",(()=>{t=.01*window.innerHeight,document.documentElement.style.setProperty("--vh_expchck",`${t}px`)}))}),"all","#expchck_header"),app_shop.run((()=>{$(".affiliate.--generator.--menu").after($(".affiliate__info.--small"))}),[1],".affiliate.--generator.--menu"),app_shop.run((()=>{$(".affiliate.--generator.--menu").append($(".affiliate__info.--small"))}),[2,3,4],".affiliate.--generator.--menu");const blogHotspotTxt={netto:"netto",brutto:"netto",doKoszyka:"Do koszyka",omnibusInfo:"Najniższa cena produktu w okresie 30 dni przed wprowadzeniem obniżki",dostepny:"Dostępny",niedostepny:"Niedostępny",powiadomODostepnosci:"Szczegóły",promo:"W promocji",new:"Nowość",bestseller:"Nasz bestseller",discount:"Przecena",distinguished:"Polecany",special:"Oferta specjalna"};app_shop.run((function(){app_shop.fn.initProductDataSearch("#blog__products .product"),app_shop.fn.addProductsToBasket(document.querySelectorAll("#blog__products .product:not(.--active-buy) .add_to_basket__wrapper"))}),[1,2,3,4],"#blog__products",!0),app_shop.run((function(){$("div.categories-list_wrapper ul").show()}),4,"div.categories-list_wrapper",!0),app_shop.run((function(){$("div.categories-list_wrapper ul").show()}),3,"div.categories-list_wrapper",!0),app_shop.run((function(){$("div.categories-list_wrapper ul").show()}),2,"div.categories-list_wrapper",!0),app_shop.run((function(){$("div.categories-list_wrapper ul.categories-list_level2, div.categories-list_wrapper ul.categories-list_level3").hide(),$("span.more_categories").unbind().click((function(){$(this).toggleClass("open").next("ul").slideToggle()}))}),1,"div.categories-list_wrapper",!0);var client_new_social_info_js_txt_1="Zaloguj się na którąś z wyżej wymienionych formy logowania aby dokończyć rejestrację.";app_shop.run((function(){Modal({element:$("#client_new_social_info"),classList:"--social",afterShow:(t,e)=>{$(".go_to_register_form").on("click",(function(t){return e.closeModal(),!1}))}})}),"all","#client_new_social_info"),app_shop.run((function(){$("#button_alert div").html(client_new_social_info_js_txt_1),$("#submit_register").removeAttr("onclick").click((function(){return $("#button_alert").show(),!1})),$("#submit_register").hover((function(){}),(function(){$("#button_alert").hide()})),$("#client_new_social li strong").on("click",(function(){$("#client_new_social form").not($("#social_networking_"+$(this).attr("data-service"))).hide(),$("#social_networking_"+$(this).attr("data-service")).toggle()})),$("#client_new_social form").on("submit",(function(){return window.location="/"+$(this).attr("action")+"?"+$(this).serialize(),!1}))}),"all","#client_new_social"),app_shop.run((()=>{app_shop.vars.topSpacer=70}),1,".client-new_page"),app_shop.run((()=>{app_shop.vars.topSpacer=90}),2,".client-new_page"),app_shop.run((()=>{app_shop.vars.topSpacer=10}),[3,4],".client-new_page");const clientFormTxt={txt00:"Mamy już zarejestrowane konto dla podanego adresu e-mail: ",txt01:"Pamiętam swój login i hasło i mogę je podać.",txt02:"Chcę stworzyć nowe konto przy użyciu tego adresu (niezalecane).",txt03:"Wyślij e-mail pozwalający na automatyczne zalogowanie",txt06:"Wyślij wiadomość na adres",txt07:"z danymi potrzebnymi do logowania .",txt08:"<br/>
32Założone wcześniej konto zostało połączone z kontem",txt13:"Proponujemy Ci użycie tego konta, co pozwoli Ci korzystać z przywilejów zarezerwowanych dla wielokrotnych klientów. Aby się zalogować na wcześniej założone konto, wystarczy kliknięcie na link, który możemy Ci wysłać w e-mailu.",txt14:"Poprawne formaty kodu pocztowego dla wybranego kraju to [X - cyfra; Y - litera]:",txt15:"znaków).",txt16:"Proszę wypełnić to pole.",txt16a:'<i class="icon-visibility"></i> Pokaż hasło',txt16b:'<i class="icon-novisibility"></i> Ukryj hasło',txt17:"Wpisz nazwę ulicy lub miejscowości.",txt18:"Nieprawidłowy format. Pole musi zawierać przynajmniej jedną literę."};var clientNewErrorCode=[];clientNewErrorCode.no_login="Wpisz w to pole swój login.",clientNewErrorCode.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 @ . - _.",clientNewErrorCode.no_password="Wpisz w to pole swoje hasło.",clientNewErrorCode.password_to_short="Zbyt krótkie hasło. Wpisz dłuższe hasło (minimum 6 znaków).",clientNewErrorCode.password_to_long="Za długie hasło. Wpisz krótsze hasło (maksimum 15 znaków).",clientNewErrorCode.login_equals_password="Hasło jest takie samo jak login. Wpisz inne hasło.",clientNewErrorCode.not_equal_passwords="Wpisane hasła nie są takie same. Wpisz ponownie hasło i potwierdzenie.",clientNewErrorCode.no_firstname="Wpisz w to pole swoje imię.",clientNewErrorCode.no_name="Wpisz w to pole swoje nazwisko.",clientNewErrorCode.incorect_email="Błędnie wpisany e-mail. Wpisz pełny adres e-mail, np. [email protected]",clientNewErrorCode.incorect_shops="Wybierz sklep z listy.",clientNewErrorCode.incorect_nip="Błędnie wpisany NIP. Prawidłowy NIP ma 10 cyfr.",clientNewErrorCode.no_firmname="Błędnie wpisana nazwa firmy.",clientNewErrorCode.incorrect_region="Błędnie wybrany region.",clientNewErrorCode.no_city="Wpisz w to pole nazwę miasta.",clientNewErrorCode.birth_date="Wpisz poprawną datę urodzenia w formacie RRRR-MM-DD",clientNewErrorCode.no_street="Wpisz nazwę ulicy lub miejscowości.",clientNewErrorCode.no_street_number="Wpisz nazwę ulicy lub miejscowości.",clientNewErrorCode.incorect_phone="Wpisz swój telefon.",clientNewErrorCode.incorect_zipcode="Błędnie wpisany kod pocztowy.",clientNewErrorCode.no_delivery_firstname="Wpisz imię odbiorcy przesyłki.",clientNewErrorCode.no_delivery_lastname="Wpisz nazwisko odbiorcy przesyłki.",clientNewErrorCode.no_delivery_city="Wpisz miejscowość odbiorcy przesyłki.",clientNewErrorCode.no_delivery_street="Wpisz ulicę i numer domu odbiorcy przesyłki.",clientNewErrorCode.incorect_delivery_region="Wybierz kraj odbiorcy przesyłki.",clientNewErrorCode.incorect_delivery_zipcode="Wpisz kod pocztowy odbiorcy przesyłki.",clientNewErrorCode.login_taken="Podany login jest już zajęty",clientNewErrorCode.used_login="Podany login jest już zajęty",clientNewErrorCode.login_taken_login_propose="Podany login jest już zajęty.<br/><br/>Proponowany login: ",clientNewErrorCode.illegal_characters_client_firstname="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_client_lastname="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_client_street="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_client_city="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_client_phone="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_client_phone2="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_client_firm="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_delivery_firstname="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_delivery_lastname="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_delivery_city="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_delivery_additional="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_delivery_street="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_delivery_phone="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_client_nip="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.password_to_short="Zbyt krótkie hasło. Wpisz dłuższe hasło (minimum",clientNewErrorCode.password_to_long="Za długie hasło. Wpisz krótsze hasło (maksimum",clientNewErrorCode.no_invoice_firstname="Wpisz imię klienta.",clientNewErrorCode.no_invoice_lastname="Wpisz nazwisko klienta.",clientNewErrorCode.no_invoice_firmname="Wpisz nazwę firmy klienta.",clientNewErrorCode.incorect_invoice_phone="Wpisz telefon klienta.",clientNewErrorCode.no_invoice_city="Wpisz miejscowość klienta.",clientNewErrorCode.no_invoice_street="Wpisz ulicę i numer domu klienta.",clientNewErrorCode.no_invoice_street_number="Wpisz ulicę i numer domu klienta.",clientNewErrorCode.incorect_invoice_zipcode="Wpisz ko
32d pocztowy klienta.",clientNewErrorCode.invalid_format="Nieprawidłowy format. Pole musi zawierać przynajmniej jedną literę.",clientNewErrorCode.no_street_number_uk="Brakuje numeru domu.",clientNewErrorCode.no_street_number="Podaj nr domu.",clientFormOptions={streetnumber:'"1"'},app_shop.run((function(){$(".rebates_active__button.--change").on("click",(function(){return $(".rebates_active__sub.--form").removeClass("d-none"),$(this).parent().addClass("d-none"),app_shop.vars.view>1&&app_shop.vars.view<4&&$(".rebates_active__sub.--info").addClass("d-none"),!1}))}),"all",".rebates_info");const BorderRadiusAdd=t=>{$(".rebates_product__products").each((function(){let e=$(this).find($(".rebates_product__product")),i=e.length;e.removeClass("--radiusLeftTop --radiusRightBottom --radiusRightTop --radiusLeftBottom"),e.first().addClass("--radiusLeftTop"),e.last().addClass("--radiusRightBottom"),i<t?e.last().addClass("--radiusRightTop"):e.filter(`:nth-child(${t})`).addClass("--radiusRightTop"),i<t?e.last().addClass("--radiusRightTop"):e.filter(`:nth-child(${t})`).addClass("--radiusRightTop"),i%t==0?e.filter(`:nth-child(${i-t+1})`).addClass("--radiusLeftBottom"):(e.filter(`:nth-child(${i-i%t})`).addClass("--radiusRightBottom"),e.filter(`:nth-child(${i-i%t+1})`).addClass("--radiusLeftBottom"))}))};app_shop.run((()=>{BorderRadiusAdd(2)}),[1],".rebates_product__products"),app_shop.run((()=>{BorderRadiusAdd(4)}),[2,3,4],".rebates_product__products"),BorderRadiusAdd(4),window.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll("a.pagination__link").forEach((t=>{const e=t.href;if(e.includes("?counter=0")){const i=e.replace("?counter=0","");t.href=i}}))})),app_shop.fn.replaceSelects=function(t,e,i){t.each((function(t){var n=$(this),o=t;$selectValue=n.val(),$selectName=n.attr("name"),$labelName="",n.data("label")&&($labelName="<b>"+n.data("label")+"</b>"),$ul=$('<div class="dropdown dropdownsearching form-group '+n.attr("class")+'"><ul class="dropdown-menu" aria-labelledby="'+e+o+'"></ul></div>'),n.children().each((function(t){var e=$(this);$li=$("<li>");var i=new Array;if($.each(e.data(),(function(t,e){var n="data-"+t+"="+e;i.push(n)})),i.length)var n=i.join(" ");else n="";$('<a data-index="'+t+'" '+n+">").attr("href","#"+e.attr("value")).attr("data-value",e.attr("value")).text(e.text()).addClass($selectValue==e.attr("value")?"selected":"").appendTo($li),$li.appendTo($ul.find("ul")),e.attr("class")&&$li.addClass(e.attr("class")),e.attr("data-price")&&$li.attr("data-price",e.attr("data-price"))})),$ul.prepend('<button id="'+e+o+'" class="form-control dropdown-toggle" data-indexcurrent="0" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">'+$labelName+"<span>"+n.find("option:selected").text()+"</span></button>").prepend('<input class="select_hidden searching_ajax" type="hidden" name="'+$selectName+'" value="'+$selectValue+'" />'),i&&$ul.find("li").on("click.option",(function(){i($(this))})),n.replaceWith($ul)}))},window.addEventListener("DOMContentLoaded",(()=>{const t=localStorage.getItem("loyalityProgram"),e=document.getElementById("loyality-program-content"),i=document.getElementById("loyality-program-left-button"),n=document.getElementById("loyality-program-right-button");if("true"===t){if(e){const t=document.createElement("span"),i=document.createElement("span");t.textContent="Gratulujemy! Jesteś w naszym klubie!",i.textContent="Informacje o bieżących promocjach tylko dla Klubowiczów znajdziesz na email.",t.style.display="block",i.style.display="block",e.appendChild(t),e.appendChild(i)}i.textContent="Sprawdź swoje rabaty",i.setAttribute("href","https://sklepdlaogrodu.pl/pl/client-rebate.html"),n.textContent="Sprawdź inne korzyści",n.setAttribute("href","https://sklepdlaogrodu.pl/pl/cms/klub-ogrodnika-54.html")}if("false"===t||!t){if(e){const t=document.createElement("span");t.textContent="Rób zakupy i łap korzyści! Kupując w naszym sklepie, zyskujesz dodatkowe korzyści: ekskluzywne promocje, wiedzę ekspercką i wiele więcej.",e.appendChild(t)}if(!i||!n)return;i.textContent="Sprawdź korzyści",i.setAttribute("href","https://sklepdlaogrodu.pl/pl/cms/klub-ogrodnika-54.html"),n.textContent="Zapisz się",n.setAttribute("href","https://sklepdlaogrodu.pl/pl/loginedit.html?operation=edit")}}));const updateImages=()=>{const t=document.querySelectorAll("img.rwd-src"),e=window.innerWidth;t.forEach((t=>{let i="";i=e>=1024?t.getAttribute("data-src_desktop"):e>=757?t.getAttribute("data-src_tablet"):t.getAttribute("data-src_mobile"),t.src!==i&&(t.src=i)}))};window.addEventListener("resize",updateImages),document.addEventListener("DOMContentLoaded",updateImages),document.addEventListener("DOMContentLoaded",(function(){let t=0,e=0;const i=document.querySelector(".main_tree_sub"),n=document.querySelector(".menu5__headline__button--left"),o=document.querySelector(".menu5__headline__button--right");if(!i||!n||!o)return;const s=()=>{e=i.offsetWidth};s(),n.addEventListener("click",(()=>{t-=e,t<0&&(t=0),i.scrollTo({left:t,behavior:"smooth"})})),o.addEventListener("click",(()=>{t+=e;const n=i.scrollWidth-i.clientWidth;t>n&&(t=n),i.scrollTo({left:t,behavior:"smooth"})})),window.addEventListener("resize",s)})),document.addEventListener("DOMContentLoaded",(function(){let t,e,i,n=0,o=0;const s=()=>{t=document.querySelector(".hotspot3__products"),t&&(o=t.offsetWidth+19)},r=()=>(t=document.querySelector(".hotspot3__products"),e=document.querySelector(".hotspot3__headline__button--left"),i=document.querySelector(".hotspot3__headline__button--right"),!!(t&&e&&i)&&(s(),t&&e&&i&&(e.addEventListener("click",(()=>{0===o&&s(),n-=o,n<0&&(n=0),t.scrollTo({left:n,behavior:"smooth"})})),i.addEventListener("click",(()=>{0===o&&s(),n+=o;const e=t.scrollWidth-t.clientWidth;n>e&&(n=e),t.scrollTo({left:n,behavior:"smooth"})}))),(()=>{const t=document.querySelector(".hotspot3__products").querySelectorAll(".hotspot3__product__icon"),e=localStorage.getItem("allShoppingListProducts");if(!e)return;const i=JSON.parse(e);t.forEach((t=>{const e=t.dataset.productId,n=t.dataset.productSize;if(i.some((t=>t.product_id===e&&t.product_size===n))){t.closest(".hotspot3__product").querySelector(".hotspot3__favorite");const e=t.closest(".hotspot3__product").querySelector(".hotspot3__favorite img");e&&e.setAttribute("src","/data/include/cms//wishlist-heart-fill.svg?v=1776721280688")}}))})(),!0)),a=new MutationObserver((t=>{for(let e of t)if(("childList"===e.type||"subtree"===e.type)&&r()){a.disconnect();break}}
32));r()||a.observe(document.body,{childList:!0,subtree:!0})})),window.addEventListener("resize",(()=>{let t,e,i,n=0,o=0;const s=()=>{t=document.querySelector(".hotspot3__products"),t&&(o=t.offsetWidth+20)},r=()=>(t=document.querySelector(".hotspot3__products"),e=document.querySelector(".hotspot3__headline__button--left"),i=document.querySelector(".hotspot3__headline__button--right"),!!(t&&e&&i)&&(s(),t&&e&&i&&(e.addEventListener("click",(()=>{0===o&&s(),n-=o,n<0&&(n=0),t.scrollTo({left:n,behavior:"smooth"})})),i.addEventListener("click",(()=>{0===o&&s(),n+=o;const e=t.scrollWidth-t.clientWidth;n>e&&(n=e),t.scrollTo({left:n,behavior:"smooth"})}))),t&&(n=0,t.scrollTo({left:n,behavior:"smooth"})),!0)),a=new MutationObserver((t=>{for(let e of t)if(("childList"===e.type||"subtree"===e.type)&&r()){a.disconnect();break}}));r()||a.observe(document.body,{childList:!0,subtree:!0})})),document.addEventListener("DOMContentLoaded",(function(){let t,e,i,n=0,o=0;const s=()=>{t=document.getElementById("featured-categories"),t&&(o=t.offsetWidth+5)};t=document.querySelector(".featured-categories__wrapper"),e=document.querySelector(".featured-arrow-left"),i=document.querySelector(".featured-arrow-right"),t&&e&&i&&(s(),t&&e&&i&&(e.addEventListener("click",(()=>{console.log("Kliknięto"),0===o&&s(),n-=o,n<0&&(n=0),t.scrollTo({left:n,behavior:"smooth"})})),i.addEventListener("click",(()=>{0===o&&s(),n+=o;const e=t.scrollWidth-t.clientWidth;n>e&&(n=e),t.scrollTo({left:n,behavior:"smooth"})}))))})),window.addEventListener("resize",(()=>{let t,e,i,n=0,o=0;const s=()=>{t=document.getElementById("featured-categories"),t&&(o=t.offsetWidth+5)};t=document.getElementById("featured-categories"),e=document.querySelector(".featured-arrow-left"),i=document.querySelector(".featured-arrow-right"),t&&e&&i&&(s(),t&&e&&i&&(e.addEventListener("click",(()=>{0===o&&s(),n-=o,n<0&&(n=0),t.scrollTo({left:n,behavior:"smooth"})})),i.addEventListener("click",(()=>{0===o&&s(),n+=o;const e=t.scrollWidth-t.clientWidth;n>e&&(n=e),t.scrollTo({left:n,behavior:"smooth"})}))),t&&(n=0,t.scrollTo({left:n,behavior:"smooth"})))})),document.addEventListener("DOMContentLoaded",(function(){let t=0,e=0;const i=document.querySelector(".garden-club__container"),n=document.querySelector(".garden-club__button-left"),o=document.querySelector(".garden-club__button-right");if(!i||!n||!o)return;const s=()=>{e=i.offsetWidth};s(),n.addEventListener("click",(()=>{t-=e,t<0&&(t=0),i.scrollTo({left:t,behavior:"smooth"})})),o.addEventListener("click",(()=>{t+=e;const n=i.scrollWidth-i.clientWidth;t>n&&(t=n),i.scrollTo({left:t,behavior:"smooth"})})),window.addEventListener("resize",s)})),document.addEventListener("DOMContentLoaded",(function(){let t,e,i,n=0,o=0;const s=()=>{t=document.querySelector(".hotspot4__products"),t&&(o=t.offsetWidth+19)},r=()=>(t=document.querySelector(".hotspot4__products"),e=document.querySelector(".hotspot4__headline__button--left"),i=document.querySelector(".hotspot4__headline__button--right"),!!(t&&e&&i)&&(s(),t&&e&&i&&(e.addEventListener("click",(()=>{0===o&&s(),n-=o,n<0&&(n=0),t.scrollTo({left:n,behavior:"smooth"})})),i.addEventListener("click",(()=>{0===o&&s(),n+=o;const e=t.scrollWidth-t.clientWidth;n>e&&(n=e),t.scrollTo({left:n,behavior:"smooth"})}))),document.querySelectorAll(".hotspot__product__price__omnibus").forEach((t=>{const e=t.closest(".hotspot4__product");if(e){const t=e.querySelector(".hotspot4__label__promo");t&&t.classList.remove("hotspot4__label__promo--hidden")}})),(()=>{const t=document.querySelector(".hotspot4__products").querySelectorAll(".hotspot4__product__icon"),e=localStorage.getItem("allShoppingListProducts");if(!e)return;const i=JSON.parse(e);t.forEach((t=>{const e=t.dataset.productId,n=t.dataset.productSize;if(i.some((t=>t.product_id===e&&t.product_size===n))){t.closest(".hotspot4__product").querySelector(".hotspot4__favorite");const e=t.closest(".hotspot4__product").querySelector(".hotspot4__favorite img");e&&e.setAttribute("src","/data/include/cms//wishlist-heart-fill.svg?v=1776721280688")}}))})(),!0)),a=new MutationObserver((t=>{for(let e of t)if(("childList"===e.type||"subtree"===e.type)&&r()){a.disconnect();break}}
32));r()||a.observe(document.body,{childList:!0,subtree:!0})})),window.addEventListener("resize",(()=>{let t,e,i,n=0,o=0;const s=()=>{t=document.querySelector(".hotspot4__products"),t&&(o=t.offsetWidth+20)},r=()=>(t=document.querySelector(".hotspot4__products"),e=document.querySelector(".hotspot4__headline__button--left"),i=document.querySelector(".hotspot4__headline__button--right"),!!(t&&e&&i)&&(s(),t&&e&&i&&(e.addEventListener("click",(()=>{0===o&&s(),n-=o,n<0&&(n=0),t.scrollTo({left:n,behavior:"smooth"})})),i.addEventListener("click",(()=>{0===o&&s(),n+=o;const e=t.scrollWidth-t.clientWidth;n>e&&(n=e),t.scrollTo({left:n,behavior:"smooth"})}))),t&&(n=0,t.scrollTo({left:n,behavior:"smooth"})),document.querySelectorAll(".hotspot__product__price__omnibus").forEach((t=>{const e=t.closest(".hotspot4__product");if(e){const t=e.querySelector(".hotspot4__label__promo");t&&t.classList.remove("hotspot4__label__promo--hidden")}})),(()=>{const t=document.querySelector(".hotspot4__products").querySelectorAll(".hotspot4__product__icon"),e=localStorage.getItem("allShoppingListProducts");if(!e)return;const i=JSON.parse(e);t.forEach((t=>{const e=t.dataset.productId,n=t.dataset.productSize;if(i.some((t=>t.product_id===e&&t.product_size===n))){t.closest(".hotspot4__product").querySelector(".hotspot4__favorite");const e=t.closest(".hotspot4__product").querySelector(".hotspot4__favorite img");e&&e.setAttribute("src","/data/include/cms//wishlist-heart-fill.svg?v=1776721280688")}}))})(),!0)),a=new MutationObserver((t=>{for(let e of t)if(("childList"===e.type||"subtree"===e.type)&&r()){a.disconnect();break}}));r()||a.observe(document.body,{childList:!0,subtree:!0})})),document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".blog__item-wrapper").forEach(((t,e)=>{t.classList.add(`grid-area-${e+1}`)}));document.querySelectorAll(".blog__item").forEach(((t,e)=>{t.classList.add(`blog__item--${e+1}`)}))})),document.addEventListener("DOMContentLoaded",(function(){let t,e,i,n=0,o=0;const s=()=>{t=document.querySelector(".hotspot2__products"),t&&(o=t.offsetWidth+19)},r=()=>(t=document.querySelector(".hotspot2__products"),e=document.querySelector(".hotspot2__headline__button--left"),i=document.querySelector(".hotspot2__headline__button--right"),!!(t&&e&&i)&&(s(),t&&e&&i&&(e.addEventListener("click",(()=>{0===o&&s(),n-=o,n<0&&(n=0),t.scrollTo({left:n,behavior:"smooth"})})),i.addEventListener("click",(()=>{0===o&&s(),n+=o;const e=t.scrollWidth-t.clientWidth;n>e&&(n=e),t.scrollTo({left:n,behavior:"smooth"})}))),document.querySelectorAll(".hotspot__product__price__omnibus").forEach((t=>{const e=t.closest(".hotspot2__product");if(e){const t=e.querySelector(".hotspot2__label__promo");t&&t.classList.remove("hotspot2__label__promo--hidden")}})),(()=>{const t=document.querySelector(".hotspot2__products").querySelectorAll(".hotspot2__product__icon"),e=localStorage.getItem("allShoppingListProducts");if(!e)return;const i=JSON.parse(e);t.forEach((t=>{const e=t.dataset.productId,n=t.dataset.productSize;if(i.some((t=>t.product_id===e&&t.product_size===n))){t.closest(".hotspot2__product").querySelector(".hotspot2__favorite");const e=t.closest(".hotspot2__product").querySelector(".hotspot2__favorite img");e&&e.setAttribute("src","/data/include/cms//wishlist-heart-fill.svg?v=1776721280688")}}))})(),!0)),a=new MutationObserver((t=>{for(let e of t)if(("childList"===e.type||"subtree"===e.type)&&r()){a.disconnect();break}}));r()||a.observe(document.body,{childList:!0,subtree:!0})})),window.addEventListener("resize",(()=>{let t,e,i,n=0,o=0;const s=()=>{t=document.querySelector(".hotspot2__products"),t&&(o=t.offsetWidth+20)},r=()=>(t=document.querySelector(".hotspot2__products"),e=document.querySelector(".hotspot2__headline__button--left"),i=document.querySelector(".hotspot2__headline__button--right"),!!(t&&e&&i)&&(s(),t&&e&&i&&(e.addEventListener("click",(()=>{0===o&&s(),n-=o,n<0&&(n=0),t.scrollTo({left:n,behavior:"smooth"})})),i.addEventListener("click",(()=>{0===o&&s(),n+=o;const e=t.scrollWidth-t.clientWidth;n>e&&(n=e),t.scrollTo({left:n,behavior:"smooth"})}))),t&&(n=0,t.scrollTo({left:n,behavior:"smooth"})),document.querySelectorAll(".hotspot__product__price__omnibus").forEach((t=>{const e=t.closest(".hotspot2__product");
32if(e){const t=e.querySelector(".hotspot2__label__promo");t&&t.classList.remove("hotspot2__label__promo--hidden")}})),(()=>{const t=document.querySelector(".hotspot2__products").querySelectorAll(".hotspot2__product__icon"),e=localStorage.getItem("allShoppingListProducts");if(!e)return;const i=JSON.parse(e);t.forEach((t=>{const e=t.dataset.productId,n=t.dataset.productSize;if(i.some((t=>t.product_id===e&&t.product_size===n))){t.closest(".hotspot2__product").querySelector(".hotspot2__favorite");const e=t.closest(".hotspot2__product").querySelector(".hotspot2__favorite img");e&&e.setAttribute("src","/data/include/cms//wishlist-heart-fill.svg?v=1776721280688")}}))})(),!0)),a=new MutationObserver((t=>{for(let e of t)if(("childList"===e.type||"subtree"===e.type)&&r()){a.disconnect();break}}));r()||a.observe(document.body,{childList:!0,subtree:!0})})),document.addEventListener("DOMContentLoaded",(function(){let t,e,i,n=0,o=0;const s=()=>{t=document.querySelector(".hotspot1__products"),t&&(o=t.offsetWidth+19)},r=()=>(t=document.querySelector(".hotspot1__products"),e=document.querySelector(".hotspot1__headline__button--left"),i=document.querySelector(".hotspot1__headline__button--right"),!!(t&&e&&i)&&(s(),t&&e&&i&&(e.addEventListener("click",(()=>{0===o&&s(),n-=o,n<0&&(n=0),t.scrollTo({left:n,behavior:"smooth"})})),i.addEventListener("click",(()=>{0===o&&s(),n+=o;const e=t.scrollWidth-t.clientWidth;n>e&&(n=e),t.scrollTo({left:n,behavior:"smooth"})}))),document.querySelectorAll(".hotspot__product__price__omnibus").forEach((t=>{const e=t.closest(".hotspot1__product");if(e){const t=e.querySelector(".hotspot1__label__promo");t&&t.classList.remove("hotspot1__label__promo--hidden")}})),(()=>{const t=document.querySelector(".hotspot1__products").querySelectorAll(".hotspot1__product__icon"),e=localStorage.getItem("allShoppingListProducts");if(!e)return;const i=JSON.parse(e);t.forEach((t=>{const e=t.dataset.productId,n=t.dataset.productSize;if(i.some((t=>t.product_id===e&&t.product_size===n))){t.closest(".hotspot1__product").querySelector(".hotspot1__favorite");const e=t.closest(".hotspot1__product").querySelector(".hotspot1__favorite img");e&&e.setAttribute("src","/data/include/cms//wishlist-heart-fill.svg?v=1776721280688")}}))})(),!0)),a=new MutationObserver((t=>{for(let e of t)if(("childList"===e.type||"subtree"===e.type)&&r()){a.disconnect();break}}));r()||a.observe(document.body,{childList:!0,subtree:!0})})),window.addEventListener("resize",(()=>{let t,e,i,n=0,o=0;const s=()=>{t=document.querySelector(".hotspot1__products"),t&&(o=t.offsetWidth+20)},r=()=>(t=document.querySelector(".hotspot1__products"),e=document.querySelector(".hotspot1__headline__button--left"),i=document.querySelector(".hotspot1__headline__button--right"),!!(t&&e&&i)&&(s(),t&&e&&i&&(e.addEventListener("click",(()=>{0===o&&s(),n-=o,n<0&&(n=0),t.scrollTo({left:n,behavior:"smooth"})})),i.addEventListener("click",(()=>{0===o&&s(),n+=o;const e=t.scrollWidth-t.clientWidth;n>e&&(n=e),t.scrollTo({left:n,behavior:"smooth"})}))),t&&(n=0,t.scrollTo({left:n,behavior:"smooth"})),document.querySelectorAll(".hotspot__product__price__omnibus").forEach((t=>{const e=t.closest(".hotspot1__product");if(e){const t=e.querySelector(".hotspot1__label__promo");t&&t.classList.remove("hotspot1__label__promo--hidden")}})),(()=>{const t=document.querySelector(".hotspot1__products").querySelectorAll(".hotspot1__product__icon"),e=localStorage.getItem("allShoppingListProducts");if(!e)return;const i=JSON.parse(e);t.forEach((t=>{const e=t.dataset.productId,n=t.dataset.productSize;if(i.some((t=>t.product_id===e&&t.product_size===n))){const e=t.querySelector(".hotspot1__favorite");e&&e.classList.add("active");const i=t.querySelector(".hotspot1__favorite img");i&&i.setAttribute("src","/data/include/cms//wishlist-heart-fill.svg?v=1776721280688")}}))})(),!0)),a=new MutationObserver((t=>{for(let e of t)if(("childList"===e.type||"subtree"===e.type)&&r()){a.disconnect();break}}));r()||a.observe(document.body,{childList:!0,subtree:!0})})),app_shop.run((function(){app_shop.fn.categoryDivider(".navigation_desc.--top .navigation_desc__wrapper")}),"all",".navigation_desc.--top"),app_shop.run((function(){$(document).on("click","a.show_description",(function(){return $(this).parent().addClass("expanded"),!1})),$(document).on("click","a.hide_description",(function(){return $(this).prev().removeClass("expanded"),!1}))}),"all",".navigation_desc"),app_shop.run((function(){app_shop.fn.categoryDivider(".navigation_desc.--bottom .navigation_desc__wrapper")}),"all",".navigation_desc.--bottom");var newsletter={txt:"",fill:function(t){""==t.val()&&t.val(newsletter.txt)},clear:function(t){""!=t.val()&&t.val()==newsletter.txt&&t.val("")},mode:function(t){$("#mailing_action_contact").val(t),"remove"==t?($('input[name="newsletter_consent"], input[name="mailing_name"]').removeClass("val
32idate"),$("#newsletter_privacy_consent").find(".has-feedback").removeClass("has-error"),$('input[name="mailing_name"]').parent().removeClass("has-error"),$('input[name="mailing_name"]').siblings(".validate_message").html("")):"add"==t&&$('input[name="newsletter_consent"], input[name="mailing_name"]').addClass("validate")}};function opinionsTruncate(){app_shop.fn.textTruncate=new TextTruncate({lineH:18,lineC:2,wrapper:$("#opinions_wrapper"),count:95},((t,e)=>{e.parents(".opinion_item").on("mouseleave",(()=>{app_shop.fn.magicGrid.positionItems(),e.parents(".opinion_item").off()})),$("html").hasClass("touch")&&app_shop.fn.magicGrid.positionItems()}))}function opinionsImgLoad(){app_shop.vars.bLazy.options.success=function(t){$(t).parents(".loading").removeClass("loading"),app_shop.fn.magicGrid.positionItems()}}function injectBarcodesFromLocalStorage(t="cop"){let e=[];try{const t=localStorage.getItem("iai_basket");if(!t)return void console.warn("injectBarcodesFromLocalStorage: brak klucza iai_basket w localStorage");const i=JSON.parse(t);e=i?.basket?.products||[]}catch(t){return void console.error("injectBarcodesFromLocalStorage: błąd parsowania iai_basket",t)}if(!e.length)return void console.warn("injectBarcodesFromLocalStorage: pusta lista produktów w localStorage");const i=document.querySelectorAll(`.${t}_product`);i.length?i.forEach((i=>{const n=i.querySelector(`.${t}_product__name`);if(!n)return;const o=n.textContent.trim(),s=e.find((t=>t.name?.trim()===o));if(!s)return void console.warn("injectBarcodesFromLocalStorage: brak dopasowania dla:",o);const r=s.id;if(null==r||""===r)return void console.warn("injectBarcodesFromLocalStorage: dopasowany produkt bez id:",s);const a=i.querySelector(`.${t}_product__traits`);if(!a)return void console.warn("injectBarcodesFromLocalStorage: brak kontenera .traits dla:",o);const l=a.querySelector(`.${t}_product__trait.--barcode`);l&&l.remove();const c=document.createElement("div");c.className=`${t}_product__trait --barcode`;const d=document.createElement("span");d.className=`${t}_product__trait_value`,d.append("Kod produktu: ");const u=document.createElement("span");u.textContent=r,d.appendChild(u),c.appendChild(d),a.prepend(c)})):console.warn("injectBarcodesFromLocalStorage: brak elementów .cop_product w DOM")}app_shop.run((function(){$("form.newsletter_form").find("input, textarea").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle),obj=$(this),app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(obj)}),500)})),$("#newsletter_button_remove").on("click",(function(){return newsletter.mode("remove"),app_shop.formControl.checkForm($(this).parents("form"))})),$("#newsletter_button_add").on("click",(function(){return newsletter.mode("add"),app_shop.formControl.checkForm($(this).parents("form"))}))}),"all","form.newsletter_form"),app_shop.vars.opinion_send="Twoja opinia o zamówieniu została wysłana, dziękujemy. Jeżeli chcesz ją zmienić kliknij <a href='#edit' class='opinion_edit'>tutaj</a>.",app_shop.vars.opinion_send2="Twoja opinia o produkcie została wysłana, dziękujemy.",app_shop.vars.opinion_error="Twoja opinia nie została wysłana.",app_shop.vars.opinion_empty="Podaj treść opinii.",app_shop.vars.opinion_file_size="Max. rozmiar zdjęcia to: 2048x1536px.",app_shop.vars.opinion_file_type="Dopuszczalne formaty zdjęć: jpg.",app_shop.vars.magicGridOptions={container:".opinions_wrapper",static:!0,animate:!0,gutter:30,maxColumns:3,useMin:!0},app_shop.fn.opinionsLoad=function(){app_shop.fn.magicGrid=new MagicGrid(app_shop.vars.magicGridOptions),app_shop.fn.magicGrid.listen(),app_shop.fn.magicGrid.positionItems(),opinionsTruncate(),$(".new_load_items img.b-lazy").parents("a").addClass("loading"),app_shop.vars.bLazy=new Blazy({container:"#opinions_wrapper",success:function(t){setTimeout((function(){$(t).parents(".loading").removeClass("loading"),app_shop.fn.magicGrid.positionItems()}),200)}})},app_shop.run((()=>{opinionsTruncate(),opinionsImgLoad()}),"all","#opinions_wrapper"),app_shop.txt.more="więcej",app_shop.run((function(){new OpinionsShop({})}),"all","#opinions_shop"),app_shop.run((function(){$("#order_open__number_input, #order_open__email_input").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle);const t=$(this);app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(t)}),500)})),$(".order_open__button").on("click",(function(){return app_shop.formControl.checkForm($(this).parents(".order_open__form"))}))}),"all",".order_open"),document.addEventListener("DOMContentLoaded",(()=>{const t=()=>{const t=document.querySelector(".cop_deliveries__section");if(!t)return!1;const e=t.querySelectorAll('.cop_deliveries__item[data-id="100155"]'),i=t.querySelectorAll('.cop_deliveries__item[data-id="100149"]');return(0!==e.length||0!==i.length)&&(e.forEach((e=>{t.insertBefore(e,t.firstChild)}
32)),i.forEach((e=>{t.firstChild&&t.insertBefore(e,t.children[1]||null)})),!0)};if(t())return;new MutationObserver(((e,i)=>{t()&&i.disconnect()})).observe(document.body,{childList:!0,subtree:!0})})),window.addEventListener("load",(()=>{setTimeout((()=>injectBarcodesFromLocalStorage("cop")),1e3)}));var txt_62619_label="Wpłaty ",txt_62619_wybrales_curr="Wybrałeś",txt_62619_wybrales="Wybrałeś, ale zrezygnowałeś z płatności",txt_62619_nakwote=" na kwotę ",txt_62619_wybrales2_curr="",txt_62619_wybrales2="Wybrano",txt_62619_jako=" jako formę płatności. ",txt_62619_jako_zwrot=" jako formę zwrotu.",txt_62619_kwota="Kwota do wpłaty to ",txt_62619_kwota_zwrot=" Kwota do zwrotu to ",txt_62619_auto="<br/>Wpłata zostanie zaksięgowana <b>automatycznie</b>.",txt_62619_dokoncz="",txt_62619_title="Jeżeli proces opłacania został przerwany, ponów tą płatność.",txt_62619_ponow="Ponów wpłatę",txt_62619_bedz="",txt_62619_bedz2="<br />Możesz zmienić sposób zapłaty.",txt_62619_w_inny="<br/>Dokonaj wpłaty na poniższe dane lub wybierz inny sposób zapłaty. ",txt_62619_w_inny2="Zmień formę płatności",txt_62619_rezygnacja="Zrezygnowałeś z tej formy płatności.",txt_62619_przyj_wplata="Twoja wpłata została przyjęta.",txt_62619_przyj_zwrot="Zwrot został wykonany.",txt_62619_paymentError='Wystąpił błąd płatności. Spróbuj ponownie opłacić zamówienie za chwilę lub  <a href="contact.php">skontaktuj się z nami</a>.',txt_62619_od_nazwa="Nazwa odbiorcy: ",txt_62619_konto="Numer konta: ",txt_62619_swit="SWIFT: ",txt_62619_bank="Bank:  ",txt_62619_tytulem="Tytuł przelewu: ",txt_62619_do_zaplaty="Kwota przelewu: ",txt_62619_wplata_dane="<br/>Dokonaj wpłaty na poniższe dane.",txt_62619_close_window="Zamknij okno",txt_62619_https_error="Dokonać płatności kartą kredytową można tylko przy użyciu szyfrowanego połączenia. Sprawdź czy adres sklepu poprzedzony jest protokołem HTTPS lub skontaktuj się z obsługą sklepu.",txt_62619_voucher_error="Wystąpiły błędy płatności bonem. ",txt_62619_voucher_error_v1="W tym sklepie, ten bon jest nieważny.",txt_62619_voucher_error_v2="Numer bonu jest niepoprawny. Nie istnieje bon o takim identyfikatorze. Spróbuj wpisać identyfikator ponownie, upewniając się, że jest on poprawny.",txt_62619_giftcard_error_v2="Dane karty podarunkowej są niepoprawne.",txt_62619_voucher_error_v3="Ten bon jest zablokowany.",txt_62619_voucher_error_v4="Ten bon został już wykorzystany.",txt_62619_voucher_error_v5="Ten bon jest już nieważny - termin ważności minął.",txt_62619_voucher_error_v6="",txt_62619_voucher_error_v7="Bon o podanym identyfikatorze nie istnieje. Spróbuj wpisać identyfikator ponownie.",txt_62619_voucher_error_v8="Nie podano identyfikatora bonu.",txt_62619_payment_title="Dokonaj płatności",txt_62619_loader_message="Pobieram dane o płatności",txt_62619_loader_message2="Dodaję płatność",txt_62619_loader_message3="Pobieram historię płatności",txt_62619_hhtransfer_error="Wystąpiły błędy płatności punktami.",txt_62619_incorrect_paymentid="Wystąpiły błędy - wybierz inną formę płatności.",txt_62619_newpayment_error="Wystąpiły błędy płatności. Spróbuj ponownie opłacić zamówienie za chwilę.",txt_62619_newpayment_points_error="Nie masz wystarczającej ilości punktów lojalnościowych aby opłacić to zamówienie- wybierz inną formę płatności.",txt_62619_mozesz_row=" Możesz również ",txt_62619_anuluj_wplate=" anulować tę wpłatę",txt_62619_paymentCancelError='Wystąpił błąd podczas anulowania płatności. Spróbuj ponownie za chwilę lub  <a href="contact.php">skontaktuj się z nami</a>.',txt_62619_loader_message_4="Trwa anulowanie płatności",txt_62619_wypelnij_wniosek="Wypełnij wniosek",txt_62619_dokonaj_platnosci="Zapłać ",txt_62619_paypo_dokonaj_platnosci=" Przejdź do płatności odroczonej",txt_62619_do_oplacenia="Do opłacenia zamówienia pozostało Ci ",txt_62619_dodatkowa_opl="Dodatkowa opłata ",txt_62619_l_nawias=" (",txt_62619_r_nawias=")",txt_62619_payment_success="Dyspozycja dokonania płatności internetowej została przyjęta.",txt_62619_select_payment_method="Wybierz sposób zapłaty",txt_62619_select_firstData="Transakcja zostanie zrealizowana przez system płatności FirstData International",txt_prepaid0011_kredyt="Kredyt Kupiecki",txt_prepaid0011_saldo="saldo (nadpłata na koncie klienta)",txt_prepaid0019_upper="Wybierz inną formę płatności",txt_blikCode="Podaj 6-cyfrowy kod BLIK:",lukasnotconfirmed="Proszę zaznaczyć pole z wyrażeniem zgody.",zagielnotconfirmed="Przed zatwierdzeniem płatności eRaty zapoznaj się z regulaminem.",next_voucher_text="<span>+</span> Użyj kolejnego bonu",blik_js_txt_confirm="Potwierdź transakcję za pomocą aplikacji na swoim urządzeniu mobilnym.",blik_code_empty="",txt_terms_title="Płatność jednorazowa IdoPay",txt_terms_link="regulamin płatności jednorazowej IdoPay",txt_terms_checkbox="Oświadczam, że zapoznałam / zapoznałem się i w pełni akceptuję Regulamin.",txt_terms_checkbox1="Zapoznałem się i akceptuję ",txt_terms_checkbox2=", przez którą będzie realizowana płatność.",txt_62619_restartPayment="Ponów płatność",txt_62619_card_not_supported="Przepraszamy, ale nie obsługujemy tego rodzaju kart",txt_62619_blik_length_error="Kod BLIK powinien zawierać 6 cyfr";app_shop.run((function(){$("#prepaid_order_products .ordered-files ul li a").on("click",(function(t){t.preventDefault();const e=$(this),i=e.attr("href"),n=e.parent().find("span").text();let o=new Image;return o.src=i,o.onload=function(){Modal({html:`<div id="ui-dialogimg"><img alt="${n}" src="${i}" /></div>`,classList:"--medium"})},o.onerror=function(){window.open(i)},!1}))}),"all","#prepaid_order_products .ordered-files");const prepaidTxt={};function initCustomScroll(){const t=document.querySelector(".photoSwipe_innerthumbs .slick-list"),e=t?.querySelector(".slick-track");return!(!t||!e)&&(e.style.transform="none",e.style.height="auto",t.style.maxHeight="500px",t.style.overflowY="scroll",t.style.overflowX="hidden",t.style.scrollBehavior="smooth",t.style.pointerEvents="auto",t.addEventListener("wheel",(function(e){t.scrollTop+=e.deltaY})),!0)}prepaidTxt.week1=" tydzień",prepaidTxt.week2=" tygodnie",prepaidTxt.week3=" tygodni",prepaidTxtWeek=[prepaidTxt.week3,prepaidTxt.week1,prepaidTxt.week2],app_shop.run((function(){"undefined"!=typeof only_virtual&&"true"==only_virtual&&$("#prepaid_delivery_list").hide()}),"all"),jQuery.fn.hasScrollBar=function(){return this.width()<this.find(">*:first").width()},app_shop.vars.cmpItemWidth=200,app_shop.fn.cmpItemWidth=function(t,e){$("#compareCss").remove();var i=$("#product_compare_list").width()/t-2*e;app_shop.vars.cmpItemWidth=i,$("head").append("<style id='compareCss'>.compare .item_width{ width:"+i+"px; }</style>"),setTimeout((function(){$("#product_compare_list").hasScrollBar()?$("#product_compare_list_wrapper").addClass("hasScrollBar"):$("#product_compare_list_wrapper").removeClass("hasScrollBar")}),500)},app_shop.run((function(){app_shop.fn.cmpItemWidth(3,1)}),1,"#product_compare_list"),app_shop.run((function(){app_shop.fn.cmpItemWidth(4,1)}),2,"#product_compare_list"),app_shop.run((function(){app_shop.fn.cmpItemWidth(4,1)}),3,"#product_compare_list"),app_shop.run((function(){app_shop.fn.cmpItemWidth(5,1)}),4,"#product_compare_list"),app_shop.run((function(){var t=$("#product_compare_list_wrapper"),e=$("#product_compare_list"),i=function(){e.scrollLeft()+e.innerWidth()>=e[0].scrollWidth?t.addClass("hideNext"):t.removeClass("hideNext"),0==e.scrollLeft()?t.addClass("hidePrev"):t.removeClass("hidePrev")};$('.configure a[href="#differences"]').click((function(){var t=$(this),i=t.data("toggletxt").trim(),n=decodeURIComponent(t.html().trim());if(t.html(i),t.data("toggletxt",n),$("#product_compare_list .highlight").size())return $("#product_compare_list .highlight").removeClass("highlight"),!1;e.find("tr").not(".cmp_product").each((function(){$.unique($(this).find("td").map((function(){return $(this).text().trim().toLowerCase()}))).size()>1&&$(this).addClass("highlight")})),$.unique($(".list_traits li.producer div").map((function(){return $(this).text().trim().toLowerCase()}))).size()>1&&$(".list_traits li.producer").addClass("highlight"),$.unique($(".list_traits li.barcode div").map((function(){return $(this).text().trim().toLowerCase()}))).size()>1&&$(".list_traits li.barcode").addClass("highlight")})),$(".configure_item a[data-position]").click((function(){var n=$(this),o=n.data("position")-1;return $("#product_compare_list tr").each((function(){$(this).find("td").eq(o).toggleClass("hideCol")})),setTimeout((function(){e.hasScrollBar()?t.addClass("hasScrollBar"):t.removeClass("hasScrollBar"),i();var o=n.data("toggletxt").trim(),s=decodeURIComponent(n.html().trim());n.html(o),n.data("toggletxt",s)}),300),!1})),e.bind("scroll",(function(){i()})),e.scrollLeft(0),$(".navigation .prev").click((function(){e.animate({scrollLeft:"-="+app_shop.vars.cmpItemWidth},500)})),$(".navigation .next").click((function(){e.animate({scrollLeft:"+="+app_shop.vars.cmpItemWidth},500)}))}),"all","#product_compare_list"),app_shop.run((function(){$("#product_stocks_list .sizes_wrapper").wrappTableLayout({numCol:3})}),[3,4],"#product_stocks_list"),app_shop.run((function(){$("#product_stocks_list .sizes_wrapper").wrappTableLayout({numCol:2})}),2,"#product_stocks_list"),app_shop.run((function(){$("#product_stocks_list .sizes_wrapper").wrappTableLayout({numCol:1})}),1,"#product_stocks_list"),$((function(){$(".show_tab").click((function(){return 1==app_shop.vars.view&&($(this).toggleClass("tab_hidden").toggleClass("tab_visible"),$($(this).attr("href")).slideToggle("fast")),!1}))})),app_shop.run((function(){app_shop.fn.selectPaging=new SelectToDropdown({selector:".pb_paging__select:not(.f-dropdown)",afterClickDropdownCallback:t=>{t.closest("form").submit()}})}),"all",".products-bought .s_paging select"),app_shop.run((function(){$(".products-bought__product-button .btn-disabled").on("click",(function(t){return t.preventDefault(),!1}))}),"all",".products-bought__product-button .btn-disabled",!0),app_shop.run((function(){$(".products-bought__product-icon img.rwd-src").each((function(){$this=$(this),$this.attr("src",app_shop.fn.getRwdSrc($this))}));const t=document.querySelector(".products-bought__input-checkbox-all + .f-label"),e=document.querySelectorAll(".products-bought__input-checkbox + .f-label"),i=document.querySelector(".products-bought__products-button .btn");
32t.onclick=()=>(t=>{const e=t.previousSibling,i=document.querySelectorAll(".products-bought__checkbox:not(.--unavailable) .products-bought__input-checkbox");e.checked?(e.checked=!1,i.forEach((t=>{t.checked=!1}))):(e.checked=!0,i.forEach((t=>{t.checked=!0})))})(t),e.forEach((t=>{t.onclick=()=>(t=>{const e=t.previousSibling,{id:i,size:n}=e.dataset;if(!i||!n)return Alertek.Error(app_shop.txt.txt_1000_products_bought_error);e.checked?e.checked=!1:e.checked=!0})(t)})),i.onclick=async()=>{const t=new FormData,e=document.querySelectorAll(".products-bought__checkbox:not(.--unavailable) .products-bought__input-checkbox");[...document.querySelectorAll(".products-bought__product-button .btn")].map(((t,i)=>e[i].checked?t.href:updatedHref=t.href.split("&").map((t=>t.includes("number")?"number=0":t)).join("&"))).forEach(((e,i)=>{e.split("?")[1].split("&").filter((t=>!t.includes("mode")&&!t.includes("bundled"))).forEach((e=>{let n="number"===e.split("=")[0]?`set_quantity[${i+1}]`:`${e.split("=")[0]}[${i+1}]`;const o=e.split("=")[1];t.append(`${n}`,`${o}`)}))}));try{await fetch("basketchange.php?type=multiproduct",{method:"POST",body:t}),window.location.reload()}catch(t){throw new Error(t)}};(async()=>{const t=document.querySelectorAll(".products-bought__lowest_price");if(t.length){const e=await app_shop.graphql.getLowestPrice(`lastLowestPricesInput: [${[...t].map((t=>`{\n        date: "${t.getAttribute("data-change-date")}",\n        productId: ${t.getAttribute("data-id")},\n        sizeId: "${t.getAttribute("data-size")}",\n      }`)).join(",")}]`);e?.data?.getLastLowestProductPrices&&e?.data?.getLastLowestProductPrices.forEach((t=>{const e=document.querySelector(`.products-bought__lowest_price[data-id="${t.id}"][data-size="${t?.sizes[0]?.id}"]`);e&&(e.classList.add("--active"),e.querySelector(".products-bought__lowest_price_value").textContent=t.sizes[0].price[app_shop.vars.priceType].formatted)}))}})()}),"all","#products-bought"),app_shop.run((function(){const t=document.querySelector("#paging_setting_bottom"),e=document.querySelector(".products-bought__products-button");t&&e&&e.append(t)}),[3,4],"#products-bought",!0),document.addEventListener("DOMContentLoaded",(function(){const t=document.getElementById("projector_form"),e=document.getElementById("projector_productname"),i=document.getElementById("product-card__labels");if(!t||!e)return;const n=t.getAttribute("data-product_id"),o=localStorage.getItem("allShoppingListProducts");if(!o)return;if(JSON.parse(o).some((t=>t.product_id===n))){const t=e.querySelector(".product-card__favorite--desktop"),n=i.querySelector(".product-card__favorite"),o=t.querySelector("img"),s=n.querySelector("img");o&&o.setAttribute("src","/data/include/cms/wishlist-heart-fill.svg?v=1776721280688"),s&&s.setAttribute("src","/data/include/cms/wishlist-heart-fill.svg?v=1776721280688")}})),$(document).on("hover.zoomContainer",".zoomContainer, .photos__slider .photos__link",(function(){})),$(document).on("click","#photos_slider .photos__link, #photos_nav a.--more",(function(t){t.preventDefault();const e=$(this).hasClass("--more")?parseInt($(this).data("slick-index"),10):parseInt($(this).parent().data("slick-index"),10);return app_shop.vars.projectorPhotoSwipe.init(e),document.activeElement.blur(),!1})),app_shop.run((function(){app_shop.vars.projectorElevate=new ProjectorElevate({selector:".no-touch .photos__slider .slick-active .photos__photo[data-zoom-image]"}),app_shop.vars.projectorSlider=new ProjectorSlider({selector:".photos__slider .photos___slider_wrapper:not(.slick-initialized)",options:{responsive:[{breakpoint:979,settings:{dots:!0,arrows:!0}}]},callbackBefore:t=>{t.on("init",(function(){app_shop.vars.projectorElevate.init()})).on("afterChange",(function(){app_shop.vars.projectorElevate.reset();const e=document.querySelector(".photos__figure.--video.slick-active video[data-src]");if(e){const i=e.getAttribute("data-src");e.setAttribute("src",i),e.removeAttribute("data-src"),e.addEventListener("loadeddata",(function(){t.slick("setOption","","",!0)}))}const i=document.querySelector(".photos__figure.--video:not(.slick-active) video[src]");i&&i.pause();const n=document.querySelector("#photos_nav .photos__link.--active").getBoundingClientRect().top-document.querySelector("#photos_nav").getBoundingClientRect().top+document.querySelector("#photos_nav").scrollTop;document.querySelector("#photos_nav").scroll({top:n,behavior:"smooth"})})).on("lazyLoaded",(function(){$("#photos_slider").removeAttr("data-skeleton")}))}}),app_shop.vars.projectorPhotoSwipe=new ProjectorPhotoSwipe({selector:"#photos_slider .photos__figure:not(.slick-cloned) .photos__link",pswp:".pswp"}),$("#photos_slider .photos__link.--video").off().on("click",(function(t){return t.preventDefault(),!1}))}),"all","#photos_slider",!0),app_shop.txt.txt_111709_1="Udostępnij na Facebooku",app_shop.txt.txt_111709_2="Pobierz zdjęcie",ProjectorPhotoSwipe=function(t){this.params=t,this.defaults={timeToIdle:!1,index:0,zoomEl:!1,fullscreenEl:!1,shareEl:!1,history:!1,focus:!1,showAnimationDuration:0,hideAnimationDuration:0,shareButtons:!1,closeOnScroll:!1,captionEl:!1,clickToCloseNonZoomable:!1,
32closeElClasses:["caption","zoom-wrap","ui"]},this.init=t=>{const{selector:e,options:i,pswp:n,itemsArray:o,thumbnailsFunc:s}=this.params;this.settings=_objectSpread({},this.defaults,{},i),this.selector=e,this.pswp=document.querySelectorAll(n)[0],this.items=[];let r=document.createElement("span");r.classList.add("photoSwipe_overlay"),document.body.appendChild(r),document.querySelector(".photoSwipe_overlay").addEventListener("click",(function(){document.querySelector(".pswp__button--close").click()})),o?this.items=o:this.setItemsArray(),t&&(this.settings.index=t);const a=new PhotoSwipe(this.pswp,PhotoSwipeUI_Default,this.items,this.settings);a.listen("gettingData",(function(t,e){if(e.w<1||e.h<1){const t=new Image;t.onload=function(){e.w=this.width,e.h=this.height,a.updateSize(!0)},t.src=e.src}})),a.init(),"function"==typeof s?s(a):this.setThumbnails(a),document.querySelector(".photos__figure.--video video[src]")&&document.querySelector(".photos__figure.--video video[src]").pause()},this.setItemsArray=()=>{[].slice.call(document.querySelectorAll(this.selector)).forEach((t=>{const e=t.classList.contains("--video")?{html:`<video controls="controls" autoplay="autoplay" data-src="${t.getAttribute("href")}"></video>`}:{src:t.getAttribute("href"),w:t.getAttribute("data-width"),h:t.getAttribute("data-height")};this.items.push(e)}))},this.setThumbnails=t=>{const e=document.createElement("div");e.classList.add("photoSwipe_innerthumbs"),document.querySelector(".pswp").appendChild(e),document.querySelector("div.photoSwipe_innerthumbs").innerHTML=[...document.querySelectorAll("#photos_slider .photos__photo")].map((t=>`<figure class="photos__figure --nav">
32\n      <span class="photos__link --nav">${t.outerHTML}</span>\n    </figure>`)).join(""),document.querySelector(".photos__link.--video video")&&(document.querySelector("div.photoSwipe_innerthumbs").innerHTML+='<figure class="photos__figure --nav --video">\n        <span class="photos__link --nav --video"></span>\n      </figure>'),document.querySelectorAll("div.photoSwipe_innerthumbs .photos__photo").forEach((t=>t.classList.add("--nav"))),1===document.querySelectorAll("#photos_slider .photos__photo").length&&document.querySelector("div.photoSwipe_innerthumbs").classList.add("--one");const i=document.querySelectorAll("div.photoSwipe_innerthumbs .photos__link"),n=t.getCurrentIndex();i[n].classList.add("--active");const o=document.querySelector("div.photoSwipe_innerthumbs .photos__link.--active").getBoundingClientRect().top-document.querySelector("div.photoSwipe_innerthumbs").getBoundingClientRect().top+document.querySelector("div.photoSwipe_innerthumbs").scrollTop;document.querySelector("div.photoSwipe_innerthumbs").scroll({top:o,behavior:"smooth"});let s=document.createElement("span");s.classList.add("photoSwipe_name"),s.innerHTML=`${document.querySelector(".product_name__name").innerText}`,document.querySelector(".pswp__top-bar").append(s);const r=()=>{let t=document.createElement("span"),e=document.querySelector(".pswp__counter").innerText;e=e.replaceAll(" ",""),e=e.split("/"),e[0]=`<b>${e[0]}</b>`,t.innerHTML=e.join("/"),document.querySelector(".pswp__counter").innerHTML="",document.querySelector(".pswp__counter").append(t)};r(),4==app_shop.vars.view&&$(".photoSwipe_innerthumbs").slick({mobileFirst:!0,vertical:!0,dots:!1,arrows:!1,infinite:!1,prevArrow:'<a class="slick-prev" href="#"><i class="icon-angle-up"></i></a>',nextArrow:'<a class="slick-next" href="#"><i class="icon-angle-down"></i></a>',slidesToShow:7}
32),i.forEach((e=>{e.addEventListener("click",(function(){i.forEach((t=>{t.classList.remove("--active")})),this.classList.add("--active"),t.goTo([...i].indexOf(this))}));const n=e.querySelector(".photos__photo.slick-loading");n&&(n.setAttribute("src",n.getAttribute("data-lazy")),n.removeAttribute("data-lazy"),n.classList.remove("slick-loading"))})),t.listen("close",(function(){document.querySelector(".photoSwipe_innerthumbs").parentNode.removeChild(document.querySelector(".photoSwipe_innerthumbs")),document.body.removeChild(document.querySelector(".photoSwipe_overlay")),document.querySelector(".pswp video[src]")&&document.querySelector(".pswp video[src]").pause()})),t.listen("afterChange",(function(){const e=document.querySelectorAll("div.photoSwipe_innerthumbs .photos__link"),i=t.getCurrentIndex();e.forEach((t=>{t.classList.remove("--active")})),e[i].classList.add("--active");const n=document.querySelector("div.photoSwipe_innerthumbs .photos__link.--active").getBoundingClientRect().top-document.querySelector("div.photoSwipe_innerthumbs").getBoundingClientRect().top+document.querySelector("div.photoSwipe_innerthumbs").scrollTop;document.querySelector("div.photoSwipe_innerthumbs").scroll({top:n,behavior:"smooth"});const o=t.currItem.container.querySelector("video[data-src]");if(o){const t=o.getAttribute("data-src");o.setAttribute("src",t),o.removeAttribute("data-src")}document.querySelector(".pswp video[src]")&&document.querySelector(".pswp video[src]").pause(),r()}))}};const interval=setInterval((()=>{initCustomScroll()&&clearInterval(interval)}),100);document.addEventListener("DOMContentLoaded",(function(){const t=document.getElementById("opinions_section_mobile-link"),e=document.querySelector(".--notes-mobile");let i=document.querySelector(".projector_tabs__wrapper.--last");function n(t=!0){i&&(i.classList.add("--active"),t&&i.scrollIntoView({behavior:"smooth",block:"start"}))}if(t&&t.addEventListener("click",(function(t){t.preventDefault(),n(!1);const e=this.getAttribute("href");if(e&&e.startsWith("#")){const t=document.querySelector(e);t&&t.scrollIntoView({behavior:"smooth"})}else e&&(window.location.href=e)})),e&&e.addEventListener("click",(()=>{n(!0)})),!i){new MutationObserver(((t,e)=>{i=document.querySelector(".projector_tabs__wrapper.--last"),i&&e.disconnect()})).observe(document.body,{childList:!0,subtree:!0})}})),app_shop.run((function(){$(".projector_buy__shopping_list, .projector_tell_availability__shopping_list").on("click",(function(t){return app_shop.fn.projectorForm.sizeSelected()?!("function"==typeof app_shop.fn.bundleSizeSelected&&!app_shop.fn.bundleSizeSelected())&&(app_shop.fn.shoppingList.addProductToList([[document.getElementById("projector_product_hidden").value,document.getElementById("projector_size_hidden").value]]),!1):(app_shop.fn.projectorForm.alertProjector(),!1)}))}),"all",".projector_buy__shopping_list",!0),app_shop.run((function(){app_shop.fn.projectorForm=new ProjectorForm,app_shop.fn.projectorForm.init()}),"all","#projector_form",!0),app_shop.fn.getExpressCheckoutData=async t=>{if("undefined"!=typeof expressCheckoutApi&&"function"==typeof expressCheckoutApi.initCheckout){const e=(t.target?t.target:t).closest(".projector_oneclick__item").getAttribute("data-id"),i=new URLSearchParams(new FormData(document.getElementById("projector_form")));await expressCheckoutApi.initCheckout(e,i)}},app_shop.fn.checkProjectorData=t=>{if(!app_shop.fn.projectorForm.sizeSelected())return t||app_shop.fn.projectorForm.alertProjector(),!1;if(!app_shop.fn.bundleVersionSelected(t))return!1;if(!app_shop.fn.bundleSizeSelected(t))return!1;const e=document.querySelector(".projector_buy__more");e&&e.classList.add("--active");document.querySelectorAll(".projector_buy__number, .projector_buy__number .f-dropdown-toggle").forEach((t=>{t.classList.remove("--disabled")}));const i=document.querySelector("h1.product_name__name"),n=document.querySelector(".projector_oneclick");return document.querySelectorAll(".projector_oneclick__item").forEach((t=>{i&&0===i.textContent.length?(t.classList.remove("--checked"),n&&n.setAttribute("data-hide",!0)):t.classList.add("--checked")})),!0};const expressCheckoutApiClickEvent=t=>!t.target.closest(".projector_oneclick__item").classList.contains("--loading")&&!!app_shop.fn.checkProjectorData();app_shop.run((function(){document.querySelectorAll(".projector_oneclick__item").forEach((t=>{if(t.addEventListener("click",expressCheckoutApiClickEvent),"undefined"!=typeof expressCheckoutApi&&"function"==typeof expressCheckoutApi.renderButton){const e=t.getAttribute("data-id");expressCheckoutApi.renderButton(e,t)}}))}),"all",".projector_oneclick__item",!0),app_shop.run((function(){app_shop.vars.curr_url_projector=location.pathname,$(window).on("popstate",(function(){app_shop.vars.curr_url_projector!==location.pathname&&(window.location.href=window.location.href)}))}),"all","#projector_form");const projectorFormatPrice=t=>format_price(t.price,{mask:app_shop.vars.currency_format,currency:t.currency,currency_space
32:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value});function projectorEndStartCallback(){app_shop.fn.updateYouSave();const{price:t}=projectorObj.currentSizeObj;if(void 0!==t&&$("#projector_rebateNumber").length&&void 0!==t.rebateNumber){$("#projector_form .projector_multipack").addClass("--active").removeClass("--hide");const{rebateNumber:e}=t,i=!!projectorObj.rebateThreshold&&parseFloat(projectorObj.rebateThreshold,10);$(".projector_multipack__item").length>1?$(".projector_multipack__item").each((function(t){$(this).find(".projector_multipack__price").text("net"===app_shop.vars.priceType?e.items[t].price_net_formatted:e.items[t].price_formatted),i&&i===parseFloat($(this).data("value"),10)?$(this).find("input").prop("checked",!0):$(this).find("input").prop("checked",!1)})):($(".projector_multipack__price").text("net"===app_shop.vars.priceType?e.nextprice_net_formatted:e.nextprice_formatted),i&&i===parseFloat($(".projector_multipack__item").data("value"),10)?$(".projector_multipack__item input").prop("checked",!0):$(".projector_multipack__item input").prop("checked",!1))}else $("#projector_rebateNumber").length&&$("#projector_form .projector_multipack").addClass("--hide");"undefined"!=typeof expressCheckoutApi&&"function"==typeof expressCheckoutApi.refreshInitData&&expressCheckoutApi.refreshInitData(),app_shop.fn.checkProjectorData(!0);const{amount:e}=projectorObj.currentSizeObj;if(void 0!==e&&+e>0){const t=document.getElementById("projector_number"),i=t.getAttribute("data-minimum-quantity-subscription")||t.getAttribute("data-minimum-quantity")||t.getAttribute("data-sellby"),n=document.getElementById("projector_form");+i>+e&&n.classList.add("disable")}}function projectorEndInitFunctionCallback(){}app_shop.fn.updateYouSave=()=>{$("#projector_form[data-collection]").length&&1===$("#projector_form[data-collection] .projector_bundle__checkbox:checked").length||"true"==projectorObj.currentSizeObj.phone_price||"undefined"==typeof yousaveTmp||isNaN(yousaveTmp)?$("#projector_price_yousave").hide():($("#projector_price_yousave").show().html(`<span class="projector_prices__percent_before">${projectorObj.txt.oszczedzasz}</span><span class="projector_prices__percent_value">${+yousave_percentTmp<1?yousave_percentTmp:yousave_percentTmp.split(".")[0]}</span><span class="projector_prices__percent_after">${"product_bundle"===product_data.product_type&&+projectorObj.currentSizeObj.bundle_price.percent_diff>0&&+projectorObj.currentSizeObj.bundle_price.amount_diff_gross>0?document.querySelector(".projector_details[data-collection]")?projectorObj.txt.nawias_end_collection:projectorObj.txt.nawias_end_bundle:projectorObj.txt.nawias_end}</span>`),$("#projector_price_maxprice_wrapper").show())},app_shop.run((function(){app_shop.fn.productStocks=new ProductStocks({stockLinkSelector:".projector_stocks__info.--link"}),app_shop.fn.productStocks.init()}),"all",".projector_stocks__info.--link",!0),app_shop.run((function(){$(".projector_instalments__link").on("click",(function(){return $(".projector_instalments").toggleClass("--active"),app_shop.vars.bLazy.revalidate(),!1}))}),"all",".projector_instalments__link",!0);var projectorv3_disable_ajax="1";projectorObj=new projectorClass,projectorObj.txt.additional_texts="",projectorObj.txt.za=" za ",projectorObj.txt.taniej="% (",projectorObj.txt.oszczedzasz="(Zniżka ",projectorObj.txt.wzestawie="), kupując w zestawie. ",projectorObj.txt.niedostepny="Produkt niedostępny",projectorObj.txt.tylkotel="Cena na telefon. Skontaktuj się ze sprzedawcą.",projectorObj.txt.tylko_punkty="Produkt dostępny tylko w programie lojalnościowym.",projectorObj.txt.za_malo_punktow="Nie masz wystarczającej ilości punktów",projectorObj.txt.gratis="Wysyłka gratis!",projectorObj.txt.niemastanu="Produkt niedostępny",projectorObj.txt.status_24="24 godz.",projectorObj.txt.status_48="48 godz.",projectorObj.txt.status_natychmiast="Natychmiast",projectorObj.txt.day=" dzień ",projectorObj.txt.days=" dni  ",projectorObj.txt.hour=" godz.",projectorObj.txt.hours=" godz. ",projectorObj.txt.min=" min ",projectorObj.txt.mins=" min. ",projectorObj.txt.proc="%",projectorObj.txt.wybrany_rozmiar="Rozmiar:",projectorObj.txt.wysylka="Wysyłka ",projectorObj.txt.wysylka_za="Wysyłka w ciągu ",projectorObj.txt.shipmentIn="Wysyłka za ",projectorObj.txt.tomorrow=" jutro",projectorObj.txt.dostepny="",projectorObj.txt.dostepny_za=" za ",projectorObj.txt.pkt=" pkt.",projectorObj.txt.status_amount_full="większa ilość",projectorObj.txt.status_amount_null="brak w magazynie",projectorObj.txt.forpointsonly="Produkt możesz kupić za punkty.",projectorObj.txt.disable_desc="Skontaktuj się z nami.",projectorObj.txt.choiceSize="Wybierz rozmiar",projectorObj.txt.maksymalnie="Maksymalnie możesz dodać",projectorObj.txt.minimalnie="Minimalnie musisz zamówić ",projectorObj.txt.brak_magazyn="Brak na magazynie",projectorObj.txt.koszt_od="Koszt od ",projectorObj.txt.wysylka_total_begin="<br/>(z tow. z koszyka ",projectorObj.txt.wysylka_total_end=")",projectorObj.txt.nawias_end_collection="% kupując w kolekcji)",projectorObj.txt.nawias_end_bundle="% kupując w zestawie)",projectorObj.txt.nawias_end="%)",projectorObj.txt.gratis_produkt="Gratis!",projectorObj.txt.virtual_inbasket="Produkt znajduje się już w koszyku",projectorObj.txt.infinity="",projectorObj.txt.ilosc_mm="Aktualnie w naszym magazynie mamy <b>%d</b>.",projectorObj.txt.ilosc_mo="Kolejne <b>%d</b> możemy sprowadzić na zamówienie.",projectorObj.txt.ilosc_mo_inf="Dowolną ilość możemy sprawadzić na zamówienie.",projectorObj.txt.size_select_functionality="0",projectorObj.txt.sizes_projector_functionality="1",projectorObj.txt.size_select_label="Rozmiar:",projectorObj.txt.size_select_tell_availability="Powiadom o dostępności",projectorObj.txt.size_select_last_unit="Ostatnia sztuka!",projectorObj.txt.size_select_few_last_units="Ostatnie sztuki!",projectorObj.txt.order_by="Zamów do ",projectorObj.txt.it_will_ship_today=" to wyślemy dzisiaj";var Projector_txt_maksymalnie="Maksymalnie możesz zamówić: ",Projector_txt_minimalnie=projectorObj.txt.minimalnie,Projector_txt_brak_magazyn="Brak na magazynie",Projector_txt_produkt_niedostepny="Produkt niedostępny",Projector_txt_podajilosc="Podaj ilość dla wybranego rozmiaru",Projector_txt_zalogujsie="Zaloguj się",Projector_txt_closedialog="",txt_raty_button1="Oblicz raty wybranego produktu",txt_raty_button2="Oblicz raty wraz z kwotą z koszyka ",txt_62619_cms_table="Tabela rozmiarów",txt_toltip_1="Cena najtańszej z dostępnych form wysyłki z uwzględnieniem twojego koszyka. Pełną listę cen i kurierów otrzymasz podczas składania zamówienia.",txt_toltip_2="Program lojalnościowy dostępny jest tylko dla zalogowanych klientów.",txt_toltip_2a="Możesz zamieniÄ
32‡ zgromadzone punkty lojalnościowe na ten produkt. Obecnie masz [xxx] punktów.",txt_toltip_3="Po opłaceniu zamówienia przyznamy ci taką ilość punktów lojalnościowych. Å»eby zbierać punkty musisz być zarejestrowanym klientem.",txt_toltip_3a="Po opłaceniu zamówienia przyznamy ci taką ilość punktów lojalnościowych.",txt_toltip_4="",prepaid="Płatność przed wysyłką",dvp="Płatność przy odbiorze",day_txt=" dzień ",days_txt=" dni ",hour_txt=" godz. ",hours_txt=" godz. ",min_txt=" min.",txt_24h="24h",txt_do_24h="do 24h",delivery_txt="Sam transport zajmie ",delivery_txt2="Przygotowanie do odbioru osobistego zajmie ",delivery_txt3="Forma dostawy dostępna od ",gratis_txt="Gratis!";app_shop.txt.txt_74629_1="Do końca promocji: ",app_shop.txt.txt_74629_2="Wybierz inną opcję.",app_shop.txt.txt_74629_3="dni",app_shop.txt.txt_74629_4="godzin ",app_shop.txt.txt_74629_5="minut ",app_shop.txt.txt_74629_6="sekund ",app_shop.txt.txt_74629_7="Przepraszamy, ale nie zdefiniowaliśmy standardowego kosztu dostawy, zostanie on ustalony indywidualnie przez naszą obsługę po przyjęciu zamówienia.";var txt_shipping_8=" dzisiaj",txt_shipping_9=" w poniedziałek ",txt_shipping_10=" we wtorek ",txt_shipping_11=" w środę ",txt_shipping_12=" w czwartek ",txt_shipping_13=" w piątek ",txt_shipping_14=" w sobotę ",txt_shipping_15=" w niedzielę ",txt_shipping_16="jutro!";app_shop.txt.txt_74629_8="Proszę wybrać rozmiar",projectorObj.options.friendly_shipping_format=[txt_shipping_8,txt_shipping_9,txt_shipping_10,txt_shipping_11,txt_shipping_12,txt_shipping_13,txt_shipping_14,txt_shipping_15],app_shop.txt.txt_74629_9="Twój produkt jest gotowy do wysyłki",app_shop.txt.txt_74629_10="Twój produkt jest już spakowany i gotowy do odebrania przez kuriera",app_shop.txt.txt_74629_11="Czas przygotowania produktu do wysyłki",app_shop.txt.txt_74629_11a="Gotowy do wysyłki",app_shop.txt.txt_74629_11b="Produkt jest spakowany i możliwy do odebrania przez kuriera",app_shop.txt.txt_74629_12="Jest to czas, w którym produkt jest pakowany i przygotowywany do odebrania przez kuriera",app_shop.txt.txt_74629_13="",app_shop.txt.txt_74629_14="Przygotowanie do odbioru osobistego zajmie do 24h",app_shop.txt.txt_74629_15="Przygotowanie do odbioru osobistego zajmie 24h",app_shop.txt.txt_74629_16="Przygotowanie do odbioru osobistego zajmie ",app_shop.txt.txt_74629_17="Przesyłka będzie u Ciebie dzisiaj! ",app_shop.txt.txt_74629_18="Przesyłka będzie u Ciebie jutro!",app_shop.txt.txt_74629_19="Przesyłka będzie u Ciebie za ",app_shop.txt.txt_74629_16467="Zamknij okno",app_shop.txt.txt_74629_conflict="Wybór tej pozycji 
32spowoduje konieczność dostosowania innych opcji. ",app_shop.txt.txt_sold_out="wyprzedane";var txt_62619_nieprawidlowy_email="Niepoprawny adres email.",txt_62619_przekroczono_liczbe="Przekroczono liczbę dodanych powiadomień w ciągu dnia.",txt_62619_podczas_dodawania="Podczas dodawania produktu wystąpił błąd. Sprawdź poprawność wprowadzonych danych",txt_62619_produkt_dodany="Produkt został poprawnie dodany do powiadomień.",txt_62619_blad_pobrania="Wystąpił problem z połączeniem. Wykonaj czynność ponownie.",txt_62619_bledny_email="Błędnie wpisany e-mail. Wpisz pełny adres e-mail, np. [email protected] ",txt_62619_wpisz_telefon="Wpisz swój telefon. ",fashionGallery_new="";function CountdownTimer(t,e){this.initialize.apply(this,arguments)}function openFreeShippingModal(){new ShippingInfo({getCouriersFunction:async t=>{const e=await app_shop.graphql.getCouriersForModal(t);return e&&e.data&&e.data.shipping&&e.data.shipping.shipping&&e.data.shipping.shipping.forEach((t=>{"prepaid"===t.prepaid?(t.cost.value=0,t.cost.formatted="Gratis!"):(t.cost.value=6,t.cost.formatted="6,00 zł")})),e},productParamsFunction:app_shop.graphql.projectorShippingInput}).init()}app_shop.txt.daysOfWeek=["Dzisiaj","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota","Niedziela"],app_shop.txt.shippingInfoVat="* Cena brutto (z VAT)",app_shop.txt.shippingInfoPrepaid="Płatność przed wysyłką",app_shop.txt.shippingInfoDvp="Płatność przy odbiorze",app_shop.txt.shippingInfoHeaderName="Forma dostawy",app_shop.txt.shippingInfoHeaderDelivery="Przewidywana dostawa",app_shop.txt.shippingInfoHeaderCost="Cena *",CountdownTimer.prototype={initialize:function(t,e){this.elem=t,this.tl=e,this.tid=""},newData:function(t){this.tl=t},countDown:function(){var t="",e=new Date,i=Math.floor((this.tl-e)/864e5),n=Math.floor((this.tl-e)%864e5/36e5),o=Math.floor((this.tl-e)%864e5/6e4)%60,s=Math.floor((this.tl-e)%864e5/1e3)%60%60,r=this;if(!(this.tl-e>0))return clearTimeout(this.tid),void this.elem.remove();t+='<label class="projector_label">'+app_shop.txt.txt_74629_1+"</label><div>",this.addZero(i)>0&&(t+='<span class="number-wrapper"><div class="line"></div><div class="caption">'+app_shop.txt.txt_74629_3+'</div><span class="number day">'+this.addZero(i)+"</span></span>"),t+='<span class="number-wrapper"><div class="line"></div><div class="caption">'+app_shop.txt.txt_74629_4+'</div><span class="number hour">'+this.addZero(n)+"</span></span>",t+='<span class="number-wrapper"><div class="line"></div><div class="caption">'+app_shop.txt.txt_74629_5+'</div><span class="number min">'+this.addZero(o)+'</span></span><span class="number-wrapper"><div class="line"></div><div class="caption">'+app_shop.txt.txt_74629_6+'</div><span class="number sec">'+this.addZero(s)+"</span></span></div>",this.elem.html(t),this.tid=setTimeout((function(){r.countDown()}),1e3)},addZero:function(t){return 1===t.toString().length?`0${t}`.slice(-2):t}},app_shop.graphql.projectorShippingInput=()=>{let t="";if(document.querySelector('#projector_form[data-type="product_bundle"]')){t=`bundleParts: [${[...document.querySelector("#projector_form[data-collection]")?document.querySelectorAll(".projector_bundle__checkbox:checked"):document.querySelectorAll(".projector_bundle__item")].map((t=>`{\n        id: ${t.closest(".projector_bundle__item").querySelector(".projector_bundle__product_id").value}\n        size: "${t.closest(".projector_bundle__item").querySelector(".projector_bundle__product_size")?t.closest(".projector_bundle__item").querySelector(".projector_bundle__product_size").value:t.closest(".projector_bundle__item").querySelector(".projector_bundle__size-select").value}"\n      }`)).join("")}]`}return`ShippingInput: {\n      mode: product\n      products: [{\n        id: ${document.getElementById("projector_product_hidden").value}\n        size: "${"onesize"===document.getElementById("projector_size_hidden").value?"uniw":document.getElementById("projector_size_hidden").value}"\n        quantity: ${document.getElementById("projector_number")?document.getElementById("projector_number").value:product_data.unit_sellby}\n        ${t}\n      }]\n    }`},app_shop.graphql.getShippingTime=async t=>{const e=JSON.stringify({query:`query {\n        shipping(${t}) {\n          shippingTime {\n            shippingTime {\n              time {\n                days\n                hours\n                minutes\n              }\n              weekDay\n              weekAmount\n              today\n            }\n            time\n            unknownTime\n            todayShipmentDeadline\n          }\n        }\n      }`});try{const t=await fetch(app_shop.urls.graphql,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:e});return await t.json()}catch(t){return console.error("AJAX fetchDataShippingTime() Error:",t),!1}},app_shop.graphql.getCouriersForModal=async t=>{const e=JSON.stringify({query:`query {\n        shipping(${t}) {\n          shipping {\n            courier {\n              icon\n              name\n            }\n            prepaid\n            cost {\n              value\n              formatted\n            }\n            deliveryTime {\n              time {\n                days\n                hours\n                minutes\n              }\n              weekDay\n              weekAmount\n              today\n            }\n          }\n        }\n      }`});try{const t=await fetch(app_shop.urls.graphql,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:e});return await t.json()}catch(t){return console.error("GraphQL fetchDataShipping() Error:",t),!1}},ShippingInfo=function(t){const e=this;this.params=t||{},this.couriersDataBuffer=[],this.calculateDate=t=>{const{days:e,hours:i,minutes:n}=t,o=new Date;return void 0!==e&&o.setDate(o.getDate()+parseInt(e,10)),void 0!==i&&o.setHours(o.getHours()+parseInt(i,10)),void 0!==n&&o.setMinutes(o.getMinutes()+parseInt(n,10)),o.toJSON().slice(0,10).split("-").reverse().slice(0,-1).join(".")},this.getCourierHtml=t=>{const i=document.createElement("div");i.classList.add("shipping_info__courier");const n=t.courier.icon,o=t.courier.name,s="Kurier InPost"===(r=o)?"Kurier InPost (do 30 kg)":"Paczkomat® InPost 24/7"===r?"Paczkomat® InPost 24/7 (do 25 kg)":"ORLEN Paczka wszystkie rozmiary"===r?"ORLEN Paczka wszystkie rozmiary (do 20 kg)":"Kurier GLS"===r?"Kurier GLS (do 30 kg)":r;var r;const a=t.deliveryTime.today?app_shop.txt.daysOfWeek[0]:app_shop.txt.daysOfWeek[t.deliveryTime.weekDay],l=t.deliveryTime.weekAmount>0?` (${e.calculateDate({days:t.deliveryTime.time.days,hours:t.deliveryTime.time.hours,minutes:t.deliveryTime.time.minutes})})`:"",c=0===t.cost.value,d=c?gratis_txt:t.cost.formatted,u=c?' style="color:#FF0000;"':"";return i.innerHTML=`<span class="shipping_info__item --icon"><img src="${n}" alt="${o}"/></span>
32\n      <span class="shipping_info__item --name">${s}</span>\n      <span class="shipping_info__item --delivery">${a}${l}</span>\n      <strong class="shipping_info__item --cost"${u}>${d}</strong>`,i},this.create=async()=>{const t=md5(this.productParamsFunction()),i=this.couriersDataBuffer.filter((e=>e.key===t));let n={};if(i.length?n=JSON.parse(i[0].value):(n=await this.getCouriersFunction(this.productParamsFunction()),this.couriersDataBuffer.push({key:t,value:JSON.stringify(n)})),n&&n.data&&n.data.shipping&&n.data.shipping.shipping){const{shipping:t}=n.data.shipping,i=t.filter((t=>"dvp"===t.prepaid)),o=t.filter((t=>"prepaid"===t.prepaid)),s=document.createElement("div");s.classList.add("shipping_info"),s.id="shipping_info",s.innerHTML=`<div class="shipping_info__body">\n          ${o.length?`<div class="shipping_info__block --prepaid">\n            <strong class="shipping_info__label">${app_shop.txt.shippingInfoPrepaid}</strong>\n            <div class="shipping_info__header">\n              <span class="shipping_info__header_item --icon-name">${app_shop.txt.shippingInfoHeaderName}</span>\n              <span class="shipping_info__header_item --delivery">${app_shop.txt.shippingInfoHeaderDelivery}</span>\n              <span class="shipping_info__header_item --cost">${app_shop.txt.shippingInfoHeaderCost}</span>\n            </div>\n            <div class="shipping_info__couriers">\n              ${o.map((t=>e.getCourierHtml(t).outerHTML)).join("")}\n            </div>\n          </div>`:""}\n          ${i.length?`<div class="shipping_info__block --prepaid">\n            <strong class="shipping_info__label">${app_shop.txt.shippingInfoDvp}</strong>\n            <div class="shipping_info__header">\n              <span class="shipping_info__header_item --icon-name">${app_shop.txt.shippingInfoHeaderName}</span>\n              <span class="shipping_info__header_item --delivery">${app_shop.txt.shippingInfoHeaderDelivery}</span>\n              <span class="shipping_info__header_item --cost">${app_shop.txt.shippingInfoHeaderCost}</span>\n            </div>\n            <div class="shipping_info__couriers">\n              ${i.map((t=>e.getCourierHtml(t).outerHTML)).join("")}\n            </div>\n          </div>`:""}\n        </div>\n        <div class="shipping_info__footer">\n          <span class="shipping_info__vat">${app_shop.txt.shippingInfoVat}</span>\n          <span class="shipping_info__see-details">Szczegóły dotyczące kosztów wysyłki zamówień opłacanych przy odbiorze sprawdź <a href="https://sklepdlaogrodu.pl/pl/delivery.html">tutaj</a>.</span>\n        </div>`,this.onlyHtml?this.onlyHtml(s):Modal({element:s,classList:"--shipping-info --large --mobile",afterShow:()=>{document.querySelector(".modal__wrapper").classList.add("modal__shipping"),this.afterShowModal()}})}else{const t=`<div class="menu_messages_message"><div class="menu_messages_message_sub"><p>${app_shop.txt.txt_74629_7}</p></div></div>`;this.onlyHtml?this.onlyHtml(t):Modal({html:t,classList:"--shipping-info",afterShow:this.afterShowModal})}},this.init=()=>{const{getCouriersFunction:t,productParamsFunction:e,afterShowModal:i,onlyHtml:n}=this.params;this.getCouriersFunction=t||!1,this.productParamsFunction=e||!1,this.afterShowModal=i||!1,this.onlyHtml=n||!1,this.create()},document.getElementById("check-free-delivery").addEventListener("click",openFreeShippingModal),document.getElementById("check-gifts").addEventListener("click",(function(){const t=document.createElement("div");t.classList.add("modal-gift__wrapper"),t.innerHTML='<p class="modal-gift__title">Rób zakupy i zyskuj!</p>\n  <p>\n    GRATIS do zamówień zależy od wartości koszyka według następujących progów:\n  </p>\n  <div class="modal-gift__values">\n    <p>od 50 zł do 99 zł</p>\n    <p>od 100 zł do 199 zł</p>\n    <p>od 200 zł do 249 zł</p>\n    <p>od 250 zł do 399 zł</p>\n    <p>od 400 zł</p>\n  </div>\n  <p>Aktualną listę gratisów znajdziesz w koszyku.</p>\n  <p class="modal-gift__more">\n    Chcesz wiedzieć, jak działa program? Sprawdź\n    <a href="https://sklepdlaogrodu.pl/pl/cms/odbierz-swoj-prezent-47.html"\n      >tutaj</a\n    >!\n  </p>',Modal({element:t})}))},document.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelector("#projector_form");if(!t)return;const e=document.querySelectorAll('label[for^="multipackRadioItem"]'),i=document.querySelector("#projector_price_value span");if(!e||!i)return;const n=t.dataset.product_id,o=localStorage.getItem("iai_basket"),s=JSON.parse(o),r=s?.basket?.products?.find((t=>t.id===String(n)))??0;const a=function(){if(r){return r.count}return 0}();if(r){l=a+1,e&&e.forEach((t=>{const e=t.querySelector(".projector_multipack__price").textContent,n=t.querySelector(".projector_multipack__from").textContent;Number(l)===Number(n)&&(i.textContent=e),1===Number(l)&&(i.textContent=originalPrice)}))}var l;i&&e.forEach((t=>{t.addEventListener("click",(()=>{const e=t.querySelector(".projector_multipack__price");if(!e)return;const n=e.value||e.textContent.trim();i.textContent=n}))}))})),app_shop.run((function(){$(".configurator:not(.--skeleton)").insertBefore($(".configurator.--skeleton")),$(".configurator.--skeleton").remove(),app_shop.fn.configurator=new Configurator,app_shop.fn.configurator.init();const t=projectorEndStartCallback;projectorEndStartCallback=function(){t(),app_shop.fn.configurator.setPrice(!0)},projectorInitObject={endStartFunction:projectorEndStartCallback},projectorObj.projectorInit(projectorInitObject)}),"all",".configurator",!0),app_shop.run((function(){document.querySelectorAll("#opinions_section .opinions_list .opinions_element").length,document.querySelector("#opinions_section .average_opinions_box .comments .note span")&&document.querySelector("#opinions_section .average_opinions_box .comments .note span").innerHTML,document.querySelector("#opinions_section .average_opinions_score")&&document.querySelector("#opinions_section .average_opinions_score").innerHTML;app_shop.fn.projectorTabs=new ProjectorTabs({mobileTabs:[{selector:"#product_questions_list",name:"Pytania klientów"},{selector:"#opinions_section",name:projectorTabsTxt.opinions}],fixedSelector:"html.--fixed-header header"})}),"all",".projector_tabs"),app_shop.run((function(){app_shop.fn.projectorTabs.init(),$(window).off("scroll.fixedProjector"),$(".projector_tabs").removeAttr("style"),setTimeout((function(){if(app_shop.vars.view>4){let t,e;$(window).on("scroll.fixedProjector",(function(){void 0!==t&&void 0!==e||(t=$("html.--fixed-header header").length?$("html.--fixed-header header").outerHeight():0,e=$(".projector_tabs__tabs").outerHeight());const i=$(".projector_tabs__tabs").offset().top,n=$(".projector_tabs__tabs.--fixed")?$(".projector_tabs").offset().top+t:$(".projector_tabs").offset().top,o=$(window).scrollTop();o>=i-t&&i-n+t+e>0?($(".projector_tabs__tabs").addClass("--fixed").css("top",t),$(".projector_tabs__tabs").addClass("--fixed"),$(".projector_tabs").css("margin-top",e),$(".projector_tabs__tab:first-child").addClass("--active")):($(".projector_tabs__tabs").removeClass("--fixed").removeAttr("style"),$(".projector_tabs").removeAttr("style"),$(".projector_tabs__tab").removeClass("--active")),$(".projector_tabs__tab").each((function(){const i=$($(this).data("target")).offset().top;o>=i-t-e-55&&($(".projector_tabs__tab").removeClass("--active"),$(this).addClass("--active"))}))}))}else $(window).off("scroll.fixedProjector"),$(".projector_tabs__tabs").removeClass("--fixed"),$(".projector_tabs").removeAttr("style"),$(".projector_tabs__tab").removeClass("--active")}),200)}),[1,2,3,4],".projector_tabs");const projectorTabsTxt={traits:"Główne parametry",dictionary:"Szczegółowe dane",warranty:"Gwarancja",description:"Opis",video:"Video",enclosures:"Do pobrania",opinions:"Opinie naszych klientów",blog:"Z naszego bloga",questions:"Najczęściej zadawane pytania",zone1:"",zone2:"",zone3:"",custom1:"",custom2:"",custom3:"",custom4:""};document.addEventListener("DOMContentLoaded",(()=>{!function(){const t=document.querySelector(".product-card__section-title_arrow-up"),e=document.getElementById("projector_longdescription"),i=document.querySelector(".longdescription--shadow"),n=document.querySelector(".longdescription--button");t&&e&&i&&n&&t.addEventListener("click",(function(){e.classList.contains("open")?(i.classList.add("hidden"),n.classList.add("hidden"),e.style.maxHeight="",e.classList.remove("open"),t.classList.remove("product-card__section-title_arrow-up"),t.classList.add("product-card__section-title_arrow-down")):(i.classList.remove("hidden"),n.classList.remove("hidden"),e.style.maxHeight=e.scrollHeight+"px",e.classList.add("open"),t.classList.remove("product-card__section-title_arrow-down"),t.classList.add("product-card__section-title_arrow-up"))}))}(),function(){const t=document.querySelector(".longdescription--shadow"),e=document.querySelector(".longdescription--button");t&&e&&e.addEventListener("click",(function(){t.classList.toggle("expanded"),t.classList.contains("expanded")?(t.style.maxHeight="10000px",e.innerHTML='\n          Pokaż mniej\n          <div class="longdescription--button__img longdescription--button__img--rotate">\n            <img width="9px" src="/gfx/custom/arrow-show-more.svg" alt="arrow-show-more">\n          </div>'):(t.style.maxHeight="",e.innerHTML='\n          Pokaż więcej\n          <div class="longdescription--button__img">\n            <img width="9px" src="/gfx/custom/arrow-show-more.svg" alt="arrow-show-more">\n          </div>')}))}(),function(){const t=document.getElementById("projector_longdescription"),e=document.querySelector(".longdescription--shadow"),i=document.querySelector(".longdescription--button");if(t){t.offsetHeight<350&&(e&&e.classList.add("expanded"),i&&(i.style.display="none"))}}()})),app_shop.run((function(){document.querySelector(".traits__all").addEventListener("click",(function(t){return t.preventDefault(),document.querySelector(".traits").classList.add("--show"),app_shop?.vars?.bLazy?.revalidate(),!1}))}),"all",".traits__all",!0),app_shop.run((function(){document.querySelectorAll(".dictionary__more").forEach((t=>{t.addEventListener("click",(function(t){return t.preventDefault(),this.parentNode.parentNode.classList.toggle("--active"),!1}))}))}),"all",".dictionary__more",!0),document.addEventListener("DOMContentLoaded",(()=>{!function(){const t=document.querySelector(".product-card__dictionary-title_arrow-down"),e=document.getElementById("projector_dictionary"),i=document.querySelector(".product-card__dictionary-title");t&&e&&i.addEventListener("click",(function(){if(e.classList.contains("open"))e.style.maxHeight="",e.classList.remove("open"),t.classList.remove("product-card__section-title_arrow-up"),t.classList.add("product-card__section-title_arrow-down");else{const i=e.scrollHeight+185+"px";e.style.maxHeight=i,e.classList.add("open"),t.classList.remove("product-card__section-title_arrow-down"),t.classList.add("product-card__section-title_arrow-up")}}))}()})),document.addEventListener("DOMContentLoaded",(function(){const t=document.querySelectorAll(".dictionary__group");Array.from(document.querySelectorAll(".dictionary__param")).filter((t=>
32"none"!==getComputedStyle(t).display)).forEach(((t,e)=>{t.style.background=e%2==0?"#F1F1F1":"white"})),t.forEach((function(t){if(0===t.children.length){const t=document.querySelector(".product-card__dictionary-title");t&&(t.style.display="none")}}))})),document.addEventListener("DOMContentLoaded",(function(){const t=document.getElementById("projector_dictionary"),e=document.querySelector("#projector_dictionary .dictionary__group"),i=document.querySelector("a[href='#product-dictionary']");if(e&&0===e.children.length&&(t.style.borderBottom="none",i)){const t=i.closest("li");t&&(t.style.display="none")}})),app_shop.run((()=>{document.getElementById("product_questions_list").addEventListener("click",(t=>{const{target:e}=t;if(e.closest(".questions__question")){t.preventDefault();const i=e.closest(".questions__item"),n=e.closest(".questions__question");if(i){const t=i.classList.toggle("--active");n.setAttribute("aria-label",t?"Ukryj odpowiedź":"Pokaż odpowiedź")}}else e.closest(".questions__button")&&(t.preventDefault(),Modal({element:document.querySelector(".askforproduct"),classList:"--askforproduct"}))}))}),"all","#product_questions_list",!0),app_shop.run((()=>{app_shop.fn.questionsFormValidation=new FormValidation({form:document.querySelector(".askforproduct__form")}),app_shop.fn.questionsFormValidation.init()}),"all",".askforproduct__form",!0),app_shop.run((function(){$(".opinions__more_txt").on("click",(function(t){return t.preventDefault(),$('#opinions_section .opinions_list [data-hide="true"]').attr("data-hide",!1),app_shop?.vars?.bLazy?.revalidate(),$(".opinions__more").hide(),$(".opinions_list").addClass("show"),!1}))}),"all",".opinions__more",!0),app_shop.run((function(){$("#opinions_section .opinions_element_photo a").on("click",(function(t){t.preventDefault(),t.stopPropagation();const e=$(this),i=e.attr("href"),n=e.find("img").attr("title"),o=new Image;return o.src=i,o.onload=function(){Modal({html:`<div id="ui-dialogimg"><img alt="${n}" src="${i}" /></div>`})},!1}))}),"all","#opinions_section .opinions_element_photo",!0),app_shop.run((function(){document.getElementById("opinions_filter_confirmed").addEventListener("change",(function(){const t=document.querySelector(".opinions__more");t&&(t.style.display="none");const e=document.querySelector(".opinion_rate.--active");(e?document.querySelectorAll(`.opinions_list__item[data-opinion_rate="${e.id}"]`):document.querySelectorAll(".opinions_list__item")).forEach((t=>{this.checked&&"false"===t.getAttribute("data-confirmed")?(t.setAttribute("data-hide",!0),app_shop.vars.view>2&&document.getElementById("opinions_section").scrollIntoView({behavior:"smooth"})):(t.setAttribute("data-hide",!1),app_shop?.vars?.bLazy?.revalidate())})),document.querySelector('.opinions_list__item[data-hide="false"]')?document.getElementById("no_opinions_of_type").classList.add("d-none"):document.getElementById("no_opinions_of_type").classList.remove("d-none")}))}),"all","#opinions_filter_confirmed",!0),app_shop.vars.opinions_empty_input="Proszę wypełnić to pole.",app_shop.vars.opinions_not_email="Podano niepoprawny adres email.",app_shop.fn.validateEmail=function(t){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())},app_shop.fn.opinionsValidate=function(t){var e=t.find("input[required]");return $.each(e,(function(t,e){$(e).parent().removeClass("has-error").find(".validate_message").remove(),$(e).val()?"email"!==$(e).prop("type")||app_shop.fn.validateEmail($(e).val())||$(e).parent().addClass("has-error").append('<span class="help-block validate_message text-danger">'+app_shop.vars.opinions_not_email+"</span>"):$(e).parent().addClass("has-error").append('<span class="help-block validate_message text-danger">'+app_shop.vars.opinions_empty_input+"</span>")})),!t.find(".has-error").length},document.addEventListener("DOMContentLoaded",(function(){const t=()=>(container=document.querySelector(".hotspot1__products"),leftArrow=document.querySelector(".hotspot1__headline__button--left"),rightArrow=document.querySelector(".hotspot1__headline__button--right"),!!(container&&leftArrow&&rightArrow)&&((()=>{const t=document.querySelector(".hotspot1__products").querySelectorAll(".hotspot1__product__icon"),e=localStorage.getItem("allShoppingListProducts");if(!e)return;const i=JSON.parse(e);t.forEach((t=>{const e=t.dataset.productId,n=t.dataset.productSize;if(i.some((t=>t.product_id===e&&t.product_size===n))){t.closest(".hotspot1__product").querySelector(".hotspot1__favorite");const e=t.closest(".hotspot1__product").querySelector(".hotspot1__favorite img");e&&e.setAttribute("src","/data/include/cms//wishlist-heart-fill.svg?v=1776721280688")}}))})(),!0)),e=new MutationObserver((i=>{for(let n of i)if(("childList"===n.type||"subtree"===n.type)&&t()){e.disconnect();break}}
32));t()||e.observe(document.body,{childList:!0,subtree:!0})})),document.addEventListener("DOMContentLoaded",(function(){const t=()=>(container=document.querySelector(".hotspot3__products"),leftArrow=document.querySelector(".hotspot3__headline__button--left"),rightArrow=document.querySelector(".hotspot3__headline__button--right"),!!(container&&leftArrow&&rightArrow)&&((()=>{const t=document.querySelector(".hotspot3__products").querySelectorAll(".hotspot3__product__icon"),e=localStorage.getItem("allShoppingListProducts");if(!e)return;const i=JSON.parse(e);t.forEach((t=>{const e=t.dataset.productId,n=t.dataset.productSize;if(i.some((t=>t.product_id===e&&t.product_size===n))){t.closest(".hotspot3__product").querySelector(".hotspot3__favorite");const e=t.closest(".hotspot3__product").querySelector(".hotspot3__favorite img");e&&e.setAttribute("src","/data/include/cms//wishlist-heart-fill.svg?v=1776721280688")}}))})(),!0)),e=new MutationObserver((i=>{for(let n of i)if(("childList"===n.type||"subtree"===n.type)&&t()){e.disconnect();break}}));t()||e.observe(document.body,{childList:!0,subtree:!0})})),document.addEventListener("DOMContentLoaded",(function(){const t=()=>(container=document.querySelector(".hotspot2__products"),leftArrow=document.querySelector(".hotspot2__headline__button--left"),rightArrow=document.querySelector(".hotspot2__headline__button--right"),!!(container&&leftArrow&&rightArrow)&&((()=>{const t=document.querySelector(".hotspot2__products").querySelectorAll(".hotspot2__product__icon"),e=localStorage.getItem("allShoppingListProducts");if(!e)return;const i=JSON.parse(e);t.forEach((t=>{const e=t.dataset.productId,n=t.dataset.productSize;if(i.some((t=>t.product_id===e&&t.product_size===n))){t.closest(".hotspot2__product").querySelector(".hotspot2__favorite");const e=t.closest(".hotspot2__product").querySelector(".hotspot2__favorite img");e&&e.setAttribute("src","/data/include/cms//wishlist-heart-fill.svg?v=1776721280688")}}))})(),!0)),e=new MutationObserver((i=>{for(let n of i)if(("childList"===n.type||"subtree"===n.type)&&t()){e.disconnect();break}}));t()||e.observe(document.body,{childList:!0,subtree:!0})}));var txt_1_69363="Wybierz najwygodniejszy dla ciebie sposób wysyłki zwrotu";$(document).on("click",".step3d #return_go_next",(function(){if($(".step3d .order1_delitem_radio input").size()&&!$(".step3d .order1_delitem_radio input:checked").size())return Alertek.show_alert(txt_1_69363),!1})),$(document).on("click",".step3d div.return_delitem",(function(){$(".step3d div.return_delitem.active").removeClass("active"),$(this).addClass("active").find("input.order1_delitem_radio").prop("checked",!0)}));var txt_1_69372="Wybierz sposób zwrotu produktów",txt_1_69372_param="Wybierz parametr sposobu zwrotu produktów",txt_1_69372_tak="Potwierdzam",txt_1_69372_confirm_header="Czy potwierdzasz ...?",txt_1_fill_phone="Aby wybrać tę metodę zwrotu musisz uzupełnić numer telefonu w ustawieniach swojego konta";$(document).on("click","div.return_type.disabled_inpost",(function(){Alertek.show_alert(txt_1_fill_phone)})),$(document).on("click","div.return_type.choose_return_type:not(.disabled_inpost)",(function(){var t=$(this).find("input.return_type").val();$(this).addClass("current_method"),$(".return_type.choose_return_type.active").removeClass("active"),$(this).addClass("active").find("input.return_type").prop("checked",!0),$(".return_type.choose_return_type:not(.current_method) .return_methods_param > input, div.return_delitem_items:not(#delitem_item"+t+") .return_methods_param > input").prop("checked",!1),$("div.return_delivery_form, div.return_delitem_items").hide(),$("#delitem_item"+t).size()&&($("div.return_delivery_form, #delitem_item"+t).show(),$("#delitem_item"+t).find("div.return_delitem:first").click()),$(this).removeClass("current_method")})),$(document).on("click",".step3 #return_go_next",(function(t){if($(".step3 div.return_type input").size()){if(!$(".step3 div.return_type input:checked").size())return t.preventDefault(),Alertek.show_alert(txt_1_69372),!1;if($(".active .return_methods_param > input").length&&!$(".active .return_methods_param > input:checked").length)return t.preventDefault(),Alertek.show_alert(txt_1_69372_param),!1;$("div.progress_bar_wrapper").removeClass("pb_step3").addClass("pb_step4")}})),$(document).on("change",".return_methods_param > input",(function(){if($(this).parents().hasClass("disabled_inpost"))return $(this).prop("checked",!1),!1;$(this).prop("checked")&&$(this).parent().find(".return_confirmation_message").length&&confirmReturnParam($(this).parent())}
32)),$(document).on("click",".step3 div.return_delitem",(function(){$(".step3 div.return_delitem.active").removeClass("active"),$(this).addClass("active").find("input.order1_delitem_radio").prop("checked",!0),$(".step3 div.return_delitem:not(.active) .return_methods_param > input").prop("checked",!1)}));var remove_param=!0;function confirmReturnParam(t){Modal({html:`<div id="menu_notice" class="menu_notice --rma"><h2>${txt_1_69372_confirm_header}</h2><p>${t.find(".return_confirmation_message").html()}</p><div class="menu_notice__buttons"><button class="menu_notice__button btn --solid" onclick="remove_param = false;document.querySelector('.modal__close').click(); return false;">${txt_1_69372_tak}</button></div></div>`,afterClose:(t,e)=>{remove_param&&unsetMethodParam(),remove_param=!0}})}function unsetMethodParam(){$(".active .return_methods_param > input").prop("checked",!1)}app_shop.run((function(){$(".return_type.active").click()}),"all",".return_type"),app_shop.run((function(){$("#returns_open__number_input, #returns_open__email_input").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle);const t=$(this);app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(t)}),500)})),$(".returns_open__button").on("click",(function(){return app_shop.formControl.checkForm($(this).parents(".returns_open__form"))}))}),"all",".returns_open");var txt_1_69260_1="Wybierz produkty do zwrotu",txt_1_odznacz_w_p="Odznacz wszystkie produkty ",txt_1_zaznacz_w_p="Zaznacz wszystkie produkty",txt_1_max_ret_amount="Maksymalnie możesz zwrócić ",txt_1_new_button="true";app_shop.run((function(){goNext=function(){var t=!1;return $(".productslist_item").each((function(){$(this).find(".productslist_product_action input:checked").size()&&0!=$(this).find('.productslist_product_quantity input[type="text"]').val()&&(t=!0)})),t},Basketedit.getValues=function(t){var e=t.parent(),i=e.find("input[name=data_amount]").val(),n=e.find("input[name=data_unit_sellby]").val(),o=e.find("input[name=data_unit]").val();return{precision:e.find("input[name=data_unit_precision]").val(),unit_sellby:n,unit:o,amount:i}},Basketedit.number_check=function(t,e){var i=t,n=Basketedit.getValues(t);e=e||!0;if(""==n.unit_sellby)var o=1;else o=n.unit_sellby;var s=n.unit,r=n.precision,a=n.amount,l=i.val();l=(l=parseFloat(l)).toFixed(6),l=parseFloat(l);var c=i.parents(".productslist_item").find(".productslist_product_action input");if(e&&(l>0?c.prop("checked",!0):c.prop("checked",!1)),l<=0)return i.val(0),!0;if(i.val(d),"1"==o)Math.round(l)>parseInt(a)&&isFinite(a)&&"-1"!=a?(Alertek.show_alert(txt_1_max_ret_amount+" "+a+" "+s),i.val(a)):i.val(Basketedit.roundNumber(Basketedit.if_isanumber(l,o),r));else if(r=parseInt(r),l>=parseInt(a)&&isFinite(a)&&"-1"!=a)Alertek.show_alert(txt_1_max_ret_amount+Basketedit.roundNumber(Math.floor(a/o)*o,r)+" "+s),i.val(Basketedit.roundNumber(Math.floor(a/o)*o,r));else{var d,u=Math.abs(Math.floor((l/o).toFixed(6)));d=u?parseFloat((u*o).toFixed(6))==l?(u*o).toFixed(r):u*o<l?((u+1)*o).toFixed(r):Math.abs((Math.ceil(l)*o).toFixed(r)):o,i.val(d)}},$(document).on("click",".productslist_product_action input",(function(){var t=$(this).parents(".productslist_item").find('.productslist_product_quantity input[type="text"]');if($(this).is(":checked")){var e=t.nextAll('input[name="data_unit_sellby"]').val();t.val(e),Basketedit.number_check(t,!1)}else t.val(0)})),$(".productslist_product_action input").not(":checked").size()?($(".step2 .select_all").html(txt_1_zaznacz_w_p),""!==txt_1_new_button&&$(".step2 .select_all").removeClass("icon-minus").addClass("icon-plus")):($(".step2 .select_all").html(txt_1_odznacz_w_p),""!==txt_1_new_button&&$(".step2 .select_all").removeClass("icon-plus").addClass("icon-minus")),$(document).on("click",".step2 .select_all",(function(){return $(".productslist_product_action input").not(":checked").size()?($(".productslist_product_action input").prop("checked",!0),$(".step2 .select_all").html(txt_1_odznacz_w_p),""!==txt_1_new_button&&$(".step2 .select_all").removeClass("icon-plus").addClass("icon-minus")):($(".productslist_product_action input").prop("checked",!1),$(".step2 .select_all").html(txt_1_zaznacz_w_p),""!==txt_1_new_button&&$(".step2 .select_all").removeClass("icon-minus").addClass("icon-plus")),$(".productslist_product_action input").each((function(){var t=$(this).parents(".productslist_item").find('.productslist_product_quantity input[type="text"]');if($(this).is(":checked")){var e=t.nextAll('input[name="data_unit_sellby"]').val();t.val(e),Basketedit.number_check(t,!1)}else t.val(0)})),!1})),$(document).on("click",".step2 #return_go_next",(function(){if(!goNext())return $(".rma_products_page").length?Alertek.show_alert(txt_1_69260):Alertek.show_alert(txt_1_69260_1),!1;$("div.progress_bar_wrapper").removeClass("pb_step2").addClass("pb_step3")})),$(".productslist_comment a.addMoreFiles").unbind().on("click",(function(){var t=$(this).parents(".prodl_comment_right").find("div.prodl_comment_foto").last();return t.after(t.clone()),t.next().find("input").val(""),!1}))}),"all",".returns_productslist");var txt_1_69378="Wybierz formę zwrotu należności",validationTextErrors=[];validationTextErrors.invalid_bank_acccount="Wprowadzony numer konta bankowego jest nieprawidłowy.",app_shop.run((function(){$('.
32step5 [data-validation="bank_account"]').keyup()}),"all",'.step5 [data-validation="bank_account"]');var txt_1_69376="Wybierz adres punktu zwrotu";function init_rma_calendar(){$("#rma_add_form_begin_ymd").datepicker({dateFormat:iaical_dateFormat,dayNamesMin:iaical_daysShort,monthNames:iaical_monthNames,onSelect:rma_add.setTime,firstDay:iaical_firstDay})}$(document).on("click",".step4a div.pickupl_return",(function(){$(".step4a div.pickupl_return").removeClass("active"),$(this).addClass("active").find("input").prop("checked",!0)})),app_shop.run((function(){$(document).on("click",".step4a #return_go_next",(function(){if(!$(".step4a div.pickupl_return input:checked").size())return Alertek.show_alert(txt_1_69376),!1;$("div.progress_bar_wrapper").removeClass("pb_step4").addClass("pb_step5")}))}),"all",".pickup_return_list_form .pickupl_return");var rma_add_alert="Wypełnij wszystkie pola formularza.",rma_add_msg1="Podaj nazwę produktu",rma_add_msg2="Podaj numer seryjny produktu",rma_add_msg3="Podaj datę zakupu produktu",rma_add_msg4="Opisz usterkę",rma_add_msg5="Opisz miejsce zakupu produktu",rma_add_msg6="Podaj adres, na który chcesz otrzymać zwrot pieniędzy",rma_add_msg7="Podaj numer konta bankowego",rma_add_msg8="Podaj dane do czeku";if(void 0===typeof rma_add_paymentTrigger)var rma_add_paymentTrigger=1;app_shop.run((function(){$("#rma_add_form").find("input, textarea").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle),obj=$(this),app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(obj)}),500)})),$("a#rma_add_form_submit").on("click",(function(){return 1==app_shop.formControl.checkForm($(this).parents("form"))&&$("form#rma_add_form").submit(),!1}))}),"all","#rma_add_form"),app_shop.run((function(){app_shop.vars.rma_action&&init_rma_calendar()}),"all",".rma_add_form_outline");var rma_add={placeTrigger:0,setPlace:function(t){$(".rma_add_form_boxsub_hidden").css("display","none"),$("#"+t).css("display","block"),rma_add.placeTrigger="rma_add_form_buyplace_other"==t?1:0},setPayment:function(t){switch($(".rma_add_form_boxsub2_hidden").css("display","none"),$("#"+t).css("display","block"),t){case"rma_add_form_payp":rma_add_paymentTrigger=1;break;case"rma_add_form_payb":rma_add_paymentTrigger=2;break;case"rma_add_form_payc":rma_add_paymentTrigger=3;break;case"rma_add_form_payt":rma_add_paymentTrigger=4}rma_add.checkInps()},hideInfoText:function(t,e){},showInfo:function(t,e,i){e?(document.getElementById(t+"_off").style.display="",document.getElementById(t+"_on").style.display="none",i?(document.getElementById(t+"_help").style.display="block",document.getElementById(t+"_help").firstChild.innerHTML=i,rma_add.hideInfoText(t,5)):document.getElementById(t+"_help").style.display="none"):(document.getElementById(t+"_off").style.display="none",document.getElementById(t+"_on").style.display="",document.getElementById(t+"_help").style.display="none")},checkInps:function(t){},setTime:function(t,e){var i=$("#rma_add_form_begin_ymd").datepicker("getDate");$("#rma_add_form_beginy").val(i.getFullYear()),$("#rma_add_form_beginm").val(i.getMonth()+1),$("#rma_add_form_begind").val(i.getDate()),app_shop.formControl.validate($("#rma_add_form_begin_ymd"))},chooseSite:function(t){var e=t.slice(5);$(".rma_add_form_stock").removeClass("rmaf_selected"),$("#"+t).addClass("rmaf_selected"),$("#rma_stock").val(e)}},form_validation_error="",prefered_form_complain="Preferowana forma reklamacji";const fetchRMAMessages=async()=>{document.querySelector(".rma_questions").classList.add("load-content");try{await fetch(window.location.href).then((t=>t.text())).then((t=>{var e=(new DOMParser).parseFromString(t,"text/html");document.querySelector(".rma_questions").innerHTML=e.querySelector(".rma_questions").innerHTML,document.querySelector(".rma_questions").classList.remove("load-content"),$("a.rma_attach_file").on("click",(function(){$(this).closest("form").find("div.rma_af_files").show(),$(this).hide()})),document.querySelector(".rma_af_addMoreAttachments").addEventListener("click",(t=>{const e=document.querySelector(".rma_af_foto input").cloneNode(!0);console.log(e),e.value="",document.querySelector(".rma_af_foto").insertAdjacentElement("beforeend",e)}))}
32))}catch(t){throw new Error(t)}},sendComplaintMethod=async()=>{if(null!==localStorage.getItem("complaint_method")){const t=new FormData;t.append("comment",`${prefered_form_complain}: ${localStorage.getItem("complaint_method")}`);try{await fetch(`${window.location.href}&message=rma`,{method:"POST",body:t}),fetchRMAMessages(),localStorage.removeItem("complaint_method")}catch(t){throw new Error(t)}}};app_shop.run((function(){$(".rma_af_input").find("input, textarea").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle),obj=$(this),app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(obj)}),500)})),$(".rma_af_buttons > button").on("click",(function(){return app_shop.formControl.checkForm($(this).parents("form"))}))}),"all",".rma_added_files"),app_shop.run((function(){sendComplaintMethod(),document.querySelector(".rma_af_addMoreAttachments").addEventListener("click",(t=>{const e=document.querySelector(".rma_af_foto input").cloneNode(!0);console.log(e),e.value="",document.querySelector(".rma_af_foto").insertAdjacentElement("beforeend",e)}))}),"all",".rma_orderdetails_info"),$(document).on("click",".step2 .saveQuantity",(function(){return $(".productslist_product_action input").prop("checked",!0),!1})),$(document).on("click",".step1 a.orders_more",(function(){return $(".step1").hide(),$(".step2").show(),!1})),$(document).on("click",".step2 input.return_product",(function(){$(".step2 textarea.return_comment").toggle()})),$(document).on("click",".step5a div.return_form",(function(){$(".step5a div.return_form").removeClass("active"),$(this).addClass("active").find("input").prop("checked",!0),$(this).is("#disable_button")&&$("#disable_button input.return_form").val().length<3&&$("#return_go_next").prop("disabled","disabled").css("opacity","0.6")})),$(document).on("click","label.return_type",(function(){$("label.return_type.active").removeClass("active"),$(this).addClass("active")})),$((function(){$("td.rma-remarks").each((function(){$(this).attr("colspan",$(".orders.table-stroke thead th").size()-1)})),$("a.rma_attach_file").on("click",(function(){$(this).closest("form").find("div.rma_af_files").show(),$(this).hide()})),$("#disable_button input.return_form").keyup((function(){$("#disable_button input.return_form").val().length<3?$("#return_go_next").prop("disabled","disabled").css("opacity","0.6"):$("#return_go_next").prop("disabled",!1).css("opacity","1")}))}));var rmaHideSpeed=200,rmaLessInfo="",rma_cancel_alert="",rma_list={rmaMoreInfo:$("rma_list_item1").eq(0).children(".rma_list_item_operation").html(),choosePanel:function(t,e){$("#"+t)&&($("#"+t).siblings().removeClass("rma_on"),$("#"+t).addClass("rma_on")),$("#"+e)&&($("#"+e).siblings().hide(),$("#"+e).show())},chooseRma:function(t){$("#rmal_"+t)&&($("#rmal_"+t).toggleClass("rma_itema"),$("#rmal_"+t).children(".rma_list_item_operation").toggleClass("ophidden"),"none"==$("#rmal_"+t).next().css("display")?$("#rmal_"+t).next().slideDown(rmaHideSpeed):$("#rmal_"+t).next().slideUp(rmaHideSpeed))},cancelRma:function(t){if(1!=confirm(rma_cancel_alert))return!1;window.location=t}};app_shop.run((function(){rma_list.chooseRma(app_shop.vars.chooseRma)}),"all",".rma_list_data_outline"),app_shop.run((function(){$("#rma_open__number_input, #rma_open__email_input").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle);const t=$(this);app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(t)}),500)})),$(".rma_open__button").on("click",(function(){return app_shop.formControl.checkForm($(this).parents(".rma_open__form"))}))}),"all",".rma_open");const rmaTxt={chooseProducts:"Wybierz towary",complain:"Reklamuj",product:" towar",products:" towary",noDetailsOnComplain:"Proszę o podanie opisu usterki i powodu reklamacji",noFileSelected:"Nie wybrano pliku",mobile_complain:"Reklamuj towar",cancel_complain:"Zrezygnuj z reklamacji"},RmaProductList=function(t){this.params=t,this.vars={productsToComplain:0,dropdowns:null};const e=this;return this.generateDropdowns=()=>{this.vars.dropdowns=new SelectToDropdown({selector:".productslist_quantity .f-select",generateDropdownCallback:t=>{t.nextSibling.classList.remove("d-none")},afterClickDropdownCallback:t=>{"more"!=t.querySelector(".--selected").dataset.value?(t.closest(".productslist_item").querySelector(".productslist_product_action input").checked=!0,t.closest(".productslist_quantity").querySelector(".productslist_quantity__more_input").value=parseFloat(t.closest(".productslist_quantity").querySelector("select").value),this.countProductsToComplain()):(t.closest(".productslist_quantity").querySelector(".productslist_quantity__more_input").value="",t.closest(".productslist_quantity").querySelector(".productslist_quantity__more_input").focus())},disableMobileView:!0})},this.validateNumber=t=>{const e=parseFloat(t.dataset.max),i=parseFloat(t.attributes.step.value);return output=t.value%i!==0?t.value-t.value%i+i:t.value,output=output>e||output<0?output<0?t.dataset.prev:e:output,t.dataset.prev=output,t.value=output,output},this.inputHandler=()=>{document.querySelectorAll(".productslist_quantity__more_input").forEach((t=>{let i=null;t.addEventListener("keyup",(()=>{clearTimeout(i),i=setTimeout((function(){e.validateNumber(t),t.closest(".productslist_item").querySelector(".productslist_product_action input").checked=t.value>0,e.countProductsToComplain()}),750)})),t.addEventListener("blur",(()=>{t.value=t.dataset.prev}))}))},this.countProductsToComplain=()=>{this.vars.productsToComplain=0,document.querySelectorAll("input.productslist_quantity__more_input").forEach((t=>{this.vars.productsToComplain=parseFloat(this.vars.productsToComplain)+parseFloat(t.value)})),this.changeNextButton(this.vars.productsToComplain)},this.changeNextButton=t=>{t>0?(document.querySelector("#return_go_next").innerHTML=`${rmaTxt.complain} (${t}) ${1==t?rmaTxt.product:rmaTxt.products}`,document.querySelector("#return_go_next").classList.remove("disabled")):(document.querySelector("#return_go_next").innerHTML=rmaTxt.chooseProducts,document.querySelector("#return_go_next").classList.add("disabled"))},this.validateForm=()=>{let t=!0;return null==document.querySelector(".productslist_product_action input:checked")?(Alertek.show_alert(txt_1_69260),t=!0,!1):(t=!1,document.querySelectorAll(".productslist_item").forEach((e=>{null!==e.querySelector(".productslist_product_action input:checked")&&0==e.querySelector(".productslist_product_comment textarea").textLength&&(null==e.querySelector(".productslist_product_comment .help-block")&&e.querySelector(".productslist_product_comment").insertAdjacentHTML("beforeend",`<span class="help-block validate_message text-danger">${rmaTxt.noDetailsOnComplain}</span>`),e.querySelector(".productslist_product_comment").classList.add("has-error"),t=!0)})),!t)},this.submitFormHandler=()=>{document.querySelector("#return_go_next").addEventListener("click",(t=>{t.preventDefault(),e.validateForm()&&document.querySelector(".returns_productslist").submit()}))},this.attachmentsShowHandler=()=>{document.querySelectorAll('.productslist_product_attachments a[href="#addComment"]').forEach((t=>{t.addEventListener("click",(()=>{t.classList.add("d-none"),t.closest(".productslist_product_attachments").querySelector(".rma__attachment").classList.remove("d-none")}))}))},this.addMoreFilesEvent=()=>{document.querySelectorAll(".addMoreFiles").forEach((function(t){t.addEventListener("click",(t=>{const i=t.target.closest(".rma__attachment"),n=i.querySelector(".prodl_comment_foto").lastElementChild.attributes.for.value+"_clone";let o=i.querySelector(".prodl_comment_foto").lastElementChild.cloneNode(!0);o.attributes.for.value=n,o.querySelector("input").id=n,o.querySelector("input").dataset.events=!1,o.querySelector("input").value="",o.querySelector(".prodl_comment_foto__imageName").innerHTML=rmaTxt.noFileSelected,i.querySelector(".prodl_comment_foto").lastElementChild.after(o),e.fakeFileInput()}))}))},this.fakeFileInput=()=>{document.querySelectorAll('input[data-events="false"]').forEach((t=>{t.addEventListener("change",(e=>{let i=e.target.files[0].name;t.closest("label").querySelector(".prodl_comment_foto__imageName").innerHTML=i})),t.dataset.events=!0}))},this.mobileToggleComplainHandler=()=>{document.querySelectorAll(".rma__toggleComplain").forEach((t=>{const e=t.closest(".productslist_item");t.addEventListener("click",(()=>{e.classList.toggle("--opened"),e.classList.contains("--opened")?(t.querySelector("span").innerHTML=rmaTxt.cancel_complain,e.querySelector('.f-dropdown-item[data-index="1"]').click()):(t.querySelector("span").innerHTML=`<i class="icon-plus"></i> ${rmaTxt.mobile_complain}`,e.querySelector('.f-dropdown-item[data-index="0"]').click())}))}))},this.showWarrantyInfo=()=>{app_shop.vars.view>2&&document.querySelectorAll(".productslist_warranty_info__show").forEach((t=>{t.addEventListener("click",(()=>{Modal({html:t.nextSibling.innerHTML,classList:"productslist_warranty_info__modal"})}))}))},this.init=()=>{this.generateDropdowns(),this.countProductsToComplain(),this.submitFormHandler(),this.attachmentsShowHandler(),this.fakeFileInput(),this.addMoreFilesEvent(),this.mobileToggleComplainHandler(),this.showWarrantyInfo(),this.inputHandler()},this.init()};app_shop.run((function(){app_shop.fn.rma_products_list=new RmaProductList}),"all",".return_productslist.rma"),$((function(){$("div.prodl_comment_right ol a.previewFile").each((function(){var t=$(this).text();t.length>=26&&(t.indexOf(".")>0?$(this).text(t.substring(0,26<t.lastIndexOf(".")?20:t.indexOf(".")-6)+"[...]."+t.split(".").pop()):$(this).text(t.substring(0,26)))})),$(document).on("click",'a.previewFile[href="#previewFile"]',(function(t){t.preventDefault(),t.stopPropagation();const e=$(this),i=e.attr("rel"),n=e.parent().find("span").text();let o=new Image;return o.src=i,o.onload=function(){Modal({html:`<div id="ui-dialogimg"><img alt="${n}" src="${i}" /></div>`,classList:"--medium"})},!1})),$(".rma_products_page a.choose_prod, .rma_products_page .allowReturn_2 a").click((function(){app_shop.fn.ajaxLoadSite(1),app_shop.fn.ajaxLoadSiteMessage("");var t=$(this).closest("td").find("a.addQuantity"),e=parseFloat(Basketedit.getValues(t.parent().find("input[type=text]")).unit_sellby);if(0==t.parent().find("input[type=text]").val()){var i=e;t.parent().find("input[type=text]").val(i).change()}return $(this).closest("form").submit(),!1}))}));var txt_1_69260="Wybierz produkty do reklamacji";productslist_03a_txt="Uwagi mogą mieć maksymalnie ",productslist_03b_txt=" znaków. ",productslist_maxvalue_04_txt="255";var Basketedit={getValues:function(t){var e=t.attr("data-amount"),i=t.attr("data-unit_sellby"),n=t.attr("data-unit");return{precision:t.attr("data-unit_precision"),unit_sellby:i,unit:n,amount:e,max_q:t.attr("data-max_q"),max_s:t.attr("data-max_s"),min_q:t.attr("data-min_q"),min_s:t.attr("data-min_s")}},roundNumber:function(t,e){return num=parseFloat(t),result=Math.abs(num.toFixed(e)),result},if_isanumber:function(t,e){return isNaN(t)?1:1==e?t:e}
32,sellby_recount:function(t,e,i){return"up"==i?t*e:Math.round(i/e)*e},number_check:function(t){console.log("test");var e=t,i=Basketedit.getValues(t),n=parseFloat(i.unit_sellby),o=parseFloat(i.precision),s=parseFloat(i.amount),r=i.unit;console.log(a);var a=parseFloat(e.val());if(a<0)return e.val(0),!1;if(0===(a=parseFloat(a)))return e.val(0),!1;var l=parseFloat(i.max_q),c=parseFloat(i.max_s),d=parseFloat(i.min_q),u=parseFloat(i.min_s);if(!$.isNumeric(a)||a<=n){if(isNaN(l)&&isNaN(c)&&isNaN(d)&&isNaN(u))return e.val(n.toFixed(o)),!0;n=n.toFixed(o)}number=Math.floor(a/n)*n,number=(a/n*n-number).toFixed(o+1)>0?(1*number+n).toFixed(o):number.toFixed(o),number=parseFloat(number);var p=s,h=n,_=-1;if(!isNaN(l)){_=(_=l-(_=$.map($("."+e.attr("class")),(function(t){return parseFloat($(t).val())})).reduce((function(t,e){return t+e}))))<0?"end":_;var m=$("."+e.attr("class")).not(e);m.size()&&l-$.map(m,(function(t){return parseFloat($(t).val())})).reduce((function(t,e){return t+e})),p=p>l?l:p}return isNaN(c)||(p=p>c?c:p),isNaN(d)||(h=d>h?d:h),isNaN(u)||(h=u>h?u:h),-1!=p&&(h=p>h?h:n),h&&number<h?(Alertek.show_alert(Projector_txt_minimalnie+" "+Math.ceil(parseFloat(h)/n)*n+" "+r),e.val(Math.ceil(parseFloat(h)/n)*n),!0):"end"==_?(Alertek.show_alert(Projector_txt_maksymalnie+" "+Math.floor(parseFloat(l)/n)*n+" "+r),e.val(Math.floor(parseFloat(l)/n)*n),!0):number>p&&-1!=p?(Alertek.show_alert(Projector_txt_maksymalnie+" "+Math.floor(parseFloat(p)/n)*n+" "+r),e.val(Math.floor(parseFloat(p)/n)*n),!0):(e.val(number),!0)}},basketedit_productslist_init=function(){$("#basketedit_productslist .productslist_product_quantity input[type=text]").each((function(){var t=$(this).parent().find(".delQuantity");$(this).val()==parseFloat($(this).attr("data-min_q"))?t.addClass("disabled"):t.removeClass("disabled")})),$("#basketedit_productslist textarea").blur((function(){var t=$(this).val().length,e=productslist_maxvalue_04_txt;t>e&&($(this).val($(this).val().substring(0,e)),Alertek.show_alert(productslist_03a_txt+e+productslist_03b_txt))})),$("#basketedit_productslist .productslist_product_quantity input[type=text]").change((function(){Basketedit.number_check($(this));var t=$(this).parent().find(".delQuantity");$(this).val()==parseFloat($(this).attr("data-min_q"))?t.addClass("disabled"):t.removeClass("disabled")})),$(".productslist_quantity > input").on("click",(function(){if(1===app_shop.vars.view)return $(this).parent().parent().parent().parent().next().show(),$(this).parent().parent().parent().siblings(".productslist_product_toggler").children("a").addClass("open"),!1})),$(".productslist_quantity > input").on("input",(function(){1===app_shop.vars.view&&$(this).parent().parent().parent().parent().next().find("button.product_calculate").show()})),$(".productslist_quantity > input").on("change",(function(){1===app_shop.vars.view&&$(this).parent().parent().parent().parent().next().find("button.product_calculate").show()})),$(".basketedit_productslist a").click((function(){switch($(this).attr("href")){case"#addComment":var t;return $(this).parents(".rma__row").next().next().find("div.prodl_comment").length?t=$(this).parents(".rma__row").next().next():$(this).parents(".rma__row").next().find("div.prodl_comment").length&&(t=$(this).parents(".rma__row").next()),void 0!==t&&(t.find("div.prodl_comment").toggle(),t.find("div.prodl_comment_top").toggle()),!1;case"#clearComment":return $(this).prevAll("textarea").val(""),!1;case"#addQuantity":var e=parseFloat(Basketedit.getValues($(this).parent().find("input[type=text]")).unit_sellby),i=parseFloat($(this).parent().find("input[type=text]").val())+e;return $(this).parent().find("input[type=text]").val(i).change(),!1;case"#delQuantity":e=parseFloat(Basketedit.getValues($(this).parent().find("input[type=text]")).unit_sellby);return(i=parseFloat($(this).parent().find("input[type=text]").val())-e)<0&&(i=0),$(this).parent().find("input[type=text]").val(i).change(),!1}})),$(".basketedit_page #basketedit_productslist a").click((function(){switch($(this).attr("href")){case"#addComment":return $(this).parents(".productslist_item").find(".prodl_comment").length>0&&($(this).parents(".productslist_item").find(".prodl_comment_top").toggle(),$(this).parents(".productslist_item").find(".prodl_comment").toggle()),!1;case"#clearComment":return $(this).prevAll("textarea").val(""),!1;case"#removeSelected":return $("td.procuctCheckbox_sub input:checked").length>0?($("td.procuctCheckbox_sub input:checked").parents("tr.productslist_product_sizes").find(".productslist_product_quantity input[type=text]").val(0),$("form.basketedit_productslist").submit()):Alertek.show_alert(productslist_01_txt),!1;case"#saveQuantity":return $("form.basketedit_productslist").submit(),!1}})),$(".basketedit_page input.selectAllCheckbox").click((function(){$(this).is(":checked")?($("td.procuctCheckbox input").prop("checked",!0),$("td.procuctCheckbox").addClass("procuctCheckboxSelect"),$("td.procuctCheckbox_sub input").prop("checked",!0),$("td.procuctCheckbox_sub").addClass("procuctCheckboxSelect")):($("td.procuctCheckbox input").removeAttr("checked"),$("td.procuctCheckbox").removeClass("procuctCheckboxSelect"),$("td.procuctCheckbox_sub input").removeAttr("checked","checked"),$("td.procuctCheckbox_sub").removeClass("procuctCheckboxSelect"))})),$(".basketedit_page td.procuctCheckbox input").click((function(){$("td.procuctCheckbox input").not(":checked").length>0&&$("input.selectAllCheckbox").removeAttr("checked"),$("td.procuctCheckbox input:checked").length==$("td.procuctCheckbox input").length&&$("input.selectAllCheckbox").prop("checked",!0),$(this).is(":checked")?($(this).parent().addClass("procuctCheckboxSelect"),$(this).parent().siblings(".productslist_product_sizes_wrapper").children().children().children().children("td.procuctCheckbox_sub").each((function(){$(this).addClass("procuctCheckboxSelect"),$(this).children("input.procuctCheckbox_sub").prop("checked",!0)}))):($(this).parent().removeClass("procuctCheckboxSelect"),$(this).parent().siblings(".productslist_product_sizes_wrapper").children().children().children().children("td.procuctCheckbox_sub").each((function(){$(this).removeClass("procuctCheckboxSelect"),$(this).children("input.procuctCheckbox_sub").removeAttr("checked")})))})),$(".basketedit_page td.procuctCheckbox_sub input").click((function(){$("td.procuctCheckbox_sub input").not(":checked").length>0&&$("input.selectAllCheckbox").removeAttr("checked"),$("td.procuctCheckbox_sub input:checked").length==$("td.procuctCheckbox_sub input").length&&$("input.selectAllCheckbox").prop("checked",!0),$(this).parents("table.productslist_product_sizes").find("td.procuctCheckbox_sub input").not(":checked").length>0&&($(this).parents("td.productslist_product_sizes_wrapper").siblings("td.procuctCheckbox").removeClass("procuctCheckboxSelect"),$(this).parents("td.productslist_product_sizes_wrapper").siblings("td.procuctCheckbox").children("input").removeAttr("checked")),$(this).parents("table.productslist_product_sizes").find("td.procuctCheckbox_sub input:checked").length==$(this).parents("table.productslist_product_sizes").find("td.procuctCheckbox_sub input").length&&($(this).parents("td.productslist_product_sizes_wrapper").siblings("td.procuctCheckbox").addClass("procuctCheckboxSelect"),$(this).parents("td.productslist_product_sizes_wrapper").siblings("td.procuctCheckbox").children("input").prop("checked",!0)),$(this).is(":checked")?$(this).parent().addClass("procuctCheckboxSelect"):$(this).parent().removeClass("procuctCheckboxSelect")}))};app_shop.run((function(){basketedit_productslist_init()}),"all",".basketedit_productslist");var txt_1_69378="Wybierz formę zwrotu należności",validationTextErrors=[];validationTextErrors.invalid_bank_acccount="Wprowadzony numer konta bankowego jest nieprawidłowy.",app_shop.run((function(){$(".return_form").find("input, textarea").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle),obj=$(this),app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(obj)}),500)})),$(".step5 #return_go_next").on("click",(function(){const t=document.querySelector(".complain_select");if(t&&0!==t.querySelector("select").selectedIndex&&localStorage.setItem("complaint_method",t.querySelector("select").value),!$(".return_form.form-control.validate").parent().is(".has-success")&&$(".return_form.form-control.validate").parents(".return_form").is(".active"))return app_shop.formControl.checkForm($(this).parents("form")),document.querySelector(".return_form.form-control.validate").parentNode.classList.add("has-error"),!1;$("div.progress_bar_wrapper").removeClass("pb_step5").addClass("pb_step6")})),app_shop.fn.selectComplainMethod=new SelectToDropdown({selector:".complain_select",afterClickDropdownCallback:t=>{document.querySelector(".complain_select").classList.remove("has-error")}})}),"all",".return_form"),handleTim="",$(document).on("click",".step5 div.return_form",(function(){$(".step5 div.return_form").removeClass("active"),$(this).addClass("active").find("input").prop("checked",!0)})),app_shop.run((function(){$(document).on("click","a.show_description",(function(){return $(this).parent().addClass("expanded"),!1})),$(document).on("click","a.hide_description",(function(){return $(this).prev().removeClass("expanded"),!1}))}),"all",".search_description"),app_shop.run((function(){app_shop.fn.categoryDivider(".search_description.--top .search_description__wrapper")}),"all",".search_description",!0),app_shop.vars.show_description="Czytaj więcej",app_shop.vars.hide_description="Zwiń",app_shop.fn.categoryDivider=function(t){var e=t||".search_categoriesdescription_sub",i=$(e).children(),n=void 0!==app_shop.vars.categorySize?app_shop.vars.categorySize:512;return i.length>1&&!$(e).parent().find(".search_categoriesdescription_next").length&&0!==n&&($.each(i,(function(t,i){var o=-1*(n-i.innerText.length);n-i.innerText.length<=0&&o>=n&&($(e).parent().find(".search_categoriesdescription_next").length||$(e).after('<div class="search_categoriesdescription_next cm"><a class="show_description pt-3">'+app_shop.vars.show_description+"</a></div>"),$(i).appendTo($(e).parent().find(".search_categoriesdescription_next"))),n-=i.innerText.length})),app_shop.vars.hide_description&&$(e).parent().find(".search_categoriesdescription_next").after('<a class="hide_description pb-3">'+app_shop.vars.hide_description+"</a>")),$(e).removeClass("skeleton"),$(e).parent().removeClass("--skeleton"),!1},app_shop.run((function(){app_shop.fn.selectPaging=new SelectToDropdown({selector:".s_paging__select:not(.f-dropdown)",afterClickDropdownCallback:t=>{$(t).parents("form").submit()}}),$(".s_paging__item.--filters a").on("click",(function(t){return $("html").addClass("filters_open"),t.preventDefault(),!1}))}),"all",".s_paging",!0),document.addEventListener("DOMContentLoaded",(function(){const t=document.querySelector(".filters__select .f-control.f-dropdown-toggle");if(t){const i=t.querySelector(".f-dropdown-button");if(!i)return;const n=i.textContent;function e(){window.innerWidth<=768?i.textContent="Sortuj":i.textContent=n}e(),window.addEventListener("resize",e)}})),app_shop.run((function(){$("#menu_messages_warning").length&&$("#filter_list").length&&$("#menu_messages_warning").appendTo("#filter_list")}),"all","#menu_messages_warning",!0),app_shop.run((function(){app_shop.fn.initProductDataSearch("#search .product"),app_shop.fn.addProductsToBasket(document.querySelectorAll("#search .product:not(.--active-buy) .add_to_basket__wrapper"))}),[1,2,3,4],"#search",!0),document.addEventListener("DOMContentLoaded",(function(){const t=document.getElementById("search");if(!t)return;const e=t.querySelectorAll(".listing__product"),i=localStorage.getItem("allShoppingListProducts");if(!i)return;const n=JSON.parse(i);e.forEach((t=>{const e=t.getAttribute("data-product_id");if(n.some((t=>t.product_id===e))){const e=t.closest(".listing__product").querySelector(".listing__favorite").querySelector("img");e&&e.setAttribute("src","/data/include/cms//wishlist-heart-fill.svg?v=1776721280688")}}))})),app_shop.run((function(){$(document).on("click","a.show_description",(function(){return document.getElementById("search_description__wrapper").classList.add("search_description__wrapper--hidden-after"),$(this).parent().addClass("expanded"),!1})),$(document).on("click","a.hide_description",(function(){return document.getElementById("search_description__wrapper").classList.remove("search_description__wrapper--hidden-after"),$(this).prev().removeClass("expanded"),!1}))}),"all",".search_description"),app_shop.run((function(){app_shop.fn.categoryDivider(".search_description.--bottom .search_description__wrapper")}),"all",".search_description",!0),app_shop.vars.show_description="Pokaż więcej",app_shop.vars.hide_description="Pokaż mniej",app_shop.run((function(){}),"all",".search_description",!0),app_shop.run((function(){const t=document.getElementById("container");t&&t.classList.contains("main_page")||($("footer").before($("#main_hotspot_zone_3")),$("#main_hotspot_zone_3").after($("#main_blog")),$("#main_blog").after($("#main_hotspot_zone_2")))}),"all","#main_hotspot_zone_3","main_blog","#main_hotspot_zone_3"),document.addEventListener("DOMContentLoaded",(function(){const t=document.getElementById("container");if(t&&t.classList.contains("search_page")){const t=document.getElementById("main_hotspot_zone_3");t&&e("main_hotspot_zone3",t);const i=document.getElementById("main_hotspot_zone_2");i&&e("main_hotspot_zone2",i)}function e(t,e){fetch(`https://sklepdlaogrodu.pl/ajax/hotspots.php?action=get-hotspots-html&zones-names=${t}&components=${t}&zones-types=main`).then((t=>t.text())).then((i=>{if(i&&""!==i.trim()){const t=function(t){if(t.length>28)return t.substring(25,t.length-3);return t}(i.replace(/\\u([\dA-Fa-f]{4})/g,(function(t,e){return String.fromCharCode(parseInt(e,16))}))),n=t.replace(/\\/g,"");e.innerHTML=n,function(){const t=document.querySelectorAll(".listing__label__promo"),e=document.querySelectorAll(".listing__label__bestseller"),i=document.querySelectorAll(".listing__label__sale"),n=document.querySelectorAll(".listing__label__new"),o=document.querySelectorAll(".listing__label__recommended");t.forEach((t=>{t.textContent="W promocji"})),e.forEach((t=>{t.textContent="Bestseller"}
32)),i.forEach((t=>{t.textContent="Wyprzedaż"})),n.forEach((t=>{t.textContent="Nowość"})),o.forEach((t=>{t.textContent="Poleacny"}))}()}else console.warn(`Brak danych dla ${t}.`)})).catch((e=>console.error(`Błąd ładowania hotspot dla ${t}:`,e)))}})),app_shop.run((function(){$(window).resize((function(){$(".selectbox-title,.selectbox-container").removeAttr("style")}))}),"all","#searching_form"),app_shop.run((function(){app_shop.fn.shoppingListPage=new ShoppingListPage,app_shop.fn.shoppingListPageSelects=new SelectToDropdown({selector:".sl_settings__select",afterClickDropdownCallback:t=>{t.closest("form").submit()}})}),"all",".shopping_list"),app_shop.run((function(){$(".sl_products__item.--name").setHeight($(".sl_products")),$(".sl_products__item.--prices").setHeight($(".sl_products"))}),[1,2,3,4],".shopping_list");const collectProductsFromNavLinks=async()=>{const t=document.querySelectorAll(".slm_lists__nav_link"),e=[];for(const i of t){const t=i.getAttribute("href");if(t)try{const i=await fetch(t),n=await i.text(),o=(new DOMParser).parseFromString(n,"text/html");o.querySelectorAll(".sl_products__product").forEach((t=>{const i=t.getAttribute("data-product_id"),n=t.getAttribute("data-product_size");i&&n&&e.push({product_id:i,product_size:n})}))}catch(e){console.error(`Błąd podczas pobierania ${t}:`,e)}}return localStorage.setItem("allShoppingListProducts",JSON.stringify(e)),e};app_shop.run((function(){collectProductsFromNavLinks()}),"all",".shopping_list"),app_shop.fn.switchSigninView=function(t){$("#signin-form_box_left .signin-form_box_sub").hide(),$("#"+t.attr("value")).show()},app_shop.run((function(){$("a.password_reminder_signin, a.password_back_signin").on("click",(function(){return app_shop.fn.switchSigninView($($(this).attr("href"))),!1})),$(".cookie_login_social_more_social").on("click",(function(){return $("#cookie_login_social_more").show(),$(this).remove(),!1}))}),"all","#signin-form"),app_shop.run((function(){$("a.show_on_map").click((function(){if($(".no-touch"))return stock_map.showMap(),!1}))}),"all","#stock_info_58110"),app_shop.run((function(){$(".stocks_list_name").maxHeight(),$(".stocks_list_adress").maxHeight(),$(".stocks_list_phone").maxHeight(),$(".stocks_list_mail").maxHeight()}),1,".stocks_list_wrapper",!0),app_shop.run((function(){$(".stocks_list_name").maxHeight(),$(".stocks_list_adress").maxHeight(),$(".stocks_list_phone").maxHeight(),$(".stocks_list_mail").maxHeight()}),2,".stocks_list_wrapper",!0),app_shop.run((function(){$(".stocks_list_name").maxHeight(),$(".stocks_list_adress").maxHeight(),$(".stocks_list_phone").maxHeight(),$(".stocks_list_mail").maxHeight()}),3,".stocks_list_wrapper",!0),app_shop.run((function(){$(".stocks_list_name").maxHeight(),$(".stocks_list_adress").maxHeight(),$(".stocks_list_phone").maxHeight(),$(".stocks_list_mail").maxHeight()}),4,".stocks_list_wrapper",!0);var stocks_list_more_txt="więcej informacji",stocks_list_on_map_txt="Pokaż na mapie";const CMSHotspotTxt={netto:"netto",brutto:"brutto",doKoszyka:"Do koszyka",omnibusInfo:"Najniższa cena produktu w okresie 30 dni przed wprowadzeniem obniżki",dostepny:"Dostępny",niedostepny:"Niedostępny",powiadomODostepnosci:"Szczegóły",promo:"W promocji",new:"Nowość",bestseller:"Nasz bestseller",discount:"Przecena",distinguished:"Polecany",special:"Oferta specjalna"};

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.