@openfin/workspace-platform 22.1.0 → 22.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- (()=>{var e={847:(e,t)=>{var a={2346:function(e,t,a){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getMostReadable=t.darkenColor=t.lightenColor=void 0;const o=n(a(6535));t.lightenColor=(e,t)=>r(e,"lighten",t),t.darkenColor=(e,t)=>r(e,"darken",t);const r=(e,t,a)=>{if(a&&(a<0||a>100))throw new Error(`${a} must be a number between 0 and 100`);return(0,o.default)(e)[t](a).toString()};t.getMostReadable=(e,t)=>o.default.mostReadable(e,t).toHexString()},2317:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IconSize=t.Transition=t.LineHeight=t.FontWeight=t.FontSize=t.FontFamily=t.Shadow=t.Radius=t.UnitPx=t.Unit=t.SizeName=t.Size=t.Color=void 0,t.Color={white:"#FFFFFF",lightGray1:"#FAFBFE",lightGray2:"#F3F5F8",lightGray3:"#ECEEF1",lightGray4:"#DDDFE4",lightGray5:"#C9CBD2",neutralGray:"#7D808A",neutralGray80:"rgba(125,128,138,0.8)",silverGray:"#C0C1C2",darkGray1:"#53565F",darkGray2:"#383A40",darkGray3:"#2F3136",darkGray4:"#24262B",darkGray5:"#1E1F23",darkGray6:"#111214",openFinDarkest:"#3D39CD",openFinDarker:"#4642E0",openFin:"#504CFF",openFinLight:"#5254FB",openFinLighter:"#5C5EFE",openFinLightest:"#6864FF",functional1:"#207735",functional2:"#46C8F1",functional3:"#0A76D3",functional4:"#6CADE5",functional5:"#0A76D3",functional6:"#882BFE",functional7:"#F31818",functional8:"#C93400",functional9:"#FF5E60",functional10:"#F48F00",purple:"#8C61FF",lightblue:"#36C3FE",aqua:"#00CC88",yellow:"#FFEB00",salmon:"#FF8C4C",pink:"#FF5E60",lightpink:"#FF8FB8",white00:"rgba(255,255,255,0.0)",white10:"rgba(255,255,255,0.1)",white20:"rgba(255,255,255,0.2)",white30:"rgba(255,255,255,0.3)",white40:"rgba(255,255,255,0.4)",white50:"rgba(255,255,255,0.5)",white60:"rgba(255,255,255,0.6)",white70:"rgba(255,255,255,0.7)",white80:"rgba(255,255,255,0.8)",white90:"rgba(255,255,255,0.9)",black00:"rgba(0,0,0,0.0)",black10:"rgba(0,0,0,0.1)",black20:"rgba(0,0,0,0.2)",black30:"rgba(0,0,0,0.3)",black40:"rgba(0,0,0,0.4)",black50:"rgba(0,0,0,0.5)",black60:"rgba(0,0,0,0.6)",black70:"rgba(0,0,0,0.7)",black80:"rgba(0,0,0,0.8)",black90:"rgba(0,0,0,0.9)",transparent:"transparent"},t.Size={xsmall:"xsmall",small:"small",base:"base",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge",xxxxlarge:"xxxxlarge"},t.SizeName={[t.Size.xsmall]:"Extra Small",[t.Size.small]:"Small",[t.Size.base]:"Base",[t.Size.large]:"Large",[t.Size.xlarge]:"Extra Large",[t.Size.xxlarge]:"2X Large",[t.Size.xxxlarge]:"3X Large",[t.Size.xxxxlarge]:"4X Large"},t.Unit={[t.Size.xsmall]:4,[t.Size.small]:8,[t.Size.base]:12,[t.Size.large]:16,[t.Size.xlarge]:20,[t.Size.xxlarge]:24,[t.Size.xxxlarge]:32,[t.Size.xxxxlarge]:48},t.UnitPx={[t.Size.xsmall]:"4px",[t.Size.small]:"8px",[t.Size.base]:"12px",[t.Size.large]:"16px",[t.Size.xlarge]:"20px",[t.Size.xxlarge]:"24px",[t.Size.xxxlarge]:"32px",[t.Size.xxxxlarge]:"48px"},t.Radius={[t.Size.xsmall]:"2px",[t.Size.small]:"4px",[t.Size.base]:"8px",[t.Size.large]:"24px",pill:"100vh",round:"50%",none:"0"},t.Shadow={[t.Size.base]:"0 4px 4px rgba(0, 0, 0, 0.25)"},t.FontFamily=["Inter","system-ui","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"].join(","),t.FontSize={[t.Size.xsmall]:"8px",[t.Size.small]:"10px",[t.Size.base]:"12px",[t.Size.large]:"14px",[t.Size.xlarge]:"16px",[t.Size.xxlarge]:"18px",[t.Size.xxxlarge]:"20px",[t.Size.xxxxlarge]:"40px"},t.FontWeight={normal:400,bold:600},t.LineHeight={ui:1,heading:1.2,text:1.5},t.Transition={base:"200ms cubic-bezier(0.16, 1, 0.3, 1)",none:"0ms"},t.IconSize={[t.Size.xsmall]:t.UnitPx.small,[t.Size.small]:t.UnitPx.base,[t.Size.base]:"15px",[t.Size.large]:t.UnitPx.xlarge,[t.Size.xlarge]:t.UnitPx.xxlarge,[t.Size.xxlarge]:t.UnitPx.xxxlarge,[t.Size.xxxlarge]:t.UnitPx.xxxxlarge}},6893:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTheme=void 0;const n=a(2317),o=a(2346),r=a(5939),i={fontFamily:n.FontFamily,fontSize:n.FontSize,fontWeight:n.FontWeight,lineHeight:n.LineHeight,iconSize:n.IconSize,radius:n.Radius,shadow:n.Shadow,transition:n.Transition,unit:n.Unit,px:n.UnitPx},s=(e,t)=>({[`${e}Active`]:(0,o.darkenColor)(t,2),[`${e}Hover`]:(0,o.lightenColor)(t,5),[`${e}Focused`]:(0,o.getMostReadable)(t,[n.Color.white,n.Color.darkGray5]),[`${e}Text`]:(0,o.getMostReadable)(t,[n.Color.white,n.Color.darkGray5])});t.createTheme=e=>Object.assign(Object.assign({},i),{palette:Object.assign(Object.assign(Object.assign({},e),s(r.Palette.brandPrimary,e.brandPrimary)),s(r.Palette.brandSecondary,e.brandSecondary))})},5939:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Palette=void 0,t.Palette={background1:"background1",background2:"background2",background3:"background3",background4:"background4",background5:"background5",background6:"background6",brandPrimary:"brandPrimary",brandSecondary:"brandSecondary",brandPrimaryActive:"brandPrimaryActive",brandPrimaryHover:"brandPrimaryHover",brandPrimaryFocused:"brandPrimaryFocused",brandPrimaryText:"brandPrimaryText",brandSecondaryActive:"brandSecondaryActive",brandSecondaryHover:"brandSecondaryHover",brandSecondaryFocused:"brandSecondaryFocused",brandSecondaryText:"brandSecondaryText",inputBackground:"inputBackground",inputColor:"inputColor",inputPlaceholder:"inputPlaceholder",inputDisabled:"inputDisabled",inputFocused:"inputFocused",inputBorder:"inputBorder",statusSuccess:"statusSuccess",statusWarning:"statusWarning",statusCritical:"statusCritical",statusActive:"statusActive",textDefault:"textDefault",textHelp:"textHelp",textInactive:"textInactive",borderNeutral:"borderNeutral",contentBackground1:"contentBackground1",contentBackground2:"contentBackground2",contentBackground3:"contentBackground3",contentBackground4:"contentBackground4",contentBackground5:"contentBackground5",linkDefault:"linkDefault",linkHover:"linkHover"}},6535:function(e){e.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var t=/^\s+/,a=/\s+$/;function n(o,r){if(r=r||{},(o=o||"")instanceof n)return o;if(!(this instanceof n))return new n(o,r);var i=function(n){var o,r,i,s={r:0,g:0,b:0},c=1,l=null,d=null,u=null,p=!1,w=!1;return"string"==typeof n&&(n=function(e){e=e.replace(t,"").replace(a,"").toLowerCase();var n,o=!1;if(f[e])e=f[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(n=B.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=B.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=B.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=B.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=B.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=B.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=B.hex8.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),a:W(n[4]),format:o?"name":"hex8"}:(n=B.hex6.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),format:o?"name":"hex"}:(n=B.hex4.exec(e))?{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),a:W(n[4]+""+n[4]),format:o?"name":"hex8"}:!!(n=B.hex3.exec(e))&&{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),format:o?"name":"hex"}}(n)),"object"==e(n)&&(E(n.r)&&E(n.g)&&E(n.b)?(o=n.r,r=n.g,i=n.b,s={r:255*P(o,255),g:255*P(r,255),b:255*P(i,255)},p=!0,w="%"===String(n.r).substr(-1)?"prgb":"rgb"):E(n.h)&&E(n.s)&&E(n.v)?(l=I(n.s),d=I(n.v),s=function(e,t,a){e=6*P(e,360),t=P(t,100),a=P(a,100);var n=Math.floor(e),o=e-n,r=a*(1-t),i=a*(1-o*t),s=a*(1-(1-o)*t),c=n%6;return{r:255*[a,i,r,r,s,a][c],g:255*[s,a,a,i,r,r][c],b:255*[r,r,s,a,a,i][c]}}(n.h,l,d),p=!0,w="hsv"):E(n.h)&&E(n.s)&&E(n.l)&&(l=I(n.s),u=I(n.l),s=function(e,t,a){var n,o,r;function i(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+6*(t-e)*a:a<.5?t:a<2/3?e+(t-e)*(2/3-a)*6:e}if(e=P(e,360),t=P(t,100),a=P(a,100),0===t)n=o=r=a;else{var s=a<.5?a*(1+t):a+t-a*t,c=2*a-s;n=i(c,s,e+1/3),o=i(c,s,e),r=i(c,s,e-1/3)}return{r:255*n,g:255*o,b:255*r}}(n.h,l,u),p=!0,w="hsl"),n.hasOwnProperty("a")&&(c=n.a)),c=v(c),{ok:p,format:n.format||w,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:c}}(o);this._originalInput=o,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||i.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=i.ok}function o(e,t,a){e=P(e,255),t=P(t,255),a=P(a,255);var n,o,r=Math.max(e,t,a),i=Math.min(e,t,a),s=(r+i)/2;if(r==i)n=o=0;else{var c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:n=(t-a)/c+(t<a?6:0);break;case t:n=(a-e)/c+2;break;case a:n=(e-t)/c+4}n/=6}return{h:n,s:o,l:s}}function r(e,t,a){e=P(e,255),t=P(t,255),a=P(a,255);var n,o,r=Math.max(e,t,a),i=Math.min(e,t,a),s=r,c=r-i;if(o=0===r?0:c/r,r==i)n=0;else{switch(r){case e:n=(t-a)/c+(t<a?6:0);break;case t:n=(a-e)/c+2;break;case a:n=(e-t)/c+4}n/=6}return{h:n,s:o,v:s}}function i(e,t,a,n){var o=[x(Math.round(e).toString(16)),x(Math.round(t).toString(16)),x(Math.round(a).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function s(e,t,a,n){return[x(A(n)),x(Math.round(e).toString(16)),x(Math.round(t).toString(16)),x(Math.round(a).toString(16))].join("")}function c(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.s-=t/100,a.s=C(a.s),n(a)}function l(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.s+=t/100,a.s=C(a.s),n(a)}function d(e){return n(e).desaturate(100)}function u(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.l+=t/100,a.l=C(a.l),n(a)}function p(e,t){t=0===t?0:t||10;var a=n(e).toRgb();return a.r=Math.max(0,Math.min(255,a.r-Math.round(-t/100*255))),a.g=Math.max(0,Math.min(255,a.g-Math.round(-t/100*255))),a.b=Math.max(0,Math.min(255,a.b-Math.round(-t/100*255))),n(a)}function w(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.l-=t/100,a.l=C(a.l),n(a)}function g(e,t){var a=n(e).toHsl(),o=(a.h+t)%360;return a.h=o<0?360+o:o,n(a)}function h(e){var t=n(e).toHsl();return t.h=(t.h+180)%360,n(t)}function m(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var a=n(e).toHsl(),o=[n(e)],r=360/t,i=1;i<t;i++)o.push(n({h:(a.h+i*r)%360,s:a.s,l:a.l}));return o}function k(e){var t=n(e).toHsl(),a=t.h;return[n(e),n({h:(a+72)%360,s:t.s,l:t.l}),n({h:(a+216)%360,s:t.s,l:t.l})]}function b(e,t,a){t=t||6,a=a||30;var o=n(e).toHsl(),r=360/a,i=[n(e)];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(n(o));return i}function y(e,t){t=t||6;for(var a=n(e).toHsv(),o=a.h,r=a.s,i=a.v,s=[],c=1/t;t--;)s.push(n({h:o,s:r,v:i})),i=(i+c)%1;return s}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,a,n=this.toRgb();return e=n.r/255,t=n.g/255,a=n.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))},setAlpha:function(e){return this._a=v(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=r(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=r(this._r,this._g,this._b),t=Math.round(360*e.h),a=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+a+"%, "+n+"%)":"hsva("+t+", "+a+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),a=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+a+"%, "+n+"%)":"hsla("+t+", "+a+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return i(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,a,n,o){var r=[x(Math.round(e).toString(16)),x(Math.round(t).toString(16)),x(Math.round(a).toString(16)),x(A(n))];return o&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*P(this._r,255))+"%",g:Math.round(100*P(this._g,255))+"%",b:Math.round(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*P(this._r,255))+"%, "+Math.round(100*P(this._g,255))+"%, "+Math.round(100*P(this._b,255))+"%)":"rgba("+Math.round(100*P(this._r,255))+"%, "+Math.round(100*P(this._g,255))+"%, "+Math.round(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[i(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+s(this._r,this._g,this._b,this._a),a=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var r=n(e);a="#"+s(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+a+")"},toString:function(e){var t=!!e;e=e||this._format;var a=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(a=this.toRgbString()),"prgb"===e&&(a=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(a=this.toHexString()),"hex3"===e&&(a=this.toHexString(!0)),"hex4"===e&&(a=this.toHex8String(!0)),"hex8"===e&&(a=this.toHex8String()),"name"===e&&(a=this.toName()),"hsl"===e&&(a=this.toHslString()),"hsv"===e&&(a=this.toHsvString()),a||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(e,t){var a=e.apply(null,[this].concat([].slice.call(t)));return this._r=a._r,this._g=a._g,this._b=a._b,this.setAlpha(a._a),this},lighten:function(){return this._applyModification(u,arguments)},brighten:function(){return this._applyModification(p,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(l,arguments)},greyscale:function(){return this._applyModification(d,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(b,arguments)},complement:function(){return this._applyCombination(h,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(m,[3])},tetrad:function(){return this._applyCombination(m,[4])}},n.fromRatio=function(t,a){if("object"==e(t)){var o={};for(var r in t)t.hasOwnProperty(r)&&(o[r]="a"===r?t[r]:I(t[r]));t=o}return n(t,a)},n.equals=function(e,t){return!(!e||!t)&&n(e).toRgbString()==n(t).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(e,t,a){a=0===a?0:a||50;var o=n(e).toRgb(),r=n(t).toRgb(),i=a/100;return n({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},n.readability=function(e,t){var a=n(e),o=n(t);return(Math.max(a.getLuminance(),o.getLuminance())+.05)/(Math.min(a.getLuminance(),o.getLuminance())+.05)},n.isReadable=function(e,t,a){var o,r,i,s,c,l=n.readability(e,t);switch(r=!1,(i=a,"AA"!==(s=((i=i||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==s&&(s="AA"),"small"!==(c=(i.size||"small").toLowerCase())&&"large"!==c&&(c="small"),o={level:s,size:c}).level+o.size){case"AAsmall":case"AAAlarge":r=l>=4.5;break;case"AAlarge":r=l>=3;break;case"AAAsmall":r=l>=7}return r},n.mostReadable=function(e,t,a){var o,r,i,s,c=null,l=0;r=(a=a||{}).includeFallbackColors,i=a.level,s=a.size;for(var d=0;d<t.length;d++)(o=n.readability(e,t[d]))>l&&(l=o,c=n(t[d]));return n.isReadable(e,c,{level:i,size:s})||!r?c:(a.includeFallbackColors=!1,n.mostReadable(e,["#fff","#000"],a))};var f=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S=n.hexNames=function(e){var t={};for(var a in e)e.hasOwnProperty(a)&&(t[e[a]]=a);return t}(f);function v(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function P(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var a=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),a&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function C(e){return Math.min(1,Math.max(0,e))}function M(e){return parseInt(e,16)}function x(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function A(e){return Math.round(255*parseFloat(e)).toString(16)}function W(e){return M(e)/255}var D,R,T,B=(R="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",T="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+T),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function E(e){return!!B.CSS_UNIT.exec(e)}return n}()}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return a[e].call(r.exports,r,r.exports,o),r.exports}var r={};(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=e.Palette=e.Color=void 0;var t=o(2317);Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return t.Color}});var a=o(5939);Object.defineProperty(e,"Palette",{enumerable:!0,get:function(){return a.Palette}});var n=o(6893);Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return n.createTheme}})})();var i=t;for(var s in r)i[s]=r[s];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})},877:()=>{},67:()=>{}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";a.r(n),a.d(n,{AppManifestType:()=>c,BookmarkItemContextMenuOptionType:()=>y,BrowserButtonType:()=>S,ColorSchemeOptionType:()=>m,CustomActionCallerType:()=>C,EnterpriseMainContextMenuOptionType:()=>b,GlobalContextMenuOptionType:()=>h,PageChangeEventType:()=>g,PageTabContextMenuOptionType:()=>k,PanelPosition:()=>w,SUPPORTED_LANGUAGES:()=>M,SaveButtonContextMenuOptionType:()=>v,SaveModalType:()=>x,ViewTabMenuOptionType:()=>f,WindowType:()=>P,getCurrentSync:()=>Ra,init:()=>hs,initDockCompanion:()=>ws,wrapSync:()=>Da});var e,t,o,r,i,s,c,l,d={};a.r(d),a.d(d,{getItem:()=>da,removeItem:()=>ua,setItem:()=>la}),function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(e||(e={})),function(e){e.UserAction="user-action",e.FocusChange="focus-change",e.Reload="reload"}(t||(t={})),function(e){e.Active="active",e.Default="default"}(o||(o={})),function(e){e.Suggestion="suggestion"}(r||(r={})),function(e){e.Contact="Contact",e.Custom="Custom",e.List="List",e.Plain="Plain",e.SimpleText="SimpleText",e.Loading="Loading",e.Error="Error"}(i||(i={})),function(e){e.MultiSelect="MultiSelect"}(s||(s={})),function(e){e.Snapshot="snapshot",e.Manifest="manifest",e.View="view",e.External="external"}(c||(c={})),function(e){e.LandingPage="landingPage",e.AppGrid="appGrid"}(l||(l={}));var u,p,w,g,h,m,k,b,y,f,S,v,P,C;!function(e){e.Primary="primary",e.Secondary="secondary",e.TextOnly="textOnly"}(u||(u={})),function(e){e.ActionButton="ActionButton",e.DropdownButton="DropdownButton"}(p||(p={})),function(e){e.Left="Left",e.Right="Right",e.Top="Top",e.Bottom="Bottom"}(w||(w={})),function(e){e.UrlChange="URL_CHANGE",e.ViewAdded="VIEW_ADDED",e.ViewRemoved="VIEW_REMOVED",e.PageContextAdded="PAGE_CONTEXT_ADDED",e.PageContextRemoved="PAGE_CONTEXT_REMOVED"}(g||(g={})),function(e){e.NewWindow="NewWindow",e.NewPage="NewPage",e.SavePage="SavePage",e.SavePageAs="SavePageAs",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.CloseWindow="CloseWindow",e.RestoreChanges="RestoreChanges",e.SaveWorkspace="SaveWorkspace",e.SaveWorkspaceAs="SaveWorkspaceAs",e.RenameWorkspace="RenameWorkspace",e.SwitchWorkspace="SwitchWorkspace",e.DeleteWorkspace="DeleteWorkspace",e.Downloads="Downloads",e.OpenStorefront="OpenStorefront",e.Appearance="Appearance",e.Quit="Quit",e.Custom="Custom"}(h||(h={})),function(e){e.Light="light",e.Dark="dark",e.System="system"}(m||(m={})),function(e){e.Close="Close",e.Duplicate="Duplicate",e.Rename="Rename",e.Save="Save",e.SaveAs="Save As",e.NewPage="New Page",e.DeletePage="Delete Page",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Refresh="Refresh",e.CloseOthers="Close others",e.Delete="Delete",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.AddToChannel="AddToChannel",e.Custom="Custom"}(k||(k={})),function(e){e.Lock="Lock",e.ShowHideTabs="ShowHideTabs",e.AddToChanel="AddToChannel",e.Print="Print",e.Pin="Pin"}(b||(b={})),function(e){e.EditName="Edit Name",e.Move="Move",e.Delete="Delete"}(y||(y={})),function(e){e.NewView="NewView",e.DuplicateViews="DuplicateView",e.OpenWithDefaultBrowser="OpenWithDefaultBrowser",e.ReloadViews="ReloadTab",e.CloseViews="CloseTab",e.AddToChannel="AddToChannel",e.RemoveFromChannel="RemoveFromChannel",e.Back="Back",e.Forward="Forward",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.Custom="Custom"}(f||(f={})),function(e){e.ShowHideTabs="ShowHideTabs",e.ColorLinking="ColorLinking",e.PresetLayouts="PresetLayouts",e.LockUnlockPage="LockUnlockPage",e.SaveMenu="SaveMenu",e.SavePage="SavePage",e.Minimise="Minimise",e.Maximise="Maximise",e.Close="Close",e.Custom="Custom"}(S||(S={})),function(e){e.SavePage="SavePage",e.SaveWorkspace="SaveWorkspace",e.SavePageAs="SavePageAs",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Custom="Custom"}(v||(v={})),function(e){e.Browser="browser",e.Platform="platform"}(P||(P={})),function(e){e.CustomButton="CustomButton",e.StoreCustomButton="StoreCustomButton",e.CustomDropdownItem="CustomDropdownItem",e.GlobalContextMenu="GlobalContextMenu",e.ViewTabContextMenu="ViewTabContextMenu",e.PageTabContextMenu="PageTabContextMenu",e.SaveButtonContextMenu="SaveButtonContextMenu",e.API="API"}(C||(C={}));const M=["en-US","ja-JP","zh-CN","ko-KR","ru-RU","de-DE","zh-Hant"];var x,I;!function(e){e.SAVE_PAGE="SAVE_PAGE",e.SAVE_WORKSPACE="SAVE_WORKSPACE",e.SAVE_PAGE_AS="SAVE_PAGE_AS",e.SAVE_WORKSPACE_AS="SAVE_WORKSPACE_AS",e.RENAME_PAGE="RENAME_PAGE",e.RENAME_WORKSPACE="RENAME_WORKSPACE"}(x||(x={})),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(I||(I={}));const A="undefined"!=typeof window&&"undefined"!=typeof fin,W=("undefined"==typeof process||process.env,"undefined"!=typeof window),D=W&&"undefined"!=typeof indexedDB,R=W?window.origin:I.Local,T=A&&fin.me.uuid,B=A&&fin.me.name,E=A&&fin.me.entityType,F=(I.Local,I.Dev,I.Staging,"prod"===I.Prod),V=e=>e.startsWith("http://")||e.startsWith("https://")?e:R+e,N=V("https://workspace.openfin.co/workspace/22.1.0"),L=V("https://workspace.openfin.co/workspace/22.1.0"),_=("undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&V(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&V(WORKSPACE_DOCS_CLIENT_URL),"41.134.100.117"),O="22.1.0";"undefined"!=typeof WORKSPACE_BUILD_SHA&&WORKSPACE_BUILD_SHA;var U,G;!function(e){e.Home="/home/",e.HomeSearch="/home/?deeplink=search",e.HomePagesRename="/home/pages/rename/",e.Dock="/dock/",e.Docs="/provider/docs/",e.Storefront="/storefront/",e.DeprecatedAlert="/provider/deprecated-alert/",e.Analytics="/provider/analytics/",e.Provider="/provider/"}(U||(U={})),function(e){e.Browser="/browser/",e.BrowserPopupMenu="/popup-menu/",e.BrowserPopupMenuSaveModal="/popup-menu/save-modal/",e.BrowserPopupMenuLayouts="/popup-menu/layouts/layouts/",e.BrowserPopupMenuColorLinking="/popup-menu/color-linking/color-linking/",e.BrowserIndicator="/indicator/",e.BrowserPopupMenuAddressSearchResultsView="/popup-menu/address-search-results-view/",e.ResponseModal="/popup-menu/response-modal/",e.CloseConfirmationModal="/popup-menu/close-confirmation-modal/",e.EnterpriseBrowser="/enterprise/",e.EnterpriseLandingPage="/enterprise/landing/",e.EnterpriseContextMenu="/context-menu/",e.EnterpriseBookmarkDialog="/bookmark-dialog/",e.EnterpriseStorageProxy="/enterprise/storage-proxy",e.DropdownMenu="/dropdown-menu/",e.EnterpriseDock="/dock/"}(G||(G={}));const H={...U,...G};var $;!function(e){e.Search="search"}($||($={}));const K=H;async function z(){const e="getManifestOverrides",{manifest:t,initialOptions:a}=await fin.Application.getCurrentSync().getInfo();return t?.platform.workspace||t?.platform.home||a?.workspace||a?.home||console.warn(`${e}: Missing Home development manifest overrides, using Desktop Owner Settings.`),t?.platform.workspace?(JSON.stringify(t?.platform.workspace),t?.platform.workspace):t?.platform.home?(JSON.stringify(t?.platform.home),t?.platform.home):a?.workspace?(JSON.stringify(a?.workspace),a?.workspace):a?.home?(JSON.stringify(a?.home),a?.home):{}}const J=e=>fin.System.getSystemAppConfig(e);async function Z(){const e="getDOSOverrides";if(!A)return console.warn(`${e}: the fin API was not available, returning no result`),{};try{let t=await J("workspace").catch((t=>{console.warn(`${e}: customConfig entry for SystemApp workspace not available in Desktop Owner Settings. ${t?.message}`)}));return t||(t=await J("home")),JSON.stringify(t),t}catch(t){if(!F)return{};if(!(t instanceof Error))throw t;console.warn(`${e}: Missing Workspace Desktop Owner Settings configuration, using defaults. ${t?.message}`)}return{}}let q,j;async function Q(){if(q)return q;const e="getOverrides";if(!A)return W&&console.warn(`${e}: The Fin API was not available. Returning an empty result.`),{};const[t,a]=await Promise.all([Z(),z()]);return q={...a,...t,disableRuntimeValidation:a.disableRuntimeValidation||t.disableRuntimeValidation},q}function Y(e){j=e}const X=e=>e.replace(/\/$/,"");async function ee(){const e=(await Q()).browserBaseUrl;if(e)try{const t=new URL(e);if(t.pathname.endsWith("/"))t.pathname=X(t.pathname);else{if("/workspace"===t.pathname)return t.pathname+=`/${O}`,t.toString();console.warn(`@openfin/workspace-platform: browserOverrideBaseUrl must be a valid url, with path: /workspace. Expected <protocol>://<optional subdomain>.<domain>/workspace but got ${e}`)}}catch(t){console.warn(`@openfin/workspace-platform: browserOverrideBaseUrl must be a valid url. Expected <protocol>://<optional subdomain>.<domain>/workspace but got ${e}`)}return j??L}async function te(e=!1){const t=await ee()+K.Browser;return e?t:X(t)}async function ae(e=!1){const t=await ee()+K.EnterpriseBrowser;return e?t:X(t)}async function ne(){return await ae()+"/landing/"}const oe=async(e,t=!1)=>e?ae(t):te(t);var re,ie;!function(e){e.Workspace="openfin-workspace",e.OldWorkspace="openfin-browser"}(re||(re={})),function(e){e.FinProtocol="fin-protocol"}(ie||(ie={}));const se={uuid:T},ce=(re.Workspace,e=>{if(!A)throw new Error("getApplication cannot be used in a non OpenFin env. Avoid using this during pre-rendering.");return fin.Application.wrapSync(e)}),le=()=>ce(se);var de;!function(e){e.Home="openfin-home",e.Dock="openfin-dock",e.Storefront="openfin-storefront",e.HomeInternal="openfin-home-internal",e.BrowserMenu="openfin-browser-menu",e.BrowserSaveMenu="openfin-browser-save-menu",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window",e.ClassicWindow="internal-generated-classic-window",e.EnterpriseContextMenu="openfin-enterprise-context-menu",e.BrowserAddressSearchPrefix="openfin-browser-menu-address-search-",e.EnterpriseBookmarkDialogWindow="openfin-enterprise-bookmark-dialog",e.DropdownMenu="openfin-enterprise-dropdown-menu",e.DockCompanion="openfin-dock-companion",e.AICompanionPrefix="openfin-ai-companion-",e.UpdateVersionModal="here-update-version-modal"}(de||(de={}));const ue=e=>({left:(e.left+(e.right??e.left+e.width))/2,top:(e.top+(e.bottom??e.top+e.height))/2});function pe(e){if(!A)throw new Error("getOFWindow can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");return fin.Window.wrapSync(e)}const we={name:B,uuid:T};function ge(){return pe(we)}de.Home,re.Workspace,de.Dock,re.Workspace;const he={name:de.Storefront,uuid:re.Workspace};re.Workspace,re.Workspace;async function me(e){const t=pe(e);"minimized"===await t.getState()&&await t.restore(),await t.show(),await t.setAsForeground()}const ke=async e=>{try{const t=await fin.Window.wrapSync({name:e.name,uuid:e.uuid??fin.me.uuid}).getOptions();return("browser"===t.workspacePlatform?.windowType||"enterprise"===t.workspacePlatform?.windowType)&&t.workspacePlatform?.pages}catch(e){return console.warn("isBrowserWindow error: ",e),!1}};async function be(){const e=await fin.Application.getCurrentSync().getChildWindows(),t=await Promise.all(e.map((async e=>ke(e.identity))));return e.filter(((e,a)=>t[a]))}async function ye(){return(await fin.Application.getCurrentSync().getChildWindows()).filter((e=>e.identity.name.startsWith(de.BrowserMenu)))}const fe=e=>pe(e).getOptions().then((()=>!0)).catch((()=>!1)),Se=()=>fe(he),ve=e=>`${e.top},${e.left},${e.height},${e.width},${e.bottom},${e.right}`;function Pe(e,t){const a=e.top,n=e.left,o=e.top+e.height,r=e.left+e.width,i=t.monitorRect.top,s=t.monitorRect.left,c=t.monitorRect.bottom,l=t.monitorRect.right;if(a>c||o<i||n>l||r<s)return 0;const d=Math.max(a,i),u=Math.max(n,s);return(Math.min(o,c)-d)*(Math.min(r,l)-u)/(e.height*e.width)}async function Ce(e){const t=await fin.System.getMonitorInfo();return[t.primaryMonitor,...t.nonPrimaryMonitors].reduce(((t,a)=>{const n=Pe(e,a);return n>t.percentage?{percentage:n,monitor:a}:t}),{percentage:0,monitor:t.primaryMonitor}).monitor}const Me=(e,t)=>{const a=e;return a.workspacePlatform||(a.workspacePlatform={}),a.workspacePlatform._internalDeferShowOptions={setAsForeground:!!t,deferShowEnabled:!0,autoShow:a.workspacePlatform?._internalAutoShow||a.workspacePlatform?._internalDeferShowOptions?.autoShow||void 0===a.autoShow||a.autoShow},a.autoShow=!1,a};const xe=56,Ie=728,Ae=150,We=async e=>{const t=e?fin.Window.wrapSync(e):fin.Window.getCurrentSync(),a=await t.getOptions();return a.workspacePlatform?.windowType&&"enterprise"===a.workspacePlatform.windowType},De=e=>{const t=e?.defaultWindowOptions?.workspacePlatform?.windowType;return"enterprise"===t};let Re;const Te=e=>{if(e)try{return new URL(e).pathname.includes(K.EnterpriseLandingPage.replace(/\/$/,""))}catch(t){console.error("error parsing url: %O",e)}return!1},Be=(e,t=0)=>{let a,n,o=!1;const r=async n=>{const i=await e(...n);if(o){await new Promise((e=>setTimeout(e,t)));const e=a;return a=void 0,o=!1,r(e)}return i};return(...e)=>(n?(o=!0,a=e):n=r(e).catch((e=>{throw console.error("makeDebouncedFunc",e),e})).finally((()=>{n=void 0})),n)};var Ee;!function(e){e.Top="top",e.Below="below"}(Ee||(Ee={}));const Fe=async(e,t)=>{try{return e?await e.getBounds():t}catch(e){return console.warn("getParentWindowBounds - Failed to get parent window bounds",e),t}},Ve=async e=>{try{return!!e&&"maximized"===await e.getState()}catch(e){return console.warn("parentWindowMaximized - Failed to get parent window state",e),!1}};Be((async function(e,t,a,n,o){const r=t.getBoundingClientRect(),i=await async function(e,t,a,n,o,r){const i=!!e&&pe(e),s=await Fe(i,r);if(n===Ee.Below){if(!i||await Ve(i)){const e=i?(await Ce(s)).availableRect:(await fin.System.getMonitorInfo()).primaryMonitor.availableRect;return{left:ue(e).left-t/2,top:o?e.bottom-128:e.bottom+12,width:t,height:a}}return{left:ue(s).left-t/2,top:o?s.bottom-128:s.bottom+12,width:t,height:a}}if(!i||await Ve(i)){const e=i?(await Ce(s)).availableRect:(await fin.System.getMonitorInfo()).primaryMonitor.availableRect;return{left:ue(e).left-t/2,top:e.top+20,width:t,height:a}}return{left:ue(s).left-t/2,top:s.top+20,width:t,height:a}}(e,r.width,r.height,a,n,o);if(0===i.width||0===i.height)return;const s=ge();await s.setBounds(i),await s.show();const c=setTimeout((()=>s.close()),n?5e3:3e3),l=()=>{clearTimeout(c),s.close()};if(e){const t=pe(e);t.on("bounds-changing",(()=>l())),t.on("blurred",(()=>l())),t.on("maximized",(()=>l())),t.on("minimized",(()=>l())),t.on("restored",(()=>l()))}}),10);const Ne=async e=>{const t=e&&await pe(e).getBounds(),a=e?await Ce(t):(await fin.System.getMonitorInfo()).primaryMonitor;return{left:((n=a.availableRect).left+n.right)/2,top:(n.top+n.bottom)/2};var n},Le=async(e,t,a=!1)=>{let n;if(a)n=await Ne(t);else{const e=pe(t),a=await e.getBounds();n=n??ue(a)}const{defaultHeight:o,defaultWidth:r}=e;return((e,t)=>{const a=t.width/2,n=t.height/2;return{left:Math.round(e.left-a),top:Math.round(e.top-n),width:t.width,height:t.height}})(n,{height:o,width:r})};async function _e(e,t,a=!1){const n=t&&"maximized"===await pe(t).getState(),o=a||n||!t,r=await Le(e,t,o);return await(async e=>{const t=await fin.System.getMonitorInfo(),a=[t.primaryMonitor,...t.nonPrimaryMonitors];for(const t of a)if(1===Pe(e,t))return!1;return!0})(r)?(await pe(t).center(),Le(e,t,o)):(console.warn("Response modal isn't off screen, not centering parent window"),r)}var Oe;!function(e){e.Browser="Browser",e.Dock="Dock",e.EnterpriseDock="EnterpriseDock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming",e.Microflow="Microflow"}(Oe||(Oe={}));const Ue=async(e,t,a="workspace-licensing")=>{const n={apiVersion:t.apiVersion||O,componentName:e,componentVersion:t.componentVersion||O,allowed:t.allowed,rejectionCode:t.rejectionCode};fin.System.registerUsage({type:a,data:n})};let Ge=!1;const He=new Map,$e=e=>{let t=He.get(e.uuid);return t||(t=Da(e),t.once("closed",(()=>{He.delete(e.uuid)})),He.set(e.uuid,t)),t},Ke=async(e,t)=>{try{await e._raiseAnalytics([t])}catch(e){console.error("failed to raise analytics event",e)}},ze=async e=>{await Ke($e(fin.me.identity),{source:"Browser",...e})};var Je=a(847);const Ze=e=>e.replace(/[^\d,]/g,"").split(","),qe=e=>{if(e.length<2)throw new Error("Invalid color object, cannot convert to HSL.");const t=e[0]/255,a=e[1]/255,n=e[2]/255,o=Math.min(t,a,n),r=Math.max(t,a,n),i=r-o;let s=0,c=0,l=0;return s=0===i?0:r===t?(a-n)/i%6:r===a?(n-t)/i+2:(t-a)/i+4,s=Math.round(60*s),s<0&&(s+=360),l=(r+o)/2,c=0==i?0:i/(1-Math.abs(2*l-1)),c=+(100*c).toFixed(1),l=+(100*l).toFixed(1),{hsl:`hsl(${s}, ${c}%, ${l}%)`,hsla:`hsl(${s}, ${c}%, ${l}%, 1)`,hue:s,lightness:l,saturation:c}},je=e=>{if(!e)throw new Error("Color is not defined");const t=e.toLowerCase();let a;if(t.includes("rgb")){const e=Ze(t);e.length>3&&e.pop(),a=qe(e).hue}if(t.includes("#")){const e=(e=>{if(!e.includes("#"))throw new Error("Invalid hex value, cannot convert to RGB. Hex value begins with a hashtag.");let t=0,a=0,n=0;if(4===e.length)t=`0x${e[1]}${e[1]}`,a=`0x${e[2]}${e[2]}`,n=`0x${e[3]}${e[3]}`;else{if(7!==e.length)throw new Error("Invalid hex string length, cannot convert to RGB.");t=`0x${e[1]}${e[2]}`,a=`0x${e[3]}${e[4]}`,n=`0x${e[5]}${e[6]}`}return[+t,+a,+n]})(t);a=qe(e).hue}if(t.includes("hsl")){a=Ze(t)[0]}const n=a?.toString();if(!n)throw new Error(`Hue was unable to be extracted from "${t}", check color format. Accepted formats are: rgb(), rgba(), hex, hsl(), and hsla()`);return n},Qe=(e,t=!1)=>{const a=je(e);return t?{background1:`hsla(${a}, 0%, 100%, 1)`,background2:`hsla(${a}, 67%, 99%, 1)`,background3:`hsla(${a}, 26%, 96%, 1)`,background4:`hsla(${a}, 15%, 94%, 1)`,background5:`hsla(${a}, 10%, 88%, 1)`,background6:`hsla(${a}, 80%, 80%, 1)`}:{background1:`hsla(${a}, 8%, 7%, 1)`,background2:`hsla(${a}, 8%, 13%, 1)`,background3:`hsla(${a}, 9%, 15%, 1)`,background4:`hsla(${a}, 6%, 23%, 1)`,background5:`hsla(${a}, 21%, 28%, 1)`,background6:`hsla(${a}, 5%, 51%, 1)`}},Ye=(e,t)=>{const a={};return Object.keys(e).forEach((n=>{a[n]=t[n]?t[n]:e[n]})),a};var Xe=a(877),et=a.n(Xe),tt=a(67),at=a.n(tt);const nt={light:{symbol:at()?.src||""},dark:{symbol:et()?.src||""}},ot=W&&"complete"!==document.readyState&&new Promise((e=>document.addEventListener("readystatechange",(()=>{"complete"===document.readyState&&e()}))));function rt(e){let t;const a=new Set;return()=>{if(!A)throw new Error("getChannelClient cannot be used outside an OpenFin env. Avoid using this method during pre-rendering.");return t||(t=(async()=>{await ot;const n={clientAPIVersion:O},o=await fin.InterApplicationBus.Channel.connect(e,{payload:n});return o.onDisconnection((async()=>{a.forEach((e=>e())),a.clear(),console.warn(`disconnected from channel provider ${e}`),t=void 0})),o})().then((e=>(e.addDisconnectionListener=e=>{a.add(e)},e))).catch((a=>{throw t=void 0,new Error(`failed to connect to channel provider ${e}: ${a}`)}))),t}}var it,st;!function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(it||(it={})),function(e){e[e.Initial=0]="Initial",e[e.Open=1]="Open",e[e.Close=2]="Close"}(st||(st={}));const ct=rt("__of_workspace_protocol__"),lt=ct;rt("__search-openfin-browser-home-topic__");var dt;!function(e){e.LaunchApp="launchApp",e.SavePage="savePage",e.GetSavedPage="getSavedPage",e.CreateSavedPage="createSavedPage",e.UpdateSavedPage="updateSavedPage",e.DeleteSavedPage="deleteSavedPage",e.GetSavedPages="getSavedPages",e.CreateSavedPageInternal="createSavedPageInternal",e.UpdateSavedPageInternal="updateSavedPageInternal",e.DeleteSavedPageInternal="deleteSavedPageInternal",e.UpdatePageForWindow="updatePageForWindow",e.AttachPagesToWindow="attachPagesToWindow",e.DetachPagesFromWindow="detachPagesFromWindow",e.ReorderPagesForWindow="reorderPagesForWindow",e.SetActivePage="setActivePage",e.AddPage="addPage",e.AddDefaultPage="addDefaultPage",e.GetAllAttachedPages="getAllAttachedPages",e.GetActivePageIdForWindow="getActivePageIdForWindow",e.GetPagesForWindow="getPagesForWindow",e.GetPageForWindow="getPageForWindow",e.GetSavedPageMetadata="getSavedPageMetadata",e.GetUniquePageTitle="getUniquePageTitle",e.GetLastFocusedBrowserWindow="getLastFocusedBrowserWindow",e.GetPageByViewIdentity="getPageByViewIdentity",e.GetThemes="getThemes",e.GetSelectedScheme="getSelectedScheme",e.SetSelectedScheme="setSelectedScheme",e.OpenGlobalContextMenuInternal="openGlobalContextMenuInternal",e.OpenViewTabContextMenuInternal="openViewTabContextMenuInternal",e.OpenPageTabContextMenuInternal="openPageTabContextMenuInternal",e.OpenSaveButtonContextMenuInternal="openSaveButtonContextMenuInternal",e.InvokeCustomActionInternal="invokeCustomActionInternal",e.RequestQuitPlatformDialogInternal="requestQuitPlatformDialogInternal",e.GetSavedWorkspace="getSavedWorkspace",e.CreateSavedWorkspace="createSavedWorkspace",e.UpdateSavedWorkspace="updateSavedWorkspace",e.DeleteSavedWorkspace="deleteSavedWorkspace",e.GetSavedWorkspaces="getSavedWorkspaces",e.SaveWorkspace="saveWorkspace",e.GetCurrentWorkspace="getCurrentWorkspace",e.ApplyWorkspace="applyWorkspace",e.SetActiveWorkspace="setActiveWorkspace",e.IsBrowserInitialized="isBrowserInitialized",e.Analytics="analyticsInternal",e.GetLanguage="getLanguage",e.GetLanguageResourcesInternal="getLanguageResourcesInternal",e.SetLanguage="setLanguage",e.GetDockProviderConfig="getDockProviderConfig",e.SaveDockProviderConfig="saveDockProviderConfig",e.HandleSaveModalOnPageClose="handleSaveModalOnPageClose",e.ShouldPageClose="shouldPageClose",e.ShouldWindowClose="shouldWindowClose",e.CopyPage="copyPage",e.HandlePageChanges="handlePageChanges",e.MarkUnsavedPagesAsSavedInternal="markUnsavedPagesAsSavedInternal",e.TrackRemovedTabInternal="trackRemovedTabInternal",e.RestoreRemovedTabInternal="restoreRemovedTabInternal",e.TrackVisitedSiteInternal="trackVisitedSiteInternal",e.GetRecentlyVisitedSitesInternal="getRecentlyVisitedSitesInternal",e.GetFrequentlyVisitedSitesInternal="getFrequentlyVisitedSitesInternal",e.SearchSitesInternal="searchSitesInternal",e.GetSearchProvidersInternal="getSearchProvidersInternal",e.GetCuratedContentInternal="getCuratedContentInternal",e.HandleRequestNavigationInternal="handleRequestNavigationInternal",e.RefreshBookmarksInternal="refreshBookmarksInternal",e.LaunchBookmarkInternal="launchBookmarkInternal",e.GetNotificationsConfig="getNotificationsConfig",e.UpdateDockFavoritesInternal="updateDockFavoritesInternal",e.UpdateContentMenuInternal="updateContentMenuInternal",e.LaunchDockEntryInternal="launchDockEntryInternal",e.SetDockFavoritesOrderInternal="setDockFavoritesOrderInternal",e.NavigateContentMenuInternal="navigateContentMenuInternal",e.SetDefaultDockButtonsOrderInternal="setDefaultDockButtonsOrderInternal",e.GetDockWorkspacesContextMenuInternal="getDockWorkspacesContextMenuInternal",e.HandleDockWorkspacesMenuResponseInternal="handleDockWorkspacesMenuResponseInternal",e.RemoveDockFavoriteInternal="removeDockFavoriteInternal",e.AddDockFavoriteInternal="addDockFavoriteInternal",e.FocusAndExpandSearchInternal="focusAndExpandSearchInternal",e.SendUpdateVersionModalResponseInternal="sendUpdateVersionModalResponseInternal",e.ShowUpdateVersionModalInternal="showUpdateVersionModalInternal"}(dt||(dt={}));const ut=async e=>fin.Platform.wrapSync(e).getClient(),pt=async e=>{const t=await ut(e),a="Target is not a Workspace Platform. Target must call WorkspacePlatform.init";let n;try{n=await t.dispatch("isWorkspacePlatform")}catch(e){throw new Error(a)}if("boolean"==typeof n&&n)return console.warn("You are using an older version of the workspace platform. Please update your workspace platform."),n;if("object"==typeof n&&n.isWorkspacePlatform)return n;throw new Error(a)},wt=async e=>(await pt(e),ut(e)),gt=async e=>{const t=await pt(e);if("object"==typeof t&&!0!==t?.isBrowserInitialized)throw new Error("Target is not a Browser-enabled Workspace Platform.");return ut(e)},ht="dark",mt={[Je.Palette.brandPrimary]:"#0A76D3",[Je.Palette.statusSuccess]:Je.Color.functional1,[Je.Palette.statusWarning]:Je.Color.functional10,[Je.Palette.statusCritical]:Je.Color.functional7,[Je.Palette.statusActive]:Je.Color.functional3,[Je.Palette.contentBackground1]:"#0A76D3",[Je.Palette.contentBackground2]:"#000000",[Je.Palette.contentBackground3]:"#000000",[Je.Palette.contentBackground4]:"#000000",[Je.Palette.contentBackground5]:"#000000"},kt={...mt,[Je.Palette.background1]:Je.Color.white,[Je.Palette.background2]:Je.Color.lightGray1,[Je.Palette.background3]:Je.Color.lightGray2,[Je.Palette.background4]:Je.Color.lightGray3,[Je.Palette.background5]:Je.Color.lightGray4,[Je.Palette.background6]:Je.Color.lightGray5,[Je.Palette.brandSecondary]:Je.Color.lightGray4,[Je.Palette.inputBackground]:Je.Color.lightGray3,[Je.Palette.inputColor]:Je.Color.darkGray5,[Je.Palette.inputPlaceholder]:Je.Color.darkGray2,[Je.Palette.inputDisabled]:Je.Color.neutralGray,[Je.Palette.inputFocused]:Je.Color.lightGray5,[Je.Palette.inputBorder]:Je.Color.neutralGray,[Je.Palette.textDefault]:Je.Color.darkGray5,[Je.Palette.textHelp]:Je.Color.darkGray3,[Je.Palette.textInactive]:Je.Color.neutralGray},bt={...mt,[Je.Palette.background1]:Je.Color.darkGray6,[Je.Palette.background2]:Je.Color.darkGray5,[Je.Palette.background3]:Je.Color.darkGray4,[Je.Palette.background4]:Je.Color.darkGray3,[Je.Palette.background5]:Je.Color.darkGray2,[Je.Palette.background6]:Je.Color.darkGray1,[Je.Palette.brandSecondary]:Je.Color.darkGray2,[Je.Palette.inputBackground]:Je.Color.darkGray1,[Je.Palette.inputColor]:Je.Color.white,[Je.Palette.inputPlaceholder]:Je.Color.lightGray5,[Je.Palette.inputDisabled]:Je.Color.neutralGray,[Je.Palette.inputFocused]:Je.Color.lightGray5,[Je.Palette.inputBorder]:Je.Color.neutralGray,[Je.Palette.textDefault]:Je.Color.white,[Je.Palette.textHelp]:Je.Color.lightGray5,[Je.Palette.textInactive]:Je.Color.neutralGray},yt=[{label:"OpenFin Default Light and Dark Theme",palettes:{light:{...kt,brandPrimary:"#0A76D3",brandSecondary:Je.Color.lightGray4,backgroundPrimary:Je.Color.darkGray5},dark:{...bt,brandPrimary:"#0A76D3",brandSecondary:Je.Color.darkGray2,backgroundPrimary:Je.Color.darkGray5}}}],ft=e=>{const{background:t,foreground:a}=e;return{background:t,foreground:a??"#FFFFFF"}},St=(e,t)=>({icons:{symbol:e.brand?.icons?.[t]?.symbol||nt[t].symbol}}),vt=e=>{const{light:t,dark:a}="palettes"in e?e.palettes:{light:e.palette,dark:e.palette},n=Ye(bt,a),o=Ye(kt,t),r=((e,t)=>{const a={...e},n={...t};let o=t.backgroundPrimary?Qe(t.backgroundPrimary,!0):{},r=e.backgroundPrimary?Qe(e.backgroundPrimary):{};return o={...o,...n},r={...r,...a},{light:{...t,...o},dark:{...e,...r}}})(a,t),i={...(0,Je.createTheme)({...n,...r?.dark}),brand:St(e,"dark")},s={...(0,Je.createTheme)({...o,...r?.light}),brand:St(e,"light")},{light:c,dark:l}=(e=>{const t=Object.keys(e.notificationIndicatorColors??{});if(t?.length){const a={},n={};return t.forEach((t=>{const o=e.notificationIndicatorColors[t];"background"in o?(a[t]=ft(o),n[t]=ft(o)):(a[t]=ft(o.dark??o.light),n[t]=ft(o.light??o.dark))})),{light:n,dark:a}}return{light:null,dark:null}})(e);return i.notificationIndicatorColors=l,s.notificationIndicatorColors=c,{dark:i,light:s}},Pt=async e=>{const{themes:t,selectedScheme:a}=await(async e=>{const t=fin?.__internal_?.initialOptions?.workspacePlatform?._themeData;if(!t||e.uuid!==we.uuid)return{themes:await Da(e).Theme.getThemes(),selectedScheme:await Da(e).Theme.getSelectedScheme()};return t})(e);var n,o;return(n=t?.length?t:yt,o=a,n.map((e=>{const t="palettes"in e?e.default:ht,{light:a,dark:n}=vt(e);return{label:e.label,logoUrl:e.logoUrl,theme:{dark:n,light:a},defaultScheme:o??t}})))[0]},Ct=async e=>{const t=await wt(e||fin.me.identity),a=await t.dispatch(dt.GetSelectedScheme,void 0);return a===m.System?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a},Mt=async(e,t)=>{const a=await Pt(fin.me.identity),n=await Ct(fin.me.identity)===m.Dark,o=a?.theme;return o?.[n?m.Dark:m.Light]?.palette?.[e]||t};let xt;const It=async e=>{xt||(xt=new TextEncoder);const t=xt.encode(e),a=await window.crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(a)).map((e=>e.toString(16).padStart(2,"0"))).join("")};function At(e){return e&&"object"==typeof e&&!Array.isArray(e)}function Wt(e,...t){if(!t.length)return e;const a=t.shift();return At(e)&&At(a)&&Object.entries(a).forEach((([t,a])=>{if(At(a))return e[t]||(e[t]={}),Wt(e[t],a);e[t]=a})),Wt(e,...t)}const Dt=require("lodash.debounce");var Rt,Tt=a.n(Dt);function Bt(){return void 0!==typeof crypto&&"randomUUID"in crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}!function(e){e.CurrentWorkspaceId="currentWorkspaceId",e.LastFocusedBrowserWindow="lastFocusedBrowserWindow",e.MachineName="machineName",e.NewTabPageLayout="NewTabPageLayout",e.NewTabPageSort="NewTabPageSort",e.DockPosition="DockPosition",e.SelectedColorScheme="SelectedColorScheme",e.ThemePaletteSheet="ThemePaletteSheet",e.HasMovedStore="HasMovedStore",e.PageDragState="BrowserPageDragState"}(Rt||(Rt={}));const Et=Rt;function Ft(){return localStorage.getItem(Et.MachineName)??"unknown"}let Vt;async function Nt(){return Vt||(Vt=await fin.System.getMachineId()),Vt}const Lt=e=>{if(Array.isArray(e.workspacePlatform?.pages)&&(e.layoutSnapshot||e.layout)){const t=e.workspacePlatform.pages.find((e=>e.isActive));if(t){const a=e.layoutSnapshot?e.layoutSnapshot.layouts[t.layoutContainerKey]:e.layout;if(a)if(t.isLocked){const n=Ga(a,t.layout);t.layout=n,e.layout=n}else t.layout=a,e.layout=a}}return e};async function _t(e){const t=e||await fin.Platform.getCurrentSync().getSnapshot();if(t.snapshotDetails?.machineId)return t;const a=Ft();return{...t,snapshotDetails:{...t.snapshotDetails,machineId:await Nt(),machineName:a}}}const Ot=async e=>({...e,layoutDetails:{machineId:await Nt(),machineName:Ft()}}),Ut=async(e,t)=>({pageId:Bt(),title:e,layout:await Ot(t),isReadOnly:!1}),Gt=async e=>{const t=await Ut(e.title,La(e.layout));return e.panels&&(t.panels=e.panels.map((e=>({...e,viewOptions:Na(e.viewOptions)})))),{...e,...t}},Ht=e=>{const t=fin.Platform.Layout.wrapSync(e);return{show:async()=>{const a=await t.getConfig(),{settings:n,dimensions:o}=a,r=await We(e);await t.replace({...a,settings:{...n,hasHeaders:!0,reorderEnabled:!0},dimensions:{...o,headerHeight:r?28:30}})},hide:async e=>{const a=await t.getConfig(),{settings:n,dimensions:o}=await a;await t.replace({...a,settings:{...n,hasHeaders:!1,reorderEnabled:e?.settings?.reorderEnabled??!1},dimensions:{...o,headerHeight:0}})},isShowingTabs:async()=>{try{const e=await t.getConfig(),{settings:a}=await e;return a.hasHeaders}catch(e){return console.error("failed to get layout config: ",e),!0}}}},$t="of-workspace-";const Kt=new class{mark(e){performance.mark(`${$t}${e}`)}markStart(e){performance.mark(`${$t}${e}-start`)}markEnd(e){performance.mark(`${$t}${e}-end`)}markEndAndMeasure(e){performance.mark(`${$t}${e}-end`);try{return performance.measure(`${$t}${e}`,`${$t}${e}-start`,`${$t}${e}-end`)}catch(e){0}}markAndMeasure(e,t){performance.mark(`${$t}${e}`);try{return performance.measure(`${$t}${e}-measure`,`${$t}${t}-start`,`${$t}${e}`)}catch(e){0}}reportWorkspacePerformanceEntries(){return performance.getEntriesByType("measure").filter((e=>e.name.startsWith($t)))}reportWorkspacePerformance(){return this.reportWorkspacePerformanceEntries().map((e=>({name:e.name.replace(`${$t}`,"").replace("-measure",""),duration:e.duration})))}},zt=(e,t)=>t?`${t}-${e.uuid}-${e.name}`:`__browser_window__-${e.uuid}-${e.name}`,Jt=new Map,Zt=e=>(Jt.has(e)||Jt.set(e,rt(e)),Jt.get(e)()),qt=(e,t)=>{const a=zt(e,t);return Zt(a)};var jt,Qt,Yt,Xt,ea,ta;!function(e){e.CloseBrowserWindow="close-browser-window",e.QuitPlatform="quit-platform",e.ClosePage="close-page",e.AddToChannel="add-to-channel",e.RemoveFromChannel="remove-from-channel",e.OpenSaveModalInternal="open-save-modal-internal",e.DuplicatePage="duplicate-page",e.SetSelectedScheme="set-selected-scheme",e.ShowBrowserIndicator="show-browser-indicator",e.SetSelectedLanguage="set-selected-language",e.RefreshBookmarksInternal="refresh-bookmarks",e.GetLayoutsWithSelectedViewsInternal="get-layouts-with-selected-views",e.FocusAndExpandSearchInternal="focus-and-expand-search"}(jt||(jt={})),function(e){e.GetPages="get-pages",e.GetActivePageForWindow="get-active-page-for-window",e.AttachPagesToWindow="attach-pages-to-window",e.DetachPagesFromWindow="detach-pages-from-window",e.SetActivePageForWindow="set-active-page-for-window",e.RenamePage="rename-page",e.ReorderPagesForWindow="reorder-pages-for-window",e.UpdatePageForWindow="update-page-for-window",e.UpdatePagesWindowOptions="update-pages-window-options",e.IsDetachingPages="is-detaching-pages",e.IsActivePageChanging="is-active-page-changing"}(Qt||(Qt={})),function(e){e.GetApps="get-apps",e.GetCuratedContent="get-curated-content",e.GetRecentlyVisited="get-recently-visited",e.GetSearchProviders="get-search-providers"}(Yt||(Yt={})),function(e){e.CreateBookmarkNode="create-bookmark-node",e.GetBookmarkNode="get-bookmark-node",e.SearchBookmarkNodes="search-bookmark-nodes",e.UpdateBookmarkNode="update-bookmark-node",e.DeleteBookmarkNode="delete-bookmark-node"}(Xt||(Xt={})),function(e){e.UpdateFavoriteEntries="update-favorite-entries",e.UpdateContentMenu="update-content-menu",e.NavigateContentMenu="navigate-content-menu"}(ea||(ea={})),function(e){e.SendUpdateVersionModalResponse="send-update-version-modal-response"}(ta||(ta={}));const aa={...jt,...Qt,...ea},na=rt(`${"undefined"!=typeof fin&&fin?.me.identity.uuid}-enterprise-bookmarks`),oa=e=>({identity:e,openfinWindow:fin.Window.wrapSync(e),_bookmarks:{_createBookmarkNode:async e=>(async e=>(await na()).dispatch(Xt.CreateBookmarkNode,e))(e),_getBookmarkNode:async e=>(async e=>(await na()).dispatch(Xt.GetBookmarkNode,e))(e),_searchBookmarkNodes:async e=>(async e=>(await na()).dispatch(Xt.SearchBookmarkNodes,e))(e),_updateBookmarkNode:async e=>(async e=>(await na()).dispatch(Xt.UpdateBookmarkNode,e))(e),_deleteBookmarkNode:async e=>(async e=>(await na()).dispatch(Xt.DeleteBookmarkNode,e))(e)},getPages:async()=>(await gt(e)).dispatch(dt.GetPagesForWindow,e),getPage:async t=>(await gt(e)).dispatch(dt.GetPageForWindow,{identity:e,pageId:t}),addPage:async t=>Ra().Browser.wrapSync(e)._addPage(t),_addPage:async(t,a)=>{const n=await gt(e),o={identity:e,page:t,insertionIndex:a?.index,multiInstanceViewBehavior:a?.multiInstanceViewBehavior};return n.dispatch(dt.AddPage,o)},removePage:async t=>(await gt(e)).dispatch(dt.DetachPagesFromWindow,{identity:e,pageIds:[t]}),reparentPage:async t=>Ra().Browser.wrapSync(e)._reparentPage(t),_reparentPage:async t=>{const{pageId:a}=t,n=await gt(e),o=(await n.dispatch(dt.GetAllAttachedPages,void 0)).find((({pageId:e})=>e===a));if(!o)throw new Error(`Reparent Page Error: Target page with pageId ${a} not found`);o.multiInstanceViewBehavior="reparent";const r={identity:e,pages:[o],insertionIndex:t.index};return n.dispatch(dt.AttachPagesToWindow,r)},setActivePage:async t=>(await gt(e)).dispatch(dt.SetActivePage,{identity:e,pageId:t}),updatePage:async t=>{const a=await gt(e);return t.identity=e,a.dispatch(dt.UpdatePageForWindow,t)},reorderPages:async t=>{const a=await gt(e);return t.identity=e,a.dispatch(dt.ReorderPagesForWindow,t)},_openGlobalContextMenu:async t=>{const a=await gt(e);return t.identity=e,a.dispatch(dt.OpenGlobalContextMenuInternal,t)},replaceToolbarOptions:async t=>{await gt(e);const a=fin.Window.wrapSync(e);await a.updateOptions({workspacePlatform:{toolbarOptions:t}})},replaceWindowStateButtonOptions:async t=>{await gt(e);const a=fin.Window.wrapSync(e);await a.updateOptions({workspacePlatform:{windowStateButtonOptions:t}})},updateBrowserWindowTitle:async t=>{const a=fin.Window.wrapSync(e);"string"!=typeof t?await a.updateOptions({workspacePlatform:{title:t}}):console.warn("Type string for window title is deprecated, please use WindowTitle type instead",t)},_openViewTabContextMenu:async t=>{const a=await gt(e);return t.identity=e,a.dispatch(dt.OpenViewTabContextMenuInternal,t)},_openPageTabContextMenu:async t=>{const a=await gt(e);return t.identity=e,a.dispatch(dt.OpenPageTabContextMenuInternal,t)},_openSaveModal:async t=>{await gt(e);return(await qt(e)).dispatch(aa.OpenSaveModalInternal,t)},_getLayoutsWithSelectedViews:async()=>(await qt(e)).dispatch(aa.GetLayoutsWithSelectedViewsInternal,e),_openSaveButtonContextMenu:async t=>{const a=await gt(e);return t.identity=e,a.dispatch(dt.OpenSaveButtonContextMenuInternal,t)},_addDefaultPage:async t=>{const a=await gt(e);return t.identity=e,a.dispatch(dt.AddDefaultPage,t)},_trackRemovedTab:async t=>(await gt(e)).dispatch(dt.TrackRemovedTabInternal,t),_restoreRemovedTab:async t=>(await gt(e)).dispatch(dt.RestoreRemovedTabInternal,t),_trackVisitedSite:async t=>(await gt(e)).dispatch(dt.TrackVisitedSiteInternal,t),_getRecentlyVisitedSites:async t=>(await gt(e)).dispatch(dt.GetRecentlyVisitedSitesInternal,t),_getFrequentlyVisitedSites:async t=>(await gt(e)).dispatch(dt.GetFrequentlyVisitedSitesInternal,t),_searchSites:async t=>(await gt(e)).dispatch(dt.SearchSitesInternal,{identity:e,req:t}),_getSearchProviders:async()=>(await gt(e)).dispatch(dt.GetSearchProvidersInternal,{identity:e}),_getCuratedContent:async t=>(await gt(e)).dispatch(dt.GetCuratedContentInternal,{identity:e,req:t}),_handleRequestNavigation:async t=>(await gt(e)).dispatch(dt.HandleRequestNavigationInternal,t),_sendUpdateVersionModalResponse:async t=>(await gt(e)).dispatch(dt.SendUpdateVersionModalResponseInternal,t)}),ra=e=>{const t=fin.Platform.wrapSync(e);return{wrapSync:e=>oa(e),createWindow:async a=>{const n=(()=>{const e=`browser-window-startup-${Bt()}`;return Kt.markStart(e),e})();(e=>{fin.Application.wrapSync({uuid:fin.me.identity.uuid}).once("window-shown",(()=>{Kt.markAndMeasure("browser-window-shown",e)}))})(n),await gt(e);const o=await t.createWindow(a);return(e=>{Kt.markAndMeasure("browser-window-started",e)})(n),oa(o.identity)},getAllAttachedPages:async()=>(await gt(e)).dispatch(dt.GetAllAttachedPages,void 0),getAllWindows:async()=>{await gt(e);return(await be()).map((e=>oa(e.identity)))},getUniquePageTitle:async t=>(await gt(e)).dispatch(dt.GetUniquePageTitle,t),getLastFocusedWindow:async()=>(await gt(e)).dispatch(dt.GetLastFocusedBrowserWindow,void 0),getPageByViewIdentity:async t=>(await gt(e)).dispatch(dt.GetPageByViewIdentity,t)}},ia=e=>({createPage:async t=>(await gt(e)).dispatch(dt.CreateSavedPageInternal,t),deletePage:async t=>(await gt(e)).dispatch(dt.DeleteSavedPageInternal,t),updatePage:async t=>(await gt(e)).dispatch(dt.UpdateSavedPageInternal,t),getPage:async t=>(await gt(e)).dispatch(dt.GetSavedPage,t),getPages:async t=>(await gt(e)).dispatch(dt.GetSavedPages,t),savePage:async t=>(await gt(e)).dispatch(dt.SavePage,t),createWorkspace:async t=>(await wt(e)).dispatch(dt.CreateSavedWorkspace,t),deleteWorkspace:async t=>{const a=Ra(),n=await a.getCurrentWorkspace();if(n.workspaceId===t)throw new Error(`Cannot delete current active workspace ${n.title}`);return(await wt(e)).dispatch(dt.DeleteSavedWorkspace,t)},updateWorkspace:async t=>(await wt(e)).dispatch(dt.UpdateSavedWorkspace,t),getWorkspace:async t=>(await wt(e)).dispatch(dt.GetSavedWorkspace,t),getWorkspaces:async t=>(await wt(e)).dispatch(dt.GetSavedWorkspaces,t),saveWorkspace:async t=>(await wt(e)).dispatch(dt.SaveWorkspace,t),getDockProviderConfig:async t=>(await wt(e)).dispatch(dt.GetDockProviderConfig,t),saveDockProviderConfig:async t=>(await wt(e)).dispatch(dt.SaveDockProviderConfig,t)});var sa;!function(e){e.UpdatePlatformThemeScheme="update-platform-theme-scheme"}(sa||(sa={}));const ca=rt("of-workspace-notifications-sync"),la=(e,t)=>{localStorage.setItem(`${T}-${e}`,t)},da=e=>localStorage.getItem(`${T}-${e}`),ua=e=>localStorage.removeItem(`${T}-${e}`),pa=m.System,wa=e=>Object.entries(e).reduce(((e,[t,a])=>`${e}--workspace-palette-${t}: ${a};`),""),ga=(e,t)=>{const a=!!e.contentBackground5&&"#000000"!==e.contentBackground5,n=!!e.contentBackground4&&"#000000"!==e.contentBackground4;return{dockExpandedContainerBorder:a?`1px solid ${e.contentBackground5}`:"",dockExpandedContainerBorderRadius:a&&t?"0":"10px",dockExpandedContainerBackground:n?e.contentBackground4:e.background1,fillerBackgroundColor:n?e.contentBackground4:"inherit",dockCompanionContainerBackground:n?e.contentBackground4:"inherit",dockComponentContainerBackground:a?e.contentBackground5:e.background5,styledDropdownActiveBackground:`${a?e.contentBackground5:e.background5} !important`,contentMenuWrapperInternalDivBorderColor:a?e.contentBackground5:e.background5,contentMenuItemContainerActiveBackground:a?e.contentBackground5:e.background3,contentMenuItemContainerHoverBackground:a?e.contentBackground5:e.background2,contentMenuHeaderBorderColor:a?e.contentBackground5:e.background5,dockCompanionSeparatorBorderColor:a?e.contentBackground5:e.background3,companionDockButtonActiveBackground:a?e.contentBackground5:e.background4,companionDockButtonHoverBackground:a?e.contentBackground5:e.background4}},ha=(e,t,a)=>({selectedTab:"dark"===t?e.background3:e.background1,...ga(e,a)});const ma=new class{constructor(e){this.providerStorage=e,this.getVarsByScheme=e=>"dark"===e?this.darkPaletteVars:this.lightPaletteVars,this.setWorkspaceStorageProxy=e=>{this.workspaceStorage=e},this.trySynchronizeWorkspaceStorage=async()=>{if(this.workspaceStorage){const e=this.getScheme();if(await this.workspaceStorage.setItem(Et.SelectedColorScheme,e),this.darkPaletteVars&&this.lightPaletteVars)if("dark"===e||"light"===e)await this.workspaceStorage.setItem(Et.ThemePaletteSheet,`:root{${this.getVarsByScheme(e)}}`);else{const e=`@media (prefers-color-scheme: dark){:root {${this.getVarsByScheme("dark")}}}`,t=`@media (prefers-color-scheme: light){:root{${this.getVarsByScheme("light")}}}`;await this.workspaceStorage.setItem(Et.ThemePaletteSheet,`${t}${e}`)}}},this.setPalettes=async({light:e,dark:t},a)=>{this.lightPaletteVars=wa({...e,...ha(e,"light",a)}),this.darkPaletteVars=wa({...t,...ha(t,"dark",a)})}}setScheme(e){this.providerStorage.setItem(Et.SelectedColorScheme,e)}getScheme(){return null===this.providerStorage.getItem(Et.SelectedColorScheme)&&this.providerStorage.setItem(Et.SelectedColorScheme,pa),this.providerStorage.getItem(Et.SelectedColorScheme)}}(d),ka=()=>ma,ba=e=>({getThemes:async()=>(await wt(e)).dispatch(dt.GetThemes,void 0),setSelectedScheme:async t=>(await wt(e)).dispatch(dt.SetSelectedScheme,t),getSelectedScheme:async()=>(await wt(e)).dispatch(dt.GetSelectedScheme,void 0)}),ya=async e=>{const t=await lt();await t.dispatch("set-selected-scheme",e)},fa=async e=>{const t=await ca();await t.dispatch(sa.UpdatePlatformThemeScheme,{scheme:e})},Sa=async e=>{const t=await be();return Promise.all(t.map((async t=>{const a=await qt(t.identity);await a.dispatch(aa.SetSelectedScheme,e)})))},va=async e=>{const t=new Array,a=fin.Application.getCurrentSync(),n=await a.getViews();for(const e of n){-1!==e.identity.name.indexOf(de.BrowserAddressSearchPrefix)&&t.push(e.identity);-1!==(await e.getOptions()).url.indexOf(K.EnterpriseBrowser)&&t.push(e.identity)}return Promise.all(t.map((async t=>{const a=await qt(t,"theme-change-listener");await a.dispatch(aa.SetSelectedScheme,e)})))},Pa=async e=>{const t=await ye();return Promise.all(t.map((async t=>{const a=await qt(t.identity);await a.dispatch(aa.SetSelectedScheme,e)})))},Ca=async e=>{const t=await qt({uuid:we.uuid,name:de.EnterpriseContextMenu});await t.dispatch(aa.SetSelectedScheme,e)},Ma=async e=>{const t=await qt({uuid:we.uuid,name:de.EnterpriseBookmarkDialogWindow});await t.dispatch(aa.SetSelectedScheme,e).catch((()=>{}))},xa=async e=>{const t=await qt({uuid:we.uuid,name:de.DropdownMenu});await t.dispatch(aa.SetSelectedScheme,e).catch((()=>{}))},Ia=async e=>{const t=await qt({uuid:we.uuid,name:de.DockCompanion});await t.dispatch(aa.SetSelectedScheme,e).catch((()=>{}))},Aa=async e=>{try{const t=ka();t.setScheme(e),await Promise.all([t.trySynchronizeWorkspaceStorage(),va(e),fa(e),Sa(e),Pa(e),Ca(e),ya(e),Ma(e),xa(e),Ia(e)])}catch(e){console.error("failed to set the selected scheme: ",e)}},Wa=()=>{try{return ka().getScheme()}catch(e){console.error("failed to get the selected scheme: ",e)}},Da=e=>{const t=fin.Platform.wrapSync(e);let a;return Object.assign(t,{applySnapshot:async(t,a)=>{if("string"!=typeof t&&!t?.windows)throw new Error("Not a valid browser snapshot");return fin.Platform.wrapSync(e).applySnapshot(t,a)},getSnapshot:()=>fin.Platform.wrapSync(e).getSnapshot().then((e=>e)),getViewSnapshot:t=>fin.Platform.wrapSync(e).getViewSnapshot(t),createView:(t,a,n)=>fin.Platform.wrapSync(e).createView(t,a,n),launchApp:async t=>{console.warn("launchApp method is deprecated. It is recommended to use createView - https://developers.openfin.co/of-docs/docs/platform-getting-started#add-a-view-to-an-existing-window or createWindow - https://developers.openfin.co/of-docs/docs/platform-getting-started#create-a-platform-window instead."),t.target||(t.target={uuid:T,name:B,entityType:E||"unknown"});return(await wt(e)).dispatch(dt.LaunchApp,t)},_invokeCustomAction:async(t,a)=>{const n=await wt(e),o={actionId:t,payload:{...a,callerType:a.callerType||C.API}};return n.dispatch(dt.InvokeCustomActionInternal,o)},_requestQuitPlatformDialog:async t=>(await wt(e)).dispatch(dt.RequestQuitPlatformDialogInternal,t),_showUpdateVersionModal:async t=>(await wt(e)).dispatch(dt.ShowUpdateVersionModalInternal,t),getCurrentWorkspace:async()=>(await wt(e)).dispatch(dt.GetCurrentWorkspace,void 0),applyWorkspace:async(t,a)=>(await wt(e)).dispatch(dt.ApplyWorkspace,{...t,options:a}),setActiveWorkspace:async t=>(await wt(e)).dispatch(dt.SetActiveWorkspace,t),getLanguage:async()=>(await wt(e)).dispatch(dt.GetLanguage),_getLanguageResources:async()=>(await wt(e)).dispatch(dt.GetLanguageResourcesInternal),setLanguage:async t=>(await wt(e)).dispatch(dt.SetLanguage,t),_raiseAnalytics:async t=>{if(a||(a=await pt(e)),"object"==typeof a&&a?.analytics?.isSupported){return(await wt(e)).dispatch(dt.Analytics,t)}e.uuid},getNotificationsConfig:async()=>(await wt(e)).dispatch(dt.GetNotificationsConfig),_refreshBookmarksInternal:async()=>(await wt(e)).dispatch(dt.RefreshBookmarksInternal),_launchBookmarkInternal:async t=>(await wt(e)).dispatch(dt.LaunchBookmarkInternal,t),_updateDockFavoritesInternal:async t=>(await wt(e)).dispatch(dt.UpdateDockFavoritesInternal,t),_updateContentMenuInternal:async t=>(await wt(e)).dispatch(dt.UpdateContentMenuInternal,t),_launchDockEntryInternal:async t=>(await wt(e)).dispatch(dt.LaunchDockEntryInternal,t),_setDockFavoritesInternal:async t=>(await wt(e)).dispatch(dt.SetDockFavoritesOrderInternal,t),_setDefaultDockButtonsOrderInternal:async t=>(await wt(e)).dispatch(dt.SetDefaultDockButtonsOrderInternal,t),_removeDockFavoriteInternal:async t=>(await wt(e)).dispatch(dt.RemoveDockFavoriteInternal,t),_addDockFavoriteInternal:async t=>(await wt(e)).dispatch(dt.AddDockFavoriteInternal,t),_navigateContentMenuInternal:async t=>(await wt(e)).dispatch(dt.NavigateContentMenuInternal,t),_openDockWorkspacesContextMenuInternal:async()=>(await wt(e)).dispatch(dt.GetDockWorkspacesContextMenuInternal),_handleDockWorkspacesMenuResponseInternal:async t=>(await wt(e)).dispatch(dt.HandleDockWorkspacesMenuResponseInternal,t),_focusAndExpandSearchInternal:async()=>(await wt(e)).dispatch(dt.FocusAndExpandSearchInternal),Theme:ba(e),Browser:ra(e),Storage:ia(e)})},Ra=()=>Da(fin.me.identity),Ta={contextMenuOptions:{enabled:!0,template:["spellCheck","separator","print","separator","cut","copy","paste","undo","redo","selectAll","inspect","reload"]},downloadShelf:{enabled:!0}};function Ba(e,t){return Wt({},Ta,t,e)}const Ea="internal-generated-view-",Fa=(e,t)=>e.content?{...e,content:e.content.map((e=>Fa(e,t)))}:{...e,componentState:t(e.componentState)},Va=(e,t)=>{return a=Ba(e,t),{...a,name:a.name?a.name:`internal-generated-view-${Bt()}`,_internalWorkspaceData:{...a._internalWorkspaceData,viewIdentifier:a._internalWorkspaceData?.viewIdentifier||Bt()}};var a},Na=e=>({...e,name:void 0}),La=e=>{const t={...e};return Fa(t,Na)},_a=e=>{const t={...e};return Fa(t,(e=>e.name&&e.name.startsWith(Ea)?Na(e):e))},Oa=e=>{const t=[];return(e&&Array.isArray(e)?e:[]).forEach((e=>{if("component"===e.type)return t.push(e.componentState);const a=Oa(e.content);t.push(...a)})),t},Ua=async(e,t,a=we)=>{let n;if(await ke(a)){n=(await pe(a).getOptions()).layout||{settings:{}}}return{...n,content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{title:e,url:t}}]}]}};new Map,new Map;const Ga=(e,t)=>{const a=Oa(t.content);return{...Fa(e,(e=>{const t=a.find((t=>t._internalWorkspaceData?.viewIdentifier===e._internalWorkspaceData?.viewIdentifier)),n=t?t.isClosable:e.isClosable;return{...e,isClosable:n}})),settings:t.settings}},Ha=e=>e?Oa(e).length:0,$a=(Tt()((async e=>{try{const t=await(async e=>fin.Platform.Layout.wrapSync({...fin.me.identity,layoutName:e}).getConfig())(e.layoutContainerKey),a=t.content?Oa(t.content):[],n=a.length;n>1?(async e=>{if("multiView"!==e.attachedPageType){const t=await Ra().Browser.getUniquePageTitle();Ra().Browser.wrapSync(we).updatePage({pageId:e.pageId,page:{title:e.title??t,singleViewName:null,attachedPageType:"multiView"}})}})(e):1===n&&(async(e,t)=>{const a=Ra().Browser.wrapSync(we);if("singleView"!==e.attachedPageType){const n=await Gt(e);delete n.layout;const o={...n,title:null,singleViewName:t,hasUnsavedChanges:!1,attachedPageType:"singleView"};await a.updatePage({pageId:e.pageId,page:o})}})(e,a[0].name),await(async(e,t)=>{const a=Ht({...we,layoutName:e.layoutContainerKey}),n=await a.isShowingTabs();t>1?n||await a.show():1===t&&n&&await a.hide({settings:{reorderEnabled:!0}})})(e,n)}catch(e){}}),50,{leading:!1,trailing:!0}),require("react-i18next")),Ka=require("i18next");var za=a.n(Ka);const Ja=JSON.parse('{"contextMenu.newWindow":"新建窗口","contextMenu.newPage":"新建页面","contextMenu.restore":"还原到上次保存的更改","contextMenu.switchWorkspace":"切换工作区","contextMenu.appearance":"外观","contextMenu.saveWorkspace":"保存工作区","contextMenu.saveWorkspaceAs":"将工作区另存为...","contextMenu.renameWorkspace":"重命名工作区","contextMenu.deleteWorkspace":"删除工作区","contextMenu.downloads":"下载","contextMenu.savePage":"保存页面","contextMenu.savePageAs":"将页面另存为...","contextMenu.print":"打印...","contextMenu.printScreen":"打印屏幕","contextMenu.closeWindow":"关闭窗口","contextMenu.openStorefront":"开放式店面","contextMenu.quitPlatform":"退出平台","contextMenu.newView":"新建视图","contextMenu.openView":"使用默认 Web 浏览器打开视图","contextMenu.openViews":"使用默认 Web 浏览器打开视图","contextMenu.reload":"Reload CN","contextMenu.reloadView":"重新加载视图","contextMenu.reloadViews":"重新加载视图","contextMenu.duplicate":"Duplicate CN","contextMenu.duplicateView":"复制视图","contextMenu.duplicateViews":"复制视图","contextMenu.addView":"将视图添加到频道","contextMenu.addViews":"将视图添加到频道","contextMenu.removeView":"从频道中移除视图","contextMenu.removeViews":"从频道中移除视图","contextMenu.closeView":"关闭视图","contextMenu.closeViews":"关闭视图","contextMenu.closeTab":"Close Tab CN","contextMenu.duplicatePage":"复制页面","contextMenu.submenu.print":"打印","contextMenu.submenu.printAll":"全部打印","saveMenu.saveWorkspaceAs":"将工作区另存为","saveMenu.savePageAs":"将页面另存为","saveModal.enterValue":"Please enter a value CN","saveModal.alreadyExists":"{{title}} 已存在。","saveModal.pleaseEnterValidName":"请输入有效名称","saveModal.renamePage":"重新命名页面","saveModal.closePage":"关闭页面","saveModal.discardChanges":"放弃更改","saveModal.discardAll":"全部放弃","saveModal.saveAll":"全部保存","saveModal.savePagesCount":"关闭前保存 ({{count}}) 个页面?","defaultPageTitle":"Untitled Page CN","enterpriseDefaultPageTitle":"Untitled Supertab CN","addNewPage":"添加新页面","addNewTab":"添加新选项卡","addNewView":"新建视图","restoreModal":"您确定要还原到上次保存的更改吗?","modal.discardWarning":"任何未保存的更改都将丢失","modal.discardPageWarning":"对此页的任何未保存的更改都将丢失。","modal.saveChangesPrompt":"关闭前保存更改?","modal.pageClose":"关闭页面","switchWorkspaceModal":"您确定要切换到 {{workspace}} 吗?","switchWorkspaceModal.warning":"任何未保存的更改都将丢失","deleteWorkspaceModal":"您确定要永久删除此工作区吗?","replaceWorkspaceModal.warning":"名称为 {{workspace}} 的工作区已存在。您是否要替换它?","replaceWorkspaceModal.warning.body":"已存在同名的工作区。替换它将覆盖其当前内容。","replaceWorkspaceModal.replace":"替换","closePlatform":"关闭平台","closePlatform.workspace":"关闭 {{workspace}} 平台","closePlatform.warning":"关闭平台将关闭所有工作区、应用或任何正在运行的进程。","back":"后退","forward":"前进","reload":"重新加载","green":"绿色","purple":"紫色","orange":"橙色","red":"红色","pink":"粉红色","yellow":"黄色","theme.light":"浅色","theme.dark":"深色","theme.system":"与操作系统设置同步","toolbar.hideTabs":"隐藏选项卡","toolbar.showTabs":"显示选项卡","toolbar.lock":"锁定","toolbar.unlock":"解锁","toolbar.colorLinking":"颜色链接","toolbar.changeLayout":"更改布局","toolbar.saveMenu":"保存菜单","toolbar.maximizeWindow":"最大化窗口","toolbar.restoreWindow":"还原窗口","toolbar.minimizeWindow":"最小化窗口","changeLayout.fullWidth":"全宽","changeLayout.columns":"列数","changeLayout.Rows":"行数","changeLayout.Grid":"网格","successIndicator.workspaceSwitched":"已切换工作区","successIndicator.hidden":"选项卡已隐藏","successIndicator.shown":"选项卡已显示","successIndicator.locked":"页面已锁定","successIndicator.unlocked":"页面已解锁","successIndicator.workspaceSaved":"工作区已保存","successIndicator.workspaceSavedAs":"工作区已另存为 {{workspace}}","successIndicator.workspaceRenamed":"工作区已重命名","successIndicator.pageSaved":"页面已保存","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. CN","successIndicator.pageCopySaved":"页面已另存为 {{title}}","successIndicator.pageRenamed":"页面已重命名","successIndicator.contextGroupApplied":"已应用上下文组","successIndicator.namedContextGroupApplied":"已应用 {{colorName}} 上下文组","successIndicator.viewRemoved":"从上下文组中移除视图","successIndicator.viewsRemoved":"从上下文组中移除视图","successIndicator.layoutApplied":"已应用 {{layoutName}} 布局","successIndicator.workspaceDeleted":"工作区已删除","errorIndicator.pageSaveFailed":"页面保存失败","errorIndicator.workspaceSaveFailed":"工作区保存失败","errorIndicator.failedToDuplicatePage":"复制页面失败","infoIndicator.colorLinkAttempt":"我们尝试对此选项卡进行颜色链接,但网站/内容所有者尚未启用该功能","global.cancel":"取消","global.confirm":"确认","global.save":"保存","global.delete":"Delete CN","appResults.header":"Featured Content CN","recentlyClosed.header":"Recently Closed CN","landingPage.subheader":"Apps and websites selected by an admin will show here CN","aria.openBrowser":"打开浏览器菜单","aria.browserTabs":"浏览器选项卡","aria.viewTab":"查看 {{title}} 的选项卡","aria.closePage":"关闭 {{title}} 的页面选项卡按钮","aria.closeTab":"关闭选项卡 {{title}}","aria.title":"标题","aria.closeContextGroup":"使用转义关闭上下文组选择对话框","aria.colorLinking":"显示或隐藏颜色链接","aria.applyColorLinking":"请选择一个视图以应用颜色链接","aria.assignColorLinkingCurrentView":"分配给 {{name}} 上下文组的当前视图","aria.assignColorLinkingCurrentViews":"分配给 {{name}} 上下文组的当前视图","aria.setColorLinkingActiveView":"将活动视图设置为 {{name}} 上下文组","aria.setColorLinkingActiveViews":"将活动视图设置为 {{name}} 上下文组","aria.escapeLayoutDialog":"使用转义关闭更改布局对话框","global.supertab":"Supertab CN","global.tab":"Tab CN","bookmarks.editBookmark":"Edit Bookmark CN","bookmarks.bookmarkAdded":"Bookmark added CN","bookmarks.done":"Done CN","bookmarks.remove":"Remove CN","bookmarks.bookmarksPanel":"Bookmarks Panel CN","bookmarks.bookmarks":"Bookmarks CN","bookmarks.allBookmarks":"All Bookmarks CN","bookmarks.favorites":"Favorites CN","bookmarks.searchBookmarks":"Search Bookmarks CN","bookmarks.clearSearchInput":"Clear Search Input CN","bookmarks.createFolder":"Create New Folder CN","bookmarks.exitFolder":"Exit Folder CN","bookmarks.newFolder":"New Folder CN","bookmarks.namedFolder":"{{name}} Folder CN","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings CN","bookmarks.folderSettings":"{{name}} Folder Settings CN","bookmarks.noResultsFound":"No results found CN","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search CN","bookmarks.nothingToShow":"Nothing to show yet CN","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder CN","bookmarks.resultsFoundIn":"Results found in {{name}} CN","bookmarks.resultsInOtherFolders":"Results found in other folders CN","bookmarks.allResultsFoundIn":"All results found in CN","bookmarks.editName":"Edit Name CN","bookmarks.move":"Move CN","bookmarks.bookmarkAddedTitle":"Bookmark Added CN","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" CN","bookmarks.bookmarkEditedTitle":"Bookmark Edited CN","enterpriseContextMenu.saveSupertab":"Save Supertab CN","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... CN","enterpriseContextMenu.duplicate":"Duplicate CN","enterpriseContextMenu.deleteSupertab":"Delete Supertab CN","enterpriseContextMenu.newTab":"New Tab CN","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As CN","enterpriseSaveModal.renameSupertab":"Rename CN","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. CN","enterpriseSaveModal.closeTab":"Close Tab CN","enterpriseSaveModal.closeSupertab":"Close Supertab CN","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? CN","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. CN","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? CN","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. CN","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved CN","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. CN","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted CN","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. CN","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab CN","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab CN","enterpriseCommandBar.switchToSupertab":"Switch to Supertab CN","enterpriseCommandBar.goTo":"Go to {{type}} CN","enterpriseCommandBar.viewMore":"View More CN","sidePanel.aiCompanion":"AI Companion CN","sidePanel.newChat":"New Chat CN","sidePanel.toggleSidePanel":"Toggle Side Panel CN","sidePanel.closeSidePanel":"Close Side Panel CN","sidePanel.openAiCompanion":"Open AI Companion CN","contextMenu.quitEnterpriseBrowser":"Quit CN","dock.removeFavorite":"Remove CN"}'),Za=JSON.parse('{"contextMenu.newWindow":"新視窗","contextMenu.newPage":"新頁面","contextMenu.restore":"還原到上次儲存的變更","contextMenu.switchWorkspace":"切換工作空間","contextMenu.appearance":"外觀","contextMenu.saveWorkspace":"儲存工作空間","contextMenu.saveWorkspaceAs":"將工作空間另存為...","contextMenu.renameWorkspace":"重新命名工作空間","contextMenu.deleteWorkspace":"刪除工作空間","contextMenu.downloads":"下載","contextMenu.savePage":"儲存頁面","contextMenu.savePageAs":"將頁面另存為...","contextMenu.print":"列印...","contextMenu.printScreen":"擷取畫面","contextMenu.closeWindow":"關閉視窗","contextMenu.openStorefront":"打開 Storefront","contextMenu.quitPlatform":"退出平台","contextMenu.newView":"新視圖","contextMenu.openView":"使用預設網頁瀏覽器打開視圖","contextMenu.openViews":"使用預設網頁瀏覽器打開視圖","contextMenu.reload":"Reload ZH","contextMenu.reloadView":"重新載入視圖","contextMenu.reloadViews":"重新載入視圖","contextMenu.duplicate":"Duplicate ZH","contextMenu.duplicateView":"複寫視圖","contextMenu.duplicateViews":"複寫視圖","contextMenu.addView":"將視圖新增至頻道","contextMenu.addViews":"將視圖新增至頻道","contextMenu.removeView":"從頻道中移除視圖","contextMenu.removeViews":"從頻道中移除視圖","contextMenu.closeView":"關閉視圖","contextMenu.closeViews":"關閉視圖","contextMenu.closeTab":"Close Tab ZH","contextMenu.duplicatePage":"複寫頁面","contextMenu.submenu.print":"列印","contextMenu.submenu.printAll":"列印全部","saveMenu.saveWorkspaceAs":"將工作空間另存為","saveMenu.savePageAs":"頁面另存為","saveModal.enterValue":"Please enter a value ZH","saveModal.alreadyExists":"{{title}} 已經存在。","saveModal.pleaseEnterValidName":"請輸入一個有效的名稱","saveModal.renamePage":"重新命名頁面","saveModal.closePage":"關閉頁面","saveModal.discardChanges":"捨棄變更","saveModal.discardAll":"全部捨棄","saveModal.saveAll":"儲存全部","saveModal.savePagesCount":"要先儲存 ({{count}}) 個頁面再關閉嗎?","defaultPageTitle":"Untitled Page ZH","enterpriseDefaultPageTitle":"Untitled Supertab ZH","addNewPage":"新增新頁面","addNewTab":"新增新索引標籤","addNewView":"新視圖","restoreModal":"您確定要還原到上次儲存的變更嗎?","modal.discardWarning":"任何未儲存的變更都將被捨棄","modal.discardPageWarning":"在此頁面任何未儲存的變更都將遺失。","modal.saveChangesPrompt":"要先儲存變更再關閉嗎?","modal.pageClose":"頁面關閉","switchWorkspaceModal":"您確定要切換到 {{workspace}}?","switchWorkspaceModal.warning":"任何未儲存的變更都將被捨棄","deleteWorkspaceModal":"您確定要永久刪除此工作空間嗎?","replaceWorkspaceModal.warning":"具有名稱 {{workspace}} 的工作空間已經存在。你要更換它嗎?","replaceWorkspaceModal.warning.body":"相同名稱的工作空間已經存在。更換它後,將會覆蓋目前內容。","replaceWorkspaceModal.replace":"更換","closePlatform":"關閉平台","closePlatform.workspace":"關閉 {{workspace}} 平台","closePlatform.warning":"關閉平台後,將關閉正在執行的任何工作空間、APP 或流程。","back":"上一頁","forward":"下一頁","reload":"重新載入","green":"綠","purple":"紫","orange":"橘","red":"紅色","pink":"粉紅","yellow":"黃","theme.light":"淺","theme.dark":"深","theme.system":"與 OS 設定同步","toolbar.hideTabs":"隱藏索引標籤","toolbar.showTabs":"顯示索引標籤","toolbar.lock":"上鎖","toolbar.unlock":"解鎖","toolbar.colorLinking":"顏色連結","toolbar.changeLayout":"變更版面","toolbar.saveMenu":"儲存選單","toolbar.maximizeWindow":"最大化視窗","toolbar.restoreWindow":"還原視窗","toolbar.minimizeWindow":"最小化視窗","changeLayout.fullWidth":"全螢幕寬度","changeLayout.columns":"行","changeLayout.Rows":"列","changeLayout.Grid":"網格","successIndicator.workspaceSwitched":"工作空間已切換","successIndicator.hidden":"索引標籤已隱藏","successIndicator.shown":"索引標籤已顯示","successIndicator.locked":"頁面已上鎖","successIndicator.unlocked":"頁面已解鎖","successIndicator.workspaceSaved":"工作空間已儲存","successIndicator.workspaceSavedAs":"工作空間已另存為 {{workspace}}","successIndicator.workspaceRenamed":"工作空間已重新命名","successIndicator.pageSaved":"頁面已儲存","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. ZH","successIndicator.pageCopySaved":"頁面已另存為 {{title}}","successIndicator.pageRenamed":"頁面已重新命名","successIndicator.contextGroupApplied":"脈絡群組已套用","successIndicator.namedContextGroupApplied":"{{colorName}} 脈絡群組已套用","successIndicator.viewRemoved":"從脈絡群組中移除的視圖","successIndicator.viewsRemoved":"從脈絡群組中移除的視圖","successIndicator.layoutApplied":"{{layoutName}} 版面已套用","successIndicator.workspaceDeleted":"工作空間已刪除","errorIndicator.pageSaveFailed":"頁面無法儲存","errorIndicator.workspaceSaveFailed":"工作空間無法儲存","errorIndicator.failedToDuplicatePage":"無法複寫頁面","infoIndicator.colorLinkAttempt":"我們嘗試對此索引標籤進行顏色連結,但網站/內容所有者尚未啟用該功能","global.cancel":"取消","global.confirm":"確認","global.save":"儲存","global.delete":"Delete ZH","appResults.header":"Featured Content ZH","recentlyClosed.header":"Recently Closed ZH","landingPage.subheader":"Apps and websites selected by an admin will show here ZH","aria.openBrowser":"開啟瀏覽器選單","aria.browserTabs":"瀏覽器索引標籤","aria.viewTab":"{{title}} 的視圖索引標籤","aria.closePage":"關閉 {{title}} 的頁面索引標籤按鈕","aria.closeTab":"關閉索引標籤 {{title}}","aria.title":"標題","aria.closeContextGroup":"使用 Esc 鍵關閉脈絡群組選取對話框","aria.colorLinking":"顯示或隱藏顏色連結","aria.applyColorLinking":"請選取要套用顏色連結的視圖","aria.assignColorLinkingCurrentView":"目前視圖分配給 {{name}} 脈絡群組","aria.assignColorLinkingCurrentViews":"目前視圖分配給 {{name}} 脈絡群組","aria.setColorLinkingActiveView":"將啟用視圖設定為 {{name}} 脈絡群組","aria.setColorLinkingActiveViews":"將啟用視圖設定為 {{name}} 脈絡群組","aria.escapeLayoutDialog":"使用 Esc 鍵關閉變更版面對話框","global.supertab":"Supertab ZH","global.tab":"Tab ZH","bookmarks.editBookmark":"Edit Bookmark ZH","bookmarks.bookmarkAdded":"Bookmark added ZH","bookmarks.done":"Done ZH","bookmarks.remove":"Remove ZH","bookmarks.bookmarksPanel":"Bookmarks Panel ZH","bookmarks.bookmarks":"Bookmarks ZH","bookmarks.allBookmarks":"All Bookmarks ZH","bookmarks.favorites":"Favorites ZH","bookmarks.searchBookmarks":"Search Bookmarks ZH","bookmarks.clearSearchInput":"Clear Search Input ZH","bookmarks.createFolder":"Create New Folder ZH","bookmarks.exitFolder":"Exit Folder ZH","bookmarks.newFolder":"New Folder ZH","bookmarks.namedFolder":"{{name}} Folder ZH","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings ZH","bookmarks.folderSettings":"{{name}} Folder Settings ZH","bookmarks.noResultsFound":"No results found ZH","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search ZH","bookmarks.nothingToShow":"Nothing to show yet ZH","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder ZH","bookmarks.resultsFoundIn":"Results found in {{name}} ZH","bookmarks.resultsInOtherFolders":"Results found in other folders ZH","bookmarks.allResultsFoundIn":"All results found in ZH","bookmarks.editName":"Edit Name ZH","bookmarks.move":"Move ZH","bookmarks.bookmarkAddedTitle":"Bookmark Added ZH","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" ZH","bookmarks.bookmarkEditedTitle":"Bookmark Edited ZH","enterpriseContextMenu.saveSupertab":"Save Supertab ZH","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... ZH","enterpriseContextMenu.duplicate":"Duplicate ZH","enterpriseContextMenu.deleteSupertab":"Delete Supertab ZH","enterpriseContextMenu.newTab":"New Tab ZH","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As ZH","enterpriseSaveModal.renameSupertab":"Rename ZH","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. ZH","enterpriseSaveModal.closeTab":"Close Tab ZH","enterpriseSaveModal.closeSupertab":"Close Supertab ZH","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? ZH","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. ZH","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? ZH","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. ZH","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved ZH","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. ZH","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted ZH","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. ZH","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab ZH","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab ZH","enterpriseCommandBar.switchToSupertab":"Switch to Supertab ZH","enterpriseCommandBar.goTo":"Go to {{type}} ZH","enterpriseCommandBar.viewMore":"View More ZH","sidePanel.aiCompanion":"AI Companion ZH","sidePanel.newChat":"New Chat ZH","sidePanel.toggleSidePanel":"Toggle Side Panel ZH","sidePanel.closeSidePanel":"Close Side Panel ZH","sidePanel.openAiCompanion":"Open AI Companion ZH","contextMenu.quitEnterpriseBrowser":"Quit ZH","dock.removeFavorite":"Remove ZH"}'),qa=JSON.parse('{"contextMenu.newWindow":"New Window","contextMenu.newPage":"New Page","contextMenu.restore":"Restore to Last Saved Changes","contextMenu.switchWorkspace":"Switch Workspace","contextMenu.appearance":"Appearance","contextMenu.saveWorkspace":"Save Workspace","contextMenu.saveWorkspaceAs":"Save Workspace As...","contextMenu.renameWorkspace":"Rename Workspace","contextMenu.deleteWorkspace":"Delete Workspace","contextMenu.downloads":"Downloads","contextMenu.savePage":"Save Page","contextMenu.savePageAs":"Save Page As...","contextMenu.print":"Print...","contextMenu.printScreen":"Print Screen","contextMenu.closeWindow":"Close Window","contextMenu.openStorefront":"Open Storefront","contextMenu.quitPlatform":"Quit {{platformLabel}}","contextMenu.newView":"New View","contextMenu.openView":"Open View with Default Web Browser","contextMenu.openViews":"Open Views with Default Web Browser","contextMenu.reload":"Reload","contextMenu.reloadView":"Reload View","contextMenu.reloadViews":"Reload Views","contextMenu.duplicate":"Duplicate","contextMenu.duplicateView":"Duplicate View","contextMenu.duplicateViews":"Duplicate Views","contextMenu.addView":"Add View to Channel","contextMenu.addViews":"Add Views to Channel","contextMenu.removeView":"Remove View from Channel","contextMenu.removeViews":"Remove Views from Channel","contextMenu.closeView":"Close View","contextMenu.closeViews":"Close Views","contextMenu.closeTab":"Close Tab","contextMenu.duplicatePage":"Duplicate Page","contextMenu.submenu.print":"Print","contextMenu.submenu.printAll":"Print All","saveMenu.saveWorkspaceAs":"Save Workspace As","saveMenu.savePageAs":"Save Page As","saveModal.enterValue":"Please enter a value","saveModal.alreadyExists":"{{title}} already exists.","saveModal.pleaseEnterValidName":"Please enter a valid name","saveModal.renamePage":"Rename Page","saveModal.closePage":"Close Page","saveModal.discardChanges":"Discard Changes","saveModal.discardAll":"Discard All","saveModal.saveAll":"Save All","saveModal.savePagesCount":"Save ({{count}}) pages before closing?","defaultPageTitle":"Untitled Page","enterpriseDefaultPageTitle":"Untitled Supertab","addNewPage":"New Page","addNewTab":"Add New Tab","addNewView":"New View","restoreModal":"Are you sure you want to restore to last saved changes?","modal.discardWarning":"Any unsaved changes will be discarded","modal.discardPageWarning":"Any unsaved changes to this page will be lost.","modal.saveChangesPrompt":"Save changes before closing?","modal.pageClose":"Page Close","switchWorkspaceModal":"Are you sure you want to switch to {{workspace}}?","switchWorkspaceModal.warning":"Any unsaved changes will be discarded","deleteWorkspaceModal":"Are you sure you want to permanently delete this workspace?","replaceWorkspaceModal.warning":"A Workspace with the name {{workspace}} already exists. Do you want to replace it?","replaceWorkspaceModal.warning.body":"A workspace with the same name already exists. Replacing it will overwrite its current contents.","replaceWorkspaceModal.replace":"Replace","closePlatform":"Close the platform","closePlatform.workspace":"Close the {{workspace}} Platform","closePlatform.warning":"Closing a platform will close any workspaces, apps or any processes that are running.","back":"Back","forward":"Forward","reload":"Reload","green":"Green","purple":"Purple","orange":"Orange","red":"Red","pink":"Pink","yellow":"Yellow","theme.light":"Light","theme.dark":"Dark","theme.system":"Sync with OS setting","toolbar.hideTabs":"Hide Tabs","toolbar.showTabs":"Show Tabs","toolbar.lock":"Lock","toolbar.unlock":"Unlock","toolbar.colorLinking":"Color Linking","toolbar.changeLayout":"Change Layout","toolbar.saveMenu":"Save Menu","toolbar.maximizeWindow":"Maximize Window","toolbar.restoreWindow":"Restore Window","toolbar.minimizeWindow":"Minimize Window","changeLayout.fullWidth":"Full Width","changeLayout.columns":"Columns","changeLayout.Rows":"Rows","changeLayout.Grid":"Grid","successIndicator.workspaceSwitched":"Workspace Switched","successIndicator.hidden":"Tabs are Hidden","successIndicator.shown":"Tabs are Shown","successIndicator.locked":"Page is Locked","successIndicator.unlocked":"Page is Unlocked","successIndicator.workspaceSaved":"Workspace saved","successIndicator.workspaceSavedAs":"Workspace saved as {{workspace}}","successIndicator.workspaceRenamed":"Workspace renamed","successIndicator.pageSaved":"Page Saved","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved.","successIndicator.pageCopySaved":"Page saved as {{title}}","successIndicator.pageRenamed":"Page renamed","successIndicator.contextGroupApplied":"Context group applied","successIndicator.namedContextGroupApplied":"{{colorName}} context group applied","successIndicator.viewRemoved":"View removed from context group","successIndicator.viewsRemoved":"Views removed from context group","successIndicator.layoutApplied":"{{layoutName}} layout applied","successIndicator.workspaceDeleted":"Workspace deleted","errorIndicator.pageSaveFailed":"Page failed to save","errorIndicator.workspaceSaveFailed":"Workspace failed to save","errorIndicator.failedToDuplicatePage":"Failed to duplicate Page","infoIndicator.colorLinkAttempt":"We attempted to color link this tab, but the site/content owner has not enabled it yet","global.cancel":"Cancel","global.confirm":"Confirm","global.save":"Save","global.delete":"Delete","appResults.header":"Featured Content","recentlyClosed.header":"Recently Closed","landingPage.subheader":"Apps and websites selected by an admin will show here","aria.openBrowser":"Open Browser Menu","aria.browserTabs":"Browser Tabs","aria.viewTab":"View Tab for {{title}}","aria.closePage":"Close Page Tab Button for {{title}}","aria.closeTab":"Close Tab {{title}}","aria.title":"Title","aria.closeContextGroup":"Use escape to close context group selection dialog","aria.colorLinking":"Show or hide color linking","aria.applyColorLinking":"Please select a view to apply color linking","aria.assignColorLinkingCurrentView":"Current view assigned to {{name}} context group","aria.assignColorLinkingCurrentViews":"Current views assigned to {{name}} context group","aria.setColorLinkingActiveView":"Set active view to {{name}} context group","aria.setColorLinkingActiveViews":"Set active views to {{name}} context group","aria.escapeLayoutDialog":"Use escape to close change layout dialog","global.supertab":"Supertab","global.tab":"Tab","bookmarks.editBookmark":"Edit Bookmark","bookmarks.bookmarkAdded":"Bookmark added","bookmarks.done":"Done","bookmarks.remove":"Remove","bookmarks.bookmarksPanel":"Bookmarks Panel","bookmarks.bookmarks":"Bookmarks","bookmarks.allBookmarks":"All Bookmarks","bookmarks.favorites":"Favorites","bookmarks.searchBookmarks":"Search Bookmarks","bookmarks.clearSearchInput":"Clear Search Input","bookmarks.createFolder":"Create New Folder","bookmarks.exitFolder":"Exit Folder","bookmarks.newFolder":"New Folder","bookmarks.namedFolder":"{{name}} Folder","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings","bookmarks.folderSettings":"{{name}} Folder Settings","bookmarks.noResultsFound":"No results found","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search","bookmarks.nothingToShow":"Nothing to show yet","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder","bookmarks.resultsFoundIn":"Results found in {{name}}","bookmarks.resultsInOtherFolders":"Results found in other folders","bookmarks.allResultsFoundIn":"All results found in","bookmarks.editName":"Edit Name","bookmarks.move":"Move","bookmarks.bookmarkAddedTitle":"Bookmark Added","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\"","bookmarks.bookmarkEditedTitle":"Bookmark Edited","enterpriseContextMenu.saveSupertab":"Save Supertab","enterpriseContextMenu.saveSupertabAs":"Save Supertab As...","enterpriseContextMenu.duplicate":"Duplicate","enterpriseContextMenu.deleteSupertab":"Delete Supertab","enterpriseContextMenu.newTab":"New Tab","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As","enterpriseSaveModal.renameSupertab":"Rename","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab.","enterpriseSaveModal.closeTab":"Close Tab","enterpriseSaveModal.closeSupertab":"Close Supertab","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing?","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost.","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab?","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent.","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved.","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted.","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab","enterpriseCommandBar.switchToSupertab":"Switch to Supertab","enterpriseCommandBar.goTo":"Go to {{type}}","enterpriseCommandBar.viewMore":"View More","sidePanel.aiCompanion":"AI Companion","sidePanel.newChat":"New Chat","sidePanel.toggleSidePanel":"Toggle Side Panel","sidePanel.closeSidePanel":"Close Side Panel","sidePanel.openAiCompanion":"Open AI Companion","contextMenu.quitEnterpriseBrowser":"Quit","dock.removeFavorite":"Remove"}'),ja=JSON.parse('{"contextMenu.newWindow":"Neues Fenster","contextMenu.newPage":"Neue Seite","contextMenu.restore":"Wiederherstellen der zuletzt gespeicherten Änderungen","contextMenu.switchWorkspace":"Workspace wechseln","contextMenu.appearance":"Erscheinungsbild","contextMenu.saveWorkspace":"Workspace speichern","contextMenu.saveWorkspaceAs":"Workspace speichern unter...","contextMenu.renameWorkspace":"Workspace umbenennen","contextMenu.deleteWorkspace":"Workspace löschen","contextMenu.downloads":"Downloads","contextMenu.savePage":"Seite speichern","contextMenu.savePageAs":"Seite speichern unter...","contextMenu.print":"Drucken...","contextMenu.printScreen":"Bildschirmansicht drucken","contextMenu.closeWindow":"Fenster schließen","contextMenu.openStorefront":"Schaufenster öffnen","contextMenu.quitPlatform":"Plattform verlassen","contextMenu.newView":"Neue Ansicht","contextMenu.openView":"Ansicht mit Standard-Webbrowser öffnen","contextMenu.openViews":"Ansichten mit Standard-Webbrowser öffnen","contextMenu.reload":"Reload DE","contextMenu.reloadView":"Ansicht neu laden","contextMenu.reloadViews":"Ansichten neu laden","contextMenu.duplicate":"Duplicate DE","contextMenu.duplicateView":"Ansicht duplizieren","contextMenu.duplicateViews":"Ansichten duplizieren","contextMenu.addView":"Ansicht zum Channel hinzufügen","contextMenu.addViews":"Ansichten zum Channel hinzufügen","contextMenu.removeView":"Ansicht aus dem Channel entfernen","contextMenu.removeViews":"Ansichten aus dem Channel entfernen","contextMenu.closeView":"Ansicht schließen","contextMenu.closeViews":"Ansichten schließen","contextMenu.closeTab":"Close Tab DE","contextMenu.duplicatePage":"Seite duplizieren","contextMenu.submenu.print":"Drucken","contextMenu.submenu.printAll":"Alle drucken","saveMenu.saveWorkspaceAs":"Workspace speichern unter","saveMenu.savePageAs":"Seite speichern unter","saveModal.enterValue":"Please enter a value DE","saveModal.alreadyExists":"{{title}} existiert bereits.","saveModal.pleaseEnterValidName":"Bitte geben Sie einen gültigen Namen ein","saveModal.renamePage":"Seite umbenennen","saveModal.closePage":"Seite schließen","saveModal.discardChanges":"Änderungen verwerfen","saveModal.discardAll":"Alle verwerfen","saveModal.saveAll":"Alle speichern","saveModal.savePagesCount":"({{count}}) Seiten vor dem Schließen speichern?","defaultPageTitle":"Untitled Page DE","enterpriseDefaultPageTitle":"Untitled Supertab DE","addNewPage":"Neue Seite hinzufügen","addNewTab":"Neuen Tab hinzufügen","addNewView":"Neue Ansicht","restoreModal":"Sind Sie sicher, dass Sie die zuletzt gespeicherten Änderungen wiederherstellen wollen?","modal.discardWarning":"Alle nicht gespeicherten Änderungen werden verworfen","modal.discardPageWarning":"Alle nicht gespeicherten Änderungen auf dieser Seite gehen verloren.","modal.saveChangesPrompt":"Änderungen vor dem Schließen speichern?","modal.pageClose":"Seite schließen","switchWorkspaceModal":"Sind Sie sicher, dass Sie zu {{workspace}}wechseln wollen?","switchWorkspaceModal.warning":"Alle nicht gespeicherten Änderungen werden verworfen","deleteWorkspaceModal":"Sind Sie sicher, dass Sie diesen Workspace dauerhaft löschen wollen?","replaceWorkspaceModal.warning":"Ein Workspace mit dem Namen {{workspace}} existiert bereits. Möchten Sie ihn ersetzen?","replaceWorkspaceModal.warning.body":"Ein Workspace mit demselben Namen existiert bereits. Wenn Sie ihn ersetzen, wird der aktuelle Inhalt überschrieben.","replaceWorkspaceModal.replace":"Ersetzen","closePlatform":"Plattform schließen","closePlatform.workspace":"Die {{workspace}} Plattform schließen","closePlatform.warning":"Wenn Sie eine Plattform schließen, werden alle Workspaces, Apps und laufenden Prozesse beendet.","back":"Zurück","forward":"Weiter","reload":"Neu laden","green":"Grün","purple":"Lila","orange":"Orange","red":"Rot","pink":"Pink","yellow":"Gelb","theme.light":"Hell","theme.dark":"Dunkel","theme.system":"Synchronisierung mit OS-Einstellung","toolbar.hideTabs":"Tabs ausblenden","toolbar.showTabs":"Tabs anzeigen","toolbar.lock":"Sperren","toolbar.unlock":"Freischalten","toolbar.colorLinking":"Farbverknüpfung","toolbar.changeLayout":"Layout ändern","toolbar.saveMenu":"Menü speichern","toolbar.maximizeWindow":"Fenster maximieren","toolbar.restoreWindow":"Fenster wiederherstellen","toolbar.minimizeWindow":"Fenster minimieren","changeLayout.fullWidth":"Volle Breite","changeLayout.columns":"Spalten","changeLayout.Rows":"Zeilen","changeLayout.Grid":"Raster","successIndicator.workspaceSwitched":"Workspace gewechselt","successIndicator.hidden":"Tabs sind ausgeblendet","successIndicator.shown":"Tabs werden angezeigt","successIndicator.locked":"Seite ist gesperrt","successIndicator.unlocked":"Seite ist freigeschaltet","successIndicator.workspaceSaved":"Workspace gespeichert","successIndicator.workspaceSavedAs":"Workspace gespeichert als {{workspace}}","successIndicator.workspaceRenamed":"Workspace umbenannt","successIndicator.pageSaved":"Seite gespeichert","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. DE","successIndicator.pageCopySaved":"Seite gespeichert als {{title}}","successIndicator.pageRenamed":"Seite umbenannt","successIndicator.contextGroupApplied":"Angewandte Kontextgruppe","successIndicator.namedContextGroupApplied":"{{colorName}} angewandte Kontextgruppe","successIndicator.viewRemoved":"Ansicht aus der Kontextgruppe entfernt","successIndicator.viewsRemoved":"Ansichten aus der Kontextgruppe entfernt","successIndicator.layoutApplied":"{{layoutName}} angewandtes Layout","successIndicator.workspaceDeleted":"Workspace gelöscht","errorIndicator.pageSaveFailed":"Seite konnte nicht gespeichert werden","errorIndicator.workspaceSaveFailed":"Workspace konnte nicht gespeichert werden","errorIndicator.failedToDuplicatePage":"Seite kann nicht dupliziert werden","infoIndicator.colorLinkAttempt":"Wir haben versucht, diesem Tab eine Farbe zuordnen, aber der Eigentümer der Website/des Inhalts hat sie noch nicht aktiviert","global.cancel":"Abbrechen","global.confirm":"Bestätigen","global.save":"Speichern","global.delete":"Delete DE","appResults.header":"Featured Content DC","recentlyClosed.header":"Recently Closed DC","landingPage.subheader":"Apps and websites selected by an admin will show here DE","aria.openBrowser":"Browser-Menü öffnen","aria.browserTabs":"Browser-Tab","aria.viewTab":"Tab „Ansicht“ für {{title}}","aria.closePage":"Button „Seite schließen“ für {{title}}","aria.closeTab":"Tab schließen {{title}}","aria.title":"Bezeichnung","aria.closeContextGroup":"Verwenden Sie die Escape-Taste, um den Dialog zur Auswahl von Kontextgruppen zu schließen","aria.colorLinking":"Farbverknüpfung ein- oder ausblenden","aria.applyColorLinking":"Bitte wählen Sie eine Ansicht, um die Farbverknüpfung anzuwenden","aria.assignColorLinkingCurrentView":"Aktuelle Ansicht, die der Kontextgruppe {{name}} zugeordnet ist","aria.assignColorLinkingCurrentViews":"Aktuelle Ansichten, die der Kontextgruppe {{name}} zugeordnet sind","aria.setColorLinkingActiveView":"Aktive Ansicht auf die Kontextgruppe {{name}} setzen","aria.setColorLinkingActiveViews":"Aktive Ansichten auf die Kontextgruppe {{name}} setzen","aria.escapeLayoutDialog":"Verwenden Sie die Escape-Taste, um den Dialog zur Layoutänderung zu schließen","global.supertab":"Supertab DE","global.tab":"Tab DE","bookmarks.editBookmark":"Edit Bookmark DE","bookmarks.bookmarkAdded":"Bookmark added DE","bookmarks.done":"Done DE","bookmarks.remove":"Remove DE","bookmarks.bookmarksPanel":"Bookmarks Panel DE","bookmarks.bookmarks":"Bookmarks DE","bookmarks.allBookmarks":"All Bookmarks DE","bookmarks.favorites":"Favorites DE","bookmarks.searchBookmarks":"Search Bookmarks DE","bookmarks.clearSearchInput":"Clear Search Input DE","bookmarks.createFolder":"Create New Folder DE","bookmarks.exitFolder":"Exit Folder DE","bookmarks.newFolder":"New Folder DE","bookmarks.namedFolder":"{{name}} Folder DE","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings DE","bookmarks.folderSettings":"{{name}} Folder Settings DE","bookmarks.noResultsFound":"No results found DE","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search DE","bookmarks.nothingToShow":"Nothing to show yet DE","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder DE","bookmarks.resultsFoundIn":"Results found in {{name}} DE","bookmarks.resultsInOtherFolders":"Results found in other folders DE","bookmarks.allResultsFoundIn":"All results found in DE","bookmarks.editName":"Edit Name DE","bookmarks.move":"Move DE","bookmarks.bookmarkAddedTitle":"Bookmark Added DE","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" DE","bookmarks.bookmarkEditedTitle":"Bookmark Edited DE","enterpriseContextMenu.saveSupertab":"Save Supertab DE","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... DE","enterpriseContextMenu.duplicate":"Duplicate DE","enterpriseContextMenu.deleteSupertab":"Delete Supertab DE","enterpriseContextMenu.newTab":"New Tab DE","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As DE","enterpriseSaveModal.renameSupertab":"Rename DE","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. DE","enterpriseSaveModal.closeTab":"Close Tab DE","enterpriseSaveModal.closeSupertab":"Close Supertab DE","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? DE","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. DE","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? DE","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. DE","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved DE","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. DE","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted DE","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. DE","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab DE","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab DE","enterpriseCommandBar.switchToSupertab":"Switch to Supertab DE","enterpriseCommandBar.goTo":"Go to {{type}} DE","enterpriseCommandBar.viewMore":"View More DE","sidePanel.aiCompanion":"AI Companion DE","sidePanel.newChat":"New Chat DE","sidePanel.toggleSidePanel":"Toggle Side Panel DE","sidePanel.closeSidePanel":"Close Side Panel DE","sidePanel.openAiCompanion":"Open AI Companion DE","contextMenu.quitEnterpriseBrowser":"Quit DE","dock.removeFavorite":"Remove DE"}'),Qa=JSON.parse('{"contextMenu.newWindow":"新しいウィンドウ","contextMenu.newPage":"新しいページ","contextMenu.restore":"最後に保存された変更に戻す","contextMenu.switchWorkspace":"ワークスペースに切り替える","contextMenu.appearance":"外観","contextMenu.saveWorkspace":"ワークスペースを保存","contextMenu.saveWorkspaceAs":"ワークスペースを別名で保存...","contextMenu.renameWorkspace":"ワークスペース名を変更","contextMenu.deleteWorkspace":"ワークスペースを削除","contextMenu.downloads":"ダウンロード","contextMenu.savePage":"ページを保存","contextMenu.savePageAs":"ページを別名で保存...","contextMenu.print":"印刷...","contextMenu.printScreen":"プリントスクリーン","contextMenu.closeWindow":"ウィンドウを閉じる","contextMenu.openStorefront":"ストアフロントを開く","contextMenu.quitPlatform":"プラットフォームを終了する","contextMenu.newView":"新しいビュー","contextMenu.openView":"デフォルトのウェブブラウザーでビューを開く","contextMenu.openViews":"デフォルトのウェブブラウザーでビューを開く","contextMenu.reload":"Reload JP","contextMenu.reloadView":"ビューをリロード","contextMenu.reloadViews":"ビューをリロード","contextMenu.duplicate":"Duplicate JP","contextMenu.duplicateView":"ビューを複製","contextMenu.duplicateViews":"ビューを複製","contextMenu.addView":"ビューをチャネルに追加","contextMenu.addViews":"ビューをチャネルに追加","contextMenu.removeView":"チャネルからビューを削除","contextMenu.removeViews":"チャネルからビューを削除","contextMenu.closeView":"ビューを閉じる","contextMenu.closeViews":"ビューを閉じる","contextMenu.closeTab":"Close Tab JP","contextMenu.duplicatePage":"ページを複製","contextMenu.submenu.print":"印刷","contextMenu.submenu.printAll":"すべてを印刷","saveMenu.saveWorkspaceAs":"ワークスペースを別名で保存","saveMenu.savePageAs":"ページを別名で保存","saveModal.enterValue":"Please enter a value JP","saveModal.alreadyExists":"{{title}}はすでに存在しています。","saveModal.pleaseEnterValidName":"有効な名前を入力してください","saveModal.renamePage":"ページ名を変更","saveModal.closePage":"ページを閉じる","saveModal.discardChanges":"変更を破棄","saveModal.discardAll":"すべて破棄","saveModal.saveAll":"すべて保存","saveModal.savePagesCount":"閉じる前に({{count}})つのページを保存しますか?","defaultPageTitle":"Untitled Page JP","enterpriseDefaultPageTitle":"Untitled Supertab JP","addNewPage":"新しいページを追加","addNewTab":"新しいタブを追加","addNewView":"新しいビュー","restoreModal":"本当に最後に保存された変更に戻しますか?","modal.discardWarning":"保存されていない変更は破棄されます","modal.discardPageWarning":"保存されていないこのページへの変更は失われます。","modal.saveChangesPrompt":"閉じる前に変更を保存しますか?","modal.pageClose":"ページを閉じる","switchWorkspaceModal":"本当に{{workspace}}に切り替えますか?","switchWorkspaceModal.warning":"保存されていない変更は破棄されます","deleteWorkspaceModal":"このワークスペースを永久に削除してもよろしいですか?","replaceWorkspaceModal.warning":"{{workspace}}という名前のワークスペースがすでに存在します。置き換えますか?","replaceWorkspaceModal.warning.body":"同じ名前のワークスペースがすでに存在します。置き換えると、現在の内容は上書きされます。","replaceWorkspaceModal.replace":"置き換える","closePlatform":"プラットフォームを閉じる","closePlatform.workspace":"{{workspace}}プラットフォームを閉じる","closePlatform.warning":"プラットフォームを閉じると、実行中のワークスペース、アプリ、プロセスがすべて閉じます。","back":"戻る","forward":"進む","reload":"リロード","green":"グリーン","purple":"パープル","orange":"オレンジ","red":"レッド","pink":"ピンク","yellow":"イエロー","theme.light":"ライト","theme.dark":"ダーク","theme.system":"OSの設定と同期","toolbar.hideTabs":"タブを非表示","toolbar.showTabs":"タブを表示","toolbar.lock":"ロック","toolbar.unlock":"ロック解除","toolbar.colorLinking":"カラーリンク","toolbar.changeLayout":"レイアウトを変更","toolbar.saveMenu":"メニューを保存","toolbar.maximizeWindow":"ウィンドウを最大化する","toolbar.restoreWindow":"ウィンドウを復元","toolbar.minimizeWindow":"ウィンドウを最小化する","changeLayout.fullWidth":"全幅","changeLayout.columns":"列","changeLayout.Rows":"行","changeLayout.Grid":"グリッド","successIndicator.workspaceSwitched":"ワークスペースが切り替わりました","successIndicator.hidden":"タブが非表示になっています","successIndicator.shown":"タブが表示されています","successIndicator.locked":"ページがロックされています","successIndicator.unlocked":"ページのロックが解除されています","successIndicator.workspaceSaved":"ワークスペースが保存されました","successIndicator.workspaceSavedAs":"ワークスペースが{{workspace}}として保存されました","successIndicator.workspaceRenamed":"ワークスペース名が変更されました","successIndicator.pageSaved":"ページが保存されました","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. JP","successIndicator.pageCopySaved":"ページが{{title}}として保存されました","successIndicator.pageRenamed":"ページ名が変更されました","successIndicator.contextGroupApplied":"コンテキストグループが適用されました","successIndicator.namedContextGroupApplied":"{{colorName}}コンテキストグループが適用されました","successIndicator.viewRemoved":"コンテキストグループからビューが削除されました","successIndicator.viewsRemoved":"コンテキストグループからビューが削除されました","successIndicator.layoutApplied":"{{layoutName}}レイアウトが適用されました","successIndicator.workspaceDeleted":"ワークスペースが削除されました","errorIndicator.pageSaveFailed":"ページを保存できませんでした","errorIndicator.workspaceSaveFailed":"ワークスペースを保存できませんでした","errorIndicator.failedToDuplicatePage":"ページを複製できませんでした","infoIndicator.colorLinkAttempt":"このタブをカラーリンクしようとしましたが、サイト/コンテンツのオーナーがまだこれを有効にしていません","global.cancel":"キャンセル","global.confirm":"確認","global.save":"保存","global.delete":"Delete JP","appResults.header":"Featured content JP","recentlyClosed.header":"Recently Closed JP","landingPage.subheader":"Apps and websites selected by an admin will show here JP","aria.openBrowser":"ブラウザーメニューを開く","aria.browserTabs":"ブラウザータブ","aria.viewTab":"{{title}}のタブを表示","aria.closePage":"{{title}}のページタブボタンを閉じる","aria.closeTab":"{{title}}タブを閉じる","aria.title":"タイトル","aria.closeContextGroup":"エスケープを使用して、コンテキストグループ選択ダイアログを閉じる","aria.colorLinking":"カラーリンクの表示/非表示","aria.applyColorLinking":"カラーリンクを適用するビューを選択してください","aria.assignColorLinkingCurrentView":"現在のビューは{{name}}コンテキストグループに割り当てられています","aria.assignColorLinkingCurrentViews":"現在のビューは{{name}}コンテキストグループに割り当てられています","aria.setColorLinkingActiveView":"アクティブビューを{{name}}コンテキストグループに設定","aria.setColorLinkingActiveViews":"アクティブビューを{{name}}コンテキストグループに設定","aria.escapeLayoutDialog":"エスケープを使用して、レイアウト変更選択ダイアログを閉じる","global.supertab":"Supertab JP","global.tab":"Tab JP","bookmarks.editBookmark":"Edit Bookmark JP","bookmarks.bookmarkAdded":"Bookmark added JP","bookmarks.done":"Done JP","bookmarks.remove":"Remove JP","bookmarks.bookmarksPanel":"Bookmarks Panel JP","bookmarks.bookmarks":"Bookmarks JP","bookmarks.allBookmarks":"All Bookmarks JP","bookmarks.favorites":"Favorites JP","bookmarks.searchBookmarks":"Search Bookmarks JP","bookmarks.clearSearchInput":"Clear Search Input JP","bookmarks.createFolder":"Create New Folder JP","bookmarks.exitFolder":"Exit Folder JP","bookmarks.newFolder":"New Folder JP","bookmarks.namedFolder":"{{name}} Folder JP","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings JP","bookmarks.folderSettings":"{{name}} Folder Settings JP","bookmarks.noResultsFound":"No results found JP","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search JP","bookmarks.nothingToShow":"Nothing to show yet JP","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder JP","bookmarks.resultsFoundIn":"Results found in {{name}} JP","bookmarks.resultsInOtherFolders":"Results found in other folders JP","bookmarks.allResultsFoundIn":"All results found in JP","bookmarks.editName":"Edit Name JP","bookmarks.move":"Move JP","bookmarks.bookmarkAddedTitle":"Bookmark Added JP","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" JP","bookmarks.bookmarkEditedTitle":"Bookmark Edited JP","enterpriseContextMenu.saveSupertab":"Save Supertab JP","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... JP","enterpriseContextMenu.duplicate":"Duplicate JP","enterpriseContextMenu.deleteSupertab":"Delete Supertab JP","enterpriseContextMenu.newTab":"New Tab JP","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As JP","enterpriseSaveModal.renameSupertab":"Rename JP","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. JP","enterpriseSaveModal.closeTab":"Close Tab JP","enterpriseSaveModal.closeSupertab":"Close Supertab JP","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? JP","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. JP","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? JP","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. JP","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved JP","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. JP","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted JP","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. JP","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab JP","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab JP","enterpriseCommandBar.switchToSupertab":"Switch to Supertab JP","enterpriseCommandBar.goTo":"Go to {{type}} JP","enterpriseCommandBar.viewMore":"View More JP","sidePanel.aiCompanion":"AI Companion JP","sidePanel.newChat":"New Chat JP","sidePanel.toggleSidePanel":"Toggle Side Panel JP","sidePanel.closeSidePanel":"Close Side Panel JP","sidePanel.openAiCompanion":"Open AI Companion JP","contextMenu.quitEnterpriseBrowser":"Quit JP","dock.removeFavorite":"Remove JP"}'),Ya=JSON.parse('{"contextMenu.newWindow":"새 창","contextMenu.newPage":"새 페이지","contextMenu.restore":"마지막으로 저장한 변경 사항으로 복원","contextMenu.switchWorkspace":"작업 공간 전환","contextMenu.appearance":"모양","contextMenu.saveWorkspace":"작업 공간 저장","contextMenu.saveWorkspaceAs":"다른 이름으로 작업 공간 저장...","contextMenu.renameWorkspace":"작업 공간 이름 바꾸기","contextMenu.deleteWorkspace":"작업 공간 삭제","contextMenu.downloads":"다운로드","contextMenu.savePage":"페이지 저장","contextMenu.savePageAs":"다른 이름으로 페이지 저장...","contextMenu.print":"인쇄...","contextMenu.printScreen":"화면 인쇄","contextMenu.closeWindow":"창 닫기","contextMenu.openStorefront":"매장 열기","contextMenu.quitPlatform":"플랫폼 종료","contextMenu.newView":"새 뷰","contextMenu.openView":"기본 웹 브라우저로 뷰 열기","contextMenu.openViews":"기본 웹 브라우저로 뷰 열기","contextMenu.reload":"Reload KR","contextMenu.reloadView":"뷰 다시 로드","contextMenu.reloadViews":"뷰 다시 로드","contextMenu.duplicate":"Duplicate KR","contextMenu.duplicateView":"뷰 복제","contextMenu.duplicateViews":"뷰 복제","contextMenu.addView":"채널에 뷰 추가","contextMenu.addViews":"채널에 뷰 추가","contextMenu.removeView":"채널에서 뷰 제거","contextMenu.removeViews":"채널에서 뷰 제거","contextMenu.closeView":"뷰 닫기","contextMenu.closeViews":"뷰 닫기","contextMenu.closeTab":"Close Tab KR","contextMenu.duplicatePage":"페이지 복제","contextMenu.submenu.print":"인쇄","contextMenu.submenu.printAll":"모두 인쇄","saveMenu.saveWorkspaceAs":"다른 이름으로 작업 공간 저장","saveMenu.savePageAs":"다른 이름으로 페이지 저장","saveModal.enterValue":"Please enter a value KR","saveModal.alreadyExists":"{{title}}이(가) 이미 존재합니다.","saveModal.pleaseEnterValidName":"유효한 이름을 입력하십시오.","saveModal.renamePage":"페이지 이름 바꾸기","saveModal.closePage":"페이지 닫기","saveModal.discardChanges":"변경 사항 폐기","saveModal.discardAll":"모두 폐기","saveModal.saveAll":"모두 저장","saveModal.savePagesCount":"닫기 전에 페이지({{count}}개)를 저장하시겠습니까?","defaultPageTitle":"Untitled Page KR","enterpriseDefaultPageTitle":"Untitled Supertab KR","addNewPage":"새 페이지 추가","addNewTab":"새 탭 추가","addNewView":"새 뷰","restoreModal":"마지막으로 저장한 변경 사항으로 복원하시겠습니까?","modal.discardWarning":"저장하지 않은 변경 사항은 모두 폐기됩니다","modal.discardPageWarning":"이 페이지의 저장하지 않은 변경 사항은 모두 손실됩니다.","modal.saveChangesPrompt":"닫기 전에 변경 사항을 저장하시겠습니까?","modal.pageClose":"페이지 닫기","switchWorkspaceModal":"{{workspace}}(으)로 전환하시겠습니까?","switchWorkspaceModal.warning":"저장하지 않은 변경 사항은 모두 폐기됩니다","deleteWorkspaceModal":"이 작업 공간을 영구적으로 삭제하시겠습니까?","replaceWorkspaceModal.warning":"{{workspace}}(이)라는 이름의 작업 공간이 이미 존재합니다. 교체하시겠습니까?","replaceWorkspaceModal.warning.body":"같은 이름의 작업 공간이 이미 존재합니다. 교체하면 현재 내용을 덮어쓰게 됩니다.","replaceWorkspaceModal.replace":"교체","closePlatform":"플랫폼 닫기","closePlatform.workspace":"{{workspace}} 플랫폼 닫기","closePlatform.warning":"플랫폼을 닫으면 실행 중인 모든 작업 공간, 앱 또는 프로세스가 닫힙니다.","back":"뒤로 가기","forward":"앞으로 가기","reload":"새로고침","green":"녹색","purple":"보라색","orange":"오렌지색","red":"빨간색","pink":"핑크색","yellow":"노란색","theme.light":"밝은","theme.dark":"어두운","theme.system":"OS 설정과 동기화","toolbar.hideTabs":"탭 숨기기","toolbar.showTabs":"탭 표시","toolbar.lock":"잠금","toolbar.unlock":"잠금 해제","toolbar.colorLinking":"색상 연결","toolbar.changeLayout":"레이아웃 변경","toolbar.saveMenu":"저장 메뉴","toolbar.maximizeWindow":"창 최대화","toolbar.restoreWindow":"창 복원","toolbar.minimizeWindow":"창 최소화","changeLayout.fullWidth":"전체 너비","changeLayout.columns":"열","changeLayout.Rows":"행","changeLayout.Grid":"그리드","successIndicator.workspaceSwitched":"작업 공간 전환","successIndicator.hidden":"탭 숨김","successIndicator.shown":"탭 표시","successIndicator.locked":"페이지 잠금","successIndicator.unlocked":"페이지 잠금 해제됨","successIndicator.workspaceSaved":"작업 공간 저장됨","successIndicator.workspaceSavedAs":"작업 공간이 {{workspace}}(으)로 저장됨","successIndicator.workspaceRenamed":"작업 공간 이름 변경됨","successIndicator.pageSaved":"페이지 저장됨","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. KR","successIndicator.pageCopySaved":"페이지가 {{title}}(으)로 저장됨","successIndicator.pageRenamed":"페이지 이름 변경됨","successIndicator.contextGroupApplied":"컨텍스트 그룹 적용됨","successIndicator.namedContextGroupApplied":"{{colorName}} 컨텍스트 그룹 적용됨","successIndicator.viewRemoved":"컨텍스트 그룹에서 뷰 제거됨","successIndicator.viewsRemoved":"컨텍스트 그룹에서 뷰 제거됨","successIndicator.layoutApplied":"{{layoutName}} 레이아웃 적용됨","successIndicator.workspaceDeleted":"작업 공간 삭제됨","errorIndicator.pageSaveFailed":"페이지 저장 실패","errorIndicator.workspaceSaveFailed":"작업 공간 저장 실패","errorIndicator.failedToDuplicatePage":"페이지 복제 실패","infoIndicator.colorLinkAttempt":"이 탭의 색상 링크를 시도했지만 사이트/콘텐츠 소유자가 아직 활성화하지 않았습니다.","global.cancel":"취소","global.confirm":"확인","global.save":"저장","global.delete":"Delete KR","appResults.header":"Featured Content KR","recentlyClosed.header":"Recently Closed KR","landingPage.subheader":"Apps and websites selected by an admin will show here KR","aria.openBrowser":"브라우저 메뉴 열기","aria.browserTabs":"브라우저 탭","aria.viewTab":"{{title}}의 뷰 탭","aria.closePage":"{{title}}의 페이지 닫기 탭","aria.closeTab":"탭 {{title}} 닫기","aria.title":"제목","aria.closeContextGroup":"이스케이프를 사용하여 컨텍스트 그룹 선택 대화상자 닫기","aria.colorLinking":"색상 연결 표시 또는 숨기기","aria.applyColorLinking":"색상 연결을 적용하려면 뷰를 선택하십시오.","aria.assignColorLinkingCurrentView":"{{name}} 컨텍스트 그룹에 할당된 현재 뷰","aria.assignColorLinkingCurrentViews":"{{name}} 컨텍스트 그룹에 할당된 현재 뷰","aria.setColorLinkingActiveView":"활성 뷰를 {{name}} 컨텍스트 그룹으로 설정","aria.setColorLinkingActiveViews":"활성 뷰를 {{name}} 컨텍스트 그룹으로 설정","aria.escapeLayoutDialog":"이스케이프를 사용하여 레이아웃 변경 대화상자 닫기","global.supertab":"Supertab KR","global.tab":"Tab KR","bookmarks.editBookmark":"Edit Bookmark KR","bookmarks.bookmarkAdded":"Bookmark added KR","bookmarks.done":"Done KR","bookmarks.remove":"Remove KR","bookmarks.bookmarksPanel":"Bookmarks Panel KR","bookmarks.bookmarks":"Bookmarks KR","bookmarks.allBookmarks":"All Bookmarks KR","bookmarks.favorites":"Favorites KR","bookmarks.searchBookmarks":"Search Bookmarks KR","bookmarks.clearSearchInput":"Clear Search Input KR","bookmarks.createFolder":"Create New Folder KR","bookmarks.exitFolder":"Exit Folder KR","bookmarks.newFolder":"New Folder KR","bookmarks.namedFolder":"{{name}} Folder KR","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings KR","bookmarks.folderSettings":"{{name}} Folder Settings KR","bookmarks.noResultsFound":"No results found KR","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search KR","bookmarks.nothingToShow":"Nothing to show yet KR","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder KR","bookmarks.resultsFoundIn":"Results found in {{name}} KR","bookmarks.resultsInOtherFolders":"Results found in other folders KR","bookmarks.allResultsFoundIn":"All results found in KR","bookmarks.editName":"Edit Name KR","bookmarks.move":"Move KR","bookmarks.bookmarkAddedTitle":"Bookmark Added KR","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" KR","bookmarks.bookmarkEditedTitle":"Bookmark Edited KR","enterpriseContextMenu.saveSupertab":"Save Supertab KR","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... KR","enterpriseContextMenu.duplicate":"Duplicate KR","enterpriseContextMenu.deleteSupertab":"Delete Supertab KR","enterpriseContextMenu.newTab":"New Tab KR","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As KR","enterpriseSaveModal.renameSupertab":"Rename KR","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. KR","enterpriseSaveModal.closeTab":"Close Tab KR","enterpriseSaveModal.closeSupertab":"Close Supertab KR","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? KR","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. KR","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? KR","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. KR","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved KR","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. KR","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted KR","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. KR","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab KR","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab KR","enterpriseCommandBar.switchToSupertab":"Switch to Supertab KR","enterpriseCommandBar.goTo":"Go to {{type}} KR","enterpriseCommandBar.viewMore":"View More KR","sidePanel.aiCompanion":"AI Companion KR","sidePanel.newChat":"New Chat KR","sidePanel.toggleSidePanel":"Toggle Side Panel KR","sidePanel.closeSidePanel":"Close Side Panel KR","sidePanel.openAiCompanion":"Open AI Companion KR","contextMenu.quitEnterpriseBrowser":"Quit KR","dock.removeFavorite":"Remove KR"}'),Xa=JSON.parse('{"contextMenu.newWindow":"Новое окно","contextMenu.newPage":"Новая страница","contextMenu.restore":"Восстановить последние сохраненные изменения","contextMenu.switchWorkspace":"Переключить рабочую область","contextMenu.appearance":"Внешний вид","contextMenu.saveWorkspace":"Сохранить рабочую область","contextMenu.saveWorkspaceAs":"Сохранить рабочую область как...","contextMenu.renameWorkspace":"Переименовать рабочую область","contextMenu.deleteWorkspace":"Удалить рабочую область","contextMenu.downloads":"Загрузки","contextMenu.savePage":"Сохранить страницу","contextMenu.savePageAs":"Сохранить страницу как...","contextMenu.print":"Печать...","contextMenu.printScreen":"Распечатать экран","contextMenu.closeWindow":"Закрыть окно","contextMenu.openStorefront":"Открыть Storefront","contextMenu.quitPlatform":"Выйти из платформы","contextMenu.newView":"Новое представление","contextMenu.openView":"Открыть представление с помощью веб-браузера по умолчанию","contextMenu.openViews":"Открыть представления с помощью веб-браузера по умолчанию","contextMenu.reload":"Reload RU","contextMenu.reloadView":"Перезагрузить представление","contextMenu.reloadViews":"Перезагрузить представления","contextMenu.duplicate":"Duplicate RU","contextMenu.duplicateView":"Дублировать представление","contextMenu.duplicateViews":"Дублировать представления","contextMenu.addView":"Добавить представление на канал","contextMenu.addViews":"Добавить представления на канал","contextMenu.removeView":"Удалить представление из канала","contextMenu.removeViews":"Удалить представления из канала","contextMenu.closeView":"Закрыть представление","contextMenu.closeViews":"Закрыть представления","contextMenu.closeTab":"Close Tab RU","contextMenu.duplicatePage":"Дублировать страницу","contextMenu.submenu.print":"Печатать","contextMenu.submenu.printAll":"Печатать все","saveMenu.saveWorkspaceAs":"Сохранить рабочую область как","saveMenu.savePageAs":"Сохранить страницу как","saveModal.enterValue":"Please enter a value RU","saveModal.alreadyExists":"{{title}} уже существует.","saveModal.pleaseEnterValidName":"Введите подходящее имя","saveModal.renamePage":"Переименовать страницу","saveModal.closePage":"Закрыть страницу","saveModal.discardChanges":"Отменить изменения","saveModal.discardAll":"Отменить все","saveModal.saveAll":"Сохранить все","saveModal.savePagesCount":"Сохранить ({{count}}) страниц перед закрытием?","defaultPageTitle":"Untitled Page RU","enterpriseDefaultPageTitle":"Untitled Supertab RU","addNewPage":"Добавить новую страницу","addNewTab":"Добавить новую вкладку","addNewView":"Новое представление","restoreModal":"Вы уверены, что хотите восстановить последние сохраненные изменения?","modal.discardWarning":"Все несохраненные изменения будут отменены","modal.discardPageWarning":"Все несохраненные изменения на этой странице будут потеряны.","modal.saveChangesPrompt":"Сохранить изменения перед закрытием?","modal.pageClose":"Закрыть страницу","switchWorkspaceModal":"Вы уверены, что хотите перейти в {{workspace}}?","switchWorkspaceModal.warning":"Все несохраненные изменения будут отменены","deleteWorkspaceModal":"Вы уверены, что хотите навсегда удалить эту рабочую область?","replaceWorkspaceModal.warning":"Рабочая область с именем {{workspace}} уже существует. Вы хотите заменить ее?","replaceWorkspaceModal.warning.body":"Рабочая область с таким же именем уже существует. При ее замене текущее содержимое будет перезаписано.","replaceWorkspaceModal.replace":"Заменить","closePlatform":"Закрыть платформу","closePlatform.workspace":"Закрыть платформу {{workspace}}","closePlatform.warning":"Закрытие платформы приведет к закрытию всех рабочих областей, приложений и запущенных процессов.","back":"Назад","forward":"Вперед","reload":"Перезагрузить ","green":"Зеленый","purple":"Фиолетовый","orange":"Оранжевый","red":"Красный","pink":"Розовый","yellow":"Желтый","theme.light":"Светлый","theme.dark":"Темный","theme.system":"Синхронизировать с настройками ОС","toolbar.hideTabs":"Скрыть вкладки","toolbar.showTabs":"Показать вкладки","toolbar.lock":"Заблокировать","toolbar.unlock":"Разблокировать","toolbar.colorLinking":"Привязка к цвету","toolbar.changeLayout":"Изменить макет","toolbar.saveMenu":"Меню сохранения","toolbar.maximizeWindow":"Увеличить окно","toolbar.restoreWindow":"Восстановить окно","toolbar.minimizeWindow":"Свернуть окно","changeLayout.fullWidth":"Полная ширина","changeLayout.columns":"Столбцы","changeLayout.Rows":"Строки","changeLayout.Grid":"Сетка","successIndicator.workspaceSwitched":"Рабочая область переключена","successIndicator.hidden":"Вкладки скрыты","successIndicator.shown":"Вкладки показаны","successIndicator.locked":"Страница заблокирована","successIndicator.unlocked":"Страница разблокирована","successIndicator.workspaceSaved":"Рабочая область сохранена","successIndicator.workspaceSavedAs":"Рабочая область сохранена как {{workspace}}","successIndicator.workspaceRenamed":"Рабочая область переименована","successIndicator.pageSaved":"Страница сохранена","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. RU","successIndicator.pageCopySaved":"Страница сохранена как {{title}}","successIndicator.pageRenamed":"Страница переименована","successIndicator.contextGroupApplied":"Контекстная группа применена","successIndicator.namedContextGroupApplied":"Контекстная группа {{colorName}} применена","successIndicator.viewRemoved":"Представление удалено из контекстной группы","successIndicator.viewsRemoved":"Представления удалены из контекстной группы","successIndicator.layoutApplied":"Макет {{layoutName}} применен","successIndicator.workspaceDeleted":"Рабочая область удалена","errorIndicator.pageSaveFailed":"Не удалось сохранить страницу","errorIndicator.workspaceSaveFailed":"Не удалось сохранить рабочую область","errorIndicator.failedToDuplicatePage":"Не удалось продублировать страницу","infoIndicator.colorLinkAttempt":"Мы попытались привязать цвет к этой вкладке, но владелец сайта/контента еще не включил эту возможность","global.cancel":"Отменить","global.confirm":"Подтвердить","global.save":"Сохранить","global.delete":"Delete RU","appResults.header":"Featured Content RU","recentlyClosed.header":"Recently Closed RU","landingPage.subheader":"Apps and websites selected by an admin will show here RU","aria.openBrowser":"Открыть меню браузера","aria.browserTabs":"Вкладки браузера","aria.viewTab":"Вкладка представления {{title}}","aria.closePage":"Кнопка «Закрыть» на вкладке для страницы {{title}}","aria.closeTab":"Закрыть вкладку {{title}}","aria.title":"Название","aria.closeContextGroup":"Чтобы закрыть диалог выбора контекстной группы, используйте escape","aria.colorLinking":"Показать или скрыть привязку к цвету","aria.applyColorLinking":"Выберите представление, чтобы применить привязку к цвету","aria.assignColorLinkingCurrentView":"Текущее представление, назначенное контекстной группе {{name}}","aria.assignColorLinkingCurrentViews":"Текущие представления, назначенные контекстной группе {{name}}","aria.setColorLinkingActiveView":"Установить активное представление в контекстную группу {{name}}","aria.setColorLinkingActiveViews":"Установить активные представления в контекстную группу {{name}}","aria.escapeLayoutDialog":"Чтобы закрыть диалог изменения макета, используйте escape","global.supertab":"Supertab RU","global.tab":"Tab RU","bookmarks.editBookmark":"Edit Bookmark RU","bookmarks.bookmarkAdded":"Bookmark added RU","bookmarks.done":"Done RU","bookmarks.remove":"Remove RU","bookmarks.bookmarksPanel":"Bookmarks Panel RU","bookmarks.bookmarks":"Bookmarks RU","bookmarks.allBookmarks":"All Bookmarks RU","bookmarks.favorites":"Favorites RU","bookmarks.searchBookmarks":"Search Bookmarks RU","bookmarks.clearSearchInput":"Clear Search Input RU","bookmarks.createFolder":"Create New Folder RU","bookmarks.exitFolder":"Exit Folder RU","bookmarks.newFolder":"New Folder RU","bookmarks.namedFolder":"{{name}} Folder RU","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings RU","bookmarks.folderSettings":"{{name}} Folder Settings RU","bookmarks.noResultsFound":"No results found RU","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search RU","bookmarks.nothingToShow":"Nothing to show yet RU","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder RU","bookmarks.resultsFoundIn":"Results found in {{name}} RU","bookmarks.resultsInOtherFolders":"Results found in other folders RU","bookmarks.allResultsFoundIn":"All results found in RU","bookmarks.editName":"Edit Name RU","bookmarks.move":"Move RU","bookmarks.bookmarkAddedTitle":"Bookmark Added RU","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" RU","bookmarks.bookmarkEditedTitle":"Bookmark Edited RU","enterpriseContextMenu.saveSupertab":"Save Supertab RU","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... RU","enterpriseContextMenu.duplicate":"Duplicate RU","enterpriseContextMenu.deleteSupertab":"Delete Supertab RU","enterpriseContextMenu.newTab":"New Tab RU","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As RU","enterpriseSaveModal.renameSupertab":"Rename RU","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. RU","enterpriseSaveModal.closeTab":"Close Tab RU","enterpriseSaveModal.closeSupertab":"Close Supertab RU","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? RU","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. RU","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? RU","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. RU","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved RU","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved.RU","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted RU","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. RU","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab RU","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab RU","enterpriseCommandBar.switchToSupertab":"Switch to Supertab RU","enterpriseCommandBar.goTo":"Go to {{type}} RU","enterpriseCommandBar.viewMore":"View More RU","sidePanel.aiCompanion":"AI Companion RU","sidePanel.newChat":"New Chat RU","sidePanel.toggleSidePanel":"Toggle Side Panel RU","sidePanel.closeSidePanel":"Close Side Panel RU","sidePanel.openAiCompanion":"Open AI Companion RU","contextMenu.quitEnterpriseBrowser":"Quit RU","dock.removeFavorite":"Remove"}');const en=za().t,tn=async e=>{const t=await qt(e);return await t.dispatch(aa.GetPages)},an=async e=>(await qt(e.identity)).dispatch(aa.UpdatePageForWindow,e);let nn,on=!1;const rn=()=>on,sn=()=>nn||{enabled:!1};async function cn(e,t){const a=!!t;let n=new Set;if(a){const{identity:e,pageId:a}=t,o=Ra().Browser.wrapSync(e),r=await o.getPage(a);r?.panels&&(n=new Set(r.panels.map((({viewOptions:e})=>e.name))))}return e.map((e=>{const t=e.viewOptions.name,o=t?.startsWith(Ea);o&&(!a||a&&!n.has(t))&&delete e.viewOptions.name;const r=(i=e.viewOptions,i.name||=`${Ea}${Bt()}`,i);var i;return{...e,viewOptions:{...r,uuid:we.uuid}}}))}async function ln(e){for(const t of e)t.panels&&await un(t.panels)}const dn=e=>null!==e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&/ERR_([A-Z]+_*)+/.test(e.message);async function un(e){const t=e.map((e=>fin.Platform.getCurrentSync().createView(e.viewOptions,fin.me.identity).catch((e=>{if(!dn(e))throw e;console.error(e)}))));return await Promise.all(t)}const pn=(e,t)=>!t.find((t=>t===e)),wn=(e,t)=>`${e} (${t})`,gn=(e,t)=>{if(pn(e,t))return e;let a=1;const n=e.replace(/ *\(\d+\)$/,"");for(;!pn(wn(n,a),t);)a+=1;return wn(n,a)},hn=async()=>{const e=await be();return(await Promise.all(e.map((async e=>{try{return tn(e.identity)}catch(t){JSON.stringify(e.identity);const a=await e.getOptions();return a.workspacePlatform?.pages||[]}})))).reduce(((e,t)=>e.concat(t)),[])},mn=async()=>(await wt(we)).dispatch(dt.GetSavedPages,void 0),kn=async e=>(await wt(we)).dispatch(dt.GetSavedPage,e),bn=async(e,t)=>{const a=await(async e=>(await hn()).find((t=>t.pageId===e)))(e);return!a||a.title===t.title&&e===t.pageId||await an({identity:a.parentIdentity,pageId:e,page:{pageId:t.pageId,title:t.title}}),a},yn=async({page:e})=>{await bn(e.pageId,e),await(async e=>(await wt(we)).dispatch(dt.CreateSavedPage,e))({page:e})},fn=async e=>{await kn(e)&&await(async e=>(await wt(we)).dispatch(dt.DeleteSavedPage,e))(e)},Sn=async({pageId:e,page:t})=>{await bn(e,t);return await(async e=>(await wt(we)).dispatch(dt.UpdateSavedPage,e))({pageId:e,page:t})},vn=async e=>await kn(e.pageId)?Sn({pageId:e.pageId,page:e}):yn({page:e}),Pn=async e=>{await(async e=>(await qt(e.identity)).dispatch(aa.AttachPagesToWindow,e))(e)},Cn=async e=>{const t={...e.page,panels:e.page.panels&&await cn(e.page.panels,e)};t.panels&&await un(t.panels),await an({...e,page:t})},Mn=async e=>{await(async e=>(await qt(e.identity)).dispatch(aa.DetachPagesFromWindow,e))(e)},xn=async e=>{await(async e=>(await qt(e.identity)).dispatch(aa.SetActivePageForWindow,e))(e)},In=e=>tn(e),An=async({identity:e,pageId:t})=>(await In(e)).find((e=>e.pageId===t)),Wn=async e=>{await(async e=>(await qt(e.identity)).dispatch(aa.ReorderPagesForWindow,e))(e)},Dn=new class{constructor(){this.queue=[],this.locked=!1}lock(){return new Promise((e=>{this.locked?this.queue.push(e):(this.locked=!0,e())}))}unlock(){if(this.queue.length>0){const e=this.queue.shift();e&&e()}else this.locked=!1}};async function Rn(e){await Dn.lock();try{const t=rn()?en("enterpriseDefaultPageTitle"):en("defaultPageTitle"),a=e??t,[n,o]=await Promise.all([mn(),hn()]),r=[...n,...o].map((({title:e})=>e));return gn(a,r)}finally{Dn.unlock()}}async function Tn({page:e}){return{shouldShowModal:!(!e||!e.hasUnsavedChanges)}}async function Bn({page:e,identity:t}){const a=fin.Application.getCurrentSync();if((await a.getInfo()).initialOptions.enableBeforeUnload){const a=Oa(e.layout.content).filter((e=>e.name)).map((e=>fin.View.wrapSync({name:e.name,uuid:t.uuid}))),n=await this.checkViewsForPreventUnload(a);if(n.viewsPreventingUnload.length>0){if((await this.getUserDecisionForBeforeUnload({...n,windowId:t,windowShouldClose:!1,closeType:"page"})).viewsToClose.length!==a.length)return e.pageId,{shouldPageClose:!1}}}return{shouldPageClose:!0}}async function En({pages:e,identity:t}){const a=await Promise.all(e.map((e=>this.shouldPageClose({page:e,closeType:"window",identity:t})))),{pagesPreventingClose:n,pagesNotPreventingClose:o}=e.reduce(((e,t,n)=>!a[n].shouldPageClose?{pagesNotPreventingClose:e.pagesNotPreventingClose,pagesPreventingClose:[...e.pagesPreventingClose,t]}:{pagesPreventingClose:e.pagesPreventingClose,pagesNotPreventingClose:[...e.pagesNotPreventingClose,t]}),{pagesPreventingClose:[],pagesNotPreventingClose:[]});return this.handlePagesAndWindowClose({pagesNotPreventingClose:o,pagesPreventingClose:n,identity:t})}async function Fn({pagesPreventingClose:e,pagesNotPreventingClose:t,identity:a}){return{shouldWindowClose:0===e.length}}async function Vn({page:e}){return Gt(e)}async function Nn(e){return{hasUnsavedChanges:!0}}const Ln=async()=>{const e=Ra(),t=(await be()).map((t=>e.Browser.wrapSync(t.identity)));await Promise.all(t.map((async e=>{const t=await e.getPages();await Promise.all(t.map((async t=>{t.title,await e.updatePage({pageId:t.pageId,page:{hasUnsavedChanges:!1}}),t.pageId,t.title,await vn({...t,hasUnsavedChanges:!1})})))})))},_n=new Map,On=()=>_n,Un=e=>_n.delete(e);let Gn=!1;const Hn=()=>{Gn||(Gn=!0,fin.Window.wrapSync(he).once("closed",(()=>{Gn=!1,(async(e,t)=>{await Ke($e(e),{source:"Store",...t})})(fin.me.identity,{type:"Navigation",action:"Close Store",skipValueHashing:!0})})))};let $n,Kn,zn;const Jn=async()=>(void 0===zn&&(zn=!!(await Q()).disableOpenFinAnalytics),zn);async function Zn(e){e.forEach((e=>{var t,a;"Page"===e.type?"Open Page"===e.action?(t=e.data.uuid,a=e,_n.set(t,a)):"Close Page"===e.action&&Un(e.data.uuid):"Store"===e.source&&"Close"!==e.action&&Hn()})),await(async e=>{$n?.sendToOpenFin&&(await Jn()||e.forEach((async e=>{const t=Wt({},e);t.entityId&&(t.entityId.uuid=await It(t.entityId.uuid),t.entityId.name=await It(t.entityId.name)),!e.skipValueHashing&&"value"in t&&(t.value=await It(t.value)),Kn(t)})))})(e);const t=e.map((({skipValueHashing:e,...t})=>t));this.handleAnalytics(t)}const qn=async e=>{$n=e;$n?.sendToOpenFin&&!await Jn()&&(()=>{const e=N,t=e+K.Analytics,a=document.createElement("IFRAME");a.setAttribute("src",t),a.setAttribute("style","width: 0px !important"),a.setAttribute("style","height: 0px !important"),a.setAttribute("style","display: none !important"),document.body.appendChild(a),Kn=async t=>{a.contentWindow.postMessage(t,e)}})();const t=fin.Application.getCurrentSync();t.addListener("view-created",(async e=>{var t;ze({type:"View",action:"Open View",value:e.viewIdentity.name,data:{uuid:e.viewIdentity.uuid,url:await(t=e.viewIdentity,fin.View.wrapSync(t).getInfo().then((e=>e.url)))}})})),t.addListener("view-destroyed",(async e=>{ze({type:"View",action:"Close View",value:e.viewIdentity.name,data:{uuid:e.viewIdentity.uuid}})})),t.addListener("window-closed",(e=>{e.name.startsWith(de.BrowserMenu)||(ze({type:"Window",action:"Close Window",value:e.name,data:{uuid:e.uuid}}),(async()=>{const e=On(),t=await hn();if(t.length===e.size)return;const a=t.reduce(((e,t)=>e.set(t.pageId,1)),new Map);for(const[t,n]of e)a.has(t)||(n.action="Close Page",ze(n),Un(t))})())}))},jn=Me({alwaysOnTop:!0,autoShow:!1,frame:!1,resizable:!1,showTaskbarIcon:!1});const Qn="browser",Yn=function(e=jn){const t=new Map;return async(a,n,o,r,i)=>{if(t.has(a)){const{currentUrl:e,currentName:o}=t.get(a);if(e===n)return;const r=fin.Window.wrapSync({uuid:fin.me.uuid,name:o});await r.close()}const s=`${de.HomeInternal}-${Date.now()}${Math.random()}`;t.set(a,{currentUrl:n,currentName:s});const c=`New ${r} indicator: ${o} ${i}`,l=await fin.Platform.getCurrentSync().createWindow({...e,name:s,url:n});((e,t)=>{const a=document.createElement("div");a.setAttribute("role","alert"),a.setAttribute("aria-live",t||"polite"),(e=>{e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.padding="0",e.style.margin="-1px",e.style.overflow="hidden",e.style.whiteSpace="nowrap",e.style.border="0"})(a),document.body.appendChild(a),setTimeout((()=>{a.innerHTML=e}),300),setTimeout((()=>{document.body.removeChild(a)}),1e3)})(c),l.once("closed",(()=>{t.delete(a)}))}}();async function Xn(e,t,a,n,o,r){if(a&&fin.me.name!==a){const i={type:e,message:t,parentBrowserName:a,secondaryMessage:n,icon:o,isEnterprise:r};return(await qt({uuid:fin.me.uuid,name:a})).dispatch(aa.ShowBrowserIndicator,i)}const i=new URLSearchParams;if(i.append("type",e),i.append("message",t),i.append("parentName",a||""),i.append("secondaryMessage",n||""),i.append("icon",o||""),i.append("isEnterprise",`${r}`||""),a){const e=pe(a?{uuid:T,name:a}:void 0),t=ve(await e.getBounds());i.append("parentBounds",t)}const s=`${(r?await ae():await te())+K.BrowserIndicator}#${i.toString()}`;return Yn(Qn+a,s,t,e,n)}async function eo(e,t,a,n){const o=await We(t);return Xn("success",e,t.name,a,n,o)}const to=async(e=we)=>{const{workspacePlatform:t}=await pe(e).getOptions(),a=t?.newPageUrl,n=t?.newTabUrl;return{newPageUrl:a,newTabUrl:n}},ao=async(e=we)=>{const t=await We(e)||rn(),a=t?null:await Ra().Browser.getUniquePageTitle();let n;if(e&&await ke(e))n=await(async(e,t=we)=>{const{newPageUrl:a}=await to(t);if(!a)throw new Error("Trying to create a new page without a newPageUrl set");return Ua(e,a,t)})(a,e);else if(t){const e=await ne();n=await Ua(a,e)}t&&(n.settings=n.settings??{},n.dimensions=n.dimensions??{},n.settings.hasHeaders=!1,n.settings.reorderEnabled=!0,n.dimensions.headerHeight=0);const o=await Ut(a,n);return t&&(o.hasUnsavedChanges=!1),o};var no;!function(e){e.Home="/home",e.Browser="/browser",e.Enterprise="/enterprise",e.Provider="/provider",e.Storefront="/storefront",e.Dock="/dock"}(no||(no={}));function oo(e,t){return async(a,...n)=>{e.has(a)&&e.get(a).forEach((e=>e(...n))),t&&await t({event:a,payload:n})}}function ro(e,t){return t&&t((t=>{const{event:a,payload:n}=t;e.has(a)&&e.get(a).forEach((e=>e(...n)))})),(t,a)=>{e.has(t)||e.set(t,new Set),e.get(t).add(a)}}function io(e){return(t,a)=>{e.has(t)||e.set(t,new Set);const n=e.get(t),o=(...e)=>{a(...e),n.delete(o)};n.add(o)}}function so(e){return(t,a)=>{e.has(t)&&e.get(t).delete(a)}}const co={name:de.BrowserMenu,alwaysOnTop:!0,autoShow:!0,frame:!1,resizable:!1,backgroundColor:"#2f3136",smallWindow:!0,showTaskbarIcon:!1,backgroundThrottling:!1,saveWindowState:!1};function lo(e){const t={...co,...e};return t.url=function(e,t){if(!W)throw new Error("resolveAbsolutePath can only be used in a window");const a=t??window.location;if(/^(?:[a-z]+:)?\/\//i.test(e))return e;const n=`${a.protocol}//${a.hostname}`;return new URL(e,n).href}(t.url??""),t}const uo=function(e){const t=new Map;return{emit:oo(t,(t=>A&&fin.InterApplicationBus.publish(e,t))),addListener:ro(t,(t=>A&&fin.InterApplicationBus.subscribe({uuid:fin.me.uuid},e,t))),addListenerWithUUID:a=>ro(t,(t=>A&&fin.InterApplicationBus.subscribe({uuid:a},e,t))),removeListener:so(t),once:io(t)}}("window.menu"),po=(e,t)=>fin.Window.wrapSync(e).updateOptions({opacity:t}),wo=e=>uo.emit("response",e),go=Be((()=>le().getChildWindows()),500);const ho=new Map;async function mo(e,t){const a=lo(e),n={top:a.top,left:a.left,width:a.defaultWidth||a.width,height:a.defaultHeight||a.height};return t.set("parentName",fin.Window.getCurrentSync().identity.name),{name:a.name,bounds:n,route:`${a.url}#${t.toString()}`}}async function ko({options:e,parameters:t}){const a=t??new URLSearchParams,n=lo(e),{name:o,modalParentIdentity:r}=n;if(!a.has("isEnterprise")){const e=`${await(async e=>(Re||(Re=await We(e)),Re))(r)}`;a.set("isEnterprise",e)}let i=await async function(e){return(await go()).find((t=>t.identity.name===e))}(o);if(i)await async function(e,t){const{name:a,bounds:n,route:o}=await mo(e,t),r={uuid:fin.me.identity.uuid,name:a},i=fin.Window.wrapSync(r);await Promise.all([po(r,0),i.setBounds(n)]),e.preventBlur||i.once("blurred",(()=>{po(r,0),i.hide(),wo({name:r.name,data:{actionName:"Cancel"}})})),uo.emit("update",a,n,o),await wo({name:a,data:{actionName:"Cancel"}})}(n,a);else{const{route:t,bounds:o}=await mo(e,a);i=await async function(e,t,a){const n=lo(e),o=await Pt(fin.me.identity),r=await Ct(fin.me.identity)===m.Dark,i=o?.theme;if(n.backgroundColor=i?.[r?m.Dark:m.Light]?.palette?.inputBackground||n.backgroundColor,!ho.has(n.name))return new Promise((o=>{uo.once("ready",(async e=>{if(e.name===n.name){const t=await ho.get(n.name);n.preventBlur||t.once("blurred",(async()=>{if(po(e,0),t.hide(),wo({name:n.name,data:{actionName:"Cancel"}}),t.identity.name===de.BrowserSaveMenu){const e=await t.getOptions();"submitting"!==e.customContext&&"error"!==e.customContext&&t.close()}else t.identity.name.startsWith(de.BrowserMenu)&&t.close()})),setTimeout((async()=>{await po(e,1),1!==(await fin.Window.wrapSync(e).getOptions()).opacity&&po(e,1)})),o(t)}}));const r=(async()=>{const o=await fin.Platform.getCurrentSync().createWindow(Me({...n,opacity:0,url:t||n.url,defaultLeft:a?.left,defaultTop:a?.top,defaultWidth:a?.width,defaultHeight:a?.height,workspacePlatform:{preventBlur:e.preventBlur}},!0));return o.once("closed",(()=>{ho.delete(n.name)})),o})();ho.set(n.name,r)}));return ho.get(n.name)}({...n},t,o)}return i}const bo=async({options:e,content:t,parameters:a})=>{const n=a??new URLSearchParams;n.set("content",JSON.stringify({...t,invocationId:Bt()}));const o={...e,name:`${e.name}--${e.modalParentIdentity?.name??""}`},r=await ko({options:o,parameters:n});return new Promise((e=>{uo.once("response",(async t=>{t.name===o.name&&(e({data:t.data}),o?.closeOnResponse&&r.close())}))}))},yo=async(e,t,a)=>{const{windowOptions:n,content:o}=await(async(e,t)=>{const a=await We(t);return{title:"Switch Workspace",windowOptions:{url:await oe(a,!1)+K.ResponseModal,name:de.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:t},content:{title:en("switchWorkspaceModal",{workspace:e}),body:en("switchWorkspaceModal.warning"),buttons:{right:[{label:en("global.cancel"),type:"secondary",id:"Cancel"},{label:en("global.confirm"),type:"primary",id:"Confirm"}]}}}})(t,a?void 0:e),r=await _e(n,e,a),i={...n,top:r.top,left:r.left};return"Confirm"===(await bo({options:i,content:o})).data.actionName},fo=async(e,t)=>{const{windowOptions:a,content:n}=await(async(e,t)=>{const a=await We(e);return{title:"Delete Workspace",windowOptions:{url:await oe(a,!1)+K.ResponseModal,name:de.BrowserMenu,defaultHeight:144,defaultWidth:410,modalParentIdentity:e},content:{title:en("deleteWorkspaceModal"),body:`${t}`,buttons:{right:[{label:en("global.cancel"),type:"secondary",id:"Cancel"},{label:en("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e,t),o=await _e(a,a.modalParentIdentity),r={...a,top:o.top,left:o.left};return"Confirm"===(await bo({options:r,content:n})).data.actionName},So=async(e,t,a)=>{const{windowOptions:n,content:o}=await(async(e,t,a)=>{const n=await We(e);return{title:"Platform Quit",windowOptions:{url:await oe(n,!1)+K.ResponseModal,name:de.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:a?void 0:e},content:{title:en("Platform"===t?"closePlatform":"closePlatform.workspace",{workspace:t}),body:en("closePlatform.warning"),buttons:{right:[{label:en("global.cancel"),type:"secondary",id:"Cancel"},{label:en("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e,t,a),r=await _e(n,e,a),i={...n,top:r.top,left:r.left};return"Confirm"===(await bo({options:i,content:o})).data.actionName},vo=async e=>{const{windowOptions:t,content:a}=await(async e=>{const t=await We(e);return{title:"Restore Changes",windowOptions:{url:await oe(t,!1)+K.ResponseModal,name:de.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:e},content:{title:en("restoreModal"),body:en("modal.discardWarning"),buttons:{right:[{label:en("global.cancel"),type:"secondary",id:"Cancel"},{label:en("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e),n=await _e(t,t.modalParentIdentity),o={...t,top:n.top,left:n.left};return"Confirm"===(await bo({options:o,content:a})).data.actionName},Po=async(e,t)=>{const{windowOptions:a,content:n}=await(async(e,t)=>{const a=await We(e);return{title:"Delete Page",windowOptions:{url:new URL(await oe(a,!1)+K.ResponseModal).toString(),name:de.BrowserMenu,defaultHeight:172,defaultWidth:464,modalParentIdentity:e},content:{title:en("enterpriseDeleteModal.deleteSupertab",{title:t}),body:en("enterpriseDeleteModal.deleteSupertabWarning"),buttons:{right:[{label:en("global.cancel"),type:"secondary",id:"Cancel",variant:a?"outline":void 0},{label:en("global.delete"),type:"primary",id:"Delete",variant:a?"submit":void 0}]}}}})(e,t),o=await _e(a,a.modalParentIdentity),r={...a,top:o.top,left:o.left};return"Delete"===(await bo({options:r,content:n})).data.actionName},Co=async({identity:e,title:t,description:a})=>{const{windowOptions:n,content:o}=await(async(e,t,a)=>({title:"Update Version",windowOptions:{url:await ae()+K.ResponseModal,name:de.UpdateVersionModal,defaultHeight:172,defaultWidth:464,modalParentIdentity:e,preventBlur:!0,closeOnResponse:!0,includeInSnapshots:!1},content:{title:t,body:a,buttons:{right:[{label:"Snooze",type:"secondary",id:"snooze"},{label:"Restart",type:"primary",id:"restart"}]}}}))(e,t,a),r=fin.Window.wrapSync({uuid:e.uuid,name:`${n.name}--${n.modalParentIdentity?.name}`});try{if(await(r?.isShowing()))return}catch(e){}const i=await _e(n,n.modalParentIdentity),s={...n,top:i.top,left:i.left};return(await bo({options:s,content:o})).data};async function Mo({options:e,...t}){try{if(!(!!e?.skipPrompt||await yo(e?.promptContainerWindowIdentity,t.title,e?.shouldCenterModalOnMonitor)))return!1;const a=Ra();await a.applySnapshot(t.snapshot,{...e?.applySnapshotOptions??{},closeExistingWindows:e?.applySnapshotOptions?.closeExistingWindows??!0}),xo(t),Xn("success",en("successIndicator.workspaceSwitched")).catch(console.warn)}catch(e){return console.error("failed to apply the current workspace: ",e),!1}return!0}function xo(e){if("undefined"!=typeof localStorage)try{const t=JSON.stringify(e);la(Et.CurrentWorkspaceId,t)}catch(e){console.error("failed to set the active workspace: ",e)}}async function Io(){const e=Ra(),t=await e.getSnapshot();return{workspaceId:Bt(),title:await Ro(),metadata:{APIVersion:O},snapshot:t}}async function Ao(){if("undefined"==typeof localStorage)return Io();const e=da(Et.CurrentWorkspaceId);if(!e)return Io();const t=JSON.parse(e),a=Ra(),n=await a.getSnapshot();return{...t,metadata:{APIVersion:O},snapshot:n}}const Wo=async()=>(await wt(we)).dispatch(dt.GetSavedWorkspaces,void 0),Do=async e=>await(async e=>(await wt(we)).dispatch(dt.GetSavedWorkspace,e))(e.workspaceId)?(async e=>(await wt(we)).dispatch(dt.UpdateSavedWorkspace,e))({workspaceId:e.workspaceId,workspace:e}):(async e=>(await wt(we)).dispatch(dt.CreateSavedWorkspace,e))({workspace:e});async function Ro(e="Untitled Workspace"){const t=(await Wo()).map((({title:e})=>e));return gn(e,t)}const To=e=>({...e,snapshot:{...e.snapshot,windows:e.snapshot.windows.map((e=>({...e,workspacePlatform:{...e.workspacePlatform,pages:e.workspacePlatform?.pages?.map((e=>({...e,hasUnsavedChanges:!1})))}})))}}),Bo=async(e,t)=>{const a=t??Ra();await a.Storage.saveWorkspace(To(e)),await(async()=>(await wt(we)).dispatch(dt.MarkUnsavedPagesAsSavedInternal,void 0))()},Eo=async e=>{const t=Ra(),a=await t.getCurrentWorkspace(),n=await t.Storage.getWorkspaces(),o=a.workspaceId;if(n.some((e=>e.workspaceId===o)))await Bo(a,t),await t.setActiveWorkspace(a),await eo(en("successIndicator.workspaceSaved"),e);else{const a=t.Browser.wrapSync(e);await a._openSaveModal({menuType:x.SAVE_WORKSPACE})}},Fo=e=>{Ra().Browser.wrapSync(e)._openSaveModal({menuType:x.SAVE_WORKSPACE_AS})},Vo=async e=>{const t=Ra().Browser.wrapSync(e),{newPageUrl:a}=await to(),n=await ao(e),o=a||void 0;await t._addDefaultPage({identity:e,page:n,newPageUrl:o})},No=async(e,t)=>{const a=Ra().Browser.wrapSync(e),n=await Ra().Storage.getPages(),o=(await a.getPages()).find((e=>t?e.pageId===t:e.isActive)),r=n.some((e=>o.pageId===e.pageId)),i=await We(e);if(r)try{await Ra().Storage.savePage((d=o,{...d,hasUnsavedChanges:void 0,parentIdentity:void 0,isActive:void 0,layout:_a(d.layout)})),await a.updatePage({pageId:o.pageId,page:{hasUnsavedChanges:!1}}),eo(en(i?"enterpriseSuccessIndicator.supertabSaved":"successIndicator.pageSaved"),e,en(i?"enterpriseSuccessIndicator.supertabHasBeenSaved":"successIndicator.pageHasBeenSaved",{title:o.title}))}catch{s=en("errorIndicator.pageSaveFailed"),c=o.parentIdentity.name,Xn("error",s,c,l)}else a._openSaveModal({id:o.pageId,menuType:x.SAVE_PAGE});var s,c,l,d},Lo=async(e,t)=>{const a=Ra().Browser.wrapSync(e),n=(await a.getPages()).find((e=>t?e.pageId===t:e.isActive));a._openSaveModal({id:n.pageId,menuType:x.SAVE_PAGE_AS}),ze({type:"Page Modal",action:"Select Save As",value:n.title,skipValueHashing:!0})},_o={title:"Downloads",pageId:"downloads-page-id",layout:{content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{name:"show-download-view",url:"chrome://downloads/"}}]}]}},Oo=async e=>{const t=pe(e),a=await t.getCurrentViews(),n=(await Ra().Browser.wrapSync(t.identity).getPages()).find((e=>e.isActive));try{const t=(await Promise.all(a.map((async e=>({identity:e.identity,info:await fin.View.wrapSync(e.identity).getInfo()}))))).find((e=>"chrome://downloads/"===e.info.url));if(t)await fin.View.wrapSync(t.identity).focus();else{const t=Ra();if(n?.isLocked){const e=(await fin.Application.getCurrentSync().getChildWindows()).find((e=>"show-download-window"===e.identity.name));return void(e?await e.focus():t.Browser.createWindow({name:"show-download-window",workspacePlatform:{pages:[_o]}}))}(await Ra().createView({name:"show-download-view",url:"chrome://downloads/",target:e},e)).focus()}}catch(e){console.error("Couldn't open downloads view",e)}},Uo=async e=>{const t=e.map((e=>fin.View.wrapSync(e).print()));await Promise.all(t)},Go=e=>{const[t,a,n]=e.split(".").map((e=>"x"===e?0:1));return 100*t+10*a+1*n};class Ho extends Error{}const $o=async e=>{try{const a=await async function(){const e=await Q(),t=e?.translationOverridesUrl??"https://workspace.openfin.co/workspace/assets/translation-override.json";if(""===t)throw new Ho("Empty string provided as url to translationOverridesUrl, overrides will not be fetched.");return await fetch(t).then((e=>e.json()))}();(t=(e=>{const t=O.split(".");return Object.keys(e).filter((e=>{const a=e.split(".");if(3!==a.length)return console.warn(`Encountered a translation override version string in an unsupported format: ${e}. Versions must be in A.B.C format where A, B, C are either integers or the wildcard symbol 'x'.`),!1;const[n,o,r]=a;return!(n!==t[0]&&"x"!==n||o!==t[1]&&"x"!==o||r!==t[2]&&"x"!==r)}))})(a),[...t].sort(((e,t)=>Go(e)-Go(t)))).forEach((t=>{const n=a[t];Object.keys(n).forEach((t=>{e.addResourceBundle(t,"translation",n[t],!0,!0)}))}))}catch(e){e instanceof Ho?console.warn(e.message):console.error("Error applying a translation override: ",e)}var t};function Ko(){return za().language}const zo=async e=>{qo(e),(e=>{za().changeLanguage(e)})(e),await(async e=>{const t=await be();return Promise.all(t.map((async t=>{const a=await qt(t.identity);await a.dispatch(aa.SetSelectedLanguage,e)})))})(e)};function Jo(){if(!za().options.resources)throw new Error("No language resources found");return{currentLanguage:Ko(),resources:za().options.resources}}async function Zo(e="en-US"){qo(e),function(e="en-US"){za().use($a.initReactI18next).init({lng:e,fallbackLng:"en-US",resources:{"en-US":{translation:qa},"ja-JP":{translation:Qa},"zh-CN":{translation:Ja},"ko-KR":{translation:Ya},"ru-RU":{translation:Xa},"de-DE":{translation:ja},"zh-Hant":{translation:Za}},interpolation:{escapeValue:!1}})}(e),await $o(za())}function qo(e){if(!M.includes(e))throw new Error(`The ISO language provided ${e} is not supported`)}const jo=new Map;async function Qo(){if("undefined"!=typeof localStorage)try{const e=da(Et.LastFocusedBrowserWindow);if(!e)return;const t=JSON.parse(e);if(await fe(t))return t}catch(e){throw new Error(`failed to get last focused browser window: ${e}`)}}async function Yo(){const e=Array.from(jo.values());for(let t=e.length-1;t>=0;t--){const a=fin.Window.wrapSync(e[t]);if(await a.isShowing())return e[t]}}async function Xo(e=fin.me.identity){await ke(e)&&(jo.delete(e.name),jo.set(e.name,e),function(e){if("undefined"!=typeof localStorage)try{const t=JSON.stringify(e);la(Et.LastFocusedBrowserWindow,t)}catch(e){console.error("failed to save last focused browser window: ",e)}}(e))}async function er(e=fin.me.identity){jo.delete(e.name)}const tr=Tt()((async()=>{const e=await fin.Platform.getCurrentSync().Application.getChildWindows();let t,a=!1;for(const n of e)if(n.identity.name===de.BrowserMenu||n.identity.name===de.BrowserSaveMenu?t=n:await ke(n.identity)&&(a=!0),a)break;!a&&t&&t.close()}),100,{leading:!1,trailing:!0}),ar=async()=>{le().on("window-closed",tr)};let nr={};const or=async({actionId:e,payload:t})=>{if("function"!=typeof nr[e])throw new Error(`Cannot find a configured function for the action '${e}'`);return nr[e](t)};let rr;const ir=()=>`custom-context-menu-${Ra().identity.uuid}-${O}`,sr=()=>`custom-bookmark-context-menu-${Ra().identity.uuid}-${O}`,cr=async()=>(rr||(rr=await fin.InterApplicationBus.Channel.connect(ir())),rr);var lr,dr;!function(e){e.Save="Save",e.SaveAs="SaveAs"}(lr||(lr={})),function(e){e.GlobalMenu="global-menu",e.ContextMenu="context-menu",e.RenameSupertab="rename-supertab",e.AddEditBookmark="add-edit-bookmark",e.DropdownMenu="dropdown-menu"}(dr||(dr={}));const ur=require("idb-keyval"),pr=(e,t)=>(0,ur.createStore)(e+"-"+fin.me.uuid,t),wr=(e,t)=>{const a=pr(e,t);return(async(e,t,a)=>{const n=da(Et.HasMovedStore),o=n?JSON.parse(n):{};if(o&&o[a])return;o[a]=!0,la(Et.HasMovedStore,JSON.stringify(o));const r=await(0,ur.entries)(e);await(0,ur.setMany)(r,t)})((0,ur.createStore)(e,t),a,e),a},gr=(e,t="")=>e.toLowerCase().includes(t.toLowerCase()),hr=D&&A&&wr("openfin-home-pages","pages");async function mr(e){if(!hr)throw new Error("Unable to get page - IndexDB not supported");const t=await(0,ur.get)(e,hr);if(t)return t.pageId=e.toString(),t.title=t.title||t.pageId,t}async function kr(e){if(!hr)throw new Error("Unable to get page list - IndexDB not supported");const t=await(0,ur.keys)(hr),a=(await Promise.all(t.map((e=>mr(e.toString()))))).filter((e=>!!e));return e?a.filter((t=>gr(t.title,e))):a}async function br({page:e}){if(!hr)throw new Error("Unable to create page - IndexDB not supported");await(0,ur.set)(e.pageId,e,hr)}async function yr(e){if(!hr)throw new Error("Unable to delete page - IndexDB not supported");await(0,ur.del)(e,hr)}async function fr({pageId:e,page:t}){if(!hr)throw new Error("Unable to update page - IndexDB not supported");if(void 0===await mr(e))throw new Error("page not found");await br({page:t}),e!==t.pageId&&await yr(e)}const Sr=D&&A&&pr("openfin-enterprise-tab-history","removed-tab-stack"),vr=async e=>{(0,ur.set)(Date.now(),e,Sr)},Pr=D&&A&&pr("openfin-enterprise-site-history","visited-sites"),Cr=async e=>{if("website"===e.type){let t=await(0,ur.get)(e.url,Pr);t?(t.icon=e.icon,t.title=e.title,t.type=e.type,t.visitCount=(t.visitCount||0)+1):t={url:e.url,icon:e.icon,title:e.title,type:e.type,visitCount:1},t.accessTime=Date.now(),(0,ur.set)(t.url,t,Pr)}},Mr=async()=>{const e=await(0,ur.entries)(Pr);if(e.length>0){e.sort(((e,t)=>t[1].visitCount-e[1].visitCount));return(e.length>5?e.slice(0,5):e).map((e=>e[1]))}return[]},xr=async()=>(await fin.System.getHostSpecs()).name.toLowerCase().includes("windows"),Ir=async({browserIdentity:e,url:t,shiftKey:a,activePage:n,pages:o})=>{const r=Ra().Browser.wrapSync(e),i=await Ua(t,t,e),s={...await Ut(t,i),attachedPageType:"singleView",singleViewName:t},c=o.findIndex((e=>e.pageId===n.pageId));await r._addPage(s,{index:c+1}),a&&await r.setActivePage(s.pageId)},Ar=async e=>{const{url:t}=e.bookmark,{sourceIdentity:a,sourceEvent:n}=e,o=await xr(),r=Ra();let i=!1,s=a;if(!await ke(a)){const t=await Yo();if(!t)return await(async e=>{const t=Ra(),a=await Ua(e.url,e.url),n=await Ut(e.url,a);me((await t.Browser.createWindow({workspacePlatform:{pages:[n]}})).identity)})(e.bookmark);i=!0,s=t}const c=r.Browser.wrapSync(s),l=await c.getPages(),d=(await c._getLayoutsWithSelectedViews()).find((e=>e.isActive));if(!d)throw Error(`Browser ${s} does not have any active layouts`);const u=l.find((e=>e.isActive)),p=1===Ha(u.layout.content),w=d.selectedViews[0];i?await Ir({browserIdentity:s,url:t,shiftKey:!0,activePage:u,pages:l}):p?await(async({isWindows:e,currentViewId:t,browserIdentity:a,url:n,activePage:o,pages:r,sourceEvent:i})=>{const{ctrlKey:s,metaKey:c,shiftKey:l}=i;(e?s:c)?await Ir({browserIdentity:a,url:n,shiftKey:l,activePage:o,pages:r}):await fin.View.wrapSync(t).navigate(n)})({isWindows:o,currentViewId:w,browserIdentity:s,url:t,activePage:u,pages:l,sourceEvent:n}):await(async({isWindows:e,currentViewId:t,browserIdentity:a,url:n,activeLayout:o,sourceEvent:r})=>{const{ctrlKey:i,metaKey:s,shiftKey:c}=r;if(e?i:s){const e=fin.View.wrapSync(t),o=await e.getCurrentStack(),r=(await o.getViews()).findIndex((e=>e.name===t.name)),i={url:n,browserIdentity:a,title:n};await o.addView(i,{index:r+1})}else await fin.View.wrapSync(o.selectedViews[0]).navigate(n)})({isWindows:o,currentViewId:w,browserIdentity:s,url:t,activeLayout:d,sourceEvent:n})};var Wr;!function(e){e.Label="normal",e.Separator="separator",e.Submenu="submenu",e.Checkbox="checkbox"}(Wr||(Wr={}));let Dr={locked:!1,x:-1,y:-1};const Rr=async(e,t,a,n)=>{if(!A)throw new Error("showEnterpriseContextMenu can only be used in a Here env. Avoid calling this method during pre-rendering.");if(!n&&!fin.me.isWindow)throw new Error("showEnterpriseContextMenu can only be used in a Here window.");const{x:o,y:r,template:i}=e;if(((e,t)=>{const{x:a,y:n,locked:o}=Dr;return o&&e===a&&t===n})(o,r))return new Promise(((e,t)=>e({data:void 0})));Dr={locked:!0,x:o,y:r};const s=await cr(),c=Bt(),l=new Promise(((e,t)=>{s.register(`response-${c}`,(t=>{Dr.locked=!1,s.remove(`response-${c}`),e(t)}))}));return await s.dispatch("open",{parentIdentity:n.identity,responseIdentity:we,requestId:c,type:t,anchorBehavior:a,x:o,y:r,payload:{template:i}}),l},Tr={type:Wr.Separator,data:void 0},Br=async()=>({type:Wr.Submenu,label:en("contextMenu.print"),submenu:[{type:Wr.Label,label:en("contextMenu.submenu.print"),data:{type:f.Print}},{type:Wr.Label,label:en("contextMenu.submenu.printAll"),data:{type:f.PrintAll}},Tr,{type:Wr.Label,label:en("contextMenu.printScreen"),data:{type:f.PrintScreen}}]}),Er=()=>({type:Wr.Label,label:en("contextMenu.closeWindow"),data:{type:h.CloseWindow}}),Fr=e=>({type:Wr.Label,label:en(e?"contextMenu.quitEnterpriseBrowser":"contextMenu.quitPlatform"),data:{type:h.Quit}}),Vr=()=>({type:Wr.Label,label:en("contextMenu.newWindow"),data:{type:h.NewWindow}}),Nr=e=>({type:Wr.Label,label:en(e?"enterpriseContextMenu.saveSupertab":"contextMenu.savePage"),data:{type:h.SavePage}}),Lr=e=>({type:Wr.Label,label:en(e?"enterpriseContextMenu.saveSupertabAs":"contextMenu.savePageAs"),data:{type:h.SavePageAs}}),_r=(e,t)=>({type:Wr.Label,label:en(t?"enterpriseContextMenu.newTab":"contextMenu.newPage"),data:{type:h.NewPage},enabled:e}),Or=()=>({label:en("contextMenu.switchWorkspace")}),Ur=()=>({label:en("contextMenu.deleteWorkspace")}),Gr=()=>({label:en("contextMenu.appearance")}),Hr=(e,t,a)=>t.map((t=>{const n=t.workspaceId===e.workspaceId;return{label:t.title,type:Wr.Checkbox,enabled:!n,checked:n,data:{type:a,workspaceId:t.workspaceId}}})),$r=async()=>{const e=await Ra().Theme.getSelectedScheme();return[{label:en("theme.light"),type:Wr.Checkbox,checked:e===m.Light,data:{type:h.Appearance,scheme:m.Light}},{label:en("theme.dark"),type:Wr.Checkbox,checked:e===m.Dark,data:{type:h.Appearance,scheme:m.Dark}},{label:en("theme.system"),type:Wr.Checkbox,checked:e===m.System,data:{type:h.Appearance,scheme:m.System}}]},Kr=async(e,t=[])=>{const a=await Se(),{newPageUrl:n}=await to(e),o=await(async e=>{const t=pe(e),{workspacePlatform:a}=await t.getOptions();return a?.disableMultiplePages})(e),r=await(async e=>{const t=pe(e),{workspacePlatform:a}=await t.getOptions();return a?.isLocked})(e),i=await We(e),s=[],c=t.length>0;n&&(s.push(Vr()),o||s.push(_r(!r,i))),s.push(Tr);const l=Ra(),d=await l.getCurrentWorkspace(),u=await l.Storage.getWorkspaces(),p=u.find((e=>e.workspaceId===d.workspaceId));s.push({type:Wr.Label,label:en("contextMenu.restore"),data:{type:h.RestoreChanges},enabled:!!p}),s.push({type:Wr.Label,label:en("contextMenu.saveWorkspace"),data:{type:h.SaveWorkspace},enabled:!!p}),s.push({type:Wr.Label,label:en("contextMenu.saveWorkspaceAs"),data:{type:h.SaveWorkspaceAs}}),s.push({type:Wr.Label,label:en("contextMenu.renameWorkspace"),data:{type:h.RenameWorkspace},enabled:!!p}),u.some((e=>e.workspaceId!==d.workspaceId))?s.push({label:Or().label,submenu:Hr(d,u,h.SwitchWorkspace),data:void 0},{label:Ur().label,submenu:Hr(d,u,h.DeleteWorkspace),data:void 0}):s.push({label:Or().label,enabled:!1,data:void 0},{label:Ur().label,enabled:!1,data:void 0}),s.push({label:en("contextMenu.downloads"),data:{type:h.Downloads}});const w=await l.Theme.getThemes();return(w[0]&&"palettes"in w[0]||!w[0]||0===w.length)&&s.push({label:Gr().label,submenu:await $r(),data:void 0}),s.push(Tr,Nr(i),Lr(i),await(async e=>{const t=await xr();return{label:en("contextMenu.print"),submenu:[{type:Wr.Label,label:en("contextMenu.submenu.print"),data:{type:h.Print},enabled:e},{type:Wr.Label,label:en("contextMenu.submenu.printAll"),data:{type:h.PrintAll}},...t?[Tr,{type:Wr.Label,label:en("contextMenu.printScreen"),data:{type:h.PrintScreen}}]:[]],data:void 0}})(c)),a?[...s,Er(),Tr,{type:Wr.Label,label:en("contextMenu.openStorefront"),data:{type:h.OpenStorefront}},Tr,Fr()]:[...s,Tr,Er(),Tr,Fr()]},zr=async(e,t)=>{const a=t.selectedViews[0],n=fin.View.wrapSync(a),o=await(async e=>{const{newTabUrl:t}=await to(e);if(!t)throw new Error("Trying to create a new page without a newTabUrl set");return{url:t,target:e,title:"New Tab"}})(e);await Ra().createView(o,e,n.identity)},Jr=async(e,t)=>{const a=Ra().Browser.wrapSync(e),n=(await a.getPages()).find((e=>e.isActive)),o=await fin.Window.wrapSync(e).getCurrentViews();if(t.length===o.length-(n.panels??[]).length){return void(await qt(e)).dispatch(aa.ClosePage,{pageId:n?.pageId})}const r=fin.Platform.getCurrentSync();t.forEach((async t=>{const o=await fin.View.wrapSync(t).getParentLayout();await r.closeView(t);const{hasUnsavedChanges:i}=await(async e=>(await gt(we)).dispatch(dt.HandlePageChanges,e))({page:{...n,layout:await o.getConfig()},identity:e,eventDetails:{type:g.ViewRemoved,viewIdentity:t}});i&&await a.updatePage({pageId:n.pageId,page:{hasUnsavedChanges:!0}})}))},Zr=async(e,t)=>{const a=await(e=>Promise.all(e.map((async e=>fin.View.wrapSync(e).getInfo()))))(t),{newPageUrl:n,newTabUrl:o}=await to(e);a.forEach((async e=>{e.url!==n&&e.url!==o&&await fin.System.openUrlWithBrowser(e.url)}))},qr=(e,t)=>{t.forEach((async t=>{const a=fin.View.wrapSync(t);await(async(e,t)=>{const{url:a}=await t.getInfo(),n={...await t.getOptions(),url:a,target:e,name:void 0};await Ra().createView(n,e,t.identity)})(e,a)}))},jr=async(e,t,a)=>{const n={newChannelId:t,selectedViews:a};(await qt(e)).dispatch(aa.AddToChannel,n)},Qr=async(e,t)=>{(await qt(e)).dispatch(aa.RemoveFromChannel,t)},Yr=async(e,t)=>{if(!e)return;const a=t.identity,n=fin.Window.wrapSync(a);switch(ze({type:"View Tab Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0}),e.type){case f.Back:await(async e=>{const t=e.map((e=>fin.View.wrapSync(e).navigateBack()));await Promise.all(t)})(t.selectedViews);break;case f.Forward:await(async e=>{const t=e.map((e=>fin.View.wrapSync(e).navigateForward()));await Promise.all(t)})(t.selectedViews);break;case f.Print:await Uo(t.selectedViews);break;case f.PrintAll:await n.print({content:"views",includeSelf:!1});break;case f.PrintScreen:await n.print({content:"screenshot"});break;case f.CloseViews:await Jr(a,t.selectedViews);break;case f.OpenWithDefaultBrowser:await Zr(a,t.selectedViews);break;case f.ReloadViews:t.selectedViews.forEach((async e=>{const t=fin.View.wrapSync(e);await t.reload()}));break;case f.NewView:await zr(a,t);break;case f.DuplicateViews:qr(a,t.selectedViews);break;case f.AddToChannel:jr(a,e.option,t.selectedViews);break;case f.RemoveFromChannel:Qr(a,t.selectedViews);break;case f.Custom:if(e.action){const n={callerType:C.ViewTabContextMenu,windowIdentity:a,selectedViews:t.selectedViews,customData:e.action.customData};Ra()._invokeCustomAction(e.action.id,n)}}},Xr=(require("title-case"),new Map([["blue",{name:"Blue",color:"#0091EB"}],["indigo",{name:"Indigo",color:"#6450FF"}],["pink",{name:"Pink",color:"#E878CF"}],["teal",{name:"Teal",color:"#24D1D1"}],["green",{name:"Green",color:"#00AF78"}],["orange",{name:"Orange",color:"#FF7D37"}],["red",{name:"Red",color:"#F94144"}],["yellow",{name:"Yellow",color:"#F9C74F"}],["gray",{name:"Gray",color:"#828788"}]]));function ei(e){const t=Array.from(Xr.entries()),a=e.contextGroup;return{type:"widget",config:{type:"add-to-channel",channels:[...t.map((([e,t])=>({label:t.name,data:{type:k.AddToChannel,option:e},color:t.color,checked:a===e}))),{label:"unlink",data:{type:k.AddToChannel,option:"unlink"},isNone:!0}]},label:"Link to Channel"}}let ti="Platform";const ai=async()=>ti;const ni=async(e,t)=>{if(!e)return;const a=t.identity,n=await qt(a),o=Ra().Browser.wrapSync(a),r=fin.Window.wrapSync(a);if(ze({type:"Global Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0,data:{action:e.action?.id}}),await We(a)){const a=await(async(e,t)=>{const a=t.identity,n=Ra().Browser.wrapSync(a),o=(await n.getPages()).find((e=>e.isActive)),r=Ht({...a,layoutName:o.layoutContainerKey}),i=t.selectedViews;switch(e?.type){case b.Lock:await n.updatePage({pageId:o.pageId,page:{isLocked:!o.isLocked}});break;case b.AddToChanel:e.option?await jr(a,e.option,i):null===e.option&&await Qr(a,i);break;case h.NewWindow:{const e=await ao(a);await Ra().Browser.createWindow({workspacePlatform:{pages:[e],windowType:"enterprise"}});break}case b.Pin:{const{alwaysOnTop:e}=await n.openfinWindow.getOptions();await n.openfinWindow.updateOptions({alwaysOnTop:!e});break}case b.ShowHideTabs:await r.isShowingTabs()?await r.hide():await r.show();break;default:return!1}return!0})(e,t);if(a)return}switch(e.type){case h.NewWindow:{const{newPageUrl:e}=await to(a);if(!e)throw new Error("Trying to create a new empty window without a newPageUrl set");Ra().createView({target:void 0,url:e});break}case h.NewPage:await Vo(a);break;case h.CloseWindow:n.dispatch(aa.CloseBrowserWindow);break;case h.SaveWorkspace:await Eo(a);break;case h.SavePage:await No(a);break;case h.SavePageAs:await Lo(a);break;case h.SaveWorkspaceAs:await Fo(a);break;case h.RenameWorkspace:o._openSaveModal({menuType:x.RENAME_WORKSPACE});break;case h.SwitchWorkspace:await(async(e,t)=>{const a=Ra(),n=(await a.Storage.getWorkspaces()).find((e=>e.workspaceId===t.workspaceId));a.applyWorkspace(n,{skipPrompt:!1,promptContainerWindowIdentity:e})})(a,e);break;case h.DeleteWorkspace:await(async(e,t)=>{const a=Ra(),n=(await a.Storage.getWorkspaces()).find((e=>e.workspaceId===t.workspaceId));n&&await fo(e,n.title)&&(await a.Storage.deleteWorkspace(t.workspaceId),eo(en("successIndicator.workspaceDeleted"),e))})(a,e);break;case h.Downloads:await Oo(a);break;case h.Appearance:await Ra().Theme.setSelectedScheme(e.scheme);break;case h.Quit:{const e=ai();await So(a,await e)&&fin.Platform.getCurrentSync().quit()}break;case h.OpenStorefront:(async()=>{await Se()&&me(he)})();break;case h.RestoreChanges:{const e=await async function(){const e=Ra(),t=await e.getCurrentWorkspace();return(await e.Storage.getWorkspaces()).find((e=>e.workspaceId===t.workspaceId))}();await vo(a)&&await Mo({options:{skipPrompt:!0},...e})}break;case h.Print:await Uo(t.selectedViews);break;case h.PrintAll:await r.print({content:"views",includeSelf:!1});break;case h.PrintScreen:await r.print({content:"screenshot"});break;case h.Custom:if(e.action){const t={callerType:C.GlobalContextMenu,windowIdentity:a,customData:e.action.customData};Ra()._invokeCustomAction(e.action.id,t)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`)}},oi=async(e,t,a)=>{const n=Ra().Browser.wrapSync(t.identity),o=fin.Window.wrapSync(t.identity),r=await qt(t.identity),i=await We();switch(e&&ze({type:"Page Tab Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0}),e?.type){case k.Save:await No(t.identity,t.pageId);break;case k.SaveAs:await Lo(t.identity,t.pageId);break;case k.NewPage:await Vo(t.identity);break;case k.DeletePage:await(async(e,t)=>{const a=Ra(),n=a.Browser.wrapSync(e),o=(await a.Storage.getPages()).find((e=>e.pageId===t));o&&await Po(e,o.title)&&(await a.Storage.deletePage(o.pageId),await n.removePage(t),eo(en("enterpriseSuccessIndicator.supertabDeleted"),e,en("enterpriseSuccessIndicator.supertabHasBeenDeleted",{title:o.title})))})(t.identity,t.pageId);break;case k.Rename:if(await We(t.identity)){await n.setActivePage(t.pageId);const e=await cr();await e.dispatch("open",{parentIdentity:t.identity,responseIdentity:we,type:dr.RenameSupertab,anchorBehavior:ii.Center,x:a.left+a.width/2-164,y:a.bottom-8,payload:{pageId:t.pageId}})}else await n._openSaveModal({menuType:x.RENAME_PAGE,id:t.pageId});break;case k.Duplicate:r.dispatch(aa.DuplicatePage,t.pageId);break;case k.Close:i?await(async(e,t)=>{const a=Ra().Browser.wrapSync(e),n=await a.getPages();for(const o of n)if(o.pageId===t){await a.removePage(o.pageId),await a._trackRemovedTab({identity:e,page:o});break}})(t.identity,t.pageId):r.dispatch(aa.ClosePage,{pageId:t.pageId});break;case k.Custom:if(e.action){const a={callerType:C.PageTabContextMenu,windowIdentity:t.identity,pageId:t.pageId,customData:e.action.customData};Ra()._invokeCustomAction(e.action.id,a)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`);break;case k.Refresh:await(async(e,t)=>{const a=Ra(),n=a.Browser.wrapSync(e),o=(await n.getPages()).find((e=>t?e.pageId===t:e.isActive));o?.layout?.content&&Oa(o.layout.content).forEach((async e=>{(await fin.View.wrap({uuid:a.identity.uuid,name:e.name})).reload()}))})(t.identity,t.pageId);break;case k.CloseOthers:await(async(e,t)=>{const a=Ra().Browser.wrapSync(e),n=await a.getPages();for(const o of n)o.pageId!==t&&(await a.removePage(o.pageId),await a._trackRemovedTab({identity:e,page:o}))})(t.identity,t.pageId);break;case k.SaveWorkspaceAs:await Fo(t.identity);break;case k.Print:{const e=await n._getLayoutsWithSelectedViews(),{selectedViews:a}=e.find((e=>e.pageId===t.pageId));await Uo(a);break}case k.PrintAll:await n.setActivePage(t.pageId),await o.print({content:"views",includeSelf:!1});break;case k.PrintScreen:await n.setActivePage(t.pageId),await o.print({content:"screenshot"});break;case k.AddToChannel:await n.updatePage({pageId:t.pageId,page:{contextGroup:"unlink"===e.option?null:e.option}})}},ri=async(e,t)=>{if(e?.type){const a=t.identity;switch(e.type){case v.SavePage:await No(a);break;case v.SaveWorkspace:await Eo(a);break;case v.SavePageAs:await Lo(a);break;case v.SaveWorkspaceAs:await Fo(a);break;case v.Custom:if(e.action){const a={callerType:C.SaveButtonContextMenu,windowIdentity:t.identity,pageId:t.pageId,customData:e.action.customData};Ra()._invokeCustomAction(e.action.id,a)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`)}}};var ii;!function(e){e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight",e[e.Center=4]="Center"}(ii||(ii={}));const si=async(e,t,a,n)=>{const{x:o,y:r,identity:i,template:s,callback:c}=e,l=await We(i),{data:d}=l?await Rr({x:o,y:r,template:s},a,n,fin.Window.wrapSync(i)):await function(e,t){if(!A)throw new Error("showContextMenu can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");if(!t&&!fin.me.isWindow)throw new Error("showContextMenu can only be used in an OpenFin window.");return(t||fin.Window.getCurrentSync()).showPopupMenu(e)}({x:o,y:r,template:s},fin.Window.wrapSync(i));c(d,e)};async function ci(e,t){const a=await We(e.identity),n=a?await(async({identity:e,selectedViews:t})=>{const a=Ra(),n=a.Browser.wrapSync(e),o=(await n.getPages()).find((e=>e.isActive)),r=Ha(o.layout.content)>1,i=await We(e),s=await a.Theme.getThemes(),c=s[0]&&"palettes"in s[0]||!s[0]||0===s.length,l={...Nr(i),enabled:r},d={...Lr(i),enabled:r};return[Vr(),_r(!0,i),{type:Wr.Separator},l,d,{type:Wr.Separator},...c?[{type:Wr.Submenu,label:Gr().label,submenu:await $r()}]:[],{type:Wr.Separator},Er(),{type:Wr.Separator},Fr(!0)]})({identity:e.identity,selectedViews:e.selectedViews}):await Kr(e.identity,e.selectedViews),o=await ai();a||(n.find((e=>e.data?.type===h.Quit)).label=`Quit ${o}`);const{rect:r,...i}=e,{x:s,y:c}=a?{x:r.left+r.width,y:r.bottom}:e,l={...i,x:s,y:c,template:n,callback:ni};await this.openGlobalContextMenu(l,t)}async function li(e,t){const a={...e,callback:Yr};await this.openViewTabContextMenu(a,t)}async function di(e,t){const a=await(async(e,t)=>{const a=await Ra().Storage.getPage(e),n=await hn(),o=await We(t),r=n.find((t=>t.pageId===e)),i=Ha(r.layout.content)>1,{workspacePlatform:s}=await pe(t).getOptions(),c=!(s.isLocked||s.preventPageClose||r.closeButton?.disabled||r.closeButton?.hidden),l=[{type:Wr.Label,label:en("enterpriseContextMenu.newTab"),data:{type:k.NewPage}},Tr,ei(r),Tr,{type:Wr.Label,label:en("reload"),data:{type:k.Refresh}},{type:Wr.Label,label:en("enterpriseContextMenu.duplicate"),data:{type:k.Duplicate},enabled:!s.isLocked},await Br(),Tr,{type:Wr.Label,label:en(i?"enterpriseSaveModal.closeSupertab":"enterpriseSaveModal.closeTab"),data:{type:k.Close},enabled:c}],d=[{type:Wr.Label,label:en("enterpriseContextMenu.newTab"),data:{type:k.NewPage}},Tr,ei(r),Tr,{type:Wr.Label,label:en("enterpriseSaveModal.renameSupertab"),data:{type:k.Rename},enabled:!s.isLocked&&!!a&&i},{type:Wr.Label,label:en("enterpriseContextMenu.duplicate"),data:{type:k.Duplicate},enabled:!s.isLocked},Tr,{type:Wr.Label,label:en("enterpriseContextMenu.saveSupertab"),data:{type:k.Save},enabled:i},{type:Wr.Label,label:en("enterpriseContextMenu.saveSupertabAs"),data:{type:k.SaveAs},enabled:i},Tr,{type:Wr.Label,label:en("enterpriseContextMenu.deleteSupertab"),data:{type:k.DeletePage},enabled:!!a},Tr,{type:Wr.Label,label:en(i?"enterpriseSaveModal.closeSupertab":"enterpriseSaveModal.closeTab"),data:{type:k.Close},enabled:c}],u=[{type:Wr.Label,label:en("contextMenu.savePage"),data:{type:k.Save},enabled:!0},{type:Wr.Label,label:en("saveMenu.savePageAs"),data:{type:k.SaveAs},enabled:!0},{type:Wr.Label,label:"Save Workspace As",data:{type:k.SaveWorkspaceAs}},{type:Wr.Label,label:"Refresh",data:{type:k.Refresh}},Tr,{type:Wr.Label,label:en("saveModal.renamePage"),data:{type:k.Rename},enabled:!!a},{type:Wr.Label,label:en("contextMenu.duplicatePage"),data:{type:k.Duplicate},enabled:!s.isLocked},Tr,{type:Wr.Label,label:en("saveModal.closePage"),data:{type:k.Close},enabled:c}];return o?i?d:l:u})(e.pageId,e.identity),n={...e,template:a,callback:(t,a)=>{oi(t,a,e.rect)}};await this.openPageTabContextMenu(n,t)}async function ui(e,t){const a={...e,template:await(async()=>{const e=Ra(),t=await e.getCurrentWorkspace(),a=(await e.Storage.getWorkspaces()).find((e=>e.workspaceId===t.workspaceId));return[{type:Wr.Label,label:en("contextMenu.saveWorkspace"),enabled:!!a,data:{type:v.SaveWorkspace}},{type:Wr.Label,label:en("saveMenu.saveWorkspaceAs"),data:{type:v.SaveWorkspaceAs}},{type:Wr.Separator,data:void 0},{type:Wr.Label,label:en("contextMenu.savePage"),data:{type:v.SavePage}},{type:Wr.Label,label:en("saveMenu.savePageAs"),data:{type:v.SavePageAs}}]})(),callback:ri};await this.openSaveButtonContextMenu(a,t)}const pi="dock-companion-updates",wi=async()=>(await fin.Application.getCurrentSync().getChildWindows()).find((e=>e.identity.name===de.DockCompanion)),gi=rt(`${"undefined"!=typeof fin&&fin?.me.identity.uuid}-enterprise-dock`),hi=async()=>{const e=Ra();let t=await Yo();if(t){const a=e.Browser.wrapSync(t),n=(await a.getPages()).at(-1),o=Oa(n.layout.content);if(1===o.length&&Te(o[0].url))await a.setActivePage(n.pageId);else{const e=await ao(t),{newPageUrl:n}=await to();await a._addDefaultPage({identity:a.identity,page:e,newPageUrl:n||void 0})}}else{const a=fin.Window.wrapSync({uuid:fin.me.uuid,name:de.DockCompanion}),n=await Ce(await a.getBounds()),o=await async function(e,t,a){const n=await fin.System.getMonitorInfo(),o=a?.availableRect??n.primaryMonitor.availableRect,r={width:o.right-o.left,height:o.bottom-o.top},i=Math.min(e,r.height),s=Math.min(t,r.width),c=o.top+Math.floor((r.height-i)/2);return{height:i,width:s,left:o.left+Math.floor((r.width-s)/2),top:c}}(600,900,n),r=await ao();t=(await e.Browser.createWindow({defaultHeight:600,defaultWidth:900,defaultLeft:o.left,defaultTop:o.top,workspacePlatform:{pages:[r]}})).identity}(await qt(t)).dispatch(aa.FocusAndExpandSearchInternal)},mi=D&&A&&pr("dock-provider-configs","dock-provider-configs");async function ki(e){if(!mi)throw new Error("Unable to get Dock provider config - IndexDB not supported");return await(0,ur.get)(e,mi).catch((e=>{console.warn("Failed to retrieve Dock provider config from IndexedDB",e)}))}async function bi(e){await(0,ur.set)(e.id,e,mi)}let yi;async function fi(e){return(await(yi||(yi=rt(`${"undefined"!=typeof fin&&fin.me.identity.uuid}-enterprise-modal`)()),yi)).dispatch(ta.SendUpdateVersionModalResponse,e)}const Si=D&&A&&wr("openfin-workspace-platform-workspaces","workspaces");async function vi(e){if(!Si)throw new Error("Unable to get workspace - IndexDB not supported");const t=await(0,ur.get)(e,Si);if(t)return t.workspaceId=e.toString(),t.title=t.title||t.workspaceId,t}async function Pi(e){if(!Si)throw new Error("Unable to get workspaces - IndexDB not supported");const t=await(0,ur.keys)(Si),a=(await Promise.all(t.map((e=>vi(e.toString()))))).filter((e=>!!e));return e?a.filter((t=>gr(t.title,e))):a}async function Ci({workspace:e}){if(!Si)throw new Error("Unable to create workspace - IndexDB not supported");const t=(await Pi()).find((t=>t.title===e.title));if(t&&t.workspaceId!==e.workspaceId)throw new Error(`Workspace with title '${e.title}' already exists.`);await(0,ur.set)(e.workspaceId,e,Si)}async function Mi(e){if(!Si)throw new Error("Unable to delete workspace - IndexDB not supported");await(0,ur.del)(e,Si)}async function xi({workspaceId:e,workspace:t}){if(!Si)throw new Error("Unable to update workspaces - IndexDB not supported");if(!await vi(e))throw new Error("workspace not found");await Ci({workspace:t}),e!==t.workspaceId&&await Mi(e)}const Ii=e=>{const t=e.layout,a=t.content?Oa(t.content):[],n=a.length;return n>1?{...e,singleViewName:null}:1===n?{...e,singleViewName:a[0].name}:void 0},Ai=async(e,t,a)=>{const n=await Ra().Browser.getAllAttachedPages(),o=new Set(n.map((e=>e.title)).filter((e=>!!e))),r=new Set(n.map((e=>e.pageId)).filter((e=>!!e))),i=t?.defaultPageOptions,s="enterprise"===a?.workspacePlatform?.windowType||"enterprise"===t?.defaultWindowOptions?.workspacePlatform?.windowType,c=await(async(e,t,a)=>{if(a)return ne();const n=t?.workspacePlatform?.newTabUrl;if(n)return n;const o=e?.defaultWindowOptions?.workspacePlatform?.newTabUrl;return o||void 0})(t,a,s);return Promise.all(e.map((async e=>{if("reparent"===e.multiInstanceViewBehavior)return{...e,layoutContainerKey:Bt()};((e,t)=>{e.pageId||=Bt(),t.has(e.pageId)&&(console.warn("PageID collision detected. All Page IDs should be unique. A random new pageId will be generated"),e.pageId=Bt()),t.add(e.pageId)})(e,r),s||(e.title=gn(e.title,Array.from(o.keys()))),o.add(e.title),e.panels?.reduce(((e,t)=>{const a=Object.values(w);if(!a.includes(t.position))throw new Error(`Encountered a panel with unsupported position "${t.position}". Supported positions are: ${a.toString()}`);if(1==e[t.position])throw new Error(`Found more than 1 panel at position: ${t.position}. Only 1 panel at a given position is currently supported.`);return{...e,[t.position]:e[t.position]+1}}),{[w.Left]:0,[w.Right]:0,[w.Top]:0,[w.Bottom]:0});const a="panels"in e?e.panels:i?.panels;let n=(l=e.layout,d=t?.defaultViewOptions,Fa({...l},(e=>Va(e,d))));var l,d;c&&!n?.settings?.newTabButton&&(n={...n,settings:{...n?.settings,newTabButton:{url:c}}});return{...i,...e,panels:a&&await cn(a),layoutContainerKey:Bt(),layout:n,isLayoutCreated:!1}})))},Wi=async(e,t)=>{try{await fin.Platform.getCurrentSync().createView({name:e,url:t,target:fin.me.identity,bounds:{top:0,left:0,width:0,height:0}},fin.me.identity)}catch(e){}};async function Di(e){return e?"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==":(await Q()).displayViewTabDefaultIcon?"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==":"data:image/svg+xml,%3Csvg%20style%3D%22background-color%3A%237D808A%22%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2010%2010%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.64648%200.874962C4.84174%200.6797%205.15833%200.6797%205.35359%200.874962L9.12482%204.6462C9.32009%204.84146%209.32009%205.15804%209.12482%205.3533L5.35359%209.12454C5.15833%209.3198%204.84174%209.3198%204.64648%209.12454L0.875245%205.3533C0.679982%205.15804%200.679982%204.84146%200.875245%204.6462L4.64648%200.874962ZM5.00003%201.93562L1.9359%204.99975L5.00003%208.06388L8.06416%204.99975L5.00003%201.93562Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"}const Ri={dimensions:{borderWidth:3,headerHeight:30}};async function Ti(e,t,a){let n=e;const o="enterprise"===n.workspacePlatform?.windowType||"enterprise"===t?.defaultWindowOptions?.workspacePlatform?.windowType;if(n.layout&&!n.workspacePlatform?.pages?.length){const e=await Rn(),a={...await Ut(e,n.layout),isActive:!0};n.workspacePlatform||={},n.workspacePlatform.pages=await Ai([a],t,n)}t?.browserIconSize&&(n.workspacePlatform||={},n.workspacePlatform.browserIconSize=t.browserIconSize);const r=a?.themes?.[0];if(n.workspacePlatform?.pages?.length){const e=await Ai(n.workspacePlatform.pages,t,n),i=e,s=(e=>{if(!e)return;let t=e.find((e=>e.isActive));return!t&&e.length>0&&(e[0].isActive=!0,t=e[0]),t})(i);if(i.forEach((e=>{e.pageId!==s?.pageId&&(e.isActive=!1)})),await ln(i),n.workspacePlatform.pages=e,n=Wt({},await(async e=>({contextMenuOptions:{enabled:!1},experimental:{showFavicons:!0,defaultFaviconUrl:await Di(e)},viewVisibility:{showViewsOnSplitterDrag:{enabled:!0},showViewsOnWindowResize:{enabled:!0}}}))(o),t?.defaultWindowOptions,n,await(async e=>({backgroundThrottling:!0,url:await oe(e,!0),contextMenu:!0,closeOnLastViewRemoved:!1,permissions:{System:{openUrlWithBrowser:{enabled:!0,protocols:["mailto"]}}}}))(o)),s.layout=Wt(s.layout,Ri),async function(e){if(e.icon||e.taskbarIcon){const t=fin.Application.getCurrentSync(),a=await(await t.getWindow()).getOptions();e.taskbarIconGroup||=a.taskbarIconGroup||fin.me.identity.uuid}if(e.workspacePlatform.icon)if("object"==typeof e.workspacePlatform.icon){const t=window.matchMedia("(prefers-color-scheme: dark)");e.icon=t.matches?e.workspacePlatform.icon.dark:e.workspacePlatform.icon.light}else e.icon=e.workspacePlatform.icon}(n),!n.backgroundColor&&r)if("palette"in r)n.backgroundColor=r?.palette?.background2||r?.palette?.backgroundPrimary;else{const e=a.selectedScheme===m.Dark||a.selectedScheme===m.System&&window.matchMedia("(prefers-color-scheme: dark)")?r?.palettes.dark:r?.palettes.light;n.backgroundColor=e?.background2||e?.backgroundPrimary}n=Me(n,!0);const c=await oe(o,!0);c&&(n.url=c),n.layout=s.layout,n.layoutSnapshot=((e,t)=>({layouts:e.reduce(((e,a)=>{if(!a.isActive){if(!t)return e;if(!Ii(a).singleViewName)return e}return e[a.layoutContainerKey]=a.layout,e}),{}),pages:e}))(n.workspacePlatform.pages,o),n.workspacePlatform.windowType=n.workspacePlatform.windowType??P.Browser}if(n.cornerRounding&&delete n.cornerRounding,n.name||n.layoutSnapshot?n.contextMenuOptions?.template?.length>0?n.contextMenuOptions.template=n.contextMenuOptions.template.filter((e=>"print"!==e)):n.contextMenuOptions={template:[],enabled:!1}:n.name=`${de.ClassicWindow}-${Bt()}`,n.workspacePlatform&&a&&(n.workspacePlatform._themeData=a),o){const e=await ne();n.workspacePlatform.newPageUrl=e,n.workspacePlatform.newTabUrl=e,n.layout&&(n.layout.dimensions.borderWidth=4,n.layout.dimensions.headerHeight=28),n.name=n.name||`${de.BrowserWindow}-${Bt()}`;if(n.name.startsWith(de.BrowserWindow)){(async e=>{const t=await ae(),a=de.BrowserAddressSearchPrefix+e.name,n=t+K.BrowserPopupMenuAddressSearchResultsView,o=[],r=Wi(a,n);o.push(r);const i=de.AICompanionPrefix+e.name,{url:s,enabled:c}=sn();if(c){const e=Wi(i,s);o.push(e)}await Promise.all(o)})(n);const{enabled:e}=sn();n.workspacePlatform.isAiEnabled=e}}return n}const Bi=async(e,t)=>{const a={uuid:t.uuid,name:t.name};await So(a,e.title??await ai(),e.shouldCenterOnMonitor)&&fin.Platform.getCurrentSync().quit()},Ei=async(e,t)=>{const a=Ra(),n=await a.Browser.getLastFocusedWindow();if(!n)return;const o=a.Browser.wrapSync(n),{title:r,description:i}=e,s=await Co({title:r,description:i,identity:o.identity});s&&o._sendUpdateVersionModalResponse({identity:t,response:s})},Fi=e=>{const t=e.name===de.Home,a=e.name?.startsWith(de.HomeInternal),n=e.name?.startsWith(de.BrowserMenu)||e.name?.startsWith(de.BrowserSaveMenu);return!t&&!a&&!n};const Vi=e=>JSON.parse(JSON.stringify(e));async function Ni(e,t,a){const n=e.manifestUrl?await t({manifestUrl:e.manifestUrl},a):void 0;if(n?.interop&&e.interop){const t={...e,...n,interop:e.interop};return delete t.manifestUrl,t}return e}const Li=e=>{const t=Vi(e);return t._internalWorkspaceData?.browserNavigationButtons&&(t.workspacePlatform={...t.workspacePlatform,browserNavigationButtons:t._internalWorkspaceData.browserNavigationButtons},delete t._internalWorkspaceData.browserNavigationButtons),t},_i=e=>{const t=Vi(e);return t.workspacePlatform&&(t._internalWorkspaceData={...t._internalWorkspaceData,...t.workspacePlatform},delete t.workspacePlatform),t},Oi={reload:[{keys:"Ctrl+R",preventDefault:!0}],back:[{keys:"Alt+Left",preventDefault:!0}],forward:[{keys:"Alt+Right",preventDefault:!0}]},Ui={reload:[{keys:"Cmd+R",preventDefault:!0}],back:[{keys:"Cmd+[",preventDefault:!0},{keys:"Cmd+Left",preventDefault:!0}],forward:[{keys:"Cmd+]",preventDefault:!0},{keys:"Cmd+Right",preventDefault:!0}]},Gi=async()=>await xr()?Oi:Ui,Hi=(e,t)=>{const a=fin.View.wrapSync(e);if(!t)return;const n=e=>{(async(e,t,a)=>{if("keyDown"!==a.inputType)return;const n=await(async e=>{const t=await e.getCurrentWindow(),a=await t.getOptions(),n=a.workspacePlatform?.navigationButtons;return n.enabled&&!n.hotkeysDisabled})(e),o=await xr();if(n){if(t.reload){const n=a.ctrlKey&&!a.altKey&&!a.metaKey&&!a.shiftKey&&"r"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"r"===a.key;(o?n:r)&&t?.reload&&(e.reload(),ze({type:"View",action:"Reload",value:e.identity.name}))}if(t.back){const n=!a.ctrlKey&&a.altKey&&!a.metaKey&&!a.shiftKey&&"ArrowLeft"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"ArrowLeft"===a.key,i=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"["===a.key;(o?n:r||i)&&t?.back&&(e.navigateBack(),ze({type:"View",action:"Back",value:e.identity.name}))}if(t.forward){const n=!a.ctrlKey&&a.altKey&&!a.metaKey&&!a.shiftKey&&"ArrowRight"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"ArrowRight"===a.key,i=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"]"===a.key;(o?n:r||i)&&t?.forward&&(e.navigateForward(),ze({type:"View",action:"Forward",value:e.identity.name}))}}})(a,t,e)};a.addListener("hotkey",n),a.once("destroyed",(()=>{a.removeListener("hotkey",n)}))},$i=(e,t)=>Vi(e).map((e=>("componentState"in e?e.componentState=t(e.componentState):"content"in e&&(e.content=$i(e.content,t)),e))),Ki=e=>{if(e){const t=Vi(e);return t.content&&(t.content=$i(t.content,Li)),t}return e},zi=e=>{if(e){const t=Vi(e);return t.content&&(t.content=$i(t.content,_i)),t}return e};async function Ji({app:e,target:t}){const a=fin.Platform.getCurrentSync();switch(e.manifestType){case c.Snapshot:return a.applySnapshot(e.manifest);case c.View:return async function(e,t){const a=fin.Platform.getCurrentSync();if("view"===t.entityType){const a=fin.View.wrapSync(t),n=await a.getParentLayout();return await n.replaceView(t,{manifestUrl:e.manifest,url:void 0,target:void 0}),a.destroy()}return a.createView({name:void 0,url:void 0,manifestUrl:e.manifest,target:void 0})}(e,t);case c.External:return fin.System.launchExternalProcess({path:e.manifest,uuid:e.appId});default:return fin.Application.startFromManifest(e.manifest)}}let Zi;const qi=()=>{if(!Zi){const e=rt(`${"undefined"!=typeof fin&&fin.me.identity.uuid}-enterprise-app-directory`);Zi=e()}return Zi};async function ji(e){if(!await We(e.identity))return[];return(await qi()).dispatch(Yt.GetApps,e.req)}async function Qi(e){if(!await We(e.identity))return[];return(await qi()).dispatch(Yt.GetSearchProviders,e)}async function Yi(e){return(await qi()).dispatch(Yt.GetCuratedContent,e)}async function Xi(e){return(await qi()).dispatch(Yt.GetRecentlyVisited,e)}async function es(e){const t=(await be()).map((async e=>{const t=await e.getOptions();t.workspacePlatform?.pages&&t.layout&&await(async e=>(await qt(e)).dispatch(aa.UpdatePagesWindowOptions))(e.identity)}));return await Promise.all(t),e?e():_t()}let ts=[];const as=()=>ts;async function ns(e){const t=e=>{if(!e.includes("#")&&!e.includes("rgb")&&!e.includes("hsl"))throw new Error("Background primary color is not the right format.")};e.forEach((e=>{"palette"in e&&t(e.palette.backgroundPrimary),"palettes"in e&&(t(e.palettes.dark.backgroundPrimary),t(e.palettes.light.backgroundPrimary))})),((e,t)=>{const a=e[0];if("palette"in a){const{palette:e}=a;ma.setPalettes({dark:e,light:e},t)}if("palettes"in a){const{dark:e,light:n}=a.palettes;ma.setPalettes({dark:e,light:n},t)}})(e,await xr()),ts=e}const os=(e,t)=>a=>{const n=null!==e;return class extends a{constructor(){super(),this.isWorkspacePlatform=()=>({isWorkspacePlatform:!0,isBrowserInitialized:!!e,analytics:{isSupported:!0}}),this.detachPagesFromWindow=Mn,this.getAllAttachedPages=hn,this.getPagesForWindow=In,this.getPageForWindow=An,this.markUnsavedPagesAsSavedInternal=Ln,this.launchApp=Ji,this.savePage=vn,this.saveWorkspace=Do,this.createSavedPageInternal=yn,this.updateSavedPageInternal=Sn,this.deleteSavedPageInternal=fn,this.reorderPagesForWindow=Wn,this.getUniquePageTitle=Rn,this.updatePageForWindow=Cn,this.getLastFocusedBrowserWindow=Qo,this.getThemes=as,this.invokeCustomActionInternal=or,this.requestQuitPlatformDialogInternal=Bi,this.getCurrentWorkspace=Ao,this.setActiveWorkspace=xo,this.getLanguageResourcesInternal=Jo,this.getPageByViewIdentity=async e=>{const t=await fin.Platform.Layout.getLayoutByViewIdentity(e),a=t.identity;if(!("layoutName"in a))throw new Error("Failed to get layout's identity");const n=await Ra().Browser.wrapSync(t.identity).getPages(),o=n.findIndex((e=>e.layoutName===a.layoutName));if(-1===o)throw new Error("Failed to get page's index");return{windowIdentity:{name:t.identity.name,uuid:t.identity.uuid},page:n[o],pageIndex:o}},this.openGlobalContextMenuInternal=this.openGlobalContextMenuInternal.bind(this),this.openGlobalContextMenu=this.openGlobalContextMenu.bind(this),this.getSavedPages=this.getSavedPages.bind(this),this.getSavedPage=this.getSavedPage.bind(this),this.createSavedPage=this.createSavedPage.bind(this),this.updateSavedPage=this.updateSavedPage.bind(this),this.deleteSavedPage=this.deleteSavedPage.bind(this),this.handlePageChanges=this.handlePageChanges.bind(this),this.attachPagesToWindow=this.attachPagesToWindow.bind(this),this.openViewTabContextMenuInternal=this.openViewTabContextMenuInternal.bind(this),this.openViewTabContextMenu=this.openViewTabContextMenu.bind(this),this.openPageTabContextMenuInternal=this.openPageTabContextMenuInternal.bind(this),this.openPageTabContextMenu=this.openPageTabContextMenu.bind(this),this.getSavedWorkspaces=this.getSavedWorkspaces.bind(this),this.getSavedWorkspace=this.getSavedWorkspace.bind(this),this.createSavedWorkspace=this.createSavedWorkspace.bind(this),this.updateSavedWorkspace=this.updateSavedWorkspace.bind(this),this.deleteSavedWorkspace=this.deleteSavedWorkspace.bind(this),this.getCurrentWorkspace=this.getCurrentWorkspace.bind(this),this.getDockProviderConfig=this.getDockProviderConfig.bind(this),this.saveDockProviderConfig=this.saveDockProviderConfig.bind(this),this.applyWorkspace=this.applyWorkspace.bind(this),this.setActiveWorkspace=this.setActiveWorkspace.bind(this),this.openSaveButtonContextMenu=this.openSaveButtonContextMenu.bind(this),this.openSaveButtonContextMenuInternal=this.openSaveButtonContextMenuInternal.bind(this),this.getSelectedScheme=this.getSelectedScheme.bind(this),this.setSelectedScheme=this.setSelectedScheme.bind(this),this.analyticsInternal=this.analyticsInternal.bind(this),this.handleAnalytics=this.handleAnalytics.bind(this),this.getLanguage=this.getLanguage.bind(this),this.setLanguage=this.setLanguage.bind(this),this.handleSaveModalOnPageClose=this.handleSaveModalOnPageClose.bind(this),this.shouldPageClose=this.shouldPageClose.bind(this),this.shouldWindowClose=this.shouldWindowClose.bind(this),this.handlePagesAndWindowClose=this.handlePagesAndWindowClose.bind(this),this.setActivePage=this.setActivePage.bind(this),this.handlePageChanges=this.handlePageChanges.bind(this),this.copyPage=this.copyPage.bind(this),this.addPage=this.addPage.bind(this),this.addDefaultPage=this.addDefaultPage.bind(this),this.markUnsavedPagesAsSavedInternal=this.markUnsavedPagesAsSavedInternal.bind(this),this.trackRemovedTabInternal=this.trackRemovedTabInternal.bind(this),this.restoreRemovedTabInternal=this.restoreRemovedTabInternal.bind(this),this.trackVisitedSiteInternal=this.trackVisitedSiteInternal.bind(this),this.getRecentlyVisitedSitesInternal=this.getRecentlyVisitedSitesInternal.bind(this),this.getFrequentlyVisitedSitesInternal=this.getFrequentlyVisitedSitesInternal.bind(this),this.searchSitesInternal=this.searchSitesInternal.bind(this),this.getSearchProvidersInternal=this.getSearchProvidersInternal.bind(this),this.getCuratedContentInternal=this.getCuratedContentInternal.bind(this),this.handleRequestNavigationInternal=this.handleRequestNavigationInternal.bind(this),this.refreshBookmarksInternal=this.refreshBookmarksInternal.bind(this),this.launchBookmarkInternal=this.launchBookmarkInternal.bind(this),this.getNotificationsConfig=this.getNotificationsConfig.bind(this),this.updateDockFavoritesInternal=this.updateDockFavoritesInternal.bind(this),this.updateContentMenuInternal=this.updateContentMenuInternal.bind(this),this.launchDockEntryInternal=this.launchDockEntryInternal.bind(this),this.setDockFavoritesOrderInternal=this.setDockFavoritesOrderInternal.bind(this),this.navigateContentMenuInternal=this.navigateContentMenuInternal.bind(this),this.setDefaultDockButtonsOrderInternal=this.setDefaultDockButtonsOrderInternal.bind(this),this.getDockWorkspacesContextMenuInternal=this.getDockWorkspacesContextMenuInternal.bind(this),this.handleDockWorkspacesMenuResponseInternal=this.handleDockWorkspacesMenuResponseInternal.bind(this),this.removeDockFavoriteInternal=this.removeDockFavoriteInternal.bind(this),this.addDockFavoriteInternal=this.addDockFavoriteInternal.bind(this),this.focusAndExpandSearchInternal=this.focusAndExpandSearchInternal.bind(this),this.sendUpdateVersionModalResponseInternal=this.sendUpdateVersionModalResponseInternal.bind(this),this.requestQuitPlatformDialogInternal=Bi.bind(this),this.showUpdateVersionModalInternal=Ei.bind(this)}async applyWorkspace(...e){return Mo.apply(this,e)}async getSnapshot(){const e=n?await es((async()=>_t(await super.getSnapshot(void 0,fin.me.identity)))):await _t(await super.getSnapshot(void 0,fin.me.identity));let t={...e,windows:e.windows.filter(Fi).map(Lt)};return t=(e=>{const t=Vi(e);return t.windows.forEach((e=>{e.layout&&(e.layout=Ki(e.layout)),e.workspacePlatform?.pages?.forEach((e=>{e?.layout&&(e.layout=Ki(e.layout))}))})),t})(t),t}async getViewSnapshot(e){let t=await super.getViewSnapshot(e);return t=Li(t),t}async applySnapshot({snapshot:e,options:t}){let a=e;"string"==typeof a&&(a=await super.fetchManifest({manifestUrl:a},fin.me.identity));const o=function(e){for(const t of e.windows)if(t.workspacePlatform?.pages?.length)return!0;return!1}(a);if(!n&&o)throw new Error("This snapshot cannot be applied as the platform has been initialized without the browser.");return a=(e=>{const t=Vi(e);return t.windows.forEach((e=>{e.layout=zi(e.layout),e.workspacePlatform?.pages?.forEach((e=>{e.layout=zi(e.layout)}))})),t})(a),super.applySnapshot({snapshot:a,options:t})}async createWindow(t,a){if(n&&"tearout"===t.reason){const e=await fin.Window.wrapSync(a).getOptions(),n=e.workspacePlatform?.windowType;t.taskbarIconGroup=e.taskbarIconGroup,n&&(t.workspacePlatform||={},t.workspacePlatform.windowType=e.workspacePlatform.windowType,n===P.Platform&&(t.url=e.url))}if(!n||t.workspacePlatform?.windowType===P.Platform){const e=await super.createWindow(t,a);return ze({type:"Window",action:"Open Window",value:e.identity.name,data:{uuid:e.identity.uuid}}),e}var o;o={allowed:!0},Ge||(Ge=!0,Ue(Oe.Browser,o)),((e=[])=>{const t=e.filter((e=>e.type!==S.Custom)),a=new Set,n=[];for(const e of t)a.has(e.type)&&n.push(e.type),a.add(e.type);if(n.length>0){const e=n.join(", ");throw new Error(`Encountered a duplicate "${e}" toolbar button. No more than one instance of a button type may be provided.`)}})(t.workspacePlatform?.toolbarOptions?.buttons);let r=(e=>"workspacePlatform"in e?e:(({workstacks:e,pages:t,...a})=>({...a,workspacePlatform:{pages:t||e||null}}))(e))(t);r=await Ti(r,e,{themes:as(),selectedScheme:this.getSelectedScheme()}),r=await(async e=>{const t=await fin.System.getMonitorInfo();let a=t.primaryMonitor;const n=e.defaultLeft,o=e.defaultTop;t.nonPrimaryMonitors.forEach((e=>{const{top:t,bottom:r,left:i,right:s}=e.availableRect;n>=i&&n<=s&&o>=t&&o<=r&&(a=e)}));const r=a.availableRect.bottom-a.availableRect.top,i=a.availableRect.right-a.availableRect.left;return e.defaultHeight=Math.min(e.defaultHeight||800,r),e.defaultWidth=Math.min(e.defaultWidth||800,i),e})(r);const i=await(e=>async(t,a)=>{let n=!1;const o=await e(t,a);return t?.workspacePlatform?._internalDeferShowOptions?.deferShowEnabled?(await o.addListener("show-requested",(async()=>{if(n)return;const e=await o.getOptions();await o.updateOptions({workspacePlatform:{...e.workspacePlatform,_internalDeferShowOptions:{...e.workspacePlatform._internalDeferShowOptions,autoShow:!0}}}),n=!0})),o):o})(((e,t)=>super.createWindow(e,t)))(r,a);return ze({type:"Window",action:"Open Window",value:i.identity.name,data:{uuid:i.identity.uuid}}),i}async createView(t,a){t.opts=Ba(t.opts,e?.defaultViewOptions),t.opts=await Ni(t.opts,this.fetchManifest,a),t.opts=await(async e=>{const t=Vi(e),a=t.workspacePlatform?.browserNavigationButtons;if(a){const e=Object.keys(a);for(const n of e)if(a[n]){const e=(await Gi())[n];t.hotkeys?t.hotkeys.push(...e):t.hotkeys=[...e]}}return t})(t.opts),t.opts=_i(t.opts);const n=await super.createView(t,a);return Hi(n.identity,t.opts._internalWorkspaceData?.browserNavigationButtons),n}async replaceView(t,a){return t.opts.newView=await Ba(t.opts.newView,e?.defaultViewOptions),t.opts.newView=await Ni(t.opts.newView,this.fetchManifest,a),super.replaceView(t,a)}async replaceLayout(e,t){return await We(t)||delete e.opts.layout?.dimensions,super.replaceLayout(e,t)}async getSavedPage(...e){return mr.apply(this,e)}async getSavedPages(...e){return kr.apply(this,e)}async createSavedPage(...e){return br.apply(this,e)}async deleteSavedPage(...e){return yr.apply(this,e)}async updateSavedPage(...e){return fr.apply(this,e)}async getSavedWorkspace(...e){return vi.apply(this,e)}async getSavedWorkspaces(...e){return Pi.apply(this,e)}async createSavedWorkspace(...e){return Ci.apply(this,e)}async deleteSavedWorkspace(...e){return Mi.apply(this,e)}async updateSavedWorkspace(...e){return xi.apply(this,e)}async getDockProviderConfig(...e){return ki.apply(this,e)}async saveDockProviderConfig(...e){return bi.apply(this,e)}async attachPagesToWindow(t){const a=await Ai(t.pages,e);await ln(a),await Pn({...t,pages:a})}async addPage(e){const t=await We(e.identity),a=await gt(e.identity),{page:n,insertionIndex:o}=e;n?.title||t||(n.title=await a.dispatch(dt.GetUniquePageTitle,void 0));const r=(await this.getAllAttachedPages()).find((e=>e.pageId===n.pageId||e.title===n.title));if(r){if(r.pageId===n.pageId)throw new Error(`page with id ${n.pageId} is already attached to a browser window ${r.parentIdentity.name}`);if(!t)throw new Error(`addPage title collision, page with title ${n.title} already exists, conflicting page id: ${r.pageId} with title ${r.title}`)}const i={identity:e.identity,pages:[{...n,multiInstanceViewBehavior:e.multiInstanceViewBehavior||"duplicate"}],insertionIndex:o};await this.attachPagesToWindow(i)}async addDefaultPage(e){await this.addPage(e),await this.setActivePage({identity:e.identity,pageId:e.page.pageId})}async setActivePage(...e){return xn.apply(this,e)}async openGlobalContextMenuInternal(...e){return ci.apply(this,e)}async openGlobalContextMenu(...e){return si.apply(this,[...e,dr.GlobalMenu,ii.BottomRight])}async openViewTabContextMenuInternal(...e){return li.apply(this,e)}async openViewTabContextMenu(...e){return si.apply(this,[...e,dr.ContextMenu])}async openPageTabContextMenuInternal(...e){return di.apply(this,e)}async openPageTabContextMenu(...e){return si.apply(this,[...e,dr.ContextMenu])}async openSaveButtonContextMenu(...e){return si.apply(this,e)}async openSaveButtonContextMenuInternal(...e){return ui.apply(this,e)}getSelectedScheme(...e){return Wa.apply(this,e)}async setSelectedScheme(...e){return Aa.apply(this,e)}async handlePageChanges(...e){return Nn.apply(this,e)}async analyticsInternal(...e){return Zn.apply(this,e)}async handleAnalytics(...e){}async handleSaveModalOnPageClose(...e){return Tn.apply(this,e)}async shouldPageClose(...e){return Bn.apply(this,e)}async shouldWindowClose(...e){return En.apply(this,e)}handlePagesAndWindowClose(...e){return Fn.apply(this,e)}async copyPage(...e){return Vn.apply(this,e)}async getNotificationsConfig(){return t}async setLanguage(...e){return zo.apply(this,e)}async getLanguage(){return Ko.apply(this)}async trackRemovedTabInternal(...e){return vr.apply(this,e)}async restoreRemovedTabInternal(){const e=await(async()=>{const e=await(0,ur.keys)(Sr);if(e.length>0){const t=Math.max(...e),a=await(0,ur.get)(t,Sr);return await(0,ur.del)(t,Sr),a}})();if(e?.page)if(await fe(e.identity)){const t=Ra().Browser.wrapSync(e.identity);await t.addPage(e.page),await t.setActivePage(e.page.pageId)}else Ra().createWindow({name:e.identity.name,workspacePlatform:{pages:[e.page],windowType:P.Browser}});else e?.window&&Ra().createWindow({workspacePlatform:{pages:e.window.pages,windowType:P.Browser}})}async trackVisitedSiteInternal(...e){return Cr.apply(this,e)}async getRecentlyVisitedSitesInternal(...e){return await Xi.apply(this,e)}async getFrequentlyVisitedSitesInternal(...e){return Mr.apply(this,e)}async searchSitesInternal(...e){return await ji.apply(this,e)}async getSearchProvidersInternal(...e){return await Qi.apply(this,e)}async getCuratedContentInternal(...e){return await Yi.apply(this,e)}async handleRequestNavigationInternal(...e){}async refreshBookmarksInternal(){(await Ra().Browser.getAllWindows()).forEach((async({identity:e})=>{(await qt(e)).dispatch(aa.RefreshBookmarksInternal)}));(await Zt(sr())).dispatch(aa.RefreshBookmarksInternal),await(async()=>{const e=await wi();if(e){const t=await qt(e.identity,pi);await t.dispatch(aa.RefreshBookmarksInternal)}})()}async launchBookmarkInternal(e){return Ar(e)}async updateDockFavoritesInternal(e){return(async e=>{const t=await wi();if(!t)throw new Error("Companion Dock window not found");{const a=await qt(t.identity,pi);await a.dispatch(ea.UpdateFavoriteEntries,e)}})(e)}async updateContentMenuInternal(e){return(async e=>{const t=await wi();if(!t)throw new Error("Companion Dock window not found");{const a=await qt(t.identity,pi);await a.dispatch(ea.UpdateContentMenu,e)}})(e)}async launchDockEntryInternal(e){return(async e=>(await gi()).dispatch("launch-entry",e))(e)}async setDefaultDockButtonsOrderInternal(e){return(async e=>(await gi()).dispatch("set-default-dock-buttons-order",e))(e)}async setDockFavoritesOrderInternal(e){return(async e=>(await gi()).dispatch("set-dock-favorites-order",e))(e)}async addDockFavoriteInternal(e){return(async e=>(await gi()).dispatch("add-favorite-entry",e))(e)}async removeDockFavoriteInternal(e){return(async e=>(await gi()).dispatch("remove-favorite-entry",e))(e)}async navigateContentMenuInternal(e){return(async e=>{const t=await wi();if(!t)throw new Error("Companion Dock window not found");{const a=await qt(t.identity,pi);await a.dispatch(ea.NavigateContentMenu,e)}})(e)}async getDockWorkspacesContextMenuInternal(){return(async()=>(await gi()).dispatch("get-dock-workspaces-context-menu",void 0))()}async handleDockWorkspacesMenuResponseInternal(e){return(async e=>(await gi()).dispatch("handle-dock-workspaces-menu-response",e))(e)}async focusAndExpandSearchInternal(){return hi()}async sendUpdateVersionModalResponseInternal(e){return fi(e)}async showUpdateVersionModalInternal(e,t){return Ei(e,t)}}};function rs(e,t,a){const n=os(e,a);try{return"function"==typeof t?e=>t(n(e)):Array.isArray(t)?[...t,n]:e=>new(n(e))}catch(e){throw new Error("WorkspacePlatform.init Error:",e)}}const is=["green","purple","orange","red","pink","yellow"],ss="CONTEXT_GROUP_PAGE",cs=()=>e=>class extends e{getContextGroups(){return super.getContextGroups().map((e=>is.includes(e.displayMetadata?.name)?{...e,displayMetadata:{...e.displayMetadata,name:en(e.displayMetadata?.name)}}:e))}},ls=()=>{const e=new Set(Xr.keys());return t=>class extends t{constructor(){super(),this.onClientConnected=async e=>{if(e.name.startsWith("internal-generated-view")){const{page:t}=await Ra().Browser.getPageByViewIdentity(e),a=t.contextGroup;this.joinContextGroup({contextGroupId:a??ss,target:e},{uuid:this.fin.me.uuid,name:this.fin.me.name})}};const e=this.interopClients.set;this.interopClients.set=(t,a)=>{e.call(this.interopClients,t,a),this.onClientConnected(a.clientIdentity)}}async joinContextGroup({contextGroupId:t,target:a},n){if(t!==ss)return super.joinContextGroup({contextGroupId:t,target:a},n);try{const t=(await Ra().Browser.getPageByViewIdentity(a)).page.layoutName;if(!t)throw new Error("View does not belong to a page");if(!e.has(t)&&(e.add(t),!this.contextGroupsById.has(t))){const e=new Map;this.contextGroupsById.set(t,e)}await super.joinContextGroup({contextGroupId:t,target:a},n),a.name}catch(e){JSON.stringify(a),e.stack}}getContextGroups(){return Array.from(e).map((e=>({id:e,displayMetadata:Xr.get(e)??{}})))}setContextForGroup(e,t){if(!this.contextGroupsById.has(t)){const e=new Map;this.contextGroupsById.set(t,e)}return super.setContextForGroup(e,t)}}},ds=(e,t)=>{const a=(e=>De(e)?ls():cs())(t);try{return"function"==typeof e?t=>e(a(t)):Array.isArray(e)?[...e,a]:e=>new(a(e))}catch(e){throw new Error("WorkspacePlatform.init Error:",e)}};async function us(){ar(),async function(){const e=fin.Application.getCurrentSync();await e.addListener("window-focused",Xo),await e.addListener("window-closed",er)}();xo(await Io())}let ps;async function ws(e,t){if(!await fe({uuid:we.uuid,name:de.DockCompanion})){const a=await Ne(we);await t.createWindow(Me({name:de.DockCompanion,url:await ae()+K.EnterpriseDock,autoShow:!0,frame:!1,smallWindow:!0,saveWindowState:!1,defaultHeight:xe,defaultWidth:Ie,includeInSnapshots:!1,defaultTop:e.dockPosition?.top??Ae,defaultLeft:e.dockPosition?.left??a.left-Ie/2,workspacePlatform:{windowType:"enterprise",...e},throttling:"disabled",resizable:!1,maximizable:!1,backgroundColor:await Mt("background1")}))}}function gs({overrideCallback:e,interopOverride:t,browser:a,notifications:n,analytics:o,integrations:r=[],workspaceAsar:i}){if(!A)throw new Error("Cannot be used outside an OpenFin env.");return ps||(ps=(async()=>{const s=fin.Platform.getCurrentSync();var c,l,d;if(s.once("platform-api-ready",(()=>us())),s.on("window-show-all-downloads",(({name:e,uuid:t})=>{Oo({name:e,uuid:t})})),a?.title&&(c=a.title,ti=c),qn(o),i){const e=`workspace-${encodeURIComponent(fin.me.uuid)}`,{baseUrl:t}=await fin.System.serveAsset({...i,hostName:e});Y(t)}if(a?.browserBaseUrl&&Y(a.browserBaseUrl),De(a)){on=!0,l=a,nn=l?.aiPanelOptions,sn();const e=ka();e.setWorkspaceStorageProxy(await(async e=>{const t=`storage-proxy-window-${crypto.randomUUID()}`,[a,n]=await Promise.all([fin.InterApplicationBus.Channel.connect(`channel-${t}`,{wait:!0}),fin.Window.create({autoShow:!1,includeInSnapshots:!1,name:t,url:e})]);return{setItem:(e,t)=>a.dispatch("setItem",{key:e,value:t}),destroy:()=>n.close()}})(`${await ee()}${K.EnterpriseStorageProxy}`)),await e.trySynchronizeWorkspaceStorage()}return await fin.Platform.init({overrideCallback:rs(a,e||a?.overrideCallback,n),interopOverride:ds(t||a?.interopOverride,a)}),d={allowed:!0},Ue(Oe.Platform,d),await Promise.all(r.map((async e=>{((e,t)=>{Ue(`${Oe.Microflow}:${e}`,t,"integration-feature")})(e.workflowIntegrationName,{allowed:!0,apiVersion:_}),await e._initializeWorkflows()}))),s})()),ps}const hs=async({theme:e,customActions:t,language:a,...n})=>{const o=_.split(".").map((e=>parseInt(e))),r=await(async e=>{if((await Q()).disableRuntimeValidation)return!0;if(await We())return!0;const t=(await fin.System.getVersion()).split(".").map((e=>parseInt(e)));return e.every(((a,n)=>!(n<3)||t[n]===e[n]))})(o);if(!r)throw new Error(`Runtime version is not supported. ${o[0]}.${o[1]}.${o[2]}.* is required`);var i;return e&&(ns(e),i={allowed:!0},Ue(Oe.Theming,i)),t&&(nr=t),await Zo(a?.initialLanguage),gs(n)}})(),module.exports=n})();
1
+ (()=>{var e={847:(e,t)=>{var a={2346:function(e,t,a){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getMostReadable=t.darkenColor=t.lightenColor=void 0;const o=n(a(6535));t.lightenColor=(e,t)=>r(e,"lighten",t),t.darkenColor=(e,t)=>r(e,"darken",t);const r=(e,t,a)=>{if(a&&(a<0||a>100))throw new Error(`${a} must be a number between 0 and 100`);return(0,o.default)(e)[t](a).toString()};t.getMostReadable=(e,t)=>o.default.mostReadable(e,t).toHexString()},2317:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IconSize=t.Transition=t.LineHeight=t.FontWeight=t.FontSize=t.FontFamily=t.Shadow=t.Radius=t.UnitPx=t.Unit=t.SizeName=t.Size=t.Color=void 0,t.Color={white:"#FFFFFF",lightGray1:"#FAFBFE",lightGray2:"#F3F5F8",lightGray3:"#ECEEF1",lightGray4:"#DDDFE4",lightGray5:"#C9CBD2",neutralGray:"#7D808A",neutralGray80:"rgba(125,128,138,0.8)",silverGray:"#C0C1C2",darkGray1:"#53565F",darkGray2:"#383A40",darkGray3:"#2F3136",darkGray4:"#24262B",darkGray5:"#1E1F23",darkGray6:"#111214",openFinDarkest:"#3D39CD",openFinDarker:"#4642E0",openFin:"#504CFF",openFinLight:"#5254FB",openFinLighter:"#5C5EFE",openFinLightest:"#6864FF",functional1:"#207735",functional2:"#46C8F1",functional3:"#0A76D3",functional4:"#6CADE5",functional5:"#0A76D3",functional6:"#882BFE",functional7:"#F31818",functional8:"#C93400",functional9:"#FF5E60",functional10:"#F48F00",purple:"#8C61FF",lightblue:"#36C3FE",aqua:"#00CC88",yellow:"#FFEB00",salmon:"#FF8C4C",pink:"#FF5E60",lightpink:"#FF8FB8",white00:"rgba(255,255,255,0.0)",white10:"rgba(255,255,255,0.1)",white20:"rgba(255,255,255,0.2)",white30:"rgba(255,255,255,0.3)",white40:"rgba(255,255,255,0.4)",white50:"rgba(255,255,255,0.5)",white60:"rgba(255,255,255,0.6)",white70:"rgba(255,255,255,0.7)",white80:"rgba(255,255,255,0.8)",white90:"rgba(255,255,255,0.9)",black00:"rgba(0,0,0,0.0)",black10:"rgba(0,0,0,0.1)",black20:"rgba(0,0,0,0.2)",black30:"rgba(0,0,0,0.3)",black40:"rgba(0,0,0,0.4)",black50:"rgba(0,0,0,0.5)",black60:"rgba(0,0,0,0.6)",black70:"rgba(0,0,0,0.7)",black80:"rgba(0,0,0,0.8)",black90:"rgba(0,0,0,0.9)",transparent:"transparent"},t.Size={xsmall:"xsmall",small:"small",base:"base",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge",xxxxlarge:"xxxxlarge"},t.SizeName={[t.Size.xsmall]:"Extra Small",[t.Size.small]:"Small",[t.Size.base]:"Base",[t.Size.large]:"Large",[t.Size.xlarge]:"Extra Large",[t.Size.xxlarge]:"2X Large",[t.Size.xxxlarge]:"3X Large",[t.Size.xxxxlarge]:"4X Large"},t.Unit={[t.Size.xsmall]:4,[t.Size.small]:8,[t.Size.base]:12,[t.Size.large]:16,[t.Size.xlarge]:20,[t.Size.xxlarge]:24,[t.Size.xxxlarge]:32,[t.Size.xxxxlarge]:48},t.UnitPx={[t.Size.xsmall]:"4px",[t.Size.small]:"8px",[t.Size.base]:"12px",[t.Size.large]:"16px",[t.Size.xlarge]:"20px",[t.Size.xxlarge]:"24px",[t.Size.xxxlarge]:"32px",[t.Size.xxxxlarge]:"48px"},t.Radius={[t.Size.xsmall]:"2px",[t.Size.small]:"4px",[t.Size.base]:"8px",[t.Size.large]:"24px",pill:"100vh",round:"50%",none:"0"},t.Shadow={[t.Size.base]:"0 4px 4px rgba(0, 0, 0, 0.25)"},t.FontFamily=["Inter","system-ui","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"].join(","),t.FontSize={[t.Size.xsmall]:"8px",[t.Size.small]:"10px",[t.Size.base]:"12px",[t.Size.large]:"14px",[t.Size.xlarge]:"16px",[t.Size.xxlarge]:"18px",[t.Size.xxxlarge]:"20px",[t.Size.xxxxlarge]:"40px"},t.FontWeight={normal:400,bold:600},t.LineHeight={ui:1,heading:1.2,text:1.5},t.Transition={base:"200ms cubic-bezier(0.16, 1, 0.3, 1)",none:"0ms"},t.IconSize={[t.Size.xsmall]:t.UnitPx.small,[t.Size.small]:t.UnitPx.base,[t.Size.base]:"15px",[t.Size.large]:t.UnitPx.xlarge,[t.Size.xlarge]:t.UnitPx.xxlarge,[t.Size.xxlarge]:t.UnitPx.xxxlarge,[t.Size.xxxlarge]:t.UnitPx.xxxxlarge}},6893:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTheme=void 0;const n=a(2317),o=a(2346),r=a(5939),i={fontFamily:n.FontFamily,fontSize:n.FontSize,fontWeight:n.FontWeight,lineHeight:n.LineHeight,iconSize:n.IconSize,radius:n.Radius,shadow:n.Shadow,transition:n.Transition,unit:n.Unit,px:n.UnitPx},s=(e,t)=>({[`${e}Active`]:(0,o.darkenColor)(t,2),[`${e}Hover`]:(0,o.lightenColor)(t,5),[`${e}Focused`]:(0,o.getMostReadable)(t,[n.Color.white,n.Color.darkGray5]),[`${e}Text`]:(0,o.getMostReadable)(t,[n.Color.white,n.Color.darkGray5])});t.createTheme=e=>Object.assign(Object.assign({},i),{palette:Object.assign(Object.assign(Object.assign({},e),s(r.Palette.brandPrimary,e.brandPrimary)),s(r.Palette.brandSecondary,e.brandSecondary))})},5939:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Palette=void 0,t.Palette={background1:"background1",background2:"background2",background3:"background3",background4:"background4",background5:"background5",background6:"background6",brandPrimary:"brandPrimary",brandSecondary:"brandSecondary",brandPrimaryActive:"brandPrimaryActive",brandPrimaryHover:"brandPrimaryHover",brandPrimaryFocused:"brandPrimaryFocused",brandPrimaryText:"brandPrimaryText",brandSecondaryActive:"brandSecondaryActive",brandSecondaryHover:"brandSecondaryHover",brandSecondaryFocused:"brandSecondaryFocused",brandSecondaryText:"brandSecondaryText",inputBackground:"inputBackground",inputColor:"inputColor",inputPlaceholder:"inputPlaceholder",inputDisabled:"inputDisabled",inputFocused:"inputFocused",inputBorder:"inputBorder",statusSuccess:"statusSuccess",statusWarning:"statusWarning",statusCritical:"statusCritical",statusActive:"statusActive",textDefault:"textDefault",textHelp:"textHelp",textInactive:"textInactive",borderNeutral:"borderNeutral",contentBackground1:"contentBackground1",contentBackground2:"contentBackground2",contentBackground3:"contentBackground3",contentBackground4:"contentBackground4",contentBackground5:"contentBackground5",linkDefault:"linkDefault",linkHover:"linkHover"}},6535:function(e){e.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var t=/^\s+/,a=/\s+$/;function n(o,r){if(r=r||{},(o=o||"")instanceof n)return o;if(!(this instanceof n))return new n(o,r);var i=function(n){var o,r,i,s={r:0,g:0,b:0},c=1,l=null,d=null,u=null,p=!1,w=!1;return"string"==typeof n&&(n=function(e){e=e.replace(t,"").replace(a,"").toLowerCase();var n,o=!1;if(f[e])e=f[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(n=B.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=B.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=B.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=B.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=B.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=B.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=B.hex8.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),a:W(n[4]),format:o?"name":"hex8"}:(n=B.hex6.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),format:o?"name":"hex"}:(n=B.hex4.exec(e))?{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),a:W(n[4]+""+n[4]),format:o?"name":"hex8"}:!!(n=B.hex3.exec(e))&&{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),format:o?"name":"hex"}}(n)),"object"==e(n)&&(E(n.r)&&E(n.g)&&E(n.b)?(o=n.r,r=n.g,i=n.b,s={r:255*P(o,255),g:255*P(r,255),b:255*P(i,255)},p=!0,w="%"===String(n.r).substr(-1)?"prgb":"rgb"):E(n.h)&&E(n.s)&&E(n.v)?(l=I(n.s),d=I(n.v),s=function(e,t,a){e=6*P(e,360),t=P(t,100),a=P(a,100);var n=Math.floor(e),o=e-n,r=a*(1-t),i=a*(1-o*t),s=a*(1-(1-o)*t),c=n%6;return{r:255*[a,i,r,r,s,a][c],g:255*[s,a,a,i,r,r][c],b:255*[r,r,s,a,a,i][c]}}(n.h,l,d),p=!0,w="hsv"):E(n.h)&&E(n.s)&&E(n.l)&&(l=I(n.s),u=I(n.l),s=function(e,t,a){var n,o,r;function i(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+6*(t-e)*a:a<.5?t:a<2/3?e+(t-e)*(2/3-a)*6:e}if(e=P(e,360),t=P(t,100),a=P(a,100),0===t)n=o=r=a;else{var s=a<.5?a*(1+t):a+t-a*t,c=2*a-s;n=i(c,s,e+1/3),o=i(c,s,e),r=i(c,s,e-1/3)}return{r:255*n,g:255*o,b:255*r}}(n.h,l,u),p=!0,w="hsl"),n.hasOwnProperty("a")&&(c=n.a)),c=v(c),{ok:p,format:n.format||w,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:c}}(o);this._originalInput=o,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||i.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=i.ok}function o(e,t,a){e=P(e,255),t=P(t,255),a=P(a,255);var n,o,r=Math.max(e,t,a),i=Math.min(e,t,a),s=(r+i)/2;if(r==i)n=o=0;else{var c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:n=(t-a)/c+(t<a?6:0);break;case t:n=(a-e)/c+2;break;case a:n=(e-t)/c+4}n/=6}return{h:n,s:o,l:s}}function r(e,t,a){e=P(e,255),t=P(t,255),a=P(a,255);var n,o,r=Math.max(e,t,a),i=Math.min(e,t,a),s=r,c=r-i;if(o=0===r?0:c/r,r==i)n=0;else{switch(r){case e:n=(t-a)/c+(t<a?6:0);break;case t:n=(a-e)/c+2;break;case a:n=(e-t)/c+4}n/=6}return{h:n,s:o,v:s}}function i(e,t,a,n){var o=[x(Math.round(e).toString(16)),x(Math.round(t).toString(16)),x(Math.round(a).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function s(e,t,a,n){return[x(A(n)),x(Math.round(e).toString(16)),x(Math.round(t).toString(16)),x(Math.round(a).toString(16))].join("")}function c(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.s-=t/100,a.s=C(a.s),n(a)}function l(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.s+=t/100,a.s=C(a.s),n(a)}function d(e){return n(e).desaturate(100)}function u(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.l+=t/100,a.l=C(a.l),n(a)}function p(e,t){t=0===t?0:t||10;var a=n(e).toRgb();return a.r=Math.max(0,Math.min(255,a.r-Math.round(-t/100*255))),a.g=Math.max(0,Math.min(255,a.g-Math.round(-t/100*255))),a.b=Math.max(0,Math.min(255,a.b-Math.round(-t/100*255))),n(a)}function w(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.l-=t/100,a.l=C(a.l),n(a)}function g(e,t){var a=n(e).toHsl(),o=(a.h+t)%360;return a.h=o<0?360+o:o,n(a)}function h(e){var t=n(e).toHsl();return t.h=(t.h+180)%360,n(t)}function m(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var a=n(e).toHsl(),o=[n(e)],r=360/t,i=1;i<t;i++)o.push(n({h:(a.h+i*r)%360,s:a.s,l:a.l}));return o}function k(e){var t=n(e).toHsl(),a=t.h;return[n(e),n({h:(a+72)%360,s:t.s,l:t.l}),n({h:(a+216)%360,s:t.s,l:t.l})]}function b(e,t,a){t=t||6,a=a||30;var o=n(e).toHsl(),r=360/a,i=[n(e)];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(n(o));return i}function y(e,t){t=t||6;for(var a=n(e).toHsv(),o=a.h,r=a.s,i=a.v,s=[],c=1/t;t--;)s.push(n({h:o,s:r,v:i})),i=(i+c)%1;return s}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,a,n=this.toRgb();return e=n.r/255,t=n.g/255,a=n.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))},setAlpha:function(e){return this._a=v(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=r(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=r(this._r,this._g,this._b),t=Math.round(360*e.h),a=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+a+"%, "+n+"%)":"hsva("+t+", "+a+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),a=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+a+"%, "+n+"%)":"hsla("+t+", "+a+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return i(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,a,n,o){var r=[x(Math.round(e).toString(16)),x(Math.round(t).toString(16)),x(Math.round(a).toString(16)),x(A(n))];return o&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*P(this._r,255))+"%",g:Math.round(100*P(this._g,255))+"%",b:Math.round(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*P(this._r,255))+"%, "+Math.round(100*P(this._g,255))+"%, "+Math.round(100*P(this._b,255))+"%)":"rgba("+Math.round(100*P(this._r,255))+"%, "+Math.round(100*P(this._g,255))+"%, "+Math.round(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[i(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+s(this._r,this._g,this._b,this._a),a=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var r=n(e);a="#"+s(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+a+")"},toString:function(e){var t=!!e;e=e||this._format;var a=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(a=this.toRgbString()),"prgb"===e&&(a=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(a=this.toHexString()),"hex3"===e&&(a=this.toHexString(!0)),"hex4"===e&&(a=this.toHex8String(!0)),"hex8"===e&&(a=this.toHex8String()),"name"===e&&(a=this.toName()),"hsl"===e&&(a=this.toHslString()),"hsv"===e&&(a=this.toHsvString()),a||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(e,t){var a=e.apply(null,[this].concat([].slice.call(t)));return this._r=a._r,this._g=a._g,this._b=a._b,this.setAlpha(a._a),this},lighten:function(){return this._applyModification(u,arguments)},brighten:function(){return this._applyModification(p,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(l,arguments)},greyscale:function(){return this._applyModification(d,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(b,arguments)},complement:function(){return this._applyCombination(h,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(m,[3])},tetrad:function(){return this._applyCombination(m,[4])}},n.fromRatio=function(t,a){if("object"==e(t)){var o={};for(var r in t)t.hasOwnProperty(r)&&(o[r]="a"===r?t[r]:I(t[r]));t=o}return n(t,a)},n.equals=function(e,t){return!(!e||!t)&&n(e).toRgbString()==n(t).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(e,t,a){a=0===a?0:a||50;var o=n(e).toRgb(),r=n(t).toRgb(),i=a/100;return n({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},n.readability=function(e,t){var a=n(e),o=n(t);return(Math.max(a.getLuminance(),o.getLuminance())+.05)/(Math.min(a.getLuminance(),o.getLuminance())+.05)},n.isReadable=function(e,t,a){var o,r,i,s,c,l=n.readability(e,t);switch(r=!1,(i=a,"AA"!==(s=((i=i||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==s&&(s="AA"),"small"!==(c=(i.size||"small").toLowerCase())&&"large"!==c&&(c="small"),o={level:s,size:c}).level+o.size){case"AAsmall":case"AAAlarge":r=l>=4.5;break;case"AAlarge":r=l>=3;break;case"AAAsmall":r=l>=7}return r},n.mostReadable=function(e,t,a){var o,r,i,s,c=null,l=0;r=(a=a||{}).includeFallbackColors,i=a.level,s=a.size;for(var d=0;d<t.length;d++)(o=n.readability(e,t[d]))>l&&(l=o,c=n(t[d]));return n.isReadable(e,c,{level:i,size:s})||!r?c:(a.includeFallbackColors=!1,n.mostReadable(e,["#fff","#000"],a))};var f=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S=n.hexNames=function(e){var t={};for(var a in e)e.hasOwnProperty(a)&&(t[e[a]]=a);return t}(f);function v(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function P(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var a=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),a&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function C(e){return Math.min(1,Math.max(0,e))}function M(e){return parseInt(e,16)}function x(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function A(e){return Math.round(255*parseFloat(e)).toString(16)}function W(e){return M(e)/255}var D,R,T,B=(R="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",T="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+T),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function E(e){return!!B.CSS_UNIT.exec(e)}return n}()}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return a[e].call(r.exports,r,r.exports,o),r.exports}var r={};(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=e.Palette=e.Color=void 0;var t=o(2317);Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return t.Color}});var a=o(5939);Object.defineProperty(e,"Palette",{enumerable:!0,get:function(){return a.Palette}});var n=o(6893);Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return n.createTheme}})})();var i=t;for(var s in r)i[s]=r[s];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})},877:()=>{},67:()=>{}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";a.r(n),a.d(n,{AppManifestType:()=>c,BookmarkItemContextMenuOptionType:()=>y,BrowserButtonType:()=>S,ColorSchemeOptionType:()=>m,CustomActionCallerType:()=>C,EnterpriseMainContextMenuOptionType:()=>b,GlobalContextMenuOptionType:()=>h,PageChangeEventType:()=>g,PageTabContextMenuOptionType:()=>k,PanelPosition:()=>w,SUPPORTED_LANGUAGES:()=>M,SaveButtonContextMenuOptionType:()=>v,SaveModalType:()=>x,ViewTabMenuOptionType:()=>f,WindowType:()=>P,getCurrentSync:()=>Ra,init:()=>ks,initDockCompanion:()=>hs,wrapSync:()=>Da});var e,t,o,r,i,s,c,l,d={};a.r(d),a.d(d,{getItem:()=>da,removeItem:()=>ua,setItem:()=>la}),function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(e||(e={})),function(e){e.UserAction="user-action",e.FocusChange="focus-change",e.Reload="reload"}(t||(t={})),function(e){e.Active="active",e.Default="default"}(o||(o={})),function(e){e.Suggestion="suggestion"}(r||(r={})),function(e){e.Contact="Contact",e.Custom="Custom",e.List="List",e.Plain="Plain",e.SimpleText="SimpleText",e.Loading="Loading",e.Error="Error"}(i||(i={})),function(e){e.MultiSelect="MultiSelect"}(s||(s={})),function(e){e.Snapshot="snapshot",e.Manifest="manifest",e.View="view",e.External="external"}(c||(c={})),function(e){e.LandingPage="landingPage",e.AppGrid="appGrid"}(l||(l={}));var u,p,w,g,h,m,k,b,y,f,S,v,P,C;!function(e){e.Primary="primary",e.Secondary="secondary",e.TextOnly="textOnly"}(u||(u={})),function(e){e.ActionButton="ActionButton",e.DropdownButton="DropdownButton"}(p||(p={})),function(e){e.Left="Left",e.Right="Right",e.Top="Top",e.Bottom="Bottom"}(w||(w={})),function(e){e.UrlChange="URL_CHANGE",e.ViewAdded="VIEW_ADDED",e.ViewRemoved="VIEW_REMOVED",e.PageContextAdded="PAGE_CONTEXT_ADDED",e.PageContextRemoved="PAGE_CONTEXT_REMOVED"}(g||(g={})),function(e){e.NewWindow="NewWindow",e.NewPage="NewPage",e.SavePage="SavePage",e.SavePageAs="SavePageAs",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.CloseWindow="CloseWindow",e.RestoreChanges="RestoreChanges",e.SaveWorkspace="SaveWorkspace",e.SaveWorkspaceAs="SaveWorkspaceAs",e.RenameWorkspace="RenameWorkspace",e.SwitchWorkspace="SwitchWorkspace",e.DeleteWorkspace="DeleteWorkspace",e.Downloads="Downloads",e.OpenStorefront="OpenStorefront",e.Appearance="Appearance",e.Quit="Quit",e.Custom="Custom"}(h||(h={})),function(e){e.Light="light",e.Dark="dark",e.System="system"}(m||(m={})),function(e){e.Close="Close",e.Duplicate="Duplicate",e.Rename="Rename",e.Save="Save",e.SaveAs="Save As",e.NewPage="New Page",e.DeletePage="Delete Page",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Refresh="Refresh",e.CloseOthers="Close others",e.Delete="Delete",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.AddToChannel="AddToChannel",e.Custom="Custom"}(k||(k={})),function(e){e.Lock="Lock",e.ShowHideTabs="ShowHideTabs",e.AddToChanel="AddToChannel",e.Print="Print",e.Pin="Pin"}(b||(b={})),function(e){e.EditName="Edit Name",e.Move="Move",e.Delete="Delete"}(y||(y={})),function(e){e.NewView="NewView",e.DuplicateViews="DuplicateView",e.OpenWithDefaultBrowser="OpenWithDefaultBrowser",e.ReloadViews="ReloadTab",e.CloseViews="CloseTab",e.AddToChannel="AddToChannel",e.RemoveFromChannel="RemoveFromChannel",e.Back="Back",e.Forward="Forward",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.Custom="Custom"}(f||(f={})),function(e){e.ShowHideTabs="ShowHideTabs",e.ColorLinking="ColorLinking",e.PresetLayouts="PresetLayouts",e.LockUnlockPage="LockUnlockPage",e.SaveMenu="SaveMenu",e.SavePage="SavePage",e.Minimise="Minimise",e.Maximise="Maximise",e.Close="Close",e.Custom="Custom"}(S||(S={})),function(e){e.SavePage="SavePage",e.SaveWorkspace="SaveWorkspace",e.SavePageAs="SavePageAs",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Custom="Custom"}(v||(v={})),function(e){e.Browser="browser",e.Platform="platform"}(P||(P={})),function(e){e.CustomButton="CustomButton",e.StoreCustomButton="StoreCustomButton",e.CustomDropdownItem="CustomDropdownItem",e.GlobalContextMenu="GlobalContextMenu",e.ViewTabContextMenu="ViewTabContextMenu",e.PageTabContextMenu="PageTabContextMenu",e.SaveButtonContextMenu="SaveButtonContextMenu",e.API="API"}(C||(C={}));const M=["en-US","ja-JP","zh-CN","ko-KR","ru-RU","de-DE","zh-Hant"];var x,I;!function(e){e.SAVE_PAGE="SAVE_PAGE",e.SAVE_WORKSPACE="SAVE_WORKSPACE",e.SAVE_PAGE_AS="SAVE_PAGE_AS",e.SAVE_WORKSPACE_AS="SAVE_WORKSPACE_AS",e.RENAME_PAGE="RENAME_PAGE",e.RENAME_WORKSPACE="RENAME_WORKSPACE"}(x||(x={})),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(I||(I={}));const A="undefined"!=typeof window&&"undefined"!=typeof fin,W=("undefined"==typeof process||process.env,"undefined"!=typeof window),D=W&&"undefined"!=typeof indexedDB,R=W?window.origin:I.Local,T=A&&fin.me.uuid,B=A&&fin.me.name,E=A&&fin.me.entityType,F=(I.Local,I.Dev,I.Staging,"prod"===I.Prod),V=e=>e.startsWith("http://")||e.startsWith("https://")?e:R+e,N=V("https://workspace.openfin.co/workspace/22.1.1"),L=V("https://workspace.openfin.co/workspace/22.1.1"),_=("undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&V(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&V(WORKSPACE_DOCS_CLIENT_URL),"41.134.100.117"),O="22.1.1";"undefined"!=typeof WORKSPACE_BUILD_SHA&&WORKSPACE_BUILD_SHA;var U,G;!function(e){e.Home="/home/",e.HomeSearch="/home/?deeplink=search",e.HomePagesRename="/home/pages/rename/",e.Dock="/dock/",e.Docs="/provider/docs/",e.Storefront="/storefront/",e.DeprecatedAlert="/provider/deprecated-alert/",e.Analytics="/provider/analytics/",e.Provider="/provider/"}(U||(U={})),function(e){e.Browser="/browser/",e.BrowserPopupMenu="/popup-menu/",e.BrowserPopupMenuSaveModal="/popup-menu/save-modal/",e.BrowserPopupMenuLayouts="/popup-menu/layouts/layouts/",e.BrowserPopupMenuColorLinking="/popup-menu/color-linking/color-linking/",e.BrowserIndicator="/indicator/",e.BrowserPopupMenuAddressSearchResultsView="/popup-menu/address-search-results-view/",e.ResponseModal="/popup-menu/response-modal/",e.CloseConfirmationModal="/popup-menu/close-confirmation-modal/",e.EnterpriseBrowser="/enterprise/",e.EnterpriseLandingPage="/enterprise/landing/",e.EnterpriseContextMenu="/context-menu/",e.EnterpriseBookmarkDialog="/bookmark-dialog/",e.EnterpriseStorageProxy="/enterprise/storage-proxy",e.DropdownMenu="/dropdown-menu/",e.EnterpriseDock="/dock/"}(G||(G={}));const H={...U,...G};var $;!function(e){e.Search="search"}($||($={}));const K=H;async function z(){const e="getManifestOverrides",{manifest:t,initialOptions:a}=await fin.Application.getCurrentSync().getInfo();return t?.platform.workspace||t?.platform.home||a?.workspace||a?.home||console.warn(`${e}: Missing Home development manifest overrides, using Desktop Owner Settings.`),t?.platform.workspace?(JSON.stringify(t?.platform.workspace),t?.platform.workspace):t?.platform.home?(JSON.stringify(t?.platform.home),t?.platform.home):a?.workspace?(JSON.stringify(a?.workspace),a?.workspace):a?.home?(JSON.stringify(a?.home),a?.home):{}}const J=e=>fin.System.getSystemAppConfig(e);async function Z(){const e="getDOSOverrides";if(!A)return console.warn(`${e}: the fin API was not available, returning no result`),{};try{let t=await J("workspace").catch((t=>{console.warn(`${e}: customConfig entry for SystemApp workspace not available in Desktop Owner Settings. ${t?.message}`)}));return t||(t=await J("home")),JSON.stringify(t),t}catch(t){if(!F)return{};if(!(t instanceof Error))throw t;console.warn(`${e}: Missing Workspace Desktop Owner Settings configuration, using defaults. ${t?.message}`)}return{}}let q,j;async function Q(){if(q)return q;const e="getOverrides";if(!A)return W&&console.warn(`${e}: The Fin API was not available. Returning an empty result.`),{};const[t,a]=await Promise.all([Z(),z()]);return q={...a,...t,disableRuntimeValidation:a.disableRuntimeValidation||t.disableRuntimeValidation},q}function Y(e){j=e}const X=e=>e.replace(/\/$/,"");async function ee(){const e=(await Q()).browserBaseUrl;if(e)try{const t=new URL(e);if(t.pathname.endsWith("/"))t.pathname=X(t.pathname);else{if("/workspace"===t.pathname)return t.pathname+=`/${O}`,t.toString();console.warn(`@openfin/workspace-platform: browserOverrideBaseUrl must be a valid url, with path: /workspace. Expected <protocol>://<optional subdomain>.<domain>/workspace but got ${e}`)}}catch(t){console.warn(`@openfin/workspace-platform: browserOverrideBaseUrl must be a valid url. Expected <protocol>://<optional subdomain>.<domain>/workspace but got ${e}`)}return j??L}async function te(e=!1){const t=await ee()+K.Browser;return e?t:X(t)}async function ae(e=!1){const t=await ee()+K.EnterpriseBrowser;return e?t:X(t)}async function ne(){return await ae()+"/landing/"}const oe=async(e,t=!1)=>e?ae(t):te(t);var re,ie;!function(e){e.Workspace="openfin-workspace",e.OldWorkspace="openfin-browser"}(re||(re={})),function(e){e.FinProtocol="fin-protocol"}(ie||(ie={}));const se={uuid:T},ce=(re.Workspace,e=>{if(!A)throw new Error("getApplication cannot be used in a non OpenFin env. Avoid using this during pre-rendering.");return fin.Application.wrapSync(e)}),le=()=>ce(se);var de;!function(e){e.Home="openfin-home",e.Dock="openfin-dock",e.Storefront="openfin-storefront",e.HomeInternal="openfin-home-internal",e.BrowserMenu="openfin-browser-menu",e.BrowserSaveMenu="openfin-browser-save-menu",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window",e.ClassicWindow="internal-generated-classic-window",e.EnterpriseContextMenu="openfin-enterprise-context-menu",e.BrowserAddressSearchPrefix="openfin-browser-menu-address-search-",e.EnterpriseBookmarkDialogWindow="openfin-enterprise-bookmark-dialog",e.DropdownMenu="openfin-enterprise-dropdown-menu",e.DockCompanion="openfin-dock-companion",e.AICompanionPrefix="openfin-ai-companion-",e.UpdateVersionModal="here-update-version-modal"}(de||(de={}));const ue=e=>({left:(e.left+(e.right??e.left+e.width))/2,top:(e.top+(e.bottom??e.top+e.height))/2});function pe(e){if(!A)throw new Error("getOFWindow can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");return fin.Window.wrapSync(e)}const we={name:B,uuid:T};function ge(){return pe(we)}de.Home,re.Workspace,de.Dock,re.Workspace;const he={name:de.Storefront,uuid:re.Workspace};re.Workspace,re.Workspace;async function me(e){const t=pe(e);"minimized"===await t.getState()&&await t.restore(),await t.show(),await t.setAsForeground()}const ke=async e=>{try{const t=await fin.Window.wrapSync({name:e.name,uuid:e.uuid??fin.me.uuid}).getOptions();return("browser"===t.workspacePlatform?.windowType||"enterprise"===t.workspacePlatform?.windowType)&&t.workspacePlatform?.pages}catch(e){return console.warn("isBrowserWindow error: ",e),!1}};async function be(){const e=await fin.Application.getCurrentSync().getChildWindows(),t=await Promise.all(e.map((async e=>ke(e.identity))));return e.filter(((e,a)=>t[a]))}async function ye(){return(await fin.Application.getCurrentSync().getChildWindows()).filter((e=>e.identity.name.startsWith(de.BrowserMenu)))}const fe=e=>pe(e).getOptions().then((()=>!0)).catch((()=>!1)),Se=()=>fe(he),ve=e=>`${e.top},${e.left},${e.height},${e.width},${e.bottom},${e.right}`;function Pe(e,t){const a=e.top,n=e.left,o=e.top+e.height,r=e.left+e.width,i=t.monitorRect.top,s=t.monitorRect.left,c=t.monitorRect.bottom,l=t.monitorRect.right;if(a>c||o<i||n>l||r<s)return 0;const d=Math.max(a,i),u=Math.max(n,s);return(Math.min(o,c)-d)*(Math.min(r,l)-u)/(e.height*e.width)}async function Ce(e){const t=await fin.System.getMonitorInfo();return[t.primaryMonitor,...t.nonPrimaryMonitors].reduce(((t,a)=>{const n=Pe(e,a);return n>t.percentage?{percentage:n,monitor:a}:t}),{percentage:0,monitor:t.primaryMonitor}).monitor}const Me=(e,t)=>{const a=e;return a.workspacePlatform||(a.workspacePlatform={}),a.workspacePlatform._internalDeferShowOptions={setAsForeground:!!t,deferShowEnabled:!0,autoShow:a.workspacePlatform?._internalAutoShow||a.workspacePlatform?._internalDeferShowOptions?.autoShow||void 0===a.autoShow||a.autoShow},a.autoShow=!1,a};const xe=56,Ie=728,Ae=150,We=async e=>{const t=e?fin.Window.wrapSync(e):fin.Window.getCurrentSync(),a=await t.getOptions();return a.workspacePlatform?.windowType&&"enterprise"===a.workspacePlatform.windowType},De=e=>{const t=e?.defaultWindowOptions?.workspacePlatform?.windowType;return"enterprise"===t};let Re;const Te=e=>{if(e)try{return new URL(e).pathname.includes(K.EnterpriseLandingPage.replace(/\/$/,""))}catch(t){console.error("error parsing url: %O",e)}return!1},Be=(e,t=0)=>{let a,n,o=!1;const r=async n=>{const i=await e(...n);if(o){await new Promise((e=>setTimeout(e,t)));const e=a;return a=void 0,o=!1,r(e)}return i};return(...e)=>(n?(o=!0,a=e):n=r(e).catch((e=>{throw console.error("makeDebouncedFunc",e),e})).finally((()=>{n=void 0})),n)};var Ee;!function(e){e.Top="top",e.Below="below"}(Ee||(Ee={}));const Fe=async(e,t)=>{try{return e?await e.getBounds():t}catch(e){return console.warn("getParentWindowBounds - Failed to get parent window bounds",e),t}},Ve=async e=>{try{return!!e&&"maximized"===await e.getState()}catch(e){return console.warn("parentWindowMaximized - Failed to get parent window state",e),!1}};Be((async function(e,t,a,n,o){const r=t.getBoundingClientRect(),i=await async function(e,t,a,n,o,r){const i=!!e&&pe(e),s=await Fe(i,r);if(n===Ee.Below){if(!i||await Ve(i)){const e=i?(await Ce(s)).availableRect:(await fin.System.getMonitorInfo()).primaryMonitor.availableRect;return{left:ue(e).left-t/2,top:o?e.bottom-128:e.bottom+12,width:t,height:a}}return{left:ue(s).left-t/2,top:o?s.bottom-128:s.bottom+12,width:t,height:a}}if(!i||await Ve(i)){const e=i?(await Ce(s)).availableRect:(await fin.System.getMonitorInfo()).primaryMonitor.availableRect;return{left:ue(e).left-t/2,top:e.top+20,width:t,height:a}}return{left:ue(s).left-t/2,top:s.top+20,width:t,height:a}}(e,r.width,r.height,a,n,o);if(0===i.width||0===i.height)return;const s=ge();await s.setBounds(i),await s.show();const c=setTimeout((()=>s.close()),n?5e3:3e3),l=()=>{clearTimeout(c),s.close()};if(e){const t=pe(e);t.on("bounds-changing",(()=>l())),t.on("blurred",(()=>l())),t.on("maximized",(()=>l())),t.on("minimized",(()=>l())),t.on("restored",(()=>l()))}}),10);const Ne=async e=>{const t=e&&await pe(e).getBounds(),a=e?await Ce(t):(await fin.System.getMonitorInfo()).primaryMonitor;return{left:((n=a.availableRect).left+n.right)/2,top:(n.top+n.bottom)/2};var n},Le=async(e,t,a=!1)=>{let n;if(a)n=await Ne(t);else{const e=pe(t),a=await e.getBounds();n=n??ue(a)}const{defaultHeight:o,defaultWidth:r}=e;return((e,t)=>{const a=t.width/2,n=t.height/2;return{left:Math.round(e.left-a),top:Math.round(e.top-n),width:t.width,height:t.height}})(n,{height:o,width:r})};async function _e(e,t,a=!1){const n=t&&"maximized"===await pe(t).getState(),o=a||n||!t,r=await Le(e,t,o);return await(async e=>{const t=await fin.System.getMonitorInfo(),a=[t.primaryMonitor,...t.nonPrimaryMonitors];for(const t of a)if(1===Pe(e,t))return!1;return!0})(r)?(await pe(t).center(),Le(e,t,o)):(console.warn("Response modal isn't off screen, not centering parent window"),r)}var Oe;!function(e){e.Browser="Browser",e.Dock="Dock",e.EnterpriseDock="EnterpriseDock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming",e.Microflow="Microflow"}(Oe||(Oe={}));const Ue=async(e,t,a="workspace-licensing")=>{const n={apiVersion:t.apiVersion||O,componentName:e,componentVersion:t.componentVersion||O,allowed:t.allowed,rejectionCode:t.rejectionCode};fin.System.registerUsage({type:a,data:n})};let Ge=!1;const He=new Map,$e=e=>{let t=He.get(e.uuid);return t||(t=Da(e),t.once("closed",(()=>{He.delete(e.uuid)})),He.set(e.uuid,t)),t},Ke=async(e,t)=>{try{await e._raiseAnalytics([t])}catch(e){console.error("failed to raise analytics event",e)}},ze=async e=>{await Ke($e(fin.me.identity),{source:"Browser",...e})};var Je=a(847);const Ze=e=>e.replace(/[^\d,]/g,"").split(","),qe=e=>{if(e.length<2)throw new Error("Invalid color object, cannot convert to HSL.");const t=e[0]/255,a=e[1]/255,n=e[2]/255,o=Math.min(t,a,n),r=Math.max(t,a,n),i=r-o;let s=0,c=0,l=0;return s=0===i?0:r===t?(a-n)/i%6:r===a?(n-t)/i+2:(t-a)/i+4,s=Math.round(60*s),s<0&&(s+=360),l=(r+o)/2,c=0==i?0:i/(1-Math.abs(2*l-1)),c=+(100*c).toFixed(1),l=+(100*l).toFixed(1),{hsl:`hsl(${s}, ${c}%, ${l}%)`,hsla:`hsl(${s}, ${c}%, ${l}%, 1)`,hue:s,lightness:l,saturation:c}},je=e=>{if(!e)throw new Error("Color is not defined");const t=e.toLowerCase();let a;if(t.includes("rgb")){const e=Ze(t);e.length>3&&e.pop(),a=qe(e).hue}if(t.includes("#")){const e=(e=>{if(!e.includes("#"))throw new Error("Invalid hex value, cannot convert to RGB. Hex value begins with a hashtag.");let t=0,a=0,n=0;if(4===e.length)t=`0x${e[1]}${e[1]}`,a=`0x${e[2]}${e[2]}`,n=`0x${e[3]}${e[3]}`;else{if(7!==e.length)throw new Error("Invalid hex string length, cannot convert to RGB.");t=`0x${e[1]}${e[2]}`,a=`0x${e[3]}${e[4]}`,n=`0x${e[5]}${e[6]}`}return[+t,+a,+n]})(t);a=qe(e).hue}if(t.includes("hsl")){a=Ze(t)[0]}const n=a?.toString();if(!n)throw new Error(`Hue was unable to be extracted from "${t}", check color format. Accepted formats are: rgb(), rgba(), hex, hsl(), and hsla()`);return n},Qe=(e,t=!1)=>{const a=je(e);return t?{background1:`hsla(${a}, 0%, 100%, 1)`,background2:`hsla(${a}, 67%, 99%, 1)`,background3:`hsla(${a}, 26%, 96%, 1)`,background4:`hsla(${a}, 15%, 94%, 1)`,background5:`hsla(${a}, 10%, 88%, 1)`,background6:`hsla(${a}, 80%, 80%, 1)`}:{background1:`hsla(${a}, 8%, 7%, 1)`,background2:`hsla(${a}, 8%, 13%, 1)`,background3:`hsla(${a}, 9%, 15%, 1)`,background4:`hsla(${a}, 6%, 23%, 1)`,background5:`hsla(${a}, 21%, 28%, 1)`,background6:`hsla(${a}, 5%, 51%, 1)`}},Ye=(e,t)=>{const a={};return Object.keys(e).forEach((n=>{a[n]=t[n]?t[n]:e[n]})),a};var Xe=a(877),et=a.n(Xe),tt=a(67),at=a.n(tt);const nt={light:{symbol:at()?.src||""},dark:{symbol:et()?.src||""}},ot=W&&"complete"!==document.readyState&&new Promise((e=>document.addEventListener("readystatechange",(()=>{"complete"===document.readyState&&e()}))));function rt(e){let t;const a=new Set;return()=>{if(!A)throw new Error("getChannelClient cannot be used outside an OpenFin env. Avoid using this method during pre-rendering.");return t||(t=(async()=>{await ot;const n={clientAPIVersion:O},o=await fin.InterApplicationBus.Channel.connect(e,{payload:n});return o.onDisconnection((async()=>{a.forEach((e=>e())),a.clear(),console.warn(`disconnected from channel provider ${e}`),t=void 0})),o})().then((e=>(e.addDisconnectionListener=e=>{a.add(e)},e))).catch((a=>{throw t=void 0,new Error(`failed to connect to channel provider ${e}: ${a}`)}))),t}}var it,st;!function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(it||(it={})),function(e){e[e.Initial=0]="Initial",e[e.Open=1]="Open",e[e.Close=2]="Close"}(st||(st={}));const ct=rt("__of_workspace_protocol__"),lt=ct;rt("__search-openfin-browser-home-topic__");var dt;!function(e){e.LaunchApp="launchApp",e.SavePage="savePage",e.GetSavedPage="getSavedPage",e.CreateSavedPage="createSavedPage",e.UpdateSavedPage="updateSavedPage",e.DeleteSavedPage="deleteSavedPage",e.GetSavedPages="getSavedPages",e.CreateSavedPageInternal="createSavedPageInternal",e.UpdateSavedPageInternal="updateSavedPageInternal",e.DeleteSavedPageInternal="deleteSavedPageInternal",e.UpdatePageForWindow="updatePageForWindow",e.AttachPagesToWindow="attachPagesToWindow",e.DetachPagesFromWindow="detachPagesFromWindow",e.ReorderPagesForWindow="reorderPagesForWindow",e.SetActivePage="setActivePage",e.AddPage="addPage",e.AddDefaultPage="addDefaultPage",e.GetAllAttachedPages="getAllAttachedPages",e.GetActivePageIdForWindow="getActivePageIdForWindow",e.GetPagesForWindow="getPagesForWindow",e.GetPageForWindow="getPageForWindow",e.GetSavedPageMetadata="getSavedPageMetadata",e.GetUniquePageTitle="getUniquePageTitle",e.GetLastFocusedBrowserWindow="getLastFocusedBrowserWindow",e.GetPageByViewIdentity="getPageByViewIdentity",e.GetThemes="getThemes",e.GetSelectedScheme="getSelectedScheme",e.SetSelectedScheme="setSelectedScheme",e.OpenGlobalContextMenuInternal="openGlobalContextMenuInternal",e.OpenViewTabContextMenuInternal="openViewTabContextMenuInternal",e.OpenPageTabContextMenuInternal="openPageTabContextMenuInternal",e.OpenSaveButtonContextMenuInternal="openSaveButtonContextMenuInternal",e.InvokeCustomActionInternal="invokeCustomActionInternal",e.RequestQuitPlatformDialogInternal="requestQuitPlatformDialogInternal",e.GetSavedWorkspace="getSavedWorkspace",e.CreateSavedWorkspace="createSavedWorkspace",e.UpdateSavedWorkspace="updateSavedWorkspace",e.DeleteSavedWorkspace="deleteSavedWorkspace",e.GetSavedWorkspaces="getSavedWorkspaces",e.SaveWorkspace="saveWorkspace",e.GetCurrentWorkspace="getCurrentWorkspace",e.ApplyWorkspace="applyWorkspace",e.RestoreLastSavedWorkspaceInternal="restoreLastSavedWorkspaceInternal",e.SetActiveWorkspace="setActiveWorkspace",e.IsBrowserInitialized="isBrowserInitialized",e.Analytics="analyticsInternal",e.GetLanguage="getLanguage",e.GetLanguageResourcesInternal="getLanguageResourcesInternal",e.SetLanguage="setLanguage",e.GetDockProviderConfig="getDockProviderConfig",e.SaveDockProviderConfig="saveDockProviderConfig",e.HandleSaveModalOnPageClose="handleSaveModalOnPageClose",e.ShouldPageClose="shouldPageClose",e.ShouldWindowClose="shouldWindowClose",e.CopyPage="copyPage",e.HandlePageChanges="handlePageChanges",e.MarkUnsavedPagesAsSavedInternal="markUnsavedPagesAsSavedInternal",e.TrackRemovedTabInternal="trackRemovedTabInternal",e.RestoreRemovedTabInternal="restoreRemovedTabInternal",e.TrackVisitedSiteInternal="trackVisitedSiteInternal",e.GetRecentlyVisitedSitesInternal="getRecentlyVisitedSitesInternal",e.GetFrequentlyVisitedSitesInternal="getFrequentlyVisitedSitesInternal",e.SearchSitesInternal="searchSitesInternal",e.GetSearchProvidersInternal="getSearchProvidersInternal",e.GetCuratedContentInternal="getCuratedContentInternal",e.HandleRequestNavigationInternal="handleRequestNavigationInternal",e.RefreshBookmarksInternal="refreshBookmarksInternal",e.LaunchBookmarkInternal="launchBookmarkInternal",e.GetNotificationsConfig="getNotificationsConfig",e.UpdateDockFavoritesInternal="updateDockFavoritesInternal",e.UpdateContentMenuInternal="updateContentMenuInternal",e.LaunchDockEntryInternal="launchDockEntryInternal",e.SetDockFavoritesOrderInternal="setDockFavoritesOrderInternal",e.NavigateContentMenuInternal="navigateContentMenuInternal",e.SetDefaultDockButtonsOrderInternal="setDefaultDockButtonsOrderInternal",e.GetDockWorkspacesContextMenuInternal="getDockWorkspacesContextMenuInternal",e.HandleDockWorkspacesMenuResponseInternal="handleDockWorkspacesMenuResponseInternal",e.RemoveDockFavoriteInternal="removeDockFavoriteInternal",e.AddDockFavoriteInternal="addDockFavoriteInternal",e.FocusAndExpandSearchInternal="focusAndExpandSearchInternal",e.SendUpdateVersionModalResponseInternal="sendUpdateVersionModalResponseInternal",e.ShowUpdateVersionModalInternal="showUpdateVersionModalInternal"}(dt||(dt={}));const ut=async e=>fin.Platform.wrapSync(e).getClient(),pt=async e=>{const t=await ut(e),a="Target is not a Workspace Platform. Target must call WorkspacePlatform.init";let n;try{n=await t.dispatch("isWorkspacePlatform")}catch(e){throw new Error(a)}if("boolean"==typeof n&&n)return console.warn("You are using an older version of the workspace platform. Please update your workspace platform."),n;if("object"==typeof n&&n.isWorkspacePlatform)return n;throw new Error(a)},wt=async e=>(await pt(e),ut(e)),gt=async e=>{const t=await pt(e);if("object"==typeof t&&!0!==t?.isBrowserInitialized)throw new Error("Target is not a Browser-enabled Workspace Platform.");return ut(e)},ht="dark",mt={[Je.Palette.brandPrimary]:"#0A76D3",[Je.Palette.statusSuccess]:Je.Color.functional1,[Je.Palette.statusWarning]:Je.Color.functional10,[Je.Palette.statusCritical]:Je.Color.functional7,[Je.Palette.statusActive]:Je.Color.functional3,[Je.Palette.contentBackground1]:"#0A76D3",[Je.Palette.contentBackground2]:"#000000",[Je.Palette.contentBackground3]:"#000000",[Je.Palette.contentBackground4]:"#000000",[Je.Palette.contentBackground5]:"#000000"},kt={...mt,[Je.Palette.background1]:Je.Color.white,[Je.Palette.background2]:Je.Color.lightGray1,[Je.Palette.background3]:Je.Color.lightGray2,[Je.Palette.background4]:Je.Color.lightGray3,[Je.Palette.background5]:Je.Color.lightGray4,[Je.Palette.background6]:Je.Color.lightGray5,[Je.Palette.brandSecondary]:Je.Color.lightGray4,[Je.Palette.inputBackground]:Je.Color.lightGray3,[Je.Palette.inputColor]:Je.Color.darkGray5,[Je.Palette.inputPlaceholder]:Je.Color.darkGray2,[Je.Palette.inputDisabled]:Je.Color.neutralGray,[Je.Palette.inputFocused]:Je.Color.lightGray5,[Je.Palette.inputBorder]:Je.Color.neutralGray,[Je.Palette.textDefault]:Je.Color.darkGray5,[Je.Palette.textHelp]:Je.Color.darkGray3,[Je.Palette.textInactive]:Je.Color.neutralGray},bt={...mt,[Je.Palette.background1]:Je.Color.darkGray6,[Je.Palette.background2]:Je.Color.darkGray5,[Je.Palette.background3]:Je.Color.darkGray4,[Je.Palette.background4]:Je.Color.darkGray3,[Je.Palette.background5]:Je.Color.darkGray2,[Je.Palette.background6]:Je.Color.darkGray1,[Je.Palette.brandSecondary]:Je.Color.darkGray2,[Je.Palette.inputBackground]:Je.Color.darkGray1,[Je.Palette.inputColor]:Je.Color.white,[Je.Palette.inputPlaceholder]:Je.Color.lightGray5,[Je.Palette.inputDisabled]:Je.Color.neutralGray,[Je.Palette.inputFocused]:Je.Color.lightGray5,[Je.Palette.inputBorder]:Je.Color.neutralGray,[Je.Palette.textDefault]:Je.Color.white,[Je.Palette.textHelp]:Je.Color.lightGray5,[Je.Palette.textInactive]:Je.Color.neutralGray},yt=[{label:"OpenFin Default Light and Dark Theme",palettes:{light:{...kt,brandPrimary:"#0A76D3",brandSecondary:Je.Color.lightGray4,backgroundPrimary:Je.Color.darkGray5},dark:{...bt,brandPrimary:"#0A76D3",brandSecondary:Je.Color.darkGray2,backgroundPrimary:Je.Color.darkGray5}}}],ft=e=>{const{background:t,foreground:a}=e;return{background:t,foreground:a??"#FFFFFF"}},St=(e,t)=>({icons:{symbol:e.brand?.icons?.[t]?.symbol||nt[t].symbol}}),vt=e=>{const{light:t,dark:a}="palettes"in e?e.palettes:{light:e.palette,dark:e.palette},n=Ye(bt,a),o=Ye(kt,t),r=((e,t)=>{const a={...e},n={...t};let o=t.backgroundPrimary?Qe(t.backgroundPrimary,!0):{},r=e.backgroundPrimary?Qe(e.backgroundPrimary):{};return o={...o,...n},r={...r,...a},{light:{...t,...o},dark:{...e,...r}}})(a,t),i={...(0,Je.createTheme)({...n,...r?.dark}),brand:St(e,"dark")},s={...(0,Je.createTheme)({...o,...r?.light}),brand:St(e,"light")},{light:c,dark:l}=(e=>{const t=Object.keys(e.notificationIndicatorColors??{});if(t?.length){const a={},n={};return t.forEach((t=>{const o=e.notificationIndicatorColors[t];"background"in o?(a[t]=ft(o),n[t]=ft(o)):(a[t]=ft(o.dark??o.light),n[t]=ft(o.light??o.dark))})),{light:n,dark:a}}return{light:null,dark:null}})(e);return i.notificationIndicatorColors=l,s.notificationIndicatorColors=c,{dark:i,light:s}},Pt=async e=>{const{themes:t,selectedScheme:a}=await(async e=>{const t=fin?.__internal_?.initialOptions?.workspacePlatform?._themeData;if(!t||e.uuid!==we.uuid)return{themes:await Da(e).Theme.getThemes(),selectedScheme:await Da(e).Theme.getSelectedScheme()};return t})(e);var n,o;return(n=t?.length?t:yt,o=a,n.map((e=>{const t="palettes"in e?e.default:ht,{light:a,dark:n}=vt(e);return{label:e.label,logoUrl:e.logoUrl,theme:{dark:n,light:a},defaultScheme:o??t}})))[0]},Ct=async e=>{const t=await wt(e||fin.me.identity),a=await t.dispatch(dt.GetSelectedScheme,void 0);return a===m.System?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a},Mt=async(e,t)=>{const a=await Pt(fin.me.identity),n=await Ct(fin.me.identity)===m.Dark,o=a?.theme;return o?.[n?m.Dark:m.Light]?.palette?.[e]||t};let xt;const It=async e=>{xt||(xt=new TextEncoder);const t=xt.encode(e),a=await window.crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(a)).map((e=>e.toString(16).padStart(2,"0"))).join("")};function At(e){return e&&"object"==typeof e&&!Array.isArray(e)}function Wt(e,...t){if(!t.length)return e;const a=t.shift();return At(e)&&At(a)&&Object.entries(a).forEach((([t,a])=>{if(At(a))return e[t]||(e[t]={}),Wt(e[t],a);e[t]=a})),Wt(e,...t)}const Dt=require("lodash.debounce");var Rt,Tt=a.n(Dt);function Bt(){return void 0!==typeof crypto&&"randomUUID"in crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}!function(e){e.CurrentWorkspaceId="currentWorkspaceId",e.LastFocusedBrowserWindow="lastFocusedBrowserWindow",e.MachineName="machineName",e.NewTabPageLayout="NewTabPageLayout",e.NewTabPageSort="NewTabPageSort",e.DockPosition="DockPosition",e.SelectedColorScheme="SelectedColorScheme",e.ThemePaletteSheet="ThemePaletteSheet",e.HasMovedStore="HasMovedStore",e.PageDragState="BrowserPageDragState"}(Rt||(Rt={}));const Et=Rt;function Ft(){return localStorage.getItem(Et.MachineName)??"unknown"}let Vt;async function Nt(){return Vt||(Vt=await fin.System.getMachineId()),Vt}const Lt=e=>{if(Array.isArray(e.workspacePlatform?.pages)&&(e.layoutSnapshot||e.layout)){const t=e.workspacePlatform.pages.find((e=>e.isActive));if(t){const a=e.layoutSnapshot?e.layoutSnapshot.layouts[t.layoutContainerKey]:e.layout;if(a)if(t.isLocked){const n=Ga(a,t.layout);t.layout=n,e.layout=n}else t.layout=a,e.layout=a}}return e};async function _t(e){const t=e||await fin.Platform.getCurrentSync().getSnapshot();if(t.snapshotDetails?.machineId)return t;const a=Ft();return{...t,snapshotDetails:{...t.snapshotDetails,machineId:await Nt(),machineName:a}}}const Ot=async e=>({...e,layoutDetails:{machineId:await Nt(),machineName:Ft()}}),Ut=async(e,t)=>({pageId:Bt(),title:e,layout:await Ot(t),isReadOnly:!1}),Gt=async e=>{const t=await Ut(e.title,La(e.layout));return e.panels&&(t.panels=e.panels.map((e=>({...e,viewOptions:Na(e.viewOptions)})))),{...e,...t}},Ht=e=>{const t=fin.Platform.Layout.wrapSync(e);return{show:async()=>{const a=await t.getConfig(),{settings:n,dimensions:o}=a,r=await We(e);await t.replace({...a,settings:{...n,hasHeaders:!0,reorderEnabled:!0},dimensions:{...o,headerHeight:r?28:30}})},hide:async e=>{const a=await t.getConfig(),{settings:n,dimensions:o}=await a;await t.replace({...a,settings:{...n,hasHeaders:!1,reorderEnabled:e?.settings?.reorderEnabled??!1},dimensions:{...o,headerHeight:0}})},isShowingTabs:async()=>{try{const e=await t.getConfig(),{settings:a}=await e;return a.hasHeaders}catch(e){return console.error("failed to get layout config: ",e),!0}}}},$t="of-workspace-";const Kt=new class{mark(e){performance.mark(`${$t}${e}`)}markStart(e){performance.mark(`${$t}${e}-start`)}markEnd(e){performance.mark(`${$t}${e}-end`)}markEndAndMeasure(e){performance.mark(`${$t}${e}-end`);try{return performance.measure(`${$t}${e}`,`${$t}${e}-start`,`${$t}${e}-end`)}catch(e){0}}markAndMeasure(e,t){performance.mark(`${$t}${e}`);try{return performance.measure(`${$t}${e}-measure`,`${$t}${t}-start`,`${$t}${e}`)}catch(e){0}}reportWorkspacePerformanceEntries(){return performance.getEntriesByType("measure").filter((e=>e.name.startsWith($t)))}reportWorkspacePerformance(){return this.reportWorkspacePerformanceEntries().map((e=>({name:e.name.replace(`${$t}`,"").replace("-measure",""),duration:e.duration})))}},zt=(e,t)=>t?`${t}-${e.uuid}-${e.name}`:`__browser_window__-${e.uuid}-${e.name}`,Jt=new Map,Zt=e=>(Jt.has(e)||Jt.set(e,rt(e)),Jt.get(e)()),qt=(e,t)=>{const a=zt(e,t);return Zt(a)};var jt,Qt,Yt,Xt,ea,ta;!function(e){e.CloseBrowserWindow="close-browser-window",e.QuitPlatform="quit-platform",e.ClosePage="close-page",e.AddToChannel="add-to-channel",e.RemoveFromChannel="remove-from-channel",e.OpenSaveModalInternal="open-save-modal-internal",e.DuplicatePage="duplicate-page",e.SetSelectedScheme="set-selected-scheme",e.ShowBrowserIndicator="show-browser-indicator",e.SetSelectedLanguage="set-selected-language",e.RefreshBookmarksInternal="refresh-bookmarks",e.GetLayoutsWithSelectedViewsInternal="get-layouts-with-selected-views",e.FocusAndExpandSearchInternal="focus-and-expand-search"}(jt||(jt={})),function(e){e.GetPages="get-pages",e.GetActivePageForWindow="get-active-page-for-window",e.AttachPagesToWindow="attach-pages-to-window",e.DetachPagesFromWindow="detach-pages-from-window",e.SetActivePageForWindow="set-active-page-for-window",e.RenamePage="rename-page",e.ReorderPagesForWindow="reorder-pages-for-window",e.UpdatePageForWindow="update-page-for-window",e.UpdatePagesWindowOptions="update-pages-window-options",e.IsDetachingPages="is-detaching-pages",e.IsActivePageChanging="is-active-page-changing"}(Qt||(Qt={})),function(e){e.GetApps="get-apps",e.GetCuratedContent="get-curated-content",e.GetRecentlyVisited="get-recently-visited",e.GetSearchProviders="get-search-providers"}(Yt||(Yt={})),function(e){e.CreateBookmarkNode="create-bookmark-node",e.GetBookmarkNode="get-bookmark-node",e.SearchBookmarkNodes="search-bookmark-nodes",e.UpdateBookmarkNode="update-bookmark-node",e.DeleteBookmarkNode="delete-bookmark-node"}(Xt||(Xt={})),function(e){e.UpdateFavoriteEntries="update-favorite-entries",e.UpdateContentMenu="update-content-menu",e.NavigateContentMenu="navigate-content-menu"}(ea||(ea={})),function(e){e.SendUpdateVersionModalResponse="send-update-version-modal-response"}(ta||(ta={}));const aa={...jt,...Qt,...ea},na=rt(`${"undefined"!=typeof fin&&fin?.me.identity.uuid}-enterprise-bookmarks`),oa=e=>({identity:e,openfinWindow:fin.Window.wrapSync(e),_bookmarks:{_createBookmarkNode:async e=>(async e=>(await na()).dispatch(Xt.CreateBookmarkNode,e))(e),_getBookmarkNode:async e=>(async e=>(await na()).dispatch(Xt.GetBookmarkNode,e))(e),_searchBookmarkNodes:async e=>(async e=>(await na()).dispatch(Xt.SearchBookmarkNodes,e))(e),_updateBookmarkNode:async e=>(async e=>(await na()).dispatch(Xt.UpdateBookmarkNode,e))(e),_deleteBookmarkNode:async e=>(async e=>(await na()).dispatch(Xt.DeleteBookmarkNode,e))(e)},getPages:async()=>(await gt(e)).dispatch(dt.GetPagesForWindow,e),getPage:async t=>(await gt(e)).dispatch(dt.GetPageForWindow,{identity:e,pageId:t}),addPage:async t=>Ra().Browser.wrapSync(e)._addPage(t),_addPage:async(t,a)=>{const n=await gt(e),o={identity:e,page:t,insertionIndex:a?.index,multiInstanceViewBehavior:a?.multiInstanceViewBehavior};return n.dispatch(dt.AddPage,o)},removePage:async t=>(await gt(e)).dispatch(dt.DetachPagesFromWindow,{identity:e,pageIds:[t]}),reparentPage:async t=>Ra().Browser.wrapSync(e)._reparentPage(t),_reparentPage:async t=>{const{pageId:a}=t,n=await gt(e),o=(await n.dispatch(dt.GetAllAttachedPages,void 0)).find((({pageId:e})=>e===a));if(!o)throw new Error(`Reparent Page Error: Target page with pageId ${a} not found`);o.multiInstanceViewBehavior="reparent";const r={identity:e,pages:[o],insertionIndex:t.index};return n.dispatch(dt.AttachPagesToWindow,r)},setActivePage:async t=>(await gt(e)).dispatch(dt.SetActivePage,{identity:e,pageId:t}),updatePage:async t=>{const a=await gt(e);return t.identity=e,a.dispatch(dt.UpdatePageForWindow,t)},reorderPages:async t=>{const a=await gt(e);return t.identity=e,a.dispatch(dt.ReorderPagesForWindow,t)},_openGlobalContextMenu:async t=>{const a=await gt(e);return t.identity=e,a.dispatch(dt.OpenGlobalContextMenuInternal,t)},replaceToolbarOptions:async t=>{await gt(e);const a=fin.Window.wrapSync(e);await a.updateOptions({workspacePlatform:{toolbarOptions:t}})},replaceWindowStateButtonOptions:async t=>{await gt(e);const a=fin.Window.wrapSync(e);await a.updateOptions({workspacePlatform:{windowStateButtonOptions:t}})},updateBrowserWindowTitle:async t=>{const a=fin.Window.wrapSync(e);"string"!=typeof t?await a.updateOptions({workspacePlatform:{title:t}}):console.warn("Type string for window title is deprecated, please use WindowTitle type instead",t)},_openViewTabContextMenu:async t=>{const a=await gt(e);return t.identity=e,a.dispatch(dt.OpenViewTabContextMenuInternal,t)},_openPageTabContextMenu:async t=>{const a=await gt(e);return t.identity=e,a.dispatch(dt.OpenPageTabContextMenuInternal,t)},_openSaveModal:async t=>{await gt(e);return(await qt(e)).dispatch(aa.OpenSaveModalInternal,t)},_getLayoutsWithSelectedViews:async()=>(await qt(e)).dispatch(aa.GetLayoutsWithSelectedViewsInternal,e),_openSaveButtonContextMenu:async t=>{const a=await gt(e);return t.identity=e,a.dispatch(dt.OpenSaveButtonContextMenuInternal,t)},_addDefaultPage:async t=>{const a=await gt(e);return t.identity=e,a.dispatch(dt.AddDefaultPage,t)},_trackRemovedTab:async t=>(await gt(e)).dispatch(dt.TrackRemovedTabInternal,t),_restoreRemovedTab:async t=>(await gt(e)).dispatch(dt.RestoreRemovedTabInternal,t),_trackVisitedSite:async t=>(await gt(e)).dispatch(dt.TrackVisitedSiteInternal,t),_getRecentlyVisitedSites:async t=>(await gt(e)).dispatch(dt.GetRecentlyVisitedSitesInternal,t),_getFrequentlyVisitedSites:async t=>(await gt(e)).dispatch(dt.GetFrequentlyVisitedSitesInternal,t),_searchSites:async t=>(await gt(e)).dispatch(dt.SearchSitesInternal,{identity:e,req:t}),_getSearchProviders:async()=>(await gt(e)).dispatch(dt.GetSearchProvidersInternal,{identity:e}),_getCuratedContent:async t=>(await gt(e)).dispatch(dt.GetCuratedContentInternal,{identity:e,req:t}),_handleRequestNavigation:async t=>(await gt(e)).dispatch(dt.HandleRequestNavigationInternal,t),_sendUpdateVersionModalResponse:async t=>(await gt(e)).dispatch(dt.SendUpdateVersionModalResponseInternal,t)}),ra=e=>{const t=fin.Platform.wrapSync(e);return{wrapSync:e=>oa(e),createWindow:async a=>{const n=(()=>{const e=`browser-window-startup-${Bt()}`;return Kt.markStart(e),e})();(e=>{fin.Application.wrapSync({uuid:fin.me.identity.uuid}).once("window-shown",(()=>{Kt.markAndMeasure("browser-window-shown",e)}))})(n),await gt(e);const o=await t.createWindow(a);return(e=>{Kt.markAndMeasure("browser-window-started",e)})(n),oa(o.identity)},getAllAttachedPages:async()=>(await gt(e)).dispatch(dt.GetAllAttachedPages,void 0),getAllWindows:async()=>{await gt(e);return(await be()).map((e=>oa(e.identity)))},getUniquePageTitle:async t=>(await gt(e)).dispatch(dt.GetUniquePageTitle,t),getLastFocusedWindow:async()=>(await gt(e)).dispatch(dt.GetLastFocusedBrowserWindow,void 0),getPageByViewIdentity:async t=>(await gt(e)).dispatch(dt.GetPageByViewIdentity,t)}},ia=e=>({createPage:async t=>(await gt(e)).dispatch(dt.CreateSavedPageInternal,t),deletePage:async t=>(await gt(e)).dispatch(dt.DeleteSavedPageInternal,t),updatePage:async t=>(await gt(e)).dispatch(dt.UpdateSavedPageInternal,t),getPage:async t=>(await gt(e)).dispatch(dt.GetSavedPage,t),getPages:async t=>(await gt(e)).dispatch(dt.GetSavedPages,t),savePage:async t=>(await gt(e)).dispatch(dt.SavePage,t),createWorkspace:async t=>(await wt(e)).dispatch(dt.CreateSavedWorkspace,t),deleteWorkspace:async t=>{const a=Ra(),n=await a.getCurrentWorkspace();if(n.workspaceId===t)throw new Error(`Cannot delete current active workspace ${n.title}`);return(await wt(e)).dispatch(dt.DeleteSavedWorkspace,t)},updateWorkspace:async t=>(await wt(e)).dispatch(dt.UpdateSavedWorkspace,t),getWorkspace:async t=>(await wt(e)).dispatch(dt.GetSavedWorkspace,t),getWorkspaces:async t=>(await wt(e)).dispatch(dt.GetSavedWorkspaces,t),saveWorkspace:async t=>(await wt(e)).dispatch(dt.SaveWorkspace,t),getDockProviderConfig:async t=>(await wt(e)).dispatch(dt.GetDockProviderConfig,t),saveDockProviderConfig:async t=>(await wt(e)).dispatch(dt.SaveDockProviderConfig,t)});var sa;!function(e){e.UpdatePlatformThemeScheme="update-platform-theme-scheme"}(sa||(sa={}));const ca=rt("of-workspace-notifications-sync"),la=(e,t)=>{localStorage.setItem(`${T}-${e}`,t)},da=e=>localStorage.getItem(`${T}-${e}`),ua=e=>localStorage.removeItem(`${T}-${e}`),pa=m.System,wa=e=>Object.entries(e).reduce(((e,[t,a])=>`${e}--workspace-palette-${t}: ${a};`),""),ga=(e,t)=>{const a=!!e.contentBackground5&&"#000000"!==e.contentBackground5,n=!!e.contentBackground4&&"#000000"!==e.contentBackground4;return{dockExpandedContainerBorder:a?`1px solid ${e.contentBackground5}`:"",dockExpandedContainerBorderRadius:a&&t?"0":"10px",dockExpandedContainerBackground:n?e.contentBackground4:e.background1,fillerBackgroundColor:n?e.contentBackground4:"inherit",dockCompanionContainerBackground:n?e.contentBackground4:"inherit",dockComponentContainerBackground:a?e.contentBackground5:e.background5,styledDropdownActiveBackground:`${a?e.contentBackground5:e.background5} !important`,contentMenuWrapperInternalDivBorderColor:a?e.contentBackground5:e.background5,contentMenuItemContainerActiveBackground:a?e.contentBackground5:e.background3,contentMenuItemContainerHoverBackground:a?e.contentBackground5:e.background2,contentMenuHeaderBorderColor:a?e.contentBackground5:e.background5,dockCompanionSeparatorBorderColor:a?e.contentBackground5:e.background3,companionDockButtonActiveBackground:a?e.contentBackground5:e.background4,companionDockButtonHoverBackground:a?e.contentBackground5:e.background4}},ha=(e,t,a)=>({selectedTab:"dark"===t?e.background3:e.background1,...ga(e,a)});const ma=new class{constructor(e){this.providerStorage=e,this.getVarsByScheme=e=>"dark"===e?this.darkPaletteVars:this.lightPaletteVars,this.setWorkspaceStorageProxy=e=>{this.workspaceStorage=e},this.trySynchronizeWorkspaceStorage=async()=>{if(this.workspaceStorage){const e=this.getScheme();if(await this.workspaceStorage.setItem(Et.SelectedColorScheme,e),this.darkPaletteVars&&this.lightPaletteVars)if("dark"===e||"light"===e)await this.workspaceStorage.setItem(Et.ThemePaletteSheet,`:root{${this.getVarsByScheme(e)}}`);else{const e=`@media (prefers-color-scheme: dark){:root {${this.getVarsByScheme("dark")}}}`,t=`@media (prefers-color-scheme: light){:root{${this.getVarsByScheme("light")}}}`;await this.workspaceStorage.setItem(Et.ThemePaletteSheet,`${t}${e}`)}}},this.setPalettes=async({light:e,dark:t},a)=>{this.lightPaletteVars=wa({...e,...ha(e,"light",a)}),this.darkPaletteVars=wa({...t,...ha(t,"dark",a)})}}setScheme(e){this.providerStorage.setItem(Et.SelectedColorScheme,e)}getScheme(){return null===this.providerStorage.getItem(Et.SelectedColorScheme)&&this.providerStorage.setItem(Et.SelectedColorScheme,pa),this.providerStorage.getItem(Et.SelectedColorScheme)}}(d),ka=()=>ma,ba=e=>({getThemes:async()=>(await wt(e)).dispatch(dt.GetThemes,void 0),setSelectedScheme:async t=>(await wt(e)).dispatch(dt.SetSelectedScheme,t),getSelectedScheme:async()=>(await wt(e)).dispatch(dt.GetSelectedScheme,void 0)}),ya=async e=>{const t=await lt();await t.dispatch("set-selected-scheme",e)},fa=async e=>{const t=await ca();await t.dispatch(sa.UpdatePlatformThemeScheme,{scheme:e})},Sa=async e=>{const t=await be();return Promise.all(t.map((async t=>{const a=await qt(t.identity);await a.dispatch(aa.SetSelectedScheme,e)})))},va=async e=>{const t=new Array,a=fin.Application.getCurrentSync(),n=await a.getViews();for(const e of n){-1!==e.identity.name.indexOf(de.BrowserAddressSearchPrefix)&&t.push(e.identity);-1!==(await e.getOptions()).url.indexOf(K.EnterpriseBrowser)&&t.push(e.identity)}return Promise.all(t.map((async t=>{const a=await qt(t,"theme-change-listener");await a.dispatch(aa.SetSelectedScheme,e)})))},Pa=async e=>{const t=await ye();return Promise.all(t.map((async t=>{const a=await qt(t.identity);await a.dispatch(aa.SetSelectedScheme,e)})))},Ca=async e=>{const t=await qt({uuid:we.uuid,name:de.EnterpriseContextMenu});await t.dispatch(aa.SetSelectedScheme,e)},Ma=async e=>{const t=await qt({uuid:we.uuid,name:de.EnterpriseBookmarkDialogWindow});await t.dispatch(aa.SetSelectedScheme,e).catch((()=>{}))},xa=async e=>{const t=await qt({uuid:we.uuid,name:de.DropdownMenu});await t.dispatch(aa.SetSelectedScheme,e).catch((()=>{}))},Ia=async e=>{const t=await qt({uuid:we.uuid,name:de.DockCompanion});await t.dispatch(aa.SetSelectedScheme,e).catch((()=>{}))},Aa=async e=>{try{const t=ka();t.setScheme(e),await Promise.all([t.trySynchronizeWorkspaceStorage(),va(e),fa(e),Sa(e),Pa(e),Ca(e),ya(e),Ma(e),xa(e),Ia(e)])}catch(e){console.error("failed to set the selected scheme: ",e)}},Wa=()=>{try{return ka().getScheme()}catch(e){console.error("failed to get the selected scheme: ",e)}},Da=e=>{const t=fin.Platform.wrapSync(e);let a;return Object.assign(t,{applySnapshot:async(t,a)=>{if("string"!=typeof t&&!t?.windows)throw new Error("Not a valid browser snapshot");return fin.Platform.wrapSync(e).applySnapshot(t,a)},getSnapshot:()=>fin.Platform.wrapSync(e).getSnapshot().then((e=>e)),getViewSnapshot:t=>fin.Platform.wrapSync(e).getViewSnapshot(t),createView:(t,a,n)=>fin.Platform.wrapSync(e).createView(t,a,n),launchApp:async t=>{console.warn("launchApp method is deprecated. It is recommended to use createView - https://developers.openfin.co/of-docs/docs/platform-getting-started#add-a-view-to-an-existing-window or createWindow - https://developers.openfin.co/of-docs/docs/platform-getting-started#create-a-platform-window instead."),t.target||(t.target={uuid:T,name:B,entityType:E||"unknown"});return(await wt(e)).dispatch(dt.LaunchApp,t)},_invokeCustomAction:async(t,a)=>{const n=await wt(e),o={actionId:t,payload:{...a,callerType:a.callerType||C.API}};return n.dispatch(dt.InvokeCustomActionInternal,o)},_requestQuitPlatformDialog:async t=>(await wt(e)).dispatch(dt.RequestQuitPlatformDialogInternal,t),_showUpdateVersionModal:async t=>(await wt(e)).dispatch(dt.ShowUpdateVersionModalInternal,t),getCurrentWorkspace:async()=>(await wt(e)).dispatch(dt.GetCurrentWorkspace,void 0),applyWorkspace:async(t,a)=>(await wt(e)).dispatch(dt.ApplyWorkspace,{...t,options:a}),restoreLastSavedWorkspace:async t=>(await wt(e)).dispatch(dt.RestoreLastSavedWorkspaceInternal,t),setActiveWorkspace:async t=>(await wt(e)).dispatch(dt.SetActiveWorkspace,t),getLanguage:async()=>(await wt(e)).dispatch(dt.GetLanguage),_getLanguageResources:async()=>(await wt(e)).dispatch(dt.GetLanguageResourcesInternal),setLanguage:async t=>(await wt(e)).dispatch(dt.SetLanguage,t),_raiseAnalytics:async t=>{if(a||(a=await pt(e)),"object"==typeof a&&a?.analytics?.isSupported){return(await wt(e)).dispatch(dt.Analytics,t)}e.uuid},getNotificationsConfig:async()=>(await wt(e)).dispatch(dt.GetNotificationsConfig),_refreshBookmarksInternal:async()=>(await wt(e)).dispatch(dt.RefreshBookmarksInternal),_launchBookmarkInternal:async t=>(await wt(e)).dispatch(dt.LaunchBookmarkInternal,t),_updateDockFavoritesInternal:async t=>(await wt(e)).dispatch(dt.UpdateDockFavoritesInternal,t),_updateContentMenuInternal:async t=>(await wt(e)).dispatch(dt.UpdateContentMenuInternal,t),_launchDockEntryInternal:async t=>(await wt(e)).dispatch(dt.LaunchDockEntryInternal,t),_setDockFavoritesInternal:async t=>(await wt(e)).dispatch(dt.SetDockFavoritesOrderInternal,t),_setDefaultDockButtonsOrderInternal:async t=>(await wt(e)).dispatch(dt.SetDefaultDockButtonsOrderInternal,t),_removeDockFavoriteInternal:async t=>(await wt(e)).dispatch(dt.RemoveDockFavoriteInternal,t),_addDockFavoriteInternal:async t=>(await wt(e)).dispatch(dt.AddDockFavoriteInternal,t),_navigateContentMenuInternal:async t=>(await wt(e)).dispatch(dt.NavigateContentMenuInternal,t),_openDockWorkspacesContextMenuInternal:async()=>(await wt(e)).dispatch(dt.GetDockWorkspacesContextMenuInternal),_handleDockWorkspacesMenuResponseInternal:async t=>(await wt(e)).dispatch(dt.HandleDockWorkspacesMenuResponseInternal,t),_focusAndExpandSearchInternal:async()=>(await wt(e)).dispatch(dt.FocusAndExpandSearchInternal),Theme:ba(e),Browser:ra(e),Storage:ia(e)})},Ra=()=>Da(fin.me.identity),Ta={contextMenuOptions:{enabled:!0,template:["spellCheck","separator","print","separator","cut","copy","paste","undo","redo","selectAll","inspect","reload"]},downloadShelf:{enabled:!0}};function Ba(e,t){return Wt({},Ta,t,e)}const Ea="internal-generated-view-",Fa=(e,t)=>e.content?{...e,content:e.content.map((e=>Fa(e,t)))}:{...e,componentState:t(e.componentState)},Va=(e,t)=>{return a=Ba(e,t),{...a,name:a.name?a.name:`internal-generated-view-${Bt()}`,_internalWorkspaceData:{...a._internalWorkspaceData,viewIdentifier:a._internalWorkspaceData?.viewIdentifier||Bt()}};var a},Na=e=>({...e,name:void 0}),La=e=>{const t={...e};return Fa(t,Na)},_a=e=>{const t={...e};return Fa(t,(e=>e.name&&e.name.startsWith(Ea)?Na(e):e))},Oa=e=>{const t=[];return(e&&Array.isArray(e)?e:[]).forEach((e=>{if("component"===e.type)return t.push(e.componentState);const a=Oa(e.content);t.push(...a)})),t},Ua=async(e,t,a=we)=>{let n;if(await ke(a)){n=(await pe(a).getOptions()).layout||{settings:{}}}return{...n,content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{title:e,url:t}}]}]}};new Map,new Map;const Ga=(e,t)=>{const a=Oa(t.content);return{...Fa(e,(e=>{const t=a.find((t=>t._internalWorkspaceData?.viewIdentifier===e._internalWorkspaceData?.viewIdentifier)),n=t?t.isClosable:e.isClosable;return{...e,isClosable:n}})),settings:t.settings}},Ha=e=>e?Oa(e).length:0,$a=(Tt()((async e=>{try{const t=await(async e=>fin.Platform.Layout.wrapSync({...fin.me.identity,layoutName:e}).getConfig())(e.layoutContainerKey),a=t.content?Oa(t.content):[],n=a.length;n>1?(async e=>{if("multiView"!==e.attachedPageType){const t=await Ra().Browser.getUniquePageTitle();Ra().Browser.wrapSync(we).updatePage({pageId:e.pageId,page:{title:e.title??t,singleViewName:null,attachedPageType:"multiView"}})}})(e):1===n&&(async(e,t)=>{const a=Ra().Browser.wrapSync(we);if("singleView"!==e.attachedPageType){const n=await Gt(e);delete n.layout;const o={...n,title:null,singleViewName:t,hasUnsavedChanges:!1,attachedPageType:"singleView"};await a.updatePage({pageId:e.pageId,page:o})}})(e,a[0].name),await(async(e,t)=>{const a=Ht({...we,layoutName:e.layoutContainerKey}),n=await a.isShowingTabs();t>1?n||await a.show():1===t&&n&&await a.hide({settings:{reorderEnabled:!0}})})(e,n)}catch(e){}}),50,{leading:!1,trailing:!0}),require("react-i18next")),Ka=require("i18next");var za=a.n(Ka);const Ja=JSON.parse('{"contextMenu.newWindow":"新建窗口","contextMenu.newPage":"新建页面","contextMenu.restore":"还原到上次保存的更改","contextMenu.switchWorkspace":"切换工作区","contextMenu.appearance":"外观","contextMenu.saveWorkspace":"保存工作区","contextMenu.saveWorkspaceAs":"将工作区另存为...","contextMenu.renameWorkspace":"重命名工作区","contextMenu.deleteWorkspace":"删除工作区","contextMenu.downloads":"下载","contextMenu.savePage":"保存页面","contextMenu.savePageAs":"将页面另存为...","contextMenu.print":"打印...","contextMenu.printScreen":"打印屏幕","contextMenu.closeWindow":"关闭窗口","contextMenu.openStorefront":"开放式店面","contextMenu.quitPlatform":"退出平台","contextMenu.newView":"新建视图","contextMenu.openView":"使用默认 Web 浏览器打开视图","contextMenu.openViews":"使用默认 Web 浏览器打开视图","contextMenu.reload":"Reload CN","contextMenu.reloadView":"重新加载视图","contextMenu.reloadViews":"重新加载视图","contextMenu.duplicate":"Duplicate CN","contextMenu.duplicateView":"复制视图","contextMenu.duplicateViews":"复制视图","contextMenu.addView":"将视图添加到频道","contextMenu.addViews":"将视图添加到频道","contextMenu.removeView":"从频道中移除视图","contextMenu.removeViews":"从频道中移除视图","contextMenu.closeView":"关闭视图","contextMenu.closeViews":"关闭视图","contextMenu.closeTab":"Close Tab CN","contextMenu.duplicatePage":"复制页面","contextMenu.submenu.print":"打印","contextMenu.submenu.printAll":"全部打印","saveMenu.saveWorkspaceAs":"将工作区另存为","saveMenu.savePageAs":"将页面另存为","saveModal.enterValue":"Please enter a value CN","saveModal.alreadyExists":"{{title}} 已存在。","saveModal.pleaseEnterValidName":"请输入有效名称","saveModal.renamePage":"重新命名页面","saveModal.closePage":"关闭页面","saveModal.discardChanges":"放弃更改","saveModal.discardAll":"全部放弃","saveModal.saveAll":"全部保存","saveModal.savePagesCount":"关闭前保存 ({{count}}) 个页面?","defaultPageTitle":"Untitled Page CN","enterpriseDefaultPageTitle":"Untitled Supertab CN","addNewPage":"添加新页面","addNewTab":"添加新选项卡","addNewView":"新建视图","restoreModal":"您确定要还原到上次保存的更改吗?","modal.discardWarning":"任何未保存的更改都将丢失","modal.discardPageWarning":"对此页的任何未保存的更改都将丢失。","modal.saveChangesPrompt":"关闭前保存更改?","modal.pageClose":"关闭页面","switchWorkspaceModal":"您确定要切换到 {{workspace}} 吗?","switchWorkspaceModal.warning":"任何未保存的更改都将丢失","deleteWorkspaceModal":"您确定要永久删除此工作区吗?","replaceWorkspaceModal.warning":"名称为 {{workspace}} 的工作区已存在。您是否要替换它?","replaceWorkspaceModal.warning.body":"已存在同名的工作区。替换它将覆盖其当前内容。","replaceWorkspaceModal.replace":"替换","closePlatform":"关闭平台","closePlatform.workspace":"关闭 {{workspace}} 平台","closePlatform.warning":"关闭平台将关闭所有工作区、应用或任何正在运行的进程。","back":"后退","forward":"前进","reload":"重新加载","green":"绿色","purple":"紫色","orange":"橙色","red":"红色","pink":"粉红色","yellow":"黄色","theme.light":"浅色","theme.dark":"深色","theme.system":"与操作系统设置同步","toolbar.hideTabs":"隐藏选项卡","toolbar.showTabs":"显示选项卡","toolbar.lock":"锁定","toolbar.unlock":"解锁","toolbar.colorLinking":"颜色链接","toolbar.changeLayout":"更改布局","toolbar.saveMenu":"保存菜单","toolbar.maximizeWindow":"最大化窗口","toolbar.restoreWindow":"还原窗口","toolbar.minimizeWindow":"最小化窗口","changeLayout.fullWidth":"全宽","changeLayout.columns":"列数","changeLayout.Rows":"行数","changeLayout.Grid":"网格","successIndicator.workspaceSwitched":"已切换工作区","successIndicator.hidden":"选项卡已隐藏","successIndicator.shown":"选项卡已显示","successIndicator.locked":"页面已锁定","successIndicator.unlocked":"页面已解锁","successIndicator.workspaceSaved":"工作区已保存","successIndicator.workspaceSavedAs":"工作区已另存为 {{workspace}}","successIndicator.workspaceRenamed":"工作区已重命名","successIndicator.pageSaved":"页面已保存","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. CN","successIndicator.pageCopySaved":"页面已另存为 {{title}}","successIndicator.pageRenamed":"页面已重命名","successIndicator.contextGroupApplied":"已应用上下文组","successIndicator.namedContextGroupApplied":"已应用 {{colorName}} 上下文组","successIndicator.viewRemoved":"从上下文组中移除视图","successIndicator.viewsRemoved":"从上下文组中移除视图","successIndicator.layoutApplied":"已应用 {{layoutName}} 布局","successIndicator.workspaceDeleted":"工作区已删除","errorIndicator.pageSaveFailed":"页面保存失败","errorIndicator.workspaceSaveFailed":"工作区保存失败","errorIndicator.failedToDuplicatePage":"复制页面失败","infoIndicator.colorLinkAttempt":"我们尝试对此选项卡进行颜色链接,但网站/内容所有者尚未启用该功能","global.cancel":"取消","global.confirm":"确认","global.save":"保存","global.delete":"Delete CN","appResults.header":"Featured Content CN","recentlyClosed.header":"Recently Closed CN","landingPage.subheader":"Apps and websites selected by an admin will show here CN","aria.openBrowser":"打开浏览器菜单","aria.browserTabs":"浏览器选项卡","aria.viewTab":"查看 {{title}} 的选项卡","aria.closePage":"关闭 {{title}} 的页面选项卡按钮","aria.closeTab":"关闭选项卡 {{title}}","aria.title":"标题","aria.closeContextGroup":"使用转义关闭上下文组选择对话框","aria.colorLinking":"显示或隐藏颜色链接","aria.applyColorLinking":"请选择一个视图以应用颜色链接","aria.assignColorLinkingCurrentView":"分配给 {{name}} 上下文组的当前视图","aria.assignColorLinkingCurrentViews":"分配给 {{name}} 上下文组的当前视图","aria.setColorLinkingActiveView":"将活动视图设置为 {{name}} 上下文组","aria.setColorLinkingActiveViews":"将活动视图设置为 {{name}} 上下文组","aria.escapeLayoutDialog":"使用转义关闭更改布局对话框","global.supertab":"Supertab CN","global.tab":"Tab CN","bookmarks.editBookmark":"Edit Bookmark CN","bookmarks.bookmarkAdded":"Bookmark added CN","bookmarks.done":"Done CN","bookmarks.remove":"Remove CN","bookmarks.bookmarksPanel":"Bookmarks Panel CN","bookmarks.bookmarks":"Bookmarks CN","bookmarks.allBookmarks":"All Bookmarks CN","bookmarks.favorites":"Favorites CN","bookmarks.searchBookmarks":"Search Bookmarks CN","bookmarks.clearSearchInput":"Clear Search Input CN","bookmarks.createFolder":"Create New Folder CN","bookmarks.exitFolder":"Exit Folder CN","bookmarks.newFolder":"New Folder CN","bookmarks.namedFolder":"{{name}} Folder CN","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings CN","bookmarks.folderSettings":"{{name}} Folder Settings CN","bookmarks.noResultsFound":"No results found CN","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search CN","bookmarks.nothingToShow":"Nothing to show yet CN","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder CN","bookmarks.resultsFoundIn":"Results found in {{name}} CN","bookmarks.resultsInOtherFolders":"Results found in other folders CN","bookmarks.allResultsFoundIn":"All results found in CN","bookmarks.editName":"Edit Name CN","bookmarks.move":"Move CN","bookmarks.bookmarkAddedTitle":"Bookmark Added CN","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" CN","bookmarks.bookmarkEditedTitle":"Bookmark Edited CN","enterpriseContextMenu.saveSupertab":"Save Supertab CN","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... CN","enterpriseContextMenu.duplicate":"Duplicate CN","enterpriseContextMenu.deleteSupertab":"Delete Supertab CN","enterpriseContextMenu.newTab":"New Tab CN","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As CN","enterpriseSaveModal.renameSupertab":"Rename CN","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. CN","enterpriseSaveModal.closeTab":"Close Tab CN","enterpriseSaveModal.closeSupertab":"Close Supertab CN","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? CN","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. CN","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? CN","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. CN","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved CN","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. CN","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted CN","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. CN","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab CN","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab CN","enterpriseCommandBar.switchToSupertab":"Switch to Supertab CN","enterpriseCommandBar.goTo":"Go to {{type}} CN","enterpriseCommandBar.viewMore":"View More CN","sidePanel.aiCompanion":"AI Companion CN","sidePanel.newChat":"New Chat CN","sidePanel.toggleSidePanel":"Toggle Side Panel CN","sidePanel.closeSidePanel":"Close Side Panel CN","sidePanel.openAiCompanion":"Open AI Companion CN","contextMenu.quitEnterpriseBrowser":"Quit CN","dock.removeFavorite":"Remove CN"}'),Za=JSON.parse('{"contextMenu.newWindow":"新視窗","contextMenu.newPage":"新頁面","contextMenu.restore":"還原到上次儲存的變更","contextMenu.switchWorkspace":"切換工作空間","contextMenu.appearance":"外觀","contextMenu.saveWorkspace":"儲存工作空間","contextMenu.saveWorkspaceAs":"將工作空間另存為...","contextMenu.renameWorkspace":"重新命名工作空間","contextMenu.deleteWorkspace":"刪除工作空間","contextMenu.downloads":"下載","contextMenu.savePage":"儲存頁面","contextMenu.savePageAs":"將頁面另存為...","contextMenu.print":"列印...","contextMenu.printScreen":"擷取畫面","contextMenu.closeWindow":"關閉視窗","contextMenu.openStorefront":"打開 Storefront","contextMenu.quitPlatform":"退出平台","contextMenu.newView":"新視圖","contextMenu.openView":"使用預設網頁瀏覽器打開視圖","contextMenu.openViews":"使用預設網頁瀏覽器打開視圖","contextMenu.reload":"Reload ZH","contextMenu.reloadView":"重新載入視圖","contextMenu.reloadViews":"重新載入視圖","contextMenu.duplicate":"Duplicate ZH","contextMenu.duplicateView":"複寫視圖","contextMenu.duplicateViews":"複寫視圖","contextMenu.addView":"將視圖新增至頻道","contextMenu.addViews":"將視圖新增至頻道","contextMenu.removeView":"從頻道中移除視圖","contextMenu.removeViews":"從頻道中移除視圖","contextMenu.closeView":"關閉視圖","contextMenu.closeViews":"關閉視圖","contextMenu.closeTab":"Close Tab ZH","contextMenu.duplicatePage":"複寫頁面","contextMenu.submenu.print":"列印","contextMenu.submenu.printAll":"列印全部","saveMenu.saveWorkspaceAs":"將工作空間另存為","saveMenu.savePageAs":"頁面另存為","saveModal.enterValue":"Please enter a value ZH","saveModal.alreadyExists":"{{title}} 已經存在。","saveModal.pleaseEnterValidName":"請輸入一個有效的名稱","saveModal.renamePage":"重新命名頁面","saveModal.closePage":"關閉頁面","saveModal.discardChanges":"捨棄變更","saveModal.discardAll":"全部捨棄","saveModal.saveAll":"儲存全部","saveModal.savePagesCount":"要先儲存 ({{count}}) 個頁面再關閉嗎?","defaultPageTitle":"Untitled Page ZH","enterpriseDefaultPageTitle":"Untitled Supertab ZH","addNewPage":"新增新頁面","addNewTab":"新增新索引標籤","addNewView":"新視圖","restoreModal":"您確定要還原到上次儲存的變更嗎?","modal.discardWarning":"任何未儲存的變更都將被捨棄","modal.discardPageWarning":"在此頁面任何未儲存的變更都將遺失。","modal.saveChangesPrompt":"要先儲存變更再關閉嗎?","modal.pageClose":"頁面關閉","switchWorkspaceModal":"您確定要切換到 {{workspace}}?","switchWorkspaceModal.warning":"任何未儲存的變更都將被捨棄","deleteWorkspaceModal":"您確定要永久刪除此工作空間嗎?","replaceWorkspaceModal.warning":"具有名稱 {{workspace}} 的工作空間已經存在。你要更換它嗎?","replaceWorkspaceModal.warning.body":"相同名稱的工作空間已經存在。更換它後,將會覆蓋目前內容。","replaceWorkspaceModal.replace":"更換","closePlatform":"關閉平台","closePlatform.workspace":"關閉 {{workspace}} 平台","closePlatform.warning":"關閉平台後,將關閉正在執行的任何工作空間、APP 或流程。","back":"上一頁","forward":"下一頁","reload":"重新載入","green":"綠","purple":"紫","orange":"橘","red":"紅色","pink":"粉紅","yellow":"黃","theme.light":"淺","theme.dark":"深","theme.system":"與 OS 設定同步","toolbar.hideTabs":"隱藏索引標籤","toolbar.showTabs":"顯示索引標籤","toolbar.lock":"上鎖","toolbar.unlock":"解鎖","toolbar.colorLinking":"顏色連結","toolbar.changeLayout":"變更版面","toolbar.saveMenu":"儲存選單","toolbar.maximizeWindow":"最大化視窗","toolbar.restoreWindow":"還原視窗","toolbar.minimizeWindow":"最小化視窗","changeLayout.fullWidth":"全螢幕寬度","changeLayout.columns":"行","changeLayout.Rows":"列","changeLayout.Grid":"網格","successIndicator.workspaceSwitched":"工作空間已切換","successIndicator.hidden":"索引標籤已隱藏","successIndicator.shown":"索引標籤已顯示","successIndicator.locked":"頁面已上鎖","successIndicator.unlocked":"頁面已解鎖","successIndicator.workspaceSaved":"工作空間已儲存","successIndicator.workspaceSavedAs":"工作空間已另存為 {{workspace}}","successIndicator.workspaceRenamed":"工作空間已重新命名","successIndicator.pageSaved":"頁面已儲存","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. ZH","successIndicator.pageCopySaved":"頁面已另存為 {{title}}","successIndicator.pageRenamed":"頁面已重新命名","successIndicator.contextGroupApplied":"脈絡群組已套用","successIndicator.namedContextGroupApplied":"{{colorName}} 脈絡群組已套用","successIndicator.viewRemoved":"從脈絡群組中移除的視圖","successIndicator.viewsRemoved":"從脈絡群組中移除的視圖","successIndicator.layoutApplied":"{{layoutName}} 版面已套用","successIndicator.workspaceDeleted":"工作空間已刪除","errorIndicator.pageSaveFailed":"頁面無法儲存","errorIndicator.workspaceSaveFailed":"工作空間無法儲存","errorIndicator.failedToDuplicatePage":"無法複寫頁面","infoIndicator.colorLinkAttempt":"我們嘗試對此索引標籤進行顏色連結,但網站/內容所有者尚未啟用該功能","global.cancel":"取消","global.confirm":"確認","global.save":"儲存","global.delete":"Delete ZH","appResults.header":"Featured Content ZH","recentlyClosed.header":"Recently Closed ZH","landingPage.subheader":"Apps and websites selected by an admin will show here ZH","aria.openBrowser":"開啟瀏覽器選單","aria.browserTabs":"瀏覽器索引標籤","aria.viewTab":"{{title}} 的視圖索引標籤","aria.closePage":"關閉 {{title}} 的頁面索引標籤按鈕","aria.closeTab":"關閉索引標籤 {{title}}","aria.title":"標題","aria.closeContextGroup":"使用 Esc 鍵關閉脈絡群組選取對話框","aria.colorLinking":"顯示或隱藏顏色連結","aria.applyColorLinking":"請選取要套用顏色連結的視圖","aria.assignColorLinkingCurrentView":"目前視圖分配給 {{name}} 脈絡群組","aria.assignColorLinkingCurrentViews":"目前視圖分配給 {{name}} 脈絡群組","aria.setColorLinkingActiveView":"將啟用視圖設定為 {{name}} 脈絡群組","aria.setColorLinkingActiveViews":"將啟用視圖設定為 {{name}} 脈絡群組","aria.escapeLayoutDialog":"使用 Esc 鍵關閉變更版面對話框","global.supertab":"Supertab ZH","global.tab":"Tab ZH","bookmarks.editBookmark":"Edit Bookmark ZH","bookmarks.bookmarkAdded":"Bookmark added ZH","bookmarks.done":"Done ZH","bookmarks.remove":"Remove ZH","bookmarks.bookmarksPanel":"Bookmarks Panel ZH","bookmarks.bookmarks":"Bookmarks ZH","bookmarks.allBookmarks":"All Bookmarks ZH","bookmarks.favorites":"Favorites ZH","bookmarks.searchBookmarks":"Search Bookmarks ZH","bookmarks.clearSearchInput":"Clear Search Input ZH","bookmarks.createFolder":"Create New Folder ZH","bookmarks.exitFolder":"Exit Folder ZH","bookmarks.newFolder":"New Folder ZH","bookmarks.namedFolder":"{{name}} Folder ZH","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings ZH","bookmarks.folderSettings":"{{name}} Folder Settings ZH","bookmarks.noResultsFound":"No results found ZH","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search ZH","bookmarks.nothingToShow":"Nothing to show yet ZH","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder ZH","bookmarks.resultsFoundIn":"Results found in {{name}} ZH","bookmarks.resultsInOtherFolders":"Results found in other folders ZH","bookmarks.allResultsFoundIn":"All results found in ZH","bookmarks.editName":"Edit Name ZH","bookmarks.move":"Move ZH","bookmarks.bookmarkAddedTitle":"Bookmark Added ZH","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" ZH","bookmarks.bookmarkEditedTitle":"Bookmark Edited ZH","enterpriseContextMenu.saveSupertab":"Save Supertab ZH","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... ZH","enterpriseContextMenu.duplicate":"Duplicate ZH","enterpriseContextMenu.deleteSupertab":"Delete Supertab ZH","enterpriseContextMenu.newTab":"New Tab ZH","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As ZH","enterpriseSaveModal.renameSupertab":"Rename ZH","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. ZH","enterpriseSaveModal.closeTab":"Close Tab ZH","enterpriseSaveModal.closeSupertab":"Close Supertab ZH","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? ZH","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. ZH","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? ZH","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. ZH","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved ZH","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. ZH","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted ZH","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. ZH","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab ZH","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab ZH","enterpriseCommandBar.switchToSupertab":"Switch to Supertab ZH","enterpriseCommandBar.goTo":"Go to {{type}} ZH","enterpriseCommandBar.viewMore":"View More ZH","sidePanel.aiCompanion":"AI Companion ZH","sidePanel.newChat":"New Chat ZH","sidePanel.toggleSidePanel":"Toggle Side Panel ZH","sidePanel.closeSidePanel":"Close Side Panel ZH","sidePanel.openAiCompanion":"Open AI Companion ZH","contextMenu.quitEnterpriseBrowser":"Quit ZH","dock.removeFavorite":"Remove ZH"}'),qa=JSON.parse('{"contextMenu.newWindow":"New Window","contextMenu.newPage":"New Page","contextMenu.restore":"Restore to Last Saved Changes","contextMenu.switchWorkspace":"Switch Workspace","contextMenu.appearance":"Appearance","contextMenu.saveWorkspace":"Save Workspace","contextMenu.saveWorkspaceAs":"Save Workspace As...","contextMenu.renameWorkspace":"Rename Workspace","contextMenu.deleteWorkspace":"Delete Workspace","contextMenu.downloads":"Downloads","contextMenu.savePage":"Save Page","contextMenu.savePageAs":"Save Page As...","contextMenu.print":"Print...","contextMenu.printScreen":"Print Screen","contextMenu.closeWindow":"Close Window","contextMenu.openStorefront":"Open Storefront","contextMenu.quitPlatform":"Quit {{platformLabel}}","contextMenu.newView":"New View","contextMenu.openView":"Open View with Default Web Browser","contextMenu.openViews":"Open Views with Default Web Browser","contextMenu.reload":"Reload","contextMenu.reloadView":"Reload View","contextMenu.reloadViews":"Reload Views","contextMenu.duplicate":"Duplicate","contextMenu.duplicateView":"Duplicate View","contextMenu.duplicateViews":"Duplicate Views","contextMenu.addView":"Add View to Channel","contextMenu.addViews":"Add Views to Channel","contextMenu.removeView":"Remove View from Channel","contextMenu.removeViews":"Remove Views from Channel","contextMenu.closeView":"Close View","contextMenu.closeViews":"Close Views","contextMenu.closeTab":"Close Tab","contextMenu.duplicatePage":"Duplicate Page","contextMenu.submenu.print":"Print","contextMenu.submenu.printAll":"Print All","saveMenu.saveWorkspaceAs":"Save Workspace As","saveMenu.savePageAs":"Save Page As","saveModal.enterValue":"Please enter a value","saveModal.alreadyExists":"{{title}} already exists.","saveModal.pleaseEnterValidName":"Please enter a valid name","saveModal.renamePage":"Rename Page","saveModal.closePage":"Close Page","saveModal.discardChanges":"Discard Changes","saveModal.discardAll":"Discard All","saveModal.saveAll":"Save All","saveModal.savePagesCount":"Save ({{count}}) pages before closing?","defaultPageTitle":"Untitled Page","enterpriseDefaultPageTitle":"Untitled Supertab","addNewPage":"New Page","addNewTab":"Add New Tab","addNewView":"New View","restoreModal":"Are you sure you want to restore to last saved changes?","modal.discardWarning":"Any unsaved changes will be discarded","modal.discardPageWarning":"Any unsaved changes to this page will be lost.","modal.saveChangesPrompt":"Save changes before closing?","modal.pageClose":"Page Close","switchWorkspaceModal":"Are you sure you want to switch to {{workspace}}?","switchWorkspaceModal.warning":"Any unsaved changes will be discarded","deleteWorkspaceModal":"Are you sure you want to permanently delete this workspace?","replaceWorkspaceModal.warning":"A Workspace with the name {{workspace}} already exists. Do you want to replace it?","replaceWorkspaceModal.warning.body":"A workspace with the same name already exists. Replacing it will overwrite its current contents.","replaceWorkspaceModal.replace":"Replace","closePlatform":"Close the platform","closePlatform.workspace":"Close the {{workspace}} Platform","closePlatform.warning":"Closing a platform will close any workspaces, apps or any processes that are running.","back":"Back","forward":"Forward","reload":"Reload","green":"Green","purple":"Purple","orange":"Orange","red":"Red","pink":"Pink","yellow":"Yellow","theme.light":"Light","theme.dark":"Dark","theme.system":"Sync with OS setting","toolbar.hideTabs":"Hide Tabs","toolbar.showTabs":"Show Tabs","toolbar.lock":"Lock","toolbar.unlock":"Unlock","toolbar.colorLinking":"Color Linking","toolbar.changeLayout":"Change Layout","toolbar.saveMenu":"Save Menu","toolbar.maximizeWindow":"Maximize Window","toolbar.restoreWindow":"Restore Window","toolbar.minimizeWindow":"Minimize Window","changeLayout.fullWidth":"Full Width","changeLayout.columns":"Columns","changeLayout.Rows":"Rows","changeLayout.Grid":"Grid","successIndicator.workspaceSwitched":"Workspace Switched","successIndicator.hidden":"Tabs are Hidden","successIndicator.shown":"Tabs are Shown","successIndicator.locked":"Page is Locked","successIndicator.unlocked":"Page is Unlocked","successIndicator.workspaceSaved":"Workspace saved","successIndicator.workspaceSavedAs":"Workspace saved as {{workspace}}","successIndicator.workspaceRenamed":"Workspace renamed","successIndicator.pageSaved":"Page Saved","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved.","successIndicator.pageCopySaved":"Page saved as {{title}}","successIndicator.pageRenamed":"Page renamed","successIndicator.contextGroupApplied":"Context group applied","successIndicator.namedContextGroupApplied":"{{colorName}} context group applied","successIndicator.viewRemoved":"View removed from context group","successIndicator.viewsRemoved":"Views removed from context group","successIndicator.layoutApplied":"{{layoutName}} layout applied","successIndicator.workspaceDeleted":"Workspace deleted","errorIndicator.pageSaveFailed":"Page failed to save","errorIndicator.workspaceSaveFailed":"Workspace failed to save","errorIndicator.failedToDuplicatePage":"Failed to duplicate Page","infoIndicator.colorLinkAttempt":"We attempted to color link this tab, but the site/content owner has not enabled it yet","global.cancel":"Cancel","global.confirm":"Confirm","global.save":"Save","global.delete":"Delete","appResults.header":"Featured Content","recentlyClosed.header":"Recently Closed","landingPage.subheader":"Apps and websites selected by an admin will show here","aria.openBrowser":"Open Browser Menu","aria.browserTabs":"Browser Tabs","aria.viewTab":"View Tab for {{title}}","aria.closePage":"Close Page Tab Button for {{title}}","aria.closeTab":"Close Tab {{title}}","aria.title":"Title","aria.closeContextGroup":"Use escape to close context group selection dialog","aria.colorLinking":"Show or hide color linking","aria.applyColorLinking":"Please select a view to apply color linking","aria.assignColorLinkingCurrentView":"Current view assigned to {{name}} context group","aria.assignColorLinkingCurrentViews":"Current views assigned to {{name}} context group","aria.setColorLinkingActiveView":"Set active view to {{name}} context group","aria.setColorLinkingActiveViews":"Set active views to {{name}} context group","aria.escapeLayoutDialog":"Use escape to close change layout dialog","global.supertab":"Supertab","global.tab":"Tab","bookmarks.editBookmark":"Edit Bookmark","bookmarks.bookmarkAdded":"Bookmark added","bookmarks.done":"Done","bookmarks.remove":"Remove","bookmarks.bookmarksPanel":"Bookmarks Panel","bookmarks.bookmarks":"Bookmarks","bookmarks.allBookmarks":"All Bookmarks","bookmarks.favorites":"Favorites","bookmarks.searchBookmarks":"Search Bookmarks","bookmarks.clearSearchInput":"Clear Search Input","bookmarks.createFolder":"Create New Folder","bookmarks.exitFolder":"Exit Folder","bookmarks.newFolder":"New Folder","bookmarks.namedFolder":"{{name}} Folder","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings","bookmarks.folderSettings":"{{name}} Folder Settings","bookmarks.noResultsFound":"No results found","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search","bookmarks.nothingToShow":"Nothing to show yet","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder","bookmarks.resultsFoundIn":"Results found in {{name}}","bookmarks.resultsInOtherFolders":"Results found in other folders","bookmarks.allResultsFoundIn":"All results found in","bookmarks.editName":"Edit Name","bookmarks.move":"Move","bookmarks.bookmarkAddedTitle":"Bookmark Added","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\"","bookmarks.bookmarkEditedTitle":"Bookmark Edited","enterpriseContextMenu.saveSupertab":"Save Supertab","enterpriseContextMenu.saveSupertabAs":"Save Supertab As...","enterpriseContextMenu.duplicate":"Duplicate","enterpriseContextMenu.deleteSupertab":"Delete Supertab","enterpriseContextMenu.newTab":"New Tab","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As","enterpriseSaveModal.renameSupertab":"Rename","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab.","enterpriseSaveModal.closeTab":"Close Tab","enterpriseSaveModal.closeSupertab":"Close Supertab","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing?","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost.","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab?","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent.","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved.","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted.","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab","enterpriseCommandBar.switchToSupertab":"Switch to Supertab","enterpriseCommandBar.goTo":"Go to {{type}}","enterpriseCommandBar.viewMore":"View More","sidePanel.aiCompanion":"AI Companion","sidePanel.newChat":"New Chat","sidePanel.toggleSidePanel":"Toggle Side Panel","sidePanel.closeSidePanel":"Close Side Panel","sidePanel.openAiCompanion":"Open AI Companion","contextMenu.quitEnterpriseBrowser":"Quit","dock.removeFavorite":"Remove"}'),ja=JSON.parse('{"contextMenu.newWindow":"Neues Fenster","contextMenu.newPage":"Neue Seite","contextMenu.restore":"Wiederherstellen der zuletzt gespeicherten Änderungen","contextMenu.switchWorkspace":"Workspace wechseln","contextMenu.appearance":"Erscheinungsbild","contextMenu.saveWorkspace":"Workspace speichern","contextMenu.saveWorkspaceAs":"Workspace speichern unter...","contextMenu.renameWorkspace":"Workspace umbenennen","contextMenu.deleteWorkspace":"Workspace löschen","contextMenu.downloads":"Downloads","contextMenu.savePage":"Seite speichern","contextMenu.savePageAs":"Seite speichern unter...","contextMenu.print":"Drucken...","contextMenu.printScreen":"Bildschirmansicht drucken","contextMenu.closeWindow":"Fenster schließen","contextMenu.openStorefront":"Schaufenster öffnen","contextMenu.quitPlatform":"Plattform verlassen","contextMenu.newView":"Neue Ansicht","contextMenu.openView":"Ansicht mit Standard-Webbrowser öffnen","contextMenu.openViews":"Ansichten mit Standard-Webbrowser öffnen","contextMenu.reload":"Reload DE","contextMenu.reloadView":"Ansicht neu laden","contextMenu.reloadViews":"Ansichten neu laden","contextMenu.duplicate":"Duplicate DE","contextMenu.duplicateView":"Ansicht duplizieren","contextMenu.duplicateViews":"Ansichten duplizieren","contextMenu.addView":"Ansicht zum Channel hinzufügen","contextMenu.addViews":"Ansichten zum Channel hinzufügen","contextMenu.removeView":"Ansicht aus dem Channel entfernen","contextMenu.removeViews":"Ansichten aus dem Channel entfernen","contextMenu.closeView":"Ansicht schließen","contextMenu.closeViews":"Ansichten schließen","contextMenu.closeTab":"Close Tab DE","contextMenu.duplicatePage":"Seite duplizieren","contextMenu.submenu.print":"Drucken","contextMenu.submenu.printAll":"Alle drucken","saveMenu.saveWorkspaceAs":"Workspace speichern unter","saveMenu.savePageAs":"Seite speichern unter","saveModal.enterValue":"Please enter a value DE","saveModal.alreadyExists":"{{title}} existiert bereits.","saveModal.pleaseEnterValidName":"Bitte geben Sie einen gültigen Namen ein","saveModal.renamePage":"Seite umbenennen","saveModal.closePage":"Seite schließen","saveModal.discardChanges":"Änderungen verwerfen","saveModal.discardAll":"Alle verwerfen","saveModal.saveAll":"Alle speichern","saveModal.savePagesCount":"({{count}}) Seiten vor dem Schließen speichern?","defaultPageTitle":"Untitled Page DE","enterpriseDefaultPageTitle":"Untitled Supertab DE","addNewPage":"Neue Seite hinzufügen","addNewTab":"Neuen Tab hinzufügen","addNewView":"Neue Ansicht","restoreModal":"Sind Sie sicher, dass Sie die zuletzt gespeicherten Änderungen wiederherstellen wollen?","modal.discardWarning":"Alle nicht gespeicherten Änderungen werden verworfen","modal.discardPageWarning":"Alle nicht gespeicherten Änderungen auf dieser Seite gehen verloren.","modal.saveChangesPrompt":"Änderungen vor dem Schließen speichern?","modal.pageClose":"Seite schließen","switchWorkspaceModal":"Sind Sie sicher, dass Sie zu {{workspace}}wechseln wollen?","switchWorkspaceModal.warning":"Alle nicht gespeicherten Änderungen werden verworfen","deleteWorkspaceModal":"Sind Sie sicher, dass Sie diesen Workspace dauerhaft löschen wollen?","replaceWorkspaceModal.warning":"Ein Workspace mit dem Namen {{workspace}} existiert bereits. Möchten Sie ihn ersetzen?","replaceWorkspaceModal.warning.body":"Ein Workspace mit demselben Namen existiert bereits. Wenn Sie ihn ersetzen, wird der aktuelle Inhalt überschrieben.","replaceWorkspaceModal.replace":"Ersetzen","closePlatform":"Plattform schließen","closePlatform.workspace":"Die {{workspace}} Plattform schließen","closePlatform.warning":"Wenn Sie eine Plattform schließen, werden alle Workspaces, Apps und laufenden Prozesse beendet.","back":"Zurück","forward":"Weiter","reload":"Neu laden","green":"Grün","purple":"Lila","orange":"Orange","red":"Rot","pink":"Pink","yellow":"Gelb","theme.light":"Hell","theme.dark":"Dunkel","theme.system":"Synchronisierung mit OS-Einstellung","toolbar.hideTabs":"Tabs ausblenden","toolbar.showTabs":"Tabs anzeigen","toolbar.lock":"Sperren","toolbar.unlock":"Freischalten","toolbar.colorLinking":"Farbverknüpfung","toolbar.changeLayout":"Layout ändern","toolbar.saveMenu":"Menü speichern","toolbar.maximizeWindow":"Fenster maximieren","toolbar.restoreWindow":"Fenster wiederherstellen","toolbar.minimizeWindow":"Fenster minimieren","changeLayout.fullWidth":"Volle Breite","changeLayout.columns":"Spalten","changeLayout.Rows":"Zeilen","changeLayout.Grid":"Raster","successIndicator.workspaceSwitched":"Workspace gewechselt","successIndicator.hidden":"Tabs sind ausgeblendet","successIndicator.shown":"Tabs werden angezeigt","successIndicator.locked":"Seite ist gesperrt","successIndicator.unlocked":"Seite ist freigeschaltet","successIndicator.workspaceSaved":"Workspace gespeichert","successIndicator.workspaceSavedAs":"Workspace gespeichert als {{workspace}}","successIndicator.workspaceRenamed":"Workspace umbenannt","successIndicator.pageSaved":"Seite gespeichert","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. DE","successIndicator.pageCopySaved":"Seite gespeichert als {{title}}","successIndicator.pageRenamed":"Seite umbenannt","successIndicator.contextGroupApplied":"Angewandte Kontextgruppe","successIndicator.namedContextGroupApplied":"{{colorName}} angewandte Kontextgruppe","successIndicator.viewRemoved":"Ansicht aus der Kontextgruppe entfernt","successIndicator.viewsRemoved":"Ansichten aus der Kontextgruppe entfernt","successIndicator.layoutApplied":"{{layoutName}} angewandtes Layout","successIndicator.workspaceDeleted":"Workspace gelöscht","errorIndicator.pageSaveFailed":"Seite konnte nicht gespeichert werden","errorIndicator.workspaceSaveFailed":"Workspace konnte nicht gespeichert werden","errorIndicator.failedToDuplicatePage":"Seite kann nicht dupliziert werden","infoIndicator.colorLinkAttempt":"Wir haben versucht, diesem Tab eine Farbe zuordnen, aber der Eigentümer der Website/des Inhalts hat sie noch nicht aktiviert","global.cancel":"Abbrechen","global.confirm":"Bestätigen","global.save":"Speichern","global.delete":"Delete DE","appResults.header":"Featured Content DC","recentlyClosed.header":"Recently Closed DC","landingPage.subheader":"Apps and websites selected by an admin will show here DE","aria.openBrowser":"Browser-Menü öffnen","aria.browserTabs":"Browser-Tab","aria.viewTab":"Tab „Ansicht“ für {{title}}","aria.closePage":"Button „Seite schließen“ für {{title}}","aria.closeTab":"Tab schließen {{title}}","aria.title":"Bezeichnung","aria.closeContextGroup":"Verwenden Sie die Escape-Taste, um den Dialog zur Auswahl von Kontextgruppen zu schließen","aria.colorLinking":"Farbverknüpfung ein- oder ausblenden","aria.applyColorLinking":"Bitte wählen Sie eine Ansicht, um die Farbverknüpfung anzuwenden","aria.assignColorLinkingCurrentView":"Aktuelle Ansicht, die der Kontextgruppe {{name}} zugeordnet ist","aria.assignColorLinkingCurrentViews":"Aktuelle Ansichten, die der Kontextgruppe {{name}} zugeordnet sind","aria.setColorLinkingActiveView":"Aktive Ansicht auf die Kontextgruppe {{name}} setzen","aria.setColorLinkingActiveViews":"Aktive Ansichten auf die Kontextgruppe {{name}} setzen","aria.escapeLayoutDialog":"Verwenden Sie die Escape-Taste, um den Dialog zur Layoutänderung zu schließen","global.supertab":"Supertab DE","global.tab":"Tab DE","bookmarks.editBookmark":"Edit Bookmark DE","bookmarks.bookmarkAdded":"Bookmark added DE","bookmarks.done":"Done DE","bookmarks.remove":"Remove DE","bookmarks.bookmarksPanel":"Bookmarks Panel DE","bookmarks.bookmarks":"Bookmarks DE","bookmarks.allBookmarks":"All Bookmarks DE","bookmarks.favorites":"Favorites DE","bookmarks.searchBookmarks":"Search Bookmarks DE","bookmarks.clearSearchInput":"Clear Search Input DE","bookmarks.createFolder":"Create New Folder DE","bookmarks.exitFolder":"Exit Folder DE","bookmarks.newFolder":"New Folder DE","bookmarks.namedFolder":"{{name}} Folder DE","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings DE","bookmarks.folderSettings":"{{name}} Folder Settings DE","bookmarks.noResultsFound":"No results found DE","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search DE","bookmarks.nothingToShow":"Nothing to show yet DE","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder DE","bookmarks.resultsFoundIn":"Results found in {{name}} DE","bookmarks.resultsInOtherFolders":"Results found in other folders DE","bookmarks.allResultsFoundIn":"All results found in DE","bookmarks.editName":"Edit Name DE","bookmarks.move":"Move DE","bookmarks.bookmarkAddedTitle":"Bookmark Added DE","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" DE","bookmarks.bookmarkEditedTitle":"Bookmark Edited DE","enterpriseContextMenu.saveSupertab":"Save Supertab DE","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... DE","enterpriseContextMenu.duplicate":"Duplicate DE","enterpriseContextMenu.deleteSupertab":"Delete Supertab DE","enterpriseContextMenu.newTab":"New Tab DE","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As DE","enterpriseSaveModal.renameSupertab":"Rename DE","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. DE","enterpriseSaveModal.closeTab":"Close Tab DE","enterpriseSaveModal.closeSupertab":"Close Supertab DE","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? DE","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. DE","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? DE","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. DE","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved DE","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. DE","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted DE","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. DE","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab DE","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab DE","enterpriseCommandBar.switchToSupertab":"Switch to Supertab DE","enterpriseCommandBar.goTo":"Go to {{type}} DE","enterpriseCommandBar.viewMore":"View More DE","sidePanel.aiCompanion":"AI Companion DE","sidePanel.newChat":"New Chat DE","sidePanel.toggleSidePanel":"Toggle Side Panel DE","sidePanel.closeSidePanel":"Close Side Panel DE","sidePanel.openAiCompanion":"Open AI Companion DE","contextMenu.quitEnterpriseBrowser":"Quit DE","dock.removeFavorite":"Remove DE"}'),Qa=JSON.parse('{"contextMenu.newWindow":"新しいウィンドウ","contextMenu.newPage":"新しいページ","contextMenu.restore":"最後に保存された変更に戻す","contextMenu.switchWorkspace":"ワークスペースに切り替える","contextMenu.appearance":"外観","contextMenu.saveWorkspace":"ワークスペースを保存","contextMenu.saveWorkspaceAs":"ワークスペースを別名で保存...","contextMenu.renameWorkspace":"ワークスペース名を変更","contextMenu.deleteWorkspace":"ワークスペースを削除","contextMenu.downloads":"ダウンロード","contextMenu.savePage":"ページを保存","contextMenu.savePageAs":"ページを別名で保存...","contextMenu.print":"印刷...","contextMenu.printScreen":"プリントスクリーン","contextMenu.closeWindow":"ウィンドウを閉じる","contextMenu.openStorefront":"ストアフロントを開く","contextMenu.quitPlatform":"プラットフォームを終了する","contextMenu.newView":"新しいビュー","contextMenu.openView":"デフォルトのウェブブラウザーでビューを開く","contextMenu.openViews":"デフォルトのウェブブラウザーでビューを開く","contextMenu.reload":"Reload JP","contextMenu.reloadView":"ビューをリロード","contextMenu.reloadViews":"ビューをリロード","contextMenu.duplicate":"Duplicate JP","contextMenu.duplicateView":"ビューを複製","contextMenu.duplicateViews":"ビューを複製","contextMenu.addView":"ビューをチャネルに追加","contextMenu.addViews":"ビューをチャネルに追加","contextMenu.removeView":"チャネルからビューを削除","contextMenu.removeViews":"チャネルからビューを削除","contextMenu.closeView":"ビューを閉じる","contextMenu.closeViews":"ビューを閉じる","contextMenu.closeTab":"Close Tab JP","contextMenu.duplicatePage":"ページを複製","contextMenu.submenu.print":"印刷","contextMenu.submenu.printAll":"すべてを印刷","saveMenu.saveWorkspaceAs":"ワークスペースを別名で保存","saveMenu.savePageAs":"ページを別名で保存","saveModal.enterValue":"Please enter a value JP","saveModal.alreadyExists":"{{title}}はすでに存在しています。","saveModal.pleaseEnterValidName":"有効な名前を入力してください","saveModal.renamePage":"ページ名を変更","saveModal.closePage":"ページを閉じる","saveModal.discardChanges":"変更を破棄","saveModal.discardAll":"すべて破棄","saveModal.saveAll":"すべて保存","saveModal.savePagesCount":"閉じる前に({{count}})つのページを保存しますか?","defaultPageTitle":"Untitled Page JP","enterpriseDefaultPageTitle":"Untitled Supertab JP","addNewPage":"新しいページを追加","addNewTab":"新しいタブを追加","addNewView":"新しいビュー","restoreModal":"本当に最後に保存された変更に戻しますか?","modal.discardWarning":"保存されていない変更は破棄されます","modal.discardPageWarning":"保存されていないこのページへの変更は失われます。","modal.saveChangesPrompt":"閉じる前に変更を保存しますか?","modal.pageClose":"ページを閉じる","switchWorkspaceModal":"本当に{{workspace}}に切り替えますか?","switchWorkspaceModal.warning":"保存されていない変更は破棄されます","deleteWorkspaceModal":"このワークスペースを永久に削除してもよろしいですか?","replaceWorkspaceModal.warning":"{{workspace}}という名前のワークスペースがすでに存在します。置き換えますか?","replaceWorkspaceModal.warning.body":"同じ名前のワークスペースがすでに存在します。置き換えると、現在の内容は上書きされます。","replaceWorkspaceModal.replace":"置き換える","closePlatform":"プラットフォームを閉じる","closePlatform.workspace":"{{workspace}}プラットフォームを閉じる","closePlatform.warning":"プラットフォームを閉じると、実行中のワークスペース、アプリ、プロセスがすべて閉じます。","back":"戻る","forward":"進む","reload":"リロード","green":"グリーン","purple":"パープル","orange":"オレンジ","red":"レッド","pink":"ピンク","yellow":"イエロー","theme.light":"ライト","theme.dark":"ダーク","theme.system":"OSの設定と同期","toolbar.hideTabs":"タブを非表示","toolbar.showTabs":"タブを表示","toolbar.lock":"ロック","toolbar.unlock":"ロック解除","toolbar.colorLinking":"カラーリンク","toolbar.changeLayout":"レイアウトを変更","toolbar.saveMenu":"メニューを保存","toolbar.maximizeWindow":"ウィンドウを最大化する","toolbar.restoreWindow":"ウィンドウを復元","toolbar.minimizeWindow":"ウィンドウを最小化する","changeLayout.fullWidth":"全幅","changeLayout.columns":"列","changeLayout.Rows":"行","changeLayout.Grid":"グリッド","successIndicator.workspaceSwitched":"ワークスペースが切り替わりました","successIndicator.hidden":"タブが非表示になっています","successIndicator.shown":"タブが表示されています","successIndicator.locked":"ページがロックされています","successIndicator.unlocked":"ページのロックが解除されています","successIndicator.workspaceSaved":"ワークスペースが保存されました","successIndicator.workspaceSavedAs":"ワークスペースが{{workspace}}として保存されました","successIndicator.workspaceRenamed":"ワークスペース名が変更されました","successIndicator.pageSaved":"ページが保存されました","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. JP","successIndicator.pageCopySaved":"ページが{{title}}として保存されました","successIndicator.pageRenamed":"ページ名が変更されました","successIndicator.contextGroupApplied":"コンテキストグループが適用されました","successIndicator.namedContextGroupApplied":"{{colorName}}コンテキストグループが適用されました","successIndicator.viewRemoved":"コンテキストグループからビューが削除されました","successIndicator.viewsRemoved":"コンテキストグループからビューが削除されました","successIndicator.layoutApplied":"{{layoutName}}レイアウトが適用されました","successIndicator.workspaceDeleted":"ワークスペースが削除されました","errorIndicator.pageSaveFailed":"ページを保存できませんでした","errorIndicator.workspaceSaveFailed":"ワークスペースを保存できませんでした","errorIndicator.failedToDuplicatePage":"ページを複製できませんでした","infoIndicator.colorLinkAttempt":"このタブをカラーリンクしようとしましたが、サイト/コンテンツのオーナーがまだこれを有効にしていません","global.cancel":"キャンセル","global.confirm":"確認","global.save":"保存","global.delete":"Delete JP","appResults.header":"Featured content JP","recentlyClosed.header":"Recently Closed JP","landingPage.subheader":"Apps and websites selected by an admin will show here JP","aria.openBrowser":"ブラウザーメニューを開く","aria.browserTabs":"ブラウザータブ","aria.viewTab":"{{title}}のタブを表示","aria.closePage":"{{title}}のページタブボタンを閉じる","aria.closeTab":"{{title}}タブを閉じる","aria.title":"タイトル","aria.closeContextGroup":"エスケープを使用して、コンテキストグループ選択ダイアログを閉じる","aria.colorLinking":"カラーリンクの表示/非表示","aria.applyColorLinking":"カラーリンクを適用するビューを選択してください","aria.assignColorLinkingCurrentView":"現在のビューは{{name}}コンテキストグループに割り当てられています","aria.assignColorLinkingCurrentViews":"現在のビューは{{name}}コンテキストグループに割り当てられています","aria.setColorLinkingActiveView":"アクティブビューを{{name}}コンテキストグループに設定","aria.setColorLinkingActiveViews":"アクティブビューを{{name}}コンテキストグループに設定","aria.escapeLayoutDialog":"エスケープを使用して、レイアウト変更選択ダイアログを閉じる","global.supertab":"Supertab JP","global.tab":"Tab JP","bookmarks.editBookmark":"Edit Bookmark JP","bookmarks.bookmarkAdded":"Bookmark added JP","bookmarks.done":"Done JP","bookmarks.remove":"Remove JP","bookmarks.bookmarksPanel":"Bookmarks Panel JP","bookmarks.bookmarks":"Bookmarks JP","bookmarks.allBookmarks":"All Bookmarks JP","bookmarks.favorites":"Favorites JP","bookmarks.searchBookmarks":"Search Bookmarks JP","bookmarks.clearSearchInput":"Clear Search Input JP","bookmarks.createFolder":"Create New Folder JP","bookmarks.exitFolder":"Exit Folder JP","bookmarks.newFolder":"New Folder JP","bookmarks.namedFolder":"{{name}} Folder JP","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings JP","bookmarks.folderSettings":"{{name}} Folder Settings JP","bookmarks.noResultsFound":"No results found JP","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search JP","bookmarks.nothingToShow":"Nothing to show yet JP","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder JP","bookmarks.resultsFoundIn":"Results found in {{name}} JP","bookmarks.resultsInOtherFolders":"Results found in other folders JP","bookmarks.allResultsFoundIn":"All results found in JP","bookmarks.editName":"Edit Name JP","bookmarks.move":"Move JP","bookmarks.bookmarkAddedTitle":"Bookmark Added JP","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" JP","bookmarks.bookmarkEditedTitle":"Bookmark Edited JP","enterpriseContextMenu.saveSupertab":"Save Supertab JP","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... JP","enterpriseContextMenu.duplicate":"Duplicate JP","enterpriseContextMenu.deleteSupertab":"Delete Supertab JP","enterpriseContextMenu.newTab":"New Tab JP","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As JP","enterpriseSaveModal.renameSupertab":"Rename JP","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. JP","enterpriseSaveModal.closeTab":"Close Tab JP","enterpriseSaveModal.closeSupertab":"Close Supertab JP","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? JP","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. JP","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? JP","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. JP","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved JP","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. JP","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted JP","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. JP","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab JP","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab JP","enterpriseCommandBar.switchToSupertab":"Switch to Supertab JP","enterpriseCommandBar.goTo":"Go to {{type}} JP","enterpriseCommandBar.viewMore":"View More JP","sidePanel.aiCompanion":"AI Companion JP","sidePanel.newChat":"New Chat JP","sidePanel.toggleSidePanel":"Toggle Side Panel JP","sidePanel.closeSidePanel":"Close Side Panel JP","sidePanel.openAiCompanion":"Open AI Companion JP","contextMenu.quitEnterpriseBrowser":"Quit JP","dock.removeFavorite":"Remove JP"}'),Ya=JSON.parse('{"contextMenu.newWindow":"새 창","contextMenu.newPage":"새 페이지","contextMenu.restore":"마지막으로 저장한 변경 사항으로 복원","contextMenu.switchWorkspace":"작업 공간 전환","contextMenu.appearance":"모양","contextMenu.saveWorkspace":"작업 공간 저장","contextMenu.saveWorkspaceAs":"다른 이름으로 작업 공간 저장...","contextMenu.renameWorkspace":"작업 공간 이름 바꾸기","contextMenu.deleteWorkspace":"작업 공간 삭제","contextMenu.downloads":"다운로드","contextMenu.savePage":"페이지 저장","contextMenu.savePageAs":"다른 이름으로 페이지 저장...","contextMenu.print":"인쇄...","contextMenu.printScreen":"화면 인쇄","contextMenu.closeWindow":"창 닫기","contextMenu.openStorefront":"매장 열기","contextMenu.quitPlatform":"플랫폼 종료","contextMenu.newView":"새 뷰","contextMenu.openView":"기본 웹 브라우저로 뷰 열기","contextMenu.openViews":"기본 웹 브라우저로 뷰 열기","contextMenu.reload":"Reload KR","contextMenu.reloadView":"뷰 다시 로드","contextMenu.reloadViews":"뷰 다시 로드","contextMenu.duplicate":"Duplicate KR","contextMenu.duplicateView":"뷰 복제","contextMenu.duplicateViews":"뷰 복제","contextMenu.addView":"채널에 뷰 추가","contextMenu.addViews":"채널에 뷰 추가","contextMenu.removeView":"채널에서 뷰 제거","contextMenu.removeViews":"채널에서 뷰 제거","contextMenu.closeView":"뷰 닫기","contextMenu.closeViews":"뷰 닫기","contextMenu.closeTab":"Close Tab KR","contextMenu.duplicatePage":"페이지 복제","contextMenu.submenu.print":"인쇄","contextMenu.submenu.printAll":"모두 인쇄","saveMenu.saveWorkspaceAs":"다른 이름으로 작업 공간 저장","saveMenu.savePageAs":"다른 이름으로 페이지 저장","saveModal.enterValue":"Please enter a value KR","saveModal.alreadyExists":"{{title}}이(가) 이미 존재합니다.","saveModal.pleaseEnterValidName":"유효한 이름을 입력하십시오.","saveModal.renamePage":"페이지 이름 바꾸기","saveModal.closePage":"페이지 닫기","saveModal.discardChanges":"변경 사항 폐기","saveModal.discardAll":"모두 폐기","saveModal.saveAll":"모두 저장","saveModal.savePagesCount":"닫기 전에 페이지({{count}}개)를 저장하시겠습니까?","defaultPageTitle":"Untitled Page KR","enterpriseDefaultPageTitle":"Untitled Supertab KR","addNewPage":"새 페이지 추가","addNewTab":"새 탭 추가","addNewView":"새 뷰","restoreModal":"마지막으로 저장한 변경 사항으로 복원하시겠습니까?","modal.discardWarning":"저장하지 않은 변경 사항은 모두 폐기됩니다","modal.discardPageWarning":"이 페이지의 저장하지 않은 변경 사항은 모두 손실됩니다.","modal.saveChangesPrompt":"닫기 전에 변경 사항을 저장하시겠습니까?","modal.pageClose":"페이지 닫기","switchWorkspaceModal":"{{workspace}}(으)로 전환하시겠습니까?","switchWorkspaceModal.warning":"저장하지 않은 변경 사항은 모두 폐기됩니다","deleteWorkspaceModal":"이 작업 공간을 영구적으로 삭제하시겠습니까?","replaceWorkspaceModal.warning":"{{workspace}}(이)라는 이름의 작업 공간이 이미 존재합니다. 교체하시겠습니까?","replaceWorkspaceModal.warning.body":"같은 이름의 작업 공간이 이미 존재합니다. 교체하면 현재 내용을 덮어쓰게 됩니다.","replaceWorkspaceModal.replace":"교체","closePlatform":"플랫폼 닫기","closePlatform.workspace":"{{workspace}} 플랫폼 닫기","closePlatform.warning":"플랫폼을 닫으면 실행 중인 모든 작업 공간, 앱 또는 프로세스가 닫힙니다.","back":"뒤로 가기","forward":"앞으로 가기","reload":"새로고침","green":"녹색","purple":"보라색","orange":"오렌지색","red":"빨간색","pink":"핑크색","yellow":"노란색","theme.light":"밝은","theme.dark":"어두운","theme.system":"OS 설정과 동기화","toolbar.hideTabs":"탭 숨기기","toolbar.showTabs":"탭 표시","toolbar.lock":"잠금","toolbar.unlock":"잠금 해제","toolbar.colorLinking":"색상 연결","toolbar.changeLayout":"레이아웃 변경","toolbar.saveMenu":"저장 메뉴","toolbar.maximizeWindow":"창 최대화","toolbar.restoreWindow":"창 복원","toolbar.minimizeWindow":"창 최소화","changeLayout.fullWidth":"전체 너비","changeLayout.columns":"열","changeLayout.Rows":"행","changeLayout.Grid":"그리드","successIndicator.workspaceSwitched":"작업 공간 전환","successIndicator.hidden":"탭 숨김","successIndicator.shown":"탭 표시","successIndicator.locked":"페이지 잠금","successIndicator.unlocked":"페이지 잠금 해제됨","successIndicator.workspaceSaved":"작업 공간 저장됨","successIndicator.workspaceSavedAs":"작업 공간이 {{workspace}}(으)로 저장됨","successIndicator.workspaceRenamed":"작업 공간 이름 변경됨","successIndicator.pageSaved":"페이지 저장됨","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. KR","successIndicator.pageCopySaved":"페이지가 {{title}}(으)로 저장됨","successIndicator.pageRenamed":"페이지 이름 변경됨","successIndicator.contextGroupApplied":"컨텍스트 그룹 적용됨","successIndicator.namedContextGroupApplied":"{{colorName}} 컨텍스트 그룹 적용됨","successIndicator.viewRemoved":"컨텍스트 그룹에서 뷰 제거됨","successIndicator.viewsRemoved":"컨텍스트 그룹에서 뷰 제거됨","successIndicator.layoutApplied":"{{layoutName}} 레이아웃 적용됨","successIndicator.workspaceDeleted":"작업 공간 삭제됨","errorIndicator.pageSaveFailed":"페이지 저장 실패","errorIndicator.workspaceSaveFailed":"작업 공간 저장 실패","errorIndicator.failedToDuplicatePage":"페이지 복제 실패","infoIndicator.colorLinkAttempt":"이 탭의 색상 링크를 시도했지만 사이트/콘텐츠 소유자가 아직 활성화하지 않았습니다.","global.cancel":"취소","global.confirm":"확인","global.save":"저장","global.delete":"Delete KR","appResults.header":"Featured Content KR","recentlyClosed.header":"Recently Closed KR","landingPage.subheader":"Apps and websites selected by an admin will show here KR","aria.openBrowser":"브라우저 메뉴 열기","aria.browserTabs":"브라우저 탭","aria.viewTab":"{{title}}의 뷰 탭","aria.closePage":"{{title}}의 페이지 닫기 탭","aria.closeTab":"탭 {{title}} 닫기","aria.title":"제목","aria.closeContextGroup":"이스케이프를 사용하여 컨텍스트 그룹 선택 대화상자 닫기","aria.colorLinking":"색상 연결 표시 또는 숨기기","aria.applyColorLinking":"색상 연결을 적용하려면 뷰를 선택하십시오.","aria.assignColorLinkingCurrentView":"{{name}} 컨텍스트 그룹에 할당된 현재 뷰","aria.assignColorLinkingCurrentViews":"{{name}} 컨텍스트 그룹에 할당된 현재 뷰","aria.setColorLinkingActiveView":"활성 뷰를 {{name}} 컨텍스트 그룹으로 설정","aria.setColorLinkingActiveViews":"활성 뷰를 {{name}} 컨텍스트 그룹으로 설정","aria.escapeLayoutDialog":"이스케이프를 사용하여 레이아웃 변경 대화상자 닫기","global.supertab":"Supertab KR","global.tab":"Tab KR","bookmarks.editBookmark":"Edit Bookmark KR","bookmarks.bookmarkAdded":"Bookmark added KR","bookmarks.done":"Done KR","bookmarks.remove":"Remove KR","bookmarks.bookmarksPanel":"Bookmarks Panel KR","bookmarks.bookmarks":"Bookmarks KR","bookmarks.allBookmarks":"All Bookmarks KR","bookmarks.favorites":"Favorites KR","bookmarks.searchBookmarks":"Search Bookmarks KR","bookmarks.clearSearchInput":"Clear Search Input KR","bookmarks.createFolder":"Create New Folder KR","bookmarks.exitFolder":"Exit Folder KR","bookmarks.newFolder":"New Folder KR","bookmarks.namedFolder":"{{name}} Folder KR","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings KR","bookmarks.folderSettings":"{{name}} Folder Settings KR","bookmarks.noResultsFound":"No results found KR","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search KR","bookmarks.nothingToShow":"Nothing to show yet KR","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder KR","bookmarks.resultsFoundIn":"Results found in {{name}} KR","bookmarks.resultsInOtherFolders":"Results found in other folders KR","bookmarks.allResultsFoundIn":"All results found in KR","bookmarks.editName":"Edit Name KR","bookmarks.move":"Move KR","bookmarks.bookmarkAddedTitle":"Bookmark Added KR","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" KR","bookmarks.bookmarkEditedTitle":"Bookmark Edited KR","enterpriseContextMenu.saveSupertab":"Save Supertab KR","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... KR","enterpriseContextMenu.duplicate":"Duplicate KR","enterpriseContextMenu.deleteSupertab":"Delete Supertab KR","enterpriseContextMenu.newTab":"New Tab KR","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As KR","enterpriseSaveModal.renameSupertab":"Rename KR","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. KR","enterpriseSaveModal.closeTab":"Close Tab KR","enterpriseSaveModal.closeSupertab":"Close Supertab KR","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? KR","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. KR","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? KR","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. KR","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved KR","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. KR","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted KR","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. KR","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab KR","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab KR","enterpriseCommandBar.switchToSupertab":"Switch to Supertab KR","enterpriseCommandBar.goTo":"Go to {{type}} KR","enterpriseCommandBar.viewMore":"View More KR","sidePanel.aiCompanion":"AI Companion KR","sidePanel.newChat":"New Chat KR","sidePanel.toggleSidePanel":"Toggle Side Panel KR","sidePanel.closeSidePanel":"Close Side Panel KR","sidePanel.openAiCompanion":"Open AI Companion KR","contextMenu.quitEnterpriseBrowser":"Quit KR","dock.removeFavorite":"Remove KR"}'),Xa=JSON.parse('{"contextMenu.newWindow":"Новое окно","contextMenu.newPage":"Новая страница","contextMenu.restore":"Восстановить последние сохраненные изменения","contextMenu.switchWorkspace":"Переключить рабочую область","contextMenu.appearance":"Внешний вид","contextMenu.saveWorkspace":"Сохранить рабочую область","contextMenu.saveWorkspaceAs":"Сохранить рабочую область как...","contextMenu.renameWorkspace":"Переименовать рабочую область","contextMenu.deleteWorkspace":"Удалить рабочую область","contextMenu.downloads":"Загрузки","contextMenu.savePage":"Сохранить страницу","contextMenu.savePageAs":"Сохранить страницу как...","contextMenu.print":"Печать...","contextMenu.printScreen":"Распечатать экран","contextMenu.closeWindow":"Закрыть окно","contextMenu.openStorefront":"Открыть Storefront","contextMenu.quitPlatform":"Выйти из платформы","contextMenu.newView":"Новое представление","contextMenu.openView":"Открыть представление с помощью веб-браузера по умолчанию","contextMenu.openViews":"Открыть представления с помощью веб-браузера по умолчанию","contextMenu.reload":"Reload RU","contextMenu.reloadView":"Перезагрузить представление","contextMenu.reloadViews":"Перезагрузить представления","contextMenu.duplicate":"Duplicate RU","contextMenu.duplicateView":"Дублировать представление","contextMenu.duplicateViews":"Дублировать представления","contextMenu.addView":"Добавить представление на канал","contextMenu.addViews":"Добавить представления на канал","contextMenu.removeView":"Удалить представление из канала","contextMenu.removeViews":"Удалить представления из канала","contextMenu.closeView":"Закрыть представление","contextMenu.closeViews":"Закрыть представления","contextMenu.closeTab":"Close Tab RU","contextMenu.duplicatePage":"Дублировать страницу","contextMenu.submenu.print":"Печатать","contextMenu.submenu.printAll":"Печатать все","saveMenu.saveWorkspaceAs":"Сохранить рабочую область как","saveMenu.savePageAs":"Сохранить страницу как","saveModal.enterValue":"Please enter a value RU","saveModal.alreadyExists":"{{title}} уже существует.","saveModal.pleaseEnterValidName":"Введите подходящее имя","saveModal.renamePage":"Переименовать страницу","saveModal.closePage":"Закрыть страницу","saveModal.discardChanges":"Отменить изменения","saveModal.discardAll":"Отменить все","saveModal.saveAll":"Сохранить все","saveModal.savePagesCount":"Сохранить ({{count}}) страниц перед закрытием?","defaultPageTitle":"Untitled Page RU","enterpriseDefaultPageTitle":"Untitled Supertab RU","addNewPage":"Добавить новую страницу","addNewTab":"Добавить новую вкладку","addNewView":"Новое представление","restoreModal":"Вы уверены, что хотите восстановить последние сохраненные изменения?","modal.discardWarning":"Все несохраненные изменения будут отменены","modal.discardPageWarning":"Все несохраненные изменения на этой странице будут потеряны.","modal.saveChangesPrompt":"Сохранить изменения перед закрытием?","modal.pageClose":"Закрыть страницу","switchWorkspaceModal":"Вы уверены, что хотите перейти в {{workspace}}?","switchWorkspaceModal.warning":"Все несохраненные изменения будут отменены","deleteWorkspaceModal":"Вы уверены, что хотите навсегда удалить эту рабочую область?","replaceWorkspaceModal.warning":"Рабочая область с именем {{workspace}} уже существует. Вы хотите заменить ее?","replaceWorkspaceModal.warning.body":"Рабочая область с таким же именем уже существует. При ее замене текущее содержимое будет перезаписано.","replaceWorkspaceModal.replace":"Заменить","closePlatform":"Закрыть платформу","closePlatform.workspace":"Закрыть платформу {{workspace}}","closePlatform.warning":"Закрытие платформы приведет к закрытию всех рабочих областей, приложений и запущенных процессов.","back":"Назад","forward":"Вперед","reload":"Перезагрузить ","green":"Зеленый","purple":"Фиолетовый","orange":"Оранжевый","red":"Красный","pink":"Розовый","yellow":"Желтый","theme.light":"Светлый","theme.dark":"Темный","theme.system":"Синхронизировать с настройками ОС","toolbar.hideTabs":"Скрыть вкладки","toolbar.showTabs":"Показать вкладки","toolbar.lock":"Заблокировать","toolbar.unlock":"Разблокировать","toolbar.colorLinking":"Привязка к цвету","toolbar.changeLayout":"Изменить макет","toolbar.saveMenu":"Меню сохранения","toolbar.maximizeWindow":"Увеличить окно","toolbar.restoreWindow":"Восстановить окно","toolbar.minimizeWindow":"Свернуть окно","changeLayout.fullWidth":"Полная ширина","changeLayout.columns":"Столбцы","changeLayout.Rows":"Строки","changeLayout.Grid":"Сетка","successIndicator.workspaceSwitched":"Рабочая область переключена","successIndicator.hidden":"Вкладки скрыты","successIndicator.shown":"Вкладки показаны","successIndicator.locked":"Страница заблокирована","successIndicator.unlocked":"Страница разблокирована","successIndicator.workspaceSaved":"Рабочая область сохранена","successIndicator.workspaceSavedAs":"Рабочая область сохранена как {{workspace}}","successIndicator.workspaceRenamed":"Рабочая область переименована","successIndicator.pageSaved":"Страница сохранена","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. RU","successIndicator.pageCopySaved":"Страница сохранена как {{title}}","successIndicator.pageRenamed":"Страница переименована","successIndicator.contextGroupApplied":"Контекстная группа применена","successIndicator.namedContextGroupApplied":"Контекстная группа {{colorName}} применена","successIndicator.viewRemoved":"Представление удалено из контекстной группы","successIndicator.viewsRemoved":"Представления удалены из контекстной группы","successIndicator.layoutApplied":"Макет {{layoutName}} применен","successIndicator.workspaceDeleted":"Рабочая область удалена","errorIndicator.pageSaveFailed":"Не удалось сохранить страницу","errorIndicator.workspaceSaveFailed":"Не удалось сохранить рабочую область","errorIndicator.failedToDuplicatePage":"Не удалось продублировать страницу","infoIndicator.colorLinkAttempt":"Мы попытались привязать цвет к этой вкладке, но владелец сайта/контента еще не включил эту возможность","global.cancel":"Отменить","global.confirm":"Подтвердить","global.save":"Сохранить","global.delete":"Delete RU","appResults.header":"Featured Content RU","recentlyClosed.header":"Recently Closed RU","landingPage.subheader":"Apps and websites selected by an admin will show here RU","aria.openBrowser":"Открыть меню браузера","aria.browserTabs":"Вкладки браузера","aria.viewTab":"Вкладка представления {{title}}","aria.closePage":"Кнопка «Закрыть» на вкладке для страницы {{title}}","aria.closeTab":"Закрыть вкладку {{title}}","aria.title":"Название","aria.closeContextGroup":"Чтобы закрыть диалог выбора контекстной группы, используйте escape","aria.colorLinking":"Показать или скрыть привязку к цвету","aria.applyColorLinking":"Выберите представление, чтобы применить привязку к цвету","aria.assignColorLinkingCurrentView":"Текущее представление, назначенное контекстной группе {{name}}","aria.assignColorLinkingCurrentViews":"Текущие представления, назначенные контекстной группе {{name}}","aria.setColorLinkingActiveView":"Установить активное представление в контекстную группу {{name}}","aria.setColorLinkingActiveViews":"Установить активные представления в контекстную группу {{name}}","aria.escapeLayoutDialog":"Чтобы закрыть диалог изменения макета, используйте escape","global.supertab":"Supertab RU","global.tab":"Tab RU","bookmarks.editBookmark":"Edit Bookmark RU","bookmarks.bookmarkAdded":"Bookmark added RU","bookmarks.done":"Done RU","bookmarks.remove":"Remove RU","bookmarks.bookmarksPanel":"Bookmarks Panel RU","bookmarks.bookmarks":"Bookmarks RU","bookmarks.allBookmarks":"All Bookmarks RU","bookmarks.favorites":"Favorites RU","bookmarks.searchBookmarks":"Search Bookmarks RU","bookmarks.clearSearchInput":"Clear Search Input RU","bookmarks.createFolder":"Create New Folder RU","bookmarks.exitFolder":"Exit Folder RU","bookmarks.newFolder":"New Folder RU","bookmarks.namedFolder":"{{name}} Folder RU","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings RU","bookmarks.folderSettings":"{{name}} Folder Settings RU","bookmarks.noResultsFound":"No results found RU","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search RU","bookmarks.nothingToShow":"Nothing to show yet RU","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder RU","bookmarks.resultsFoundIn":"Results found in {{name}} RU","bookmarks.resultsInOtherFolders":"Results found in other folders RU","bookmarks.allResultsFoundIn":"All results found in RU","bookmarks.editName":"Edit Name RU","bookmarks.move":"Move RU","bookmarks.bookmarkAddedTitle":"Bookmark Added RU","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" RU","bookmarks.bookmarkEditedTitle":"Bookmark Edited RU","enterpriseContextMenu.saveSupertab":"Save Supertab RU","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... RU","enterpriseContextMenu.duplicate":"Duplicate RU","enterpriseContextMenu.deleteSupertab":"Delete Supertab RU","enterpriseContextMenu.newTab":"New Tab RU","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As RU","enterpriseSaveModal.renameSupertab":"Rename RU","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. RU","enterpriseSaveModal.closeTab":"Close Tab RU","enterpriseSaveModal.closeSupertab":"Close Supertab RU","enterpriseSaveModal.saveSupertabCount":"Save {{count}} Supertabs before closing? RU","enterpriseModal.discardSupertabWarning":"Any unsaved changes to this Supertab will be lost. RU","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? RU","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. RU","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved RU","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved.RU","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted RU","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. RU","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab RU","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab RU","enterpriseCommandBar.switchToSupertab":"Switch to Supertab RU","enterpriseCommandBar.goTo":"Go to {{type}} RU","enterpriseCommandBar.viewMore":"View More RU","sidePanel.aiCompanion":"AI Companion RU","sidePanel.newChat":"New Chat RU","sidePanel.toggleSidePanel":"Toggle Side Panel RU","sidePanel.closeSidePanel":"Close Side Panel RU","sidePanel.openAiCompanion":"Open AI Companion RU","contextMenu.quitEnterpriseBrowser":"Quit RU","dock.removeFavorite":"Remove"}');const en=za().t,tn=async e=>{const t=await qt(e);return await t.dispatch(aa.GetPages)},an=async e=>(await qt(e.identity)).dispatch(aa.UpdatePageForWindow,e);let nn,on=!1;const rn=()=>on,sn=()=>nn||{enabled:!1};async function cn(e,t){const a=!!t;let n=new Set;if(a){const{identity:e,pageId:a}=t,o=Ra().Browser.wrapSync(e),r=await o.getPage(a);r?.panels&&(n=new Set(r.panels.map((({viewOptions:e})=>e.name))))}return e.map((e=>{const t=e.viewOptions.name,o=t?.startsWith(Ea);o&&(!a||a&&!n.has(t))&&delete e.viewOptions.name;const r=(i=e.viewOptions,i.name||=`${Ea}${Bt()}`,i);var i;return{...e,viewOptions:{...r,uuid:we.uuid}}}))}async function ln(e){for(const t of e)t.panels&&await un(t.panels)}const dn=e=>null!==e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&/ERR_([A-Z]+_*)+/.test(e.message);async function un(e){const t=e.map((e=>fin.Platform.getCurrentSync().createView(e.viewOptions,fin.me.identity).catch((e=>{if(!dn(e))throw e;console.error(e)}))));return await Promise.all(t)}const pn=(e,t)=>!t.find((t=>t===e)),wn=(e,t)=>`${e} (${t})`,gn=(e,t)=>{if(pn(e,t))return e;let a=1;const n=e.replace(/ *\(\d+\)$/,"");for(;!pn(wn(n,a),t);)a+=1;return wn(n,a)},hn=async()=>{const e=await be();return(await Promise.all(e.map((async e=>{try{return tn(e.identity)}catch(t){JSON.stringify(e.identity);const a=await e.getOptions();return a.workspacePlatform?.pages||[]}})))).reduce(((e,t)=>e.concat(t)),[])},mn=async()=>(await wt(we)).dispatch(dt.GetSavedPages,void 0),kn=async e=>(await wt(we)).dispatch(dt.GetSavedPage,e),bn=async(e,t)=>{const a=await(async e=>(await hn()).find((t=>t.pageId===e)))(e);return!a||a.title===t.title&&e===t.pageId||await an({identity:a.parentIdentity,pageId:e,page:{pageId:t.pageId,title:t.title}}),a},yn=async({page:e})=>{await bn(e.pageId,e),await(async e=>(await wt(we)).dispatch(dt.CreateSavedPage,e))({page:e})},fn=async e=>{await kn(e)&&await(async e=>(await wt(we)).dispatch(dt.DeleteSavedPage,e))(e)},Sn=async({pageId:e,page:t})=>{await bn(e,t);return await(async e=>(await wt(we)).dispatch(dt.UpdateSavedPage,e))({pageId:e,page:t})},vn=async e=>await kn(e.pageId)?Sn({pageId:e.pageId,page:e}):yn({page:e}),Pn=async e=>{await(async e=>(await qt(e.identity)).dispatch(aa.AttachPagesToWindow,e))(e)},Cn=async e=>{const t={...e.page,panels:e.page.panels&&await cn(e.page.panels,e)};t.panels&&await un(t.panels),await an({...e,page:t})},Mn=async e=>{await(async e=>(await qt(e.identity)).dispatch(aa.DetachPagesFromWindow,e))(e)},xn=async e=>{await(async e=>(await qt(e.identity)).dispatch(aa.SetActivePageForWindow,e))(e)},In=e=>tn(e),An=async({identity:e,pageId:t})=>(await In(e)).find((e=>e.pageId===t)),Wn=async e=>{await(async e=>(await qt(e.identity)).dispatch(aa.ReorderPagesForWindow,e))(e)},Dn=new class{constructor(){this.queue=[],this.locked=!1}lock(){return new Promise((e=>{this.locked?this.queue.push(e):(this.locked=!0,e())}))}unlock(){if(this.queue.length>0){const e=this.queue.shift();e&&e()}else this.locked=!1}};async function Rn(e){await Dn.lock();try{const t=rn()?en("enterpriseDefaultPageTitle"):en("defaultPageTitle"),a=e??t,[n,o]=await Promise.all([mn(),hn()]),r=[...n,...o].map((({title:e})=>e));return gn(a,r)}finally{Dn.unlock()}}async function Tn({page:e}){return{shouldShowModal:!(!e||!e.hasUnsavedChanges)}}async function Bn({page:e,identity:t}){const a=fin.Application.getCurrentSync();if((await a.getInfo()).initialOptions.enableBeforeUnload){const a=Oa(e.layout.content).filter((e=>e.name)).map((e=>fin.View.wrapSync({name:e.name,uuid:t.uuid}))),n=await this.checkViewsForPreventUnload(a);if(n.viewsPreventingUnload.length>0){if((await this.getUserDecisionForBeforeUnload({...n,windowId:t,windowShouldClose:!1,closeType:"page"})).viewsToClose.length!==a.length)return e.pageId,{shouldPageClose:!1}}}return{shouldPageClose:!0}}async function En({pages:e,identity:t}){const a=await Promise.all(e.map((e=>this.shouldPageClose({page:e,closeType:"window",identity:t})))),{pagesPreventingClose:n,pagesNotPreventingClose:o}=e.reduce(((e,t,n)=>!a[n].shouldPageClose?{pagesNotPreventingClose:e.pagesNotPreventingClose,pagesPreventingClose:[...e.pagesPreventingClose,t]}:{pagesPreventingClose:e.pagesPreventingClose,pagesNotPreventingClose:[...e.pagesNotPreventingClose,t]}),{pagesPreventingClose:[],pagesNotPreventingClose:[]});return this.handlePagesAndWindowClose({pagesNotPreventingClose:o,pagesPreventingClose:n,identity:t})}async function Fn({pagesPreventingClose:e,pagesNotPreventingClose:t,identity:a}){return{shouldWindowClose:0===e.length}}async function Vn({page:e}){return Gt(e)}async function Nn(e){return{hasUnsavedChanges:!0}}const Ln=async()=>{const e=Ra(),t=(await be()).map((t=>e.Browser.wrapSync(t.identity)));await Promise.all(t.map((async e=>{const t=await e.getPages();await Promise.all(t.map((async t=>{t.title,await e.updatePage({pageId:t.pageId,page:{hasUnsavedChanges:!1}}),t.pageId,t.title,await vn({...t,hasUnsavedChanges:!1})})))})))},_n=new Map,On=()=>_n,Un=e=>_n.delete(e);let Gn=!1;const Hn=()=>{Gn||(Gn=!0,fin.Window.wrapSync(he).once("closed",(()=>{Gn=!1,(async(e,t)=>{await Ke($e(e),{source:"Store",...t})})(fin.me.identity,{type:"Navigation",action:"Close Store",skipValueHashing:!0})})))};let $n,Kn,zn;const Jn=async()=>(void 0===zn&&(zn=!!(await Q()).disableOpenFinAnalytics),zn);async function Zn(e){e.forEach((e=>{var t,a;"Page"===e.type?"Open Page"===e.action?(t=e.data.uuid,a=e,_n.set(t,a)):"Close Page"===e.action&&Un(e.data.uuid):"Store"===e.source&&"Close"!==e.action&&Hn()})),await(async e=>{$n?.sendToOpenFin&&(await Jn()||e.forEach((async e=>{const t=Wt({},e);t.entityId&&(t.entityId.uuid=await It(t.entityId.uuid),t.entityId.name=await It(t.entityId.name)),!e.skipValueHashing&&"value"in t&&(t.value=await It(t.value)),Kn(t)})))})(e);const t=e.map((({skipValueHashing:e,...t})=>t));this.handleAnalytics(t)}const qn=async e=>{$n=e;$n?.sendToOpenFin&&!await Jn()&&(()=>{const e=N,t=e+K.Analytics,a=document.createElement("IFRAME");a.setAttribute("src",t),a.setAttribute("style","width: 0px !important"),a.setAttribute("style","height: 0px !important"),a.setAttribute("style","display: none !important"),document.body.appendChild(a),Kn=async t=>{a.contentWindow.postMessage(t,e)}})();const t=fin.Application.getCurrentSync();t.addListener("view-created",(async e=>{var t;ze({type:"View",action:"Open View",value:e.viewIdentity.name,data:{uuid:e.viewIdentity.uuid,url:await(t=e.viewIdentity,fin.View.wrapSync(t).getInfo().then((e=>e.url)))}})})),t.addListener("view-destroyed",(async e=>{ze({type:"View",action:"Close View",value:e.viewIdentity.name,data:{uuid:e.viewIdentity.uuid}})})),t.addListener("window-closed",(e=>{e.name.startsWith(de.BrowserMenu)||(ze({type:"Window",action:"Close Window",value:e.name,data:{uuid:e.uuid}}),(async()=>{const e=On(),t=await hn();if(t.length===e.size)return;const a=t.reduce(((e,t)=>e.set(t.pageId,1)),new Map);for(const[t,n]of e)a.has(t)||(n.action="Close Page",ze(n),Un(t))})())}))},jn=Me({alwaysOnTop:!0,autoShow:!1,frame:!1,resizable:!1,showTaskbarIcon:!1});const Qn="browser",Yn=function(e=jn){const t=new Map;return async(a,n,o,r,i)=>{if(t.has(a)){const{currentUrl:e,currentName:o}=t.get(a);if(e===n)return;const r=fin.Window.wrapSync({uuid:fin.me.uuid,name:o});await r.close()}const s=`${de.HomeInternal}-${Date.now()}${Math.random()}`;t.set(a,{currentUrl:n,currentName:s});const c=`New ${r} indicator: ${o} ${i}`,l=await fin.Platform.getCurrentSync().createWindow({...e,name:s,url:n});((e,t)=>{const a=document.createElement("div");a.setAttribute("role","alert"),a.setAttribute("aria-live",t||"polite"),(e=>{e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.padding="0",e.style.margin="-1px",e.style.overflow="hidden",e.style.whiteSpace="nowrap",e.style.border="0"})(a),document.body.appendChild(a),setTimeout((()=>{a.innerHTML=e}),300),setTimeout((()=>{document.body.removeChild(a)}),1e3)})(c),l.once("closed",(()=>{t.delete(a)}))}}();async function Xn(e,t,a,n,o,r){if(a&&fin.me.name!==a){const i={type:e,message:t,parentBrowserName:a,secondaryMessage:n,icon:o,isEnterprise:r};return(await qt({uuid:fin.me.uuid,name:a})).dispatch(aa.ShowBrowserIndicator,i)}const i=new URLSearchParams;if(i.append("type",e),i.append("message",t),i.append("parentName",a||""),i.append("secondaryMessage",n||""),i.append("icon",o||""),i.append("isEnterprise",`${r}`||""),a){const e=pe(a?{uuid:T,name:a}:void 0),t=ve(await e.getBounds());i.append("parentBounds",t)}const s=`${(r?await ae():await te())+K.BrowserIndicator}#${i.toString()}`;return Yn(Qn+a,s,t,e,n)}async function eo(e,t,a,n){const o=await We(t);return Xn("success",e,t.name,a,n,o)}const to=async(e=we)=>{const{workspacePlatform:t}=await pe(e).getOptions(),a=t?.newPageUrl,n=t?.newTabUrl;return{newPageUrl:a,newTabUrl:n}},ao=async(e=we)=>{const t=await We(e)||rn(),a=t?null:await Ra().Browser.getUniquePageTitle();let n;if(e&&await ke(e))n=await(async(e,t=we)=>{const{newPageUrl:a}=await to(t);if(!a)throw new Error("Trying to create a new page without a newPageUrl set");return Ua(e,a,t)})(a,e);else if(t){const e=await ne();n=await Ua(a,e)}t&&(n.settings=n.settings??{},n.dimensions=n.dimensions??{},n.settings.hasHeaders=!1,n.settings.reorderEnabled=!0,n.dimensions.headerHeight=0);const o=await Ut(a,n);return t&&(o.hasUnsavedChanges=!1),o};var no;!function(e){e.Home="/home",e.Browser="/browser",e.Enterprise="/enterprise",e.Provider="/provider",e.Storefront="/storefront",e.Dock="/dock"}(no||(no={}));function oo(e,t){return async(a,...n)=>{e.has(a)&&e.get(a).forEach((e=>e(...n))),t&&await t({event:a,payload:n})}}function ro(e,t){return t&&t((t=>{const{event:a,payload:n}=t;e.has(a)&&e.get(a).forEach((e=>e(...n)))})),(t,a)=>{e.has(t)||e.set(t,new Set),e.get(t).add(a)}}function io(e){return(t,a)=>{e.has(t)||e.set(t,new Set);const n=e.get(t),o=(...e)=>{a(...e),n.delete(o)};n.add(o)}}function so(e){return(t,a)=>{e.has(t)&&e.get(t).delete(a)}}const co={name:de.BrowserMenu,alwaysOnTop:!0,autoShow:!0,frame:!1,resizable:!1,backgroundColor:"#2f3136",smallWindow:!0,showTaskbarIcon:!1,backgroundThrottling:!1,saveWindowState:!1};function lo(e){const t={...co,...e};return t.url=function(e,t){if(!W)throw new Error("resolveAbsolutePath can only be used in a window");const a=t??window.location;if(/^(?:[a-z]+:)?\/\//i.test(e))return e;const n=`${a.protocol}//${a.hostname}`;return new URL(e,n).href}(t.url??""),t}const uo=function(e){const t=new Map;return{emit:oo(t,(t=>A&&fin.InterApplicationBus.publish(e,t))),addListener:ro(t,(t=>A&&fin.InterApplicationBus.subscribe({uuid:fin.me.uuid},e,t))),addListenerWithUUID:a=>ro(t,(t=>A&&fin.InterApplicationBus.subscribe({uuid:a},e,t))),removeListener:so(t),once:io(t)}}("window.menu"),po=(e,t)=>fin.Window.wrapSync(e).updateOptions({opacity:t}),wo=e=>uo.emit("response",e),go=Be((()=>le().getChildWindows()),500);const ho=new Map;async function mo(e,t){const a=lo(e),n={top:a.top,left:a.left,width:a.defaultWidth||a.width,height:a.defaultHeight||a.height};return t.set("parentName",fin.Window.getCurrentSync().identity.name),{name:a.name,bounds:n,route:`${a.url}#${t.toString()}`}}async function ko({options:e,parameters:t}){const a=t??new URLSearchParams,n=lo(e),{name:o,modalParentIdentity:r}=n;if(!a.has("isEnterprise")){const e=`${await(async e=>(Re||(Re=await We(e)),Re))(r)}`;a.set("isEnterprise",e)}let i=await async function(e){return(await go()).find((t=>t.identity.name===e))}(o);if(i)await async function(e,t){const{name:a,bounds:n,route:o}=await mo(e,t),r={uuid:fin.me.identity.uuid,name:a},i=fin.Window.wrapSync(r);await Promise.all([po(r,0),i.setBounds(n)]),e.preventBlur||i.once("blurred",(()=>{po(r,0),i.hide(),wo({name:r.name,data:{actionName:"Cancel"}})})),uo.emit("update",a,n,o),await wo({name:a,data:{actionName:"Cancel"}})}(n,a);else{const{route:t,bounds:o}=await mo(e,a);i=await async function(e,t,a){const n=lo(e),o=await Pt(fin.me.identity),r=await Ct(fin.me.identity)===m.Dark,i=o?.theme;if(n.backgroundColor=i?.[r?m.Dark:m.Light]?.palette?.inputBackground||n.backgroundColor,!ho.has(n.name))return new Promise((o=>{uo.once("ready",(async e=>{if(e.name===n.name){const t=await ho.get(n.name);n.preventBlur||t.once("blurred",(async()=>{if(po(e,0),t.hide(),wo({name:n.name,data:{actionName:"Cancel"}}),t.identity.name===de.BrowserSaveMenu){const e=await t.getOptions();"submitting"!==e.customContext&&"error"!==e.customContext&&t.close()}else t.identity.name.startsWith(de.BrowserMenu)&&t.close()})),setTimeout((async()=>{await po(e,1),1!==(await fin.Window.wrapSync(e).getOptions()).opacity&&po(e,1)})),o(t)}}));const r=(async()=>{const o=await fin.Platform.getCurrentSync().createWindow(Me({...n,opacity:0,url:t||n.url,defaultLeft:a?.left,defaultTop:a?.top,defaultWidth:a?.width,defaultHeight:a?.height,workspacePlatform:{preventBlur:e.preventBlur}},!0));return o.once("closed",(()=>{ho.delete(n.name)})),o})();ho.set(n.name,r)}));return ho.get(n.name)}({...n},t,o)}return i}const bo=async({options:e,content:t,parameters:a})=>{const n=a??new URLSearchParams;n.set("content",JSON.stringify({...t,invocationId:Bt()}));const o={...e,name:`${e.name}--${e.modalParentIdentity?.name??""}`},r=await ko({options:o,parameters:n});return new Promise((e=>{uo.once("response",(async t=>{t.name===o.name&&(e({data:t.data}),o?.closeOnResponse&&r.close())}))}))},yo=async(e,t,a)=>{const{windowOptions:n,content:o}=await(async(e,t)=>{const a=await We(t);return{title:"Switch Workspace",windowOptions:{url:await oe(a,!1)+K.ResponseModal,name:de.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:t},content:{title:en("switchWorkspaceModal",{workspace:e}),body:en("switchWorkspaceModal.warning"),buttons:{right:[{label:en("global.cancel"),type:"secondary",id:"Cancel"},{label:en("global.confirm"),type:"primary",id:"Confirm"}]}}}})(t,a?void 0:e),r=await _e(n,e,a),i={...n,top:r.top,left:r.left};return"Confirm"===(await bo({options:i,content:o})).data.actionName},fo=async(e,t)=>{const{windowOptions:a,content:n}=await(async(e,t)=>{const a=await We(e);return{title:"Delete Workspace",windowOptions:{url:await oe(a,!1)+K.ResponseModal,name:de.BrowserMenu,defaultHeight:144,defaultWidth:410,modalParentIdentity:e},content:{title:en("deleteWorkspaceModal"),body:`${t}`,buttons:{right:[{label:en("global.cancel"),type:"secondary",id:"Cancel"},{label:en("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e,t),o=await _e(a,a.modalParentIdentity),r={...a,top:o.top,left:o.left};return"Confirm"===(await bo({options:r,content:n})).data.actionName},So=async(e,t,a)=>{const{windowOptions:n,content:o}=await(async(e,t,a)=>{const n=await We(e);return{title:"Platform Quit",windowOptions:{url:await oe(n,!1)+K.ResponseModal,name:de.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:a?void 0:e},content:{title:en("Platform"===t?"closePlatform":"closePlatform.workspace",{workspace:t}),body:en("closePlatform.warning"),buttons:{right:[{label:en("global.cancel"),type:"secondary",id:"Cancel"},{label:en("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e,t,a),r=await _e(n,e,a),i={...n,top:r.top,left:r.left};return"Confirm"===(await bo({options:i,content:o})).data.actionName},vo=async e=>{const{windowOptions:t,content:a}=await(async e=>{const t=await We(e);return{title:"Restore Changes",windowOptions:{url:await oe(t,!1)+K.ResponseModal,name:de.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:e},content:{title:en("restoreModal"),body:en("modal.discardWarning"),buttons:{right:[{label:en("global.cancel"),type:"secondary",id:"Cancel"},{label:en("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e),n=await _e(t,t.modalParentIdentity),o={...t,top:n.top,left:n.left};return"Confirm"===(await bo({options:o,content:a})).data.actionName},Po=async(e,t)=>{const{windowOptions:a,content:n}=await(async(e,t)=>{const a=await We(e);return{title:"Delete Page",windowOptions:{url:new URL(await oe(a,!1)+K.ResponseModal).toString(),name:de.BrowserMenu,defaultHeight:172,defaultWidth:464,modalParentIdentity:e},content:{title:en("enterpriseDeleteModal.deleteSupertab",{title:t}),body:en("enterpriseDeleteModal.deleteSupertabWarning"),buttons:{right:[{label:en("global.cancel"),type:"secondary",id:"Cancel",variant:a?"outline":void 0},{label:en("global.delete"),type:"primary",id:"Delete",variant:a?"submit":void 0}]}}}})(e,t),o=await _e(a,a.modalParentIdentity),r={...a,top:o.top,left:o.left};return"Delete"===(await bo({options:r,content:n})).data.actionName},Co=async({identity:e,title:t,description:a})=>{const{windowOptions:n,content:o}=await(async(e,t,a)=>({title:"Update Version",windowOptions:{url:await ae()+K.ResponseModal,name:de.UpdateVersionModal,defaultHeight:172,defaultWidth:464,modalParentIdentity:e,preventBlur:!0,closeOnResponse:!0,includeInSnapshots:!1},content:{title:t,body:a,buttons:{right:[{label:"Snooze",type:"secondary",id:"snooze"},{label:"Restart",type:"primary",id:"restart"}]}}}))(e,t,a),r=fin.Window.wrapSync({uuid:e.uuid,name:`${n.name}--${n.modalParentIdentity?.name}`});try{if(await(r?.isShowing()))return}catch(e){}const i=await _e(n,n.modalParentIdentity),s={...n,top:i.top,left:i.left};return(await bo({options:s,content:o})).data};async function Mo({options:e,...t}){if(!(!!e?.skipPrompt||await yo(e?.promptContainerWindowIdentity,t.title,e?.shouldCenterModalOnMonitor)))return!1;const a=Ra();return await a.applySnapshot(t.snapshot,{...e?.applySnapshotOptions??{},closeExistingWindows:e?.applySnapshotOptions?.closeExistingWindows??!0}),Ao(t),Xn("success",en("successIndicator.workspaceSwitched")).catch(console.warn),!0}async function xo(e){try{return await Mo(e)}catch(e){return console.error("failed to apply the current workspace: ",e),!1}}async function Io(e){try{const t=await async function(){const e=Ra(),t=await e.getCurrentWorkspace();return(await e.Storage.getWorkspaces()).find((e=>e.workspaceId===t.workspaceId))}();if(!t)return"not-saved-workspace";return!!e?.skipPrompt||await vo(e?.promptContainerWindowIdentity)?(await Mo({options:{skipPrompt:!0,applySnapshotOptions:e?.applySnapshotOptions},...t}),"success"):"user-declined"}catch(e){throw console.error("failed to restore last saved workspace: ",e),e}}function Ao(e){if("undefined"!=typeof localStorage)try{const t=JSON.stringify(e);la(Et.CurrentWorkspaceId,t)}catch(e){console.error("failed to set the active workspace: ",e)}}async function Wo(){const e=Ra(),t=await e.getSnapshot();return{workspaceId:Bt(),title:await Bo(),metadata:{APIVersion:O},snapshot:t}}async function Do(){if("undefined"==typeof localStorage)return Wo();const e=da(Et.CurrentWorkspaceId);if(!e)return Wo();const t=JSON.parse(e),a=Ra(),n=await a.getSnapshot();return{...t,metadata:{APIVersion:O},snapshot:n}}const Ro=async()=>(await wt(we)).dispatch(dt.GetSavedWorkspaces,void 0),To=async e=>await(async e=>(await wt(we)).dispatch(dt.GetSavedWorkspace,e))(e.workspaceId)?(async e=>(await wt(we)).dispatch(dt.UpdateSavedWorkspace,e))({workspaceId:e.workspaceId,workspace:e}):(async e=>(await wt(we)).dispatch(dt.CreateSavedWorkspace,e))({workspace:e});async function Bo(e="Untitled Workspace"){const t=(await Ro()).map((({title:e})=>e));return gn(e,t)}const Eo=e=>({...e,snapshot:{...e.snapshot,windows:e.snapshot.windows.map((e=>({...e,workspacePlatform:{...e.workspacePlatform,pages:e.workspacePlatform?.pages?.map((e=>({...e,hasUnsavedChanges:!1})))}})))}}),Fo=async(e,t)=>{const a=t??Ra();await a.Storage.saveWorkspace(Eo(e)),await(async()=>(await wt(we)).dispatch(dt.MarkUnsavedPagesAsSavedInternal,void 0))()},Vo=async e=>{const t=Ra(),a=await t.getCurrentWorkspace(),n=await t.Storage.getWorkspaces(),o=a.workspaceId;if(n.some((e=>e.workspaceId===o)))await Fo(a,t),await t.setActiveWorkspace(a),await eo(en("successIndicator.workspaceSaved"),e);else{const a=t.Browser.wrapSync(e);await a._openSaveModal({menuType:x.SAVE_WORKSPACE})}},No=e=>{Ra().Browser.wrapSync(e)._openSaveModal({menuType:x.SAVE_WORKSPACE_AS})},Lo=async e=>{const t=Ra().Browser.wrapSync(e),{newPageUrl:a}=await to(),n=await ao(e),o=a||void 0;await t._addDefaultPage({identity:e,page:n,newPageUrl:o})},_o=async(e,t)=>{const a=Ra().Browser.wrapSync(e),n=await Ra().Storage.getPages(),o=(await a.getPages()).find((e=>t?e.pageId===t:e.isActive)),r=n.some((e=>o.pageId===e.pageId)),i=await We(e);if(r)try{await Ra().Storage.savePage((d=o,{...d,hasUnsavedChanges:void 0,parentIdentity:void 0,isActive:void 0,layout:_a(d.layout)})),await a.updatePage({pageId:o.pageId,page:{hasUnsavedChanges:!1}}),eo(en(i?"enterpriseSuccessIndicator.supertabSaved":"successIndicator.pageSaved"),e,en(i?"enterpriseSuccessIndicator.supertabHasBeenSaved":"successIndicator.pageHasBeenSaved",{title:o.title}))}catch{s=en("errorIndicator.pageSaveFailed"),c=o.parentIdentity.name,Xn("error",s,c,l)}else a._openSaveModal({id:o.pageId,menuType:x.SAVE_PAGE});var s,c,l,d},Oo=async(e,t)=>{const a=Ra().Browser.wrapSync(e),n=(await a.getPages()).find((e=>t?e.pageId===t:e.isActive));a._openSaveModal({id:n.pageId,menuType:x.SAVE_PAGE_AS}),ze({type:"Page Modal",action:"Select Save As",value:n.title,skipValueHashing:!0})},Uo={title:"Downloads",pageId:"downloads-page-id",layout:{content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{name:"show-download-view",url:"chrome://downloads/"}}]}]}},Go=async e=>{const t=pe(e),a=await t.getCurrentViews(),n=(await Ra().Browser.wrapSync(t.identity).getPages()).find((e=>e.isActive));try{const t=(await Promise.all(a.map((async e=>({identity:e.identity,info:await fin.View.wrapSync(e.identity).getInfo()}))))).find((e=>"chrome://downloads/"===e.info.url));if(t)await fin.View.wrapSync(t.identity).focus();else{const t=Ra();if(n?.isLocked){const e=(await fin.Application.getCurrentSync().getChildWindows()).find((e=>"show-download-window"===e.identity.name));return void(e?await e.focus():t.Browser.createWindow({name:"show-download-window",workspacePlatform:{pages:[Uo]}}))}(await Ra().createView({name:"show-download-view",url:"chrome://downloads/",target:e},e)).focus()}}catch(e){console.error("Couldn't open downloads view",e)}},Ho=async e=>{const t=e.map((e=>fin.View.wrapSync(e).print()));await Promise.all(t)},$o=e=>{const[t,a,n]=e.split(".").map((e=>"x"===e?0:1));return 100*t+10*a+1*n};class Ko extends Error{}const zo=async e=>{try{const a=await async function(){const e=await Q(),t=e?.translationOverridesUrl??"https://workspace.openfin.co/workspace/assets/translation-override.json";if(""===t)throw new Ko("Empty string provided as url to translationOverridesUrl, overrides will not be fetched.");return await fetch(t).then((e=>e.json()))}();(t=(e=>{const t=O.split(".");return Object.keys(e).filter((e=>{const a=e.split(".");if(3!==a.length)return console.warn(`Encountered a translation override version string in an unsupported format: ${e}. Versions must be in A.B.C format where A, B, C are either integers or the wildcard symbol 'x'.`),!1;const[n,o,r]=a;return!(n!==t[0]&&"x"!==n||o!==t[1]&&"x"!==o||r!==t[2]&&"x"!==r)}))})(a),[...t].sort(((e,t)=>$o(e)-$o(t)))).forEach((t=>{const n=a[t];Object.keys(n).forEach((t=>{e.addResourceBundle(t,"translation",n[t],!0,!0)}))}))}catch(e){e instanceof Ko?console.warn(e.message):console.error("Error applying a translation override: ",e)}var t};function Jo(){return za().language}const Zo=async e=>{Qo(e),(e=>{za().changeLanguage(e)})(e),await(async e=>{const t=await be();return Promise.all(t.map((async t=>{const a=await qt(t.identity);await a.dispatch(aa.SetSelectedLanguage,e)})))})(e)};function qo(){if(!za().options.resources)throw new Error("No language resources found");return{currentLanguage:Jo(),resources:za().options.resources}}async function jo(e="en-US"){Qo(e),function(e="en-US"){za().use($a.initReactI18next).init({lng:e,fallbackLng:"en-US",resources:{"en-US":{translation:qa},"ja-JP":{translation:Qa},"zh-CN":{translation:Ja},"ko-KR":{translation:Ya},"ru-RU":{translation:Xa},"de-DE":{translation:ja},"zh-Hant":{translation:Za}},interpolation:{escapeValue:!1}})}(e),await zo(za())}function Qo(e){if(!M.includes(e))throw new Error(`The ISO language provided ${e} is not supported`)}const Yo=new Map;async function Xo(){if("undefined"!=typeof localStorage)try{const e=da(Et.LastFocusedBrowserWindow);if(!e)return;const t=JSON.parse(e);if(await fe(t))return t}catch(e){throw new Error(`failed to get last focused browser window: ${e}`)}}async function er(){const e=Array.from(Yo.values());for(let t=e.length-1;t>=0;t--){const a=fin.Window.wrapSync(e[t]);if(await a.isShowing())return e[t]}}async function tr(e=fin.me.identity){await ke(e)&&(Yo.delete(e.name),Yo.set(e.name,e),function(e){if("undefined"!=typeof localStorage)try{const t=JSON.stringify(e);la(Et.LastFocusedBrowserWindow,t)}catch(e){console.error("failed to save last focused browser window: ",e)}}(e))}async function ar(e=fin.me.identity){Yo.delete(e.name)}const nr=Tt()((async()=>{const e=await fin.Platform.getCurrentSync().Application.getChildWindows();let t,a=!1;for(const n of e)if(n.identity.name===de.BrowserMenu||n.identity.name===de.BrowserSaveMenu?t=n:await ke(n.identity)&&(a=!0),a)break;!a&&t&&t.close()}),100,{leading:!1,trailing:!0}),or=async()=>{le().on("window-closed",nr)};let rr={};const ir=async({actionId:e,payload:t})=>{if("function"!=typeof rr[e])throw new Error(`Cannot find a configured function for the action '${e}'`);return rr[e](t)};let sr;const cr=()=>`custom-context-menu-${Ra().identity.uuid}-${O}`,lr=()=>`custom-bookmark-context-menu-${Ra().identity.uuid}-${O}`,dr=async()=>(sr||(sr=await fin.InterApplicationBus.Channel.connect(cr())),sr);var ur,pr;!function(e){e.Save="Save",e.SaveAs="SaveAs"}(ur||(ur={})),function(e){e.GlobalMenu="global-menu",e.ContextMenu="context-menu",e.RenameSupertab="rename-supertab",e.AddEditBookmark="add-edit-bookmark",e.DropdownMenu="dropdown-menu"}(pr||(pr={}));const wr=require("idb-keyval"),gr=(e,t)=>(0,wr.createStore)(e+"-"+fin.me.uuid,t),hr=(e,t)=>{const a=gr(e,t);return(async(e,t,a)=>{const n=da(Et.HasMovedStore),o=n?JSON.parse(n):{};if(o&&o[a])return;o[a]=!0,la(Et.HasMovedStore,JSON.stringify(o));const r=await(0,wr.entries)(e);await(0,wr.setMany)(r,t)})((0,wr.createStore)(e,t),a,e),a},mr=(e,t="")=>e.toLowerCase().includes(t.toLowerCase()),kr=D&&A&&hr("openfin-home-pages","pages");async function br(e){if(!kr)throw new Error("Unable to get page - IndexDB not supported");const t=await(0,wr.get)(e,kr);if(t)return t.pageId=e.toString(),t.title=t.title||t.pageId,t}async function yr(e){if(!kr)throw new Error("Unable to get page list - IndexDB not supported");const t=await(0,wr.keys)(kr),a=(await Promise.all(t.map((e=>br(e.toString()))))).filter((e=>!!e));return e?a.filter((t=>mr(t.title,e))):a}async function fr({page:e}){if(!kr)throw new Error("Unable to create page - IndexDB not supported");await(0,wr.set)(e.pageId,e,kr)}async function Sr(e){if(!kr)throw new Error("Unable to delete page - IndexDB not supported");await(0,wr.del)(e,kr)}async function vr({pageId:e,page:t}){if(!kr)throw new Error("Unable to update page - IndexDB not supported");if(void 0===await br(e))throw new Error("page not found");await fr({page:t}),e!==t.pageId&&await Sr(e)}const Pr=D&&A&&gr("openfin-enterprise-tab-history","removed-tab-stack"),Cr=async e=>{(0,wr.set)(Date.now(),e,Pr)},Mr=D&&A&&gr("openfin-enterprise-site-history","visited-sites"),xr=async e=>{if("website"===e.type){let t=await(0,wr.get)(e.url,Mr);t?(t.icon=e.icon,t.title=e.title,t.type=e.type,t.visitCount=(t.visitCount||0)+1):t={url:e.url,icon:e.icon,title:e.title,type:e.type,visitCount:1},t.accessTime=Date.now(),(0,wr.set)(t.url,t,Mr)}},Ir=async()=>{const e=await(0,wr.entries)(Mr);if(e.length>0){e.sort(((e,t)=>t[1].visitCount-e[1].visitCount));return(e.length>5?e.slice(0,5):e).map((e=>e[1]))}return[]},Ar=async()=>(await fin.System.getHostSpecs()).name.toLowerCase().includes("windows"),Wr=async({browserIdentity:e,url:t,shiftKey:a,activePage:n,pages:o})=>{const r=Ra().Browser.wrapSync(e),i=await Ua(t,t,e),s={...await Ut(t,i),attachedPageType:"singleView",singleViewName:t},c=o.findIndex((e=>e.pageId===n.pageId));await r._addPage(s,{index:c+1}),a&&await r.setActivePage(s.pageId)},Dr=async e=>{const{url:t}=e.bookmark,{sourceIdentity:a,sourceEvent:n}=e,o=await Ar(),r=Ra();let i=!1,s=a;if(!await ke(a)){const t=await er();if(!t)return await(async e=>{const t=Ra(),a=await Ua(e.url,e.url),n=await Ut(e.url,a);me((await t.Browser.createWindow({workspacePlatform:{pages:[n]}})).identity)})(e.bookmark);i=!0,s=t}const c=r.Browser.wrapSync(s),l=await c.getPages(),d=(await c._getLayoutsWithSelectedViews()).find((e=>e.isActive));if(!d)throw Error(`Browser ${s} does not have any active layouts`);const u=l.find((e=>e.isActive)),p=1===Ha(u.layout.content),w=d.selectedViews[0];i?await Wr({browserIdentity:s,url:t,shiftKey:!0,activePage:u,pages:l}):p?await(async({isWindows:e,currentViewId:t,browserIdentity:a,url:n,activePage:o,pages:r,sourceEvent:i})=>{const{ctrlKey:s,metaKey:c,shiftKey:l}=i;(e?s:c)?await Wr({browserIdentity:a,url:n,shiftKey:l,activePage:o,pages:r}):await fin.View.wrapSync(t).navigate(n)})({isWindows:o,currentViewId:w,browserIdentity:s,url:t,activePage:u,pages:l,sourceEvent:n}):await(async({isWindows:e,currentViewId:t,browserIdentity:a,url:n,activeLayout:o,sourceEvent:r})=>{const{ctrlKey:i,metaKey:s,shiftKey:c}=r;if(e?i:s){const e=fin.View.wrapSync(t),o=await e.getCurrentStack(),r=(await o.getViews()).findIndex((e=>e.name===t.name)),i={url:n,browserIdentity:a,title:n};await o.addView(i,{index:r+1})}else await fin.View.wrapSync(o.selectedViews[0]).navigate(n)})({isWindows:o,currentViewId:w,browserIdentity:s,url:t,activeLayout:d,sourceEvent:n})};var Rr;!function(e){e.Label="normal",e.Separator="separator",e.Submenu="submenu",e.Checkbox="checkbox"}(Rr||(Rr={}));let Tr={locked:!1,x:-1,y:-1};const Br=async(e,t,a,n)=>{if(!A)throw new Error("showEnterpriseContextMenu can only be used in a Here env. Avoid calling this method during pre-rendering.");if(!n&&!fin.me.isWindow)throw new Error("showEnterpriseContextMenu can only be used in a Here window.");const{x:o,y:r,template:i}=e;if(((e,t)=>{const{x:a,y:n,locked:o}=Tr;return o&&e===a&&t===n})(o,r))return new Promise(((e,t)=>e({data:void 0})));Tr={locked:!0,x:o,y:r};const s=await dr(),c=Bt(),l=new Promise(((e,t)=>{s.register(`response-${c}`,(t=>{Tr.locked=!1,s.remove(`response-${c}`),e(t)}))}));return await s.dispatch("open",{parentIdentity:n.identity,responseIdentity:we,requestId:c,type:t,anchorBehavior:a,x:o,y:r,payload:{template:i}}),l},Er={type:Rr.Separator,data:void 0},Fr=async()=>({type:Rr.Submenu,label:en("contextMenu.print"),submenu:[{type:Rr.Label,label:en("contextMenu.submenu.print"),data:{type:f.Print}},{type:Rr.Label,label:en("contextMenu.submenu.printAll"),data:{type:f.PrintAll}},Er,{type:Rr.Label,label:en("contextMenu.printScreen"),data:{type:f.PrintScreen}}]}),Vr=()=>({type:Rr.Label,label:en("contextMenu.closeWindow"),data:{type:h.CloseWindow}}),Nr=e=>({type:Rr.Label,label:en(e?"contextMenu.quitEnterpriseBrowser":"contextMenu.quitPlatform"),data:{type:h.Quit}}),Lr=()=>({type:Rr.Label,label:en("contextMenu.newWindow"),data:{type:h.NewWindow}}),_r=e=>({type:Rr.Label,label:en(e?"enterpriseContextMenu.saveSupertab":"contextMenu.savePage"),data:{type:h.SavePage}}),Or=e=>({type:Rr.Label,label:en(e?"enterpriseContextMenu.saveSupertabAs":"contextMenu.savePageAs"),data:{type:h.SavePageAs}}),Ur=(e,t)=>({type:Rr.Label,label:en(t?"enterpriseContextMenu.newTab":"contextMenu.newPage"),data:{type:h.NewPage},enabled:e}),Gr=()=>({label:en("contextMenu.switchWorkspace")}),Hr=()=>({label:en("contextMenu.deleteWorkspace")}),$r=()=>({label:en("contextMenu.appearance")}),Kr=(e,t,a)=>t.map((t=>{const n=t.workspaceId===e.workspaceId;return{label:t.title,type:Rr.Checkbox,enabled:!n,checked:n,data:{type:a,workspaceId:t.workspaceId}}})),zr=async()=>{const e=await Ra().Theme.getSelectedScheme();return[{label:en("theme.light"),type:Rr.Checkbox,checked:e===m.Light,data:{type:h.Appearance,scheme:m.Light}},{label:en("theme.dark"),type:Rr.Checkbox,checked:e===m.Dark,data:{type:h.Appearance,scheme:m.Dark}},{label:en("theme.system"),type:Rr.Checkbox,checked:e===m.System,data:{type:h.Appearance,scheme:m.System}}]},Jr=async(e,t=[])=>{const a=await Se(),{newPageUrl:n}=await to(e),o=await(async e=>{const t=pe(e),{workspacePlatform:a}=await t.getOptions();return a?.disableMultiplePages})(e),r=await(async e=>{const t=pe(e),{workspacePlatform:a}=await t.getOptions();return a?.isLocked})(e),i=await We(e),s=[],c=t.length>0;n&&(s.push(Lr()),o||s.push(Ur(!r,i))),s.push(Er);const l=Ra(),d=await l.getCurrentWorkspace(),u=await l.Storage.getWorkspaces(),p=u.find((e=>e.workspaceId===d.workspaceId));s.push({type:Rr.Label,label:en("contextMenu.restore"),data:{type:h.RestoreChanges},enabled:!!p}),s.push({type:Rr.Label,label:en("contextMenu.saveWorkspace"),data:{type:h.SaveWorkspace},enabled:!!p}),s.push({type:Rr.Label,label:en("contextMenu.saveWorkspaceAs"),data:{type:h.SaveWorkspaceAs}}),s.push({type:Rr.Label,label:en("contextMenu.renameWorkspace"),data:{type:h.RenameWorkspace},enabled:!!p}),u.some((e=>e.workspaceId!==d.workspaceId))?s.push({label:Gr().label,submenu:Kr(d,u,h.SwitchWorkspace),data:void 0},{label:Hr().label,submenu:Kr(d,u,h.DeleteWorkspace),data:void 0}):s.push({label:Gr().label,enabled:!1,data:void 0},{label:Hr().label,enabled:!1,data:void 0}),s.push({label:en("contextMenu.downloads"),data:{type:h.Downloads}});const w=await l.Theme.getThemes();return(w[0]&&"palettes"in w[0]||!w[0]||0===w.length)&&s.push({label:$r().label,submenu:await zr(),data:void 0}),s.push(Er,_r(i),Or(i),await(async e=>{const t=await Ar();return{label:en("contextMenu.print"),submenu:[{type:Rr.Label,label:en("contextMenu.submenu.print"),data:{type:h.Print},enabled:e},{type:Rr.Label,label:en("contextMenu.submenu.printAll"),data:{type:h.PrintAll}},...t?[Er,{type:Rr.Label,label:en("contextMenu.printScreen"),data:{type:h.PrintScreen}}]:[]],data:void 0}})(c)),a?[...s,Vr(),Er,{type:Rr.Label,label:en("contextMenu.openStorefront"),data:{type:h.OpenStorefront}},Er,Nr()]:[...s,Er,Vr(),Er,Nr()]},Zr=async(e,t)=>{const a=t.selectedViews[0],n=fin.View.wrapSync(a),o=await(async e=>{const{newTabUrl:t}=await to(e);if(!t)throw new Error("Trying to create a new page without a newTabUrl set");return{url:t,target:e,title:"New Tab"}})(e);await Ra().createView(o,e,n.identity)},qr=async(e,t)=>{const a=Ra().Browser.wrapSync(e),n=(await a.getPages()).find((e=>e.isActive)),o=await fin.Window.wrapSync(e).getCurrentViews();if(t.length===o.length-(n.panels??[]).length){return void(await qt(e)).dispatch(aa.ClosePage,{pageId:n?.pageId})}const r=fin.Platform.getCurrentSync();t.forEach((async t=>{const o=await fin.View.wrapSync(t).getParentLayout();await r.closeView(t);const{hasUnsavedChanges:i}=await(async e=>(await gt(we)).dispatch(dt.HandlePageChanges,e))({page:{...n,layout:await o.getConfig()},identity:e,eventDetails:{type:g.ViewRemoved,viewIdentity:t}});i&&await a.updatePage({pageId:n.pageId,page:{hasUnsavedChanges:!0}})}))},jr=async(e,t)=>{const a=await(e=>Promise.all(e.map((async e=>fin.View.wrapSync(e).getInfo()))))(t),{newPageUrl:n,newTabUrl:o}=await to(e);a.forEach((async e=>{e.url!==n&&e.url!==o&&await fin.System.openUrlWithBrowser(e.url)}))},Qr=(e,t)=>{t.forEach((async t=>{const a=fin.View.wrapSync(t);await(async(e,t)=>{const{url:a}=await t.getInfo(),n={...await t.getOptions(),url:a,target:e,name:void 0};await Ra().createView(n,e,t.identity)})(e,a)}))},Yr=async(e,t,a)=>{const n={newChannelId:t,selectedViews:a};(await qt(e)).dispatch(aa.AddToChannel,n)},Xr=async(e,t)=>{(await qt(e)).dispatch(aa.RemoveFromChannel,t)},ei=async(e,t)=>{if(!e)return;const a=t.identity,n=fin.Window.wrapSync(a);switch(ze({type:"View Tab Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0}),e.type){case f.Back:await(async e=>{const t=e.map((e=>fin.View.wrapSync(e).navigateBack()));await Promise.all(t)})(t.selectedViews);break;case f.Forward:await(async e=>{const t=e.map((e=>fin.View.wrapSync(e).navigateForward()));await Promise.all(t)})(t.selectedViews);break;case f.Print:await Ho(t.selectedViews);break;case f.PrintAll:await n.print({content:"views",includeSelf:!1});break;case f.PrintScreen:await n.print({content:"screenshot"});break;case f.CloseViews:await qr(a,t.selectedViews);break;case f.OpenWithDefaultBrowser:await jr(a,t.selectedViews);break;case f.ReloadViews:t.selectedViews.forEach((async e=>{const t=fin.View.wrapSync(e);await t.reload()}));break;case f.NewView:await Zr(a,t);break;case f.DuplicateViews:Qr(a,t.selectedViews);break;case f.AddToChannel:Yr(a,e.option,t.selectedViews);break;case f.RemoveFromChannel:Xr(a,t.selectedViews);break;case f.Custom:if(e.action){const n={callerType:C.ViewTabContextMenu,windowIdentity:a,selectedViews:t.selectedViews,customData:e.action.customData};Ra()._invokeCustomAction(e.action.id,n)}}},ti=(require("title-case"),new Map([["blue",{name:"Blue",color:"#0091EB"}],["indigo",{name:"Indigo",color:"#6450FF"}],["pink",{name:"Pink",color:"#E878CF"}],["teal",{name:"Teal",color:"#24D1D1"}],["green",{name:"Green",color:"#00AF78"}],["orange",{name:"Orange",color:"#FF7D37"}],["red",{name:"Red",color:"#F94144"}],["yellow",{name:"Yellow",color:"#F9C74F"}],["gray",{name:"Gray",color:"#828788"}]]));function ai(e){const t=Array.from(ti.entries()),a=e.contextGroup;return{type:"widget",config:{type:"add-to-channel",channels:[...t.map((([e,t])=>({label:t.name,data:{type:k.AddToChannel,option:e},color:t.color,checked:a===e}))),{label:"unlink",data:{type:k.AddToChannel,option:"unlink"},isNone:!0}]},label:"Link to Channel"}}let ni="Platform";const oi=async()=>ni;const ri=async(e,t)=>{if(!e)return;const a=t.identity,n=await qt(a),o=Ra().Browser.wrapSync(a),r=fin.Window.wrapSync(a);if(ze({type:"Global Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0,data:{action:e.action?.id}}),await We(a)){const a=await(async(e,t)=>{const a=t.identity,n=Ra().Browser.wrapSync(a),o=(await n.getPages()).find((e=>e.isActive)),r=Ht({...a,layoutName:o.layoutContainerKey}),i=t.selectedViews;switch(e?.type){case b.Lock:await n.updatePage({pageId:o.pageId,page:{isLocked:!o.isLocked}});break;case b.AddToChanel:e.option?await Yr(a,e.option,i):null===e.option&&await Xr(a,i);break;case h.NewWindow:{const e=await ao(a);await Ra().Browser.createWindow({workspacePlatform:{pages:[e],windowType:"enterprise"}});break}case b.Pin:{const{alwaysOnTop:e}=await n.openfinWindow.getOptions();await n.openfinWindow.updateOptions({alwaysOnTop:!e});break}case b.ShowHideTabs:await r.isShowingTabs()?await r.hide():await r.show();break;default:return!1}return!0})(e,t);if(a)return}switch(e.type){case h.NewWindow:{const{newPageUrl:e}=await to(a);if(!e)throw new Error("Trying to create a new empty window without a newPageUrl set");Ra().createView({target:void 0,url:e});break}case h.NewPage:await Lo(a);break;case h.CloseWindow:n.dispatch(aa.CloseBrowserWindow);break;case h.SaveWorkspace:await Vo(a);break;case h.SavePage:await _o(a);break;case h.SavePageAs:await Oo(a);break;case h.SaveWorkspaceAs:await No(a);break;case h.RenameWorkspace:o._openSaveModal({menuType:x.RENAME_WORKSPACE});break;case h.SwitchWorkspace:await(async(e,t)=>{const a=Ra(),n=(await a.Storage.getWorkspaces()).find((e=>e.workspaceId===t.workspaceId));a.applyWorkspace(n,{skipPrompt:!1,promptContainerWindowIdentity:e})})(a,e);break;case h.DeleteWorkspace:await(async(e,t)=>{const a=Ra(),n=(await a.Storage.getWorkspaces()).find((e=>e.workspaceId===t.workspaceId));n&&await fo(e,n.title)&&(await a.Storage.deleteWorkspace(t.workspaceId),eo(en("successIndicator.workspaceDeleted"),e))})(a,e);break;case h.Downloads:await Go(a);break;case h.Appearance:await Ra().Theme.setSelectedScheme(e.scheme);break;case h.Quit:{const e=oi();await So(a,await e)&&fin.Platform.getCurrentSync().quit()}break;case h.OpenStorefront:(async()=>{await Se()&&me(he)})();break;case h.RestoreChanges:await Io();break;case h.Print:await Ho(t.selectedViews);break;case h.PrintAll:await r.print({content:"views",includeSelf:!1});break;case h.PrintScreen:await r.print({content:"screenshot"});break;case h.Custom:if(e.action){const t={callerType:C.GlobalContextMenu,windowIdentity:a,customData:e.action.customData};Ra()._invokeCustomAction(e.action.id,t)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`)}},ii=async(e,t,a)=>{const n=Ra().Browser.wrapSync(t.identity),o=fin.Window.wrapSync(t.identity),r=await qt(t.identity),i=await We();switch(e&&ze({type:"Page Tab Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0}),e?.type){case k.Save:await _o(t.identity,t.pageId);break;case k.SaveAs:await Oo(t.identity,t.pageId);break;case k.NewPage:await Lo(t.identity);break;case k.DeletePage:await(async(e,t)=>{const a=Ra(),n=a.Browser.wrapSync(e),o=(await a.Storage.getPages()).find((e=>e.pageId===t));o&&await Po(e,o.title)&&(await a.Storage.deletePage(o.pageId),await n.removePage(t),eo(en("enterpriseSuccessIndicator.supertabDeleted"),e,en("enterpriseSuccessIndicator.supertabHasBeenDeleted",{title:o.title})))})(t.identity,t.pageId);break;case k.Rename:if(await We(t.identity)){await n.setActivePage(t.pageId);const e=await dr();await e.dispatch("open",{parentIdentity:t.identity,responseIdentity:we,type:pr.RenameSupertab,anchorBehavior:ci.Center,x:a.left+a.width/2-164,y:a.bottom-8,payload:{pageId:t.pageId}})}else await n._openSaveModal({menuType:x.RENAME_PAGE,id:t.pageId});break;case k.Duplicate:r.dispatch(aa.DuplicatePage,t.pageId);break;case k.Close:i?await(async(e,t)=>{const a=Ra().Browser.wrapSync(e),n=await a.getPages();for(const o of n)if(o.pageId===t){await a.removePage(o.pageId),await a._trackRemovedTab({identity:e,page:o});break}})(t.identity,t.pageId):r.dispatch(aa.ClosePage,{pageId:t.pageId});break;case k.Custom:if(e.action){const a={callerType:C.PageTabContextMenu,windowIdentity:t.identity,pageId:t.pageId,customData:e.action.customData};Ra()._invokeCustomAction(e.action.id,a)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`);break;case k.Refresh:await(async(e,t)=>{const a=Ra(),n=a.Browser.wrapSync(e),o=(await n.getPages()).find((e=>t?e.pageId===t:e.isActive));o?.layout?.content&&Oa(o.layout.content).forEach((async e=>{(await fin.View.wrap({uuid:a.identity.uuid,name:e.name})).reload()}))})(t.identity,t.pageId);break;case k.CloseOthers:await(async(e,t)=>{const a=Ra().Browser.wrapSync(e),n=await a.getPages();for(const o of n)o.pageId!==t&&(await a.removePage(o.pageId),await a._trackRemovedTab({identity:e,page:o}))})(t.identity,t.pageId);break;case k.SaveWorkspaceAs:await No(t.identity);break;case k.Print:{const e=await n._getLayoutsWithSelectedViews(),{selectedViews:a}=e.find((e=>e.pageId===t.pageId));await Ho(a);break}case k.PrintAll:await n.setActivePage(t.pageId),await o.print({content:"views",includeSelf:!1});break;case k.PrintScreen:await n.setActivePage(t.pageId),await o.print({content:"screenshot"});break;case k.AddToChannel:await n.updatePage({pageId:t.pageId,page:{contextGroup:"unlink"===e.option?null:e.option}})}},si=async(e,t)=>{if(e?.type){const a=t.identity;switch(e.type){case v.SavePage:await _o(a);break;case v.SaveWorkspace:await Vo(a);break;case v.SavePageAs:await Oo(a);break;case v.SaveWorkspaceAs:await No(a);break;case v.Custom:if(e.action){const a={callerType:C.SaveButtonContextMenu,windowIdentity:t.identity,pageId:t.pageId,customData:e.action.customData};Ra()._invokeCustomAction(e.action.id,a)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`)}}};var ci;!function(e){e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight",e[e.Center=4]="Center"}(ci||(ci={}));const li=async(e,t,a,n)=>{const{x:o,y:r,identity:i,template:s,callback:c}=e,l=await We(i),{data:d}=l?await Br({x:o,y:r,template:s},a,n,fin.Window.wrapSync(i)):await function(e,t){if(!A)throw new Error("showContextMenu can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");if(!t&&!fin.me.isWindow)throw new Error("showContextMenu can only be used in an OpenFin window.");return(t||fin.Window.getCurrentSync()).showPopupMenu(e)}({x:o,y:r,template:s},fin.Window.wrapSync(i));c(d,e)};async function di(e,t){const a=await We(e.identity),n=a?await(async({identity:e,selectedViews:t})=>{const a=Ra(),n=a.Browser.wrapSync(e),o=(await n.getPages()).find((e=>e.isActive)),r=Ha(o.layout.content)>1,i=await We(e),s=await a.Theme.getThemes(),c=s[0]&&"palettes"in s[0]||!s[0]||0===s.length,l={..._r(i),enabled:r},d={...Or(i),enabled:r};return[Lr(),Ur(!0,i),{type:Rr.Separator},l,d,{type:Rr.Separator},...c?[{type:Rr.Submenu,label:$r().label,submenu:await zr()}]:[],{type:Rr.Separator},Vr(),{type:Rr.Separator},Nr(!0)]})({identity:e.identity,selectedViews:e.selectedViews}):await Jr(e.identity,e.selectedViews),o=await oi();a||(n.find((e=>e.data?.type===h.Quit)).label=`Quit ${o}`);const{rect:r,...i}=e,{x:s,y:c}=a?{x:r.left+r.width,y:r.bottom}:e,l={...i,x:s,y:c,template:n,callback:ri};await this.openGlobalContextMenu(l,t)}async function ui(e,t){const a={...e,callback:ei};await this.openViewTabContextMenu(a,t)}async function pi(e,t){const a=await(async(e,t)=>{const a=await Ra().Storage.getPage(e),n=await hn(),o=await We(t),r=n.find((t=>t.pageId===e)),i=Ha(r.layout.content)>1,{workspacePlatform:s}=await pe(t).getOptions(),c=!(s.isLocked||s.preventPageClose||r.closeButton?.disabled||r.closeButton?.hidden),l=[{type:Rr.Label,label:en("enterpriseContextMenu.newTab"),data:{type:k.NewPage}},Er,ai(r),Er,{type:Rr.Label,label:en("reload"),data:{type:k.Refresh}},{type:Rr.Label,label:en("enterpriseContextMenu.duplicate"),data:{type:k.Duplicate},enabled:!s.isLocked},await Fr(),Er,{type:Rr.Label,label:en(i?"enterpriseSaveModal.closeSupertab":"enterpriseSaveModal.closeTab"),data:{type:k.Close},enabled:c}],d=[{type:Rr.Label,label:en("enterpriseContextMenu.newTab"),data:{type:k.NewPage}},Er,ai(r),Er,{type:Rr.Label,label:en("enterpriseSaveModal.renameSupertab"),data:{type:k.Rename},enabled:!s.isLocked&&!!a&&i},{type:Rr.Label,label:en("enterpriseContextMenu.duplicate"),data:{type:k.Duplicate},enabled:!s.isLocked},Er,{type:Rr.Label,label:en("enterpriseContextMenu.saveSupertab"),data:{type:k.Save},enabled:i},{type:Rr.Label,label:en("enterpriseContextMenu.saveSupertabAs"),data:{type:k.SaveAs},enabled:i},Er,{type:Rr.Label,label:en("enterpriseContextMenu.deleteSupertab"),data:{type:k.DeletePage},enabled:!!a},Er,{type:Rr.Label,label:en(i?"enterpriseSaveModal.closeSupertab":"enterpriseSaveModal.closeTab"),data:{type:k.Close},enabled:c}],u=[{type:Rr.Label,label:en("contextMenu.savePage"),data:{type:k.Save},enabled:!0},{type:Rr.Label,label:en("saveMenu.savePageAs"),data:{type:k.SaveAs},enabled:!0},{type:Rr.Label,label:"Save Workspace As",data:{type:k.SaveWorkspaceAs}},{type:Rr.Label,label:"Refresh",data:{type:k.Refresh}},Er,{type:Rr.Label,label:en("saveModal.renamePage"),data:{type:k.Rename},enabled:!!a},{type:Rr.Label,label:en("contextMenu.duplicatePage"),data:{type:k.Duplicate},enabled:!s.isLocked},Er,{type:Rr.Label,label:en("saveModal.closePage"),data:{type:k.Close},enabled:c}];return o?i?d:l:u})(e.pageId,e.identity),n={...e,template:a,callback:(t,a)=>{ii(t,a,e.rect)}};await this.openPageTabContextMenu(n,t)}async function wi(e,t){const a={...e,template:await(async()=>{const e=Ra(),t=await e.getCurrentWorkspace(),a=(await e.Storage.getWorkspaces()).find((e=>e.workspaceId===t.workspaceId));return[{type:Rr.Label,label:en("contextMenu.saveWorkspace"),enabled:!!a,data:{type:v.SaveWorkspace}},{type:Rr.Label,label:en("saveMenu.saveWorkspaceAs"),data:{type:v.SaveWorkspaceAs}},{type:Rr.Separator,data:void 0},{type:Rr.Label,label:en("contextMenu.savePage"),data:{type:v.SavePage}},{type:Rr.Label,label:en("saveMenu.savePageAs"),data:{type:v.SavePageAs}}]})(),callback:si};await this.openSaveButtonContextMenu(a,t)}const gi="dock-companion-updates",hi=async()=>(await fin.Application.getCurrentSync().getChildWindows()).find((e=>e.identity.name===de.DockCompanion)),mi=rt(`${"undefined"!=typeof fin&&fin?.me.identity.uuid}-enterprise-dock`),ki=async()=>{const e=Ra();let t=await er();if(t){const a=e.Browser.wrapSync(t),n=(await a.getPages()).at(-1),o=Oa(n.layout.content);if(1===o.length&&Te(o[0].url))await a.setActivePage(n.pageId);else{const e=await ao(t),{newPageUrl:n}=await to();await a._addDefaultPage({identity:a.identity,page:e,newPageUrl:n||void 0})}}else{const a=fin.Window.wrapSync({uuid:fin.me.uuid,name:de.DockCompanion}),n=await Ce(await a.getBounds()),o=await async function(e,t,a){const n=await fin.System.getMonitorInfo(),o=a?.availableRect??n.primaryMonitor.availableRect,r={width:o.right-o.left,height:o.bottom-o.top},i=Math.min(e,r.height),s=Math.min(t,r.width),c=o.top+Math.floor((r.height-i)/2);return{height:i,width:s,left:o.left+Math.floor((r.width-s)/2),top:c}}(600,900,n),r=await ao();t=(await e.Browser.createWindow({defaultHeight:600,defaultWidth:900,defaultLeft:o.left,defaultTop:o.top,workspacePlatform:{pages:[r]}})).identity}(await qt(t)).dispatch(aa.FocusAndExpandSearchInternal)},bi=D&&A&&gr("dock-provider-configs","dock-provider-configs");async function yi(e){if(!bi)throw new Error("Unable to get Dock provider config - IndexDB not supported");return await(0,wr.get)(e,bi).catch((e=>{console.warn("Failed to retrieve Dock provider config from IndexedDB",e)}))}async function fi(e){await(0,wr.set)(e.id,e,bi)}let Si;async function vi(e){return(await(Si||(Si=rt(`${"undefined"!=typeof fin&&fin.me.identity.uuid}-enterprise-modal`)()),Si)).dispatch(ta.SendUpdateVersionModalResponse,e)}const Pi=D&&A&&hr("openfin-workspace-platform-workspaces","workspaces");async function Ci(e){if(!Pi)throw new Error("Unable to get workspace - IndexDB not supported");const t=await(0,wr.get)(e,Pi);if(t)return t.workspaceId=e.toString(),t.title=t.title||t.workspaceId,t}async function Mi(e){if(!Pi)throw new Error("Unable to get workspaces - IndexDB not supported");const t=await(0,wr.keys)(Pi),a=(await Promise.all(t.map((e=>Ci(e.toString()))))).filter((e=>!!e));return e?a.filter((t=>mr(t.title,e))):a}async function xi({workspace:e}){if(!Pi)throw new Error("Unable to create workspace - IndexDB not supported");const t=(await Mi()).find((t=>t.title===e.title));if(t&&t.workspaceId!==e.workspaceId)throw new Error(`Workspace with title '${e.title}' already exists.`);await(0,wr.set)(e.workspaceId,e,Pi)}async function Ii(e){if(!Pi)throw new Error("Unable to delete workspace - IndexDB not supported");await(0,wr.del)(e,Pi)}async function Ai({workspaceId:e,workspace:t}){if(!Pi)throw new Error("Unable to update workspaces - IndexDB not supported");if(!await Ci(e))throw new Error("workspace not found");await xi({workspace:t}),e!==t.workspaceId&&await Ii(e)}const Wi=e=>{const t=e.layout,a=t.content?Oa(t.content):[],n=a.length;return n>1?{...e,singleViewName:null}:1===n?{...e,singleViewName:a[0].name}:void 0},Di=async(e,t,a)=>{const n=await Ra().Browser.getAllAttachedPages(),o=new Set(n.map((e=>e.title)).filter((e=>!!e))),r=new Set(n.map((e=>e.pageId)).filter((e=>!!e))),i=t?.defaultPageOptions,s="enterprise"===a?.workspacePlatform?.windowType||"enterprise"===t?.defaultWindowOptions?.workspacePlatform?.windowType,c=await(async(e,t,a)=>{if(a)return ne();const n=t?.workspacePlatform?.newTabUrl;if(n)return n;const o=e?.defaultWindowOptions?.workspacePlatform?.newTabUrl;return o||void 0})(t,a,s);return Promise.all(e.map((async e=>{if("reparent"===e.multiInstanceViewBehavior)return{...e,layoutContainerKey:Bt()};((e,t)=>{e.pageId||=Bt(),t.has(e.pageId)&&(console.warn("PageID collision detected. All Page IDs should be unique. A random new pageId will be generated"),e.pageId=Bt()),t.add(e.pageId)})(e,r),s||(e.title=gn(e.title,Array.from(o.keys()))),o.add(e.title),e.panels?.reduce(((e,t)=>{const a=Object.values(w);if(!a.includes(t.position))throw new Error(`Encountered a panel with unsupported position "${t.position}". Supported positions are: ${a.toString()}`);if(1==e[t.position])throw new Error(`Found more than 1 panel at position: ${t.position}. Only 1 panel at a given position is currently supported.`);return{...e,[t.position]:e[t.position]+1}}),{[w.Left]:0,[w.Right]:0,[w.Top]:0,[w.Bottom]:0});const a="panels"in e?e.panels:i?.panels;let n=(l=e.layout,d=t?.defaultViewOptions,Fa({...l},(e=>Va(e,d))));var l,d;c&&!n?.settings?.newTabButton&&(n={...n,settings:{...n?.settings,newTabButton:{url:c}}});return{...i,...e,panels:a&&await cn(a),layoutContainerKey:Bt(),layout:n,isLayoutCreated:!1}})))},Ri=async(e,t)=>{try{await fin.Platform.getCurrentSync().createView({name:e,url:t,target:fin.me.identity,bounds:{top:0,left:0,width:0,height:0}},fin.me.identity)}catch(e){}};async function Ti(e){return e?"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==":(await Q()).displayViewTabDefaultIcon?"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==":"data:image/svg+xml,%3Csvg%20style%3D%22background-color%3A%237D808A%22%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2010%2010%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.64648%200.874962C4.84174%200.6797%205.15833%200.6797%205.35359%200.874962L9.12482%204.6462C9.32009%204.84146%209.32009%205.15804%209.12482%205.3533L5.35359%209.12454C5.15833%209.3198%204.84174%209.3198%204.64648%209.12454L0.875245%205.3533C0.679982%205.15804%200.679982%204.84146%200.875245%204.6462L4.64648%200.874962ZM5.00003%201.93562L1.9359%204.99975L5.00003%208.06388L8.06416%204.99975L5.00003%201.93562Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"}const Bi={dimensions:{borderWidth:3,headerHeight:30}};async function Ei(e,t,a){let n=e;const o="enterprise"===n.workspacePlatform?.windowType||"enterprise"===t?.defaultWindowOptions?.workspacePlatform?.windowType;if(n.layout&&!n.workspacePlatform?.pages?.length){const e=await Rn(),a={...await Ut(e,n.layout),isActive:!0};n.workspacePlatform||={},n.workspacePlatform.pages=await Di([a],t,n)}t?.browserIconSize&&(n.workspacePlatform||={},n.workspacePlatform.browserIconSize=t.browserIconSize);const r=a?.themes?.[0];if(n.workspacePlatform?.pages?.length){const e=await Di(n.workspacePlatform.pages,t,n),i=e,s=(e=>{if(!e)return;let t=e.find((e=>e.isActive));return!t&&e.length>0&&(e[0].isActive=!0,t=e[0]),t})(i);if(i.forEach((e=>{e.pageId!==s?.pageId&&(e.isActive=!1)})),await ln(i),n.workspacePlatform.pages=e,n=Wt({},await(async e=>({contextMenuOptions:{enabled:!1},experimental:{showFavicons:!0,defaultFaviconUrl:await Ti(e)},viewVisibility:{showViewsOnSplitterDrag:{enabled:!0},showViewsOnWindowResize:{enabled:!0}}}))(o),t?.defaultWindowOptions,n,await(async e=>({backgroundThrottling:!0,url:await oe(e,!0),contextMenu:!0,closeOnLastViewRemoved:!1,permissions:{System:{openUrlWithBrowser:{enabled:!0,protocols:["mailto"]}}}}))(o)),s.layout=Wt(s.layout,Bi),async function(e){if(e.icon||e.taskbarIcon){const t=fin.Application.getCurrentSync(),a=await(await t.getWindow()).getOptions();e.taskbarIconGroup||=a.taskbarIconGroup||fin.me.identity.uuid}if(e.workspacePlatform.icon)if("object"==typeof e.workspacePlatform.icon){const t=window.matchMedia("(prefers-color-scheme: dark)");e.icon=t.matches?e.workspacePlatform.icon.dark:e.workspacePlatform.icon.light}else e.icon=e.workspacePlatform.icon}(n),!n.backgroundColor&&r)if("palette"in r)n.backgroundColor=r?.palette?.background2||r?.palette?.backgroundPrimary;else{const e=a.selectedScheme===m.Dark||a.selectedScheme===m.System&&window.matchMedia("(prefers-color-scheme: dark)")?r?.palettes.dark:r?.palettes.light;n.backgroundColor=e?.background2||e?.backgroundPrimary}n=Me(n,!0);const c=await oe(o,!0);c&&(n.url=c),n.layout=s.layout,n.layoutSnapshot=((e,t)=>({layouts:e.reduce(((e,a)=>{if(!a.isActive){if(!t)return e;if(!Wi(a).singleViewName)return e}return e[a.layoutContainerKey]=a.layout,e}),{}),pages:e}))(n.workspacePlatform.pages,o),n.workspacePlatform.windowType=n.workspacePlatform.windowType??P.Browser}if(n.cornerRounding&&delete n.cornerRounding,n.name||n.layoutSnapshot?n.contextMenuOptions?.template?.length>0?n.contextMenuOptions.template=n.contextMenuOptions.template.filter((e=>"print"!==e)):n.contextMenuOptions={template:[],enabled:!1}:n.name=`${de.ClassicWindow}-${Bt()}`,n.workspacePlatform&&a&&(n.workspacePlatform._themeData=a),o){const e=await ne();n.workspacePlatform.newPageUrl=e,n.workspacePlatform.newTabUrl=e,n.layout&&(n.layout.dimensions.borderWidth=4,n.layout.dimensions.headerHeight=28),n.name=n.name||`${de.BrowserWindow}-${Bt()}`;if(n.name.startsWith(de.BrowserWindow)){(async e=>{const t=await ae(),a=de.BrowserAddressSearchPrefix+e.name,n=t+K.BrowserPopupMenuAddressSearchResultsView,o=[],r=Ri(a,n);o.push(r);const i=de.AICompanionPrefix+e.name,{url:s,enabled:c}=sn();if(c){const e=Ri(i,s);o.push(e)}await Promise.all(o)})(n);const{enabled:e}=sn();n.workspacePlatform.isAiEnabled=e}}return n}const Fi=async(e,t)=>{const a={uuid:t.uuid,name:t.name};await So(a,e.title??await oi(),e.shouldCenterOnMonitor)&&fin.Platform.getCurrentSync().quit()},Vi=async(e,t)=>{const a=Ra(),n=await a.Browser.getLastFocusedWindow();if(!n)return;const o=a.Browser.wrapSync(n),{title:r,description:i}=e,s=await Co({title:r,description:i,identity:o.identity});s&&o._sendUpdateVersionModalResponse({identity:t,response:s})},Ni=e=>{const t=e.name===de.Home,a=e.name?.startsWith(de.HomeInternal),n=e.name?.startsWith(de.BrowserMenu)||e.name?.startsWith(de.BrowserSaveMenu);return!t&&!a&&!n};const Li=e=>JSON.parse(JSON.stringify(e));async function _i(e,t,a){const n=e.manifestUrl?await t({manifestUrl:e.manifestUrl},a):void 0;if(n?.interop&&e.interop){const t={...e,...n,interop:e.interop};return delete t.manifestUrl,t}return e}const Oi=e=>{const t=Li(e);return t._internalWorkspaceData?.browserNavigationButtons&&(t.workspacePlatform={...t.workspacePlatform,browserNavigationButtons:t._internalWorkspaceData.browserNavigationButtons},delete t._internalWorkspaceData.browserNavigationButtons),t},Ui=e=>{const t=Li(e);return t.workspacePlatform&&(t._internalWorkspaceData={...t._internalWorkspaceData,...t.workspacePlatform},delete t.workspacePlatform),t},Gi={reload:[{keys:"Ctrl+R",preventDefault:!0}],back:[{keys:"Alt+Left",preventDefault:!0}],forward:[{keys:"Alt+Right",preventDefault:!0}]},Hi={reload:[{keys:"Cmd+R",preventDefault:!0}],back:[{keys:"Cmd+[",preventDefault:!0},{keys:"Cmd+Left",preventDefault:!0}],forward:[{keys:"Cmd+]",preventDefault:!0},{keys:"Cmd+Right",preventDefault:!0}]},$i=async()=>await Ar()?Gi:Hi,Ki=(e,t)=>{const a=fin.View.wrapSync(e);if(!t)return;const n=e=>{(async(e,t,a)=>{if("keyDown"!==a.inputType)return;const n=await(async e=>{const t=await e.getCurrentWindow(),a=await t.getOptions(),n=a.workspacePlatform?.navigationButtons;return n.enabled&&!n.hotkeysDisabled})(e),o=await Ar();if(n){if(t.reload){const n=a.ctrlKey&&!a.altKey&&!a.metaKey&&!a.shiftKey&&"r"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"r"===a.key;(o?n:r)&&t?.reload&&(e.reload(),ze({type:"View",action:"Reload",value:e.identity.name}))}if(t.back){const n=!a.ctrlKey&&a.altKey&&!a.metaKey&&!a.shiftKey&&"ArrowLeft"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"ArrowLeft"===a.key,i=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"["===a.key;(o?n:r||i)&&t?.back&&(e.navigateBack(),ze({type:"View",action:"Back",value:e.identity.name}))}if(t.forward){const n=!a.ctrlKey&&a.altKey&&!a.metaKey&&!a.shiftKey&&"ArrowRight"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"ArrowRight"===a.key,i=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"]"===a.key;(o?n:r||i)&&t?.forward&&(e.navigateForward(),ze({type:"View",action:"Forward",value:e.identity.name}))}}})(a,t,e)};a.addListener("hotkey",n),a.once("destroyed",(()=>{a.removeListener("hotkey",n)}))},zi=(e,t)=>Li(e).map((e=>("componentState"in e?e.componentState=t(e.componentState):"content"in e&&(e.content=zi(e.content,t)),e))),Ji=e=>{if(e){const t=Li(e);return t.content&&(t.content=zi(t.content,Oi)),t}return e},Zi=e=>{if(e){const t=Li(e);return t.content&&(t.content=zi(t.content,Ui)),t}return e};async function qi({app:e,target:t}){const a=fin.Platform.getCurrentSync();switch(e.manifestType){case c.Snapshot:return a.applySnapshot(e.manifest);case c.View:return async function(e,t){const a=fin.Platform.getCurrentSync();if("view"===t.entityType){const a=fin.View.wrapSync(t),n=await a.getParentLayout();return await n.replaceView(t,{manifestUrl:e.manifest,url:void 0,target:void 0}),a.destroy()}return a.createView({name:void 0,url:void 0,manifestUrl:e.manifest,target:void 0})}(e,t);case c.External:return fin.System.launchExternalProcess({path:e.manifest,uuid:e.appId});default:return fin.Application.startFromManifest(e.manifest)}}let ji;const Qi=()=>{if(!ji){const e=rt(`${"undefined"!=typeof fin&&fin.me.identity.uuid}-enterprise-app-directory`);ji=e()}return ji};async function Yi(e){if(!await We(e.identity))return[];return(await Qi()).dispatch(Yt.GetApps,e.req)}async function Xi(e){if(!await We(e.identity))return[];return(await Qi()).dispatch(Yt.GetSearchProviders,e)}async function es(e){return(await Qi()).dispatch(Yt.GetCuratedContent,e)}async function ts(e){return(await Qi()).dispatch(Yt.GetRecentlyVisited,e)}async function as(e){const t=(await be()).map((async e=>{const t=await e.getOptions();t.workspacePlatform?.pages&&t.layout&&await(async e=>(await qt(e)).dispatch(aa.UpdatePagesWindowOptions))(e.identity)}));return await Promise.all(t),e?e():_t()}let ns=[];const os=()=>ns;async function rs(e){const t=e=>{if(!e.includes("#")&&!e.includes("rgb")&&!e.includes("hsl"))throw new Error("Background primary color is not the right format.")};e.forEach((e=>{"palette"in e&&t(e.palette.backgroundPrimary),"palettes"in e&&(t(e.palettes.dark.backgroundPrimary),t(e.palettes.light.backgroundPrimary))})),((e,t)=>{const a=e[0];if("palette"in a){const{palette:e}=a;ma.setPalettes({dark:e,light:e},t)}if("palettes"in a){const{dark:e,light:n}=a.palettes;ma.setPalettes({dark:e,light:n},t)}})(e,await Ar()),ns=e}const is=(e,t)=>a=>{const n=null!==e;return class extends a{constructor(){super(),this.isWorkspacePlatform=()=>({isWorkspacePlatform:!0,isBrowserInitialized:!!e,analytics:{isSupported:!0}}),this.detachPagesFromWindow=Mn,this.getAllAttachedPages=hn,this.getPagesForWindow=In,this.getPageForWindow=An,this.markUnsavedPagesAsSavedInternal=Ln,this.launchApp=qi,this.savePage=vn,this.saveWorkspace=To,this.createSavedPageInternal=yn,this.updateSavedPageInternal=Sn,this.deleteSavedPageInternal=fn,this.reorderPagesForWindow=Wn,this.getUniquePageTitle=Rn,this.updatePageForWindow=Cn,this.getLastFocusedBrowserWindow=Xo,this.getThemes=os,this.invokeCustomActionInternal=ir,this.requestQuitPlatformDialogInternal=Fi,this.getCurrentWorkspace=Do,this.setActiveWorkspace=Ao,this.getLanguageResourcesInternal=qo,this.getPageByViewIdentity=async e=>{const t=await fin.Platform.Layout.getLayoutByViewIdentity(e),a=t.identity;if(!("layoutName"in a))throw new Error("Failed to get layout's identity");const n=await Ra().Browser.wrapSync(t.identity).getPages(),o=n.findIndex((e=>e.layoutName===a.layoutName));if(-1===o)throw new Error("Failed to get page's index");return{windowIdentity:{name:t.identity.name,uuid:t.identity.uuid},page:n[o],pageIndex:o}},this.openGlobalContextMenuInternal=this.openGlobalContextMenuInternal.bind(this),this.openGlobalContextMenu=this.openGlobalContextMenu.bind(this),this.getSavedPages=this.getSavedPages.bind(this),this.getSavedPage=this.getSavedPage.bind(this),this.createSavedPage=this.createSavedPage.bind(this),this.updateSavedPage=this.updateSavedPage.bind(this),this.deleteSavedPage=this.deleteSavedPage.bind(this),this.handlePageChanges=this.handlePageChanges.bind(this),this.attachPagesToWindow=this.attachPagesToWindow.bind(this),this.openViewTabContextMenuInternal=this.openViewTabContextMenuInternal.bind(this),this.openViewTabContextMenu=this.openViewTabContextMenu.bind(this),this.openPageTabContextMenuInternal=this.openPageTabContextMenuInternal.bind(this),this.openPageTabContextMenu=this.openPageTabContextMenu.bind(this),this.getSavedWorkspaces=this.getSavedWorkspaces.bind(this),this.getSavedWorkspace=this.getSavedWorkspace.bind(this),this.createSavedWorkspace=this.createSavedWorkspace.bind(this),this.updateSavedWorkspace=this.updateSavedWorkspace.bind(this),this.deleteSavedWorkspace=this.deleteSavedWorkspace.bind(this),this.getCurrentWorkspace=this.getCurrentWorkspace.bind(this),this.getDockProviderConfig=this.getDockProviderConfig.bind(this),this.saveDockProviderConfig=this.saveDockProviderConfig.bind(this),this.applyWorkspace=this.applyWorkspace.bind(this),this.restoreLastSavedWorkspaceInternal=this.restoreLastSavedWorkspaceInternal.bind(this),this.setActiveWorkspace=this.setActiveWorkspace.bind(this),this.openSaveButtonContextMenu=this.openSaveButtonContextMenu.bind(this),this.openSaveButtonContextMenuInternal=this.openSaveButtonContextMenuInternal.bind(this),this.getSelectedScheme=this.getSelectedScheme.bind(this),this.setSelectedScheme=this.setSelectedScheme.bind(this),this.analyticsInternal=this.analyticsInternal.bind(this),this.handleAnalytics=this.handleAnalytics.bind(this),this.getLanguage=this.getLanguage.bind(this),this.setLanguage=this.setLanguage.bind(this),this.handleSaveModalOnPageClose=this.handleSaveModalOnPageClose.bind(this),this.shouldPageClose=this.shouldPageClose.bind(this),this.shouldWindowClose=this.shouldWindowClose.bind(this),this.handlePagesAndWindowClose=this.handlePagesAndWindowClose.bind(this),this.setActivePage=this.setActivePage.bind(this),this.handlePageChanges=this.handlePageChanges.bind(this),this.copyPage=this.copyPage.bind(this),this.addPage=this.addPage.bind(this),this.addDefaultPage=this.addDefaultPage.bind(this),this.markUnsavedPagesAsSavedInternal=this.markUnsavedPagesAsSavedInternal.bind(this),this.trackRemovedTabInternal=this.trackRemovedTabInternal.bind(this),this.restoreRemovedTabInternal=this.restoreRemovedTabInternal.bind(this),this.trackVisitedSiteInternal=this.trackVisitedSiteInternal.bind(this),this.getRecentlyVisitedSitesInternal=this.getRecentlyVisitedSitesInternal.bind(this),this.getFrequentlyVisitedSitesInternal=this.getFrequentlyVisitedSitesInternal.bind(this),this.searchSitesInternal=this.searchSitesInternal.bind(this),this.getSearchProvidersInternal=this.getSearchProvidersInternal.bind(this),this.getCuratedContentInternal=this.getCuratedContentInternal.bind(this),this.handleRequestNavigationInternal=this.handleRequestNavigationInternal.bind(this),this.refreshBookmarksInternal=this.refreshBookmarksInternal.bind(this),this.launchBookmarkInternal=this.launchBookmarkInternal.bind(this),this.getNotificationsConfig=this.getNotificationsConfig.bind(this),this.updateDockFavoritesInternal=this.updateDockFavoritesInternal.bind(this),this.updateContentMenuInternal=this.updateContentMenuInternal.bind(this),this.launchDockEntryInternal=this.launchDockEntryInternal.bind(this),this.setDockFavoritesOrderInternal=this.setDockFavoritesOrderInternal.bind(this),this.navigateContentMenuInternal=this.navigateContentMenuInternal.bind(this),this.setDefaultDockButtonsOrderInternal=this.setDefaultDockButtonsOrderInternal.bind(this),this.getDockWorkspacesContextMenuInternal=this.getDockWorkspacesContextMenuInternal.bind(this),this.handleDockWorkspacesMenuResponseInternal=this.handleDockWorkspacesMenuResponseInternal.bind(this),this.removeDockFavoriteInternal=this.removeDockFavoriteInternal.bind(this),this.addDockFavoriteInternal=this.addDockFavoriteInternal.bind(this),this.focusAndExpandSearchInternal=this.focusAndExpandSearchInternal.bind(this),this.sendUpdateVersionModalResponseInternal=this.sendUpdateVersionModalResponseInternal.bind(this),this.requestQuitPlatformDialogInternal=Fi.bind(this),this.showUpdateVersionModalInternal=Vi.bind(this)}async applyWorkspace(...e){return xo.apply(this,e)}async restoreLastSavedWorkspaceInternal(...e){return Io.apply(this,e)}async getSnapshot(){const e=n?await as((async()=>_t(await super.getSnapshot(void 0,fin.me.identity)))):await _t(await super.getSnapshot(void 0,fin.me.identity));let t={...e,windows:e.windows.filter(Ni).map(Lt)};return t=(e=>{const t=Li(e);return t.windows.forEach((e=>{e.layout&&(e.layout=Ji(e.layout)),e.workspacePlatform?.pages?.forEach((e=>{e?.layout&&(e.layout=Ji(e.layout))}))})),t})(t),t}async getViewSnapshot(e){let t=await super.getViewSnapshot(e);return t=Oi(t),t}async applySnapshot({snapshot:e,options:t}){let a=e;"string"==typeof a&&(a=await super.fetchManifest({manifestUrl:a},fin.me.identity));const o=function(e){for(const t of e.windows)if(t.workspacePlatform?.pages?.length)return!0;return!1}(a);if(!n&&o)throw new Error("This snapshot cannot be applied as the platform has been initialized without the browser.");return a=(e=>{const t=Li(e);return t.windows.forEach((e=>{e.layout=Zi(e.layout),e.workspacePlatform?.pages?.forEach((e=>{e.layout=Zi(e.layout)}))})),t})(a),super.applySnapshot({snapshot:a,options:t})}async createWindow(t,a){if(n&&"tearout"===t.reason){const e=await fin.Window.wrapSync(a).getOptions(),n=e.workspacePlatform?.windowType;t.taskbarIconGroup=e.taskbarIconGroup,n&&(t.workspacePlatform||={},t.workspacePlatform.windowType=e.workspacePlatform.windowType,n===P.Platform&&(t.url=e.url))}if(!n||t.workspacePlatform?.windowType===P.Platform){const e=await super.createWindow(t,a);return ze({type:"Window",action:"Open Window",value:e.identity.name,data:{uuid:e.identity.uuid}}),e}var o;o={allowed:!0},Ge||(Ge=!0,Ue(Oe.Browser,o)),((e=[])=>{const t=e.filter((e=>e.type!==S.Custom)),a=new Set,n=[];for(const e of t)a.has(e.type)&&n.push(e.type),a.add(e.type);if(n.length>0){const e=n.join(", ");throw new Error(`Encountered a duplicate "${e}" toolbar button. No more than one instance of a button type may be provided.`)}})(t.workspacePlatform?.toolbarOptions?.buttons);let r=(e=>"workspacePlatform"in e?e:(({workstacks:e,pages:t,...a})=>({...a,workspacePlatform:{pages:t||e||null}}))(e))(t);r=await Ei(r,e,{themes:os(),selectedScheme:this.getSelectedScheme()}),r=await(async e=>{const t=await fin.System.getMonitorInfo();let a=t.primaryMonitor;const n=e.defaultLeft,o=e.defaultTop;t.nonPrimaryMonitors.forEach((e=>{const{top:t,bottom:r,left:i,right:s}=e.availableRect;n>=i&&n<=s&&o>=t&&o<=r&&(a=e)}));const r=a.availableRect.bottom-a.availableRect.top,i=a.availableRect.right-a.availableRect.left;return e.defaultHeight=Math.min(e.defaultHeight||800,r),e.defaultWidth=Math.min(e.defaultWidth||800,i),e})(r);const i=await(e=>async(t,a)=>{let n=!1;const o=await e(t,a);return t?.workspacePlatform?._internalDeferShowOptions?.deferShowEnabled?(await o.addListener("show-requested",(async()=>{if(n)return;const e=await o.getOptions();await o.updateOptions({workspacePlatform:{...e.workspacePlatform,_internalDeferShowOptions:{...e.workspacePlatform._internalDeferShowOptions,autoShow:!0}}}),n=!0})),o):o})(((e,t)=>super.createWindow(e,t)))(r,a);return ze({type:"Window",action:"Open Window",value:i.identity.name,data:{uuid:i.identity.uuid}}),i}async createView(t,a){t.opts=Ba(t.opts,e?.defaultViewOptions),t.opts=await _i(t.opts,this.fetchManifest,a),t.opts=await(async e=>{const t=Li(e),a=t.workspacePlatform?.browserNavigationButtons;if(a){const e=Object.keys(a);for(const n of e)if(a[n]){const e=(await $i())[n];t.hotkeys?t.hotkeys.push(...e):t.hotkeys=[...e]}}return t})(t.opts),t.opts=Ui(t.opts);const n=await super.createView(t,a);return Ki(n.identity,t.opts._internalWorkspaceData?.browserNavigationButtons),n}async replaceView(t,a){return t.opts.newView=await Ba(t.opts.newView,e?.defaultViewOptions),t.opts.newView=await _i(t.opts.newView,this.fetchManifest,a),super.replaceView(t,a)}async replaceLayout(e,t){return await We(t)||delete e.opts.layout?.dimensions,super.replaceLayout(e,t)}async getSavedPage(...e){return br.apply(this,e)}async getSavedPages(...e){return yr.apply(this,e)}async createSavedPage(...e){return fr.apply(this,e)}async deleteSavedPage(...e){return Sr.apply(this,e)}async updateSavedPage(...e){return vr.apply(this,e)}async getSavedWorkspace(...e){return Ci.apply(this,e)}async getSavedWorkspaces(...e){return Mi.apply(this,e)}async createSavedWorkspace(...e){return xi.apply(this,e)}async deleteSavedWorkspace(...e){return Ii.apply(this,e)}async updateSavedWorkspace(...e){return Ai.apply(this,e)}async getDockProviderConfig(...e){return yi.apply(this,e)}async saveDockProviderConfig(...e){return fi.apply(this,e)}async attachPagesToWindow(t){const a=await Di(t.pages,e);await ln(a),await Pn({...t,pages:a})}async addPage(e){const t=await We(e.identity),a=await gt(e.identity),{page:n,insertionIndex:o}=e;n?.title||t||(n.title=await a.dispatch(dt.GetUniquePageTitle,void 0));const r=(await this.getAllAttachedPages()).find((e=>e.pageId===n.pageId||e.title===n.title));if(r){if(r.pageId===n.pageId)throw new Error(`page with id ${n.pageId} is already attached to a browser window ${r.parentIdentity.name}`);if(!t)throw new Error(`addPage title collision, page with title ${n.title} already exists, conflicting page id: ${r.pageId} with title ${r.title}`)}const i={identity:e.identity,pages:[{...n,multiInstanceViewBehavior:e.multiInstanceViewBehavior||"duplicate"}],insertionIndex:o};await this.attachPagesToWindow(i)}async addDefaultPage(e){await this.addPage(e),await this.setActivePage({identity:e.identity,pageId:e.page.pageId})}async setActivePage(...e){return xn.apply(this,e)}async openGlobalContextMenuInternal(...e){return di.apply(this,e)}async openGlobalContextMenu(...e){return li.apply(this,[...e,pr.GlobalMenu,ci.BottomRight])}async openViewTabContextMenuInternal(...e){return ui.apply(this,e)}async openViewTabContextMenu(...e){return li.apply(this,[...e,pr.ContextMenu])}async openPageTabContextMenuInternal(...e){return pi.apply(this,e)}async openPageTabContextMenu(...e){return li.apply(this,[...e,pr.ContextMenu])}async openSaveButtonContextMenu(...e){return li.apply(this,e)}async openSaveButtonContextMenuInternal(...e){return wi.apply(this,e)}getSelectedScheme(...e){return Wa.apply(this,e)}async setSelectedScheme(...e){return Aa.apply(this,e)}async handlePageChanges(...e){return Nn.apply(this,e)}async analyticsInternal(...e){return Zn.apply(this,e)}async handleAnalytics(...e){}async handleSaveModalOnPageClose(...e){return Tn.apply(this,e)}async shouldPageClose(...e){return Bn.apply(this,e)}async shouldWindowClose(...e){return En.apply(this,e)}handlePagesAndWindowClose(...e){return Fn.apply(this,e)}async copyPage(...e){return Vn.apply(this,e)}async getNotificationsConfig(){return t}async setLanguage(...e){return Zo.apply(this,e)}async getLanguage(){return Jo.apply(this)}async trackRemovedTabInternal(...e){return Cr.apply(this,e)}async restoreRemovedTabInternal(){const e=await(async()=>{const e=await(0,wr.keys)(Pr);if(e.length>0){const t=Math.max(...e),a=await(0,wr.get)(t,Pr);return await(0,wr.del)(t,Pr),a}})();if(e?.page)if(await fe(e.identity)){const t=Ra().Browser.wrapSync(e.identity);await t.addPage(e.page),await t.setActivePage(e.page.pageId)}else Ra().createWindow({name:e.identity.name,workspacePlatform:{pages:[e.page],windowType:P.Browser}});else e?.window&&Ra().createWindow({workspacePlatform:{pages:e.window.pages,windowType:P.Browser}})}async trackVisitedSiteInternal(...e){return xr.apply(this,e)}async getRecentlyVisitedSitesInternal(...e){return await ts.apply(this,e)}async getFrequentlyVisitedSitesInternal(...e){return Ir.apply(this,e)}async searchSitesInternal(...e){return await Yi.apply(this,e)}async getSearchProvidersInternal(...e){return await Xi.apply(this,e)}async getCuratedContentInternal(...e){return await es.apply(this,e)}async handleRequestNavigationInternal(...e){}async refreshBookmarksInternal(){(await Ra().Browser.getAllWindows()).forEach((async({identity:e})=>{(await qt(e)).dispatch(aa.RefreshBookmarksInternal)}));(await Zt(lr())).dispatch(aa.RefreshBookmarksInternal),await(async()=>{const e=await hi();if(e){const t=await qt(e.identity,gi);await t.dispatch(aa.RefreshBookmarksInternal)}})()}async launchBookmarkInternal(e){return Dr(e)}async updateDockFavoritesInternal(e){return(async e=>{const t=await hi();if(!t)throw new Error("Companion Dock window not found");{const a=await qt(t.identity,gi);await a.dispatch(ea.UpdateFavoriteEntries,e)}})(e)}async updateContentMenuInternal(e){return(async e=>{const t=await hi();if(!t)throw new Error("Companion Dock window not found");{const a=await qt(t.identity,gi);await a.dispatch(ea.UpdateContentMenu,e)}})(e)}async launchDockEntryInternal(e){return(async e=>(await mi()).dispatch("launch-entry",e))(e)}async setDefaultDockButtonsOrderInternal(e){return(async e=>(await mi()).dispatch("set-default-dock-buttons-order",e))(e)}async setDockFavoritesOrderInternal(e){return(async e=>(await mi()).dispatch("set-dock-favorites-order",e))(e)}async addDockFavoriteInternal(e){return(async e=>(await mi()).dispatch("add-favorite-entry",e))(e)}async removeDockFavoriteInternal(e){return(async e=>(await mi()).dispatch("remove-favorite-entry",e))(e)}async navigateContentMenuInternal(e){return(async e=>{const t=await hi();if(!t)throw new Error("Companion Dock window not found");{const a=await qt(t.identity,gi);await a.dispatch(ea.NavigateContentMenu,e)}})(e)}async getDockWorkspacesContextMenuInternal(){return(async()=>(await mi()).dispatch("get-dock-workspaces-context-menu",void 0))()}async handleDockWorkspacesMenuResponseInternal(e){return(async e=>(await mi()).dispatch("handle-dock-workspaces-menu-response",e))(e)}async focusAndExpandSearchInternal(){return ki()}async sendUpdateVersionModalResponseInternal(e){return vi(e)}async showUpdateVersionModalInternal(e,t){return Vi(e,t)}}};function ss(e,t,a){const n=is(e,a);try{return"function"==typeof t?e=>t(n(e)):Array.isArray(t)?[...t,n]:e=>new(n(e))}catch(e){throw new Error("WorkspacePlatform.init Error:",e)}}const cs=["green","purple","orange","red","pink","yellow"],ls="CONTEXT_GROUP_PAGE",ds=()=>e=>class extends e{getContextGroups(){return super.getContextGroups().map((e=>cs.includes(e.displayMetadata?.name)?{...e,displayMetadata:{...e.displayMetadata,name:en(e.displayMetadata?.name)}}:e))}},us=()=>{const e=new Set(ti.keys());return t=>class extends t{constructor(){super(),this.onClientConnected=async e=>{if(e.name.startsWith("internal-generated-view")){const{page:t}=await Ra().Browser.getPageByViewIdentity(e),a=t.contextGroup;this.joinContextGroup({contextGroupId:a??ls,target:e},{uuid:this.fin.me.uuid,name:this.fin.me.name})}};const e=this.interopClients.set;this.interopClients.set=(t,a)=>{e.call(this.interopClients,t,a),this.onClientConnected(a.clientIdentity)}}async joinContextGroup({contextGroupId:t,target:a},n){if(t!==ls)return super.joinContextGroup({contextGroupId:t,target:a},n);try{const t=(await Ra().Browser.getPageByViewIdentity(a)).page.layoutName;if(!t)throw new Error("View does not belong to a page");if(!e.has(t)&&(e.add(t),!this.contextGroupsById.has(t))){const e=new Map;this.contextGroupsById.set(t,e)}await super.joinContextGroup({contextGroupId:t,target:a},n),a.name}catch(e){JSON.stringify(a),e.stack}}getContextGroups(){return Array.from(e).map((e=>({id:e,displayMetadata:ti.get(e)??{}})))}setContextForGroup(e,t){if(!this.contextGroupsById.has(t)){const e=new Map;this.contextGroupsById.set(t,e)}return super.setContextForGroup(e,t)}}},ps=(e,t)=>{const a=(e=>De(e)?us():ds())(t);try{return"function"==typeof e?t=>e(a(t)):Array.isArray(e)?[...e,a]:e=>new(a(e))}catch(e){throw new Error("WorkspacePlatform.init Error:",e)}};async function ws(){or(),async function(){const e=fin.Application.getCurrentSync();await e.addListener("window-focused",tr),await e.addListener("window-closed",ar)}();Ao(await Wo())}let gs;async function hs(e,t){if(!await fe({uuid:we.uuid,name:de.DockCompanion})){const a=await Ne(we);await t.createWindow(Me({name:de.DockCompanion,url:await ae()+K.EnterpriseDock,autoShow:!0,frame:!1,smallWindow:!0,saveWindowState:!1,defaultHeight:xe,defaultWidth:Ie,includeInSnapshots:!1,defaultTop:e.dockPosition?.top??Ae,defaultLeft:e.dockPosition?.left??a.left-Ie/2,workspacePlatform:{windowType:"enterprise",...e},throttling:"disabled",resizable:!1,maximizable:!1,backgroundColor:await Mt("background1")}))}}function ms({overrideCallback:e,interopOverride:t,browser:a,notifications:n,analytics:o,integrations:r=[],workspaceAsar:i}){if(!A)throw new Error("Cannot be used outside an OpenFin env.");return gs||(gs=(async()=>{const s=fin.Platform.getCurrentSync();var c,l,d;if(s.once("platform-api-ready",(()=>ws())),s.on("window-show-all-downloads",(({name:e,uuid:t})=>{Go({name:e,uuid:t})})),a?.title&&(c=a.title,ni=c),qn(o),i){const e=`workspace-${encodeURIComponent(fin.me.uuid)}`,{baseUrl:t}=await fin.System.serveAsset({...i,hostName:e});Y(t)}if(a?.browserBaseUrl&&Y(a.browserBaseUrl),De(a)){on=!0,l=a,nn=l?.aiPanelOptions,sn();const e=ka();e.setWorkspaceStorageProxy(await(async e=>{const t=`storage-proxy-window-${crypto.randomUUID()}`,[a,n]=await Promise.all([fin.InterApplicationBus.Channel.connect(`channel-${t}`,{wait:!0}),fin.Window.create({autoShow:!1,includeInSnapshots:!1,name:t,url:e})]);return{setItem:(e,t)=>a.dispatch("setItem",{key:e,value:t}),destroy:()=>n.close()}})(`${await ee()}${K.EnterpriseStorageProxy}`)),await e.trySynchronizeWorkspaceStorage()}return await fin.Platform.init({overrideCallback:ss(a,e||a?.overrideCallback,n),interopOverride:ps(t||a?.interopOverride,a)}),d={allowed:!0},Ue(Oe.Platform,d),await Promise.all(r.map((async e=>{((e,t)=>{Ue(`${Oe.Microflow}:${e}`,t,"integration-feature")})(e.workflowIntegrationName,{allowed:!0,apiVersion:_}),await e._initializeWorkflows()}))),s})()),gs}const ks=async({theme:e,customActions:t,language:a,...n})=>{const o=_.split(".").map((e=>parseInt(e))),r=await(async e=>{if((await Q()).disableRuntimeValidation)return!0;if(await We())return!0;const t=(await fin.System.getVersion()).split(".").map((e=>parseInt(e)));return e.every(((a,n)=>!(n<3)||t[n]===e[n]))})(o);if(!r)throw new Error(`Runtime version is not supported. ${o[0]}.${o[1]}.${o[2]}.* is required`);var i;return e&&(rs(e),i={allowed:!0},Ue(Oe.Theming,i)),t&&(rr=t),await jo(a?.initialLanguage),ms(n)}})(),module.exports=n})();
2
2
  //# sourceMappingURL=index.js.map