1138 lines
550 KiB
JavaScript
1138 lines
550 KiB
JavaScript
(function(){self.getServiceWorkerGlobalClientConfigData=function(){try{return JSON.parse(decodeURIComponent("%7B%22customerProperties%22:%7B%22currencyOfPreference%22:%22USD%22,%22languageOfPreference%22:%22en-US%22,%22sessionId%22:%22142-4852675-1675920%22%7D,%22deviceProperties%22:%7B%22appType%22:%22web%22,%22deviceType%22:%22desktop%22%7D,%22marketplaceProperties%22:%7B%22countryCode%22:%22us%22,%22marketplaceName%22:%22Amazon.com%22,%22obfuscatedMarketplaceId%22:%22ATVPDKIKX0DER%22%7D,%22namespaces%22:%7B%22in-latency%22:%7B%22lightsaber-web%22:%7B%22data%22:%7B%22clientEnabled%22:true%7D%7D,%22lightsaber-mshop%22:%7B%22data%22:%7B%22clientEnabled%22:true%7D%7D%7D,%22lightsaber-rule-levers%22:%7B%22bazaar-gateway-mshop-web%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22buyagain-mshop-android%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22cart-mobile-web%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22browsepage-mobile-web%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22search-mshop-android%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22detail-mobile-web%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22detail-mshop-android%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22homepage-mobile-web%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22checkout-mshop-android%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22browsepage-mshop-android%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22cart-mshop-android%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22buyagain-mobile-web%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22amazonpayhome-mshop-android%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22checkout-mobile-web%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22homepage-mshop-android%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22bazaar-gateway-mshop-android%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22amazonpayhome-mobile-web%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D,%22search-mobile-web%22:%7B%22data%22:%7B%22ruleEnabled%22:true%7D%7D%7D%7D,%22weblabProperties%22:%7B%22weblabProperties%22:%5B%7B%22weblabName%22:%22LIGHTSABER_BROWSE_PAGE_1070111%22,%22weblabTreatment%22:%22C%22%7D,%7B%22weblabName%22:%22A2I_LATENCY_DUMMY_WEBLAB_1169596%22,%22weblabTreatment%22:%22C%22%7D%5D%7D%7D"))}catch(e){}}})();
|
|
;;;
|
|
var AUI_JS_DEBUG=!1;
|
|
(function(){var n=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function e(){this.constructor=b}if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,
|
|
new e)}}(),k=function(a){function b(b,e,c,f){e=a.call(this,e||b)||this;e.name="RuntimeConfig".concat(b,"Error");e.attribution=c||"AmazonServiceWorkerRuntimeConfigClientLib";e.logLevel=f;return e}n(b,a);return b}(Error),l=[],f,m=function(a){self.$TM&&"function"===typeof self.$TM.error?self.$TM.error(a):(l.push(a),f||(f=setInterval(function(){self.$TM&&"function"===typeof self.$TM.error&&(l.forEach(function(a){self.$TM.error(a)}),clearInterval(f),f=void 0)},50)))},c=function(a,b){for(var d=0;d<b.length;d++){var e=
|
|
b[d];if("object"===typeof a&&null!==a&&void 0!==a[e])a=a[e];else return}return a},p=function(a){a=c(a,["namespaces"]);if(!a||"object"!==typeof a)return!1;for(var b in a){var d=c(a,[b]);if(!d||"object"!==typeof d)return!1;for(var e in d){var h=c(d,[e]);if(!h||"object"!==typeof h)return!1}}return!0},q={android:/^\d+(\.\d+){3}$/,ios:/^\d+(\.\d+){2}$/},g=function(a,b){return a&&"string"===typeof a&&b&&"string"===typeof b&&(b=q[b.toLowerCase()])&&b.test(a)?!0:!1},r=function(a,b){if("mshop"===b){a=c(a,
|
|
["mshopProperties"]);if(!a||"object"!==typeof a)return!1;b=c(a,["appStage"]);if(!b||"string"!==typeof b)return!1;b=c(a,["appVersion"]);if(!b||"string"!==typeof b)return!1;a=c(a,["osName"]);if(!a||"string"!==typeof a||!g(b,a))return!1}return!0},t=function(a){a=c(a,["marketplaceProperties"]);if(!a||"object"!==typeof a)return!1;var b=c(a,["obfuscatedMarketplaceId"]);if(!b||"string"!==typeof b)return!1;b=c(a,["marketplaceName"]);if(!b||"string"!==typeof b)return!1;a=c(a,["countryCode"]);return!!a&&"string"===
|
|
typeof a},u=function(a){a=c(a,["customerProperties"]);if(!a||"object"!==typeof a)return!1;var b=c(a,["sessionId"]);if(!b||"string"!==typeof b)return!1;b=c(a,["languageOfPreference"]);if(!b||"string"!==typeof b)return!1;b=c(a,["currencyOfPreference"]);if(!b||"string"!==typeof b)return!1;b=c(a,["directedCustomerId"]);a=c(a,["directedCustomerIdVersion"]);return!!b&&"string"===typeof b&&!!a&&"string"===typeof a||!b&&!a},v=function(){function a(a){this._mShopPropertiesData=a}a.prototype.getAppStage=function(){return this._mShopPropertiesData.appStage};
|
|
a.prototype.getAppVersion=function(){return this._mShopPropertiesData.appVersion};a.prototype.getOsName=function(){return this._mShopPropertiesData.osName};a.prototype.compareVersion=function(a){var b=this.getAppVersion(),e=this.getOsName();a:{if(!g(b,e)||!g(a,e))throw b=new k("InvalidAppVersionComparison","Error: version [".concat(b,"] or [").concat(a,"] for OS [").concat(e,"] is invalid")),m(b),b;b=b.split(".").map(Number).slice(0,3);a=a.split(".").map(Number).slice(0,3);for(e=0;3>e;e++){var c=
|
|
b[e]-a[e];if(0!==c){b=c;break a}}b=0}return b};return a}(),w=function(){function a(a){this._devicePropertiesData=a;this._mShopProperties=this._createMShopProperties()}a.prototype.getAppType=function(){return this._devicePropertiesData.appType};a.prototype.getDeviceType=function(){return this._devicePropertiesData.deviceType};a.prototype.getMShopProperties=function(){return this._mShopProperties};a.prototype._createMShopProperties=function(){if("mshop"===this.getAppType()){var a=this._devicePropertiesData.mshopProperties;
|
|
return a?new v(a):void 0}};return a}(),x=function(){function a(a){this.featurePropertiesConfig=a}a.prototype.getData=function(){return this.featurePropertiesConfig.data};return a}(),y=function(){function a(a){this._marketplacePropertiesData=a}a.prototype.getCountryCode=function(){return this._marketplacePropertiesData.countryCode};a.prototype.getMarketplaceId=function(){return this._marketplacePropertiesData.obfuscatedMarketplaceId};a.prototype.getMarketplaceName=function(){return this._marketplacePropertiesData.marketplaceName};
|
|
return a}(),z=function(){function a(a){this._customerPropertiesData=a}a.prototype.getSessionId=function(){return this._customerPropertiesData.sessionId};a.prototype.getLanguageOfPreference=function(){return this._customerPropertiesData.languageOfPreference};a.prototype.getCurrencyOfPreference=function(){return this._customerPropertiesData.currencyOfPreference};a.prototype.getDirectedCustomerId=function(){return this._customerPropertiesData.directedCustomerId};a.prototype.getDirectedCustomerIdVersion=
|
|
function(){return this._customerPropertiesData.directedCustomerIdVersion};return a}(),A=function(){function a(a){this.deviceProperties=new w(a.deviceProperties);this.marketplaceProperties=new y(a.marketplaceProperties);this.customerProperties=new z(a.customerProperties);this.namespacesData=a.namespaces}a.prototype.getDeviceProperties=function(){return this.deviceProperties};a.prototype.getMarketplaceProperties=function(){return this.marketplaceProperties};a.prototype.getCustomerProperties=function(){return this.customerProperties};
|
|
a.prototype.getFeatureProperties=function(a,d){var b,c;return(a=null===(c=null===(b=this.namespacesData)||void 0===b?void 0:b[a])||void 0===c?void 0:c[d])?new x(a):void 0};return a}();self.$RuntimeConfig=new A(function(){if(self.getServiceWorkerGlobalClientConfigData&&"function"===typeof self.getServiceWorkerGlobalClientConfigData){var a=self.getServiceWorkerGlobalClientConfigData(),b;if(b=!!a)if((b=c(a,["deviceProperties"]))&&"object"===typeof b){var d=c(b,["appType"]);if(d&&"string"===typeof d){var e=
|
|
c(b,["deviceType"]);b=e&&"string"===typeof e?r(b,d):!1}else b=!1}else b=!1;if(b&&t(a)&&u(a)&&p(a))return a}a=new k("InvalidConfigDataReceived","Missing runtime config data");m(a);throw a;}())})();var AUI_JS_DEBUG=!1;(function(){var c=[],f=0,d=function(a){return function(){var b=f++;c.push([a,[].slice.call(arguments,0),b,{time:Date.now()}]);return d(b)}},e=function(a,b){a=d(a);b&&(a=a("instance",b));return a};e._s=c;this.csa=e})();var AUI_JS_DEBUG=!1;
|
|
(function(){var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var b,c=1,a=arguments.length;c<a;c++){b=arguments[c];for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e[d]=b[d])}return e};return a.apply(this,arguments)},g=a(a({},{lob:"1"}),{Application:"Retail:Prod:www.amazon.com","Events.SushiEndpoint":"https://unagi.amazon.com/1/events/com.amazon.csm.csa.prod"}),f=this&&this.__assign||function(){f=Object.assign||function(e){for(var b,c=1,a=arguments.length;c<a;c++){b=
|
|
arguments[c];for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e[d]=b[d])}return e};return f.apply(this,arguments)};(function(){if(!g)throw Error("Could not initialize CSA config");var a=self.$RuntimeConfig.getMarketplaceProperties().getMarketplaceId();csa("Config",f(f({},g),{ObfuscatedMarketplaceId:a}))})()})();var AUI_JS_DEBUG=!1;
|
|
(function(){var F=self;(function(a){function b(a,e){return q(a,e)}function c(a,e){var g=d[a]||{};t(g,e);d[a]=g;x++;f(w,0)}function h(a,e,d){var g=!0;e=k(e);d&&d.buffered&&(g=(y[a]||[]).every(function(a){return!1!==e(a)}));return g?(A[a]||(A[a]=[]),A[a].push(e),function(){var d=A[a];d&&d.splice(d.indexOf(e),1)}):E}function l(a,e){e=k(e);return a in G?(e(G[a]),E):h(a,function(a){e(a);return!1})}function r(a,e){q("Errors")("logError",a);if(v.DEBUG)throw e||a;}function m(){return Math.abs(4294967295*Math.random()|
|
|
0).toString(36)}function k(a,e){return function(){try{return a.apply(this,arguments)}catch(C){r(C.message||C,C)}}}function f(e,d){return a.setTimeout(k(e),d)}function w(){for(var a=0;a<n.length;){var b=n[a],f=b[0]in d;if(!f&&!z){g=n.length;return}f?(g=a,n.splice(a,1),u(b)):a++}e=x}function u(a){var e=d[a[0]],g=a[1],b=g[0];if(!e||!e[b])return r("Undefined function: "+e+"/"+b);D=a[3];d[a[2]]=e[b].apply(e,g.slice(1))||{};D=0}function p(){z=1;w()}function t(a,e){B(e).forEach(function(d){a[d]=e[d]})}var q=
|
|
a.csa,v={},d={},n=a.csa._s,g=0,x=0,e=-1,D,z,A={},G={},y={},B=Object.keys,E=function(){};l("$beforeunload",p);c("Config",{instance:function(a){t(v,a)}});q.plugin=k(function(a){a(b)});b.config=v;b.register=c;b.on=h;b.once=l;b.blank=E;b.emit=function(a,e,d){for(var g=A[a]||[],b=0;b<g.length;)!1===g[b](e)?g.splice(b,1):b++;G[a]=e||{};d&&d.buffered&&(y[a]||(y[a]=[]),100<=y[a].length&&y[a].shift(),y[a].push(e||{}))};b.UUID=function(){return[m(),m(),m(),m()].join("-")};b.time=function(a){var e=D?new Date(D.time):
|
|
new Date;return"ISO"===a?e.toISOString():e.getTime()};b.error=r;b.warn=function(a,e){q("Errors")("logWarn",a);if(v.DEBUG)throw e||a;};b.exec=k;b.timeout=f;b.interval=function(e,d){return a.setInterval(k(e),d)};b.global=a;a.csa._s.push=function(a){a[0]in d&&(!n.length||z)?(u(a),n.length&&e!==x&&w()):n.splice(g++,0,a)};w();f(function(){f(p,v.SkipMissingPluginsTimeout||5E3)},1)})("undefined"!==typeof F?F:global);csa.plugin(function(a){var b=a.exec,c=a.global,h=a.on;a.raf=function(a){if(c.requestAnimationFrame)return c.requestAnimationFrame(b(a))};
|
|
a.on=function(b,c,m,k){if(b&&"function"===typeof b.addEventListener){var f=a.exec(m);b.addEventListener(c,f,k);return function(){b.removeEventListener(c,f,k)}}return"string"===typeof b?h(b,c,m,k):a.blank}});csa.plugin(function(a){function b(b,f){try{var c=a.global[b];r[f]=!!c;c=c||{}}catch(u){c={},r[f]=!1}return c}function c(){h||(h=b("localStorage","local"));l||(l=b("sessionStorage","session"))}var h,l,r={},m=a.exec;a.store=m(function(a,b,m){c();m=m&&m.session?l:h;if(!a)return Object.keys(m);if(!b)return m[a];
|
|
m[a]=b});a.storageSupport=m(function(){c();return r});a.deleteStored=m(function(a,b){c();b=b&&b.session?l:h;if("function"===typeof a)for(var f in b)b.hasOwnProperty(f)&&a(f,b[f])&&delete b[f];else delete b[a]})});csa.plugin(function(a){a.types={ovl:function(a){var b=[];if(a)for(var h in a)a.hasOwnProperty(h)&&b.push(a[h]);return b}}});csa.plugin(function(a){function b(b){return function(c){a("Metrics",{producerId:"csa",dimensions:{message:c}})("recordMetric",b,1)}}function c(b){function c(c){k=a.UUID();
|
|
f={messageId:k,schemaId:b.schemaId||"\x3cns\x3e.Error.6",errorMessage:c.m||null,attribution:c.attribution||null,logLevel:"FATAL",url:null,file:null,line:null,column:null,stack:c.s||[],context:c.cinfo||{},metadata:{}};c.logLevel&&(f.logLevel=""+c.logLevel);u.forEach(function(a){c[a]&&(f.metadata[a]=c[a])});"fcsmln"in c&&(f.metadata.fcsmln=c.fcsmln+"");if("INFO"===c.logLevel)return f;Object.keys(p).forEach(function(a){if("number"===typeof c[p[a]]||"string"===typeof c[p[a]])f[a]=""+c[p[a]]});return f}
|
|
var k,f,r=a("Events",{producerId:b.producerId,lob:h.lob||"0"}),u=["name","type","csm","adb"],p={url:"pageURL",file:"f",line:"l",column:"c"};this.log=function(a){var f;if(!(f=l))a:{if(a)for(var h in a){f=!1;break a}f=!0}f||(f=b.logOptions||{ent:{page:["pageType","subPageType","requestId"]}},r("log",c(a),f))}}var h=a.config,l=h["KillSwitch.Errors"];a.register("Errors",{instance:function(a){return new c(a||{})},logError:b("jsError"),logWarn:b("jsWarn")})});csa.plugin(function(a){function b(b,f,g){v(f,
|
|
function(d){var e="all"===g||(g||{})[d];d in b||(b[d]={version:1,id:f[d].id||a.UUID()});c(b[d],f[d],e)})}function c(b,c,g){v(c,function(d){var e="string"!==typeof c[d]&&"version"!==d?a.error("Attribute is not of type string: "+d):!0===g||1===g?!0:"id"===d||-1!==(g||[]).indexOf(d);e&&(b[d]=c[d])})}function h(a,b,g){v(b,function(b){b=a[b];if(b.schemaId){var e={},d={};e.id=b.id;e.producerId=b.producerId||g.producerId;e.schemaId=b.schemaId;e.version=b.version++;e.attributes=d;l(e,g);c(d,b,1);r(d);t("log",
|
|
e)}})}function l(b,c){var d=b.timestamp;"number"===typeof d&&(d=(new Date(d)).toISOString());d=d||a.time("ISO");b.timestamp=d;b.messageId=b.messageId||a.UUID();b.application=u;b.obfuscatedMarketplaceId=k.ObfuscatedMarketplaceId||"UNKNOWN";b.schemaId=b.schemaId.replace("\x3cns\x3e",w);c&&c.lob&&(b.lob=c.lob)}function r(a){delete a.version;delete a.schemaId;delete a.producerId}function m(d){var c={};this.log=function(g,f){var e={},h=(f||{}).ent;if(!g)return a.error("The event cannot be undefined");
|
|
if("string"!==typeof g.schemaId)return a.error("A valid schema id is required for the event");l(g,d);b(e,q,h);b(e,c,h);b(e,g.entities||{},h);v(e,function(a){r(e[a])});g.producerId=d.producerId;g.entities=e;f&&f.lob&&(g.lob=f.lob);t("log",g,f)};this.setEntity=function(a){p&&delete a.session;b(c,a,"all");h(c,a,d)}}var k=a.config,f=(a.global.location||{}).host,w=k["Events.Namespace"]||"csa_other",u=k.Application||"Other"+(f?":"+f:""),p=k["Transport.AnonymizeRequests"]||!1,t=a("Transport"),q={},v=function(a,
|
|
b){Object.keys(a).forEach(b)};k["KillSwitch.Events"]||a.register("Events",{setEntity:function(d){p&&delete d.session;a.emit("$entities.set",d,{buffered:1});b(q,d,"all");h(q,d,{producerId:"csa",lob:k.lob||"0"})},removeEntity:function(a){delete q[a]},instance:function(a){return new m(a)}})});csa.plugin(function(a){function b(a){return"function"===typeof a}function c(a){return a&&"object"===typeof a}function h(a){return"string"===typeof a||a instanceof String}function l(a,c,d,h){var e=g&&g[k[a]||"log"];
|
|
f&&f.TRACE&&b(e)&&e("[CSA:ServiceWorker] "+c,d,h);"le"===a?x("logError",c+" "+d+" "+h):"lw"===a&&x("logWarn",c+" "+d+" "+h)}function r(a,c,d){var e=a.clientId||(a.source||{}).id,f;l("i","Got fetch-check message from clientId: ",e);e&&n.clients&&(f=n.clients.get(e).then(function(a){a&&b(a.postMessage)&&(l("i","Sending fetch-check success message back to clientId: ",e),a.postMessage({client:e,message:{_messageType:d,success:!0}}))}));return f}function m(a){var e=a.body&&(h(a.body)?a.body:JSON.stringify(a.body)),
|
|
d=a.url,f=a.headers||v||{"Content-Type":a.type||q||"application/json; charset\x3dUTF-8"};l("i","Got fetch message: ",d,e);if(e&&d&&b(n.fetch)){if(w)try{var g=JSON.parse(e);g.events&&g.events.length&&b(g.events.forEach)&&g.events.forEach(function(a){c(a)&&c(a.data)&&(a=a.data,"entities"in a&&c(a.entities)?a.entities.transport={type:"ServiceWorker"}:"attributes"in a&&c(a.attributes)&&(a.attributes.transportType="ServiceWorker"))});e=JSON.stringify(g)}catch(B){l("e","Failed to tag entities for fetch request payload: ",
|
|
B)}a={method:a.httpMethod||u||"POST",body:e,headers:f,credentials:a.credentials||p||"include",mode:a.mode||t||"cors"};var k=n.fetch(d,a).catch(function(a){l("e","Failed to send fetch request: ",a)});l("i","Sending fetch message: ",d,a)}return k}var k={e:"error",le:"error",w:"warn",lw:"warn",i:"log"},f=a.config||{},w=f["ServiceWorker.Entities.Tag"],u=f["ServiceWorker.HTTP.Method"],p=f["ServiceWorker.HTTP.Credentials"],t=f["ServiceWorker.HTTP.Mode"],q=f["ServiceWorker.HTTP.Content-Type"],v=f["ServiceWorker.HTTP.AllHeaders"],
|
|
d=a.global||{},n=d.self,g=d.console;d=a.on;var x=a("Errors");n&&(a.isSW=!0,d(n,"message",function(a){if(a){var d=a.data||{},c=d._messageType;if("fetch"===c)var e=m(d);else if("fetch-check"===c)e=r(a,d,c);else if("config"===c){c=d.config;d=d.replace;if(c){if(d)f=c;else for(var g in c)c.hasOwnProperty(g)&&(f[g]=c[g]);l("i","Config updated: ",f)}e=void 0}else c&&l("le","Unknown event type:",c);e&&b(a.waitUntil)&&a.waitUntil(e)}}),d(n,"install",function(a){a&&b(a.waitUntil)&&b(n.skipWaiting)&&a.waitUntil(n.skipWaiting)}),
|
|
d(n,"activate",function(a){a&&b(a.waitUntil)&&n.clients&&b(n.clients.claim)&&a.waitUntil(n.clients.claim())}),a.register("ServiceWorker",{fetch:m}))});csa.plugin(function(a){function b(a){J=function(b,c,e){if(b.post&&(b=b.post(c))){b._messageType="fetch";if(d)n("fetch",b);else if(a)a.postMessage(b);else return 0;e();return 1}return 0}}function c(a,c){B(a,"message",function(a){(a=((a||{}).data||{}).message)&&"fetch-check"===a._messageType&&a.success&&b(c)});c.postMessage({_messageType:"fetch-check"})}
|
|
function h(){var a=A&&A.serviceWorker;if(a){var b=a.controller;b?c(a,b):(B(a,"controllerchange",function(){var b=a.controller;b&&c(a,b)}),q&&a.register(q))}}function l(b){(a.store()||[]).forEach(function(c){if(0===c.indexOf("csa.cajun."))try{var d=a.store(c);a.deleteStored(c);JSON.parse(d).forEach(b)}catch(M){a.error(M)}})}function r(b){if(864E5<a.time()-+new Date(b.timestamp))return a.warn("Event is too old: "+b);x<p&&(b.messageId in g||(g[b.messageId]=b,x++),"function"===typeof b.__merge&&b.__merge(g[b.messageId]),
|
|
!H&&u&&(b=C,C=Math.min(b*K,L),H=y(m,b)))}function m(){e.forEach(function(a){var b=[];F(g).forEach(function(c){c=g[c];a.accepts(c)&&b.push(c)});b.length&&(a.chunks?a.chunks(b).forEach(function(b){k(a,b)}):k(a,b))});g={};H=0}function k(b,c){var d=a.UUID(),e=function(){a.deleteStored("csa.cajun."+d)};a.store("csa.cajun."+d,JSON.stringify(c));[J,f,w].some(function(a){try{return a(b,c,e)}catch(N){}})}function f(a,b,c){var d=z.navigator||{},e=z.cordova||{};if(!d.sendBeacon||!a.post)return 0;a.preflight&&
|
|
e&&"ios"===e.platformId&&!D&&((new Image).src=a.preflight().url,D=1);a=a.post(b);if(!a.type&&d.sendBeacon(a.url,a.body))return c(),1}function w(b,c,d){function e(a,b,c){k.open("POST",a);k.withCredentials=!0;c&&k.setRequestHeader("Content-Type",c);k.send(b)}if(!b.post)return 0;b=b.post(c);var g=b.url,f=b.body,h=b.type,k=new XMLHttpRequest,l=0;k.onload=function(){299>k.status?d():a.config["Transport.XHRRetries"]&&3>l&&(l++,y(function(){e(g,f,h)},l*t))};e(g,f,h);return 1}var u=0,p=a.config["Transport.BufferSize"]||
|
|
2E3,t=a.config["Transport.RetryDelay"]||1500,q=a.config["Transport.ServiceWorker.JSCodePath"],v=a.config["Transport.ServiceWorker.Enabled"],d=a.isSW,n=a("ServiceWorker"),g={},x=0,e=[],D,z=a.global,A=z.navigator,G=z.document,y=a.timeout,B=a.on,E=a.once,F=z.Object.keys,I=a.config["Transport.FlushInterval"]||5E3,C=I,K=a.config["Transport.FlushInterval.BackoffFactor"]||1,L=a.config["Transport.FlushInterval.BackoffLimit"]||3E4,H=0,J=a.blank;F&&(d?b():v&&h(),E("$afterload",function(){u=1;l(r);B(G,"visibilitychange",
|
|
m,!1);m()}),E("$afterunload",function(){u=1;m()}),B("$afterPageTransition",function(){x=0;C=I}),a.register("Transport",{log:r,register:function(a){e.push(a)}}))});csa.plugin(function(a){var b=a.config["Events.SushiEndpoint"];a("Transport")("register",{accepts:function(a){return a.schemaId},post:function(a){a=a.map(function(a){return{data:a}});return{url:b,body:JSON.stringify({events:a})}},preflight:function(){var a=/\/\/(.*?)\//.exec(b),h;a&&a[1]&&(h="https://"+a[1]+"/ping");return{url:h}},chunks:function(a){for(var b=
|
|
[];500<a.length;)b.push(a.splice(0,500));b.push(a);return b}})});csa.plugin(function(a){function b(b){function l(){u=a.UUID();p=a.UUID();t={}}var m=b.producerId,k=b.logger,f=k||a("Events",{producerId:m,lob:c.lob||"0"}),w=(b||{}).dimensions||{},u,p,t={},q=-1;if(!m&&!k)return a.error("Either a producer id or custom logger must be defined");this.recordMetric=function(a,c){var d=b.logOptions||{ent:{page:["pageType","subPageType","requestId"]}};d.debugMetric=b.debugMetric;q!==h&&(l(),q=h);f("log",{messageId:u,
|
|
schemaId:b.schemaId||"\x3cns\x3e.Metric.4",metrics:{},dimensions:w,__merge:function(b){b.metrics[a]=c}},d)};this.recordCounter=function(c,d){var k=b.logOptions||{ent:{page:["pageType","subPageType","requestId"]}};if("string"!=typeof c||"number"!=typeof d||!isFinite(d))return a.error("Invalid type given for counter name or counter value: "+c+"/"+d);q!==h&&(l(),q=h);c in t||(t[c]={});var g=t[c];"f"in g||(g.f=d);g.c=(g.c||0)+1;g.s=(g.s||0)+d;g.l=d;f("log",{messageId:p,schemaId:b.schemaId||"\x3cns\x3e.InternalCounters.3",
|
|
c:{},__merge:function(a){c in a.c||(a.c[c]={});g.fs||(g.fs=1,a.c[c].f=g.f);1<g.c&&(a.c[c].s=g.s,a.c[c].l=g.l,a.c[c].c=g.c)}},k)}}var c=a.config,h=0;c["KillSwitch.Metrics"]||((new b({producerId:"csa"})).recordMetric("baselineMetricEvent",1),a.on("$beforePageTransition",function(){h++}),a.register("Metrics",{instance:function(a){return new b(a||{})}}))});csa.plugin(function(a){function b(){m+=1}function c(b){b=b||{};var c=a.UUID(),k=m,l=b.producerId,p=b.logger,t=p||a("Events",{producerId:l,lob:h.lob||
|
|
"0"});if(!l&&!p)return a.error("Either a producer id or custom logger must be defined");this.mark=function(f,h){var d=("undefined"===typeof h?a.time():h)-r;k!==m&&(k=m,c=a.UUID());t("log",{messageId:c,schemaId:b.schemaId||"\x3cns\x3e.Timer.1",markers:{},__merge:function(a){a.markers[f]=d}},b.logOptions)}}var h=a.config,l=(a.global.performance||{}).timing,r=(l||{}).navigationStart||a.time(),m=0;l&&(b(),a.on("$beforePageTransition",b),a.register("Timers",{instance:function(a){return new c(a||{})}}))});
|
|
csa.plugin(function(a){a.emit("$afterload")})})();var AUI_JS_DEBUG=!1;
|
|
(function(K){var L=this&&this.__spreadArray||function(d,b,a){if(a||2===arguments.length)for(var c=0,e=b.length,h;c<e;c++)!h&&c in b||(h||(h=Array.prototype.slice.call(b,0,c)),h[c]=b[c]);return d.concat(h||Array.prototype.slice.call(b))},M=function(d,b,a){for(var c=[],e=3;e<arguments.length;e++)c[e-3]=arguments[e];B.isDebugVerbose&&console.debug.apply(console,L(["%cServiceWorkerMetric%c%c".concat(d,"%c%c").concat(b,"%c ").concat(a),"background-color: #3333ff; color: #FFFFFF; padding: 5px","color: auto",
|
|
"background-color: #77ACA2; color: #FFFFFF; padding: 5px","color: auto","background-color: #F5F3BB; padding: 5px","color: auto"],c,!1))},N=Date.now(),l=function(d){setTimeout(d,0)},x=function(d,b,a,c){d.push(b);b="function"===typeof c;for(a=Math.max(a,0);d.length>a;){var e=d.shift();b&&c(e)}},v;(function(d){d.format=function(b){return"".concat("Telemetry",":SW:").concat(b).toLowerCase()}})(v||(v={}));var m;(function(d){d.isObject=function(b){return!!b&&"object"===typeof b&&!Array.isArray(b)};d.isNonEmptyString=
|
|
function(b){return"string"===typeof b&&0<b.length};d.matchesPattern=function(b,a){return"string"===typeof b&&a.test(b)};d.isAsciiString=function(b){return"string"===typeof b&&/^[\x00-\x7F]*$/.test(b)}})(m||(m={}));var O=this&&this.__spreadArray||function(d,b,a){if(a||2===arguments.length)for(var c=0,e=b.length,h;c<e;c++)!h&&c in b||(h||(h=Array.prototype.slice.call(b,0,c)),h[c]=b[c]);return d.concat(h||Array.prototype.slice.call(b))},n=function(){function d(){}d.prototype.print=function(b,a){for(var c=
|
|
[],e=2;e<arguments.length;e++)c[e-2]=arguments[e];M.apply(void 0,O([this.constructor.name,b,a],c,!1))};d.prototype.printCtor=function(b){this.print("constructor","\x3c\x3c\x3c %o",b)};return d}(),B;(function(d){d.isDebug=AUI_JS_DEBUG;d.isDebugVerbose=d.isDebug&&!1})(B||(B={}));var P=this&&this.__extends||function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=
|
|
b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),D=function(d){function b(a,b,e,h){b=d.call(this,b||a)||this;b.name="Telemetry".concat(a,"Error");b.attribution=e||"AmazonServiceWorkerTelemetryClientLib";b.logLevel=h;return b}P(b,d);return b}(Error),r;(function(d){d.create=
|
|
function(b,a,c,e){return new D(b.toString(),a,c,e)}})(r||(r={}));var z;(function(d){d.USER_DENIED_PERMISSION=/The user denied permission to use Service Worker/i;d.SERVICE_WORKER_FETCH_API_FAILED=/^Failed to fetch$/i;d.NETWORK_ERROR=/network error/i})(z||(z={}));var C;(function(d){d.isNonCustomerImpactingError=function(b){var a;if(a=b instanceof Error||b instanceof ErrorEvent)b=b.message,a=m.matchesPattern(b,z.USER_DENIED_PERMISSION)||m.matchesPattern(b,z.SERVICE_WORKER_FETCH_API_FAILED)||m.matchesPattern(b,
|
|
z.NETWORK_ERROR);return a}})(C||(C={}));var Q=this&&this.__extends||function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(b,a);b.prototype=null===a?Object.create(a):
|
|
(c.prototype=a.prototype,new c)}}(),E=function(d){function b(a,b,e){var c=d.call(this)||this;c._swGlobal=a;c._messageCommand=b;c._clientMessageHandler=e;c._addClientMessageListener();return c}Q(b,d);b.prototype._addClientMessageListener=function(){var a=this;this._swGlobal.addEventListener("message",function(b){a._onMessageReceived(b)})};b.prototype._onMessageReceived=function(a){if(a.origin===this._swGlobal.location.origin){var b=a.source;b instanceof WindowClient&&(a=a.data,m.isObject(a)&&"retail_service_worker_messaging"===
|
|
a.feature&&a.command===this._messageCommand&&this._clientMessageHandler(a,b))}};return b}(n),R=this&&this.__extends||function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");
|
|
d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),S=function(d){function b(a){var b=d.call(this)||this;b._clientDataList=[];new E(a,"page_loaded",b._onClientLoaded.bind(b));return b}R(b,d);b.prototype.getRequestIDForClient=function(a){return(a=this.getClientDataForClient(a))?a.requestID:void 0};b.prototype.getSessionIDForClient=function(a){return(a=this.getClientDataForClient(a))?a.sessionID:void 0};b.prototype.getForesterURLForClient=function(a){return(a=this.getClientDataForClient(a))?
|
|
a.foresterURL:void 0};b.prototype.getClientDataForClient=function(a){for(var b,e=0;e<this._clientDataList.length;e++){var h=this._clientDataList[e];if(h.clientID===a){b=h;break}}return b};b.prototype._onClientLoaded=function(a,b){if(!a.data||!m.isNonEmptyString(a.data.rid))throw r.create("InvalidPostbackDataOnPageLoad","Incorrect postback data received on page load",void 0,"ERROR");this.print("processMessage","Page loaded message received from client ".concat(b.id),a);this._saveClientData(a.data,
|
|
b.id)};b.prototype._saveClientData=function(a,c){x(this._clientDataList,{clientID:c,requestID:a.rid,sessionID:a.sid,marketplaceID:a.mid,foresterURL:a.furl,pageType:a.pty,subPageType:a.spty},b._MAX_CLIENTS)};b._MAX_CLIENTS=50;return b}(n),T=this&&this.__extends||function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=
|
|
b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),t=this&&this.__awaiter||function(d,b,a,c){function e(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,g){function h(a){try{p(c.next(a))}catch(q){g(q)}}function k(a){try{p(c["throw"](a))}catch(q){g(q)}}function p(b){b.done?a(b.value):e(b.value).then(h,k)}p((c=
|
|
c.apply(d,b||[])).next())})},u=this&&this.__generator||function(d,b){function a(a){return function(b){return c([a,b])}}function c(a){if(h)throw new TypeError("Generator is already executing.");for(;e;)try{if(h=1,g&&(f=a[0]&2?g["return"]:a[0]?g["throw"]||((f=g["return"])&&f.call(g),0):g.next)&&!(f=f.call(g,a[1])).done)return f;if(g=0,f)a=[a[0]&2,f.value];switch(a[0]){case 0:case 1:f=a;break;case 4:return e.label++,{value:a[1],done:!1};case 5:e.label++;g=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();
|
|
continue;default:if(!(f=e.trys,f=0<f.length&&f[f.length-1])&&(6===a[0]||2===a[0])){e=0;continue}if(3===a[0]&&(!f||a[1]>f[0]&&a[1]<f[3]))e.label=a[1];else if(6===a[0]&&e.label<f[1])e.label=f[1],f=a;else if(f&&e.label<f[2])e.label=f[2],e.ops.push(a);else{f[2]&&e.ops.pop();e.trys.pop();continue}}a=b.call(d,e)}catch(w){a=[6,w],g=0}finally{h=f=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var e={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},h,g,f,k;return k=
|
|
{next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k},U=function(d){function b(a){var c=d.call(this)||this;c._swGlobal=a;c._clientReadyList=[];c._bufferedCounters=[];c._bufferedTags=[];c._bufferedWeblabTriggers=[];c._bufferedInternalCounters=[];new E(a,b._POSTBACK_MESSAGE_COMMAND,c._onClientReady.bind(c));return c}T(b,d);b.prototype.count=function(a,c,e){var h=this;void 0===c&&(c=1);l(function(){return t(h,void 0,void 0,function(){var h,
|
|
d;return u(this,function(f){switch(f.label){case 0:return e?[3,2]:[4,this._logCounterWithoutClient(a,c)];case 1:return f.sent(),[2];case 2:if(!this._isClientReady(e))return this._bufferCounter({clientID:e,name:a,value:c}),[2];f.label=3;case 3:return f.trys.push([3,5,,6]),[4,this._getClient(e)];case 4:return h=f.sent(),this._postMessage(h,{feature:b._POSTBACK_MESSAGE_FEATURE,command:b._MESSAGING_COMMAND_COUNTER,data:{name:a,value:c}}),[3,6];case 5:return d=f.sent(),this.countInternal(v.format(b._CLIENT_UNAVAILABLE_COUNTER)),
|
|
this.print("counter",d.message),[3,6];case 6:return[2]}})})})};b.prototype.countInternal=function(a,c){var e=this;void 0===c&&(c=1);l(function(){return t(e,void 0,void 0,function(){var e;return u(this,function(h){switch(h.label){case 0:return[4,this._getLastAvailableClient()];case 1:if(e=h.sent())return this._postMessage(e,{feature:b._POSTBACK_MESSAGE_FEATURE,command:b._MESSAGING_COMMAND_COUNTER,data:{name:a,value:c}}),[2];x(this._bufferedInternalCounters,{name:a,value:c},b._MAX_INTERNAL_COUNTERS);
|
|
return[2]}})})})};b.prototype.tag=function(a,c){var e=this;l(function(){return t(e,void 0,void 0,function(){var e,d;return u(this,function(h){switch(h.label){case 0:if(!this._isClientReady(c))return this._bufferTag({clientID:c,name:a}),[2];h.label=1;case 1:return h.trys.push([1,3,,4]),[4,this._getClient(c)];case 2:return e=h.sent(),this._postMessage(e,{feature:b._POSTBACK_MESSAGE_FEATURE,command:b._MESSAGING_COMMAND_TAG,data:{tag:a}}),[3,4];case 3:return d=h.sent(),this.countInternal(v.format(b._CLIENT_UNAVAILABLE_COUNTER),
|
|
1),this.print("tag",d.message),[3,4];case 4:return[2]}})})})};b.prototype.weblabTrigger=function(a,c,e){var h=this;l(function(){return t(h,void 0,void 0,function(){var h,d;return u(this,function(f){switch(f.label){case 0:if(!this._isClientReady(e))return this._bufferWeblabTrigger({clientID:e,name:a,treatment:c}),[2];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,this._getClient(e)];case 2:return h=f.sent(),this._postMessage(h,{feature:b._POSTBACK_MESSAGE_FEATURE,command:b._MESSAGING_COMMAND_WEBLAB_TRIGGER,
|
|
data:{weblab:a,treatment:c}}),[3,4];case 3:return d=f.sent(),this.countInternal(v.format(b._CLIENT_UNAVAILABLE_COUNTER)),this.print("weblabtrigger",d.message),[3,4];case 4:return[2]}})})})};b.prototype._isClientReady=function(a){return-1!==this._clientReadyList.indexOf(a)};b.prototype._onClientReady=function(a,c){this.print("processMessage","message ready event received from ".concat(c.id));x(this._clientReadyList,c.id,b._MAX_CLIENTS);this._flushMetricForClient(c)};b.prototype._flushMetricForClient=
|
|
function(a){var b=this;l(function(){b._drainBufferedCounter(a)});l(function(){b._drainBufferedTags(a)});l(function(){b._drainBufferedWeblabTriggers(a)});l(function(){b._drainBufferedInternalCounter(a)})};b.prototype._drainBufferedCounter=function(a){for(var c=this,e=[],h=a.id,d=function(d){var g=f._bufferedCounters[d];if(g.clientID&&h!==g.clientID)return e.push(g),"continue";l(function(){return t(c,void 0,void 0,function(){return u(this,function(c){this._postMessage(a,{feature:b._POSTBACK_MESSAGE_FEATURE,
|
|
command:b._MESSAGING_COMMAND_COUNTER,data:{name:g.name,value:g.value}});return[2]})})})},f=this,k=0;k<this._bufferedCounters.length;k++)d(k);this._bufferedCounters=e};b.prototype._drainBufferedTags=function(a){for(var c=this,e=[],h=a.id,d=function(d){var g=f._bufferedTags[d];if(h!==g.clientID)return e.push(g),"continue";l(function(){return t(c,void 0,void 0,function(){return u(this,function(c){this._postMessage(a,{feature:b._POSTBACK_MESSAGE_FEATURE,command:b._MESSAGING_COMMAND_TAG,data:{tag:g.name}});
|
|
return[2]})})})},f=this,k=0;k<this._bufferedTags.length;k++)d(k);this._bufferedTags=e};b.prototype._drainBufferedWeblabTriggers=function(a){for(var c=this,e=[],h=a.id,d=function(d){var g=f._bufferedWeblabTriggers[d];if(h!==g.clientID)return e.push(g),"continue";l(function(){return t(c,void 0,void 0,function(){return u(this,function(c){this._postMessage(a,{feature:b._POSTBACK_MESSAGE_FEATURE,command:b._MESSAGING_COMMAND_WEBLAB_TRIGGER,data:{weblab:g.name,treatment:g.treatment}});return[2]})})})},f=
|
|
this,k=0;k<this._bufferedWeblabTriggers.length;k++)d(k);this._bufferedWeblabTriggers=e};b.prototype._drainBufferedInternalCounter=function(a){for(var c=this,e=function(e){var h=d._bufferedInternalCounters[e];l(function(){return t(c,void 0,void 0,function(){return u(this,function(c){this._postMessage(a,{feature:b._POSTBACK_MESSAGE_FEATURE,command:b._MESSAGING_COMMAND_COUNTER,data:{name:h.name,value:h.value}});return[2]})})})},d=this,g=0;g<this._bufferedInternalCounters.length;g++)e(g);this._bufferedInternalCounters=
|
|
[]};b.prototype._bufferCounter=function(a){var c=this;x(this._bufferedCounters,a,b._MAX_COUNTERS,function(){c.countInternal(v.format("counter:buffer:overflow"))})};b.prototype._bufferTag=function(a){var c=this;x(this._bufferedTags,a,b._MAX_TAGS,function(){c.countInternal(v.format("tag:buffer:overflow"))})};b.prototype._bufferWeblabTrigger=function(a){var c=this;x(this._bufferedWeblabTriggers,a,b._MAX_WEBLAB_TRIGGERS,function(){c.countInternal(v.format("weblabTrigger:buffer:overflow"))})};b.prototype._postMessage=
|
|
function(a,b){a.postMessage(b)};b.prototype._logCounterWithoutClient=function(a,c){return t(this,void 0,void 0,function(){var e;return u(this,function(d){switch(d.label){case 0:return[4,this._getLastAvailableClient()];case 1:if(e=d.sent())return this._postMessage(e,{feature:b._POSTBACK_MESSAGE_FEATURE,command:b._MESSAGING_COMMAND_COUNTER,data:{name:a,value:c}}),[2];this._bufferCounter({clientID:void 0,name:a,value:c});return[2]}})})};b.prototype._getLastAvailableClient=function(){return t(this,void 0,
|
|
void 0,function(){var a,b,e,d;return u(this,function(c){switch(c.label){case 0:b=a=this._clientReadyList.length-1,c.label=1;case 1:if(!(0<=b))return[3,6];c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this._getClient(this._clientReadyList[b])];case 3:return(e=c.sent())?[2,e]:[3,5];case 4:return d=c.sent(),this.print("Looking for last available client",d.message),[3,5];case 5:return b--,[3,1];case 6:return[2]}})})};b.prototype._getClient=function(a){return t(this,void 0,void 0,function(){var b;return u(this,
|
|
function(c){switch(c.label){case 0:return[4,this._swGlobal.clients.get(a)];case 1:if(b=c.sent())return[2,b];throw r.create("ClientNotFound","Client ".concat(a," not found"));}})})};b._MAX_CLIENTS=50;b._MAX_COUNTERS=400;b._MAX_TAGS=100;b._MAX_WEBLAB_TRIGGERS=100;b._MAX_INTERNAL_COUNTERS=50;b._POSTBACK_MESSAGE_FEATURE="retail_service_worker_messaging";b._POSTBACK_MESSAGE_COMMAND="client_messaging_ready";b._MESSAGING_COMMAND_COUNTER="log_counter";b._MESSAGING_COMMAND_TAG="log_tag";b._MESSAGING_COMMAND_WEBLAB_TRIGGER=
|
|
"log_weblab_trigger";b._CLIENT_UNAVAILABLE_COUNTER="client:unavailable";return b}(n),V=this&&this.__extends||function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");
|
|
d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),W=function(d){function b(a){var b=d.call(this)||this;b._clientPostback=new U(a);b._clientDataProvider=new S(a);return b}V(b,d);b.prototype.getClientPostback=function(){return this._clientPostback};b.prototype.getClientDataProvider=function(){return this._clientDataProvider};return b}(n),X=this&&this.__extends||function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
|
|
b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),Y=this&&this.__awaiter||function(d,b,a,c){function e(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,
|
|
g){function h(a){try{p(c.next(a))}catch(q){g(q)}}function k(a){try{p(c["throw"](a))}catch(q){g(q)}}function p(b){b.done?a(b.value):e(b.value).then(h,k)}p((c=c.apply(d,b||[])).next())})},Z=this&&this.__generator||function(d,b){function a(a){return function(b){return c([a,b])}}function c(a){if(h)throw new TypeError("Generator is already executing.");for(;e;)try{if(h=1,g&&(f=a[0]&2?g["return"]:a[0]?g["throw"]||((f=g["return"])&&f.call(g),0):g.next)&&!(f=f.call(g,a[1])).done)return f;if(g=0,f)a=[a[0]&
|
|
2,f.value];switch(a[0]){case 0:case 1:f=a;break;case 4:return e.label++,{value:a[1],done:!1};case 5:e.label++;g=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(f=e.trys,f=0<f.length&&f[f.length-1])&&(6===a[0]||2===a[0])){e=0;continue}if(3===a[0]&&(!f||a[1]>f[0]&&a[1]<f[3]))e.label=a[1];else if(6===a[0]&&e.label<f[1])e.label=f[1],f=a;else if(f&&e.label<f[2])e.label=f[2],e.ops.push(a);else{f[2]&&e.ops.pop();e.trys.pop();continue}}a=b.call(d,e)}catch(w){a=[6,w],g=0}finally{h=
|
|
f=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var e={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},h,g,f,k;return k={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k},aa=function(d){function b(a,b,e){var c=d.call(this)||this;c._logQueue=[];c._retryCount=0;c.printCtor(arguments);c._config=a;c._requestContextProvider=b;c._foresterRequest=e;return c}X(b,d);b.prototype.log=function(a,b){var c=
|
|
this._requestContextProvider.getRequestID(b),d=this._requestContextProvider.getSessionID(b);a={r:c,s:d,m:this._config.marketplaceID,sn:this._config.siteName,c:this._config.channel,data:a};this.print("log","Forester log created",a);this._send([a],b)};b.prototype._send=function(a,b){var c=this,d=this._groupLogs(a);Object.keys(d).forEach(function(a){c.print("send","Sending data for group ".concat(a));void c._sendGroupedLog(d[a],b)})};b.prototype._groupLogs=function(a){var b={};a.forEach(function(a){var c=
|
|
a.r+a.s+a.m;b[c]||(b[c]=[]);b[c].push(a)});return b};b.prototype._sendGroupedLog=function(a,b){return Y(this,void 0,void 0,function(){var c,d,g,f;return Z(this,function(e){switch(e.label){case 0:c=this._createPayload(a),d=this._requestContextProvider.getForesterEndpoint(b),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this._foresterRequest.postLogs(d,c)];case 2:return e.sent(),this._clearLogQueue(),[3,4];case 3:return g=e.sent(),this.print("sendGroupLog","error log posting failed",g),(f=this._logQueue).push.apply(f,
|
|
a),void 0===this._flushTimeoutID&&this._scheduleRetry(),[3,4];case 4:return[2]}})})};b.prototype._createPayload=function(a){a=this._buildPostBodyLog(a);try{var b=JSON.stringify(a);if(a.reqs){var e={csmCount:{counter:"foresterPayloadSize",t:0,value:b.length}};e.csmCount.value+=JSON.stringify(e).length;a.reqs.push(e);this.print("createPayload","Payload generated",b);b=JSON.stringify(a)}return b}catch(h){throw new D("ForesterPayloadConversion","Error while converting forester log to payload: ".concat(h));
|
|
}};b.prototype._buildPostBodyLog=function(a){var b=[],e=a[0];a.forEach(function(a){var c={};c[a.c]=a.data;b.push(c)});return{rid:e.r,sid:e.s,mid:e.m,sn:e.sn,reqs:b}};b.prototype._clearLogQueue=function(){this._logQueue.length&&this._flushLogs();this._retryCount=0;this._clearFlushTimeout()};b.prototype._scheduleRetry=function(){var a=this;this._retryCount>=b.MAX_RETRY_COUNT||(this._flushTimeoutID=setTimeout(function(){a._flushLogs();a._clearFlushTimeout()},b.DEFAULT_FLUSH_TIMEOUT_MS*Math.pow(2,this._retryCount)),
|
|
this._retryCount++)};b.prototype._flushLogs=function(){var a=this;l(function(){a._logQueue.length&&a._send(a._logQueue.splice(0))})};b.prototype._clearFlushTimeout=function(){"number"===typeof this._flushTimeoutID&&clearTimeout(this._flushTimeoutID);this._flushTimeoutID=void 0};b.MAX_RETRY_COUNT=5;b.DEFAULT_FLUSH_TIMEOUT_MS=1E3;return b}(n),ba=this&&this.__extends||function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,
|
|
c)&&(a[c]=b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),F=this&&this.__awaiter||function(d,b,a,c){function e(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,g){function h(a){try{p(c.next(a))}catch(q){g(q)}}function k(a){try{p(c["throw"](a))}catch(q){g(q)}}
|
|
function p(b){b.done?a(b.value):e(b.value).then(h,k)}p((c=c.apply(d,b||[])).next())})},G=this&&this.__generator||function(d,b){function a(a){return function(b){return c([a,b])}}function c(a){if(h)throw new TypeError("Generator is already executing.");for(;e;)try{if(h=1,g&&(f=a[0]&2?g["return"]:a[0]?g["throw"]||((f=g["return"])&&f.call(g),0):g.next)&&!(f=f.call(g,a[1])).done)return f;if(g=0,f)a=[a[0]&2,f.value];switch(a[0]){case 0:case 1:f=a;break;case 4:return e.label++,{value:a[1],done:!1};case 5:e.label++;
|
|
g=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(f=e.trys,f=0<f.length&&f[f.length-1])&&(6===a[0]||2===a[0])){e=0;continue}if(3===a[0]&&(!f||a[1]>f[0]&&a[1]<f[3]))e.label=a[1];else if(6===a[0]&&e.label<f[1])e.label=f[1],f=a;else if(f&&e.label<f[2])e.label=f[2],e.ops.push(a);else{f[2]&&e.ops.pop();e.trys.pop();continue}}a=b.call(d,e)}catch(w){a=[6,w],g=0}finally{h=f=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var e={label:0,sent:function(){if(f[0]&1)throw f[1];
|
|
return f[1]},trys:[],ops:[]},h,g,f,k;return k={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k},ca=function(d){function b(){var a=d.call(this)||this;a.printCtor(arguments);return a}ba(b,d);b.prototype.triggerWeblab=function(a){return F(this,void 0,void 0,function(){var b,e;return G(this,function(c){switch(c.label){case 0:b=this._getWeblabTriggerOptions(),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,fetch(a,b)];case 2:return c.sent(),
|
|
this.print("triggerWeblab","Weblab triggered successfully"),[3,4];case 3:throw e=c.sent(),this.print("triggerWeblab","Weblab trigger failed",e),e;case 4:return[2]}})})};b.prototype.postLogs=function(a,b){return F(this,void 0,void 0,function(){var c,d,g;return G(this,function(e){switch(e.label){case 0:c=this._getPostbackURL(a),d=this._getRequestOptions(b),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,fetch(c,d)];case 2:return e.sent(),this.print("postLogs","Forester logs posted successfully"),[3,
|
|
4];case 3:throw g=e.sent(),this.print("postMetrics","Forester log request failed",g),g;case 4:return[2]}})})};b.prototype._getPostbackURL=function(a){return b.URL_ENDPOINT.replace("{{endpoint}}",a)};b.prototype._getRequestOptions=function(a){return{method:"POST",mode:"no-cors",credentials:"include",body:a}};b.prototype._getWeblabTriggerOptions=function(){return{method:"GET",mode:"no-cors",credentials:"include"}};b.URL_ENDPOINT="//{{endpoint}}/1/batch/1/OE/";return b}(n),da=this&&this.__extends||function(){var d=
|
|
function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),H=function(d){function b(){var a=d.call(this)||
|
|
this;a._syntheticRequestID=b._generateRequestID();return a}da(b,d);b._generateRequestID=function(){for(var a="RSW";20>a.length;)a+=Math.floor(9007199254740991*Math.random()).toString();return a.substring(0,20)};b.prototype.getSyntheticRequestID=function(){return this._syntheticRequestID};return b}(n),ea=this&&this.__extends||function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,
|
|
c)&&(a[c]=b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),fa=this&&this.__awaiter||function(d,b,a,c){function e(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,g){function f(a){try{p(c.next(a))}catch(q){g(q)}}function h(a){try{p(c["throw"](a))}catch(q){g(q)}}
|
|
function p(b){b.done?a(b.value):e(b.value).then(f,h)}p((c=c.apply(d,b||[])).next())})},ha=this&&this.__generator||function(d,b){function a(a){return function(b){return c([a,b])}}function c(a){if(h)throw new TypeError("Generator is already executing.");for(;e;)try{if(h=1,g&&(f=a[0]&2?g["return"]:a[0]?g["throw"]||((f=g["return"])&&f.call(g),0):g.next)&&!(f=f.call(g,a[1])).done)return f;if(g=0,f)a=[a[0]&2,f.value];switch(a[0]){case 0:case 1:f=a;break;case 4:return e.label++,{value:a[1],done:!1};case 5:e.label++;
|
|
g=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(f=e.trys,f=0<f.length&&f[f.length-1])&&(6===a[0]||2===a[0])){e=0;continue}if(3===a[0]&&(!f||a[1]>f[0]&&a[1]<f[3]))e.label=a[1];else if(6===a[0]&&e.label<f[1])e.label=f[1],f=a;else if(f&&e.label<f[2])e.label=f[2],e.ops.push(a);else{f[2]&&e.ops.pop();e.trys.pop();continue}}a=b.call(d,e)}catch(w){a=[6,w],g=0}finally{h=f=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var e={label:0,sent:function(){if(f[0]&1)throw f[1];
|
|
return f[1]},trys:[],ops:[]},h,g,f,k;return k={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k},I=function(d){function b(a){var c=d.call(this)||this;c.printCtor(arguments);c._swGlobal=a;void c._retrieveSessionIDFromCookieStore();c._syntheticSessionID=b._generateSyntheticSessionID();return c}ea(b,d);b._generateSyntheticSessionID=function(){for(var a="";14>a.length;)a+=Math.floor(9007199254740991*Math.random()).toString();return"000-".concat(a.substring(0,
|
|
7),"-").concat(a.substring(7,14))};b.prototype.getSessionID=function(){return this._cachedSessionID||this._syntheticSessionID};b.prototype._retrieveSessionIDFromCookieStore=function(){return fa(this,void 0,void 0,function(){var a,b;return ha(this,function(c){switch(c.label){case 0:if(!("cookieStore"in this._swGlobal&&"get"in this._swGlobal.cookieStore))return[2];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this._swGlobal.cookieStore.get("session-id")];case 2:return(a=c.sent())&&a.value&&(this._cacheSessionID(a.value),
|
|
this.print("retrieveSessionIDFromCookieStore","Retrieved session id from cookie store ".concat(this._cachedSessionID))),[3,4];case 3:return b=c.sent(),this.print("retrieveSessionIDFromCookieStore","Failed to retrieve cookie from cookie store",b),[3,4];case 4:return[2]}})})};b.prototype._cacheSessionID=function(a){a&&(this._cachedSessionID=a)};return b}(n),ia=this&&this.__extends||function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||
|
|
function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),ja=function(d){function b(a,b){var c=d.call(this)||this;c.printCtor(arguments);c._swGlobal=a;c._config=b;c._requestIDGenerator=new H;c._sessionIDProvider=
|
|
new I(c._swGlobal);return c}ia(b,d);b.prototype.getRequestID=function(a){return a&&a.requestID?a.requestID:this._requestIDGenerator.getSyntheticRequestID()};b.prototype.getSessionID=function(a){return a&&a.sessionID?a.sessionID:this._sessionIDProvider.getSessionID()};b.prototype.getForesterEndpoint=function(a){return a&&a.foresterURL?a.foresterURL:this._config.foresterEndpoint};return b}(n),ka=this&&this.__extends||function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
|
|
function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),la=function(d){function b(a,b,e,h){var c=d.call(this)||this;c._callCount=0;c.printCtor(arguments);c._swGlobal=a;c._config=
|
|
b;c._requestContextProvider=e;c._foresterRequest=h;c._startCallCounterResetTimer();return c}ka(b,d);b.prototype.trigger=function(a,c){a=this._getValidWeblab(a);!a.length||this._callCount>=b.MAX_CALLS_COUNT||(this._callCount++,this._recordTrigger(a,c),this._logThresholdReached())};b.prototype._logThresholdReached=function(){this._callCount===b.MAX_CALLS_COUNT&&this._swGlobal.$TM.error(r.create("WeblabTriggerThresholdReached"))};b.prototype._recordTrigger=function(a,c){var e=this,d="",g="";a.forEach(function(a){g+=
|
|
e._encodeTrigger(a);d=e._getForesterWeblabEndpoint(g,c);d.length>b.MAX_FORESTER_URL_LENGTH&&(e._flush(d),d=g="")});d&&this._flush(d)};b.prototype._flush=function(a){try{this._foresterRequest.triggerWeblab(a),this._swGlobal.$TM.count(v.format("".concat(b.FORESTER_CLIENT_MODULE,":SUCCESS")))}catch(c){this._swGlobal.$TM.count(v.format("".concat(b.FORESTER_CLIENT_MODULE,":FAILED")))}};b.prototype._getValidWeblab=function(a){return a.filter(function(a){var b=a.treatment;return m.isNonEmptyString(a.name)&&
|
|
m.isNonEmptyString(b)})};b.prototype._startCallCounterResetTimer=function(){var a=this;setInterval(function(){a._callCount=0},1E3*b.RESET_CALL_COUNT_SECONDS)};b.prototype._encodeTrigger=function(a){var b=a.treatment;return encodeURIComponent(",wl\x3d".concat(a.name,"/").concat(b))};b.prototype._getForesterWeblabEndpoint=function(a,c){var e=this._config.foresterEndpoint,d=this._config.marketplaceID,g=this._requestContextProvider.getSessionID();return"//".concat(e,"/1/remote-weblab-triggers/1/OE/")+
|
|
"".concat(d,":").concat(g,":").concat(c,"$s:")+"wl-client-id\x3d".concat(b.FORESTER_CLIENT_ID)+"".concat(a,":1234")};b.MAX_CALLS_COUNT=200;b.RESET_CALL_COUNT_SECONDS=60;b.MAX_FORESTER_URL_LENGTH=2E3;b.FORESTER_CLIENT_ID="CSMTrigger";b.FORESTER_CLIENT_MODULE="FORESTER-WEBLAB";return b}(n),ma=this&&this.__extends||function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&
|
|
(a[c]=b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),na=function(d){function b(a,b){var c=d.call(this)||this;c.printCtor(arguments);var h=new ja(a,b),g=new ca;c._foresterLogClient=new aa(b,h,g);c._foresterWeblabClient=new la(a,b,h,g);return c}ma(b,d);b.prototype.log=function(a,
|
|
b){this._foresterLogClient.log(a,b)};b.prototype.trigger=function(a,b){this._foresterWeblabClient.trigger(a,b)};return b}(n),oa=function(){function d(){this._timingFilterSignatures=[":arrived:",":flushed:",":pageshellstaleness","respond:before","respond:after"]}d.prototype.getFilterSignatures=function(){return this._timingFilterSignatures};return d}(),pa=function(){function d(){this._filterSignatures=[]}d.prototype.addFilter=function(b){var a;(a=this._filterSignatures).push.apply(a,b.getFilterSignatures())};
|
|
d.prototype.filter=function(b){return this._filterSignatures.some(function(a){return-1!==b.indexOf(a)})};return d}(),y;(function(d){d.Mshop="mshop";d.Mweb="mweb";d.Desktop="desktop"})(y||(y={}));var A;(function(d){d.INLatency="in-latency";d.CSA="csa"})(A||(A={}));var qa={producerId:A.INLatency,schemaId:"ServiceWorkerTelemetry.Counter.3"},ra={logOptions:{ent:"all"},producerId:A.CSA,schemaId:"csa.Error.6"},sa=function(){function d(b,a,c){this._swGlobal=b;this._clientConfig=a;this._metricFilter=c;this._deviceType=
|
|
this._resolveDeviceType();this._configureMetricFilter();this._requestIDGenerator=new H;this._sessionIDProvider=new I(this._swGlobal)}d.prototype.logJSError=function(b,a){csa("Events")("setEntity",this._getEntityValueForJSError(a));csa("Errors",ra)("log",b)};d.prototype.count=function(b,a){this._metricFilter.filter(b)||(b={schemaId:this._clientConfig.counterConfig.schemaId,deviceType:this._deviceType,counterName:b,counterValue:a.toString()},csa("Events",{producerId:this._clientConfig.counterConfig.producerId})("log",
|
|
b))};d.prototype._resolveDeviceType=function(){if(!this._swGlobal.$RuntimeConfig)return y.Desktop;var b=this._swGlobal.$RuntimeConfig.getDeviceProperties();return"mshop"===b.getAppType()?y.Mshop:"desktop"!==b.getDeviceType()?y.Mweb:y.Desktop};d.prototype._configureMetricFilter=function(){this._metricFilter.addFilter(new oa)};d.prototype._getEntityValueForJSError=function(b){var a={requestId:this._getRequestID(b)};b={id:this._getSessionID(b)};return{page:a,session:b}};d.prototype._getRequestID=function(b){return b&&
|
|
b.requestID?b.requestID:this._requestIDGenerator.getSyntheticRequestID()};d.prototype._getSessionID=function(b){return b&&b.sessionID?b.sessionID:this._sessionIDProvider.getSessionID()};return d}(),ta={counterConfig:qa},ua=function(){csa.plugin(function(d){var b=d.config;d=["Application","Events.SushiEndpoint","ObfuscatedMarketplaceId","lob"];if(!b||"object"!==typeof b||!d.every(function(a){return!!b[a]}))throw r.create("InvalidCSAConfiguration");})},va=/\(?([^\s]*):(\d+):(\d+)\)?/,wa=this&&this.__extends||
|
|
function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),xa=function(d){function b(a){var b=
|
|
d.call(this)||this;b.printCtor(arguments);b._defaultAttribution=a;return b}wa(b,d);b.prototype.generateErrorRecord=function(a,b,d,h){var c=this._getError(a),e=this._generateStackFrames(c);b={m:this._getErrorMessage(c),name:c.name,logLevel:this._getErrorLogLevel(c,b),attribution:this._getErrorAttribution(c,d),s:e,t:Date.now()-N};if(a=a instanceof ErrorEvent?this._getErrorLocationFromErrorEvent(a):this._getErrorLocationFromStackFrames(e))b.f=a.fileName,b.l=a.lineNumber,b.c=a.colNumber;h&&(b.cinfo=h);
|
|
return b};b.prototype._getError=function(a){return a instanceof ErrorEvent?a.error:a};b.prototype._generateStackFrames=function(a){var c=[];a=a.stack?a.stack.trim():"";if(!a)return c;a=a.split("\n");for(var d,h=0;h<a.length&&c.length<b.MAX_STACK_DEPTH;)(d=a[h++].trim())&&c.push(d);return c};b.prototype._getErrorMessage=function(a){return(a=a.message.trim())?a:"Unknown Error"};b.prototype._getErrorLogLevel=function(a,b){return b||a.logLevel||"FATAL"};b.prototype._getErrorAttribution=function(a,b){return b||
|
|
a.attribution||this._defaultAttribution};b.prototype._getErrorLocationFromErrorEvent=function(a){return{fileName:a.filename,lineNumber:String(a.lineno),colNumber:String(a.colno)}};b.prototype._getErrorLocationFromStackFrames=function(a){if((a=(1<a.length?a[1]:"").match(va))&&4===a.length)return{fileName:a[1],lineNumber:a[2],colNumber:a[3]}};b.MAX_STACK_DEPTH=20;return b}(n),ya=this&&this.__extends||function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,
|
|
b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),za=function(d){function b(a,b,e,h,g){var c=d.call(this)||this;c._errorCount=0;c.printCtor(arguments);c._swGlobal=a;c._foresterClient=
|
|
e;c._csaClient=g;c._foresterErrorRecordGenerator=new xa(b.attribution);c._clientDataProvider=h.getClientDataProvider();c._config=b;c._addGlobalErrorListener();c._startErrorCountResetTimer();return c}ya(b,d);b.prototype.record=function(a,b,d,h,g){this._isNotError(a)||this._hasErrorCountThresholdBreached()?this.print("record","ERROR NOT LOGGED. Received error is not valid or error threshold is breached."):(this._errorCount++,!b&&C.isNonCustomerImpactingError(a)&&(b="ERROR"),this._recordErrorForClient(a,
|
|
b,d,h,g),this._logThresholdReached())};b.prototype._addGlobalErrorListener=function(){var a=this;this._swGlobal.addEventListener("error",function(b){l(function(){a.print("globalErrorListener","error event captured",b);a.record(b)})});this._swGlobal.addEventListener("unhandledrejection",function(b){l(function(){b.reason instanceof Error&&(a.print("globalErrorListener","promise rejection error captured",b),a.record(b.reason))})})};b.prototype._startErrorCountResetTimer=function(){var a=this;setInterval(function(){a._errorCount=
|
|
0},1E3*b.RESET_ERROR_COUNT_SECONDS)};b.prototype._recordErrorForClient=function(a,b,d,h,g){if(g&&(g.clientID||g.requestID)){var c;g.clientID&&(c=this._clientDataProvider.getClientDataForClient(g.clientID));g.requestID&&(c?c.requestID=g.requestID:c={clientID:g.clientID||"",requestID:g.requestID});this._recordError(a,b,d,h,c)}else this._recordError(a,b,d,h)};b.prototype._recordError=function(a,b,d,h,g){a=this._foresterErrorRecordGenerator.generateErrorRecord(a,b,d,h);this.print("recordError","Generated error record",
|
|
a);this._csaClient.logJSError(this._generateCSAErrorRecord(a),g);this._logToConsole(a)};b.prototype._logThresholdReached=function(){this._errorCount===b.MAX_ERROR_COUNT&&this._recordError(r.create("ErrorRecordThresholdReached"))};b.prototype._isNotError=function(a){return!(a instanceof Error||a instanceof ErrorEvent)};b.prototype._hasErrorCountThresholdBreached=function(){return this._errorCount>=b.MAX_ERROR_COUNT};b.prototype._logToConsole=function(a){console.error("SW Telemetry trapped error %o",
|
|
a)};b.prototype._generateCSAErrorRecord=function(a){var b={attribution:a.attribution,c:a.c,f:a.f,l:a.l,logLevel:a.logLevel,m:a.m,pageURL:this._config.siteName,s:a.s};a.cinfo&&(b.cinfo={ErrorContext:a.cinfo});return b};b.MAX_ERROR_COUNT=50;b.RESET_ERROR_COUNT_SECONDS=60;return b}(n),Aa=this&&this.__extends||function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=
|
|
b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ba=function(d){function b(a,b,e){var c=d.call(this)||this;c._clientPostback=a.getClientPostback();c._csaClient=b;c._foresterClient=e;return c}Aa(b,d);b.prototype.count=function(a,b,d){void 0===b&&(b=1);this._clientPostback.count(a,
|
|
b,d);this._csaClient.count(a,b)};b.prototype.tag=function(a,b){this._clientPostback.tag(a,b)};b.prototype.mark=function(a,b,d){var c=performance.now();this._clientPostback.count(a,c-b,d)};b.prototype.triggerWeblab=function(a,b){var c=this;if(!m.isNonEmptyString(b))throw r.create("ClientIDMissing","Client id missing for triggering weblab via page");a.forEach(function(a){c._clientPostback.weblabTrigger(a.name,a.treatment,b)})};b.prototype.triggerWeblabFromWorker=function(a,b){if(!m.isNonEmptyString(b))throw r.create("RequestIDMissing",
|
|
"Request id missing for triggering weblab via page");this._foresterClient.trigger(a,b)};return b}(n),Ca=this&&this.__extends||function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");
|
|
d(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),Da=function(d){function b(a,b,e){var c=d.call(this)||this;c.printCtor(arguments);c._swGlobal=a;c._errorRecorder=b;c._metricRecorder=e;c._attachTelemetryToGlobalContext();return c}Ca(b,d);b.prototype.count=function(a,b,d){var c=this;if(!m.isAsciiString(a))throw r.create("NonASCIICharacters","Counter name contains non-ASCII characters ".concat(a));l(function(){var e=d&&m.isNonEmptyString(d.clientID)?d.clientID:void 0;c._metricRecorder.count(a,
|
|
b,e)})};b.prototype.tag=function(a,b){var c=this;if(!b||!m.isNonEmptyString(b.clientID))throw r.create("ClientIDMissing","Client id missing for tag ".concat(a));l(function(){c._metricRecorder.tag(a,b.clientID)})};b.prototype.trigger=function(a,b){var c=this;l(function(){var d=Array.isArray(a)?a:[a];b.requestID?c._metricRecorder.triggerWeblabFromWorker(d,b.requestID):c._metricRecorder.triggerWeblab(d,b.clientID)})};b.prototype.mark=function(a,b,d){var c=this;l(function(){var e=d&&m.isNonEmptyString(d.clientID)?
|
|
d.clientID:void 0;c._metricRecorder.mark(a,b,e)})};b.prototype.error=function(a,b,d,h,g){var c=this;l(function(){c._errorRecorder.record(a,b,d,h,g)})};b.prototype._attachTelemetryToGlobalContext=function(){this._swGlobal.$TM=this};return b}(n),J=!1,Ea=function(d){if(!d||"object"!==typeof d)throw r.create("InvalidForesterConfiguration");["channel","foresterEndpoint","marketplaceID","siteName","attribution"].forEach(function(b){b=d[b];if("string"!==typeof b||!b.length)throw r.create("InvalidForesterConfiguration");
|
|
})};K.init=function(d){if(J)throw r.create("DuplicateLibraryInitialization");Ea(d.foresterConfig);ua();var b=d.swGlobal||self,a=d.foresterConfig;d=new na(b,a);var c=new W(b),e=new pa;e=new sa(b,ta,e);a=new za(b,a,d,c,e);d=new Ba(c,e,d);new Da(b,a,d);J=!0}})(this.ServiceWorkerTelemetry=this.ServiceWorkerTelemetry||{});var AUI_JS_DEBUG=!1;
|
|
(function(c){var a=this&&this.__assign||function(){a=Object.assign||function(a){for(var b,d=1,c=arguments.length;d<c;d++){b=arguments[d];for(var e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e])}return a};return a.apply(this,arguments)},f=a({marketplaceID:"ATVPDKIKX0DER",foresterEndpoint:"fls-na.amazon.com"},{channel:"jserr-rw",attribution:"RetailServiceWorker",siteName:self.location.hostname});c.foresterConfig=f})(this.ServiceWorkerTelemetryConfiguration=this.ServiceWorkerTelemetryConfiguration||{});/*
|
|
|
|
diff
|
|
5.2.0 <https://github.com/kpdecker/jsdiff>
|
|
BSD 3-Clause License
|
|
|
|
Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com>
|
|
All rights reserved.
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
|
modification, are permitted provided that the following conditions are met:
|
|
|
|
1. Redistributions of source code must retain the above copyright notice, this
|
|
list of conditions and the following disclaimer.
|
|
|
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
this list of conditions and the following disclaimer in the documentation
|
|
and/or other materials provided with the distribution.
|
|
|
|
3. Neither the name of the copyright holder nor the names of its
|
|
contributors may be used to endorse or promote products derived from
|
|
this software without specific prior written permission.
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
*****************************
|
|
|
|
diff-match-patch
|
|
1.0.5 <https://github.com/JackuB/diff-match-patch>
|
|
|
|
Apache License
|
|
Version 2.0, January 2004
|
|
http://www.apache.org/licenses/
|
|
|
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
|
|
1. Definitions.
|
|
|
|
"License" shall mean the terms and conditions for use, reproduction,
|
|
and distribution as defined by Sections 1 through 9 of this document.
|
|
|
|
"Licensor" shall mean the copyright owner or entity authorized by
|
|
the copyright owner that is granting the License.
|
|
|
|
"Legal Entity" shall mean the union of the acting entity and all
|
|
other entities that control, are controlled by, or are under common
|
|
control with that entity. For the purposes of this definition,
|
|
"control" means (i) the power, direct or indirect, to cause the
|
|
direction or management of such entity, whether by contract or
|
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
|
|
"You" (or "Your") shall mean an individual or Legal Entity
|
|
exercising permissions granted by this License.
|
|
|
|
"Source" form shall mean the preferred form for making modifications,
|
|
including but not limited to software source code, documentation
|
|
source, and configuration files.
|
|
|
|
"Object" form shall mean any form resulting from mechanical
|
|
transformation or translation of a Source form, including but
|
|
not limited to compiled object code, generated documentation,
|
|
and conversions to other media types.
|
|
|
|
"Work" shall mean the work of authorship, whether in Source or
|
|
Object form, made available under the License, as indicated by a
|
|
copyright notice that is included in or attached to the work
|
|
(an example is provided in the Appendix below).
|
|
|
|
"Derivative Works" shall mean any work, whether in Source or Object
|
|
form, that is based on (or derived from) the Work and for which the
|
|
editorial revisions, annotations, elaborations, or other modifications
|
|
represent, as a whole, an original work of authorship. For the purposes
|
|
of this License, Derivative Works shall not include works that remain
|
|
separable from, or merely link (or bind by name) to the interfaces of,
|
|
the Work and Derivative Works thereof.
|
|
|
|
"Contribution" shall mean any work of authorship, including
|
|
the original version of the Work and any modifications or additions
|
|
to that Work or Derivative Works thereof, that is intentionally
|
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
or by an individual or Legal Entity authorized to submit on behalf of
|
|
the copyright owner. For the purposes of this definition, "submitted"
|
|
means any form of electronic, verbal, or written communication sent
|
|
to the Licensor or its representatives, including but not limited to
|
|
communication on electronic mailing lists, source code control systems,
|
|
and issue tracking systems that are managed by, or on behalf of, the
|
|
Licensor for the purpose of discussing and improving the Work, but
|
|
excluding communication that is conspicuously marked or otherwise
|
|
designated in writing by the copyright owner as "Not a Contribution."
|
|
|
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
on behalf of whom a Contribution has been received by Licensor and
|
|
subsequently incorporated within the Work.
|
|
|
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
this License, each Contributor hereby grants to You a perpetual,
|
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
copyright license to reproduce, prepare Derivative Works of,
|
|
publicly display, publicly perform, sublicense, and distribute the
|
|
Work and such Derivative Works in Source or Object form.
|
|
|
|
3. Grant of Patent License. Subject to the terms and conditions of
|
|
this License, each Contributor hereby grants to You a perpetual,
|
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
(except as stated in this section) patent license to make, have made,
|
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
where such license applies only to those patent claims licensable
|
|
by such Contributor that are necessarily infringed by their
|
|
Contribution(s) alone or by combination of their Contribution(s)
|
|
with the Work to which such Contribution(s) was submitted. If You
|
|
institute patent litigation against any entity (including a
|
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
or a Contribution incorporated within the Work constitutes direct
|
|
or contributory patent infringement, then any patent licenses
|
|
granted to You under this License for that Work shall terminate
|
|
as of the date such litigation is filed.
|
|
|
|
4. Redistribution. You may reproduce and distribute copies of the
|
|
Work or Derivative Works thereof in any medium, with or without
|
|
modifications, and in Source or Object form, provided that You
|
|
meet the following conditions:
|
|
|
|
(a) You must give any other recipients of the Work or
|
|
Derivative Works a copy of this License; and
|
|
|
|
(b) You must cause any modified files to carry prominent notices
|
|
stating that You changed the files; and
|
|
|
|
(c) You must retain, in the Source form of any Derivative Works
|
|
that You distribute, all copyright, patent, trademark, and
|
|
attribution notices from the Source form of the Work,
|
|
excluding those notices that do not pertain to any part of
|
|
the Derivative Works; and
|
|
|
|
(d) If the Work includes a "NOTICE" text file as part of its
|
|
distribution, then any Derivative Works that You distribute must
|
|
include a readable copy of the attribution notices contained
|
|
within such NOTICE file, excluding those notices that do not
|
|
pertain to any part of the Derivative Works, in at least one
|
|
of the following places: within a NOTICE text file distributed
|
|
as part of the Derivative Works; within the Source form or
|
|
documentation, if provided along with the Derivative Works; or,
|
|
within a display generated by the Derivative Works, if and
|
|
wherever such third-party notices normally appear. The contents
|
|
of the NOTICE file are for informational purposes only and
|
|
do not modify the License. You may add Your own attribution
|
|
notices within Derivative Works that You distribute, alongside
|
|
or as an addendum to the NOTICE text from the Work, provided
|
|
that such additional attribution notices cannot be construed
|
|
as modifying the License.
|
|
|
|
You may add Your own copyright statement to Your modifications and
|
|
may provide additional or different license terms and conditions
|
|
for use, reproduction, or distribution of Your modifications, or
|
|
for any such Derivative Works as a whole, provided Your use,
|
|
reproduction, and distribution of the Work otherwise complies with
|
|
the conditions stated in this License.
|
|
|
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
any Contribution intentionally submitted for inclusion in the Work
|
|
by You to the Licensor shall be under the terms and conditions of
|
|
this License, without any additional terms or conditions.
|
|
Notwithstanding the above, nothing herein shall supersede or modify
|
|
the terms of any separate license agreement you may have executed
|
|
with Licensor regarding such Contributions.
|
|
|
|
6. Trademarks. This License does not grant permission to use the trade
|
|
names, trademarks, service marks, or product names of the Licensor,
|
|
except as required for reasonable and customary use in describing the
|
|
origin of the Work and reproducing the content of the NOTICE file.
|
|
|
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
agreed to in writing, Licensor provides the Work (and each
|
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
implied, including, without limitation, any warranties or conditions
|
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
appropriateness of using or redistributing the Work and assume any
|
|
risks associated with Your exercise of permissions under this License.
|
|
|
|
8. Limitation of Liability. In no event and under no legal theory,
|
|
whether in tort (including negligence), contract, or otherwise,
|
|
unless required by applicable law (such as deliberate and grossly
|
|
negligent acts) or agreed to in writing, shall any Contributor be
|
|
liable to You for damages, including any direct, indirect, special,
|
|
incidental, or consequential damages of any character arising as a
|
|
result of this License or out of the use or inability to use the
|
|
Work (including but not limited to damages for loss of goodwill,
|
|
work stoppage, computer failure or malfunction, or any and all
|
|
other commercial damages or losses), even if such Contributor
|
|
has been advised of the possibility of such damages.
|
|
|
|
9. Accepting Warranty or Additional Liability. While redistributing
|
|
the Work or Derivative Works thereof, You may choose to offer,
|
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
or other liability obligations and/or rights consistent with this
|
|
License. However, in accepting such obligations, You may act only
|
|
on Your own behalf and on Your sole responsibility, not on behalf
|
|
of any other Contributor, and only if You agree to indemnify,
|
|
defend, and hold each Contributor harmless for any liability
|
|
incurred by, or claims asserted against, such Contributor by reason
|
|
of your accepting any such warranty or additional liability.
|
|
|
|
END OF TERMS AND CONDITIONS
|
|
|
|
APPENDIX: How to apply the Apache License to your work.
|
|
|
|
To apply the Apache License to your work, attach the following
|
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
replaced with your own identifying information. (Don't include
|
|
the brackets!) The text should be enclosed in the appropriate
|
|
comment syntax for the file format. We also recommend that a
|
|
file or class name and description of purpose be included on the
|
|
same "printed page" as the copyright notice for easier
|
|
identification within third-party archives.
|
|
|
|
Copyright [yyyy] [name of copyright owner]
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.*/
|
|
var ThirdPartyLibs=function(S){function Y(a){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Y(a)}function T(a,b,c,d,e){var f;b=b||[];c=c||[];d&&(a=d(e,a));for(f=0;f<b.length;f+=1)if(b[f]===a)return c[f];if("[object Array]"===Ga.call(a)){b.push(a);var g=Array(a.length);c.push(g);for(f=0;f<a.length;f+=1)g[f]=T(a[f],b,c,d,e);return b.pop(),
|
|
c.pop(),g}if(a&&a.toJSON&&(a=a.toJSON()),"object"===Y(a)&&null!==a){b.push(a);g={};c.push(g);var h;e=[];for(h in a)a.hasOwnProperty(h)&&e.push(h);e.sort();for(f=0;f<e.length;f+=1)g[h=e[f]]=T(a[h],b,c,d,h);b.pop();c.pop()}else g=a;return g}function ma(a,b){function c(a,b){for(var c=0;c<a.lines.length;c++){var d=a.lines[c],e=0<d.length?d[0]:" ";d=0<d.length?d.substr(1):d;if(" "===e||"-"===e){if(!q(b+1,g[b],e,d)&&++m>l)return!1;b++}}return!0}var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:
|
|
{};if("string"==typeof b&&(b=(0,na.parsePatch)(b)),Array.isArray(b)){if(1<b.length)throw Error("applyPatch only works with a single input.");b=b[0]}for(var e,f,g=a.split(/\r\n|[\n\v\f\r\x85]/),h=a.match(/\r\n|[\n\v\f\r\x85]/g)||[],k=b.hunks,q=d.compareLine||function(a,b,c,d){return b===d},m=0,l=d.fuzzFactor||0,n=0,u=d=0;u<k.length;u++){var r=k[u],v=g.length-r.oldLines,t=0,w=d+r.oldStart-1;for(n=(0,Ha.default)(w,n,v);void 0!==t;t=n())if(c(r,w+t)){r.offset=d+=t;break}if(void 0===t)return!1;n=r.offset+
|
|
r.oldStart+r.oldLines}for(u=d=0;u<k.length;u++)for(r=k[u],t=r.oldStart+r.offset+d-1,d+=r.newLines-r.oldLines,w=0;w<r.lines.length;w++){v=r.lines[w];n=0<v.length?v[0]:" ";v=0<v.length?v.substr(1):v;var p=r.linedelimiters&&r.linedelimiters[w]||"\n";" "===n?t++:"-"===n?(g.splice(t,1),h.splice(t,1)):"+"===n?(g.splice(t,0,v),h.splice(t,0,p),t++):"\\"===n&&(n=r.lines[w-1]?r.lines[w-1][0]:null,"+"===n?e=!0:"-"===n&&(f=!0))}if(e)for(;!g[g.length-1];)g.pop(),h.pop();else f&&(g.push(""),h.push("\n"));for(e=
|
|
0;e<g.length-1;e++)g[e]+=h[e];return g.join("")}function Z(a){var b;(b=function(a){if(Array.isArray(a))return aa(a)}(a))||(b="undefined"!=typeof Symbol&&Symbol.iterator in Object(a)?Array.from(a):void 0);if(!(a=b||function(a,b){if(a){if("string"==typeof a)return aa(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);"Object"===c&&a.constructor&&(c=a.constructor.name);if("Map"===c||"Set"===c)return Array.from(a);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return aa(a,
|
|
b)}}(a)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return a}function aa(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}function oa(a,b,c,d,e,f,g){function h(a){return a.map(function(a){return" "+a})}g||(g={});void 0===g.context&&(g.context=4);var k=(0,Ia.diffLines)(c,d,g);if(k){k.push({value:"",lines:[]});for(var q=[],m=0,l=0,n=[],u=1,r=1,v=
|
|
function(a){var b=k[a],e=b.lines||b.value.replace(/\n$/,"").split("\n");if(b.lines=e,b.added||b.removed){var f;m||(a=k[a-1],m=u,l=r,a&&(n=0<g.context?h(a.lines.slice(-g.context)):[],m-=n.length,l-=n.length));(f=n).push.apply(f,Z(e.map(function(a){return(b.added?"+":"-")+a})));b.added?r+=e.length:u+=e.length}else{if(m)if(e.length<=2*g.context&&a<k.length-2){var x;(x=n).push.apply(x,Z(h(e)))}else{var t;f=Math.min(e.length,g.context);(t=n).push.apply(t,Z(h(e.slice(0,f))));f={oldStart:m,oldLines:u-m+
|
|
f,newStart:l,newLines:r-l+f,lines:n};a>=k.length-2&&e.length<=g.context&&(a=/\n$/.test(c),t=/\n$/.test(d),x=0==e.length&&n.length>f.oldLines,!a&&x&&0<c.length&&n.splice(f.oldLines,0,"\\ No newline at end of file"),(a||x)&&t||n.push("\\ No newline at end of file"));q.push(f);l=m=0;n=[]}u+=e.length;r+=e.length}},t=0;t<k.length;t++)v(t);return{oldFileName:a,newFileName:b,oldHeader:e,newHeader:f,hunks:q}}}function ba(a){if(Array.isArray(a))return a.map(ba).join("\n");var b=[];a.oldFileName==a.newFileName&&
|
|
b.push("Index: "+a.oldFileName);b.push("\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d");b.push("--- "+a.oldFileName+(void 0===a.oldHeader?"":"\t"+a.oldHeader));b.push("+++ "+a.newFileName+(void 0===a.newHeader?"":"\t"+a.newHeader));for(var c=0;c<a.hunks.length;c++){var d=a.hunks[c];
|
|
0===d.oldLines&&--d.oldStart;0===d.newLines&&--d.newStart;b.push("@@ -"+d.oldStart+","+d.oldLines+" +"+d.newStart+","+d.newLines+" @@");b.push.apply(b,d.lines)}return b.join("\n")+"\n"}function pa(a,b,c,d,e,f,g){return ba(oa(a,b,c,d,e,f,g))}function qa(a,b){if(b.length>a.length)return!1;for(var c=0;c<b.length;c++)if(b[c]!==a[c])return!1;return!0}function H(a){var b;(b=function(a){if(Array.isArray(a))return ca(a)}(a))||(b="undefined"!=typeof Symbol&&Symbol.iterator in Object(a)?Array.from(a):void 0);
|
|
if(!(a=b||function(a,b){if(a){if("string"==typeof a)return ca(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);"Object"===c&&a.constructor&&(c=a.constructor.name);if("Map"===c||"Set"===c)return Array.from(a);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return ca(a,b)}}(a)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return a}function ca(a,b){(null==b||b>
|
|
a.length)&&(b=a.length);for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}function ra(a){var b=da(a.lines),c=b.oldLines;b=b.newLines;void 0!==c?a.oldLines=c:delete a.oldLines;void 0!==b?a.newLines=b:delete a.newLines}function sa(a,b){if("string"==typeof a){if(/^@@/m.test(a)||/^Index:/m.test(a))return(0,Ja.parsePatch)(a)[0];if(!b)throw Error("Must provide a base reference or pass in a patch");return(0,Ka.structuredPatch)(void 0,void 0,b,a)}return a}function U(a,b,c){return b===c?b:(a.conflict=!0,{mine:b,
|
|
theirs:c})}function ta(a,b){return{oldStart:a.oldStart,oldLines:a.oldLines,newStart:a.newStart+b,newLines:a.newLines,lines:a.lines}}function ua(a,b,c,d){var e;b=D(b);for(var f=[],g=[],h=0,k=!1,q=!1;h<b.length&&c.index<c.lines.length;){var m=c.lines[c.index],l=b[h];if("+"===l[0])break;if(k=k||" "!==m[0],g.push(l),h++,"+"===m[0])for(q=!0;"+"===m[0];)f.push(m),m=c.lines[++c.index];l.substr(1)===m.substr(1)?(f.push(m),c.index++):q=!0}"+"===(b[h]||"")[0]&&k&&(q=!0);if(q)c=f;else{for(;h<b.length;)g.push(b[h++]);
|
|
c={merged:g,changes:f}}c.merged?(e=a.lines).push.apply(e,H(c.merged)):ea(a,d?c:b,d?b:c)}function ea(a,b,c){a.conflict=!0;a.lines.push({conflict:!0,mine:b,theirs:c})}function va(a,b,c){for(;b.offset<c.offset&&b.index<b.lines.length;){var d=b.lines[b.index++];a.lines.push(d);b.offset++}}function wa(a,b){for(;b.index<b.lines.length;){var c=b.lines[b.index++];a.lines.push(c)}}function D(a){for(var b=[],c=a.lines[a.index][0];a.index<a.lines.length;){var d=a.lines[a.index];if("-"===c&&"+"===d[0]&&(c="+"),
|
|
c!==d[0])break;b.push(d);a.index++}return b}function xa(a){return a.reduce(function(a,c){return a&&"-"===c[0]},!0)}function ya(a,b,c){for(var d=0;d<c;d++){var e=b[b.length-c+d].substr(1);if(a.lines[a.index+d]!==" "+e)return!1}return a.index+=c,!0}function da(a){var b=0,c=0;return a.forEach(function(a){if("string"!=typeof a){var d=da(a.mine);a=da(a.theirs);void 0!==b&&(d.oldLines===a.oldLines?b+=d.oldLines:b=void 0);void 0!==c&&(d.newLines===a.newLines?c+=d.newLines:c=void 0)}else void 0===c||"+"!==
|
|
a[0]&&" "!==a[0]||c++,void 0===b||"-"!==a[0]&&" "!==a[0]||b++}),{oldLines:b,newLines:c}}function za(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable}));c.push.apply(c,d)}return c}function Aa(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{};b%2?za(Object(c),!0).forEach(function(b){var d=c[b];b in a?Object.defineProperty(a,b,{value:d,enumerable:!0,
|
|
configurable:!0,writable:!0}):a[b]=d}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):za(Object(c)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(c,b))})}return a}var l,I={};(l=function(){this.Diff_Timeout=1;this.Diff_EditCost=4;this.Match_Threshold=.5;this.Match_Distance=1E3;this.Patch_DeleteThreshold=.5;this.Patch_Margin=4;this.Match_MaxBits=32}).Diff=function(a,b){return[a,b]};l.prototype.diff_main=function(a,b,c,
|
|
d){void 0===d&&(d=0>=this.Diff_Timeout?Number.MAX_VALUE:(new Date).getTime()+1E3*this.Diff_Timeout);if(null==a||null==b)throw Error("Null input. (diff_main)");if(a==b)return a?[new l.Diff(0,a)]:[];void 0===c&&(c=!0);var e=c,f=this.diff_commonPrefix(a,b);c=a.substring(0,f);a=a.substring(f);b=b.substring(f);f=this.diff_commonSuffix(a,b);var g=a.substring(a.length-f);a=a.substring(0,a.length-f);b=b.substring(0,b.length-f);a=this.diff_compute_(a,b,e,d);return c&&a.unshift(new l.Diff(0,c)),g&&a.push(new l.Diff(0,
|
|
g)),this.diff_cleanupMerge(a),a};l.prototype.diff_compute_=function(a,b,c,d){var e;if(!a)return[new l.Diff(1,b)];if(!b)return[new l.Diff(-1,a)];var f=a.length>b.length?a:b,g=a.length>b.length?b:a,h=f.indexOf(g);return-1!=h?(e=[new l.Diff(1,f.substring(0,h)),new l.Diff(0,g),new l.Diff(1,f.substring(h+g.length))],a.length>b.length&&(e[0][0]=e[2][0]=-1),e):1==g.length?[new l.Diff(-1,a),new l.Diff(1,b)]:(e=this.diff_halfMatch_(a,b))?(b=e[1],f=e[3],a=e[4],e=this.diff_main(e[0],e[2],c,d),c=this.diff_main(b,
|
|
f,c,d),e.concat([new l.Diff(0,a)],c)):c&&100<a.length&&100<b.length?this.diff_lineMode_(a,b,d):this.diff_bisect_(a,b,d)};l.prototype.diff_lineMode_=function(a,b,c){var d=this.diff_linesToChars_(a,b);a=d.chars1;b=d.chars2;d=d.lineArray;a=this.diff_main(a,b,!1,c);this.diff_charsToLines_(a,d);this.diff_cleanupSemantic(a);a.push(new l.Diff(0,""));for(var e=d=b=0,f="",g="";b<a.length;){switch(a[b][0]){case 1:e++;g+=a[b][1];break;case -1:d++;f+=a[b][1];break;case 0:if(1<=d&&1<=e){a.splice(b-d-e,d+e);b=
|
|
b-d-e;d=this.diff_main(f,g,!1,c);for(e=d.length-1;0<=e;e--)a.splice(b,0,d[e]);b+=d.length}d=e=0;g=f=""}b++}return a.pop(),a};l.prototype.diff_bisect_=function(a,b,c){for(var d=a.length,e=b.length,f=Math.ceil((d+e)/2),g=2*f,h=Array(g),k=Array(g),q=0;q<g;q++)h[q]=-1,k[q]=-1;h[f+1]=0;k[f+1]=0;q=d-e;for(var m=0!=q%2,x=0,n=0,u=0,r=0,v=0;v<f&&!((new Date).getTime()>c);v++){for(var t=-v+x;t<=v-n;t+=2){for(var w=f+t,p=(B=t==-v||t!=v&&h[w-1]<h[w+1]?h[w+1]:h[w-1]+1)-t;B<d&&p<e&&a.charAt(B)==b.charAt(p);)B++,
|
|
p++;if(h[w]=B,B>d)n+=2;else if(p>e)x+=2;else if(m&&0<=(A=f+q-t)&&A<g&&-1!=k[A]&&B>=d-k[A])return this.diff_bisectSplit_(a,b,B,p,c)}for(t=-v+u;t<=v-r;t+=2){for(var y,A=f+t,G=(y=t==-v||t!=v&&k[A-1]<k[A+1]?k[A+1]:k[A-1]+1)-t;y<d&&G<e&&a.charAt(d-y-1)==b.charAt(e-G-1);)y++,G++;if(k[A]=y,y>d)r+=2;else if(G>e)u+=2;else if(!m){var B;if(0<=(w=f+q-t)&&w<g&&-1!=h[w]&&(p=f+(B=h[w])-w,B>=d-y))return this.diff_bisectSplit_(a,b,B,p,c)}}}return[new l.Diff(-1,a),new l.Diff(1,b)]};l.prototype.diff_bisectSplit_=function(a,
|
|
b,c,d,e){var f=a.substring(0,c),g=b.substring(0,d);a=a.substring(c);b=b.substring(d);f=this.diff_main(f,g,!1,e);e=this.diff_main(a,b,!1,e);return f.concat(e)};l.prototype.diff_linesToChars_=function(a,b){function c(a){for(var b="",c=0,g=-1,m=d.length;g<a.length-1;){-1==(g=a.indexOf("\n",c))&&(g=a.length-1);var l=a.substring(c,g+1);(e.hasOwnProperty?e.hasOwnProperty(l):void 0!==e[l])?b+=String.fromCharCode(e[l]):(m==f&&(l=a.substring(c),g=a.length),b+=String.fromCharCode(m),e[l]=m,d[m++]=l);c=g+1}return b}
|
|
var d=[],e={};d[0]="";var f=4E4;a=c(a);return f=65535,{chars1:a,chars2:c(b),lineArray:d}};l.prototype.diff_charsToLines_=function(a,b){for(var c=0;c<a.length;c++){for(var d=a[c][1],e=[],f=0;f<d.length;f++)e[f]=b[d.charCodeAt(f)];a[c][1]=e.join("")}};l.prototype.diff_commonPrefix=function(a,b){if(!a||!b||a.charAt(0)!=b.charAt(0))return 0;for(var c=0,d=Math.min(a.length,b.length),e=d,f=0;c<e;)a.substring(f,e)==b.substring(f,e)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e};l.prototype.diff_commonSuffix=
|
|
function(a,b){if(!a||!b||a.charAt(a.length-1)!=b.charAt(b.length-1))return 0;for(var c=0,d=Math.min(a.length,b.length),e=d,f=0;c<e;)a.substring(a.length-e,a.length-f)==b.substring(b.length-e,b.length-f)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e};l.prototype.diff_commonOverlap_=function(a,b){var c=a.length,d=b.length;if(0==c||0==d)return 0;c>d?a=a.substring(c-d):c<d&&(b=b.substring(0,c));c=Math.min(c,d);if(a==b)return c;d=0;for(var e=1;;){var f=a.substring(c-e);f=b.indexOf(f);if(-1==f)return d;e+=
|
|
f;0!=f&&a.substring(c-e)!=b.substring(0,e)||(d=e,e++)}};l.prototype.diff_halfMatch_=function(a,b){function c(a,b,c){for(var d,e,g,k,h=a.substring(c,c+Math.floor(a.length/4)),m=-1,l="";-1!=(m=b.indexOf(h,m+1));){var q=f.diff_commonPrefix(a.substring(c),b.substring(m)),n=f.diff_commonSuffix(a.substring(0,c),b.substring(0,m));l.length<n+q&&(l=b.substring(m-n,m)+b.substring(m,m+q),d=a.substring(0,c-n),e=a.substring(c+q),g=b.substring(0,m-n),k=b.substring(m+q))}return 2*l.length>=a.length?[d,e,g,k,l]:
|
|
null}if(0>=this.Diff_Timeout)return null;var d=a.length>b.length?a:b,e=a.length>b.length?b:a;if(4>d.length||2*e.length<d.length)return null;var f=this,g,h,k,q,m,l=c(d,e,Math.ceil(d.length/4));d=c(d,e,Math.ceil(d.length/2));return l||d?(g=d?l&&l[4].length>d[4].length?l:d:l,a.length>b.length?(h=g[0],k=g[1],q=g[2],m=g[3]):(q=g[0],m=g[1],h=g[2],k=g[3]),[h,k,q,m,g[4]]):null};l.prototype.diff_cleanupSemantic=function(a){for(var b=!1,c=[],d=0,e=null,f=0,g=0,h=0,k=0,q=0;f<a.length;)0==a[f][0]?(c[d++]=f,g=
|
|
k,h=q,k=0,q=0,e=a[f][1]):(1==a[f][0]?k+=a[f][1].length:q+=a[f][1].length,e&&e.length<=Math.max(g,h)&&e.length<=Math.max(k,q)&&(a.splice(c[d-1],0,new l.Diff(-1,e)),a[c[d-1]+1][0]=1,d--,f=0<--d?c[d-1]:-1,g=0,h=0,k=0,q=0,e=null,b=!0)),f++;b&&this.diff_cleanupMerge(a);this.diff_cleanupSemanticLossless(a);for(f=1;f<a.length;)-1==a[f-1][0]&&1==a[f][0]&&(b=a[f-1][1],c=a[f][1],d=this.diff_commonOverlap_(b,c),e=this.diff_commonOverlap_(c,b),d>=e?(d>=b.length/2||d>=c.length/2)&&(a.splice(f,0,new l.Diff(0,c.substring(0,
|
|
d))),a[f-1][1]=b.substring(0,b.length-d),a[f+1][1]=c.substring(d),f++):(e>=b.length/2||e>=c.length/2)&&(a.splice(f,0,new l.Diff(0,b.substring(0,e))),a[f-1][0]=1,a[f-1][1]=c.substring(0,c.length-e),a[f+1][0]=-1,a[f+1][1]=b.substring(e),f++),f++),f++};l.prototype.diff_cleanupSemanticLossless=function(a){function b(a,b){if(!a||!b)return 6;var c=a.charAt(a.length-1),d=b.charAt(0),e=c.match(l.nonAlphaNumericRegex_),f=d.match(l.nonAlphaNumericRegex_),g=e&&c.match(l.whitespaceRegex_),k=f&&d.match(l.whitespaceRegex_);
|
|
c=g&&c.match(l.linebreakRegex_);d=k&&d.match(l.linebreakRegex_);a=c&&a.match(l.blanklineEndRegex_);b=d&&b.match(l.blanklineStartRegex_);return a||b?5:c||d?4:e&&!g&&k?3:g||k?2:e||f?1:0}for(var c=1;c<a.length-1;){if(0==a[c-1][0]&&0==a[c+1][0]){var d=a[c-1][1],e=a[c][1],f=a[c+1][1],g=this.diff_commonSuffix(d,e);if(g){var h=e.substring(e.length-g);d=d.substring(0,d.length-g);e=h+e.substring(0,e.length-g);f=h+f}g=d;h=e;for(var k=f,q=b(d,e)+b(e,f);e.charAt(0)===f.charAt(0);){d+=e.charAt(0);e=e.substring(1)+
|
|
f.charAt(0);f=f.substring(1);var m=b(d,e)+b(e,f);m>=q&&(q=m,g=d,h=e,k=f)}a[c-1][1]!=g&&(g?a[c-1][1]=g:(a.splice(c-1,1),c--),a[c][1]=h,k?a[c+1][1]=k:(a.splice(c+1,1),c--))}c++}};l.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;l.whitespaceRegex_=/\s/;l.linebreakRegex_=/[\r\n]/;l.blanklineEndRegex_=/\n\r?\n$/;l.blanklineStartRegex_=/^\r?\n\r?\n/;l.prototype.diff_cleanupEfficiency=function(a){for(var b=!1,c=[],d=0,e=null,f=0,g=!1,h=!1,k=!1,q=!1;f<a.length;)0==a[f][0]?(a[f][1].length<this.Diff_EditCost&&(k||q)?
|
|
(c[d++]=f,g=k,h=q,e=a[f][1]):(d=0,e=null),k=q=!1):(-1==a[f][0]?q=!0:k=!0,e&&(g&&h&&k&&q||e.length<this.Diff_EditCost/2&&3==g+h+k+q)&&(a.splice(c[d-1],0,new l.Diff(-1,e)),a[c[d-1]+1][0]=1,d--,e=null,g&&h?(k=q=!0,d=0):(f=0<--d?c[d-1]:-1,k=q=!1),b=!0)),f++;b&&this.diff_cleanupMerge(a)};l.prototype.diff_cleanupMerge=function(a){a.push(new l.Diff(0,""));for(var b,c=0,d=0,e=0,f="",g="";c<a.length;)switch(a[c][0]){case 1:e++;g+=a[c][1];c++;break;case -1:d++;f+=a[c][1];c++;break;case 0:1<d+e?(0!==d&&0!==
|
|
e&&(0!==(b=this.diff_commonPrefix(g,f))&&(0<c-d-e&&0==a[c-d-e-1][0]?a[c-d-e-1][1]+=g.substring(0,b):(a.splice(0,0,new l.Diff(0,g.substring(0,b))),c++),g=g.substring(b),f=f.substring(b)),0!==(b=this.diff_commonSuffix(g,f))&&(a[c][1]=g.substring(g.length-b)+a[c][1],g=g.substring(0,g.length-b),f=f.substring(0,f.length-b))),c-=d+e,a.splice(c,d+e),f.length&&(a.splice(c,0,new l.Diff(-1,f)),c++),g.length&&(a.splice(c,0,new l.Diff(1,g)),c++),c++):0!==c&&0==a[c-1][0]?(a[c-1][1]+=a[c][1],a.splice(c,1)):c++,
|
|
d=e=0,g=f=""}""===a[a.length-1][1]&&a.pop();b=!1;for(c=1;c<a.length-1;)0==a[c-1][0]&&0==a[c+1][0]&&(a[c][1].substring(a[c][1].length-a[c-1][1].length)==a[c-1][1]?(a[c][1]=a[c-1][1]+a[c][1].substring(0,a[c][1].length-a[c-1][1].length),a[c+1][1]=a[c-1][1]+a[c+1][1],a.splice(c-1,1),b=!0):a[c][1].substring(0,a[c+1][1].length)==a[c+1][1]&&(a[c-1][1]+=a[c+1][1],a[c][1]=a[c][1].substring(a[c+1][1].length)+a[c+1][1],a.splice(c+1,1),b=!0)),c++;b&&this.diff_cleanupMerge(a)};l.prototype.diff_xIndex=function(a,
|
|
b){var c,d=0,e=0,f=0,g=0;for(c=0;c<a.length&&(1!==a[c][0]&&(d+=a[c][1].length),-1!==a[c][0]&&(e+=a[c][1].length),!(d>b));c++)f=d,g=e;return a.length!=c&&-1===a[c][0]?g:g+(b-f)};l.prototype.diff_prettyHtml=function(a){for(var b=[],c=/&/g,d=/</g,e=/>/g,f=/\n/g,g=0;g<a.length;g++){var h=a[g][0],k=a[g][1].replace(c,"\x26amp;").replace(d,"\x26lt;").replace(e,"\x26gt;").replace(f,"\x26para;\x3cbr\x3e");switch(h){case 1:b[g]='\x3cins style\x3d"background:#e6ffe6;"\x3e'+k+"\x3c/ins\x3e";break;case -1:b[g]=
|
|
'\x3cdel style\x3d"background:#ffe6e6;"\x3e'+k+"\x3c/del\x3e";break;case 0:b[g]="\x3cspan\x3e"+k+"\x3c/span\x3e"}}return b.join("")};l.prototype.diff_text1=function(a){for(var b=[],c=0;c<a.length;c++)1!==a[c][0]&&(b[c]=a[c][1]);return b.join("")};l.prototype.diff_text2=function(a){for(var b=[],c=0;c<a.length;c++)-1!==a[c][0]&&(b[c]=a[c][1]);return b.join("")};l.prototype.diff_levenshtein=function(a){for(var b=0,c=0,d=0,e=0;e<a.length;e++){var f=a[e][1];switch(a[e][0]){case 1:c+=f.length;break;case -1:d+=
|
|
f.length;break;case 0:b+=Math.max(c,d),d=c=0}}return b+Math.max(c,d)};l.prototype.diff_toDelta=function(a){for(var b=[],c=0;c<a.length;c++)switch(a[c][0]){case 1:b[c]="+"+encodeURI(a[c][1]);break;case -1:b[c]="-"+a[c][1].length;break;case 0:b[c]="\x3d"+a[c][1].length}return b.join("\t").replace(/%20/g," ")};l.prototype.diff_fromDelta=function(a,b){var c=[],d=0,e=0;b=b.split(/\t/g);for(var f=0;f<b.length;f++){var g=b[f].substring(1);switch(b[f].charAt(0)){case "+":try{c[d++]=new l.Diff(1,decodeURI(g))}catch(k){throw Error("Illegal escape in diff_fromDelta: "+
|
|
g);}break;case "-":case "\x3d":var h=parseInt(g,10);if(isNaN(h)||0>h)throw Error("Invalid number in diff_fromDelta: "+g);g=a.substring(e,e+=h);"\x3d"==b[f].charAt(0)?c[d++]=new l.Diff(0,g):c[d++]=new l.Diff(-1,g);break;default:if(b[f])throw Error("Invalid diff operation in diff_fromDelta: "+b[f]);}}if(e!=a.length)throw Error("Delta length ("+e+") does not equal source text length ("+a.length+").");return c};l.prototype.match_main=function(a,b,c){if(null==a||null==b||null==c)throw Error("Null input. (match_main)");
|
|
return c=Math.max(0,Math.min(c,a.length)),a==b?0:a.length?a.substring(c,c+b.length)==b?c:this.match_bitap_(a,b,c):-1};l.prototype.match_bitap_=function(a,b,c){function d(a,d){a/=b.length;d=Math.abs(c-d);return f.Match_Distance?a+d/f.Match_Distance:d?1:a}if(b.length>this.Match_MaxBits)throw Error("Pattern too long for this browser.");var e=this.match_alphabet_(b),f=this,g=this.Match_Threshold,h=a.indexOf(b,c);-1!=h&&(g=Math.min(d(0,h),g),-1!=(h=a.lastIndexOf(b,c+b.length))&&(g=Math.min(d(0,h),g)));
|
|
var k,l=1<<b.length-1;h=-1;for(var m,x=b.length+a.length,n=0;n<b.length;n++){var u=0;for(k=x;u<k;)d(n,c+k)<=g?u=k:x=k,k=Math.floor((x-u)/2+u);x=k;u=Math.max(1,c-k+1);var r=Math.min(c+k,a.length)+b.length;k=Array(r+2);for(k[r+1]=(1<<n)-1;r>=u;r--){var p=e[a.charAt(r-1)];if(k[r]=0===n?(k[r+1]<<1|1)&p:(k[r+1]<<1|1)&p|(m[r+1]|m[r])<<1|1|m[r+1],k[r]&l)if(p=d(n,r-1),p<=g){if(g=p,!((h=r-1)>c))break;u=Math.max(1,2*c-h)}}if(d(n+1,c)>g)break;m=k}return h};l.prototype.match_alphabet_=function(a){for(var b={},
|
|
c=0;c<a.length;c++)b[a.charAt(c)]=0;for(c=0;c<a.length;c++)b[a.charAt(c)]|=1<<a.length-c-1;return b};l.prototype.patch_addContext_=function(a,b){if(0!=b.length){if(null===a.start2)throw Error("patch not initialized");for(var c=b.substring(a.start2,a.start2+a.length1),d=0;b.indexOf(c)!=b.lastIndexOf(c)&&c.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)d+=this.Patch_Margin,c=b.substring(a.start2-d,a.start2+a.length1+d);d+=this.Patch_Margin;(c=b.substring(a.start2-d,a.start2))&&a.diffs.unshift(new l.Diff(0,
|
|
c));(b=b.substring(a.start2+a.length1,a.start2+a.length1+d))&&a.diffs.push(new l.Diff(0,b));a.start1-=c.length;a.start2-=c.length;a.length1+=c.length+b.length;a.length2+=c.length+b.length}};l.prototype.patch_make=function(a,b,c){var d;if("string"==typeof a&&"string"==typeof b&&void 0===c){var e=a;2<(d=this.diff_main(e,b,!0)).length&&(this.diff_cleanupSemantic(d),this.diff_cleanupEfficiency(d))}else if(a&&"object"==typeof a&&void 0===b&&void 0===c)d=a,e=this.diff_text1(d);else if("string"==typeof a&&
|
|
b&&"object"==typeof b&&void 0===c)e=a,d=b;else{if("string"!=typeof a||"string"!=typeof b||!c||"object"!=typeof c)throw Error("Unknown call format to patch_make.");e=a;d=c}if(0===d.length)return[];b=[];c=new l.patch_obj;for(var f=a=0,g=0,h=e,k=0;k<d.length;k++){var q=d[k][0],m=d[k][1];switch(a||0===q||(c.start1=f,c.start2=g),q){case 1:c.diffs[a++]=d[k];c.length2+=m.length;e=e.substring(0,g)+m+e.substring(g);break;case -1:c.length1+=m.length;c.diffs[a++]=d[k];e=e.substring(0,g)+e.substring(g+m.length);
|
|
break;case 0:m.length<=2*this.Patch_Margin&&a&&d.length!=k+1?(c.diffs[a++]=d[k],c.length1+=m.length,c.length2+=m.length):m.length>=2*this.Patch_Margin&&a&&(this.patch_addContext_(c,h),b.push(c),c=new l.patch_obj,a=0,h=e,f=g)}1!==q&&(f+=m.length);-1!==q&&(g+=m.length)}return a&&(this.patch_addContext_(c,h),b.push(c)),b};l.prototype.patch_deepCopy=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=new l.patch_obj;e.diffs=[];for(var f=0;f<d.diffs.length;f++)e.diffs[f]=new l.Diff(d.diffs[f][0],
|
|
d.diffs[f][1]);e.start1=d.start1;e.start2=d.start2;e.length1=d.length1;e.length2=d.length2;b[c]=e}return b};l.prototype.patch_apply=function(a,b){if(0==a.length)return[b,[]];a=this.patch_deepCopy(a);var c=this.patch_addPadding(a);b=c+b+c;this.patch_splitMax(a);for(var d=0,e=[],f=0;f<a.length;f++){var g;var h=a[f].start2+d;var k=this.diff_text1(a[f].diffs),l=-1;if(k.length>this.Match_MaxBits?-1!=(g=this.match_main(b,k.substring(0,this.Match_MaxBits),h))&&(-1==(l=this.match_main(b,k.substring(k.length-
|
|
this.Match_MaxBits),h+k.length-this.Match_MaxBits))||g>=l)&&(g=-1):g=this.match_main(b,k,h),-1==g)e[f]=!1,d-=a[f].length2-a[f].length1;else if(e[f]=!0,d=g-h,k==(h=-1==l?b.substring(g,g+k.length):b.substring(g,l+this.Match_MaxBits)))b=b.substring(0,g)+this.diff_text2(a[f].diffs)+b.substring(g+k.length);else if(h=this.diff_main(k,h,!1),k.length>this.Match_MaxBits&&this.diff_levenshtein(h)/k.length>this.Patch_DeleteThreshold)e[f]=!1;else{this.diff_cleanupSemanticLossless(h);var m;for(l=k=0;l<a[f].diffs.length;l++){var x=
|
|
a[f].diffs[l];0!==x[0]&&(m=this.diff_xIndex(h,k));1===x[0]?b=b.substring(0,g+m)+x[1]+b.substring(g+m):-1===x[0]&&(b=b.substring(0,g+m)+b.substring(g+this.diff_xIndex(h,k+x[1].length)));-1!==x[0]&&(k+=x[1].length)}}}return[b.substring(c.length,b.length-c.length),e]};l.prototype.patch_addPadding=function(a){for(var b=this.Patch_Margin,c="",d=1;d<=b;d++)c+=String.fromCharCode(d);for(d=0;d<a.length;d++)a[d].start1+=b,a[d].start2+=b;d=a[0];var e=d.diffs;if(0==e.length||0!=e[0][0])e.unshift(new l.Diff(0,
|
|
c)),d.start1-=b,d.start2-=b,d.length1+=b,d.length2+=b;else if(b>e[0][1].length){var f=b-e[0][1].length;e[0][1]=c.substring(e[0][1].length)+e[0][1];d.start1-=f;d.start2-=f;d.length1+=f;d.length2+=f}return 0==(e=(d=a[a.length-1]).diffs).length||0!=e[e.length-1][0]?(e.push(new l.Diff(0,c)),d.length1+=b,d.length2+=b):b>e[e.length-1][1].length&&(f=b-e[e.length-1][1].length,e[e.length-1][1]+=c.substring(0,f),d.length1+=f,d.length2+=f),c};l.prototype.patch_splitMax=function(a){for(var b=this.Match_MaxBits,
|
|
c=0;c<a.length;c++)if(!(a[c].length1<=b)){var d=a[c];a.splice(c--,1);for(var e=d.start1,f=d.start2,g="";0!==d.diffs.length;){var h=new l.patch_obj,k=!0;h.start1=e-g.length;h.start2=f-g.length;for(""!==g&&(h.length1=h.length2=g.length,h.diffs.push(new l.Diff(0,g)));0!==d.diffs.length&&h.length1<b-this.Patch_Margin;){var q=d.diffs[0][0],m=d.diffs[0][1];1===q?(h.length2+=m.length,f+=m.length,h.diffs.push(d.diffs.shift()),k=!1):-1===q&&1==h.diffs.length&&0==h.diffs[0][0]&&m.length>2*b?(h.length1+=m.length,
|
|
e+=m.length,k=!1,h.diffs.push(new l.Diff(q,m)),d.diffs.shift()):(m=m.substring(0,b-h.length1-this.Patch_Margin),h.length1+=m.length,e+=m.length,0===q?(h.length2+=m.length,f+=m.length):k=!1,h.diffs.push(new l.Diff(q,m)),m==d.diffs[0][1]?d.diffs.shift():d.diffs[0][1]=d.diffs[0][1].substring(m.length))}g=(g=this.diff_text2(h.diffs)).substring(g.length-this.Patch_Margin);q=this.diff_text1(d.diffs).substring(0,this.Patch_Margin);""!==q&&(h.length1+=q.length,h.length2+=q.length,0!==h.diffs.length&&0===
|
|
h.diffs[h.diffs.length-1][0]?h.diffs[h.diffs.length-1][1]+=q:h.diffs.push(new l.Diff(0,q)));k||a.splice(++c,0,h)}}};l.prototype.patch_toText=function(a){for(var b=[],c=0;c<a.length;c++)b[c]=a[c];return b.join("")};l.prototype.patch_fromText=function(a){var b=[];if(!a)return b;a=a.split("\n");for(var c=0,d=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;c<a.length;){var e=a[c].match(d);if(!e)throw Error("Invalid patch string: "+a[c]);var f=new l.patch_obj;b.push(f);f.start1=parseInt(e[1],10);""===e[2]?(f.start1--,
|
|
f.length1=1):"0"==e[2]?f.length1=0:(f.start1--,f.length1=parseInt(e[2],10));f.start2=parseInt(e[3],10);""===e[4]?(f.start2--,f.length2=1):"0"==e[4]?f.length2=0:(f.start2--,f.length2=parseInt(e[4],10));for(c++;c<a.length;){e=a[c].charAt(0);try{var g=decodeURI(a[c].substring(1))}catch(h){throw Error("Illegal escape in patch_fromText: "+g);}if("-"==e)f.diffs.push(new l.Diff(-1,g));else if("+"==e)f.diffs.push(new l.Diff(1,g));else if(" "==e)f.diffs.push(new l.Diff(0,g));else{if("@"==e)break;if(""!==e)throw Error('Invalid patch mode "'+
|
|
e+'" in: '+g);}c++}}return b};(l.patch_obj=function(){this.diffs=[];this.start2=this.start1=null;this.length2=this.length1=0}).prototype.toString=function(){for(var a,b=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],c=0;c<this.diffs.length;c++){switch(this.diffs[c][0]){case 1:a="+";break;case -1:a="-";break;case 0:a=" "}b[c+1]=a+encodeURI(this.diffs[c][1])+
|
|
"\n"}return b.join("").replace(/%20/g," ")};I=l;I.diff_match_patch=l;I.DIFF_DELETE=-1;I.DIFF_INSERT=1;I.DIFF_EQUAL=0;var Ba={},p={};!function(a){function b(){}function c(a,b,c,g,h){for(var d,e=[];b;)e.push(b),d=b.previousComponent,delete b.previousComponent,b=d;e.reverse();d=0;b=e.length;for(var f=0,l=0;d<b;d++){var n=e[d];if(n.removed){if(n.value=a.join(g.slice(l,l+n.count)),l+=n.count,d&&e[d-1].added)n=e[d-1],e[d-1]=e[d],e[d]=n}else{if(!n.added&&h){var p=c.slice(f,f+n.count);p=p.map(function(a,
|
|
b){b=g[l+b];return b.length>a.length?b:a});n.value=a.join(p)}else n.value=a.join(c.slice(f,f+n.count));f+=n.count;n.added||(l+=n.count)}}c=e[b-1];return 1<b&&"string"==typeof c.value&&(c.added||c.removed)&&a.equals("",c.value)&&(e[b-2].value+=c.value,e.pop()),e}Object.defineProperty(a,"__esModule",{value:!0});a.default=b;b.prototype={diff:function(a,b){function d(a){return l?(setTimeout(function(){l(void 0,a)},0),!0):a}function e(){for(var e=Math.max(z,-u);e<=Math.min(y,u);e+=2){var f=void 0,g=t[e-
|
|
1],h=t[e+1];g&&(t[e-1]=void 0);var k=!1;h&&(k=h.oldPos-e,k=h&&0<=k&&k<p);var l=g&&g.oldPos+1<n;if(k||l){if(f=!l||k&&g.oldPos+1<h.oldPos?m.addToPath(h,!0,void 0,0):m.addToPath(g,void 0,!0,1),w=m.extractCommon(f,b,a,e),f.oldPos+1>=n&&w+1>=p)return d(c(m,f.lastComponent,b,a,m.useLongestToken));t[e]=f;f.oldPos+1>=n&&(y=Math.min(y,e-1));w+1>=p&&(z=Math.max(z,e+1))}else t[e]=void 0}u++}var h,k=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},l=k.callback;"function"==typeof k&&(l=k,k={});this.options=
|
|
k;var m=this;a=this.castInput(a);b=this.castInput(b);a=this.removeEmpty(this.tokenize(a));var p=(b=this.removeEmpty(this.tokenize(b))).length,n=a.length,u=1,r=p+n;k.maxEditLength&&(r=Math.min(r,k.maxEditLength));k=null!==(h=k.timeout)&&void 0!==h?h:1/0;var v=Date.now()+k,t=[{oldPos:-1,lastComponent:void 0}],w=this.extractCommon(t[0],b,a,0);if(t[0].oldPos+1>=n&&w+1>=p)return d([{value:this.join(b),count:b.length}]);var z=-1/0,y=1/0;if(l)!function G(){setTimeout(function(){if(u>r||Date.now()>v)return l();
|
|
e()||G()},0)}();else for(;u<=r&&Date.now()<=v;)if(h=e())return h},addToPath:function(a,b,c,g){var d=a.lastComponent;return d&&d.added===b&&d.removed===c?{oldPos:a.oldPos+g,lastComponent:{count:d.count+1,added:b,removed:c,previousComponent:d.previousComponent}}:{oldPos:a.oldPos+g,lastComponent:{count:1,added:b,removed:c,previousComponent:d}}},extractCommon:function(a,b,c,g){var d=b.length,e=c.length,f=a.oldPos;g=f-g;for(var l=0;g+1<d&&f+1<e&&this.equals(b[g+1],c[f+1]);)g++,f++,l++;return l&&(a.lastComponent=
|
|
{count:l,previousComponent:a.lastComponent}),a.oldPos=f,g},equals:function(a,b){return this.options.comparator?this.options.comparator(a,b):a===b||this.options.ignoreCase&&a.toLowerCase()===b.toLowerCase()},removeEmpty:function(a){for(var b=[],c=0;c<a.length;c++)a[c]&&b.push(a[c]);return b},castInput:function(a){return a},tokenize:function(a){return a.split("")},join:function(a){return a.join("")}}}(p);var L={};Object.defineProperty(L,"__esModule",{value:!0});L.diffChars=function(a,b,c){return Ca.diff(a,
|
|
b,c)};L.characterDiff=void 0;var Ca=new (p&&p.__esModule?p:{default:p}).default;L.characterDiff=Ca;var J={},z={};Object.defineProperty(z,"__esModule",{value:!0});z.generateOptions=function(a,b){if("function"==typeof a)b.callback=a;else if(a)for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};Object.defineProperty(J,"__esModule",{value:!0});J.diffWords=function(a,b,c){return c=(0,La.generateOptions)(c,{ignoreWhitespace:!0}),M.diff(a,b,c)};J.diffWordsWithSpace=function(a,b,c){return M.diff(a,
|
|
b,c)};J.wordDiff=void 0;var La=z,Da=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Ea=/\S/,M=new (p&&p.__esModule?p:{default:p}).default;J.wordDiff=M;M.equals=function(a,b){return this.options.ignoreCase&&(a=a.toLowerCase(),b=b.toLowerCase()),a===b||this.options.ignoreWhitespace&&!Ea.test(a)&&!Ea.test(b)};M.tokenize=function(a){a=a.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/);for(var b=0;b<a.length-1;b++)!a[b+1]&&a[b+2]&&Da.test(a[b])&&Da.test(a[b+2])&&(a[b]+=a[b+2],a.splice(b+1,2),b--);
|
|
return a};var C={};Object.defineProperty(C,"__esModule",{value:!0});C.diffLines=function(a,b,c){return V.diff(a,b,c)};C.diffTrimmedLines=function(a,b,c){c=(0,Ma.generateOptions)(c,{ignoreWhitespace:!0});return V.diff(a,b,c)};C.lineDiff=void 0;var Ma=z,V=new (p&&p.__esModule?p:{default:p}).default;C.lineDiff=V;V.tokenize=function(a){this.options.stripTrailingCr&&(a=a.replace(/\r\n/g,"\n"));var b=[];a=a.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(var c=0;c<a.length;c++){var d=a[c];c%2&&!this.options.newlineIsToken?
|
|
b[b.length-1]+=d:(this.options.ignoreWhitespace&&(d=d.trim()),b.push(d))}return b};var N={};Object.defineProperty(N,"__esModule",{value:!0});N.diffSentences=function(a,b,c){return fa.diff(a,b,c)};N.sentenceDiff=void 0;var fa=new (p&&p.__esModule?p:{default:p}).default;N.sentenceDiff=fa;fa.tokenize=function(a){return a.split(/(\S.+?[.!?])(?=\s+|$)/)};var O={};Object.defineProperty(O,"__esModule",{value:!0});O.diffCss=function(a,b,c){return ha.diff(a,b,c)};O.cssDiff=void 0;var ha=new (p&&p.__esModule?
|
|
p:{default:p}).default;O.cssDiff=ha;ha.tokenize=function(a){return a.split(/([{}:;,]|\s+)/)};var K={};Object.defineProperty(K,"__esModule",{value:!0});K.diffJson=function(a,b,c){return E.diff(a,b,c)};K.canonicalize=T;K.jsonDiff=void 0;var Fa=p&&p.__esModule?p:{default:p},Ga=Object.prototype.toString,E=new Fa.default;K.jsonDiff=E;E.useLongestToken=!0;E.tokenize=C.lineDiff.tokenize;E.castInput=function(a){var b=this.options,c=b.undefinedReplacement;b=b.stringifyReplacer;b=void 0===b?function(a,b){return void 0===
|
|
b?c:b}:b;return"string"==typeof a?a:JSON.stringify(T(a,null,null,b),b," ")};E.equals=function(a,b){return Fa.default.prototype.equals.call(E,a.replace(/,([\r\n])/g,"$1"),b.replace(/,([\r\n])/g,"$1"))};var P={};Object.defineProperty(P,"__esModule",{value:!0});P.diffArrays=function(a,b,c){return Q.diff(a,b,c)};P.arrayDiff=void 0;var Q=new (p&&p.__esModule?p:{default:p}).default;P.arrayDiff=Q;Q.tokenize=function(a){return a.slice()};Q.join=Q.removeEmpty=function(a){return a};var W={},R={};Object.defineProperty(R,
|
|
"__esModule",{value:!0});R.parsePatch=function(a){function b(){var a={};for(h.push(a);k<f.length;){var b=f[k];if(/^(\-\-\-|\+\+\+|@@)\s/.test(b))break;(b=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(b))&&(a.index=b[1]);k++}c(a);c(a);for(a.hunks=[];k<f.length;){b=f[k];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(b))break;if(/^@@/.test(b))a.hunks.push(d());else{if(b&&e.strict)throw Error("Unknown line "+(k+1)+" "+JSON.stringify(b));k++}}}function c(a){var b=/^(---|\+\+\+)\s+(.*)$/.exec(f[k]);if(b){var c=
|
|
"---"===b[1]?"old":"new";b=b[2].split("\t",2);var d=b[0].replace(/\\\\/g,"\\");/^".*"$/.test(d)&&(d=d.substr(1,d.length-2));a[c+"FileName"]=d;a[c+"Header"]=(b[1]||"").trim();k++}}function d(){var a=k,b=f[k++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/);b={oldStart:+b[1],oldLines:void 0===b[2]?1:+b[2],newStart:+b[3],newLines:void 0===b[4]?1:+b[4],lines:[],linedelimiters:[]};0===b.oldLines&&(b.oldStart+=1);0===b.newLines&&(b.newStart+=1);for(var c=0,d=0;k<f.length&&!(0===f[k].indexOf("--- ")&&
|
|
k+2<f.length&&0===f[k+1].indexOf("+++ ")&&0===f[k+2].indexOf("@@"));k++){var h=0==f[k].length&&k!=f.length-1?" ":f[k][0];if("+"!==h&&"-"!==h&&" "!==h&&"\\"!==h)break;b.lines.push(f[k]);b.linedelimiters.push(g[k]||"\n");"+"===h?c++:"-"===h?d++:" "===h&&(c++,d++)}if(c||1!==b.newLines||(b.newLines=0),d||1!==b.oldLines||(b.oldLines=0),e.strict){if(c!==b.newLines)throw Error("Added line count did not match for hunk at line "+(a+1));if(d!==b.oldLines)throw Error("Removed line count did not match for hunk at line "+
|
|
(a+1));}return b}for(var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},f=a.split(/\r\n|[\n\v\f\r\x85]/),g=a.match(/\r\n|[\n\v\f\r\x85]/g)||[],h=[],k=0;k<f.length;)b();return h};z={};!function(a){Object.defineProperty(a,"__esModule",{value:!0});a.default=function(a,c,d){var b=!0,f=!1,g=!1,h=1;return function q(){if(b&&!g){if(f?h++:b=!1,a+h<=d)return h;g=!0}if(!f)return g||(b=!0),c<=a-h?-h++:(f=!0,q())}}}(z);Object.defineProperty(W,"__esModule",{value:!0});W.applyPatch=ma;W.applyPatches=
|
|
function(a,b){"string"==typeof a&&(a=(0,na.parsePatch)(a));var c=0;!function e(){var f=a[c++];if(!f)return b.complete();b.loadFile(f,function(a,c){if(a)return b.complete(a);a=ma(c,f,b);b.patched(f,a,function(a){if(a)return b.complete(a);e()})})}()};var na=R,Ha=z&&z.__esModule?z:{default:z},X={},F={};Object.defineProperty(F,"__esModule",{value:!0});F.structuredPatch=oa;F.formatPatch=ba;F.createTwoFilesPatch=pa;F.createPatch=function(a,b,c,d,e,f){return pa(a,a,b,c,d,e,f)};var Ia=C;z={};Object.defineProperty(z,
|
|
"__esModule",{value:!0});z.arrayEqual=function(a,b){return a.length!==b.length?!1:qa(a,b)};z.arrayStartsWith=qa;Object.defineProperty(X,"__esModule",{value:!0});X.calcLineCount=ra;X.merge=function(a,b,c){a=sa(a,c);b=sa(b,c);c={};(a.index||b.index)&&(c.index=a.index||b.index);(a.newFileName||b.newFileName)&&(a.newFileName&&a.newFileName!==a.oldFileName?b.newFileName&&b.newFileName!==b.oldFileName?(c.oldFileName=U(c,a.oldFileName,b.oldFileName),c.newFileName=U(c,a.newFileName,b.newFileName),c.oldHeader=
|
|
U(c,a.oldHeader,b.oldHeader),c.newHeader=U(c,a.newHeader,b.newHeader)):(c.oldFileName=a.oldFileName,c.newFileName=a.newFileName,c.oldHeader=a.oldHeader,c.newHeader=a.newHeader):(c.oldFileName=b.oldFileName||a.oldFileName,c.newFileName=b.newFileName||a.newFileName,c.oldHeader=b.oldHeader||a.oldHeader,c.newHeader=b.newHeader||a.newHeader));c.hunks=[];for(var d=0,e=0,f=0,g=0;d<a.hunks.length||e<b.hunks.length;){var h=a.hunks[d]||{oldStart:1/0},k=b.hunks[e]||{oldStart:1/0};if(h.oldStart<k.oldStart&&h.oldStart+
|
|
h.oldLines<k.oldStart)c.hunks.push(ta(h,f)),d++,g+=h.newLines-h.oldLines;else if(k.oldStart<h.oldStart&&k.oldStart+k.oldLines<h.oldStart)c.hunks.push(ta(k,g)),e++,f+=k.newLines-k.oldLines;else{var l={oldStart:Math.min(h.oldStart,k.oldStart),oldLines:0,newStart:Math.min(h.newStart+f,k.oldStart+g),newLines:0,lines:[]},m=l;h={offset:h.oldStart,lines:h.lines,index:0};k={offset:k.oldStart,lines:k.lines,index:0};va(m,h,k);for(va(m,k,h);h.index<h.lines.length&&k.index<k.lines.length;){var p=h.lines[h.index],
|
|
n=k.lines[k.index];if("-"!==p[0]&&"+"!==p[0]||"-"!==n[0]&&"+"!==n[0])if("+"===p[0]&&" "===n[0]){var u;(u=m.lines).push.apply(u,H(D(h)))}else if("+"===n[0]&&" "===p[0]){var r;(r=m.lines).push.apply(r,H(D(k)))}else"-"===p[0]&&" "===n[0]?ua(m,h,k):"-"===n[0]&&" "===p[0]?ua(m,k,h,!0):p===n?(m.lines.push(p),h.index++,k.index++):ea(m,D(h),D(k));else a:{var v=n=p=void 0,t=m,w=h,z=k,y=D(w),A=D(z);if(xa(y)&&xa(A)){if((0,ia.arrayStartsWith)(y,A)&&ya(z,y,y.length-A.length)){(v=t.lines).push.apply(v,H(y));break a}if((0,
|
|
ia.arrayStartsWith)(A,y)&&ya(w,A,A.length-y.length)){(n=t.lines).push.apply(n,H(A));break a}}else if((0,ia.arrayEqual)(y,A)){(p=t.lines).push.apply(p,H(y));break a}ea(t,y,A)}}wa(m,h);wa(m,k);ra(m);e++;d++;c.hunks.push(l)}}return c};var Ka=F,Ja=R,ia=z,ja={};Object.defineProperty(ja,"__esModule",{value:!0});ja.reversePatch=function c(b){return Array.isArray(b)?b.map(c).reverse():Aa(Aa({},b),{},{oldFileName:b.newFileName,oldHeader:b.newHeader,newFileName:b.oldFileName,newHeader:b.oldHeader,hunks:b.hunks.map(function(b){return{oldLines:b.newLines,
|
|
oldStart:b.newStart,newLines:b.oldLines,newStart:b.oldStart,linedelimiters:b.linedelimiters,lines:b.lines.map(function(b){return b.startsWith("-")?"+".concat(b.slice(1)):b.startsWith("+")?"-".concat(b.slice(1)):b})}})})};var ka={};Object.defineProperty(ka,"__esModule",{value:!0});ka.convertChangesToDMP=function(b){for(var c,d,e=[],f=0;f<b.length;f++)d=(c=b[f]).added?1:c.removed?-1:0,e.push([d,c.value]);return e};var la={};Object.defineProperty(la,"__esModule",{value:!0});la.convertChangesToXML=function(b){for(var c=
|
|
[],d=0;d<b.length;d++){var e=b[d];e.added?c.push("\x3cins\x3e"):e.removed&&c.push("\x3cdel\x3e");c.push(e.value.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26quot;"));e.added?c.push("\x3c/ins\x3e"):e.removed&&c.push("\x3c/del\x3e")}return c.join("")};(function(b){Object.defineProperty(b,"__esModule",{value:!0});Object.defineProperty(b,"Diff",{enumerable:!0,get:function(){return c.default}});Object.defineProperty(b,"diffChars",{enumerable:!0,get:function(){return d.diffChars}});
|
|
Object.defineProperty(b,"diffWords",{enumerable:!0,get:function(){return e.diffWords}});Object.defineProperty(b,"diffWordsWithSpace",{enumerable:!0,get:function(){return e.diffWordsWithSpace}});Object.defineProperty(b,"diffLines",{enumerable:!0,get:function(){return f.diffLines}});Object.defineProperty(b,"diffTrimmedLines",{enumerable:!0,get:function(){return f.diffTrimmedLines}});Object.defineProperty(b,"diffSentences",{enumerable:!0,get:function(){return g.diffSentences}});Object.defineProperty(b,
|
|
"diffCss",{enumerable:!0,get:function(){return h.diffCss}});Object.defineProperty(b,"diffJson",{enumerable:!0,get:function(){return k.diffJson}});Object.defineProperty(b,"canonicalize",{enumerable:!0,get:function(){return k.canonicalize}});Object.defineProperty(b,"diffArrays",{enumerable:!0,get:function(){return l.diffArrays}});Object.defineProperty(b,"applyPatch",{enumerable:!0,get:function(){return m.applyPatch}});Object.defineProperty(b,"applyPatches",{enumerable:!0,get:function(){return m.applyPatches}});
|
|
Object.defineProperty(b,"parsePatch",{enumerable:!0,get:function(){return x.parsePatch}});Object.defineProperty(b,"merge",{enumerable:!0,get:function(){return n.merge}});Object.defineProperty(b,"reversePatch",{enumerable:!0,get:function(){return u.reversePatch}});Object.defineProperty(b,"structuredPatch",{enumerable:!0,get:function(){return r.structuredPatch}});Object.defineProperty(b,"createTwoFilesPatch",{enumerable:!0,get:function(){return r.createTwoFilesPatch}});Object.defineProperty(b,"createPatch",
|
|
{enumerable:!0,get:function(){return r.createPatch}});Object.defineProperty(b,"formatPatch",{enumerable:!0,get:function(){return r.formatPatch}});Object.defineProperty(b,"convertChangesToDMP",{enumerable:!0,get:function(){return v.convertChangesToDMP}});Object.defineProperty(b,"convertChangesToXML",{enumerable:!0,get:function(){return t.convertChangesToXML}});var c=p&&p.__esModule?p:{default:p},d=L,e=J,f=C,g=N,h=O,k=K,l=P,m=W,x=R,n=X,u=ja,r=F,v=ka,t=la})(Ba);return S.diffMatchPatch=I,S.jsDiff=Ba,
|
|
Object.defineProperty(S,"__esModule",{value:!0}),S}({});(function(){(function(dd){function ed(f,b,a){if(X.isDebugVerbose){var e=a.value;a.value=function(){for(var a=[],g=0;g<arguments.length;g++)a[g]=arguments[g];g=this.constructor.name===f.constructor.name?this.constructor.name:"".concat(this.constructor.name," (").concat(f.constructor.name,")");N.print(g,b,"".concat("\x3c\x3c\x3c"," %o"),a);N.rightShift();a=e.apply(this,a);N.leftShift();N.print(g,b,"".concat("\x3e\x3e\x3e"," %o"),a);return a};return a}}function k(){for(var f=[],b=0;b<arguments.length;b++)f[b]=
|
|
arguments[b];switch(f.length){case 3:if("number"!==typeof f[2])return ed(f[0],f[1],f[2]);default:throw t.create("UnsupportedLogDecorator");}}var fa;(function(f){f.getMarketplaceProperties=function(b){var a;if("function"===typeof(null===(a=b.$RuntimeConfig)||void 0===a?void 0:a.getMarketplaceProperties))return b.$RuntimeConfig.getMarketplaceProperties()};f.getFeaturePropertiesData=function(b,a,e){var c;if("function"===typeof(null===(c=b.$RuntimeConfig)||void 0===c?void 0:c.getFeatureProperties)&&(b=
|
|
b.$RuntimeConfig.getFeatureProperties(a,e),"function"===typeof(null===b||void 0===b?void 0:b.getData)))return b.getData()};f.getDeviceProperties=function(b){var a;if("function"===typeof(null===(a=b.$RuntimeConfig)||void 0===a?void 0:a.getDeviceProperties))return b.$RuntimeConfig.getDeviceProperties()};f.getCustomerProperties=function(b){var a;if("function"===typeof(null===(a=b.$RuntimeConfig)||void 0===a?void 0:a.getCustomerProperties))return b.$RuntimeConfig.getCustomerProperties()}})(fa||(fa={}));
|
|
var Y;(function(f){f.getAppType=function(b){var a,e;return null!==(e=null===(a=fa.getDeviceProperties(b))||void 0===a?void 0:a.getAppType())&&void 0!==e?e:"web"};f.getDeviceType=function(b){var a,e;return null!==(e=null===(a=fa.getDeviceProperties(b))||void 0===a?void 0:a.getDeviceType())&&void 0!==e?e:"mobile"};f.isMShop=function(b){return"mshop"===f.getAppType(b)};f.isMweb=function(b){return"web"===f.getAppType(b)};f.isMobileWeb=function(b){return"mobile"===f.getDeviceType(b)&&f.isMweb(b)};f.getCountryCode=
|
|
function(b){b=fa.getMarketplaceProperties(b);if("function"===typeof(null===b||void 0===b?void 0:b.getCountryCode))return b.getCountryCode()};f.isClientEnabled=function(b){b=fa.getFeaturePropertiesData(b,"in-latency","".concat("lightsaber","-").concat(f.getAppType(b)));return null===b||void 0===b?void 0:b.clientEnabled};f.getAppVersion=function(b){var a;b=fa.getDeviceProperties(b);return null===(a=null===b||void 0===b?void 0:b.getMShopProperties())||void 0===a?void 0:a.getAppVersion()}})(Y||(Y={}));
|
|
var fd=this&&this.__read||function(f,b){var a="function"===typeof Symbol&&f[Symbol.iterator];if(!a)return f;f=a.call(f);var e,c=[];try{for(;(void 0===b||0<b--)&&!(e=f.next()).done;)c.push(e.value)}catch(h){var g={error:h}}finally{try{e&&!e.done&&(a=f["return"])&&a.call(f)}finally{if(g)throw g.error;}}return c},v;(function(f){var b=(b="AmazonLightsaberServiceWorkerClientLib-1.0.2070.0".match(/^([^\-]+)\-((\w+\.\w+)(?:\.\w+)*)$/))&&b[1]&&b[2]&&b[3]?b.slice(1):["unknown","unknown","unknown"];var a=fd(b,
|
|
3);b=a[0];var e=a[1];a=a[2];f.NAMESPACE="Lightsaber";f.NAMESPACE_UCASE=f.NAMESPACE.toUpperCase();f.NAMESPACE_LCASE=f.NAMESPACE.toLowerCase();f.NAMESPACE_SHORT="lsbr";f.BRAZIL_NAME=b;f.FULL_VERSION=e;f.VERSION=a;f.HELP_LINK="https://tiny.amazon.com/171he0ngb"})(v||(v={}));var ha;(function(f){f.pushClamped=function(b,a,e,c){b.push(a);a="function"===typeof c;for(e=Math.max(e,0);b.length>e;){var g=b.shift();a&&c(g)}}})(ha||(ha={}));var Oa;(function(f){f.removeHeadersWithPrefix=function(b,a){var e=new Headers(b);
|
|
e.forEach(function(c,b){0===b.indexOf(a)&&e.delete(b)});return e};f.getCommonHTMLHeaders=function(b){var a=new Headers({"content-type":"text/html; charset\x3dutf-8","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-xss-protection":"1"});b&&b.forEach(function(b,c){a.set(c,b)});return a}})(Oa||(Oa={}));var gd=this&&this.__awaiter||function(f,b,a,e){function c(c){return c instanceof a?c:new a(function(a){a(c)})}return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}
|
|
function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},hd=this&&this.__generator||function(f,b){function a(a){return function(c){return e([a,c])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;
|
|
case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:
|
|
void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},id=this&&this.__read||function(f,b){var a="function"===typeof Symbol&&f[Symbol.iterator];if(!a)return f;f=a.call(f);var e,c=[];try{for(;(void 0===b||0<b--)&&!(e=f.next()).done;)c.push(e.value)}catch(h){var g={error:h}}finally{try{e&&!e.done&&(a=f["return"])&&a.call(f)}finally{if(g)throw g.error;
|
|
}}return c},jd=this&&this.__spreadArray||function(f,b,a){if(a||2===arguments.length)for(var e=0,c=b.length,g;e<c;e++)!g&&e in b||(g||(g=Array.prototype.slice.call(b,0,e)),g[e]=b[e]);return f.concat(g||Array.prototype.slice.call(b))},ma;(function(f){var b=this;f.replaceAsync=function(a,e,c){return gd(b,void 0,void 0,function(){var b,h;return hd(this,function(g){switch(g.label){case 0:if("function"!==typeof c)return[2,a.replace(e,c)];b=[];a.replace(e,function(a){for(var e=[],g=1;g<arguments.length;g++)e[g-
|
|
1]=arguments[g];e=c.call.apply(c,jd([void 0,a],id(e),!1));b.push(e);return""});return[4,Promise.all(b)];case 1:return h=g.sent(),[2,a.replace(e,function(){return h.shift()})]}})})};f.pad=function(a,b,c){a=a.toString();return"function"===typeof a.padStart?a.padStart(b,c):a};f.generateRandomSequence=function(a,b){for(var c="";c.length<a;)c+=Math.floor(9007199254740991*Math.random()).toString(b);return c.substring(0,a)}})(ma||(ma={}));var kd=this&&this.__read||function(f,b){var a="function"===typeof Symbol&&
|
|
f[Symbol.iterator];if(!a)return f;f=a.call(f);var e,c=[];try{for(;(void 0===b||0<b--)&&!(e=f.next()).done;)c.push(e.value)}catch(h){var g={error:h}}finally{try{e&&!e.done&&(a=f["return"])&&a.call(f)}finally{if(g)throw g.error;}}return c},ld=this&&this.__spreadArray||function(f,b,a){if(a||2===arguments.length)for(var e=0,c=b.length,g;e<c;e++)!g&&e in b||(g||(g=Array.prototype.slice.call(b,0,e)),g[e]=b[e]);return f.concat(g||Array.prototype.slice.call(b))},N;(function(f){var b=0,a=function(){var a=
|
|
new Date,c=ma.pad(a.getHours(),2,"0"),b=ma.pad(a.getMinutes(),2,"0"),h=ma.pad(a.getSeconds(),2,"0");a=ma.pad(a.getMilliseconds(),3,"0");return"".concat(c,":").concat(b,":").concat(h,".").concat(a)};f.print=function(e,c,g){for(var h=[],d=3;d<arguments.length;d++)h[d-3]=arguments[d];X.isDebugVerbose&&(d=" ".repeat(b||0),console.debug.apply(console,ld(["%c".concat(a(),"%c%c").concat(v.NAMESPACE,"%c ").concat(d,"%c").concat(e,"%c%c").concat(c,"%c ").concat(g),"background-color: #e1eaeb; color: #fff; padding: 5px 8px",
|
|
"color: auto; font-weight: normal","background-color: #3498db; color: #fff; padding: 5px 8px","color: auto; font-weight: normal","background-color: #f39c12; color: #fff; padding: 5px 8px","color: auto; font-weight: normal","background-color: #e1eaeb; padding: 5px 8px","color: auto; font-weight: normal"],kd(h),!1)))};f.rightShift=function(){return 25>=b?b++:b};f.leftShift=function(){return 1<=b?b--:b}})(N||(N={}));var md=function(){function f(){var b=this;this.promise=new Promise(function(a,e){b.resolve=
|
|
a;b.reject=e})}f.prototype.resolveWith=function(b){this.resolve(b)};f.prototype.rejectWith=function(b){this.reject(b)};return f}(),Fa;(function(f){var b=/^https:\/\/(?:[^\/]+)(?:\/images\/I)\/([\w\+\-]+)\..*$/i;f.getPhysicalId=function(a){if(a=a.match(b))return a[1]};f.replacePhysicalId=function(a,b){var c=f.getPhysicalId(a);if(c)return a.replace(c,b)}})(Fa||(Fa={}));var Pa;(function(f){var b=function(a){return Y.isMShop(a)?"SMA":Y.isMobileWeb(a)?"SW":"SWD"};f.format=function(a,e){return"".concat(v.NAMESPACE,
|
|
":").concat(b(a),":").concat(e).toLowerCase()};f.formatErrorAttribution=function(a,e){a=b(a);return v.BRAZIL_NAME+(e?":".concat(e):"")+("SMA"!==a?":".concat(a):"")}})(Pa||(Pa={}));var nd=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&
|
|
null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),od=function(f){function b(a,e,c,g,h){c=f.call(this,b._getMessage(a,g,e,c))||this;c.name="".concat(v.NAMESPACE,"Error");c.code=a;c.data=e;c.logLevel=h;return c}nd(b,f);b._getMessage=function(a,b,c,g){b=b?"- ".concat(b,"."):"";if(void 0!==c){var e=C.serialize(c);"{}"===e&&"function"===typeof c.toString&&(e=c.toString());b="".concat(b,
|
|
" Occurred with ").concat(e,".").trim()}g&&(c=g.stack?"".concat(g.stack):"".concat(g),b="".concat(b," Caused by ").concat(c).trim());return"".concat(a," ").concat(b)};return b}(Error),t;(function(f){f.create=function(b,a,e,c,g){return new od(b.toString(),a,e,c,g)};f.wrap=function(b,a,e,c,g){return b.hasOwnProperty("code")?b:f.create(a,e,b,c,g)}})(t||(t={}));var w;(function(f){f.matchesCode=function(b,a){return b instanceof Error&&b.hasOwnProperty("code")&&b.code===a};f.matchesSignature=function(b,
|
|
a){return b instanceof Error&&q.matchesPattern(b.message,a)};f.matchesCodeOrSignature=function(b,a,e){return f.matchesCode(b,a)||f.matchesSignature(b,e)}})(w||(w={}));var H;(function(f){f.NETWORK_ERROR=/network error/i;f.FAILED_TO_FETCH=/failed to fetch/i;f.UNEXPECTED_INTERNAL_ERROR=/Unexpected internal error/i;f.READABLE_STREAM_DEFAULT_CONTROLLER_ERROR=/(readable stream.*(closed|errored)|(closed|errored).*readable stream)/i})(H||(H={}));var ic=this&&this.__awaiter||function(f,b,a,e){function c(c){return c instanceof
|
|
a?c:new a(function(a){a(c)})}return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},jc=this&&this.__generator||function(f,b){function a(a){return function(c){return e([a,c])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),
|
|
0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();
|
|
continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},ab;(function(f){var b=this;f.getResponseWithRelay=function(a){return ic(b,void 0,void 0,function(){var b;return jc(this,function(c){switch(c.label){case 0:if(!a.preloadResponse)return[2,
|
|
fetch(a.request)];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,a.preloadResponse];case 2:return(b=c.sent())?[2,b]:[2,fetch(a.request)];case 3:return c.sent(),[2,fetch(a.request)];case 4:return[2]}})})};f.getResponseWithoutRelay=function(a){return ic(b,void 0,void 0,function(){var b;return jc(this,function(c){switch(c.label){case 0:if(!a.preloadResponse)throw t.create("PreloadResponseUnsupported");return[4,a.preloadResponse];case 1:b=c.sent();if(!b)throw t.create("PreloadResponseUnexpected");return[2,
|
|
b]}})})}})(ab||(ab={}));var ub=this&&this.__assign||function(){ub=Object.assign||function(f){for(var b,a=1,e=arguments.length;a<e;a++){b=arguments[a];for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(f[c]=b[c])}return f};return ub.apply(this,arguments)},pd=this&&this.__awaiter||function(f,b,a,e){function c(c){return c instanceof a?c:new a(function(a){a(c)})}return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}function n(a){try{l(e["throw"](a))}catch(m){h(m)}}
|
|
function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},qd=this&&this.__generator||function(f,b){function a(a){return function(c){return e([a,c])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;
|
|
h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];
|
|
return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},na;(function(f){f.shallow=function(b){return ub({},b)};(function(b){var a=this;b.json=function(a){return JSON.parse(JSON.stringify(a))};b.structuredCloneAsync=function(b){return pd(a,void 0,void 0,function(){return qd(this,function(a){return[2,new Promise(function(a){var c=new MessageChannel;c.port1.postMessage(b);c.port2.onmessage=function(c){a(c.data)}})]})})}})(f.deep||
|
|
(f.deep={}))})(na||(na={}));var rd=this&&this.__awaiter||function(f,b,a,e){function c(c){return c instanceof a?c:new a(function(a){a(c)})}return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},sd=this&&this.__generator||function(f,b){function a(a){return function(c){return e([a,c])}}function e(a){if(g)throw new TypeError("Generator is already executing.");
|
|
for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=
|
|
d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},ia;(function(f){var b=this;f.validateIsUsable=function(a){if(!(a instanceof
|
|
Response))throw t.create("ResponseInvalid");if("opaqueredirect"===a.type)throw t.create("ResponseOpaqueRedirect");if(!(a.body instanceof ReadableStream))throw t.create("ResponseBodyInvalid");if(a.bodyUsed||a.body.locked)throw t.create("ResponseBodyUnusable");};f.validateIsOK=function(a){if(!(a instanceof Response))throw t.create("ResponseInvalid");if(!a.ok||206===a.status)throw t.create("ResponseNotOK");};f.matchPatterns=function(a,e){return rd(b,void 0,void 0,function(){var c;return sd(this,function(b){switch(b.label){case 0:return f.validateIsUsable(a),
|
|
f.validateIsOK(a),[4,a.text()];case 1:return c=b.sent(),[2,e.map(function(a){return c.match(a)})]}})})}})(ia||(ia={}));var L;(function(f){f.parse=function(b,a){try{return new URL(b,a)}catch(e){N.print("SafeURL","parse","URL parse failed, input\x3d".concat(b))}};f.encode=function(b){return(b=f.parse(b))?b.href:void 0}})(L||(L={}));var q;(function(f){f.isObject=function(b){return!!b&&"object"===typeof b&&!Array.isArray(b)};f.isNonEmptyString=function(b){return"string"===typeof b&&0<b.length};f.isPositiveInteger=
|
|
function(b){return"number"===typeof b&&Math.floor(b)===b&&0<=b&&Infinity!==b};f.isFunction=function(b){return"function"===typeof b};f.isBoolean=function(b){return!0===b||!1===b};f.isNonEmptyArray=function(b){return Array.isArray(b)&&0<b.length};f.isOneOf=function(b,a){return-1!==a.indexOf(b)};f.isArrayWhereEvery=function(b,a){return Array.isArray(b)&&b.every(a)};f.isUndefinedOr=function(b,a){return void 0===b?!0:f.isFunction(a)?a():a};f.matchesPattern=function(b,a){return"string"===typeof b&&a.test(b)};
|
|
f.isURL=function(b){return"string"===typeof b&&!!L.parse(b)};f.isRegExp=function(b){return b instanceof RegExp}})(q||(q={}));var C;(function(f){var b=function(a,c){return q.isRegExp(c)?{safeJsonType:"__LIGHTSABER_SAFE_JSON_REG_EXP__",source:c.source,flags:c.flags}:c},a=function(a,c){if(q.isObject(c)&&q.isNonEmptyString(c.safeJsonType))switch(c.safeJsonType){case "__LIGHTSABER_SAFE_JSON_REG_EXP__":return new RegExp(c.source,c.flags)}return c};f.serialize=function(a,c,b){void 0===c&&(c=!1);void 0===
|
|
b&&(b="{}");try{return c?JSON.stringify(a,void 0,4):JSON.stringify(a)}catch(h){return N.print("SafeJSON","serialize","JSON stringify failed, input\x3d".concat(a)),b}};f.replacerSerialize=function(a,c,g){void 0===c&&(c=!1);void 0===g&&(g="{}");try{return c?JSON.stringify(a,b,4):JSON.stringify(a,b)}catch(h){return N.print("SafeJSON","replacerSerialize","JSON stringify failed, input\x3d".concat(a)),g}};f.deserialize=function(a,c){void 0===c&&(c={});try{return JSON.parse(a)}catch(g){return N.print("SafeJSON",
|
|
"deserialize","JSON parse failed, input\x3d".concat(a)),c}};f.reviverDeserialize=function(b,c){void 0===c&&(c={});try{return JSON.parse(b,a)}catch(g){return N.print("SafeJSON","reviverDeserialize","JSON parse failed, input\x3d".concat(b)),c}}})(C||(C={}));var J;(function(f){f.encode=function(b){return encodeURIComponent(b)};f.encodeRFC3986=function(b){return f.encode(b).replace(/[!'()*]/g,function(a){return"%".concat(a.charCodeAt(0).toString(16).toUpperCase())})};f.decode=function(b){try{return decodeURIComponent(b)}catch(a){N.print("SafeURIEncode",
|
|
"decode","decodeURIComponent failed, input\x3d".concat(b))}}})(J||(J={}));var Qa;(function(f){f.onlyWordChars=function(b){return b.replace(/[^\w]+/gim,"")}})(Qa||(Qa={}));var td=this&&this.__awaiter||function(f,b,a,e){function c(c){return c instanceof a?c:new a(function(a){a(c)})}return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},
|
|
ud=this&&this.__generator||function(f,b){function a(a){return function(c){return e([a,c])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=
|
|
c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),
|
|
"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},Ga;(function(f){var b=this;f.drain=function(a,e){return td(b,void 0,void 0,function(){var c,b;return ud(this,function(g){switch(g.label){case 0:return c=a.getReader(),[4,c.read()];case 1:b=g.sent(),g.label=2;case 2:if(b.done)return[3,4];e(b.value);return[4,c.read()];case 3:return b=g.sent(),[3,2];case 4:return[2]}})})}})(Ga||(Ga={}));var vb=this&&this.__awaiter||function(f,b,a,e){function c(c){return c instanceof
|
|
a?c:new a(function(a){a(c)})}return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},wb=this&&this.__generator||function(f,b){function a(a){return function(c){return e([a,c])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),
|
|
0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();
|
|
continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},r;(function(f){var b=this;f.queueTask=function(a,b){return setTimeout(a,b||0)};f.wait=function(a){return vb(b,void 0,void 0,function(){return wb(this,function(b){return[2,
|
|
new Promise(function(c){setTimeout(c,a)})]})})};f.nextTask=function(){return vb(b,void 0,void 0,function(){return wb(this,function(a){return[2,f.wait(0)]})})};f.queueMicrotask=function(a){Promise.resolve().then(function(){a()})};f.nextMicrotask=function(){return vb(b,void 0,void 0,function(){return wb(this,function(a){return[2,Promise.resolve()]})})}})(r||(r={}));var D;(function(f){f.getEpoch=function(){return Date.now()};f.getEpochSeconds=function(b){void 0===b&&(b=f.getEpoch());return Math.round(b/
|
|
1E3)};f.getUTCDate=function(b){void 0===b&&(b=f.getEpoch());return(new Date(b)).toUTCString()};f.getPerfNow=function(){return performance.now()}})(D||(D={}));var E;(function(f){var b=function(a,b,c){return c?"\x3c".concat(b,' id\x3d"').concat(c,'"\x3e').concat(a,"\x3c/").concat(b,"\x3e"):"\x3c".concat(b,"\x3e").concat(a,"\x3c/").concat(b,"\x3e")};f.div=function(a,e){return b(a,"div",e)};f.style=function(a,e){return b(a,"style",e)};f.script=function(a,e,c){if(!e)return b("(function(){".concat(a,";})();"),
|
|
"script",c);e=C.serialize(e);e=J.encodeRFC3986(e);return b('(function(){var model\x3dJSON.parse(decodeURIComponent("'.concat(e,'"));').concat(a,";})();"),"script",c)};f.ins=function(a){return b(a,"ins")};f.del=function(a){return b(a,"del")};f.span=function(a){return b(a,"span")}})(E||(E={}));var xb;(function(f){f.escapeRegExp=function(b){return b.replace(/[.*+?^${}()|[\]\\]/g,"\\$\x26")}})(xb||(xb={}));var Ra;(function(f){f.stripRefMarkersFromPath=function(b){return b.replace(/\/ref_?=[^\/]*/gi,"")||
|
|
"/"};f.stripLanguageFolderFromPath=function(b){return b.replace(/^\/\-\/[^\/]+/i,"")||"/"};f.resolveAdsRedirects=function(b){var a=L.parse(b);if(a&&"/sspa/click"===a.pathname){var e=a.searchParams.get("url");b=e?(new URL(e,a)).href:b}return b};f.getASINFromUrl=function(b){b=f.resolveAdsRedirects(b);if(b=L.parse(b))return(b=f.stripLanguageFolderFromPath(f.stripRefMarkersFromPath(b.pathname)).match(/^\/(?:[^\/]+\/dp|d|dp|gp\/product|gp\/aw\/d|gp\/mobile\/udp)\/([A-Za-z0-9]{10})/))?b[1]:void 0}})(Ra||
|
|
(Ra={}));var vd=this&&this.__read||function(f,b){var a="function"===typeof Symbol&&f[Symbol.iterator];if(!a)return f;f=a.call(f);var e,c=[];try{for(;(void 0===b||0<b--)&&!(e=f.next()).done;)c.push(e.value)}catch(h){var g={error:h}}finally{try{e&&!e.done&&(a=f["return"])&&a.call(f)}finally{if(g)throw g.error;}}return c},wd=this&&this.__spreadArray||function(f,b,a){if(a||2===arguments.length)for(var e=0,c=b.length,g;e<c;e++)!g&&e in b||(g||(g=Array.prototype.slice.call(b,0,e)),g[e]=b[e]);return f.concat(g||
|
|
Array.prototype.slice.call(b))},u=function(){function f(){}f.prototype.log=function(b,a){for(var e=[],c=2;c<arguments.length;c++)e[c-2]=arguments[c];N.print.apply(N,wd([this.constructor.name,b,a],vd(e),!1))};f.prototype.logCtor=function(b){this.log("constructor","\x3c\x3c\x3c %o",b)};return f}(),X;(function(f){f.isDebug=!1;f.isDebugVerbose=f.isDebug&&!1})(X||(X={}));var xd=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=
|
|
c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),oa=this&&this.__assign||function(){oa=Object.assign||function(f){for(var b,a=1,e=arguments.length;a<e;a++){b=arguments[a];for(var c in b)Object.prototype.hasOwnProperty.call(b,
|
|
c)&&(f[c]=b[c])}return f};return oa.apply(this,arguments)},ya=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},yd=function(f){function b(a,b){var c=f.call(this)||this;c.logCtor(arguments);c._swGlobal=a;c._requireNavigationPreloadSupport=
|
|
b.usePreloadResponseOnlyForServerResponseOnNavigations;c._logToPageProxy();return c}xd(b,f);b.prototype.validate=function(){if(!this._isBasicOK())throw t.create("UnsupportedBrowserContext");var a=this._getFeatureFailures();if(0!==a.length)throw t.create("APIUnsupported",{failures:a});};b.prototype.supports=function(){return this._isBasicOK()&&this._isFeatureOK()};b.prototype._isBasicOK=function(){return 0===this._getBasicFailures().length};b.prototype._isFeatureOK=function(){return 0===this._getFeatureFailures().length};
|
|
b.prototype._getBasicFailures=function(){var a=this._swGlobal,b={Global:!!a,ServiceWorkerGlobalScope:"ServiceWorkerGlobalScope"in a,ServiceWorkerRegistration:"ServiceWorkerRegistration"in a,Promise:"Promise"in a};return Object.keys(b).filter(function(a){return!b[a]})};b.prototype._getFeatureFailures=function(){var a=this._swGlobal,b={URL:"URL"in a,Headers:"Headers"in a,Request:"Request"in a,Response:"Response"in a,ReadableStream:"ReadableStream"in a,TextDecoder:"TextDecoder"in a,TextEncoder:"TextEncoder"in
|
|
a,Uint8Array:"Uint8Array"in a,caches:"caches"in a,clients:"clients"in a,WindowClient:"WindowClient"in a,performance:"performance"in a,Map:"Map"in a};b.Request&&(b=oa(oa({},b),{RequestMethod:"method"in Request.prototype,RequestMode:"mode"in Request.prototype,RequestDestination:"destination"in Request.prototype,RequestCredentials:"credentials"in Request.prototype,RequestRedirect:"redirect"in Request.prototype,RequestHeaders:"headers"in Request.prototype,RequestIsHistoryNavigation:"isHistoryNavigation"in
|
|
Request.prototype}));b.Response&&(b=oa(oa({},b),{ResponseBody:"body"in Response.prototype,ResponseType:"type"in Response.prototype,ResponseHeaders:"headers"in Response.prototype,ResponseRedirect:"function"===typeof Response.redirect}));this._requireNavigationPreloadSupport&&(b=oa(oa({},b),{NavigationPreload:"NavigationPreloadManager"in a&&"navigationPreload"in ServiceWorkerRegistration.prototype&&"function"===typeof NavigationPreloadManager.prototype.getState&&a.registration&&a.registration.navigationPreload&&
|
|
a.registration.navigationPreload.getState()instanceof Promise}));return Object.keys(b).filter(function(a){return!b[a]})};b.prototype._logToPageProxy=function(){var a=this;this._isBasicOK()&&this._swGlobal.addEventListener("aui-sw:page-proxy:feature-tags:request",function(b){b=b.detail.callback;var c=[];c.push("Version:".concat(v.VERSION));c.push("Supported:".concat(a._isFeatureOK()?"Yes":"No"));b(Promise.resolve(c.map(function(c){return Pa.format(a._swGlobal,"Client:".concat(c))})))})};ya([k],b.prototype,
|
|
"validate",null);ya([k],b.prototype,"supports",null);ya([k],b.prototype,"_isBasicOK",null);ya([k],b.prototype,"_isFeatureOK",null);ya([k],b.prototype,"_getBasicFailures",null);ya([k],b.prototype,"_getFeatureFailures",null);ya([k],b.prototype,"_logToPageProxy",null);return b}(u),ja;(function(f){f.create=function(b){return{timeOriginEpoch:D.getEpoch(),timeOriginPerfNow:D.getPerfNow(),clientId:b||"unknown",errorContext:{BuildVersion:v.FULL_VERSION}}}})(ja||(ja={}));var yb;(function(f){var b=/(?:^|(?:\s*,\s*))([^\x00-\x20\(\)<>@,;:\\"\/\[\]\?=\{\}\x7F]+)(?:=(?:([^\x00-\x20\(\)<>@,;:\\"\/\[\]\?=\{\}\x7F]+)|(?:"((?:[^"\\]|\\.)*)")))?/g;
|
|
f.parseCacheControl=function(a){var e={};a=a.get("cache-control");if(!a)return e;a.replace(b,function(a,b,h,d){a=h||d;e[b]=a?a.toLowerCase():!0;return""});e["max-age"]&&(a=parseInt(e["max-age"],10),isNaN(a)?delete e["max-age"]:e["max-age"]=a);return e};f.hasLightsaberNoStore=function(a){return f.parseCacheControl(a.headers).hasOwnProperty("lightsaber-no-store")}})(yb||(yb={}));var bb;(function(f){var b="x-amz-".concat(v.NAMESPACE_LCASE,"-");f.REQUEST_ID_OPF_HEADER="x-amz-rid";f.getLibHeader=function(a){return"".concat(b).concat(a).trim().toLowerCase()};
|
|
f.getClientOnlyLibHeader=function(a){return"".concat(b,"clientonly-").concat(a).trim().toLowerCase()};f.removeLibHeaders=function(a){return Oa.removeHeadersWithPrefix(a,b)}})(bb||(bb={}));var zb;(function(f){var b=bb.getLibHeader("client-version");f.appendClientVersion=function(a){a.append(b,v.VERSION)}})(zb||(zb={}));var Ab;(function(f){f.getSchema=function(b){return b.searchParams.get("schema")};f.getPayload=function(b){return b.searchParams.get("payload")};f.getClient=function(b){return b.searchParams.get("client")};
|
|
f.getAttribution=function(b){return b.searchParams.get("attribution")}})(Ab||(Ab={}));var Bb;(function(f){f.getParamName=function(){return"lsskpint"};f.getParam=function(b){return b.searchParams.get("lsskpint")};f.setParam=function(b,a){b.searchParams.append("lsskpint",a)}})(Bb||(Bb={}));var x;(function(f){f.cacheControl=yb;f.clientInfo=zb;f.clientMessageAsFetch=Ab;f.shared=bb;f.skipIntercept=Bb})(x||(x={}));var zd=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Sa=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,
|
|
a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},cb=function(f){function b(a,b){var c=f.call(this)||this;c.logCtor(arguments);c.cacheOperator=a;c.eventBus=b;return c}zd(b,f);b.prototype.getName=function(){return this.NAME};b.prototype.getPrefixedHeaderName=function(a){return x.shared.getClientOnlyLibHeader(a)};b.prototype.encodeHeaderValue=
|
|
function(a){return J.encode(C.serialize(a))};b.prototype.decodeHeaderValue=function(a){return(a=J.decode(a))?C.deserialize(a):void 0};b.prototype.updateResponseHeaders=function(a,b){return new Response(a.body,{headers:b,status:a.status,statusText:a.statusText})};Sa([k],b.prototype,"getName",null);Sa([k],b.prototype,"getPrefixedHeaderName",null);Sa([k],b.prototype,"encodeHeaderValue",null);Sa([k],b.prototype,"decodeHeaderValue",null);Sa([k],b.prototype,"updateResponseHeaders",null);return b}(u),Ad=
|
|
this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Bd=this&&
|
|
this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Cd=this&&this.__awaiter||function(f,b,a,e){function c(c){return c instanceof a?c:new a(function(a){a(c)})}return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}
|
|
function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},Dd=this&&this.__generator||function(f,b){function a(a){return function(c){return e([a,c])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;
|
|
case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:
|
|
void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},Ed=function(f){function b(a,b){var c=f.call(this,a,b)||this;c.NAME="LREEviction";c.logCtor(arguments);return c}Ad(b,f);b.prototype.cacheWillUpdate=function(a,b,c,g){return Cd(this,void 0,void 0,function(){var b,e,f,l,p,k,q,r,db=this;return Dd(this,function(d){switch(d.label){case 0:return c?
|
|
(b=this._getKeyPrefix(g))?[4,this.cacheOperator.entries(a)]:[2]:[2,c];case 1:e=d.sent();f=this._filterEntriesForKeyPrefix(e,b);l=this._getMaxEntriesPerKeyPrefix(g);if(!l)return[2];p=!0;if(!(f.length>=l))return[3,3];k=1===l?f:f.slice(0,-1*(l-1));q=k.map(function(c){return db.cacheOperator.evict(a,c,g)});return[4,Promise.all(q)];case 2:r=d.sent(),p=r.every(Boolean),d.label=3;case 3:if(!p)throw t.create("CacheWriteQuotaExceeded");return[2,c]}})})};b.prototype._getKeyPrefix=function(a){return a&&q.isNonEmptyString(a.keyPrefix)?
|
|
a.keyPrefix:void 0};b.prototype._getMaxEntriesPerKeyPrefix=function(a){return a&&a.maxEntriesPerKeyPrefix&&q.isPositiveInteger(a.maxEntriesPerKeyPrefix)?a.maxEntriesPerKeyPrefix:void 0};b.prototype._filterEntriesForKeyPrefix=function(a,b){var c=this;return a.filter(function(a){return c._doesRequestBelongToKeyPrefix(a,b)})};b.prototype._doesRequestBelongToKeyPrefix=function(a,b){return 0===("string"===typeof a?a:a.url).indexOf(b)};Bd([k],b.prototype,"cacheWillUpdate",null);return b}(cb),Fd=this&&this.__extends||
|
|
function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),eb=this&&this.__decorate||function(f,
|
|
b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},kc=this&&this.__awaiter||function(f,b,a,e){function c(c){return c instanceof a?c:new a(function(a){a(c)})}return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}
|
|
function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},lc=this&&this.__generator||function(f,b){function a(a){return function(c){return e([a,c])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;
|
|
case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:
|
|
void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},Gd=function(f){function b(a,b){var c=f.call(this,a,b)||this;c.NAME="MaxAge";c.logCtor(arguments);c._header="".concat(f.prototype.getPrefixedHeaderName.call(c,c.NAME));return c}Fd(b,f);b.prototype.cacheWillUpdate=function(a,b,c,g){return kc(this,void 0,void 0,function(){var a,
|
|
b;return lc(this,function(e){if(!c)return[2,c];a={startSeconds:this._getRequestStartTimestampSeconds(g),deltaSeconds:this._getMaxAgeSeconds(g)};if(0>a.startSeconds||0>a.deltaSeconds)return[2];b=new Headers(c.headers||{});b.append(this._header,this.encodeHeaderValue(a));return[2,this.updateResponseHeaders(c,b)]})})};b.prototype.responseWillBeUsed=function(a,b,c,g){return kc(this,void 0,void 0,function(){var e,g,f,l;return lc(this,function(d){if(!c)return[2,c];e=c.headers.get(this._header);if(!e)return[2];
|
|
g=this.decodeHeaderValue(e);if(!g||"number"!==typeof g.startSeconds||"number"!==typeof g.deltaSeconds)return[2];f=g.startSeconds+g.deltaSeconds;l=D.getEpochSeconds();return f<l?(this.eventBus.publish({name:"CacheTTLExpired",detail:{eventOptions:a,request:b,response:c}}),[2]):[2,c]})})};b.prototype._getRequestStartTimestampSeconds=function(a){return a&&"number"===typeof a.requestStartTimestampSeconds?a.requestStartTimestampSeconds:-1};b.prototype._getMaxAgeSeconds=function(a){return a&&"number"===
|
|
typeof a.maxAgeSeconds?a.maxAgeSeconds:-1};eb([k],b.prototype,"cacheWillUpdate",null);eb([k],b.prototype,"responseWillBeUsed",null);eb([k],b.prototype,"_getRequestStartTimestampSeconds",null);eb([k],b.prototype,"_getMaxAgeSeconds",null);return b}(cb),Hd=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return f(b,a)};return function(b,
|
|
a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Cb=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=
|
|
(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Id=this&&this.__awaiter||function(f,b,a,e){function c(c){return c instanceof a?c:new a(function(a){a(c)})}return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},Jd=this&&this.__generator||function(f,b){function a(a){return function(c){return e([a,c])}}
|
|
function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&
|
|
(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),
|
|
n},Kd=function(f){function b(a,b){var c=f.call(this,a,b)||this;c.NAME="Metadata";c.logCtor(arguments);c._header="".concat(f.prototype.getPrefixedHeaderName.call(c,c.NAME));return c}Hd(b,f);b.prototype.cacheWillUpdate=function(a,b,c,g){return Id(this,void 0,void 0,function(){var a,b;return Jd(this,function(e){if(!c)return[2,c];a={requestStartTimestampSeconds:this._getRequestStartTimestampSeconds(g),attribution:this._getAttribution(g)};b=new Headers(c.headers||{});b.append(this._header,this.encodeHeaderValue(a));
|
|
return[2,this.updateResponseHeaders(c,b)]})})};b.prototype._getRequestStartTimestampSeconds=function(a){return a&&"number"===typeof a.requestStartTimestampSeconds?a.requestStartTimestampSeconds:D.getEpochSeconds()};b.prototype._getAttribution=function(a){return a&&"string"===typeof a.attribution?a.attribution:"unknown"};Cb([k],b.prototype,"cacheWillUpdate",null);Cb([k],b.prototype,"_getRequestStartTimestampSeconds",null);Cb([k],b.prototype,"_getAttribution",null);return b}(cb),Ld=this&&this.__extends||
|
|
function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Db=this&&this.__assign||function(){Db=
|
|
Object.assign||function(f){for(var b,a=1,e=arguments.length;a<e;a++){b=arguments[a];for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(f[c]=b[c])}return f};return Db.apply(this,arguments)},Ua=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<
|
|
c&&g&&Object.defineProperty(b,a,g),g},mc=this&&this.__awaiter||function(f,b,a,e){function c(c){return c instanceof a?c:new a(function(a){a(c)})}return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},nc=this&&this.__generator||function(f,b){function a(a){return function(c){return e([a,c])}}function e(a){if(g)throw new TypeError("Generator is already executing.");
|
|
for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=
|
|
d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},Md=function(f){function b(a,b){var c=f.call(this,a,b)||this;c.NAME="ValidationKeys";
|
|
c.logCtor(arguments);c._header="".concat(f.prototype.getPrefixedHeaderName.call(c,c.NAME));return c}Ld(b,f);b.prototype.cacheWillUpdate=function(a,b,c,g){return mc(this,void 0,void 0,function(){var a,b;return nc(this,function(e){if(!c)return[2,c];a=this._getKeysFromOptions(g);b=new Headers(c.headers||{});b.append(this._header,this.encodeHeaderValue(a));return[2,this.updateResponseHeaders(c,b)]})})};b.prototype.responseWillBeUsed=function(a,b,c,g){return mc(this,void 0,void 0,function(){var a,b,e;
|
|
return nc(this,function(d){if(!c)return[2,c];try{return a=this._getKeysFromResponse(c),b=this._getKeysFromOptions(g),e=this._doKeysMatch(a,b),[2,e?c:void 0]}catch(p){}return[2]})})};b.prototype._getKeysFromOptions=function(a){if(!a)return{};var b=a.validationKeys;if("object"!==typeof b||null===b)return{};Object.keys(b).forEach(function(a){var c=b[a];if(!("string"===typeof a&&"string"===typeof c&&0<a.length))throw t.create("InvalidKeyPair",{key:a,value:c},void 0,"Key:value pairs must all be non-empty string:string");
|
|
});return Db({},b)};b.prototype._getKeysFromResponse=function(a){a=a.headers.get(this._header);if(!a)return{};var b=this.decodeHeaderValue(a);if(b)return b;throw t.create("UnreadableHeader",{key:this._header,value:a});};b.prototype._doKeysMatch=function(a,b){return Object.keys(a).every(function(c){return b.hasOwnProperty(c)&&a[c]===b[c]})};Ua([k],b.prototype,"cacheWillUpdate",null);Ua([k],b.prototype,"responseWillBeUsed",null);Ua([k],b.prototype,"_getKeysFromOptions",null);Ua([k],b.prototype,"_getKeysFromResponse",
|
|
null);Ua([k],b.prototype,"_doKeysMatch",null);return b}(cb),Nd=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===
|
|
a?Object.create(a):(e.prototype=a.prototype,new e)}}(),A=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},O=this&&this.__awaiter||function(f,b,a,e){function c(c){return c instanceof a?c:new a(function(a){a(c)})}
|
|
return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},F=this&&this.__generator||function(f,b){function a(a){return function(c){return e([a,c])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,
|
|
a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,
|
|
c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},Eb=this&&this.__read||function(f,b){var a="function"===typeof Symbol&&f[Symbol.iterator];if(!a)return f;f=a.call(f);var e,c=[];try{for(;(void 0===b||0<b--)&&!(e=f.next()).done;)c.push(e.value)}catch(h){var g=
|
|
{error:h}}finally{try{e&&!e.done&&(a=f["return"])&&a.call(f)}finally{if(g)throw g.error;}}return c},Od=function(f){function b(a,e,c,g,h,d,n){var l=f.call(this)||this;l.logCtor(arguments);l._swGlobal=a;l._metricsService=e;l._cacheFullName="".concat(b._CACHE_NAME_PREFIX).concat(h);l._cacheFullNameWithVersion="".concat(l._cacheFullName,"V").concat(d);l._errorLoggingScope="CacheOperator:".concat(h);l._plugins=l._initCachePlugins(c,g);n&&l._cleanupOldCache();r.queueMicrotask(function(){return O(l,void 0,
|
|
void 0,function(){return F(this,function(a){switch(a.label){case 0:return[4,this._primeCache()];case 1:return a.sent(),[2]}})})});return l}Nd(b,f);b.prototype.read=function(a,b,c){return O(this,void 0,void 0,function(){var e,h,d,f,l,p;return F(this,function(g){switch(g.label){case 0:e=this._toInternalRequest(b),h=na.shallow(c),d=0,g.label=1;case 1:if(!(d<this._plugins.length))return[3,4];f=this._plugins[d];return"function"!==typeof f.requestWillBeUsed?[3,3]:[4,f.requestWillBeUsed(a,"read",e,h)];case 2:p=
|
|
Eb.apply(void 0,[g.sent(),2]),e=p[0],h=p[1],g.label=3;case 3:return d++,[3,1];case 4:return[4,this._read(a,e,this._getInternalCacheQueryOptions())];case 5:l=g.sent(),d=this._plugins.length-1,g.label=6;case 6:if(!(0<=d))return[3,9];f=this._plugins[d];return"function"!==typeof f.responseWillBeUsed?[3,8]:[4,f.responseWillBeUsed(a,e,l,h)];case 7:l=g.sent(),g.label=8;case 8:return d--,[3,6];case 9:return[2,l]}})})};b.prototype.write=function(a,b,c,g){return O(this,void 0,void 0,function(){var e,d,f,l,
|
|
p,k,q;return F(this,function(h){switch(h.label){case 0:e=this._toInternalRequest(b),d=this._cloneResponse(a,c),f=na.shallow(g),l=0,h.label=1;case 1:if(!(l<this._plugins.length))return[3,7];p=this._plugins[l];return"function"!==typeof p.requestWillBeUsed?[3,3]:[4,p.requestWillBeUsed(a,"write",e,f)];case 2:q=Eb.apply(void 0,[h.sent(),2]),e=q[0],f=q[1],h.label=3;case 3:return"function"!==typeof p.cacheWillUpdate?[3,5]:[4,p.cacheWillUpdate(a,e,d,f)];case 4:d=h.sent(),h.label=5;case 5:if(void 0===d)return this.log("write",
|
|
"Cancelled by ".concat(p.getName(),' plugin via "cacheWillUpdate" hook')),[2];h.label=6;case 6:return l++,[3,1];case 7:return[4,this._read(a,e,this._getInternalCacheQueryOptions())];case 8:return k=h.sent(),[4,this._write(a,e,d)];case 9:h.sent(),l=this._plugins.length-1,h.label=10;case 10:if(!(0<=l))return[3,13];p=this._plugins[l];return"function"!==typeof p.cacheDidUpdate?[3,12]:[4,p.cacheDidUpdate(a,e,k,d,f)];case 11:h.sent(),h.label=12;case 12:return l--,[3,10];case 13:return[2]}})})};b.prototype.evict=
|
|
function(a,b,c){return O(this,void 0,void 0,function(){var e,h,d,f,l,p,k;return F(this,function(g){switch(g.label){case 0:e=this._toInternalRequest(b),h=na.shallow(c),d=0,g.label=1;case 1:if(!(d<this._plugins.length))return[3,4];f=this._plugins[d];return"function"!==typeof f.requestWillBeUsed?[3,3]:[4,f.requestWillBeUsed(a,"evict",e,h)];case 2:k=Eb.apply(void 0,[g.sent(),2]),e=k[0],h=k[1],g.label=3;case 3:return d++,[3,1];case 4:return[4,this._read(a,e,this._getInternalCacheQueryOptions())];case 5:return l=
|
|
g.sent(),[4,this._evict(a,e,this._getInternalCacheQueryOptions())];case 6:p=g.sent();if(!p)return[2,p];d=this._plugins.length-1;g.label=7;case 7:if(!(0<=d))return[3,10];f=this._plugins[d];return"function"!==typeof f.cacheDidUpdate?[3,9]:[4,f.cacheDidUpdate(a,e,l,void 0,h)];case 8:g.sent(),g.label=9;case 9:return d--,[3,7];case 10:return[2,p]}})})};b.prototype.exists=function(a,b,c){return O(this,void 0,void 0,function(){var e;return F(this,function(g){switch(g.label){case 0:return[4,this.read(a,b,
|
|
c)];case 1:return e=g.sent(),[2,!!e]}})})};b.prototype.cleanup=function(a){var b=this;this._isCacheTainted||(this._isCacheTainted=!0,r.queueTask(function(){return O(b,void 0,void 0,function(){var c,b;return F(this,function(e){switch(e.label){case 0:return this._metricsService.count(a,"CacheEviction:Request"),[4,this._cleanupCache(a)];case 1:return b=(c=e.sent())?"Success":"Fail",this._metricsService.count(a,"CacheEviction:".concat(b)),this._metricsService.mark(a,"CacheEviction:".concat(b)),this._isCacheTainted=
|
|
!1,[4,this._primeCache()];case 2:return e.sent(),[2]}})})}))};b.prototype.entries=function(a){return O(this,void 0,void 0,function(){var b,c,g=this;return F(this,function(e){switch(e.label){case 0:return[4,this._getCache(a)];case 1:return b=e.sent(),[4,b.keys()];case 2:return c=e.sent().map(function(a){return g._toExternalRequest(a)}),this._metricsService.count(a,"CacheEntryCount:".concat(this._cacheFullName),c.length),[2,c]}})})};b.prototype._initCachePlugins=function(a,b){var c=this;return b.map(function(b){return c._createPluginInstance(a,
|
|
b)})};b.prototype._createPluginInstance=function(a,b){switch(b){case "MaxAge":return new Gd(this,a);case "ValidationKeys":return new Md(this,a);case "Metadata":return new Kd(this,a);case "LREEviction":return new Ed(this,a);default:throw t.create("UnrecognizedCachePlugin",{name:b});}};b.prototype._cleanupCache=function(a){return O(this,void 0,void 0,function(){var b,c;return F(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this._swGlobal.caches.has(this._cacheFullNameWithVersion)];
|
|
case 1:return(b=e.sent())?(this._cache=void 0,[2,this._swGlobal.caches.delete(this._cacheFullNameWithVersion)]):[3,3];case 2:return c=e.sent(),this._metricsService.error(a,c,this._errorLoggingScope,"ERROR"),this._metricsService.countError(a,c,this._errorLoggingScope),[2,!1];case 3:return[2,!0]}})})};b.prototype._read=function(a,b,c){return O(this,void 0,void 0,function(){var e,h,d,f,l;return F(this,function(g){switch(g.label){case 0:return g.trys.push([0,2,,3]),[4,this._getCache(a)];case 1:return e=
|
|
g.sent(),[2,e.match(b,c)];case 2:throw h=g.sent(),d=w.matchesCodeOrSignature(h,"NetworkError",H.NETWORK_ERROR),f=w.matchesCode(h,"CacheTainted"),l=d||f,this._metricsService.error(a,h,this._errorLoggingScope,l?"ERROR":void 0),this._metricsService.countError(a,h,d?"".concat("NetworkError",":").concat(this._errorLoggingScope):this._errorLoggingScope),h;case 3:return[2]}})})};b.prototype._write=function(a,b,c){return O(this,void 0,void 0,function(){var e,h,d,f,l,p,k;return F(this,function(g){switch(g.label){case 0:return g.trys.push([0,
|
|
4,,5]),[4,r.nextTask()];case 1:g.sent();if("GET"!==b.method)throw t.create("RequestMethodNotGet",{method:b.method});e=L.parse(b.url);if(!e)throw t.create("InvalidURL",{url:b.url});h=e.protocol;if("http:"!==h&&"https:"!==h)throw t.create("RequestURLSchemeNonHTTP",{scheme:h});ia.validateIsUsable(c);ia.validateIsOK(c);return[4,this._getCache(a)];case 2:return d=g.sent(),[4,d.put(b,c)];case 3:return g.sent(),[3,5];case 4:throw f=g.sent(),l=w.matchesCodeOrSignature(f,"NetworkError",H.NETWORK_ERROR),p=
|
|
w.matchesCode(f,"CacheTainted"),k=l||p,this._metricsService.error(a,f,this._errorLoggingScope,k?"ERROR":void 0),this._metricsService.countError(a,f,l?"".concat("NetworkError",":").concat(this._errorLoggingScope):this._errorLoggingScope),f;case 5:return[2]}})})};b.prototype._evict=function(a,b,c){return O(this,void 0,void 0,function(){var e,h,d,f,l;return F(this,function(g){switch(g.label){case 0:return g.trys.push([0,3,,4]),[4,r.nextTask()];case 1:return g.sent(),[4,this._getCache(a)];case 2:return e=
|
|
g.sent(),[2,e.delete(b,c)];case 3:throw h=g.sent(),d=w.matchesCodeOrSignature(h,"NetworkError",H.NETWORK_ERROR),f=w.matchesCode(h,"CacheTainted"),l=d||f,this._metricsService.error(a,h,this._errorLoggingScope,l?"ERROR":void 0),this._metricsService.countError(a,h,d?"".concat("NetworkError",":").concat(this._errorLoggingScope):this._errorLoggingScope),h;case 4:return[2]}})})};b.prototype._getCache=function(a){return O(this,void 0,void 0,function(){var b,c,g;return F(this,function(e){switch(e.label){case 0:if(this._isCacheTainted)throw t.create("CacheTainted",
|
|
{cacheName:this._cacheFullNameWithVersion});if(this._cache)return[2,this._cache];b=D.getPerfNow();return[4,this._swGlobal.caches.open(this._cacheFullNameWithVersion)];case 1:return c=e.sent(),g="".concat(this._errorLoggingScope,":CacheOpen"),this._metricsService.mark(a,g,b),this._metricsService.tag(a,g),this._cache||(this._cache=c),[2,this._cache]}})})};b.prototype._primeCache=function(){return O(this,void 0,void 0,function(){var a,b,c,g,h,d,f;return F(this,function(e){switch(e.label){case 0:a=ja.create(),
|
|
e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this._getCache(a)];case 2:return e.sent(),[3,4];case 3:return b=e.sent(),c=t.create("CacheOpen",{cacheName:this._cacheFullNameWithVersion},b),g=w.matchesSignature(b,H.UNEXPECTED_INTERNAL_ERROR),h=w.matchesCode(b,"CacheTainted"),d=w.matchesCodeOrSignature(b,"NetworkError",H.NETWORK_ERROR),f=g||d||h,this._metricsService.error(a,c,this._errorLoggingScope,f?"ERROR":void 0),[3,4];case 4:return[2]}})})};b.prototype._cleanupOldCache=function(){var a=this,
|
|
b=function(){return O(a,void 0,void 0,function(){var a,b,e;return F(this,function(c){switch(c.label){case 0:return[4,this._swGlobal.caches.keys()];case 1:a=c.sent(),b=0,c.label=2;case 2:if(!(b<a.length))return[3,5];e=a[b];return 0!==e.indexOf(this._cacheFullName)||e===this._cacheFullNameWithVersion?[3,4]:[4,this._swGlobal.caches.delete(e)];case 3:c.sent(),c.label=4;case 4:return b++,[3,2];case 5:return[2]}})})};this._swGlobal.addEventListener("activate",function(a){a.waitUntil(b())})};b.prototype._toInternalRequest=
|
|
function(a){a=J.encode("string"===typeof a?a:a.url);a="https://".concat(v.NAMESPACE_LCASE,"?key\x3d").concat(a);return new Request(a,{method:"GET"})};b.prototype._toExternalRequest=function(a){var b="string"===typeof a?a:a.url,c="https://".concat(v.NAMESPACE_LCASE);a=t.create("InvalidCacheInternalRequestURL",{request:a});b=L.parse(b);if(!b)throw a;if(b.origin!==c)throw a;c=b.searchParams.get("key");if(!c)throw a;c=J.decode(c);if(!c)throw a;return c};b.prototype._cloneResponse=function(a,b){try{return b.clone()}catch(c){throw b=
|
|
t.wrap(c,"ResponseClone"),this._metricsService.error(a,b,this._errorLoggingScope),this._metricsService.countError(a,b,this._errorLoggingScope),b;}};b.prototype._getInternalCacheQueryOptions=function(){return{ignoreMethod:!1,ignoreSearch:!1,ignoreVary:!0}};b._CACHE_NAME_PREFIX=v.NAMESPACE;A([k],b.prototype,"read",null);A([k],b.prototype,"write",null);A([k],b.prototype,"evict",null);A([k],b.prototype,"exists",null);A([k],b.prototype,"cleanup",null);A([k],b.prototype,"entries",null);A([k],b.prototype,
|
|
"_initCachePlugins",null);A([k],b.prototype,"_createPluginInstance",null);A([k],b.prototype,"_cleanupCache",null);A([k],b.prototype,"_read",null);A([k],b.prototype,"_write",null);A([k],b.prototype,"_evict",null);A([k],b.prototype,"_getCache",null);A([k],b.prototype,"_primeCache",null);A([k],b.prototype,"_cleanupOldCache",null);A([k],b.prototype,"_toInternalRequest",null);A([k],b.prototype,"_toExternalRequest",null);A([k],b.prototype,"_cloneResponse",null);A([k],b.prototype,"_getInternalCacheQueryOptions",
|
|
null);return b}(u),Pd=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,
|
|
new e)}}(),pa=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},fb=this&&this.__awaiter||function(f,b,a,e){function c(c){return c instanceof a?c:new a(function(a){a(c)})}return new (a||(a=Promise))(function(a,
|
|
h){function g(a){try{l(e.next(a))}catch(m){h(m)}}function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},gb=this&&this.__generator||function(f,b){function a(a){return function(c){return e([a,c])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&
|
|
2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=
|
|
d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},Qd=function(f){function b(a,b,c,g){var e=f.call(this)||this;e.logCtor(arguments);e._initCacheOperators(a,b,g,c);g.subscribe("CustomerContextChange",e,"sync");e._metricsService=b;return e}Pd(b,f);b.prototype.read=function(a,b,
|
|
c,g){return fb(this,void 0,void 0,function(){return gb(this,function(e){return[2,this._getCacheOperator(b).read(a,c,g)]})})};b.prototype.write=function(a,b,c,g,h){return fb(this,void 0,void 0,function(){return gb(this,function(e){return[2,this._getCacheOperator(b).write(a,c,g,h)]})})};b.prototype.evict=function(a,b,c,g){return fb(this,void 0,void 0,function(){return gb(this,function(e){return[2,this._getCacheOperator(b).evict(a,c,g)]})})};b.prototype.exists=function(a,b,c,g){return fb(this,void 0,
|
|
void 0,function(){return gb(this,function(e){return[2,this._getCacheOperator(b).exists(a,c,g)]})})};b.prototype.notifyEvent=function(a){var b=this;switch(a.name){case "CustomerContextChange":Object.keys(this._cacheOperators).forEach(function(c){b._cacheOperators[c].cleanup(a.detail.eventOptions)}),this._logCacheEvictionMetricsOnCustomerContextChange(a.detail.options,a.detail.eventOptions)}};b.prototype._getCacheOperator=function(a){if(!this._cacheOperators[a])throw t.create("UnrecognizedCacheName",
|
|
{name:a});return this._cacheOperators[a]};b.prototype._initCacheOperators=function(a,b,c,g){var e=this;this._validateNoDuplicateCaches(g);this._cacheOperators={};g.forEach(function(g){var d=g.name,h=g.version,f=g.dontCleanOldVersions;e._cacheOperators[g.name]=new Od(a,b,c,Array.isArray(g.plugins)?g.plugins:[],d,h,!f)})};b.prototype._validateNoDuplicateCaches=function(a){var b={};a.forEach(function(a){if(b.hasOwnProperty(a.name))throw t.create("DuplicateCacheName",{name:a.name});b[a.name]=!0})};b.prototype._logCacheEvictionMetricsOnCustomerContextChange=
|
|
function(a,b){var c=this;a.changes.forEach(function(e){var g,d;c._metricsService.count(b,"CacheService:CacheEvictionOn:".concat(e));"lop"===e&&c._metricsService.count(b,"CacheService:CacheEvictionOn:".concat(e,":").concat(null===(g=a[e])||void 0===g?void 0:g.old,"_").concat(null===(d=a[e])||void 0===d?void 0:d.new))})};pa([k],b.prototype,"read",null);pa([k],b.prototype,"write",null);pa([k],b.prototype,"evict",null);pa([k],b.prototype,"exists",null);pa([k],b.prototype,"notifyEvent",null);pa([k],b.prototype,
|
|
"_getCacheOperator",null);pa([k],b.prototype,"_initCacheOperators",null);pa([k],b.prototype,"_validateNoDuplicateCaches",null);return b}(u),Rd=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+
|
|
String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Fb=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},oc=this&&this.__awaiter||function(f,
|
|
b,a,e){function c(c){return c instanceof a?c:new a(function(a){a(c)})}return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},pc=this&&this.__generator||function(f,b){function a(a){return function(c){return e([a,c])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:
|
|
a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=
|
|
d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},hb=function(f){function b(a){var b=f.call(this)||this;b._customerContextService=a;return b}Rd(b,f);b.prototype.compute=
|
|
function(a){return oc(this,void 0,void 0,function(){var b,c,g,h,d=this;return pc(this,function(e){switch(e.label){case 0:return b=a.map(function(a){return d._getValueForKey(a)}),[4,Promise.all(b)];case 1:c=e.sent();g={};for(h=0;h<a.length;h++)g[a[h]]=c[h];return[2,g]}})})};b.prototype._getValueForKey=function(a){return oc(this,void 0,void 0,function(){var b,c,g,h;return pc(this,function(e){switch(a){case "clientlibversion":return[2,v.VERSION];case "session":return b=this._customerContextService.getSessionId(),
|
|
[2,this._getValueOrUnknown(b)];case "recognition":return c=this._customerContextService.getDirectedCustomerId(),[2,this._getValueOrUnknown(c)];case "language":return g=this._customerContextService.getLanguage(),[2,this._getValueOrUnknown(g)];case "appversion":return h=this._customerContextService.getAppVersion(),[2,this._getValueOrUnknown(h)];default:throw t.create("UnrecognizedCacheValidationKey",{key:a});}})})};b.prototype._getValueOrUnknown=function(a){return"string"===typeof a&&0<a.length?a:"unknown"};
|
|
Fb([k],b.prototype,"compute",null);Fb([k],b.prototype,"_getValueForKey",null);Fb([k],b.prototype,"_getValueOrUnknown",null);return b}(u),Sd=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+
|
|
String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Td=function(f){function b(){return null!==f&&f.apply(this,arguments)||this}Sd(b,f);return b}(u),Ud=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return f(b,a)};return function(b,a){function e(){this.constructor=
|
|
b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),qc=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||
|
|
g;return 3<c&&g&&Object.defineProperty(b,a,g),g},rc=function(f){function b(a,b,c){void 0===b&&(b=!0);void 0===c&&(c=!0);var e=f.call(this)||this;e.logCtor(arguments);e._pattern=a;e._stripRefMarkers=b;e._stripLanguageFolder=c;return e}Ud(b,f);b.prototype.match=function(a,b,c){return(a=L.parse(a.url))?this._pattern.test(this._getNormalizedPath(a.pathname)):!1};b.prototype._getNormalizedPath=function(a){this._stripRefMarkers&&(a=Ra.stripRefMarkersFromPath(a));this._stripLanguageFolder&&(a=Ra.stripLanguageFolderFromPath(a));
|
|
return a};qc([k],b.prototype,"match",null);qc([k],b.prototype,"_getNormalizedPath",null);return b}(Td),Vd=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");
|
|
f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),ib=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Gb=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof
|
|
a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},Hb=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),
|
|
0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();
|
|
continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},Ib=function(f){function b(a,b,c){var e=f.call(this)||this;e.logCtor(arguments);e._url=a;e._requestInit=b;e._libVersionHeader=c;return e}Vd(b,f);b.prototype.getResponse=function(){return Gb(this,
|
|
void 0,void 0,function(){var a,b;return Hb(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,fetch(this._url,this._getRequestInit(this._requestInit))];case 1:return a=c.sent(),[3,3];case 2:throw b=c.sent(),t.wrap(b,"FailedToFetch",{url:this._url,requestInit:this._requestInit});case 3:if("opaqueredirect"===a.type)throw t.create("ResponseOpaqueRedirect",{url:a.url,status:a.status});if(!a.ok)throw t.create("ResponseNotOK",{url:a.url,status:a.status});return[2,a]}})})};b.prototype.getResponseText=
|
|
function(){return Gb(this,void 0,void 0,function(){var a;return Hb(this,function(b){switch(b.label){case 0:return[4,this.getResponse()];case 1:return a=b.sent(),[2,a.text()]}})})};b.prototype.getResponseJson=function(){return Gb(this,void 0,void 0,function(){var a,b,c;return Hb(this,function(e){switch(e.label){case 0:return[4,this.getResponse()];case 1:a=e.sent(),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,a.json()];case 3:return b=e.sent(),[3,5];case 4:throw c=e.sent(),t.wrap(c,"ResponseNotJSON",
|
|
{url:a.url});case 5:return[2,b]}})})};b.prototype._getRequestInit=function(a){a=a||{};a.method||(a.method="GET");if(this._libVersionHeader){var b=new Headers(a.headers||{});x.clientInfo.appendClientVersion(b);a.headers=b}return a};ib([k],b.prototype,"getResponse",null);ib([k],b.prototype,"getResponseText",null);ib([k],b.prototype,"getResponseJson",null);ib([k],b.prototype,"_getRequestInit",null);return b}(u),Wd=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),qa=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,
|
|
a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Jb=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):
|
|
c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},Kb=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;
|
|
case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},
|
|
trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},Xd=function(f){function b(a,b,c,g){var e=f.call(this)||this;e.logCtor(arguments);e._swGlobal=a;e._customerContextService=b;e._cacheService=c;e._metricsService=g;e._errorLoggingScope="PrefetchExecutor";return e}Wd(b,f);b.prototype.prefetch=function(a,b,c){return Jb(this,void 0,void 0,function(){var e,h,d,f,l,p,k,q,t,db,u,Ta,M,ra,v,x,y;return Kb(this,function(g){switch(g.label){case 0:return e=
|
|
b.prefetch,h=e.endpoint,d=e.mode,f=e.delay,[4,r.wait(1E3*f)];case 1:g.sent();l=a.storage;p=l.cacheName;k=l.cacheKey;q=l.validationKeys;if("cache-miss"!==d)return[3,5];g.label=2;case 2:return g.trys.push([2,4,,5]),[4,this._exists(p,k,q,c)];case 3:return(t=g.sent())?[2,{ok:!1,exitCode:"Exists"}]:[3,5];case 4:return g.sent(),[2,{ok:!1,exitCode:"CacheError"}];case 5:return[4,this._hasPrefetchCredit()];case 6:db=g.sent();if(!db)return[2,{ok:!1,exitCode:"NoCredit"}];u=this._getPrefetchURL(h,a.name,b.label);
|
|
if(!u)return[2,{ok:!1,exitCode:"InvalidURL"}];Ta=D.getEpochSeconds();g.label=7;case 7:return g.trys.push([7,9,,10]),[4,(new Ib(u,this._getPrefetchRequestInit())).getResponse()];case 8:return M=g.sent(),[2,{ok:!0,requestStartTimestampSeconds:Ta,response:M}];case 9:return ra=g.sent(),v=w.matchesCode(ra,"FailedToFetch"),x=w.matchesCodeOrSignature(ra,"NetworkError",H.NETWORK_ERROR),this._metricsService.error(c,ra,this._errorLoggingScope,v||x?"ERROR":void 0),y=this._errorLoggingScope,x?y="".concat("NetworkError",
|
|
":").concat(this._errorLoggingScope):v&&(y="".concat("FailedToFetch",":").concat(this._errorLoggingScope)),this._metricsService.countError(c,ra,y),[2,{ok:!1,exitCode:"NetworkError"}];case 10:return[2]}})})};b.prototype._exists=function(a,b,c,g){return Jb(this,void 0,void 0,function(){var e,d,f,l;return Kb(this,function(h){switch(h.label){case 0:return d=(e=this._cacheService).exists,f=[g,a,b],l={},[4,(new hb(this._customerContextService)).compute(c)];case 1:return[2,d.apply(e,f.concat([(l.validationKeys=
|
|
h.sent(),l)]))]}})})};b.prototype._hasPrefetchCredit=function(){return Jb(this,void 0,void 0,function(){return Kb(this,function(a){return[2,!0]})})};b.prototype._getPrefetchURL=function(a,e,c){if(a=L.parse(a,this._swGlobal.location.href)){var g=this._getPageShellClass(a);this._addQueryParam(a,b._QUERY_PARAM_PAGE_SHELL,g);this._addQueryParam(a,b._QUERY_PARAM_CACHE_POP_RULE,e);this._addQueryParam(a,b._QUERY_PARAM_CACHE_POP_RULE_TRIGGER,c);this._addQueryParam(a,b._QUERY_PARAM_REF_TAG,this._getRefTag(g,
|
|
e,c),!1);return a.href}};b.prototype._addQueryParam=function(a,b,c,g){void 0===g&&(g=!0);g&&a.searchParams.delete(b);a.searchParams.append(b,c)};b.prototype._getPageShellClass=function(a){a=a.searchParams.get(b._QUERY_PARAM_PAGE_SHELL);a||(a=b._PAGE_SHELL_TYPE_DEFAULT);return a};b.prototype._getRefTag=function(a,e,c){return"".concat(b._REF_TAG_PREFIX,"_").concat(a.substr(0,16).toLocaleLowerCase(),"_").concat(e.substr(0,16).toLocaleLowerCase(),"_").concat(c.substr(0,16).toLocaleLowerCase())};b.prototype._getPrefetchRequestInit=
|
|
function(){return{method:"GET",mode:"same-origin",credentials:"same-origin",redirect:"error",headers:{accept:"text/html,application/xhtml+xml,*/*;q\x3d0.9"}}};b._QUERY_PARAM_PAGE_SHELL="ls_pg_sh";b._QUERY_PARAM_CACHE_POP_RULE="ls_cp_rl";b._QUERY_PARAM_CACHE_POP_RULE_TRIGGER="ls_cp_rl_tr";b._QUERY_PARAM_REF_TAG="ref_";b._PAGE_SHELL_TYPE_DEFAULT="default";b._REF_TAG_PREFIX=v.NAMESPACE_SHORT;qa([k],b.prototype,"prefetch",null);qa([k],b.prototype,"_exists",null);qa([k],b.prototype,"_hasPrefetchCredit",
|
|
null);qa([k],b.prototype,"_getPrefetchURL",null);qa([k],b.prototype,"_addQueryParam",null);qa([k],b.prototype,"_getPageShellClass",null);qa([k],b.prototype,"_getRefTag",null);qa([k],b.prototype,"_getPrefetchRequestInit",null);return b}(u),Yd=function(f){return E.div([E.style('body,html{font-family:"Amazon Ember",Arial,sans-serif;background:#fff}.main{position:fixed;bottom:0;left:0;right:0;padding:50px 0;text-align:center}.main-image{width:50%}.subline{font-size:.75rem;color:#999;margin:10px 0}.button{display:block;font-size:1rem;padding:10px;width:80%;margin:10px auto;border:1px solid #ccc;border-radius:5px;box-shadow:0 3px 0 #ccc;background:#fff}.button:active{border-color:#12626d;background-color:#edfcff}.hidden{display:none}'),
|
|
'\x3cdiv class\x3d"main hidden" id\x3d"fallback-content-container"\x3e\x3cimg class\x3d"main-image" src\x3d"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/2wCEAAEBAQEBAQIBAQIDAgICAwQDAwMDBAYEBAQEBAYHBgYGBgYGBwcHBwcHBwcICAgICAgJCQkJCQsLCwsLCwsLCwsBAgICAwMDBQMDBQsIBggLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLC//CABEIAn8B9AMBIgACEQEDEQH/xAAfAAEAAQMFAQEAAAAAAAAAAAAABwUGCAIDBAkKAQv/2gAIAQEAAAAA9/AAAAAAAAAAAAAAAAAAAAAAAAAAAA4/TJhR3+T8AAAAAAAAAHUh+dTRpo/Rr7CwAAAAAAaPgAB5EvI3rpeU/wCmRO4AAAAAClYzT9dAAA/Pb6W7jpVpd4n6EHLAAAAABiT+dT1W5Tesb1n3BtvgA2Py8McJ8teE4j/Te7QvoAAAAAoP5lnV9cFOtX0He/6QXHAFO/KRtbNuDMbbH9oXrP8AoAAAAB889X52Un3RdVIiv0IfoIc3jgDg/lRRr234XYRcD1e+04AAAAAaPz2/Plf0rXfqivG/9Br0c6WjQBo/LMgf0V9RGCdI9R/t2AAAAAGn8xDq4lmfshLcjDEuXf1S5bbe2BTfyiIP7ycD8MLe9AH6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I3+Ed0OGxJfwmbRxMkChLo+/kj00+qcIvHXDI5l2J5G+LMsoOCUO5LG0homrJRs8MUGjaymjczczczczcxybVDXHAsraViGuSUbJYfwOLXR+RdWr+Ta/wAmP+xX8sbI6V5MW+JLSY0qXerG+RzPEZLIze354sjNHj4s2mp/dH/6b0abPBTSn2Na4PNJw7WN+ZO/JuYs0vk8Ux62UIuK+SeqySyb0/ivI+wiy/LZuNw5M3X3L49Cy0bkJlm43FvzW+tstlv0v//Z"\x3e\x3ch3 class\x3d"headline"\x3eOOPS!\x3c/h3\x3e\x3ch3 class\x3d"headline"\x3eSomething went wrong.\x3c/h3\x3e\x3cbutton class\x3d"button" id\x3d"try-again"\x3eTRY AGAIN\x3c/button\x3e\x3cp class\x3d"subline"\x3eCS2. Error occurred of type S-2.\x3c/div\x3e',
|
|
E.script('!function(e,r){"use strict";var t\x3de.failingUrl,n\x3de.referrerUrl,o\x3de.errorCode,a\x3de.description,c\x3de.fallbackContentTimeout;r.setTimeout(function(){var e\x3ddocument.getElementById("fallback-content-container");if(e){var t\x3ddocument.getElementById("try-again");t\x26\x26t.addEventListener("click",function(){r.location.reload()}),e.classList.remove("hidden")}},c),r.appErrorWebAppInterface\x26\x26"function"\x3d\x3dtypeof r.appErrorWebAppInterface.showError\x26\x26(r.appErrorWebAppInterface.called\x3d!0,r.appErrorWebAppInterface.showError(t,o,a,n))}(model,window);',
|
|
f)].join("\n"))},Zd=function(f){return E.script('!function(e,t){"use strict";function n(e){t.ue\x26\x26"function"\x3d\x3dtypeof t.ue.tag\x26\x26t.ue.tag(e)}function a(e){return[o,"Page"].concat(e).join(":").toLowerCase()}var o\x3de.namespace;try{var c\x3de.globalObjectName,r\x3de.contentFragmentName,m\x3de.contentFragmentData;c\x26\x26(t[c]\x3dt[c]||{},t[c].contentFragments\x3dt[c].contentFragments||{},t[c].contentFragments[r]\x3dm);var g\x3d"lightsaber:content-fragment:model:"+r,l\x3d{bubbles:!0,cancelable:!1,detail:m},i\x3dnew CustomEvent(g,l);t.dispatchEvent(i);var u\x3dt.AmazonUIPageJS?t.AmazonUIPageJS:t.P;u\x26\x26"function"\x3d\x3dtypeof u.declare\x26\x26u.declare(g,m)}catch(s){n(a(["ContentFragment","Model","Fail"]))}}(model,window);',
|
|
f)},$d=function(f){return E.script('!function(t,e){"use strict";function i(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function o(t){for(var e\x3ddocument.cookie?document.cookie.split(";"):[],o\x3d0;o\x3ce.length;o++){var n\x3de[o].trim().split("\x3d"),r\x3di(n[0]);if(t\x3d\x3d\x3dr){var u\x3dn.slice(1).join("\x3d");return i(u)}}}function n(t){return[s,"Page","CsmReset"].concat(t).join(":").toLowerCase()}function r(t){e.ue\x26\x26"function"\x3d\x3dtypeof e.ue.tag\x26\x26e.ue.tag(t)}function u(i,o){return e.csa\x26\x26"function"\x3d\x3dtypeof e.csa?(e.csa("Config",{"CacheDetection.RequestID":i}),e.csa("Events")("setEntity",{page:{requestId:i},session:{id:o}}),void r(n([t.attribution,"OK","CSA"]))):void r(n([t.attribution,"Fail","CSA"]))}function a(i,o){return e.ue\x26\x26"function"\x3d\x3dtypeof e.ue.reset?(e.ue.reset(i,o,s.toLowerCase()),"string"\x3d\x3dtypeof e.ue.oid\x26\x26e.ue.oid!\x3d\x3di\x26\x26(e.ue.oid\x3di),void r("T1"\x3d\x3d\x3dt.treatment?n([t.attribution,"OK","UE"]):n(["OK"]))):void r(n("T1"\x3d\x3d\x3dt.treatment?[t.attribution,"Fail","UE"]:["Fail","API"]))}var s\x3dt.namespace,c\x3dt.requestId;if(!c)return void r(n(["Fail","RID"]));var d\x3do("session-id");return d?(a(c,d),void u(c,d)):void r(n(["Fail","SID"]))}(model,window);',
|
|
f)},ae=function(f){return E.div([E.style("#lightsaber-debug-info-container{display:none;padding:10px;background:#cfcfcf;border-top:1px solid #d6d6d6;position:fixed;bottom:0;left:0;right:0;max-height:300px;overflow:scroll;z-index:9999}#lightsaber-debug-info-learn-more{display:block;text-decoration:none}#lightsaber-debug-info-metadata-container{display:block;background:#d6d6d6;border:1px dashed #666;margin:10px 0 0;padding:10px;overflow:scroll}#lightsaber-debug-info-close-btn{position:absolute;top:10px;right:10px;cursor:pointer;color:#900}"),
|
|
'\x3cdiv id\x3d"lightsaber-debug-info-container"\x3e\x3ch4 id\x3d"lightsaber-debug-info-title"\x3eLightsaber Debug Info\x3c/h4\x3e\x3ca id\x3d"lightsaber-debug-info-learn-more" href\x3d"#" target\x3d"_blank" rel\x3d"noopener noreferrer"\x3eLearn More\x3c/a\x3e\x3cpre id\x3d"lightsaber-debug-info-metadata-container"\x3e\x3c/pre\x3e\x3cdiv id\x3d"lightsaber-debug-info-close-btn"\x3e[X]\x3c/div\x3e\x3c/div\x3e',E.script('!function(e,t){"use strict";function n(e){console.debug("["+o+" Debug]",e)}var o\x3de.namespace,r\x3ddocument.querySelector("#lightsaber-debug-info-container"),i\x3ddocument.querySelector("#lightsaber-debug-info-metadata-container"),c\x3ddocument.querySelector("#lightsaber-debug-info-close-btn"),u\x3ddocument.querySelector("#lightsaber-debug-info-learn-more");if(!(r\x26\x26i\x26\x26c\x26\x26u))return void n("Encountered unexpected DOM issue for Debug Tool, exiting...");u.setAttribute("href",e.learnMoreLink);var l\x3dt[e.globalObjectName];i.textContent\x3de.globalObjectName+" \x3d "+JSON.stringify(l,void 0,2),c.addEventListener("click",function(){r.remove()}),r.style.display\x3d"block"}(model,window);',
|
|
f)].join("\n"))},be=function(f){return E.style(f.stylesheetContent)},ce=function(f){return E.script('!function(e,t){"use strict";function a(e){t.ue\x26\x26"function"\x3d\x3dtypeof t.ue.tag\x26\x26t.ue.tag(e)}function n(e,a){t.ue\x26\x26"function"\x3d\x3dtypeof t.ue.count\x26\x26t.ue.count(e,a)}function i(e){return[r,"Page"].concat(e).join(":").toLowerCase()}var r\x3de.namespace;try{var c\x3d!!e.hit,o\x3de.meta,u\x3de.globalObjectName,f\x3de.pModulePrefix;u\x26\x26(t[u]\x3dt[u]||{},t[u].hit\x3dc,t[u].meta\x3do),t.P\x26\x26t.P.declare\x26\x26(t.P.declare(f+"hit",c),t.P.declare(f+"meta",o));var m\x3do.navigationRule,g\x3do.responseStrategy,l\x3do.fetchEventTimeOrigin,p\x3dt.performance\x26\x26(performance.timeOrigin||performance.timing.navigationStart);if(!(m\x26\x26g\x26\x26g.name\x26\x26l\x26\x26p))return;a(i(["Hit"]));var v\x3do.fetchEventTimeOrigin-p;n(i([m,g.name,"SWFetchDelta"]),v)}catch(d){a(i(["Metadata","Fail"]))}}(model,window);',
|
|
f)},de=function(f){return E.script('!function(e,a){"use strict";function n(e){try{var a\x3dnew URL(o),n\x3da.searchParams.get(s),r\x3dn?n+"_"+e:e;return a.searchParams.set(s,r),a.href}catch(t){return o}}function r(){m\x3d!0,c?a.location.replace(n("vlr")):a.location.assign(n("vla"))}function t(){var e\x3da.AmazonUIPageJS?a.AmazonUIPageJS:a.P,t\x3de\x26\x26"function"\x3d\x3dtypeof e.when;if(!t)return void r();var o\x3da.setTimeout(r,u);e.when("mash").execute(function(e){m||(a.clearTimeout(o),c?e.navstack.begin().replace({url:n("vmr")}).end():e.navigate({url:n("vmn")}))})}var o\x3de.url,c\x3de.replaceHistory,i\x3de.useMash,u\x3de.mashTimeout,s\x3de.tagParamName,m\x3d!1;i?t():r()}(model,window);',
|
|
f)},ee=function(f){return E.script('!function(e,o){"use strict";if(o.performance\x26\x26o.ue\x26\x26"function"\x3d\x3dtypeof o.ue.count){var n\x3do.performance.now(),c\x3d[e.namespace,"Page"].concat(e.counter).join(":").toLowerCase();o.ue.count(c,n)}}(model,window);',f)},sc=function(f){return E.script('!function(e,t){"use strict";function n(e){return[a,"Page","PModule"].concat(e).join(":").toLowerCase()}function o(e,n){t.ue\x26\x26"function"\x3d\x3dtypeof t.ue.count\x26\x26t.ue.count(e,n)}function r(e){return"function"\x3d\x3dtypeof e}var a\x3de.namespace,s\x3dt.AmazonUIPageJS?t.AmazonUIPageJS:t.P;s\x26\x26"function"\x3d\x3dtypeof s.register\x26\x26e.markers.forEach(function(e){try{s.register(e),s.when(e).execute(function(){var n\x3d"lightsaber:page:pmodule:"+e;r(t.uex)\x26\x26t.uex("ld",n,{wb:1})})}catch(a){var u\x3da\x26\x26a.message\x26\x26"string"\x3d\x3dtypeof a.message\x26\x26r(a.message.toLowerCase)\x26\x26r(a.message.indexOf);if(u\x26\x26-1!\x3d\x3da.message.toLowerCase().indexOf("already registered"))return void o(n(["ReRegister",e]),1);throw a}})}(model,window);',
|
|
f)},Ha=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Va=function(){function f(b,a,e){this._controller=b;this._metricsService=a;this._eventOptions=e;this._readableStreamState=0}f.prototype.close=function(){try{this._controller.close(),
|
|
this._readableStreamState=1}catch(b){this._handleControllerError(b,"Close",!0)}};f.prototype.safeClose=function(){try{this._controller.close(),this._readableStreamState=1}catch(b){this._handleControllerError(b,"SafeClose",!1)}};f.prototype.enqueue=function(b){try{this._controller.enqueue(b)}catch(a){this._handleControllerError(a,"Enqueue",!0)}};f.prototype.error=function(b){try{this._controller.error(b),this._readableStreamState=2}catch(a){this._handleControllerError(a,"Error",!0)}};f.prototype.isClosed=
|
|
function(){return 0!=this._readableStreamState};f.prototype.isUnexpectedlyClosed=function(){return 3===this._readableStreamState};f.prototype._handleControllerError=function(b,a,e){void 0===e&&(e=!0);w.matchesSignature(b,H.READABLE_STREAM_DEFAULT_CONTROLLER_ERROR)&&(1===this._readableStreamState?this._metricsService.count(this._eventOptions,"ControllerWrapper:LightsaberClosed:".concat(a)):0===this._readableStreamState&&this._metricsService.count(this._eventOptions,"ControllerWrapper:UnexpectedlyClosed:".concat(a)),
|
|
this._readableStreamState=3,b=t.wrap(b,"ControllerUnexpectedlyClosed","","","ERROR"));if(e)throw b;};Ha([k],f.prototype,"close",null);Ha([k],f.prototype,"safeClose",null);Ha([k],f.prototype,"enqueue",null);Ha([k],f.prototype,"error",null);Ha([k],f.prototype,"isClosed",null);Ha([k],f.prototype,"isUnexpectedlyClosed",null);return f}(),fe=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,
|
|
c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),jb=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,
|
|
b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},ge=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},he=this&&this.__generator||function(f,
|
|
b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-
|
|
1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&
|
|
(n[Symbol.iterator]=function(){return this}),n},za=function(f){function b(a,b){var c=f.call(this)||this;c.logCtor(arguments);c.eventOptions=a;c.metricsService=b;return c}fe(b,f);b.prototype.getResponse=function(){return ge(this,void 0,void 0,function(){var a;return he(this,function(b){try{return this.metricsService.count(this.eventOptions,"Transmog:Use:".concat(this.NAME)),[2,this.transmog()]}catch(c){throw a=t.wrap(c,"Transmog",void 0,'Unexpected error while running "'.concat(this.NAME,'" transmog')),
|
|
this.metricsService.error(this.eventOptions,a,this.getErrorLoggingScope()),this.metricsService.countError(this.eventOptions,a,this.getErrorLoggingScope()),a;}})})};b.prototype.getInit=function(a,b,c){void 0===a&&(a=200);return{status:a,statusText:b,headers:Oa.getCommonHTMLHeaders(c)}};b.prototype.renderTemplate=function(a,b){try{var c=a(b).trim()}catch(g){a=t.wrap(g,"TemplateRender",{view:a,model:b},'Template render failed while running "'.concat(this.NAME,'" transmog')),this.metricsService.error(this.eventOptions,
|
|
a,this.getErrorLoggingScope()),this.metricsService.countError(this.eventOptions,a,this.getErrorLoggingScope()),c="\x3c!-- ".concat(a," --\x3e")}return X.isDebug?["","\x3c!-- ".concat(v.NAMESPACE,":Feature:").concat(this.NAME," --\x3e"),c,"\x3c!-- ".concat(v.NAMESPACE,":EndFeature:").concat(this.NAME," --\x3e"),""].join("\n"):c};b.prototype.getErrorLoggingScope=function(){return"".concat(this.NAME,"ResponseTransmog")};jb([k],b.prototype,"getResponse",null);jb([k],b.prototype,"getInit",null);jb([k],
|
|
b.prototype,"renderTemplate",null);jb([k],b.prototype,"getErrorLoggingScope",null);return b}(u),ie=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");
|
|
f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),kb=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Lb=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof
|
|
a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function g(a){try{l(e.next(a))}catch(m){h(m)}}function n(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(g,n)}l((e=e.apply(f,b||[])).next())})},Mb=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),
|
|
0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();
|
|
continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},je=function(f){function b(a,b,c,g,h){var e=f.call(this,a,b)||this;e.NAME="ContentFragment";e.logCtor(arguments);e._name=c;e._serializableData=h;e._predefinedContent=g;e._textEncoder=
|
|
new TextEncoder;return e}ie(b,f);b.prototype.transmog=function(){return Lb(this,void 0,void 0,function(){return Mb(this,function(a){return[2,new Response(this._getOutputStream(),this.getInit())]})})};b.prototype._getOutputStream=function(){var a=this;return new ReadableStream({start:function(b){return Lb(a,void 0,void 0,function(){var a;return Mb(this,function(c){switch(c.label){case 0:return a=new Va(b,this.metricsService,this.eventOptions),[4,this._toOutputStream(this._predefinedContent,a)];case 1:return c.sent(),
|
|
[4,this._toOutputStream(this._getWrappedSerializedData(),a)];case 2:return c.sent(),a.close(),[2]}})})}})};b.prototype._toOutputStream=function(a,b){return Lb(this,void 0,void 0,function(){var c;return Mb(this,function(e){switch(e.label){case 0:return"string"===typeof a?(c=this._textEncoder.encode(a),b.enqueue(c),[2]):a.body instanceof ReadableStream?[4,Ga.drain(a.body,function(a){b.enqueue(a)})]:[2];case 1:return e.sent(),[2]}})})};b.prototype._getWrappedSerializedData=function(){try{var a=na.deep.json(this._serializableData)}catch(e){this.metricsService.countError(this.eventOptions,
|
|
t.create("SerializationFailed"),this.getErrorLoggingScope()),a={}}return this.renderTemplate(Zd,{namespace:v.NAMESPACE,globalObjectName:"$".concat(v.NAMESPACE),contentFragmentName:this._name,contentFragmentData:a})};kb([k],b.prototype,"transmog",null);kb([k],b.prototype,"_getOutputStream",null);kb([k],b.prototype,"_toOutputStream",null);kb([k],b.prototype,"_getWrappedSerializedData",null);return b}(za),ke=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Nb=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,
|
|
a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Aa=function(f){function b(a,b,c,g){void 0===g&&(g=!0);var e=f.call(this,a,b)||this;e.logCtor(arguments);ia.validateIsUsable(c);g&&ia.validateIsOK(c);e._source=e._getClonedResponse(c);return e}ke(b,f);b.prototype.getSource=function(a){void 0===a&&(a=!1);if(!this._source)throw t.create("ResponseInvalid");
|
|
return a?this._source:this._getClonedResponse(this._source)};b.prototype.getSourceInit=function(){if(!this._source)throw t.create("ResponseInvalid");return this.getInit(this._source.status,this._source.statusText,this._source.headers)};b.prototype._getClonedResponse=function(a){try{return a.clone()}catch(e){throw a=t.wrap(e,"ResponseClone"),this.metricsService.error(this.eventOptions,a,this.getErrorLoggingScope()),this.metricsService.countError(this.eventOptions,a,this.getErrorLoggingScope()),a;}};
|
|
Nb([k],b.prototype,"getSource",null);Nb([k],b.prototype,"getSourceInit",null);Nb([k],b.prototype,"_getClonedResponse",null);return b}(za),le=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+
|
|
String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Ob=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},me=this&&this.__awaiter||function(f,
|
|
b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},ne=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:
|
|
a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=
|
|
d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},tc=function(f){function b(a,b,c,g){var e=f.call(this,a,b,c)||this;e.NAME="EagerLoadJSMarker";e.markers=g;e.logCtor(arguments);
|
|
return e}le(b,f);b.prototype.transmog=function(){return me(this,void 0,void 0,function(){var a,b;return ne(this,function(c){switch(c.label){case 0:return a=this.getSource(),[4,a.text()];case 1:return b=c.sent(),[2,new Response(this._getHTML(b),this.getSourceInit())]}})})};b.prototype._getHTML=function(a){a=this._replaceMarkers(a);return a+=this.renderTemplate(sc,{markers:this.markers.map(function(a){return"".concat(a,".").concat(v.NAMESPACE_LCASE)})})};b.prototype._replaceMarkers=function(a){var b=
|
|
this,c=a;this.markers.forEach(function(a){try{var e=new RegExp(xb.escapeRegExp(b._getAUILoaderWithMarkerString(a)),"g");c=c.replace(e,b._getAUILoaderWithMarkerString("".concat(a,".").concat(v.NAMESPACE_LCASE)))}catch(d){a=t.create("EagerLoadJSMarkerReplacementFailed",a,d),b.metricsService.error(b.eventOptions,a,b.NAME)}});return c};b.prototype._getAUILoaderWithMarkerString=function(a){return b.AUI_JS_LOADER_PREFIX+a+b.AUI_JS_LOADER_SUFFIX};b.AUI_JS_LOADER_PREFIX="(window.AmazonUIPageJS ? AmazonUIPageJS : P).when('";
|
|
b.AUI_JS_LOADER_SUFFIX="').execute(function() {";Ob([k],b.prototype,"transmog",null);Ob([k],b.prototype,"_getHTML",null);Ob([k],b.prototype,"_replaceMarkers",null);return b}(Aa),oe=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==
|
|
a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),uc=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,
|
|
a,g),g},Pb=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},Qb=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");
|
|
for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=
|
|
d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},vc=function(f){function b(a,b,c){var e=f.call(this,a,b,c)||this;e.NAME="InlinedStylesheet";
|
|
e.logCtor(arguments);return e}oe(b,f);b.prototype.transmog=function(){return Pb(this,void 0,void 0,function(){var a,e,c,g,h,d=this;return Qb(this,function(f){switch(f.label){case 0:return a=this.getSource(),[4,a.text()];case 1:e=f.sent(),f.label=2;case 2:return f.trys.push([2,4,,5]),[4,ma.replaceAsync(e,b.NEEDLE_PATTERN,function(a,b){return Pb(d,void 0,void 0,function(){return Qb(this,function(a){return[2,this._getInlinedStyles(b)]})})})];case 3:return c=f.sent(),[3,5];case 4:return g=f.sent(),h=
|
|
w.matchesCode(g,"FailedToFetch"),this.metricsService.error(this.eventOptions,g,this.getErrorLoggingScope(),h?"ERROR":void 0),this.metricsService.countError(this.eventOptions,g,h?"".concat("FailedToFetch",":").concat(this.getErrorLoggingScope()):this.getErrorLoggingScope()),c=e,[3,5];case 5:return[2,new Response(c,this.getSourceInit())]}})})};b.prototype._getInlinedStyles=function(a){return Pb(this,void 0,void 0,function(){var b;return Qb(this,function(c){switch(c.label){case 0:return[4,(new Ib(a)).getResponseText()];
|
|
case 1:return b=c.sent(),[2,this.renderTemplate(be,{stylesheetUrl:a,stylesheetContent:b})]}})})};b.NEEDLE_PATTERN=/<link.+rel="stylesheet".+href="([^"]+)".*\/>/gi;uc([k],b.prototype,"transmog",null);uc([k],b.prototype,"_getInlinedStyles",null);return b}(Aa),pe=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};
|
|
return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),qe=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-
|
|
1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},re=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},se=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,
|
|
b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&
|
|
(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),
|
|
n},te=function(f){function b(a,b,c,g){var e=f.call(this,a,b,c)||this;e.NAME="PatternReplace";e.patternReplacementList=g;e.logCtor(arguments);return e}pe(b,f);b.prototype.transmog=function(){return re(this,void 0,void 0,function(){var a,b,c;return se(this,function(e){switch(e.label){case 0:return a=this.getSource(),[4,a.text()];case 1:return b=e.sent(),c=this._getHTML(b),[2,new Response(c,this.getSourceInit())]}})})};b.prototype._getHTML=function(a){var b=a;this.patternReplacementList.forEach(function(a){b=
|
|
b.replace(a.pattern,a.replacement)});return b};qe([k],b.prototype,"transmog",null);return b}(Aa),ue=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");
|
|
f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),wc=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},ve=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof
|
|
a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},we=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),
|
|
0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();
|
|
continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},xc=function(f){function b(a,b,c){var e=f.call(this,a,b,c)||this;e.NAME="ShoppingPortalLoadJSMarker";e.logCtor(arguments);return e}ue(b,f);b.prototype.transmog=function(){return ve(this,
|
|
void 0,void 0,function(){var a,b;return we(this,function(c){switch(c.label){case 0:return a=this.getSource(),[4,a.text()];case 1:return b=c.sent(),[2,new Response(this._getHTML(b),this.getSourceInit())]}})})};b.prototype._getHTML=function(a){a=a.replace(b.LOAD_JS_PATTERN,b.LOAD_JS_REPLACER).replace(b.CRIT_LOAD_JS_PATTERN,b.CRIT_LOAD_JS_REPLACER);return a+=this.renderTemplate(sc,{markers:[b.LOAD_JS_REPLACER,b.CRIT_LOAD_JS_REPLACER]})};b.LOAD_JS_PATTERN=/\bsp\.load\.js\b/g;b.LOAD_JS_REPLACER="sp.load.js.".concat(v.NAMESPACE_LCASE);
|
|
b.CRIT_LOAD_JS_PATTERN=/\bsp\.load\.critical\.js\b/g;b.CRIT_LOAD_JS_REPLACER="sp.load.critical.js.".concat(v.NAMESPACE_LCASE);wc([k],b.prototype,"transmog",null);wc([k],b.prototype,"_getHTML",null);return b}(Aa),xe=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=
|
|
b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Rb=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||
|
|
g;return 3<c&&g&&Object.defineProperty(b,a,g),g},ye=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},ze=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");
|
|
for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=
|
|
d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},yc=function(f){function b(a,b,c,g){var e=f.call(this,a,b,c)||this;e.NAME=
|
|
"SyntheticRequestId";e._useStaticRID=!!g;e.logCtor(arguments);return e}xe(b,f);b.prototype.transmog=function(){return ye(this,void 0,void 0,function(){var a,e,c,g,h,d;return ze(this,function(f){switch(f.label){case 0:a=this.getSource();e=a.headers.get(x.shared.REQUEST_ID_OPF_HEADER);if(!e)return[2,new Response(a.body,this.getSourceInit())];c=this._useStaticRID?b.STATIC_RID:"".concat(b.SYNTHETIC_PREFIX).concat(ma.generateRandomSequence(b.SEQUENCE_LENGTH,b.SEQUENCE_RADIX)).toUpperCase();return[4,a.text()];
|
|
case 1:return g=f.sent(),h=this._getHTML(g,e,c),d=this._getResponseInit(e,c),[2,new Response(h,d)]}})})};b.prototype._getHTML=function(a,b,c){b=new RegExp("".concat(b),"g");return a.replace(b,c)};b.prototype._getResponseInit=function(a,b){var c=this.getSourceInit();c.headers instanceof Headers&&(c.headers.append(x.shared.getLibHeader("original-rid"),a),c.headers.delete(x.shared.REQUEST_ID_OPF_HEADER),c.headers.append(x.shared.REQUEST_ID_OPF_HEADER,b));return c};b.SYNTHETIC_PREFIX=v.NAMESPACE_UCASE;
|
|
b.SEQUENCE_LENGTH=20-b.SYNTHETIC_PREFIX.length;b.SEQUENCE_RADIX=36;b.STATIC_RID=b.SYNTHETIC_PREFIX+"0".repeat(b.SEQUENCE_LENGTH);Rb([k],b.prototype,"transmog",null);Rb([k],b.prototype,"_getHTML",null);Rb([k],b.prototype,"_getResponseInit",null);return b}(Aa),Ae=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};
|
|
return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Be=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-
|
|
1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Ce=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},De=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,
|
|
b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&
|
|
(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),
|
|
n},zc=function(f){function b(a,b,c){var e=f.call(this,a,b)||this;e.NAME="DebugInfo";e.logCtor(arguments);e._pageUrl=c;return e}Ae(b,f);b.prototype.transmog=function(){return Ce(this,void 0,void 0,function(){var a,b,c;return De(this,function(e){a=L.parse(this._pageUrl);b="".concat(v.NAMESPACE_LCASE,"Debug");c=!!a&&a.searchParams.has(b)&&X.isDebug;return[2,new Response(c?this.renderTemplate(ae,{namespace:v.NAMESPACE,globalObjectName:"$".concat(v.NAMESPACE),learnMoreLink:v.HELP_LINK}):"",this.getInit())]})})};
|
|
Be([k],b.prototype,"transmog",null);return b}(za),Ee=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):
|
|
(e.prototype=a.prototype,new e)}}(),Ba=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Sb=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||
|
|
(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},Tb=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;
|
|
if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=
|
|
[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},Ac=function(f){function b(a,b,c,g,h,d,n){var e=f.call(this,a,b,c)||this;e.logCtor(arguments);e.needle=g;e.needleLength=g.length;e.needleHeaderKey=h;e.inclusive=d;e.needleWasFound=!1;e.buffer="";e._drainBufferAtEnd=
|
|
n;e._textEncoder=new TextEncoder;e._textDecoder=new TextDecoder("utf-8",{fatal:!0});return e}Ee(b,f);b.prototype.transmog=function(){return Sb(this,void 0,void 0,function(){var a,b;return Tb(this,function(c){a=this.getSource();b=a.body;return[2,new Response(this._getOutputStream(b),this._getResponseInit())]})})};b.prototype.decode=function(a){return this._textDecoder.decode(a,{stream:!0})};b.prototype.encode=function(a){return this._textEncoder.encode(a)};b.prototype.scan=function(a){return a.indexOf(this.needle)};
|
|
b.prototype._getOutputStream=function(a){var b=this;return new ReadableStream({start:function(c){return Sb(b,void 0,void 0,function(){var b;return Tb(this,function(e){switch(e.label){case 0:return b=new Va(c,this.metricsService,this.eventOptions),[4,this._toOutputStream(a,b)];case 1:return e.sent(),[2]}})})}})};b.prototype._toOutputStream=function(a,b){return Sb(this,void 0,void 0,function(){var c,e,h,d=this;return Tb(this,function(g){switch(g.label){case 0:return g.trys.push([0,2,,3]),[4,Ga.drain(a,
|
|
function(a){d.processChunk(b,a)})];case 1:g.sent();this._drainBufferAtEnd&&(b.enqueue(this.encode(this.buffer)),this.buffer="");if(!this.needleWasFound)throw t.create("StreamTransformMissingDelimiter");b.close();return[3,3];case 2:return c=g.sent(),e=t.wrap(c,"StreamTransform",void 0,'Stream processing failed while running "'.concat(this.NAME,'" transmog')),h=w.matchesCodeOrSignature(c,"NetworkError",H.NETWORK_ERROR),this.metricsService.error(this.eventOptions,e,this.getErrorLoggingScope(),h?"ERROR":
|
|
void 0),this.metricsService.countError(this.eventOptions,e,h?"".concat("NetworkError",":").concat(this.getErrorLoggingScope()):this.getErrorLoggingScope()),b.error(e),[3,3];case 3:return[2]}})})};b.prototype._getResponseInit=function(){var a=this.getSourceInit();if(!this.needleHeaderKey)return a;var b=new Headers(a.headers||{});b.append(x.shared.getClientOnlyLibHeader(this.needleHeaderKey),J.encode(this.needle));a.headers=b;return a};Ba([k],b.prototype,"transmog",null);Ba([k],b.prototype,"decode",
|
|
null);Ba([k],b.prototype,"encode",null);Ba([k],b.prototype,"scan",null);Ba([k],b.prototype,"_getOutputStream",null);Ba([k],b.prototype,"_toOutputStream",null);Ba([k],b.prototype,"_getResponseInit",null);return b}(Aa),Fe=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=
|
|
b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Ge=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||
|
|
g;return 3<c&&g&&Object.defineProperty(b,a,g),g},He=function(f){function b(a,b,c,g,h){void 0===h&&(h=!1);var e=f.call(this,a,b,c,g,void 0,h,!1)||this;e.NAME="AfterSingleDelimiter";e.logCtor(arguments);return e}Fe(b,f);b.prototype.processChunk=function(a,b){if(this.needleWasFound)a.enqueue(b);else{b=this.decode(b);b=this.buffer+b;var c=this.scan(b);-1===c?this.buffer=b.slice(-this.needleLength+1):(b=b.slice(this.inclusive?c:c+this.needleLength),a.enqueue(this.encode(b)),this.buffer="",this.needleWasFound=
|
|
!0)}};Ge([k],b.prototype,"processChunk",null);return b}(Ac),Ie=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===
|
|
a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Je=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Bc=function(f){function b(a,b,c,g,h,d){void 0===d&&(d=!0);var e=f.call(this,a,b,c,g,h,d,!0)||this;
|
|
e.NAME="BeforeSingleDelimiter";e.logCtor(arguments);return e}Ie(b,f);b.prototype.processChunk=function(a,b){if(!this.needleWasFound){b=this.decode(b);b=this.buffer+b;var c=this.scan(b);-1===c?(c=b.substring(0,b.length-this.needleLength+1),a.enqueue(this.encode(c)),this.buffer=b.slice(-this.needleLength+1)):(b=b.substring(0,this.inclusive?c+this.needleLength:c),a.enqueue(this.encode(b)),this.buffer="",this.needleWasFound=!0)}};Je([k],b.prototype,"processChunk",null);return b}(Ac),Ke=this&&this.__extends||
|
|
function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Cc=this&&this.__decorate||function(f,
|
|
b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Le=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}
|
|
function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},Me=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;
|
|
case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:
|
|
void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},Ne=function(f){function b(a,b,c,g,h,d){var e=f.call(this,a,b)||this;e.NAME="AppError";e.logCtor(arguments);e._failingUrl=c;e._errorCode=g;e._description=h;e._referrerUrl=d;return e}Ke(b,f);b.prototype.transmog=function(){return Le(this,void 0,void 0,function(){return Me(this,
|
|
function(a){return[2,new Response(this.renderTemplate(Yd,{failingUrl:this._getSafeUrl(this._failingUrl),errorCode:this._errorCode,description:this._description,referrerUrl:this._getSafeUrl(this._referrerUrl),fallbackContentTimeout:b.HTML_FALLBACK_UI_TIMEOUT}),this.getInit())]})})};b.prototype._getSafeUrl=function(a){return a?L.encode(a)||"unknown":""};b.HTML_FALLBACK_UI_TIMEOUT=500;Cc([k],b.prototype,"transmog",null);Cc([k],b.prototype,"_getSafeUrl",null);return b}(za),Oe=this&&this.__extends||function(){var f=
|
|
function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Pe=this&&this.__decorate||function(f,b,a,e){var c=
|
|
arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Qe=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}
|
|
function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},Re=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;
|
|
h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];
|
|
return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},Se=function(f){function b(a,b,c,g){var e=f.call(this,a,b,c,!1)||this;e.NAME="CSMTokens";e.logCtor(arguments);e._attribution=g;return e}Oe(b,f);b.prototype.transmog=function(){return Qe(this,void 0,void 0,function(){var a,b,c;return Re(this,function(e){a=this.getSource();b=a.headers.get(x.shared.REQUEST_ID_OPF_HEADER);b||(c=t.create("RequestIdHeaderMissing"),
|
|
this.metricsService.error(this.eventOptions,c,this.getErrorLoggingScope()),this.metricsService.countError(this.eventOptions,c,this.getErrorLoggingScope()));this.eventOptions.errorContext.CSMTokensOPFRequestID=b||"unknown";return[2,new Response(this.renderTemplate($d,{namespace:v.NAMESPACE,requestId:b,attribution:this._attribution,treatment:"C"}),this.getInit())]})})};Pe([k],b.prototype,"transmog",null);return b}(Aa),Te=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||
|
|
{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Ue=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?
|
|
e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Ve=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}
|
|
function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},We=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;
|
|
h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];
|
|
return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},Dc=function(f){function b(a,b,c,g,h){var e=f.call(this,a,b)||this;e.NAME="PageMetadata";e.logCtor(arguments);e._navigationRuleName=c;e._responseStrategy=g;e._responseStrategyDetails=h;return e}Te(b,f);b.prototype.transmog=function(){return Ve(this,void 0,void 0,function(){return We(this,function(a){return[2,new Response(this.renderTemplate(ce,
|
|
{namespace:v.NAMESPACE,hit:!0,meta:{fetchEventTimeOrigin:this.eventOptions.timeOriginEpoch,navigationRule:this._navigationRuleName,responseStrategy:{name:this._responseStrategy,details:this._responseStrategyDetails},clientLib:{version:v.VERSION}},globalObjectName:"$".concat(v.NAMESPACE),pModulePrefix:"".concat(v.NAMESPACE_LCASE,"-")}),this.getInit())]})})};Ue([k],b.prototype,"transmog",null);return b}(za),Xe=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Ye=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,
|
|
a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Ze=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):
|
|
c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},$e=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;
|
|
case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},
|
|
trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},af=function(f){function b(a,b,c){var e=f.call(this,a,b)||this;e.NAME="PerformanceCounter";e.logCtor(arguments);e._counter=c;return e}Xe(b,f);b.prototype.transmog=function(){return Ze(this,void 0,void 0,function(){return $e(this,function(a){return[2,new Response(this.renderTemplate(ee,{namespace:v.NAMESPACE,counter:this._counter}),this.getInit())]})})};
|
|
Ye([k],b.prototype,"transmog",null);return b}(za),bf=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):
|
|
(e.prototype=a.prototype,new e)}}(),Ub=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},cf=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||
|
|
(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},df=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;
|
|
if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=
|
|
[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},ef=function(f){function b(a,b,c,g,h,d,n){var e=f.call(this,b,c)||this;e.NAME="PageNavigate";e.logCtor(arguments);e._swGlobal=a;e._targetUrl=g;e._useHTTPStatusCodesForRedirects=h;e._replaceHistory=d;e._skipIntercept=
|
|
n;return e}bf(b,f);b.prototype.transmog=function(){return cf(this,void 0,void 0,function(){return df(this,function(a){return[2,this._useHTTPStatusCodesForRedirects?Response.redirect(this._getTargetURL(),b.HTTP_REDIRECT_STATUS_CODE):new Response(this.renderTemplate(de,{useMash:Y.isMShop(this._swGlobal),mashTimeout:b.MASH_READY_TIMEOUT,url:this._getTargetURL(),replaceHistory:this._replaceHistory,tagParamName:this._getSkipInterceptParamName()}),this.getInit())]})})};b.prototype._getTargetURL=function(){var a=
|
|
L.parse(this._targetUrl);if(!a)throw a=t.create("InvalidURL",{targetUrl:this._targetUrl}),this.metricsService.error(this.eventOptions,a,this.getErrorLoggingScope()),this.metricsService.countError(this.eventOptions,a,this.getErrorLoggingScope()),a;"string"===typeof this._skipIntercept&&this._skipIntercept.length&&x.skipIntercept.setParam(a,this._skipIntercept);return a.href};b.prototype._getSkipInterceptParamName=function(){return x.skipIntercept.getParamName()};b.HTTP_REDIRECT_STATUS_CODE=302;b.MASH_READY_TIMEOUT=
|
|
3E3;Ub([k],b.prototype,"transmog",null);Ub([k],b.prototype,"_getTargetURL",null);Ub([k],b.prototype,"_getSkipInterceptParamName",null);return b}(za),ff=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+
|
|
String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Vb=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Ec=this&&this.__awaiter||function(f,
|
|
b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},Fc=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:
|
|
a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=
|
|
d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},gf=this&&this.__read||function(f,b){var a="function"===typeof Symbol&&f[Symbol.iterator];if(!a)return f;f=a.call(f);
|
|
var e,c=[];try{for(;(void 0===b||0<b--)&&!(e=f.next()).done;)c.push(e.value)}catch(h){var g={error:h}}finally{try{e&&!e.done&&(a=f["return"])&&a.call(f)}finally{if(g)throw g.error;}}return c},hf=function(f){function b(a,b,c){var e=f.call(this)||this;e.logCtor(arguments);e._customerContextService=a;e._cacheService=b;e._metricsService=c;e._errorLoggingScope="CacheWriter";return e}ff(b,f);b.prototype.write=function(a,b,c){return Ec(this,void 0,void 0,function(){var e,h,d,f,l,p,k,q,t,r,u,v,M;return Fc(this,
|
|
function(g){switch(g.label){case 0:return g.trys.push([0,3,,4]),e=b.storage,h=e.cacheName,d=e.cacheKey,f=e.maxAge,l=e.validationKeys,[4,Promise.all([this._getTransmoggedResponse(a,b.transmogs,c),(new hb(this._customerContextService)).compute(l)])];case 1:return p=gf.apply(void 0,[g.sent(),2]),k=p[0],q=p[1],t=(new lb(this._metricsService,b.name)).decorateResponseWithStorageHeader(c.eventOptions,b,k),[4,this._cacheService.write(c.eventOptions,h,d,t,{maxAgeSeconds:f,requestStartTimestampSeconds:c.requestStartTimestampSeconds,
|
|
attribution:c.attribution,validationKeys:q})];case 2:return g.sent(),[3,4];case 3:throw r=g.sent(),u=w.matchesSignature(r,H.FAILED_TO_FETCH),v=w.matchesCodeOrSignature(r,"NetworkError",H.NETWORK_ERROR),M=u||v||!1,this._metricsService.error(c.eventOptions,r,this._errorLoggingScope,M?"ERROR":void 0),this._metricsService.countError(c.eventOptions,r,u?"".concat("FailedToFetch",":").concat(this._errorLoggingScope):v?"".concat("NetworkError",":").concat(this._errorLoggingScope):this._errorLoggingScope),
|
|
r;case 4:return[2]}})})};b.prototype._getTransmoggedResponse=function(a,b,c){return Ec(this,void 0,void 0,function(){var e,h;return Fc(this,function(d){switch(d.label){case 0:if(!b)return[2,a];e=a;h=0;d.label=1;case 1:return h<b.length?[4,this._getTransmog(e,b[h],c).getResponse()]:[3,4];case 2:e=d.sent(),d.label=3;case 3:return h++,[3,1];case 4:return[2,e]}})})};b.prototype._getTransmog=function(a,b,c){switch(b.name){case "BeforeSingleDelimiter":return new Bc(c.eventOptions,this._metricsService,a,
|
|
b.delimiter,b.delimiterKey,b.inclusive);case "EagerLoadJSMarker":return new tc(c.eventOptions,this._metricsService,a,b.markers);case "InlinedStylesheet":return new vc(c.eventOptions,this._metricsService,a);case "ShoppingPortalLoadJSMarker":return new xc(c.eventOptions,this._metricsService,a);case "SyntheticRequestId":return new yc(c.eventOptions,this._metricsService,a,b.useStaticRID);default:throw t.create("UnrecognizedTransmog",b);}};Vb([k],b.prototype,"write",null);Vb([k],b.prototype,"_getTransmoggedResponse",
|
|
null);Vb([k],b.prototype,"_getTransmog",null);return b}(u),jf=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===
|
|
a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Wb=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Gc=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}
|
|
return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},Hc=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,
|
|
a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,
|
|
c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},kf=function(f){function b(a,b){var c=f.call(this)||this;c.logCtor(arguments);c._cacheService=a;c._metricsService=b;c._errorLoggingScope="CompareCopyCacheWriter";return c}jf(b,f);b.prototype.write=
|
|
function(a,b,c){return Gc(this,void 0,void 0,function(){var e,h,d,f,l,p,k,q,r,u,v,Ta,M,ra;return Hc(this,function(g){switch(g.label){case 0:g.trys.push([0,3,,4]);if(!b.compareCopy)return[2];e=b.compareCopy;h=e.storage;d=h.cacheName;f=h.cacheKey;l=h.maxAge;p=new lb(this._metricsService,b.name);k=p.getFullCacheKeyForCompareCopy(f,c.eventOptions.clientId);if(!k)throw t.create("InvalidCompareCopyCacheKey");return[4,this.getTransmoggedResponse(a,e.transmogs,c)];case 1:return q=g.sent(),r=p.decorateResponseWithTransmogsHeader(c.eventOptions,
|
|
b,q),[4,this._cacheService.write(c.eventOptions,d,k,r,{maxAgeSeconds:l,requestStartTimestampSeconds:c.requestStartTimestampSeconds,attribution:c.attribution,keyPrefix:f,maxEntriesPerKeyPrefix:5})];case 2:return g.sent(),[3,4];case 3:throw u=g.sent(),v=w.matchesSignature(u,H.FAILED_TO_FETCH),Ta=w.matchesCodeOrSignature(u,"NetworkError",H.NETWORK_ERROR),M=w.matchesCode(u,"InvalidCompareCopyCacheKey"),ra=w.matchesCode(u,"CacheWriteQuotaExceeded"),this._metricsService.error(c.eventOptions,u,this._errorLoggingScope,
|
|
"ERROR"),this._metricsService.countError(c.eventOptions,u,v?"".concat("FailedToFetch",":").concat(this._errorLoggingScope):Ta?"".concat("NetworkError",":").concat(this._errorLoggingScope):M?"".concat("InvalidCompareCopyCacheKey",":").concat(this._errorLoggingScope):ra?"".concat("CacheWriteQuotaExceeded",":").concat(this._errorLoggingScope):this._errorLoggingScope),u;case 4:return[2]}})})};b.prototype.getTransmoggedResponse=function(a,b,c){return Gc(this,void 0,void 0,function(){var e,h;return Hc(this,
|
|
function(d){switch(d.label){case 0:if(!b)return[2,a];e=a;h=0;d.label=1;case 1:return h<b.length?[4,this._getTransmog(e,b[h],c).getResponse()]:[3,4];case 2:e=d.sent(),d.label=3;case 3:return h++,[3,1];case 4:return[2,e]}})})};b.prototype._getTransmog=function(a,b,c){switch(b.name){case "BeforeSingleDelimiter":return new Bc(c.eventOptions,this._metricsService,a,b.delimiter,b.delimiterKey,b.inclusive);case "EagerLoadJSMarker":return new tc(c.eventOptions,this._metricsService,a,b.markers);case "InlinedStylesheet":return new vc(c.eventOptions,
|
|
this._metricsService,a);case "ShoppingPortalLoadJSMarker":return new xc(c.eventOptions,this._metricsService,a);case "SyntheticRequestId":return new yc(c.eventOptions,this._metricsService,a,b.useStaticRID);case "PatternReplace":return new te(c.eventOptions,this._metricsService,a,b.patternReplaceList);default:throw t.create("UnrecognizedTransmog",b);}};Wb([k],b.prototype,"write",null);Wb([k],b.prototype,"getTransmoggedResponse",null);Wb([k],b.prototype,"_getTransmog",null);return b}(u),lf=this&&this.__extends||
|
|
function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Ia=this&&this.__decorate||function(f,
|
|
b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Ic=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}
|
|
function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},Jc=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;
|
|
case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:
|
|
void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},Kc=function(f){function b(a,b,c,g,h){var e=f.call(this)||this;e.logCtor(arguments);e.cacheService=b;e.cacheMismatchDetectionService=c;e.metricsService=g;e.cachePopulationRules=h;e.cacheWriter=new hf(a,b,g);return e}lf(b,f);b.prototype.logTagAndCount=function(a,b,c,g,h){g=
|
|
"CachePop:".concat(this.NAME,":").concat(g);a="".concat(g,":").concat(a.name,":").concat(b.label);this.metricsService.count(c,g,h);this.metricsService.count(c,a,h);this.metricsService.tag(c,a)};b.prototype.logMark=function(a,b,c,g){g="CachePop:".concat(this.NAME,":").concat(g);a="".concat(g,":").concat(a.name,":").concat(b.label);this.metricsService.mark(c,a)};b.prototype.isResponseValidForCaching=function(a,b){return Ic(this,void 0,void 0,function(){var c;return Jc(this,function(e){switch(e.label){case 0:try{ia.validateIsUsable(a),
|
|
ia.validateIsOK(a)}catch(h){return[2,{valid:!1,reason:"Unusable"}]}return x.cacheControl.hasLightsaberNoStore(a)?[2,{valid:!1,reason:"NoStore"}]:(c=this._skipCachingAXModeContent(b))?[4,this._isAXModeContent(a)]:[3,2];case 1:c=e.sent(),e.label=2;case 2:return c?[2,{valid:!1,reason:"AXModeContent"}]:[2,{valid:!0}]}})})};b.prototype.populateCompareCopyCache=function(a,b,c,g){c.compareCopy&&this.cacheMismatchDetectionService.writeCompareCopyToCache(a,b,c,g.label)};b.prototype._skipCachingAXModeContent=
|
|
function(a){return!!(a.flags||{}).dontCacheAXModeContent};b.prototype._isAXModeContent=function(a){return Ic(this,void 0,void 0,function(){var b,c;return Jc(this,function(e){switch(e.label){case 0:return b=[/ue_sid\s*=\s*['"]000-0000000-8675309['"]/gi,/\/1\/batch\/1\/OP\/[A-Z0-9]+:000-0000000-8675309:/gi],[4,ia.matchPatterns(a.clone(),b)];case 1:return c=e.sent(),[2,!c.every(function(a){return null===a})]}})})};Ia([k],b.prototype,"logTagAndCount",null);Ia([k],b.prototype,"logMark",null);Ia([k],b.prototype,
|
|
"isResponseValidForCaching",null);Ia([k],b.prototype,"populateCompareCopyCache",null);Ia([k],b.prototype,"_skipCachingAXModeContent",null);Ia([k],b.prototype,"_isAXModeContent",null);return b}(u),mf=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==
|
|
typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Xb=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&
|
|
g&&Object.defineProperty(b,a,g),g},nf=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},of=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");
|
|
for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=
|
|
d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},pf=function(f){function b(a,b,c,g,h,d){var e=f.call(this,b,c,g,h,d)||this;
|
|
e.NAME="Prefetch";e.logCtor(arguments);e._prefetchExecutor=new Xd(a,b,c,h);return e}mf(b,f);b.prototype.run=function(a){var b=this,c=a.detail.eventOptions,g=this._getMatchingRulesForTrigger(a);c.errorContext.CachePopulationRulesForPrefetchOnRouteTrigger=C.serialize(g);g.forEach(function(e){var d=e.rule,g=e.trigger;r.queueTask(function(){return nf(b,void 0,void 0,function(){var b,e,h;return of(this,function(f){switch(f.label){case 0:return this.logTagAndCount(d,g,c,"Intent"),[4,this._prefetchExecutor.prefetch(d,
|
|
g,a.detail.eventOptions)];case 1:return b=f.sent(),b.ok?[4,this.isResponseValidForCaching(b.response,d)]:(this.logTagAndCount(d,g,c,"Fail:".concat(b.exitCode)),[2]);case 2:e=f.sent();if(!e.valid)return this.logTagAndCount(d,g,c,"Fail:Invalid:".concat(e.reason)),[2];this.logTagAndCount(d,g,c,"Write");f.label=3;case 3:return f.trys.push([3,5,,6]),h=b.response.clone(),[4,this.cacheWriter.write(b.response,d,{eventOptions:a.detail.eventOptions,requestStartTimestampSeconds:b.requestStartTimestampSeconds,
|
|
attribution:g.label})];case 4:return f.sent(),this.logTagAndCount(d,g,c,"Success"),this.populateCompareCopyCache(c,h,d,g),[3,6];case 5:return f.sent(),this.logTagAndCount(d,g,c,"Fail:Write"),[3,6];case 6:return[2]}})})})})};b.prototype._getMatchingRulesForTrigger=function(a){var b=this,c=[];this.cachePopulationRules.forEach(function(e){for(var g=0;g<e.triggers.length;g++){var d=e.triggers[g];if("PrefetchOnRoute"===d.name&&b._createPrefetchOnRouteMatcher(d).match(a.detail.request)){c.push({rule:e,
|
|
trigger:d});break}}});return c};b.prototype._createPrefetchOnRouteMatcher=function(a){switch(a.routeMatcher.name){case "URLPathRoute":return a=a.routeMatcher,new rc(a.pattern,a.stripRefMarkers,a.stripLanguageFolder);default:throw t.create("UnrecognizedRouteMatcher",a.routeMatcher);}};Xb([k],b.prototype,"run",null);Xb([k],b.prototype,"_getMatchingRulesForTrigger",null);Xb([k],b.prototype,"_createPrefetchOnRouteMatcher",null);return b}(Kc),qf=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||
|
|
{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Lc=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?
|
|
e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},rf=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}
|
|
function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},sf=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;
|
|
h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];
|
|
return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},tf=function(f){function b(a,b,c,g,h){var e=f.call(this,a,b,c,g,h)||this;e.NAME="ResponseRuleNavigationUpdate";e.logCtor(arguments);return e}qf(b,f);b.prototype.run=function(a){var b=this,c=a.detail,g=c.eventOptions,h=c.serverResponse;a=this._getMatchingRulesForTrigger(a);g.errorContext.CachePopulationRulesForResponseRuleNavigationUpdateTrigger=
|
|
C.serialize(a);a.forEach(function(a){var c=a.rule,e=a.trigger;b.logMark(c,e,g,"Trigger:Start");r.queueTask(function(){return rf(b,void 0,void 0,function(){var a;return sf(this,function(b){switch(b.label){case 0:return this.logTagAndCount(c,e,g,"Intent"),[4,this.isResponseValidForCaching(h,c)];case 1:a=b.sent();if(!a.valid)return this.logTagAndCount(c,e,g,"Fail:Invalid:".concat(a.reason)),[2];b.label=2;case 2:return b.trys.push([2,4,,5]),this.logMark(c,e,g,"Write:Start"),[4,this.cacheWriter.write(h.clone(),
|
|
c,{eventOptions:g,requestStartTimestampSeconds:D.getEpochSeconds(g.timeOriginEpoch),attribution:e.label})];case 3:return b.sent(),this.logMark(c,e,g,"Write:Success"),this.logTagAndCount(c,e,g,"Success"),this.populateCompareCopyCache(g,h.clone(),c,e),[3,5];case 4:return b.sent(),this.logMark(c,e,g,"Write:Fail"),this.logTagAndCount(c,e,g,"Fail:Write"),[3,5];case 5:return[2]}})})})})};b.prototype._getMatchingRulesForTrigger=function(a){var b=[];this.cachePopulationRules.forEach(function(c){for(var e=
|
|
0;e<c.triggers.length;e++){var h=c.triggers[e];if("ResponseRuleNavigationUpdate"===h.name&&h.responseRuleName===a.detail.ruleName){b.push({rule:c,trigger:h});break}}});return b};Lc([k],b.prototype,"run",null);Lc([k],b.prototype,"_getMatchingRulesForTrigger",null);return b}(Kc),uf=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};
|
|
return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),vf=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=
|
|
f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},wf=function(f){function b(a,b,c,g,h,d,n){var e=f.call(this)||this;e.logCtor(arguments);e._responseRuleNavigationUpdateTrigger=new tf(b,c,g,h,n);e._prefetchOnRouteTrigger=new pf(a,b,c,g,h,n);d.subscribe("ResponseRuleNavigation",e);d.subscribe("Navigation",e);return e}uf(b,f);b.prototype.notifyEvent=function(a){switch(a.name){case "ResponseRuleNavigation":this._responseRuleNavigationUpdateTrigger.run(a);
|
|
break;case "Navigation":this._prefetchOnRouteTrigger.run(a)}};vf([k],b.prototype,"notifyEvent",null);return b}(u),xf=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");
|
|
f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),yf=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},zf=function(f){function b(a,b){var c=f.call(this)||this;c.logCtor(arguments);
|
|
c._metricName=a;c._metricsService=b;return c}xf(b,f);b.prototype.generateDiff=function(a,b,c){var e=D.getPerfNow();b=this.generateExternalLibDiff(b,c);this._metricsService.mark(a,this._metricName,e);this._metricsService.tag(a,this._metricName);return this.normalizeExternalLibDiff(b)};yf([k],b.prototype,"generateDiff",null);return b}(u),Af=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,
|
|
c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Bf=function(f){function b(a,e){var c;var g=f.call(this,b._METRIC_NAME,e)||this;g.logCtor(arguments);if("function"!==typeof(null===(c=a.ThirdPartyLibs)||void 0===c?void 0:c.diffMatchPatch))throw t.create("DiffGeneratorMissing");
|
|
g._diffMatchPatch=new a.ThirdPartyLibs.diffMatchPatch;if("function"!==typeof g._diffMatchPatch.diff_main||"function"!==typeof g._diffMatchPatch.diff_cleanupSemantic)throw t.create("DiffGeneratorMissing");return g}Af(b,f);b.prototype.generateExternalLibDiff=function(a,b){a=this._diffMatchPatch.diff_main(a,b);this._diffMatchPatch.diff_cleanupSemantic(a);return a};b.prototype.normalizeExternalLibDiff=function(a){var b=this;return a.map(function(a){return b._processDiffToken(a)})};b.prototype._processDiffToken=
|
|
function(a){return{descriptor:this._processDiffTokenDescriptor(a[0]),value:a[1]}};b.prototype._processDiffTokenDescriptor=function(a){switch(a){case 1:return"Added";case -1:return"Removed";default:return"Unchanged"}};b._METRIC_NAME="DiffMatchPatchGenerator";return b}(zf),Cf=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,
|
|
a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Yb=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-
|
|
1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Df=function(f){function b(a,b){var c=f.call(this)||this;c.logCtor(arguments);c._metricsService=a;c._metricNamePrefix=b;return c}Cf(b,f);b.prototype.logCount=function(a,b,c){this._metricsService.count(a,this._getMetricName(b),c)};b.prototype.logError=function(a,e,c){this._metricsService.error(a,e,b._ERROR_LOGGING_SCOPE,c)};b.prototype._getMetricName=function(a){return"".concat(this._metricNamePrefix,
|
|
":").concat(b._METRIC_LOGGING_SCOPE,":").concat(a)};b._ERROR_LOGGING_SCOPE="CacheMismatchDetection";b._METRIC_LOGGING_SCOPE="cache-mismatch";Yb([k],b.prototype,"logCount",null);Yb([k],b.prototype,"logError",null);Yb([k],b.prototype,"_getMetricName",null);return b}(u),Ef=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,
|
|
a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Ff=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-
|
|
1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Gf=this&&this.__values||function(f){var b="function"===typeof Symbol&&Symbol.iterator,a=b&&f[b],e=0;if(a)return a.call(f);if(f&&"number"===typeof f.length)return{next:function(){f&&e>=f.length&&(f=void 0);return{value:f&&f[e++],done:!f}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.");},Hf=function(f){function b(a,b){var c=f.call(this)||this;c.logCtor(arguments);
|
|
c._identifiedMismatches=b;c._metricsHelper=a;return c}Ef(b,f);b.prototype.publish=function(a,b){var c;b=this._extractMismatchDescriptors(b);if(0!==b.length){try{for(var e=Gf(this._identifiedMismatches),h=e.next();!h.done;h=e.next())h.value.logMetricsIfPresent(a,b)}catch(n){var d={error:n}}finally{try{h&&!h.done&&(c=e.return)&&c.call(e)}finally{if(d)throw d.error;}}this._metricsHelper.logCount(a,"true");this._metricsHelper.logCount(a,"ncount",b.length)}};b.prototype._extractMismatchDescriptors=function(a){for(var b=
|
|
[],c=0;c<a.length;c++)if("Unchanged"!==a[c].descriptor){var g={oldValue:"",newValue:""};c+1<a.length&&"Unchanged"!==a[c+1].descriptor?(g="Removed"===a[c].descriptor?{oldValue:a[c].value,newValue:a[c+1].value}:{oldValue:a[c+1].value,newValue:a[c].value},c++):"Added"===a[c].descriptor?g.newValue=a[c].value:g.oldValue=a[c].value;b.push(g)}return b};Ff([k],b.prototype,"publish",null);return b}(u),If=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Mc=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,
|
|
a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Jf=function(f){function b(a){var b=f.call(this)||this;b.logCtor(arguments);b._metricsHelper=a;return b}If(b,f);b.prototype.isPresent=function(a){var b=this;return a.some(function(a){return b.identifyMismatch(a)})};b.prototype.logMetricsIfPresent=function(a,e){this.isPresent(e)&&
|
|
(this._metricsHelper.logCount(a,"".concat(b._METRIC_SCOPE,":ncount")),this._metricsHelper.logCount(a,"".concat(b._METRIC_SCOPE,":").concat(this.getMetricName())))};b._METRIC_SCOPE="identified";Mc([k],b.prototype,"isPresent",null);Mc([k],b.prototype,"logMetricsIfPresent",null);return b}(u),Kf=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,
|
|
c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Nc=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,
|
|
b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Lf=function(f){function b(a){var b=f.call(this,a)||this;b.logCtor(arguments);return b}Kf(b,f);b.prototype.getMetricName=function(){return b._NAME};b.prototype.identifyMismatch=function(a){return b._MATCHER.test(a.oldValue)||b._MATCHER.test(a.newValue)};b._MATCHER=/\bdir\s*=\s*('|"|\\")?(?:rtl|ltr|auto)\1/i;b._NAME="dir-tag";Nc([k],b.prototype,"getMetricName",null);
|
|
Nc([k],b.prototype,"identifyMismatch",null);return b}(Jf),Mf=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===
|
|
a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Nf=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Of=function(f){function b(a){var b=f.call(this)||this;b.logCtor(arguments);b._metricsHelper=a;return b}
|
|
Mf(b,f);b.prototype.publish=function(a,b){b=this._generateCompressedHtml(b);this._metricsHelper.logError(a,t.create("DiffLogState",void 0,void 0,b,"ERROR"),"ERROR")};b.prototype._generateCompressedHtml=function(a){var b=this;return a.map(function(a){var c="Unchanged"===a.descriptor?b._compressDiffValue(a.value):a.value;c=b._encodeHtml(c);switch(a.descriptor){case "Added":return E.ins(c);case "Removed":return E.del(c);default:return E.span(c)}}).join("")};b.prototype._compressDiffValue=function(a){if(a.length<=
|
|
2*b._COMPRESSED_SLICE_LENGTH+b._COMPRESSION_OVERHEAD)return a;var e=a.slice(0,b._COMPRESSED_SLICE_LENGTH),c=a.slice(-b._COMPRESSED_SLICE_LENGTH);a=a.length-2*b._COMPRESSED_SLICE_LENGTH;return"".concat(e,"...*").concat(a,"*...").concat(c)};b.prototype._encodeHtml=function(a){return a.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26#39;").replace(/\n/g,"\x26para;\x3cbr\x3e")};b._COMPRESSED_SLICE_LENGTH=100;b._COMPRESSION_OVERHEAD=
|
|
20;Nf([k],b.prototype,"publish",null);return b}(u),Pf=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):
|
|
(e.prototype=a.prototype,new e)}}(),Qf=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Rf=function(f){function b(a,b,c,g){var e=f.call(this)||this;e.logCtor(arguments);e._swGlobal=a;e._metricsService=b;
|
|
e._metricsHelper=new Df(b,"".concat(c,":").concat(g));e._diffGenerator=e._initializeDiffGenerator();e._mismatchPublishers=e._initializeMismatchPublishers();return e}Pf(b,f);b.prototype.detectMismatch=function(a,b,c){var e=this,h=this._diffGenerator.generateDiff(a,b,c);if(1===h.length)return!1;r.queueTask(function(){e._mismatchPublishers.forEach(function(b){b.publish(a,h)})});return!0};b.prototype._initializeDiffGenerator=function(){return new Bf(this._swGlobal,this._metricsService)};b.prototype._initializeMismatchPublishers=
|
|
function(){var a=[new Lf(this._metricsHelper)];a=new Hf(this._metricsHelper,a);var b=new Of(this._metricsHelper);return[a,b]};Qf([k],b.prototype,"detectMismatch",null);return b}(u),Sf=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&
|
|
null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),mb=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,
|
|
a,g),g},Wa=function(f){function b(){return null!==f&&f.apply(this,arguments)||this}Sf(b,f);b.prototype.filter=function(a){var b=this;return a.filter(function(a){var c=b.isValid(a);c||b.log("filter","Invalid:",a);return c})};b.prototype.isValidRouteMatcher=function(a){var b=q.isObject,c=q.isNonEmptyString,g=q.isUndefinedOr,h=q.isBoolean;if(!b(a)||!c(a.name))return!1;switch(a.name){case "URLPathRoute":return a.pattern instanceof RegExp&&g(a.stripRefMarkers,h(a.stripRefMarkers))&&g(a.stripLanguageFolder,
|
|
h(a.stripLanguageFolder));default:return!1}};b.prototype.isValidValidationKeys=function(a){var b=q.isArrayWhereEvery,c=q.isOneOf;return b(a,function(a){return c(a,["language","recognition","session","clientlibversion","appversion"])})};b.prototype.isValidForHeaderField=function(a){var b=q.matchesPattern;return b(a,/^[\w\-]+$/)};mb([k],b.prototype,"filter",null);mb([k],b.prototype,"isValidRouteMatcher",null);mb([k],b.prototype,"isValidValidationKeys",null);mb([k],b.prototype,"isValidForHeaderField",
|
|
null);return b}(u),Tf=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,
|
|
new e)}}(),Uf=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Vf=function(f){function b(){return null!==f&&f.apply(this,arguments)||this}Tf(b,f);b.prototype.isValid=function(a){var b=q.isObject,c=q.isNonEmptyString,
|
|
g=q.isPositiveInteger,h=q.isUndefinedOr,d=q.isBoolean,f=q.isOneOf,l=q.isArrayWhereEvery;return b(a)&&c(a.name)&&g(a.version)&&h(a.dontCleanOldVersions,d(a.dontCleanOldVersions))&&h(a.plugins,l(a.plugins,function(a){return f(a,["MaxAge","ValidationKeys","Metadata","LREEviction"])}))};Uf([k],b.prototype,"isValid",null);return b}(Wa),Wf=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,
|
|
c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Xf=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,
|
|
b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Yf=function(f){function b(){return null!==f&&f.apply(this,arguments)||this}Wf(b,f);b.prototype.isValid=function(a){var b=q.isObject,c=q.isNonEmptyString,g=q.isURL;return b(a)&&c(a.name)&&g(a.url)};Xf([k],b.prototype,"isValid",null);return b}(Wa),Zf=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,
|
|
b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Z=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===
|
|
typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Oc=function(f){function b(){return null!==f&&f.apply(this,arguments)||this}Zf(b,f);b.prototype.isValidCachePopulationRuleCompareCopyTransmogs=function(a){var b=this,c=q.isUndefinedOr,g=q.isArrayWhereEvery,h=q.isRegExp,d=q.isObject,f=q.isNonEmptyString;return c(a,g(a,function(a){if(!d(a)||!f(a.name))return!1;
|
|
switch(a.name){case "PatternReplace":return g(a.patternReplaceList,function(a){return h(a.pattern)&&"string"===typeof a.replacement});default:return b._isValidTransmog(a)}}))};b.prototype.isValid=function(a){var b=this,c=q.isObject,g=q.isNonEmptyString,h=q.isNonEmptyArray,d=q.isArrayWhereEvery,f=q.isUndefinedOr;return c(a)&&g(a.name)&&h(a.triggers)&&d(a.triggers,function(a){return b._isValidTrigger(a)})&&this._isValidCachePopulationRuleTransmogs(a.transmogs)&&this._isValidStorage(a.storage)&&f(a.compareCopy,
|
|
function(){return b._isValidCachePopulationRuleCompareCopyConfig(a.compareCopy,a.storage)})&&this._isValidFlags(a.flags)};b.prototype._isValidTrigger=function(a){var b=q.isObject,c=q.isNonEmptyString;if(!b(a)||!c(a.name)||!c(a.label))return!1;switch(a.name){case "ResponseRuleNavigationUpdate":return c(a.responseRuleName);case "PrefetchOnRoute":return this.isValidRouteMatcher(a.routeMatcher)&&this._isValidPrefetch(a.prefetch);default:return!1}};b.prototype._isValidPrefetch=function(a){var b=q.isObject,
|
|
c=q.isNonEmptyString,g=q.isOneOf,h=q.isPositiveInteger;return b(a)&&c(a.endpoint)&&g(a.mode,["cache-miss","always"])&&h(a.delay)};b.prototype._isValidCachePopulationRuleTransmogs=function(a){var b=this,c=q.isUndefinedOr,g=q.isArrayWhereEvery;return c(a,g(a,function(a){return b._isValidTransmog(a)}))};b.prototype._isValidTransmog=function(a){var b=q.isObject,c=q.isNonEmptyString,g=q.isUndefinedOr,h=q.isBoolean,d=q.isArrayWhereEvery,f=q.isNonEmptyArray;if(!b(a)||!c(a.name))return!1;switch(a.name){case "BeforeSingleDelimiter":return c(a.delimiter)&&
|
|
this.isValidForHeaderField(a.delimiterKey)&&g(a.inclusive,h(a.inclusive));case "EagerLoadJSMarker":return f(a.markers)&&d(a.markers,c);case "SyntheticRequestId":return g(a.useStaticRID,h(a.useStaticRID));case "InlinedStylesheet":case "ShoppingPortalLoadJSMarker":return!0;default:return!1}};b.prototype._isValidStorage=function(a){var b=q.isObject,c=q.isNonEmptyString,g=q.isPositiveInteger;return b(a)&&c(a.cacheName)&&c(a.cacheKey)&&g(a.maxAge)&&this.isValidValidationKeys(a.validationKeys)};b.prototype._isValidCompareCopyStorage=
|
|
function(a,b){var c=q.isObject,e=q.isNonEmptyString,h=q.isPositiveInteger;return c(a)&&e(a.cacheName)&&e(a.cacheKey)&&h(a.maxAge)&&a.cacheName!==b.cacheName};b.prototype._isValidCachePopulationRuleCompareCopyConfig=function(a,b){var c=q.isUndefinedOr,e=q.isBoolean;return this.isValidCachePopulationRuleCompareCopyTransmogs(a.transmogs)&&this._isValidCompareCopyStorage(a.storage,b)&&c(a.disableCacheMismatchDetection,e(a.disableCacheMismatchDetection))};b.prototype._isValidFlags=function(a){var b=q.isObject,
|
|
c=q.isUndefinedOr,g=q.isArrayWhereEvery,h=q.isOneOf,d=q.isBoolean;return c(a,b(a)&&g(Object.keys(a),function(a){return h(a,["dontCacheAXModeContent"])})&&c(a.dontCacheAXModeContent,d(a.dontCacheAXModeContent)))};Z([k],b.prototype,"isValidCachePopulationRuleCompareCopyTransmogs",null);Z([k],b.prototype,"isValid",null);Z([k],b.prototype,"_isValidTrigger",null);Z([k],b.prototype,"_isValidPrefetch",null);Z([k],b.prototype,"_isValidCachePopulationRuleTransmogs",null);Z([k],b.prototype,"_isValidTransmog",
|
|
null);Z([k],b.prototype,"_isValidStorage",null);Z([k],b.prototype,"_isValidCompareCopyStorage",null);Z([k],b.prototype,"_isValidCachePopulationRuleCompareCopyConfig",null);Z([k],b.prototype,"_isValidFlags",null);return b}(Wa),$f=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=
|
|
b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Ja=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||
|
|
g;return 3<c&&g&&Object.defineProperty(b,a,g),g},ag=function(f){function b(){return null!==f&&f.apply(this,arguments)||this}$f(b,f);b.prototype.isValid=function(a){var b=this,c=q.isObject,g=q.isNonEmptyString,h=q.isNonEmptyArray,d=q.isUndefinedOr,f=q.isBoolean,l=q.isArrayWhereEvery;return c(a)&&g(a.name)&&h(a.routeMatchers)&&l(a.routeMatchers,function(a){return b.isValidRouteMatcher(a)})&&h(a.levers)&&l(a.levers,function(a){return b._isValidRuleLever(a)})&&d(a.weblabTriggers,l(a.weblabTriggers,function(a){return b._isValidWeblabTrigger(a)}))&&
|
|
f(a.respond)&&this._isValidResponseStrategy(a.responseStrategy)};b.prototype._isValidRuleLever=function(a){var b=q.isNonEmptyString;return b(a)};b.prototype._isValidWeblabTrigger=function(a){var b=q.isObject,c=q.isNonEmptyString;return b(a)&&c(a.name)&&c(a.treatment)};b.prototype._isValidResponseStrategy=function(a){var b=this,c=q.isObject,g=q.isNonEmptyString,h=q.isUndefinedOr,d=q.isBoolean,f=q.isArrayWhereEvery,l=q.isOneOf;if(!c(a)||!g(a.name))return!1;switch(a.name){case "SingleDelimiter":return f(a.pageShells,
|
|
function(a){return g(a.cacheName)&&g(a.cacheKey)&&b.isValidValidationKeys(a.validationKeys)&&b.isValidForHeaderField(a.delimiterKey)&&b._isValidSkeleton(a.skeleton)})&&h(a.noPageShell,c(a.noPageShell)&&this._isValidSkeleton(a.noPageShell.skeleton))&&h(a.preloads,f(a.preloads,function(a){return b._isValidPreload(a)}))&&h(a.flags,c(a.flags)&&f(Object.keys(a.flags),function(b){var c=a.flags[b];return l(b,["passthrough","flushFullOnMissingDelimiter"])&&h(c,d(c))}));case "FullPage":return c(a.cachedPage)&&
|
|
g(a.cachedPage.cacheName)&&g(a.cachedPage.cacheKey)&&this.isValidValidationKeys(a.cachedPage.validationKeys)&&h(a.flags,c(a.flags)&&f(Object.keys(a.flags),function(b){var c=a.flags[b];return l(b,["skipReload","skipNonAppStarts"])&&h(c,d(c))}));default:return!1}};b.prototype._isValidSkeleton=function(a){var b=this,c=q.isObject,g=q.isBoolean,h=q.isNonEmptyString,d=q.isPositiveInteger,f=q.isUndefinedOr,l=q.isOneOf,k=q.isArrayWhereEvery;return f(a,!!a&&c(a)&&h(a.name)&&f(a.prewarm,l(a.prewarm,["http-cache",
|
|
"memory","none"]))&&f(a.race,g(a.race))&&f(a.data,c(a.data))&&c(a.hooks)&&k(Object.keys(a.hooks),function(c){return b._isValidSkeletonHook(a.hooks[c])})&&c(a.hooks.remove)&&c(a.hooks.remove.whenAny)&&d(a.hooks.remove.whenAny.timeout))};b.prototype._isValidSkeletonHook=function(a){var b=q.isObject,c=q.isNonEmptyString,g=q.isPositiveInteger,h=q.isOneOf,d=q.isArrayWhereEvery,f=function(a){return b(a)&&c(a.value)&&g(a.delay)};return d(Object.keys(a),function(b){var e=a[b];return h(b,["whenAny"])&&d(Object.keys(e),
|
|
function(a){var b=e[a];return"timeout"===a&&g(b)||h(a,["domEvent","auiModule","idMatches","selectorMatches"])&&(c(b)||f(b)||d(b,function(a){return c(a)||f(a)}))})})};b.prototype._isValidPreload=function(a){var b=q.isObject,c=q.isNonEmptyString,g=q.isOneOf,h=q.isUndefinedOr;return b(a)&&c(a.purpose)&&h(a.attribution,c(a.attribution))&&g(a.as,["script","style","font","image"])&&h(a.fetchPriority,g(a.fetchPriority,["high","low","auto"]))&&(c(a.href)||b(a.hrefHint)&&c(a.hrefHint.delegate)&&c(a.hrefHint.field))};
|
|
Ja([k],b.prototype,"isValid",null);Ja([k],b.prototype,"_isValidRuleLever",null);Ja([k],b.prototype,"_isValidWeblabTrigger",null);Ja([k],b.prototype,"_isValidResponseStrategy",null);Ja([k],b.prototype,"_isValidSkeleton",null);Ja([k],b.prototype,"_isValidSkeletonHook",null);return b}(Wa),bg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&
|
|
(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),cg=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,
|
|
e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},dg=function(f){function b(){return null!==f&&f.apply(this,arguments)||this}bg(b,f);b.prototype.isValid=function(a){var b=q.isObject,c=q.isNonEmptyString,g=q.isOneOf,h=q.isArrayWhereEvery;return b(a)&&c(a.name)&&b(a.properties)&&h(Object.keys(a.properties),function(b){return g(typeof a.properties[b],["string","number","boolean"])})};cg([k],b.prototype,"isValid",null);return b}(Wa),
|
|
eg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),W=this&&
|
|
this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},lb=function(f){function b(a,e){var c=f.call(this)||this;c._cachePopulationRulesFilter=new Oc;c.logCtor(arguments);c._metricsService=a;c._ruleName=e;c._metricsPrefix=
|
|
"".concat(c._ruleName,":").concat(b.METRIC_SCOPE);return c}eg(b,f);b.prototype.decorateResponseWithStorageHeader=function(a,e,c){if(!e.compareCopy)return c;e=this._getStorageConfigHeaderString(e.compareCopy.storage,a.clientId);return this._decorateResponseWithHeader(a,c,"Storage",b.COMPARE_COPY_STORAGE_CONFIG_HEADER,e)};b.prototype.decorateResponseWithTransmogsHeader=function(a,e,c){if(!e.compareCopy)return c;e=this._getTransmogsHeaderString(e.compareCopy.transmogs);return this._decorateResponseWithHeader(a,
|
|
c,"Transmogs",b.COMPARE_COPY_TRANSMOGS_HEADER,e)};b.prototype.extractStorageConfigFromHeader=function(a,e){e=this._decodeHeaderValue(e.headers.get(b.COMPARE_COPY_STORAGE_CONFIG_HEADER));if(this._validateCompareCopyStorageConfig(e))return e;this._metricsService.count(a,"".concat(this._metricsPrefix,":StorageHeaderUnavailable"))};b.prototype.extractTransmogsFromHeader=function(a,e){if((e=this._decodeHeaderValue(e.headers.get(b.COMPARE_COPY_TRANSMOGS_HEADER)))&&this._cachePopulationRulesFilter.isValidCachePopulationRuleCompareCopyTransmogs(e))return e;
|
|
this._metricsService.count(a,"".concat(this._metricsPrefix,":TransmogsHeaderUnavailable"))};b.prototype.getFullCacheKeyForCompareCopy=function(a,b){if(q.isNonEmptyString(b)&&"unknown"!==b)return"".concat(a,"/").concat(b)};b.prototype._decorateResponseWithHeader=function(a,b,c,g,h){if(!h)return this._metricsService.count(a,"".concat(this._metricsPrefix,":").concat(c,"HeaderDecorationFailed")),b;a=new Headers(b.headers);a.append(g,h);return new Response(b.body,{status:b.status,statusText:b.statusText,
|
|
headers:a})};b.prototype._decodeHeaderValue=function(a){if(q.isNonEmptyString(a))return(a=a?J.decode(a):void 0)?C.reviverDeserialize(a,void 0):void 0};b.prototype._validateCompareCopyStorageConfig=function(a){return q.isObject(a)&&q.isNonEmptyString(a.cacheKey)&&q.isNonEmptyString(a.cacheName)&&q.isPositiveInteger(a.maxAge)};b.prototype._generateStorageConfigWithUniqueId=function(a,b){if(b=this.getFullCacheKeyForCompareCopy(a.cacheKey,b))return a=na.shallow(a),a.cacheKey=b,a};b.prototype._getStorageConfigHeaderString=
|
|
function(a,b){if(this._validateCompareCopyStorageConfig(a)&&(a=this._generateStorageConfigWithUniqueId(a,b))&&(a=C.replacerSerialize(a,!1,""),q.isNonEmptyString(a)))return J.encode(a)};b.prototype._getTransmogsHeaderString=function(a){a=C.replacerSerialize(a,!1,"");if(q.isNonEmptyString(a))return J.encode(a)};b.COMPARE_COPY_STORAGE_CONFIG_HEADER=x.shared.getClientOnlyLibHeader("compare-copy-storage");b.COMPARE_COPY_TRANSMOGS_HEADER=x.shared.getClientOnlyLibHeader("compare-copy-transmogs");b.METRIC_SCOPE=
|
|
"CacheMismatchHeader";W([k],b.prototype,"decorateResponseWithStorageHeader",null);W([k],b.prototype,"decorateResponseWithTransmogsHeader",null);W([k],b.prototype,"extractStorageConfigFromHeader",null);W([k],b.prototype,"extractTransmogsFromHeader",null);W([k],b.prototype,"getFullCacheKeyForCompareCopy",null);W([k],b.prototype,"_decorateResponseWithHeader",null);W([k],b.prototype,"_decodeHeaderValue",null);W([k],b.prototype,"_validateCompareCopyStorageConfig",null);W([k],b.prototype,"_generateStorageConfigWithUniqueId",
|
|
null);W([k],b.prototype,"_getStorageConfigHeaderString",null);W([k],b.prototype,"_getTransmogsHeaderString",null);return b}(u),fg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+
|
|
String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),P=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},sa=this&&this.__awaiter||function(f,
|
|
b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},ta=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:
|
|
a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=
|
|
d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},gg=this&&this.__read||function(f,b){var a="function"===typeof Symbol&&f[Symbol.iterator];if(!a)return f;f=a.call(f);
|
|
var e,c=[];try{for(;(void 0===b||0<b--)&&!(e=f.next()).done;)c.push(e.value)}catch(h){var g={error:h}}finally{try{e&&!e.done&&(a=f["return"])&&a.call(f)}finally{if(g)throw g.error;}}return c},hg=function(f){function b(a,b,c,g){var e=f.call(this)||this;e.logCtor(arguments);e._swGlobal=a;e._cacheService=b;e._metricsService=c;e._compareCopyCacheWriter=new kf(e._cacheService,e._metricsService);e._eventBus=g;e._eventBus.subscribe("DetectCacheMismatch",e);e._eventBus.subscribe("CacheTTLExpired",e);return e}
|
|
fg(b,f);b.prototype.notifyEvent=function(a){switch(a.name){case "DetectCacheMismatch":this._handleDetectCacheMismatchEvent(a);break;case "CacheTTLExpired":this._handleCacheTTLExpiredEvent(a)}};b.prototype.detectCacheMismatch=function(a,b,c,g,h){var e=this;this._logTagAndCount(a,g,"CompareIntent");var f=this._initCacheMismatchHeadersHelper(g);try{var l=this._initCacheMismatchDetector(g,c)}catch(p){this._evictCompareCopyFromCache(a,g,h);w.matchesCode(p,"DiffGeneratorMissing")&&this._logTagAndCount(a,
|
|
g,"CacheMismatchDetectorInitError");this._logError(a,p);return}r.queueTask(function(){return sa(e,void 0,void 0,function(){var c,e,d,n,k,q,r,u,v,w,x;return ta(this,function(p){switch(p.label){case 0:return p.trys.push([0,4,,5]),c=D.getPerfNow(),[4,this._readCompareCopyFromCache(a,g,h)];case 1:e=p.sent();if(!e)throw t.create("CompareCopyUnavailable");d=f.extractTransmogsFromHeader(a,e);if(!d)throw t.create("CompareCopyTransmogsUnavailable");u=(r=Promise).all;v=[e.text()];return[4,this._compareCopyCacheWriter.getTransmoggedResponse(b.clone(),
|
|
d,this._getWriterOptions(a))];case 2:return[4,u.apply(r,[v.concat([p.sent().text()])])];case 3:return n=gg.apply(void 0,[p.sent(),2]),k=n[0],q=n[1],this._evictCompareCopyFromCache(a,g,h),w=l.detectMismatch(a,k,q),this._logMark(a,g,"MismatchDetectionTime",c),this._logTagAndCount(a,g,"MismatchDetected:".concat(w)),this._logTagAndCount(a,g,"CompareSuccess"),[3,5];case 4:return x=p.sent(),this._evictCompareCopyFromCache(a,g,h),this._logTagAndCount(a,g,"CompareFailed"),this._logError(a,x),[3,5];case 5:return[2]}})})})};
|
|
b.prototype.writeCompareCopyToCache=function(a,b,c,g){return sa(this,void 0,void 0,function(){return ta(this,function(e){switch(e.label){case 0:if(!c.compareCopy)return[2];e.label=1;case 1:return e.trys.push([1,3,,4]),this._logMark(a,c.name,"CompareCopy:Write:Start"),[4,this._compareCopyCacheWriter.write(b,c,{eventOptions:a,requestStartTimestampSeconds:D.getEpochSeconds(a.timeOriginEpoch),attribution:g})];case 2:return e.sent(),this._logMark(a,c.name,"CompareCopy:Write:Success"),this._logTagAndCount(a,
|
|
c.name,"CompareCopy:Success"),[3,4];case 3:return e.sent(),this._logMark(a,c.name,"CompareCopy:Write:Fail"),this._logTagAndCount(a,c.name,"CompareCopy:Fail:Write"),[3,4];case 4:return[2]}})})};b.prototype._handleDetectCacheMismatchEvent=function(a){return sa(this,void 0,void 0,function(){var b,c,g,h,d,f,l=this;return ta(this,function(e){b=a.detail;c=b.eventOptions;g=b.serverResponse;h=b.responseStrategy;d=b.ruleName;f=b.compareCopyStorageConfig;r.queueTask(function(){return sa(l,void 0,void 0,function(){return ta(this,
|
|
function(a){this.detectCacheMismatch(c,g,h,d,f);return[2]})})});return[2]})})};b.prototype._handleCacheTTLExpiredEvent=function(a){return sa(this,void 0,void 0,function(){var e,c,g,h=this;return ta(this,function(d){e=a.detail;c=e.eventOptions;g=e.response;r.queueTask(function(){return sa(h,void 0,void 0,function(){var a,e;return ta(this,function(d){try{a=this._initCacheMismatchHeadersHelper(b._CACHE_TTL_EVICT_RULE_NAME);e=a.extractStorageConfigFromHeader(c,g);if(!e)return[2];this._evictCompareCopyFromCache(c,
|
|
b._CACHE_TTL_EVICT_RULE_NAME,e)}catch(m){this._logError(c,m)}return[2]})})});return[2]})})};b.prototype._readCompareCopyFromCache=function(a,b,c){return sa(this,void 0,void 0,function(){var e,h;return ta(this,function(d){this._logTagAndCount(a,b,"ReadIntent");e=c.cacheName;h=c.cacheKey;return[2,this._cacheService.read(a,e,h)]})})};b.prototype._evictCompareCopyFromCache=function(a,b,c){return sa(this,void 0,void 0,function(){var e,h,d,f;return ta(this,function(g){switch(g.label){case 0:this._logTagAndCount(a,
|
|
b,"EvictIntent"),e=c.cacheName,h=c.cacheKey,d=!1,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,this._cacheService.evict(a,e,h)];case 2:return d=g.sent(),[3,4];case 3:return f=g.sent(),this._logError(a,f),[3,4];case 4:return this._logTagAndCount(a,b,"Evict:".concat(d)),[2]}})})};b.prototype._logMark=function(a,b,c,g){b=this._getMetricName(b,c);this._metricsService.mark(a,b,g)};b.prototype._logCount=function(a,b,c,g){b=this._getMetricName(b,c);this._metricsService.count(a,b,g)};b.prototype._logTag=
|
|
function(a,b,c){b=this._getMetricName(b,c);this._metricsService.tag(a,b)};b.prototype._logTagAndCount=function(a,b,c,g){this._logTag(a,b,c);this._logCount(a,b,c,g)};b.prototype._logError=function(a,e){var c=w.matchesSignature(e,H.FAILED_TO_FETCH),g=w.matchesCodeOrSignature(e,"NetworkError",H.NETWORK_ERROR);this._metricsService.error(a,e,b._METRIC_LOGGING_SCOPE,"ERROR");this._metricsService.countError(a,e,c?"".concat("FailedToFetch",":").concat(b._METRIC_LOGGING_SCOPE):g?"".concat("NetworkError",":").concat(b._METRIC_LOGGING_SCOPE):
|
|
b._METRIC_LOGGING_SCOPE)};b.prototype._getMetricName=function(a,e){return"".concat(a,":").concat(b._METRIC_LOGGING_SCOPE,":").concat(e)};b.prototype._getWriterOptions=function(a){return{eventOptions:a,requestStartTimestampSeconds:D.getEpochSeconds(a.timeOriginEpoch),attribution:b._WRITER_OPTIONS_LABEL}};b.prototype._initCacheMismatchHeadersHelper=function(a){return new lb(this._metricsService,a)};b.prototype._initCacheMismatchDetector=function(a,b){return new Rf(this._swGlobal,this._metricsService,
|
|
a,b)};b._METRIC_LOGGING_SCOPE="CacheMismatchDetectionService";b._CACHE_TTL_EVICT_RULE_NAME="CACHE-TTL-EVICT-COMP-COPY";b._WRITER_OPTIONS_LABEL="compcopy";P([k],b.prototype,"notifyEvent",null);P([k],b.prototype,"detectCacheMismatch",null);P([k],b.prototype,"writeCompareCopyToCache",null);P([k],b.prototype,"_readCompareCopyFromCache",null);P([k],b.prototype,"_evictCompareCopyFromCache",null);P([k],b.prototype,"_logMark",null);P([k],b.prototype,"_logCount",null);P([k],b.prototype,"_logTag",null);P([k],
|
|
b.prototype,"_logTagAndCount",null);P([k],b.prototype,"_logError",null);P([k],b.prototype,"_getMetricName",null);P([k],b.prototype,"_getWriterOptions",null);P([k],b.prototype,"_initCacheMismatchHeadersHelper",null);P([k],b.prototype,"_initCacheMismatchDetector",null);return b}(u),ig=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=
|
|
b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Q=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=
|
|
f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Pc=this&&this.__values||function(f){var b="function"===typeof Symbol&&Symbol.iterator,a=b&&f[b],e=0;if(a)return a.call(f);if(f&&"number"===typeof f.length)return{next:function(){f&&e>=f.length&&(f=void 0);return{value:f&&f[e++],done:!f}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.");},Qc=function(f){function b(a,b,c){var e=f.call(this)||this;e.logCtor(arguments);
|
|
e._maxEntries=a;"function"===typeof c&&(e._stateChangeCallback=c);e._entries=e._trimToMaxSize(b);var h={added:new Map(e._entries)};0<e.size()&&e._stateChanged(h);return e}ig(b,f);b.prototype.get=function(a){return this._entries.get(a)};b.prototype.set=function(a,b){this._overflow();this._entries.set(a,b);a={added:new Map([[a,b]])};this._stateChanged(a)};b.prototype.delete=function(a){var b=this._entries.get(a);if(!b)return!1;var c=this._entries.delete(a);c&&(a={removed:new Map([[a,b]])},this._stateChanged(a));
|
|
return c};b.prototype.has=function(a){return this._entries.has(a)};b.prototype.size=function(){return this._entries.size};b.prototype.full=function(){return this._entries.size>=this._maxEntries};b.prototype.keys=function(){return this._entries.keys()};b.prototype.serialize=function(a){void 0===a&&(a="[]");return C.serialize(Array.from(this._entries.entries()),!1,a)};b.prototype.clear=function(){var a={removed:new Map(this._entries)};this._entries.clear();this._stateChanged(a)};b.prototype._trimToMaxSize=
|
|
function(a){var b;a=a?new Map(a):new Map;try{for(var c=Pc(a.keys()),g=c.next();!(g.done||a.size<=this._maxEntries);g=c.next())a.delete(g.value)}catch(d){var h={error:d}}finally{try{g&&!g.done&&(b=c.return)&&b.call(c)}finally{if(h)throw h.error;}}return a};b.prototype._overflow=function(){var a;try{for(var b=Pc(this.keys()),c=b.next();!c.done;c=b.next()){var g=c.value;if(!this.full())break;this.delete(g)}}catch(d){var h={error:d}}finally{try{c&&!c.done&&(a=b.return)&&a.call(b)}finally{if(h)throw h.error;
|
|
}}};b.prototype._stateChanged=function(a){this._stateChangeCallback&&this._stateChangeCallback.call(void 0,this,a)};Q([k],b.prototype,"get",null);Q([k],b.prototype,"set",null);Q([k],b.prototype,"delete",null);Q([k],b.prototype,"has",null);Q([k],b.prototype,"size",null);Q([k],b.prototype,"full",null);Q([k],b.prototype,"keys",null);Q([k],b.prototype,"serialize",null);Q([k],b.prototype,"clear",null);Q([k],b.prototype,"_trimToMaxSize",null);Q([k],b.prototype,"_overflow",null);Q([k],b.prototype,"_stateChanged",
|
|
null);return b}(u),jg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,
|
|
new e)}}(),nb=function(f){function b(a,b,c){var e=f.call(this,a,b,c)||this;e.logCtor(arguments);return e}jg(b,f);return b}(Qc),kg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+
|
|
String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Rc=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},ob=function(f){function b(a,
|
|
b,c){var e=f.call(this,a,b,c)||this;e.logCtor(arguments);return e}kg(b,f);b.prototype.get=function(a){var b=f.prototype.get.call(this,a);if(b)return this.set(a,b),b};b.prototype.set=function(a,b){f.prototype.delete.call(this,a);f.prototype.set.call(this,a,b)};Rc([k],b.prototype,"get",null);Rc([k],b.prototype,"set",null);return b}(Qc),lg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,
|
|
c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),mg=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,
|
|
b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Zb=function(f){function b(a){var b=f.call(this)||this;b.logCtor(arguments);b.eventBus=a;return b}lg(b,f);b.prototype.notify=function(a,b,c){this.accepts(a,b)&&this.publish(a,b,c)};mg([k],b.prototype,"notify",null);return b}(u),ng=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
|
|
b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),$b=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&
|
|
"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},og=function(f){function b(a){var e=f.call(this,a)||this;e.logCtor(arguments);e._readyStore=new nb(b._MAX_CLIENTS);return e}ng(b,f);b.prototype.isClientReady=function(a){return this._readyStore.has(a)};b.prototype.accepts=function(a,b){return!(!b||"retail_service_worker_messaging"!==b.feature||"client_messaging_ready"!==
|
|
b.command)};b.prototype.publish=function(a,b,c){this._readyStore.set(a,!0);this.eventBus.publish({name:"ClientReady",detail:{eventOptions:c}})};b._MAX_CLIENTS=50;$b([k],b.prototype,"isClientReady",null);$b([k],b.prototype,"accepts",null);$b([k],b.prototype,"publish",null);return b}(Zb),pg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&
|
|
(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Sc=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,
|
|
e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},qg=function(f){function b(a){var b=f.call(this,a)||this;b.logCtor(arguments);return b}pg(b,f);b.prototype.accepts=function(a,b){return!(!b||"lightsaber"!==b.feature||"rendering_hints"!==b.command||!b.options||"object"!==typeof b.options)};b.prototype.publish=function(a,b,c){this.eventBus.publish({name:"RenderingHints",detail:{eventOptions:c,options:b.options}})};Sc([k],
|
|
b.prototype,"accepts",null);Sc([k],b.prototype,"publish",null);return b}(Zb),rg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);
|
|
b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Tc=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},sg=function(f){function b(a){var b=f.call(this,a)||this;b.logCtor(arguments);
|
|
return b}rg(b,f);b.prototype.accepts=function(a,b){return!(!b||"lightsaber"!==b.feature||"customer_context_change.v1"!==b.command||!this._isValidCustomerContextChange(b.options))};b.prototype.publish=function(a,b,c){a=this._filterCustomerContextChangeMessage(b.options);this.eventBus.publish({name:"CustomerContextChange",detail:{eventOptions:c,options:a}})};b.prototype._isValidCustomerContextChange=function(a){var b=this,c=q.isObject,g=q.isOneOf,h=q.isNonEmptyArray,d=q.isArrayWhereEvery;return c(a)&&
|
|
h(a.changes)&&d(a.changes,function(c){return g(c,["customer","exports","lop","marketplace"])&&b._isValidCustomerContextChangeKey(c,a)})};b.prototype._filterCustomerContextChangeMessage=function(a){var b={changes:a.changes};a.changes.forEach(function(c){b[c]=na.shallow(a[c])});return b};b.prototype._isValidCustomerContextChangeKey=function(a,b){var c,e,h=q.isArrayWhereEvery,d=q.isObject,f=q.isNonEmptyString,l=q.isOneOf;return d(b[a])&&h(Object.keys(b[a]),function(a){return l(a,["new","old"])})&&f(null===
|
|
(c=b[a])||void 0===c?void 0:c.new)&&f(null===(e=b[a])||void 0===e?void 0:e.old)};Tc([k],b.prototype,"accepts",null);Tc([k],b.prototype,"publish",null);return b}(Zb),tg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+
|
|
String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),ua=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Uc=this&&this.__awaiter||function(f,
|
|
b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},Vc=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:
|
|
a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=
|
|
d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},ug=function(f){function b(a,b){var c=f.call(this)||this;c.logCtor(arguments);c._swGlobal=a;c._clientReadyPublisher=
|
|
new og(b);c._renderingHintsPublisher=new qg(b);c._customerContextChangePublisher=new sg(b);c._listenForClientMessages();return c}tg(b,f);b.prototype.isClientReady=function(a){return this._clientReadyPublisher.isClientReady(a)};b.prototype.getClient=function(a){return Uc(this,void 0,void 0,function(){var b;return Vc(this,function(c){switch(c.label){case 0:return[4,this._swGlobal.clients.get(a)];case 1:if(b=c.sent())return[2,b];throw t.create("ClientNotFound",{clientId:a});}})})};b.prototype.postMessageToClient=
|
|
function(a,b){a.postMessage(b)};b.prototype.postMessageToClientById=function(a,b){return Uc(this,void 0,void 0,function(){var c;return Vc(this,function(e){switch(e.label){case 0:return[4,this.getClient(a)];case 1:return c=e.sent(),this.postMessageToClient(c,b),[2]}})})};b.prototype.notify=function(a,b,c){this._publish(a,b,c)};b.prototype._listenForClientMessages=function(){var a=this;this._swGlobal.addEventListener("message",function(b){if(a._filter(b)){var c=b.source.id;b=b.data;var e=ja.create(c);
|
|
a._publish(c,b,e)}})};b.prototype._publish=function(a,b,c){[this._clientReadyPublisher,this._renderingHintsPublisher,this._customerContextChangePublisher].forEach(function(e){e.notify(a,b,c)})};b.prototype._filter=function(a){return a.origin===this._swGlobal.location.origin&&a.source instanceof WindowClient&&"string"===typeof a.source.id};ua([k],b.prototype,"isClientReady",null);ua([k],b.prototype,"getClient",null);ua([k],b.prototype,"postMessageToClient",null);ua([k],b.prototype,"postMessageToClientById",
|
|
null);ua([k],b.prototype,"notify",null);ua([k],b.prototype,"_listenForClientMessages",null);ua([k],b.prototype,"_publish",null);ua([k],b.prototype,"_filter",null);return b}(u),vg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==
|
|
a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),va=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,
|
|
a,g),g},ac=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},bc=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");
|
|
for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=
|
|
d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},wg=function(f){function b(a,e,c){var g=f.call(this)||this;g._computed={};
|
|
g.logCtor(arguments);g._metricsService=a;g._errorLoggingScope="ContentFragmentService";g._memoryCache=new ob(b._MAX_MEMORY_CACHE_ENTRIES);g._init(c,e);return g}vg(b,f);b.prototype.render=function(a,b,c){return ac(this,void 0,void 0,function(){var e,h;return bc(this,function(d){switch(d.label){case 0:return e=this._getContentFragmentConfig(b),e?(h=this._fetchFromMemory(e.name))?[3,2]:[4,this._fetchFromNetwork(a,e)]:[2];case 1:h=d.sent(),d.label=2;case 2:return h?[2,(new je(a,this._metricsService,b,
|
|
h,c)).getResponse()]:[2]}})})};b.prototype.prewarm=function(a,b,c){var e=this,h=this._getContentFragmentConfig(b);if(h)switch(c){case "http-cache":case "memory":r.queueTask(function(){return ac(e,void 0,void 0,function(){var e;return bc(this,function(d){switch(d.label){case 0:return[4,this._fetchFromNetwork(a,h,!0)];case 1:return e=d.sent(),"memory"===c&&this._cacheInMemory(b,e),[2]}})})})}};b.prototype.notifyEvent=function(a){switch(a.name){case "ContentFragmentSpeculation":this.prewarm(a.detail.eventOptions,
|
|
a.detail.name,a.detail.prewarm)}};b.prototype._fetchFromNetwork=function(a,b,c){void 0===c&&(c=!1);return ac(this,void 0,void 0,function(){var e;return bc(this,function(g){switch(g.label){case 0:return g.trys.push([0,2,,3]),[4,(new Ib(b.url)).getResponse()];case 1:return[2,g.sent()];case 2:return e=g.sent(),this._metricsService.countError(a,e,c?"".concat(this._errorLoggingScope,":Prewarming"):this._errorLoggingScope),[2];case 3:return[2]}})})};b.prototype._fetchFromMemory=function(a){return(a=this._memoryCache.get(a))?
|
|
a.clone():void 0};b.prototype._cacheInMemory=function(a,b){b&&this._memoryCache.set(a,b)};b.prototype._getContentFragmentConfig=function(a){return this._computed[a]};b.prototype._init=function(a,b){var c=this;a.forEach(function(a){c._computed[a.name]=a});b.subscribe("ContentFragmentSpeculation",this)};b._MAX_MEMORY_CACHE_ENTRIES=100;va([k],b.prototype,"render",null);va([k],b.prototype,"prewarm",null);va([k],b.prototype,"notifyEvent",null);va([k],b.prototype,"_fetchFromNetwork",null);va([k],b.prototype,
|
|
"_fetchFromMemory",null);va([k],b.prototype,"_cacheInMemory",null);va([k],b.prototype,"_getContentFragmentConfig",null);va([k],b.prototype,"_init",null);return b}(u),xg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+
|
|
String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),pb=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},yg=function(f){function b(a){var b=
|
|
f.call(this)||this,c=fa.getCustomerProperties(a);"function"===typeof(null===c||void 0===c?void 0:c.getSessionId)&&(b._sessionId=c.getSessionId());"function"===typeof(null===c||void 0===c?void 0:c.getDirectedCustomerId)&&(b._directedCustomerId=c.getDirectedCustomerId());"function"===typeof(null===c||void 0===c?void 0:c.getLanguageOfPreference)&&(b._languageOfPreference=c.getLanguageOfPreference());b._appVersion=Y.getAppVersion(a);return b}xg(b,f);b.prototype.getSessionId=function(){return this._sessionId};
|
|
b.prototype.getDirectedCustomerId=function(){return this._directedCustomerId};b.prototype.getLanguage=function(){return this._languageOfPreference};b.prototype.getAppVersion=function(){return this._appVersion};pb([k],b.prototype,"getSessionId",null);pb([k],b.prototype,"getDirectedCustomerId",null);pb([k],b.prototype,"getLanguage",null);pb([k],b.prototype,"getAppVersion",null);return b}(u),zg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
|
|
function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Ka=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,
|
|
a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Ag=function(f){function b(){var a=f.call(this)||this;a.logCtor(arguments);a._subscriptionsByEvents={};a._subscriptionCount=0;return a}zg(b,f);b.prototype.publish=function(a){var b=this,c=this._subscriptionsByEvents[this._getInternalEventName(a.name)];c&&Object.keys(c).forEach(function(e){var g=
|
|
c[e];g.once&&b.unsubscribe(e);b._notify(a,g)})};b.prototype.subscribe=function(a,b,c,g){void 0===c&&(c="async");a=this._getInternalEventName(a);var e=this._getUniqueSubscriptionId();b={subscriptionId:e,mode:c,subscriber:b,once:g};this._subscriptionsByEvents.hasOwnProperty(a)||(this._subscriptionsByEvents[a]={});this._subscriptionsByEvents[a][e]=b;return e};b.prototype.unsubscribe=function(a){var b=this;Object.keys(this._subscriptionsByEvents).forEach(function(c){var e=b._subscriptionsByEvents[c];
|
|
Object.keys(e).forEach(function(b){b===a&&delete e[b]})})};b.prototype._notify=function(a,b){var c=function(){b.subscriber.notifyEvent(a)};"sync"===b.mode?c():r.queueTask(c)};b.prototype._getUniqueSubscriptionId=function(){return"".concat(this._subscriptionCount++)};b.prototype._getInternalEventName=function(a){return"".concat(v.NAMESPACE,":").concat(a)};Ka([k],b.prototype,"publish",null);Ka([k],b.prototype,"subscribe",null);Ka([k],b.prototype,"unsubscribe",null);Ka([k],b.prototype,"_notify",null);
|
|
Ka([k],b.prototype,"_getUniqueSubscriptionId",null);Ka([k],b.prototype,"_getInternalEventName",null);return b}(u),Bg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");
|
|
f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Cg=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Wc=function(f){function b(a,b,c){var e=f.call(this)||this;e.logCtor(arguments);
|
|
e.swGlobal=a;e.metricsService=b;e.eventBus=c;e._initFetchHandling();return e}Bg(b,f);b.prototype._initFetchHandling=function(){var a=this;this.swGlobal.addEventListener("fetch",function(b){if(a.filter(b)){var c=ja.create(b.resultingClientId);a.handle(c,b);a.publishEvent(c,b)}})};Cg([k],b.prototype,"_initFetchHandling",null);return b}(u),Dg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,
|
|
c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Xc=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,
|
|
b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Eg=function(f){function b(a,b,c,g){var e=f.call(this,a,c,g)||this;e.logCtor(arguments);e._clientMessageAsFetchResponseService=b;e._swGlobal=a;return e}Dg(b,f);b.prototype.filter=function(a){a=a.request;var e=a.url;return"GET"===a.method&&0===e.indexOf("".concat(this._swGlobal.location.origin).concat(b.CLIENT_MSG_AS_FETCH_URL_PATH))};b.prototype.handle=function(a,b){this._clientMessageAsFetchResponseService.respond(a,
|
|
b)};b.prototype.publishEvent=function(a,b){};b.CLIENT_MSG_AS_FETCH_URL_PATH="/".concat(v.NAMESPACE_LCASE,"/client-api/message");Xc([k],b.prototype,"handle",null);Xc([k],b.prototype,"publishEvent",null);return b}(Wc),Fg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=
|
|
b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),qb=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||
|
|
g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Gg=function(f){function b(a,b,c,g,h){var d=f.call(this,a,c,g)||this;d.logCtor(arguments);d._requireNavigationPreloadSupport=h.usePreloadResponseOnlyForServerResponseOnNavigations;d._navigationResponseService=b;return d}Fg(b,f);b.prototype.filter=function(a){a=a.request;var b=a.destination,c=a.method,g=a.isHistoryNavigation;return"navigate"===a.mode&&"document"===b&&"GET"===c&&!g};b.prototype.handle=function(a,b){this._shouldSkipInterception(a,b)||this._navigationResponseService.respond(a,
|
|
b)};b.prototype.publishEvent=function(a,b){this.eventBus.publish({name:"Navigation",detail:{request:b.request,eventOptions:a}})};b.prototype._shouldSkipInterception=function(a,b){return this._hasSkipInterceptionUrlSubstring(a,b)||this._hasSkipInterceptUrlParam(a,b)||this._requiresButDoesNotSupportNavigationPreload(b)};b.prototype._hasSkipInterceptionUrlSubstring=function(a,e){var c=this,g=["lx_bd","i\x3dluxury","purchasePrograms\x3dBOND","ref\x3dluxury_cx_proceed"],h=Y.getCountryCode(this.swGlobal);
|
|
h&&h.toLowerCase()===b.IN_COUNTRY_CODE&&g.push("node\x3daps");var d=g.filter(function(a){return-1<e.request.url.indexOf(a)});r.queueTask(function(){d.forEach(function(b){b=Qa.onlyWordChars(b).substr(0,50);c.metricsService.tag(a,"".concat("SkipIntercept",":").concat(b))})});return 0<d.length};b.prototype._hasSkipInterceptUrlParam=function(a,b){var c=this,e=(b=L.parse(b.request.url))?x.skipIntercept.getParam(b):"NoURL";e&&r.queueTask(function(){var b=Qa.onlyWordChars(e).substr(0,50);c.metricsService.tag(a,
|
|
"SkipIntercept");c.metricsService.tag(a,"".concat("SkipIntercept",":").concat(b))});return!!e};b.prototype._requiresButDoesNotSupportNavigationPreload=function(a){return this._requireNavigationPreloadSupport&&!a.preloadResponse};b.IN_COUNTRY_CODE="in";qb([k],b.prototype,"handle",null);qb([k],b.prototype,"publishEvent",null);qb([k],b.prototype,"_hasSkipInterceptUrlParam",null);qb([k],b.prototype,"_requiresButDoesNotSupportNavigationPreload",null);return b}(Wc),Ca=this&&this.__decorate||function(f,
|
|
b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Hg=function(){function f(){this._bufferedCounterLRUStore=new ob(f._MAX_CLIENTS);this._bufferedCountErrorLRUStore=new ob(f._MAX_CLIENTS)}f.prototype.bufferedCounter=function(b){var a=b.eventOptions.clientId,
|
|
e=this._isNewClientId(a),c=[];this._bufferedCounterLRUStore.has(a)&&(c=this._bufferedCounterLRUStore.get(a));var g=!1;c&&(g=c.length>=f._MAX_COUNTERS_PER_CLIENT,ha.pushClamped(c,b,f._MAX_COUNTERS_PER_CLIENT),this._bufferedCounterLRUStore.set(a,c));return{isNewBufferCreated:e,isBufferOverflowed:g}};f.prototype.bufferedCounterSize=function(){return this._bufferedCounterLRUStore.size()};f.prototype.drainBufferedCounters=function(b){var a=this._bufferedCounterLRUStore.get(b);this._bufferedCounterLRUStore.delete(b);
|
|
return a};f.prototype.bufferedCountError=function(b){var a=b.eventOptions.clientId,e=this._isNewClientId(a),c=[];this._bufferedCountErrorLRUStore.has(a)&&(c=this._bufferedCountErrorLRUStore.get(a));var g=!1;c&&(g=c.length>=f._MAX_COUNTERS_PER_CLIENT,ha.pushClamped(c,b,f._MAX_ERROR_COUNTERS_PER_CLIENT),this._bufferedCountErrorLRUStore.set(a,c));return{isNewBufferCreated:e,isBufferOverflowed:g}};f.prototype.bufferedCountErrorSize=function(){return this._bufferedCountErrorLRUStore.size()};f.prototype.drainBufferedCountErrors=
|
|
function(b){var a=this._bufferedCountErrorLRUStore.get(b);this._bufferedCountErrorLRUStore.delete(b);return a};f.prototype._isNewClientId=function(b){return!this._bufferedCounterLRUStore.has(b)&&!this._bufferedCountErrorLRUStore.has(b)};f._MAX_CLIENTS=50;f._MAX_COUNTERS_PER_CLIENT=20;f._MAX_ERROR_COUNTERS_PER_CLIENT=20;Ca([k],f.prototype,"bufferedCounter",null);Ca([k],f.prototype,"bufferedCounterSize",null);Ca([k],f.prototype,"drainBufferedCounters",null);Ca([k],f.prototype,"bufferedCountError",null);
|
|
Ca([k],f.prototype,"bufferedCountErrorSize",null);Ca([k],f.prototype,"drainBufferedCountErrors",null);Ca([k],f.prototype,"_isNewClientId",null);return f}(),Ig=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+
|
|
String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),y=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},aa=this&&this.__awaiter||function(f,
|
|
b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},ba=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:
|
|
a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=
|
|
d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},Jg=function(f){function b(a,b){var c=f.call(this)||this;c.logCtor(arguments);c.reset();b.subscribe("ClientReady",c);
|
|
c._clientMessagingService=a;return c}Ig(b,f);b.prototype.reset=function(){this._bufferedCounters=[];this._bufferedTags=[];this._bufferedErrors=[];this._bufferedWeblabTriggers=[]};b.prototype.counter=function(a,b,c){var e=this;this._clientMessagingService.isClientReady(a)?r.queueTask(function(){return aa(e,void 0,void 0,function(){var e,d;return ba(this,function(g){switch(g.label){case 0:return g.trys.push([0,2,,3]),[4,this._getClient(a)];case 1:return e=g.sent(),this._postCounter(e,b,c),[3,3];case 2:return d=
|
|
g.sent(),this.log("counter",d.message),[3,3];case 3:return[2]}})})}):this._bufferCounter(a,b,c)};b.prototype.tag=function(a,b){var c=this;this._clientMessagingService.isClientReady(a)?r.queueTask(function(){return aa(c,void 0,void 0,function(){var c,e;return ba(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),[4,this._getClient(a)];case 1:return c=d.sent(),this._postTag(c,b),[3,3];case 2:return e=d.sent(),this.log("tag",e.message),[3,3];case 3:return[2]}})})}):this._bufferTag(a,
|
|
b)};b.prototype.error=function(a,b,c,g){var e=this;this._clientMessagingService.isClientReady(a)?r.queueTask(function(){return aa(e,void 0,void 0,function(){var d,e;return ba(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),[4,this._getClient(a)];case 1:return d=h.sent(),this._postError(d,b,c,g),[3,3];case 2:return e=h.sent(),this.log("tag",e.message),[3,3];case 3:return[2]}})})}):this._bufferError(a,b,c,g)};b.prototype.weblabTrigger=function(a,b,c){var e=this;this._clientMessagingService.isClientReady(a)?
|
|
r.queueTask(function(){return aa(e,void 0,void 0,function(){var e,d;return ba(this,function(g){switch(g.label){case 0:return g.trys.push([0,2,,3]),[4,this._getClient(a)];case 1:return e=g.sent(),this._postWeblabTrigger(e,b,c),[3,3];case 2:return d=g.sent(),this.log("weblabtrigger",d.message),[3,3];case 3:return[2]}})})}):this._bufferWeblabTrigger(a,b,c)};b.prototype.notifyEvent=function(a){var b=this;switch(a.name){case "ClientReady":r.queueTask(function(){return aa(b,void 0,void 0,function(){var b,
|
|
e,h,d=this;return ba(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),b=a.detail.eventOptions.clientId,[4,this._getClient(b)];case 1:return e=c.sent(),r.queueTask(function(){d._drainBufferedCounters(e)}),r.queueTask(function(){d._drainBufferedTags(e)}),r.queueTask(function(){d._drainBufferedErrors(e)}),r.queueTask(function(){d._drainBufferedWeblabTriggers(e)}),[3,3];case 2:return h=c.sent(),this.log("notifyEvent",h.message),[3,3];case 3:return[2]}})})})}};b.prototype._bufferCounter=
|
|
function(a,e,c){ha.pushClamped(this._bufferedCounters,{clientId:a,name:e,value:c},b._MAX_COUNTERS)};b.prototype._bufferTag=function(a,e){ha.pushClamped(this._bufferedTags,{clientId:a,name:e},b._MAX_TAGS)};b.prototype._bufferError=function(a,e,c,g){ha.pushClamped(this._bufferedErrors,{clientId:a,message:e,attribution:c,level:g},b._MAX_ERRORS)};b.prototype._bufferWeblabTrigger=function(a,e,c){ha.pushClamped(this._bufferedWeblabTriggers,{clientId:a,name:e,treatment:c},b._MAX_WEBLAB_TRIGGERS)};b.prototype._drainBufferedCounters=
|
|
function(a){for(var b=this,c=[],g=function(d){var e=h._bufferedCounters[d];if(a.id!==e.clientId)return c.push(e),"continue";r.queueTask(function(){return aa(b,void 0,void 0,function(){return ba(this,function(b){this._postCounter(a,e.name,e.value);return[2]})})})},h=this,d=0;d<this._bufferedCounters.length;d++)g(d);this._bufferedCounters=c};b.prototype._drainBufferedTags=function(a){for(var b=this,c=[],g=function(d){var e=h._bufferedTags[d];if(a.id!==e.clientId)return c.push(e),"continue";r.queueTask(function(){return aa(b,
|
|
void 0,void 0,function(){return ba(this,function(b){this._postTag(a,e.name);return[2]})})})},h=this,d=0;d<this._bufferedTags.length;d++)g(d);this._bufferedTags=c};b.prototype._drainBufferedErrors=function(a){for(var b=this,c=[],g=function(d){var e=h._bufferedErrors[d];if(a.id!==e.clientId)return c.push(e),"continue";r.queueTask(function(){return aa(b,void 0,void 0,function(){return ba(this,function(b){this._postError(a,e.message,e.attribution,e.level);return[2]})})})},h=this,d=0;d<this._bufferedErrors.length;d++)g(d);
|
|
this._bufferedErrors=c};b.prototype._drainBufferedWeblabTriggers=function(a){for(var b=this,c=[],g=function(d){var e=h._bufferedWeblabTriggers[d];if(a.id!==e.clientId)return c.push(e),"continue";r.queueTask(function(){return aa(b,void 0,void 0,function(){return ba(this,function(b){this._postWeblabTrigger(a,e.name,e.treatment);return[2]})})})},h=this,d=0;d<this._bufferedWeblabTriggers.length;d++)g(d);this._bufferedWeblabTriggers=c};b.prototype._postCounter=function(a,b,c){b=this._createClientCounterMessage(b,
|
|
c);this._postMessageToClient(a,b)};b.prototype._postTag=function(a,b){b=this._createClientTagMessage(b);this._postMessageToClient(a,b)};b.prototype._postError=function(a,b,c,g){b=this._createClientErrorMessage(b,c,g);this._postMessageToClient(a,b)};b.prototype._postWeblabTrigger=function(a,b,c){b=this._createClientWeblabTriggerMessage(b,c);this._postMessageToClient(a,b)};b.prototype._createClientCounterMessage=function(a,e){return{feature:b._MESSAGING_FEATURE,command:b._MESSAGING_COMMAND_COUNTER,
|
|
data:{name:a,value:e}}};b.prototype._createClientTagMessage=function(a){return{feature:b._MESSAGING_FEATURE,command:b._MESSAGING_COMMAND_TAG,data:{tag:a}}};b.prototype._createClientErrorMessage=function(a,e,c){return{feature:b._MESSAGING_FEATURE,command:b._MESSAGING_COMMAND_ERROR,data:{message:a,attribution:e,level:c}}};b.prototype._createClientWeblabTriggerMessage=function(a,e){return{feature:b._MESSAGING_FEATURE,command:b._MESSAGING_COMMAND_WEBLAB_TRIGGER,data:{weblab:a,treatment:e}}};b.prototype._postMessageToClient=
|
|
function(a,b){this._clientMessagingService.postMessageToClient(a,b)};b.prototype._getClient=function(a){return aa(this,void 0,void 0,function(){return ba(this,function(b){return[2,this._clientMessagingService.getClient(a)]})})};b._MAX_COUNTERS=400;b._MAX_TAGS=100;b._MAX_ERRORS=100;b._MAX_WEBLAB_TRIGGERS=100;b._MESSAGING_FEATURE="retail_service_worker_messaging";b._MESSAGING_COMMAND_COUNTER="log_counter";b._MESSAGING_COMMAND_TAG="log_tag";b._MESSAGING_COMMAND_ERROR="log_error";b._MESSAGING_COMMAND_WEBLAB_TRIGGER=
|
|
"log_weblab_trigger";y([k],b.prototype,"reset",null);y([k],b.prototype,"counter",null);y([k],b.prototype,"tag",null);y([k],b.prototype,"error",null);y([k],b.prototype,"weblabTrigger",null);y([k],b.prototype,"notifyEvent",null);y([k],b.prototype,"_bufferCounter",null);y([k],b.prototype,"_bufferTag",null);y([k],b.prototype,"_bufferError",null);y([k],b.prototype,"_bufferWeblabTrigger",null);y([k],b.prototype,"_drainBufferedCounters",null);y([k],b.prototype,"_drainBufferedTags",null);y([k],b.prototype,
|
|
"_drainBufferedErrors",null);y([k],b.prototype,"_drainBufferedWeblabTriggers",null);y([k],b.prototype,"_postCounter",null);y([k],b.prototype,"_postTag",null);y([k],b.prototype,"_postWeblabTrigger",null);y([k],b.prototype,"_createClientCounterMessage",null);y([k],b.prototype,"_createClientTagMessage",null);y([k],b.prototype,"_createClientErrorMessage",null);y([k],b.prototype,"_createClientWeblabTriggerMessage",null);y([k],b.prototype,"_postMessageToClient",null);y([k],b.prototype,"_getClient",null);
|
|
return b}(u),Kg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),
|
|
cc=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Lg=function(f){function b(){var a=f.call(this)||this;a.logCtor(arguments);a._ready=new nb(b._MAX_CLIENTS);return a}Kg(b,f);b.prototype.isReady=function(a){return this._ready.has(a)};
|
|
b.prototype.markReady=function(a,b){!this.isReady(a)&&q.isNonEmptyString(b)&&this._ready.set(a,b)};b.prototype.getRequestIdForClient=function(a){var b=this._ready.get(a);if(b)return b;throw t.create("RequestIdMissingInStore",{clientId:a});};b._MAX_CLIENTS=50;cc([k],b.prototype,"isReady",null);cc([k],b.prototype,"markReady",null);cc([k],b.prototype,"getRequestIdForClient",null);return b}(u),Mg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
|
|
function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),La=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,
|
|
a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},dc=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):
|
|
c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},ec=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;
|
|
case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},
|
|
trys:[],ops:[]},g,h,d,n;return n={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n},Ng=function(f){function b(a,b){var c=f.call(this)||this;c.logCtor(arguments);c._globalTelemetryClient=a;c._requestIdReadyStore=new Lg;c.reset();b.subscribe("RequestIdAvailable",c);return c}Mg(b,f);b.prototype.reset=function(){this._bufferedWeblabTriggers=[]};b.prototype.weblabTrigger=function(a,b,c){var e=this;this._requestIdReadyStore.isReady(a)?r.queueTask(function(){return dc(e,
|
|
void 0,void 0,function(){var e,d;return ec(this,function(g){try{e=this._requestIdReadyStore.getRequestIdForClient(a),d=[{name:b,treatment:c}],this._postWeblabTrigger(a,d,e)}catch(l){this.log("weblabtrigger",l.message)}return[2]})})}):this._bufferWeblabTrigger(a,b,c)};b.prototype.notifyEvent=function(a){var b=this;switch(a.name){case "RequestIdAvailable":r.queueTask(function(){return dc(b,void 0,void 0,function(){var b,e,h,d=this;return ec(this,function(c){try{b=a.detail.eventOptions.clientId,e=a.detail.requestId,
|
|
this._requestIdReadyStore.markReady(b,e),h=this._requestIdReadyStore.getRequestIdForClient(b),r.queueTask(function(){d._drainBufferedWeblabTriggers(b,h)})}catch(l){this.log("notifyEvent",l.message)}return[2]})})})}};b.prototype._bufferWeblabTrigger=function(a,e,c){ha.pushClamped(this._bufferedWeblabTriggers,{clientId:a,name:e,treatment:c},b._MAX_WEBLAB_TRIGGERS)};b.prototype._drainBufferedWeblabTriggers=function(a,b){for(var c=this,e=[],h=[],d=0;d<this._bufferedWeblabTriggers.length;d++){var f=this._bufferedWeblabTriggers[d];
|
|
a!==f.clientId?e.push(f):h.push({name:f.name,treatment:f.treatment})}0<h.length&&r.queueTask(function(){return dc(c,void 0,void 0,function(){return ec(this,function(c){this._postWeblabTrigger(a,h,b);return[2]})})});this._bufferedWeblabTriggers=e};b.prototype._postWeblabTrigger=function(a,b,c){this._globalTelemetryClient&&q.isFunction(this._globalTelemetryClient.trigger)&&this._globalTelemetryClient.trigger(b,{clientID:a,requestID:c})};b._MAX_WEBLAB_TRIGGERS=100;La([k],b.prototype,"reset",null);La([k],
|
|
b.prototype,"weblabTrigger",null);La([k],b.prototype,"notifyEvent",null);La([k],b.prototype,"_bufferWeblabTrigger",null);La([k],b.prototype,"_drainBufferedWeblabTriggers",null);La([k],b.prototype,"_postWeblabTrigger",null);return b}(u),Og=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=
|
|
b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),G=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||
|
|
g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Xa=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},Ya=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");
|
|
for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=
|
|
d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,k;return k={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k},Pg=function(f){function b(a,b,c){var e=f.call(this)||this;e.logCtor(arguments);
|
|
e._swGlobal=a;e._clientPostbacks=new Jg(b,c);e._clientPostbacks.reset();a.$TM&&(e._globalTelemetryClient=a.$TM,e._telemetryTriggers=new Ng(e._globalTelemetryClient,c),e._telemetryTriggers.reset());e._bufferedMetricsHandler=new Hg;return e}Og(b,f);b.prototype.count=function(a,b,c){void 0===c&&(c=1);this._count(a,b,c)};b.prototype.bufferedCount=function(a,b,c){this._isBufferingEnabled()&&(b=this._bufferedMetricsHandler.bufferedCounter({eventOptions:a,name:b,value:null!==c&&void 0!==c?c:1}),b.isNewBufferCreated&&
|
|
this._queueDrainAllBuffered(a),b.isBufferOverflowed&&this.count(a,"CountBufferOverflowed"))};b.prototype.mark=function(a,b,c){c=c?c:a.timeOriginPerfNow;if(this._globalTelemetryClient&&q.isFunction(this._globalTelemetryClient.mark))this._globalTelemetryClient.mark(this._getFormattedName(b),c,{clientID:a.clientId});else{var e=D.getPerfNow();this.count(a,b,e-c)}};b.prototype.tag=function(a,b){var c=this;r.queueTask(function(){var e=c._getFormattedName(b);c._clientPostbacks.tag(a.clientId,e)})};b.prototype.error=
|
|
function(a,b,c,g){var e=this;r.queueTask(function(){if(e._globalTelemetryClient&&q.isFunction(e._globalTelemetryClient.error)){var d=Pa.formatErrorAttribution(e._swGlobal,c),h=null!==g&&void 0!==g?g:b.logLevel||"FATAL",f=Object.keys(a.errorContext).map(function(b){return"".concat(b," \x3d ").concat(a.errorContext[b])}).join("\n\n");e._globalTelemetryClient.error(b,h,d,f)}else e.countError(a,t.create("MissingDependencyTelemetry"))})};b.prototype.countError=function(a,b,c){this._countError(a,b,c)};
|
|
b.prototype.bufferedCountError=function(a,b,c){this._isBufferingEnabled()&&(b=this._bufferedMetricsHandler.bufferedCountError({eventOptions:a,error:b,scope:c}),b.isNewBufferCreated&&this._queueDrainAllBuffered(a),b.isBufferOverflowed&&this.count(a,"CountErrorBufferOverflowed"))};b.prototype.weblabTrigger=function(a,b,c,g){var e=this;void 0===g&&(g=!1);r.queueTask(function(){g&&e._telemetryTriggers?(e._telemetryTriggers.weblabTrigger(a.clientId,b,c),e.count(a,"triggerintent:direct:".concat(b,":").concat(c))):
|
|
(e._clientPostbacks.weblabTrigger(a.clientId,b,c),e.count(a,"triggerintent:ue:".concat(b,":").concat(c)))})};b.prototype.drainAllBuffered=function(a){this._drainAllBuffered(a,!1)};b.prototype._drainAllBuffered=function(a,b){var c=this;this._isBufferingEnabled()&&(r.queueTask(function(){return Xa(c,void 0,void 0,function(){return Ya(this,function(c){this._drainAllBufferedCounters(a,b);return[2]})})}),r.queueTask(function(){return Xa(c,void 0,void 0,function(){return Ya(this,function(c){this._drainAllBufferedCountErrors(a,
|
|
b);return[2]})})}))};b.prototype._queueDrainAllBuffered=function(a){var e=this;r.queueTask(function(){return Xa(e,void 0,void 0,function(){return Ya(this,function(b){this._drainAllBuffered(a,!0);return[2]})})},b._BUFFERED_METRIC_DRAIN_TIMEOUT)};b.prototype._count=function(a,b,c,g){var e=this;void 0===c&&(c=1);void 0===g&&(g=!1);r.queueTask(function(){var d=e._getFormattedName(b,g);e._globalTelemetryClient&&q.isFunction(e._globalTelemetryClient.count)?e._globalTelemetryClient.count(d,c,{clientID:a.clientId}):
|
|
e._clientPostbacks.counter(a.clientId,d,c)})};b.prototype._countError=function(a,b,c,g){var e=this;void 0===g&&(g=!1);r.queueTask(function(){var d=b.code,h=b.name;h=d?"".concat(h,":").concat(d):h;h=c?"".concat(h,":").concat(c):h;e._count(a,"Error:".concat(h),1,g)})};b.prototype._getFormattedName=function(a,e){void 0===e&&(e=!1);a=e?"".concat(b._BUFFERED_METRIC_PREFIX,":").concat(a):a;return Pa.format(this._swGlobal,a)};b.prototype._isBufferingEnabled=function(){return!0};b.prototype._drainAllBufferedCounters=
|
|
function(a,b){var c=this,e=this._bufferedMetricsHandler.drainBufferedCounters(a.clientId);if(e)for(b?this.count(a,"TimeoutBufferedCountersDrain"):this.count(a,"BufferedCountersDrain"),a=function(a){var b=e[a];r.queueTask(function(){return Xa(c,void 0,void 0,function(){return Ya(this,function(a){this._count(b.eventOptions,b.name,b.value,!0);return[2]})})})},b=0;b<e.length;b++)a(b)};b.prototype._drainAllBufferedCountErrors=function(a,b){var c=this,e=this._bufferedMetricsHandler.drainBufferedCountErrors(a.clientId);
|
|
if(e)for(b?this.count(a,"TimeoutBufferedCountErrorsDrain"):this.count(a,"BufferedCountErrorsDrain"),a=function(a){var b=e[a];r.queueTask(function(){return Xa(c,void 0,void 0,function(){return Ya(this,function(a){this._countError(b.eventOptions,b.error,b.scope,!0);return[2]})})})},b=0;b<e.length;b++)a(b)};b._BUFFERED_METRIC_DRAIN_TIMEOUT=3E4;b._BUFFERED_METRIC_PREFIX="buff";G([k],b.prototype,"count",null);G([k],b.prototype,"bufferedCount",null);G([k],b.prototype,"mark",null);G([k],b.prototype,"tag",
|
|
null);G([k],b.prototype,"error",null);G([k],b.prototype,"countError",null);G([k],b.prototype,"bufferedCountError",null);G([k],b.prototype,"weblabTrigger",null);G([k],b.prototype,"drainAllBuffered",null);G([k],b.prototype,"_drainAllBuffered",null);G([k],b.prototype,"_queueDrainAllBuffered",null);G([k],b.prototype,"_count",null);G([k],b.prototype,"_countError",null);G([k],b.prototype,"_getFormattedName",null);G([k],b.prototype,"_isBufferingEnabled",null);G([k],b.prototype,"_drainAllBufferedCounters",
|
|
null);G([k],b.prototype,"_drainAllBufferedCountErrors",null);return b}(u),Qg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=
|
|
null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),R=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},S=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}
|
|
return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},T=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,
|
|
a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,
|
|
c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,k;return k={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k},Rg=function(f){function b(a,b,c,g,h,d,k,l,p){void 0===l&&(l="lre");void 0===p&&(p=function(){return!0});var e=f.call(this)||this;e._cacheService=b;e._metricsService=c;e._cacheName=g;e._cacheKey=
|
|
h;e._cacheMaxAge=d;e._validator=p;e._errorLoggingScope="CacheBackedKeyValueStore";a.subscribe("CustomerContextChange",e,"async");e._ready=e._initialize(g,h,d,k,l);e.logCtor(arguments);return e}Qg(b,f);b.prototype.get=function(a){return S(this,void 0,void 0,function(){return T(this,function(b){switch(b.label){case 0:return[4,this._ready];case 1:return b.sent(),[2,this._store.get(a)]}})})};b.prototype.set=function(a,b){return S(this,void 0,void 0,function(){return T(this,function(c){switch(c.label){case 0:return[4,
|
|
this._ready];case 1:return c.sent(),this._store.set(a,b),[2]}})})};b.prototype.delete=function(a){return S(this,void 0,void 0,function(){return T(this,function(b){switch(b.label){case 0:return[4,this._ready];case 1:return b.sent(),[2,this._store.delete(a)]}})})};b.prototype.has=function(a){return S(this,void 0,void 0,function(){return T(this,function(b){switch(b.label){case 0:return[4,this._ready];case 1:return b.sent(),[2,this._store.has(a)]}})})};b.prototype.size=function(){return S(this,void 0,
|
|
void 0,function(){return T(this,function(a){switch(a.label){case 0:return[4,this._ready];case 1:return a.sent(),[2,this._store.size()]}})})};b.prototype.full=function(){return S(this,void 0,void 0,function(){return T(this,function(a){switch(a.label){case 0:return[4,this._ready];case 1:return a.sent(),[2,this._store.full()]}})})};b.prototype.keys=function(){return S(this,void 0,void 0,function(){return T(this,function(a){switch(a.label){case 0:return[4,this._ready];case 1:return a.sent(),[2,this._store.keys()]}})})};
|
|
b.prototype.serialize=function(a){return S(this,void 0,void 0,function(){return T(this,function(b){switch(b.label){case 0:return[4,this._ready];case 1:return b.sent(),[2,this._store.serialize(a)]}})})};b.prototype.clear=function(){return S(this,void 0,void 0,function(){return T(this,function(a){switch(a.label){case 0:return[4,this._ready];case 1:return a.sent(),this._store.clear(),[2]}})})};b.prototype.notifyEvent=function(a){var b=this;"CustomerContextChange"===a.name&&r.queueMicrotask(function(){return S(b,
|
|
void 0,void 0,function(){return T(this,function(a){switch(a.label){case 0:return[4,this.clear()];case 1:return a.sent(),[2]}})})})};b.prototype._initialize=function(a,b,c,g,h){return S(this,void 0,void 0,function(){var d,e,f,k,m,q,r,u,v,w,M=this;return T(this,function(l){switch(l.label){case 0:d=ja.create(),l.label=1;case 1:return l.trys.push([1,6,,7]),[4,this._cacheService.read(d,a,b)];case 2:return(f=l.sent())?[4,f.text()]:[3,4];case 3:return m=l.sent(),[3,5];case 4:m=void 0,l.label=5;case 5:return q=
|
|
(k=m)?C.deserialize(k,[]):[],r=Array.isArray(q)?q.filter(function(a){return Array.isArray(a)&&2===a.length&&M._validator(a[0],a[1])}):[],e=new Map(r),[3,7];case 6:return u=l.sent(),e=new Map,v=t.create("StoreInitialization",{cacheName:a,cacheKey:b,cacheMaxAge:c,strategy:h},u),this._metricsService.error(d,v,this._errorLoggingScope),this._metricsService.countError(d,v,this._errorLoggingScope),[3,7];case 7:w=function(){M._storeStateChanged()};switch(h){case "lru":this._store=new ob(g,e,w);break;default:this._store=
|
|
new nb(g,e,w)}return[2]}})})};b.prototype._storeStateChanged=function(){var a=this;if(!this._pendingCacheWrite){var e=function(){return S(a,void 0,void 0,function(){var a,g,h;return T(this,function(c){switch(c.label){case 0:this._pendingCacheWrite=void 0,c.label=1;case 1:return c.trys.push([1,3,,4]),a=ja.create(),g=this._store.serialize(),[4,this._cacheService.write(a,this._cacheName,this._cacheKey,new Response(g),{maxAgeSeconds:this._cacheMaxAge,requestStartTimestampSeconds:D.getEpochSeconds(a.timeOriginEpoch)})];
|
|
case 2:return c.sent(),[3,4];case 3:return h=c.sent(),w.matchesCode(h,"CacheTainted")&&(this._pendingCacheWrite=r.queueTask(e,b._CACHE_WRITE_THROTTLE_MS)),[3,4];case 4:return[2]}})})};this._pendingCacheWrite=r.queueTask(e,b._CACHE_WRITE_THROTTLE_MS)}};b._CACHE_WRITE_THROTTLE_MS=1E3;R([k],b.prototype,"get",null);R([k],b.prototype,"set",null);R([k],b.prototype,"delete",null);R([k],b.prototype,"has",null);R([k],b.prototype,"size",null);R([k],b.prototype,"full",null);R([k],b.prototype,"keys",null);R([k],
|
|
b.prototype,"serialize",null);R([k],b.prototype,"clear",null);R([k],b.prototype,"notifyEvent",null);R([k],b.prototype,"_initialize",null);R([k],b.prototype,"_storeStateChanged",null);return b}(u),Sg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==
|
|
typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),I=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&
|
|
Object.defineProperty(b,a,g),g},ca=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},da=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");
|
|
for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=
|
|
d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,k;return k={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k},Tg=function(f){function b(a,b,c,g,h){var d=f.call(this)||this;d.logCtor(arguments);
|
|
d._name=a;d._metricsService=g;var e=d._parseProperties(a,h),l=e.storeLimit,k=e.wdgLandingImageStore;e=k.cacheName;var m=k.cacheKey;k=k.maxAge;d._navigationContentHintsStore=new nb(l);d._wdgLandingImageStore=new Rg(b,c,g,e,m,k,l,"lru",function(a,b){return d._validateWDGLandingImageRecord(a,b)});d._errorLoggingScope="DetailPageRenderingHintsDelegate";return d}Sg(b,f);b.prototype.getHint=function(a,b,c){return ca(this,void 0,void 0,function(){var e,h,d,f,l;return da(this,function(g){e=this._getASIN(b);
|
|
if(!e)return[2];switch(c){case "predictedLCPImage":return[2,this._getPredictedLCPImage(a,e)];default:if((h=this._navigationContentHintsStore.get(e))&&h.hasOwnProperty(c))return d=h[c],f=d.value,l=d.source,[2,{value:f,source:l}]}return[2]})})};b.prototype.getHintValueOnly=function(a,b,c){return ca(this,void 0,void 0,function(){var e;return da(this,function(g){switch(g.label){case 0:return[4,this.getHint(a,b,c)];case 1:return e=g.sent(),[2,null===e||void 0===e?void 0:e.value]}})})};b.prototype.getAllHints=
|
|
function(a,b){return ca(this,void 0,void 0,function(){var c,e,f,d;return da(this,function(g){switch(g.label){case 0:c=this._getASIN(b);if(!c)return[2,{}];e=this._navigationContentHintsStore.get(c)||{};f={};Object.keys(e).forEach(function(a){var b=e[a];f[a]={value:b.value,source:b.source}});return[4,this._getPredictedLCPImage(a,c)];case 1:return(d=g.sent())&&(f.predictedLCPImage=d),[2,f]}})})};b.prototype.getAllHintsValueOnly=function(a,b){return ca(this,void 0,void 0,function(){var c,e;return da(this,
|
|
function(g){switch(g.label){case 0:return[4,this.getAllHints(a,b)];case 1:return c=g.sent(),e={},Object.keys(c).forEach(function(a){e[a]=c[a].value}),[2,e]}})})};b.prototype.notify=function(a,b){var c=this,e;switch(b.nature){case "speculated_navigation_content":r.queueTask(function(){return ca(c,void 0,void 0,function(){return da(this,function(c){switch(c.label){case 0:return(e=this._getASIN(b.target))?[4,this._writeToNavigationContentHintsStore(a,e,b.data,b.source)]:[2];case 1:return c.sent(),[2]}})})});
|
|
break;case "page_attributes":r.queueTask(function(){return ca(c,void 0,void 0,function(){return da(this,function(c){switch(c.label){case 0:return(e=this._getASIN(b.source.url))?[4,this._writePageAttributes(a,b.data)]:[2];case 1:return c.sent(),[2]}})})})}};b.prototype.notifyEvent=function(a){"CustomerContextChange"===a.name&&this._evictStores(a.detail.eventOptions)};b.prototype._parseProperties=function(a,b){var c=q.isObject,e=q.isNonEmptyString,f=q.isPositiveInteger;if(!(b&&c(b)&&f(b.storeLimit)&&
|
|
e(b.wdgLandingImageCacheName)&&e(b.wdgLandingImageCacheKey)&&f(b.wdgLandingImageMaxAge)))throw t.create("InvalidRenderingHintsDelegateProperties",{name:a,properties:b});return{storeLimit:b.storeLimit,wdgLandingImageStore:{cacheName:b.wdgLandingImageCacheName,cacheKey:b.wdgLandingImageCacheKey,maxAge:b.wdgLandingImageMaxAge}}};b.prototype._getASIN=function(a){return Ra.getASINFromUrl(a)};b.prototype._getPredictedLCPImage=function(a,e){return ca(this,void 0,void 0,function(){var c,g,f,d,k,l,p,m,q;return da(this,
|
|
function(h){switch(h.label){case 0:c=this._navigationContentHintsStore.get(e);if(!c||!c.hasOwnProperty("faceoutImage")||!c.hasOwnProperty("wdg"))return[2];g=c.wdg.value;f=c.faceoutImage;d=f.value;k=f.source;return(l=Fa.getPhysicalId(d))?[4,this._wdgLandingImageStore.get(g)]:[2];case 1:return(p=h.sent())&&p.hasOwnProperty("lcpImage")?[3,3]:[4,this._wdgLandingImageStore.get(b._WDG_LAST_VISITED)];case 2:p=h.sent();if(!p||!p.hasOwnProperty("lcpImage"))return this._metricsService.tag(a,this._getMetricName("WDG:NotFound")),
|
|
[2];this._metricsService.tag(a,this._getMetricName("WDG:LastVisited"));return[3,4];case 3:this._metricsService.tag(a,this._getMetricName("WDG:Match")),h.label=4;case 4:return m=p.lcpImage.value,(q=Fa.replacePhysicalId(m,l))?[2,{value:q,source:k}]:[2]}})})};b.prototype._writeToNavigationContentHintsStore=function(a,b,c,g){return ca(this,void 0,void 0,function(){var e;return da(this,function(d){try{e=this._navigationContentHintsStore.get(b)||{},Object.keys(c).forEach(function(a){e[a]={value:c[a],source:g}}),
|
|
this._navigationContentHintsStore.set(b,e)}catch(n){this._metricsService.error(a,t.create("RenderingHintsWriteFailed",{nature:"speculated_navigation_content",asin:b,data:c},n),this._errorLoggingScope)}return[2]})})};b.prototype._writePageAttributes=function(a,e){return ca(this,void 0,void 0,function(){var c,g,f,d,k,l,p;return da(this,function(h){switch(h.label){case 0:if(!q.isNonEmptyString(e.wdg)||!q.isNonEmptyString(e.lcpImage))return[2];c=e.wdg;g=e.lcpImage;f=(p={},p.lcpImage={value:g},p);h.label=
|
|
1;case 1:return h.trys.push([1,4,,5]),[4,this._wdgLandingImageStore.get(c)];case 2:return(k=(d=h.sent())?d.lcpImage.value:void 0)&&this._isStyleCodeFlip(k,g)&&this._metricsService.count(a,this._getMetricName("WDGLCPStyleCodeFlip")),[4,Promise.all([k===g?Promise.resolve():this._wdgLandingImageStore.set(c,f),this._wdgLandingImageStore.set(b._WDG_LAST_VISITED,f)])];case 3:return h.sent(),[3,5];case 4:return l=h.sent(),this._metricsService.error(a,t.create("RenderingHintsWriteFailed",{nature:"page_attributes",
|
|
data:e},l),this._errorLoggingScope),[3,5];case 5:return[2]}})})};b.prototype._isStyleCodeFlip=function(a,b){a=Fa.replacePhysicalId(a,"");b=Fa.replacePhysicalId(b,"");return!(!a||!b||a===b)};b.prototype._validateWDGLandingImageRecord=function(a,b){var c=q.isNonEmptyString,e=q.isObject,f=q.isArrayWhereEvery;return c(a)&&e(b)&&f(Object.keys(b),function(a){return c(a)&&c(b[a].value)})};b.prototype._evictStores=function(a){var b=this;r.queueTask(function(){return ca(b,void 0,void 0,function(){return da(this,
|
|
function(b){switch(b.label){case 0:return this._navigationContentHintsStore.clear(),[4,this._wdgLandingImageStore.clear()];case 1:return b.sent(),this._metricsService.count(a,this._getMetricName("Eviction")),[2]}})})})};b.prototype._getMetricName=function(a){return"RenderingHints:".concat(this._name,":").concat(a)};b._WDG_LAST_VISITED="last_visited_display_on_website";I([k],b.prototype,"getHint",null);I([k],b.prototype,"getHintValueOnly",null);I([k],b.prototype,"getAllHints",null);I([k],b.prototype,
|
|
"getAllHintsValueOnly",null);I([k],b.prototype,"notify",null);I([k],b.prototype,"notifyEvent",null);I([k],b.prototype,"_parseProperties",null);I([k],b.prototype,"_getASIN",null);I([k],b.prototype,"_getPredictedLCPImage",null);I([k],b.prototype,"_writeToNavigationContentHintsStore",null);I([k],b.prototype,"_writePageAttributes",null);I([k],b.prototype,"_isStyleCodeFlip",null);I([k],b.prototype,"_validateWDGLandingImageRecord",null);I([k],b.prototype,"_evictStores",null);I([k],b.prototype,"_getMetricName",
|
|
null);return b}(u),Ug=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,
|
|
new e)}}(),ka=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},rb=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,
|
|
h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},sb=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&
|
|
2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=
|
|
d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,k;return k={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k},Vg=this&&this.__values||function(f){var b="function"===typeof Symbol&&Symbol.iterator,a=b&&f[b],e=0;if(a)return a.call(f);if(f&&"number"===typeof f.length)return{next:function(){f&&e>=f.length&&(f=void 0);return{value:f&&f[e++],
|
|
done:!f}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.");},Wg=function(f){function b(a,b,c,g,h){var d=f.call(this)||this;d.logCtor(arguments);d._metricsService=c;d._errorLoggingScope="RenderingHintsService";d._delegates=d._initDelegates(a,b,c,g,h);a.subscribe("RenderingHints",d);return d}Ug(b,f);b.prototype.getHint=function(a,b,c,g){return rb(this,void 0,void 0,function(){return sb(this,function(e){try{return[2,this._getDelegate(c).getHint(a,b,g)]}catch(d){this._metricsService.error(a,
|
|
d,this._errorLoggingScope)}return[2]})})};b.prototype.getHintValueOnly=function(a,b,c,g){return rb(this,void 0,void 0,function(){return sb(this,function(e){try{return[2,this._getDelegate(c).getHintValueOnly(a,b,g)]}catch(d){this._metricsService.error(a,d,this._errorLoggingScope)}return[2]})})};b.prototype.getAllHints=function(a,b,c){return rb(this,void 0,void 0,function(){return sb(this,function(e){try{return[2,this._getDelegate(c).getAllHints(a,b)]}catch(h){this._metricsService.error(a,h,this._errorLoggingScope)}return[2,
|
|
{}]})})};b.prototype.getAllHintsValueOnly=function(a,b,c){return rb(this,void 0,void 0,function(){return sb(this,function(e){try{return[2,this._getDelegate(c).getAllHintsValueOnly(a,b)]}catch(h){this._metricsService.error(a,h,this._errorLoggingScope)}return[2,{}]})})};b.prototype.notifyEvent=function(a){var b=this;"RenderingHints"===a.name&&a.detail&&this._filterValidRenderingHintsOptions(a.detail.options).forEach(function(c){Object.keys(b._delegates).forEach(function(e){b._delegates[e].notify(a.detail.eventOptions,
|
|
c)})})};b.prototype._initDelegates=function(a,b,c,g,f){g={};try{g["detail-page"]=new Tg("detail-page",a,b,c,this._getDelegateProperties("detail-page",f))}catch(d){a=d,c.error(ja.create(),a,this._errorLoggingScope)}return g};b.prototype._getDelegate=function(a){if(!this._delegates[a])throw t.create("UnrecognizedRenderingHintsDelegate",{name:a});return this._delegates[a]};b.prototype._getDelegateProperties=function(a,b){var c;try{for(var e=Vg(b),f=e.next();!f.done;f=e.next()){var d=f.value;if(d.name===
|
|
a)return d.properties}}catch(l){var k={error:l}}finally{try{f&&!f.done&&(c=e.return)&&c.call(e)}finally{if(k)throw k.error;}}};b.prototype._filterValidRenderingHintsOptions=function(a){if(!Array.isArray(a))return[];var b=q.isObject,c=q.isOneOf,g=q.isNonEmptyString;return a.filter(function(a){var d=b(a)&&c(a.nature,["speculated_navigation_content","page_attributes"])&&b(a.data)&&b(a.source)&&g(a.source.url)&&g(a.source.pty);switch(a.nature){case "speculated_navigation_content":return d&&g(a.target);
|
|
case "page_attributes":return d;default:return!1}})};ka([k],b.prototype,"getHint",null);ka([k],b.prototype,"getHintValueOnly",null);ka([k],b.prototype,"getAllHints",null);ka([k],b.prototype,"getAllHintsValueOnly",null);ka([k],b.prototype,"notifyEvent",null);ka([k],b.prototype,"_initDelegates",null);ka([k],b.prototype,"_getDelegate",null);ka([k],b.prototype,"_getDelegateProperties",null);ka([k],b.prototype,"_filterValidRenderingHintsOptions",null);return b}(u),Xg=this&&this.__extends||function(){var f=
|
|
function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Yc=function(f){function b(a,b,c,g,h,d){var e=
|
|
f.call(this)||this;e.logCtor(arguments);e.customerContextService=a;e.cacheService=b;e.metricsService=c;e.contentFragmentService=g;e.renderingHintsService=h;e.eventBus=d;return e}Xg(b,f);return b}(u),Yg=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==
|
|
typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),wa=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&
|
|
g&&Object.defineProperty(b,a,g),g},Zc=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},$c=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");
|
|
for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=
|
|
d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,k;return k={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k},Zg=function(f){function b(a,b,c,g,h,d,k){var e=f.call(this,a,b,c,g,h,k)||
|
|
this;e._clientMessagingService=d;e.logCtor(arguments);return e}Yg(b,f);b.prototype.respond=function(a,b){this._logCount(a,"IncomingRequest");var c=L.parse(b.request.url);if(c){var e=204,f=null;this._logClientMessageAsFetchRequestAttributionMetrics(a,c);var d=this._getMessageSchema(c);switch(d){case "customer_context_change.v1":this._transformMessageAndSendToClientMessagingService(a,c,d);this._logCountWithScope(a,d,"Schema");this.metricsService.mark(a,"Schema:".concat(d));this._waitForServerResponse(b);
|
|
break;default:e=404,f="Schema not Found",this._logCountWithScope(a,"NotFound","Schema")}b.respondWith(this._getResponse(e,f))}else this._logCount(a,"InvalidURL")};b.prototype._transformMessageAndSendToClientMessagingService=function(a,b,c){b=this._getMessagePayload(b);b=J.decode(b)||"{}";b=C.deserialize(b,{});this._clientMessagingService.notify(a.clientId,{feature:"lightsaber",command:c,options:b},a)};b.prototype._getMessageSchema=function(a){return x.clientMessageAsFetch.getSchema(a)||void 0};b.prototype._getMessagePayload=
|
|
function(a){return x.clientMessageAsFetch.getPayload(a)||"{}"};b.prototype._logClientMessageAsFetchRequestAttributionMetrics=function(a,b){var c=x.clientMessageAsFetch.getClient(b)||"unknown";this._logSanitizedAttribution(a,"Client",c);b=x.clientMessageAsFetch.getAttribution(b)||"unknown";this._logSanitizedAttribution(a,"Attribution",b)};b.prototype._logSanitizedAttribution=function(a,b,c){c=Qa.onlyWordChars(c).substr(0,50);this._logCountWithScope(a,c,b)};b.prototype._getResponse=function(a,b){return Zc(this,
|
|
void 0,void 0,function(){return $c(this,function(c){return[2,new Response(b,{status:a})]})})};b.prototype._waitForServerResponse=function(a){"navigate"===a.request.mode&&"GET"===a.request.method&&a.waitUntil(this._waitForPreloadResponseIfExists(a))};b.prototype._waitForPreloadResponseIfExists=function(a){return Zc(this,void 0,void 0,function(){return $c(this,function(b){switch(b.label){case 0:return a.preloadResponse?[4,a.preloadResponse]:[3,2];case 1:b.sent(),b.label=2;case 2:return[2]}})})};b.prototype._logCount=
|
|
function(a,b){this.metricsService.count(a,"ClientMessageAsFetch:".concat(b))};b.prototype._logCountWithScope=function(a,b,c){this._logCount(a,"".concat(c,":").concat(b))};wa([k],b.prototype,"respond",null);wa([k],b.prototype,"_transformMessageAndSendToClientMessagingService",null);wa([k],b.prototype,"_getMessageSchema",null);wa([k],b.prototype,"_getMessagePayload",null);wa([k],b.prototype,"_logClientMessageAsFetchRequestAttributionMetrics",null);wa([k],b.prototype,"_getResponse",null);wa([k],b.prototype,
|
|
"_waitForServerResponse",null);wa([k],b.prototype,"_waitForPreloadResponseIfExists",null);return b}(Yc),$g=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");
|
|
f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),ea=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},ah=function(f){function b(a,b,c,g){var e=f.call(this)||this;e.logCtor(arguments);
|
|
e._eventOptions=b;e._metricsService=a;e._responseStrategyName=c;e._responseRuleName=g;e._errorLoggingScope="".concat(e._responseStrategyName,"ResponseStrategy");return e}$g(b,f);b.prototype.getMetricName=function(a){return"".concat(this._responseRuleName,":").concat(this._responseStrategyName,":").concat(a)};b.prototype.logCount=function(a,b,c){a=c?a:this.getMetricName(a);this._metricsService.count(this._eventOptions,a,b)};b.prototype.logBufferedCount=function(a,b,c){a=c?a:this.getMetricName(a);this._metricsService.bufferedCount(this._eventOptions,
|
|
a,b)};b.prototype.logMark=function(a){this._metricsService.mark(this._eventOptions,this.getMetricName(a))};b.prototype.logTag=function(a,b){a=b?a:this.getMetricName(a);this._metricsService.tag(this._eventOptions,a)};b.prototype.logTagAndCount=function(a,b){this.logTag(a,b);this.logCount(a,1,b)};b.prototype.logCountError=function(a){this._metricsService.countError(this._eventOptions,a,this._errorLoggingScope)};b.prototype.logBufferedCountError=function(a){this._metricsService.bufferedCountError(this._eventOptions,
|
|
a,this._errorLoggingScope)};b.prototype.logError=function(a,b){this._metricsService.error(this._eventOptions,a,this._errorLoggingScope,b)};b.prototype.drainAllBuffered=function(){this._metricsService.drainAllBuffered(this._eventOptions)};ea([k],b.prototype,"getMetricName",null);ea([k],b.prototype,"logCount",null);ea([k],b.prototype,"logBufferedCount",null);ea([k],b.prototype,"logMark",null);ea([k],b.prototype,"logTag",null);ea([k],b.prototype,"logTagAndCount",null);ea([k],b.prototype,"logCountError",
|
|
null);ea([k],b.prototype,"logBufferedCountError",null);ea([k],b.prototype,"logError",null);ea([k],b.prototype,"drainAllBuffered",null);return b}(u),bh=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+
|
|
String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),ch=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},dh=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,
|
|
b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&
|
|
(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,k;return k={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),
|
|
k},eh=function(f){function b(a,b,c,g,h,d){var e=f.call(this)||this;e.logCtor(arguments);e._eventBus=a;e._eventOptions=b;e._metricsHelper=g;e._responseStrategy=h;e._responseRuleName=d;e._cacheMismatchHeadersHelper=new lb(c,d);return e}bh(b,f);b.prototype.triggerMismatchDetection=function(a,b){var c=this,e=this._cacheMismatchHeadersHelper.extractStorageConfigFromHeader(this._eventOptions,a);e?(this._metricsHelper.logTagAndCount("MismatchDetectionTriggerd"),r.queueTask(function(){return ch(c,void 0,
|
|
void 0,function(){return dh(this,function(a){this._eventBus.publish({name:"DetectCacheMismatch",detail:{eventOptions:this._eventOptions,serverResponse:b,responseStrategy:this._responseStrategy,ruleName:this._responseRuleName,compareCopyStorageConfig:e}});return[2]})})})):this._metricsHelper.logTagAndCount("CompareCopyHeaderNotFound")};return b}(u),fh=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,
|
|
b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),la=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&
|
|
"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Ma=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,
|
|
b||[])).next())})},Na=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();
|
|
continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,k;return k=
|
|
{next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k},ad=function(f){function b(a,b,c,g,h){var d=f.call(this)||this;d.logCtor(arguments);d._swGlobal=a;d._metricsService=b;d._metricsHelper=c;d._responseRuleName=h;d._eventBus=g;return d}fh(b,f);b.prototype.fetchServerResponse=function(a,b){return Ma(this,void 0,void 0,function(){return Na(this,function(c){return[2,b?ab.getResponseWithoutRelay(a):ab.getResponseWithRelay(a)]})})};b.prototype.readServerResponse=
|
|
function(a,b,c,g,f,d){void 0===g&&(g="unknown");return Ma(this,void 0,void 0,function(){var e,h,k,m;return Na(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,c];case 1:return e=l.sent(),[3,3];case 2:h=l.sent();if(w.matchesCode(h,"PreloadResponseUnexpected")){this._logError(h);this._logBufferedCountError(h);if(!d)throw h;return[2,this._getReloadBypassFallbackContent(a,b,f,"prx_".concat(g))]}if(w.matchesCode(h,"PreloadResponseUnsupported")){this._logError(h);this._logBufferedCountError(h);
|
|
if(!d)throw h;return[2,this._getErrorFallbackContent(a,b,f,"pru_".concat(g))]}k=t.create("FailedToFetch",void 0,h);this._logError(k,"ERROR");this._logBufferedCountError(h);if(!d)throw k;return[2,this._getErrorFallbackContent(a,b,f,"flf_".concat(g))];case 3:if(!(e instanceof Response)){m=t.create("ResponseInvalid");this._logError(m);this._logBufferedCountError(m);if(!d)throw m;return[2,this._getErrorFallbackContent(a,b,f,"riv_".concat(g))]}if("opaqueredirect"===e.type)return[2,f?{unrecoverable:!0,
|
|
parseable:!1,response:e}:this._getReloadBypassFallbackContent(a,b,f,"opr_".concat(g))];this._extractAndPublishRequestId(b,e);return 200!==e.status?[2,{unrecoverable:!1,parseable:!1,response:e}]:[2,{unrecoverable:!1,parseable:!0,response:e}]}})})};b.prototype._getErrorFallbackContent=function(a,b,c,g){return Ma(this,void 0,void 0,function(){var e,d;return Na(this,function(f){switch(f.label){case 0:if(!Y.isMShop(this._swGlobal))return[3,2];d={unrecoverable:!0,parseable:!1};return[4,this._getAppErrorFragment(a,
|
|
b)];case 1:return e=(d.response=f.sent(),d),[3,3];case 2:e=this._getReloadBypassFallbackContent(a,b,c,g),f.label=3;case 3:return[2,e]}})})};b.prototype._getReloadBypassFallbackContent=function(a,b,c,g){return Ma(this,void 0,void 0,function(){var e;return Na(this,function(d){switch(d.label){case 0:return e={unrecoverable:!0,parseable:!1},[4,this._getReloadBypassFragment(a,b,c,g)];case 1:return[2,(e.response=d.sent(),e)]}})})};b.prototype._getAppErrorFragment=function(a,b){return Ma(this,void 0,void 0,
|
|
function(){return Na(this,function(c){this._metricsHelper.logCount("Emit:AppErrorFragment");return[2,(new Ne(b,this._metricsService,a.request.url,"-1","net::ERR_FAILED",a.request.referrer)).getResponse()]})})};b.prototype._getReloadBypassFragment=function(a,b,c,g){return Ma(this,void 0,void 0,function(){return Na(this,function(e){this._metricsHelper.logCount("Emit:ReloadFragment");return[2,(new ef(this._swGlobal,b,this._metricsService,a.request.url,c,!0,"erf_".concat(this._responseRuleName,"_").concat(g))).getResponse()]})})};
|
|
b.prototype._logError=function(a,b){var c=this;r.queueTask(function(){c._metricsHelper.logError(a,b);c._metricsHelper.logCountError(a)})};b.prototype._logBufferedCountError=function(a){var b=this;r.queueTask(function(){b._metricsHelper.logBufferedCountError(a)})};b.prototype._extractAndPublishRequestId=function(a,b){var c=this,e=b.headers.get(x.shared.REQUEST_ID_OPF_HEADER);e&&q.isNonEmptyString(e)?r.queueTask(function(){c._eventBus.publish({name:"RequestIdAvailable",detail:{eventOptions:a,requestId:e}})}):
|
|
this._metricsHelper.logCount("RIDHeader:Missing")};la([k],b.prototype,"fetchServerResponse",null);la([k],b.prototype,"readServerResponse",null);la([k],b.prototype,"_getErrorFallbackContent",null);la([k],b.prototype,"_getReloadBypassFallbackContent",null);la([k],b.prototype,"_getAppErrorFragment",null);la([k],b.prototype,"_getReloadBypassFragment",null);la([k],b.prototype,"_logError",null);la([k],b.prototype,"_logBufferedCountError",null);la([k],b.prototype,"_extractAndPublishRequestId",null);return b}(u),
|
|
gh=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),fc=
|
|
this&&this.__assign||function(){fc=Object.assign||function(f){for(var b,a=1,e=arguments.length;a<e;a++){b=arguments[a];for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(f[c]=b[c])}return f};return fc.apply(this,arguments)},xa=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=
|
|
(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},gc=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{l(e.next(a))}catch(m){h(m)}}function g(a){try{l(e["throw"](a))}catch(m){h(m)}}function l(b){b.done?a(b.value):c(b.value).then(d,g)}l((e=e.apply(f,b||[])).next())})},hc=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}
|
|
function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&
|
|
(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,k;return k={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),
|
|
k},hh=function(f){function b(a,b,c,g,h){var d=f.call(this)||this;d.logCtor(arguments);d._renderingHintsService=a;d._metricsHelper=b;d._event=c;d._eventOptions=g;d._preloadConfig=h||[];return d}gh(b,f);b.prototype.getHeadersWithPreload=function(a){return gc(this,void 0,void 0,function(){var b,c;return hc(this,function(e){switch(e.label){case 0:if(!this._preloadConfig.length)return[2,a];b=[];c=[];this._sortConfig(b,c);if(!c.length)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this._resolveHints(b,
|
|
c)];case 2:return e.sent(),[3,4];case 3:return e.sent(),this._metricsHelper.logCountError(t.create("PreloadHintResolution")),[3,4];case 4:return[2,this._getOutputHeaders(b,a)]}})})};b.prototype.hasPreload=function(){return 0<this._preloadConfig.length};b.prototype._sortConfig=function(a,b){this._preloadConfig.forEach(function(c){"href"in c?a.push(c):"hrefHint"in c&&b.push(c)})};b.prototype._resolveHints=function(a,b){return gc(this,void 0,void 0,function(){var c,e=this;return hc(this,function(g){switch(g.label){case 0:return c=
|
|
b.map(function(b){return gc(e,void 0,void 0,function(){var c,d,e,g,f,h,k,q,r;return hc(this,function(l){switch(l.label){case 0:return c=b.purpose,d=b.attribution,e=b.hrefHint,g=b.as,f=b.fetchPriority,h=e.delegate,k=e.field,[4,this._renderingHintsService.getHint(this._eventOptions,this._event.request.url,h,k)];case 1:q=l.sent();if(!q)return this._metricsHelper.logCount("PreloadHintMissing:".concat(c)),[2];r=L.parse(String(q.value));if(!r)return this._metricsHelper.logCountError(t.create("PreloadHintInvalidURL")),
|
|
[2];a.push({purpose:c,href:r.href,as:g,fetchPriority:f,attribution:this._getAttribution(d,q.source)});return[2]}})})}),[4,Promise.all(c)];case 1:return g.sent(),[2]}})})};b.prototype._getOutputHeaders=function(a,e){var c=this,g=new Headers(e),f={};a.forEach(function(a){f[a.href]?c.log("_getOutputHeaders","Preload with same URL already issued, ignoring: ".concat(a.href)):(f[a.href]=!0,g.append(b._PRELOAD_HEADER_NAME,c._getLinkHeaderValue(a)),g.append(b._SERVER_TIMING_HEADER_NAME,c._getServerTimingHeaderValue(a)))});
|
|
return g};b.prototype._getLinkHeaderValue=function(a){var b=a.as,c=a.fetchPriority;a="\x3c".concat(a.href,'\x3e; rel\x3d"preload"; as\x3d"').concat(b,'"');c&&(a="".concat(a,'; fetchpriority\x3d"').concat(c,'"'));return a};b.prototype._getServerTimingHeaderValue=function(a){a=C.serialize(fc({role:b._SERVER_TIME_RECORD_ROLE},a));return"".concat(v.NAMESPACE_LCASE,';desc\x3d"').concat(J.encodeRFC3986(a),'"')};b.prototype._getAttribution=function(a,b){return[a,b&&b.pty].filter(q.isNonEmptyString).join(":").toLowerCase()};
|
|
b._PRELOAD_HEADER_NAME="Link";b._SERVER_TIMING_HEADER_NAME="Server-Timing";b._SERVER_TIME_RECORD_ROLE="rendering-hints/preload";xa([k],b.prototype,"getHeadersWithPreload",null);xa([k],b.prototype,"hasPreload",null);xa([k],b.prototype,"_sortConfig",null);xa([k],b.prototype,"_resolveHints",null);xa([k],b.prototype,"_getOutputHeaders",null);xa([k],b.prototype,"_getLinkHeaderValue",null);xa([k],b.prototype,"_getServerTimingHeaderValue",null);xa([k],b.prototype,"_getAttribution",null);return b}(u),ih=
|
|
this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),jh=this&&
|
|
this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},kh=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{k(e.next(a))}catch(m){h(m)}}
|
|
function g(a){try{k(e["throw"](a))}catch(m){h(m)}}function k(b){b.done?a(b.value):c(b.value).then(d,g)}k((e=e.apply(f,b||[])).next())})},lh=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;
|
|
case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:
|
|
void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,k;return k={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k},bd=function(f){function b(a,b,c,g,h,d,k,l,p){var e=f.call(this)||this;e.logCtor(arguments);e.name=a;e.customerContextService=b;e.cacheService=c;e.metricsService=g;e.contentFragmentService=h;e.renderingHintsService=d;e.eventBus=k;e.eventOptions=l;e.responseRuleName=p;e.metricsHelper=
|
|
new ah(g,l,e.name,p);e.mismatchDetectionController=new eh(k,l,g,e.metricsHelper,a,p);return e}ih(b,f);b.prototype.getResponse=function(){return kh(this,void 0,void 0,function(){var a=this;return lh(this,function(b){r.queueTask(function(){a.metricsHelper.logTagAndCount("Execute");a.metricsHelper.logBufferedCount("Execute")});return[2,this.build()]})})};jh([k],b.prototype,"getResponse",null);return b}(u),mh=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),Za=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,
|
|
a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},nh=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{k(e.next(a))}catch(m){h(m)}}function g(a){try{k(e["throw"](a))}catch(m){h(m)}}function k(b){b.done?a(b.value):
|
|
c(b.value).then(d,g)}k((e=e.apply(f,b||[])).next())})},oh=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;
|
|
case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},
|
|
trys:[],ops:[]},g,h,d,k;return k={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k},ph=function(f){function b(a,b,c,g,h,d){var e=f.call(this)||this;e.logCtor(arguments);e._customerContextService=a;e._cacheService=b;e._metricsHelper=c;e._eventBus=g;e._eventOptions=h;e._responseRuleName=d;return e}mh(b,f);b.prototype.getCachedPageFromCache=function(a){return nh(this,void 0,void 0,function(){var b,c,g,f,d,k,l;return oh(this,function(e){switch(e.label){case 0:return b=
|
|
a.cacheName,c=a.cacheKey,g=a.validationKeys,d=(f=this._cacheService).read,k=[this._eventOptions,b,c],l={},[4,(new hb(this._customerContextService)).compute(g)];case 1:return[2,d.apply(f,k.concat([(l.validationKeys=e.sent(),l)]))]}})})};b.prototype.getFilteredCachedPageHeaders=function(a){return x.shared.removeLibHeaders(a.headers)};b.prototype.getCachedPageMetadata=function(a){return(a=(a=(a=a.headers.get(x.shared.getClientOnlyLibHeader("metadata")))?J.decode(a):void 0)?C.deserialize(a):void 0)?{attribution:a.attribution||
|
|
"unknown",staleness:"number"===typeof a.requestStartTimestampSeconds?D.getEpochSeconds(this._eventOptions.timeOriginEpoch)-a.requestStartTimestampSeconds:void 0}:{attribution:"unknown"}};b.prototype.queueCachedPageMetadataMetrics=function(a){var b=this;r.queueTask(function(){var c=b.getCachedPageMetadata(a);b._metricsHelper.logTagAndCount("CachePopAttribution:".concat(c.attribution));c.staleness&&b._metricsHelper.logCount("CachedPageStaleness",c.staleness)})};b.prototype.queueCachedPageUpdate=function(a,
|
|
b){var c=this;r.queueTask(function(){c._metricsHelper.logCount("Queue:CachedPageUpdate");c._metricsHelper.logCount("Queue:CachedPageUpdate:".concat(b?"OnHit":"OnMiss"));c._eventBus.publish({name:"ResponseRuleNavigation",detail:{eventOptions:c._eventOptions,serverResponse:a,ruleName:c._responseRuleName}})})};Za([k],b.prototype,"getCachedPageFromCache",null);Za([k],b.prototype,"getFilteredCachedPageHeaders",null);Za([k],b.prototype,"getCachedPageMetadata",null);Za([k],b.prototype,"queueCachedPageMetadataMetrics",
|
|
null);Za([k],b.prototype,"queueCachedPageUpdate",null);return b}(u),qh=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=
|
|
null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),U=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},Da=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}
|
|
return new (a||(a=Promise))(function(a,h){function d(a){try{k(e.next(a))}catch(m){h(m)}}function g(a){try{k(e["throw"](a))}catch(m){h(m)}}function k(b){b.done?a(b.value):c(b.value).then(d,g)}k((e=e.apply(f,b||[])).next())})},Ea=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,
|
|
a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,
|
|
c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,k;return k={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k},rh=function(f){function b(a,b,c,g,h,d,k,l,p,m,q,r){var e=f.call(this,"FullPage",b,c,g,h,d,k,p,q)||this;e.logCtor(arguments);e._event=l;e._usePreloadResponseOnly=m;e._cachedPageConfig=r;e._cachedPageController=
|
|
new ph(b,c,e.metricsHelper,k,p,q);e._serverResponseController=new ad(a,g,e.metricsHelper,k,q);return e}qh(b,f);b.prototype.build=function(){return Da(this,void 0,void 0,function(){var a,b,c,g,f,d=this;return Ea(this,function(e){switch(e.label){case 0:a=this._serverResponseController.fetchServerResponse(this._event,this._usePreloadResponseOnly),this.metricsHelper.logMark("Query:CachedPage"),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this._cachedPageController.getCachedPageFromCache(this._cachedPageConfig)];
|
|
case 2:return b=e.sent(),[3,4];case 3:return c=e.sent(),r.queueTask(function(){d.metricsHelper.logError(c);d.metricsHelper.logCountError(c);d.metricsHelper.logTagAndCount("CachedPageCacheMiss:CacheError")}),[3,4];case 4:return this.metricsHelper.logMark("Arrived:CachedPage"),r.queueTask(function(){d.metricsHelper.logTagAndCount("CachedPageCache".concat(b?"Hit":"Miss"))}),b?(this._cachedPageController.queueCachedPageMetadataMetrics(b),[2,this._getCachedPageAssembledResponse(b,a)]):[4,this._serverResponseController.readServerResponse(this._event,
|
|
this.eventOptions,a,"fprs",!0,!0)];case 5:return g=e.sent(),this.metricsHelper.logMark("Arrived:ServerResponse"),g.parseable&&(f=g.response.clone(),this._cachedPageController.queueCachedPageUpdate(f,!1)),[2,g.response]}})})};b.prototype._getCachedPageAssembledResponse=function(a,b){return Da(this,void 0,void 0,function(){return Ea(this,function(c){return[2,new Response(this._getAssembledResponseOutputStream(a,b),this._getAssembledResponseInit(a))]})})};b.prototype._getAssembledResponseInit=function(a){return{status:200,
|
|
statusText:"OK",headers:this._cachedPageController.getFilteredCachedPageHeaders(a)}};b.prototype._getAssembledResponseOutputStream=function(a,b){var c=this;return new ReadableStream({start:function(e){return Da(c,void 0,void 0,function(){var c,d,g,f,k,m,q,r,t,u,v,M,w,x;return Ea(this,function(h){switch(h.label){case 0:c=new md,this._event.waitUntil(c.promise),d=new Va(e,this.metricsService,this.eventOptions),h.label=1;case 1:return h.trys.push([1,13,14,15]),g=this._toOutputStream("CachedPage",a,d),
|
|
f=this._serverResponseController.readServerResponse(this._event,this.eventOptions,b,"fprs",!1,!0),[4,g];case 2:return h.sent(),k=this._toOutputStream,m=["PageMetadata"],[4,this._getPageMetadataFragment(a)];case 3:return[4,k.apply(this,m.concat([h.sent(),d]))];case 4:h.sent();if(!X.isDebug)return[3,7];q=this._toOutputStream;r=["DebugInfo"];return[4,this._getDebugInfoFragment()];case 5:return[4,q.apply(this,r.concat([h.sent(),d]))];case 6:h.sent(),h.label=7;case 7:return[4,f];case 8:return t=h.sent(),
|
|
u=t.unrecoverable,v=t.parseable,M=t.response,this.metricsHelper.logMark("Arrived:ServerResponse"),"opaqueredirect"!==M.type?[3,10]:[4,this._toOutputStream("ServerResponse",M,d)];case 9:return h.sent(),d.close(),this._logResponseSuccessTagAndCount(),this._bufferResponseSuccessCount(),this.metricsHelper.drainAllBuffered(),[2];case 10:d.close();this.metricsHelper.logTagAndCount("ServerResponseStatus:".concat(M.status));this._logResponseSuccessTagAndCount();this._bufferResponseSuccessCount();this.metricsHelper.drainAllBuffered();
|
|
if(u||!v||d.isUnexpectedlyClosed())return[3,12];this._cachedPageController.queueCachedPageUpdate(M,!0);return[4,this._drainResponseClone(M)];case 11:h.sent(),h.label=12;case 12:return[3,15];case 13:throw w=h.sent(),d.safeClose(),(x=this._isDropError(w))?(this.metricsHelper.logBufferedCount("Response:Drop",1),this.metricsHelper.logBufferedCount("Response:Drop",1,!0)):(this.metricsHelper.logBufferedCount("Response:Error",1),this.metricsHelper.logBufferedCount("Response:Error",1,!0)),this.metricsHelper.logError(w,
|
|
x?"ERROR":void 0),this.metricsHelper.logBufferedCountError(w),this.metricsHelper.drainAllBuffered(),this.metricsHelper.logCountError(w),w;case 14:return c.resolveWith(),[7];case 15:return[2]}})})}})};b.prototype._drainResponseClone=function(a){return Da(this,void 0,void 0,function(){var b;return Ea(this,function(c){switch(c.label){case 0:return b=a.clone(),[4,b.text()];case 1:return c.sent(),[2]}})})};b.prototype._toOutputStream=function(a,b,c){return Da(this,void 0,void 0,function(){var e=this;return Ea(this,
|
|
function(g){switch(g.label){case 0:if(!(b.body instanceof ReadableStream))throw t.create("ResponseBodyInvalid");return[4,Ga.drain(b.body,function(a){e._processChunk(a,c)})];case 1:return g.sent(),this.metricsHelper.logMark("Flushed:".concat(a)),[2]}})})};b.prototype._processChunk=function(a,b){b.enqueue(a)};b.prototype._getPageMetadataFragment=function(a){return Da(this,void 0,void 0,function(){var b,c;return Ea(this,function(e){b=this._cachedPageController.getCachedPageMetadata(a);c={attribution:b.attribution,
|
|
staleness:b.staleness};return[2,(new Dc(this.eventOptions,this.metricsService,this.responseRuleName,this.name,c)).getResponse()]})})};b.prototype._getDebugInfoFragment=function(){return Da(this,void 0,void 0,function(){return Ea(this,function(a){return[2,(new zc(this.eventOptions,this.metricsService,this._event.request.url)).getResponse()]})})};b.prototype._logResponseSuccessTagAndCount=function(){this.metricsHelper.logTagAndCount("Response:Success");this.metricsHelper.logTagAndCount("Response:Success",
|
|
!0)};b.prototype._bufferResponseSuccessCount=function(){this.metricsHelper.logBufferedCount("Response:Success");this.metricsHelper.logBufferedCount("Response:Success",1,!0)};b.prototype._isDropError=function(a){return w.matchesCodeOrSignature(a,"NetworkError",H.NETWORK_ERROR)||w.matchesCode(a,"ControllerUnexpectedlyClosed")};U([k],b.prototype,"build",null);U([k],b.prototype,"_getCachedPageAssembledResponse",null);U([k],b.prototype,"_getAssembledResponseInit",null);U([k],b.prototype,"_getAssembledResponseOutputStream",
|
|
null);U([k],b.prototype,"_drainResponseClone",null);U([k],b.prototype,"_toOutputStream",null);U([k],b.prototype,"_processChunk",null);U([k],b.prototype,"_getPageMetadataFragment",null);U([k],b.prototype,"_getDebugInfoFragment",null);U([k],b.prototype,"_logResponseSuccessTagAndCount",null);U([k],b.prototype,"_bufferResponseSuccessCount",null);U([k],b.prototype,"_isDropError",null);return b}(bd),sh=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),$a=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,
|
|
a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},th=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{k(e.next(a))}catch(m){h(m)}}function g(a){try{k(e["throw"](a))}catch(m){h(m)}}function k(b){b.done?a(b.value):
|
|
c(b.value).then(d,g)}k((e=e.apply(f,b||[])).next())})},uh=this&&this.__generator||function(f,b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;
|
|
case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},
|
|
trys:[],ops:[]},g,h,d,k;return k={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k},vh=function(f){function b(a,b,c,g,h,d){var e=f.call(this)||this;e.logCtor(arguments);e._customerContextService=a;e._cacheService=b;e._metricsHelper=c;e._eventBus=g;e._eventOptions=h;e._responseRuleName=d;return e}sh(b,f);b.prototype.getPageShellFromCache=function(a){return th(this,void 0,void 0,function(){var b,c,g,f,d,k,l,p,m,q,t,u,v=this;return uh(this,
|
|
function(e){switch(e.label){case 0:return b=a.cacheName,c=a.cacheKey,g=a.validationKeys,f=a.delimiterKey,d=a.skeleton,p=(l=this._cacheService).read,m=[this._eventOptions,b,c],u={},[4,(new hb(this._customerContextService)).compute(g)];case 1:return[4,p.apply(l,m.concat([(u.validationKeys=e.sent(),u)]))];case 2:k=e.sent();if(!k)return[2];t=(q=k.headers.get(x.shared.getClientOnlyLibHeader(f)))?J.decode(q):void 0;return t?[2,{delimiter:t,response:k,skeleton:d}]:(r.queueTask(function(){v._metricsHelper.logTagAndCount("PageShellCacheMiss:Delimiter")}),
|
|
[2])}})})};b.prototype.getFilteredPageShellHeaders=function(a){return x.shared.removeLibHeaders(a.headers)};b.prototype.getPageShellMetadata=function(a){return(a=(a=(a=a.headers.get(x.shared.getClientOnlyLibHeader("metadata")))?J.decode(a):void 0)?C.deserialize(a):void 0)?{attribution:a.attribution||"unknown",staleness:"number"===typeof a.requestStartTimestampSeconds?D.getEpochSeconds(this._eventOptions.timeOriginEpoch)-a.requestStartTimestampSeconds:void 0}:{attribution:"unknown"}};b.prototype.queuePageShellMetadataMetrics=
|
|
function(a){var b=this;r.queueTask(function(){var c=b.getPageShellMetadata(a);b._metricsHelper.logTagAndCount("CachePopAttribution:".concat(c.attribution));c.staleness&&b._metricsHelper.logCount("PageShellStaleness",c.staleness)})};b.prototype.queuePageShellUpdate=function(a,b){var c=this;r.queueTask(function(){c._metricsHelper.logCount("Queue:PageShellUpdate");c._metricsHelper.logCount("Queue:PageShellUpdate:".concat(b?"OnHit":"OnMiss"));c._eventBus.publish({name:"ResponseRuleNavigation",detail:{eventOptions:c._eventOptions,
|
|
serverResponse:a,ruleName:c._responseRuleName}})})};$a([k],b.prototype,"getPageShellFromCache",null);$a([k],b.prototype,"getFilteredPageShellHeaders",null);$a([k],b.prototype,"getPageShellMetadata",null);$a([k],b.prototype,"queuePageShellMetadataMetrics",null);$a([k],b.prototype,"queuePageShellUpdate",null);return b}(u),wh=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,
|
|
c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),z=this&&this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,
|
|
b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},B=this&&this.__awaiter||function(f,b,a,e){function c(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,h){function d(a){try{k(e.next(a))}catch(m){h(m)}}function g(a){try{k(e["throw"](a))}catch(m){h(m)}}function k(b){b.done?a(b.value):c(b.value).then(d,g)}k((e=e.apply(f,b||[])).next())})},K=this&&this.__generator||function(f,
|
|
b){function a(a){return function(b){return e([a,b])}}function e(a){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,h&&(d=a[0]&2?h["return"]:a[0]?h["throw"]||((d=h["return"])&&d.call(h),0):h.next)&&!(d=d.call(h,a[1])).done)return d;if(h=0,d)a=[a[0]&2,d.value];switch(a[0]){case 0:case 1:d=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++;h=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=0<d.length&&d[d.length-
|
|
1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!d||a[1]>d[0]&&a[1]<d[3]))c.label=a[1];else if(6===a[0]&&c.label<d[1])c.label=d[1],d=a;else if(d&&c.label<d[2])c.label=d[2],c.ops.push(a);else{d[2]&&c.ops.pop();c.trys.pop();continue}}a=b.call(f,c)}catch(p){a=[6,p],h=0}finally{g=d=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},g,h,d,k;return k={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&
|
|
(k[Symbol.iterator]=function(){return this}),k},xh=function(f){function b(a,b,c,g,h,d,k,l,p,m,q,r,t,u,v){var e=f.call(this,"SingleDelimiter",b,c,g,h,d,k,p,q)||this;e.logCtor(arguments);e._event=l;e._usePreloadResponseOnly=m;e._pageShellsConfig=r;e._noPageShellConfig=t||{};e._flags=v||{};e._pageShellController=new vh(b,c,e.metricsHelper,k,p,q);e._serverResponseController=new ad(a,g,e.metricsHelper,k,q);e._preloadController=new hh(d,e.metricsHelper,l,p,u);return e}wh(b,f);b.prototype.build=function(){return B(this,
|
|
void 0,void 0,function(){var a,b,c=this;return K(this,function(e){switch(e.label){case 0:return a=this._serverResponseController.fetchServerResponse(this._event,this._usePreloadResponseOnly),r.queueTask(function(){c.metricsHelper.logTagAndCount("Passthrough:".concat(!!c._flags.passthrough))}),this._flags.passthrough?[3,2]:[4,this._getPageShell(this._pageShellsConfig)];case 1:if(b=e.sent())return[2,this._getPageShellAssembledResponse(b,a)];if(this._noPageShellConfig.skeleton||this._preloadController.hasPreload())return[2,
|
|
this._getNoPageShellAssembledResponse(this._noPageShellConfig,a)];e.label=2;case 2:return[2,this._getNonAssembledResponse(a)]}})})};b.prototype._getPageShell=function(a){return B(this,void 0,void 0,function(){var b,c,g,f=this;return K(this,function(d){switch(d.label){case 0:this.metricsHelper.logMark("Query:PageShell"),c=0,d.label=1;case 1:if(!(c<a.length))return[3,6];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,this._pageShellController.getPageShellFromCache(a[c])];case 3:return(b=d.sent())?
|
|
[3,6]:[3,5];case 4:return g=d.sent(),r.queueTask(function(){var a=w.matchesCodeOrSignature(g,"NetworkError",H.NETWORK_ERROR);f.metricsHelper.logError(g,a?"ERROR":void 0);f.metricsHelper.logCountError(g);f.metricsHelper.logTagAndCount("PageShellCacheMiss:CacheError")}),[3,5];case 5:return c++,[3,1];case 6:return this.metricsHelper.logMark("Arrived:PageShell"),r.queueTask(function(){f.metricsHelper.logTagAndCount("PageShellCache".concat(b?"Hit":"Miss"))}),b&&this._pageShellController.queuePageShellMetadataMetrics(b.response),
|
|
[2,b]}})})};b.prototype._getNonAssembledResponse=function(a){return B(this,void 0,void 0,function(){var b,c,g,f=this;return K(this,function(d){switch(d.label){case 0:return[4,this._serverResponseController.readServerResponse(this._event,this.eventOptions,a,"sdrsm",!0,!0)];case 1:return b=d.sent(),this.metricsHelper.logMark("Arrived:ServerResponse"),c=[],this._flags.passthrough&&c.push(function(){return B(f,void 0,void 0,function(){return K(this,function(a){switch(a.label){case 0:return[4,this._getPageShell(this._pageShellsConfig)];
|
|
case 1:return a.sent(),[2]}})})}),b.parseable&&(g=b.response.clone(),c.push(function(){return B(f,void 0,void 0,function(){return K(this,function(a){this._pageShellController.queuePageShellUpdate(g,!1);return[2]})})})),r.queueTask(function(){return B(f,void 0,void 0,function(){var a;return K(this,function(b){switch(b.label){case 0:a=0,b.label=1;case 1:return a<c.length?[4,c[a]()]:[3,4];case 2:b.sent(),b.label=3;case 3:return a++,[3,1];case 4:return[2]}})})}),this._logResponseSuccessTagAndCount(),
|
|
this._bufferResponseSuccessCount(),this.metricsHelper.drainAllBuffered(),[2,b.response]}})})};b.prototype._getPageShellAssembledResponse=function(a,b){return B(this,void 0,void 0,function(){var c,e;return K(this,function(g){switch(g.label){case 0:return c=this._getPageShellAssembledResponseOutputStream(a,b),[4,this._getPageShellAssembledResponseInit(a)];case 1:return e=g.sent(),[2,new Response(c,e)]}})})};b.prototype._getNoPageShellAssembledResponse=function(a,b){return B(this,void 0,void 0,function(){var c,
|
|
e;return K(this,function(g){switch(g.label){case 0:return c=this._getNoPageShellAssembledResponseOutputStream(a,b),[4,this._getNoPageShellAssembledResponseInit()];case 1:return e=g.sent(),[2,new Response(c,e)]}})})};b.prototype._getPageShellAssembledResponseInit=function(a){return B(this,void 0,void 0,function(){var b;return K(this,function(c){switch(c.label){case 0:return[4,this._preloadController.getHeadersWithPreload(this._pageShellController.getFilteredPageShellHeaders(a.response))];case 1:return b=
|
|
c.sent(),[2,{status:200,statusText:"OK",headers:b}]}})})};b.prototype._getNoPageShellAssembledResponseInit=function(){return B(this,void 0,void 0,function(){var a;return K(this,function(b){switch(b.label){case 0:return[4,this._preloadController.getHeadersWithPreload(Oa.getCommonHTMLHeaders())];case 1:return a=b.sent(),[2,{status:200,statusText:"OK",headers:a}]}})})};b.prototype._getPageShellAssembledResponseOutputStream=function(a,b){var c=this,e;return new ReadableStream({start:function(g){return B(c,
|
|
void 0,void 0,function(){var c,f,h,k,m,q,r,t,u,v,x,y,z,A,B,C,D,E,G,J,L,I,N,O,F,P;return K(this,function(d){switch(d.label){case 0:c=!0,d.label=1;case 1:return d.trys.push([1,27,,28]),e=new Va(g,this.metricsService,this.eventOptions),f=this._toOutputStream("PageShell",a.response,e),h=this._serverResponseController.readServerResponse(this._event,this.eventOptions,b,"sdrs",!1,!0),k=this._getSkeletonFragment(a,h),[4,f];case 2:return d.sent(),this._logAsyncBufferedCounters("PageShellFlushed"),[4,k];case 3:return(m=
|
|
d.sent())?[4,this._toOutputStream("Skeleton",m,e)]:[3,5];case 4:d.sent(),d.label=5;case 5:return q=this._toOutputStream,r=["ShellRenderPerfCounter"],[4,this._getPerfCounterFragment(this.metricsHelper.getMetricName("ShellRender"))];case 6:return[4,q.apply(this,r.concat([d.sent(),e]))];case 7:return d.sent(),[4,h];case 8:t=d.sent();u=t.unrecoverable;v=t.parseable;x=t.response;this.metricsHelper.logMark("Arrived:ServerResponse");if(!u)return[3,10];this._logResponseUnrecoverableTagAndCount();this._logAsyncBufferedCounters("Response:Unrecoverable");
|
|
return[4,this._toOutputStream("ServerResponse",x,e)];case 9:return d.sent(),e.close(),this._logResponseSuccessTagAndCount(),this._bufferResponseSuccessCount(),this.metricsHelper.drainAllBuffered(),[2];case 10:return y=this._getCSMTokensFragment(a.response,x),z=this._getPageMetadataFragment(a.response,x),A=v?this._getAfterDelimiterFragment(a,x):Promise.resolve(x.clone()),B=this._toOutputStream,C=["CSMTokens"],[4,y];case 11:return[4,B.apply(this,C.concat([d.sent(),e]))];case 12:return d.sent(),D=this._toOutputStream,
|
|
E=["PageMetadata"],[4,z];case 13:return[4,D.apply(this,E.concat([d.sent(),e]))];case 14:d.sent(),this._logAsyncBufferedCounters("PageMetadataFlushed"),G=!1,d.label=15;case 15:return d.trys.push([15,18,,23]),J=this._toOutputStream,L=["AfterDelimiter"],[4,A];case 16:return[4,J.apply(this,L.concat([d.sent(),e]))];case 17:return d.sent(),[3,23];case 18:I=d.sent();if(!w.matchesCode(I,"StreamTransformMissingDelimiter"))return[3,21];c=!1;G=!0;this.metricsHelper.logTagAndCount("MissingDelimiter");this.metricsHelper.logBufferedCount("MissingDelimiter");
|
|
this.metricsHelper.logBufferedCount("MissingDelimiter",1,!0);return this._flags.flushFullOnMissingDelimiter?[4,this._toOutputStream("MissingDelimiterFallback",x.clone(),e)]:[3,20];case 19:d.sent(),d.label=20;case 20:return[3,22];case 21:w.matchesCodeOrSignature(I,"NetworkError",H.NETWORK_ERROR)?(this.metricsHelper.logBufferedCount("AfterDelimiterNetworkError"),this.metricsHelper.logBufferedCount("AfterDelimiterNetworkError",1,!0)):this.metricsHelper.logBufferedCountError(I),d.label=22;case 22:return[3,
|
|
23];case 23:this._logAsyncBufferedCounters("AfterDelimiterPageFlushed");if(!X.isDebug)return[3,26];N=this._toOutputStream;O=["DebugInfo"];return[4,this._getDebugInfoFragment()];case 24:return[4,N.apply(this,O.concat([d.sent(),e]))];case 25:d.sent(),d.label=26;case 26:e.close();v&&this.mismatchDetectionController.triggerMismatchDetection(a.response,x.clone());this.metricsHelper.logTagAndCount("ServerResponseStatus:".concat(x.status));c?(this._logResponseSuccessTagAndCount(),this._bufferResponseSuccessCount()):
|
|
(this.metricsHelper.logBufferedCount("Response:Error",1),this.metricsHelper.logBufferedCount("Response:Error",1,!0));this.metricsHelper.drainAllBuffered();if(!v||G)return[2];e.isUnexpectedlyClosed()||this._pageShellController.queuePageShellUpdate(x,!0);return[3,28];case 27:throw F=d.sent(),e.safeClose(),(P=this._isDropError(F))?(this.metricsHelper.logBufferedCount("Response:Drop",1),this.metricsHelper.logBufferedCount("Response:Drop",1,!0)):(this.metricsHelper.logBufferedCount("Response:Error",1),
|
|
this.metricsHelper.logBufferedCount("Response:Error",1,!0)),this.metricsHelper.logError(F,P?"ERROR":void 0),this.metricsHelper.logCountError(F),this.metricsHelper.logBufferedCountError(F),this.metricsHelper.drainAllBuffered(),F;case 28:return[2]}})})}})};b.prototype._getNoPageShellAssembledResponseOutputStream=function(a,b){var c=this,e;return new ReadableStream({start:function(g){return B(c,void 0,void 0,function(){var c,f,h,k,m,q,r,t,u,v,w;return K(this,function(d){switch(d.label){case 0:return d.trys.push([0,
|
|
9,,10]),e=new Va(g,this.metricsService,this.eventOptions),c=this._serverResponseController.readServerResponse(this._event,this.eventOptions,b,"sdrsn",!1,!0),f=this._getSkeletonFragment(a,c),[4,f];case 1:return(h=d.sent())?[4,this._toOutputStream("Skeleton",h,e)]:[3,3];case 2:d.sent(),d.label=3;case 3:return this._logAsyncBufferedCounters("NoPageShellSkeletonFlushed"),[4,c];case 4:return k=d.sent(),m=k.unrecoverable,q=k.parseable,r=k.response,this.metricsHelper.logMark("Arrived:ServerResponse"),[4,
|
|
this._toOutputStream("ServerResponse",r.clone(),e)];case 5:d.sent();this._logAsyncBufferedCounters("NoPageShellServerResponseFlushed");if(m)return this._logResponseUnrecoverableTagAndCount(),this._logAsyncBufferedCounters("Response:Unrecoverable"),e.close(),this._logResponseSuccessTagAndCount(),this._bufferResponseSuccessCount(),this.metricsHelper.drainAllBuffered(),[2];if(!X.isDebug)return[3,8];t=this._toOutputStream;u=["DebugInfo"];return[4,this._getDebugInfoFragment()];case 6:return[4,t.apply(this,
|
|
u.concat([d.sent(),e]))];case 7:d.sent(),d.label=8;case 8:e.close();this.metricsHelper.logTagAndCount("ServerResponseStatus:".concat(r.status));this._logResponseSuccessTagAndCount();this._bufferResponseSuccessCount();this.metricsHelper.drainAllBuffered();if(!q)return[2];this._pageShellController.queuePageShellUpdate(r,!1);return[3,10];case 9:throw v=d.sent(),e.safeClose(),(w=this._isDropError(v))?(this.metricsHelper.logBufferedCount("Response:Drop",1),this.metricsHelper.logBufferedCount("Response:Drop",
|
|
1,!0)):(this.metricsHelper.logBufferedCount("Response:Error",1),this.metricsHelper.logBufferedCount("Response:Error",1,!0)),this.metricsHelper.logError(v,w?"ERROR":void 0),this.metricsHelper.logCountError(v),this.metricsHelper.logBufferedCountError(v),this.metricsHelper.drainAllBuffered(),v;case 10:return[2]}})})}})};b.prototype._toOutputStream=function(a,b,c){return B(this,void 0,void 0,function(){var e=this;return K(this,function(g){switch(g.label){case 0:if(!(b.body instanceof ReadableStream))throw t.create("ResponseBodyInvalid");
|
|
return[4,Ga.drain(b.body,function(a){e._processChunk(a,c)})];case 1:return g.sent(),this.metricsHelper.logMark("Flushed:".concat(a)),[2]}})})};b.prototype._processChunk=function(a,b){b.enqueue(a)};b.prototype._getSkeletonFragment=function(a,b){return B(this,void 0,void 0,function(){var c,e,f,d,k,l,p;return K(this,function(g){switch(g.label){case 0:c=a.skeleton;if(!c)return[2];e=c.data||{};f=c.hooks;d=this.contentFragmentService.render(this.eventOptions,c.name,{data:e,hooks:f});return c.race?[4,Promise.race([d,
|
|
b])]:[3,2];case 1:return l=g.sent(),[3,4];case 2:return[4,d];case 3:l=g.sent(),g.label=4;case 4:return k=l,p=k instanceof Response,this.metricsHelper.logMark("Arrived:Skeleton"),this.metricsHelper.logTag("Skeleton:Race:".concat(!!c.race)),this.metricsHelper.logTag("Skeleton:Render:".concat(p)),[2,p?k:void 0]}})})};b.prototype._getCSMTokensFragment=function(a,b){return B(this,void 0,void 0,function(){var c;return K(this,function(e){c=this._pageShellController.getPageShellMetadata(a);return[2,(new Se(this.eventOptions,
|
|
this.metricsService,b,c.attribution)).getResponse()]})})};b.prototype._getPageMetadataFragment=function(a,b){return B(this,void 0,void 0,function(){var c,e,f,d,k,l,p;return K(this,function(g){c=this._pageShellController.getPageShellMetadata(a);e=b.ok;f=b.type;d=b.status;k=b.redirected;l=b.headers.get(x.shared.REQUEST_ID_OPF_HEADER);p={attribution:c.attribution,staleness:c.staleness,serverResponse:{ok:e,type:f,status:d,redirected:k,requestId:l}};return[2,(new Dc(this.eventOptions,this.metricsService,
|
|
this.responseRuleName,this.name,p)).getResponse()]})})};b.prototype._getPerfCounterFragment=function(a){return B(this,void 0,void 0,function(){return K(this,function(b){return[2,(new af(this.eventOptions,this.metricsService,a)).getResponse()]})})};b.prototype._getAfterDelimiterFragment=function(a,b){return B(this,void 0,void 0,function(){return K(this,function(c){return[2,(new He(this.eventOptions,this.metricsService,b,a.delimiter)).getResponse()]})})};b.prototype._getDebugInfoFragment=function(){return B(this,
|
|
void 0,void 0,function(){return K(this,function(a){return[2,(new zc(this.eventOptions,this.metricsService,this._event.request.url)).getResponse()]})})};b.prototype._logResponseSuccessTagAndCount=function(){this.metricsHelper.logTagAndCount("Response:Success");this.metricsHelper.logTagAndCount("Response:Success",!0)};b.prototype._bufferResponseSuccessCount=function(){this.metricsHelper.logBufferedCount("Response:Success");this.metricsHelper.logBufferedCount("Response:Success",1,!0)};b.prototype._logResponseUnrecoverableTagAndCount=
|
|
function(){this.metricsHelper.logTagAndCount("Response:Unrecoverable");this.metricsHelper.logTagAndCount("Response:Unrecoverable",!0)};b.prototype._logAsyncBufferedCounters=function(a){var b=this;r.queueTask(function(){b.metricsHelper.logBufferedCount(a);b.metricsHelper.logBufferedCount(a,1,!0)})};b.prototype._isDropError=function(a){return w.matchesCodeOrSignature(a,"NetworkError",H.NETWORK_ERROR)||w.matchesCode(a,"ControllerUnexpectedlyClosed")};z([k],b.prototype,"build",null);z([k],b.prototype,
|
|
"_getPageShellAssembledResponse",null);z([k],b.prototype,"_getNoPageShellAssembledResponse",null);z([k],b.prototype,"_getPageShellAssembledResponseInit",null);z([k],b.prototype,"_getNoPageShellAssembledResponseInit",null);z([k],b.prototype,"_getPageShellAssembledResponseOutputStream",null);z([k],b.prototype,"_getNoPageShellAssembledResponseOutputStream",null);z([k],b.prototype,"_toOutputStream",null);z([k],b.prototype,"_processChunk",null);z([k],b.prototype,"_getSkeletonFragment",null);z([k],b.prototype,
|
|
"_getCSMTokensFragment",null);z([k],b.prototype,"_getPageMetadataFragment",null);z([k],b.prototype,"_getPerfCounterFragment",null);z([k],b.prototype,"_getAfterDelimiterFragment",null);z([k],b.prototype,"_getDebugInfoFragment",null);z([k],b.prototype,"_logResponseSuccessTagAndCount",null);z([k],b.prototype,"_bufferResponseSuccessCount",null);z([k],b.prototype,"_logResponseUnrecoverableTagAndCount",null);z([k],b.prototype,"_logAsyncBufferedCounters",null);z([k],b.prototype,"_isDropError",null);return b}(bd),
|
|
yh=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),V=this&&
|
|
this.__decorate||function(f,b,a,e){var c=arguments.length,g=3>c?b:null===e?e=Object.getOwnPropertyDescriptor(b,a):e,h;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)g=Reflect.decorate(f,b,a,e);else for(var d=f.length-1;0<=d;d--)if(h=f[d])g=(3>c?h(g):3<c?h(b,a,g):h(b,a))||g;return 3<c&&g&&Object.defineProperty(b,a,g),g},zh=this&&this.__read||function(f,b){var a="function"===typeof Symbol&&f[Symbol.iterator];if(!a)return f;f=a.call(f);var e,c=[];try{for(;(void 0===b||0<b--)&&!(e=
|
|
f.next()).done;)c.push(e.value)}catch(h){var g={error:h}}finally{try{e&&!e.done&&(a=f["return"])&&a.call(f)}finally{if(g)throw g.error;}}return c},Ah=function(f){function b(a,b,c,g,h,d,k,l,p){var e=f.call(this,b,c,g,h,d,k)||this;e.logCtor(arguments);e._swGlobal=a;e._usePreloadResponseOnlyForServerResponseOnNavigations=p.usePreloadResponseOnlyForServerResponseOnNavigations;e._errorLoggingScope="NavigationResponseService";e._initNavigationRules(l);e._speculateContentFragmentUsage();return e}yh(b,f);
|
|
b.prototype.respond=function(a,b){var c="";try{for(var e=0;e<this._navigationRules.length;e++){var f=this._navigationRules[e];if(this._doesRuleMatch(f.routeMatchers,a,b)){a.errorContext.NavigationResponseRule=f.src;a.errorContext.NavigationURL=b.request.url;c=f.name;if(!f.leversEnabled){this._logTagAndCount(a,"Levers",!1,c);break}this._triggerWeblabs(f.weblabs,a);if(!f.respond){this._logTagAndCount(a,"Respond",!1,c);this._bufferedCount(a,"Respond",!1,c);break}var d=this._createResponseStrategy(c,
|
|
f.strategy,a,b);this._logMark(a,!0,c);b.respondWith(d.getResponse());this._logMark(a,!1,c);this._logTagAndCount(a,"Respond",!0,c);this._bufferedCount(a,"Respond",!0,c);break}}}catch(n){throw this.metricsService.error(a,n,this._errorLoggingScope),this.metricsService.countError(a,n,this._errorLoggingScope),this.metricsService.bufferedCount(a,"Error"),c&&0<c.length&&this.metricsService.bufferedCount(a,"Error:".concat(c)),this.metricsService.bufferedCountError(a,n,this._errorLoggingScope),this.metricsService.drainAllBuffered(a),
|
|
n;}};b.prototype._initNavigationRules=function(a){var b=this;this._navigationRules=a.map(function(a){return{name:a.name,routeMatchers:a.routeMatchers.map(function(a){return b._createRouteMatcher(a)}),leversEnabled:b._resolveLevers(a.levers),weblabs:a.weblabTriggers,respond:a.respond,strategy:a.responseStrategy,src:C.serialize(a)}})};b.prototype._speculateContentFragmentUsage=function(){var a=this;this._navigationRules.forEach(function(b){switch(b.strategy.name){case "SingleDelimiter":b.strategy.pageShells.forEach(function(b){b.skeleton&&
|
|
a._publishSpeculatedContentFragmentUsage(b.skeleton)}),b.strategy.noPageShell&&b.strategy.noPageShell.skeleton&&a._publishSpeculatedContentFragmentUsage(b.strategy.noPageShell.skeleton)}})};b.prototype._publishSpeculatedContentFragmentUsage=function(a){var b=a.name;a=a.prewarm;this.eventBus.publish({name:"ContentFragmentSpeculation",detail:{eventOptions:ja.create(),name:b,prewarm:a}})};b.prototype._doesRuleMatch=function(a,b,c){for(var e=0;e<a.length;e++)if(a[e].match(c.request,c,b))return!0;return!1};
|
|
b.prototype._createRouteMatcher=function(a){switch(a.name){case "URLPathRoute":return new rc(a.pattern,a.stripRefMarkers,a.stripLanguageFolder);default:throw t.create("UnrecognizedRouteMatcher",a);}};b.prototype._resolveLevers=function(a){var e=this;return a&&0!==a.length?a.reduce(function(a,f){f=f.split(b.RULE_LEVER_SEPARATOR);if(2!==f.length)return!1;f=zh(f,2);f=fa.getFeaturePropertiesData(e._swGlobal,f[0],f[1]);return a&&!0===(null===f||void 0===f?void 0:f.ruleEnabled)},!0):!1};b.prototype._createResponseStrategy=
|
|
function(a,b,c,f){switch(b.name){case "SingleDelimiter":return new xh(this._swGlobal,this.customerContextService,this.cacheService,this.metricsService,this.contentFragmentService,this.renderingHintsService,this.eventBus,f,c,this._usePreloadResponseOnlyForServerResponseOnNavigations,a,b.pageShells,b.noPageShell,b.preloads,b.flags);case "FullPage":return new rh(this._swGlobal,this.customerContextService,this.cacheService,this.metricsService,this.contentFragmentService,this.renderingHintsService,this.eventBus,
|
|
f,c,this._usePreloadResponseOnlyForServerResponseOnNavigations,a,b.cachedPage);default:throw t.create("UnrecognizedResponseStrategy",b);}};b.prototype._triggerWeblabs=function(a,b){var c=this;a&&r.queueTask(function(){a.forEach(function(a){c.metricsService.weblabTrigger(b,a.name,a.treatment,a.directTrigger)})})};b.prototype._logTagAndCount=function(a,b,c,f){var e=this;r.queueTask(function(){var d=e._getMode(c);e.metricsService.tag(a,e._getMetricName(b,d));e.metricsService.count(a,e._getMetricName(b,
|
|
d));e.metricsService.tag(a,e._getMetricName(b,d,f));e.metricsService.count(a,e._getMetricName(b,d,f))})};b.prototype._bufferedCount=function(a,b,c,f){var e=this;r.queueTask(function(){var d=e._getMode(c);e.metricsService.bufferedCount(a,e._getMetricName(b,d));e.metricsService.bufferedCount(a,e._getMetricName(b,d,f))})};b.prototype._getMode=function(a){return a?"Active":"Inactive"};b.prototype._getMetricName=function(a,b,c){return c?"".concat(a,":").concat(b,":").concat(c):"".concat(a,":").concat(b)};
|
|
b.prototype._logMark=function(a,b,c){b=b?"Before":"After";this.metricsService.mark(a,"Respond:".concat(b));this.metricsService.mark(a,"Respond:".concat(b,":").concat(c))};b.RULE_LEVER_SEPARATOR="::";V([k],b.prototype,"respond",null);V([k],b.prototype,"_initNavigationRules",null);V([k],b.prototype,"_speculateContentFragmentUsage",null);V([k],b.prototype,"_publishSpeculatedContentFragmentUsage",null);V([k],b.prototype,"_doesRuleMatch",null);V([k],b.prototype,"_createRouteMatcher",null);V([k],b.prototype,
|
|
"_resolveLevers",null);V([k],b.prototype,"_createResponseStrategy",null);V([k],b.prototype,"_triggerWeblabs",null);V([k],b.prototype,"_logTagAndCount",null);V([k],b.prototype,"_bufferedCount",null);V([k],b.prototype,"_logMark",null);return b}(Yc),Bh=this&&this.__extends||function(){var f=function(b,a){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return f(b,a)};return function(b,
|
|
a){function e(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");f(b,a);b.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}(),tb=this&&this.__assign||function(){tb=Object.assign||function(f){for(var b,a=1,e=arguments.length;a<e;a++){b=arguments[a];for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(f[c]=b[c])}return f};return tb.apply(this,arguments)},cd=!1,Ch=function(f){function b(a){var b=
|
|
f.call(this)||this;b.logCtor(arguments);b._checkAlreadyStarted();b._logDebugInfo(a);var c=b._getGlobal(a),g=b._getFlags(a,c);if(!b._isSupported(c,g)||!b._isClientEnabled(c))return b;var h=b._getConfig(a);b._startServices(c,g,h);return b}Bh(b,f);b.prototype._checkAlreadyStarted=function(){if(cd)throw t.create("DuplicateLibraryInitialization");cd=!0};b.prototype._logDebugInfo=function(a){X.isDebugVerbose&&this.log("_logDebugInfo","Lib Init",{startTimeSeconds:D.getEpochSeconds(),libInfo:v,options:a})};
|
|
b.prototype._getGlobal=function(a){return a.serviceWorkerGlobal||self};b.prototype._getFlags=function(a,b){b={usePreloadResponseOnlyForServerResponseOnNavigations:Y.isMShop(b)};return tb(tb({},b),a.flags)};b.prototype._getConfig=function(a){a=a.configuration;if(!(a&&Array.isArray(a.caches)&&Array.isArray(a.cachePopulationRules)&&Array.isArray(a.navigationResponseRules)&&Array.isArray(a.renderingHintsDelegates)))throw t.create("InvalidInitializationConfiguration",{config:a});return{caches:(new Vf).filter(a.caches),
|
|
cachePopulationRules:(new Oc).filter(a.cachePopulationRules),navigationResponseRules:(new ag).filter(a.navigationResponseRules),contentFragments:(new Yf).filter(a.contentFragments),renderingHintsDelegates:(new dg).filter(a.renderingHintsDelegates)}};b.prototype._isSupported=function(a,b){a=new yd(a,b);try{return a.validate(),!0}catch(c){return this.log("_isSupported","".concat(c)),!1}};b.prototype._isClientEnabled=function(a){a=Y.isClientEnabled(a);if(void 0===a)throw t.create("RuntimeConfigMissing");
|
|
return a};b.prototype._startServices=function(a,b,c){var e=new Ag,f=new ug(a,e),d=new yg(a),k=new Pg(a,f,e),l=new Qd(a,k,c.caches,e),p=new hg(a,l,k,e),m=new wg(k,e,c.contentFragments),q=new Wg(e,l,k,d,c.renderingHintsDelegates),r=new Ah(a,d,l,k,m,q,e,c.navigationResponseRules,b);new wf(a,d,l,p,k,e,c.cachePopulationRules);new Gg(a,r,k,e,b);b=new Zg(d,l,k,m,q,f,e);new Eg(a,b,k,e)};return b}(u);dd.init=function(f){new Ch(f)}})(this.Lightsaber=this.Lightsaber||{})})();(function(c){var d=[],e=[],f=[],g=[],h=[],b=function(a,b){Array.isArray(b)&&a.push.apply(a,b.filter(function(a){return!!a}))};c.register=function(a){b(d,a.caches);b(e,a.cachePopulationRules);b(f,a.navigationResponseRules);b(g,a.contentFragments);b(h,a.renderingHintsDelegates)};c.getConfig=function(){return{caches:d,cachePopulationRules:e,navigationResponseRules:f,contentFragments:g,renderingHintsDelegates:h}}})(this.LightsaberConfiguration=this.LightsaberConfiguration||{});(function(){LightsaberConfiguration.register({caches:[{name:"PageShell",version:3,plugins:["MaxAge","ValidationKeys","Metadata"]},{name:"CachedPage",version:1,plugins:["MaxAge","ValidationKeys","Metadata"]},{name:"CompareCopy",version:1,plugins:["MaxAge","Metadata"]}]})})();(function(){var e=function(){try{var d=JSON.parse(decodeURIComponent("%5B%7B%22name%22%3A%22search.mweb.common.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FMpUHacWg-I6k1n1.html%3FLightsaberSkeleton%3Dsearch.mweb.common.wave-pulse%22%7D%2C%7B%22name%22%3A%22search.mweb.common.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FCOIwIMzJRlzG3kA.html%3FLightsaberSkeleton%3Dsearch.mweb.common.static%22%7D%2C%7B%22name%22%3A%22search.mweb.common.no-page-shell.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F1_zTZDo3kAc4yEz.html%3FLightsaberSkeleton%3Dsearch.mweb.common.no-page-shell.wave-pulse%22%7D%2C%7B%22name%22%3A%22search.mweb.common.no-page-shell.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F3Z70JAQNutqCsaS.html%3FLightsaberSkeleton%3Dsearch.mweb.common.no-page-shell.static%22%7D%2C%7B%22name%22%3A%22search.mweb.common.no-page-shell.mobile-tags-fixed.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FkaYXXlCdnQ_RKMs.html%3FLightsaberSkeleton%3Dsearch.mweb.common.no-page-shell.mobile-tags-fixed.wave-pulse%22%7D%2C%7B%22name%22%3A%22search.mweb.common.no-page-shell.mobile-tags-fixed.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FuLXtw4X-Nglem-K.html%3FLightsaberSkeleton%3Dsearch.mweb.common.no-page-shell.mobile-tags-fixed.static%22%7D%2C%7B%22name%22%3A%22search.app.common.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FsQ1INEBCJr-WJd4.html%3FLightsaberSkeleton%3Dsearch.app.common.wave-pulse%22%7D%2C%7B%22name%22%3A%22search.app.common.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FuJi2t5mUdlUoYIk.html%3FLightsaberSkeleton%3Dsearch.app.common.static%22%7D%2C%7B%22name%22%3A%22search.app.common.no-page-shell.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FJ85eEX89jRswh78.html%3FLightsaberSkeleton%3Dsearch.app.common.no-page-shell.wave-pulse%22%7D%2C%7B%22name%22%3A%22search.app.common.no-page-shell.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FvxOvDhWO24AGOto.html%3FLightsaberSkeleton%3Dsearch.app.common.no-page-shell.static%22%7D%2C%7B%22name%22%3A%22search.app.common.no-page-shell.mobile-tags-fixed.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FddqF3q477eAOaka.html%3FLightsaberSkeleton%3Dsearch.app.common.no-page-shell.mobile-tags-fixed.wave-pulse%22%7D%2C%7B%22name%22%3A%22search.app.common.no-page-shell.mobile-tags-fixed.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FcypD9pPMGn4OeVG.html%3FLightsaberSkeleton%3Dsearch.app.common.no-page-shell.mobile-tags-fixed.static%22%7D%2C%7B%22name%22%3A%22homepage.app.common.no-page-shell.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2Flr0H5D0NTFNKQhu.html%3FLightsaberSkeleton%3Dhomepage.app.common.no-page-shell.static%22%7D%2C%7B%22name%22%3A%22homepage.app.common.no-page-shell.redesign.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FhX2cVc_FlyCSNN4.html%3FLightsaberSkeleton%3Dhomepage.app.common.no-page-shell.redesign.static%22%7D%2C%7B%22name%22%3A%22dummy.nav.parameters.test.detail.mweb.common.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FQmUzfRkY8zxm_h-.html%3FLightsaberSkeleton%3Ddummy.nav.parameters.test.detail.mweb.common.static%22%7D%2C%7B%22name%22%3A%22dummy.nav.parameters.test.detail.mweb.common.no-page-shell.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FSXGbm9cIeagthFx.html%3FLightsaberSkeleton%3Ddummy.nav.parameters.test.detail.mweb.common.no-page-shell.wave-pulse%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.wave-vertical%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FGfkLvf0tKYWr3qu.html%3FLightsaberSkeleton%3Ddetail.mweb.common.wave-vertical%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FNK4VEXsZ__9Qs0O.html%3FLightsaberSkeleton%3Ddetail.mweb.common.wave-pulse%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.wave-horizontal%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FSXBIQFKitDb1kIz.html%3FLightsaberSkeleton%3Ddetail.mweb.common.wave-horizontal%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FmoB-QMOuXuCGSxZ.html%3FLightsaberSkeleton%3Ddetail.mweb.common.static%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.no-page-shell.wave-vertical%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FhNt7h96mhzVsXZT.html%3FLightsaberSkeleton%3Ddetail.mweb.common.no-page-shell.wave-vertical%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.no-page-shell.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FUJ899vEnhbkdkl9.html%3FLightsaberSkeleton%3Ddetail.mweb.common.no-page-shell.wave-pulse%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.no-page-shell.wave-horizontal%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FJw5wBh0m6Y4N0xo.html%3FLightsaberSkeleton%3Ddetail.mweb.common.no-page-shell.wave-horizontal%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.no-page-shell.t0-reset.wave-vertical%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F3f_VZGc-m-o1mna.html%3FLightsaberSkeleton%3Ddetail.mweb.common.no-page-shell.t0-reset.wave-vertical%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.no-page-shell.t0-reset.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2Ft0fujEDRqGtu5-N.html%3FLightsaberSkeleton%3Ddetail.mweb.common.no-page-shell.t0-reset.wave-pulse%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.no-page-shell.t0-reset.wave-horizontal%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FGXeol8soQAiKuOB.html%3FLightsaberSkeleton%3Ddetail.mweb.common.no-page-shell.t0-reset.wave-horizontal%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.no-page-shell.t0-reset.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FZ1UsxIm1YNGp4FF.html%3FLightsaberSkeleton%3Ddetail.mweb.common.no-page-shell.t0-reset.static%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.no-page-shell.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FOumXTXLhJ77u9o0.html%3FLightsaberSkeleton%3Ddetail.mweb.common.no-page-shell.static%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.V2.wave-vertical%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F72Wn-hbwwR82o_u.html%3FLightsaberSkeleton%3Ddetail.mweb.common.V2.wave-vertical%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.V2.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FUljfs8MVUPrWgDZ.html%3FLightsaberSkeleton%3Ddetail.mweb.common.V2.wave-pulse%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.V2.wave-horizontal%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2Fw6078KancyK1qGR.html%3FLightsaberSkeleton%3Ddetail.mweb.common.V2.wave-horizontal%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.V2.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F3b2o3Q-K6pz-Dqq.html%3FLightsaberSkeleton%3Ddetail.mweb.common.V2.static%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.V2.no-page-shell.wave-vertical%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FbFeZxcaMTXlvkrG.html%3FLightsaberSkeleton%3Ddetail.mweb.common.V2.no-page-shell.wave-vertical%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.V2.no-page-shell.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FWk_R0wPlcTaQ_DH.html%3FLightsaberSkeleton%3Ddetail.mweb.common.V2.no-page-shell.wave-pulse%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.V2.no-page-shell.wave-horizontal%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F0Nz4LE_ozbCpKm3.html%3FLightsaberSkeleton%3Ddetail.mweb.common.V2.no-page-shell.wave-horizontal%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.V2.no-page-shell.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F-tTMooPmJrsopoH.html%3FLightsaberSkeleton%3Ddetail.mweb.common.V2.no-page-shell.static%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.V2.no-page-shell.mobile-tags-fixed.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FjtS29aXuWPBmKzk.html%3FLightsaberSkeleton%3Ddetail.mweb.common.V2.no-page-shell.mobile-tags-fixed.wave-pulse%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.V2.no-page-shell.mobile-tags-fixed.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F5gUoLFLMK9rdTeO.html%3FLightsaberSkeleton%3Ddetail.mweb.common.V2.no-page-shell.mobile-tags-fixed.static%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.V2.no-page-shell.mobile-tags-fixed.move-nodes-title-meta-to-head.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FQzCgYP2h7T7ErAo.html%3FLightsaberSkeleton%3Ddetail.mweb.common.V2.no-page-shell.mobile-tags-fixed.move-nodes-title-meta-to-head.static%22%7D%2C%7B%22name%22%3A%22detail.mweb.common.V2.move-nodes-title-meta-to-head.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FALdlfs8zdo7MOdY.html%3FLightsaberSkeleton%3Ddetail.mweb.common.V2.move-nodes-title-meta-to-head.static%22%7D%2C%7B%22name%22%3A%22detail.app.common.wave-vertical%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FW1N8Q1aZL5n3bJA.html%3FLightsaberSkeleton%3Ddetail.app.common.wave-vertical%22%7D%2C%7B%22name%22%3A%22detail.app.common.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F9Cf0ysgGhKyF-1d.html%3FLightsaberSkeleton%3Ddetail.app.common.wave-pulse%22%7D%2C%7B%22name%22%3A%22detail.app.common.wave-horizontal%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FczPW9y_Sxx96nIy.html%3FLightsaberSkeleton%3Ddetail.app.common.wave-horizontal%22%7D%2C%7B%22name%22%3A%22detail.app.common.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FoVGYuhFYHFTCdRV.html%3FLightsaberSkeleton%3Ddetail.app.common.static%22%7D%2C%7B%22name%22%3A%22detail.app.common.no-page-shell.wave-vertical%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FEWB_sw_6qf7jdKF.html%3FLightsaberSkeleton%3Ddetail.app.common.no-page-shell.wave-vertical%22%7D%2C%7B%22name%22%3A%22detail.app.common.no-page-shell.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FJ6c4Jd7NbaRf0gj.html%3FLightsaberSkeleton%3Ddetail.app.common.no-page-shell.wave-pulse%22%7D%2C%7B%22name%22%3A%22detail.app.common.no-page-shell.wave-horizontal%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FoIKclKWywLCDtL_.html%3FLightsaberSkeleton%3Ddetail.app.common.no-page-shell.wave-horizontal%22%7D%2C%7B%22name%22%3A%22detail.app.common.no-page-shell.t0-reset.wave-vertical%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FnRk5Tc_cXRc1QV8.html%3FLightsaberSkeleton%3Ddetail.app.common.no-page-shell.t0-reset.wave-vertical%22%7D%2C%7B%22name%22%3A%22detail.app.common.no-page-shell.t0-reset.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F77vZba8iqN8WKAX.html%3FLightsaberSkeleton%3Ddetail.app.common.no-page-shell.t0-reset.wave-pulse%22%7D%2C%7B%22name%22%3A%22detail.app.common.no-page-shell.t0-reset.wave-horizontal%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FWGlTDgEF0O6Pt5e.html%3FLightsaberSkeleton%3Ddetail.app.common.no-page-shell.t0-reset.wave-horizontal%22%7D%2C%7B%22name%22%3A%22detail.app.common.no-page-shell.t0-reset.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FZxJZoFhrRDfnixB.html%3FLightsaberSkeleton%3Ddetail.app.common.no-page-shell.t0-reset.static%22%7D%2C%7B%22name%22%3A%22detail.app.common.no-page-shell.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F-GregBi8p3mTCmB.html%3FLightsaberSkeleton%3Ddetail.app.common.no-page-shell.static%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.wave-vertical%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F6rLWQE7N3nkCgSz.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.wave-vertical%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FqONRNxBiOTJFx8d.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.wave-pulse%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.wave-horizontal%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FiZeU24BASDeSGN-.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.wave-horizontal%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FLNFe1CdF0Eeu8QC.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.static%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.no-page-shell.wave-vertical%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2Fkbm42lnJEid4nRn.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.no-page-shell.wave-vertical%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.no-page-shell.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2Fd6Lb3mdbYx7utO9.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.no-page-shell.wave-pulse%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.no-page-shell.wave-horizontal%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2Fwg0AfYvnakwxxcX.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.no-page-shell.wave-horizontal%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.no-page-shell.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FTrZn4Rj3u_Gvu4t.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.no-page-shell.static%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.no-page-shell.mobile-tags-fixed.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F1mN3B9t66mDarAe.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.no-page-shell.mobile-tags-fixed.wave-pulse%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.no-page-shell.mobile-tags-fixed.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2Fap31zlHyNGdtWj5.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.no-page-shell.mobile-tags-fixed.static%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.no-page-shell.mobile-tags-fixed.move-nodes-title-meta-to-head.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FAZToGzThmQbEmAI.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.no-page-shell.mobile-tags-fixed.move-nodes-title-meta-to-head.wave-pulse%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.no-page-shell.mobile-tags-fixed.move-nodes-title-meta-to-head.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FnmLPc1izmS6Pft1.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.no-page-shell.mobile-tags-fixed.move-nodes-title-meta-to-head.static%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.no-page-shell.mobile-tags-fixed.bb-move-nodes-title-meta-to-head.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F_K9iIJ5xwl9SXjf.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.no-page-shell.mobile-tags-fixed.bb-move-nodes-title-meta-to-head.static%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.move-nodes-title-meta-to-head.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2Ft6qm3j7hdHuDvxn.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.move-nodes-title-meta-to-head.wave-pulse%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.move-nodes-title-meta-to-head.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FtP1hEECsueIPAvC.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.move-nodes-title-meta-to-head.static%22%7D%2C%7B%22name%22%3A%22detail.app.common.V2.bb-move-nodes-title-meta-to-head.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F6DZJ1_Na8atNIp5.html%3FLightsaberSkeleton%3Ddetail.app.common.V2.bb-move-nodes-title-meta-to-head.static%22%7D%2C%7B%22name%22%3A%22checkout.mweb.common.no-page-shell.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2Fq4WjEHZWFOUIPm6.html%3FLightsaberSkeleton%3Dcheckout.mweb.common.no-page-shell.wave-pulse%22%7D%2C%7B%22name%22%3A%22checkout.mweb.common.no-page-shell.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FqVn906Bos0aO4JI.html%3FLightsaberSkeleton%3Dcheckout.mweb.common.no-page-shell.static%22%7D%2C%7B%22name%22%3A%22checkout.mweb.common.no-page-shell.spinner%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FKYchEGHgRnzSG4G.html%3FLightsaberSkeleton%3Dcheckout.mweb.common.no-page-shell.spinner%22%7D%2C%7B%22name%22%3A%22checkout.app.common.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FtISW75uY1B2sOnA.html%3FLightsaberSkeleton%3Dcheckout.app.common.wave-pulse%22%7D%2C%7B%22name%22%3A%22checkout.app.common.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FAkA8qBp6VJ89_WP.html%3FLightsaberSkeleton%3Dcheckout.app.common.static%22%7D%2C%7B%22name%22%3A%22checkout.app.common.spinner%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F6KtlTK8b6ysxz-l.html%3FLightsaberSkeleton%3Dcheckout.app.common.spinner%22%7D%2C%7B%22name%22%3A%22checkout.app.common.no-page-shell.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FEcJxT7ulV5Si7hX.html%3FLightsaberSkeleton%3Dcheckout.app.common.no-page-shell.wave-pulse%22%7D%2C%7B%22name%22%3A%22checkout.app.common.no-page-shell.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F2wN1C_bGYol6cIG.html%3FLightsaberSkeleton%3Dcheckout.app.common.no-page-shell.static%22%7D%2C%7B%22name%22%3A%22checkout.app.common.no-page-shell.spinner%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2F5qb-jWLYplnt5ro.html%3FLightsaberSkeleton%3Dcheckout.app.common.no-page-shell.spinner%22%7D%2C%7B%22name%22%3A%22cart.mweb.common.page-shell.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2Fye2mMq6zJQtDphr.html%3FLightsaberSkeleton%3Dcart.mweb.common.page-shell.wave-pulse%22%7D%2C%7B%22name%22%3A%22cart.mweb.common.page-shell.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FuzzZxNR0aVSmGbW.html%3FLightsaberSkeleton%3Dcart.mweb.common.page-shell.static%22%7D%2C%7B%22name%22%3A%22cart.mweb.common.no-page-shell.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FJlKhbWWI9qGtiSb.html%3FLightsaberSkeleton%3Dcart.mweb.common.no-page-shell.wave-pulse%22%7D%2C%7B%22name%22%3A%22cart.mweb.common.no-page-shell.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FEOSlkkiFaq8WWf7.html%3FLightsaberSkeleton%3Dcart.mweb.common.no-page-shell.static%22%7D%2C%7B%22name%22%3A%22cart.app.common.page-shell.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FAUAltNB1eAIRBRE.html%3FLightsaberSkeleton%3Dcart.app.common.page-shell.wave-pulse%22%7D%2C%7B%22name%22%3A%22cart.app.common.page-shell.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2Fs7mVkqz5S3pT2it.html%3FLightsaberSkeleton%3Dcart.app.common.page-shell.static%22%7D%2C%7B%22name%22%3A%22cart.app.common.no-page-shell.wave-pulse%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FiNK1DPnHPIS0TOC.html%3FLightsaberSkeleton%3Dcart.app.common.no-page-shell.wave-pulse%22%7D%2C%7B%22name%22%3A%22cart.app.common.no-page-shell.static%22%2C%22url%22%3A%22https%3A%2F%2Fm.media-amazon.com%2Fimages%2FS%2Fsash%2FtF5h323ghP29Dx9.html%3FLightsaberSkeleton%3Dcart.app.common.no-page-shell.static%22%7D%5D"))}catch(g){d=
|
|
[]}return{contentFragments:(this&&this.__spreadArray||function(d,b,e){if(e||2===arguments.length)for(var a=0,f=b.length,c;a<f;a++)!c&&a in b||(c||(c=Array.prototype.slice.call(b,0,a)),c[a]=b[a]);return d.concat(c||Array.prototype.slice.call(b))})([],d,!0)}}();LightsaberConfiguration.register(e)})();(function(){LightsaberConfiguration.register({caches:[{name:"RenderingHintsDelegate",version:1,plugins:["MaxAge","ValidationKeys","Metadata"]}],renderingHintsDelegates:[{name:"detail-page",properties:{storeLimit:500,wdgLandingImageCacheName:"RenderingHintsDelegate",wdgLandingImageCacheKey:"detail-page/wdg-landing-image",wdgLandingImageMaxAge:604800}}]})})();(function(){LightsaberConfiguration.register({cachePopulationRules:[void 0],navigationResponseRules:[void 0]})})();(function(){LightsaberConfiguration.register({cachePopulationRules:[void 0],navigationResponseRules:[void 0]})})();(function(){LightsaberConfiguration.register({cachePopulationRules:[void 0],navigationResponseRules:[void 0]})})();(function(){LightsaberConfiguration.register({cachePopulationRules:[void 0],navigationResponseRules:[void 0]})})();(function(){LightsaberConfiguration.register({cachePopulationRules:[void 0],navigationResponseRules:[void 0]})})();(function(){LightsaberConfiguration.register({cachePopulationRules:[void 0],navigationResponseRules:[void 0]})})();(function(){LightsaberConfiguration.register({cachePopulationRules:[void 0],navigationResponseRules:[void 0]})})();var AUI_JS_DEBUG=!1;(function(a){a.init=function(){}})(this.LightsaberShadow=this.LightsaberShadow||{});(function(){})();var WPN_CL_PNAFV="AmazonWebPushNotificationsClientLib-1.0.6754.0",AUI_JS_DEBUG=!1;(function(a){a.init=function(a){}})(this.WebPushNotifications=this.WebPushNotifications||{});var AUI_JS_DEBUG=!1;
|
|
(function(){var e=this&&this.__extends||function(){var b=function(c,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return b(c,a)};return function(c,a){function d(){this.constructor=c}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");b(c,a);c.prototype=null===a?Object.create(a):(d.prototype=a.prototype,
|
|
new d)}}();(function(b){function c(a){a=b.call(this,a)||this;Object.setPrototypeOf(a,c.prototype);return a}e(c,b);return c})(Error);self.addEventListener("install",function(b){AUI_JS_DEBUG&&console.log("[SW] ".concat("Installed"));b.waitUntil(self.skipWaiting())});self.addEventListener("activate",function(b){AUI_JS_DEBUG&&console.log("[SW] ".concat("Activated"));b.waitUntil(self.clients.claim())})})(); |