-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsdk.js
More file actions
1 lines (1 loc) · 172 KB
/
sdk.js
File metadata and controls
1 lines (1 loc) · 172 KB
1
(()=>{var e={206:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),s=e.getVersionPrecision(n),a=Math.max(i,s),o=0,c=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(o=a-Math.min(i,s)),a-=1;a>=o;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===o)return 0;a-=1}else if(c[0][a]<c[1][a])return-1}},e.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var i=e[n];if(t(i,n))return i}},e.assign=function(e){for(var t,n,r=e,i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(s));var o=function(){var e=s[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,n=s.length;t<n;t+=1)o();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(91))&&r.__esModule?r:{default:r},s=n(18);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(){}var t,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],null&&a(t.prototype,null),n&&a(t,n),e}();t.default=o,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=c(n(92)),i=c(n(93)),s=c(n(94)),a=c(n(95)),o=c(n(17));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=o.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=o.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=o.default.find(s.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=o.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return o.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,i={},s=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(i[t]=a,s+=1):"object"==typeof a&&(n[t]=a,r+=1)})),r>0){var a=Object.keys(n),c=o.default.find(a,(function(e){return t.isOS(e)}));if(c){var u=this.satisfies(n[c]);if(void 0!==u)return u}var l=o.default.find(a,(function(e){return t.isPlatform(e)}));if(l){var d=this.satisfies(n[l]);if(void 0!==d)return d}}if(s>0){var f=Object.keys(i),p=o.default.find(f,(function(e){return t.isBrowser(e,!0)}));if(void 0!==p)return this.compareVersion(i[p])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=o.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(o.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},s=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(s,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},s=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:s.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:s.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:s.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:s.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:s.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:s.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:s.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},s=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},s=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:s.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:s.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:s.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:s.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:s.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:s.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r].call(s.exports,s,s.exports,n),s.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};(()=>{"use strict";n.d(r,{default:()=>Dt});var e="Ids",t="NotificationReceived",i="NotificationConverted",s="projectId",a="deviceId",o="configs",c="lastActive",u="serviceWorkerPath",l="subscriptionEndpoint",d="permission",f="shouldResubscribe",p="isSubscribed",h="additionalOrigin",b="flarelane_dismissed",g="flarelane_pageCount",m="flarelane_u",v="flarelane_t",w="flarelane_lv",y="flarelane_initialized",C="flarelane_initializeWithOptionsAndConfigs",x="flarelane_db",k="flarelane_db_window",S="flarelane_showPopup",P="flarelane_setDissmissed",M="flarelane_refreshWidgetState",I="flarelane_permission",A="flarelane_handlerManagerInit",N="flarelane_get",E="flarelane_getAll",O="flarelane_put",_="flarelane_delete",B="flarelane_clearTable",L=["projectId"],T={serviceWorkerPath:"/sw-staging.js"},F="https://flarelane.com/",D="https://rebrand.ly/flarelane-webpush-browser-permission",H="flarelane-subscribe-popup",R="flarelane-subscribe-widget",z="flarelane-proxy-window-popup",W="flarelane-alert-permission-denied",U={ko:{poweredBy:"플레어레인 이용 중"},en:{poweredBy:"Powered by FlareLane"}},V={ko:{subscribeTitle:"푸시 알림 구독",help:"알림이 오지 않나요?"},en:{subscribeTitle:"Allow Notifications",help:"Notifications not showing?"}},j={ko:{message:"현재 브라우저에서 지원되지 않아 크롬으로 이동합니다."},en:{message:"Not supported by the in-app browser, so it continues on Chrome."}},Z={ko:{desc:"에서 알림 권한을 요청합니다.",allow:"허용",close:"취소"},en:{desc:"Would Like to Send You Push Notifications.",allow:"Allow",close:"Close"}},G={ko:{desc:'브라우저의 알림 권한이 차단되어 있습니다. 주소창의 자물쇠 모양을 클릭하여 알림 권한을 허용해주세요. 이 방법으로 해결이 어려운 경우 <a href="'.concat(D,'" target="_blank">여기</a>를 클릭하세요.'),shortDesc:'브라우저의 알림 권한이 차단되어 있습니다. <a href="'.concat(D,'" target="_blank">여기</a>를 클릭하여 알림 권한을 허용하는 방법을 알아보세요.')},en:{desc:"Your browser's notification permission is blocked. Click the lock icon in the address bar to allow notifications. If you cannot solve this way, please click <a href=\"".concat(D,'" target="_blank">here</a>.'),shortDesc:"Your browser's notification permission is blocked. Click <a href=\"".concat(D,'" target="_blank">here</a> to learn how to allow notification permissions.')}},q='\n<svg width="15" height="14" viewBox="0 0 15 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1.55805 -8.04236e-05L0.0332031 1.52734L12.4798 13.995L14.0047 12.4675L1.55805 -8.04236e-05Z" fill="#444444" />\n <path d="M13.9721 1.52938L12.4473 0.00195312L0.000662682 12.4696L1.52551 13.997L13.9721 1.52938Z" fill="#444444" />\n</svg>\n',Y=function(e){try{return e[navigator.language.slice(0,2)]||e.ko}catch(t){return e.ko}},K={none:0,error:1,verbose:5};const J=function(){function e(){}return e.setisTracerActivate=function(){this.isTracerActivate="true"===window.localStorage.getItem("flarelane_isTracerActivate")},e.setLogLevel=function(e){var t=K[e];void 0!==t?this.logLevel=t:this.error("Cannot set ".concat(e," in setLogLevel. Please set one of none, error, verbose."))},e.log=function(e){this.logLevel<K.verbose||console.log("[FLARELANE] - ".concat(e))},e.error=function(e){this.logLevel<K.error||console.error("[FLARELANE] - ".concat(e))},e.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.isTracerActivate&&console.log("%c[FLARELANE] - Call: ".concat(e,", Args: ").concat(JSON.stringify(t,null,2)),"color:gray")},e.logLevel=K.verbose,e.isTracerActivate=!1,e}();var Q=function(){function e(){}return e.create=function(e){return document.createElement(e)},e.remove=function(e){var t=this.get(e);t&&t.remove()},e.get=function(e){return document.getElementById(e)},e.getBody=function(e){return e.document.body||e.document.getElementsByTagName("body")[0]},e.getHead=function(e){return e.document.head||e.document.getElementsByTagName("head")[0]},e.getParentWindow=function(){return window.opener||window.parent||null},e.setCss=function(e,t){if(!this.get(e)){var n=this.getHead(window),r=this.create("style");r.id=e,r.textContent=t,n.append(r)}},e.setMobileCss=function(e,t){var n="\n @media screen and (max-width: 768px) {\n ".concat(t,"\n }\n ");this.setCss(e,n)},e}(),X=function(){function e(){}return e.getPoweredByElement=function(e){var t=Q.create("a");if(t.href=F,encodeURI&&URL){var n=new URL(F);n.search="utm_source=".concat(window.location?encodeURI(window.location.host):"","&utm_medium=").concat(e?"flarelane_logo_popup":"flarelane_logo_widget"),t.href=n.href}t.setAttribute("target","_blank"),t.style.display="block",t.style.textDecoration="none",this.hidePoweredBy&&(t.style.display="none");var r=Q.create("div");r.style.cssText+="display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center;",r.style.alignItems="center";var i=Q.create("div");i.style.cssText+="display: -webkit-box; display: -ms-flexbox; display: flex;",i.innerHTML='\n<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0C2.68629 0 0 2.68629 0 6C0 9.31371 2.68629 12 6 12Z" fill="#EBEBEB"/>\n <path d="M8.04812 2.93164H3.95312V7.01914L8.04812 2.93164Z" fill="#A3A3A3"/>\n <path d="M3.95312 2.93164V7.01914L6.00063 4.97914L3.95312 2.93164Z" fill="#767676"/>\n <path d="M8.04812 4.98047H3.95312V9.06797L8.04812 4.98047Z" fill="#C2C2C2"/>\n <path d="M3.95312 4.98047V9.06797L6.00063 7.02047L3.95312 4.98047Z" fill="#A3A3A3"/>\n</svg>\n',i.style.marginRight="4px",i.style.width="12px",i.style.height="12px";var s=Q.create("span");return s.style.lineHeight="1",s.style.color="#999999",s.style.fontWeight="400",s.textContent=Y(U).poweredBy,r.append(i),r.append(s),t.append(r),t},e.getXIcon=function(){var e=Q.create("div");return e.style.cursor="pointer",e.style.padding="4px",e.innerHTML=q,e},e.getImageSize=function(e){return new Promise((function(t,n){try{J.trace("CommonDOMManager.getImageSize",e);var r=new Image;r.onload=function(){t({width:r.width/2,height:r.height/2})},r.onerror=function(){n(!1)},r.src=e}catch(e){n(e)}}))},e.hidePoweredBy=!1,e}();let $,ee;const te=new WeakMap,ne=new WeakMap,re=new WeakMap,ie=new WeakMap,se=new WeakMap;let ae={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return ne.get(e);if("objectStoreNames"===t)return e.objectStoreNames||re.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ce(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function oe(e){return"function"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(ee||(ee=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(ue(this),e),ce(te.get(this))}:function(...e){return ce(t.apply(ue(this),e))}:function(e,...n){const r=t.call(ue(this),e,...n);return re.set(r,e.sort?e.sort():[e]),ce(r)}:(e instanceof IDBTransaction&&function(e){if(ne.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{t(),r()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)}));ne.set(e,t)}(e),n=e,($||($=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>n instanceof e))?new Proxy(e,ae):e);var t,n}function ce(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{t(ce(e.result)),r()},s=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",s)}));return t.then((t=>{t instanceof IDBCursor&&te.set(t,e)})).catch((()=>{})),se.set(t,e),t}(e);if(ie.has(e))return ie.get(e);const t=oe(e);return t!==e&&(ie.set(e,t),se.set(t,e)),t}const ue=e=>se.get(e);function le(e,t,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){const a=indexedDB.open(e,t),o=ce(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(ce(a.result),e.oldVersion,e.newVersion,ce(a.transaction),e)})),n&&a.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),o.then((e=>{s&&e.addEventListener("close",(()=>s())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),o}function de(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",(e=>t(e.oldVersion,e))),ce(n).then((()=>{}))}const fe=["get","getKey","getAll","getAllKeys","count"],pe=["put","add","delete","clear"],he=new Map;function be(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(he.get(t))return he.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=pe.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!fe.includes(n))return;const s=async function(e,...t){const s=this.transaction(e,i?"readwrite":"readonly");let a=s.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),i&&s.done]))[0]};return he.set(t,s),s}var ge,me;me=ae,ae={...me,get:(e,t,n)=>be(e,t)||me.get(e,t,n),has:(e,t)=>!!be(e,t)||me.has(e,t)};var ve=new Uint8Array(16);function we(){if(!ge&&!(ge="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ge(ve)}const ye=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Ce=function(e){return"string"==typeof e&&ye.test(e)};for(var xe=[],ke=0;ke<256;++ke)xe.push((ke+256).toString(16).substr(1));const Se=function(e,t,n){var r=(e=e||{}).random||(e.rng||we)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(xe[e[t+0]]+xe[e[t+1]]+xe[e[t+2]]+xe[e[t+3]]+"-"+xe[e[t+4]]+xe[e[t+5]]+"-"+xe[e[t+6]]+xe[e[t+7]]+"-"+xe[e[t+8]]+xe[e[t+9]]+"-"+xe[e[t+10]]+xe[e[t+11]]+xe[e[t+12]]+xe[e[t+13]]+xe[e[t+14]]+xe[e[t+15]]).toLowerCase();if(!Ce(n))throw TypeError("Stringified UUID is invalid");return n}(r)};var Pe="native",Me="0.2.4",Ie=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},Ae=function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},Ne=function(){function t(){}return t.get=function(e,t){return Ie(this,void 0,void 0,(function(){var n;return Ae(this,(function(r){switch(r.label){case 0:return J.trace("Fecth:get",e,t),[4,this.getBaseUrl(t)];case 1:return n=r.sent(),[4,fetch("".concat(n).concat(e),{method:"GET",headers:this.getHeaders()})];case 2:return[2,r.sent().json()]}}))}))},t.post=function(e,t,n){return Ie(this,void 0,void 0,(function(){var r;return Ae(this,(function(i){switch(i.label){case 0:return J.trace("Fecth:post",e,t),[4,this.getBaseUrl(n)];case 1:return r=i.sent(),[4,fetch("".concat(r).concat(e),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(t)})];case 2:return[2,i.sent().json()]}}))}))},t.patch=function(e,t){return Ie(this,void 0,void 0,(function(){var n;return Ae(this,(function(r){switch(r.label){case 0:return J.trace("Fecth:patch",e,t),[4,this.getBaseUrl()];case 1:return n=r.sent(),[4,fetch("".concat(n).concat(e),{method:"PATCH",headers:this.getHeaders(),body:JSON.stringify(t)})];case 2:return[2,r.sent().json()]}}))}))},t.delete=function(e,t){return Ie(this,void 0,void 0,(function(){var n;return Ae(this,(function(r){switch(r.label){case 0:return J.trace("Fecth:delete",e,t),[4,this.getBaseUrl()];case 1:return n=r.sent(),[4,fetch("".concat(n).concat(e),{method:"DELETE",headers:this.getHeaders(),body:JSON.stringify(t)})];case 2:return[2,r.sent().json()]}}))}))},t.getHeaders=function(){return{"Content-Type":"application/json","x-flarelane-sdk-info":this.getSdkInfo()}},t.getSdkInfo=function(){return"".concat(Pe,"-").concat(Me)},t.getBaseUrl=function(t){return Ie(this,void 0,void 0,(function(){var n,r;return Ae(this,(function(i){switch(i.label){case 0:return t?(r=t,[3,3]):[3,1];case 1:return[4,qe.get(e,s)];case 2:r=i.sent(),i.label=3;case 3:return n=r,[2,"".concat("https://staging-service-api.flarelane.com/internal/v1/projects","/").concat(n)]}}))}))},t}(),Ee=function(e){return void 0!==e},Oe=function(){return!!window.postMessage||(J.error("This browser doesn't support window.postMessage()"),!1)},_e=function(e,t,n){try{if(new URL(e).origin!==new URL(t).origin){if(n)throw new Error("Please check site url or subdomain in flarelane console");return!1}return!0}catch(e){if(n)throw e;return!1}},Be=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},Le=function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},Te=function(){function t(){}return t.saveConfigs=function(t){return qe.put(e,o,t)},t.getConfigs=function(){return Be(this,void 0,void 0,(function(){var t;return Le(this,(function(n){switch(n.label){case 0:return[4,qe.get(e,o)];case 1:return t=n.sent(),this.additionalOrigin&&(t.originSiteUrl=this.additionalOrigin),[2,t]}}))}))},t.getRemoteConfigs=function(e){return Be(this,void 0,void 0,(function(){var t;return Le(this,(function(n){switch(n.label){case 0:return[4,Ne.get(this.url,e)];case 1:return t=n.sent(),this.additionalOrigin&&(t.data.originSiteUrl=this.additionalOrigin),[2,t.data]}}))}))},t.setAdditionalOrigin=function(e,n){if(e.originSiteUrl&&!_e(e.originSiteUrl,n)){var r=function(e,t){try{return(null==e?void 0:e.filter((function(e){return new URL(e).origin===new URL(t).origin}))[0])||null}catch(e){return null}}(function(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}([],e.additionalOrigins,!0),n);if(null===r)throw new Error("Please check site url or subdomain in flarelane console");return t.additionalOrigin=r,r}},t.additionalOrigin=null,t.url="/remote-params-web",t}(),Fe=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},De=function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},He=function(){function e(){}return e.inject=function(e){return Fe(this,void 0,void 0,(function(){var t=this;return De(this,(function(n){return J.trace("Iframe:inject",e),[2,new Promise((function(n,r){return Fe(t,void 0,void 0,(function(){var t,i,s;return De(this,(function(a){try{if(Q.get(this.iframeId))return[2];t=Q.getBody(window),i=Q.create("iframe"),(s=new URL(e)).pathname="iframe-staging.html",i.id=this.iframeId,i.src=s.href,i.style.display="none",i.setAttribute("sandbox","allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation"),i.addEventListener("load",(function(){n(!0)})),t.append(i)}catch(e){r(e)}return[2]}))}))}))]}))}))},e.get=function(){return Q.get(this.iframeId)||null},e.remove=function(){var e=Q.get(this.iframeId);e&&e.remove()},e.iframeId="flarelane-iframe",e}(),Re=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},ze=function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},We=function(){function e(){}return e.sendToOrigin=function(e,t,n,r){return Re(this,void 0,void 0,(function(){var i,s,a,o,c;return ze(this,(function(u){switch(u.label){case 0:return Oe()?(J.trace("sendToOrigin",e,t,n,r),(i=Q.getParentWindow())?[4,this.getSendToConfigs(r)]:[2]):[2];case 1:return s=u.sent(),a=s.id,o=s.originSiteUrl,c={type:e,data:t,id:a},n&&this.addEventListenerOnce(o,a,n,"*"===o),i.postMessage(c,o),[2]}}))}))},e.sendToIframe=function(e,t,n,r){return Re(this,void 0,void 0,(function(){var i,s,a,o,c;return ze(this,(function(u){switch(u.label){case 0:return Oe()?(J.trace("sendToIframe",e,t,n,r),(i=He.get())?[4,this.getSendToConfigs(r)]:[2]):[2];case 1:return s=u.sent(),a=s.id,o=s.proxySiteUrl,c={type:e,data:t,id:a},n&&this.addEventListenerOnce(o,a,n),i.contentWindow.postMessage(c,o),[2]}}))}))},e.sendToWindow=function(t,n,r,i){return Re(this,void 0,void 0,(function(){var s,a,o,c,u;return ze(this,(function(l){switch(l.label){case 0:return Oe()?(J.trace("sendToWindow",t,n,r,i),(s=e.windowSubscribePopup)?[4,this.getSendToConfigs(i)]:[2]):[2];case 1:return a=l.sent(),o=a.id,c=a.proxySiteUrl,u={type:t,data:n,id:o},r&&this.addEventListenerOnce(c,o,r),s.postMessage(u,c),[2]}}))}))},e.addEventListenerOnce=function(e,t,n,r){J.trace("addEventListenerOnce",e,t,n,r);var i=function(s){try{if(!r&&!_e(e,s.origin))return;if(s.data.id!==t)return;window.removeEventListener("message",i),n(s.data,(function(){window.removeEventListener("message",i)}))}catch(e){}};window.addEventListener("message",i)},e.addEventListener=function(e,t,n){J.trace("addEventListener",e,t,n);var r=function(i){try{if(e&&!n&&!_e(i.origin,e))return;t(i.data,(function(){window.removeEventListener("message",r)}))}catch(e){}};window.addEventListener("message",r)},e.getSendToConfigs=function(e){return Re(this,void 0,void 0,(function(){var t,n,r;return ze(this,(function(i){switch(i.label){case 0:return t=(null==e?void 0:e.replyId)||Se(),(n=null==e?void 0:e.origin)?[2,{id:t,proxySiteUrl:n,originSiteUrl:n}]:[3,1];case 1:return[4,Te.getConfigs()];case 2:return r=i.sent(),[2,{id:t,proxySiteUrl:r.proxySiteUrl,originSiteUrl:r.originSiteUrl}]}}))}))},e.windowSubscribePopup=null,e}(),Ue=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},Ve=function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},je=function(){function t(){}return t.init=function(t){return Ue(this,void 0,void 0,(function(){var n,r=this;return Ve(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),t?[3,2]:[4,qe.get(e,p)];case 1:return n=i.sent(),this.lastSubscribed=n,J.trace("HandlerManager.init",this.lastSubscribed),[3,3];case 2:We.addEventListener(t,(function(e){e.type===A&&(r.lastSubscribed=e.data,J.trace("HandlerManager.init",r.lastSubscribed))})),i.label=3;case 3:return[3,5];case 4:return i.sent(),J.error("HandlerManager.init"),[3,5];case 5:return[2]}}))}))},t.initProxySide=function(){return Ue(this,void 0,void 0,(function(){var t;return Ve(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,qe.get(e,p)];case 1:return t=n.sent(),[4,We.sendToOrigin(A,t)];case 2:return n.sent(),J.trace("HandlerManager.initProxySide",t),[3,4];case 3:return n.sent(),J.error("HandlerManager.initProxySide"),[3,4];case 4:return[2]}}))}))},t.setConvertedHandler=function(e){if(this.convertedHandler)J.log("A converted handler is already registered.");else if("function"==typeof e){J.trace("setConvertedHandler",e),this.convertedHandler=e;try{this.resolveConvertedNotification().catch((function(e){J.error("An error occurred in convertedHandler.".concat(e.name,"\n").concat(e.message))}))}catch(e){J.error("An error occurred in setConvertedHandler.\n".concat(e.message))}}else J.error("setConvertedHandler argument must be a function.")},t.setIsSubscribedChangeHandler=function(e){this.isSubscribedChangeHandler?J.log("A isSubscribedChange handler is already registered."):"function"==typeof e?(J.trace("setIsSubscribedChangeHandler",e),this.isSubscribedChangeHandler=e):J.error("setIsSubscribedChangeHandler argument must be a function.")},t.resolveConvertedNotification=function(){return Ue(this,void 0,void 0,(function(){var e,t;return Ve(this,(function(n){switch(n.label){case 0:return this.convertedHandler?(J.trace("resolveConvertedNotification"),[4,qe.getAll(i)]):[2];case 1:return e=n.sent(),[4,qe.clearTable(i)];case 2:return n.sent(),(t=e[e.length-1])?[4,this.convertedHandler(t)]:[3,4];case 3:n.sent(),n.label=4;case 4:return[2]}}))}))},t.resolveIsSubscribedChangeHandler=function(e){return Ue(this,void 0,void 0,(function(){var t,n;return Ve(this,(function(r){switch(r.label){case 0:if(r.trys.push([0,5,,6]),!this.isSubscribedChangeHandler)return[2];if("boolean"!=typeof e)return[2];if(t=this.lastSubscribed,this.lastSubscribed=e,J.trace("resolveIsSubscribedChangeHandler",t,e),t===e)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.isSubscribedChangeHandler(e)];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),console.error(n),[3,4];case 4:return[3,6];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},t}(),Ze=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},Ge=function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},qe=function(){function n(){}return n.get=function(e,t){return Ze(this,void 0,void 0,(function(){return Ge(this,(function(n){switch(n.label){case 0:return this.isIndirect?[4,this.getRemoteDBDataFromDispatchEvent(N,e,t)]:[3,2];case 1:case 3:case 6:return[2,n.sent()];case 2:return this.isWindowPopupIndirect?[4,this.getRemoteDBDataFromWindowPopupDispatchEvent(N,e,t)]:[3,4];case 4:return J.trace("DB:get",e,t),[4,this.getDatabase()];case 5:return[4,n.sent().get(e,t)]}}))}))},n.getAll=function(e){return Ze(this,void 0,void 0,(function(){return Ge(this,(function(t){switch(t.label){case 0:return this.isIndirect?[4,this.getRemoteDBDataFromDispatchEvent(E,e)]:[3,2];case 1:case 3:case 6:return[2,t.sent()];case 2:return this.isWindowPopupIndirect?[4,this.getRemoteDBDataFromWindowPopupDispatchEvent(E,e)]:[3,4];case 4:return J.trace("DB:getAll",e),[4,this.getDatabase()];case 5:return[4,t.sent().getAll(e)]}}))}))},n.put=function(t,n,r){return Ze(this,void 0,void 0,(function(){var i;return Ge(this,(function(s){switch(s.label){case 0:return i=null,this.isIndirect?[4,this.getRemoteDBDataFromDispatchEvent(O,t,n,r)]:[3,2];case 1:return i=s.sent(),[3,7];case 2:return this.isWindowPopupIndirect?[4,this.getRemoteDBDataFromWindowPopupDispatchEvent(O,t,n,r)]:[3,4];case 3:return i=s.sent(),[3,7];case 4:return[4,this.getDatabase()];case 5:return[4,s.sent().put(t,r,n)];case 6:i=s.sent(),s.label=7;case 7:return t===e&&n===p&&je.resolveIsSubscribedChangeHandler(r).catch((function(){})),[2,i]}}))}))},n.delete=function(e,t){return Ze(this,void 0,void 0,(function(){return Ge(this,(function(n){switch(n.label){case 0:return this.isIndirect?[4,this.getRemoteDBDataFromDispatchEvent(_,e,t)]:[3,2];case 1:case 3:case 6:return[2,n.sent()];case 2:return this.isWindowPopupIndirect?[4,this.getRemoteDBDataFromWindowPopupDispatchEvent(_,e,t)]:[3,4];case 4:return J.trace("DB:delete",e,t),[4,this.getDatabase()];case 5:return[4,n.sent().delete(e,t)]}}))}))},n.clearTable=function(e){return Ze(this,void 0,void 0,(function(){return Ge(this,(function(t){switch(t.label){case 0:return this.isIndirect?[4,this.getRemoteDBDataFromDispatchEvent(B,e)]:[3,2];case 1:case 3:case 6:return[2,t.sent()];case 2:return this.isWindowPopupIndirect?[4,this.getRemoteDBDataFromWindowPopupDispatchEvent(B,e)]:[3,4];case 4:return J.trace("DB:clearTable",e),[4,this.getDatabase()];case 5:return[4,t.sent().clear(e)]}}))}))},n.deleteDatabase=function(){return Ze(this,void 0,void 0,(function(){return Ge(this,(function(e){switch(e.label){case 0:return J.trace("DB:deleteDatabase"),[4,de(this.databaseName)];case 1:return e.sent(),[2]}}))}))},n.getDatabase=function(){return Ze(this,void 0,void 0,(function(){var e;return Ge(this,(function(t){switch(t.label){case 0:return this.shouldDbRestart&&this.idb&&(this.idb.close(),this.idb=null),this.idb?[3,2]:(this.shouldDbRestart=!1,e=this,[4,this.open()]);case 1:e.idb=t.sent(),this.idb.onerror=function(){n.shouldDbRestart=!0},t.label=2;case 2:return[2,this.idb]}}))}))},n.open=function(){return Ze(this,void 0,void 0,(function(){return Ge(this,(function(e){switch(e.label){case 0:return[4,le(this.databaseName,this.databaseVersion,{upgrade:n.upgrade,terminated:n.terminated})];case 1:return[2,e.sent()]}}))}))},n.upgrade=function(n){return Ze(this,void 0,void 0,(function(){return Ge(this,(function(r){return J.trace("DB:upgrade"),n.createObjectStore(e),n.createObjectStore(t),n.createObjectStore(i),[2]}))}))},n.dataToOriginDBEventHandler=function(e){return Ze(this,void 0,void 0,(function(){var t,r;return Ge(this,(function(i){switch(i.label){case 0:return i.trys.push([0,11,,12]),e.type!==x?[2]:(J.trace("DB:Event:".concat(x),e),t=e.data,r=null,t.method===N&&t.key?[4,n.get(t.table,t.key)]:[3,2]);case 1:return r=i.sent(),[3,10];case 2:return t.method!==E?[3,4]:[4,n.getAll(t.table)];case 3:return r=i.sent(),[3,10];case 4:return t.method===O&&t.key?[4,n.put(t.table,t.key,t.value)]:[3,6];case 5:return r=i.sent(),[3,10];case 6:return t.method===_&&t.key?[4,n.delete(t.table,t.key)]:[3,8];case 7:return r=i.sent(),[3,10];case 8:return t.method!==B?[3,10]:[4,n.clearTable(t.table)];case 9:r=i.sent(),i.label=10;case 10:return We.sendToOrigin(x,r,null,{replyId:e.id}),[3,12];case 11:return i.sent(),[3,12];case 12:return[2]}}))}))},n.dataToWindowPopupDBEventHandler=function(e){return Ze(this,void 0,void 0,(function(){var t,r;return Ge(this,(function(i){switch(i.label){case 0:return i.trys.push([0,11,,12]),e.type!==k?[2]:(J.trace("DB:Event:".concat(k),e),t=e.data,r=null,t.method===N&&t.key?[4,n.get(t.table,t.key)]:[3,2]);case 1:return r=i.sent(),[3,10];case 2:return t.method!==E?[3,4]:[4,n.getAll(t.table)];case 3:return r=i.sent(),[3,10];case 4:return t.method===O&&t.key?[4,n.put(t.table,t.key,t.value)]:[3,6];case 5:return r=i.sent(),[3,10];case 6:return t.method===_&&t.key?[4,n.delete(t.table,t.key)]:[3,8];case 7:return r=i.sent(),[3,10];case 8:return t.method!==B?[3,10]:[4,n.clearTable(t.table)];case 9:r=i.sent(),i.label=10;case 10:return We.sendToWindow(k,r,null,{replyId:e.id}),[3,12];case 11:return i.sent(),[3,12];case 12:return[2]}}))}))},n.getRemoteDBDataFromDispatchEvent=function(e,t,n,r){var i=this;return new Promise((function(s,a){J.trace("DB:getRemoteDBDataFromDispatchEvent",e,t,n,r);try{var o={method:e,table:t,key:n,value:r};We.sendToIframe(x,o,(function(e){J.trace("DB:Event:".concat(x),e),s(e.data)}),{origin:i.indirectSubdomain})}catch(e){a(e)}}))},n.getRemoteDBDataFromWindowPopupDispatchEvent=function(e,t,n,r){return new Promise((function(i,s){J.trace("DB:getRemoteDBDataFromWindowPopupDispatchEvent",e,t,n,r);try{var a={method:e,table:t,key:n,value:r};We.sendToOrigin(k,a,(function(e){J.trace("DB:Event:".concat(k),e),i(e.data)}),{origin:"*"})}catch(e){s(e)}}))},n.terminated=function(){J.trace("DB:terminated"),n.shouldDbRestart=!0},n.isIndirect=!1,n.isWindowPopupIndirect=!1,n.databaseName="FlareLane_SDK_DB",n.databaseVersion=1,n.idb=null,n.shouldDbRestart=!1,n}(),Ye="granted",Ke="denied",Je="flarelane_getCurrentPermission",Qe="flarelane_getBrowserPermission",Xe=n(206);function $e(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,i=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var s=r[0],a=r.index,o=Object.create(null),c=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?o[n.name]=r[e].split(n.prefix+n.suffix).map((function(e){return i(e,n)})):o[n.name]=i(r[e],n)},u=1;u<r.length;u++)c(u);return{path:s,index:a,params:o}}}(rt(e,n,t),n,t)}function et(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function tt(e){return e&&e.sensitive?"":"i"}function nt(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,i=void 0!==r&&r,s=n.start,a=void 0===s||s,o=n.end,c=void 0===o||o,u=n.encode,l=void 0===u?function(e){return e}:u,d=n.delimiter,f=void 0===d?"/#?":d,p=n.endsWith,h="[".concat(et(void 0===p?"":p),"]|$"),b="[".concat(et(f),"]"),g=a?"^":"",m=0,v=e;m<v.length;m++){var w=v[m];if("string"==typeof w)g+=et(l(w));else{var y=et(l(w.prefix)),C=et(l(w.suffix));if(w.pattern)if(t&&t.push(w),y||C)if("+"===w.modifier||"*"===w.modifier){var x="*"===w.modifier?"?":"";g+="(?:".concat(y,"((?:").concat(w.pattern,")(?:").concat(C).concat(y,"(?:").concat(w.pattern,"))*)").concat(C,")").concat(x)}else g+="(?:".concat(y,"(").concat(w.pattern,")").concat(C,")").concat(w.modifier);else"+"===w.modifier||"*"===w.modifier?g+="((?:".concat(w.pattern,")").concat(w.modifier,")"):g+="(".concat(w.pattern,")").concat(w.modifier);else g+="(?:".concat(y).concat(C,")").concat(w.modifier)}}if(c)i||(g+="".concat(b,"?")),g+=n.endsWith?"(?=".concat(h,")"):"$";else{var k=e[e.length-1],S="string"==typeof k?b.indexOf(k[k.length-1])>-1:void 0===k;i||(g+="(?:".concat(b,"(?=").concat(h,"))?")),S||(g+="(?=".concat(b,"|").concat(h,")"))}return new RegExp(g,tt(n))}(function(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var i=1,s="";if("?"===e[o=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<e.length;)if("\\"!==e[o]){if(")"===e[o]){if(0==--i){o++;break}}else if("("===e[o]&&(i++,"?"!==e[o+1]))throw new TypeError("Capturing groups are not allowed at ".concat(o));s+=e[o++]}else s+=e[o++]+e[o++];if(i)throw new TypeError("Unbalanced pattern at ".concat(n));if(!s)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:s}),n=o}else{for(var a="",o=n+1;o<e.length;){var c=e.charCodeAt(o);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;a+=e[o++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=o}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,s="[^".concat(et(t.delimiter||"/#?"),"]+?"),a=[],o=0,c=0,u="",l=function(e){if(c<n.length&&n[c].type===e)return n[c++].value},d=function(e){var t=l(e);if(void 0!==t)return t;var r=n[c],i=r.type,s=r.index;throw new TypeError("Unexpected ".concat(i," at ").concat(s,", expected ").concat(e))},f=function(){for(var e,t="";e=l("CHAR")||l("ESCAPED_CHAR");)t+=e;return t};c<n.length;){var p=l("CHAR"),h=l("NAME"),b=l("PATTERN");if(h||b){var g=p||"";-1===i.indexOf(g)&&(u+=g,g=""),u&&(a.push(u),u=""),a.push({name:h||o++,prefix:g,suffix:"",pattern:b||s,modifier:l("MODIFIER")||""})}else{var m=p||l("ESCAPED_CHAR");if(m)u+=m;else if(u&&(a.push(u),u=""),l("OPEN")){g=f();var v=l("NAME")||"",w=l("PATTERN")||"",y=f();d("CLOSE"),a.push({name:v||(w?o++:""),pattern:v&&!w?s:w,prefix:g,suffix:y,modifier:l("MODIFIER")||""})}else d("END")}}return a}(e,n),t,n)}function rt(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,i=n.exec(e.source);i;)t.push({name:i[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),i=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return rt(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),tt(n))}(e,t,n):nt(e,t,n)}var it=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},st=function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},at=function(){function e(){}return e.isPathMatched=function(e,t){try{var n=t.map((function(e){return e.replace(/\*/g,"(.*)")}));return n.map((function(t){return $e(t)(e)})).some((function(e){return e}))}catch(e){return!1}},e.isWidgetPathMatched=function(e){return it(this,void 0,void 0,(function(){var t,n;return st(this,(function(r){switch(r.label){case 0:return t=this.getPath(e),[4,Te.getConfigs()];case 1:return n=r.sent(),[2,this.isPathMatched(t,n.widgetConfig.allowedPaths)]}}))}))},e.pathHooking=function(){var t=history.pushState;history.pushState=function(){t.apply(history,arguments),e.setPath(location.pathname).then((function(){})).catch((function(){}))};var n=history.replaceState;history.replaceState=function(){n.apply(history,arguments),e.setPath(location.pathname).then((function(){})).catch((function(){}))}},e.setPath=function(e,t){return it(this,void 0,void 0,(function(){return st(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),this.fixedPath=e,this.pageCount(e),t?[2]:[4,xt.checkIsWidgetAllowedByPath()];case 1:return n.sent(),_t.shouldPromptSubscribeFunc?[4,_t.shouldPromptSubscribeFunc()]:[3,3];case 2:n.sent(),n.label=3;case 3:return[3,5];case 4:return n.sent(),[3,5];case 5:return[2]}}))}))},e.getPath=function(e){return e||this.fixedPath||location.pathname},e.pageCount=function(e){var t=sessionStorage.getItem(w),n=this.getPageCount(),r=function(){localStorage.setItem(g,"".concat(n+1)),sessionStorage.setItem(w,e)};t?t!==e&&r():r()},e.getPageCount=function(){var e=Number(localStorage.getItem(g));return Number.isNaN(e)||!Number.isFinite(e)||!Number.isSafeInteger(e)||e<0?0:e},e.fixedPath=null,e.fixedWidgetAllowedPaths=null,e.lastPath=null,e}(),ot=function(){var e=(0,Xe.getParser)(window.navigator.userAgent).getPlatform().type;return"mobile"===e||"tablet"===e?"webMobile":"webDesktop"},ct=[{type:"mobile",name:"samsung internet"},{type:"tablet",name:"samsung internet"},{type:"mobile",name:"naver whale"},{type:"tablet",name:"naver whale"}],ut=function(){function e(){}return e.showPermissionDenied=function(){var e=this;try{J.trace("AlertDOMManager.showPermissionDenied"),Q.remove(this.permissionDeniedId),this.setPermissionDeniedCss();var t=Y(G),n=Q.create("div");n.id=this.permissionDeniedId,n.className=this.permissionDeniedCssClassNames.container;var r=Q.create("span");if(r.className=this.permissionDeniedCssClassNames.desc,function(){for(var e=(0,Xe.getParser)(window.navigator.userAgent),t=e.getBrowserName(),n=e.getPlatform().type,r=0;r<ct.length;r++)if(t.toLowerCase().indexOf(ct[r].name)>-1&&n==ct[r].type)return!0;return!1}())r.innerHTML=t.shortDesc,n.append(r);else{r.innerHTML=t.desc;var i=Q.create("div");i.className=this.permissionDeniedCssClassNames.img,i.innerHTML='\n<svg width="270" height="60" viewBox="0 0 270 60" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_6210_12520)">\n <path d="M269.662 -0.0078125H-0.337891V59.9922H269.662V-0.0078125Z" fill="#E1E4E8" />\n <path d="M269.662 11.2422H-0.337891V48.7422H269.662V11.2422Z" fill="white" />\n <path\n d="M47.002 15.748H269.662V44.248H47.002C43.2226 44.248 39.5981 42.7467 36.9257 40.0743C34.2533 37.4019 32.752 33.7774 32.752 29.998C32.752 26.2187 34.2533 22.5942 36.9257 19.9218C39.5981 17.2494 43.2226 15.748 47.002 15.748Z"\n fill="#F1F3F4"\n />\n <path\n d="M128.062 32.6313L129.33 32.7888C129.17 33.4629 128.79 34.0645 128.25 34.4988C127.644 34.9281 126.914 35.1444 126.172 35.1138C125.705 35.1384 125.239 35.0635 124.803 34.8942C124.367 34.7248 123.972 34.4648 123.645 34.1313C122.989 33.3725 122.655 32.3875 122.715 31.3863C122.65 30.3522 122.989 29.3334 123.66 28.5438C123.971 28.2098 124.35 27.9465 124.772 27.7718C125.194 27.5971 125.649 27.5151 126.105 27.5313C126.549 27.5166 126.991 27.5974 127.401 27.7682C127.811 27.939 128.18 28.1958 128.482 28.5213C129.138 29.2974 129.469 30.2971 129.405 31.3113C129.405 31.3863 129.405 31.4913 129.405 31.6413H123.99C123.994 32.3128 124.236 32.9611 124.672 33.4713C124.865 33.6747 125.098 33.8357 125.356 33.9442C125.614 34.0527 125.892 34.1062 126.172 34.1013C126.585 34.1111 126.99 33.9875 127.327 33.7488C127.673 33.4532 127.928 33.0657 128.062 32.6313ZM124.027 30.6438H128.077C128.063 30.1501 127.901 29.6719 127.612 29.2713C127.436 29.0397 127.21 28.8516 126.95 28.7216C126.69 28.5915 126.403 28.523 126.112 28.5213C125.848 28.5137 125.586 28.5603 125.341 28.6584C125.096 28.7564 124.873 28.9038 124.687 29.0913C124.48 29.2933 124.315 29.5347 124.201 29.8012C124.088 30.0677 124.029 30.3542 124.027 30.6438Z"\n fill="#CCCCCC"\n />\n <path\n d="M130.057 34.963L132.704 31.213L130.252 27.748H131.789L132.899 29.4505C133.109 29.773 133.282 30.043 133.409 30.2605C133.604 29.9605 133.792 29.698 133.957 29.4655L135.179 27.748H136.679L134.174 31.1605L136.874 35.0005H135.374L133.874 32.7505L133.477 32.143L131.572 35.0005L130.057 34.963Z"\n fill="#CCCCCC"\n />\n <path\n d="M142.596 34.0713C142.21 34.4191 141.765 34.6958 141.283 34.8888C140.849 35.0503 140.389 35.1316 139.926 35.1288C139.261 35.1724 138.605 34.9635 138.088 34.5438C137.764 34.2325 137.549 33.8241 137.478 33.3803C137.406 32.9365 137.481 32.4813 137.691 32.0838C137.838 31.7851 138.057 31.5275 138.328 31.3338C138.601 31.1557 138.9 31.0192 139.213 30.9288C139.572 30.8483 139.935 30.7882 140.301 30.7488C141.045 30.6775 141.78 30.5369 142.498 30.3288C142.498 30.1563 142.498 30.0513 142.498 30.0063C142.518 29.8151 142.497 29.6218 142.436 29.4394C142.375 29.2571 142.276 29.0898 142.146 28.9488C141.745 28.642 141.246 28.4925 140.743 28.5288C140.296 28.4951 139.85 28.6027 139.468 28.8363C139.146 29.1124 138.929 29.4912 138.853 29.9088L137.653 29.7438C137.731 29.2917 137.916 28.8648 138.193 28.4988C138.475 28.1489 138.853 27.8884 139.281 27.7488C139.809 27.5659 140.364 27.477 140.923 27.4863C141.432 27.4713 141.939 27.5449 142.423 27.7038C142.752 27.8103 143.047 28.0018 143.278 28.2588C143.47 28.5018 143.601 28.7872 143.661 29.0913C143.713 29.4663 143.733 29.8452 143.721 30.2238V31.8663C143.702 32.5898 143.73 33.3137 143.803 34.0338C143.857 34.3387 143.961 34.6327 144.111 34.9038H142.828C142.705 34.6409 142.627 34.3596 142.596 34.0713ZM142.498 31.3263C141.848 31.556 141.173 31.712 140.488 31.7913C140.122 31.8282 139.761 31.9113 139.416 32.0388C139.216 32.117 139.045 32.2561 138.928 32.4363C138.792 32.6566 138.737 32.9179 138.774 33.1744C138.811 33.4308 138.937 33.6661 139.131 33.8388C139.441 34.0771 139.828 34.1944 140.218 34.1688C140.661 34.1777 141.098 34.069 141.486 33.8538C141.84 33.6627 142.124 33.3631 142.296 32.9988C142.451 32.6081 142.52 32.1886 142.498 31.7688V31.3263Z"\n fill="#CCCCCC"\n />\n <path\n d="M145.641 34.9648V27.7498H146.743V28.7698C146.968 28.4122 147.28 28.1179 147.651 27.9148C148.044 27.6921 148.489 27.5782 148.941 27.5848C149.404 27.5652 149.863 27.6826 150.261 27.9223C150.613 28.1364 150.879 28.4685 151.011 28.8598C151.243 28.4701 151.572 28.1476 151.967 27.924C152.361 27.7004 152.807 27.5835 153.261 27.5848C153.563 27.565 153.867 27.608 154.152 27.7113C154.437 27.8146 154.698 27.9758 154.918 28.1848C155.331 28.6951 155.53 29.3457 155.473 29.9998V34.9798H154.251V30.3973C154.265 30.0382 154.225 29.6791 154.131 29.3323C154.047 29.1162 153.894 28.9342 153.696 28.8148C153.471 28.6744 153.21 28.6039 152.946 28.6123C152.71 28.6059 152.475 28.6479 152.255 28.7356C152.036 28.8233 151.837 28.9549 151.671 29.1223C151.296 29.578 151.116 30.1624 151.168 30.7498V34.9648H149.938V30.2548C149.97 29.8234 149.865 29.393 149.638 29.0248C149.52 28.8822 149.368 28.7703 149.197 28.6984C149.026 28.6266 148.84 28.5971 148.656 28.6123C148.316 28.6127 147.983 28.7089 147.696 28.8898C147.397 29.0723 147.171 29.3535 147.058 29.6848C146.905 30.1694 146.836 30.6768 146.856 31.1848V34.9348L145.641 34.9648Z"\n fill="#CCCCCC"\n />\n <path\n d="M157.297 37.7473V27.7497H158.414V28.6947C158.648 28.3554 158.952 28.0713 159.307 27.8622C159.682 27.6698 160.1 27.5744 160.522 27.5847C161.103 27.5766 161.673 27.7439 162.157 28.0647C162.639 28.4001 163.012 28.8695 163.229 29.4147C163.474 30.0196 163.597 30.6672 163.589 31.3197C163.602 32.0104 163.466 32.6958 163.192 33.3297C162.938 33.883 162.522 34.3459 161.999 34.6572C161.522 34.9624 160.968 35.1262 160.402 35.1297C160.018 35.1378 159.638 35.0474 159.299 34.8673C158.989 34.7087 158.715 34.4863 158.497 34.2147V37.7473H157.297ZM158.407 31.3797C158.352 32.1183 158.562 32.8522 158.999 33.4497C159.161 33.6593 159.369 33.8285 159.607 33.9443C159.845 34.0601 160.107 34.1193 160.372 34.1173C160.643 34.1162 160.91 34.0535 161.153 33.9339C161.396 33.8144 161.608 33.6411 161.774 33.4272C162.213 32.802 162.42 32.0435 162.359 31.2822C162.413 30.5449 162.212 29.8114 161.789 29.2047C161.631 28.9921 161.425 28.8191 161.188 28.6994C160.951 28.5797 160.69 28.5165 160.424 28.5147C160.146 28.5153 159.871 28.5822 159.623 28.71C159.375 28.8378 159.161 29.0228 158.999 29.2497C158.56 29.8692 158.35 30.6224 158.407 31.3797Z"\n fill="#CCCCCC"\n />\n <path d="M165.045 34.9637V24.9512H166.275V34.9637H165.045Z" fill="#CCCCCC" />\n <path\n d="M173.144 32.6318L174.419 32.7893C174.252 33.4738 173.858 34.0816 173.302 34.5143C172.604 34.974 171.773 35.1875 170.94 35.1209C170.107 35.0544 169.32 34.7115 168.704 34.1468C168.043 33.3908 167.706 32.4045 167.767 31.4018C167.713 30.3627 168.065 29.3432 168.749 28.5593C169.061 28.2257 169.44 27.9627 169.862 27.788C170.284 27.6134 170.738 27.5311 171.194 27.5468C171.638 27.5321 172.08 27.6129 172.491 27.7837C172.901 27.9545 173.269 28.2113 173.572 28.5368C174.228 29.3129 174.558 30.3126 174.494 31.3268C174.494 31.4018 174.494 31.5068 174.494 31.6568H169.087C169.085 32.328 169.325 32.9775 169.762 33.4868C169.954 33.6902 170.187 33.8512 170.445 33.9597C170.704 34.0682 170.982 34.1217 171.262 34.1168C171.675 34.1277 172.08 34.004 172.417 33.7643C172.762 33.4637 173.014 33.0708 173.144 32.6318ZM169.109 30.6443H173.159C173.148 30.15 172.986 29.6709 172.694 29.2718C172.519 29.0398 172.292 28.8514 172.032 28.7213C171.772 28.5912 171.485 28.523 171.194 28.5218C170.93 28.5151 170.668 28.5621 170.423 28.6601C170.178 28.7581 169.956 28.905 169.769 29.0918C169.356 29.5041 169.12 30.0608 169.109 30.6443Z"\n fill="#CCCCCC"\n />\n <path d="M176.309 34.9634V33.5684H177.704V34.9634H176.309Z" fill="#CCCCCC" />\n <path\n d="M184.573 32.3083L185.788 32.4658C185.696 33.2202 185.334 33.9156 184.768 34.4233C184.212 34.9002 183.498 35.1517 182.766 35.1283C182.32 35.1476 181.876 35.0705 181.463 34.9022C181.05 34.7339 180.678 34.4785 180.373 34.1533C179.724 33.3742 179.399 32.3753 179.466 31.3633C179.454 30.6589 179.586 29.9595 179.856 29.3083C180.092 28.7484 180.509 28.2837 181.041 27.9883C181.571 27.6953 182.167 27.543 182.773 27.5458C183.468 27.5154 184.152 27.7275 184.708 28.1458C185.222 28.5763 185.563 29.1784 185.668 29.8408L184.498 29.9983C184.421 29.5744 184.208 29.1871 183.891 28.8958C183.597 28.6503 183.224 28.5197 182.841 28.5283C182.557 28.5218 182.275 28.5782 182.016 28.6937C181.756 28.8091 181.526 28.9806 181.341 29.1958C180.906 29.8084 180.701 30.5547 180.763 31.3033C180.701 32.0534 180.896 32.8023 181.318 33.4258C181.495 33.6401 181.719 33.811 181.973 33.9254C182.226 34.0398 182.503 34.0947 182.781 34.0858C183.226 34.1035 183.66 33.9444 183.988 33.6433C184.333 33.2806 184.541 32.8081 184.573 32.3083Z"\n fill="#CCCCCC"\n />\n <path\n d="M186.381 31.3411C186.334 30.7895 186.41 30.2345 186.603 29.7158C186.796 29.1971 187.102 28.7277 187.498 28.3411C188.124 27.8049 188.924 27.5167 189.748 27.5311C190.205 27.5092 190.662 27.584 191.089 27.7507C191.515 27.9175 191.902 28.1723 192.223 28.4986C192.552 28.8652 192.805 29.293 192.969 29.7576C193.132 30.2221 193.202 30.7143 193.176 31.2061C193.209 31.9638 193.065 32.7188 192.756 33.4111C192.48 33.938 192.055 34.3714 191.533 34.6561C190.996 34.9512 190.391 35.1036 189.778 35.0986C189.323 35.1169 188.868 35.0396 188.445 34.8717C188.021 34.7037 187.637 34.4489 187.318 34.1236C186.656 33.3528 186.32 32.3551 186.381 31.3411ZM187.641 31.3411C187.584 32.0867 187.8 32.8275 188.248 33.4261C188.433 33.6434 188.663 33.8178 188.922 33.937C189.181 34.0561 189.463 34.1173 189.748 34.1161C190.034 34.1184 190.317 34.0571 190.577 33.9364C190.836 33.8158 191.065 33.6389 191.248 33.4186C191.701 32.8078 191.916 32.0538 191.856 31.2961C191.909 30.5647 191.693 29.839 191.248 29.2561C191.058 29.0473 190.827 28.8804 190.569 28.766C190.311 28.6515 190.032 28.592 189.75 28.5913C189.467 28.5906 189.188 28.6487 188.93 28.7619C188.671 28.875 188.439 29.0408 188.248 29.2486C187.797 29.8485 187.581 30.5928 187.641 31.3411Z"\n fill="#CCCCCC"\n />\n <path\n d="M194.617 34.9635V27.7485H195.75V28.7685C195.973 28.4094 196.285 28.1147 196.657 27.9135C197.05 27.6898 197.495 27.5759 197.947 27.5835C198.411 27.5648 198.87 27.6821 199.267 27.921C199.618 28.1375 199.883 28.4688 200.017 28.8585C200.249 28.4683 200.578 28.1454 200.973 27.9217C201.367 27.6981 201.814 27.5815 202.267 27.5835C202.57 27.5668 202.872 27.6113 203.157 27.7144C203.442 27.8175 203.703 27.9771 203.925 28.1835C204.348 28.6981 204.555 29.3568 204.502 30.021V35.001H203.25V30.396C203.268 30.0368 203.228 29.6771 203.13 29.331C203.049 29.1134 202.895 28.9306 202.695 28.8135C202.471 28.671 202.21 28.6003 201.945 28.611C201.71 28.6048 201.476 28.6468 201.258 28.7345C201.04 28.8223 200.842 28.9538 200.677 29.121C200.3 29.5756 200.117 30.1601 200.167 30.7485V34.9635H198.937V30.2535C198.969 29.8221 198.864 29.3917 198.637 29.0235C198.519 28.8799 198.368 28.7673 198.197 28.6954C198.026 28.6235 197.84 28.5945 197.655 28.611C197.315 28.6127 196.983 28.7087 196.695 28.8885C196.4 29.0755 196.176 29.3552 196.057 29.6835C195.91 30.1695 195.845 30.6762 195.862 31.1835V34.9335L194.617 34.9635Z"\n fill="#CCCCCC"\n />\n <path d="M270.338 -0.0078125H247.035V59.9922H270.338V-0.0078125Z" fill="url(#paint0_linear_6210_12520)" />\n <path\n d="M68.9986 55.2433C82.9452 55.2433 94.2511 43.9374 94.2511 29.9908C94.2511 16.0442 82.9452 4.73828 68.9986 4.73828C55.052 4.73828 43.7461 16.0442 43.7461 29.9908C43.7461 43.9374 55.052 55.2433 68.9986 55.2433Z"\n stroke="white"\n stroke-width="5"\n stroke-miterlimit="10"\n />\n <path d="M68.9987 54.5606C75.2036 54.5696 81.1808 52.2243 85.7237 47.998H52.2812C56.8219 52.2232 62.7964 54.5685 68.9987 54.5606Z" fill="white" />\n <path d="M68.9987 5.4219C62.7936 5.41431 56.8176 7.76558 52.2812 11.9994H85.7237C81.1851 7.76446 75.2063 5.41316 68.9987 5.4219Z" fill="white" />\n <path\n d="M93.576 29.998C93.5783 26.6185 92.882 23.2751 91.5307 20.1775C90.1794 17.0799 88.2023 14.2952 85.7235 11.998H52.281C49.8039 14.2965 47.8278 17.0815 46.4765 20.1788C45.1252 23.276 44.4277 26.6188 44.4277 29.998C44.4277 33.3773 45.1252 36.7201 46.4765 39.8173C47.8278 42.9146 49.8039 45.6996 52.281 47.998H85.7235C88.2023 45.7009 90.1794 42.9162 91.5307 39.8186C92.882 36.721 93.5783 33.3775 93.576 29.998Z"\n fill="#F1F3F4"\n />\n <path\n d="M74.7896 24.3594H63.2171C61.7715 24.3594 60.5996 25.5313 60.5996 26.9769V37.2744C60.5996 38.72 61.7715 39.8919 63.2171 39.8919H74.7896C76.2352 39.8919 77.4071 38.72 77.4071 37.2744V26.9769C77.4071 25.5313 76.2352 24.3594 74.7896 24.3594Z"\n fill="#5F6368"\n />\n <path\n d="M68.9991 30.3973C71.8074 30.3973 74.0841 27.6942 74.0841 24.3598C74.0841 21.0253 71.8074 18.3223 68.9991 18.3223C66.1907 18.3223 63.9141 21.0253 63.9141 24.3598C63.9141 27.6942 66.1907 30.3973 68.9991 30.3973Z"\n stroke="#5F6368"\n stroke-width="2.5"\n stroke-miterlimit="10"\n />\n <path\n d="M-4.3434 31.4984C-4.03899 33.0447 -3.28309 34.4662 -2.17118 35.5832C-1.05927 36.7001 0.358757 37.4625 1.90374 37.7739C3.44872 38.0853 5.05134 37.9318 6.50912 37.3327C7.9669 36.7337 9.21443 35.7161 10.0941 34.4084C10.5279 33.7611 10.864 33.0535 11.0916 32.3084C11.1373 32.1374 11.1149 31.9554 11.029 31.8007C10.9431 31.646 10.8004 31.5307 10.6311 31.4791C10.4619 31.4276 10.2792 31.4438 10.1216 31.5243C9.96406 31.6049 9.84394 31.7434 9.7866 31.9109C9.61389 32.5345 9.34843 33.1286 8.9991 33.6734C8.51509 34.3982 7.89245 35.0201 7.16706 35.5033C6.44167 35.9865 5.62785 36.3213 4.77248 36.4886C3.91711 36.656 3.03709 36.6524 2.1831 36.4781C1.32912 36.3039 0.518048 35.9624 -0.203398 35.4734C-0.925144 34.9923 -1.54411 34.3726 -2.02435 33.6503C-2.5046 32.928 -2.83654 32.1175 -3.0009 31.2659C-3.17329 30.4147 -3.17385 29.5378 -3.00255 28.6864C-2.83125 27.8351 -2.49155 27.0266 -2.0034 26.3084C-1.52233 25.5866 -0.90266 24.9676 -0.180367 24.4874C0.541926 24.0072 1.35244 23.6752 2.2041 23.5109C3.498 23.2561 4.83865 23.3976 6.05091 23.9167C7.26316 24.4359 8.29064 25.3086 8.9991 26.4209L7.5366 27.2309C7.4156 27.2989 7.31794 27.4019 7.25639 27.5263C7.19484 27.6508 7.17226 27.7909 7.1916 27.9284C7.21049 28.0644 7.26998 28.1916 7.36231 28.2933C7.45464 28.395 7.5755 28.4665 7.7091 28.4984L10.6416 29.1884C10.8074 29.2269 10.9816 29.2022 11.1301 29.1189C11.2785 29.0357 11.3905 28.8999 11.4441 28.7384L12.4116 25.8884C12.4573 25.7568 12.4616 25.6145 12.4241 25.4805C12.3865 25.3464 12.3089 25.227 12.2016 25.1384C12.0969 25.0553 11.9706 25.0041 11.8376 24.9908C11.7046 24.9775 11.5707 25.0027 11.4516 25.0634L10.2216 25.7534C9.37085 24.3911 8.12672 23.319 6.65367 22.6789C5.18061 22.0388 3.54799 21.8608 1.9716 22.1684C-0.102266 22.5697 -1.93211 23.7776 -3.11613 25.5269C-4.30014 27.2762 -4.74154 29.4239 -4.3434 31.4984Z"\n fill="#CCCCCC"\n />\n <path d="M-0.00170898 59.9922L23.3008 59.9922L23.3008 -0.0078125L-0.00170374 -0.00781454L-0.00170898 59.9922Z" fill="url(#paint1_linear_6210_12520)" />\n </g>\n <defs>\n <linearGradient id="paint0_linear_6210_12520" x1="247.035" y1="29.9922" x2="270.338" y2="29.9922" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0" />\n <stop offset="0.52" stop-color="#FAFAFA" stop-opacity="0.54" />\n <stop offset="0.97" stop-color="#F5F5F5" />\n </linearGradient>\n <linearGradient id="paint1_linear_6210_12520" x1="23.3008" y1="29.9922" x2="-0.00170636" y2="29.9922" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0" />\n <stop offset="0.52" stop-color="#FAFAFA" stop-opacity="0.54" />\n <stop offset="0.97" stop-color="#F5F5F5" />\n </linearGradient>\n <clipPath id="clip0_6210_12520">\n <rect width="270" height="60" fill="white" />\n </clipPath>\n </defs>\n</svg>\n',n.append(r),n.append(i)}var s=X.getXIcon();s.className=this.permissionDeniedCssClassNames.xicon,s.addEventListener("click",(function(t){t.stopPropagation(),Q.remove(e.permissionDeniedId)})),n.append(s),Q.getBody(window).append(n)}catch(e){J.error("An error occurred in permission denied alert.\n".concat(e.message))}},e.setPermissionDeniedCss=function(){Q.setCss(this.permissionDeniedStyleId,"\n .".concat(this.permissionDeniedCssClassNames.container," {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: fixed;\n z-index: 16777199;\n top: 0;\n left: 0;\n width: 100%;\n padding: 20px 56px;\n background-color: #f5f5f7;\n -webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.12);\n box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.12);\n -webkit-animation-name: flarelane-alert-slide-down;\n animation-name: flarelane-alert-slide-down;\n -webkit-animation-duration: 0.2s;\n animation-duration: 0.2s;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -moz-tap-highlight-color: transparent;\n -webkit-tap-highlight-color: transparent;\n font-family: -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n 'Noto Color Emoji' !important;\n }\n\n @-webkit-keyframes flarelane-alert-slide-down {\n 0% {\n -webkit-transform: translate(0, -100%);\n transform: translate(0, -100%);\n }\n \n 100% {\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n }\n }\n\n\n @keyframes flarelane-alert-slide-down {\n 0% {\n -webkit-transform: translate(0, -100%);\n transform: translate(0, -100%);\n }\n \n 100% {\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n }\n }\n\n .").concat(this.permissionDeniedCssClassNames.container," a, .").concat(this.permissionDeniedCssClassNames.container," a:hover, .").concat(this.permissionDeniedCssClassNames.container," a:active {\n color: #537cbd;\n text-decoration: none;\n outline: none;\n background-color: transparent;\n }\n\n .").concat(this.permissionDeniedCssClassNames.desc," {\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n color: #333333;\n }\n\n .").concat(this.permissionDeniedCssClassNames.img," {\n margin-top: 20px;\n }\n\n .").concat(this.permissionDeniedCssClassNames.xicon," {\n position: absolute;\n top: 19px;\n right: 28px;\n }\n "))},e.permissionDeniedStyleId="".concat(W,"-style"),e.permissionDeniedId=W,e.permissionDeniedCssClassNames={container:"".concat(W,"-container"),desc:"".concat(W,"-desc"),img:"".concat(W,"-img"),xicon:"".concat(W,"-xicon")},e}(),lt=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},dt=function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},ft=function(){function e(){}return e.showProxyPopup=function(){return lt(this,void 0,void 0,(function(){var t,n,r,i,s,a,o,c,u,l,d,f=this;return dt(this,(function(p){switch(p.label){case 0:return p.trys.push([0,3,,4]),J.trace("WindowPopupDOMManager.showProxyPopup"),this.isProxyPopupShowing||Q.get(this.proxyPopupId)?[2]:(this.isProxyPopupShowing=!0,t=Y(Z),[4,Te.getConfigs()]);case 1:return n=p.sent(),this.setProxyPopupCss(),(r=Q.create("div")).id=this.proxyPopupId,r.className=this.proxyPopupCssClassNames.container,(i=Q.create("div")).className=this.proxyPopupCssClassNames.icon,i.innerHTML='\n<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_6275_14870)">\n <path\n d="M18.0004 35.9991C24.2829 35.9991 29.3759 35.35 29.3759 34.5493C29.3759 33.7487 24.2829 33.0996 18.0004 33.0996C11.718 33.0996 6.625 33.7487 6.625 34.5493C6.625 35.35 11.718 35.9991 18.0004 35.9991Z"\n fill="black"\n fill-opacity="0.15"\n />\n <path\n d="M6.83874 26.0914C6.43404 26.0934 6.03521 25.9944 5.67832 25.8034C5.32144 25.6124 5.01775 25.3354 4.79472 24.9974C4.54666 24.5878 4.45077 24.1038 4.52391 23.6305C4.59705 23.1571 4.83453 22.7247 5.19464 22.4092L7.32753 20.5415V12.9815C7.37852 10.1503 8.51481 7.44695 10.5014 5.43064C12.488 3.41432 15.1729 2.23925 18.0009 2.14844C20.8273 2.24148 23.51 3.41754 25.4947 5.43362C27.4794 7.4497 28.6145 10.1517 28.6654 12.9815V20.5237L30.7983 22.3914C31.1628 22.7078 31.4032 23.1436 31.4764 23.6209C31.5497 24.0983 31.4511 24.5861 31.1982 24.9974C30.9752 25.3354 30.6715 25.6124 30.3146 25.8034C29.9577 25.9944 29.5589 26.0934 29.1542 26.0914H6.83874Z"\n fill="#AAAAAA"\n />\n <path\n d="M22.5076 27.3984C22.5076 28.5944 22.0329 29.7413 21.1879 30.587C20.3429 31.4327 19.1968 31.9078 18.0018 31.9078C16.8068 31.9078 15.6608 31.4327 14.8158 30.587C13.9708 29.7413 13.4961 28.5944 13.4961 27.3984H22.5076Z"\n fill="#AAAAAA"\n />\n <path\n d="M15.0859 2.84275C15.1277 2.07489 15.4619 1.35225 16.0198 0.823473C16.5778 0.294698 17.3169 0 18.0853 0C18.8537 0 19.5929 0.294698 20.1508 0.823473C20.7087 1.35225 21.0429 2.07489 21.0847 2.84275H15.0859Z"\n fill="#AAAAAA"\n />\n <path d="M9.80664 11.5138C9.80664 8.23192 12.3128 4.71875 16.0276 4.71875" stroke="white" stroke-width="1.2" stroke-miterlimit="10" />\n </g>\n <defs>\n <clipPath id="clip0_6275_14870">\n <rect width="36" height="36" fill="white" />\n </clipPath>\n </defs>\n</svg>\n',r.append(i),(s=Q.create("span")).className=this.proxyPopupCssClassNames.desc,s.textContent='"'.concat(n.siteName,'" ').concat(t.desc),r.append(s),(a=Q.create("div")).className=this.proxyPopupCssClassNames.buttonWrap,a.id=this.buttonWrapId,(o=Q.create("div")).className=this.proxyPopupCssClassNames.button,o.style.border="0",o.style.backgroundColor="#333333",o.style.color="#ffffff",o.textContent=t.allow,o.addEventListener("click",(function(t){return lt(f,void 0,void 0,(function(){return dt(this,(function(n){switch(n.label){case 0:return t.stopPropagation(),[4,e.proxyPopupAllowHandler()];case 1:return n.sent(),[2]}}))}))})),(c=Q.create("div")).className=this.proxyPopupCssClassNames.button,c.textContent=t.close,c.addEventListener("click",(function(e){return lt(f,void 0,void 0,(function(){return dt(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),e.stopPropagation(),[4,We.sendToOrigin(y,!0)];case 1:case 2:return t.sent(),[3,3];case 3:return window.close(),[2]}}))}))})),a.append(c),a.append(o),(u=Q.create("div")).className=this.proxyPopupCssClassNames.buttonWrap,u.id=this.loadingWrapId,u.innerHTML='<div class="ispinner gray animating"><div class="ispinner-blade"></div><div class="ispinner-blade"></div><div class="ispinner-blade"></div><div class="ispinner-blade"></div><div class="ispinner-blade"></div><div class="ispinner-blade"></div><div class="ispinner-blade"></div><div class="ispinner-blade"></div></div>',u.style.display="none",r.append(a),r.append(u),l=Q.getBody(window),o.style.display="none",l.append(r),[4,e.proxyPopupAllowHandler()];case 2:return p.sent(),bt.needInteractive||Notification.permission===Ke?o.style.display="":o.style.display="none",[3,4];case 3:return d=p.sent(),this.isProxyPopupShowing=!1,J.error("An error occurred in create popup element in proxy.\n".concat(d.message)),[3,4];case 4:return[2]}}))}))},e.proxyPopupAllowHandler=function(){return lt(this,void 0,void 0,(function(){var t;return dt(this,(function(n){switch(n.label){case 0:if(e.isSubscribing)return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),J.trace("ProxyPopup allow button clicked."),e.isSubscribing=!0,e.setLoadingState(!0),[4,bt.subscribe(!0,!0,!0)];case 2:return n.sent(),e.setLoadingState(!1),e.isSubscribing=!1,[3,4];case 3:return t=n.sent(),J.error("An error occurred in subscribe button. \n".concat(t.message)),e.isSubscribing=!1,[3,4];case 4:return[2]}}))}))},e.setLoadingState=function(e){return lt(this,void 0,void 0,(function(){var t,n;return dt(this,(function(r){return t=Q.get(this.loadingWrapId),n=Q.get(this.buttonWrapId),t&&n?(e?(t.style.display="",n.style.display="none"):(t.style.display="none",n.style.display=""),[2]):[2]}))}))},e.setProxyPopupCss=function(){Q.setCss(this.proxyPopupStyleId,"\n .".concat(this.proxyPopupCssClassNames.container," {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -moz-tap-highlight-color: transparent;\n -webkit-tap-highlight-color: transparent;\n font-family: -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n 'Noto Color Emoji' !important;\n }\n\n .").concat(this.proxyPopupCssClassNames.icon," {\n margin-bottom: 20px;\n }\n\n .").concat(this.proxyPopupCssClassNames.desc," {\n font-size: 14px;\n line-height: 20px;\n color: #333333;\n word-break: break-all;\n padding: 0 16px;\n }\n\n .").concat(this.proxyPopupCssClassNames.buttonWrap," {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n margin-top: 28px;\n }\n\n .").concat(this.proxyPopupCssClassNames.button," {\n width: 88px;\n height: 32px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 4px;\n margin-left: 16px;\n cursor: pointer;\n border: 1px solid #eeeeee;\n background-color: #ffffff;\n color: #333333;\n font-size: 12px;\n }\n\n .ispinner {\n position: relative;\n width: 20px;\n height: 20px;\n }\n .ispinner .ispinner-blade {\n position: absolute;\n top: 6.5px;\n left: 8.5px;\n width: 2.5px;\n height: 6.5px;\n background-color: #8e8e93;\n border-radius: 1.25px;\n -webkit-animation: iSpinnerBlade 1s linear infinite;\n animation: iSpinnerBlade 1s linear infinite;\n will-change: opacity;\n }\n .ispinner .ispinner-blade:nth-child(1) {\n -webkit-transform: rotate(45deg) translateY(-6.5px);\n transform: rotate(45deg) translateY(-6.5px);\n -webkit-animation-delay: -1.625s;\n animation-delay: -1.625s;\n }\n .ispinner .ispinner-blade:nth-child(2) {\n -webkit-transform: rotate(90deg) translateY(-6.5px);\n transform: rotate(90deg) translateY(-6.5px);\n -webkit-animation-delay: -1.5s;\n animation-delay: -1.5s;\n }\n .ispinner .ispinner-blade:nth-child(3) {\n -webkit-transform: rotate(135deg) translateY(-6.5px);\n transform: rotate(135deg) translateY(-6.5px);\n -webkit-animation-delay: -1.375s;\n animation-delay: -1.375s;\n }\n .ispinner .ispinner-blade:nth-child(4) {\n -webkit-transform: rotate(180deg) translateY(-6.5px);\n transform: rotate(180deg) translateY(-6.5px);\n -webkit-animation-delay: -1.25s;\n animation-delay: -1.25s;\n }\n .ispinner .ispinner-blade:nth-child(5) {\n -webkit-transform: rotate(225deg) translateY(-6.5px);\n transform: rotate(225deg) translateY(-6.5px);\n -webkit-animation-delay: -1.125s;\n animation-delay: -1.125s;\n }\n .ispinner .ispinner-blade:nth-child(6) {\n -webkit-transform: rotate(270deg) translateY(-6.5px);\n transform: rotate(270deg) translateY(-6.5px);\n -webkit-animation-delay: -1s;\n animation-delay: -1s;\n }\n .ispinner .ispinner-blade:nth-child(7) {\n -webkit-transform: rotate(315deg) translateY(-6.5px);\n transform: rotate(315deg) translateY(-6.5px);\n -webkit-animation-delay: -0.875s;\n animation-delay: -0.875s;\n }\n .ispinner .ispinner-blade:nth-child(8) {\n -webkit-transform: rotate(360deg) translateY(-6.5px);\n transform: rotate(360deg) translateY(-6.5px);\n -webkit-animation-delay: -0.75s;\n animation-delay: -0.75s;\n }\n \n @-webkit-keyframes iSpinnerBlade {\n 0% {\n opacity: 0.85;\n }\n 50% {\n opacity: 0.25;\n }\n 100% {\n opacity: 0.25;\n }\n }\n \n @keyframes iSpinnerBlade {\n 0% {\n opacity: 0.85;\n }\n 50% {\n opacity: 0.25;\n }\n 100% {\n opacity: 0.25;\n }\n }\n "))},e.openWindowPopup=function(e,t,n,r,i){var s=null!=window.screenLeft?window.screenLeft:screen.left,a=null!=window.screenTop?window.screenTop:screen.top,o=(window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width)/2-n/2+s,c=(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-r/2+a,u=window.open("about:blank",t,"scrollbars=yes, width=".concat(n,", height=").concat(r,", top=").concat(c,", left=").concat(o));if(We.windowSubscribePopup=u,u){if(u.location.href=e,i)var l=setInterval((function(){u.closed&&(We.windowSubscribePopup=null,clearInterval(l),i())}),100);u.focus()}},e.isProxyPopupShowing=!1,e.isSubscribing=!1,e.proxyPopupStyleId="".concat(z,"-style"),e.proxyPopupId=z,e.loadingWrapId="".concat(z,"-loadingwrap"),e.buttonWrapId="".concat(z,"-buttonwrap"),e.proxyPopupCssClassNames={container:"".concat(z,"-container"),icon:"".concat(z,"-icon"),desc:"".concat(z,"-desc"),buttonWrap:"".concat(z,"-button-wrap"),button:"".concat(z,"-button")},e}(),pt=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},ht=function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},bt=function(){function t(){}return t.install=function(){return pt(this,void 0,void 0,(function(){var t,n;return ht(this,(function(r){switch(r.label){case 0:return!("undefined"!=typeof navigator&&"serviceWorker"in navigator||(J.error("Push notifications are not supported. Please check serviceWorker files or Https."),0))||!("indexedDB"in window)&&(J.error("This browser doesn't support IndexedDB"),1)?[2]:(J.trace("install"),[4,qe.get(e,u)]);case 1:return t=r.sent(),n=this,[4,navigator.serviceWorker.register(t)];case 2:return n.serviceWorkerRegistration=r.sent(),this.pushManager=this.serviceWorkerRegistration.pushManager,this.installed=!0,[2]}}))}))},t.delete=function(){return pt(this,void 0,void 0,(function(){return ht(this,(function(e){switch(e.label){case 0:return this.serviceWorkerRegistration?[4,this.serviceWorkerRegistration.unregister()]:[2];case 1:return e.sent(),[2]}}))}))},t.subscribe=function(n,r,i,s){return pt(this,void 0,void 0,(function(){var o,c,u,l,p,h,b,g,m,v,w,C,x,k=this;return ht(this,(function(S){switch(S.label){case 0:ft.isSubscribing=!0,J.trace("subscribe",n,r),o=null,c=!1,u=!0,s&&"boolean"==typeof s.showGrantingPermissionsGuide&&(u=s.showGrantingPermissionsGuide),l=function(){u&&ut.showPermissionDenied()},p=function(){n&&window.close()},S.label=1;case 1:return S.trys.push([1,12,,18]),this.installed?[3,3]:[4,this.install()];case 2:S.sent(),S.label=3;case 3:return[4,Te.getConfigs()];case 4:return h=S.sent(),n&&(!h.proxySiteUrl||h.proxySiteUrl&&!_e(h.proxySiteUrl,window.origin))?(J.error("Check subdomain in flarelane console."),[2]):(b=function(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=window.atob(t),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}(h.vapidPayload.publicKey),[4,this.pushManager.getSubscription()]);case 5:return(g=S.sent())&&g.options.applicationServerKey?(m=function(e,t){var n=e.byteLength;if(n!==t.byteLength)return!1;for(var r=new Uint8Array(t),i=0;i<n;i++)if(e[i]!==r[i])return!1;return!0}(b,g.options.applicationServerKey),m?[3,8]:[4,this.unsubscribe()]):[3,8];case 6:return S.sent(),[4,qe.delete(e,a)];case 7:S.sent(),S.label=8;case 8:return Notification.permission!==Ke?[3,9]:(l(),[3,11]);case 9:return[4,this.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:b})];case 10:o=S.sent(),S.label=11;case 11:return[3,18];case 12:if(v=S.sent(),J.error("An error occurred in subscribe.\n".concat(v.message)),!t.needInteractive)return[3,17];S.label=13;case 13:return S.trys.push([13,15,,16]),[4,We.sendToOrigin(P,!0)];case 14:case 15:return S.sent(),[3,16];case 16:return p(),[2];case 17:return t.needInteractive=!0,[3,18];case 18:return S.trys.push([18,36,,37]),[4,qe.put(e,d,Notification.permission)];case 19:if(S.sent(),w=function(){return pt(k,void 0,void 0,(function(){return ht(this,(function(e){switch(e.label){case 0:return e.trys.push([0,5,,6]),n?[4,xt.dispatchRefreshWidgetStateEvent()]:[3,2];case 1:return e.sent(),[3,4];case 2:return[4,xt.refreshWidgetState()];case 3:e.sent(),e.label=4;case 4:return[3,6];case 5:return e.sent(),[3,6];case 6:return[2]}}))}))},!o)return[3,31];S.label=20;case 20:return S.trys.push([20,29,,30]),[4,Nt.registerAndActivateProcess(o,r,i)];case 21:return S.sent(),[4,qe.delete(e,f)];case 22:return S.sent(),c=!0,[4,w()];case 23:if(S.sent(),!n)return[3,28];S.label=24;case 24:return S.trys.push([24,26,,27]),[4,We.sendToOrigin(y,c)];case 25:case 26:return S.sent(),[3,27];case 27:p(),S.label=28;case 28:return[3,30];case 29:return S.sent(),c=!1,J.error("An error occurred while registering(activating) the device."),w(),p(),[3,30];case 30:return[3,35];case 31:return Notification.permission===Ke&&l(),[4,qe.get(e,a)];case 32:return C=S.sent(),[4,Nt.activate(C,null,!1)];case 33:return S.sent(),[4,w()];case 34:S.sent(),S.label=35;case 35:return[3,37];case 36:return x=S.sent(),J.error("An error occurred while after subscribe. \n ".concat(x.message)),p(),[3,37];case 37:return[2]}}))}))},t.unsubscribe=function(){return pt(this,void 0,void 0,(function(){var e;return ht(this,(function(t){switch(t.label){case 0:if(!this.installed)return[2];J.trace("unsubscribe"),t.label=1;case 1:return t.trys.push([1,4,,5]),[4,this.pushManager.getSubscription()];case 2:return[4,null==(e=t.sent())?void 0:e.unsubscribe()];case 3:return t.sent(),[3,5];case 4:return t.sent(),J.error("UnSubscribe failed."),[3,5];case 5:return[2]}}))}))},t.getSubscription=function(){return pt(this,void 0,void 0,(function(){var e;return ht(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),[4,window.navigator.serviceWorker.getRegistration()];case 1:return(e=t.sent())?[4,null==e?void 0:e.pushManager.getSubscription()]:[2,null];case 2:return[2,t.sent()||null];case 3:return t.sent(),[2,null];case 4:return[2]}}))}))},t.installed=!1,t.needInteractive=!1,t}(),gt=function(){function t(){}return t.getSubscribeState=function(){return t=this,n=void 0,i=function(){var t,n,r;return function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}}(this,(function(i){switch(i.label){case 0:return[4,Te.getConfigs()];case 1:return t=i.sent(),[4,Pt.getCurrentPermission(!t.directInit)];case 2:return n=i.sent(),[4,qe.get(e,p)];case 3:return r=i.sent(),n===Ye&&r?[2,!0]:[2,!1]}}))},new((r=void 0)||(r=Promise))((function(e,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,o)}c((i=i.apply(t,n||[])).next())}));var t,n,r,i},t}(),mt=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},vt=function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},wt=function(){function t(){}return t.show=function(t){return mt(this,void 0,void 0,(function(){var n=this;return vt(this,(function(r){return[2,new Promise((function(r,i){return mt(n,void 0,void 0,(function(){var n,s,o,c,u,l,d;return vt(this,(function(f){switch(f.label){case 0:return f.trys.push([0,8,,9]),J.trace("SubscribePopupDOMManager.show",t),n=function(){_t.indirectInitializeResolver&&_t.indirectInitializeResolver(!0)},this.isShowing||Q.get(this.popupId)?(r(!0),n(),[2]):[4,Te.getConfigs()];case 1:return s=f.sent(),(o=!s.popupConfig.active)?[3,3]:[4,this.inDissmissedDelay()];case 2:o=f.sent(),f.label=3;case 3:return o?(J.trace("SubscribePopupDOMManager.show blocked."),[4,qe.get(e,a)]):[3,6];case 4:return c=f.sent(),[4,Nt.activate(c,null,!1)];case 5:return f.sent(),r(!0),n(),[2];case 6:return this.isShowing=!0,u=Q.getBody(window),[4,this.getPopupElement((function(){r(!0)}),(function(){r(!0),n()}),t)];case 7:return l=f.sent(),setTimeout((function(){try{u.append(l)}catch(e){i(e)}}),1e3*s.popupConfig.waitingTimeSecond||0),[3,9];case 8:return d=f.sent(),this.isShowing=!1,i(d),[3,9];case 9:return[2]}}))}))}))]}))}))},t.dispatchShowEvent=function(e){return mt(this,void 0,void 0,(function(){return vt(this,(function(t){switch(t.label){case 0:return J.trace("SubscribePopupDOMManager.dispatchShowEvent",e),[4,We.sendToOrigin(S,e)];case 1:return t.sent(),[2]}}))}))},t.hide=function(){J.trace("SubscribePopupDOMManager.hide"),Q.remove(this.popupId),Q.remove(this.styleId),Q.remove(this.mobileStyleId),this.isShowing=!1},t.getPopupElement=function(e,n,r){return mt(this,void 0,void 0,(function(){var i,s,a,o,c,u,l,d,f,p,h,b,g,m,v,w,y=this;return vt(this,(function(C){switch(C.label){case 0:return[4,Te.getConfigs()];case 1:return i=C.sent(),this.setCss(),s=i.popupConfig.color,a=i.popupConfig.title,o=i.popupConfig.body,c=i.popupConfig.allowButtonText,u=i.popupConfig.closeButtonText,(l=Q.create("div")).id=this.popupId,l.className=this.cssClassNames.container,(d=Q.create("div")).className=this.cssClassNames.desc,(f=Q.create("div")).className=this.cssClassNames.titleContainer,(p=Q.create("div")).innerHTML=this.getTitleIcon(s),(h=Q.create("div")).className=this.cssClassNames.title,h.textContent=a,f.append(p),f.append(h),d.append(f),(b=Q.create("div")).textContent=o,d.append(b),(g=Q.create("div")).className=this.cssClassNames.buttonWrap,(m=Q.create("div")).className=this.cssClassNames.button,m.textContent=u,m.style.color=s,m.addEventListener("click",(function(e){return mt(y,void 0,void 0,(function(){return vt(this,(function(r){switch(r.label){case 0:return e.stopPropagation(),[4,t.cancelClickHandler(n)];case 1:return r.sent(),[2]}}))}))})),g.append(m),(v=Q.create("div")).className=this.cssClassNames.button,v.textContent=c,v.style.backgroundColor=s,v.style.color="#ffffff",v.addEventListener("click",(function(n){return mt(y,void 0,void 0,(function(){return vt(this,(function(i){switch(i.label){case 0:return n.stopPropagation(),[4,t.subscribeClickHandler(e,r)];case 1:return i.sent(),[2]}}))}))})),g.append(v),d.append(g),(w=Q.create("div")).append(X.getPoweredByElement(!0)),w.className=this.cssClassNames.poweredBy,d.append(w),l.append(d),[2,l]}}))}))},t.subscribeClickHandler=function(e,n){return mt(this,void 0,void 0,(function(){var r;return vt(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),t.isSubscribedClickHandlerInPromise?[2]:(t.isSubscribedClickHandlerInPromise=!0,J.trace("SubscribeClickHandler subscribe clicked."),Dt.needEscapeInapp?(r=Y(j),alert(r.message),window.open("intent://"+location.href.replace(/https?:\/\//i,"")+"#Intent;scheme=http;package=com.android.chrome;end"),t.setDissmissedDelay(),t.isSubscribedClickHandlerInPromise=!1,[2]):(t.hide(),n?(t.openPopupWindw(n),[3,3]):[3,1]));case 1:return[4,bt.subscribe(!1,!0,!0)];case 2:i.sent(),i.label=3;case 3:return e(),t.isSubscribedClickHandlerInPromise=!1,[3,5];case 4:return i.sent(),t.isSubscribedClickHandlerInPromise=!1,[3,5];case 5:return[2]}}))}))},t.openPopupWindw=function(e,t){J.trace("Subscribe popup window open.");var n=new URL(e);n.pathname="subscribe-staging.html",ft.openWindowPopup(n.href,"Subscribe To Push Notifications",500,400,t)},t.cancelClickHandler=function(e){return mt(this,void 0,void 0,(function(){return vt(this,(function(n){try{if(this.isCancelClickHandlerInPromise)return[2];this.isCancelClickHandlerInPromise=!0,J.trace("SubscribeClickHandler cancel clicked."),e(),t.setDissmissedDelay(),t.hide(),this.isCancelClickHandlerInPromise=!1}catch(e){this.isCancelClickHandlerInPromise=!1}return[2]}))}))},t.SubscribePopupEventHandler=function(e){return mt(this,void 0,void 0,(function(){return vt(this,(function(n){switch(n.label){case 0:return n.trys.push([0,6,,7]),e.type!==S?[3,4]:(J.trace("Popup:Event:".concat(S),e),e.data?[4,t.show(e.data)]:[3,2]);case 1:return n.sent(),[3,3];case 2:t.hide(),n.label=3;case 3:return[3,5];case 4:e.type===P&&e.data&&t.setDissmissedDelay(),n.label=5;case 5:return[3,7];case 6:return n.sent(),[3,7];case 7:return[2]}}))}))},t.inDissmissedDelay=function(){return mt(this,void 0,void 0,(function(){var e,t;return vt(this,(function(n){switch(n.label){case 0:return e=window.localStorage.getItem(b),[4,Te.getConfigs()];case 1:return t=n.sent(),e?[2,(new Date).valueOf()-Number(e)<864e5*t.popupConfig.retryIntervalDay]:[2,!1]}}))}))},t.setDissmissedDelay=function(){var e=(new Date).valueOf();window.localStorage.setItem(b,String(e))},t.setCss=function(){Q.setCss(this.styleId,"\n .".concat(this.cssClassNames.container," * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -moz-tap-highlight-color: transparent;\n -webkit-tap-highlight-color: transparent;\n font-family: -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n 'Noto Color Emoji' !important;\n }\n\n .").concat(this.cssClassNames.container," a, .").concat(this.cssClassNames.container," a:hover, .").concat(this.cssClassNames.container," a:active {\n color: #ffffff;\n text-decoration: none;\n outline: none;\n background-color: transparent;\n }\n\n .").concat(this.cssClassNames.container," {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: fixed;\n z-index: 16777200;\n -webkit-transform: translate(-50%, 0);\n -ms-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n top: 12px;\n left: 50%;\n width: 448px;\n overflow: hidden;\n background-color: #ffffff;\n border-radius: 8px;\n -webkit-box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);\n box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);\n -webkit-animation-name: flarelane-slide-down;\n animation-name: flarelane-slide-down;\n -webkit-animation-duration: 0.2s;\n animation-duration: 0.2s;\n line-height: 1.25;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -moz-tap-highlight-color: transparent;\n -webkit-tap-highlight-color: transparent;\n }\n\n @-webkit-keyframes flarelane-slide-down {\n 0% {\n -webkit-transform: translate(-50%, -100%);\n transform: translate(-50%, -100%);\n }\n\n 100% {\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n }\n }\n\n @keyframes flarelane-slide-down {\n 0% {\n -webkit-transform: translate(-50%, -100%);\n transform: translate(-50%, -100%);\n }\n\n 100% {\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n }\n }\n\n @-webkit-keyframes flarelane-slide-up {\n 0% {\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n }\n\n 100% {\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n }\n }\n\n @keyframes flarelane-slide-up {\n 0% {\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n }\n\n 100% {\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n }\n }\n\n .").concat(this.cssClassNames.poweredBy," {\n line-height: 1;\n font-size: 8px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n }\n\n .").concat(this.cssClassNames.desc," {\n padding: 24px;\n font-size: 14px;\n color: #555555;\n word-break: break-all;\n white-space: pre-line;\n line-height: 20px;\n }\n\n .").concat(this.cssClassNames.titleContainer," {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n margin-bottom: 10px;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n }\n\n .").concat(this.cssClassNames.title," {\n font-size: 16px;\n margin-left: 12px;\n color: #333333;\n }\n\n .").concat(this.cssClassNames.buttonWrap," {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n margin-top: 18px;\n margin-bottom: 4px;\n }\n\n .").concat(this.cssClassNames.button," {\n padding: 8px 24px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 4px;\n margin-left: 12px;\n cursor: pointer;\n font-size: 14px;\n }\n")),Q.setMobileCss(this.mobileStyleId,"\n .".concat(this.cssClassNames.container," {\n width: 100%;\n -webkit-transform: translate(0, 0);\n -ms-transform: translate(0, 0);\n transform: translate(0, 0);\n top: unset;\n left: 0;\n bottom: 0;\n border-radius: 16px 16px 0 0;\n -webkit-box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.15);\n box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.15);\n -webkit-animation-name: flarelane-slide-up;\n animation-name: flarelane-slide-up;\n }\n\n .").concat(this.cssClassNames.desc," {\n padding: 24px 32px 20px;\n font-size: 16px;\n line-height: 24px;\n }\n\n .").concat(this.cssClassNames.titleContainer," {\n margin-bottom: 12px;\n }\n\n .").concat(this.cssClassNames.title," {\n font-size: 18px;\n }\n\n .").concat(this.cssClassNames.buttonWrap," {\n margin-top: 20px;\n margin-bottom: 16px;\n }\n\n .").concat(this.cssClassNames.button," {\n padding: 8px 32px;\n font-size: 16px;\n }\n\n .").concat(this.cssClassNames.poweredBy," {\n line-height: 1;\n font-size: 12px;\n }\n \n "))},t.getTitleIcon=function(e){return'<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M18 36C27.9411 36 36 27.9411 36 18C36 8.05887 27.9411 0 18 0C8.05887 0 0 8.05887 0 18C0 27.9411 8.05887 36 18 36Z" fill="#F2F2F2"/>\n <path d="M11.4999 23.46C11.2627 23.4624 11.0291 23.4028 10.8221 23.287C10.6151 23.1712 10.4419 23.0034 10.3199 22.8V22.8C10.1706 22.5521 10.1119 22.2601 10.1538 21.9738C10.1958 21.6875 10.3357 21.4246 10.5499 21.23L11.7799 20.1V15.55C11.7802 13.8692 12.4256 12.2527 13.583 11.0339C14.7404 9.81516 16.3214 9.08711 17.9999 9C19.6767 9.08702 21.2562 9.81367 22.4133 11.0303C23.5705 12.247 24.217 13.861 24.2199 15.54V20.1L25.4499 21.23C25.664 21.4246 25.804 21.6875 25.8459 21.9738C25.8879 22.2601 25.8292 22.5521 25.6799 22.8V22.8C25.5578 23.0034 25.3847 23.1712 25.1777 23.287C24.9707 23.4028 24.737 23.4624 24.4999 23.46H11.4999Z" stroke="'.concat(e,'" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M21.4405 23.5312C21.4405 23.983 21.3516 24.4303 21.1787 24.8477C21.0058 25.265 20.7524 25.6443 20.433 25.9637C20.1136 26.2831 19.7343 26.5365 19.317 26.7094C18.8996 26.8823 18.4523 26.9712 18.0005 26.9712C17.5488 26.9712 17.1015 26.8823 16.6841 26.7094C16.2668 26.5365 15.8875 26.2831 15.5681 25.9637C15.2487 25.6443 14.9953 25.265 14.8224 24.8477C14.6495 24.4303 14.5605 23.983 14.5605 23.5312H21.4405Z" stroke="').concat(e,'" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>')},t.isShowing=!1,t.isSubscribedClickHandlerInPromise=!1,t.isCancelClickHandlerInPromise=!1,t.styleId="".concat(H,"-style"),t.mobileStyleId="".concat(H,"-mobile-style"),t.popupId=H,t.cssClassNames={container:"".concat(H,"-container"),desc:"".concat(H,"-desc"),titleContainer:"".concat(H,"-title-container"),title:"".concat(H,"-title"),buttonWrap:"".concat(H,"-button-wrap"),button:"".concat(H,"-button"),poweredBy:"".concat(H,"-poweredby")},t}(),yt=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},Ct=function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},xt=function(){function t(){}return t.show=function(){return yt(this,void 0,void 0,(function(){var e,t;return Ct(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),J.trace("WidgetDOMManager.show"),[4,Te.getConfigs()];case 1:return n.sent().widgetConfig.active?this.isShowing||Q.get(this.widgetId)?[2]:(this.isShowing=!0,[4,this.getWidgetElement()]):(J.trace("WidgetDOMManager.show blocked. check active in flarelane console"),[2]);case 2:return e=n.sent(),[4,this.checkIsWidgetAllowedByPath(e)];case 3:return n.sent(),Q.getBody(window).append(e),[3,5];case 4:return t=n.sent(),this.isShowing=!1,J.error("An error occurred in Widget show.\n".concat(t.message)),[3,5];case 5:return[2]}}))}))},t.removeSubscribe=function(e){var t=this;setTimeout((function(){try{var e=Q.get(t.subscribeId);e&&e.remove()}catch(e){}}),0)},t.checkIsWidgetAllowedByPath=function(e){return yt(this,void 0,void 0,(function(){var t,n;return Ct(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t=e||Q.get(this.widgetId),[4,at.isWidgetPathMatched()];case 1:return n=r.sent(),t&&(t.style.display=n?"block":"none"),[3,3];case 2:return r.sent(),[3,3];case 3:return[2]}}))}))},t.dispatchRefreshWidgetStateEvent=function(){return yt(this,void 0,void 0,(function(){return Ct(this,(function(e){switch(e.label){case 0:return J.trace("WidgetDOMManager.dispatchShowEvent"),[4,We.sendToOrigin(M,!0)];case 1:return e.sent(),[2]}}))}))},t.widgetEventHandler=function(e){return yt(this,void 0,void 0,(function(){var n=this;return Ct(this,(function(r){try{e.type===M&&(J.trace("Widget:Event:".concat(M),e),e.data&&setTimeout((function(){return yt(n,void 0,void 0,(function(){return Ct(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,t.refreshWidgetState()];case 1:case 2:return e.sent(),[3,3];case 3:return[2]}}))}))}),500))}catch(e){}return[2]}))}))},t.refreshWidgetState=function(e,t){return yt(this,void 0,void 0,(function(){var n,r,i;return Ct(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),J.trace("WidgetDOMManager.refreshWidgetState"),n=e||Q.get(this.iconId),r=t||Q.get(this.toggleId),[4,this.getWidgetisSubscribedState()];case 1:return s.sent()?(n&&(n.classList.contains(this.cssClassNames.subscribed)||n.classList.add(this.cssClassNames.subscribed)),r&&(r.classList.remove(this.cssClassNames.subscribeToggleOff),r.classList.contains(this.cssClassNames.subscribeToggleOn)||r.classList.add(this.cssClassNames.subscribeToggleOn))):(n&&n.classList.remove(this.cssClassNames.subscribed),r&&(r.classList.remove(this.cssClassNames.subscribeToggleOn),r.classList.contains(this.cssClassNames.subscribeToggleOff)||r.classList.add(this.cssClassNames.subscribeToggleOff))),[3,3];case 2:return i=s.sent(),J.error("An error occured in refresh wiget state.\n".concat(i.message)),[3,3];case 3:return[2]}}))}))},t.getWidgetElement=function(){return yt(this,void 0,void 0,(function(){var e,n,r,i,s,a;return Ct(this,(function(o){switch(o.label){case 0:return[4,Te.getConfigs()];case 1:return e=o.sent(),[4,this.setCss()];case 2:return o.sent(),n=e.widgetConfig.color,(r=Q.create("div")).id=this.widgetId,r.className=this.cssClassNames.container,(i=Q.create("div")).id=this.iconId,i.className=this.cssClassNames.icon,i.addEventListener("click",(function(e){e.stopPropagation(),t.toggleWidgetPopup()})),s=this.getDefaultIcon(n),(a=Q.create("div")).className=this.cssClassNames.iconCustom,i.append(s),i.append(a),this.refreshWidgetState(i),r.append(i),[2,r]}}))}))},t.getSubscribeElement=function(){return yt(this,void 0,void 0,(function(){var e,n,r,i,s,a,o,c,u,l,d,f,p=this;return Ct(this,(function(h){switch(h.label){case 0:return[4,this.setCss()];case 1:return h.sent(),e=Y(V),(n=Q.create("div")).id=this.subscribeId,n.className=this.cssClassNames.subscribeContainer,(r=Q.create("div")).className=this.cssClassNames.subscribeXIcon,(i=Q.create("div")).innerHTML=q,i.addEventListener("click",(function(){t.removeSubscribe(!1)})),r.append(i),n.append(r),(s=Q.create("div")).className=this.cssClassNames.subscribeTool,(a=Q.create("span")).textContent=e.subscribeTitle,(o=Q.create("div")).id=this.toggleId,o.className=this.cssClassNames.subscribeToggleContainer,o.addEventListener("click",(function(e){return yt(p,void 0,void 0,(function(){return Ct(this,(function(n){switch(n.label){case 0:return e.stopPropagation(),[4,t.toggleClickHandler()];case 1:return n.sent(),[2]}}))}))})),(c=Q.create("div")).className=this.cssClassNames.subscribeToggle,(u=Q.create("div")).className=this.cssClassNames.subscribeToggleButton,o.append(c),o.append(u),this.refreshWidgetState(void 0,o),s.append(a),s.append(o),n.append(s),(l=Q.create("a")).className=this.cssClassNames.help,l.href="https://rebrand.ly/flarelane-webpush-troubleshooting",l.setAttribute("target","_blank"),l.innerText=e.help,(d=Q.create("div")).className=this.cssClassNames.angle,d.innerHTML='\n<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect width="20" height="20" fill="white"/>\n <path d="M6.99274 4L13 9.99275L6.99274 16" stroke="#999999" stroke-width="2" stroke-miterlimit="10"/>\n</svg>\n',l.append(d),(f=Q.create("div")).className=this.cssClassNames.poweredBy,f.append(X.getPoweredByElement()),n.append(l),n.append(f),this.isPopupShowing=!1,[2,n]}}))}))},t.toggleWidgetPopup=function(e){return yt(this,void 0,void 0,(function(){var t,n,r;return Ct(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),this.isPopupShowing?[2]:(this.isPopupShowing=!0,Q.get(this.subscribeId)?(this.removeSubscribe(!1),[3,3]):[3,1]);case 1:return(t=e||Q.get(this.widgetId))?[4,this.getSubscribeElement()]:[3,3];case 2:n=i.sent(),this.setPopupPosition(t,n),Q.getBody(window).append(n),i.label=3;case 3:return this.isPopupShowing=!1,[3,5];case 4:return r=i.sent(),this.isPopupShowing=!1,J.error("An error occured on wiget subscribe popup toggle.\n".concat(r.message)),[3,5];case 5:return[2]}}))}))},t.toggleClickHandler=function(){return yt(this,void 0,void 0,(function(){var t,n;return Ct(this,(function(r){switch(r.label){case 0:return r.trys.push([0,8,,9]),this.isClickHandlerInPromise?[2]:(this.isClickHandlerInPromise=!0,J.trace("toggleClickHandler widget toggle licked."),[4,Te.getConfigs()]);case 1:return t=r.sent(),[4,qe.get(e,p)];case 2:return r.sent()?[4,Nt.setIsSubscribed(!1)]:[3,4];case 3:return r.sent(),[3,7];case 4:return t.directInit?[4,bt.subscribe(!1,!0,!0)]:[3,6];case 5:return r.sent(),[3,7];case 6:wt.openPopupWindw(t.proxySiteUrl),r.label=7;case 7:return this.removeSubscribe(!0),this.isClickHandlerInPromise=!1,[3,9];case 8:return n=r.sent(),this.isClickHandlerInPromise=!1,J.error("An error occured on wiget toggle click.\n".concat(n.message)),[3,9];case 9:return[2]}}))}))},t.setPopupPosition=function(e,t){var n=e.getBoundingClientRect(),r=window.innerWidth/2>n.x,i=window.innerHeight/2>n.y;t.style.position="fixed",r?t.style.left="".concat(n.x,"px"):t.style.right="".concat(window.innerWidth-(n.x+n.width),"px"),i?t.style.top="".concat(n.y+n.height+16,"px"):t.style.bottom="".concat(window.innerHeight-n.y+16,"px")},t.getPosition=function(e){var t={},n={},r=e.widgetConfig.customImageUrl,i=e.widgetConfig.mobileCustomImageUrl,s=r?0:40*(e.widgetConfig.size-1)/2,a=i?0:40*(e.widgetConfig.mobileSize-1)/2;return"right"===e.widgetConfig.position?(t.right=e.widgetConfig.horizontalMargin+s,t.bottom=e.widgetConfig.verticalMargin+s):(t.left=e.widgetConfig.horizontalMargin+s,t.bottom=e.widgetConfig.verticalMargin+s),"right"===e.widgetConfig.mobilePosition?(n.right=e.widgetConfig.mobileHorizontalMargin+a,n.bottom=e.widgetConfig.mobileVerticalMargin+a):(n.left=e.widgetConfig.mobileHorizontalMargin+a,n.bottom=e.widgetConfig.mobileVerticalMargin+a),{position:t,mobilePosition:n}},t.setCss=function(){var e,t,n,r,i,s,a,o,c,u,l,d;return yt(this,void 0,void 0,(function(){var f,p,h,b,g,m,v,w,y,C,x,k,S,P,M;return Ct(this,(function(I){switch(I.label){case 0:return Q.get(this.styleId)&&Q.get(this.mobileStyleId)?[2]:[4,Te.getConfigs()];case 1:return f=I.sent(),p=this.getPosition(f),h=p.position,b=p.mobilePosition,g={},f.widgetConfig.customImageUrl?[4,X.getImageSize(f.widgetConfig.customImageUrl)]:[3,3];case 2:m=I.sent(),w=m.width,y=m.height,g.desktop={width:w,height:y},I.label=3;case 3:return f.widgetConfig.mobileCustomImageUrl?[4,X.getImageSize(f.widgetConfig.mobileCustomImageUrl)]:[3,5];case 4:v=I.sent(),w=v.width,y=v.height,g.mobile={width:w,height:y},I.label=5;case 5:return C=f.widgetConfig.customImageUrl,x=f.widgetConfig.mobileCustomImageUrl,k=C?1:f.widgetConfig.size,S=x?1:f.widgetConfig.mobileSize,P=f.widgetConfig.color,M=f.hidePromotion,Q.setCss(this.styleId,"\n .".concat(this.cssClassNames.container," * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -moz-tap-highlight-color: transparent;\n -webkit-tap-highlight-color: transparent;\n }\n\n .").concat(this.cssClassNames.container," a, .").concat(this.cssClassNames.container," a:hover, .").concat(this.cssClassNames.container," a:active {\n color: #999999;\n outline: none;\n background-color: transparent;\n }\n \n .").concat(this.cssClassNames.container," {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: fixed;\n z-index: 16777198 !important;\n ").concat(Ee(h.top)?"top: ".concat(h.top,"px;"):"").concat(Ee(h.bottom)?"bottom: ".concat(h.bottom,"px;"):"","\n ").concat(Ee(h.right)?"right: ".concat(h.right,"px;"):"").concat(Ee(h.left)?"left: ".concat(h.left,"px;"):"","\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n font-family: -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n 'Noto Color Emoji' !important;\n }\n\n .").concat(this.cssClassNames.icon," {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-transform: scale(").concat(k,");\n -ms-transform: scale(").concat(k,");\n transform: scale(").concat(k,");\n opacity: 1;\n -webkit-animation-name: flarelane-zoom;\n animation-name: flarelane-zoom;\n -webkit-animation-duration: 0.2s;\n animation-duration: 0.2s;\n line-height: 1.25;\n cursor: pointer;\n }\n\n .").concat(this.cssClassNames.iconCustom," {\n display: ").concat(C?"block":"none",";\n ").concat(C?"background-image: url(".concat(C,");"):"","\n ").concat(C?"background-size: ".concat((null===(e=null==g?void 0:g.desktop)||void 0===e?void 0:e.width)||0,"px ").concat((null===(t=null==g?void 0:g.desktop)||void 0===t?void 0:t.height)||0,"px;"):"","\n ").concat((null===(n=null==g?void 0:g.desktop)||void 0===n?void 0:n.width)?"width: ".concat(null===(r=null==g?void 0:g.desktop)||void 0===r?void 0:r.width,"px;"):"","\n ").concat((null===(i=null==g?void 0:g.desktop)||void 0===i?void 0:i.height)?"height: ".concat(null===(s=null==g?void 0:g.desktop)||void 0===s?void 0:s.height,"px;"):"","\n }\n\n .").concat(this.cssClassNames.defaultIcon," {\n display: ").concat(C?"none":"block",";\n }\n\n .").concat(this.cssClassNames.subscribed," {\n opacity: 0.2;\n }\n\n @-webkit-keyframes flarelane-zoom {\n 0% {\n -webkit-transform: scale(0.3);\n transform: scale(0.3);\n }\n \n 100% {\n -webkit-transform: scale(").concat(k,");\n transform: scale(").concat(k,");\n }\n }\n\n @keyframes flarelane-zoom {\n 0% {\n -webkit-transform: scale(0.3);\n transform: scale(0.3);\n }\n \n 100% {\n -webkit-transform: scale(").concat(k,");\n transform: scale(").concat(k,");\n }\n }\n\n @-webkit-keyframes flarelane-place {\n 0% {\n opacity: 0.2;\n }\n \n 100% {\n opacity: 1;\n }\n }\n\n @keyframes flarelane-place {\n 0% {\n opacity: 0.2;\n }\n \n 100% {\n opacity: 1;\n }\n }\n\n .").concat(this.cssClassNames.subscribeContainer," * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -moz-tap-highlight-color: transparent;\n -webkit-tap-highlight-color: transparent;\n font-family: -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n 'Noto Color Emoji' !important;\n }\n\n .").concat(this.cssClassNames.subscribeContainer," a, .").concat(this.cssClassNames.subscribeContainer," a:hover, .").concat(this.cssClassNames.subscribeContainer," a:active {\n color: #666666;\n outline: none;\n background-color: transparent;\n }\n\n .").concat(this.cssClassNames.subscribeContainer," {\n position: absolute;\n width: 240px;\n background-color: #ffffff;\n -webkit-box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);\n box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);\n border-radius: 16px;\n z-index: 16777199 !important;\n -webkit-animation-name: flarelane-place;\n animation-name: flarelane-place;\n -webkit-animation-duration: 0.2s;\n animation-duration: 0.2s;\n overflow: hidden;\n }\n\n .").concat(this.cssClassNames.subscribeXIcon," {\n padding: 10px 22px 8px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n border-bottom: 1px solid #e6e6e6;\n display: none;\n }\n\n .").concat(this.cssClassNames.subscribeXIcon," div {\n padding: 8px;\n }\n\n .").concat(this.cssClassNames.subscribeTool," {\n width: 100%;\n background-color: #ffffff;\n font-size: 14px;\n color: #333333;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding: 18px 20px;\n line-height: 20px;\n border-bottom: 1px solid #e6e6e6;\n }\n\n .").concat(this.cssClassNames.subscribeToggleContainer," {\n position: relative;\n cursor: pointer;\n }\n\n .").concat(this.cssClassNames.subscribeToggle," {\n width: 36px;\n height: 16px;\n border-radius: 99px;\n -webkit-transition: all 0.2s ease-in-out;\n -o-transition: all 0.2s ease-in-out;\n transition: all 0.2s ease-in-out;\n }\n\n .").concat(this.cssClassNames.subscribeToggleButton," {\n position: absolute;\n -webkit-transform: translate(0, -50%);\n -ms-transform: translate(0, -50%);\n transform: translate(0, -50%);\n top: 50%;\n width: 20px;\n height: 20px;\n border-radius: 99px;\n -webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);\n -webkit-transition: all 0.2s ease-in-out;\n -o-transition: all 0.2s ease-in-out;\n transition: all 0.2s ease-in-out;\n }\n\n .").concat(this.cssClassNames.subscribeToggleOn," .").concat(this.cssClassNames.subscribeToggle," {\n background-color: ").concat(P,";\n opacity: 0.3;\n }\n\n .").concat(this.cssClassNames.subscribeToggleOn," .").concat(this.cssClassNames.subscribeToggleButton," {\n background-color: ").concat(P,";\n right: 0;\n }\n\n .").concat(this.cssClassNames.subscribeToggleOff," .").concat(this.cssClassNames.subscribeToggle," {\n background-color: #e0e0e8;\n }\n\n .").concat(this.cssClassNames.subscribeToggleOff," .").concat(this.cssClassNames.subscribeToggleButton," {\n background-color: #f5f5f7;\n left: 0;\n }\n\n .").concat(this.cssClassNames.help," {\n padding: 12px 20px;\n color: #666666;\n font-size: 12px;\n line-height: 20px;\n border-bottom: 1px solid #f2f2f2;\n text-decoration: none;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n }\n\n .").concat(this.cssClassNames.angle," {\n width:20px;\n height: 20px;\n }\n\n .").concat(this.cssClassNames.poweredBy," {\n width: 100%;\n font-size: 8px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n background-color: #ffffff;\n padding: 14px 0;\n ").concat(M?"display: none !important;":"","\n }\n ")),Q.setMobileCss(this.mobileStyleId,"\n .".concat(this.cssClassNames.container," {\n ").concat(f.widgetConfig.hideIfMobile?"display: none !important;":"","\n top:").concat(Ee(b.top)?"".concat(b.top,"px"):"unset",";\n bottom: ").concat(Ee(b.bottom)?"".concat(b.bottom,"px"):"unset",";\n right: ").concat(Ee(b.right)?"".concat(b.right,"px"):"unset",";\n left: ").concat(Ee(b.left)?"".concat(b.left,"px"):"unset",";\n }\n\n .").concat(this.cssClassNames.icon," {\n -webkit-transform: scale(").concat(S,");\n -ms-transform: scale(").concat(S,");\n transform: scale(").concat(S,");\n }\n\n .").concat(this.cssClassNames.iconCustom," {\n display: ").concat(x?"block":"none",";\n ").concat(x?"background-image: url(".concat(x,");"):"","\n ").concat(x?"background-size: ".concat((null===(a=null==g?void 0:g.mobile)||void 0===a?void 0:a.width)||0,"px ").concat((null===(o=null==g?void 0:g.mobile)||void 0===o?void 0:o.height)||0,"px;"):"","\n ").concat((null===(c=null==g?void 0:g.mobile)||void 0===c?void 0:c.width)?"width: ".concat(null===(u=null==g?void 0:g.mobile)||void 0===u?void 0:u.width,"px;"):"","\n ").concat((null===(l=null==g?void 0:g.mobile)||void 0===l?void 0:l.height)?"height: ".concat(null===(d=null==g?void 0:g.mobile)||void 0===d?void 0:d.height,"px;"):"","\n }\n\n .").concat(this.cssClassNames.defaultIcon," {\n display: ").concat(x?"none":"block",";\n }\n\n .").concat(this.cssClassNames.subscribeContainer," {\n width: 100%;\n position: fixed !important;\n top: unset !important;\n bottom: 0 !important;\n left: 0 !important;\n z-index: 16777199 !important;\n border-radius: 16px 16px 0 0;\n -webkit-box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.15);\n box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.15);\n -webkit-animation-name: flarelane-widget-slide-up;\n animation-name: flarelane-widget-slide-up;\n -webkit-animation-duration: 0.2s;\n animation-duration: 0.2s;\n }\n\n .").concat(this.cssClassNames.subscribeXIcon," {\n display: flex;\n }\n\n .").concat(this.cssClassNames.subscribeTool," {\n font-size: 18px;\n line-height: 24px;\n padding: 22px 32px;\n }\n\n .").concat(this.cssClassNames.subscribeToggle," {\n width: 44px;\n height: 18px;\n }\n\n .").concat(this.cssClassNames.subscribeToggleButton," {\n width: 24px;\n height: 24px;\n }\n\n .").concat(this.cssClassNames.help," {\n font-size: 16px;\n line-height: 24px;\n padding: 18px 32px;\n }\n\n .").concat(this.cssClassNames.poweredBy," {\n font-size: 12px;\n padding: 20px 0;\n }\n\n @keyframes flarelane-zoom {\n 0% {\n -webkit-transform: scale(0.3);\n transform: scale(0.3);\n }\n \n 100% {\n -webkit-transform: scale(").concat(S,");\n transform: scale(").concat(S,");\n }\n }\n\n @-webkit-keyframes flarelane-widget-slide-up {\n 0% {\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n }\n \n 100% {\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n }\n }\n \n @keyframes flarelane-widgetslide-up {\n 0% {\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n }\n \n 100% {\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n }\n }\n ")),[2]}}))}))},t.getDefaultIcon=function(e){var t=Q.create("div");return t.className=this.cssClassNames.defaultIcon,t.style.width="40px",t.style.height="40px",t.innerHTML='\n <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M20 40C31.0457 40 40 31.0457 40 20C40 8.95431 31.0457 0 20 0C8.95431 0 0 8.95431 0 20C0 31.0457 8.95431 40 20 40Z" fill='.concat(e,' />\n <path\n d="M20.0001 33.519C24.713 33.519 28.5335 33.0325 28.5335 32.4324C28.5335 31.8322 24.713 31.3457 20.0001 31.3457C15.2873 31.3457 11.4668 31.8322 11.4668 32.4324C11.4668 33.0325 15.2873 33.519 20.0001 33.519Z"\n fill="black"\n fill-opacity="0.2"\n />\n <path\n d="M11.6275 26.0932C11.3239 26.0947 11.0247 26.0205 10.757 25.8773C10.4893 25.7341 10.2614 25.5265 10.0941 25.2732V25.2732C9.90805 24.9661 9.83612 24.6033 9.89098 24.2485C9.94585 23.8937 10.124 23.5696 10.3941 23.3332L11.9941 21.9332V16.2665C12.0324 14.1443 12.8848 12.118 14.375 10.6067C15.8653 9.09534 17.8794 8.21455 20.0008 8.14648C22.121 8.21623 24.1335 9.09775 25.6223 10.6089C27.1112 12.1201 27.9626 14.1454 28.0008 16.2665V21.9198L29.6008 23.3198C29.8743 23.557 30.0546 23.8836 30.1095 24.2414C30.1645 24.5992 30.0905 24.9648 29.9008 25.2732V25.2732C29.7335 25.5265 29.5057 25.7341 29.238 25.8773C28.9702 26.0205 28.6711 26.0947 28.3675 26.0932H11.6275Z"\n fill="white"\n />\n <path\n d="M23.3791 27.0742C23.3791 27.9707 23.023 28.8304 22.3892 29.4642C21.7553 30.0981 20.8956 30.4542 19.9991 30.4542C19.1027 30.4542 18.243 30.0981 17.6091 29.4642C16.9752 28.8304 16.6191 27.9707 16.6191 27.0742H23.3791Z"\n fill="white"\n />\n <path\n d="M17.8125 8.66597C17.8438 8.09041 18.0946 7.54875 18.5131 7.1524C18.9316 6.75605 19.4861 6.53516 20.0625 6.53516C20.6389 6.53516 21.1934 6.75605 21.6119 7.1524C22.0304 7.54875 22.2812 8.09041 22.3125 8.66597H17.8125Z"\n fill="white"\n />\n <path d="M13.8535 15.1676C13.8535 12.7076 15.7335 10.0742 18.5202 10.0742" stroke=').concat(e,' stroke-miterlimit="10" />\n </svg>\n '),t},t.getWidgetisSubscribedState=function(){return yt(this,void 0,void 0,(function(){return Ct(this,(function(e){switch(e.label){case 0:return[4,gt.getSubscribeState()];case 1:return[2,e.sent()]}}))}))},t.isShowing=!1,t.isPopupShowing=!1,t.isClickHandlerInPromise=!1,t.styleId="".concat(R,"-style"),t.mobileStyleId="".concat(R,"-mobile-style"),t.widgetId=R,t.iconId="".concat(R,"-icon"),t.subscribeId="".concat(R,"-subscribe"),t.toggleId="".concat(R,"-toggle"),t.cssClassNames={container:"".concat(R,"-container"),icon:"".concat(R,"-icon"),iconCustom:"".concat(R,"-icon-custom"),defaultIcon:"".concat(R,"-icon-default"),subscribed:"".concat(R,"-subscribed"),subscribeContainer:"".concat(R,"-subscribe-container"),subscribeXIcon:"".concat(R,"-subscribe-xicon"),subscribeTool:"".concat(R,"-subscribe-tool"),subscribeToggleContainer:"".concat(R,"-subscribe-toggle-container"),subscribeToggle:"".concat(R,"-subscribe-toggle"),subscribeToggleButton:"".concat(R,"-subscribe-toggle-button"),subscribeToggleOn:"".concat(R,"-subscribe-toggle-on"),subscribeToggleOff:"".concat(R,"-subscribe-toggle-off"),angle:"".concat(R,"-subscribe-angle"),poweredBy:"".concat(R,"-poweredby"),help:"".concat(R,"-help")},t}(),kt=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},St=function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},Pt=function(){function t(){}return t.getCurrentPermission=function(t){return kt(this,void 0,void 0,(function(){var n;return St(this,(function(r){switch(r.label){case 0:return this.isIndirect?[4,this.getRemotePermissionFromDispatchEvent(Je)]:[3,2];case 1:return[2,r.sent()];case 2:return J.trace("getCurrentPermission"),t?[4,qe.get(e,d)]:[3,4];case 3:return(n=r.sent())?[2,"prompt"===n?"default":n]:[2,"denied"];case 4:try{return[2,Notification.permission]}catch(e){return[2,Ke]}return[2]}}))}))},t.getBrowserPermission=function(){return kt(this,void 0,void 0,(function(){return St(this,(function(e){switch(e.label){case 0:return this.isIndirect?[4,this.getRemotePermissionFromDispatchEvent(Qe)]:[3,2];case 1:return[2,e.sent()];case 2:return e.trys.push([2,5,,6]),"permissions"in navigator?[4,navigator.permissions.query({name:"notifications"})]:[3,4];case 3:return[2,e.sent().state];case 4:return[3,6];case 5:return e.sent(),[3,6];case 6:return[2]}}))}))},t.setBrowserPermissionChangeHandler=function(e){return kt(this,void 0,void 0,(function(){var t,n,r=this;return St(this,(function(i){switch(i.label){case 0:if(this.isSetBrowserPermissionChangeHandler)return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,navigator.permissions.query({name:"notifications"})];case 2:return(t=i.sent()).onchange=function(){return kt(r,void 0,void 0,(function(){return St(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),J.trace("Browser permission changed.",t.state),e?[4,xt.dispatchRefreshWidgetStateEvent()]:[3,2];case 1:return n.sent(),[3,4];case 2:return[4,xt.refreshWidgetState()];case 3:n.sent(),n.label=4;case 4:return[3,6];case 5:return n.sent(),[3,6];case 6:return[2]}}))}))},this.isSetBrowserPermissionChangeHandler=!0,[3,4];case 3:return n=i.sent(),J.error("An error occurred in setBrowserPermissionChangeHandler.\n".concat(n.message)),[3,4];case 4:return[2]}}))}))},t.permissionStateToOriginEventHandler=function(e){return kt(this,void 0,void 0,(function(){var n,r;return St(this,(function(i){switch(i.label){case 0:return i.trys.push([0,5,,6]),e.type!==I?[2]:(J.trace("Permission:Event:".concat(I),e),n=e.data,r=null,n.method!==Je?[3,2]:[4,t.getCurrentPermission(!0)]);case 1:r=i.sent(),i.label=2;case 2:return n.method!==Qe?[3,4]:[4,t.getBrowserPermission()];case 3:r=i.sent(),i.label=4;case 4:return We.sendToOrigin(I,r,null,{replyId:e.id}),[3,6];case 5:return i.sent(),[3,6];case 6:return[2]}}))}))},t.getRemotePermissionFromDispatchEvent=function(e){return new Promise((function(t,n){J.trace("Premission:getRemotePermissionFromDispatchEvent",e);try{var r={method:e};We.sendToIframe(I,r,(function(e){J.trace("Permission:Event:".concat(I),e),t(e.data)}))}catch(e){n(e)}}))},t.isIndirect=!1,t.isSetBrowserPermissionChangeHandler=!1,t}(),Mt=function(){return Mt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Mt.apply(this,arguments)},It=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},At=function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},Nt=function(){function t(){}return t.register=function(t){return It(this,void 0,void 0,(function(){var n,r;return At(this,(function(i){switch(i.label){case 0:return n=this.getDeviceInfo(),[4,Ne.post(this.url,Mt(Mt({},n),{pushToken:JSON.stringify(t)}))];case 1:return r=i.sent(),[4,qe.put(e,a,r.data.id)];case 2:return i.sent(),[4,qe.put(e,l,t.endpoint)];case 3:return i.sent(),[4,qe.put(e,p,!0)];case 4:return i.sent(),[2]}}))}))},t.activate=function(t,n,r,i){return It(this,void 0,void 0,(function(){var s,a,o,u,d,f,h,b;return At(this,(function(g){switch(g.label){case 0:return t?[4,qe.get(e,c)]:(J.trace("There is no deviceId when updating the device."),[2]);case 1:return s=g.sent(),a=this.getDeviceInfo(),[4,Te.getConfigs()];case 2:return o=g.sent(),[4,Pt.getCurrentPermission(!o.directInit)];case 3:return u=g.sent(),d=!!u&&u===Ye,[4,qe.get(e,p)];case 4:return f=g.sent(),h=d,!i&&!1===f&&d&&(h=!1),!r&&s&&(new Date).valueOf()-s<3e5&&f===h?[2]:(b=new Date,[4,Ne.patch("".concat(this.url,"/").concat(t),Mt(Mt({},a),{pushToken:n?JSON.stringify(n):void 0,isSubscribed:h,lastActiveAt:b.toISOString()}))]);case 5:return g.sent(),[4,qe.put(e,c,b.valueOf())];case 6:return g.sent(),n?[4,qe.put(e,l,n.endpoint)]:[3,8];case 7:g.sent(),g.label=8;case 8:return[4,qe.put(e,p,h)];case 9:return g.sent(),[2]}}))}))},t.update=function(t){return It(this,void 0,void 0,(function(){var n;return At(this,(function(r){switch(r.label){case 0:return[4,qe.get(e,a)];case 1:return(n=r.sent())?[4,Ne.patch("".concat(this.url,"/").concat(n),t)]:(J.trace("There is no deviceId when updating the device."),[2]);case 2:return r.sent(),[2,!0]}}))}))},t.setIsSubscribed=function(t){return It(this,void 0,void 0,(function(){return At(this,(function(n){switch(n.label){case 0:return[4,this.update({isSubscribed:t})];case 1:return n.sent(),[4,qe.put(e,p,t)];case 2:return n.sent(),[4,xt.refreshWidgetState()];case 3:return n.sent(),[2,!0]}}))}))},t.registerAndActivateProcess=function(t,n,r){return It(this,void 0,void 0,(function(){var i;return At(this,(function(s){switch(s.label){case 0:return[4,qe.get(e,a)];case 1:return(i=s.sent())?[4,this.activate(i,t,n,r)]:[3,3];case 2:return s.sent(),[3,5];case 3:return[4,this.register(t)];case 4:s.sent(),s.label=5;case 5:return[2]}}))}))},t.getDeviceInfo=function(){var e,t,n=(0,Xe.getParser)(window.navigator.userAgent),r="unknown";return{browser:n.getBrowserName()||r,browserVersion:n.getBrowserVersion()||r,platform:ot()||r,deviceModel:n.getOSName()||r,osVersion:n.getOSVersion()||r,sdkType:Pe,sdkVersion:Me,languageCode:window.navigator.language,timeZone:null===(t=null===(e=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===e?void 0:e.resolvedOptions())||void 0===t?void 0:t.timeZone}},t.checkIsDiff=function(e,t){var n=sessionStorage.getItem(e);return!n||n!==this.hash(t).toString()},t.setDiff=function(e,t){var n=this.hash(t).toString();sessionStorage.setItem(e,n)},t.hash=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},t.url="/devices",t}(),Et=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},Ot=function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}},_t=function(){function n(){}return n.initialize=function(e,t){var n,r,i;return Et(this,void 0,void 0,(function(){var s,a,o,c,u,l=this;return Ot(this,(function(d){switch(d.label){case 0:return J.trace("InitializeManager.initialize",e,t),[4,this.resetIfProjectIdChanged(e.projectId)];case 1:return d.sent(),[4,this.saveInitializeOptionsAndConfigs(e,t)];case 2:return d.sent(),[4,je.init()];case 3:return d.sent(),[4,bt.install()];case 4:return d.sent(),[4,Pt.setBrowserPermissionChangeHandler(!1)];case 5:return d.sent(),s=null===(n=t.nativePromptConfig)||void 0===n?void 0:n.active,a=(null===(r=t.nativePromptConfig)||void 0===r?void 0:r.waitingTimeSecond)||0,o=(null===(i=t.nativePromptConfig)||void 0===i?void 0:i.perPageViews)||1,c=function(){return new Promise((function(e,t){at.getPageCount()%o==0?setTimeout((function(){return Et(l,void 0,void 0,(function(){var n;return Ot(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,bt.subscribe(!1,!0,!0,{showGrantingPermissionsGuide:!1})];case 1:return r.sent(),e(!0),[3,3];case 2:return n=r.sent(),t(n),[3,3];case 3:return[2]}}))}))}),1e3*a):e(!0)}))},u=function(){return Et(l,void 0,void 0,(function(){return Ot(this,(function(e){switch(e.label){case 0:return[4,Pt.getCurrentPermission()];case 1:return e.sent()!==Ye?[3,5]:[4,bt.subscribe(!1,!0,!0)];case 2:return e.sent(),bt.needInteractive?[4,wt.show(void 0)]:[3,4];case 3:e.sent(),e.label=4;case 4:return[3,9];case 5:return s?[4,c()]:[3,7];case 6:return e.sent(),[3,9];case 7:return[4,wt.show(void 0)];case 8:e.sent(),e.label=9;case 9:return[2]}}))}))},[4,this.subscribeAgainAndActiveDevicProcess(u,void 0,u,!0)];case 6:return d.sent(),s&&(this.shouldPromptSubscribeFunc=function(){return l.subscribeAgainAndActiveDevicProcess(u,void 0,u,!0)}),[2]}}))}))},n._directInitializeFromProxy=function(){var t=this;return J.trace("_directInitializeFromProxy"),new Promise((function(n,r){return Et(t,void 0,void 0,(function(){var t=this;return Ot(this,(function(i){try{We.addEventListener(null,(function(i,s){return Et(t,void 0,void 0,(function(){var t,a,o,c,u=this;return Ot(this,(function(l){switch(l.label){case 0:return l.trys.push([0,10,,11]),i.type!==C?[2]:(J.trace("Event:".concat(C),i),t=i.data.combinedOptions,a=i.data.configs,o=i.data.additionalOrigin,c=o||a.originSiteUrl,_e(a.proxySiteUrl,window.location.origin,!0),[4,this.resetIfProjectIdChanged(t.projectId)]);case 1:return l.sent(),[4,this.saveInitializeOptionsAndConfigs(t,a)];case 2:return l.sent(),o?(Te.additionalOrigin=o,[4,qe.put(e,h,o)]):[3,4];case 3:return l.sent(),[3,6];case 4:return[4,qe.delete(e,h)];case 5:l.sent(),l.label=6;case 6:return window.localStorage.setItem("flarelane_redirectUrl",c),We.addEventListener(c,qe.dataToOriginDBEventHandler),We.addEventListener(c,Pt.permissionStateToOriginEventHandler),[4,Pt.setBrowserPermissionChangeHandler(!0)];case 7:return l.sent(),[4,je.initProxySide()];case 8:return l.sent(),[4,this.subscribeAgainAndActiveDevicProcess((function(){return Et(u,void 0,void 0,(function(){return Ot(this,(function(e){switch(e.label){case 0:return[4,wt.dispatchShowEvent(a.proxySiteUrl)];case 1:return e.sent(),[2]}}))}))}),(function(){return Et(u,void 0,void 0,(function(){return Ot(this,(function(e){switch(e.label){case 0:return[4,We.sendToOrigin(y,!0)];case 1:return e.sent(),[2]}}))}))}),(function(){return Et(u,void 0,void 0,(function(){return Ot(this,(function(e){switch(e.label){case 0:return[4,wt.dispatchShowEvent(a.proxySiteUrl)];case 1:return e.sent(),[2]}}))}))}))];case 9:return l.sent(),s(),n(!0),[3,11];case 10:return l.sent(),r(!1),[3,11];case 11:return[2]}}))}))}),!0)}catch(e){r(e)}return[2]}))}))}))},n.indirectInitialize=function(e,t,n){return Et(this,void 0,void 0,(function(){var r=this;return Ot(this,(function(i){return[2,new Promise((function(i,s){return Et(r,void 0,void 0,(function(){var r;return Ot(this,(function(a){switch(a.label){case 0:return a.trys.push([0,4,,5]),J.trace("indirectInitialize",e,t),this.indirectInitializeResolver=i,We.addEventListener(t.proxySiteUrl,(function(e){try{if(e.type!==y)return;J.trace("Event:".concat(y),e),e.data?i(!0):s(new Error("Indirect initialize failed."))}catch(e){s(e)}})),We.addEventListener(t.proxySiteUrl,wt.SubscribePopupEventHandler),We.addEventListener(t.proxySiteUrl,xt.widgetEventHandler),[4,He.inject(t.proxySiteUrl)];case 1:return a.sent(),bt.delete().catch((function(){})),qe.deleteDatabase().catch((function(){})),qe.indirectSubdomain=t.proxySiteUrl,qe.isIndirect=!0,Pt.isIndirect=!0,We.addEventListener(t.proxySiteUrl,qe.dataToWindowPopupDBEventHandler),[4,je.init(t.proxySiteUrl)];case 2:return a.sent(),[4,We.sendToIframe(C,{combinedOptions:e,configs:t,additionalOrigin:n},null,{origin:t.proxySiteUrl})];case 3:return a.sent(),[3,5];case 4:return r=a.sent(),s(r),[3,5];case 5:return[2]}}))}))}))]}))}))},n.subscribeAgainAndActiveDevicProcess=function(t,n,r,i){return Et(this,void 0,void 0,(function(){var s,o,c,u;return Ot(this,(function(d){switch(d.label){case 0:return[4,qe.get(e,a)];case 1:return(s=d.sent())?i?[4,bt.getSubscription()]:[3,8]:[3,16];case 2:return o=d.sent(),[4,qe.get(e,l)];case 3:return c=d.sent(),null===o&&r?[4,r()]:[3,5];case 4:return d.sent(),[3,7];case 5:return u=null!==o&&o.endpoint!==c,[4,Nt.activate(s,o,u)];case 6:d.sent(),d.label=7;case 7:return[3,13];case 8:return[4,qe.get(e,f)];case 9:return d.sent()&&r?[4,r()]:[3,11];case 10:return d.sent(),[3,13];case 11:return[4,Nt.activate(s,null,!1)];case 12:d.sent(),d.label=13;case 13:return n?[4,n()]:[3,15];case 14:d.sent(),d.label=15;case 15:return[3,18];case 16:return[4,t()];case 17:d.sent(),d.label=18;case 18:return[2]}}))}))},n.saveInitializeOptionsAndConfigs=function(t,n){return Et(this,void 0,void 0,(function(){return Ot(this,(function(r){switch(r.label){case 0:return[4,qe.put(e,"platform",ot())];case 1:return r.sent(),[4,qe.put(e,s,t.projectId)];case 2:return r.sent(),[4,qe.put(e,u,t.serviceWorkerPath)];case 3:return r.sent(),[4,Te.saveConfigs(n)];case 4:return r.sent(),[2]}}))}))},n.resetIfProjectIdChanged=function(n){return Et(this,void 0,void 0,(function(){var r;return Ot(this,(function(a){switch(a.label){case 0:return[4,qe.get(e,s)];case 1:return(r=a.sent())&&n!==r?[4,qe.clearTable(e)]:[3,5];case 2:return a.sent(),[4,qe.clearTable(t)];case 3:return a.sent(),[4,qe.clearTable(i)];case 4:a.sent(),window.localStorage.removeItem(b),a.label=5;case 5:return[2]}}))}))},n.indirectInitializeResolver=null,n.shouldPromptSubscribeFunc=null,n}(),Bt=function(){function e(){this.queue=[]}return e.prototype.push=function(e){this.queue.push(e)},e.prototype.excute=function(){return e=this,t=void 0,r=function(){return function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}}(this,(function(e){switch(e.label){case 0:return[4,Promise.allSettled(this.queue.map((function(e){return e()})))];case 1:return e.sent(),this.queue=[],[2]}}))},new((n=void 0)||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r},e}(),Lt=function(){return Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Lt.apply(this,arguments)},Tt=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},Ft=function(e,t){var n,r,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}};const Dt=function(){function t(){}return t.setLogLevel=function(e){try{J.setLogLevel(e)}catch(e){}},t.initialize=function(e){return Tt(this,void 0,void 0,(function(){var n,r=this;return Ft(this,(function(i){switch(i.label){case 0:return n=function(){return Tt(r,void 0,void 0,(function(){var n,r,i,s;return Ft(this,(function(a){switch(a.label){case 0:if(a.trys.push([0,7,,8]),J.setisTracerActivate(),J.trace("FlareLane.initialize",e),t.initialized||t.initializing)return[2];if(window.top!==window)return J.log("initializing blocked in iframe."),[2];if(t.initializing=!0,window.navigator.userAgent.indexOf("Android")>-1&&window.navigator.userAgent.indexOf("wv")>-1){if(!window.navigator.userAgent.match(/NAVER|KAKAOTALK|Snapchat|Line|Instagram|everytimeApp|WhatsApp|wadiz|AliApp|zumapp|kakaostory|band|twitter|DaumApps|DaumDevice\/mobile|FB_IAB|FB4A|FBAN|FBIOS|FBSS\/[^1]/i))return J.log("Initializing Stopped."),[2];t.needEscapeInapp=!0}return function(e,t){var n=e.filter((function(e){return void 0===t[e]||!t[e]}));if(0!==n.length)throw new Error("Initialize options required this key: ".concat(n.join(", ")))}(L,e),n=Lt(Lt({},T),e),[4,Te.getRemoteConfigs(n.projectId)];case 1:if(r=a.sent(),at.isPathMatched(location.pathname,r.blockedPaths))return J.log("FlareLane initialize blocked by console configs."),[2];if((null==r?void 0:r.hidePromotion)&&(X.hidePoweredBy=!0),!r.originSiteUrl)throw new Error("Please set required values for web push in the flarelane console.");return i=Te.setAdditionalOrigin(r,window.location.origin),[4,at.setPath(location.pathname,!0)];case 2:return a.sent(),at.pathHooking(),r.directInit?[4,_t.initialize(n,r)]:[3,4];case 3:return a.sent(),[3,6];case 4:if(!r.proxySiteUrl)throw new Error("Please set required values for web push in the flarelane console.");return[4,_t.indirectInitialize(n,r,i)];case 5:a.sent(),a.label=6;case 6:return t.needEscapeInapp?(J.log("Initializing Stopped."),[2]):(t.initialized=!0,t.initializing=!1,t.queueManager.push((function(){return xt.show()})),t.queueManager.excute().catch((function(){})),[3,8]);case 7:return s=a.sent(),t.initializing=!1,J.error("An error occurred in initialize.\n".concat(s.message)),console.error(s),[3,8];case 8:return[2]}}))}))},document.body?[4,n()]:[3,2];case 1:return i.sent(),[3,3];case 2:window.addEventListener("DOMContentLoaded",n),i.label=3;case 3:return[2]}}))}))},t._directInitializeFromProxy=function(){return Tt(this,void 0,void 0,(function(){var e;return Ft(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),J.setisTracerActivate(),J.trace("FlareLane._directInitializeFromProxy"),[4,_t._directInitializeFromProxy()];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),J.error("An error occurred in indexeddb during _directInitialize. (in iframe)\n".concat(e.message)),[3,3];case 3:return[2]}}))}))},t._proxySubscribe=function(){return Tt(this,void 0,void 0,(function(){var t,n,r;return Ft(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),J.setisTracerActivate(),J.trace("FlareLane._proxySubscribe"),qe.isWindowPopupIndirect=!0,qe.windowPopupSubdomain=window.origin,[4,Te.getConfigs()];case 1:return t=i.sent(),_e(window.origin,t.proxySiteUrl||"")?[4,qe.get(e,h)]:(window.close(),[2]);case 2:return(n=i.sent())&&(Te.additionalOrigin=n),Pt.setBrowserPermissionChangeHandler(!0),[4,ft.showProxyPopup()];case 3:return i.sent(),[3,5];case 4:return r=i.sent(),J.error("An error occurred in _proxySubscribe.\n".concat(r.message)),opener.postMessage({type:P,data:!0},"*"),window.close(),[3,5];case 5:return[2]}}))}))},t.setUserId=function(e){return Tt(this,void 0,void 0,(function(){var t,n=this;return Ft(this,(function(r){switch(r.label){case 0:if(J.trace("FlareLane.setUserId",e),void 0===e)return J.error("Expected string or null but got undefined. in setUserId"),[2];if(!this.initialized)return this.queueManager.push((function(){return n.setUserId(e)})),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),Nt.checkIsDiff(m,JSON.stringify(e))?[4,Nt.update({userId:e})]:[2];case 2:return(t=r.sent())&&Nt.setDiff(m,JSON.stringify(e)),[2,t];case 3:return r.sent(),J.error("An error occurred in setUserId."),[3,4];case 4:return[2]}}))}))},t.setTags=function(e){return Tt(this,void 0,void 0,(function(){var t,n=this;return Ft(this,(function(r){switch(r.label){case 0:if(J.trace("FlareLane.setTags",e),void 0===e)return J.error("Expected string or null but got undefined. in setTags"),[2];if(!this.initialized)return this.queueManager.push((function(){return n.setTags(Lt({},e))})),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),Nt.checkIsDiff(v,JSON.stringify(e))?[4,Nt.update({tags:e})]:[2];case 2:return(t=r.sent())&&Nt.setDiff(v,JSON.stringify(e)),[2,t];case 3:return r.sent(),J.error("An error occurred in setTags."),[3,4];case 4:return[2]}}))}))},t.setIsSubscribed=function(e,t,n){return Tt(this,void 0,void 0,(function(){var r,i,s=this;return Ft(this,(function(a){switch(a.label){case 0:if(J.trace("FlareLane.setIsSubscribed",e),!this.initialized)return this.queueManager.push((function(){return s.setIsSubscribed(e,t,n)})),[2];r=function(){return Tt(s,void 0,void 0,(function(){var e;return Ft(this,(function(n){switch(n.label){case 0:return[4,gt.getSubscribeState()];case 1:return e=n.sent(),t&&t(e),[2]}}))}))},a.label=1;case 1:return a.trys.push([1,9,,10]),e?[4,Te.getConfigs()]:[3,6];case 2:return(i=a.sent()).directInit?[4,bt.subscribe(!1,!1,!0,n)]:[3,4];case 3:return a.sent(),r(),[3,5];case 4:wt.openPopupWindw(i.proxySiteUrl,(function(){r()})),a.label=5;case 5:return[3,8];case 6:return[4,Nt.setIsSubscribed(!1)];case 7:a.sent(),r(),a.label=8;case 8:return[3,10];case 9:return a.sent(),J.error("An error occurred in setIsSubscribed."),r(),[3,10];case 10:return[2]}}))}))},t.getIsSubscribed=function(e){var t=this;J.trace("FlareLane.getIsSubscribed",e),this.initialized?gt.getSubscribeState().then((function(t){e(t)})).catch((function(){J.error("An error occurred in getIsSubscribed.")})):this.queueManager.push((function(){return t.getIsSubscribed(e)}))},t.getDeviceId=function(t){var n=this;J.trace("FlareLane.getDeviceId",t),this.initialized?qe.get(e,a).then((function(e){t(e)})).catch((function(){J.error("An error occurred in getDeviceId.")})):this.queueManager.push((function(){return n.getDeviceId(t)}))},t.setConvertedHandler=function(e){var t=this;J.trace("FlareLane.setConvertedHandler",e),this.initialized?je.setConvertedHandler(e):this.queueManager.push((function(){return t.setConvertedHandler(e)}))},t.setIsSubscribedChangeHandler=function(e){J.trace("FlareLane.setIsSubscribedChangeHandler",e),je.setIsSubscribedChangeHandler(e)},t.setCurrentPath=function(e){J.trace("FlareLane.setCurrentPath",e),J.log("This method has been deprecated. It now automatically recognizes the path.")},t.toggleWidgetSubcontents=function(e){this.initialized&&xt.toggleWidgetPopup(e)},t.initialized=!1,t.initializing=!1,t.needEscapeInapp=!1,t.queueManager=new Bt,t}()})(),window.FlareLane=r.default})();