(()=>{var e={868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keenService=void 0;var n,o,i=(n=r(656))&&n.__esModule?n:{default:n},a=r(999),s=r(476),u=t.keenService=new i.default;o=window.HAnalyticsGlobalData&&(0,s.tryJSONParse)(window.HAnalyticsGlobalData.eventsJson),u.processAnalyticsEvents(o),(0,a.addAnalyticsEventsToDataLayer)(o),u.reportABTests(),u.reportPageView()},506:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(r(433)),o=d(r(242)),i=r(994),a=r(743),s=r(572),u=r(654),c=r(287),l=r(993);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var r=0;r-1)return t;var r=this._getStoredIndexes();if(r.hasOwnProperty(e))return r[e];var o,i,a=(o=n.default[e].variants,i=Math.random(),o.reduce((function(e,t,r){if(null!==e.idx)return e;var n=e.sum+t.weight;return i<=n?{idx:r,sum:n}:Object.assign({},e,{sum:n})}),{idx:null,sum:0}).idx);return this._storeJoinedExperiment(e,a,r),this._reportJoinedExperiment(e,a),a}},{key:"_getStoredIndexes",value:function(){if((0,i.canUseDOM)()){var e=(0,u.getItem)(y)||{};return(0,a.filterObject)(e,(function(e,t){return n.default.hasOwnProperty(t)}))}}},{key:"_getProps",value:function(e,t){return(0,s.getInObj)([e,"variants",t,"props"],n.default)||{}}},{key:"_getVariantIdxByValue",value:function(e,t){var r=(0,s.getInObj)([e,"variants"],n.default);return r?r.reduce((function(e,r,n){return-1===e&&r.value===t?n:e}),-1):-1}},{key:"_reportJoinedExperiment",value:function(e,t){this.recordEvent({eventName:"Joined experiment"},{exp_name:e,value:(0,s.getInObj)([e,"variants",t,"value"],n.default)})}},{key:"_storeJoinedExperiment",value:function(e,t,r){var n,o,i,a=Object.assign({},r,(n={},i=t,(o=h(o=e))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n));(0,u.setItem)(y,a)}},{key:"getExperimentProps",value:function(e){try{var t=this._getIdx(e);return this._getProps(e,t)}catch(t){return(0,o.default)(t),this._getProps(e,0)}}},{key:"storeAndReportExperiment",value:function(e,t){if(n.default.hasOwnProperty(e)){var r=this._getVariantIdxByValue(e,t),i=this._getStoredIndexes();r>-1&&i[e]!==r&&(this._storeJoinedExperiment(e,r,i),this._reportJoinedExperiment(e,r))}else(0,o.default)("Unknown AB test:",e)}}])&&p(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=m},433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={lock_screen_2018_08:{variants:[{props:{},value:"false",weight:.98},{props:{},value:"true",weight:.02}]}}},999:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.addAnalyticsEventsToDataLayer=function(e){e&&e.forEach((function(e){var t,r,o,i,s=e.customProps;switch(e.eventName){case"Created account":a({event:"sign_up",method:s.provider||"email"});break;case"Entered feature gate":a((t={},r="fG_".concat(s.feature_gate),o=s.feature_enabled,i=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r),(r="symbol"==n(i)?i:String(i))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t));break;case"Logged in":a({event:"login",method:s.method})}}))},t.addToDataLayer=a,t.createVirtualPageview=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window&&window.gglTagMngrDataLayer&&window.gglTagMngrDataLayer.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.path,r=e.pageType,n=e.title,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,i);return Object.assign({event:"gtm.virtualPageview",pageType:r||(0,o.getDocumentFunction)("querySelector")("meta[name=pageType]").content,virtualPage:t||o.windowLocationPathname.get(),virtualTitle:n||(0,o.getDocumentProperty)("title")},a)}(e))};var o=r(993),i=["path","pageType","title"];function a(e){var t;null===(t=window.gglTagMngrDataLayer)||void 0===t||t.push(e)}},272:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areCookiesSupported=f,t.deleteCookie=function(e){return f()?c(e):null},t.getCookie=function(e){return f()?l(e):null},t.setCookie=function(e,t,r){return f()?d(e,t,r):null};var n,o=(n=r(242))&&n.__esModule?n:{default:n},i=r(345),a=r(993),s=null;function u(e){document.cookie=e}function c(e){var t=l(e);return u("".concat(e,"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=.").concat(CLIENT_ENV.DEFAULT_DOMAIN,";")),t}function l(e){var t=document.cookie.match(new RegExp("".concat(e,"=([^;]+)")));if(!t||!t[1])return null;var r=t[1];if((0,i.isAString)(r))return r;try{return JSON.parse(decodeURIComponent(r))}catch(t){return(0,o.default)("parseCookie: ".concat(e),t),{}}}function d(e,t,r){var n=(0,i.isAString)(t)?t:encodeURIComponent(JSON.stringify(t)),o=(0,i.isADate)(r)?r.toUTCString():null;u("".concat(e,"=").concat(n,"; path=/; domain=.").concat(CLIENT_ENV.DEFAULT_DOMAIN,"; expires=").concat(o))}function f(){if(null===s)if(a.isWindowDefined&&window.navigator.cookieEnabled){d("testcookie","1");var e=l("testcookie");e&&c("testcookie"),s=!!e}else s=!1;return s}},242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){console.error.apply(console,arguments)}},656:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(r(290)),i=c(r(633)),a=c(r(242)),s=c(r(506)),u=r(476);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:0;return this._hasAnalyticsAttrib(e)?e:t>=2||!e||"BODY"===e.nodeName||!e.parentNode?null:this._findTarget(e.parentNode,t+1)}},{key:"_hasAnalyticsAttrib",value:function(e){return!(!e||!e.hasAttribute)&&e.hasAttribute(b)}}],n&&l(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),t}(o.default)},709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(611);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"").split("#")[0]||null}t.default=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.distinctId,o=void 0===r?null:r,i=t.sessionId,a=void 0===i?null:i,s=t.pageType,u=void 0===s?null:s,c=t.userId,l=void 0===c?null:c,d=t.utmParams,f=void 0===d?{}:d,p=t.whitelabel,h=void 0===p?null:p;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clientEventId=(0,n.v4)(),this.distinctId=o,this.pageType=u,this.userId=l,this.sessionId=a,this.utm_campaign=f.utm_campaign,this.utm_content=f.utm_content,this.utm_medium=f.utm_medium,this.utm_source=f.utm_source,this.utm_term=f.utm_term,this.whitelabel=h}var t,r;return t=e,(r=[{key:"createRecord",value:function(){return{client_event_id:this.clientEventId,distinct_id:this.distinctId,ip:"${keen.ip}",logged_in:this.userId&&"number"==typeof this.userId,page_url:document.location.toString(),page_type_category:s(this.pageType),page_type_full:this.pageType,referrer:{url:document.referrer||""},session_id:this.sessionId,user_id:this.userId,utm_campaign:this.utm_campaign,utm_content:this.utm_content,utm_medium:this.utm_medium,utm_source:this.utm_source,utm_term:this.utm_term,whitelabel:this.whitelabel,keen:{addons:[{name:"keen:url_parser",input:{url:"page_url"},output:"parsed_page_url"}]}}}}])&&i(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},647:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(r(709)),i=a(r(599));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var r=0;r{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var o;function i(e,t){for(var r=0;r{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=t.distinctId,n=void 0===r?null:r,o=t.sessionId,i=void 0===o?null:o,a=t.pageType,s=void 0===a?null:a,u=t.userId,c=void 0===u?null:u,l=t.utmParams,d=void 0===l?{}:l,f=t.whitelabel,p=void 0===f?null:f;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.distinctId=n,this.pageType=s,this.sessionId=i,this.userId=c,this.utm_campaign=d.utm_campaign,this.utm_content=d.utm_content,this.utm_medium=d.utm_medium,this.utm_source=d.utm_source,this.utm_term=d.utm_term,this.whitelabel=p}var t,r;return t=e,(r=[{key:"createRecord",value:function(){return{distinct_id:this.distinctId,ip:"${keen.ip}",landing_page_type:this.pageType,landing_page_url:document.location.toString(),referrer:{url:document.referrer||""},screen:{height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},session_id:this.sessionId,user_agent:"${keen.user_agent}",user_id:this.userId,utm_campaign:this.utm_campaign,utm_content:this.utm_content,utm_medium:this.utm_medium,utm_source:this.utm_source,utm_term:this.utm_term,whitelabel:this.whitelabel,keen:{addons:[{name:"keen:ip_to_geo",input:{ip:"ip"},output:"geo_info"},{name:"keen:referrer_parser",input:{referrer_url:"referrer.url"},output:"referrer.info"},{name:"keen:ua_parser",input:{ua_string:"user_agent"},output:"parsed_user_agent"},{name:"keen:url_parser",input:{url:"landing_page_url"},output:"parsed_landing_page_url"}]}}}}])&&n(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPropTemplate=function(e){return r[e]},t.isValidEventName=function(e){return r.hasOwnProperty(e)};var r={"Ad clicked":{id:"number"},"Ad viewed":{id:"number",blocked:"boolean"},"Added project to contest":{},"Added project to list":{},"Changed notification settings":{},"Clicked filter value":{},"Clicked button":{},"Clicked launch campaign":{},"Clicked link":{},"Clicked menu item":{},"Clicked part buy link":{link_position:"number"},"Clicked view all section":{},"Clicked view more":{},"Completed onboarding":{},"Completed onboarding step":{},"Confirmed email address":{},"Created account":{},"Created bookmark":{},"Created bookmark list":{},"Created comment":{},"Created event":{},"Created post":{},"Created project":{},"Deleted account":{},"Deleted bookmark":{},"Deleted bookmark list":{},"Deleted comment":{},"Deleted event":{},"Deleted post":{},"Dismissed tooltip":{},"Entered feature gate":{feature_gate:"string",feature_enabled:"boolean",rate:"number"},"Followed entity":{},"Joined experiment":{},"Logged in":{method:"string"},"Logged out":{},"Made project public":{},"Opened bookmark menu":{},"Opened explore menu":{},"Opened menu":{},"Posted comment":{},"Posted feed post":{},"Registered for contest":{},"Registered for workshop":{},"Respected entity":{},Searched:{filters:{parts:"array",project_type:"array",difficulty:"array",language:"array",skills:"array",available_for_hire:"boolean",location:{geoloc:{lat:"number",lng:"number"},distance:"number"}},pagination:{current_page:"number",per_page:"number",total_pages:"number",total_records:"number"}},"Search filter":{},"Search location filter":{},"Sent invites":{count:"number"},"Signup prompt clicked":{},"Signup prompt shown":{},"Submitted idea to contest":{},"Submitted project to contest":{},"Unfollowed entity":{},"Updated comment":{},"Updated post":{},"Unregistered for contest":{},"Unrespected entity":{},"Viewed lock screen":{projects_viewed:"number"}}},599:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,o.isObjectWithLength)(e)?s(e,(0,n.getPropTemplate)(t)):null};var n=r(865),o=r(345);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a={array:function(e){return Array.isArray(e)&&e.length>0?e:null},boolean:function(e){if("boolean"==typeof e)return e;if("string"==typeof e){var t=e.toLowerCase();return"true"===t||"false"!==t&&null}return null},number:function(e){if(Array.isArray(e))return null;var t=parseFloat(e);return isNaN(t)?null:t},string:function(e){return"string"==typeof e?e:"boolean"==typeof e||"number"==typeof e?e.toString():null}};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(r,n){var u=t[n],c=e[n],l=(0,o.isObjectWithLength)(c)?s(c,u):function(e,t,r){var n=a[t];return n?n(e):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.endsWith("_id")&&"event_id"!==t?"number":"string";return a[r](e)}(e,r)}(c,u,n);return(0,o.isBlank)(l)?r:Object.assign({},r,function(e,t,r){var n;return n=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==i(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,l))}),{})}},290:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=h(r(647)),o=h(r(266)),i=h(r(822)),a=h(r(474)),s=h(r(242)),u=h(r(632)),c=r(572),l=r(370),d=r(865),f=r(54),p=r(993);function h(e){return e&&e.__esModule?e:{default:e}}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function m(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=t.pageType,o=t.eventName,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(t,a){if((0,u.default)()||!e._hasKeenKeys()||!(0,d.isValidEventName)(o))return t();if(!(r=r||e._getPageType()))return a(new Error("recordEvent expected a pageType, but received: ".concat(r)));var c=e._getEventData(),l=c.createNewSession,p=c.distinctId,h=c.sessionId,y=c.utmParams,m=new n.default({customProps:i,distinctId:p,eventName:o,pageType:r,sessionId:h,userId:e.currentUserId,utmParams:y,whitelabel:e.whitelabel});return Promise.all([(0,f.postSingleEvent)(m.createRecord(),"events"),e.recordNewSession({createNewSession:l,distinctId:p,sessionId:h,pageType:r,utmParams:y})]).then((function(){return t()})).catch((function(e){return(0,s.default)("KeenService recordEvent: ",e),a(e)}))}))}},{key:"recordEventWithDelayedRedirect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.pageType,r=e.eventName,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return i.ctrlKey||i.metaKey?this.recordEvent({eventName:r,pageType:t},n):(i.preventDefault(),this._recordEventAndRedirect({eventName:r,pageType:t},n,o))}},{key:"recordEventsWithDelayedRedirect",value:function(e,t,r){return r.ctrlKey||r.metaKey?this.recordEvents(e):(r.preventDefault(),this._recordEventsAndRedirect(e,t))}},{key:"recordEvents",value:function(e){var t=this;return new Promise((function(r,n){var o=e.map((function(e){return t._normalizeObj(e)})).map((function(e){var r=e.eventName,n=e.pageType,o=e.customProps;return t.recordEvent({eventName:r,pageType:n},o)}));return Promise.all(o).then((function(){return r()})).catch((function(e){return(0,s.default)("KeenService recordEvents: ",e),n(e)}))}))}},{key:"recordLinkClick",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,r=void 0===t?"Clicked link":t,n=e.pageType,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3?arguments[3]:void 0,s=o.href||(0,c.getInObjWithPrototypeAccess)(["target","href"],a),u=o.value||(0,c.getInObjWithPrototypeAccess)(["target","textContent"],a)||(0,c.getInObjWithPrototypeAccess)(["target","innerText"],a),l=Object.assign({},o,{href:s,value:u});return i&&s?this.recordEventWithDelayedRedirect({eventName:r,pageType:n},l,s,a):this.recordEvent({eventName:r,pageType:n},l)}},{key:"recordPageView",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(r,n){if((0,u.default)()||!e._hasKeenKeys())return r();var i=t.entity_id||e._getEntityId(),a=t.pageType||e._getPageType();if(!a)return n(new Error("recordPageView expected a pageType, but received: ".concat(a)));var c=e._getEventData(),l=c.createNewSession,d=c.distinctId,p=c.sessionId,h=c.utmParams,y=new o.default({distinctId:d,entity_id:i,pageType:a,referrer:t.referrer,sessionId:p,userId:e.currentUserId,utmParams:h,whitelabel:e.whitelabel});return Promise.all([(0,f.postSingleEvent)(y.createRecord(),"page_views"),e.recordNewSession({createNewSession:l,distinctId:d,sessionId:p,pageType:a,utmParams:h})]).then((function(){return r()})).catch((function(e){return(0,s.default)("KeenService recordPageView: ",e),n(e)}))}))}},{key:"recordNewSession",value:function(e){var t=this,r=e.createNewSession,n=e.distinctId,o=e.sessionId,a=e.pageType,s=e.utmParams;return new Promise((function(e,c){if(!r||(0,u.default)()||!t._hasKeenKeys())return e();if(!(a=a||t._getPageType()))return c(new Error("recordNewSession expected a pageType, but received: ".concat(a)));var l=new i.default({distinctId:n,sessionId:o,pageType:a,whitelabel:t.whitelabel,utmParams:s,userId:t.currentUserId});return(0,f.postSingleEvent)(l.createRecord(),"sessions").then((function(){return e()})).catch((function(e){return c(e)}))}))}},{key:"_getEntityId",value:function(){return p.isWindowDefined&&window.HAnalyticsGlobalData&&window.HAnalyticsGlobalData.hasOwnProperty("entity_id")?window.HAnalyticsGlobalData.entity_id:null}},{key:"_getEventData",value:function(){var e=this.sessionHandler.getSessionData(),t=e.createNewSession,r=e.data;return{createNewSession:t,distinctId:r.distinctId,sessionId:r.sessionId,utmParams:(0,l.getUTMParams)(window.location.search,t)}}},{key:"_getPageType",value:function(){if("undefined"!=typeof document&&"function"==typeof document.querySelector){var e=document.querySelector('meta[name="pageType"]');return e&&e.hasAttribute("content")?this._transformPageType(e.getAttribute("content")):null}return null}},{key:"_getUserId",value:function(){return p.isWindowDefined&&window.HAnalyticsGlobalData&&window.HAnalyticsGlobalData.hasOwnProperty("user_id")?parseInt(window.HAnalyticsGlobalData.user_id):null}},{key:"_getWhitelabel",value:function(){return p.isWindowDefined&&window.HAnalyticsGlobalData&&window.HAnalyticsGlobalData.hasOwnProperty("whitelabel")?window.HAnalyticsGlobalData.whitelabel:null}},{key:"_eventObjTransform",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.customProps,r=void 0===t?{}:t,n=e.event,o=void 0===n?{}:n;return{customProps:r,eventName:o.eventName,pageType:o.pageType}}},{key:"_hasKeenKeys",value:function(){return p.isWindowDefined?!!(window&&window.jsk&&window.jsk.oht&&window.jsk.oak):null}},{key:"_normalizeObj",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.hasOwnProperty("event")?this._eventObjTransform(e):e.hasOwnProperty("eventName")?e:{}}},{key:"_recordEventAndRedirect",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.pageType,n=t.eventName,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;return new Promise((function(t,a){e.recordEvent({eventName:n,pageType:r},o).then((function(){return t((0,p.windowLocationRedirect)(i))})).catch((function(e){return(0,s.default)("KeenService _recordEventAndRedirect: ",e),a(e)}))}))}},{key:"_recordEventsAndRedirect",value:function(e,t){var r=this;return new Promise((function(n,o){return r.recordEvents(e).then((function(){return n((0,p.windowLocationRedirect)(t))})).catch((function(e){return(0,s.default)("KeenService _recordEventsAndRedirect: ",e),o(e)}))}))}},{key:"_transformPageType",value:function(e){return e}}],r&&m(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},54:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.postSingleEvent=function(e,t){return new Promise((function(r,n){return d(e,t).then((function(r){var n=r.err,o=r.res;return n?l(c(e,t,n)):Promise.resolve(o)})).then((function(e){return r(e)})).catch((function(e){return n(e)}))}))};var n=s(r(734)),o=s(r(232)),i=s(r(568)),a=r(572);function s(e){return e&&e.__esModule?e:{default:e}}var u=new o.default,c=function(e,t,r){var n=["distinct_id","ip","keen","referrer","user_id","whitelabel"],o=Object.keys(e).reduce((function(t,r){return n.includes(r)||(t[r]=e[r]),t}),{}),i=void 0!==r.status,s={status:i?r.status:0,reason:i?(0,a.getInObj)(["response","body","message"],r):"net::ERR_BLOCKED_BY_CLIENT"};return{browser_info:Object.assign({},u.getResult(),{referrer:e.referrer,error:s}),other_props:o,distinct_id:e.distinct_id,table:t,user_id:e.user_id,whitelabel:e.whitelabel}},l=function(e){return i.default.apiRequest(n.default.post("".concat(i.default.getApiPath(),"/private/debug")).send(e),!0,!1,!1)},d=function(e,t){return new Promise((function(r,o){return n.default.post("https://".concat(window.jsk.oht,"/v1/events/").concat(t)).query({key:window.jsk.oak}).set("Content-Type","application/json").send(e).end((function(e,t){return r({err:e,res:t})}))}))}},633:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=["communities#react","community#show","platforms#react","platforms#show","projects#index","topic_channels#react","users#preferences","users#dashboard","users#show","topic_channels#show","videos#index"]},474:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=r(611),i=(n=r(435))&&n.__esModule?n:{default:n},a=r(654);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:null;return{dId:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||(0,o.v4)(),sId:e||(0,o.v4)(),t:this._getDatePlusHours(1)}}},{key:"_getDatePlusHours",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return new Date(Date.now()+3600*e*1e3).valueOf()}},{key:"_fetchFromCache",value:function(){return(0,a.getItem)(this.LS_KEY)}},{key:"_isSessionExpired",value:function(e){return Date.now()>parseFloat(e)}},{key:"_setInCache",value:function(e){return(0,a.setItem)(this.LS_KEY,e)}},{key:"_translator",value:function(e){return{distinctId:e.dId,sessionId:e.sId}}}],r&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUTMParams=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(0,o.mapifyStringQuery)(t),l=u.reduce((function(e,t){return Object.assign({},e,a({},t,i[t]||""))}),{});return function(e){return u.reduce((function(t,r){return t||!!e[r]}),!1)}(l)?(e=l,(0,n.setItem)(s,e),l):r?((0,n.deleteItem)(s),c):(0,n.getItem)(s)||c};var n=r(654),o=r(287);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,r){var n;return n=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==i(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s="hck.kn.utm",u=["utm_campaign","utm_content","utm_medium","utm_source","utm_term"],c=u.reduce((function(e,t){return Object.assign({},e,a({},t,""))}),{})},654:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deleteItem=function(e){return l().delete(e)},t.getItem=function(e){return l().get(e)},t.isLocalStorageSupported=d,t.setItem=function(e,t){return l().set(e,t)};var n,o=(n=r(242))&&n.__esModule?n:{default:n},i=r(345),a=r(272),s={delete:function(e){return window.localStorage.removeItem(e)},get:function(e){return function(e){try{return JSON.parse(e)}catch(t){return e}}(window.localStorage.getItem(e))},set:function(e,t){return window.localStorage.setItem(e,(r=t,(0,i.isObject)(r)||Array.isArray(r)?JSON.stringify(r):r));var r}},u={delete:function(e){return(0,a.deleteCookie)(e)},get:function(e){return(0,a.getCookie)(e)},set:function(e,t){return(0,a.setCookie)(e,t)}},c={delete:function(){return(0,o.default)("Local Storage and Cookies disabled!")},get:function(){return(0,o.default)("Local Storage and Cookies disabled!")},set:function(){return(0,o.default)("Local Storage and Cookies disabled!")}};function l(){return d()?s:(0,a.areCookiesSupported)()?u:c}function d(){var e=function(){try{return window.localStorage}catch(e){return null}}();if(!e)return!1;try{return e.setItem("testKey","1"),e.removeItem("testKey"),!0}catch(e){return(0,o.default)("Local Storage is not supported",e),!1}}},978:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(127)),o=u(r(734)),i=u(r(947)),a=r(654),s=r(595);function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){for(var r=0;r0?{token:t,type:"user"}:{token:(0,a.getItem)(p),type:"client"}}},{key:"_isTokenValid",value:function(e){if(!e||!e.length)return!1;var t=(0,n.default)(e);return!(t.hasOwnProperty("user")&&t.user.hasOwnProperty("id")&&!this._doesJwtIdMatchBodyId(t.user.id))&&!!t.hasOwnProperty("exp")&&new Date(new Date(t.exp).valueOf()-1e4)>new Date}},{key:"_doesJwtIdMatchBodyId",value:function(e){var t=document.body.getAttribute("data-user-signed-in");return!(null==t||"string"==typeof t&&!t.length)&&parseInt(e)===parseInt(t)}},{key:"deleteTokens",value:function(){(0,a.deleteItem)(h),(0,a.deleteItem)(p)}},{key:"fetchTokens",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(n,o){var i,a,u,c=t._getTokenFromStorage(e),l=t._isTokenValid(c.token)&&!1===r?(i={},a="".concat(c.type,"_token"),u=c.token,(a=d(a))in i?Object.defineProperty(i,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[a]=u,i):null;if(t.batch.push({resolve:n,reject:o,tokens:l}),!t.isFetching)return t.isFetching=!0,(0,s.setTimeoutPromise)(50).then((function(){return t._fetchTokensFromStorageOrServer()})).then((function(e){return t._resolveFetchTokens("resolve",e)})).catch((function(e){return t._resolveFetchTokens("reject",e)}))}))}},{key:"getTokenType",value:function(e){return e?"user":"client"}}],r&&l(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},947:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(document&&document.getElementById){var e=document.getElementById("path-prefix");return e&&e.content?e.content:""}}},568:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(734),o=c(r(242)),i=r(993),a=r(486),s=r(572),u=c(r(978));function c(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function d(e,t){for(var r=0;r5&&void 0!==arguments[5]?arguments[5]:0;this.requestQueue.push({request:e,resolve:t,reject:r,resolver:n,tokenType:o,attempts:i})}},{key:"_createRequestResolver",value:function(e,t,r,o){var i=this;return function(a,s,u,c){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return function(e){var t=new n.Request(e.method,e.url);return t._query=e._query,t.header=e.header,t._header=e._header,t._data=e._data,t}(e).query({bearer_token:a}).then((function(e){return u(r?Object.assign({},e.body,{token:a}):e)})).catch((function(r){var n=r&&r.status&&r.status>=400&&r.status<=500;return!i.userIdFromDom&&l>=1&&n?u({}):i.userIdFromDom&&l>=1&&n||l>=2?c(r):void i._recoverFailedRequest(e,u,c,s,l,t,o)}))}}},{key:"_fetchTokens",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.Tokens.fetchTokens(e,t)}},{key:"_fetchUserIdFromDOMBody",value:function(){return document&&document.body.getAttribute("data-user-signed-in")||null}},{key:"_handleTokens",value:function(e,t,r){return e.hasOwnProperty("user_token")?this._resolveRequestQueue(e):t&&r?this._summonLoginPanel(t):t?this._handleUnresolvedUserRequests():this._resolveRequestsForTokenType(e.client_token,"client")}},{key:"_handleUnresolvedUserRequests",value:function(){this.userIdFromDom?this._resolveRequestsForTokenType(null,"user"):this._resolveUserPromisesForUnresolvedRequests()}},{key:"_recoverFailedRequest",value:function(e,t,r,n,o,i,a){var s=this;return this.Tokens.deleteTokens(),this._cacheRequest(e,t,r,n,this.Tokens.getTokenType(i),o+=1),this._fetchTokens(i).then((function(e){return s._handleTokens(e,i,a)})).catch((function(e){return r(e)}))}},{key:"_reFetchTokensAfterLogin",value:function(e,t){return this._initialize(),this.userIdFromDom&&parseInt(this.userIdFromDom,10)===parseInt(t,10)?this._fetchTokens(e,!0).catch((function(e){return(0,o.default)("_reFetchTokensAfterLogin Error",e)})):(0,i.reloadDocumentLocation)()}},{key:"_resolveCallbacksForGetApiToken",value:function(e){var t=this,r=e.hasOwnProperty("user_token"),n=r?e.user_token:e.client_token||null;this.callbackQueueForNonPromises=this.callbackQueueForNonPromises.filter((function(e){return e.userOnly&&r||!1===e.userOnly?(e.callback(n),!1):e.attempts<2?(t.getApiToken.call(t,e.callback,e.userOnly,e.attempts+=1),!1):(e.callback(null),!1)}))}},{key:"_resolveRequestQueue",value:function(e){var t=this;this.requestQueueWorking||(this.requestQueueWorking=!0,this.requestQueue=this.requestQueue.filter((function(r){return r.resolver.call(t,e.user_token,r.resolver,r.resolve,r.reject,r.attempts),!1})),this.requestQueueWorking=!1)}},{key:"_resolveRequestsForTokenType",value:function(e,t){var r=this;this.requestQueue=this.requestQueue.filter((function(n){return n.tokenType!==t||(n.resolver.call(r,e,n.resolver,n.resolve,n.reject,n.attempts),!1)}))}},{key:"_resolveUserPromisesForUnresolvedRequests",value:function(){this.requestQueue=this.requestQueue.filter((function(e){return"user"!==e.tokenType||(e.resolve({unresolved:!0}),!1)}))}},{key:"_summonLoginPanel",value:function(e){(0,a.summonLoginPanel)({detail:{callback:this._reFetchTokensAfterLogin.bind(this,e),redirect_to:null}}),this._resolveUserPromisesForUnresolvedRequests()}},{key:"apiRequest",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return new Promise((function(i,a){t.initialized||t._initialize();var s=t.Tokens.getTokenType(r),u=t._createRequestResolver(e,r,n,o);return t._cacheRequest(e,i,a,u,s,0),t._fetchTokens(r).then((function(e){return t._handleTokens(e,r,o)})).catch((function(e){return a(e)}))}))}},{key:"clearApiTokens",value:function(){this.Tokens.deleteTokens()}},{key:"getApiPath",value:function(){if("string"==typeof this.cachedApiPath)return this.cachedApiPath;if((0,i.doesWindowExistWithProperty)("location")){var e=i.windowLocationProtocol.get(),t=i.windowLocationPort.get(),r=document.getElementById("api-uri"),n=r&&r.content&&t&&t.length?"".concat(e,"//").concat(r.content,":").concat(t):r&&r.content?"".concat(e,"//").concat(r.content):(0,o.default)("OAuthService getApiPath expects a meta tag with an id of api-uri");return"string"==typeof n&&(this.cachedApiPath=n),n}}},{key:"getApiToken",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.callbackQueueForNonPromises.push({callback:e,userOnly:r,attempts:n}),this._fetchTokens(r).then((function(e){return t._resolveCallbacksForGetApiToken(e)})).catch((function(e){return t._resolveCallbacksForGetApiToken({})}))}},{key:"processApiRequestError",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.getInObj)(["response","body","errors"],e)||e}}],r&&d(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());t.default=p},993:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.documentExists=u,t.documentHeight=function(){return document.documentElement.scrollHeight},t.doesBodyHaveUserId=l,t.doesWindowExistWithProperty=function(e){return!(!window||!window[e])},t.doesWindowLocationHaveParam=function(e){return!!c.hasValue()&&(0,n.mapifyStringQuery)(c.get().slice(1)).hasOwnProperty(e)},t.getDocumentFunction=function(e){if(u()&&"function"==typeof document[e])return document[e].bind(document)},t.getDocumentProperty=function(e){if(u()&&document[e])return document[e]},t.getNavigator=function(){return"undefined"==typeof navigator?null:navigator},t.getUserIdFromBody=function(){return l()?document.body.getAttribute("data-user-signed-in"):null},t.getWindow=function(){return o?window:{}},t.getWindowProperty=function(e){if(window&&window[e])return window[e]},t.isWindowDefined=t.isThemeDarkMode=void 0,t.reloadDocumentLocation=function(){document.location.reload()},t.setDocumentCookie=function(e){document.cookie=e,document.cookie="path=/"},t.windowDPR=function(){return window.devicePixelRatio||1},t.windowInnerHeight=function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},t.windowInnerWidth=function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},t.windowLocationProtocol=t.windowLocationPort=t.windowLocationPathname=t.windowLocationOrigin=t.windowLocationHref=t.windowLocationHostname=t.windowLocationHash=void 0,t.windowLocationRedirect=function(e){window.location=e},t.windowLocationReload=function(e){window.location.reload(e)},t.windowLocationSearch=void 0,t.windowPageXOffset=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft},t.windowPageYOffset=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop},t.windowScrollTo=function(e,t){window.scrollTo(e,t)},t.windowSetTimeout=function(e,t){return window.setTimeout(e,t)};var n=r(287),o=t.isWindowDefined="undefined"!=typeof window;function i(e){return window.location[e]}function a(e){return window.location.hasOwnProperty(e)&&window.location[e].length>0}function s(e){return{get:function(){return i(e)},hasValue:function(){return a(e)}}}function u(){return"undefined"!=typeof document}t.isThemeDarkMode=function(){return!document.querySelector("html[data-theme=light]")&&window.matchMedia("(prefers-color-scheme: dark)").matches};var c=t.windowLocationSearch=s("search");function l(){return!(!u()||!document.body)&&document.body.hasAttribute("data-user-signed-in")}t.windowLocationHash=s("hash"),t.windowLocationHref=Object.assign({},s("href"),{removeHash:function(){return a("hash")?i("href").split("#")[0]:i("href")}}),t.windowLocationHostname=s("hostname"),t.windowLocationOrigin=s("origin"),t.windowLocationPathname=s("pathname"),t.windowLocationPort=s("port"),t.windowLocationProtocol=s("protocol")},572:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=function(e,t){if(!Array.isArray(e)||"function"!=typeof t)return-1;for(var r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatten=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},t.flattenArrayOfObjectsToObject=function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e){return!(0,n.isBlank)(e)};return e.reduce((function(e,n){return n.hasOwnProperty(t)&&n.hasOwnProperty(r)?("function"==typeof o&&o(n)&&(e[n[t]]=n[r]),e):e}),{})},t.flattenObjToArray=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).reduce((function(r,o){return(0,n.isObject)(t[o])?r.concat(e(t[o])):r.concat(t[o])}),[])},t.listToBoolMap=function(e){return e&&e.length?e.reduce((function(e,t){return Object.assign({},e,i({},t,!0))}),{}):{}},t.listToMapByProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id";return e&&e.length?e.reduce((function(e,r){return Object.assign({},e,i({},r[t],r))}),{}):{}},t.mapToStringQuery=function(e){return Object.keys(e).reduce((function(t,r){return(0,n.isBlank)(e[r])?t:(0,n.isObject)(e[r])?t.concat("".concat(r,"=").concat(encodeURIComponent(JSON.stringify(e[r])))):t.concat("".concat(r,"=").concat(encodeURIComponent(e[r])))}),[]).join("&")},t.mapifyStringQuery=function(e){return e&&e.length?("?"===e.substring(0,1)&&(e=e.substring(1)),e.split("&").reduce((function(e,t){if(!t||!t.length)return e;var r=t.split("=");return e[r[0]]=decodeURIComponent(r[1]),e}),{})):{}},t.transformObjValues=function(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=t(e[n],n),r}),{})};var n=r(345);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t,r){var n;return n=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==o(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUMMON_GLOBAL_DIALOG=void 0,t.closeGlobalPopover=function(){window.dispatchEvent(new CustomEvent("close:GlobalPopover",{detail:{},bubbles:!0,cancelable:!0}))},t.dispatchEvent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.dispatchEvent(new CustomEvent(e,{detail:t}))},t.summonGlobalDialog=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.dispatchEvent(new CustomEvent(r,{detail:e,bubbles:!0,cancelable:!0}))},t.summonGlobalMessenger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.dispatchEvent(new CustomEvent("react:messenger",{detail:e,bubbles:!0,cancelable:!0}))},t.summonGlobalPopover=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.dispatchEvent(new CustomEvent("open:GlobalPopover",{detail:e,bubbles:!0,cancelable:!0}))},t.summonLoginPanel=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).detail,t=void 0===e?{}:e;window.dispatchEvent(new CustomEvent("open:SigninDialog",{detail:t,bubbles:!0,cancelable:!0}))};var r=t.SUMMON_GLOBAL_DIALOG="open:GlobalDialog"},994:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterObject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return!(0,n.isBlank)(e)},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return Object.keys(e).reduce((function(n,o){var i=e[o];return(r.includes(o)||"function"==typeof t&&t(i,o))&&(n[o]=i),n}),{})},t.pluckAndReduce=function(e,t){return e.reduce((function(e,r){return r&&r.hasOwnProperty(t)?e.concat(r[t]):e}),[])},t.removeFromObject=function(e,t){return Object.keys(e).reduce((function(r,n){return("string"==typeof t&&n!==t||Array.isArray(t)&&!t.includes(n))&&(r[n]=e[n]),r}),{})};var n=r(345)},632:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__resetFlag=function(){i=null},t.default=function(){if(null===i){var e=(0,n.getNavigator)();e&&e.userAgent?(t=e.userAgent,i=o.test(t)):i=!0}var t;return i};var n=r(993),o=/facebook|google|yandex|bing|ezooms|twikle|wotbox|fetch|wordpress|pingdom|slurp|sogou|crawl|bot|spider/i,i=null},476:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tryJSONParse=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{return JSON.parse(e)}catch(e){return t}},t.tryJSONStringify=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return JSON.stringify(e)}catch(e){return t}}},595:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cancelablePromise=function(e){var t=!1;return{promise:new Promise((function(r,n){return e.then((function(e){e=e||{},r(t?Object.assign({},e,{promiseCanceled:!0}):e)})).catch((function(e){e=e||{},n(t?Object.assign({},e,{promiseCanceled:!0}):e)}))})),cancel:function(){t=!0}}},t.reflectPromise=function(e){return e.then((function(e){return{data:e,status:"resolved"}})).catch((function(e){return{err:e,status:"rejected"}}))},t.setTimeoutPromise=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new Promise((function(o,i){return setTimeout((function(){if(!t)return o(n);"function"==typeof t&&t()?o(n):i(r)}),e)}))}},345:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectWithLength=t.isObject=t.isNumber=t.isBlank=t.isAString=t.isAFunction=t.isADate=void 0,t.isADate=function(e){return e instanceof Date&&!isNaN(e.valueOf())},t.isAFunction=function(e){return"function"==typeof e},t.isAString=function(e){return"string"==typeof e};var n=t.isBlank=function(e){return null==e||"string"==typeof e&&""===e.trim()||Array.isArray(e)&&0===e.length||"object"===r(e)&&0===Object.keys(e).length},o=(t.isNumber=function(e){return!n(e)&&"number"==typeof e},t.isObject=function(e){return null!==e&&!Array.isArray(e)&&"object"===r(e)});t.isObjectWithLength=function(e){return!!o(e)&&Object.keys(e).length>0}},435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return s(e,(0,i.v4)())};var n,o=(n=r(242))&&n.__esModule?n:{default:n},i=r(611),a=3;function s(e,t){var r,n,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e===t?(r=e,n=u,(0,o.default)(new Error("duplicate uuid: ".concat(r,", attempt #").concat(n))),u{function t(e){if(e)return function(e){for(var r in t.prototype)e[r]=t.prototype[r];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o{var n=r(868),o=r(160);void 0===o.HAnalytics&&(o.HAnalytics=n),e.exports=n},160:(e,t,r)=>{"use strict";e.exports=function(){if("object"==typeof globalThis)return globalThis;var e;try{e=this||new Function("return this")()}catch(e){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==r.g)return r.g}return e}()},943:e=>{function t(e){this.message=e}t.prototype=new Error,t.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var r=String(e).replace(/=+$/,"");if(r.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,i=0,a=0,s="";o=r.charAt(a++);~o&&(n=i%4?64*n+o:o,i++%4)?s+=String.fromCharCode(255&n>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s}},863:(e,t,r)=>{var n=r(943);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(n(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return n(t)}}},127:(e,t,r)=>{"use strict";var n=r(863);function o(e){this.message=e}o.prototype=new Error,o.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new o("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(n(e.split(".")[r]))}catch(e){throw new o("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=o},380:e=>{function t(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach((function(e){t.prototype[e]=function(){return this._defaults.push({fn:e,arguments}),this}})),t.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,t.arguments)}))},e.exports=t},734:function(e,t,r){var n;"undefined"!=typeof window?n=window:"undefined"!=typeof self?n=self:(console.warn("Using browser-only version of superagent in non-browser environment"),n=this);var o=r(971),i=r(948),a=r(125),s=r(450),u=r(380);function c(){}var l=t=e.exports=function(e,r){return"function"==typeof r?new t.Request("GET",e).end(r):1==arguments.length?new t.Request("GET",e):new t.Request(e,r)};t.Request=b,l.getXHR=function(){if(!(!n.XMLHttpRequest||n.location&&"file:"==n.location.protocol&&n.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("Browser-only version of superagent could not find XHR")};var d="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function f(e){if(!a(e))return e;var t=[];for(var r in e)p(t,r,e[r]);return t.join("&")}function p(e,t,r){if(null!=r)if(Array.isArray(r))r.forEach((function(r){p(e,t,r)}));else if(a(r))for(var n in r)p(e,t+"["+n+"]",r[n]);else e.push(encodeURIComponent(t)+"="+encodeURIComponent(r));else null===r&&e.push(encodeURIComponent(t))}function h(e){for(var t,r,n={},o=e.split("&"),i=0,a=o.length;i=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4==r){var n;try{n=t.status}catch(e){n=0}if(!n){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var n=function(t,r){r.total>0&&(r.percent=r.loaded/r.total*100),r.direction=t,e.emit("progress",r)};if(this.hasListeners("progress"))try{t.onprogress=n.bind(null,"download"),t.upload&&(t.upload.onprogress=n.bind(null,"upload"))}catch(e){}try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof r&&!this._isHost(r)){var o=this._header["content-type"],i=this._serializer||l.serialize[o?o.split(";")[0]:""];!i&&y(o)&&(i=l.serialize["application/json"]),i&&(r=i(r))}for(var a in this.header)null!=this.header[a]&&this.header.hasOwnProperty(a)&&t.setRequestHeader(a,this.header[a]);return this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0!==r?r:null),this},l.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){u.prototype[e.toLowerCase()]=function(t,r){var n=new l.Request(e,t);return this._setDefaults(n),r&&n.end(r),n}})),u.prototype.del=u.prototype.delete,l.get=function(e,t,r){var n=l("GET",e);return"function"==typeof t&&(r=t,t=null),t&&n.query(t),r&&n.end(r),n},l.head=function(e,t,r){var n=l("HEAD",e);return"function"==typeof t&&(r=t,t=null),t&&n.query(t),r&&n.end(r),n},l.options=function(e,t,r){var n=l("OPTIONS",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},l.del=v,l.delete=v,l.patch=function(e,t,r){var n=l("PATCH",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},l.post=function(e,t,r){var n=l("POST",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},l.put=function(e,t,r){var n=l("PUT",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n}},125:e=>{"use strict";e.exports=function(e){return null!==e&&"object"==typeof e}},948:(e,t,r)=>{"use strict";var n=r(125);function o(e){if(e)return function(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}(e)}e.exports=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,this},o.prototype.parse=function(e){return this._parser=e,this},o.prototype.responseType=function(e){return this._responseType=e,this},o.prototype.serialize=function(e){return this._serializer=e,this},o.prototype.timeout=function(e){if(!e||"object"!=typeof e)return this._timeout=e,this._responseTimeout=0,this;for(var t in e)switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;default:console.warn("Unknown timeout option",t)}return this},o.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var i=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];o.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(e,t);if(!0===r)return!0;if(!1===r)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!=t.status)return!0;if(e){if(e.code&&~i.indexOf(e.code))return!0;if(e.timeout&&"ECONNABORTED"==e.code)return!0;if(e.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},o.prototype.then=function(e,t){if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.end((function(r,n){r?t(r):e(n)}))}))}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(n(e)){for(var r in e)this.set(r,e[r]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),n(e)){for(var r in e)this.field(r,e[r]);return this}if(Array.isArray(t)){for(var o in t)this.field(e,t[o]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=""+t),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},o.prototype._auth=function(e,t,r,n){switch(r.type){case"basic":this.set("Authorization","Basic "+n(e+":"+t));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer "+e)}return this},o.prototype.withCredentials=function(e){return null==e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=n(e),r=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&n(this._data))for(var o in e)this._data[o]=e[o];else"string"==typeof e?(r||this.type("form"),r=this._header["content-type"],this._data="application/x-www-form-urlencoded"==r?this._data?this._data+"&"+e:e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||r||this.type("json"),this},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var r=this.url.substring(t+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.substring(0,t)+"?"+r.join("&")}}},o.prototype._appendQueryString=function(){console.trace("Unsupported")},o.prototype._timeoutError=function(e,t,r){if(!this._aborted){var n=new Error(e+t+"ms exceeded");n.timeout=t,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.abort(),this.callback(n)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},450:(e,t,r)=>{"use strict";var n=r(48);function o(e){if(e)return function(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=n.type(t);var r=n.params(t);for(var o in r)this[o]=r[o];this.links={};try{e.link&&(this.links=n.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.redirect=3==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.created=201==e,this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.forbidden=403==e,this.notFound=404==e,this.unprocessableEntity=422==e}},48:(e,t)=>{"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce((function(e,t){var r=t.split(/ *= */),n=r.shift(),o=r.shift();return n&&o&&(e[n]=o),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var r=t.split(/ *; */),n=r[0].slice(1,-1);return e[r[1].split(/ *= */)[1].slice(1,-1)]=n,e}),{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},232:function(e,t,r){var n;!function(o,i){"use strict";var a="function",s="undefined",u="object",c="string",l="major",d="model",f="name",p="type",h="vendor",y="version",m="architecture",b="console",v="mobile",w="tablet",g="smarttv",_="wearable",k="embedded",T="Amazon",O="Apple",P="ASUS",S="BlackBerry",j="Browser",E="Chrome",x="Firefox",I="Google",A="Huawei",C="LG",R="Microsoft",D="Motorola",N="Opera",q="Samsung",M="Sharp",L="Sony",U="Xiaomi",H="Zebra",F="Facebook",z="Chromium OS",B="Mac OS",W=function(e){for(var t={},r=0;r0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):i:this[s[0]]=l?s[1].call(this,l,s[2]):i:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):i):this[s]=l||i;d+=2}},Q=function(e,t){for(var r in t)if(typeof t[r]===u&&t[r].length>0){for(var n=0;n2&&(e[d]="iPad",e[p]=w),e},this.getEngine=function(){var e={};return e[f]=i,e[y]=i,J.call(e,n,g.engine),e},this.getOS=function(){var e={};return e[f]=i,e[y]=i,J.call(e,n,g.os),_&&!e[f]&&b&&"Unknown"!=b.platform&&(e[f]=b.platform.replace(/chrome os/i,z).replace(/macos/i,B)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===c&&e.length>500?K(e,500):e,this},this.setUA(n),this};Y.VERSION="0.7.37",Y.BROWSER=W([f,y,l]),Y.CPU=W([m]),Y.DEVICE=W([d,h,p,b,v,g,w,_,k]),Y.ENGINE=Y.OS=W([f,y]),typeof t!==s?(e.exports&&(t=e.exports=Y),t.UAParser=Y):r.amdO?(n=function(){return Y}.call(t,r,t,e))===i||(e.exports=n):typeof o!==s&&(o.UAParser=Y);var Z=typeof o!==s&&(o.jQuery||o.Zepto);if(Z&&!Z.ua){var ee=new Y;Z.ua=ee.getResult(),Z.ua.get=function(){return ee.getUA()},Z.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var r in t)Z.ua[r]=t[r]}}}("object"==typeof window?window:this)},611:(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{NIL:()=>I,parse:()=>m,stringify:()=>l,v1:()=>y,v3:()=>P,v4:()=>S,v5:()=>x,validate:()=>s,version:()=>A});var o=new Uint8Array(16);function i(){if(!n&&!(n="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 n(o)}const a=/^(?:[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,s=function(e){return"string"==typeof e&&a.test(e)};for(var u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(r))throw TypeError("Stringified UUID is invalid");return r};var d,f,p=0,h=0;const y=function(e,t,r){var n=t&&r||0,o=t||new Array(16),a=(e=e||{}).node||d,s=void 0!==e.clockseq?e.clockseq:f;if(null==a||null==s){var u=e.random||(e.rng||i)();null==a&&(a=d=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=f=16383&(u[6]<<8|u[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),y=void 0!==e.nsecs?e.nsecs:h+1,m=c-p+(y-h)/1e4;if(m<0&&void 0===e.clockseq&&(s=s+1&16383),(m<0||c>p)&&void 0===e.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=c,h=y,f=s;var b=(1e4*(268435455&(c+=122192928e5))+y)%4294967296;o[n++]=b>>>24&255,o[n++]=b>>>16&255,o[n++]=b>>>8&255,o[n++]=255&b;var v=c/4294967296*1e4&268435455;o[n++]=v>>>8&255,o[n++]=255&v,o[n++]=v>>>24&15|16,o[n++]=v>>>16&255,o[n++]=s>>>8|128,o[n++]=255&s;for(var w=0;w<6;++w)o[n+w]=a[w];return t||l(o)},m=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function b(e,t,r){function n(e,n,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r>>9<<4)+1}function w(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function g(e,t,r,n,o,i){return w((a=w(w(t,e),w(n,i)))<<(s=o)|a>>>32-s,r);var a,s}function _(e,t,r,n,o,i,a){return g(t&r|~t&n,e,t,o,i,a)}function k(e,t,r,n,o,i,a){return g(t&n|r&~n,e,t,o,i,a)}function T(e,t,r,n,o,i,a){return g(t^r^n,e,t,o,i,a)}function O(e,t,r,n,o,i,a){return g(r^(t|~n),e,t,o,i,a)}const P=b("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<>>32-t}const x=b("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o>>0;w=v,v=b,b=E(m,30)>>>0,m=y,y=k}r[0]=r[0]+y>>>0,r[1]=r[1]+m>>>0,r[2]=r[2]+b>>>0,r[3]=r[3]+v>>>0,r[4]=r[4]+w>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),I="00000000-0000-0000-0000-000000000000",A=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.amdO={},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(95)})();