vendor: 1,034 bytes, lines 1-7
1/*! jQuery v3.1.1 | (c) jQuery Foundation | jquery.org/license */ 2/*! 3 * Bootstrap v3.3.7 (http://getbootstrap.com) 4 * Copyright 2011-2016 Twitter, Inc. 5 * Licensed under the MIT license 6 */ 7if(function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var i=[],n=e.document,r=Object.getPrototypeOf,a=i.slice,o=i.concat,s=i.push,l=i.indexOf,c={},d=c.toString,u=c.hasOwnProperty,p=u.toString,h=p.call(Object),f={};function m(e,t){var i=(t=t||n).createElement("script");i.text=e,t.head.appendChild(i).parentNode.removeChild(i)}var g="3.1.1",v=function(e,t){return new v.fn.init(e,t)},y=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,b=/^-ms-/,w=/-([a-z])/g,S=function(e,t){return t.toUpperCase()};function x(e){var t=!!e&&"length"in e&&e.length,i=v.type(e);return"function"!==i&&!v.isWindow(e)&&("array"===i||
vendor: 42,130 bytes, line 7
70===t||"number"==typeof t&&t>0&&t-1 in e)}v.fn=v.prototype={jquery:g,constructor:v,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=v.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return v.each(this,e)},map:function(e){return this.pushStack(v.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:i.sort,splice:i.splice},v.extend=v.fn.extend=function(){var e,t,i,n,r,a,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[s]||{},s++),"object"==typeof o||v.isFunction(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=o[t],o!==(n=e[t])&&(c&&n&&(v.isPlainObject(n)||(r=v.isArray(n)))?(r?(r=!1,a=i&&v.isArray(i)?i:[]):a=i&&v.isPlainObject(i)?i:{},o[t]=v.extend(c,a,n)):void 0!==n&&(o[t]=n));return o},v.extend({expando:"jQuery"+(g+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===v.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=v.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==d.call(e)||(t=r(e))&&(i=u.call(t,"constructor")&&t.constructor,"function"!=typeof i||p.call(i)!==h))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[d.call(e)]||"object":typeof e},globalEval:function(e){m(e)},camelCase:function(e){return e.replace(b,"ms-").replace(w,S)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var i,n=0;if(x(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},trim:function(e){return null==e?"":(e+"").replace(y,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(x(Object(e))?v.merge(i,"string"==typeof e?[e]:e):s.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:l.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,r=e.length;n<i;n++)e[r++]=t[n];return e.length=r,e},grep:function(e,t,i){for(var n=[],r=0,a=e.length,o=!i;r<a;r++)!t(e[r],r)!==o&&n.push(e[r]);return n},map:function(e,t,i){var n,r,a=0,s=[];if(x(e))for(n=e.length;a<n;a++)null!=(r=t(e[a],a,i))&&s.push(r);else for(a in e)null!=(r=t(e[a],a,i))&&s.push(r);return o.apply([],s)},guid:1,proxy:function(e,t){var i,n,r;if("string"==typeof t&&(i=e[t],t=e,e=i),v.isFunction(e))return n=a.call(arguments,2),r=function(){return e.apply(t||this,n.concat(a.call(arguments)))},r.guid=e.guid=e.guid||v.guid++,r},now:Date.now,support:f}),"function"==typeof Symbol&&(v.fn[Symbol.iterator]=i[Symbol.iterator]),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});var C=function(e){var t,i,n,r,a,o,s,l,c,d,u,p,h,f,m,g,v,y,b,w="sizzle"+1*new Date,S=e.document,x=0,C=0,T=oe(),k=oe(),E=oe(),M=function(e,t){return e===t&&(u=!0),0},I={}.hasOwnProperty,A=[],L=A.pop,D=A.push,P=A.push,$=A.slice,j=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},_="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",O="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+R+"*("+O+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+R+"*\\]",N=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",H=new RegExp(R+"+","g"),B=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),U=new RegExp("^"+R+"*,"+R+"*"),V=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),z=new RegExp("="+R+"*([^\\]'\"]*?)"+R+"*\\]","g"),q=new RegExp(N),Y=new RegExp("^"+O+"$"),W={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+_+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,K=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),ee=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ne=function(){p()},re=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{P.apply(A=$.call(S.childNodes),S.childNodes),A[S.childNodes.length].nodeType}catch(e){P={apply:A.length?function(e,t){D.apply(e,$.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function ae(e,t,n,r){var a,s,c,d,u,f,v,y=t&&t.ownerDocument,x=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return n;if(!r&&((t?t.ownerDocument||t:S)!==h&&p(t),t=t||h,m)){if(11!==x&&(u=J.exec(e)))if(a=u[1]){if(9===x){if(!(c=t.getElementById(a)))return n;if(c.id===a)return n.push(c),n}else if(y&&(c=y.getElementById(a))&&b(t,c)&&c.id===a)return n.push(c),n}else{if(u[2])return P.apply(n,t.getElementsByTagName(e)),n;if((a=u[3])&&i.getElementsByClassName&&t.getElementsByClassName)return P.apply(n,t.getElementsByClassName(a)),n}if(i.qsa&&!E[e+" "]&&(!g||!g.test(e))){if(1!==x)y=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((d=t.getAttribute("id"))?d=d.replace(te,ie):t.setAttribute("id",d=w),s=(f=o(e)).length;s--;)f[s]="#"+d+" "+ve(f[s]);v=f.join(","),y=Z.test(e)&&me(t.parentNode)||t}if(v)try{return P.apply(n,y.querySelectorAll(v)),n}catch(e){}finally{d===w&&t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,n,r)}function oe(){var e=[];return function t(i,r){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=r}}function se(e){return e[w]=!0,e}function le(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var i=e.split("|"),r=i.length;r--;)n.attrHandle[i[r]]=t}function de(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function ue(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function he(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function fe(e){return se(function(t){return t=+t,se(function(i,n){for(var r,a=e([],i.length,t),o=a.length;o--;)i[r=a[o]]&&(i[r]=!(n[r]=i[r]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=ae.support={},a=ae.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=ae.setDocument=function(e){var t,r,o=e?e.ownerDocument||e:S;return o!==h&&9===o.nodeType&&o.documentElement?(f=(h=o).documentElement,m=!a(h),S!==h&&(r=h.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ne,!1):r.attachEvent&&r.attachEvent("onunload",ne)),i.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),i.getElementsByTagName=le(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),i.getElementsByClassName=Q.test(h.getElementsByClassName),i.getById=le(function(e){return f.appendChild(e).id=w,!h.getElementsByName||!h.getElementsByName(w).length}),i.getById?(n.filter.ID=function(e){var t=e.replace(K,ee);return function(e){return e.getAttribute("id")===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i=t.getElementById(e);return i?[i]:[]}}):(n.filter.ID=function(e){var t=e.replace(K,ee);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i,n,r,a=t.getElementById(e);if(a){if((i=a.getAttributeNode("id"))&&i.value===e)return[a];for(r=t.getElementsByName(e),n=0;a=r[n++];)if((i=a.getAttributeNode("id"))&&i.value===e)return[a]}return[]}}),n.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],r=0,a=t.getElementsByTagName(e);if("*"===e){for(;i=a[r++];)1===i.nodeType&&n.push(i);return n}return a},n.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(i.qsa=Q.test(h.querySelectorAll))&&(le(function(e){f.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+R+"*(?:value|"+_+")"),e.querySelectorAll("[id~="+w+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(i.matchesSelector=Q.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&le(function(e){i.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",N)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(f.compareDocumentPosition),b=t||Q.test(f.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},M=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e===h||e.ownerDocument===S&&b(S,e)?-1:t===h||t.ownerDocument===S&&b(S,t)?1:d?j(d,e)-j(d,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var i,n=0,r=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!r||!a)return e===h?-1:t===h?1:r?-1:a?1:d?j(d,e)-j(d,t):0;if(r===a)return de(e,t);for(i=e;i=i.parentNode;)o.unshift(i);for(i=t;i=i.parentNode;)s.unshift(i);for(;o[n]===s[n];)n++;return n?de(o[n],s[n]):o[n]===S?-1:s[n]===S?1:0},h):h},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&p(e),t=t.replace(z,"='$1']"),i.matchesSelector&&m&&!E[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var n=y.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return ae(t,h,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!==h&&p(e),b(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!==h&&p(e);var r=n.attrHandle[t.toLowerCase()],a=r&&I.call(n.attrHandle,t.toLowerCase())?r(e,t,!m):void 0;return void 0!==a?a:i.attributes||!m?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},ae.escape=function(e){return(e+"").replace(te,ie)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,n=[],r=0,a=0;if(u=!i.detectDuplicates,d=!i.sortStable&&e.slice(0),e.sort(M),u){for(;t=e[a++];)t===e[a]&&(r=n.push(a));for(;r--;)e.splice(n[r],1)}return d=null,e},r=ae.getText=function(e){var t,i="",n=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=r(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[n++];)i+=r(t);return i},n=ae.selectors={cacheLength:50,createPseudo:se,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(K,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(K,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&q.test(i)&&(t=o(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(K,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(n){var r=ae.attr(n,e);return null==r?"!="===t:!t||(r+="","="===t?r===i:"!="===t?r!==i:"^="===t?i&&0===r.indexOf(i):"*="===t?i&&r.indexOf(i)>-1:"$="===t?i&&r.slice(-i.length)===i:"~="===t?(" "+r.replace(H," ")+" ").indexOf(i)>-1:"|="===t&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,r){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,i,l){var c,d,u,p,h,f,m=a!==o?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(a){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&y){for(b=(h=(c=(d=(u=(p=g)[w]||(p[w]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],p=h&&g.childNodes[h];p=++h&&p&&p[m]||(b=h=0)||f.pop();)if(1===p.nodeType&&++b&&p===t){d[e]=[x,h,b];break}}else if(y&&(b=h=(c=(d=(u=(p=t)[w]||(p[w]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===b)for(;(p=++h&&p&&p[m]||(b=h=0)||f.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&((d=(u=p[w]||(p[w]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]=[x,b]),p!==t)););return(b-=r)===n||b%n===0&&b/n>=0}}},PSEUDO:function(e,t){var i,r=n.pseudos[e]||n.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return r[w]?r(t):r.length>1?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,i){for(var n,a=r(e,t),o=a.length;o--;)e[n=j(e,a[o])]=!(i[n]=a[o])}):function(e){return r(e,0,i)}):r}},pseudos:{not:se(function(e){var t=[],i=[],n=s(e.replace(B,"$1"));return n[w]?se(function(e,t,i,r){for(var a,o=n(e,null,r,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))}):function(e,r,a){return t[0]=e,n(t,null,a,i),t[0]=null,!i.pop()}}),has:se(function(e){return function(t){return ae(e,t).length>0}}),contains:se(function(e){return e=e.replace(K,ee),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}}),lang:se(function(e){return Y.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(K,ee).toLowerCase(),function(t){var i;do{if(i=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:fe(function(){return[0]}),last:fe(function(e,t){return[t-1]}),eq:fe(function(e,t,i){return[i<0?i+t:i]}),even:fe(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:fe(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:fe(function(e,t,i){for(var n=i<0?i+t:i;--n>=0;)e.push(n);return e}),gt:fe(function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e})}},n.pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[t]=ue(t);for(t in{submit:!0,reset:!0})n.pseudos[t]=pe(t);function ge(){}function ve(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function ye(e,t,i){var n=t.dir,r=t.next,a=r||n,o=i&&"parentNode"===a,s=C++;return t.first?function(t,i,r){for(;t=t[n];)if(1===t.nodeType||o)return e(t,i,r);return!1}:function(t,i,l){var c,d,u,p=[x,s];if(l){for(;t=t[n];)if((1===t.nodeType||o)&&e(t,i,l))return!0}else for(;t=t[n];)if(1===t.nodeType||o)if(d=(u=t[w]||(t[w]={}))[t.uniqueID]||(u[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[n]||t;else{if((c=d[a])&&c[0]===x&&c[1]===s)return p[2]=c[2];if(d[a]=p,p[2]=e(t,i,l))return!0}return!1}}function be(e){return e.length>1?function(t,i,n){for(var r=e.length;r--;)if(!e[r](t,i,n))return!1;return!0}:e[0]}function we(e,t,i,n,r){for(var a,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(a=e[s])&&(i&&!i(a,n,r)||(o.push(a),c&&t.push(s)));return o}function Se(e,t,i,n,r,a){return n&&!n[w]&&(n=Se(n)),r&&!r[w]&&(r=Se(r,a)),se(function(a,o,s,l){var c,d,u,p=[],h=[],f=o.length,m=a||function(e,t,i){for(var n=0,r=t.length;n<r;n++)ae(e,t[n],i);return i}(t||"*",s.nodeType?[s]:s,[]),g=!e||!a&&t?m:we(m,p,e,s,l),v=i?r||(a?e:f||n)?[]:o:g;if(i&&i(g,v,s,l),n)for(c=we(v,h),n(c,[],s,l),d=c.length;d--;)(u=c[d])&&(v[h[d]]=!(g[h[d]]=u));if(a){if(r||e){if(r){for(c=[],d=v.length;d--;)(u=v[d])&&c.push(g[d]=u);r(null,v=[],c,l)}for(d=v.length;d--;)(u=v[d])&&(c=r?j(a,u):p[d])>-1&&(a[c]=!(o[c]=u))}}else v=we(v===o?v.splice(f,v.length):v),r?r(null,o,v,l):P.apply(o,v)})}function xe(e){for(var t,i,r,a=e.length,o=n.relative[e[0].type],s=o||n.relative[" "],l=o?1:0,d=ye(function(e){return e===t},s,!0),u=ye(function(e){return j(t,e)>-1},s,!0),p=[function(e,i,n){var r=!o&&(n||i!==c)||((t=i).nodeType?d(e,i,n):u(e,i,n));return t=null,r}];l<a;l++)if(i=n.relative[e[l].type])p=[ye(be(p),i)];else{if((i=n.filter[e[l].type].apply(null,e[l].matches))[w]){for(r=++l;r<a&&!n.relative[e[r].type];r++);return Se(l>1&&be(p),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),i,l<r&&xe(e.slice(l,r)),r<a&&xe(e=e.slice(r)),r<a&&ve(e))}p.push(i)}return be(p)}function Ce(e,t){var i=t.length>0,r=e.length>0,a=function(a,o,s,l,d){var u,f,g,v=0,y="0",b=a&&[],w=[],S=c,C=a||r&&n.find.TAG("*",d),T=x+=null==S?1:Math.random()||.1,k=C.length;for(d&&(c=o===h||o||d);y!==k&&null!=(u=C[y]);y++){if(r&&u){for(f=0,o||u.ownerDocument===h||(p(u),s=!m);g=e[f++];)if(g(u,o||h,s)){l.push(u);break}d&&(x=T)}i&&((u=!g&&u)&&v--,a&&b.push(u))}if(v+=y,i&&y!==v){for(f=0;g=t[f++];)g(b,w,o,s);if(a){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=L.call(l));w=we(w)}P.apply(l,w),d&&!a&&w.length>0&&v+t.length>1&&ae.uniqueSort(l)}return d&&(x=T,c=S),b};return i?se(a):a}return ge.prototype=n.filters=n.pseudos,n.setFilters=new ge,o=ae.tokenize=function(e,t){var i,r,a,o,s,l,c,d=k[e+" "];if(d)return t?0:d.slice(0);for(s=e,l=[],c=n.preFilter;s;){for(o in i&&!(r=U.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(a=[])),i=!1,(r=V.exec(s))&&(i=r.shift(),a.push({value:i,type:r[0].replace(B," ")}),s=s.slice(i.length)),n.filter)!(r=W[o].exec(s))||c[o]&&!(r=c[o](r))||(i=r.shift(),a.push({value:i,type:o,matches:r}),s=s.slice(i.length));if(!i)break}return t?s.length:s?ae.error(e):k(e,l).slice(0)},s=ae.compile=function(e,t){var i,n=[],r=[],a=E[e+" "];if(!a){for(t||(t=o(e)),i=t.length;i--;)(a=xe(t[i]))[w]?n.push(a):r.push(a);(a=E(e,Ce(r,n))).selector=e}return a},l=ae.select=function(e,t,i,r){var a,l,c,d,u,p="function"==typeof e&&e,h=!r&&o(e=p.selector||e);if(i=i||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&n.relative[l[1].type]){if(!(t=(n.find.ID(c.matches[0].replace(K,ee),t)||[])[0]))return i;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(a=W.needsContext.test(e)?0:l.length;a--&&(c=l[a],!n.relative[d=c.type]);)if((u=n.find[d])&&(r=u(c.matches[0].replace(K,ee),Z.test(l[0].type)&&me(t.parentNode)||t))){if(l.splice(a,1),!(e=r.length&&ve(l)))return P.apply(i,r),i;break}}return(p||s(e,h))(r,t,!m,i,!t||Z.test(e)&&me(t.parentNode)||t),i},i.sortStable=w.split("").sort(M).join("")===w,i.detectDuplicates=!!u,p(),i.sortDetached=le(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),i.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ce(_,function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),ae}(e);v.find=C,v.expr=C.selectors,v.expr[":"]=v.expr.pseudos,v.uniqueSort=v.unique=C.uniqueSort,v.text=C.getText,v.isXMLDoc=C.isXML,v.contains=C.contains,v.escapeSelector=C.escape;var T=function(e,t,i){for(var n=[],r=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&v(e).is(i))break;n.push(e)}return n},k=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},E=v.expr.match.needsContext,M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,I=/^.[^:#\[\.,]*$/;function A(e,t,i){return v.isFunction(t)?v.grep(e,function(e,n){return!!t.call(e,n,e)!==i}):t.nodeType?v.grep(e,function(e){return e===t!==i}):"string"!=typeof t?v.grep(e,function(e){return l.call(t,e)>-1!==i}):I.test(t)?v.filter(t,e,i):(t=v.filter(t,e),v.grep(e,function(e){return l.call(t,e)>-1!==i&&1===e.nodeType}))}v.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?v.find.matchesSelector(n,e)?[n]:[]:v.find.matches(e,v.grep(t,function(e){return 1===e.nodeType}))},v.fn.extend({find:function(e){var t,i,n=this.length,r=this;if("string"!=typeof e)return this.pushStack(v(e).filter(function(){for(t=0;t<n;t++)if(v.contains(r[t],this))return!0}));for(i=this.pushStack([]),t=0;t<n;t++)v.find(e,r[t],i);return n>1?v.uniqueSort(i):i},filter:function(e){return this.pushStack(A(this,e||[],!1))},not:function(e){return this.pushStack(A(this,e||[],!0))},is:function(e){return!!A(this,"string"==typeof e&&E.test(e)?v(e):e||[],!1).length}});var L,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,P=v.fn.init=function(e,t,i){var r,a;if(!e)return this;if(i=i||L,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:D.exec(e))||!r[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof v?t[0]:t,v.merge(this,v.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:n,!0)),M.test(r[1])&&v.isPlainObject(t))for(r in t)v.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(a=n.getElementById(r[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v.isFunction(e)?void 0!==i.ready?i.ready(e):e(v):v.makeArray(e,this)};P.prototype=v.fn,L=v(n);var $=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function _(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}v.fn.extend({has:function(e){var t=v(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(v.contains(this,t[e]))return!0})},closest:function(e,t){var i,n=0,r=this.length,a=[],o="string"!=typeof e&&v(e);if(!E.test(e))for(;n<r;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(o?o.index(i)>-1:1===i.nodeType&&v.find.matchesSelector(i,e))){a.push(i);break}return this.pushStack(a.length>1?v.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?l.call(v(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),v.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,i){return T(e,"parentNode",i)},next:function(e){return _(e,"nextSibling")},prev:function(e){return _(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,i){return T(e,"nextSibling",i)},prevUntil:function(e,t,i){return T(e,"previousSibling",i)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return e.contentDocument||v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(i,n){var r=v.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=v.filter(n,r)),this.length>1&&(j[e]||v.uniqueSort(r),$.test(e)&&r.reverse()),this.pushStack(r)}});var R=/[^\x20\t\r\n\f]+/g;function O(e){return e}function F(e){throw e}function N(e,t,i){var n;try{e&&v.isFunction(n=e.promise)?n.call(e).done(t).fail(i):e&&v.isFunction(n=e.then)?n.call(e,t,i):t.call(void 0,e)}catch(e){i.call(void 0,e)}}v.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return v.each(e.match(R)||[],function(e,i){t[i]=!0}),t}(e):v.extend({},e);var t,i,n,r,a=[],o=[],s=-1,l=function(){for(r=e.once,n=t=!0;o.length;s=-1)for(i=o.shift();++s<a.length;)!1===a[s].apply(i[0],i[1])&&e.stopOnFalse&&(s=a.length,i=!1);e.memory||(i=!1),t=!1,r&&(a=i?[]:"")},c={add:function(){return a&&(i&&!t&&(s=a.length-1,o.push(i)),function t(i){v.each(i,function(i,n){v.isFunction(n)?e.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==v.type(n)&&t(n)})}(arguments),i&&!t&&l()),this},remove:function(){return v.each(arguments,function(e,t){for(var i;(i=v.inArray(t,a,i))>-1;)a.splice(i,1),i<=s&&s--}),this},has:function(e){return e?v.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return r=o=[],a=i="",this},disabled:function(){return!a},lock:function(){return r=o=[],i||t||(a=i=""),this},locked:function(){return!!r},fireWith:function(e,i){return r||(i=[e,(i=i||[]).slice?i.slice():i],o.push(i),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},v.extend({Deferred:function(t){var i=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return v.Deferred(function(t){v.each(i,function(i,n){var r=v.isFunction(e[n[4]])&&e[n[4]];a[n[1]](function(){var e=r&&r.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[n[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(t,n,r){var a=0;function o(t,i,n,r){return function(){var s=this,l=arguments,c=function(){var e,c;if(!(t<a)){if((e=n.apply(s,l))===i.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,v.isFunction(c)?r?c.call(e,o(a,i,O,r),o(a,i,F,r)):(a++,c.call(e,o(a,i,O,r),o(a,i,F,r),o(a,i,O,i.notifyWith))):(n!==O&&(s=void 0,l=[e]),(r||i.resolveWith)(s,l))}},d=r?c:function(){try{c()}catch(e){v.Deferred.exceptionHook&&v.Deferred.exceptionHook(e,d.stackTrace),t+1>=a&&(n!==F&&(s=void 0,l=[e]),i.rejectWith(s,l))}};t?d():(v.Deferred.getStackHook&&(d.stackTrace=v.Deferred.getStackHook()),e.setTimeout(d))}}return v.Deferred(function(e){i[0][3].add(o(0,e,v.isFunction(r)?r:O,e.notifyWith)),i[1][3].add(o(0,e,v.isFunction(t)?t:O)),i[2][3].add(o(0,e,v.isFunction(n)?n:F))}).promise()},promise:function(e){return null!=e?v.extend(e,r):r}},a={};return v.each(i,function(e,t){var o=t[2],s=t[5];r[t[1]]=o.add,s&&o.add(function(){n=s},i[3-e][2].disable,i[0][2].lock),o.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=o.fireWith}),r.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,i=t,n=Array(i),r=a.call(arguments),o=v.Deferred(),s=function(e){return function(i){n[e]=this,r[e]=arguments.length>1?a.call(arguments):i,--t||o.resolveWith(n,r)}};if(t<=1&&(N(e,o.done(s(i)).resolve,o.reject),"pending"===o.state()||v.isFunction(r[i]&&r[i].then)))return o.then();for(;i--;)N(r[i],s(i),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(t,i){e.console&&e.console.warn&&t&&H.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},v.readyException=function(t){e.setTimeout(function(){throw t})};var B=v.Deferred();function U(){n.removeEventListener("DOMContentLoaded",U),e.removeEventListener("load",U),v.ready()}v.fn.ready=function(e){return B.then(e).catch(function(e){v.readyException(e)}),this},v.extend({isReady:!1,readyWait:1,holdReady:function(e){e?v.readyWait++:v.ready(!0)},ready:function(e){(!0===e?--v.readyWait:v.isReady)||(v.isReady=!0,!0!==e&&--v.readyWait>0||B.resolveWith(n,[v]))}}),v.ready.then=B.then,"complete"===n.readyState||"loading"!==n.readyState&&!n.documentElement.doScroll?e.setTimeout(v.ready):(n.addEventListener("DOMContentLoaded",U),e.addEventListener("load",U));var V=function(e,t,i,n,r,a,o){var s=0,l=e.length,c=null==i;if("object"===v.type(i))for(s in r=!0,i)V(e,t,s,i[s],!0,a,o);else if(void 0!==n&&(r=!0,v.isFunction(n)||(o=!0),c&&(o?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(v(e),i)})),t))for(;s<l;s++)t(e[s],i,o?n:n.call(e[s],s,t(e[s],i)));return r?e:c?t.call(e):l?t(e[0],i):a},z=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function q(){this.expando=v.expando+q.uid++}q.uid=1,q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},z(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,r=this.cache(e);if("string"==typeof t)r[v.camelCase(t)]=i;else for(n in t)r[v.camelCase(n)]=t[n];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][v.camelCase(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){v.isArray(t)?t=t.map(v.camelCase):t=(t=v.camelCase(t))in n?[t]:t.match(R)||[],i=t.length;for(;i--;)delete n[t[i]]}(void 0===t||v.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!v.isEmptyObject(t)}};var Y=new q,W=new q,G=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,X=/[A-Z]/g;function Q(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(X,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:G.test(e)?JSON.parse(e):e)}(i)}catch(e){}W.set(e,t,i)}else i=void 0;return i}v.extend({hasData:function(e){return W.hasData(e)||Y.hasData(e)},data:function(e,t,i){return W.access(e,t,i)},removeData:function(e,t){W.remove(e,t)},_data:function(e,t,i){return Y.access(e,t,i)},_removeData:function(e,t){Y.remove(e,t)}}),v.fn.extend({data:function(e,t){var i,n,r,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(r=W.get(a),1===a.nodeType&&!Y.get(a,"hasDataAttrs"))){for(i=o.length;i--;)o[i]&&(0===(n=o[i].name).indexOf("data-")&&(n=v.camelCase(n.slice(5)),Q(a,n,r[n])));Y.set(a,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){W.set(this,e)}):V(this,function(t){var i;if(a&&void 0===t){if(void 0!==(i=W.get(a,e)))return i;if(void 0!==(i=Q(a,e)))return i}else this.each(function(){W.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){W.remove(this,e)})}}),v.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=Y.get(e,t),i&&(!n||v.isArray(i)?n=Y.access(e,t,v.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=v.queue(e,t),n=i.length,r=i.shift(),a=v._queueHooks(e,t);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete a.stop,r.call(e,function(){v.dequeue(e,t)},a)),!n&&a&&a.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return Y.get(e,i)||Y.access(e,i,{empty:v.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",i])})})}}),v.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?v.queue(this[0],e):void 0===t?this:this.each(function(){var i=v.queue(this,e,t);v._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,r=v.Deferred(),a=this,o=this.length,s=function(){--n||r.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(i=Y.get(a[o],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(s));return s(),r.promise(t)}});var J=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Z=new RegExp("^(?:([+-])=|)("+J+")([a-z%]*)$","i"),K=["Top","Right","Bottom","Left"],ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&v.contains(e.ownerDocument,e)&&"none"===v.css(e,"display")},te=function(e,t,i,n){var r,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];for(a in r=i.apply(e,n||[]),t)e.style[a]=o[a];return r};function ie(e,t,i,n){var r,a=1,o=20,s=n?function(){return n.cur()}:function(){return v.css(e,t,"")},l=s(),c=i&&i[3]||(v.cssNumber[t]?"":"px"),d=(v.cssNumber[t]||"px"!==c&&+l)&&Z.exec(v.css(e,t));if(d&&d[3]!==c){c=c||d[3],i=i||[],d=+l||1;do{d/=a=a||".5",v.style(e,t,d+c)}while(a!==(a=s()/l)&&1!==a&&--o)}return i&&(d=+d||+l||0,r=i[1]?d+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=d,n.end=r)),r}var ne={};function re(e){var t,i=e.ownerDocument,n=e.nodeName,r=ne[n];return r||(t=i.body.appendChild(i.createElement(n)),r=v.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),ne[n]=r,r)}function ae(e,t){for(var i,n,r=[],a=0,o=e.length;a<o;a++)(n=e[a]).style&&(i=n.style.display,t?("none"===i&&(r[a]=Y.get(n,"display")||null,r[a]||(n.style.display="")),""===n.style.display&&ee(n)&&(r[a]=re(n))):"none"!==i&&(r[a]="none",Y.set(n,"display",i)));for(a=0;a<o;a++)null!=r[a]&&(e[a].style.display=r[a]);return e}v.fn.extend({show:function(){return ae(this,!0)},hide:function(){return ae(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?v(this).show():v(this).hide()})}});var oe=/^(?:checkbox|radio)$/i,se=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,le=/^$|\/(?:java|ecma)script/i,ce={option:[1,"<select multiple='multiple'>","</select>"],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 de(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&v.nodeName(e,t)?v.merge([e],i):i}function ue(e,t){for(var i=0,n=e.length;i<n;i++)Y.set(e[i],"globalEval",!t||Y.get(t[i],"globalEval"))}ce.optgroup=ce.option,ce.tbody=ce.tfoot=ce.colgroup=ce.caption=ce.thead,ce.th=ce.td;var pe=/<|&#?\w+;/;function he(e,t,i,n,r){for(var a,o,s,l,c,d,u=t.createDocumentFragment(),p=[],h=0,f=e.length;h<f;h++)if((a=e[h])||0===a)if("object"===v.type(a))v.merge(p,a.nodeType?[a]:a);else if(pe.test(a)){for(o=o||u.appendChild(t.createElement("div")),s=(se.exec(a)||["",""])[1].toLowerCase(),l=ce[s]||ce._default,o.innerHTML=l[1]+v.htmlPrefilter(a)+l[2],d=l[0];d--;)o=o.lastChild;v.merge(p,o.childNodes),(o=u.firstChild).textContent=""}else p.push(t.createTextNode(a));for(u.textContent="",h=0;a=p[h++];)if(n&&v.inArray(a,n)>-1)r&&r.push(a);else if(c=v.contains(a.ownerDocument,a),o=de(u.appendChild(a),"script"),c&&ue(o),i)for(d=0;a=o[d++];)le.test(a.type||"")&&i.push(a);return u}!function(){var e=n.createDocumentFragment().appendChild(n.createElement("div")),t=n.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),f.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var fe=n.documentElement,me=/^key/,ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ve=/^([^.]*)(?:\.(.+)|)/;function ye(){return!0}function be(){return!1}function we(){try{return n.activeElement}catch(e){}}function Se(e,t,i,n,r,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof i&&(n=n||i,i=void 0),t)Se(e,s,i,n,t[s],a);return e}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=be;else if(!r)return e;return 1===a&&(o=r,r=function(e){return v().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=v.guid++)),e.each(function(){v.event.add(this,t,r,n,i)})}v.event={global:{},add:function(e,t,i,n,r){var a,o,s,l,c,d,u,p,h,f,m,g=Y.get(e);if(g)for(i.handler&&(i=(a=i).handler,r=a.selector),r&&v.find.matchesSelector(fe,r),i.guid||(i.guid=v.guid++),(l=g.events)||(l=g.events={}),(o=g.handle)||(o=g.handle=function(t){return void 0!==v&&v.event.triggered!==t.type?v.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(R)||[""]).length;c--;)h=m=(s=ve.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h&&(u=v.event.special[h]||{},h=(r?u.delegateType:u.bindType)||h,u=v.event.special[h]||{},d=v.extend({type:h,origType:m,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&v.expr.match.needsContext.test(r),namespace:f.join(".")},a),(p=l[h])||((p=l[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,n,f,o)||e.addEventListener&&e.addEventListener(h,o)),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=i.guid)),r?p.splice(p.delegateCount++,0,d):p.push(d),v.event.global[h]=!0)},remove:function(e,t,i,n,r){var a,o,s,l,c,d,u,p,h,f,m,g=Y.hasData(e)&&Y.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(R)||[""]).length;c--;)if(h=m=(s=ve.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h){for(u=v.event.special[h]||{},p=l[h=(n?u.delegateType:u.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=p.length;a--;)d=p[a],!r&&m!==d.origType||i&&i.guid!==d.guid||s&&!s.test(d.namespace)||n&&n!==d.selector&&("**"!==n||!d.selector)||(p.splice(a,1),d.selector&&p.delegateCount--,u.remove&&u.remove.call(e,d));o&&!p.length&&(u.teardown&&!1!==u.teardown.call(e,f,g.handle)||v.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)v.event.remove(e,h+t[c],i,n,!0);v.isEmptyObject(l)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,i,n,r,a,o,s=v.event.fix(e),l=new Array(arguments.length),c=(Y.get(this,"events")||{})[s.type]||[],d=v.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,s)){for(o=v.event.handlers.call(this,s,c),t=0;(r=o[t++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,i=0;(a=r.handlers[i++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(a.namespace)||(s.handleObj=a,s.data=a.data,void 0!==(n=((v.event.special[a.origType]||{}).handle||a.handler).apply(r.elem,l))&&!1===(s.result=n)&&(s.preventDefault(),s.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,s),s.result}},handlers:function(e,t){var i,n,r,a,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],o={},i=0;i<l;i++)void 0===o[r=(n=t[i]).selector+" "]&&(o[r]=n.needsContext?v(r,this).index(c)>-1:v.find(r,this,null,[c]).length),o[r]&&a.push(n);a.length&&s.push({elem:c,handlers:a})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(v.Event.prototype,e,{enumerable:!0,configurable:!0,get:v.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]}
vendor: 2,344 bytes, line 7
7,set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[v.expando]?e:new v.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==we()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===we()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&v.nodeName(this,"input"))return this.click(),!1},_default:function(e){return v.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},v.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},v.Event=function(e,t){return this instanceof v.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ye:be,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),void(this[v.expando]=!0)):new v.Event(e,t)},v.Event.prototype={constructor:v.Event,isDefaultPrevented:be,isPropagationStopped:be,isImmediatePropagationStopped:be,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ye,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ye,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ye,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},v.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,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&me.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&ge.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},v.event.addProp),v.each({mouseenter:"mouseover",mouseleave:"mou
7seout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||v.contains(this,n))||(e.type=r.origType,i=r.handler.apply(this,arguments),e.type=t),i}}}),v.fn.extend({on:function(e,t,i,n){return Se(this,e,t,i,n)},one:function(e,t,i,n){return Se(this,e,t,i,n,1)},off:function(e,t,i){var n,r;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,v(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=be),this.each(function(){v.event.remove(this,e,i,t)})}});var xe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ce=/<script|<style|<link/i,Te=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^true\/(.*)/,Ee=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Me(e,t){return v.nodeName(e,"table")&&v.nodeName(11!==t.nodeType?t:t.firstChild,"tr")&&e.getElementsByTagName("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ae(e){var t=ke.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Le(e,t){var i,n,r,a,o,s,l,c;if(1===t.nodeType){if(Y.hasData(e)&&(a=Y.access(e),o=Y.set(t,a),c=a.events))for(r in delete o.handle,o.events={},c)for(i=0,n=c[r].length;i<n;i++)v.event.add(t,r,c[r][i]);W.hasData(e)&&(s=W.access(e),l=v.extend({},s),W.set(t,l))}}function De(e,t){var i=t.nodeName.toLowerCase();"input"===i&&oe.test(e.type)?t.checked=e.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=e.defaultValue)}function Pe(e,t,i,n){t=o.apply([],t);var r,a,s,l,c,d,u=0,p=e.length,h=p-1,g=t[0],y=v.isFunction(g);if(y||p>1&&"string"==typeof g&&!f.checkClone&&Te.test(g))return e.each(function(r){var a=e.eq(r);y&&(t[0]=g.call(this,r,a.html())),Pe(a,t,i,n)});if(p&&(a=(r=he(t,e[0].ownerDocument,!1,e,n)).firstChild,1===r.childNodes.length&&(r=a),a||n)){for(l=(s=v.map(de(r,"script"),Ie)).length;u<p;u++)c=r,u!==h&&(c=v.clone(c,!0,!0),l&&v.merge(s,de(c,"script"))),i.call(e[u],c,u);if(l)for(d=s[s.length-1].ownerDocument,v.map(s,Ae),u=0;u<l;u++)c=s[u],le.test(c.type||"")&&!Y.access(c,"globalEval")&&v.contains(d,c)&&(c.src?v._evalUrl&&v._evalUrl(c.src):m(c.textContent.replace(Ee,""),d))}return e}function $e(e,t,i){for(var n,r=t?v.filter(t,e):e,a=0;null!=(n=r[a]);a++)i||1!==n.nodeType||v.cleanData(de(n)),n.parentNode&&(i&&v.contains(n.ownerDocument,n)&&ue(de(n,"script")),n.parentNode.removeChild(n));return e}v.extend({htmlPrefilter:function(e){return e.replace(xe,"<$1></$2>")},clone:function(e,t,i){var n,r,a,o,s=e.cloneNode(!0),l=v.contains(e.ownerDocument,e);if(!(f.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||v.isXMLDoc(e)))for(o=de(s),n=0,r=(a=de(e)).length;n<r;n++)De(a[n],o[n]);if(t)if(i)for(a=a||de(e),o=o||de(s),n=0,r=a.length;n<r;n++)Le(a[n],o[n]);else Le(e,s);return(o=de(s,"script")).length>0&&ue(o,!l&&de(e,"script")),s},cleanData:function(e){for(var t,i,n,r=v.event.special,a=0;void 0!==(i=e[a]);a++)if(z(i)){if(t=i[Y.expando]){if(t.events)for(n in t.events)r[n]?v.event.remove(i,n):v.removeEvent(i,n,t.handle);i[Y.expando]=void 0}i[W.expando]&&(i[W.expando]=void 0)}}}),v.fn.extend({detach:function(e){return $e(this,e,!0)},remove:function(e){return $e(this,e)},text:function(e){return V(this,function(e){return void 0===e?v.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Pe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Me(this,e).appendChild(e)})},prepend:function(){return Pe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Me(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(v.cleanData(de(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return V(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ce.test(e)&&!ce[(se.exec(e)||["",""])[1].toLowerCase()]){e=v.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(v.cleanData(de(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Pe(this,arguments,function(t){var i=this.parentNode;v.inArray(this,e)<0&&(v.cleanData(de(this)),i&&i.replaceChild(t,this))},e)}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(e){for(var i,n=[],r=v(e),a=r.length-1,o=0;o<=a;o++)i=o===a?this:this.clone(!0),v(r[o])[t](i),s.apply(n,i.get());return this.pushStack(n)}});var je=/^margin/,_e=new RegExp("^("+J+")(?!px)[a-z%]+$","i"),Re=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=e),i.getComputedStyle(t)};function Oe(e,t,i){var n,r,a,o,s=e.style;return(i=i||Re(e))&&(""!==(o=i.getPropertyValue(t)||i[t])||v.contains(e.ownerDocument,e)||(o=v.style(e,t)),!f.pixelMarginRight()&&_e.test(o)&&je.test(t)&&(n=s.width,r=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=i.width,s.width=n,s.minWidth=r,s.maxWidth=a)),void 0!==o?o+"":o}function Fe(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){function t(){if(l){l.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",l.innerHTML="",fe.appendChild(s);var t=e.getComputedStyle(l);
vendor: 6,400 bytes, line 7
7i="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,l.style.marginRight="50%",a="4px"===t.marginRight,fe.removeChild(s),l=null}}var i,r,a,o,s=n.createElement("div"),l=n.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===l.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(l),v.extend(f,{pixelPosition:function(){return t(),i},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),a},reliableMarginLeft:function(){return t(),o}}))}();var Ne=/^(none|table(?!-c[ea]).+)/,He={position:"absolute",visibility:"hidden",display:"block"},Be={letterSpacing:"0",fontWeight:"400"},Ue=["Webkit","Moz","ms"],Ve=n.createElement("div").style;function ze(e){if(e in Ve)return e;for(var t=e[0].toUpperCase()+e.slice(1),i=Ue.length;i--;)if((e=Ue[i]+t)in Ve)return e}function qe(e,t,i){var n=Z.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function Ye(e,t,i,n,r){var a,o=0;for(a=i===(n?"border":"content")?4:"width"===t?1:0;a<4;a+=2)"margin"===i&&(o+=v.css(e,i+K[a],!0,r)),n?("content"===i&&(o-=v.css(e,"padding"+K[a],!0,r)),"margin"!==i&&(o-=v.css(e,"border"+K[a]+"Width",!0,r))):(o+=v.css(e,"padding"+K[a],!0,r),"padding"!==i&&(o+=v.css(e,"border"+K[a]+"Width",!0,r)));return o}function We(e,t,i){var n,r=!0,a=Re(e),o="border-box"===v.css(e,"boxSizing",!1,a);if(e.getClientRects().length&&(n=e.getBoundingClientRect()[t]),n<=0||null==n){if(((n=Oe(e,t,a))<0||null==n)&&(n=e.style[t]),_e.test(n))return n;r=o&&(f.boxSizingReliable()||n===e.style[t]),n=parseFloat(n)||0}return n+Ye(e,t,i||(o?"border":"content"),r,a)+"px"}function Ge(e,t,i,n,r){return new Ge.prototype.init(e,t,i,n,r)}v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Oe(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,a,o,s=v.camelCase(t),l=e.style;return t=v.cssProps[s]||(v.cssProps[s]=ze(s)||s),o=v.cssHooks[t]||v.cssHooks[s],void 0===i?o&&"get"in o&&void 0!==(r=o.get(e,!1,n))?r:l[t]:("string"===(a=typeof i)&&(r=Z.exec(i))&&r[1]&&(i=ie(e,t,r),a="number"),void(null!=i&&i==i&&("number"===a&&(i+=r&&r[3]||(v.cssNumber[s]?"":"px")),f.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(i=o.set(e,i,n))||(l[t]=i))))}},css:function(e,t,i,n){var r,a,o,s=v.camelCase(t);return t=v.cssProps[s]||(v.cssProps[s]=ze(s)||s),(o=v.cssHooks[t]||v.cssHooks[s])&&"get"in o&&(r=o.get(e,!0,i)),void 0===r&&(r=Oe(e,t,n)),"normal"===r&&t in Be&&(r=Be[t]),""===i||i?(a=parseFloat(r),!0===i||isFinite(a)?a||0:r):r}}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,i,n){if(i)return!Ne.test(v.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?We(e,t,n):te(e,He,function(){return We(e,t,n)})},set:function(e,i,n){var r,a=n&&Re(e),o=n&&Ye(e,t,n,"border-box"===v.css(e,"boxSizing",!1,a),a);return o&&(r=Z.exec(i))&&"px"!==(r[3]||"px")&&(e.style[t]=i,i=v.css(e,t)),qe(0,i,o)}}}),v.cssHooks.marginLeft=Fe(f.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Oe(e,"marginLeft"))||e.getBoundingClientRect().left-te(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(i){for(var n=0,r={},a="string"==typeof i?i.split(" "):[i];n<4;n++)r[e+K[n]+t]=a[n]||a[n-2]||a[0];return r}},je.test(e)||(v.cssHooks[e+t].set=qe)}),v.fn.extend({css:function(e,t){return V(this,function(e,t,i){var n,r,a={},o=0;if(v.isArray(t)){for(n=Re(e),r=t.length;o<r;o++)a[t[o]]=v.css(e,t[o],!1,n);return a}return void 0!==i?v.style(e,t,i):v.css(e,t)},e,t,arguments.length>1)}}),v.Tween=Ge,Ge.prototype={constructor:Ge,init:function(e,t,i,n,r,a){this.elem=e,this.prop=i,this.easing=r||v.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=a||(v.cssNumber[i]?"":"px")},cur:function(){var e=Ge.propHooks[this.prop];return e&&e.get?e.get(this):Ge.propHooks._default.get(this)},run:function(e){var t,i=Ge.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Ge.propHooks._default.set(this),this}},Ge.prototype.init.prototype=Ge.prototype,Ge.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=v.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[v.cssProps[e.prop]]&&!v.cssHooks[e.prop]?e.elem[e.prop]=e.now:v.style(e.elem,e.prop,e.now+e.unit)}}},Ge.propHooks.scrollTop=Ge.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},v.fx=Ge.prototype.init,v.fx.step={};var Xe,Qe,Je=/^(?:toggle|show|hide)$/,Ze=/queueHooks$/;function Ke(){Qe&&(e.requestAnimationFrame(Ke),v.fx.tick())}function et(){return e.setTimeout(function(){Xe=void 0}),Xe=v.now()}function tt(e,t){var i,n=0,r={height:e};for(t=t?1:0;n<4;n+=2-t)r["margin"+(i=K[n])]=r["padding"+i]=e;return t&&(r.opacity=r.width=e),r}function it(e,t,i){for(var n,r=(nt.tweeners[t]||[]).concat(nt.tweeners["*"]),a=0,o=r.length;a<o;a++)if(n=r[a].call(i,t,e))return n}function nt(e,t,i){var n,r,a=0,o=nt.prefilters.length,s=v.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=Xe||et(),i=Math.max(0,c.startTime+c.duration-t),n=1-(i/c.duration||0),a=0,o=c.tweens.length;a<o;a++)c.tweens[a].run(n);return s.notifyWith(e,[c,n,i]),n<1&&o?i:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{},easing:v.easing._default},i),originalProperties:t,originalOptions:i,startTime:Xe||et(),duration:i.duration,tweens:[],createTween:function(t,i){var n=v.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||
vendor: 23,354 bytes, line 7
7c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)c.tweens[i].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),d=c.props;for(function(e,t){var i,n,r,a,o;for(i in e)if(r=t[n=v.camelCase(i)],a=e[i],v.isArray(a)&&(r=a[1],a=e[i]=a[0]),i!==n&&(e[n]=a,delete e[i]),(o=v.cssHooks[n])&&"expand"in o)for(i in a=o.expand(a),delete e[n],a)i in e||(e[i]=a[i],t[i]=r);else t[n]=r}(d,c.opts.specialEasing);a<o;a++)if(n=nt.prefilters[a].call(c,e,d,c.opts))return v.isFunction(n.stop)&&(v._queueHooks(c.elem,c.opts.queue).stop=v.proxy(n.stop,n)),n;return v.map(d,it,c),v.isFunction(c.opts.start)&&c.opts.start.call(e,c),v.fx.timer(v.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}v.Animation=v.extend(nt,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return ie(i.elem,e,Z.exec(t),i),i}]},tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.match(R);for(var i,n=0,r=e.length;n<r;n++)i=e[n],nt.tweeners[i]=nt.tweeners[i]||[],nt.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,r,a,o,s,l,c,d,u="width"in t||"height"in t,p=this,h={},f=e.style,m=e.nodeType&&ee(e),g=Y.get(e,"fxshow");for(n in i.queue||(null==(o=v._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,p.always(function(){p.always(function(){o.unqueued--,v.queue(e,"fx").length||o.empty.fire()})})),t)if(r=t[n],Je.test(r)){if(delete t[n],a=a||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[n])continue;m=!0}h[n]=g&&g[n]||v.style(e,n)}if((l=!v.isEmptyObject(t))||!v.isEmptyObject(h))for(n in u&&1===e.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=Y.get(e,"display")),"none"===(d=v.css(e,"display"))&&(c?d=c:(ae([e],!0),c=e.style.display||c,d=v.css(e,"display"),ae([e]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===v.css(e,"float")&&(l||(p.done(function(){f.display=c}),null==c&&(d=f.display,c="none"===d?"":d)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",p.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1,h)l||(g?"hidden"in g&&(m=g.hidden):g=Y.access(e,"fxshow",{display:c}),a&&(g.hidden=!m),m&&ae([e],!0),p.done(function(){for(n in m||ae([e]),Y.remove(e,"fxshow"),h)v.style(e,n,h[n])})),l=it(m?g[n]:0,n,p),n in g||(g[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?nt.prefilters.unshift(e):nt.prefilters.push(e)}}),v.speed=function(e,t,i){var r=e&&"object"==typeof e?v.extend({},e):{complete:i||!i&&t||v.isFunction(e)&&e,duration:e,easing:i&&t||t&&!v.isFunction(t)&&t};return v.fx.off||n.hidden?r.duration=0:"number"!=typeof r.duration&&(r.duration in v.fx.speeds?r.duration=v.fx.speeds[r.duration]:r.duration=v.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v.isFunction(r.old)&&r.old.call(this),r.queue&&v.dequeue(this,r.queue)},r},v.fn.extend({fadeTo:function(e,t,i,n){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var r=v.isEmptyObject(e),a=v.speed(t,i,n),o=function(){var t=nt(this,v.extend({},e),a);(r||Y.get(this,"finish"))&&t.stop(!0)};return o.finish=o,r||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",a=v.timers,o=Y.get(this);if(r)o[r]&&o[r].stop&&n(o[r]);else for(r in o)o[r]&&o[r].stop&&Ze.test(r)&&n(o[r]);for(r=a.length;r--;)a[r].elem!==this||null!=e&&a[r].queue!==e||(a[r].anim.stop(i),t=!1,a.splice(r,1));!t&&i||v.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,i=Y.get(this),n=i[e+"queue"],r=i[e+"queueHooks"],a=v.timers,o=n?n.length:0;for(i.finish=!0,v.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish})}}),v.each(["toggle","show","hide"],function(e,t){var i=v.fn[t];v.fn[t]=function(e,n,r){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(tt(t,!0),e,n,r)}}),v.each({slideDown:tt("show"),slideUp:tt("hide"),slideToggle:tt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}}),v.timers=[],v.fx.tick=function(){var e,t=0,i=v.timers;for(Xe=v.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||v.fx.stop(),Xe=void 0},v.fx.timer=function(e){v.timers.push(e),e()?v.fx.start():v.timers.pop()},v.fx.interval=13,v.fx.start=function(){Qe||(Qe=e.requestAnimationFrame?e.requestAnimationFrame(Ke):e.setInterval(v.fx.tick,v.fx.interval))},v.fx.stop=function(){e.cancelAnimationFrame?e.cancelAnimationFrame(Qe):e.clearInterval(Qe),Qe=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(t,i){return t=v.fx&&v.fx.speeds[t]||t,i=i||"fx",this.queue(i,function(i,n){var r=e.setTimeout(i,t);n.stop=function(){e.clearTimeout(r)}})},function(){var e=n.createElement("input"),t=n.createElement("select").appendChild(n.createElement("option"));e.type="checkbox",f.checkOn=""!==e.value,f.optSelected=t.selected,(e=n.createElement("input")).value="t",e.type="radio",f.radioValue="t"===e.value}();var rt,at=v.expr.attrHandle;v.fn.extend({attr:function(e,t){return V(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})}}),v.extend({attr:function(e,t,i){var n,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?v.prop(e,t,i):(1===a&&v.isXMLDoc(e)||(r=v.attrHooks[t.toLowerCase()]||(v.expr.match.bool.test(t)?rt:void 0)),void 0!==i?null===i?void v.removeAttr(e,t):r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:(e.setAttribute(t,i+""),i):r&&"get"in r&&null!==(n=r.get(e,t))?n:null==(n=v.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&"radio"===t&&v.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,r=t&&t.match(R);if(r&&1===e.nodeType)for(;i=r[n++];)e.removeAttribute(i)}}),rt={set:function(e,t,i){return!1===t?v.removeAttr(e,i):e.setAttribute(i,i),i}},v.each(v.expr.match.bool.source.match(/\w+/g),function(e,t){var i=at[t]||v.find.attr;at[t]=function(e,t,n){var r,a,o=t.toLowerCase();return n||(a=at[o],at[o]=r,r=null!=i(e,t,n)?o:null,at[o]=a),r}});var ot=/^(?:input|select|textarea|button)$/i,st=/^(?:a|area)$/i;function lt(e){return(e.match(R)||[]).join(" ")}function ct(e){return e.getAttribute&&e.getAttribute("class")||""}v.fn.extend({prop:function(e,t){return V(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[v.propFix[e]||e]})}}),v.extend({prop:function(e,t,i){var n,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&v.isXMLDoc(e)||(t=v.propFix[t]||t,r=v.propHooks[t]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=v.find.attr(e,"tabindex");return t?parseInt(t,10):ot.test(e.nodeName)||st.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(v.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this}),v.fn.extend({addClass:function(e){var t,i,n,r,a,o,s,l=0;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,ct(this)))});if("string"==typeof e&&e)for(t=e.match(R)||[];i=this[l++];)if(r=ct(i),n=1===i.nodeType&&" "+lt(r)+" "){for(o=0;a=t[o++];)n.indexOf(" "+a+" ")<0&&(n+=a+" ");r!==(s=lt(n))&&i.setAttribute("class",s)}return this},removeClass:function(e){var t,i,n,r,a,o,s,l=0;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,ct(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(R)||[];i=this[l++];)if(r=ct(i),n=1===i.nodeType&&" "+lt(r)+" "){for(o=0;a=t[o++];)for(;n.indexOf(" "+a+" ")>-1;)n=n.replace(" "+a+" "," ");r!==(s=lt(n))&&i.setAttribute("class",s)}return this},toggleClass:function(e,t){var i=typeof e;return"boolean"==typeof t&&"string"===i?t?this.addClass(e):this.removeClass(e):v.isFunction(e)?this.each(function(i){v(this).toggleClass(e.call(this,i,ct(this),t),t)}):this.each(function(){var t,n,r,a;if("string"===i)for(n=0,r=v(this),a=e.match(R)||[];t=a[n++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==i||((t=ct(this))&&Y.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+lt(ct(i))+" ").indexOf(t)>-1)return!0;return!1}});var dt=/\r/g;v.fn.extend({val:function(e){var t,i,n,r=this[0];return arguments.length?(n=v.isFunction(e),this.each(function(i){var r;1===this.nodeType&&(null==(r=n?e.call(this,i,v(this).val()):e)?r="":"number"==typeof r?r+="":v.isArray(r)&&(r=v.map(r,function(e){return null==e?"":e+""})),(t=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=v.valHooks[r.type]||v.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(dt,""):null==i?"":i:void 0}}),v.extend({valHooks:{option:{get:function(e){var t=v.find.attr(e,"value");return null!=t?t:lt(v.text(e))}},select:{get:function(e){var t,i,n,r=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?a+1:r.length;for(n=a<0?l:o?a:0;n<l;n++)if(((i=r[n]).selected||n===a)&&!i.disabled&&(!i.parentNode.disabled||!v.nodeName(i.parentNode,"optgroup"))){if(t=v(i).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var i,n,r=e.options,a=v.makeArray(t),o=r.length;o--;)((n=r[o]).selected=v.inArray(v.valHooks.option.get(n),a)>-1)&&(i=!0);return i||(e.selectedIndex=-1),a}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(e,t){if(v.isArray(t))return e.checked=v.inArray(v(e).val(),t)>-1}},f.checkOn||(v.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ut=/^(?:focusinfocus|focusoutblur)$/;v.extend(v.event,{trigger:function(t,i,r,a){var o,s,l,c,d,p,h,f=[r||n],m=u.call(t,"type")?t.type:t,g=u.call(t,"namespace")?t.namespace.split("."):[];if(s=l=r=r||n,3!==r.nodeType&&8!==r.nodeType&&!ut.test(m+v.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),d=m.indexOf(":")<0&&"on"+m,(t=t[v.expando]?t:new v.Event(m,"object"==typeof t&&t)).isTrigger=a?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),i=null==i?[t]:v.makeArray(i,[t]),h=v.event.special[m]||{},a||!h.trigger||!1!==h.trigger.apply(r,i))){if(!a&&!h.noBubble&&!v.isWindow(r)){for(c=h.delegateType||m,ut.test(c+m)||(s=s.parentNode);s;s=s.parentNode)f.push(s),l=s;l===(r.ownerDocument||n)&&f.push(l.defaultView||l.parentWindow||e)}for(o=0;(s=f[o++])&&!t.isPropagationStopped();)t.type=o>1?c:h.bindType||m,(p=(Y.get(s,"events")||{})[t.type]&&Y.get(s,"handle"))&&p.apply(s,i),(p=d&&s[d])&&p.apply&&z(s)&&(t.result=p.apply(s,i),!1===t.result&&t.preventDefault());return t.type=m,a||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(f.pop(),i)||!z(r)||d&&v.isFunction(r[m])&&!v.isWindow(r)&&((l=r[d])&&(r[d]=null),v.event.triggered=m,r[m](),v.event.triggered=void 0,l&&(r[d]=l)),t.result}},simulate:function(e,t,i){var n=v.extend(new v.Event,i,{type:e,isSimulated:!0});v.event.trigger(n,null,t)}}),v.fn.extend({trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return v.event.trigger(e,t,i,!0)}}),v.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){v.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}),v.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),f.focusin="onfocusin"in e,f.focusin||v.each({focus:"focusin",blur:"focusout"},function(e,t){var i=function(e){v.event.simulate(t,e.target,v.event.fix(e))};v.event.special[t]={setup:function(){var n=this.ownerDocument||this,r=Y.access(n,t);r||n.addEventListener(e,i,!0),Y.access(n,t,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=Y.access(n,t)-1;r?Y.access(n,t,r):(n.removeEventListener(e,i,!0),Y.remove(n,t))}}});var pt=e.location,ht=v.now(),ft=/\?/;v.parseXML=function(t){var i;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+t),i};var mt=/\[\]$/,gt=/\r?\n/g,vt=/^(?:submit|button|image|reset|file)$/i,yt=/^(?:input|select|textarea|keygen)/i;function bt(e,t,i,n){var r;if(v.isArray(t))v.each(t,function(t,r){i||mt.test(e)?n(e,r):bt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,i,n)});else if(i||"object"!==v.type(t))n(e,t);else for(r in t)bt(e+"["+r+"]",t[r],i,n)}v.param=function(e,t){var i,n=[],r=function(e,t){var i=v.isFunction(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){r(this.name,this.value)});else for(i in e)bt(i,e[i],t,r);return n.join("&")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=v.prop(this,"elements");return e?v.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!v(this).is(":disabled")&&yt.test(this.nodeName)&&!vt.test(e)&&(this.checked||!oe.test(e))}).map(function(e,t){var i=v(this).val();return null==i?null:v.isArray(i)?v.map(i,function(e){return{name:t.name,value:e.replace(gt,"\r\n")}}):{name:t.name,value:i.replace(gt,"\r\n")}}).get()}});var wt=/%20/g,St=/#.*$/,xt=/([?&])_=[^&]*/,Ct=/^(.*?):[ \t]*([^\r\n]*)$/gm,Tt=/^(?:GET|HEAD)$/,kt=/^\/\//,Et={},Mt={},It="*/".concat("*"),At=n.createElement("a");function Lt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,r=0,a=t.toLowerCase().match(R)||[];if(v.isFunction(i))for(;n=a[r++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Dt(e,t,i,n){var r={},a=e===Mt;function o(s){var l;return r[s]=!0,v.each(e[s]||[],function(e,s){var c=s(t,i,n);return"string"!=typeof c||a||r[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)}),l}return o(t.dataTypes[0])||!r["*"]&&o("*")}function Pt(e,t){var i,n,r=v.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&v.extend(!0,e,n),e}At.href=pt.href,v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,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":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Pt(Pt(e,v.ajaxSettings),t):Pt(v.ajaxSettings,e)},ajaxPrefilter:Lt(Et),ajaxTransport:Lt(Mt),ajax:function(t,i){"object"==typeof t&&(i=t,t=void 0),i=i||{};var r,a,o,s,l,c,d,u,p,h,f=v.ajaxSetup({},i),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?v(m):v.event,y=v.Deferred(),b=v.Callbacks("once memory"),w=f.statusCode||{},S={},x={},C="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(d){if(!s)for(s={};t=Ct.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return d?o:null},setRequestHeader:function(e,t){return null==d&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,S[e]=t),this},overrideMimeType:function(e){return null==d&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(d)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),k(0,t),this}};if(y.promise(T),f.url=((t||f.url||pt.href)+"").replace(kt,pt.protocol+"//"),f.type=i.method||i.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(R)||[""],null==f.crossDomain){c=n.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=At.protocol+"//"+At.host!=c.protocol+"//"+c.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=v.param(f.data,f.traditional)),Dt(Et,f,i,T),d)return T;for(p in(u=v.event&&f.global)&&0===v.active++&&v.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Tt.test(f.type),a=f.url.replace(St,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(wt,"+")):(h=f.url.slice(a.length),f.data&&(a+=(ft.test(a)?"&":"?")+f.data,delete f.data),!1===f.cache&&(a=a.replace(xt,"$1"),h=(ft.test(a)?"&":"?")+"_="+ht+++h),f.url=a+h),f.ifModified&&(v.lastModified[a]&&T.setRequestHeader("If-Modified-Since",v.lastModified[a]),v.etag[a]&&T.setRequestHeader("If-None-Match",v.etag[a])),(f.data&&f.hasContent&&!1!==f.contentType||i.contentType)&&T.setRequestHeader("Content-Type",f.contentType),T.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+It+"; q=0.01":""):f.accepts["*"]),f.headers)T.setRequestHeader(p,f.headers[p]);if(f.beforeSend&&(!1===f.beforeSend.call(m,T,f)||d))return T.abort();if(C="abort",b.add(f.complete),T.done(f.success),T.fail(f.error),r=Dt(Mt,f,i,T)){if(T.readyState=1,u&&g.trigger("ajaxSend",[T,f]),d)return T;f.async&&f.timeout>0&&(l=e.setTimeout(function(){T.abort("timeout")},f.timeout));try{d=!1,r.send(S,k)}catch(e){if(d)throw e;k(-1,e)}}else k(-1,"No Transport");function k(t,i,n,s){var c,p,h,S,x,C=i;d||(d=!0,l&&e.clearTimeout(l),r=void 0,o=s||"",T.readyState=t>0?4:0,c=t>=200&&t<300||304===t,n&&(S=function(e,t,i){for(var n,r,a,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(r in s)if(s[r]&&s[r].test(n)){l.unshift(r);break}if(l[0]in i)a=l[0];else{for(r in i){if(!l[0]||e.converters[r+" "+l[0]]){a=r;break}o||(o=r)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),i[a]}(f,T,n)),S=function(e,t,i,n){var r,a,o,s,l,c={},d=e.dataTypes.slice();if(d[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(a=d.shift();a;)if(e.responseFields[a]&&(i[e.responseFields[a]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=d.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(o=c[l+" "+a]||c["* "+a]))for(r in c)if((s=r.split(" "))[1]===a&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[r]:!0!==c[r]&&(a=s[0],d.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(f,S,T,c),c?(f.ifModified&&((x=T.getResponseHeader("Last-Modified"))&&(v.lastModified[a]=x),(x=T.getResponseHeader("etag"))&&(v.etag[a]=x)),204===t||"HEAD"===f.type?C="nocontent":304===t?C="notmodified":(C=S.state,p=S.data,c=!(h=S.error))):(h=C,!t&&C||(C="error",t<0&&(t=0))),T.status=t,T.statusText=(i||C)+"",c?y.resolveWith(m,[p,C,T]):y.rejectWith(m,[T,C,h]),T.statusCode(w),w=void 0,u&&g.trigger(c?"ajaxSuccess":"ajaxError",[T,f,c?p:h]),b.fireWith(m,[T,C]),u&&(g.trigger("ajaxComplete",[T,f]),--v.active||v.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,i){return v.get(e,t,i,"json")},getScript:function(e,t){return v.get(e,void 0,t,"script")}}),v.each(["get","post"],function(e,t){v[t]=function(e,i,n,r){return v.isFunction(i)&&(r=r||n,n=i,i=void 0),v.ajax(v.extend({url:e,type:t,dataType:r,data:i,success:n},v.isPlainObject(e)&&e))}}),v._evalUrl=function(e){return v.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},v.fn.extend({wrapAll:function(e){var t;return this[0]&&(v.isFunction(e)&&(e=e.call(this[0])),t=v(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(i){v(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){v(this).replaceWith(this.childNodes)}),this}}),v.expr.pseudos.hidden=function(e){return!v.expr.pseudos.visible(e)},v.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var $t={0:200,1223:204},jt=v.ajaxSettings.xhr();f.cors=!!jt&&"withCredentials"in jt,f.ajax=jt=!!jt,v.ajaxTransport(function(t){var i,n;if(f.cors||jt&&!t.crossDomain)return{send:function(r,a){var o,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];for(o in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(o,r[o]);i=function(e){return function(){i&&(i=n=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a($t[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=i(),n=s.onerror=i("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){i&&n()})},i=i("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(i)throw e}},abort:function(){i&&i()}}}),v.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),v.ajaxTransport("script",function(e){var t,i;if(e.crossDomain)return{send:function(r,a){t=v("<script>
7").prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&a("error"===e.type?404:200,e.type)}),n.head.appendChild(t[0])},abort:function(){i&&i()}}});var _t=[],Rt=/(=)\?(?=&|$)|\?\?/;function Ot(e){return v.isWindow(e)?e:9===e.nodeType&&e.defaultView}v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=_t.pop()||v.expando+"_"+ht++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(t,i,n){var r,a,o,s=!1!==t.jsonp&&(Rt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Rt,"$1"+r):!1!==t.jsonp&&(t.url+=(ft.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||v.error(r+" was not called"),o[0]},t.dataTypes[0]="json",a=e[r],e[r]=function(){o=arguments},n.always(function(){void 0===a?v(e).removeProp(r):e[r]=a,t[r]&&(t.jsonpCallback=i.jsonpCallback,_t.push(r)),o&&v.isFunction(a)&&a(o[0]),o=a=void 0}),"script"}),f.createHTMLDocument=function(){var e=n.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),v.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(f.createHTMLDocument?((r=(t=n.implementation.createHTMLDocument("")).createElement("base")).href=n.location.href,t.head.appendChild(r)):t=n),o=!i&&[],(a=M.exec(e))?[t.createElement(a[1])]:(a=he([e],t,o),o&&o.length&&v(o).remove(),v.merge([],a.childNodes)));var r,a,o},v.fn.load=function(e,t,i){var n,r,a,o=this,s=e.indexOf(" ");return s>-1&&(n=lt(e.slice(s)),e=e.slice(0,s)),v.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(r="POST"),o.length>0&&v.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){a=arguments,o.html(n?v("<div>").append(v.parseHTML(e)).find(n):e)}).always(i&&function(e,t){o.each(function(){i.apply(this,a||[e.responseText,t,e])})}),this},v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.expr.pseudos.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length},v.offset={setOffset:function(e,t,i){var n,r,a,o,s,l,c=v.css(e,"position"),d=v(e),u={};"static"===c&&(e.style.position="relative"),s=d.offset(),a=v.css(e,"top"),l=v.css(e,"left"),("absolute"===c||"fixed"===c)&&(a+l).indexOf("auto")>-1?(o=(n=d.position()).top,r=n.left):(o=parseFloat(a)||0,r=parseFloat(l)||0),v.isFunction(t)&&(t=t.call(e,i,v.extend({},s))),null!=t.top&&(u.top=t.top-s.top+o),null!=t.left&&(u.left=t.left-s.left+r),"using"in t?t.using.call(e,u):d.css(u)}},v.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){v.offset.setOffset(this,e,t)});var t,i,n,r,a=this[0];return a?a.getClientRects().length?(n=a.getBoundingClientRect()).width||n.height?(i=Ot(r=a.ownerDocument),t=r.documentElement,{top:n.top+i.pageYOffset-t.clientTop,left:n.left+i.pageXOffset-t.clientLeft}):n:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i=this[0],n={top:0,left:0};return"fixed"===v.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),v.nodeName(e[0],"html")||(n=e.offset()),n={top:n.top+v.css(e[0],"borderTopWidth",!0),left:n.left+v.css(e[0],"borderLeftWidth",!0)}),{top:t.top-n.top-v.css(i,"marginTop",!0),left:t.left-n.left-v.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===v.css(e,"position");)e=e.offsetParent;return e||fe})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var i="pageYOffset"===t;v.fn[e]=function(n){return V(this,function(e,n,r){var a=Ot(e);return void 0===r?a?a[t]:e[n]:void(a?a.scrollTo(i?a.pageXOffset:r,i?r:a.pageYOffset):e[n]=r)},e,n,arguments.length)}}),v.each(["top","left"],function(e,t){v.cssHooks[t]=Fe(f.pixelPosition,function(e,i){if(i)return i=Oe(e,t),_e.test(i)?v(e).position()[t]+"px":i})}),v.each({Height:"height",Width:"width"},function(e,t){v.each({padding:"inner"+e,content:t,"":"outer"+e},function(i,n){v.fn[n]=function(r,a){var o=arguments.length&&(i||"boolean"!=typeof r),s=i||(!0===r||!0===a?"margin":"border");return V(this,function(t,i,r){var a;return v.isWindow(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===r?v.css(t,i,s):v.style(t,i,r,s)},t,o?r:void 0,o)}})}),v.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}}),v.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return v});var Ft=e.jQuery,Nt=e.$;return v.noConflict=function(t){return e.$===v&&(e.$=Nt),t&&e.jQuery===v&&(e.jQuery=Ft),v},t||(e.jQuery=e.$=v),v}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(e){"use strict";e.fn.emulateTransitionEnd=function(t){var i=!1,n=this;e(this).one("bsTransitionEnd",function(){i=!0});return setTimeout(function(){i||e(n).trigger(e.support.transition.end)},t),this},e(function(){e.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(void 0!==e.style[i])return{end:t[i]};return!1}(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',i=function(i){e(i).on("click",t,this.close)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.prototype.close=function(t){function n(){o.detach().trigger("closed.bs.alert").remove()}var r=e(this),a=r.attr("data-target");a||(a=(a=r.attr("href"))&&a.replace(/.*(?=#[^\s]*$)/,""));var o=e("#"===a?[]:a);t&&t.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var n=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var n=e(this),r=n.data("bs.alert");r||n.data("bs.alert",r=new i(this)),"string"==typeof t&&r[t].call(n)})},e.fn.alert.Constructor=i,e.fn.alert.noConflict=function(){return e.fn.alert=n,this},e(document).on("click.bs.alert.data-api",t,i.prototype.close)}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var n=e(this),r=n.data("bs.button"),a="object"==typeof t&&t;
vendor: 13,674 bytes, line 7
7r||n.data("bs.button",r=new i(this,a)),"toggle"==t?r.toggle():t&&r.setState(t)})}var i=function(t,n){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="3.3.7",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(t){var i="disabled",n=this.$element,r=n.is("input")?"val":"html",a=n.data();t+="Text",null==a.resetText&&n.data("resetText",n[r]()),setTimeout(e.proxy(function(){n[r](null==a[t]?this.options[t]:a[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i).prop(i,!1))},this),0)},i.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),e&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=t,e.fn.button.Constructor=i,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var n=e(i.target).closest(".btn");t.call(n,"toggle"),e(i.target).is('input[type="radio"], input[type="checkbox"]')||(i.preventDefault(),n.is("input,button")?n.trigger("focus"):n.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var n=e(this),r=n.data("bs.carousel"),a=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t),o="string"==typeof t?t:a.slide;r||n.data("bs.carousel",r=new i(this,a)),"number"==typeof t?r.to(t):o?r[o]():a.interval&&r.pause().cycle()})}var i=function(t,i){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};i.VERSION="3.3.7",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},i.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},i.prototype.getItemForDirection=function(e,t){var i=this.getItemIndex(t);if(("prev"==e&&0===i||"next"==e&&i==this.$items.length-1)&&!this.options.wrap)return t;var n=(i+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(n)},i.prototype.to=function(e){var t=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):i==e?this.pause().cycle():this.slide(e>i?"next":"prev",this.$items.eq(e))},i.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){if(!this.sliding)return this.slide("next")},i.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},i.prototype.slide=function(t,n){var r=this.$element.find(".item.active"),a=n||this.getItemForDirection(t,r),o=this.interval,s="next"==t?"left":"right",l=this;if(a.hasClass("active"))return this.sliding=!1;var c=a[0],d=e.Event("slide.bs.carousel",{relatedTarget:c,direction:s});if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=e(this.$indicators.children()[this.getItemIndex(a)]);u&&u.addClass("active")}var p=e.Event("slid.bs.carousel",{relatedTarget:c,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(a.addClass(t),a[0].offsetWidth,r.addClass(s),a.addClass(s),r.one("bsTransitionEnd",function(){a.removeClass([t,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(p)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(r.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger(p)),o&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=i,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this};var r=function(i){var n,r=e(this),a=e(r.attr("data-target")||(n=r.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(a.hasClass("carousel")){var o=e.extend({},a.data(),r.data()),s=r.attr("data-slide-to");s&&(o.interval=!1),t.call(a,o),s&&a.data("bs.carousel").to(s),i.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var i=e(this);t.call(i,i.data())})})}(jQuery),function(e){"use strict";function t(t){var i,n=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return e(n)}function i(t){return this.each(function(){var i=e(this),r=i.data("bs.collapse"),a=e.extend({},n.DEFAULTS,i.data(),"object"==typeof t&&t);!r&&a.toggle&&/show|hide/.test(t)&&(a.toggle=!1),r||i.data("bs.collapse",r=new n(this,a)),"string"==typeof t&&r[t]()})}var n=function(t,i){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,i),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.3.7",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(t=r.data("bs.collapse"),t&&t.transitioning))){var a=e.Event("show.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){r&&r.length&&(i.call(r,"hide"),t||r.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var l=e.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[o](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return e.support.transition?void this.$element[i](0).one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(n.TRANSITION_DURATION):r.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(i,n){var r=e(n);this.addAriaAndCollapsedClass(t(r),r)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(e,t){var i=e.hasClass("in");e.attr("aria-expanded",i),t.toggleClass("collapsed",!i).attr("aria-expanded",i)};var r=e.fn.collapse;e.fn.collapse=i,e.fn.collapse.Constructor=n,e.fn.collapse.noConflict=function(){return e.fn.collapse=r,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var r=e(this);r.attr("data-target")||n.preventDefault();var a=t(r),o=a.data("bs.collapse")?"toggle":r.data();i.call(a,o)})}(jQuery),function(e){"use strict";function t(t){var i=t.attr("data-target");i||(i=(i=t.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&e(i);return n&&n.length?n:t.parent()}function i(i){i&&3===i.which||(e(n).remove(),e(r).each(function(){var n=e(this),r=t(n),a={relatedTarget:this};r.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&e.contains(r[0],i.target)||(r.trigger(i=e.Event("hide.bs.dropdown",a)),i.isDefaultPrevented()||(n.attr("aria-expanded","false"),r.removeClass("open").trigger(e.Event("hidden.bs.dropdown",a)))))}))}var n=".dropdown-backdrop",r='[data-toggle="dropdown"]',a=function(t){e(t).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.7",a.prototype.toggle=function(n){var r=e(this);if(!r.is(".disabled, :disabled")){var a=t(r),o=a.hasClass("open");if(i(),!o){"ontouchstart"in document.documentElement&&!a.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",i);var s={relatedTarget:this};if(a.trigger(n=e.Event("show.bs.dropdown",s)),n.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),a.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},a.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var n=e(this);if(i.preventDefault(),i.stopPropagation(),!n.is(".disabled, :disabled")){var a=t(n),o=a.hasClass("open");if(!o&&27!=i.which||o&&27==i.which)return 27==i.which&&a.find(r).trigger("focus"),n.trigger("click");var s=a.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(i.target);38==i.which&&l>0&&l--,40==i.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var o=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var i=e(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new a(this)),"string"==typeof t&&n[t].call(i)})},e.fn.dropdown.Constructor=a,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=o,this},e(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",r,a.prototype.toggle).on("keydown.bs.dropdown.data-api",r,a.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",a.prototype.keydown)}(jQuery),function(e){"use strict";function t(t,n){return this.each(function(){var r=e(this),a=r.data("bs.modal"),o=e.extend({},i.DEFAULTS,r.data(),"object"==typeof t&&t);a||r.data("bs.modal",a=new i(this,o)),"string"==typeof t?a[t](n):o.show&&a.show(n)})}var i=function(t,i){this.options=i,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.3.7",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},i.prototype.show=function(t){var n=this,r=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){n.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(n.$element)&&(n.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=e.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),r&&n.$element[0].offsetWidth,n.$element.addClass("in"),n.enforceFocus();var a=e.Event("shown.bs.modal",{relatedTarget:t});r?n.$dialog.one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(a)}).emulateTransitionEnd(i.TRANSITION_DURATION):n.$element.trigger("focus").trigger(a)}))},i.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("
7click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(t){var n=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var a=e.support.transition&&r;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),a&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;a?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){n.removeBackdrop(),t&&t()};
vendor: 4,147 bytes, line 7
7e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):o()}else t&&t()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},i.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var n=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=i,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var n=e(this),r=n.attr("href"),a=e(n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),o=a.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},a.data(),n.data());n.is("a")&&i.preventDefault(),a.one("show.bs.modal",function(e){e.isDefaultPrevented()||a.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),t.call(a,o,this)})}(jQuery),function(e){"use strict";var t=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};t.VERSION="3.3.7",t.TRANSITION_DURATION=150,t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,i,n){if(this.enabled=!0,this.type=t,this.$element=e(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),a=r.length;a--;){var o=r[a];if("click"==o)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=o){var s="hover"==o?"mouseenter":"focusin",l="hover"==o?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return(t=e.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&e.each(this._options,function(e,n){i[e]!=n&&(t[e]=n)}),t},t.prototype.enter=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusin"==t.type?"focu
7s":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},t.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},t.prototype.leave=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusout"==t.type?"focus":"hover"]=!1),!i.isInStateTrue())return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},t.prototype.show=function(){var i=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(i);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(i.isDefaultPrevented()||!n)return;var r=this,a=this.tip(),o=this.getUID(this.type);this.setContent(),a.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&a.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(s);c&&(s=s.replace(l,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?a.appendTo(this.options.container):a.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var d=this.getPosition(),u=a[0].offsetWidth,p=a[0].offsetHeight;if(c){var h=s,f=this.getPosition(this.$viewport);s="bottom"==s&&d.bottom+p>f.bottom?"top":"top"==s&&d.top-p<f.top?"bottom":"right"==s&&d.right+u>f.width?"left":"left"==s&&d.left-u<f.left?"right":s,a.removeClass(h).addClass(s)}var m=this.getCalculatedOffset(s,d,u,p);this.applyPlacement(m,s);var g=function(){var e=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==e&&r.leave(r)};e.support.transition&&this.$tip.hasClass("fade")?a.one("bsTransitionEnd",g).emulateTransitionEnd(t.TRANSITION_DURATION):g()}},t.prototype.applyPlacement=function(t,i){var n=this.tip(),r=n[0].offsetWidth,a=n[0].offsetHeight,o=parseInt(n.css("margin-top"),10),s=parseInt(n.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(s)&&(s=0),t.top+=o,t.left+=s,e.offset.setOffset(n[0],e.extend({using:function(e){n.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),n.addClass("in");var l=n[0].offsetWidth,c=n[0].offsetHeight;"top"==i&&c!=a&&(t.top=t.top+a-c);var d=this.getViewportAdjustedDelta(i,t,l,c);d.left?t.left+=d.left:t.top+=d.top;var u=/top|bottom/.test(i),p=u?2*d.left-r+l:2*d.top-a+c,h=u?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(p,n[0][h],u)},t.prototype.replaceArrow=function(e,t,i){this.arrow().css(i?"left":"top",50*(1-e/t)+"%").css(i?"top":"left","")},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},t.prototype.hide=function(i){function n(){"in"!=r.hoverState&&a.detach(),r.$element&&r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),i&&i()}var r=this,a=e(this.$tip),o=e.Event("hide.bs."+this.type);if(this.$element.trigger(o),!o.isDefaultPrevented())return a.removeClass("in"),e.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",n).emulateTransitionEnd(t.TRANSITION_DURATION):n(),this.hoverState=null,this},t.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(t){var i=(t=t||this.$element)[0],n="BODY"==i.tagName,r=i.getBoundingClientRect();null==r.width&&(r=e.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var a=window.SVGElement&&i instanceof window.SVGElement,o=n?{top:0,left:0}:a?null:t.offset(),s={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},l=n?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},r,s,l,o)},t.prototype.getCalculatedOffset=function(e,t,i,n){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==e?{top:t.top-n,left:t.left+t.width/2-i/2}:"left"==e?{top:t.top+t.height/2-n/2,left:t.left-i}:{top:t.top+t.height/2-n/2,left:t.left+t.width}},t.prototype.getViewportAdjustedDelta=function(e,t,i,n){var r={top:0,left:0};if(!this.$viewport)return r;var a=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-a-o.scroll,l=t.top+a-o.scroll+n;s<o.top?r.top=o.top-s:l>o.top+o.height&&(r.top=o.top+o.height-l)}else{var c=t.left-a,d=t.left+a+i;c<o.left?r.left=o.left-c:d>o.right&&(r.left=o.left+o.width-d)}return r},t.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},t.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},t.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.t
vendor: 6,774 bytes, line 7
7ype+" `template` option must consist of exactly 1 top-level element!");return this.$tip},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var i=this;t&&((i=e(t.currentTarget).data("bs."+this.type))||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i))),t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},t.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})};var i=e.fn.tooltip;e.fn.tooltip=function(i){return this.each(function(){var n=e(this),r=n.data("bs.tooltip"),a="object"==typeof i&&i;!r&&/destroy|hide/.test(i)||(r||n.data("bs.tooltip",r=new t(this,a)),"string"==typeof i&&r[i]())})},e.fn.tooltip.Constructor=t,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=i,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.7",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),i=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=e.fn.popover;e.fn.popover=function(i){return this.each(function(){var n=e(this),r=n.data("bs.popover"),a="object"==typeof i&&i;!r&&/destroy|hide/.test(i)||(r||n.data("bs.popover",r=new t(this,a)),"string"==typeof i&&r[i]())})},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=i,this}}(jQuery),function(e){"use strict";function t(i,n){this.$body=e(document.body),this.$scrollElement=e(e(i).is(document.body)?window:i),this.options=e.extend({},t.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var n=e(this),r=n.data("bs.scrollspy"),a="object"==typeof i&&i;r||n.data("bs.scrollspy",r=new t(this,a)),"string"==typeof i&&r[i]()})}t.VERSION="3.3.7",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),r=t.data("target")||t.attr("href"),a=/^#./.test(r)&&e(r);return a&&a.length&&a.is(":visible")&&[[a[i]().top+n,r]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),r=this.offsets,a=this.targets,o=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),t>=n)return o!=(e=a[a.length-1])&&this.activate(e);if(o&&t<r[0])return this.activeTarget=null,this.clear();for(e=r.length;e--;)o!=a[e]&&t>=r[e]&&(void 0===r[e+1]||t<r[e+1])&&this.activate(a[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var i=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=e.fn.scrollspy;e.fn.scrollspy=i,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=n,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);i.call(t,t.data())})})}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var n=e(this),r=n.data("bs.tab");r||n.data("bs.tab",r=new i(this)),"string"==typeof t&&r[t]()})}var i=function(t){this.element=e(t)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.prototype.show=function(){var t=this.element,i=t.closest("ul:not(.dropdown-menu)"),n=t.data("target");if(n||(n=(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=i.find(".active:last a"),a=e.Event("hide.bs.tab",{relatedTarget:t[0]}),o=e.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(a),t.trigger(o),!o.isDefaultPrevented()&&!a.isDefaultPrevented()){var s=e(n);this.activate(t.closest("li"),i),this.activate(s,s.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},i.prototype.activate=function(t,n,r){function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var o=n.find("> .active"),s=r&&e.support.transition&&(o.length&&o.hasClass("fade")||!!n.find("> .fade").length);o.length&&s?o.one("bsTransitionEnd",a).emulateTransitionEnd(i.TRANSITION_DURATION):a(),o.removeClass("in")};var n=e.fn.tab;
7e.fn.tab=t,e.fn.tab.Constructor=i,e.fn.tab.noConflict=function(){return e.fn.tab=n,this};var r=function(i){i.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var n=e(this),r=n.data("bs.affix"),a="object"==typeof t&&t;r||n.data("bs.affix",r=new i(this,a)),"string"==typeof t&&r[t]()})}var i=function(t,n){this.options=e.extend({},i.DEFAULTS,n),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.7",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(e,t,i,n){var r=this.$target.scrollTop(),a=this.$element.offset(),o=this.$target.height();if(null!=i&&"top"==this.affixed)return r<i&&"top";if("bottom"==this.affixed)return null!=i?!(r+this.unpin<=a.top)&&"bottom":!(r+o<=e-n)&&"bottom";var s=null==this.affixed,l=s?r:a.top;return null!=i&&r<=i?"top":null!=n&&l+(s?o:t)>=e-n&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},i.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),n=this.options.offset,r=n.top,a=n.bottom,o=Math.max(e(document).height(),e(document.body).height());"object"!=typeof n&&(a=r=n),"function"==typeof r&&(r=n.top(this.$element)),"function"==typeof a&&(a=n.bottom(this.$element));var s=this.getState(o,t,r,a);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),c=e.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:o-t-a})}};var n=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=i,e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var i=e(this),n=i.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),t.call(i,n)})})}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e,t;function i(){return e.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e){return void 0===e}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function s(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var i,n=[];for(i=0;i<e.length;++i)n.push(t(e[i],i));return n}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var i in t)c(t,i)&&(e[i]=t[i]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,i,n){return Et(e,t,i,n,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function h(e){if(null==e._isValid){var i=p(e),n=t.call(i.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&i.overflow<0&&!i.empty&&!i.invalidMonth&&!i.invalidWeekday&&!i.weekdayMismatch&&!i.nullInput&&!i.invalidFormat&&!i.userInvalidated&&(!i.meridiem||i.meridiem&&n);if(e._strict&&(r=r&&0===i.charsLeftOver&&0===i.unusedTokens.length&&void 0===i.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function f(e){var t=u(NaN);return null!=e?d(p(t),e):p(t).userInvalidated=!0,t}t=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),i=t.length>>>0,n=0;n<i;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};var m=i.momentProperties=[];function g(e,t){var i,n,r;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||
vendor: 37,579 bytes, line 7
7(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=p(t)),a(t._locale)||(e._locale=t._locale),0<m.length)for(i=0;i<m.length;i++)a(r=t[n=m[i]])||(e[n]=r);return e}var v=!1;function y(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function b(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function w(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function S(e){var t=+e,i=0;return 0!==t&&isFinite(t)&&(i=w(t)),i}function x(e,t,i){var n,r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(n=0;n<r;n++)(i&&e[n]!==t[n]||!i&&S(e[n])!==S(t[n]))&&o++;return o+a}function C(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return d(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){for(var r,a=[],o=0;o<arguments.length;o++){if(r="","object"==typeof arguments[o]){for(var s in r+="\n["+o+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[o];a.push(r)}C(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var k,E={};function M(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),E[e]||(C(t),E[e]=!0)}function I(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e,t){var i,n=d({},e);for(i in t)c(t,i)&&(r(e[i])&&r(t[i])?(n[i]={},d(n[i],e[i]),d(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)c(e,i)&&!c(t,i)&&r(e[i])&&(n[i]=d({},n[i]));return n}function L(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)c(e,t)&&i.push(t);return i};var D={};function P(e,t){var i=e.toLowerCase();D[i]=D[i+"s"]=D[t]=e}function $(e){return"string"==typeof e?D[e]||D[e.toLowerCase()]:void 0}function j(e){var t,i,n={};for(i in e)c(e,i)&&(t=$(i))&&(n[t]=e[i]);return n}var _={};function R(e,t){_[e]=t}function O(e,t,i){var n=""+Math.abs(e),r=t-n.length;return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},B={};function U(e,t,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),e&&(B[e]=r),t&&(B[t[0]]=function(){return O(r.apply(this,arguments),t[1],t[2])}),i&&(B[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=z(t,e.localeData()),H[t]=H[t]||function(e){var t,i,n,r=e.match(F);for(t=0,i=r.length;t<i;t++)B[r[t]]?r[t]=B[r[t]]:r[t]=(n=r[t]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(t){var n,a="";for(n=0;n<i;n++)a+=I(r[n])?r[n].call(t,e):r[n];return a}}(t),H[t](e)):e.localeData().invalidDate()}function z(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;0<=i&&N.test(e);)e=e.replace(N,n),N.lastIndex=0,i-=1;return e}var q=/\d/,Y=/\d\d/,W=/\d{3}/,G=/\d{4}/,X=/[+-]?\d{6}/,Q=/\d\d?/,J=/\d\d\d\d?/,Z=/\d\d\d\d\d\d?/,K=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ie=/\d+/,ne=/[+-]?\d+/,re=/Z|[+-]\d\d:?\d\d/gi,ae=/Z|[+-]\d\d(?::?\d\d)?/gi,oe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,se={};function le(e,t,i){se[e]=I(t)?t:function(e,n){return e&&i?i:t}}function ce(e,t){return c(se,e)?se[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,r){return t||i||n||r})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ue={};function pe(e,t){var i,n=t;for("string"==typeof e&&(e=[e]),o(t)&&(n=function(e,i){i[t]=S(e)}),i=0;i<e.length;i++)ue[e[i]]=n}function he(e,t){pe(e,function(e,i,n,r){n._w=n._w||{},t(e,n._w,n,r)})}var fe=0,me=1,ge=2,ve=3,ye=4,be=5,we=6,Se=7,xe=8;function Ce(e){return Te(e)?366:365}function Te(e){return e%4==0&&e%100!=0||e%400==0}U("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),P("year","y"),R("year",1),le("Y",ne),le("YY",Q,Y),le("YYYY",ee,G),le("YYYYY",te,X),le("YYYYYY",te,X),pe(["YYYYY","YYYYYY"],fe),pe("YYYY",function(e,t){t[fe]=2===e.length?i.parseTwoDigitYear(e):S(e)}),pe("YY",function(e,t){t[fe]=i.parseTwoDigitYear(e)}),pe("Y",function(e,t){t[fe]=parseInt(e,10)}),i.parseTwoDigitYear=function(e){return S(e)+(68<S(e)?1900:2e3)};var ke,Ee=Me("FullYear",!0);function Me(e,t){return function(n){return null!=n?(Ae(this,e,n),i.updateOffset(this,t),this):Ie(this,e)}}function Ie(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ae(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&Te(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),Le(i,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](i))}function Le(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=(t%12+12)%12;return e+=(t-i)/12,1===i?Te(e)?29:28:31-i%7%2}ke=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),P("month","M"),R("month",8),le("M",Q),le("MM",Q,Y),le("MMM",function(e,t){return t.monthsShortRegex(e)}),le("MMMM",function(e,t){return t.monthsRegex(e)}),pe(["M","MM"],function(e,t){t[me]=S(e)-1}),pe(["MMM","MMMM"],function(e,t,i,n){var r=i._locale.monthsParse(e,n,i._strict);null!=r?t[me]=r:p(i).invalidMonth=e});var De=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),$e="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function je(e,t){var i;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=S(t);else if(!o(t=e.localeData().monthsParse(t)))return e;return i=Math.min(e.date(),Le(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i),e}function _e(e){return null!=e?(je(this,e),i.updateOffset(this,!0),this):Ie(this,"Month")}var Re=oe,Oe=oe;function Fe(){function e(e,t){return t.length-e.length}var t,i,n=[],r=[],a=[];for(t=0;t<12;t++)i=u([2e3,t]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),a.push(this.months(i,"")),a.push(this.monthsShort(i,""));for(n.sort(e),r.sort(e),a.sort(e),t=0;t<12;t++)n[t]=de(n[t]),r[t]=de(r[t]);for(t=0;t<24;t++)a[t]=de(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Ne(e){var t;if(e<100&&0<=e){var i=Array.prototype.slice.call(arguments);i[0]=e+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function He(e,t,i){var n=7+t-i;return-(7+Ne(e,0,n).getUTCDay()-t)%7+n-1}function Be(e,t,i,n,r){var a,o,s=1+7*(t-1)+(7+i-n)%7+He(e,n,r);return o=s<=0?Ce(a=e-1)+s:s>Ce(e)?(a=e+1,s-Ce(e)):(a=e,s),{year:a,dayOfYear:o}}function Ue(e,t,i){var n,r,a=He(e.year(),t,i),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?n=o+Ve(r=e.year()-1,t,i):o>Ve(e.year(),t,i)?(n=o-Ve(e.year(),t,i),r=e.year()+1):(r=e.year(),n=o),{week:n,year:r}}function Ve(e,t,i){var n=He(e,t,i),r=He(e+1,t,i);return(Ce(e)-n+r)/7}function ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),R("week",5),R("isoWeek",5),le("w",Q),le("ww",Q,Y),le("W",Q),le("WW",Q,Y),he(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=S(e)}),U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),le("d",Q),le("e",Q),le("E",Q),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),he(["dd","ddd","dddd"],function(e,t,i,n){var r=i._locale.weekdaysParse(e,n,i._strict);null!=r?t.d=r:p(i).invalidWeekday=e}),he(["d","e","E"],function(e,t,i,n){t[n]=S(e)});var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ye="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ge=oe,Xe=oe,Qe=oe;function Je(){function e(e,t){return t.length-e.length}var t,i,n,r,a,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)i=u([2e3,1]).day(t),n=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),a=this.weekdays(i,""),o.push(n),s.push(r),l.push(a),c.push(n),c.push(r),c.push(a);for(o.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=de(s[t]),l[t]=de(l[t]),c[t]=de(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ze(){return this.hours()%12||12}function Ke(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Ze),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+Ze.apply(this)+O(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Ze.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+O(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),P("hour","h"),R("hour",13),le("a",et),le("A",et),le("H",Q),le("h",Q),le("k",Q),le("HH",Q,Y),le("hh",Q,Y),le("kk",Q,Y),le("hmm",J),le("hmmss",Z),le("Hmm",J),le("Hmmss",Z),pe(["H","HH"],ve),pe(["k","kk"],function(e,t,i){var n=S(e);t[ve]=24===n?0:n}),pe(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),pe(["h","hh"],function(e,t,i){t[ve]=S(e),p(i).bigHour=!0}),pe("hmm",function(e,t,i){var n=e.length-2;t[ve]=S(e.substr(0,n)),t[ye]=S(e.substr(n)),p(i).bigHour=!0}),pe("hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[ve]=S(e.substr(0,n)),t[ye]=S(e.substr(n,2)),t[be]=S(e.substr(r)),p(i).bigHour=!0}),pe("Hmm",function(e,t,i){var n=e.length-2;t[ve]=S(e.substr(0,n)),t[ye]=S(e.substr(n))}),pe("Hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[ve]=S(e.substr(0,n)),t[ye]=S(e.substr(n,2)),t[be]=S(e.substr(r))});var tt,it=Me("Hours",!0),nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Pe,monthsShort:$e,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:We,weekdaysShort:Ye,meridiemParse:/[ap]\.?m?\.?/i},rt={},at={};function ot(e){return e?e.toLowerCase().replace("_","-"):e}function st(e){var t=null;if(!rt[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=tt._abbr,require("./locale/"+e),lt(t)}catch(e){}return rt[e]}function lt(e,t){var i;return e&&((i=a(t)?dt(e):ct(e,t))?tt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tt._abbr}function ct(e,t){if(null===t)return delete rt[e],null;var i,n=nt;if(t.abbr=e,null!=rt[e])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])n=rt[t.parentLocale]._config;else{if(null==(i=st(t.parentLocale)))return at[t.parentLocale]||(at[t.parentLocale]=[]),at[t.parentLocale].push({name:e,config:t}),null;n=i._config}return rt[e]=new L(A(n,t)),at[e]&&at[e].forEach(function(e){ct(e.name,e.config)}),lt(e),rt[e]}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!n(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,i,n,r,a=0;a<e.length;){for(t=(r=ot(e[a]).split("-")).length,i=(i=ot(e[a+1]))?i.split("-"):null;0<t;){if(n=st(r.slice(0,t).join("-")))return n;if(i&&i.length>=t&&x(r,i,!0)>=t-1)break;t--}a++}return tt}(e)}function ut(e){var t,i=e._a;return i&&-2===p(e).overflow&&(t=i[me]<0||11<i[me]?me:i[ge]<1||i[ge]>Le(i[fe],i[me])?ge:i[ve]<0||24<i[ve]||24===i[ve]&&(0!==i[ye]||0!==i[be]||0!==i[we])?ve:i[ye]<0||59<i[ye]?ye:i[be]<0||59<i[be]?be:i[we]<0||999<i[we]?we:-1,p(e)._overflowDayOfYear&&(t<fe||ge<t)&&(t=ge),p(e)._overflowWeeks&&-1===t&&(t=Se),p(e)._overflowWeekday&&-1===t&&(t=xe),p(e).overflow=t),e}function pt(e,t,i){return null!=e?e:null!=t?t:i}function ht(e){var t,n,r,a,o,s=[];if(!e._d){var l,c;for(l=e,c=new Date(i.now()),r=l._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],e._w&&null==e._a[ge]&&null==e._a[me]&&function(e){var t,i,n,r,a,o,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,o=4,i=pt(t.GG,e._a[fe],Ue(Mt(),1,4).year),n=pt(t.W,1),((r=pt(t.E,1))<1||7<r)&&(l=!0);else{a=e._locale._week.dow,o=e._locale._week.doy;var c=Ue(Mt(),a,o);i=pt(t.gg,e._a[fe],c.year),n=pt(t.w,c.week),null!=t.d?((r=t.d)<0||6<r)&&(l=!0):null!=t.e?(r=t.e+a,(t.e<0||6<t.e)&&(l=!0)):r=a}n<1||n>Ve(i,a,o)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=Be(i,n,r,a,o),e._a[fe]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=pt(e._a[fe],r[fe]),(e._dayOfYear>Ce(o)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ne(o,0,e._dayOfYear),e._a[me]=n.getUTCMonth(),e._a[ge]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ve]&&0===e._a[ye]&&0===e._a[be]&&0===e._a[we]&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?Ne:function(e,t,i,n,r,a,o){var s;return e<100&&0<=e?(s=new Date(e+400,t,i,n,r,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,n,r,a,o),s}).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(p(e).weekdayMismatch=!0)}}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],yt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],bt=/^\/?Date\((\-?\d+)/i;function wt(e){var t,i,n,r,a,o,s=e._i,l=ft.exec(s)||mt.exec(s);if(l){for(p(e).iso=!0,t=0,i=vt.length;t<i;t++)if(vt[t][1].exec(l[1])){r=vt[t][0],n=!1!==vt[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,i=yt.length;t<i;t++)if(yt[t][1].exec(l[3])){a=(l[2]||" ")+yt[t][0];break}if(null==a)return void(e._isValid=!1)}if(!n&&null!=a)return void(e._isValid=!1);if(l[4]){if(!gt.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=r+(a||"")+(o||""),Tt(e)}else e._isValid=!1}var St=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;var xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ct(e){var t,i,n,r=St.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(r){var a=function(e,t,i,n,r,a){var o=[function(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}(e),$e.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(r,10)];return a&&o.push(parseInt(a,10)),o}(r[4],r[3],r[2],r[5],r[6],r[7]);if(i=a,n=e,(t=r[1])&&Ye.indexOf(t)!==new Date(i[0],i[1],i[2]).getDay()&&(p(n).weekdayMismatch=!0,!(n._isValid=!1)))return;e._a=a,e._tzm=function(e,t,i){if(e)return xt[e];if(t)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(r[8],r[9],r[10]),e._d=Ne.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Tt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],p(e).empty=!0;var t,n,r,a,o,s,l,d,u=""+e._i,h=u.length,f=0;for(r=z(e._f,e._locale).match(F)||[],t=0;t<r.length;t++)a=r[t],(n=(u.match(ce(a,e))||[])[0])&&(0<(o=u.substr(0,u.indexOf(n))).length&&p(e).unusedInput.push(o),u=u.slice(u.indexOf(n)+n.length),f+=n.length),B[a]?(n?p(e).empty=!1:p(e).unusedTokens.push(a),s=a,d=e,null!=(l=n)&&c(ue,s)&&ue[s](l,d._a,d,s)):e._strict&&!n&&p(e).unusedTokens.push(a);p(e).charsLeftOver=h-f,0<u.length&&p(e).unusedInput.push(u),e._a[ve]<=12&&!0===p(e).bigHour&&0<e._a[ve]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[ve]=function(e,t,i){var n;return null==i?t:null!=e.meridiemHour?e.meridiemHour(t,i):(null!=e.isPM&&((n=e.isPM(i))&&t<12&&(t+=12),n||12!==t||(t=0)),t)}(e._locale,e._a[ve],e._meridiem),ht(e),ut(e)}else Ct(e);else wt(e)}function kt(e){var t,c,u,m,v=e._i,w=e._f;return e._locale=e._locale||dt(e._l),null===v||void 0===w&&""===v?f({nullInput:!0}):("string"==typeof v&&(e._i=v=e._locale.preparse(v)),b(v)?new y(ut(v)):(s(v)?e._d=v:n(w)?function(e){var t,i,n,r,a;if(0===e._f.length)return p(e).invalidFormat=!0,e._d=new Date(NaN);for(r=0;r<e._f.length;r++)a=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Tt(t),h(t)&&(a+=p(t).charsLeftOver,a+=10*p(t).unusedTokens.length,p(t).score=a,(null==n||a<n)&&(n=a,i=t));d(e,i||t)}(e):w?Tt(e):a(c=(t=e)._i)?t._d=new Date(i.now()):s(c)?t._d=new Date(c.valueOf()):"string"==typeof c?(u=t,null===(m=bt.exec(u._i))?(wt(u),!1===u._isValid&&(delete u._isValid,Ct(u),!1===u._isValid&&(delete u._isValid,i.createFromInputFallback(u)))):u._d=new Date(+m[1])):n(c)?(t._a=l(c.slice(0),function(e){return parseInt(e,10)}),ht(t)):r(c)?function(e){if(!e._d){var t=j(e._i);e._a=l([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ht(e)}}(t):o(c)?t._d=new Date(c):i.createFromInputFallback(t),h(e)||(e._d=null),e))}function Et(e,t,i,a,o){var s,l={};return!0!==i&&!1!==i||(a=i,i=void 0),(r(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||n(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=i,l._i=e,l._f=t,l._strict=a,(s=new y(ut(kt(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Mt(e,t,i,n){return Et(e,t,i,n,!1)}i.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var It=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Mt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:f()}),At=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Mt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:f()});function Lt(e,t){var i,r;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return Mt();for(i=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](i)||(i=t[r]);return i}var Dt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pt(e){var t=j(e),i=t.year||0,n=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===ke.call(Dt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var i=!1,n=0;n<Dt.length;++n)if(e[Dt[n]]){if(i)return!1;parseFloat(e[Dt[n]])!==S(e[Dt[n]])&&(i=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*l+1e3*s*60*60,this._days=+o+7*a,this._months=+r+3*n+12*i,this._data={},this._locale=dt(),this._bubble()}function $t(e){return e instanceof Pt}function jt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function _t(e,t){U(e,0,0,function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+O(~~(e/60),2)+t+O(~~e%60,2)})}_t("Z",":"),_t("ZZ",""),le("Z",ae),le("ZZ",ae),pe(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=Ot(ae,e)});var Rt=/([\+\-]|\d\d)/gi;function Ot(e,t){var i=(t||"").match(e);if(null===i)return null;var n=((i[i.length-1]||[])+"").match(Rt)||["-",0,0],r=60*n[1]+S(n[2]);return 0===r?0:"+"===n[0]?r:-r}function Ft(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(b(e)||s(e)?e.valueOf():Mt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Mt(e).local()}function Nt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ht(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Bt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ut=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Vt(e,t){var i,n,r,a=e,s=null;return $t(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:o(e)?(a={},t?a[t]=e:a.milliseconds=e):(s=Bt.exec(e))?(i="-"===s[1]?-1:1,a={y:0,d:S(s[ge])*i,h:S(s[ve])*i,m:S(s[ye])*i,s:S(s[be])*i,ms:S(jt(1e3*s[we]))*i}):(s=Ut.exec(e))?(i="-"===s[1]?-1:1,a={y:zt(s[2],i),M:zt(s[3],i),w:zt(s[4],i),d:zt(s[5],i),h:zt(s[6],i),m:zt(s[7],i),s:zt(s[8],i)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=function(e,t){var i;return e.isValid()&&t.isValid()?(t=Ft(t,e),e.isBefore(t)?i=qt(e,t):((i=qt(t,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}(Mt(a.from),Mt(a.to)),(a={}).ms=r.milliseconds,a.M=r.months),n=new Pt(a),$t(e)&&c(e,"_locale")&&(n._locale=e._locale),n}function zt(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function qt(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Yt(e,t){return function(i,n){var r;return null===n||isNaN(+n)||(M(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),Wt(this,Vt(i="string"==typeof i?+i:i,n),e),this}}function Wt(e,t,n,r){var a=t._milliseconds,o=jt(t._days),s=jt(t._months);e.isValid()&&(r=null==r||r,s&&je(e,Ie(e,"Month")+s*n),o&&Ae(e,"Date",Ie(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&i.updateOffset(e,o||s))}Vt.fn=Pt.prototype,Vt.invalid=function(){return Vt(NaN)};var Gt=Yt(1,"add"),Xt=Yt(-1,"subtract");function Qt(e,t){var i=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(i,"months");return-(i+(t-n<0?(t-n)/(n-e.clone().add(i-1,"months")):(t-n)/(e.clone().add(i+1,"months")-n)))||0}function Jt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=dt(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Zt=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Kt(){return this._locale}var ei=126227808e5;function ti(e,t){return(e%t+t)%t}function ii(e,t,i){return e<100&&0<=e?new Date(e+400,t,i)-ei:new Date(e,t,i).valueOf()}function ni(e,t,i){return e<100&&0<=e?Date.UTC(e+400,t,i)-ei:Date.UTC(e,t,i)}function ri(e,t){U(0,[e,e.length],0,t)}function ai(e,t,i,n,r){var a;return null==e?Ue(this,n,r).year:((a=Ve(e,n,r))<t&&(t=a),function(e,t,i,n,r){var a=Be(e,t,i,n,r),o=Ne(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,e,t,i,n,r))}U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ri("gggg","weekYear"),ri("ggggg","weekYear"),ri("GGGG","isoWeekYear"),ri("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),le("G",ne),le("g",ne),le("GG",Q,Y),le("gg",Q,Y),le("GGGG",ee,G),le("gggg",ee,G),le("GGGGG",te,X),le("ggggg",te,X),he(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=S(e)}),he(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),P("quarter","Q"),R("quarter",7),le("Q",q),pe("Q",function(e,t){t[me]=3*(S(e)-1)}),U("D",["DD",2],"Do","date"),P("date","D"),R("date",9),le("D",Q),le("DD",Q,Y),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pe(["D","DD"],ge),pe("Do",function(e,t){t[ge]=S(e.match(Q)[0])});var oi=Me("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),R("dayOfYear",4),le("DDD",K),le("DDDD",W),pe(["DDD","DDDD"],function(e,t,i){i._dayOfYear=S(e)}),U("m",["mm",2],0,"minute"),P("minute","m"),R("minute",14),le("m",Q),le("mm",Q,Y),pe(["m","mm"],ye);var si=Me("Minutes",!1);U("s",["ss",2],0,"second"),P("second","s"),R("second",15),le("s",Q),le("ss",Q,Y),pe(["s","ss"],be);var li,ci=Me("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),R("millisecond",16),le("S",K,q),le("SS",K,Y),le("SSS",K,W),li="SSSS";li.length<=9;li+="S")le(li,ie);function di(e,t){t[we]=S(1e3*("0."+e))}for(li="S";li.length<=9;li+="S")pe(li,di);var ui=Me("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var pi=y.prototype;function hi(e){return e}pi.add=Gt,pi.calendar=function(e,t){var n=e||Mt(),r=Ft(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",o=t&&(I(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Mt(n)))},pi.clone=function(){return new y(this)},pi.diff=function(e,t,i){var n,r,a;if(!this.isValid())return NaN;if(!(n=Ft(e,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=$(t)){case"year":a=Qt(this,n)/12;break;case"month":a=Qt(this,n);break;case"quarter":a=Qt(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-r)/864e5;break;case"week":a=(this-n-r)/6048e5;break;default:a=this-n}return i?a:w(a)},pi.endOf=function(e){var t;if(void 0===(e=$(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?ni:ii;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-ti(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-ti(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-ti(t,1e3)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},pi.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},pi.from=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Mt(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},pi.fromNow=function(e){return this.from(Mt(),e)},pi.to=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Mt(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},pi.toNow=function(e){return this.to(Mt(),e)},pi.get=function(e){return I(this[e=$(e)])?this[e]():this},pi.invalidAt=function(){return p(this).overflow},pi.isAfter=function(e,t){var i=b(e)?e:Mt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=$(t)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())},pi.isBefore=function(e,t){var i=b(e)?e:Mt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=$(t)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())},pi.isBetween=function(e,t,i,n){var r=b(e)?e:Mt(e),a=b(t)?t:Mt(t);return!!(this.isValid()&&r.isValid()&&a.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(a,i):!this.isAfter(a,i))},pi.isSame=function(e,t){var i,n=b(e)?e:Mt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=$(t)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))},pi.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},pi.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},pi.isValid=function(){return h(this)},pi.lang=Zt,pi.locale=Jt,pi.localeData=Kt,pi.max=At,pi.min=It,pi.parsingFlags=function(){return d({},p(this))},pi.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t=[];for(var i in e)t.push({unit:i,priority:_[i]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=j(e)),n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit]);else if(I(this[e=$(e)]))return this[e](t);return this},pi.startOf=function(e){var t;if(void 0===(e=$(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?ni:ii;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ti(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=ti(t,6e4);break;case"second":t=this._d.valueOf(),t-=ti(t,1e3)}return this._d.setTime(t),i.updateOffset(this,!0),this},pi.subtract=Xt,pi.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},pi.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},pi.toDate=function(){return new Date(this.valueOf())},pi.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,i=t?this.clone().utc():this;return i.year()<0||9999<i.year()?V(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(i,"Z")):V(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},pi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var i="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=t+'[")]';return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+r)},pi.toJSON=function(){return this.isValid()?this.toISOString():null},pi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},pi.unix=function(){return Math.floor(this.valueOf()/1e3)},pi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},pi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},pi.year=Ee,pi.isLeapYear=function(){return Te(this.year())},pi.weekYear=function(e){return ai.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},pi.isoWeekYear=function(e){return ai.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},pi.quarter=pi.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},pi.month=_e,pi.daysInMonth=function(){return Le(this.year(),this.month())},pi.week=pi.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},pi.isoWeek=pi.isoWeeks=function(e){var t=Ue(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},pi.weeksInYear=function(){var e=this.localeData()._week;return Ve(this.year(),e.dow,e.doy)},pi.isoWeeksInYear=function(){return Ve(this.year(),1,4)},pi.date=oi,pi.day=pi.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,i,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,i=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d")):n},pi.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},pi.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,i,n=(t=e,i=this.localeData(),"string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?n:n-7)},pi.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},pi.hour=pi.hours=it,pi.minute=pi.minutes=si,pi.second=pi.seconds=ci,pi.millisecond=pi.milliseconds=ui,pi.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?a:Nt(this);if("string"==typeof e){if(null===(e=Ot(ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Nt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Wt(this,Vt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this},pi.utc=function(e){return this.utcOffset(0,e)},pi.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},pi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ot(re,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},pi.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Mt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},pi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},pi.isLocal=function(){return!!this.isValid()&&!this._isUTC},pi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},pi.isUtc=Ht,pi.isUTC=Ht,pi.zoneAbbr=function(){return this._isUTC?"UTC":""},pi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},pi.dates=T("dates accessor is deprecated. Use date instead.",oi),pi.months=T("months accessor is deprecated. Use month instead",_e),pi.years=T("years accessor is deprecated. Use year instead",Ee),pi.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),pi.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};
vendor: 10,176 bytes, line 7
7if(g(e,this),(e=kt(e))._a){var t=e._isUTC?u(e._a):Mt(e._a);this._isDSTShifted=this.isValid()&&0<x(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var fi=L.prototype;function mi(e,t,i,n){var r=dt(),a=u().set(n,t);return r[i](a,e)}function gi(e,t,i){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return mi(e,t,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=mi(e,n,i,"month");return r}function vi(e,t,i,n){"boolean"==typeof e?o(t)&&(i=t,t=void 0):(t=e,e=!1,o(i=t)&&(i=t,t=void 0)),t=t||"";var r,a=dt(),s=e?a._week.dow:0;if(null!=i)return mi(t,(i+s)%7,n,"day");var l=[];for(r=0;r<7;r++)l[r]=mi(t,(r+s)%7,n,"day");return l}fi.calendar=function(e,t,i){var n=this._calendar[e]||this._calendar.sameElse;return I(n)?n.call(t,i):n},fi.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},fi.invalidDate=function(){return this._invalidDate},fi.ordinal=function(e){return this._ordinal.replace("%d",e)},fi.preparse=hi,fi.postformat=hi,fi.relativeTime=function(e,t,i,n){var r=this._relativeTime[i];return I(r)?r(e,t,i,n):r.replace(/%d/i,e)},fi.pastFuture=function(e,t){var i=this._relativeTime[0<e?"future":"past"];return I(i)?i(t):i.replace(/%s/i,t)},fi.set=function(e){var t,i;for(i in e)I(t=e[i])?this[i]=t:this["_"+i]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},fi.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||De).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},fi.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[De.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},fi.monthsParse=function(e,t,i){var n,r,a;if(this._monthsParseExact)return function(e,t,i){var n,r,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=u([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=ke.call(this._shortMonthsParse,o))?r:null:-1!==(r=ke.call(this._longMonthsParse,o))?r:null:"MMM"===t?-1!==(r=ke.call(this._shortMonthsParse,o))||-1!==(r=ke.call(this._longMonthsParse,o))?r:null:-1!==(r=ke.call(this._longMonthsParse,o))||-1!==(r=ke.call(this._shortMonthsParse,o))?r:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=u([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}},fi.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Oe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},fi.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},fi.week=function(e){return Ue(e,this._week.dow,this._week.doy).week},fi.firstDayOfYear=function(){return this._week.doy},fi.firstDayOfWeek=function(){return this._week.dow},fi.weekdays=function(e,t){var i=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ze(i,this._week.dow):e?i[e.day()]:i},fi.weekdaysMin=function(e){return!0===e?ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},fi.weekdaysShort=function(e){return!0===e?ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},fi.weekdaysParse=function(e,t,i){var n,r,a;if(this._weekdaysParseExact)return function(e,t,i){var n,r,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=u([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=ke.call(this._weekdaysParse,o))?r:null:"ddd"===t?-1!==(r=ke.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=ke.call(this._minWeekdaysParse,o))?r:null:"dddd"===t?-1!==(r=ke.call(this._weekdaysParse,o))||-1!==(r=ke.call(this._shortWeekdaysParse,o))||-1!==(r=ke.call(this._minWeekdaysParse,o))?r:null:"ddd"===t?-1!==(r=ke.call(this._shortWeekdaysParse,o))||-1!==(r=ke.call(this._weekdaysParse,o))||-1!==(r=ke.call(this._minWeekdaysParse,o))?r:null:-1!==(r=ke.call(this._minWeekdaysParse,o))||-1!==(r=ke.call(this._weekdaysParse,o))||-1!==(r=ke.call(this._shortWeekdaysParse,o))?r:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=u([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}},fi.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Ge),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},fi.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},fi.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},fi.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},fi.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},lt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=T("moment.lang is deprecated. Use moment.locale instead.",lt),i.langData=T("moment.langData is deprecated. Use moment.localeData instead.",dt);var yi=Math.abs;function bi(e,t,i,n){var r=Vt(t,i);return e._milliseconds+=n*r._milliseconds,e._days+=n*r._days,e._months+=n*r._months,e._bubble()}function wi(e){return e<0?Math.floor(e):Math.ceil(e)}function Si(e){return 4800*e/146097}function xi(e){return 146097*e/4800}function Ci(e){return function(){return this.as(e)}}var Ti=Ci("ms"),ki=Ci("s"),Ei=Ci("m"),Mi=Ci("h"),Ii=Ci("d"),Ai=Ci("w"),Li=Ci("M"),Di=Ci("Q"),Pi=Ci("y");function $i(e){return function(){return this.isValid()?this._data[e]:NaN}}var ji=$i("milliseconds"),_i=$i("seconds"),Ri=$i("minutes"),Oi=$i("hours"),Fi=$i("days"),Ni=$i("months"),Hi=$i("years"),Bi=Math.round,Ui={ss:44,s:45,m:45,h:22,d:26,M:11},Vi=Math.abs;function zi(e){return(0<e)-(e<0)||+e}function qi(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i=Vi(this._milliseconds)/1e3,n=Vi(this._days),r=Vi(this._months);t=w((e=w(i/60))/60),i%=60,e%=60;var a=w(r/12),o=r%=12,s=n,l=t,c=e,d=i?i.toFixed(3).replace(/\.?0+$/,""):"",u=this.asSeconds();if(!u)return"P0D";var p=u<0?"-":"",h=zi(this._months)!==zi(u)?"-":"",f=zi(this._days)!==zi(u)?"-":"",m=zi(this._milliseconds)!==zi(u)?"-":"";return p+"P"+(a?h+a+"Y":"")+(o?h+o+"M":"")+(s?f+s+"D":"")+(l||c||d?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(d?m+d+"S":"")}var Yi=Pt.prototype;return Yi.isValid=function(){return this._isValid},Yi.abs=function(){var e=this._data;return this._milliseconds=yi(this._milliseconds),this._days=yi(this._days),this._months=yi(this._months),e.milliseconds=yi(e.milliseconds),e.seconds=yi(e.seconds),e.minutes=yi(e.minutes),e.hours=yi(e.hours),e.months=yi(e.months),e.years=yi(e.years),this},Yi.add=function(e,t){return bi(this,e,t,1)},Yi.subtract=function(e,t){return bi(this,e,t,-1)},Yi.as=function(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=$(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+Si(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(xi(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},Yi.asMilliseconds=Ti,Yi.asSeconds=ki,Yi.asMinutes=Ei,Yi.asHours=Mi,Yi.asDays=Ii,Yi.asWeeks=A
vendor: 4,489 bytes, lines 7-23
7i,Yi.asMonths=Li,Yi.asQuarters=Di,Yi.asYears=Pi,Yi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Yi._bubble=function(){var e,t,i,n,r,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return 0<=a&&0<=o&&0<=s||a<=0&&o<=0&&s<=0||(a+=864e5*wi(xi(s)+o),s=o=0),l.milliseconds=a%1e3,e=w(a/1e3),l.seconds=e%60,t=w(e/60),l.minutes=t%60,i=w(t/60),l.hours=i%24,s+=r=w(Si(o+=w(i/24))),o-=wi(xi(r)),n=w(s/12),s%=12,l.days=o,l.months=s,l.years=n,this},Yi.clone=function(){return Vt(this)},Yi.get=function(e){return e=$(e),this.isValid()?this[e+"s"]():NaN},Yi.milliseconds=ji,Yi.seconds=_i,Yi.minutes=Ri,Yi.hours=Oi,Yi.days=Fi,Yi.weeks=function(){return w(this.days()/7)},Yi.months=Ni,Yi.years=Hi,Yi.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,i,n,r,a,o,s,l,c,d,u=this.localeData(),p=(t=!e,i=u,n=Vt(this).abs(),r=Bi(n.as("s")),a=Bi(n.as("m")),o=Bi(n.as("h")),s=Bi(n.as("d")),l=Bi(n.as("M")),c=Bi(n.as("y")),(d=r<=Ui.ss&&["s",r]||r<Ui.s&&["ss",r]||a<=1&&["m"]||a<Ui.m&&["mm",a]||o<=1&&["h"]||o<Ui.h&&["hh",o]||s<=1&&["d"]||s<Ui.d&&["dd",s]||l<=1&&["M"]||l<Ui.M&&["MM",l]||c<=1&&["y"]||["yy",c])[2]=t,d[3]=0<+this,d[4]=i,function(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}.apply(null,d));return e&&(p=u.pastFuture(+this,p)),u.postformat(p)},Yi.toISOString=qi,Yi.toString=qi,Yi.toJSON=qi,Yi.locale=Jt,Yi.localeData=Kt,Yi.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qi),Yi.lang=Zt,U("X",0,0,"unix"),U("x",0,0,"valueOf"),le("x",ne),le("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e,10))}),pe("x",function(e,t,i){i._d=new Date(S(e))}),i.version="2.24.0",e=Mt,i.fn=pi,i.min=function(){return Lt("isBefore",[].slice.call(arguments,0))},i.max=function(){return Lt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=u,i.unix=function(e){return Mt(1e3*e)},i.months=function(e,t){return gi(e,t,"months")},i.isDate=s,i.locale=lt,i.invalid=f,i.duration=Vt,i.isMoment=b,i.weekdays=function(e,t,i){return vi(e,t,i,"weekdays")},i.parseZone=function(){return Mt.apply(null,arguments).parseZone()},i.localeData=dt,i.isDuration=$t,i.monthsShort=function(e,t){return gi(e,t,"monthsShort")},i.weekdaysMin=function(e,t,i){return vi(e,t,i,"weekdaysMin")},i.defineLocale=ct,i.updateLocale=function(e,t){if(null!=t){var i,n,r=nt;null!=(n=st(e))&&(r=n._config),(i=new L(t=A(r,t))).parentLocale=rt[e],rt[e]=i,lt(e)}else null!=rt[e]&&(null!=rt[e].parentLocale?rt[e]=rt[e].parentLocale:null!=rt[e]&&delete rt[e]);return rt[e]},i.locales=function(){return k(rt)},i.weekdaysShort=function(e,t,i){return vi(e,t,i,"weekdaysShort")},i.normalizeUnits=$,i.relativeTimeRounding=function(e){return void 0===e?Bi:"function"==typeof e&&(Bi=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Ui[e]&&(void 0===t?Ui[e]:(Ui[e]=t,"s"===e&&(Ui.ss=t-1),!0))},i.calendarFormat=function(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},i.prototype=pi,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}), 8/** 9 * Timeago is a jQuery plugin that makes it easy to support automatically 10 * updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago"). 11 * 12 * @name timeago 13 * @version 1.5.4 14 * @requires jQuery v1.2.3+ 15 * @author Ryan McGeary 16 * @license MIT License - http://www.opensource.org/licenses/mit-license.php 17 * 18 * For usage and examples, visit: 19 * http://timeago.yarp.com/ 20 * 21 * Copyright (c) 2008-2017, Ryan McGeary (ryan -[at]- mcgeary [*dot*] org) 22 */ 23function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&"object"==typeof module.exports?e(require("jquery")):e(jQuery)}(function(e){e.timeago=function(t){return t instanceof Date?r(t):r("string"==typeof t?e.timeago.parse(t):"number"==typeof t?new Date(t):e.timeago.datetime(t))};var t=e.timeago;e.extend(e.timeago,{settings:{refreshMillis:6e4,currentDateOverride:null,allowPast:!0,allowFuture:!1,localeTitle:!1,cutoff:0,autoDispose:!0,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",inPast:"any moment now",
23seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]}},inWords:function(t){if(!this.settings.allowPast&&!this.settings.allowFuture)throw"timeago allowPast and allowFuture settings can not both be set to false.";var i=this.settings.strings,n=i.prefixAgo,r=i.suffixAgo;if(this.settings.allowFuture&&t<0&&(n=i.prefixFromNow,r=i.suffixFromNow),!this.settings.allowPast&&t>=0)return this.settings.strings.inPast;var a=Math.abs(t)/1e3,o=a/60,s=o/60,l=s/24,c=l/365;function d(n,r){var a=e.isFunction(n)?n(r,t):n,o=i.numbers&&i.numbers[r]||r;return a.replace(/%d/i,o)}if(a<90)return"Upravo objavljeno";var u=a<45&&d(i.seconds,Math.round(a))||a<90&&d(i.minute,1)||o<45&&d(i.minutes,Math.round(o))||o<90&&d(i.hour,1)||s<24&&d(i.hours,Math.round(s))||l<30&&d(i.days,Math.round(l))||l<45&&d(i.month,1)||l<365&&d(i.months,Math.round(l/30))||c<1.5&&d(i.year,1)||d(i.years,Math.round(c)),p=i.wordSeparator||"";return void 0===i.wordSeparator&&(p=" "),e.trim([n,u,r].join(p))},parse:function(t){var i=e.trim(t);return i=(i=(i=(i=(i=i.replace(/\.\d+/,"")).replace(/-/,"/").replace(/-/,"/")).replace(/T/," ").replace(/Z/," UTC")).replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2")).replace(/([\+\-]\d\d)$/," $100"),new Date(i)},datetime:function(i){var n=t.isTime(i)?e(i).attr("datetime"):e(i).attr("title");return t.parse(n)},isTime:function(t){return"time"===e(t).get(0).tagName.toLowerCase()}});var i={init:function(){i.dispose.call(this);var r=e.proxy(n,this);r();var a=t.settings;a.refreshMillis>0&&(this._timeagoInterval=setInterval(r,a.refreshMillis))},update:function(i){var r=i instanceof Date?i:t.parse(i);e(this).data("timeago",{datetime:r}),t.settings.localeTitle&&e(this).attr("title",r.toLocaleString()),n.apply(this)},updateFromDOM:function(){e(this).data("timeago",{datetime:t.parse(t.isTime(this)?e(this).attr("datetime"):e(this).attr("title"))}),n.apply(this)},dispose:function(){this._timeagoInterval&&(window.clearInterval(this._timeagoInterval),this._timeagoInterval=null)}};function n(){var i=t.settings;if(i.autoDispose&&!e.contains(document.documentElement,this))return e(this).timeago("dispose"),this;var n=function(i){if(!(i=e(i)).data("timeago")){i.data("timeago",{datetime:t.datetime(i)});var n=e.trim(i.text());t.settings.localeTitle?i.attr("title",i.data("timeago").datetime.toLocaleString()):!(n.length>0)||t.isTime(i)&&i.attr("title")||i.attr("title",n)}return i.data("timeago")}(this);return isNaN(n.datetime)||(0===i.cutoff||Math.abs(a(n.datetime))<i.cutoff?e(this).text(r(n.datetime)):e(this).attr("title").length>0&&e(this).text(e(this).attr("title"))),this}function r(e){return t.inWords(a(e))}function a(e){return null!=t.settings.currentDateOverride?t.settings.currentDateOverride().getTime()-e.getTime():(new Date).getTime()-e.getTime()}e.fn.timeago=function(e,t){var n=e?i[e]:i.init;if(!n)throw new Error("Unknown function name '"+e+"' for timeago");return this.each(function(){n.call(this,t)}),this},document.createElement("abbr"),document.createElement("time")}),function(){var e;e=function(e,t,i,n){var r;return 1===(r=e%10)&&(1===e||e>20)?t:r>1&&r<5&&(e>20||e<10)?i:n},jQuery.timeago.settings.strings={prefixAgo:"prije",prefixFromNow:"za",suffixAgo:null,suffixFromNow:null,second:"sekundu",seconds:function(t){return e(t,"%d sekundu","%d sekunde","%d sekundi")},minute:"oko minutu",minutes:function(t){return e(t,"%d minutu","%d minute","%d minuta")},hour:"sat vremena",hours:function(t){return e(t,"%d sat","%d sata","%d sati")},day:"jedan dan",days:function(t){return e(t,"%d dan","%d dana","%d dana")},month:"mjesec dana",months:function(t){return e(t,"%d mjesec","%d mjeseca","%d mjeseci")},year:"godinu dana",years:function(t){return e(t,"%d godinu","%d godine","%d godina")},wordSeparator:" "}}.call(this); 24/*! 25 * dotdotdot JS 4.1.0 26 * 27 * dotdotdot.frebsite.nl 28 * 29 * Copyright (c) Fred Heusschen 30 * www.frebsite.nl 31 * 32 * License: CC-BY-NC-4.0 33 * http://creativecommons.org/licenses/by-nc/4.0/ 34 */ 35var Dotdotdot=function(){function e(t,i){void 0===i&&(i=e.options);var n=this;for(var r in this.container=t,this.options=i||{},this.watchTimeout=null,this.watchInterval=null,this.resizeEvent=null,e.options)e.options.hasOwnProperty(r)&&void 0===this.options[r]&&(this.options[r]=e.options[r]);var a=this.container.dotdotdot;a&&a.destroy(),this.API={},["truncate","restore","destroy","watch","unwatch"].forEach(function(e){n.API[e]=function(){return n[e].call(n)}}),this.container.dotdotdot=this.API,this.originalStyle=this.container.getAttribute("style")||"",this.originalContent=this._getOriginalContent(),this.ellipsis=document.createTextNode(this.options.ellipsis);var o=window.getComputedStyle(this.container);"break-word"!==o["word-wrap"]&&(this.container.style["word-wrap"]="break-word"),"pre"===o["white-space"]?this.container.style["white-space"]="pre-wrap":"nowrap"===o["white-space"]&&(this.container.style["white-space"]="normal"),null===this.options.height&&(this.options.height=this._getMaxHeight()),this.truncate(),this.options.watch&&this.watch()}return e.prototype.restore=function(){var e=this;this.unwatch(),this.container.setAttribute("style",this.originalStyle),this.container.classList.remove("ddd-truncated"),this.container.innerHTML="",this.originalContent.forEach(function(t){e.container.append(t)})}
35,e.prototype.destroy=function(){this.restore(),this.container.dotdotdot=null},e.prototype.watch=function(){var e=this;this.unwatch();var t={width:null,height:null},i=function(i,n,r){if(e.container.offsetWidth||e.container.offsetHeight||e.container.getClientRects().length){var a={width:i[n],height:i[r]};return t.width==a.width&&t.height==a.height||e.truncate(),a}return t};"window"===this.options.watch?(this.resizeEvent=function(n){e.watchTimeout&&clearTimeout(e.watchTimeout),e.watchTimeout=setTimeout(function(){t=i(window,"innerWidth","innerHeight")},100)},window.addEventListener("resize",this.resizeEvent)):this.watchInterval=setInterval(function(){t=i(e.container,"clientWidth","clientHeight")},1e3)},e.prototype.unwatch=function(){this.resizeEvent&&(window.removeEventListener("resize",this.resizeEvent),this.resizeEvent=null),this.watchInterval&&clearInterval(this.watchInterval),this.watchTimeout&&clearTimeout(this.watchTimeout)},e.prototype.truncate=function(){var e=this,t=!1;return this.container.innerHTML="",this.originalContent.forEach(function(t){e.container.append(t.cloneNode(!0))}),this.maxHeight=this._getMaxHeight(),this._fits()||(t=!0,this._truncateToNode(this.container)),this.container.classList[t?"add":"remove"]("ddd-truncated"),this.options.callback.call(this.container,t),t},e.prototype._truncateToNode=function(t){var i=[],n=[];if(e.$.contents(t).forEach(function(e){if(1!=e.nodeType||!e.matches(".ddd-keep")){var t=document.createComment("");e.replaceWith(t),n.push(e),i.push(t)}}),n.length){for(var r=0;r<n.length;r++){i[r].replaceWith(n[r]);var a=this.ellipsis.cloneNode(!0);switch(n[r].nodeType){case 1:n[r].append(a);break;case 3:n[r].after(a)}var o=this._fits();if(a.parentElement.removeChild(a),!o){if("node"==this.options.truncate&&r>1)return void n[r-2].remove();break}}for(var s=r;s<i.length;s++)i[s].remove();var l=n[Math.max(0,Math.min(r,n.length-1))];if(1==l.nodeType){var c=document.createElement(l.nodeName);c.append(this.ellipsis),l.replaceWith(c),this._fits()?c.replaceWith(l):(c.remove(),l=n[Math.max(0,r-1)])}1==l.nodeType?this._truncateToNode(l):this._truncateToWord(l)}},e.prototype._truncateToWord=function(e){for(var t=e.textContent,i=-1!==t.indexOf(" ")?" ":"ã",n=t.split(i),r=n.length;r>=0;r--)if(e.textContent=this._addEllipsis(n.slice(0,r).join(i)),this._fits()){"letter"==this.options.truncate&&(e.textContent=n.slice(0,r+1).join(i),this._truncateToLetter(e));break}},e.prototype._truncateToLetter=function(e){for(var t=e.textContent.split(""),i="",n=t.length;n>=0&&(!(i=t.slice(0,n).join("")).length||(e.textContent=this._addEllipsis(i),!this._fits()));n--);},e.prototype._fits=function(){return this.container.scrollHeight<=this.maxHeight+this.options.tolerance},e.prototype._addEllipsis=function(e){for(var t=[" ","ã",",",";",".","!","?"];t.indexOf(e.slice(-1))>-1;)e=e.slice(0,-1);return e+this.ellipsis.textContent},e.prototype._getOriginalContent=function(){var t="script, style";this.options.keep&&(t+=", "+this.options.keep),e.$.find(t,this.container).forEach(function(e){e.classList.add("ddd-keep")});var i="div, section, article, header, footer, p, h1, h2, h3, h4, h5, h6, table, td, td, dt, dd, li";
35[this.container].concat(e.$.find("*",this.container)).forEach(function(t){t.normalize(),e.$.contents(t).forEach(function(e){8==e.nodeType&&t.removeChild(e)}),e.$.contents(t).forEach(function(e){if(3==e.nodeType&&""==e.textContent.trim()){var n=e.previousSibling,r=e.nextSibling;(e.parentElement.matches("table, thead, tbody, tfoot, tr, dl, ul, ol, video")||!n||1==n.nodeType&&n.matches(i)||!r||1==r.nodeType&&r.matches(i))&&t.removeChild(e)}})});var n=[];return e.$.contents(this.container).forEach(function(e){n.push(e.cloneNode(!0))}),n},e.prototype._getMaxHeight=function(){if("number"==typeof this.options.height)return this.options.height;for(var e=window.getComputedStyle(this.container),t=["maxHeight","height"],i=0,n=0;n<t.length;n++)if("px"==(r=e[t[n]]).slice(-2)){i=parseFloat(r);break}if("border-box"==e.boxSizing)for(t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=0;n<t.length;n++){var r;"px"==(r=e[t[n]]).slice(-2)&&(i-=parseFloat(r))}return Math.max(i,0)},e.version="4.1.0",e.options={ellipsis:"⦠",callback:function(e){},truncate:"word",tolerance:0,keep:null,watch:"window",height:null},e.$={find:function(e,t){return t=t||document,Array.prototype.slice.call(t.querySelectorAll(e))},contents:function(e){return e=e||document,Array.prototype.slice.call(e.childNodes)}},e}();!function(e){void 0!==e&&(e.fn.dotdotdot=function(e){return this.each(function(t,i){var n=new Dotdotdot(i,e);i.dotdotdot=n.API})})}(window.Zepto||window.jQuery),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.axios=t():e.axios=t()}(this,function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s="./index.js")}({
35"./index.js": 36/*!******************!*\ 37 !*** ./index.js ***! 38 \******************/ 39/*! no static exports found */function(e,t,i){e.exports=i(/*! ./lib/axios */"./lib/axios.js")},
vendor: 2,951 bytes, lines 39-43
39"./lib/adapters/xhr.js": 40/*!*****************************!*\ 41 !*** ./lib/adapters/xhr.js ***! 42 \*****************************/ 43/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ./../utils */"./lib/utils.js"),r=i(/*! ./../core/settle */"./lib/core/settle.js"),a=i(/*! ./../helpers/cookies */"./lib/helpers/cookies.js"),o=i(/*! ./../helpers/buildURL */"./lib/helpers/buildURL.js"),s=i(/*! ../core/buildFullPath */"./lib/core/buildFullPath.js"),l=i(/*! ./../helpers/parseHeaders */"./lib/helpers/parseHeaders.js"),c=i(/*! ./../helpers/isURLSameOrigin */"./lib/helpers/isURLSameOrigin.js"),d=i(/*! ../core/createError */"./lib/core/createError.js"),u=i(/*! ../defaults */"./lib/defaults.js"),p=i(/*! ../cancel/Cancel */"./lib/cancel/Cancel.js");e.exports=function(e){return new Promise(function(t,i){var h,f=e.data,m=e.headers,g=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}n.isFormData(f)&&delete m["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+w)}var S=s(e.baseURL,e.url);function x(){if(y){var n="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,a={data:g&&"text"!==g&&"json"!==g?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y};r(function(e){t(e),v()},function(e){i(e),v()},a),y=null}}if(y.open(e.method.toUpperCase(),o(S,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=x:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(x)},y.onabort=function(){y&&(i(d("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){i(d("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||u.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(d(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},n.isStandardBrowserEnv()){var C=(e.withCredentials||c(S))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;C&&(m[e.xsrfHeaderName]=C)}"setRequestHeader"in y&&n.forEach(m,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete m[t]:y.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),g&&"json"!==g&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){y&&(i(!e||e&&e.type?new p("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),f||(f=null),y.send(f)})}},
43"./lib/axios.js": 44/*!**********************!*\ 45 !*** ./lib/axios.js ***! 46 \**********************/ 47/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ./utils */"./lib/utils.js"),r=i(/*! ./helpers/bind */"./lib/helpers/bind.js"),a=i(/*! ./core/Axios */"./lib/core/Axios.js"),o=i(/*! ./core/mergeConfig */"./lib/core/mergeConfig.js");var s=function e(t){var i=new a(t),s=r(a.prototype.request,i);return n.extend(s,a.prototype,i),n.extend(s,i),s.create=function(i){return e(o(t,i))},s}(i(/*! ./defaults */"./lib/defaults.js"));s.Axios=a,s.Cancel=i(/*! ./cancel/Cancel */"./lib/cancel/Cancel.js"),s.CancelToken=i(/*! ./cancel/CancelToken */"./lib/cancel/CancelToken.js"),s.isCancel=i(/*! ./cancel/isCancel */"./lib/cancel/isCancel.js"),s.VERSION=i(/*! ./env/data */"./lib/env/data.js").version,s.all=function(e){return Promise.all(e)},s.spread=i(/*! ./helpers/spread */"./lib/helpers/spread.js"),s.isAxiosError=i(/*! ./helpers/isAxiosError */"./lib/helpers/isAxiosError.js"),e.exports=s,e.exports.default=s},
47"./lib/cancel/Cancel.js": 48/*!******************************!*\ 49 !*** ./lib/cancel/Cancel.js ***! 50 \******************************/ 51/*! no static exports found */function(e,t,i){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},
51"./lib/cancel/CancelToken.js": 52/*!***********************************!*\ 53 !*** ./lib/cancel/CancelToken.js ***! 54 \***********************************/ 55/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ./Cancel */"./lib/cancel/Cancel.js");function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var i=this;this.promise.then(function(e){if(i._listeners){var t,n=i._listeners.length;for(t=0;t<n;t++)i._listeners[t](e);i._listeners=null}}),this.promise.then=function(e){var t,n=new Promise(function(e){i.subscribe(e),t=e}).then(e);return n.cancel=function(){i.unsubscribe(t)},n},e(function(e){i.reason||(i.reason=new n(e),t(i.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},
55"./lib/cancel/isCancel.js": 56/*!********************************!*\ 57 !*** ./lib/cancel/isCancel.js ***! 58 \********************************/ 59/*! no static exports found */function(e,t,i){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},
vendor: 2,698 bytes, lines 59-67
59"./lib/core/Axios.js": 60/*!***************************!*\ 61 !*** ./lib/core/Axios.js ***! 62 \***************************/ 63/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ./../utils */"./lib/utils.js"),r=i(/*! ../helpers/buildURL */"./lib/helpers/buildURL.js"),a=i(/*! ./InterceptorManager */"./lib/core/InterceptorManager.js"),o=i(/*! ./dispatchRequest */"./lib/core/dispatchRequest.js"),s=i(/*! ./mergeConfig */"./lib/core/mergeConfig.js"),l=i(/*! ../helpers/validator */"./lib/helpers/validator.js"),c=l.validators;function d(e){this.defaults=e,this.interceptors={request:new a,response:new a}}d.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var i=[],n=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,i.unshift(t.fulfilled,t.rejected))});var r,a=[];if(this.interceptors.response.forEach(function(e){a.push(e.fulfilled,e.rejected)}),!n){var d=[o,void 0];for(Array.prototype.unshift.apply(d,i),d=d.concat(a),r=Promise.resolve(e);d.length;)r=r.then(d.shift(),d.shift());return r}for(var u=e;i.length;){var p=i.shift(),h=i.shift();try{u=p(u)}catch(e){h(e);break}}try{r=o(u)}catch(e){return Promise.reject(e)}for(;a.length;)r=r.then(a.shift(),a.shift());return r},d.prototype.getUri=function(e){return e=s(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(e){d.prototype[e]=function(t,i){return this.request(s(i||{},{method:e,url:t,data:(i||{}).data}))}}),n.forEach(["post","put","patch"],function(e){d.prototype[e]=function(t,i,n){return this.request(s(n||{},{method:e,url:t,data:i}))}}),e.exports=d},"./lib/core/InterceptorManager.js": 64/*!****************************************!*\ 65 !*** ./lib/core/InterceptorManager.js ***! 66 \****************************************/ 67/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ./../utils */"./lib/utils.js");function r(){this.handlers=[]}r.prototype.use=function(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},
67"./lib/core/buildFullPath.js": 68/*!***********************************!*\ 69 !*** ./lib/core/buildFullPath.js ***! 70 \***********************************/ 71/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ../helpers/isAbsoluteURL */"./lib/helpers/isAbsoluteURL.js"),r=i(/*! ../helpers/combineURLs */"./lib/helpers/combineURLs.js");e.exports=function(e,t){return e&&!n(t)?r(e,t):t}},
71"./lib/core/createError.js": 72/*!*********************************!*\ 73 !*** ./lib/core/createError.js ***! 74 \*********************************/ 75/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ./enhanceError */"./lib/core/enhanceError.js");e.exports=function(e,t,i,r,a){var o=new Error(e);return n(o,t,i,r,a)}},
75"./lib/core/dispatchRequest.js": 76/*!*************************************!*\ 77 !*** ./lib/core/dispatchRequest.js ***! 78 \*************************************/ 79/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ./../utils */"./lib/utils.js"),r=i(/*! ./transformData */"./lib/core/transformData.js"),a=i(/*! ../cancel/isCancel */"./lib/cancel/isCancel.js"),o=i(/*! ../defaults */"./lib/defaults.js"),s=i(/*! ../cancel/Cancel */"./lib/cancel/Cancel.js");function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||o.adapter)(e).then(function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},
79"./lib/core/enhanceError.js": 80/*!**********************************!*\ 81 !*** ./lib/core/enhanceError.js ***! 82 \**********************************/ 83/*! no static exports found */function(e,t,i){"use strict";e.exports=function(e,t,i,n,r){return e.config=t,i&&(e.code=i),e.request=n,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},
vendor: 1,265 bytes, lines 83-87
83"./lib/core/mergeConfig.js": 84/*!*********************************!*\ 85 !*** ./lib/core/mergeConfig.js ***! 86 \*********************************/ 87/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ../utils */"./lib/utils.js");e.exports=function(e,t){t=t||{};var i={};function r(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function a(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:r(void 0,e[i]):r(e[i],t[i])}function o(e){if(!n.isUndefined(t[e]))return r(void 0,t[e])}function s(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:r(void 0,e[i]):r(void 0,t[i])}function l(i){return i in t?r(e[i],t[i]):i in e?r(void 0,e[i]):void 0}var c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return n.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=c[e]||a,r=t(e);n.isUndefined(r)&&t!==l||(i[e]=r)}),i}},
87"./lib/core/settle.js": 88/*!****************************!*\ 89 !*** ./lib/core/settle.js ***! 90 \****************************/ 91/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ./createError */"./lib/core/createError.js");e.exports=function(e,t,i){var r=i.config.validateStatus;i.status&&r&&!r(i.status)?t(n("Request failed with status code "+i.status,i.config,null,i.request,i)):e(i)}},
91"./lib/core/transformData.js": 92/*!***********************************!*\ 93 !*** ./lib/core/transformData.js ***! 94 \***********************************/ 95/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ./../utils */"./lib/utils.js"),r=i(/*! ./../defaults */"./lib/defaults.js");e.exports=function(e,t,i){var a=this||r;return n.forEach(i,function(i){e=i.call(a,e,t)}),e}},
vendor: 1,980 bytes, lines 95-99
95"./lib/defaults.js": 96/*!*************************!*\ 97 !*** ./lib/defaults.js ***! 98 \*************************/ 99/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ./utils */"./lib/utils.js"),r=i(/*! ./helpers/normalizeHeaderName */"./lib/helpers/normalizeHeaderName.js"),a=i(/*! ./core/enhanceError */"./lib/core/enhanceError.js"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=i(/*! ./adapters/xhr */"./lib/adapters/xhr.js")),l),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,i){if(n.isString(e))try{return(t||JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(i||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,i=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!i&&"json"===this.responseType;if(o||r&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(e){c.headers[e]={}}),n.forEach(["post","put","patch"],function(e){c.headers[e]=n.merge(o)}),e.exports=c},
99"./lib/env/data.js": 100/*!*************************!*\ 101 !*** ./lib/env/data.js ***! 102 \*************************/ 103/*! no static exports found */function(e,t){e.exports={version:"0.23.0"}},
103"./lib/helpers/bind.js": 104/*!*****************************!*\ 105 !*** ./lib/helpers/bind.js ***! 106 \*****************************/ 107/*! no static exports found */function(e,t,i){"use strict";e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return e.apply(t,i)}}},
vendor: 830 bytes, lines 107-111
107"./lib/helpers/buildURL.js": 108/*!*********************************!*\ 109 !*** ./lib/helpers/buildURL.js ***! 110 \*********************************/ 111/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ./../utils */"./lib/utils.js");function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,i){if(!t)return e;var a;if(i)a=i(t);else if(n.isURLSearchParams(t))a=t.toString();else{var o=[];n.forEach(t,function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),o.push(r(t)+"="+r(e))}))}),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},
111"./lib/helpers/combineURLs.js": 112/*!************************************!*\ 113 !*** ./lib/helpers/combineURLs.js ***! 114 \************************************/ 115/*! no static exports found */function(e,t,i){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},
vendor: 790 bytes, lines 115-119
115"./lib/helpers/cookies.js": 116/*!********************************!*\ 117 !*** ./lib/helpers/cookies.js ***! 118 \********************************/ 119/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ./../utils */"./lib/utils.js");e.exports=n.isStandardBrowserEnv()?{write:function(e,t,i,r,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(i)&&s.push("expires="+new Date(i).toGMTString()),n.isString(r)&&s.push("path="+r),n.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},
119"./lib/helpers/isAbsoluteURL.js": 120/*!**************************************!*\ 121 !*** ./lib/helpers/isAbsoluteURL.js ***! 122 \**************************************/ 123/*! no static exports found */function(e,t,i){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},
123"./lib/helpers/isAxiosError.js": 124/*!*************************************!*\ 125 !*** ./lib/helpers/isAxiosError.js ***! 126 \*************************************/ 127/*! no static exports found */function(e,t,i){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},
vendor: 902 bytes, lines 127-131
127"./lib/helpers/isURLSameOrigin.js": 128/*!****************************************!*\ 129 !*** ./lib/helpers/isURLSameOrigin.js ***! 130 \****************************************/ 131/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ./../utils */"./lib/utils.js");e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(e){var n=e;return t&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=r(window.location.href),function(t){var i=n.isString(t)?r(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return!0}},
131"./lib/helpers/normalizeHeaderName.js": 132/*!********************************************!*\ 133 !*** ./lib/helpers/normalizeHeaderName.js ***! 134 \********************************************/ 135/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ../utils */"./lib/utils.js");e.exports=function(e,t){n.forEach(e,function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])})}},
vendor: 777 bytes, lines 135-139
135"./lib/helpers/parseHeaders.js": 136/*!*************************************!*\ 137 !*** ./lib/helpers/parseHeaders.js ***! 138 \*************************************/ 139/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ./../utils */"./lib/utils.js"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,i,a,o={};return e?(n.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=n.trim(e.substr(0,a)).toLowerCase(),i=n.trim(e.substr(a+1)),t){if(o[t]&&r.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([i]):o[t]?o[t]+", "+i:i}}),o):o}},
139"./lib/helpers/spread.js": 140/*!*******************************!*\ 141 !*** ./lib/helpers/spread.js ***! 142 \*******************************/ 143/*! no static exports found */function(e,t,i){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},
vendor: 1,102 bytes, lines 143-147
143"./lib/helpers/validator.js": 144/*!**********************************!*\ 145 !*** ./lib/helpers/validator.js ***! 146 \**********************************/ 147/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ../env/data */"./lib/env/data.js").version,r={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){r[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});var a={};r.transitional=function(e,t,i){function r(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return function(i,n,o){if(!1===e)throw new Error(r(n," has been removed"+(t?" in "+t:"")));return t&&!a[n]&&(a[n]=!0,console.warn(r(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,n,o)}},e.exports={assertOptions:function(e,t,i){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),r=n.length;r-- >0;){var a=n[r],o=t[a];if(o){var s=e[a],l=void 0===s||o(s,a,e);if(!0!==l)throw new TypeError("option "+a+" must be "+l)}else if(!0!==i)throw Error("Unknown option "+a)}},validators:r}},
vendor: 2,350 bytes, lines 147-151
147"./lib/utils.js": 148/*!**********************!*\ 149 !*** ./lib/utils.js ***! 150 \**********************/ 151/*! no static exports found */function(e,t,i){"use strict";var n=i(/*! ./helpers/bind */"./lib/helpers/bind.js"),r=Object.prototype.toString;function a(e){return"[object Array]"===r.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===r.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===r.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:l,isUndefined:o,isDate:function(e){return"[object Date]"===r.call(e)},isFile:function(e){return"[object File]"===r.call(e)},isBlob:function(e){return"[object Blob]"===r.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:d,merge:function e(){var t={};function i(i,n){l(t[n])&&l(i)?t[n]=e(t[n],i):l(i)?t[n]=e({},i):a(i)?t[n]=i.slice():t[n]=i}for(var n=0,r=arguments.length;n<r;n++)d(arguments[n],i);return t},extend:function(e,t,i){return d(t,function(t,r){e[r]=i&&"function"==typeof t?n(t,i):t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}}
151})});var __defProp=Object.defineProperty,__defNormalProp=(e,t,i)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,__require="undefined"!=typeof require?require:e=>{throw new Error('Dynamic require of "'+e+'" is not supported')},__publicField=(e,t,i)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,i),i),PetiteVue=function(e){"use strict";function t(e){if(u(e)){const i={};for(let n=0;n<e.length;n++){const a=e[n],o=f(a)?r(a):t(a);if(o)for(const e in o)i[e]=o[e]}return i}return f(e)||g(e)?e:void 0}const i=/;(?![^(]*\))/g,n=/:(.+)/;function r(e){const t={};return e.split(i).forEach(e=>{if(e){const i=e.split(n);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function a(e){let t="";if(f(e))t=e;else if(u(e))for(let i=0;i<e.length;i++){const n=a(e[i]);n&&(t+=n+" ")}else if(g(e))for(const i in e)e[i]&&(t+=i+" ");return t.trim()}function o(e,t){if(e===t)return!0;let i=h(e),n=h(t);if(i||n)return!(!i||!n)&&e.getTime()===t.getTime();if(i=u(e),n=u(t),i||n)return!(!i||!n)&&function(e,t){if(e.length!==t.length)return!1;let i=!0;for(let n=0;i&&n<e.length;n++)i=o(e[n],t[n]);return i}(e,t);if(i=g(e),n=g(t),i||n){if(!i||!n)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e){const n=e.hasOwnProperty(i),r=t.hasOwnProperty(i);if(n&&!r||!n&&r||!o(e[i],t[i]))return!1}}return String(e)===String(t)}function s(e,t){return e.findIndex(e=>o(e,t))}const l=Object.assign,c=Object.prototype.hasOwnProperty,d=(e,t)=>c.call(e,t),u=Array.isArray,p=e=>"[object Map]"===y(e),h=e=>e instanceof Date,f=e=>"string"==typeof e,m=e=>"symbol"==typeof e,g=e=>null!==e&&"object"==typeof e,v=Object.prototype.toString,y=e=>v.call(e),b=e=>f(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,w=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},S=/-(\w)/g,x=w(e=>e.replace(S,(e,t)=>t?t.toUpperCase():"")),C=/\B([A-Z])/g,T=w(e=>e.replace(C,"-$1").toLowerCase()),k=e=>{const t=parseFloat(e);return isNaN(t)?e:t};function E(e,t){(t=t||void 0)&&t.active&&t.effects.push(e)}const M=e=>{const t=new Set(e);return t.w=0,t.n=0,t},I=e=>(e.w&P)>0,A=e=>(e.n&P)>0,L=new WeakMap;let D=0,P=1;const $=[];let j;const _=Symbol(""),R=Symbol("");class O{constructor(e,t=null,i){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],E(this,i)}run(){if(!this.active)return this.fn();if(!$.includes(this))try{return $.push(j=this),B.push(H),H=!0,P=1<<++D,D<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=P})(this):F(this),this.fn()}finally{D<=30&&(e=>{const{deps:t}=e;if(t.length){let i=0;for(let n=0;n<t.length;n++){const r=t[n];I(r)&&!A(r)?r.delete(e):t[i++]=r,r.w&=~P,r.n&=~P}t.length=i}})(this),P=1<<--D,U(),$.pop();const e=$.length;j=e>0?$[e-1]:void 0}}stop(){this.active&&(F(this),this.onStop&&this.onStop(),this.active=!1)}}function F(e){const{deps:t}=e;if(t.length){for(let i=0;i<t.length;i++)t[i].delete(e);t.length=0}}function N(e){e.effect.stop()}let H=!0;const B=[];function U(){const e=B.pop();H=void 0===e||e}function V(e,t,i){if(!H||void 0===j)return;let n=L.get(e);n||L.set(e,n=new Map);let r=n.get(i);r||n.set(i,r=M()),function(e){let t=!1;D<=30?A(e)||(e.n|=P,t=!I(e)):t=!e.has(j),t&&(e.add(j),j.deps.push(e))}(r)}function z(e,t,i,n,r,a){const o=L.get(e);if(!o)return;let s=[];if("clear"===t)s=[...o.values()];else if("length"===i&&u(e))o.forEach((e,t)=>{("length"===t||t>=n)&&s.push(e)});else switch(void 0!==i&&s.push(o.get(i)),t){case"add":u(e)?b(i)&&s.push(o.get("length")):(s.push(o.get(_)),p(e)&&s.push(o.get(R)));break;case"delete":u(e)||(s.push(o.get(_)),p(e)&&s.push(o.get(R)));break;case"set":p(e)&&s.push(o.get(_))}if(1===s.length)s[0]&&q(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);q(M(e))}}function q(e,t){for(const t of u(e)?e:[...e])(t!==j||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const Y=function(e,t){const i=Object.create(null),n=e.split(",");for(let e=0;e<n.length;e++)i[n[e]]=!0;return t?e=>!!i[e.toLowerCase()]:e=>!!i[e]}("__proto__,__v_isRef,__isVue"),W=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(m)),G=J(),X=J(!0),Q=function(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const i=oe(this);for(let e=0,t=this.length;e<t;e++)V(i,0,e+"");const n=i[t](...e);return-1===n||!1===n?i[t](...e.map(oe)):n}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){B.push(H),H=!1;const i=oe(this)[t].apply(this,e);return U(),i}}),e}();function J(e=!1,t=!1){return function(i,n,r){if("__v_isReactive"===n)return!e;if("__v_isReadonly"===n)return e;if("__v_raw"===n&&r===(e?t?ne:ie:t?te:ee).get(i))return i;const a=u(i);if(!e&&a&&d(Q,n))return Reflect.get(Q,n,r);const o=Reflect.get(i,n,r);return(m(n)?W.has(n):Y(n))?o:(e||V(i,0,n),t?o:se(o)?a&&b(n)?o:o.value:g(o)?e?function(e){return ae(e,!0,K,null,ie)}(o):re(o):o)}}const Z={get:G,set:function(e=!1){return function(t,i,n,r){let a=t[i];if(!e&&(n=oe(n),a=oe(a),!u(t)&&se(a)&&!se(n)))return a.value=n,!0;const o=u(t)&&b(i)?Number(i)<t.length:d(t,i),s=Reflect.set(t,i,n,r);return t===oe(r)&&(o?((e,t)=>
151!Object.is(e,t))(n,a)&&z(t,"set",i,n):z(t,"add",i,n)),s}}(),deleteProperty:function(e,t){const i=d(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&i&&z(e,"delete",t,void 0),n},has:function(e,t){const i=Reflect.has(e,t);return m(t)&&W.has(t)||V(e,0,t),i},ownKeys:function(e){return V(e,0,u(e)?"length":_),Reflect.ownKeys(e)}},K={get:X,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},ee=new WeakMap,te=new WeakMap,ie=new WeakMap,ne=new WeakMap;function re(e){return e&&e.__v_isReadonly?e:ae(e,!1,Z,null,ee)}function ae(e,t,i,n,r){if(!g(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=r.get(e);if(a)return a;const o=function(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>y(e).slice(8,-1))(e))}(e);if(0===o)return e;const s=new Proxy(e,2===o?n:i);return r.set(e,s),s}function oe(e){const t=e&&e.__v_raw;return t?oe(t):e}function se(e){return Boolean(e&&!0===e.__v_isRef)}Promise.resolve();let le=!1;const ce=[],de=Promise.resolve(),ue=e=>de.then(e),pe=e=>{ce.includes(e)||ce.push(e),le||(le=!0,ue(he))},he=()=>{for(const e of ce)e();ce.length=0,le=!1},fe=/^(spellcheck|draggable|form|list|type)$/,me=({el:e,get:t,effect:i,arg:n,modifiers:r})=>{let a;"class"===n&&(e._class=e.className),i(()=>{let i=t();if(n)(null==r?void 0:r.camel)&&(n=x(n)),ge(e,n,i,a);else{for(const t in i)ge(e,t,i[t],a&&a[t]);for(const t in a)i&&t in i||ge(e,t,null)}a=i})},ge=(e,i,n,r)=>{if("class"===i)e.setAttribute("class",a(e._class?[e._class,n]:n)||"");else if("style"===i){n=t(n);const{style:i}=e;if(n)if(f(n))n!==r&&(i.cssText=n);else{for(const e in n)ye(i,e,n[e]);if(r&&!f(r))for(const e in r)null==n[e]&&ye(i,e,"")}else e.removeAttribute("style")}else e instanceof SVGElement||!(i in e)||fe.test(i)?"true-value"===i?e._trueValue=n:"false-value"===i?e._falseValue=n:null!=n?e.setAttribute(i,n):e.removeAttribute(i):(e[i]=n,"value"===i&&(e._value=n))},ve=/\s*!important$/,ye=(e,t,i)=>{u(i)?i.forEach(i=>ye(e,t,i)):t.startsWith("--")?e.setProperty(t,i):ve.test(i)?e.setProperty(T(t),i.replace(ve,""),"important"):e[t]=i},be=(e,t)=>{const i=e.getAttribute(t);return null!=i&&e.removeAttribute(t),i},we=(e,t,i,n)=>{e.addEventListener(t,i,n)},Se=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,xe=["ctrl","shift","alt","meta"],Ce={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>xe.some(i=>e[`${i}Key`]&&!t[i])},Te=({el:e,get:t,exp:i,arg:n,modifiers:r})=>{if(!n)return;let a=Se.test(i)?t(`(e => ${i}(e))`):t(`($event => { ${i} })`);if("mounted"!==n){if("unmounted"===n)return()=>a();if(r){"click"===n&&(r.right&&(n="contextmenu"),r.middle&&(n="mouseup"));const e=a;a=t=>{if(!("key"in t)||T(t.key)in r){for(const e in r){const i=Ce[e];if(i&&i(t,r))return}return e(t)}}}we(e,n,a,r)}else ue(a)},ke=({el:e,get:t,effect:i})=>{i(()=>{e.textContent=Ee(t())})},Ee=e=>null==e?"":g(e)?JSON.stringify(e,null,2):String(e),Me=e=>"_value"in e?e._value:e.value,Ie=(e,t)=>{const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t},Ae=e=>{e.target.composing=!0},Le=e=>{const t=e.target;t.composing&&(t.composing=!1,De(t,"input"))},De=(e,t)=>{const i=document.createEvent("HTMLEvents");i.initEvent(t,!0,!0),e.dispatchEvent(i)},Pe=Object.create(null),$e=(e,t,i)=>je(e,`return(${t})`,i),je=(e,t,i)=>{const n=Pe[t]||(Pe[t]=_e(t));try{return n(e,i)}catch(e){console.error(e)}},_e=e=>{try{return new Function("$data","$el",`with($data){${e}}`)}catch(t){return console.error(`${t.message} in expression: ${e}`),()=>{}}},Re={bind:me,on:Te,show:({el:e,get:t,effect:i})=>{const n=e.style.display;i(()=>{e.style.display=t()?n:"none"})},text:ke,html:({el:e,get:t,effect:i})=>{i(()=>{e.innerHTML=t()})},model:({el:e,exp:t,get:i,effect:n,modifiers:r})=>{const a=e.type,l=i(`(val) => { ${t} = val }`),{trim:c,number:d="number"===a}=r||{};if("SELECT"===e.tagName){const t=e;we(e,"change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>d?k(Me(e)):Me(e));l(t.multiple?e:e[0])}),n(()=>{const e=i(),n=t.multiple;for(let i=0,r=t.options.length;i<r;i++){const r=t.options[i],a=Me(r);if(n)u(e)?r.selected=s(e,a)>-1:r.selected=e.has(a);else if(o(Me(r),e))return void(t.selectedIndex!==i&&(t.selectedIndex=i))}n||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===a){let t;we(e,"change",()=>{const t=i(),n=e.checked;if(u(t)){const i=Me(e),r=s(t,i),a=-1!==r;if(n&&!a)l(t.concat(i));else if(!n&&a){const e=[...t];e.splice(r,1),l(e)}}else l(Ie(e,n))}),n(()=>{const n=i();u(n)?e.checked=s(n,Me(e))>-1:n!==t&&(e.checked=o(n,Ie(e,!0))),t=n})}else if("radio"===a){let t;we(e,"change",()=>{l(Me(e))}),n(()=>{const n=i();n!==t&&(e.checked=o(n,Me(e)))})}else{const t=e=>c?e.trim():d?k(e):e;we(e,"compositionstart",Ae),we(e,"compositionend",Le),we(e,(null==r?void 0:r.lazy)?"change":"input",()=>{e.composing||l(t(e.value))}),c&&we(e,"change",()=>{e.value=e.value.trim()}),n(()=>
151{if(e.composing)return;const n=e.value,r=i();document.activeElement===e&&t(n)===r||n!==r&&(e.value=r)})}},effect:({el:e,ctx:t,exp:i,effect:n})=>{ue(()=>n(()=>je(t.scope,i,e)))}},Oe=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Fe=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ne=/^\(|\)$/g,He=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Be=({el:e,ctx:{scope:{$refs:t}},get:i,effect:n})=>{let r;return n(()=>{const n=i();t[n]=e,r&&n!==r&&delete t[r],r=n}),()=>{r&&delete t[r]}},Ue=/^(?:v-|:|@)/,Ve=/\.([\w-]+)/g;let ze=!1;const qe=(e,t)=>{const i=e.nodeType;if(1===i){const i=e;if(i.hasAttribute("v-pre"))return;let n;if(be(i,"v-cloak"),n=be(i,"v-if"))return((e,t,i)=>{const n=e.parentElement,r=new Comment("v-if");n.insertBefore(r,e);const a=[{exp:t,el:e}];let o,s;for(;(o=e.nextElementSibling)&&(s=null,""===be(o,"v-else")||(s=be(o,"v-else-if")));)n.removeChild(o),a.push({exp:s,el:o});const l=e.nextSibling;let c;n.removeChild(e);let d=-1;const u=()=>{c&&(n.insertBefore(r,c.el),c.remove(),c=void 0)};return i.effect(()=>{for(let e=0;e<a.length;e++){const{exp:t,el:o}=a[e];if(!t||$e(i.scope,t))return void(e!==d&&(u(),c=new Ke(o,i),c.insert(n,r),n.removeChild(r),d=e))}d=-1,u()}),l})(i,n,t);if(n=be(i,"v-for"))return((e,t,i)=>{const n=t.match(Oe);if(!n)return;const r=e.nextSibling,a=e.parentElement,o=new Text("");a.insertBefore(o,e),a.removeChild(e);const s=n[2].trim();let l,c,d,p,h=n[1].trim().replace(Ne,"").trim(),f=!1,m="key",v=e.getAttribute(m)||e.getAttribute(m=":key")||e.getAttribute(m="v-bind:key");v&&(e.removeAttribute(m),"key"===m&&(v=JSON.stringify(v))),(p=h.match(Fe))&&(h=h.replace(Fe,"").trim(),c=p[1].trim(),p[2]&&(d=p[2].trim())),(p=h.match(He))&&(l=p[1].split(",").map(e=>e.trim()),f="["===h[0]);let y,b,w,S=!1;const x=(e,t,n,r)=>{const a={};l?l.forEach((e,i)=>a[e]=t[f?i:e]):a[h]=t,r?(c&&(a[c]=r),d&&(a[d]=n)):c&&(a[c]=n);const o=Je(i,a),s=v?$e(o.scope,v):n;return e.set(s,n),o.key=s,o},C=(t,i)=>{const n=new Ke(e,t);return n.key=t.key,n.insert(a,i),n};return i.effect(()=>{const e=$e(i.scope,s),t=w;if([b,w]=(e=>{const t=new Map,i=[];if(u(e))for(let n=0;n<e.length;n++)i.push(x(t,e[n],n));else if("number"==typeof e)for(let n=0;n<e;n++)i.push(x(t,n+1,n));else if(g(e)){let n=0;for(const r in e)i.push(x(t,e[r],n++,r))}return[i,t]})(e),S){for(let e=0;e<y.length;e++)w.has(y[e].key)||y[e].remove();const e=[];let i,n,r=b.length;for(;r--;){const s=b[r],l=t.get(s.key);let c;null==l?c=C(s,i?i.el:o):(c=y[l],Object.assign(c.ctx.scope,s.scope),l!==r&&(y[l+1]===i&&n!==i||(n=c,c.insert(a,i?i.el:o)))),e.unshift(i=c)}y=e}else y=b.map(e=>C(e,o)),S=!0}),r})(i,n,t);if((n=be(i,"v-scope"))||""===n){const e=n?$e(t.scope,n):{};t=Je(t,e),e.$template&&Xe(i,e.$template)}const r=null!=be(i,"v-once");r&&(ze=!0),(n=be(i,"ref"))&&Ge(i,Be,`"${n}"`,t),Ye(i,t);const a=[];for(const{name:e,value:n}of[...i.attributes])Ue.test(e)&&"v-cloak"!==e&&("v-model"===e?a.unshift([e,n]):"@"===e[0]||/^v-on\b/.test(e)?a.push([e,n]):We(i,e,n,t));for(const[e,n]of a)We(i,e,n,t);r&&(ze=!1)}else if(3===i){const i=e.data;if(i.includes(t.delimiters[0])){let n,r=[],a=0;for(;n=t.delimitersRE.exec(i);){const e=i.slice(a,n.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${n[1]})`),a=n.index+n[0].length}a<i.length&&r.push(JSON.stringify(i.slice(a))),Ge(e,ke,r.join("+"),t)}}else 11===i&&Ye(e,t)},Ye=(e,t)=>{let i=e.firstChild;for(;i;)i=qe(i,t)||i.nextSibling},We=(e,t,i,n)=>{let r,a,o;if(":"===(t=t.replace(Ve,(e,t)=>((o||(o={}))[t]=!0,"")))[0])r=me,a=t.slice(1);else if("@"===t[0])r=Te,a=t.slice(1);else{const e=t.indexOf(":"),i=e>0?t.slice(2,e):t.slice(2);r=Re[i]||n.dirs[i],a=e>0?t.slice(e+1):void 0}r&&(r===me&&"ref"===a&&(r=Be),Ge(e,r,i,n,a,o),e.removeAttribute(t))},Ge=(e,t,i,n,r,a)=>{const o=t({el:e,get:(t=i)=>$e(n.scope,t,e),effect:n.effect,ctx:n,exp:i,arg:r,modifiers:a});o&&n.cleanups.push(o)},Xe=(e,t)=>{if("#"!==t[0])e.innerHTML=t;else{const i=document.querySelector(t);e.appendChild(i.content.cloneNode(!0))}},Qe=e=>{const t={...e,scope:e?e.scope:re({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,effect:e=>{if(ze)return pe(e),e;const i=function(e,t){e.effect&&(e=e.effect.fn);const i=new O(e);t&&(l(i,t),t.scope&&E(i,t.scope)),t&&t.lazy||i.run();const n=i.run.bind(i);return n.effect=i,n}(e,{scheduler:()=>pe(i)});return t.effects.push(i),i}};return t},Je=(e,t={})=>{const i=e.scope,n=Object.create(i);Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)),n.$refs=Object.create(i.$refs);const r=re(new Proxy(n,{set:(e,t,n,a)=>a!==r||e.hasOwnProperty(t)?Reflect.set(e,t,n,a):Reflect.set(i,t,n)}));return Ze(r),{...e,scope:r}},Ze=e=>{for(const t of Object.keys(e))"function"==typeof e[t]&&(e[t]=e[t].bind(e))};class Ke{constructor(e,t,i=!1){__publicField(this,"template"),__publicField(this,"ctx"),__publicField(this,"key"),__publicField(this,"parentCtx"),__publicField(this,"isFragment"),__publicField(this,"start"),__publicField(this,"end"),this.isFragment=e instanceof HTMLTemplateElement,i?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),i?this.ctx=t:(this.parentCtx=t,t.blocks.push(this),this.ctx=Qe(t)),qe(this.template,this.ctx)}get el(){return this.start||this.template}insert(e,t=null){if(this.isFragment)if(this.start){let i,n=this.start;for(;n&&(i=n.nextSibling,e.insertBefore(n,t),n!==this.end);)n=i}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else e.insertBefore(this.template,t)}remove(){if(this.parentCtx&&((e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)})(this.parentCtx.blocks,this),this.start){const e=this.start.parentNode;let t,i=this.start;for(;i&&(t=i.nextSibling,e.removeChild(i),i!==this.end);)i=t}else this.template.parentNode.removeChild(this.template);this.teardown()}
151teardown(){this.ctx.blocks.forEach(e=>{e.teardown()}),this.ctx.effects.forEach(N),this.ctx.cleanups.forEach(e=>e())}}const et=e=>e.replace(/[-.*+?^${}()|[\]\/\\]/g,"\\$&"),tt=e=>{const t=Qe();if(e&&(t.scope=re(e),Ze(t.scope),e.$delimiters)){const[i,n]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(et(i)+"([^]+?)"+et(n),"g")}let i;return t.scope.$s=Ee,t.scope.$nextTick=ue,t.scope.$refs=Object.create(null),{directive(e,i){return i?(t.dirs[e]=i,this):t.dirs[e]},mount(e){if("string"==typeof e&&!(e=document.querySelector(e)))return;let n;return n=(e=e||document.documentElement).hasAttribute("v-scope")?[e]:[...e.querySelectorAll("[v-scope]")].filter(e=>!e.matches("[v-scope] [v-scope]")),n.length||(n=[e]),i=n.map(e=>new Ke(e,t,!0)),this},unmount(){i.forEach(e=>e.teardown())}}};let it;return(it=document.currentScript)&&it.hasAttribute("init")&&tt().mount(),e.createApp=tt,e.nextTick=ue,e.reactive=re,Object.defineProperty(e,"__esModule",{value:!0}),e[Symbol.toStringTag]="Module",e}({}),accountService=function(){var e={Login:function(e){cookieService.DeleteCookie(t),localStorage.removeItem(i),window.location.href=e},Logout:function(e){cookieService.DeleteCookie(t),window.location.href=e},OnLoginFormSubmit:function(){cookieService.DeleteCookie(t)},DeleteMetaCookie:function(){cookieService.DeleteCookie(t)},CreateMetaCookie:function(){return axios.post("/create-user-cookie")}};e.GetUserInfo=n,e.GetUserPPID=function(){var e=n();return e&&e.PPID?e.PPID:null},e.UserHasPremium=function(){var e=n();if(null!=e&&null!=e.HasPremium&&e.HasPremium)return!0;return!1};var t="lcl_me",i="index-chat-jwt";function n(){cookieService.DeleteCookie("lcl_meta");var e=cookieService.GetCookie(t);if(null!=e){var i=decodeURIComponent(e);return JSON.parse(i.replace(/\+/g," "))}return null}return e}(),articleStatsService=function(){var e={CountArticleView:function(e,n){var r={articleId:e,sourceType:n};(function(e){try{var n=t+e,r=localStorage.getItem(n);return null!==r&&(localStorage.removeItem(n),Date.now()-parseInt(r,10)<=i)}catch(e){return!1}})(e)&&(r.fromHomepage=!0);$.post("/api/Stats/count-up",r)},CountArticleTitleView:function(e){$.post("/api/Stats/count-up-title",{titleId:e})},CountArticlePhotoView:function(e){$.post("/api/Stats/count-up-photo",{photoId:e})}},t="hp_open_",i=12e4;return e}(),articleTimeOnPageService=function(){var e={Init:function(e){if(u)return void console.log("articleTimeOnPageService: skipped init, already initialized");if(void 0!==deviceService&&deviceService.IsRealUser&&!deviceService.IsRealUser())return void console.log("articleTimeOnPageService: skipped init, bot or headless browser detected");u=!0,x=(e=e||{}).articleId,w=e.startUrl||null,S=e.reportingUrl||null,s=e.inactivityTimeout||30,a=!document.hidden,d=new IntersectionObserver(j,{root:null,threshold:0}),L(e.articleTextSelector,g),L(e.liveContentSelector,v),L(e.commentsSelector,y),setInterval(P,1e3),w&&x?fetch(w,{method:"POST",body:JSON.stringify({articleId:x}),headers:{"Content-Type":"application/json"},credentials:"same-origin"}).then(function(e){if(!e.ok)throw new Error("init failed: "+e.status);return e.json()}).then(function(e){C=e.sessionId}).catch(function(){T=!0}):T=!0;document.addEventListener("visibilitychange",function(){a=!document.hidden,document.hidden?$():k=!1}),window.addEventListener("pagehide",$),window.addEventListener("beforeunload",$);for(var t=["mousemove","scroll","keydown","touchstart","click"],i=0;i<t.length;i++)document.addEventListener(t[i],D,{passive:!0});D()},GetTimeSpent:function(){return{articleId:x,sessionId:C,isUserActive:o,pageTimeSeconds:t,articleTextSeconds:i,liveContentSeconds:n,commentsSeconds:r}}},t=0,i=0,n=0,r=0,a=!0,o=!0,s=30,l=null,c=0,d=null,u=!1,p=null,h=!1,f=!1,m=!1,g=[],v=[],y=[],b=new WeakMap,w=null,S=null,x=null,C=null,T=!1,k=!1,E=0,M=0,I=0,A=0;function L(e,t){for(var i=document.querySelectorAll(e),n=0;n<i.length;n++)t.push(i[n]),b.set(i[n],t),d.observe(i[n])}function D(){var e=Date.now();e-c<1e3||(c=e,o=!0,clearTimeout(l),l=setTimeout(function(){o=!1,$(),k=!1},1e3*s))}function P(){var e=Date.now();if(null!==p){var s=Math.min((e-p)/1e3,2);p=e,a&&o&&(t+=s,h&&(i+=s),f&&(n+=s),m&&(r+=s))}else p=e}function $(){if(!k&&S&&C&&!T){k=!0;var e=Math.floor(t),a=Math.floor(i),o=Math.floor(n),s=Math.floor(r),l=e-E;if(0!==l){var c={sessionId:C,pageTimeSeconds:l,articleTextSeconds:a-M,liveContentSeconds:o-I,commentsSeconds:s-A,first:0===E};fetch(S,{method:"POST",body:JSON.stringify(c),headers:{"Content-Type":"application/json"},keepalive:!0,credentials:"omit"}).then(function(e){e&&401===e.status&&(T=!0)}).catch(function(){}),E=e,M=a,I=o,A=s}}}function j(e){for(var t=0;t<e.length;t++){var i=e[t],n=b.get(i.target);n&&(n===g?h=i.isIntersecting:n===v?f=i.isIntersecting:n===y&&(m=i.isIntersecting))}}return e}(),bridMacros={},bridPlayerService=function(){var e={};return e.DestroyAllPlayersInContainer=function(e){"undefined"!=typeof $bp&&$('div[id^="Brid_"]:not([id*="_adContainer"])',e).each(function(){$bp(this.id).destroy()})},e.AddKeyValueIntoMacros=function(e,t){bridMacros[e]=t},e}(),browserFingerprintService=function(){var e={getFingerprint:function(){return function(){if(i)return i;return i=new Promise(function(e,n){if(window.Fingerprint2)e(window.Fingerprint2);else{var r=document.createElement("script");r.src=t,r.async=!0,r.onload=function(){e(window.Fingerprint2)},r.onerror=function(){i=null,n(new Error("fingerprintjs2 failed to load"))},document.head.appendChild(r)}})}().then(function(e){return new Promise(function(t){new e({excludePlugins:!0,excludeIEPlugins:!0}).get(function(e){t(e)})})})}},t="https://cdnjs.cloudflare.com/ajax/libs/fingerprintjs2/1.6.1/fingerprint2.min.js",i=null;return e}(),carouselService=function(){var e={};return e.InitializeCarousels=function(){var e=".js-carousel-campaign:not(.js-carousel-initialized)";if(accountService.UserHasPremium())return void document.querySelectorAll(e).forEach(function(e){e.remove()});document.querySelectorAll(e).forEach(function(e){e.classList.add("js-carousel-initialized");var t=e.dataset.carouselId,i=JSON.parse(e.dataset.countImpression),n=e.dataset.carouselUrl,r=document.createElement("iframe");r.name="carousel-"+t,r.className="embed-holder",r.frameBorder="0",r.scrolling="no",r.src=n,r.onload=function(){!function(e,t,i){let n=e.contentDocument.body.scrollHeight;e.style.height=n+"px",t&&($.post("/api/Stats/carousel/count-up-impression/"+i,function(){}),googleEventService.CreateCustomDimensionsGA4("carousel_data",{carousel_all_id:i}));new IntersectionObserver((e,t)=>
151{e.forEach(e=>{e.isIntersecting&&($.post("/api/Stats/carousel/count-up-viewable-impression/"+i,function(){}),googleEventService.CreateCustomDimensionsGA4("carousel_data",{carousel_viewable_id:i}),t.unobserve(e.target))})},{root:null,threshold:.5}).observe(e)}(r,i,parseInt(t))},e.appendChild(r)})},e.RemoveCarousels=function(){accountService.UserHasPremium()&&document.querySelectorAll(".js-carousel-campaign").forEach(function(e){e.remove()})},e}(),clipboardImageService=function(){var e={GetPastedImageFile:function(e){var i=e.clipboardData||window.clipboardData;if(!i||!i.items)return null;for(var n=i.items,r=0;r<n.length;r++){var a=n[r];if("file"===a.kind&&0===a.type.indexOf("image/")){e.preventDefault();var o=t[a.type.toLowerCase()];if(!o)return{error:"unsupported"};var s=a.getAsFile();return s?{file:new File([s],"pasted-image"+o,{type:s.type})}:null}}return null}},t={"image/jpeg":".jpg","image/jpg":".jpg","image/png":".png","image/gif":".gif"};return e}(),cookieService=function(){var e={};return e.CreateCookie=function(e,t,i,n){n||(n="/");var r=new Date;r.setTime(r.getTime()+24*i*60*60*1e3);var a="expires="+r.toUTCString();n="path="+n;document.cookie=e+"="+t+";"+a+";"+n},e.CreateCookieWithExpirationDate=function(e,t,i,n){n||(n="/");var r="expires="+i;n="path="+n;document.cookie=e+"="+t+";"+r+";"+n},e.GetCookie=function(e){for(var t=e+"=",i=decodeURIComponent(document.cookie).split(";"),n=0;n<i.length;n++){for(var r=i[n];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return null},e.DeleteCookie=function(e){document.cookie=e+"=; Max-Age=-99999999;path=/"},e}(),countDownService=function(){var e={};return e.StartCountDown=function(e,t,i,n){var r=moment.utc(e,"DD.MM.YYYY. HH:mm:ss"),a=$(t);const o=r.isBefore(moment.utc());var s=!1,l=null;function c(){var e=function(e,t,i){const n=moment.utc(),r=i?moment.duration(n.diff(e)):moment.duration(e.diff(n)),a=$(".days",t).length>0,o=r.days(),s=a?r.hours():Math.floor(r.asHours()),l=r.minutes(),c=r.seconds();return r.milliseconds()>=0?($(".days .value",t).html(o),$(".hours .value",t).html(String(s).padStart(2,"0")),$(".minutes .value",t).html(String(l).padStart(2,"0")),$(".seconds .value",t).html(String(c).padStart(2,"0")),!1):(t.hide(),$(".days .value",t).html(0),$(".hours .value",t).html(0),$(".minutes .value",t).html(0),$(".seconds .value",t).html(0),!0)}(r,a,o);!e||o||s||(s=!0,l&&clearInterval(l),"function"==typeof n&&n(a))}c(),s||(l=setInterval(c,i))},e}(),deviceService=function(){var e={};function t(){for(var e=navigator.userAgent.toLowerCase(),t=["googlebot","bingbot","yandexbot","duckduckbot","baiduspider","sogou","exabot","facebot","ia_archiver","mj12bot","pinterestbot","semrushbot","ahrefsbot","dotbot","gigabot","slurp","baiduspider","teoma","crawler","spider","robot","crawling","phantomjs","headlesschrome"],i=0;i<t.length;i++)if(-1!==e.indexOf(t[i]))return!1;return!(navigator.webdriver||!1)}return e.TrackIfNeeded=function(){if(!t())return;var e="device_tr";null==cookieService.GetCookie(e)&&$.post("/api/Stats/device/track",function(){var t=new Date;t.setHours(23,59,59,999);var i=t.toUTCString();cookieService.CreateCookieWithExpirationDate(e,"1",i,"/")})},e.IsRealUser=t,e}(),didomiService=function(){var e={};return e.IsCookiesAllowed=function(){if(Didomi){return!!Didomi.getUserStatus().purposes.consent.enabled.find(e=>e===Didomi.Purposes.Cookies)}return!1},e.IsCreateContentProfileAllowed=function(){if(Didomi){return!!Didomi.getUserStatus().purposes.consent.enabled.find(e=>e===Didomi.Purposes.CreateContentProfile)}return!1},e.IsPermutiveAllowed=function(){if(Didomi){var e=Didomi.getUserStatus();return!(!(e.purposes.consent.enabled.includes(Didomi.Purposes.CreateContentProfile)&&e.purposes.consent.enabled.includes(Didomi.Purposes.Cookies))||!Didomi.getUserConsentStatusForVendor(361))}return!1},e.IsGoogleAllowed=function(){if(Didomi)return Didomi.getUserStatus().vendors.consent.enabled.indexOf("google")>-1;return!1},e}(),googleEventService=function(){var e={};return e.CreateImpressionEventGA4=function(e){gtag("event","impression",{all:e})},e.CreateViewableImpressionEventGA4=function(e){gtag("event","impression",{viewable:e})},e.CreateCustomEventGA4=function(e,t,i){gtag("event",e,{[t]:i})},e.CreateCustomEventParametersGA4=function(e,t){gtag("event",e,t)},e.CreateCustomDimensionsGA4=function(e,t){gtag("event",e,t)},e}(),googleTagService=function(){var e={};return e.AddSlotRenderEndedListener=function(){googletag.cmd.push(function(){googletag.pubads().addEventListener("slotRenderEnded",function(e){var t=e.slot.getSlotElementId(),i=document.getElementById(t);
151if(i){var n=$(i).closest(".js-slot-container");if(n){$(".js-slot-loader",n).remove();var r=n.data("css-remove-after-render");if(r&&n.removeClass(r),!1===e.isEmpty){var a=n.data("css-class"),o=n.data("disclaimer"),s=n.data("has-close-btn");if(a&&n.addClass(a),o){var l=$(".js-slot-disclaimer",n);l&&l.removeClass("display-none")}if(s)if(!isTemplateSponsorship(e.slot.getHtml())){var c=$(".js-slot-holder",n),d=$(".js-slot-close-btn",n),u=c.data("css-class");if(u&&c.addClass(u),d){var p=c.outerHeight().toString();d.css("bottom",p.concat("px")),d.on("click",function(){n.addClass("display-none")}),setTimeout(function(){d.removeClass("display-none")},2e3)}}}}}})})},e}(),homepageAjaxSectionService=function(){var e={Load:function(e){var l=$(".js-ajax-section");if(0===l.length)return;(c={seen:[],read:[],tags:[],categories:[],lastVisit:null},d=new Date(Date.now()-Math.round(performance.now())),new Promise(function(e){setTimeout(function(){e(c)},a);try{indexedDbService.openDatabase().then(function(){return Promise.all([indexedDbService.getRecentDisplayCounts(i,indexedDbService.DisplayTypes.Homepage),indexedDbService.getRecentArticles(t),indexedDbService.getRecentTagCounts(n),indexedDbService.getRecentCategoryCounts(n),indexedDbService.getLastDisplayDate(r,indexedDbService.DisplayTypes.Homepage,d)])}).then(function(t){e({seen:t[0],read:t[1],tags:t[2],categories:t[3],lastVisit:t[4]})}).catch(function(){e(c)})}catch(t){e(c)}}).then(function(e){return{cohortIds:s(),seenArticles:e.seen.slice(0,o).map(function(e){return{id:Number(e.articleId),count:e.count}}),readArticleIds:e.read.slice(0,o).map(Number),readTags:e.tags.slice(0,o).map(function(e){return{id:Number(e.id),count:e.count}}),readCategories:e.categories.slice(0,o).map(function(e){return{id:Number(e.id),count:e.count}}),lastHomepageVisitUtc:e.lastVisit?new Date(e.lastVisit).toISOString():null}})).then(function(t){var i=JSON.stringify(t);l.each(function(){!function(e,t,i){var n=e.data("url");if(!n)return;$.ajax({url:n,method:"POST",contentType:"application/json",data:t,dataType:"html"}).done(function(t){var r=$($.parseHTML(t||"",document,!0));
151$(".js-ajax-slot",e).each(function(){var e=$(this),t=r.filter("."+e.data("slot")).first();t.length?e.replaceWith(t):e.remove()});var a=r.filter(".js-ajax-debug");if(a.length)try{var o=JSON.parse(a.text());window.homepageAjaxDebug=window.homepageAjaxDebug||{},window.homepageAjaxDebug[n]=o,console.table&&console.table(o)}catch(e){}i&&i(e.get(0))}).fail(function(){$(".js-ajax-slot",e).remove()})}($(this),i,e)})});var c,d}},t=12,i=24,n=72,r=24,a=1e3,o=500;function s(){try{var e=JSON.parse(window.localStorage.getItem("_psegs")),t=window.constants&&Array.isArray(window.constants.mappedCohortIds)?new Set(window.constants.mappedCohortIds):null;return Array.isArray(e)&&t?e.filter(function(e){return t.has(e)}).slice(0,o):[]}catch(e){return[]}}return e}(),homepageImpressionService=function(){var e,t,i,n={},r="/api/homepage/seen",a="hp_open_",o=/\/clanak\/[^\/?#]+\/(\d+)\.aspx/,s="article, li, .news-item-container, .scroll-item, .first-news-holder",l=!1,c=new Map,d=new WeakSet,u=new Set,p=new Set,h=[],f=[],m=!1;function g(e){var t=e.target&&e.target.closest?e.target.closest('a[href*="/clanak/"]'):null;if(t){var i=t.getAttribute("href"),n=y(i);if(n&&(function(e){try{localStorage.setItem(a+e,String(Date.now()))}catch(e){}}(n),"click"!==e.type&&"auxclick"!==e.type||w(n,t.closest(s)||t),!/[?&]index_ref=/.test(i))){var r=i.indexOf("#"),o=r>=0?i.substring(r):"",l=r>=0?i.substring(0,r):i,c=/^(https?:\/\/[^\/]+)?\/mobile\//.test(l)?"naslovnica_m":"naslovnica_d";t.setAttribute("href",l+(l.indexOf("?")>=0?"&":"?")+"index_ref="+c+o)}}}function v(t){if(e&&t&&t.querySelectorAll)for(var i=t.querySelectorAll('a[href*="/clanak/"]'),n=0;n<i.length;n++){var r=y(i[n].getAttribute("href"));if(r){var a=i[n].closest(s)||i[n];d.has(a)||(d.add(a),u.add(a),a.setAttribute("data-impression-article-id",r),e.observe(a))}}}function y(e){if(!e)return null;var t=o.exec(e);return t?parseInt(t[1],10):null}function b(t){"hidden"!==document.visibilityState&&t.forEach(function(t){var i=t.target;t.isIntersecting&&t.intersectionRatio>=.5?c.has(i)||c.set(i,setTimeout(function(){c.delete(i),function(t){if("hidden"===document.visibilityState)return;e.unobserve(t),u.delete(t),w(parseInt(t.getAttribute("data-impression-article-id"),10),t)}(i)},1e3)):c.has(i)&&(clearTimeout(c.get(i)),c.delete(i))})}function w(e,n){e&&!p.has(e)&&(p.add(e),m&&(h.push({articleId:e,position:S(n),type:indexedDbService.DisplayTypes.Homepage}),t||(t=setTimeout(x,1500))),f.push(e),f.length>=30?C():i||(i=setTimeout(C,5e3)))}function S(e){var t="homepage",i=e.closest("[data-category-change], section[aria-label]");i&&(t=(i.getAttribute("data-category-change")||i.getAttribute("aria-label")||t).toString().toLowerCase().replace(/^rubrika\s+/,"").replace(/\s+/g,"-"));var n=e.closest(".timeline-content");return n&&(n.classList.contains("latest")?t+=":latest":n.classList.contains("most-read")&&(t+=":most-read")),t}function x(){if(t&&(clearTimeout(t),t=null),m&&0!==h.length){var e=h;h=[],indexedDbService.openDatabase().then(function(){return indexedDbService.addArticleDisplayHistoryBatch(e)}).catch(function(e){console.error("homepageImpressionService flush failed",e)})}}function C(){if(i&&(clearTimeout(i),i=null),0!==f.length){var e=f;f=[];var t=JSON.stringify({ids:e});try{if(navigator.sendBeacon&&navigator.sendBeacon(r,new Blob([t],{type:"application/json"})))return}catch(e){}try{fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:t,credentials:"same-origin",keepalive:!0}).catch(function(){})}catch(e){}}}return n.Init=function(){if(l)return;if("undefined"==typeof IntersectionObserver)return;l=!0,m=void 0!==indexedDbService&&!!window.indexedDB,document.addEventListener("pointerdown",g,!0),document.addEventListener("mousedown",g,!0),document.addEventListener("click",g,!0),void document.addEventListener("auxclick",g,!0),function(){try{for(var e=[],t=Date.now(),i=0;i<localStorage.length;i++){var n=localStorage.key(i);if(n&&0===n.indexOf(a)){var r=parseInt(localStorage.getItem(n),10);(isNaN(r)||t-r>12e4)&&e.push(n)}}for(var o=0;o<e.length;o++)localStorage.removeItem(e[o])}catch(e){}}(),m&&indexedDbService.openDatabase().catch(function(){});e=new IntersectionObserver(b,{threshold:[0,.5]}),v(document.body),"undefined"!=typeof MutationObserver&&new MutationObserver(function(e){for(var t=0;t<e.length;t++)for(var i=e[t].addedNodes,n=0;n<i.length;n++)1===i[n].nodeType&&v(i[n])}).observe(document.body,{childList:!0,subtree:!0});document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState?(c.forEach(function(e){clearTimeout(e)}),c.clear(),x(),C()):u.forEach(function(t){e.unobserve(t),e.observe(t)})}),window.addEventListener("pagehide",function(){x(),C()})},n.Observe=v,n}(),imageLazyLoadService=function(){var e={Init:function(){document.addEventListener("DOMContentLoaded",function(){i(),window.scrollTo(window.scrollX,window.scrollY)})}};e.Render=i,e.lazyImageObserver=new IntersectionObserver(function(t,i){t.forEach(function(t){if(t.isIntersecting){var i=t.target;n(i),e.lazyImageObserver.unobserve(i)}})},t);var t={root:null,rootMargin:"10%",threshold:0};function i(){for(var t=[].slice.call(document.querySelectorAll("[data-echo], [data-echo-background]")),i=0;i<t.length;i++){var a=t[i];r(a,1)&&n(a)}t=[].slice.call(document.querySelectorAll("[data-echo], [data-echo-background]")),"IntersectionObserver"in window?t.forEach(function(t){e.lazyImageObserver.unobserve(t),e.lazyImageObserver.observe(t)}):t.forEach(function(e){n(e)})}
151function n(e){void 0===e.dataset.echoBackground?(e.src=e.dataset.echo,e.removeAttribute("data-echo")):(e.style.backgroundImage="url("+e.dataset.echoBackground+")",e.removeAttribute("data-echo-background"))}function r(e,t){let i=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return!(Math.floor(100-(i.top>=0?0:i.top)/+-i.height*100)<t||Math.floor(100-(i.bottom-n)/i.height*100)<t)}return e}(),indexedDbService=function(){var t,i={},n="article_read_history",r="tag_read_history",a="category_read_history",o="author_read_history",s="displayed_article_history",l={Personalized:"personalized",Homepage:"homepage"};i.DisplayTypes=l;function c(e){return e.type||l.Personalized}i.openDatabase=function(){return new Promise((e,d)=>{if(t)return e(t);try{const u=indexedDB.open("in_localdb",25);u.onerror=function(e){d("Error opening database: "+u.error)},u.onupgradeneeded=function(e){let i,l,c,d,p;i=(t=e.target.result).objectStoreNames.contains(n)?u.transaction.objectStore(n):t.createObjectStore(n,{autoIncrement:!0}),l=t.objectStoreNames.contains(r)?u.transaction.objectStore(r):t.createObjectStore(r,{autoIncrement:!0}),c=t.objectStoreNames.contains(a)?u.transaction.objectStore(a):t.createObjectStore(a,{autoIncrement:!0}),d=t.objectStoreNames.contains(o)?u.transaction.objectStore(o):t.createObjectStore(o,{autoIncrement:!0}),p=t.objectStoreNames.contains(s)?u.transaction.objectStore(s):t.createObjectStore(s,{autoIncrement:!0}),i.indexNames.contains("eventDate")||i.createIndex("eventDate","eventDate",{unique:!1}),l.indexNames.contains("eventDate")||l.createIndex("eventDate","eventDate",{unique:!1}),c.indexNames.contains("eventDate")||c.createIndex("eventDate","eventDate",{unique:!1}),d.indexNames.contains("eventDate")||d.createIndex("eventDate","eventDate",{unique:!1}),p.indexNames.contains("eventDate_position")||p.createIndex("eventDate_position",["eventDate","position"],{unique:!1}),p.indexNames.contains("eventDate")||p.createIndex("eventDate","eventDate",{unique:!1})},u.onsuccess=function(n){t||(t=n.target.result),i.deleteOldRecordsInAllStores(3).then(()=>function(e,i){return new Promise((n,r)=>{try{const a=t.transaction(s,"readwrite"),o=a.objectStore(s).index("eventDate"),l=new Date;l.setHours(l.getHours()-i);const d=o.openCursor(IDBKeyRange.upperBound(l));d.onsuccess=function(t){const i=t.target.result;i&&(c(i.value)===e&&i.delete(),i.continue())},d.onerror=function(e){r(`Error opening cursor: ${e.target.error}`)},a.oncomplete=function(){n()},a.onerror=function(e){r(`Transaction failed: ${e.target.error}`),console.error(`Transaction failed: ${e.target.error}`)}}catch(t){r(`Error deleting ${e} display records older than ${i} hours: ${t}`),console.error(`Error deleting ${e} display records older than ${i} hours: ${t}`)}})}(l.Homepage,24)).then(()=>{e(t)}).catch(e=>{console.error(`Error deleting old records: ${e}`),d(e)})}}catch(e){console.error(e),d(e)}})};var d="homepage_history";function u(e,i){return new Promise((n,r)=>{const a=t.transaction(e,"readonly"),o=IDBKeyRange.lowerBound(new Date(Date.now()-36e5*i)),s=a.objectStore(e).index("eventDate").getAll(o);s.onsuccess=function(e){const t=new Map;(e.target.result||[]).forEach(function(e){t.has(e.id)||t.set(e.id,new Set),t.get(e.id).add(e.articleId)}),n(Array.from(t,([e,t])=>({id:e,count:t.size})).sort((e,t)=>t.count-e.count))},s.onerror=function(e){r(e)}})}return i.addArticleReadHistory=function(e){return e&&e.article&&e.article.id&&function(e){try{var t=JSON.parse(window.localStorage.getItem(d))||{at:Date.now(),read:[],seen:[]};Array.isArray(t.read)||(t.read=[]),Array.isArray(t.seen)||(t.seen=[]),t.read.indexOf(e)<0&&t.read.push(e),t.seen=t.seen.filter(function(t){return t!==e}),t.at=t.at||Date.now(),window.localStorage.setItem(d,JSON.stringify(t))}catch(e){}}(e.article.id),new Promise(async(i,s)=>{try{const c=t.transaction([n,r,a,o],"readwrite");c.oncomplete=function(e){i(e.target.result)},c.onerror=function(e){s("Transaction not opened due to error. Duplicate items not allowed.")};const d=c.objectStore(n),u=c.objectStore(r),p=c.objectStore(a),h=c.objectStore(o);
151if(d.add({eventDate:new Date,id:e.article.id}),e.article.tags)for(var l=0;l<e.article.tags.length;l++)u.add({eventDate:new Date,id:e.article.tags[l].id,articleId:e.article.id});if(e.article.categories)for(l=0;l<e.article.categories.length;l++)p.add({eventDate:new Date,id:e.article.categories[l].id,matPath:e.article.categories[l].materializedPath,articleId:e.article.id});if(e.article.authorIds)for(l=0;l<e.article.authorIds.length;l++)h.add({eventDate:new Date,id:e.article.authorIds[l],articleId:e.article.id})}catch(e){console.error(e),s(e)}})},i.addArticleDisplayHistory=function(e,t,n){return i.addArticleDisplayHistoryBatch([{articleId:e,position:t,type:n}])},i.addArticleDisplayHistoryBatch=function(e){return new Promise(async(i,n)=>{try{if(!e||0===e.length)return i();const r=t.transaction([s],"readwrite");r.oncomplete=function(e){i(e.target.result)},r.onerror=function(e){n("Transaction not opened due to error. Duplicate items not allowed.")};const a=r.objectStore(s),o=new Date;e.forEach(e=>{a.add({eventDate:o,articleId:e.articleId,position:e.position,type:e.type||l.Personalized})})}catch(e){console.error(e),n(e)}})},i.getRecentTags=function(e){return new Promise((i,n)=>{const a=t.transaction(r,"readonly").objectStore(r),o=new Date;o.setHours(o.getHours()-e);const s=IDBKeyRange.lowerBound(o),l=a.index("eventDate").openCursor(s),c={};l.onsuccess=function(e){const t=e.target.result;if(t){const e=t.value;c[e.id]||(c[e.id]=new Set),c[e.id].add(e.articleId),t.continue()}else{const e=Object.keys(c).filter(e=>c[e].size>=2).sort((e,t)=>c[t].size-c[e].size).map(e=>({tagId:e,articleCount:c[e].size}));i(e)}},l.onerror=function(e){n(e)}})},i.getRecentArticles=function(e){return new Promise((i,r)=>{const a=t.transaction(n,"readonly"),o=a.objectStore(n),s=new Date;s.setHours(s.getHours()-e);const l=IDBKeyRange.lowerBound(s),c=o.index("eventDate").openCursor(l),d=new Set;c.onsuccess=function(e){const t=e.target.result;if(t){const e=t.value;d.add(e.id),t.continue()}else{const e=Array.from(d);i(e)}},c.onerror=function(e){r(e)},a.onerror=function(e){r(e)}})},i.getRecentDisplayedArticles=function(e,i,n){return new Promise((r,a)=>{const o=t.transaction(s,"readonly"),d=o.objectStore(s),u=new Date;u.setHours(u.getHours()-e);const p=IDBKeyRange.lowerBound(u),h=d.index("eventDate").openCursor(p),f=new Map;h.onsuccess=function(e){const t=e.target.result;if(t){const e=t.value;if(e.position===i&&c(e)===l.Personalized){const t=f.get(e.articleId)||0;f.set(e.articleId,t+1)}t.continue()}else{const e=Array.from(f).filter(([e,t])=>t>=n).map(([e,t])=>e);r(e)}},h.onerror=function(e){a(e)},o.onerror=function(e){a(e)}})},i.getRecentDisplayCounts=function(e,i){return new Promise((n,r)=>{const a=t.transaction(s,"readonly"),o=a.objectStore(s),l=new Date;l.setHours(l.getHours()-e);const d=IDBKeyRange.lowerBound(l),u=o.index("eventDate").openCursor(d),p=new Map;u.onsuccess=function(e){const t=e.target.result;if(t){const e=t.value;if(c(e)===i){const t=p.get(e.articleId)||{articleId:e.articleId,count:0,lastSeen:null};t.count++,(!t.lastSeen||e.eventDate>t.lastSeen)&&(t.lastSeen=e.eventDate),p.set(e.articleId,t)}t.continue()}else{const e=Array.from(p.values()).sort((e,t)=>t.count-e.count);n(e)}},u.onerror=function(e){r(e)},a.onerror=function(e){r(e)}})},i.getRecentTagCounts=function(e){return u(r,e)},i.getRecentCategoryCounts=function(e){return u(a,e)},i.getLastDisplayDate=function(e,i,n){return new Promise((r,a)=>{const o=t.transaction(s,"readonly"),l=IDBKeyRange.bound(new Date(Date.now()-36e5*e),n,!1,!0),d=o.objectStore(s).index("eventDate").openCursor(l,"prev");d.onsuccess=function(e){const t=e.target.result;return t?c(t.value)===i?r(t.value.eventDate):void t.continue():r(null)},d.onerror=function(e){a(e)}})},i.deleteOldRecordsInAllStores=function(i){return new Promise((n,r)=>{try{const e=Array.from(t.objectStoreNames),a=[];e.forEach(e=>{t.transaction(e,"readonly").objectStore(e).indexNames.contains("eventDate")&&a.push(function(e,i){return new Promise((n,r)=>{try{const a=t.transaction(e,"readwrite"),o=a.objectStore(e).index("eventDate"),s=new Date;s.setDate(s.getDate()-i);const l=IDBKeyRange.upperBound(s),c=o.openCursor(l);c.onsuccess=function(e){const t=e.target.result;t?(t.delete(),t.continue()):n()},c.onerror=function(e){r(`Error opening cursor: ${e.target.error}`)},a.oncomplete=function(){n()},a.onerror=function(e){r(`Transaction failed: ${e.target.error}`),console.error(`Transaction failed: ${e.target.error}`)}}catch(e){r(`Error deleting records older than ${i} days: ${e}`),console.error(`Error deleting records older than ${i} days: ${e}`)}})}(e,i))}),Promise.all(a).then(()=>n()).catch(e=>r(`Error deleting old records in stores: ${e}`))}catch(t){r(`Error iterating over object stores: ${t}`),console.error(`Transaction failed: ${e.target.error}`)}})},i}(),midasService=function(){var e={};return e.InitializeMidas=function(){var e=".js-midas-widget:not(.js-midas-initialized)";if(accountService.UserHasPremium())return void document.querySelectorAll(e).forEach(function(e){e.remove()});document.querySelectorAll(e).forEach(function(e){e.classList.add("js-midas-initialized");var t=e.dataset.widgetId,i=e.dataset.widgetPrefix,n=e.dataset.trackingUrl,r=document.createElement("iframe");r.frameBorder="0",r.height="0",r.width="0",r.src=n,r.style.display="block",e.appendChild(r);var a=document.createElement("div");a.id="midasWidget__"+t,e.appendChild(a);var o=document.createElement("script");o.async=!0,o.src="https://cdn2.midas-network.com/Scripts/midasWidget-"+i+"-"+t+".js",e.appendChild(o)})},e}(),permutiveService=function(){var e={};function t(e,t){window.permutive.track(e,t)}function i(e){try{var t={client:{url:document.URL,referrer:document.referrer,type:"web",user_agent:navigator.userAgent,domain:window.location.hostname,title:document.title}};return"object"!=typeof e||Array.isArray(e)?t:Object.assign({},e,t)}catch(e){return{}}}return e.TriggerAllIfAllowed=function(e,n){return new Promise((r,a)=>{try{didomiService.IsPermutiveAllowed()?(console.log("AD_PERMUTIVE_ALLOWED"),permutive.consent({opt_in:!0,token:Didomi.getUserStatus().consent_string}),console.log("AD_SETING_PERMUTIVE_CONSENT_TOKEN"),(o=accountService.GetUserInfo())&&o.IsLoggedIn&&(console.log("AD_SETTING_PERMUTIVE_IDENTITY"),permutive.identify([{id:o.PPID,tag:"sso_id",priority:0},{id:o.ProfileId.toString(),tag:"indexportal_id",priority:1}])),function(e){if(e&&e.article){var i={},n=e.article.categories.find(e=>e.isRoot);
151n&&(i.rootCategoryName=n.name),i.id=e.article.id,i.url=window.location.href,window.addEventListener("message",e=>{if("SurveyData"==e.data.name){var n=e.data.data;t("SurveyData",{...n,article:i})}else if("CommentData"==e.data.name){n=e.data.data;t("CommentData",{...n,article:i})}},!1)}window.addEventListener("message",e=>{"CarouselLinkClick"==e.data.name&&t("LinkClick",e.data.data)},!1)}(e),e?(e.hourOfDay=(new Date).getHours(),e.article&&(e.article.mediaTypes=[cookieService.GetCookie("ab_ff")]),permutive.addon("web",{page:e}),indexedDbService.openDatabase().then(t=>{indexedDbService.addArticleReadHistory(e)})):permutive.addon("web",{page:{}}),function(e,t){return new Promise((n,r)=>{console.log("AD_CONTEXTUAL_COHORTS_START");var a="https://api.permutive.com/ctx/v1/segment?k=cd150efe-ff8f-4596-bfca-1c8765fae796",o=t,s=new Promise((e,t)=>{setTimeout(()=>{t(new Error("Request timed out"))},o)}),l=fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pageProperties:i(e),url:document.URL})});Promise.race([l,s]).then(e=>e.json()).then(e=>{console.log("AD_CONTEXTUAL_COHORTS_RESPONSE",e),window.permutive.addon("contextual",e),window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(function(){var t=window.googletag.pubads(),i="prmtvctx",n=(e.gam||[]).concat("rts");t.setTargeting(i,n)}),n()}).catch(e=>{console.error("AD_CONTEXTUAL_COHORTS_ERROR",e),r(e)})})}(e||{},n).then(()=>r()).catch(e=>{a(e)})):r()}catch(e){console.error(e),a(e)}var o})},e}(),recaptchaService=function(){var e={Load:function(){if(t)return t;return t=new Promise(function(e,i){if(window.grecaptcha&&window.grecaptcha.render)e(window.grecaptcha);else{window.onRecaptchaApiLoaded=function(){e(window.grecaptcha)};var n=document.createElement("script");n.src="https://www.google.com/recaptcha/api.js?onload=onRecaptchaApiLoaded&render=explicit",n.async=!0,n.defer=!0,n.onerror=function(){t=null,i(new Error("reCAPTCHA API failed to load"))},document.head.appendChild(n)}})}},t=null;return e}(),reportFormService={open:function(e){e=e||{};var t=document.createElement("form");function i(e,i){if(null!=i&&""!==i){var n=document.createElement("input");n.type="hidden",n.name=e,n.value=i,t.appendChild(n)}}t.method="post",t.action="/prijavi-sadrzaj",t.target="_blank",t.style.display="none",i("CommentId",e.commentId),i("StatusId",e.statusId),document.body.appendChild(t),t.submit(),document.body.removeChild(t)}},ssoSyncService=function(){var e={};e.Init=function(){0===(location.pathname||"").toLowerCase().indexOf("/profil/odjava")&&m(n,String(Date.now()+r));!function(){if(!window.constants||!window.constants.ssoAuthority)return;if(void 0!==deviceService&&deviceService.IsRealUser&&!deviceService.IsRealUser())return;if(!(t=h(accountService.GetUserPPID()))&&(p()||function(){var e=parseInt(g(c)||"0",10);return e&&Date.now()-e<d}()))return;if(e=parseInt(g(s)||"0",10),e&&Date.now()-e<l)return;var e;v(s,String(Date.now())),function(){var e=document.createElement("iframe");e.setAttribute("aria-hidden","true"),e.style.display="none",e.style.width="0",e.style.height="0",e.style.border="0",e.src=i;var n=!1,r=null;function s(){r&&(clearTimeout(r),r=null),window.removeEventListener("message",l),e&&e.parentNode&&e.parentNode.removeChild(e)}function l(e){if(e.origin===window.location.origin){var i=e.data;i&&"portal-login-done"===i.type&&(n||(n=!0,s(),function(e,i,n){if(n)return;var r=encodeURIComponent(location.pathname+location.search);if(!t){if(!e)return void v(c,String(Date.now()));if(function(e){try{window.localStorage.removeItem(e)}catch(e){}}(c),p())return;if(function(e){var t=f(a);if(!t)return!1;var i=t.split("|");return i[0]===e&&Date.now()-parseInt(i[1]||"0",10)<o}(i))return;return function(e){m(a,(e||"")+"|"+Date.now())}(i),void location.reload()}if(!e)return void(location.href="/profil/sso-logout-local?redirectUrl="+r);if(i&&i!==t)location.href="/profil/resync?redirectUrl="+r}(!!i.ok,h(i.sub),!!i.error)))}}window.addEventListener("message",l),r=setTimeout(function(){n||(n=!0,s())},u),document.body.appendChild(e)}()}()};var t=null,i="/profil/login-silent",n="sso_sync_suppress_until",r=6e5,a="sso_sync_reloaded_for",o=3e4,s="sso_sync_last_probe",l=18e4,c="sso_sync_no_sso_at",d=9e5,u=8e3;function p(){var e=parseInt(f(n)||"0",10);return e&&Date.now()<e}function h(e){return e?String(e).toLowerCase():e}function f(e){try{return window.sessionStorage.getItem(e)}catch(e){return null}}function m(e,t){try{window.sessionStorage.setItem(e,t)}catch(e){}}function g(e){try{return window.localStorage.getItem(e)}catch(t){return f(e)}}function v(e,t){try{window.localStorage.setItem(e,t)}catch(i){m(e,t)}}return e}(),statusEmbedParser=function(){var e={};function t(){return[{mediaType:StatusMediaTypeEnum.Youtube,contentGroup:2,regexes:[/(https?:\/\/(?:www\.)?youtube\.com\/watch\?v=([a-zA-Z0-9_-]+)(?:&[^\s]*)?)/i,/(https?:\/\/(?:www\.)?youtube\.com\/shorts\/([a-zA-Z0-9_-]+))/i,/(https?:\/\/youtu\.be\/([a-zA-Z0-9_-]+)(\?[^\s]*)?)/i]},{mediaType:StatusMediaTypeEnum.FbWatch,contentGroup:0,regexes:[/https?:\/\/(?:www\.|m\.|web\.)?facebook\.com\/watch\/?\?v=\d+/i,/https?:\/\/(?:www\.|m\.|web\.)?facebook\.com\/[\w.-]+\/videos\/\d+\/?/i,/https?:\/\/(?:www\.|m\.|web\.)?facebook\.com\/reel\/\d+/i,/https?:\/\/fb\.watch\/[\w-]+\/?/i]},{mediaType:StatusMediaTypeEnum.Instagram,contentGroup:0,transform:function(e){return e.replace(/\/reels\//i,"/reel/")},regexes:[/https?:\/\/(?:www\.)?instagram\.com\/(?:reels?|p|tv)\/[\w-]+\/?/i,/https?:\/\/(?:www\.)?instagram\.com\/[\w.-]+\/reels?\/[\w-]+\/?/i,/https?:\/\/instagr\.am\/p\/[\w-]+\/?/i]},{mediaType:StatusMediaTypeEnum.TikTok,contentGroup:0,regexes:[/https?:\/\/(?:www\.|m\.)?tiktok\.com\/@[\w.-]+\/video\/\d+\/?/i,/https?:\/\/(?:www\.)?tiktok\.com\/t\/[\w-]+\/?/i,/https?:\/\/vm\.tiktok\.com\/[\w-]+\/?/i,/https?:\/\/vt\.tiktok\.com\/[\w-]+\/?/i]},{mediaType:StatusMediaTypeEnum.Twitter,contentGroup:1,regexes:[/https?:\/\/(?:www\.|mobile\.)?(?:twitter|x)\.com\/[\w]+\/status\/(\d+)/i]}]}e.ExtractFirstEmbed=function(e){if(!e)return null;for(var i=t(),n=-1,r=null,a=0;a<i.length;a++)for(var o=i[a],s=null!=o.contentGroup?o.contentGroup:0,l=0;l<o.regexes.length;l++){var c=o.regexes[l].exec(e);if(c&&(-1===n||c.index<n)){n=c.index;var d=c[s];o.transform&&(d=o.transform(d)),r={type:o.mediaType,content:d}}}return r},e.ResolveTikTokVideoId=function(e){if(!e)return Promise.resolve(null);var t=e.match(/\/video\/(\d+)/);return t?Promise.resolve(t[1]):i[e]?Promise.resolve(i[e]):fetch("https://www.tiktok.com/oembed?url="+encodeURIComponent(e)).then(function(e){return e.ok?e.json():null}).then(function(t){if(!t||!t.html)return null;var n=t.html.match(/data-video-id="(\d+)"/),r=n?n[1]:null;return r&&(i[e]=r),r}).catch(function(){return null})},e.IsExternalEmbedType=function(e){for(var i=t(),n=0;n<i.length;n++)if(i[n].mediaType===e)return!0;return!1},e.RenderEmbeds=function(e){window.FB&&window.FB.XFBML&&window.FB.XFBML.parse(e);document.querySelector("blockquote.twitter-video, blockquote.twitter-tweet")&&(function(){if(r||window.twttr&&window.twttr.widgets)return;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))return void(r=!0);var e=document.createElement("script");e.async=!0,e.charset="utf-8",e.src="https://platform.twitter.com/widgets.js",document.body.appendChild(e),r=!0}(),function(){if(window.twttr&&window.twttr.widgets)return void window.twttr.widgets.load();if(n)return;var e=0;n=setInterval(function(){e++,window.twttr&&window.twttr.widgets?(clearInterval(n),n=null,window.twttr.widgets.load()):e>=20&&(clearInterval(n),n=null)},300)}())},window.addEventListener("message",function(e){if(e.origin&&-1!==e.origin.indexOf("instagram.com")){var t;try{t="string"==typeof e.data?JSON.parse(e.data):e.data}catch(e){return}if(t&&"MEASURE"===t.type&&t.details&&t.details.height)for(var i=document.querySelectorAll(".status-ig-preview iframe"),n=0;n<i.length;n++)if(i[n].contentWindow===e.source)return void(i[n].style.height=t.details.height+"px")}});var i={};var n,r=!1;return e}(),swipeToCloseService=function(){var e={};return e.Attach=function(e){var t=(e=e||{}).holder,i=e.onClose;if(!t||"function"!=typeof i)return function(){};var n=e.threshold||100,r=e.exclude||null,a=null,o=0,s=!1;function l(){return(("function"==typeof e.scroller?e.scroller():e.scroller)||t).scrollTop<=0}function c(e){t.style.transition="transform 0.2s ease-out, opacity 0.2s ease-out",e?(t.style.transform="translateY(100%)",setTimeout(i,200)):t.style.transform=""}function d(){a=null,o=0,s=!1}function u(e){r&&e.target.closest&&e.target.closest(r)?a=null:l()?(a=e.touches[0].clientY,s=!1,o=0):a=null}function p(e){null!==a&&((o=e.touches[0].clientY-a)>0&&l()?(s=!0,t.style.transition="none",t.style.transform="translateY("+o+"px)",e.preventDefault()):s=!1)}function h(){s&&c(o>n),d()}function f(){s&&c(!1),d()}return t.addEventListener("touchstart",u,{passive:!0}),t.addEventListener("touchmove",p,{passive:!1}),t.addEventListener("touchend",h,{passive:!0}),t.addEventListener("touchcancel",f,{passive:!0}),function(){t.removeEventListener("touchstart",u),t.removeEventListener("touchmove",p),t.removeEventListener("touchend",h),t.removeEventListener("touchcancel",f)}},e}(),taboolaService=function(){var e={};return e.InitializeTaboola=function(){var e=".js-taboola-widget:not(.js-taboola-initialized)";if(accountService.UserHasPremium())return void document.querySelectorAll(e).forEach(function(e){e.remove()});document.querySelectorAll(e).forEach(function(e){e.classList.add("js-taboola-initialized");var t=e.dataset.mode,i=e.dataset.container,n=e.dataset.placement,r=document.createElement("div");r.id=i,r.className="taboola-container",e.appendChild(r),window._taboola=window._taboola||[],_taboola.push({mode:t,container:i,placement:n,target_type:"mix"})})},e}(),textService=function(){var e={DisplayEmbedContent:function(){document.querySelectorAll(".js-editor-embed-container").forEach(e
151=>{i.observe(e)})},CheckDeclension:function(e,t,i,n){let r;return r=e%10,1===r&&(1===e||e>20)?t:r>1&&r<5&&(e>20||e<10)?i:n},InitTypeWriter:function(e,t,i,n){var r=0;!function a(){r<e.length?(t.innerHTML+=e.charAt(r),r++,setTimeout(a,i)):n&&n()}()},AnimateSlideUp:function(e,t,i,n,r){if(e){e.dataset.newValue=i,e.innerHTML=t;const a=[{transform:"translateY(-"+n+")"}],o={duration:r,fill:"forwards",easing:"ease-in-out"};let s=e.animate(a,o);s.finished.then(()=>{e.innerHTML=i,s.cancel()})}},LinkifyUrls:function(e,t){if(!e)return e;var i="number"==typeof t?t:30;return e.replace(r,function(e){var t=e;return 0===t.indexOf("https://")?t=t.substring(8):0===t.indexOf("http://")&&(t=t.substring(7)),t.length>i&&(t=t.substring(0,i)+"..."),'<a href="'+e+'" target="_blank" rel="noopener noreferrer nofollow">'+t+"</a>"})}};let t=[".js-embed-youtube",".js-embed-twitter",".js-embed-instagram",".js-embed-facebook",".js-embed-facebook-blockquote",".js-embed-tiktok","[data-lazyload-unload]"];e.UnloadOnExit=function(e){e&&-1===t.indexOf(e)&&t.push(e)};let i=new IntersectionObserver(function(e,i){e.forEach(function(e){var r=$(e.target);if(e.isIntersecting){if(!r.data("uncommented")){var a=r.attr("data-lazyload-content");a&&r.html(a),r.data("uncommented",!0),n+=1,function(e,t){if(e.hasClass("js-embed-first-image")){(i=$(".js-slot-container",e)).length&&$("img",e).on("load",function(){this.height>=300&&($("#M_photo_article",e).length?(window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(function(){googletag.cmd.push(function(){var e=googletag.defineSlot("/21703950087/M_photo_article",[[320,50],[300,50],[300,75],[320,70]],"M_photo_article").addService(googletag.pubads());googletag.display("M_photo_article"),googletag.pubads().refresh([e])})})):$("#D_photo_article",e).length&&(window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(function(){googletag.cmd.push(function(){var e=googletag.defineSlot("/21703950087/D_photo_article",[[300,100],[300,50],[300,170],[320,100],[320,50],[300,70],[320,70],[300,75]],"D_photo_article").addService(googletag.pubads());googletag.display("D_photo_article"),googletag.pubads().refresh([e])})})))})}else if(e.hasClass("js-embed-image")){var i;(i=$(".js-slot-holder",e)).length&&$("img",e).on("load",function(){if(this.height>=300)if(i.hasClass("d-photo-article-plus")){var e="D_photo_article_plus_"+t;i.attr("id",e),window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(function(){googletag.cmd.push(function(){var t=googletag.defineSlot("/21703950087/D_photo_article_plus",[[320,70],[300,75],[320,50],[300,170],[300,100],[300,70],[300,50],[320,100]],e).addService(googletag.pubads());googletag.display(e),googletag.pubads().refresh([t])})})}else{e="M_photo_article_plus_"+t;i.attr("id",e),window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(function(){googletag.cmd.push(function(){var t=googletag.defineSlot("/21703950087/M_photo_article_plus",[[320,70],[300,50],[300,75],[320,50]],e).addService(googletag.pubads());googletag.display(e),googletag.pubads().refresh([t])})})}})}}(r,n),function(e){var t=$('[id^="TargetVideo_"]',e);if(t.length)var i=t[0].id,n=setInterval(function(){"undefined"!=typeof $bp&&(clearInterval(n),$bp(i).on("start",function(){if(window.tentacles){var e=$bp(i).getTitle();window.tentacles.onVideoPlay({brandId:"index",videoId:i,relationId:i,title:e,pubDate:publishDateZ,channel:"web"})}}))},100)}(r),r.data("height-timeout",setTimeout(()=>{r.css("height","")},2e3)),function(e){return!t.some(function(t){return e.is(t)||e.find(t).length>0})}(r)&&i.unobserve(e.target)}}else{let e=r.data("height-timeout");if(e&&(clearTimeout(e),r.removeData("height-timeout")),r.data("uncommented")){var o=r.height();r.css("height",o),function(e){var t=$('[id^="TargetVideo_"]',e);if(t.length)var i=t[0].id,n=setInterval(function(){"undefined"!=typeof $bp&&(clearInterval(n),$bp(i).destroy())},100)}(r),r.html(""),r.data("uncommented",!1)}}})},{root:null,rootMargin:"100%",threshold:0}),n=0;var r=/https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b[-a-zA-Z0-9()@:%_+.~#?&/=]*/gi;return e}(),weatherChartService=function(){var e={};return e.InitChart=function(e,t,i){var n=document.getElementById("chart-holder");if(null!=n){var r=document.getElementById("icons-holder"),a=_.round(_.min(e)),o=_.round(_.max(e)),s=(n.offsetHeight-1)/(o-a),l=(n.offsetWidth-2)/(e.length-1)-6/(e.length-1);_.forEach(e,function(o,c){var d=_.round(o),u=s*(d-a)-3,p=l*c,h=document.createElement("div");if(h.className="temp-dot",h.style.bottom=u+"px",h.style.left=p+"px",(d=document.createElement("div")).className="temp",d.style.bottom=u+10+"px",d.style.left=p-6+"px",d.textContent=_.round(e[c])+"°",n.appendChild(h),n.appendChild(d),c<e.length-1){var f=_.round(e[c+1]),m=s*(f-a)-h.offsetHeight/2,g=l*(c+1),v="http://www.w3.org/2000/svg",y=document.createElementNS(v,"svg"),b=document.createElementNS(v,"line");b.setAttribute("x1",p+h.offsetWidth/2),b.setAttribute("y1",n.offsetHeight-h.offsetHeight/2-u),b.setAttribute("x2",g+h.offsetWidth/2),b.setAttribute("y2",n.offsetHeight-h.offsetHeight/2-m),y.appendChild(b),n.appendChild(y)}var w=document.createElement("div");w.className="temp-icon-holder",c<e.length-1&&(w.style.marginRight=l-46+6/(e.length-1)+"px");var S=document.createElement("img");S.src="/Content/img/weather/icons/white/"+t[c]+".svg";var x=document.createElement("div");
151x.className="hour",x.textContent=i[c],w.appendChild(S),w.appendChild(x),r.appendChild(w)})}},e}(),articleLiveService=function(){var e={};return e.InitLiveEvent=function(e,t,i,n,r){var a,o="latest",s=null,l=!1,c=!1,d=15e3,u=!1,p=0,h=r,f=$(".js-article-live-broadcast-container .js-items-holder");"True"==e&&(c=!0,a=setInterval(v,d));function m(e){$("html, body").animate({scrollTop:$(".js-article-live-content-container").offset().top-50},500),$('.js-article-live-content-container .main-tab a[href="#'+e+'"]').tab("show")}function g(e){$("html, body").animate({scrollTop:$(e).offset().top-110},0)}function v(){if(document.hidden)return clearInterval(a),void(a=setInterval(v,5e3));clearInterval(a),a=setInterval(v,d),p+=1,$.get(liveItemsAutoRefreshUrl,{sort:o,takeOnlyKeyItems:l,versionSum:h},function(e){var t=$(".js-slot-container",f).index(),i=!1;h=e.versionSum,e.liveItemsList.length&&(e.liveItemsList.slice().reverse().forEach(n=>{var r=$(".js-item-holder[data-item-id="+n.id+"]",f).first();if(r.length){var a=r.data("item-version");n.version!=a&&r.replaceWith(n.html)}else if("oldest"==o)f.append(n.html);else if("latest"==o)if(!i&&t>=5||-1==t&&e.liveItemsList.length>=5){var s=e.liveItemsList.length+p;i=!0,f.prepend(n.html),accountService.UserHasPremium()||$.get(liveItemsAdUnitUrl,{suffix:s},function(e){$(e).insertAfter(".js-item-holder[data-item-id="+n.id+"]",f)})}else f.prepend(n.html)}),$(".js-item-holder",f).each(function(){$el=$(this);var t=$el.data("item-id");e.liveItemsList.find(e=>e.id===t)||$el.addClass("display-none no-border")}),globalDirectives.InitTimeago(),textService.DisplayEmbedContent()),$(".js-article-live-scoreboard-container").html(e.scoreBoardHtml),$(".js-article-live-header-score").html(e.scoreHeaderHtml),$(".js-main-title").html(e.title)})}function y(){$.get(liveItemsSortUrl,{sort:o,takeOnlyKeyItems:l,filter:s},function(e){if(bridPlayerService.DestroyAllPlayersInContainer(".js-article-live-broadcast-container .js-items-holder"),f.html(""),window.googletag&&googletag.apiReady&&"undefined"!=typeof articleLiveSlots)var t=googletag.destroySlots(articleLiveSlots);t&&(articleLiveSlots=[]),f.html(e),globalDirectives.InitTimeago(),textService.DisplayEmbedContent(),t&&!accountService.UserHasPremium()&&googletag.pubads().refresh(articleLiveSlots),!0===c&&(clearInterval(a),a=setInterval(v,d))})}$(".js-article-live-content-container .main-tab li a").on("shown.bs.tab",function(e){var i=$(e.currentTarget).attr("href");g(i),"#tab-content-embed"!=i||u||($(".js-article-live-embed-container").append(t),u=!0)}),$(".js-article-live-content-container .main-tab li.active a").on("click",function(e){g($(e.currentTarget).attr("href"))}),$(".js-live-tab").on("click",function(e){$("html, body").animate({scrollTop:$(".js-article-live-content-container").offset().top-50},500),$('.js-article-live-content-container .main-tab a[href="#tab-content-live"]').tab("show")}),$(".js-live-tab").on("click",function(e){m("tab-content-live")}),$(".js-live-lineup-tab").on("click",function(e){m("tab-content-lineup")}),$(".js-live-embed-tab").on("click",function(e){m("tab-content-embed")}),$(document).on("change",".js-article-live-broadcast-container .js-key-items-toggle",function(){l=!!this.checked,y()}),$(document).on("click touchstart",".js-article-live-broadcast-container .options .dropdown-menu li",function(){var e=$
151(this),t=e.closest(".options"),i=$("i",t),n=e.data("value");$("a",t).html(e.text()+" <i class='"+i.attr("class")+"'></i>"),$("a",t).val(e.text()),t.hasClass("js-order-options")?o=n:t.hasClass("js-filter-options")&&(s=n),y()}),$("#collapse-article-live-details").on("shown.bs.collapse",function(e){var t=$(document).find("[href='#"+$(e.target).attr("id")+"']"),i=$(".js-read-more-text",t),n=$(".js-read-more-icon",t),r=$(".text-overlay",t.parent());i.html("Sakrij"),n.toggleClass("rotate-180"),r.hide()}),$("#collapse-article-live-details").on("hide.bs.collapse",function(e){var t=$(document).find("[href='#"+$(e.target).attr("id")+"']"),i=$(".js-read-more-text",t),n=$(".js-read-more-icon",t),r=$(".text-overlay",t.parent());i.html("ProÄitaj viÅ¡e"),n.toggleClass("rotate-180"),r.show()})},e}(),articleService=function(){var e={};function t(){$(".read-more-slider").each(function(){var e=$(this).parent(),t=e.data("disabled");new Swiper(this,{enabled:!t||!t,spaceBetween:40,slidesPerView:4,lazyPreloadPrevNext:1,loop:!0,watchSlidesProgress:!0,navigation:{nextEl:e.find(".slider-next").get(0),prevEl:e.find(".slider-prev").get(0)}})})}return e.InitializeReadMoreSlider=t,e.InitAll=function(){"undefined"!=typeof relatedArticlesUrl&&(e=relatedArticlesUrl,$(".timeline-tab a").on("shown.bs.tab",function(t){"tab-content-related"==$(t.currentTarget).data("id")&&($(".related-articles-holder").length||$.get(e,function(e){$("#tab-content-related").html(e)}))}));var e;(function(e,t,i,n,r,a,o,s,l){var c=t.map(function(e){return"v-"+e}),d=i.map(function(e){return"v-"+e}),u=n.map(function(e){return"v-"+e}),p={category_id:e,author_ids:u.toString(),keyword_ids:c.toString(),article_id:r,publish_date:a,keyword_names:d.toString(),publish_date_metric:o};s&&(p.text_type_id=s);l&&(p.article_type_id=l);googleEventService.CreateCustomDimensionsGA4("article_data",p),gtag("event","select_content",{content_type:e,item_id:r}),gtag("event","test_select_content",{content_type:e,item_id:r})})(rootCategoryId,keywords,keywordsName,authors,articleId,publishDate,publishDateMetric,textTypeId,articleTypeId),$(".article-report-trigger").click(function(){var e=$
151(this),t=e.data("article-id"),i=e.parent(),n=$(".report-holder",i);n.removeClass("display-none"),browserFingerprintService.getFingerprint().then(function(e){googleEventService.CreateCustomEventGA4("article_prijavi_gresku_button","click",!0),$.get(reportUrl,{articleId:t,browserFingerprint:e},function(e){n.html(e),$(".btn-close-popup").click(function(){n.addClass("display-none").html("<div class='loading-container'><span class='img-helper'></span><img src='/Content/img/loader_40px.gif'/></div>")})})})}),t(),function(){var e,t=$(".main-gallery-popup"),i=$(".article-gallery-featured-container"),n=$(".article-gallery-inline-container");if(t.length||i.length){var r=new URLSearchParams(window.location.search).get("pi");r&&!i.length&&a(r)}t.length&&$(".btn-close-gallery").click(function(){o()});i.length&&(galleryFeaturedSlider=new Swiper(".gallery-featured-slider",{loop:!0,autoHeight:!0,navigation:{nextEl:".article-gallery-featured-holder .slider-next",prevEl:".article-gallery-featured-holder .slider-prev"},pagination:{el:".slider-pagination",type:"fraction"},lazyPreloadPrevNext:1,keyboard:{enabled:!0}}),r&&galleryFeaturedSlider.slideTo(r,0,!1),galleryFeaturedSlider.on("click",function(e,t){t.target.classList.contains("credits-link")||(a(e.realIndex),s(e.realIndex))}),galleryFeaturedSlider.on("realIndexChange",function(e){s(e.realIndex)}));if(n.length){new Swiper(".gallery-inline-slider",{slidesPerView:"auto",spaceBetween:8,loop:!0,lazyPreloadPrevNext:1,navigation:{nextEl:".article-gallery-inline-container .slider-next",prevEl:".article-gallery-inline-container .slider-prev"}}).on("click",function(e,t){var i=e.clickedSlide,n=parseInt(i.getAttribute("data-swiper-slide-index"));a(n),s(n)})}function a(i){if(t.removeClass("display-none"),$("body").addClass("overflow-hidden"),t.hasClass("galleryLoaded"))e.slideTo(i,0,!1);else{googletag.cmd.push(function(){googletag.pubads().refresh([D_galerija_1])}),t.addClass("galleryLoaded");var n=new Swiper(".gallery-desc-slider",{allowTouchMove:!1,loop:!0,effect:"fade",fadeEffect:{crossFade:!0}}),r=new Swiper(".gallery-thumb-slider",{spaceBetween:6,slidesPerView:2,freeMode:!0,loop:!0,watchSlidesProgress:!0,centerInsufficientSlides:!0,breakpoints:{1367:{slidesPerView:8},1025:{slidesPerView:6},750:{slidesPerView:4}}});(e=new Swiper(".gallery-main-slider",{loop:!0,navigation:{nextEl:".main-sliders-holder .slider-next",prevEl:".main-sliders-holder .slider-prev"},controller:{control:n},thumbs:{swiper:r,autoScrollOffset:2},keyboard:{enabled:!0},mousewheel:{enabled:!0}})).slideTo(i,0,!1),e.on("keyPress",function(e,i){27!=i||t.hasClass("display-none")||o()}),e.on("realIndexChange",function(e){s(e.realIndex)})}}function o(){t.addClass("display-none"),$("body").removeClass("overflow-hidden"),updateQueryStringParameter("pi",null)}function s(e){updateQueryStringParameter("pi",e),dm.AjaxEvent("pageview",null,dotmetricsId),googleEventService.CreateCustomEventGA4("ajax_galerija","rubrika",rootCategoryId)}}(articleId),function(){let e=document.querySelectorAll(".js-article-call-to-action");if(e){function t(e,t){e.forEach(function(e){if(e.isIntersecting){let i=e.target.querySelector(".js-article-call-to-action-logo"),n=e.target.querySelector(".js-article-call-to-action-nation"),r=e.target.querySelector(".js-article-call-to-action-visitors");i.classList.add("visible"),setTimeout(function(){n.classList.add("visible")},1e3),setTimeout(function(){textService.InitTypeWriter(r.dataset.text,r,50,function(){var e=r.innerHTML,t=e.match(/^[\d.,]+/);if(t){r.innerHTML='<span class="subtitle__visitors-count js-visitor-count">'+t[0]+"</span>"+e.substring(t[0].length);var i=r.querySelector(".js-visitor-count"),n=parseFloat(t[0].replace(/\./g,"").replace(",",".")),a=parseInt(r.dataset.target),o=30,s=Math.round((a-n)/o),l=n,c=0;function d(){c++;var e=i.innerHTML,t=(l=c<o?l+s:a).toLocaleString("hr-HR");textService.AnimateSlideUp(i,e,t,"22px",250),c<o&&setTimeout(d,5e3)}setTimeout(d,2e3)}})},3e3),t.unobserve(e.target)}})}let i=new IntersectionObserver(t,{root:null,rootMargin:"-25%",threshold:0});e.forEach(e=>{i.observe(e)})}}(),function(e){let t=document.getElementById("comments-entry");
151if(t){function i(i,r){i.forEach(function(i){i.isIntersecting&&($.get(e,function(e){$(t).html(e)}),n.unobserve(i.target))})}let n=new IntersectionObserver(i,{root:null,rootMargin:"500px",threshold:0});n.observe(t)}}(commentsUrl),function(e){userApiService.getInfo().then(function(t){t&&t.data.canModerateComments&&statsApiService.getArticleActiveUsers(e).then(function(e){e&&e.data&&document.getElementsByTagName("article")[0].querySelectorAll(".article-title-holder, .title-holder")[0].insertAdjacentHTML("afterbegin",e.data)}).catch(function(e){})}).catch(function(e){})}(articleId)},e.LogoShrink=function(){var e,t=$(".content-holder").offset().top-100,i=$("[menu-fix-top]");window.matchMedia("(min-width: 1100px)").matches&&$(window).scroll(function(){$(window).scrollTop()>t&&($(".logo",i).addClass("smaller"),$(".main",i).hide(),$(".small",i).show()),e>$(window).scrollTop()&&($(".menu-holder",i).show(),$(".sub-menu",i).show(),$(".logo",i).removeClass("smaller"),$(".main",i).show(),$(".small",i).hide()),e=$(window).scrollTop()})},e.DisplayPromoBox=function(){var e="promoBoxVisibility",t=cookieService.GetCookie(e),i=document.querySelector(".js-article-promo-holder");if(i){if(null===t){var n=new Date;n.setTime(n.getTime()+432e5),a([{key:"donations",value:1},{key:"newsletter",value:0},{key:"empty",value:0}],n.toUTCString())}else{var r=JSON.parse(t);a(r.types,r.expirationDate)}function a(t,n){var r=function(e){if(e.length){var t=e.filter(function(e){return e.value>0});return t[Math.floor(Math.random()*t.length)]}return null}(t);if(null!=r){let a=new IntersectionObserver((i,a)=>{i.forEach(i=>{i.isIntersecting&&(!function(t,i,n){i.value=i.value-1;var r=t.findIndex(e=>e.key==i.key);t[r]=i;var a={types:t,expirationDate:n};cookieService.CreateCookieWithExpirationDate(e,JSON.stringify(a),n)}(t,r,n),"empty"!==r.key&&googleEventService.CreateViewableImpressionEventGA4("article-promo-box-"+r.key),a.unobserve(i.target))})},{root:null,rootMargin:"10%",threshold:0});a.observe(i),"donations"===r.key?$(".js-donations-promo-container").removeClass("display-none"):"newsletter"===r.key&&$(".js-newsletter-promo-container").removeClass("display-none")}}}},e.InitializeReadMoreSliderByElement=function(e){var t=$(e).parent();new Swiper(e,{spaceBetween:40,slidesPerView:4,slidesOffsetAfter:20,lazyPreloadPrevNext:1,loop:!0,watchSlidesProgress:!0,navigation:{nextEl:t.find(".slider-next").get(0),prevEl:t.find(".slider-prev").get(0)}})},e.InitTracking=function(e,t,i,n,r){var a=!1,o=0,s=setInterval(function(){o>=60?(l(),clearInterval(s)):o++}
151,1e3);function l(){if(a)return;a=!0;var s={article_id:t,hours_old:r.toString().replace(",","."),seconds:o,title:n,root_category_id:i};const l=new Blob([JSON.stringify(s)],{type:"application/json"});navigator.sendBeacon(e,l)}window.addEventListener("beforeunload",function(e){l()}),window.addEventListener("visibilitychange",function(e){l()}),window.addEventListener("pagehide",function(e){l()})},e}(),authorService=function(){var e={};function t(e){$(".timeline .dropdown-menu li").click(function(){var t=$(this).data("orderby");window.location.href=e+"?orderby="+t})}return e.ChangeOrderBy=t,e.InitAll=function(){t(orderByUrl)},e}(),categoryService=function(){var e={};function t(e,t){e.height(t.outerHeight(!0))}return e.InitAll=function(){$(".periods .dropdown-menu li").click(function(){var e=$(".periods"),t=$("i",e),i=$(this).data("value");$("a",e).html($(this).text()+" <i class='"+t.attr("class")+"'></i>"),$("a",e).val($(this).text()),$.get(mostReadUrl.replace("%25timerange%25",i),function(e){$(".most-read-holder").html(e)})}
151),$(".other-news .btn-read-more").click(function(){var e=$(this),i=e.parent(),n=i.parent(),r=i.find(".read-more-news"),a=parseInt(e.attr("data-offset")),o=1;t(n,i),r.slice(a,a+1).removeClass("display-none"),e.attr("data-offset",a+1),t(n,i),a+1>=o&&e.addClass("display-none")}),globalDirectives.InitVideo(),globalDirectives.ShowMoreCategorySectionNews(),globalDirectives.InitializeLiveKeyEventsSlider(),globalDirectives.InitializeUserContentSlider(),globalDirectives.InitGallery()},e}(),currencyService=function(){var e,t={};return t.InitAll=function(){"undefined"!=typeof labels&&"undefined"!=typeof data&&function(t,i){var n=document.getElementById("exchange-rate-chart").getContext("2d");e=new Chart(n,{type:"line",data:{labels:t,datasets:[{fill:!0,backgroundColor:"rgb(255, 248, 232)",data:i,radius:0,hitRadius:0}]},options:{locale:"hr-HR",maintainAspectRatio:!1,plugins:{tooltips:{enabled:!1},legend:{display:!1}},scales:{x:{type:"time",time:{displayFormats:{month:"MM.YYYY."}},grid:{display:!1,drawBorder:!1},ticks:{font:{size:11},color:"rgb(130, 130, 130)",minRotation:0,maxRotation:0}},y:{ticks:{font:{size:11},color:"rgb(130, 130, 130)"},grid:{color:"rgb(228, 228, 228)",borderDash:[2,5]}}}}})}(labels,data);!function(){var t=$("#txtRateFirst"),i=$("#txtRateSecond"),n=$("#dropExchangeType"),r=$("#dropCurrencyFirst"),a=$("#dropCurrencySecond"),o=!0;function s(){var e=c(o);o?i.val(e):t.val(e)}function l(t,i,n){$.get(t,{firstCurrency:i,secondCurrency:n},function(t){var i={labels:t.historyDates,datasets:[{fill:!0,backgroundColor:"rgb(255, 248, 232)",data:t.historyRates,radius:0,hitRadius:0}]};e.config.data=i,e.update()})}function c(e){var o=n.find(":selected").data("type"),s=r.find(":selected"),l=a.find(":selected");if(""!=t.val()&&""!=i.val()){var c=parseFloat(t.val().replace(",",".")),d=parseFloat(i.val().replace(",",".")),u=parseFloat(s.data(o).toString().replace(",",".")),p=parseFloat(l.data(o).toString().replace(",",".")),h=parseInt(s.data("unit")),f=parseInt(l.data("unit"));return e?(u*p*c*f).toFixed(2).toString().replace(".",","):(u/p*d*h).toFixed(2).toString().replace(".",",")}return 0}t.on("input",function(){var e=c(o=!0);i.val(e)}),i.on("input",function(){var e=c(o=!1);t.val(e)}),r.on("change",function(){s();var e=r.find(":selected"),t=a.find(":selected");l(refreshChartUrl,e.val(),t.val())}),a.on("change",function(){s();var e=r.find(":selected"),t=a.find(":selected");l(refreshChartUrl,e.val(),t.val())}),n.on("change",function(){s()})}()},t}(),donateService=function(){var e={};function t(e,t){var i=$('[name="TotalAmountTemp"]',e).inputmask("unmaskedvalue"),n={isRecurring:t,shopId:$('[name="ShopID"]',e).val(),shoppingCartId:$('[name="ShoppingCartID"]',e).val(),totalAmount:i};$.get(donateSignatureUrl,n,function(t){$('[name="Signature"]',e).val(t),$('[name="TotalAmount"]',e).val(i),e.submit()})}return e.InitAll=function(){var e=$.validator.methods.range;$.validator.methods.range=function(t,i,n){return"checkbox"===i.type?i.checked:e.call(this,t,i,n)},$.validator.setDefaults({ignore:""}),$(document).ready(function(){$(".input-total-amount").inputmask("numeric",{digits:"0",groupSeparator:".",allowMinus:"false",unmaskAsNumber:!0}),$(".input-total-amount").inputmask("setvalue",7),$(".input-total-amount").on("keyup",function(){$(".values-holder .value").removeClass("active")}
151),$(".value").click(function(){var e=$(this),t=e.parent().parent();$(".value",t).removeClass("active"),e.addClass("active");var i=e.data("val"),n=e.data("form"),r=$("#"+n),a=$('[name="TotalAmountTemp"]',r);a.parent();"ostalo"!==i&&a.val(i)})})},e.SubmitNonRecurring=function(){var e=$("#one_time");return!!e.valid()&&(t(e,!1),!1)},e.SubmitRecurring=function(){var e=$("#recurring");return!!e.valid()&&(t(e,!0),!1)},e}(),homeService=function(){var e={};function t(e){globalDirectives.InitTimeago(e),globalDirectives.TimelineSecondClick(e),globalDirectives.ShowMoreCategorySectionNews(e),globalDirectives.InitVideo(e),globalDirectives.InitializeLiveKeyEventsSlider(e),globalDirectives.InitializeUserContentSlider(e),globalDirectives.InitGallery(e)}function i(){$(document).on("submit",".form-oglasi-search",function(e){e.preventDefault();var t=$(".form-oglasi-search input").val();window.open("http://www.index.hr/oglasi/rezultat-pretrage?ref=index_naslovnica_d&pojam="+t,"_blank")})}function n(){$(document).on("submit",".form-dostave-search",function(e){e.preventDefault();var t=$(".form-dostave-search input").val();window.open("https://dostave.index.hr/pretraga/"+t,"_blank")})}function r(){$(document).on("submit",".form-recepti-search",function(e){e.preventDefault();var t=$(".form-recepti-search input").val();window.open("https://recepti.index.hr/recepti?ref=index_naslovnica_d&search="+t,"_blank")})}return e.OpenOglasiWeb=i,e.OpenDostaveWeb=n,e.openReceptiWeb=r,e.InitKeyTopics=function(){$(".key-topics-swiper-container").each(function(){var e=$
151(this).parent();new Swiper(this,{spaceBetween:16,slidesPerView:"auto",slidesPerGroup:3,observeParents:!0,observer:!0,navigation:{nextEl:e.find(".slider-next").get(0),prevEl:e.find(".slider-prev").get(0)},breakpoints:{1165:{slidesPerGroup:2},800:{slidesPerGroup:1}}})}),$("[key-topics-tab] li").click(function(e){var t=$(this);if(t.hasClass("active")){e.preventDefault(),e.stopPropagation();var i=$("a",t).prop("hash");t.removeClass("active"),$(i).removeClass("active")}})},e.InitAll=function(){globalDirectives.ShowMoreCategorySectionNews(),setTimeout(function(){$.ajax({url:window.location.href,headers:{Pragma:"no-cache",Expires:-1,"Cache-Control":"no-cache"}}).done(function(){$(window).scrollTop(0),window.location.href=window.location.pathname+"?ar=1"})},3e5),i(),n(),r(),$(document).on("submit",".form-cijene-search",function(e){e.preventDefault();var t=$(".form-cijene-search input").val();window.open("https://www.index.hr/cijene/pretraga?upit="+t,"_self")}),globalDirectives.InitVideo(),globalDirectives.InitializeLiveKeyEventsSlider(),globalDirectives.InitializeUserContentSlider(),globalDirectives.InitGallery(),void 0!==homepageImpressionService&&homepageImpressionService.Init(),homepageAjaxSectionService.Load(t)},e}(),layoutService=function(){var e={};e.InitAll=function(){n(),function(){let e=cookieService.GetCookie(t),n=cookieService.GetCookie(i);if(null===e||null===n)s();else try{if(n){var r=moment.utc("10-10-2023-08-00-00","DD-MM-YYYY-HH-mm-ss");moment.utc(n,"DD-MM-YYYY-HH-mm-ss").isSameOrBefore(r)&&r.isSameOrBefore(moment.utc())&&o()}}catch(e){o()}}()}
151,e.MenuNavigationCheck=function(){var e=$(".scroll-menu-arrows-holder");$.each(e,function(e,t){var i=$(t),n=$(".scroll-menu-arrows",i),o=$(".scroll-menu",i),s=$(".scroll-menu-item",o),l=$(s[s.length-1]),c=$(s[0]);a(i,n,l),r(i,n,c,l)})},e.SetCurrentUrl=function(e){window.index=window.index||{},window.index.currentUrl=e},e.SubMenuNavigation=n;var t="ab_ff",i="ab_cr";function n(){var e=$(".scroll-menu-arrows-holder");$.each(e,function(e,t){var i=$(t),n=$(".scroll-menu-arrows",i),o=$(".scroll-menu",i),s=$(".scroll-menu-item",o),l=i.data("animate-width"),c=$(s[s.length-1]),d=$(s[0]);a(i,n,c),r(i,n,d,c),$(".right-arrow",n).click(function(){$(this).hasClass("disabled")||s.is(":animated")||s.animate({left:"-="+l+"px"},function(){r(i,n,d,c)})}),$(".left-arrow",n).click(function(){$(this).hasClass("disabled")||s.is(":animated")||s.animate({left:"+="+l+"px"},function(){r(i,n,d,c)})})})}function r(e,t,i,n){if(null!=i){var r=parseInt(i.css("left"),10);isNaN(r)||r>=0?$(".left-arrow",t).addClass("disabled"):$(".left-arrow",t).removeClass("disabled"),n.position().left<=e.width()-n.width()-t.width()?$(".right-arrow",t).addClass("disabled"):$(".right-arrow",t).removeClass("disabled")}}function a(e,t,i){i.position().left<=e.width()-i.width()-t.width()?$(t).addClass("display-none"):$(t).removeClass("display-none")}function o(){cookieService.DeleteCookie(t),cookieService.DeleteCookie(i),s()}function s(){$.post(abCookieUrl,function(){})}return e}(),newsletterService=function(){var e,t={};return t.InitAll=function(){var t=$.validator.methods.range;$.validator.methods.range=function(e,i,n){return"checkbox"===i.type?i.checked:t.call(this,e,i,n)},$.validator.setDefaults({ignore:""}),$(".btn-submit").on("click",function(){var e="";$("input:checkbox[name=list]:checked").each(function(){void 0===e&&(e=[]),e+=$(this).val()+","}),$("#hdn-selected-lists").val(e);var t=$("#newsletter-frm");t.valid()&&t.submit()}),$("#newsletter-accordion").on("show.bs.collapse",function(t){$("#newsletter-accordion .section-header i").removeClass("rotate-180"),e=t.target;var i=$(t.target).parent();$("i",i).addClass("rotate-180")}),$("#newsletter-accordion").on("hide.bs.collapse",function(t){e==t.target&&$("#newsletter-accordion .section-header i").removeClass("rotate-180")})},t.UpdateStorageAfterSubscription=function(){localStorage.setItem("newsletter_subscribed",!0)},t}(),searchAutocompleteService=function(){var e={};return e.Init=function(e){var t=document.getElementById(e);if(!t)return;var i=t.parentNode;"static"===window.getComputedStyle(i).position&&(i.style.position="relative");var n=document.createElement("div");n.className="tag-autocomplete",n.hidden=!0,i.appendChild(n);var r=null,a="",o=-1;t.addEventListener("input",function(){clearTimeout(r);var e=t.value.trim();if(e.length<3)return a="",void u();r=setTimeout(function(){!function(e){if(e===a)return;a=e,keywordsApiService.search({Query:e,Take:8,ShouldHaveArticlesCount:10}).then(function(t){a===e&&function(e){o=-1,e||(e=[]);var t=d(a),i=e.filter(function(e){return d(e.word)!==t}),r="";a.length>=3&&(r+=function(e){return'<a class="fallback" href="/trazi.aspx?upit='+encodeURIComponent(e)+'">"<strong>'+p(c(e))+'</strong>"</a>'}(a));for(var s=0;s<i.length;s++){var l=i[s].word;r+='<a href="/trazi.aspx?upit='+encodeURIComponent(l)+'">'+p(c(l))+"</a>"}if(!r)return void u();n.innerHTML=r,n.hidden=!1}(t.data)}).catch(function(){u()})}(e)},200)}),t.addEventListener("blur",function(){setTimeout(u,150)}),t.addEventListener("focus",function(){t.value.trim().length>=3&&n.children.length&&(n.hidden=!1)}),t.addEventListener("keydown",function(e){var t=n.querySelectorAll("a");t.length&&!n.hidden&&("ArrowDown"===e.key?(e.preventDefault(),o=Math.min(o+1,t.length-1),l(t)):"ArrowUp"===e.key?(e.preventDefault(),o=Math.max(o-1,-1),l(t)):"Escape"===e.key&&u())});var s=t.closest("form");s&&s.addEventListener("submit",function(e){if(!(n.hidden||o<0)){var t=n.querySelectorAll("a");t.length&&(e.preventDefault(),window.location.href=t[o].href)}});function l(e){for(var t=0;t<e.length;t++)e[t].classList.toggle("active",t===o)}function c(e){return String(e).split(" ").map(function(e){return e.length?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e}).join(" ")}function d(e){return String(e).toLowerCase().normalize("NFD").replace(/[Ì-ͯ]/g,"").trim()}function u(){n.hidden=!0}function p(e){return String(e).replace(/[&<>"']/g,function(e){return{"&":"&","<":"<",">":">",'"':""","'":"'"}[e]})}},e}(),searchService=function(){var e={};function t(e){var t=document.getElementById("DSearch2-"+e),i=document.getElementById("DSearch3-"+e);null==t&&null==i||googletag.cmd.push(function(){if(null!=t){var n=googletag.defineSlot("/21703950087/DSearch2",[[300,250],[1,1]],"DSearch2-"+e).addService(googletag.pubads());googletag.display("DSearch2-"+e),googletag.pubads().refresh([n])}if(null!=i){var r=googletag.defineSlot("/21703950087/DSearch3",[[300,250],[1,1]],"DSearch3-"+e).addService(googletag.pubads());googletag.display("DSearch3-"+e),googletag.pubads().refresh([r])}})}function i(){$(".timeline .dropdown-menu li").click(function(){var e=$
151(this).data("orderby");$("#hdnOrderBy").val(e),$(".form-searchpage").submit()})}return e.ChangeOrderBy=i,e.InitAll=function(){$("#txt-search-input").focus(),i(),$(".search-container .btn-read-more").click(function(){var e=$(this),i=e.parent().find(".search-results-holder"),n=e.attr("data-url"),r=parseInt(e.attr("data-offset")),a=parseInt(e.attr("data-take")),o=parseInt(e.attr("data-total")),s=1e4,l=e.find(".read-more-text"),c=e.find(".main-loader");l.addClass("invisible"),c.removeClass("invisible"),$.get(n,{offset:r,take:a},function(n){var d=r+a;e.attr("data-offset",d),i.append(n),setTimeout(function(){t(r+"_1"),t(r+"_2"),t(r+"_3")}),(d>=s||d>=o)&&e.hide(),l.removeClass("invisible"),c.addClass("invisible")})})},e}(),storyService=function(){var e={};return e.InitAll=function(){!function(e){var t=document.querySelector(".input-file"),i=document.querySelector(".preview").querySelector("ul"),n=[];function r(e){for(var t=$(this).data("file"),i=0;i<n.length;i++)if(n[i].name===t){n.splice(i,1);break}$(this).parent().remove(),a()}function a(){n.length>0?$(".terms-holder").removeClass("display-none"):$(".terms-holder").addClass("display-none")}t.addEventListener("change",function(e){var t=e.target.files;Array.prototype.slice.call(t).forEach(function(e){n.push(e);var t=new FileReader;t.onload=function(t){var n=document.createElement("i");
151n.className="index-close",n.style.cursor="pointer",n.dataset.file=e.name,n.onclick=r;var a=document.createElement("li");a.textContent=e.name,a.appendChild(n),i.appendChild(a)},t.readAsDataURL(e)}),a()}),$("#story-frm").submit(function(t){if(t.preventDefault(),$(this).validate(),$(this).valid()){$(".btn-submit").html("<img src='/Content/img/loader_60px.gif' />").addClass("disabled-btn");var i=new FormData,r=grecaptcha.getResponse();i.append("g-recaptcha-response",r);for(var a=0,o=n.length;a<o;a++)i.append("files",n[a]);var s=$(".input-field");$.each(s,function(e,t){i.append(t.name,t.value)}),$.ajax({type:"POST",url:e,contentType:!1,processData:!1,data:i}).done(function(e){grecaptcha.reset(),e.success?$(".btn-submit").html("PORUKA JE POSLANA"):$(".btn-submit").html(e.message).removeClass("disabled-btn")})}})}(postUrl)},e}(),tagService=function(){var e={};function t(){var e=$(".inner-description").height();e>=203&&($(".read-more").show(),$(".gradient-back").show(),$(".read-more").click(function(){$(this).hasClass("collapse")?($(this).removeClass("collapse"),$(".description").css("height",203),$(".gradient-back").show(),$(this).html("Prikaži još")):($(this).addClass("collapse"),$(".description").css("height",$(".inner-description").outerHeight()),$(".gradient-back").hide(),$(this).html("Prikaži manje"))}))}function i(e){$(".timeline .dropdown-menu li").click(function(){var t=$(this).data("orderby");window.location.href=e+"?orderby="+t})}function n(e,t){var i=document.getElementById("D_Tag_L_Plus-"+e),n=document.getElementById("D_Tag_R_Plus-"+e);null==i&&null==n||googletag.cmd.push(function(){if(null!=i){var r=googletag.defineSlot("/21703950087/D_Tag_L_Plus",[[300,250],[1,1]],"D_Tag_L_Plus-"+e).addService(googletag.pubads());googletag.display("D_Tag_L_Plus-"+e),t||googletag.pubads().refresh([r])}if(null!=n){var a=googletag.defineSlot("/21703950087/D_Tag_R_Plus",[[300,250],[1,1]],"D_Tag_R_Plus-"+e).addService(googletag.pubads());googletag.display("D_Tag_R_Plus-"+e),t||googletag.pubads().refresh([a])}})}return e.ShowMoreDescription=t,e.ChangeOrderBy=i,e.InitAll=function(){n("0_2",!0),t(),i(orderByUrl),$(".tag-container .btn-read-more").click(function(){var e=$
151(this),t=e.parent().find(".articles-container"),i=e.attr("data-url"),r=parseInt(e.attr("data-offset")),a=parseInt(e.attr("data-take")),o=parseInt(e.attr("data-total")),s=1e4,l=e.find(".read-more-text"),c=e.find(".main-loader");l.addClass("invisible"),c.removeClass("invisible"),$.get(i,{offset:r,take:a},function(i){var d=r+a;e.attr("data-offset",d),t.append(i),setTimeout(function(){n(r+"_1",!1),n(r+"_2",!1)}),(d>=s||d>=o)&&e.hide(),l.removeClass("invisible"),c.addClass("invisible")})}),function(e){let t=document.getElementById("comments-entry");if(t){function i(i,r){i.forEach(function(i){i.isIntersecting&&($.get(e,function(e){$(t).html(e)}),n.unobserve(i.target))})}let n=new IntersectionObserver(i,{root:null,rootMargin:"500px",threshold:0});n.observe(t)}}(commentsUrl),globalDirectives.InitVideo(),globalDirectives.InitializeLiveKeyEventsSlider(),globalDirectives.InitializeUserContentSlider(),globalDirectives.InitGallery()},e}(),timelineService=function(){var e={};return e.InitAll=function(){(function(e){$(".drop-down-filter .dropdown-menu li").click(function(){var t=$(this).data("timerange");window.location.href=e.replace("%25timerange%25",t)})})(mostReadUrl),$(".timeline-latest-wrapper .btn-read-more").click(function(){var e=$
151(this),t=e.parent().find(".articles-container"),i=e.attr("data-url"),n=parseInt(e.attr("data-offset")),r=parseInt(e.attr("data-take")),a=parseInt(e.attr("data-total")),o=e.find(".read-more-text");o.addClass("invisible");var s,l=(s={},window.googletag&&googletag.pubads&&googletag.pubads().getSlots&&googletag.pubads().getSlots().forEach(function(e){s[e.getSlotElementId()]=!0}),s);$.get(i,{offset:n,take:r},function(i){var s=n+r;e.attr("data-offset",s),t.append(i),s>=a&&e.hide(),o.removeClass("invisible"),function(e){window.googletag&&googletag.cmd&&setTimeout(function(){googletag.cmd.push(function(){var t=googletag.pubads().getSlots().filter(function(t){return!e[t.getSlotElementId()]}),i=[];t.forEach(function(e){var t=document.getElementById(e.getSlotElementId());t&&"true"===t.dataset.useMra?googletag.pubads().refresh([e]):i.push(e)}),i.length>0&&googletag.pubads().refresh(i)})},50)}(l)})})},e}(),videoService=function(){var e={};return e.InitAll=function(){},e}(),weatherForecastService=function(){var e={};return e.InitAll=function(){weatherChartService.InitChart(data,icons,hours),$(".cities .dropdown-menu li").click(function(){var e=$
151(this).data("city");cookieService.CreateCookie("weatherSelectedCity",e,1e3),location.reload()}),$(".regions .dropdown-menu li").click(function(){var e=$(".regions"),t=$("i",e),i=$(this).data("value");$("a",e).html($(this).text()+" <i class='"+t.attr("class")+"'></i>"),$("a",e).val($(this).text()),$(".region-holder").removeClass("active"),$("[data-region='"+i+"']").addClass("active")})},e}(),affairService=function(){var e={};function t(){$(".js-person-expand").click(function(){var e=$(this),t=e.parent();$(".display-none",t).removeClass("display-none"),e.remove()})}function i(){var e=$(".js-select-affairs-sort"),t=$(".js-select-affairs-filter"),i=$(".js-affairs-list-holder");e.on("change",function(){n(e,t,i)}),t.on("change",function(){n(e,t,i)})}function n(e,t,i){e.parent().addClass("loading"),t.parent().addClass("loading"),setTimeout(function(){$.get(affairsFilterUrl,{sortBy:e.val(),filterBy:t.val()},function(n){i.html(""),i.html(n),globalDirectives.InitTimeago(),e.parent().removeClass("loading"),t.parent().removeClass("loading")})},500)}function r(){$(".js-timeline-tab li a").on("shown.bs.tab",function(e){var t=$(e.currentTarget);if("tab-content-most-read"==t.data("id")){var i=t.data("affair-id"),n=t.data("take"),r=t.data("keywords"),a=t.data("success"),o=$(".js-articles-holder-most-read-"+i);o&&!a&&(t.attr("data-success",!0),$.get(articlesMostReadUrl,{keywords:r,take:n},function(e){o.html(""),o.html(e),globalDirectives.InitTimeago()}))}})}function a(){$("#collapse-description").on("shown.bs.collapse",function(e){var t=$(document).find("[href='#"+$(e.target).attr("id")+"']"),i=$(".js-read-more-text",t),n=$(".js-read-more-icon",t),r=$(".text-overlay",t.parent());i.html("Sakrijte"),n.toggleClass("rotate-180"),r.hide()}),$("#collapse-description").on("hide.bs.collapse",function(e){var t=$(document).find("[href='#"+$(e.target).attr("id")+"']"),i=$(".js-read-more-text",t),n=$(".js-read-more-icon",t),r=$(".text-overlay",t.parent());i.html("ProÄitajte sve"),n.toggleClass("rotate-180"),r.show()})}return e.InitHome=function(){t(),e=$(".js-select-persons"),n=$(".js-persons-list-holder"),e.on("change",function(){var t=this.value;e.parent().addClass("loading"),$.get(personsByInstitutionUrl,{institutionId:t},function(t){n.html(t),e.parent().removeClass("loading")})}),$(n).on("click",".js-btn-all-persons",function(){var t=e.val();$.get(personsByInstitutionAllUrl,{institutionId:t},function(e){n.html(e)})}),i(),r();var e,n}
151,e.InitAffairDetails=function(){t(),function(){var e=$(".js-btn-load-more-latest"),t=$(".js-btn-load-more-most-read"),i=$(".js-articles-holder-latest"),n=$(".js-articles-holder-most-read"),r=e.data("keywords"),a=e.data("take"),o=2,s=2;e.on("click",function(){$.get(articlesLoadMoreLatestUrl,{keywords:r,page:o,take:a},function(t){i.append(t.html),o+=1,globalDirectives.InitTimeago(),0==t.count&&e.remove()})}),t.on("click",function(){$.get(articlesLoadMoreMostReadUrl,{keywords:r,page:s,take:a},function(e){n.append(e.html),s+=1,globalDirectives.InitTimeago(),0==e.count&&t.remove()})})}(),r(),a(),function(e){let t=document.getElementById("comments-entry");if(t){function i(i,r){i.forEach(function(i){i.isIntersecting&&($.get(e,function(e){$(t).html(e)}),n.unobserve(i.target))})}let n=new IntersectionObserver(i,{root:null,rootMargin:"500px",threshold:0});n.observe(t)}}(commentsUrl)},e.InitPersonDetails=function(){t(),i(),r(),a()},e}(),blackWeekService=function(){var e={};return e.InitAll=function(){countDownService.StartCountDown(dateTimeFrom,".counter",1e3),new Swiper(".swiper",{centeredSlides:!0,speed:15e3,spaceBetween:40,autoplay:{delay:1,disableOnInteraction:!1},loop:!0,slidesPerView:"auto",allowTouchMove:!1})},e}(),calendarService=function(){var e={};return e.InitHome=function(){$(".js-btn-read-more").each(function(){var e,t,i,n,r,a;e=$(this),t=$(".js-list-holder",e.parent()),i=parseInt(e.data("skip")),n=parseInt(e.data("take")),r=parseInt(e.data("total")),a=e.data("url"),e.on("click",function(){$.get(a,{skip:i,take:n},function(a){var o=i+n;e.attr("data-skip",o),i=o,t.append(a),o>=r&&e.hide()})})}
151),$(".js-load-more-articles").each(function(){var e=$(this);e.on("click",function(){$(".js-articles",e.parent()).find(".article.display-none").removeClass("display-none"),e.hide()})})},e}(),christmasGiftsService=function(){var e,t={};return t.InitAll=function(){$(".homes-accordion").on("show.bs.collapse",function(t){$(".homes-accordion .nav-trigger i").removeClass("rotate-180"),e=t.target;var i=$(t.target).parent();$(".nav-trigger i",i).addClass("rotate-180")}),$(".homes-accordion").on("hide.bs.collapse",function(t){e==t.target&&$(".homes-accordion .nav-trigger i").removeClass("rotate-180")}),$(".panel-collapse").on("shown.bs.collapse",function(e){var t=$(this).closest(".panel");$("html,body").animate({scrollTop:t.offset().top-70},400)}),$(".btn-donate").on("click",function(){var e=$(this);$(".table-row-form").remove(),$(".btn-donate").show(),e.hide();var t=e.data("person"),i=e.parent().parent();$.post(donateFormUrl,{person:t},function(t){var n=$("<tr></tr>").addClass("table-row-form no-border");n.html('<td colspan="4">'+t+"</td>"),i.after(n),$(".btn-cancel",n).click(function(){e.show(),n.remove()})})})},t}(),christmasService=function(){var e={};return e.InitAll=function(){new Swiper(".swiper",{spaceBetween:0,centeredSlides:!0,speed:51e3,autoplay:{delay:1,disableOnInteraction:!1},loop:!0,slidesPerView:"auto",allowTouchMove:!1})},e}(),competitionService=function(){var e={};function t(e,t){e.height(t.outerHeight(!0))}return e.InitAll=function(){countDownService.StartCountDown(dateTimeFrom,".counter",6e4),$(".scroll-to-schedule").click(function(){$("html, body").animate({scrollTop:$(".schedule-container").offset().top-60},600)}),e=$(".popular-tag"),e.click(function(t){var i=$(this);if(!i.hasClass("active")){e.removeClass("active"),i.addClass("active");var n=$(".news-holder");n.addClass("display-none");var r=i.index();n.eq(r).removeClass("display-none")}}
151),$(".category-holder .btn-read-more").click(function(){var e=$(this),i=e.parent(),n=i.parent(),r=i.find(".read-more-news"),a=parseInt(e.attr("data-offset")),o=3;t(n,i),a>=o?(e.addClass("display-none"),t(n,i)):(r.slice(a,a+1).removeClass("display-none"),e.attr("data-offset",a+1),t(n,i))}),$(".periods .dropdown-menu li").click(function(){var e=$(".periods"),t=$("i",e),i=$(this).data("value");$(this).data("category"),$("a",e).html($(this).text()+" <i class='"+t.attr("class")+"'></i>"),$("a",e).val($(this).text()),$.get(mostReadUrl.replace("%25timerange%25",i),function(e){$(".most-read-holder").html(e)})});var e},e}(),easterService=function(){var e={};return e.InitAll=function(){new Swiper(".swiper",{spaceBetween:0,speed:51e3,autoplay:{delay:1,disableOnInteraction:!1},loop:!0,slidesPerView:"auto",allowTouchMove:!1})},e}(),globalDirectives=function(){var e,t={};function i(){var t=$("[menu-fix-top]"),i=$("[live-header-fixed-top]"),n=t.find(".js-logo");e=$("[data-category-change]"),$(".menu-drop",t).on("click",".expandable",function(){var e=$
151(".dropdown-content",$(this).parent());if(!e.hasClass("display-none")){var t=$(this).data("href");if(t)return void(window.location.href=t)}$(".menu-drop .dropdown-content").addClass("display-none"),e.removeClass("display-none")}),$(document).click(function(e){$(e.target).closest(".menu-drop").length||$(".dropdown-content",t).addClass("display-none")});var r=0;document.onscroll=function(){var a,o=$(".main-menu-container").offset().top;if(window.scrollY>o?(t.addClass("fixed-top"),$(".menu-holder",t).hide(),$(".sub-menu",t).hide(),i.addClass("fixed-top")):(t.removeClass("fixed-top"),i.removeClass("fixed-top")),r>window.scrollY&&($(".menu-holder",t).show(),$(".sub-menu",t).show()),$.each(e,function(e,t){var i=$(t);window.scrollY>=i.offset().top-n.height()&&(a=i)}),a){var s=a.data("category-change");n.removeClass().addClass("js-logo logo "+s+"-gradient-bg "+s+"-bg-dark-hover")}r=window.scrollY}}function n(e){$("[timeago]",e).timeago()}function r(e){$("[timeline-tab] li",e).click(function(){var e=$(this);if(e.hasClass("active")){var t=$(this).parent().data("category"),i=$(this).parent().data("category-id");e.hasClass("latest-"+t)?window.location.href="/najnovije?kategorija="+i:e.hasClass("most-read-"+t)&&(window.location.href="/najcitanije?kategorija="+i)}})}function a(){$("[back-to-top]").click(function(){$("html, body").animate({scrollTop:0},600)})}function o(){var e=$("[breaking-news]");if(0!==e.length){var t=cookieService.GetCookie("hiddenBreakingNews");null!=t&&t==e.data("breaking-id")&&e.hide()}}return t.CloseBreakingNews=function(){o(),$("[breaking-news] .close-btn").click(function(){var e=$
151("[breaking-news]"),t=e.data("breaking-id");e.hide(),cookieService.CreateCookie("hiddenBreakingNews",t,7)}),window.addEventListener("pageshow",o)},t.MainMenuFixDirective=i,t.FbShareDirective=function(){$("[fb-share]").click(function(){var e=$(this).data("facebook-url");FB.ui({method:"share",display:"popup",href:e},function(e){})})},t.InitTimeago=n,t.TimelineSecondClick=r,t.ScrollToTop=a,t.ShowLoginPopup=function(){$(".js-login-popup").toggleClass("display-none")},t.ShowMoreCategorySectionNews=function(e){$(".category-section-holder .view-more-buttons .btn-next",e).click(function(){var e=$(this),t=e.parent().parent(),i=$(".other-news-holder:not(.display-none)",t),n=$(".btn-prev",t),r=i.data("page"),a=e.data("category-id"),o=$(".other-news-holder",t),s=r+1,l=r-1,c=$(o[s]);o.addClass("display-none").removeClass("flex"),c.removeClass("display-none").addClass("flex"),null==o[s+1]&&(e.removeClass("flex"),e.addClass("display-none")),null==o[l]&&(n.removeClass("display-none"),n.addClass("flex"));var d={categoryId:a,page:s};googleEventService.CreateCustomEventParametersGA4("prikazi_jos_vijesti_d",d)}),$(".category-section-holder .view-more-buttons .btn-prev",e).click(function(){var e=$
151(this),t=e.parent().parent(),i=$(".other-news-holder:not(.display-none)",t),n=$(".btn-next",t),r=i.data("page"),a=$(".other-news-holder",t),o=r+1,s=r-1,l=$(a[s]);a.addClass("display-none").removeClass("flex"),l.removeClass("display-none").addClass("flex"),null==a[o-1]?(n.removeClass("flex"),n.addClass("display-none")):(n.addClass("flex"),n.removeClass("display-none")),null==a[s-1]?e.addClass("display-none"):e.removeClass("display-none")})},t.InitializeUserContentSlider=function(e){$(".user-content-slider",e).each(function(){var e=this.parentElement,t=e.querySelector(".slider-prev"),i=e.querySelector(".slider-next");new Swiper(this,{slidesPerView:"auto",touchEventsTarget:"container",spaceBetween:25,navigation:{nextEl:i,prevEl:t}});const n=e.getBoundingClientRect();e.addEventListener("mousemove",e=>{e.clientX-n.left<81?t.classList.add("visible"):t.classList.remove("visible")}),e.addEventListener("mouseleave",()=>{t.classList.remove("visible")})})},t.InitializeLiveKeyEventsSlider=function(e){$(".live-key-events-slider",e).each(function(){var e=this.parentElement,t=e.querySelector(".slider-prev"),i=e.querySelector(".slider-next");new Swiper(this,{slidesPerView:"auto",touchEventsTarget:"container",navigation:{nextEl:i,prevEl:t}});const n=e.getBoundingClientRect(),r=n.width/2;e.addEventListener("mousemove",e=>{e.clientX-n.left<r?(t.classList.add("visible"),i.classList.remove("visible")):(t.classList.remove("visible"),i.classList.add("visible"))}),e.addEventListener("mouseleave",()=>{t.classList.remove("visible"),i.classList.remove("visible")})})},t.InitVideo=function(e){const t=(e||document).querySelectorAll("video[data-src]"),i=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(e.isIntersecting){const i=e.target,n=document.createElement("source");n.src=i.getAttribute("data-src"),n.type="video/mp4",i.appendChild(n),i.load(),t.unobserve(i)}})});t.forEach(e=>i.observe(e))},t.InitGallery=function(e){let t=(e||document).getElementsByClassName("js-gallery-container");if(t.length>0){let e=new IntersectionObserver((e,t)=>{e.forEach(function(e){if(e.isIntersecting){const i=e.target,n=i.getElementsByTagName("img");if(n&&n.length>0){const e=Array.from(n);let t=0;setInterval(function(){const i=e[t],n=(t+1)%e.length;e[n].classList.add("show"),setTimeout(function(){i.classList.remove("show"),t=n},1e3)},3e3)}t.unobserve(i)}})},{root:null});Array.from(t).forEach(t=>{e.observe(t)})}},t.InitAll=function(){i(),n(),r(),a(),$("[share-button]").click(function(){var e=$
151(this),t=e.data("facebook-url");t&&window.open("https://www.facebook.com/sharer/sharer.php?u="+t,"pop","width=600, height=400, scrollbars=no");var i="desktop_"+e.data("share-action"),n=e.data("article-id");googleEventService.CreateCustomEventGA4("article_share",i,n)}),$("[google-follow-button]").click(function(){var e=$(this),t="desktop_"+e.data("follow-action"),i=e.data("article-id");googleEventService.CreateCustomEventGA4("google_follow",t,i)}),$(".social-holder .other").click(function(){var e=$(this),t=e.parent(),i=$(".share-buttons-holder",t);i.removeClass("display-none"),e.addClass("display-none"),$(".btn-close",i).click(function(){i.addClass("display-none"),e.removeClass("display-none")})}),$("[close-popup]").click(function(){$(this).closest(".popup-overlay-container").toggleClass("display-none"),$("body").removeClass("overflow-hidden")}),setInterval(function(){if(window.location.href.indexOf("#google_vignette")>-1){var e=document.getElementsByTagName("ins");e.length>0&&Array.from(e).forEach(e=>{if(e.hasAttribute("data-google-query-id")&&!e.getElementsByClassName("dfp-close-btn")[0]){var t=document.createElement("i");t.classList.add("index-close");var i=document.createElement("div");i.classList.add("close-btn-creative");var n=document.createElement("div");n.classList.add("dfp-close-btn"),n.setAttribute("style","position: absolute;right: 20px;top: 20px;z-index: 99999;height: 40px;width: 40px;cursor:pointer; "),n.onclick=function(){e.style.display="none"},i.appendChild(t),n.appendChild(i),e.appendChild(n)}})}},1e3),$("[tags-load-more]").click(function(){var e=this.closest(".tags-holder");e&&(e.querySelectorAll(".tag-item.display-none").forEach(function(e){e.classList.remove("display-none")}),this.remove())})},t.RefreshCategoryChangeElements=function(){e=$("[data-category-change]")},t}(),chatApiService=function(){};chatApiService.showHistoryByRoom=function(e){return axios.get(`${window.constants.chatHost}/show-history/${e}`)},chatApiService.sendMessage=function(e,t){return axios.post(`${window.constants.chatHost}/send-message/`,e,{headers:{Authorization:"Bearer "+t}})},chatApiService.deleteMessage=function(e,t){return axios.post(`${window.constants.chatHost}/delete-message/`,e,{headers:{Authorization:"Bearer "+t}})},chatApiService.disableUser=function(e,t){return axios.post(`${window.constants.chatHost}/disable-user/`,e,{headers:{Authorization:"Bearer "+t}})};var cijeneApiService=function(){};cijeneApiService.getCities=function(){return axios.get("/api/cijene/cities")},cijeneApiService.getCategoriesByParent=function(e){return axios.get("/api/cijene/categories/by-parent",{params:{parentId:e}})},cijeneApiService.getCategoriesByLevel=function(e){return axios.get("/api/cijene/categories/by-level",{params:{level:e}})},cijeneApiService.getCategoriesHome=function(){return axios.get("/api/cijene/categories/home")},cijeneApiService.getCategoryDescendants=function(e){return axios.get("/api/cijene/categories/descendants",{params:{categoryId:e}})},cijeneApiService.getProducts=function(e,t){return axios.get("/api/cijene/products",{params:{q:e,limit:t||25}})},cijeneApiService.getCartAlternativesByCity=function(e,t,i){return axios.get("/api/cijene/products/alternatives/by-city",{params:{barcode:e,retailerId:t,city:i}})},cijeneApiService.getCartAlternativesByLocation=function(e,t,i,n,r){return axios.get("/api/cijene/products/alternatives/by-location",{params:{barcode:e,retailerId:t,lat:i,lng:n,radius:r||30}})},cijeneApiService.getCartPricesByCity=function(e,t,i){return axios.get("/api/cijene/prices/by-city/cart",{params:{barcodes:e.join(","),city:t,suggestFor:i&&i.length?i.join(","):null}})},cijeneApiService.getCartPricesByLocation=function(e,t,i,n,r){return axios.get("/api/cijene/prices/by-location/cart",{params:{barcodes:e.join(","),lat:t,lng:i,radius:n||30,suggestFor:r&&r.length?r.join(","):null}})},cijeneApiService.getPricesByCity=function(e,t){return axios.get("/api/cijene/prices/by-city/product/"+encodeURIComponent(e),{params:{city:t}})},cijeneApiService.getPricesByLocation=function(e,t,i,n){return axios.get("/api/cijene/prices/by-location/product/"+encodeURIComponent(e),{params:{lat:t,lng:i,radius:n||30}})},cijeneApiService.getPopularProductsByCity=function(e,t){return axios.get("/api/cijene/products/popular/by-city",{params:{city:e,categoryId:t||void 0}})},cijeneApiService.getPopularProductsByLocation=function(e,t,i,n){return axios.get("/api/cijene/products/popular/by-location",{params:{lat:e,lng:t,radius:i||30,categoryId:n||void 0}})},cijeneApiService.searchProductsByCity=function(e,t,i,n){return axios.get("/api/cijene/products/search/by-city",{params:{q:e,city:t,skip:i||0,take:n||20}})},cijeneApiService.searchProductsByLocation=function(e,t,i,n,r,a){return axios.get("/api/cijene/products/search/by-location",{params:{q:e,lat:t,lng:i,radius:n||30,skip:r||0,take:a||20}})},cijeneApiService.getTopPriceDiffsByCity=function(e,t,i){return axios.get("/api/cijene/prices/by-city/top-diffs",{params:{city:e,skip:t||0,take:i||5}})},cijeneApiService.getTopPriceDiffsByLocation=function(e,t,i,n,r){return axios.get("/api/cijene/prices/by-location/top-diffs",{params:{lat:e,lng:t,radius:i||30,skip:n||0,take:r||5}})},cijeneApiService.getRetailerTopPriceDiffsByCity=function(e,t,i,n){return axios.get("/api/cijene/prices/by-city/top-diffs/retailer",{params:{city:e,retailerId:t,skip:i||0,take:n||5}})},cijeneApiService.getRetailerTopPriceDiffsByLocation=function(e,t,i,n,r,a){return axios.get("/api/cijene/prices/by-location/top-diffs/retailer",{params:{lat:e,lng:t,retailerId:i,radius:n||30,skip:r||0,take:a||5}})},cijeneApiService.getCategoryTopPriceDiffsByCity=function(e,t,i,n){return axios.get("/api/cijene/prices/by-city/top-diffs/category",{params:{categoryId:e,city:t,skip:i||0,take:n||20}})},cijeneApiService.getCategoryTopPriceDiffsByLocation=function(e,t,i,n,r,a){return axios.get("/api/cijene/prices/by-location/top-diffs/category",{params:{categoryId:e,lat:t,lng:i,radius:n||30,skip:r||0,take:a||20}})},cijeneApiService.getRetailerCheapestByCity=function(e,t,i,n){return axios.get("/api/cijene/prices/by-city/cheapest/retailer",{params:{city:e,retailerId:t,skip:i||0,take:n||20}})},cijeneApiService.getRetailerCheapestByLocation=function(e,t,i,n,r,a){return axios.get("/api/cijene/prices/by-location/cheapest/retailer",{params:{lat:e,lng:t,retailerId:i,radius:n||30,skip:r||0,take:a||20}})},cijeneApiService.countUpProductView=function(e){return axios.post("/api/cijene/products/count-up-view",null,{params:{barcode:e}})},cijeneApiService.countUpProductSearch=function(e){return axios.post("/api/cijene/products/count-up-search",null,{params:{barcode:e}})},cijeneApiService.countUpProductFavorite=function(e){return axios.post("/api/cijene/products/count-up-favorite",null,{params:{barcode:e}})},cijeneApiService.countUpProductCart=function(e){return axios.post("/api/cijene/products/count-up-cart",null,{params:{barcode:e}})},cijeneApiService.countUpCategoryClick=function(e){return axios.post("/api/cijene/categories/count-up-click",null,{params:{categoryId:e}})},cijeneApiService.getFavoriteProductsByCity=function(e){return axios.get("/api/cijene/favorites/products/by-city",{params:{city:e}})},cijeneApiService.getFavoriteProductsByLocation=function(e,t,i){return axios.get("/api/cijene/favorites/products/by-location",{params:{lat:e,lng:t,radius:i||30}})},cijeneApiService.getFavoritesCount=function(){return axios.get("/api/cijene/favorites/count")},cijeneApiService.addFavorite=function(e){return axios.post("/api/cijene/favorites/"+encodeURIComponent(e))},cijeneApiService.removeFavorite=function(e){return axios.post("/api/cijene/favorites/"+encodeURIComponent(e)+"/remove")};var commentsApiService=function(){};commentsApiService.getByThread=function(e){return axios.get("/api/comments/v2",{params:e})},commentsApiService.getRepliesByComment=function(e){return axios.get("/api/comments/v2/replies",{params:e})},commentsApiService.getByUser=function(e){return axios.get("/api/comments/v2/user",{params:e})},commentsApiService.getRatingDistribution=function(e){return axios.get("/api/comments/v2/rating-distribution",{params:e})},commentsApiService.insertComment=function(e){return axios.post("/api/comments/",e)},commentsApiService.editComment=function(e){return axios.post("/api/comments/edit",e)},commentsApiService.reactOnComment=function(e){const t=document.querySelector('input[name="__RequestVerificationToken"]'),i=t?t.value:"";return axios.post("/api/comments/react",e,{headers:{RequestVerificationToken:i}})},commentsApiService.changeCommentState=function(e){return axios.post("/api/comments/change-state",e)},commentsApiService.boostComment=function(e){return axios.post("/api/comments/boost-to",e)},commentsApiService.addLikeBonusToComment=function(e){return axios.post("/api/comments/admin-like-bonus",e)},commentsApiService.getSortTypes=function(){return[{id:2,description:"Prvo najrelevantniji"},{id:0,description:"Prvo najnoviji"},{id:1,description:"Prvo najstariji"}]};var feedbackApiService=function(){};feedbackApiService.submit=function(e){const t=document.querySelector('input[name="__RequestVerificationToken"]'),i=t?t.value:"";return axios.post("/api/feedback/submit",e,{headers:{RequestVerificationToken:i}})};var keywordsApiService=function(){};keywordsApiService.search=function(e){return axios.get("/api/external/poll-helper/search-portal-keywords",{params:e})},keywordsApiService.filter=function(e){return axios.get("/api/external/poll-helper/filter-portal-keywords",{params:e})};var profileApiService=function(){};profileApiService.getProfile=function(e){return axios.get(`/api/profile/${e}`)},profileApiService.checkIfNameChangeIsAllowed=function(e){return axios.get(`/api/profile/${e}/check-if-name-change-is-allowed`)},profileApiService.disableCommentActions=function(e,t){return axios.post(`/api/profile/disable-comment-actions/${e}`,{reasons:t||[]})},profileApiService.enableCommentActions=function(e){return axios.post(`/api/profile/enable-comment-actions/${e}`)},profileApiService.blockUser=function(e){return axios.post(`/api/profile/block-user/${e}`)},profileApiService.unblockUser=function(e){return axios.post(`/api/profile/unblock-user/${e}`)},profileApiService.changeStatusFeedFlag=function(e){return axios.post("/api/profile/change-status-feed-flag",e)},profileApiService.followUser=function(e){return axios.post(`/api/profile/follow-user/${e}`)},profileApiService.unfollowUser=function(e){return axios.post(`/api/profile/unfollow-user/${e}`)},profileApiService.getPPID=function(){return axios.post("/api/profile/ppid/").then(function(e){return e.data})},profileApiService.getSocialNetworksTypes=function(){return[{id:1,description:"Facebook"},{id:2,description:"X"},{id:3,description:"Instagram"},{id:4,description:"Youtube"},{id:5,description:"Tiktok"}]};var statsApiService=function(){};statsApiService.getArticleActiveUsers=function(e){return axios.get(`/api/Stats/article-active-users/${e}`)};var userApiService=function(){};userApiService.getInfo=function(){return axios.get("/api/me")},userApiService.getPremiumStatus=function(){return axios.post("/api/me/premium-status")},userApiService.changeName=function(e){const t=document.querySelector('input[name="__RequestVerificationToken"]'),i=t?t.value:"";return axios.post("/api/me/change-name",e,{headers:{RequestVerificationToken:i}})},userApiService.changeBio=function(e){const t=document.querySelector('input[name="__RequestVerificationToken"]'),i=t?t.value:"";return axios.post("/api/me/change-bio",e,{headers:{RequestVerificationToken:i}})},userApiService.changeProfileImage=function(e){if(0===e.length)return;for(var t=new FormData,i=0;i<e.length;i++)t.append("file",e[i]);const n=document.querySelector('input[name="__RequestVerificationToken"]'),r=n?n.value:"";return axios.post("/api/me/change-profile-image",t,{headers:{RequestVerificationToken:r,"Content-Type":"multipart/form-data"}})},userApiService.deleteProfileImage=function(){const e=document.querySelector('input[name="__RequestVerificationToken"]'),t=e?e.value:"";return axios.post("/api/me/delete-profile-image",null,{headers:{RequestVerificationToken:t}})},userApiService.getBlockedUsers=function(e){return axios.get("/api/me/blocked-users",{params:e})},userApiService.getFollowedUsers=function(e){return axios.get("/api/me/followed-users",{params:e})},userApiService.getFollowers=function(e){return axios.get("/api/me/followers",{params:e})},userApiService.getSuggestedUsers=function(e){return axios.get("/api/me/suggested-users",{params:e})},userApiService.getJwt=function(){return axios.get("/api/me/jwt")},userApiService.getInterestArticles=function(e,t,i,n,r,a){return axios.post("/api/me/interest-articles",{cohortIds:e,tagIds:t,excludeArticleIds:i,rootCategoryIds:n,take:r,nativeCategoryIds:a})};var userStatusesApiService=function(){};function dfpNarrowPortal(){$(document).ready(function(){$('.main-container, .main-menu-container, .float-menu, .plus-categories, .comments-container, .category-holder, .article-container, .plus-categories-container, footer, [class^="separator"]').addClass("with-wallpaper"),$(".main-menu-container").addClass("main-content-bg"),layoutService.MenuNavigationCheck()})}function removeMarginFromDB1hr(){$(document).ready(function(){dfpNarrowPortal(),$("#DB1_hr").addClass("no-margin")})}function isTemplateSponsorship(e){return e.includes("Genecy")}function getPropertyNameByValue(e,t){for(var i in console.log(t),e)if(e.hasOwnProperty(i)&&e[i]===t)return i;return null}function chunkArrayInGroups(e,t){for(var i=[],n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i}function getFlagEmoji(e){const t=e.toUpperCase().split("").map(e=>127397+e.charCodeAt());return String.fromCodePoint(...t)}function updateQueryStringParameter(e,t){const i=new URL(window.location.href);null==t||""===t?i.searchParams.delete(e):i.searchParams.set(e,t),window.history.replaceState(null,"",i.toString())}userStatusesApiService.getByUser=function(e){return axios.get("/api/user-statuses/user",{params:e})},userStatusesApiService.getForUserFeed=function(e){var t={skip:e.ski
151p,take:e.take};return null!=e.filterType&&(t.filterType=e.filterType),axios.get("/api/user-statuses/feed",{params:t})},userStatusesApiService.insertStatus=function(e){return axios.post("/api/user-statuses/",e)},userStatusesApiService.editStatus=function(e){return axios.post("/api/user-statuses/edit",e)},userStatusesApiService.getSingleStatus=function(e){return axios.get("/api/user-statuses/status",{params:{publicId:e}})},userStatusesApiService.changeStatusState=function(e){return axios.post("/api/user-statuses/change-state",e)},userStatusesApiService.changeModerationFlag=function(e){return axios.post("/api/user-statuses/change-moderation-flag",e)},userStatusesApiService.reactOnStatus=function(e){const t=document.querySelector('input[name="__RequestVerificationToken"]'),i=t?t.value:"";return axios.post("/api/user-statuses/react",e,{headers:{RequestVerificationToken:i}})},userStatusesApiService.uploadImage=function(e){if(0!==e.length){for(var t=new FormData,i=0;i<e.length;i++)t.append("file",e[i]);return axios.post("/api/user-statuses/upload-image",t,{headers:{"Content-Type":"multipart/form-data"}})}},function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){e.extend(e.fn,{validate:function(t){if(this.length){var i=e.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new e.validator(t,this[0]),e.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(t){i.settings.submitHandler&&(i.submitButton=t.target),e(this).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==e(this).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.on("submit.validate",function(t){function n(){var n,r;return!i.settings.submitHandler||(i.submitButton&&(n=e("<input type='hidden'/>").attr("name",i.submitButton.name).val(e(i.submitButton).val()).appendTo(i.currentForm)),r=i.settings.submitHandler.call(i,i.currentForm,t),i.submitButton&&n.remove(),void 0!==r&&r)}return i.settings.debug&&t.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,n()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):n():(i.focusInvalid(),!1)})),i)}t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var t,i,n;return e(this[0]).is("form")?t=this.validate().form():(n=[],t=!0,i=e(this[0].form).validate(),this.each(function(){t=i.element(this)&&t,n=n.concat(i.errorList)}),i.errorList=n),t},rules:function(t,i){var n,r,a,o,s,l,c=this[0];if(t)switch(n=e.data(c.form,"validator").settings,r=n.rules,a=e.validator.staticRules(c),t){case"add":e.extend(a,e.validator.normalizeRule(i)),delete a.messages,r[c.name]=a,i.messages&&(n.messages[c.name]=e.extend(n.messages[c.name],i.messages));break;case"remove":return i?(l={},e.each(i.split(/\s/),function(t,i){l[i]=a[i],delete a[i],"required"===i&&e(c).removeAttr("aria-required")}),l):(delete r[c.name],a)}return(o=e.validator.normalizeRules(e.extend({},e.validator.classRules(c),e.validator.attributeRules(c),e.validator.dataRules(c),e.validator.staticRules(c)),c)).required&&(s=o.required,delete o.required,o=e.extend({required:s},o),e(c).attr("aria-required","true")),o.remote&&(s=o.remote,delete o.remote,o=e.extend(o,{remote:s})),o}}),e.extend(e.expr[":"],{blank:function(t){return!e.trim(""+e(t).val())},filled:function(t){return!!e.trim(""+e(t).val())},unchecked:function(t){return!e(t).prop("checked")}}),e.validator=function(t,i){this.settings=e.extend(!0,{},e.validator.defaults,t),this.currentForm=i,this.init()},e.validator.format=function(t,i){return 1===arguments.length?function(){var i=e.makeArray(arguments);return i.unshift(t),e.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=e.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),e.each(i,function(e,i){t=t.replace(new RegExp("\\{"+e+"\\}","g"),function(){return i})}),t)},e.extend(e.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:e([]),errorLabelContainer:e([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(e){this.lastActive=e,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.val
151idClass),this.hideThese(this.errorsFor(e)))},onfocusout:function(e){this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||this.element(e)},onkeyup:function(t,i){9===i.which&&""===this.elementValue(t)||-1!==e.inArray(i.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(t.name in this.submitted||t===this.lastElement)&&this.element(t)},onclick:function(e){e.name in this.submitted?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(t,i,n){"radio"===t.type?this.findByName(t.name).addClass(i).removeClass(n):e(t).addClass(i).removeClass(n)},unhighlight:function(t,i,n){"radio"===t.type?this.findByName(t.name).removeClass(i).addClass(n):e(t).removeClass(i).addClass(n)}},setDefaults:function(t){e.extend(e.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:e.validator.format("Please enter no more than {0} characters."),minlength:e.validator.format("Please enter at least {0} characters."),rangelength:e.validator.format("Please enter a value between {0} and {1} characters long."),range:e.validator.format("Please enter a value between {0} and {1}."),max:e.validator.format("Please enter a value less than or equal to {0}."),min:e.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function t(t){var i=e.data(this.form,"validator"),n="on"+t.type.replace(/^validate/,""),r=i.settings;r[n]&&!e(this).is(r.ignore)&&r[n].call(i,this,t)}this.labelContainer=e(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||e(this.currentForm),this.containers=e(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i,n=this.groups={};e.each(this.settings.groups,function(t,i){"string"==typeof i&&(i=i.split(/\s/)),e.each(i,function(e,i){n[i]=t})}),i=this.settings.rules,e.each(i,function(t,n){i[t]=e.validator.normalizeRule(n)}),e(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']",t).on("click.validate","select, option, [type='radio'], [type='checkbox']",t),this.settings.invalidHandler&&e(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler),e(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),e.extend(this.submitted,this.errorMap),this.invalid=e.extend({},this.errorMap),this.valid()||e(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var e=0,t=this.currentElements=this.elements();t[e];e++)this.check(t[e]);return this.valid()},element:function(t){var i=this.clean(t),n=this.validationTargetFor(i),r=!0;return this.lastElement=n,void 0===n?delete this.invalid[i.name]:(this.prepareElement(n),this.currentElements=e(n),(r=!1!==this.check(n))?delete this.invalid[n.name]:this.invalid[n.name]=!0),e(t).attr("aria-invalid",!r),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),r},showErrors:function(t){if(t){for(var i in e.extend(this.errorMap,t),this.errorList=[],t)this.errorList.push({message:t[i],element:this.findByName(i)[0]});this.successList=e.grep(this.successList,function(e){return!(e.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){e.fn.resetForm&&e(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors();var t,i=this.elements().removeData("previousValue").removeAttr("aria-invalid");if(this.settings.unhighlight)for(t=0;i[t];t++)this.settings.unhighlight.call(this,i[t],this.settings.errorClass,"");else i.removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t,i=0;for(t in e)i++;return i},hideErrors:function(){this.hideThese(this.toHide)}
151,hideThese:function(e){e.not(this.containers).text(""),this.addWrapper(e).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{e(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var t=this.lastActive;return t&&1===e.grep(this.errorList,function(e){return e.element.name===t.name}).length&&t},elements:function(){var t=this,i={};return e(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){return!this.name&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),!(this.name in i||!t.objectLength(e(this).rules()))&&(i[this.name]=!0,!0)})},clean:function(t){return e(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return e(this.settings.errorElement+"."+t,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=e([]),this.toHide=e([]),this.currentElements=e([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},elementValue:function(t){var i,n=e(t),r=t.type;return"radio"===r||"checkbox"===r?this.findByName(t.name).filter(":checked").val():"number"===r&&void 0!==t.validity?!t.validity.badInput&&n.val():"string"==typeof(i=n.val())?i.replace(/\r/g,""):i},check:function(t){t=this.validationTargetFor(this.clean(t));var i,n,r,a=e(t).rules(),o=e.map(a,function(e,t){return t}).length,s=!1,l=this.elementValue(t);for(n in a){r={method:n,parameters:a[n]};try{if("dependency-mismatch"===(i=e.validator.methods[n].call(this,l,t,r.parameters))&&1===o){s=!0;continue}if(s=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!i)return this.formatAndAdd(t,r),!1}catch(e){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.",e),e instanceof TypeError&&(e.message+=". Exception occurred when checking element "+t.id+", check the '"+r.method+"' method."),e}}if(!s)return this.objectLength(a)&&this.successList.push(t),!0},customDataMessage:function(t,i){return e(t).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||e(t).data("msg")},customMessage:function(e,t){var i=this.settings.messages[e];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]},defaultMessage:function(t,i){return this.findDefined(this.customMessage(t.name,i),this.customDataMessage(t,i),!this.settings.ignoreTitle&&t.title||void 0,e.validator.messages[i],"<strong>Warning: No message defined for "+t.name+"</strong>")},formatAndAdd:function(t,i){var n=this.defaultMessage(t,i.method),r=/\$?\{(\d+)\}/g;"function"==typeof n?n=n.call(this,i.parameters,t):r.test(n)&&(n=e.validator.format(n.replace(r,"{$1}"),i.parameters)),this.errorList.push({message:n,element:t,method:i.method}),this.errorMap[t.name]=n,this.submitted[t.name]=n},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){var e,t,i;for(e=0;this.errorList[e];e++)i=this.errorList[e],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight)for(e=0,t=this.validElements();t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return e(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var n,r,a,o=this.errorsFor(t),s=this.idOrName(t),l=e(t).attr("aria-describedby");
151o.length?(o.removeClass(this.settings.validClass).addClass(this.settings.errorClass),o.html(i)):(n=o=e("<"+this.settings.errorElement+">").attr("id",s+"-error").addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(n=o.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(n):this.settings.errorPlacement?this.settings.errorPlacement(n,e(t)):n.insertAfter(t),o.is("label")?o.attr("for",s):0===o.parents("label[for='"+s+"']").length&&(a=o.attr("id").replace(/(:|\.|\[|\]|\$)/g,"\\$1"),l?l.match(new RegExp("\\b"+a+"\\b"))||(l+=" "+a):l=a,e(t).attr("aria-describedby",l),(r=this.groups[t.name])&&e.each(this.groups,function(t,i){i===r&&e("[name='"+t+"']",this.currentForm).attr("aria-describedby",o.attr("id"))}))),!i&&this.settings.success&&(o.text(""),"string"==typeof this.settings.success?o.addClass(this.settings.success):this.settings.success(o,t)),this.toShow=this.toShow.add(o)},errorsFor:function(t){var i=this.idOrName(t),n=e(t).attr("aria-describedby"),r="label[for='"+i+"'], label[for='"+i+"'] *";return n&&(r=r+", #"+n.replace(/\s+/g,", #")),this.errors().filter(r)},idOrName:function(e){return this.groups[e.name]||(this.checkable(e)?e.name:e.id||e.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),e(t).not(this.settings.ignore)[0]},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(t){return e(this.currentForm).find("[name='"+t+"']")},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return e("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e){return e},string:function(t,i){return!!e(t,i.form).length},function:function(e,t){return e(t)}},optional:function(t){var i=this.elementValue(t);return!e.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,this.pending[e.name]=!0)},stopRequest:function(t,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(e(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(e(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t){return e.data(t,"previousValue")||e.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,"remote")})},destroy:function(){this.resetForm(),e(this.currentForm).off(".validate").removeData("validator")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:e.extend(this.classRuleSettings,t)},classRules:function(t){var i={},n=e(t).attr("class");return n&&e.each(n.split(" "),function(){this in e.validator.classRuleSettings&&e.extend(i,e.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(e,t,i,n){/min|max/.test(i)&&(null===t||/number|range|text/.test(t))&&(n=Number(n),isNaN(n)&&(n=void 0)),n||0===n?e[i]=n:t===i&&"range"!==t&&(e[i]=!0)},attributeRules:function(t){var i,n,r={},a=e(t),o=t.getAttribute("type");for(i in e.validator.methods)"required"===i?(""===(n=t.getAttribute(i))&&(n=!0),n=!!n):n=a.attr(i),this.normalizeAttributeRule(r,o,i,n);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(t){var i,n,r={},a=e(t),o=t.getAttribute("type");for(i in e.validator.methods)n=a.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),this.normalizeAttributeRule(r,o,i,n);return r},staticRules:function(t){var i={},n=e.data(t.form,"validator");return n.settings.rules&&(i=e.validator.normalizeRule(n.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return e.each(t,function(n,r){if(!1!==r){if(r.param||r.depends){var a=!0;switch(typeof r.depends){case"string":a=!!e(r.depends,i.form).length;break;case"function":a=r.depends.call(i,i)}a?t[n]=void 0===r.param||r.param:delete t[n]}}else delete t[n]}),e.each(t,function(n,r){t[n]=e.isFunction(r)?r(i):r}),e.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),e.each(["rangelength","range"],function(){var i;t[this]&&(e.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:"string"==typeof t[this]&&(i=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(i[0]),Number(i[1])]))}),e.validator.autoCreateRanges&&(null!=t.min&&null!=t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),null!=t.minlength&&null!=t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if("string"==typeof t){var i={};e.each(t.split(/\s/),function(){i[this]=!0}),t=i}return t},addMethod:function(t,i,n){e.validator.methods[t]=i,e.validator.messages[t]=void 0!==n?n:e.validator.messages[t],i.length<3&&e.validator.addClassRules(t,e.validator.normalizeRule(t))},methods:{required:function(t,i,n){if(!this.depend(n,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var r=e(i).val();return r&&r.length>0}return this.checkable(i)?this.getLength(t,i)>0:t.length>0},email:function(e,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)}
151,url:function(e,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)},date:function(e,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},creditcard:function(e,t){if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(e))return!1;var i,n,r=0,a=0,o=!1;if((e=e.replace(/\D/g,"")).length<13||e.length>19)return!1;for(i=e.length-1;i>=0;i--)n=e.charAt(i),a=parseInt(n,10),o&&(a*=2)>9&&(a-=9),r+=a,o=!o;return r%10==0},minlength:function(t,i,n){var r=e.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||r>=n},maxlength:function(t,i,n){var r=e.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||n>=r},rangelength:function(t,i,n){var r=e.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||r>=n[0]&&r<=n[1]},min:function(e,t,i){return this.optional(t)||e>=i},max:function(e,t,i){return this.optional(t)||i>=e},range:function(e,t,i){return this.optional(t)||e>=i[0]&&e<=i[1]},equalTo:function(t,i,n){var r=e(n);return this.settings.onfocusout&&r.off(".validate-equalTo").on("blur.validate-equalTo",function(){e(i).valid()}),t===r.val()},remote:function(t,i,n){if(this.optional(i))return"dependency-mismatch";var r,a,o=this.previousValue(i);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),o.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=o.message,n="string"==typeof n&&{url:n}||n,o.old===t?o.valid:(o.old=t,r=this,this.startRequest(i),(a={})[i.name]=t,e.ajax(e.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:a,context:r.currentForm,success:function(n){var a,s,l,c=!0===n||"true"===n;r.settings.messages[i.name].remote=o.originalMessage,c?(l=r.formSubmitted,r.prepareElement(i),r.formSubmitted=l,r.successList.push(i),delete r.invalid[i.name],r.showErrors()):(a={},s=n||r.defaultMessage(i,"remote"),a[i.name]=o.message=e.isFunction(s)?s(t):s,r.invalid[i.name]=!0,r.showErrors(a)),o.valid=c,r.stopRequest(i,c)}},n)),"pending")}}});var t,i={};e.ajaxPrefilter?e.ajaxPrefilter(function(e,t,n){var r=e.port;"abort"===e.mode&&(i[r]&&i[r].abort(),i[r]=n)}):(t=e.ajax,e.ajax=function(n){var r=("mode"in n?n:e.ajaxSettings).mode,a=("port"in n?n:e.ajaxSettings).port;return"abort"===r?(i[a]&&i[a].abort(),i[a]=t.apply(this,arguments),i[a]):t.apply(this,arguments)})}),function(e){function t(e,t,i){e.rules[t]=i,e.message&&(e.messages[t]=e.message)}function i(e){return e.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function n(e){return e.substr(0,e.lastIndexOf(".")+1)}function r(e,t){return 0===e.indexOf("*.")&&(e=e.replace("*.",t)),e}function a(t,n){var r=e(this).find("[data-valmsg-for='"+i(n[0].name)+"']"),a=r.attr("data-valmsg-replace"),o=a?!1!==e.parseJSON(a):null;r.removeClass("field-validation-valid").addClass("field-validation-error"),t.data("unobtrusiveContainer",r),o?(r.empty(),t.removeClass("input-validation-error").appendTo(r)):t.hide()}function o(t,i){var n=e(this).find("[data-valmsg-summary=true]"),r=n.find("ul");r&&r.length&&i.errorList.length&&(r.empty(),n.addClass("validation-summary-errors").removeClass("validation-summary-valid"),e.each(i.errorList,function(){e("<li />").html(this.message).appendTo(r)}))}function s(t){var i=t.data("unobtrusiveContainer");if(i){var n=i.attr("data-valmsg-replace"),r=n?e.parseJSON(n):null;i.addClass("field-validation-valid").removeClass("field-validation-error"),t.removeData("unobtrusiveContainer"),r&&i.empty()}}function l(t){var i=e(this),n="__jquery_unobtrusive_validation_form_reset";if(!i.data(n)){i.data(n,!0);try{i.data("validator").resetForm()}finally{i.removeData(n)}
151i.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),i.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function c(t){var i=e(t),n=i.data(p),r=e.proxy(l,t),c=u.unobtrusive.options||{},d=function(i,n){var r=c[i];r&&e.isFunction(r)&&r.apply(t,n)};return n||(n={options:{errorClass:c.errorClass||"input-validation-error",errorElement:c.errorElement||"span",errorPlacement:function(){a.apply(t,arguments),d("errorPlacement",arguments)},invalidHandler:function(){o.apply(t,arguments),d("invalidHandler",arguments)},messages:{},rules:{},success:function(){s.apply(t,arguments),d("success",arguments)}},attachValidation:function(){i.off("reset."+p,r).on("reset."+p,r).validate(this.options)},validate:function(){return i.validate(),i.valid()}},i.data(p,n)),n}var d,u=e.validator,p="unobtrusiveValidation";u.unobtrusive={adapters:[],parseElement:function(t,i){var n,r,a,o=e(t),s=o.parents("form")[0];s&&((n=c(s)).options.rules[t.name]=r={},n.options.messages[t.name]=a={},e.each(this.adapters,function(){var i="data-val-"+this.name,n=o.attr(i),l={};void 0!==n&&(i+="-",e.each(this.params,function(){l[this]=o.attr(i+this)}),this.adapt({element:t,form:s,message:n,params:l,rules:r,messages:a}))}),e.extend(r,{__dummy__:!0}),i||n.attachValidation())},parse:function(t){var i=e(t),n=i.parents().addBack().filter("form").add(i.find("form")).has("[data-val=true]");i.find("[data-val=true]").each(function(){u.unobtrusive.parseElement(this,!0)}),n.each(function(){var e=c(this);e&&e.attachValidation()})}},(d=u.unobtrusive.adapters).add=function(e,t,i){return i||(i=t,t=[]),this.push({name:e,params:t,adapt:i}),this},d.addBool=function(e,i){return this.add(e,function(n){t(n,i||e,!0)})},d.addMinMax=function(e,i,n,r,a,o){return this.add(e,[a||"min",o||"max"],function(e){var a=e.params.min,o=e.params.max;a&&o?t(e,r,[a,o]):a?t(e,i,a):o&&t(e,n,o)})},d.addSingleVal=function(e,i,n){return this.add(e,[i||"val"],function(r){t(r,n||e,r.params[i])})},u.addMethod("__dummy__",function(e,t,i){return!0}),u.addMethod("regex",function(e,t,i){var n;return!!this.optional(t)||(n=new RegExp(i).exec(e))&&0===n.index&&n[0].length===e.length}),u.addMethod("nonalphamin",function(e,t,i){var n;return i&&(n=(n=e.match(/\W/g))&&n.length>=i),n}),u.methods.extension?(d.addSingleVal("accept","mimtype"),d.addSingleVal("extension","extension")):d.addSingleVal("extension","extension","accept"),d.addSingleVal("regex","pattern"),d.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),d.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),d.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),d.add("equalto",["other"],function(a){var o=n(a.element.name),s=r(a.params.other,o);t(a,"equalTo",e(a.form).find(":input").filter("[name='"+i(s)+"']")[0])}),d.add("required",function(e){("INPUT"!==e.element.tagName.toUpperCase()||"CHECKBOX"!==e.element.type.toUpperCase())&&t(e,"required",!0)}),d.add("remote",["url","type","additionalfields"],function(a){var o={url:a.params.url,type:a.params.type||"GET",data:{}},s=n(a.element.name);e.each(function(e){return e.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}(a.params.additionalfields||a.element.name),function(t,n){var l=r(n,s);o.data[l]=function(){var t=e(a.form).find(":input").filter("[name='"+i(l)+"']");return t.is(":checkbox")?t.filter(":checked").val()||t.filter(":hidden").val()||"":t.is(":radio")?t.filter(":checked").val()||"":t.val()}}),t(a,"remote",o)}),d.add("password",["min","nonalphamin","regex"],function(e){e.params.min&&t(e,"minlength",e.params.min),e.params.nonalphamin&&t(e,"nonalphamin",e.params.nonalphamin),e.params.regex&&t(e,"regex",e.params.regex)}),e(function(){u.unobtrusive.parse(document)})}(jQuery),function(e){var t="unobtrusiveAjaxClick",i="unobtrusiveAjaxClickTarget";function n(e,t){for(var i=window,n=(e||"").split(".");i&&n.length;)i=i[n.shift()];return"function"==typeof i?i:(t.push(e),Function.constructor.apply(null,t))}function r(e){return"GET"===e||"POST"===e}function a(t,i,n){var r;-1===n.indexOf("application/x-javascript")&&(r=(t.getAttribute("data-ajax-mode")||"").toUpperCase(),e(t.getAttribute("data-ajax-update")).each(function(t,n){var a;switch(r){case"BEFORE":a=n.firstChild,e("<div />").html(i).contents().each(function(){n.insertBefore(this,a)});break;case"AFTER":e("<div />").html(i).contents().each(function(){n.appendChild(this)});break;case"REPLACE-WITH":e(n).replaceWith(i);break;default:e(n).html(i)}}))}function o(t,i){var o,s,l,c;(o=t.getAttribute("data-ajax-confirm"))&&!window.confirm(o)||(s=e(t.getAttribute("data-ajax-loading")),c=parseInt(t.getAttribute("data-ajax-loading-duration"),10)||0,e.extend(i,{type:t.getAttribute("data-ajax-method")||void 0,url:t.getAttribute("data-ajax-url")||void 0,cache:"true"===(t.getAttribute("data-ajax-cache")||"").toLowerCase(),beforeSend:function(e){var i;return function(e,t){!r(t)&&e.setRequestHeader("X-HTTP-Method-Override",t)}(e,l),!1!==(i=n(t.getAttribute("data-ajax-begin"),["xhr"]).apply(t,arguments))&&s.show(c),i},complete:function(){s.hide(c),n(t.getAttribute("data-ajax-complete"),["xhr","status"]).apply(t,arguments)},success:function(e,i,r){a(t,e,r.getResponseHeader("Content-Type")||"text/html"),n(t.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(t,arguments)},error:function(){n(t.getAttribute("data-ajax-failure"),["xhr","status","error"]).apply(t,arguments)}}),i.data.push({name:"X-Requested-With",value:"XMLHttpRequest"}),r(l=i.type.toUpperCase())||(i.type="POST",i.data.push({name:"X-HTTP-Method-Override",value:l})),e.ajax(i))}function s(t){var i=e(t).data("unobtrusiveValidation");return!i||!i.validate||i.validate()}e(document).on("click","a[data-ajax=true]",function(e){e.preventDefault(),o(this,{url:this.href,type:"GET",data:[]})}),e(document).on("click","form[data-ajax=true] input[type=image]",function(i){var n=i.target.name,r=e(i.target),a=e(r.parents("form")[0]),o=r.offset();a.data(t,[{name:n+".x",value:Math.round(i.pageX-o.left)},{name:n+".y",value:Math.round(i.pageY-o.top)}]),setTimeout(function(){a.removeData(t)},0)}),e(document).on("click","form[data-ajax=true] :submit",function(n){var r=n.currentTarget.name,a=e(n.target),o=e(a.parents("form")[0]);o.data(t,r?[{name:r,value:n.currentTarget.value}]:[]),o.data(i,a),setTimeout(function(){o.removeData(t),o.removeData(i)},0)}),e(document).on("submit","form[data-ajax=true]",function(n){var r=e(this).data(t)||[],a=e(this).data(i),l=a&&a.hasClass("cancel");
151n.preventDefault(),(l||s(this))&&o(this,{url:this.action,type:this.method||"GET",data:r.concat(e(this).serializeArray())})})}(jQuery),function(e){e.fn.uncomment=function(){for(var t=0,i=this.length;t<i;t++)for(var n=0,r=this[t].childNodes.length;n<r;n++)if(8===this[t].childNodes[n].nodeType){var a=this[t].childNodes[n].nodeValue;e(this[t].childNodes[n]).replaceWith(a)}}}(jQuery),Array.prototype.unique=function(){for(var e=this.concat(),t=0;t<e.length;++t)for(var i=t+1;i<e.length;++i)e[t]===e[i]&&e.splice(i--,1);return e};var Swiper=function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(i,n){void 0===i&&(i={}),void 0===n&&(n={}),Object.keys(n).forEach(r=>{void 0===i[r]?i[r]=n[r]:e(n[r])&&e(i[r])&&Object.keys(n[r]).length>0&&t(i[r],n[r])})}const i={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function n(){const e="undefined"!=typeof document?document:{};return t(e,i),e}const r={document:i,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function a(){const e="undefined"!=typeof window?window:{};return t(e,r),e}function o(e){return void 0===e&&(e=""),e.trim().split(" ").filter(e=>!!e.trim())}function s(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function l(){return Date.now()}function c(e,t){void 0===t&&(t="x");const i=a();let n,r,o;const s=function(e){const t=a();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(r=s.transform||s.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(e=>e.replace(",",".")).join(", ")),o=new i.WebKitCSSMatrix("none"===r?"":r)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===t&&(r=i.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=i.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0}function d(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function u(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(null!=r&&(i=r,!("undefined"!=typeof window&&void 0!==window.HTMLElement?i instanceof HTMLElement:i&&(1===i.nodeType||11===i.nodeType)))){const i=Object.keys(Object(r)).filter(e=>t.indexOf(e)<0);for(let t=0,n=i.length;t<n;t+=1){const n=i[t],a=Object.getOwnPropertyDescriptor(r,n);void 0!==a&&a.enumerable&&(d(e[n])&&d(r[n])?r[n].__swiper__?e[n]=r[n]:u(e[n],r[n]):!d(e[n])&&d(r[n])?(e[n]={},r[n].__swiper__?e[n]=r[n]:u(e[n],r[n])):e[n]=r[n])}}}var i;return e}function p(e,t,i){e.style.setProperty(t,i)}function h(e){let{swiper:t,targetPosition:i,side:n}=e;const r=a(),o=-t.translate;let s,l=null;const c=t.params.speed;t.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(t.cssModeFrameID);const d=i>o?"next":"prev",u=(e,t)=>"next"===d&&e>=t||"prev"===d&&e<=t,p=()=>{s=(new Date).getTime(),null===l&&(l=s);const e=Math.max(Math.min((s-l)/c,1),0),a=.5-Math.cos(e*Math.PI)/2;let d=o+a*(i-o);if(u(d,i)&&(d=i),t.wrapperEl.scrollTo({[n]:d}),u(d,i))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[n]:d})}),void r.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=r.requestAnimationFrame(p)};p()}function f(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function m(e,t){void 0===t&&(t="");const i=[...e.children];return e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t?i.filter(e=>e.matches(t)):i}function g(e){try{return void console.warn(e)}catch(e){}}function v(e,t){void 0===t&&(t=[]);const i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:o(t)),i}function y(e){const t=a(),i=n(),r=e.getBoundingClientRect(),o=i.body,s=e.clientTop||o.clientTop||0,l=e.clientLeft||o.clientLeft||0,c=e===t?t.scrollY:e.scrollTop,d=e===t?t.scrollX:e.scrollLeft;return{top:r.top+c-s,left:r.left+d-l}}function b(e,t){return a().getComputedStyle(e,null).getPropertyValue(t)}function w(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function S(e,t){const i=[];let n=e.parentElement;for(;n;)t?n.matches(t)&&i.push(n):i.push(n),n=n.parentElement;return i}function x(e,t){t&&e.addEventListener("transitionend",function i(n){n.target===e&&(t.call(e,n),e.removeEventListener("transitionend",i))})}function C(e,t,i){const n=a();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function T(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function k(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}let E,M,I;function A(){return E||(E=function(){const e=a(),t=n();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),E}function L(e){return void 0===e&&(e={}),M||(M=function(e){let{userAgent:t}=void 0===e?{}:e;const i=A(),n=a(),r=n.navigator.platform,o=t||n.navigator.userAgent,s={ios:!1,android:!1},l=n.screen.width,c=n.screen.height,d=o.match(/(Android);?[\s\/]+([\d.]+)?/);let u=o.match(/(iPad).*OS\s([\d_]+)/);const p=o.match(/(iPod)(.*OS\s([\d_]+))?/),h=!u&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===r;let m="MacIntel"===r;return!u&&m&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${c}`)>=0&&(u=o.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),m=!1),d&&!f&&(s.os="android",s.android=!0),(u||h||p)&&(s.os="ios",s.ios=!0),s}(e)),M}function D(){return I||(I=function(){const e=a(),t=L();let i=!1;function n(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(n()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,n]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));
vendor: 4,696 bytes, line 151
151i=e<16||16===e&&n<2}}const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=n();return{isSafari:i||o,needPerspectiveFix:i,need3dFix:o||r&&t.ios,isWebView:r}}()),I}var P={on(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;const r=i?"unshift":"push";return e.split(" ").forEach(e=>{n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][r](t)}),n},once(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;function r(){n.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];t.apply(n,a)}return r.__emitterProxy=t,n.on(e,r,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;const n=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[n](e),i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach((n,r)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&i.eventsListeners[e].splice(r,1)})}),i):i},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,i,n;for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return"string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],i=a.slice(1,a.length),n=e):(t=a[0].events,i=a[0].data,n=a[0].context||e),i.unshift(n),(Array.isArray(t)?t:t.split(" ")).forEach(t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(n,[t,...i])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(e=>{e.apply(n,i)})}),e}};const $=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)},j=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)},_=(e,t)=>{if(!e||e.destroyed||!e.params)return;const i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){let t=i.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(i.shadowRoot?t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())})),t&&t.remove()}},R=(e,t)=>{if(!e.slides[t])return;const i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},O=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);const n="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=r,a=[i-t];return a.push(...Array.from({length:t}).map((e,t)=>i+n+t)),void e.slides.forEach((t,i)=>{a.includes(t.column)&&R(e,i)})}const a=r+n-1;if(e.params.rewind||e.params.loop)for(let n=r-t;n<=a+t;n+=1){const t=(n%i+i)%i;(t<r||t>a)&&R(e,t)}else for(let n=Math.max(r-t,0);n<=Math.min(a+t,i-1);n+=1)n!==r&&(n>a||n<r)&&R(e,n)};var F={updateSize:function(){const e=this;let t,i;const n=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:n.clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:n.clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(b(n,"padding-left")||0,10)-parseInt(b(n,"padding-right")||0,10),i=i-parseInt(b(n,"padding-top")||0,10)-parseInt(b(n,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const e=this;function t(t,i){return parseFloat(t.getPropertyValue(e.getDirectionLabel(i))||0)}const i=e.params,{wrapperEl:n,slidesEl:r,size:a,rtlTranslate:o,wrongRTL:s}=e,l=e.virtual&&i.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=m(r,`.${e.params.slideClass}, swiper-slide`),u=l?e.virtual.slides.length:d.length;let h=[];const f=[],g=[];let v=i.slidesOffsetBefore;"function"==typeof v&&(v=i.slidesOffsetBefore.call(e));let y=i.slidesOffsetAfter;"function"==typeof y&&(y=i.slidesOffsetAfter.call(e));const w=e.snapGrid.length,S=e.slidesGrid.length;let x=i.spaceBetween,T=-v,k=0,E=0;if(void 0===a)return;"string"==typeof x&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*a:"string"==typeof x&&(x=parseFloat(x)),e.virtualSize=-x,d.forEach(e
151=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(p(n,"--swiper-centered-offset-before",""),p(n,"--swiper-centered-offset-after",""));const M=i.grid&&i.grid.rows>1&&e.grid;let I;M?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const A="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter(e=>void 0!==i.breakpoints[e].slidesPerView).length>0;for(let n=0;n<u;n+=1){let r;if(I=0,d[n]&&(r=d[n]),M&&e.grid.updateSlide(n,r,d),!d[n]||"none"!==b(r,"display")){if("auto"===i.slidesPerView){A&&(d[n].style[e.getDirectionLabel("width")]="");const a=getComputedStyle(r),o=r.style.transform,s=r.style.webkitTransform;if(o&&(r.style.transform="none"),s&&(r.style.webkitTransform="none"),i.roundLengths)I=e.isHorizontal()?C(r,"width",!0):C(r,"height",!0);else{const e=t(a,"width"),i=t(a,"padding-left"),n=t(a,"padding-right"),o=t(a,"margin-left"),s=t(a,"margin-right"),l=a.getPropertyValue("box-sizing");if(l&&"border-box"===l)I=e+o+s;else{const{clientWidth:t,offsetWidth:a}=r;I=e+i+n+o+s+(a-t)}}o&&(r.style.transform=o),s&&(r.style.webkitTransform=s),i.roundLengths&&(I=Math.floor(I))}else I=(a-(i.slidesPerView-1)*x)/i.slidesPerView,i.roundLengths&&(I=Math.floor(I)),d[n]&&(d[n].style[e.getDirectionLabel("width")]=`${I}px`);d[n]&&(d[n].swiperSlideSize=I),g.push(I),i.centeredSlides?(T=T+I/2+k/2+x,0===k&&0!==n&&(T=T-a/2-x),0===n&&(T=T-a/2-x),Math.abs(T)<.001&&(T=0),i.roundLengths&&(T=Math.floor(T)),E%i.slidesPerGroup==0&&h.push(T),f.push(T)):(i.roundLengths&&(T=Math.floor(T)),(E-Math.min(e.params.slidesPerGroupSkip,E))%e.params.slidesPerGroup==0&&h.push(T),f.push(T),T=T+I+x),e.virtualSize+=I+x,k=I,E+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+y,o&&s&&("slide"===i.effect||"coverflow"===i.effect)&&(n.style.width=`${e.virtualSize+x}px`),i.setWrapperSize&&(n.style[e.getDirectionLabel("width")]=`${e.virtualSize+x}px`),M&&e.grid.updateWrapperSize(I,h),!i.centeredSlides){const t=[];for(let n=0;n<h.length;n+=1){let r=h[n];i.roundLengths&&(r=Math.floor(r)),h[n]<=e.virtualSize-a&&t.push(r)}h=t,Math.floor(e.virtualSize-a)-Math.floor(h[h.length-1])>1&&h.push(e.virtualSize-a)}if(l&&i.loop){const t=g[0]+x;if(i.slidesPerGroup>1){const n=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/i.slidesPerGroup),r=t*i.slidesPerGroup;for(let e=0;e<n;e+=1)h.push(h[h.length-1]+r)}for(let n=0;n<e.virtual.slidesBefore+e.virtual.slidesAfter;n+=1)1===i.slidesPerGroup&&h.push(h[h.length-1]+t),f.push(f[f.length-1]+t),e.virtualSize+=t}if(0===h.length&&(h=[0]),0!==x){const t=e.isHorizontal()&&o?"marginLeft":e.getDirectionLabel("marginRight");d.filter((e,t)=>!(i.cssMode&&!i.loop)||t!==d.length-1).forEach(e=>{e.style[t]=`${x}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;g.forEach(t=>{e+=t+(x||0)}),e-=x;const t=e>a?e-a:0;h=h.map(e=>e<=0?-v:e>t?t+y:e)}if(i.centerInsufficientSlides){let e=0;g.forEach(t=>{e+=t+(x||0)}),e-=x;const t=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(e+t<a){const i=(a-e-t)/2;h.forEach((e,t)=>{h[t]=e-i}),f.forEach((e,t)=>{f[t]=e+i})}}if(Object.assign(e,{slides:d,snapGrid:h,slidesGrid:f,slidesSizesGrid:g}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){p(n,"--swiper-centered-offset-before",-h[0]+"px"),p(n,"--swiper-centered-offset-after",e.size/2-g[g.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+i)}if(u!==c&&e.emit("slidesLengthChange"),h.length!==w&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==S&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const t=`${i.containerModifierClass}backface-hidden`,n=e.el.classList.contains(t);u<=i.maxBackfaceHiddenSlides?n||e.el.classList.add(t):n&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,i=[],n=t.virtual&&t.params.virtual.enabled;let r,a=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const o=e=>n?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>
vendor: 5,335 bytes, line 151
1511)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{i.push(e)});else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const e=t.activeIndex+r;if(e>t.slides.length&&!n)break;i.push(o(e))}else i.push(o(t.activeIndex));for(r=0;r<i.length;r+=1)if(void 0!==i[r]){const e=i[r].offsetHeight;a=e>a?e:a}(a||0===a)&&(t.wrapperEl.style.height=`${a}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=(e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop)-i-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,i=t.params,{slides:n,rtlTranslate:r,snapGrid:a}=t;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&t.updateSlidesOffset();let o=-e;r&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=i.spaceBetween;"string"==typeof s&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:"string"==typeof s&&(s=parseFloat(s));for(let e=0;e<n.length;e+=1){const l=n[e];let c=l.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=n[0].swiperSlideOffset);const d=(o+(i.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+s),u=(o-a[0]+(i.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+s),p=-(o-c),h=p+t.slidesSizesGrid[e],f=p>=0&&p<=t.size-t.slidesSizesGrid[e],m=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),$(l,m,i.slideVisibleClass),$(l,f,i.slideFullyVisibleClass),l.progress=r?-d:d,l.originalProgress=r?-u:u}},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,n=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:a,isEnd:o,progressLoop:s}=t;const l=a,c=o;if(0===n)r=0,a=!0,o=!0;else{r=(e-t.minTranslate())/n;const i=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;a=i||r<=0,o=s||r>=1,i&&(r=0),s&&(r=1)}if(i.loop){const i=t.getSlideIndexByData(0),n=t.getSlideIndexByData(t.slides.length-1),r=t.slidesGrid[i],a=t.slidesGrid[n],o=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);s=l>=r?(l-r)/o:(l+o-a)/o,s>1&&(s-=1)}Object.assign(t,{progress:r,progressLoop:s,isBeginning:a,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),a&&!l&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(l&&!a||c&&!o)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,slidesEl:n,activeIndex:r}=e,a=e.virtual&&i.virtual.enabled,o=e.grid&&i.grid&&i.grid.rows>1,s=e=>m(n,`.${i.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(a)if(i.loop){let t=r-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=s(`[data-swiper-slide-index="${t}"]`)}else l=s(`[data-swiper-slide-index="${r}"]`);else o?(l=t.filter(e=>e.column===r)[0],d=t.filter(e=>e.column===r+1)[0],c=t.filter(e=>e.column===r-1)[0]):l=t[r];l&&(o||(d=function(e,t){const i=[];for(;e.nextElementSibling;){const n=e.nextElementSibling;t?n.matches(t)&&i.push(n):i.push(n),e=n}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=t[0]),c=function(e,t){const i=[];for(;e.previousElementSibling;){const n=e.previousElementSibling;t?n.matches(t)&&i.push(n):i.push(n),e=n}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{j(e,e===l,i.slideActiveClass),j(e,e===d,i.slideNextClass),j(e,e===c,i.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{snapGrid:n,params:r,activeIndex:a,realIndex:o,snapIndex:s}=t;let l,c=e;const d=e=>{let i=e-t.virtual.slidesBefore;return i<0&&(i=t.virtual.slides.length+i),i>=t.virtual.slides.length&&(i-=t.virtual.slides.length),i};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:i}=e,n=e.rtlTranslate?e.translate:-e.translate;let r;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?n>=t[e]&&n<t[e+1]-(t[e+1]-t[e])/2?r=e:n>=t[e]&&n<t[e+1]&&(r=e+1):n>=t[e]&&(r=e);return i.normalizeSlideIndex&&(r<0||void 0===r)&&(r=0),r}(t)),n.indexOf(i)>=0)l=n.indexOf(i);else{const e=Math.min(r.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/r.slidesPerGroup)}if(l>=n.length&&(l=n.length-1),c===a&&!t.params.loop)return void(l!==s&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=d(c));const u=t.grid&&r.grid&&r.grid.rows>1;let p;if(t.virtual&&r.virtual.enabled&&r.loop)p=d(c);else if(u){const e=t.slides.filter(e=>e.column===c)[0];let i=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(i)&&(i=Math.max(t.slides.indexOf(e),0)),p=Math.floor(i/r.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):c}else p=c;Object.assign(t,{previousSnapIndex:s,snapIndex:l,previousRealIndex:o,realIndex:p,previousIndex:a,activeIndex:c}),t.initialized&&O(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const i=this,n=i.params;let r=e.closest(`.${n.slideClass}, swiper-slide`);!r&&i.isElement&&t&&t.length>
1511&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!r&&e.matches&&e.matches(`.${n.slideClass}, swiper-slide`)&&(r=e)});let a,o=!1;if(r)for(let e=0;e<i.slides.length;e+=1)if(i.slides[e]===r){o=!0,a=e;break}if(!r||!o)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=r,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a,n.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}},N={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:i,translate:n,wrapperEl:r}=this;if(t.virtualTranslate)return i?-n:n;if(t.cssMode)return n;let a=c(r,e);return a+=this.cssOverflowAdjustment(),i&&(a=-a),a||0},setTranslate:function(e,t){const i=this,{rtlTranslate:n,params:r,wrapperEl:a,progress:o}=i;let s,l=0,c=0;i.isHorizontal()?l=n?-e:e:c=e,r.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:c,r.cssMode?a[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-c:r.virtualTranslate||(i.isHorizontal()?l-=i.cssOverflowAdjustment():c-=i.cssOverflowAdjustment(),a.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=i.maxTranslate()-i.minTranslate();s=0===d?0:(e-i.minTranslate())/d,s!==o&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===n&&(n=!0);const a=this,{params:o,wrapperEl:s}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;const l=a.minTranslate(),c=a.maxTranslate();let d;if(d=n&&e>l?l:n&&e<c?c:e,a.updateProgress(d),o.cssMode){const e=a.isHorizontal();if(0===t)s[e?"scrollLeft":"scrollTop"]=-d;else{if(!a.support.smoothScroll)return h({swiper:a,targetPosition:-d,side:e?"left":"top"}),!0;s.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(d),i&&(a.emit("beforeTransitionStart",t,r),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(d),i&&(a.emit("beforeTransitionStart",t,r),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,i&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}};function H(e){let{swiper:t,runCallbacks:i,direction:n,step:r}=e;const{activeIndex:a,previousIndex:o}=t;let s=n;if(s||(s=a>o?"next":a<o?"prev":"reset"),t.emit(`transition${r}`),i&&a!==o){if("reset"===s)return void t.emit(`slideResetTransition${r}`);t.emit(`slideChangeTransition${r}`),"next"===s?t.emit(`slideNextTransition${r}`):t.emit(`slidePrevTransition${r}`)}}var B={slideTo:function(e,t,i,n,r){void 0===e&&(e=0),void 0===i&&(i=!0),"string"==typeof e&&(e=parseInt(e,10));const a=this;let o=e;o<0&&(o=0);const{params:s,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:p,wrapperEl:f,enabled:m}=a;if(!m&&!n&&!r||a.destroyed||a.animating&&s.preventInteractionOnTransition)return!1;void 0===t&&(t=a.params.speed);const g=Math.min(a.params.slidesPerGroupSkip,o);let v=g+Math.floor((o-g)/a.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const y=-l[v];
151if(s.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*y),i=Math.floor(100*c[e]),n=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=i&&t<n-(n-i)/2?o=e:t>=i&&t<n&&(o=e+1):t>=i&&(o=e)}if(a.initialized&&o!==u){if(!a.allowSlideNext&&(p?y>a.translate&&y>a.minTranslate():y<a.translate&&y<a.minTranslate()))return!1;if(!a.allowSlidePrev&&y>a.translate&&y>a.maxTranslate()&&(u||0)!==o)return!1}let b;o!==(d||0)&&i&&a.emit("beforeSlideChangeStart"),a.updateProgress(y),b=o>u?"next":o<u?"prev":"reset";const w=a.virtual&&a.params.virtual.enabled;if((!w||!r)&&(p&&-y===a.translate||!p&&y===a.translate))return a.updateActiveIndex(o),s.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==s.effect&&a.setTranslate(y),"reset"!==b&&(a.transitionStart(i,b),a.transitionEnd(i,b)),!1;if(s.cssMode){const e=a.isHorizontal(),i=p?y:-y;if(0===t)w&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),w&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[e?"scrollLeft":"scrollTop"]=i})):f[e?"scrollLeft":"scrollTop"]=i,w&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return h({swiper:a,targetPosition:i,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return a.setTransition(t),a.setTranslate(y),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,n),a.transitionStart(i,b),0===t?a.transitionEnd(i,b):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(i,b))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,n){void 0===e&&(e=0),void 0===i&&(i=!0),"string"==typeof e&&(e=parseInt(e,10));const r=this;if(r.destroyed)return;void 0===t&&(t=r.params.speed);const a=r.grid&&r.params.grid&&r.params.grid.rows>1;let o=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)o+=r.virtual.slidesBefore;else{let e;if(a){const t=o*r.params.grid.rows;e=r.slides.filter(e=>1*e.getAttribute("data-swiper-slide-index")===t)[0].column}else e=r.getSlideIndexByData(o);const t=a?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:i}=r.params;let s=r.params.slidesPerView;"auto"===s?s=r.slidesPerViewDynamic():(s=Math.ceil(parseFloat(r.params.slidesPerView,10)),i&&s%2==0&&(s+=1));let l=t-e<s;if(i&&(l=l||e<Math.ceil(s/2)),n&&i&&"auto"!==r.params.slidesPerView&&!a&&(l=!1),l){const n=i?e<r.activeIndex?"prev":"next":e-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?r.realIndex:void 0})}if(a){const e=o*r.params.grid.rows;o=r.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0].column}else o=r.getSlideIndexByData(o)}return requestAnimationFrame(()=>{r.slideTo(o,t,i,n)}),r},slideNext:function(e,t,i){void 0===t&&(t=!0);const n=this,{enabled:r,params:a,animating:o}=n;if(!r||n.destroyed)return n;void 0===e&&(e=n.params.speed);let s=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(s=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<a.slidesPerGroupSkip?1:s,c=n.virtual&&a.virtual.enabled;if(a.loop){if(o&&!c&&a.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+l,e,t,i)}),!0}return a.rewind&&n.isEnd?n.slideTo(0,e,t,i):n.slideTo(n.activeIndex+l,e,t,i)},slidePrev:function(e,t,i){void 0===t&&(t=!0);const n=this,{params:r,snapGrid:a,slidesGrid:o,rtlTranslate:s,enabled:l,animating:c}=n;if(!l||n.destroyed)return n;void 0===e&&(e=n.params.speed);const d=n.virtual&&r.virtual.enabled;if(r.loop){if(c&&!d&&r.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=u(s?n.translate:-n.translate),h=a.map(e=>u(e));let f=a[h.indexOf(p)-1];if(void 0===f&&r.cssMode){let e;a.forEach((t,i)=>{p>=t&&(e=i)}),void 0!==e&&(f=a[e>0?e-1:e])}let m=0;if(void 0!==f&&(m=o.indexOf(f),m<0&&(m=n.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(m=m-n.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),r.rewind&&n.isBeginning){const r=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(r,e,t,i)}return r.loop&&0===n.activeIndex&&r.cssMode?(requestAnimationFrame(()=>{n.slideTo(m,e,t,i)}),!0):n.slideTo(m,e,t,i)},slideReset:function(e,t,i){void 0===t&&(t=!0);const n=this;if(!n.destroyed)return void 0===e&&(e=n.params.speed),n.slideTo(n.activeIndex,e,t,i)},slideToClosest:function(e,t,i,n){void 0===t&&(t=!0),void 0===n&&(n=.5);const r=this;if(r.destroyed)return;void 0===e&&(e=r.params.speed);let a=r.activeIndex;const o=Math.min(r.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[s]){const e=r.snapGrid[s];l-e>(r.snapGrid[s+1]-e)*n&&(a+=r.params.slidesPerGroup)}else{const e=r.snapGrid[s-1];l-e<=(r.snapGrid[s]-e)*n&&(a-=r.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,r.slidesGrid.length-1),r.slideTo(a,e,t,i)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:i}=e,n="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let r,a=e.clickedIndex;const o=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-n/2||a>e.slides.length-e.loopedSlides+n/2?(e.loopFix(),a=e.getSlideIndex(m(i,`${o}[data-swiper-slide-index="${r}"]`)[0]),s(()=>{e.slideTo(a)})):e.slideTo(a):a>e.slides.length-n?(e.loopFix(),a=e.getSlideIndex(m(i,`${o}[data-swiper-slide-index="${r}"]`)[0]),s(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}},U={loopCreate:function(e){const t=this,{params:i,slidesEl:n}=t;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;const r=()=>{m(n,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},a=t.grid&&i.grid&&i.grid.rows>1,o=i.slidesPerGroup*(a?i.grid.rows:1),s=t.slides.length%o!=0,l=a&&t.slides.length%i.grid.rows!=0,c=e=>{for(let n=0;n<e;n+=1){const e=t.isElement?v("swiper-slide",[i.slideBlankClass]):v("div",[i.slideClass,i.slideBlankClass]);t.slidesEl.append(e)}};s?(i.loopAddBlankSlides?(c(o-t.slides.length%o),t.recalcSlides(),t.updateSlides()):g("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may
151not function properly. You need to add more slides (or make duplicates, or empty slides)"),r()):l?(i.loopAddBlankSlides?(c(i.grid.rows-t.slides.length%i.grid.rows),t.recalcSlides(),t.updateSlides()):g("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),r()):r(),t.loopFix({slideRealIndex:e,direction:i.centeredSlides?void 0:"next"})},loopFix:function(e){let{slideRealIndex:t,slideTo:i=!0,direction:n,setTranslate:r,activeSlideIndex:a,byController:o,byMousewheel:s}=void 0===e?{}:e;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:u,slidesEl:p,params:h}=l,{centeredSlides:f}=h;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&h.virtual.enabled)return i&&(h.centeredSlides||0!==l.snapIndex?h.centeredSlides&&l.snapIndex<h.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=d,l.allowSlideNext=u,void l.emit("loopFix");let m=h.slidesPerView;"auto"===m?m=l.slidesPerViewDynamic():(m=Math.ceil(parseFloat(h.slidesPerView,10)),f&&m%2==0&&(m+=1));const v=h.slidesPerGroupAuto?m:h.slidesPerGroup;let y=v;y%v!=0&&(y+=v-y%v),y+=h.loopAdditionalSlides,l.loopedSlides=y;const b=l.grid&&h.grid&&h.grid.rows>1;c.length<m+y?g("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):b&&"row"===h.grid.fill&&g("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const w=[],S=[];let x=l.activeIndex;void 0===a?a=l.getSlideIndex(c.filter(e=>e.classList.contains(h.slideActiveClass))[0]):x=a;const C="next"===n||!n,T="prev"===n||!n;let k=0,E=0;const M=b?Math.ceil(c.length/h.grid.rows):c.length,I=(b?c[a].column:a)+(f&&void 0===r?-m/2+.5:0);if(I<y){k=Math.max(y-I,v);for(let e=0;e<y-I;e+=1){const t=e-Math.floor(e/M)*M;if(b){const e=M-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&w.push(t)}else w.push(M-t-1)}}else if(I+m>M-y){E=Math.max(I-(M-2*y),v);for(let e=0;e<E;e+=1){const t=e-Math.floor(e/M)*M;b?c.forEach((e,i)=>{e.column===t&&S.push(i)}):S.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),T&&w.forEach(e=>{c[e].swiperLoopMoveDOM=!0,p.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}),C&&S.forEach(e=>{c[e].swiperLoopMoveDOM=!0,p.append(c[e]),c[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===h.slidesPerView?l.updateSlides():b&&(w.length>0&&T||S.length>0&&C)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),h.watchSlidesProgress&&l.updateSlidesOffset(),i)if(w.length>0&&T){if(void 0===t){const e=l.slidesGrid[x],t=l.slidesGrid[x+k]-e;s?l.setTranslate(l.translate-t):(l.slideTo(x+Math.ceil(k),0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(r){const e=b?w.length/h.grid.rows:w.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(S.length>0&&C)if(void 0===t){const e=l.slidesGrid[x],t=l.slidesGrid[x-E]-e;s?l.setTranslate(l.translate-t):(l.slideTo(x-E,0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=b?S.length/h.grid.rows:S.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=d,l.allowSlideNext=u,l.controller&&l.controller.control&&!o){const e={slideRealIndex:t,direction:n,setTranslate:r,activeSlideIndex:a,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===h.slidesPerView&&i})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...e,slideTo:l.controller.control.params.slidesPerView===h.slidesPerView&&i})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:i}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const n=[];
vendor: 5,640 bytes, line 151
151e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;n[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),n.forEach(e=>{i.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function V(e,t,i){const n=a(),{params:r}=e,o=r.edgeSwipeDetection,s=r.edgeSwipeThreshold;return!o||!(i<=s||i>=n.innerWidth-s)||"prevent"===o&&(t.preventDefault(),!0)}function z(e){const t=this,i=n();let r=e;r.originalEvent&&(r=r.originalEvent);const o=t.touchEventsData;if("pointerdown"===r.type){if(null!==o.pointerId&&o.pointerId!==r.pointerId)return;o.pointerId=r.pointerId}else"touchstart"===r.type&&1===r.targetTouches.length&&(o.touchId=r.targetTouches[0].identifier);if("touchstart"===r.type)return void V(t,r,r.targetTouches[0].pageX);const{params:s,touches:c,enabled:d}=t;if(!d)return;if(!s.simulateTouch&&"mouse"===r.pointerType)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let u=r.target;if("wrapper"===s.touchEventsTarget&&!function(e,t){const i=t.contains(e);return!i&&t instanceof HTMLSlotElement?[...t.assignedElements()].includes(e):i}(u,t.wrapperEl))return;if("which"in r&&3===r.which)return;if("button"in r&&r.button>0)return;if(o.isTouched&&o.isMoved)return;const p=!!s.noSwipingClass&&""!==s.noSwipingClass,h=r.composedPath?r.composedPath():r.path;p&&r.target&&r.target.shadowRoot&&h&&(u=h[0]);const f=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,m=!(!r.target||!r.target.shadowRoot);if(s.noSwiping&&(m?function(e,t){return void 0===t&&(t=this),function t(i){if(!i||i===n()||i===a())return null;i.assignedSlot&&(i=i.assignedSlot);const r=i.closest(e);return r||i.getRootNode?r||t(i.getRootNode().host):null}(t)}(f,u):u.closest(f)))return void(t.allowClick=!0);if(s.swipeHandler&&!u.closest(s.swipeHandler))return;c.currentX=r.pageX,c.currentY=r.pageY;const g=c.currentX,v=c.currentY;if(!V(t,r,g))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),c.startX=g,c.startY=v,o.touchStartTime=l(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(o.allowThresholdMove=!1);let y=!0;u.matches(o.focusableElements)&&(y=!1,"SELECT"===u.nodeName&&(o.isTouched=!1)),i.activeElement&&i.activeElement.matches(o.focusableElements)&&i.activeElement!==u&&("mouse"===r.pointerType||"mouse"!==r.pointerType&&!u.matches(o.focusableElements))&&i.activeElement.blur();const b=y&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!b||u.isContentEditable||r.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function q(e){const t=n(),i=this,r=i.touchEventsData,{params:a,touches:o,rtlTranslate:s,enabled:c}=i;if(!c)return;if(!a.simulateTouch&&"mouse"===e.pointerType)return;let d,u=e;if(u.originalEvent&&(u=u.originalEvent),"pointermove"===u.type){if(null!==r.touchId)return;if(u.pointerId!==r.pointerId)return}if("touchmove"===u.type){if(d=[...u.changedTouches].filter(e=>e.identifier===r.touchId)[0],!d||d.identifier!==r.touchId)return}else d=u;if(!r.isTouched)return void(r.startMoving&&r.isScrolling&&i.emit("touchMoveOpposite",u));const p=d.pageX,h=d.pageY;if(u.preventedByNestedSwiper)return o.startX=p,void(o.startY=h);if(!i.allowTouchMove)return u.target.matches(r.focusableElements)||(i.allowClick=!1),void(r.isTouched&&(Object.assign(o,{startX:p,startY:h,currentX:p,currentY:h}),r.touchStartTime=l()));if(a.touchReleaseOnEdges&&!a.loop)if(i.isVertical()){if(h<o.startY&&i.translate<=i.maxTranslate()||h>o.startY&&i.translate>=i.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(p<o.startX&&i.translate<=i.maxTranslate()||p>o.startX&&i.translate>=i.minTranslate())return;if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==u.target&&"mouse"!==u.pointerType&&t.activeElement.blur(),t.activeElement&&u.target===t.activeElement&&u.target.matches(r.focusableElements))return r.isMoved=!0,void(i.allowClick=!1);r.allowTouchCallbacks&&i.emit("touchMove",u),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=p,o.currentY=h;const f=o.currentX-o.startX,m=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(f**2+m**2)<i.params.threshold)return;if(void 0===r.isScrolling){let e;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:f*f+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(f))/Math.PI,r.isScrolling=i.isHorizontal()?e>a.touchAngle:90-e>a.touchAngle)}if(r.isScrolling&&i.emit("touchMoveOpposite",u),void 0===r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling||"touchmove"===u.type&&r.preventTouchMoveFromPointerMove)return void(r.isTouched=!1);if(!r.startMoving)return;i.allowClick=!1,!a.cssMode&&u.cancelable&&u.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&u.stopPropagation();let g=i.isHorizontal()?f:m,v=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;a.oneWayMovement&&(g=Math.abs(g)*(s?1:-1),v=Math.abs(v)*(s?1:-1)),o.diff=g,g*=a.touchRatio,s&&(g=-g,v=-v);const y=i.touchesDirection;i.swipeDirection=g>0?"prev":"next",i.touchesDirection=v>0?"prev":"next";const b=i.params.loop&&!a.cssMode,w="next"===i.touchesDirection&&i.allowSlideNext||"prev"===i.touchesDirection&&i.allowSlidePrev;if(!r.isMoved){if(b&&w&&i.loopFix({direction:i.swipeDirection}),r.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});
vendor: 2,139 bytes, line 151
151i.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,!a.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",u)}if((new Date).getTime(),r.isMoved&&r.allowThresholdMove&&y!==i.touchesDirection&&b&&w&&Math.abs(g)>=1)return Object.assign(o,{startX:p,startY:h,currentX:p,currentY:h,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,void(r.startTranslate=r.currentTranslate);i.emit("sliderMove",u),r.isMoved=!0,r.currentTranslate=g+r.startTranslate;let S=!0,x=a.resistanceRatio;if(a.touchReleaseOnEdges&&(x=0),g>0?(b&&w&&r.allowThresholdMove&&r.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-("auto"!==a.slidesPerView&&i.slides.length-a.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>i.minTranslate()&&(S=!1,a.resistance&&(r.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+r.startTranslate+g)**x))):g<0&&(b&&w&&r.allowThresholdMove&&r.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+("auto"!==a.slidesPerView&&i.slides.length-a.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===a.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),r.currentTranslate<i.maxTranslate()&&(S=!1,a.resistance&&(r.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-r.startTranslate-g)**x))),S&&(u.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),i.allowSlidePrev||i.allowSlideNext||(r.currentTranslate=r.startTranslate),a.threshold>0){if(!(Math.abs(g)>a.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);
vendor: 18,819 bytes, line 151
151if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}a.followFinger&&!a.cssMode&&((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(r.currentTranslate),i.setTranslate(r.currentTranslate))}function Y(e){const t=this,i=t.touchEventsData;let n,r=e;if(r.originalEvent&&(r=r.originalEvent),"touchend"===r.type||"touchcancel"===r.type){if(n=[...r.changedTouches].filter(e=>e.identifier===i.touchId)[0],!n||n.identifier!==i.touchId)return}else{if(null!==i.touchId)return;if(r.pointerId!==i.pointerId)return;n=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&(!["pointercancel","contextmenu"].includes(r.type)||!t.browser.isSafari&&!t.browser.isWebView))return;i.pointerId=null,i.touchId=null;const{params:a,touches:o,rtlTranslate:c,slidesGrid:d,enabled:u}=t;if(!u)return;if(!a.simulateTouch&&"mouse"===r.pointerType)return;if(i.allowTouchCallbacks&&t.emit("touchEnd",r),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&a.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);a.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const p=l(),h=p-i.touchStartTime;if(t.allowClick){const e=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(e&&e[0]||r.target,e),t.emit("tap click",r),h<300&&p-i.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(i.lastClickTime=l(),s(()=>{t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||0===o.diff&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let f;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,f=a.followFinger?c?t.translate:-t.translate:-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:f});const m=f>=-t.maxTranslate()&&!t.params.loop;let g=0,v=t.slidesSizesGrid[0];for(let e=0;e<d.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){const t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==d[e+t]?(m||f>=d[e]&&f<d[e+t])&&(g=e,v=d[e+t]-d[e]):(m||f>=d[e])&&(g=e,v=d[d.length-1]-d[d.length-2])}let y=null,b=null;a.rewind&&(t.isBeginning?b=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(y=0));const w=(f-d[g])/v,S=g<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(h>a.longSwipesMs){if(!a.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(w>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?y:g+S):t.slideTo(g)),"prev"===t.swipeDirection&&(w>1-a.longSwipesRatio?t.slideTo(g+S):null!==b&&w<0&&Math.abs(w)>a.longSwipesRatio?t.slideTo(b):t.slideTo(g))}else{if(!a.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||r.target!==t.navigation.nextEl&&r.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==y?y:g+S),"prev"===t.swipeDirection&&t.slideTo(null!==b?b:g)):r.target===t.navigation.nextEl?t.slideTo(g+S):t.slideTo(g)}}function W(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:r,snapGrid:a}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=o&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s?e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=n,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function G(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function X(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:n}=e;if(!n)return;let r;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const a=e.maxTranslate()-e.minTranslate();r=0===a?0:(e.translate-e.minTranslate())/a,r!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Q(e){const t=this;_(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function J(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Z=(e,t)=>{const i=n(),{params:r,el:a,wrapperEl:o,device:s}=e,l=!!r.nested,c="on"===t?"addEventListener":"removeEventListener",d=t;a&&"string"!=typeof a&&(i[c]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:l}),a[c]("touchstart",e.onTouchStart,{passive:!1}),a[c]("pointerdown",e.onTouchStart,{passive:!1}),i[c]("touchmove",e.onTouchMove,{passive:!1,capture:l}),i[c]("pointermove",e.onTouchMove,{passive:!1,capture:l}),i[c]("touchend",e.onTouchEnd,{passive:!0}),i[c]("pointerup",e.onTouchEnd,{passive:!0}),i[c]("pointercancel",e.onTouchEnd,{passive:!0}),i[c]("touchcancel",e.onTouchEnd,{passive:!0}),i[c]("pointerout",e.onTouchEnd,{passive:!0}),i[c]("pointerleave",e.onTouchEnd,{passive:!0}),i[c]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&a[c]("click",e.onClick,!0),r.cssMode&&o[c]("scroll",e.onScroll),r.updateOnWindowResize?e[d](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",W,!0):e[d]("observerUpdate",W,!0),a[c]("load",e.onLoad,{capture:!0}))},K=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var ee={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function te(e,t){return function(i){void 0===i&&(i={});const n=Object.keys(i)[0],r=i[n];"object"==typeof r&&null!==r?(!0===e[n]&&(e[n]={enabled:!0}),"navigation"===n&&e[n]&&e[n].enabled&&!e[n].prevEl&&!e[n].nextEl&&(e[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&e[n]&&e[n].enabled&&!e[n].el&&(e[n].auto=!0),n in e&&"enabled"in r?("object"!=typeof e[n]||"enabled"in e[n]||(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),u(t,i)):u(t,i)):u(t,i)}}const ie={eventsEmitter:P,update:F,translate:N,transition:{setTransition:function(e,t){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${e}ms`,i.wrapperEl.style.transitionDelay=0===e?"0ms":""),i.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),H({swiper:i,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const i=this,{params:n}=i;i.animating=!1,n.cssMode||(i.setTransition(0),H({swiper:i,runCallbacks:e,direction:t,step:"End"}))}},slide:B,loop:U,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=z.bind(e),e.onTouchMove=q.bind(e),e.onTouchEnd=Y.bind(e),e.onDocumentTouchStart=J.bind(e),t.cssMode&&(e.onScroll=X.bind(e)),e.onClick=G.bind(e),e.onLoad=Q.bind(e),Z(e,"on")},detachEvents:function(){Z(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:i,params:n,el:r}=e,a=n.breakpoints;if(!a||a&&0===Object.keys(a).length)return;const o=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const s=(o in a?a[o]:void 0)||e.originalParams,l=K(e,n),c=K(e,s),d=e.params.grabCursor,p=s.grabCursor,h=n.enabled;l&&!c?(r.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!l&&c&&(r.classList.add(`${n.containerModifierClass}grid`),(s.grid.fill&&"column"===s.grid.fill||!s.grid.fill&&"column"===n.grid.fill)&&r.classList.add(`${n.containerModifierClass}grid-column`),e.emitContainerClasses()),d&&!p?e.unsetGrabCursor():!d&&p&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===s[t])return;const i=n[t]&&n[t].enabled,r=s[t]&&s[t].enabled;i&&!r&&e[t].disable(),!i&&r&&e[t].enable()});const f=s.direction&&s.direction!==n.direction,m=n.loop&&(s.slidesPerView!==n.slidesPerView||f),g=n.loop;f&&i&&e.changeDirection(),u(e.params,s);const v=e.params.enabled,y=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!v?e.disable():!h&&v&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",s),i&&(m?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!g&&y?(e.loopCreate(t),e.updateSlides()):g&&!y&&e.loopDestroy()),e.emit("breakpoint",s)},getBreakpoint:function(e,t,i){if(void 0===t&&(t="window"),!e||"container"===t&&!i)return;let n=!1;const r=a(),o="window"===t?r.innerHeight:i.clientHeight,s=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}});s.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<s.length;e+=1){const{point:a,value:o}=s[e];"window"===t?r.matchMedia(`(min-width: ${o}px)`).matches&&(n=a):o<=i.clientWidth&&(n=a)}return n||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:i}=e,{slidesOffsetBefore:n}=i;if(n){const t=e.slides.length-1,i=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*n;e.isLocked=e.size>i}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:i,rtl:n,el:r,device:a}=e,o=function(e,t){const i=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(n=>{e[n]&&i.push(t+n)}):"string"==typeof e&&i.push(t+e)}),i}(["initialized",i.direction,{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:a.android},{ios:a.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...o),r.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},ne={};class re{constructor(){let e,t;for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];1===r.length&&r[0].constructor&&"Object"===Object.prototype.toString.call(r[0]).slice(8,-1)?t=r[0]:[e,t]=r,t||(t={}),t=u({},t),e&&!t.el&&(t.el=e);const o=n();if(t.el&&"string"==typeof t.el&&o.querySelectorAll(t.el).length>1){const e=[];return o.querySelectorAll(t.el).forEach(i=>{const n=u({},t,{el:i});e.push(new re(n))}),e}const s=this;s.__swiper__=!0,s.support=A(),s.device=L({userAgent:t.userAgent}),s.browser=D(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],t.modules&&Array.isArray(t.modules)&&s.modules.push(...t.modules);const l={};s.modules.forEach(e=>{e({params:t,swiper:s,extendParams:te(t,l),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const c=u({},ee,l);return s.params=u({},c,ne,t),s.originalParams=u({},s.params),s.passedParams=u({},t),s.params&&s.params.on&&Object.keys(s.params.on).forEach(e=>{s.on(e,s.params.on[e])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:i}=this,n=w(m(t,`.${i.slideClass}, swiper-slide`)[0]);return w(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=m(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const n=i.minTranslate(),r=(i.maxTranslate()-n)*e+n;i.translateTo(r,void 0===t?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(i=>{const n=e.getSlideClasses(i);t.push({slideEl:i,classNames:n}),e.emit("_slideClass",i,n)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:i,slides:n,slidesGrid:r,slidesSizesGrid:a,size:o,activeIndex:s}=this;let l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let e,t=n[s]?Math.ceil(n[s].swiperSlideSize):0;for(let i=s+1;i<n.length;i+=1)n[i]&&!e&&(t+=Math.ceil(n[i].swiperSlideSize),l+=1,t>o&&(e=!0));for(let i=s-1;i>=0;i-=1)n[i]&&!e&&(t+=n[i].swiperSlideSize,l+=1,t>o&&(e=!0))}else if("current"===e)for(let e=s+1;e<n.length;e+=1)(t?r[e]+a[e]-r[s]<o:r[e]-r[s]<o)&&(l+=1);else for(let e=s-1;e>=0;e-=1)r[s]-r[e]<o&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:i}=e;function n(){const t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(i.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&_(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode)n(),i.autoHeight&&e.updateAutoHeight();else{if(("auto"===i.slidesPerView||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){const t=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(t.length-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||n()}i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const i=this,n=i.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(i.el.classList.remove(`${i.params.containerModifierClass}${n}`),i.el.classList.add(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.forEac
151h(t=>{"vertical"===e?t.style.width="":t.style.height=""}),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(n()):m(i,n())[0];return!r&&t.params.createElements&&(r=v("div",t.params.wrapperClass),i.append(r),m(i,`.${t.params.slideClass}`).forEach(e=>{r.append(e)})),Object.assign(t,{el:i,wrapperEl:r,slidesEl:t.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:r,hostEl:t.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===b(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===b(i,"direction")),wrongRTL:"-webkit-box"===b(r,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const i=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&i.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(e=>{e.complete?_(t,e):e.addEventListener("load",e=>{_(t,e.target)})}),O(t),t.initialized=!0,O(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const i=this,{params:n,el:r,wrapperEl:a,slides:o}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),t&&(i.removeClasses(),r&&"string"!=typeof r&&r.removeAttribute("style"),a&&a.removeAttribute("style"),o&&o.length&&o.forEach(e=>{e.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(e=>{i.off(e)}),!1!==e&&(i.el&&"string"!=typeof i.el&&(i.el.swiper=null),function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(i)),i.destroyed=!0),null}static extendDefaults(e){u(ne,e)}static get extendedDefaults(){return ne}static get defaults(){return ee}static installModule(e){re.prototype.__modules__||(re.prototype.__modules__=[]);const t=re.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>re.installModule(e)),re):(re.installModule(e),re)}}function ae(e,t,i,n){return e.params.createElements&&Object.keys(n).forEach(r=>{if(!i[r]&&!0===i.auto){let a=m(e.el,`.${n[r]}`)[0];a||(a=v("div",n[r]),a.className=n[r],e.el.append(a)),i[r]=a,t[r]=a}}),i}function oe(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function se(e){const t=this,{params:i,slidesEl:n}=t;i.loop&&t.loopDestroy();const r=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,n.append(t.children[0]),t.innerHTML=""}else n.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&r(e[t]);else r(e);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update()}function le(e){const t=this,{params:i,activeIndex:n,slidesEl:r}=t;i.loop&&t.loopDestroy();let a=n+1;const o=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,r.prepend(t.children[0]),t.innerHTML=""}else r.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&o(e[t]);a=n+e.length}else o(e);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update(
151),t.slideTo(a,0,!1)}function ce(e,t){const i=this,{params:n,activeIndex:r,slidesEl:a}=i;let o=r;n.loop&&(o-=i.loopedSlides,i.loopDestroy(),i.recalcSlides());const s=i.slides.length;if(e<=0)return void i.prependSlide(t);if(e>=s)return void i.appendSlide(t);let l=o>e?o+1:o;const c=[];for(let t=s-1;t>=e;t-=1){const e=i.slides[t];e.remove(),c.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&a.append(t[e]);l=o>e?o+t.length:o}else a.append(t);for(let e=0;e<c.length;e+=1)a.append(c[e]);i.recalcSlides(),n.loop&&i.loopCreate(),n.observer&&!i.isElement||i.update(),n.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)}function de(e){const t=this,{params:i,activeIndex:n}=t;let r=n;i.loop&&(r-=t.loopedSlides,t.loopDestroy());let a,o=r;if("object"==typeof e&&"length"in e){for(let i=0;i<e.length;i+=1)a=e[i],t.slides[a]&&t.slides[a].remove(),a<o&&(o-=1);o=Math.max(o,0)}else a=e,t.slides[a]&&t.slides[a].remove(),a<o&&(o-=1),o=Math.max(o,0);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update(),i.loop?t.slideTo(o+t.loopedSlides,0,!1):t.slideTo(o,0,!1)}function ue(){const e=this,t=[];for(let i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}function pe(e){const{effect:t,swiper:i,on:n,setTranslate:r,setTransition:a,overwriteParams:o,perspective:s,recreateShadows:l,getEffectParams:c}=e;let d;n("beforeInit",()=>{if(i.params.effect!==t)return;i.classNames.push(`${i.params.containerModifierClass}${t}`),s&&s()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const e=o?o():{};Object.assign(i.params,e),Object.assign(i.originalParams,e)}),n("setTranslate",()=>{i.params.effect===t&&r()}),n("setTransition",(e,n)=>{i.params.effect===t&&a(n)}),n("transitionEnd",()=>{if(i.params.effect===t&&l){if(!c||!c().slideShadows)return;i.slides.forEach(e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>e.remove())}),l()}}),n("virtualUpdate",()=>{i.params.effect===t&&(i.slides.length||(d=!0),requestAnimationFrame(()=>{d&&i.slides&&i.slides.length&&(r(),d=!1)}))})}function he(e,t){const i=f(t);return i!==t&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i}function fe(e){let{swiper:t,duration:i,transformElements:n,allSlides:r}=e;const{activeIndex:a}=t;if(t.params.virtualTranslate&&0!==i){let e,i=!1;e=r?n:n.filter(e=>{const i=e.classList.contains("swiper-slide-transform")?(e=>e.parentElement?e.parentElement:t.slides.filter(t=>t.shadowRoot&&t.shadowRoot===e.parentNode)[0])(e):e;return t.getSlideIndex(i)===a}),e.forEach(e=>{x(e,()=>{if(i)return;if(!t||t.destroyed)return;i=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)})})}}function me(e,t,i){const n=`swiper-slide-shadow${i?`-${i}`:""}${e?` swiper-slide-shadow-${e}`:""}`,r=f(t);let a=r.querySelector(`.${n.split(" ").join(".")}`);return a||(a=v("div",n.split(" ")),r.append(a)),a}Object.keys(ie).forEach(e=>
151{Object.keys(ie[e]).forEach(t=>{re.prototype[t]=ie[e][t]})}),re.use([function(e){let{swiper:t,on:i,emit:n}=e;const r=a();let o=null,s=null;const l=()=>{t&&!t.destroyed&&t.initialized&&(n("beforeResize"),n("resize"))},c=()=>{t&&!t.destroyed&&t.initialized&&n("orientationchange")};i("init",()=>{t.params.resizeObserver&&void 0!==r.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver(e=>{s=r.requestAnimationFrame(()=>{const{width:i,height:n}=t;let r=i,a=n;e.forEach(e=>{let{contentBoxSize:i,contentRect:n,target:o}=e;o&&o!==t.el||(r=n?n.width:(i[0]||i).inlineSize,a=n?n.height:(i[0]||i).blockSize)}),r===i&&a===n||l()})}),o.observe(t.el)):(r.addEventListener("resize",l),r.addEventListener("orientationchange",c))}),i("destroy",()=>{s&&r.cancelAnimationFrame(s),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),r.removeEventListener("resize",l),r.removeEventListener("orientationchange",c)})},function(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const o=[],s=a(),l=function(e,i){void 0===i&&(i={});const n=new(s.MutationObserver||s.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(1===e.length)return void r("observerUpdate",e[0]);const i=function(){r("observerUpdate",e[0])};s.requestAnimationFrame?s.requestAnimationFrame(i):s.setTimeout(i,0)});n.observe(e,{attributes:void 0===i.attributes||i.attributes,childList:t.isElement||(void 0===i.childList||i).childList,characterData:void 0===i.characterData||i.characterData}),o.push(n)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(t.params.observer){if(t.params.observeParents){const e=S(t.hostEl);for(let t=0;t<e.length;t+=1)l(e[t])}l(t.hostEl,{childList:t.params.observeSlideChildren}),l(t.wrapperEl,{attributes:!1})}}),n("destroy",()=>{o.forEach(e=>{e.disconnect()}),o.splice(0,o.length)})}]);const ge=[function(e){let t,{swiper:i,extendParams:r,on:a,emit:o}=e;r({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const s=n();i.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const l=s.createElement("div");function c(e,t){const n=i.params.virtual;if(n.cache&&i.virtual.cache[t])return i.virtual.cache[t];let r;return n.renderSlide?(r=n.renderSlide.call(i,e,t),"string"==typeof r&&(l.innerHTML=r,r=l.children[0])):r=i.isElement?v("swiper-slide"):v("div",i.params.slideClass),r.setAttribute("data-swiper-slide-index",t),n.renderSlide||(r.innerHTML=e),n.cache&&(i.virtual.cache[t]=r),r}function d(e,t){const{slidesPerView:n,slidesPerGroup:r,centeredSlides:a,loop:s,initialSlide:l}=i.params;if(t&&!s&&l>0)return;const{addSlidesBefore:d,addSlidesAfter:u}=i.params.virtual,{from:p,to:h,slides:f,slidesGrid:g,offset:v}=i.virtual;i.params.cssMode||i.updateActiveIndex();const y=i.activeIndex||0;let b,w,S;b=i.rtlTranslate?"right":i.isHorizontal()?"left":"top",a?(w=Math.floor(n/2)+r+u,S=Math.floor(n/2)+r+d):(w=n+(r-1)+u,S=(s?n:r)+d);let x=y-S,C=y+w;s||(x=Math.max(x,0),C=Math.min(C,f.length-1));let T=(i.slidesGrid[x]||0)-(i.slidesGrid[0]||0);function k(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),o("virtualUpdate")}if(s&&y>=S?(x-=S,a||(T+=i.slidesGrid[0])):s&&y<S&&(x=-S,a&&(T+=i.slidesGrid[0])),Object.assign(i.virtual,{from:x,to:C,offset:T,slidesGrid:i.slidesGrid,slidesBefore:S,slidesAfter:w}),p===x&&h===C&&!e)return i.slidesGrid!==g&&T!==v&&i.slides.forEach(e=>{e.style[b]=T-Math.abs(i.cssOverflowAdjustment())+"px"}),i.updateProgress(),void o("virtualUpdate");if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:T,from:x,to:C,slides:function(){const e=[];for(let t=x;t<=C;t+=1)e.push(f[t]);return e}()}),void(i.params.virtual.renderExternalUpdate?k():o("virtualUpdate"));const E=[],M=[],I=e=>{let t=e;return e<0?t=f.length+e:t>=f.length&&(t-=f.length),t};if(e)i.slides.filter(e=>e.matches(`.${i.params.slideClass}, swiper-slide`)).forEach(e=>{e.remove()});else for(let e=p;e<=h;e+=1)if(e<x||e>C){const t=I(e);i.slides.filter(e=>e.matches(`.${i.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}
151"]`)).forEach(e=>{e.remove()})}const A=s?-f.length:0,L=s?2*f.length:f.length;for(let t=A;t<L;t+=1)if(t>=x&&t<=C){const i=I(t);void 0===h||e?M.push(i):(t>h&&M.push(i),t<p&&E.push(i))}if(M.forEach(e=>{i.slidesEl.append(c(f[e],e))}),s)for(let e=E.length-1;e>=0;e-=1){const t=E[e];i.slidesEl.prepend(c(f[t],t))}else E.sort((e,t)=>t-e),E.forEach(e=>{i.slidesEl.prepend(c(f[e],e))});m(i.slidesEl,".swiper-slide, swiper-slide").forEach(e=>{e.style[b]=T-Math.abs(i.cssOverflowAdjustment())+"px"}),k()}a("beforeInit",()=>{if(!i.params.virtual.enabled)return;let e;if(void 0===i.passedParams.virtual.slides){const t=[...i.slidesEl.children].filter(e=>e.matches(`.${i.params.slideClass}, swiper-slide`));t&&t.length&&(i.virtual.slides=[...t],e=!0,t.forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t),i.virtual.cache[t]=e,e.remove()}))}e||(i.virtual.slides=i.params.virtual.slides),i.classNames.push(`${i.params.containerModifierClass}virtual`),i.params.watchSlidesProgress=!0,i.originalParams.watchSlidesProgress=!0,d(!1,!0)}),a("setTranslate",()=>{i.params.virtual.enabled&&(i.params.cssMode&&!i._immediateVirtual?(clearTimeout(t),t=setTimeout(()=>{d()},100)):d())}),a("init update resize",()=>{i.params.virtual.enabled&&i.params.cssMode&&p(i.wrapperEl,"--swiper-virtual-size",`${i.virtualSize}px`)}),Object.assign(i.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&i.virtual.slides.push(e[t]);else i.virtual.slides.push(e);d(!0)},prependSlide:function(e){const t=i.activeIndex;let n=t+1,r=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&i.virtual.slides.unshift(e[t]);n=t+e.length,r=e.length}else i.virtual.slides.unshift(e);if(i.params.virtual.cache){const e=i.virtual.cache,t={};Object.keys(e).forEach(i=>{const n=e[i],a=n.getAttribute("data-swiper-slide-index");a&&n.setAttribute("data-swiper-slide-index",parseInt(a,10)+r),t[parseInt(i,10)+r]=n}),i.virtual.cache=t}d(!0),i.slideTo(n,0)},removeSlide:function(e){if(null==e)return;let t=i.activeIndex;if(Array.isArray(e))for(let n=e.length-1;n>=0;n-=1)i.params.virtual.cache&&(delete i.virtual.cache[e[n]],Object.keys(i.virtual.cache).forEach(t=>{t>e&&(i.virtual.cache[t-1]=i.virtual.cache[t],i.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete i.virtual.cache[t])})),i.virtual.slides.splice(e[n],1),e[n]<t&&(t-=1),t=Math.max(t,0);else i.params.virtual.cache&&(delete i.virtual.cache[e],Object.keys(i.virtual.cache).forEach(t=>{t>e&&(i.virtual.cache[t-1]=i.virtual.cache[t],i.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete i.virtual.cache[t])})),i.virtual.slides.splice(e,1),e<t&&(t-=1),t=Math.max(t,0);d(!0),i.slideTo(t,0)},removeAllSlides:function(){i.virtual.slides=[],i.params.virtual.cache&&(i.virtual.cache={}),d(!0),i.slideTo(0,0)},update:d})},function(e){let{swiper:t,extendParams:i,on:r,emit:o}=e;const s=n(),l=a();function c(e){if(!t.enabled)return;const{rtlTranslate:i}=t;let n=e;n.originalEvent&&(n=n.originalEvent);const r=n.keyCode||n.charCode,a=t.params.keyboard.pageUpDown,c=a&&33===r,d=a&&34===r,u=37===r,p=39===r,h=38===r,f=40===r;if(!t.allowSlideNext&&(t.isHorizontal()&&p||t.isVertical()&&f||d))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&h||c))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||s.activeElement&&s.activeElement.nodeName&&("input"===s.activeElement.nodeName.toLowerCase()||"textarea"===s.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(c||d||u||p||h||f)){let e=!1;if(S(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===S(t.el,`.${t.params.slideActiveClass}`).length)return;const n=t.el,r=n.clientWidth,a=n.clientHeight,o=l.innerWidth,s=l.innerHeight,c=y(n);i&&(c.left-=n.scrollLeft);const d=[[c.left,c.top],[c.left+r,c.top],[c.left,c.top+a],[c.left+r,c.top+a]];for(let t=0;t<d.length;t+=1){const i=d[t];if(i[0]>=0&&i[0]<=o&&i[1]>=0&&i[1]<=s){if(0===i[0]&&0===i[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||d||u||p)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),((d||p)&&!i||(c||u)&&i)&&t.slideNext(),((c||u)&&!i||(
151d||p)&&i)&&t.slidePrev()):((c||d||h||f)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),(d||f)&&t.slideNext(),(c||h)&&t.slidePrev()),o("keyPress",r)}}function d(){t.keyboard.enabled||(s.addEventListener("keydown",c),t.keyboard.enabled=!0)}function u(){t.keyboard.enabled&&(s.removeEventListener("keydown",c),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),r("init",()=>{t.params.keyboard.enabled&&d()}),r("destroy",()=>{t.keyboard.enabled&&u()}),Object.assign(t.keyboard,{enable:d,disable:u})},function(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const o=a();let c;i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let d,u=l();const p=[];function h(){t.enabled&&(t.mouseEntered=!0)}function f(){t.enabled&&(t.mouseEntered=!1)}function m(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta||t.params.mousewheel.thresholdTime&&l()-u<t.params.mousewheel.thresholdTime||!(e.delta>
151=6&&l()-u<60)&&(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),r("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),r("scroll",e.raw)),u=(new o.Date).getTime(),1))}function g(e){let i=e,n=!0;if(!t.enabled)return;if(e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const a=t.params.mousewheel;t.params.cssMode&&i.preventDefault();let o=t.el;"container"!==t.params.mousewheel.eventsTarget&&(o=document.querySelector(t.params.mousewheel.eventsTarget));const u=o&&o.contains(i.target);if(!t.mouseEntered&&!u&&!a.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);let h=0;const f=t.rtlTranslate?-1:1,g=function(e){let t=0,i=0,n=0,r=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),n=10*t,r=10*i,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),e.shiftKey&&!n&&(n=r,r=0),(n||r)&&e.deltaMode&&(1===e.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!t&&(t=n<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:t,spinY:i,pixelX:n,pixelY:r}}(i);if(a.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;h=-g.pixelX*f}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;h=-g.pixelY}else h=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*f:-g.pixelY;if(0===h)return!0;a.invert&&(h=-h);let v=t.getTranslate()+h*a.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),n=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()),n&&t.params.nested&&i.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:l(),delta:Math.abs(h),direction:Math.sign(h)},n=d&&e.time<d.time+500&&e.delta<=d.delta&&e.direction===d.direction;if(!n){d=void 0;let o=t.getTranslate()+h*a.sensitivity;const l=t.isBeginning,u=t.isEnd;if(o>=t.minTranslate()&&(o=t.minTranslate()),o<=t.maxTranslate()&&(o=t.maxTranslate()),t.setTransition(0),t.setTranslate(o),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!l&&t.isBeginning||!u&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(c),c=void 0,p.length>=15&&p.shift();const i=p.length?p[p.length-1]:void 0,n=p[0];if(p.push(e),i&&(e.delta>i.delta||e.direction!==i.direction))p.splice(0);else if(p.length>=15&&e.time-n.time<500&&n.delta-e.delta>=1&&e.delta<=6){const i=h>0?.8:.2;d=e,p.splice(0),c=s(()=>{!t.destroyed&&t.params&&t.slideToClosest(t.params.speed,!0,void 0,i)},0)}c||(c=s(()=>{!t.destroyed&&t.params&&(d=e,p.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5))},500))}if(n||r("scroll",i),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),a.releaseOnEdges&&(o===t.minTranslate()||o===t.maxTranslate()))return!0}}else{const i={time:l(),delta:Math.abs(h),direction:Math.sign(h),raw:e};p.length>=2&&p.shift();const n=p.length?p[p.length-1]:void 0;if(p.push(i),n?(i.direction!==n.direction||i.delta>n.delta||i.time>n.time+150)&&m(i):m(i),function(e){const i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges)return!0;return!1}(i))return!0}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1}function v(e){let i=t.el;"container"!==t.params.mousewheel.eventsTarget&&(i=document.querySelector(t.params.mousewheel.eventsTarget)),i[e]("mouseenter",h),i[e]("mouseleave",f),i[e]("wheel",g)}function y(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",g),!0):!t.mousewheel.enabled&&(v("addEventListener"),t.mousewheel.enabled=!0,!0)}function b(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,g),!0):!!t.mousewheel.enabled&&(v("removeEventListener"),t.mousewheel.enabled=!1,!0)}n("init",()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&b(),t.params.mousewheel.enabled&&y()}),n("destroy",()=>{t.params.cssMode&&y(),t.mousewheel.enabled&&b()}),Object.assign(t.mousewheel,{enable:y,disable:b})},function(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;function a(e){let i;return e&&"string"==typeof e&&t.isElement&&(i=t.el.querySelector(e)||t.hostEl.querySelector(e),i)?i:(e&&("string"==typeof e&&(i=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&i&&i.length>1&&1===t.el.querySelectorAll(e).length?i=t.el.querySelector(e):i&&1===i.length&&(i=i[0])),e&&!i?e:i)}function o(e,i){const n=t.params.navigation;
vendor: 1,041 bytes, line 151
151(e=T(e)).forEach(e=>{e&&(e.classList[i?"add":"remove"](...n.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=i),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass))})}function s(){const{nextEl:e,prevEl:i}=t.navigation;if(t.params.loop)return o(i,!1),void o(e,!1);o(i,t.isBeginning&&!t.params.rewind),o(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),r("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),r("navigationNext"))}function d(){const e=t.params.navigation;if(t.params.navigation=ae(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let i=a(e.nextEl),n=a(e.prevEl);Object.assign(t.navigation,{nextEl:i,prevEl:n}),i=T(i),n=T(n);const r=(i,n)=>{i&&i.addEventListener("click","next"===n?c:l),!t.enabled&&i&&i.classList.add(...e.lockClass.split(" "))};i.forEach(e=>
151r(e,"next")),n.forEach(e=>r(e,"prev"))}function u(){let{nextEl:e,prevEl:i}=t.navigation;e=T(e),i=T(i);const n=(e,i)=>{e.removeEventListener("click","next"===i?c:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach(e=>n(e,"next")),i.forEach(e=>n(e,"prev"))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},n("init",()=>{!1===t.params.navigation.enabled?p():(d(),s())}),n("toEdge fromEdge lock unlock",()=>{s()}),n("destroy",()=>{u()}),n("enable disable",()=>{let{nextEl:e,prevEl:i}=t.navigation;e=T(e),i=T(i),t.enabled?s():[...e,...i].filter(e=>!!e).forEach(e=>e.classList.add(t.params.navigation.lockClass))}),n("click",(e,i)=>{let{nextEl:n,prevEl:a}=t.navigation;n=T(n),a=T(a);const o=i.target;let s=a.includes(o)||n.includes(o);if(t.isElement&&!s){const e=i.path||i.composedPath&&i.composedPath();e&&(s=e.find(e=>n.includes(e)||a.includes(e)))}if(t.params.navigation.hideOnClick&&!s){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===o||t.pagination.el.contains(o)))return;let e;n.length?e=n[0].classList.contains(t.params.navigation.hiddenClass):a.length&&(e=a[0].classList.contains(t.params.navigation.hiddenClass)),r(!0===e?"navigationShow":"navigationHide"),[...n,...a].filter(e=>!!e).forEach(e=>e.classList.toggle(t.params.navigation.hiddenClass))}});const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),s()},disable:p,update:s,init:d,destroy:u})},function(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const a="swiper-pagination";let o;i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),t.pagination={el:null,bullets:[]};let s=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(e,i){const{bulletActiveClass:n}=t.params.pagination;e&&(e=e[("prev"===i?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${n}-${i}`),(e=e[("prev"===i?"previous":"next")+"ElementSibling"])&&e.classList.add(`${n}-${i}-${i}`))}function d(e){const i=e.target.closest(oe(t.params.pagination.bulletClass));if(!i)return;e.preventDefault();const n=w(i)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===n)return;const e=(r=t.realIndex,a=n,(a%=o=t.slides.length)==1+(r%=o)?"next":a===r-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(n)}else t.slideTo(n);var r,a,o}function u(){const e=t.rtl,i=t.params.pagination;if(l())return;let n,a,d=t.pagination.el;d=T(d);const u=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,p=t.params.loop?Math.ceil(u/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(a=t.previousRealIndex||0,n=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(n=t.snapIndex,a=t.previousSnapIndex):(a=t.previousIndex||0,n=t.activeIndex||0),"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const r=t.pagination.bullets;let l,u,p;if(i.dynamicBullets&&(o=C(r[0],t.isHorizontal()?"width":"height",!0),d.forEach(e=>{e.style[t.isHorizontal()?"width":"height"]=o*(i.dynamicMainBullets+4)+"px"}),i.dynamicMainBullets>1&&void 0!==a&&(s+=n-(a||0),s>i.dynamicMainBullets-1?s=i.dynamicMainBullets-1:s<0&&(s=0)),l=Math.max(n-s,0),u=l+(Math.min(r.length,i.dynamicMainBullets)-1),p=(u+l)/2),r.forEach(e
151=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${i.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),d.length>1)r.forEach(e=>{const r=w(e);r===n?e.classList.add(...i.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),i.dynamicBullets&&(r>=l&&r<=u&&e.classList.add(...`${i.bulletActiveClass}-main`.split(" ")),r===l&&c(e,"prev"),r===u&&c(e,"next"))});else{const e=r[n];if(e&&e.classList.add(...i.bulletActiveClass.split(" ")),t.isElement&&r.forEach((e,t)=>{e.setAttribute("part",t===n?"bullet-active":"bullet")}),i.dynamicBullets){const e=r[l],t=r[u];for(let e=l;e<=u;e+=1)r[e]&&r[e].classList.add(...`${i.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(i.dynamicBullets){const n=Math.min(r.length,i.dynamicMainBullets+4),a=(o*n-o)/2-p*o,s=e?"right":"left";r.forEach(e=>{e.style[t.isHorizontal()?s:"top"]=`${a}px`})}}d.forEach((e,a)=>{if("fraction"===i.type&&(e.querySelectorAll(oe(i.currentClass)).forEach(e=>{e.textContent=i.formatFractionCurrent(n+1)}),e.querySelectorAll(oe(i.totalClass)).forEach(e=>{e.textContent=i.formatFractionTotal(p)})),"progressbar"===i.type){let r;r=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const a=(n+1)/p;let o=1,s=1;"horizontal"===r?o=a:s=a,e.querySelectorAll(oe(i.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${o}) scaleY(${s})`,e.style.transitionDuration=`${t.params.speed}ms`})}"custom"===i.type&&i.renderCustom?(e.innerHTML=i.renderCustom(t,n+1,p),0===a&&r("paginationRender",e)):(0===a&&r("paginationRender",e),r("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass)})}function p(){const e=t.params.pagination;if(l())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let n=t.pagination.el;n=T(n);let a="";if("bullets"===e.type){let n=t.params.loop?Math.ceil(i/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&n>i&&(n=i);for(let i=0;i<n;i+=1)e.renderBullet?a+=e.renderBullet.call(t,i,e.bulletClass):a+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(a=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(a=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],n.forEach(i=>{"custom"!==e.type&&(i.innerHTML=a||""),"bullets"===e.type&&t.pagination.bullets.push(...i.querySelectorAll(oe(e.bulletClass)))}),"custom"!==e.type&&r("paginationRender",n[0])}function h(){t.params.pagination=ae(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let i;"string"==typeof e.el&&t.isElement&&(i=t.el.querySelector(e.el)),i||"string"!=typeof e.el||(i=[...document.querySelectorAll(e.el)]),i||(i=e.el),i&&0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(i)&&i.length>1&&(i=[...t.el.querySelectorAll(e.el)],i.length>1&&(i=i.filter(e=>S(e,".swiper")[0]===t.el)[0])),Array.isArray(i)&&1===i.length&&(i=i[0]),Object.assign(t.pagination,{el:i}),i=T(i),i.forEach(i=>{"bullets"===e.type&&e.clickable&&i.classList.add(...(e.clickableClass||"").split(" ")),i.classList.add(e.modifierClass+e.type),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(i.classList.add(`${e.modifierClass}${e.type}-dynamic`),s=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.classList.add(e.progressbarOppositeClass),e.clickable&&i.addEventListener("click",d),t.enabled||i.classList.add(e.lockClass)}))}function f(){const e=t.params.pagination;if(l())return;let i=t.pagination.el;
151i&&(i=T(i),i.forEach(i=>{i.classList.remove(e.hiddenClass),i.classList.remove(e.modifierClass+e.type),i.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(i.classList.remove(...(e.clickableClass||"").split(" ")),i.removeEventListener("click",d))})),t.pagination.bullets&&t.pagination.bullets.forEach(t=>t.classList.remove(...e.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:i}=t.pagination;i=T(i),i.forEach(i=>{i.classList.remove(e.horizontalClass,e.verticalClass),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),n("init",()=>{!1===t.params.pagination.enabled?m():(h(),p(),u())}),n("activeIndexChange",()=>{void 0===t.snapIndex&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{p(),u()}),n("destroy",()=>{f()}),n("enable disable",()=>{let{el:e}=t.pagination;e&&(e=T(e),e.forEach(e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),n("lock unlock",()=>{u()}),n("click",(e,i)=>{const n=i.target,a=T(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&a&&a.length>0&&!n.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&n===t.navigation.nextEl||t.navigation.prevEl&&n===t.navigation.prevEl))return;const e=a[0].classList.contains(t.params.pagination.hiddenClass);r(!0===e?"paginationShow":"paginationHide"),a.forEach(e=>e.classList.toggle(t.params.pagination.hiddenClass))}});const m=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=T(e),e.forEach(e=>e.classList.add(t.params.pagination.paginationDisabledClass))),f()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=T(e),e.forEach(e=>e.classList.remove(t.params.pagination.paginationDisabledClass))),h(),p(),u()},disable:m,render:p,update:u,init:h,destroy:f})},function(e){let{swiper:t,extendParams:i,on:r,emit:a}=e;const l=n();let c,d,u,p,h=!1,f=null,m=null;function g(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:i}=t,{dragEl:n,el:r}=e,a=t.params.scrollbar,o=t.params.loop?t.progressLoop:t.progress;let s=d,l=(u-d)*o;i?(l=-l,l>0?(s=d-l,l=0):-l+d>u&&(s=u+l)):l<0?(s=d+l,l=0):l+d>u&&(s=u-l),t.isHorizontal()?(n.style.transform=`translate3d(${l}px, 0, 0)`,n.style.width=`${s}px`):(n.style.transform=`translate3d(0px, ${l}px, 0)`,n.style.height=`${s}px`),a.hide&&(clearTimeout(f),r.style.opacity=1,f=setTimeout(()=>{r.style.opacity=0,r.style.transitionDuration="400ms"},1e3))}function b(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:i,el:n}=e;i.style.width="",i.style.height="",u=t.isHorizontal()?n.offsetWidth:n.offsetHeight,p=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),d="auto"===t.params.scrollbar.dragSize?u*p:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?i.style.width=`${d}px`:i.style.height=`${d}px`,n.style.display=p>=1?"none":"",t.params.scrollbar.hide&&(n.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function w(e){return t.isHorizontal()?e.clientX:e.clientY}function S(e){const{scrollbar:i,rtlTranslate:n}=t,{el:r}=i;let a;a=(w(e)-y(r)[t.isHorizontal()?"left":"top"]-(null!==c?c:d/2))/(u-d),a=Math.max(Math.min(a,1),0),n&&(a=1-a);const o=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*a;t.updateProgress(o),t.setTranslate(o),t.updateActiveIndex(),t.updateSlidesClasses()}function x(e){const i=t.params.scrollbar,{scrollbar:n,wrapperEl:r}=t,{el:o,dragEl:s}=n;h=!0,c=e.target===s?w(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.style.transitionDuration="100ms",s.style.transitionDuration="100ms",S(e),clearTimeout(m),o.style.transitionDuration="0ms",i.hide&&(o.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",e)}function C(e){const{scrollbar:i,wrapperEl:n}=t,{el:r,dragEl:o}=i;h&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,S(e),n.style.transitionDuration="0ms",r.style.transitionDuration="0ms",o.style.transitionDuration="0ms",a("scrollbarDragMove",e))}function k(e){const i=t.params.scrollbar,{scrollbar:n,wrapperEl:r}=t,{el:o}=n;h&&(h=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",r.style.transitionDuration=""),i.hide&&(clearTimeout(m),m=s(()=>{o.style.opacity=0,o.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())}function E(e){const{scrollbar:i,params:n}=t,r=i.el;if(!r)return;const a=r,o=!!n.passiveListeners&&{passive:!1,capture:!1},s=!!n.passiveListeners&&{passive:!0,capture:!1};if(!a)return;const c="on"===e?"addEventListener":"removeEventListener";a[c]("pointerdown",x,o),l[c]("pointermove",C,o),l[c]("pointerup",k,s)}function M(){const{scrollbar:e,el:i}=t;t.params.scrollbar=ae(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const n=t.params.scrollbar;if(!n.el)return;let r,a;
151if("string"==typeof n.el&&t.isElement&&(r=t.el.querySelector(n.el)),r||"string"!=typeof n.el)r||(r=n.el);else if(r=l.querySelectorAll(n.el),!r.length)return;t.params.uniqueNavElements&&"string"==typeof n.el&&r.length>1&&1===i.querySelectorAll(n.el).length&&(r=i.querySelector(n.el)),r.length>0&&(r=r[0]),r.classList.add(t.isHorizontal()?n.horizontalClass:n.verticalClass),r&&(a=r.querySelector(oe(t.params.scrollbar.dragClass)),a||(a=v("div",t.params.scrollbar.dragClass),r.append(a))),Object.assign(e,{el:r,dragEl:a}),n.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&E("on"),r&&r.classList[t.enabled?"remove":"add"](...o(t.params.scrollbar.lockClass))}function I(){const e=t.params.scrollbar,i=t.scrollbar.el;i&&i.classList.remove(...o(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&E("off")}i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},r("changeDirection",()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:i}=t.scrollbar;i=T(i),i.forEach(i=>{i.classList.remove(e.horizontalClass,e.verticalClass),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),r("init",()=>{!1===t.params.scrollbar.enabled?A():(M(),b(),g())}),r("update resize observerUpdate lock unlock changeDirection",()=>{b()}),r("setTranslate",()=>{g()}),r("setTransition",(e,i)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(i)}),r("enable disable",()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...o(t.params.scrollbar.lockClass))}),r("destroy",()=>{I()});const A=()=>{t.el.classList.add(...o(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...o(t.params.scrollbar.scrollbarDisabledClass)),I()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...o(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...o(t.params.scrollbar.scrollbarDisabledClass)),M(),b(),g()},disable:A,updateSize:b,setTranslate:g,init:M,destroy:I})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({parallax:{enabled:!1}});const r="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",a=(e,i)=>{const{rtl:n}=t,r=n?-1:1,a=e.getAttribute("data-swiper-parallax")||"0";let o=e.getAttribute("data-swiper-parallax-x"),s=e.getAttribute("data-swiper-parallax-y");const l=e.getAttribute("data-swiper-parallax-scale"),c=e.getAttribute("data-swiper-parallax-opacity"),d=e.getAttribute("data-swiper-parallax-rotate");if(o||s?(o=o||"0",s=s||"0"):t.isHorizontal()?(o=a,s="0"):(s=a,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*i*r+"%":o*i*r+"px",s=s.indexOf("%")>=0?parseInt(s,10)*i+"%":s*i+"px",null!=c){const t=c-(c-1)*(1-Math.abs(i));e.style.opacity=t}let u=`translate3d(${o}, ${s}, 0px)`;null!=l&&(u+=` scale(${l-(l-1)*(1-Math.abs(i))})`),d&&null!=d&&(u+=` rotate(${d*i*-1}deg)`),e.style.transform=u},o=()=>{const{el:e,slides:i,progress:n,snapGrid:o,isElement:s}=t,l=m(e,r);t.isElement&&l.push(...m(t.hostEl,r)),l.forEach(e=>{a(e,n)}
151),i.forEach((e,i)=>{let s=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(s+=Math.ceil(i/2)-n*(o.length-1)),s=Math.min(Math.max(s,-1),1),e.querySelectorAll(`${r}, [data-swiper-parallax-rotate]`).forEach(e=>{a(e,s)})})};n("beforeInit",()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)}),n("init",()=>{t.params.parallax.enabled&&o()}),n("setTranslate",()=>{t.params.parallax.enabled&&o()}),n("setTransition",(e,i)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:i,hostEl:n}=t,a=[...i.querySelectorAll(r)];t.isElement&&a.push(...n.querySelectorAll(r)),a.forEach(t=>{let i=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),t.style.transitionDuration=`${i}ms`})}(i)})},function(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const o=a();i({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let s,l,d=1,u=!1;const p=[],h={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},f={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v,b=1;function w(){if(p.length<2)return 1;const e=p[0].pageX,t=p[0].pageY,i=p[1].pageX,n=p[1].pageY;return Math.sqrt((i-e)**2+(n-t)**2)}function x(){const e=t.params.zoom,i=h.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&h.imageEl&&h.imageEl.naturalWidth){const e=h.imageEl.naturalWidth/h.imageEl.offsetWidth;return Math.min(e,i)}return i}function C(e){const i=t.isElement?"swiper-slide":`.${t.params.slideClass}`;return!!e.target.matches(i)||t.slides.filter(t=>t.contains(e.target)).length>0}function T(e){if("mouse"===e.pointerType&&p.splice(0,p.length),!C(e))return;const i=t.params.zoom;if(s=!1,l=!1,p.push(e),!(p.length<2)){if(s=!0,h.scaleStart=w(),!h.slideEl){h.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),h.slideEl||(h.slideEl=t.slides[t.activeIndex]);let n=h.slideEl.querySelector(`.${i.containerClass}`);if(n&&(n=n.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=n,h.imageWrapEl=n?S(h.imageEl,`.${i.containerClass}`)[0]:void 0,!h.imageWrapEl)return void(h.imageEl=void 0);h.maxRatio=x()}if(h.imageEl){const[e,t]=function(){if(p.length<2)return{x:null,y:null};const e=h.imageEl.getBoundingClientRect();return[(p[0].pageX+(p[1].pageX-p[0].pageX)/2-e.x-o.scrollX)/d,(p[0].pageY+(p[1].pageY-p[0].pageY)/2-e.y-o.scrollY)/d]}();h.originX=e,h.originY=t,h.imageEl.style.transitionDuration="0ms"}u=!0}}function k(e){if(!C(e))return;const i=t.params.zoom,n=t.zoom,r=p.findIndex(t=>t.pointerId===e.pointerId);r>=0&&(p[r]=e),p.length<2||(l=!0,h.scaleMove=w(),h.imageEl&&(n.scale=h.scaleMove/h.scaleStart*d,n.scale>h.maxRatio&&(n.scale=h.maxRatio-1+(n.scale-h.maxRatio+1)**.5),n.scale<i.minRatio&&(n.scale=i.minRatio+1-(i.minRatio-n.scale+1)**.5),h.imageEl.style.transform=`translate3d(0,0,0) scale(${n.scale})`))}function E(e){if(!C(e))return;if("mouse"===e.pointerType&&"pointerout"===e.type)return;const i=t.params.zoom,n=t.zoom,r=p.findIndex(t=>t.pointerId===e.pointerId);r>=0&&p.splice(r,1),s&&l&&(s=!1,l=!1,h.imageEl&&(n.scale=Math.max(Math.min(n.scale,h.maxRatio),i.minRatio),h.imageEl.style.transitionDuration=`${t.params.speed}ms`,h.imageEl.style.transform=`translate3d(0,0,0) scale(${n.scale})`,d=n.scale,u=!1,n.scale>1&&h.slideEl?h.slideEl.classList.add(`${i.zoomedSlideClass}`):n.scale<=1&&h.slideEl&&h.slideEl.classList.remove(`${i.zoomedSlideClass}`),1===n.scale&&(h.originX=0,h.originY=0,h.slideEl=void 0)))}function M(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function I(e){if(!C(e)||!function(e){const i=`.${t.params.zoom.containerClass}`;return!!e.target.matches(i)||[...t.hostEl.querySelectorAll(i)].filter(t=>t.contains(e.target)).length>0}(e))return;const i=t.zoom;if(!h.imageEl)return;if(!f.isTouched||!h.slideEl)return;f.isMoved||(f.width=h.imageEl.offsetWidth||h.imageEl.clientWidth,f.height=h.imageEl.offsetHeight||h.imageEl.clientHeight,f.startX=c(h.imageWrapEl,"x")||0,f.startY=c(h.imageWrapEl,"y")||0,h.slideWidth=h.slideEl.offsetWidth,h.slideHeight=h.slideEl.offsetHeight,h.imageWrapEl.style.transitionDuration="0ms");const n=f.width*i.scale,r=f.height*i.scale;if(f.minX=Math.min(h.slideWidth/2-n/2,0),f.maxX=-f.minX,f.minY=Math.min(h.slideHeight/2-r/2,0),f.maxY=-f.minY,f.touchesCurrent.x=p.length>0?p[0].pageX:e.pageX,f.touchesCurrent.y=p.length>0?p[0].pageY:e.pageY,Math.max(Math.abs(f.touchesCurrent.x-f.touchesStart.x),Math.abs(f.touchesCurrent.y-f.touchesStart.y))>5&&(t.allowClick=!1),!f.isMoved&&!u){if(t.isHorizontal()&&(Math.floor(f.minX)===Math.floor(f.startX)&&f.touchesCurrent.x<f.touchesStart.x||Math.floor(f.maxX)===Math.floor(f.startX)&&f.touchesCurrent.x>f.touchesStart.x))return f.isTouched=!1,void M();if(!t.isHorizontal()&&(Math.floor(f.minY)===Math.floor(f.startY)&&f.touchesCurrent.y<f.touchesStart.y||Math.floor(f.maxY)===Math.floor(f.startY)&&f.touchesCurrent.y>f.touchesStart.y))return f.isTouched=!1,void M()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(v),t.touchEventsData.preventTouchMoveFromPointerMove=!0,v=setTimeout(()=>{t.destroyed||M()}),f.isMoved=!0;const a=(i.scale-d)/(h.maxRatio-t.params.zoom.minRatio),{originX:o,originY:s}=h;f.currentX=f.touchesCurrent.x-f.touchesStart.x+f.startX+a*(f.width-2*o),f.currentY=f.touchesCurrent.y-f.touchesStart.y+f.startY+a*(f.height-2*s),f.currentX<f.minX&&(f.currentX=f.minX+1-(f.minX-f.currentX+1)**.8),f.currentX>f.maxX&&(f.currentX=f.maxX-1+(f.currentX-f.maxX+1)**.8),f.currentY<f.minY&&(f.currentY=f.minY+1-(f.minY-f.currentY+1)**.8),f.currentY>f.maxY&&(f.currentY=f.maxY-1+(f.currentY-f.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=f.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=f.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(f.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(f.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(f.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(f.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=f.touchesCurrent.x,g.prevPositionY=f.touchesCurrent.y,g.prevTime=Date.now(),h.imageWrapEl.style.transform=`translate3d(${f.currentX}px, ${f.currentY}px,0)`}function A(){const e=t.zoom;h.slideEl&&t.activeIndex!==t.slides.indexOf(h.slideEl)&&(h.imageEl&&(h.imageEl.style.transform="translate3d(0,
1510,0) scale(1)"),h.imageWrapEl&&(h.imageWrapEl.style.transform="translate3d(0,0,0)"),h.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,d=1,h.slideEl=void 0,h.imageEl=void 0,h.imageWrapEl=void 0,h.originX=0,h.originY=0)}function L(e){const i=t.zoom,n=t.params.zoom;if(!h.slideEl){e&&e.target&&(h.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),h.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?h.slideEl=m(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:h.slideEl=t.slides[t.activeIndex]);let i=h.slideEl.querySelector(`.${n.containerClass}`);i&&(i=i.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=i,h.imageWrapEl=i?S(h.imageEl,`.${n.containerClass}`)[0]:void 0}if(!h.imageEl||!h.imageWrapEl)return;let r,a,s,l,c,u,p,g,v,b,w,C,T,k,E,M,I,A;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),h.slideEl.classList.add(`${n.zoomedSlideClass}`),void 0===f.touchesStart.x&&e?(r=e.pageX,a=e.pageY):(r=f.touchesStart.x,a=f.touchesStart.y);const L="number"==typeof e?e:null;1===d&&L&&(r=void 0,a=void 0,f.touchesStart.x=void 0,f.touchesStart.y=void 0);const D=x();i.scale=L||D,d=L||D,!e||1===d&&L?(p=0,g=0):(I=h.slideEl.offsetWidth,A=h.slideEl.offsetHeight,s=y(h.slideEl).left+o.scrollX,l=y(h.slideEl).top+o.scrollY,c=s+I/2-r,u=l+A/2-a,v=h.imageEl.offsetWidth||h.imageEl.clientWidth,b=h.imageEl.offsetHeight||h.imageEl.clientHeight,w=v*i.scale,C=b*i.scale,T=Math.min(I/2-w/2,0),k=Math.min(A/2-C/2,0),E=-T,M=-k,p=c*i.scale,g=u*i.scale,p<T&&(p=T),p>E&&(p=E),g<k&&(g=k),g>M&&(g=M)),L&&1===i.scale&&(h.originX=0,h.originY=0),h.imageWrapEl.style.transitionDuration="300ms",h.imageWrapEl.style.transform=`translate3d(${p}px, ${g}px,0)`,h.imageEl.style.transitionDuration="300ms",h.imageEl.style.transform=`translate3d(0,0,0) scale(${i.scale})`}function D(){const e=t.zoom,i=t.params.zoom;if(!h.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?h.slideEl=m(t.
151slidesEl,`.${t.params.slideActiveClass}`)[0]:h.slideEl=t.slides[t.activeIndex];let e=h.slideEl.querySelector(`.${i.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=e,h.imageWrapEl=e?S(h.imageEl,`.${i.containerClass}`)[0]:void 0}h.imageEl&&h.imageWrapEl&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,d=1,f.touchesStart.x=void 0,f.touchesStart.y=void 0,h.imageWrapEl.style.transitionDuration="300ms",h.imageWrapEl.style.transform="translate3d(0,0,0)",h.imageEl.style.transitionDuration="300ms",h.imageEl.style.transform="translate3d(0,0,0) scale(1)",h.slideEl.classList.remove(`${i.zoomedSlideClass}`),h.slideEl=void 0,h.originX=0,h.originY=0)}function P(e){const i=t.zoom;i.scale&&1!==i.scale?D():L(e)}function $(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function j(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:i,activeListenerWithCapture:n}=$();t.wrapperEl.addEventListener("pointerdown",T,i),t.wrapperEl.addEventListener("pointermove",k,n),["pointerup","pointercancel","pointerout"].forEach(e=>{t.wrapperEl.addEventListener(e,E,i)}),t.wrapperEl.addEventListener("pointermove",I,n)}function _(){const e=t.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:i,activeListenerWithCapture:n}=$();t.wrapperEl.removeEventListener("pointerdown",T,i),t.wrapperEl.removeEventListener("pointermove",k,n),["pointerup","pointercancel","pointerout"].forEach(e=>{t.wrapperEl.removeEventListener(e,E,i)}),t.wrapperEl.removeEventListener("pointermove",I,n)}Object.defineProperty(t.zoom,"scale",{get:()=>b,set(e){if(b!==e){const t=h.imageEl,i=h.slideEl;r("zoomChange",e,t,i)}b=e}}),n("init",()=>{t.params.zoom.enabled&&j()}),n("destroy",()=>{_()}),n("touchStart",(e,i)=>{t.zoom.enabled&&function(e){const i=t.device;if(!h.imageEl)return;if(f.isTouched)return;i.android&&e.cancelable&&e.preventDefault(),f.isTouched=!0;const n=p.length>0?p[0]:e;f.touchesStart.x=n.pageX,f.touchesStart.y=n.pageY}(i)}),n("touchEnd",(e,i)=>{t.zoom.enabled&&function(){const e=t.zoom;if(!h.imageEl)return;if(!f.isTouched||!f.isMoved)return f.isTouched=!1,void(f.isMoved=!1);f.isTouched=!1,f.isMoved=!1;let i=300,n=300;const r=g.x*i,a=f.currentX+r,o=g.y*n,s=f.currentY+o;0!==g.x&&(i=Math.abs((a-f.currentX)/g.x)),0!==g.y&&(n=Math.abs((s-f.currentY)/g.y));const l=Math.max(i,n);f.currentX=a,f.currentY=s;const c=f.width*e.scale,d=f.height*e.scale;f.minX=Math.min(h.slideWidth/2-c/2,0),f.maxX=-f.minX,f.minY=Math.min(h.slideHeight/2-d/2,0),f.maxY=-f.minY,f.currentX=Math.max(Math.min(f.currentX,f.maxX),f.minX),f.currentY=Math.max(Math.min(f.currentY,f.maxY),f.minY),h.imageWrapEl.style.transitionDuration=`${l}ms`,h.imageWrapEl.style.transform=`translate3d(${f.currentX}px, ${f.currentY}px,0)`}()}),n("doubleTap",(e,i)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&P(i)}),n("transitionEnd",()=>{t.zoom.enabled&&t.params.zoom.enabled&&A()}),n("slideChange",()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&A()}),Object.assign(t.zoom,{enable:j,disable:_,in:L,out:D,toggle:P})},function(e){let{swiper:t,extendParams:i,on:n}=e;function r(e,t){const i=function(){let e,t,i;return(n,r)=>{for(t=-1,e=n.length;e-t>1;)i=e+t>>1,n[i]<=r?t=i:e=i;return e}}();let n,r;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(r=i(this.x,e),n=r-1,(e-this.x[n])*(this.y[r]-this.y[n])/(this.x[r]-this.x[n])+this.y[n]):0},this}function a(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}i({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},n("beforeInit",()=>{"undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)?("string"==typeof t.params.controller.control?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEach(e=>{if(t.controller.control||(t.controller.control=[]),e&&e.swiper)t.controller.control.push(e.swiper);else if(e){const i=`${t.params.eventsPrefix}init`,n=r=>
151{t.controller.control.push(r.detail[0]),t.update(),e.removeEventListener(i,n)};e.addEventListener(i,n)}}):t.controller.control=t.params.controller.control}),n("update",()=>{a()}),n("resize",()=>{a()}),n("observerUpdate",()=>{a()}),n("setTranslate",(e,i,n)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(i,n)}),n("setTransition",(e,i,n)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(i,n)}),Object.assign(t.controller,{setTranslate:function(e,i){const n=t.controller.control;let a,o;const s=t.constructor;function l(e){if(e.destroyed)return;const i=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(function(e){t.controller.spline=t.params.loop?new r(t.slidesGrid,e.slidesGrid):new r(t.snapGrid,e.snapGrid)}(e),o=-t.controller.spline.interpolate(-i)),o&&"container"!==t.params.controller.by||(a=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(a)&&Number.isFinite(a)||(a=1),o=(i-t.minTranslate())*a+e.minTranslate()),t.params.controller.inverse&&(o=e.maxTranslate()-o),e.updateProgress(o),e.setTranslate(o,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(n))for(let e=0;e<n.length;e+=1)n[e]!==i&&n[e]instanceof s&&l(n[e]);else n instanceof s&&i!==n&&l(n)},setTransition:function(e,i){const n=t.constructor,r=t.controller.control;let a;function o(i){i.destroyed||(i.setTransition(e,t),0!==e&&(i.transitionStart(),i.params.autoHeight&&s(()=>{i.updateAutoHeight()}),x(i.wrapperEl,()=>{r&&i.transitionEnd()})))}if(Array.isArray(r))for(a=0;a<r.length;a+=1)r[a]!==i&&r[a]instanceof n&&o(r[a]);else r instanceof n&&i!==r&&o(r)}})},function(e){let{swiper:t,extendParams:i,on:r}=e;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let a,o,s=null,l=(new Date).getTime();function c(e){const t=s;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}function d(e){(e=T(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function u(e){(e=T(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function p(e,t){(e=T(e)).forEach(e=>{e.setAttribute("role",t)})}function h(e,t){(e=T(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function f(e,t){(e=T(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function m(e){(e=T(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function g(e){(e=T(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function y(e){if(13!==e.keyCode&&32!==e.keyCode)return;const i=t.params.a11y,n=e.target;if(!t.pagination||!t.pagination.el||n!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(oe(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=T(t.navigation.prevEl);T(t.navigation.nextEl).includes(n)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?c(i.lastSlideMessage):c(i.nextSlideMessage)),e.includes(n)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?c(i.firstSlideMessage):c(i.prevSlideMessage))}t.pagination&&n.matches(oe(t.params.pagination.bulletClass))&&n.click()}}function b(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function S(){return b()&&t.params.pagination.clickable}const x=(e,t,i)=>{d(e),"BUTTON"!==e.tagName&&(p(e,"button"),e.addEventListener("keydown",y)),f(e,i),function(e,t){(e=T(e)).forEach(e=>{e.setAttribute("aria-controls",t)})}(e,t)},C=e=>{o&&o!==e.target&&!o.contains(e.target)&&(a=!0),t.a11y.clicked=!0},k=()=>{a=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},E=e=>{l=(new Date).getTime()},M=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-l<100)return;const i=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!i||!t.slides.includes(i))return;o=i;const n=t.slides.indexOf(i)===t.activeIndex,r=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(i);n||r||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame(()=>{a||(t.params.loop?t.slideToLoop(parseInt(i.getAttribute("data-swiper-slide-index")),0):t.slideTo(t.slides.indexOf(i),0),a=!1)}))},I=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&h(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&p(t.slides,e.slideRole);const i=t.slides.length;
151e.slideLabelMessage&&t.slides.forEach((n,r)=>{const a=t.params.loop?parseInt(n.getAttribute("data-swiper-slide-index"),10):r;f(n,e.slideLabelMessage.replace(/\{\{index\}\}/,a+1).replace(/\{\{slidesLength\}\}/,i))})};r("beforeInit",()=>{s=v("span",t.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),r("afterInit",()=>{t.params.a11y.enabled&&(()=>{const e=t.params.a11y;t.el.append(s);const i=t.el;e.containerRoleDescriptionMessage&&h(i,e.containerRoleDescriptionMessage),e.containerMessage&&f(i,e.containerMessage),e.containerRole&&p(i,e.containerRole);const r=t.wrapperEl,a=e.id||r.getAttribute("id")||`swiper-wrapper-${o=16,void 0===o&&(o=16),"x".repeat(o).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}`;var o;const l=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var c;c=a,T(r).forEach(e=>{e.setAttribute("id",c)}),function(e,t){(e=T(e)).forEach(e=>{e.setAttribute("aria-live",t)})}(r,l),I();let{nextEl:d,prevEl:u}=t.navigation?t.navigation:{};d=T(d),u=T(u),d&&d.forEach(t=>x(t,a,e.nextSlideMessage)),u&&u.forEach(t=>x(t,a,e.prevSlideMessage)),S()&&T(t.pagination.el).forEach(e=>{e.addEventListener("keydown",y)}),n().addEventListener("visibilitychange",E),t.el.addEventListener("focus",M,!0),t.el.addEventListener("focus",M,!0),t.el.addEventListener("pointerdown",C,!0),t.el.addEventListener("pointerup",k,!0)})()}),r("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&I()}),r("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:i}=t.navigation;i&&(t.isBeginning?(m(i),u(i)):(g(i),d(i))),e&&(t.isEnd?(m(e),u(e)):(g(e),d(e)))}()}),r("paginationUpdate",()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;b()&&t.pagination.bullets.forEach(i=>{t.params.pagination.clickable&&(d(i),t.params.pagination.renderBullet||(p(i,"button"),f(i,e.paginationBulletMessage.replace(/\{\{index\}\}/,w(i)+1)))),i.matches(oe(t.params.pagination.bulletActiveClass))?i.setAttribute("aria-current","true"):i.removeAttribute("aria-current")})}()}),r("destroy",()=>{t.params.a11y.enabled&&function(){s&&s.remove();let{nextEl:e,prevEl:i}=t.navigation?t.navigation:{};e=T(e),i=T(i),e&&e.forEach(e=>e.removeEventListener("keydown",y)),i&&i.forEach(e=>e.removeEventListener("keydown",y)),S()&&T(t.pagination.el).forEach(e=>{e.removeEventListener("keydown",y)}),n().removeEventListener("visibilitychange",E),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",M,!0),t.el.removeEventListener("pointerdown",C,!0),t.el.removeEventListener("pointerup",k,!0))}()})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let r=!1,o={};const s=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),l=e=>{const t=a();let i;i=e?new URL(e):t.location;const n=i.pathname.slice(1).split("/").filter(e=>""!==e),r=n.length;return{key:n[r-2],value:n[r-1]}},c=(e,i)=>{const n=a();if(!r||!t.params.history.enabled)return;let o;o=t.params.url?new URL(t.params.url):n.location;const l=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${i}"]`):t.slides[i];let c=s(l.getAttribute("data-history"));if(t.params.history.root.length>0){let i=t.params.history.root;"/"===i[i.length-1]&&(i=i.slice(0,i.length-1)),c=`${i}/${e?`${e}/`:""}${c}`}else o.pathname.includes(e)||(c=`${e?`${e}/`:""}${c}`);t.params.history.keepQuery&&(c+=o.search);const d=n.history.state;d&&d.value===c||(t.params.history.replaceState?n.history.replaceState({value:c},null,c):n.history.pushState({value:c},null,c))},d=(e,i,n)=>{if(i)for(let r=0,a=t.slides.length;r<a;r+=1){const a=t.slides[r];if(s(a.getAttribute("data-history"))===i){const i=t.getSlideIndex(a);t.slideTo(i,e,n)}}else t.slideTo(0,e,n)},u=()=>{o=l(t.params.url),d(t.params.speed,o.value,!1)};n("init",()=>{t.params.history.enabled&&(()=>{const e=a();
151if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);r=!0,o=l(t.params.url),o.key||o.value?(d(0,o.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",u)):t.params.history.replaceState||e.addEventListener("popstate",u)}})()}),n("destroy",()=>{t.params.history.enabled&&(()=>{const e=a();t.params.history.replaceState||e.removeEventListener("popstate",u)})()}),n("transitionEnd _freeModeNoMomentumRelease",()=>{r&&c(t.params.history.key,t.activeIndex)}),n("slideChange",()=>{r&&t.params.cssMode&&c(t.params.history.key,t.activeIndex)})},function(e){let{swiper:t,extendParams:i,emit:r,on:o}=e,s=!1;const l=n(),c=a();i({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,i){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.filter(e=>e.getAttribute("data-hash")===i)[0];return e?parseInt(e.getAttribute("data-swiper-slide-index"),10):0}return t.getSlideIndex(m(t.slidesEl,`.${t.params.slideClass}[data-hash="${i}"], swiper-slide[data-hash="${i}"]`)[0])}}});const d=()=>{r("hashChange");const e=l.location.hash.replace("#",""),i=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(i?i.getAttribute("data-hash"):"")){const i=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===i||Number.isNaN(i))return;t.slideTo(i)}},u=()=>{if(!s||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],i=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&c.history&&c.history.replaceState?(c.history.replaceState(null,null,`#${i}`||""),r("hashSet")):(l.location.hash=i||"",r("hashSet"))};o("init",()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;s=!0;const e=l.location.hash.replace("#","");if(e){const i=0,n=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(n||0,i,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&c.addEventListener("hashchange",d)})()}),o("destroy",()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&c.removeEventListener("hashchange",d)}),o("transitionEnd _freeModeNoMomentumRelease",()=>{s&&u()}),o("slideChange",()=>{s&&t.params.cssMode&&u()})},function(e){let t,i,{swiper:r,extendParams:a,on:o,emit:s,params:l}=e;r.autoplay={running:!1,paused:!1,timeLeft:0},a({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let c,d,u,p,h,f,m,g,v=l&&l.autoplay?l.autoplay.delay:3e3,y=l&&l.autoplay?l.autoplay.delay:3e3,b=(new Date).getTime();function w(e){r&&!r.destroyed&&r.wrapperEl&&e.target===r.wrapperEl&&(r.wrapperEl.removeEventListener("transitionend",w),g||e.detail&&e.detail.bySwiperTouchMove||E())}const S=()=>{if(r.destroyed||!r.autoplay.running)return;r.autoplay.paused?d=!0:d&&(y=c,d=!1);const e=r.autoplay.paused?c:b+y-(new Date).getTime();r.autoplay.timeLeft=e,s("autoplayTimeLeft",e,e/v),i=requestAnimationFrame(()=>{S()})},x=e=>{if(r.destroyed||!r.autoplay.running)return;cancelAnimationFrame(i),S();let n=void 0===e?r.params.autoplay.delay:e;v=r.params.autoplay.delay,y=r.params.autoplay.delay;const a=(()=>{let e;if(e=r.virtual&&r.params.virtual.enabled?r.slides.filter(e=>e.classList.contains("swiper-slide-active"))[0]:r.slides[r.activeIndex],e)return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(a)&&a>0&&void 0===e&&(n=a,v=a,y=a),c=n;const o=r.params.speed,l=()=>{r&&!r.destroyed&&(r.params.autoplay.reverseDirection?!r.isBeginning||r.params.loop||r.params.rewind?(r.slidePrev(o,!0,!0),s("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(r.slides.length-1,o,!0,!0),s("autoplay")):!r.isEnd||r.params.loop||r.params.rewind?(r.slideNext(o,!0,!0),s("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(0,o,!0,!0),s("autoplay")),r.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame(()=>{x()})))};return n>0?(clearTimeout(t),t=setTimeout(()=>{l()},n)):requestAnimationFrame(()=>{l()}),n},C=()=>{b=(new Date).getTime(),r.autoplay.running=!0,x(),s("autoplayStart")},T=()=>
151{r.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(i),s("autoplayStop")},k=(e,i)=>{if(r.destroyed||!r.autoplay.running)return;clearTimeout(t),e||(m=!0);const n=()=>{s("autoplayPause"),r.params.autoplay.waitForTransition?r.wrapperEl.addEventListener("transitionend",w):E()};if(r.autoplay.paused=!0,i)return f&&(c=r.params.autoplay.delay),f=!1,void n();const a=c||r.params.autoplay.delay;c=a-((new Date).getTime()-b),r.isEnd&&c<0&&!r.params.loop||(c<0&&(c=0),n())},E=()=>{r.isEnd&&c<0&&!r.params.loop||r.destroyed||!r.autoplay.running||(b=(new Date).getTime(),m?(m=!1,x(c)):x(),r.autoplay.paused=!1,s("autoplayResume"))},M=()=>{if(r.destroyed||!r.autoplay.running)return;const e=n();"hidden"===e.visibilityState&&(m=!0,k(!0)),"visible"===e.visibilityState&&E()},I=e=>{"mouse"===e.pointerType&&(m=!0,g=!0,r.animating||r.autoplay.paused||k(!0))},A=e=>{"mouse"===e.pointerType&&(g=!1,r.autoplay.paused&&E())};o("init",()=>{r.params.autoplay.enabled&&(r.params.autoplay.pauseOnMouseEnter&&(r.el.addEventListener("pointerenter",I),r.el.addEventListener("pointerleave",A)),n().addEventListener("visibilitychange",M),C())}),o("destroy",()=>{r.el&&"string"!=typeof r.el&&(r.el.removeEventListener("pointerenter",I),r.el.removeEventListener("pointerleave",A)),n().removeEventListener("visibilitychange",M),r.autoplay.running&&T()}),o("_freeModeStaticRelease",()=>{(p||m)&&E()}),o("_freeModeNoMomentumRelease",()=>{r.params.autoplay.disableOnInteraction?T():k(!0,!0)}),o("beforeTransitionStart",(e,t,i)=>{!r.destroyed&&r.autoplay.running&&(i||!r.params.autoplay.disableOnInteraction?k(!0,!0):T())}),o("sliderFirstMove",()=>{!r.destroyed&&r.autoplay.running&&(r.params.autoplay.disableOnInteraction?T():(u=!0,p=!1,m=!1,h=setTimeout(()=>{m=!0,p=!0,k(!0)},200)))}),o("touchEnd",()=>{if(!r.destroyed&&r.autoplay.running&&u){if(clearTimeout(h),clearTimeout(t),r.params.autoplay.disableOnInteraction)return p=!1,void(u=!1);p&&r.params.cssMode&&E(),p=!1,u=!1}}),o("slideChange",()=>{!r.destroyed&&r.autoplay.running&&(f=!0)}),Object.assign(r.autoplay,{start:C,stop:T,pause:k,resume:E})},function(e){let{swiper:t,extendParams:i,on:r}=e;i({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let a=!1,o=!1;function s(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const i=e.clickedIndex,n=e.clickedSlide;if(n&&n.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let r;r=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):i,t.params.loop?t.slideToLoop(r):t.slideTo(r)}function l(){const{thumbs:e}=t.params;if(a)return!1;a=!0;const i=t.constructor;if(e.swiper instanceof i)t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update();else if(d(e.swiper)){const n=Object.assign({},e.swiper);Object.assign(n,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new i(n),o=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",s),!0}function c(e){const i=t.thumbs.swiper;if(!i||i.destroyed)return;const n="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;let r=1;const a=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(r=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(r=1),r=Math.floor(r),i.slides.forEach(e=>e.classList.remove(a)),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let e=0;e<r;e+=1)m(i.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach(e=>{e.classList.add(a)});else for(let e=0;e<r;e+=1)i.slides[t.realIndex+e]&&i.slides[t.realIndex+e].classList.add(a);const o=t.params.thumbs.autoScrollOffset,s=o&&!i.params.loop;if(t.realIndex!==i.realIndex||s){const r=i.activeIndex;let a,l;if(i.params.loop){const e=i.slides.filter(e=>e.getAttribute("data-swiper-slide-index")===`${t.realIndex}`)[0];a=i.slides.indexOf(e),l=t.activeIndex>t.previousIndex?"next":"prev"}else a=t.realIndex,l=a>t.previousIndex?"next":"prev";s&&(a+="next"===l?o:-1*o),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(a)<0&&(i.params.centeredSlides?a=a>r?a-Math.floor(n/2)+1:a+Math.floor(n/2)-1:a>r&&i.params.slidesPerGroup,i.slideTo(a,e?0:void 0))}}t.thumbs={swiper:null},r("beforeInit",()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const i=n(),r=()=>{const n="string"==typeof e.swiper?i.querySelector(e.swiper):e.swiper;if(n&&n.swiper)e.swiper=n.swiper,l(),c(!0);else if(n){const i=`${t.params.eventsPrefix}init`,r=a=>{e.swiper=a.detail[0],n.removeEventListener(i,r),l(),c(!0),e.swiper.update(
151),t.update()};n.addEventListener(i,r)}return n},a=()=>{t.destroyed||r()||requestAnimationFrame(a)};requestAnimationFrame(a)}else l(),c(!0)}),r("slideChange update resize observerUpdate",()=>{c()}),r("setTransition",(e,i)=>{const n=t.thumbs.swiper;n&&!n.destroyed&&n.setTransition(i)}),r("beforeDestroy",()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&o&&e.destroy()}),Object.assign(t.thumbs,{init:l,update:c})},function(e){let{swiper:t,extendParams:i,emit:n,once:r}=e;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:i}=t;0===e.velocities.length&&e.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:l()})},onTouchEnd:function(e){let{currentPos:i}=e;if(t.params.cssMode)return;const{params:a,wrapperEl:o,rtlTranslate:s,snapGrid:c,touchEventsData:d}=t,u=l()-d.touchStartTime;if(i<-t.minTranslate())t.slideTo(t.activeIndex);else if(i>-t.maxTranslate())t.slides.length<c.length?t.slideTo(c.length-1):t.slideTo(t.slides.length-1);else{if(a.freeMode.momentum){if(d.velocities.length>1){const e=d.velocities.pop(),i=d.velocities.pop(),n=e.position-i.position,r=e.time-i.time;t.velocity=n/r,t.velocity/=2,Math.abs(t.velocity)<a.freeMode.minimumVelocity&&(t.velocity=0),(r>150||l()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=a.freeMode.momentumVelocityRatio,d.velocities.length=0;let e=1e3*a.freeMode.momentumRatio;const i=t.velocity*e;let u=t.translate+i;s&&(u=-u);let p,h=!1;const f=20*Math.abs(t.velocity)*a.freeMode.momentumBounceRatio;let m;if(u<t.maxTranslate())a.freeMode.momentumBounce?(u+t.maxTranslate()<-f&&(u=t.maxTranslate()-f),p=t.maxTranslate(),h=!0,d.allowMomentumBounce=!0):u=t.maxTranslate(),a.loop&&a.centeredSlides&&(m=!0);else if(u>t.minTranslate())a.freeMode.momentumBounce?(u-t.minTranslate()>f&&(u=t.minTranslate()+f),p=t.minTranslate(),h=!0,d.allowMomentumBounce=!0):u=t.minTranslate(),a.loop&&a.centeredSlides&&(m=!0);else if(a.freeMode.sticky){let e;for(let t=0;t<c.length;t+=1)if(c[t]>-u){e=t;break}u=Math.abs(c[e]-u)<Math.abs(c[e-1]-u)||"next"===t.swipeDirection?c[e]:c[e-1],u=-u}if(m&&r("transitionEnd",()=>{t.loopFix()}),0!==t.velocity){if(e=s?Math.abs((-u-t.translate)/t.velocity):Math.abs((u-t.translate)/t.velocity),a.freeMode.sticky){const i=Math.abs((s?-u:u)-t.translate),n=t.slidesSizesGrid[t.activeIndex];e=i<n?a.speed:i<2*n?1.5*a.speed:2.5*a.speed}}else if(a.freeMode.sticky)return void t.slideToClosest();a.freeMode.momentumBounce&&h?(t.updateProgress(p),t.setTransition(e),t.setTranslate(u),t.transitionStart(!0,t.swipeDirection),t.animating=!0,x(o,()=>{t&&!t.destroyed&&d.allowMomentumBounce&&(n("momentumBounce"),t.setTransition(a.speed),setTimeout(()=>{t.setTranslate(p),x(o,()=>{t&&!t.destroyed&&t.transitionEnd()})},0))})):t.velocity?(n("_freeModeNoMomentumRelease"),t.updateProgress(u),t.setTransition(e),t.setTranslate(u),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,x(o,()=>{t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(u),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(a.freeMode.sticky)return void t.slideToClosest();a.freeMode&&n("_freeModeNoMomentumRelease")}(!a.freeMode.momentum||u>=a.longSwipesMs)&&(n("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,i,n,r,{swiper:a,extendParams:o,on:s}=e;o({grid:{rows:1,fill:"column"}});const l=()=>{let e=a.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*a.size:"string"==typeof e&&(e=parseFloat(e)),e};s("init",()=>{r=a.params.grid&&a.params.grid.rows>1}),s("update",()=>{const{params:e,el:t}=a,i=e.grid&&e.grid.rows>1;r&&!i?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),n=1,a.emitContainerClasses()):!r&&i&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),a.emitContainerClasses()),r=i}),a.grid={initSlides:e=>{const{slidesPerView:r}=a.params,{rows:o,fill:s}=a.params.grid,l=a.virtual&&a.params.virtual.enabled?a.virtual.slides.length:e.length;n=Math.floor(l/o),t=Math.floor(l/o)===l/o?l:Math.ceil(l/o)*o,"auto"!==r&&"row"===s&&(t=Math.max(t,r*o)),i=t/o},unsetSlides:()=>
151{a.slides&&a.slides.forEach(e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[a.getDirectionLabel("margin-top")]="")})},updateSlide:(e,r,o)=>{const{slidesPerGroup:s}=a.params,c=l(),{rows:d,fill:u}=a.params.grid,p=a.virtual&&a.params.virtual.enabled?a.virtual.slides.length:o.length;let h,f,m;if("row"===u&&s>1){const i=Math.floor(e/(s*d)),n=e-d*s*i,a=0===i?s:Math.min(Math.ceil((p-i*d*s)/d),s);m=Math.floor(n/a),f=n-m*a+i*s,h=f+m*t/d,r.style.order=h}else"column"===u?(f=Math.floor(e/d),m=e-f*d,(f>n||f===n&&m===d-1)&&(m+=1,m>=d&&(m=0,f+=1))):(m=Math.floor(e/i),f=e-m*i);r.row=m,r.column=f,r.style.height=`calc((100% - ${(d-1)*c}px) / ${d})`,r.style[a.getDirectionLabel("margin-top")]=0!==m?c&&`${c}px`:"",r.swiperSlideGridSet=!0},updateWrapperSize:(e,i)=>{const{centeredSlides:n,roundLengths:r}=a.params,o=l(),{rows:s}=a.params.grid;if(a.virtualSize=(e+o)*t,a.virtualSize=Math.ceil(a.virtualSize/s)-o,a.params.cssMode||(a.wrapperEl.style[a.getDirectionLabel("width")]=`${a.virtualSize+o}px`),n){const e=[];for(let t=0;t<i.length;t+=1){let n=i[t];r&&(n=Math.floor(n)),i[t]<a.virtualSize+i[0]&&e.push(n)}i.splice(0,i.length),i.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:se.bind(t),prependSlide:le.bind(t),addSlide:ce.bind(t),removeSlide:de.bind(t),removeAllSlides:ue.bind(t)})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({fadeEffect:{crossFade:!1}}),pe({effect:"fade",swiper:t,on:n,setTranslate:()=>{const{slides:e}=t;t.params.fadeEffect;for(let i=0;i<e.length;i+=1){const e=t.slides[i];let n=-e.swiperSlideOffset;t.params.virtualTranslate||(n-=t.translate);let r=0;t.isHorizontal()||(r=n,n=0);const a=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),o=he(0,e);o.style.opacity=a,o.style.transform=`translate3d(${n}px, ${r}px, 0px)`}},setTransition:e=>{const i=t.slides.map(e=>f(e));i.forEach(t=>{t.style.transitionDuration=`${e}ms`}),fe({swiper:t,duration:e,transformElements:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const r=(e,t,i)=>{let n=i?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),r=i?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");n||(n=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"left":"top")).split(" ")),e.append(n)),r||(r=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"right":"bottom")).split(" ")),e.append(r)),n&&(n.style.opacity=Math.max(-t,0)),r&&(r.style.opacity=Math.max(t,0))};pe({effect:"cube",swiper:t,on:n,setTranslate:()=>{const{el:e,wrapperEl:i,slides:n,width:a,height:o,rtlTranslate:s,size:l,browser:c}=t,d=k(t),u=t.params.cubeEffect,p=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled;let f,m=0;u.shadow&&(p?(f=t.wrapperEl.querySelector(".swiper-cube-shadow"),f||(f=v("div","swiper-cube-shadow"),t.wrapperEl.append(f)),f.style.height=`${a}px`):(f=e.querySelector(".swiper-cube-shadow"),f||(f=v("div","swiper-cube-shadow"),e.append(f))));for(let e=0;e<n.length;e+=1){const t=n[e];let i=e;h&&(i=parseInt(t.getAttribute("data-swiper-slide-index"),10));let a=90*i,o=Math.floor(a/360);s&&(a=-a,o=Math.floor(-a/360));const c=Math.max(Math.min(t.progress,1),-1);let f=0,g=0,v=0;i%4==0?(f=4*-o*l,v=0):(i-1)%4==0?(f=0,v=4*-o*l):(i-2)%4==0?(f=l+4*o*l,v=l):(i-3)%4==0&&(f=-l,v=3*l+4*l*o),s&&(f=-f),p||(g=f,f=0);const y=`rotateX(${d(p?0:-a)}deg) rotateY(${d(p?a:0)}deg) translate3d(${f}px, ${g}px, ${v}px)`;c<=1&&c>-1&&(m=90*i+90*c,s&&(m=90*-i-90*c)),t.style.transform=y,u.slideShadows&&r(t,c,p)}if(i.style.transformOrigin=`50% 50% -${l/2}px`,i.style["-webkit-transform-origin"]=`50% 50% -${l/2}px`,u.shadow)if(p)f.style.transform=`translate3d(0px, ${a/2+u.shadowOffset}px, ${-a/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${u.shadowScale})`;else{const e=Math.abs(m)-90*Math.floor(Math.abs(m)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),i=u.shadowScale,n=u.shadowScale/t,r=u.shadowOffset;f.style.transform=`scale3d(${i}, 1, ${n}) translate3d(0px, ${o/2+r}px, ${-o/2/n}px) rotateX(-89.99deg)`}const g=(c.isSafari||c.isWebView)&&c.needPerspectiveFix?-l/2:0;i.style.transform=`translate3d(0px,0,${g}
151px) rotateX(${d(t.isHorizontal()?0:m)}deg) rotateY(${d(t.isHorizontal()?-m:0)}deg)`,i.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{el:i,slides:n}=t;if(n.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t=>{t.style.transitionDuration=`${e}ms`})}),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=i.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach(t=>{const i=Math.max(Math.min(t.progress,1),-1);r(t,i,e)})},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({flipEffect:{slideShadows:!0,limitRotation:!0}});const r=(e,i)=>{let n=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),r=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");n||(n=me("flip",e,t.isHorizontal()?"left":"top")),r||(r=me("flip",e,t.isHorizontal()?"right":"bottom")),n&&(n.style.opacity=Math.max(-i,0)),r&&(r.style.opacity=Math.max(i,0))};pe({effect:"flip",swiper:t,on:n,setTranslate:()=>{const{slides:e,rtlTranslate:i}=t,n=t.params.flipEffect,a=k(t);for(let o=0;o<e.length;o+=1){const s=e[o];let l=s.progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(s.progress,1),-1));const c=s.swiperSlideOffset;let d=-180*l,u=0,p=t.params.cssMode?-c-t.translate:-c,h=0;t.isHorizontal()?i&&(d=-d):(h=p,p=0,u=-d,d=0),s.style.zIndex=-Math.abs(Math.round(l))+e.length,n.slideShadows&&r(s,l);const f=`translate3d(${p}px, ${h}px, 0px) rotateX(${a(u)}deg) rotateY(${a(d)}deg)`;he(0,s).style.transform=f}},setTransition:e=>{const i=t.slides.map(e=>f(e));i.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t=>{t.style.transitionDuration=`${e}ms`})}),fe({swiper:t,duration:e,transformElements:i})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach(e=>{let i=e.progress;t.params.flipEffect.limitRotation&&(i=Math.max(Math.min(e.progress,1),-1)),r(e,i)})},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),pe({effect:"coverflow",swiper:t,on:n,setTranslate:()=>{const{width:e,height:i,slides:n,slidesSizesGrid:r}=t,a=t.params.coverflowEffect,o=t.isHorizontal(),s=t.translate,l=o?e/2-s:i/2-s,c=o?a.rotate:-a.rotate,d=a.depth,u=k(t);for(let e=0,t=n.length;e<t;e+=1){const t=n[e],i=r[e],s=(l-t.swiperSlideOffset-i/2)/i,p="function"==typeof a.modifier?a.modifier(s):s*a.modifier;let h=o?c*p:0,f=o?0:c*p,m=-d*Math.abs(p),g=a.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(a.stretch)/100*i);let v=o?0:g*p,y=o?g*p:0,b=1-(1-a.scale)*Math.abs(p);Math.abs(y)<.001&&(y=0),Math.abs(v)<.001&&(v=0),Math.abs(m)<.001&&(m=0),Math.abs(h)<.001&&(h=0),Math.abs(f)<.001&&(f=0),Math.abs(b)<.001&&(b=0);const w=`translate3d(${y}px,${v}px,${m}px) rotateX(${u(f)}deg) rotateY(${u(h)}deg) scale(${b})`;if(he(0,t).style.transform=w,t.style.zIndex=1-Math.abs(Math.round(p)),a.slideShadows){let e=o?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),i=o?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");e||(e=me("coverflow",t,o?"left":"top")),i||(i=me("coverflow",t,o?"right":"bottom")),e&&(e.style.opacity=p>0?p:0),i&&(i.style.opacity=-p>0?-p:0)}}},setTransition:e=>{t.slides.map(e=>
151f(e)).forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t=>{t.style.transitionDuration=`${e}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const r=e=>"string"==typeof e?e:`${e}px`;pe({effect:"creative",swiper:t,on:n,setTranslate:()=>{const{slides:e,wrapperEl:i,slidesSizesGrid:n}=t,a=t.params.creativeEffect,{progressMultiplier:o}=a,s=t.params.centeredSlides,l=k(t);if(s){const e=n[0]/2-t.params.slidesOffsetBefore||0;i.style.transform=`translateX(calc(50% - ${e}px))`}for(let i=0;i<e.length;i+=1){const n=e[i],c=n.progress,d=Math.min(Math.max(n.progress,-a.limitProgress),a.limitProgress);let u=d;s||(u=Math.min(Math.max(n.originalProgress,-a.limitProgress),a.limitProgress));const p=n.swiperSlideOffset,h=[t.params.cssMode?-p-t.translate:-p,0,0],f=[0,0,0];let m=!1;t.isHorizontal()||(h[1]=h[0],h[0]=0);let g={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};d<0?(g=a.next,m=!0):d>0&&(g=a.prev,m=!0),h.forEach((e,t)=>{h[t]=`calc(${e}px + (${r(g.translate[t])} * ${Math.abs(d*o)}
151))`}),f.forEach((e,t)=>{let i=g.rotate[t]*Math.abs(d*o);f[t]=i}),n.style.zIndex=-Math.abs(Math.round(c))+e.length;const v=h.join(", "),y=`rotateX(${l(f[0])}deg) rotateY(${l(f[1])}deg) rotateZ(${l(f[2])}deg)`,b=u<0?`scale(${1+(1-g.scale)*u*o})`:`scale(${1-(1-g.scale)*u*o})`,w=u<0?1+(1-g.opacity)*u*o:1-(1-g.opacity)*u*o,S=`translate3d(${v}) ${y} ${b}`;if(m&&g.shadow||!m){let e=n.querySelector(".swiper-slide-shadow");if(!e&&g.shadow&&(e=me("creative",n)),e){const t=a.shadowPerProgress?d*(1/a.limitProgress):d;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const x=he(0,n);x.style.transform=S,x.style.opacity=w,g.origin&&(x.style.transformOrigin=g.origin)}},setTransition:e=>{const i=t.slides.map(e=>f(e));i.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach(t=>{t.style.transitionDuration=`${e}ms`})}),fe({swiper:t,duration:e,transformElements:i,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),pe({effect:"cards",swiper:t,on:n,setTranslate:()=>{const{slides:e,activeIndex:i,rtlTranslate:n}=t,r=t.params.cardsEffect,{startTranslate:a,isTouched:o}=t.touchEventsData,s=n?-t.translate:t.translate;for(let l=0;l<e.length;l+=1){const c=e[l],d=c.progress,u=Math.min(Math.max(d,-4),4);let p=c.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(p-=e[0].swiperSlideOffset);let h=t.params.cssMode?-p-t.translate:-p,f=0;const m=-100*Math.abs(u);let g=1,v=-r.perSlideRotate*u,y=r.perSlideOffset-.75*Math.abs(u);const b=t.virtual&&t.params.virtual.enabled?t.virtual.from+l:l,w=(b===i||b===i-1)&&u>0&&u<1&&(o||t.params.cssMode)&&s<a,S=(b===i||b===i+1)&&u<0&&u>-1&&(o||t.params.cssMode)&&s>a;if(w||S){const e=(1-Math.abs((Math.abs(u)-.5)/.5))**.5;v+=-28*u*e,g+=-.5*e,y+=96*e,f=-25*e*Math.abs(u)+"%"}if(h=u<0?`calc(${h}px ${n?"-":"+"} (${y*Math.abs(u)}%))`:u>0?`calc(${h}px ${n?"-":"+"} (-${y*Math.abs(u)}%))`:`${h}px`,!t.isHorizontal()){const e=f;f=h,h=e}const x=u<0?""+(1+(1-g)*u):""+(1-(1-g)*u),C=`\n translate3d(${h}, ${f}, ${m}px)\n rotateZ(${r.rotate?n?-v:v:0}deg)\n scale(${x})\n `;if(r.slideShadows){let e=c.querySelector(".swiper-slide-shadow");e||(e=me("cards",c)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(u)-.5)/.5,0),1))}c.style.zIndex=-Math.abs(Math.round(d))+e.length,he(0,c).style.transform=C}},setTransition:e=>{const i=t.slides.map(e=>f(e));i.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach(t=>{t.style.transitionDuration=`${e}ms`})}),fe({swiper:t,duration:e,transformElements:i})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];return re.use(ge),re}(),TimeagoTextTypeEnum={FixedText:1,TimeagoText:2,WithoutTimeago:3},CommentReactionTypeEnum={Dislike:0,Like:1},CommentSortEnum={CreatedDateDesc:0,CreatedDateAsc:1,RelevanceScore:2,NumberOfRepliesDesc:3},CommentStateEnum={Pending:0,Approved:1,Deleted:2,AiInappropriateFlagged:3,MassReportedHidden:4,VisibleToAuthorOnly:5},ThreadTypeEnum={Article:1,Affair:2,UserStatus:3,Product:4,Tag:5},StatusMediaTypeEnum={Image:1,Video:2,Youtube:3,FbWatch:4,Instagram:5,TikTok:6,Twitter:7},StatusModerationFlagEnum={None:0,ForceVisibleOnFeed:1,ForceHiddenOnFeed:2},StatusReactionTypeEnum={Dislike:0,Like:1},StatusStateEnum={Pending:0,Approved:1,Deleted:2},UserStatusFeedFlagEnum={None:0,VisibleOnFeed:1,HiddenOnFeed:2},UserStatusFilterTypeEnum={Statuses:1,Comments:2},MessageStateEnum={Approved:1,Deleted:2},eventBus={events:{},emit(e,t){this.events[e]&&this.events[e].forEach(e=>e(t))},on(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t)},off(e,t){this.events[e]&&(this.events[e]=this.events[e].filter(e=>e!==t))}},filter=PetiteVue.reactive({formatDate(e){if(e)return moment.utc(e).local().format("DD.MM.YYYY.")},formatTime(e){if(e)return moment.utc(e).local().format("HH:mm")},formatTimeAgo(e){if(e)return moment.utc(e).local().format("YYYY-MM-DD HH:mm:ssZ")},timeAgoDays(e){var t=moment.utc(e);return moment.utc().diff(t,"days")},timeAgoMinutes(e){var t=moment.utc(e);return moment.utc().diff(t,"minutes")},timeAgoSeconds(e){var t=moment.utc(e);return moment.utc().diff(t,"seconds")},diffMinutes(e,t){var i=moment(e),n=moment(t);return i.diff(n,"minutes")}}),messageEnums=PetiteVue.reactive({messageState:MessageStateEnum}),commentEnums=PetiteVue.reactive({commentState:CommentStateEnum,commentSort:CommentSortEnum,commentReactionType:CommentReactionTypeEnum,timeagoTextType:TimeagoTextTypeEnum,threadType:ThreadTypeEnum}),statusEnums=PetiteVue.reactive({statusState:StatusStateEnum,timeagoTextType:TimeagoTextTypeEnum,statusReactionType:StatusReactionTypeEnum,statusMediaType:StatusMediaTypeEnum,statusModerationFlag:StatusModerationFlagEnum,userStatusFeedFlag:UserStatusFeedFlagEnum,userStatusFilterType:UserStatusFilterTypeEnum}),externalCommentsData=PetiteVue.reactive({sendEvent(e,t,i,n){var r={comment:{eventType:null,visibilityActiveSeconds:null,reactionType:null,postedType:null}};e&&(r.comment.eventType=e),t&&(r.comment.visibilityActiveSeconds=t),i&&(r.comment.reactionType=i),n&&(r.comment.postedType=n),window.top&&window.top.postMessage&&window.top.postMessage({name:"CommentData",data:r},"*")}}),premiumStickyService=function(){var e={};function t(){document.getElementById("premium-sticky")&&void 0!==PetiteVue&&PetiteVue.createApp({visible:!1,version:0,logoBasePath:"/Content/img/logo/",defaultLogo:"index_main.svg",versions:{1:"index_main.svg",2:"logo_red_white.svg",3:"logo_footer_196x29.svg",6:"paprika_logo.svg"},cookieName:"premiumSticky",daysBetweenShows:7,screensBeforeShow:1,scrollHandler:null,get isLarge(){return 1===this.version||2===this.version||3===this.version},get logoSrc(){return this.logoBasePath+(this.versions[this.version]||this.defaultLogo)},onLoad(){var e=this;if(!accountService.UserHasPremium()){var t=Object.keys(e.versions);e.version=parseInt(t[Math.floor(Math.random()*t.length)],10),e.canShow()&&(e.scrollHandler=function(){if(window.scrollY>=window.innerHeight*e.screensBeforeShow){if(e.isConsentNoticeVisible())return;e.show()}},window.addEventListener("scroll",e.scrollHandler,{passive:!0}),e.scrollHandler())}},show(){this.visible||(this.visible=!0,this.recordShow(),this.sendShowGAEvent(),this.removeScrollListener())},closeSticky(e){e&&(e.preventDefault(),e.stopPropagation()),this.visible=!1,this.removeScrollListener();var t=document.getElementById("premium-sticky");t&&t.remove()},isConsentNoticeVisible:()=>!!(window.Didomi&&Didomi.notice&&Didomi.notice.isVisible&&Didomi.notice.isVisible()),removeScrollListener(){this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler),this.scrollHandler=null)},canShow(){var e=this.readCookie();return!e||((new Date).getTime()-e)/864e5>=this.daysBetweenShows},recordShow(){this.writeCookie((new Date).getTime())},readCookie(){var e=cookieService.GetCookie(this.cookieName);if(!e)return null;var t=parseInt(e.split("_").pop(),10);return isNaN(t)?null:t},writeCookie(e){cookieService.CreateCookie(this.cookieName,e,this.daysBetweenShows)},sendShowGAEvent(){googleEventService.CreateCustomEventGA4("layout","premium_sticky_version_show",this.version)},sendGAEvent(){googleEventService.CreateCustomEventGA4("layout","premium_sticky_version_click",this.version)}}).mount("#premium-sticky")}return e.Init=t,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t(),e}();function CommentContent(e,t,i){return{$template:"#comment-content-template",model:e,categorySlug:t,textLengthLimit:i,content:null,useReadMore:!1,sharedState:{isEmbedPopupVisible:!1,embedPopupType:null,embedPopupContentId:null},onLoad(e){var t=this,i=$(e);t.content=t.model.attachments&&t.model.attachments.length>0?t.model.contentWithoutAttachments:t.model.content,t.model.content.length>t.textLengthLimit&&(t.useReadMore=!0,t.$nextTick(function(){$(".comment-content",i).dotdotdot({keep:".comment-read-more",callback:function(e){e&&$(".comment-read-more",i).on("click",function(){t.useReadMore=!1})}})}))},openEmbedPopup(e,t){var i=this;i.sharedState.embedPopupType=e,i.sharedState.embedPopupContentId=t,i.sharedState.isEmbedPopupVisible=!0}}}function CommentItem(e,t,i,n,r,a){return{$template:"#comment-item-template",model:e,parentState:t,userInfo:i,totalCommentsCount:n,indexInList:r,hideAdUnits:a,isNewReplyVisible:!1,areTopAdUnitsVisible:()=>
151!accountService.UserHasPremium()&&(0!=r&&r%10==0&&"False"===a),areBottomAdUnitsVisible:()=>!accountService.UserHasPremium()&&(n>=10&&(r+1)%5==0&&(r+1)%10!=0&&"False"===a),onLoadDesktop(){var e=this;if(window.googletag&&googletag.apiReady&&(e.areTopAdUnitsVisible()||e.areBottomAdUnitsVisible())){var t=[];googletag.cmd.push(function(){var i=googletag.defineSlot("/21703950087/D_komentari",[[300,250],[1,1]],"D_komentari_L-"+e.indexInList).addService(googletag.pubads());googletag.display("D_komentari_L-"+e.indexInList),articleCommentsAdSlots.push(i),t.push(i)}),googletag.cmd.push(function(){var i=googletag.defineSlot("/21703950087/D_komentari",[[300,250],[1,1]],"D_komentari_R-"+e.indexInList).addService(googletag.pubads());googletag.display("D_komentari_R-"+e.indexInList),articleCommentsAdSlots.push(i),t.push(i)}),googletag.pubads().refresh(t)}},onLoadMobile(){var e=this;window.googletag&&googletag.apiReady&&(e.areTopAdUnitsVisible()||e.areBottomAdUnitsVisible())&&(document.getElementById("M_komentari-"+e.indexInList)&&googletag.cmd.push(function(){var t=googletag.defineSlot("/21703950087/M_komentari",[[300,250],[1,1]],"M_komentari-"+e.indexInList).addService(googletag.pubads());googletag.display("M_komentari-"+e.indexInList),articleCommentsAdSlots.push(t),googletag.pubads().refresh([t])}))},showNewReply(){var t=this;t.isNewReplyVisible=!0,t.model.isNewReplyFocused=!0,t.$nextTick(function(){eventBus.emit("replyOpened",{commentId:e.commentId})})},buildLoadRepliesText:e=>`Prikaži ${e} ${textService.CheckDeclension(e,"odgovor","odgovora","odgovora")}`,loadReplies(t){var i=this;commentsApiService.getRepliesByComment({commentId:e.commentId,skip:0,take:t}).then(function(e){i.model.replies.autoExpand=!0,i.model.replies.comments=e.data.comments,i.isNew
151ReplyVisible=!0}).catch(function(e){}),externalCommentsData.sendEvent("load_more_clicked")},cancelEdit(){this.model.isInEditMode=!1}}}function CommentOptions(e,t,i){return{...reasonModalHost(),$template:"#comment-options-template",model:e,userInfo:t,categorySlug:i,commentState:commentEnums.commentState,reportText:"Prijavite",deleteText:"ObriÅ¡ite",banText:"Ban",blockText:"Blokirajte",editText:"Uredite",reportComment(t){reportFormService.open({commentId:e.commentId})},editComment(){this.model.isInEditMode=!0},removeComment(){var t=this;t.userInfo.userId!==t.model.posterId?t.openReasonModal("Razlog uklanjanja","Ukloni komentar",function(i){commentsApiService.changeCommentState({commentId:e.commentId,state:t.commentState.Deleted,reasons:i}).then(function(e){t.model.state=t.commentState.Deleted}).catch(function(e){})}):commentsApiService.changeCommentState({commentId:e.commentId,state:t.commentState.Deleted}).then(function(e){t.model.state=t.commentState.Deleted}).catch(function(e){})},disableUserActions(){var e=this;e.openReasonModal("Razlog bana","Baniraj korisnika",function(t){profileApiService.disableCommentActions(e.model.posterId,t).then(function(t){e.model.state=e.commentState.Deleted}).catch(function(e){})})},blockUser(){var e=this;profileApiService.blockUser(e.model.posterId).then(function(t){e.model.content="Korisnik je uspjeÅ¡no blokiran, viÅ¡e neÄete vidjeti njegove komentare. Ako se predomislite, korisnika možete odblokirati na svom profilu."}).catch(function(e){})},boostTo(t){var i=this;commentsApiService.boostComment({commentId:e.commentId,boostIndex:t}).then(function(e){i.model.om_ALB=e.data.om_ALB,i.model.om_BI=e.data.om_BI,i.model.om_ORI=e.data.om_ORI,i.model.om_RS=e.data.om_RS,i.model.numberOfLikes=e.data.numberOfLikes,i.model.numberOfDislikes=e.data.numberOfDislikes}).catch(function(e){})},addLikesOrDislikes(t){var i=this;commentsApiService.addLikeBonusToComment({commentId:e.commentId,PointsToAdd:t}).then(function(e){i.model.om_ALB=e.data.om_ALB,i.model.om_BI=e.data.om_BI,i.model.om_ORI=e.data.om_ORI,i.model.om_RS=e.data.om_RS,i.model.numberOfLikes=e.data.numberOfLikes,i.model.numberOfDislikes=e.data.numberOfDislikes}).catch(function(e){})}}}function CommentsList(e){return{model:{},userInfo:{},totalCount:0,commentsSkip:0,commentsTake:e.commentsTake,repliesTake:e.repliesTake,commentsRemaining:0,commentState:commentEnums.commentState,commentSort:commentEnums.commentSort,threadType:commentEnums.threadType,newCommentContent:"",isNewComment
151Valid:!0,newCommentValidationText:"",newCommentMinLength:1,newCommentMaxLength:1500,newCommentIsLoading:!1,enableRating:!0===e.enableRating,newCommentRating:{value:0,max:5,hover:0},ratingDistribution:null,loadMoreCommentsText:"",visibilityInterval:null,visibilityActiveSeconds:0,isContainerVisible:!1,isNewCommentInFocus:!1,totalCountWithReplies:0,sharedState:{currentUrl:window.index.currentUrl,isWarningPopupVisible:!1},sortTypes:[],selectedSortType:e.defaultSort,selectedSortTypeDescription(){var e=this.sortTypes.filter(e=>e.id==this.selectedSortType);if(e&&e.length)return e[0].description},buildLoadMoreCommentsText:e=>`Još ${e} ${textService.CheckDeclension(e,"komentar","komentara","komentara")}`,onLoad(){var t=this,i=new URLSearchParams(window.location.search).get("commentId"),n={sortBy:t.selectedSortType,commentThreadId:e.commentThreadId,skip:0,take:t.commentsTake};i&&(n.firstCommentId=i);var r=[userApiService.getInfo(),commentsApiService.getSortTypes(),commentsApiService.getByThread(n),t.enableRating?commentsApiService.getRatingDistribution({commentThreadI
151d:e.commentThreadId}).catch(function(e){return null}):null];axios.all(r).then(axios.spread(function(i,n,r,a){t.userInfo=i.data,t.sortTypes=n,t.model=r.data,t.ratingDistribution=a?a.data:null,t.totalCountWithReplies=r.data.totalCountWithReplies,t.totalCount=r.data.totalCount,t.commentsSkip=t.commentsSkip+t.commentsTake,t.commentsRemaining=t.totalCount-t.commentsSkip,t.loadMoreCommentsText=t.buildLoadMoreCommentsText(t.commentsRemaining),t.$nextTick(function(){if(carouselService.InitializeCarousels(),e.focusMainInput){var i=t.$refs.commentTextarea;i&&i.focus()}})})).catch(function(e){}),t.initInputObserver(),t.initVisibilityObserver(),document.addEventListener("visibilitychange",t.handleTabVisibilityChange),t.totalCountWithRepliesHandler=e=>{t.totalCountWithReplies++},eventBus.on("totalCountWithRepliesChanged",t.totalCountWithRepliesHandler)},unmounted(){this.totalCountWithRepliesHandler&&eventBus.off("totalCountWithRepliesChanged",this.totalCountWithRepliesHandler)},autoExpandTextarea(){var e=this,t=e.$refs.commentTextarea;t&&(e.originalTextareaHeight||(e.originalTextareaHeight=t.offsetHeight),t.style.height=e.originalTextareaHeight+"px",t.scrollHeight>t.offsetHeight&&(t.style.height=t.scrollHeight+"px"))},onNewCommentFocus(){this.isNewCommentInFocus=!0},loadMoreComments(){var t=this;commentsApiService.getByThread({sortBy:t.selectedSortType,commentThreadI
151d:e.commentThreadId,skip:t.commentsSkip,take:t.commentsTake}).then(function(e){t.model.comments=t.model.comments.concat(e.data.comments),t.commentsSkip=t.commentsSkip+t.commentsTake,t.commentsRemaining=t.totalCount-t.commentsSkip,t.loadMoreCommentsText=t.buildLoadMoreCommentsText(t.commentsRemaining),t.$nextTick(function(){carouselService.InitializeCarousels()})}).catch(function(e){}),externalCommentsData.sendEvent("load_more_clicked")},sortChanged(t){var i=this;i.selectedSortType=t.id,i.selectedSortTypeString=t.description,i.commentsSkip=0,commentsApiService.getByThread({sortBy:i.selectedSortType,commentThreadId:e.commentThreadId,skip:0,take:i.commentsTake}).then(function(e){if(window.googletag&&googletag.apiReady&&"undefined"!=typeof articleCommentsAdSlots)var t=googletag.destroySlots(articleCommentsAdSlots);t&&(articleCommentsAdSlots=[]),i.model.comments=e.data.comments,i.commentsSkip=i.commentsSkip+i.commentsTake,i.commentsRemaining=i.totalCount-i.commentsSkip,i.loadMoreCommentsText=i.buildLoadMoreCommentsText(i.commentsRemaining),i.$nextTick(function(){carouselService.InitializeCarousels()})}).catch(function(e){})},sortChangedEvent(t){var i=this;i.selectedSortType=t.target.value,i.selectedSortTypeString=t.target.text,i.commentsSkip=0,commentsApiService.getByThread({sortBy:i.selectedSortType,commentThreadI
151d:e.commentThreadId,skip:0,take:i.commentsTake}).then(function(e){if(window.googletag&&googletag.apiReady&&"undefined"!=typeof articleCommentsAdSlots)var t=googletag.destroySlots(articleCommentsAdSlots);t&&(articleCommentsAdSlots=[]),i.model.comments=e.data.comments,i.commentsSkip=i.commentsSkip+i.commentsTake,i.commentsRemaining=i.totalCount-i.commentsSkip,i.loadMoreCommentsText=i.buildLoadMoreCommentsText(i.commentsRemaining),i.$nextTick(function(){carouselService.InitializeCarousels()})}).catch(function(e){})},ratingDistributionItems(){var e=this;return e.ratingDistribution&&e.ratingDistribution.items?e.ratingDistribution.items.slice().reverse():[]},formatAverageRating:e=>e?e.toFixed(1).replace(".",","):"0,0",averageStarValue(){if(!this.ratingDistribution)return 0;var e=this.ratingDistribution.averageRating,t=e-Math.floor(e);return t>.5?Math.ceil(e):t>0?Math.floor(e)+.5:e},averageStarClass(e){var t=this.averageStarValue();return e<=t?"full":e-t===.5?"half":"empty"},buildRatingCountText:e=>`${e} ${textService.CheckDeclension(e,"ocjena","ocjene","ocjena")}`,hasNewCommentText(){return this.newCommentContent.length>=this.newCommentMinLength},hasNewCommentRating(){return this.enableRating&&this.newCommentRating.value>0},onRatingChanged(){this.refreshNewCommentValidation()},refreshNewCommentValidation(){var e=this;
151e.isNewCommentValid=e.newCommentContent.length<=e.newCommentMaxLength&&(e.hasNewCommentText()||e.hasNewCommentRating())},isSubmitDisabled(){var e=this;return e.newCommentIsLoading||e.newCommentContent.length>e.newCommentMaxLength||!e.hasNewCommentText()&&!e.hasNewCommentRating()},addNewComment(){var e=this;e.isSubmitDisabled()||(e.userInfo.numberOfComments>0?e.insertCommentApi():e.sharedState.isWarningPopupVisible=!0)},insertCommentApi(){var t=this;t.newCommentIsLoading||(t.newCommentIsLoading=!0,commentsApiService.insertComment({commentThreadId:e.commentThreadId,content:t.newCommentContent,rating:t.hasNewCommentRating()?t.newCommentRating.value:null}).then(function(e){!0===e.data.success?(t.isNewCommentValid=!0,t.newCommentValidationText="",t.newCommentContent="",t.newCommentRating.value=0,t.newCommentRating.hover=0,t.totalCountWithReplies++,t.totalCount++,t.model.comments.unshift(e.data.comment),t.isNewCommentInFocus=!0,t.$nextTick(function(){var e=t.$refs.commentTextarea;e&&t.originalTextareaHeight&&(e.style.height=t.originalTextareaHeight+"px")}
151)):(t.isNewCommentValid=!1,t.newCommentValidationText=e.data.error.message,setTimeout(function(){t.isNewCommentValid=!0,t.newCommentValidationText=""},15e3))}).catch(function(e){}).finally(function(){t.newCommentIsLoading=!1}),externalCommentsData.sendEvent("posted_comment",null,null,"comment"))},onNewCommentContentChanged(){var e=this;e.refreshNewCommentValidation(),e.$nextTick(function(){e.autoExpandTextarea()})},openLoginPopupTxt(e){e.blur(),globalDirectives.ShowLoginPopup()},initInputObserver(){let e=this.$refs.commentsNewHolder;if(e){new IntersectionObserver(function(e,t){e.forEach(function(e){e.isIntersecting&&(externalCommentsData.sendEvent("entered_viewport"),t.unobserve(e.target))})},{root:null,rootMargin:"-100px",threshold:0}).observe(e)}},initVisibilityObserver(){var e=this;let t=e.$refs.commentsContainer;if(t){new IntersectionObserver(function(t,i){t.forEach(function(t){t.isIntersecting?(e.isContainerVisible=!0,document.hidden||e.startVisibilityTimer()):(e.isContainerVisible=!1,e.pauseVisibilityTimer())})},{root:null}).observe(t)}},startVisibilityTimer(){var e=this;e.visibilityInterval||(e.visibilityInterval=setInterval(function(){e.visibilityActiveSeconds++,(10==e.visibilityActiveSeconds||e.visibilityActiveSeconds>10&&e.visibilityActiveSeconds%30==0)&&externalCommentsData.sendEvent("visibility_active",e.visibilityActiveSeconds)},1e3))},pauseVisibilityTimer(){clearInterval(this.visibilityInterval),this.visibilityInterval=null},handleTabVisibilityChange(){var e=this;document.hidden?e.pauseVisibilityTimer():e.isContainerVisible&&e.startVisibilityTimer()}}}function EditComment(e,t,i,n){return{commentModel:e,categorySlug:t,threadType:n,isProduct:n===ThreadTypeEnum.Product,$template:"#edit-comment-template",editCommentContent:"",isEditCommentValid:!0,editCommentValidationText:"",editCommentMinLength:1,editCommentMaxLength:1500,editCommentIsLoading:!1,enableRating:!0===i,editCommentRating:{value:0,max:5,hover:0},mounted(){var t=this;t.editCommentContent=e.content,t.editCommentRating.value=e.rating>0?e.rating:0,t.$nextTick(function(){t.autoExpandTextarea()}),t.editCommentOpenedHandler=i=>{i.commentId===e.commentId&&t.$nextTick(()=>{t.$refs.editCommentTextarea&&t.$refs.editCommentTextarea.focus()})}},onInputShown(e){e.focus()},hasEditCommentText(){return this.editCommentContent.length>=this.editCommentMinLength},hasEditCommentRating(){return this.editCommentRating.value>0},onRatingChanged(){this.refreshEditCommentValidation()},refreshEditCommentValidation(){var e=this;e.isEditCommentValid=e.editCommentContent.length<=e.editCommentMaxLength&&(e.hasEditCommentText()||e.hasEditCommentRating())},onEditCommentContentChanged(){var e=this;e.refreshEditCommentValidation(),e.$nextTick(function(){e.autoExpandTextarea()})},autoExpandTextarea(){var e=this,t=e.$refs.editCommentTextarea;t&&(e.originalTextareaHeight||(e.originalTextareaHeight=t.offsetHeight),t.style.height=e.originalTextareaHeight+"px",t.scrollHeight>t.offsetHeight&&(t.style.height=t.scrollHeight+"px"))},cancelEdit(){this.commentModel.isInEditMode=!1},isSubmitDisabled(){var e=this;return e.editCommentIsLoading||e.editCommentContent.length>e.editCommentMaxLength||!e.hasEditCommentText()&&!e.hasEditCommentRating()},editComment(){var t=this;t.isSubmitDisabled()||(t.refreshEditCommentValidation(),t.isEditCommentValid&&(t.editCommentIsLoading=!0,commentsApiService.editComment({commentId:e.commentId,content:t.editCommentContent,rating:t.hasEditCommentRating()?t.editCommentRating.value:null}).then(function(e){!0===e.data.success?(t.commentModel.content=t.editCommentContent,t.commentModel.rating=e.data.comment.rating,t.commentModel.isEdited=e.data.comment.isEdited,t.commentModel.isInEditMode=!1,t.isEditCommentValid=!0,t.editCommentValidationText="",t.editCommentContent="",t.editCommentIsLoading=!1):(t.isEditCommentValid=!1,t.editCommentValidationText=e.data.error.message,setTimeout(function(){t.isEditCommentValid=!0,t.editCommentValidationText=""},15e3))}).catch(function(e){})))}}}function EmbedPopup(e){return{$template:"#embed-popup-template",parentState:e,onLoadDesktop(){},close(){e.isEmbedPopupVisible=!1,e.embedPopupContentId=null,e.embedPopupType=null}}}function NewReply(e,t,i,n){return{commentModel:e,repliesTake:t,categorySlug:i,threadType:n,isProduct:n===ThreadTypeEnum.Product,$template:"#new-reply-template",newReplyContent:"",isNewReplyValid:!0,newReplyValidationText:"",newReplyMinLength:1,newReplyMaxLength:1500,newReplyIsLoading:!1,sharedState:{isWarningPopupVisible:!1},mounted(){var t=this;t.replyOpenedHandler=i=>{i.commentId===e.commentId&&t.$nextTick(()=>{t.$refs.replyTextarea&&t.$refs.replyTextarea.focus()})},eventBus.on("replyOpened",t.replyOpenedHandler)},unmounted(){this.replyOpenedHandler&&eventBus.off("replyOpened",this.replyOpenedHandler)},openLoginPopupTxt(e){e.blur(),globalDirectives.ShowLoginPopup()}
151,onInputShown(t){e.isNewReplyFocused&&t.focus()},onNewReplyContentChanged(){var e=this;e.newReplyContent.length<e.newReplyMinLength||e.newReplyContent.length>e.newReplyMaxLength?e.isNewReplyValid=!1:e.isNewReplyValid=!0,e.$nextTick(function(){e.autoExpandTextarea()})},autoExpandTextarea(){var e=this,t=e.$refs.replyTextarea;t&&(e.originalTextareaHeight||(e.originalTextareaHeight=t.offsetHeight),t.style.height=e.originalTextareaHeight+"px",t.scrollHeight>t.offsetHeight&&(t.style.height=t.scrollHeight+"px"))},hasNewReplyText(){return this.newReplyContent.length>=this.newReplyMinLength},isSubmitDisabled(){var e=this;return e.newReplyIsLoading||e.newReplyContent.length>e.newReplyMaxLength||!e.hasNewReplyText()},addNewReply(){var e=this;e.isSubmitDisabled()||(e.userInfo.numberOfComments>0?e.insertReplyApi():e.sharedState.isWarningPopupVisible=!0)},getReplies(){return null!=e.replies&&!e.replies.autoExpand&&e.replyCount>0?commentsApiService.getRepliesByComment({commentId:e.commentId,skip:0,take:this.repliesTake}):Promise.resolve()},insertReplyApi(){var t=this;t.newReplyIsLoading||(t.newReplyIsLoading=!0,t.getReplies().then(function(i){i&&(e.replies.comments=i.data.comments,e.replies.autoExpand=!0),commentsApiService.insertComment({commentThreadI
151d:e.commentThreadId,parentCommentId:e.commentId,content:t.newReplyContent}).then(function(i){!0===i.data.success?(e.replyCount++,eventBus.emit("totalCountWithRepliesChanged"),null==e.replies&&(e.replies={comments:[]}),e.replies.comments.push(i.data.comment),t.isNewReplyValid=!0,t.newReplyValidationText="",t.newReplyContent=""):(t.isNewReplyValid=!1,t.newReplyValidationText=i.data.error.message,setTimeout(function(){t.isNewReplyValid=!0,t.newReplyValidationText=""},15e3))}).catch(function(e){}).finally(function(){t.newReplyIsLoading=!1})}).catch(function(e){}),externalCommentsData&&externalCommentsData.sendEvent("posted_comment",null,null,"reply"))},cancelNewReply(){var e=this;e.isNewReplyValid=!0,e.newReplyValidationText="",e.newReplyContent=""}}}function RatingInput(e,t,i=!1){return{$template:"#comment-rating-input-template",rating:e,categorySlug:t,isEdit:i,activeRating(){var e=this;return e.rating.hover>0?e.rating.hover:e.rating.value},hoverRating(e){this.rating.hover=e},setRating(e){var t=this;t.userInfo.isAuthenticated?(t.rating.value=t.rating.value===e?0:e,t.onRatingChanged()):globalDirectives.ShowLoginPopup()}}}function Reactions(e,t,i){return{$template:"#comment-reactions-template",model:e,userInfo:t,categorySlug:i,commentReactionType:commentEnums.commentReactionType,reactOnComment(t){var i=this;commentsApiService.reactOnComment({commentId:e.commentId,type:t}).then(function(n){n.data.success?(e.numberOfLikes=n.data.numberOfLikes,e.numberOfDislikes=n.data.numberOfDislikes,e.reactionType=t):i.reactOnCommentDisabled(t)}).catch(function(e){}),externalCommentsData.sendEvent("reacted",null,getPropertyNameByValue(i.commentReactionType,t).toLowerCase())},reactOnCommentDisabled(t){var i=this;e.reactionType==t?t==i.commentReactionType.Like?e.numberOfLikes=e.numberOfLikes-1:t==i.commentReactionType.Dislike&&(e.numberOfDislikes=e.numberOfDislikes-1):null==t?e.reactionType==i.commentReactionType.Like?e.numberOfLikes=e.numberOfLikes-1:e.reactionType==i.commentReactionType.Dislike&&(e.numberOfDislikes=e.numberOfDislikes-1):t==i.commentReactionType.Like?(e.numberOfLikes=e.numberOfLikes+1,e.reactionType==i.commentReactionType.Dislike&&(e.numberOfDislikes=e.numberOfDislikes-1)):t==i.commentReactionType.Dislike&&(e.numberOfDislikes=e.numberOfDislikes+1,e.reactionType==i.commentReactionType.Like&&(e.numberOfLikes=e.numberOfLikes-1)),e.reactionType=t}}}function Replies(e,t,i,n,r){return{$template:"#replies-template",parentComment:t,userInfo:i,categorySlug:n,threadType:r,repliesRemaining:0,repliesLoadLimit:50,commentState:commentEnums.commentState,loadMoreRepliesText:"",buildLoadMoreRepliesText:e=>`UÄitajte joÅ¡ ${e} ${textService.CheckDeclension(e,"odgovor","odgovora","odgovora")}`,onLoad(){var e=this;e.repliesRemaining=e.parentComment.replyCount-e.parentComment.replies.comments.length,e.loadMoreRepliesText=e.buildLoadMoreRepliesText(e.repliesRemaining)},loadMoreReplies(){var e=this;commentsApiService.getRepliesByComment({commentId:e.parentComment.commentId,skip:0,take:e.repliesLoadLimit}).then(function(t){e.parentComment.replies.comments=t.data.comments,e.repliesRemaining=0}).catch(function(e){})},cancelEdit(e){e.isInEditMode=!1}}}function Timeago(e,t){return{$template:"#comment-timeago-template",date:e,categorySlug:t,interval:null,intervalMs:1e4,colorChangeLimitSeconds:360,textChangeLimitSeconds:90,timeAgoInitLimitDays:100,timeAgoSeconds:0,timeAgoDays:0,isCommentNew:!1,isCommentOld:!1,isCommentColored:!1,formattedDate:"",formattedTimeAgo:"",timeagoTextType:commentEnums.timeagoTextType,selectedTimeagoTextType:commentEnums.timeagoTextType.FixedText,onInit(){var e=this;e.formattedDate=filter.formatDate(e.date),e.formattedTimeAgo=filter.formatTimeAgo(e.date),e.timeAgoSeconds=filter.timeAgoSeconds(e.date),e.timeAgoDays=filter.timeAgoDays(e.date),e.checkCommentAge(),!0===e.isCommentColored&&(e.interval=setInterval(function(){e.timeAgoSeconds=filter.timeAgoSeconds(e.date),e.checkCommentAge(),!1===e.isCommentColored&&clearInterval(e.interval)},e.intervalMs))},checkCommentAge(){var e=this;e.timeAgoSeconds<e.colorChangeLimitSeconds?e.isCommentColored=!0:e.isCommentColored=!1,e.timeAgoSeconds<e.textChangeLimitSeconds?e.
151selectedTimeagoTextType=e.timeagoTextType.FixedText:e.timeAgoDays<e.timeAgoInitLimitDays?(e.selectedTimeagoTextType=e.timeagoTextType.TimeagoText,e.$nextTick(function(){globalDirectives.InitTimeago()})):e.selectedTimeagoTextType=e.timeagoTextType.WithoutTimeago}}}function WarningPopup(e,t){return{$template:"#warning-popup-template",parentState:e,title:"Kao novi komentator možete objaviti najviše jedan komentar u sat vremena. Dobro razmislite o njegovom sadržaju prije objave.",onOkClick(){e.isWarningPopupVisible=!1,t()},onCancelClick(){e.isWarningPopupVisible=!1}}}function ReasonModal(e){return{$template:"#reason-modal-template",title:(e=e||{}).title||"Razlog",confirmLabel:e.confirmLabel||"Potvrdite",otherChecked:!1,otherText:"",validationText:"",confirm(){var t=this,i=[];if(t.$refs.reasonCategories.querySelectorAll("input[data-category]:checked").forEach(function(e){i.push(e.value)}),t.otherChecked){var n=t.otherText.trim();i.push(""!==n?n:"Ostalo")}0!==i.length?e.onConfirm&&e.onConfirm(i):t.validationText="Odaberite barem jedan razlog."},cancel(){e.onCancel&&e.onCancel()}}}function reasonModalHost(){return{isReasonModalVisible:!1,reasonModalTitle:"",reasonModalConfirmLabel:"",reasonModalOnConfirm:function(e){},reasonModalOnCancel:function(){},openReasonModal(e,t,i){var n=this;n.reasonModalTitle=e,n.reasonModalConfirmLabel=t,n.reasonModalOnConfirm=function(e){n.closeReasonModal(),i(e)},n.reasonModalOnCancel=function(){n.closeReasonModal()},n.isReasonModalVisible=!0},closeReasonModal(){this.isReasonModalVisible=!1}}}function EditStatus(e,t){return{$template:"#edit-status-template",model:e,userInfo:t,isClosingFromPopState:!1,editStatusContent:"",isEditStatusValid:!0,editStatusValidationText:"",editStatusMinLength:4,editStatusMaxLength:1500,editStatusIsLoading:!1,isImageSubmitting:!1,editStatusMedia:null,statusMediaType:statusEnums.statusMediaType,userStatusFeedFlag:statusEnums.userStatusFeedFlag,onLoad(){var e=this;e.editStatusContent=e.model.content,null!==e.model.mediaContent&&null!==e.model.mediaType&&(e.editStatusMedia={content:e.model.mediaContent,type:e.model.mediaType}),e.userInfo.statusFeedFlag===e.userStatusFeedFlag.VisibleOnFeed&&(e.editStatusMaxLength=5e3),e.$nextTick(function(){e.autoExpandTextarea();var t=e.$refs.statusTextarea;t&&t.focus(),statusEmbedParser.RenderEmbeds()}),e.onPopStateHandler=()=>{new URL(window.location).searchParams.has("uredi-status")||(e.isClosingFromPopState=!0,e.closeStatusPopup())},window.addEventListener("popstate",e.onPopStateHandler)},unmounted(){var e=this;e.onPopStateHandler&&window.removeEventListener("popstate",e.onPopStateHandler),e.embedExtractTimeout&&clearTimeout(e.embedExtractTimeout)},closeStatusPopup(){$("body").removeClass("overflow-hidden"),this.isClosingFromPopState?this.isClosingFromPopState=!1:window.history.back(),eventBus.emit("editStatusPopupClosed")},onStatusContentChanged(){var e=this;e.embedExtractTimeout&&clearTimeout(e.embedExtractTimeout),e.embedExtractTimeout=setTimeout(function(){e.extractEmbed()},400),null==e.editStatusMedia&&(e.editStatusContent.length<e.editStatusMinLength||e.editStatusContent.length>e.editStatusMaxLength)?e.isEditStatusValid=!1:e.isEditStatusValid=!0,e.$nextTick(function(){e.autoExpandTextarea()})},autoExpandTextarea(){var e=this,t=e.$refs.statusTextarea;t&&(e.originalTextareaHeight||(e.originalTextareaHeight=t.offsetHeight),t.style.height=e.originalTextareaHeight+"px",t.scrollHeight>t.offsetHeight&&(t.style.height=t.scrollHeight+"px"))},editStatus(){var t=this;null==t.editStatusMedia&&(t.editStatusContent.length<t.editStatusMinLength||t.editStatusContent.length>t.editStatusMaxLength)?t.isEditStatusValid=!1:(t.editStatusIsLoading=!0,userStatusesApiService.editStatus({statusId:e.statusId,content:t.editStatusContent,media:t.editStatusMedia}).then(function(e){!0===e.data.success?(t.isEditStatusValid=!0,t.editStatusValidationText="",t.editStatusContent="",t.editStatusMedia=null,eventBus.emit("editStatusCompleted",e.data.status),t.editStatusIsLoading=!1,t.closeStatusPopup()):(t.editStatusIsLoading=!1,t.isEditStatusValid=!1,t.editStatusValidationText=e.data.error.message,setTimeout(function(){t.isEditStatusValid=!0,t.editStatusValidationText=""},15e3))}).catch(function(e){}))},onUploadImageInputChanged(e){this.submitImage(e.files)},onEditStatusPaste(e){var t=this;if(null==t.editStatusMedia&&!t.isImageSubmitting){var i=clipboardImageService.GetPastedImageFile(e);
151i&&(i.error?t.editStatusValidationText="Format slike nije podržan.":t.submitImage([i.file]))}},submitImage(e){var t=this;if(e&&0!==e.length){var i=e[0];if(i)i.size<=10485760?(t.originalTextareaHeight=null,t.isImageSubmitting=!0,userStatusesApiService.uploadImage(e).then(function(e){t.editStatusMedia=e.data,t.isImageSubmitting=!1}).catch(function(e){})):t.editStatusValidationText="Slika ne smije biti veÄa od 10MB."}},removeImage(){this.editStatusMedia=null},extractEmbed(){var e=this;if(null==e.editStatusMedia){var t=statusEmbedParser.ExtractFirstEmbed(e.editStatusContent);t&&(t.type!==e.statusMediaType.TikTok?(e.editStatusMedia=t,e.$nextTick(function(){statusEmbedParser.RenderEmbeds()})):statusEmbedParser.ResolveTikTokVideoId(t.content).then(function(t){t&&null==e.editStatusMedia&&(e.editStatusMedia={type:e.statusMediaType.TikTok,content:t},e.$nextTick(function(){statusEmbedParser.RenderEmbeds()}))}))}}}}function NewStatus(e,t){return{$template:"#new-status-template",userInfo:e,placeholder:t,isNewStatusPopupVisible:!1,isClosingFromPopState:!1,newStatusContent:"",isNewStatusValid:!0,newStatusValidationText:"",newStatusMinLength:4,newStatusMaxLength:1500,newStatusIsLoading:!1,isImageSubmitting:!1,newStatusMedia:null,statusMediaType:statusEnums.statusMediaType,userStatusFeedFlag:statusEnums.userStatusFeedFlag,onLoad(){var e=this;e.userInfo.statusFeedFlag===e.userStatusFeedFlag.VisibleOnFeed&&(e.newStatusMaxLength=5e3),e.onPopStateHandler=()=>{!new URL(window.location).searchParams.has("novi-status")&&e.isNewStatusPopupVisible&&(e.isClosingFromPopState=!0,e.closeNewStatusPopup())},window.addEventListener("popstate",e.onPopStateHandler)},unmounted(){var e=this;e.onPopStateHandler&&window.removeEventListener("popstate",e.onPopStateHandler),e.embedExtractTimeout&&clearTimeout(e.embedExtractTimeout)},onNewStatusPlaceholderClick(){var t=this;if(e.isAuthenticated){t.isNewStatusPopupVisible=!0,$("body").addClass("overflow-hidden");const e=new URL(window.location),i=new URLSearchParams(e.search);i.delete("novi-status");const n=i.toString()?`?${i.toString()}&novi-status`:"?novi-status",r=`${e.origin}${e.pathname}${n}`;window.history.pushState({noviStatus:!0},"",r),t.$nextTick(()=>{var e=t.$refs.statusTextarea;e&&e.focus(),e.scrollHeight>e.offsetHeight&&(e.style.height=e.scrollHeight+"px")})}else globalDirectives.ShowLoginPopup()},closeNewStatusPopup(){var e=this;e.isNewStatusPopupVisible=!1,$("body").removeClass("overflow-hidden"),e.isClosingFromPopState?e.isClosingFromPopState=!1:window.history.back()},onNewStatusContentChanged(){var e=this;e.embedExtractTimeout&&clearTimeout(e.embedExtractTimeout),e.embedExtractTimeout=setTimeout(function(){e.extractEmbed()},400),null==e.newStatusMedia&&(e.newStatusContent.length<e.newStatusMinLength||e.newStatusContent.length>e.newStatusMaxLength)?e.isNewStatusValid=!1:e.isNewStatusValid=!0,e.$nextTick(function(){e.autoExpandTextarea()})},autoExpandTextarea(){var e=this,t=e.$refs.statusTextarea;t&&(e.originalTextareaHeight||(e.originalTextareaHeight=t.offsetHeight),t.style.height=e.originalTextareaHeight+"px",t.scrollHeight>t.offsetHeight&&(t.style.height=t.scrollHeight+"px"))},addNewStatus(){var e=this;0==e.isImageSubmitting&&(null==e.newStatusMedia&&(e.newStatusContent.length<e.newStatusMinLength||e.newStatusContent.length>e.newStatusMaxLength)?e.isNewStatusValid=!1:(e.newStatusIsLoading=!0,userStatusesApiService.insertStatus({content:e.newStatusContent,media:e.newStatusMedia}).then(function(t){!0===t.data.success?(e.isNewStatusValid=!0,e.newStatusValidationText="",e.newStatusContent="",e.newStatusMedia=null,eventBus.emit("newStatusAdded",t.data.status),e.newStatusIsLoading=!1,e.closeNewStatusPopup(),e.$nextTick(function(){var t=e.$refs.statusTextarea;t&&e.originalTextareaHeight&&(t.style.height=e.originalTextareaHeight+"px")})):(e.newStatusIsLoading=!1,e.isNewStatusValid=!1,e.newStatusValidationText=t.data.error.message,setTimeout(function(){e.isNewStatusValid=!0,e.newStatusValidationText=""},15e3))}).catch(function(e){})))},onUploadImageInputChanged(e){this.submitImage(e.files)},onNewStatusPaste(e){var t=this;if(null==t.newStatusMedia&&!t.isImageSubmitting){var i=clipboardImageService.GetPastedImageFile(e);
151i&&(i.error?t.newStatusValidationText="Format slike nije podržan.":t.submitImage([i.file]))}},submitImage(e){var t=this;if(e&&0!==e.length){var i=e[0];if(i)i.size<=10485760?(t.originalTextareaHeight=null,t.isImageSubmitting=!0,userStatusesApiService.uploadImage(e).then(function(e){t.newStatusMedia=e.data,t.isImageSubmitting=!1}).catch(function(e){})):t.newStatusValidationText="Slika ne smije biti veÄa od 10MB."}},removeImage(){this.newStatusMedia=null},extractEmbed(){var e=this;if(null==e.newStatusMedia){var t=statusEmbedParser.ExtractFirstEmbed(e.newStatusContent);t&&(t.type!==e.statusMediaType.TikTok?(e.newStatusMedia=t,e.$nextTick(function(){statusEmbedParser.RenderEmbeds()})):statusEmbedParser.ResolveTikTokVideoId(t.content).then(function(t){t&&null==e.newStatusMedia&&(e.newStatusMedia={type:e.statusMediaType.TikTok,content:t},e.$nextTick(function(){statusEmbedParser.RenderEmbeds()}))}))}}}}function StatusItem(e,t,i,n,r){return{$template:"#status-item-template",model:e,parentState:t,userInfo:i,fullMode:n,isMobile:r,textLengthLimit:950,statusContent:null,useReadMore:!1,statusMediaType:statusEnums.statusMediaType,showMedia:!0,onImageClick(){this.userInfo.isCommentingBanned||(this.userInfo.isAuthenticated?this.parentState.openStatusPopup(this.model,!1):globalDirectives.ShowLoginPopup())},onLoad(){this.refreshContent()},refreshContent(){var e=this;let t=$(e.$refs.statusHolderEl);var i=$(".status-content",t)[0];i&&i.dotdotdot&&i.dotdotdot.destroy(),e.statusContent=textService.LinkifyUrls(e.model.content),e.showMedia=!1,e.$nextTick(function(){e.showMedia=!0,e.$nextTick(function(){statusEmbedParser.RenderEmbeds()})}),e.statusContent.length>e.textLengthLimit&&(e.statusContent+='<div class="status-read-more main-text-hover">ProÄitajte cijeli status</div>',e.$nextTick(function(){var i=$(".status-content",t),n=r?340:245;i.dotdotdot({keep:".status-read-more",height:n,callback:function(n){n&&$(".status-read-more",t).on("click",function(){e.$nextTick(function(){i[0].dotdotdot.destroy(),i.html(e.statusContent),$(".status-read-more",t).remove()})})}})}))},buildLoadCommentsText:e=>`Prikaži ${e} ${textService.CheckDeclension(e,"komentar","komentara","komentara")}`}}function StatusMediaPreview(e,t,i,n){return{$template:"#status-media-preview-template",mediaType:e,mediaContent:t,onRemove:i,onClick:n,isVideoPlaying:!1,statusMediaType:statusEnums.statusMediaType,toggleVideo(e){var t=e.querySelector("video");t&&(t.paused?(t.play(),this.isVideoPlaying=!0):(t.pause(),this.isVideoPlaying=!1))}}}function StatusOptions(e,t){return{...reasonModalHost(),$template:"#status-options-template",model:e,userInfo:t,statusState:statusEnums.statusState,statusModerationFlag:statusEnums.statusModerationFlag,userStatusFeedFlag:statusEnums.userStatusFeedFlag,reportText:"Prijavite",deleteText:"ObriÅ¡ite",banText:"Ban",blockText:"Blokirajte",editText:"Uredite",hideStatusFromFeedText:"Sakrij sa zida",showStatusOnFeedText:"Prikaži na zidu",resetStatusOnFeedText:"Vrati default prikaz statusa na zidu",hideUserFromFeedText:"Nikad ne pokazuj korisnika sa zida",showUserOnFeedText:"Uvijek pokazuj korisnika na zidu",resetUserOnFeedText:"Vrati default prikaz korisnika na zidu",isEditPopupVisible:!1,unmounted(){var e=this;e.editStatusPopupClosedHandler&&eventBus.off("editStatusPopupClosed",e.editStatusPopupClosedHandler),e.editStatusCompletedHandler&&eventBus.off("editStatusCompleted",e.editStatusCompletedHandler)},reportStatus(t){reportFormService.open({statusId:e.statusId})},editStatus(){var e=this;e.isEditPopupVisible=!0,$("body").addClass("overflow-hidden");const t=new URL(window.location),i=new URLSearchParams(t.search);i.delete("uredi-status");const n=i.toString()?`?${i.toString()}&uredi-status`:"?uredi-status",r=`${t.origin}${t.pathname}${n}`;window.history.pushState({urediStatus:!0},"",r),e.editStatusPopupClosedHandler=t=>{e.isEditPopupVisible=!1},e.editStatusCompletedHandler=t=>{e.model.statusId===t.statusId&&(Object.assign(e.model,t),e.refreshContent())},eventBus.on("editStatusPopupClosed",e.editStatusPopupClosedHandler),eventBus.on("editStatusCompleted",e.editStatusCompletedHandler)},removeStatus(){var t=this;t.userInfo.userId!==t.model.posterId?t.openReasonModal("Razlog uklanjanja","Ukloni status",function(i){userStatusesApiService.changeStatusState({statusId:e.statusId,state:t.statusState.Deleted,reasons:i}).then(function(e){t.model.state=t.statusState.Deleted}).catch(function(e){})}):userStatusesApiService.changeStatusState({statusId:e.statusId,state:t.statusState.Deleted}).then(function(e){t.model.state=t.statusState.Deleted}).catch(function(e){})},disableUserActions(){var e=this;e.userInfo.canModerateComments&&e.openReasonModal("Razlog bana","Baniraj korisnika",function(t){profileApiService.disableCommentActions(e.model.posterId,t).then(function(t){e.model.state=e.statusState.Deleted}).catch(function(e){})})},blockUser(){var e=this;profileApiService.blockUser(e.model.posterId).then(function(t){e.model.content="Korisnik je uspjeÅ¡no blokiran, viÅ¡e neÄete vidjeti njegove komentare. Ako se predomislite, korisnika možete odblokirati na svom profilu."}).catch(function(e){})},hideStatusFromFeed(){var t=this;t.userInfo.canModerateComments&&userStatusesApiService.changeModerationFlag({statusId:e.statusId,moderationFlag:t.statusModerationFlag.ForceHiddenOnFeed}).then(function(e){t.model.moderationFlag=t.statusModerationFlag.ForceHiddenOnFeed}).catch(function(e){})},showStatusOnFeed(){var t=this;t.userInfo.canModerateComments&&userStatusesApiService.changeModerationFlag({statusId:e.statusId,moderationFlag:t.statusModerationFlag.ForceVisibleOnFeed}).then(function(e){t.model.moderationFlag=t.statusModerationFlag.ForceVisibleOnFeed}).catch(function(e){})},resetStatusOnFeed(){var t=this;t.userInfo.canModerateComments&&userStatusesApiService.changeModerationFlag({statusId:e.statusId,moderationFlag:t.statusModerationFlag.None}).then(function(e){t.model.moderationFlag=t.statusModerationFlag.None}).catch(function(e){})},hideUserFromFeed(){var t=this;t.userInfo.canModerateComments&&profileApiService.changeStatusFeedFlag({userId:e.posterId,statusFeedFlag:t.userStatusFeedFlag.HiddenOnFeed}).then(function(e){t.model.userStatusFeedFlag=t.userStatusFeedFlag.HiddenOnFeed}).catch(function(e){})},showUserOnFeed(){var t=this;t.userInfo.canModerateComments&&profileApiService.changeStatusFeedFlag({userId:e.posterId,statusFeedFlag:t.userStatusFeedFlag.VisibleOnFeed}).then(function(e){t.model.userStatusFeedFlag=t.userStatusFeedFlag.VisibleOnFeed}).catch(function(e){})},resetUserStatusFeedFlag(){var t=this;t.userInfo.canModerateComments&&profileApiService.changeStatusFeedFlag({userId:e.posterId,statusFeedFlag:t.userStatusFeedFlag.None}).then(function(e){t.model.userStatusFeedFlag=t.userStatusFeedFlag.None}).catch(function(e){})}}}function StatusPopup(e,t,i){return{$template:"#status-popup-template",model:e,parentState:t,userInfo:i,onLoadDesktop(){var e=this;let t=e.$refs.statusCommentsContainer;statusEmbedParser.RenderEmbeds(),$.get("/ajax-noindex/display-article-comments",{commentThreadI
151d:e.parentState.selectedStatus.commentThreadId,isEventLive:!1,hideAdUnits:!0,focusMainInput:e.parentState.focusCommentInput},function(e){$(t).html(e)})},onLoadMobile(){var e=this;let t=e.$refs.statusCommentsContainer;statusEmbedParser.RenderEmbeds(),$.get("/mobile/ajax-noindex/display-article-comments",{commentThreadId:e.parentState.selectedStatus.commentThreadId,isEventLive:!1,hideAdUnits:!0,focusMainInput:e.parentState.focusCommentInput},function(e){$(t).html(e)}),swipeToCloseService.Attach({holder:e.$refs.popupHolder,scroller:e.$refs.scrollContainer,onClose:function(){e.parentState.closeStatusPopup()}})}}}function StatusReactions(e,t,i){return{$template:"#status-reactions-template",model:e,parentState:t,userInfo:i,statusReactionType:statusEnums.statusReactionType,reactOnStatus(t){this.reactOnStatusDisabled(t),userStatusesApiService.reactOnStatus({statusId:e.statusId,type:t}).then(function(e){}).catch(function(e){})},reactOnStatusDisabled(t){var i=this;e.reactionType==t?t==i.statusReactionType.Like?e.numberOfLikes=e.numberOfLikes-1:t==i.statusReactionType.Dislike&&(e.numberOfDislikes=e.numberOfDislikes-1):null==t?e.reactionType==i.statusReactionType.Like?e.numberOfLikes=e.numberOfLikes-1:e.reactionType==i.statusReactionType.Dislike&&(e.numberOfDislikes=e.numberOfDislikes-1):t==i.statusReactionType.Like?(e.numberOfLikes=e.numberOfLikes+1,e.reactionType==i.statusReactionType.Dislike&&(e.numberOfDislikes=e.numberOfDislikes-1)):t==i.statusReactionType.Dislike&&(e.numberOfDislikes=e.numberOfDislikes+1,e.reactionType==i.statusReactionType.Like&&(e.numberOfLikes=e.numberOfLikes-1)),e.reactionType=t}}}function StatusTimeago(e){return{$template:"#status-timeago-template",date:e,interval:null,intervalMs:1e4,colorChangeLimitSeconds:360,textChangeLimitSeconds:90,timeAgoInitLimitDays:100,timeAgoSeconds:0,timeAgoDays:0,isStatusNew:!1,isStatusOld:!1,isStatusColored:!1,formattedDate:"",formattedTimeAgo:"",timeagoTextType:statusEnums.timeagoTextType,selectedTimeagoTextType:statusEnums.timeagoTextType.FixedText,onInit(){var e=this;e.formattedDate=filter.formatDate(e.date),e.formattedTimeAgo=filter.formatTimeAgo(e.date),e.timeAgoSeconds=filter.timeAgoSeconds(e.date),e.timeAgoDays=filter.timeAgoDays(e.date),e.checkStatusAge(),!0===e.isStatusColored&&(e.interval=setInterval(function(){e.timeAgoSeconds=filter.timeAgoSeconds(e.date),e.checkStatusAge(),!1===e.isStatusColored&&clearInterval(e.interval)},e.intervalMs))},checkStatusAge(){var e=this;e.timeAgoSeconds<e.colorChangeLimitSeconds?e.isStatusColored=!0:e.isStatusColored=!1,e.timeAgoSeconds<e.textChangeLimitSeconds?e.selectedTimeagoTextType=e.timeagoTextType.FixedText:e.timeAgoDays<e.timeAgoInitLimitDays?(e.selectedTimeagoTextType=e.timeagoTextType.TimeagoText,e.$nextTick(function(){globalDirectives.InitTimeago()})):e.selectedTimeagoTextType=e.timeagoTextType.WithoutTimeago}}}function BlockedUsersList(e){return{blockedUsers:[],totalCount:0,usersRemaining:0,isFirstContentLoaded:!1,take:e.take,skip:0,takeLoadMore:e.takeLoadMore,loadMoreUsersText:"",buildLoadMoreUsersText:e=>`Još ${e} ${textService.CheckDeclension(e,"korisnik","korisnika","korisnika")}`,onLoad(){var e=this;userApiService.getBlockedUsers({skip:e.skip,take:e.take}).then(function(t){e.blockedUsers=e.blockedUsers.concat(t.data.users),e.totalCount=t.data.totalCount,e.skip=e.skip+e.take,e.usersRemaining=e.totalCount-e.skip,e.loadMoreUsersText=e.buildLoadMoreUsersText(e.usersRemaining),e.isFirstContentLoaded=!0}).catch(function(e){})},blockUser(e){profileApiService.blockUser(e.id).then(function(t){e.isBlocked=!0}).catch(function(e){})},unblockUser(e){profileApiService.unblockUser(e.id).then(function(t){e.isBlocked=!1}).catch(function(e){})},loadMoreUsers(){var e=this;userApiService.getBlockedUsers({skip:e.skip,take:e.takeLoadMore}).then(function(t){e.blockedUsers=e.blockedUsers.concat(t.data.users),e.totalCount=t.data.totalCount,e.skip=e.skip+e.take,e.usersRemaining=e.totalCount-e.skip,e.loadMoreStatusesText=e.buildLoadMoreUsersText(e.usersRemaining)}).catch(function(e){})}}}function ProfileDetails(e,t){return{...reasonModalHost(),model:e,isOwner:t,userInfo:{},userStatusFeedFlag:statusEnums.userStatusFeedFlag,isImageSubmitting:!1,imageUploadErrorText:null,isFirstContentLoaded:!1,isConfirmDialogVisible:!1,isFormLoading:!1,hideUserFromFeedText:"Ukloni uvijek korisnika sa zida",showUserOnFeedText:"Prikaži uvijek korisnika na zidu",resetUserOnFeedText:"Poništi prikaz korisnika na zidu",onLoad(){var e=this;userApiService.getInfo().then(function(t){e.userInfo=t.data,e.isFirstContentLoaded=!0}).catch(function(e){})},buildFollowersText(e){var t=textService.CheckDeclension(e,"pratitelj","pratitelja","pratitelja");
151return`${e.toLocaleString("hr-HR")} ${t}`},buildPointsText(e){var t=textService.CheckDeclension(e,"bod","boda","bodova");return`${e.toLocaleString("hr-HR")} ${t}`},onUploadImageInputChanged(e){var t=this,i=e.files,n=i[0];n&&(n.size<=5242880?(t.isImageSubmitting=!0,userApiService.changeProfileImage(i).then(function(e){e.data.success?(t.model.profileImagePath=e.data.newImagePath,t.imageUploadErrorText=null):t.imageUploadErrorText=e.data.error.message,t.isImageSubmitting=!1}).catch(function(e){})):t.imageUploadErrorText="Slika ne smije biti veÄa od 5MB.")},onDeleteImageClick(){this.isConfirmDialogVisible=!0},onCancelDeleteImageClick(){this.isConfirmDialogVisible=!1},onConfirmDeleteImageClick(){var e=this;e.isImageSubmitting=!0,this.isConfirmDialogVisible=!1,userApiService.deleteProfileImage().then(function(t){t.data.success&&(e.model.profileImagePath=null,e.imageUploadErrorText=null),e.isImageSubmitting=!1}).catch(function(e){})},onBanUserClick(){var e=this;e.userInfo.canModerateComments&&!e.isFormLoading&&e.openReasonModal("Razlog bana","Baniraj korisnika",function(t){e.isFormLoading=!0,profileApiService.disableCommentActions(e.model.id,t).then(function(){e.model.isCommentingBanned=!0,e.isFormLoading=!1}).catch(function(t){e.isFormLoading=!1})})},onUnbanUserClick(){var e=this;e.userInfo.canModerateComments&&!e.isFormLoading&&(e.isFormLoading=!0,profileApiService.enableCommentActions(e.model.id).then(function(){e.model.isCommentingBanned=!1,e.isFormLoading=!1}).catch(function(e){}))},onFollowUserClick(){var e=this;e.isOwner||(e.userInfo.isAuthenticated?(e.isFormLoading=!0,profileApiService.followUser(e.model.id).then(function(){e.model.isFollowed=!0,e.isFormLoading=!1}).catch(function(e){})):globalDirectives.ShowLoginPopup())},onUnFollowUserClick(){var e=this;!e.isOwner&&e.userInfo.isAuthenticated&&(e.isFormLoading=!0,profileApiService.unfollowUser(e.model.id).then(function(){e.model.isFollowed=!1,e.isFormLoading=!1}).catch(function(e){}))},onBlockUserClick(){var t=this;t.userInfo.userId===t.model.id||e.isBlocked||profileApiService.blockUser(t.model.id).then(function(e){t.model.isBlocked=!0}).catch(function(e){})},onUnBlockUserClick(t){var i=this;i.userInfo.userId!==i.model.id&&e.isBlocked&&profileApiService.unblockUser(i.model.id).then(function(e){i.model.isBlocked=!1}).catch(function(e){})},hideUserFromFeed(){var t=this;t.userInfo.canModerateComments&&profileApiService.changeStatusFeedFlag({userId:e.id,statusFeedFlag:t.userStatusFeedFlag.HiddenOnFeed}).then(function(e){t.model.userStatusFeedFlag=t.userStatusFeedFlag.HiddenOnFeed}).catch(function(e){})},showUserOnFeed(){var t=this;t.userInfo.canModerateComments&&profileApiService.changeStatusFeedFlag({userId:e.id,statusFeedFlag:t.userStatusFeedFlag.VisibleOnFeed}).then(function(e){t.model.userStatusFeedFlag=t.userStatusFeedFlag.VisibleOnFeed}).catch(function(e){})},resetUserStatusFeedFlag(){var t=this;t.userInfo.canModerateComments&&profileApiService.changeStatusFeedFlag({userId:e.id,statusFeedFlag:t.userStatusFeedFlag.None}).then(function(e){t.model.userStatusFeedFlag=t.userStatusFeedFlag.None}).catch(function(e){})}}}function FollowedUsersList(e){return{followedUsers:[],totalCount:0,usersRemaining:0,isFirstContentLoaded:!1,take:e.take,skip:0,takeLoadMore:e.takeLoadMore,loadMoreUsersText:"",buildLoadMoreUsersText:e=>`JoÅ¡ ${e} ${textService.CheckDeclension(e,"korisnik","korisnika","korisnika")}`,onLoad(){var e=this;userApiService.getFollowedUsers({skip:e.skip,take:e.take}).then(function(t){e.followedUsers=e.followedUsers.concat(t.data.users),e.totalCount=t.data.totalCount,e.skip=e.skip+e.take,e.usersRemaining=e.totalCount-e.skip,e.loadMoreUsersText=e.buildLoadMoreUsersText(e.usersRemaining),e.isFirstContentLoaded=!0}).catch(function(e){})},followUser(e){profileApiService.followUser(e.id).then(function(){e.isFollowed=!0}).catch(function(e){})},unfollowUser(e){profileApiService.unfollowUser(e.id).then(function(t){e.isFollowed=!1}).catch(function(e){})},loadMoreUsers(){var e=this;userApiService.getFollowedUsers({skip:e.skip,take:e.takeLoadMore}).then(function(t){e.followedUsers=e.followedUsers.concat(t.data.users),e.totalCount=t.data.totalCount,e.skip=e.ski
151p+e.take,e.usersRemaining=e.totalCount-e.skip,e.loadMoreStatusesText=e.buildLoadMoreUsersText(e.usersRemaining)}).catch(function(e){})}}}function FollowersList(e){return{followers:[],totalCount:0,usersRemaining:0,isFirstContentLoaded:!1,take:e.take,skip:0,takeLoadMore:e.takeLoadMore,loadMoreUsersText:"",buildLoadMoreUsersText:e=>`Još ${e} ${textService.CheckDeclension(e,"korisnik","korisnika","korisnika")}`,onLoad(){var e=this;userApiService.getFollowers({skip:e.skip,take:e.take}).then(function(t){e.followers=e.followers.concat(t.data.users),e.totalCount=t.data.totalCount,e.skip=e.skip+e.take,e.usersRemaining=e.totalCount-e.skip,e.loadMoreUsersText=e.buildLoadMoreUsersText(e.usersRemaining),e.isFirstContentLoaded=!0}).catch(function(e){})},followUser(e){profileApiService.followUser(e.id).then(function(){e.isFollowed=!0}).catch(function(e){})},unfollowUser(e){profileApiService.unfollowUser(e.id).then(function(t){e.isFollowed=!1}).catch(function(e){})},loadMoreUsers(){var e=this;userApiService.getFollowers({skip:e.skip,take:e.takeLoadMore}).then(function(t){e.followers=e.followers.concat(t.data.users),e.totalCount=t.data.totalCount,e.skip=e.skip+e.take,e.usersRemaining=e.totalCount-e.skip,e.loadMoreStatusesText=e.buildLoadMoreUsersText(e.usersRemaining)}).catch(function(e){})}}}function StatusesList(e){return{userInfo:{},totalCount:0,statusesRemaining:0,isFirstContentLoaded:!1,statusState:statusEnums.statusState,take:e.take,skip:0,takeLoadMore:e.takeLoadMore,loadMoreStatusesText:"",statuses:[],sharedState:{selectedStatus:null,focusCommentInput:!1,isClosingFromPopState:!1,openStatusPopup(e,t){this.selectedStatus=e,this.focusCommentInput=t,$("body").addClass("overflow-hidden");const i=new URL(window.location);i.searchParams.set("statusId",e.statusPublicId),window.history.pushState({statusId:e.statusPublicId},"",i)},closeStatusPopup(){this.selectedStatus=null,$("body").removeClass("overflow-hidden"),this.isClosingFromPopState?this.isClosingFromPopState=!1:window.history.back()}},buildLoadMoreStatusesText:e=>`Još ${e} ${textService.CheckDeclension(e,"status","statusa","statusa")}`,onLoad(){var t=this,i=[userStatusesApiService.getByUser({createdById:e.userId,skip:t.skip,take:t.take}),userApiService.getInfo()];axios.all(i).then(axios.spread(function(e,i){t.statuses=t.statuses.concat(e.data.statuses),t.userInfo=i.data,t.totalCount=e.data.totalCount,t.skip=t.skip+t.take,t.statusesRemaining=t.totalCount-t.skip,t.loadMoreStatusesText=t.buildLoadMoreStatusesText(t.statusesRemaining),t.isFirstContentLoaded=!0,t.$nextTick(function(){globalDirectives.InitTimeago(),statusEmbedParser.RenderEmbeds()})})).catch(function(e){}),t.onAddNewStatusHandler=e=>{t.statuses.unshift(e),t.$nextTick(function(){statusEmbedParser.RenderEmbeds()})},eventBus.on("newStatusAdded",t.onAddNewStatusHandler),t.onPopStateHandler=()=>{!new URL(window.location).searchParams.has("statusId")&&t.sharedState.selectedStatus&&(t.sharedState.isClosingFromPopState=!0,t.sharedState.closeStatusPopup())},window.addEventListener("popstate",t.onPopStateHandler)},unmounted(){var e=this;e.onAddNewStatusHandler&&eventBus.off("newStatusAdded",e.onAddNewStatusHandler),e.onPopStateHandler&&window.removeEventListener("popstate",e.onPopStateHandler)},loadMoreStatuses(){var t=this;userStatusesApiService.getByUser({createdById:e.userId,skip:t.skip,take:t.takeLoadMore}).then(function(e){t.statuses=t.statuses.concat(e.data.statuses),t.skip=t.skip+t.takeLoadMore,t.statusesRemaining=t.totalCount-t.skip,t.loadMoreStatusesText=t.buildLoadMoreStatusesText(t.statusesRemaining),t.$nextTick(function(){globalDirectives.InitTimeago(),statusEmbedParser.RenderEmbeds()})}).catch(function(e){})}}}function ProfileCommentItem(e,t,i){return{$template:"#comment-item-template",model:e,userInfo:t,indexInList:i,isNewReplyVisible:!1,showNewReply(){var t=this;t.isNewReplyVisible=!0,t.model.isNewReplyFocused=!0,t.$nextTick(function(){eventBus.emit("replyOpened",{commentId:e.commentId})})},buildLoadRepliesText:e=>`Prikaži ${e} ${textService.CheckDeclension(e,"odgovor","odgovora","odgovora")}`,loadReplies(t){var i=this;commentsApiService.getRepliesByComment({commentId:e.commentId,skip:0,take:t}).then(function(e){i.model.replies.autoExpand=!0,i.model.replies.comments=e.data.comments,i.isNew
151ReplyVisible=!0}).catch(function(e){})},cancelEdit(){this.model.isInEditMode=!1}}}function ProfileCommentsList(e){return{comments:[],userInfo:{},totalCount:0,commentsRemaining:0,isFirstContentLoaded:!1,commentState:commentEnums.commentState,threadType:commentEnums.threadType,take:e.take,skip:0,takeLoadMore:e.takeLoadMore,loadMoreCommentsText:"",buildLoadMoreCommentsText:e=>`JoÅ¡ ${e} ${textService.CheckDeclension(e,"komentar","komentara","komentara")}`,onLoad(){var t=this,i=[commentsApiService.getByUser({createdById:e.userId,skip:t.skip,take:t.take}),userApiService.getInfo()];axios.all(i).then(axios.spread(function(e,i){t.userInfo=i.data,t.comments=t.comments.concat(e.data.comments),t.totalCount=e.data.totalCount,t.skip=t.skip+t.take,t.commentsRemaining=t.totalCount-t.skip,t.loadMoreCommentsText=t.buildLoadMoreCommentsText(t.commentsRemaining),t.isFirstContentLoaded=!0,t.$nextTick(function(){globalDirectives.InitTimeago()})})).catch(function(e){})},loadMoreComments(){var t=this;commentsApiService.getByUser({createdById:e.userId,skip:t.skip,take:t.takeLoadMore}).then(function(e){t.comments=t.comments.concat(e.data.comments),t.skip=t.skip+t.takeLoadMore,t.commentsRemaining=t.totalCount-t.skip,t.loadMoreCommentsText=t.buildLoadMoreCommentsText(t.commentsRemaining),t.$nextTick(function(){globalDirectives.InitTimeago()})}).catch(function(e){})}}}function ProfileEditBio(e){return{model:{},isFirstContentLoaded:!1,maxLength:80,bioChangeErrorText:"",isInputValid:!0,onLoad(){var t=this;profileApiService.getProfile(e.userId).then(function(e){t.model=e.data,t.isFirstContentLoaded=!0}).catch(function(e){})},onContentChanged(){var e=this;e.model.bio.length>e.maxLength?e.isInputValid=!1:e.isInputValid=!0},onSaveButtonClick(){var e=this;e.isInputValid=!0,e.model.bio.length>e.maxLength&&(e.isInputValid=!1),e.model.bio&&(e.model.bio=e.model.bio.trim()),userApiService.changeBio({content:e.model.bio}).then(function(t){t.data.success?window.location.href="/profil/uredi":e.bioChangeErrorText=t.data.error.message}).catch(function(e){})}}}function ProfileEditName(e){return{model:{},isFirstContentLoaded:!1,isChangeNameAllowed:!1,nameChangeErrorText:"*Ime i prezime moguÄe je promijeniti samo jednom u 12 mjeseci.",isInputValid:!0,emptyNameErrorText:"Ovo ne izgleda kao pravo ime i prezime. PokuÅ¡ajte ponovno.",maxInputNameLength:16,onLoad(){var t=this,i=[profileApiService.getProfile(e.userId),profileApiService.checkIfNameChangeIsAllowed(e.userId)];axios.all(i).then(axios.spread(function(e,i){t.model=e.data,t.isChangeNameAllowed=i.data.isAllowed,i.data.error&&(t.nameChangeErrorText=i.data.error.message),t.isFirstContentLoaded=!0})).catch(function(e){})},onSaveButtonClick(){var e=this;e.isInputValid=!0,e.model.firstName&&(e.model.firstName=e.model.firstName.trim()),e.model.lastName&&(e.model.lastName=e.model.lastName.trim()),null==e.model.firstName||e.model.firstName.length<2||null==e.model.lastName||e.model.lastName.length<2?e.isInputValid=!1:userApiService.changeName({firstName:e.model.firstName,lastName:e.model.lastName}).then(function(t){t.data.success?window.location.href="/profil/uredi":e.nameChangeErrorText=t.data.error.message}).catch(function(e){})}}}function ProfileEdit(e){return{model:{},isFirstContentLoaded:!1,onLoad(){var t=this;profileApiService.getProfile(e.userId).then(function(e){t.model=e.data,t.isFirstContentLoaded=!0}).catch(function(e){})}}}function Main(e){return{userInfo:{},totalCount:0,statusesRemaining:0,isFirstContentLoaded:!1,statusState:statusEnums.statusState,take:e.take,skip:0,takeLoadMore:e.takeLoadMore,filterType:null,loadMoreStatusesText:"",statuses:[],loadMoreObserver:null,isListLoading:!1,isFilterLoading:!1,sharedState:{selectedStatus:null,focusCommentInput:!1,isClosingFromPopState:!1,openStatusPopup(e,t){this.selectedStatus=e,this.focusCommentInput=t,$("body").addClass("overflow-hidden");const i=new URL(window.location);i.searchParams.set("statusId",e.statusPublicId),window.history.pushState({statusId:e.statusPublicId},"",i)},closeStatusPopup(){if(this.selectedStatus=null,$("body").removeClass("overflow-hidden"),this.isClosingFromPo
151pState)this.isClosingFromPopState=!1;else{const e=new URL(window.location);e.searchParams.has("statusId")?(e.searchParams.delete("statusId"),window.history.replaceState({},"",e)):window.history.back()}},buildFollowersText(e){var t=textService.CheckDeclension(e,"pratitelj","pratitelja","pratitelja");return`${e.toLocaleString("hr-HR")} ${t}`},followUser(e){profileApiService.followUser(e.id).then(function(){e.isFollowed=!0}).catch(function(e){})},unfollowUser(e){profileApiService.unfollowUser(e.id).then(function(t){e.isFollowed=!1}).catch(function(e){})}},buildLoadMoreStatusesText:e=>`Još ${e} ${textService.CheckDeclension(e,"status","statusa","statusa")}`,onLoad(){var e=this,t=[userStatusesApiService.getForUserFeed({skip:e.skip,take:e.take,filterType:e.filterType}),userApiService.getInfo()];axios.all(t).then(axios.spread(function(t,i){e.statuses=e.statuses.concat(t.data.statuses),e.userInfo=i.data,e.totalCount=t.data.totalCount,e.skip=e.skip+e.take,e.statusesRemaining=e.totalCount-e.skip,e.loadMoreStatusesText=e.buildLoadMoreStatusesText(e.statusesRemaining),e.isFirstContentLoaded=!0,e.$nextTick(function(){globalDirectives.InitTimeago(),e.setupIntersectionObserver(),statusEmbedParser.RenderEmbeds()});const n=new URL(window.location),r=n.searchParams.get("statusId");r&&userStatusesApiService.getSingleStatus(r).then(function(t){e.sharedState.selectedStatus=t.data,$("body").addClass("overflow-hidden")}).catch(function(e){n.searchParams.delete("statusId"),window.history.replaceState({},"",n)})})).catch(function(e){}),e.onAddNewStatusHandler=t=>{e.statuses.unshift(t),e.$nextTick(function(){statusEmbedParser.RenderEmbeds()})},eventBus.on("newStatusAdded",e.onAddNewStatusHandler),e.onPopStateHandler=()=>{!new URL(window.location).searchParams.has("statusId")&&e.sharedState.selectedStatus&&(e.sharedState.isClosingFromPopState=!0,e.sharedState.closeStatusPopup())},window.addEventListener("popstate",e.onPopStateHandler)},setupIntersectionObserver(){var e=this;e.loadMoreObserver=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&e.statusesRemaining>0&&e.loadMoreStatuses()})},{root:null,rootMargin:"0px 0px 50% 0px"}),e.$refs.btnLoadMoreStatuses&&e.loadMoreObserver.observe(e.$refs.btnLoadMoreStatuses)},unmounted(){var e=this;e.onAddNewStatusHandler&&eventBus.off("newStatusAdded",e.onAddNewStatusHandler),e.onPopStateHandler&&window.removeEventListener("popstate",e.onPopStateHandler),e.loadMoreObserver&&(e.loadMoreObserver.disconnect(),e.loadMoreObserver=null)},changeFilter(e){var t=this;t.filterType!==e&&(t.isFilterLoading=!0,t.filterType=e,t.skip=0,t.statuses=[],userStatusesApiService.getForUserFeed({skip:t.skip,take:t.take,filterType:t.filterType}).then(function(e){t.totalCount=e.data.totalCount,t.skip=t.skip+t.take,t.statusesRemaining=t.totalCount-t.skip,t.loadMoreStatusesText=t.buildLoadMoreStatusesText(t.statusesRemaining),t.statuses=e.data.statuses,t.isFilterLoading=!1,t.$nextTick(function(){globalDirectives.InitTimeago(),statusEmbedParser.RenderEmbeds(),t.loadMoreObserver&&t.$refs.btnLoadMoreStatuses&&t.statusesRemaining>0&&t.loadMoreObserver.observe(t.$refs.btnLoadMoreStatuses)})}).catch(function(e){t.isFilterLoading=!1}))},loadMoreStatuses(){var e=this;e.isListLoading=!0,userStatusesApiService.getForUserFeed({skip:e.skip,take:e.takeLoadMore,filterType:e.filterType}).then(function(t){e.statuses=e.statuses.concat(t.data.statuses),e.skip=e.skip+e.takeLoadMore,e.statusesRemaining=e.totalCount-e.skip,e.loadMoreStatusesText=e.buildLoadMoreStatusesText(e.statusesRemaining),e.isListLoading=!1,e.$nextTick(function(){globalDirectives.InitTimeago(),statusEmbedParser.RenderEmbeds(),e.loadMoreObserver&&e.$refs.btnLoadMoreStatuses&&e.statusesRemaining>0&&e.loadMoreObserver.observe(e.$refs.btnLoadMoreStatuses)})}).catch(function(e){})}}}function CartAdd(e){return{$template:"#cijene-cart-add-template",cartAddVisible:!1,cartAddQuery:"",cartAddResults:[],cartAddLoading:!1,cartAddDebounceTimer:null,cartAddOpenHandler:null,get cartAddItems(){return this.cartAddQuery.trim().length>=2?this.cartAddResults:e.popular.items},mounted(){var e=this;this.cartAddOpenHandler=function(){e.openCartAdd()},eventBus.on("cijene:open-cart-add",this.cartAddOpenHandler)},unmounted(){eventBus.off("cijene:open-cart-add",this.cartAddOpenHandler),clearTimeout(this.cartAddDebounceTimer),this.cartAddVisible&&this.closeCartAdd()},openCartAdd(){var t=this;this.cartAddVisible=!0,this.cartAddQuery="",this.cartAddResults=[],this.cartAddLoading=!1,$("body").addClass("overflow-hidden"),0===e.popular.items.length&&this.loadPopular(),this.isMobile||this.$nextTick(function(){t.$refs.cartAddInput&&t.$refs.cartAddInput.focus()})},closeCartAdd(){clearTimeout(this.cartAddDebounceTimer),this.cartAddVisible=!1,this.cartAddQuery="",this.cartAddResults=[],this.cartAddLoading=!1,$("body").removeClass("overflow-hidden")},onCartAddMounted(){if(this.isMobile){var e=this,t=this.$refs.cartAddHolder;t&&swipeToCloseService.Attach({holder:t,scroller:function(){return t.querySelector(".products-popup__list")},onClose:function(){e.closeCartAdd()}})}},onCartAddInput(){var e=this,t=this.cartAddQuery.trim();if(clearTimeout(this.cartAddDebounceTimer),t.length<2)return this.cartAddResults=[],void(this.cartAddLoading=!1);this.cartAddLoading=!0,this.cartAddDebounceTimer=setTimeout(function(){cijeneApiService.getProducts(t,25).then(function(i){e.cartAddQuery.trim()===t&&(e.cartAddResults=i.data&&i.data.products||[],e.cartAddLoading=!1)}).catch(function(i){console.error("Cart add search error:",i),e.cartAddQuery.trim()===t&&(e.cartAddResults=[],e.cartAddLoading=!1)})},300)},clearCartAddQuery(){clearTimeout(this.cartAddDebounceTimer),this.cartAddQuery="",this.cartAddResults=[],this.cartAddLoading=!1,this.$refs.cartAddInput&&this.$refs.cartAddInput.focus()},selectCartAddItem(e){this.addToCart(e),this.closeCartAdd()},highlightCartAddMatch(e){if(!e)return"";var t=this.cartAddQuery.trim();if(t.length<2)return cijeneEscapeHtml(e);var i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp("("+i+")","gi");return cijeneEscapeHtml(e).replace(n,"<strong>$1</strong>")}}}function CartAlternatives(e){return{$template:"#cijene-cart-alternatives-template",cartAltVisible:!1,
151cartAltLoading:!1,cartAltError:!1,cartAltItems:[],cartAltContext:null,cartAltOpenHandler:null,get cartAltSelectedBarcode(){if(!this.cartAltContext)return null;var e=this.findCartItem(this.cartAltContext.barcode);if(!e||!e.alternatives)return null;var t=e.alternatives[this.cartAltContext.retailerId];return t?t.barcode:null},mounted(){var e=this;this.cartAltOpenHandler=function(t){e.openCartAlternatives(t)},eventBus.on("cijene:open-cart-alternatives",this.cartAltOpenHandler)},unmounted(){eventBus.off("cijene:open-cart-alternatives",this.cartAltOpenHandler),this.cartAltVisible&&this.closeCartAlternatives()},openCartAlternatives(e){var t=this;this.cartAltContext=e,this.cartAltVisible=!0,this.cartAltItems=[],this.cartAltError=!1,this.cartAltLoading=!0,$("body").addClass("overflow-hidden"),this.buildCartAlternativesPromise(e).then(function(e){t.cartAltVisible&&(t.cartAltItems=(e.data||[]).filter(function(e){return!t.findCartItem(e.barcode)}),t.cartAltLoading=!1)}).catch(function(e){console.error("Error fetching cart alternatives:",e),t.cartAltVisible&&(t.cartAltItems=[],t.cartAltError=!0,t.cartAltLoading=!1)})},buildCartAlternativesPromise:t=>e.locationState.useGeolocation&&e.locationState.userLocation?cijeneApiService.getCartAlternativesByLocation(t.barcode,t.retailerId,e.locationState.userLocation.lat,e.locationState.userLocation.lng,20):cijeneApiService.getCartAlternativesByCity(t.barcode,t.retailerId,e.locationState.selectedCity||null),closeCartAlternatives(){this.cartAltVisible=!1,this.cartAltContext=null,this.cartAltItems=[],this.cartAltLoading=!1,this.cartAltError=!1,$("body").removeClass("overflow-hidden")},onCartAlternativesMounted(){if(this.isMobile){var e=this,t=this.$refs.cartAltHolder;t&&swipeToCloseService.Attach({holder:t,scroller:function(){return t.querySelector(".products-popup__list")},onClose:function(){e.closeCartAlternatives()}})}},selectCartAlternative(e){var t=this.cartAltContext,i=t?this.findCartItem(t.barcode):null;i&&e&&e.barcode&&(i.alternatives||(i.alternatives={}),i.alternatives[t.retailerId]={barcode:e.barcode,name:e.name,brand:e.brand||null,imagePath:e.imagePath||null,unit:e.unit||null},i.altChecked||(i.altChecked={}),i.altChecked[t.retailerId]=!0,this.persistCart()),this.closeCartAlternatives()}}}function Cart(e){return{cartPricesLoading:!1,cartPricesError:!1,cartSortBy:"cheapest",pricesByBarcode:{},expandedRetailers:{},bootHandler:null,locationHandler:null,cartChangedHandler:null,get cartPageItems(){return e.cart.items},get retailerGroups(){var t=this,i=e.cart.items,n={},r={};i.forEach(function(e){(t.pricesByBarcode[e.barcode]||[]).forEach(function(t){if(null!=t.price){(null==r[e.barcode]||t.price<r[e.barcode])&&(r[e.barcode]=t.price);var i=n[t.retailerId];i||(i=n[t.retailerId]={retailerId:t.retailerId,retailerName:t.retailerName,retailerSlug:t.retailerSlug,products:[],total:0,minDistance:1/0});var a=e.quantity||1;i.products.push({barcode:e.barcode,forBarcode:e.barcode,name:e.name,isAlternative:!1,quantity:a,price:t.price,lineTotal:t.price*a,isPromo:t.isPromo}),i.total+=t.price*a,null!=t.distanceMeters&&t.distanceMeters<i.minDistance&&(i.minDistance=t.distanceMeters)}})}
151),i.forEach(function(e){e.alternatives&&Object.keys(n).forEach(function(i){var r=n[i];if(!r.products.some(function(t){return t.forBarcode===e.barcode})){var a=e.alternatives[i];if(a&&a.barcode){var o=null;if((t.pricesByBarcode[a.barcode]||[]).forEach(function(e){null!=e.price&&String(e.retailerId)===String(i)&&(!o||e.price<o.price)&&(o=e)}),o){var s=e.quantity||1;r.products.push({barcode:a.barcode,forBarcode:e.barcode,name:a.name,originalName:e.name,isAlternative:!0,quantity:s,price:o.price,lineTotal:o.price*s,isPromo:o.isPromo}),r.total+=o.price*s,null!=o.distanceMeters&&o.distanceMeters<r.minDistance&&(r.minDistance=o.distanceMeters)}}}})});var a=[];if(Object.keys(n).forEach(function(e){var t=n[e];t.missing=i.filter(function(e){return!t.products.some(function(t){return t.forBarcode===e.barcode})}).map(function(e){return{barcode:e.barcode,name:e.name}}),t.missingCount=t.missing.length,t.products.forEach(function(e){e.isCheapest=!e.isAlternative&&e.price===r[e.barcode]}),t.altCount=t.products.filter(function(e){return e.isAlternative}).length,a.push(t)}),0===a.length)return a;if("nearest"===this.cartSortBy&&e.locationState.useGeolocation){var o=null;return a.forEach(function(e){(null===o||e.total<o)&&(o=e.total)}),a.forEach(function(e){e.sectionLabel=null,e.diff=e.total-o,e.isCheapest=e.total===o}),a.sort(function(e,t){return e.minDistance-t.minDistance}),a}var s=a.filter(function(e){return 0===e.missingCount&&0===e.altCount}).sort(function(e,t){return e.total-t.total}),l=a.filter(function(e){return e.missingCount>0||e.altCount>0}).sort(function(e,t){return t.products.length-e.products.length||e.total-t.total}),c=s.concat(l),d=c[0];return c.forEach(function(e){e.sectionLabel=null,e.isCheapest=e===d&&0===e.missingCount&&0===e.altCount,e.diff=0===e.missingCount&&0===e.altCount&&e.products.length===d.products.length?e.total-d.total:null}),l.length>0&&(0===s.length?c[0].sectionLabel="Niti jedna trgovina nema sve proizvode":l[0].sectionLabel="Ostale trgovine nemaju sve proizvode"),c},mounted(){var t=this;this.bootHandler=function(){t.fetchPrices()},this.locationHandler=function(){t.fetchPrices()},eventBus.on("cijene:location-changed",this.locationHandler),this.cartChangedHandler=function(){t.fetchMissingPrices()},eventBus.on("cijene:cart-changed",this.cartChangedHandler),e.ready?this.fetchPrices():(this.cartPricesLoading=!0,eventBus.on("cijene:boot",this.bootHandler))},unmounted(){eventBus.off("cijene:boot",this.bootHandler),eventBus.off("cijene:location-changed",this.locationHandler),eventBus.off("cijene:cart-changed",this.cartChangedHandler)},buildCartPricesPromise:(t,i)=>e.locationState.useGeolocation&&e.locationState.userLocation?cijeneApiService.getCartPricesByLocation(t,e.locationState.userLocation.lat,e.locationState.userLocation.lng,20,i):cijeneApiService.getCartPricesByCity(t,e.locationState.selectedCity||null,i),collectItemBarcodes:()=>e.cart.items.map(function(e){return e.barcode}),collectCartBarcodes(){var t=[];return e.cart.items.forEach(function(e){-1===t.indexOf(e.barcode)&&t.push(e.barcode),e.alternatives&&Object.keys(e.alternatives).forEach(function(i){var n=e.alternatives[i];n&&n.barcode&&-1===t.indexOf(n.barcode)&&t.push(n.barcode)})}),t},fetchPrices(){this.loadPrices(this.collectCartBarcodes(),!0,this.collectItemBarcodes())},fetchMissingPrices(){var t=this,i=this.collectCartBarcodes(),n=i.filter(function(e){return!t.pricesByBarcode[e]});0!==n.length&&(e.cart.items.some(function(e){return!t.pricesByBarcode[e.barcode]})?this.loadPrices(i,!1,this.collectItemBarcodes()):this.loadPrices(n,!1,null))},openCartAlternativesPopup(e,t){eventBus.emit("cijene:open-cart-alternatives",{barcode:e.barcode,name:e.name,retailerId:t.retailerId,retailerName:t.retailerName})},openCartAlternativesForProduct(e,t){this.openCartAlternativesPopup({barcode:e.forBarcode,name:e.originalName||e.name},t)},applySuggestedAlternatives(t){var i=!1,n={};t.forEach(function(e){n[e.barcode]=e}),e.cart.items.forEach(function(e){var t=n[e.barcode];t&&t.suggestedAlternatives&&Object.keys(t.suggestedAlternatives).forEach(function(n){if(!e.altChecked||!e.altChecked[n]){var r=t.suggestedAlternatives[n];r&&r.barcode&&(e.altChecked||(e.altChecked={}),e.altChecked[n]=!0,e.alternatives||(e.alternatives={}),e.alternatives[n]||(e.alternatives[n]={barcode:r.barcode,name:r.name,brand:r.brand||null,imagePath:r.imagePath||null,unit:r.unit||null}),i=!0)}})}
151),i&&this.persistCart()},removeCartAlternative(e,t){var i=this.findCartItem(e.forBarcode);i&&i.alternatives&&i.alternatives[t.retailerId]&&(delete i.alternatives[t.retailerId],0===Object.keys(i.alternatives).length&&delete i.alternatives,i.altChecked||(i.altChecked={}),i.altChecked[t.retailerId]=!0,this.persistCart())},loadPrices(t,i,n){var r=this;if(0===t.length)return this.pricesByBarcode={},void(this.cartPricesLoading=!1);this.cartPricesLoading=!0,this.cartPricesError=!1,i&&(this.expandedRetailers={}),this.buildCartPricesPromise(t,n).then(function(n){var a=i?{}:Object.assign({},r.pricesByBarcode);t.forEach(function(e){a[e]=[]}),(n.data||[]).forEach(function(e){-1!==t.indexOf(e.barcode)&&(a[e.barcode]=e.prices||[])});var o=cijeneRefLocation(e.locationState);Object.keys(a).forEach(function(e){a[e].forEach(function(e){cijeneApplyDistance(e,o)})}),r.pricesByBarcode=a,r.cartPricesLoading=!1,r.applySuggestedAlternatives(n.data||[])}).catch(function(e){console.error("Error fetching cart prices:",e),i&&(r.pricesByBarcode={}),r.cartPricesLoading=!1,r.cartPricesError=!0})},toggleRetailer(e){this.expandedRetailers[e]=!this.expandedRetailers[e]},isRetailerExpanded(e){return!0===this.expandedRetailers[e]},setCartSort(e){this.cartSortBy=e},availabilityLabel(t){var i=e.cart.items.length,n=t.altCount>0?t.altCount+" "+textService.CheckDeclension(t.altCount,"zamjena","zamjene","zamjena"):"";if(t.missingCount>0){var r=t.missingCount,a=textService.CheckDeclension(r,"Nedostaje","Nedostaju","Nedostaje")+" "+r+" "+textService.CheckDeclension(r,"proizvod","proizvoda","proizvoda");return n?a+" ("+n+")":a}return t.altCount>0?n:i+" od "+i+" proizvoda"},totalLabel:e=>e.isCheapest?"Najpovoljnije":null==e.diff?"":cijeneFormatPrice(e.diff)+"⬠skuplje"}}function Categories(e,t){return{$template:"#cijene-categories-template",list:t,activeCategory:null,categoryChildren:[],categoryChildrenLoading:!1,expandedCategories:{},get displayedCategories(){return this.list.items},mounted(){},unmounted(){this.activeCategory&&this.closeCategoryPopup()},openCategoryPopup(e){var t=this;this.countCategoryClick(e.id),e.hasChildren?(this.activeCategory=e,this.categoryChildren=[],this.categoryChildrenLoading=!0,this.expandedCategories={},$("body").addClass("overflow-hidden"),cijeneApiService.getCategoryDescendants(e.id).then(function(i){var n=i.data||[],r=n.filter(function(t){return t.parentCategoryId===e.id});r.forEach(function(e){e.children=n.filter(function(t){return t.parentCategoryId===e.id})}),t.categoryChildren=r,t.categoryChildrenLoading=!1}).catch(function(e){console.error("Error loading category children:",e),t.categoryChildren=[],t.categoryChildrenLoading=!1})):this.selectCategory(e)},closeCategoryPopup(){this.activeCategory=null,this.categoryChildren=[],this.expandedCategories={},$("body").removeClass("overflow-hidden")},onCategoryPopupMounted(){if(this.isMobile){var e=this,t=this.$refs.categoryPopupHolder;t&&swipeToCloseService.Attach({holder:t,scroller:function(){return t.querySelector(".category-popup__list")},onClose:function(){e.closeCategoryPopup()}})}},toggleCategory(e){this.expandedCategories[e]=!this.expandedCategories[e]},isCategoryExpanded(e){return!0===this.expandedCategories[e]},selectCategoryFromPopup(e){e&&(this.countCategoryClick(e.id),this.selectCategory(e))}}}function Category(e){var t=cijeneCreatePopularSlider();return{category:null,categoryLoading:!0,subcats:{items:[]},categoryProducts:[],categoryPopular:[],categoryProductsHasMore:!1,categoryProductsLoadMoreLoading:!1,bootHandler:null,locationHandler:null,silentHandler:null,get selectedCategory(){return this.category},get popular(){return this.categoryPopular.length>=5?this.categoryPopular:[]},mounted(){var t=this;this.bootHandler=function(){t.load()},this.locationHandler=function(){t.load()},eventBus.on("cijene:location-changed",this.locationHandler),this.silentHandler=function(){cijeneApplyCardDistances(t.categoryProducts,cijeneRefLocation(e.locationState)),cijeneApplyCardDistances(t.categoryPopular,cijeneRefLocation(e.locationState))},eventBus.on("cijene:silent-location",this.silentHandler),e.ready?this.load():eventBus.on("cijene:boot",this.bootHandler)},unmounted(){eventBus.off("cijene:boot",this.bootHandler),eventBus.off("cijene:location-changed",this.locationHandler),eventBus.off("cijene:silent-location",this.silentHandler),this.destroySlider()},destroySlider(){t.destroy()},pageCategoryId:()=>window.cijeneCategoryId||null,load(){var t=this,i=this.pageCategoryId();if(i){this.category={id:i,name:""};t.subcats.items=[],t.categoryProducts=[],t.categoryPopular=[],t.categoryProductsHasMore=!1,t.destroySlider(),t.categoryLoading=!0,Promise.all([cijeneApiService.getCategoriesByParent(i),t.getCategoryProductsPromise(0,20),t.getCategoryPopularPromise().catch(function(e){return console.error("Error fetching category popular products:",e),{data:[]}})]).then(function(i){var n=i[0].data||{};n.category&&(t.category={id:n.category.id,slug:n.category.slug,name:n.category.name,parent:n.parentCategory?{id:n.parentCategory.id,slug:n.parentCategory.slug,name:n.parentCategory.name}:null}),t.subcats.items=n.subcategories||[],t.applyCategoryProductsResponse(i[1],!1,20),t.categoryPopular=i[2].data||[],cijeneApplyCardDistances(t.categoryPopular,cijeneRefLocation(e.locationState)),t.categoryLoading=!1,t.initPopularSlider()}).catch(function(e){console.error("Error loading category view:",e),t.subcats.items=[],t.categoryProducts=[],t.categoryPopular=[],t.categoryProductsHasMore=!1,t.categoryLoading=!1})}},getCategoryPopularPromise(){var t=this.category.id;if(e.locationState.useGeolocation&&e.locationState.userLocation){return cijeneApiService.getPopularProductsByLocation(e.locationState.userLocation.lat,e.locationState.userLocation.lng,20,t)}return cijeneApiService.getPopularProductsByCity(e.locationState.selectedCity||null,t)},initPopularSlider(){t.init(this,this.popular)}
151,getCategoryProductsPromise(t,i){var n=this.category.id;if(e.locationState.useGeolocation&&e.locationState.userLocation){return cijeneApiService.getCategoryTopPriceDiffsByLocation(n,e.locationState.userLocation.lat,e.locationState.userLocation.lng,20,t,i)}return cijeneApiService.getCategoryTopPriceDiffsByCity(n,e.locationState.selectedCity||null,t,i)},fetchCategoryProductsItems(e){var t=this;if((!e||!t.categoryProductsLoadMoreLoading)&&t.category){e&&(t.categoryProductsLoadMoreLoading=!0);var i=e?t.categoryProducts.length:0;t.getCategoryProductsPromise(i,20).then(function(i){t.applyCategoryProductsResponse(i,e,20),t.categoryProductsLoadMoreLoading=!1}).catch(function(i){console.error("Error fetching category products:",i),t.categoryProductsLoadMoreLoading=!1,t.categoryProductsHasMore=!1,e||(t.categoryProducts=[])})}},applyCategoryProductsResponse(t,i,n){var r=t.data;r&&r.length>0?this.categoryProducts=i?this.categoryProducts.concat(r):r:i||(this.categoryProducts=[]),cijeneApplyCardDistances(this.categoryProducts,cijeneRefLocation(e.locationState)),this.categoryProductsHasMore=(r||[]).length===n}}}function FavoritesAdd(e){return{$template:"#cijene-favorites-add-template",addVisible:!1,addQuery:"",addResults:[],addLoading:!1,addDebounceTimer:null,openHandler:null,get addItems(){return this.addQuery.trim().length>=2?this.addResults:e.popular.items},mounted(){var e=this;this.openHandler=function(){e.openFavoritesAdd()},eventBus.on("cijene:open-favorites-add",this.openHandler)},unmounted(){eventBus.off("cijene:open-favorites-add",this.openHandler),clearTimeout(this.addDebounceTimer),this.addVisible&&this.closeFavoritesAdd()},openFavoritesAdd(){var t=this;this.addVisible=!0,this.addQuery="",this.addResults=[],this.addLoading=!1,$("body").addClass("overflow-hidden"),0===e.popular.items.length&&this.loadPopular(),this.isMobile||this.$nextTick(function(){t.$refs.favoritesAddInput&&t.$refs.favoritesAddInput.focus()})},closeFavoritesAdd(){clearTimeout(this.addDebounceTimer),this.addVisible=!1,this.addQuery="",this.addResults=[],this.addLoading=!1,$("body").removeClass("overflow-hidden")},onFavoritesAddMounted(){if(this.isMobile){var e=this,t=this.$refs.favoritesAddHolder;t&&swipeToCloseService.Attach({holder:t,scroller:function(){return t.querySelector(".products-popup__list")},onClose:function(){e.closeFavoritesAdd()}})}},onFavoritesAddInput(){var e=this,t=this.addQuery.trim();if(clearTimeout(this.addDebounceTimer),t.length<2)return this.addResults=[],void(this.addLoading=!1);this.addLoading=!0,this.addDebounceTimer=setTimeout(function(){cijeneApiService.getProducts(t,25).then(function(i){e.addQuery.trim()===t&&(e.addResults=i.data&&i.data.products||[],e.addLoading=!1)}).catch(function(i){console.error("Favorites add search error:",i),e.addQuery.trim()===t&&(e.addResults=[],e.addLoading=!1)})},300)},clearFavoritesAddQuery(){clearTimeout(this.addDebounceTimer),this.addQuery="",this.addResults=[],this.addLoading=!1,this.$refs.favoritesAddInput&&this.$refs.favoritesAddInput.focus()},selectFavoritesAddItem(e){this.userInfo&&this.userInfo.IsLoggedIn?(e.isFavorite||this.toggleFavorite(e),this.closeFavoritesAdd()):globalDirectives.ShowLoginPopup()},highlightFavoritesAddMatch(e){if(!e)return"";var t=this.addQuery.trim();if(t.length<2)return cijeneEscapeHtml(e);var i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp("("+i+")","gi");return cijeneEscapeHtml(e).replace(n,"<strong>$1</strong>")}}}function Favorites(e){return{favoritesFilter:"all",bootHandler:null,locationHandler:null,silentHandler:null,get filteredFavorites(){return this.favoritesFor(this.favoritesFilter)},mounted(){var t=this;this.bootHandler=function(){t.load()},this.locationHandler=function(){t.fetchFavorites()},eventBus.on("cijene:location-changed",this.locationHandler),this.silentHandler=function(){cijeneApplyCardDistances(e.favorites.items,cijeneRefLocation(e.locationState))},eventBus.on("cijene:silent-location",this.silentHandler),e.ready?this.load():(e.favorites.loading=!0,eventBus.on("cijene:boot",this.bootHandler))},unmounted(){eventBus.off("cijene:boot",this.bootHandler),eventBus.off("cijene:location-changed",this.locationHandler),eventBus.off("cijene:silent-location",this.silentHandler)},load(){this.favoritesFilter="all",this.fetchFavorites()},fetchFavorites(){if(this.dismissAllFavoriteToasts(),!this.userInfo||!this.userInfo.IsLoggedIn)return e.favorites.items=[],void(e.favorites.loading=!1);e.favorites.loading=!0,this.getFavoritesPromise().then(function(t){e.favorites.items=t.data||[],cijeneApplyCardDistances(e.favorites.items,cijeneRefLocation(e.locationState)),e.favorites.loading=!1}
151).catch(function(t){console.error("Error fetching favorites:",t),e.favorites.items=[],e.favorites.loading=!1})},favoritesFor:t=>"cheaper"===t?e.favorites.items.filter(function(e){return e.price&&null!=e.price.diffPercent&&e.price.diffPercent<0}):"pricier"===t?e.favorites.items.filter(function(e){return e.price&&null!=e.price.diffPercent&&e.price.diffPercent>0}):"unavailable"===t?e.favorites.items.filter(function(e){return!e.price}):e.favorites.items,setFavoritesFilter(e){this.favoritesFilter=e}}}var cijeneMajorCities=["Zagreb","Split","Rijeka","Osijek","Zadar","Velika Gorica","Pula","Slavonski Brod","Karlovac"],cijeneRegions=["Slavonija","Zagorje","Dalmacija","Istra","Gorski kotar","Lika"],cijeneRegionPrefix="regija:";function cijeneRegionValue(e){return cijeneRegionPrefix+e}function cijeneIsRegionValue(e){return"string"==typeof e&&0===e.indexOf(cijeneRegionPrefix)}function cijeneFilterRegions(e){var t=(e||"").trim().toLowerCase();return t?cijeneRegions.filter(function(e){return-1!==e.toLowerCase().indexOf(t)}):[]}function cijeneLocationLabel(e){return e?"hrvatska"===e?"Cijela Hrvatska":cijeneIsRegionValue(e)?e.slice(cijeneRegionPrefix.length):e:"Odaberite grad"}function cijeneFormatPrice(e){return e||0===e?e.toFixed(2).replace(".",","):"-"}function cijeneDistanceMeters(e,t,i,n){function r(e){return e*Math.PI/180}var a=r(i-e),o=r(n-t),s=Math.sin(a/2)*Math.sin(a/2)+Math.cos(r(e))*Math.cos(r(i))*Math.sin(o/2)*Math.sin(o/2);return Math.round(12742e3*Math.atan2(Math.sqrt(s),Math.sqrt(1-s)))}function cijeneFormatDistance(e){return null==e?null:e<500?e+" m":(e/1e3).toFixed(2)+" km"}function cijeneRefLocation(e){return e.useGeolocation&&e.userLocation?e.userLocation:e.silentLocation||null}function cijeneApplyDistance(e,t){t&&e&&null!=e.latitude&&null!=e.longitude&&(e.distanceMeters=cijeneDistanceMeters(t.lat,t.lng,e.latitude,e.longitude),e.formattedDistance=cijeneFormatDistance(e.distanceMeters))}function cijeneApplyStoreDistances(e,t){t&&e&&0!==e.length&&(e.forEach(function(e){cijeneApplyDistance(e,t)}),e.sort(function(e,t){return(null==e.distanceMeters?1/0:e.distanceMeters)-(null==t.distanceMeters?1/0:t.distanceMeters)}))}function cijeneApplyCardDistances(e,t){e&&e.forEach(function(e){if(e.price&&e.price.bestRetailers){var i=null;e.price.bestRetailers.forEach(function(e){cijeneApplyDistance(e,t),null!=e.distanceMeters&&
151(null===i||e.distanceMeters<i.distanceMeters)&&(i=e)}),e.price.nearestRetailer=i}})}function cijeneApplyItemDistances(e,t){e&&e.forEach(function(e){cijeneApplyDistance(e,t)})}function cijeneFetchSilentLocation(e){navigator.permissions&&navigator.permissions.query&&navigator.geolocation&&navigator.permissions.query({name:"geolocation"}).then(function(t){"granted"===t.state&&navigator.geolocation.getCurrentPosition(function(t){e({lat:t.coords.latitude,lng:t.coords.longitude})},function(){},{timeout:1e4,maximumAge:3e5})}).catch(function(){})}function cijeneGetLocation(){var e=null;try{e=localStorage.getItem("cijene_location")}catch(e){}if(e)return e;var t=cookieService.GetCookie("cijene_location");if(t){try{localStorage.setItem("cijene_location",t),cookieService.DeleteCookie("cijene_location")}catch(e){}return t}return""}function cijeneSetLocation(e){try{localStorage.setItem("cijene_location",e)}catch(e){}}function cijeneCartGet(){try{var e=localStorage.getItem("cijene_cart"),t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]}catch(e){return[]}}function cijeneCartSet(e){try{localStorage.setItem("cijene_cart",JSON.stringify(e))}catch(e){}}function cijeneEscapeHtml(e){if(!e)return"";var t=document.createElement("div");return t.textContent=e,t.innerHTML}function Header(e){return{autocompleteProducts:[],autocompleteRetailers:[],autocompleteCategories:[],autocompleteVisible:!1,autocompleteLoading:!1,autocompleteSelectedIndex:-1,cityDropdownVisible:!1,citySearchQuery:"",debounceTimer:null,get searchQuery(){return e.search.query},set searchQuery(t){e.search.query=t},get autocompleteItems(){return this.autocompleteCategories.concat(this.autocompleteRetailers).concat(this.autocompleteProducts)},get filteredCities(){var t=this.citySearchQuery.trim().toLowerCase();return t?e.locationState.cities.filter(function(e){return-1!==e.toLowerCase().indexOf(t)}):e.locationState.cities},get majorCities(){return cijeneMajorCities.filter(function(t){return-1!==e.locationState.cities.indexOf(t)})},get regions(){return cijeneRegions},get filteredRegions(){return cijeneFilterRegions(this.citySearchQuery)},mounted(){this.bindDocumentClick()},bindDocumentClick(){var e=this;document.addEventListener("click",function(t){var i=document.querySelector(".search");i&&!i.contains(t.target)&&(e.autocompleteVisible=!1);var n=document.querySelector(".city-selector");n&&!n.contains(t.target)&&(e.cityDropdownVisible=!1)})},closeAutocomplete(){clearTimeout(this.debounceTimer),this.autocompleteVisible=!1,this.autocompleteProducts=[],this.autocompleteRetailers=[],this.autocompleteCategories=[],this.autocompleteSelectedIndex=-1},onSearchInput(){var t=this,i=e.search.query.trim();if(clearTimeout(this.debounceTimer),i.length<2){if(this.autocompleteRetailers=[],this.autocompleteCategories=[],0===i.length&&this.showPopularSuggestions())return;return this.autocompleteVisible=!1,void(this.autocompleteProducts=[])}this.debounceTimer=setTimeout(function(){t.autocompleteLoading=!0,t.autocompleteVisible=!0,t.autocompleteSelectedIndex=-1,cijeneApiService.getProducts(i,10).then(function(e){t.autocompleteLoading=!1;var i=e.data||{};t.autocompleteProducts=i.products||[],t.autocompleteRetailers=i.retailers||[],t.autocompleteCategories=i.categories||[]}).catch(function(e){console.error("Autocomplete error:",e),t.autocompleteLoading=!1,t.autocompleteProducts=[],t.autocompleteRetailers=[],t.autocompleteCategories=[]})},300)},onSearchKeydown(e){var t=this.autocompleteItems,i=t.length;"ArrowDown"===e.key?(e.preventDefault(),this.autocompleteSelectedIndex<i&&this.autocompleteSelectedIndex++):"ArrowUp"===e.key?(e.preventDefault(),this.autocompleteSelectedIndex>0&&this.autocompleteSelectedIndex--):"Enter"===e.key?(e.preventDefault(),this.autocompleteSelectedIndex>0&&t[this.autocompleteSelectedIndex-1]?this.selectFromAutocomplete(t[this.autocompleteSelectedIndex-1]):this.performSearch()):"Escape"===e.key&&(this.autocompleteVisible=!1)},onSearchFocus(){e.search.query.trim().length>=2?this.autocompleteItems.length>0&&(this.autocompleteVisible=!0):this.showPopularSuggestions()},showPopularSuggestions(){var t=this;return e.popular.items.length>0?(t.openPopularDropdown(),!0):(t.loadPopular().then(function(){e.popular.items.length>0&&0===e.search.query.trim().length&&t.$refs.searchInput===document.activeElement&&t.openPopularDropdown()}),!1)},openPopularDropdown(){clearTimeout(this.debounceTimer),this.autocompleteLoading=!1,this.autocompleteCategories=[],this.autocompleteRetailers=[],this.autocompleteProducts=e.popular.items.slice(0,8),this.autocompleteSelectedIndex=-1,this.autocompleteVisible=!0},selectFromAutocomplete(e){if(e)return e.barcode?(cijeneApiService.countUpProductSearch(e.barcode),this.closeAutocomplete(),void this.selectItem(e.barcode)):e.id?(this.closeAutocomplete(),this.countCategoryClick(e.id),void this.selectCategory(e)):void(void 0!==e.slug&&(this.searchQuery=e.name,this.closeAutocomplete(),this.selectRetailer(e.slug)))},performSearch(){this.closeAutocomplete(),this.navigateToSearch()},navigateToSearch(){var t=(e.search.query||"").trim();t.length<2||(window.location.href=this.cijeneUrl("/pretraga")+"?upit="+encodeURIComponent(t))},clearSelection(){e.product.item||this.isSearchPath()?window.location.href=this.cijeneUrl(""):e.search.query=""},highlightMatch(t){if(!t)return"";var i=e.search.query.trim();if(!i)return cijeneEscapeHtml(t);var n=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp("("+n+")","gi");return cijeneEscapeHtml(t).replace(r,"<strong>$1</strong>")},capitalizeFirst:e=>e?e.charAt(0).toUpperCase()+e.slice(1):e,toggleCityDropdown(){if(this.cityDropdownVisible=!this.cityDropdownVisible,this.cityDropdownVisible){this.citySearchQuery="";var e=this;this.$nextTick(function(){e.$refs.citySearchInput&&e.$refs.citySearchInput.focus()})}},selectCity(t){e.locationState.selectedCity=t,this.cityDropdownVisible=!1,this.citySearchQuery="",this.onCityChange()},selectRegion(e){this.selectCity(cijeneRegionValue(e))},isRegionSelected:t=>e.locationState.selectedCity===cijeneRegionValue(t)}}function CijeneHomeSection(){return{useGeolocation:"geolocation"===cijeneGetLocation(),userLocation:null,geolocationLoading:!1,selectedCity:(e=cijeneGetLocation(),e&&"geolocation"!==e?e:""),cities:[],cityDropdownVisible:!1,
151citySearchQuery:"",topDiscounts:[],popular:[],popularSlider:null,loading:!1,isMobile:!1,locationStatus:{message:"",type:""},TAKE:3,RADIUS:20,get filteredCities(){var e=this.citySearchQuery.trim().toLowerCase();return e?this.cities.filter(function(t){return-1!==t.toLowerCase().indexOf(e)}):this.cities},get majorCities(){var e=this;return cijeneMajorCities.filter(function(t){return-1!==e.cities.indexOf(t)})},get regions(){return cijeneRegions},get filteredRegions(){return cijeneFilterRegions(this.citySearchQuery)},get locationLabel(){return cijeneLocationLabel(this.selectedCity)},onLoadDesktop(){this.isMobile=!1,this.onLoad()},onLoadMobile(){this.isMobile=!0,this.onLoad()},onLoad(){this.bindDocumentClick(),this.observeLoad()},observeLoad(){var e=this,t=document.getElementById("cijene-home-box");if(t&&"IntersectionObserver"in window){var i=new IntersectionObserver(function(t){t[0].isIntersecting&&(i.disconnect(),e.loadData())},{rootMargin:"0px 0px 100% 0px"});i.observe(t)}else e.loadData()},loadData(){var e=this;this.loadCities(function(){"geolocation"===cijeneGetLocation()?e.onGeolocationClick():e.fetchHomeData()})},loadCities(e){var t=this;cijeneApiService.getCities().then(function(i){t.cities=i.data||[],t.useGeolocation||"hrvatska"===t.selectedCity||cijeneIsRegionValue(t.selectedCity)||t.selectedCity&&-1!==t.cities.indexOf(t.selectedCity)||(t.selectedCity="Zagreb"),e&&e()}).catch(function(t){console.error("Error loading cities:",t),e&&e()})},getTopDiscountsPromise(){return this.useGeolocation&&this.userLocation?cijeneApiService.getTopPriceDiffsByLocation(this.userLocation.lat,this.userLocation.lng,this.RADIUS,0,this.TAKE):cijeneApiService.getTopPriceDiffsByCity(this.selectedCity||null,0,this.TAKE)},getPopularPromise(){return this.useGeolocation&&this.userLocation?cijeneApiService.getPopularProductsByLocation(this.userLocation.lat,this.userLocation.lng,this.RADIUS):cijeneApiService.getPopularProductsByCity(this.selectedCity||null)},fetchHomeData(){var e=this;e.popularSlider&&(e.popularSlider.destroy(!0,!0),e.popularSlider=null),e.loading=!0,Promise.all([e.getPopularPromise(),e.getTopDiscountsPromise()]).then(function(t){e.popular=t[0].data||[],e.topDiscounts=t[1].data||[],e.loading=!1,e.initPopularSlider()}).catch(function(t){console.error("Error fetching cijene home data:",t),e.popular=[],e.topDiscounts=[],e.loading=!1})},initPopularSlider(){var e=this;e.popular.length&&e.$nextTick(function(){if(e.$refs.popularSlider){var t=e.$refs.popularSlider;if(e.isMobile)e.popularSlider=new Swiper(t,{slidesPerView:"auto",touchEventsTarget:"container",spaceBetween:20,slidesOffsetBefore:16,slidesOffsetAfter:16});else{var i=t.parentElement,n=i.querySelector(".slider-prev"),r=i.querySelector(".slider-next");if(e.popularSlider=new Swiper(t,{slidesPerView:"auto",touchEventsTarget:"container",spaceBetween:20,slidesOffsetBefore:20,slidesOffsetAfter:20,navigation:{nextEl:r,prevEl:n}}),n&&r){var a=i.getBoundingClientRect(),o=a.width/2;i.addEventListener("mousemove",function(e){e.clientX-a.left<o?(n.classList.add("visible"),r.classList.remove("visible")):(n.classList.remove("visible"),r.classList.add("visible"))}),i.addEventListener("mouseleave",function(){n.classList.remove("visible"),r.classList.remove("visible")})}}}})},bindDocumentClick(){var e=this;document.addEventListener("click",function(t){var i=document.querySelector(".cube-holder-cijene .city-selector");i&&!i.contains(t.target)&&(e.cityDropdownVisible=!1)})},toggleCityDropdown(){if(this.cityDropdownVisible=!this.cityDropdownVisible,this.cityDropdownVisible){this.citySearchQuery="";var e=this;this.$nextTick(function(){e.$refs.citySearchInput&&e.$refs.citySearchInput.focus()})}},selectCity(e){this.selectedCity=e,this.cityDropdownVisible=!1,this.citySearchQuery="",this.useGeolocation=!1,this.userLocation=null,this.locationStatus={message:"",type:""},cijeneSetLocation(e),this.fetchHomeData()},selectRegion(e){this.selectCity(cijeneRegionValue(e))},isRegionSelected(e){return this.selectedCity===cijeneRegionValue(e)},onGeolocationClick(){var e=this;navigator.geolocation?(this.geolocationLoading=!0,navigator.geolocation.getCurrentPosition(function(t){e.userLocation={lat:t.coords.latitude,lng:t.coords.longitude},e.useGeolocation=!0,e.selectedCity="",e.geolocationLoading=!1,e.locationStatus={message:"",type:""},cijeneSetLocation("geolocation"),e.fetchHomeData()},function(t){e.geolocationLoading=!1;var i="GreÅ¡ka pri dohvaÄanju lokacije";switch(t.code){case t.PERMISSION_DENIED:i="Pristup lokaciji je odbijen";break;case t.POSITION_UNAVAILABLE:i="Lokacija nije dostupna";break;case t.TIMEOUT:i="Isteklo vrijeme za dohvaÄanje lokacije"}e.locationStatus={message:i,type:"error"}},{enableHighAccuracy:!0,timeout:1e4,maximumAge:0})):this.locationStatus={message:"Geolokacija nije podržana u vaÅ¡em pregledniku",type:"error"}},goToProduct(e){e&&e.barcode&&(window.location.href="/cijene/proizvod/"+encodeURIComponent(e.barcode))},goToCategory(e){e&&e.slug&&(window.location.href="/cijene/kategorija/"+encodeURIComponent(e.slug))},goToRetailer(e){e&&(window.location.href="/cijene/trgovac/"+encodeURIComponent(e))}};var e}function Home(e){var t=cijeneCreatePopularSlider();return{homeLoading:!1,topDiscounts:[],topDiscountsHasMore:!1,loadMoreLoading:!1,bootHandler:null,locationHandler:null,silentHandler:null,mounted(){var t=this;this.bootHandler=function(){t.fetchHomeData()},this.locationHandler=function(){t.fetchHomeData()},eventBus.on("cijene:location-changed",this.locationHandler),this.silentHandler=function(){cijeneApplyItemDistances(t.topDiscounts,cijeneRefLocation(e.locationState))},eventBus.on("cijene:silent-location",this.silentHandler),e.ready?this.fetchHomeData():eventBus.on("cijene:boot",this.bootHandler)},unmounted(){eventBus.off("cijene:boot",this.bootHandler),eventBus.off("cijene:location-changed",this.locationHandler),eventBus.off("cijene:silent-location",this.silentHandler),this.destroySlider()},destroySlider(){t.destroy()},fetchHomeData(){var t=this;t.homeLoading=!0;var i=0===e.categories.items.length,n=[t.getTopDiscountsPromise(0,20)];i&&n.push(cijeneApiService.getCategoriesHome());var r=Promise.all(n).then(function(n){t.applyTopDiscountsResponse(n[0],!1,20),i&&(e.categories.items=n[1].data||[])}).catch(function(e){console.error("Error fetching home data:",e),t.topDiscounts=[]});t.destroySlider(),Promise.all([r,t.loadPopular()]).then(function(){t.homeLoading=!1,t.initPopularSlider()})}
151,getTopDiscountsPromise(t,i){if(e.locationState.useGeolocation&&e.locationState.userLocation){return cijeneApiService.getTopPriceDiffsByLocation(e.locationState.userLocation.lat,e.locationState.userLocation.lng,20,t,i)}return cijeneApiService.getTopPriceDiffsByCity(e.locationState.selectedCity||null,t,i)},applyTopDiscountsResponse(t,i,n){var r=t.data;r&&r.length>0?this.topDiscounts=i?this.topDiscounts.concat(r):r:i||(this.topDiscounts=[]),cijeneApplyItemDistances(this.topDiscounts,cijeneRefLocation(e.locationState)),this.topDiscountsHasMore=(r||[]).length===n},fetchTopDiscountItems(e){var t=this;if(!t.loadMoreLoading){t.loadMoreLoading=!0;var i=e?t.topDiscounts.length:0;t.getTopDiscountsPromise(i,20).then(function(i){t.applyTopDiscountsResponse(i,e,20),t.loadMoreLoading=!1}).catch(function(i){console.error("Error fetching top items:",i),t.loadMoreLoading=!1,t.topDiscountsHasMore=!1,e||(t.topDiscounts=[])})}},initPopularSlider(){t.init(this,e.popular.items)}}}function CijeneMain(){var e,t=null;return{shared:{ready:!1,product:{item:null},locationState:{selectedCity:(e=cijeneGetLocation(),e&&"geolocation"!==e?e:""),useGeolocation:"geolocation"===cijeneGetLocation(),userLocation:null,silentLocation:null,geolocationLoading:!1,locationStatus:{message:"",type:""},cities:[]},search:{query:"",loading:!1},popular:{items:[]},categories:{items:[]},favorites:{items:[],loading:!1,count:0},cart:{items:cijeneCartGet()},toasts:{items:[],nextId:0}},userInfo:accountService.GetUserInfo(),isMobile:!1,TOAST_MS:6e3,TOAST_MAX:3,get selectedItem(){return this.shared.product.item},get searchResultsLoading(){return this.shared.search.loading},get selectedCity(){return this.shared.locationState.selectedCity},get locationLabel(){return cijeneLocationLabel(this.selectedCity)},get useGeolocation(){return this.shared.locationState.useGeolocation},get userLocation(){return this.shared.locationState.userLocation},get geolocationLoading(){return this.shared.locationState.geolocationLoading},get locationStatus(){return this.shared.locationState.locationStatus},get cities(){return this.shared.locationState.cities},get popular(){return this.shared.popular.items},get favorites(){return this.shared.favorites.items},get favoritesLoading(){return this.shared.favorites.loading},get favoritesCount(){return this.shared.favorites.count},get cartItems(){return this.shared.cart.items},get cartCount(){return this.shared.cart.items.length},get toasts(){return this.shared.toasts.items},onLoadDesktop(){(t=this).isMobile=!1,t.onLoad()},onLoadMobile(){(t=this).isMobile=!0,t.onLoad()},onLoad(){var e=t;if(this.isSearchPath()){var i=new URLSearchParams(window.location.search).get("upit");i&&(this.shared.search.query=i.trim())}this.loadFavoritesCount(),cijeneFetchSilentLocation(function(t){e.shared.locationState.silentLocation=t,cijeneApplyCardDistances(e.shared.popular.items,cijeneRefLocation(e.shared.locationState)),cijeneApplyCardDistances(e.shared.favorites.items,cijeneRefLocation(e.shared.locationState)),eventBus.emit("cijene:silent-location")}),this.loadCities(function(){"geolocation"===cijeneGetLocation()?e.onGeolocationClick():e.boot(!0)})},boot(e){var i=t;i.shared.ready||(i.shared.ready=!0,e&&!i.isHomePath()&&i.loadPopular(),eventBus.emit("cijene:boot"))},loadCities(e){var i=t;cijeneApiService.getCities().then(function(t){t.data&&(i.shared.locationState.cities=t.data,i.useGeolocation||"hrvatska"===i.selectedCity||cijeneIsRegionValue(i.selectedCity)||i.selectedCity&&-1!==i.cities.indexOf(i.selectedCity)||(i.shared.locationState.selectedCity="Zagreb")),e&&e()}).catch(function(t){console.error("Error loading cities:",t),e&&e()})},getPopularPromise(){if(this.useGeolocation&&this.userLocation){return cijeneApiService.getPopularProductsByLocation(this.userLocation.lat,this.userLocation.lng,20)}return cijeneApiService.getPopularProductsByCity(this.selectedCity||null)},loadPopular(){var e=t;return e.getPopularPromise().then(function(t){return e.shared.popular.items=t.data||[],cijeneApplyCardDistances(e.shared.popular.items,cijeneRefLocation(e.shared.locationState)),e.popular}).catch(function(t){return console.error("Error fetching popular products:",t),e.shared.popular.items=[],e.popular})},cijeneUrl:e=>(/^\/mobile(\/|$)/i.test(window.location.pathname)?"/mobile":"")+"/cije
151ne"+(e||""),isHomePath:()=>/\/cijene\/?$/i.test(window.location.pathname),isSearchPath:()=>/\/cijene\/pretraga\/?$/i.test(window.location.pathname),isFavoritesPath:()=>/\/cijene\/favoriti\/?$/i.test(window.location.pathname),isCartPath:()=>/\/cijene\/kosarica\/?$/i.test(window.location.pathname),selectItem(e){e&&(window.location.href=t.cijeneUrl("/proizvod/"+encodeURIComponent(e)))},selectRetailer(e){e&&(window.location.href=t.cijeneUrl("/trgovac/"+encodeURIComponent(e)))},selectCategory(e){e&&e.slug&&(window.location.href=t.cijeneUrl("/kategorija/"+encodeURIComponent(e.slug)))},selectCategoryFromPopup(e){e&&(this.countCategoryClick(e.id),this.selectCategory(e))},countCategoryClick(e){e&&cijeneApiService.countUpCategoryClick(e)},loadFavoritesCount(){var e=t;this.userInfo&&this.userInfo.IsLoggedIn&&cijeneApiService.getFavoritesCount().then(function(t){e.shared.favorites.count=t.data&&t.data.count||0}).catch(function(e){console.error("Error loading favorites count:",e)})},adjustFavoritesCount(e){this.shared.favorites.count=Math.max(0,this.shared.favorites.count+e)},getFavoritesPromise(){if(this.useGeolocation&&this.userLocation){return cijeneApiService.getFavoriteProductsByLocation(this.userLocation.lat,this.userLocation.lng,20)}return cijeneApiService.getFavoriteProductsByCity(this.selectedCity||null)},openFavoritesAddPopup(){eventBus.emit("cijene:open-favorites-add")},openCartAddPopup(){eventBus.emit("cijene:open-cart-add")},cartBarcode:e=>e&&(e.barcode||e.productBarcode)||null,findCartItem(e){if(!e)return null;for(var t=0;t<this.shared.cart.items.length;t++)if(this.shared.cart.items[t].barcode===e)return this.shared.cart.items[t];return null},persistCart(){cijeneCartSet(this.shared.cart.items),eventBus.emit("cijene:cart-changed")},addToCart(e){var t=this.cartBarcode(e);if(t){var i=this.findCartItem(t),n=i?i.quantity:0;i?i.quantity++:(i={barcode:t,name:e.name||e.productName,brand:e.brand||e.productBrand||null,imagePath:e.imagePath||e.productImagePath||null,unit:e.unit||e.productUnit||null,quantity:1},this.shared.cart.items.push(i),cijeneApiService.countUpProductCart(t)),this.persistCart(),this.dismissCartToastFor(t,"cart-remove"),this.showCartToast(i,n)}},pushToast(e){var i=t;for(this.shared.toasts.nextId++,e.id=this.shared.toasts.nextId,e.timer=setTimeout(function(){i.dismissToast(e.id)},this.TOAST_MS),this.toasts.push(e);this.toasts.length>this.TOAST_MAX;)this.dismissToast(this.toasts[0].id)},dismissToast(e){for(var t=0;t<this.toasts.length;t++)if(this.toasts[t].id===e){var i=this.toasts[t];return clearTimeout(i.timer),this.toasts.splice(t,1),i}return null},showCartToast(e,i){for(var n=t,r=0;r<this.toasts.length;r++){var a=this.toasts[r];if("cart"===a.type&&a.barcode===e.barcode)return a.quantity=e.quantity,clearTimeout(a.timer),void(a.timer=setTimeout(function(){n.dismissToast(a.id)},this.TOAST_MS))}this.pushToast({type:"cart",barcode:e.barcode,name:e.name,quantity:e.quantity,prevQuantity:i||0,timer:null})},dismissCartToastFor(e,t){for(var i=this.toasts.length-1;i>=0;i--)this.toasts[i].type===t&&this.toasts[i].barcode===e&&this.dismissToast(this.toasts[i].id)},undoAddToCart(e){var t=this.dismissToast(e);if(t){var i=this.findCartItem(t.barcode);i&&(t.prevQuantity>0?i.quantity=t.prevQuantity:this.shared.cart.items.splice(this.shared.cart.items.indexOf(i),1),this.persistCart())}},goToCart(){window.location.href=t.cijeneUrl("/kosarica")},goToFavorites(){window.location.href=t.cijeneUrl("/favoriti")},removeFromCart(e){var t=this.findCartItem(e);if(t){var i=this.shared.cart.items.indexOf(t);this.shared.cart.items.splice(i,1),this.persistCart(),this.dismissCartToastFor(e,"cart"),this.pushToast({type:"cart-remove",barcode:e,item:t,index:i,name:t.name,timer:null})}},undoRemoveFromCart(e){var t=this.dismissToast(e);t&&t.item&&(this.findCartItem(t.item.barcode)||this.shared.cart.items.splice(Math.min(t.index,this.shared.cart.items.length),0,t.item),this.persistCart())},clearCart(){if(0!==this.shared.cart.items.length){var e=this.shared.cart.items.slice();this.shared.cart.items.splice(0,this.shared.cart.items.length),this.persist
151Cart(),this.pushToast({type:"cart-clear",items:e,name:"",timer:null})}},undoClearCart(e){var i=t,n=this.dismissToast(e);n&&n.items&&(n.items.forEach(function(e){i.findCartItem(e.barcode)||i.shared.cart.items.push(e)}),this.persistCart())},toastLabel:e=>"cart"===e.type?"Dodano u koÅ¡aricu:":"cart-clear"===e.type?"KoÅ¡arica je ispražnjena":"cart-remove"===e.type?"Uklonjeno iz koÅ¡arice:":"favorite-add"===e.type?"Dodano u favorite:":"Uklonjeno iz favorita:",changeCartQuantity(e,t){var i=this.findCartItem(e);if(i){var n=(i.quantity||1)+t;n<1||(i.quantity=Math.min(n,99),this.persistCart())}},onCityChange(){this.shared.locationState.useGeolocation=!1,this.shared.locationState.userLocation=null,this.shared.locationState.locationStatus={message:"",type:""},cijeneSetLocation(this.selectedCity),eventBus.emit("cijene:location-changed",{reason:"city"})},onGeolocationClick(){var e=t;navigator.geolocation?(this.shared.locationState.geolocationLoading=!0,this.shared.locationState.locationStatus={message:"DohvaÄam lokaciju...",type:""},navigator.geolocation.getCurrentPosition(function(t){e.shared.locationState.userLocation={lat:t.coords.latitude,lng:t.coords.longitude},e.shared.locationState.useGeolocation=!0,e.shared.locationState.selectedCity="",e.shared.locationState.geolocationLoading=!1,e.shared.locationState.locationStatus={message:"Lokacija dohvaÄena",type:"success"},setTimeout(function(){e.shared.locationState.locationStatus={message:"",type:""}},5e3),cijeneSetLocation("geolocation"),e.shared.ready?eventBus.emit("cijene:location-changed",{reason:"geolocation"}):e.boot(!1)},function(t){e.shared.locationState.geolocationLoading=!1;var i="GreÅ¡ka pri dohvaÄanju lokacije";switch(t.code){case t.PERMISSION_DENIED:i="Pristup lokaciji je odbijen";break;case t.POSITION_UNAVAILABLE:i="Lokacija nije dostupna";break;case t.TIMEOUT:i="Isteklo vrijeme za dohvaÄanje lokacije"}e.shared.locationState.locationStatus={message:i,type:"error"},e.boot(!1)},{enableHighAccuracy:!0,timeout:1e4,maximumAge:0})):this.shared.locationState.locationStatus={message:"Geolokacija nije podržana u vaÅ¡em pregledniku",type:"error"}},toggleFavorite(e){var i=t;if(e){var n=e.barcode||e.productBarcode;if(n){var r=e.isFavorite;if(r&&t.isFavoritesPath()){var a=this.favoriteCardFor(n);if(a){var o=a===e?null:e;return o&&(o.isFavorite=!1),void this.removeFavoriteWithUndo(a,n,o)}}e.isFavorite=!r,this.adjustFavoritesCount(r?-1:1),this.dismissFavoriteToastFor(n),r?this.showFavoriteToast(e,n,this.favorites.length,null):this.pushToast({type:"favorite-add",item:e,barcode:n,name:e.name||e.productName,timer:null}),(r?cijeneApiService.removeFavorite(n):cijeneApiService.addFavorite(n)).then(function(e){!r&&e&&e.data&&"added"===e.data.result&&cijeneApiService.countUpProductFavorite(n),!r&&i.isFavoritesPath()&&i.refreshFavoritesList()}).catch(function(t){i.dismissFavoriteToastFor(n),e.isFavorite=r,i.adjustFavoritesCount(r?1:-1),i.handleFavoriteError(t)})}}},favoriteCardFor(e){for(var t=0;t<this.favorites.length;t++){var i=this.favorites[t];if((i.barcode||i.productBarcode)===e)return i}return null},refreshFavoritesList(){var e=t;this.userInfo&&this.userInfo.IsLoggedIn&&this.getFavoritesPromise().then(function(t){e.isFavoritesPath()&&(e.shared.favorites.items=t.data||[],cijeneApplyCardDistances(e.shared.favorites.items,cijeneRefLocation(e.shared.locationState)))}).catch(function(e){console.error("Error refreshing favorites:",e)})},removeFavoriteWithUndo(e,i,n){var r=t,a=this.favorites.indexOf(e);-1!==a&&(this.favorites.splice(a,1),this.adjustFavoritesCount(-1),this.dismissFavoriteToastFor(i),this.showFavoriteToast(e,i,a,n),cijeneApiService.removeFavorite(i).catch(function(t){r.dismissFavoriteToastFor(i),r.restoreFavorite(e,a),r.adjustFavoritesCount(1),n&&(n.isFavorite=!0),r.handleFavoriteError(t)}))},undoRemoveFavorite(e){var i=t,n=this.dismissToast(e);if(n){var r=n.item;this.restoreFavorite(r,n.index),this.adjustFavoritesCount(1),n.mirror&&(n.mirror.isFavorite=!0),cijeneApiService.addFavorite(n.barcode).catch(function(e){var t=i.favorites.indexOf(r);-1!==t&&i.favorites.splice(t,1),i.adjustFavoritesCount(-1),n.mirror&&(n.mirror.isFavorite=!1),i.handleFavoriteError(e)})}},restoreFavorite(e,t){e.isFavorite=!0,-1===this.favorites.indexOf(e)&&this.favorites.splice(Math.min(t,this.favorites.length),0,e)},undoAddFavorite(e){var i=t,n=this.dismissToast(e);if(n){var r=n.item;r&&(r.isFavorite=!1),this.adjustFavoritesCount(-1);var a=this.favoriteCardFor(n.barcode);
151if(a){a.isFavorite=!1;var o=this.favorites.indexOf(a);-1!==o&&this.favorites.splice(o,1)}cijeneApiService.removeFavorite(n.barcode).catch(function(e){r&&(r.isFavorite=!0),i.adjustFavoritesCount(1),i.handleFavoriteError(e)})}},showFavoriteToast(e,t,i,n){this.pushToast({type:"favorite",item:e,barcode:t,index:i,name:e.name||e.productName,mirror:n||null,timer:null})},dismissFavoriteToastFor(e){for(var t=this.toasts.length-1;t>=0;t--){var i=this.toasts[t];"favorite"!==i.type&&"favorite-add"!==i.type||i.barcode!==e||this.dismissToast(i.id)}},dismissAllFavoriteToasts(){for(var e=this.toasts.length-1;e>=0;e--)"favorite"===this.toasts[e].type&&this.dismissToast(this.toasts[e].id)},handleFavoriteError(e){if(e&&e.response&&409===e.response.status){var t=e.response.data&&e.response.data.limit;alert("Dosegnut je maksimalan broj favorita"+(t?" ("+t+")":"")+".")}else console.error("Error toggling favorite:",e)}}}function MapController(){var e=45.815,t=15.9819;return{map:null,markers:[],userLocationMarker:null,hasMap(){return null!==this.map},init(i,n){var r=L.latLngBounds(L.latLng(42,13),L.latLng(47,20));this.map=L.map(i,{maxBounds:r,maxBoundsViscosity:1,minZoom:6,scrollWheelZoom:!1}).setView([e,t],12),L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(this.map);var a=L.Popup.prototype._animateZoom;L.Popup.prototype._animateZoom=function(e){this._map&&a.call(this,e)},this.showUserLocationMarker(n)},destroy(){this.clearMarkers(),this.removeUserLocationMarker(),this.map=null},clearMarkers(){var e=this;this.map&&(this.map.closePopup(),this.markers.forEach(function(t){t.closePopup(),e.map.removeLayer(t)}),this.markers=[])},showUserLocationMarker(e){if(this.removeUserLocationMarker(),e){var t=L.divIcon({className:"user-location-marker",html:'<div class="user-location-dot"><div class="user-location-pulse"></div></div>',iconSize:[24,24],iconAnchor:[12,12]});this.userLocationMarker=L.marker([e.lat,e.lng],{icon:t,zIndexOffset:1e3}).addTo(this.map).bindPopup('<div class="cijene-popup"><div class="cijene-popup-retailer">VaÅ¡a lokacija</div></div>')}},removeUserLocationMarker(){this.userLocationMarker&&(this.map&&this.map.removeLayer(this.userLocationMarker),this.userLocationMarker=null)},setUserView(e){this.map&&e&&(this.map.setView([e.lat,e.lng],12),this.showUserLocationMarker(e))},focusStore(e,t){var i=this;e.latitude&&e.longitude&&this.map&&(t&&t.scrollIntoView({behavior:"smooth",block:"center"}),this.map.once("moveend",function(){i.markers.forEach(function(t){t.getLatLng().lat===e.latitude&&t.getLatLng().lng===e.longitude&&t.openPopup()})}),this.map.setView([e.latitude,e.longitude],16))},renderMarkersFromGroups(e){var t=[];e.forEach(function(e){e.stores.forEach(function(i){t.push({latitude:i.latitude,longitude:i.longitude,storeName:i.storeName,storeAddress:i.storeAddress,retailerSlug:e.retailerSlug,price:e.price,specialPrice:e.isPromo?e.price:null,isCheapest:e.isCheapest})})}),this.renderMarkers(t)},renderMarkers(e){var t=this;this.clearMarkers();var i=[],n=e.filter(function(e){return e.specialPrice||e.price}).map(function(e){return e.specialPrice||e.price}),r=Math.min.apply(null,n),a=Math.max.apply(null,n),o=r===a;if(e.slice().sort(function(e,t){var i=e.specialPrice||e.price||0;return(t.specialPrice||t.price||0)-i}).forEach(function(e,n){if(e.latitude&&e.longitude){e.specialPrice&&e.specialPrice;var a=!o&&e.price===r?" cheapest":"",s="https://www.google.com/maps/dir/?api=1&destination="+e.latitude+","+e.longitude,l='<div class="cijene-popup"><div class="cijene-popup-logo"><img src="/Content/img/cijene/retailer/'+e.retailerSlug+'.jpg" /></div><div class="cijene-popup-store">'+cijeneEscapeHtml(e.storeName||"")+'</div><div class="cijene-popup-address">'+cijeneEscapeHtml(e.storeAddress||"")+'</div><div class="cijene-popup-price '+a+'">'+cijeneFormatPrice(e.price)+' â¬</div><div class="cijene-popup-directions-holder"><i class="index-direction"></i><a href="'+s+'" target="_blank" rel="noopener" class="cijene-popup-directions">Upute za dolazak</a></div></div>',c="map-price-marker "+a,d='<div class="map-price-inner"><div class="map-price-label">'+(cijeneFormatPrice(e.price)+" â¬")+"</div></div>",u=L.divIcon({className:c,html:d,iconSize:[0,0],iconAnchor:[0,0],popupAnchor:[0,0]}),p=L.marker([e.latitude,e.longitude],{icon:u,zIndexOffset:10*n}).addTo(t.map).bindPopup(l,{autoPan:!1});t.markers.push(p),i.push([e.latitude,e.longitude])}}),i.length>0){var s=L.latLngBounds(i);this.map.fitBounds(s.pad(-.05),{padding:[30,30]})}}}}function cijeneCreatePopularSlider(){var e=null;function t(){e&&(e.destroy(!0,!0),e=null)}return{init:function(i,n){n&&n.length&&i.$nextTick(function(){var n=i.$refs.popularSlider;if(n)if(t(),i.isMobile)e=new Swiper(n,{slidesPerView:"auto",loop:!0,spaceBetween:10,slidesOffsetBefore:16,slidesOffsetAfter:16});else{var r=n.parentElement.parentElement;e=new Swiper(n,{slidesPerView:3,spaceBetween:11,loop:!0,navigation:{nextEl:r.querySelector(".slider-next"),prevEl:r.querySelector(".slider-prev")},breakpoints:{900:{slidesPerView:5}}})}})},destroy:t}}function Product(e){var t=MapController(),i=window.cijeneProduct||null;return i&&(e.product.item=i,e.search.query=i.name),{productLoading:!0,productPrices:[],productPricesError:!1,productPricesLoading:!1,productSortBy:"cheapest",activeStore:null,expandedGroups:{},bootHandler:null,locationHandler:null,silentHandler:null,commentsObserver:null,get totalProductStores(){return this.productPrices.reduce(function(e,t){return e+(t.stores?t.stores.length:0)},0)},get sortedProductPrices(){var t=this.productPrices;if("nearest"!==this.productSortBy||!e.locationState.useGeolocation)return t;function i(e){if(!e.stores||0===e.stores.length)return 1/0;for(var t=1/0,i=0;i<e.stores.length;i++){var n=e.stores[i].distanceMeters;null!=n&&n<t&&(t=n)}return t}return t.slice().map(function(e){var t=(e.stores||[]).slice().sort(function(e,t){return(null==e.distanceMeters?1/0:e.distanceMeters)-(null==t.distanceMeters?1/0:t.distanceMeters)});return Object.assign({},e,{stores:t})}).sort(function(e,t){return i(e)-i(t)})},mounted(){var i=this;this.bootHandler=function(){i.load()},this.locationHandler=function(n){n&&"geolocation"===n.reason?t.hasMap()&&t.setUserView(e.locationState.userLocation):t.removeUserLocationMarker(),i.fetchPrices()},eventBus.on("cijene:location-changed",this.locationHandler),this.silentHandler=function(){i.applyDistances()},eventBus.on("cijene:silent-location",this.silentHandler),e.ready?this.load():eventBus.on("cijene:boot",this.bootHandler),this.displayComments()},displayComments(){var e=document.getElementById("comments-entry");if(e&&"undefined"!=typeof commentsUrl&&commentsUrl){var t=this;this.commentsObserver=new IntersectionObserver(function(i){i.forEac
151h(function(i){i.isIntersecting&&(t.commentsObserver.unobserve(i.target),$.get(commentsUrl,function(t){$(e).html(t)}))})},{root:null,rootMargin:"500px",threshold:0}),this.commentsObserver.observe(e)}},applyDistances(){var t=cijeneRefLocation(e.locationState);t&&this.productPrices.forEach(function(e){cijeneApplyStoreDistances(e.stores,t)})},unmounted(){eventBus.off("cijene:boot",this.bootHandler),eventBus.off("cijene:location-changed",this.locationHandler),eventBus.off("cijene:silent-location",this.silentHandler),this.commentsObserver&&this.commentsObserver.disconnect(),t.destroy()},load(){var i=this,n=e.product.item;n&&n.barcode&&(i.productLoading=!0,i.productPricesError=!1,i.activeStore=null,i.expandedGroups={},cijeneApiService.countUpProductView(n.barcode),i.buildPricesPromise(n.barcode).then(function(e){i.productLoading=!1,i.applyPricesResponse(e)}).catch(function(e){console.error("Error loading product prices:",e),i.productLoading=!1,i.productPricesError=!0,i.productPrices=[],t.clearMarkers()}))},buildPricesPromise:t=>e.locationState.useGeolocation&&e.locationState.userLocation?cijeneApiService.getPricesByLocation(t,e.locationState.userLocation.lat,e.locationState.userLocation.lng,20):cijeneApiService.getPricesByCity(t,e.locationState.selectedCity||null),applyPricesResponse(i){var n=this,r=i&&i.data;r&&r.priceGroups&&r.priceGroups.length>0?(n.productPrices=r.priceGroups,n.applyDistances(),n.$nextTick(function(){t.hasMap()||t.init(n.$refs.cijeneMap,e.locationState.userLocation),t.renderMarkersFromGroups(n.productPrices)})):(n.productPrices=[],t.destroy())},fetchPrices(){var i=this;e.product.item&&(this.productPricesLoading=!0,this.productPricesError=!1,this.activeStore=null,this.expandedGroups={},this.buildPricesPromise(e.product.item.barcode).then(function(e){i.productPricesLoading=!1,i.applyPricesResponse(e)}).catch(function(e){console.error("Error fetching prices:",e),i.productPricesLoading=!1,i.productPricesError=!0,i.productPrices=[],t.clearMarkers()}))},onStoreClick(e){this.activeStore=e,t.focusStore(e,this.$refs.cijeneMap)},toggleGroup(e){this.expandedGroups[e]=!this.expandedGroups[e]},isGroupExpanded(e){return!0===this.expandedGroups[e]},setProductSort(e){this.productSortBy!==e&&(this.productSortBy=e,this.expandedGroups={})},priceDiff(e){var t=this.productPrices.find(function(e){return e.isCheapest});return t?e.price-t.price:0},unitPriceDiff(e){if(null==e.unitPrice)return null;var t=null;return this.productPrices.forEach(function(e){null!=e.unitPrice&&(null===t||e.unitPrice<t)&&(t=e.unitPrice)}),null===t?null:e.unitPrice-t}}}function Retailer(e){var t=MapController(),i=window.cijeneRetailer||null;return{retailer:i?{id:i.id,slug:i.slug||""}:null,retailerLoading:!0,retailerDiscounts:[],retailerCheapest:[],retailerLoadMoreLoading:!1,retailerHasMore:!1,retailerCheapestLoadMoreLoading:!1,retailerCheapestHasMore:!1,activeRetailerItem:null,activeStore:null,bootHandler:null,locationHandler:null,silentHandler:null,get selectedRetailer(){return this.retailer},mounted(){var i=this;this.bootHandler=function(){i.load()},this.locationHandler=function(n){n&&"geolocation"===n.reason?t.hasMap()&&t.setUserView(e.locationState.userLocation):t.removeUserLocationMarker(),i.fetchRetailerDiscountItems(!1)},eventBus.on("cijene:location-changed",this.locationHandler),this.silentHandler=function(){i.applyDistances()},eventBus.on("cijene:silent-location",this.silentHandler),e.ready?this.load():eventBus.on("cijene:boot",this.bootHandler)},unmounted(){eventBus.off("cijene:boot",this.bootHandler),eventBus.off("cijene:location-changed",this.locationHandler),eventBus.off("cijene:silent-location",this.silentHandler),this.closeRetailerStoresPopup()},applyDistances(){var t=cijeneRefLocation(e.locationState);t&&(this.retailerDiscounts.forEach(function(e){cijeneApplyStoreDistances(e.stores,t)}),this.retailerCheapest.forEach(function(e){cijeneApplyStoreDistances(e.stores,t)}))},load(){this.retailer&&this.retailer.id&&(this.retailerDiscounts=[],this.fetchRetailerDiscountItems(!1))},getRetailerDiscountsPromise(t,i){var n=e.locationState.useGeolocation&&e.locationState.userLocation,r=this.retailer.id;if(n){return cijeneApiService.getRetailerTopPriceDiffsByLocation(e.locationState.userLocation.lat,e.locationState.userLocation.lng,r,20,t,i)}return cijeneApiService.getRetailerTopPriceDiffsByCity(e.locationState.selectedCity||null,r,t,i)}
151,getRetailerCheapestPromise(t,i){var n=e.locationState.useGeolocation&&e.locationState.userLocation,r=this.retailer.id;if(n){return cijeneApiService.getRetailerCheapestByLocation(e.locationState.userLocation.lat,e.locationState.userLocation.lng,r,20,t,i)}return cijeneApiService.getRetailerCheapestByCity(e.locationState.selectedCity||null,r,t,i)},applyRetailerCheapestResponse(e,t,i){var n=e&&e.data||[];this.retailerCheapest=t?this.retailerCheapest.concat(n):n,this.retailerCheapestHasMore=n.length===i},fetchRetailerDiscountItems(e){var t=this;if(!t.retailerLoadMoreLoading){e?t.retailerLoadMoreLoading=!0:t.retailerLoading=!0;var i=e?t.retailerDiscounts.length:0,n=[t.getRetailerDiscountsPromise(i,10)];e||n.push(t.getRetailerCheapestPromise(0,10)),Promise.all(n).then(function(i){var n=i[0].data||[];n.length>0?t.retailerDiscounts=e?t.retailerDiscounts.concat(n):n:e||(t.retailerDiscounts=[]),t.retailerHasMore=10===n.length,e||t.applyRetailerCheapestResponse(i[1],!1,10),t.applyDistances(),t.retailerLoading=!1,t.retailerLoadMoreLoading=!1}).catch(function(i){console.error("Error fetching retailer data:",i),t.retailerLoading=!1,t.retailerLoadMoreLoading=!1,t.retailerHasMore=!1,e||(t.retailerDiscounts=[],t.applyRetailerCheapestResponse(null,!1,10))})}},fetchRetailerCheapestItems(e){var t=this;if(!t.retailerCheapestLoadMoreLoading){t.retailerCheapestLoadMoreLoading=!0;var i=e?t.retailerCheapest.length:0;t.getRetailerCheapestPromise(i,10).then(function(i){t.applyRetailerCheapestResponse(i,e,10),t.applyDistances(),t.retailerCheapestLoadMoreLoading=!1}).catch(function(i){console.error("Error fetching retailer cheapest:",i),t.retailerCheapestLoadMoreLoading=!1,t.retailerCheapestHasMore=!1,e||(t.retailerCheapest=[])})}},onStoreClick(e){this.activeStore=e,t.focusStore(e,this.$refs.cijeneMap)},openRetailerStoresPopup(i){var n=this;this.activeRetailerItem=i,this.activeStore=null,$("body").addClass("overflow-hidden"),this.$nextTick(function(){t.hasMap()||t.init(n.$refs.cijeneMap,e.locationState.userLocation);var r=[];i.stores.forEach(function(e){r.push({latitude:e.latitude,longitude:e.longitude,storeName:e.storeName,storeAddress:e.storeAddress,retailerSlug:n.retailer.slug,price:e.price,specialPrice:null,isCheapest:!1})}),t.renderMarkers(r)})},closeRetailerStoresPopup(){this.activeRetailerItem=null,this.activeStore=null,t.destroy(),$("body").removeClass("overflow-hidden")},onRetailerStoresPopupMounted(){if(this.isMobile){var e=this,t=this.$refs.retailerStoresPopupHolder;t&&swipeToCloseService.Attach({holder:t,scroller:function(){return t.querySelector(".retailer-stores-popup__stores")},exclude:".leaflet-container",onClose:function(){e.closeRetailerStoresPopup()}})}}}}function Search(e){return{searchResultsQuery:"",searchResults:[],searchResultsLoadMoreLoading:!1,searchResultsHasMore:!1,bootHandler:null,locationHandler:null,silentHandler:null,mounted(){var t=this;this.bootHandler=function(){t.load()},this.locationHandler=function(){(e.search.query||"").trim().length<2||t.load()},eventBus.on("cijene:location-changed",this.locationHandler),this.silentHandler=function(){cijeneApplyCardDistances(t.searchResults,cijeneRefLocation(e.locationState))},eventBus.on("cijene:silent-location",this.silentHandler),e.ready?this.load():eventBus.on("cijene:boot",this.bootHandler)},unmounted(){eventBus.off("cijene:boot",this.bootHandler),eventBus.off("cijene:location-changed",this.locationHandler),eventBus.off("cijene:silent-location",this.silentHandler)},load(){var t=(e.search.query||"").trim();t.length<2||(this.searchResultsQuery=t,this.searchResults=[],this.searchResultsHasMore=!1,this.fetchSearchResultsItems(!1))},getSearchResultsPromise(t,i){var n=this.searchResultsQuery;return e.locationState.useGeolocation&&e.locationState.userLocation?cijeneApiService.searchProductsByLocation(n,e.locationState.userLocation.lat,e.locationState.userLocation.lng,20,t,i):cijeneApiService.searchProductsByCity(n,e.locationState.selectedCity||null,t,i)},fetchSearchResultsItems(t){var i=this;if(!i.searchResultsLoadMoreLoading){t?i.searchResultsLoadMoreLoading=!0:e.search.loading=!0;var n=t?i.searchResults.length:0;i.getSearchResultsPromise(n,50).then(function(n){var r=n.data;r&&r.length>0?i.searchResults=t?i.searchResults.concat(r):r:t||(i.searchResults=[]),cijeneApplyCardDistances(i.searchResults,cijeneRefLocation(e.locationState)),i.searchResultsHasMore=50===(r||[]).length,e.search.loading=!1,i.searchResultsLoadMoreLoading=!1}
151).catch(function(n){console.error("Search error:",n),e.search.loading=!1,i.searchResultsLoadMoreLoading=!1,i.searchResultsHasMore=!1,t||(i.searchResults=[])})}},selectFromSearchResult(e){e&&e.barcode&&cijeneApiService.countUpProductSearch(e.barcode),this.selectItem(e.barcode,!0)}}}function MessageOptions(e,t,i){return{$template:"#message-options-template",model:e,jwtInfo:t,roomId:i,messageState:messageEnums.messageState,deleteText:"Obrišite",banText:"Ban",removeMessage(){var e=this,t={messageId:e.model.id,roomId:e.roomId};chatApiService.deleteMessage(t,e.jwtInfo.jwt).then(function(t){e.model.state=e.messageState.Deleted}).catch(function(e){})},disableUser(){chatApiService.disableUser({externalUserId:this.model.externalUserId},this.jwtInfo.jwt).then(function(e){}).catch(function(e){})}}}function Message(e){return{$template:"#message-template",message:e.message,previousMessage:e.previousMessage,userInfo:e.userInfo,jwtInfo:e.jwtInfo,roomId:e.roomId,canUserModerateChat:e.canUserModerateChat,messageState:messageEnums.messageState,isMyMessage(){var e=this;return null!=e.userInfo&&e.message.externalUserId==e.userInfo.PPID},isCurrentUserPoster(){var e=this;return null==e.userInfo||null!=e.userInfo&&e.message.externalUserId!=e.userInfo.PPID},shouldDisplayProfileImage(){var e=this;return!e.previousMessage||e.previousMessage.externalUserId!=e.message.externalUserId},shouldDisplayProfileInfoOnMessage(){var e=this;return!(e.previousMessage&&e.previousMessage.externalUserId==e.message.externalUserId||!e.isCurrentUserPoster(index))},shouldDisplayTimeOnMessage(){var e=this;return!!(e.previousMessage&&e.previousMessage.externalUserId==e.message.externalUserId&&filter.diffMinutes(e.message.createdDateTimeUtc,e.previousMessage.createdDateTimeUtc)>5)},shouldDisplayDaySeparator(){var e=moment.utc(this.previousMessage.createdDateTimeUtc).local(),t=moment.utc(this.message.createdDateTimeUtc).local();return moment(e).isSame(t,"day")?null:moment(t).isSame(moment(),"day")?"Danas":t.format("DD.MM.yyyy.")}}}function WarningPopupChat(e){return{$template:"#warning-popup-chat-template",parentState:e,onOkClick(){e.isWarningPopupVisible=!1,cookieService.CreateCookie(e.cookieNameTermsOfService,!0,30)}}}function Chat(e){return{isReadOnly:e.isReadOnly,isHistoryLoaded:!1,isConnectionLoading:!1,roomId:e.roomId,messages:[],connection:null,newMessage:"",userInfo:null,canUserModerateChat:!1,jwtInfo:null,currentUrl:null,inputOverflowEnabled:!1,isFixed:!1,isMinimized:!0,isAnimated:!1,prevMessagesWrapperScrollHeight:null,prevInputScrollHeight:null,storageKeyMinimized:"index-chat-minimized",storageKeyJwt:"index-chat-jwt",isNewMessagesButtonVisible:!1,numOfUnreadMessages:0,isInputResized:!1,messagesScrollTimer:null,validationError:null,canUserSendMessages:!0,sharedState:{cookieNameTermsOfService:"index-chat-terms-of-use",isWarningPopupVisible:!1},onLoad(){var e=this;e.isInViewport(e.$refs.chatContainer)||(e.isFixed=!0),e.initSignalRConnection(),e.initContainerObserver();var t=localStorage.getItem(e.storageKeyMinimized);t&&"false"==t&&(e.isMinimized=!1)},initContainerObserver(){var e=this;let t,i={root:null,threshold:Array.from({length:11},(e,t)=>t/10)};t=new IntersectionObserver((t,i)=>{t.forEach(t=>{t.isIntersecting&&(t.boundingClientRect.top<-1?(e.isFixed=!0,e.numOfUnreadMessages=0):e.isFixed=!1)})},i),t.observe(e.$refs.chatContainer)},initSignalRConnection(){var e=this;e.connection=(new signalR.HubConnectionBuilder).withUrl(`${window.constants.socketsHost}/chatHub`).withAutomaticReconnect({nextRetryDelayInMilliseconds:e=>e.elapsedMilliseconds<2e3?0:e.elapsedMilliseconds<12e3?2e3:e.elapsedMilliseconds<42e3?1e4:3e4}).build(),e.connection.serverTimeoutInMilliseconds=91e3,e.connection.on("ReceiveMessage",function(t){e.receiveMessage(t)}),e.connection.on("JoinedRoom",function(e){}),e.connection.start().then(function(){e.initChat()}).catch(function(e){return console.error(e.toString())}),e.connection.onreconnecting(t=>{e.isConnectionLoading=!0}),e.connection.onreconnected(t=>{e.showHistory()})},toggleMinimize(){var e=this;e.isMinimized=!e.isMinimized,e.isFullScr=!1,e.isMinimized||(e.numOfUnreadMessages=0),e.isMinimized?localStorage.setItem(e.storageKeyMinimized,!0):localStorage.setItem(e.storageKeyMinimized,!1),e.isAnimated=!0,setTimeout(()=>{e.isAnimated=!1},400)},initChat(){var e=this;e.getUserData(),e.joinRoom(),e.showHistory()},getUserData(){var e=this;if(e.userInfo=accountService.GetUserInfo(),e.userInfo&&e.userInfo.IsLoggedIn){var t=localStorage.getItem(e.storageKeyJwt);t?(e.jwtInfo=JSON.parse(t),e.canUserModerateChat=e.jwtInfo.isModerator,e.checkJwtExpiration(),e.startJwtChecking()):userApiService.getJwt().then(function(t){e.jwtInfo=t.data,e.canUserModerateChat=e.jwtInfo.isModerator,localStorage.setItem(e.storageKeyJwt,JSON.stringify(t.data)),e.startJwtChecking()}).catch(function(e){})}},startJwtChecking(){var e=this;setInterval(function(){e.checkJwtExpiration()},5e3)},checkJwtExpiration(){var e=this,t=moment().utc().unix();e.jwtInfo.exp-t<60&&userApiService.getJwt().then(function(t){e.jwtInfo=t.data,localStorage.setItem(e.storageKeyJwt,JSON.stringify(t.data))})},joinRoom(){this.connection.invoke("JoinRoom",this.roomId).catch(function(e){return console.error(e.toString())})},textAreaResize(){var e=this,t=e.$refs.msgInput;t.value.length?e.isInputResized=!0:e.isInputResized=!1,t.style.height="auto",t.style.height=t.scrollHeight+"px",e.scrollToBottom(!1,!0),e.prevInputScrollHeight=t.scrollHeight},onTextAreaClick(){cookieService.GetCookie(this.sharedState.cookieNameTermsOfService)||(this.sharedState.isWarningPopupVisible=!0)},onTextAreaBlur(){this.$refs.msgInput.value.length||(this.isInputResized=!1)},onNewMessagesClick(){this.scrollToBottom(!1,!0),this.isNewMessagesButtonVisible=!1},scrollToBottom(e,t,i){var n=this;n.$nextTick(function(){let r=n.$refs.messagesWrapper;if(r){let a=window.devicePixelRatio||1,o=r.clientHeight,s=Math.round(Math.round(r.
151scrollTop*a)/a),l=r.scrollHeight;!n.prevMessagesWrapperScrollHeight||s>=n.prevMessagesWrapperScrollHeight-o||t?r.scroll({top:l,behavior:e?"smooth":"auto"}):i&&(n.isNewMessagesButtonVisible=!0),n.prevMessagesWrapperScrollHeight=l}})},onScrollMessages(){var e=this;e.messagesScrollTimer&&(clearTimeout(e.messagesScrollTimer),e.messagesScrollTimer=null),e.messagesScrollTimer=setTimeout(function(){let t=e.$refs.messagesWrapper,i=t.clientHeight;t.scrollTop===t.scrollHeight-i&&(e.isNewMessagesButtonVisible=!1)},50)},sendMessage(){var e=this,t=e.generateGuid();if(e.userInfo.IsLoggedIn&&e.newMessage.length>0){var i={isNew:!0,id:t,content:e.newMessage,externalUserId:e.userInfo.PPID,createdDateTimeUtc:moment().utc()};e.canUserSendMessages&&e.messages.push(i);var n={messageId:t,roomId:e.roomId,content:e.newMessage};chatApiService.sendMessage(n,e.jwtInfo.jwt).then(function(t){t.data.success?(e.validationError="",!e.canUserSendMessages&&!e.messages.filter(e=>e.id===i.id).length>0&&e.messages.push(i),e.canUserSendMessages=!0):(e.validationError=t.data.error.message,e.canUserSendMessages=!1)}),e.$nextTick(function(){e.newMessage="",e.$refs.msgInput.focus(),e.$refs.msgInput.style.height="40px"}),e.scrollToBottom(!1,!0,!1)}},receiveMessage(e){var t=this;for(let i=0;i<e.msg.length;i++){let n=e.msg[i];!t.messages.filter(e=>e.id===n.messageId).length>0&&(t.messages.push({isNew:!0,id:n.messageId,content:n.content,displayName:n.displayName,initials:n.initials,profileImagePath:n.profileImagePath,externalUserId:n.externalUserId,createdDateTimeUtc:n.
151createdDateTimeUtc}),t.scrollToBottom(!1,!1,!0),t.isMinimized&&(t.numOfUnreadMessages=t.numOfUnreadMessages+1))}},showHistory(){var e=this;chatApiService.showHistoryByRoom(e.roomId).then(function(t){e.messages=t.data,e.currentUrl=window.index.currentUrl,e.isHistoryLoaded=!0,e.isConnectionLoading=!1,e.scrollToBottom()})},isInViewport(e){const{top:t,left:i,bottom:n,right:r}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return t>0&&t<a||n>0&&n<a},generateGuid:()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}}
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.