cdn.opecloud.com Open in urlscan Pro
13.35.49.92  Public Scan

Submitted URL: http://cdn.opecloud.com/
Effective URL: https://cdn.opecloud.com/
Submission: On February 29 via api from JP — Scanned from JP

Form analysis 0 forms found in the DOM

Text Content

!function(){"use strict";var t=["tcf2","implied","usp","noConsent","auto","gpp"],n=function(){function n(){}return n.parseStringOrNull=function(t){return null==t?null:t.toString()},n.parseString=function(t){return t.toString()},n.parseStringArray=function(t){if(Array.isArray(t)){for(var n=!0,e=0;e<t.length&&n;e++)"string"!=typeof t[0]&&(n=!1);if(n)return t;throw new Error("There are non strings in the array")}throw new Error("Expected array but got ".concat(t))},n.parseBoolean=function(t){if("boolean"==typeof t)return t;throw new Error("Expected boolean, but got ".concat(t))},n.parseObject=function(t){if("object"==typeof t)return t;throw new Error("Expected object, got ".concat(t))},n.parseOptions=function(t){return t?n.parseObject(t):{}},n.validateOptCallback=function(t){return t?n.validateCallback(t):void 0},n.validateCallback=function(t){if("function"==typeof t)return t;throw new Error("Expected callback function, but got ".concat(t))},n.parseCmpName=function(e){var r=t.find((function(t){return t===n.parseString(e)}));if(r)return r;throw new Error("Invalid cmp name: ".concat(e))},n.parseSeatId=function(t){if(/^[a-zA-Z0-9\.-]+$/.test(t))return t;throw new Error('Invalid seat id "'.concat(t,'"'))},n}(),e=function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},r=function(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},o=function(){function t(t,n,e){void 0===e&&(e=!0),this.seat=t,this.cb=n,this.include3rdParty=e,this.fpidPrefix="fpid",this.cpidPrefix="cpid",this.opePrefix="ope"}return t.prototype.run=function(t){var n=this;return Promise.all([t.trackingStrategy.onSetCookieCompleted$,t.trackingStrategy.onInit$,t.privacyFramework.consent]).then((function(e){var r=e[2];return n.retrieveId(t,r)}),(function(t){return n.cb(t,null)})).then((function(t){return n.cb(null,t)}),(function(t){return n.cb(t,null)})),t},t.prototype.retrieveId=function(t,n){var o=this;return new Promise((function(i,a){return e(o,void 0,void 0,(function(){var e,o,c,u,s,l;return r(this,(function(r){switch(r.label){case 0:return(e=t.trackingStrategy.getOrCreateIds(n))[this.cpidPrefix]?(s=e[this.cpidPrefix],i(s),[3,6]):[3,1];case 1:return r.trys.push([1,5,,6]),this.include3rdParty?[4,this.get3PID(t)]:[3,3];case 2:return c=r.sent(),[3,4];case 3:c=null,r.label=4;case 4:return o=c,u=e[this.fpidPrefix],o?(s=this.opePrefix+":"+o,i(s)):u?(s=this.fpidPrefix+":"+u,i(s)):a("Could not find any ids."),[3,6];case 5:return l=r.sent(),a(l),[3,6];case 6:return[2]}}))}))}))},t.prototype.get3PID=function(t){return e(this,void 0,void 0,(function(){var n=this;return r(this,(function(e){return[2,this.fetch3PID(t).then((function(t){return t?n.assemble3PID(t):null}),(function(t){}))]}))}))},t.prototype.fetch3PID=function(t){return e(this,void 0,void 0,(function(){var n,e;return r(this,(function(r){switch(r.label){case 0:return n=new URL("".concat(this.seat,"/v2/uid"),"".concat(t.taggerUrl)),e={mode:"cors",credentials:"include",referrerPolicy:"no-referrer-when-downgrade"},[4,fetch(n.toString(),e).then((function(t){if(200==t.status)return t.json();if(204==t.status)return null;throw"CurrentTrackingId: Unexpected error while fetching 3PID: ".concat(t)}))];case 1:return[2,r.sent()]}}))}))},t.prototype.assemble3PID=function(t){for(var n=new Array,e=0,r=Object.entries(t);e<r.length;e++){var o=r[e],i=o[0],a=o[1];i.startsWith("part-")&&n.push([i,a])}return n.length>0?(n.sort((function(t){return parseInt(t[0].slice(5))})),i=n.map((function(t){return t[1]})).reduce((function(t,n){return t+n}),"")):null},t}(),i=/^(?:[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;var a,c=function(t){return"string"==typeof t&&i.test(t)},u=new Uint8Array(16);function s(){if(!a&&!(a="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 a(u)}for(var l=[],p=0;p<256;++p)l.push((p+256).toString(16).substr(1));var f=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(l[t[n+0]]+l[t[n+1]]+l[t[n+2]]+l[t[n+3]]+"-"+l[t[n+4]]+l[t[n+5]]+"-"+l[t[n+6]]+l[t[n+7]]+"-"+l[t[n+8]]+l[t[n+9]]+"-"+l[t[n+10]]+l[t[n+11]]+l[t[n+12]]+l[t[n+13]]+l[t[n+14]]+l[t[n+15]]).toLowerCase();if(!c(e))throw TypeError("Stringified UUID is invalid");return e};var d,h=function(t,n,e){var r=(t=t||{}).random||(t.rng||s)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){e=e||0;for(var o=0;o<16;++o)n[e+o]=r[o];return n}return f(r)},v=function(){function t(t){this.storage=t}return t.instance=function(){return new t(localStorage)},t.prototype.getOrCreateFpid=function(n){if(this.isOptedOut()||!(null==n?void 0:n.trackingEnabled()))return{};var e=this.getFpid();return c(e)||(e=this.save(t.key,h())),e?{fpid:e}:{}},t.prototype.getIds=function(){var t=this.getFpid();return this.isOptedOut()||!c(t)?{}:{fpid:t}},t.prototype.getPapiParameters=function(t){return this.getOrCreateFpid(t)},t.prototype.getFpid=function(){return this.load(t.key)},t.prototype.removeFpid=function(){this.storage.removeItem(t.key)},t.prototype.isOptedOut=function(){return this.load(t.trackingStatusKey)===t.optedOut},t.prototype.optin=function(){var n;try{this.storage.removeItem(t.trackingStatusKey)}catch(t){var e=new Error("First party id optin failed with: ".concat(null!==(n=null==t?void 0:t.message)&&void 0!==n?n:t.toString));throw e.name="FpidOptinError",e}},t.prototype.optout=function(){var n;try{this.storage.setItem(t.trackingStatusKey,t.optedOut)}catch(t){var e=new Error("First party id optout failed with: ".concat(null!==(n=null==t?void 0:t.message)&&void 0!==n?n:t.toString));throw e.name="FpidOptoutError",e}},t.prototype.load=function(t){try{return this.storage.getItem(t)}catch(t){return null}},t.prototype.save=function(t,n){try{return this.storage.setItem(t,n),n}catch(t){return null}},t.key="ope_fpid",t.trackingStatusKey="ope_fpid_tracking_status",t.optedOut="opted_out",t}(),y=function(){function t(t,n){this.seat=t,this.cb=n}return t.prototype.run=function(t){var n,e=this;try{return this.action(t).then((function(){var t;return null===(t=e.cb)||void 0===t?void 0:t.call(e,null,!0)}),(function(t){var n;return null===(n=e.cb)||void 0===n?void 0:n.call(e,t,!1)})),t}catch(e){return null===(n=this.cb)||void 0===n||n.call(this,e,!1),t}},t}(),g=(d=function(t,n){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},d(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}d(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),w=function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},m=function(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},b=function(t){function n(n,e,r,o){var i=t.call(this,n,o)||this;return i.email=e,i.language=r,i}return g(n,t),n.prototype.action=function(t){return w(this,void 0,void 0,(function(){var n;return m(this,(function(e){switch(e.label){case 0:return n=v.instance().getFpid(),[4,t.taggerGdprClient.dataAccess(this.seat,null,this.email,this.language,n)];case 1:return e.sent(),t.programmaticTenantId?[4,t.taggerGdprClient.dataAccess("pdmp",t.programmaticTenantId,this.email,this.language,n)]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},n}(y),O=function(){var t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},t(n,e)};return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),k=function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},S=function(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},P=function(t){function n(n,e){return t.call(this,n,e)||this}return O(n,t),n.prototype.action=function(t){return k(this,void 0,void 0,(function(){var n,e,r;return S(this,(function(o){switch(o.label){case 0:return n=v.instance(),e=n.getFpid(),n.optout(),r=t.taggerGdprClient.optOut(this.seat,null,e),t.programmaticTenantId?[4,t.taggerGdprClient.optOut("pdmp",t.programmaticTenantId,e)]:[3,2];case 1:o.sent(),o.label=2;case 2:return[4,r];case 3:return o.sent(),[2]}}))}))},n}(y),C=function(){var t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},t(n,e)};return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),I=function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},_=function(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},x=function(t){function n(n,e){return t.call(this,n,e)||this}return C(n,t),n.prototype.action=function(t){return I(this,void 0,void 0,(function(){var n,e=this;return _(this,(function(r){switch(r.label){case 0:return n=v.instance().getFpid(),[4,t.taggerGdprClient.dataDeletion(this.seat,null,n)];case 1:return r.sent(),t.programmaticTenantId?[4,t.taggerGdprClient.dataDeletion("pdmp",t.programmaticTenantId,n)]:[3,3];case 2:r.sent(),r.label=3;case 3:return[4,new Promise((function(n,r){new P(e.seat,(function(t,e){t?r(t):e?n():r("failed optout")})).run(t)}))];case 4:return r.sent(),[2]}}))}))},n}(y),E=function(){function t(t){this.seat=t}return t.prototype.run=function(t){var n;return null===(n=t.privacyPolicy)||void 0===n||n.removeModalWindow(),t},t}(),T=function(){function t(t,n){if(this.idSpace=t,this.cpid=n,!t||!/^[^\s\:]+$/.test(t))throw Error("Invalid idSpace '".concat(t,"' for cpid"));if(!n||!/^[^\s\:]+$/.test(n))throw Error("Invalid value '".concat(n,"' for cpid"))}return t.prototype.toString=function(){return"".concat(this.idSpace,":").concat(this.cpid)},t}(),U=function(){function t(){this.cpid=null,this.optedOut=!1}return t.prototype.getIds=function(){var t=this.cpid;return!this.isOptedOut()&&this.cpid?{cpid:t.toString()}:{}},t.prototype.getPapiParameters=function(t){return this.isOptedOut()?{}:this.getCpid()},t.prototype.getCpid=function(){return null!==this.cpid&&null!==this.cpid.cpid&&null!==this.cpid.idSpace?{cpid:this.cpid.cpid,idSpace:this.cpid.idSpace}:{}},t.prototype.optin=function(){throw new Error("Optout state for custom provided identifiers cannot be modified through the SDK")},t.prototype.optout=function(){throw new Error("Optout state for custom provided identifiers cannot be modified through the SDK")},t.prototype.isOptedOut=function(){return this.optedOut},t.prototype.set=function(t,n){this.cpid=t,this.optedOut=n},t.prototype.clear=function(){this.cpid=null,this.optedOut=!1},t}(),A=function(){function t(t,n,e,r){this.seat=t,this.idSpace=n,this.cpid=e,this.options=r}return t.prototype.run=function(t){var n,e;if(this.idSpace||this.cpid){var r=new T(this.idSpace,this.cpid);t.trackingStrategy.identifyUser(r,null!==(e=null===(n=this.options)||void 0===n?void 0:n.optedOut)&&void 0!==e&&e)}else t.trackingStrategy.logoutUser();return t},t}(),j=function(t){this.args=t,this.metric="sdk-consent-delayed"},F=function(t){this.args=t,this.metric="sdk-consent-rejected"},R=function(t){this.args=t,this.metric="sdk-consent-error"};function D(t,n){return function(e){var r=function(t,n){var e=new URL("".concat(n.metric),t);return Object.entries(n.args).forEach((function(t){var n=t[0],r=t[1];e.searchParams.set(n,r)})),e}(new URL("".concat(n,"/v2/metrics/"),t),e),o=new XMLHttpRequest;o.open("GET",r.toString()),o.send()}}D(new URL("https://tagger.opecloud.com"),"undefined");var L=function(){var t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},t(n,e)};return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),N=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return L(n,t),n}(Error);var B=function(){return B=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},B.apply(this,arguments)},M=function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},V=function(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},K=function(){function t(t){this.url=null,this.url=t}return t.prototype.sendRequest=function(t,n,e,r,o,i){return void 0===e&&(e={}),void 0===r&&(r={}),M(this,void 0,void 0,(function(){var a,c,u,s,l,p,f,d;return V(this,(function(h){switch(h.label){case 0:for(a=new URL(n,this.url),c=0,u=Object.entries(e);c<u.length;c++)s=u[c],l=s[0],p=s[1],a.searchParams.set(l,p);f=B(B({},i),{referrerPolicy:"no-referrer-when-downgrade",mode:"cors",method:t,credentials:"include",headers:r}),(null==o?void 0:o.contentType)&&(f.headers=B(B({},f.headers),{"Content-Type":o.contentType})),(null==o?void 0:o.content)&&(f.body=o.content),h.label=1;case 1:return h.trys.push([1,3,,4]),[4,fetch(a.toString(),f)];case 2:if((d=h.sent()).ok)return[2,d.text()];throw{status:d.status,statusText:d.statusText};case 3:throw h.sent();case 4:return[2]}}))}))},t}(),G=function(){function t(t){this.taggerUrl=t,this.httpClient=new K(t)}return t.prototype.optOut=function(t,n,e){var r={contentType:"application/x-www-form-urlencoded",content:this.encodeAsFormUrlString({fpid:null!=e?e:""})},o=n?"/".concat(t,"/").concat(n,"/v2/tagger/optout"):"/".concat(t,"/v2/tagger/optout");return this.httpClient.sendRequest("POST",o,{},{},r)},t.prototype.optIn=function(t,n,e){var r=e?{fpid:e}:{},o=n?"/".concat(t,"/").concat(n,"/v2/tagger/optout"):"/".concat(t,"/v2/tagger/optout");return this.httpClient.sendRequest("DELETE",o,r)},t.prototype.dataDeletion=function(t,n,e){var r={contentType:"application/x-www-form-urlencoded",content:this.encodeAsFormUrlString({fpid:null!=e?e:""})},o=n?"/".concat(t,"/").concat(n,"/v2/tagger/delete"):"/".concat(t,"/v2/tagger/delete");return this.httpClient.sendRequest("POST",o,{},{},r)},t.prototype.dataAccess=function(t,n,e,r,o){var i={contentType:"application/x-www-form-urlencoded",content:this.encodeAsFormUrlString({email:e,languageCode:r,fpid:null!=o?o:""})},a=n?"/".concat(t,"/").concat(n,"/v2/tagger/access"):"/".concat(t,"/v2/tagger/access");return this.httpClient.sendRequest("POST",a,{},{},i)},t.prototype.encodeAsFormUrlString=function(t){return Object.entries(t).map((function(t,n){var e=t[0],r=t[1];return"".concat(e,"=").concat(encodeURIComponent(r))})).join("&")},t}(),$=function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},z=function(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Q=function(){function t(t){this.storage=t}return t.prototype.withConsent=function(t){return $(this,void 0,void 0,(function(){return z(this,(function(n){switch(n.label){case 0:return[4,t.deviceAccessOk()];case 1:if(n.sent())return[2,this.storage];throw Error("Missing consent for accessing device storage.")}}))}))},t.prototype.removeItem=function(t){this.storage.removeItem(t)},t}(),q=function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},W=function(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};var J=function(){function t(n,e,r){this.privacyAwareStorage=n,this.ttl=e,this.type=r,this.storageKey=t.localStorageKey(r)}return t.localStorageKey=function(n){switch(n){case"contextual":return t.contextualKey;case"fullProfile":return t.profileKey;default:throw Error("Unknown papi CacheInstanceType: '".concat(n,"'"))}},t.instance=function(n){return new t(new Q(localStorage),t.defaultTtl,n)},t.prototype.get=function(t,n){return q(this,void 0,void 0,(function(){var e,r,o;return W(this,(function(i){switch(i.label){case 0:return[4,this.privacyAwareStorage.withConsent(t)];case 1:return e=i.sent(),r=this.hashCode(n),o=this.load(e),r in o&&o[r].exp>Date.now()?[2,o[r].v]:[2,null]}}))}))},t.prototype.put=function(t,n,e){return q(this,void 0,void 0,(function(){var r,o;return W(this,(function(i){switch(i.label){case 0:return[4,this.privacyAwareStorage.withConsent(t)];case 1:return r=i.sent(),(o=this.load(r))[this.hashCode(n)]={exp:Date.now()+this.ttl,v:e},this.save(r,this.removeExpiredEntries(o)),[2]}}))}))},t.prototype.hashCode=function(t){if(0===t.length)return 0;for(var n=0,e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n},t.prototype.removeExpiredEntries=function(t){var n=Date.now();return Object.fromEntries(Object.entries(t).filter((function(t){t[0];return t[1].exp>n})))},t.prototype.save=function(t,n){t.setItem(this.storageKey,JSON.stringify(n))},t.prototype.load=function(t){var n=t.getItem(this.storageKey);return n?JSON.parse(n):{}},t.contextualKey="opecloud_papi_c",t.profileKey="opecloud_papi_p",t.cacheInstances=new Map,t.defaultTtl=864e5,t}(),X=function(){var t=this;this.promise=new Promise((function(n,e){t.reject=e,t.resolve=n}))},Y=function(){return Y=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Y.apply(this,arguments)};var H=function(){function t(n,e,r){void 0===r&&(r=!0),this.isInitialized=!1,this.resolvableOnInit=new X,this.resolvableOnSetCookieCompleted=new X,this.resolvableOnThirdPartyTrackability=new X,this.onInit$=this.resolvableOnInit.promise,this.onSetCookieCompleted$=this.resolvableOnSetCookieCompleted.promise,this.name=t.strategyName,this.isThirdPartyTrackable$=this.resolvableOnThirdPartyTrackability.promise,this.cpidProvider=new U,this.fpidProvider=e?v.instance():null,n||this.initialize(),r||this.resolvableOnSetCookieCompleted.resolve()}return t.progInstance=function(){return new t(!1,!0)},t.prototype.initialize=function(){this.isInitialized||(this.isInitialized=!0,this.resolvableOnInit.resolve())},t.prototype.firstVisitEventSent=function(){this.resolvableOnSetCookieCompleted.resolve()},t.prototype.setThirdPartyTrackability=function(t){this.resolvableOnThirdPartyTrackability.resolve(t)},t.prototype.identifyUser=function(t,n){this.cpidProvider.set(t,n),this.initialize(),this.resolvableOnSetCookieCompleted.resolve()},t.prototype.logoutUser=function(){this.initialize(),this.cpidProvider.clear()},t.prototype.getIds=function(){var t,n,e=null===(t=this.fpidProvider)||void 0===t?void 0:t.getIds(),r=null!==(n=this.cpidProvider.getIds())&&void 0!==n?n:{};return Y(Y({},e),r)},t.prototype.getOrCreateIds=function(t){var n,e,r=null===(n=this.fpidProvider)||void 0===n?void 0:n.getOrCreateFpid(t),o=null!==(e=this.cpidProvider.getIds())&&void 0!==e?e:{};return Y(Y({},r),o)},t.prototype.discardTrackingEvents=function(){return this.cpidProvider.isOptedOut()},t.prototype.getPapiParameters=function(t){var n,e;return Y(Y({},null!==(e=null===(n=this.fpidProvider)||void 0===n?void 0:n.getPapiParameters(t))&&void 0!==e?e:{}),this.cpidProvider.getPapiParameters(t))},t.strategyName="adaptive",t}(),Z=function(){return Z=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Z.apply(this,arguments)},tt=function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},nt=function(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},et=function(){function t(t,n,e,r){this.seat=t,this.tenant=n,this.papiUrl=e,this.trackingStrategy=r}return t.progInstance=function(n){var e,r,o=null!==(e=n.seat)&&void 0!==e?e:"pdmp",i=null!==(r=n.profileApiUrl)&&void 0!==r?r:"https://".concat(o,".profiles.tagger.opecloud.com/v1/targeting");return new t(o,n.tenantId,new URL(i),H.progInstance())},t.prototype.determineProfileCacheKey=function(){return this.trackingStrategy.getIds().cpid||"adaptive_tracking"},t.prototype.getContextual=function(t){return tt(this,void 0,void 0,(function(){return nt(this,(function(n){switch(n.label){case 0:return[4,this.fetchPapi(this.contextualTargetingUrl(t))];case 1:return[2,n.sent()]}}))}))},t.prototype.getCacheBackedContextual=function(t){var n=this;return new Promise((function(e,r){n.getContextual().then((function(r){n.updateCache(t,r),e(r)})),n.loadContextualFromCache(t).then((function(t){e(t)}))}))},t.prototype.loadContextualFromCache=function(t){var n=this.pageUrl();return new Promise((function(e,r){J.instance("contextual").get(t,n).then((function(t){if(null!=t){var n={t:t.content,s:t.kid?"":[],kid:null==t?void 0:t.kid};e(n)}}))}))},t.prototype.getProfile=function(t,n){return tt(this,void 0,void 0,(function(){var e;return nt(this,(function(r){switch(r.label){case 0:return[4,t.consent];case 1:return(e=r.sent()).trackingEnabled()?[2,this.fetchPapi(this.profileTargetingUrl(e,n))]:[2,this.getContextual(n)]}}))}))},t.prototype.getCacheBackedProfile=function(t){var n=this;return new Promise((function(e,r){n.getProfile(t).then((function(r){n.updateCache(t,r),e(r)})),n.loadProfileFromCache(t).then((function(t){e(t)}))}))},t.prototype.loadProfileFromCache=function(t){var n=this,e=this.determineProfileCacheKey();return new Promise((function(r,o){J.instance("fullProfile").get(t,e).then((function(e){null!=e&&n.loadContextualFromCache(t).then((function(t){var n=Z({t:t.t,s:e.content},(t.kid||e.kid)&&{kid:t.kid||e.kid});r(n)}))}))}))},t.prototype.updateCache=function(t,n){return tt(this,void 0,void 0,(function(){return nt(this,(function(e){return(null==n?void 0:n.t)&&J.instance("contextual").put(t,this.pageUrl(),Z({content:n.t},n.kid&&{kid:n.kid})),(null==n?void 0:n.s)&&J.instance("fullProfile").put(t,this.determineProfileCacheKey(),Z({content:n.s},n.kid&&{kid:n.kid})),!n.t&&n.s,[2]}))}))},t.prototype.fetchPapi=function(t){return tt(this,void 0,void 0,(function(){var n,e,r;return nt(this,(function(o){switch(o.label){case 0:return[4,this.fetchFromUrl(t)];case 1:return(n=o.sent()).status>=400?(e=Error,r="Fetch failed: ",[4,n.text()]):[3,3];case 2:throw e.apply(void 0,[r+o.sent()]);case 3:return[2,n]}}))}))},t.prototype.fetchFromUrl=function(t){return fetch(t.toString(),{referrerPolicy:"no-referrer-when-downgrade",mode:"cors",credentials:"include"}).then((function(t){return t.json()}),(function(t){}))},t.prototype.papiRequestUrl=function(t){for(var n=new URL("",this.papiUrl),e=0,r=Object.entries(t);e<r.length;e++){var o=r[e],i=o[0],a=o[1];n.searchParams.set(i,a)}return n},t.prototype.getTenantQueryParams=function(){return this.tenant?{tenant:this.tenant}:{}},t.prototype.profileTargetingUrl=function(t,n){var e=null!=n?n:this.pageUrl();return this.papiRequestUrl(Z(Z(Z({url:e},this.trackingStrategy.getPapiParameters(t)),t.papiParameters()),this.getTenantQueryParams()))},t.prototype.contextualTargetingUrl=function(t){null!=t||this.pageUrl();return this.papiRequestUrl(Z({url:this.pageUrl(),gdpr_applies:"1",consent_string:""},this.getTenantQueryParams()))},t.prototype.pageUrl=function(){return window.location.href},t}(),rt=function(){return rt=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},rt.apply(this,arguments)},ot=function(){function t(t,n,e,r,o,i){this.seat=t,this.tenant=n,this.taggerUrl=e,this.consent=r,this.taggerClient=o,this.trackingStrategy=i,this.visitEventQueue=[],this.customEventQueue=[]}return t.progInstance=function(n){var e,r,o=null!==(e=n.seat)&&void 0!==e?e:"pdmp",i=new URL(null!==(r=null==n?void 0:n.taggerUrl)&&void 0!==r?r:"https://pdmp.tagger.opecloud.com");return new t(o,n.tenant,i,n.consent,n.taggerClient,H.progInstance())},t.prototype.customEventsToVisitProps=function(t){return{e:JSON.stringify(t.map((function(t){return rt(rt({},t.content),{type:t.type})})))}},t.customEventToCustomNoTaggerProps=function(t){var n={type:t.type,url:t.url,ref:t.ref,tref:t.tref};return Object.entries(t.content).forEach((function(t){var e=t[0],r=t[1];n[e]||(n[e]="object"==typeof r?JSON.stringify(r):r+"")})),n},t.prototype.flushOutQueues=function(n,e){var r=this;e.discardTrackingEvents()?(this.customEventQueue=[],this.visitEventQueue=[]):n.trackingEnabled()&&(this.visitEventQueue.forEach((function(t){var o=rt(rt({},t),n.extraEventProperties()),i=rt(rt(rt({},o),r.customEventsToVisitProps(r.customEventQueue)),e.getOrCreateIds(n)),a=r.pixelUrl();r.taggerClient.callPixel(a,i).then((function(t){e.setThirdPartyTrackability(t.isThirdPartyTrackable),e.firstVisitEventSent()})),r.customEventQueue=[]})),this.visitEventQueue=[],this.customEventQueue.forEach((function(o){var i=rt(rt(rt({},t.customEventToCustomNoTaggerProps(o)),n.extraEventProperties()),e.getOrCreateIds(n)),a=r.customEventUrl();r.taggerClient.callPixel(a,i).then((function(t){return e.setThirdPartyTrackability(t.isThirdPartyTrackable)}))})),this.customEventQueue=[])},t.prototype.customEventUrl=function(){return new URL("".concat(this.seat,"/v2/custom-no-tagger"),this.taggerUrl)},t.prototype.pixelUrl=function(){return this.tenant?new URL("".concat(this.seat,"/").concat(this.tenant,"/v2/pixel.gif"),this.taggerUrl):new URL("".concat(this.seat,"/v2/pixel.gif"),this.taggerUrl)},t.prototype.pixelCookieOnlyUrl=function(){return new URL("".concat(this.seat,"/").concat(this.tenant,"/v2/pixel-only-cookie.gif"),this.taggerUrl)},t.prototype.sendVisitEvent=function(t){var n=this;this.trackingStrategy.discardTrackingEvents()||(this.visitEventQueue.push(t),Promise.all([this.consent,this.trackingStrategy.onInit$]).then((function(t){return n.flushOutQueues(t[0],n.trackingStrategy)})))},t.prototype.invokePixelOnlyCookie=function(){var t=this;Promise.all([this.consent,this.trackingStrategy.onInit$]).then((function(n){t.taggerClient.callPixel(t.pixelCookieOnlyUrl(),{fpid:t.trackingStrategy.getOrCreateIds(n[0]).fpid}).then((function(n){t.trackingStrategy.setThirdPartyTrackability(n.isThirdPartyTrackable),t.trackingStrategy.firstVisitEventSent()}))}))},t.prototype.sendCustomEvent=function(t){var n=this;this.trackingStrategy.discardTrackingEvents()||(this.customEventQueue.push(t),Promise.all([this.consent,this.trackingStrategy.onInit$]).then((function(t){return n.flushOutQueues(t[0],n.trackingStrategy)})))},t}();function it(){try{return"us-west-1"}catch(t){return""}}var at=function(){return at=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},at.apply(this,arguments)},ct=function(){function t(t){t.sendVisitEvent(st({}))}return t.prototype.processSendVisitCommand=function(){throw Error('"sendVisit" command is not supported with automatic visit provider')},t}(),ut=function(){function t(t){this.tracker=t}return t.prototype.processSendVisitCommand=function(t){this.tracker.sendVisitEvent(st(t))},t}();function st(t){return at(at({},lt()),{tz:(new Date).getTimezoneOffset()/60,screen:window.screen.width+"x"+window.screen.height+"x"+window.screen.colorDepth,visiturl:t.visitUrl,dcRegion:it()})}function lt(){var t,n;return{url:window.location.href,ref:document.referrer,tref:null===(n=null===(t=window.top)||void 0===t?void 0:t.document)||void 0===n?void 0:n.referrer}}var pt=function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},ft=function(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},dt=function(){function t(t){this.privacyAwareStorage=t}return t.instance=function(){return new t(new Q(localStorage))},t.prototype.update=function(t,n,e,r){return pt(this,void 0,void 0,(function(){return ft(this,(function(e){switch(e.label){case 0:return[4,n.consent];case 1:return e.sent().trackingEnabled()||this.remove(),[4,n.deviceAccessOk()];case 2:return e.sent()&&this.doUpdate(t,n,r),[2]}}))}))},t.prototype.doUpdate=function(t,n,e){return pt(this,void 0,void 0,(function(){var r,o=this;return ft(this,(function(i){return r=t.getProfile(n,e).catch((function(t){return{error:t.message||"Unknown error"}})),[2,this.privacyAwareStorage.withConsent(n).then((function(t){return pt(o,void 0,void 0,(function(){var n,e;return ft(this,(function(o){switch(o.label){case 0:return n=this.save,e=[t],[4,r];case 1:return n.apply(this,e.concat([o.sent()])),[2]}}))}))}),(function(t){return pt(o,void 0,void 0,(function(){return ft(this,(function(t){return[2,void 0]}))}))}))]}))}))},t.prototype.save=function(n,e){n.setItem(t.localStorageKey,JSON.stringify(e))},t.prototype.remove=function(){this.privacyAwareStorage.removeItem(t.localStorageKey)},t.localStorageKey="opecloud_ctx",t}(),ht=function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},vt=function(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},yt=function(){function t(t){this.consent=this.loadConsent(t)}return t.prototype.deviceAccessOk=function(){return ht(this,void 0,void 0,(function(){return vt(this,(function(t){switch(t.label){case 0:return this.deviceAccessRestricted?[3,1]:[2,!0];case 1:return[4,this.consent];case 2:return[2,t.sent().deviceAccessAllowed()]}}))}))},t}(),gt=function(){var t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},t(n,e)};return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),wt=function(){function t(){}return t.prototype.applies=function(){return!0},t.prototype.trackingEnabled=function(){return!0},t.prototype.deviceAccessAllowed=function(){return!0},t.prototype.extraEventProperties=function(){return{cmpstatus:"notrequired"}},t.prototype.consentString=function(){return null},t.prototype.papiParameters=function(){return{}},t}(),mt=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.deviceAccessRestricted=!1,n}return gt(n,t),n.prototype.loadConsent=function(t){return Promise.resolve(new wt)},n}(yt),bt=function(){var t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},t(n,e)};return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ot=function(){function t(){}return t.prototype.applies=function(){return!0},t.prototype.trackingEnabled=function(){return!1},t.prototype.deviceAccessAllowed=function(){return!1},t.prototype.extraEventProperties=function(){return{}},t.prototype.consentString=function(){return null},t.prototype.papiParameters=function(){return{}},t}(),kt=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.deviceAccessRestricted=!0,n}return bt(n,t),n.prototype.loadConsent=function(t){return Promise.resolve(new Ot)},n}(yt);function St(){return Math.random().toString().substring(2)}var Pt=function(){var t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},t(n,e)};return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ct=function(){function t(t){this.tcData=t}return t.prototype.applies=function(){return!1!==this.tcData.gdprApplies},t.prototype.checkVendorConsent=function(){var t,n,e=null===(n=null===(t=this.tcData)||void 0===t?void 0:t.vendor)||void 0===n?void 0:n.consents;return void 0!==e&&!0===e[this.vendorId]},t.prototype.purposeConsent=function(t){var n,e,r;return!!(null===(r=null===(e=null===(n=this.tcData)||void 0===n?void 0:n.purpose)||void 0===e?void 0:e.consents)||void 0===r?void 0:r[t])},t.prototype.legitimateInterest=function(t){var n,e,r;return!!(null===(r=null===(e=null===(n=this.tcData)||void 0===n?void 0:n.purpose)||void 0===e?void 0:e.legitimateInterests)||void 0===r?void 0:r[t])},t.prototype.deviceAccessAllowed=function(){var t=this.checkVendorConsent()&&this.purposeConsent(1);return!this.applies()||t},t.prototype.trackingEnabled=function(){return!this.applies()||this.checkConsent()},t.prototype.extraEventProperties=function(){return{cmpstatus:this.applies()?"cmpconsent":"gdprdoesnotapply",tcString:this.tcData.tcString}},t.prototype.consentString=function(){return this.tcData.tcString},t.prototype.papiParameters=function(){return{gdpr_applies:this.applies()?"1":"0",consent_string:this.tcData.tcString}},t}(),It=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.vendorId=92,n}return Pt(n,t),n.prototype.checkConsent=function(){var t=this;return this.checkVendorConsent()&&this.purposeConsent(1)&&[3,5,7,8,9].every((function(n){return t.purposeConsent(n)||t.legitimateInterest(n)}))},n}(Ct),_t=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.vendorId=28,n}return Pt(n,t),n.prototype.checkConsent=function(){var t=this;return this.checkVendorConsent()&&[1,2,3,4,7,9,10].every((function(n){return t.purposeConsent(n)}))},n}(Ct),xt=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.deviceAccessRestricted=!0,n}return Pt(n,t),n.prototype.loadConsent=function(t){return new Promise((function(n){var e=St();function r(t){return t.frames.__tcfapiLocator||t==window.top?t:r(t.parent)}function o(r){var o,i=r.data.__tcfapiReturn;i&&i.callId===e&&i.success&&(null==(o=i.returnValue)||function(t){return["useractioncomplete","tcloaded"].includes(t.eventStatus)}(o)&&("ope"==t?n(new It(o)):"tpl"==t&&n(new _t(o)))),i&&i.success}window.addEventListener("message",o,!1),r(window).postMessage({__tcfapiCall:{command:"addEventListener",version:2,callId:e}},"*")}))},n}(yt),Et=function(){var t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},t(n,e)};return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Tt=function(){function t(n){if(!(null==n?void 0:n.match(t.regex)))throw new Error("invalid uspString: ".concat(n));this.uspString=n.toUpperCase()}return t.prototype.ccpaApplies=function(){return"1---"!=this.uspString},Object.defineProperty(t.prototype,"salesOptOut",{get:function(){var t,n=null===(t=this.uspString)||void 0===t?void 0:t.charAt(2);return"Y"===n||"N"!==n&&null},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return this.uspString},t.regex=/^[1][nNyY-][nNyY-][nNyY-]$/,t}(),Ut=function(){function t(t){this.uspData=t;try{this.uspString=new Tt(null==t?void 0:t.uspString)}catch(n){throw new Error("failed to initialize USPConsent. uspData: ".concat(t,", error: ").concat(n.message))}}return t.prototype.applies=function(){return this.uspString.ccpaApplies()},t.prototype.trackingEnabled=function(){return!this.uspString.ccpaApplies()||!this.uspString.salesOptOut},t.prototype.deviceAccessAllowed=function(){return!0},t.prototype.extraEventProperties=function(){return{uspstatus:this.uspString.ccpaApplies()?this.uspString.salesOptOut?"uspoptoutsaleconsent":"uspoptoutsalenoconsent":"ccpadoesnotapply"}},t.prototype.consentString=function(){return this.uspString.toString()},t.prototype.papiParameters=function(){return{}},t}(),At=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.deviceAccessRestricted=!0,n}return Et(n,t),n.prototype.loadConsent=function(t){return new Promise((function(t,e){var r=St();function o(t){return t.frames.__uspapiLocator?t:t==window.top?null:o(t.parent)}window.addEventListener("message",(function(n){var o=n.data.__uspapiReturn;if((null==o?void 0:o.callId)===r)if(o.success)try{var i=new Ut(o.returnValue);t(i)}catch(t){e(t)}else e(new Error(o.returnValue))}),!1),function t(e,r,i){void 0===r&&(r=n.retries);void 0===i&&(i=n.delay);return new Promise((function(n,a){var c=o(e);c?n(c):r>0?setTimeout((function(){return n(t(e,r-1,i))}),i):a(new N("Failed to locate __uspapiLocator iframe"))}))}(window).then((function(t){t.postMessage({__uspapiCall:{callId:r,command:"getUSPData",version:1}},"*")})).catch((function(){e(new N("failed to locate __uspapiLocator iframe"))}))}))},n.delay=100,n.retries=20,n}(yt),jt=function(){var t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},t(n,e)};return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ft=function(){function t(t,n){if(this.gppData=t,this.gppString=n,!t)throw Error("gppData must be defined to parse");this.optedOut=this.getOptoutFromField(t,"SharingNotice",[1])||this.getOptoutFromField(t,"SaleOptOutNotice",[1])||this.getOptoutFromField(t,"SharingOptOutNotice",[1])||this.getOptoutFromField(t,"TargetedAdvertisingOptOutNotice",[1])||this.getOptoutFromField(t,"SensitiveDataProcessingOptOutNotice",[0])||this.getOptoutFromField(t,"SensitiveDataLimitUseNotice",[0])||this.getOptoutFromField(t,"SaleOptOut",[2])||this.getOptoutFromField(t,"SharingOptOut",[2])||this.getOptoutFromField(t,"TargetedAdvertisingOptOut",[2])||this.getOptoutFromField(t,"SensitiveDataProcessing",[0])||this.getOptoutFromField(t,"KnownChildSensitiveDataConsents",[0])||this.getOptoutFromField(t,"PersonalDataConsents",[0,2]),1==t.MspaCoveredTransaction&&(this.optedOut||(this.optedOut=this.getOptoutFromField(t,"MspaOptOutOptionMode",[0,1])||this.getOptoutFromField(t,"MspaServiceProviderMode",[0,2])))}return t.prototype.getOptoutFromField=function(t,n,e){if(!(n in t))throw Error("gppdata field should be present: ".concat(n));return!e.includes(t[n])},t.prototype.applies=function(){return!0},t.prototype.deviceAccessAllowed=function(){return!this.optedOut},t.prototype.trackingEnabled=function(){return!this.optedOut},t.prototype.consentString=function(){return this.gppString},t.prototype.extraEventProperties=function(){return{}},t.prototype.papiParameters=function(){return{gppString:this.gppString}},t}(),Rt=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.deviceAccessRestricted=!0,n.listenerId=null,n}return jt(n,t),n.prototype.loadConsent=function(t){return new Promise((function(t){var n=St();window.addEventListener("message",(function(e){var r=e.data.__gppReturn;r&&r.callId===n&&r.success&&function(n){if(n&&n.data){if(function(t){if("signalStatus"!==t.eventName||"ready"!==t.data)return!1;if("usnat"in t.pingData.parsedSections)return!0;return!1}(n)){var e=n.pingData.gppString,r=new Ft(n.pingData.parsedSections.usnat,e);t(r)}}else;}(r.returnValue);r&&r.success}),!1);var e=function t(n){return n.frames.__gppLocator||n==window.top?n:t(n.parent)}(window);e.postMessage({__gppCall:{command:"addEventListener",version:1,callId:n}},"*")}))},n}(yt),Dt=function(){var t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},t(n,e)};return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Lt=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.deviceAccessRestricted=!0,n}return Dt(n,t),n.prototype.loadConsent=function(t){var e=this;return new Promise((function(r,o){var i=void 0,a=void 0;e.consentsToAwait=[new xt(t).consent,new At(t).consent,new Rt(t).consent],e.consentsToAwait.forEach((function(t){t.then((function(t){t.applies()?r(t):i=t})).catch((function(t){t instanceof N||(a=t)}))})),Promise.allSettled(e.consentsToAwait).then((function(t){var n=t.find((function(t){return"fulfilled"==t.status&&t.value.applies()})),e=t.find((function(t){return"fulfilled"==t.status})),i=t.find((function(t){return"rejected"==t.status&&!(t.reason instanceof N)}));n?r(n.value):i?o(i.reason):r(e?new wt:new Ot)})),setTimeout((function(){a?o(a):r(i?new wt:new Ot)}),n.timeout)}))},n.timeout=2e3,n}(yt),Nt=function(){function t(){}return t.initialize=function(t,n){switch(t){case"tcf2":return new xt(n);case"implied":return new mt(n);case"usp":return new At(n);case"auto":return new Lt(n);case"noConsent":return new kt(n);case"gpp":return new Rt(n);default:throw new Error("Privacy framework '".concat(t,"' not supported"))}},t}(),Bt=function(){function t(t){this.dcAPIUrl=t,this.httpClient=new K(this.dcAPIUrl)}return t.prototype.sendIngestionEvent=function(t,n,e,r){return void 0===e&&(e={}),void 0===r&&(r="/ingest/event"),this.httpClient.sendRequest("POST",r,n?{fpid:n}:{},{},{contentType:"application/json",content:JSON.stringify(t)},e)},t.initializeClient=function(n){return new t(n)},t}(),Mt=function(){function t(){}return t.parseTrackingStrategy=function(t){if(t.name===H.strategyName)return function(t){var e,r,o;if((null==t?void 0:t.name)!==H.strategyName)throw new Error("Invalid description for adaptive tracking strategy: ".concat(t));try{var i=n.parseBoolean(null!==(e=null==t?void 0:t.awaitUserSignal)&&void 0!==e&&e),a=n.parseBoolean(null===(r=null==t?void 0:t.fpidEnabled)||void 0===r||r),c=n.parseBoolean(null===(o=null==t?void 0:t.awaitSetCookieCompleted)||void 0===o||o);return new H(i,a,c)}catch(n){throw new Error("invalid adaptive tracking strategy: ".concat(t))}}(t);throw new Error("invalid tracking strategy: ".concat(JSON.stringify(t)))},t.createTrackingStrategy=function(t){return t.trackingStrategy?this.parseTrackingStrategy(t.trackingStrategy):new H(!1,!0)},t}(),Vt=function(){function t(n,e,r,o,i,a,c,u,s,l){void 0===u&&(u=t.defaultIdResolution),void 0===s&&(s=864e5),void 0===l&&(l="google-topics"),this.seat=n,this.trackingStrategy=e,this.privacyFramework=r,this.dcAPIClient=o,this.storage=i,this._document=a,this.tenant=c,this.idResolution=u,this.sendInterval=s,this.channel=l}return t.defaultIdResolution=function(t){return t.cpid},t.prototype.upload=function(){var t=this;return Promise.all([this.privacyFramework.consent,this.trackingStrategy.onInit$]).then((function(n){var e=n[0];if(!e.trackingEnabled())throw"Missing consent - not proceeding.";if(!t._document.browsingTopics)throw"No Topics API - not proceeding.";if(!t.shouldSendTopics())throw"Topics cached with TTL > 0 - not proceeding.";var r=t.trackingStrategy.getOrCreateIds(e);return{event:{ope_channel:t.channel,ope_event_type:"topics",ope_item_uri:window.location.href,ope_tenant:t.tenant,ope_user_id:t.idResolution(r)},fpid:r.fpid}})).then((function(n){var e=n.event,r=n.fpid;return t.dcAPIClient.sendIngestionEvent(e,r,{browsingTopics:!0},"/ingest/topics")})).then((function(){t.updateTopics()}))},t.prototype.shouldSendTopics=function(){var n=this.storage.getItem(t.topicsLocalStoreMarker);return!n||JSON.parse(n).exp<Date.now()},t.prototype.updateTopics=function(){this.storage.setItem(t.topicsLocalStoreMarker,JSON.stringify({exp:Date.now()+this.sendInterval}))},t.topicsLocalStoreMarker="_ope_topics",t}(),Kt=function(){function t(t,n,e){this.seat=t,this.cmpName=n,this.options=e}return t.prototype.run=function(t,n){var e,r,o,i,a,c,u,s,l,p,f,d,h,y,g;if(null==t){var w=new URL(null!==(r=null===(e=this.options)||void 0===e?void 0:e.taggerUrl)&&void 0!==r?r:"https://".concat(this.seat,".tagger.opecloud.com")),m=new URL(null!==(i=null===(o=this.options)||void 0===o?void 0:o.dcAPIUrl)&&void 0!==i?i:"https://".concat(this.seat,".dcapi.tagger.opecloud.com")),b=Bt.initializeClient(m),O=D(w,this.seat),k=Nt.initialize(this.cmpName,"ope");d=k.consent,h=O,y=this.cmpName,g=!1,d.then((function(t){g=!0,t.trackingEnabled()||h(new F({cmp:y,consentString:t.consentString()}))}),(function(t){h(new R({cmp:y,errorMessage:JSON.stringify(t)}))})),window.setTimeout((function(){g||h(new j({cmp:y}))}),5e3),k.consent.then((function(t){t.trackingEnabled()||new v(localStorage).removeFpid()}));var S=Mt.createTrackingStrategy(this.options);S.onInit$.then((function(){}));var P=new ot(this.seat,null,w,k.consent,n.taggerClient,S),C=function(t,n){switch(t){case"automatic":return new ct(n);case"cmd":return new ut(n);default:throw new Error("Invalid visit provider ".concat(t))}}(null!==(c=null===(a=this.options)||void 0===a?void 0:a.visitProvider)&&void 0!==c?c:"automatic",P),I=new URL(null!==(s=null===(u=this.options)||void 0===u?void 0:u.profileApiUrl)&&void 0!==s?s:"https://".concat(this.seat,".profiles.tagger.opecloud.com/v1/targeting")),_=new et(this.seat,null,I,S);if(null===(l=this.options)||void 0===l?void 0:l.programmaticTenantId){var x=Nt.initialize(this.cmpName,"tpl");this.initProgrammaticIntegration(x,n.taggerClient,P)}var E=new G(w);if(null===(p=this.options)||void 0===p?void 0:p.googleTopics){var T=new Vt(this.seat,P.trackingStrategy,k,b,localStorage,window.document,void 0,Vt.defaultIdResolution,864e5);S.onSetCookieCompleted$.then((function(){return T.upload()})).then((function(){})).catch((function(t){}))}return{tracker:P,privacyFramework:k,profileApi:_,reporter:O,visitProvider:C,trackingStrategy:S,taggerUrl:w,taggerGdprClient:E,dcAPIClient:b,programmaticTenantId:null===(f=this.options)||void 0===f?void 0:f.programmaticTenantId}}return t},t.prototype.initProgrammaticIntegration=function(t,n,e){var r,o=dt.instance(),i=et.progInstance({tenantId:this.options.programmaticTenantId,profileApiUrl:this.options.profileApiUrl});if("cmd"!=this.options.visitProvider){o.update(i,t,e.trackingStrategy);var a=ot.progInstance({tenant:this.options.programmaticTenantId,taggerUrl:null===(r=this.options)||void 0===r?void 0:r.taggerUrl,consent:t.consent,taggerClient:n});new ct(a)}else t.consent.then((function(t){t.trackingEnabled||o.remove()}))},t}();var Gt=function(){function t(t,n,e){this.seat=t,this.callback=n,this.options=e}return t.prototype.run=function(t){var n,e,r,o,i,a,c,u=null===(e=null===(n=this.options)||void 0===n?void 0:n.awaitConsent)||void 0===e||e;return i=null!==(o=null===(r=this.options)||void 0===r?void 0:r.useLocalStorageCache)&&void 0!==o&&o?this.getWithCache(u,t.profileApi,t.privacyFramework):this.getWithoutCache(u,t.profileApi,t.privacyFramework),a=i,c=this.callback,a.then((function(t){c(null,t)}),(function(t){return c(t)})),t},t.prototype.getWithoutCache=function(t,n,e){if(t)return n.getProfile(e);var r=n.getProfile(e),o=n.getContextual().then((function(t){return new Promise((function(n){return setTimeout((function(){return n(t)}),5)}))}));return Promise.race([r,o])},t.prototype.getWithCache=function(t,n,e){if(t)return n.getCacheBackedProfile(e);var r=n.getCacheBackedProfile(e),o=n.getCacheBackedContextual(e).then((function(t){return new Promise((function(n){return setTimeout((function(){return n(t)}),5)}))}));return Promise.race([r,o])},t}(),$t=function(){var t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},t(n,e)};return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),zt=function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},Qt=function(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},qt=function(t){function n(n,e){return t.call(this,n,e)||this}return $t(n,t),n.prototype.action=function(t){return zt(this,void 0,void 0,(function(){var n,e,r,o;return Qt(this,(function(i){switch(i.label){case 0:return(n=v.instance()).optin(),o=(r=n).getOrCreateFpid,[4,t.privacyFramework.consent];case 1:return e=o.apply(r,[i.sent()]).fpid,[4,t.taggerGdprClient.optIn(this.seat,null,e)];case 2:return i.sent(),t.programmaticTenantId?[4,t.taggerGdprClient.optIn("pdmp",t.programmaticTenantId,e)]:[3,4];case 3:i.sent(),i.label=4;case 4:return[2]}}))}))},n}(y),Wt=function(){return Wt=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Wt.apply(this,arguments)},Jt=function(){function t(t,n,e){this.seat=t,this.eventType=n,this.content=e}return t.prototype.run=function(t){var n;return null===(n=null==t?void 0:t.tracker)||void 0===n||n.sendCustomEvent(Wt(Wt({},lt()),{type:this.eventType,content:this.content})),t},t}(),Xt=function(){return Xt=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Xt.apply(this,arguments)},Yt=function(){function t(t,n,e){this.seat=t,this.assetURI=n,this.interactionType=e,this.defaultInteractionType="ope_visit"}return t.prototype.run=function(t){var n=this;return Promise.all([t.privacyFramework.consent,t.trackingStrategy.onInit$,t.trackingStrategy.onSetCookieCompleted$]).then((function(e){var r,o=t.trackingStrategy.getOrCreateIds(e[0]),i=o.cpid?{ope_user_id:o.cpid}:{},a=Xt({ope_event_type:"default",ope_interaction_type:null!==(r=n.interactionType)&&void 0!==r?r:n.defaultInteractionType,ope_item_uri:n.assetURI,ope_channel:"browser-interactions"},i);t.dcAPIClient.sendIngestionEvent(a,o.fpid)})),t},t}(),Ht=function(){function t(t,n){this.seat=t,this.options=n}return t.prototype.run=function(t){var n=this;return null==t||t.visitProvider.processSendVisitCommand(this.options),t.programmaticTenantId&&t.privacyFramework.consent.then((function(e){t.trackingStrategy.getOrCreateIds(e);var r=dt.instance(),o=et.progInstance({tenantId:t.programmaticTenantId});r.doUpdate(o,t.privacyFramework,n.options.visitUrl)})),t},t}(),Zt=function(){return Zt=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Zt.apply(this,arguments)},tn=function(){function t(t,n){this.seat=t,this.taggerUrl=n,this.overlayId=St()}return t.prototype.showModalWindow=function(t){var n=this;if(!document.getElementById(this.overlayId)){var e=new v(localStorage).isOptedOut();document.body.innerHTML+='\n        <div id="'.concat(this.overlayId,'" style="').concat(en.inline(en.overlay),'">\n          <div  id="modal_').concat(this.overlayId,'" style="').concat(en.inline(en.modal),'" data-e2e="ppmodal">\n\n          <span id="close_').concat(this.overlayId,'"\n                style="').concat(en.inline(en.closeX),'">X</span>\n\n            <div style="padding:5%;">\n\n              <h2 style="margin-top:0;">').concat(nn.get("title",t),"</h2>\n\n              <div>").concat(nn.get("line1",t),':\n                <em id="status_').concat(this.overlayId,'">\n                  ').concat(e?nn.get("optedOut",t):nn.get("optedIn",t),'\n                </em>\n              </div>\n\n              <br>\n\n              <button\n                  id="optout_').concat(this.overlayId,'"\n                  style="').concat(en.inline(e?en.hiddenButton:en.button),'"\n                  data-e2e="optout">\n                ').concat(nn.get("optOutBtn",t),'\n              </button>\n\n              <button\n                  id="optin_').concat(this.overlayId,'"\n                  style="').concat(en.inline(e?en.button:en.hiddenButton),'"\n                  data-e2e="optin">\n                  ').concat(nn.get("optInBtn",t),"\n              </button>\n\n              <br><br>\n\n              <span> ").concat(nn.get("line2",t),'\n                <a style="color:').concat(en.opeDarkBlue,';"\n                  href="').concat(this.policyUrl(t),'"\n                  data-e2e="pplink">').concat(nn.get("ppLink",t),"<a/>\n              <span/>\n\n            </div>\n\n          </div>\n        </div>\n      "),document.getElementById(this.overlayId).addEventListener("click",(function(t){t.target.id===n.overlayId&&n.removeModalWindow()})),document.getElementById("close_".concat(this.overlayId)).addEventListener("click",(function(){return n.removeModalWindow()})),document.getElementById("optout_".concat(this.overlayId)).addEventListener("click",(function(){document.getElementById("optout_".concat(n.overlayId)).style.display="none",document.getElementById("optin_".concat(n.overlayId)).style.display="inline-block",document.getElementById("status_".concat(n.overlayId)).innerText=nn.get("optedOut",t),window.ope(n.seat,"optout")})),document.getElementById("optin_".concat(this.overlayId)).addEventListener("click",(function(){document.getElementById("optout_".concat(n.overlayId)).style.display="inline-block",document.getElementById("optin_".concat(n.overlayId)).style.display="none",document.getElementById("status_".concat(n.overlayId)).innerText=nn.get("optedIn",t),window.ope(n.seat,"optin")}))}},t.prototype.removeModalWindow=function(){var t=document.getElementById(this.overlayId);t&&document.body.removeChild(t)},t.prototype.policyUrl=function(t){var n,e=new URL("".concat(this.seat,"/privacy-policy.html"),this.taggerUrl),r=null===(n=new v(localStorage).getIds())||void 0===n?void 0:n.fpid;return r&&e.searchParams.append("fpid",r),t&&e.searchParams.append("lang",t),e},t}(),nn=function(){function t(){}return t.get=function(n,e){var r;return null!==(r=("jp"==e?t.jp:t.en)[n])&&void 0!==r?r:n},t.en={title:"1plusx Tracking Status",line1:"Current tracking status",line2:"For additional privacy and regulatory settings visit",optInBtn:"OPT-IN",optOutBtn:"OPT-OUT",optedIn:"opted-in",optedOut:"opted-out",ppLink:"1plusX privacy page"},t.jp={title:"1plusX トラッキング ステータス",line1:"現在のステータス",line2:"その他のプライバシー設定と規制適合設定については",optInBtn:"オプトイン",optOutBtn:"オプトアウト",optedIn:"オプトイン済",optedOut:"オプトアウト済",ppLink:"「1plusX プライバシー ページ」を参照してください。"},t}(),en=function(){function t(){}return t.inline=function(t){for(var n="",e=0,r=Object.entries(t);e<r.length;e++){var o=r[e],i=o[0],a=o[1],c=i.replace(/[A-Z]/g,"-$&").toLowerCase();n+="".concat(c,":").concat(a,";")}return n},t.opeLightBlue="#33C3F0",t.opeDarkBlue="#1EAEDB",t.button={backgroundColor:t.opeLightBlue,border:"1px solid",borderRadius:"4px",boxSizing:"border-box",color:"#FFF",cursor:"pointer",display:"inline-block",fontSize:"11px",fontWeight:"600",height:"38px",letterSpacing:".1rem",lineHeight:"38px",margin:"5px",padding:"0 38px",textAlign:"center",textDecoration:"none",whiteSpace:"nowrap"},t.hiddenButton=Zt(Zt({},t.button),{display:"none"}),t.closeX={backgroundColor:"black",color:"white",cursor:"pointer",fontSize:"sans-serif",padding:"5px",position:"absolute",right:"3px"},t.modal={backgroundColor:"#eeeeee",left:"5%",margin:"auto",position:"fixed",top:"5%",width:"90%"},t.overlay={backgroundColor:"rgba(255, 255, 255, 0.5)",height:"100%",left:"0%",margin:"auto",position:"fixed",top:"0%",width:"100%"},t}(),rn=function(){return rn=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},rn.apply(this,arguments)},on=function(){function t(t,n){this.seat=t,this.options=n}return t.prototype.run=function(t){var n,e=null!==(n=t.privacyPolicy)&&void 0!==n?n:new tn(this.seat,t.taggerUrl);return e.showModalWindow(this.options.language),rn({privacyPolicy:e},t)},t}(),an=function(){return an=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},an.apply(this,arguments)},cn=function(){function t(t,n){this.seat=t,this.ids=n}return t.prototype.run=function(t){var n=this;return Promise.all([t.privacyFramework.consent,t.trackingStrategy.onInit$,t.trackingStrategy.onSetCookieCompleted$]).then((function(e){if(n.ids.length>0){var r=t.trackingStrategy.getOrCreateIds(e[0]),o=r.cpid?{ope_user_id:r.cpid}:{},i=an({ope_event_type:"sync-event",ope_alt_user_ids:n.ids.join(","),ope_channel:"browser-syncs"},o);t.dcAPIClient.sendIngestionEvent(i,r.fpid)}})),t},t}(),un=function(){function t(t,n){this.seat=t,this.cb=n}return t.prototype.run=function(t){try{var n=t.trackingStrategy.getIds();return this.cb(null,n),t}catch(n){return this.cb(n,null),t}},t}(),sn=function(){function t(t){void 0===t&&(t=[]),this.customCmdParser=t}return t.prototype.parse=function(t,e,r){try{for(var i=0,a=this.customCmdParser;i<a.length;i++){var c=a[i].parse(t,e,r);if(null!=c)return c}switch(e){case"init":var u=n.parseCmpName(r[0]),s=n.parseOptions(r[1]);return new Kt(t,u,s);case"send":var l=n.parseString(r[0]),p=n.parseObject(r[1]);return new Jt(t,l,p);case"sendVisit":var f=n.parseOptions(r[0]);return new Ht(t,f);case"sendInteraction":var d=n.parseString(r[0]),h=n.parseStringOrNull(r[1]);return new Yt(t,d,h);case"syncIds":var v=n.parseStringArray(r[0]);return new cn(t,v);case"identifyUser":var y=n.parseStringOrNull(r[0]),g=n.parseStringOrNull(r[1]),w=n.parseOptions(r[2]);return new A(t,y,g,w);case"optin":return new qt(t,n.validateOptCallback(null==r?void 0:r[0]));case"optout":return new P(t,n.validateOptCallback(null==r?void 0:r[0]));case"dataAccess":var m=n.parseString(r[0]),O=n.parseString(r[1]),k=n.validateOptCallback(null==r?void 0:r[2]);return new b(t,m,O,k);case"dataDeletion":return new x(t,n.validateOptCallback(null==r?void 0:r[0]));case"onProfile":var S=n.parseOptions(r[1]);return new Gt(t,n.validateCallback(r[0]),S);case"showPrivacyPolicy":return new on(t,n.parseOptions(r[0]));case"hidePrivacyPolicy":return new E(t);case"trackingIds":return new un(t,n.validateCallback(r[0]));case"currentTrackingId":return new o(t,n.validateCallback(r[0]));default:return null}}catch(t){return null}},t}(),ln=function(){function t(){this.initialCallPromise=null,this.maxCallDelayMs=2e3}return t.prototype.callPixel=function(t,n){var e=this,r=function(t,n){return new Promise((function(r){Object.entries(n).forEach((function(n){var e=n[0],r=n[1];void 0!==r&&t.searchParams.append(e,r)}));var o=new Image;o.addEventListener("load",(function(){1==o.width&&1==o.height?r({isThirdPartyTrackable:!1}):r({isThirdPartyTrackable:!0})})),o.addEventListener("error",(function(){1==o.width&&1==o.height?r({isThirdPartyTrackable:!1}):r({isThirdPartyTrackable:!0})})),window.setTimeout((function(){r({isThirdPartyTrackable:!1})}),e.maxCallDelayMs),o.src=t.toString()}))};return null===this.initialCallPromise?this.initialCallPromise=r(t,n):this.initialCallPromise=this.initialCallPromise.then((function(){return r(t,n)})),this.initialCallPromise},t}();var pn=function(t,e,r){var o=this;this.sdkStates=t,this.globalContext=e,this.commandParser=r,this.ope=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];try{var r=n.parseSeatId(t[0]),i=n.parseString(t[1]),a=o.commandParser.parse(r,i,t.slice(2));null!==a&&o.sdkStates.set(r,a.run(o.sdkStates.get(r),o.globalContext))}catch(t){}}},fn=window.ope,dn=new pn(new Map,{taggerClient:new ln},new sn).ope;if(fn.q)for(var hn=0,vn=fn.q;hn<vn.length;hn++){var yn=vn[hn];dn.apply(void 0,yn)}window.ope=dn}();