vendor: 4,666 bytes, lines 1-2
1/*! For license information please see envision.js.LICENSE.txt */ 2!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?exports.envision=t(require("jquery")):e.envision=t(e.jQuery)}(this,e=>(()=>{"use strict";var t,i,n={1914(t){t.exports=e},4977(e,t,i){var n=i(4188),s=i(3174),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not a function")}},5458(e,t,i){var n=i(4282),s=i(7065),o=i(4466).f,r=n("unscopables"),a=Array.prototype;void 0===a[r]&&o(a,r,{configurable:!0,value:s(null)}),e.exports=function(e){a[r][e]=!0}},3770(e,t,i){var n=i(831),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not an object")}},1458(e,t,i){var n=i(380),s=i(675),o=i(9389),r=function(e){return function(t,i,r){var a=n(t),l=o(a);if(0===l)return!e&&-1;var h,d=s(r,l);if(e&&i!=i){for(;l>d;)if((h=a[d++])!=h)return!0}else for(;l>d;d++)if((e||d in a)&&a[d]===i)return e||d||0;return!e&&-1}};e.exports={includes:r(!0),indexOf:r(!1)}},8689(e,t,i){var n=i(6881),s=n({}.toString),o=n("".slice);e.exports=function(e){return o(s(e),8,-1)}},8657(e,t,i){var n=i(4418),s=i(3168),o=i(9304),r=i(4466);e.exports=function(e,t,i){for(var a=s(t),l=r.f,h=o.f,d=0;d<a.length;d++){var c=a[d];n(e,c)||i&&n(i,c)||l(e,c,h(t,c))}}},8088(e,t,i){var n=i(6893),s=i(4466),o=i(9123);e.exports=n?function(e,t,i){return s.f(e,t,o(1,i))}:function(e,t,i){return e[t]=i,e}},9123(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7509(e,t,i){var n=i(4188),s=i(4466),o=i(4530),r=i(4798);e.exports=function(e,t,i,a){a||(a={});var l=a.enumerable,h=void 0!==a.name?a.name:t;if(n(i)&&o(i,h,a),a.global)l?e[t]=i:r(t,i);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=i:s.f(e,t,{value:i,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},4798(e,t,i){var n=i(9117),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(i){n[e]=t}return t}},6893(e,t,i){var n=i(5234);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},5926(e,t,i){var n=i(9117),s=i(831),o=n.document,r=s(o)&&s(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},1274(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8060(e,t,i){var n=i(9117).navigator,s=n&&n.userAgent;e.exports=s?String(s):""},3008(e,t,i){var n,s,o=i(9117),r=i(8060),a=o.process,l=o.Deno,h=a&&a.versions||l&&l.version,d=h&&h.v8;d&&(s=(n=d.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&r&&(!(n=r.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=r.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},5613(e,t,i){var n=i(9117),s=i(9304).f,o=i(8088),r=i(7509),a=i(4798),l=i(8657),h=i(8489);e.exports=function(e,t){var i,d,c,u,p,g=e.target,v=e.global,m=e.stat;if(i=v?n:m?n[g]||a(g,{}):n[g]&&n[g].prototype)for(d in t){if(u=t[d],c=e.dontCallGetSet?(p=s(i,d))&&p.value:i[d],!h(v?d:g+(m?".":"#")+d,e.forced)&&void 0!==c){if(typeof u==typeof c)continue;l(u,c)}(e.sham||c&&c.sham)&&o(u,"sham",!0),r(i,d,u,e)}}},5234(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},9055(e,t,i){var n=i(5234);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},9944(e,t,i){var n=i(9055),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},2735(e,t,i){var n=i(6893),s=i(4418),o=Function.prototype,r=n&&Object.getOwnPropertyDescriptor,a=s(o,"name"),l=a&&"something"===function(){}.name,h=a&&(!n||n&&r(o,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:h}},6881(e,t,i){var n=i(9055),s=Function.prototype,o=s.call,r=n&&s.bind.bind(o,o);e.exports=n?r:function(e){return function(){return o.apply(e,arguments)}}},5604(e,t,i){var n=i(9117),s=i(4188);e.exports=function(e,t){return arguments.length<2?(i=n[e],s(i)?i:void 0):n[e]&&n[e][t];var i}},2913(e,t,i){var n=i(4977),s=i(4318);e.exports=function(e,t){var i=e[t];return s(i)?void 0:n(i)}},9117(e){var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof globalThis&&globalThis)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4418(e,t,i){var n=i(6881),s=i(3628),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(s(e),t)}},7588(e){e.exports={}},7458(e,t,i){var n=i(5604);e.exports=n("document","documentElement")}
vendor: 5,732 bytes, line 2
2,9622(e,t,i){var n=i(6893),s=i(5234),o=i(5926);e.exports=!n&&!s(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},7568(e,t,i){var n=i(6881),s=i(5234),o=i(8689),r=Object,a=n("".split);e.exports=s(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?a(e,""):r(e)}:r},3029(e,t,i){var n=i(6881),s=i(4188),o=i(2694),r=n(Function.toString);s(o.inspectSource)||(o.inspectSource=function(e){return r(e)}),e.exports=o.inspectSource},3086(e,t,i){var n,s,o,r=i(5945),a=i(9117),l=i(831),h=i(8088),d=i(4418),c=i(2694),u=i(168),p=i(7588),g="Object already initialized",v=a.TypeError,m=a.WeakMap;if(r||c.state){var f=c.state||(c.state=new m);f.get=f.get,f.has=f.has,f.set=f.set,n=function(e,t){if(f.has(e))throw new v(g);return t.facade=e,f.set(e,t),t},s=function(e){return f.get(e)||{}},o=function(e){return f.has(e)}}else{var b=u("state");p[b]=!0,n=function(e,t){if(d(e,b))throw new v(g);return t.facade=e,h(e,b,t),t},s=function(e){return d(e,b)?e[b]:{}},o=function(e){return d(e,b)}}e.exports={set:n,get:s,has:o,enforce:function(e){return o(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var i;if(!l(t)||(i=s(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return i}}}},4188(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8489(e,t,i){var n=i(5234),s=i(4188),o=/#|\.prototype\./,r=function(e,t){var i=l[a(e)];return i===d||i!==h&&(s(t)?n(t):!!t)},a=r.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=r.data={},h=r.NATIVE="N",d=r.POLYFILL="P";e.exports=r},4318(e){e.exports=function(e){return null==e}},831(e,t,i){var n=i(4188);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},1942(e){e.exports=!1},6032(e,t,i){var n=i(5604),s=i(4188),o=i(4578),r=i(9809),a=Object;e.exports=r?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&o(t.prototype,a(e))}},9389(e,t,i){var n=i(7611);e.exports=function(e){return n(e.length)}},4530(e,t,i){var n=i(6881),s=i(5234),o=i(4188),r=i(4418),a=i(6893),l=i(2735).CONFIGURABLE,h=i(3029),d=i(3086),c=d.enforce,u=d.get,p=String,g=Object.defineProperty,v=n("".slice),m=n("".replace),f=n([].join),b=a&&!s(function(){return 8!==g(function(){},"length",{value:8}).length}),y=String(String).split("String"),_=e.exports=function(e,t,i){"Symbol("===v(p(t),0,7)&&(t="["+m(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(t="get "+t),i&&i.setter&&(t="set "+t),(!r(e,"name")||l&&e.name!==t)&&(a?g(e,"name",{value:t,configurable:!0}):e.name=t),b&&i&&r(i,"arity")&&e.length!==i.arity&&g(e,"length",{value:i.arity});try{i&&r(i,"constructor")&&i.constructor?a&&g(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=c(e);return r(n,"source")||(n.source=f(y,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return o(this)&&u(this).source||h(this)},"toString")},142(e){var t=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?i:t)(n)}},7065(e,t,i){var n,s=i(3770),o=i(30),r=i(1274),a=i(7588),l=i(7458),h=i(5926),d=i(168),c="prototype",u="script",p=d("IE_PROTO"),g=function(){},v=function(e){return"<"+u+">"+e+"</"+u+">"},m=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},f=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,i;f="undefined"!=typeof document?document.domain&&n?m(n):(t=h("iframe"),i="java"+u+":",t.style.display="none",l.appendChild(t),t.src=String(i),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F):m(n);for(var s=r.length;s--;)delete f[c][r[s]];return f()};a[p]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(g[c]=s(e),i=new g,g[c]=null,i[p]=e):i=f(),void 0===t?i:o.f(i,t)}},30(e,t,i){var n=i(6893),s=i(3315),o=i(4466),r=i(3770),a=i(380),l=i(7137);t.f=n&&!s?Object.defineProperties:function(e,t){r(e);for(var i,n=a(t),s=l(t),h=s.length,d=0;h>d;)o.f(e,i=s[d++],n[i]);return e}},4466(e,t,i){var n=i(6893),s=i(9622),o=i(3315),r=i(3770),a=i(2344),l=TypeError,h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c="enumerable",u="configurable",p="writable";t.f=n?o?function(e,t,i){if(r(e),t=a(t),r(i),"function"==typeof e&&"prototype"===t&&"value"in i&&p in i&&!i[p]){var n=d(e,t);n&&n[p]&&(e[t]=i.value,i={configurable:u in i?i[u]:n[u],enumerable:c in i?i[c]:n[c],writable:!1})}return h(e,t,i)}:h:function(e,t,i){if(r(e),t=a(t),r(i),s)try{return h(e,t,i)}catch(e){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},9304(e,t,i){var n=i(6893),s=i(9944),o=i(4416),r=i(9123),a=i(380),l=i(2344),h=i(4418),d=i(9622),c=Object.getOwnPropertyDescriptor;t.f=n?c:function(e,t){if(e=a(e),t=l(t),d)try{return c(e,t)}catch(e){}if(h(e,t))return r(!s(o.f,e,t),e[t])}},5629(e,t,i){var n=i(1843),s=i(1274).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},156(e,t){t.f=Object.getOwnPropertySymbols},4578(e,t,i){var n=i(6881);e.exports=n({}.isPrototypeOf)},1843(e,t,i){var n=i(6881),s=i(4418),o=i(380),r=i(1458).indexOf,a=i(7588),l=n([].push);e.exports=function(e,t){var i,n=o(e),h=0,d=[];for(i in n)!s(a,i)&&s(n,i)&&l(d,i);for(;t.length>h;)s(n,i=t[h++])&&(~r(d,i)||l(d,i));return d}},7137(e,t,i){var n=i(1843),s=i(1274);e.exports=Object.keys||function(e){return n(e,s)}},4416(e,t){var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!i.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:i},2287(e,t,i){var n=i(9944),s=i(4188),o=i(831),r=TypeError;e.exports=function(e,t){var i,a;if("string"===t&&s(i=e.toString)&&!o(a=n(i,e)))return a;
2if(s(i=e.valueOf)&&!o(a=n(i,e)))return a;if("string"!==t&&s(i=e.toString)&&!o(a=n(i,e)))return a;throw new r("Can't convert object to primitive value")}},3168(e,t,i){var n=i(5604),s=i(6881),o=i(5629),r=i(156),a=i(3770),l=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),i=r.f;return i?l(t,i(e)):t}},9509(e,t,i){var n=i(4318),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},168(e,t,i){var n=i(746),s=i(6209),o=n("keys");e.exports=function(e){return o[e]||(o[e]=s(e))}},2694(e,t,i){var n=i(1942),s=i(9117),o=i(4798),r="__core-js_shared__",a=e.exports=s[r]||o(r,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"© 2013â2025 Denis Pushkarev (zloirock.ru), 2025â2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},746(e,t,i){var n=i(2694);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},8944(e,t,i){var n=i(3008),s=i(5234),o=i(9117).String;e.exports=!!Object.getOwnPropertySymbols&&!s(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},675(e,t,i){var n=i(6744),s=Math.max,o=Math.min;e.exports=function(e,t){var i=n(e);return i<0?s(i+t,0):o(i,t)}},380(e,t,i){var n=i(7568),s=i(9509);e.exports=function(e){return n(s(e))}},6744(e,t,i){var n=i(142);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},7611(e,t,i){var n=i(6744),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},3628(e,t,i){var n=i(9509),s=Object;e.exports=function(e){return s(n(e))}},290(e,t,i){var n=i(9944),s=i(831),o=i(6032),r=i(2913),a=i(2287),l=i(4282),h=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!s(e)||o(e))return e;var i,l=r(e,d);if(l){if(void 0===t&&(t="default"),i=n(l,e,t),!s(i)||o(i))return i;throw new h("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},2344(e,t,i){var n=i(290),s=i(6032);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},3174(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6209(e,t,i){var n=i(6881),s=0,o=Math.random(),r=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++s+o,36)}},9809(e,t,i){var n=i(8944);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3315(e,t,i){var n=i(6893),s=i(5234);e.exports=n&&s(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},5945(e,t,i){var n=i(9117),s=i(4188),o=n.WeakMap;e.exports=s(o)&&/native code/.test(String(o))},4282(e,t,i){var n=i(9117),s=i(746),o=i(4418),r=i(6209),a=i(8944),l=i(9809),h=n.Symbol,d=s("wks"),c=l?h.for||h:h&&h.withoutSetter||r;e.exports=function(e){return o(d,e)||(d[e]=a&&o(h,e)?h[e]:c("Symbol."+e)),d[e]}},2234(e,t,i){var n=i(5613),s=i(1458).includes,o=i(5234),r=i(5458),a=o(function(){return!Array(1).includes()}),l=o(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:a||l},{includes:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.m=n,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((t,i)=>(o.f[i](e,t),t),[])),o.u=e=>({131:"env-carousel",172:"env-carousel-autoheight",211:"env-carousel-autoplay",333:"popper",390:"tom-select",926:"env-carousel-fade"}[e]+"-"+{131:"3fb1434fc61368cafe15",172:"0ea1fcbbd5bc99294047",211:"260f634abf44db393058",333:"91e49d7f102af56e17f7",390:"0f5dc4dfa1dd5b84ae46",926:"4424b29a56e5fe95f99c"}[e]+".js"),o.miniCssF=e=>{},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},i="envision:",o.l=(e,n,s,r)=>{if(t[e])t[e].push(n);else{var a,l;if(void 0!==s)for(var h=document.getElementsByTagName("script"),d=0;d<h.length;d++){var c=h[d];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==i+s){a=c;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",i+s),a.src=e),t[e]=[n];var u=(i,n)=>{a.onerror=a.onload=null,clearTimeout(p);var s=t[e];if(delete t[e],a.parentNode&&a.parentNode.removeChild(a),s&&s.forEac
2h(e=>e(n)),i)return i(n)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=u.bind(null,a.onerror),a.onload=u.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");if(i.length)for(var n=i.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=i[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={792:0};o.f.j=(t,i)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)i.push(n[2]);else{var s=new Promise((i,s)=>n=e[t]=[i,s]);i.push(n[2]=s);var r=o.p+o.u(t),a=new Error;o.l(r,i=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var s=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;a.message="Loading chunk "+t+" failed.\n("+s+": "+r+")",a.name="ChunkLoadError",a.type=s,a.request=r,n[1](a)}},"chunk-"+t,t)}};var t=(t,i)=>{var n,s,[r,a,l]=i,h=0;if(r.some(t=>0!==e[t])){for(n in a)o.o(a,n)&&(o.m[n]=a[n]);if(l)l(o)}for(t&&t(i);h<r.length;h++)s=r[h],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0},i=this.webpackChunkenvision=this.webpackChunkenvision||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var r={};o.r(r),o.d(r,{accordion:()=>Ti,collapse:()=>ji,dialog:()=>Wt,imageSlider:()=>ui,imageViewer:()=>Le,imageViewer2:()=>mt,popover:()=>F,range:()=>_t,rangeSlider:()=>kt,select:()=>G,tabs:()=>ne,tooltip:()=>he});var a=o(1914),l=o.n(a);const h=function(e,t){const i=[];if(t=t||document,e&&"string"==typeof e){let n=t.querySelectorAll(e);if(n&&n.length>0)for(let e=0;e<n.length;e++)i.push(n[e])}else if(e&&"object"==typeof e)if(1===e.nodeType)i.push(e);else if(e.length>0)for(let t=0;t<e.length;t++)i.push(e[t]);return i},d=function(e,t){return h(e,t)[0]},c=function(e){const t=document.createElement("template");return t.innerHTML=e,t.content.firstElementChild},u=function(e,t){return"string"==typeof t&&(t=c(t)),t=t||document.createElement("div"),e.replaceWith(t),t.appendChild(e),t},p="data-env-prev-style",g="envScrollLockCount",v="envScrollY",m=function(e,t){const i=e.getAttribute(`${p}-${t}-val`);i?e.style.setProperty(t,i,e.getAttribute(`${p}-${t}-prio`)):e.style.removeProperty(t),e.removeAttribute(`${p}-${t}-val`),e.removeAttribute(`${p}-${t}-prio`)},f=function(e,t,i,n){if(e.style.getPropertyValue(t)){const i=e.style.getPropertyValue(t);i&&(e.setAttribute(`${p}-${t}-val`,i),e.setAttribute(`${p}-${t}-prio`,e.style.getPropertyPriority(t)))}e.style.setProperty(t,i,n)},b=(e,t)=>{Object.keys(t).forEach(i=>{e.setAttribute(i,t[i])})},y=function(){const e=Number.parseInt(document.body.dataset[g],10)||0;if(0===e){const e=window.scrollY;f(document.body,"overflow-x",""),f(document.body,"overflow-y",""),f(document.body,"overflow","hidden","important"),f(document.body,"position","fixed"),f(document.body,"width","100%"),f(document.body,"top",`-${e}px`),document.body.dataset[v]=`${e}`}document.body.dataset[g]=`${e+1}`},_=function(){const e=Number.parseInt(document.body.dataset[g],10)||0;if(!(e<=0)){if(1===e){const e=Number.parseInt(document.body.dataset[v],10);return["overflow","overflow-x","overflow-y","position","width","top"].forEach(e=>{m(document.body,e)}),delete document.body.dataset[g],delete document.body.dataset[v],void(Number.isFinite(e)&&window.scrollTo(window.scrollX,e))}document.body.dataset[g]=""+(e-1)}},w=function(e){h(e).forEach(e=>{f(e,"display","none","important")})},E=function(e){h(e).forEach(e=>{const t=document.createElement(e.tagName);document.body.appendChild(t);const i=getComputedStyle(t).display;t.remove(),f(e,"display",i)})},x=function(e){h(e).forEach(e=>{m(e,"display")})},I=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S=function(e){const t=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","details:not([disabled])","summary:not([disabled])",'[tabindex]:not
2([tabindex="-1"]):not([disabled])',"[contenteditable]"].join(","),i=h(t,e),n=[];for(let e=0;e<i.length;e++)I(i[e])&&n.push(i[e]);return n},T=(e,t)=>{t=t||document;const i=S(t);let n=e;for(let t=0;t<i.length;t++){if(i[t]===e){n=t===i.length-1?i[0]:i[t+1];break}}return n},A=(()=>{let e=0;const t=()=>(e+=1,"env-"+e);return e=>{h(e).forEach(e=>{if(!e.id){let i=t();for(;document.getElementById(i);)i=t();e.id=i}})}})();let L;const k=async()=>{if(L)return L;const{createPopper:e}=await o.e(333).then(o.bind(o,6169));return L=e,L},$=(()=>{const e={consoleWarning:(e,...t)=>{const i="https://envisionui.io/",n={jQuery:e=>{let t=e.replace(/^env/,"").replace(/Imageslider/,"imageSlider").replace(/Imageviewer/,"imageWiewer");return t=t.charAt(0).toLowerCase()+t.slice(1),`WARNING: $.fn.${e} is deprecated. Please update your code with new method envision.${t}. Refer to ${i}warnings/#jquery-warnings for documentation.`},component:(e,t,n)=>`WARNING: The component "${e}" is deprecated. ${n?`Please update your code with new component "${n}".`:""} Refer to ${i}warnings/#${t} for documentation.`};Object.prototype.hasOwnProperty.call(n,e)&&console.warn(n[e](...t))},getLanguageOptions(e,t,i){let n={};const s=()=>{let e=(i=i||document.documentElement).closest("[lang]").getAttribute("lang").substring(0,2);return Object.prototype.hasOwnProperty.call(t,e)||(e="en"),Object.prototype.hasOwnProperty.call(t,e)?t[e]:{}};return n="string"==typeof e&&Object.prototype.hasOwnProperty.call(t,e)?Object.assign({},t[e]):this.isPlainObject(e)?Object.assign({},s(),e):Object.assign({},s()),n},isPlainObject(e){if("object"==typeof e&&null!==e){const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}return!1},extend(){const t={};let i=!1;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(i=arguments[0]);const n=function(n){for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i&&"[object Object]"===Object.prototype.toString.call(n[s])?t[s]=e.extend(!0,t[s],n[s]):t[s]=n[s])};for(let e=0;e<arguments.length;e++)n(arguments[e]);return t},normalizeOptions(e,t){if(e=this.isPlainObject(e)?e:{},!this.isPlainObject(t))return console.error("defaults is not an object"),e;for(let i in e)Object.prototype.hasOwnProperty.call(t,i)||delete e[i];return e}};return e})(),C=$,O="envPopover",P="env-popover",D="env-popover__arrow",j="env-popover__header",N="env-popover__header__title",M="env-popover__content",B="env-popover__menu",H="envPopoverMenuIndex",K={clickOutside:!1,constraints:[],container:"body",content:"",delay:0,escapeContent:!0,placement:"top",template:(e,t,i)=>`<div class="${P} ${e}" role="${i}">\n <div class="${D}"></div>\n <div class="${j}">\n <h4 class="env-ui-text-sectionheading ${N}"></h4>\n </div>\n <div class="${t}"></div>\n </div>`,title:"",trigger:"click",type:null};class V{constructor(e,t){this.el=e,this.config={...K,...this.el.dataset,...t},this.bindEvents(),"menu"===this.config.type&&(this.el.setAttribute("aria-haspopup","true"),this.el.setAttribute("aria-expanded","false"))}handleClick(){this.isShowing?this.hide():this.show()}handleInEvent(){this.config.delay>0?(this.hidetimeout&&clearTimeout(this.hidetimeout),this.showtimeout&&clearTimeout(this.showtimeout),this.isShowing||(this.showtimeout=setTimeout(()=>{this.show()},this.config.delay))):this.isShowing||this.show()}handleOutEvent(){this.config.delay>0?(this.bindPopoverEvents(),this.showtimeout&&clearTimeout(this.showtimeout),this.isShowing&&(this.hidetimeout=setTimeout(()=>{this.hide()},this.config.delay))):this.isShowing&&this.hide()}handleKeyEscape(e){const t=e.target,i=this.getPopoverElement();this.hide(),i.contains(t)&&setTimeout(()=>this.el.focus(),0)}handleKeyTabForwardToPopover(e){const t=this.getPopoverElement(),i=S(t);i.length>0&&(e.preventDefault(),i[0].focus())}handleTriggerFocusIn(e){if(!this.isShowing)return;const t=e.relatedTarget,i=this.getPopoverElement(),n=t&&!i.contains(t),s=(o=t,this.el.compareDocumentPosition(o)===Node.DOCUMENT_POSITION_FOLLOWING);var o;if(n&&s){const e=S(i);e[e.length-1]?.focus()}}handleTriggerKeyDown(e){"menu"===this.config.type&&("ArrowDown"===e.key||" "===e.key||"Enter"===e.key?(e.preventDefault(),this.show(),setTimeout(()=>{this.menuItems[0].focus()},0)):"ArrowUp"===e.key&&(e.preventDefault(),this.show(),setTimeout(()=>{this.menuItems[this.menuItems.length-1].focus()},0)))}handleKeyTabInPopover(e){const t=e.target,i=this.getPopoverElement(),n=S(i);if(0===n.length)return;const s=n[0],o=n[n.length-1];if(e.shiftKey&&t===s)e.preventDefault(),this.el.focus();else if(!e.shiftKey&&t===o){e.preventDefault();const t=T(this.el);t&&t.focus()}}handleMenuKeys(e){const t=e.target,i=this.getPopoverElement(),n=this.menuItems.length;if(i.contains(t)&&n>0){const i=parseInt(t.dataset[H],10);if(" "===e.key&&"BUTTON"!==t.tagName){e.preventDefault();const i=t.closest("[role=menuitem]");i&&i.click()}else if("Tab"===e.key){if(e.preventDefault(),e.shiftKey)e.preventDefault(),this.el.focus();else{T(this.el).focus()}this.hide()}else if("Home"===e.key)e.preventDefault(),this.menuItems[0].focus();else if("End"===e.key)e.preventDefault(),this.menuItems[this.menuItems.length-1].focus();else if("ArrowUp"===e.key){e.preventDefault();const t=i>0?i-1:this.menuItems.length-1;this.menuItems[t].focus()}else if("ArrowDown"===e.key){e.preventDefault();const t=i<this.menuItems.length-1?i+1:0;this.menuItems[t].focus()}}}handleKeysInPopover(e){const t=e.target,i=this.getPopoverElement();"Tab"===e.key&&i.contains(t)?this.handleKeyTabInPopover(e):"Tab"===e.key&&t===this.el&&this.isShowing&&!e.shiftKey&&this.handleKeyTabForwardToPopover(e)}handleKeyboardEvent(e){"Escape"===e.key?this.handleKeyEscape(e):"menu"===this.config.type?this.handleMenuKeys(e):this.handleKeysInPopover(e)}bindEvents(){const e=this.config.trigger.split(" ");this.handleClick=this.handleClick.bind(this),this.handleInEvent=this.handleInEvent.bind(this),this.handleOutEvent=this.handleOutEvent.bind(this),this.handlePopoverMouseEnter=this.handlePopoverMouseEnter.bind(this),this.handlePopoverMouseLeave=this.handlePopoverMouseLeave.bind(this),this.clickOutsideHandler=this.clickOutsideHandler.bind(this),this.handleKeyboardEvent=this.handleKeyboardEvent.bind(this),this.handleTriggerFocusIn=this.handleTriggerFocusIn.bind(this),this.handleTriggerKeyDown=this.handleTriggerKeyDown.bind(this),this.el.addEventListener("focusin",this.handleTriggerFocusIn),this.el.addEventListener("keydown",this.handleTriggerKeyDown),e.forEach(e
2=>{if("click"===e)this.el.addEventListener("click",this.handleClick);else{const t="hover"===e,i=t?"mouseenter":"focusin",n=t?"mouseleave":"focusout";this.el.addEventListener(i,this.handleInEvent),this.el.addEventListener(n,this.handleOutEvent)}})}removeEvents(){this.el.removeEventListener("focusin",this.handleTriggerFocusIn),this.el.removeEventListener("keydown",this.handleTriggerKeyDown);this.config.trigger.split(" ").forEach(e=>{if("click"===e)this.el.removeEventListener("click",this.handleClick);else{const t="hover"===e,i=t?"mouseenter":"focusin",n=t?"mouseleave":"focusout";this.el.removeEventListener(i,this.handleInEvent),this.el.removeEventListener(n,this.handleOutEvent)}})}handlePopoverMouseEnter(){this.hidetimeout&&clearTimeout(this.hidetimeout),this.showtimeout&&clearTimeout(this.showtimeout),this.isShowing||(this.showtimeout=setTimeout(()=>{this.show()},this.config.delay))}handlePopoverMouseLeave(){this.showtimeout&&clearTimeout(this.showtimeout),this.isShowing&&(this.hidetimeout=setTimeout(()=>{this.hide()},this.config.delay))}clickOutsideHandler(e){const t=e.target;!this.isShowing||this.el.contains(t)||t.closest(`.${P}`)||this.hide()}bindPopoverEvents(){const e=this.getPopoverElement();e.removeEventListener("mouseenter",this.handlePopoverMouseEnter),e.addEventListener("mouseenter",this.handlePopoverMouseEnter,{once:!0}),e.removeEventListener("mouseleave",this.handlePopoverMouseLeave),e.addEventListener("mouseleave",this.handlePopoverMouseLeave,{once:!0})}getPopoverTemplate(){const e="tooltip"===this.config.type?"env-popover--tooltip":"",t="menu"===this.config.type?B:M,i="menu"===this.config.type?"menu":"tooltip";return"function"==typeof this.config.template&&(this.config.template=this.config.template(e,t,i)),this.config.template}getPopoverElement(){if(!this.popoverElement){const e=document.createElement("div");e.innerHTML=this.getPopoverTemplate(),this.popoverElement=e.firstChild,A(this.popoverElement)}return this.popoverElement}setTitle(e){if(this.config.title)e.querySelector(`.${N}`).textContent=this.config.title,this.popoverElement.querySelector(`.${N}`).setAttribute("id",e.id+"-title");else{const e=this.popoverElement.querySelector(`.${j}`);e&&e.remove()}}setContent(e){this.config.content instanceof HTMLElement&&(this.config.content=this.config.content.innerHTML);const t="menu"===this.config.type?B:M;this.config.escapeContent?e.querySelector(`.${t}`).innerHTML=`<p class="env-text">${this.config.content}</p>`:e.querySelector(`.${t}`).innerHTML=this.config.content}updateConfig(e){return Object.assign(this.config,e),this}render(){const e=this.getPopoverElement();this.setTitle(e),this.setContent(e)}hide(){this.getPopoverElement().remove(),"menu"===this.config.type?(this.el.setAttribute("aria-expanded","false"),this.el.removeAttribute("aria-controls")):this.el.removeAttribute("aria-describedby"),this.config.clickOutside&&document.body.removeEventListener("click",this.clickOutsideHandler),document.removeEventListener("keydown",this.handleKeyboardEvent),this.isShowing=!1}show(){this.render();const e=this.getPopoverElement();document.body.appendChild(e),"menu"===this.config.type?(this.el.setAttribute("aria-expanded","true"),this.el.setAttribute("aria-controls",this.popoverElement.id),e.setAttribute("aria-labelledby",this.config.title?`${this.popoverElement.id}-title`:this.el.id),this.menuItems=h(".env-popover__item",e),this.menuItems.forEach((e,t)=>{e.dataset[H]=t,e.setAttribute("role","menuitem")})):this.el.setAttribute("aria-describedby",this.popoverElement.id),k().then(t=>{this._popper=t(this.el,e,{placement:this.config.placement,modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"arrow",options:{element:`.${D}`}}]}),this._popper.update(),this.config.clickOutside&&document.body.addEventListener("click",this.clickOutsideHandler),document.addEventListener("keydown",this.handleKeyboardEvent),this.isShowing=!0})}destroy(){this.hide(),this._popper&&this._popper.destroy(),this._popper=void 0,this.isShowing=!1,this.removeEvents()}static async _init(e,t){const i=h(e);if(i.length>0)return await k(),i.map(e=>{if(e[O]||(e[O]=new V(e,t)),"string"==typeof t){if(!e[O][t])throw new Error(`No method n
2amed "${t}"`);e[O][t].call(e[O])}return e[O]})}static _jQueryInterface(e){return C.consoleWarning("jQuery",O),this.each(()=>{h(this).forEach(t=>{V._init(t,e)})})}}if("undefined"!=typeof document){const e=l().fn[O];l().fn[O]=V._jQueryInterface,l().fn[O].Constructor=V,l().fn[O].noConflict=()=>(l().fn[O]=e,V._jQueryInterface)}const F=async(e,t)=>V._init(e,t),R="envSelect",U="http://www.w3.org/2000/svg",Q={sv:{add:"Lägg till",remove_button:"Ta bort val",clear_button:"Rensa",no_results:"Inga alternativ matchar"},en:{add:"Add",remove_button:"Remove",clear_button:"Clear",no_results:"No results found"},no:{add:"Legg til",remove_button:"Fjern",clear_button:"Tøm",no_results:"Ingen resultater funnet"}},q={staticConfig:{wrapperClass:"env-select",inputClass:"env-select__input",dropdownClass:"env-select__dropdown",dropdownContentClass:"env-select__dropdown__content",itemClass:"env-select__item",optionClass:"env-select__dropdown__option",plugins:{caret_position:{},input_autogrow:{},remove_button:{title:`${Q.sv.remove_button}`,className:"env-select__item__remove"},clear_button:{title:`${Q.sv.clear_button}`,html:function(e){return`<button type="button" class="env-select__input__clear">${e.title}</button>`}}}},userConfig:{allowEmptyOption:!1,valueField:"value",labelField:"text",searchField:["text"],dropdownParent:null,maxItems:null,options:null,maxOptions:null,items:null,create:!1,clearButton:!0,placeholder:null,clearAfterSelect:!0,sortField:function(e,t){const i=this.items[e.id].text,n=this.items[t.id].text;return i&&n?i.localeCompare(n):0},createFilter:function(e){return!((e=e.toLowerCase())in this.options)},preload:!1,render:{option:function(e,t){return"<div>"+t(e[this.settings.labelField])+"</div>"},item:function(e,t){return"<div>"+t(e[this.settings.labelField])+"</div>"},option_create:function(e,t){return`<div class="create">${this.settings.i18n.add} <strong>${t(e.input)}</strong>…</div>`},no_results:function(){return`<div class="no-results">${this.settings.i18n.no_results}</div>`},loading:function(){return'<div class="env-select__spinner env-spinner-bounce"><div class="env-bounce1"></div><div class="env-bounce2"></div><div class="env-bounce3"></div></div>'}},load:null,onInitialize:null,onChange:null,onItemAdd:null,onItemRemove:null,onClear:null,onOptionAdd:null,onOptionRemove:null,onOptionClear:null,onDropdownOpen:null,onDropdownClose:null,onType:null,onFocus:null,onBlur:null,onLoad:null,i18n:"sv"}},z=function(e,t,i){this.el=e,this.settings=t,this.el.classList.remove("env-form-input");let n=new i(this.el,this.settings);if(n.control.classList.add("env-select__input"),n.input.classList.add("env-assistive-text"),1===this.settings.maxItems){const e=document.createElementNS(U,"svg"),t=document.createElementNS(U,"use");t.setAttributeNS("http://www.w3.org/1999/xlink","href","/sitevision/envision-icons.svg#icon-angle-down"),e.appendChild(t),e.classList.add("env-icon"),n.wrapper.appendChild(e)}return this.addOptions=n.addOption.bind(n),this.load=n.load.bind(n),this.getOption=n.getOption.bind(n),this.updateOption=n.updateOption.bind(n),this.removeOption=n.removeOption.bind(n),this.getItem=n.getItem.bind(n),this.addItem=n.addItem.bind(n),this.refreshOptions=n.refreshOptions.bind(n),this.getValue=n.getValue.bind(n),this.setValue=n.setValue.bind(n),this.open=n.open.bind(n),this.close=n.close.bind(n),this.clear=n.clear.bind(n),this.clearOptions=n.clearOptions.bind(n),this.clearFilter=n.clearFilter.bind(n),this.lock=function(){n.lock(),"SELECT"===n.input.tagName&&(n.input.disabled=!0),n.input.readOnly=!0,n.control_input.readOnly=!0},this.unlock=function(){n.unlock(),"SELECT"===n.input.tagName&&(n.input.disabled=!1),n.input.readOnly=!1,n.control_input.readOnly=!1},this.focus=n.focus.bind(n),this.blur=n.blur.bind(n),this.disable=n.disable.bind(n),this.enable=n.enable.bind(n),this.destroy=function(){n.destroy();for(let e in this)Object.prototype.hasOwnProperty.call(this,e)&&delete this[e];n=null},(this.el.classList.contains("env-select--locked")||null!==this.el.getAttribute("readonly"))&&(n.control_input.classList.remove("env-select--locked"),n.input.classList.remove("env-select--locked"),this.lock()),this},W=(e,t)=>{e=C.normalizeOptions(e,q.userConfig);let i=C.extend(!0,{},q.staticConfig,q.userConfig,e);1===i.maxItems?(delete i.plugins.clear_button,delete i.plugins.input_autogrow,delete i.plugins.caret_position,delete i.plugins.remove_button):delete i.allowEmptyOption,i.clearButton||delete i.plugins.clear_button,["items","placeholder","options"].forEach(e
2=>{i[e]||delete i[e]}),i.onDropdownOpen=function(t){t.scrollIntoView({behavior:window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth",block:"nearest"}),"function"==typeof e.onDropdownOpen&&e.onDropdownOpen.call(this,t)},i.onBlur=function(){const t=this.control_input;"INPUT"===t?.tagName&&this.settings?.placeholder&&t.setAttribute("placeholder",this.settings.placeholder),"function"==typeof e.onBlur&&e.onBlur.call(this)},i.i18n=C.getLanguageOptions(i?.i18n,Q,t);for(let e in i.plugins)i.plugins[e].title&&i.i18n[e]&&(i.plugins[e].title=i.i18n[e]);return i},G=async(e,t)=>{const i=h(e);if(i.length>0){const{default:e}=await o.e(390).then(o.bind(o,2621));return i.map(i=>(i[R]||(i[R]=new z(i,W(t,i),e)),i[R]))}},J="aria-selected",X="aria-hidden",Y="data-env-tabs-index",Z="env-tabs__link--active",ee="envTabs",te={active:0};class ie{constructor(e,t){this.el=e,this.tabs=h(this.el.querySelectorAll('[role="tab"]')),this.panels={},this.activeTab=void 0,this.config=Object.assign({},te,C.normalizeOptions(t,te)),this._clickHandler=(e=>{e.preventDefault(),this._setActive(e.currentTarget,!0)}).bind(this),this._keydownHandler=(e=>{const t=this.el.querySelector(".env-tabs--column");if("Enter"===e.key||" "===e.key)e.preventDefault(),this._setActive(e.currentTarget,!0);else if(t&&("ArrowUp"===e.key||"ArrowDown"===e.key)||!t&&("ArrowLeft"===e.key||"ArrowRight"===e.key)){e.preventDefault();let t=this._getIndex(e.currentTarget)+("ArrowLeft"===e.key||"ArrowUp"===e.key?-1:1);t>this.tabs.length-1?t=0:t<0&&(t=this.tabs.length-1),this._setFocus(this.tabs[t])}}).bind(this),this._bindEvents()}
2initialize(){this.tabs.forEach((e,t)=>{A(e);let i=document.getElementById(e.getAttribute("aria-controls"));i||document.querySelector(e.getAttribute("href")),this.panels[e.getAttribute("id")]=i,("true"===e.getAttribute(J)||e.classList.contains(Z))&&(this.config.active=t),e.classList.remove(Z),e.setAttribute(J,!1),e.setAttribute(Y,t),e.setAttribute("tabindex","-1"),i&&(i.setAttribute("tabindex","0"),i.setAttribute("role","tabpanel"),i.setAttribute(X,!0),i.classList.add("env-tabs__panel"),w(i))}),this.tabs[this.config.active].setAttribute("tabindex","0"),this._setActive(this.tabs[this.config.active],!1)}activate(e){e>=0&&e<this.tabs.length&&this._setActive(this.tabs[e],!0)}destroy(){this.tabs.forEach(e=>{e.removeEventListener("click",this._clickHandler,!1),e.removeEventListener("keydown",this._keydownHandler,!1),e.removeAttribute(Y)});for(let e in this)delete this[e]}_bindEvents(){this.tabs.forEach(e=>{e.addEventListener("click",this._clickHandler,!1),e.addEventListener("keydown",this._keydownHandler,!1)})}_setFocus(e){this.tabs.forEac
2h(e=>{e.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.focus()}_setActive(e,t){this._resetActive(),e.classList.add(Z),e.setAttribute(J,!0),t&&this._setFocus(e);const i=this._getPanelForTab(e);i&&(i.setAttribute(X,!1),x(i)),this.activeTab=e,this.activeTab.dispatchEvent(new CustomEvent("envision.tabs.activated",{bubbles:!0,cancelable:!0,detail:{tab:this.activeTab,panel:this._getPanelForTab(this.activeTab)}}))}_getIndex(e){return parseInt(e.getAttribute(Y),10)}_getPanelForTab(e){return this.panels[e.getAttribute("id")]}_resetActive(){if(this.activeTab){this.activeTab.classList.remove(Z),this.activeTab.setAttribute(J,!1);const e=this._getPanelForTab(this.activeTab);e&&(e.setAttribute(X,!0),w(e))}}static _init(e,t,i){const n=h(e);if(n.length>0){return n.map(e=>{if(e[ee]||(e[ee]=new ie(e,t),e[ee].initialize()),"string"==typeof t){if(!e[ee][t])throw new Error(`Invalid method name "${t}"`);e[ee][t].call(e[ee],i)}return e[ee]})}}static _jQueryInterface(e,t){return C.consoleWarning("jQuery",ee),this.each(()=>{h(this).forEach(i=>{ie._init(i,e,t)})})}}if("undefined"!=typeof document){const e=l().fn[ee];l().fn[ee]=ie._jQueryInterface,l().fn[ee].Constructor=ie,l().fn[ee].noConflict=()=>(l().fn[ee]=e,ie._jQueryInterface)}const ne=async(e,t,i)=>ie._init(e,t,i),se="envTooltip",oe="env-tooltip",re=`${oe}--inline`,ae={placement:"top",delay:200,modifiers:[{name:"offset",options:{offset:[0,6]}},{name:"flip",enabled:!0}]};class le{constructor(e,t){this.container=e,this.el=e.querySelector(':not([role="tooltip"])'),this.tooltip=e.querySelector('[role="tooltip"]'),this.el&&this.tooltip&&(this.config={...ae,...this.container.dataset,...t},this.container.classList.add(oe),"inline"===getComputedStyle(this.container).getPropertyValue("display")&&this.container.classList.add(re),A(this.tooltip),this.el.setAttribute("aria-describedby",this.tooltip.id),f(this.tooltip,"display","none"),this.tooltip.innerHTML=this.tooltip.textContent,this.handleShowEvent=this.handleShowEvent.bind(this),this.handleHideEvent=this.handleHideEvent.bind(this),this.handleHoverIntent=this.handleHoverIntent.bind(this),this.handleKeyboardEvent=this.handleKeyboardEvent.bind(this),this.bindEvents())}handleShowEvent(){this.hidetimeout&&clearTimeout(this.hidetimeout),this.showtimeout&&clearTimeout(this.showtimeout),this.isShowing||(this.showtimeout=setTimeout(()=>{this.show()},this.config.delay))}handleHideEvent(){this.showtimeout&&clearTimeout(this.showtimeout),this.isShowing&&(this.hidetimeout=setTimeout(()=>{this.hide()},this.config.delay))}handleKeyboardEvent(e){"Escape"===e.key&&this.hide()}handleHoverIntent(){this.tooltip.removeEventListener("mouseenter",this.handleShowEvent),this.tooltip.addEventListener("mouseenter",this.handleShowEvent),this.tooltip.removeEventListener("mouseleave",this.handleHideEvent),this.tooltip.addEventListener("mouseleave",this.handleHideEvent)}bindEvents(){this.el.addEventListener("mouseenter",this.handleShowEvent),this.el.addEventListener("focusin",this.handleShowEvent),this.el.addEventListener("mouseleave",this.handleHoverIntent),this.el.addEventListener("focusout",this.handleHoverIntent),this.el.addEventListener("mouseleave",this.handleHideEvent),this.el.addEventListener("focusout",this.handleHideEvent)}hide(){f(this.tooltip,"display","none"),this.isShowing=!1,document.removeEventListener("keyup",this.handleKeyboardEvent)}show(){f(this.tooltip,"display","block"),k().then(e=>{this._popper=e(this.container,this.tooltip,{placement:this.config.placement,modifiers:this.config.modifiers}),this._popper.update(),this.isShowing=!0}),document.addEventListener("keyup",this.handleKeyboardEvent)}destroy(){this.hide(),this._popper&&this._popper.destroy(),this._popper=void 0,this.isShowing=!1,this.el.removeEventListener("mouseenter",this.handleShowEvent),this.el.removeEventListener("focusin",this.handleShowEvent),this.el.removeEventListener("mouseleave",this.handleHideEvent),this.el.removeEventListener("focusout",this.handleHideEvent),this.el.removeEventListener("mouseleave",this.handleHoverIntent),this.el.removeEventListener("focusout",this.handleHoverIntent)}static async _init(e,t){const i=h(e=e||`.${oe}`);if(i.length>0)return await k(),i.map(e=>
2{if(e[se]||(e[se]=new le(e,t)),"string"==typeof t){if(!e[se][t])throw new Error(`No method named "${t}"`);e[se][t].call(e[se])}return e[se]})}}"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",le._init);const he=async(e,t)=>le._init(e,t),de="env-animation-in-progress",ce="env-image-viewer__backdrop--in",ue=".env.image-viewer",pe="envImageviewer",ge={sv:{prev:"Föregående",next:"Nästa",moveto:"Gå till bild"},en:{prev:"Previous",next:"Next",moveto:"Move to image"}},ve=".env-is-active",me="[data-move-to]",fe="[data-move]",be="[data-image-viewer]",ye=".env-image-viewer__images",_e=".env-image-viewer__indicators",we=".env-spinner",Ee="env-is-active",xe="env-image-viewer--hidden",Ie="env-spinner--hide",Se={CLICK_DATA_API:`click${ue}.data-api`,TOUCHEND:`touchend${ue}`,TOUCHMOVE:`touchmove${ue}`,TOUCHSTART:`touchstart${ue}`},Te=0;class Ae{constructor(e,t){this.$el=l()(e),this.$images=this.$el.find(ye),this._isShown=!1,this.config=l().extend({},{i18n:C.getLanguageOptions(t?.i18n,ge,e)},this.$el.data());const i=t&&this.$images.length>t.index?t.index:Te;this.config.index=i,this.$el.on(Se.CLICK_DATA_API,this._click.bind(this))}next(){this.show(this._getNextItemIndex())}prev(){this.show(this._getPrevItemIndex())}show(e){e=e||0,this.config.index=Number(e);const t=l()(this.$images[e])[0].getAttribute("href");if(this._isShown){l()(we).removeClass(Ie),this.$btnContainer.addClass(xe);const e=this._loadImage(t);this.$imgContainer.html(e),this._setActiveIndicatorElement()}else{this.$modal=l()("<div/>",{class:"env-image-viewer__modal"}),this.$btnContainer=l()("<div/>",{class:"env-image-viewer__dialog"}),this.$imgContainer=l()("<div/>",{class:"env-image-viewer__modal-container"}),this.$modal.append(this.$btnContainer),this.$btnContainer.append(this.$imgContainer),this.$modal.appendTo(document.body),this.$images.length>1&&(this.$btnContainer.append(this._getButtons()),this.$btnContainer.append(this._getIndicators())),this.$btnContainer.addClass(xe);const e=this._loadImage(t);this.$imgContainer.html(e),this._isShown=!0,y(),this._bindContainerEvents(),this._bindEvents(),this._showBackdrop(),l()('<div class="env-spinner">\n <div class="env-rect1"></div>\n <div class="env-rect2"></div>\n <div class="env-rect3"></div>\n <div class="env-rect4"></div>\n <div class="env-rect5"></div>\n </div>').prependTo(this.$modal)}}hide(){this.$backdrop.one("transitionend",()=>{this.$backdrop.remove(),this.$modal.remove(),this.$btnContainer.remove(),this.$imgContainer.remove(),_()}).removeClass(ce),this._isShown=!1}_click(e){e.preventDefault();const t=l()(e.target);t.is("img")?this.show(this.$images.index(t.parent())):t.is("a.env-image-viewer__images")&&this.show(this.$images.index(t))}_loadImage(e){const t=l()("<img>"),i=l()(".env-image-viewer__dialog");return t.addClass("env-image-viewer__img").attr({tabindex:"-1",src:e}).on("load",()=>{const e=t.height(),n=t.width(),s=window.innerHeight;n>800&&i.css({"max-width":"80%"}),s<e&&t.css({"max-height":.8*s}),l()(we).addClass(Ie),this.$btnContainer.removeClass(xe),this.$imgContainer.children().eq(0).trigger("focus")}),t}_bindContainerEvents(){this.$btnContainer.on(Se.CLICK_DATA_API,fe,e=>{e.preventDefault(),"next"===l()(e.currentTarget).data("move")?this.next():this.prev()}),this.$btnContainer.on(Se.CLICK_DATA_API,me,e=>{const t=e.currentTarget.getAttribute("data-move-to");t&&this.show(t)})}_getButtons(){return`<button type="button" class="env-image-viewer--prev" data-move="prev">\n <svg class="env-image-viewer__prev-icon env-icon env-icon-small">\n <use href="/sitevision/envision-icons.svg#icon-arrow-left"></use>\n </svg>\n <span class="env-assistive-text">${this.config.i18n.prev}</span>\n </button>\n <button type="button" class="env-image-viewer--next" data-move="next">\n <svg class="env-image-viewer__next-icon env-icon env-icon-small">\n <use href="/sitevision/envision-icons.svg#icon-arrow-right"></use>\n </svg>
2\n <span class="env-assistive-text">${this.config.i18n.next}</span>\n </button>`}_getIndicators(){return`<div class="env-image-viewer__indicators">\n ${this._getIndicatorItems()}\n </div>`}_getIndicatorItems(){const e=this.config.index;let t="";return this.$images.each(i=>{const n=i===e;t+=`<button type="button" title="${this.config.i18n.moveto} ${i+1}" data-move-to="${i}" class="${n?"env-is-active":""}"></button>`}),t}_showBackdrop(){this.$backdrop=l()("<div/>",{class:"env-image-viewer__backdrop"}),this.$modal.on(Se.CLICK_DATA_API,e=>{this.$backdrop.hasClass(de)||e.target===e.currentTarget&&this._isShown&&this.hide()}),this.$backdrop.appendTo(document.body),this.$backdrop.one("animationend",this._removeBackdropAnimation).addClass(`${ce} ${de}`)}_removeBackdropAnimation(e){l()(e.currentTarget).removeClass(de)}_bindEvents(){const e=this.$modal.find("button"),t=e[0],i=e[e.length-1];this.$modal.on("keydown",e=>this._keydown(e,t,i))}_keydown(e,t,i){if(!/input|textarea/i.test(e.target.tagName))switch(e.key){case"ArrowLeft":e.preventDefault(),this.prev();break;case"ArrowRight":e.preventDefault(),this.next();break;case"Escape":e.preventDefault(),this.$backdrop.hasClass(de)||this.hide();break;case"Tab":"IMG"===e.target.tagName?(e.preventDefault(),t.focus()):e.shiftKey?e.target===t&&(e.preventDefault(),i.focus()):e.target===i&&(e.preventDefault(),t.focus());break;default:return}}_getNextItemIndex(){return this.config.index===this.$images.length-1?0:this.config.index+1}_getPrevItemIndex(){return 0===this.config.index?this.$images.length-1:this.config.index-1}_setActiveIndicatorElement(){if(this.$images.length>0){this.$btnContainer.find(ve).removeClass(Ee);const e=this.$btnContainer.find(_e).children()[this.config.index];e&&l()(e).addClass(Ee)}}static _init(e,t){C.consoleWarning("component","Image viewer","image-viewer","Image viewer 2");const i=h(e);if(i.length>0)return i.map(e=>(e[pe]||(e[pe]=new Ae(e,t)),e[pe]))}static _jQueryInterface(e){return this.each(()=>{h(this).forEach(t=>{Ae._init(t,e)})})}}if("undefined"!=typeof document){window.addEventListener("load",()=>{const e=h(be);e.length>0&&Ae._init(e)});const e=l().fn[pe];l().fn[pe]=Ae._jQueryInterface,l().fn[pe].Constructor=Ae,l().fn[pe].noConflict=()=>(l().fn[pe]=e,Ae._jQueryInterface)}const Le=async(e,t)=>Ae._init(e,t);let ke,$e,Ce,Oe;const Pe="env-image-viewer-2",De="env-animation-in-progress",je="env-image-viewer-2__viewer__item",Ne="env-image-viewer-2__viewer__items",Me="env-image-viewer-2__lightbox",Be="env-image-viewer-2__lightbox--in",He="env-button--icon-before",Ke="env-button--icon-after",Ve="STOP",Fe="PAUSE",Re="PLAY",Ue="arrow-fill-right",Qe="pause",qe="arrow-left",ze="arrow-right",We="delete",Ge="zoom-in",Je="download",Xe="top",Ye="overlay-top",Ze="overlay-bottom",et="images",tt="html",it=e=>`<svg class="env-icon" data-icon="${e}">\n <use href="/sitevision/envision-icons.svg#icon-${e}"></use>\n </svg>`,nt=e=>{(e=Object.assign({},{as:"button",text:"",icon:"",className:"",controls:"",dataset:null},e)).controls=e.controls?`aria-controls="${e.controls}"`:"";const t=c(`<${e.as} type="button"\n ${e.controls} class="env-button env-button--icon ${e.className}">\n ${e.text} ${it(e.icon)}</${e.as}>`);for(const i in e.dataset)t.dataset[i]=e.dataset[i];return t},st={LIGHTBOX:`<dialog class="${Me}">\n <div class="${Me}__panel"></div>\n <div class="${Me}__panel__header-gradient ${Me}__showOnActive"></div>\n <div class="${Me}__panel__footer-gradient ${Me}__showOnActive"></div>\n <div class="${Me}__image-container" aria-live="polite"></div>\n </dialog>`,SPINNER:'<div class="env-spinner env-spinner--fade-in"><div class="env-rect1"></div>\n <div class="env-rect2"></div><div class="env-rect3"></div>\n <div class="env-rect4"></div><div class="env-rect5"></div></div>'},ot={images:`<div class="${Pe}__viewer" aria-live="off">\n<div class="${Ne}"></div>\n<div class="env-assistive-text ${Pe}__assistive"></div>\n</div>`,html:`<div class="${Pe}__viewer" aria-live="off">\n<div class="${Ne}"></div>\n</div>`},rt=`<div class="${je}" role="group" aria-roledescription="slide"></div>`,at=`<div class="${Pe}__viewer__controls"></div>`,lt={sv:{roledescription:{slideshow:"karusell",slide:"bild"},prev:"Visa föregående",next:"Visa nästa",pause:"Stoppa",play:"Starta",slideshow:"automatisk bläddring",zoom:"Visa",largeImage:"stor bild",close:"Stäng",download:"Ladda ner bild",image:"Bild",of:"av"},en:{roledescription:{slideshow:"carousel",slide:"image"},prev:"Previous",next:"Next",pause:"Stop",play:"Start",slideshow:"automatic slide show",zoom:"Show",largeImage:"large image",close:"Close",download:"Download image",image:"Image",of:"of"},no:{roledescription:{slideshow:"karusell",slide:"bilde"},prev:"Forrige",next:"Neste",pause:"Stopp",play:"Start",slideshow:"automatisk lysbildeserie",zoom:"Vis",largeImage:"stort bilde",close:"Lukk",download:"Last ned bilde",image:"Bilde",of:"av"}},ht={slides:!1,buttons:{download:!0,showText:!1},i18n:"sv"},dt={auto:!1,playing:!1,transition:"slide",draggable:!0,buttons:{placement:"overlay-top",type:null,ghost:!1,size:null},autoHeight:!1,type:"images"},ct=(e,t)=>
2{e=C.normalizeOptions(e,ht);let i=!!e?.slides&&e?.slides;!1!==i&&(i=!0===i?{}:{...i},i=(e=>{const t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return e.auto=!t&&Number.isInteger(e.auto)&&e.auto>0?e.auto:0,e.playing=!t&&e.auto>0&&e.playing,"boolean"!=typeof e.overlay||e.buttons?.placement||(e.buttons={...e.buttons},Object.assign(e.buttons,{placement:e.overlay?Ye:Xe})),delete e.overlay,!e.transition&&Number.isInteger(e.speed)&&(e.speed<75?e.transition="none":e.speed<300?e.transition="slide":e.speed>900?e.transition="slideSlow":e.transition="slide"),delete e.speed,t&&(e.transition="none"===e.transition?e.transition:"fade"),"none"===e.transition?e.duration=0:"slideSlow"===e.transition?e.duration=50:e.duration=20,e.loop=!0,e})(i));let n=C.extend(!0,{},ht,e);var s;return i&&(n.slides=C.extend(!0,{},dt,i)),n.i18n=C.getLanguageOptions(n?.i18n,lt,t),n.i18n=((s=n.i18n).roledescription=(()=>{const e=s.roledescription;return e&&"object"==typeof e&&!Array.isArray(e)?e:{slideshow:e,slide:"slide"}})(),s),C.normalizeOptions(n.i18n,lt.sv),n};class ut{#e;#t;#i;#n;#s;#o;constructor(e,t){this.#e=e,this.#t=t,this.#n=[],h("[data-zoom]",this.#e).forEach(e=>{this.#n.push(this.#r(e))}),this.bindThis(),this.#t.slides||this.#e?.addEventListener("click",this.#a)}#r(e){const t=e.href||e.dataset.href;let i,n;e.href&&!e.href.startsWith("#")&&(e.dataset.href=t,e.href="#0");let s="",o="";return i=e.hasAttribute("alt")||e.dataset.alt?e:e.querySelector("[alt], [data-alt]"),i&&i.dataset.alt?s=i.dataset.alt:i&&i.hasAttribute("alt")&&(s=i.getAttribute("alt")),n=e.dataset.figcaption?e:e.querySelector("figcaption, [data-figcaption]"),n&&n.dataset.figcaption?o=i.dataset.figcaption:n&&"FIGCAPTION"===n.tagName&&(o=n.textContent.trim()),{src:t,alt:s,caption:o}}getImageCount(){return this.#n.length}bindThis(){this.#a=this.#a.bind(this),this.#l=this.#l.bind(this),this.#h=this.#h.bind(this),this.#d=this.#d.bind(this)}loadImage(){const e=d(`.${Me}__image-container`,this.#i),t=d(`.${Me}__panel`,this.#i);e.innerHTML=st.SPINNER;const i=document.createElement("figure");i.classList.add(`${Me}__figure`);const n=new Image,s=this.#n.find(e=>e.src===this.#s);if(s.caption){const e=document.createElement("figcaption");e.classList.add("env-image-viewer-2__lightbox__showOnActive"),e.classList.add("env-text-caption-01"),e.classList.add(`${Me}__caption`),e.textContent=s.caption,i.appendChild(e)}n.onload=()=>{this.#t.buttons.download&&(this.#o.href=n.src),f(t,"background-image",`url('${n.src}')`),e.replaceChildren(i)},n.alt=s.alt,n.classList.add(`${Me}__image`),i.prepend(n),n.src=s.src,this.setVisibleButtons()}createLightbox(){this.#i=c(st.LIGHTBOX);const e=this.#t.buttons.showText;this.#n.length>1&&(this.#i.appendChild(nt({text:this.#t.i18n.prev,icon:qe,className:`${Me}__prev ${Me}__showOnActive`,dataset:{move:"prev"}})),this.#i.appendChild(nt({text:this.#t.i18n.next,icon:ze,className:`${Me}__next ${Me}__showOnActive`,dataset:{move:"next"}}))),this.#i.appendChild(nt({text:this.#t.i18n.close,icon:We,className:`${Me}__close ${e&&He} ${Me}__showOnActive`,dataset:{close:""}})),this.#t.buttons.download&&(this.#o=nt({text:this.#t.i18n.download,icon:Je,className:`${Me}__download ${e&&He} ${Me}__showOnActive`,as:"a"}),this.#o.setAttribute("download",""),this.#o.removeAttribute("type"),this.#i.appendChild(this.#o))}fadeIn(){this.#i.addEventListener("transitionend",e=>{e.currentTarget?.classList.remove(De)},{once:!0}),this.#i.classList.add(Be,De)}showLightbox(){this.#i||(this.createLightbox(),this.bindEvents()),document.body.appendChild(this.#i),this.loadImage(),y(),this.#i.showModal(),this.fadeIn(),this.#t.slides?.auto&&this.#e.dispatchEvent(new Event("pause"))}show(e){((e=e||0)<0||e>this.#n.length-1)&&(e=0),this.#s=this.#n[e].src,this.showLightbox()}#a=e=>{e.preventDefault(),e.target.closest("[data-zoom]")&&e.target.closest("[data-zoom]").dataset.href&&(this.#s=e.target.closest("[data-zoom]").dataset.href,this.showLightbox())};close(){this.#i.addEventListener("transitionend",()=>{this.#i.close(),this.#i.remove(),_()},{once:!0}),this.#i.classList.remove(Be)}getCurrentIndex(){const e=this.#n.findIndex(e=>e.src===this.#s);return e>=0?e:0}goTo(e){this.#s=this.#n[e].src,this.loadImage()}#c(){let e=this.getCurrentIndex();e++,e>=this.#n.length?(e=this.#n.length-1,this.#s=this.#n[e].src):this.goTo(e)}#u=()=>{let e=this.getCurrentIndex();e--,e<0?this.#s=this.#n[0].src:this.goTo(e)};setVisibleButtons(){const e=this.getCurrentIndex(),t=this.#n.length;if(1===t||0===e&&t>1?w(d('[data-move="prev"]',this.#i)):x(d('[data-move="prev"]',this.#i)),1===t||e===t-1&&t>1?w(d('[data-move="next"]',this.#i)):x(d('[data-move="next"]',this.#i)),!I(document.activeElement)){S(this.#i)[0].focus()}}#l=e=>{if(e.target.isEqualNode(e.currentTarget))return void this.close();const t=e.target.closest("button");if(!t)return;let i=this.getCurrentIndex();t.dataset.move&&("prev"===t.dataset.move?i--:i++,i<0&&(i=0),i>=this.#n.length-1&&(i=this.#n.length-1),this.goTo(i)),"close"in t.dataset&&this.close()};#h=e=>
2{if(/input|textarea/i.test(e.target.tagName))return;const t=S(this.#i),i=t[0],n=t[t.length-1];switch(e.key){case"ArrowLeft":e.preventDefault(),this.#u();break;case"ArrowRight":e.preventDefault(),this.#c();break;case"Escape":e.preventDefault(),this.#i.classList.contains(De)||this.close();break;case"Tab":e.shiftKey?e.target===i&&(e.preventDefault(),n.focus()):e.target===n&&(e.preventDefault(),i.focus());break;default:return}};#d=e=>{this.#i.classList.toggle(`${Me}--active`,"mouseleave"!==e.type)};bindEvents(){this.#i.addEventListener("click",this.#l),this.#i.addEventListener("keydown",this.#h),this.#i.addEventListener("mouseenter",this.#d),this.#i.addEventListener("mouseleave",this.#d),this.#i.addEventListener("keydown",this.#d)}}class pt{#e;#i;#t;#p;#g;#v;#m;#f;#b;constructor(e,t,i,[n,s,o,r]){if(this.#e=e,this.#t=t,this.#i=i,!n)return;this.setupSlider(),this.setupSliderControls();const a=[];this.#t.slides.auto&&s instanceof Function&&(this.#g=null,this.#p=this.#t.slides.auto?Re:Ve,a.push(s({delay:this.#t.slides.auto,defaultInteraction:!1}))),this.#t.slides.autoHeight&&o&&a.push(o()),"fade"===this.#t.slides.transition&&r&&a.push(r()),this.setSliderAriaLive(),this.#v=n(this.#f,this.#t.slides,a),this.#t.slides.auto&&this.#y(this.#t.slides.playing?Re:Ve),this.#_(this.#f,0),f(this.#f,"visibility","visible"),this.pause=()=>this.#y(Fe),this.play=()=>this.#y(Re),this.prev=()=>this.#v?.goToPrev?.(),this.next=()=>this.#v?.goToNext?.(),this.goTo=(e,t)=>{Number.isInteger(t)&&(t=t<=0),this.#v?.goTo?.(e,t)},this.getPos=()=>this.#v?.selectedSnap?.()??0}setupSlider(){var e;this.#e.classList.add(Pe),this.#t.slides.transition&&this.#e.classList.add(`${Pe}--transition-${this.#t.slides.transition}`),"SECTION"!==this.#e.tagName&&this.#e.setAttribute("role","region"),this.#e.setAttribute("aria-roledescription",this.#t.i18n.roledescription.slideshow),((e=this.#t.slides.buttons.placement)===Ye||e===Ze)&&(this.#e.classList.add(`${Pe}--overlay`),this.#e.classList.add(`${Pe}--${this.#t.slides.buttons.placement}`)),this.#t.slides.type===et?this.#f=c(ot[et]):this.#f=c(ot[tt]),this.#m=d(`.${Ne}`,this.#f),A(this.#m);const t=this.#e.children.length;for(let e=this.#e.children.length-1;e>=0;e--){const i=u(this.#e.children[e],rt);i.setAttribute("aria-label",`${this.#t.i18n.image} ${e+1} ${this.#t.i18n.of} ${t}`),i.setAttribute("aria-roledescription",this.#t.i18n.roledescription.slide),this.#m.prepend(i)}this.#e.replaceChildren(this.#f),t<=1&&this.#t?.slides?.auto&&(this.#t.slides.auto=!1,this.#t.slides.playing=!1)}getSliderButtonClassNames(){let e=`${Pe}__viewer__controls__button`;return this.#t.slides.buttons?.placement?.startsWith("overlay")||(this.#t.slides.buttons?.type&&(e=`env-button--${this.#t.slides.buttons.type} ${e}`),this.#t.slides.buttons?.ghost&&(e=`env-button--ghost ${e}`)),this.#t.slides.buttons?.size&&(e=`env-button--${this.#t.slides.buttons.size} ${e}`),e}setupSliderControls(){const e=c(at),t=this.getSliderButtonClassNames(),i=this.#t.buttons.showText,n=nt({text:this.#t.i18n.prev,icon:qe,className:`${t} ${i?He:""}`,controls:this.#m.id}),s=nt({text:this.#t.i18n.next,icon:ze,className:`${t} ${i?Ke:""}`,controls:this.#m.id});let o;this.#f.querySelectorAll(`.${je}`)?.length>1&&(e.appendChild(n),e.appendChild(s)),this.#t.slides.auto&&(this.#b=nt({text:`${this.#t.i18n.play} <span class="env-assistive-text">${this.#t.i18n.slideshow}</span>`,icon:Ue,className:`${t} ${i?He:""}`}),this.#f.querySelectorAll(`.${je}`)?.length>1&&e.prepend(this.#b)),this.#t.slides.type===et&&this.#i?.getImageCount()>0&&(o=nt({text:`${this.#t.i18n.zoom} <span class="env-assistive-text">${this.#t.i18n.largeImage}</span>`,icon:Ge,className:`${t} ${i&&He}`}),e.prepend(o)),"top"===this.#t.slides.buttons.placement?this.#e.prepend(e):this.#e.append(e),requestAnimationFrame(()=>{this.bindEvents(n,s,o)})}#y=e=>{const t=this.#v.plugins().autoplay;e===Fe&&this.#p!==Ve?(this.#p=Fe,t?.pause()):e===Ve?(this.#p=Ve,t?.stop()):e===Re&&this.#t.slides.auto&&(this.#p=Re,t?.play()),this.setPlayButton(),this.setSliderAriaLive()};#c=()=>{this.#v.goToNext(),this.#y(Fe)};#u=()=>{this.#v.goToPrev(),this.#y(Fe)};#_(e,t){const i=e.querySelectorAll(`.${je}`)[t];
2S(e).forEach(e=>{const t=e.dataset.envImageViewer2Tabindex||e.getAttribute("tabindex")||"0";"-1"!==t&&e.setAttribute("tabindex","-1"),e.dataset.envImageViewer2Tabindex=t});if(S(i).forEach(e=>{const t=e.dataset.envImageViewer2Tabindex||"0";e.setAttribute("tabindex",t)}),this.#t.slides.type===et){const t=`${i.querySelector("img")?.alt} ${i.textContent.trim()}`;t&&(e.querySelector(`.${Pe}__assistive`).textContent=t)}}setSliderAriaLive(){const e=this.#t.slides.auto&&this.#p===Re?"off":"polite";this.#f.setAttribute("aria-live",e)}setPlayButton(){if(!this.#b)return;const e=this.#b.querySelector("[data-icon]")?.dataset.icon;this.#p===Re&&e!==Qe?this.#b.innerHTML=`${this.#t.i18n.pause} <span class="env-assistive-text">${this.#t.i18n.slideshow}</span>${it(Qe)}`:e!==Ue&&(this.#b.innerHTML=`${this.#t.i18n.play} <span class="env-assistive-text">${this.#t.i18n.slideshow}</span>${it(Ue)}`)}#w=e=>{e.preventDefault(),e.stopPropagation(),this.#p!==Re?this.#y(Re):this.#y(Ve)};#E=e=>{this.#t.slides.draggable?"pointerdown"===e&&this.#p===Re&&this.#y(Fe):"click"===e?(this.#y(Ve),this.#g=e):"mouseenter"===e&&this.#p===Re?(this.#y(Fe),this.#g=e):"mouseleave"===e&&"mouseenter"===this.#g&&this.#p===Fe&&(this.#y(Re),this.#g=e)};#x=()=>{this.#E("click")};#I=(e,t)=>{const i=t?.detail?.interaction;this.#E(i)};#S=e=>{this.#t.slides.auto&&this.#p===Re&&this.#f.contains(e.target)&&this.#y(Fe)};#T=(e,t)=>{this.#_(this.#f,t?.detail?.slidesInView[0]||0)};#A=()=>{this.#i?.show(this.getPos())};bindEvents(e,t,i){this.#b?.addEventListener("click",this.#w),e.addEventListener("click",this.#u),t.addEventListener("click",this.#c),i?.addEventListener("click",this.#A),this.#t.slides.auto&&(this.#f.addEventListener("focus",this.#S,!0),this.#f.addEventListener("click",this.#x,!0),this.#v.on("slidesinview",this.#T),this.#v.on("autoplay:interaction",this.#I))}}const gt="envImageviewer2";class vt{constructor(e,t){if(this.el=e,this.config=t,h("[data-zoom]",this.el).length>0&&(this.lightbox=new ut(this.el,this.config)),this.config.slides){const e={autoPlay:this.config.slides.auto>0,autoHeight:!0===this.config.slides.autoHeight,fade:"fade"===this.config.slides.transition};this.ready=(async(e={})=>{if(!ke){const{default:e}=await o.e(131).then(o.bind(o,3394));ke=e}if(e.autoPlay&&!$e){const{default:e}=await o.e(211).then(o.bind(o,7452));$e=e}if(e.autoHeight&&!Ce){const{default:e}=await o.e(172).then(o.bind(o,4966));Ce=e}if(e.fade&&!Oe){const{default:e}=await o.e(926).then(o.bind(o,6472));Oe=e}return[ke,e.autoPlay?$e:null,e.autoHeight?Ce:null,e.fade?Oe:null]})(e).then(([e,t,i,n])=>(this.slider=new pt(this.el,this.config,this.lightbox,[e,t,i,n]),this))}else this.ready=Promise.resolve(this)}}const mt=async(e,t)=>{const i=h(e);if(i.length>0){const e=i.map(e=>(e[gt]||(e[gt]=new vt(e,ct(t,e))),e[gt]));return await Promise.all(e.map(e=>e.ready)),e.forEach(e=>{delete e.ready}),e}},ft="envRange",bt="env-range";class yt{constructor(e){e.style.setProperty("--rng-js",1),this.#L(e),e.addEventListener("input",()=>{this.#L(e)});const t=e.getAttribute("list"),i=t?document.getElementById(t):null;"DATALIST"===i?.tagName&&this.#k(e,i)}#k(e,t){const i=document.createElement("div");i.className=`${bt}__markers`;const n=Number(e.min||0),s=Number(e.max||100),o=s-n,r=new Set;Array.from(t.options).forEach(e=>{const t=Number(e.value);if(!Number.isFinite(t)||o<=0||t<n||t>s)return;const a=(t-n)/o*100,l=a.toFixed(4);if(r.has(l))return;const h=document.createElement("span");r.add(l),h.dataset.value=String(t),h.style.setProperty("left",`${a}%`),i.appendChild(h)}),i.childElementCount>0&&e.parentNode.insertBefore(i,e.nextSibling)}#L(e){const t=Number(e.min||0),i=Number(e.max||100),n=Number(e.value),s=i>t?Math.round((n-t)/(i-t)*100):0;e.style.setProperty("--rng-progress",`${s}%`)}static _init(){const e=h(`.${bt}[type="range"]`);if(e.length>0)return e.map(e=>(e[ft]||(e[ft]=new yt(e)),e[ft]))}}"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",yt._init);const _t=()=>yt._init(),wt="rangeHandleIndex",Et="envRangeSlider",xt="slide",It="slidestop",St="input",Tt="change",At={min:0,max:100,step:1,values:[0,0],visibleValues:!0};class Lt{constructor(e,t){this.config=C.extend(!0,{},At,t),this.el=e,this.handlesEl=h(".env-range-slider__handle",this.el),this.rangeEl=d(".env-range-slider__range",this.el),this.config.visibleValues&&(this.valueHoldersEl=h(".env-range-slider__values__value",this.el))}initialize(){this._setupHandles(),this._refreshRange(),this._bindEvents()}values(e){if(Array.isArray(e)){for(let t=0;t<e.length;t++)this.config.values[t]=this._trimAlignValue(e[t]);this._refreshRange()}}_setupHandles(){this.handlesEl.forEach((e,t)=>{e.dataset[wt]=t})}_refreshRange(){let e,t,i;this.handlesEl.forEach((n,s)=>{i=this._getValue(s),t=(i-this.config.min)/(this.config.max-this.config.min)*100,f(n,"left",`${t}%`),0===s?f(this.rangeEl,"left",`${t}%`):f(this.rangeEl,"width",t-e+"%"),this.config.visibleValues&&(this.valueHoldersEl[s].innerText=i),e=t})}
2_bindEvents(){this.handlesEl.forEach(e=>{e.removeEventListener("mousedown",this._initSlide),e.removeEventListener("touchstart",this._initSlide),e.removeEventListener("keydown",this._initKeySlide),e.removeEventListener("keyup",this._stopKeySlide),e.addEventListener("mousedown",this._initSlide.bind(this)),e.addEventListener("touchstart",this._initSlide.bind(this)),e.addEventListener("keydown",this._initKeySlide.bind(this)),e.addEventListener("keyup",this._stopKeySlide.bind(this))})}#$(e){const t=e.getBoundingClientRect(),i=document.documentElement;return{top:t.top+window.scrollY-i.clientTop,left:t.left+window.scrollX-i.clientLeft}}_initSlide(e){const t=this._getPosition(e),i=this._normValueFromMouse(t);let n,s,o,r,a=this.config.max-this.config.min+1;if("touchstart"===e.type?(document.addEventListener("touchmove",this._handleSlide.bind(this)),document.addEventListener("touchend",this._stopSlide.bind(this),{once:!0})):(document.addEventListener("mousemove",this._handleSlide.bind(this)),document.addEventListener("mouseup",this._stopSlide.bind(this),{once:!0})),this.handlesEl.forEach((e,t)=>{o=this._getValue(t),r=Math.abs(i-o),(a>r||a===r&&(t===this._lastChangedValue||o===this.config.min))&&(a=r,n=e,s=t)}),this._handleIndex=s,n){n.focus();const o=this.#$(n),r=n.getBoundingClientRect(),a=getComputedStyle(n);this._clickOffset={left:t.x-o.left-r.width/2,top:t.y-o.top-r.height/2-(parseInt(a.borderTopWidth,10)||0)-(parseInt(a.borderBottomWidth,10)||0)+(parseInt(a.marginTop,10)||0)},this._slide(e,s,i)}}_handleSlide(e){const t=this._normValueFromMouse(this._getPosition(e));return this._slide(e,this._handleIndex,t),!1}_slide(e,t,i){const n=this._getValue(t?0:1),s=this._getValue(t),o=this._getValues();i=0===t?Math.min(n,i):Math.max(n,i),o[t]=i,i!==s&&(this._trigger(St,e,{values:o}),this._setValue(t,i))}_stopSlide(e){return document.removeEventListener("mousemove",this._handleSlide),document.removeEventListener("touchmove",this._handleSlide),this._trigger(Tt,e,{values:this._getValues()}),this._handleIndex=null,this._clickOffset=null,!1}_initKeySlide(e){switch(e.key){case"ArrowUp":case"ArrowRight":case"ArrowDown":case"ArrowLeft":e.preventDefault(),this._keySliding||(this._keySliding=!0);break;default:return}const t=parseInt(e.target.dataset[wt],10),i=this._getValue(t);let n;switch(e.key){case"ArrowUp":case"ArrowRight":if(i===this.config.max)return;n=this._trimAlignValue(i+this.config.step);break;case"ArrowDown":case"ArrowLeft":if(i===this.config.min)return;n=this._trimAlignValue(i-this.config.step)}this._slide(e,t,n)}_stopKeySlide(e){this._keySliding&&(this._keySliding=!1,this._trigger(Tt,e,{values:this._getValues()}))}_normValueFromMouse(e){const t=this.el.offsetWidth,i=this.config.max-this.config.min;let n=(e.x-this.#$(this.el).left-(this._clickOffset?this._clickOffset.left:0))/t;n>1&&(n=1),n<0&&(n=0);const s=this.config.min+n*i;return this._trimAlignValue(s)}_getPosition(e){const t={};if(e?.touches){const i=e.touches[0];t.x=i.pageX,t.y=i.pageY}else t.x=e.pageX,t.y=e.pageY;return t}_trimAlignValue(e){if(e<=this.config.min)return this.config.min;if(e>=this.config.max)return this.config.max;const t=this.config.step,i=(e-this.config.min)%t;let n=e-i;return 2*Math.abs(i)>=t&&(n+=i>0?t:-t),parseFloat(n.toFixed(5))}_getValues(){return this.config.values.slice()}_getValue(e){return this.config.values[e]}_setValue(e,t){this.config.values[e]=this._trimAlignValue(t),this._refreshRange()}_trigger(e,t,i){const n=new CustomEvent(e,{bubbles:!1,detail:i});let s;this.el.dispatchEvent(n);const o=l()._data(this.el,"events");e===St?s=xt:e===Tt&&(s=It),o&&(o[xt]||o[It])&&((t=l().Event(t)).type=s,t.target=this.el,l()(this.el).trigger(t,i)),this.config[s]&&this.config[s]instanceof Function&&this.config[s].call(this.el,t,i)}static _init(e,t,...i){const n=h(e);if(n.length>0)return n.map(e=>{if(e[Et]||(e[Et]=new Lt(e,t),e[Et].initialize()),"string"==typeof t){if(!e[Et][t])throw new Error(`No method named "${t}"`);e[Et][t].call(e[Et],...i)}return e[Et]})}static _jQueryInterface(e,...t){return C.consoleWarning("jQuery",Et),this.each(()=>{h(this).forEach(i=>{Lt._init(i,e,...t)})})}}if("undefined"!=typeof document){const e=l().fn[Et];
2l().fn[Et]=Lt._jQueryInterface,l().fn[Et].Constructor=Lt,l().fn[Et].noConflict=()=>(l().fn[Et]=e,Lt._jQueryInterface)}const kt=async(e,t)=>Lt._init(e,t);o(2234);const $t={reflow:e=>e.offsetHeight,getToggleSpeed(e,t){let i,n=300;return i=e?getComputedStyle(e).getPropertyValue(t):getComputedStyle(document.documentElement).getPropertyValue(t),i&&parseFloat(i)>0&&(i.includes("ms")?n=parseInt(i,10):i.includes("s")&&(n=1e3*parseFloat(i))),n}},Ct="env-dialog--fade",Ot="env-dialog--in";class Pt{#C;#O;#P;#D;constructor(e,t){this.options=t,this.#O||(this._bindThis(),this.el=e,this.el.classList.add(Ct),this.el.classList.remove(Ot),"body"===this.options.placement&&(this.#D=document.createElement("span"),this.#D.dataset.envDialogPlaceholder=""),t.opener&&(this.#C=h(t.opener),this._bindOpenEvent()),this.#O=!0)}_bindThis(){this.show=this.show.bind(this),this.close=this.close.bind(this),this.#a=this.#a.bind(this)}_fadeIn(){this.el.classList.add(Ot)}_bindModalEvents(){this.el.addEventListener("close",this.close),this.el.addEventListener("click",this.#a,{capture:!1}),this.el.addEventListener("keydown",this.#h),this.#P=!0}_bindOpenEvent(){this.#C.map(e=>{e.addEventListener("click",this.show)},this)}#h=e=>{if(/input|textarea/i.test(e.target.tagName))return;const t=S(this.el),i=t[0],n=t[t.length-1];"Escape"===e.key&&"alertdialog"===this.el.getAttribute("role")?e.preventDefault():"Tab"===e.key&&(e.shiftKey?e.target===i&&(e.preventDefault(),n.focus()):e.target===n&&(e.preventDefault(),i.focus()))};#a=e=>{this.options.backdropClick&&e.target.isEqualNode(this.el)&&"alertdialog"!==this.el.getAttribute("role")&&this.close()};show(e){e&&e.preventDefault(),"body"===this.options.placement&&(this.el.after(this.#D),document.body.append(this.el)),y(),this.el.showModal(),this._fadeIn(),this.#P||this._bindModalEvents()}close(){this.el.classList.contains(Ot)&&(this.el.classList.remove(Ot),this.el.close(),"body"===this.options.placement&&(this.#D.after(this.el),this.#D.remove()),_())}}const Dt={opener:null,backdropClick:!0,placement:null},jt="env-animation-in-progress",Nt="env-modal-dialog__backdrop--in",Mt="[data-modal-dialog-dismiss]",Bt="focusin.env-modal-dialog",Ht="envDialog",Kt="[data-modal-dialog]",Vt="[data-modal-alert]",Ft="show",Rt="hide.env-modal-dialog",Ut="hidden.env-modal-dialog",Qt="show.env-modal-dialog",qt="shown.env-modal-dialog";class zt{constructor(e){this.$el=l()(e),this.el=this.$el.get(0),this.$body=l()(document.body),this.$placeholder=l()("<span />"),this._isShown=!1,this.placementBody=this.el.hasAttribute("data-modal-dialog-placement-body"),this.$el.after(this.$placeholder)}toggle(){return this._isShown?this.hide():this.show()}show(){if(this._isShown)return;$t.reflow(this.el);const e=l().Event(Qt,{});y(),this.placementBody&&this.$body.append(this.$el),this.$el.trigger(e);const t=l().Event(qt,{});this.$el.one("transitionend",()=>{this.$el.trigger(t)}).addClass(this._getModifierBase()+Ft).removeAttr("aria-hidden").css("opacity",1),this._showBackdrop(),this._isShown=!0,this.$el.trigger("focus"),this._bindEvents()}hide(){if(!this._isShown)return;const e=l().Event(Rt,{});this.$el.trigger(e),this.$el.one("transitionend",()=>{this.$el.removeClass(this._getModifierBase()+Ft);const e=l().Event(Ut,{});this.$el.trigger(e)}).attr("aria-hidden","true").css("opacity",0).off("click",Mt),this.$backdrop.one("transitionend",()=>{this.$backdrop.remove(),_(),this.placementBody&&this.$placeholder.before(this.$el)}).removeClass(Nt),this._isShown=!1,this._unbindEvents()}_bindEvents(){this.$el.on("click",Mt,e=>this.hide(e)),l()(document).off(Bt).one(Bt,e=>{document===e.target||this.el===e.target||this.$el.has(e.target).length||this.$el.trigger("focus")});const e=this.$el.find('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]'),t=e[0],i=e[e.length-1];this.$el.on("keydown",e=>{"Tab"===e.key&&(e.shiftKey?e.target===t&&(e.preventDefault(),i.focus()):e.target===i&&(e.preventDefault(),t.focus())),"Escape"===e.key&&this.hide()})}_getModifierBase(){return this.$el.hasClass("env-modal-alert")?"env-modal-alert--":"env-modal-dialog--"}
2_unbindEvents(){this.$el.off("click keydown"),l()(document).off(Bt)}_showBackdrop(){this.$backdrop=l()("<div/>",{class:"env-modal-dialog__backdrop"}),this.$el.on("click",e=>{this.$backdrop.hasClass(jt)||e.target===e.currentTarget&&this._isShown&&this.hide()}),this.$backdrop.appendTo(document.body),this.$backdrop.one("animationend",this._removeBackdropAnimation).addClass(`${Nt} ${jt}`)}_removeBackdropAnimation(e){l()(e.currentTarget).removeClass(jt)}static _init(e,t){const i=h(e);if(i.length>0)return i.map(e=>{if("DIALOG"===e.tagName&&e.classList.contains("env-dialog"))return e[Ht]||(e[Ht]=new Pt(e,(e=>(e=C.normalizeOptions(e,Dt),C.extend(!0,{},Dt,e)))(t))),e[Ht];if(e[Ht]||(e[Ht]=new zt(e)),"string"==typeof t){if(!e[Ht][t])throw new Error(`No method named "${t}"`);e[Ht][t].call(e[Ht])}return e[Ht]})}static _jQueryInterface(e){return C.consoleWarning("jQuery",Ht),this.each(()=>{h(this).forEach(t=>{zt._init(t,e)})})}}if("undefined"!=typeof document){const e=l().fn[Ht];l().fn[Ht]=zt._jQueryInterface,l().fn[Ht].Constructor=zt,l().fn[Ht].noConflict=()=>(l().fn[Ht]=e,zt._jQueryInterface),document.addEventListener("click",e=>{const t=e.target.closest(Vt+","+Kt);if(!t)return;e.preventDefault();const i=t.dataset.target;zt._init(document.querySelector(i),"show")})}const Wt=async(e,t)=>zt._init(e,t),Gt="envImageslider",Jt={sv:{prev:"Föregående",next:"Nästa"},en:{prev:"Previous",next:"Next"}},Xt={buttons:!0,imageSlider:!1,interval:5e3,keyboard:!0,pause:"hover",slide:!1,swipe:!0,wrap:!0},Yt={ACTIVE:".env-image-slider__item--active",ACTIVE__CHILD:".env-image-slider__item--active > *",ACTIVE_DOT:".env-is-active",ACTIVE_ITEM:".env-image-slider__item--active.env-image-slider__item",DATA_SLIDE:"[data-move], [data-move-to]",SLIDER_DATA_ATTRIBUTE:"[data-image-slider]",INDICATORS:".env-image-slider__indicators",INDICATOR_ITEMS:".env-image-slider__indicators > *",INNER:".env-image-slider__inner",NEXT_PREV:".env-image-slider--next, .env-image-slider--prev",ITEM:".env-image-slider__item",THUMBNAILS:".env-image-slider__thumbnails",THUMBNAIL__ITEMS:".env-image-slider__thumbnails > *"},Zt="env-image-slider__item--active",ei="env-is-active",ti="env-image-slider__item--left",ii="env-image-slider__item--next",ni="env-image-slider__item--prev",si="env-image-slider__item--right",oi="env-image-slider--slide",ri="left",ai="next",li="prev",hi="right",di={KEYDOWN:"keydown",MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",SLID:"slid",SLIDE:"slide",JQSLID:"slid.env.image-slider",JQSLIDE:"slide.env.image-slider",TOUCHEND:"touchend",TOUCHMOVE:"touchmove",TOUCHSTART:"touchstart"};class ci{#n;#j;#N;#M;#B;#H;#t;constructor(e,t){this.el=e,this.isPaused=!1,this.#n=h(Yt.ITEM,this.el),this.#j=d(Yt.INDICATORS,this.el),this.#N=d(Yt.THUMBNAILS,this.el),this.#B=!1,this.#M=null,this.#H=null,void 0===this.el.dataset.imageSlider&&this.el.setAttribute("data-image-slider",""),this.settings(t),this.#n.length>1&&t.buttons&&this._addSlideButtons(),this.#n.forEach((e,t)=>{e.setAttribute("data-env-imageslider-index",t)}),this._bindEvents()}next(){this.#B||this._slide(ai)}prev(){this.#B||this._slide(li)}nextWhenVisible(){document.hidden||this.next()}pause(e){e||(this.isPaused=!0),clearInterval(this.#M),this.#M=null}cycle(e){e||(this.isPaused=!1),this.#M&&(clearInterval(this.#M),this.#M=null),this.#t.interval&&!this.isPaused&&(this.#M=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this.#t.interval))}goTo(e){this.#H=d(Yt.ACTIVE_ITEM,this.el);const t=this._getItemIndex(this.#H);if(e>this.#n.length-1||e<0)return;if(this.#B)return;if(t===e)return this.pause(),void this.cycle();const i=e>t?ai:li;this._slide(i,this.#n[e])}startTouchSlide(e){this.touchstartx=e.touches[0].pageX}moveTouchSlide(e){this.touchmovex=e.touches[0].pageX,this.movex=-(this.touchstartx-this.touchmovex),this.moved=!1;const t=d(Yt.ACTIVE__CHILD,this.el);f(t,"transform",`translate3d(${this.movex}px, 0, 0)`),this.movex>80?(this.prev(),this.moved=!0,setTimeout(()=>{f(t,"transform","translate3d(0, 0, 0)")},500)):this.movex<-80&&(this.next(),this.moved=!0,setTimeout(()=>{f(t,"transform","translate3d(0, 0, 0)")},500))}endTouchSlide(){this.moved||f(d(Yt.ACTIVE__CHILD,this.el),"transform","translate3d(0, 0, 0)")}dispose(){this.el=this.el.cloneNode(!0),delete this.el[Gt],delete this.el.envImagesliderJQ,this.el=null,this.#n=null,this.#M=null,this.isPaused=null,this.#B=null,this.#H=null,this.#j=null,this.#N=null}settings(e){this.#t=C.extend({},Xt,this.el.dataset,C.isPlainObject(this.#t)?this.#t:{},e)}
2_addSlideButtons(){const e=this.el.id,t=d(Yt.INNER,this.el),i=document.createElement("button");b(i,{type:"button",class:"env-image-slider--prev","data-move":"prev","data-target":`#${e}`}),i.innerHTML=`<svg class="env-image-slider__previous-icon env-icon env-icon-small">\n <use href="/sitevision/envision-icons.svg#icon-arrow-left"></use></svg>\n <span class="env-assistive-text">${this.#t.i18n.prev}</span>`;const n=document.createElement("button");b(n,{type:"button",class:"env-image-slider--next","data-move":"next","data-target":`#${e}`}),n.innerHTML=`<svg class="env-image-slider__previous-icon env-icon env-icon-small">\n <use href="/sitevision/envision-icons.svg#icon-arrow-right"></use></svg>\n <span class="env-assistive-text">${this.#t.i18n.next}</span>`,t.appendChild(i),t.appendChild(n)}_getItemByDirection(e,t){const i=e===ai,n=this._getItemIndex(t),s=this.#n.length-1;if((!i&&0===n||i&&n===s)&&!this.#t.wrap)return t;const o=(n+(i?1:-1))%this.#n.length;return-1===o?this.#n[s]:this.#n[o]}_bindEvents(){this.el.addEventListener("click",e=>this._click(e)),this.#t.keyboard&&this.el.addEventListener(di.KEYDOWN,e=>this._keydown(e)),"hover"===this.#t.pause&&"cycle"===this.#t.imageSlider&&(this.el.addEventListener(di.MOUSEENTER,e=>this.pause(e)),this.el.addEventListener(di.MOUSELEAVE,e=>this.cycle(e)),this.el.addEventListener(di.TOUCHEND,()=>{this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(e=>this.cycle(e),500,this.#t.interval)})),this.#t.swipe&&this._bindTouchSlider()}_bindTouchSlider(){const e=d(Yt.INNER,this.el);e.addEventListener(di.TOUCHSTART,e=>{this.startTouchSlide(e)}),e.addEventListener(di.TOUCHMOVE,e=>{this.moveTouchSlide(e)}),e.addEventListener(di.TOUCHEND,e=>{this.endTouchSlide(e)})}_keydown(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.key){case"ArrowLeft":e.preventDefault(),this.prev();break;case"ArrowRight":e.preventDefault(),this.next();break;default:return}}_click(e){const t=e.target.closest(Yt.DATA_SLIDE);if(!t)return;let i=t.dataset;if(!i.target||!document.querySelector(i.target))return;const n=document.querySelector(i.target);if(n&&void 0!==n.dataset.imageSlider){if(i.moveTo){const e=parseInt(i.moveTo,10);this.settings({interval:!1}),this.goTo(e)}else i.move!==li&&i.move!==ai||this[i.move]();e.preventDefault()}}_getItemIndex(e){return parseInt(e.dataset.envImagesliderIndex,10)}_triggerSlideEvent(e,t){const i=this._getItemIndex(e),n=this._getItemIndex(d(Yt.ACTIVE_ITEM,this.el));let s;return this.el.envImagesliderJQ?(s=l().Event(di.JQSLIDE,{targetElement:e,direction:t,from:n,to:i}),l()(this.el).trigger(s),s.defaultPrevented=s.isDefaultPrevented()):(s=new CustomEvent(di.SLIDE,{bubbles:!0,cancelable:!0,detail:{direction:t,from:n,to:i}}),e.dispatchEvent(s)),s}_setActiveIndicatorElement(e){if(this.#j){const t=d(Yt.ACTIVE_DOT,this.#j),i=h(Yt.INDICATOR_ITEMS,this.#j)[this._getItemIndex(e)];t&&t.classList.remove(ei),i&&i.classList.add(ei)}else if(this.#N){const t=d(Yt.ACTIVE,this.#N),i=h(Yt.ACTIVE,this.#N)[this._getItemIndex(e)];t&&t.classList.remove(Zt),i&&i.classList.add(Zt)}}_slide(e,t){const i=d(Yt.ACTIVE_ITEM,this.el),n=this._getItemIndex(i),s=d(t||i&&this._getItemByDirection(e,i)),o=this._getItemIndex(s);let r,a,h;if(e===ai?(r=ti,a=ii,h=ri):(r=si,a=ni,h=hi),s&&s.classList.contains(Zt))return void(this.#B=!1);const c=this._triggerSlideEvent(s,h);if(c.defaultPrevented)return;if(!i||!s)return;let u;this.#B=!0,this._setActiveIndicatorElement(s),this.el.envImagesliderJQ?(u=l().Event(di.JQSLID,{relatedTarget:s,direction:h,from:n,to:o}),u.defaultPrevented=c.isDefaultPrevented()):u=new CustomEvent(di.SLID,{bubbles:!0,cancelable:!0,detail:{relatedTarget:s,direction:h,from:n,to:o}}),this.el.classList.contains(oi)?(s.classList.add(a),$t.reflow(s),i.classList.add(r),s.classList.add(r),i.addEventListener("transitionend",()=>{s.classList.remove(r,a),s.classList.add(Zt),i.classList.remove(Zt,a,r),this.#B=!1,this.el.envImagesliderJQ?l()(this.el).trigger(u):this.el.dispatchEvent(u)},{once:!0})):(i.classList.remove(Zt),s.classList.add(Zt),this.#B=!1,this.el.envImagesliderJQ?l()(this.el).trigger(c):this.el.dispatchEvent(c))}static _init(e,t,i){C.consoleWarning("component","Image slider","image-slider","Image viewer 2");const n=h(e);if(n.length>0)return n.map(e=>{let n;A(e),n="object"==typeof t?{...Xt,...e.dataset,...t,i18n:C.getLanguageOptions(t?.i18n,Jt,e)}
2:{...Xt,...e.dataset,i18n:C.getLanguageOptions({},Jt,e)},e[Gt]?e[Gt].settings(C.extend({},{...e.dataset,...t})):(e.envImagesliderJQ=i,e[Gt]=new ci(e,n));const s="string"==typeof t?t:n.move;if("number"==typeof t)e[Gt].goTo(t);else if("string"==typeof s){if(void 0===e[Gt][s])throw new Error(`No method named "${s}"`);e[Gt][s]()}return n.interval&&"cycle"===n.imageSlider&&(e[Gt].pause(),e[Gt].cycle()),e[Gt]})}static _jQueryInterface(e){return this.each(()=>{h(this).forEach(t=>{ci._init(t,e,!0)})})}}if("undefined"!=typeof document){window.addEventListener("load",()=>{const e=h(Yt.SLIDER_DATA_ATTRIBUTE);e.length>0&&ci._init(e)});const e=l().fn[Gt];l().fn[Gt]=ci._jQueryInterface,l().fn[Gt].Constructor=ci,l().fn[Gt].noConflict=()=>(l().fn[Gt]=e,ci._jQueryInterface)}const ui=async(e,t)=>ci._init(e,t),pi=["padding-top","padding-bottom","margin-top","margin-bottom"],gi=["height","overflow","transition-duration","transition-property"].concat(pi),vi=(e,t)=>{(t=t||gi).forEach(t=>{e.style.removeProperty(t)})},mi=e=>{e.style.setProperty("overflow","hidden"),pi.concat("height").forEach(t=>{e.style.setProperty(t,0)})},fi=(e,t)=>{t=Object.assign({duration:300},t),e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t.duration+"ms";const i=getComputedStyle(e);if("border-box"===i.boxSizing)e.style.height=e.offsetHeight+"px";else{const t=parseFloat(i.paddingTop),n=parseFloat(i.paddingBottom),s=parseFloat(i.borderTopWidth),o=parseFloat(i.borderBottomWidth);e.style.height=e.offsetHeight-t-n-s-o+"px"}return e.offsetHeight,mi(e),window.setTimeout(()=>{e.style.display="none",vi(e),t.complete&&t.complete instanceof Function&&t.complete.call()},t.duration)},bi=(e,t)=>{t=Object.assign({duration:300},t),e.style.removeProperty("display");let i=window.getComputedStyle(e).display;"none"===i&&(i="block"),e.style.display=i;let n=e.offsetHeight;return mi(e),e.offsetHeight,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t.duration+"ms",e.style.height=n+"px",vi(e,pi),window.setTimeout(()=>{vi(e),t.complete&&t.complete instanceof Function&&t.complete.call()},t.duration)},yi="aria-controls",_i="aria-expanded",wi="data-expanded",Ei="envAccordion",xi="env-accordion--show",Ii="[data-env-accordion]";class Si{#K;constructor(e,t){this.el=e,this.parentEl=d(this.el.dataset.parent),this.togglerEl=t||this.parentEl&&d(`${Ii}[${yi}="${this.el.id}"]`,this.parentEl),this.el.classList.contains(xi)?(this.el.classList.remove(xi),this.el.setAttribute(wi,"true"),E(this.el),this.togglerEl&&this.togglerEl.setAttribute(_i,"true")):this.togglerEl&&this.togglerEl.setAttribute(_i,"false"),this.el.removeAttribute(_i),this.speed=$t.getToggleSpeed(this.el,"--env-collapse-toggle-duration")}toggle(){"true"===this.el.getAttribute(wi)?this.hide():this.show()}show(){this.#K||(this.parentEl&&h(`[${wi}="true"], .${xi}`,this.parentEl).forEach(e=>{if(!e.isEqualNode(this.el)){const t=d(`${Ii}[${yi}="${e.id}"]`,this.parentEl);this._hide(e,t,this.speed,!0)}}),this.#K=!0,bi(this.el,{duration:this.speed,complete:()=>{this.togglerEl&&this.togglerEl.setAttribute(_i,"true"),this.el.setAttribute(wi,"true"),this.#K=!1}}))}hide(){this.#K||this._hide(this.el,this.togglerEl,this.speed)}_hide(e,t,i,n){n||(this.#K=!0),fi(e,{duration:i,complete:()=>{t&&t.setAttribute(_i,"false"),e.setAttribute(wi,"false"),e.classList.remove(xi),n||(this.#K=!1)}})}static _init(e,t){const i=h(e);if(i.length>0)return i.map(e=>{if(e[Ei]||(t instanceof Element?e[Ei]=new Si(e,t):e[Ei]=new Si(e)),"string"==typeof t){if(!e[Ei][t])throw new Error(`No method named "${t}"`);e[Ei][t].call(e[Ei])}else e[Ei].toggle.call(e[Ei]);return e[Ei]})}static _jQueryInterface(e){return C.consoleWarning("jQuery",Ei),this.each(()=>{h(this).forEach(t=>{Si._init(t,e)})})}}if("undefined"!=typeof document){const e=l().fn[Ei];l().fn[Ei]=Si._jQueryInterface,l().fn[Ei].Constructor=Si,l().fn[Ei].noConflict=()=>(l().fn[Ei]=e,Si._jQueryInterface),document.addEventListener("click",e=>{const t=e.target.closest(Ii);if(!t)return;e.preventDefault();const i=t.dataset.target||t.getAttribute("href");Si._init(document.querySelector(i),t)})}const Ti=async(e,t)=>Si._init(e,t),Ai="envCollapse",Li=".env-collapse",ki="env-collapse--show",$i="[data-env-collapse]";class Ci{constructor(e,t){this.el=e,this.togglerEl=t||d(`${$i}[href="#${e.id}"], ${$i}[data-target="#${e.id}"]`),this.el.classList.contains(ki)&&(this.setExpanded(!0),E(this.el)),this.speed=$t.getToggleSpeed(this.togglerEl,"--env-collapse-toggle-duration"),this.handleTogglerClick=this.handleTogglerClick.bind(this),this.handleTogglerKeyDown=this.handleTogglerKeyDown.bind(this),this.togglerEl&&(this.togglerEl[Ai]=this,this.togglerEl.addEventListener("click",this.handleTogglerClick),this.togglerEl.addEventListener("keydown",this.handleTogglerKeyDown))}handleTogglerClick(e){e.preventDefault(),this.toggle()}handleTogglerKeyDown(e){" "===e.key&&"BUTTON"!==e.currentTarget.tagName&&(e.preventDefault(),this.toggle())}toggle(){this.el.classList.contains(ki)?this.hide():this.show()}setExpanded(e){this.togglerEl&&(this.togglerEl.classList.toggle("env-collapse--expanded",e),this.togglerEl.setAttribute("aria-expanded",`${e}`))}showImmediately(){var e,t;this.toggleTimer&&(this.toggleTimer=(e=this.el,(t=this.toggleTimer)&&window.clearTimeout(t),vi(e),null)),this.setExpanded(!0),this.el.classList.add(ki),E(this.el)}show(){this.el.classList.contains(ki)||this.el.getAnimations().length>0||(this.setExpanded(!0),this.el.classList.add(ki),this.toggleTimer=bi(this.el,{duration:this.speed,complete:()=>{this.toggleTimer=null}}))}hide(){!this.el.classList.contains(ki)||this.el.getAnimations().length>0||(this.setExpanded(!1),this.toggleTimer=fi(this.el,{duration:this.speed,complete:()=>{this.toggleTimer=null,this.el.classList.remove(ki)}}))}static _getOrCreate(e,t){return e[Ai]||(e[Ai]=new Ci(e,t)),e[Ai]}static _init(e,t){const i=h(e);if(i.length>0)return i.map(e=>{const i=Ci._getOrCreate(e);
2if("string"==typeof t){if(!i[t])throw new Error(`No method named "${t}"`);i[t].call(i)}return i})}static _jQueryInterface(e){return C.consoleWarning("jQuery",Ai),this.each(()=>{h(this).forEach(t=>{Ci._init(t,e)})})}}const Oi=e=>{const t=e.dataset.target||e.getAttribute("href");return t?document.querySelector(t):null},Pi=e=>{const t="string"==typeof e&&e.length>1&&e.startsWith("#")?e.slice(1):null;if(!t)return null;const i=document.getElementById(t);if(i)return i;try{return document.getElementById(decodeURIComponent(t))}catch{return null}},Di=e=>{const t=(e=>{const t=[];let i=e.closest(Li);for(;i;)t.unshift(i),i=i.parentElement?.closest(Li);return t})(e);t.length>0&&(t.forEach(e=>{Ci._getOrCreate(e).showImmediately()}),requestAnimationFrame(()=>{e.scrollIntoView({behavior:"auto",block:"start",inline:"nearest"})}))};if("undefined"!=typeof document){const e=l().fn[Ai];l().fn[Ai]=Ci._jQueryInterface,l().fn[Ai].Constructor=Ci,l().fn[Ai].noConflict=()=>(l().fn[Ai]=e,Ci._jQueryInterface),document.addEventListener("focusin",e=>{const t=e.target.closest($i);if(t&&!t[Ai]){const e=Oi(t);e&&Ci._getOrCreate(e,t)}}),document.addEventListener("click",e=>{const t=e.target.closest($i);if(t){if(e.preventDefault(),!t[Ai]){const e=Oi(t);e&&Ci._getOrCreate(e,t).toggle()}return}const i=(e=>{const t=e.target.closest("a[href]");if(!t||e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||t.target&&"_self"!==t.target)return null;const i=new URL(t.href);return i.origin!==window.location.origin||i.pathname!==window.location.pathname||i.search!==window.location.search?null:i.hash})(e),n=i?Pi(i):null;n?.closest(Li)&&(e.preventDefault(),window.location.hash!==i&&history.pushState(null,"",i),Di(n))}),document.addEventListener("DOMContentLoaded",()=>{const e=Pi(window.location.hash);e?.closest(Li)&&Di(e)})}const ji=async(e,t)=>Ci._init(e,t),Ni="[data-dropdown]",Mi="target",Bi="envDropdownIndex",Hi="envDropdown";class Ki{constructor(e,t,i){this.button=i,this.container=e,this.placeholder=document.createElement("span"),this.menu=t,this.menuitems=h(".env-dropdown__item",this.menu),A(this.button),A(this.menu),this.button.hasAttribute("aria-haspopup")||this.button.setAttribute("aria-haspopup","true"),this.button.setAttribute("aria-controls",this.menu.id),this.menu.insertAdjacentElement("beforebegin",this.placeholder),this.menu.setAttribute("aria-labelledby",this.button.id),this.menu.setAttribute("role","menu"),this.menuitems.forEach((e,t)=>{const i=e.closest("li");e.dataset[Bi]=t,e.setAttribute("role","menuitem"),e!==i&&this.menu.contains(e.closest("li"))&&i.setAttribute("role","none")}),this.openInBody="body"===this.button.dataset.container||void 0!==this.button.dataset.dropdownPlacementBody,this.handleButtonClick=this.handleButtonClick.bind(this),this.handleButtonKeyDown=this.handleButtonKeyDown.bind(this),this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this),this.handleOutsideKeyUp=this.handleOutsideKeyUp.bind(this),this._bindEventsOnInit()}handleButtonClick(){"true"===this.button.getAttribute("aria-expanded")?this.hide():this.show()}handleButtonKeyDown(e){"ArrowDown"!==e.key&&"ArrowUp"!==e.key&&" "!==e.key||(e.preventDefault(),this.show("ArrowUp"===e.key?this.menuitems.length-1:0))}show(e){e=e||0,this.button.setAttribute("aria-expanded","true"),this.openInBody&&document.body.appendChild(this.menu),E(this.menu),this._bindMenuEvents(),k().then(t=>{const i="end"===this.button.dataset.placement,n=i?"bottom-end":"bottom-start";this._popper=t(i?this.button:this.container,this.menu,{placement:n,modifiers:{name:"flip",enabled:!1}}),this._popper.update(),setTimeout(()=>{this.menuitems[e].focus()},1)})}hide(){this.button.setAttribute("aria-expanded","false"),this._unbindMenuEvents(),w(this.menu),this.openInBody&&this.placeholder.insertAdjacentElement("afterend",this.menu)}_bindEventsOnInit(){this.button.addEventListener("click",this.handleButtonClick),this.button.addEventListener("keydown",this.handleButtonKeyDown)}_bindMenuEvents(){this._unbindMenuEvents(),document.addEventListener("click",this.handleOutsideClick),document.addEventListener("keydown",this.handleMenuKeyDown),document.addEventListener("keyup",this.handleOutsideKeyUp)}_unbindMenuEvents(){document.removeEventListener("click",this.handleOutsideClick),document.removeEventListener("keydown",this.handleMenuKeyDown),document.removeEventListener("keyup",this.handleOutsideKeyUp)}handleOutsideClick(e){const t=e.target;this.button.contains(t)||this.menu.contains(t)||this.hide()}handleOutsideKeyUp(e){const t=e.target;this.button.contains(t)||this.menu.contains(t)||this.hide()}handleMenuKeyDown(e){const t=e.target,i=this.menuitems.length;if("Escape"===e.key)this.hide(),this.button.focus();else if(this.menu.contains(t)&&i>0){const i=parseInt(t.dataset[Bi],10);if(" "===e.key&&"BUTTON"!==t.tagName){e.preventDefault();const i=t.closest("[role=menuitem]");i&&i.click()}else if("Tab"===e.key){if(e.shiftKey)e.preventDefault(),this.button.focus();else if(this.openInBody){e.preventDefault();T(this.button).focus()}this.hide()}else if("Home"===e.key)e.preventDefault(),this.menuitems[0].focus();else if("End"===e.key)e.preventDefault(),this.menuitems[this.menuitems.length-1].focus();else if("ArrowUp"===e.key){e.preventDefault();const t=i>0?i-1:this.menuitems.length-1;this.menuitems[t].focus()}else if("ArrowDown"===e.key){e.preventDefault();const t=i<this.menuitems.length-1?i+1:0;this.menuitems[t].focus()}}}}const Vi=async(e,t)=>{const i="DOMContentLoaded"===e.type&&t?t:e.target.closest(Ni);if(i&&!i[Hi]){let t=i.dataset[Mi]&&i.closest(i.dataset[Mi]);t||(t=i.parentNode),i[Hi]=!0;const n=t.querySelector(".env-dropdown__menu");n&&(await k(),i[Hi]=new Ki(t,n,i),n.dataset.envDropdown="true",w(n),"click"===e.type&&i[Hi].handleButtonClick())}};document&&(document.addEventListener("focusin",Vi),document.addEventListener("click",Vi),document.addEventListener("DOMContentLoaded",e=>
2{document.body.querySelectorAll(Ni).forEach(t=>{Vi(e,t)})}));return r})()); 3//# sourceMappingURL=envision.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.