"use strict";var translated_texts_json,translated_public_texts_json;function _t(e){if("object"==typeof translated_public_texts_json){for(var t in translated_public_texts_json)for(var i in translated_public_texts_json[t])translated_texts_json[t][i]=translated_public_texts_json[t][i];translated_public_texts_json=!1}var n=Array.prototype.slice.call(arguments),o="undefined"==typeof language_for_t?"da-DK":language_for_t,a=!0;if(1<n.length&&(!1===n[1]?(a=!1,n.splice(1,1)):!0===n[1]?(a=!0,n.splice(1,1)):"object"==typeof n[1]&&(void 0!==n[1].language&&(o=n[1].language),n.splice(1,1))),is_numeric(e))return e;var s=sha1(e);if("object"==typeof window._g_translations_tester_array&&void 0!==window._g_translations_tester_array[s]&&(setTimeout(function(e){ajax_post("/ajax/translation_handler","&unique_key="+e)},0,s),delete window._g_translations_tester_array[s]),void 0===translated_texts_json[o]||void 0===translated_texts_json[o][s]?(setTimeout(function(e){ajax_post("/ajax/translation_handler","&t="+encodeURIComponent(base64_encode(e)))},0,e),void 0===translated_texts_json[o]&&(translated_texts_json[o]={}),translated_texts_json[o][s]=e):void 0!==translated_texts_json[o][s]&&""!==translated_texts_json[o][s]&&(e=translated_texts_json[o][s]),1<n.length)for(var r=1;r<n.length;r++){var l=new RegExp("{"+r+"(-.*?}|})","g");e=e.replace(l,n[r])}return e=(e=e.replace(/{en=.*?}/g,"")).replace(/{publicly-translateable}/g,""),a?htmlentities(e):e}function _pt(e){var t=arguments;return t[0]+="{publicly-translateable}",_t.apply(null,t)}!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(f,N){function m(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item}function z(e){return null!=e&&e===e.window}var t=[],M=Object.getPrototypeOf,r=t.slice,R=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},P=t.push,v=t.indexOf,q={},H=q.toString,U=q.hasOwnProperty,F=U.toString,W=F.call(Object),g={},b=f.document,V={type:!0,src:!0,nonce:!0,noModule:!0};function G(e,t,i){var n,o,a=(i=i||b).createElement("script");if(a.text=e,t)for(n in V)(o=t[n]||t.getAttribute&&t.getAttribute(n))&&a.setAttribute(n,o);i.head.appendChild(a).parentNode.removeChild(a)}function X(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?q[H.call(e)]||"object":typeof e}var e="3.7.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/animatedSelector,-effects/Tween",Y=/HTML$/i,y=function(e,t){return new y.fn.init(e,t)};function K(e){var t=!!e&&"length"in e&&e.length,i=X(e);return!m(e)&&!z(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}function w(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}y.fn=y.prototype={jquery:e,constructor:y,length:0,toArray:function(){return r.call(this)},get:function(e){return null==e?r.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=y.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return y.each(this,e)},map:function(i){return this.pushStack(y.map(this,function(e,t){return i.call(e,t,e)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(y.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(y.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(0<=i&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:P,sort:t.sort,splice:t.splice},y.extend=y.fn.extend=function(){var e,t,i,n,o,a=arguments[0]||{},s=1,r=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===r&&(a=this,s--);s<r;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&a!==i&&(l&&i&&(y.isPlainObject(i)||(n=Array.isArray(i)))?(o=a[t],o=n&&!Array.isArray(o)?[]:n||y.isPlainObject(o)?o:{},n=!1,a[t]=y.extend(l,o,i)):void 0!==i&&(a[t]=i));return a},y.extend({expando:"jQuery"+(e+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t;return!(!e||"[object Object]"!==H.call(e)||(t=M(e))&&("function"!=typeof(t=U.call(t,"constructor")&&t.constructor)||F.call(t)!==W))},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,i){G(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,n=0;if(K(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},text:function(e){var t,i="",n=0,o=e.nodeType;if(!o)for(;t=e[n++];)i+=y.text(t);return 1===o||11===o?e.textContent:9===o?e.documentElement.textContent:3===o||4===o?e.nodeValue:i},makeArray:function(e,t){var i=t||[];return null!=e&&(K(Object(e))?y.merge(i,"string"==typeof e?[e]:e):P.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:v.call(t,e,i)},isXMLDoc:function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||i&&i.nodeName||"HTML")},merge:function(e,t){for(var i=+t.length,n=0,o=e.length;n<i;n++)e[o++]=t[n];return e.length=o,e},grep:function(e,t,i){for(var n=[],o=0,a=e.length,s=!i;o<a;o++)!t(e[o],o)!=s&&n.push(e[o]);return n},map:function(e,t,i){var n,o,a=0,s=[];if(K(e))for(n=e.length;a<n;a++)null!=(o=t(e[a],a,i))&&s.push(o);else for(a in e)null!=(o=t(e[a],a,i))&&s.push(o);return R(s)},guid:1,support:g}),"function"==typeof Symbol&&(y.fn[Symbol.iterator]=t[Symbol.iterator]),y.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){q["[object "+t+"]"]=t.toLowerCase()});var J=t.pop,Q=t.sort,Z=t.splice,i="[\\x20\\t\\r\\n\\f]",ee=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),te=(y.contains=function(e,t){var i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(e.contains?e.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))},/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g);function ie(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}y.escapeSelector=function(e){return(e+"").replace(te,ie)};var n,k,ne,oe,ae,E,o,x,_,se,a=b,re=P,$=re,C=y.expando,I=0,le=0,de=Te(),ce=Te(),ue=Te(),_e=Te(),he=function(e,t){return e===t&&(ae=!0),0},pe="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",e="(?:\\\\[\\da-fA-F]{1,6}"+i+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",s="\\["+i+"*("+e+")(?:"+i+"*([*^$|!~]?=)"+i+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+i+"*\\]",l=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+s+")*)|.*)\\)|)",fe=new RegExp(i+"+","g"),me=new RegExp("^"+i+"*,"+i+"*"),ge=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),ve=new RegExp(i+"|>"),be=new RegExp(l),ye=new RegExp("^"+e+"$"),we={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+s),PSEUDO:new RegExp("^"+l),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+pe+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},ke=/^(?:input|select|textarea|button)$/i,Ee=/^h\d$/i,xe=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$e=/[+~]/,u=new RegExp("\\\\[\\da-fA-F]{1,6}"+i+"?|\\\\([^\\r\\n\\f])","g"),h=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320))},Ce=function(){A()},Ie=Ne(function(e){return!0===e.disabled&&w(e,"fieldset")},{dir:"parentNode",next:"legend"});try{$.apply(t=r.call(a.childNodes),a.childNodes),t[a.childNodes.length].nodeType}catch(n){$={apply:function(e,t){re.apply(e,r.call(t))},call:function(e){re.apply(e,r.call(arguments,1))}}}function T(e,t,i,n){var o,a,s,r,l,d,c=t&&t.ownerDocument,u=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==u&&9!==u&&11!==u)return i;if(!n&&(A(t),t=t||E,x)){if(11!==u&&(r=xe.exec(e)))if(o=r[1]){if(9===u){if(!(d=t.getElementById(o)))return i;if(d.id===o)return $.call(i,d),i}else if(c&&(d=c.getElementById(o))&&T.contains(t,d)&&d.id===o)return $.call(i,d),i}else{if(r[2])return $.apply(i,t.getElementsByTagName(e)),i;if((o=r[3])&&t.getElementsByClassName)return $.apply(i,t.getElementsByClassName(o)),i}if(!(_e[e+" "]||_&&_.test(e))){if(d=e,c=t,1===u&&(ve.test(e)||ge.test(e))){for((c=$e.test(e)&&je(t.parentNode)||t)==t&&g.scope||((s=t.getAttribute("id"))?s=y.escapeSelector(s):t.setAttribute("id",s=C)),a=(l=Oe(e)).length;a--;)l[a]=(s?"#"+s:":scope")+" "+Be(l[a]);d=l.join(",")}try{return $.apply(i,c.querySelectorAll(d)),i}catch(t){_e(e,!0)}finally{s===C&&t.removeAttribute("id")}}}return qe(e.replace(ee,"$1"),t,i,n)}function Te(){var n=[];return function e(t,i){return n.push(t+" ")>k.cacheLength&&delete e[n.shift()],e[t+" "]=i}}function S(e){return e[C]=!0,e}function Se(e){var t=E.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function Ae(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Ie(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function Le(s){return S(function(a){return a=+a,S(function(e,t){for(var i,n=s([],e.length,a),o=n.length;o--;)e[i=n[o]]&&(e[i]=!(t[i]=e[i]))})})}function je(e){return e&&void 0!==e.getElementsByTagName&&e}function A(e){var t=e?e.ownerDocument||e:a;return t!=E&&9===t.nodeType&&t.documentElement&&(o=(E=t).documentElement,x=!y.isXMLDoc(E),se=o.matches||o.webkitMatchesSelector||o.msMatchesSelector,o.msMatchesSelector&&a!=E&&(t=E.defaultView)&&t.top!==t&&t.addEventListener("unload",Ce),g.getById=Se(function(e){return o.appendChild(e).id=y.expando,!E.getElementsByName||!E.getElementsByName(y.expando).length}),g.disconnectedMatch=Se(function(e){return se.call(e,"*")}),g.scope=Se(function(){return E.querySelectorAll(":scope")}),g.cssHas=Se(function(){try{return E.querySelector(":has(*,:jqfake)"),0}catch(e){return 1}}),g.getById?(k.filter.ID=function(e){var t=e.replace(u,h);return function(e){return e.getAttribute("id")===t}},k.find.ID=function(e,t){var i;if(void 0!==t.getElementById&&x)return(i=t.getElementById(e))?[i]:[]}):(k.filter.ID=function(e){var i=e.replace(u,h);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===i}},k.find.ID=function(e,t){if(void 0!==t.getElementById&&x){var i,n,o,a=t.getElementById(e);if(a){if((i=a.getAttributeNode("id"))&&i.value===e)return[a];for(o=t.getElementsByName(e),n=0;a=o[n++];)if((i=a.getAttributeNode("id"))&&i.value===e)return[a]}return[]}}),k.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},k.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&x)return t.getElementsByClassName(e)},_=[],Se(function(e){var t;o.appendChild(e).innerHTML="<a id='"+C+"' href='' disabled='disabled'></a><select id='"+C+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||_.push("\\["+i+"*(?:value|"+pe+")"),e.querySelectorAll("[id~="+C+"-]").length||_.push("~="),e.querySelectorAll("a#"+C+"+*").length||_.push(".#.+[+~]"),e.querySelectorAll(":checked").length||_.push(":checked"),(t=E.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),o.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&_.push(":enabled",":disabled"),(t=E.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||_.push("\\["+i+"*name"+i+"*="+i+"*(?:''|\"\")")}),g.cssHas||_.push(":has"),_=_.length&&new RegExp(_.join("|")),he=function(e,t){var i;return e===t?(ae=!0,0):!e.compareDocumentPosition-!t.compareDocumentPosition||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===i?e===E||e.ownerDocument==a&&T.contains(a,e)?-1:t===E||t.ownerDocument==a&&T.contains(a,t)?1:oe?v.call(oe,e)-v.call(oe,t):0:4&i?-1:1)}),E}for(n in T.matches=function(e,t){return T(e,null,null,t)},T.matchesSelector=function(e,t){if(A(e),x&&!_e[t+" "]&&(!_||!_.test(t)))try{var i=se.call(e,t);if(i||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){_e(t,!0)}return 0<T(t,E,null,[e]).length},T.contains=function(e,t){return(e.ownerDocument||e)!=E&&A(e),y.contains(e,t)},T.attr=function(e,t){(e.ownerDocument||e)!=E&&A(e);var i=k.attrHandle[t.toLowerCase()],i=i&&U.call(k.attrHandle,t.toLowerCase())?i(e,t,!x):void 0;return void 0!==i?i:e.getAttribute(t)},T.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},y.uniqueSort=function(e){var t,i=[],n=0,o=0;if(ae=!g.sortStable,oe=!g.sortStable&&r.call(e,0),Q.call(e,he),ae){for(;t=e[o++];)t===e[o]&&(n=i.push(o));for(;n--;)Z.call(e,i[n],1)}return oe=null,e},y.fn.uniqueSort=function(){return this.pushStack(y.uniqueSort(r.apply(this)))},(k=y.expr={cacheLength:50,createPseudo:S,match:we,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(u,h),e[3]=(e[3]||e[4]||e[5]||"").replace(u,h),"~="===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]||T.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]&&T.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return we.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&be.test(i)&&(t=(t=Oe(i,!0))&&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(u,h).toLowerCase();return"*"===e?function(){return!0}:function(e){return w(e,t)}},CLASS:function(e){var t=de[e+" "];return t||(t=new RegExp("(^|"+i+")"+e+"("+i+"|$)"))&&de(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(i,n,o){return function(e){var t=T.attr(e,i);return null==t?"!="===n:!n||(t+="","="===n?t===o:"!="===n?t!==o:"^="===n?o&&0===t.indexOf(o):"*="===n?o&&-1<t.indexOf(o):"$="===n?o&&t.slice(-o.length)===o:"~="===n?-1<(" "+t.replace(fe," ")+" ").indexOf(o):"|="===n&&(t===o||t.slice(0,o.length+1)===o+"-"))}},CHILD:function(h,e,t,p,f){var m="nth"!==h.slice(0,3),g="last"!==h.slice(-4),v="of-type"===e;return 1===p&&0===f?function(e){return!!e.parentNode}:function(e,t,i){var n,o,a,s,r,l=m!=g?"nextSibling":"previousSibling",d=e.parentNode,c=v&&e.nodeName.toLowerCase(),u=!i&&!v,_=!1;if(d){if(m){for(;l;){for(a=e;a=a[l];)if(v?w(a,c):1===a.nodeType)return!1;r=l="only"===h&&!r&&"nextSibling"}return!0}if(r=[g?d.firstChild:d.lastChild],g&&u){for(_=(s=(n=(o=d[C]||(d[C]={}))[h]||[])[0]===I&&n[1])&&n[2],a=s&&d.childNodes[s];a=++s&&a&&a[l]||(_=s=0,r.pop());)if(1===a.nodeType&&++_&&a===e){o[h]=[I,s,_];break}}else if(!1===(_=u?s=(n=(o=e[C]||(e[C]={}))[h]||[])[0]===I&&n[1]:_))for(;(a=++s&&a&&a[l]||(_=s=0,r.pop()))&&((v?!w(a,c):1!==a.nodeType)||!++_||(u&&((o=a[C]||(a[C]={}))[h]=[I,_]),a!==e)););return(_-=f)===p||_%p==0&&0<=_/p}}},PSEUDO:function(e,a){var t,s=k.pseudos[e]||k.setFilters[e.toLowerCase()]||T.error("unsupported pseudo: "+e);return s[C]?s(a):1<s.length?(t=[e,e,"",a],k.setFilters.hasOwnProperty(e.toLowerCase())?S(function(e,t){for(var i,n=s(e,a),o=n.length;o--;)e[i=v.call(e,n[o])]=!(t[i]=n[o])}):function(e){return s(e,0,t)}):s}},pseudos:{not:S(function(e){var n=[],o=[],r=Pe(e.replace(ee,"$1"));return r[C]?S(function(e,t,i,n){for(var o,a=r(e,null,n,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,t,i){return n[0]=e,r(n,null,i,o),n[0]=null,!o.pop()}}),has:S(function(t){return function(e){return 0<T(t,e).length}}),contains:S(function(t){return t=t.replace(u,h),function(e){return-1<(e.textContent||y.text(e)).indexOf(t)}}),lang:S(function(i){return ye.test(i||"")||T.error("unsupported lang: "+i),i=i.replace(u,h).toLowerCase(),function(e){var t;do{if(t=x?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===i||0===t.indexOf(i+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=f.location&&f.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===o},focus:function(e){return e===function(){try{return E.activeElement}catch(e){}}()&&E.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:Ae(!1),disabled:Ae(!0),checked:function(e){return w(e,"input")&&!!e.checked||w(e,"option")&&!!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!k.pseudos.empty(e)},header:function(e){return Ee.test(e.nodeName)},input:function(e){return ke.test(e.nodeName)},button:function(e){return w(e,"input")&&"button"===e.type||w(e,"button")},text:function(e){var t;return w(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:Le(function(){return[0]}),last:Le(function(e,t){return[t-1]}),eq:Le(function(e,t,i){return[i<0?i+t:i]}),even:Le(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:Le(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:Le(function(e,t,i){for(var n=i<0?i+t:t<i?t:i;0<=--n;)e.push(n);return e}),gt:Le(function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e})}}).pseudos.nth=k.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[n]=function(t){return function(e){return w(e,"input")&&e.type===t}}(n);for(n in{submit:!0,reset:!0})k.pseudos[n]=function(t){return function(e){return(w(e,"input")||w(e,"button"))&&e.type===t}}(n);function De(){}function Oe(e,t){var i,n,o,a,s,r,l,d=ce[e+" "];if(d)return t?0:d.slice(0);for(s=e,r=[],l=k.preFilter;s;){for(a in i&&!(n=me.exec(s))||(n&&(s=s.slice(n[0].length)||s),r.push(o=[])),i=!1,(n=ge.exec(s))&&(i=n.shift(),o.push({value:i,type:n[0].replace(ee," ")}),s=s.slice(i.length)),k.filter)!(n=we[a].exec(s))||l[a]&&!(n=l[a](n))||(i=n.shift(),o.push({value:i,type:a,matches:n}),s=s.slice(i.length));if(!i)break}return t?s.length:s?T.error(e):ce(e,r).slice(0)}function Be(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function Ne(s,e,t){var r=e.dir,l=e.next,d=l||r,c=t&&"parentNode"===d,u=le++;return e.first?function(e,t,i){for(;e=e[r];)if(1===e.nodeType||c)return s(e,t,i);return!1}:function(e,t,i){var n,o,a=[I,u];if(i){for(;e=e[r];)if((1===e.nodeType||c)&&s(e,t,i))return!0}else for(;e=e[r];)if(1===e.nodeType||c)if(o=e[C]||(e[C]={}),l&&w(e,l))e=e[r]||e;else{if((n=o[d])&&n[0]===I&&n[1]===u)return a[2]=n[2];if((o[d]=a)[2]=s(e,t,i))return!0}return!1}}function ze(o){return 1<o.length?function(e,t,i){for(var n=o.length;n--;)if(!o[n](e,t,i))return!1;return!0}:o[0]}function Me(e,t,i,n,o){for(var a,s=[],r=0,l=e.length,d=null!=t;r<l;r++)!(a=e[r])||i&&!i(a,n,o)||(s.push(a),d&&t.push(r));return s}function Re(e){for(var o,t,i,n=e.length,a=k.relative[e[0].type],s=a||k.relative[" "],r=a?1:0,l=Ne(function(e){return e===o},s,!0),d=Ne(function(e){return-1<v.call(o,e)},s,!0),c=[function(e,t,i){var n=!a&&(i||t!=ne)||((o=t).nodeType?l:d)(e,t,i);return o=null,n}];r<n;r++)if(t=k.relative[e[r].type])c=[Ne(ze(c),t)];else{if((t=k.filter[e[r].type].apply(null,e[r].matches))[C]){for(i=++r;i<n&&!k.relative[e[i].type];i++);return function e(h,p,f,m,g,t){return m&&!m[C]&&(m=e(m)),g&&!g[C]&&(g=e(g,t)),S(function(e,t,i,n){var o,a,s,r,l=[],d=[],c=t.length,u=e||function(e,t,i){for(var n=0,o=t.length;n<o;n++)T(e,t[n],i);return i}(p||"*",i.nodeType?[i]:i,[]),_=!h||!e&&p?u:Me(u,l,h,i,n);if(f?f(_,r=g||(e?h:c||m)?[]:t,i,n):r=_,m)for(o=Me(r,d),m(o,[],i,n),a=o.length;a--;)(s=o[a])&&(r[d[a]]=!(_[d[a]]=s));if(e){if(g||h){if(g){for(o=[],a=r.length;a--;)(s=r[a])&&o.push(_[a]=s);g(null,r=[],o,n)}for(a=r.length;a--;)(s=r[a])&&-1<(o=g?v.call(e,s):l[a])&&(e[o]=!(t[o]=s))}}else r=Me(r===t?r.splice(c,r.length):r),g?g(null,t,r,n):$.apply(t,r)})}(1<r&&ze(c),1<r&&Be(e.slice(0,r-1).concat({value:" "===e[r-2].type?"*":""})).replace(ee,"$1"),t,r<i&&Re(e.slice(r,i)),i<n&&Re(e=e.slice(i)),i<n&&Be(e))}c.push(t)}return ze(c)}function Pe(e,t){var i,m,g,v,b,n,o=[],a=[],s=ue[e+" "];if(!s){for(i=(t=t||Oe(e)).length;i--;)((s=Re(t[i]))[C]?o:a).push(s);(s=ue(e,(v=0<(g=o).length,b=0<(m=a).length,n=function(e,t,i,n,o){var a,s,r,l=0,d="0",c=e&&[],u=[],_=ne,h=e||b&&k.find.TAG("*",o),p=I+=null==_?1:Math.random()||.1,f=h.length;for(o&&(ne=t==E||t||o);d!==f&&null!=(a=h[d]);d++){if(b&&a){for(s=0,t||a.ownerDocument==E||(A(a),i=!x);r=m[s++];)if(r(a,t||E,i)){$.call(n,a);break}o&&(I=p)}v&&((a=!r&&a)&&l--,e)&&c.push(a)}if(l+=d,v&&d!==l){for(s=0;r=g[s++];)r(c,u,t,i);if(e){if(0<l)for(;d--;)c[d]||u[d]||(u[d]=J.call(n));u=Me(u)}$.apply(n,u),o&&!e&&0<u.length&&1<l+g.length&&y.uniqueSort(n)}return o&&(I=p,ne=_),c},v?S(n):n))).selector=e}return s}function qe(e,t,i,n){var o,a,s,r,l,d="function"==typeof e&&e,c=!n&&Oe(e=d.selector||e);if(i=i||[],1===c.length){if(2<(a=c[0]=c[0].slice(0)).length&&"ID"===(s=a[0]).type&&9===t.nodeType&&x&&k.relative[a[1].type]){if(!(t=(k.find.ID(s.matches[0].replace(u,h),t)||[])[0]))return i;d&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(o=we.needsContext.test(e)?0:a.length;o--&&(s=a[o],!k.relative[r=s.type]);)if((l=k.find[r])&&(n=l(s.matches[0].replace(u,h),$e.test(a[0].type)&&je(t.parentNode)||t))){if(a.splice(o,1),e=n.length&&Be(a))break;return $.apply(i,n),i}}return(d||Pe(e,c))(n,t,!x,i,!t||$e.test(e)&&je(t.parentNode)||t),i}De.prototype=k.filters=k.pseudos,k.setFilters=new De,g.sortStable=C.split("").sort(he).join("")===C,A(),g.sortDetached=Se(function(e){return 1&e.compareDocumentPosition(E.createElement("fieldset"))}),y.find=T,y.expr[":"]=y.expr.pseudos,y.unique=y.uniqueSort,T.compile=Pe,T.select=qe,T.setDocument=A,T.tokenize=Oe,T.escape=y.escapeSelector,T.getText=y.text,T.isXML=y.isXMLDoc,T.selectors=y.expr,T.support=y.support,T.uniqueSort=y.uniqueSort;function He(e,t,i){for(var n=[],o=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&y(e).is(i))break;n.push(e)}return n}function Ue(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}var Fe=y.expr.match.needsContext,We=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Ve(e,i,n){return m(i)?y.grep(e,function(e,t){return!!i.call(e,t,e)!==n}):i.nodeType?y.grep(e,function(e){return e===i!==n}):"string"!=typeof i?y.grep(e,function(e){return-1<v.call(i,e)!==n}):y.filter(i,e,n)}y.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?y.find.matchesSelector(n,e)?[n]:[]:y.find.matches(e,y.grep(t,function(e){return 1===e.nodeType}))},y.fn.extend({find:function(e){var t,i,n=this.length,o=this;if("string"!=typeof e)return this.pushStack(y(e).filter(function(){for(t=0;t<n;t++)if(y.contains(o[t],this))return!0}));for(i=this.pushStack([]),t=0;t<n;t++)y.find(e,o[t],i);return 1<n?y.uniqueSort(i):i},filter:function(e){return this.pushStack(Ve(this,e||[],!1))},not:function(e){return this.pushStack(Ve(this,e||[],!0))},is:function(e){return!!Ve(this,"string"==typeof e&&Fe.test(e)?y(e):e||[],!1).length}});var Ge,Xe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ye=((y.fn.init=function(e,t,i){var n,o;if(e){if(i=i||Ge,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==i.ready?i.ready(e):e(y):y.makeArray(e,this);if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:Xe.exec(e))||!n[1]&&t)return(!t||t.jquery?t||i:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof y?t[0]:t,y.merge(this,y.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),We.test(n[1])&&y.isPlainObject(t))for(n in t)m(this[n])?this[n](t[n]):this.attr(n,t[n])}else(o=b.getElementById(n[2]))&&(this[0]=o,this.length=1)}return this}).prototype=y.fn,Ge=y(b),/^(?:parents|prev(?:Until|All))/),Ke={children:!0,contents:!0,next:!0,prev:!0};function Je(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}y.fn.extend({has:function(e){var t=y(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(y.contains(this,t[e]))return!0})},closest:function(e,t){var i,n=0,o=this.length,a=[],s="string"!=typeof e&&y(e);if(!Fe.test(e))for(;n<o;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(s?-1<s.index(i):1===i.nodeType&&y.find.matchesSelector(i,e))){a.push(i);break}return this.pushStack(1<a.length?y.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?v.call(y(e),this[0]):v.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(y.uniqueSort(y.merge(this.get(),y(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),y.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return He(e,"parentNode")},parentsUntil:function(e,t,i){return He(e,"parentNode",i)},next:function(e){return Je(e,"nextSibling")},prev:function(e){return Je(e,"previousSibling")},nextAll:function(e){return He(e,"nextSibling")},prevAll:function(e){return He(e,"previousSibling")},nextUntil:function(e,t,i){return He(e,"nextSibling",i)},prevUntil:function(e,t,i){return He(e,"previousSibling",i)},siblings:function(e){return Ue((e.parentNode||{}).firstChild,e)},children:function(e){return Ue(e.firstChild)},contents:function(e){return null!=e.contentDocument&&M(e.contentDocument)?e.contentDocument:(w(e,"template")&&(e=e.content||e),y.merge([],e.childNodes))}},function(n,o){y.fn[n]=function(e,t){var i=y.map(this,o,e);return(t="Until"!==n.slice(-5)?e:t)&&"string"==typeof t&&(i=y.filter(t,i)),1<this.length&&(Ke[n]||y.uniqueSort(i),Ye.test(n))&&i.reverse(),this.pushStack(i)}});var Qe=/[^\x20\t\r\n\f]+/g;function Ze(e){return e}function et(e){throw e}function tt(e,t,i,n){var o;try{e&&m(o=e.promise)?o.call(e).done(t).fail(i):e&&m(o=e.then)?o.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}y.Callbacks=function(n){var e,i;n="string"==typeof n?(e=n,i={},y.each(e.match(Qe)||[],function(e,t){i[t]=!0}),i):y.extend({},n);function o(){for(r=r||n.once,s=a=!0;d.length;c=-1)for(t=d.shift();++c<l.length;)!1===l[c].apply(t[0],t[1])&&n.stopOnFalse&&(c=l.length,t=!1);n.memory||(t=!1),a=!1,r&&(l=t?[]:"")}var a,t,s,r,l=[],d=[],c=-1,u={add:function(){return l&&(t&&!a&&(c=l.length-1,d.push(t)),function i(e){y.each(e,function(e,t){m(t)?n.unique&&u.has(t)||l.push(t):t&&t.length&&"string"!==X(t)&&i(t)})}(arguments),t)&&!a&&o(),this},remove:function(){return y.each(arguments,function(e,t){for(var i;-1<(i=y.inArray(t,l,i));)l.splice(i,1),i<=c&&c--}),this},has:function(e){return e?-1<y.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return r=d=[],l=t="",this},disabled:function(){return!l},lock:function(){return r=d=[],t||a||(l=t=""),this},locked:function(){return!!r},fireWith:function(e,t){return r||(t=[e,(t=t||[]).slice?t.slice():t],d.push(t),a)||o(),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!s}};return u},y.extend({Deferred:function(e){var a=[["notify","progress",y.Callbacks("memory"),y.Callbacks("memory"),2],["resolve","done",y.Callbacks("once memory"),y.Callbacks("once memory"),0,"resolved"],["reject","fail",y.Callbacks("once memory"),y.Callbacks("once memory"),1,"rejected"]],o="pending",s={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var o=arguments;return y.Deferred(function(n){y.each(a,function(e,t){var i=m(o[t[4]])&&o[t[4]];r[t[1]](function(){var e=i&&i.apply(this,arguments);e&&m(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[t[0]+"With"](this,i?[e]:arguments)})}),o=null}).promise()},then:function(t,i,n){var l=0;function d(o,a,s,r){return function(){function e(){var e,t;if(!(o<l)){if((e=s.apply(i,n))===a.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?r?t.call(e,d(l,a,Ze,r),d(l,a,et,r)):(l++,t.call(e,d(l,a,Ze,r),d(l,a,et,r),d(l,a,Ze,a.notifyWith))):(s!==Ze&&(i=void 0,n=[e]),(r||a.resolveWith)(i,n))}}var i=this,n=arguments,t=r?e:function(){try{e()}catch(e){y.Deferred.exceptionHook&&y.Deferred.exceptionHook(e,t.error),l<=o+1&&(s!==et&&(i=void 0,n=[e]),a.rejectWith(i,n))}};o?t():(y.Deferred.getErrorHook?t.error=y.Deferred.getErrorHook():y.Deferred.getStackHook&&(t.error=y.Deferred.getStackHook()),f.setTimeout(t))}}return y.Deferred(function(e){a[0][3].add(d(0,e,m(n)?n:Ze,e.notifyWith)),a[1][3].add(d(0,e,m(t)?t:Ze)),a[2][3].add(d(0,e,m(i)?i:et))}).promise()},promise:function(e){return null!=e?y.extend(e,s):s}},r={};return y.each(a,function(e,t){var i=t[2],n=t[5];s[t[1]]=i.add,n&&i.add(function(){o=n},a[3-e][2].disable,a[3-e][3].disable,a[0][2].lock,a[0][3].lock),i.add(t[3].fire),r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this},r[t[0]+"With"]=i.fireWith}),s.promise(r),e&&e.call(r,r),r},when:function(e){function t(t){return function(e){o[t]=this,a[t]=1<arguments.length?r.call(arguments):e,--i||s.resolveWith(o,a)}}var i=arguments.length,n=i,o=Array(n),a=r.call(arguments),s=y.Deferred();if(i<=1&&(tt(e,s.done(t(n)).resolve,s.reject,!i),"pending"===s.state()||m(a[n]&&a[n].then)))return s.then();for(;n--;)tt(a[n],t(n),s.reject);return s.promise()}});var it=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,nt=(y.Deferred.exceptionHook=function(e,t){f.console&&f.console.warn&&e&&it.test(e.name)&&f.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},y.readyException=function(e){f.setTimeout(function(){throw e})},y.Deferred());function ot(){b.removeEventListener("DOMContentLoaded",ot),f.removeEventListener("load",ot),y.ready()}y.fn.ready=function(e){return nt.then(e).catch(function(e){y.readyException(e)}),this},y.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--y.readyWait:y.isReady)||(y.isReady=!0)!==e&&0<--y.readyWait||nt.resolveWith(b,[y])}}),y.ready.then=nt.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?f.setTimeout(y.ready):(b.addEventListener("DOMContentLoaded",ot),f.addEventListener("load",ot));function c(e,t,i,n,o,a,s){var r=0,l=e.length,d=null==i;if("object"===X(i))for(r in o=!0,i)c(e,t,r,i[r],!0,a,s);else if(void 0!==n&&(o=!0,m(n)||(s=!0),t=d?s?(t.call(e,n),null):(d=t,function(e,t,i){return d.call(y(e),i)}):t))for(;r<l;r++)t(e[r],i,s?n:n.call(e[r],r,t(e[r],i)));return o?e:d?t.call(e):l?t(e[0],i):a}var at=/^-ms-/,st=/-([a-z])/g;function rt(e,t){return t.toUpperCase()}function p(e){return e.replace(at,"ms-").replace(st,rt)}function lt(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function dt(){this.expando=y.expando+dt.uid++}dt.uid=1,dt.prototype={cache:function(e){var t=e[this.expando];return t||(t={},lt(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,o=this.cache(e);if("string"==typeof t)o[p(t)]=i;else for(n in t)o[p(n)]=t[n];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][p(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(p):(t=p(t))in n?[t]:t.match(Qe)||[]).length;for(;i--;)delete n[t[i]]}void 0!==t&&!y.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&&!y.isEmptyObject(t)}};var L=new dt,d=new dt,ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ut=/[A-Z]/g;function _t(e,t,i){var n,o;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(ut,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===(o=i)||"false"!==o&&("null"===o?null:o===+o+""?+o:ct.test(o)?JSON.parse(o):o)}catch(e){}d.set(e,t,i)}else i=void 0;return i}y.extend({hasData:function(e){return d.hasData(e)||L.hasData(e)},data:function(e,t,i){return d.access(e,t,i)},removeData:function(e,t){d.remove(e,t)},_data:function(e,t,i){return L.access(e,t,i)},_removeData:function(e,t){L.remove(e,t)}}),y.fn.extend({data:function(i,e){var t,n,o,a=this[0],s=a&&a.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){d.set(this,i)}):c(this,function(e){var t;if(a&&void 0===e)return void 0!==(t=d.get(a,i))||void 0!==(t=_t(a,i))?t:void 0;this.each(function(){d.set(this,i,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(o=d.get(a),1===a.nodeType)&&!L.get(a,"hasDataAttrs")){for(t=s.length;t--;)s[t]&&0===(n=s[t].name).indexOf("data-")&&(n=p(n.slice(5)),_t(a,n,o[n]));L.set(a,"hasDataAttrs",!0)}return o},removeData:function(e){return this.each(function(){d.remove(this,e)})}}),y.extend({queue:function(e,t,i){var n;if(e)return n=L.get(e,t=(t||"fx")+"queue"),i&&(!n||Array.isArray(i)?n=L.access(e,t,y.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=y.queue(e,t),n=i.length,o=i.shift(),a=y._queueHooks(e,t);"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===t&&i.unshift("inprogress"),delete a.stop,o.call(e,function(){y.dequeue(e,t)},a)),!n&&a&&a.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return L.get(e,i)||L.access(e,i,{empty:y.Callbacks("once memory").add(function(){L.remove(e,[t+"queue",i])})})}}),y.fn.extend({queue:function(t,i){var e=2;return"string"!=typeof t&&(i=t,t="fx",e--),arguments.length<e?y.queue(this[0],t):void 0===i?this:this.each(function(){var e=y.queue(this,t,i);y._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&y.dequeue(this,t)})},dequeue:function(e){return this.each(function(){y.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function i(){--o||a.resolveWith(s,[s])}var n,o=1,a=y.Deferred(),s=this,r=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(n=L.get(s[r],e+"queueHooks"))&&n.empty&&(o++,n.empty.add(i));return i(),a.promise(t)}});function ht(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&mt(e)&&"none"===y.css(e,"display")}var e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pt=new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i"),j=["Top","Right","Bottom","Left"],ft=b.documentElement,mt=function(e){return y.contains(e.ownerDocument,e)},gt={composed:!0},vt=(ft.getRootNode&&(mt=function(e){return y.contains(e.ownerDocument,e)||e.getRootNode(gt)===e.ownerDocument}),{});function bt(e,t){for(var i,n,o,a,s,r,l=[],d=0,c=e.length;d<c;d++)(n=e[d]).style&&(i=n.style.display,t?("none"===i&&(l[d]=L.get(n,"display")||null,l[d]||(n.style.display="")),""===n.style.display&&ht(n)&&(l[d]=(r=a=o=void 0,a=n.ownerDocument,(r=vt[s=n.nodeName])||(o=a.body.appendChild(a.createElement(s)),r=y.css(o,"display"),o.parentNode.removeChild(o),vt[s]=r="none"===r?"block":r)))):"none"!==i&&(l[d]="none",L.set(n,"display",i)));for(d=0;d<c;d++)null!=l[d]&&(e[d].style.display=l[d]);return e}y.fn.extend({show:function(){return bt(this,!0)},hide:function(){return bt(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ht(this)?y(this).show():y(this).hide()})}});var yt=/^(?:checkbox|radio)$/i,wt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,kt=/^$|^module$|\/(?:java|ecma)script/i,s=b.createDocumentFragment().appendChild(b.createElement("div")),D=((l=b.createElement("input")).setAttribute("type","radio"),l.setAttribute("checked","checked"),l.setAttribute("name","t"),s.appendChild(l),g.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,s.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!s.cloneNode(!0).lastChild.defaultValue,s.innerHTML="<option></option>",g.option=!!s.lastChild,{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 O(e,t){var i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&w(e,t)?y.merge([e],i):i}function Et(e,t){for(var i=0,n=e.length;i<n;i++)L.set(e[i],"globalEval",!t||L.get(t[i],"globalEval"))}D.tbody=D.tfoot=D.colgroup=D.caption=D.thead,D.th=D.td,g.option||(D.optgroup=D.option=[1,"<select multiple='multiple'>","</select>"]);var xt=/<|&#?\w+;/;function $t(e,t,i,n,o){for(var a,s,r,l,d,c=t.createDocumentFragment(),u=[],_=0,h=e.length;_<h;_++)if((a=e[_])||0===a)if("object"===X(a))y.merge(u,a.nodeType?[a]:a);else if(xt.test(a)){for(s=s||c.appendChild(t.createElement("div")),r=(wt.exec(a)||["",""])[1].toLowerCase(),r=D[r]||D._default,s.innerHTML=r[1]+y.htmlPrefilter(a)+r[2],d=r[0];d--;)s=s.lastChild;y.merge(u,s.childNodes),(s=c.firstChild).textContent=""}else u.push(t.createTextNode(a));for(c.textContent="",_=0;a=u[_++];)if(n&&-1<y.inArray(a,n))o&&o.push(a);else if(l=mt(a),s=O(c.appendChild(a),"script"),l&&Et(s),i)for(d=0;a=s[d++];)kt.test(a.type||"")&&i.push(a);return c}var Ct=/^([^.]*)(?:\.(.+)|)/;function It(){return!0}function Tt(){return!1}function St(e,t,i,n,o,a){var s,r;if("object"==typeof t){for(r in"string"!=typeof i&&(n=n||i,i=void 0),t)St(e,r,i,n,t[r],a);return e}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),!1===o)o=Tt;else if(!o)return e;return 1===a&&(s=o,(o=function(e){return y().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=y.guid++)),e.each(function(){y.event.add(this,t,o,n,i)})}function At(e,n,t){t?(L.set(e,n,!1),y.event.add(e,n,{namespace:!1,handler:function(e){var t,i=L.get(this,n);if(1&e.isTrigger&&this[n]){if(i)(y.event.special[n]||{}).delegateType&&e.stopPropagation();else if(i=r.call(arguments),L.set(this,n,i),this[n](),t=L.get(this,n),L.set(this,n,!1),i!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else i&&(L.set(this,n,y.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=It)}})):void 0===L.get(e,n)&&y.event.add(e,n,It)}y.event={global:{},add:function(t,e,i,n,o){var a,s,r,l,d,c,u,_,h,p=L.get(t);if(lt(t))for(i.handler&&(i=(a=i).handler,o=a.selector),o&&y.find.matchesSelector(ft,o),i.guid||(i.guid=y.guid++),r=(r=p.events)||(p.events=Object.create(null)),s=(s=p.handle)||(p.handle=function(e){return void 0!==y&&y.event.triggered!==e.type?y.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(Qe)||[""]).length;l--;)u=h=(_=Ct.exec(e[l])||[])[1],_=(_[2]||"").split(".").sort(),u&&(d=y.event.special[u]||{},u=(o?d.delegateType:d.bindType)||u,d=y.event.special[u]||{},h=y.extend({type:u,origType:h,data:n,handler:i,guid:i.guid,selector:o,needsContext:o&&y.expr.match.needsContext.test(o),namespace:_.join(".")},a),(c=r[u])||((c=r[u]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,n,_,s))||t.addEventListener&&t.addEventListener(u,s),d.add&&(d.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),o?c.splice(c.delegateCount++,0,h):c.push(h),y.event.global[u]=!0)},remove:function(e,t,i,n,o){var a,s,r,l,d,c,u,_,h,p,f,m=L.hasData(e)&&L.get(e);if(m&&(l=m.events)){for(d=(t=(t||"").match(Qe)||[""]).length;d--;)if(h=f=(r=Ct.exec(t[d])||[])[1],p=(r[2]||"").split(".").sort(),h){for(u=y.event.special[h]||{},_=l[h=(n?u.delegateType:u.bindType)||h]||[],r=r[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=a=_.length;a--;)c=_[a],!o&&f!==c.origType||i&&i.guid!==c.guid||r&&!r.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(_.splice(a,1),c.selector&&_.delegateCount--,u.remove&&u.remove.call(e,c));s&&!_.length&&(u.teardown&&!1!==u.teardown.call(e,p,m.handle)||y.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)y.event.remove(e,h+t[d],i,n,!0);y.isEmptyObject(l)&&L.remove(e,"handle events")}},dispatch:function(e){var t,i,n,o,a,s=new Array(arguments.length),r=y.event.fix(e),l=(L.get(this,"events")||Object.create(null))[r.type]||[],d=y.event.special[r.type]||{};for(s[0]=r,t=1;t<arguments.length;t++)s[t]=arguments[t];if(r.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,r)){for(a=y.event.handlers.call(this,r,l),t=0;(n=a[t++])&&!r.isPropagationStopped();)for(r.currentTarget=n.elem,i=0;(o=n.handlers[i++])&&!r.isImmediatePropagationStopped();)r.rnamespace&&!1!==o.namespace&&!r.rnamespace.test(o.namespace)||(r.handleObj=o,r.data=o.data,void 0!==(o=((y.event.special[o.origType]||{}).handle||o.handler).apply(n.elem,s))&&!1===(r.result=o)&&(r.preventDefault(),r.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,r),r.result}},handlers:function(e,t){var i,n,o,a,s,r=[],l=t.delegateCount,d=e.target;if(l&&d.nodeType&&!("click"===e.type&&1<=e.button))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&("click"!==e.type||!0!==d.disabled)){for(a=[],s={},i=0;i<l;i++)void 0===s[o=(n=t[i]).selector+" "]&&(s[o]=n.needsContext?-1<y(o,this).index(d):y.find(o,this,null,[d]).length),s[o]&&a.push(n);a.length&&r.push({elem:d,handlers:a})}return d=this,l<t.length&&r.push({elem:d,handlers:t.slice(l)}),r},addProp:function(t,e){Object.defineProperty(y.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[y.expando]?e:new y.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return yt.test(t.type)&&t.click&&w(t,"input")&&At(t,"click",!0),!1},trigger:function(e){var t=this||e;return yt.test(t.type)&&t.click&&w(t,"input")&&At(t,"click"),!0},_default:function(e){var t=e.target;return yt.test(t.type)&&t.click&&w(t,"input")&&L.get(t,"click")||w(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},y.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},y.Event=function(e,t){if(!(this instanceof y.Event))return new y.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?It:Tt,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&&y.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[y.expando]=!0},y.Event.prototype={constructor:y.Event,isDefaultPrevented:Tt,isPropagationStopped:Tt,isImmediatePropagationStopped:Tt,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=It,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=It,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=It,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},y.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},y.event.addProp),y.each({focus:"focusin",blur:"focusout"},function(n,o){function a(e){var t,i;b.documentMode?(t=L.get(this,"handle"),(i=y.event.fix(e)).type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,t(e),i.target===i.currentTarget&&t(i)):y.event.simulate(o,e.target,y.event.fix(e))}y.event.special[n]={setup:function(){var e;if(At(this,n,!0),!b.documentMode)return!1;(e=L.get(this,o))||this.addEventListener(o,a),L.set(this,o,(e||0)+1)},trigger:function(){return At(this,n),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=L.get(this,o)-1)?L.set(this,o,e):(this.removeEventListener(o,a),L.remove(this,o))},_default:function(e){return L.get(e.target,n)},delegateType:o},y.event.special[o]={setup:function(){var e=this.ownerDocument||this.document||this,t=b.documentMode?this:e,i=L.get(t,o);i||(b.documentMode?this.addEventListener(o,a):e.addEventListener(n,a,!0)),L.set(t,o,(i||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=b.documentMode?this:e,i=L.get(t,o)-1;i?L.set(t,o,i):(b.documentMode?this.removeEventListener(o,a):e.removeEventListener(n,a,!0),L.remove(t,o))}}}),y.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,o){y.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,i=e.relatedTarget,n=e.handleObj;return i&&(i===this||y.contains(this,i))||(e.type=n.origType,t=n.handler.apply(this,arguments),e.type=o),t}}}),y.fn.extend({on:function(e,t,i,n){return St(this,e,t,i,n)},one:function(e,t,i,n){return St(this,e,t,i,n,1)},off:function(e,t,i){var n,o;if(e&&e.preventDefault&&e.handleObj)n=e.handleObj,y(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=Tt),this.each(function(){y.event.remove(this,e,i,t)});for(o in e)this.off(o,t,e[o])}return this}});var Lt=/<script|<style|<link/i,jt=/checked\s*(?:[^=]|=\s*.checked.)/i,Dt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ot(e,t){return w(e,"table")&&w(11!==t.nodeType?t:t.firstChild,"tr")&&y(e).children("tbody")[0]||e}function Bt(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Nt(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function zt(e,t){var i,n,o,a,s;if(1===t.nodeType){if(L.hasData(e)&&(s=L.get(e).events))for(o in L.remove(t,"handle events"),s)for(i=0,n=s[o].length;i<n;i++)y.event.add(t,o,s[o][i]);d.hasData(e)&&(a=d.access(e),a=y.extend({},a),d.set(t,a))}}function Mt(i,n,o,a){n=R(n);var e,t,s,r,l,d,c=0,u=i.length,_=u-1,h=n[0],p=m(h);if(p||1<u&&"string"==typeof h&&!g.checkClone&&jt.test(h))return i.each(function(e){var t=i.eq(e);p&&(n[0]=h.call(this,e,t.html())),Mt(t,n,o,a)});if(u&&(t=(e=$t(n,i[0].ownerDocument,!1,i,a)).firstChild,1===e.childNodes.length&&(e=t),t||a)){for(r=(s=y.map(O(e,"script"),Bt)).length;c<u;c++)l=e,c!==_&&(l=y.clone(l,!0,!0),r)&&y.merge(s,O(l,"script")),o.call(i[c],l,c);if(r)for(d=s[s.length-1].ownerDocument,y.map(s,Nt),c=0;c<r;c++)l=s[c],kt.test(l.type||"")&&!L.access(l,"globalEval")&&y.contains(d,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?y._evalUrl&&!l.noModule&&y._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},d):G(l.textContent.replace(Dt,""),l,d))}return i}function Rt(e,t,i){for(var n,o=t?y.filter(t,e):e,a=0;null!=(n=o[a]);a++)i||1!==n.nodeType||y.cleanData(O(n)),n.parentNode&&(i&&mt(n)&&Et(O(n,"script")),n.parentNode.removeChild(n));return e}y.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var n,o,a,s,r,l,d,c=e.cloneNode(!0),u=mt(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||y.isXMLDoc(e)))for(s=O(c),n=0,o=(a=O(e)).length;n<o;n++)r=a[n],"input"===(d=(l=s[n]).nodeName.toLowerCase())&&yt.test(r.type)?l.checked=r.checked:"input"!==d&&"textarea"!==d||(l.defaultValue=r.defaultValue);if(t)if(i)for(a=a||O(e),s=s||O(c),n=0,o=a.length;n<o;n++)zt(a[n],s[n]);else zt(e,c);return 0<(s=O(c,"script")).length&&Et(s,!u&&O(e,"script")),c},cleanData:function(e){for(var t,i,n,o=y.event.special,a=0;void 0!==(i=e[a]);a++)if(lt(i)){if(t=i[L.expando]){if(t.events)for(n in t.events)o[n]?y.event.remove(i,n):y.removeEvent(i,n,t.handle);i[L.expando]=void 0}i[d.expando]&&(i[d.expando]=void 0)}}}),y.fn.extend({detach:function(e){return Rt(this,e,!0)},remove:function(e){return Rt(this,e)},text:function(e){return c(this,function(e){return void 0===e?y.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 Mt(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ot(this,e).appendChild(e)})},prepend:function(){return Mt(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Ot(this,e)).insertBefore(e,t.firstChild)})},before:function(){return Mt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Mt(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&&(y.cleanData(O(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return y.clone(this,e,t)})},html:function(e){return c(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&&!Lt.test(e)&&!D[(wt.exec(e)||["",""])[1].toLowerCase()]){e=y.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(y.cleanData(O(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var i=[];return Mt(this,arguments,function(e){var t=this.parentNode;y.inArray(this,i)<0&&(y.cleanData(O(this)),t)&&t.replaceChild(e,this)},i)}}),y.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,s){y.fn[e]=function(e){for(var t,i=[],n=y(e),o=n.length-1,a=0;a<=o;a++)t=a===o?this:this.clone(!0),y(n[a])[s](t),P.apply(i,t.get());return this.pushStack(i)}});function Pt(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:f).getComputedStyle(e)}function qt(e,t,i){var n,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in n=i.call(e),t)e.style[o]=a[o];return n}var Ht,Ut,Ft,Wt,Vt,Gt,Xt,B,Yt=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),Kt=/^--/,Jt=new RegExp(j.join("|"),"i");function Qt(e,t,i){var n,o,a,s=Kt.test(t),r=e.style;return(i=i||Pt(e))&&(a=i.getPropertyValue(t)||i[t],""!==(a=s?a&&(a.replace(ee,"$1")||void 0):a)||mt(e)||(a=y.style(e,t)),!g.pixelBoxStyles())&&Yt.test(a)&&Jt.test(t)&&(s=r.width,n=r.minWidth,o=r.maxWidth,r.minWidth=r.maxWidth=r.width=a,a=i.width,r.width=s,r.minWidth=n,r.maxWidth=o),void 0!==a?a+"":a}function Zt(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function ei(){var e;B&&(Xt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",B.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ft.appendChild(Xt).appendChild(B),e=f.getComputedStyle(B),Ht="1%"!==e.top,Gt=12===ti(e.marginLeft),B.style.right="60%",Wt=36===ti(e.right),Ut=36===ti(e.width),B.style.position="absolute",Ft=12===ti(B.offsetWidth/3),ft.removeChild(Xt),B=null)}function ti(e){return Math.round(parseFloat(e))}Xt=b.createElement("div"),(B=b.createElement("div")).style&&(B.style.backgroundClip="content-box",B.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===B.style.backgroundClip,y.extend(g,{boxSizingReliable:function(){return ei(),Ut},pixelBoxStyles:function(){return ei(),Wt},pixelPosition:function(){return ei(),Ht},reliableMarginLeft:function(){return ei(),Gt},scrollboxSize:function(){return ei(),Ft},reliableTrDimensions:function(){var e,t,i;return null==Vt&&(e=b.createElement("table"),t=b.createElement("tr"),i=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",ft.appendChild(e).appendChild(t).appendChild(i),i=f.getComputedStyle(t),Vt=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ft.removeChild(e)),Vt}}));var ii=["Webkit","Moz","ms"],ni=b.createElement("div").style,oi={};function ai(e){return y.cssProps[e]||oi[e]||(e in ni?e:oi[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=ii.length;i--;)if((e=ii[i]+t)in ni)return e}(e)||e)}var si=/^(none|table(?!-c[ea]).+)/,ri={position:"absolute",visibility:"hidden",display:"block"},li={letterSpacing:"0",fontWeight:"400"};function di(e,t,i){var n=pt.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function ci(e,t,i,n,o,a){var s="width"===t?1:0,r=0,l=0,d=0;if(i===(n?"border":"content"))return 0;for(;s<4;s+=2)"margin"===i&&(d+=y.css(e,i+j[s],!0,o)),n?("content"===i&&(l-=y.css(e,"padding"+j[s],!0,o)),"margin"!==i&&(l-=y.css(e,"border"+j[s]+"Width",!0,o))):(l+=y.css(e,"padding"+j[s],!0,o),"padding"!==i?l+=y.css(e,"border"+j[s]+"Width",!0,o):r+=y.css(e,"border"+j[s]+"Width",!0,o));return!n&&0<=a&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-r-.5))||0),l+d}function ui(e,t,i){var n=Pt(e),o=(!g.boxSizingReliable()||i)&&"border-box"===y.css(e,"boxSizing",!1,n),a=o,s=Qt(e,t,n),r="offset"+t[0].toUpperCase()+t.slice(1);if(Yt.test(s)){if(!i)return s;s="auto"}return(!g.boxSizingReliable()&&o||!g.reliableTrDimensions()&&w(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===y.css(e,"display",!1,n))&&e.getClientRects().length&&(o="border-box"===y.css(e,"boxSizing",!1,n),a=r in e)&&(s=e[r]),(s=parseFloat(s)||0)+ci(e,t,i||(o?"border":"content"),a,n,s)+"px"}y.extend({cssHooks:{opacity:{get:function(e,t){var i;if(t)return""===(i=Qt(e,"opacity"))?"1":i}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,r=p(t),l=Kt.test(t),d=e.style;if(l||(t=ai(r)),s=y.cssHooks[t]||y.cssHooks[r],void 0===i)return s&&"get"in s&&void 0!==(o=s.get(e,!1,n))?o:d[t];"string"==(a=typeof i)&&(o=pt.exec(i))&&o[1]&&(i=function(e,t,i){var n,o,a=20,s=function(){return y.css(e,t,"")},r=s(),l=i&&i[3]||(y.cssNumber[t]?"":"px"),d=e.nodeType&&(y.cssNumber[t]||"px"!==l&&+r)&&pt.exec(y.css(e,t));if(d&&d[3]!==l){for(l=l||d[3],d=+(r/=2)||1;a--;)y.style(e,t,d+l),(1-o)*(1-(o=s()/r||.5))<=0&&(a=0),d/=o;y.style(e,t,(d*=2)+l),i=i||[]}return i&&(d=+d||+r||0,n=i[1]?d+(i[1]+1)*i[2]:+i[2]),n}(e,t,o),a="number"),null!=i&&i==i&&("number"!==a||l||(i+=o&&o[3]||(y.cssNumber[r]?"":"px")),g.clearCloneStyle||""!==i||0!==t.indexOf("background")||(d[t]="inherit"),s&&"set"in s&&void 0===(i=s.set(e,i,n))||(l?d.setProperty(t,i):d[t]=i))}},css:function(e,t,i,n){var o,a=p(t);return Kt.test(t)||(t=ai(a)),"normal"===(o=void 0===(o=(a=y.cssHooks[t]||y.cssHooks[a])&&"get"in a?a.get(e,!0,i):o)?Qt(e,t,n):o)&&t in li&&(o=li[t]),(""===i||i)&&(a=parseFloat(o),!0===i||isFinite(a))?a||0:o}}),y.each(["height","width"],function(e,r){y.cssHooks[r]={get:function(e,t,i){if(t)return!si.test(y.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ui(e,r,i):qt(e,ri,function(){return ui(e,r,i)})},set:function(e,t,i){var n=Pt(e),o=!g.scrollboxSize()&&"absolute"===n.position,a=(o||i)&&"border-box"===y.css(e,"boxSizing",!1,n),s=i?ci(e,r,i,a,n):0;return a&&o&&(s-=Math.ceil(e["offset"+r[0].toUpperCase()+r.slice(1)]-parseFloat(n[r])-ci(e,r,"border",!1,n)-.5)),s&&(a=pt.exec(t))&&"px"!==(a[3]||"px")&&(e.style[r]=t,t=y.css(e,r)),di(0,t,s)}}}),y.cssHooks.marginLeft=Zt(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Qt(e,"marginLeft"))||e.getBoundingClientRect().left-qt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),y.each({margin:"",padding:"",border:"Width"},function(o,a){y.cssHooks[o+a]={expand:function(e){for(var t=0,i={},n="string"==typeof e?e.split(" "):[e];t<4;t++)i[o+j[t]+a]=n[t]||n[t-2]||n[0];return i}},"margin"!==o&&(y.cssHooks[o+a].set=di)}),y.fn.extend({css:function(e,t){return c(this,function(e,t,i){var n,o,a={},s=0;if(Array.isArray(t)){for(n=Pt(e),o=t.length;s<o;s++)a[t[s]]=y.css(e,t[s],!1,n);return a}return void 0!==i?y.style(e,t,i):y.css(e,t)},e,t,1<arguments.length)}}),y.fn.delay=function(n,e){return n=y.fx&&y.fx.speeds[n]||n,this.queue(e=e||"fx",function(e,t){var i=f.setTimeout(e,n);t.stop=function(){f.clearTimeout(i)}})},l=b.createElement("input"),s=b.createElement("select").appendChild(b.createElement("option")),l.type="checkbox",g.checkOn=""!==l.value,g.optSelected=s.selected,(l=b.createElement("input")).value="t",l.type="radio",g.radioValue="t"===l.value;var _i,hi=y.expr.attrHandle,pi=(y.fn.extend({attr:function(e,t){return c(this,y.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){y.removeAttr(this,e)})}}),y.extend({attr:function(e,t,i){var n,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?y.prop(e,t,i):(1===a&&y.isXMLDoc(e)||(o=y.attrHooks[t.toLowerCase()]||(y.expr.match.bool.test(t)?_i:void 0)),void 0!==i?null===i?void y.removeAttr(e,t):o&&"set"in o&&void 0!==(n=o.set(e,i,t))?n:(e.setAttribute(t,i+""),i):!(o&&"get"in o&&null!==(n=o.get(e,t)))&&null==(n=y.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){var i;if(!g.radioValue&&"radio"===t&&w(e,"input"))return i=e.value,e.setAttribute("type",t),i&&(e.value=i),t}}},removeAttr:function(e,t){var i,n=0,o=t&&t.match(Qe);if(o&&1===e.nodeType)for(;i=o[n++];)e.removeAttribute(i)}}),_i={set:function(e,t,i){return!1===t?y.removeAttr(e,i):e.setAttribute(i,i),i}},y.each(y.expr.match.bool.source.match(/\w+/g),function(e,t){var s=hi[t]||y.find.attr;hi[t]=function(e,t,i){var n,o,a=t.toLowerCase();return i||(o=hi[a],hi[a]=n,n=null!=s(e,t,i)?a:null,hi[a]=o),n}}),/^(?:input|select|textarea|button)$/i),fi=/^(?:a|area)$/i;function mi(e){return(e.match(Qe)||[]).join(" ")}function gi(e){return e.getAttribute&&e.getAttribute("class")||""}function vi(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Qe)||[]}y.fn.extend({prop:function(e,t){return c(this,y.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[y.propFix[e]||e]})}}),y.extend({prop:function(e,t,i){var n,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&y.isXMLDoc(e)||(t=y.propFix[t]||t,o=y.propHooks[t]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(e,i,t))?n:e[t]=i:o&&"get"in o&&null!==(n=o.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=y.find.attr(e,"tabindex");return t?parseInt(t,10):pi.test(e.nodeName)||fi.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(y.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}}),y.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){y.propFix[this.toLowerCase()]=this}),y.fn.extend({addClass:function(t){var e,i,n,o,a,s;return m(t)?this.each(function(e){y(this).addClass(t.call(this,e,gi(this)))}):(e=vi(t)).length?this.each(function(){if(n=gi(this),i=1===this.nodeType&&" "+mi(n)+" "){for(a=0;a<e.length;a++)o=e[a],i.indexOf(" "+o+" ")<0&&(i+=o+" ");s=mi(i),n!==s&&this.setAttribute("class",s)}}):this},removeClass:function(t){var e,i,n,o,a,s;return m(t)?this.each(function(e){y(this).removeClass(t.call(this,e,gi(this)))}):arguments.length?(e=vi(t)).length?this.each(function(){if(n=gi(this),i=1===this.nodeType&&" "+mi(n)+" "){for(a=0;a<e.length;a++)for(o=e[a];-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");s=mi(i),n!==s&&this.setAttribute("class",s)}}):this:this.attr("class","")},toggleClass:function(t,i){var e,n,o,a,s=typeof t,r="string"==s||Array.isArray(t);return m(t)?this.each(function(e){y(this).toggleClass(t.call(this,e,gi(this),i),i)}):"boolean"==typeof i&&r?i?this.addClass(t):this.removeClass(t):(e=vi(t),this.each(function(){if(r)for(a=y(this),o=0;o<e.length;o++)n=e[o],a.hasClass(n)?a.removeClass(n):a.addClass(n);else void 0!==t&&"boolean"!=s||((n=gi(this))&&L.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",!n&&!1!==t&&L.get(this,"__className__")||""))}))},hasClass:function(e){for(var t,i=0,n=" "+e+" ";t=this[i++];)if(1===t.nodeType&&-1<(" "+mi(gi(t))+" ").indexOf(n))return!0;return!1}});function bi(e){e.stopPropagation()}var yi=/\r/g,wi=(y.fn.extend({val:function(i){var n,e,o,t=this[0];return arguments.length?(o=m(i),this.each(function(e){var t;1===this.nodeType&&(null==(t=o?i.call(this,e,y(this).val()):i)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=y.map(t,function(e){return null==e?"":e+""})),(n=y.valHooks[this.type]||y.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):t?(n=y.valHooks[t.type]||y.valHooks[t.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(yi,""):null==e?"":e:void 0}}),y.extend({valHooks:{option:{get:function(e){var t=y.find.attr(e,"value");return null!=t?t:mi(y.text(e))}},select:{get:function(e){for(var t,i=e.options,n=e.selectedIndex,o="select-one"===e.type,a=o?null:[],s=o?n+1:i.length,r=n<0?s:o?n:0;r<s;r++)if(((t=i[r]).selected||r===n)&&!t.disabled&&(!t.parentNode.disabled||!w(t.parentNode,"optgroup"))){if(t=y(t).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var i,n,o=e.options,a=y.makeArray(t),s=o.length;s--;)((n=o[s]).selected=-1<y.inArray(y.valHooks.option.get(n),a))&&(i=!0);return i||(e.selectedIndex=-1),a}}}}),y.each(["radio","checkbox"],function(){y.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<y.inArray(y(e).val(),t)}},g.checkOn||(y.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new f.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||y.error("Invalid XML: "+(i?y.map(i.childNodes,function(e){return e.textContent}).join("\n"):e)),t},/^(?:focusinfocus|focusoutblur)$/);y.extend(y.event,{trigger:function(e,t,i,n){var o,a,s,r,l,d,c,u=[i||b],_=U.call(e,"type")?e.type:e,h=U.call(e,"namespace")?e.namespace.split("."):[],p=c=a=i=i||b;if(3!==i.nodeType&&8!==i.nodeType&&!wi.test(_+y.event.triggered)&&(-1<_.indexOf(".")&&(_=(h=_.split(".")).shift(),h.sort()),r=_.indexOf(":")<0&&"on"+_,(e=e[y.expando]?e:new y.Event(_,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:y.makeArray(t,[e]),d=y.event.special[_]||{},n||!d.trigger||!1!==d.trigger.apply(i,t))){if(!n&&!d.noBubble&&!z(i)){for(s=d.delegateType||_,wi.test(s+_)||(p=p.parentNode);p;p=p.parentNode)u.push(p),a=p;a===(i.ownerDocument||b)&&u.push(a.defaultView||a.parentWindow||f)}for(o=0;(p=u[o++])&&!e.isPropagationStopped();)c=p,e.type=1<o?s:d.bindType||_,(l=(L.get(p,"events")||Object.create(null))[e.type]&&L.get(p,"handle"))&&l.apply(p,t),(l=r&&p[r])&&l.apply&&lt(p)&&(e.result=l.apply(p,t),!1===e.result)&&e.preventDefault();return e.type=_,n||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(u.pop(),t)||!lt(i)||r&&m(i[_])&&!z(i)&&((a=i[r])&&(i[r]=null),y.event.triggered=_,e.isPropagationStopped()&&c.addEventListener(_,bi),i[_](),e.isPropagationStopped()&&c.removeEventListener(_,bi),y.event.triggered=void 0,a)&&(i[r]=a),e.result}},simulate:function(e,t,i){var n=y.extend(new y.Event,i,{type:e,isSimulated:!0});y.event.trigger(n,null,t)}}),y.fn.extend({trigger:function(e,t){return this.each(function(){y.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return y.event.trigger(e,t,i,!0)}});var ki=/\[\]$/,Ei=/\r?\n/g,xi=/^(?:submit|button|image|reset|file)$/i,$i=/^(?:input|select|textarea|keygen)/i;y.param=function(e,t){function i(e,t){var i=m(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)}var n,o=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!y.isPlainObject(e))y.each(e,function(){i(this.name,this.value)});else for(n in e)!function i(n,e,o,a){if(Array.isArray(e))y.each(e,function(e,t){o||ki.test(n)?a(n,t):i(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,o,a)});else if(o||"object"!==X(e))a(n,e);else for(var t in e)i(n+"["+t+"]",e[t],o,a)}(n,e[n],t,i);return o.join("&")},y.fn.extend({serialize:function(){return y.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=y.prop(this,"elements");return e?y.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!y(this).is(":disabled")&&$i.test(this.nodeName)&&!xi.test(e)&&(this.checked||!yt.test(e))}).map(function(e,t){var i=y(this).val();return null==i?null:Array.isArray(i)?y.map(i,function(e){return{name:t.name,value:e.replace(Ei,"\r\n")}}):{name:t.name,value:i.replace(Ei,"\r\n")}}).get()}}),y.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=y(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(i){return m(i)?this.each(function(e){y(this).wrapInner(i.call(this,e))}):this.each(function(){var e=y(this),t=e.contents();t.length?t.wrapAll(i):e.append(i)})},wrap:function(t){var i=m(t);return this.each(function(e){y(this).wrapAll(i?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){y(this).replaceWith(this.childNodes)}),this}}),y.expr.pseudos.hidden=function(e){return!y.expr.pseudos.visible(e)},y.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},g.createHTMLDocument=((e=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===e.childNodes.length),y.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(g.createHTMLDocument?((o=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(o)):t=b),o=!i&&[],(n=We.exec(e))?[t.createElement(n[1])]:(n=$t([e],t,o),o&&o.length&&y(o).remove(),y.merge([],n.childNodes)));var n,o},y.offset={setOffset:function(e,t,i){var n,o,a,s,r=y.css(e,"position"),l=y(e),d={};"static"===r&&(e.style.position="relative"),a=l.offset(),n=y.css(e,"top"),s=y.css(e,"left"),r=("absolute"===r||"fixed"===r)&&-1<(n+s).indexOf("auto")?(o=(r=l.position()).top,r.left):(o=parseFloat(n)||0,parseFloat(s)||0),null!=(t=m(t)?t.call(e,i,y.extend({},a)):t).top&&(d.top=t.top-a.top+o),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):l.css(d)}},y.fn.extend({offset:function(t){var e,i;return arguments.length?void 0===t?this:this.each(function(e){y.offset.setOffset(this,t,e)}):(i=this[0])?i.getClientRects().length?(e=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],o={top:0,left:0};if("fixed"===y.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===y.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((o=y(e).offset()).top+=y.css(e,"borderTopWidth",!0),o.left+=y.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-y.css(n,"marginTop",!0),left:t.left-o.left-y.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===y.css(e,"position");)e=e.offsetParent;return e||ft})}}),y.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var a="pageYOffset"===o;y.fn[t]=function(e){return c(this,function(e,t,i){var n;if(z(e)?n=e:9===e.nodeType&&(n=e.defaultView),void 0===i)return n?n[o]:e[t];n?n.scrollTo(a?n.pageXOffset:i,a?i:n.pageYOffset):e[t]=i},t,e,arguments.length)}}),y.each(["top","left"],function(e,i){y.cssHooks[i]=Zt(g.pixelPosition,function(e,t){if(t)return t=Qt(e,i),Yt.test(t)?y(e).position()[i]+"px":t})}),y.each({Height:"height",Width:"width"},function(s,r){y.each({padding:"inner"+s,content:r,"":"outer"+s},function(n,a){y.fn[a]=function(e,t){var i=arguments.length&&(n||"boolean"!=typeof e),o=n||(!0===e||!0===t?"margin":"border");return c(this,function(e,t,i){var n;return z(e)?0===a.indexOf("outer")?e["inner"+s]:e.document.documentElement["client"+s]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+s],n["scroll"+s],e.body["offset"+s],n["offset"+s],n["client"+s])):void 0===i?y.css(e,t,o):y.style(e,t,i,o)},r,i?e:void 0,i)}})}),y.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),y.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,i){y.fn[i]=function(e,t){return 0<arguments.length?this.on(i,null,e,t):this.trigger(i)}});var Ci=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g,Ii=(y.proxy=function(e,t){var i,n;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return i=r.call(arguments,2),(n=function(){return e.apply(t||this,i.concat(r.call(arguments)))}).guid=e.guid=e.guid||y.guid++,n},y.holdReady=function(e){e?y.readyWait++:y.ready(!0)},y.isArray=Array.isArray,y.parseJSON=JSON.parse,y.nodeName=w,y.isFunction=m,y.isWindow=z,y.camelCase=p,y.type=X,y.now=Date.now,y.isNumeric=function(e){var t=y.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},y.trim=function(e){return null==e?"":(e+"").replace(Ci,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return y}),f.jQuery),Ti=f.$;return y.noConflict=function(e){return f.$===y&&(f.$=Ti),e&&f.jQuery===y&&(f.jQuery=Ii),y},void 0===N&&(f.jQuery=f.$=y),y}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,function(){const N="transitionend",z=t=>{let i=t.getAttribute("data-bs-target");if(!i||"#"===i){let e=t.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e="#"+e.split("#")[1]),i=e&&"#"!==e?e.trim():null}return i},M=e=>{var t=z(e);return t&&document.querySelector(t)?t:null},a=e=>{var t=z(e);return t?document.querySelector(t):null},R=e=>{e.dispatchEvent(new Event(N))},s=e=>!(!e||"object"!=typeof e)&&void 0!==(e=void 0!==e.jquery?e[0]:e).nodeType,o=e=>s(e)?e.jquery?e[0]:e:"string"==typeof e&&0<e.length?document.querySelector(e):null,i=(n,o,a)=>{Object.keys(a).forEach(e=>{var t=a[e],i=o[e],i=i&&s(i)?"element":null==i?""+i:{}.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(t).test(i))throw new TypeError(n.toUpperCase()+`: Option "${e}" provided type "${i}" but expected type "${t}".`)})},P=e=>!(!s(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility"),r=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),q=e=>{var t;return document.documentElement.attachShadow?"function"==typeof e.getRootNode?(t=e.getRootNode())instanceof ShadowRoot?t:null:e instanceof ShadowRoot?e:e.parentNode?q(e.parentNode):null:null},H=()=>{},h=e=>{e.offsetHeight},U=()=>{var e=window.jQuery;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null},F=[],n=()=>"rtl"===document.documentElement.dir,e=n=>{var e=()=>{const e=U();if(e){const t=n.NAME,i=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=i,n.jQueryInterface)}};"loading"===document.readyState?(F.length||document.addEventListener("DOMContentLoaded",()=>{F.forEach(e=>e())}),F.push(e)):e()},l=e=>{"function"==typeof e&&e()},W=(i,o,e=!0)=>{if(e){var n=(()=>{if(!o)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(o);var i=Number.parseFloat(e),n=Number.parseFloat(t);return i||n?(e=e.split(",")[0],t=t.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(t))):0})()+5;let t=!1;const a=({target:e})=>{e===o&&(t=!0,o.removeEventListener(N,a),l(i))};o.addEventListener(N,a),setTimeout(()=>{t||R(o)},n)}else l(i)},V=(e,t,i,n)=>{let o=e.indexOf(t);var a;return-1===o?e[!i&&n?e.length-1:0]:(a=e.length,o+=i?1:-1,n&&(o=(o+a)%a),e[Math.max(0,Math.min(o,a-1))])},G=/[^.]*(?=\..*)\.|.*/,X=/\..*/,Y=/::\d+$/,K={};let J=1;const Q={mouseenter:"mouseover",mouseleave:"mouseout"},Z=/^(mouseenter|mouseleave)/i,ee=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function te(e,t){return t&&t+"::"+J++||e.uidEvent||J++}function ie(e){var t=te(e);return e.uidEvent=t,K[t]=K[t]||{},K[t]}function ne(e,t,i=null){var n=Object.keys(e);for(let a=0,s=n.length;a<s;a++){var o=e[n[a]];if(o.originalHandler===t&&o.delegationSelector===i)return o}return null}function oe(e,t,i){var n="string"==typeof t,o=n?i:t;let a=re(e);return[n,o,a=ee.has(a)?a:e]}function ae(e,t,i,n,o){if("string"==typeof t&&e){if(i||(i=n,n=null),Z.test(t)){const e=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};n?n=e(n):i=e(i)}var[a,s,r]=oe(t,i,n),l=ie(e),l=l[r]||(l[r]={}),d=ne(l,s,a?i:null);if(d)return d.oneOff=d.oneOff&&o;var c,u,_,h,p,d=te(s,t.replace(G,"")),f=a?(_=e,h=i,p=n,function t(i){var n=_.querySelectorAll(h);for(let o=i.target;o&&o!==this;o=o.parentNode)for(let e=n.length;e--;)if(n[e]===o)return i.delegateTarget=o,t.oneOff&&m.off(_,i.type,h,p),p.apply(o,[i]);return null}):(c=e,u=i,function e(t){return t.delegateTarget=c,e.oneOff&&m.off(c,t.type,u),u.apply(c,[t])});f.delegationSelector=a?i:null,f.originalHandler=s,f.oneOff=o,l[f.uidEvent=d]=f,e.addEventListener(r,f,a)}}function se(e,t,i,n,o){var a=ne(t[i],n,o);a&&(e.removeEventListener(i,a,Boolean(o)),delete t[i][a.uidEvent])}function re(e){return e=e.replace(X,""),Q[e]||e}const m={on(e,t,i,n){ae(e,t,i,n,!1)},one(e,t,i,n){ae(e,t,i,n,!0)},off(r,l,a,d){if("string"==typeof l&&r){let[e,t,i]=oe(l,a,d),n=i!==l,s=ie(r),o=l.startsWith(".");if(void 0!==t)return s&&s[i]?void se(r,s,i,t,e?a:null):void 0;o&&Object.keys(s).forEach(e=>{{var t=r,i=s,n=e,o=l.slice(1);const a=i[n]||{};Object.keys(a).forEach(e=>{if(e.includes(o)){const o=a[e];se(t,i,n,o.originalHandler,o.delegationSelector)}})}});const c=s[i]||{};Object.keys(c).forEach(e=>{var t=e.replace(Y,"");if(!n||l.includes(t)){const l=c[e];se(r,s,i,l.originalHandler,l.delegationSelector)}})}},trigger(e,t,i){if("string"!=typeof t||!e)return null;var n=U(),o=re(t),a=t!==o,s=ee.has(o);let r,l=!0,d=!0,c=!1,u=null;return a&&n&&(r=n.Event(t,i),n(e).trigger(r),l=!r.isPropagationStopped(),d=!r.isImmediatePropagationStopped(),c=r.isDefaultPrevented()),s?(u=document.createEvent("HTMLEvents")).initEvent(o,l,!0):u=new CustomEvent(t,{bubbles:l,cancelable:!0}),void 0!==i&&Object.keys(i).forEach(e=>{Object.defineProperty(u,e,{get:()=>i[e]})}),c&&u.preventDefault(),d&&e.dispatchEvent(u),u.defaultPrevented&&void 0!==r&&r.preventDefault(),u}},d=new Map,le={set(e,t,i){d.has(e)||d.set(e,new Map);var n=d.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>d.has(e)&&d.get(e).get(t)||null,remove(e,t){var i;d.has(e)&&((i=d.get(e)).delete(t),0===i.size)&&d.delete(e)}};class t{constructor(e){(e=o(e))&&(this._element=e,le.set(this._element,this.constructor.DATA_KEY,this))}dispose(){le.remove(this._element,this.constructor.DATA_KEY),m.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(e=>{this[e]=null})}_queueCallback(e,t,i=!0){W(e,t,i)}static getInstance(e){return le.get(o(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.1.3"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return"bs."+this.NAME}static get EVENT_KEY(){return"."+this.DATA_KEY}}var de=(i,n="hide")=>{const e="click.dismiss"+i.EVENT_KEY,o=i.NAME;m.on(document,e,`[data-bs-dismiss="${o}"]`,function(e){var t;["A","AREA"].includes(this.tagName)&&e.preventDefault(),r(this)||(t=a(this)||this.closest("."+o),i.getOrCreateInstance(t)[n]())})};class ce extends t{static get NAME(){return"alert"}close(){var e;m.trigger(this._element,"close.bs.alert").defaultPrevented||(this._element.classList.remove("show"),e=this._element.classList.contains("fade"),this._queueCallback(()=>this._destroyElement(),this._element,e))}_destroyElement(){this._element.remove(),m.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each(function(){var e=ce.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}de(ce,"close"),e(ce);const ue='[data-bs-toggle="button"]';class _e extends t{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){var e=_e.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}function he(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function pe(e){return e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}m.on(document,"click.bs.button.data-api",ue,e=>{e.preventDefault();var t=e.target.closest(ue);_e.getOrCreateInstance(t).toggle()}),e(_e);const c={setDataAttribute(e,t,i){e.setAttribute("data-bs-"+pe(t),i)},removeDataAttribute(e,t){e.removeAttribute("data-bs-"+pe(t))},getDataAttributes(i){if(!i)return{};const n={};return Object.keys(i.dataset).filter(e=>e.startsWith("bs")).forEach(e=>{let t=e.replace(/^bs/,"");t=t.charAt(0).toLowerCase()+t.slice(1,t.length),n[t]=he(i.dataset[e])}),n},getDataAttribute:(e,t)=>he(e.getAttribute("data-bs-"+pe(t))),offset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:e=>({top:e.offsetTop,left:e.offsetLeft})},p={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter(e=>e.matches(t)),parents(e,t){var i=[];let n=e.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&i.push(n),n=n.parentNode;return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){var t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>e+':not([tabindex^="-"])').join(", ");return this.find(t,e).filter(e=>!r(e)&&P(e))}},fe="carousel",me={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},ge={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},f="next",u="prev",_="left",ve="right",be={ArrowLeft:ve,ArrowRight:_},ye="slid.bs.carousel",g="active",we=".active.carousel-item";class v extends t{constructor(e,t){super(e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._indicatorsElement=p.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return me}static get NAME(){return fe}next(){this._slide(f)}nextWhenVisible(){!document.hidden&&P(this._element)&&this.next()}prev(){this._slide(u)}pause(e){e||(this._isPaused=!0),p.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(R(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=p.findOne(we,this._element);var t=this._getItemIndex(this._activeElement);e>this._items.length-1||e<0||(this._isSliding?m.one(this._element,ye,()=>this.to(e)):t===e?(this.pause(),this.cycle()):(t=t<e?f:u,this._slide(t,this._items[e])))}_getConfig(e){return e={...me,...c.getDataAttributes(this._element),..."object"==typeof e?e:{}},i(fe,e,ge),e}_handleSwipe(){var e=Math.abs(this.touchDeltaX);e<=40||(e=e/this.touchDeltaX,this.touchDeltaX=0,e&&this._slide(0<e?ve:_))}_addEventListeners(){this._config.keyboard&&m.on(this._element,"keydown.bs.carousel",e=>this._keydown(e)),"hover"===this._config.pause&&(m.on(this._element,"mouseenter.bs.carousel",e=>this.pause(e)),m.on(this._element,"mouseleave.bs.carousel",e=>this.cycle(e))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=e=>this._pointerEvent&&("pen"===e.pointerType||"touch"===e.pointerType),i=e=>{t(e)?this.touchStartX=e.clientX:this._pointerEvent||(this.touchStartX=e.touches[0].clientX)},n=e=>{this.touchDeltaX=e.touches&&1<e.touches.length?0:e.touches[0].clientX-this.touchStartX},o=e=>{t(e)&&(this.touchDeltaX=e.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(e=>this.cycle(e),500+this._config.interval))};p.find(".carousel-item img",this._element).forEach(e=>{m.on(e,"dragstart.bs.carousel",e=>e.preventDefault())}),this._pointerEvent?(m.on(this._element,"pointerdown.bs.carousel",e=>i(e)),m.on(this._element,"pointerup.bs.carousel",e=>o(e)),this._element.classList.add("pointer-event")):(m.on(this._element,"touchstart.bs.carousel",e=>i(e)),m.on(this._element,"touchmove.bs.carousel",e=>n(e)),m.on(this._element,"touchend.bs.carousel",e=>o(e)))}_keydown(e){var t;/input|textarea/i.test(e.target.tagName)||(t=be[e.key])&&(e.preventDefault(),this._slide(t))}_getItemIndex(e){return this._items=e&&e.parentNode?p.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,t){var i=e===f;return V(this._items,t,i,this._config.wrap)}_triggerSlideEvent(e,t){var i=this._getItemIndex(e),n=this._getItemIndex(p.findOne(we,this._element));return m.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:n,to:i})}_setActiveIndicatorElement(t){if(this._indicatorsElement){var i=p.findOne(".active",this._indicatorsElement),n=(i.classList.remove(g),i.removeAttribute("aria-current"),p.find("[data-bs-target]",this._indicatorsElement));for(let e=0;e<n.length;e++)if(Number.parseInt(n[e].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){n[e].classList.add(g),n[e].setAttribute("aria-current","true");break}}}_updateInterval(){var e=this._activeElement||p.findOne(we,this._element);e&&((e=Number.parseInt(e.getAttribute("data-bs-interval"),10))?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval)}_slide(e,t){const i=this._directionToOrder(e),n=p.findOne(we,this._element),o=this._getItemIndex(n),a=t||this._getItemByOrder(i,n),s=this._getItemIndex(a),r=Boolean(this._interval),l=i===f,d=l?"carousel-item-start":"carousel-item-end",c=l?"carousel-item-next":"carousel-item-prev",u=this._orderToDirection(i);if(a&&a.classList.contains(g))this._isSliding=!1;else if(!this._isSliding&&!this._triggerSlideEvent(a,u).defaultPrevented&&n&&a){this._isSliding=!0,r&&this.pause(),this._setActiveIndicatorElement(a),this._activeElement=a;const _=()=>{m.trigger(this._element,ye,{relatedTarget:a,direction:u,from:o,to:s})};if(this._element.classList.contains("slide")){a.classList.add(c),h(a),n.classList.add(d),a.classList.add(d);const e=()=>{a.classList.remove(d,c),a.classList.add(g),n.classList.remove(g,c,d),this._isSliding=!1,setTimeout(_,0)};this._queueCallback(e,n,!0)}else n.classList.remove(g),a.classList.add(g),this._isSliding=!1,_();r&&this.cycle()}}_directionToOrder(e){return[ve,_].includes(e)?n()?e===_?u:f:e===_?f:u:e}_orderToDirection(e){return[f,u].includes(e)?n()?e===u?_:ve:e===u?ve:_:e}static carouselInterface(e,t){var i=v.getOrCreateInstance(e,t);let n=i._config;"object"==typeof t&&(n={...n,...t});var o="string"==typeof t?t:n.slide;if("number"==typeof t)i.to(t);else if("string"==typeof o){if(void 0===i[o])throw new TypeError(`No method named "${o}"`);i[o]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}static jQueryInterface(e){return this.each(function(){v.carouselInterface(this,e)})}static dataApiClickHandler(e){var t,i,n=a(this);n&&n.classList.contains("carousel")&&(t={...c.getDataAttributes(n),...c.getDataAttributes(this)},(i=this.getAttribute("data-bs-slide-to"))&&(t.interval=!1),v.carouselInterface(n,t),i&&v.getInstance(n).to(i),e.preventDefault())}}m.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",v.dataApiClickHandler),m.on(window,"load.bs.carousel.data-api",()=>{var e=p.find('[data-bs-ride="carousel"]');for(let t=0,i=e.length;t<i;t++)v.carouselInterface(e[t],v.getInstance(e[t]))}),e(v);const ke="collapse",Ee={toggle:!0,parent:null},xe={toggle:"boolean",parent:"(null|element)"},$e="show",Ce="collapse",Ie="collapsing",Te="collapsed",Se=":scope .collapse .collapse",Ae='[data-bs-toggle="collapse"]';class b extends t{constructor(e,t){super(e),this._isTransitioning=!1,this._config=this._getConfig(t),this._triggerArray=[];var i=p.find(Ae);for(let n=0,o=i.length;n<o;n++){const t=i[n],a=M(t),s=p.find(a).filter(e=>e===this._element);null!==a&&s.length&&(this._selector=a,this._triggerArray.push(t))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Ee}static get NAME(){return ke}toggle(){this._isShown()?this.hide():this.show()}show(){if(!this._isTransitioning&&!this._isShown()){let t,e=[];if(this._config.parent){const t=p.find(Se,this._config.parent);e=p.find(".collapse.show, .collapse.collapsing",this._config.parent).filter(e=>!t.includes(e))}const n=p.findOne(this._selector);if(e.length){const o=e.find(e=>n!==e);if((t=o?b.getInstance(o):null)&&t._isTransitioning)return}if(!m.trigger(this._element,"show.bs.collapse").defaultPrevented){e.forEach(e=>{n!==e&&b.getOrCreateInstance(e,{toggle:!1}).hide(),t||le.set(e,"bs.collapse",null)});const o=this._getDimension();this._element.classList.remove(Ce),this._element.classList.add(Ie),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;var i="scroll"+(o[0].toUpperCase()+o.slice(1));this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ie),this._element.classList.add(Ce,$e),this._element.style[o]="",m.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[o]=this._element[i]+"px"}}}hide(){if(!this._isTransitioning&&this._isShown()&&!m.trigger(this._element,"hide.bs.collapse").defaultPrevented){var t=this._getDimension();this._element.style[t]=this._element.getBoundingClientRect()[t]+"px",h(this._element),this._element.classList.add(Ie),this._element.classList.remove(Ce,$e);const i=this._triggerArray.length;for(let e=0;e<i;e++){const i=this._triggerArray[e],n=a(i);n&&!this._isShown(n)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ie),this._element.classList.add(Ce),m.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}}_isShown(e=this._element){return e.classList.contains($e)}_getConfig(e){return(e={...Ee,...c.getDataAttributes(this._element),...e}).toggle=Boolean(e.toggle),e.parent=o(e.parent),i(ke,e,xe),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(this._config.parent){const t=p.find(Se,this._config.parent);p.find(Ae,this._config.parent).filter(e=>!t.includes(e)).forEach(e=>{var t=a(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))})}}_addAriaAndCollapsedClass(e,t){e.length&&e.forEach(e=>{t?e.classList.remove(Te):e.classList.add(Te),e.setAttribute("aria-expanded",t)})}static jQueryInterface(t){return this.each(function(){var e={},e=("string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),b.getOrCreateInstance(this,e));if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}m.on(document,"click.bs.collapse.data-api",Ae,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();var t=M(this);p.find(t).forEach(e=>{b.getOrCreateInstance(e,{toggle:!1}).toggle()})}),e(b);var T="top",S="bottom",A="right",L="left",Le="auto",j=[T,S,A,L],D="start",y="end",je="clippingParents",De="viewport",Oe="popper",Be="reference",Ne=j.reduce(function(e,t){return e.concat([t+"-"+D,t+"-"+y])},[]),ze=[].concat(j,[Le]).reduce(function(e,t){return e.concat([t,t+"-"+D,t+"-"+y])},[]),Me="beforeRead",Re="afterRead",Pe="beforeMain",qe="afterMain",He="beforeWrite",Ue="afterWrite",Fe=[Me,"read",Re,Pe,"main",qe,He,"write",Ue];function w(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){var t;return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function We(e){return e instanceof k(e).Element||e instanceof Element}function E(e){return e instanceof k(e).HTMLElement||e instanceof HTMLElement}function Ve(e){return"undefined"!=typeof ShadowRoot&&(e instanceof k(e).ShadowRoot||e instanceof ShadowRoot)}var Ge={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var o=e.state;Object.keys(o.elements).forEach(function(e){var t=o.styles[e]||{},i=o.attributes[e]||{},n=o.elements[e];E(n)&&w(n)&&(Object.assign(n.style,t),Object.keys(i).forEach(function(e){var t=i[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var o=e.state,a={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(o.elements.popper.style,a.popper),o.styles=a,o.elements.arrow&&Object.assign(o.elements.arrow.style,a.arrow),function(){Object.keys(o.elements).forEach(function(e){var t=o.elements[e],i=o.attributes[e]||{},n=Object.keys((o.styles.hasOwnProperty(e)?o.styles:a)[e]).reduce(function(e,t){return e[t]="",e},{});E(t)&&w(t)&&(Object.assign(t.style,n),Object.keys(i).forEach(function(e){t.removeAttribute(e)}))})}},requires:["computeStyles"]};function O(e){return e.split("-")[0]}function Xe(e){var t=e.getBoundingClientRect();return{width:+t.width,height:+t.height,top:+t.top,right:+t.right,bottom:+t.bottom,left:+t.left,x:+t.left,y:+t.top}}function Ye(e){var t=Xe(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function Ke(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Ve(i)){var n=t;do{if(n&&e.isSameNode(n))return!0}while(n=n.parentNode||n.host)}return!1}function x(e){return k(e).getComputedStyle(e)}function $(e){return((We(e)?e.ownerDocument:e.document)||window.document).documentElement}function Je(e){return"html"===w(e)?e:e.assignedSlot||e.parentNode||(Ve(e)?e.host:null)||$(e)}function Qe(e){return E(e)&&"fixed"!==x(e).position?e.offsetParent:null}function Ze(e){for(var t,i=k(e),n=Qe(e);n&&(t=n,0<=["table","td","th"].indexOf(w(t)))&&"static"===x(n).position;)n=Qe(n);return(!n||"html"!==w(n)&&("body"!==w(n)||"static"!==x(n).position))&&(n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1===navigator.userAgent.indexOf("Trident")||!E(e)||"fixed"!==x(e).position)for(var i=Je(e);E(i)&&["html","body"].indexOf(w(i))<0;){var n=x(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e))||i}function et(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}var C=Math.max,tt=Math.min,it=Math.round;function nt(e,t,i){return C(e,tt(t,i))}function ot(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function at(i,e){return e.reduce(function(e,t){return e[t]=i,e},{})}var st={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n,o,a=e.state,s=e.name,r=e.options,l=a.elements.arrow,d=a.modifiersData.popperOffsets,c=O(a.placement),u=et(c),c=0<=[L,A].indexOf(c)?"height":"width";l&&d&&(r=ot("number"!=typeof(e="function"==typeof(e=r.padding)?e(Object.assign({},a.rects,{placement:a.placement})):e)?e:at(e,j)),t=Ye(l),o="y"===u?T:L,n="y"===u?S:A,i=a.rects.reference[c]+a.rects.reference[u]-d[u]-a.rects.popper[c],d=d[u]-a.rects.reference[u],l=(l=Ze(l))?"y"===u?l.clientHeight||0:l.clientWidth||0:0,o=r[o],r=l-t[c]-r[n],o=nt(o,n=l/2-t[c]/2+(i/2-d/2),r),a.modifiersData[s]=((l={})[u]=o,l.centerOffset=o-n,l))},effect:function(e){var t=e.state,i=e.options.element,i=void 0===i?"[data-popper-arrow]":i;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Ke(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rt(e){return e.split("-")[1]}var lt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dt(e){var t,i,n=e.popper,o=e.popperRect,a=e.placement,s=e.variation,r=e.offsets,l=e.position,d=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,_=!0===u?(_=r.x,h=r.y,p=window.devicePixelRatio||1,{x:it(it(_*p)/p)||0,y:it(it(h*p)/p)||0}):"function"==typeof u?u(r):r,h=_.x,p=void 0===h?0:h,u=_.y,u=void 0===u?0:u,f=r.hasOwnProperty("x"),r=r.hasOwnProperty("y"),m=L,g=T,v=window;c&&(b="clientHeight",i="clientWidth",(t=Ze(n))===k(n)&&"static"!==x(t=$(n)).position&&"absolute"===l&&(b="scrollHeight",i="scrollWidth"),a!==T&&(a!==L&&a!==A||s!==y)||(g=S,u=(u-(t[b]-o.height))*(d?1:-1)),a!==L&&(a!==T&&a!==S||s!==y)||(m=A,p=(p-(t[i]-o.width))*(d?1:-1)));var b,n=Object.assign({position:l},c&&lt);return d?Object.assign({},n,((b={})[g]=r?"0":"",b[m]=f?"0":"",b.transform=(v.devicePixelRatio||1)<=1?"translate("+p+"px, "+u+"px)":"translate3d("+p+"px, "+u+"px, 0)",b)):Object.assign({},n,((a={})[g]=r?u+"px":"",a[m]=f?p+"px":"",a.transform="",a))}var ct={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,n=void 0===n||n,o=i.adaptive,o=void 0===o||o,i=i.roundOffsets,i=void 0===i||i,n={placement:O(t.placement),variation:rt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,dt(Object.assign({},n,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:i})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,dt(Object.assign({},n,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ut={passive:!0},_t={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,o=n.scroll,a=void 0===o||o,o=n.resize,s=void 0===o||o,r=k(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener("scroll",i.update,ut)}),s&&r.addEventListener("resize",i.update,ut),function(){a&&l.forEach(function(e){e.removeEventListener("scroll",i.update,ut)}),s&&r.removeEventListener("resize",i.update,ut)}},data:{}},ht={left:"right",right:"left",bottom:"top",top:"bottom"};function pt(e){return e.replace(/left|right|bottom|top/g,function(e){return ht[e]})}var ft={start:"end",end:"start"};function mt(e){return e.replace(/start|end/g,function(e){return ft[e]})}function gt(e){var t=k(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function vt(e){return Xe($(e)).left+gt(e).scrollLeft}function bt(e){var t=x(e),i=t.overflow;return/auto|scroll|overlay|hidden/.test(i+t.overflowY+t.overflowX)}function yt(e,t){void 0===t&&(t=[]);var i=function e(t){return 0<=["html","body","#document"].indexOf(w(t))?t.ownerDocument.body:E(t)&&bt(t)?t:e(Je(t))}(e),n=i===(null==(n=e.ownerDocument)?void 0:n.body),o=k(i),o=n?[o].concat(o.visualViewport||[],bt(i)?i:[]):i,i=t.concat(o);return n?i:i.concat(yt(Je(o)))}function wt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kt(e,t){return t===De?wt((a=k(o=e),s=$(o),a=a.visualViewport,r=s.clientWidth,s=s.clientHeight,d=l=0,a&&(r=a.width,s=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=a.offsetLeft,d=a.offsetTop)),{width:r,height:s,x:l+vt(o),y:d})):E(t)?((a=Xe(o=t)).top=a.top+o.clientTop,a.left=a.left+o.clientLeft,a.bottom=a.top+o.clientHeight,a.right=a.left+o.clientWidth,a.width=o.clientWidth,a.height=o.clientHeight,a.x=a.left,a.y=a.top,a):wt((t=$(e),r=$(t),s=gt(t),l=null==(l=t.ownerDocument)?void 0:l.body,d=C(r.scrollWidth,r.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),i=C(r.scrollHeight,r.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),n=-s.scrollLeft+vt(t),s=-s.scrollTop,"rtl"===x(l||r).direction&&(n+=C(r.clientWidth,l?l.clientWidth:0)-d),{width:d,height:i,x:n,y:s}));var i,n,o,a,s,r,l,d}function Et(e){var t,i=e.reference,n=e.element,o=e.placement,a=o?O(o):null,o=o?rt(o):null,s=i.x+i.width/2-n.width/2,r=i.y+i.height/2-n.height/2;switch(a){case T:t={x:s,y:i.y-n.height};break;case S:t={x:s,y:i.y+i.height};break;case A:t={x:i.x+i.width,y:r};break;case L:t={x:i.x-n.width,y:r};break;default:t={x:i.x,y:i.y}}var l=a?et(a):null;if(null!=l){var d="y"===l?"height":"width";switch(o){case D:t[l]=t[l]-(i[d]/2-n[d]/2);break;case y:t[l]=t[l]+(i[d]/2-n[d]/2)}}return t}function xt(e,t){var n,i,o,a,s,r,l=t=void 0===t?{}:t,d=l.placement,d=void 0===d?e.placement:d,c=l.boundary,c=void 0===c?je:c,u=l.rootBoundary,u=void 0===u?De:u,_=l.elementContext,_=void 0===_?Oe:_,h=l.altBoundary,h=void 0!==h&&h,l=l.padding,l=void 0===l?0:l,l=ot("number"!=typeof l?l:at(l,j)),p=e.rects.popper,h=e.elements[h?_===Oe?Be:Oe:_],c=(n=We(h)?h:h.contextElement||$(e.elements.popper),t=u,s="clippingParents"===(i=c)?(s=yt(Je(o=n)),We(a=0<=["absolute","fixed"].indexOf(x(o).position)&&E(o)?Ze(o):o)?s.filter(function(e){return We(e)&&Ke(e,a)&&"body"!==w(e)}):[]):[].concat(i),h=[].concat(s,[t]),u=h[0],(h=h.reduce(function(e,t){var i=kt(n,t);return e.top=C(i.top,e.top),e.right=tt(i.right,e.right),e.bottom=tt(i.bottom,e.bottom),e.left=C(i.left,e.left),e},kt(n,u))).width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h),u=Xe(e.elements.reference),h=Et({reference:u,element:p,strategy:"absolute",placement:d}),p=wt(Object.assign({},p,h)),h=_===Oe?p:u,f={top:c.top-h.top+l.top,bottom:h.bottom-c.bottom+l.bottom,left:c.left-h.left+l.left,right:h.right-c.right+l.right},p=e.modifiersData.offset;return _===Oe&&p&&(r=p[d],Object.keys(f).forEach(function(e){var t=0<=[A,S].indexOf(e)?1:-1,i=0<=[T,S].indexOf(e)?"y":"x";f[e]+=r[i]*t})),f}var $t={name:"flip",enabled:!0,phase:"main",fn:function(e){var _=e.state,t=e.options,i=e.name;if(!_.modifiersData[i]._skip){for(var n=t.mainAxis,o=void 0===n||n,n=t.altAxis,a=void 0===n||n,n=t.fallbackPlacements,h=t.padding,p=t.boundary,f=t.rootBoundary,s=t.altBoundary,r=t.flipVariations,m=void 0===r||r,g=t.allowedAutoPlacements,r=_.options.placement,t=O(r),t=n||(t!==r&&m?O(e=r)===Le?[]:(n=pt(e),[mt(e),n,mt(n)]):[pt(r)]),l=[r].concat(t).reduce(function(e,t){return e.concat(O(t)===Le?(i=_,n=(c=e=void 0===(e={placement:t,boundary:p,rootBoundary:f,padding:h,flipVariations:m,allowedAutoPlacements:g})?{}:e).placement,o=c.boundary,a=c.rootBoundary,s=c.padding,r=c.flipVariations,l=void 0===(c=c.allowedAutoPlacements)?ze:c,d=rt(n),c=d?r?Ne:Ne.filter(function(e){return rt(e)===d}):j,u=(n=0===(n=c.filter(function(e){return 0<=l.indexOf(e)})).length?c:n).reduce(function(e,t){return e[t]=xt(i,{placement:t,boundary:o,rootBoundary:a,padding:s})[O(t)],e},{}),Object.keys(u).sort(function(e,t){return u[e]-u[t]})):t);var i,n,o,a,s,r,l,d,c,u},[]),d=_.rects.reference,c=_.rects.popper,u=new Map,v=!0,b=l[0],y=0;y<l.length;y++){var w=l[y],k=O(w),E=rt(w)===D,x=0<=[T,S].indexOf(k),$=x?"width":"height",C=xt(_,{placement:w,boundary:p,rootBoundary:f,altBoundary:s,padding:h}),x=x?E?A:L:E?S:T,E=(d[$]>c[$]&&(x=pt(x)),pt(x)),$=[];if(o&&$.push(C[k]<=0),a&&$.push(C[x]<=0,C[E]<=0),$.every(function(e){return e})){b=w,v=!1;break}u.set(w,$)}if(v)for(var I=m?3:1;0<I&&"break"!==function(i){var e=l.find(function(e){var t=u.get(e);if(t)return t.slice(0,i).every(function(e){return e})});if(e)return b=e,"break"}(I);I--);_.placement!==b&&(_.modifiersData[i]._skip=!0,_.placement=b,_.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ct(e,t,i){return{top:e.top-t.height-(i=void 0===i?{x:0,y:0}:i).y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function It(t){return[T,A,S,L].some(function(e){return 0<=t[e]})}var Tt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=xt(t,{elementContext:"reference"}),r=xt(t,{altBoundary:!0}),s=Ct(s,n),n=Ct(r,o,a),r=It(s),o=It(n);t.modifiersData[i]={referenceClippingOffsets:s,popperEscapeOffsets:n,isReferenceHidden:r,hasPopperEscaped:o},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":r,"data-popper-escaped":o})}},St={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var l=e.state,t=e.name,i=e.options.offset,d=void 0===i?[0,0]:i,i=ze.reduce(function(e,t){return e[t]=(t=t,i=l.rects,n=d,o=O(t),a=0<=[L,T].indexOf(o)?-1:1,s="function"==typeof n?n(Object.assign({},i,{placement:t})):n,r=s[0]||0,s=(s[1]||0)*a,0<=[L,A].indexOf(o)?{x:s,y:r}:{x:r,y:s}),e;var i,n,o,a,s,r},{}),n=i[l.placement],o=n.x,n=n.y;null!=l.modifiersData.popperOffsets&&(l.modifiersData.popperOffsets.x+=o,l.modifiersData.popperOffsets.y+=n),l.modifiersData[t]=i}},At={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=Et({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Lt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t,i,n,o,a,s,r,l,d,c=e.state,u=e.options,_=e.name,h=u.mainAxis,h=void 0===h||h,p=u.altAxis,p=void 0!==p&&p,f=u.tether,f=void 0===f||f,m=u.tetherOffset,m=void 0===m?0:m,u=xt(c,{boundary:u.boundary,rootBoundary:u.rootBoundary,padding:u.padding,altBoundary:u.altBoundary}),g=O(c.placement),v=rt(c.placement),b=!v,g=et(g),y="x"===g?"y":"x",w=c.modifiersData.popperOffsets,k=c.rects.reference,E=c.rects.popper,m="function"==typeof m?m(Object.assign({},c.rects,{placement:c.placement})):m,x={x:0,y:0};w&&((h||p)&&(a="y"===g?"height":"width",t=w[g],i=w[g]+u[d="y"===g?T:L],n=w[g]-u[r="y"===g?S:A],s=f?-E[a]/2:0,o=(v===D?k:E)[a],v=v===D?-E[a]:-k[a],E=c.elements.arrow,E=f&&E?Ye(E):{width:0,height:0},d=(l=c.modifiersData["arrow#persistent"]?c.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0})[d],l=l[r],r=nt(0,k[a],E[a]),E=b?k[a]/2-s-r-d-m:o-r-d-m,o=b?-k[a]/2+s+r+l+m:v+r+l+m,b=(d=c.elements.arrow&&Ze(c.elements.arrow))?"y"===g?d.clientTop||0:d.clientLeft||0:0,k=c.modifiersData.offset?c.modifiersData.offset[c.placement][g]:0,a=w[g]+E-k-b,s=w[g]+o-k,h&&(v=nt(f?tt(i,a):i,t,f?C(n,s):n),w[g]=v,x[g]=v-t),p)&&(l=(r=w[y])+u["x"===g?T:L],m=r-u["x"===g?S:A],d=nt(f?tt(l,a):l,r,f?C(m,s):m),w[y]=d,x[y]=d-r),c.modifiersData[_]=x)},requiresIfExists:["offset"]};function jt(e){var n=new Map,o=new Set,t=[];return e.forEach(function(e){n.set(e.name,e)}),e.forEach(function(e){o.has(e.name)||function i(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){var t;o.has(e)||(t=n.get(e))&&i(t)}),t.push(e)}(e)}),t}var Dt={placement:"bottom",modifiers:[],strategy:"absolute"};function Ot(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Bt(e){var t=e=void 0===e?{}:e,i=t.defaultModifiers,l=void 0===i?[]:i,i=t.defaultOptions,d=void 0===i?Dt:i;return function(o,a,t){void 0===t&&(t=d);var i,n,p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Dt,d),modifiersData:{},elements:{reference:o,popper:a},attributes:{},styles:{}},s=[],f=!1,m={state:p,setOptions:function(e){var t="function"==typeof e?e(p.options):e;r(),p.options=Object.assign({},d,p.options,t),p.scrollParents={reference:We(o)?yt(o):o.contextElement?yt(o.contextElement):[],popper:yt(a)};t=[].concat(l,p.options.modifiers),i=t.reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{}),n=jt(Object.keys(i).map(function(e){return i[e]}));var i,n,t=Fe.reduce(function(e,t){return e.concat(n.filter(function(e){return e.phase===t}))},[]);return p.orderedModifiers=t.filter(function(e){return e.enabled}),p.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=e.effect;"function"==typeof n&&(n=n({state:p,name:t,instance:m,options:void 0===i?{}:i}),s.push(n||function(){}))}),m.update()},forceUpdate:function(){if(!f){var e=p.elements,t=e.reference,e=e.popper;if(Ot(t,e)){p.rects={reference:(s=t,r=Ze(e),void 0===(l="fixed"===p.options.strategy)&&(l=!1),t=E(r),E(r)&&((d=r).getBoundingClientRect().width,d.offsetWidth),c=$(r),u=Xe(s),_={scrollLeft:0,scrollTop:0},h={x:0,y:0},!t&&l||("body"===w(r)&&!bt(c)||(_=(t=r)!==k(t)&&E(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:gt(t)),E(r)?((h=Xe(r)).x+=r.clientLeft,h.y+=r.clientTop):c&&(h.x=vt(c))),{x:u.left+_.scrollLeft-h.x,y:u.top+_.scrollTop-h.y,width:u.width,height:u.height}),popper:Ye(e)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(e){return p.modifiersData[e.name]=Object.assign({},e.data)});for(var i,n,o,a=0;a<p.orderedModifiers.length;a++)!0!==p.reset?(n=(i=p.orderedModifiers[a]).fn,o=i.options,"function"==typeof n&&(p=n({state:p,options:void 0===o?{}:o,name:i.name,instance:m})||p)):(p.reset=!1,a=-1)}}var s,r,l,d,c,u,_,h},update:(i=function(){return new Promise(function(e){m.forceUpdate(),e(p)})},function(){return n=n||new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(i())})})}),destroy:function(){r(),f=!0}};return Ot(o,a)&&m.setOptions(t).then(function(e){!f&&t.onFirstUpdate&&t.onFirstUpdate(e)}),m;function r(){s.forEach(function(e){return e()}),s=[]}}}var Nt=Bt(),zt=Bt({defaultModifiers:[_t,At,ct,Ge]}),Mt=Bt({defaultModifiers:[_t,At,ct,Ge,St,$t,Lt,st,Tt]});const Rt=Object.freeze({__proto__:null,popperGenerator:Bt,detectOverflow:xt,createPopperBase:Nt,createPopper:Mt,createPopperLite:zt,top:T,bottom:S,right:A,left:L,auto:Le,basePlacements:j,start:D,end:y,clippingParents:je,viewport:De,popper:Oe,reference:Be,variationPlacements:Ne,placements:ze,beforeRead:Me,read:"read",afterRead:Re,beforeMain:Pe,main:"main",afterMain:qe,beforeWrite:He,write:"write",afterWrite:Ue,modifierPhases:Fe,applyStyles:Ge,arrow:st,computeStyles:ct,eventListeners:_t,flip:$t,hide:Tt,offset:St,popperOffsets:At,preventOverflow:Lt}),Pt="dropdown",qt="Escape",Ht="ArrowUp",Ut="ArrowDown",Ft=new RegExp("ArrowUp|ArrowDown|Escape"),Wt="click.bs.dropdown.data-api",Vt="keydown.bs.dropdown.data-api",Gt="show",Xt='[data-bs-toggle="dropdown"]',Yt=".dropdown-menu",Kt=n()?"top-end":"top-start",Jt=n()?"top-start":"top-end",Qt=n()?"bottom-end":"bottom-start",Zt=n()?"bottom-start":"bottom-end",ei=n()?"left-start":"right-start",ti=n()?"right-start":"left-start",ii={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},ni={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class I extends t{constructor(e,t){super(e),this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return ii}static get DefaultType(){return ni}static get NAME(){return Pt}toggle(){return this._isShown()?this.hide():this.show()}show(){var e,t;r(this._element)||this._isShown(this._menu)||(e={relatedTarget:this._element},m.trigger(this._element,"show.bs.dropdown",e).defaultPrevented)||(t=I.getParentFromElement(this._element),this._inNavbar?c.setDataAttribute(this._menu,"popper","none"):this._createPopper(t),"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).forEach(e=>m.on(e,"mouseover",H)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Gt),this._element.classList.add(Gt),m.trigger(this._element,"shown.bs.dropdown",e))}hide(){var e;!r(this._element)&&this._isShown(this._menu)&&(e={relatedTarget:this._element},this._completeHide(e))}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){m.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(e=>m.off(e,"mouseover",H)),this._popper&&this._popper.destroy(),this._menu.classList.remove(Gt),this._element.classList.remove(Gt),this._element.setAttribute("aria-expanded","false"),c.removeDataAttribute(this._menu,"popper"),m.trigger(this._element,"hidden.bs.dropdown",e))}_getConfig(e){if(e={...this.constructor.Default,...c.getDataAttributes(this._element),...e},i(Pt,e,this.constructor.DefaultType),"object"!=typeof e.reference||s(e.reference)||"function"==typeof e.reference.getBoundingClientRect)return e;throw new TypeError(Pt.toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.')}_createPopper(e){if(void 0===Rt)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=e:s(this._config.reference)?t=o(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);var i=this._getPopperConfig(),n=i.modifiers.find(e=>"applyStyles"===e.name&&!1===e.enabled);this._popper=Mt(t,this._menu,i),n&&c.setDataAttribute(this._menu,"popper","static")}_isShown(e=this._element){return e.classList.contains(Gt)}_getMenuElement(){return p.next(this._element,Yt)[0]}_getPlacement(){var e,t=this._element.parentNode;return t.classList.contains("dropend")?ei:t.classList.contains("dropstart")?ti:(e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim(),t.classList.contains("dropup")?e?Jt:Kt:e?Zt:Qt)}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){let t=this._config.offset;return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){var e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){var i=p.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(P);i.length&&V(i,t,e===Ut,!i.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){var e=I.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(i){if(!i||2!==i.button&&("keyup"!==i.type||"Tab"===i.key)){const a=p.find(Xt);for(let e=0,t=a.length;e<t;e++){var n=I.getInstance(a[e]);if(n&&!1!==n._config.autoClose&&n._isShown()){var o={relatedTarget:n._element};if(i){const a=i.composedPath(),s=a.includes(n._menu);if(a.includes(n._element)||"inside"===n._config.autoClose&&!s||"outside"===n._config.autoClose&&s)continue;if(n._menu.contains(i.target)&&("keyup"===i.type&&"Tab"===i.key||/input|select|option|textarea|form/i.test(i.target.tagName)))continue;"click"===i.type&&(o.clickEvent=i)}n._completeHide(o)}}}}static getParentFromElement(e){return a(e)||e.parentNode}static dataApiKeydownHandler(e){if(/input|textarea/i.test(e.target.tagName)?!("Space"===e.key||e.key!==qt&&(e.key!==Ut&&e.key!==Ht||e.target.closest(Yt))):Ft.test(e.key)){var t,i=this.classList.contains(Gt);if(i||e.key!==qt)if(e.preventDefault(),e.stopPropagation(),!r(this))return t=this.matches(Xt)?this:p.prev(this,Xt)[0],t=I.getOrCreateInstance(t),e.key!==qt?e.key===Ht||e.key===Ut?(i||t.show(),void t._selectMenuItem(e)):void(i&&"Space"!==e.key||I.clearMenus()):void t.hide()}}}m.on(document,Vt,Xt,I.dataApiKeydownHandler),m.on(document,Vt,Yt,I.dataApiKeydownHandler),m.on(document,Wt,I.clearMenus),m.on(document,"keyup.bs.dropdown.data-api",I.clearMenus),m.on(document,Wt,Xt,function(e){e.preventDefault(),I.getOrCreateInstance(this).toggle()}),e(I);const oi=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ai=".sticky-top";class si{constructor(){this._element=document.body}getWidth(){var e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",e=>e+t),this._setElementAttributes(oi,"paddingRight",e=>e+t),this._setElementAttributes(ai,"marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,i,n){const o=this.getWidth();this._applyManipulationCallback(e,e=>{var t;e!==this._element&&window.innerWidth>e.clientWidth+o||(this._saveInitialAttribute(e,i),t=window.getComputedStyle(e)[i],e.style[i]=n(Number.parseFloat(t))+"px")})}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(oi,"paddingRight"),this._resetElementAttributes(ai,"marginRight")}_saveInitialAttribute(e,t){var i=e.style[t];i&&c.setDataAttribute(e,t,i)}_resetElementAttributes(e,i){this._applyManipulationCallback(e,e=>{var t=c.getDataAttribute(e,i);void 0===t?e.style.removeProperty(i):(c.removeDataAttribute(e,i),e.style[i]=t)})}_applyManipulationCallback(e,t){s(e)?t(e):p.find(e,this._element).forEach(t)}isOverflowing(){return 0<this.getWidth()}}const ri={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},li={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},di="mousedown.bs.backdrop";class ci{constructor(e){this._config=this._getConfig(e),this._isAppended=!1,this._element=null}show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&h(this._getElement()),this._getElement().classList.add("show"),this._emulateAnimation(()=>{l(e)})):l(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),l(e)})):l(e)}_getElement(){var e;return this._element||((e=document.createElement("div")).className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e),this._element}_getConfig(e){return(e={...ri,..."object"==typeof e?e:{}}).rootElement=o(e.rootElement),i("backdrop",e,li),e}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),m.on(this._getElement(),di,()=>{l(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(m.off(this._element,di),this._element.remove(),this._isAppended=!1)}_emulateAnimation(e){W(e,this._getElement(),this._config.isAnimated)}}const ui={trapElement:null,autofocus:!0},_i={trapElement:"element",autofocus:"boolean"},hi=".bs.focustrap",pi="backward";class fi{constructor(e){this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}activate(){var{trapElement:e,autofocus:t}=this._config;this._isActive||(t&&e.focus(),m.off(document,hi),m.on(document,"focusin.bs.focustrap",e=>this._handleFocusin(e)),m.on(document,"keydown.tab.bs.focustrap",e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,m.off(document,hi))}_handleFocusin(e){var t=e.target,i=this._config.trapElement;t===document||t===i||i.contains(t)||(0===(t=p.focusableChildren(i)).length?i:this._lastTabNavDirection===pi?t[t.length-1]:t[0]).focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?pi:"forward")}_getConfig(e){return e={...ui,..."object"==typeof e?e:{}},i("focustrap",e,_i),e}}const mi={backdrop:!0,keyboard:!0,focus:!0},gi={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},vi="hidden.bs.modal",bi="show.bs.modal",yi="resize.bs.modal",wi="click.dismiss.bs.modal",ki="keydown.dismiss.bs.modal",Ei="mousedown.dismiss.bs.modal",xi="modal-open",$i="modal-static";class Ci extends t{constructor(e,t){super(e),this._config=this._getConfig(t),this._dialog=p.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new si}static get Default(){return mi}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||m.trigger(this._element,bi,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(xi),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),m.on(this._dialog,Ei,()=>{m.one(this._element,"mouseup.dismiss.bs.modal",e=>{e.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(e)))}hide(){var e;!this._isShown||this._isTransitioning||m.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,(e=this._isAnimated())&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove("show"),m.off(this._element,wi),m.off(this._dialog,Ei),this._queueCallback(()=>this._hideModal(),this._element,e))}dispose(){[window,this._dialog].forEach(e=>m.off(e,".bs.modal")),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ci({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new fi({trapElement:this._element})}_getConfig(e){return e={...mi,...c.getDataAttributes(this._element),..."object"==typeof e?e:{}},i("modal",e,gi),e}_showElement(e){var t=this._isAnimated(),i=p.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,i&&(i.scrollTop=0),t&&h(this._element),this._element.classList.add("show"),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,m.trigger(this._element,"shown.bs.modal",{relatedTarget:e})},this._dialog,t)}_setEscapeEvent(){this._isShown?m.on(this._element,ki,e=>{this._config.keyboard&&"Escape"===e.key?(e.preventDefault(),this.hide()):this._config.keyboard||"Escape"!==e.key||this._triggerBackdropTransition()}):m.off(this._element,ki)}_setResizeEvent(){this._isShown?m.on(window,yi,()=>this._adjustDialog()):m.off(window,yi)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(xi),this._resetAdjustments(),this._scrollBar.reset(),m.trigger(this._element,vi)})}_showBackdrop(e){m.on(this._element,wi,e=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())}),this._backdrop.show(e)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(!m.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented){let{classList:e,scrollHeight:t,style:i}=this._element,n=t>document.documentElement.clientHeight;!n&&"hidden"===i.overflowY||e.contains($i)||(n||(i.overflowY="hidden"),e.add($i),this._queueCallback(()=>{e.remove($i),n||this._queueCallback(()=>{i.overflowY=""},this._dialog)},this._dialog),this._element.focus())}}_adjustDialog(){var e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=0<t;(!i&&e&&!n()||i&&!e&&n())&&(this._element.style.paddingLeft=t+"px"),(i&&!e&&!n()||!i&&e&&n())&&(this._element.style.paddingRight=t+"px")}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,i){return this.each(function(){var e=Ci.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](i)}})}}m.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(e){const t=a(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),m.one(t,bi,e=>{e.defaultPrevented||m.one(t,vi,()=>{P(this)&&this.focus()})});var i=p.findOne(".modal.show");i&&Ci.getInstance(i).hide(),Ci.getOrCreateInstance(t).toggle(this)}),de(Ci),e(Ci);const Ii="offcanvas",Ti={backdrop:!0,keyboard:!0,scroll:!1},Si={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Ai=".offcanvas.show",Li="hidden.bs.offcanvas";class B extends t{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return Ii}static get Default(){return Ti}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||m.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new si).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add("show"),this._queueCallback(()=>{this._config.scroll||this._focustrap.activate(),m.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||m.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove("show"),this._backdrop.hide(),this._queueCallback(()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new si).reset(),m.trigger(this._element,Li)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(e){return e={...Ti,...c.getDataAttributes(this._element),..."object"==typeof e?e:{}},i(Ii,e,Si),e}_initializeBackDrop(){return new ci({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new fi({trapElement:this._element})}_addEventListeners(){m.on(this._element,"keydown.dismiss.bs.offcanvas",e=>{this._config.keyboard&&"Escape"===e.key&&this.hide()})}static jQueryInterface(t){return this.each(function(){var e=B.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}m.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(e){var t,i=a(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),r(this)||(m.one(i,Li,()=>{P(this)&&this.focus()}),(t=p.findOne(Ai))&&t!==i&&B.getInstance(t).hide(),B.getOrCreateInstance(i).toggle(this))}),m.on(window,"load.bs.offcanvas.data-api",()=>p.find(Ai).forEach(e=>B.getOrCreateInstance(e).show())),de(B),e(B);const ji=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Di=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Oi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Bi(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const n=(new window.DOMParser).parseFromString(e,"text/html"),o=[].concat(...n.body.querySelectorAll("*"));for(let a=0,s=o.length;a<s;a++){const i=o[a],n=i.nodeName.toLowerCase();if(Object.keys(t).includes(n)){const r=[].concat(...i.attributes),l=[].concat(t["*"]||[],t[n]||[]);r.forEach(e=>{((e,t)=>{var i=e.nodeName.toLowerCase();if(t.includes(i))return!ji.has(i)||Boolean(Di.test(e.nodeValue)||Oi.test(e.nodeValue));var n=t.filter(e=>e instanceof RegExp);for(let o=0,a=n.length;o<a;o++)if(n[o].test(i))return!0;return!1})(e,l)||i.removeAttribute(e.nodeName)})}else i.remove()}return n.body.innerHTML}const Ni="tooltip",zi=new Set(["sanitize","allowList","sanitizeFn"]),Mi={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Ri={AUTO:"auto",TOP:"top",RIGHT:n()?"left":"right",BOTTOM:"bottom",LEFT:n()?"right":"left"},Pi={animation:!0,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,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},qi={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Hi="fade",Ui="show",Fi="show",Wi=".tooltip-inner",Vi="hide.bs.modal",Gi="hover";class Xi extends t{constructor(e,t){if(void 0===Rt)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(t),this.tip=null,this._setListeners()}static get Default(){return Pi}static get NAME(){return Ni}static get Event(){return qi}static get DefaultType(){return Mi}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){var t;this._isEnabled&&(e?((t=this._initializeOnDelegatedTarget(e))._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)):this.getTipElement().classList.contains(Ui)?this._leave(null,this):this._enter(null,this))}dispose(){clearTimeout(this._timeout),m.off(this._element.closest(".modal"),Vi,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");var e,t,i;this.isWithContent()&&this._isEnabled&&(e=m.trigger(this._element,this.constructor.Event.SHOW),i=(null===(i=q(this._element))?this._element.ownerDocument.documentElement:i).contains(this._element),!e.defaultPrevented)&&i&&("tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(Wi).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null),e=this.getTipElement(),i=(e=>{for(;e+=Math.floor(1e6*Math.random()),document.getElementById(e););return e})(this.constructor.NAME),e.setAttribute("id",i),this._element.setAttribute("aria-describedby",i),this._config.animation&&e.classList.add(Hi),i="function"==typeof this._config.placement?this._config.placement.call(this,e,this._element):this._config.placement,i=this._getAttachment(i),t=(this._addAttachmentClass(i),this._config).container,le.set(e,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(t.append(e),m.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Mt(this._element,e,this._getPopperConfig(i)),e.classList.add(Ui),(t=this._resolvePossibleFunction(this._config.customClass))&&e.classList.add(...t.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(e=>{m.on(e,"mouseover",H)}),i=this.tip.classList.contains(Hi),this._queueCallback(()=>{var e=this._hoverState;this._hoverState=null,m.trigger(this._element,this.constructor.Event.SHOWN),"out"===e&&this._leave(null,this)},this.tip,i))}hide(){if(this._popper){const t=this.getTipElement();var e;m.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented||(t.classList.remove(Ui),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(e=>m.off(e,"mouseover",H)),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,e=this.tip.classList.contains(Hi),this._queueCallback(()=>{this._isWithActiveTrigger()||(this._hoverState!==Fi&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),m.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())},this.tip,e),this._hoverState="")}}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){var e;return this.tip||((e=document.createElement("div")).innerHTML=this._config.template,e=e.children[0],this.setContent(e),e.classList.remove(Hi,Ui),this.tip=e),this.tip}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),Wi)}_sanitizeAndSetContent(e,t,i){var n=p.findOne(i,e);t||!n?this.setElementContent(n,t):n.remove()}setElementContent(e,t){if(null!==e)return s(t)?(t=o(t),void(this._config.html?t.parentNode!==e&&(e.innerHTML="",e.append(t)):e.textContent=t.textContent)):void(this._config.html?(this._config.sanitize&&(t=Bi(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}getTitle(){var e=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(e)}updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}_initializeOnDelegatedTarget(e,t){return t||this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_getOffset(){let t=this._config.offset;return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(e){return"function"==typeof e?e.call(this._element):e}_getPopperConfig(e){var t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:e=>this._handlePopperPlacementChange(e)}],onFirstUpdate:e=>{e.options.placement!==e.placement&&this._handlePopperPlacementChange(e)}};return{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_addAttachmentClass(e){this.getTipElement().classList.add(this._getBasicClassPrefix()+"-"+this.updateAttachment(e))}_getAttachment(e){return Ri[e.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(e=>{var t,i;"click"===e?m.on(this._element,this.constructor.Event.CLICK,this._config.selector,e=>this.toggle(e)):"manual"!==e&&(t=e===Gi?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=e===Gi?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT,m.on(this._element,t,this._config.selector,e=>this._enter(e)),m.on(this._element,i,this._config.selector,e=>this._leave(e)))}),this._hideModalHandler=()=>{this._element&&this.hide()},m.on(this._element.closest(".modal"),Vi,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){var e=this._element.getAttribute("title"),t=typeof this._element.getAttribute("data-bs-original-title");!e&&"string"==t||(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}_enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?"focus":Gi]=!0),t.getTipElement().classList.contains(Ui)||t._hoverState===Fi?t._hoverState=Fi:(clearTimeout(t._timeout),t._hoverState=Fi,t._config.delay&&t._config.delay.show?t._timeout=setTimeout(()=>{t._hoverState===Fi&&t.show()},t._config.delay.show):t.show())}_leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?"focus":Gi]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t._config.delay&&t._config.delay.hide?t._timeout=setTimeout(()=>{"out"===t._hoverState&&t.hide()},t._config.delay.hide):t.hide())}_isWithActiveTrigger(){for(const e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}_getConfig(e){const t=c.getDataAttributes(this._element);return Object.keys(t).forEach(e=>{zi.has(e)&&delete t[e]}),(e={...this.constructor.Default,...t,..."object"==typeof e&&e?e:{}}).container=!1===e.container?document.body:o(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),i(Ni,e,this.constructor.DefaultType),e.sanitize&&(e.template=Bi(e.template,e.allowList,e.sanitizeFn)),e}_getDelegateConfig(){var e={};for(const t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}_cleanTipClass(){const t=this.getTipElement(),e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),i=t.getAttribute("class").match(e);null!==i&&0<i.length&&i.map(e=>e.trim()).forEach(e=>t.classList.remove(e))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(e){var t=e.state;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each(function(){var e=Xi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}e(Xi);const Yi={...Xi.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},Ki={...Xi.DefaultType,content:"(string|element|function)"},Ji={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class Qi extends Xi{static get Default(){return Yi}static get NAME(){return"popover"}static get Event(){return Ji}static get DefaultType(){return Ki}isWithContent(){return this.getTitle()||this._getContent()}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(e,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(t){return this.each(function(){var e=Qi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}e(Qi);const Zi="scrollspy",en={offset:10,method:"auto",target:""},tn={offset:"number",method:"string",target:"(string|element)"},nn="active",on=".nav-link, .list-group-item, .dropdown-item",an="position";class sn extends t{constructor(e,t){super(e),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(t),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,m.on(this._scrollElement,"scroll.bs.scrollspy",()=>this._process()),this.refresh(),this._process()}static get Default(){return en}static get NAME(){return Zi}refresh(){const e=this._scrollElement===this._scrollElement.window?"offset":an,n="auto"===this._config.method?e:this._config.method,o=n===an?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),p.find(on,this._config.target).map(e=>{var t=M(e),i=t?p.findOne(t):null;if(i){const e=i.getBoundingClientRect();if(e.width||e.height)return[c[n](i).top+o,t]}return null}).filter(e=>e).sort((e,t)=>e[0]-t[0]).forEach(e=>{this._offsets.push(e[0]),this._targets.push(e[1])})}dispose(){m.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(e){return(e={...en,...c.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}}).target=o(e.target)||document.documentElement,i(Zi,e,tn),e}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])this._activeTarget=null,this._clear();else for(let e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}_activate(t){this._activeTarget=t,this._clear();var e=on.split(",").map(e=>e+`[data-bs-target="${t}"],${e}[href="${t}"]`),e=p.findOne(e.join(","),this._config.target);e.classList.add(nn),e.classList.contains("dropdown-item")?p.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(nn):p.parents(e,".nav, .list-group").forEach(e=>{p.prev(e,".nav-link, .list-group-item").forEach(e=>e.classList.add(nn)),p.prev(e,".nav-item").forEach(e=>{p.children(e,".nav-link").forEach(e=>e.classList.add(nn))})}),m.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:t})}_clear(){p.find(on,this._config.target).filter(e=>e.classList.contains(nn)).forEach(e=>e.classList.remove(nn))}static jQueryInterface(t){return this.each(function(){var e=sn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}m.on(window,"load.bs.scrollspy.data-api",()=>{p.find('[data-bs-spy="scroll"]').forEach(e=>new sn(e))}),e(sn);const rn="active",ln=".active",dn=":scope > li > .active";class cn extends t{static get NAME(){return"tab"}show(){if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!this._element.classList.contains(rn)){let e;const i=a(this._element),n=this._element.closest(".nav, .list-group");if(n){const i="UL"===n.nodeName||"OL"===n.nodeName?dn:ln;e=(e=p.find(i,n))[e.length-1]}var t=e?m.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null;m.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==t&&t.defaultPrevented||(this._activate(this._element,n),t=()=>{m.trigger(e,"hidden.bs.tab",{relatedTarget:this._element}),m.trigger(this._element,"shown.bs.tab",{relatedTarget:e})},i?this._activate(i,i.parentNode,t):t())}}_activate(e,t,i){const n=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?p.children(t,ln):p.find(dn,t))[0],o=i&&n&&n.classList.contains("fade"),a=()=>this._transitionComplete(e,n,i);n&&o?(n.classList.remove("show"),this._queueCallback(a,e,!0)):a()}_transitionComplete(e,t,i){if(t){t.classList.remove(rn);const e=p.findOne(":scope > .dropdown-menu .active",t.parentNode);e&&e.classList.remove(rn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(rn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),h(e),e.classList.contains("fade")&&e.classList.add("show");let n=e.parentNode;if((n=n&&"LI"===n.nodeName?n.parentNode:n)&&n.classList.contains("dropdown-menu")){const t=e.closest(".dropdown");t&&p.find(".dropdown-toggle",t).forEach(e=>e.classList.add(rn)),e.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(t){return this.each(function(){var e=cn.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}m.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),r(this)||cn.getOrCreateInstance(this).show()}),e(cn);const un="show",_n="showing",hn={animation:"boolean",autohide:"boolean",delay:"number"},pn={animation:!0,autohide:!0,delay:5e3};class fn extends t{constructor(e,t){super(e),this._config=this._getConfig(t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return hn}static get Default(){return pn}static get NAME(){return"toast"}show(){m.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),h(this._element),this._element.classList.add(un),this._element.classList.add(_n),this._queueCallback(()=>{this._element.classList.remove(_n),m.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this._element.classList.contains(un)||m.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(_n),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(_n),this._element.classList.remove(un),m.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation))}dispose(){this._clearTimeout(),this._element.classList.contains(un)&&this._element.classList.remove(un),super.dispose()}_getConfig(e){return e={...pn,...c.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}},i("toast",e,this.constructor.DefaultType),e}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}var i;t?this._clearTimeout():this._element===(i=e.relatedTarget)||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){m.on(this._element,"mouseover.bs.toast",e=>this._onInteraction(e,!0)),m.on(this._element,"mouseout.bs.toast",e=>this._onInteraction(e,!1)),m.on(this._element,"focusin.bs.toast",e=>this._onInteraction(e,!0)),m.on(this._element,"focusout.bs.toast",e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){var e=fn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return de(fn),e(fn),{Alert:ce,Button:_e,Carousel:v,Collapse:b,Dropdown:I,Modal:Ci,Offcanvas:B,Popover:Qi,ScrollSpy:sn,Tab:cn,Toast:fn,Tooltip:Xi}}),!function(t,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(e){return i(t,e)}):"object"==typeof module&&module.exports?module.exports=i(t,require("jquery")):t.jQueryBridget=i(t,t.jQuery)}(window,function(e,t){var u=Array.prototype.slice,i=e.console,_=void 0===i?function(){}:function(e){i.error(e)};function n(l,d,c){(c=c||t||e.jQuery)&&(d.prototype.option||(d.prototype.option=function(e){c.isPlainObject(e)&&(this.options=c.extend(!0,this.options,e))}),c.fn[l]=function(e){var t,i,o,a,s,r,n;return"string"==typeof e?(t=u.call(arguments,1),a=t,r="$()."+l+'("'+(o=e)+'")',(i=this).each(function(e,t){var i,n=c.data(t,l);n?(i=n[o])&&"_"!=o.charAt(0)?(i=i.apply(n,a),s=void 0===s?i:s):_(r+" is not a valid method"):_(l+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==s?s:i):(n=e,this.each(function(e,t){var i=c.data(t,l);i?(i.option(n),i._init()):(i=new d(t,n),c.data(t,l,i))}),this)},o(c))}function o(e){e&&!e.bridget&&(e.bridget=n)}return o(t||e.jQuery),n}),!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){var i;if(e&&t)return-1==(i=(i=this._events=this._events||{})[e]=i[e]||[]).indexOf(t)&&i.push(t),this},t.once=function(e,t){var i;if(e&&t)return this.on(e,t),((i=this._onceEvents=this._onceEvents||{})[e]=i[e]||{})[t]=!0,this},t.off=function(e,t){var i,n=this._events&&this._events[e];if(n&&n.length)return-1!=(i=n.indexOf(t))&&n.splice(i,1),this},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){var a=i[o];n&&n[a]&&(this.off(e,a),delete n[a]),a.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),!function(e,t){"function"==typeof define&&define.amd?define("get-size/get-size",t):"object"==typeof module&&module.exports?module.exports=t():e.getSize=t()}(window,function(){function g(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var i="undefined"==typeof console?function(){}:function(e){console.error(e)},v=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],b=v.length;function y(e){var t=getComputedStyle(e);return t||i("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}var w,k=!1;function E(e){if(k||(k=!0,(c=document.createElement("div")).style.width="200px",c.style.padding="1px 2px 3px 4px",c.style.borderStyle="solid",c.style.borderWidth="1px 2px 3px 4px",c.style.boxSizing="border-box",(d=document.body||document.documentElement).appendChild(c),a=y(c),w=200==Math.round(g(a.width)),E.isBoxSizeOuter=w,d.removeChild(c)),(e="string"==typeof e?document.querySelector(e):e)&&"object"==typeof e&&e.nodeType){var t=y(e);if("none"==t.display){for(var i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0;n<b;n++)i[v[n]]=0;return i}for(var o={},a=(o.width=e.offsetWidth,o.height=e.offsetHeight,o.isBorderBox="border-box"==t.boxSizing),s=0;s<b;s++){var r=v[s],l=t[r],l=parseFloat(l);o[r]=isNaN(l)?0:l}var d=o.paddingLeft+o.paddingRight,c=o.paddingTop+o.paddingBottom,u=o.marginLeft+o.marginRight,_=o.marginTop+o.marginBottom,h=o.borderLeftWidth+o.borderRightWidth,p=o.borderTopWidth+o.borderBottomWidth,f=a&&w,m=g(t.width),m=(!1!==m&&(o.width=m+(f?0:d+h)),g(t.height));return!1!==m&&(o.height=m+(f?0:c+p)),o.innerWidth=o.width-(d+h),o.innerHeight=o.height-(c+p),o.outerWidth=o.width+u,o.outerHeight=o.height+_,o}}return E}),!function(e,t){"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",t):"object"==typeof module&&module.exports?module.exports=t():e.matchesSelector=t()}(window,function(){var i=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0;i<t.length;i++){var n=t[i]+"MatchesSelector";if(e[n])return n}}();return function(e,t){return e[i](t)}}),!function(t,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(e){return i(t,e)}):"object"==typeof module&&module.exports?module.exports=i(t,require("desandro-matches-selector")):t.fizzyUIUtils=i(t,t.matchesSelector)}(window,function(i,a){var l={extend:function(e,t){for(var i in t)e[i]=t[i];return e},modulo:function(e,t){return(e%t+t)%t}},t=Array.prototype.slice,d=(l.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?t.call(e):[e]},l.removeFrom=function(e,t){var i=e.indexOf(t);-1!=i&&e.splice(i,1)},l.getParent=function(e,t){for(;e.parentNode&&e!=document.body;)if(a(e=e.parentNode,t))return e},l.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},l.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},l.filterFindElements=function(e,n){e=l.makeArray(e);var o=[];return e.forEach(function(e){if(e instanceof HTMLElement)if(n){a(e,n)&&o.push(e);for(var t=e.querySelectorAll(n),i=0;i<t.length;i++)o.push(t[i])}else o.push(e)}),o},l.debounceMethod=function(e,t,n){n=n||100;var o=e.prototype[t],a=t+"Timeout";e.prototype[t]=function(){var e=this[a],t=(clearTimeout(e),arguments),i=this;this[a]=setTimeout(function(){o.apply(i,t),delete i[a]},n)}},l.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},l.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(e,t,i){return t+"-"+i}).toLowerCase()},i.console);return l.htmlInit=function(s,r){l.docReady(function(){var e=l.toDashed(r),n="data-"+e,t=document.querySelectorAll("["+n+"]"),e=document.querySelectorAll(".js-"+e),t=l.makeArray(t).concat(l.makeArray(e)),o=n+"-options",a=i.jQuery;t.forEach(function(t){var e,i=t.getAttribute(n)||t.getAttribute(o);try{e=i&&JSON.parse(i)}catch(e){return void(d&&d.error("Error parsing "+n+" on "+t.className+": "+e))}i=new s(t,e);a&&a.data(t,r,i)})})},l}),!function(t,i){"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(e){return i(t,e)}):"object"==typeof module&&module.exports?module.exports=i(t,require("get-size")):(t.Flickity=t.Flickity||{},t.Flickity.Cell=i(t,t.getSize))}(window,function(e,t){function i(e,t){this.element=e,this.parent=t,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0,this.element.style[this.parent.originSide]=0},n.destroy=function(){this.unselect(),this.element.style.position="";var e=this.parent.originSide;this.element.style[e]="",this.element.style.transform="",this.element.removeAttribute("aria-hidden")},n.getSize=function(){this.size=t(this.element)},n.setPosition=function(e){this.x=e,this.updateTarget(),this.renderPosition(e)},n.updateTarget=n.setDefaultTarget=function(){var e="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[e]+this.size.width*this.parent.cellAlign},n.renderPosition=function(e){var t="left"===this.parent.originSide?1:-1,t=this.parent.options.percentPosition?e*t*(this.parent.size.innerWidth/this.size.width):e*t;this.element.style.transform="translateX("+this.parent.getPositionValue(t)+")"},n.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},n.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},n.wrapShift=function(e){this.shift=e,this.renderPosition(this.x+this.parent.slideableWidth*e)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}),!function(e,t){"function"==typeof define&&define.amd?define("flickity/js/slide",t):"object"==typeof module&&module.exports?module.exports=t():(e.Flickity=e.Flickity||{},e.Flickity.Slide=t())}(window,function(){function e(e){this.parent=e,this.isOriginLeft="left"==e.originSide,this.cells=[],this.outerWidth=0,this.height=0}var t=e.prototype;return t.addCell=function(e){var t;this.cells.push(e),this.outerWidth+=e.size.outerWidth,this.height=Math.max(e.size.outerHeight,this.height),1==this.cells.length&&(this.x=e.x,t=this.isOriginLeft?"marginLeft":"marginRight",this.firstMargin=e.size[t])},t.updateTarget=function(){var e=this.isOriginLeft?"marginRight":"marginLeft",t=this.getLastCell(),t=t?t.size[e]:0,e=this.outerWidth-(this.firstMargin+t);this.target=this.x+this.firstMargin+e*this.parent.cellAlign},t.getLastCell=function(){return this.cells[this.cells.length-1]},t.select=function(){this.cells.forEach(function(e){e.select()})},t.unselect=function(){this.cells.forEach(function(e){e.unselect()})},t.getCellElements=function(){return this.cells.map(function(e){return e.element})},e}),!function(t,i){"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(e){return i(t,e)}):"object"==typeof module&&module.exports?module.exports=i(t,require("fizzy-ui-utils")):(t.Flickity=t.Flickity||{},t.Flickity.animatePrototype=i(t,t.fizzyUIUtils))}(window,function(e,t){var i={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var e,t=this.x;this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating&&(e=this,requestAnimationFrame(function(){e.animate()}))},positionSlider:function(){var e=this.x;this.options.wrapAround&&1<this.cells.length&&(e=t.modulo(e,this.slideableWidth),e-=this.slideableWidth,this.shiftWrapCells(e)),this.setTranslateX(e,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(e,t){e+=this.cursorPosition,e=this.options.rightToLeft?-e:e;var i=this.getPositionValue(e);this.slider.style.transform=t?"translate3d("+i+",0,0)":"translateX("+i+")"},dispatchScrollEvent:function(){var e,t=this.slides[0];t&&(e=(t=-this.x-t.target)/this.slidesWidth,this.dispatchEvent("scroll",null,[e,t]))},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(e){return this.options.percentPosition?.01*Math.round(e/this.size.innerWidth*1e4)+"%":Math.round(e)+"px"},settle:function(e){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*e)||this.restingFrames++,2<this.restingFrames&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(e){var t=this.cursorPosition+e,t=(this._shiftCells(this.beforeShiftCells,t,-1),this.size.innerWidth-(e+this.slideableWidth+this.cursorPosition));this._shiftCells(this.afterShiftCells,t,1)},_shiftCells:function(e,t,i){for(var n=0;n<e.length;n++){var o=e[n];o.wrapShift(0<t?i:0),t-=o.size.outerWidth}},_unshiftCells:function(e){if(e&&e.length)for(var t=0;t<e.length;t++)e[t].wrapShift(0)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(e){this.velocity+=e},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){var e;this.isDraggable&&this.isPointerDown&&(e=this.dragX-this.x-this.velocity,this.applyForce(e))},applySelectedAttraction:function(){var e;this.isDraggable&&this.isPointerDown||this.isFreeScrolling||!this.slides.length||(e=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction,this.applyForce(e))}};return i}),!function(s,r){var e;"function"==typeof define&&define.amd?define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(e,t,i,n,o,a){return r(s,e,t,i,n,o,a)}):"object"==typeof module&&module.exports?module.exports=r(s,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./slide"),require("./animate")):(e=s.Flickity,s.Flickity=r(s,s.EvEmitter,s.getSize,s.fizzyUIUtils,e.Cell,e.Slide,e.animatePrototype))}(window,function(n,e,t,s,i,r,o){var a=n.jQuery,l=n.getComputedStyle,d=n.console;function c(e,t){for(e=s.makeArray(e);e.length;)t.appendChild(e.shift())}var u=0,_={};function h(e,t){var i,n=s.getQueryElement(e);if(n){if(this.element=n,this.element.flickityGUID)return(i=_[this.element.flickityGUID])&&i.option(t),i;a&&(this.$element=a(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(t),this._create()}else d&&d.error("Bad element for Flickity: "+(n||e))}h.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},h.createMethods=[];var p=h.prototype,f=(s.extend(p,e.prototype),p._create=function(){var e,t=this.guid=++u;for(e in this.element.flickityGUID=t,(_[t]=this).selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&n.addEventListener("resize",this),this.options.on){var i=this.options.on[e];this.on(e,i)}h.createMethods.forEach(function(e){this[e]()},this),this.options.watchCSS?this.watchCSS():this.activate()},p.option=function(e){s.extend(this.options,e)},p.activate=function(){this.isActive||(this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),c(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready"))},p._createSlider=function(){var e=document.createElement("div");e.className="flickity-slider",e.style[this.originSide]=0,this.slider=e},p._filterFindCellElements=function(e){return s.filterFindElements(e,this.options.cellSelector)},p.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},p._makeCells=function(e){return this._filterFindCellElements(e).map(function(e){return new i(e,this)},this)},p.getLastCell=function(){return this.cells[this.cells.length-1]},p.getLastSlide=function(){return this.slides[this.slides.length-1]},p.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},p._positionCells=function(e){this.maxCellHeight=(e=e||0)&&this.maxCellHeight||0;for(var t,i=0,n=(0<e&&(i=(t=this.cells[e-1]).x+t.size.outerWidth),this.cells.length),o=e;o<n;o++){var a=this.cells[o];a.setPosition(i),i+=a.size.outerWidth,this.maxCellHeight=Math.max(a.size.outerHeight,this.maxCellHeight)}this.slideableWidth=i,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},p._sizeCells=function(e){e.forEach(function(e){e.getSize()})},p.updateSlides=function(){var n,o,a;this.slides=[],this.cells.length&&(n=new r(this),this.slides.push(n),o="left"==this.originSide?"marginRight":"marginLeft",a=this._getCanCellFit(),this.cells.forEach(function(e,t){var i;n.cells.length&&(i=n.outerWidth-n.firstMargin+(e.size.outerWidth-e.size[o]),a.call(this,t,i)||(n.updateTarget(),n=new r(this),this.slides.push(n))),n.addCell(e)},this),n.updateTarget(),this.updateSelectedSlide())},p._getCanCellFit=function(){var t,i,e=this.options.groupCells;return e?"number"==typeof e?(t=parseInt(e,10),function(e){return e%t!=0}):(e="string"==typeof e&&e.match(/^(\d+)%$/),i=e?parseInt(e[1],10)/100:1,function(e,t){return t<=(this.size.innerWidth+1)*i}):function(){return!1}},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=t(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign},{center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}});return p.setCellAlign=function(){var e=f[this.options.cellAlign];this.cellAlign=e?e[this.originSide]:this.options.cellAlign},p.setGallerySize=function(){var e;this.options.setGallerySize&&(e=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight,this.viewport.style.height=e+"px")},p._getWrapShiftCells=function(){var e,t;this.options.wrapAround&&(this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells),e=this.cursorPosition,t=this.cells.length-1,this.beforeShiftCells=this._getGapCells(e,t,-1),e=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(e,0,1))},p._getGapCells=function(e,t,i){for(var n=[];0<e;){var o=this.cells[t];if(!o)break;n.push(o),t+=i,e-=o.size.outerWidth}return n},p._containSlides=function(){var e,t,i,n,o,a;this.options.contain&&!this.options.wrapAround&&this.cells.length&&(e=(t=this.options.rightToLeft)?"marginRight":"marginLeft",t=t?"marginLeft":"marginRight",i=this.slideableWidth-this.getLastCell().size[t],n=i<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[e],a=i-this.size.innerWidth*(1-this.cellAlign),this.slides.forEach(function(e){n?e.target=i*this.cellAlign:(e.target=Math.max(e.target,o),e.target=Math.min(e.target,a))},this))},p.dispatchEvent=function(e,t,i){var n,o=t?[t].concat(i):i;this.emitEvent(e,o),a&&this.$element&&(o=e+=this.options.namespaceJQueryEvents?".flickity":"",t&&((n=new a.Event(t)).type=e,o=n),this.$element.trigger(o,i))},p.select=function(e,t,i){var n;this.isActive&&(e=parseInt(e,10),this._wrapSelect(e),(this.options.wrapAround||t)&&(e=s.modulo(e,this.slides.length)),this.slides[e])&&(n=this.selectedIndex,this.selectedIndex=e,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[e]),e!=n&&this.dispatchEvent("change",null,[e]),this.dispatchEvent("cellSelect"))},p._wrapSelect=function(e){var t=this.slides.length;if(!(this.options.wrapAround&&1<t))return e;var i=s.modulo(e,t),n=Math.abs(i-this.selectedIndex),o=Math.abs(i+t-this.selectedIndex),i=Math.abs(i-t-this.selectedIndex);!this.isDragSelect&&o<n?e+=t:!this.isDragSelect&&i<n&&(e-=t),e<0?this.x-=this.slideableWidth:t<=e&&(this.x+=this.slideableWidth)},p.previous=function(e,t){this.select(this.selectedIndex-1,e,t)},p.next=function(e,t){this.select(this.selectedIndex+1,e,t)},p.updateSelectedSlide=function(){var e=this.slides[this.selectedIndex];e&&(this.unselectSelectedSlide(),(this.selectedSlide=e).select(),this.selectedCells=e.cells,this.selectedElements=e.getCellElements(),this.selectedCell=e.cells[0],this.selectedElement=this.selectedElements[0])},p.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},p.selectInitialIndex=function(){var e=this.options.initialIndex;if(this.isInitActivated)this.select(this.selectedIndex,!1,!0);else{if(e&&"string"==typeof e)if(this.queryCell(e))return void this.selectCell(e,!1,!0);var t=0;e&&this.slides[e]&&(t=e),this.select(t,!1,!0)}},p.selectCell=function(e,t,i){var n=this.queryCell(e);n&&(n=this.getCellSlideIndex(n),this.select(n,t,i))},p.getCellSlideIndex=function(e){for(var t=0;t<this.slides.length;t++)if(-1!=this.slides[t].cells.indexOf(e))return t},p.getCell=function(e){for(var t=0;t<this.cells.length;t++){var i=this.cells[t];if(i.element==e)return i}},p.getCells=function(e){e=s.makeArray(e);var i=[];return e.forEach(function(e){var t=this.getCell(e);t&&i.push(t)},this),i},p.getCellElements=function(){return this.cells.map(function(e){return e.element})},p.getParentCell=function(e){var t=this.getCell(e);return t||(e=s.getParent(e,".flickity-slider > *"),this.getCell(e))},p.getAdjacentCellElements=function(e,t){if(!e)return this.selectedSlide.getCellElements();t=void 0===t?this.selectedIndex:t;var i=this.slides.length;if(i<=1+2*e)return this.getCellElements();for(var n=[],o=t-e;o<=t+e;o++){var a=this.options.wrapAround?s.modulo(o,i):o,a=this.slides[a];a&&(n=n.concat(a.getCellElements()))}return n},p.queryCell=function(e){if("number"==typeof e)return this.cells[e];if("string"==typeof e){if(e.match(/^[#.]?[\d/]/))return;e=this.element.querySelector(e)}return this.getCell(e)},p.uiChange=function(){this.emitEvent("uiChange")},p.childUIPointerDown=function(e){"touchstart"!=e.type&&e.preventDefault(),this.focus()},p.onresize=function(){this.watchCSS(),this.resize()},s.debounceMethod(h,"onresize",150),p.resize=function(){var e;!this.isActive||this.isAnimating||this.isDragging||(this.getSize(),this.options.wrapAround&&(this.x=s.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize"),e=this.selectedElements&&this.selectedElements[0],this.selectCell(e,!1,!0))},p.watchCSS=function(){this.options.watchCSS&&(-1!=l(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},p.onkeydown=function(e){var t=document.activeElement&&document.activeElement!=this.element;this.options.accessibility&&!t&&(t=h.keyboardHandlers[e.keyCode])&&t.call(this)},h.keyboardHandlers={37:function(){var e=this.options.rightToLeft?"next":"previous";this.uiChange(),this[e]()},39:function(){var e=this.options.rightToLeft?"previous":"next";this.uiChange(),this[e]()}},p.focus=function(){var e=n.pageYOffset;this.element.focus({preventScroll:!0}),n.pageYOffset!=e&&n.scrollTo(n.pageXOffset,e)},p.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(e){e.destroy()}),this.element.removeChild(this.viewport),c(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},p.destroy=function(){this.deactivate(),n.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),a&&this.$element&&a.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete _[this.guid]},s.extend(p,o),h.data=function(e){var t=(e=s.getQueryElement(e))&&e.flickityGUID;return t&&_[t]},s.htmlInit(h,"flickity"),a&&a.bridget&&a.bridget("flickity",h),h.setJQuery=function(e){a=e},h.Cell=i,h.Slide=r,h}),!function(t,i){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(e){return i(t,e)}):"object"==typeof module&&module.exports?module.exports=i(t,require("ev-emitter")):t.Unipointer=i(t,t.EvEmitter)}(window,function(o,e){function t(){}var i=t.prototype=Object.create(e.prototype),n=(i.bindStartEvent=function(e){this._bindStartEvent(e,!0)},i.unbindStartEvent=function(e){this._bindStartEvent(e,!1)},i._bindStartEvent=function(e,t){var i=(t=void 0===t||t)?"addEventListener":"removeEventListener",n="mousedown";"ontouchstart"in o?n="touchstart":o.PointerEvent&&(n="pointerdown"),e[i](n,this)},i.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},i.getTouch=function(e){for(var t=0;t<e.length;t++){var i=e[t];if(i.identifier==this.pointerIdentifier)return i}},i.onmousedown=function(e){var t=e.button;t&&0!==t&&1!==t||this._pointerDown(e,e)},i.ontouchstart=function(e){this._pointerDown(e,e.changedTouches[0])},i.onpointerdown=function(e){this._pointerDown(e,e)},i._pointerDown=function(e,t){e.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==t.pointerId?t.pointerId:t.identifier,this.pointerDown(e,t))},i.pointerDown=function(e,t){this._bindPostStartEvents(e),this.emitEvent("pointerDown",[e,t])},{mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]});return i._bindPostStartEvents=function(e){var t;e&&((t=n[e.type]).forEach(function(e){o.addEventListener(e,this)},this),this._boundPointerEvents=t)},i._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(e){o.removeEventListener(e,this)},this),delete this._boundPointerEvents)},i.onmousemove=function(e){this._pointerMove(e,e)},i.onpointermove=function(e){e.pointerId==this.pointerIdentifier&&this._pointerMove(e,e)},i.ontouchmove=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerMove(e,t)},i._pointerMove=function(e,t){this.pointerMove(e,t)},i.pointerMove=function(e,t){this.emitEvent("pointerMove",[e,t])},i.onmouseup=function(e){this._pointerUp(e,e)},i.onpointerup=function(e){e.pointerId==this.pointerIdentifier&&this._pointerUp(e,e)},i.ontouchend=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerUp(e,t)},i._pointerUp=function(e,t){this._pointerDone(),this.pointerUp(e,t)},i.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t])},i._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},i._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},i.pointerDone=function(){},i.onpointercancel=function(e){e.pointerId==this.pointerIdentifier&&this._pointerCancel(e,e)},i.ontouchcancel=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerCancel(e,t)},i._pointerCancel=function(e,t){this._pointerDone(),this.pointerCancel(e,t)},i.pointerCancel=function(e,t){this.emitEvent("pointerCancel",[e,t])},t.getPointerPoint=function(e){return{x:e.pageX,y:e.pageY}},t}),!function(t,i){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(e){return i(t,e)}):"object"==typeof module&&module.exports?module.exports=i(t,require("unipointer")):t.Unidragger=i(t,t.Unipointer)}(window,function(a,e){function t(){}var i=t.prototype=Object.create(e.prototype),n=(i.bindHandles=function(){this._bindHandles(!0)},i.unbindHandles=function(){this._bindHandles(!1)},i._bindHandles=function(e){for(var t=(e=void 0===e||e)?"addEventListener":"removeEventListener",i=e?this._touchActionValue:"",n=0;n<this.handles.length;n++){var o=this.handles[n];this._bindStartEvent(o,e),o[t]("click",this),a.PointerEvent&&(o.style.touchAction=i)}},i._touchActionValue="none",i.pointerDown=function(e,t){this.okayPointerDown(e)&&(this.pointerDownPointer={pageX:t.pageX,pageY:t.pageY},e.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(e),this.emitEvent("pointerDown",[e,t]))},{TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0}),o={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return i.okayPointerDown=function(e){var t=n[e.target.nodeName],i=o[e.target.type],t=!t||i;return t||this._pointerReset(),t},i.pointerDownBlur=function(){var e=document.activeElement;e&&e.blur&&e!=document.body&&e.blur()},i.pointerMove=function(e,t){var i=this._dragPointerMove(e,t);this.emitEvent("pointerMove",[e,t,i]),this._dragMove(e,t,i)},i._dragPointerMove=function(e,t){var i={x:t.pageX-this.pointerDownPointer.pageX,y:t.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(e,t),i},i.hasDragStarted=function(e){return 3<Math.abs(e.x)||3<Math.abs(e.y)},i.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t]),this._dragPointerUp(e,t)},i._dragPointerUp=function(e,t){this.isDragging?this._dragEnd(e,t):this._staticClick(e,t)},i._dragStart=function(e,t){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(e,t)},i.dragStart=function(e,t){this.emitEvent("dragStart",[e,t])},i._dragMove=function(e,t,i){this.isDragging&&this.dragMove(e,t,i)},i.dragMove=function(e,t,i){e.preventDefault(),this.emitEvent("dragMove",[e,t,i])},i._dragEnd=function(e,t){this.isDragging=!1,setTimeout((function(){delete this.isPreventingClicks}).bind(this)),this.dragEnd(e,t)},i.dragEnd=function(e,t){this.emitEvent("dragEnd",[e,t])},i.onclick=function(e){this.isPreventingClicks&&e.preventDefault()},i._staticClick=function(e,t){this.isIgnoringMouseUp&&"mouseup"==e.type||(this.staticClick(e,t),"mouseup"!=e.type&&(this.isIgnoringMouseUp=!0,setTimeout((function(){delete this.isIgnoringMouseUp}).bind(this),400)))},i.staticClick=function(e,t){this.emitEvent("staticClick",[e,t])},t.getPointerPoint=e.getPointerPoint,t}),!function(n,o){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(e,t,i){return o(n,e,t,i)}):"object"==typeof module&&module.exports?module.exports=o(n,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):n.Flickity=o(n,n.Flickity,n.Unidragger,n.fizzyUIUtils)}(window,function(i,e,t,a){a.extend(e.defaults,{draggable:">1",dragThreshold:3}),e.createMethods.push("_createDrag");var n=e.prototype,o=(a.extend(n,t.prototype),n._touchActionValue="pan-y",n._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable)},n.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},n.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},n.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=1<this.slides.length:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},n.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},n.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},n._uiChangeDrag=function(){delete this.isFreeScrolling},n.pointerDown=function(e,t){this.isDraggable?this.okayPointerDown(e)&&(this._pointerDownPreventDefault(e),this.pointerDownFocus(e),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=s(),i.addEventListener("scroll",this),this._pointerDownDefault(e,t)):this._pointerDownDefault(e,t)},n._pointerDownDefault=function(e,t){this.pointerDownPointer={pageX:t.pageX,pageY:t.pageY},this._bindPostStartEvents(e),this.dispatchEvent("pointerDown",e,[t])},{INPUT:!0,TEXTAREA:!0,SELECT:!0});function s(){return{x:i.pageXOffset,y:i.pageYOffset}}return n.pointerDownFocus=function(e){o[e.target.nodeName]||this.focus()},n._pointerDownPreventDefault=function(e){var t="touchstart"==e.type,i=o[e.target.nodeName];t||"touch"==e.pointerType||i||e.preventDefault()},n.hasDragStarted=function(e){return Math.abs(e.x)>this.options.dragThreshold},n.pointerUp=function(e,t){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",e,[t]),this._dragPointerUp(e,t)},n.pointerDone=function(){i.removeEventListener("scroll",this),delete this.pointerDownScroll},n.dragStart=function(e,t){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),i.removeEventListener("scroll",this),this.dispatchEvent("dragStart",e,[t]))},n.pointerMove=function(e,t){var i=this._dragPointerMove(e,t);this.dispatchEvent("pointerMove",e,[t,i]),this._dragMove(e,t,i)},n.dragMove=function(e,t,i){var n,o;this.isDraggable&&(e.preventDefault(),this.previousDragX=this.dragX,n=this.options.rightToLeft?-1:1,this.options.wrapAround&&(i.x%=this.slideableWidth),n=this.dragStartPosition+i.x*n,!this.options.wrapAround&&this.slides.length&&(n=(n=(o=Math.max(-this.slides[0].target,this.dragStartPosition))<n?.5*(n+o):n)<(o=Math.min(-this.getLastSlide().target,this.dragStartPosition))?.5*(n+o):n),this.dragX=n,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",e,[t,i]))},n.dragEnd=function(e,t){var i,n;this.isDraggable&&(this.options.freeScroll&&(this.isFreeScrolling=!0),i=this.dragEndRestingSelect(),this.options.freeScroll&&!this.options.wrapAround?(n=this.getRestingPosition(),this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target):this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect()),delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",e,[t]))},n.dragEndRestingSelect=function(){var e=this.getRestingPosition(),t=Math.abs(this.getSlideDistance(-e,this.selectedIndex)),i=this._getClosestResting(e,t,1),e=this._getClosestResting(e,t,-1);return(i.distance<e.distance?i:e).index},n._getClosestResting=function(e,t,i){for(var n=this.selectedIndex,o=1/0,a=this.options.contain&&!this.options.wrapAround?function(e,t){return e<=t}:function(e,t){return e<t};a(t,o)&&(o=t,null!==(t=this.getSlideDistance(-e,n+=i)));)t=Math.abs(t);return{distance:o,index:n-i}},n.getSlideDistance=function(e,t){var i=this.slides.length,n=this.options.wrapAround&&1<i,o=n?a.modulo(t,i):t,o=this.slides[o];return o?(n=n?this.slideableWidth*Math.floor(t/i):0,e-(o.target+n)):null},n.dragEndBoostSelect=function(){var e,t;return void 0===this.previousDragX||!this.dragMoveTime||100<new Date-this.dragMoveTime?0:(e=this.getSlideDistance(-this.dragX,this.selectedIndex),t=this.previousDragX-this.dragX,0<e&&0<t?1:e<0&&t<0?-1:0)},n.staticClick=function(e,t){var i=this.getParentCell(e.target),n=i&&i.element,i=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",e,[t,n,i])},n.onscroll=function(){var e=s(),t=this.pointerDownScroll.x-e.x,e=this.pointerDownScroll.y-e.y;(3<Math.abs(t)||3<Math.abs(e))&&this._pointerDone()},e}),!function(n,o){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(e,t,i){return o(n,e,t,i)}):"object"==typeof module&&module.exports?module.exports=o(n,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):o(n,n.Flickity,n.Unipointer,n.fizzyUIUtils)}(window,function(e,t,i,n){var o="http://www.w3.org/2000/svg";function a(e,t){this.direction=e,this.parent=t,this._create()}(a.prototype=Object.create(i.prototype))._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var e=this.parent.options.rightToLeft?1:-1,e=(this.isLeft=this.direction==e,this.element=document.createElement("button")),t=(e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next"),this.createSVG());e.appendChild(t),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},a.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},a.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},a.prototype.createSVG=function(){var e,t=document.createElementNS(o,"svg"),i=(t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100"),document.createElementNS(o,"path")),n="string"!=typeof(e=this.parent.options.arrowShape)?"M "+e.x0+",50 L "+e.x1+","+(e.y1+50)+" L "+e.x2+","+(e.y2+50)+" L "+e.x3+",50  L "+e.x2+","+(50-e.y2)+" L "+e.x1+","+(50-e.y1)+" Z":e;return i.setAttribute("d",n),i.setAttribute("class","arrow"),this.isLeft||i.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(i),t},a.prototype.handleEvent=n.handleEvent,a.prototype.onclick=function(){var e;this.isEnabled&&(this.parent.uiChange(),e=this.isPrevious?"previous":"next",this.parent[e]())},a.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},a.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},a.prototype.update=function(){var e=this.parent.slides;this.parent.options.wrapAround&&1<e.length?this.enable():(e=e.length?e.length-1:0,e=this.isPrevious?0:e,this[this.parent.selectedIndex==e?"disable":"enable"]())},a.prototype.destroy=function(){this.deactivate(),this.allOff()},n.extend(t.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),t.createMethods.push("_createPrevNextButtons");var s=t.prototype;return s._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new a(-1,this),this.nextButton=new a(1,this),this.on("activate",this.activatePrevNextButtons))},s.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},s.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},t.PrevNextButton=a,t}),!function(n,o){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(e,t,i){return o(n,e,t,i)}):"object"==typeof module&&module.exports?module.exports=o(n,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):o(n,n.Flickity,n.Unipointer,n.fizzyUIUtils)}(window,function(e,t,i,n){function o(e){this.parent=e,this._create()}(o.prototype=Object.create(i.prototype))._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},o.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},o.prototype.setDots=function(){var e=this.parent.slides.length-this.dots.length;0<e?this.addDots(e):e<0&&this.removeDots(-e)},o.prototype.addDots=function(e){for(var t=document.createDocumentFragment(),i=[],n=this.dots.length,o=n+e,a=n;a<o;a++){var s=document.createElement("li");s.className="dot",s.setAttribute("aria-label","Page dot "+(a+1)),t.appendChild(s),i.push(s)}this.holder.appendChild(t),this.dots=this.dots.concat(i)},o.prototype.removeDots=function(e){this.dots.splice(this.dots.length-e,e).forEach(function(e){this.holder.removeChild(e)},this)},o.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},o.prototype.onTap=o.prototype.onClick=function(e){var t=e.target;"LI"==t.nodeName&&(this.parent.uiChange(),t=this.dots.indexOf(t),this.parent.select(t))},o.prototype.destroy=function(){this.deactivate(),this.allOff()},t.PageDots=o,n.extend(t.defaults,{pageDots:!0}),t.createMethods.push("_createPageDots");var a=t.prototype;return a._createPageDots=function(){this.options.pageDots&&(this.pageDots=new o(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},a.activatePageDots=function(){this.pageDots.activate()},a.updateSelectedPageDots=function(){this.pageDots.updateSelected()},a.updatePageDots=function(){this.pageDots.setDots()},a.deactivatePageDots=function(){this.pageDots.deactivate()},t.PageDots=o,t}),!function(e,t){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],t):"object"==typeof module&&module.exports?module.exports=t(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):t(e.EvEmitter,e.fizzyUIUtils,e.Flickity)}(window,function(e,t,i){function n(e){this.parent=e,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}(n.prototype=Object.create(e.prototype)).play=function(){"playing"!=this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},n.prototype.tick=function(){var e,t;"playing"==this.state&&(e="number"==typeof(e=this.parent.options.autoPlay)?e:3e3,(t=this).clear(),this.timeout=setTimeout(function(){t.parent.next(!0),t.tick()},e))},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},t.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var o=i.prototype;return o._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},o.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},o.playPlayer=function(){this.player.play()},o.stopPlayer=function(){this.player.stop()},o.pausePlayer=function(){this.player.pause()},o.unpausePlayer=function(){this.player.unpause()},o.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},o.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},o.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}),!function(i,n){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(e,t){return n(i,e,t)}):"object"==typeof module&&module.exports?module.exports=n(i,require("./flickity"),require("fizzy-ui-utils")):n(i,i.Flickity,i.fizzyUIUtils)}(window,function(e,t,n){var i=t.prototype;return i.insert=function(e,t){var i,n,o,a,s,r=this._makeCells(e);r&&r.length&&(i=this.cells.length,t=void 0===t?i:t,e=r,n=document.createDocumentFragment(),e.forEach(function(e){n.appendChild(e.element)}),s=n,(o=t==i)?this.slider.appendChild(s):(a=this.cells[t].element,this.slider.insertBefore(s,a)),0===t?this.cells=r.concat(this.cells):o?this.cells=this.cells.concat(r):(s=this.cells.splice(t,i-t),this.cells=this.cells.concat(r).concat(s)),this._sizeCells(r),this.cellChange(t,!0))},i.append=function(e){this.insert(e,this.cells.length)},i.prepend=function(e){this.insert(e,0)},i.remove=function(e){var i,t=this.getCells(e);t&&t.length&&(i=this.cells.length-1,t.forEach(function(e){e.remove();var t=this.cells.indexOf(e);i=Math.min(t,i),n.removeFrom(this.cells,e)},this),this.cellChange(i,!0))},i.cellSizeChange=function(e){var t=this.getCell(e);t&&(t.getSize(),t=this.cells.indexOf(t),this.cellChange(t))},i.cellChange=function(e,t){var i=this.selectedElement,i=(this._positionCells(e),this._getWrapShiftCells(),this.setGallerySize(),this.getCell(i));i&&(this.selectedIndex=this.getCellSlideIndex(i)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[e]),this.select(this.selectedIndex),t&&this.positionSliderAtSelected()},t}),!function(i,n){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(e,t){return n(i,e,t)}):"object"==typeof module&&module.exports?module.exports=n(i,require("./flickity"),require("fizzy-ui-utils")):n(i,i.Flickity,i.fizzyUIUtils)}(window,function(e,t,o){t.createMethods.push("_createLazyload");var i=t.prototype;function n(e,t){this.img=e,this.flickity=t,this.load()}return i._createLazyload=function(){this.on("select",this.lazyLoad)},i.lazyLoad=function(){var i,e=this.options.lazyLoad;e&&(e=this.getAdjacentCellElements("number"==typeof e?e:0),i=[],e.forEach(function(e){var t=function(e){if("IMG"==e.nodeName){var t=e.getAttribute("data-flickity-lazyload"),i=e.getAttribute("data-flickity-lazyload-src"),n=e.getAttribute("data-flickity-lazyload-srcset");if(t||i||n)return[e]}t=e.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return o.makeArray(t)}(e);i=i.concat(t)}),i.forEach(function(e){new n(e,this)},this))},n.prototype.handleEvent=o.handleEvent,n.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var e=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),t=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=e,t&&this.img.setAttribute("srcset",t),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},n.prototype.onload=function(e){this.complete(e,"flickity-lazyloaded")},n.prototype.onerror=function(e){this.complete(e,"flickity-lazyerror")},n.prototype.complete=function(e,t){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),i=i&&i.element;this.flickity.cellSizeChange(i),this.img.classList.add(t),this.flickity.dispatchEvent("lazyLoad",e,i)},t.LazyLoader=n,t}),!function(e){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],e):"object"==typeof module&&module.exports&&(module.exports=e(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}((window,function(e){return e})),!function(e,t){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],t):"object"==typeof module&&module.exports?module.exports=t(require("flickity"),require("fizzy-ui-utils")):e.Flickity=t(e.Flickity,e.fizzyUIUtils)}(window,function(n,o){n.createMethods.push("_createAsNavFor");var e=n.prototype;return e._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var e,t=this.options.asNavFor;t&&(e=this,setTimeout(function(){e.setNavCompanion(t)}))},e.setNavCompanion=function(e){e=o.getQueryElement(e);var t,i=n.data(e);i&&i!=this&&(this.navCompanion=i,(t=this).onNavCompanionSelect=function(){t.navCompanionSelect()},i.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0))},e.navCompanionSelect=function(e){var t,i,n,o=this.navCompanion&&this.navCompanion.selectedCells;o&&(t=o[0],t=this.navCompanion.cells.indexOf(t),o=t+o.length-1,n=Math.floor((i=this.navCompanion.cellAlign,(o-t)*i+t)),this.selectCell(n,!1,e),this.removeNavSelectedElements(),n>=this.cells.length||(n=this.cells.slice(t,1+o),this.navSelectedElements=n.map(function(e){return e.element}),this.changeNavSelectedClass("add")))},e.changeNavSelectedClass=function(t){this.navSelectedElements.forEach(function(e){e.classList[t]("is-nav-selected")})},e.activateAsNavFor=function(){this.navCompanionSelect(!0)},e.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},e.onNavStaticClick=function(e,t,i,n){"number"==typeof n&&this.navCompanion.selectCell(n)},e.deactivateAsNavFor=function(){this.removeNavSelectedElements()},e.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},n}),!function(t,i){"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(e){return i(t,e)}):"object"==typeof module&&module.exports?module.exports=i(t,require("ev-emitter")):t.imagesLoaded=i(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){var a=t.jQuery,s=t.console;function r(e,t){for(var i in t)e[i]=t[i];return e}var l=Array.prototype.slice;function d(e,t,i){if(!(this instanceof d))return new d(e,t,i);var n,o=e;(o="string"==typeof e?document.querySelectorAll(e):o)?(this.elements=(n=o,Array.isArray(n)?n:"object"==typeof n&&"number"==typeof n.length?l.call(n):[n]),this.options=r({},this.options),"function"==typeof t?i=t:r(this.options,t),i&&this.on("always",i),this.getImages(),a&&(this.jqDeferred=new a.Deferred),setTimeout(this.check.bind(this))):s.error("Bad element for imagesLoaded "+(o||e))}(d.prototype=Object.create(e.prototype)).options={},d.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},d.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&c[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background)for(var a=e.querySelectorAll(this.options.background),n=0;n<a.length;n++){var s=a[n];this.addElementBackgroundImages(s)}}};var c={1:!0,9:!0,11:!0};function i(e){this.img=e}function n(e,t){this.url=e,this.element=t,this.img=new Image}return d.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},d.prototype.addImage=function(e){var t=new i(e);this.images.push(t)},d.prototype.addBackground=function(e,t){var i=new n(e,t);this.images.push(i)},d.prototype.check=function(){var n=this;function t(e,t,i){setTimeout(function(){n.progress(e,t,i)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(e){e.once("progress",t),e.check()}):this.complete()},d.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&s&&s.log("progress: "+i,e,t)},d.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(e=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[e](this))},(i.prototype=Object.create(e.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},i.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(n.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},n.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},n.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},(d.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((a=e).fn.imagesLoaded=function(e,t){return new d(this,e,t).jqDeferred.promise(a(this))})})(),d}),!function(i,n){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(e,t){return n(i,e,t)}):"object"==typeof module&&module.exports?module.exports=n(i,require("flickity"),require("imagesloaded")):i.Flickity=n(i,i.Flickity,i.imagesLoaded)}(window,function(e,t,i){t.createMethods.push("_createImagesLoaded");var n=t.prototype;return n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},n.imagesLoaded=function(){var n;this.options.imagesLoaded&&i((n=this).slider).on("progress",function(e,t){var i=n.getParentCell(t.img);n.cellSizeChange(i&&i.element),n.options.freeScroll||n.positionSliderAtSelected()})},t}),void 0===translated_texts_json&&(translated_texts_json={}),void 0===translated_public_texts_json&&(translated_public_texts_json={}),window.translated_texts_json={},window.translated_texts_json["da-DK"]={"626267415e7c19948d0a18f4dccf159a7e41ffad":"Januar","9aaceea74e57e7d2a1ab5d34ab38f63d15bbab55":"Februar",e0078be2cb616c45943e139ebea840e11c43cd81:"Marts",a0393902db1f516ef5f95f6830938558a88fb23c:"April","97cb2d32dee344f7abf301c1261d43ba3ffc1b2f":"Maj","7e1115bd02bb3ab255a9d7e85eb95f6f3d56b1b2":"Juni",aeb2d1b92e6273c7af5eeefe50702ffd37a740e9:"Juli","69d97c5797dc7d211aaa4e9229db5c8466d4edef":"August","1c542e79c9b4257e640ccf72974d61fd590a5c26":"September",ef2a59835205df9813818c73b494b7ca1d8a11ad:"Oktober","3c5bf776f5efcaa22d6e0fd4839db7d2b83e52be":"November","65640c6577c9c72497525e656127b5bd1deb6f85":"December","90442c2c185f080f89e4e51dcda2e81d1963e6ae":"Luk",ae634fdf74616b69704a0abc5cf7688b237438e3:"Gem",ecb067d915db81815a87affe2a5ba6524bb3d181:"Tilbage","283c735c8901fb2d4af6e619fe339fab53087ad1":"Ja",cf98c6304efd4e51eccbc0a0e42025e179b2a6a9:"Nej","32dae7e1dc4d7dc1a0564c3abcc19137cea4f14d":"Navn","290c69e7497f0c82e74520cdceb8bc34723ca40e":"Handelsbetingelser",f3d6ef821bf0b848c4fce1ba490e3cdaa7cec9fb:"Er du sikker?","20f1cf0ff6ce03f65c140d3db640e824b786af51":"Slet","9ce3bd4224c8c1780db56b4125ecf3f24bf748b7":"OK",d41a2437a790c469e6b0e147798284362c90caf1:"Noget gik galt","9bc2575c3930437e80555f78757b783c842e8e66":"Send",c0ed43ce76058814e3e1ccb5ba58d401d82c92fc:"Fejl","57edf2d6a81561ab34e0c652efecbc409286c2e1":"Søg...",dc3b20b6c6cf555c5bf7023c3a625d6d8f410518:"Indtast den ønskede mængde",b8077d292e7cac41bce61487614d0b2258062aae:"Du skal vælge den pakkeshop hvor du ønsker at hente din pakke",a742f5f38db1b509966b8f423bb8e94d90be6599:"Postnummer ikke genkendt","1896f032ceb6e37d46b956fe1d2688fe0f74850e":"Vælg afhentningssted",e9c6766776093dcc26ea6a23e4b6c1f78a781280:"Den indtastede adresse blev ikke fundet, har du indtastet adressen korrekt?","32c652a0d894113d9cb806e0941686c5beeb44d8":"Der opstod et problem i forbindelse med din betaling",dc09abcafbae11c93cb0226a5c1eec37d910077d:"Er du sikker på at du ønsker at fjerne rabatkoden?","8920314c3d60cb94cf9c571a50d06405ac4601bd":"Vi har desværre lukket lige nu","18bb5825a95b4d46978f1435362212e5f48f84b2":"Start chat",f7c452497cc577ed8569cf268bdddeee5da2f616:"Dit navn","74eb2b8c317c1f5ee76bf4542cae0e24d701441f":"Udfyld venligst dit navn og tryk så på Start Chat","966fa407e947475167ef3d870d9cc19fd82db09c":"Denne chat er nu afsluttet","86e17c4d46d73ac1f1d93eaa33cd913b0229f167":"Annullér",b56a9f65c6d0fce08fb19e8f402ab5fe5129e5c5:"For svagt",ae5903e2242dde60f5bd1e0f5b4a06d73904c060:"Svagt",db617336182fac63c73c471248bf0d03012322ba:"Middel",c832783435b30e37d1cf4bce25c52360d069faf7:"Stærkt",fb84d7d973b8caf2b88d7b83e9e4b06d18560917:"Meget stærkt","0b094c4a54ca77f89ee3e18aec9c4d6fa2ef9d9f":"Kodeord styrke:",c5f875b2eee683a973b824767a10c5c80015ed3f:"Henter...","0d653a17ff68633711914139616f5529068f1c3d":"Vælg alle",bb83e994ede3a3d9448cb3923ae0e4bfc854e7a4:"Vælg ingen","4c91412b308b72bad038a0a7c4f1275d7356b430":"Intet valgt","45598931fcd06c1e7480c9c6d66bd3304550b29f":"Ingen resultater","544637e96dbb6504af153d169df5b138d13f22fe":"{1} af {2} valgt","2baa97ed56663b5de50d15fca0a352f63d66e08d":"Du skal udfylde de påkrævede felter","7301ed8b84a886ccad29141a6814fdfd35d7b16d":"Procent rabat",f5e464e82c93cb4dea9c444681bcb20ebe22b51e:"Søndag","29ec96f6801195b763d7d9446a152c1ba50e71e0":"Mandag",bd25ffe4fb56c8ec7f060b39d08c50cbf8539ad8:"Tirsdag","458e71f30e9016f981060f7b2d24423f1fbf4e45":"Onsdag","73fcf712cb07bbb12b3908791800517e4aadbd40":"Torsdag","88469d23ee4cc1ca1b3fb47eec1e1b725534f809":"Fredag","4b5ac3c414743a8171507a9b350a5415ba885c88":"Lørdag","74fd863623dfa3defe946efb01b4a45f63cc1f16":"Log ind",a6276cee99aba3344d78a899e036c1319cd287c9:"Log ud","1167a10e7a79a5177204acce73de5059d357e613":"Rabatkode",aac30383d29d4ff7de6aaed847379384ae7f00fa:"Kundelogin","19c85a80d3213f23beb1b77e580ede43f68fd9a7":"Kommentar","98ee22593c4796e61a7249e4c06a46a05476cb01":"Nyhedsbrev","05fbbfe941aea0cf4aa96b55bdac3a335e3624e0":"Statistik","4c665c6d580d4e6052c0c8b1e2484cd53126a495":"Tilbage til standard værdi","23925dcced906d4d4ecd7907df5c14354f584089":"Annuller",c2ad1feebed08252854d74e0c054308b34b9fe17:"Validerings fejl","8ae305d9b2264eea4fbd1763415487cb01d2f766":"Fjern vare fra kurv?","40b9535b846eafd6696486bb022b0bb564e0865f":"Er du sikker på at du ønsker at fjerne varen fra kurven?","0728102bf2609f553523a15e93f138b31cd2c4c3":"Slet vare",b0d2e732753b01d42317b2fb2ce1e3d2b58ec179:"Gem ændringer",c543ff471e335295028b896dd9769dc262887404:"Rabatkoden blev fjernet",b06cd19cf000e53f50a6daf9275eb4120206a79b:"Er du sikker på at du vil afslutte chatten?","26a9b59bceb356a22b2f99a8ab2d46d4e65bee76":"Afslut chat",b0f61725f6a29b8e83fdfc533642cace84ed4626:"Vis",a8d5a9b91ec22cf029e1cd1402c3c5e538d27104:"Overstyring","0d01e2e86669e98441ab4dce5520696c318b7098":"E-mail",aaca889c4d4892b55b21c0f02e956f5dac097b4e:"Elementer på side:",ce85973ca46ef0f126254544f5501f9785dbba6c:"Du skal vælge en betalingsmetode","1a9564717be8eaf789558e9eb2019100e6aa1e9b":"Design-redigering","0e9bd53b15ff951041fc026a8e5a94d6a70a3dee":"Du blev logget ind","46f12a47bd329232cab21d6d5eb2c5e2b6ab8e72":"Din e-mail",fe5f2d8945b3f8e7645cea781c8bf79d85d2c6d0:"Forbindelses fejl",b41cf50c2ae53e4be4b40474e0350b2a7dd95ddb:"Der opstod en forbindelsesfejl<br>Prøv igen om et par sekunder<br>Hvis problemet fortsætter, så tag kontakt til support",ecc6649ef254ab0897acf8f967bcd59c947a3a1e:"Du skal indtaste en e-mail adresse for at kunne tilmelde dig nyhedsbrevet","57e5225ca08aac7dc65a6e573219cfc6b7435c30":"Du skal indtaste en gyldig e-mail adresse for at kunne tilmelde dig nyhedsbrevet","58cd6c6512e4f73131b1199f77b1153735a88e38":"Din e-mail adresse er nu tilmeldt nyhedsbrevet","3fe436eb36d00e1906a1b42da8d3dd0e8a001860":"Gennemsigtig",c820a386cebdacf9cf16a49e60e17d1c92bfa8a7:"Slet sektion","19ca28fd2ed0333bcb57a2e44d023e42a1738703":"Højre",eb387b9004b38903bfdeb0d061d76d59415dd1d5:"Venstre","00cd0fb538bee7206651c69d1499fb0f7eb2de02":"Du skal udfylde de påkrævede felter, før varen kan lægges i kurven","306db52337a0f092aa0043af2aada454beee59c2":"Sprog ikke offentligt",a1f2db351e3a45da0002632cc8fc6c791dceb707:"Bemærk at dette sprog ikke er offentligt, og derfor kun synligt for dig som shop admin","120629968bbea6edc7e03595f6b83a0ab46069b3":"Søn","510032b9c9d738843e5def176303a8f202e9f319":"Man","62d2ee672b969c606184a4ba11c4e62bcdfd7636":"Tir","30ad7f2ebc92e6bf80b49ecddbdb5d25ccc6f315":"Ons",ebce792946390773eae714a22b09785c95fcbd8a:"Tor",f809e6c4a0f86e3ac3a9e4a6b66fe51ed2e953f5:"Fre",ef6ff5a853538e04881ed4a2f9638b003f56b623:"Lør","191bf80e1f94627cc7f11a03096848946f3a9ab4":"Jan",e2fd572772fd40a73cf15e007b06498ab98bc182:"Feb","41cc81367b90de234e79ed3582eb95d75866d231":"Mar",ba3f98e7b236dd20a6dc24aa01894afd8313914f:"Apr",f84356124efc7e0508d212e3c148a4829c3f59bc:"Maj",f6a07cccd0d05efba5c0f66cb2fe604b7f891c8f:"Jun","4190e91734e0b296a7f3fe703b64e8f7cb0c563e":"Jul",b8a75c0c8be7a1b0aae421bbfb53898f802fbef6:"Aug","20937622078a9ef0aa47ad94792edce94bdca282":"Sep",aec301953a589bd39465c8c81a74202d675064c1:"Okt","1e19746d87e646f223d4da4a91166f00d4c7a6af":"Nov",e1005db80dbd4b6dddae5ccb75643a5fbf98d5a5:"Dec","58b1579b0b9ea3b4fbac1e24fd9fde838a784db9":"Vælg","5afb6c5838ab904e674b34be0e57ea8d824dfa53":"Ignorér",be36d4eb5af5b80c35032f132d2b31481773deaf:"Arv","2e29a1b4a3f1aca87197f407630f815a92972290":"Skjul indhold i kurven >","05670b8de1ef2a0fbccbf09bae15910f3a380b5d":"Vis indhold i kurven >","44f4c691c5e224a501143540c987d7e40303b379":"Skjul","38be25c1edba992495babf75068c342e906b8919":"Telefonnummer påkrævet",d366b9f4cfde0cb1be630dc3f2cee76344ffa34a:"Grænse nået ({1} valg maks)","1b8419a05e7d779b2d9318e6c3b8b58162cdaf06":"Centreret","233267ce14cc73e3c4aad22971faeaae09b18553":"Betalings processen blev afbrudt, tryk på knappen for at starte igen","9d08d1d3855063f2ff4a28a6638f78683bb4189b":"Chat ikke åben","3d816d0da2a9a7168b478d15f0275267ae586627":"Chatten er desværre ikke åben lige nu. Prøv igen senere.",dc201922b82690cbc9e01b9741ac8842879cf82b:"Bemærk du skal skrive dit NAVN i dette felt. Du kan ikke bruge mere end 50 tegn.",e5640d2c0a28687baa9de4e0a9542c26f20bf62c:"Bekræft opsigelse af abonnement",c4c8bb431399ff4ec83bc4484de76b9332ddee18:"Dette vil stoppe dit abonnement med øjeblikkelig virkning. Hvis din seneste levering er under behandling vil den dog stadig blive leveret.","5d270d4c9e95f4840dbb3814a8db7861c435b6c9":"Abonnement opsagt","6b87e98ed0484dfc0a22faa63a8180fe84f2d5e2":"Ingen",a715b28256e29835e7e8586d8421ec68a65ed278:"Slet denne sektion","28e1940af671ac980bf245dd3136c0036c19ec45":"Varen er lagt i kurven","51294341ecbe0a2691f4a47ededcfe00ee97ebc6":"Din vare er lagt i kurven","8f182ff0e198a2c86dae53360b4b5351abea5d51":"Henter side...","7e41ad8571f716755b20d326a04c2b03a6e465b5":"Kopiér til udklipsholder",f15fb6f2072ff00da2e11e82bbf277ea84ec25f9:"Linket blev kopieret til din udklipsholder","92637e86170ed978718d73fa7df366d11488507b":"Vælg en dato","32a3d52206b42207c4c6410e4bdc149c5164375a":"Tryk her for at gå til administrationen, hvor du kan redigere denne sektion",c9f5eb4794381560b85361769832e552a8ce0829:"Redigér denne sektion","907c53c2b15b6e2201f678105cbbf324217a1f0c":"Er du sikker på at du ønsker at slette denne sektion?","5f1c42dcd3afee80ad8c82f9745a2ebbf6c431d2":"Tryk her for at gå til administrationen, hvor du kan redigere denne vare","11456cdd20eed5f476d5a4c09c27867d901aaa24":"Redigér denne vare","49b1adb21a586e9ce2a84d3275c0c8f61e2b8721":"Slet denne vare",f8f2376e08096cd586574bf9487ad5e0092c4168:"Er du sikker på at du ønsker at slette denne vare?","7453f5b61ae7a507664eb4b56e73fc904e99ee67":"Abonnement kan ikke opsiges endnu",df895e3efdb26959e21fff3e409695923d051778:"Dette abonnement kan tidligst opsiges efter {1} leveringer/betalinger","516ae517be4daf7619b761be5b4b2c3b71f05f81":"Logget ind",aa0ab95287e15f8d40a806b49f5cc5ae5d2788a7:"Er du sikker på at du ønsker at logge ud?","334bc99c46a703ac40bae57a6b7d73d0b11161e0":"Filerne blev uploadet",ba739e3037cf459eae1d48892f78659c097aeb28:"Ignorér regel","86b5ca171ffa7b905a42c5b6ccc272bc561c81e2":"Vi har travlt i øjeblikket, så der kan desværre forekomme ventetid i chatten.",f6b62c543c6b29bb57b0b07e57624fe457568dac:"Den indtastede e-mail er ikke gyldig","896c27d179c9611f17d9f3228364032f0e83cc6c":"Indtast din rabatkode her",a99e34bb38d9d31411997c7c2f2f04943213aa58:"Du skal vælge noget i alle felter for at købe varen","3fa2b59ee7a566278edf73308ffc2bb5db90f247":"Lav ny linje ved at trykke på SHIFT+enter","9a3cff56a8bf07c04ea349ced93c25d28d556b7a":"Indtast din besked her","1b5cb0eebc6f03354adc189ff5ac8906d6d6b624":"Næste vare","1d4280cac1a27bfa896d0c31bbab565e04b4ea9e":"Cookies og formål","4d887ce0334eb9777f48e6e6e88e92e62918a00d":"Nødvendige","24dee2049b2f62fcc85dbb9faad0064e608282fa":"Funktionelle","91f8278f24858019402266e0fa5c71b54204e8a0":"Markedsføring","2d4c57ed401a37413571d438423632874f78d44f":"Vi indsamler oplysninger om dine interesser og hvilke varer du køber / kigger på for at kunne vise dig mere målrettede annoncer.","7a3e7c4dfd8845404d3f93e07a8b9b3f96acb158":"Funktionelle cookies bruges til at gemme foretrukne indstillinger såsom hvilket sprog og valuta du vil se på hjemmesiden.",d31a7da0c848ed3c15528575d0f675da76c19e57:"Vi indsamler oplysninger om hvor ofte du besøger hjemmesiden samt hvordan du benytter hjemmesiden.","9634f762c78e1d7eeb79ee94bffae21835318246":"Nødvendige cookies bruges til at gøre en hjemmeside brugbar.<br>For eksempel ved at tillade login og ordreafgivelse.",ac25c35be39a4ea7b66221e8d6bf675204cf292a:"Du skal vælge en fragtmetode","6ff2bcbf33b26bbd253b44af4ed6f0831856451c":"Fed","3fb2ccfe1828e5bca2eb3b477702f2a2637f231f":"Ikke fed","7f8fa727e5d0d892f1bf39083505a264a79825e8":'Din menu indeholder flere links end der er plads til at vise i en vandret linje. Derfor vises menuen nu som en fold-ud knap.\r\n<br><br>\r\nØnsker du at vise den normale menu igen, så skal du blot reducere antallet af links eller længden/størrelsen på links i menuen.\r\n<br><br>\r\n<a href="https://www.ideal.shop/support_database?id=17" target="_blank">Se en guide her</a>',d617df438740c1b93e7849acceb0d07900aae9d3:"Menuen er lavet om til en fold-ud menu",ed6b183ef50d7ae6bfc63dc345ade09f9a0dbf3e:"Der skal foretages et valg","4fc5af567625bd07b139f13637b5e6b5323ead4d":"Vis ikke igen","4c93df7008f5d45a87f6b7b38ce3ed148f822a1b":"Skift topmenu type","41b39de2b41344ab398694256962623f029c0329":"Redigér links/fold-ud mapper i menuen","09a2b5cb65966f9c7c10fac9f99d425db3f6b419":"Sluk for redigering","8a891787e2c9b3b8cee2eec229ced4235e43b1cd":"Fragtmanden kræver at du indtaster dit telefonnummer for at benytte denne fragtmetode.","71de2b6f8e2e2a14109e8315889dcf0f96953cdc":"Det er kun muligt at købe op til {1} af denne vare.","5a408412d604119248b6e498ae127b74a49e154c":"Tilgængelige fragtmetoder har ændret sig","40e16a6637bda4ba1bae501ff33ec7f8782eb4b3":"Tilgængelige fragtmetoder har ændret sig, gennnemgå venligst alle oplysninger igen, for at sikre at de er korrekte.",cf8df2c73e3cbd20f230c5d4234bd07d83447843:"Vælg betalingmetode","3ffbc07ecb705760c7d1541258a273c269041564":"Vælg fragtmetode","7a4d28f4fd2277995d75ddc029c0819eefe67034":"Luk uden at gemme","14436c08f130f58fc96c748224d64e07f87dd2ea":"Skift mit cookie valg",a4577556f9701f3423ab337995d49e40a74dd836:"Der blev ikke fundet nogle pakkeshops i nærheden af din søgning.<br><br>Det kan skyldes at adressen er indtastet forkert, eller adressen er for ny, så den pt. ikke findes i systemet.<br><br>Sikre dig at adressen er indtastet korrekt, og hvis det ikke virker så prøv en anden adresse i nærheden.",faf213a86e11f5a72ad58d922c39d808eb8c8a5a:"Der skal foretages mindst {1} valg",e1e2d78c875ccd361e620e9354de8331c1832cab:"Sektions redigering","87fa01eb4a1f32886e02927dc1934ac2e45c8086":"Redigér denne sektion i admin","290af266e30bf4148df0ad433e7258474de1e9d0":"Redigér denne vare i admin","2e4854dcf2057609d678f1f3e0dba456f054fcbc":"Vare redigering","160db8029bff90a04d4818a58ca0bd0528bbe7c3":"Vil du lukke uden at gemme?","66593bdd2c5e7d44d6b77581a356f7407d3f2309":"Der er ændringer som ikke er gemt. Er du sikker på at du vil lukke redigeringen?","3cdae44c021ea7f4eea7512f5ceba58e75104824":"Store og små billeder","00448327b52c420ee436324e64ae7f07a95fbe9d":"Kun det store billede",c7f6b3fbbca42439564dc7f52ce7db667a863bcb:"Overstyr pris",f6216cc13da03e04fa4c27096294b80c13535c40:"Minimér/maksimér Design-redigering","8b204eefbceb64f3375957e3a45aa36935d7ce1a":"Vis/skjul redigeringsknapper",a89cfcadea5231cea4381fca617500ae62d91fde:"Tryk her for at gå til administrationen, hvor du kan redigere denne varekategori","0427d22412693562ab679e9bbfc69481d2d53c64":"Redigér denne varekategori",d0d1c6e1ec8ea8767cff15300e4a10bb2a77971e:"Redigér denne varekategori i admin","0feb3e63eebccbe9048080fb352b788b9bb8fcc1":"Varekategori redigering",f1734e13d1179085fd75fc6841a8208a2a56955f:"Valuta skift","5491d4091d709e382cbe43097dca6c12670c3030":"Den valgte betalingssmetode benytter en anden valuta, som der skal skiftes til","7bae59bf4437687c6de90284c85014137e9a6449":"Det ser ud til at du har indtastet en ugyldig e-mail adresse ({1})","6600c50e144a80c0a623441512a7324fbe68ef12":"Shoppen har ikke adgang til denne feature","4a78c8bd07b3820894ef00094b99ef01ae09275c":"Dit navn (offentligt)","220a23977614de6327b6de15c18e98434eda8abf":"Din e-mail (privat)","24e6fa1330f559c1185f1ce66ef85d51e3a5cebd":"Bedømmelse","9f925626d6309772c3eb335a61eca460a251855d":"Titel på anmeldelse",fba88df7749a86d97468f981f7b30a9af1fb7ea1:"Anmeldelse",dca582c0552ce536522256bcb94750e335604954:"Skriv din anmeldelse her",d121fbb9c29145e23e5a5b8ed22530eee91df371:"Kundeanmeldelse","8ff53606968a6dabd29e1ceb0893880b51b13c6e":"Titel på din anmeldelse",ef74a83eb8bf48b95c0b329b4272ba05ce1ca812:"TILMELDING GEMT - TJEK DIN E-MAIL FOR AT BEKRÆFTE","66ed8ea5a1f98d621eac7d8214fb2313cad48ad0":"Tøm ønskelisten","82d2cd352d27b87b93838f67b8a1008b2926b904":"Varen er fjernet fra din ønskeliste","58a3daaa76c73e71699131df989dd769103e130b":"Varen er tilføjet til din ønskeliste","23aad63ec6adabccbb887f6e76298aa2a47c1f7d":"Deling af ønskeliste",faf35ebce1b4848d1de9d903ece76cceadaa6d53:"Modtag en e-mail når denne vare er på lager igen.","9512c35d7fdc0f6ac0642d11f4b136b864a9574d":"Ønsker du at tømme ønskelisten?",a58473bb579e007e6fbde31ae0117fdf86e05f76:"Ønskeliste tømt",e4e2ef3355baea53c8ae9b09f6f25e963a9c48df:"Vælg først variant","8a4c9291d26080be5ccbc13435ef18084d36a8e6":"Hej - skriv dit navn herunder for at starte en chat",d56cb502f63094ea83921c59ec4fb825788a9d43:"Detaljer","6f366219a04d4a159d4dba15423f5945c4adb24e":"Giv mig besked","7e66342a3dedee87f6ef6a61bc5981c13b58ee42":"Ingen overstyring","89fbfa7769767c832f51bd348bb221e8ff729f76":'Rabatkoden er tilføjet til din ordre. Tryk på "Vis indhold i kurven" for at se din nye pris.',"8b5731be5f28a2747783de84a133677f7252d7fe":"Skriv dit spørgsmål til os, så finder vi en medarbejder til dig imens.","31f22efa4838f586a6abf0d12bc9f3ef4f57cacd":"Ønsker du at slette denne vare fra ønskelisten?","4d97cac7c7ad262f7e5a027cd26c8c14688eeae1":"Det ser ud til at du har indtastet et ugyldigt CVR nummer ({1})",e9a672ce0746f5f8f4c7162b979ce55916dc94bd:"Denne mulighed er kun tilgængelig for dig som administrator",bdfab35c0c69a3a659918bec3d7b4db29f6cc20a:"Vælg en variant og tryk på hjertet igen for at tilføje til ønskelisten",c1740598ff148fc9512ba4b86a9938cf410eece5:"Denne vare har forskellige varianter. Gå til varesiden og vælg en variant, og tryk derefter på hjertet for at gemme på ønskelisten.","2cff2f35011c42329b3a050be88b38c3f8b3e4ac":"Skriv din kommentar her","3bbb6f78e40ba489b31819a89d85a1e87c0ef7f6":"Kommentar tilføjet",e555edfa0d164accee81f0041fcdaae3b740537d:"En eller flere varer kunne ikke lægges i kurven - Se fejlbeskrivelsen på den enkelte vare.",c2edc3eaa35e9f9463e2d8ee4f17e2ff12fc77fd:"E-mailadressen <b>{1}</b> er allerede oprettet i webshoppen. Log ind for at foretage et køb med denne e-mailadresse.","0a704708e52b48800d688ebb621ee70eac932344":"Log ind for at gennemføre køb",b0916333cf8c00dba562c03472aa79907adf453d:"Gennemfører køb","418ee8fc00c5b1c3b9dcdd9283c38be8d5c3f19c":"Fra bunden","433d0f1eaf2bcc2f99ec50d0eba5197cf019c5c1":"Fra venstre",f6c1439bb3421a3d1d3bde313fa9b50af3f86cdb:"Slå fra","801188f4c29a98ff98ce75fdfdd4ab1a43223db6":"Fra højre (ALPHA)","1e2ddc7650d4a07ed1f5763227185a523c85a8a3":"Hvor må pakken stilles?","8186d1261f9a62cdb8784c5ca972e331b75cb9c5":'Du skal udfylde feltet "Hvor må pakken stilles?" korrekt',"9efca4bd185db2819f4c77aafe4e0a03e008a938":"Skift land",f1892faad6a8b690b2aebe414c611343d00914c4:"Der leveres til lande i denne liste. Vælg dit land for at vise korrekt momssats og fragt.","0a065b3f95adca0f4822e5570e64c52817a0e36f":"til",b3922d2ea438e4a5d72452abdbb77af923a181af:"Tillykke!","883d991c39196972dc3a41157505f3526b9866a6":"Vi har sendt dig en email med din rabatkode","8da809468f95615f74ca0007efe880e104a5aa17":"April","1e298a97737bd1d62ac6e46378893da17dde6fab":"Onsdag","14ef1650ae71cca4b70d1fd540de61113301985b":"Tirsdag","81726c0492965cbedd3fee01f2f5119cd6e8f7b7":"Mandag",a8c08ba9f7cd854f14ae99a79878dd8d8f4711e0:"Fredag","9ec3a3bed364c4a5d1486eec93f0b7e5680aa20e":"Søndag",a7be93e7b8e39e3b9f1ab5698716f59ee7f92c15:"Lørdag","4e4a6931866156e61de98acb5a0dc44bd2277482":"Torsdag","068d6cb48ffaf636469c23a994ce398dd5d8abcd":"Marts","3a41d3ace767bc61799170a45e95a35d577d91e3":"Februar","81d5f2bd77709df882656e5d8411fa0495e42e9a":"Januar",f3ed890cfec74ec06e169ffdc3461d6113d31c17:"Maj","76ad4f775eb1c92d2902f2b238338f6e36d999e9":"Juni","5906d40211c23a073487f54f16c6bd0c61bf1de2":"Juli",b4afb2139e6984d078fc75f12cec9cf1946fff51:"August","14de5ce0b90bc45fe323413e11052b28e5e11db9":"September",a06c13f0b5fa8a5984349c251ed2cb3822ecd753:"Oktober","4ed19bc25c1b1b3efb72703a48b92119a3f7efc7":"November",e3701b71fee7d1826c1553ca79e2fa12ae060535:"December","479441edbc658f40721e7eccb4266699544eb088":"Ingen tider fundet","190075896fdf13eaa00c02496ca726a5f178772b":"Du mangler at vælge en dato og et tidspunkt",dfa91e44c2a4426eac12cc46b7b7c33073b38b3a:"Der er pt. ikke forbindelse til vores chat, vi beklager og håber du vil prøve igen senere!",fc849182977e6b414a4ae33e4593c7c597375192:"Oprindelig/normal pris","99e08bd48b6210d0d8dd7b4820c540cd7b8a10bc":"Ny pris",cfc7baa692b6d73c0341ecc59096e41e3c0d5326:"Vælg først nogle services",a41e36ada00f053d842d31effc14b473ee844da3:"Ugenummer","5fa907548f234d1425e2aecd97b58515d4af743d":"Der skal indtastes en gyldig e-mail for at spille",fbce75642748c5fc2a4e8928e181ab2e12521cfe:"Tilmelding til nyhedsbrevet er påkrævet for at spille","63150ddeeeae9bddef299ccebb1d67fd2b23268d":"Fra {1}",eacc6b01428533b2624708fc81508b6a1cc54cfb:"Der skal som minimum købes {1} af denne vare.",e6b8a98f68cd2002c5f625b88a3bd678610126b3:"Der opstod en ukendt fejl, prøv igen",ecc5762dd0112e67456c480c71a693c7429917c0:"Du skal indtaste et navn for at kunne tilmelde dig nyhedsbrevet","3c3e47593a882b767eb413a3b57b428c954386a9":"Logger ind...","6abada14821ada46657d3b72c9a29a8e661cee97":"Søger...","3eb49f055fa444c5148570bbc5d399596a11f3cf":"Redigér tekst",bce81dda5ec62509d5312f4dbad1dfcd64fd7f72:"Kun en tekst kan redigeres af gangen","0ca628c3dd9a433a07f901287d0c33818d56eb74":"Redigér kort beskrivelse","64eea83b69710904d34cfbb504ac3c9c425cc02c":"Luk/annullér","66c0c5bd58eacaaa231d80473a7e9f9bf33e63cb":'Der opstod en fejl i forbindelse med åbningen af PayPal vinduet<br><br><b>{1}</b><br><br>Tryk på "Tøm kurv", lav en ny ordre og vælg en anden betalingsmetode',fc999948c7c5fe1127e68634c3c4b29646a93ca6:"TILMELDING GEMT","793d045b11f01986fa5a1b62d05b7a33d05d42ec":"Denne mulighed er ikke tilgængelig for dit aktuelle abonnement. Opgradér til nyeste Standard eller Pro for at få adgang til overstyring af priser.","44bd92993c46faabe9e600eb408f4cb9c69daac3":"Der er pt. ikke forbindelse til vores chat - Prøv at lukke igen om et par sekunder",a0a1c46e7ed7710a09f3ffe5549f5d7dbb485ddb:"E-mail (frivillig)","5d0aa6cd4c1b944d8fe1460ec591fe05cd6ce5ee":"I tilfælde af, at chatten bliver afbrudt","7c0c1ba7828655ad32b87cbe1b83cd2fd1625e88":"Der er desværre lidt ventetid. Indsæt din e-mailadresse herunder, hvis du gerne vil have svar på e-mail.","51500f43d2d5fdc9eed272e5a5da556f1ccbe72d":"Der er desværre lidt ventetid. Du er velkommen til at vente, og ellers kontakter vi dig på <b>{1-email}</b> snarest muligt.",e4915973d95c17f959a16b7e0ccc6802f5cfadca:"Tak. Vi kontakter dia via <b>{1-email}</b> hvis ventetiden bliver for lang, eller hvis du lukker chatten."},window._g_translations_tester_array={"2cff2f35011c42329b3a050be88b38c3f8b3e4ac":1};var globals=[];const init_dot_js_loaded_timestamp=(new Date).getTime();function preview_images_fixer(){$('img[src*="/preview/"]').each(function(){if(!this._preview_fixing){this._preview_fixing=1;let t=this,i=t.src.replace("preview/","");var e=new Image;e.addEventListener("load",function(){var e=new Image;e.addEventListener("load",function(){t.src=i}),e.src=i}),e.src=t.src}}),$('[style*="/preview/"]').each(function(){if(-1<this.style.backgroundImage.indexOf("/preview/")&&!this._preview_fixing&&(this._preview_fixing=1,'url("'===this.style.backgroundImage.substring(0,5))&&'")'===this.style.backgroundImage.substring(this.style.backgroundImage.length-2)){let t=this;var e=t.style.backgroundImage.substring(5,t.style.backgroundImage.length-2);let i=e.replace("preview/","");var n=new Image;n.addEventListener("load",function(){var e=new Image;e.addEventListener("load",function(){t.style.backgroundImage="url("+i+")"}),e.src=i}),n.src=e}})}function is_touch_device(){return"ontouchstart"in window||0<navigator.maxTouchPoints&&navigator.maxTouchPoints<256}function is_mobile(){return!!navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i)}function verify_email(e){return/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(e)}function set_cookie(t,i,n,o,a="lax"){if("boolean"==typeof SITE_IS_EMBEDDED&&(a="none","string"==typeof SITE_IS_EMBEDDED_SESSION_COOKIE_ID))embed_set_cookie(t,i);else{let e=t+"="+i;var s;void 0!==n&&((s=new Date).setTime(s.getTime()+24*n*60*60*1e3),e+=";expires="+s.toUTCString()),"https:"===window.location.protocol&&(e+=";secure"),e+=";path=/",o&&(e+=";domain="+o),e+=";samesite="+a,document.cookie=e}}function delete_cookie(e,t,i="lax"){if("boolean"==typeof SITE_IS_EMBEDDED&&"string"==typeof SITE_IS_EMBEDDED_SESSION_COOKIE_ID)return embed_delete_cookie(e);set_cookie(e,"",-1,t,i)}function get_cookie(t){if("boolean"==typeof SITE_IS_EMBEDDED&&"string"==typeof SITE_IS_EMBEDDED_SESSION_COOKIE_ID)return embed_get_cookie(t);t+="=";var i=decodeURIComponent(document.cookie).split(";");for(let n=0;n<i.length;n++){let e=i[n];for(;" "===e.charAt(0);)e=e.substring(1);if(0===e.indexOf(t))return e.substring(t.length,e.length)}return""}function scroll_to_element(e,t=!1){var i=$(e);i.length&&(t?window.scrollTo({top:i.offset().top,left:0,behavior:"instant"}):i[0].scrollIntoView({behavior:"smooth"}))}function scroll_to_element_smooth(e,n=250,o=10,a=3){let s=$(e);if(s.length){scroll_to_element(s=s.get(0),!1);let e=0,t=0,i=setInterval(function(){++e>=o||!document.body.contains(s)?clearInterval(i):is_element_fully_in_viewport(s,!1)?++t>=a&&clearInterval(i):(scroll_to_element(s,!1),t=0)},n)}}function is_element_fully_in_viewport(e,t){var i=$(window).scrollTop(),n=i+$(window).height(),o=$(e).offset().top,a=o+$(e).height();if(a<=n&&i<=o)return!0;if(t){if(o<=i&&i<=a)return!0;if(o<=n&&n<=a)return!0}return!1}function radio_checked_by_name(e,t){t=void 0!==t&&t;for(var i=0;i<document.getElementsByName(e).length;i++)if(document.getElementsByName(e)[i].checked)return!t||document.getElementsByName(e)[i];return!1}function any_parent_has_class(e,t){return!!$(e).closest("."+t).length}function get_parent_with_class(e,t){var i=$(e).closest("."+t);return!!i.length&&i.get(0)}function element_toggle_height(e,t,i,n){var o=e,a="closed";if(o="string"==typeof e?document.getElementById(e):o){var s,r=getComputedStyle(o),l=parseInt(r.height),d=parseInt(r.paddingTop),c=parseInt(r.paddingBottom),u=parseInt(r.borderTopWidth),r=parseInt(r.borderBottomWidth);if(!o.classList.contains("eth-closing")&&l-d-c-u-r!=0||(a="open"),void 0!==n&&-1<["closed","open"].indexOf(n)){if(a!==n)return"function"==typeof i&&i(o),n;a=n}"open"===a?(o.classList.add("eth-opening"),o.classList.contains("eth-closing")&&o.eth_close_transition_end_function(),o.style.height="auto",t&&(o.style.width="auto"),o.classList.add("notransition"),o.offsetHeight,l=getComputedStyle(o).paddingTop,d=getComputedStyle(o).paddingBottom,s=o.getBoundingClientRect(),o.style.height="0",o.style.paddingTop="0",o.style.paddingBottom="0",t&&(o.style.width="0"),o.offsetHeight,o.classList.remove("notransition"),o.style.height=s.height+"px",o.style.paddingTop=l,o.style.paddingBottom=d,t&&(o.style.width=s.width+"px"),o.eth_open_transition_end_function=function(){this.classList.remove("eth-opening"),this.style.height="auto",this.style.paddingTop="",this.style.paddingBottom="","function"==typeof i&&i(this),this.eth_open_transition_end_function=""},css_transition_end_setup(o,function(e){"function"==typeof e.eth_open_transition_end_function&&e.eth_open_transition_end_function()})):(o.classList.add("eth-closing"),o.classList.contains("eth-opening")&&o.eth_open_transition_end_function(),o.style.height="auto",t&&(o.style.width="auto"),s=o.getBoundingClientRect(),o.style.height=s.height+"px",t&&(o.style.width=s.width+"px"),o.offsetHeight,o.style.height="0",t&&(o.style.width="0"),o.eth_close_transition_end_function=function(){this.classList.remove("eth-closing"),this.style.height="0","function"==typeof i&&i(this),this.eth_close_transition_end_function=""},css_transition_end_setup(o,function(e){"function"==typeof e.eth_close_transition_end_function&&e.eth_close_transition_end_function()}))}return $(".tooltip").remove(),a}function image_overlay_big(e,t){document.getElementById("image_overlay_big")&&document.getElementById("image_overlay_big").parentNode.removeChild(document.getElementById("image_overlay_big"));function i(){document.removeEventListener("click",i),document.getElementById("image_overlay_big")&&document.getElementById("image_overlay_big").parentNode.removeChild(document.getElementById("image_overlay_big")),modal_active&&(modal_close_global_block=!1)}var n=document.createElement("img");n.src=t,n.id="image_overlay_big",n.style.zIndex="999999999999999999999",n.style.position="fixed",n.style.maxWidth="95vw",n.style.maxHeight="95vh",n.style.minWidth="100px",n.style.minHeight="100px",n.style.top="50%",n.style.left="50%",n.style.transform="translateY(-50%) translateX(-50%)",n.style.border="solid 1px black",n.style.boxShadow="0 0 15px";document.body.appendChild(n),n.onload=function(){document.addEventListener("click",i),modal_active&&(modal_close_global_block=!0)},e.preventDefault(),e.stopPropagation()}function clickToEnlarge(e){if(void 0!==e){var i,n=$(e).find("img").first();if(n){let e=n.attr("src");e.indexOf(CDN_TO_USE_HOSTNAME+"/images/by_hash/")&&(i=(n=e.split("/"))[5],e="https://"+CDN_TO_USE_HOSTNAME+"/images/by_hash/"+i+"/1920-0/"+n[7]);let t=`
		<div class="click-to-enlarge-overlay">
			<div class="close-icon"><i class="iconify" data-icon="fa:close" data-width="24px"></i></div>
			<div class="loading-icon"><i class="iconify element-spin" data-icon="fa:spinner" data-width="3em"></i></div>
			<img src="${e}">
		</div>
		`;setTimeout(function(){let e=function(e){e&&"keyup"===e.type&&27!==e.keyCode||history.back()};window_onpopstate_do_nothing=!0,window_onpopstate_do_nothing_callback=function(){$(".click-to-enlarge-overlay").remove(),$("body").css("overflow",""),window.removeEventListener("click",e),window.removeEventListener("keyup",e)},window.history.pushState(null,null,null),window.addEventListener("click",e),window.addEventListener("keyup",e),$("body").css("overflow","hidden").append(t),$(".click-to-enlarge-overlay img").on("load",function(){$(".click-to-enlarge-overlay .loading-icon").remove()})})}}}function whichTransitionEvent(){var e,t=document.createElement("fakeelement"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in i)if(void 0!==t.style[e])return i[e]}function password_strength_setup(e){(e="string"==typeof e?document.getElementById(e):e)&&javascript_load("https://"+CDN_TO_USE_HOSTNAME+"/public_js/"+window._g_site_mode+"/zxcvbn.js",function(){password_strength_change.apply(e),e.addEventListener("keyup",password_strength_change),e.addEventListener("change",password_strength_change),e.addEventListener("focus",password_strength_change),e.addEventListener("blur",password_strength_change),e.addEventListener("paste",password_strength_change)},!1,!0)}function password_strength_change(e){if("undefined"==typeof zxcvbn)throw new Error("zxcvbn library not loaded - yet");var t,i;""===this.value?"object"==typeof this.password_strength_element&&(this.password_strength_element.parentNode.removeChild(this.password_strength_element),delete this.password_strength_element):("object"!=typeof this.password_strength_element&&(t=document.createElement("div"),this.parentNode.insertBefore(t,this.nextSibling),this.password_strength_element=t),t=zxcvbn(this.value),i=[_t("For svagt"),_t("Svagt"),_t("Middel"),_t("Stærkt"),_t("Meget stærkt")],i=_t("Kodeord styrke:")+" "+i[t.score],i+='<input type="hidden" name="password_strength" value="'+t.score+'">',this.password_strength_element.innerHTML=i)}function after_load_setup(){Iconify.scan(),tooltips_enable(),spectrum_enable(),add_link_listeners(),$(".sp-replacer").length&&$(".sp-replacer").length!==$("#modal_current:hidden .sp-replacer").length||$("body > .sp-container").remove(),$('form[data-form-type="ajax"]').each(function(){$(this).data("data-form-type-handled")||($(this).on("submit",function(){return ajax_form_submit(this,void 0,void 0,void 0,void 0,void 0,!0),!1}),$(this).data("data-form-type-handled",1))}),$('[data-type="modal"]:not(a)').each(function(){$(this).data("data-type-handled")||($(this).on("click",function(){var e=this.hasAttribute("data-modal-title")?$(this).attr("data-modal-title"):void 0,t=this.hasAttribute("data-modal-id")?$(this).attr("data-modal-id"):void 0;return modal(e,$(this).attr("data-modal-module"),$(this).attr("data-modal-action"),t),!1}),$(this).data("data-type-handled",1))}),$("div[data-href]").off("click").on("click",function(e){return content_load(this.getAttribute("data-href")),!1});var e=document.createEvent("Event");e.initEvent("_after_load",!0,!0),window.dispatchEvent(e)}document.addEventListener("DOMContentLoaded",function(){window._private_tab_user_listener=function(e){9===e.keyCode&&(document.body.classList.add("tab-user"),window.removeEventListener("keydown",window._private_tab_user_listener),delete window._private_tab_user_listener)},window.addEventListener("keydown",window._private_tab_user_listener),$("select.language-switch-select").on("change",function(){var e=!0,t=this.options[this.selectedIndex];"string"==typeof t.getAttribute("data-public")&&"0"===t.getAttribute("data-public")&&(e=!1),language_switch(this.value,e)}),after_load_setup(),setTimeout(function(){$("body").removeClass("preload"),$("#preload-spinner").remove()},150)}),window.addEventListener("load",function(){document.body.setAttribute("data-on-load-called","1")}),window.addEventListener("_after_load",preview_images_fixer),window.addEventListener("_after_load",function(){$('a[href="javascript:clickToEnlarge();"]').each(function(){this._clickToEnlargeSetup||($(this).on("click",function(){clickToEnlarge(this)}),this._clickToEnlargeSetup=1)})});var global_onresize_x_event=document.createEvent("Event"),global_onresize_x_event_cur_x=(global_onresize_x_event.initEvent("_resize_x",!0,!0),window.innerWidth);function tooltips_enable(){$('body > .tooltip[role="tooltip"]').remove(),is_touch_device()?$('[data-bs-toggle="tooltip"]:not([data-touch-no-tooltip])').each(function(){$(this).tooltip()}):$('[data-bs-toggle="tooltip"]').length&&$('[data-bs-toggle="tooltip"]').tooltip()}function tooltips_hide_open(){$('body > .tooltip[role="tooltip"]').remove()}window.addEventListener("resize",function(){window.innerWidth!==global_onresize_x_event_cur_x&&(global_onresize_x_event_cur_x=window.innerWidth,window.dispatchEvent(global_onresize_x_event))});var _g_css_transition_end_setup_object={};function css_transition_end_setup(e,t){var i,n,o=whichTransitionEvent();o&&(i=!1,0===Object.keys(_g_css_transition_end_setup_object).length&&(i=!0),n=uniqid(),void 0===e.css_transition_end_setup_id?e.css_transition_end_setup_id=n:n=e.css_transition_end_setup_id,_g_css_transition_end_setup_object[n]=t,i)&&window.addEventListener(o,css_transition_end,!1)}function css_transition_end(e){var t,i=e.target;void 0!==i.css_transition_end_setup_id&&(t=i.css_transition_end_setup_id,void 0!==_g_css_transition_end_setup_object[t])&&!1!==_g_css_transition_end_setup_object[t](i)&&delete _g_css_transition_end_setup_object[t],0===Object.keys(_g_css_transition_end_setup_object).length&&(i=whichTransitionEvent(),window.removeEventListener(i,css_transition_end))}var self_destructing_message_timer=0;function self_destructing_message(e,t,i){var t=t||1500,n=(self_destructing_message_remove(),i&&(e='<i class="icon iconify" data-icon="'+i+'" data-width="1.5em"></i><div>'+e+"</div>"),document.createElement("div"));n.className="self-destructing-message",n.innerHTML=e,document.body.appendChild(n),self_destructing_message_timer=setTimeout(function(){$("body > .self-destructing-message").addClass("destruct"),self_destructing_message_timer=setTimeout(function(){$("body > .self-destructing-message").remove()},2e3)},t),setTimeout(function(){window.addEventListener("click",self_destructing_message_remove)},750),Iconify.scan(n)}function self_destructing_message_remove(){clearTimeout(self_destructing_message_timer),window.removeEventListener("click",self_destructing_message_remove),$("body > .self-destructing-message").remove()}function formatted_date(e,t,i){if(i=i||"",0===(e=parseInt(e))){if(""!==i)return i;if(null===i)return""}return"d-m-Y H:i:s"===(t=t||"")?date("d-m-Y H:i:s",e):"date"===t?date("d-m-Y",e):"time"===t?date("H:i:s",e):"datetime_seconds"===t?date("d-m-Y H:i:s",e):"timedate"===t?date("H:i d-m-Y",e):"monthtext year"===t?"$month $year":date("d-m-y H:i"===t?"d-m-y H:i":"d-m-Y H:i",e)}function formatted_number(e,t,i,n){if(i=i||!1,n=n||"",null===e)return"";var o=!1;if("keep-all"===t)-1!==e.toString().indexOf(".")&&(e=(r=e.toString().split("."))[0],o=r[1]),t=0;else if(-1!==t.toString().indexOf("keep-all-and-pad-")){var a=parseInt(t.replace("keep-all-and-pad-",""));if(-1!==e.toString().indexOf(".")){e=(r=e.toString().split("."))[0];for(var s=(o=r[1].toString()).length-1;a<=s;s--){if(0!==parseInt(o[s]))break;o=o.slice(0,-1)}}else o="";o.length<a&&(o=o.padEnd(a,"0")),t=0}else if(-1!==t.toString().indexOf("keep-all-")){var r,l=parseInt(t.replace("keep-all-",""));if(-1!==e.toString().indexOf(".")){e=(r=e.toString().split("."))[0];for(s=(o=r[1].toString()).length-1;l<=s;s--){if(0!==parseInt(o[s]))break;o=o.slice(0,-1)}}t=0}return r=number_format(e,t,",","."),!1!==o&&(r+=","+o),i&&n&&(r+=" "+n.toUpperCase()),r}function formatted_price(e){let t=number_format(e,HOW_TO_WRITE_PRICES.decimals,HOW_TO_WRITE_PRICES.decimal_separator,HOW_TO_WRITE_PRICES.thousands_separator);return t="before"===HOW_TO_WRITE_PRICES.identifier_position?HOW_TO_WRITE_PRICES.identifier+("space"===HOW_TO_WRITE_PRICES.space_or_nospace?" ":"")+t:t+("space"===HOW_TO_WRITE_PRICES.space_or_nospace?" ":"")+HOW_TO_WRITE_PRICES.identifier}function number_convert_to_usable(e){return is_numeric(e=(e=e.replace(".","")).replace(",","."))?"."===e[0]?"0"+e:e:""}function public_admin_superadmin(){return"public"}function catch_enter(e,t,i){13===t.keyCode&&(t.stopPropagation(),i())}function videos_adjust_to_parent(e){$(e).each(function(){var e,t,i,n,o,a=$(this),s=a.width(),r=a.height(),a=(a.data("pvs_width_org")?(s=a.data("pvs_width_org"),r=a.data("pvs_height_org")):(a.data("pvs_width_org",s),a.data("pvs_height_org",r)),a.parent());!$(this).closest(".item-page").length||$(this).closest(".tab-body").length||$(this).closest("#items-main-image-container").length||(a=$(".item-page")),(s=$(this).attr("data-video-adjust-allow-stretching")?a.width():s)>a.width()||r>window.innerHeight?((t=r)<(e=s)?(i=e/t,n=(o=a.width())/i):o=(n=t)*(i=t/e),s<o&&(o=s,n=t<e?o/i:o*i),(o=n>window.innerHeight?(n=window.innerHeight)*i:o)>a.width()&&(o=a.width(),n=t<e?o/i:o*i),$(this).width(parseInt(o)),$(this).height(parseInt(n))):($(this).width(s),$(this).height(r))})}function spectrum_enable(){var e=$(".spectrum-color");e.length&&javascript_load("/js/libs/spectrum.js?v=2",function(){css_load("/css/libs/spectrum.css?v=4",function(){e.each(function(){var e={preferredFormat:"rgb",color:this.value,showInput:!0,showAlpha:!0,showInitial:!0,allowEmpty:!0,chooseText:_t("Vælg",!1),cancelText:_t("Annuller",!1)};this.getAttribute("data-spectrum-before-show")&&"function"==typeof window[this.getAttribute("data-spectrum-before-show")]&&(e.beforeShow=window[this.getAttribute("data-spectrum-before-show")]),this.getAttribute("data-spectrum-on-hide")&&"function"==typeof window[this.getAttribute("data-spectrum-on-hide")]&&(e.hide=window[this.getAttribute("data-spectrum-on-hide")]),this.getAttribute("data-spectrum-on-move")&&"function"==typeof window[this.getAttribute("data-spectrum-on-move")]&&(e.move=window[this.getAttribute("data-spectrum-on-move")]),this.getAttribute("data-spectrum-appendTo")&&(e.appendTo=this.getAttribute("data-spectrum-appendTo")),$(this).spectrum(e)})})})}function copyToClipboard(e){navigator.clipboard.writeText(e)}function language_get_current(){return window.language_for_t}function language_switch(e,t){t?window.location.href="/customer/language_switch?language="+e:alert_nice(_t("Sprog ikke offentligt"),_t("Bemærk at dette sprog ikke er offentligt, og derfor kun synligt for dig som shop admin"),function(){window.location.href="/customer/language_switch?language="+e})}function currency_switch(e){browserloading_start(),ajax_post("/customer/currency_switch","&currency="+e,function(e){browserloading_stop(),1===e.result&&window.location.reload()})}function vat_switch(e){browserloading_start(),ajax_post("/customer/vat_switch","&vat_display="+e.value,function(){browserloading_stop(),window.location.reload()})}function login_setup(){$('input[name="password1"]').length&&password_strength_setup($('input[name="password1"]').get(0))}function top_menu_collapsed_alert(e){void 0===window._g_is_shop_admin||!window._g_is_shop_admin||window._g_top_menu_collapsed_alert_shown||"1"===getlocalstorage("top_menu_collapsed_js_alert_never_show")||(clearTimeout(window._g_top_menu_collapsed_alert_timer),e&&(window._g_top_menu_collapsed_alert_timer=setTimeout(function(){confirm_nice(_t("top_menu_collapsed_js_alert_title"),_t("top_menu_collapsed_js_alert_html",!1),function(){setlocalstorage("top_menu_collapsed_js_alert_never_show","1")},void 0,void 0,"btn-danger",_t("Vis ikke igen"),_t("OK"),"btn-primary",function(){$("#modal_current .modal-footer .btn-modal-close").focus()}),$("#modal_current .modal-footer").append($("#modal_current .modal-footer .footer_custom_container")),window._g_top_menu_collapsed_alert_shown=!0},5e3)))}function shop_subscription_type_feature_allowed_check(e){return void 0!==window[e]&&window[e]}function card_with_toggle_setup(){$(".card.card-with-toggle > .card-with-toggle-button-container").off("click").on("click",function(e){if(void 0===e.originalEvent||"boolean"!=typeof e.originalEvent.card_with_toggle_block||!0!==e.originalEvent.card_with_toggle_block){var t=$(this).closest(".card.card-with-toggle"),i=t.find(".card-with-toggle-body-container")[0],n=t.hasClass("open")?"closed":"open";if("open"!==n||"true"!==t.attr("data-open-blocked")){if("open"===n)if(1===t.data("skip-preopen-callback"))t.data("skip-preopen-callback",0);else if(""!==t.attr("data-preopen-callback")&&"function"==typeof window[t.attr("data-preopen-callback")])return t.data("skip-preopen-callback",1),void window[t.attr("data-preopen-callback")](t,e);var o=!0;"1"===t.attr("data-skip-animation-on-next")&&(o=!1,t.attr("data-skip-animation-on-next","")),"closed"===n?(t.removeClass("open"),o?(i.style.height="auto",element_toggle_height(i,void 0,void 0,"closed")):i.style.height="0"):(t.addClass(n="open"),o?(i.style.height="0",element_toggle_height(i,void 0,void 0,"open")):i.style.height="auto"),""!==t.attr("data-toggle-callback")&&"function"==typeof window[t.attr("data-toggle-callback")]&&window[t.attr("data-toggle-callback")](t,e,n)}}})}function dynamically_inject_code(t,e="body"){for(var i=/<script.* src="(.+)".*><\/script>/g;null!==(n=i.exec(t));){n.index===i.lastIndex&&i.lastIndex++;var n=n[0],o=document.createElement("div"),a=(o.innerHTML=n,o.children[0].getAttributeNames()),s=document.createElement("script");for(let e=0;e<a.length;e++){var r=a[e],l=o.children[0].getAttribute(r);s.setAttribute(r,l)}document.head.appendChild(s),t=t.replace(n,"")}$(e).append(t)}function youtube_id_extract_from_url(e){var t=e.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/|youtube-nocookie\.com\/)(?:embed\/|v\/|watch\?v=|watch\?.+&v=)?((\w|-){11})(?:\S+)?$/);return!(!t||11!==t[1].length)&&t[1]}function javascript_load(e,t,i=!1,n=!1){n&&-1<["zstd","br","gz"].indexOf(BROWSER_BEST_COMPRESSION_SUPPORTED)&&(e=e.replace(".js",".min."+BROWSER_BEST_COMPRESSION_SUPPORTED+".js"));var o,a,s=!1;if(!i)for(var r=document.getElementsByTagName("script"),l=0;l<r.length;l++)if(-1<r[l].src.indexOf(e)){s=!0;break}s?"function"==typeof t&&(void 0!==window._g_javascript_load_scripts_loading&&void 0!==window._g_javascript_load_scripts_loading[e]?window._g_javascript_load_scripts_loading[e].addEventListener("load",t):t()):(void 0===window._g_javascript_load_scripts_loading&&(window._g_javascript_load_scripts_loading={}),(o=document.createElement("script")).addEventListener("load",function(){delete window._g_javascript_load_scripts_loading[e]}),"function"==typeof t&&o.addEventListener("load",t),o.src=e,window._g_javascript_load_scripts_loading[e]=o,(a=document.getElementById("custom-js-script"))?a.parentNode.insertBefore(o,a):document.head.appendChild(o))}function css_load(e,t,i=!1,n=!1,o=!0){n&&-1<["zstd","br","gz"].indexOf(BROWSER_BEST_COMPRESSION_SUPPORTED)&&(e=e.replace(".css",".min."+BROWSER_BEST_COMPRESSION_SUPPORTED+".css"));var a,s,r=!1;if(!i)for(var l=document.getElementsByTagName("link"),d=0;d<l.length;d++){var c=l[d];if(-1<c.href.indexOf(e)&&"preload"!==c.getAttribute("rel")){r=!0;break}}r?"function"==typeof t&&t():(a=document.createElement("link"),"function"==typeof t&&(a.onload=t),a.rel="stylesheet",a.type="text/css",a.href=e,o||(a.referrerPolicy="no-referrer"),(s=document.getElementById("custom-css-stylesheet"))?s.parentNode.insertBefore(a,s):document.head.appendChild(a))}function ondemand_loading_multiple(e,t,i,n){for(var o=0,a=0,s=function(){o===e.length&&a===t.length&&"function"==typeof i&&i()},r=0;r<e.length;r++){var l=e[r];css_load(l=n&&-1<["zstd","br","gz"].indexOf(BROWSER_BEST_COMPRESSION_SUPPORTED)?l.replace(".css",".min."+BROWSER_BEST_COMPRESSION_SUPPORTED+".css"):l,function(){o++,s()})}for(r=0;r<t.length;r++){var d=t[r];javascript_load(d=n&&-1<["zstd","br","gz"].indexOf(BROWSER_BEST_COMPRESSION_SUPPORTED)?d.replace(".js",".min."+BROWSER_BEST_COMPRESSION_SUPPORTED+".js"):d,function(){a++,s()})}}function ondemand_loading_bootstrap_select(e){ondemand_loading_multiple(["https://"+CDN_TO_USE_HOSTNAME+"/public_css/"+window._g_site_mode+"/bootstrap-select-1.14.0-beta3.css?m="+CDN_RESOURCES_MOD_CHECK_HASH],["https://"+CDN_TO_USE_HOSTNAME+"/public_js/"+window._g_site_mode+"/bootstrap-select-ideal.shop.js?m="+CDN_RESOURCES_MOD_CHECK_HASH],function(){$.fn.selectpicker.defaults={selectAllText:_t("Vælg alle"),deselectAllText:_t("Vælg ingen"),noneSelectedText:_t("Intet valgt"),noneResultsText:_t("Ingen resultater"),countSelectedText:_t("{1} af {2} valgt","{0}","{1}"),maxOptionsText:_t("Grænse nået ({1} valg maks)","{n}")},"function"==typeof e&&e()},!0)}function ondemand_loading_chat_support(){window.removeEventListener("mousemove",ondemand_loading_chat_support),window.removeEventListener("touchstart",ondemand_loading_chat_support),ondemand_loading_multiple(["https://"+CDN_TO_USE_HOSTNAME+"/public_css/"+window._g_site_mode+"/chat_support.css?m="+CDN_RESOURCES_MOD_CHECK_HASH],["https://"+CDN_TO_USE_HOSTNAME+"/public_js/"+window._g_site_mode+"/chat_support.js?m="+CDN_RESOURCES_MOD_CHECK_HASH],function(){chat_support_setup()},!0)}function getScrollbarWidth(){var e=document.createElement("div"),t=(e.style.visibility="hidden",e.style.width="100px",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e),e.offsetWidth),i=(e.style.overflow="scroll",document.createElement("div")),i=(i.style.width="100%",e.appendChild(i),i.offsetWidth);return e.parentNode.removeChild(e),t-i}window.addEventListener("_ajax_ready",function(e){void 0!==e.detail.data.vat_force_changed_to&&$("select.vat-switch-select").val(e.detail.data.vat_force_changed_to)}),window.addEventListener("_after_load",card_with_toggle_setup);var getBackgroundImageSize=function(e){var t,i=$(e).css("background-image").match(/^url\(["']?(.+?)["']?\)$/),n=new $.Deferred;return i?((t=new Image).onload=n.resolve,t.onerror=n.reject,t.src=i[1]):n.reject(),n.then(function(){return{width:this.width,height:this.height}})};function urlify(e,a,s){a=a||!1,s=!!s&&parseInt(s);return e.replace(/(https?:\/\/[^\s<\\]+)/g,function(e){var t=e,i=e,n="",o="";return s&&i.length>s&&(i=i.substring(0,s-3)+"...",n=' title="'+encodeURI(e)+'"'),'<a href="'+t+'"'+(o=a?' target="_blank"':o)+n+">"+i+"</a>"})}function decodeURI_ss(t){var i;try{i=decodeURI(t)}catch(e){var n,o={"%E6":"æ","%F8":"ø","%E5":"å","%C6":"Æ","%D8":"Ø","%C5":"Å"};for(n in o)for(var a=o[n];-1<t.indexOf(n);)t=t.replace(n,a,"g");i=decodeURI(t)}return i}function svg_remove_whitespace(o){var e=o.getBBox(),e=[e.x,e.y,e.width,e.height].join(" ");if("0 0 0 0"===e){let n=new IntersectionObserver(function(e){for(let i=0;i<e.length;i++){var t;e[i].intersectionRatio<=0||(n.disconnect(),t=[(t=o.getBBox()).x,t.y,t.width,t.height].join(" "),o.setAttribute("viewBox",t))}});n.observe(o)}else o.setAttribute("viewBox",e)}function sha1(e){var t;try{var i=require("crypto").createHash("sha1");i.update(e),t=i.digest("hex")}catch(e){t=void 0}if(void 0!==t)return t;for(var n,o,a,s,r,l,d,c,u=function(e,t){return e<<t|e>>>32-t},i=function(e){for(var t="",i=7;0<=i;i--)t+=(e>>>4*i&15).toString(16);return t},_=new Array(80),h=1732584193,p=4023233417,f=2562383102,m=271733878,g=3285377520,v=(e=unescape(encodeURIComponent(e))).length,b=[],y=0;y<v-3;y+=4)o=e.charCodeAt(y)<<24|e.charCodeAt(y+1)<<16|e.charCodeAt(y+2)<<8|e.charCodeAt(y+3),b.push(o);switch(v%4){case 0:y=2147483648;break;case 1:y=e.charCodeAt(v-1)<<24|8388608;break;case 2:y=e.charCodeAt(v-2)<<24|e.charCodeAt(v-1)<<16|32768;break;case 3:y=e.charCodeAt(v-3)<<24|e.charCodeAt(v-2)<<16|e.charCodeAt(v-1)<<8|128}for(b.push(y);b.length%16!=14;)b.push(0);for(b.push(v>>>29),b.push(v<<3&4294967295),n=0;n<b.length;n+=16){for(y=0;y<16;y++)_[y]=b[n+y];for(y=16;y<=79;y++)_[y]=u(_[y-3]^_[y-8]^_[y-14]^_[y-16],1);for(a=h,s=p,r=f,l=m,d=g,y=0;y<=19;y++)c=u(a,5)+(s&r|~s&l)+d+_[y]+1518500249&4294967295,d=l,l=r,r=u(s,30),s=a,a=c;for(y=20;y<=39;y++)c=u(a,5)+(s^r^l)+d+_[y]+1859775393&4294967295,d=l,l=r,r=u(s,30),s=a,a=c;for(y=40;y<=59;y++)c=u(a,5)+(s&r|s&l|r&l)+d+_[y]+2400959708&4294967295,d=l,l=r,r=u(s,30),s=a,a=c;for(y=60;y<=79;y++)c=u(a,5)+(s^r^l)+d+_[y]+3395469782&4294967295,d=l,l=r,r=u(s,30),s=a,a=c;h=h+a&4294967295,p=p+s&4294967295,f=f+r&4294967295,m=m+l&4294967295,g=g+d&4294967295}return(c=i(h)+i(p)+i(f)+i(m)+i(g)).toLowerCase()}function base64_encode(e){function t(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)})}if("undefined"==typeof window)return new Buffer(e).toString("base64");if(void 0!==window.btoa)return window.btoa(t(e));var i,n,o,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=0,l=0,d="",c=[];if(!e)return e;for(e=t(e);i=(a=e.charCodeAt(r++)<<16|e.charCodeAt(r++)<<8|e.charCodeAt(r++))>>12&63,n=a>>6&63,o=63&a,c[l++]=s.charAt(a>>18&63)+s.charAt(i)+s.charAt(n)+s.charAt(o),r<e.length;);var d=c.join(""),u=e.length%3;return(u?d.slice(0,u-3):d)+"===".slice(u||3)}function base64_decode(e){if("undefined"==typeof window)return new Buffer(e,"base64").toString("utf-8");if(void 0!==window.atob)return decodeURIComponent(escape(window.atob(e)));var t,i,n,o,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=0,l=0,d="",c=[];if(!e)return e;for(e+="";t=(a=s.indexOf(e.charAt(r++))<<18|s.indexOf(e.charAt(r++))<<12|(n=s.indexOf(e.charAt(r++)))<<6|(o=s.indexOf(e.charAt(r++))))>>16&255,i=a>>8&255,a=255&a,c[l++]=64===n?String.fromCharCode(t):64===o?String.fromCharCode(t,i):String.fromCharCode(t,i,a),r<e.length;);return d=c.join(""),decodeURIComponent(escape(d.replace(/\0+$/,"")))}function htmlentities(e,t,i,n){n=null===n||n||void 0===n;var o=get_html_translation_table("HTML_ENTITIES",t=null==t?"ENT_QUOTES":t);if(e=null===e?"":e+"",!o)return!1;t&&"ENT_QUOTES"===t&&(o["'"]="&#039;");var a=new RegExp("&(?:#\\d+|#x[\\da-f]+|[a-zA-Z][\\da-z]*);|["+Object.keys(o).join("").replace(/([()[\]{}\-.*+?^$|\/\\])/g,"\\$1")+"]","g");return e.replace(a,function(e){return 1<e.length?n?o["&"]+e.substr(1):e:o[e]})}function html_entity_decode(e,t){var i,n=get_html_translation_table,o="",a="",o=e.toString(),s=n("HTML_ENTITIES",t);if(!1===s)return!1;for(a in delete s["&"],s["&"]="&amp;",s)i=s[a],o=o.split(i).join(a);return o=o.split("&#039;").join("'")}function get_html_translation_table(e,t){var i,n={},o={},a={},s={};if(a[0]="HTML_SPECIALCHARS",a[1]="HTML_ENTITIES",s[0]="ENT_NOQUOTES",s[2]="ENT_COMPAT",s[3]="ENT_QUOTES",a=isNaN(e)?e?e.toUpperCase():"HTML_SPECIALCHARS":a[e],s=isNaN(t)?t?t.toUpperCase():"ENT_COMPAT":s[t],"HTML_SPECIALCHARS"!==a&&"HTML_ENTITIES"!==a)throw new Error("Table: "+a+" not supported");for(i in n[38]="&amp;","HTML_ENTITIES"===a&&(n[160]="&nbsp;",n[161]="&iexcl;",n[162]="&cent;",n[163]="&pound;",n[164]="&curren;",n[165]="&yen;",n[166]="&brvbar;",n[167]="&sect;",n[168]="&uml;",n[169]="&copy;",n[170]="&ordf;",n[171]="&laquo;",n[172]="&not;",n[173]="&shy;",n[174]="&reg;",n[175]="&macr;",n[176]="&deg;",n[177]="&plusmn;",n[178]="&sup2;",n[179]="&sup3;",n[180]="&acute;",n[181]="&micro;",n[182]="&para;",n[183]="&middot;",n[184]="&cedil;",n[185]="&sup1;",n[186]="&ordm;",n[187]="&raquo;",n[188]="&frac14;",n[189]="&frac12;",n[190]="&frac34;",n[191]="&iquest;",n[192]="&Agrave;",n[193]="&Aacute;",n[194]="&Acirc;",n[195]="&Atilde;",n[196]="&Auml;",n[197]="&Aring;",n[198]="&AElig;",n[199]="&Ccedil;",n[200]="&Egrave;",n[201]="&Eacute;",n[202]="&Ecirc;",n[203]="&Euml;",n[204]="&Igrave;",n[205]="&Iacute;",n[206]="&Icirc;",n[207]="&Iuml;",n[208]="&ETH;",n[209]="&Ntilde;",n[210]="&Ograve;",n[211]="&Oacute;",n[212]="&Ocirc;",n[213]="&Otilde;",n[214]="&Ouml;",n[215]="&times;",n[216]="&Oslash;",n[217]="&Ugrave;",n[218]="&Uacute;",n[219]="&Ucirc;",n[220]="&Uuml;",n[221]="&Yacute;",n[222]="&THORN;",n[223]="&szlig;",n[224]="&agrave;",n[225]="&aacute;",n[226]="&acirc;",n[227]="&atilde;",n[228]="&auml;",n[229]="&aring;",n[230]="&aelig;",n[231]="&ccedil;",n[232]="&egrave;",n[233]="&eacute;",n[234]="&ecirc;",n[235]="&euml;",n[236]="&igrave;",n[237]="&iacute;",n[238]="&icirc;",n[239]="&iuml;",n[240]="&eth;",n[241]="&ntilde;",n[242]="&ograve;",n[243]="&oacute;",n[244]="&ocirc;",n[245]="&otilde;",n[246]="&ouml;",n[247]="&divide;",n[248]="&oslash;",n[249]="&ugrave;",n[250]="&uacute;",n[251]="&ucirc;",n[252]="&uuml;",n[253]="&yacute;",n[254]="&thorn;",n[255]="&yuml;"),"ENT_NOQUOTES"!==s&&(n[34]="&quot;"),"ENT_QUOTES"===s&&(n[39]="&#39;"),n[60]="&lt;",n[62]="&gt;",n)n.hasOwnProperty(i)&&(o[String.fromCharCode(i)]=n[i]);return o}function is_numeric(e){return("number"==typeof e||"string"==typeof e&&-1===" \n\r\t\f\v            ​\u2028\u2029　".indexOf(e.slice(-1)))&&""!==e&&!isNaN(e)}function parse_url(e,t){for(var n,i=("undefined"!=typeof require?require("../info/ini_get")("locutus.parse_url.mode"):void 0)||"php",o=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],a={php:new RegExp(["(?:([^:\\/?#]+):)?","(?:\\/\\/()(?:(?:()(?:([^:@\\/]*):?([^:@\\/]*))?@)?([^:\\/?#]*)(?::(\\d*))?))?","()","(?:(()(?:(?:[^?#\\/]*\\/)*)()(?:[^?#]*))(?:\\?([^#]*))?(?:#(.*))?)"].join("")),strict:new RegExp(["(?:([^:\\/?#]+):)?","(?:\\/\\/((?:(([^:@\\/]*):?([^:@\\/]*))?@)?([^:\\/?#]*)(?::(\\d*))?))?","((((?:[^?#\\/]*\\/)*)([^?#]*))(?:\\?([^#]*))?(?:#(.*))?)"].join("")),loose:new RegExp(["(?:(?![^:@]+:[^:@\\/]*@)([^:\\/?#.]+):)?","(?:\\/\\/\\/?)?","((?:(([^:@\\/]*):?([^:@\\/]*))?@)?([^:\\/?#]*)(?::(\\d*))?)","(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))","(?:\\?([^#]*))?(?:#(.*))?)"].join(""))},s=a[i].exec(e),r={},l=14;l--;)s[l]&&(r[o[l]]=s[l]);return t?r[t.replace("PHP_URL_","").toLowerCase()]:("php"!==i&&(n=("undefined"!=typeof require?require("../info/ini_get")("locutus.parse_url.queryKey"):void 0)||"queryKey",a=/(?:^|&)([^&=]*)=?([^&]*)/g,r[n]={},(r[o[12]]||"").replace(a,function(e,t,i){t&&(r[n][t]=i)})),delete r.source,r)}function parse_str(e,t){function i(e){return decodeURIComponent(e.replace(/\+/g,"%20"))}var n,o,a,s,r,l,d,c,u,_,h,p,f=String(e).replace(/^&/,"").replace(/&$/,"").split("&"),m=f.length,g="undefined"!=typeof window?window:global,v=(g.$locutus=g.$locutus||{},g.$locutus);for(v.php=v.php||{},t=t||g,n=0;n<m;n++){for(c=i((u=f[n].split("="))[0]),u=u.length<2?"":i(u[1]);" "===c.charAt(0);)c=c.slice(1);if((c=-1<c.indexOf("\0")?c.slice(0,c.indexOf("\0")):c)&&"["!==c.charAt(0)){for(h=[],o=_=0;o<c.length;o++)if("["!==c.charAt(o)||_){if("]"===c.charAt(o)&&_&&(h.length||h.push(c.slice(0,_-1)),h.push(c.substr(_,o-_)),_=0,"["!==c.charAt(o+1)))break}else _=o+1;for(h.length||(h=[c]),o=0;o<h[0].length&&(" "!==(d=h[0].charAt(o))&&"."!==d&&"["!==d||(h[0]=h[0].substr(0,o)+"_"+h[0].substr(o+1)),"["!==d);o++);for(l=t,o=0,p=h.length;o<p;o++)if(r=l,""!==(c=h[o].replace(/^['"]/,"").replace(/['"]$/,""))&&" "!==c||0===o)void 0===l[c]&&(l[c]={}),l=l[c];else{for(s in a=-1,l)l.hasOwnProperty(s)&&a<+s&&s.match(/^\d+$/g)&&(a=+s);c=a+1}r[c]=u}}}function number_format(e,t,i,n){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o,a=isFinite(+e)?+e:0,s=isFinite(+t)?Math.abs(t):0,r=void 0===n?",":n,l=void 0===i?".":i,d="";return 3<(d=(s?(e=a,t=s,o=Math.pow(10,t),""+(Math.round(e*o)/o).toFixed(t)):""+Math.round(a)).split("."))[0].length&&(d[0]=d[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,r)),(d[1]||"").length<s&&(d[1]=d[1]||"",d[1]+=new Array(s-d[1].length+1).join("0")),d.join(l)}function date(e,t){function i(e,t){return r[e]?r[e]():t}function n(e,t){for(e=String(e);e.length<t;)e="0"+e;return e}var o,a=["Sun","Mon","Tues","Wednes","Thurs","Fri","Satur","January","February","March","April","May","June","July","August","September","October","November","December"],s=/\\?(.?)/gi,r={d:function(){return n(r.j(),2)},D:function(){return r.l().slice(0,3)},j:function(){return o.getDate()},l:function(){return a[r.w()]+"day"},N:function(){return r.w()||7},S:function(){var e=r.j(),t=e%10;return["st","nd","rd"][(t=t<=3&&1===parseInt(e%100/10,10)?0:t)-1]||"th"},w:function(){return o.getDay()},z:function(){var e=new Date(r.Y(),r.n()-1,r.j()),t=new Date(r.Y(),0,1);return Math.round((e-t)/864e5)},W:function(){var e=new Date(r.Y(),r.n()-1,r.j()-r.N()+3),t=new Date(e.getFullYear(),0,4);return n(1+Math.round((e-t)/864e5/7),2)},F:function(){return a[6+r.n()]},m:function(){return n(r.n(),2)},M:function(){return r.F().slice(0,3)},n:function(){return o.getMonth()+1},t:function(){return new Date(r.Y(),r.n(),0).getDate()},L:function(){var e=r.Y();return e%4==0&e%100!=0|e%400==0},o:function(){var e=r.n(),t=r.W();return r.Y()+(12===e&&t<9?1:1===e&&9<t?-1:0)},Y:function(){return o.getFullYear()},y:function(){return r.Y().toString().slice(-2)},a:function(){return 11<o.getHours()?"pm":"am"},A:function(){return r.a().toUpperCase()},B:function(){var e=3600*o.getUTCHours(),t=60*o.getUTCMinutes(),i=o.getUTCSeconds();return n(Math.floor((e+t+i+3600)/86.4)%1e3,3)},g:function(){return r.G()%12||12},G:function(){return o.getHours()},h:function(){return n(r.g(),2)},H:function(){return n(r.G(),2)},i:function(){return n(o.getMinutes(),2)},s:function(){return n(o.getSeconds(),2)},u:function(){return n(1e3*o.getMilliseconds(),6)},e:function(){throw new Error("Not supported (see source code of date() for timezone on how to add support)")},I:function(){return new Date(r.Y(),0)-Date.UTC(r.Y(),0)!=new Date(r.Y(),6)-Date.UTC(r.Y(),6)?1:0},O:function(){var e=o.getTimezoneOffset(),t=Math.abs(e);return(0<e?"-":"+")+n(100*Math.floor(t/60)+t%60,4)},P:function(){var e=r.O();return e.substr(0,3)+":"+e.substr(3,2)},T:function(){return"UTC"},Z:function(){return 60*-o.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(s,i)},r:function(){return"D, d M Y H:i:s O".replace(s,i)},U:function(){return o/1e3|0}};return e=e,o=void 0===(t=t)?new Date:t instanceof Date?new Date(t):new Date(1e3*t),e.replace(s,i)}function uniqid(e,t){void 0===e&&(e="");let i;function n(e,t){return t<(e=parseInt(e,10).toString(16)).length?e.slice(e.length-t):e.length<t?Array(t-e.length+1).join("0")+e:e}var o="undefined"!=typeof window?window:global,o=(o.$locutus=o.$locutus||{},o.$locutus);return o.php=o.php||{},o.php.uniqidSeed||(o.php.uniqidSeed=Math.floor(123456789*Math.random())),o.php.uniqidSeed++,i=e,i=(i+=n(parseInt((new Date).getTime()/1e3,10),8))+n(o.php.uniqidSeed,5),t&&(i+=(10*Math.random()).toFixed(8).toString()),i}function http_build_query(e,t,i,n){function a(e,t,i){var n,o=[];if(!0===t?t="1":!1===t&&(t="0"),null===t)return"";if("object"==typeof t){for(n in t)null!==t[n]&&o.push(a(e+"["+n+"]",t[n],i));return o.join(i)}if("function"!=typeof t)return s(e)+"="+s(t);throw new Error("There was an error processing for http_build_query().")}var o,s=encodeURIComponent,r=[];for(o in i=i||"&",e){l=e[o],t&&!isNaN(o)&&(o=String(t)+o);var l=a(o,l,i);""!==l&&r.push(l)}return r.join(i)}function nl2br(e,t){return null==e?"":(e+"").replace(/(\r\n|\n\r|\r|\n)/g,(t||void 0===t?"<br />":"<br>")+"$1")}function ltrim(e,t){t=t?(t+"").replace(/([[\]().?/*{}+$^:])/g,"$1"):" \\s ";var i=new RegExp("^["+t+"]+","g");return(e+"").replace(i,"")}function rtrim(e,t){t=t?(t+"").replace(/([[\]().?/*{}+$^:])/g,"\\$1"):" \\s ";var i=new RegExp("["+t+"]+$","g");return(e+"").replace(i,"")}function lazy_load(){if(void 0===window._g_lazy_load_intersection_observer)try{window._g_lazy_load_intersection_observer=new IntersectionObserver(function(e){for(let i=0;i<e.length;i++){var t=e[i];t.intersectionRatio<=0||(window._g_lazy_load_intersection_observer.unobserve(t.target),lazy_load_element(t.target))}},{threshold:[1e-26]})}catch(e){return void lazy_load_elements_children(document.body)}void 0===window._g_lazy_load_exception_handled&&(window._g_lazy_load_exception_handled=1,$("#container-main-content [data-module-block-type][data-intersection-callback]:nth-of-type(-n+3)").each(function(){lazy_load_element(this)})),$('[data-lazy-load-src]:not([data-type="item-image"]),[data-lazy-load-background-image],[data-intersection-callback]').each(function(){var e,t;if(this.hasAttribute("data-lazy-load-trigger")&&"hover"===this.getAttribute("data-lazy-load-trigger"))return void((t=(t=e=this).hasAttribute("data-lazy-load-trigger-parent")?$(this).closest(this.getAttribute("data-lazy-load-trigger-parent")).get(0):t).lazy_load_triggers_added||(t.lazy_load_triggers_added=1,t.addEventListener("mouseover",function(){lazy_load_element(e)},{once:!0}),t.addEventListener("touchstart",function(){lazy_load_element(e)},{once:!0,passive:!0})));window._g_lazy_load_intersection_observer.observe(this)})}function lazy_load_element(t){var i,n;if(t.hasAttribute("data-intersection-callback")&&(i=t.getAttribute("data-intersection-callback"),t.removeAttribute("data-intersection-callback"),"function"==typeof window[i])&&window[i].call(t),"IFRAME"===t.nodeName.toUpperCase()&&t.hasAttribute("data-lazy-load-src")&&t.contentWindow&&(t.contentWindow.location.replace(t.getAttribute("data-lazy-load-src")),t.removeAttribute("data-lazy-load-src"),window.dispatchEvent(new CustomEvent("_element_lazy_loaded",{detail:t}))),t.hasAttribute("data-lazy-load-background-image")){let e=t.getAttribute("data-lazy-load-background-image");"slow"===CLIENT_CONNECTION_SPEED&&8===e.split("/").length&&((n=e.split("/")).splice(7,0,"preview"),e=n.join("/"),setTimeout(preview_images_fixer)),t.style.backgroundImage="url("+e+")",t.removeAttribute("data-lazy-load-background-image"),lazy_load_effect_on_load(t,!0),window.dispatchEvent(new CustomEvent("_element_lazy_loaded",{detail:t}))}if(t.hasAttribute("data-lazy-load-src")){t.hasAttribute("data-lazy-load-srcset")&&(t.setAttribute("srcset",t.getAttribute("data-lazy-load-srcset")),t.removeAttribute("data-lazy-load-srcset")),lazy_load_effect_on_load(t),t.hasAttribute("data-lazy-load-on-load-callback")&&(i=t.getAttribute("data-lazy-load-on-load-callback"),"function"==typeof window[i])&&t.addEventListener("load",function(){window[i].call(t)},{once:!0});let e=t.getAttribute("data-lazy-load-src");"slow"===CLIENT_CONNECTION_SPEED&&"IMG"===t.nodeName.toUpperCase()&&8===e.split("/").length&&((n=e.split("/")).splice(7,0,"preview"),e=n.join("/"),setTimeout(preview_images_fixer)),t.setAttribute("src",e),t.removeAttribute("data-lazy-load-src"),window.dispatchEvent(new CustomEvent("_element_lazy_loaded",{detail:t}))}}function lazy_load_elements_children(e){$(e).find('[data-lazy-load-src]:not([data-type="item-image"]),[data-lazy-load-background-image],[data-intersection-callback]').each(function(){lazy_load_element(this)})}function lazy_load_effect_on_load(e,t){!0===e._lazy_load_effect||(e._lazy_load_effect=!0,"object"==typeof window.performance&&"function"==typeof window.performance.getEntriesByType&&0<window.performance.getEntriesByType("navigation").length&&window.performance.getEntriesByType("navigation")[0].domContentLoadedEventEnd&&window.performance.now()-window.performance.getEntriesByType("navigation")[0].domContentLoadedEventEnd<1e3)||(t?(e.classList.add("lazy-loading-bg"),getBackgroundImageSize(e).then(function(){e.classList.remove("lazy-loading-bg"),e.classList.add("lazy-loaded-bg"),setTimeout(function(){document.body.contains(e)&&e.classList.remove("lazy-loaded-bg")},2e3)})):(e.classList.add("lazy-loading"),e.addEventListener("load",function(){this.classList.remove("lazy-loading"),this.classList.add("lazy-loaded"),setTimeout(function(){document.body.contains(e)&&e.classList.remove("lazy-loaded")},2e3)},{once:!0})))}Date.prototype.getWeekNumber=function(){var e=new Date(Date.UTC(this.getFullYear(),this.getMonth(),this.getDate())),t=e.getUTCDay()||7,t=(e.setUTCDate(e.getUTCDate()+4-t),new Date(Date.UTC(e.getUTCFullYear(),0,1)));return Math.ceil(((e-t)/864e5+1)/7)},document.addEventListener("DOMContentLoaded",lazy_load),window.addEventListener("_after_load",function(){setTimeout(function(){lazy_load()},0)});let ajax_extra_http_headers=[];function ajax(e,t,i,n,o,a){if(void 0===window._g_ajax_blocked||!window._g_ajax_blocked){var s=e,r="/",l=(void 0===globals&&(window.globals=[]),globals.current_ajax&&a&&(globals.current_ajax.ontimeout=!1,globals.current_ajax.onerror=!1,globals.current_ajax.canceled=!0,globals.current_ajax.abort()),new XMLHttpRequest),d=(globals.current_ajax=l,"GET");if(o&&"post"===o.toLowerCase()?d="POST":r+="?"+s+"&rand="+(new Date).getTime(),l.ss_url=r,l.open(d,r,!0),"boolean"==typeof _g_debugging_activated&&_g_debugging_activated&&(d=_debug_store_ajax_call(r,s))&&(l.ss_debug_key=d),i&&(l.timeout=i),o&&"post"===o.toLowerCase()&&(l.setRequestHeader("X-Csrf-Token",get_cookie("csrf_token")),l.setRequestHeader("Content-type","application/x-www-form-urlencoded")),l.setRequestHeader("X-DEVICE-WIDTH",window.innerWidth.toString()),l.setRequestHeader("X-DEVICE-HEIGHT",window.innerHeight.toString()),l.setRequestHeader("X-HTTP-REFERER",window.location.origin+window.location.pathname),void 0!==window.ss_build_timestamp&&l.setRequestHeader("X-BUILD-TIMESTAMP",window.ss_build_timestamp),void 0!==window.ss_last_full_get&&l.setRequestHeader("X-LAST-FULL-GET-TIMESTAMP",window.ss_last_full_get),window.globals.back_or_forward_button_just_used&&l.setRequestHeader("X-BACK-OR-FORWARD-BUTTON-USED",window.globals.back_or_forward_button_just_used),void 0!==t&&(l.ss_callback_function=t),void 0!==n&&(l.ss_error_function=n),ajax_extra_http_headers.length)for(let e=0;e<ajax_extra_http_headers.length;e++){var c=ajax_extra_http_headers[e];l.setRequestHeader(c.name,c.value)}return l.onreadystatechange=ajax_ready_state_change,l.ss_post_data=s,l.ss_date_execute=new Date,o&&"post"===o.toLowerCase()?l.send(s):l.send(),l}}function ajax_get(t,i,n,o){if(o=void 0===o?3e4:o,void 0===window._g_ajax_blocked||!window._g_ajax_blocked){var a,s=new XMLHttpRequest;if(s.ss_url=t,s.open("GET",t,!0),"boolean"==typeof _g_debugging_activated&&_g_debugging_activated&&(a=_debug_store_ajax_call(t))&&(s.ss_debug_key=a),s.timeout=o,s.setRequestHeader("X-Ajax-Get","1"),s.setRequestHeader("X-Csrf-Token",get_cookie("csrf_token")),s.setRequestHeader("X-DEVICE-WIDTH",window.innerWidth.toString()),s.setRequestHeader("X-DEVICE-HEIGHT",window.innerHeight.toString()),s.setRequestHeader("X-HTTP-REFERER",window.location.origin+window.location.pathname),void 0!==window.ss_build_timestamp&&s.setRequestHeader("X-BUILD-TIMESTAMP",window.ss_build_timestamp),void 0!==window.ss_last_full_get&&s.setRequestHeader("X-LAST-FULL-GET-TIMESTAMP",window.ss_last_full_get),window.globals.back_or_forward_button_just_used&&s.setRequestHeader("X-BACK-OR-FORWARD-BUTTON-USED",window.globals.back_or_forward_button_just_used),void 0!==i&&(s.ss_callback_function=i),void 0!==n&&(s.ss_error_function=n),ajax_extra_http_headers.length)for(let e=0;e<ajax_extra_http_headers.length;e++){var r=ajax_extra_http_headers[e];s.setRequestHeader(r.name,r.value)}return s.onreadystatechange=ajax_ready_state_change,s.ss_date_execute=new Date,s.send(),s}}function ajax_post(t,i,n,o,a=3e4,s=!0,e=!0){if(void 0===window._g_ajax_blocked||!window._g_ajax_blocked){var r,l=new XMLHttpRequest;if(l.ss_url=t,l.open("POST",t,!0),e=e&&window.performance&&window.performance.now()<1e3?!1:e){let e=sha1(t+i+(n?n.toString():""));if(void 0!==window._g_ajax_post_url_and_post_data_hashes&&void 0!==window._g_ajax_post_url_and_post_data_hashes[e])return;void 0===window._g_ajax_post_url_and_post_data_hashes&&(window._g_ajax_post_url_and_post_data_hashes={}),window._g_ajax_post_url_and_post_data_hashes[e]=1,l.url_and_post_data_hash=e,l.url_and_post_data_hash_timeout=setTimeout(function(){delete window._g_ajax_post_url_and_post_data_hashes[e]},6e4)}if("boolean"==typeof _g_debugging_activated&&_g_debugging_activated&&(r=_debug_store_ajax_call(t,i))&&(l.ss_debug_key=r),l.timeout=a,l.ss_alert_errors_automatically=s,l.setRequestHeader("X-Ajax-Post","1"),l.setRequestHeader("X-Csrf-Token",get_cookie("csrf_token")),l.setRequestHeader("Content-type","application/x-www-form-urlencoded"),l.setRequestHeader("X-DEVICE-WIDTH",window.innerWidth.toString()),l.setRequestHeader("X-DEVICE-HEIGHT",window.innerHeight.toString()),l.setRequestHeader("X-HTTP-REFERER",window.location.origin+window.location.pathname),void 0!==window.ss_build_timestamp&&l.setRequestHeader("X-BUILD-TIMESTAMP",window.ss_build_timestamp),void 0!==window.ss_last_full_get&&l.setRequestHeader("X-LAST-FULL-GET-TIMESTAMP",window.ss_last_full_get),void 0!==n&&(l.ss_callback_function=n),void 0!==o&&(l.ss_error_function=o),ajax_extra_http_headers.length)for(let e=0;e<ajax_extra_http_headers.length;e++){var d=ajax_extra_http_headers[e];l.setRequestHeader(d.name,d.value)}return l.onreadystatechange=ajax_ready_state_change,l.ss_post_data=i,l.ss_date_execute=new Date,l.send(i),l}}function ajax_delete(t,i,n,o,a){if(a=void 0===a?3e4:a,void 0===window._g_ajax_blocked||!window._g_ajax_blocked){var s,r=new XMLHttpRequest;if(r.ss_url=t,r.open("DELETE",t,!0),"boolean"==typeof _g_debugging_activated&&_g_debugging_activated&&(s=_debug_store_ajax_call(t,i))&&(r.ss_debug_key=s),r.timeout=a,r.setRequestHeader("X-Ajax-Delete","1"),r.setRequestHeader("X-Csrf-Token",get_cookie("csrf_token")),r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.setRequestHeader("X-DEVICE-WIDTH",window.innerWidth.toString()),r.setRequestHeader("X-DEVICE-HEIGHT",window.innerHeight.toString()),r.setRequestHeader("X-HTTP-REFERER",window.location.origin+window.location.pathname),void 0!==window.ss_build_timestamp&&r.setRequestHeader("X-BUILD-TIMESTAMP",window.ss_build_timestamp),void 0!==window.ss_last_full_get&&r.setRequestHeader("X-LAST-FULL-GET-TIMESTAMP",window.ss_last_full_get),void 0!==n&&(r.ss_callback_function=n),void 0!==o&&(r.ss_error_function=o),ajax_extra_http_headers.length)for(let e=0;e<ajax_extra_http_headers.length;e++){var l=ajax_extra_http_headers[e];r.setRequestHeader(l.name,l.value)}return r.onreadystatechange=ajax_ready_state_change,r.ss_post_data=i,r.ss_date_execute=new Date,r.send(i),r}}function ajax_put(t,i,n,o,a){if(a=void 0===a?3e4:a,void 0===window._g_ajax_blocked||!window._g_ajax_blocked){var s,r=new XMLHttpRequest;if(r.ss_url=t,r.open("PUT",t,!0),"boolean"==typeof _g_debugging_activated&&_g_debugging_activated&&(s=_debug_store_ajax_call(t,i))&&(r.ss_debug_key=s),r.timeout=a,r.setRequestHeader("X-Ajax-Put","1"),r.setRequestHeader("X-Csrf-Token",get_cookie("csrf_token")),r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.setRequestHeader("X-DEVICE-WIDTH",window.innerWidth.toString()),r.setRequestHeader("X-DEVICE-HEIGHT",window.innerHeight.toString()),r.setRequestHeader("X-HTTP-REFERER",window.location.origin+window.location.pathname),void 0!==window.ss_build_timestamp&&r.setRequestHeader("X-BUILD-TIMESTAMP",window.ss_build_timestamp),void 0!==window.ss_last_full_get&&r.setRequestHeader("X-LAST-FULL-GET-TIMESTAMP",window.ss_last_full_get),void 0!==n&&(r.ss_callback_function=n),void 0!==o&&(r.ss_error_function=o),ajax_extra_http_headers.length)for(let e=0;e<ajax_extra_http_headers.length;e++){var l=ajax_extra_http_headers[e];r.setRequestHeader(l.name,l.value)}return r.onreadystatechange=ajax_ready_state_change,r.ss_post_data=i,r.ss_date_execute=new Date,r.send(i),r}}function ajax_ready_state_change(){if(4===this.readyState&&(void 0!==this.url_and_post_data_hash&&(delete window._g_ajax_post_url_and_post_data_hashes[this.url_and_post_data_hash],clearTimeout(this.url_and_post_data_hash_timeout)),"boolean"!=typeof this.aborted||!this.aborted)){try{var t=JSON.parse(this.responseText)}catch(e){t={}}var e,i,n,o,a=new CustomEvent("_ajax_ready",{detail:{ajax:this,data:t}});if(window.dispatchEvent(a),200===this.status||201===this.status||304===this.status||404===this.status){if(this.canceled)return!1;if(void 0===window._g_ajax_blocked||!window._g_ajax_blocked){try{var t=JSON.parse(this.responseText)}catch(e){t={result:-1};if(console.dir(e),console.log(this.responseURL),console.log(this.ss_post_data),console.log(this.responseText),"function"==typeof this.ss_error_function)return void this.ss_error_function(t)}if("server_down"===t||"reload_full"===t)window.location.reload();else{if("ajax_force_reload_get_customer"===t)return void(void 0!==anchor_remember&&anchor_remember?window.location=anchor_remember:window.location.reload());if("ajax_force_reload_get_info"===t)return void(void 0!==anchor_remember&&anchor_remember?window.location=anchor_remember:modal_active?(browserloading_stop(),window._g_ajax_blocked=!0,confirm_nice(_t("Ny opdatering"),_t("Før du kan fortsætte skal en ny opdatering indlæses.<br>Hvis du er midt i noget så tryk Annullér og gem dette udenfor ideal.shop.<br>Opdater herefter siden, ved at trykke på F5.",!1),function(){window.location.reload()},void 0,void 0,"btn-primary",_t("Indlæs opdatering"))):window.location.reload());if("ajax_force_reload_customer"===t)return browserloading_stop(),window._g_ajax_blocked=!0,void confirm_nice(_t("Ny opdatering"),_t("Før du kan fortsætte skal en ny opdatering indlæses.",!1),function(){window.location.reload()},void 0,void 0,"btn-primary",_t("Indlæs opdatering"));if("ajax_force_reload_info"===t)return browserloading_stop(),window._g_ajax_blocked=!0,void confirm_nice(_t("Ny opdatering"),_t("Før du kan fortsætte skal en ny opdatering indlæses.<br>Hvis du er midt i noget så tryk Annullér og gem dette udenfor ideal.shop.<br>Opdater herefter siden, ved at trykke på F5.",!1),function(){window.location.reload()},void 0,void 0,"btn-primary",_t("Indlæs opdatering"))}if(void 0!==t.redirect_full)window.location.href=t.redirect_full;else if(void 0!==t.reload_full)window.location.reload();else if(void 0!==t.ajax_self_destructing_message&&(a=null,t.ajax_self_destructing_message_timeout&&(a=t.ajax_self_destructing_message_timeout),o=null,t.ajax_self_destructing_message_icon&&(o=t.ajax_self_destructing_message_icon),self_destructing_message(t.ajax_self_destructing_message,a,o)),void 0!==t.redirect)e=t.redirect,i=void 0,t.redirect_callback&&("__original"===t.redirect_callback?"function"==typeof this.ss_callback_function?(n=this,i=function(){n.ss_callback_function(t)}):"function"==typeof window[this.ss_callback_function]&&(n=this,i=function(){window[n.ss_callback_function](t)}):"function"==typeof window[t.redirect_callback]&&(i=function(e){window[t.redirect_callback](t.redirect_callback_data,e)})),setTimeout(function(){content_load(e,void 0,i)},0);else{if(void 0!==this.ss_alert_errors_automatically&&!1===this.ss_alert_errors_automatically||(void 0!==t.result&&-1===t.result&&void 0!==t.error_msg?(void 0!==t.errors_for_coders&&t.errors_for_coders&&(t.error_msg+=t.errors_for_coders),void 0!==t.error_msg_show_in_modal_simple_title&&t.error_msg_show_in_modal_simple_title?(void 0!==t.go_back_after_modal_has_closed?modal_close_top_global_callback=function(){window_onpopstate_do_nothing=!0,history.back()}:void 0!==t.refresh_after_modal_has_closed&&(modal_close_top_global_callback=function(){window_onpopstate_do_nothing=!0,window.location.reload()}),modal_simple(t.error_msg_show_in_modal_simple_title,t.error_msg)):void 0!==t.error_msg_use_alert_nice_without_title&&t.error_msg_use_alert_nice_without_title?alert_nice(!1,t.error_msg):alert(t.error_msg),t.error_msg_alerted=1):void 0!==t.errors_for_coders&&t.errors_for_coders&&alert(t.errors_for_coders)),void 0!==t["ajax()-data_to_var"]&&t["ajax()-data_to_var"])for(var s in t["ajax()-data_to_var"])window[s]=t["ajax()-data_to_var"][s];l=this;var r=function(){"object"==typeof d.site_events_log&&"function"==typeof site_events_log&&site_events_log(d.site_events_log),"function"==typeof l.ss_callback_function&&l.ss_callback_function(d),"function"==typeof window[l.ss_callback_function]&&window[l.ss_callback_function](d)};void 0!==(d=t).js_to_load&&t.js_to_load.length||void 0!==t.css_to_load&&t.css_to_load.length?ondemand_loading_multiple(t.css_to_load,t.js_to_load,function(){r()}):r()}}}else"undefined"!=typeof _g_debugging_activated&&_g_debugging_activated&&void 0!==this.ss_debug_key&&void 0!==_g_debugging_ajax_calls_object[this.ss_debug_key]&&(o=(a=Math.round((new Date).getTime()/1e3))-_g_debugging_ajax_calls_object[this.ss_debug_key].start,_g_debugging_ajax_calls_object[this.ss_debug_key].end=a,_g_debugging_ajax_calls_object[this.ss_debug_key].time_taken=o,_g_debugging_ajax_calls_object[this.ss_debug_key].ajax_status=this.status,setTimeout(function(){throw new Error("ajax_call failed")},0)),"function"!=typeof this.ss_error_function||this.canceled||(t={result:-1},this.ss_error_function(t))}var l,d}function ajax_form_submit(e,t,i,n,o,a,s){if(t=t||!1,i=void 0===i?6e4:i,n=n||pageload,o=void 0===o?void 0:o,a=void 0===a?void 0:a,s=void 0!==s&&s,void 0===window._g_ajax_form_submit_blocked||!window._g_ajax_form_submit_blocked){!(window._g_ajax_form_submit_blocked=!0)===t?browserloading_start(o,void 0,a):setTimeout(function(){window._g_ajax_form_submit_blocked=!1},500);var r=e.action,l="default",d="",c=new RegExp("http[s]?://"+window.location.hostname+"[/]?","gi"),u=e.action.replace(c,""),c=new RegExp(/^\/admin\//gi),u=u.replace(c,"");c=new RegExp(/^admin\//gi),(u=u.replace(c,"")).match(new RegExp(/\//))&&(d=(c=u.split("/"))[0],l=c[1]);for(var _=e.elements,h=e.method.toLowerCase(),p=[],f="",m=0;m<_.length;m++){var g=_[m];if(g.type&&g.name&&"string"!=typeof g.getAttribute("disabled"))if("text"===g.type||"number"===g.type||"phone"===g.type||"email"===g.type||"hidden"===g.type||"password"===g.type||"textarea"===g.type||"select"===g.type||"select-one"===g.type||"select-multiple"===g.type||"tel"===g.type||"date"===g.type||"range"===g.type){var v=g.value;if(g.multiple)for(var b=0;b<g.length;b++)(y=g[b]).selected&&(f+="&"+g.name+"="+encodeURIComponent(y.value||y.text));else!g.classList.contains("summernote")||"<p><br></p>"!==v&&"<br>"!==v||(v=""),f+="&"+g.name+"="+encodeURIComponent(v)}else if("radio"===g.type||"checkbox"===g.type)g.checked&&(f+="&"+g.name+"="+encodeURIComponent(g.value));else if("file"===g.type)"post"===h&&g.value&&p.push(g);else for(var y,b=0;b<g.length;b++)(y=g[b]).selected&&(f+="&"+g.name+"="+encodeURIComponent(y.value))}u="",c="path="+d+"/"+l;if("as_object"===t)return{url:e.getAttribute("action"),post_data:f};if(u="get"===h?"":s?f:c+f,t)return u;if(p.length){browserloading_stop(),window.ajax_form_submit_files_read_data={url:r,postvars:u,callback:n,timeout:i,request_type:h,veil_remove_timeout:o,veil_overlay_text_translated:a,use_new_ajax_methods:s},window.ajax_form_submit_files_read_files_loaded=0,window.ajax_form_submit_files_read_files_to_wait_for=p.length;for(m=0;m<p.length;m++){var w=p[m],k=w.files[0],E=new FileReader;E.onload=function(t,i){return function(e){ajax_form_submit_files_read(t,i,e)}}(w,k),E.readAsDataURL(k)}}else s?"get"===h?ajax_get(r,n,void 0,i):ajax_post(r,u,n,void 0,i):ajax(u,n,i,!1,h),window.addEventListener("_ajax_ready",function(){window._g_ajax_form_submit_blocked=!1},{once:!0})}return!1}function ajax_form_submit_files_read(e,t,i){window.ajax_form_submit_files_read_files_loaded++;var n=e.name,o=t.name,a=i.target.result;window.ajax_form_submit_files_read_data.postvars+="&"+n+"="+encodeURIComponent(JSON.stringify({filename:o,data:a})),window.ajax_form_submit_files_read_files_loaded===window.ajax_form_submit_files_read_files_to_wait_for&&(browserloading_start(window.ajax_form_submit_files_read_data.veil_remove_timeout,void 0,window.ajax_form_submit_files_read_data.veil_overlay_text_translated),window.ajax_form_submit_files_read_data.use_new_ajax_methods?"get"===window.ajax_form_submit_files_read_data.request_type?ajax_get(window.ajax_form_submit_files_read_data.url,window.ajax_form_submit_files_read_data.callback,void 0,window.ajax_form_submit_files_read_data.timeout):ajax_post(window.ajax_form_submit_files_read_data.url,window.ajax_form_submit_files_read_data.postvars,window.ajax_form_submit_files_read_data.callback,void 0,window.ajax_form_submit_files_read_data.timeout):ajax(window.ajax_form_submit_files_read_data.postvars,window.ajax_form_submit_files_read_data.callback,window.ajax_form_submit_files_read_data.timeout,!1,window.ajax_form_submit_files_read_data.request_type),window.addEventListener("_ajax_ready",function(){window._g_ajax_form_submit_blocked=!1},{once:!0}))}function named_data_for_object_get_string(e,s){function r(e,t){return"&"+e+"="+encodeURIComponent(t)}s=s||[];var l="";return $(e).find("input, textarea, select").each(function(e,t){if(!any_parent_has_class(t,"note-editor")){if(s)for(var i=0;i<s.length;i++)if(any_parent_has_class(t,s[i]))return;if(""!==t.name)if("text"===t.type||"number"===t.type||"phone"===t.type||"email"===t.type||"hidden"===t.type||"password"===t.type||"textarea"===t.type||"select"===t.type||"select-one"===t.type||"select-multiple"===t.type||"tel"===t.type||"date"===t.type||"range"===t.type){var n=t.value;if(t.multiple)for(var o=0;o<t.length;o++)(a=t[o]).selected&&(l+=r(t.name,a.value||a.text));else!t.classList.contains("summernote")||"<p><br></p>"!==n&&"<br>"!==n||(n=""),l+=r(t.name,n)}else if("radio"===t.type||"checkbox"===t.type)t.checked&&(l+=r(t.name,t.value));else for(var a,o=0;o<t.length;o++)(a=t[o]).selected&&(l+=r(t.name,a.value))}}),l}var modal_active=!1,modal_history_count=0;function modal(e,t,i,n,o,a,s,r,l,d,c,u){$('[data-bs-toggle="tooltip"]').tooltip("hide"),l=void 0!==l&&""!==l?l:"get",o=void 0!==o&&""!==o?o:"",s=!(void 0===s||""===s||!modal_active)&&s,r=void 0!==r&&""!==r&&r,c=void 0===c||c,u=void 0!==u&&u,e&&"false"!==e||(e=_t("Henter..."));var _=n?"&id="+n:"";if(_+=o,document.getElementById("modal_template")||((p=document.getElementById("modal_current").cloneNode(!0)).id="modal_template",document.body.appendChild(p),$("body").on("mousedown",function(e){!modal_active||modal_close_global_block||$(window).width()-e.pageX<=getScrollbarWidth()||!e.target.classList.contains("the_modal_form")&&"modal_current"!==e.target.id||0<$("#modal_current").find(".bootstrap-select .dropdown-menu.show:visible").length||void 0!==$("#modal_current")[0].modal_shown&&!0===$("#modal_current")[0].modal_shown&&modal_on_escape_or_backdrop_or_close()}),$("body").on("keydown",function(e){!modal_active||27!==e.keyCode||0<$("#modal_current").find(".bootstrap-select .dropdown-menu.show:visible").length||void 0!==$("#modal_current")[0].modal_shown&&!0===$("#modal_current")[0].modal_shown&&modal_on_escape_or_backdrop_or_close()}),$("body").on("keypress",function(e){if(modal_active&&13===e.keyCode&&!("modal_current"!==$(e.target).closest(".modal").attr("id")&&$(e.target).closest(".modal").length&&"modal_current"!==$(e.target).closest(".modal").attr("id")||e.target.classList.contains("note-editable"))){if(void 0!==e.target.type){if("textarea"===e.target.type.toLowerCase())return;if("button"===e.target.type.toLowerCase())return;if("a"===e.target.type.toLowerCase())return}modal_on_enter(e)}})),!s&&modal_active&&(h=modal_history_count+1,document.getElementById("modal_current").id="modal_history_"+h,modal_history_count=h,(p=document.getElementById("modal_template").cloneNode(!0)).id="modal_current",document.body.insertBefore(p,document.getElementById("modal_history_"+h).nextSibling)),!r){if(!modal_active){var h=document.getElementById("modal_current");h&&h.parentNode.removeChild(h);const p=document.getElementById("modal_template").cloneNode(!0);document.body.appendChild(p),p.id="modal_current"}$("#modal_current .modal-header").show(),$("#modal_current .modal-body").html('<div style="text-align:center;"><img src="https://'+CDN_TO_USE_HOSTNAME+'/images/idealshop/working.gif" style="width:50px; opacity:0.7;"></div>'),$("#modal_current .modal-footer .btn-modal-save").hide().attr("disabled",!0),$("#modal_current .add_remove_options_container").css("display","none"),$("#modal_current .footer_custom_container").css("display","none").html(""),$("#modal_current .modal-dialog").removeClass("modal-dialog-centered").css("max-width","").css("width",""),$("#modal_current .modal-title").html(e),u&&$("#modal_current .modal-dialog").addClass("modal-dialog-centered"),$("#modal_current")[0].className=!s&&c?"modal fade":"modal",$("#modal_current").modal("show"),$("#modal_current").insertAfter($(".modal-backdrop").last()),n&&$("#modal_current").attr("data-id",n)}var p="start",h="default",f=window.location.pathname.split("/");void 0!==f[2]&&f[2]&&(p=f[2]),void 0!==f[3]&&f[3]&&(h=f[3]),modal_active=!0,window._g_popstate_navigation_blocked=!0,$("#modal_current").off("shown.bs.modal").on("shown.bs.modal",modal_shown_basic),s&&c&&$("#modal_current").on("shown.bs.modal",function(){$("#modal_current").addClass("fade").addClass("in")}),$("body").addClass("modal-transitioning"),c||modal_shown_basic.apply($("#modal_current")[0]),void 0===a||""===a?ajax("ajax="+t+"&action="+i+"&modal=true&module_current="+p+"&action_current="+h+_,function(e){modal_receive(e,s,d)},!1,!1,l):modal_receive(a,void 0,d)}function modal_shown_basic(){this.modal_shown=!0,window._g_popstate_navigation_blocked=!1,$("body").removeClass("modal-transitioning"),$("#modal_current").addClass("show")}var modal_close_global_block=!1;function modal_receive(r,do_not_push_state,shown_callback,pushstate_navigate_to_this_callback){if(modal_active){if(document.activeElement&&document.activeElement.blur(),$("#modal_current").on("shown.bs.modal",modal_shown_basic),modal_close_global_block=!1,r.result<0){if(r.error_msg)return window._g_popstate_navigation_blocked=!1,void(void 0===r.error_msg_alerted&&alert(r.error_msg));if(-2===r.result)return window._g_popstate_navigation_blocked=!1,void(document.location.href="/admin/");if(!r.html)return window._g_popstate_navigation_blocked=!1,modal_hide_all(),!1;!r.title&&r.header_txt&&(r.title=r.header_txt)}if(void 0!==r.force_pageload&&1===r.force_pageload)return window._g_popstate_navigation_blocked=!1,pageload(r),!1;if($("#modal_current .modal-footer .btn-modal-save").html(_t("Gem")),$("#modal_current .modal-footer .btn-modal-close").html(_t("Luk")),0===$("#modal_current .the_modal_form").length&&$("#modal_current").wrapInner('<form method="post" class="the_modal_form"></form>'),r.modal_type&&$("#modal_current").addClass(r.modal_type),r.modal_width){let dialog=$("#modal_current .modal-dialog");-1<r.modal_width.indexOf("px")&&window.innerWidth<parseInt(r.modal_width)?dialog.css("max-width",window.innerWidth+"px").css("margin-left",0).css("margin-right",0):dialog.css("max-width",r.modal_width),$("#modal_current")[0].modal_width=r.modal_width}r.save_button&&$("#modal_current .modal-footer .btn-modal-save").html(r.save_button),r.save_button_class&&($("#modal_current .modal-footer .btn-modal-save")[0].className="btn btn-modal-save "+r.save_button_class),r.close_button&&$("#modal_current .modal-footer .btn-modal-close").html(r.close_button),r.close_button_class&&($("#modal_current .modal-footer .btn-modal-close")[0].className="btn btn-modal-close "+r.close_button_class);var ajax_form_submit_timeout=void 0!==r.ajax_form_submit_timeout&&r.ajax_form_submit_timeout?r.ajax_form_submit_timeout:void 0,ajax_form_submit_callback=void 0!==r.ajax_form_submit_callback&&r.ajax_form_submit_callback?r.ajax_form_submit_callback:void 0,ajax_form_submit_veil_remove_timeout=void 0===r.ajax_form_submit_veil_remove_timeout?void 0:r.ajax_form_submit_veil_remove_timeout,ajax_form_submit_veil_overlay_text_translated=void 0===r.ajax_form_submit_veil_overlay_text_translated?void 0:r.ajax_form_submit_veil_overlay_text_translated,tab_for_pushstate=(r.form_action_inlined_id?($("#modal_current .the_modal_form .modal-dialog").unwrap(),$("#modal_current .modal-footer .btn-modal-save").show(),$("#modal_current #"+r.form_action_inlined_id).unbind("submit"),$("#modal_current .modal-footer .btn-modal-save").unbind("click"),$("#modal_current .modal-dialog").off("keypress"),r.form_validate_function&&"function"==typeof window[r.form_validate_function]?($("#modal_current .modal-footer .btn-modal-save").click(function(e){window[r.form_validate_function]()&&ajax_form_submit(document.getElementById(r.form_action_inlined_id),!1,ajax_form_submit_timeout,ajax_form_submit_callback,ajax_form_submit_veil_remove_timeout,ajax_form_submit_veil_overlay_text_translated,!0)}),$("#modal_current #"+r.form_action_inlined_id).submit(function(){return!!window[r.form_validate_function]()&&ajax_form_submit(this,!1,ajax_form_submit_timeout,ajax_form_submit_callback,ajax_form_submit_veil_remove_timeout,ajax_form_submit_veil_overlay_text_translated,!0)}),$("#modal_current .modal-dialog").on("keypress",function(e){if(13===e.keyCode)return window[r.form_validate_function]()&&ajax_form_submit(document.getElementById(r.form_action_inlined_id),!1,ajax_form_submit_timeout,ajax_form_submit_callback,ajax_form_submit_veil_remove_timeout,ajax_form_submit_veil_overlay_text_translated,!0),!1})):($("#modal_current .modal-footer .btn-modal-save").click(function(e){ajax_form_submit(document.getElementById(r.form_action_inlined_id),!1,ajax_form_submit_timeout,ajax_form_submit_callback,ajax_form_submit_veil_remove_timeout,ajax_form_submit_veil_overlay_text_translated,!0)}),$("#modal_current #"+r.form_action_inlined_id).submit(function(){return ajax_form_submit(this,!1,ajax_form_submit_timeout,ajax_form_submit_callback,ajax_form_submit_veil_remove_timeout,ajax_form_submit_veil_overlay_text_translated,!0)}),$("#modal_current .modal-dialog").on("keypress",function(e){if(13===e.keyCode)return ajax_form_submit(document.getElementById(r.form_action_inlined_id),!1,ajax_form_submit_timeout,ajax_form_submit_callback,ajax_form_submit_veil_remove_timeout,ajax_form_submit_veil_overlay_text_translated,!0),!1}))):r.form_action||r.form_submit_takeover?($("#modal_current .the_modal_form").attr("action",r.form_action||""),$("#modal_current .modal-footer .btn-modal-save").show(),$("#modal_current .the_modal_form").unbind("submit"),r.form_validate_function&&"function"==typeof window[r.form_validate_function]?$("#modal_current .the_modal_form").submit(function(){return!!window[r.form_validate_function]()&&ajax_form_submit(this,!1,ajax_form_submit_timeout,ajax_form_submit_callback,ajax_form_submit_veil_remove_timeout,ajax_form_submit_veil_overlay_text_translated,!0)}):r.form_submit_takeover&&"function"==typeof window[r.form_submit_takeover]?$("#modal_current .the_modal_form").submit(function(){return window[r.form_submit_takeover](r),!1}):r.form_submit_takeover&&"function"==typeof r.form_submit_takeover?$("#modal_current .the_modal_form").submit(function(){return r.form_submit_takeover(this),!1}):$("#modal_current .the_modal_form").submit(function(){return ajax_form_submit(this,!1,ajax_form_submit_timeout,ajax_form_submit_callback,ajax_form_submit_veil_remove_timeout,ajax_form_submit_veil_overlay_text_translated,!0)})):($("#modal_current .the_modal_form .modal-dialog").unwrap(),$("#modal_current .modal-footer .btn-modal-save").hide()),r.save_button_onclick_eval&&($("#modal_current .the_modal_form").unbind("submit"),$("#modal_current .modal-footer .btn-modal-save").show(),$("#modal_current .modal-footer .btn-modal-save")[0].type="button","function"==typeof r.save_button_onclick_eval?($("#modal_current .modal-footer .btn-modal-save")[0].onclick=r.save_button_onclick_eval,$("#modal_current").data("function_to_execute_on_enter",function(){r.save_button_onclick_eval()})):($("#modal_current .modal-footer .btn-modal-save")[0].onclick=function(){eval(r.save_button_onclick_eval)},$("#modal_current").data("function_to_execute_on_enter",function(){eval(r.save_button_onclick_eval)}))),r.hide_header?$("#modal_current .modal-header").hide():(r.title||(r.title=""),$("#modal_current .modal-title").html()&&!r.title||$("#modal_current .modal-title").html(r.title)),r.hide_footer&&$("#modal_current .modal-footer").hide(),!1);if(r.html_tabs){for(var contents_html="",tabs_html="",tab_for_pushstate=0,tab=0;tab<r.html_tabs.length;tab++){var data=r.html_tabs[tab],tab_key=tab;data.key&&(tab_key=data.key),tabs_html+='<div class="tab_button'+(0===tab?" active":"")+(1===r.html_tabs.length?" hide":"")+'" data-tab="'+tab_key+'">'+data.text+"</div>",contents_html+='<div class="tab_contents" '+(0<tab?'style="display: none;"':"")+' data-tab="'+tab_key+'">'+data.html+"</div>"}1<r.html_tabs.length&&(tabs_html='<div class="modal-tabs">'+tabs_html+"</div>"),$("#modal_current .modal-body").html(tabs_html+contents_html),$("#modal_current .tab_button[data-tab]").on("click",function(){tab_switch(this)})}else $("#modal_current .modal-body").html(r.html);if("function"==typeof bootstrap_toggle_activate_properly&&bootstrap_toggle_activate_properly(),1===r.result?$("#modal_current .modal-footer .btn-modal-save").attr("disabled",!1):$("#modal_current .modal-footer .btn-modal-save").attr("disabled",!0),1===r.close_button_focus&&setTimeout(function(){$("#modal_current .modal-footer .btn-modal-close").focus()},200),void 0===do_not_push_state||!do_not_push_state){var pushstate_object={type:"modal",modal_history_count:modal_history_count,tab:tab_for_pushstate};if(void 0!==pushstate_navigate_to_this_callback?pushstate_object.navigate_to_this_callback_eval=pushstate_navigate_to_this_callback:void 0!==r.modal_pushstate_navigate_to_this_callback_eval&&(pushstate_object.navigate_to_this_callback_eval=r.modal_pushstate_navigate_to_this_callback_eval),void 0!==r.modal_unique_identifier&&(pushstate_object.unique_identifier=r.modal_unique_identifier),void 0!==r.modal_add_to_pushstate)for(var i in r.modal_add_to_pushstate)void 0!==pushstate_object[i]?(alert("You cannot overwrite an already set pushstate value!"),console.log("You cannot overwrite an already set pushstate value!")):pushstate_object[i]=r.modal_add_to_pushstate[i];let perform_action=!0,pushstate_path,replace_state=(r.path_change?pushstate_path=r.path_change:r.path_append?(pushstate_path=rtrim(window.location.pathname,"/")+"/m:"+r.path_append,-1<window.location.pathname.indexOf("/m:"+r.path_append)&&(perform_action=!1)):pushstate_path=window.location.pathname,!1);(void 0!==r.modal_replace_state&&r.modal_replace_state||void 0!==_g_popstate_event&&void 0!==_g_popstate_event.state&&void 0!==_g_popstate_event.state.unique_identifier&&void 0!==pushstate_object.unique_identifier&&_g_popstate_event.state.unique_identifier===pushstate_object.unique_identifier)&&(replace_state=!0),perform_action&&(replace_state?window.history.replaceState(pushstate_object,pushstate_path,pushstate_path):window.history.pushState(pushstate_object,pushstate_path,pushstate_path))}void 0!==r.modal_unique_identifier&&($("#modal_current")[0].unique_identifier=r.modal_unique_identifier,$("#modal_current").addClass(r.modal_unique_identifier)),$("#modal_current").off("hide.bs.modal"),""!==r.before_content_remove_do&&($("#modal_current")[0].before_content_remove_do=r.before_content_remove_do);var _modal_shown_event=document.createEvent("Event");_modal_shown_event.initEvent("_modal_shown_event",!0,!0),window.dispatchEvent(_modal_shown_event),shown_callback&&(r.add_response_data_to_shown_callback?$("#modal_current").on("shown.bs.modal",function(){shown_callback(r)}):$("#modal_current").on("shown.bs.modal",function(){shown_callback()})),r.modal_shown_callback&&$("#modal_current").on("shown.bs.modal",function(){"function"==typeof r.modal_shown_callback?r.modal_shown_callback():eval(r.modal_shown_callback)}),r.footer_custom_container_content&&$("#modal_current .footer_custom_container").html(r.footer_custom_container_content).css("display","inline-block"),r.js_function_with_data_last&&("function"==typeof window[r.js_function_with_data_last]?window[r.js_function_with_data_last](r):"function"==typeof r.js_function_with_data_last&&r.js_function_with_data_last(r)),""!==r.js_handler_eval_last&&eval(r.js_handler_eval_last),"function"==typeof user_statistics_log&&void 0===r.skip_log_to_user_statistics&&user_statistics_log(),$("#modal_current").on("shown.bs.modal",after_load_setup),r.focus_first_input&&$("#modal_current").on("shown.bs.modal",function(){$("#modal_current").find("textarea:visible,input:visible")[0].focus()}),void 0!==$("#modal_current")[0].modal_shown&&!0===$("#modal_current")[0].modal_shown&&$("#modal_current").trigger("shown.bs.modal"),$("#modal_current").find('[data-bs-dismiss="modal"]').off().on("click",function(e){e.stopPropagation(),modal_on_escape_or_backdrop_or_close()}),window.addEventListener("resize",modal_onresize),void 0!==r.modal_on_escape_or_backdrop_or_close_eval_function&&($("#modal_current")[0].on_escape_or_backdrop_or_close=r.modal_on_escape_or_backdrop_or_close_eval_function)}}function modal_on_escape_or_backdrop_or_close(){$("#modal_current").hasClass("fade")&&$("body").addClass("modal-transitioning"),void 0===$("#modal_current")[0].on_escape_or_backdrop_or_close?(window._g_popstate_close_top_modal=!0,history.back()):"function"==typeof $("#modal_current")[0].on_escape_or_backdrop_or_close?$("#modal_current")[0].on_escape_or_backdrop_or_close():eval($("#modal_current")[0].on_escape_or_backdrop_or_close),after_load_setup()}function modal_on_enter(e){if(modal_active&&void 0!==$("#modal_current").data("function_to_execute_on_enter"))return $("#modal_current").data("function_to_execute_on_enter")(),e.preventDefault(),e.stopPropagation(),!1}function modal_onresize(){var e,t;if(modal_active&&($("#modal_current").length&&$("#modal_current")[0].modal_width&&((e=$("#modal_current").find(".modal-dialog")).css("margin-left","").css("margin-right",""),-1<(t=$("#modal_current")[0].modal_width).indexOf("px")&&window.innerWidth<parseInt(t)?e.css("max-width",window.innerWidth+"px").css("margin-left","0").css("margin-right","0"):e.css("max-width",t)),0<modal_history_count))for(var i=1;i<=modal_history_count;i++){var n=$("#modal_history_"+i).find(".modal-dialog"),o=(n.css("margin-left","").css("margin-right",""),void 0===$("#modal_history_"+i)[0].modal_width?"":$("#modal_history_"+i)[0].modal_width);-1<o.indexOf("px")&&window.innerWidth<parseInt(o)?n.css("max-width",window.innerWidth+"px").css("margin-left","0").css("margin-right","0"):n.css("max-width",o)}}function modal_simple(e,t,i,n,o,a,s,r,l){e=!1===e?$("#modal_current .modal-title").html():e,i=!(void 0===i||""===i||!modal_active)&&i,(n=n||{}).result=1,n.title=e,n.html=t,modal(e,void 0,void 0,void 0,void 0,n,i,o,a,s,r,l)}var modal_close_top_global_callback=null;function modal_close_top(t){$("#modal_current").off("hide.bs.modal"),window._g_popstate_navigation_blocked=!0,0<modal_history_count?($("#modal_current").modal("hide"),$("#modal_current").on("hidden.bs.modal",function(){var e;modal_this_is_called_just_after_the_modal_has_been_hidden(),$("#modal_current").remove(),document.getElementById("modal_history_"+modal_history_count).id="modal_current",$(document.body).addClass("modal-open"),modal_history_count--,"function"==typeof t?t():"function"==typeof modal_close_top_global_callback&&(e=modal_close_top_global_callback,modal_close_top_global_callback=null,e())}),$("#modal_current").hasClass("fade")||$("#modal_current").trigger("hidden.bs.modal")):($("#modal_current").on("hidden.bs.modal",modal_this_is_called_just_after_the_modal_has_been_hidden),"function"==typeof t?$("#modal_current").on("hidden.bs.modal",t):"function"==typeof modal_close_top_global_callback&&$("#modal_current").on("hidden.bs.modal",function(){var e=modal_close_top_global_callback;modal_close_top_global_callback=null,e()}),$("#modal_current").on("hidden.bs.modal",function(){modal_active||$("#modal_current .modal-body").html("")}),modal_active=!1,$("#modal_current").modal("hide"),modal_current_page_dirty_do())}function modal_close_top_real(e){window._g_popstate_navigation_blocked?setTimeout(function(){"function"==typeof e&&(modal_close_top_global_callback=e),history.back()},500):("function"==typeof e&&(modal_close_top_global_callback=e),history.back())}var _g_modal_last_closed_event=document.createEvent("Event");function modal_this_is_called_just_after_the_modal_has_been_hidden(){void 0!==$("#modal_current")[0].before_content_remove_do&&("function"==typeof $("#modal_current")[0].before_content_remove_do?$("#modal_current")[0].before_content_remove_do():eval($("#modal_current")[0].before_content_remove_do)),window._g_popstate_navigation_blocked=!1,$("body").removeClass("modal-transitioning"),modal_active||window.dispatchEvent(_g_modal_last_closed_event)}_g_modal_last_closed_event.initEvent("_modal_last_closed",!0,!0);var modal_current_page_dirty_location=!1,modal_current_page_dirty_location_callback=!1;function modal_current_page_dirty_set(e){modal_current_page_dirty_location=window.location,e&&(modal_current_page_dirty_location_callback=e)}function modal_current_page_dirty_set_callback(e){modal_current_page_dirty_location_callback=e}function modal_current_page_dirty_do(){modal_current_page_dirty_location===window.location&&("function"==typeof modal_current_page_dirty_location_callback?modal_current_page_dirty_location_callback():content_reload(!0)),modal_current_page_dirty_location_callback=modal_current_page_dirty_location=!1}function modal_close_all(e){if(modal_active){if("function"==typeof e&&(modal_close_top_global_callback=function(){e()}),0<modal_history_count){for(var t=1;t<=modal_history_count;t++)$("#modal_history_"+t).remove();modal_history_count=0}window._g_popstate_close_all_modals=!0,modal_is_transitioning()?$("#modal_current").on("shown.bs.modal",function(){history.back()}):history.back()}}function modal_hide_all(e){modal_close_all(e)}function modal_close_until(e,t){if(modal_active){if($("#modal_current").prev(".modal-backdrop").remove(),$("#modal_current").remove(),0<modal_history_count)for(var i=modal_history_count;0<i;i--){var n=$("#modal_history_"+i)[0];if(void 0!==n.unique_identifier&&n.unique_identifier===e){n.id="modal_current",modal_history_count=i-1;break}$("#modal_history_"+i).prev(".modal-backdrop").remove(),$("#modal_history_"+i).remove()}_g_popstate_close_modals_until_callback=t,_g_popstate_close_modals_until=e,history.back()}else"function"==typeof t&&t()}function alert_nice(e,t,i,n,o,a){n=n||_t("OK"),o=o||"btn-primary",a=a||!1,$('[data-bs-toggle="tooltip"]').tooltip("hide"),modal_simple(e,t,!1,{close_button:n,js_function_with_data_last:function(){$("#modal_current .btn-modal-close")[0].className="btn btn-modal-close "+o},modal_shown_callback:function(){$("#modal_current .btn-modal-close").focus()},before_content_remove_do:i,modal_type:"alert"},void 0,void 0,void 0,void 0,a),void 0!==e&&""!==e&&!1!==e||$("#modal_current .modal-header").hide()}var confirm_nice_ok_callback=null,confirm_nice_ok_before_modal_close_callback=null;function confirm_nice(e,t,i,n,o,a,s,r,l,d,c,u){a=a||"btn-danger",s=s||_t("OK"),r=r||_t("Annullér"),l=l||"btn-secondary",d=d||function(){$("#modal_current .confirm-ok-button").focus()},c=c||!1,u=void 0!==u&&u,$('[data-bs-toggle="tooltip"]').tooltip("hide"),confirm_nice_ok_callback=i||null,confirm_nice_ok_before_modal_close_callback=o||null,modal_simple(e,t,!1,{close_button:r,close_button_class:l,footer_custom_container_content:'<button type="button" class="btn '+a+' confirm-ok-button">'+s+"</button>",js_handler_eval_last:"confirm_nice_setup();",modal_shown_callback:d,before_content_remove_do:n,modal_type:"confirm",path_change:u},void 0,void 0,void 0,void 0,c),void 0!==e&&""!==e&&!1!==e||$("#modal_current .modal-header").hide()}function confirm_nice_setup(){$("#modal_current .modal-footer").css("justify-content","space-between"),$("#modal_current .confirm-ok-button").on("click",function(){delete $("#modal_current")[0].before_content_remove_do,"function"==typeof confirm_nice_ok_before_modal_close_callback&&(confirm_nice_ok_before_modal_close_callback(),confirm_nice_ok_before_modal_close_callback=null),"function"==typeof confirm_nice_ok_callback&&(modal_close_top_global_callback=confirm_nice_ok_callback,confirm_nice_ok_callback=null),modal_on_escape_or_backdrop_or_close()})}var prompt_nice_ok_callback=null,prompt_nice_ok_before_modal_close_callback=null,anchor_remember;function prompt_nice(e,t,i,n,o,a,s,r,l){r=r||"btn-success",l=l||_t("OK"),$('[data-bs-toggle="tooltip"]').tooltip("hide"),prompt_nice_ok_callback=o||null,prompt_nice_ok_before_modal_close_callback=s||null;var d="";if("object"==typeof n){if("custom"===n.type)var c=n.html,d=n.modal_shown_callback;else if("select"===n.type){for(var u="",_=0;_<n.options.length;_++)u+='<option value="'+(h=n.options[_]).value+'"'+(i===h.value?' selected="selected"':"")+">"+h.name+"</option>";var c='<div><select class="form-select form-control" id="prompt_overlay_input">'+u+"</select></div>"}else if("selectpicker"===n.type){for(var h,u="",_=0;_<n.options.length;_++)u+='<option value="'+(h=n.options[_]).value+'"'+(i===h.value?' selected="selected"':"")+">"+h.name+"</option>";var c='<div><select class="selectpicker form-control" id="prompt_overlay_input" data-container="body">'+u+"</select></div>";d=function(){$(".selectpicker").selectpicker()}}}else d=(c="textarea"===n?'<div><textarea class="form-control" id="prompt_overlay_input">'+i+"</textarea></div>":'<div><input class="form-control" type="'+n+'" id="prompt_overlay_input" value="'+i+'"></div>',"$('#modal_current #prompt_overlay_input').focus(); $('#modal_current #prompt_overlay_input').select();");modal_simple(e,"<div>"+t+"</div>"+c,!1,{close_button:_t("Annullér"),footer_custom_container_content:'<button type="button" class="btn '+r+' prompt-ok-button">'+l+"</button>",js_handler_eval_last:"prompt_nice_setup();",modal_shown_callback:d,before_content_remove_do:a,modal_type:"prompt"},void 0,void 0,void 0,!0)}function prompt_nice_setup(){$("#modal_current .modal-footer").css("justify-content","space-between"),$("#modal_current").find("input,select").on("keypress",function(e){catch_enter(this,e,function(){$("#modal_current .prompt-ok-button").trigger("click")})}),$("#modal_current .prompt-ok-button").on("click",function(){delete $("#modal_current")[0].before_content_remove_do;var e=null;document.getElementById("prompt_overlay_input")&&(e=document.getElementById("prompt_overlay_input").value),"function"==typeof prompt_nice_ok_before_modal_close_callback&&(prompt_nice_ok_before_modal_close_callback(e),document.getElementById("prompt_overlay_input"))&&(e=document.getElementById("prompt_overlay_input").value),"function"==typeof prompt_nice_ok_callback&&(modal_close_top_global_callback=function(){prompt_nice_ok_callback(e)}),modal_on_escape_or_backdrop_or_close()})}function modal_is_transitioning(){return!(!modal_active||!$("body.modal-transitioning").length)}function url_go(e,t,i,n,o,a=null){let s=anchor_remember;var r=new RegExp("http[s]?://"+window.location.hostname+"[/]?","gi");let l=s=s.replace(r,"");content_load(l=(l=rtrim(l=ltrim(l,"/"),"/")).replace("#",""),n,i,o,a),e&&(e.returnValue=!1,e.preventDefault)&&e.preventDefault()}function add_link_listeners(){if(void 0!==window.history.pushState){var t=document.getElementsByTagName("a");for(let e=0;e<t.length;e++){var i=t[e];if(!i.addEventListener||!i.checked_by_add_link_listeners){i.checked_by_add_link_listeners=!0;var n=i.hasAttribute("href")?i.getAttribute("href"):"";if(-1<n.indexOf("#")){var o=parse_url(n);if((o.host??window.location.host)===window.location.host){const a=o.fragment;i.addEventListener("click",function(e){var t=document.getElementById(a);if(t)return scroll_to_element(t,!0),t={type:"hashtag",hashtag:a},window.history.pushState(t,"#"+a,"#"+a),e.preventDefault(),!1},!1)}}else"_blank"===i.target||0===n.indexOf("/files/")||i.classList.contains("no_href_listener")||0!==n.indexOf("/admin/")&&(o=new RegExp("http[s]?://"+window.location.hostname+"[/]?","gi"),i.href.match(o))&&i.addEventListener("click",add_link_listeners_click,!1)}}}}function add_link_listeners_click(o){if(!o.ctrlKey&&!o.shiftKey){if("string"==typeof this.getAttribute("data-type")&&"modal"===this.getAttribute("data-type")){var e=this.hasAttribute("data-modal-title")?this.getAttribute("data-modal-title"):_t("Henter..."),t=this.getAttribute("href").replace("/","").split("/");try{modal(e,t[0],t[1],void 0===t[2]?"":t[2])}catch(e){alert("Link with data-type = modal not setup properly"),console.log(this)}}else{let e=!1,t=("string"==typeof this.getAttribute("data-preserve-scroll")&&"1"===this.getAttribute("data-preserve-scroll")&&(e=!0),"function"==typeof this.link_listener_callback_before_url_go&&this.link_listener_callback_before_url_go(),void 0),i=("function"==typeof this.link_listener_content_load_callback&&(t=this.link_listener_content_load_callback),void 0),n=("function"==typeof this.link_listener_callback_after_final_scrolling&&(i=this.link_listener_callback_after_final_scrolling),void 0);"function"==typeof this.link_listener_scroll_handler&&(n=this.link_listener_scroll_handler),anchor_remember=this.href,void 0!==modal_active&&modal_active?(modal_close_top_global_callback=function(){url_go(o,this,t,e,i,n)},modal_hide_all()):url_go(o,this,t,e,i,n)}o.preventDefault(),o.returnValue=!1,this.classList.contains("allow-propagation")||o.stopPropagation()}}document.addEventListener("DOMContentLoaded",function(){var e;_g_state_current=null==(_g_state_current=getsessionstorage("_g_state_current"))?0:parseInt(_g_state_current),_g_state_counter=null==(_g_state_counter=getsessionstorage("_g_state_counter"))?0:parseInt(_g_state_counter),history.replaceState&&(e=window.location.pathname+window.location.search+window.location.hash,history.replaceState(e,e,e)),add_link_listeners()}),!function(e){history.back=function(){return _g_unresolved_history_backs++,e.apply(this,arguments)}}(history.back);var _g_state_counter=0,_g_state_current=0,window_onpopstate_do_nothing=(window._g_pagehistory_current_url=!1,!function(t){history.pushState=function(){let e;return"object"==typeof arguments[0]&&null!==arguments[0]||(e=null===arguments[0]&&"string"==typeof arguments[2]?arguments[2]:arguments[0],arguments[0]={},arguments[0].url=e),_g_state_current=++_g_state_counter,arguments[0].state_counter=_g_state_counter,setsessionstorage("_g_state_current",_g_state_current),setsessionstorage("_g_state_counter",_g_state_counter),window._g_pagehistory_current_url=e,t.apply(this,arguments)}}(history.pushState),!function(t){history.replaceState=function(){let e;return"object"==typeof arguments[0]&&null!==arguments[0]||(e=null===arguments[0]&&"string"==typeof arguments[2]?arguments[2]:arguments[0],arguments[0]={},arguments[0].url=e),arguments[0].state_counter=_g_state_counter,window._g_pagehistory_current_url=e,t.apply(this,arguments)}}(history.replaceState),window._g_scroll_per_url_history={},!1),window_onpopstate_do_nothing_callback=!1,_g_unresolved_history_backs=0,_g_unresolved_history_backs_callback=!1,_g_popstate_close_top_modal=!1,_g_popstate_close_all_modals=!1,_g_popstate_close_modals_until=!1,_g_popstate_close_modals_until_callback=null,_g_popstate_event=!1,_g_popstate_navigation_blocked=!1,_g_pagehistory_back_event=document.createEvent("Event");function content_reload(e,t,i){"undefined"!=typeof _g_site_mode&&"dev"===_g_site_mode&&console.debug("content_reload()");var n=document.location.toString(),o=new RegExp("http[s]?://"+window.location.hostname+"[/]?","gi");content_load(n=-1<(n=n.replace(o,"")).indexOf("#")?n.substr(0,n.indexOf("#")):n,e,t,void 0,i)}function content_load(e,t,i,n,o=null){e="/"+(e=ltrim(e,"/")),"undefined"!=typeof _g_site_mode&&"dev"===_g_site_mode&&console.debug("content_load() - public",e),window._g_scroll_per_url_history[decodeURI(window.location.pathname+window.location.search)]=window.scrollY,$('link[rel="canonical"]').remove(),window.dispatchEvent(new CustomEvent("_content_load",{detail:{page:e}})),browserloading_start(),ajax_get(e,function(e){pageload(e,t,i,n,o)},content_load_error)}function content_load_error(){setTimeout(function(){"function"==typeof browserloading_stop&&browserloading_stop(),0===$(".modal.connection-error:visible").length&&modal_simple(_t("Forbindelses fejl"),_t("Der opstod en forbindelsesfejl<br>Prøv igen om et par sekunder<br>Hvis problemet fortsætter, så tag kontakt til support",!1),void 0,{modal_type:"connection-error"})},2500)}_g_pagehistory_back_event.initEvent("_pagehistory_back",!0,!0),window.addEventListener("popstate",function(event){let previous_url=decodeURI(window._g_pagehistory_current_url);if(window._g_pagehistory_current_url=window.location.pathname,null!=event.state&&void 0!==event.state.state_counter){var direction=_g_state_current<event.state.state_counter?"forward":"back",the_callback;if(_g_popstate_navigation_blocked)_g_state_current!==event.state.state_counter&&("back"===direction?history.forward():history.back());else if(_g_popstate_event=event,"back"===direction?_g_state_counter--:_g_state_counter++,setsessionstorage("_g_state_counter",_g_state_counter),_g_state_current=event.state.state_counter,setsessionstorage("_g_state_current",_g_state_current),0<_g_unresolved_history_backs&&(_g_unresolved_history_backs--,0===_g_unresolved_history_backs)&&"function"==typeof _g_unresolved_history_backs_callback&&(_g_unresolved_history_backs_callback(),_g_unresolved_history_backs_callback=!1),!0===window_onpopstate_do_nothing)window_onpopstate_do_nothing=!1,"function"==typeof window_onpopstate_do_nothing_callback&&(the_callback=window_onpopstate_do_nothing_callback,window_onpopstate_do_nothing_callback=!1,the_callback());else{if("forward"===direction){if("#contact-form-completed"===window.location.hash)return window_onpopstate_do_nothing=!0,void history.back();if("function"==typeof pagehistory_url_checking&&"stop"===pagehistory_url_checking(!0))return}else window.dispatchEvent(_g_pagehistory_back_event);if(void 0!==window._g_public_search_active&&window._g_public_search_active)content_search_close(event);else{if("object"==typeof event.state){if(void 0!==event.state.type&&"lightgallery_fs"===event.state.type)return window_onpopstate_do_nothing=!0,void history.back();if(void 0!==event.state.type&&"search"===event.state.type)return void content_search();if(modal_active){if(void 0!==event.state.type&&"modal"===event.state.type)if(_g_popstate_close_modals_until){if(void 0===event.state.unique_identifier||event.state.unique_identifier!==_g_popstate_close_modals_until)return void history.back()}else{if(_g_popstate_close_all_modals)return 0!==event.state.modal_history_count||!1!==event.state.tab&&0!==event.state.tab||($("#modal_current").off("hide.bs.modal"),$("#modal_current").on("hidden.bs.modal",function(){var e;modal_this_is_called_just_after_the_modal_has_been_hidden(),$(".modal-backdrop").remove(),$(document.body).removeClass("modal-open"),"function"==typeof modal_close_top_global_callback&&(e=modal_close_top_global_callback,modal_close_top_global_callback=null,e()),_g_popstate_close_all_modals=!1}),$("#modal_current").modal("hide"),modal_active=!1),void history.back();if(event.state.modal_history_count===modal_history_count){if(void 0!==event.state.navigate_to_this_callback_eval)return void eval(event.state.navigate_to_this_callback_eval);if(_g_popstate_close_top_modal)return void history.back();if(!1!==event.state.tab){var tab_name=event.state.tab,tab_element=$("#modal_current").find("[data-tab='"+tab_name+"']");if(0===tab_element.length&&0===tab_name&&(tab_element=$("#modal_current").find("[data-tab]").first()),tab_element.length)return tab_element=tab_element[0],void tab_switch(tab_element,!1)}}else if(event.state.modal_history_count>modal_history_count)return window_onpopstate_do_nothing=!0,void history.back()}}else if(void 0!==event.state.type&&"modal"===event.state.type)return window_onpopstate_do_nothing=!0,void history.back();if(void 0!==event.state.type&&"hashtag"===event.state.type){const elem=document.getElementById(event.state.hashtag);return void(elem?scroll_to_element(elem,!0):window.location.reload())}}if(_g_popstate_close_top_modal=!1,_g_popstate_close_modals_until)_g_popstate_close_modals_until=!1,"function"==typeof _g_popstate_close_modals_until_callback&&(_g_popstate_close_modals_until_callback(),_g_popstate_close_modals_until_callback=null);else if(_g_popstate_close_all_modals)(modal_active?modal_close_top:modal_current_page_dirty_do)(),_g_popstate_close_all_modals=!1;else if(modal_active)modal_close_top();else if(void 0!==lightgallery_active&&lightgallery_active)lightgallery_active=!1,$(".lg-close").click();else if(null!=event.state.url){let url_clean=decodeURI(event.state.url),re=(url_clean=url_clean.split("#"),url_clean=url_clean[0],new RegExp(/^\//gi)),scroll_handler=(url_clean=url_clean.replace(re,""),re=new RegExp(/\/$/gi),url_clean=url_clean.replace(re,""),globals.history_load=!0,null);if("object"==typeof window._g_scroll_per_url_history&&void 0!==window._g_scroll_per_url_history["/"+url_clean]){let scroll_y_prev=window._g_scroll_per_url_history["/"+url_clean];scroll_handler=function(){lazy_load_elements_children(document.body);function e(){document.body.scrollHeight!==n&&(window.scrollTo({top:scroll_y_prev,behavior:"instant"}),i=!0,n=document.body.scrollHeight)}function t(){i?i=!1:(o.disconnect(),clearTimeout(a),window.removeEventListener("_content_load",t),window.removeEventListener("scroll",t))}let i=!1,n=0,o=(e(),new MutationObserver(function(){e()})),a=(o.observe(document.body,{attributes:!0,subtree:!0,childList:!0}),setTimeout(t,2e3));window.addEventListener("_content_load",function(){i=!1,t()},{once:!0}),window.addEventListener("scroll",t)},window.globals.back_or_forward_button_just_used=direction,setTimeout(function(){window.globals.back_or_forward_button_just_used=!1})}window._g_scroll_per_url_history[previous_url]=window.scrollY,content_load(url_clean,void 0,void 0,void 0,scroll_handler)}}}}}),"scrollRestoration"in history&&(history.scrollRestoration="manual");var pageload_start_event=document.createEvent("Event"),pageload_end_event=(pageload_start_event.initEvent("_pageload_start",!0,!0),document.createEvent("Event"));function pageload(response_data,preserve_scroll,callback,callback_after_final_scrolling,scroll_handler=null){"undefined"!=typeof _g_site_mode&&"dev"===_g_site_mode&&console.debug("pageload() - public",response_data),void 0===preserve_scroll&&(preserve_scroll=!1),void 0!==response_data.preserve_scroll&&response_data.preserve_scroll&&(preserve_scroll=!0),$('[data-bs-toggle="tooltip"]').tooltip("hide"),$("body").attr("data-page-type",void 0===response_data.PUBLIC_BODY_PAGE_TYPE?"":response_data.PUBLIC_BODY_PAGE_TYPE),$("body").attr("data-page-id",void 0===response_data.PUBLIC_BODY_PAGE_ID?"":response_data.PUBLIC_BODY_PAGE_ID),$("body").attr("data-breadcrumbs",void 0===response_data.PUBLIC_PAGE_HAS_BREADCRUMBS?"0":response_data.PUBLIC_PAGE_HAS_BREADCRUMBS),window.dispatchEvent(pageload_start_event);let scroll_x_before=window.scrollX,scroll_y_before=window.scrollY;var history_load=!1,re,url_test;window.globals.history_load&&(history_load=!0),globals.history_load=!1,browserloading_stop(),void 0!==response_data.errormsg?window.dispatchEvent(pageload_end_event):void 0!==response_data.error_msg?window.dispatchEvent(pageload_end_event):response_data.js_handler&&"content_reload"===response_data.js_handler?(content_reload(!0),window.dispatchEvent(pageload_end_event)):(response_data.title&&(document.title=response_data.title),response_data.open_graph_meta&&response_data.open_graph_meta.image&&$('meta[property="og:image"]').attr("content",response_data.open_graph_meta.image),void 0!==response_data.html&&($("#container-main-content").html(response_data.html),document.getElementById("container-main-content").style.backgroundColor="",void 0!==response_data.js_run_immediately_after_content_insert)&&""!==response_data.js_run_immediately_after_content_insert&&eval(response_data.js_run_immediately_after_content_insert),response_data.path_change?("/"!==response_data.path_change[0]&&(response_data.path_change="/"+response_data.path_change),response_data.path_replace_state?window.history.replaceState(response_data.path_change,response_data.path_change,response_data.path_change):response_data.path_change!==decodeURI_ss(window.location.pathname)&&window.history.pushState(response_data.path_change,response_data.path_change,response_data.path_change)):void 0!==response_data.path&&!1===history_load&&(re=new RegExp("http[s]?://"+window.location.hostname+"[/]?","gi"),url_test=decodeURI_ss(window.location.href.replace(re,"")),url_test!==response_data.path)&&window.history.pushState("/"+response_data.path,"/"+response_data.path,"/"+response_data.path),void 0!==response_data.header_warning&&""!==response_data.header_warning?document.getElementById("header_warning_div")&&(document.getElementById("header_warning_div").style.display="",document.getElementById("header_warning_div").innerHTML=response_data.header_warning):document.getElementById("header_warning_div")&&(document.getElementById("header_warning_div").style.display="none"),void 0!==response_data.js_run&&""!==response_data.js_run&&eval(response_data.js_run),void 0!==response_data.js_run_with_data&&""!==response_data.js_run_with_data&&window[response_data.js_run_with_data](response_data),"function"==typeof callback&&callback(),"function"==typeof user_statistics_log&&user_statistics_log(),after_load_setup(),window.dispatchEvent(pageload_end_event),scroll_handler?scroll_handler(scroll_x_before,scroll_y_before):(window.scrollTo({top:preserve_scroll?scroll_y_before:0,left:preserve_scroll?scroll_x_before:0,behavior:"instant"}),setTimeout(function(){preserve_scroll&&window.scrollTo({top:scroll_y_before,left:scroll_x_before,behavior:"instant"}),"function"==typeof callback_after_final_scrolling&&callback_after_final_scrolling()})))}function browserloading_start(e,t,i,n){t=void 0===t?750:t,i=void 0===i?_t("Henter side..."):i,n=void 0!==n&&n,document.body.style.cursor="progress",browserloading_create_and_get_veil(),clearTimeout(window._g_browserloading_start_timer),window._g_browserloading_start_timer=setTimeout(function(){working_overlay(e,i,n)},t)}function browserloading_create_and_get_veil(){var e=document.getElementById("loading_veil");return e||((e=document.createElement("div")).id="loading_veil",e._create_time=(new Date).getTime(),document.body.appendChild(e)),e}function browserloading_stop(e){e=void 0===e||e,document.body.style.cursor="",clearTimeout(window._g_browserloading_start_timer),working_overlay_remove(e)}function working_overlay(e,t,i){e=void 0===e||e,t=void 0===t?_t("Henter side..."):t,i=void 0!==i&&i,clearTimeout(window._g_browserloading_start_timer);var n=browserloading_create_and_get_veil();n.setAttribute("data-visible-blocking-triggered","1"),n.innerHTML='<div><i class="iconify element-spin" data-icon="fa:circle-o-notch" data-width="3em"></i><div class="text">'+t+"</div></div>",n.offsetHeight,n.style.backgroundColor="rgba(0,0,0,0.3)",e&&"boolean"==typeof _g_debugging_activated&&_g_debugging_activated&&(clearTimeout(window._g_working_overlay_debug_timer),window._g_working_overlay_debug_timer=setTimeout(function(){browserloading_stop()},"number"==typeof e?e:2e4)),i&&setTimeout(function(){$("#loading_veil").off("click").on("click",function(){browserloading_stop()})},250)}function working_overlay_remove(e){e=void 0===e||e,clearTimeout(window._g_browserloading_start_timer),clearTimeout(window._g_working_overlay_debug_timer);var t,i=document.getElementById("loading_veil");i&&(e&&i.hasAttribute("data-visible-blocking-triggered")?(css_transition_end_setup(i,function(){i&&document.body.contains(i)&&i.parentNode.removeChild(i)}),i.style.opacity="0"):i.hasAttribute("data-visible-blocking-triggered")?i.parentNode.removeChild(i):(t=250-((new Date).getTime()-i._create_time),setTimeout(function(){i&&document.body.contains(i)&&i.parentNode.removeChild(i)},t)))}function supports_html5_storage(){try{return"localStorage"in window&&null!==window.localStorage}catch(e){return!1}}function setlocalstorage(e,t){"object"==typeof t&&(t=JSON.stringify(t)),supports_html5_storage()?window.localStorage.setItem(e,t):set_cookie("_ss-ls_"+e,t,365)}function getlocalstorage(e){var t;return supports_html5_storage()?t=window.localStorage.getItem(e):""===(t=get_cookie("_ss-ls_"+e))&&(t=null),t=!t||"{"!==t[0]&&"["!==t[0]?t:JSON.parse(t)}function removelocalstorage(e){supports_html5_storage()?window.localStorage.removeItem(e):set_cookie("_ss-ls_"+e,0,0)}function clearlocalstorage(){if(supports_html5_storage())window.localStorage.clear();else for(var e=decodeURIComponent(document.cookie).split(";"),t=0;t<e.length;t++){for(var i=e[t];" "==i.charAt(0);)i=i.substring(1);0===i.indexOf("_ss-ls_")&&set_cookie(i.substr(0,i.indexOf("=")),0,0)}}function setsessionstorage(e,t){"object"==typeof t&&(t=JSON.stringify(t)),supports_html5_storage()?window.sessionStorage.setItem(e,t):set_cookie("_ss-ss_"+e,t)}function getsessionstorage(e){var t;return supports_html5_storage()?t=window.sessionStorage.getItem(e):""===(t=get_cookie("_ss-ss_"+e))&&(t=null),t=!t||"{"!==t[0]&&"["!==t[0]?t:JSON.parse(t)}function removesessionstorage(e){supports_html5_storage()?window.sessionStorage.removeItem(e):set_cookie("_ss-ss_"+e,0,0)}function clearsessionstorage(){if(supports_html5_storage())window.sessionStorage.clear();else for(var e=decodeURIComponent(document.cookie).split(";"),t=0;t<e.length;t++){for(var i=e[t];" "==i.charAt(0);)i=i.substring(1);0===i.indexOf("_ss-ss_")&&set_cookie(i.substr(0,i.indexOf("=")),0,0)}}function site_events_log(t){window._saas_builtin_facebook_events_skip_this=!1,window._saas_builtin_google_analytics_events_skip_this=!1,window._saas_builtin_klaviyo_events_skip_this=!1,"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("site_events_log",t);var e=new CustomEvent("_saas_site_event",{detail:t});if(window.dispatchEvent(e),"page_view"===t.type&&void 0===window._g_site_events_log_first_page_view_skipped)window._g_site_events_log_first_page_view_skipped=!0,"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Skipping first page_view event");else{if("search"===t.type)window._saas_builtin_facebook_events_skip_this||"undefined"==typeof fbq||fbq("track","Search",{search_string:t.search_string});else if("search_overlay_open"!==t.type)if("view_content"===t.type){if(window._saas_builtin_facebook_events_skip_this||"undefined"==typeof fbq||(t.has_variants?fbq("track","ViewContent",{content_ids:t.id_for_stats,content_type:"product_group"},{eventID:t.event_id}):fbq("track","ViewContent",{value:t.value,currency:t.currency,content_ids:t.id_for_stats,content_type:"product"},{eventID:t.event_id}),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Facebook - ViewContent")),!window._saas_builtin_klaviyo_events_skip_this&&void 0!==window.klaviyo&&!t.has_variants){const a={ProductName:t.title_full,ProductID:t.is_variant?"V:"+t.id:"I:"+t.id,SKU:t.sku,ImageURL:t.image_url,URL:window.location.origin+"/"+t.path,Brand:t.brand,Price:t.value};window.klaviyo.push(["track","Viewed Product",a]),window.klaviyo.push(["trackViewedItem",{Title:a.ProductName,ItemId:a.ProductID,ImageUrl:a.ImageURL,Url:a.path,Metadata:{Brand:a.Brand,Price:a.Price}}]),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Klaviyo - ViewContent")}window._saas_builtin_google_analytics_events_skip_this||"undefined"==typeof gtag||(t.has_variants||gtag("event","view_item",{currency:t.currency,value:t.value,items:[{item_id:t.id_for_stats,item_name:t.title_full,index:0,item_brand:t.brand,price:t.value}]}),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Google gtag - view_item"))}else if("add_to_basket"===t.type){if(!window._saas_builtin_facebook_events_skip_this&&"undefined"!=typeof fbq){let e;t.is_variant?(e=[t.variant_id],t.variant_number&&e.push(t.variant_number)):(e=[t.item_id],t.item_number&&e.push(t.item_number)),t.sku&&e.push(t.sku),t.gtin&&e.push(t.gtin),fbq("track","AddToCart",{value:t.value,currency:t.currency,contents:[{id:t.id_for_stats,quantity:t.quantity}],content_type:"product",content_ids:e},{eventID:t.event_id}),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Facebook - AddToCart")}window._saas_builtin_google_analytics_events_skip_this||"undefined"==typeof gtag||(a={id:t.id_for_stats,name:t.item_title,price:t.price,quantity:t.quantity},t.is_variant&&(a.variant=t.variant_title),gtag("event","add_to_cart",{items:[a]}),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Google gtag - add_to_basket")),window._saas_builtin_klaviyo_events_skip_this||void 0===window.klaviyo||(window.klaviyo.push(["track","Added to Cart",{$value:t.value,AddedItemProductName:t.title_full,AddedItemProductID:t.is_variant?"V:"+t.id:"I:"+t.id,AddedItemSKU:t.sku,AddedItemImageURL:t.image_url,AddedItemURL:window.location.origin+"/"+t.path,AddedItemPrice:t.price_with_vat,AddedItemQuantity:t.quantity,ItemNames:[t.title_full],CheckoutURL:window.location.origin+"/basket",Items:[{ProductID:t.is_variant?"V:"+t.id:"I:"+t.id,SKU:t.sku,ProductName:t.title_full,Quantity:t.quantity,ItemPrice:t.price_with_vat,RowTotal:t.value,ProductURL:window.location.origin+"/"+t.path,ImageURL:t.image_url}]}]),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Klaviyo - add_to_basket"))}else if("remove_from_basket"===t.type)window._saas_builtin_google_analytics_events_skip_this||"undefined"==typeof gtag||(a={id:t.id_for_stats,name:t.item_title,price:t.price,quantity:t.quantity},t.is_variant&&(a.variant=t.variant_title),gtag("event","remove_from_cart",{items:[a]}),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Google gtag - remove_from_basket"));else if("checkout-customer-info"===t.type){if(!window._saas_builtin_facebook_events_skip_this&&"undefined"!=typeof fbq){for(var i=[],n=0,o=0;o<t.basket_data.items.length;o++){var a=t.basket_data.items[o];i.push({id:a.id_for_stats,quantity:a.quantity}),n+=parseInt(a.quantity)}fbq("track","InitiateCheckout",{currency:t.basket_data.currency,value:t.basket_data.sums.price_total_with_vat,value_without_vat:t.basket_data.sums.price_total_without_vat,contents:i,num_items:n},{eventID:"InitiateCheckout-"+t.unique_id}),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Facebook - checkout-customer-info (Checkout start)")}if(window._saas_builtin_google_analytics_events_skip_this||"undefined"==typeof gtag||(l=site_events_basket_items_get_gtag(t.basket_data.items),gtag("event","begin_checkout",{currency:window._g_shop_currency_iso.toUpperCase(),items:l}),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Google gtag - checkout-customer-info (Checkout start)")),!window._saas_builtin_klaviyo_events_skip_this&&void 0!==window.klaviyo){for(var s=[],r=[],o=0;o<t.basket_data.items.length;o++){const a=t.basket_data.items[o];r.push({ProductID:a.is_variant?"V:"+a.variants_id:"I:"+a.items_id,SKU:a.sku,ProductName:a.title_full,Quantity:a.quantity,ItemPrice:a.price_with_vat,RowTotal:a.price_total_with_vat,ProductURL:window.location.origin+"/"+a.path,ImageURL:a.image_url}),s.push(a.title_full)}window.klaviyo.push(["track","Started Checkout",{$event_id:t.basket_data.customers_visitors_id+"_"+Math.round((new Date).getTime()/1e3),$value:t.basket_data.sums.price_total_with_vat,ItemNames:s,CheckoutURL:window.location.origin+"/basket",Items:r}]),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Klaviyo - checkout-customer-info (Checkout start)")}}else if("checkout-customer-info-done"===t.type)window._saas_builtin_google_analytics_events_skip_this||"undefined"==typeof gtag||(gtag("event","set_checkout_option",{checkout_step:1,checkout_option:"Customer info"}),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Google gtag - checkout-customer-info-done")),window._saas_builtin_klaviyo_events_skip_this||void 0===window.klaviyo||(window.klaviyo.push(["identify",{$email:t.payment_email,$first_name:t.payment_name}]),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Klaviyo - checkout-customer-info-done"));else if("checkout-shipping-info"===t.type)window._saas_builtin_google_analytics_events_skip_this||"undefined"==typeof gtag||(l=site_events_basket_items_get_gtag(t.basket_data.items),gtag("event","checkout_progress",{checkout_step:2,currency:window._g_shop_currency_iso.toUpperCase(),items:l}),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Google gtag - checkout-shipping-info"));else if("checkout-shipping-info-done"===t.type)window._saas_builtin_google_analytics_events_skip_this||"undefined"==typeof gtag||(gtag("event","set_checkout_option",{checkout_step:2,checkout_option:t.method}),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Google gtag - checkout-shipping-info-done"));else if("checkout-payment-info"===t.type)window._saas_builtin_google_analytics_events_skip_this||"undefined"==typeof gtag||(l=site_events_basket_items_get_gtag(t.basket_data.items),gtag("event","checkout_progress",{checkout_step:3,currency:window._g_shop_currency_iso.toUpperCase(),items:l}),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Google gtag - checkout-payment-info"));else if("checkout-payment-info-done"===t.type)window._saas_builtin_google_analytics_events_skip_this||"undefined"==typeof gtag||(gtag("event","set_checkout_option",{checkout_step:3,checkout_option:t.method}),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Google gtag - checkout-payment-info-done"));else if("checkout-confirm"===t.type)window._saas_builtin_google_analytics_events_skip_this||"undefined"==typeof gtag||(l=site_events_basket_items_get_gtag(t.basket_data.items),gtag("event","checkout_progress",{checkout_step:4,currency:window._g_shop_currency_iso.toUpperCase(),items:l}),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Google gtag - checkout-confirm"));else if("order_complete"===t.type){if(!window._saas_builtin_facebook_events_skip_this&&"undefined"!=typeof fbq){for(i=[],n=0,o=0;o<t.items.length;o++){a=t.items[o];i.push({id:a.id_for_stats,quantity:a.quantity}),n+=parseInt(a.quantity)}fbq("track","Purchase",{content_type:"product",currency:t.currency,value:t.total_for_items_with_vat,value_without_vat:t.total_for_items_without_vat,contents:i,num_items:n,order_id:t.order_id,subscription_order:t.subscription_order},{eventID:"order_purchase_"+t.order_id}),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Facebook - order_complete")}if(!window._saas_builtin_google_analytics_events_skip_this&&"undefined"!=typeof gtag){gtag("event","set_checkout_option",{checkout_step:4});for(var l=[],o=0;o<t.items.length;o++){a={id:t.items[o].id_for_stats,name:t.items[o].item_title,price:t.items[o].price_for_one_without_vat,quantity:t.items[o].quantity};t.items[o].is_variant&&(a.variant=t.items[o].variant_title),l.push(a)}gtag("event","purchase",{transaction_id:t.order_id,value:t.total_without_vat,currency:t.currency.toUpperCase(),tax:t.total_vat_after_discount,shipping:t.shipping_without_vat,payment:t.payment_without_vat,items:l,coupon:t.discount_code||"",subscription_order:t.subscription_order}),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("Google gtag - order_complete")}}else"lead"===t.type?window._saas_builtin_facebook_events_skip_this||"undefined"==typeof fbq||fbq("track","Lead"):"page_view"===t.type&&(window._saas_builtin_google_analytics_events_skip_this||"undefined"==typeof gtag||gtag("event","page_view",{page_location:window.location.href,page_path:window.location.pathname,page_title:document.title}),window._saas_builtin_facebook_events_skip_this||"undefined"==typeof fbq||fbq("track","PageView"));window._saas_builtin_facebook_events_skip_this=!1,window._saas_builtin_google_analytics_events_skip_this=!1,window._saas_builtin_klaviyo_events_skip_this=!1}}function site_events_basket_items_get_gtag(e){for(var t=[],i=0;i<e.length;i++){var n={id:e[i].id_for_stats,name:e[i].item_title,price:e[i].price_lowest_without_vat,quantity:e[i].quantity};e[i].is_variant&&(n.variant=e[i].variant_title),t.push(n)}return t}function user_statistics_log(){var e="";-1<window.location.pathname.indexOf("/basket/payment_complete")&&(e=window.location.pathname,window.history.replaceState("/basket/payment_complete","/basket/payment_complete","/basket/payment_complete"),Object.defineProperty(document,"referrer",{get:function(){return""},configurable:!0})),"/basket"!==window.location.pathname&&site_events_log({type:"page_view"}),e&&window.history.replaceState(e,e,e)}function customer_dashboard_setup(e){$(".new-card-button").on("click",function(){modal("","customer","subscription_new_card_modal",this.getAttribute("data-subscription-id"))}),$(".delete-subscription-button").on("click",function(){var e=this.getAttribute("data-subscription-id"),t=parseInt(this.getAttribute("data-successful-orders")),i=parseInt(this.getAttribute("data-uncancellable-for-x-deliveries"));0<i&&t<i?alert_nice(_t("Abonnement kan ikke opsiges endnu"),_t("Dette abonnement kan tidligst opsiges efter {1} leveringer/betalinger",i)):confirm_nice(_t("Bekræft opsigelse af abonnement"),_t("Dette vil stoppe dit abonnement med øjeblikkelig virkning. Hvis din seneste levering er under behandling vil den dog stadig blive leveret."),function(){ajax_post("/customer/subscription_functions","&function=unsubscribe&id="+e,function(e){1===e.result&&(content_reload(!0),self_destructing_message(_t("Abonnement opsagt")))})})}),$(".renew-subscription-button").on("click",function(){let e=this.getAttribute("data-subscription-id");confirm_nice(_t("Bekræft forlængelse af abonnement"),_t("Er du sikker på at du ønsker at forlænge dette abonnement?"),function(){ajax_post("/customer/subscription_functions","&function=renew&id="+e,function(e){1===e.result&&(content_reload(!0),self_destructing_message(_t("Abonnement forlænget")))})})}),$(".customer-upload-files-button").on("click",function(){modal("","orders","customer_file_upload_modal",$(this).closest("tr").attr("data-order-id"))}),$(".order-not-paid-badge").on("click",function(){modal("","orders","order_not_paid",$(this).closest("tr").attr("data-order-id"))})}function fit_text_to_container(e){function t(){$(".fit-text-to-container").each(function(){if(this.style.fontSize="",this.hasAttribute("data-fttc-constrain-to-parent-height")){if(this.getBoundingClientRect().height>this.parentNode.getBoundingClientRect().height){var e=10;for(this.style.fontSize="10px";;){if(e++,this.style.fontSize=e+"px",this.getBoundingClientRect().height>this.parentNode.getBoundingClientRect().height){this.style.fontSize=e-1+"px";break}if(75<e){this.style.fontSize="10px";break}}}}else if(!(Math.round(this.getBoundingClientRect().width)>=this.scrollWidth-1))for(var e=10,t=(this.style.fontSize="10px",this.scrollWidth),i=this.scrollWidth,n=$(this).width(),o=this.getAttribute("data-fttc-allow-width-growth");;){if(e++,this.style.fontSize=e+"px",o){if(n===$(this).width()){for(var a=1;10<=e-a&&(this.style.fontSize=e-a+"px",a++,!(this.scrollWidth<i)););break}n=$(this).width(),i=this.scrollWidth}else if(this.scrollWidth>t){this.style.fontSize=e-1+"px";break}if(75<e){this.style.fontSize="10px";break}}})}(e=void 0!==e&&"object"!=typeof e&&e)?t():setTimeout(t,0)}function image_hover_zoom_setup(){"function"==typeof window.matchMedia&&(window.matchMedia("(hover: none)").matches||window.matchMedia("(pointer: coarse)").matches)||($("#image-hover-zoom-container").remove(),$('img[data-image-zoom-on-hover="1"]').each(function(){$(this).data("image_hover_zoom_setup")||($(this).data("image_hover_zoom_setup",1),$(this).on("mouseenter",function(){if(this.hasAttribute("data-image-zoom-on-hover")&&"0"!==this.getAttribute("data-image-zoom-on-hover")){this.setAttribute("data-image-hover-zoom-mouseover","1");const p=this;let r=p.getBoundingClientRect();var{width:t,height:i,naturalWidth:n,naturalHeight:o}=p,n=n/o;let[l,d]=t/i<=n?[t,t/n]:[i*n,i];const f=document.createElement("img"),m=(f.style.position="absolute",f.style.width="1000px",f.src=p.src,document.createElement("div"));m.id="image-hover-zoom-container",document.body.appendChild(m);let c=m.getBoundingClientRect(),u=(m.appendChild(f),f.getBoundingClientRect()),_=u.width/l,h=u.height/d;o=p.src.split("/");let e=Math.floor(4*r.width);e<1e3&&(e=1e3),o[o.length-2]=e+"-0";const a=document.createElement("img"),s=(a.src=o.join("/"),window.location.pathname);$(a).on("load",function(){if(s===window.location.pathname&&document.body.contains(p)&&p.hasAttribute("data-image-hover-zoom-mouseover")){if(a.width<l||a.height<d)return f.src=p.src,!1;f.src=this.src,1e3<a.width&&(f.style.width=""),$(f).on("load",function(){u=f.getBoundingClientRect(),_=u.width/l,h=u.height/d})}}),$(p).on("mousemove",function(e){r=p.getBoundingClientRect();var t=e.originalEvent.clientX,i=e.originalEvent.clientY;let n=t+25,o=i+window.scrollY,a=((n=n+c.width>window.innerWidth&&(n=t-c.width/2,o+=25,n+c.width>window.innerWidth)?t-c.width:n)<0&&(n=25),m.style.visibility="visible",m.style.left=n+"px",m.style.top=o+"px",t-(r.left+(r.width-l)/2)),s=i-(r.top+(r.height-d)/2);a*=_,s*=h,a-=c.width/2,s-=c.height/2,a<=0&&(a=0),s<=0&&(s=0),a+c.width>=u.width&&(a=u.width-c.width),s+c.height>=u.height&&(s=u.height-c.height),f.style.left=Math.floor(-1*a)+"px",f.style.top=Math.floor(-1*s)+"px"}),$(this).on("mouseleave",function(){$("#image-hover-zoom-container").remove(),this.removeAttribute("data-image-hover-zoom-mouseover"),$(this).off("mousemove mouseleave"),$(a).remove()})}}))}))}
/**
* (c) Iconify
*
* For the full copyright and license information, please view the license.txt or license.gpl.txt
* files at https://github.com/iconify/iconify
*
* Licensed under Apache 2.0 or GPL 2.0 at your option.
* If derivative product is not compatible with one of licenses, you can pick one of licenses.
*
* @license Apache 2.0
* @license GPL 2.0
* @version 2.1.0
*/pageload_end_event.initEvent("_pageload_end",!0,!0),window.addEventListener("load",function(){if(user_statistics_log(),void 0===window._g_disable_ajax_routine_calls||!window._g_disable_ajax_routine_calls){let e={},t=(e.http_code=HTTP_RESPONSE_CODE_INITIAL_REQUEST,e.location=window.location.href,e.referrer=document.referrer,function(){ajax_post("/statistics/user_statistics_save","&data="+encodeURIComponent(JSON.stringify(e))),$(window).off("mousemove mousedown touchstart keydown scroll",t)});$(window).one("mousemove mousedown touchstart keydown scroll",t)}}),document.addEventListener("DOMContentLoaded",fit_text_to_container),window.addEventListener("load",fit_text_to_container),window.addEventListener("_pageload_end",fit_text_to_container),window.addEventListener("_resize_x",fit_text_to_container),window.addEventListener("_after_load",image_hover_zoom_setup);var Iconify=function(e){var v=/^[a-z0-9]+(-[a-z0-9]+)*$/,b=Object.freeze({left:0,top:0,width:16,height:16,rotate:0,vFlip:!1,hFlip:!1});function N(e){return Object.assign({},b,e)}function z(c,e,t){void 0===t&&(t=!1);var i=function e(t,i){if(void 0!==c.icons[t])return Object.assign({},c.icons[t]);if(5<i)return null;if(void 0===(null==(n=c.aliases)?void 0:n[t]))return 0===i&&void 0!==(null==(n=c.chars)?void 0:n[t])?e(null==(n=c.chars)?void 0:n[t],i+1):null;var n=null==(n=c.aliases)?void 0:n[t],o=e(n.parent,i+1);if(o){var a,t=o,s=n,r=Object.assign({},t);for(a in b){var l=a;if(void 0!==s[l]){var d=s[l];if(void 0===r[l])r[l]=d;else switch(l){case"rotate":r[l]=(r[l]+d)%4;break;case"hFlip":case"vFlip":r[l]=d!==r[l];break;default:r[l]=d}}}return r}return o}(e,0);if(i)for(var n in b)void 0===i[n]&&void 0!==c[n]&&(i[n]=c[n]);return i&&t?N(i):i}var M=/^[a-f0-9]+(-[a-f0-9]+)*$/;function R(e,t){for(var i in e){var n=i,o=typeof e[n];if("undefined"==o)delete e[n];else switch(i){case"body":case"parent":if("string"!=o)return i;break;case"hFlip":case"vFlip":case"hidden":if("boolean"!=o){if(!t)return i;delete e[n]}break;case"width":case"height":case"left":case"top":case"rotate":case"inlineHeight":case"inlineTop":case"verticalAlign":if("number"!=o){if(!t)return i;delete e[n]}break;default:if("object"==o){if(!t)return i;delete e[n]}}}return null}function P(i,n,e){e=e||{};var o=[];if("object"==typeof i&&"object"==typeof i.icons){var t=e.validate;if(!1!==t)try{var a=i,s="object"==typeof t?t:{fix:!0},r=!(null==s||!s.fix);if("object"!=typeof a||null===a||"object"!=typeof a.icons||!a.icons)throw new Error("Bad icon set");var l=a;if("string"==typeof(null==s?void 0:s.prefix))l.prefix=s.prefix;else if("string"!=typeof l.prefix||!l.prefix.match(v))throw new Error("Invalid prefix");if("string"==typeof(null==s?void 0:s.provider))l.provider=s.provider;else if(void 0!==l.provider){var d=l.provider;if("string"!=typeof d||""!==d&&!d.match(v)){if(!r)throw new Error("Invalid provider");delete l.provider}}var c,u,_,h,p,f=l.icons;if(Object.keys(f).forEach(function(e){if(!e.match(v)){if(r)return void delete f[e];throw new Error('Invalid icon name: "'+e+'"')}var t=f[e];if("object"!=typeof t||null===t||"string"!=typeof t.body){if(r)return void delete f[e];throw new Error('Invalid icon: "'+e+'"')}t="string"==typeof t.parent?"parent":R(t,r);if(null!==t){if(!r)throw new Error('Invalid property "'+t+'" in icon "'+e+'"');delete f[e]}}),!Object.keys(l.icons).length)throw new Error("Icon set is empty");if(void 0!==l.aliases&&("object"!=typeof l.aliases||null===l.aliases)){if(!r)throw new Error("Invalid aliases list");delete l.aliases}if("object"==typeof l.aliases&&(c=function(e,t){if(_.has(e))return!h.has(e);var i=u[e];if(5<t||"object"!=typeof i||null===i||"string"!=typeof i.parent||!e.match(v)){if(r)return delete u[e],h.add(e),!1;throw new Error('Invalid icon alias: "'+e+'"')}var n=i.parent;if(void 0===l.icons[n]&&(void 0===u[n]||!c(n,t+1))){if(r)return delete u[e],h.add(e),!1;throw new Error('Missing parent icon for alias "'+e)}r&&void 0!==i.body&&delete i.body;n=void 0!==i.body?"body":R(i,r);if(null===n)return _.add(e),!0;if(r)return delete u[e],h.add(e),!1;throw new Error('Invalid property "'+n+'" in alias "'+e+'"')},u=l.aliases,_=new Set,h=new Set,Object.keys(u).forEach(function(e){c(e,0)}),r)&&!Object.keys(l.aliases).length&&delete l.aliases,Object.keys(b).forEach(function(e){var t=typeof b[e],i=typeof l[e];if("undefined"!=i&&i!=t)throw new Error('Invalid value type for "'+e+'"')}),void 0!==l.chars&&("object"!=typeof l.chars||null===l.chars)){if(!r)throw new Error("Invalid characters map");delete l.chars}"object"==typeof l.chars&&(p=l.chars,Object.keys(p).forEach(function(e){var t;if(!e.match(M)||"string"!=typeof p[e]){if(r)return void delete p[e];throw new Error('Invalid character "'+e+'"')}var i=p[e];if(void 0===l.icons[i]&&void 0===(null==(t=l.aliases)?void 0:t[i])){if(!r)throw new Error('Character "'+e+'" points to missing icon "'+i+'"');delete p[e]}}),r)&&!Object.keys(l.chars).length&&delete l.chars}catch(e){return o}i.not_found instanceof Array&&i.not_found.forEach(function(e){n(e,null),o.push(e)});Object.keys(i.icons).forEach(function(e){var t=z(i,e,!0);t&&(n(e,t),o.push(e))});var m,g=e.aliases||"all";"none"!==g&&"object"==typeof i.aliases&&(m=i.aliases,Object.keys(m).forEach(function(e){var t;"variations"===g&&function(e){for(var t in b)if(void 0!==e[t])return 1}(m[e])||(t=z(i,e,!0))&&(n(e,t),o.push(e))}))}return o}var y=function(e,t,i,n){void 0===n&&(n="");var o,a,s=e.split(":");if("@"===e.slice(0,1)){if(s.length<2||3<s.length)return null;n=s.shift().slice(1)}return 3<s.length||!s.length?null:1<s.length?(o=s.pop(),a=s.pop(),a={provider:0<s.length?s[0]:n,prefix:a,name:o},t&&!w(a)?null:a):1<(a=(o=s[0]).split("-")).length?(s={provider:n,prefix:a.shift(),name:a.join("-")},t&&!w(s)?null:s):!i||""!==n||(a={provider:n,prefix:"",name:o},t&&!w(a,i))?null:a},w=function(e,t){return!!e&&!(""!==e.provider&&!e.provider.match(v)||!(t&&""===e.prefix||e.prefix.match(v))||!e.name.match(v))},o=Object.create(null);function k(e,t){void 0===o[e]&&(o[e]=Object.create(null));var i=o[e];return void 0===i[t]&&(i[t]={provider:e,prefix:t,icons:Object.create(null),missing:Object.create(null)}),i[t]}function q(i,e){var n=Date.now();return P(e,function(e,t){t?i.icons[e]=t:i.missing[e]=n})}function H(e,t){var i=e.icons[t];return void 0===i?null:i}function U(e,t){var n=[],i="string"==typeof e?[e]:Object.keys(o);return i.forEach(function(i){var e="string"==typeof i&&"string"==typeof t?[t]:void 0===o[i]?[]:Object.keys(o[i]);e.forEach(function(t){var e=k(i,t),e=Object.keys(e.icons).map(function(e){return(""!==i?"@"+i+":":"")+t+":"+e});n=n.concat(e)})}),n}var E=!1;function a(e){var t="string"==typeof e?y(e,!0,E):e;return t?H(k(t.provider,t.prefix),t.name):null}function F(e,t){var i=y(e,!0,E);if(i){var e=k(i.provider,i.prefix),n=i.name;try{if("string"==typeof t.body)return e.icons[n]=Object.freeze(N(t)),!0}catch(e){}}return!1}function W(e,t){var i;return"object"==typeof e&&("string"!=typeof t&&(t="string"==typeof e.provider?e.provider:""),!E||""!==t||"string"==typeof e.prefix&&""!==e.prefix?!("string"!=typeof e.prefix||!w({provider:t,prefix:e.prefix,name:"a"})||!q(k(t,e.prefix),e)):(P(e,function(e,t){t&&F(e,t)&&(i=!0)},{validate:{fix:!(i=!1),prefix:""}}),i))}function V(e){return null!==a(e)}function G(e){var t=a(e);return t?Object.assign({},t):null}var x=Object.freeze({inline:!1,width:null,height:null,hAlign:"center",vAlign:"middle",slice:!1,hFlip:!1,vFlip:!1,rotate:0});function $(e,t){var i,n={};for(i in e){var o=i;if(n[o]=e[o],void 0!==t[o]){var a=t[o];switch(o){case"inline":case"slice":"boolean"==typeof a&&(n[o]=a);break;case"hFlip":case"vFlip":!0===a&&(n[o]=!n[o]);break;case"hAlign":case"vAlign":"string"==typeof a&&""!==a&&(n[o]=a);break;case"width":case"height":("string"==typeof a&&""!==a||"number"==typeof a&&a||null===a)&&(n[o]=a);break;case"rotate":"number"==typeof a&&(n[o]+=a)}}}return n}var X=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Y=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function l(e,t,i){if(1===t)return e;if(i=void 0===i?100:i,"number"==typeof e)return Math.ceil(e*t*i)/i;if("string"!=typeof e)return e;var n=e.split(X);if(null===n||!n.length)return e;for(var o,a=[],s=n.shift(),r=Y.test(s);;){if(!r||(o=parseFloat(s),isNaN(o))?a.push(s):a.push(Math.ceil(o*t*i)/i),void 0===(s=n.shift()))return a.join("");r=!r}}function K(e,t){var i,s={left:e.left,top:e.top,width:e.width,height:e.height},r=e.body,n=([e,t].forEach(function(e){var t,i=[],n=e.hFlip,o=e.vFlip,a=e.rotate;switch(n?o?a+=2:(i.push("translate("+(s.width+s.left)+" "+(0-s.top)+")"),i.push("scale(-1 1)"),s.top=s.left=0):o&&(i.push("translate("+(0-s.left)+" "+(s.height+s.top)+")"),i.push("scale(1 -1)"),s.top=s.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4){case 1:i.unshift("rotate(90 "+(t=s.height/2+s.top)+" "+t+")");break;case 2:i.unshift("rotate(180 "+(s.width/2+s.left)+" "+(s.height/2+s.top)+")");break;case 3:i.unshift("rotate(-90 "+(t=s.width/2+s.left)+" "+t+")")}a%2==1&&(0===s.left&&0===s.top||(t=s.left,s.left=s.top,s.top=t),s.width!==s.height)&&(t=s.width,s.width=s.height,s.height=t),i.length&&(r='<g transform="'+i.join(" ")+'">'+r+"</g>")}),null===t.width&&null===t.height?n=l(i="1em",s.width/s.height):null!==t.width&&null!==t.height?(n=t.width,i=t.height):null!==t.height?n=l(i=t.height,s.width/s.height):i=l(n=t.width,s.height/s.width),{attributes:{width:n="string"==typeof(n="auto"===n?s.width:n)?n:n+"",height:i="string"==typeof(i="auto"===i?s.height:i)?i:i+"",preserveAspectRatio:function(e){var t="";switch(e.hAlign){case"left":t+="xMin";break;case"right":t+="xMax";break;default:t+="xMid"}switch(e.vAlign){case"top":t+="YMin";break;case"bottom":t+="YMax";break;default:t+="YMid"}return t+=e.slice?" slice":" meet"}(t),viewBox:s.left+" "+s.top+" "+s.width+" "+s.height},body:r});return t.inline&&(n.inline=!0),n}function J(e,t){return K(N(e),t?$(x,t):x)}var Q=/\sid="(\S+)"/g,Z="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",ee=0;function te(n,o){void 0===o&&(o=Z);for(var e,t=[];e=Q.exec(n);)t.push(e[1]);return t.length&&t.forEach(function(e){var t="function"==typeof o?o(e):o+ee++,i=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+t+"$3")}),n}var ie="iconify2",u="iconify",ne=u+"-count",oe=u+"-version",ae=36e5,se=168,s={local:!0,session:!0},re=!1,le={local:0,session:0},de={local:[],session:[]},i="undefined"==typeof window?{}:window;function ce(e){var t=e+"Storage";try{if(i&&i[t]&&"number"==typeof i[t].length)return i[t]}catch(e){}return s[e]=!1,null}function ue(e,t,i){try{return e.setItem(ne,i+""),le[t]=i,1}catch(e){}}function _e(e){var t=e.getItem(ne);return t&&parseInt(t)||0}function he(){if(!re){re=!0;var e,c=Math.floor(Date.now()/ae)-se;for(e in s)t(e)}function t(e){var a=ce(e);if(a)try{var t=a.getItem(oe);if(t!==ie){if(t){var i=a;try{for(var n=_e(i),o=0;o<n;o++)i.removeItem(u+o)}catch(e){}}var s=a,r=e;try{s.setItem(oe,ie)}catch(e){}ue(s,r,0)}else{for(var l=_e(a),d=l-1;0<=d;d--)!function(e){var t=u+e,i=a.getItem(t);if("string"!=typeof i)return!1;var n=!0;try{var o=JSON.parse(i);n=!("object"!=typeof o||"number"!=typeof o.cached||o.cached<c||"string"!=typeof o.provider||"object"!=typeof o.data||"string"!=typeof o.data.prefix)&&0<q(k(o.provider,o.data.prefix),o.data).length}catch(e){n=!1}return n||a.removeItem(t),n}(d)&&(d===l-1?l--:de[e].push(d));ue(a,e,l)}}catch(e){}}}var pe={};function fe(e,t){switch(e){case"local":case"session":s[e]=t;break;case"all":for(var i in s)s[i]=t}}var me=Object.create(null);function ge(e,t){me[e]=t}function ve(e){return me[e]||me[""]}function r(e){var t;if("string"==typeof e.resources)t=[e.resources];else if(!((t=e.resources)instanceof Array&&t.length))return null;return{resources:t,path:void 0===e.path?"/":e.path,maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}for(var n=Object.create(null),t=[],d=[];0<t.length;)1===t.length||.5<Math.random()?d.push(t.shift()):d.push(t.pop());function be(e,t){var i=r(t);return null!==i&&(n[e]=i,!0)}function c(e){return n[e]}"string"==typeof CDN_TO_USE_HOSTNAME?n[""]=r({resources:["https://"+CDN_TO_USE_HOSTNAME+"/iconify"].concat(d)}):n[""]=r({resources:["https://cdn-main.ideal.shop/iconify"].concat(d)});var _=function(e,i){var n=e,o=-1!==n.indexOf("?");return Object.keys(i).forEach(function(e){var t;try{t=function(e){switch(typeof e){case"boolean":return e?"true":"false";case"number":case"string":return encodeURIComponent(e);default:throw new Error("Invalid parameter")}}(i[e])}catch(e){return}n+=(o?"&":"?")+encodeURIComponent(e)+"="+t,o=!0}),n},ye=null,we=null,ke=Object.create(null),Ee=Object.create(null);function xe(){var e,t,i;return null===ye&&(i=self,t=".cb",ye=void 0===i[e="Iconify"]?(t="",void 0===i[e="IconifyJSONP"]&&(i[e]=Object.create(null)),i[e]):(void 0===(i=i[e]).cb&&(i.cb=Object.create(null)),i.cb),we=e+t+".{cb}"),ye}var h={prepare:function(i,n,e){var o=[],a=ke[i+":"+n],s=(void 0===a&&(a=function(e,t){var i,n,o=c(e);if(!o)return 0;n=o.maxURL?(i=0,o.resources.forEach(function(e){i=Math.max(i,e.length)}),xe(),n=_(t+".js",{icons:"",callback:we}),o.maxURL-i-o.path.length-n.length):0;var a=e+":"+t;return Ee[a]=o.path,ke[a]=n}(i,n)),{type:"icons",provider:i,prefix:n,icons:[]}),r=0;return e.forEach(function(e,t){r+=e.length+1,a<=r&&0<t&&(o.push(s),s={type:"icons",provider:i,prefix:n,icons:[]},r=e.length),s.icons.push(e)}),o.push(s),o},send:function(e,t,i){if("icons"!==t.type)i.done(void 0,400);else{for(var n=t.provider,o=t.prefix,a=t.icons.join(","),s=n+":"+o,r=o.split("-").shift().slice(0,3),l=xe(),d=function(e){for(var t=0,i=e.length-1;0<=i;i--)t+=e.charCodeAt(i);return t%999}(n+":"+e+":"+o+":"+a);void 0!==l[r+d];)d++;var c=r+d,n=_(o+".js",{icons:a,callback:we.replace("{cb}",c)}),o=Ee[s]+n,a=(l[c]=function(e){delete l[c],i.done(e)},e+o),s=document.createElement("script");s.type="text/javascript",s.async=!0,s.src=a,document.head.appendChild(s)}}},$e=Object.create(null),p=Object.create(null),f=function(){try{if("function"==typeof(e=fetch))return e}catch(e){}try{var e,t=String.fromCharCode(114)+String.fromCharCode(101);if("function"==typeof(e=(0,global[t+"qui"+t])("cross-fetch")))return e}catch(e){}return null}();var Ce={prepare:function(i,n,e){var o=[],a=$e[n],s=(void 0===a&&(a=function(e,t){var i,n,o=c(e);if(!o)return 0;n=o.maxURL?(i=0,o.resources.forEach(function(e){i=Math.max(i,e.length)}),n=_(t+".json",{icons:""}),o.maxURL-i-o.path.length-n.length):0;var a=e+":"+t;return p[e]=o.path,$e[a]=n}(i,n)),{type:"icons",provider:i,prefix:n,icons:[]}),r=0;return e.forEach(function(e,t){r+=e.length+1,a<=r&&0<t&&(o.push(s),s={type:"icons",provider:i,prefix:n,icons:[]},r=e.length),s.icons.push(e)}),o.push(s),o},send:function(e,t,i){if(f){var n=function(e){if("string"!=typeof e)return"/";if(void 0===p[e]){var t=c(e);if(!t)return"/";p[e]=t.path}return p[e]}(t.provider);switch(t.type){case"icons":var o=t.prefix,a=t.icons.join(",");n+=_(o+".json",{icons:a});break;case"custom":o=t.uri;n+="/"===o.slice(0,1)?o.slice(1):o;break;default:return void i.done(void 0,400)}var s=503;f(e+n).then(function(e){if(200===e.status)return s=501,e.json();setTimeout(function(){i.done(void 0,e.status)})}).then(function(e){"object"!=typeof e||null===e?setTimeout(function(){i.done(void 0,s)}):setTimeout(function(){i.done(e)})}).catch(function(){i.done(void 0,s)})}else i.done(void 0,424)}};var C=Object.create(null),Ie=Object.create(null);function Te(e,o){e.forEach(function(e){var t,i,n=e.provider;void 0!==C[n]&&(i=(n=C[n])[t=e.prefix])&&(n[t]=i.filter(function(e){return e.id!==o}))})}var Se=0;var Ae={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Le(r,i,n,e,l){var t=r.resources.length,t=r.random?Math.floor(Math.random()*t):r.index;if(r.random){for(var o=r.resources.slice(0),d=[];1<o.length;){var a=Math.floor(Math.random()*o.length);d.push(o[a]),o=o.slice(0,a).concat(o.slice(a+1))}d=d.concat(o)}else d=r.resources.slice(t).concat(r.resources.slice(0,t));var c=Date.now(),u="pending",_=0,h=void 0,p=null,f=[],m=[];function g(){p&&(clearTimeout(p),p=null)}function s(){"pending"===u&&(u="aborted"),g(),f.forEach(function(e){e.abort&&e.abort(),"pending"===e.status&&(e.status="aborted")}),f=[]}function v(e,t){t&&(m=[]),"function"==typeof e&&m.push(e)}function b(){return{startTime:c,payload:i,status:u,queriesSent:_,queriesPending:f.length,subscribe:v,abort:s}}function y(){u="failed",m.forEach(function(e){e(void 0,h)})}function w(){f=f.filter(function(e){return"pending"===e.status&&(e.status="aborted"),e.abort&&e.abort(),!1})}function k(){if("pending"===u){g();var e=d.shift();if(void 0===e){if(f.length){var t="function"==typeof r.timeout?r.timeout(c):r.timeout;if(t)return void(p=setTimeout(function(){g(),"pending"===u&&(w(),y())},t))}y()}else{var s={getQueryStatus:b,status:"pending",resource:e,done:function(e,t){var i,n=s,o=e,e=t,a=void 0===o;switch(f=f.filter(function(e){return e!==n}),u){case"pending":break;case"failed":if(a||!r.dataAfterTimeout)return;break;default:return}a?(void 0!==e&&(h=e),f.length||(d.length?k:y)()):(g(),w(),l&&!r.random&&-1!==(i=r.resources.indexOf(n.resource))&&i!==r.index&&l(i),u="completed",m.forEach(function(e){e(o)}))}},t=(f.push(s),_++,"function"==typeof r.rotate?r.rotate(_,c):r.rotate);p=setTimeout(k,t),n(e,i,s)}}}return"function"==typeof e&&m.push(e),setTimeout(k),b}function je(e){var o=function(e){if(!("object"==typeof e&&"object"==typeof e.resources&&e.resources instanceof Array&&e.resources.length))throw new Error("Invalid Reduncancy configuration");var t,i=Object.create(null);for(t in Ae)void 0!==e[t]?i[t]=e[t]:i[t]=Ae[t];return i}(e),a=[];function s(){a=a.filter(function(e){return"pending"===e().status})}return{query:function(e,t,i){var n=Le(o,e,t,function(e,t){s(),i&&i(e,t)},function(e){o.index=e});return a.push(n),n},find:function(t){var e=a.find(function(e){return t(e)});return void 0!==e?e:null},setIndex:function(e){o.index=e},getIndex:function(){return o.index},cleanup:s}}function De(){}var Oe=Object.create(null);function Be(e,t,i){if("string"==typeof e){var n=ve(e);if(!n)return i(void 0,424),De;var n=n.send,o=function(e){if(void 0===Oe[e]){var t=c(e);if(!t)return;var i=je(t);Oe[e]={config:t,redundancy:i}}return Oe[e]}(e);o&&(a=o.redundancy)}else{var a,o=r(e);o&&(a=je(o),o=ve(e.resources?e.resources[0]:""))&&(n=o.send)}return a&&n?a.query(t,n,i)().abort:(i(void 0,424),De)}function Ne(){}var I=Object.create(null),ze=Object.create(null),Me=Object.create(null),Re=Object.create(null);function Pe(e,i){void 0===Me[e]&&(Me[e]=Object.create(null));var n=Me[e];n[i]||(n[i]=!0,setTimeout(function(){var a,s,t;n[i]=!1,s=i,void 0===Ie[a=e]&&(Ie[a]=Object.create(null)),(t=Ie[a])[s]||(t[s]=!0,setTimeout(function(){var e,n,o;t[s]=!1,void 0!==C[a]&&void 0!==C[a][s]&&(e=C[a][s].slice(0)).length&&(n=k(a,s),o=!1,e.forEach(function(e){var i=e.icons,t=i.pending.length;i.pending=i.pending.filter(function(e){if(e.prefix!==s)return!0;var t=e.name;if(void 0!==n.icons[t])i.loaded.push({provider:a,prefix:s,name:t});else{if(void 0===n.missing[t])return o=!0;i.missing.push({provider:a,prefix:s,name:t})}return!1}),i.pending.length!==t&&(o||Te([{provider:a,prefix:s}],e.id),e.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),e.abort))}))}))}))}var qe=Object.create(null);function He(r,l,e){void 0===ze[r]&&(ze[r]=Object.create(null));var i=ze[r],n=(void 0===Re[r]&&(Re[r]=Object.create(null)),Re[r]),d=(void 0===I[r]&&(I[r]=Object.create(null)),I[r]);void 0===i[l]?i[l]=e:i[l]=i[l].concat(e).sort(),n[l]||(n[l]=!0,setTimeout(function(){n[l]=!1;var e=i[l],t=(delete i[l],ve(r));t?t.prepare(r,l,e).forEach(function(s){Be(r,s,function(e,t){var i=k(r,l);if("object"!=typeof e){if(404!==t)return;var n=Date.now();s.icons.forEach(function(e){i.missing[e]=n})}else try{var o=q(i,e);if(!o.length)return;var a=d[l];o.forEach(function(e){delete a[e]}),pe.store&&pe.store(r,e)}catch(e){console.error(e)}Pe(r,l)})}):(t=(""===r?"":"@"+r+":")+l,e=Math.floor(Date.now()/6e4),qe[t]<e&&(qe[t]=e,console.error('Unable to retrieve icons for "'+t+'" because API is not configured properly.')))}))}function Ue(e){var t=e.provider,i=e.prefix;return I[t]&&I[t][i]&&void 0!==I[t][i][e.name]}function Fe(e,t){n=E="boolean"==typeof p?p:E,void 0===(i=!0)&&(i=!0),void 0===n&&(n=!1),o=[],e.forEach(function(e){var t="string"==typeof e?y(e,!1,n):e;i&&!w(t,n)||o.push({provider:t.provider,prefix:t.prefix,name:t.name})}),p=o,a={loaded:[],missing:[],pending:[]},s=Object.create(null),p.sort(function(e,t){return e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)}),r={provider:"",prefix:"",name:""},p.forEach(function(e){var t,i,n,o;r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider||(t=(r=e).provider,i=e.prefix,n=e.name,void 0===s[t]&&(s[t]=Object.create(null)),void 0===(o=s[t])[i]&&(o[i]=k(t,i)),(void 0!==(o=o[i]).icons[n]?a.loaded:""===i||void 0!==o.missing[n]?a.missing:a.pending).push({provider:t,prefix:i,name:n}))});var i,n,o,a,s,r,l,d,c,u,_,h,p,f,m,g,v,b=a;return b.pending.length?(d=Object.create(null),c=[],b.pending.forEach(function(e){var t,i=e.provider,n=e.prefix;n===_&&i===u||(u=i,_=n,c.push({provider:i,prefix:n}),void 0===I[i]&&(I[i]=Object.create(null)),void 0===(t=I[i])[n]&&(t[n]=Object.create(null)),void 0===d[i]&&(d[i]=Object.create(null)),void 0===(t=d[i])[n]&&(t[n]=[]))}),h=Date.now(),b.pending.forEach(function(e){var t=e.provider,i=e.prefix,n=e.name,o=I[t][i];void 0===o[n]&&(o[n]=h,d[t][i].push(n))}),c.forEach(function(e){var t=e.provider,i=e.prefix;d[t][i].length&&He(t,i,d[t][i])}),t?(e=t,p=b,g=Se++,v=Te.bind(null,f=c,g),p.pending.length&&(m={id:g,icons:p,callback:e,abort:v},f.forEach(function(e){var t=e.provider,i=e.prefix,t=(void 0===C[t]&&(C[t]=Object.create(null)),C[t]);void 0===t[i]&&(t[i]=[]),t[i].push(m)})),v):Ne):(l=!0,t&&setTimeout(function(){l&&t(b.loaded,b.missing,b.pending,Ne)}),function(){l=!1})}var T="iconifyFinder"+Date.now(),S="iconifyData"+Date.now();function We(e,t,i,n){var o;try{o=document.createElement("span")}catch(e){return n?"":null}var a=K(i,$(x,t)),s=e.element,r=e.finder,l=e.name,d=s?s.getAttribute("class"):"",d=r?r.classFilter(d?d.split(/\s+/):[]):[],d='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="'+("iconify iconify--"+l.prefix+(""===l.provider?"":" iconify--"+l.provider)+(d.length?" "+d.join(" "):""))+'">'+te(a.body)+"</svg>",c=(o.innerHTML=d,o.childNodes[0]),u=c.style,_=a.attributes;if(Object.keys(_).forEach(function(e){c.setAttribute(e,_[e])}),a.inline&&(u.verticalAlign="-0.125em"),s){for(var h=s.attributes,p=0;p<h.length;p++){var f=h.item(p);if(f){var m=f.name;if("class"!==m&&"style"!==m&&void 0===_[m])try{c.setAttribute(m,f.value)}catch(e){}}}for(var g=s.style,v=0;v<g.length;v++){var b=g[v];u[b]=g[b]}}r&&(c[S]={name:l,status:"loaded",customisations:t},c[T]=r);d=n?o.innerHTML:c;return s&&s.parentNode?s.parentNode.replaceChild(c,s):o.removeChild(c),d.hasAttribute("data-whitespace")&&"0"===d.getAttribute("data-whitespace")&&(svg_remove_whitespace(d),d.removeAttribute("data-whitespace")),d.hasAttribute("data-toggle")&&"tooltip"===d.getAttribute("data-toggle")&&setTimeout(tooltips_enable),d}var m=[];function g(e){for(var t=0;t<m.length;t++){var i=m[t];if(("function"==typeof i.node?i.node():i.node)===e)return i}}function Ve(e,t){void 0===t&&(t=!1);var i=g(e);return i?i.temporary&&(i.temporary=t):m.push(i={node:e,temporary:t}),i}var A=null,Ge={childList:!0,subtree:!0,attributes:!0};function Xe(e){var t;!e.observer||(t=e.observer).pendingScan||(t.pendingScan=setTimeout(function(){delete t.pendingScan,A&&A(e)}))}function Ye(e,t){e.observer.instance.observe(t,Ge)}function Ke(e){var t,i=e.observer;i&&i.instance||(t="function"==typeof e.node?e.node():e.node)&&(i||(e.observer=i={paused:0}),i.instance=new MutationObserver((function(e,t){if(e.observer){var i=e.observer;if(!i.pendingScan)for(var n=0;n<t.length;n++){var o=t[n];if(o.addedNodes&&0<o.addedNodes.length||"attributes"===o.type&&void 0!==o.target[T])return void(i.paused||Xe(e))}}}).bind(null,e)),Ye(e,t),i.paused||Xe(e))}function Je(){m.forEach(Ke)}function Qe(e){var t;e.observer&&((t=e.observer).pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance)&&(t.instance.disconnect(),delete t.instance)}function Ze(e){var t=null!==A;A!==e&&(A=e,t)&&m.forEach(Qe),t?Je():(e=Je,"complete"===(t=document).readyState||"loading"!==t.readyState&&!t.documentElement.doScroll?e():(t.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e)))}function et(e){(e?[e]:m).forEach(function(e){var t;e.observer?((t=e.observer).paused++,1<t.paused||!t.instance||t.instance.disconnect()):e.observer={paused:1}})}function tt(e){var t;e?(t=g(e))&&et(t):et()}function it(e){(e?[e]:m).forEach(function(e){var t,i;e.observer?(t=e.observer).paused&&(t.paused--,t.paused||(i="function"==typeof e.node?e.node():e.node)&&(t.instance?Ye(e,i):Ke(e))):Ke(e)})}function nt(e){var t;e?(t=g(e))&&it(t):it()}function ot(e,t){var i=Ve(e,t=void 0===t?!1:t);return Ke(i),i}function at(e){var i,t=g(e);t&&(Qe(t),i=e,m=m.filter(function(e){var t="function"==typeof e.node?e.node():e.node;return i!==t}))}var st=[];function rt(e){return null!==(e="string"==typeof e?y(e):e)&&w(e)?e:null}function lt(t){var r=[],e=(st.forEach(function(n){var e=n.find(t);Array.prototype.forEach.call(e,function(e){var t,i=e;void 0!==i[T]&&i[T]!==n||null!==(t=rt(n.name(i)))&&(i[T]=n,r.push({element:i,finder:n,name:t}))})}),t.querySelectorAll("svg.iconify"));return Array.prototype.forEach.call(e,function(e){var t,i,n,o=e,a=o[T],s=o[S];a&&s&&null!==(t=rt(a.name(o)))&&(i=!1,i=t.prefix!==s.name.prefix||t.name!==s.name.name||(n=a.customisations(o),!function(e,t){var i=Object.keys(e),n=Object.keys(t);if(i.length===n.length){for(var o=0;o<i.length;o++){var a=i[o];if(t[a]!==e[a])return}return 1}}(s.customisations,n))||i)&&r.push({element:o,finder:a,name:t,customisations:n})}),r}var L=!1;function dt(){L||(L=!0,setTimeout(function(){L&&(L=!1,j())}))}function ct(e,t){return null!==e&&null!==t&&e.name===t.name&&e.prefix===t.prefix}function j(e,t){void 0===t&&(t=!1),L=!1;var _=Object.create(null);(e?[e]:m).forEach(function(d){var c,u,e="function"==typeof d.node?d.node():d.node;e&&e.querySelectorAll&&(u=c=!1,lt(e).forEach(function(e){var t=e.element,i=e.name,n=i.provider,o=i.prefix,a=i.name,s=t[S];if(void 0!==s&&ct(s.name,i))switch(s.status){case"missing":return;case"loading":if(Ue({provider:n,prefix:o,name:a}))return void(c=!0)}var r,l=k(n,o);void 0!==l.icons[a]?(!u&&d.observer&&(et(d),u=!0),r=void 0!==e.customisations?e.customisations:e.finder.customisations(t),We(e,r,H(l,a))):l.missing[a]?t[S]=s={name:i,status:"missing",customisations:{}}:(Ue({provider:n,prefix:o,name:a})||(void 0===_[n]&&(_[n]=Object.create(null)),void 0===(r=_[n])[o]&&(r[o]=Object.create(null)),r[o][a]=!0),t[S]=s={name:i,status:"loading",customisations:{}},c=!0)}),d.temporary&&!c?at(e):t&&c?ot(e,!0):u&&d.observer&&it(d))}),Object.keys(_).forEach(function(i){var e=_[i];Object.keys(e).forEach(function(t){Fe(Object.keys(e[t]).map(function(e){return{provider:i,prefix:t,name:e}}),dt)})})}var ut=/[\s,]+/;function D(e,t){return e.hasAttribute(t)}function O(e,t){return e.getAttribute(t)}var _t,ht,pt=["inline","hFlip","vFlip"],ft=["width","height"],mt="iconify-inline",B={find:function(e){return e.querySelectorAll("i.iconify, span.iconify, i.iconify-inline, span.iconify-inline")},name:function(e){return D(e,"data-icon")?O(e,"data-icon"):null},customisations:function(n,e){var t,i,o=e=void 0===e?{inline:!1}:e,a=n.getAttribute("class");return-1!==(a?a.split(/\s+/):[]).indexOf(mt)&&(o.inline=!0),D(n,"data-rotate")&&(a=function(e,t){void 0===t&&(t=0);var i=e.replace(/^-?[0-9.]*/,"");function n(e){for(;e<0;)e+=4;return e%4}if(""===i)return o=parseInt(e),isNaN(o)?0:n(o);if(i!==e){var o,a=0;switch(i){case"%":a=25;break;case"deg":a=90}if(a)return o=parseFloat(e.slice(0,e.length-i.length)),!isNaN(o)&&(o/=a)%1==0?n(o):0}return t}(O(n,"data-rotate")))&&(o.rotate=a),D(n,"data-flip")&&(t=o,O(n,"data-flip").split(ut).forEach(function(e){switch(e.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0}})),D(n,"data-align")&&(i=o,O(n,"data-align").split(ut).forEach(function(e){var t=e.trim();switch(t){case"left":case"center":case"right":i.hAlign=t;break;case"top":case"middle":case"bottom":i.vAlign=t;break;case"slice":case"crop":i.slice=!0;break;case"meet":i.slice=!1}})),pt.forEach(function(e){var t,i;D(n,"data-"+e)&&(t="data-"+e,"boolean"==typeof(i=(i=n.getAttribute(t))===t||"true"===i||""!==i&&"false"!==i&&null))&&(o[e]=i)}),ft.forEach(function(e){var t;D(n,"data-"+e)&&""!==(t=O(n,"data-"+e))&&(o[e]=t)}),o},classFilter:function(e){var t=[];return e.forEach(function(e){"iconify"!==e&&""!==e&&"iconify--"!==e.slice(0,9)&&t.push(e)}),t}};function gt(e,t,i){var n=a(e);return n?We({name:y(e)},$(x,"object"==typeof t?t:{}),n,i):null}function vt(){return"2.1.0"}function bt(e,t){return gt(e,t,!1)}function yt(e,t){return gt(e,t,!0)}function wt(e,t){var i=a(e);return i?K(i,$(x,"object"==typeof t?t:{})):null}function kt(e){var t;e?(t=g(e=e))?j(t):j({node:e,temporary:!0},!0):j()}function Et(e,t){fe(e,!1!==t)}function xt(e){fe(e,!0)}if("undefined"!=typeof document&&"undefined"!=typeof window&&(function(){if(document.documentElement)return Ve(document.documentElement);m.push({node:function(){return document.documentElement}})}(),ht=B,-1===st.indexOf(ht)&&st.push(ht),void 0!==(B=window).IconifyPreload&&(B=B.IconifyPreload,_t="Invalid IconifyPreload syntax.","object"==typeof B)&&null!==B&&(B instanceof Array?B:[B]).forEach(function(e){try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!W(e))&&console.error(_t)}catch(e){console.error(_t)}}),setTimeout(function(){Ze(j),j()})),ge("",f?Ce:h),"undefined"!=typeof document&&"undefined"!=typeof window){pe.store=function(o,a){function e(e){if(s[e]){var t=ce(e);if(t){var i=de[e].shift();if(void 0!==i||ue(t,e,(i=le[e])+1)){try{var n={cached:Math.floor(Date.now()/ae),provider:o,data:a};t.setItem(u+i,JSON.stringify(n))}catch(e){return}return 1}}}}re||he(),e("local")||e("session")},he();B=window;if(void 0!==B.IconifyProviders){var $t=B.IconifyProviders;if("object"==typeof $t&&null!==$t)for(var Ct in $t){var It="IconifyProviders["+Ct+"] is invalid.";try{var Tt=$t[Ct];"object"!=typeof Tt||!Tt||void 0===Tt.resources||be(Ct,Tt)||console.error(It)}catch(e){console.error(It)}}}}h={getAPIConfig:c,setAPIModule:ge,sendAPIQuery:Be,setFetch:function(e){f=e,ge("",Ce)},listAPIProviders:function(){return Object.keys(n)},mergeParams:_},B={_api:h,addAPIProvider:be,loadIcons:Fe,iconExists:V,getIcon:G,listIcons:U,addIcon:F,addCollection:W,replaceIDs:te,calculateSize:l,buildIcon:J,getVersion:vt,renderSVG:bt,renderHTML:yt,renderIcon:wt,scan:kt,observe:ot,stopObserving:at,pauseObserver:tt,resumeObserver:nt,enableCache:Et,disableCache:xt};return e._api=h,e.addAPIProvider=be,e.addCollection=W,e.addIcon=F,e.buildIcon=J,e.calculateSize=l,e.default=B,e.disableCache=xt,e.enableCache=Et,e.getIcon=G,e.getVersion=vt,e.iconExists=V,e.listIcons=U,e.loadIcons=Fe,e.observe=ot,e.pauseObserver=tt,e.renderHTML=yt,e.renderIcon=wt,e.renderSVG=bt,e.replaceIDs=te,e.resumeObserver=nt,e.scan=kt,e.stopObserving=at,Object.defineProperty(e,"__esModule",{value:!0}),e}({});if("object"==typeof exports)try{for(var key in exports.__esModule=!0,exports.default=Iconify,Iconify)exports[key]=Iconify[key]}catch(err){}try{void 0===self.Iconify&&(self.Iconify=Iconify)}catch(err){}function items_custom_fields_validation(){var e=$(".item-custom-fields-container .item-custom-field");if(e.length){for(var t={},i=!0,n=0;n<e.length;n++){var o=e[n];if(!o.classList.contains("bootstrap-select"))if("input"===o.nodeName.toLowerCase()&&"checkbox"===o.type.toLowerCase())t[o.getAttribute("data-id")]=o.checked?1:0,o.classList.contains("item-custom-fields-required-field")&&(o.parentNode.classList.remove("notice_me_shadow"),o.checked||(o.parentNode.classList.add("notice_me_shadow"),i=!1));else if("select"===o.nodeName.toLowerCase())if(o.multiple){t[o.getAttribute("data-id")]=[];for(var a=0;a<o.length;a++){var s=o[a];s.selected&&t[o.getAttribute("data-id")].push(s.value)}o.classList.contains("item-custom-fields-required-field")&&(o.parentNode.classList.remove("notice_me_shadow"),0===t[o.getAttribute("data-id")].length)&&(o.parentNode.classList.add("notice_me_shadow"),i=!1),t[o.getAttribute("data-id")]=t[o.getAttribute("data-id")]}else{var r=o.options;t[o.getAttribute("data-id")]=o.value,null===r[o.selectedIndex].getAttribute("value")&&(t[o.getAttribute("data-id")]=null),o.classList.contains("item-custom-fields-required-field")&&(o.parentNode.classList.remove("notice_me_shadow"),null===r[o.selectedIndex].getAttribute("value"))&&(o.parentNode.classList.add("notice_me_shadow"),i=!1)}else t[o.getAttribute("data-id")]=o.value,o.classList.contains("item-custom-fields-required-field")&&(o.classList.remove("notice_me_shadow"),""===o.value.trim())&&(o.classList.add("notice_me_shadow"),i=!1)}return i?"&items_custom_fields_data="+encodeURIComponent(JSON.stringify(t)):(modal_simple(_t("Validerings fejl"),_t("Du skal udfylde de påkrævede felter, før varen kan lægges i kurven")),!1)}return""}function items_page_setup(e){if(lightgallery_init(e.lightgallery_images),items_page_image_size_handler(),$(".item-quantity-selector-input").on("input",function(e){items_quantity_modify("input")}),$(".item-quantity-selector-less").on("touchstart mousedown",function(e){if("mousedown"===e.originalEvent.type.toLowerCase()){if($(".item-quantity-selector-less").off("touchstart"),1!==e.originalEvent.which)return!1}else $(".item-quantity-selector-less").off("mousedown");items_quantity_modify("subtract"),window._g_item_quantity_selector_less_timer_counter=0,clearInterval(window._g_item_quantity_selector_less_timer),window._g_item_quantity_selector_less_timer=setInterval(function(){items_quantity_modify("subtract"),window._g_item_quantity_selector_less_timer_counter++,5<window._g_item_quantity_selector_less_timer_counter&&(clearInterval(window._g_item_quantity_selector_less_timer),window._g_item_quantity_selector_less_timer=setInterval(function(){items_quantity_modify("subtract")},50))},300),e.stopPropagation(),e.preventDefault()}),$(".item-quantity-selector-less").on("touchend mouseup mouseleave",function(){clearInterval(window._g_item_quantity_selector_less_timer)}),$(".item-quantity-selector-more").on("touchstart mousedown",function(e){if("mousedown"===e.originalEvent.type.toLowerCase()){if($(".item-quantity-selector-more").off("touchstart"),1!==e.originalEvent.which)return!1}else $(".item-quantity-selector-more").off("mousedown");items_quantity_modify("add"),window._g_item_quantity_selector_more_timer_counter=0,clearInterval(window._g_item_quantity_selector_more_timer),window._g_item_quantity_selector_more_timer=setInterval(function(){items_quantity_modify("add"),window._g_item_quantity_selector_more_timer_counter++,5<window._g_item_quantity_selector_more_timer_counter&&(clearInterval(window._g_item_quantity_selector_more_timer),window._g_item_quantity_selector_more_timer=setInterval(function(){items_quantity_modify("add")},50))},300),e.stopPropagation(),e.preventDefault()}),$(".item-quantity-selector-more").on("touchend mouseup mouseleave",function(e){clearInterval(window._g_item_quantity_selector_more_timer)}),document.querySelector(".item-buy-button")&&document.querySelector(".item-buy-button").addEventListener("click",function(){basket_add()}),$(".item-variant-groups").length){$(".item-variant-groups .item-variant-group a.item-variant-group-box").each(function(){var e;this.classList.contains("selected")&&(e=$(this).closest(".item-variant-groups")).attr("data-main-item-path")&&""!==e.attr("data-main-item-path")&&$(this).attr("href","/"+e.attr("data-main-item-path"));let o=this.getAttribute("data-variant-id");this.link_listener_callback_before_url_go=function(){window._g_variant_groups_bottom_before_variant_page_load=this.getBoundingClientRect().bottom},this.link_listener_scroll_handler=function(){if($('.item-variant-groups .item-variant-group a.item-variant-group-box[data-variant-id="'+o+'"]').length){let e=function(){var e;$('.item-variant-groups .item-variant-group a.item-variant-group-box[data-variant-id="'+o+'"]').length&&(e=$('.item-variant-groups .item-variant-group a.item-variant-group-box[data-variant-id="'+o+'"]')[0].getBoundingClientRect().bottom-window._g_variant_groups_bottom_before_variant_page_load,window.scrollTo({top:window.scrollY+e,left:0,behavior:"instant"}))},t=(e(),function(){clearInterval(i),clearTimeout(n),window.removeEventListener("scroll",t),window.removeEventListener("_content_load",t)}),i=setInterval(function(){window.removeEventListener("scroll",t),e(),window.addEventListener("scroll",t)},100),n=setTimeout(t,1e3);window.addEventListener("_content_load",t,{once:!0})}else window.scrollTo(0,0)}});var t=$(".item-variant-groups .item-variant-group"),s=t.length,n=1,o=!1,a=1;if(t.each(function(){$(this).attr("data-variant-group-count",a);var i={};$(this).find(".item-variant-group-box").each(function(){var e=this.innerHTML.trim(),t=parseInt(this.getAttribute("data-variant-id"));this.classList.contains("selected")&&(n=a)===s&&(o=t),void 0!==i[e]?a===s?(this._variant_ids=[],this._variant_ids.push(t)):(i[e]._variant_ids.push(t),this.classList.contains("selected")&&i[e].classList.add("selected"),$(this).remove()):(this._variant_ids=[],this._variant_ids.push(t),"div"===(i[e]=this).tagName.toLowerCase()&&$(this).on("click",function(e){var t=$(this).closest(".item-variant-group");if(!$(this).hasClass("disabled")&&!t.hasClass("disabled")){for(var n,o,i=parseInt(t.attr("data-variant-group-count")),a=i;a<=s;a++)$('.item-variant-groups .item-variant-group[data-variant-group-count="'+a+'"] .selected').removeClass("selected"),a===i+1?($('.item-variant-groups .item-variant-group[data-variant-group-count="'+a+'"]').removeClass("hidden"),$('.item-variant-groups .item-variant-group[data-variant-group-count="'+a+'"] .item-variant-group-box').removeClass("hidden")):i+2<=a&&$('.item-variant-groups .item-variant-group[data-variant-group-count="'+a+'"]').addClass("hidden");$(this).addClass("selected"),i+1===s?$('.item-variant-groups .item-variant-group[data-variant-group-count="'+(i+1)+'"] .item-variant-group-box').each(function(){var e=parseInt(this.getAttribute("data-variant-id")),t=!1;$(".item-variant-groups .item-variant-group .item-variant-group-box.selected").each(function(){if(-1===this._variant_ids.indexOf(e))return!(t=!0)}),t&&$(this).addClass("hidden")}):(n={},o=0,$(".item-variant-group-box.selected").each(function(){o++;for(var e=0;e<this._variant_ids.length;e++){var t=this._variant_ids[e];void 0===n[t]&&(n[t]=0),n[t]++}}),$('.item-variant-groups .item-variant-group[data-variant-group-count="'+(i+1)+'"] .item-variant-group-box').each(function(){for(var e=!0,t=0;t<this._variant_ids.length;t++){var i=this._variant_ids[t];if(void 0!==n[i]&&n[i]===o){e=!1;break}}e&&$(this).addClass("hidden")})),$(".can-buy-fields").hide()}}))}),a++}),o)$(".item-variant-groups .item-variant-group .item-variant-group-box").each(function(){-1<this._variant_ids.indexOf(o)&&("div"===this.tagName.toLowerCase()?$(this).trigger("click"):($(this).addClass("selected"),$(".can-buy-fields").show()))});else for(var i=n+1;i<=s;i++)$('.item-variant-groups .item-variant-group[data-variant-group-count="'+i+'"]').addClass("hidden")}if($(".item-variant-groups-dropdowns").length){var r=$(".item-variant-groups-dropdowns select").length,l=0,t=($(".item-variant-groups-dropdowns select").each(function(){++l<r&&(t={},$(this).find("option").each(function(){var e;""!==this.value&&(e=this.innerHTML.toLowerCase().trim(),void 0===t[e]&&(t[e]=[]),t[e].push(this.value))}),$(this).find("option").each(function(){var e;""!==this.value&&(e=this.innerHTML.toLowerCase().trim(),void 0===t[e]?$(this).remove():($(this).val(JSON.stringify(t[e])),delete t[e]))}));var t,e,i,n=this;1<l&&($(this).hide(),(e=document.createElement("select")).className="form-select",(i=document.createElement("option")).innerHTML=_t("Vælg"),i.value="",e.appendChild(i),$(e).insertAfter($(this)),n=e),n.classList.add("variant-groups-actual-select"),n.setAttribute("data-select-number",l),r<=l?$(n).on("change",function(){var e,t=parseInt(this.getAttribute("data-select-number"));""===this.value?1===t&&(t=$(this).closest(".item-variant-groups-dropdowns")).attr("data-main-item-path")&&""!==t.attr("data-main-item-path")&&(e=t.attr("data-main-item-path"),content_load(e="/"===this.value.substr(0,1)?this.value.substr(1):e)):(e=this.value,content_load(e="/"===this.value.substr(0,1)?this.value.substr(1):e))}):$(n).on("change",function(){var e,t=parseInt(this.getAttribute("data-select-number")),i=this.nextElementSibling.nextElementSibling,n=this.nextElementSibling.nextElementSibling.nextElementSibling;if($(this).parent().find(".variant-groups-actual-select").each(function(){var e=parseInt(this.getAttribute("data-select-number"));t<e&&(this.innerHTML="",(e=document.createElement("option")).innerHTML=_t("Vælg"),e.value="",this.appendChild(e))}),""===this.options[this.selectedIndex].value)1===t&&(e=$(this).closest(".item-variant-groups-dropdowns")).attr("data-main-item-path")&&""!==e.attr("data-main-item-path")&&(e=e.attr("data-main-item-path"),content_load(e="/"===this.value.substr(0,1)?this.value.substr(1):e));else{for(var o={},a=1;a<=t;a++){for(var s=JSON.parse($('.variant-groups-actual-select[data-select-number="'+a+'"]').val()),r=0;r<s.length;r++){var l=s[r];(1===a||void 0!==o[l])&&(o[l]=a)}for(d in o)(l=o[d])<a&&delete o[d]}var d,c=[];for(d in o)c.push(d);for(o=c,a=0;a<i.options.length;a++){var u=i.options[a];if(u.value)if(null!==u.getAttribute("data-variant-id"))-1<o.indexOf(u.getAttribute("data-variant-id"))&&(p=u.cloneNode(!0),n.appendChild(p));else for(var _=JSON.parse(u.value),r=0;r<_.length;r++){var h=_[r];if(-1<o.indexOf(h)){var p=u.cloneNode(!0);n.appendChild(p);break}}}}})}),$('.item-variant-groups-dropdowns select option[data-variant-selected="1"]'));if(t.length)for(o=$(t).attr("data-variant-id"),i=1;i<=r;i++)i===r?$('.item-variant-groups-dropdowns select[data-select-number="'+i+'"] option').each(function(){if(this.getAttribute("data-variant-id")===o)return $(this).parent().val(this.value),!1}):$('.item-variant-groups-dropdowns select[data-select-number="'+i+'"] option').each(function(){if(this.value&&-1<JSON.parse(this.value).indexOf(o))return $(this).parent().val(this.value).trigger("change"),!1})}$(".item-page .country-select-link").on("click",function(){browserloading_start(),ajax_get("/ajax/countries_we_ship_to",function(e){browserloading_stop();var t,i={type:"select",options:[]};for(t in e.data.countries_we_ship_to){var n=e.data.countries_we_ship_to[t];i.options.push({name:n,value:t})}prompt_nice(_t("Skift land"),_t("Der leveres til lande i denne liste. Vælg dit land for at vise korrekt momssats og fragt.")+"<br><br>",e.data.country_current,i,function(t){browserloading_start(),ajax_post("/ajax/ship_to_country_set","&country_iso_code="+t,function(e){browserloading_stop(),1===e.result&&(1===e.set_basket_alternative_delivery_address?(setsessionstorage("basket_alternative_delivery_address","true"),setsessionstorage("basket_country_delivery",t)):(removesessionstorage("basket_country"),removesessionstorage("basket_alternative_delivery_address"),removesessionstorage("basket_country_delivery")),window.location.reload())})})})}),items_page_image_hover_on_zoom_setup(),items_page_setup_image_as_video(),items_page_delivery_text_toggle(),items_page_setup_js_calc(),setTimeout(function(){items_page_setup_js_calc()},0),window.addEventListener("_resize_x",items_page_setup_js_calc);t=document.createEvent("Event");t.initEvent("_item_page_loaded",!0,!0),window.dispatchEvent(t)}function items_page_update_price(){const i=parseInt($("#basket_add_quantity").text()),n=DISPLAY_WITH_VAT?"data-price-for-one-with-vat":"data-price-for-one-without-vat";let o=parseFloat($("div.item-page").attr(n));$(".items-volume-discount-line").each(function(){var e=parseInt(this.getAttribute("data-quantity-to-unlock")),t=parseFloat(this.getAttribute(n));i>=e&&t<o&&(o=t)}),$(".option-group-container").each(function(){var e=$(this).attr("data-type");"checkbox"===e||"checkbox-multiple"===e?$(this).find("input:checked").each(function(){var e=parseFloat(this.getAttribute(n));o+=e}):"select"!==e&&"select-multiple"!==e||$(this).find('select option:selected:not([value=""])').each(function(){var e=parseFloat(this.getAttribute(n));o+=e})}),$("div.item-page .item-price:not(.before)").html(formatted_price(o))}document.addEventListener("DOMContentLoaded",function(){Iconify.scan()}),!function(){let o;try{let n=!1;function e(){$("[data-slide-in-element-direction]:not([data-slide-in-element-status])").each(function(){this.setAttribute("data-slide-in-element-status","ready"),o.observe(this)})}o=new IntersectionObserver(function(e){for(let i=0;i<e.length;i++){var t=e[i];t.intersectionRatio<=0||(o.unobserve(t.target),n?t.target.setAttribute("data-slide-in-element-status","executed"):(t.target.removeAttribute("data-slide-in-element-direction"),t.target.setAttribute("data-slide-in-element-status","skipped")))}}),window.addEventListener("load",e),window.addEventListener("_after_load",e),window.addEventListener("scroll",function(){n=!0},{once:!0})}catch(e){window.addEventListener("_after_load",function(){$("[data-slide-in-element-direction]").removeAttr("data-slide-in-element-direction")})}}(),window.addEventListener("_item_page_loaded",function(){var e,t=$(".item-page .back-in-stock-signup-button").off("click").on("click",function(){var i=parseInt($(this).attr("data-robot-protection")),e='<div class="form-group">'+_t("Modtag en e-mail når denne vare er på lager igen.")+'</div><div class="form-group"><input type="email" class="form-control" name="email" placeholder="'+_t("Din e-mail")+'" required></div>';modal_simple($(".item-page .item-main-data .item-title").text()+($(".item-page .item-main-data .item-variant-title").length?" - "+$(".item-page .item-main-data .item-variant-title").text():""),e,void 0,{save_button:_t("Giv mig besked"),save_button_class:"btn-success",modal_unique_identifier:"back-in-stock-signup",path_append:"back-in-stock-signup",form_submit_takeover:function(e){var t={email:$(e).find('input[name="email"]').val(),items_id:$(".item-page").attr("data-item-id"),variants_id:$(".item-page").attr("data-variant-id")};i&&(t["g-recaptcha-response"]=$(e).find('[name="g-recaptcha-response"]').val()),browserloading_start(),ajax_post("/items/back_in_stock_signup_submit",http_build_query(t),function(e){browserloading_stop(),1===e.result&&modal_close_top_real(function(){1===e.double_opt_in?alert_nice(!1,_t("TILMELDING GEMT - TJEK DIN E-MAIL FOR AT BEKRÆFTE"),void 0,void 0,void 0,!0):alert_nice(!1,_t("TILMELDING GEMT"),void 0,void 0,void 0,!0)})})}}),i&&($("#modal_current .modal-body").append('<div class="form-group"><div class="g-recaptcha" data-sitekey="6LeigB0UAAAAANElHtpz-mZ8iajOlyeDTLgaR-MU"></div></div>'),javascript_load("https://www.google.com/recaptcha/api.js?hl="+language_get_current(),void 0,!0))});-1<window.location.pathname.indexOf("/m:back-in-stock-signup")&&(e=window.location.pathname.replace("/m:back-in-stock-signup",""),window.history.replaceState(e,e,e),t.first().trigger("click"))}),window.addEventListener("_item_page_loaded",function(){var e=$(".item-custom-fields-container select.item-custom-field[multiple]");e.length&&ondemand_loading_bootstrap_select(function(){e.selectpicker()})});var items_page_setup_js_calc_image_thumbnails_more_clicked={};function items_page_setup_js_calc(){if(0===$("div.item-page").length)window.removeEventListener("_resize_x",items_page_setup_js_calc);else{var n=$("div.item-page").attr("data-items-id");if(document.getElementsByClassName("item-description-short").length)try{var e=document.getElementsByClassName("item-description-short")[0],t=document.getElementsByClassName("item-description-short-read-more-button")[0],i=(e.style.height="",e.style.maxHeight="",e.getBoundingClientRect().height),o=i+t.getBoundingClientRect().height;e.style.maxHeight="none",e.parentNode.classList.remove("read-more"),e.parentNode.classList.remove("read-less"),o<e.getBoundingClientRect().height&&(e.style.maxHeight="",e.parentNode.classList.add("read-more"),$(".item-description-short-read-more-button").off("click").on("click",function(){this.parentNode.classList.remove("read-more"),this.parentNode.classList.add("read-less");var e=document.getElementsByClassName("item-description-short")[0],t=(e.style.height="",e.style.maxHeight="none",e.getBoundingClientRect().height);e.style.height=i+"px",e.offsetHeight,e.style.height=t+"px"}),$(".item-description-short-read-less-button").off("click").on("click",function(){this.parentNode.classList.remove("read-less"),this.parentNode.classList.add("read-more"),e.style.height=i+"px"}),$(".item-description-short").off("click").on("click",function(){this.parentNode.classList.contains("read-more")&&$(".item-description-short-read-more-button").trigger("click")}))}catch(e){}if(document.getElementById("items-thumbnails-container")){var a=document.getElementById("items-thumbnails-container"),t=!1;try{var s=window.getComputedStyle(a).getPropertyValue("line-height");a.style.height="",a.style.maxHeight="none",a.parentNode.classList.remove("thumbnails-see-more"),a.parentNode.classList.remove("thumbnails-see-less"),12*parseInt(s)<a.getBoundingClientRect().height&&(a.style.height=10*parseInt(s)+"px",a.parentNode.classList.add("thumbnails-see-more"),t=!0,$("#items-thumbnails-see-more-button").off("click").on("click",function(){this.parentNode.classList.remove("thumbnails-see-more"),this.parentNode.classList.add("thumbnails-see-less");var e=document.getElementById("items-thumbnails-container"),t=e.style.height,i=(e.style.height="",e.getBoundingClientRect().height);e.style.height=t,e.offsetHeight,e.style.height=i+"px",items_page_thumbnails_load_lazy_loaded(),items_page_setup_js_calc_image_thumbnails_more_clicked[n]=1}),$("#items-thumbnails-see-less-button").off("click").on("click",function(){this.parentNode.classList.remove("thumbnails-see-less"),this.parentNode.classList.add("thumbnails-see-more"),a.style.height=10*parseInt(s)+"px",delete items_page_setup_js_calc_image_thumbnails_more_clicked[n]}))}catch(e){}void 0!==items_page_setup_js_calc_image_thumbnails_more_clicked[n]?(a.style.height="",a.style.maxHeight="none",$("#items-thumbnails-see-more-button").parent().removeClass("thumbnails-see-more").addClass("thumbnails-see-less"),items_page_thumbnails_load_lazy_loaded()):t||items_page_thumbnails_load_lazy_loaded()}Iconify.loadIcons(["fa:chevron-down"],function(){$(".item-page .item-quantity-selector-outer-container .item-quantity-selector-less,.item-page .item-quantity-selector-outer-container .item-quantity-selector-more").each(function(){Iconify.scan(this),this.style.width="",this.style.height="";var e=this.getBoundingClientRect();e.width>e.height?this.style.height=e.width+"px":this.style.width=e.height+"px"})}),items_page_image_size_handler()}}function items_page_delivery_text_toggle(){var e,t,i,n,o=document.getElementById("item-stock-info");o&&(e=base64_decode(o.getAttribute("data-not-in-stock-text")),i=parseInt(o.getAttribute("data-stock")),0===(t=document.getElementsByClassName("item-quantity-selector-input")).length?n=i+1:(t=t[0],n=parseInt(t.innerHTML),isNaN(n)&&(n=1)),t="",parseInt(o.getAttribute("data-show-stock"))&&(t+=base64_decode(o.getAttribute("data-show-stock-text"))),i<n?e&&(t&&(t+="<br>"),t+=e):(i=o.getAttribute("data-in-stock-always-text"))&&(t&&(t+="<br>"),t+=base64_decode(i)),t?((n=$(o).find("span.text")).html(t),o.style.display="inline-block",Iconify.scan(n[0])):($(o).find("span.text").html(""),o.style.display="none"))}function items_quantity_modify(e){var t,i,n=document.getElementById("basket_add_quantity");n?(t=parseInt(n.innerHTML),isNaN(t)&&(t=0),"add"===e?t++:"subtract"===e&&t--,"input"!==e&&t<=0&&(t=1),"input"===e&&0===t&&(t="&nbsp;"),document.getElementById("basket-min")&&t<(i=parseInt(document.getElementById("basket-min").value))&&self_destructing_message(_pt("Der skal som minimum købes {1} af denne vare.",t=i)),document.getElementById("basket-max")&&(i=parseInt(document.getElementById("basket-max").value))<t&&self_destructing_message(_pt("Det er kun muligt at købe op til {1} af denne vare.",t=i)),is_numeric(n.innerHTML)&&parseInt(n.innerHTML)===t||("&nbsp;"===t.toString()||""===t.toString()?n.innerHTML="1":n.innerHTML=t.toString()),items_page_delivery_text_toggle(),items_page_update_price()):(clearInterval(window._g_item_quantity_selector_less_timer),clearInterval(window._g_item_quantity_selector_more_timer))}function items_page_thumbnails_load_lazy_loaded(){var t,e=$('[data-lazy-load-src][data-type="item-image"]');e.length&&(t=0,window._g_items_page_thumbnails_load_lazy_loaded_images_loaded_in_current_batch=0,e.each(function(){function e(){window._g_items_page_thumbnails_load_lazy_loaded_images_loaded_in_current_batch++,5<=window._g_items_page_thumbnails_load_lazy_loaded_images_loaded_in_current_batch&&(items_page_thumbnails_load_lazy_loaded(),items_page_image_size_handler())}if(t++,this.onload=e,this.onerror=e,this.setAttribute("src",this.getAttribute("data-lazy-load-src")),this.removeAttribute("data-lazy-load-src"),5<=t)return!1}))}function items_page_image_size_handler(){$("#item-lightgallery-container img:not([data-lazy-load-src])").each(function(){var e=this.src.split("/"),t=$(this).width(),t=20*Math.ceil(t/20),i=(e[e.length-2]=1.2*t+"-0",e.join("/"));i!==this.src&&(e[e.length-2]=2*t+"-0",t=e.join("/")+" 2x",this.srcset=t,this.src=i)})}function items_page_related_item_unable_to_load(){$(this).parent().remove();var e=$("#item-related-items-container");e.find(".item-box-container-multi-line").length||e.remove()}function items_page_often_bought_with_unable_to_load(){$(this).parent().remove();var e=$("#item-often-bought-with-container");e.find(".item-box-container-multi-line").length||e.remove()}function items_page_image_hover_on_zoom_setup(){var e=window._g_item_page_image_hover_zoom_type;"all"===e?($(".item-page #items-main-image").attr("data-image-zoom-on-hover","1"),$(".item-page #items-thumbnails-container img").attr("data-image-zoom-on-hover","1")):("only_big"===e?$(".item-page #items-main-image").attr("data-image-zoom-on-hover","1"):$(".item-page #items-main-image").removeAttr("data-image-zoom-on-hover"),$(".item-page #items-thumbnails-container img").removeAttr("data-image-zoom-on-hover")),image_hover_zoom_setup()}function items_page_setup_image_as_video(){if($("#items-main-image-container img[data-video-src]").length){let t=document.createElement("iframe"),i=(t.src=$("#items-main-image-container img[data-video-src]").attr("data-video-src"),t.width="100%",t.height="100%",t.allowFullscreen=!0,function(e){e.source===t.contentWindow?!e.data.type||"started"!==e.data.type&&"paused"!==e.data.type||$(t).trigger("click"):document.body.contains(t)||window.removeEventListener("message",i)});window.addEventListener("message",i),$("#items-main-image-container img[data-video-src]").hide(),$("#items-main-image-container img[data-video-src]").parent().append(t)}}function items_options_validation(){let a=!0,s=[];return $(".option-group-container").each(function(){var e=$(this).attr("data-type"),t=parseInt($(this).attr("data-required")),i=parseInt($(this).attr("data-min")),n=parseInt($(this).attr("data-max")),o=this;if($(o).removeClass("validation-failed"),"checkbox"===e){if(t&&1!==$(o).find("input:checked").length)return alert_nice(!1,_t("Der skal foretages et valg")),a=!1,$(o).addClass("validation-failed"),!1;$(o).find("input:checked").each(function(){s.push(this.value)})}else{if("checkbox-multiple"===e)return i&&$(o).find("input:checked").length<i?(alert_nice(!1,_t("Der skal foretages mindst {1} valg",i)),a=!1,$(o).addClass("validation-failed"),!1):n&&$(o).find("input:checked").length>n?(alert_nice(!1,_t("Der må maksimalt foretages {1} valg",n)),a=!1,$(o).addClass("validation-failed"),!1):void $(o).find("input:checked").each(function(){s.push(this.value)});if("select"===e){if(t&&""===$(o).find("select").val())return alert_nice(!1,_t("Der skal foretages et valg")),a=!1,$(o).addClass("validation-failed"),!1;$(o).find("select option:selected").each(function(){""!==this.value&&s.push(this.value)})}else if("select-multiple"===e)return i&&$(o).find("select").val().length<i?(alert_nice(!1,_t("Der skal foretages mindst {1} valg",i)),a=!1,$(o).addClass("validation-failed"),!1):n&&$(o).find("select").val().length>n?(alert_nice(!1,_t("Der må maksimalt foretages {1} valg",n)),a=!1,$(o).addClass("validation-failed"),!1):void $(o).find("select option:selected").each(function(){s.push(this.value)})}}),!1!==a&&(0===s.length?"":"&items_options="+encodeURIComponent(JSON.stringify(s)))}function item_boxes_async_function(){let i={items_and_variants_to_get:{}};$(".item-box-placeholder").each(function(){var e,t;$(this).data("handled")||($(this).data("handled","1"),e=this.getAttribute("data-item-id"),t=this.getAttribute("data-variant-id"),void 0===i.items_and_variants_to_get[e]&&(i.items_and_variants_to_get[e]={}),i.items_and_variants_to_get[e][t]=1)}),Object.keys(i.items_and_variants_to_get).length&&ajax_post("/items/ajax_item_boxes",http_build_query(i),function(e){if(1===e.result){for(var t in e.boxes_html)for(var i in e.boxes_html[t]){var n=e.boxes_html[t][i],i=$('.item-box-placeholder[data-item-id="'+t+'"][data-variant-id="'+i+'"]');i.length&&(n?i.replaceWith(n):i[0].hasAttribute("data-callback-unable-to-load")?window[i[0].getAttribute("data-callback-unable-to-load")].call(i[0]):i.remove())}after_load_setup()}})}window.addEventListener("_after_load",function(){$('.item-box-info .buy-container input[type="number"]').each(function(){let t=this;$(this).off("click mousedown").on("click mousedown",function(){return $(this).focus().select(),!1}),$(this).parent().find(".buy-button").off("click").on("click",function(e){return basket_add_from_item_box(e,$(this).closest(".item-box").attr("data-item-id"),$(this).closest(".item-box").attr("data-variant-id"),t.value),!1})})}),window.addEventListener("_item_page_loaded",function(){$(".option-group-container").each(function(){var e=$(this).attr("data-type");parseInt($(this).attr("data-required")),parseInt($(this).attr("data-min"));const o=parseInt($(this).attr("data-max")),t=this;if("checkbox"===e)$(t).find("input").on("change",function(){this.checked&&($(t).find("input").prop("checked",!1),$(this).prop("checked",!0)),items_page_update_price()});else if("checkbox-multiple"===e)$(t).find("input").on("change",function(){o&&this.checked&&$(t).find("input:checked").length>o&&($(this).prop("checked",!1),alert_nice(!1,_t("Der kan maksimalt foretages {1} tilvalg",o))),items_page_update_price()});else if("select"===e)$(t).find("select").on("change",function(){items_page_update_price()});else if("select-multiple"===e){const a=$(t).find("select");a.on("change",function(){if(o){var i=a.data("selected"),n=a.val();if(i.length<n.length&&n.length>o){let e;for(let t=0;t<n.length&&(e=n[t],-1!==i.indexOf(e));t++);$(a).find("option").each(function(){if(this.value===e)return this.selected=!1,this.removeAttribute("selected"),!1}),alert_nice(!1,_t("Der kan maksimalt foretages {1} tilvalg",o))}a.data("selected",a.val())}items_page_update_price()}),a.data("selected",a.val())}})}),window.addEventListener("_after_load",function(){-1===["item","item_category","search"].indexOf(document.body.getAttribute("data-page-type"))&&(window.items_in_category=[])}),window.addEventListener("_item_page_loaded",function(){if("object"==typeof window._g_items_in_category&&window._g_items_in_category.length){for(var e,t,i,n=parseInt($(".item-page").attr("data-item-id")),o=!1,a=!1,s=!1,r=0;r<window._g_items_in_category.length;r++){var l=window._g_items_in_category[r];if(l.item_id===n)s=!0;else{if(s){a=ltrim(l.path,"/");break}o=ltrim(l.path,"/")}}s&&(o||a)&&(e=o?'<a href="/'+o+'"><i class="iconify" data-icon="fa:chevron-down" data-rotate="45" data-width="1.5em"></i></a>':'<a href="#" class="no-link"><i class="iconify" data-icon="fa:chevron-down" data-rotate="45" data-width="1.5em"></i></a>',t=a?'<a href="/'+a+'"><i class="iconify" data-icon="fa:chevron-down" data-rotate="315" data-width="1.5em"></i></i></a>':'<a href="#" class="no-link"><i class="iconify" data-icon="fa:chevron-down" data-rotate="315" data-width="1.5em"></i></i></a>',(i=document.createElement("div")).id="item-previous-next-container",i.innerHTML=e+'<div class="text">'+_pt("Næste vare")+"</div>"+t,$(".item-page h1.item-title").parent().prepend(i))}}),window.addEventListener("_item_page_loaded",function(){var e,t=$(".item-page .rating-write-button").off("click").on("click",function(){var i=parseInt($(this).closest(".items-ratings-outer-container").attr("data-robot-protection")),e='<div class="form-group"><label>'+_t("Navn")+'</label><input type="text" class="form-control" name="name" placeholder="'+_t("Dit navn (offentligt)")+'" required></div><div class="form-group"><label>'+_t("E-mail")+'</label><input type="email" class="form-control" name="email" placeholder="'+_t("Din e-mail (privat)")+'" required></div><div class="form-group"><label>'+_t("Bedømmelse")+'</label><br><div class="stars"><span class="star-container" data-number="1"><i class="iconify star" data-icon="fa:star"></i></span><span class="star-container" data-number="2"><i class="iconify star" data-icon="fa:star"></i></span><span class="star-container" data-number="3"><i class="iconify star" data-icon="fa:star"></i></span><span class="star-container" data-number="4"><i class="iconify star" data-icon="fa:star"></i></span><span class="star-container selected" data-number="5"><i class="iconify star" data-icon="fa:star"></i></span></div></div><div class="form-group"><label>'+_t("Titel på anmeldelse")+'</label><input type="text" class="form-control" name="title" placeholder="'+_t("Titel på din anmeldelse")+'"></div><div class="form-group"><label>'+_t("Anmeldelse")+'</label><textarea class="form-control" name="comment" placeholder="'+_t("Skriv din anmeldelse her")+'"></textarea></div>';modal_simple(_t("Kundeanmeldelse"),e,void 0,{save_button_class:"btn-success",modal_unique_identifier:"item-ratings",path_append:"item-rating",form_submit_takeover:function(e){var t={name:$(e).find('input[name="name"]').val(),email:$(e).find('input[name="email"]').val(),stars:$("#modal_current .star-container.selected").attr("data-number"),title:$(e).find('input[name="title"]').val(),comment:$(e).find('textarea[name="comment"]').val(),items_id:$(".item-page").attr("data-item-id")};i&&(t["g-recaptcha-response"]=$(e).find('[name="g-recaptcha-response"]').val()),t=http_build_query(t),browserloading_start(),ajax_post("/ajax/ratings_submit",t,function(e){browserloading_stop(),1===e.result&&modal_close_top_real()})}}),$("#modal_current .star-container").on("click",function(){var e=parseInt(this.getAttribute("data-number"));$("#modal_current .star-container").removeClass("selected"),$("#modal_current .star-container .star").attr("data-icon","fa:star-o");for(var t=0;t<=e;t++)$('#modal_current .star-container[data-number="'+t+'"] .star').attr("data-icon","fa:star");$(this).addClass("selected")}),$("#modal_current .star-container").on("mouseover",function(){var e=parseInt(this.getAttribute("data-number"));$("#modal_current .star-container .star").attr("data-icon","fa:star-o");for(var t=0;t<=e;t++)$('#modal_current .star-container[data-number="'+t+'"] .star').attr("data-icon","fa:star")}),$("#modal_current .star-container").on("mouseout",function(){$("#modal_current .star-container.selected").trigger("click")}),i&&($("#modal_current .modal-body").append('<div class="form-group"><div class="g-recaptcha" data-sitekey="6LeigB0UAAAAANElHtpz-mZ8iajOlyeDTLgaR-MU"></div></div>'),javascript_load("https://www.google.com/recaptcha/api.js?hl="+language_get_current(),void 0,!0))});-1<window.location.pathname.indexOf("/m:item-rating")&&(e=window.location.pathname.replace("/m:item-rating",""),window.history.replaceState(e,e,e),t.first().trigger("click"))}),window.addEventListener("_item_page_loaded",function(){$(".item-page .tab-header").on("click",function(){$(".item-page .tab-header").removeClass("active"),$(this).addClass("active"),$(".item-page .tab-body").removeClass("active"),$('.item-page .tab-body[data-tab="'+this.getAttribute("data-tab")+'"]').addClass("active"),after_load_setup()}).first().trigger("click")}),setTimeout(function(){item_boxes_async_function(),window.addEventListener("_after_load",item_boxes_async_function)}),window.addEventListener("_item_page_loaded",function(){var e=$(".booking-outer-container");e.length&&booking_calendar_build([[$(".item-page").attr("data-item-id"),$(".item-page").attr("data-variant-id")]],e)});let booking_calendar_build_saved_data_per_hash={};function booking_calendar_build(i,c,o=-1,e=-1){var a=new Date;let s=new Date;var t=sha1(i.toString()),n=(-1===o&&-1===e&&"object"==typeof booking_calendar_build_saved_data_per_hash[t]&&(o=booking_calendar_build_saved_data_per_hash[t].month,e=booking_calendar_build_saved_data_per_hash[t].year),s.setDate(1),-1<o&&s.setMonth(o-1),-1<e&&s.setFullYear(e),0===s.getDay()?7:s.getDay());let r=-1*(n-1)+1,l=(o=s.getMonth()+1,e=s.getFullYear(),booking_calendar_build_saved_data_per_hash[t]={month:o,year:e},"");for(let _=0;_<6;_++){let i,n="";for(let e=0;e<7;e++){(i=new Date(s)).setDate(r);let e=i.getMonth()+1;var d=["day-of-week"];e!==o&&d.push("not-current-month"),i<a&&d.push("date-in-the-past");let t="";d.length&&(t=' class="'+(t=d.join(" "))+'"');var d=i.getFullYear(),u=(e=e<10?"0"+e.toString():e,i.getDate()<10?"0"+i.getDate().toString():i.getDate());n+='<td data-date="'+d+"-"+e+"-"+u+'"'+t+">"+i.getDate()+"</td>",r++}l+='<tr><td class="week-number" title="'+_t("Ugenummer")+'">'+i.getWeekNumber()+"</td>"+n+"</tr>"}n=`
	<div class="booking-calendar-container">
		<div class="month-year-arrows-container">
			<div class="arrow previous"><i class="iconify-inline" data-icon="bi:chevron-left"></i></div>
			<div class="month-and-year">${_t(o+"{month-number-full-name}").toLowerCase()}&nbsp;&nbsp;&nbsp;${e}</div>
			<div class="arrow next"><i class="iconify-inline" data-icon="bi:chevron-right"></i></div>
		</div>
		
		<table>
			<thead>
				<tr>
					<td>&nbsp;</td>
					<td>${htmlentities(_t("1{weekday-number-full-name}",!1).toLowerCase().substring(0,3))}</td>
					<td>${htmlentities(_t("2{weekday-number-full-name}",!1).toLowerCase().substring(0,3))}</td>
					<td>${htmlentities(_t("3{weekday-number-full-name}",!1).toLowerCase().substring(0,3))}</td>
					<td>${htmlentities(_t("4{weekday-number-full-name}",!1).toLowerCase().substring(0,3))}</td>
					<td>${htmlentities(_t("5{weekday-number-full-name}",!1).toLowerCase().substring(0,3))}</td>
					<td>${htmlentities(_t("6{weekday-number-full-name}",!1).toLowerCase().substring(0,3))}</td>
					<td>${htmlentities(_t("7{weekday-number-full-name}",!1).toLowerCase().substring(0,3))}</td>
				</tr>
			</thead>
			<tbody>${l}</tbody>
		</table>
	</div>
	<div class="booking-time-container">${_t("Vælg en dato")}</div>
	`,c.html(n),Iconify.scan(c[0]),c.find(".arrow").on("click",function(){this.classList.contains("previous")?s.setMonth(s.getMonth()-1):s.setMonth(s.getMonth()+1),o=s.getMonth()+1,e=s.getFullYear(),booking_calendar_build(i,c,o,e)}),t={sub_action:"month_data",month:o,year:e,item_and_variant_ids:JSON.stringify(i)};ajax_post("/items/ajax_booking",http_build_query(t),function(e){if(1===e.result)for(var t in e.days_with_availability)c.find('td[data-date="'+t+'"]').addClass("available")}),c.find("td.day-of-week:not(.date-in-the-past)").on("click",function(){var e=$(this).attr("data-date"),t=new Date(e);let r=0===t.getDay()?7:t.getDay(),l=t.getDate(),d=t.getMonth()+1;t={sub_action:"day_data",date:e,item_and_variant_ids:JSON.stringify(i)};c.find("tbody td").removeClass("selected"),$(this).addClass("selected"),ajax_post("/items/ajax_booking",http_build_query(t),function(i){let e=c.find(".booking-time-container"),n=(e.addClass("date-selected"),`
				<div class="date">${_t(r+"{weekday-number-full-name}").toLowerCase()} ${l}. ${_t(d+"{month-number-full-name}").toLowerCase()}</div>
				<input type="hidden" name="booking_selected_date_and_time">
			`);if(1===i.result)if(i.available_times.length){let e="";for(let t=0;t<i.available_times.length;t++){var o=i.available_times[t],a=Object.values(o.resources_available).toString(),s=o.text||o.time;e+='<div class="available-time" data-value="'+o.timestamp+'" data-resource-ids-available="'+a+'">'+s+"</div>"}n+=`
						<div class="available-times-container">${e}</div>
					`}else n+=`
						<div style="padding-top: 20px;">${_t("Ingen tider fundet")}</div>
					`;e.html(n),e.find(".available-time").on("click",function(){e.find(".available-time").removeClass("selected"),$(this).addClass("selected"),e.find('input[name="booking_selected_date_and_time"]').val(this.getAttribute("data-value"))})})})}function items_booking_validation(){var e;return $(".booking-outer-container").length?(e=$('.item-page input[name="booking_selected_date_and_time"]').val())?"&booking_timestamp="+e:(alert_nice(!1,_t("Du mangler at vælge en dato og et tidspunkt")),!1):""}function lightgallery_image_set_main(e,t){var i=$(e).find("img"),n=$(i).closest(".lightgallery-image-thumbnail"),o=$("#items-main-image");$(".lightgallery-image-thumbnail.active").removeClass("active"),$(e).addClass("active"),lightgallery_index_current=t,o.parent().find("iframe").remove(),o.show().attr("srcset",i.attr("srcset")?i.attr("srcset"):"").attr("src",i.attr("src")).attr("alt",lightgallery_images[t].altText),items_page_image_size_handler(),!lightgallery_force_scroll_to_big_image&&is_element_fully_in_viewport(o)||(lightgallery_force_scroll_to_big_image?(scroll_to_element("#items-main-image",!0),lightgallery_force_scroll_to_big_image=!1):scroll_to_element("#items-main-image")),n.attr("data-video-src")?(o.attr("data-video-src",n.attr("data-video-src")).attr("data-video-aspect",n.attr("data-video-aspect")),items_page_setup_image_as_video()):o.removeAttr("data-video-src").removeAttr("data-video-aspect")}!function(){var i={mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:!1,iframeMaxWidth:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1};function t(e,t){if(this.el=e,this.$el=$(e),this.s=$.extend({},i,t),this.s.dynamic&&"undefined"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBartimeout=!1,this.isTouch="ontouchstart"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.s.dynamic?this.$items=this.s.dynamicEl:"this"===this.s.selector?this.$items=this.$el:""!==this.s.selector?this.s.selectWithin?this.$items=$(this.s.selectWithin).find(this.s.selector):this.$items=this.$el.find($(this.s.selector)):this.$items=this.$el.children(),this.$slide="",this.$outer="",this.init(),this}t.prototype.init=function(){var e=this,t=(e.s.preload>e.$items.length&&(e.s.preload=e.$items.length),window.location.hash);0<t.indexOf("lg="+this.s.galleryId)&&(e.index=parseInt(t.split("&slide=")[1],10),$("body").addClass("lg-from-hash"),$("body").hasClass("lg-on")||(setTimeout(function(){e.build(e.index)}),$("body").addClass("lg-on"))),e.s.dynamic?(e.$el.trigger("onBeforeOpen.lg"),e.index=e.s.index||0,$("body").hasClass("lg-on")||setTimeout(function(){e.build(e.index),$("body").addClass("lg-on")})):e.$items.on("click.lgcustom",function(t){try{t.preventDefault(),t.preventDefault()}catch(e){t.returnValue=!1}e.$el.trigger("onBeforeOpen.lg"),e.index=e.s.index||e.$items.index(this),$("body").hasClass("lg-on")||(e.build(e.index),$("body").addClass("lg-on"))})},t.prototype.build=function(e){var t=this;t.structure(),$.each($.fn.lightGallery.modules,function(e){t.modules[e]=new $.fn.lightGallery.modules[e](t.el)}),t.slide(e,!1,!1),t.s.keyPress&&t.keyPress(),1<t.$items.length&&(t.arrow(),setTimeout(function(){t.enableDrag(),t.enableSwipe()},50),t.s.mousewheel)&&t.mousewheel(),t.counter(),t.closeGallery(),t.$el.trigger("onAfterOpen.lg"),t.$outer.on("mousemove.lg click.lg touchstart.lg",function(){t.$outer.removeClass("lg-hide-items"),clearTimeout(t.hideBartimeout),t.hideBartimeout=setTimeout(function(){t.$outer.addClass("lg-hide-items")},t.s.hideBarsDelay)})},t.prototype.structure=function(){var e="",t="",i=0,n="",o=this;for($("body").append('<div class="lg-backdrop"></div>'),$(".lg-backdrop").css("transition-duration",this.s.backdropDuration+"ms"),i=0;i<this.$items.length;i++)e+='<div class="lg-item"></div>';this.s.controls&&1<this.$items.length&&(t='<div class="lg-actions"><div class="lg-prev lg-icon">'+this.s.prevHtml+'</div><div class="lg-next lg-icon">'+this.s.nextHtml+"</div></div>"),".lg-sub-html"===this.s.appendSubHtmlTo&&(n='<div class="lg-sub-html"></div>'),t='<div class="lg-outer '+this.s.addClass+" "+this.s.startClass+'"><div class="lg" style="width:'+this.s.width+"; height:"+this.s.height+'"><div class="lg-inner">'+e+'</div><div class="lg-toolbar group"><span class="lg-close lg-icon"></span></div>'+t+n+"</div></div>",$("body").append(t),this.$outer=$(".lg-outer"),this.$slide=this.$outer.find(".lg-item"),this.s.useLeft?(this.$outer.addClass("lg-use-left"),this.s.mode="lg-slide"):this.$outer.addClass("lg-use-css3"),o.setTop(),$(window).on("resize.lg orientationchange.lg",function(){setTimeout(function(){o.setTop()},100)}),this.$slide.eq(this.index).addClass("lg-current"),this.doCss()?this.$outer.addClass("lg-css3"):(this.$outer.addClass("lg-css"),this.s.speed=0),this.$outer.addClass(this.s.mode),this.s.enableDrag&&1<this.$items.length&&this.$outer.addClass("lg-grab"),this.s.showAfterLoad&&this.$outer.addClass("lg-show-after-load"),this.doCss()&&((n=this.$outer.find(".lg-inner")).css("transition-timing-function",this.s.cssEasing),n.css("transition-duration",this.s.speed+"ms")),setTimeout(function(){$(".lg-backdrop").addClass("in")}),setTimeout(function(){o.$outer.addClass("lg-visible")},this.s.backdropDuration),this.s.download&&this.$outer.find(".lg-toolbar").append('<a id="lg-download" target="_blank" download class="lg-download lg-icon"></a>'),this.prevScrollTop=$(window).scrollTop()},t.prototype.setTop=function(){var e,t,i;"100%"!==this.s.height&&(t=((e=$(window).height())-parseInt(this.s.height,10))/2,i=this.$outer.find(".lg"),e>=parseInt(this.s.height,10)?i.css("top",t+"px"):i.css("top","0px"))},t.prototype.doCss=function(){return!!function(){for(var e=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],t=document.documentElement,i=0,i=0;i<e.length;i++)if(e[i]in t.style)return!0}()},t.prototype.isVideo=function(e,t){var i,n,o,a=this.s.dynamic?this.s.dynamicEl[t].html:this.$items.eq(t).attr("data-html");return!e&&a?{html5:!0}:(a=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i),i=e.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),n=e.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),o=e.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i),a?{youtube:a}:i?{vimeo:i}:n?{dailymotion:n}:o?{vk:o}:void 0)},t.prototype.counter=function(){this.s.counter&&$(this.s.appendCounterTo).append('<div id="lg-counter"><span id="lg-counter-current">'+(parseInt(this.index,10)+1)+'</span> / <span id="lg-counter-all">'+this.$items.length+"</span></div>")},t.prototype.addHtml=function(e){var t,i,n,o=null;this.s.dynamic?this.s.dynamicEl[e].subHtmlUrl?t=this.s.dynamicEl[e].subHtmlUrl:o=this.s.dynamicEl[e].subHtml:(i=this.$items.eq(e)).attr("data-sub-html-url")?t=i.attr("data-sub-html-url"):(o=i.attr("data-sub-html"),this.s.getCaptionFromTitleOrAlt&&!o&&(o=i.attr("title")||i.find("img").first().attr("alt"))),t||(null!=o?"."!==(n=o.substring(0,1))&&"#"!==n||(o=(this.s.subHtmlSelectorRelative&&!this.s.dynamic?i.find(o):$(o)).html()):o=""),".lg-sub-html"===this.s.appendSubHtmlTo?t?this.$outer.find(this.s.appendSubHtmlTo).load(t):this.$outer.find(this.s.appendSubHtmlTo).html(o):t?this.$slide.eq(e).load(t):this.$slide.eq(e).append(o),null!=o&&(""===o?this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html"):this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html")),this.$el.trigger("onAfterAppendSubHtml.lg",[e])},t.prototype.preload=function(e){for(var t=1,i=1,t=1;t<=this.s.preload&&!(t>=this.$items.length-e);t++)this.loadContent(e+t,!1,0);for(i=1;i<=this.s.preload&&!(e-i<0);i++)this.loadContent(e-i,!1,0)},t.prototype.loadContent=function(t,e,i){function n(e){for(var t=[],i=[],n=0;n<e.length;n++){var o=e[n].split(" ");""===o[0]&&o.splice(0,1),i.push(o[0]),t.push(o[1])}for(var a=$(window).width(),s=0;s<t.length;s++)if(parseInt(t[s],10)>a){r=i[s];break}}var r,o,a,s,l=this,d=!1,c=l.s.dynamic?(l.s.dynamicEl[t].poster&&(d=!0,o=l.s.dynamicEl[t].poster),s=l.s.dynamicEl[t].html,r=l.s.dynamicEl[t].src,l.s.dynamicEl[t].responsive&&n(l.s.dynamicEl[t].responsive.split(",")),a=l.s.dynamicEl[t].srcset,l.s.dynamicEl[t].sizes):(l.$items.eq(t).attr("data-poster")&&(d=!0,o=l.$items.eq(t).attr("data-poster")),s=l.$items.eq(t).attr("data-html"),r=l.$items.eq(t).attr("href")||l.$items.eq(t).attr("data-src"),l.$items.eq(t).attr("data-responsive")&&n(l.$items.eq(t).attr("data-responsive").split(",")),a=l.$items.eq(t).attr("data-srcset"),l.$items.eq(t).attr("data-sizes")),u=!1,_=(l.s.dynamic?l.s.dynamicEl[t].iframe&&(u=!0):"true"===l.$items.eq(t).attr("data-iframe")&&(u=!0),l.isVideo(r,t));if(!l.$slide.eq(t).hasClass("lg-loaded")){if(u?l.$slide.eq(t).prepend('<div class="lg-video-cont" style="max-width:'+l.s.iframeMaxWidth+'"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="'+r+'"  allowfullscreen="true"></iframe></div></div>'):d?(u="",u=_&&_.youtube?"lg-has-youtube":_&&_.vimeo?"lg-has-vimeo":"lg-has-html5",l.$slide.eq(t).prepend('<div class="lg-video-cont '+u+' "><div class="lg-video"><span class="lg-video-play"></span><img class="lg-object lg-has-poster" src="'+o+'" /></div></div>')):_?(l.$slide.eq(t).prepend('<div class="lg-video-cont "><div class="lg-video"></div></div>'),l.$el.trigger("hasVideo.lg",[t,r,s])):l.$slide.eq(t).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" src="'+r+'" /></div>'),l.$el.trigger("onAferAppendSlide.lg",[t]),u=l.$slide.eq(t).find(".lg-object"),c&&u.attr("sizes",c),a){u.attr("srcset",a);try{picturefill({elements:[u[0]]})}catch(e){console.error("Make sure you have included Picturefill version 2")}}".lg-sub-html"!==this.s.appendSubHtmlTo&&l.addHtml(t),l.$slide.eq(t).addClass("lg-loaded")}l.$slide.eq(t).find(".lg-object").on("load.lg error.lg",function(){var e=0;i&&!$("body").hasClass("lg-from-hash")&&(e=i),setTimeout(function(){l.$slide.eq(t).addClass("lg-complete"),l.$el.trigger("onSlideItemLoad.lg",[t,i||0])},e)}),_&&_.html5&&!d&&l.$slide.eq(t).addClass("lg-complete"),!0===e&&(l.$slide.eq(t).hasClass("lg-complete")?l.preload(t):l.$slide.eq(t).find(".lg-object").on("load.lg error.lg",function(){l.preload(t)}))},t.prototype.slide=function(e,t,i){var n,o,a,s,r,l=this.$outer.find(".lg-current").index(),d=this;d.lGalleryOn&&l===e||(n=this.$slide.length,r=d.lGalleryOn?this.s.speed:0,a=o=!1,d.lgBusy)||(this.s.download&&((s=d.s.dynamic?!1!==d.s.dynamicEl[e].downloadUrl&&(d.s.dynamicEl[e].downloadUrl||d.s.dynamicEl[e].src):"false"!==d.$items.eq(e).attr("data-download-url")&&(d.$items.eq(e).attr("data-download-url")||d.$items.eq(e).attr("href")||d.$items.eq(e).attr("data-src")))?($("#lg-download").attr("href",s),d.$outer.removeClass("lg-hide-download")):d.$outer.addClass("lg-hide-download")),this.$el.trigger("onBeforeSlide.lg",[l,e,t,i]),d.lgBusy=!0,clearTimeout(d.hideBartimeout),".lg-sub-html"===this.s.appendSubHtmlTo&&setTimeout(function(){d.addHtml(e)},r),this.arrowDisable(e),t?(s=e-1,r=e+1,(0===e&&l===n-1||e===n-1&&0===l)&&(r=0,s=n-1),this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide"),d.$slide.eq(s).addClass("lg-prev-slide"),d.$slide.eq(r).addClass("lg-next-slide"),d.$slide.eq(e).addClass("lg-current")):(d.$outer.addClass("lg-no-trans"),this.$slide.removeClass("lg-prev-slide lg-next-slide"),e<l?(a=!0,0!==e||l!==n-1||i||(o=!(a=!1))):l<e&&(o=!0,e!==n-1||0!==l||i||(o=!(a=!0))),a?(this.$slide.eq(e).addClass("lg-prev-slide"),this.$slide.eq(l).addClass("lg-next-slide")):o&&(this.$slide.eq(e).addClass("lg-next-slide"),this.$slide.eq(l).addClass("lg-prev-slide")),setTimeout(function(){d.$slide.removeClass("lg-current"),d.$slide.eq(e).addClass("lg-current"),d.$outer.removeClass("lg-no-trans")},50)),d.lGalleryOn?(setTimeout(function(){d.loadContent(e,!0,0)},this.s.speed+50),setTimeout(function(){d.lgBusy=!1,d.$el.trigger("onAfterSlide.lg",[l,e,t,i])},this.s.speed)):(d.loadContent(e,!0,d.s.backdropDuration),d.lgBusy=!1,d.$el.trigger("onAfterSlide.lg",[l,e,t,i])),d.lGalleryOn=!0,this.s.counter&&$("#lg-counter-current").text(e+1))},t.prototype.goToNextSlide=function(e){var t=this;t.lgBusy||(t.index+1<t.$slide.length?(t.index++,t.$el.trigger("onBeforeNextSlide.lg",[t.index]),t.slide(t.index,e,!1)):t.s.loop?(t.index=0,t.$el.trigger("onBeforeNextSlide.lg",[t.index]),t.slide(t.index,e,!1)):t.s.slideEndAnimatoin&&(t.$outer.addClass("lg-right-end"),setTimeout(function(){t.$outer.removeClass("lg-right-end")},400)))},t.prototype.goToPrevSlide=function(e){var t=this;t.lgBusy||(0<t.index?(t.index--,t.$el.trigger("onBeforePrevSlide.lg",[t.index,e]),t.slide(t.index,e,!1)):t.s.loop?(t.index=t.$items.length-1,t.$el.trigger("onBeforePrevSlide.lg",[t.index,e]),t.slide(t.index,e,!1)):t.s.slideEndAnimatoin&&(t.$outer.addClass("lg-left-end"),setTimeout(function(){t.$outer.removeClass("lg-left-end")},400)))},t.prototype.keyPress=function(){var t=this;1<this.$items.length&&$(window).on("keyup.lg",function(e){1<t.$items.length&&(37===e.keyCode&&(e.preventDefault(),t.goToPrevSlide()),39===e.keyCode)&&(e.preventDefault(),t.goToNextSlide())}),$(window).on("keydown.lg",function(e){!0===t.s.escKey&&27===e.keyCode&&(e.preventDefault(),t.$outer.hasClass("lg-thumb-open")?t.$outer.removeClass("lg-thumb-open"):t.destroy())})},t.prototype.arrow=function(){var e=this;this.$outer.find(".lg-prev").on("click.lg",function(){e.goToPrevSlide()}),this.$outer.find(".lg-next").on("click.lg",function(){e.goToNextSlide()})},t.prototype.arrowDisable=function(e){!this.s.loop&&this.s.hideControlOnEnd&&(e+1<this.$slide.length?this.$outer.find(".lg-next").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-next").attr("disabled","disabled").addClass("disabled"),0<e?this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-prev").attr("disabled","disabled").addClass("disabled"))},t.prototype.setTranslate=function(e,t,i){this.s.useLeft?e.css("left",t):e.css({transform:"translate3d("+t+"px, "+i+"px, 0px)"})},t.prototype.touchMove=function(e,t){var i=t-e;15<Math.abs(i)&&(this.$outer.addClass("lg-dragging"),this.setTranslate(this.$slide.eq(this.index),i,0),this.setTranslate($(".lg-prev-slide"),-this.$slide.eq(this.index).width()+i,0),this.setTranslate($(".lg-next-slide"),this.$slide.eq(this.index).width()+i,0))},t.prototype.touchEnd=function(e){var t=this;"lg-slide"!==t.s.mode&&t.$outer.addClass("lg-slide"),this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity","0"),setTimeout(function(){t.$outer.removeClass("lg-dragging"),e<0&&Math.abs(e)>t.s.swipeThreshold?t.goToNextSlide(!0):0<e&&Math.abs(e)>t.s.swipeThreshold?t.goToPrevSlide(!0):Math.abs(e)<5&&t.$el.trigger("onSlideClick.lg"),t.$slide.removeAttr("style")}),setTimeout(function(){t.$outer.hasClass("lg-dragging")||"lg-slide"===t.s.mode||t.$outer.removeClass("lg-slide")},t.s.speed+100)},t.prototype.enableSwipe=function(){var t=this,i=0,n=0,o=!1;t.s.enableSwipe&&t.isTouch&&t.doCss()&&(t.$slide.on("touchstart.lg",function(e){t.$outer.hasClass("lg-zoomed")||t.lgBusy||(e.preventDefault(),t.manageSwipeClass(),i=e.originalEvent.targetTouches[0].pageX)}),t.$slide.on("touchmove.lg",function(e){t.$outer.hasClass("lg-zoomed")||(e.preventDefault(),n=e.originalEvent.targetTouches[0].pageX,t.touchMove(i,n),o=!0)}),t.$slide.on("touchend.lg",function(){t.$outer.hasClass("lg-zoomed")||(o?(o=!1,t.touchEnd(n-i)):t.$el.trigger("onSlideClick.lg"))}))},t.prototype.enableDrag=function(){var t=this,i=0,n=0,o=!1,a=!1;t.s.enableDrag&&!t.isTouch&&t.doCss()&&(t.$slide.on("mousedown.lg",function(e){t.$outer.hasClass("lg-zoomed")||($(e.target).hasClass("lg-object")||$(e.target).hasClass("lg-video-play"))&&(e.preventDefault(),t.lgBusy||(t.manageSwipeClass(),i=e.pageX,o=!0,t.$outer.scrollLeft+=1,--t.$outer.scrollLeft,t.$outer.removeClass("lg-grab").addClass("lg-grabbing"),t.$el.trigger("onDragstart.lg")))}),$(window).on("mousemove.lg",function(e){o&&(a=!0,n=e.pageX,t.touchMove(i,n),t.$el.trigger("onDragmove.lg"))}),$(window).on("mouseup.lg",function(e){a?(a=!1,t.touchEnd(n-i),t.$el.trigger("onDragend.lg")):($(e.target).hasClass("lg-object")||$(e.target).hasClass("lg-video-play"))&&t.$el.trigger("onSlideClick.lg"),o&&(o=!1,t.$outer.removeClass("lg-grabbing").addClass("lg-grab"))}))},t.prototype.manageSwipeClass=function(){var e=this.index+1,t=this.index-1,i=this.$slide.length;this.s.loop&&(0===this.index?t=i-1:this.index===i-1&&(e=0)),this.$slide.removeClass("lg-next-slide lg-prev-slide"),-1<t&&this.$slide.eq(t).addClass("lg-prev-slide"),this.$slide.eq(e).addClass("lg-next-slide")},t.prototype.mousewheel=function(){var t=this;t.$outer.on("mousewheel.lg",function(e){e.deltaY&&(0<e.deltaY?t.goToPrevSlide():t.goToNextSlide(),e.preventDefault())})},t.prototype.closeGallery=function(){var t=this,i=!1;this.$outer.find(".lg-close").on("click.lg",function(){t.destroy()}),t.s.closable&&(t.$outer.on("mousedown.lg",function(e){i=!!($(e.target).is(".lg-outer")||$(e.target).is(".lg-item ")||$(e.target).is(".lg-img-wrap"))}),t.$outer.on("mouseup.lg",function(e){!($(e.target).is(".lg-outer")||$(e.target).is(".lg-item ")||$(e.target).is(".lg-img-wrap")&&i)||t.$outer.hasClass("lg-dragging")||t.destroy()}))},t.prototype.destroy=function(e){var t=this;e||t.$el.trigger("onBeforeClose.lg"),$(window).scrollTop(t.prevScrollTop),e&&(t.s.dynamic||this.$items.off("click.lg click.lgcustom"),$.removeData(t.el,"lightGallery")),this.$el.off(".lg.tm"),$.each($.fn.lightGallery.modules,function(e){t.modules[e]&&t.modules[e].destroy()}),this.lGalleryOn=!1,clearTimeout(t.hideBartimeout),this.hideBartimeout=!1,$(window).off(".lg"),$("body").removeClass("lg-on lg-from-hash"),t.$outer&&t.$outer.removeClass("lg-visible"),$(".lg-backdrop").removeClass("in"),setTimeout(function(){t.$outer&&t.$outer.remove(),$(".lg-backdrop").remove(),e||t.$el.trigger("onCloseAfter.lg")},t.s.backdropDuration+50)},$.fn.lightGallery=function(e){return this.each(function(){if($.data(this,"lightGallery"))try{$(this).data("lightGallery").init()}catch(e){console.error("lightGallery has not initiated properly")}else $.data(this,"lightGallery",new t(this,e))})},$.fn.lightGallery.modules={}}();var lightgallery_images=[],lightgallery_active=!1,lightgallery_index_current=0,lightgallery_force_scroll_to_big_image=!1,shipmondo_packageshop_iframe,shipmondo_packageshop_element,shipmondo_customer_address,shipmondo_customer_zip,shipmondo_customer_city,shipmondo_customer_country,coolrunner_packageshop_iframe,coolrunner_packageshop_element,coolrunner_customer_address,coolrunner_customer_zip,coolrunner_customer_city,coolrunner_customer_country,gls_packageshop_iframe,gls_packageshop_element,gls_customer_address,gls_customer_zip,gls_customer_city,gls_customer_country;function lightgallery_init(e){lightgallery_images=e,lightgallery_index_current=0,$(".lightgallery-image-thumbnail").on("click",function(e){lightgallery_force_scroll_to_big_image&&e.preventDefault(),lightgallery_image_set_main(this,parseInt(this.getAttribute("data-image-index")))}),$(".lightgallery-image-thumbnail a").each(function(){var e=$(this).find("img").attr("data-image-id");this.link_listener_content_load_callback=function(){lightgallery_force_scroll_to_big_image=!0,$('.lightgallery-image-thumbnail img[data-image-id="'+e+'"]').trigger("click")},this.link_listener_callback_after_final_scrolling=function(){lightgallery_force_scroll_to_big_image=!0,$('.lightgallery-image-thumbnail img[data-image-id="'+e+'"]').trigger("click")}}),$("#items-main-image-container").on("click",lightgallery_open)}function lightgallery_open(){let e=$(this).lightGallery({dynamic:!0,download:!1,index:lightgallery_index_current,dynamicEl:lightgallery_images});lightgallery_active=!0,window.history.pushState({type:"lightgallery_fs"},null,null),window_onpopstate_do_nothing=!0,window_onpopstate_do_nothing_callback=function(){$(e).data("lightGallery")&&$(e).data("lightGallery").destroy(!0),lightgallery_active=!1},$(this).off("onCloseAfter.lg").on("onCloseAfter.lg",function(){history.back()})}function lightgallery_main_image_constrain(){var i=$("#items-main-image-container"),n=parseInt(i.attr("data-large-image-max-height"));if(i.length){var o=i.width();let e=0;for(let t=0;t<lightgallery_images.length;t++){var a=lightgallery_images[t],a=Math.round(o/a.large_image_aspect);a>e&&(e=a)}0<e&&(e>n?i.css("height",n):i.css("height",e))}}function basket_discount_code_setup(){$(".discount-code-remove-button").length?($(".basket-discount-code-button-container").removeClass("show"),$("#basket-cash-sale-container .discount-code-button").hide()):($(".basket-discount-code-button-container").addClass("show"),$("#basket-cash-sale-container .discount-code-button").show()),$(".discount-code-remove-button").off("click").on("click",function(){confirm_nice(_t("Rabatkode"),_t("Er du sikker på at du ønsker at fjerne rabatkoden?"),function(){ajax_post("/basket/options_update","&type=discount_code&remove=1",function(e){1===e.result&&(self_destructing_message(_t("Rabatkoden blev fjernet")),basket_options_receive(e,{shipping_update:!1}))})})}),$(".discount-code-button").off("click").on("click",function(){prompt_nice(_t("Rabatkode"),'<div style="font-weight: bold;">'+_t("Indtast din rabatkode her")+"</div>","","text",function(e){ajax_post("/basket/options_update","&type=discount_code&code="+encodeURIComponent(e),function(e){var t;1===e.result&&(basket_options_receive(e,{shipping_update:!1}),(t=$("#basket-items-container-outer")).hasClass("minimized")&&alert_nice(!1,_t('Rabatkoden er tilføjet til din ordre. Tryk på "Vis indhold i kurven" for at se din nye pris.')),is_element_fully_in_viewport(t,!1)||scroll_to_element(t))})})})}function basket_order_placed_setup(){basket_empty(),setTimeout(function(){$("#order-placed-whiteout").remove()},5e3),$("#order-overview-show-link").on("click",function(){$("#order-overview-card").toggle()}),$(".customer-upload-files-button").on("click",function(){modal("","orders","customer_file_upload_modal",this.getAttribute("data-order-id"))}),$(".order-print-button").on("click",function(){var e=$(".order-html-container").clone();$("body").children().addClass("hide-when-printing"),$("body").append(e),window.print(),$(e).remove(),$("body").children().removeClass("hide-when-printing")})}function paypal_order(e){var n=JSON.parse(base64_decode(e));"en_EU"===n.locale&&(n.locale="en_GB"),paypal.Button.render({env:n.env,locale:n.locale,client:{sandbox:n.client_sandbox,production:n.client_production},payment:function(){var e=this.props.env,t=this.props.client;return paypal.rest.payment.create(e,t,{transactions:[n.transaction]})},commit:!0,onAuthorize:function(e,t){return t.payment.execute().then(function(e){var t="path=basket/paypal_client_callback&callback_data="+JSON.stringify(e);browserloading_start(),ajax(t,function(e){browserloading_stop(),1===e.result?window.location="/basket/payment_complete":e.error_msg?alert(e.error_msg):alert(_t("Der opstod et problem i forbindelse med din betaling",!1))},3e4,function(e){browserloading_stop(),e.error_msg?alert(e.error_msg):alert(_t("Der opstod et problem i forbindelse med din betaling",!1))},"post",!1)})},onCancel:function(){setTimeout(function(){alert(_t("Betalings processen blev afbrudt, tryk på knappen for at starte igen",!1))},500)},onError:function(i){setTimeout(function(){var e,t=i.toString();document.getElementById("paypal-button")&&("Error: Client ID not found for env: sandbox"===(e=t)?e=_t("Fejl: Klient ID ikke fundet i test miljø"):"Error: Client ID not found for env: production"===t?e=_t("Fejl: Klient ID ikke fundet i produktion miljø"):"invalid_client"===t&&"sandbox"===n.env&&(e=_t("Test miljøet hos PayPal er muligvis overbelastet, vent et par timer og prøv så igen")),document.getElementById("paypal-button").parentNode.innerHTML=_t('Der opstod en fejl i forbindelse med åbningen af PayPal vinduet<br><br><b>{1}</b><br><br>Tryk på "Tøm kurv", lav en ny ordre og vælg en anden betalingsmetode',!1,e),$("#order-cancel-button").css("display","inline-block")),setTimeout(function(){throw new Error("PayPal error: "+t)},0)},500)}},"#paypal-button").then(function(){document.getElementById("paypal-button").previousElementSibling.parentNode.removeChild(document.getElementById("paypal-button").previousElementSibling),document.getElementById("paypal-button").style.display="block"})}window.addEventListener("_resize_x",lightgallery_main_image_constrain),window.addEventListener("_item_page_loaded",lightgallery_main_image_constrain),!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(u){function e(e){return this.core=u(e).data("lightGallery"),this.$el=u(e),this.core.s=u.extend({},t,this.core.s),this.videoLoaded=!1,this.init(),this}var t;t={videoMaxWidth:"855px",autoplayFirstVideo:!0,youtubePlayerParams:!1,vimeoPlayerParams:!1,dailymotionPlayerParams:!1,vkPlayerParams:!1,videojs:!1,videojsOptions:{}},e.prototype.init=function(){var n=this;n.core.$el.on("hasVideo.lg.tm",(function(e,t,i,n){var o=this;if(o.core.$slide.eq(t).find(".lg-video").append(o.loadVideo(i,"lg-object",!0,t,n)),n)if(o.core.s.videojs)try{videojs(o.core.$slide.eq(t).find(".lg-html5").get(0),o.core.s.videojsOptions,function(){!o.videoLoaded&&o.core.s.autoplayFirstVideo&&this.play()})}catch(e){console.error("lightGallery:- Make sure you have included videojs")}else!o.videoLoaded&&o.core.s.autoplayFirstVideo&&o.core.$slide.eq(t).find(".lg-html5").get(0).play()}).bind(this)),n.core.$el.on("onAferAppendSlide.lg.tm",(function(e,t){var i=this.core.$slide.eq(t).find(".lg-video-cont");i.hasClass("lg-has-iframe")||(i.css("max-width",this.core.s.videoMaxWidth),this.videoLoaded=!0)}).bind(this)),n.core.doCss()&&1<n.core.$items.length&&(n.core.s.enableSwipe||n.core.s.enableDrag)?n.core.$el.on("onSlideClick.lg.tm",function(){var e=n.core.$slide.eq(n.core.index);n.loadVideoOnclick(e)}):n.core.$slide.on("click.lg",function(){n.loadVideoOnclick(u(this))}),n.core.$el.on("onBeforeSlide.lg.tm",(function(e,t,i){var n=(r=this.core.$slide.eq(t)).find(".lg-youtube").get(0),o=r.find(".lg-vimeo").get(0),a=r.find(".lg-dailymotion").get(0),s=r.find(".lg-vk").get(0),r=r.find(".lg-html5").get(0);if(n)n.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");else if(o)try{new Vimeo.Player(o).pause().catch(function(e){console.error("Unable to pause the video:",e.name)})}catch(e){console.warn("lightGallery:- Make sure you have included https://github.com/vimeo/player.js")}else if(a)a.contentWindow.postMessage("pause","*");else if(r)if(this.core.s.videojs)try{videojs(r).pause()}catch(e){console.error("lightGallery:- Make sure you have included videojs")}else r.pause();s&&u(s).attr("src",u(s).attr("src").replace("&autoplay","&noplay")),n=this.core.s.dynamic?this.core.s.dynamicEl[i].src:this.core.$items.eq(i).attr("href")||this.core.$items.eq(i).attr("data-src"),((o=this.core.isVideo(n,i)||{}).youtube||o.vimeo||o.dailymotion||o.vk)&&this.core.$outer.addClass("lg-hide-download")}).bind(this)),n.core.$el.on("onAfterSlide.lg.tm",function(e,t){n.core.$slide.eq(t).removeClass("lg-video-playing")}),n.core.s.autoplayFirstVideo&&n.core.$el.on("onAferAppendSlide.lg.tm",function(e,t){var i;n.core.lGalleryOn||(i=n.core.$slide.eq(t),setTimeout(function(){n.loadVideoOnclick(i)},100))})},e.prototype.loadVideo=function(e,t,i,n,o){var a,s="",r=1,l="",d=this.core.isVideo(e,n)||{},c=(c=this.core.s.dynamic?this.core.s.dynamicEl[this.core.index].title:this.core.$items.eq(this.core.index).attr("title")||this.core.$items.eq(this.core.index).find("img").first().attr("alt"))?'title="'+c+'"':"";return i&&(r=!this.videoLoaded&&this.core.s.autoplayFirstVideo?1:0),d.youtube?(l="?wmode=opaque&autoplay="+r+"&enablejsapi=1",this.core.s.youtubePlayerParams&&(l=l+"&"+u.param(this.core.s.youtubePlayerParams)),s='<iframe allow="autoplay" class="lg-video-object lg-youtube '+t+'" '+c+' width="560" height="315" src="//www.youtube.com/embed/'+d.youtube[1]+l+'" frameborder="0" allowfullscreen></iframe>'):d.vimeo?(l="?autoplay="+r,this.core.s.vimeoPlayerParams&&(l=l+"&"+u.param(this.core.s.vimeoPlayerParams)),s='<iframe allow="autoplay" class="lg-video-object lg-vimeo '+t+'" '+c+' width="560" height="315"  src="//player.vimeo.com/video/'+d.vimeo[1]+l+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'):d.dailymotion?(l="?wmode=opaque&autoplay="+r+"&api=postMessage",this.core.s.dailymotionPlayerParams&&(l=l+"&"+u.param(this.core.s.dailymotionPlayerParams)),s='<iframe allow="autoplay" class="lg-video-object lg-dailymotion '+t+'" '+c+' width="560" height="315" src="//www.dailymotion.com/embed/video/'+d.dailymotion[1]+l+'" frameborder="0" allowfullscreen></iframe>'):d.html5?s=o="."!==(a=o.substring(0,1))&&"#"!==a?o:u(o).html():d.vk&&(l="&autoplay="+r,this.core.s.vkPlayerParams&&(l=l+"&"+u.param(this.core.s.vkPlayerParams)),s='<iframe allow="autoplay" class="lg-video-object lg-vk '+t+'" '+c+' width="560" height="315" src="//vk.com/video_ext.php?'+d.vk[1]+l+'" frameborder="0" allowfullscreen></iframe>'),s},e.prototype.loadVideoOnclick=function(i){var n=this;if(i.find(".lg-object").hasClass("lg-has-poster")&&i.find(".lg-object").is(":visible"))if(i.hasClass("lg-has-video")){var e=i.find(".lg-youtube").get(0),t=i.find(".lg-vimeo").get(0),o=i.find(".lg-dailymotion").get(0),a=i.find(".lg-html5").get(0);if(e)e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else if(t)try{new Vimeo.Player(t).play().catch(function(e){console.error("error playing the video:",e.name)})}catch(i){console.warn("lightGallery:- Make sure you have included https://github.com/vimeo/player.js")}else if(o)o.contentWindow.postMessage("play","*");else if(a)if(n.core.s.videojs)try{videojs(a).play()}catch(i){console.error("lightGallery:- Make sure you have included videojs")}else a.play();i.addClass("lg-video-playing")}else{i.addClass("lg-video-playing lg-has-video");var s,e=function(e,t){if(i.find(".lg-video").append(n.loadVideo(e,"",!1,n.core.index,t)),t)if(n.core.s.videojs)try{videojs(n.core.$slide.eq(n.core.index).find(".lg-html5").get(0),n.core.s.videojsOptions,function(){this.play()})}catch(e){console.error("lightGallery:- Make sure you have included videojs")}else n.core.$slide.eq(n.core.index).find(".lg-html5").get(0).play()},t=n.core.s.dynamic?(s=n.core.s.dynamicEl[n.core.index].src,n.core.s.dynamicEl[n.core.index].html):(s=n.core.$items.eq(n.core.index).attr("href")||n.core.$items.eq(n.core.index).attr("data-src"),n.core.$items.eq(n.core.index).attr("data-html")),o=(e(s,t),i.find(".lg-object"));i.find(".lg-video").append(o),i.find(".lg-video-object").hasClass("lg-html5")||(i.removeClass("lg-complete"),i.find(".lg-video-object").on("load.lg error.lg",function(){i.addClass("lg-complete")}))}},e.prototype.destroy=function(){this.videoLoaded=!1},u.fn.lightGallery.modules.video=e}),window.addEventListener("_basket_updated",basket_discount_code_setup);const BASKET_SESSION_STORAGE_KEYS=["basket_step","zip_translated","zip_translated_status","zip_delivery_translated","zip_delivery_translated_status","basket_name","basket_name_delivery","basket_company","basket_company_delivery","basket_vat_id","basket_vat_id_delivery","basket_email","basket_email_delivery","basket_phone","basket_phone_delivery","basket_country","basket_country_delivery","basket_address","basket_address_delivery","basket_zip","basket_zip_delivery","basket_city","basket_city_delivery","basket_alternative_delivery_address"];function basket_setup(e){$("#basket-form").css("visibility",""),$("#basket-form").off("submit").on("submit",basket_submit),"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("basket_setup",e);var o=$("#basket-info-container"),t=(o.find("#name, #name_delivery, #phone, #phone_delivery, #address, #address_delivery").on("keyup",function(){basket_validate(this,"my_info")}).on("change",function(){basket_validate(this,"my_info")}),o.find("#email, #email_delivery").on("keyup change blur",function(e){basket_validate(this,"my_info",void 0,e)}),o.find('input[name="private_or_company"]').on("change",function(){var e=o.find("#company"),t=e.closest(".basket-element"),i=o.find("#vat_id"),n=i.closest(".basket-element");this.checked?(e.length&&!t.hasClass("hide")&&(e.attr("data-required","1"),t.show()),i.length&&!n.hasClass("hide")&&(i.attr("data-required","1"),n.show())):(e.length&&!t.hasClass("hide")&&(t.hide(),e.attr("data-required","0").val("").trigger("change")),i.length&&!n.hasClass("hide")&&(n.hide(),i.attr("data-required","0").val("").trigger("change")))}).trigger("change"),o.find("#company").on("keyup",function(){basket_validate(this,"my_info")}).on("change",function(){basket_validate(this,"my_info"),basket_options("payment_company",this.value)}),o.find('input[name="private_or_company_delivery"]').on("change",function(){var e=o.find("#company_delivery"),t=e.closest(".basket-element"),i=o.find("#vat_id_delivery"),n=i.closest(".basket-element");this.checked?(e.length&&!t.hasClass("hide")&&(e.attr("data-required","1"),t.show()),i.length&&!n.hasClass("hide")&&(i.attr("data-required","1"),n.show())):(e.length&&!t.hasClass("hide")&&(t.hide(),e.attr("data-required","0").val("").trigger("change")),i.length&&!n.hasClass("hide")&&(n.hide(),i.attr("data-required","0").val("").trigger("change")))}).trigger("change"),o.find("#company_delivery").on("keyup",function(){basket_validate(this,"my_info")}).on("change",function(){basket_validate(this,"my_info"),basket_options("delivery_company",this.value)}),o.find("#vat_id").on("keyup",function(){basket_validate(this,"my_info")}).on("change",function(){basket_validate(this,"my_info"),basket_options("payment_vat_id",this.value)}),o.find("#vat_id_delivery").on("keyup",function(){basket_validate(this,"my_info")}).on("change",function(){basket_validate(this,"my_info"),basket_options("delivery_vat_id",this.value)}),o.find("#country").on("change",function(){basket_validate(this,"my_info"),basket_options("payment_country",this.value)}),o.find("#country_delivery").on("change",function(){basket_validate(this,"my_info"),basket_options("delivery_country",this.value)}),o.find("#zip, #zip_delivery").on("input",function(e){basket_validate(this,"my_info",!1,e)}).on("change",function(e){basket_validate(this,"my_info",!1,e),basket_options(this.id,this.value)}),o.find("#city, #city_delivery").on("input",function(){basket_validate(this,"my_info")}),$(".basket-custom-element").on("input",function(){basket_validate(this,"my_info")}),$("select.basket-custom-element[multiple]")),i=(t.length&&ondemand_loading_bootstrap_select(function(){t.selectpicker()}),$(".basket-mobile-show-contents-in-basket-link .main").on("click",function(){scroll_to_element("#basket-items-container-outer")}),document.getElementById("basket-form")&&(document.getElementById("basket-form").addEventListener("keypress",function(e){13!==e.keyCode||void 0!==e.target&&void 0!==e.target.type&&"textarea"===e.target.type.toLowerCase()||e.preventDefault()}),basket_fill_from_local(e.billing_shipping_addresses,e.basket_data)),document.createEvent("Event"));i.initEvent("_basket_setup_done",!0,!0),window.dispatchEvent(i),window.dispatchEvent(new CustomEvent("_basket_updated",{detail:{basket_data:e.basket_data}}))}function basket_fill_from_local(t,e){if(BASKET_REFRESH_ACTUAL_BASKET_COUNTER=0,!getsessionstorage("basket_name")&&t&&Object.keys(t).length){if(void 0!==t.billing){var i,n={name:"name",company:"company",vat_id:"vat_id",email:"email",phone:"phone",country:"country",address:"address",zip:"zip",city:"city"};for(i in n){var o=n[i];t.billing[i]&&(document.getElementById(o).value=t.billing[i],basket_validate(document.getElementById(o),"my_info"))}if(t.billing.custom)for(var a in t.billing.custom){let e=t.billing.custom[a];$('.basket-custom-element[data-id="'+a+'"]').each(function(){"input"===this.nodeName.toLowerCase()&&"checkbox"===this.type.toLowerCase()?""!==e&&(this.checked=!0):this.value=e})}(t.billing.company||t.billing.vat_id)&&(r=$('#basket-info-container input[name="private_or_company"]')).length&&!r.prop("checked")&&r.prop("checked",!0).trigger("change").trigger("input")}if(void 0!==t.shipping){var s,r,l={name:"name_delivery",company:"company_delivery",vat_id:"vat_id_delivery",email:"email_delivery",phone:"phone_delivery",country:"country_delivery",address:"address_delivery",zip:"zip_delivery",city:"city_delivery"};for(s in l){var d=l[s];t.shipping[s]&&(document.getElementById(d).value=t.shipping[s],basket_validate(document.getElementById(d),"my_info"))}if(t.shipping.custom)for(var c in t.shipping.custom){let e=t.shipping.custom[c];$('.basket-custom-element[data-id="'+c+'"]').each(function(){"input"===this.nodeName.toLowerCase()&&"checkbox"===this.type.toLowerCase()?""!==e&&(this.checked=!0):this.value=e})}(t.shipping.company||t.shipping.vat_id)&&(r=$('#basket-info-container input[name="private_or_company_delivery"]')).length&&!r.prop("checked")&&r.prop("checked",!0).trigger("change").trigger("input")}}else if(document.getElementById("name")){document.getElementById("name").value=getsessionstorage("basket_name"),document.getElementById("name_delivery").value=getsessionstorage("basket_name_delivery"),document.getElementById("company").value=getsessionstorage("basket_company"),document.getElementById("company_delivery").value=getsessionstorage("basket_company_delivery"),document.getElementById("vat_id").value=getsessionstorage("basket_vat_id"),document.getElementById("vat_id_delivery").value=getsessionstorage("basket_vat_id_delivery"),document.getElementById("email").value=getsessionstorage("basket_email"),document.getElementById("email_delivery").value=getsessionstorage("basket_email_delivery"),document.getElementById("phone").value=getsessionstorage("basket_phone"),document.getElementById("phone_delivery").value=getsessionstorage("basket_phone_delivery");for(var u=0;u<document.getElementById("country").options.length;u++)if(document.getElementById("country").options[u].value===getsessionstorage("basket_country")){document.getElementById("country").value=getsessionstorage("basket_country");break}for(u=0;u<document.getElementById("country_delivery").options.length;u++)if(document.getElementById("country_delivery").options[u].value===getsessionstorage("basket_country_delivery")){document.getElementById("country_delivery").value=getsessionstorage("basket_country_delivery");break}document.getElementById("address").value=getsessionstorage("basket_address"),document.getElementById("address_delivery").value=getsessionstorage("basket_address_delivery"),document.getElementById("zip").value=getsessionstorage("basket_zip"),document.getElementById("zip_delivery").value=getsessionstorage("basket_zip_delivery"),document.getElementById("city").value=getsessionstorage("basket_city"),document.getElementById("city_delivery").value=getsessionstorage("basket_city_delivery"),$(".basket-custom-element").each(function(){var e=getsessionstorage("basket_custom_element_"+this.getAttribute("data-id"));if(null!==e)if("input"===this.nodeName.toLowerCase()&&"checkbox"===this.type.toLowerCase()){var t=this.checked;1===parseInt(e)?this.checked=!0:this.checked=!1,t!==this.checked&&-1<["private_or_company","private_or_company_delivery"].indexOf(this.name)&&$(this).trigger("change")}else if("select"===this.nodeName.toLowerCase()){var i=e;for(let t=0;t<i.length;t++){var n=i[t];for(let e=0;e<this.options.length;e++)this.options[e].value===n&&(this.options[e].selected=!0)}}else this.value=e})}document.getElementById("country")&&"dk"===document.getElementById("country").value&&(document.getElementById("city").value=""),document.getElementById("country_delivery")&&"dk"===document.getElementById("country_delivery").value&&(document.getElementById("city_delivery").value=""),getsessionstorage("zip_translated")&&"false"!==getsessionstorage("zip_translated")&&basket_zip_city_fetch("zip"),getsessionstorage("zip_delivery_translated")&&"false"!==getsessionstorage("zip_delivery_translated")&&basket_zip_city_fetch("zip_delivery"),getsessionstorage("basket_step")&&"my_info"!==getsessionstorage("basket_step")&&(radio_checked_by_name("shipping_method")?radio_checked_by_name("payment_method")||setsessionstorage("basket_step","payment"):setsessionstorage("basket_step","shipping")),basket_new_step_activated(e),"true"===getsessionstorage("basket_alternative_delivery_address")&&(document.getElementById("alternative_delivery_address").checked=!0,$("#alternative_delivery_address_container").collapse("show")),basket_validate(!1,"my_info"),0===BASKET_REFRESH_ACTUAL_BASKET_COUNTER&&basket_refresh_actual_basket()}function basket_add(){if($(".item-page .item-buy-button.item-has-active-variants").length)alert_nice(!1,_t("Vælg først variant"));else{var e=items_custom_fields_validation();if(!1!==e){var t=items_options_validation();if(!1!==t){var i=items_booking_validation();if(!1!==i){var n=!!document.getElementById("basket_add_price")&&document.getElementById("basket_add_price").value,o=!!document.getElementById("basket_add_quantity")&&parseInt(document.getElementById("basket_add_quantity").innerHTML);if(!1===n||!1===o)return alert_nice(_t("Ukendt fejl"),_t("Der opstod en ukendt fejl - Prøv og genopfrisk siden")),!1;if(!is_numeric(o)||o<1)return alert_nice(_t("Fejl i antal"),_t("Antal skal være et tal")),!1;n=$("select.variant-groups-actual-select");if(n.length){var a=!1;if(n.each(function(){if(""===this.value)return!(a=!0)}),a)return alert_nice(_t("Fejl"),_t("Du skal vælge noget i alle felter for at købe varen")),!1}var n=document.getElementById("items_id").value,s=document.getElementById("variants_id").value,n=(browserloading_start(),"&items_id="+n+"&quantity="+o+e+t+i);s&&(n+="&variants_id="+s),ajax_post("/basket/add",n,basket_add_receive,basket_add_error)}}}}}function basket_add_from_item_box(e,t,i,n){if(e.stopPropagation(),e.preventDefault(),!is_numeric(n)||n<1)return!1;browserloading_start();var o="&items_id="+t+"&quantity="+n;i&&(o+="&variants_id="+i),ajax_post("/basket/add",o,function(e){browserloading_stop(),-1!==e.result&&("overlay_shown"!==basket_add_receive(e)&&self_destructing_message(_pt("Varen er lagt i kurven")),0===window.location.pathname.indexOf("/basket"))&&basket_refresh_actual_basket()},basket_add_error)}function basket_add_from_item_box_quantity_selector(t,i,n){t.stopPropagation(),t.preventDefault(),prompt_nice(_t("Indtast den ønskede mængde"),"",1,"number",function(e){is_numeric(e)&&0<e&&basket_add_from_item_box(t,i,n,e)})}function basket_add_receive(e){if(browserloading_stop(),-1!==e.result){var n,t=parseInt(document.getElementsByClassName("basket-badge")[0].innerHTML.trim());if(basket_set_badge(e.basket_data),e.subscription_item_added)content_load("basket");else{if("function"==typeof basket_slide_in_basket_show)return basket_slide_in_basket_show(),"overlay_shown";if("function"==typeof basket_popup_basket_show)return basket_popup_basket_show(),"overlay_shown";if(0===t||isNaN(t)){var i,o,a,s,t=$(".basket-icon-outer-container:visible")[0];if(t)return window._g_basket_highlight_overlay_remove_element=t,document.body.getAttribute("data-top-menu-fixed")&&document.body.getAttribute("data-top-menu-fixed-allowed")||window.scrollTo({top:0,left:0,behavior:"instant"}),(a=document.createElement("div")).id="basket-fill-veil",a.className="basket-container-clone-overlay-element",a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.width="100vw",a.style.height="100vh",a.style.zIndex="10049",a.style.backgroundColor="#000",a.style.opacity="0.5",document.body.appendChild(a),a=t.getBoundingClientRect(),s=getComputedStyle(t),i=t.cloneNode(!0),o=a.top+parseInt(s.paddingTop),a=a.left-parseInt(s.paddingLeft),i.id="basket-container-clone",i.classList.add("basket-container-clone-overlay-element"),i.style.position="fixed",i.style.zIndex="10049",i.style.top=o+"px",i.style.left=a+"px",i.style.margin=0,i.style.fontSize=s.fontSize,document.body.appendChild(i),t.style.visibility="hidden",o=i.getBoundingClientRect(),a=window.innerWidth<768?100:200,(s=document.createElement("img")).onload=(n=a,function(){var e=$("#basket-container-clone .basket-icon-inner-container")[0].getBoundingClientRect(),e=e.left+e.width/2,e=(this.style.left=e-n/100*65.6+"px",this.style.visibility="visible",this.getBoundingClientRect()),t=document.createElement("div"),i=window.innerWidth<768?150:250;t.innerHTML=_pt("Din vare er lagt i kurven"),t.className="basket-container-clone-overlay-element",t.style.width=i+"px",t.style.zIndex="10049",t.style.position="fixed",t.style.color="#FFF",t.style.fontSize=window.innerWidth<768?"28px":"36px",document.body.appendChild(t),t.style.top=e.top+e.height/2-t.getBoundingClientRect().height/2+"px",t.style.left=e.left-t.getBoundingClientRect().width+"px",add_link_listeners(),window.addEventListener("click",basket_highlight_overlay_remove),window.addEventListener("resize",basket_highlight_overlay_remove),window.addEventListener("scroll",basket_highlight_overlay_remove)}),s.src="https://"+CDN_TO_USE_HOSTNAME+"/images/idealshop/arrow_curved.png",s.className="basket-container-clone-overlay-element",s.style.width=a+"px",s.style.visibility="hidden",s.style.zIndex="10049",s.style.position="fixed",s.style.top=o.bottom+15+"px",document.body.appendChild(s),"overlay_shown"}}return!0}}function basket_set_badge(e){var t;e&&void 0!==e.sums&&0<parseInt(e.sums.items_total)?(t=parseInt(e.sums.items_total),$(".basket-badge").text(9<t?"9+":t),$(".basket-amount").text(e.basket_show_amount_at_icon_text),window.dispatchEvent(new CustomEvent("_after_basket_set_badge",{detail:{items_in_basket:t}}))):($(".basket-amount").text(""),$(".basket-badge").text(""),window.dispatchEvent(new CustomEvent("_after_basket_set_badge",{detail:{items_in_basket:0}})))}function basket_quantity_update(e,t){"remove"===t?confirm_nice(_t("Fjern vare fra kurv?"),_t("Er du sikker på at du ønsker at fjerne varen fra kurven?"),function(){basket_quantity_update(e,"remove_do")}):("remove_do"===t&&(t="remove"),browserloading_start(),ajax_post("/basket/quantity_update","&basket_id="+e+"&change="+t,basket_update_receive,basket_update_error))}function basket_update_receive(e){var t,i;"string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("basket_update_receive",e),browserloading_stop(),1===e.result?(basket_set_badge(e.basket_data),e.available_shipping_methods_changed?(modal_simple(_t("Tilgængelige fragtmetoder har ændret sig"),_t("Tilgængelige fragtmetoder har ændret sig, gennnemgå venligst alle oplysninger igen, for at sikre at de er korrekte.")),setsessionstorage("basket_step","my_info"),pageload(e)):(document.getElementById("basket_container")&&(document.getElementById("basket_container").innerHTML=e.basket_data.basket_html,document.getElementById("basket_container").style.opacity="1",document.getElementById("basket-shipping-contents").innerHTML=e.shipping_html,document.getElementById("basket-payment-contents").innerHTML=e.payment_html,document.getElementById("expected_price_input")&&(document.getElementById("expected_price_input").value=e.basket_data.sums.final_price),e.confirm_html&&(t=$("#terms_accept_label input").prop("checked"),i=$("#subscription_terms_accept_label input").prop("checked"),document.getElementById("basket-confirm-contents").innerHTML=e.confirm_html,t&&($("#terms_accept_label input").prop("checked","checked"),$("#terms_accept_label input").trigger("change")),i&&($("#subscription_terms_accept_label input").prop("checked","checked"),$("#subscription_terms_accept_label input").trigger("change")),(t=$("#basket-comments-textarea textarea")).length)&&""!==t.val()&&basket_comments_add_show(),0<e.basket_data.items.length&&Boolean(e.basket_data.skip_shipping_step)!==Boolean($('#basket-form[data-skip-shipping-step="1"]').length)&&!0!==window._g_basket_skip_shipping_step_reload_in_progress&&(window._g_basket_skip_shipping_step_reload_in_progress=!0,Boolean(e.basket_data.skip_shipping_step)?(setsessionstorage("basket_step","payment"),(i=$('#basket-shipping-contents input[name="shipping_method"]').first())[0].checked=!0,basket_options("shipping_method",i.val(),function(){setsessionstorage("basket_step","my_info"),content_load("basket",void 0,function(){window._g_basket_skip_shipping_step_reload_in_progress=!1})})):content_load("basket",void 0,function(){window._g_basket_skip_shipping_step_reload_in_progress=!1})),0<e.basket_data.items.length)&&Boolean(e.basket_data.skip_address)!==Boolean($('#basket-form[data-skip-address="1"]').length)&&(setsessionstorage("basket_step","my_info"),content_load("basket")),0===e.basket_data.items.length&&0===window.location.pathname.indexOf("/basket")&&content_load("basket"),after_load_setup(),basket_new_step_activated(e.basket_data),window.dispatchEvent(new CustomEvent("_basket_updated",{detail:{basket_data:e.basket_data}})))):e.error_msg_alerted&&modal_current_page_dirty_set()}function basket_quantity_update_user_entry(t,i){prompt_nice(_t("Indtast den ønskede mængde"),"",t.innerHTML.trim(),"number",function(e){is_numeric(e)&&0<=e&&(t.innerHTML=e,ajax_post("/basket/quantity_update","&basket_id="+i+"&quantity_new="+e,basket_update_receive,basket_update_error))})}function basket_highlight_overlay_remove(){for(window.removeEventListener("click",basket_highlight_overlay_remove),window.removeEventListener("resize",basket_highlight_overlay_remove),window.removeEventListener("scroll",basket_highlight_overlay_remove);document.getElementsByClassName("basket-container-clone-overlay-element").length;)document.getElementsByClassName("basket-container-clone-overlay-element")[0].parentNode.removeChild(document.getElementsByClassName("basket-container-clone-overlay-element")[0]);window._g_basket_highlight_overlay_remove_element.style.visibility="visible"}function basket_add_error(){alert(_t("Noget gik galt",!1)),browserloading_stop()}function basket_update_error(){alert(_t("Noget gik galt",!1)),browserloading_stop()}function basket_next(e,t){if(basket_validate(e,t,!0)){if($(e).tooltip("hide"),"my_info"===t)$('#basket-form[data-skip-shipping-step="1"]').length?setsessionstorage("basket_step","payment"):setsessionstorage("basket_step","shipping"),site_events_log({type:"checkout-customer-info-done",payment_email:$("#email").val(),payment_name:$("#name").val(),payment_company:$("#company").val(),shipping_email:($("#alternative_delivery_address").is(":checked")?$("#email_delivery"):$("#email")).val(),shipping_name:($("#alternative_delivery_address").is(":checked")?$("#name_delivery"):$("#name")).val(),shipping_company:($("#alternative_delivery_address").is(":checked")?$("#company_delivery"):$("#company")).val()});else if("shipping"===t){if(!radio_checked_by_name("shipping_method"))return alert(_t("Du skal vælge en fragtmetode",!1)),!1;setsessionstorage("basket_step","payment"),site_events_log({type:"checkout-shipping-info-done",method:$('input[name="shipping_method"]:checked').attr("data-text")})}else if("payment"===t){if(!radio_checked_by_name("payment_method"))return alert(_t("Du skal vælge en betalingsmetode",!1)),!1;site_events_log({type:"checkout-payment-info-done",method:$('input[name="payment_method"]:checked').attr("data-text")}),setsessionstorage("basket_step","confirm")}basket_new_step_activated()}}function basket_prev(e){"shipping"===e&&$('#basket-form[data-skip-shipping-step="1"]').length?setsessionstorage("basket_step","my_info"):setsessionstorage("basket_step",e),basket_new_step_activated()}function basket_new_step_activated(e){var t,i,n,o;document.getElementById("basket-info-container")&&(void 0===e?e=window._g_basket_data:window._g_basket_data=e,$(".basket-step-navigation").off("click"),null===(t=getsessionstorage("basket_step"))&&(t="my_info"),o=!1,$("#basket-items-container-outer[data-initialized]").length||(o=!0,$("#basket-items-container-outer").attr("data-initialized","1"),$("#basket-items-container-outer .basket-contents-toggle").html(_t("Skjul indhold i kurven >")),$("#basket-items-container-outer .basket-contents-toggle").off("click").on("click",function(){$("#basket-items-container-outer").attr("data-manually-minimized","1");var e,t=$("#basket-items-container-outer .card-body");$("#basket-items-container-outer.minimized").length?($("#basket-items-container-outer").removeClass("minimized"),t.height("auto"),0===t.height()&&t.height("100%"),e=t.height(),t.height("0"),t[0].offsetHeight,t.height(e),$("#basket-items-container-outer .basket-contents-toggle").html(_t("Skjul indhold i kurven >")),css_transition_end_setup(t[0],function(e){e.style.height=""})):(t.height("auto"),0===t.height()&&t.height("100%"),t.height(t.height()),t[0].offsetHeight,$("#basket-items-container-outer").addClass("minimized"),$("#basket-items-container-outer .basket-contents-toggle").html(_t("Vis indhold i kurven >")))})),window.innerWidth<768&&($('#basket-form[data-basket-contents-after-first-step-mobile="minimized"]').length&&!$("#basket-items-container-outer[data-manually-minimized]").length&&(i=$("#basket-items-container-outer .card-body"),"my_info"===t?$("#basket-items-container-outer.minimized").length&&($("#basket-items-container-outer").removeClass("minimized"),i.height("auto"),0===i.height()&&i.height("100%"),n=i.height(),i.height("0"),i[0].offsetHeight,i.height(n),$("#basket-items-container-outer .basket-contents-toggle").html(_t("Skjul indhold i kurven >")),css_transition_end_setup(i[0],function(e){e.style.height=""})):$("#basket-items-container-outer.minimized").length||(i.height("auto"),0===i.height()&&i.height("100%"),o||(i.height(i.height()),i[0].offsetHeight),$("#basket-items-container-outer").addClass("minimized"),$("#basket-items-container-outer .basket-contents-toggle").html(_t("Vis indhold i kurven >")))),$('#basket-form[data-basket-contents-after-first-step-mobile="hide"]').length)&&("my_info"===t?$("#basket-items-container-outer").removeClass("hide"):$("#basket-items-container-outer").addClass("hide")),"my_info"===t?($("#basket-info-container").collapse("show"),$("#basket-shipping-container").collapse("hide"),$("#basket-payment-container").collapse("hide"),$("#basket-confirm-container").collapse("hide"),$(".basket-step-navigation").removeClass("completed"),site_events_log({type:"checkout-customer-info",basket_data:e,unique_id:n=uniqid()}),ajax_post("/ajax/events","&event=checkout-customer-info&unique_id="+n)):"shipping"===t?(radio_checked_by_name("shipping_method")&&radio_checked_by_name("shipping_method",!0).onchange(),$("#basket-shipping-container").collapse("show"),$("#basket-info-container").collapse("hide"),$("#basket-payment-container").collapse("hide"),$("#basket-confirm-container").collapse("hide"),$('.basket-step-navigation[data-step-key="my_info"]').addClass("completed"),$('.basket-step-navigation[data-step-key="shipping"]').removeClass("completed"),$('.basket-step-navigation[data-step-key="payment"]').removeClass("completed"),$('.basket-step-navigation[data-step-key="my_info"]').on("click",function(){basket_prev("my_info")}),site_events_log({type:"checkout-shipping-info",basket_data:e})):"payment"===t?(radio_checked_by_name("payment_method")&&radio_checked_by_name("payment_method",!0).onchange(),$("#basket-payment-container").collapse("show"),$("#basket-info-container").collapse("hide"),$("#basket-shipping-container").collapse("hide"),$("#basket-confirm-container").collapse("hide"),$('.basket-step-navigation[data-step-key="my_info"]').addClass("completed"),$('.basket-step-navigation[data-step-key="shipping"]').addClass("completed"),$('.basket-step-navigation[data-step-key="payment"]').removeClass("completed"),$('.basket-step-navigation[data-step-key="my_info"]').on("click",function(){basket_prev("my_info")}),$('.basket-step-navigation[data-step-key="shipping"]').on("click",function(){basket_prev("shipping")}),site_events_log({type:"checkout-payment-info",basket_data:e})):"confirm"===t&&((o=$("#basket-comments-textarea textarea")).length&&""!==o.val()&&basket_comments_add_show(),$("#basket-confirm-container").collapse("show"),$("#basket-info-container").collapse("hide"),$("#basket-shipping-container").collapse("hide"),$("#basket-payment-container").collapse("hide"),$('.basket-step-navigation[data-step-key="my_info"]').addClass("completed"),$('.basket-step-navigation[data-step-key="shipping"]').addClass("completed"),$('.basket-step-navigation[data-step-key="payment"]').addClass("completed"),$('.basket-step-navigation[data-step-key="my_info"]').on("click",function(){basket_prev("my_info")}),$('.basket-step-navigation[data-step-key="shipping"]').on("click",function(){basket_prev("shipping")}),$('.basket-step-navigation[data-step-key="payment"]').on("click",function(){basket_prev("payment")}),site_events_log({type:"checkout-confirm",basket_data:e})),$("#basket-form").attr("data-basket-step",t),after_load_setup(),window.dispatchEvent(new CustomEvent("_basket_updated",{detail:{basket_data:e}})),window.innerWidth<768)&&0<window.pageYOffset&&scroll_to_element("#basket-form")}function basket_validate(obj,type,highlight_now,event){if(document.getElementById("basket-info-container")){event&&event.stopPropagation();var errors_found=!1,elem;if("my_info"===type){const skip_address=$('#basket-form[data-skip-address="1"]').length;basket_setup_based_on_country();var zip_required=!0,selected_index,option,zip_delivery_required=(document.getElementById("country")&&(selected_index=document.getElementById("country").selectedIndex,-1===selected_index&&(selected_index=0),option=document.getElementById("country").options[selected_index],"optional"===option.getAttribute("data-zip-availability")?($("#zip").attr("data-required","0"),zip_required=!1):$("#zip").attr("data-required","1"),skip_address)&&(zip_required=!1),!0),selected_index,option,perform_test,email_to_check,perform_test,email_to_check;if(document.getElementById("country_delivery")&&(selected_index=document.getElementById("country_delivery").selectedIndex,-1===selected_index&&(selected_index=0),option=document.getElementById("country_delivery").options[selected_index],"optional"===option.getAttribute("data-zip-availability")?($("#zip_delivery").attr("data-required","0"),zip_delivery_required=!1):$("#zip_delivery").attr("data-required","1"),skip_address)&&(zip_delivery_required=!1),obj){var value=obj.value;if("checkbox"===obj.type&&(value=obj.checked),"zip"===obj.id&&document.getElementById("country")&&"dk"===document.getElementById("country").value&&(document.getElementById("zip").value=document.getElementById("zip").value.replace(/[^0-9]/gm,""),getsessionstorage("zip_translated")!==document.getElementById("zip").value)&&(document.getElementById("city").value=""),"country"===obj.id&&(setsessionstorage("zip_translated",""),setsessionstorage("zip_translated_status",0),document.getElementById("zip").value="",document.getElementById("city").value=""),"country_delivery"===obj.id&&(setsessionstorage("zip_delivery_translated",""),setsessionstorage("zip_delivery_translated_status",0),document.getElementById("zip_delivery").value="",document.getElementById("city_delivery").value=""),"zip_delivery"===obj.id&&document.getElementById("country_delivery")&&"dk"===document.getElementById("country_delivery").value&&(document.getElementById("zip_delivery").value=document.getElementById("zip_delivery").value.replace(/[^0-9]/gm,""),getsessionstorage("zip_delivery_translated")!==document.getElementById("zip_delivery").value)&&(document.getElementById("city_delivery").value=""),"alternative_delivery_address"===obj.id&&(obj.checked?$("#alternative_delivery_address_container").collapse("show"):$("#alternative_delivery_address_container").collapse("hide")),obj.classList.contains("basket-custom-element"))if("input"===obj.nodeName.toLowerCase()&&"checkbox"===obj.type.toLowerCase())obj.checked?setsessionstorage("basket_custom_element_"+obj.getAttribute("data-id"),1):setsessionstorage("basket_custom_element_"+obj.getAttribute("data-id"),0);else if("select"===obj.nodeName.toLowerCase()){var values_to_save=[];if(obj.multiple)for(var x=0;x<obj.length;x++){var opt=obj[x];opt.selected&&values_to_save.push(opt.value)}else values_to_save.push(obj.value);setsessionstorage("basket_custom_element_"+obj.getAttribute("data-id"),values_to_save)}else setsessionstorage("basket_custom_element_"+obj.getAttribute("data-id"),value);else""!==obj.id&&setsessionstorage("basket_"+obj.id,value)}highlight_now&&$(".basket-input-error-message").hide(),document.getElementById("name").value.trim().length<3&&(highlight_now&&$("#basket_name_errormsg").show(),errors_found=!0);let company=document.getElementById("company").value.trim(),vat_id=("1"===document.getElementById("company").getAttribute("data-required")&&company.length<1&&(highlight_now&&$("#basket_company_errormsg").show(),errors_found=!0),document.getElementById("vat_id").value.trim());if("1"===document.getElementById("vat_id").getAttribute("data-required")&&vat_id.length<1)highlight_now&&$("#basket_vat_id_errormsg").show(),errors_found=!0;else if(vat_id.length){let invalid_vat_id=!1;document.getElementById("country")&&"dk"===document.getElementById("country").value&&-1<vat_id.indexOf("@")&&(invalid_vat_id=!0),company===vat_id&&(invalid_vat_id=!0),invalid_vat_id&&($("#vat_id").val("").trigger("change"),alert_nice(!1,_t("Det ser ud til at du har indtastet et ugyldigt CVR nummer ({1})",vat_id)))}if(document.getElementById("email").value&&(document.getElementById("email").value=document.getElementById("email").value.trim()),verify_email(document.getElementById("email").value)?(perform_test=!1,obj&&"email"===obj.id&&(!event||"change"!==event.type&&"blur"!==event.type)||(perform_test=!0),perform_test&&(void 0===window._g_basket_validate_emails_checked&&(window._g_basket_validate_emails_checked={}),email_to_check=document.getElementById("email").value,void 0===window._g_basket_validate_emails_checked[email_to_check])&&(window._g_basket_validate_emails_checked[email_to_check]=1,ajax_post("/ajax/validate_email","&email="+encodeURIComponent(email_to_check),function(e){var t;e.problem&&alert_nice(!1,t="common-typo"!==e.problem&&"non-existent-tld"!==e.problem&&"dns_get_record-failed"!==e.problem?t:_t("Det ser ud til at du har indtastet en ugyldig e-mail adresse ({1})",email_to_check),function(){"my_info"!==getsessionstorage("basket_step")&&basket_prev("my_info"),$("#email").val($("#email").val().split("@")[0]+"@").focus()})}))):(highlight_now&&$("#basket_email_errormsg").show(),errors_found=!0),"1"===document.getElementById("phone").getAttribute("data-required")&&document.getElementById("phone").value.trim().length<1&&(highlight_now&&$("#basket_phone_errormsg").show(),errors_found=!0),skip_address||document.getElementById("address").value.trim().length<3&&(highlight_now&&$("#basket_address_errormsg").show(),errors_found=!0),skip_address||(document.getElementById("country")&&"dk"===document.getElementById("country").value?(document.getElementById("zip").value<800||9999<document.getElementById("zip").value?(setsessionstorage("zip_translated_status",0),setsessionstorage("zip_translated",!1),highlight_now&&$("#basket_zip_errormsg").show(),errors_found=!0):getsessionstorage("zip_translated")!==document.getElementById("zip").value&&(highlight_now&&$("#basket_zip_errormsg").show(),errors_found=!0,basket_zip_city_fetch("zip")),1!==parseInt(getsessionstorage("zip_translated_status"))&&(highlight_now&&$("#basket_zip_errormsg").show(),errors_found=!0)):(zip_required&&document.getElementById("zip").value.trim().length<2&&(highlight_now&&$("#basket_zip_errormsg").show(),errors_found=!0),document.getElementById("city").value.trim().length<3&&(highlight_now&&$("#basket_city_errormsg").show(),errors_found=!0))),!0===document.getElementById("alternative_delivery_address").checked){document.getElementById("name_delivery").value.trim().length<3&&(highlight_now&&$("#basket_name_delivery_errormsg").show(),errors_found=!0);let company_delivery=document.getElementById("company_delivery").value.trim(),vat_id_delivery=("1"===document.getElementById("company_delivery").getAttribute("data-required")&&company_delivery.length<1&&(highlight_now&&$("#basket_company_delivery_errormsg").show(),errors_found=!0),document.getElementById("vat_id_delivery").value.trim());if("1"===document.getElementById("vat_id_delivery").getAttribute("data-required")&&vat_id_delivery.length<1)highlight_now&&$("#basket_vat_id_delivery_errormsg").show(),errors_found=!0;else if(vat_id_delivery.length){let invalid_vat_id=!1;document.getElementById("country_delivery")&&"dk"===document.getElementById("country_delivery").value&&-1<vat_id_delivery.indexOf("@")&&(invalid_vat_id=!0),company_delivery===vat_id_delivery&&(invalid_vat_id=!0),invalid_vat_id&&($("#vat_id_delivery").val("").trigger("change"),alert_nice(!1,_t("Det ser ud til at du har indtastet et ugyldigt CVR nummer ({1})",vat_id_delivery)))}"1"!==document.getElementById("email_delivery").getAttribute("data-required")||verify_email(document.getElementById("email_delivery").value)||(highlight_now&&$("#basket_email_delivery_errormsg").show(),errors_found=!0),document.getElementById("email_delivery").value&&(document.getElementById("email_delivery").value=document.getElementById("email_delivery").value.trim()),verify_email(document.getElementById("email_delivery").value)?(perform_test=!1,obj&&"email_delivery"===obj.id&&(!event||"change"!==event.type&&"blur"!==event.type)||(perform_test=!0),perform_test&&(void 0===window._g_basket_validate_emails_checked&&(window._g_basket_validate_emails_checked={}),email_to_check=document.getElementById("email_delivery").value,void 0===window._g_basket_validate_emails_checked[email_to_check])&&(window._g_basket_validate_emails_checked[email_to_check]=1,ajax_post("/ajax/validate_email","&email="+encodeURIComponent(email_to_check),function(e){var t;e.problem&&alert_nice(!1,t="common-typo"!==e.problem&&"non-existent-tld"!==e.problem&&"dns_get_record-failed"!==e.problem?t:_t("Det ser ud til at du har indtastet en ugyldig leverings e-mail adresse ({1})",email_to_check),function(){"my_info"!==getsessionstorage("basket_step")&&basket_prev("my_info"),$("#email_delivery").val($("#email_delivery").val().split("@")[0]+"@").focus()})}))):"1"===document.getElementById("email_delivery").getAttribute("data-required")&&(highlight_now&&$("#basket_email_errormsg").show(),errors_found=!0),"1"===document.getElementById("phone_delivery").getAttribute("data-required")&&document.getElementById("phone_delivery").value.trim().length<1&&(highlight_now&&$("#basket_phone_delivery_errormsg").show(),errors_found=!0),skip_address||document.getElementById("address_delivery").value.trim().length<3&&(highlight_now&&$("#basket_address_delivery_errormsg").show(),errors_found=!0),skip_address||(document.getElementById("country_delivery")&&"dk"===document.getElementById("country_delivery").value?(document.getElementById("zip_delivery").value<800||9999<document.getElementById("zip_delivery").value?(setsessionstorage("zip_delivery_translated_status",0),setsessionstorage("zip_delivery_translated",!1),highlight_now&&$("#basket_zip_delivery_errormsg").show(),errors_found=!0):getsessionstorage("zip_delivery_translated")!==document.getElementById("zip_delivery").value&&(highlight_now&&$("#basket_zip_delivery_errormsg").show(),errors_found=!0,basket_zip_city_fetch("zip_delivery")),1!==parseInt(getsessionstorage("zip_delivery_translated_status"))&&(highlight_now&&$("#basket_zip_delivery_errormsg").show(),errors_found=!0)):(zip_delivery_required&&document.getElementById("zip_delivery").value.trim().length<2&&(highlight_now&&$("#basket_zip_delivery_errormsg").show(),errors_found=!0),document.getElementById("city_delivery").value.trim().length<3&&(highlight_now&&$("#basket_city_delivery_errormsg").show(),errors_found=!0)))}if($("#alternative_delivery_address_required_container").hide(),!document.getElementById("alternative_delivery_address").checked){for(var payment_country=document.getElementById("country").value,options=document.getElementById("country_delivery").options,payment_vs_delivery_ok=!1,i=0;i<options.length;i++){var option=options[i];!1===option.disabled&&option.value===payment_country&&(payment_vs_delivery_ok=!0)}payment_vs_delivery_ok||(highlight_now&&$("#basket_alternative_delivery_address_errormsg").show(),errors_found=!0,$("#alternative_delivery_address_required_container").show())}return $('.basket-custom-element[data-required="1"]').each(function(){var e;0<$(this).closest("#alternative_delivery_address_container").length&&!$("#alternative_delivery_address").prop("checked")||(e=!0,"input"===this.nodeName.toLowerCase()&&"checkbox"===this.type.toLowerCase()?this.checked||(e=!1):"select"===this.nodeName.toLowerCase()?this.multiple?""===this.value&&(e=!1):null===this.options[this.selectedIndex].getAttribute("value")&&(e=!1):this.value.trim().length<1&&(e=!1),e)||(highlight_now&&$(this).closest(".basket-element").find(".basket-input-error-message").show(),errors_found=!0)}),$('.basket-element [data-regex-validation][data-regex-validation!=""]').each(function(){if(!(0<$(this).closest("#alternative_delivery_address_container").length)||$("#alternative_delivery_address").prop("checked")){let value=this.value.trim();if(""!==value){let regex=eval(this.getAttribute("data-regex-validation")),passed=regex.test(value);passed||(highlight_now&&$(this).closest(".basket-element").find(".basket-input-error-message").show(),errors_found=!0)}}}),!errors_found&&$("#basket-minimum-purchase-not-reached").length&&(highlight_now&&alert_nice(!1,$("#basket-minimum-purchase-not-reached").html(),void 0,void 0,void 0,!0),errors_found=!0),errors_found?($("#basket-info-container .basket-next-button > div").css("opacity",.7),$("#basket-info-container .basket-next-button > div").tooltip("enable"),!1):($("#basket-info-container .basket-next-button > div").css("opacity",1),$("#basket-info-container .basket-next-button > div").tooltip("disable"),!0)}if("shipping"===type){var elem=radio_checked_by_name("shipping_method",!0);if(!elem)return alert(_t("Du skal vælge en fragtmetode",!1)),!1;if("string"==typeof elem.getAttribute("data-shipmondo-packageshop-id")&&elem.getAttribute("data-shipmondo-packageshop-id").length<3)return alert(_t("Du skal vælge den pakkeshop hvor du ønsker at hente din pakke",!1)),!1;if("string"==typeof elem.getAttribute("data-coolrunner-packageshop-id")&&elem.getAttribute("data-coolrunner-packageshop-id").length<3)return alert(_t("Du skal vælge den pakkeshop hvor du ønsker at hente din pakke",!1)),!1;if("string"==typeof elem.getAttribute("data-gls-packageshop-id")&&elem.getAttribute("data-gls-packageshop-id").length<3)return alert(_t("Du skal vælge den pakkeshop hvor du ønsker at hente din pakke",!1)),!1;if(elem.getAttribute("data-phone-delivery-required")){var phone=$("#phone").val(),text;if(document.getElementById("alternative_delivery_address").checked&&(phone=$("#phone_delivery").val()),phone.length<1)return text='<div style="text-align: left; font-weight: bold; margin-bottom: 0.5rem;">'+_t("Fragtmanden kræver at du indtaster dit telefonnummer for at benytte denne fragtmetode.")+"</div>",prompt_nice(_t("Telefonnummer påkrævet"),text,"","text",function(e){(document.getElementById("alternative_delivery_address").checked?$("#phone_delivery"):$("#phone")).val(e).trigger("change"),$("#basket-shipping-container .basket-next-button div.btn").trigger("click")},void 0,void 0,void 0,_t("Gem")),!1}if(elem.hasAttribute("data-flex-delivery-comment-required")){let flex_comment=$("#flex-delivery-comment-container input").val();if(flex_comment.length<5||80<flex_comment.length)return alert_nice(!1,_t('Du skal udfylde feltet "Hvor må pakken stilles?" korrekt')),!1}}else{"payment"===type&&(elem=radio_checked_by_name("payment_method",!0))}return!0}}window.addEventListener("_basket_updated",function(){window._g_is_shop_admin&&$(".basket-item-tr").each(function(){$(this).find(".basket-item-td-price").css("cursor","pointer").off("click").on("click",function(){var e=$(this).closest(".basket-item-tr").find(".basket-item-td-info .title").text();let t=$(this).closest(".basket-item-tr").attr("data-basket-id"),i=$(this).closest(".basket-item-tr").find(".basket-item-td-price").attr("data-price-lowest-for-one-with-vat-raw");var n=formatted_number(i,2),o=formatted_number($(this).closest(".basket-item-tr").find(".basket-item-td-price").attr("data-price-now-for-one-with-vat-raw"),2);let a='<div style="color: #FF0000;">'+_t("Denne mulighed er kun tilgængelig for dig som administrator")+"</div>";a+="<br>",shop_subscription_type_feature_allowed_check("SHOPSTART_FEATURE_BASKET_FORCE_PRICE")||(a=_t("Denne mulighed er ikke tilgængelig for dit aktuelle abonnement. Opgradér til nyeste Standard eller Pro for at få adgang til overstyring af priser."),a+="<br><br>"),a=`
					<div style="text-align: center;">
						${a+=`
					<div class="form-group" style="font-weight: bold;">
						${e}
					</div>
					
					<div class="form-group">
						<label>${_t("Oprindelig/normal pris")}</label>
						<input class="form-control" value="${n}" readonly style="text-align: center;">
					</div>
					
					<div class="form-group">
						<label>${_t("Ny pris")}</label>
						<input class="form-control" value="${o}" name="new_price" style="text-align: center;">
					</div>
					
					<div class="form-group">
						<label>${_t("Procent rabat")}</label>
						<input class="form-control" value="0" name="percentage_discount" style="text-align: center;">
					</div>
					`}
					</div>
					`,modal_simple(_t("Overstyr pris"),a,!1,{close_button:_t("Annullér"),save_button_class:"btn-success",form_submit_takeover:function(){var e=$('#modal_current input[name="new_price"]').val();ajax_post("/basket/price_force","&basket_id="+t+"&price="+encodeURIComponent(e),basket_update_receive,basket_update_error),modal_close_top_real()}},void 0,void 0,void 0,!1),$("#modal_current .modal-footer").css("justify-content","space-between"),$("#modal_current input").focus(function(){this.select()}),$('#modal_current input[name="new_price"]').on("input",function(){var e=number_convert_to_usable(this.value),e=formatted_number(100*Math.abs(e/i-1),2);$('#modal_current input[name="percentage_discount"]').val(e)}).trigger("input"),$('#modal_current input[name="percentage_discount"]').on("input",function(){var e=number_convert_to_usable(this.value)/100,e=formatted_number(i-i*e,2);$('#modal_current input[name="new_price"]').val(e)}),setTimeout(function(){$('#modal_current input[name="new_price"]').trigger("focus")})})})});let basket_zip_city_zips={},basket_zip_city_promises={};async function basket_zip_city_fetch(e){if(!("zip"===e&&"dk"!==document.getElementById("country").value||"zip_delivery"===e&&"dk"!==document.getElementById("country_delivery").value)){const i=document.getElementById(e).value;if(i.length<4&&await new Promise((e,t)=>setTimeout(e,250)),document.getElementById(e)&&document.getElementById(e).value===i){if("object"!=typeof basket_zip_city_zips[i])if("object"==typeof basket_zip_city_promises[i])try{await basket_zip_city_promises[i]}catch(e){return}else{basket_zip_city_promises[i]=new Promise(function(t,e){ajax_post("/basket/zip_city","&zip="+i,function(e){basket_zip_city_zips[i]=e,t(e)},function(){delete basket_zip_city_promises[i],e()})});try{await basket_zip_city_promises[i]}catch(e){return}}var t=basket_zip_city_zips[i];if(document.getElementById(e)&&document.getElementById(e).value===i){if("zip"===e){if(setsessionstorage("zip_translated",i),!document.getElementById("city"))return;if(1!==t.result)return setsessionstorage("zip_translated_status",0),void(document.getElementById("city").value=_t("Postnummer ikke genkendt"));setsessionstorage("zip_translated_status",1),document.getElementById("city").value=t.city_name}else{if(setsessionstorage("zip_delivery_translated",i),!document.getElementById("city_delivery"))return;if(1!==t.result)return setsessionstorage("zip_delivery_translated_status",0),void(document.getElementById("city_delivery").value=_t("Postnummer ikke genkendt"));setsessionstorage("zip_delivery_translated_status",1),document.getElementById("city_delivery").value=t.city_name}basket_validate(!1,"my_info")}}}}let BASKET_REFRESH_ACTUAL_BASKET_COUNTER=0;function basket_refresh_actual_basket(t,i){var e;BASKET_REFRESH_ACTUAL_BASKET_COUNTER++,document.getElementById("basket_container")&&(document.getElementById("basket_container").style.opacity="0.4",e=named_data_for_object_get_string($("#basket-form")),ajax_post("/basket/options_update","&all=1"+(e+="&basket_step="+getsessionstorage("basket_step")),function(e){basket_options_receive(e,{key_changed:t}),i&&i()}))}function basket_options(e,n,t){let i;var o,a;"shipping_method"===e?i=function(){var e,t,i=$("#shipping_method_"+n);i.length&&($("#shipmondo_packageshop_iframe_container").remove(),$("#coolrunner_packageshop_iframe_container").remove(),$("#gls_packageshop_iframe_container").remove(),$("#flex-delivery-comment-container").remove(),"string"==typeof(e=i[0]).getAttribute("data-shipmondo-packageshop-id")&&(t=e.getAttribute("data-shipmondo-packageshop-id"),e.setAttribute("data-shipmondo-packageshop-id","0"),shipmondo_packageshop_ui(n,t)),"string"==typeof e.getAttribute("data-coolrunner-packageshop-id")&&(t=e.getAttribute("data-coolrunner-packageshop-id"),e.setAttribute("data-coolrunner-packageshop-id","0"),coolrunner_packageshop_ui(n,t)),"string"==typeof e.getAttribute("data-gls-packageshop-id")&&(t=e.getAttribute("data-gls-packageshop-id"),e.setAttribute("data-gls-packageshop-id","0"),gls_packageshop_ui(n,t)),e.hasAttribute("data-flex-delivery-comment-required"))&&(t=`
					<div id="flex-delivery-comment-container">
						<input type="text" class="form-control" placeholder="${_t("Hvor må pakken stilles?")}">
					</div>
					`,i.closest(".radio").append(t),$("#flex-delivery-comment-container input").val(i.attr("data-flex-delivery-comment-required")).on("change",function(){ajax_post("/basket/options_update","&shipping_method_flex_delivery_comment="+encodeURIComponent(this.value))}))}:"payment_method"===e&&"string"==typeof(o=document.getElementById("payment_method_"+n)).getAttribute("data-viabill-switch-to-currency")&&(a=o.getAttribute("data-viabill-switch-to-currency"),i=function(){currency_switch(a)});let s=!1;"function"==typeof t&&"function"==typeof i?s=function(){t(),i()}:"function"==typeof t?s=t:"function"==typeof i&&(s=i),basket_refresh_actual_basket(e,s)}function basket_options_receive(e,t){if("string"==typeof window._g_site_mode&&"dev"===window._g_site_mode&&console.debug("basket_options_receive",e,t),t=void 0===t?{}:t,document.getElementById("basket_container")){if(e.basket_data.payment_method_currency_force&&e.basket_data.payment_method_currency_force!==e.basket_data.currency)return void alert_nice(_t("Valuta skift"),_t("Den valgte betalingssmetode benytter en anden valuta, som der skal skiftes til"),function(){currency_switch(e.basket_data.payment_method_currency_force)});var i,n;e.basket_data.basket_html&&(document.getElementById("basket_container").innerHTML=e.basket_data.basket_html,document.getElementById("basket_container").style.opacity="1"),document.getElementById("basket-payment-contents").innerHTML=e.payment_html,void 0!==t.shipping_update&&!t.shipping_update||(document.getElementById("basket-shipping-contents").innerHTML=e.shipping_html),e.confirm_html&&(i=$("#terms_accept_label input").prop("checked"),n=$("#subscription_terms_accept_label input").prop("checked"),$("#basket-confirm-contents").html(e.confirm_html),i&&($("#terms_accept_label input").prop("checked","checked"),$("#terms_accept_label input").trigger("change")),n&&($("#subscription_terms_accept_label input").prop("checked","checked"),$("#subscription_terms_accept_label input").trigger("change")),(i=$("#basket-comments-textarea textarea")).length)&&""!==i.val()&&basket_comments_add_show(),document.getElementById("expected_price_input")&&(document.getElementById("expected_price_input").value=e.basket_data.sums.final_price),e.basket_data.delivery_country&&document.getElementById("country_delivery").value!==e.basket_data.delivery_country&&(document.getElementById("country_delivery").value=e.basket_data.delivery_country,void 0!==t&&void 0!==t.key_changed&&"delivery_country"===t.key_changed||$("#country_delivery").trigger("change")),basket_set_badge(e.basket_data),0<e.basket_data.items.length&&Boolean(e.basket_data.skip_shipping_step)!==Boolean($('#basket-form[data-skip-shipping-step="1"]').length)&&!0!==window._g_basket_skip_shipping_step_reload_in_progress&&(window._g_basket_skip_shipping_step_reload_in_progress=!0,Boolean(e.basket_data.skip_shipping_step)?(setsessionstorage("basket_step","payment"),(n=$('#basket-shipping-contents input[name="shipping_method"]').first())[0].checked=!0,basket_options("shipping_method",n.val(),function(){setsessionstorage("basket_step","my_info"),content_load("basket",void 0,function(){window._g_basket_skip_shipping_step_reload_in_progress=!1})})):content_load("basket",void 0,function(){window._g_basket_skip_shipping_step_reload_in_progress=!1}))}after_load_setup(),window.dispatchEvent(new CustomEvent("_basket_updated",{detail:{basket_data:e.basket_data}}))}function basket_terms_accept(){var e=$("#terms_accept_label input").prop("checked"),t=!0;$("#subscription_terms_accept_label").length&&(t=$("#subscription_terms_accept_label input").prop("checked")),$("#terms_accept_label").removeClass("error"),$("#subscription_terms_accept_label").removeClass("error"),e&&t?(document.getElementById("basket_buy_button_enabled").style.display="",document.getElementById("basket_buy_button_disabled").style.display="none"):(e||$("#terms_accept_label").addClass("error"),t||$("#subscription_terms_accept_label").addClass("error"),document.getElementById("basket_buy_button_enabled").style.display="none",document.getElementById("basket_buy_button_disabled").style.display="")}let basket_buy_button_click_prevent=!1;function basket_submit(){if(!basket_buy_button_click_prevent){basket_buy_button_click_prevent=!0;const e=function(){ajax_form_submit($("#basket-form")[0],void 0,void 0,function(e){basket_buy_button_click_prevent=!1,1===e.result?pageload(e):browserloading_stop()},void 0,_t("Gennemfører køb"),!0)};basket_comment_saved?e():(browserloading_start(!1,0,_t("Gennemfører køb")),setTimeout(function(){basket_comment_saved?e():(basket_buy_button_click_prevent=!1,browserloading_stop(),alert_nice(!1,_t("Der opstod en ukendt fejl, prøv igen")))},1500))}}function basket_empty(){setsessionstorage("basket_step","my_info"),basket_set_badge(!1),removesessionstorage("cash_sale_internal_comment")}function basket_terms_and_conditions_show(){return modal(_t("Handelsbetingelser"),"pages","terms_and_conditions"),!1}function basket_subscription_terms_and_conditions_show(){return modal(_t("Handelsbetingelser"),"pages","subscription_terms_and_conditions"),!1}function basket_comments_add_show(){$("#basket-comments-add-button").hide(),$("#basket-comments-textarea").show(),0===$("#basket-comments-textarea textarea").val().length&&$("#basket-comments-textarea textarea")[0].focus()}let basket_comment_saved=!0;function basket_comments_focus(){basket_comment_saved=!1}function basket_comments_save(){var e=$("#basket-comments-textarea textarea");e.length&&ajax_post("/basket/options_update","&type=order_comments&comments="+encodeURIComponent(e.val()),function(){basket_comment_saved=!0})}function basket_minimal_checkout_toggle(){var e;!0===BASKET_MINIMAL_CHECKOUT&&(0===window.location.pathname.indexOf("/basket")?(document.body.classList.add("minimal-checkout"),(e=document.createEvent("Event")).initEvent("_basket_minimal_checkout_added",!0,!0),window.dispatchEvent(e)):document.body.classList.contains("minimal-checkout")&&(document.body.classList.remove("minimal-checkout"),(e=document.createEvent("Event")).initEvent("_basket_minimal_checkout_removed",!0,!0),window.dispatchEvent(e)))}function basket_customer_login_modal(){modal(_t("Kundelogin"),"customer","login_modal",void 0,"&from_basket=1")}function basket_customer_login_modal_submit(){var e=ajax_form_submit($("#modal_current form")[0],!0);return!1!==e&&(browserloading_start(void 0,0,_t("Logger ind...")),ajax(e,function(e){browserloading_stop(),1===e.result&&(basket_clear_all_session_storage_values(),self_destructing_message(_t("Du blev logget ind")),modal_current_page_dirty_set(),modal_on_escape_or_backdrop_or_close())},3e4,!1,"post")),!1}function basket_customer_logged_in_modal(){modal(_t("Logget ind"),"customer","logged_in_modal")}function basket_customer_logged_in_modal_setup(e){$("#modal_current .modal-footer").css("justify-content","space-between"),$("#modal_current .logout-button").on("click",function(){confirm_nice(_t("Log ud"),_t("Er du sikker på at du ønsker at logge ud?"),function(){ajax_post("/customer/logout","&from_basket=1",function(){modal_current_page_dirty_set(),modal_close_top_real()})})})}function basket_setup_based_on_country(){document.getElementById("country")&&"dk"===document.getElementById("country").value?(document.getElementById("phone").type="tel",document.getElementById("phone").setAttribute("min","10000000"),document.getElementById("phone").setAttribute("max","99999999"),document.getElementById("zip").type="tel",document.getElementById("zip").setAttribute("min","800"),document.getElementById("zip").setAttribute("max","9999"),document.getElementById("city").readOnly=!0):(document.getElementById("phone").type="text",document.getElementById("phone").setAttribute("min",""),document.getElementById("phone").setAttribute("max",""),document.getElementById("zip").type="text",document.getElementById("zip").setAttribute("min",""),document.getElementById("zip").setAttribute("max",""),document.getElementById("city").readOnly=!1),document.getElementById("country_delivery")&&"dk"===document.getElementById("country_delivery").value?(document.getElementById("zip_delivery").type="tel",document.getElementById("zip_delivery").setAttribute("min","800"),document.getElementById("zip_delivery").setAttribute("max","9999"),document.getElementById("city_delivery").readOnly=!0):(document.getElementById("zip_delivery").type="text",document.getElementById("zip_delivery").setAttribute("min",""),document.getElementById("zip_delivery").setAttribute("max",""),document.getElementById("city_delivery").readOnly=!1)}function basket_clear_all_session_storage_values(){for(let e=0;e<BASKET_SESSION_STORAGE_KEYS.length;e++)removesessionstorage(BASKET_SESSION_STORAGE_KEYS[e])}function basket_related_item_unable_to_load(){$(this).parent().remove();var e=$("#basket-related-items-container");e.find(".item-box-container-multi-line").length||e.remove()}function basket_customer_must_be_logged_in(e){confirm_nice(_t("Log ind for at gennemføre køb"),_t("E-mailadressen <b>{1}</b> er allerede oprettet i webshoppen. Log ind for at foretage et køb med denne e-mailadresse.",!1,htmlentities(e)),function(){modal(_t("Kundelogin"),"customer","login_modal",void 0,"&from_basket=1")},void 0,void 0,"btn-success",_t("Log ind"),_t("Luk"))}function basket_order_waiting_for_confirmation(t){ajax_post("/basket/order_waiting_for_confirmation_ajax","&order_id="+t.order_id,function(e){1===e.result&&(-1===e.order_accepted?setTimeout(function(){basket_order_waiting_for_confirmation(t)},5e3):1===e.order_accepted?window.location.href="/basket/order_with_confirmation_accepted":window.location.href="/basket/order_with_confirmation_declined")})}function shipmondo_packageshop_ui(e,t,i){var n,o;i=i||0,shipmondo_packageshop_element=document.getElementById("shipping_method_"+e),shipmondo_customer_address=document.getElementById("address").value,shipmondo_customer_zip=document.getElementById("zip").value,shipmondo_customer_city=document.getElementById("city").value,shipmondo_customer_country=document.getElementById("country").value,document.getElementById("alternative_delivery_address").checked&&(shipmondo_customer_address=document.getElementById("address_delivery").value,shipmondo_customer_zip=document.getElementById("zip_delivery").value,shipmondo_customer_city=document.getElementById("city_delivery").value,shipmondo_customer_country=document.getElementById("country_delivery").value),""===shipmondo_customer_city&&"dk"===shipmondo_customer_country&&i<=10?setTimeout(function(){shipmondo_packageshop_ui(e,t,i+1)},250):(n=shipmondo_customer_address+", "+shipmondo_customer_zip+", "+shipmondo_customer_city+", "+shipmondo_customer_country.toUpperCase(),window.addEventListener("message",shipmondo_packageshop_ui_receive_data,!1),document.getElementById("shipmondo_packageshop_iframe_container")&&document.getElementById("shipmondo_packageshop_iframe_container").parentNode.removeChild(document.getElementById("shipmondo_packageshop_iframe_container")),(o=document.createElement("div")).id="shipmondo_packageshop_iframe_container",o.innerHTML='<div style="font-size: 1.2em; font-weight: bold;">'+_t("Vælg afhentningssted")+"</div>",(shipmondo_packageshop_iframe=document.createElement("iframe")).id="shipmondo_packageshop_iframe_id",shipmondo_packageshop_iframe.style.border="1px solid black",shipmondo_packageshop_iframe.style.width="100%",shipmondo_packageshop_iframe.style.height="500px",0===location.href.indexOf("https://dev---")?shipmondo_packageshop_iframe.src="https://dev---gmap.ideal.shop/basket/iframe_shipmondo_packageshop_map?language="+language_get_current():shipmondo_packageshop_iframe.src="https://gmap.ideal.shop/basket/iframe_shipmondo_packageshop_map?language="+language_get_current(),o.appendChild(shipmondo_packageshop_iframe),shipmondo_packageshop_element.parentNode.parentNode.appendChild(o),shipmondo_packageshop_iframe.addEventListener("load",function(){this.contentWindow.postMessage({type:"init",data:{packageshop_id_preselected:t,address:n}},"*")}))}function shipmondo_packageshop_ui_receive_data(e){var t=e.origin||e.originalEvent.origin;"shipmondo"!==e.data.iframe_type||"https://gmap.ideal.shop"!==t&&"https://dev---gmap.ideal.shop"!==t||void 0!==e.data.type&&("packageshops_get"===e.data.type?shipmondo_packageshop_get_shops(e.data.address):"packageshop_selected"===e.data.type?(shipmondo_packageshop_element.setAttribute("data-shipmondo-packageshop-id",e.data.id),ajax("path=basket/options_update&shipping_method_shipmondo_packageshop_id="+e.data.id+"&packageshop_data="+encodeURIComponent(JSON.stringify(e.data.data)),function(e){basket_options_receive(e,{shipping_update:!1})},3e4,function(e){basket_options_receive(e,{shipping_update:!1})},"post",!1)):"address_not_found"===e.data.type&&alert(_t("Den indtastede adresse blev ikke fundet, har du indtastet adressen korrekt?",!1)))}function shipmondo_packageshop_ui_send_data(e){shipmondo_packageshop_iframe.contentWindow&&shipmondo_packageshop_iframe.contentWindow.postMessage(e,"*")}function shipmondo_packageshop_get_shops(e){var t={address:shipmondo_customer_address,zip:shipmondo_customer_zip,city:shipmondo_customer_city,country:shipmondo_customer_country};ajax_post("/basket/shipmondo_get_package_shops","&address_components="+JSON.stringify(e)+"&address_raw="+JSON.stringify(t),function(e){1===e.result&&(0===e.package_shops.length&&alert_nice("",_t("Der blev ikke fundet nogle pakkeshops i nærheden af din søgning.<br><br>Det kan skyldes at adressen er indtastet forkert, eller adressen er for ny, så den pt. ikke findes i systemet.<br><br>Sikre dig at adressen er indtastet korrekt, og hvis det ikke virker så prøv en anden adresse i nærheden.",!1)),shipmondo_packageshop_ui_send_data({type:"package_shops",data:e.package_shops}))})}function coolrunner_packageshop_ui(e,t,i){var n,o;i=i||0,coolrunner_packageshop_element=document.getElementById("shipping_method_"+e),coolrunner_customer_address=document.getElementById("address").value,coolrunner_customer_zip=document.getElementById("zip").value,coolrunner_customer_city=document.getElementById("city").value,coolrunner_customer_country=document.getElementById("country").value,document.getElementById("alternative_delivery_address").checked&&(coolrunner_customer_address=document.getElementById("address_delivery").value,coolrunner_customer_zip=document.getElementById("zip_delivery").value,coolrunner_customer_city=document.getElementById("city_delivery").value,coolrunner_customer_country=document.getElementById("country_delivery").value),""===coolrunner_customer_city&&"dk"===coolrunner_customer_country&&i<=10?setTimeout(function(){coolrunner_packageshop_ui(e,t,i+1)},250):(n=coolrunner_customer_address+", "+coolrunner_customer_zip+", "+coolrunner_customer_city+", "+coolrunner_customer_country.toUpperCase(),window.addEventListener("message",coolrunner_packageshop_ui_receive_data,!1),document.getElementById("coolrunner_packageshop_iframe_container")&&document.getElementById("coolrunner_packageshop_iframe_container").parentNode.removeChild(document.getElementById("coolrunner_packageshop_iframe_container")),(o=document.createElement("div")).id="coolrunner_packageshop_iframe_container",o.innerHTML='<div style="font-size: 1.2em; font-weight: bold;">'+_t("Vælg afhentningssted")+"</div>",(coolrunner_packageshop_iframe=document.createElement("iframe")).id="coolrunner_packageshop_iframe_id",coolrunner_packageshop_iframe.style.border="1px solid black",coolrunner_packageshop_iframe.style.width="100%",coolrunner_packageshop_iframe.style.height="500px",0===location.href.indexOf("https://dev---")?coolrunner_packageshop_iframe.src="https://dev---gmap.ideal.shop/basket/iframe_coolrunner_packageshop_map?language="+language_get_current():coolrunner_packageshop_iframe.src="https://gmap.ideal.shop/basket/iframe_coolrunner_packageshop_map?language="+language_get_current(),o.appendChild(coolrunner_packageshop_iframe),coolrunner_packageshop_element.parentNode.parentNode.appendChild(o),coolrunner_packageshop_iframe.addEventListener("load",function(){this.contentWindow.postMessage({type:"init",data:{packageshop_id_preselected:t,address:n}},"*")}))}function coolrunner_packageshop_ui_receive_data(e){var t=e.origin||e.originalEvent.origin;"coolrunner"!==e.data.iframe_type||"https://gmap.ideal.shop"!==t&&"https://dev---gmap.ideal.shop"!==t||void 0!==e.data.type&&("packageshops_get"===e.data.type?coolrunner_packageshop_get_shops(e.data.address):"packageshop_selected"===e.data.type?(coolrunner_packageshop_element.setAttribute("data-coolrunner-packageshop-id",e.data.id),ajax("path=basket/options_update&shipping_method_coolrunner_packageshop_id="+e.data.id+"&packageshop_data="+encodeURIComponent(JSON.stringify(e.data.data)),function(e){basket_options_receive(e,{shipping_update:!1})},3e4,function(e){basket_options_receive(e,{shipping_update:!1})},"post",!1)):"address_not_found"===e.data.type&&alert(_t("Den indtastede adresse blev ikke fundet, har du indtastet adressen korrekt?",!1)))}function coolrunner_packageshop_ui_send_data(e){coolrunner_packageshop_iframe.contentWindow&&coolrunner_packageshop_iframe.contentWindow.postMessage(e,"*")}function coolrunner_packageshop_get_shops(e){var t={address:coolrunner_customer_address,zip:coolrunner_customer_zip,city:coolrunner_customer_city,country:coolrunner_customer_country};ajax_post("/basket/coolrunner_get_package_shops","&address_components="+JSON.stringify(e)+"&address_raw="+JSON.stringify(t),function(e){1===e.result&&(0===e.package_shops.length&&alert_nice("",_t("Der blev ikke fundet nogle pakkeshops i nærheden af din søgning.<br><br>Det kan skyldes at adressen er indtastet forkert, eller adressen er for ny, så den pt. ikke findes i systemet.<br><br>Sikre dig at adressen er indtastet korrekt, og hvis det ikke virker så prøv en anden adresse i nærheden.",!1)),coolrunner_packageshop_ui_send_data({type:"package_shops",data:e.package_shops}))})}function gls_packageshop_ui(e,t,i){var n,o;i=i||0,gls_packageshop_element=document.getElementById("shipping_method_"+e),gls_customer_address=document.getElementById("address").value,gls_customer_zip=document.getElementById("zip").value,gls_customer_city=document.getElementById("city").value,gls_customer_country=document.getElementById("country").value,document.getElementById("alternative_delivery_address").checked&&(gls_customer_address=document.getElementById("address_delivery").value,gls_customer_zip=document.getElementById("zip_delivery").value,gls_customer_city=document.getElementById("city_delivery").value,gls_customer_country=document.getElementById("country_delivery").value),""===gls_customer_city&&"dk"===gls_customer_country&&i<=10?setTimeout(function(){gls_packageshop_ui(e,t,i+1)},250):(n=gls_customer_address+", "+gls_customer_zip+", "+gls_customer_city+", "+gls_customer_country.toUpperCase(),window.addEventListener("message",gls_packageshop_ui_receive_data,!1),document.getElementById("gls_packageshop_iframe_container")&&document.getElementById("gls_packageshop_iframe_container").parentNode.removeChild(document.getElementById("gls_packageshop_iframe_container")),(o=document.createElement("div")).id="gls_packageshop_iframe_container",o.innerHTML='<div style="font-size: 1.2em; font-weight: bold;">'+_t("Vælg afhentningssted")+"</div>",(gls_packageshop_iframe=document.createElement("iframe")).id="gls_packageshop_iframe_id",gls_packageshop_iframe.style.border="1px solid black",gls_packageshop_iframe.style.width="100%",gls_packageshop_iframe.style.height="500px",0===location.href.indexOf("https://dev---")?gls_packageshop_iframe.src="https://dev---gmap.ideal.shop/basket/iframe_gls_packageshop_map?language="+language_get_current():gls_packageshop_iframe.src="https://gmap.ideal.shop/basket/iframe_gls_packageshop_map?language="+language_get_current(),o.appendChild(gls_packageshop_iframe),gls_packageshop_element.parentNode.parentNode.appendChild(o),gls_packageshop_iframe.addEventListener("load",function(){this.contentWindow.postMessage({type:"init",data:{packageshop_id_preselected:t,address:n}},"*")}))}function gls_packageshop_ui_receive_data(e){var t=e.origin||e.originalEvent.origin;"gls"!==e.data.iframe_type||"https://gmap.ideal.shop"!==t&&"https://dev---gmap.ideal.shop"!==t||void 0!==e.data.type&&("packageshops_get"===e.data.type?gls_packageshop_get_shops(e.data.address):"packageshop_selected"===e.data.type?(gls_packageshop_element.setAttribute("data-gls-packageshop-id",e.data.id),ajax("path=basket/options_update&shipping_method_gls_packageshop_id="+e.data.id+"&packageshop_data="+encodeURIComponent(JSON.stringify(e.data.data)),function(e){basket_options_receive(e,{shipping_update:!1})},3e4,function(e){basket_options_receive(e,{shipping_update:!1})},"post",!1)):"address_not_found"===e.data.type&&alert(_t("Den indtastede adresse blev ikke fundet, har du indtastet adressen korrekt?",!1)))}function gls_packageshop_ui_send_data(e){gls_packageshop_iframe.contentWindow&&gls_packageshop_iframe.contentWindow.postMessage(e,"*")}function gls_packageshop_get_shops(e){var t={address:gls_customer_address,zip:gls_customer_zip,city:gls_customer_city,country:gls_customer_country};ajax_post("/basket/gls_get_package_shops","&address_components="+JSON.stringify(e)+"&address_raw="+JSON.stringify(t),function(e){1===e.result&&(0===e.package_shops.length&&alert_nice("",_t("Der blev ikke fundet nogle pakkeshops i nærheden af din søgning.<br><br>Det kan skyldes at adressen er indtastet forkert, eller adressen er for ny, så den pt. ikke findes i systemet.<br><br>Sikre dig at adressen er indtastet korrekt, og hvis det ikke virker så prøv en anden adresse i nærheden.",!1)),gls_packageshop_ui_send_data({type:"package_shops",data:e.package_shops}))})}function wishlist_get(){let e=getlocalstorage("wishlist");return e=e||{}}function wishlist_add(e,t,i=""){var n=wishlist_get();n[e+","+t]={comment:i},setlocalstorage("wishlist",n),ajax_post("/customer/wishlist_ajax","&sub_action=add&items_id="+parseInt(e)+"&variants_id="+parseInt(t)+"&comment="+encodeURIComponent(i)),$("body").attr("data-wishlist-count",Object.keys(n).length)}function wishlist_remove(e,t){var i=wishlist_get();delete i[e+","+t],setlocalstorage("wishlist",i),ajax_post("/customer/wishlist_ajax","&sub_action=remove&items_id="+parseInt(e)+"&variants_id="+parseInt(t)),self_destructing_message(_t("Varen er fjernet fra din ønskeliste"),void 0,"clarity:heart-broken-solid"),$("body").attr("data-wishlist-count",Object.keys(i).length)}document.addEventListener("DOMContentLoaded",basket_minimal_checkout_toggle),window.addEventListener("_pageload_end",basket_minimal_checkout_toggle),window.addEventListener("load",function(){var e;"?criipto_auto_submit=1"===window.location.search&&(e="/basket",window.history.replaceState(e,e,e),$("#basket-form").append('<input type="hidden" name="criipto_auto_submit" value="1">'),basket_submit())}),window.addEventListener("_basket_updated",function(){1===$('input[name="criipto_age_verification_needed"][value="1"]').length&&($("#basket_buy_button_enabled").removeAttr("onclick"),$("#basket_buy_button_enabled").off("click").on("click",function(){var e=ajax_form_submit($("#basket-form").get(0),!0,void 0,void 0,void 0,void 0,!0);modal(!1,"basket","criipto",void 0,"&"+http_build_query({basket_vars:JSON.stringify(e)}),void 0,void 0,void 0,"POST")}))}),window.addEventListener("load",function(){wishlist_setup(),window.addEventListener("_after_load",wishlist_setup)});let wishlist_data_gotten=!1,wishlist_data_get_in_progress=!1;function wishlist_setup(){if(!wishlist_data_gotten){if(get_cookie("wishlist_code"))return void(wishlist_data_get_in_progress||(wishlist_data_get_in_progress=!0,ajax_post("/customer/wishlist_ajax","&sub_action=get",function(t){if(t.wishlist){var i={};for(let e=0;e<t.wishlist.length;e++){var n=t.wishlist[e];i[n.items_id+","+n.variants_id]={comment:n.comment}}setlocalstorage("wishlist",i)}wishlist_data_gotten=!0,wishlist_setup()})));wishlist_data_gotten=!0}let a=wishlist_get();if($("body").attr("data-wishlist-count",Object.keys(a).length),$(".item-page")){let e=parseInt($(".item-page").attr("data-item-id")),t=parseInt($(".item-page").attr("data-variant-id")),i=parseInt($(".item-page").attr("data-has-variants")),n=$(".item-page-wishlist");void 0!==a[e+","+t]&&n.addClass("wishlisted"),n.off("click").on("click",function(){i&&!t?alert_nice(!1,_t("Vælg en variant og tryk på hjertet igen for at tilføje til ønskelisten")):$(this).hasClass("wishlisted")?(n.removeClass("wishlisted"),wishlist_remove(e,t)):(n.addClass("wishlisted"),wishlist_add(e,t),self_destructing_message(_t("Varen er tilføjet til din ønskeliste"),void 0,"ant-design:heart-filled"))})}$('[data-badge-type="wishlist"]').each(function(){let t=$(this),i=parseInt(t.closest(".item-box").attr("data-item-id")),n=parseInt(t.closest(".item-box").attr("data-variant-id")),o=parseInt(t.closest(".item-box").attr("data-has-variants"));void 0!==a[i+","+n]&&t.addClass("wishlisted"),t.off("click").on("click",function(e){e.stopPropagation(),e.preventDefault(),o&&!n?alert_nice(!1,_t("Denne vare har forskellige varianter. Gå til varesiden og vælg en variant, og tryk derefter på hjertet for at gemme på ønskelisten.")):$(this).hasClass("wishlisted")?(t.removeClass("wishlisted"),wishlist_remove(i,n)):(t.addClass("wishlisted"),wishlist_add(i,n),self_destructing_message(_t("Varen er tilføjet til din ønskeliste"),void 0,"ant-design:heart-filled"))})})}function wishlist_dashboard_setup(){$(".wishlist-global-buttons .add-wishlist-to-basket").on("click",function(){let t=[];$(".wishlist-item-container .function.add-to-basket").each(function(){let i=$(this).closest(".wishlist-item-container"),n=parseInt($(i).attr("data-item-id")),o=parseInt($(i).attr("data-variant-id"));var e=new Promise(function(t,e){ajax_post("/basket/add","&items_id="+n+"&variants_id="+o+"&quantity=1",function(e){self_destructing_message_remove(),t({response:e,wishlist_container:i,item_id:n,variant_id:o})},void 0,void 0,!1)});t.push(e)}),browserloading_start(),Promise.all(t).then(function(e){browserloading_stop();var t=[];for(let a=0;a<e.length;a++){var i=e[a];1!==i.response.result&&t.push(i)}if(t.length){for(let e=0;e<t.length;e++){var n=t[e],o=document.createElement("div");o.className="error-overlay",o.innerHTML=n.response.error_msg,o.addEventListener("click",function(e){$(this).remove(),e.stopPropagation()}),n.wishlist_container.append(o)}alert_nice(!1,_t("En eller flere varer kunne ikke lægges i kurven - Se fejlbeskrivelsen på den enkelte vare."),function(){ajax_get("/basket/get",function(e){basket_add_receive(e)})})}else ajax_get("/basket/get",function(e){basket_add_receive(e)})})}),$(".wishlist-global-buttons .share-wishlist").on("click",function(){var e=get_cookie("wishlist_code").substr(0,12),e='<div class="input-group"><input type="text" class="form-control" value="'+htmlentities(window.location.origin+"/wishlist/"+e)+'" readonly><div class="input-group-text copy-to-clipboard" data-bs-container="body" data-bs-toggle="tooltip" title="'+_t("Kopiér til udklipsholder")+'" style="cursor: pointer;"><i class="iconify" data-icon="fa:clipboard"></i></div></div>';modal_simple(_t("Deling af ønskeliste"),e,void 0,void 0,void 0,void 0,function(){$("#modal_current .copy-to-clipboard").on("click",function(){copyToClipboard($('#modal_current input[type="text"]').val()),self_destructing_message(_t("Linket blev kopieret til din udklipsholder"))})})}),$(".wishlist-global-buttons .empty-wishlist").on("click",function(){confirm_nice(_t("Tøm ønskelisten"),_t("Ønsker du at tømme ønskelisten?"),function(){ajax_post("/customer/wishlist_ajax","&sub_action=empty"),set_cookie("wishlist_code","",-1),removelocalstorage("wishlist"),content_reload(),self_destructing_message(_t("Ønskeliste tømt"),void 0,"clarity:heart-broken-solid")})}),$(".wishlist-item-container").each(function(){let t=this,i=parseInt($(t).attr("data-item-id")),n=parseInt($(t).attr("data-variant-id"));$(t).find(".function.delete").on("click",function(){confirm_nice(_t("Slet"),_t("Ønsker du at slette denne vare fra ønskelisten?"),function(){wishlist_remove(i,n),$(t).remove()})}),$(t).find(".function.comment").on("click",function(){var e=wishlist_get(),e=void 0===e[i+","+n].comment?"":e[i+","+n].comment;prompt_nice(_t("Kommentar"),_t("Skriv din kommentar her"),e,"text",function(e){wishlist_add(i,n,e),self_destructing_message(_t("Kommentar tilføjet"),void 0,"ant-design:heart-filled"),$(t).find(".main .comment").text(e)})}),$(t).find(".function.add-to-basket").on("click",function(e){basket_add_from_item_box(e,i,n,1)})})}function breadcrumbs_overlay_setup(){var e,t,i=$(".breadcrumbs-outer-container");i.length&&(e=".breadcrumbs::after{background-image: linear-gradient(to right, rgba("+(e=(i=(i=i.css("background-color").split("("))[1].split(","))[0].replace(/[ )]/g,""))+","+(t=i[1].replace(/[ )]/g,""))+","+(i=i[2].replace(/[ )]/g,""))+",0), rgba("+e+","+t+","+i+',1)); /* TODO: Must match background color of "section" */}',$("#breadcrumbs-overlay-stylesheet").remove(),(t=document.createElement("style")).id="breadcrumbs-overlay-stylesheet",t.appendChild(document.createTextNode("")),document.head.appendChild(t),(i=t.sheet).insertRule(e,i.cssRules.length))}function breadcrumbs_triangle_setup(){var e,t,i=$(".breadcrumbs.triangle li");i.length&&(i=i.height(),e=parseInt(1.2*i),i=".breadcrumbs.triangle li a::after, .breadcrumbs.triangle li span::after, .breadcrumbs.triangle li a::before, .breadcrumbs.triangle li span::before{border-left-width: "+(t=parseInt(.75*i))+"px !important;margin-top: -"+e+"px;border-top: "+e+"px solid transparent;border-bottom: "+e+"px solid transparent;clip: rect("+((e=i/2+e)-i)+"px, auto, "+e+"px, auto);}",e=".breadcrumbs.triangle li a, .breadcrumbs.triangle li span{padding-left: "+(t+10)+"px;}",$("#breadcrumbs-triangle-stylesheet").remove(),(t=document.createElement("style")).id="breadcrumbs-triangle-stylesheet",t.appendChild(document.createTextNode("")),document.head.appendChild(t),(t=t.sheet).insertRule(i,t.cssRules.length),t.insertRule(e,t.cssRules.length))}function item_category_setup(){$(".category-box-container-multi-line, .item-box-container-multi-line").find(".item-box-image-box > div:nth-of-type(1), .category-box-image-box > div:nth-of-type(1)").each(function(){var e,t=$(this).closest(".item-box,.category-box");e=(t[0].classList.contains("item-box")?$(this).closest(".item-box-container-multi-line-container"):$(this).closest(".category-box-container-multi-line-container"))[0],1===parseInt(getComputedStyle(e).getPropertyValue("--disable-square-functionality"))?this.style.height="":t[0].classList.contains("image-flip")||this.classList.contains("item-box-no-image-text")?this.parentNode.style.height=t.width()+"px":this.style.height=t.width()+"px"}),$(".category-item-sorting-dropdown, .category-item-items-per-page-dropdown").off("change").on("change",function(){item_category_navigate()});var e=$(".category-filters");e.removeClass("wrapping"),e.height()>e.find(".filter").height()&&e.addClass("wrapping"),$(".category-filters .filter").removeClass("open"),$(".category-filters .filters-show-button").off("click").on("click",function(){$(this).remove()}),$(".category-filters .filter .title").off("click").on("click",function(){var e=$(this).closest(".filter");if(e.hasClass("open"))e.removeClass("open");else{$(".category-filters .filter").removeClass("open"),e.addClass("open");var t=e.attr("data-type"),i=e.find(".select");if(-1<["values","values-multi"].indexOf(t))for(var n=0,o=($(i).find(".options-container .option").each(function(){var e=$(this).height();n<e&&(n=e)}),i.width(""),i.width()),a=o,s=0;;){a--,i.width(a);var r=0;if($(i).find(".options-container .option").each(function(){var e=$(this).height();r<e&&(r=e)}),n<r){i.width(a+1);break}if(a<=0){i.width(o);break}if(1e4<++s)break}var t=i.find(".arrow"),e=(i.css("left","").css("right",""),t.css("left","").css("right",""),e[0].getBoundingClientRect()),l=i[0].getBoundingClientRect(),d=t[0].getBoundingClientRect(),c=e.width-l.width,c=Math.floor(c/2);i.css("left",c),(l=i[0].getBoundingClientRect()).left<0?(i.css("left",0),c=Math.floor(e.width/2)-Math.floor(d.width/2),t.css("left",c)):l.right>window.innerWidth&&(i.css("left","auto").css("right",0),c=Math.floor(e.width/2)-Math.floor(d.width/2),t.css("left","auto").css("right",c))}}),$(".category-filters .filter-apply-button").off("click").on("click",function(){return $(".category-filters .filter").removeClass("open"),item_category_navigate(),!1}),$('.category-filters .filter[data-type="values"] .option').off("click").on("click",function(){$(this).hasClass("selected")?$(this).removeClass("selected"):($(this).parent().find(".option").removeClass("selected"),$(this).addClass("selected"))}),$('.category-filters .filter[data-type="values-multi"] .option').off("click").on("click",function(){$(this).toggleClass("selected")}),$(".category-filters .category-filter-select-from, .category-filters .category-filter-select-to").off("input").on("input",function(){var e=$(this).closest(".filter"),t=parseInt(e.find(".category-filter-select-from").val()),i=parseInt(e.find(".category-filter-select-to").val());$(this).hasClass("category-filter-select-from")?i<t&&e.find(".category-filter-select-to").val(t):i<t&&e.find(".category-filter-select-from").val(i),e.find(".category-filter-input-from").val(t),e.find(".category-filter-input-to").val(i)}),$(".category-filters .category-filter-select-from").trigger("input"),$(".category-filters .category-filter-input-from, .category-filters .category-filter-input-to").off("change").on("change",function(){var e=$(this).closest(".filter"),t=e.find(".category-filter-input-from"),i=e.find(".category-filter-input-to"),n=parseInt(t.attr("min")),o=parseInt(t.attr("max")),a=parseInt(t.val()),s=parseInt(i.val());$(this).hasClass("category-filter-input-from")?(a<n?t.val(a=n):o<a&&t.val(a=o),s<a&&(i.val(a),s=a)):(s<n?i.val(s=n):o<s&&i.val(s=o),s<a&&(t.val(s),a=s)),e.find(".category-filter-select-from").val(a),e.find(".category-filter-select-to").val(s)}),$(".category-filters .filter .filter-value-selected").off("click").on("click",function(){var e,t=$(this).closest(".filter"),i=t.attr("data-type");-1<["values","values-multi"].indexOf(i)?(e=this.getAttribute("data-value"),t.find('.option[data-value="'+e+'"]').removeClass("selected")):"range"===i&&(t.find(".category-filter-input-from").val(t.find(".category-filter-input-from").attr("min")),t.find(".category-filter-input-to").val(t.find(".category-filter-input-to").attr("max"))),item_category_navigate()})}function item_category_navigate(){var e,t={},i=(window.location.search&&parse_str(parse_url(window.location.search,"query"),t),{});for(e in t)"filters"!==e&&(i[e]=t[e]);var n=$(".items-in-category-header-container .category-item-pagination-container");i.page=1,n.find(".category-item-sorting-dropdown").length&&(i.sort=encodeURIComponent(n.find(".category-item-sorting-dropdown").val())),n.find(".category-item-items-per-page-dropdown").length&&(i.page_size=parseInt(n.find(".category-item-items-per-page-dropdown").val()));const s=[];$(".category-filters .filter").each(function(){const e=this.getAttribute("data-id");var t,i,n,o=this.getAttribute("data-type");if("values"===o)$(this).find(".option.selected").each(function(){s.push([e,encodeURIComponent(this.getAttribute("data-value"))])});else if("values-multi"===o){const a=[];$(this).find(".option.selected").each(function(){a.push(encodeURIComponent(this.getAttribute("data-value")))}),a.length&&s.push([e,a])}else"range"===o&&(o=$(this).find(".category-filter-input-from"),t=$(this).find(".category-filter-input-to"),i=o.val(),n=t.val(),i===o.attr("min")&&n===t.attr("max")||s.push([e,parseInt(i),parseInt(n)]))});let o=ltrim(window.location.pathname,"/");o+="?"+http_build_query(i),s.length&&(o+="&filters="+JSON.stringify(s)),content_load(o,!0)}function cookies_choice_has_been_made(e,t,i){$(".cookie-settings-modal").remove(),$(".cookie-banner-modal").remove(),$(".cookie-modal-backdrop").remove(),$(".cookie-settings-modal-backdrop").remove(),$(".cookie-banner").remove(),$("body").removeClass("cookie-modal-open");var n={necessary:1};n.functional=e?1:0,n.statistics=t?1:0,n.marketing=i?1:0,set_cookie("cookies_allowed",JSON.stringify(n),365),e&&((o=document.createEvent("Event")).initEvent("_cookies_functional_accepted",!0,!0),window.dispatchEvent(o)),t&&((o=document.createEvent("Event")).initEvent("_cookies_statistics_accepted",!0,!0),window.dispatchEvent(o)),i&&((o=document.createEvent("Event")).initEvent("_cookies_marketing_accepted",!0,!0),window.dispatchEvent(o)),t&&i&&((o=document.createEvent("Event")).initEvent("_cookies_statistics_and_marketing_accepted",!0,!0),window.dispatchEvent(o));(o=document.createEvent("Event")).initEvent("_cookies_choice_made",!0,!0),window.dispatchEvent(o);var o,a=[];t||a.push("uus"),t&&i||(a.push("_ga"),a.push("_gid"),a.push("_fbp"),a.push("_fbc")),i||(a.push("__kla_id"),a.push("_paid"),a.push("_pacid"));for(var s=0;s<a.length;s++){var r=a[s];0===window.location.hostname.indexOf("www.")&&delete_cookie(r,window.location.hostname.substr(4)),delete_cookie(r,window.location.hostname)}cookies_page_setup()}function cookies_settings_modal(){$(".cookie-banner-modal").length?($(".cookie-banner-modal").hide(),$(".cookie-modal-backdrop").hide()):$("body").addClass("cookie-modal-open"),$("body").append('<div class="cookie-settings-modal-backdrop"></div>');var e='<div class="cookie-settings-modal"><div class="cookie-settings-modal-inner"><div class="header">'+_t("Cookies og formål")+'</div><div class="cookie-type-container"><label class="title-line"><div class="title">'+_t("Nødvendige")+'</div><div class="checkbox"><input type="checkbox" class="switch" name="necessary" disabled checked></div></label><div class="text">'+_t("Nødvendige cookies bruges til at gøre en hjemmeside brugbar.<br>For eksempel ved at tillade login og ordreafgivelse.",!1)+'</div></div><div class="cookie-type-container"><label class="title-line"><div class="title">'+_t("Funktionelle")+'</div><div class="checkbox"><input type="checkbox" class="switch" name="functional"></div></label><div class="text">'+_t("Funktionelle cookies bruges til at gemme foretrukne indstillinger såsom hvilket sprog og valuta du vil se på hjemmesiden.")+'</div></div><div class="cookie-type-container"><label class="title-line"><div class="title">'+_t("Statistik")+'</div><div class="checkbox"><input type="checkbox" class="switch" name="statistics"></div></label><div class="text">'+_t("Vi indsamler oplysninger om hvor ofte du besøger hjemmesiden samt hvordan du benytter hjemmesiden.")+'</div></div><div class="cookie-type-container"><label class="title-line"><div class="title">'+_t("Markedsføring")+'</div><div class="checkbox"><input type="checkbox" class="switch" name="marketing"></div></label><div class="text">'+_t("Vi indsamler oplysninger om dine interesser og hvilke varer du køber / kigger på for at kunne vise dig mere målrettede annoncer.")+'</div></div><div class="cookie-buttons"><button type="button" class="btn-secondary back-button">'+_t("Tilbage")+'</button><button type="button" class="btn-success accept-button">'+_t("Gem")+"</button></div></div></div>";$("body").append(e),$(".cookie-settings-modal .accept-button").on("click",function(){var e={};$(".cookie-settings-modal input").each(function(){e[this.name]=this.checked?1:0}),cookies_choice_has_been_made(e.functional,e.statistics,e.marketing)}),$(".cookie-settings-modal .back-button").on("click",function(){$(".cookie-settings-modal").remove(),$(".cookie-banner-modal").length?($(".cookie-banner-modal").show(),$(".cookie-modal-backdrop").show()):$("body").removeClass("cookie-modal-open"),$(".cookie-settings-modal-backdrop").remove()})}function cookies_page_setup(){$('.page-header[data-page-type="cookie_policy"]').length?(""!==get_cookie("cookies_allowed")&&($("#container-main-content").append('<button class="btn btn-success cookies-choose-again" type="button" style="position: fixed; left: 15px; bottom: 15px; z-index: 10000;">'+_t("Skift mit cookie valg")+"</button>"),$(".cookies-choose-again").on("click",function(){delete_cookie("cookies_allowed"),window.location.href="/"})),$(".cookie-banner-modal").length&&($(".cookie-banner-modal").hide(),$(".cookie-modal-backdrop").hide(),$("body").removeClass("cookie-modal-open"))):$('.page-header[data-page-type="privacy_policy"]').length?$(".cookie-banner-modal").length&&($(".cookie-banner-modal").hide(),$(".cookie-modal-backdrop").hide(),$("body").removeClass("cookie-modal-open")):$(".cookie-banner-modal").length&&($(".cookie-banner-modal").show(),$(".cookie-modal-backdrop").show(),$("body").addClass("cookie-modal-open"))}function cookies_choice_made(){var e=get_cookie("cookies_allowed");return""!==e&&"{"===e.substr(0,1)}function cookies_allowed(e){var t;return!!cookies_choice_made()&&!(void 0===(t=JSON.parse(get_cookie("cookies_allowed")))[e]||!t[e])}function google_tag_consent_set(){"function"==typeof gtag&&(cookies_allowed("statistics")&&gtag("consent","update",{analytics_storage:"granted"}),cookies_allowed("marketing"))&&gtag("consent","update",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted"})}function games_setup(){let r=$(this).find(".game-container"),l=r.attr("data-game-id"),t=r.attr("data-game-type");ajax_post("/ajax/games","&sub_action=get&game_id="+l,function(s){if(1===s.result&&(r.html(s.html),newsletter_gdpr_setup(),"wheel_of_fortune"===t)){let o=!1;var e=r.find(".wheel-of-fortune-board");let a=parseInt(e.attr("data-winning-slice-has-price"));$(r).find(".spin-the-wheel").on("click",function(){let i=this;var n=$(r).find(".wheel");if("before"===s.email_before_or_after){let e=r.find('input[name="email"]').val().trim();if(""===e)return void alert_nice(!1,_t("Der skal indtastes en gyldig e-mail for at spille"));if(!o)return ajax_post("/ajax/games","&sub_action=validate_email&game_id="+l+"&email="+encodeURIComponent(e),function(e){$(i).attr("disabled",!1),1===e.result&&(o=!0,$(r).find(".spin-the-wheel").trigger("click"))}),void $(i).attr("disabled","disabled");let t=r.find('input[name="newsletter_signup"]').prop("checked")?1:0;if(s.newsletter_subscription_required&&!t)return void alert_nice(!1,_t("Tilmelding til nyhedsbrevet er påkrævet for at spille"));$(n).on("animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd",function(){a&&ajax_post("/ajax/games","&sub_action=send_email&game_id="+l+"&email="+encodeURIComponent(e)+"&newsletter_signup="+t,function(e){1===e.result&&modal_simple(_t("Tillykke!"),s.modal_html)})})}else $(n).on("animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd",function(){a&&modal_simple(_t("Tillykke!"),s.modal_html,void 0,{form_action:"/ajax/games",save_button:_t("Send"),save_button_class:"btn-success",close_button_class:"hide",ajax_form_submit_callback:function(e){browserloading_stop(),1===e.result&&(modal_close_top_real(),self_destructing_message(_t("Vi har sendt dig en email med din rabatkode")))},focus_first_input:!0})});n.addClass("spinning"),$(i).attr("disabled","disabled"),ajax_post("/ajax/games","&sub_action=stats&game_id="+l)})}})}function header_handler(e){var t,i=!1,n=!1,o=($('header[data-overlap-carousel="1"]').length&&0===$(".topbar-below").length&&($('header[data-overlap-carousel="1"]').removeAttr("data-first-block-is-carousel"),"carousel"===(o=$("#container-main-content div[data-module-block-id]").first()).attr("data-module-block-type")&&0<o.find(".carousel.full-width").length&&0===$(".page-header.section-in-main-container").length&&(i=!0,$('header[data-overlap-carousel="1"]').attr("data-first-block-is-carousel","1")),"object"!=typeof e||"_after_load"!==e.type||i||$("header").addClass("notransition"),$("header").removeClass("carousel-overlap-active"),"object"!=typeof e||"_after_load"!==e.type||i||($("header").get(0).offsetHeight,$("header").removeClass("notransition"))),$("#elements-fixed-to-top")),a=o.find(".fixed-elements"),s=!0;a.length?(t=a[0].getBoundingClientRect().height,$("body").hasClass("nav-menu-open")||(0===window.location.pathname.indexOf("/basket")||t>.35*window.innerHeight)&&(s=!1),a.find("header").length&&i&&(t-=$("header")[0].getBoundingClientRect().height,$("body").hasClass("nav-menu-open")||0===window.scrollY&&$("header").addClass("carousel-overlap-active"),n=!0),o.find(".space-for-the-fixed-elements").css("height",t)):o.find(".space-for-the-fixed-elements").css("height",0),!i||n||$("body").hasClass("nav-menu-open")||$("header").addClass("carousel-overlap-active"),s?("1"!==document.body.getAttribute("data-top-menu-fixed-allowed")&&document.body.setAttribute("data-top-menu-fixed-allowed","1"),$("body").hasClass("nav-menu-open")?(t=window.scrollY<0?0:window.scrollY,o=window.scrollY<window._g_header_handler_last_scrollY?"up":"down",window._g_header_handler_last_scrollY=window.scrollY,"up"==o?0<a[0].getBoundingClientRect().top&&"fixed"!==a.css("position")&&(a.css("position","fixed"),a.css("top","")):"fixed"===a.css("position")&&(a.css("position","absolute"),a.css("top",t))):"absolute"===a.css("position")&&(a.css("position","fixed"),a.css("top",""))):(document.body.removeAttribute("data-top-menu-fixed-allowed"),a.css("position","absolute"),a.css("top","")),$(".nav-toggle-nice span").css("height",""),$(".nav-toggle-nice span").css("height",Math.round($(".nav-toggle-nice span").first().height()))}function navmenu_fit_menu(){var e,t,i=$("#top-menu-container"),n=$(".topmenu-left-side-container"),o=$(".topmenu-right-side-container");i.css("width",""),n.css("width","").css("font-size",""),o.css("width",""),window.innerWidth<=767||(e=n[0].getBoundingClientRect(),t=o[0].getBoundingClientRect(),e.width<t.width?(n.css("width",t.width),o.css("width",t.width),i.css("width",window.innerWidth-2*t.width)):(o.css("width",e.width),n.css("width",e.width),i.css("width",window.innerWidth-2*e.width)),fit_text_to_container(!0))}function topmenu_link_active_setup(){$(".nav-menu-desktop").find(".active").removeClass("active");var e,t=decodeURI_ss(window.location.pathname),i=(t=1<(t=(t=(t=t.replace(/"/g,"%22")).replace(/\/p:\d+/g,"")).replace(/\/s:(.+?(?=\/)|.+)/g,"")).length?rtrim(t,"/"):t,$('.nav-menu-desktop a[href="'+t+'"]')),n=!1,i=(i.length&&i.each(function(){n=!0,(this.parentNode.classList.contains("dropdown-mm-btn")?this.parentNode:this).classList.add("active")}),n||void 0!==(e=window.location.pathname.split("/"))[1]&&"customer"===e[1]&&$('.nav-menu-desktop a[data-roadmap-module="customer"]').each(function(){(this.parentNode.classList.contains("dropdown-mm-btn")?this.parentNode:this).classList.add("active")}),$(".nav-menu-mobile").find(".active").removeClass("active"),$('.nav-menu-mobile a[href="'+t+'"]')),n=!1;i.length&&i.each(function(){n=!0,this.parentNode.classList.add("active")}),n||void 0!==(e=window.location.pathname.split("/"))[1]&&"customer"===e[1]&&$('.nav-menu-mobile a[data-roadmap-module="customer"]').each(function(){this.parentNode.classList.add("active")})}function navmenu_toggle_dropdown(e,t){var i,n,o,a,s,r,l=$(e).find(".dropdown-mm-content"),d=!0,c=($(e).find(".column").each(function(){var e=!!$(this).find(" > .header").length,t=$(this).find(" > *").length;if(!e||1<t)return d=!1}),d&&l.addClass("only-headers"),$(e).find(".column").width(""),l.css("left","").css("right","").css("width",""),0),u=0;$(e).find(".column").each(function(){var e=Math.ceil(this.getBoundingClientRect().width),e=(c<e&&(c=e),this.scrollWidth);u<e&&(u=e)}),c<u?($(e).find(".column").width(u),a=l.width(),l.width(a+(u-c)),(a=l.get(0).getBoundingClientRect()).right>window.innerWidth&&(r=-1*a.left,r+=window.innerWidth-a.width-15,l.css("left",r))):($(e).find(".column").css("width",c+"px"),a=$(e).find(".column").length,r=parseInt($(e).find(".columns").css("padding-top"))+parseInt($(e).find(".columns").css("padding-bottom")),i=l.width(),l.css("width","auto"),n=l.width(),s=Math.floor((window.innerWidth-15-r)/c),o=Math.floor(n/c),i<=n&&o<s?(a<s?l.css("width",c*a+r+"px"):l.css("width",c*s+r+"px"),o=l[0].getBoundingClientRect(),a=window.innerWidth/2,s=Math.floor(o.left)+Math.floor(o.width/2),l[0].style.left=a-s+"px"):90<=n/i*100?l.css("width",""):i<(r=e.getBoundingClientRect().left-l[0].getBoundingClientRect().left)+n?l.css("right","0").css("left","auto"):l.css("left",r)),"open"===element_toggle_height(l[0],!1,header_handler,t)?(window._g_navmenu_dropdown_open=!0,e.classList.add("show"),$("body").addClass("nav-menu-open")):e.classList.remove("show"),navmenu_close_all_dropdowns(e)}function navmenu_close_all_dropdowns(i){$("nav.nav-menu-desktop .dropdown-mm").each(function(){var e,t;void 0!==i&&this===i||(e=$(this).find(".dropdown-mm-content"),t=this,$(t).addClass("closing"),element_toggle_height(e[0],!1,function(){$(t).removeClass("closing"),header_handler()},"closed"),$(this).removeClass("show"))}),void 0===i&&(window._g_navmenu_dropdown_open=!1,$("#navmenu-dropdown-veil").remove(),$("body").removeClass("nav-menu-open"))}function navmenu_type(){return window.innerWidth<768?"mobile":"desktop"}function navmenu_mobile_toggle(){var e,t=!1;$(".nav-toggle-nice").each(function(){this.classList.toggle("active"),this.classList.contains("active")?(t=!0,this.parentNode.classList.add("active")):this.parentNode.classList.remove("active")}),navmenu_close_all_dropdowns(),t?(e="open",$("nav.nav-menu-mobile").addClass("open"),$("body").addClass("nav-menu-open")):(e="closed",$("nav.nav-menu-mobile").removeClass("open"),$("body").removeClass("nav-menu-open")),element_toggle_height($("nav.nav-menu-mobile")[0],void 0,header_handler,e)}"boolean"==typeof CSS_INLINE_EDIT_ACTIVATED&&CSS_INLINE_EDIT_ACTIVATED&&window.addEventListener("_css_inline_edit_value_changed",breadcrumbs_overlay_setup),window.addEventListener("_after_load",breadcrumbs_overlay_setup),window.addEventListener("_after_load",breadcrumbs_triangle_setup),window.addEventListener("_resize_x",breadcrumbs_triangle_setup),window.addEventListener("_after_load",item_category_setup),window.addEventListener("_resize_x",item_category_setup),document.addEventListener("DOMContentLoaded",function(){$(".cookie-banner-modal").length?($("body").addClass("cookie-modal-open"),$(".cookie-show-details-button").on("click",function(){return modal(_t("Detaljer"),"ajax","cookies_details_modal"),!1}),$('.cookie-banner-modal input[type="checkbox"]').on("change",function(){$('.cookie-banner-modal input[type="checkbox"]').each(function(){this.checked&&0})}).first().trigger("change"),$(".accept-cookies").on("click",function(){cookies_choice_has_been_made(!0,!0,!0)}),$(".accept-limited-cookies").on("click",function(){cookies_choice_has_been_made($('.cookie-banner-modal input[type="checkbox"][name="functional"]').prop("checked"),$('.cookie-banner-modal input[type="checkbox"][name="statistics"]').prop("checked"),$('.cookie-banner-modal input[type="checkbox"][name="marketing"]').prop("checked"))})):$(".cookie-banner").length&&($(".settings-cookies").on("click",function(){cookies_settings_modal()}),$(".accept-cookies").on("click",function(){cookies_choice_has_been_made(!0,!0,!0)}),$(".reject-cookies").on("click",function(){cookies_choice_has_been_made(!1,!1,!1)}))}),document.addEventListener("DOMContentLoaded",cookies_page_setup),window.addEventListener("_pageload_end",cookies_page_setup),document.addEventListener("DOMContentLoaded",google_tag_consent_set),window.addEventListener("_cookies_choice_made",google_tag_consent_set),document.addEventListener("DOMContentLoaded",function(){$(".header-language-selector").length&&(window._private_header_language_selector_open=function(){if(clearTimeout(window._private_header_language_selector_close_timeout),this.classList.contains("open"))return!1;var e=$(this).find(".dropdown");this.classList.add("open"),e.css("margin-top",$(this).height()),e.css("width",$(this).outerWidth()),e.find(".language").off("click").on("click",function(){var e=!!parseInt(this.getAttribute("data-public"));language_switch(this.getAttribute("data-language"),e)}),window._private_header_language_selector_close=function(e){var t;"click"===e.type&&$(e.target).closest(".dropdown").length||(t="mouseleave"===e.type?250:0,clearTimeout(window._private_header_language_selector_close_timeout),window._private_header_language_selector_close_timeout=setTimeout(function(){$(".header-language-selector").removeClass("open"),$(".header-language-selector").off("mouseleave click",window._private_header_language_selector_close),$("body").off("click",window._private_header_language_selector_close),window.removeEventListener("_pageload_end",window._private_header_language_selector_close)},t))},$(".header-language-selector").on("mouseleave",window._private_header_language_selector_close),window.addEventListener("_pageload_end",window._private_header_language_selector_close),setTimeout(function(){$(".header-language-selector").on("click",window._private_header_language_selector_close),$("body").on("click",window._private_header_language_selector_close)},500)},$(".header-language-selector").on("mouseenter click",window._private_header_language_selector_open))}),document.addEventListener("DOMContentLoaded",header_handler),window.addEventListener("resize",header_handler),window.addEventListener("_after_load",function(){var t;setTimeout(header_handler,0),document.body.hasAttribute("data-top-menu-fixed")&&(t=0,new MutationObserver(function(){var e=$("#elements-fixed-to-top .fixed-elements").height();t!==e&&(header_handler(),t=$("#elements-fixed-to-top .fixed-elements").height())}).observe($("#elements-fixed-to-top")[0],{childList:!0,subtree:!0,attributes:!0}))}),window.addEventListener("scroll",header_handler),document.addEventListener("DOMContentLoaded",function(){navmenu_fit_menu(),window.addEventListener("load",function(){navmenu_fit_menu()}),window.addEventListener("_resize_x",function(){navmenu_close_all_dropdowns(),navmenu_fit_menu()}),window.addEventListener("_basket_minimal_checkout_added",navmenu_fit_menu),window.addEventListener("_basket_minimal_checkout_removed",navmenu_fit_menu);let t=$("header .iconify:not(svg)");if(t.length){let e=new MutationObserver(function(){t!==(t=$("header .iconify:not(svg)"))&&navmenu_fit_menu(),0===t.length&&e.disconnect()});e.observe($("header")[0],{childList:!0,subtree:!0})}$("nav.nav-menu-desktop .dropdown-mm .dropdown-mm-btn").on("click",function(){var e;"desktop"===navmenu_type()?((e=document.createElement("div")).id="navmenu-dropdown-veil",e.addEventListener("click",function(){navmenu_close_all_dropdowns()}),$("#top-menu-container").append(e)):navmenu_toggle_dropdown($(this).closest(".dropdown-mm")[0])}),$("nav.nav-menu-desktop .dropdown-mm").each(function(){$(this).find(".dropdown-mm-btn").length&&($(this).off("mouseenter").on("mouseenter",function(){var e;$(this).hasClass("closing")||(e=void 0===window._g_navmenu_dropdown_open||!1===window._g_navmenu_dropdown_open?100:200,"desktop"!==navmenu_type())||$("#navmenu-dropdown-veil").length||(void 0!==window._g_navmenu_hover_close_timer&&clearTimeout(window._g_navmenu_hover_close_timer),$(this).data("mouseover-element",!0),setTimeout(function(e){!0===$(e).data("mouseover-element")&&navmenu_toggle_dropdown(e,"open")},e,this))}),$(this).off("mouseleave").on("mouseleave",function(e){null===e.relatedTarget||"desktop"!==navmenu_type()||$("#navmenu-dropdown-veil").length||(window._g_navmenu_hover_close_timer=setTimeout(navmenu_close_all_dropdowns,600),$(this).data("mouseover-element",!1))}))}),$(".mobile-menu-toggler").on("click",function(){navmenu_mobile_toggle()}),$("nav.nav-menu-mobile .ss-nav-item .ss-dropdown-toggle").off("click").on("click",function(e){var t,i;if("a"!==e.target.nodeName.toLowerCase()||"_blank"!==e.target.target.toLowerCase())return t=$(this).parent().find(".ss-dropdown-menu-outer"),$(this).hasClass("ss-dropdown-item")&&(t=$(this).next()),(i=this).classList.contains("open")?(this.classList.remove("open"),element_toggle_height(t[0],!1,function(e){i.classList.contains("open")||e.classList.remove("open")},"closed")):(i.classList.add("open"),t.addClass("open"),element_toggle_height(t[0],!1,void 0,"open")),e.returnValue=!1,e.stopPropagation(),e.preventDefault(),!1}),window.addEventListener("_pageload_end",function(){"desktop"!==navmenu_type()&&0<$("nav.nav-menu-mobile").height()&&navmenu_mobile_toggle(),navmenu_close_all_dropdowns(),topmenu_link_active_setup()}),topmenu_link_active_setup()}),window.addEventListener("load",function(){module_blocks_auto_refresh_after(),window.addEventListener("_after_load",module_blocks_auto_refresh_after);var e=(new Date).getSeconds();setTimeout(function(){module_blocks_auto_refresh_after(),setInterval(module_blocks_auto_refresh_after,6e4)},1e3*(62-e))});let MODULE_BLOCKS_AUTO_REFRESH_AFTER_REFRESH_LOG_OBJECT={};function module_blocks_auto_refresh_after(){const i=Math.round((new Date).getTime()/1e3);$("[data-auto-refresh-after]").each(function(){var e=parseInt(this.getAttribute("data-auto-refresh-after")),t=this.getAttribute("data-module-block-id");e<i&&("number"==typeof MODULE_BLOCKS_AUTO_REFRESH_AFTER_REFRESH_LOG_OBJECT[t]&&MODULE_BLOCKS_AUTO_REFRESH_AFTER_REFRESH_LOG_OBJECT[t]+50>i||(MODULE_BLOCKS_AUTO_REFRESH_AFTER_REFRESH_LOG_OBJECT[t]=i,module_blocks_load_these([t])))})}function module_blocks_background_image_setup(){$('[data-module-block-type][style*="background-image"]').each(function(){$(this).data("background_image_fixer_set_up")||($(this).data("background_image_fixer_set_up",1),"fixed"===this.style.backgroundAttachment&&(-1<navigator.userAgent.indexOf("iPad;")||-1<navigator.userAgent.indexOf("iPhone;"))&&-1<navigator.userAgent.indexOf("Safari/")&&(this.style.backgroundAttachment="scroll"),"center"===this.style.backgroundPositionX&&"cover"===this.style.backgroundSize&&"fixed"===this.style.backgroundAttachment&&($(this).data("background_image_fixer_set_up",2),module_blocks_background_image_cover_fixed_fix(this)))})}function module_blocks_background_image_cover_fixed_fix(e){setTimeout(function(e){var t=e.getBoundingClientRect().width;t+20<window.innerWidth?e.style.backgroundPositionX="-"+t/2+"px":e.style.backgroundPositionX="center"},0,e)}function background_videos_setup(){$("[data-module-block-type][data-background-video-location]").each(function(){if(!this.classList.contains("background-video-background")){var e=this.getAttribute("data-background-video-type"),t=this.getAttribute("data-background-video-location"),i=this.hasAttribute("data-lazy-load-elements"),n=document.createElement("div");if(n.className="background-video-foreground","youtube"===e)n.innerHTML=i?'<iframe src="https://www.youtube.com/embed/'+t+"?controls=0&rel=0&modestbranding=1&autoplay=1&loop=1&playlist="+t+"&mute=1&playsinline=1&enablejsapi=1&origin="+window.location.origin+'" frameborder="0" data-youtube-api-autoplay="1" loading="lazy"></iframe>':'<iframe src="https://www.youtube.com/embed/'+t+"?controls=0&rel=0&modestbranding=1&autoplay=1&loop=1&playlist="+t+"&mute=1&playsinline=1&enablejsapi=1&origin="+window.location.origin+'" frameborder="0" data-youtube-api-autoplay="1"></iframe>';else{if("cdn"!==e)return void alert("Unsupported type");n.innerHTML=i?'<iframe src="https://'+CDN_LARGE_FILES_TO_USE_HOSTNAME+"/videos/embed/"+t+'?controls=0&autoplay=1&loop=1&mute=1&bg=1" frameborder="0" loading="lazy"></iframe>':'<iframe src="https://'+CDN_LARGE_FILES_TO_USE_HOSTNAME+"/videos/embed/"+t+'?controls=0&autoplay=1&loop=1&mute=1&bg=1" frameborder="0"></iframe>'}this.classList.add("background-video-background"),this.insertBefore(n,this.childNodes[0]),"youtube"===e&&javascript_load("https://www.youtube.com/iframe_api",onYouTubeIframeAPIReady)}}),window.addEventListener("click",background_video_autoplay)}function background_video_autoplay(){let t=0;var e=$("[data-module-block-type][data-background-video-location]");e.each(function(){if(!this._autoplay_attempted){if("youtube"===this.getAttribute("data-background-video-type")){if("function"!=typeof YT.Player)return;var e=$(this).find('iframe[data-youtube-api-autoplay="1"]');if(0===e.length||void 0===e[0]._yt_player.playVideo)return;e[0]._yt_player.playVideo(),background_videos_adjust_to_parent()}else{e=$(this).find("iframe").get(0);let t=!1;try{"complete"===(e.contentDocument||e.contentWindow.document).readyState&&(t=!0)}catch(e){t=!0}if(!t)return;e.contentWindow.postMessage({type:"play"},"https://"+CDN_LARGE_FILES_TO_USE_HOSTNAME)}this._autoplay_attempted=1}t++}),t===e.length&&window.removeEventListener("click",background_video_autoplay)}function onYouTubeIframeAPIReady(){"function"==typeof YT.Player&&$('iframe[data-youtube-api-autoplay="1"]').each(function(){this._yt_player=new YT.Player(this,{events:{onReady:function(e){e.target.playVideo(),background_videos_adjust_to_parent()}}})})}function background_videos_adjust_to_parent(){$('[data-module-block-type][data-background-video-location][data-background-video-width][data-background-video-type="youtube"]').each(function(){var e=$(this).find(".background-video-foreground iframe"),t=$(e).parent(),i=parseInt($(this).attr("data-background-video-width")),n=parseInt($(this).attr("data-background-video-height")),n=n<i?i/n:n/i,i=t.width(),o=t.width()/n;o<t.height()&&(o=t.height(),i=t.height()*n),$(e).width(i),$(e).height(o)})}function module_block_blog_links_setup(){const o=$(this);$(o).find(".blog-categories .blog-category").on("click",function(){var e=parseInt($(this).attr("data-id")),t=($(o).find(".blog-categories .blog-category.active").removeClass("active"),$(this).addClass("active"),(0===e?$(o).find(".blog-links-with-images .blog-link"):($(o).find(".blog-links-with-images .blog-link").hide(),$(o).find('.blog-links-with-images .blog-link .blog-category-on-image[data-id="'+e+'"]').closest(".blog-link"))).show(),parse_url(window.location.href)),i={};t.query&&parse_str(t.query,i),i.blog_category_id=e;let n=t.path;n+="?"+http_build_query(i),t.fragment&&(n+="#"+t.fragment),history.replaceState(null,"",n)});var e=parse_url(window.location.href);e.query&&(parse_str(e.query,e={}),void 0!==e.blog_category_id)&&$(o).find('.blog-categories .blog-category[data-id="'+e.blog_category_id+'"]').trigger("click")}function carousel_public_setup(){$(this).find("div.carousel").each(function(){this.carousel_active=0,this.carousel_images_total=$(this).find(".carousel-item").length,this.carousel_image_index_last_loaded=!1,this.carousel_images_loaded={},carousel_public_start(this),$(this).find(".carousel-text-clicks-image").on("click",function(){$(this).closest(".carousel-item").find(" > a")[0].click()})}),window.addEventListener("resize",carousel_public_onresize),window.addEventListener("scroll",carousel_public_onscroll)}function carousel_public_start(t){carousel_public_image_sizes(t,void 0,function(){$(t).off("slide.bs.carousel"),$(t).off("slid.bs.carousel"),$(t).on("slide.bs.carousel",function(e){return void 0===t.carousel_images_loaded[e.to]?(carousel_public_image_sizes(this,e.to,function(){"right"===e.direction&&e.to>e.from?$(t).carousel("prev"):0===e.to&&e.from>e.to?$(t).carousel("next"):$(t).carousel(e.to)}),!1):"loading"!==t.carousel_images_loaded[e.to]&&void 0}),$(t).on("slid.bs.carousel",function(){var e;!1!==this.carousel_image_index_last_loaded&&(e=this.carousel_image_index_last_loaded+1,void 0===t.carousel_images_loaded[e])&&e<this.carousel_images_total&&carousel_public_image_sizes(this,e),carousel_align_tags.apply(this)}),$(t).carousel("cycle"),t.carousel_active=1,carousel_align_tags.apply(t)})}function carousel_public_image_sizes(r,l,d){void 0===l&&(l=0,$(r).find(".carousel-item").each(function(){if(this.classList.contains("active"))return!1;l++}));var e=$(r).closest(".carousel-block"),c=e.attr("data-height-forced")||450,t=$(r).find(".carousel-item").get(l),u=e.attr("data-full-width-dynamic-height");$(t).find("img").each(function(){var e,t,i,n,o,a,s;this.hasAttribute("data-src")&&0===this.getAttribute("data-src").indexOf("data:image/")?(r.carousel_images_loaded[l]=!0,r.carousel_image_index_last_loaded=l,carousel_public_align_text.apply(this),"function"==typeof d&&d(l)):this.hasAttribute("data-src")&&-1<this.getAttribute("data-src").indexOf("/images/raw/")?(t=this.getAttribute("data-src"),this.src===t?(r.carousel_images_loaded[l]=!0,r.carousel_image_index_last_loaded=l,carousel_public_align_text.apply(this),"function"==typeof d&&d(l)):(this.src=t,r.carousel_images_loaded[l]="loading",$(this).off("load").on("load",function(){this.complete&&(r.carousel_images_loaded[l]=!0,r.carousel_image_index_last_loaded=l,this.offsetHeight,carousel_public_align_text.apply(this),"function"==typeof d)&&d(l)}),lazy_load_effect_on_load(this))):"carousel-full-width-image"===this.getAttribute("data-type")?(e=this.getAttribute("data-src"),n=50*Math.ceil(window.innerWidth/50),(o=e.split("/"))[o.length-2]="1"===u?n+"-0":n+"-"+c+"/carousel-fw-crop",a=o.join("/"),this.src===a?(r.carousel_images_loaded[l]=!0,r.carousel_image_index_last_loaded=l,carousel_public_align_text.apply(this),"function"==typeof d&&d(l)):(o[o.length-2]="1"===u?2*n+"-0":2*n+"-"+2*c+"/carousel-fw-crop",s=a+" 1x",s+=","+o.join("/")+" 2x",this.srcset=s,this.src=a,r.carousel_images_loaded[l]="loading",$(this).off("load").on("load",function(){this.complete&&(r.carousel_images_loaded[l]=!0,r.carousel_image_index_last_loaded=l,this.offsetHeight,carousel_public_align_text.apply(this),"function"==typeof d)&&d(l)}),lazy_load_effect_on_load(this))):"carousel-standard-width-image"===this.getAttribute("data-type")&&(e=this.getAttribute("data-src"),t=this.getAttribute("data-width"),i=$(this).closest(".carousel-item").width(),n=50*Math.ceil(i/50),(o=e.split("/"))[o.length-2]=n+"-0",a=o.join("/"),this.src===a?(r.carousel_images_loaded[l]=!0,r.carousel_image_index_last_loaded=l,carousel_public_align_image.apply(this,[n]),carousel_public_align_text.apply(this),"function"==typeof d&&d(l)):(2*n<=t?(s=a+" 1x",o[o.length-2]=2*n+"-0",s+=","+o.join("/")+" 2x",this.srcset=s):this.srcset="",this.src=a,r.carousel_images_loaded[l]="loading",$(this).off("load").on("load",function(){this.complete&&(r.carousel_images_loaded[l]=!0,r.carousel_image_index_last_loaded=l,this.offsetHeight,carousel_public_align_image.apply(this,[n]),carousel_public_align_text.apply(this),"function"==typeof d)&&d(l)}),lazy_load_effect_on_load(this)))})}function carousel_public_onresize(){clearTimeout(window._g_carousel_public_onresize_timer),window._g_carousel_public_onresize_timer=setTimeout(function(){var t=!1;$("div.carousel").each(function(){var e=this;e.carousel_image_index_last_loaded=!1,e.carousel_images_loaded={},e.carousel_active&&carousel_public_image_sizes(e,void 0,function(){carousel_align_tags.apply(e)}),carousel_public_toggle_based_on_visibility.apply(e,arguments),t=!0}),t||window.removeEventListener("resize",carousel_public_onresize)},200)}function carousel_public_onscroll(){clearTimeout(window._g_carousel_public_onscroll_timer),window._g_carousel_public_onscroll_timer=setTimeout(function(){var e=!1;$("div.carousel").each(function(){void 0!==this.carousel_active&&(carousel_public_toggle_based_on_visibility.apply(this,arguments),e=!0)}),e||window.removeEventListener("scroll",carousel_public_onscroll)},50)}function carousel_public_toggle_based_on_visibility(){$(this).closest(".modal").length||(this.carousel_active&&!is_element_fully_in_viewport($(this).closest(".section-in-main-container").get(0),!0)?($(this).carousel("pause"),this.carousel_active=0):!this.carousel_active&&is_element_fully_in_viewport($(this).closest(".section-in-main-container").get(0),!0)&&carousel_public_start(this))}function carousel_public_align_image(i){var e=$(this).closest(".carousel-block"),e=parseInt(e.attr("data-height-forced")),e=e||window.innerHeight/2,n=0,t=($(this).closest(".carousel").find(".carousel-item img").each(function(){var e=parseFloat(this.getAttribute("data-width")),t=parseFloat(this.getAttribute("data-height"));n<(t=i*(t/e))&&(n=t)}),n),e=(e<=t&&(t=e),this.style.marginTop="",this.style.marginBottom="",$(this).closest(".carousel-item").css("display","block"),this.getBoundingClientRect().height);$(this).closest(".carousel-item").css("display",""),e<t&&(this.style.marginTop=(t=t-e)/2+"px",this.style.marginBottom=t/2+"px")}function carousel_public_align_text(){var e=$(this).closest(".carousel-item");if(e.length&&(a=(e=e.get(0)).getElementsByClassName("carousel-caption-ss")).length){var t,i,n,o=get_parent_with_class(e,"carousel"),a=a[0],s=!0,r=(e.classList.contains("active")||(s=!1,e.classList.add("active")),a.getElementsByClassName("carousel-caption-ss-text").length&&(a.getElementsByClassName("carousel-caption-ss-text")[0].style.maxHeight=""),a.style.left="",a.style.top="",a.style.width="",e.getBoundingClientRect()),l=0,d=(get_parent_with_class(e,"carousel").classList.contains("full-width")?(t=!0,i="100%",1399<window.innerWidth?(i="1320px",l=(window.innerWidth-getScrollbarWidth())/2-660):1199<window.innerWidth?(i="1140px",l=(window.innerWidth-getScrollbarWidth())/2-570):991<window.innerWidth?(i="960px",l=(window.innerWidth-getScrollbarWidth())/2-480):767<window.innerWidth?(i="720px",l=(window.innerWidth-getScrollbarWidth())/2-360):575<window.innerWidth&&(i="540px",l=(window.innerWidth-getScrollbarWidth())/2-270),a.style.width=i,i=r):(t=!1,i=e.getElementsByTagName("img")[0].getBoundingClientRect(),a.style.width=i.width+"px"),0),c=(e.getElementsByClassName("carousel-caption-ss-link").length&&(d=d+(n=e.getElementsByClassName("carousel-caption-ss-link")[0]).getBoundingClientRect().height+5,n.style.visibility="visible"),o.getElementsByClassName("carousel-indicators").length&&(d=d+(o.getElementsByClassName("carousel-inner")[0].getBoundingClientRect().bottom-o.getElementsByClassName("carousel-indicators")[0].getBoundingClientRect().top)+15),i.height-parseInt(d)),u=(a.getElementsByClassName("carousel-caption-ss-text").length&&(a.getElementsByClassName("carousel-caption-ss-text")[0].style.maxHeight=c+"px"),a.style.left=l+r.width/2-i.width/2+"px",a.getBoundingClientRect());if(a.getElementsByClassName("carousel-caption-ss-text").length&&r.height<u.height)for(;0<c&&(c--,a.getElementsByClassName("carousel-caption-ss-text")[0].style.maxHeight=c+"px",u=a.getBoundingClientRect(),!(r.height>u.height)););o.getElementsByClassName("carousel-control-prev").length&&(n=o.getElementsByClassName("carousel-control-prev")[0].getBoundingClientRect(),d=o.getElementsByClassName("carousel-control-next")[0].getBoundingClientRect(),u.left<n.right&&(l=t?15:0,a.style.left=parseInt(a.style.left)+l+(n.right-u.left)+"px",u=a.getBoundingClientRect()),u.right>d.left)&&(a.style.width=u.width-(u.right-d.left)+"px",u=a.getBoundingClientRect()),a.style.top=r.height/2-u.height/2+"px",a.getElementsByClassName("carousel-caption-ss-text").length&&(a.getElementsByClassName("carousel-caption-ss-text")[0].style.visibility="visible"),s||(e.classList.remove("active"),e.offsetHeight)}}function carousel_align_tags(){var e,a,s,r,l,t=$(this).find(".carousel-item.active");t.length&&(e=$(t).find(".tag")).length&&(a=$(t).find("img")[0].getBoundingClientRect(),t=t[0].getBoundingClientRect(),s=a.top-t.top,r=a.left-t.left,l=0,e.each(function(){const e=this;var t=this.getBoundingClientRect(),i=e.getAttribute("data-x-percentage"),n=e.getAttribute("data-y-percentage"),o=e.getAttribute("data-iconify-icon"),i=Math.floor(a.width*(i/100)+r-t.width/2),n=Math.floor(a.height*(n/100)+s-t.height/2);e.style.width=e.getAttribute("data-icon-size")+"px",e.style.height=e.getAttribute("data-icon-size")+"px",e.style.color=e.getAttribute("data-icon-color"),e.style.top=n+"px",e.style.left=i+"px",e.classList.contains("set-up")||(e.hasAttribute("data-linked-to")&&($(e).on("mouseenter",function(e){carousel_tag_show_overlay(this,e)}),is_touch_device())&&$(e).on("touchstart",function(e){var t=$("#container-main-content .carousel-tagging-overlay");0!==t.length&&t[0].parent_tag===this||(carousel_tag_show_overlay(this,e),e.preventDefault())}),e.innerHTML='<i class="iconify icon" data-icon="'+o+'" data-width="100%" data-height="100%" data-whitespace="0"></i>',$(e).find(".icon").css("animation-delay",.1*l+"s"),e.classList.add("set-up"),setTimeout(function(){e.classList.add("done"),$(e).find(".icon").css("animation-delay","")},3e3)),l++}))}function carousel_tag_show_overlay(n,e){function t(){var e,t,i=$(n).data("tag-overlay");!1!==i&&!1!==s&&((e=document.createElement("a")).href=n.href,e.className="carousel-tagging-overlay",t="",i.image_url&&(t+='<div class="image"><img src="'+i.image_url+'"></div>'),t+='<div class="right"><div class="title">'+htmlentities(i.item_title)+'</div><div class="price">'+htmlentities(i.price)+"</div></div>",e.innerHTML=t,o<=window.innerWidth/2?e.style.left=o+5+"px":e.style.right=window.innerWidth-o+5+"px",e.style.top=a+5+"px",e.parent_tag=n,$("#container-main-content").append(e),(i=e.getBoundingClientRect()).left<0?(e.style.right="",e.style.left="5px"):i.right>window.innerWidth&&(e.style.right="5px",e.style.left=""),add_link_listeners())}var o=("mouseenter"===e.type?e.originalEvent:e.originalEvent.changedTouches[0]).pageX,a=("mouseenter"===e.type?e.originalEvent:e.originalEvent.changedTouches[0]).pageY,s=($("#container-main-content .carousel-tagging-overlay").remove(),!0);$(n).one("mouseleave",function(){$("#container-main-content .carousel-tagging-overlay").remove(),s=!1}),$("body").one("click",function(){$("#container-main-content .carousel-tagging-overlay").remove(),s=!1});$(n).data("tag-overlay")?t():ajax_post("/ajax/carousel_tagging_overlay_data","&id="+n.getAttribute("data-linked-to-id")+"&type="+n.getAttribute("data-linked-to"),function(e){1===e.result?($(n).data("tag-overlay",e),t()):$(n).data("tag-overlay",!1)})}function contact_form_public_setup(){var e,t=$(this).find('input[name="validation"]').get(0);""===t.value&&(e=$(this).find('input[name="id"]').val(),t.value=sha1(e+"-this-is-not-meant-to-be-safe-just-to-protect-against-automated-bots-without-javascript")),$(this).find(".contact-form-map-container[data-map-query]").each(function(){let e=this.getAttribute("data-map-query"),t=(this.removeAttribute("data-map-query"),document.createElement("iframe")),i=(0===location.href.indexOf("https://dev---")?t.setAttribute("src","https://dev---gmap.ideal.shop/pages/contact_form_map_iframe"):t.setAttribute("src","https://gmap.ideal.shop/pages/contact_form_map_iframe"),t.style.visibility="hidden",function(e){e.source===t.contentWindow&&"contact_form_iframe_loaded"===e.data.type&&(t.style.visibility="",window.removeEventListener("message",i))});window.addEventListener("message",i),t.onload=function(){t.contentWindow.postMessage({type:"map_query",data:e},"*")},this.appendChild(t)}),$(this).find(".g-recaptcha").length&&javascript_load("https://www.google.com/recaptcha/api.js?hl="+language_get_current(),void 0,!0);let i=$(this).find("select[multiple]");i.length&&ondemand_loading_bootstrap_select(function(){i.selectpicker()})}function contact_form_submit_validate(i){for(var e=i.getElementsByClassName("contactform_required_element"),t=!0,n=0;n<e.length;n++){var o=e[n];o.classList.contains("bootstrap-select")||("checkbox"===o.type.toLowerCase()?(o.parentNode.classList.remove("notice_me_shadow"),o.checked||(o.parentNode.classList.add("notice_me_shadow"),t=!1)):o.classList.contains("selectpicker")?(o.parentNode.classList.remove("notice_me_shadow"),""===o.value.trim()&&(o.parentNode.classList.add("notice_me_shadow"),t=!1)):(o.classList.remove("notice_me_shadow"),""===o.value.trim()&&(o.classList.add("notice_me_shadow"),t=!1)))}return $(i).find('input[type="email"]').each(function(){this.classList.remove("notice_me_shadow"),(""!==this.value&&!1===verify_email(this.value)||this.classList.contains("contactform_required_element")&&""===this.value)&&(this.classList.add("notice_me_shadow"),t=!1)}),$(i).find('select[data-type="select_single"]').each(function(){this.classList.remove("notice_me_shadow"),this.classList.contains("contactform_required_element")&&null===this.options[this.selectedIndex].getAttribute("value")&&(this.classList.add("notice_me_shadow"),t=!1)}),t?ajax_form_submit(i,!1,void 0,function(e){var t;browserloading_stop(),1===e.result&&($(i).closest(".contact-form-outer-container").html(e.html),t=window.location.pathname+window.location.search+"#contact-form-completed",history.replaceState(t,t,t),after_load_setup())}):alert_nice(!1,_t("Du skal udfylde de påkrævede felter")),!1}function module_block_countdown_setup(){let s=this,r=new Date(1e3*parseInt(s.getAttribute("data-time-to-countdown-towards")));function e(){if(document.body.contains(s)){var a=$(s).find(".days .number").length;let e=r.getTime()-(new Date).getTime();e/=1e3;let t,i,n,o;t=i=n=o="00",0<e&&(a&&(t=Math.floor(e/86400),e-=86400*t),i=Math.floor(e/3600),e-=3600*i,n=Math.floor(e/60),e-=60*n,o=Math.floor(e),t=t<10?"0"+t.toString():t.toString(),i=i<10?"0"+i.toString():i.toString(),n=n<10?"0"+n.toString():n.toString(),o=o<10?"0"+o.toString():o.toString()),$(s).find(".days .number").html(t),$(s).find(".hours .number").html(i),$(s).find(".minutes .number").html(n),$(s).find(".seconds .number").html(o),e<0&&clearInterval(s._countdown_interval)}else clearInterval(s._countdown_interval)}var t=$(s).find(".seconds,.minutes").length?1e3:6e4;s._countdown_interval=setInterval(e,t),e()}function module_block_customer_login_manual_setup(){let t=this;ajax_post("/ajax/customer_login_manual","&module_block_id="+$(t).attr("data-module-block-id"),function(e){1===e.result&&($(t).find(".customer-login-manual-container").html(e.html),(e.logged_in?customer_dashboard_setup:login_setup)())})}function module_block_faq_setup(){$(this).find(".faq-box .faq-box-title-container").off("click").on("click",function(){$(this).closest(".faq-box").toggleClass("active"),element_toggle_height($(this).closest(".faq-box").find(".faq-box-text")[0],void 0,function(){after_load_setup()})})}function module_block_image_box_setup(){window.addEventListener("_resize_x",module_block_image_box_on_resize),module_block_image_box_on_resize()}function module_block_image_box_on_resize(){var e=$('[data-module-block-type="image-box"]');e.length?e.find(".image-outer-container").each(function(){$(this).find("img.grow-container-with-image").length||(window.innerWidth<=575?$(this).find(".image-container").height($(this).find(".text-container").outerHeight()):$(this).find(".image-container").height(""))}):window.removeEventListener("_resize_x",module_block_image_box_on_resize)}function module_block_image_collection_setup(){window.addEventListener("_resize_x",module_block_image_collection_event_handler),$(this).find(".image-container img").on("load",module_block_image_collection_event_handler),module_block_image_collection_event_handler()}function module_block_image_collection_event_handler(){if(this&&this!==window)var e=$(this).closest(".image-container");else if(0===(e=$(".module-block.image-collection .image-container")).length)return void window.removeEventListener("_resize_x",module_block_image_collection_event_handler);var t=0;e.each(function(){var e=$(this).find("img");e.attr("data-lazy-load-src")||e[0].complete&&(t++,$(this).addClass("image-loaded"),e=$(this).find("img").width(),$(this).find(".text.always").show(),$(this).find(".text.always").css("width",e),$(this).find(".text.mouseover").length)&&$(this).find(".image-inner-container").off("click").on("click",function(e){window.addEventListener("click",module_block_image_collection_close_all);var t=$(this).closest(".image-container");$(t).hasClass("open")||(is_touch_device()&&(e.stopPropagation(),e.preventDefault()),$(".module-block.image-collection .image-container").removeClass("open"),t.addClass("open"))})}),t&&fit_text_to_container()}function module_block_image_collection_close_all(){var e=$(".module-block.image-collection .image-container");0===e.length?window.removeEventListener("click",module_block_image_collection_close_all):e.removeClass("open")}function module_block_image_gallery_setup(){var e=$(this).find("img"),a=$(this).find(".images-container");$(a).on("mouseenter",function(){$(this).closest(".module-block").addClass("mouseover")}),$(a).on("mouseleave",function(){$(this).closest(".module-block").removeClass("mouseover")}),e.off("click").on("click",function(){"a"!==this.parentNode.tagName.toLowerCase()&&module_block_image_gallery_overlay(this)}),"scroll"===this.getAttribute("data-scroll-or-fill-down")&&(a.on("mousedown",function(e){e.preventDefault(),$(this).closest(".module-block").addClass("manual-interaction");var i=this.scrollWidth-$(this).width(),n=parseInt(a.css("left")),n=isNaN(n)?0:n,o=e.clientX;document.onmousemove=function(e){var t=o-e.clientX,t=(15<Math.abs(t)&&!a.hasClass("dragging")&&a.addClass("dragging"),Math.floor(n-t));-1*t<0?t=0:i<-1*t&&(t=-1*i),a.css("left",t)},document.onmouseup=function(e){clearInterval(window._g_module_block_image_gallery_setup_mousedown_interval),a.removeClass("dragging"),document.onmousemove=null,document.onmouseup=null}}),a.on("touchstart",function(){$(this).closest(".module-block").addClass("manual-interaction")}),$(this).find(".prev-button,.next-button").off("click").on("click",function(){var e,t,i;$(this).closest(".module-block").addClass("manual-interaction"),is_touch_device()?(e=a.get(0).scrollLeft,"prev-button"===this.className?(t=e-250)<0&&(t=0):(t=e+250,(i=a.get(0).scrollWidth)<t&&(t=i)),a[0].scrollTo({top:0,left:t,behavior:"smooth"})):(e=parseInt(a.css("left")),e=Math.abs(isNaN(e)?0:e),"prev-button"===this.className?(t=e-250)<0&&(t=0):(t=e+250,(i=a.get(0).scrollWidth-a.width())<t&&(t=i)),a.css("left",-1*t))})),window.addEventListener("_resize_x",module_block_image_gallery_resize_check)}function module_block_image_gallery_resize_check(){var e=$('.module-block[data-module-block-type="image-gallery"]');e.length?e.each(function(){var e=$(this).find(".images-container");e.get(0).scrollWidth<=e.width()?$(this).removeClass("overflowing"):($(this).addClass("overflowing"),module_block_image_gallery_auto_scroll(this))}):window.removeEventListener("_resize_x",module_block_image_gallery_resize_check)}document.addEventListener("DOMContentLoaded",module_blocks_background_image_setup),window.addEventListener("_after_load",module_blocks_background_image_setup),window.addEventListener("_element_lazy_loaded",module_blocks_background_image_setup),window.addEventListener("_resize_x",function(){$('[data-module-block-type][style*="background-image"]').each(function(){2===$(this).data("background_image_fixer_set_up")&&module_blocks_background_image_cover_fixed_fix(this)})}),document.addEventListener("DOMContentLoaded",background_videos_setup),window.addEventListener("_after_load",background_videos_setup),window.addEventListener("_resize_x",background_videos_adjust_to_parent);let MODULE_BLOCK_IMAGE_GALLERY_OVERLAY_SCROLL_BEFORE=0;function module_block_image_gallery_overlay(e){document.getElementById("module-block-image-gallery-overlay")?(t=document.getElementById("module-block-image-gallery-overlay"),$(t).find("img").remove(),i=$(t).find(".image-container")[0]):(MODULE_BLOCK_IMAGE_GALLERY_OVERLAY_SCROLL_BEFORE=(document.scrollingElement||document.body).scrollTop,(n=document.createElement("div")).id="module-block-image-gallery-overlay-backdrop",document.body.appendChild(n),(t=document.createElement("div")).id="module-block-image-gallery-overlay",document.body.appendChild(t),(i=document.createElement("div")).className="image-container",t.appendChild(i),document.body.classList.add("module-block-image-gallery-overlay-open"),1<$(e).closest(".images-container").find(".image").length&&((n=document.createElement("div")).className="arrows-container",i.appendChild(n),(o=document.createElement("div")).className="prev-button",$(o).on("click",function(e){var t=document.getElementById("module-block-image-gallery-overlay").current_image,i=!1,n=0;$(t).closest(".images-container").find("img").each(function(){if(this===t&&0<n)return!1;i=this,n++}),module_block_image_gallery_overlay(i),e.stopPropagation()}),n.appendChild(o),(o=document.createElement("div")).className="next-button",$(o).on("click",function(e){var t=document.getElementById("module-block-image-gallery-overlay").current_image,i=!1,n=!1;$(t).closest(".images-container").find("img").each(function(){if(!1===i&&(i=this),n)return i=this,!1;this===t&&(n=!0)}),module_block_image_gallery_overlay(i),e.stopPropagation()}),n.appendChild(o)),setTimeout(function(){document.addEventListener("keyup",module_block_image_gallery_overlay_keyup),document.addEventListener("touchstart",module_block_image_gallery_overlay_touchstart),document.addEventListener("click",module_block_image_gallery_overlay_close)},0)),(n=(n=e.hasAttribute("data-lazy-load-src")?e.getAttribute("data-lazy-load-src"):e.src).split("/"))[n.length-2]="1200-0",n=n.join("/");var t,i,n,o=document.createElement("img");o.src=n,i.appendChild(o),t.current_image=e}function module_block_image_gallery_overlay_keyup(e){27===e.keyCode?module_block_image_gallery_overlay_close():39===e.keyCode?$("#module-block-image-gallery-overlay .next-button").trigger("click"):37===e.keyCode&&$("#module-block-image-gallery-overlay .prev-button").trigger("click")}function module_block_image_gallery_overlay_touchstart(e){function i(e){var t=n.changedTouches[0].clientX-e.changedTouches[0].clientX;50<t?$("#module-block-image-gallery-overlay .next-button").trigger("click"):t<-50&&$("#module-block-image-gallery-overlay .prev-button").trigger("click"),document.removeEventListener("touchend",i)}var n=e;document.addEventListener("touchend",i)}function module_block_image_gallery_overlay_close(e){document.getElementById("module-block-image-gallery-overlay")&&(document.body.removeChild(document.getElementById("module-block-image-gallery-overlay-backdrop")),document.body.removeChild(document.getElementById("module-block-image-gallery-overlay")),document.body.classList.remove("module-block-image-gallery-overlay-open"),setTimeout(function(){(document.scrollingElement||document.body).scrollTo({top:MODULE_BLOCK_IMAGE_GALLERY_OVERLAY_SCROLL_BEFORE,left:0,behavior:"instant"})})),document.removeEventListener("keyup",module_block_image_gallery_overlay_keyup),document.removeEventListener("touchstart",module_block_image_gallery_overlay_touchstart),document.removeEventListener("click",module_block_image_gallery_overlay_close)}function module_block_image_gallery_auto_scroll(r){var l,e;document.body.contains(r)&&(e=r.getAttribute("data-auto-scroll"))&&(l=(e=JSON.parse(e)).number,e=1e3*e.speed,clearTimeout(r._module_block_image_gallery_auto_scroll_timeout),$(r).closest(".module-block").hasClass("overflowing"))&&(r._module_block_image_gallery_auto_scroll_timeout=setTimeout(function(){var e,t,i,n,o,a,s;$(r).hasClass("manual-interaction")||($(r).hasClass("mouseover")||(e=$(r).find(".images-container"),is_touch_device()?(n=e.get(0).scrollLeft,"screen"===l?(o=e.get(0).scrollWidth-e.width(),n===o?s=0:o<(s=n+e.get(0).getBoundingClientRect().width)&&(s=o)):(t=e.get(0).getBoundingClientRect().width,i=e.get(0).getBoundingClientRect().left,s=0,e.find(".image").each(function(){var e=this.getBoundingClientRect().left-i+this.getBoundingClientRect().width;if(1<e-t)return s=n+(e-t),!1})),e[0].scrollTo({top:0,left:s,behavior:"smooth"})):(n=parseInt(e.css("left")),n=Math.abs(isNaN(n)?0:n),"screen"===l?(o=e.get(0).scrollWidth-e.width(),n===o?s=0:o<(s=n+e.get(0).getBoundingClientRect().width)&&(s=o)):(a=e.get(0).getBoundingClientRect().right,s=0,e.find(".image").each(function(){if(1<this.getBoundingClientRect().right-a-n)return s=this.getBoundingClientRect().right-a,!1})),e.css("left",-1*s))),module_block_image_gallery_auto_scroll(r))},e))}function module_block_instagram_setup(){is_touch_device()&&$(this).find(".images-container .image").off("touchstart").on("touchstart",function(){$(this).closest('[data-module-block-type="instagram"]').find(".images-container .image.show").removeClass("show"),this.classList.add("show")}),module_block_instagram_setup_resize(),window.addEventListener("_resize_x",module_block_instagram_setup_resize)}function module_block_instagram_setup_resize(){$('[data-module-block-type="instagram"]').each(function(){if("custom"!==this.getAttribute("data-ez-mode")){$(this).find(".images-container .image").css("display","");var e,t=0,i=0,n=0,o={};for(e in $(this).find(".images-container .image").each(function(){var e=this.getBoundingClientRect().top;e!==n&&(t<i&&(t=i),i=0,o[n=e]=[]),o[e].push(this),i++}),o)if(o[e].length<t)for(var a=o[e],s=0;s<a.length;s++)a[s].style.display="none"}})}function module_block_list_setup(){var t,e,i,n,o,a,s,r=$(this).find(".list-body").get(0),l=get_parent_with_class(r,"module-block"),d=r.getElementsByTagName("div")[0],c=!0,u=!1,_=!1;$(r).closest("#modal_current").length&&$(r).closest("#modal_current").on("shown.bs.modal",function(){module_block_list_setup.call(l)}),0===d.children.length||(l.getAttribute("data-list-block")&&("fill_down"===(t=JSON.parse(l.getAttribute("data-list-block"))).scroll_or_fill_down&&(l.classList.add("fill-down"),_=!0),t.fit_contents?(u=!0,e=$(r).find(".item-box, .category-box"),o=getComputedStyle(d.children[0]),i=parseInt(o.marginLeft)+parseInt(o.marginRight),991<window.innerWidth?(n=d.children.length,e.parent().css("flex-wrap",""),e.each(function(){this.style.setProperty("width","calc("+100/n+"% - "+i+"px)","important")})):575<window.innerWidth?(e.parent().css("flex-wrap","wrap"),e.each(function(){this.style.setProperty("width","calc(50% - "+i+"px)","important")})):(e.parent().css("flex-wrap","wrap"),e.each(function(){this.style.setProperty("width","calc(100% - "+i+"px)","important")})),$(r).find(".image-flip").length?(o=$(r).find(".item-box-image-box").first().width(),$(r).find(".item-box-image-box").css("height",o)):(a=0,$(r).find(".item-box-image-box > div:nth-of-type(1), .category-box-image-box > div:nth-of-type(1)").each(function(){var i=this;getBackgroundImageSize(this).then(function(e){var t=i.getBoundingClientRect().width/e.width,t=Math.floor(e.height*t);t>window.innerHeight/2&&(t=window.innerHeight/2),a<t&&(a=t,$(r).find(".item-box-image-box > div:nth-of-type(1), .category-box-image-box > div:nth-of-type(1)").each(function(){this.classList.contains("item-box-no-image-text")?this.parentNode.style.height=a+"px":this.style.height=a+"px"}))})})),c=!1):(t.width&&$(r).find(".item-box, .category-box").each(function(){var e=t.width;-1===t.width.indexOf("%")&&(e=(e=parseFloat(e))+(parseFloat($(this).css("padding-left"))+parseFloat($(this).css("padding-right")))+"px"),$(this).css("--mb-list-body-inner-box-width",e)}),t.height&&($(r).find(".item-box-image-box > div:nth-of-type(1), .category-box-image-box > div:nth-of-type(1)").each(function(){$(this).closest(".item-box, .category-box")[0].classList.contains("image-flip")||this.classList.contains("item-box-no-image-text")?this.parentNode.style.height=t.height:this.style.height=t.height}),c=!1),t.center_contents&&l.classList.add("boxes-center")),_||u||!t.auto_scroll||(setTimeout(function(){module_block_list_auto_scroll(r,t.auto_scroll_number,t.auto_scroll_speed)},0),$(r).on("mouseenter",function(){$(r).addClass("mouseover")}),$(r).on("mouseleave",function(){$(r).removeClass("mouseover")}))),c&&setTimeout(function(){$(r).find(".item-box-image-box > div:nth-of-type(1), .category-box-image-box > div:nth-of-type(1)").each(function(){var e;this.classList.contains("item-box-no-public-items")||((e=$(this).closest(".item-box, .category-box"))[0].classList.contains("image-flip")||this.classList.contains("item-box-no-image-text")?this.parentNode.style.height=e.width()+"px":this.style.height=e.width()+"px")})},0),!r.getElementsByTagName("div").length||l.classList.contains("fill-down")||u||($(d).off("scroll"),"scroll"===getComputedStyle(d).overflowX&&$(d).on("scroll",function(){void 0===this.scrolling_timer&&(this.scrolling_timer=0),clearTimeout(this.scrolling_timer),this.scrolling_timer=setTimeout(function(){module_block_list_buttons_setup(d)},100)}),module_block_list_buttons_setup(d)),_)||(window.addEventListener("_resize_x",module_block_list_resize),$(r).find("[data-lazy-load-background-image],[data-lazy-load-src]").length?$(r).find("[data-lazy-load-background-image],[data-lazy-load-src]").each(function(){var i;$(this).data("observer-added")||((i=new MutationObserver(function(e){e.forEach(function(e){var t;"attributes"===e.type&&(t=!1,t="data-lazy-load-background-image"===e.attributeName||"data-lazy-load-src"===e.attributeName||t)&&(1===(t=$(e.target).closest(".module-block")).length&&module_block_list_setup.call(t),i.disconnect())})})).observe(this,{attributes:!0}),$(this).data("observer-added",1))}):(s=[],$(r).find(".category-box-background-image, .item-box-background-image").each(function(){$(this).data("waiting-handled")||($(this).data("waiting-handled",1),s.push(getBackgroundImageSize(this)))}),s.length&&$.when.apply($,s).done(function(){module_block_list_setup.call(l)})))}function module_block_list_navigate(e,t,i,n){t=void 0!==t&&t,i=void 0===i?1:i,n=void 0!==n&&n;var o=get_parent_with_class(e,"module-block");if(o.getAttribute("data-list-block")&&JSON.parse(o.getAttribute("data-list-block")).fit_contents)return;lazy_load_elements_children(o);var a,s,r,l,d=e.classList.contains("left")?"left":"right",o=o.getElementsByClassName("list-body")[0],c=o.getElementsByClassName("list-body-inner")[0];n||t||o.classList.add("manual-interaction"),s="scroll"===getComputedStyle(c).overflowX?(a=!0,c.scrollLeft):(a=!1,isNaN(parseFloat(c.style.left))?0:-1*parseFloat(c.style.left)),c.getElementsByTagName("a").length&&(l=c.children.length,r=getComputedStyle(c.getElementsByTagName("a")[0]),r=parseInt(r.width)+parseInt(r.marginLeft)+parseInt(r.marginRight),l=Math.floor(l*r-c.getBoundingClientRect().width),"screen"===i&&(i=Math.floor(o.getBoundingClientRect().width/r)),o=s-r*parseInt(i),"right"==d&&(o=s+r*parseInt(i)),(o=t?0:o)<0&&(o=0),0<l&&l<o&&(o=l),n&&o===s&&(o=0),a?c.scrollTo({top:0,left:o,behavior:"smooth"}):c.style.left=-1*o+"px",module_block_list_buttons_setup(e))}function module_block_list_buttons_setup(e){var t,a,s,r,i,n;e&&(t=get_parent_with_class(e,"module-block"),a=get_parent_with_class(e,"module-block").getElementsByClassName("list-body")[0].getElementsByTagName("div")[0],s=get_parent_with_class(e,"module-block").getElementsByClassName("list-body-outer")[0],a.getElementsByTagName("a").length)&&(r=a.children.length,n=getComputedStyle(a.getElementsByTagName("a")[0]),n=parseInt(n.width)+parseInt(n.marginLeft)+parseInt(n.marginRight),i=Math.floor(r*n-a.getBoundingClientRect().width),Math.floor(r*n)>a.getBoundingClientRect().width?(t.classList.add("boxes-overflow"),"scroll"===getComputedStyle(a).overflowX?$(a).data("module_block_list_buttons_setup_touchstart")||(a.addEventListener("touchstart",function(){lazy_load_elements_children(this),$(this).closest(".list-body").addClass("manual-interaction")},{once:!0,passive:!0}),$(a).data("module_block_list_buttons_setup_touchstart",1)):a.onmousedown=function(e){lazy_load_elements_children(this),e.preventDefault(),$(a).closest(".list-body").addClass("manual-interaction");var t=getComputedStyle(a.getElementsByTagName("a")[0]),t=parseInt(t.width)+parseInt(t.marginLeft)+parseInt(t.marginRight),i=Math.floor(r*t-a.getBoundingClientRect().width),n=parseInt(a.style.left),n=isNaN(n)?0:n,o=e.clientX;document.onmousemove=function(e){var t=o-e.clientX,t=(15<Math.abs(t)&&a.classList.add("dragging"),Math.floor(n-t));-1*t<0?($(s).find(".list-navigation-arrows.left").css("cursor","default").css("opacity","0.5"),t=0):$(s).find(".list-navigation-arrows.left").css("cursor","pointer").css("opacity","1"),i<-1*t?($(s).find(".list-navigation-arrows.right").css("cursor","default").css("opacity","0.5"),t=-1*i):$(s).find(".list-navigation-arrows.right").css("cursor","pointer").css("opacity","1"),a.style.left=t+"px"},document.onmouseup=function(e){a.classList.remove("dragging"),document.onmousemove=null,document.onmouseup=null}}):t.classList.remove("boxes-overflow"),n="scroll"===getComputedStyle(a).overflowX?a.scrollLeft:isNaN(parseFloat(a.style.left))?0:-1*parseFloat(a.style.left),$(s).find(".list-navigation-arrows.left").length)&&(0===n?$(s).find(".list-navigation-arrows.left").css("cursor","default").css("opacity","0.5"):$(s).find(".list-navigation-arrows.left").css("cursor","pointer").css("opacity","1"),i<=n?$(s).find(".list-navigation-arrows.right").css("cursor","default").css("opacity","0.5"):$(s).find(".list-navigation-arrows.right").css("cursor","pointer").css("opacity","1"))}function module_block_list_resize(){$(".module-block .list-body").length?$(".module-block:not(.fill-down) .list-body").each(function(e,t){module_block_list_setup.call($(t).closest("[data-module-block-type]").get(0)),module_block_list_navigate(t,!0)}):window.removeEventListener("_resize_x",module_block_list_resize)}function module_block_list_auto_scroll(e,t,i){var n;document.body.contains(e)&&(n=1e3*i,clearTimeout(e._module_block_list_auto_scroll_timeout),$(e).closest(".module-block").hasClass("boxes-overflow"))&&(e._module_block_list_auto_scroll_timeout=setTimeout(function(){$(e).hasClass("manual-interaction")||($(e).hasClass("mouseover")||module_block_list_navigate($(e).closest(".list-body-outer").find(".list-navigation-arrows.right")[0],void 0,t,!0),module_block_list_auto_scroll(e,t,i))},n))}window.addEventListener("load",function(){var e;window.location.hash&&(e=document.getElementById(window.location.hash.substring(1)))&&scroll_to_element(e,!0)}),window.addEventListener("_item_page_loaded",function(){let e=[];$('[data-module-block-item-list-type="last_viewed_items"]').each(function(){e.push(this.getAttribute("data-module-block-id"))}),e.length&&module_blocks_load_these(e)});let MINI_MENU_CUSTOMER_NAME_GET_IN_PROGRESS=!1,MINI_MENU_CUSTOMER_NAME="";function mini_menu_setup(){var e=$(this).find(".language-selector");if(e.length&&e.each(function(){$(this).on("mouseenter click",function(){const t=this;if(clearTimeout($(t).data("language_selector_close_timeout")),this.classList.contains("open"))return!1;var e=$(this).find(".dropdown");this.classList.add("open"),e.css("margin-top",$(this).height()),e.find(".language").off("click").on("click",function(){var e=!!parseInt(this.getAttribute("data-public"));language_switch(this.getAttribute("data-language"),e)}),$(this).on("mouseleave",function(){var e=setTimeout(function(){$(t).removeClass("open")},250);$(t).data("language_selector_close_timeout",e)}),$("body").one("click",function(){$(t).removeClass("open")})})}),$(".mini-menu-customer-name").length){let t=function(){var e=document.createElement("a");e.textContent=MINI_MENU_CUSTOMER_NAME,e.href="/customer/login",$(".mini-menu-customer-name").html(e)};MINI_MENU_CUSTOMER_NAME?t():MINI_MENU_CUSTOMER_NAME_GET_IN_PROGRESS||(MINI_MENU_CUSTOMER_NAME_GET_IN_PROGRESS=!0,ajax_post("/customer/name_ajax","&sub_action=get",function(e){1===e.result&&(30<(MINI_MENU_CUSTOMER_NAME=e.name).length&&(MINI_MENU_CUSTOMER_NAME=MINI_MENU_CUSTOMER_NAME.substring(0,30)+".."),t()),MINI_MENU_CUSTOMER_NAME_GET_IN_PROGRESS=!1}))}}function module_block_newsletter_signup_setup(){if($(this).find(".module-block.newsletter-signup .newsletter-signup-input").length&&$(this).find(".module-block.newsletter-signup .newsletter-signup-button").length){let i=this,a=$(i).find(".newsletter-signup"),t=function(o){var e={},t=o.value.trim();if(""===t)modal_simple(_t("Fejl"),_t("Du skal indtaste en e-mail adresse for at kunne tilmelde dig nyhedsbrevet"));else if(verify_email(t)){e.email=t;let n=$(i).find(".newsletter-signup-input-name");if(n.length){if(n.attr("required")&&""===n.val())return void modal_simple(_t("Fejl"),_t("Du skal indtaste et navn for at kunne tilmelde dig nyhedsbrevet"));e.name=n.val()}e.source="module_block",browserloading_start(),ajax_post("/newsletter/subscribe",http_build_query(e),function(e){var t,i;browserloading_stop(),1===e.result&&(a.find(".newsletter-content-after-save").length?(t=a.find(".module-block-header"),i=a.find(".newsletter-content-after-save"),a.html(""),t.length&&a.append(t),a.append(i),i.removeClass("newsletter-content-after-save")):(self_destructing_message(_t("Din e-mail adresse er nu tilmeldt nyhedsbrevet")),$(o).val(""),n.length&&$(n).val("")))})}else modal_simple(_t("Fejl"),_t("Du skal indtaste en gyldig e-mail adresse for at kunne tilmelde dig nyhedsbrevet"))};$(this).find(".newsletter-signup-input").off("keypress").on("keypress",function(e){13===e.keyCode&&(t(this),e.stopPropagation())}),$(this).find(".newsletter-signup-button").off("click").on("click",function(){t($(this).closest(".newsletter-signup").find(".newsletter-signup-input").get(0))})}}function module_blocks_responsive_columns_setup(){var e=$('[data-module-block-columns*="-"],[data-module-block-columns-extra-data*="{"]');if(0!==e.length){for(var t=window.innerWidth,l=$("body").width(),i=0;i<e.length;i++){var n,d=e[i];$(d).data("module_blocks_responsive_columns_setup_data")?(n=$(d).data("module_blocks_responsive_columns_setup_data"),d.style.paddingTop=n.paddingTop,d.style.paddingRight=n.paddingRight,d.style.paddingBottom=n.paddingBottom,d.style.paddingLeft=n.paddingLeft,d.style.marginTop=n.marginTop,d.style.marginBottom=n.marginBottom,d.style.borderRadius=n.borderRadius,d.style.boxShadow=n.boxShadow,d.style.backgroundColor=n.backgroundColor,d.removeAttribute("data-module-block-vertically-center"),d.style.width="",d.style.height=""):((n={}).paddingTop=d.style.paddingTop,n.paddingRight=d.style.paddingRight,n.paddingBottom=d.style.paddingBottom,n.paddingLeft=d.style.paddingLeft,n.marginTop=d.style.marginTop,n.marginBottom=d.style.marginBottom,n.borderRadius=d.style.borderRadius,n.boxShadow=d.style.boxShadow,n.backgroundColor=d.style.backgroundColor,$(d).data("module_blocks_responsive_columns_setup_data",n))}for(var o={},a=!1,i=0;i<e.length;i++){d=e[i];if(s=d.getAttribute("data-module-block-available-sizes")){for(var s=s.split(","),r=!0,c=0;c<s.length;c++)if((t>=(g=s[c].split("-"))[0]||""===g[0])&&(t<=g[1]||""===g[1])){r=!1;break}if(r)continue}for(var u=d.getAttribute("data-module-block-columns").split(","),_=100,h="constrained",c=0;c<u.length;c++){var p=u[c].split("-");if((t>=p[0]||""===p[0])&&(t<=p[1]||""===p[1])){_=parseInt(p[2]),h=p[3];break}}if(f=d.getAttribute("data-module-block-columns-extra-data")){var f,m,g,v=!1;for(m in f=JSON.parse(f))if((t>=(g=m.split("-"))[0]||""===g[0])&&(t<=g[1]||""===g[1])){v=f[m];break}f=v||null}if("floating"===h)var b=uniqid();else{if(!f&&100===_)continue;b=Math.floor(d.getBoundingClientRect().top)}void 0===o[b]&&(o[b]=[]),o[b].push({block:d,percentage:_,width:h,extra_data:f}),a=!0}if(a)for(var y in o){var w=o[y].length;let s=0;for(let r=0;r<w;r++){var k,E=o[y][r];const d=E.block;if(E.extra_data&&(void 0!==E.extra_data.bg&&(d.style.backgroundColor=E.extra_data.bg),void 0!==E.extra_data.hc&&(d.style.height=E.extra_data.hc+"px"),void 0!==E.extra_data.pt&&(d.style.paddingTop=E.extra_data.pt+"px"),void 0!==E.extra_data.pr&&(d.style.paddingRight=E.extra_data.pr+"px"),void 0!==E.extra_data.pb&&(d.style.paddingBottom=E.extra_data.pb+"px"),void 0!==E.extra_data.pl&&(d.style.paddingLeft=E.extra_data.pl+"px"),void 0!==E.extra_data.mt&&(d.style.marginTop=E.extra_data.mt+"px"),void 0!==E.extra_data.mb&&(d.style.marginBottom=E.extra_data.mb+"px"),void 0!==E.extra_data.br&&(d.style.borderRadius=E.extra_data.br+"px"),void 0!==E.extra_data.bs&&(d.style.boxShadow=E.extra_data.bs),void 0!==E.extra_data.vc)&&E.extra_data.vc&&d.setAttribute("data-module-block-vertically-center","1"),"constrained"===E.width){let e=E.percentage,t=(33===e?(e=33.3333,2===r&&(e=33.3334)):66===e&&(e=66.6667),l),i=window.innerWidth,n=15,o=15,a=($(d).closest(".item-main-info-container").length?(i=$(d).closest(".item-main-info-container").width(),t=i,o=0,n=0):1399<window.innerWidth?i=1320:1199<window.innerWidth?i=1140:991<window.innerWidth?i=960:767<window.innerWidth?i=720:575<window.innerWidth&&(i=540),i*(e/100));E.extra_data&&(void 0!==E.extra_data.pr&&(n=E.extra_data.pr),void 0!==E.extra_data.pl)&&(o=E.extra_data.pl),0===r&&(k=t/2-i/2,a+=k,i)&&(k+=o,d.style.paddingLeft=Math.floor(k)+"px"),r+1===w&&(k=t/2-i/2,a+=k,i)&&(k+=n,d.style.paddingRight=Math.floor(k)+"px"),s+=a-Math.floor(a),d.style.width=Math.floor(a)+"px"}else"floating"===E.width&&void 0!==E.extra_data.wc&&(d.style.width=E.extra_data.wc+"px")}if(s){let t=Math.floor(s);for(;0<t;)for(let e=0;e<w;e++){var x=o[y][e];const d=x.block;if("floating"!==x.width&&(d.style.width=parseInt(d.style.width)+1+"px",--t<=0))break}}}}}function module_blocks_responsive_setup(){window.addEventListener("_resize_x",module_blocks_responsive_check_load),module_blocks_responsive_check_load()}window.addEventListener("_after_load",module_blocks_responsive_columns_setup),window.addEventListener("_pageload_end",module_blocks_responsive_columns_setup),window.addEventListener("_resize_x",module_blocks_responsive_columns_setup),window.addEventListener("load",function(){new MutationObserver(function(e){e.forEach(function(e){var t=!1,i=e.target;(t=!i.hasAttribute(e.attributeName)||i.getAttribute(e.attributeName)!==e.oldValue?!0:t)&&module_blocks_responsive_columns_setup()})}).observe(document.body,{attributes:!0,attributeOldValue:!0})}),window.addEventListener("load",module_blocks_responsive_setup),window.addEventListener("_after_load",module_blocks_responsive_setup);let module_blocks_responsive_check_load_promise,module_blocks_responsive_check_load_promise_resolved=!0;async function module_blocks_responsive_check_load(){window.innerWidth&&(module_blocks_responsive_check_load_promise_resolved||await module_blocks_responsive_check_load_promise,module_blocks_responsive_check_load_promise=new Promise(async(e,t)=>{var o=module_blocks_responsive_check_load_promise_resolved=!1,a=window.innerWidth,n=[];$(".module-block-placeholder[data-module-block-available-sizes]:not([data-intersection-callback])").each(function(){if(!this.hasAttribute("data-module-block-lazy-loaded")){o=!0;for(var e=this.getAttribute("data-module-block-available-sizes").split(","),t=0;t<e.length;t++){var i=e[t].split("-");if((a>=i[0]||""===i[0])&&(a<=i[1]||""===i[1])){n.push(parseInt(this.getAttribute("data-module-block-id")));break}}}});let i;n.length&&(i=module_blocks_load_these(n)),$(":not(.module-block-placeholder)[data-module-block-id][data-module-block-available-sizes]").each(function(){if(this.getAttribute("data-module-block-available-sizes")){o=!0;for(var e=this.getAttribute("data-module-block-available-sizes").split(","),t=!1,i=0;i<e.length;i++){var n=e[i].split("-");if((a>=n[0]||""===n[0])&&(a<=n[1]||""===n[1])){t=!0;break}}t||(this.outerHTML='<span class="module-block-placeholder" data-module-block-id="'+this.getAttribute("data-module-block-id")+'" data-module-block-available-sizes="'+this.getAttribute("data-module-block-available-sizes")+'"></span>')}}),o||window.removeEventListener("_resize_x",module_blocks_responsive_check_load),i&&await i,module_blocks_responsive_check_load_promise_resolved=!0,e()}))}function module_blocks_lazy_load_setup(){window.addEventListener("scroll",module_block_lazy_load_check),module_block_lazy_load_check()}function module_block_lazy_load_check(){var n,o,a;!0!==window._g_module_block_lazy_load_check_blocked&&(n=window.innerHeight||document.documentElement.clientHeight,o=[],a=0,$('.module-block-placeholder[data-module-block-lazy-loaded="0"]').each(function(){a++;var e=this.getBoundingClientRect(),t=e.top-100,i=!1;(i=e.bottom<0||(t<=n||e.bottom<=n)&&0===o.length?!0:i)&&(this.hasAttribute("data-module-block-available-sizes")&&""!==this.getAttribute("data-module-block-available-sizes")?(this.removeAttribute("data-module-block-lazy-loaded"),module_blocks_responsive_check_load()):(this.setAttribute("data-module-block-lazy-loaded","1"),o.push(parseInt(this.getAttribute("data-module-block-id")))))}),a?o.length&&(window._g_module_block_lazy_load_check_blocked=!0,module_blocks_load_these(o,function(){window._g_module_block_lazy_load_check_blocked=!1,module_block_lazy_load_check()})):window.removeEventListener("scroll",module_block_lazy_load_check))}function module_blocks_load_these(t,a){return new Promise((o,e)=>{ajax_post("/pages/page_get_module_blocks","&module_block_ids="+encodeURIComponent(JSON.stringify(t)),function(e){if(1===e.result){var t,i,n=[];for(t in e.module_blocks)$('.module-block-placeholder[data-module-block-id="'+t+'"]').length?$('.module-block-placeholder[data-module-block-id="'+t+'"]').replaceWith(e.module_blocks[t]):$('[data-module-block-id="'+t+'"]').length&&(i=$('[data-module-block-id="'+t+'"]'),""===e.module_blocks[t]?i[0].outerHTML='<span class="module-block-placeholder" data-module-block-id="'+i.getAttribute("data-module-block-id")+'" data-module-block-available-sizes="'+i.getAttribute("data-module-block-available-sizes")+'"></span>':i.replaceWith(e.module_blocks[t])),n.push(parseInt(t));"function"==typeof a&&a(),window.dispatchEvent(new CustomEvent("_module_blocks_loaded",{detail:{ids_loaded:n}})),after_load_setup()}o()},function(){e()})})}function module_block_search_setup(){if(!window._g_clerk_io_dynamic_search_active){let o=$(this).find(".search-overlay"),a=0;$(this).find("input").on("click input keyup",function(t){let i=this,n=this.value;if("input"===t.type||"click"===t.type)if(1<n.length){let e=350;switch(n.length){case 2:e=1e3;break;case 3:e=750;break;case 4:e=500}clearTimeout(a),a=setTimeout(function(){let e="";$('body[data-page-type="item_category"]').length&&(e+="&cat_id="+$('body[data-page-type="item_category"]').attr("data-page-id")),$('input[type="checkbox"].limit-search-to-selected-category:checked').length&&(e+="&limit=1"),i.hasAttribute("data-limit-search-to-category-id")&&0<parseInt(i.getAttribute("data-limit-search-to-category-id"))&&(e="&cat_id="+i.getAttribute("data-limit-search-to-category-id")+"&limit=1&do_not_show_category_checkbox=1&do_not_search_for_categories=1&do_not_search_for_pages=1"),browserloading_start(),ajax_get("/search/ajax?q="+encodeURIComponent(n)+e,function(e){browserloading_stop(),o.addClass("show-search"),o.html(e.html),o.width(o.parent().width()),$(o).find(".limit-search-to-selected-category").length&&$(o).find(".limit-search-to-selected-category, .limit-search-to-selected-category-container").off("click").on("click",function(e){e.stopPropagation(),$(i).trigger("click")}),add_link_listeners()})},e),$("body").one("click",function(){o.removeClass("show-search")}),$(window).one("_resize_x",function(){o.removeClass("show-search")}),t.stopPropagation()}else o.removeClass("show-search");else if(13===t.keyCode){let e="";i.hasAttribute("data-limit-search-to-category-id")&&0<parseInt(i.getAttribute("data-limit-search-to-category-id"))&&(e="&cat_id="+i.getAttribute("data-limit-search-to-category-id")),ajax_get("/search/default?q="+encodeURIComponent(n)+e,pageload)}})}}function module_block_slider_setup(){if("undefined"==typeof Flickity){const i=this;void ondemand_loading_multiple(["https://"+CDN_TO_USE_HOSTNAME+"/public_css/"+window._g_site_mode+"/flickity-2.3.0.css?m="+CDN_RESOURCES_MOD_CHECK_HASH],["https://"+CDN_TO_USE_HOSTNAME+"/public_js/"+window._g_site_mode+"/flickity-2.3.0.js?m="+CDN_RESOURCES_MOD_CHECK_HASH],function(){module_block_slider_setup.call(i)},!0)}else{var e=$(this).find(".main-carousel"),t=JSON.parse(e.attr("data-for-flickity"));lazy_load_elements_children(e),e.flickity(t);const n=e.find("a");0<n.length&&(e.on("dragMove.flickity",function(){n.css("pointer-events","none")}),e.on("dragEnd.flickity",function(){n.css("pointer-events","")}))}}function text_block_setup(){text_block_image_sizes(this),window.addEventListener("_resize_x",text_block_image_sizes)}function text_block_image_sizes(e){var t;(t=e?$(e).find('.module-block.text-block img[data-type="text-block-image"]'):$('.module-block.text-block img[data-type="text-block-image"]')).length?t.each(function(){var e=this.getAttribute("data-src"),t=($(this).parent().css("width","100%"),$(this).parent().width()),t=($(this).parent().css("width",""),50*Math.ceil(t/50)),e=e.split("/"),e=(e[e.length-2]=t+"-0",e.join("/"));this.style.width=t+"px",this.style.aspectRatio=this.getAttribute("data-aspect"),this.style.maxWidth="100%",this.src!==e&&(this.src=e,lazy_load_effect_on_load(this))}):0===$('.module-block.text-block img[data-type="text-block-image"]').length&&window.removeEventListener("_resize_x",text_block_image_sizes)}function module_block_usp_setup(){let o=$(this).find(".usp-boxes-container");if(-1===o.attr("data-elements-per-row").indexOf("_slide_up"))return;if($(o).find(".usp-box").length<=1)return;Iconify.scan(o[0]),lazy_load_elements_children(o[0]);let t=setInterval(function(){if(document.body.contains(o[0])){let e=0;if($(o).find("img").each(function(){this.naturalWidth<=1&&e++}),!(0<e)){let e=0;$(o).find(".iconify, .iconify-inline").each(function(){"SVG"!==this.nodeName.toUpperCase()&&e++}),0<e||(clearInterval(t),window.requestAnimationFrame(function(){window.requestAnimationFrame(function(){i()})}))}}else clearInterval(t)},250),i=function(){$(o).attr("data-slide-up-set-up","1");var e=$(o).find(".usp-box").height();o.css("overflow","hidden").height(e),$(o).find(".usp-box").height(e);let t=!1,i,n=setInterval(function(){var e;document.body.contains(o[0])?(t&&(o.append(t),t.css("transition","").css("overflow","").css("height",i)),e=o.find(".usp-box").first(),t=e,i=e.css("height"),e.css("overflow","hidden").css("transition","height 1s").css("height","0")):clearInterval(n)},5e3)}}function newsletter_gdpr_setup(){$(".newsletter-gdpr-text[data-gdpr-text]:not(.setup-done)").each(function(){$(this).addClass("setup-done"),$(this).on("click",function(){return modal_simple(_t("Nyhedsbrev"),base64_decode($(this).attr("data-gdpr-text"))),!1})})}function newsletter_subscribe(e,t,i){browserloading_start(),ajax_post("/newsletter/subscribe","&email="+encodeURIComponent(e)+"&source="+t,function(e){browserloading_stop(),1===e.result&&(self_destructing_message(_t("Din e-mail adresse er nu tilmeldt nyhedsbrevet")),"function"==typeof i)&&i()})}function newsletter_unsubscribe_setup(e){var t=e.unsubscribe_key;$(".newsletter-unsubscribe-button").on("click",function(){browserloading_start(),ajax("path=newsletter/unsubscribe_do&unsubscribe_key="+encodeURIComponent(t),function(e){browserloading_stop(),1===e.result&&content_load("")},3e4,void 0,"post")})}function newsletter_footer_signup_setup(){var t;$("#footer-newsletter-email-container .newsletter-signup-input").length&&$("#footer-newsletter-email-container .newsletter-signup-button").length&&(t=function(){var e=$("#footer-newsletter-email-container .newsletter-signup-input").val().trim();""===e?modal_simple(_t("Fejl"),_t("Du skal indtaste en e-mail adresse for at kunne tilmelde dig nyhedsbrevet")):verify_email(e)?newsletter_subscribe(e,"footer",function(){$("#footer-newsletter-email-container .newsletter-signup-input").val("")}):modal_simple(_t("Fejl"),_t("Du skal indtaste en gyldig e-mail adresse for at kunne tilmelde dig nyhedsbrevet"))},$("#footer-newsletter-email-container .newsletter-signup-input")[0].addEventListener("keypress",function(e){13===e.keyCode&&(t(),e.stopPropagation())}),$("#footer-newsletter-email-container .newsletter-signup-button")[0].addEventListener("click",t))}function orders_customer_file_upload_modal_setup(e){var d=e.orders_id;$('#modal_current input[name="files[]"]').on("change",function(e){var n=e.target.files||e.dataTransfer.files;if(n&&n.length)if(n.length>window._g_static_php_max_file_uploads)modal_simple(_t("Upload fejl"),_t("Du kan maksimalt uploade {1} filer på en gang",window._g_static_php_max_file_uploads));else{for(let e=0;e<n.length;e++){var o,a,s=n[e];if(10485760<s.size)return o=_t("Filens størrelse overstiger {1} MB",10),a=_t("Din fil er desværre for stor. Overvej eventuelt om filen kan komprimeres."),-1<s.name.toLowerCase().indexOf(".pdf")&&(a=(a+="<br><br>")+_t('Ofte kan PDF filer komprimeres meget ved at bruge en gratis tjeneste som <a href="https://smallpdf.com/" target="_blank">smallpdf.com</a>',!1)),void alert_nice(o,a=(a=(a+="<br><br>")+("<b>"+_t("Fil{en=File}")+":</b> "+htmlentities(s.name))+"<br>")+("<b>"+_t("Størrelse")+":</b> "+Math.round(s.size/1024/1024)+" MB"))}const l=n.length;let i=0;browserloading_start();for(let t=0;t<n.length;t++){const s=n[t];var r=new FileReader;r.onload=function(t){return function(){var e="";ajax_post("/orders/customer_file_upload_modal_upload",(e+="&filename="+encodeURIComponent(t.name))+("&file_data="+encodeURIComponent(this.result))+("&orders_id="+d),function(e){++i===l&&(browserloading_stop(),1===e.result)&&(modal("","orders","customer_file_upload_modal",d,void 0,void 0,!0,!0),self_destructing_message(_t("Filerne blev uploadet")))},12e4,!1,"post")}}(s),r.readAsDataURL(s)}}else alert_nice(_t("Upload fejl"),_t("Modtog ikke en brugbar fil"))})}function pages_videos_setup(){videos_adjust_to_parent("iframe.note-video-clip")}function popups_show_check(){var e=(new Date).getTime();if($(".popup-open-button").off("click").on("click",function(){popup_show(this.getAttribute("data-id"))}),$('a[href*="#popup-"]').off("click").on("click",function(e){return popup_show(this.getAttribute("href").replace("#popup-","")),e.preventDefault(),e.stopPropagation(),!1}),$("body.cookie-modal-open").length||$("body.modal-open").length)setTimeout(popups_show_check,5e3);else if($("body .mc-modal:visible").length)setTimeout(popups_show_check,5e3);else if("number"==typeof window._g_popups_blocked_until&&e<window._g_popups_blocked_until)setTimeout(popups_show_check,window._g_popups_blocked_until-e);else{var n=(new Date).getTime()-window._g_popups_time_since_start;if(window._g_popups){let e=!1,t=!1;for(let i=0;i<window._g_popups.length;i++){var o=window._g_popups[i];if(o&&(0!==o.show_on_landingpages||!document.body.hasAttribute("data-page-type")||"landingpage"!==document.body.getAttribute("data-page-type")))if("always"===o.when_to_show||"always_only_for_admins"===o.when_to_show)popup_show(o.id),delete window._g_popups[i];else if(!get_cookie("popup_shown_"+o.id))if("after_x%_scroll"===o.when_to_show){var a=document.body.scrollHeight-window.innerHeight;if(window.scrollY/a*100>=o.when_to_show_number){popup_show(o.id),set_cookie("popup_shown_"+o.id,1,0===o.cookie_days_to_exist?void 0:o.cookie_days_to_exist),setTimeout(popups_show_check,5e3);break}e=!0}else if("after_x_seconds"===o.when_to_show){if(n>=1e3*o.when_to_show_number){popup_show(o.id),set_cookie("popup_shown_"+o.id,1,0===o.cookie_days_to_exist?void 0:o.cookie_days_to_exist),setTimeout(popups_show_check,5e3);break}t=!0}}e?window._g_popups_show_check_scroll_event_hooked||(window.addEventListener("scroll",popups_show_check),window._g_popups_show_check_scroll_event_hooked=!0):window._g_popups_show_check_scroll_event_hooked&&(window.removeEventListener("scroll",popups_show_check),window._g_popups_show_check_scroll_event_hooked=!1),t&&setTimeout(popups_show_check,1e3)}}}function popup_show(e){ajax_post("/ajax/popup_get","&id="+e,function(e){1===e.result&&(e.html='<div class="popup-close-button">&times;</div>'+e.html,modal_simple("",e.html,void 0,{modal_unique_identifier:"popup",path_change:window.location.pathname+window.location.search},void 0,void 0,function(){$("#modal_current .popup-close-button").on("click",function(){modal_close_top_real()})},!0,!0))})}function content_search_toggle(){site_events_log({type:"search_overlay_open"}),content_search()}"boolean"==typeof CSS_INLINE_EDIT_ACTIVATED&&CSS_INLINE_EDIT_ACTIVATED&&window.addEventListener("_css_inline_edit_value_changed",function(e){var t,i;e.detail.selector&&-1<e.detail.selector.indexOf('[data-module-block-type="slider"][data-module-block-id=')&&(t=$(e.detail.selector).closest("[data-module-block-id]"),t=$(t).find(".main-carousel"),i=JSON.parse(t.attr("data-for-flickity")),t.flickity("destroy"),t.flickity(i))}),window.addEventListener("_after_load",newsletter_gdpr_setup),document.addEventListener("DOMContentLoaded",newsletter_footer_signup_setup),window.addEventListener("_after_load",pages_videos_setup),window.addEventListener("resize",pages_videos_setup),window.addEventListener("_after_load",function(){$('a[data-type="yt-popup"]').each(function(){if(!this._ytPopupSetup){this._ytPopupSetup=1;const i=youtube_id_extract_from_url(this.href);i&&$(this).on("click",function(){let e=Math.floor(window.innerWidth/100*80),t=Math.floor(e/16*9);return t>=window.innerHeight/100*80&&(t=Math.floor(window.innerHeight/100*80),e=Math.floor(t/9*16)),modal_simple("",`
					<div style="text-align: center;">
						<iframe width="${e}" height="${t}" src="https://www.youtube-nocookie.com/embed/${i}?autoplay=1" frameborder="0" allowfullscreen></iframe>
					</div>
					`,!1,{hide_header:!0,modal_width:e+50+"px"},void 0,void 0,void 0,void 0,!0),!1})}})}),document.addEventListener("DOMContentLoaded",popups_show_check),window.addEventListener("_pageload_end",popups_show_check),window._g_popups_show_check_scroll_event_hooked=!1,window._g_popups_time_since_start=(new Date).getTime();var content_search_timer=null,content_search_data_object={},content_search_ajax_last_object={};function content_search(i=void 0,n=!1){window.addEventListener("_resize_x",content_search_close),window.addEventListener("_content_load",content_search_close);var e,t,o,a=document.getElementById("search-overlay-input");if(i=i||{type:"undefined"},void 0===content_search_data_object.arrow_counter&&(content_search_data_object.arrow_counter=-1),clearTimeout(content_search_timer),"click"===i.type||void 0!==i.keyCode&&13===i.keyCode){if(i.preventDefault(),i.stopPropagation(),""===a.value.trim())return;let e=!1;-1<content_search_data_object.arrow_counter&&"click"!==i.type&&((t=document.getElementById("search_overlay_inner").getElementsByClassName("search_overlay_single")[content_search_data_object.arrow_counter]).classList.contains("limit-search-to-selected-category-container")?(e=!0,$(t).find('input[type="checkbox"]').trigger("click")):(t=t.getElementsByTagName("a")).length&&(e=!0,t[0].click(),content_search_data_object.arrow_counter=-1)),void(e||(ajax_get("/search/default?q="+encodeURIComponent(a.value.trim()),pageload),content_search_close()))}else{if(void 0!==i.keyCode){if(38===i.keyCode||40===i.keyCode)return(t=document.getElementById("search_overlay_inner"))&&(t=t.getElementsByClassName("search_overlay_single")).length&&(38===i.keyCode?0<content_search_data_object.arrow_counter&&content_search_data_object.arrow_counter--:40===i.keyCode&&content_search_data_object.arrow_counter+1<t.length&&content_search_data_object.arrow_counter++,-1<content_search_data_object.arrow_counter)&&($(t).removeClass("active"),t=t[content_search_data_object.arrow_counter],$(t).addClass("active"),(o=document.getElementById("search_overlay")).scrollBottom=o.scrollTop+o.clientHeight,t.offsetBottom=t.offsetTop+t.clientHeight,t.offsetTop<o.scrollTop?o.scrollTop-=t.clientHeight:t.offsetBottom>o.scrollBottom&&(o.scrollTop+=t.clientHeight)),i.preventDefault(),void i.stopPropagation();if(27===i.keyCode)return content_search_close(),i.preventDefault(),void i.stopPropagation()}if(0===$("body > .search-overlay-outer-container").length)(o=document.createElement("div")).id="search-overlay-veil",document.body.appendChild(o),o.offsetHeight,o.style.opacity="0.5",(e=document.createElement("div")).className="search-overlay-outer-container container",e.innerHTML='<div id="search-overlay-input-container" class="input-group"><input id="search-overlay-input" class="form-control" placeholder="'+_t("Søg...")+'" name="q" autocomplete="off" type="text" maxlength="50"><span id="search-overlay-button" class="input-group-text"><span class="iconify search-icon" data-icon="fa:search"></span></span></div>',document.body.appendChild(e),(t=$(e).find("#search-overlay-input-container")[0]).style.width="inherit",o=t.getBoundingClientRect().width,t.style.width="0",t.offsetHeight,t.classList.add("transitioning"),t.style.width=o+"px",setTimeout(function(){$(e).find("#search-overlay-input-container").removeClass("transitioning").css("width","inherit"),$(e).find("#search-overlay-input").focus(),$(e).find("#search-overlay-input")[0].addEventListener("focus",content_search),$(e).find("#search-overlay-input")[0].addEventListener("keyup",content_search),$(e).find("#search-overlay-button")[0].addEventListener("click",content_search),content_search(),window.addEventListener("click",content_search_close)},300),"#search"!==window.location.hash&&window.history.pushState({type:"search"},"#search","#search"),window._g_public_search_active=!0;else{let t=a.value.trim();if(1<t.length){let e=350;if(n)e=0;else switch(t.length){case 2:e=1e3;break;case 3:e=750;break;case 4:e=500}content_search_timer=setTimeout(function(){if(void 0===window._g_content_search_last_search||t!==window._g_content_search_last_search){site_events_log({type:"search",search_string:t}),window._g_content_search_last_search=t,"function"==typeof content_search_ajax_last_object.abort&&(content_search_ajax_last_object.aborted=!0,content_search_ajax_last_object.abort());let e="";$('body[data-page-type="item_category"]').length&&(e+="&cat_id="+$('body[data-page-type="item_category"]').attr("data-page-id")),$('input[type="checkbox"].limit-search-to-selected-category:checked').length&&(e+="&limit=1"),browserloading_start(void 0,void 0,_t("Søger...")),content_search_ajax_last_object=ajax_get("/search/ajax?q="+encodeURIComponent(t)+e,function(e){if(browserloading_stop(),e.html){var t=$(".search-overlay-outer-container")[0],i=$(t).find("#search_overlay")[0],n=$(t).find("#search_overlay_inner")[0];if(i){t.classList.add("transitioning");var o=i.getBoundingClientRect().height,a=(i.style.borderWidth="1px",i.style.height="auto",i.style.visibility="hidden",i.style.display="block",n.innerHTML=e.html,i.getBoundingClientRect().height);o===a?(i.style.visibility="visible",t.classList.remove("transitioning")):(i.style.height=o+"px",i.style.visibility="visible",css_transition_end_setup(i,function(){t.classList.remove("transitioning")}),i.offsetHeight,i.style.height=a+"px")}else{if(!t)return;t.classList.add("search-active"),t.classList.add("transitioning");o=$(t).width(),a=((i=document.createElement("div")).id="search_overlay",t.appendChild(i),i.style.height="auto",i.style.visibility="hidden",i.style.display="block",i.style.width=o+"px",(n=document.createElement("div")).id="search_overlay_inner",n.innerHTML=e.html,i.appendChild(n),css_transition_end_setup(i,function(e){t.classList.remove("transitioning")}),i.getBoundingClientRect().height);i.style.height="0",i.style.visibility="visible",i.offsetHeight,i.style.height=a+"px"}$(t).find(".limit-search-to-selected-category").length&&$(t).find(".limit-search-to-selected-category, .limit-search-to-selected-category-container").off("click").on("click",function(e){e.stopPropagation(),content_search(void 0,!(window._g_content_search_last_search=""))}),content_search_data_object.arrow_counter=-1,add_link_listeners(),setTimeout(function(){document.getElementById("search_overlay")&&(document.getElementById("search_overlay").style.height="auto")},300),window.addEventListener("click",content_search_close)}else content_search_close()})}},e)}else window._g_content_search_last_search="",void 0!==i.keyCode&&document.getElementById("search_overlay")&&(document.getElementById("search_overlay").style.height=document.getElementById("search_overlay").getBoundingClientRect().height+"px",document.getElementById("search_overlay").offsetHeight,document.getElementById("search_overlay").style.height="0",setTimeout(function(){document.getElementById("search_overlay")&&document.getElementById("search_overlay").parentNode.removeChild(document.getElementById("search_overlay"))},300),$(".search-overlay-outer-container").removeClass("search-active"))}}}function content_search_close(e){void 0!==e&&void 0!==e.target&&$(e.target).closest("#search-overlay-input").length||(window._g_public_search_active=!1,window.removeEventListener("click",content_search_close),window.removeEventListener("_resize_x",content_search_close),window.removeEventListener("_content_load",content_search_close),clearTimeout(content_search_timer),$(".search-overlay-outer-container").each(function(){var e=this,t=$(e).find("#search_overlay");e.classList.remove("search-active"),t.length?(setTimeout(function(){$(e).find("#search_overlay").length&&($(e).find("#search_overlay").remove(),e.classList.remove("transitioning")),$(e).parent().is("body")&&0<$("body > .search-overlay-outer-container").length&&($("body > .search-overlay-outer-container").find("#search-overlay-input-container")[0].classList.add("transitioning"),$("body > .search-overlay-outer-container").find("#search-overlay-input-container")[0].classList.add("closing"),$("body > .search-overlay-outer-container").find("#search-overlay-input-container")[0].style.width="0",$("body > #search-overlay-veil").css("opacity","0"),setTimeout(function(){$("body > .search-overlay-outer-container").remove(),$("body > #search-overlay-veil").remove()},300))},300),e.classList.add("transitioning"),t[0].style.height=t[0].getBoundingClientRect().height+"px",t[0].offsetHeight,t[0].style.height="0",t[0].style.borderWidth="0"):$(e).parent().is("body")&&0<$("body > .search-overlay-outer-container").length&&($("body > .search-overlay-outer-container").find("#search-overlay-input-container")[0].classList.add("transitioning"),$("body > .search-overlay-outer-container").find("#search-overlay-input-container")[0].classList.add("closing"),$("body > .search-overlay-outer-container").find("#search-overlay-input-container")[0].style.width="0",$("body > #search-overlay-veil").css("opacity","0"),setTimeout(function(){$("body > .search-overlay-outer-container").remove(),$("body > #search-overlay-veil").remove()},300))}),window._g_content_search_last_search="",document.activeElement.blur(),void 0!==e&&void 0!==e.type&&"popstate"===e.type)||void 0!==window.location.hash&&"#search"===window.location.hash&&(window_onpopstate_do_nothing=!0,history.back())}function basket_slide_in_basket_show(e){$("#basket-form").length||("object"==typeof e&&"string"==typeof e.type&&"click"===e.type&&(e.preventDefault(),e.returnValue=!1),browserloading_start(),ajax_get("/basket/slide_in_basket",function(t){if(browserloading_stop(),1===t.result){var i,n;document.getElementById("basket-slide-in-veil")||((i=document.createElement("div")).id="basket-slide-in-veil",document.body.appendChild(i),i.offsetHeight,i.style.opacity="0.5");let e=document.getElementById("basket-slide-in-container");e?e.innerHTML=t.html:((i=document.createElement("div")).id="basket-slide-in-outer-container",(e=document.createElement("div")).id="basket-slide-in-container",e.innerHTML=t.html,i.appendChild(e),document.body.appendChild(i),e.offsetHeight,e.style.right="0",i=$("body").width(),$("body").addClass("basket-slide-in-container-visible"),i<(n=$("body").width())&&$("body").css("padding-right",n-i),e.addEventListener("click",function(e){e.stopPropagation()})),$("#basket-slide-in-outer-container,#basket-slide-in-container a,#basket-slide-in-container .close-button").off("click").one("click",basket_slide_in_basket_remove),add_link_listeners()}}))}function basket_slide_in_basket_remove(){document.getElementById("basket-slide-in-veil")&&(document.getElementById("basket-slide-in-veil").style.opacity="0",document.getElementById("basket-slide-in-container").style.right="-300px",css_transition_end_setup(document.getElementById("basket-slide-in-container"),function(){$("#basket-slide-in-veil").remove(),$("#basket-slide-in-outer-container").remove(),$("body").css("padding-right",""),$("body").removeClass("basket-slide-in-container-visible")}))}window.addEventListener("_after_load",function(){$('[data-type="share-button"][data-share-type]').each(function(){$(this).data("share-button-set-up")||("facebook"===this.getAttribute("data-share-type")?this.addEventListener("click",function(){window.open("https://www.facebook.com/sharer.php?u="+encodeURIComponent(window.location.href),"_blank","menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,width=700,height=600")}):"twitter"===this.getAttribute("data-share-type")?this.addEventListener("click",function(){window.open("https://twitter.com/intent/tweet?url="+encodeURIComponent(window.location.href),"_blank","menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,width=700,height=600")}):"x.com"===this.getAttribute("data-share-type")?this.addEventListener("click",function(){window.open("https://x.com/intent/tweet?url="+encodeURIComponent(window.location.href),"_blank","menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,width=700,height=600")}):"pinterest"===this.getAttribute("data-share-type")?this.addEventListener("click",function(){var e=$('meta[property="og:image"]').attr("content"),t=document.title;window.open("http://pinterest.com/pin/create/button/?url="+encodeURIComponent(window.location.href)+"&description="+encodeURIComponent(t)+"&media="+encodeURIComponent(e),"_blank","menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,width=900,height=900")}):"linkedin"===this.getAttribute("data-share-type")&&this.addEventListener("click",function(){window.open("https://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(window.location.href),"_blank","menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,width=700,height=600")}),$(this).data("share-button-set-up",1))})}),window.addEventListener("_after_load",function(){setTimeout(function(){$('a[href="/basket"]').each(function(){$(this).closest("#basket-slide-in-container").length||(this.removeEventListener("click",add_link_listeners_click),this.addEventListener("click",basket_slide_in_basket_show))})},5)}),window.addEventListener("_basket_updated",function(){document.body.classList.contains("basket-slide-in-container-visible")&&basket_slide_in_basket_show()});