Mini Kabibi Habibi
(()=>{var e={929761:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}},330918:e=>{e.exports=["essentials","show_failed_discover_publish","access_platform_v3","discover_onboarding_minimal","prevent_privacy_cleanup","edit_luminance_masking","masking_duplicate_and_invert","masking_delete_all","masking_add_subtract","academy-pips-alignment","news_update","sushi_1","develop_healing_early_access","news_auto","recently_added","sort-discover-following","develop_ingest_variables","geometry_in_crop","sushi_2","figment","hindi","lens_blur","lens_blur_update_histogram_on_focus","cuttlefish","masking_error_buttons","hdr_renditions","hdr_edit_in_sdr","develop_hdr_unavailable","develop_histogram","news_multiple","point_color_overlay_tweak","academy_new_badge","develop_histogram_only_adjust","hdr_learn_more_link","develop_no_title","develop_retouch_recompute","lens_blur_playback","map_interactive","point_color_playback"]}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e={app:!0,shareType:null};window.siteCheck=()=>{console.log("Entry.app",e.app),console.log("Entry.embed",e.embed),console.log("Entry.site",e.site),console.log("Entry.sdk",e.sdk),console.log("Entry.shareType",e.shareType)};const t=e;function r(e,t,n,r,o){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}function o(e,t,n){var r="_"+t,o=n.get;if(!o)throw new Error("@Memoize can only be applied on getters.");n.get=function(){if(Object.prototype.hasOwnProperty.call(this,r))return this[r];var e=o.call(this);return this[r]=e,Object.defineProperty(this,t,{configurable:!0,value:e}),e}}var i;delete t.app,t.sdk=!0,i=/\+/g;const s={parsePathFromUrl:function(e){return e.split("#")[0].split("?")[0]},parseQueryFromUrl:function(e){var t;return null==(t=e.split("?")[1])?{}:(t=t.split("#")[0],this.parseQuery(t))},parseQuery:function(e){var t,n,r,o,s,a,c;if(0===(null!=e?e:"").length)return{};for(a={},t=0,n=(s=e.split("&")).length;t<n;t++)if(1===(o=(r=s[t]).split("=")).length)a[r]="";else{if(2!==o.length)continue;c=decodeURIComponent(o[1].replace(i," ")),a[o[0]]=c}return a}};function a(e){e.dispose?e.dispose():"function"==typeof e&&e()}class c{link(e){var t=this._disposables;return t||(t=this._disposables=[]),t.push(e),e}unlink(e){var t=this._disposables;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}disposeLink(e){this.unlink(e),a(e)}dispose(){this.isDisposed=!0;var e=this._disposables;if(e){this._disposables=null;for(var t=e.length-1;t>=0;--t)a(e[t])}}}var l="_signals";const u=Symbol("owner"),h=function(e){return null!==e};class p{constructor(e){this[u]=void 0,this[u]=e,this.handlers=[],this.nullHandlers=0}add(e){this.handlers.push(e)}remove(e){var t=this.handlers,n=t.indexOf(e);-1!==n&&(t[n]=null,this.nullHandlers++,this.nullHandlers>t.length/4&&(this.handlers=t.filter(h),this.nullHandlers=0))}trigger(){for(var e=this.handlers.slice(),t=this[u],n=0,r=e.length;n<r;++n){var o=e[n];o&&o.apply(t,arguments)}}triggerNoArgs(){for(var e=this.handlers.slice(),t=this[u],n=0,r=e.length;n<r;++n){var o=e[n];o&&o.call(t)}}triggerWithArray(e){for(var t=this.handlers.slice(),n=this[u],r=0,o=t.length;r<o;++r){var i=t[r];i&&i.apply(n,e)}}static trigger(e,t){var n=e._signals;if(n&&n[u]===e){var r=n[t];if(r)return r.triggerWithArray(Array.prototype.slice.call(arguments,2)),r}}static triggerNoArgs(e,t){var n=e._signals;if(n&&n[u]===e){var r=n[t];if(r)return r.triggerNoArgs(),r}}static on(e,t,n){var r=e._signals;r&&r[u]===e||((r={})[u]=e,Object.defineProperty(e,l,{enumerable:!1,configurable:!1,value:r}));var o=r[t];return o||(o=r[t]=new p(e)),o.handlers.push(n),o}static off(e,t,n){var r=e._signals;if(r&&r[u]===e){var o=r[t];o&&o.remove(n)}}static listenTo(e,t,n,r){var o=e._listening;o||(e._listening=o=[]);var i=function(){r.apply(e,arguments)};o.push({obj:t,name:n,method:r,handler:i}),p.on(t,n,i)}static stopListening(e,t,n,r){var o=e._listening;if(o)for(var i=0,s=o.length;i<s;){var a=o[i];t&&a.obj!==t||n&&a.name!==n||r&&a.method!==r?++i:(p.off(a.obj,a.name,a.handler),o.splice(i,1),--s)}}}var d=n(929761),f=n.n(d),g=[function(e,t){if(f()(t)){var n=t._torq_binding;if(n)return n.resolved||e.push({eventName:"update",obj:n}),n}}],m=1;const v={add(e){g.push(e),m=g.length},remove(e){var t=g.indexOf(e);-1!==t&&g.splice(t,1),m=g.length},filter(e,t){for(var n=0,r=m;n<r;++n){var o=g[n](e,t);if(o)return o.value}return t}};class y{static _isDirectClassInvocation(e){return 1===e.length&&"function"==typeof e[0]}static _isDirectPropertyInvocation(e){return 3===e.length&&e[2]&&Object.prototype.hasOwnProperty.call(e[2],"configurable")}static wrapPropertyDecorator(e,t,n){const r=y.getInitialValue(n);return delete n.value,delete n.writable,n.get=function(){if(e===this)return r;const n=y.makePropertyDecorator(r.bind(this));return Object.defineProperty(this,t,{configurable:!0,enumerable:!1,value:n}),n},n}static makePropertyDecorator(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];if(y._isDirectPropertyInvocation(r))return e.apply(this,r);if(t.throwOnClassInvocation&&y._isDirectClassInvocation(r))throw new Error(t.throwOnClassInvocation);return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.apply(this,n.concat(r))}}}static makeClassDecorator(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y._isDirectClassInvocation(n)?e.apply(this,n):function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.apply(this,r.concat(n))}}}static getInitialValue(e){return e.initializer?e.initializer():e.value}}function b(e,t,n){const r=y.getInitialValue(n);if("function"!=typeof r)throw new Error(`@Bind can only be applied to a function. (property: ${t})`);delete n.value,delete n.writable,n.get=function(){if(e===this)return r;const n=r.bind(this);return Object.defineProperty(this,t,{configurable:!0,enumerable:!1,value:n}),n}}var w=0,x="__object_id__";function _(e){if(!e||"number"==typeof e||"string"==typeof e)return e;if(!Object.prototype.hasOwnProperty.call(e,x)){var t="_"+ ++w;return Object.defineProperty(e,x,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}return e[x]}_.set=function(e,t){Object.defineProperty(e,x,{enumerable:!1,configurable:!1,writable:!1,value:t})};const E=_;var P;let k=(P=class{constructor(){this.running=!1,this.registered=!1,this.itemMap={},this.maxBucket=-1,this.buckets=[],this.bucketMap={}}register(){}push(e,t,n){var r=E(e);t=Number(t)||0;var o=this.itemMap[r];if(o){if(o.lateBinder=n,o.cancel=!1,o.priority!==t){var i=o.bucket.items,s=i.indexOf(o);i[s]=null,o.priority=t}else if(!o.executed)return;o.executed=!1}else o={callback:e,priority:t,cancel:!1,executed:!1,lateBinder:n},this.itemMap[r]=o;var a=this.bucketMap[t]||this._makeBucket(t);this.maxBucket=Math.max(this.maxBucket,a.index),o.bucket=a,a.items.push(o),this.registerIfNeeded()}_makeBucket(e){for(var t=this.buckets,n=0,r=t.length-1;n<=r;){var o=Math.round((n+r)/2);t[o].priority<e?r=o-1:n=o+1}var i=this.bucketMap[e]={priority:e,items:[],index:n};this.buckets.splice(n,0,i),n<=this.maxBucket&&++this.maxBucket;for(var s=t.length;n<s;++n)t[n].index=n;return i}wrap(e,t,n){return()=>this.push(e,t||0,n)}registerIfNeeded(){this.registered||(this.registered=!0,this.register(this.inAfterCall))}get after(){var e=this._after;return e||(e=this._after=new O(this)),e}remove(e){var t=E(e),n=this.itemMap[t];n&&(n.executed=!1,n.cancel=!0)}execHoisted(e){for(;e.length;){var t=e.pop();t.cancel||(t.executed=!0,t.callback())}}execCallbacks(e){for(var t=this.buckets;this.maxBucket>=0;){var n=t[this.maxBucket].items;if(n.length){var r=n.pop();r&&!r.cancel&&(r.lateBinder?e?e.push(r):e=[r]:(r.executed=!0,r.callback()))}else--this.maxBucket}return e}run(){if(this.maxBucket>=0){this.running=!0;for(var e=null;this.maxBucket>=0||e;)try{for(;this.maxBucket>=0||e;)(e=this.execCallbacks(e))&&(this.execHoisted(e),e=null)}catch(e){console.error(e),console.error(e.stack)}this.running=!1}this.itemMap={},this.registered=!1;var t=this._after;t&&(this.inAfterCall=!0,t.run(),this.inAfterCall=!1)}quickRun(){if(this.maxBucket>=0){this.running=!0;for(var e=null;this.maxBucket>=0||e;)(e=this.execCallbacks(e))&&(this.execHoisted(e),e=null);this.running=!1}this.itemMap={},this.registered=!1;var t=this._after;t&&(this.inAfterCall=!0,t.run(),this.inAfterCall=!1)}},r(P.prototype,"register",[function(e,t,n){"function"==typeof n.get?n.get=function(){throw new Error(`Abstract getter ${t} called on ${e.constructor.name}`)}:"function"==typeof n.set?n.set=function(){throw new Error(`Abstract setter ${t} called on ${e.constructor.name}`)}:(n.writable=!0,n.value=function(){throw new Error(`Abstract method ${t} called on ${e.constructor.name}`)})}],Object.getOwnPropertyDescriptor(P.prototype,"register"),P.prototype),r(P.prototype,"run",[b],Object.getOwnPropertyDescriptor(P.prototype,"run"),P.prototype),r(P.prototype,"quickRun",[b],Object.getOwnPropertyDescriptor(P.prototype,"quickRun"),P.prototype),P);class O extends k{constructor(e){super(),this.parent=e}register(){this.parent.registerIfNeeded()}}var j;let T=(r((j=class extends k{constructor(e,t,n){super(),this.parent=e,this.name=t,this.priority=n}enqueue(){this.parent.push(this.run,this.priority)}register(e){e?this.parent.after.push(this.enqueue):this.enqueue()}}).prototype,"enqueue",[b],Object.getOwnPropertyDescriptor(j.prototype,"enqueue"),j.prototype),j);const C=window,A=C.performance&&C.performance.now?()=>performance.now():Date.now?()=>Date.now():()=>(new Date).getTime();var S,R=function(e){setTimeout(e,0)},D=C.requestAnimationFrame||C.webkitRequestAnimationFrame||C.mozRequestAnimationFrame||R,M=D;const L=new T(new(r((S=class extends k{constructor(){super(...arguments),this.tickTime=A()}get background(){return M===R}set background(e){M=e?R:D}register(){M.call(C,this.run)}request(e){M.call(C,e)}wrapAll(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.forEach((t=>e[t]=this.wrap(e[t].bind(e))))}wrap(e){return()=>this.push(e)}tick(){A()-this.tickTime>=5&&this.run()}run(){this.tickTime=A(),super.run.call(this)}}).prototype,"run",[b],Object.getOwnPropertyDescriptor(S.prototype,"run"),S.prototype),S),"UI Task Queue",100);class N{static log(){console.log.apply(console,arguments)}static assert(){console.assert.apply(console,arguments)}static table(){console.table.apply(console,arguments)}static groupStart(){console.group.apply(console,arguments)}static groupEnd(){console.groupEnd.apply(console,arguments)}}var z,I,H=v.filter,U={},B=[],q=!1;const F=function(){};let G=(W={FirstExecutionMarker:U},I=class e extends c{static pushMutator(t){e.mutatorsStack.push(e.mutator),e.mutator=t}static popMutator(t){e.mutator===t?e.mutator=e.mutatorsStack.pop():console.error("Trying to pop a mutator that is not in the top of the stack")}static run(t,n,r){var o=e.active;e.active=t;var i=r&&r.track;i&&(t.track=r,N.groupStart("Running "+(r.name||"bindings")));try{return n.call(r)}finally{i&&(N.groupEnd("Running "+(r.name||"binder")),t.track=null),e.active=o}}static recordEvent(t,n){var r=e.active;if(r){if(r.track){let e=E(t)+"-"+(t.constructor?t.constructor.name:"Anonymous");N.log("Recording",e,n)}r.push({obj:t,eventName:n})}}static recordChange(t,n,r,o){p.trigger(t,n);var i=e.mutator;i&&i.record(t,n,r,o)}constructor(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:L,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;var a;if(super(),this.previousValue=U,this.bindings=[],this.dirty=!!r,this.disposableParent=s,this.valueGetter="function"==typeof(a=t)?a:"object"==typeof a&&"function"==typeof a.get?a.get:F,this.set=function(e){return"object"==typeof e&&"function"==typeof e.set?e.set:F}(t),this.callback=n||F,o&&o instanceof k){var c=o,l=this.apply.bind(this);o=()=>c.push(l,i)}this.invalidate=()=>{if(e.active!==this){if(this.track){var t=new Error;Error.captureStackTrace(t),N.log("change detected",window._signal,t.stack)}o?(this.dirty=!0,o()):this.compute()}},r?this.get():this.compute()}removeBindings(){var e=this.bindings;if(e){for(var t=this.invalidate,n=0,r=e.length;n<r;++n){var o=e[n];o.ref.remove(t),o.dispose&&o.dispose()}this.bindings=null}}dispose(){this.removeBindings(),super.dispose()}update(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];var n=this.previousValue;if(n===U||n!==e)return this.previousValue=e,t&&this.callback(e),!0}apply(){if(!this.isDisposed&&this.dirty)return this.compute()}_computeInnerValue(){this.dirty=!1,this.removeBindings();var t=this.disposableParent;if(!t||!t.isDisposed){q&&(B=[]),q=!0;var n=B,r=e.run(n,this.valueGetter,this);if(r=H(n,r),q=!1,!n.length)return r;B=[];var o=this.invalidate;for(let e=0,t=n.length;e<t;++e){let t=n[e];t.ref=p.on(t.obj,t.eventName,o)}return this.bindings=n,r}}compute(){var e=this._computeInnerValue();return this.update(e,!0)}get(){var e=this._computeInnerValue();return this.update(e,!1),e}},I.mutatorsStack=[],I.active=null,I.mutator=null,$=z=I,void(W&&Object.assign($.prototype,W))||z);var $,W,V;class K{}let X=(r((V=class extends G{update(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{previousValue:n}=this;return n===e?!!this.lengthChanged&&(this.lengthChanged=!1,t&&this.invokeCallback(e),!0):(n===this.FirstExecutionMarker?this.previousValue=e:n&&"object"==typeof n&&p.stopListening(this,n),this.lengthChanged=!1,e&&"object"==typeof e&&p.listenTo(this,e,"change",this.onLengthChanged),t&&this.invokeCallback(e),!0)}onLengthChanged(){this.lengthChanged=!0,this.invalidate()}invokeCallback(e){e instanceof K?this.callback(e.base):this.callback(e)}}).prototype,"onLengthChanged",[b],Object.getOwnPropertyDescriptor(V.prototype,"onLengthChanged"),V.prototype),V);const J=function(){};class Q extends c{watch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:L,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.$_depth||0;return this.link(new G(e,t,n,r,o,this))}watchCollection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:L,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.$_depth||0;return this.link(new X(e,t,n,r,o,this))}multiWatch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:L,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.$_depth||0;return this.link(new G((()=>e.map((e=>e()))),(e=>t.apply(null,e)),n,r,o,this))}defineObservable(e,t){if(Object.prototype.hasOwnProperty.call(this,e))this[e]=t;else{var n="_"+e;this[n]=t;var r=this;Object.defineProperty(this,e,{configurable:!0,enumerable:!1,get:()=>(G.active&&G.recordEvent(r,e),r[n]),set(t){var o=r[n];o!==t&&(r[n]=t,G.recordChange(r,e,t,o))}})}}dispose(){this.stopListening(),super.dispose()}trigger(e){if(Object.prototype.hasOwnProperty.call(this,l)){var t=this._signals[e];if(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t.trigger.apply(t,r)}}}on(e,t){return p.on(this,e,t)}off(e,t){return p.off(this,e,t)}listenTo(e,t,n){return p.listenTo(this,e,t,n)}stopListening(e,t,n){return p.stopListening(this,e,t,n)}}const Y=new class{constructor(){this.token=!1,this.environment="prod",this.clientId="PhotoSDK3rdParty1",this.ozHost="https://photos.adobe.io"}};class Z extends Promise{constructor(e){var t={resolved:!1,value:void 0};t.obj=t,super(((n,r)=>{const o=e=>{t.resolved=!0,t.value=e,p.trigger(t,"update")};e((e=>{o(e),n(e)}),(e=>{o(null),r(e)}))})),this._torq_binding=t}}class ee{constructor(){this.promise=new Z(((e,t)=>this._deferredApi={resolve:e,reject:t}))}resolve(e){this._deferredApi.resolve(e)}reject(e){this._deferredApi.reject(e)}}const te=new class{set session(e){Y.token=e.accessToken,Y.clientId=e.apiKey,Y.ozHost=e.host}getOzUrlP(e,t,n){return this.requestOzUrlP("GET",e,t,void 0,n)}requestOzUrlP(e,t,n,r,o){var i=new ee,s=new XMLHttpRequest;if(/^http/.test(t)||(Y.ozHost||console.error("Please initialize OzProvider with an ozHost"),t=`${Y.ozHost}${t}`),s.open(e,t,!0),s.setRequestHeader("x-api-key",Y.clientId),s.setRequestHeader("x-creativesdk-versions","CreativeSDK/0.1.<development>"),s.setRequestHeader("Authorization",`Bearer ${Y.token}`),r)for(const[e,t]of Object.entries(r))s.setRequestHeader(e,t);return n&&(s.responseType=n),s.onload=()=>{if(200<=s.status&&s.status<300){var e={response:s.response,contentType:s.getResponseHeader("content-type"),type:s.responseType};if("application/json"===e.contentType||"application/json;charset=utf-8"===e.contentType)try{e.responseObject=JSON.parse(this._trimWhileExpression(s.responseText))}catch(e){return console.log("Failed JSON Parse"),console.log("URL",t),console.log("Response",s.responseText),void i.reject("Failed JSON Parse")}""!==s.responseType&&"text"!==s.responseType||(e.responseText=s.responseText),i.resolve(e)}else i.reject(s.status)},o&&o.then((()=>{s.abort(),i.reject("aborted")})),s.onerror=()=>{var e=`XHR call to Oz failed with status ${s.status}`;i.reject(e),console.error(e)},s.send(),i.promise}_trimWhileExpression(e){return e.replace(/^while\s*\(\s*1\s*\)\s*{\s*}\s*/,"")}};var ne,re=s.parseQueryFromUrl(window.location.href),oe=re.session,ie=re.count||0;let se=(ne=class extends Q{constructor(){super(),this.reset()}reset(){this.messages=[],this.timings=[],this.collectors=[],this.attributes={browseCount:ie}}addCollector(e){for(const[t,n]of Object.entries(this.attributes))e.setAttribute(t,n);this.collectors.push(e)}_callCollectorMethods(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.collectors.forEach((t=>t[e](...n)))}setAttribute(e,t){this.attributes[e]!==t&&(this._callCollectorMethods("setAttribute",e,t),this.attributes[e]=t)}noticeError(e){e||(e=new Error("Unknown error")),this._callCollectorMethods("noticeError",e)}report(e,t){this._callCollectorMethods("report",e,t)}reportApiCall(e,t){this._callCollectorMethods("reportApiCall",e,t)}beginTiming(e){this.timings[e]=performance.now()}reportWithTiming(e,t){var n=this.timings[e];if(n){var r=performance.now(),o=r-n;this._callCollectorMethods("reportTimed",e,n,r,o,t),delete this.timings[e]}else this.report(e,t)}get sessionGuid(){return oe||this.generateGUID()}generateGUID(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}getUserGuidP(e){if(!this.guidPromise){let t=("prod"===e.environment?"https://photos.adobe.io":"https://photos-stage.adobe.io")+"/v2/accounts/00000000000000000000000000000000";this.guidPromise=te.getOzUrlP(t).then((e=>`${e.responseObject.wcd_guid}@AdobeID`)).catch((e=>"UnknownUserGuid"))}return this.guidPromise}},r(ne.prototype,"sessionGuid",[o],Object.getOwnPropertyDescriptor(ne.prototype,"sessionGuid"),ne.prototype),ne);const ae=new se;class ce{constructor(){this.attributes=[],ae.addCollector(this)}setAttribute(e,t){console.log(`Analytics Set Atribute ${e}=${t}`),this.attributes[e]=t}noticeError(e){console.error("Analytics Error",e)}report(e,t){console.log("Analytics Action",e,Object.assign({},t,this.attributes))}reportTimed(e,t,n,r,o){console.log("Analytics Timing",e,r,Object.assign({},o,this.attributes))}reportApiCall(e,t){console.log("Analytics API Call",e,Object.assign({},t,this.attributes))}}const le=G.recordEvent,ue=G.recordChange,he={defaultValue:!0};class pe extends K{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;super(),this._swapItems(e)}_swapItems(e){if(e instanceof Set)this.base=e;else{if("function"!=typeof e[Symbol.iterator])throw new Error("ObservableSet expects either a Set object or an iterable object.");this.base=new Set(e)}}swapItems(e){this._swapItems(e),p.trigger(this,"change")}get size(){return G.active&&G.recordEvent(this,"change"),this.base.size}get length(){return this.size}[Symbol.iterator](){return this.base.values()}}var de=Set.prototype,fe=pe.prototype,ge=["add","clear","delete"];function me(e,t){return t?function(){var t=e.apply(this.base,arguments);return p.trigger(this,"change"),t}:function(){return G.active&&G.recordEvent(this,"change"),e.apply(this.base,arguments)}}for(var ve=Object.getOwnPropertyNames(de),ye=0,be=ve.length;ye<be;++ye){var we=ve[ye];Object.prototype.hasOwnProperty.call(fe,we)||(fe[we]=me(de[we],-1!==ge.indexOf(we)))}var xe,_e,Ee=n(330918),Pe=n.n(Ee);const ke=new(_e=r((xe=class{constructor(){var e;(e=_e)&&Object.defineProperty(this,"features",{enumerable:e.enumerable,configurable:e.configurable,writable:e.writable,value:e.initializer?e.initializer.call(this):void 0});const{features:t}=this;for(const e of Pe())t.add(e);{var n;const e=null!==(n=window.MidwayFeatures)&&void 0!==n?n:window.PageResources?.features.enabled_features;if(e)for(const[t,n]of Object.entries(e))this._override(t,n)}}is_enabled(e){return this.features.has(e)}all_enabled(){return Array.from(this.features)}prerelease_enabled(){return!0===window?.PageResources?.features.prerelease}prerelease_features(){return window?.PageResources?.features.prerelease_hash}_override(e,t){"string"!=typeof e||e.length<1||(t?this.features.add(e):this.features.delete(e))}}).prototype,"features",[function(e,t,n){const r="_"+t,o=n.initializer;if(o)Object.defineProperty(e,r,{configurable:!0,enumerable:!1,writable:!0,value:he});else if(e[r]===he)return{configurable:!0,enumerable:!1,get(){return delete e[t],this[t]},set(n){delete e[t],this[t]=n}};var i=e.definedObservables;return Object.prototype.hasOwnProperty.call(e,"definedObservables")||(i=i?Object.assign({},i):{},Object.defineProperty(e,"definedObservables",{configurable:!0,enumerable:!1,writable:!0,value:i})),i[t]=!0,{configurable:!0,enumerable:!1,get(){G.active&&le(this,t);var e=this[r];return e===he&&(e=this[r]=o.call(this)),e},set(e){var n=this[r];n===he&&(n=this[r]=o.call(this)),n!==e&&(this[r]=e,ue(this,t,e,n))}}}],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new pe}}),xe);window.Feature=ke;const Oe=ke;var je;const Te=new(r((je=class extends k{register(){"loading"!==document.readyState?setTimeout(this.run,0):document.addEventListener("DOMContentLoaded",this.exec)}exec(){this.run()}}).prototype,"exec",[b],Object.getOwnPropertyDescriptor(je.prototype,"exec"),je.prototype),je);var Ce;const Ae='<!DOCTYPE html>\n<html>\n <head>\n <meta charset="utf-8">\n <title></title>\n <script id="lr-organizer-nr-snippet" type="text/javascript">\n window.NREUM||(NREUM={}),__nr_require=function(t,e,n){function r(n){if(!e[n]){var o=e[n]={exports:{}};t[n][0].call(o.exports,function(e){var o=t[n][1][e];return r(o||e)},o,o.exports)}return e[n].exports}if("function"==typeof __nr_require)return __nr_require;for(var o=0;o<n.length;o++)r(n[o]);return r}({1:[function(t,e,n){function r(t){try{c.console&&console.log(t)}catch(e){}}var o,i=t("ee"),a=t(19),c={};try{o=localStorage.getItem("__nr_flags").split(","),console&&"function"==typeof console.log&&(c.console=!0,o.indexOf("dev")!==-1&&(c.dev=!0),o.indexOf("nr_dev")!==-1&&(c.nrDev=!0))}catch(s){}c.nrDev&&i.on("internal-error",function(t){r(t.stack)}),c.dev&&i.on("fn-err",function(t,e,n){r(n.stack)}),c.dev&&(r("NR AGENT IN DEVELOPMENT MODE"),r("flags: "+a(c,function(t,e){return t}).join(", ")))},{}],2:[function(t,e,n){function r(t,e,n,r,o){try{h?h-=1:i("err",[o||new UncaughtException(t,e,n)])}catch(c){try{i("ierr",[c,(new Date).getTime(),!0])}catch(s){}}return"function"==typeof f&&f.apply(this,a(arguments))}function UncaughtException(t,e,n){this.message=t||"Uncaught error with no additional information",this.sourceURL=e,this.line=n}function o(t){i("err",[t,(new Date).getTime()])}var i=t("handle"),a=t(20),c=t("ee"),s=t("loader"),f=window.onerror,u=!1,h=0;s.features.err=!0,t(1),window.onerror=r;try{throw new Error}catch(d){"stack"in d&&(t(12),t(11),"addEventListener"in window&&t(6),s.xhrWrappable&&t(13),u=!0)}c.on("fn-start",function(t,e,n){u&&(h+=1)}),c.on("fn-err",function(t,e,n){u&&(this.thrown=!0,o(n))}),c.on("fn-end",function(){u&&!this.thrown&&h>0&&(h-=1)}),c.on("internal-error",function(t){i("ierr",[t,(new Date).getTime(),!0])})},{}],3:[function(t,e,n){t("loader").features.ins=!0},{}],4:[function(t,e,n){function r(){j++,S=y.hash,this[u]=Date.now()}function o(){j--,y.hash!==S&&i(0,!0);var t=Date.now();this[l]=~~this[l]+t-this[u],this[h]=t}function i(t,e){x.emit("newURL",[""+y,e])}function a(t,e){t.on(e,function(){this[e]=Date.now()})}var c="-start",s="-end",f="-body",u="fn"+c,h="fn"+s,d="cb"+c,p="cb"+s,l="jsTime",m="fetch",v="addEventListener",w=window,y=w.location;if(w[v]){var g=t(9),b=t(10),x=t(8),E=t(6),T=t(12),O=t(7),R=t(13),P=t("ee"),D=P.get("tracer");t(14),t("loader").features.spa=!0;var S,N=w[v],j=0;P.on(u,r),P.on(d,r),P.on(h,o),P.on(p,o),P.buffer([u,h,"xhr-done","xhr-resolved"]),E.buffer([u]),T.buffer(["setTimeout"+s,"clearTimeout"+c,u]),R.buffer([u,"new-xhr","send-xhr"+c]),O.buffer([m+c,m+"-done",m+f+c,m+f+s]),x.buffer(["newURL"]),g.buffer([u]),b.buffer(["propagate",d,p,"executor-err","resolve"+c]),D.buffer([u,"no-"+u]),a(R,"send-xhr"+c),a(P,"xhr-resolved"),a(P,"xhr-done"),a(O,m+c),a(O,m+"-done"),x.on("pushState-end",i),x.on("replaceState-end",i),N("hashchange",i,!0),N("load",i,!0),N("popstate",function(){i(0,j>1)},!0)}},{}],5:[function(t,e,n){function r(t){}if(window.performance&&window.performance.timing&&window.performance.getEntriesByType){var o=t("ee"),i=t("handle"),a=t(12),c=t(11),s="learResourceTimings",f="addEventListener",u="resourcetimingbufferfull",h="bstResource",d="resource",p="-start",l="-end",m="fn"+p,v="fn"+l,w="bstTimer",y="pushState";t("loader").features.stn=!0,t(8);var g=NREUM.o.EV;o.on(m,function(t,e){var n=t[0];n instanceof g&&(this.bstStart=Date.now())}),o.on(v,function(t,e){var n=t[0];n instanceof g&&i("bst",[n,e,this.bstStart,Date.now()])}),a.on(m,function(t,e,n){this.bstStart=Date.now(),this.bstType=n}),a.on(v,function(t,e){i(w,[e,this.bstStart,Date.now(),this.bstType])}),c.on(m,function(){this.bstStart=Date.now()}),c.on(v,function(t,e){i(w,[e,this.bstStart,Date.now(),"requestAnimationFrame"])}),o.on(y+p,function(t){this.time=Date.now(),this.startPath=location.pathname+location.hash}),o.on(y+l,function(t){i("bstHist",[location.pathname+location.hash,this.startPath,this.time])}),f in window.performance&&(window.performance["c"+s]?window.performance[f](u,function(t){i(h,[window.performance.getEntriesByType(d)]),window.performance["c"+s]()},!1):window.performance[f]("webkit"+u,function(t){i(h,[window.performance.getEntriesByType(d)]),window.performance["webkitC"+s]()},!1)),document[f]("scroll",r,{passive:!0}),document[f]("keypress",r,!1),document[f]("click",r,!1)}},{}],6:[function(t,e,n){function r(t){for(var e=t;e&&!e.hasOwnProperty(u);)e=Object.getPrototypeOf(e);e&&o(e)}function o(t){c.inPlace(t,[u,h],"-",i)}function i(t,e){return t[1]}var a=t("ee").get("events"),c=t(21)(a,!0),s=t("gos"),f=XMLHttpRequest,u="addEventListener",h="removeEventListener";e.exports=a,"getPrototypeOf"in Object?(r(document),r(window),r(f.prototype)):f.prototype.hasOwnProperty(u)&&(o(window),o(f.prototype)),a.on(u+"-start",function(t,e){var n=t[1],r=s(n,"nr@wrapped",function(){function t(){if("function"==typeof n.handleEvent)return n.handleEvent.apply(n,arguments)}var e={object:t,"function":n}[typeof n];return e?c(e,"fn-",null,e.name||"anonymous"):n});this.wrapped=t[1]=r}),a.on(h+"-start",function(t){t[1]=this.wrapped||t[1]})},{}],7:[function(t,e,n){function r(t,e,n){var r=t[e];"function"==typeof r&&(t[e]=function(){var t=r.apply(this,arguments);return o.emit(n+"start",arguments,t),t.then(function(e){return o.emit(n+"end",[null,e],t),e},function(e){throw o.emit(n+"end",[e],t),e})})}var o=t("ee").get("fetch"),i=t(19);e.exports=o;var a=window,c="fetch-",s=c+"body-",f=["arrayBuffer","blob","json","text","formData"],u=a.Request,h=a.Response,d=a.fetch,p="prototype";u&&h&&d&&(i(f,function(t,e){r(u[p],e,s),r(h[p],e,s)}),r(a,"fetch",c),o.on(c+"end",function(t,e){var n=this;e?e.clone().arrayBuffer().then(function(t){n.rxSize=t.byteLength,o.emit(c+"done",[null,e],n)}):o.emit(c+"done",[t],n)}))},{}],8:[function(t,e,n){var r=t("ee").get("history"),o=t(21)(r);e.exports=r,o.inPlace(window.history,["pushState","replaceState"],"-")},{}],9:[function(t,e,n){var r=t("ee").get("mutation"),o=t(21)(r),i=NREUM.o.MO;e.exports=r,i&&(window.MutationObserver=function(t){return this instanceof i?new i(o(t,"fn-")):i.apply(this,arguments)},MutationObserver.prototype=i.prototype)},{}],10:[function(t,e,n){function r(t){var e=a.context(),n=c(t,"executor-",e),r=new f(n);return a.context(r).getCtx=function(){return e},a.emit("new-promise",[r,e],e),r}function o(t,e){return e}var i=t(21),a=t("ee").get("promise"),c=i(a),s=t(19),f=NREUM.o.PR;e.exports=a,f&&(window.Promise=r,["all","race"].forEach(function(t){var e=f[t];f[t]=function(n){function r(t){return function(){a.emit("propagate",[null,!o],i),o=o||!t}}var o=!1;s(n,function(e,n){Promise.resolve(n).then(r("all"===t),r(!1))});var i=e.apply(f,arguments),c=f.resolve(i);return c}}),["resolve","reject"].forEach(function(t){var e=f[t];f[t]=function(t){var n=e.apply(f,arguments);return t!==n&&a.emit("propagate",[t,!0],n),n}}),f.prototype["catch"]=function(t){return this.then(null,t)},f.prototype=Object.create(f.prototype,{constructor:{value:r}}),s(Object.getOwnPropertyNames(f),function(t,e){try{r[e]=f[e]}catch(n){}}),a.on("executor-start",function(t){t[0]=c(t[0],"resolve-",this),t[1]=c(t[1],"resolve-",this)}),a.on("executor-err",function(t,e,n){t[1](n)}),c.inPlace(f.prototype,["then"],"then-",o),a.on("then-start",function(t,e){this.promise=e,t[0]=c(t[0],"cb-",this),t[1]=c(t[1],"cb-",this)}),a.on("then-end",function(t,e,n){this.nextPromise=n;var r=this.promise;a.emit("propagate",[r,!0],n)}),a.on("cb-end",function(t,e,n){a.emit("propagate",[n,!0],this.nextPromise)}),a.on("propagate",function(t,e,n){this.getCtx&&!e||(this.getCtx=function(){if(t instanceof Promise)var e=a.context(t);return e&&e.getCtx?e.getCtx():this})}),r.toString=function(){return""+f})},{}],11:[function(t,e,n){var r=t("ee").get("raf"),o=t(21)(r),i="equestAnimationFrame";e.exports=r,o.inPlace(window,["r"+i,"mozR"+i,"webkitR"+i,"msR"+i],"raf-"),r.on("raf-start",function(t){t[0]=o(t[0],"fn-")})},{}],12:[function(t,e,n){function r(t,e,n){t[0]=a(t[0],"fn-",null,n)}function o(t,e,n){this.method=n,this.timerDuration="number"==typeof t[1]?t[1]:0,t[0]=a(t[0],"fn-",this,n)}var i=t("ee").get("timer"),a=t(21)(i),c="setTimeout",s="setInterval",f="clearTimeout",u="-start",h="-";e.exports=i,a.inPlace(window,[c,"setImmediate"],c+h),a.inPlace(window,[s],s+h),a.inPlace(window,[f,"clearImmediate"],f+h),i.on(s+u,r),i.on(c+u,o)},{}],13:[function(t,e,n){function r(t,e){h.inPlace(e,["onreadystatechange"],"fn-",c)}function o(){var t=this,e=u.context(t);t.readyState>3&&!e.resolved&&(e.resolved=!0,u.emit("xhr-resolved",[],t)),h.inPlace(t,v,"fn-",c)}function i(t){w.push(t),l&&(g=-g,b.data=g)}function a(){for(var t=0;t<w.length;t++)r([],w[t]);w.length&&(w=[])}function c(t,e){return e}function s(t,e){for(var n in t)e[n]=t[n];return e}t(6);var f=t("ee"),u=f.get("xhr"),h=t(21)(u),d=NREUM.o,p=d.XHR,l=d.MO,m="readystatechange",v=["onload","onerror","onabort","onloadstart","onloadend","onprogress","ontimeout"],w=[];e.exports=u;var y=window.XMLHttpRequest=function(t){var e=new p(t);try{u.emit("new-xhr",[e],e),e.addEventListener(m,o,!1)}catch(n){try{u.emit("internal-error",[n])}catch(r){}}return e};if(s(p,y),y.prototype=p.prototype,h.inPlace(y.prototype,["open","send"],"-xhr-",c),u.on("send-xhr-start",function(t,e){r(t,e),i(e)}),u.on("open-xhr-start",r),l){var g=1,b=document.createTextNode(g);new l(a).observe(b,{characterData:!0})}else f.on("fn-end",function(t){t[0]&&t[0].type===m||a()})},{}],14:[function(t,e,n){function r(t){var e=this.params,n=this.metrics;if(!this.ended){this.ended=!0;for(var r=0;r<h;r++)t.removeEventListener(u[r],this.listener,!1);if(!e.aborted){if(n.duration=(new Date).getTime()-this.startTime,4===t.readyState){e.status=t.status;var i=o(t,this.lastSize);if(i&&(n.rxSize=i),this.sameOrigin){var a=t.getResponseHeader("X-NewRelic-App-Data");a&&(e.cat=a.split(", ").pop())}}else e.status=0;n.cbTime=this.cbTime,f.emit("xhr-done",[t],t),c("xhr",[e,n,this.startTime])}}}function o(t,e){var n=t.responseType;if("json"===n&&null!==e)return e;var r="arraybuffer"===n||"blob"===n||"json"===n?t.response:t.responseText;return l(r)}function i(t,e){var n=s(e),r=t.params;r.host=n.hostname+":"+n.port,r.pathname=n.pathname,t.sameOrigin=n.sameOrigin}var a=t("loader");if(a.xhrWrappable){var c=t("handle"),s=t(15),f=t("ee"),u=["load","error","abort","timeout"],h=u.length,d=t("id"),p=t(18),l=t(17),m=window.XMLHttpRequest;a.features.xhr=!0,t(13),f.on("new-xhr",function(t){var e=this;e.totalCbs=0,e.called=0,e.cbTime=0,e.end=r,e.ended=!1,e.xhrGuids={},e.lastSize=null,p&&(p>34||p<10)||window.opera||t.addEventListener("progress",function(t){e.lastSize=t.loaded},!1)}),f.on("open-xhr-start",function(t){this.params={method:t[0]},i(this,t[1]),this.metrics={}}),f.on("open-xhr-end",function(t,e){"loader_config"in NREUM&&"xpid"in NREUM.loader_config&&this.sameOrigin&&e.setRequestHeader("X-NewRelic-ID",NREUM.loader_config.xpid)}),f.on("send-xhr-start",function(t,e){var n=this.metrics,r=t[0],o=this;if(n&&r){var i=l(r);i&&(n.txSize=i)}this.startTime=(new Date).getTime(),this.listener=function(t){try{"abort"===t.type&&(o.params.aborted=!0),("load"!==t.type||o.called===o.totalCbs&&(o.onloadCalled||"function"!=typeof e.onload))&&o.end(e)}catch(n){try{f.emit("internal-error",[n])}catch(r){}}};for(var a=0;a<h;a++)e.addEventListener(u[a],this.listener,!1)}),f.on("xhr-cb-time",function(t,e,n){this.cbTime+=t,e?this.onloadCalled=!0:this.called+=1,this.called!==this.totalCbs||!this.onloadCalled&&"function"==typeof n.onload||this.end(n)}),f.on("xhr-load-added",function(t,e){var n=""+d(t)+!!e;this.xhrGuids&&!this.xhrGuids[n]&&(this.xhrGuids[n]=!0,this.totalCbs+=1)}),f.on("xhr-load-removed",function(t,e){var n=""+d(t)+!!e;this.xhrGuids&&this.xhrGuids[n]&&(delete this.xhrGuids[n],this.totalCbs-=1)}),f.on("addEventListener-end",function(t,e){e instanceof m&&"load"===t[0]&&f.emit("xhr-load-added",[t[1],t[2]],e)}),f.on("removeEventListener-end",function(t,e){e instanceof m&&"load"===t[0]&&f.emit("xhr-load-removed",[t[1],t[2]],e)}),f.on("fn-start",function(t,e,n){e instanceof m&&("onload"===n&&(this.onload=!0),("load"===(t[0]&&t[0].type)||this.onload)&&(this.xhrCbStart=(new Date).getTime()))}),f.on("fn-end",function(t,e){this.xhrCbStart&&f.emit("xhr-cb-time",[(new Date).getTime()-this.xhrCbStart,this.onload,e],e)})}},{}],15:[function(t,e,n){e.exports=function(t){var e=document.createElement("a"),n=window.location,r={};e.href=t,r.port=e.port;var o=e.href.split("://");!r.port&&o[1]&&(r.port=o[1].split("/")[0].split("@").pop().split(":")[1]),r.port&&"0"!==r.port||(r.port="https"===o[0]?"443":"80"),r.hostname=e.hostname||n.hostname,r.pathname=e.pathname,r.protocol=o[0],"/"!==r.pathname.charAt(0)&&(r.pathname="/"+r.pathname);var i=!e.protocol||":"===e.protocol||e.protocol===n.protocol,a=e.hostname===document.domain&&e.port===n.port;return r.sameOrigin=i&&(!e.hostname||a),r}},{}],16:[function(t,e,n){function r(){}function o(t,e,n){return function(){return i(t,[(new Date).getTime()].concat(c(arguments)),e?null:this,n),e?void 0:this}}var i=t("handle"),a=t(19),c=t(20),s=t("ee").get("tracer"),f=NREUM;"undefined"==typeof window.newrelic&&(newrelic=f);var u=["setPageViewName","setCustomAttribute","setErrorHandler","finished","addToTrace","inlineHit","addRelease"],h="api-",d=h+"ixn-";a(u,function(t,e){f[e]=o(h+e,!0,"api")}),f.addPageAction=o(h+"addPageAction",!0),f.setCurrentRouteName=o(h+"routeName",!0),e.exports=newrelic,f.interaction=function(){return(new r).get()};var p=r.prototype={createTracer:function(t,e){var n={},r=this,o="function"==typeof e;return i(d+"tracer",[Date.now(),t,n],r),function(){if(s.emit((o?"":"no-")+"fn-start",[Date.now(),r,o],n),o)try{return e.apply(this,arguments)}finally{s.emit("fn-end",[Date.now()],n)}}}};a("setName,setAttribute,save,ignore,onEnd,getContext,end,get".split(","),function(t,e){p[e]=o(d+e)}),newrelic.noticeError=function(t){"string"==typeof t&&(t=new Error(t)),i("err",[t,(new Date).getTime()])}},{}],17:[function(t,e,n){e.exports=function(t){if("string"==typeof t&&t.length)return t.length;if("object"==typeof t){if("undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&t.byteLength)return t.byteLength;if("undefined"!=typeof Blob&&t instanceof Blob&&t.size)return t.size;if(!("undefined"!=typeof FormData&&t instanceof FormData))try{return JSON.stringify(t).length}catch(e){return}}}},{}],18:[function(t,e,n){var r=0,o=navigator.userAgent.match(/Firefox[\\/\\s](\\d+\\.\\d+)/);o&&(r=+o[1]),e.exports=r},{}],19:[function(t,e,n){function r(t,e){var n=[],r="",i=0;for(r in t)o.call(t,r)&&(n[i]=e(r,t[r]),i+=1);return n}var o=Object.prototype.hasOwnProperty;e.exports=r},{}],20:[function(t,e,n){function r(t,e,n){e||(e=0),"undefined"==typeof n&&(n=t?t.length:0);for(var r=-1,o=n-e||0,i=Array(o<0?0:o);++r<o;)i[r]=t[e+r];return i}e.exports=r},{}],21:[function(t,e,n){function r(t){return!(t&&t instanceof Function&&t.apply&&!t[a])}var o=t("ee"),i=t(20),a="nr@original",c=Object.prototype.hasOwnProperty,s=!1;e.exports=function(t,e){function n(t,e,n,o){function nrWrapper(){var r,a,c,s;try{a=this,r=i(arguments),c="function"==typeof n?n(r,a):n||{}}catch(f){d([f,"",[r,a,o],c])}u(e+"start",[r,a,o],c);try{return s=t.apply(a,r)}catch(h){throw u(e+"err",[r,a,h],c),h}finally{u(e+"end",[r,a,s],c)}}return r(t)?t:(e||(e=""),nrWrapper[a]=t,h(t,nrWrapper),nrWrapper)}function f(t,e,o,i){o||(o="");var a,c,s,f="-"===o.charAt(0);for(s=0;s<e.length;s++)c=e[s],a=t[c],r(a)||(t[c]=n(a,f?c+o:o,i,c))}function u(n,r,o){if(!s||e){var i=s;s=!0;try{t.emit(n,r,o)}catch(a){d([a,n,r,o])}s=i}}function h(t,e){if(Object.defineProperty&&Object.keys)try{var n=Object.keys(t);return n.forEach(function(n){Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){return t[n]=e,e}})}),e}catch(r){d([r])}for(var o in t)c.call(t,o)&&(e[o]=t[o]);return e}function d(e){try{t.emit("internal-error",e)}catch(n){}}return t||(t=o),n.inPlace=f,n.flag=a,n}},{}],ee:[function(t,e,n){function r(){}function o(t){function e(t){return t&&t instanceof r?t:t?s(t,c,i):i()}function n(n,r,o){if(!d.aborted){t&&t(n,r,o);for(var i=e(o),a=l(n),c=a.length,s=0;s<c;s++)a[s].apply(i,r);var f=u[y[n]];return f&&f.push([g,n,r,i]),i}}function p(t,e){w[t]=l(t).concat(e)}function l(t){return w[t]||[]}function m(t){return h[t]=h[t]||o(n)}function v(t,e){f(t,function(t,n){e=e||"feature",y[n]=e,e in u||(u[e]=[])})}var w={},y={},g={on:p,emit:n,get:m,listeners:l,context:e,buffer:v,abort:a,aborted:!1};return g}function i(){return new r}function a(){(u.api||u.feature)&&(d.aborted=!0,u=d.backlog={})}var c="nr@context",s=t("gos"),f=t(19),u={},h={},d=e.exports=o();d.backlog=u},{}],gos:[function(t,e,n){function r(t,e,n){if(o.call(t,e))return t[e];var r=n();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!1}),r}catch(i){}return t[e]=r,r}var o=Object.prototype.hasOwnProperty;e.exports=r},{}],handle:[function(t,e,n){function r(t,e,n,r){o.buffer([t],r),o.emit(t,e,n)}var o=t("ee").get("handle");e.exports=r,r.ee=o},{}],id:[function(t,e,n){function r(t){var e=typeof t;return!t||"object"!==e&&"function"!==e?-1:t===window?0:a(t,i,function(){return o++})}var o=1,i="nr@id",a=t("gos");e.exports=r},{}],loader:[function(t,e,n){function r(){if(!b++){var t=g.info=NREUM.info,e=h.getElementsByTagName("script")[0];if(setTimeout(f.abort,3e4),!(t&&t.licenseKey&&t.applicationID&&e))return f.abort();s(w,function(e,n){t[e]||(t[e]=n)}),c("mark",["onload",a()],null,"api");var n=h.createElement("script");n.src="https://"+t.agent,e.parentNode.insertBefore(n,e)}}function o(){"complete"===h.readyState&&i()}function i(){c("mark",["domContent",a()],null,"api")}function a(){return(new Date).getTime()}var c=t("handle"),s=t(19),f=t("ee"),u=window,h=u.document,d="addEventListener",p="attachEvent",l=u.XMLHttpRequest,m=l&&l.prototype;NREUM.o={ST:setTimeout,CT:clearTimeout,XHR:l,REQ:u.Request,EV:u.Event,PR:u.Promise,MO:u.MutationObserver},t(16);var v=""+location,w={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",agent:"js-agent.newrelic.com/nr-spa-1016.min.js"},y=l&&m&&m[d]&&!/CriOS/.test(navigator.userAgent),g=e.exports={offset:a(),origin:v,features:{},xhrWrappable:y};h[d]?(h[d]("DOMContentLoaded",i,!1),u[d]("load",r,!1)):(h[p]("onreadystatechange",o),u[p]("onload",r)),c("mark",["firstbyte",a()],null,"api");var b=0},{}]},{},["loader",2,14,5,3,4]);\n ;NREUM.info={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",licenseKey:"b3a229b3da",applicationID:"<APPID>",sa:1}\n <\/script>\n\n <script type="text/javascript">\n "use strict";\n var port, kind, client;\n var origin = "<ORIGIN>";\n\n function report(action, view, variables) {\n var data = {};\n\n if (kind) data.kind = kind;\n if (view) data.view = view;\n if (client) data.client = client;\n for (var key in variables) {\n data[key] = variables[key];\n }\n\n console.log("Page action", action, data);\n if (window.newrelic) {\n window.newrelic.addPageAction(action, data);\n }\n }\n\n function handleCall(event) {\n window.newrelic[event.data.method].apply(newrelic, event.data.args);\n }\n\n function handleInit(event) {\n if (!/lr-organizer-nr-init/.test(event.data) || event.origin !== origin) return;\n\n try {\n var data = JSON.parse(event.data);\n if (data.kind === \'lr-organizer-nr-init\') {\n port = event.ports[0];\n port.onmessage = handleCall;\n window.removeEventListener(\'message\', handleInit);\n }\n }\n catch(error) {}\n }\n\n window.addEventListener(\'message\', handleInit);\n\n <\/script>\n </head>\n <body></body>\n</html>\n'.replace("<ORIGIN>",window.location.origin);let Se=(Ce=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ae;this.iFrame=e,this.messages=[],this.iFrame.addEventListener("load",(e=>{this.isLoaded=!0;var t=new window.MessageChannel;this.port=t.port1;var n=window.location.origin||`${window.location.protocol}//${window.location.host}`;this.iFrame.contentWindow.postMessage(JSON.stringify({kind:"lr-organizer-nr-init"}),n,[t.port2]),this.messages?.forEach((e=>this._postMessage(e))),this.messages&&delete this.messages}),!1);const n=window?.LrSDK?.environment;t=t.replace("<APPID>","prod"===n?41710945:41710984),this.iFrame.setAttribute("srcdoc",t),"srcdoc"in this.iFrame||this.iFrame.setAttribute("src","javascript: window.frameElement.getAttribute('srcdoc');"),this.iFrame.style.display="none",Te.push((()=>{document.body.appendChild(this.iFrame)})),new MessageChannel,this.isLoaded=!1}setCustomAttribute(e,t){this._callRemote("setCustomAttribute",e,t)}addPageAction(e,t){this._callRemote("addPageAction",e,t)}noticeError(e){this._callRemote("noticeError",JSON.stringify(e,["message","arguments","type","name","stack"]))}setErrorHandler(){}_callRemote(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._postMessage({method:e,args:n},window.location.origin)}_postMessage(e){this.isLoaded?this.port.postMessage(e):this.messages.push(e)}static get instance(){var e=document.getElementById("lr-new-relic-iframe");return e||((e=document.createElement("iframe")).id="lr-new-relic-iframe",e.proxy=new this(e)),e.proxy}},r(Ce,"instance",[o],Object.getOwnPropertyDescriptor(Ce,"instance"),Ce),Ce);var Re;let De=(r((Re=class{constructor(){this.newrelic=Se.instance,this.newrelic.setErrorHandler(this.errorHandler),ae.addCollector(this)}setAttribute(e,t){this.newrelic.setCustomAttribute(e,t)}noticeError(e){this.newrelic.noticeError(e),this.errorHandler(e,!0)}report(e,t){this.newrelic.addPageAction(e,t)}reportTimed(e,t,n,r,o){var i=Object.assign({},o);i.duration=r,this.report(e,i)}reportApiCall(e,t){var n=Object.assign({},t);n.apiName=e,this.report("apiCall",n)}errorHandler(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?this.report("jsError",{message:e.message,errorName:e.name,errorStackTrace:e.stack,url:window.location.toString(),automation:Oe.is_enabled("automation"),noticed:t}):this.report("jsError",{message:"Unknown error",errorName:"Unknown",url:window.location.toString(),automation:Oe.is_enabled("automation"),noticed:t}),!1}}).prototype,"errorHandler",[b],Object.getOwnPropertyDescriptor(Re.prototype,"errorHandler"),Re.prototype),Re);const Me={src:"",loadP:async e=>{const t=document.createElement("iframe");return t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.width="100%",t.style.height="100%",t.style.border="none",t.src=Me.src,t.id="lr-organizer-iframe",e.appendChild(t),await new Promise((e=>t.onload=e)),t}},Le=Me,Ne=Symbol("Comlink.proxy"),ze=Symbol("Comlink.endpoint"),Ie=Symbol("Comlink.releaseProxy"),He=Symbol("Comlink.thrown"),Ue=e=>"object"==typeof e&&null!==e||"function"==typeof e,Be=new Map([["proxy",{canHandle:e=>Ue(e)&&e[Ne],serialize(e){const{port1:t,port2:n}=new MessageChannel;return qe(e,t),[n,[n]]},deserialize:e=>(e.start(),Ge(e))}],["throw",{canHandle:e=>Ue(e)&&He in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function qe(e,t=self){t.addEventListener("message",(function n(r){if(!r||!r.data)return;const{id:o,type:i,path:s}=Object.assign({path:[]},r.data),a=(r.data.argumentList||[]).map(Qe);let c;try{const t=s.slice(0,-1).reduce(((e,t)=>e[t]),e),n=s.reduce(((e,t)=>e[t]),e);switch(i){case"GET":c=n;break;case"SET":t[s.slice(-1)[0]]=Qe(r.data.value),c=!0;break;case"APPLY":c=n.apply(t,a);break;case"CONSTRUCT":c=Xe(new n(...a));break;case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel;qe(e,n),c=function(e,t){return Ke.set(e,t),e}(t,[t])}break;case"RELEASE":c=void 0;break;default:return}}catch(e){c={value:e,[He]:0}}Promise.resolve(c).catch((e=>({value:e,[He]:0}))).then((e=>{const[r,s]=Je(e);t.postMessage(Object.assign(Object.assign({},r),{id:o}),s),"RELEASE"===i&&(t.removeEventListener("message",n),Fe(t))}))})),t.start&&t.start()}function Fe(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function Ge(e,t){return We(e,[],t)}function $e(e){if(e)throw new Error("Proxy has been released and is not useable")}function We(e,t=[],n=function(){}){let r=!1;const o=new Proxy(n,{get(n,i){if($e(r),i===Ie)return()=>Ye(e,{type:"RELEASE",path:t.map((e=>e.toString()))}).then((()=>{Fe(e),r=!0}));if("then"===i){if(0===t.length)return{then:()=>o};const n=Ye(e,{type:"GET",path:t.map((e=>e.toString()))}).then(Qe);return n.then.bind(n)}return We(e,[...t,i])},set(n,o,i){$e(r);const[s,a]=Je(i);return Ye(e,{type:"SET",path:[...t,o].map((e=>e.toString())),value:s},a).then(Qe)},apply(n,o,i){$e(r);const s=t[t.length-1];if(s===ze)return Ye(e,{type:"ENDPOINT"}).then(Qe);if("bind"===s)return We(e,t.slice(0,-1));const[a,c]=Ve(i);return Ye(e,{type:"APPLY",path:t.map((e=>e.toString())),argumentList:a},c).then(Qe)},construct(n,o){$e(r);const[i,s]=Ve(o);return Ye(e,{type:"CONSTRUCT",path:t.map((e=>e.toString())),argumentList:i},s).then(Qe)}});return o}function Ve(e){const t=e.map(Je);return[t.map((e=>e[0])),(n=t.map((e=>e[1])),Array.prototype.concat.apply([],n))];var n}const Ke=new WeakMap;function Xe(e){return Object.assign(e,{[Ne]:!0})}function Je(e){for(const[t,n]of Be)if(n.canHandle(e)){const[r,o]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},o]}return[{type:"RAW",value:e},Ke.get(e)||[]]}function Qe(e){switch(e.type){case"HANDLER":return Be.get(e.name).deserialize(e.value);case"RAW":return e.value}}function Ye(e,t,n){return new Promise((r=>{const o=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");e.addEventListener("message",(function t(n){n.data&&n.data.id&&n.data.id===o&&(e.removeEventListener("message",t),r(n.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),n)}))}const Ze={setContent:e=>{Ze.content=e},setFeatures:e=>{Ze.features=e},setPreferredLanguage:e=>{Ze.preferredLanguage=e},setSession:e=>{Ze.session={accessToken:e.accessToken,apiKey:e.apiKey,environment:e.environment,host:e.host}}},et=Ze;class tt{getEventsP(){return this._proxy.getEvents()}constructor(e){this._proxy=e,this._listeners={}}onP(e,t){return this._listeners[e]=Xe((e=>{t(e)})),this._proxy.on(e,this._listeners[e])}connectP(){return this._proxy.connect()}disconnect(){this._proxy[Ie](),this._proxy=void 0,this._listeners={}}clearSelectionP(){return this._proxy?.clearSelection()}}const nt={instanceP:async(e,t)=>{const n=Ge(function(e,t=self,n="*"){return{postMessage:(t,r)=>e.postMessage(t,n,r),addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}(e.contentWindow));await n.setContentP(et.content),await n.setFeaturesP(et.features),await n.setPreferredLanguageP(et.preferredLanguage),await n.setSessionP(et.session);const r=await n.instanceP(t);return n[Ie](),new tt(r)}},rt=nt;let ot=!1;const it=(e,t)=>{ae.setAttribute(e,t)},st=(e,t)=>{ae.reportApiCall(e,t)};class at extends class{constructor(e){this._config=e,this._selected=[]}async _connectP(e){this._iframe=await Le.loadP(e),this._proxy=await rt.instanceP(this._iframe,this._config);const t=await this._proxy.getEventsP();for(const e of t)await this._proxy.onP(e,(t=>{this._dispatchEvent(e,t)}));return this._proxy.connectP()}connect(e){let t;new Promise(((n,r)=>{t=setTimeout((()=>{r(new Error("timeout"))}),15e3),this._connectP(e).then(n,r)})).then((()=>{clearTimeout(t),this._dispatchEvent("lr-status-changed","connected")})).catch((e=>{clearTimeout(t),this._dispatchEvent("lr-status-changed","error"),this._handleError(e)}))}disconnect(){this._proxy?.disconnect(),this._proxy=void 0,this._iframe?.remove(),this._iframe=void 0,this._selected=[]}clearSelection(){this._proxy?.clearSelectionP()}_handleError(e){this.disconnect()}_dispatchEvent(e,t){if("lr-selected-changed"===e){const e=t.resources.map((e=>e.id));if(this._selected.length===e.length&&this._selected.every(((t,n)=>t===e[n])))return;this._selected=e}const n={bubbles:!0,composed:!0,detail:t};this._iframe?.dispatchEvent(new CustomEvent(e,n))}}{static disableAnalytics(){ae.reset(),ot=!0}constructor(e){super(e),(e=>{if(!ot){ot=!0,Oe.is_enabled("automation")&&new ce,new De,it("sessionGuid",ae.sessionGuid);for(const t in e)it(t,e[t])}})(at.attributes)}connect(e){st("Organizer.connect"),super.connect(e)}disconnect(){st("Organizer.disconnect"),super.disconnect()}_handleError(e){(e=>{var t;t={message:e.message,errorName:e.name,errorStackTrace:e.stack,url:e.url,automation:Oe.is_enabled("automation"),noticed:!0},ae.report("jsError",t),ae.noticeError(new Error("organizer noticed error"))})(e),super._handleError(e)}_dispatchEvent(e,t){super._dispatchEvent(e,t)}}at.attributes={};const ct={color:"dark",selectionMode:"extended",selectionType:"image;video",initialSourceId:""},{LrSDK:lt}=window,ut=`${lt.baseURL.replace(/\/$/,"")}/sdk/LrOrganizer.html`;Le.src=ut,lt.provide("organizer",new class{constructor(e){this._environment=e,this._host="prod"===e?"https://photos.adobe.io":"https://photos-stage.adobe.io"}disableAnalytics(){at.disableAnalytics()}setContent(e){at.attributes.guid=`${e.account.wcd_guid}@AdobeID`,et.setContent(e)}setFeatures(e){et.setFeatures(e)}setPreferredLanguage(e){et.setPreferredLanguage(e)}setSession(e){at.attributes.environment=this._environment,at.attributes.clientId=e.apiKey,et.setSession({environment:this._environment,accessToken:e.accessToken,apiKey:e.apiKey,host:e.host||this._host})}instance(e){const t={};for(const n in ct)t[n]=e[n]||ct[n];return new at(t)}}(lt.environment))})()})();