!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).OneLogin={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var o=n((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},t.apply(this,arguments)}e.exports=t})),r=function(e){return e&&e.Math==Math&&e},i=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")(),l=function(e){try{return!!e()}catch(e){return!0}},a=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u={f:c&&!s.call({1:2},1)?function(e){var t=c(this,e);return!!t&&t.enumerable}:s},d=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},f={}.toString,p="".split,_=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==function(e){return f.call(e).slice(8,-1)}(e)?p.call(e,""):Object(e)}:Object,v=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},m=function(e){return _(v(e))},h=function(e){return"object"==typeof e?null!==e:"function"==typeof e},g=function(e,t){if(!h(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!h(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!h(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!h(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,w=function(e,t){return y.call(e,t)},b=i.document,x=h(b)&&h(b.createElement),E=function(e){return x?b.createElement(e):{}},L=!a&&!l((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),S=Object.getOwnPropertyDescriptor,k={f:a?S:function(e,t){if(e=m(e),t=g(t,!0),L)try{return S(e,t)}catch(e){}if(w(e,t))return d(!u.f.call(e,t),e[t])}},O=function(e){if(!h(e))throw TypeError(String(e)+" is not an object");return e},C=Object.defineProperty,j={f:a?C:function(e,t,n){if(O(e),t=g(t,!0),O(n),L)try{return C(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},P=a?function(e,t,n){return j.f(e,t,d(1,n))}:function(e,t,n){return e[t]=n,e},T=function(e,t){try{P(i,e,t)}catch(n){i[e]=t}return t},U="__core-js_shared__",B=i[U]||T(U,{}),z=Function.toString;"function"!=typeof B.inspectSource&&(B.inspectSource=function(e){return z.call(e)});var A,I,M,R=B.inspectSource,q=i.WeakMap,D="function"==typeof q&&/native code/.test(R(q)),W=n((function(e){(e.exports=function(e,t){return B[e]||(B[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),N=0,F=Math.random(),G=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++N+F).toString(36)},H=W("keys"),K=function(e){return H[e]||(H[e]=G(e))},J={},V=i.WeakMap;if(D){var Z=new V,Q=Z.get,X=Z.has,Y=Z.set;A=function(e,t){return Y.call(Z,e,t),t},I=function(e){return Q.call(Z,e)||{}},M=function(e){return X.call(Z,e)}}else{var $=K("state");J[$]=!0,A=function(e,t){return P(e,$,t),t},I=function(e){return w(e,$)?e[$]:{}},M=function(e){return w(e,$)}}var ee,te={set:A,get:I,has:M,enforce:function(e){return M(e)?I(e):A(e,{})},getterFor:function(e){return function(t){var n;if(!h(t)||(n=I(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ne=n((function(e){var t=te.get,n=te.enforce,o=String(String).split("String");(e.exports=function(e,t,r,l){var a=!!l&&!!l.unsafe,s=!!l&&!!l.enumerable,c=!!l&&!!l.noTargetGet;"function"==typeof r&&("string"!=typeof t||w(r,"name")||P(r,"name",t),n(r).source=o.join("string"==typeof t?t:"")),e!==i?(a?!c&&e[t]&&(s=!0):delete e[t],s?e[t]=r:P(e,t,r)):s?e[t]=r:T(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||R(this)}))})),oe=i,re=function(e){return"function"==typeof e?e:void 0},ie=function(e,t){return arguments.length<2?re(oe[e])||re(i[e]):oe[e]&&oe[e][t]||i[e]&&i[e][t]},le=Math.ceil,ae=Math.floor,se=function(e){return isNaN(e=+e)?0:(e>0?ae:le)(e)},ce=Math.min,ue=function(e){return e>0?ce(se(e),9007199254740991):0},de=Math.max,fe=Math.min,pe=function(e,t){var n=se(e);return n<0?de(n+t,0):fe(n,t)},_e=function(e){return function(t,n,o){var r,i=m(t),l=ue(i.length),a=pe(o,l);if(e&&n!=n){for(;l>a;)if((r=i[a++])!=r)return!0}else for(;l>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},ve={includes:_e(!0),indexOf:_e(!1)}.indexOf,me=function(e,t){var n,o=m(e),r=0,i=[];for(n in o)!w(J,n)&&w(o,n)&&i.push(n);for(;t.length>r;)w(o,n=t[r++])&&(~ve(i,n)||i.push(n));return i},he=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ge=he.concat("length","prototype"),ye={f:Object.getOwnPropertyNames||function(e){return me(e,ge)}},we={f:Object.getOwnPropertySymbols},be=ie("Reflect","ownKeys")||function(e){var t=ye.f(O(e)),n=we.f;return n?t.concat(n(e)):t},xe=function(e,t){for(var n=be(t),o=j.f,r=k.f,i=0;i<n.length;i++){var l=n[i];w(e,l)||o(e,l,r(t,l))}},Ee=/#|\.prototype\./,Le=function(e,t){var n=ke[Se(e)];return n==Ce||n!=Oe&&("function"==typeof t?l(t):!!t)},Se=Le.normalize=function(e){return String(e).replace(Ee,".").toLowerCase()},ke=Le.data={},Oe=Le.NATIVE="N",Ce=Le.POLYFILL="P",je=Le,Pe=k.f,Te=function(e){return Object(v(e))},Ue=!!Object.getOwnPropertySymbols&&!l((function(){return!String(Symbol())})),Be=Ue&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ze=W("wks"),Ae=i.Symbol,Ie=Be?Ae:Ae&&Ae.withoutSetter||G,Me=Object.keys||function(e){return me(e,he)},Re=a?Object.defineProperties:function(e,t){O(e);for(var n,o=Me(t),r=o.length,i=0;r>i;)j.f(e,n=o[i++],t[n]);return e},qe=ie("document","documentElement"),De=K("IE_PROTO"),We=function(){},Ne=function(e){return"<script>"+e+"</"+"script>"},Fe=function(){try{ee=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Fe=ee?function(e){e.write(Ne("")),e.close();var t=e.parentWindow.Object;return e=null,t}(ee):((t=E("iframe")).style.display="none",qe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ne("document.F=Object")),e.close(),e.F);for(var n=he.length;n--;)delete Fe.prototype[he[n]];return Fe()};J[De]=!0;var Ge,He=Object.create||function(e,t){var n;return null!==e?(We.prototype=O(e),n=new We,We.prototype=null,n[De]=e):n=Fe(),void 0===t?n:Re(n,t)},Ke=(w(ze,Ge="unscopables")||(Ue&&w(Ae,Ge)?ze[Ge]=Ae[Ge]:ze[Ge]=Ie("Symbol."+Ge)),ze[Ge]),Je=Array.prototype;null==Je[Ke]&&j.f(Je,Ke,{configurable:!0,value:He(null)});var Ve;!function(e,t){var n,o,r,l,a,s=e.target,c=e.global,u=e.stat;if(n=c?i:u?i[s]||T(s,{}):(i[s]||{}).prototype)for(o in t){if(l=t[o],r=e.noTargetGet?(a=Pe(n,o))&&a.value:n[o],!je(c?o:s+(u?".":"#")+o,e.forced)&&void 0!==r){if(typeof l==typeof r)continue;xe(l,r)}(e.sham||r&&r.sham)&&P(l,"sham",!0),ne(n,o,l,e)}}({target:"Array",proto:!0},{fill:function(e){for(var t=Te(this),n=ue(t.length),o=arguments.length,r=pe(o>1?arguments[1]:void 0,n),i=o>2?arguments[2]:void 0,l=void 0===i?n:pe(i,n);l>r;)t[r++]=e;return t}}),Ve="fill",Je[Ke][Ve]=!0;var Ze,Qe,Xe=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}},Ye=Function.call;Ze="fill",Xe(Ye,i["Array"].prototype[Ze],Qe);!function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var n,o;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),o=n.preventDefault,n.preventDefault=function(){o.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}}(),self.fetch||(self.fetch=function(e,t){return t=t||{},new Promise((function(n,o){var r=new XMLHttpRequest,i=[],l=[],a={},s=function(){return{ok:2==(r.status/100|0),statusText:r.statusText,status:r.status,url:r.responseURL,text:function(){return Promise.resolve(r.responseText)},json:function(){return Promise.resolve(JSON.parse(r.responseText))},blob:function(){return Promise.resolve(new Blob([r.response]))},clone:s,headers:{keys:function(){return i},entries:function(){return l},get:function(e){return a[e.toLowerCase()]},has:function(e){return e.toLowerCase()in a}}}};for(var c in r.open(t.method||"get",e,!0),r.onload=function(){r.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),l.push([t,n]),a[t]=a[t]?a[t]+","+n:n})),n(s())},r.onerror=o,r.withCredentials="include"==t.credentials,t.headers)r.setRequestHeader(c,t.headers[c]);r.send(t.body||null)}))}),function(e){function t(){}function n(e,t){if(e=void 0===e?"utf-8":e,t=void 0===t?{fatal:!1}:t,-1===r.indexOf(e.toLowerCase()))throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+e+"') is invalid.");if(t.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}function o(e){for(var t=0,n=Math.min(65536,e.length+1),o=new Uint16Array(n),r=[],i=0;;){var l=t<e.length;if(!l||i>=n-1){if(r.push(String.fromCharCode.apply(null,o.subarray(0,i))),!l)return r.join("");e=e.subarray(t),i=t=0}if(0==(128&(l=e[t++])))o[i++]=l;else if(192==(224&l)){var a=63&e[t++];o[i++]=(31&l)<<6|a}else if(224==(240&l)){a=63&e[t++];var s=63&e[t++];o[i++]=(31&l)<<12|a<<6|s}else if(240==(248&l)){65535<(l=(7&l)<<18|(a=63&e[t++])<<12|(s=63&e[t++])<<6|63&e[t++])&&(l-=65536,o[i++]=l>>>10&1023|55296,l=56320|1023&l),o[i++]=l}}}if(e.TextEncoder&&e.TextDecoder)return!1;var r=["utf-8","utf8","unicode-1-1-utf-8"];Object.defineProperty(t.prototype,"encoding",{value:"utf-8"}),t.prototype.encode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");t=0;for(var n=e.length,o=0,r=Math.max(32,n+(n>>>1)+7),i=new Uint8Array(r>>>3<<3);t<n;){var l=e.charCodeAt(t++);if(55296<=l&&56319>=l){if(t<n){var a=e.charCodeAt(t);56320==(64512&a)&&(++t,l=((1023&l)<<10)+(1023&a)+65536)}if(55296<=l&&56319>=l)continue}if(o+4>i.length&&(r+=8,r=(r*=1+t/e.length*2)>>>3<<3,(a=new Uint8Array(r)).set(i),i=a),0==(4294967168&l))i[o++]=l;else{if(0==(4294965248&l))i[o++]=l>>>6&31|192;else if(0==(4294901760&l))i[o++]=l>>>12&15|224,i[o++]=l>>>6&63|128;else{if(0!=(4292870144&l))continue;i[o++]=l>>>18&7|240,i[o++]=l>>>12&63|128,i[o++]=l>>>6&63|128}i[o++]=63&l|128}}return i.slice?i.slice(0,o):i.subarray(0,o)},Object.defineProperty(n.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(n.prototype,"fatal",{value:!1}),Object.defineProperty(n.prototype,"ignoreBOM",{value:!1});var i=o;"function"==typeof Buffer&&Buffer.from?i=function(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf-8")}:"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&(i=function(e){var t=URL.createObjectURL(new Blob([e],{type:"text/plain;charset=UTF-8"}));try{var n=new XMLHttpRequest;return n.open("GET",t,!1),n.send(),n.responseText}catch(t){return o(e)}finally{URL.revokeObjectURL(t)}}),n.prototype.decode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");return e=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e),i(e)},e.TextEncoder=t,e.TextDecoder=n}("undefined"!=typeof window?window:t),function(e){var t,n=function(){try{if(e.URLSearchParams&&"bar"===new e.URLSearchParams("foo=bar").get("foo"))return e.URLSearchParams}catch(e){}return null}(),o=n&&"a=1"===new n({a:1}).toString(),r=n&&"+"===new n("s=%2B").get("s"),i=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),l=u.prototype,a=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&o&&r&&i)){l.append=function(e,t){v(this.__URLSearchParams__,e,t)},l.delete=function(e){delete this.__URLSearchParams__[e]},l.get=function(e){var t=this.__URLSearchParams__;return this.has(e)?t[e][0]:null},l.getAll=function(e){var t=this.__URLSearchParams__;return this.has(e)?t[e].slice(0):[]},l.has=function(e){return h(this.__URLSearchParams__,e)},l.set=function(e,t){this.__URLSearchParams__[e]=[""+t]},l.toString=function(){var e,t,n,o,r=this.__URLSearchParams__,i=[];for(t in r)for(n=d(t),e=0,o=r[t];e<o.length;e++)i.push(n+"="+d(o[e]));return i.join("&")};var s=!!r&&n&&!o&&e.Proxy;Object.defineProperty(e,"URLSearchParams",{value:s?new Proxy(n,{construct:function(e,t){return new e(new u(t[0]).toString())}}):u});var c=e.URLSearchParams.prototype;c.polyfill=!0,c.forEach=c.forEach||function(e,t){var n=_(this.toString());Object.getOwnPropertyNames(n).forEach((function(o){n[o].forEach((function(n){e.call(t,n,o,this)}),this)}),this)},c.sort=c.sort||function(){var e,t,n,o=_(this.toString()),r=[];for(e in o)r.push(e);for(r.sort(),t=0;t<r.length;t++)this.delete(r[t]);for(t=0;t<r.length;t++){var i=r[t],l=o[i];for(n=0;n<l.length;n++)this.append(i,l[n])}},c.keys=c.keys||function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},c.values=c.values||function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},c.entries=c.entries||function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},a&&(c[e.Symbol.iterator]=c[e.Symbol.iterator]||c.entries)}function u(e){((e=e||"")instanceof URLSearchParams||e instanceof u)&&(e=e.toString()),this.__URLSearchParams__=_(e)}function d(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return t[e]}))}function f(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(e){return decodeURIComponent(e)}))}function p(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return a&&(n[e.Symbol.iterator]=function(){return n}),n}function _(e){var t={};if("object"==typeof e)if(m(e))for(var n=0;n<e.length;n++){var o=e[n];if(!m(o)||2!==o.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");v(t,o[0],o[1])}else for(var r in e)e.hasOwnProperty(r)&&v(t,r,e[r]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var i=e.split("&"),l=0;l<i.length;l++){var a=i[l],s=a.indexOf("=");-1<s?v(t,f(a.slice(0,s)),f(a.slice(s+1))):a&&v(t,f(a),"")}}return t}function v(e,t,n){var o="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);h(e,t)?e[t].push(o):e[t]=[o]}function m(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(void 0!==t?t:"undefined"!=typeof window?window:t);var $e,et=function(e,t){var n;null==(n=window.WP)||n.push((function(){var n;null==(n=window.WP)||n.stat.wave("onelogin",{mode:e,event:t})}))},tt=n((function(e,t){var n;n=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(o){function r(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},r.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var l=JSON.stringify(n);/^[\{\[]/.test(l)&&(n=l)}catch(e){}n=o.write?o.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var s in i)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));return document.cookie=t+"="+n+a}}function l(e,n){if("undefined"!=typeof document){for(var r={},i=document.cookie?document.cookie.split("; "):[],l=0;l<i.length;l++){var a=i[l].split("="),s=a.slice(1).join("=");n||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var c=t(a[0]);if(s=(o.read||o)(s,c)||t(s),n)try{s=JSON.parse(s)}catch(e){}if(r[c]=s,e===c)break}catch(e){}}return e?r[e]:r}}return r.set=i,r.get=function(e){return l(e,!1)},r.getJSON=function(e){return l(e,!0)},r.remove=function(t,n){i(t,"",e(n,{expires:-1}))},r.defaults={},r.withConverter=n,r}((function(){}))},e.exports=n()})),nt={error:{priority:3,method:function(){var e;return(e=console).error.apply(e,arguments)}},warn:{priority:2,method:function(){var e;return(e=console).warn.apply(e,arguments)}},info:{priority:1,method:function(){var e;return(e=console).info.apply(e,arguments)}},debug:{priority:0,method:function(){var e;return(e=console).debug.apply(e,arguments)}}},ot=["%c 1L Widget ","background: #2019f5; color: #fff"],rt="olw_loglvl",it=new function(){var e,t=this;this.level=(e=tt.get(rt))&&e in nt?e:"info",this.setLevel=function(e){if(!e||!(e in nt))return t.error("Incorrect log level.");t.level=e,tt.set(rt,e),t.info('Log level changed to "'+e+'".')},this.log=function(e){if(nt[e].priority>=nt[t.level].priority){for(var n,o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return(n=nt[e]).method.apply(n,ot.concat(["["+e.toUpperCase()+"] "],r))}},this.error=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.log.apply(t,["error"].concat(n))},this.warn=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.log.apply(t,["warn"].concat(n))},this.info=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.log.apply(t,["info"].concat(n))},this.debug=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.log.apply(t,["debug"].concat(n))}},lt=1024,at=window.crypto||window.msCrypto,st=function(e){return JSON.parse(decodeURIComponent(escape(atob(e.split(".")[1]))))},ct=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";return Array(e).fill(null).map((function(){return t.charAt(Math.floor(at.getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)*t.length))})).join("")},ut=function(e){return String.fromCharCode.apply(null,new Uint8Array(e))},dt=function(e){var t=(new TextEncoder).encode(e),n=at.subtle.digest("SHA-256",t);return n instanceof Promise?n:new Promise((function(e,t){var o=n;o.oncomplete=function(t){return e(t.target.result)},o.onerror=function(e){return t(e.toString())}}))},ft=function(e){return window.btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},pt=function(e){return e.split("/").slice(0,3).join("/")},_t="ONELOGIN_ID_TOKEN",vt="ONELOGIN_PKCE_STATE",mt="ONELOGIN_PKCE_CODE_VERIFIER",ht="ONELOGIN_ACCESS_TOKEN",gt="ONELOGIN_REFRESH_TOKEN",yt="https://1login.wp.pl",wt=function(){return tt.get("OL_ID")},bt=function e(t,n){var r=ct(111),i=ct(111);return dt(i).then((function(l){var a=ft(ut(l));return function(e){var t=e.clientId,n=e.redirectUrl,o=e.scope,r=e.state,i=e.codeChallenge,l=new URLSearchParams("");return l.set("response_type","code"),l.set("client_id",t),l.set("redirect_uri",n),l.set("scope",o),l.set("state",r),l.set("code_challenge",i),l.set("code_challenge_method","S256"),window.location.href.length<=lt&&l.set("continue_url",window.location.href),fetch($e.authProviderUrl+"/auth/silent?"+l.toString(),{credentials:"include"})}(o({},n,{olId:t,state:r,codeChallenge:a})).then((function(o){if(401===o.status){var l=wt();return!(t===l||!l)&&e(l,n)}return 200===o.status&&o.json().then((function(e){var t=e.data.redirectUrl.split("?")[1],n=new URLSearchParams(t),o=n.get("code"),l=n.get("state");return!(!o||r!=l)&&{code:o,codeVerifier:i}}))}))}))},xt=function(e,t){var n,o=e.authUrl,r=e.clientId,i=e.redirectUrl,l=e.scope,a=e.postLogoutRedirectUrl,s=e.passContinueUrl,c=e.autologinDomain,u=function(){it.debug("clearing storage"),t.clear(_t),t.clear(ht),t.clear(gt),document.dispatchEvent(new CustomEvent("ol-not-logged"))},d=function(){var e=t.load(_t);if(!e)throw u(),new Error("No token in storage");return st(e)},f=function(){var e=t.load(gt);return e?function(e){var t=e.clientId,n=e.refreshToken;return fetch($e.authProviderUrl+"/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"grant_type=refresh_token&client_id="+t+"&refresh_token="+n})}({clientId:r,refreshToken:e}).then((function(e){return 200!==e.status?(it.debug("current session is invalid"),u(),!1):e.json().then((function(e){return t.save(ht,e.access_token),t.save(gt,e.refresh_token),!0}))})):Promise.resolve(!1)},p=function(e){clearTimeout(n),n=setTimeout(f,1e3*(e-30))},_=function(e){var n=e.code,l=e.codeVerifier,a=e.continueUrl;return function(e){var t=e.clientId,n=e.redirectUrl,o=e.code,r=e.codeVerifier;return fetch($e.authProviderUrl+"/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"grant_type=authorization_code&client_id="+t+"&redirect_uri="+n+"&code="+o+"&code_verifier="+r})}({clientId:r,code:n,codeVerifier:l,redirectUrl:i}).then((function(e){return e.json()})).then((function(e){if(!e.id_token)throw new Error("No token from response");var n=st(e.id_token);if(!n.aud.includes(r))throw new Error("Aud differs from clientId!");if(n.iss!==pt(o)+"/api/v1/public/ol-authprovider")throw new Error("Wrong ISS");!function(e,t){void 0===t&&(t=".wp.pl");var n=new Date(Date.now()+12096e5);it.debug("setting OL_ID with: ",{adId:e,domain:t,expires:n}),tt.set("OL_ID",e,{domain:t,expires:n})}(n.ad_id,c),t.save(ht,e.access_token),t.save(gt,e.refresh_token),p(e.expires_in),function(e){it.debug("setting user token"),t.save(_t,e),document.dispatchEvent(new CustomEvent("ol-login"))}(e.id_token),a&&window.location.assign(decodeURIComponent(a))}))},v=function(){var e=t.load(ht);return e?function(e){return fetch($e.authProviderUrl+"/introspect",{headers:{Authorization:"Bearer "+e},method:"POST"})}(e).then((function(e){return 200===e.status?e.json().then((function(e){var t=Math.floor(Date.now()/1e3),n=e.exp-t;return p(n),!0})):e.status.toString().startsWith("4")?f():(it.error("invalid response during introspect"),u(),!1)})):Promise.resolve(!1)};return function(){!function(e){var t=pt(e.authUrl);$e=Object.freeze({origin:t,authProviderUrl:t+"/api/v1/public/ol-authprovider"})}(e),setInterval(v,6e4);var n=window.location.href;n.startsWith(decodeURI(i))&&n.includes("code=")?function(){var e=new URLSearchParams(window.location.search),n=e.get("state"),o=e.get("code"),r=e.get("error"),l=e.get("continue_url");if(!o)throw new Error("No code from response");if(r)throw new Error(r);history.replaceState({},"Logowanie 1L",i);var a=t.load(vt),s=t.load(mt);if(t.clear(vt),t.clear(mt),n!==a)throw console.error({state:n,storageState:a}),new Error("State differs from storage");if(!s)throw new Error("There is no `code_verifier` in storage");if(!a)throw new Error("There is no `state` in storage");_({code:o,codeVerifier:s,continueUrl:l})}():v().then((function(n){n?(it.debug("user logged in"),document.dispatchEvent(new CustomEvent("ol-login"))):(it.debug("no active session found"),function(e){var t=e.storage,n=e.callback,o=e.config;if(t.load(ht))it.debug("Token in storage - autologin denied");else{var r=wt();r?(it.debug("autologin - data found; initializing..."),bt(r,o).then((function(e){e?(it.debug("autologin - accepted; token granted"),n(e)):it.debug("autologin - denied; session no longer active")}))):it.debug("autologin - no data found")}}({config:e,storage:t,callback:_}),document.dispatchEvent(new CustomEvent("ol-not-logged")))}))}(),{login:function(e){var n=ct(111);t.save(vt,n);var a=ct(111);return t.save(mt,a),dt(a).then((function(t){var a=ft(ut(t)),c=new URLSearchParams("");e&&c.set("flow","select_account"),c.set("response_type","code"),c.set("client_id",r),c.set("redirect_uri",i),c.set("scope",l),c.set("state",n),c.set("code_challenge",a),c.set("code_challenge_method","S256"),s&&window.location.href.length<=lt&&c.set("continue_url",window.location.href),window.location.assign(o+"?"+c.toString())}))},logout:function(){it.debug("logout initiated");try{var e=d().l_hint;u(),it.debug("removing autologin cookie"),tt.remove("OL_ID"),window.location.assign(pt(o)+"/api/v1/public/ol-authprovider/logout?l_hint="+e+"&post_logout_redirect_uri="+a)}catch(e){console.error(e)}},getUserData:function(){var e=d();return{first_name:e.first_name,last_name:e.last_name,email:e.sub,avatar_url:e.avatar_url}}}},Et=function(e,t){return"PKCE"===e.flow?xt(e,t):(o=(n=e).passContinueUrl,r=n.logout,i=r.url,l=r.method,a=void 0===l?"GET":l,s=n.authUrl,c=void 0,{login:function(e){var t=new URLSearchParams("");e&&t.set("flow","select_account"),o&&window.location.href.length<=lt&&t.set("continue_url",window.location.href);var n=t.toString();window.location.assign(s+(n?"?"+n:""))},logout:function(){var e=document.createElement("form");e.setAttribute("method",a),e.setAttribute("action",i),document.body.appendChild(e),e.submit()},getUserData:function(){if(!c)throw new Error("No UserData in storage");return c},setUserData:function(e){c=e,document.dispatchEvent(new CustomEvent("ol-login"))}});var n,o,r,i,l,a,s,c},Lt=void 0,St={COOKIE:{clear:function(e){tt.remove(e,{domain:Lt,secure:!0,sameSite:"none"})},load:function(e){return tt.get(e)},save:function(e,t){tt.set(e,t,{domain:Lt,secure:!0,sameSite:"none"})}},LOCAL_STORAGE:{clear:function(e){return localStorage.removeItem(e)},load:function(e){return localStorage.getItem(e)},save:function(e,t){localStorage.setItem(e,t)}}};var kt=function(e,t){return t||(t=e.slice(0)),e.raw=t,e},Ot=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return e.map((function(e,t){return""+e+(n[t]||"")})).join("")};function Ct(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}var jt="styles-module_Button__1bJy1",Pt="styles-module_Icon__1t6X6";function Tt(){var e=kt(['<button type="button" class="','"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" viewBox="0 0 18 20" class="','"><g fill="#FFF" fill-rule="evenodd"><path d="M15.891 2.026c-.375 0-.723.117-1.012.315-.111.064-.217.137-.315.227l-5.21 5.376c-.724.66-.773 1.789-.11 2.508.664.72 1.797.77 2.52.11l2.331-2.31v9c0 .982.808 1.787 1.796 1.787.99 0 1.798-.805 1.798-1.787V3.815c0-.983-.808-1.789-1.798-1.789"/><path d="M7.09 12.784c-.8-.635-1.316-1.385-1.551-2.341-.212-.862-.124-1.58.164-2.448.04-.102.045-.114.01-.035l.075-.166c.04-.082.081-.162.125-.242.116-.211.247-.417.393-.609-.09.118.073-.082.085-.095.08-.092.163-.18.249-.265.086-.086.175-.167.267-.247.022-.019.221-.175.099-.084.196-.147.406-.277.622-.392.234-.124.282-.144.463-.208.488-.173.885-.242 1.344-.258.496-.015.917-.407.917-.911 0-.484-.42-.93-.917-.913-1.92.061-3.644.977-4.767 2.525-1.076 1.482-1.366 3.515-.778 5.243.364 1.07 1.014 2.033 1.902 2.737.388.308.92.376 1.298 0 .32-.318.39-.981 0-1.291M11.003 13.313c-.693.24-1.38.31-2.108.225-.493-.058-.918.46-.918.913 0 .541.423.854.918.913.87.102 1.77-.005 2.596-.29.468-.162.777-.625.64-1.123-.124-.452-.657-.8-1.128-.638"/><path d="M1.91 10.621c-.14-1.073-.093-2.02.14-2.955.06-.238.13-.473.21-.707.04-.115.082-.23.127-.343.022-.058.044-.115.068-.17-.062.145.055-.116.056-.117.205-.44.45-.863.727-1.262.069-.099.14-.198.214-.295-.07.092.103-.125.141-.17.177-.207.363-.409.56-.599.399-.391.65-.594 1.058-.865.9-.6 1.654-.918 2.708-1.149 1.394-.306 2.884-.187 4.267.294.469.162 1.005-.186 1.129-.638.14-.503-.171-.96-.64-1.123-2.639-.916-5.641-.615-8.04.817C2.63 2.539 1.116 4.47.42 6.693c-.395 1.261-.513 2.62-.344 3.928.063.49.376.913.917.913.447 0 .98-.42.917-.913M10.902 17.035c-1.612.292-3.35.042-4.768-.668-1.499-.75-2.63-1.857-3.42-3.316-.236-.434-.838-.57-1.255-.327-.441.257-.565.813-.33 1.25.93 1.715 2.404 3.156 4.168 4.014 1.908.927 4.009 1.185 6.092.808.488-.089.764-.678.641-1.123-.14-.511-.639-.727-1.128-.638"/></g></svg> <span>Zaloguj z 1login od WP</span></button>']);return Tt=function(){return e},e}Ct(".styles-module_Button__1bJy1{display:flex;align-items:center;justify-content:center;border:none;border-radius:4px;background-color:#2019f5;color:#fff;font-size:14px;outline:none;padding:10px 12px 10px 30px;max-width:270px;width:100%;position:relative;cursor:pointer}.styles-module_Button__1bJy1 span{position:relative}.styles-module_Button__1bJy1:hover{background-color:#333cf6}.styles-module_Icon__1t6X6{position:absolute;top:50%;left:12px;transform:translateY(-50%)}");var Ut="styles-module_Text__2N4ci",Bt="styles-module_Overlay__aUjWP",zt="styles-module_Bold__27ljj",At="styles-module_Button__3Bq4n",It="styles-module_TextWrapper__3szJT";function Mt(){var e=kt(['<button type="button" id="','" class="olw__button'," ",'">','<div class="olw__button__text ','"><span class="olw__button__text--overlay '," ",'">','</span> <span class="olw__button__text--bold '," ",'">',"</span></div></button>"]);return Mt=function(){return e},e}Ct(".styles-module_Text__2N4ci{display:block;max-width:95px}.styles-module_Text__2N4ci.styles-module_Overlay__aUjWP{position:absolute;left:50%;transform:translateX(-50%)}.styles-module_Text__2N4ci.styles-module_Bold__27ljj{font-weight:600;visibility:hidden}.styles-module_Button__3Bq4n{display:flex;justify-content:center;align-items:center;flex-direction:column;background:none;border:0;font-size:12px;font-weight:500;cursor:pointer;outline:0;text-transform:uppercase}.styles-module_Button__3Bq4n>*{position:relative}.styles-module_Button__3Bq4n:hover .styles-module_Overlay__aUjWP{visibility:hidden}.styles-module_Button__3Bq4n:hover .styles-module_Bold__27ljj{visibility:visible}.styles-module_Button__3Bq4n .styles-module_TextWrapper__3szJT{margin-top:8px}@media (max-width:768px){.styles-module_Button__3Bq4n .styles-module_TextWrapper__3szJT{display:none}}");var Rt=function(e,t,n,o){void 0===o&&(o=!0);var r=t.length<=10?t:t.substring(0,10).replace(/...$/,"...");return Ot(Mt(),e,o?"":"--login",At,n,It,Ut,Bt,r,Ut,zt,r)},qt="styles-module_Wrapper__28I5v",Dt="styles-module_Link__7LnyB",Wt="styles-module_Icon__2j5nC";Ct(".styles-module_Wrapper__28I5v{display:flex;flex-direction:column;padding:0 20px 10px;border-top:1px solid rgba(0,0,0,.1)}.styles-module_Link__7LnyB{display:flex;align-items:center;margin-top:10px;font-size:14px;cursor:pointer;color:#1a1a1a}.styles-module_Link__7LnyB:hover{text-decoration:underline}.styles-module_Icon__2j5nC{display:flex;align-items:center;justify-content:center;width:20px;margin-right:15px}");var Nt=function(){return"true"===tt.get("mobileApp")};function Ft(){var e=kt(['<div class="olw__action--logout ','"><a class="olw__action--link ','" id="olw-actions-logout"><span class="olw__action--icon ','"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="19" viewBox="0 0 17 19"><path fill="#2019F5" stroke="#2019F5" d="M7 1c4.791 0 8.675 3.884 8.675 8.675S11.791 18.35 7 18.35c-.373 0-.675-.302-.675-.675 0-.373.302-.675.675-.675 4.045 0 7.325-3.28 7.325-7.325S11.045 2.35 7 2.35c-.373 0-.675-.302-.675-.675C6.325 1.302 6.627 1 7 1zM4.632 5.873l.084-.071.092-.056c.252-.126.568-.084.779.127h0l.071.083c.19.264.166.634-.071.871h0L3.305 9.11h6.412l.1.008c.325.048.575.329.575.668 0 .372-.302.675-.675.675h0l-6.412-.001 2.282 2.283.071.084c.19.263.166.633-.071.87-.264.264-.691.264-.955 0h0l-3.448-3.448-.057-.07-.053-.085-.04-.095-.026-.11L1 9.784c0-.07.01-.137.03-.2h0l.038-.096.052-.088h0l.026-.036.044-.05 3.442-3.442z"/></svg> </span>Wyloguj</a></div>']);return Ft=function(){return e},e}var Gt="styles-module_Wrapper__2g7OW",Ht="styles-module_AvatarWrapper__pJPgY",Kt="styles-module_Avatar__2n7RQ",Jt="styles-module_OneLoginLogo__2RFnu",Vt="styles-module_PersonalData__p1q4n",Zt="styles-module_Email__3ZhPR",Qt="styles-module_Link__1nZwl",Xt="styles-module_DisplayNone__1dBmu";function Yt(){var e=kt(['<svg xmlns="http://www.w3.org/2000/svg" class="','" width="','" height="','" viewBox="0 0 41 40"><g fill="none" fill-rule="evenodd" transform="translate(5.24 5)"><circle cx="15" cy="15" r="17.4" fill="#E3E8FE" stroke="#E3E8FE" stroke-width="4.8"/><path fill="#2019F5" fill-rule="nonzero" d="M20.487 22.274v-1.796c0-2.115-1.687-3.38-3.309-4.615-.224-.17-.509-.493-.509-.986s.257-.974.51-1.18c1.577-1.286 3.308-2.5 3.308-4.615V7.726h1.273V6h-14v1.726h1.273v1.356c0 2.116 1.73 3.329 3.309 4.615.252.206.509.687.509 1.18 0 .493-.285.816-.51.986-1.62 1.234-3.308 2.5-3.308 4.615v1.796H7.76V24h14v-1.726h-1.273zm-8.941-11.59c-.47-.513-.731-1.009-.731-1.602V7.726h7.89v1.356c0 .593-.262 1.089-.73 1.603h-6.43zm7.16 11.109l-2.997-1.133c-.522-.197-1.376-.197-1.897 0l-2.997 1.133v-1.315c0-1.197.982-2.005 2.584-3.225l.043-.032c.608-.462 1.003-1.106 1.137-1.815.12.026.243.026.362 0 .134.71.529 1.353 1.136 1.814l.044.033c1.602 1.22 2.584 2.028 2.584 3.225v1.315z"/></g></svg>']);return Yt=function(){return e},e}Ct(".styles-module_Wrapper__2g7OW{display:flex;flex-direction:column;width:100%;align-items:center;padding:20px 20px 0;box-sizing:border-box}.styles-module_AvatarWrapper__pJPgY{position:relative}.styles-module_Avatar__2n7RQ{height:60px;width:60px;border-radius:50%}@media (max-width:768px){.styles-module_Avatar__2n7RQ{height:43px;width:43px}}.styles-module_OneLoginLogo__2RFnu{position:absolute;bottom:0;left:-10px}.styles-module_PersonalData__p1q4n{margin-top:10px;font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.styles-module_Email__3ZhPR{font-size:12px;color:#656565;margin-bottom:10px}.styles-module_Link__1nZwl{font-size:14px;font-weight:600;color:#2019f5;margin-bottom:15px;cursor:pointer;text-decoration:none}.styles-module_Link__1nZwl:hover{text-decoration:underline}.styles-module_Link__1nZwl:last-child{margin-bottom:10px}.styles-module_DisplayNone__1dBmu{display:none}");var $t=function(e){var t=void 0===e?{}:e,n=t.size,o=void 0===n?30:n,r=t.class,i=void 0===r?"":r;return Ot(Yt(),i,o,o)};function en(){var e=kt(['<div class="','"><div class="olw__avatarwrapper ','">',' <svg xmlns="http://www.w3.org/2000/svg" width="24" height="23" viewBox="0 0 24 23" class="','"><g fill="none" fill-rule="evenodd" transform="translate(.754)"><ellipse cx="11.475" cy="11.4" fill="#FFF" rx="11.475" ry="11.4"/><g fill="#2019F5"><path d="M14.765 1.87c-.348 0-.672.108-.94.291-.104.059-.202.127-.294.21l-4.84 4.962c-.672.609-.718 1.651-.102 2.315.616.665 1.67.71 2.342.1l2.165-2.13v8.307c0 .907.751 1.65 1.67 1.65.918 0 1.669-.743 1.669-1.65V3.52c0-.907-.75-1.65-1.67-1.65" transform="translate(2.416 2.4)"/><path d="M6.587 11.8c-.743-.586-1.222-1.278-1.441-2.16-.196-.796-.115-1.46.153-2.26.038-.094.042-.105.01-.032.022-.052.046-.103.07-.154.036-.075.074-.15.115-.223.108-.195.229-.385.365-.562-.084.109.068-.076.08-.088.073-.085.15-.165.23-.244.08-.08.163-.155.248-.228.021-.018.206-.162.092-.078.183-.136.377-.256.578-.361.217-.116.263-.133.43-.193.454-.16.823-.223 1.25-.238.46-.014.852-.376.852-.841 0-.446-.39-.859-.853-.843-1.784.057-3.385.902-4.429 2.331-1 1.368-1.27 3.245-.723 4.84.339.987.943 1.876 1.768 2.526.36.285.854.348 1.205 0 .297-.293.362-.905 0-1.192M10.223 12.288c-.644.222-1.281.288-1.959.209-.457-.054-.852.425-.852.842 0 .5.393.789.852.843.808.095 1.645-.005 2.412-.268.435-.15.723-.577.596-1.036-.116-.418-.612-.74-1.049-.59" transform="translate(2.416 2.4)"/><path d="M1.774 9.804c-.129-.99-.085-1.865.132-2.728.055-.22.12-.437.194-.652.037-.106.076-.212.118-.317.02-.053.04-.106.063-.157-.058.134.051-.107.052-.108.19-.406.418-.796.676-1.165.064-.09.13-.183.198-.272-.064.084.096-.115.132-.156.164-.192.337-.378.52-.554.37-.361.603-.548.983-.799.836-.553 1.536-.847 2.515-1.06 1.296-.282 2.68-.173 3.966.271.435.15.933-.171 1.048-.589.13-.464-.158-.886-.594-1.036-2.452-.846-5.242-.568-7.47.754C2.443 2.343 1.035 4.126.39 6.178.023 7.343-.087 8.596.069 9.804c.059.452.35.843.853.843.415 0 .91-.387.852-.843M10.129 15.724c-1.498.27-3.112.04-4.43-.616-1.392-.692-2.444-1.715-3.177-3.06-.22-.401-.78-.527-1.166-.303-.41.237-.526.75-.307 1.153.864 1.584 2.234 2.915 3.872 3.706 1.774.856 3.725 1.095 5.66.746.455-.082.71-.626.597-1.037-.131-.472-.594-.67-1.049-.589" transform="translate(2.416 2.4)"/></g></g></svg></div><div class="olw__personaldata ','">'," ",'</div><div class="olw__email ','">','</div><a class="olw__link '," ",'" href="','" target="_blank" rel="noreferrer noopener">Zarządzaj kontem </a><a class="olw__link ','" id="olw-link-login">Przełącz konto</a></div>']);return en=function(){return e},e}var tn="styles-module_Wrapper__3Ue2n",nn="styles-module_Dropdown__22z2G",on="styles-module_Open__qza-y",rn="styles-module_Closed__12SQg",ln="styles-module_Backdrop__3E_yg",an="styles-module_Visible__3WocK",sn="styles-module_Content__2QMnt",cn="styles-module_CloseButton__OZ9N-",un="styles-module_Placeholder__GOJhG",dn="styles-module_AvatarWrapper__2IFqp";function fn(){var e=kt(['<div class="olw__button__avatar ','"><img src="','" alt="avatar"></div>']);return fn=function(){return e},e}function pn(){var e=kt(['<div id="olw-db-backdrop" class="','"></div><div class="','">','<div id="olw-db-dropdown" class="olw__dropdown '," ",'"><div class="','"><div id="olw-db-user">a</div><div class="','" id="olw-db-user-actions-placeholder"></div><div id="olw-db-actions">b</div><button type="button" id="olw-db-x-button" class="','"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="#A1A1A1" fill-rule="evenodd" d="M11.414 10l4.293-4.293c.391-.391.391-1.023 0-1.414-.39-.391-1.023-.391-1.414 0L10 8.586 5.707 4.293c-.39-.391-1.023-.391-1.414 0-.39.391-.39 1.023 0 1.414L8.586 10l-4.293 4.293c-.39.391-.39 1.023 0 1.414.195.195.451.293.707.293.256 0 .512-.098.707-.293L10 11.414l4.293 4.293c.195.195.451.293.707.293.256 0 .512-.098.707-.293.391-.391.391-1.023 0-1.414L11.414 10z"/></svg></button></div></div></div>']);return pn=function(){return e},e}Ct(".styles-module_Wrapper__3Ue2n{color:#1a1a1a;position:relative}.styles-module_Dropdown__22z2G{position:absolute;width:350px;right:0;background-color:#fff;border-radius:5px;box-shadow:0 0 10px 0 rgba(0,0,0,.2);z-index:999;top:-5px;opacity:0;transform:scale(.2);transform-origin:top right;transition:transform .2s ease-in-out,opacity .2s ease-in-out,top .2s ease-in-out}.styles-module_Dropdown__22z2G.styles-module_Open__qza-y{top:100%;opacity:1;transform:scale(1)}.styles-module_Dropdown__22z2G.styles-module_Closed__12SQg{display:none}@media (max-width:768px){.styles-module_Dropdown__22z2G{position:fixed;transform-origin:top center;transform:scale(.2) translateX(-50%);top:10px;left:50%}.styles-module_Dropdown__22z2G.styles-module_Open__qza-y{top:10px;transform:scale(1) translateX(-50%)}}.styles-module_Backdrop__3E_yg{display:none;position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(88,88,88,.83);z-index:998}@media (max-width:768px){.styles-module_Backdrop__3E_yg.styles-module_Visible__3WocK{display:block}}.styles-module_Content__2QMnt{position:relative}.styles-module_CloseButton__OZ9N-{display:none;position:absolute;background:none;border:none;padding:0;margin:0;top:20px;right:20px;outline:none}@media (max-width:768px){.styles-module_CloseButton__OZ9N-{display:block}}.styles-module_Placeholder__GOJhG:not(:empty){border-top:1px solid rgba(0,0,0,.1)}.styles-module_AvatarWrapper__2IFqp{display:flex;align-items:center;justify-content:center;width:30px;height:30px;background-color:#e0e0e0;border-radius:50%}.styles-module_AvatarWrapper__2IFqp img{height:24px;width:24px;border-radius:50%}");var _n=function(e,t){var n=e.flow.getUserData(),o=n.first_name,r=n.avatar_url;t.innerHTML=Ot(pn(),ln,tn,Rt("olw-db-button",o,r?Ot(fn(),dn,r):$t()),nn,rn,sn,un,cn);var i=document.getElementById("olw-db-dropdown"),l=document.getElementById("olw-db-backdrop"),a=document.getElementById("olw-db-button"),s=document.getElementById("olw-db-x-button"),c=Array.from(t.querySelectorAll("a")),u=t.querySelector("#olw-db-user"),d=t.querySelector("#olw-db-actions");if(!(i&&l&&u&&d))throw new Error("Missing element during dropdown-button render");var f=function(e,t,n){var o=n.avatar_url,r=n.first_name,i=n.last_name,l=n.email;t.innerHTML=Ot(en(),Gt,Ht,o?'<img class="'+Kt+'" src="'+o+'" alt="avatar" />':$t({class:Kt}),Jt,Vt,r,i,Zt,l,Qt,Nt()||window.location.href.startsWith(yt)?Xt:"",yt,Qt);var a=t.querySelector("#olw-link-login");if(!a)throw new Error("User link login element not found");var s=function(){Nt()?window.location.assign("onelogin://profile/choose"):e.flow.login(!0)};return a.addEventListener("click",s),function(){a.removeEventListener("click",s)}}(e,u,n),p=function(e,t){t.innerHTML=Ot(Ft(),qt,Dt,Wt);var n=t.querySelector("#olw-actions-logout");if(!n)throw new Error("Actions logout link element not found");var o=function(){Nt()?window.location.assign("onelogin://profile/logout"):e.flow.logout()};return n.addEventListener("click",o),function(){n.removeEventListener("click",o)}}(e,d),_=function(){i.classList.remove(on),l.classList.remove(an),"none"===getComputedStyle(l).display&&document.body.removeAttribute("style"),setTimeout((function(){return i.classList.add(rn)}),250)};document.addEventListener("ol-close-dropdown",_);var v=function(){i.classList.contains(rn)?(i.classList.remove(rn),window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){"none"!==getComputedStyle(l).display&&(document.body.style.overflow="hidden"),i.classList.add(on)}))})),l.classList.add(an)):_()},m=function(e){"Escape"===e.code&&_()},h=function(e){i&&a&&e.target&&(i.contains(e.target)||a.contains(e.target)||_())};return null==a||a.addEventListener("click",v),null==s||s.addEventListener("click",_),document.addEventListener("keyup",m),document.addEventListener("click",h),c.forEach((function(e){return e.addEventListener("click",v)})),function(){f(),p(),null==a||a.removeEventListener("click",v),null==s||s.addEventListener("click",_),document.removeEventListener("keyup",m),document.removeEventListener("click",h),c.forEach((function(e){return e.removeEventListener("click",v)})),document.removeEventListener("ol-close-dropdown",_),t.innerHTML=""}},vn="oneLoginCapping",mn=function(){tt.set(vn,"1",{expires:14})},hn=function(){return tt.get(vn)},gn="styles-module_Container__56cI_",yn="styles-module_Acquisition__3f3zR",wn="styles-module_Hide__10Suq",bn="styles-module_Wrapper__30rlU",xn="styles-module_CloseWrapper__8epqS",En="styles-module_Close__1LqKH",Ln="styles-module_CloseWhite__ZjnmS",Sn="styles-module_List__3BMcU",kn="styles-module_Buttons__1AB8K",On="styles-module_Button__3Mrdt",Cn="styles-module_TextButton__2qoKG",jn="styles-module_Title__EkjmI",Pn="styles-module_MobileContainer__DQGtY",Tn="styles-module_MobileTitle__26w0r",Un="styles-module_ButtonMobile__2hCda",Bn="styles-module_CloseMobileWrapper__1fdib";function zn(){var e=kt(['<div class="olw__promo__mobile ','"><div class="','">Odkryj darmowe konto 1login od WP</div><a target="_blank" href="https://1login.wp.pl/informacje" class="','">Zobacz korzyści</a><div id="olw-close-promo-mobile" class="','"><div class="'," ",'"></div></div></div>']);return zn=function(){return e},e}Ct('.styles-module_Container__56cI_{background-color:#fff;border:1px solid rgba(146,142,255,.6);box-shadow:0 2px 12px 0 rgba(32,24,245,.38);border-radius:4px;right:0;top:10px;position:absolute;width:390px}.styles-module_Container__56cI_:after,.styles-module_Container__56cI_:before{content:"";display:block;height:15px;position:absolute;padding:9}.styles-module_Container__56cI_:before{width:15px;background:#fff;top:0;right:25px;transform:rotate(45deg) translateX(-5px) translateY(-5px);border:1px solid rgba(146,142,255,.6);box-shadow:0 2px 12px 0 rgba(32,24,245,.38)}.styles-module_Container__56cI_:after{bottom:100%;right:0;width:90px}.styles-module_Acquisition__3f3zR{opacity:1;position:relative;transition:visibility 0s,opacity .5s ease-in-out;visibility:visible;z-index:10}.styles-module_Hide__10Suq{opacity:0;visibility:hidden}.styles-module_Wrapper__30rlU{background-color:#fff;padding:20px;position:relative}.styles-module_CloseWrapper__8epqS{position:absolute;right:16px;top:16px}.styles-module_Close__1LqKH{cursor:pointer;position:relative;height:16px;width:16px}.styles-module_Close__1LqKH:after,.styles-module_Close__1LqKH:before{background-color:#333;content:" ";position:absolute;left:9px;height:16px;width:2px}.styles-module_Close__1LqKH:before{transform:rotate(45deg)}.styles-module_Close__1LqKH:after{transform:rotate(-45deg)}.styles-module_CloseWhite__ZjnmS:after,.styles-module_CloseWhite__ZjnmS:before{background-color:#fff}.styles-module_List__3BMcU>*{position:relative;padding:5px 10px 5px 25px;font-size:14px}.styles-module_List__3BMcU>:before{content:"";display:block;transform:rotate(45deg);height:11px;width:7px;border-bottom:2.75px solid #4cb730;border-right:2.75px solid #4cb730;position:absolute;left:4px}.styles-module_Buttons__1AB8K{padding-top:10px}.styles-module_Button__3Mrdt{text-transform:uppercase;color:#fff;background:#2018f5;padding:8px 30px}.styles-module_Button__3Mrdt,.styles-module_TextButton__2qoKG{text-decoration:none;display:inline-block;vertical-align:middle;margin:5px;font-size:14px;white-space:nowrap;border-radius:4px}.styles-module_TextButton__2qoKG{padding:8px 15px;font-weight:600;color:#2018f5}.styles-module_Title__EkjmI{font-size:18px;margin:0 0 10px;line-height:1.25}.styles-module_MobileContainer__DQGtY{background-color:#3665f6;font-size:14px;padding:4px;color:#fff;display:flex;width:100vw;align-items:center;justify-content:space-around;position:relative}.styles-module_MobileContainer__DQGtY:after{bottom:100%;right:70px;content:"";height:0;width:0;position:absolute;pointer-events:none;border:8px solid rgba(136,183,213,0);border-bottom-color:#3665f6;margin-left:-8px}.styles-module_MobileTitle__26w0r{margin:5px 10px;font-size:14px;font-weight:600}.styles-module_ButtonMobile__2hCda{text-decoration:none;text-transform:uppercase;color:#fff;border:1px solid hsla(0,0%,100%,.6);vertical-align:middle;margin:5px;padding:8px 15px;font-size:12px;white-space:nowrap;border-radius:4px;font-weight:600}.styles-module_CloseMobileWrapper__1fdib{flex:1;display:flex;justify-content:flex-end;padding:0 10px}');function An(){var e=kt(['<div class="olw__promo ','"><div class="','"><div id="olw-close-promo" class="','"><div class="','"></div></div><h3 class="','">Darmowe konto 1login od WP, to łatwiejsze</h3><div class="','"><div>zakupy on-line (moda, wyposażenie wnętrz)</div><div>korzystanie z telewizji on-line</div><div>umawianie konsultacji i badań lekarskich</div></div><div class="','"><a target="_blank" href="https://1login.wp.pl" class="','">Wypróbuj</a> <a target="_blank" href="https://1login.wp.pl/informacje" class="','">Dowiedz się więcej</a></div></div></div>']);return An=function(){return e},e}var In,Mn=function(e){var t=document.createElement("div");t.className=wn+" "+yn,e.appendChild(t),t.innerHTML=Ot(An(),gn,bn,xn,En,jn,Sn,kn,On,Cn);var n=function(){t.classList.remove(wn)},o=function(){setTimeout((function(){t.classList.add(wn)}),300)},r=document.querySelector("#olw-close-promo");if(!r)throw new Error("Close button not exists");var i=function i(){r.removeEventListener("click",i),e.removeEventListener("mouseenter",n),e.removeEventListener("mouseleave",o),mn(),t.remove()};r.addEventListener("click",(function(){return i()})),e.addEventListener("mouseenter",n),e.addEventListener("mouseleave",o)},Rn=function(){var e=function(){In&&(hn()||Mn(In))};return document.addEventListener("ol-not-logged",e),function(){document.removeEventListener("ol-not-logged",e)}},qn=function(e){var t=function(){hn()||function(e){e.innerHTML=Ot(zn(),Pn,Tn,Un,Bn,En,Ln);var t=document.querySelector("#olw-close-promo-mobile");if(!t)throw new Error("Close button not exists");t.addEventListener("click",(function n(){t.removeEventListener("click",n),mn(),e.innerHTML=""}))}(e)};return document.addEventListener("ol-not-logged",t),function(){document.removeEventListener("ol-not-logged",t)}};function Dn(){var e=kt(['<svg xmlns="http://www.w3.org/2000/svg" width="32" height="28" viewBox="0 0 32 28"><path class="olw__button--icon" d="M12.698 3.048c1.806 0 3.523.376 5.078 1.055-.168.484-.297.985-.383 1.5-1.426-.662-3.017-1.032-4.695-1.032-6.171 0-11.174 5.003-11.174 11.175 0 6.172 5.003 11.175 11.174 11.175 6.122 0 11.094-4.922 11.174-11.025.49.142.997.243 1.517.301-.237 6.804-5.828 12.247-12.69 12.247C5.684 28.444 0 22.76 0 15.746 0 8.733 5.685 3.048 12.698 3.048zm2.477 14.349c2.279 0 4.127 1.848 4.127 4.127 0 .456-.37.825-.826.825-.423 0-.772-.318-.82-.729l-.01-.242c-.072-1.251-1.074-2.254-2.326-2.326l-.145-.004h-4.953c-1.367 0-2.476 1.108-2.476 2.476 0 .456-.37.825-.825.825-.456 0-.826-.37-.826-.825 0-2.22 1.752-4.03 3.948-4.123l.18-.004h4.952zm-2.477-8.254c2.28 0 4.127 1.848 4.127 4.127 0 2.28-1.847 4.127-4.127 4.127-2.279 0-4.127-1.848-4.127-4.127 0-2.28 1.848-4.127 4.127-4.127zm0 1.65c-1.367 0-2.476 1.11-2.476 2.477 0 1.367 1.109 2.476 2.476 2.476 1.368 0 2.477-1.109 2.477-2.476 0-1.368-1.109-2.476-2.477-2.476z"/><path class="olw__button--logo" d="M31.166 1.514c.739 0 1.342.601 1.342 1.336v10.037c0 .734-.603 1.335-1.342 1.335-.737 0-1.34-.601-1.34-1.335V6.164L28.084 7.89c-.54.493-1.386.456-1.882-.081-.495-.538-.458-1.381.082-1.874l3.89-4.016c.073-.067.152-.122.235-.169.216-.148.476-.235.756-.235zm-10.775 7.99c.31-.18.76-.079.937.245.59 1.09 1.434 1.917 2.553 2.477 1.059.53 2.356.717 3.56.499.365-.066.737.094.842.476.092.333-.114.773-.478.84-1.556.281-3.124.088-4.549-.604-1.317-.64-2.417-1.717-3.111-3-.176-.325-.083-.74.246-.932zm7.126.44c.35-.12.749.14.842.477.102.372-.129.718-.478.839-.617.213-1.29.293-1.939.216-.369-.043-.684-.277-.684-.681 0-.338.317-.726.684-.682.545.064 1.057.01 1.575-.169zm-1.171-7.278c.371-.012.685.321.685.682 0 .377-.315.67-.685.681-.343.013-.64.064-1.004.193-.135.048-.171.062-.345.156-.162.085-.318.182-.465.292l.028-.02c.005-.004-.002 0-.028.02l.027-.019-.036.03-.05.04-.015.012c-.068.06-.135.12-.2.184-.063.064-.125.13-.185.198l-.07.083-.01.012.008-.012-.01.013c-.002.004-.002.004 0 .002l-.087.12c-.067.1-.13.203-.188.308l-.093.18-.039.087c.002-.003-.006.019-.024.064-.215.648-.281 1.185-.123 1.829.176.714.56 1.274 1.158 1.748.29.232.239.727 0 .965-.282.281-.68.23-.969 0-.663-.526-1.148-1.246-1.42-2.044-.44-1.291-.223-2.81.58-3.917.84-1.157 2.126-1.84 3.56-1.887zM22.763 1c1.79-1.07 4.032-1.294 6.002-.61.35.121.582.463.478.839-.093.337-.493.597-.843.476-1.033-.359-2.145-.448-3.186-.22-.787.173-1.35.411-2.022.859-.305.203-.492.354-.79.646-.147.142-.286.293-.418.448-.028.033-.157.195-.105.127l-.01.01-.071.1-.079.11c-.207.298-.39.614-.543.943l-.045.098-.01.018-.012.034-.026.064c-.033.085-.064.17-.094.256-.06.175-.112.35-.156.528-.175.698-.21 1.406-.106 2.208.047.368-.351.682-.685.682-.404 0-.638-.317-.685-.682-.126-.978-.037-1.992.257-2.934.52-1.661 1.65-3.104 3.149-4z"/></svg>']);return Dn=function(){return e},e}function Wn(){var e=kt(["",""]);return Wn=function(){return e},e}var Nn=function(e,t){t.innerHTML=Ot(Wn(),Rt("ol-widget-login-button","Zaloguj",Ot(Dn()),!1)),function(e){In=e}(t);var n=document.querySelector("#ol-widget-login-button"),o=function(){et("service_header","click"),e.flow.login()};if(!n)throw new Error("Login button not exists");return et("service_header","view"),n.addEventListener("click",o),function(){n.removeEventListener("click",o)}},Fn=function(e,t){var n=[],o=function(){n.push(_n(e,t))},r=function(){n.push(Nn(e,t))};try{o()}catch(e){r()}return document.addEventListener("ol-login",o),document.addEventListener("ol-not-logged",r),function(){document.removeEventListener("ol-login",o),document.removeEventListener("ol-not-logged",r),n.forEach((function(e){return e()})),n.length=0}},Gn=function(){document.dispatchEvent(new CustomEvent("ol-close-dropdown"))},Hn=function(e){return{renderDropdown:function(t){return Fn(e,t)},renderButton:function(t,n){return function(e,t,n){var o=function(){e.flow.login(n)};return t.innerHTML=Ot(Tt(),jt,Pt),t.addEventListener("click",o),function(){t.removeEventListener("click",o)}}(e,t,n)},renderPromo:Rn,renderPromoMobile:function(e){return qn(e)},closeDropdown:Gn}},Kn=!1,Jn=it.setLevel;e.createWidget=function(e){if(Kn)throw new Error("Creating multiple widgets not allowed");!function(){if(!window.WP&&!document.querySelector("#wpjslib")){void 0===window.wp_sn&&(window.wp_sn="onelogin_widget");var e=document.createElement("script");e.setAttribute("id","wpjslib"),e.setAttribute("async",""),e.setAttribute("defer",""),e.setAttribute("crossorigin",""),e.setAttribute("src","https://std.wpcdn.pl/wpjslib/wpjslib-lite.js"),document.head.appendChild(e)}}(),Kn=!0,it.debug("widget v1.25.0 initialized");var t=function(e){e.domain&&(Lt=e.domain);var t=e.stateStorage||"LOCAL_STORAGE";return it.debug("storage "+t+" initialized"),St[t]}(e),n=Et(e,t),r=Hn({flow:n});return o({},n,r)},e.setLogLevel=Jn,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=olwidget.js.map
