@emailmaker/emailmaker 1.0.117-alpha.5 → 1.0.118-alpha.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/README.md +1 -1
- package/asset-manifest.json +31 -31
- package/emailmaker-esm.js +1 -1
- package/emailmaker.d.ts +4 -0
- package/emailmaker.js +1 -1
- package/iframe/429.js +1 -1
- package/iframe/766.js +1 -1
- package/iframe/iframe-eblock.56155892f2bc2a3cb105.html +1 -0
- package/iframe/iframe.56155892f2bc2a3cb105.html +1 -0
- package/iframe/index.html +1 -1
- package/iframe/js/525.2072a806.js +1 -0
- package/iframe/js/576.eb29a7e7.js +1 -0
- package/iframe/js/576.eb29a7e7.js.LICENSE.txt +1 -0
- package/iframe/js/847.ca533478.js +1 -0
- package/iframe/js/847.ca533478.js.LICENSE.txt +14 -0
- package/iframe/js/882.684065fa.js +1 -0
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox-eblock.js.LICENSE.txt +2 -0
- package/package.json +1 -1
- package/static/css/781.02739981.chunk.css +2 -0
- package/static/css/main.28e32d76.css +2 -0
- package/static/js/{3857.216335eb.js → 3857.a5abf7ff.js} +3 -3
- package/static/js/4824.157d5b8d.js +3 -0
- package/static/js/5172.ad74dde1.js +2 -0
- package/static/js/{6488.a82c8227.js → 6488.d5c32b32.js} +3 -3
- package/static/js/7304.6957885f.js +3 -0
- package/static/js/{9746.9e4feb1c.js → 7455.c52148f3.js} +3 -3
- package/static/js/{9746.9e4feb1c.js.LICENSE.txt → 7455.c52148f3.js.LICENSE.txt} +2 -0
- package/static/js/781.fa20049e.js +3 -0
- package/static/js/9376.b9825431.js +2 -0
- package/static/js/emailmaker_core.86853555.js +2 -0
- package/iframe/iframe-eblock.3d39ec0d6695dfd04dfe.html +0 -1
- package/iframe/iframe.3d39ec0d6695dfd04dfe.html +0 -1
- package/iframe/js/525.f6a86285.js +0 -1
- package/iframe/js/781.8a414cb4.js +0 -1
- package/iframe/js/781.8a414cb4.js.LICENSE.txt +0 -14
- package/iframe/js/882.3ca60778.js +0 -1
- package/static/css/2527.b16e1091.chunk.css +0 -2
- package/static/css/main.f1274803.css +0 -2
- package/static/js/2527.e0380bd2.js +0 -3
- package/static/js/2751.e257e5ca.js +0 -3
- package/static/js/4038.63d9aaa7.js +0 -2
- package/static/js/5125.cfbf5837.js +0 -3
- package/static/js/717.dd457af5.js +0 -2
- package/static/js/emailmaker_core.1c45f280.js +0 -2
- /package/iframe/js/{525.f6a86285.js.LICENSE.txt → 525.2072a806.js.LICENSE.txt} +0 -0
- /package/static/js/{3857.216335eb.js.LICENSE.txt → 3857.a5abf7ff.js.LICENSE.txt} +0 -0
- /package/static/js/{2751.e257e5ca.js.LICENSE.txt → 4824.157d5b8d.js.LICENSE.txt} +0 -0
- /package/static/js/{6488.a82c8227.js.LICENSE.txt → 6488.d5c32b32.js.LICENSE.txt} +0 -0
- /package/static/js/{5125.cfbf5837.js.LICENSE.txt → 7304.6957885f.js.LICENSE.txt} +0 -0
- /package/static/js/{2527.e0380bd2.js.LICENSE.txt → 781.fa20049e.js.LICENSE.txt} +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 2527.e0380bd2.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[2527],{76176:(e,t,n)=>{n.d(t,{e:()=>r});n(61824);var o=n(56226),i=n(60742);const r={clipboard:{writeText:i.ib||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:i.ib||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},pointerEvents:o.G.PointerEvent&&("ontouchstart"in o.G||navigator.maxTouchPoints>0)}},20759:(e,t,n)=>{n.d(t,{$l:()=>l,Gs:()=>g,MB:()=>a,Sw:()=>u,bb:()=>d,gN:()=>c,mU:()=>p,pJ:()=>h});var o=n(97947),i=n(48021).Buffer;const r="undefined"!==typeof i;let s;new o.d(()=>new Uint8Array(256));class a{static wrap(e){return r&&!i.isBuffer(e)&&(e=i.from(e.buffer,e.byteOffset,e.byteLength)),new a(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return r?this.buffer.toString():(s||(s=new TextDecoder(void 0,{ignoreBOM:!0})),s.decode(this.buffer))}}function l(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function c(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function d(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function u(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function h(e,t){return e[t]}function g(e,t,n){e[n]=t}const m="0123456789abcdef";function p({buffer:e}){let t="";for(let n=0;n<e.length;n++){const o=e[n];t+=m[o>>>4],t+=m[15&o]}return t}},3890:(e,t,n)=>{n.d(t,{J1:()=>x,Jo:()=>N,Nd:()=>G,O:()=>R,WJ:()=>P,WP:()=>l,dE:()=>u,dt:()=>Z,ko:()=>d,ne:()=>Y,or:()=>a,uU:()=>J,yr:()=>M});var o=n(36119),i=n(78349),r=n(92392),s=n(20219);function a(...e){return function(t,n){for(let o=0,i=e.length;o<i;o++){const i=e[o](t,n);if(i)return i}return null}}c.bind(void 0,!1);const l=c.bind(void 0,!0);function c(e,t,n){if(!n||n.length<t.length)return null;let o;return o=e?(0,s.ns)(n,t):0===n.indexOf(t),o?t.length>0?[{start:0,end:t.length}]:[]:null}function d(e,t){if(e.length>t.length)return null;e=(0,r.n)(e);const n=(t=(0,r.n)(t)).indexOf(e);return-1===n?null:[{start:n,end:n+e.length}]}function u(e,t){return e.length>t.length?null:h(e.toLowerCase(),t.toLowerCase(),0,0)}function h(e,t,n,o){if(n===e.length)return[];if(o===t.length)return null;if(e[n]===t[o]){let i=null;return(i=h(e,t,n+1,o+1))?C({start:o,end:o+1},i):null}return h(e,t,n,o+1)}function g(e){return 97<=e&&e<=122}function m(e){return 65<=e&&e<=90}function p(e){return 48<=e&&e<=57}function f(e){return 32===e||9===e||10===e||13===e}const w=new Set;function y(e){return f(e)||w.has(e)}function b(e,t){return e===t||y(e)&&y(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach(e=>w.add(e.charCodeAt(0)));const v=new Map;function k(e){if(v.has(e))return v.get(e);let t;const n=(0,i.N)(e);return n&&(t=n),v.set(e,t),t}function S(e){return g(e)||m(e)||p(e)}function C(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function _(e,t){for(let n=t;n<e.length;n++){const t=e.charCodeAt(n);if(m(t)||p(t)||n>0&&!S(e.charCodeAt(n-1)))return n}return e.length}function E(e,t,n,o){if(n===e.length)return[];if(o===t.length)return null;if(e[n]!==t[o].toLowerCase())return null;{let i=null,r=o+1;for(i=E(e,t,n+1,o+1);!i&&(r=_(t,r))<t.length;)i=E(e,t,n+1,r),r++;return null===i?null:C({start:o,end:o+1},i)}}function A(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){let t=0,n=0,o=0,i=0;for(let r=0;r<e.length;r++)o=e.charCodeAt(r),m(o)&&t++,g(o)&&n++,f(o)&&i++;return 0!==t&&0!==n||0!==i?t<=5:e.length<=30}(e))return null;t.length>60&&(t=t.substring(0,60));const n=function(e){let t=0,n=0,o=0,i=0,r=0;for(let s=0;s<e.length;s++)r=e.charCodeAt(s),m(r)&&t++,g(r)&&n++,S(r)&&o++,p(r)&&i++;return{upperPercent:t/e.length,lowerPercent:n/e.length,alphaPercent:o/e.length,numericPercent:i/e.length}}(t);if(!function(e){const{upperPercent:t,lowerPercent:n,alphaPercent:o,numericPercent:i}=e;return n>.2&&t<.8&&o>.6&&i<.2}(n)){if(!function(e){const{upperPercent:t,lowerPercent:n}=e;return 0===n&&t>.6}(n))return null;t=t.toLowerCase()}let o=null,i=0;for(e=e.toLowerCase();i<t.length&&null===(o=E(e,t,0,i));)i=_(t,i+1);return o}function x(e,t,n=!1){if(!t||0===t.length)return null;let o=null,i=0;for(e=(0,r.n)(e),t=(0,r.n)(t);i<t.length&&(o=I(e,t,0,i,n),null===o);)i=L(t,i+1);return o}function I(e,t,n,o,i){let r=0;if(n===e.length)return[];if(o===t.length)return null;if(!b(e.charCodeAt(n),t.charCodeAt(o))){const i=k(e.charCodeAt(n));if(!i)return null;for(let e=0;e<i.length;e++)if(!b(i[e],t.charCodeAt(o+e)))return null;r+=i.length-1}let s=null,a=o+r+1;if(s=I(e,t,n+1,a,i),!i)for(;!s&&(a=L(t,a))<t.length;)s=I(e,t,n+1,a,i),a++;if(!s)return null;if(e.charCodeAt(n)!==t.charCodeAt(o)){const i=k(e.charCodeAt(n));if(!i)return s;for(let e=0;e<i.length;e++)if(i[e]!==t.charCodeAt(o+e))return s}return C({start:o,end:o+r+1},s)}function L(e,t){for(let n=t;n<e.length;n++)if(y(e.charCodeAt(n))||n>0&&y(e.charCodeAt(n-1)))return n;return e.length}const T=a(l,A,function(e,t){if(e.length>t.length)return null;const n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]}),D=a(l,A,u),O=new o.qK(1e4);function M(e,t,n=!1){if("string"!==typeof e||"string"!==typeof t)return null;let o=O.get(e);o||(o=new RegExp((0,s.Bm)(e),"i"),O.set(e,o));const i=o.exec(t);return i?[{start:i.index,end:i.index+i[0].length}]:n?D(e,t):T(e,t)}function R(e,t){const n=Z(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?P(n):null}function N(e,t,n,o,i,r){const s=Math.min(13,e.length);for(;n<s;n++){const s=Z(e,t,n,o,i,r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(s)return s}return[0,r]}function P(e){if("undefined"===typeof e)return[];const t=[],n=e[1];for(let o=e.length-1;o>1;o--){const i=e[o]+n,r=t[t.length-1];r&&r.end===i?r.end=i+1:t.push({start:i,end:i+1})}return t}const W=128;function V(){const e=[],t=[];for(let n=0;n<=W;n++)t[n]=0;for(let n=0;n<=W;n++)e.push(t.slice(0));return e}function H(e){const t=[];for(let n=0;n<=e;n++)t[n]=0;return t}const F=H(2*W),U=H(2*W),z=V(),j=V(),B=V();function $(e,t){if(t<0||t>=e.length)return!1;const n=e.codePointAt(t);switch(n){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!(0,s.Ss)(n)}}function q(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function K(e,t,n){return t[e]!==n[e]}var Y;!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(Y||(Y={}));class G{static{this.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}}constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}function Z(e,t,n,o,i,r,s=G.default){const a=e.length>W?W:e.length,l=o.length>W?W:o.length;if(n>=a||r>=l||a-n>l-r)return;if(!function(e,t,n,o,i,r,s=!1){for(;t<n&&i<r;)e[t]===o[i]&&(s&&(F[t]=i),t+=1),i+=1;return t===n}(t,n,a,i,r,l,!0))return;!function(e,t,n,o,i,r){let s=e-1,a=t-1;for(;s>=n&&a>=o;)i[s]===r[a]&&(U[s]=a,s--),a--}(a,l,n,r,t,i);let c=1,d=1,u=n,h=r;const g=[!1];for(c=1,u=n;u<a;c++,u++){const s=F[u],m=U[u],p=u+1<a?U[u+1]:l;for(d=s-r+1,h=s;h<p;d++,h++){let a=Number.MIN_SAFE_INTEGER,p=!1;h<=m&&(a=Q(e,t,u,n,o,i,h,l,r,0===z[c-1][d-1],g));let f=0;a!==Number.MIN_SAFE_INTEGER&&(p=!0,f=a+j[c-1][d-1]);const w=h>s,y=w?j[c][d-1]+(z[c][d-1]>0?-5:0):0,b=h>s+1&&z[c][d-1]>0,v=b?j[c][d-2]+(z[c][d-2]>0?-5:0):0;if(b&&(!w||v>=y)&&(!p||v>=f))j[c][d]=v,B[c][d]=3,z[c][d]=0;else if(w&&(!p||y>=f))j[c][d]=y,B[c][d]=2,z[c][d]=0;else{if(!p)throw new Error("not possible");j[c][d]=f,B[c][d]=1,z[c][d]=z[c-1][d-1]+1}}}if(!g[0]&&!s.firstMatchCanBeWeak)return;c--,d--;const m=[j[c][d],r];let p=0,f=0;for(;c>=1;){let e=d;do{const t=B[c][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);p>1&&t[n+c-1]===i[r+d-1]&&!K(e+r-1,o,i)&&p+1>z[c][e]&&(e=d),e===d?p++:p=1,f||(f=e),c--,d=e-1,m.push(d)}l-r===a&&s.boostFullMatch&&(m[0]+=2);const w=f-a;return m[0]-=w,m}function Q(e,t,n,o,i,r,s,a,l,c,d){if(t[n]!==r[s])return Number.MIN_SAFE_INTEGER;let u=1,h=!1;return s===n-o?u=e[n]===i[s]?7:5:!K(s,i,r)||0!==s&&K(s-1,i,r)?!$(r,s)||0!==s&&$(r,s-1)?($(r,s-1)||q(r,s-1))&&(u=5,h=!0):u=5:(u=e[n]===i[s]?7:5,h=!0),u>1&&n===o&&(d[0]=!0),h||(h=K(s,i,r)||$(r,s-1)||q(r,s-1)),n===o?s>l&&(u-=h?3:5):u+=c?h?2:0:h?0:1,s+1===a&&(u-=h?3:5),u}function J(e,t,n,o,i,r,s){return function(e,t,n,o,i,r,s,a){let l=Z(e,t,n,o,i,r,a);0;if(e.length>=3){const t=Math.min(7,e.length-1);for(let s=n+1;s<t;s++){const t=X(e,s);if(t){const e=Z(t,t.toLowerCase(),n,o,i,r,a);e&&(e[0]-=3,(!l||e[0]>l[0])&&(l=e))}}}return l}(e,t,n,o,i,r,0,s)}function X(e,t){if(t+1>=e.length)return;const n=e[t],o=e[t+1];return n!==o?e.slice(0,t)+o+n+e.slice(t+2):void 0}},92741:(e,t,n)=>{n.d(t,{e2:()=>l,sN:()=>s,tW:()=>r,v7:()=>u});var o=n(20759),i=n(20219);function r(e){return s(e,0)}function s(e,t){switch(typeof e){case"object":return null===e?a(349,t):Array.isArray(e)?(n=e,o=a(104579,o=t),n.reduce((e,t)=>s(t,e),o)):function(e,t){return t=a(181387,t),Object.keys(e).sort().reduce((t,n)=>(t=l(n,t),s(e[n],t)),t)}(e,t);case"string":return l(e,t);case"boolean":return function(e,t){return a(e?433:863,t)}(e,t);case"number":return a(e,t);case"undefined":return a(937,t);default:return a(617,t)}var n,o}function a(e,t){return(t<<5)-t+e|0}function l(e,t){t=a(149417,t);for(let n=0,o=e.length;n<o;n++)t=a(e.charCodeAt(n),t);return t}function c(e,t,n=32){const o=n-t;return(e<<t|(~((1<<o)-1)&e)>>>o)>>>0}function d(e,t=32){return e instanceof ArrayBuffer?(0,o.mU)(o.MB.wrap(new Uint8Array(e))):(e>>>0).toString(16).padStart(t/4,"0")}class u{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let o,r,s=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(o=a,r=-1,a=0):(o=e.charCodeAt(0),r=0);;){let l=o;if((0,i.pc)(o)){if(!(r+1<t)){a=o;break}{const t=e.charCodeAt(r+1);(0,i.LJ)(t)?(r++,l=(0,i.z_)(o,t)):l=65533}}else(0,i.LJ)(o)&&(l=65533);if(s=this._push(n,s,l),r++,!(r<t))break;o=e.charCodeAt(r)}this._buffLen=s,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),d(this._h0)+d(this._h1)+d(this._h2)+d(this._h3)+d(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=u._bigBlock32,t=this._buffDV;for(let c=0;c<64;c+=4)e.setUint32(c,t.getUint32(c,!1),!1);for(let u=64;u<320;u+=4)e.setUint32(u,c(e.getUint32(u-12,!1)^e.getUint32(u-32,!1)^e.getUint32(u-56,!1)^e.getUint32(u-64,!1),1),!1);let n,o,i,r=this._h0,s=this._h1,a=this._h2,l=this._h3,d=this._h4;for(let u=0;u<80;u++)u<20?(n=s&a|~s&l,o=1518500249):u<40?(n=s^a^l,o=1859775393):u<60?(n=s&a|s&l|a&l,o=2400959708):(n=s^a^l,o=3395469782),i=c(r,5)+n+d+o+e.getUint32(4*u,!1)&4294967295,d=l,l=a,a=c(s,30),s=r,r=i;this._h0=this._h0+r&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+d&4294967295}}},1299:(e,t,n)=>{n.d(t,{Ez:()=>u,SJ:()=>m,fV:()=>d,ny:()=>o,v$:()=>c,zl:()=>g});var o,i=n(83850),r=n(60742),s=n(20219),a=n(11343),l=n(61454);function c(e,t){return a.r.isUri(e)?(0,s.Q_)(e.scheme,t):(0,s.ns)(e,t+":")}function d(e,...t){return t.some(t=>c(e,t))}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatEditor="vscode-chat-editor",e.vscodeChatInput="chatSessionInput",e.vscodeLocalChatSession="vscode-chat-session",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.vscodeBrowser="vscode-browser",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output",e.accessibleView="accessible-view",e.chatEditingSnapshotScheme="chat-editing-snapshot-text-model",e.chatEditingModel="chat-editing-text-model",e.copilotPr="copilot-pr"}(o||(o={}));const u=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,o.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(d){return(0,i.dz)(d),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const s=this._ports[t],l=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(c+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:r.HZ?this._preferredWebSchema:o.vscodeRemoteResource,authority:`${n}:${s}`,path:this._remoteResourcesPath,query:c})}};class h{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===o.vscodeRemote?u.rewrite(e):e.scheme!==o.file||!r.ib&&r.lg!==`${o.vscodeFileResource}://${h.FALLBACK_AUTHORITY}`?e:e.with({scheme:o.vscodeFileResource,authority:e.authority||h.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const n=(0,l.fj)(t,e);return a.r.file(n)}throw new Error("Cannot determine URI for module id!")}}const g=new h;var m;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let o;"string"===typeof e?o=new URL(e).searchParams:e instanceof URL?o=e.searchParams:a.r.isUri(e)&&(o=new URL(e.toString(!0)).searchParams);const i=o?.get(n);if(i)return t.get(i)},e.addSearchParam=function(e,t,o){if(!globalThis.crossOriginIsolated)return;const i=t&&o?"3":o?"2":"1";e instanceof URLSearchParams?e.set(n,i):e[n]=i}}(m||(m={}))},38770:(e,t,n)=>{n.d(t,{A:()=>r});var o,i=n(20219);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(o||(o={})),function(e){const t="error",n="warning",o="info";e.fromValue=function(r){return r?(0,i.Q_)(t,r)?e.Error:(0,i.Q_)(n,r)||(0,i.Q_)("warn",r)?e.Warning:(0,i.Q_)(o,r)?e.Info:e.Ignore:e.Ignore},e.toString=function(i){switch(i){case e.Error:return t;case e.Warning:return n;case e.Info:return o;default:return"ignore"}}}(o||(o={}));var r=o},66828:(e,t,n)=>{n.d(t,{Et:()=>l,Gv:()=>s,Kg:()=>i,Lm:()=>d,O9:()=>h,Tn:()=>f,VT:()=>b,b0:()=>u,iu:()=>a,j:()=>m,jx:()=>w,lF:()=>r,ni:()=>p,xZ:()=>c,z:()=>g});var o=n(24539);function i(e){return"string"===typeof e}function r(e,t){return Array.isArray(e)&&e.every(t)}function s(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function a(e){const t=Object.getPrototypeOf(Uint8Array);return"object"===typeof e&&e instanceof t}function l(e){return"number"===typeof e&&!isNaN(e)}function c(e){return!!e&&"function"===typeof e[Symbol.iterator]}function d(e){return!0===e||!1===e}function u(e){return"undefined"===typeof e}function h(e){return!g(e)}function g(e){return u(e)||null===e}function m(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function p(e){return(0,o.vA)(null!==e&&void 0!==e,"Argument is `undefined` or `null`."),e}function f(e){return"function"===typeof e}function w(e,t){const n=Math.min(e.length,t.length);for(let o=0;o<n;o++)y(e[o],t[o])}function y(e,t){if(i(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(f(t)){try{if(e instanceof t)return}catch{}if(!g(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function b(e){return e}},40730:(e,t,n)=>{n.d(t,{Gn:()=>p,JJ:()=>c,vf:()=>m});var o=n(1428),i=n(78949),r=n(7232),s=n(75710),a=n(30253),l=n(4144);const c=Object.freeze({id:"editor",order:5,type:"object",title:(0,s.kg)(149,"Editor"),scope:6}),d={...c,properties:{"editor.tabSize":{type:"number",default:r.R.tabSize,minimum:1,maximum:100,markdownDescription:(0,s.kg)(150,"The number of spaces a tab is equal to. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:(0,s.kg)(151,'The number of spaces used for indentation or `"tabSize"` to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')},"editor.insertSpaces":{type:"boolean",default:r.R.insertSpaces,markdownDescription:(0,s.kg)(152,"Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:r.R.detectIndentation,markdownDescription:(0,s.kg)(153,"Controls whether {0} and {1} will be automatically detected when a file is opened based on the file contents.","`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:r.R.trimAutoWhitespace,description:(0,s.kg)(154,"Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:r.R.largeFileOptimizations,description:(0,s.kg)(155,"Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","offWithInlineSuggestions","currentDocument","matchingDocuments","allDocuments"],default:"offWithInlineSuggestions",enumDescriptions:[(0,s.kg)(156,"Turn off Word Based Suggestions."),(0,s.kg)(157,"Turn off Word Based Suggestions when Inline Suggestions are present."),(0,s.kg)(158,"Only suggest words from the active document."),(0,s.kg)(159,"Suggest words from all open documents of the same language."),(0,s.kg)(160,"Suggest words from all open documents.")],description:(0,s.kg)(161,"Controls whether completions should be computed based on words in the document and from which documents they are computed."),experiment:{mode:"auto"}},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[(0,s.kg)(162,"Semantic highlighting enabled for all color themes."),(0,s.kg)(163,"Semantic highlighting disabled for all color themes."),(0,s.kg)(164,"Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:(0,s.kg)(165,"Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:(0,s.kg)(166,"Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:(0,s.kg)(167,"Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!0,description:(0,s.kg)(168,"Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:(0,s.kg)(169,"Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:(0,s.kg)(170,"Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),tags:["experimental"]},"editor.experimental.treeSitterTelemetry":{type:"boolean",default:!1,markdownDescription:(0,s.kg)(171,"Controls whether tree sitter parsing should be turned on and telemetry collected. Setting `#editor.experimental.preferTreeSitter#` for specific languages will take precedence."),tags:["experimental"],experiment:{mode:"auto"}},"editor.experimental.preferTreeSitter.css":{type:"boolean",default:!1,markdownDescription:(0,s.kg)(172,"Controls whether tree sitter parsing should be turned on for css. This will take precedence over `#editor.experimental.treeSitterTelemetry#` for css."),tags:["experimental"],experiment:{mode:"auto"}},"editor.experimental.preferTreeSitter.typescript":{type:"boolean",default:!1,markdownDescription:(0,s.kg)(173,"Controls whether tree sitter parsing should be turned on for typescript. This will take precedence over `#editor.experimental.treeSitterTelemetry#` for typescript."),tags:["experimental"],experiment:{mode:"auto"}},"editor.experimental.preferTreeSitter.ini":{type:"boolean",default:!1,markdownDescription:(0,s.kg)(174,"Controls whether tree sitter parsing should be turned on for ini. This will take precedence over `#editor.experimental.treeSitterTelemetry#` for ini."),tags:["experimental"],experiment:{mode:"auto"}},"editor.experimental.preferTreeSitter.regex":{type:"boolean",default:!1,markdownDescription:(0,s.kg)(175,"Controls whether tree sitter parsing should be turned on for regex. This will take precedence over `#editor.experimental.treeSitterTelemetry#` for regex."),tags:["experimental"],experiment:{mode:"auto"}},"editor.language.brackets":{type:["array","null"],default:null,description:(0,s.kg)(176,"Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:(0,s.kg)(177,"The opening bracket character or string sequence.")},{type:"string",description:(0,s.kg)(178,"The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:(0,s.kg)(179,"Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:(0,s.kg)(180,"The opening bracket character or string sequence.")},{type:"string",description:(0,s.kg)(181,"The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:o.q.maxComputationTime,description:(0,s.kg)(182,"Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:o.q.maxFileSize,description:(0,s.kg)(183,"Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:o.q.renderSideBySide,description:(0,s.kg)(184,"Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:o.q.renderSideBySideInlineBreakpoint,description:(0,s.kg)(185,"If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:o.q.useInlineViewWhenSpaceIsLimited,description:(0,s.kg)(186,"If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:o.q.renderMarginRevertIcon,description:(0,s.kg)(187,"When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:o.q.renderGutterMenu,description:(0,s.kg)(188,"When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:o.q.ignoreTrimWhitespace,description:(0,s.kg)(189,"When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:o.q.renderIndicators,description:(0,s.kg)(190,"Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:o.q.diffCodeLens,description:(0,s.kg)(191,"Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:o.q.diffWordWrap,markdownEnumDescriptions:[(0,s.kg)(192,"Lines will never wrap."),(0,s.kg)(193,"Lines will wrap at the viewport width."),(0,s.kg)(194,"Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:o.q.diffAlgorithm,markdownEnumDescriptions:[(0,s.kg)(195,"Uses the legacy diffing algorithm."),(0,s.kg)(196,"Uses the advanced diffing algorithm.")]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:o.q.hideUnchangedRegions.enabled,markdownDescription:(0,s.kg)(197,"Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:o.q.hideUnchangedRegions.revealLineCount,markdownDescription:(0,s.kg)(198,"Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:o.q.hideUnchangedRegions.minimumLineCount,markdownDescription:(0,s.kg)(199,"Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:o.q.hideUnchangedRegions.contextLineCount,markdownDescription:(0,s.kg)(200,"Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:o.q.experimental.showMoves,markdownDescription:(0,s.kg)(201,"Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:o.q.experimental.showEmptyDecorations,description:(0,s.kg)(202,"Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")},"diffEditor.experimental.useTrueInlineView":{type:"boolean",default:o.q.experimental.useTrueInlineView,description:(0,s.kg)(203,"If enabled and the editor uses the inline view, word changes are rendered inline.")}}};function u(e){return"undefined"!==typeof e.type||"undefined"!==typeof e.anyOf}for(const f of i.BE){const e=f.schema;if("undefined"!==typeof e)if(u(e))d.properties[`editor.${f.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(d.properties[t]=e[t])}let h=null;function g(){return null===h&&(h=Object.create(null),Object.keys(d.properties).forEach(e=>{h[e]=!0})),h}function m(e){return g()[`editor.${e}`]||!1}function p(e){return g()[`diffEditor.${e}`]||!1}l.O.as(a.Fd.Configuration).registerConfiguration(d)},78949:(e,t,n)=>{n.d(t,{$C:()=>N,BE:()=>U,Bc:()=>D,O4:()=>E,Of:()=>H,Vs:()=>P,XR:()=>V,hZ:()=>m,jT:()=>L,ls:()=>S,lw:()=>u,m9:()=>I,n0:()=>h,qB:()=>j,wA:()=>v,xZ:()=>R,xq:()=>d,zM:()=>y});var o=n(94163),i=n(77309),r=n(60742),s=n(41095),a=n(7232),l=n(64833),c=n(75710);const d=8;class u{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class h{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class g{constructor(e,t,n,o){this.id=e,this.name=t,this.defaultValue=n,this.schema=o}applyUpdate(e,t){return p(e,t)}compute(e,t,n){return n}}class m{constructor(e,t){this.newValue=e,this.didChange=t}}function p(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return new m(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){const n=Array.isArray(e)&&Array.isArray(t)&&(0,o.aI)(e,t);return new m(t,!n)}let n=!1;for(const o in t)if(t.hasOwnProperty(o)){const i=p(e[o],t[o]);i.didChange&&(e[o]=i.newValue,n=!0)}return new m(e,n)}class f{constructor(e,t){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=t}applyUpdate(e,t){return p(e,t)}validate(e){return this.defaultValue}}class w{constructor(e,t,n,o){this.id=e,this.name=t,this.defaultValue=n,this.schema=o}applyUpdate(e,t){return p(e,t)}compute(e,t,n){return n}}function y(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)}class b extends w{constructor(e,t,n,o=void 0){"undefined"!==typeof o&&(o.type="boolean",o.default=n),super(e,t,n,o)}validate(e){return y(e,this.defaultValue)}}function v(e,t,n,o){if("string"===typeof e&&(e=parseInt(e,10)),"number"!==typeof e||isNaN(e))return t;let i=e;return i=Math.max(n,i),i=Math.min(o,i),0|i}class k extends w{static clampedInt(e,t,n,o){return v(e,t,n,o)}constructor(e,t,n,o,i,r=void 0){"undefined"!==typeof r&&(r.type="integer",r.default=n,r.minimum=o,r.maximum=i),super(e,t,n,r),this.minimum=o,this.maximum=i}validate(e){return k.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function S(e,t,n,o){if("undefined"===typeof e)return t;const i=C.float(e,t);return C.clamp(i,n,o)}class C extends w{static clamp(e,t,n){return e<t?t:e>n?n:e}static float(e,t){return"string"===typeof e&&(e=parseFloat(e)),"number"!==typeof e||isNaN(e)?t:e}constructor(e,t,n,o,i,r,s){"undefined"!==typeof i&&(i.type="number",i.default=n,i.minimum=r,i.maximum=s),super(e,t,n,i),this.validationFn=o,this.minimum=r,this.maximum=s}validate(e){return this.validationFn(C.float(e,this.defaultValue))}}class _ extends w{static string(e,t){return"string"!==typeof e?t:e}constructor(e,t,n,o=void 0){"undefined"!==typeof o&&(o.type="string",o.default=n),super(e,t,n,o)}validate(e){return _.string(e,this.defaultValue)}}function E(e,t,n,o){return"string"!==typeof e?t:o&&e in o?o[e]:-1===n.indexOf(e)?t:e}class A extends w{constructor(e,t,n,o,i=void 0){"undefined"!==typeof i&&(i.type="string",i.enum=o.slice(0),i.default=n),super(e,t,n,i),this._allowedValues=o}validate(e){return E(e,this.defaultValue,this._allowedValues)}}class x extends g{constructor(e,t,n,o,i,r,s=void 0){"undefined"!==typeof s&&(s.type="string",s.enum=i,s.default=o),super(e,t,n,s),this._allowedValues=i,this._convert=r}validate(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var I,L;function T(e){switch(e){case"line":return I.Line;case"block":return I.Block;case"underline":return I.Underline;case"line-thin":return I.LineThin;case"block-outline":return I.BlockOutline;case"underline-thin":return I.UnderlineThin}}!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(I||(I={}));class D extends g{static{this.OFF='"liga" off, "calt" off'}static{this.ON='"liga" on, "calt" on'}constructor(){super(60,"fontLigatures",D.OFF,{anyOf:[{type:"boolean",description:(0,c.kg)(230,"Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:(0,c.kg)(231,"Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:(0,c.kg)(232,"Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e||0===e.length?D.OFF:"true"===e?D.ON:e:Boolean(e)?D.ON:D.OFF}}class O extends g{static{this.OFF=s.qC}static{this.TRANSLATE=s.Jn}constructor(){super(63,"fontVariations",O.OFF,{anyOf:[{type:"boolean",description:(0,c.kg)(233,"Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:(0,c.kg)(234,"Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:(0,c.kg)(235,"Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?O.OFF:"true"===e?O.TRANSLATE:e:Boolean(e)?O.TRANSLATE:O.OFF}compute(e,t,n){return e.fontInfo.fontVariationSettings}}class M extends g{static{this.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"]}static{this.MINIMUM_VALUE=1}static{this.MAXIMUM_VALUE=1e3}constructor(){super(62,"fontWeight",s.jU.fontWeight,{anyOf:[{type:"number",minimum:M.MINIMUM_VALUE,maximum:M.MAXIMUM_VALUE,errorMessage:(0,c.kg)(237,'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:M.SUGGESTION_VALUES}],default:s.jU.fontWeight,description:(0,c.kg)(238,'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(k.clampedInt(e,s.jU.fontWeight,M.MINIMUM_VALUE,M.MAXIMUM_VALUE))}}class R extends f{constructor(){super(165,{width:0,height:0,glyphMarginLeft:0,glyphMarginWidth:0,glyphMarginDecorationLaneCount:0,lineNumbersLeft:0,lineNumbersWidth:0,decorationsLeft:0,decorationsWidth:0,contentLeft:0,contentWidth:0,minimap:{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:0,minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:0},viewportColumn:0,isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1,verticalScrollbarWidth:0,horizontalScrollbarHeight:0,overviewRuler:{top:0,width:0,height:0,right:0}})}compute(e,t,n){return R.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,n=Math.floor(e.paddingTop/e.lineHeight);let o=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(o=Math.max(o,t-1));const i=(n+e.viewLineCount+o)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:n,extraLinesBeyondLastLine:o,desiredRatio:i,minimapLineCount:Math.floor(e.viewLineCount/i)}}static _computeMinimapLayout(e,t){const n=e.outerWidth,o=e.outerHeight,i=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(i*o),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:o};const r=t.stableMinimapLayoutInput,s=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,a=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=i>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const g=e.minimap.maxColumn,m=e.minimap.size,p=e.minimap.side,f=e.verticalScrollbarWidth,w=e.viewLineCount,y=e.remainingWidth,b=e.isViewportWrapping,v=u?2:3;let k=Math.floor(i*o);const S=k/i;let C=!1,_=!1,E=v*h,A=h/i,x=1;if("fill"===m||"fit"===m){const{typicalViewportLineCount:n,extraLinesBeforeFirstLine:r,extraLinesBeyondLastLine:l,desiredRatio:d,minimapLineCount:u}=R.computeContainedMinimapLineCount({viewLineCount:w,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:o,lineHeight:a,pixelRatio:i});if(w/u>1)C=!0,_=!0,h=1,E=1,A=h/i;else{let o=!1,c=h+1;if("fit"===m){const e=Math.ceil((r+w+l)*E);b&&s&&y<=t.stableFitRemainingWidth?(o=!0,c=t.stableFitMaxMinimapScale):o=e>k}if("fill"===m||o){C=!0;const o=h;E=Math.min(a*i,Math.max(1,Math.floor(1/d))),b&&s&&y<=t.stableFitRemainingWidth&&(c=t.stableFitMaxMinimapScale),h=Math.min(c,Math.max(1,Math.floor(E/v))),h>o&&(x=Math.min(2,h/o)),A=h/i/x,k=Math.ceil(Math.max(n,r+w+l)*E),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=y,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const I=Math.floor(g*A),L=Math.min(I,Math.max(0,Math.floor((y-f-2)*A/(l+A)))+d);let T=Math.floor(i*L);const D=T/i;T=Math.floor(T*x);return{renderMinimap:u?1:2,minimapLeft:"left"===p?0:n-L-f,minimapWidth:L,minimapHeightIsEditorHeight:C,minimapIsSampling:_,minimapScale:h,minimapLineHeight:E,minimapCanvasInnerWidth:T,minimapCanvasInnerHeight:k,minimapCanvasOuterWidth:D,minimapCanvasOuterHeight:S}}static computeLayout(e,t){const n=0|t.outerWidth,o=0|t.outerHeight,i=0|t.lineHeight,r=0|t.lineNumbersDigitCount,s=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,c=t.viewLineCount,d=e.get(154),u="inherit"===d?e.get(153):d,g="inherit"===u?e.get(149):u,m=e.get(152),p=t.isDominatedByLongLines,f=e.get(66),w=0!==e.get(76).renderType,y=e.get(77),b=e.get(119),v=e.get(96),k=e.get(81),S=e.get(117),C=S.verticalScrollbarSize,_=S.verticalHasArrows,E=S.arrowSize,A=S.horizontalScrollbarSize,x=e.get(52),I="never"!==e.get(126);let L=e.get(74);x&&I&&(L+=16);let T=0;if(w){const e=Math.max(r,y);T=Math.round(e*a)}let D=0;f&&(D=i*t.glyphMarginDecorationLaneCount);let O=0,M=O+D,N=M+T,P=N+L;const W=n-D-T-L;let V=!1,H=!1,F=-1;2===e.get(2)&&"inherit"===u&&p?(V=!0,H=!0):"on"===g||"bounded"===g?H=!0:"wordWrapColumn"===g&&(F=m);const U=R._computeMinimapLayout({outerWidth:n,outerHeight:o,lineHeight:i,typicalHalfwidthCharacterWidth:s,pixelRatio:l,scrollBeyondLastLine:b,paddingTop:v.top,paddingBottom:v.bottom,minimap:k,verticalScrollbarWidth:C,viewLineCount:c,remainingWidth:W,isViewportWrapping:H},t.memory||new h);0!==U.renderMinimap&&0===U.minimapLeft&&(O+=U.minimapWidth,M+=U.minimapWidth,N+=U.minimapWidth,P+=U.minimapWidth);const z=W-U.minimapWidth,j=Math.max(1,Math.floor((z-C-2)/s)),B=_?E:0;return H&&(F=Math.max(1,j),"bounded"===g&&(F=Math.min(F,m))),{width:n,height:o,glyphMarginLeft:O,glyphMarginWidth:D,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:M,lineNumbersWidth:T,decorationsLeft:N,decorationsWidth:L,contentLeft:P,contentWidth:z,minimap:U,viewportColumn:j,isWordWrapMinified:V,isViewportWrapping:H,wrappingColumn:F,verticalScrollbarWidth:C,horizontalScrollbarHeight:A,overviewRuler:{top:B,width:C,height:o-2*B,right:0}}}}!function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(L||(L={}));function N(e){const t=e.get(112);return"editable"===t?e.get(104):"on"!==t}function P(e){return!e.get(172)}function W(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}const V="inUntrustedWorkspace",H={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};function F(e,t,n){const o=n.indexOf(e);return-1===o?t:n[o]}const U=[];function z(e){return U[e.id]=e,e}const j={acceptSuggestionOnCommitCharacter:z(new b(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:(0,c.kg)(439,"Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:z(new A(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",(0,c.kg)(440,"Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:(0,c.kg)(441,"Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:z(new class extends g{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[(0,c.kg)(204,"Use platform APIs to detect when a Screen Reader is attached."),(0,c.kg)(205,"Optimize for usage with a Screen Reader."),(0,c.kg)(206,"Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:(0,c.kg)(207,"Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,n){return 0===n?e.accessibilitySupport:n}}),accessibilityPageSize:z(new k(3,"accessibilityPageSize",500,1,1073741824,{description:(0,c.kg)(442,"Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),allowOverflow:z(new b(4,"allowOverflow",!0)),allowVariableLineHeights:z(new b(5,"allowVariableLineHeights",!0,{description:(0,c.kg)(443,"Controls whether to allow using variable line heights in the editor.")})),allowVariableFonts:z(new b(6,"allowVariableFonts",!0,{description:(0,c.kg)(444,"Controls whether to allow using variable fonts in the editor.")})),allowVariableFontsInAccessibilityMode:z(new b(7,"allowVariableFontsInAccessibilityMode",!1,{description:(0,c.kg)(445,"Controls whether to allow using variable fonts in the editor in the accessibility mode."),tags:["accessibility"]})),ariaLabel:z(new _(8,"ariaLabel",(0,c.kg)(446,"Editor content"))),ariaRequired:z(new b(9,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:z(new b(12,"screenReaderAnnounceInlineSuggestion",!0,{description:(0,c.kg)(447,"Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:z(new A(10,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",(0,c.kg)(448,"Use language configurations to determine when to autoclose brackets."),(0,c.kg)(449,"Autoclose brackets only when the cursor is to the left of whitespace."),""],description:(0,c.kg)(450,"Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:z(new A(11,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",(0,c.kg)(451,"Use language configurations to determine when to autoclose comments."),(0,c.kg)(452,"Autoclose comments only when the cursor is to the left of whitespace."),""],description:(0,c.kg)(453,"Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:z(new A(13,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",(0,c.kg)(454,"Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:(0,c.kg)(455,"Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:z(new A(14,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",(0,c.kg)(456,"Type over closing quotes or brackets only if they were automatically inserted."),""],description:(0,c.kg)(457,"Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:z(new A(15,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",(0,c.kg)(458,"Use language configurations to determine when to autoclose quotes."),(0,c.kg)(459,"Autoclose quotes only when the cursor is to the left of whitespace."),""],description:(0,c.kg)(460,"Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:z(new x(16,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}},{enumDescriptions:[(0,c.kg)(461,"The editor will not insert indentation automatically."),(0,c.kg)(462,"The editor will keep the current line's indentation."),(0,c.kg)(463,"The editor will keep the current line's indentation and honor language defined brackets."),(0,c.kg)(464,"The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),(0,c.kg)(465,"The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:(0,c.kg)(466,"Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),autoIndentOnPaste:z(new b(17,"autoIndentOnPaste",!1,{description:(0,c.kg)(467,"Controls whether the editor should automatically auto-indent the pasted content.")})),autoIndentOnPasteWithinString:z(new b(18,"autoIndentOnPasteWithinString",!0,{description:(0,c.kg)(468,"Controls whether the editor should automatically auto-indent the pasted content when pasted within a string. This takes effect when autoIndentOnPaste is true.")})),automaticLayout:z(new b(19,"automaticLayout",!1)),autoSurround:z(new A(20,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[(0,c.kg)(469,"Use language configurations to determine when to automatically surround selections."),(0,c.kg)(470,"Surround with quotes but not brackets."),(0,c.kg)(471,"Surround with brackets but not quotes."),""],description:(0,c.kg)(472,"Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:z(new class extends g{constructor(){const e={enabled:a.R.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:a.R.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(21,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:(0,c.kg)(359,"Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:(0,c.kg)(360,"Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:y(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:y(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}),bracketPairGuides:z(new class extends g{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(22,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[(0,c.kg)(361,"Enables bracket pair guides."),(0,c.kg)(362,"Enables bracket pair guides only for the active bracket pair."),(0,c.kg)(363,"Disables bracket pair guides.")],default:e.bracketPairs,description:(0,c.kg)(364,"Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[(0,c.kg)(365,"Enables horizontal guides as addition to vertical bracket pair guides."),(0,c.kg)(366,"Enables horizontal guides only for the active bracket pair."),(0,c.kg)(367,"Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:(0,c.kg)(368,"Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:(0,c.kg)(369,"Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:(0,c.kg)(370,"Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[(0,c.kg)(371,"Highlights the active indent guide."),(0,c.kg)(372,"Highlights the active indent guide even if bracket guides are highlighted."),(0,c.kg)(373,"Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:(0,c.kg)(374,"Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{bracketPairs:F(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:F(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:y(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:y(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:F(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}),stickyTabStops:z(new b(132,"stickyTabStops",!1,{description:(0,c.kg)(473,"Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:z(new b(23,"codeLens",!0,{description:(0,c.kg)(474,"Controls whether the editor shows CodeLens.")})),codeLensFontFamily:z(new _(24,"codeLensFontFamily","",{description:(0,c.kg)(475,"Controls the font family for CodeLens.")})),codeLensFontSize:z(new k(25,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:(0,c.kg)(476,"Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:z(new b(26,"colorDecorators",!0,{description:(0,c.kg)(477,"Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:z(new A(168,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[(0,c.kg)(478,"Make the color picker appear both on click and hover of the color decorator"),(0,c.kg)(479,"Make the color picker appear on hover of the color decorator"),(0,c.kg)(480,"Make the color picker appear on click of the color decorator")],description:(0,c.kg)(481,"Controls the condition to make a color picker appear from a color decorator.")})),colorDecoratorsLimit:z(new k(27,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:(0,c.kg)(482,"Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:z(new b(28,"columnSelection",!1,{description:(0,c.kg)(483,"Enable that the selection with the mouse and keys is doing column selection.")})),comments:z(new class extends g{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(29,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:(0,c.kg)(208,"Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:(0,c.kg)(209,"Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertSpace:y(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:y(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:z(new b(30,"contextmenu",!0)),copyWithSyntaxHighlighting:z(new b(31,"copyWithSyntaxHighlighting",!0,{description:(0,c.kg)(484,"Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:z(new x(32,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}},{description:(0,c.kg)(485,"Control the cursor animation style.")})),cursorSmoothCaretAnimation:z(new A(33,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[(0,c.kg)(486,"Smooth caret animation is disabled."),(0,c.kg)(487,"Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),(0,c.kg)(488,"Smooth caret animation is always enabled.")],description:(0,c.kg)(489,"Controls whether the smooth caret animation should be enabled.")})),cursorStyle:z(new x(34,"cursorStyle",I.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],T,{description:(0,c.kg)(490,"Controls the cursor style in insert input mode.")})),overtypeCursorStyle:z(new x(92,"overtypeCursorStyle",I.Block,"block",["line","block","underline","line-thin","block-outline","underline-thin"],T,{description:(0,c.kg)(491,"Controls the cursor style in overtype input mode.")})),cursorSurroundingLines:z(new k(35,"cursorSurroundingLines",0,0,1073741824,{description:(0,c.kg)(492,"Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:z(new A(36,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[(0,c.kg)(493,"`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),(0,c.kg)(494,"`cursorSurroundingLines` is enforced always.")],markdownDescription:(0,c.kg)(495,"Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:z(new k(37,"cursorWidth",0,0,1073741824,{markdownDescription:(0,c.kg)(496,"Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),cursorHeight:z(new k(38,"cursorHeight",0,0,1073741824,{markdownDescription:(0,c.kg)(497,"Controls the height of the cursor when `#editor.cursorStyle#` is set to `line`. Cursor's max height depends on line height.")})),disableLayerHinting:z(new b(39,"disableLayerHinting",!1)),disableMonospaceOptimizations:z(new b(40,"disableMonospaceOptimizations",!1)),domReadOnly:z(new b(41,"domReadOnly",!1)),dragAndDrop:z(new b(42,"dragAndDrop",!0,{description:(0,c.kg)(498,"Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:z(new class extends b{constructor(){super(45,"emptySelectionClipboard",!0,{description:(0,c.kg)(210,"Controls whether copying without a selection copies the current line.")})}compute(e,t,n){return n&&e.emptySelectionClipboard}}),dropIntoEditor:z(new class extends g{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(43,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:(0,c.kg)(431,"Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:(0,c.kg)(432,"Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[(0,c.kg)(433,"Show the drop selector widget after a file is dropped into the editor."),(0,c.kg)(434,"Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:y(t.enabled,this.defaultValue.enabled),showDropSelector:E(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}),editContext:z(new b(44,"editContext",!0,{description:(0,c.kg)(499,"Sets whether the EditContext API should be used instead of the text area to power input in the editor."),included:r.H8||r.UP||r.ib})),renderRichScreenReaderContent:z(new b(107,"renderRichScreenReaderContent",!1,{markdownDescription:(0,c.kg)(500,"Whether to render rich screen reader content when the `#editor.editContext#` setting is enabled.")})),stickyScroll:z(new class extends g{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(131,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:(0,c.kg)(268,"Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:(0,c.kg)(269,"Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:(0,c.kg)(270,"Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:(0,c.kg)(271,"Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:y(t.enabled,this.defaultValue.enabled),maxLineCount:k.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:E(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:y(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}),experimentalGpuAcceleration:z(new A(46,"experimentalGpuAcceleration","off",["off","on"],{tags:["experimental"],enumDescriptions:[(0,c.kg)(501,"Use regular DOM-based rendering."),(0,c.kg)(502,"Use GPU acceleration.")],description:(0,c.kg)(503,"Controls whether to use the experimental GPU acceleration to render the editor.")})),experimentalWhitespaceRendering:z(new A(47,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[(0,c.kg)(504,"Use a new rendering method with svgs."),(0,c.kg)(505,"Use a new rendering method with font characters."),(0,c.kg)(506,"Use the stable rendering method.")],description:(0,c.kg)(507,"Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:z(new _(48,"extraEditorClassName","")),fastScrollSensitivity:z(new C(49,"fastScrollSensitivity",5,e=>e<=0?5:e,{markdownDescription:(0,c.kg)(508,"Scrolling speed multiplier when pressing `Alt`.")})),find:z(new class extends g{constructor(){const e={cursorMoveOnType:!0,findOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0,history:"workspace",replaceHistory:"workspace"};super(50,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:(0,c.kg)(211,"Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[(0,c.kg)(212,"Never seed search string from the editor selection."),(0,c.kg)(213,"Always seed search string from the editor selection, including word at cursor position."),(0,c.kg)(214,"Only seed search string from the editor selection.")],description:(0,c.kg)(215,"Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[(0,c.kg)(216,"Never turn on Find in Selection automatically (default)."),(0,c.kg)(217,"Always turn on Find in Selection automatically."),(0,c.kg)(218,"Turn on Find in Selection automatically when multiple lines of content are selected.")],description:(0,c.kg)(219,"Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:(0,c.kg)(220,"Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:r.zx},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:(0,c.kg)(221,"Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:(0,c.kg)(222,"Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")},"editor.find.history":{type:"string",enum:["never","workspace"],default:"workspace",enumDescriptions:[(0,c.kg)(223,"Do not store search history from the find widget."),(0,c.kg)(224,"Store search history across the active workspace")],description:(0,c.kg)(225,"Controls how the find widget history should be stored")},"editor.find.replaceHistory":{type:"string",enum:["never","workspace"],default:"workspace",enumDescriptions:[(0,c.kg)(226,"Do not store history from the replace widget."),(0,c.kg)(227,"Store replace history across the active workspace")],description:(0,c.kg)(228,"Controls how the replace widget history should be stored")},"editor.find.findOnType":{type:"boolean",default:e.findOnType,description:(0,c.kg)(229,"Controls whether the Find Widget should search as you type.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:y(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),findOnType:y(t.findOnType,this.defaultValue.findOnType),seedSearchStringFromSelection:"boolean"===typeof t.seedSearchStringFromSelection?t.seedSearchStringFromSelection?"always":"never":E(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"===typeof t.autoFindInSelection?t.autoFindInSelection?"always":"never":E(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:y(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:y(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:y(t.loop,this.defaultValue.loop),history:E(t.history,this.defaultValue.history,["never","workspace"]),replaceHistory:E(t.replaceHistory,this.defaultValue.replaceHistory,["never","workspace"])}}}),fixedOverflowWidgets:z(new b(51,"fixedOverflowWidgets",!1)),folding:z(new b(52,"folding",!0,{description:(0,c.kg)(509,"Controls whether the editor has code folding enabled.")})),foldingStrategy:z(new A(53,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[(0,c.kg)(510,"Use a language-specific folding strategy if available, else the indentation-based one."),(0,c.kg)(511,"Use the indentation-based folding strategy.")],description:(0,c.kg)(512,"Controls the strategy for computing folding ranges.")})),foldingHighlight:z(new b(54,"foldingHighlight",!0,{description:(0,c.kg)(513,"Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:z(new b(55,"foldingImportsByDefault",!1,{description:(0,c.kg)(514,"Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:z(new k(56,"foldingMaximumRegions",5e3,10,65e3,{description:(0,c.kg)(515,"The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:z(new b(57,"unfoldOnClickAfterEndOfLine",!1,{description:(0,c.kg)(516,"Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:z(new _(58,"fontFamily",s.jU.fontFamily,{description:(0,c.kg)(517,"Controls the font family.")})),fontInfo:z(new class extends f{constructor(){super(59,new s.YJ({pixelRatio:0,fontFamily:"",fontWeight:"",fontSize:0,fontFeatureSettings:"",fontVariationSettings:"",lineHeight:0,letterSpacing:0,isMonospace:!1,typicalHalfwidthCharacterWidth:0,typicalFullwidthCharacterWidth:0,canUseHalfwidthRightwardsArrow:!1,spaceWidth:0,middotWidth:0,wsmiddotWidth:0,maxDigitWidth:0},!1))}compute(e,t,n){return e.fontInfo}}),fontLigatures2:z(new D),fontSize:z(new class extends w{constructor(){super(61,"fontSize",s.jU.fontSize,{type:"number",minimum:6,maximum:100,default:s.jU.fontSize,description:(0,c.kg)(236,"Controls the font size in pixels.")})}validate(e){const t=C.float(e,this.defaultValue);return 0===t?s.jU.fontSize:C.clamp(t,6,100)}compute(e,t,n){return e.fontInfo.fontSize}}),fontWeight:z(new M),fontVariations:z(new O),formatOnPaste:z(new b(64,"formatOnPaste",!1,{description:(0,c.kg)(518,"Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:z(new b(65,"formatOnType",!1,{description:(0,c.kg)(519,"Controls whether the editor should automatically format the line after typing.")})),glyphMargin:z(new b(66,"glyphMargin",!0,{description:(0,c.kg)(520,"Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:z(new class extends g{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[(0,c.kg)(239,"Show Peek view of the results (default)"),(0,c.kg)(240,"Go to the primary result and show a Peek view"),(0,c.kg)(241,"Go to the primary result and enable Peek-less navigation to others")]},n=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(67,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:(0,c.kg)(242,"This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:(0,c.kg)(243,"Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:(0,c.kg)(244,"Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:(0,c.kg)(245,"Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:(0,c.kg)(246,"Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:(0,c.kg)(247,"Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:n,description:(0,c.kg)(248,"Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:n,description:(0,c.kg)(249,"Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:n,description:(0,c.kg)(250,"Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:n,description:(0,c.kg)(251,"Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:n,description:(0,c.kg)(252,"Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{multiple:E(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:E(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:E(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:E(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:E(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:E(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:E(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:_.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:_.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:_.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:_.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:_.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:_.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}),hideCursorInOverviewRuler:z(new b(68,"hideCursorInOverviewRuler",!1,{description:(0,c.kg)(521,"Controls whether the cursor should be hidden in the overview ruler.")})),hover:z(new class extends g{constructor(){const e={enabled:"on",delay:300,hidingDelay:300,sticky:!0,above:!0};super(69,"hover",e,{"editor.hover.enabled":{type:"string",enum:["on","off","onKeyboardModifier"],default:e.enabled,markdownEnumDescriptions:[(0,c.kg)(253,"Hover is enabled."),(0,c.kg)(254,"Hover is disabled."),(0,c.kg)(255,"Hover is shown when holding `{0}` or `Alt` (the opposite modifier of `#editor.multiCursorModifier#`)",r.zx?"Command":"Control")],description:(0,c.kg)(256,"Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:(0,c.kg)(257,"Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:(0,c.kg)(258,"Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,markdownDescription:(0,c.kg)(259,"Controls the delay in milliseconds after which the hover is hidden. Requires `#editor.hover.sticky#` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:(0,c.kg)(260,"Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:E(t.enabled,this.defaultValue.enabled,["on","off","onKeyboardModifier"]),delay:k.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:y(t.sticky,this.defaultValue.sticky),hidingDelay:k.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:y(t.above,this.defaultValue.above)}}}),inDiffEditor:z(new b(70,"inDiffEditor",!1)),inertialScroll:z(new b(158,"inertialScroll",!1,{description:(0,c.kg)(522,"Make scrolling inertial - mostly useful with touchpad on linux.")})),letterSpacing:z(new C(72,"letterSpacing",s.jU.letterSpacing,e=>C.clamp(e,-5,20),{description:(0,c.kg)(523,"Controls the letter spacing in pixels.")})),lightbulb:z(new class extends g{constructor(){const e={enabled:L.OnCode};super(73,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",enum:[L.Off,L.OnCode,L.On],default:e.enabled,enumDescriptions:[(0,c.kg)(264,"Disable the code action menu."),(0,c.kg)(265,"Show the code action menu when the cursor is on lines with code."),(0,c.kg)(266,"Show the code action menu when the cursor is on lines with code or on empty lines.")],description:(0,c.kg)(267,"Enables the Code Action lightbulb in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;return{enabled:E(e.enabled,this.defaultValue.enabled,[L.Off,L.OnCode,L.On])}}}),lineDecorationsWidth:z(new class extends g{constructor(){super(74,"lineDecorationsWidth",10)}validate(e){if("string"===typeof e&&/^\d+(\.\d+)?ch$/.test(e)){return-parseFloat(e.substring(0,e.length-2))}return k.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,n){return n<0?k.clampedInt(-n*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):n}}),lineHeight:z(new class extends C{constructor(){super(75,"lineHeight",s.jU.lineHeight,e=>C.clamp(e,0,150),{markdownDescription:(0,c.kg)(281,"Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")},0,150)}compute(e,t,n){return e.fontInfo.lineHeight}}),lineNumbers:z(new class extends g{constructor(){super(76,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[(0,c.kg)(312,"Line numbers are not rendered."),(0,c.kg)(313,"Line numbers are rendered as absolute number."),(0,c.kg)(314,"Line numbers are rendered as distance in lines to cursor position."),(0,c.kg)(315,"Line numbers are rendered every 10 lines.")],default:"on",description:(0,c.kg)(316,"Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,n=this.defaultValue.renderFn;return"undefined"!==typeof e&&("function"===typeof e?(t=4,n=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:n}}}),lineNumbersMinChars:z(new k(77,"lineNumbersMinChars",5,1,300)),linkedEditing:z(new b(78,"linkedEditing",!1,{description:(0,c.kg)(524,"Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:z(new b(79,"links",!0,{description:(0,c.kg)(525,"Controls whether the editor should detect links and make them clickable.")})),matchBrackets:z(new A(80,"matchBrackets","always",["always","near","never"],{description:(0,c.kg)(526,"Highlight matching brackets.")})),minimap:z(new class extends g{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:"none",renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,markSectionHeaderRegex:"\\bMARK:\\s*(?<separator>-?)\\s*(?<label>.*)$",sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(81,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:(0,c.kg)(282,"Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"string",enum:["none","mouseover","scroll"],enumDescriptions:[(0,c.kg)(283,"The minimap is always shown."),(0,c.kg)(284,"The minimap is hidden when mouse is not over the minimap and shown when mouse is over the minimap."),(0,c.kg)(285,"The minimap is only shown when the editor is scrolled")],default:e.autohide,description:(0,c.kg)(286,"Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[(0,c.kg)(287,"The minimap has the same size as the editor contents (and might scroll)."),(0,c.kg)(288,"The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),(0,c.kg)(289,"The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:(0,c.kg)(290,"Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:(0,c.kg)(291,"Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:(0,c.kg)(292,"Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:(0,c.kg)(293,"Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:(0,c.kg)(294,"Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:(0,c.kg)(295,"Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:(0,c.kg)(296,"Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:(0,c.kg)(297,"Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.markSectionHeaderRegex":{type:"string",default:e.markSectionHeaderRegex,description:(0,c.kg)(298,"Defines the regular expression used to find section headers in comments. The regex must contain a named match group `label` (written as `(?<label>.+)`) that encapsulates the section header, otherwise it will not work. Optionally you can include another match group named `separator`. Use \\n in the pattern to match multi-line headers.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:(0,c.kg)(299,"Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:(0,c.kg)(300,"Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;let n=this.defaultValue.markSectionHeaderRegex;const o=t.markSectionHeaderRegex;if("string"===typeof o)try{new RegExp(o,"d"),n=o}catch{}return{enabled:y(t.enabled,this.defaultValue.enabled),autohide:E(t.autohide,this.defaultValue.autohide,["none","mouseover","scroll"]),size:E(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:E(t.side,this.defaultValue.side,["right","left"]),showSlider:E(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:y(t.renderCharacters,this.defaultValue.renderCharacters),scale:k.clampedInt(t.scale,1,1,3),maxColumn:k.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:y(t.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:y(t.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),markSectionHeaderRegex:n,sectionHeaderFontSize:C.clamp(C.float(t.sectionHeaderFontSize,this.defaultValue.sectionHeaderFontSize),4,32),sectionHeaderLetterSpacing:C.clamp(C.float(t.sectionHeaderLetterSpacing,this.defaultValue.sectionHeaderLetterSpacing),0,5)}}}),mouseStyle:z(new A(82,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:z(new C(83,"mouseWheelScrollSensitivity",1,e=>0===e?1:e,{markdownDescription:(0,c.kg)(527,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:z(new b(84,"mouseWheelZoom",!1,{markdownDescription:r.zx?(0,c.kg)(528,"Zoom the font of the editor when using mouse wheel and holding `Cmd`."):(0,c.kg)(529,"Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:z(new b(85,"multiCursorMergeOverlapping",!0,{description:(0,c.kg)(530,"Merge multiple cursors when they are overlapping.")})),multiCursorModifier:z(new x(86,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],function(e){return"ctrlCmd"===e?r.zx?"metaKey":"ctrlKey":"altKey"},{markdownEnumDescriptions:[(0,c.kg)(531,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,c.kg)(532,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:(0,c.kg)(533,"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),mouseMiddleClickAction:z(new A(87,"mouseMiddleClickAction","default",["default","openLink","ctrlLeftClick"],{description:(0,c.kg)(534,"Controls what happens when middle mouse button is clicked in the editor.")})),multiCursorPaste:z(new A(88,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[(0,c.kg)(535,"Each cursor pastes a single line of the text."),(0,c.kg)(536,"Each cursor pastes the full text.")],markdownDescription:(0,c.kg)(537,"Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:z(new k(89,"multiCursorLimit",1e4,1,1e5,{markdownDescription:(0,c.kg)(538,"Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:z(new A(90,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[(0,c.kg)(539,"Does not highlight occurrences."),(0,c.kg)(540,"Highlights occurrences only in the current file."),(0,c.kg)(541,"Experimental: Highlights occurrences across all valid open files.")],markdownDescription:(0,c.kg)(542,"Controls whether occurrences should be highlighted across open files.")})),occurrencesHighlightDelay:z(new k(91,"occurrencesHighlightDelay",0,0,2e3,{description:(0,c.kg)(543,"Controls the delay in milliseconds after which occurrences are highlighted."),tags:["preview"]})),overtypeOnPaste:z(new b(93,"overtypeOnPaste",!0,{description:(0,c.kg)(544,"Controls whether pasting should overtype.")})),overviewRulerBorder:z(new b(94,"overviewRulerBorder",!0,{description:(0,c.kg)(545,"Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:z(new k(95,"overviewRulerLanes",3,0,3)),padding:z(new class extends g{constructor(){super(96,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:(0,c.kg)(301,"Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:(0,c.kg)(302,"Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{top:k.clampedInt(t.top,0,0,1e3),bottom:k.clampedInt(t.bottom,0,0,1e3)}}}),pasteAs:z(new class extends g{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(97,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:(0,c.kg)(435,"Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:(0,c.kg)(436,"Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[(0,c.kg)(437,"Show the paste selector widget after content is pasted into the editor."),(0,c.kg)(438,"Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:y(t.enabled,this.defaultValue.enabled),showPasteSelector:E(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}),parameterHints:z(new class extends g{constructor(){const e={enabled:!0,cycle:!0};super(98,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:(0,c.kg)(303,"Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:(0,c.kg)(304,"Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:y(t.enabled,this.defaultValue.enabled),cycle:y(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:z(new A(99,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[(0,c.kg)(546,"Focus the tree when opening peek"),(0,c.kg)(547,"Focus the editor when opening peek")],description:(0,c.kg)(548,"Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:z(new class extends g{constructor(){super(100,"placeholder",void 0)}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?e:this.defaultValue}}),definitionLinkOpensInPeek:z(new b(101,"definitionLinkOpensInPeek",!1,{description:(0,c.kg)(549,"Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:z(new class extends g{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[(0,c.kg)(305,"Quick suggestions show inside the suggest widget"),(0,c.kg)(306,"Quick suggestions show as ghost text"),(0,c.kg)(307,"Quick suggestions are disabled")]}];super(102,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:(0,c.kg)(308,"Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:(0,c.kg)(309,"Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:(0,c.kg)(310,"Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:(0,c.kg)(311,"Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`")}),this.defaultValue=e}validate(e){if("boolean"===typeof e){const t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!==typeof e)return this.defaultValue;const{other:t,comments:n,strings:o}=e,i=["on","inline","off"];let r,s,a;return r="boolean"===typeof t?t?"on":"off":E(t,this.defaultValue.other,i),s="boolean"===typeof n?n?"on":"off":E(n,this.defaultValue.comments,i),a="boolean"===typeof o?o?"on":"off":E(o,this.defaultValue.strings,i),{other:r,comments:s,strings:a}}}),quickSuggestionsDelay:z(new k(103,"quickSuggestionsDelay",10,0,1073741824,{description:(0,c.kg)(550,"Controls the delay in milliseconds after which quick suggestions will show up."),experiment:{mode:"auto"}})),readOnly:z(new b(104,"readOnly",!1)),readOnlyMessage:z(new class extends g{constructor(){super(105,"readOnlyMessage",void 0)}validate(e){return e&&"object"===typeof e?e:this.defaultValue}}),renameOnType:z(new b(106,"renameOnType",!1,{description:(0,c.kg)(551,"Controls whether the editor auto renames on type."),markdownDeprecationMessage:(0,c.kg)(552,"Deprecated, use `#editor.linkedEditing#` instead.")})),renderControlCharacters:z(new b(108,"renderControlCharacters",!0,{description:(0,c.kg)(553,"Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:z(new A(109,"renderFinalNewline",r.j9?"dimmed":"on",["off","on","dimmed"],{description:(0,c.kg)(554,"Render last line number when the file ends with a newline.")})),renderLineHighlight:z(new A(110,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",(0,c.kg)(555,"Highlights both the gutter and the current line.")],description:(0,c.kg)(556,"Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:z(new b(111,"renderLineHighlightOnlyWhenFocus",!1,{description:(0,c.kg)(557,"Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:z(new A(112,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:z(new A(113,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",(0,c.kg)(558,"Render whitespace characters except for single spaces between words."),(0,c.kg)(559,"Render whitespace characters only on selected text."),(0,c.kg)(560,"Render only trailing whitespace characters."),""],description:(0,c.kg)(561,"Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:z(new k(114,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:z(new b(115,"roundedSelection",!0,{description:(0,c.kg)(562,"Controls whether selections should have rounded corners.")})),rulers:z(new class extends g{constructor(){const e=[],t={type:"number",description:(0,c.kg)(317,"Number of monospace characters at which this editor ruler will render.")};super(116,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:(0,c.kg)(318,"Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:(0,c.kg)(319,"Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const n of e)if("number"===typeof n)t.push({column:k.clampedInt(n,0,0,1e4),color:null});else if(n&&"object"===typeof n){const e=n;t.push({column:k.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort((e,t)=>e.column-t.column),t}return this.defaultValue}}),scrollbar:z(new class extends g{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(117,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[(0,c.kg)(320,"The vertical scrollbar will be visible only when necessary."),(0,c.kg)(321,"The vertical scrollbar will always be visible."),(0,c.kg)(322,"The vertical scrollbar will always be hidden.")],default:"auto",description:(0,c.kg)(323,"Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[(0,c.kg)(324,"The horizontal scrollbar will be visible only when necessary."),(0,c.kg)(325,"The horizontal scrollbar will always be visible."),(0,c.kg)(326,"The horizontal scrollbar will always be hidden.")],default:"auto",description:(0,c.kg)(327,"Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:(0,c.kg)(328,"The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:(0,c.kg)(329,"The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:(0,c.kg)(330,"Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:(0,c.kg)(331,"When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e,n=k.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),o=k.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:k.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:W(t.vertical,this.defaultValue.vertical),horizontal:W(t.horizontal,this.defaultValue.horizontal),useShadows:y(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:y(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:y(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:y(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:y(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:k.clampedInt(t.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:o,verticalSliderSize:k.clampedInt(t.verticalSliderSize,o,0,1e3),scrollByPage:y(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:y(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}),scrollBeyondLastColumn:z(new k(118,"scrollBeyondLastColumn",4,0,1073741824,{description:(0,c.kg)(563,"Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:z(new b(119,"scrollBeyondLastLine",!0,{description:(0,c.kg)(564,"Controls whether the editor will scroll beyond the last line.")})),scrollOnMiddleClick:z(new b(171,"scrollOnMiddleClick",!1,{description:(0,c.kg)(565,"Controls whether the editor will scroll when the middle button is pressed.")})),scrollPredominantAxis:z(new b(120,"scrollPredominantAxis",!0,{description:(0,c.kg)(566,"Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:z(new b(121,"selectionClipboard",!0,{description:(0,c.kg)(567,"Controls whether the Linux primary clipboard should be supported."),included:r.j9})),selectionHighlight:z(new b(122,"selectionHighlight",!0,{description:(0,c.kg)(568,"Controls whether the editor should highlight matches similar to the selection.")})),selectionHighlightMaxLength:z(new k(123,"selectionHighlightMaxLength",200,0,1073741824,{description:(0,c.kg)(569,"Controls how many characters can be in the selection before similiar matches are not highlighted. Set to zero for unlimited.")})),selectionHighlightMultiline:z(new b(124,"selectionHighlightMultiline",!1,{description:(0,c.kg)(570,"Controls whether the editor should highlight selection matches that span multiple lines.")})),selectOnLineNumbers:z(new b(125,"selectOnLineNumbers",!0)),showFoldingControls:z(new A(126,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[(0,c.kg)(571,"Always show the folding controls."),(0,c.kg)(572,"Never show the folding controls and reduce the gutter size."),(0,c.kg)(573,"Only show the folding controls when the mouse is over the gutter.")],description:(0,c.kg)(574,"Controls when the folding controls on the gutter are shown.")})),showUnused:z(new b(127,"showUnused",!0,{description:(0,c.kg)(575,"Controls fading out of unused code.")})),showDeprecated:z(new b(157,"showDeprecated",!0,{description:(0,c.kg)(576,"Controls strikethrough deprecated variables.")})),inlayHints:z(new class extends g{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1,maximumLength:43};super(159,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:(0,c.kg)(272,"Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[(0,c.kg)(273,"Inlay hints are enabled"),(0,c.kg)(274,"Inlay hints are showing by default and hide when holding {0}",r.zx?"Ctrl+Option":"Ctrl+Alt"),(0,c.kg)(275,"Inlay hints are hidden by default and show when holding {0}",r.zx?"Ctrl+Option":"Ctrl+Alt"),(0,c.kg)(276,"Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:(0,c.kg)(277,"Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:(0,c.kg)(278,"Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:(0,c.kg)(279,"Enables the padding around the inlay hints in the editor.")},"editor.inlayHints.maximumLength":{type:"number",default:e.maximumLength,markdownDescription:(0,c.kg)(280,"Maximum overall length of inlay hints, for a single line, before they get truncated by the editor. Set to `0` to never truncate")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return"boolean"===typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:E(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:k.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:_.string(t.fontFamily,this.defaultValue.fontFamily),padding:y(t.padding,this.defaultValue.padding),maximumLength:k.clampedInt(t.maximumLength,this.defaultValue.maximumLength,0,Number.MAX_SAFE_INTEGER)}}}),snippetSuggestions:z(new A(128,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[(0,c.kg)(577,"Show snippet suggestions on top of other suggestions."),(0,c.kg)(578,"Show snippet suggestions below other suggestions."),(0,c.kg)(579,"Show snippets suggestions with other suggestions."),(0,c.kg)(580,"Do not show snippet suggestions.")],description:(0,c.kg)(581,"Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:z(new class extends g{constructor(){super(129,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:(0,c.kg)(423,"Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:(0,c.kg)(424,"Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"===typeof e?{selectLeadingAndTrailingWhitespace:y(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:y(e.selectSubwords,this.defaultValue.selectSubwords)}:this.defaultValue}}),smoothScrolling:z(new b(130,"smoothScrolling",!1,{description:(0,c.kg)(582,"Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:z(new k(133,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:z(new class extends g{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(134,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[(0,c.kg)(375,"Insert suggestion without overwriting text right of the cursor."),(0,c.kg)(376,"Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:(0,c.kg)(377,"Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:(0,c.kg)(378,"Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:(0,c.kg)(379,"Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:(0,c.kg)(380,"Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[(0,c.kg)(381,"Always select a suggestion when automatically triggering IntelliSense."),(0,c.kg)(382,"Never select a suggestion when automatically triggering IntelliSense."),(0,c.kg)(383,"Select a suggestion only when triggering IntelliSense from a trigger character."),(0,c.kg)(384,"Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:(0,c.kg)(385,"Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:(0,c.kg)(386,"Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:(0,c.kg)(387,"Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:(0,c.kg)(388,"Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:(0,c.kg)(389,"Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:(0,c.kg)(390,"Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:(0,c.kg)(391,"This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:(0,c.kg)(392,"This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(393,"When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(394,"When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(395,"When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(396,"When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(397,"When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(398,"When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(399,"When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(400,"When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(401,"When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(402,"When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(403,"When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(404,"When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(405,"When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(406,"When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(407,"When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(408,"When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(409,"When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(410,"When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(411,"When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(412,"When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(413,"When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(414,"When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(415,"When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(416,"When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(417,"When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(418,"When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(419,"When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(420,"When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(421,"When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:(0,c.kg)(422,"When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertMode:E(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:y(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:y(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:y(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:y(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:E(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:y(t.showIcons,this.defaultValue.showIcons),showStatusBar:y(t.showStatusBar,this.defaultValue.showStatusBar),preview:y(t.preview,this.defaultValue.preview),previewMode:E(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:y(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:y(t.showMethods,this.defaultValue.showMethods),showFunctions:y(t.showFunctions,this.defaultValue.showFunctions),showConstructors:y(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:y(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:y(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:y(t.showFields,this.defaultValue.showFields),showVariables:y(t.showVariables,this.defaultValue.showVariables),showClasses:y(t.showClasses,this.defaultValue.showClasses),showStructs:y(t.showStructs,this.defaultValue.showStructs),showInterfaces:y(t.showInterfaces,this.defaultValue.showInterfaces),showModules:y(t.showModules,this.defaultValue.showModules),showProperties:y(t.showProperties,this.defaultValue.showProperties),showEvents:y(t.showEvents,this.defaultValue.showEvents),showOperators:y(t.showOperators,this.defaultValue.showOperators),showUnits:y(t.showUnits,this.defaultValue.showUnits),showValues:y(t.showValues,this.defaultValue.showValues),showConstants:y(t.showConstants,this.defaultValue.showConstants),showEnums:y(t.showEnums,this.defaultValue.showEnums),showEnumMembers:y(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:y(t.showKeywords,this.defaultValue.showKeywords),showWords:y(t.showWords,this.defaultValue.showWords),showColors:y(t.showColors,this.defaultValue.showColors),showFiles:y(t.showFiles,this.defaultValue.showFiles),showReferences:y(t.showReferences,this.defaultValue.showReferences),showFolders:y(t.showFolders,this.defaultValue.showFolders),showTypeParameters:y(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:y(t.showSnippets,this.defaultValue.showSnippets),showUsers:y(t.showUsers,this.defaultValue.showUsers),showIssues:y(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:z(new class extends g{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default",syntaxHighlightingEnabled:!0,minShowDelay:0,suppressInSnippetMode:!0,edits:{enabled:!0,showCollapsed:!1,renderSideBySide:"auto",allowCodeShifting:"always",showLongDistanceHint:!0},triggerCommandOnProviderChange:!1,experimental:{suppressInlineSuggestions:"",showOnSuggestConflict:"never",emptyResponseInformation:!0}};super(71,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:(0,c.kg)(339,"Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[(0,c.kg)(340,"Show the inline suggestion toolbar whenever an inline suggestion is shown."),(0,c.kg)(341,"Show the inline suggestion toolbar when hovering over an inline suggestion."),(0,c.kg)(342,"Never show the inline suggestion toolbar.")],description:(0,c.kg)(343,"Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.syntaxHighlightingEnabled":{type:"boolean",default:e.syntaxHighlightingEnabled,description:(0,c.kg)(344,"Controls whether to show syntax highlighting for inline suggestions in the editor.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:(0,c.kg)(345,"Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.suppressInSnippetMode":{type:"boolean",default:e.suppressInSnippetMode,description:(0,c.kg)(346,"Controls whether inline suggestions are suppressed when in snippet mode.")},"editor.inlineSuggest.minShowDelay":{type:"number",default:0,minimum:0,maximum:1e4,description:(0,c.kg)(347,"Controls the minimal delay in milliseconds after which inline suggestions are shown after typing.")},"editor.inlineSuggest.experimental.suppressInlineSuggestions":{type:"string",default:e.experimental.suppressInlineSuggestions,tags:["experimental"],description:(0,c.kg)(348,"Suppresses inline completions for specified extension IDs -- comma separated."),experiment:{mode:"auto"}},"editor.inlineSuggest.experimental.emptyResponseInformation":{type:"boolean",default:e.experimental.emptyResponseInformation,tags:["experimental"],description:(0,c.kg)(349,"Controls whether to send request information from the inline suggestion provider."),experiment:{mode:"auto"}},"editor.inlineSuggest.triggerCommandOnProviderChange":{type:"boolean",default:e.triggerCommandOnProviderChange,tags:["experimental"],description:(0,c.kg)(350,"Controls whether to trigger a command when the inline suggestion provider changes."),experiment:{mode:"auto"}},"editor.inlineSuggest.experimental.showOnSuggestConflict":{type:"string",default:e.experimental.showOnSuggestConflict,tags:["experimental"],enum:["always","never","whenSuggestListIsIncomplete"],description:(0,c.kg)(351,"Controls whether to show inline suggestions when there is a suggest conflict."),experiment:{mode:"auto"}},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:(0,c.kg)(352,"Controls the font family of the inline suggestions.")},"editor.inlineSuggest.edits.allowCodeShifting":{type:"string",default:e.edits.allowCodeShifting,description:(0,c.kg)(353,"Controls whether showing a suggestion will shift the code to make space for the suggestion inline."),enum:["always","horizontal","never"],tags:["nextEditSuggestions"]},"editor.inlineSuggest.edits.showLongDistanceHint":{type:"boolean",default:e.edits.showLongDistanceHint,description:(0,c.kg)(354,"Controls whether long distance inline suggestions are shown."),tags:["nextEditSuggestions","experimental"]},"editor.inlineSuggest.edits.renderSideBySide":{type:"string",default:e.edits.renderSideBySide,description:(0,c.kg)(355,"Controls whether larger suggestions can be shown side by side."),enum:["auto","never"],enumDescriptions:[(0,c.kg)(356,"Larger suggestions will show side by side if there is enough space, otherwise they will be shown below."),(0,c.kg)(357,"Larger suggestions are never shown side by side and will always be shown below.")],tags:["nextEditSuggestions"]},"editor.inlineSuggest.edits.showCollapsed":{type:"boolean",default:e.edits.showCollapsed,description:(0,c.kg)(358,"Controls whether the suggestion will show as collapsed until jumping to it."),tags:["nextEditSuggestions"]}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:y(t.enabled,this.defaultValue.enabled),mode:E(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:E(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:y(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:y(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:_.string(t.fontFamily,this.defaultValue.fontFamily),syntaxHighlightingEnabled:y(t.syntaxHighlightingEnabled,this.defaultValue.syntaxHighlightingEnabled),minShowDelay:k.clampedInt(t.minShowDelay,0,0,1e4),suppressInSnippetMode:y(t.suppressInSnippetMode,this.defaultValue.suppressInSnippetMode),edits:this._validateEdits(t.edits),triggerCommandOnProviderChange:y(t.triggerCommandOnProviderChange,this.defaultValue.triggerCommandOnProviderChange),experimental:this._validateExperimental(t.experimental)}}_validateEdits(e){if(!e||"object"!==typeof e)return this.defaultValue.edits;const t=e;return{enabled:y(t.enabled,this.defaultValue.edits.enabled),showCollapsed:y(t.showCollapsed,this.defaultValue.edits.showCollapsed),allowCodeShifting:E(t.allowCodeShifting,this.defaultValue.edits.allowCodeShifting,["always","horizontal","never"]),showLongDistanceHint:y(t.showLongDistanceHint,this.defaultValue.edits.showLongDistanceHint),renderSideBySide:E(t.renderSideBySide,this.defaultValue.edits.renderSideBySide,["never","auto"])}}_validateExperimental(e){if(!e||"object"!==typeof e)return this.defaultValue.experimental;const t=e;return{suppressInlineSuggestions:_.string(t.suppressInlineSuggestions,this.defaultValue.experimental.suppressInlineSuggestions),showOnSuggestConflict:E(t.showOnSuggestConflict,this.defaultValue.experimental.showOnSuggestConflict,["always","never","whenSuggestListIsIncomplete"]),emptyResponseInformation:y(t.emptyResponseInformation,this.defaultValue.experimental.emptyResponseInformation)}}}),inlineCompletionsAccessibilityVerbose:z(new b(169,"inlineCompletionsAccessibilityVerbose",!1,{description:(0,c.kg)(583,"Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:z(new k(135,"suggestFontSize",0,0,1e3,{markdownDescription:(0,c.kg)(584,"Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:z(new k(136,"suggestLineHeight",0,0,1e3,{markdownDescription:(0,c.kg)(585,"Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:z(new b(137,"suggestOnTriggerCharacters",!0,{description:(0,c.kg)(586,"Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:z(new A(138,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[(0,c.kg)(587,"Always select the first suggestion."),(0,c.kg)(588,"Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),(0,c.kg)(589,"Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:(0,c.kg)(590,"Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:z(new A(139,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[(0,c.kg)(591,"Tab complete will insert the best matching suggestion when pressing tab."),(0,c.kg)(592,"Disable tab completions."),(0,c.kg)(593,"Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:(0,c.kg)(594,"Enables tab completions.")})),tabIndex:z(new k(140,"tabIndex",0,-1,1073741824)),trimWhitespaceOnDelete:z(new b(141,"trimWhitespaceOnDelete",!1,{description:(0,c.kg)(595,"Controls whether the editor will also delete the next line's indentation whitespace when deleting a newline.")})),unicodeHighlight:z(new class extends g{constructor(){const e={nonBasicASCII:V,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:V,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(142,"unicodeHighlight",e,{[H.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,V],default:e.nonBasicASCII,description:(0,c.kg)(332,"Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[H.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:(0,c.kg)(333,"Controls whether characters that just reserve space or have no width at all are highlighted.")},[H.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:(0,c.kg)(334,"Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[H.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,V],default:e.includeComments,description:(0,c.kg)(335,"Controls whether characters in comments should also be subject to Unicode highlighting.")},[H.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,V],default:e.includeStrings,description:(0,c.kg)(336,"Controls whether characters in strings should also be subject to Unicode highlighting.")},[H.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:(0,c.kg)(337,"Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[H.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:(0,c.kg)(338,"Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let n=!1;t.allowedCharacters&&e&&((0,i.aI)(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},n=!0)),t.allowedLocales&&e&&((0,i.aI)(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},n=!0));const o=super.applyUpdate(e,t);return n?new m(o.newValue,!0):o}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{nonBasicASCII:F(t.nonBasicASCII,V,[!0,!1,V]),invisibleCharacters:y(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:y(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:F(t.includeComments,V,[!0,!1,V]),includeStrings:F(t.includeStrings,V,[!0,!1,V]),allowedCharacters:this.validateBooleanMap(t.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(t.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if("object"!==typeof e||!e)return t;const n={};for(const[o,i]of Object.entries(e))!0===i&&(n[o]=!0);return n}}),unusualLineTerminators:z(new A(143,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[(0,c.kg)(596,"Unusual line terminators are automatically removed."),(0,c.kg)(597,"Unusual line terminators are ignored."),(0,c.kg)(598,"Unusual line terminators prompt to be removed.")],description:(0,c.kg)(599,"Remove unusual line terminators that might cause problems.")})),useShadowDOM:z(new b(144,"useShadowDOM",!0)),useTabStops:z(new b(145,"useTabStops",!0,{description:(0,c.kg)(600,"Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:z(new A(146,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[(0,c.kg)(601,"Use the default line break rule."),(0,c.kg)(602,"Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:(0,c.kg)(603,"Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:z(new class extends g{constructor(){const e=[];super(147,"wordSegmenterLocales",e,{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}],description:(0,c.kg)(425,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"},default:e})}validate(e){if("string"===typeof e&&(e=[e]),Array.isArray(e)){const t=[];for(const n of e)if("string"===typeof n)try{Intl.Segmenter.supportedLocalesOf(n).length>0&&t.push(n)}catch{}return t}return this.defaultValue}}),wordSeparators:z(new _(148,"wordSeparators",l.J3,{description:(0,c.kg)(604,"Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:z(new A(149,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[(0,c.kg)(605,"Lines will never wrap."),(0,c.kg)(606,"Lines will wrap at the viewport width."),(0,c.kg)(607,"Lines will wrap at `#editor.wordWrapColumn#`."),(0,c.kg)(608,"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:(0,c.kg)(609,"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:z(new _(150,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uff61\uff64\uffe0\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff05\u30fb\uff65\u309d\u309e\u30fd\u30fe\u30fc\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096\u31f0\u31f1\u31f2\u31f3\u31f4\u31f5\u31f6\u31f7\u31f8\u31f9\u31fa\u31fb\u31fc\u31fd\u31fe\u31ff\u3005\u303b\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\uff70\u201d\u3009\u300b\u300d\u300f\u3011\u3015\uff09\uff3d\uff5d\uff63")),wordWrapBreakBeforeCharacters:z(new _(151,"wordWrapBreakBeforeCharacters","([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b")),wordWrapColumn:z(new k(152,"wordWrapColumn",80,1,1073741824,{markdownDescription:(0,c.kg)(610,"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:z(new A(153,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:z(new A(154,"wordWrapOverride2","inherit",["off","on","inherit"])),wrapOnEscapedLineFeeds:z(new b(160,"wrapOnEscapedLineFeeds",!1,{markdownDescription:(0,c.kg)(611,'Controls whether literal `\\n` shall trigger a wordWrap when `#editor.wordWrap#` is enabled.\n\nFor example:\n```c\nchar* str="hello\\nworld"\n```\nwill be displayed as\n```c\nchar* str="hello\\n\n world"\n```')})),effectiveCursorStyle:z(new class extends f{constructor(){super(161,I.Line)}compute(e,t,n){return"overtype"===e.inputMode?t.get(92):t.get(34)}}),editorClassName:z(new class extends f{constructor(){super(162,"")}compute(e,t,n){const o=["monaco-editor"];return t.get(48)&&o.push(t.get(48)),e.extraEditorClassName&&o.push(e.extraEditorClassName),"default"===t.get(82)?o.push("mouse-default"):"copy"===t.get(82)&&o.push("mouse-copy"),t.get(127)&&o.push("showUnused"),t.get(157)&&o.push("showDeprecated"),o.join(" ")}}),defaultColorDecorators:z(new A(167,"defaultColorDecorators","auto",["auto","always","never"],{enumDescriptions:[(0,c.kg)(612,"Show default color decorators only when no extension provides colors decorators."),(0,c.kg)(613,"Always show default color decorators."),(0,c.kg)(614,"Never show default color decorators.")],description:(0,c.kg)(615,"Controls whether inline color decorations should be shown using the default document color provider.")})),pixelRatio:z(new class extends f{constructor(){super(163,1)}compute(e,t,n){return e.pixelRatio}}),tabFocusMode:z(new b(164,"tabFocusMode",!1,{markdownDescription:(0,c.kg)(616,"Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:z(new R),wrappingInfo:z(new class extends f{constructor(){super(166,{isDominatedByLongLines:!1,isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1})}compute(e,t,n){const o=t.get(165);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:o.isWordWrapMinified,isViewportWrapping:o.isViewportWrapping,wrappingColumn:o.wrappingColumn}}}),wrappingIndent:z(new class extends g{constructor(){super(155,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[(0,c.kg)(426,"No indentation. Wrapped lines begin at column 1."),(0,c.kg)(427,"Wrapped lines get the same indentation as the parent."),(0,c.kg)(428,"Wrapped lines get +1 indentation toward the parent."),(0,c.kg)(429,"Wrapped lines get +2 indentation toward the parent.")],description:(0,c.kg)(430,"Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,n){return 2===t.get(2)?0:n}}),wrappingStrategy:z(new class extends g{constructor(){super(156,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[(0,c.kg)(261,"Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),(0,c.kg)(262,"Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:(0,c.kg)(263,"Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return E(e,"simple",["simple","advanced"])}compute(e,t,n){return 2===t.get(2)?"advanced":n}}),effectiveEditContextEnabled:z(new class extends f{constructor(){super(170,!1)}compute(e,t){return e.editContextSupported&&t.get(44)}}),effectiveAllowVariableFonts:z(new class extends f{constructor(){super(172,!1)}compute(e,t){return 2===e.accessibilitySupport?t.get(7):t.get(6)}})}},52066:(e,t,n)=>{n.d(t,{$M:()=>w,EI:()=>a,FX:()=>l,GE:()=>b,HC:()=>i,Iu:()=>k,KU:()=>s,Kb:()=>d,M$:()=>o,NI:()=>v,OV:()=>E,PK:()=>C,WA:()=>c,YT:()=>A,dG:()=>D,gP:()=>_,lO:()=>L,ou:()=>f,qw:()=>r,r4:()=>I,rY:()=>y,uB:()=>x,v_:()=>T});var o,i,r,s,a,l,c,d,u=n(7509),h=n(11343),g=n(48824),m=n(24649),p=n(75710);class f{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class w{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class y{constructor(e,t,n){this.tokens=e,this.fontInfo=t,this.endState=n,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(o||(o={})),function(e){const t=new Map;t.set(0,u.W.symbolMethod),t.set(1,u.W.symbolFunction),t.set(2,u.W.symbolConstructor),t.set(3,u.W.symbolField),t.set(4,u.W.symbolVariable),t.set(5,u.W.symbolClass),t.set(6,u.W.symbolStruct),t.set(7,u.W.symbolInterface),t.set(8,u.W.symbolModule),t.set(9,u.W.symbolProperty),t.set(10,u.W.symbolEvent),t.set(11,u.W.symbolOperator),t.set(12,u.W.symbolUnit),t.set(13,u.W.symbolValue),t.set(15,u.W.symbolEnum),t.set(14,u.W.symbolConstant),t.set(15,u.W.symbolEnum),t.set(16,u.W.symbolEnumMember),t.set(17,u.W.symbolKeyword),t.set(28,u.W.symbolSnippet),t.set(18,u.W.symbolText),t.set(19,u.W.symbolColor),t.set(20,u.W.symbolFile),t.set(21,u.W.symbolReference),t.set(22,u.W.symbolCustomColor),t.set(23,u.W.symbolFolder),t.set(24,u.W.symbolTypeParameter),t.set(25,u.W.account),t.set(26,u.W.issues),t.set(27,u.W.tools),e.toIcon=function(e){let n=t.get(e);return n||(n=u.W.symbolProperty),n},e.toLabel=function(e){switch(e){case 0:return(0,p.kg)(738,"Method");case 1:return(0,p.kg)(739,"Function");case 2:return(0,p.kg)(740,"Constructor");case 3:return(0,p.kg)(741,"Field");case 4:return(0,p.kg)(742,"Variable");case 5:return(0,p.kg)(743,"Class");case 6:return(0,p.kg)(744,"Struct");case 7:return(0,p.kg)(745,"Interface");case 8:return(0,p.kg)(746,"Module");case 9:return(0,p.kg)(747,"Property");case 10:return(0,p.kg)(748,"Event");case 11:return(0,p.kg)(749,"Operator");case 12:return(0,p.kg)(750,"Unit");case 13:return(0,p.kg)(751,"Value");case 14:return(0,p.kg)(752,"Constant");case 15:return(0,p.kg)(753,"Enum");case 16:return(0,p.kg)(754,"Enum Member");case 17:return(0,p.kg)(755,"Keyword");case 18:return(0,p.kg)(756,"Text");case 19:return(0,p.kg)(757,"Color");case 20:return(0,p.kg)(758,"File");case 21:return(0,p.kg)(759,"Reference");case 22:return(0,p.kg)(760,"Custom Color");case 23:return(0,p.kg)(761,"Folder");case 24:return(0,p.kg)(762,"Type Parameter");case 25:return(0,p.kg)(763,"User");case 26:return(0,p.kg)(764,"Issue");case 27:return(0,p.kg)(765,"Tool");case 28:return(0,p.kg)(766,"Snippet");default:return""}};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",28),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),n.set("tool",27),e.fromString=function(e,t){let o=n.get(e);return"undefined"!==typeof o||t||(o=9),o}}(i||(i={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(r||(r={}));class b{constructor(e,t,n,o){this.range=e,this.text=t,this.completionKind=n,this.isSnippetText=o}equals(e){return g.Q.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}!function(e){e[e.Code=1]="Code",e[e.Label=2]="Label"}(s||(s={}));class v{static fromExtensionId(e){return new v(e,void 0,void 0)}constructor(e,t,n){this.extensionId=e,this.extensionVersion=t,this.providerId=n}toString(){let e="";return this.extensionId&&(e+=this.extensionId),this.extensionVersion&&(e+=`@${this.extensionVersion}`),this.providerId&&(e+=`:${this.providerId}`),0===e.length&&(e="unknown"),e}toStringWithoutVersion(){let e="";return this.extensionId&&(e+=this.extensionId),this.providerId&&(e+=`:${this.providerId}`),e}}function k(e){return!!e&&h.r.isUri(e.uri)&&g.Q.isIRange(e.range)&&(g.Q.isIRange(e.originSelectionRange)||g.Q.isIRange(e.targetSelectionRange))}!function(e){e[e.Accepted=0]="Accepted",e[e.Rejected=1]="Rejected",e[e.Ignored=2]="Ignored"}(a||(a={})),function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(l||(l={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(c||(c={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(d||(d={}));const S={17:(0,p.kg)(767,"array"),16:(0,p.kg)(768,"boolean"),4:(0,p.kg)(769,"class"),13:(0,p.kg)(770,"constant"),8:(0,p.kg)(771,"constructor"),9:(0,p.kg)(772,"enumeration"),21:(0,p.kg)(773,"enumeration member"),23:(0,p.kg)(774,"event"),7:(0,p.kg)(775,"field"),0:(0,p.kg)(776,"file"),11:(0,p.kg)(777,"function"),10:(0,p.kg)(778,"interface"),19:(0,p.kg)(779,"key"),5:(0,p.kg)(780,"method"),1:(0,p.kg)(781,"module"),2:(0,p.kg)(782,"namespace"),20:(0,p.kg)(783,"null"),15:(0,p.kg)(784,"number"),18:(0,p.kg)(785,"object"),24:(0,p.kg)(786,"operator"),3:(0,p.kg)(787,"package"),6:(0,p.kg)(788,"property"),14:(0,p.kg)(789,"string"),22:(0,p.kg)(790,"struct"),25:(0,p.kg)(791,"type parameter"),12:(0,p.kg)(792,"variable")};function C(e,t){return(0,p.kg)(793,"{0} ({1})",e,S[t])}var _,E,A,x,I;!function(e){const t=new Map;t.set(0,u.W.symbolFile),t.set(1,u.W.symbolModule),t.set(2,u.W.symbolNamespace),t.set(3,u.W.symbolPackage),t.set(4,u.W.symbolClass),t.set(5,u.W.symbolMethod),t.set(6,u.W.symbolProperty),t.set(7,u.W.symbolField),t.set(8,u.W.symbolConstructor),t.set(9,u.W.symbolEnum),t.set(10,u.W.symbolInterface),t.set(11,u.W.symbolFunction),t.set(12,u.W.symbolVariable),t.set(13,u.W.symbolConstant),t.set(14,u.W.symbolString),t.set(15,u.W.symbolNumber),t.set(16,u.W.symbolBoolean),t.set(17,u.W.symbolArray),t.set(18,u.W.symbolObject),t.set(19,u.W.symbolKey),t.set(20,u.W.symbolNull),t.set(21,u.W.symbolEnumMember),t.set(22,u.W.symbolStruct),t.set(23,u.W.symbolEvent),t.set(24,u.W.symbolOperator),t.set(25,u.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(n=u.W.symbolProperty),n};const n=new Map;n.set(0,20),n.set(1,8),n.set(2,8),n.set(3,8),n.set(4,5),n.set(5,0),n.set(6,9),n.set(7,3),n.set(8,2),n.set(9,15),n.set(10,7),n.set(11,1),n.set(12,4),n.set(13,14),n.set(14,18),n.set(15,13),n.set(16,13),n.set(17,13),n.set(18,13),n.set(19,17),n.set(20,13),n.set(21,16),n.set(22,6),n.set(23,10),n.set(24,11),n.set(25,24),e.toCompletionKind=function(e){let t=n.get(e);return void 0===t&&(t=20),t}}(_||(_={}));class L{static{this.Comment=new L("comment")}static{this.Imports=new L("imports")}static{this.Region=new L("region")}static fromValue(e){switch(e){case"comment":return L.Comment;case"imports":return L.Imports;case"region":return L.Region}return new L(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(E||(E={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(A||(A={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(x||(x={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(I||(I={}));class T{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(e=>{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const D=new m.d},17055:(e,t,n)=>{n.d(t,{L:()=>o});const o=(0,n(9392).u1)("languageService")},28911:(e,t,n)=>{n.d(t,{S:()=>o});const o=(0,n(9392).u1)("modelService")},97499:(e,t,n)=>{n.d(t,{b:()=>o});const o=(0,n(9392).u1)("textModelService")},40946:(e,t,n)=>{n.d(t,{OL:()=>s,dg:()=>l,lw:()=>u});var o=n(36338),i=n(17286);const r=Symbol("TextModelEditSource");class s{constructor(e,t){this.metadata=e}toString(){return`${this.metadata.source}`}getType(){const e=this.metadata;switch(e.source){case"cursor":return e.kind;case"inlineCompletionAccept":return e.source+(e.$nes?":nes":"");case"unknown":return e.name||"unknown";default:return e.source}}toKey(e,t={}){const n=this.metadata;return Object.entries(n).filter(([n,o])=>{const i=t[n];if(void 0!==i)return i;return(n.match(/\$/g)||[]).length<=e&&void 0!==o&&null!==o&&""!==o}).map(([e,t])=>`${e}:${t}`).join("-")}}function a(e){return new s(e,r)}const l={unknown:e=>a({source:"unknown",name:e.name}),rename:(e,t)=>a({source:"rename",$$$oldName:e,$$$newName:t}),chatApplyEdits:e=>a({source:"Chat.applyEdits",$modelId:d(e.modelId),$extensionId:e.extensionId?.extensionId,$extensionVersion:e.extensionId?.version,$$languageId:e.languageId,$$sessionId:e.sessionId,$$requestId:e.requestId,$$mode:e.mode,$$codeBlockSuggestionId:e.codeBlockSuggestionId}),chatUndoEdits:()=>a({source:"Chat.undoEdits"}),chatReset:()=>a({source:"Chat.reset"}),inlineCompletionAccept:e=>a({source:"inlineCompletionAccept",$nes:e.nes,...c(e.providerId),$$correlationId:e.correlationId,$$requestUuid:e.requestUuid,$$languageId:e.languageId}),inlineCompletionPartialAccept:e=>a({source:"inlineCompletionPartialAccept",type:e.type,$nes:e.nes,...c(e.providerId),$$correlationId:e.correlationId,$$requestUuid:e.requestUuid,$$languageId:e.languageId}),inlineChatApplyEdit:e=>a({source:"inlineChat.applyEdits",$modelId:d(e.modelId),$extensionId:e.extensionId?.extensionId,$extensionVersion:e.extensionId?.version,$$sessionId:e.sessionId,$$requestId:e.requestId,$$languageId:e.languageId}),reloadFromDisk:()=>a({source:"reloadFromDisk"}),cursor:e=>a({source:"cursor",kind:e.kind,detailedSource:e.detailedSource}),setValue:()=>a({source:"setValue"}),eolChange:()=>a({source:"eolChange"}),applyEdits:()=>a({source:"applyEdits"}),snippet:()=>a({source:"snippet"}),suggest:e=>a({source:"suggest",...c(e.providerId)}),codeAction:e=>a({source:"codeAction",$kind:e.kind,...c(e.providerId)})};function c(e){return e?{$extensionId:e.extensionId,$extensionVersion:e.extensionVersion,$providerId:e.providerId}:{}}function d(e){if(void 0!==e)return e.replaceAll("/","|")}class u{static fromText(e){const t=i.W.ofText(e).lineCount,n=e.length;return new u(t,0,n,0)}static tryCreate(e,t,n,o){if(void 0!==e&&void 0!==t&&void 0!==n&&void 0!==o)return new u(e,t,n,o)}constructor(e,t,n,o){this.linesAdded=e,this.linesRemoved=t,this.charsAdded=n,this.charsRemoved=o}}var h;!function(e){e.newId=function(e){return e?e("sgt"):(0,o.t)("sgt")}}(h||(h={}))},11970:(e,t,n)=>{n.d(t,{Tf:()=>l,f7:()=>s,fE:()=>c});var o=n(20471),i=n(85932),r=n(83850);class s{static createEmpty(e,t){const n=s.defaultTokenMetadata,o=new Uint32Array(2);return o[0]=e.length,o[1]=n,new s(o,e,t)}static createFromTextAndMetadata(e,t){let n=0,o="";const i=new Array;for(const{text:r,metadata:s}of e)i.push(n+r.length,s),n+=r.length,o+=r;return new s(new Uint32Array(i),o,t)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let o=0;o<n;o++)e[o<<1]=e[o+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,o=(e.length>>>1)-1;for(;n<o;){const i=n+Math.floor((o-n)/2),r=e[i<<1];if(r===t)return i+1;r<t?n=i+1:r>t&&(o=i)}return n}static{this.defaultTokenMetadata=33587200}constructor(e,t,n){this._lineTokensBrand=void 0;(e.length>1?e[e.length-2]:0)!==t.length&&(0,r.dz)(new Error("Token length and text length do not match!")),this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}getTextLength(){return this._text.length}equals(e){return e instanceof s&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const o=t<<1,i=o+(n<<1);for(let r=o;r<i;r++)if(this._tokens[r]!==e._tokens[r])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=o.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return o.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return o.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return o.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return o.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return o.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return s.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new a(this,e,t,n)}sliceZeroCopy(e){return this.sliceAndInflate(e.start,e.endExclusive,0)}withInserted(e){if(0===e.length)return this;let t=0,n=0,o="";const i=new Array;let r=0;for(;;){const s=t<this._tokensCount?this._tokens[t<<1]:-1,a=n<e.length?e[n]:null;if(-1!==s&&(null===a||s<=a.offset)){o+=this._text.substring(r,s);const e=this._tokens[1+(t<<1)];i.push(o.length,e),t++,r=s}else{if(!a)break;if(a.offset>r){o+=this._text.substring(r,a.offset);const e=this._tokens[1+(t<<1)];i.push(o.length,e),r=a.offset}o+=a.text,i.push(o.length,a.tokenMetadata),n++}}return new s(new Uint32Array(i),o,this.languageIdCodec)}getTokensInRange(e){const t=new u,n=this.findTokenIndexAtOffset(e.start),o=this.findTokenIndexAtOffset(e.endExclusive);for(let r=n;r<=o;r++){const n=new i.L(this.getStartOffset(r),this.getEndOffset(r)).intersectionLength(e);n>0&&t.add(n,this.getMetadata(r))}return t.build()}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}toString(){let e="";return this.forEach(t=>{e+=`[${this.getTokenText(t)}]{${this.getClassName(t)}}`}),e}}class a{constructor(e,t,n,o){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=o,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let i=this._firstTokenIndex,r=e.getCount();i<r;i++){if(e.getStartOffset(i)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof a&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),o=this._source.getEndOffset(t);let i=this._source.getTokenText(t);return n<this._startOffset&&(i=i.substring(this._startOffset-n)),o>this._endOffset&&(i=i.substring(0,i.length-(o-this._endOffset))),i}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}function l(e,t){const n=t.lineNumber;if(!e.tokenization.isCheapToTokenize(n))return;e.tokenization.forceTokenization(n);const o=e.tokenization.getLineTokens(n),i=o.findTokenIndexAtOffset(t.column-1);return o.getStandardTokenType(i)}class c{static fromLineTokens(e){const t=[];for(let n=0;n<e.getCount();n++)t.push(new d(e.getEndOffset(n)-e.getStartOffset(n),e.getMetadata(n)));return c.create(t)}static create(e){return new c(e)}constructor(e){this._tokenInfo=e}toLineTokens(e,t){return s.createFromTextAndMetadata(this.map((t,n)=>({text:t.substring(e),metadata:n.metadata})),t)}forEach(e){let t=0;for(const n of this._tokenInfo){e(new i.L(t,t+n.length),n),t+=n.length}}map(e){const t=[];let n=0;for(const o of this._tokenInfo){const r=new i.L(n,n+o.length);t.push(e(r,o)),n+=o.length}return t}slice(e){const t=[];let n=0;for(const o of this._tokenInfo){const i=n,r=i+o.length;if(r>e.start){if(i>=e.endExclusive)break;const n=Math.max(0,e.start-i),s=Math.max(0,r-e.endExclusive);t.push(new d(o.length-n-s,o.metadata))}n+=o.length}return c.create(t)}}class d{constructor(e,t){this.length=e,this.metadata=t}}class u{constructor(){this._tokens=[]}add(e,t){this._tokens.push(new d(e,t))}build(){return c.create(this._tokens)}}},98937:(e,t,n)=>{n.d(t,{K:()=>a});var o=n(55466),i=n(48824),r=n(58700),s=n(91759);class a{static create(e,t){return new a(e,new l(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new i.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[o,i,r]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new a(this._startLineNumber,o),new a(this._startLineNumber+r,i)]}applyEdit(e,t){const[n,o,i]=(0,r.W)(t);this.acceptEdit(e,n,o,i,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new o.y(e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const o=this._tokens.getMaxDeltaLine();if(!(t>=o+1)){if(t<0&&n>=o+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const o=-t;this._startLineNumber-=o,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,o,i){if(0===t&&0===n)return;const r=e.lineNumber-this._startLineNumber;if(r<0)return void(this._startLineNumber+=t);r>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(r,e.column-1,t,n,o,i)}reportIfInvalid(e){this._tokens.reportIfInvalid(e,this._startLineNumber)}}class l{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),o=this._getEndCharacter(e-1);return new i.Q(0,t+1,n,o+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const o=t+Math.floor((n-t)/2),i=this._getDeltaLine(o);if(i<e)t=o+1;else{if(!(i>e)){let i=o;for(;i>t&&this._getDeltaLine(i-1)===e;)i--;let r=o;for(;r<n&&this._getDeltaLine(r+1)===e;)r++;return new c(this._tokens.subarray(4*i,4*r+4))}n=o-1}}return this._getDeltaLine(t)===e?new c(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,o){const i=this._tokens,r=this._tokenCount;let s=0,a=!1,l=0;for(let c=0;c<r;c++){const r=4*c,d=i[r],u=i[r+1],h=i[r+2],g=i[r+3];if((d>e||d===e&&h>=t)&&(d<n||d===n&&u<=o))a=!0;else{if(0===s&&(l=d),a){const e=4*s;i[e]=d-l,i[e+1]=u,i[e+2]=h,i[e+3]=g}else 0!==l&&(i[r]=d-l);s++}}return this._tokenCount=s,l}split(e,t,n,o){const i=this._tokens,r=this._tokenCount,s=[],a=[];let c=s,d=0,u=0;for(let l=0;l<r;l++){const r=4*l,s=i[r],h=i[r+1],g=i[r+2],m=i[r+3];if(s>e||s===e&&g>=t){if(s<n||s===n&&h<=o)continue;c!==a&&(c=a,d=0,u=s)}c[d++]=s-u,c[d++]=h,c[d++]=g,c[d++]=m}return[new l(new Uint32Array(s)),new l(new Uint32Array(a)),u]}acceptDeleteRange(e,t,n,o,i){const r=this._tokens,s=this._tokenCount,a=o-t;let l=0,c=!1;for(let d=0;d<s;d++){const u=4*d;let h=r[u],g=r[u+1],m=r[u+2];const p=r[u+3];if(h<t||h===t&&m<=n){l++;continue}if(h===t&&g<n)h===o&&m>i?m-=i-n:m=n;else if(h===t&&g===n){if(!(h===o&&m>i)){c=!0;continue}m-=i-n}else if(h<o||h===o&&g<i){if(!(h===o&&m>i)){c=!0;continue}h=t,g=n,m=g+(m-i)}else if(h>o){if(0===a&&!c){l=s;break}h-=a}else{if(!(h===o&&g>=i))throw new Error("Not possible!");e&&0===h&&(g+=e,m+=e),h-=a,g-=i-n,m-=i-n}const f=4*l;r[f]=h,r[f+1]=g,r[f+2]=m,r[f+3]=p,l++}this._tokenCount=l}acceptInsertText(e,t,n,o,i,r){const s=0===n&&1===o&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),a=this._tokens,l=this._tokenCount;for(let c=0;c<l;c++){const r=4*c;let l=a[r],d=a[r+1],u=a[r+2];if(!(l<e||l===e&&u<t)){if(l===e&&u===t){if(!s)continue;u+=1}else if(l===e&&d<t&&t<u)0===n?u+=o:u=t;else{if(l===e&&d===t&&s)continue;if(l===e)if(l+=n,0===n)d+=o,u+=o;else{const e=u-d;d=i+(d-t),u=d+e}else l+=n}a[r]=l,a[r+1]=d,a[r+2]=u}}}static{this._rateLimiter=new s.v(10/60)}reportIfInvalid(e,t){for(let n=0;n<this._tokenCount;n++){const o=this._getDeltaLine(n)+t;(o<1||o>e.getLineCount()||this._getEndCharacter(n)>e.getLineLength(o))&&l._rateLimiter.runIfNotLimited(()=>{})}}}class c{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}},69181:(e,t,n)=>{n.d(t,{QE:()=>Xe,XB:()=>Fe,Zc:()=>Ke});n(49830),n(68112),n(93881),n(70781),n(23019),n(11522),n(46037),n(24058);var o=n(20219),i=n(40980),r=n(69783),s=n(29037),a=n(40424),l=n(99109),c=n(60742),d=n(38770),u=n(11343),h=n(76704),g=n(50294),m=n(40730),p=n(90180),f=n(55466),w=n(48824),y=n(28911),b=n(97499),v=n(79901),k=n(10208),S=n(71354),C=n(5636),_=n(25013),E=n(33240),A=n(9392),x=n(69863),I=n(87372),L=n(96802),T=n(58392),D=n(15655),O=n(94003),M=n(12374),R=n(55716),N=n(80292),P=n(72452),W=n(35392),V=n(84606),H=n(95542),F=n(5140),U=n(6030),z=n(59106),j=n(33212),B=n(83693),$=n(43802),q=n(5402),K=n(6876),Y=n(62331),G=n(42991),Z=n(17055),Q=n(49708),J=n(7027),X=n(92152),ee=n(53316),te=n(45769),ne=n(5921),oe=n(28114),ie=n(34642),re=n(40616),se=n(90885),ae=n(29686),le=n(21915),ce=n(99938),de=n(62127),ue=n(94299),he=n(56874),ge=n(78778),me=n(25736),pe=n(67546),fe=n(19288),we=n(31040),ye=n(72944),be=n(61129),ve=n(29274),ke=n(28583),Se=n(24307),Ce=n(83850),_e=n(96016),Ee=n(56226),Ae=n(36119),xe=n(59055),Ie=n(43748),Le=n(40380),Te=n(40050),De=n(68079),Oe=n(51036),Me=function(e,t,n,o){var i,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,n,s):i(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Re=function(e,t){return function(n,o){t(n,o,e)}};class Ne{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new s.vl}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let Pe=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new l.BO(new Ne(t))):Promise.reject(new Error("Model not found"))}};Pe=Me([Re(0,y.S)],Pe);class We{static{this.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}}}show(){return We.NULL_PROGRESS_RUNNER}async showWhile(e,t){await e}}class Ve{static{this.NO_OP=new R.Kz}info(e){return this.notify({severity:d.A.Info,message:e})}warn(e){return this.notify({severity:d.A.Warning,message:e})}error(e){return this.notify({severity:d.A.Error,message:e})}notify(e){switch(e.severity){case d.A.Error:case d.A.Warning:}return Ve.NO_OP}prompt(e,t,n,o){return Ve.NO_OP}status(e,t){return{close:()=>{}}}}let He=class{constructor(e){this._onWillExecuteCommand=new s.vl,this._onDidExecuteCommand=new s.vl,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const n=k.w.getCommand(e);if(!n)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const o=this._instantiationService.invokeFunction.apply(this._instantiationService,[n.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(o)}catch(o){return Promise.reject(o)}}};He=Me([Re(0,A._Y)],He);let Fe=class extends x.E{constructor(e,t,n,o,s,a){super(e,t,n,o,s),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const c=e=>{const t=new l.Cm;t.add((0,i.ko)(e,i.Bx.KEY_DOWN,e=>{const t=new r.Z(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())})),t.add((0,i.ko)(e,i.Bx.KEY_UP,e=>{const t=new r.Z(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()})),this._domNodeListeners.push(new Ue(e,t))},d=e=>{for(let t=0;t<this._domNodeListeners.length;t++){const n=this._domNodeListeners[t];n.domNode===e&&(this._domNodeListeners.splice(t,1),n.dispose())}},u=e=>{e.getOption(70)||c(e.getContainerDomNode())};this._register(a.onCodeEditorAdd(u)),this._register(a.onCodeEditorRemove(e=>{e.getOption(70)||d(e.getContainerDomNode())})),a.listCodeEditors().forEach(u);const h=e=>{c(e.getContainerDomNode())};this._register(a.onDiffEditorAdd(h)),this._register(a.onDiffEditorRemove(e=>{d(e.getContainerDomNode())})),a.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,n,o){return(0,l.qE)(k.w.registerCommand(e,n),this.addDynamicKeybindings([{keybinding:t,command:e,when:o}]))}addDynamicKeybindings(e){const t=e.map(e=>({keybinding:(0,a.Zv)(e.keybinding,c.OS),command:e.command??null,commandArgs:e.commandArgs,when:e.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}));return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),(0,l.s)(()=>{for(let e=0;e<this._dynamicKeybindings.length;e++)if(this._dynamicKeybindings[e]===t[0])return this._dynamicKeybindings.splice(e,t.length),void this.updateResolver()})}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(T.f.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new L.f(e,t,e=>this._log(e))}return this._cachedResolver}_documentHasFocus(){return Ee.G.document.hasFocus()}_toNormalizedKeybindingItems(e,t){const n=[];let o=0;for(const i of e){const e=i.when||void 0,r=i.keybinding;if(r){const s=O.j.resolveKeybinding(r,c.OS);for(const r of s)n[o++]=new D.u(r,i.command,i.commandArgs,e,t,null,!1)}else n[o++]=new D.u(void 0,i.command,i.commandArgs,e,t,null,!1)}return n}resolveKeyboardEvent(e){const t=new a.dG(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new O.j([t],c.OS)}};Fe=Me([Re(0,_.fN),Re(1,k.d),Re(2,P.k),Re(3,R.Ot),Re(4,z.rr),Re(5,U.T)],Fe);class Ue extends l.jG{constructor(e,t){super(),this.domNode=e,this._register(t)}}function ze(e){return!!e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof u.r)}let je=class{constructor(e){this.logService=e,this._onDidChangeConfiguration=new s.vl,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const t=new be.M(e);this._configuration=new C.Vk(t.reload(),C.S1.createEmptyModel(e),C.S1.createEmptyModel(e),C.S1.createEmptyModel(e),C.S1.createEmptyModel(e),C.S1.createEmptyModel(e),new Ae.fT,C.S1.createEmptyModel(e),new Ae.fT,e),t.dispose()}getValue(e,t){const n="string"===typeof e?e:void 0,o=ze(e)?e:ze(t)?t:{};return this._configuration.getValue(n,o,void 0)}updateValues(e){const t={data:this._configuration.toData()},n=[];for(const o of e){const[e,t]=o;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),n.push(e))}if(n.length>0){const e=new C.Xm({keys:n,overrides:[]},t,this._configuration,void 0,this.logService);e.source=8,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,n,o){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}};je=Me([Re(0,z.rr)],je);let Be=class{constructor(e,t,n){this.configurationService=e,this.modelService=t,this.languageService=n,this._onDidChangeConfiguration=new s.vl,this.configurationService.onDidChangeConfiguration(e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,n)=>e.affectsConfiguration(n)})})}getValue(e,t,n){const o=f.y.isIPosition(t)?t:null,i=o?"string"===typeof n?n:void 0:"string"===typeof t?t:void 0,r=e?this.getLanguage(e,o):void 0;return"undefined"===typeof i?this.configurationService.getValue({resource:e,overrideIdentifier:r}):this.configurationService.getValue(i,{resource:e,overrideIdentifier:r})}getLanguage(e,t){const n=this.modelService.getModel(e);return n?t?n.getLanguageIdAtPosition(t.lineNumber,t.column):n.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};Be=Me([Re(0,S.pG),Re(1,y.S),Re(2,Z.L)],Be);let $e=class{constructor(e){this.configurationService=e}getEOL(e,t){const n=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return n&&"string"===typeof n&&"auto"!==n?n:c.j9||c.zx?"\n":"\r\n"}};$e=Me([Re(0,S.pG)],$e);class qe{static{this.SCHEME="inmemory"}constructor(){const e=u.r.from({scheme:qe.SCHEME,authority:"model",path:"/"});this.workspace={id:W.cn,folders:[new W.mX({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===qe.SCHEME?this.workspace.folders[0]:null}}function Ke(e,t,n){if(!t)return;if(!(e instanceof je))return;const o=[];Object.keys(t).forEach(e=>{(0,m.vf)(e)&&o.push([`editor.${e}`,t[e]]),n&&(0,m.Gn)(e)&&o.push([`diffEditor.${e}`,t[e]])}),o.length>0&&e.updateValues(o)}let Ye=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}async apply(e,t){const n=Array.isArray(e)?e:g.jN.convert(e),i=new Map;for(const o of n){if(!(o instanceof g.cw))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(o.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof o.versionId&&e.getVersionId()!==o.versionId)throw new Error("bad state - model changed in the meantime");let t=i.get(e);t||(t=[],i.set(e,t)),t.push(p.k.replaceMove(w.Q.lift(o.textEdit.range),o.textEdit.text))}let r=0,s=0;for(const[o,a]of i)o.pushStackElement(),o.pushEditOperations([],a,()=>[]),o.pushStackElement(),s+=1,r+=a.length;return{ariaSummary:(0,o.GP)(H.tu.bulkEditServiceSummary,r,s),isApplied:r>0}}};Ye=Me([Re(0,y.S)],Ye);let Ge=class extends $.Y{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,n){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,n)}};Ge=Me([Re(0,V.x),Re(1,U.T)],Ge);class Ze extends q.g{constructor(){super()}}class Qe extends ke.K{constructor(){super(new z.Cr)}}let Je=class extends K.K{constructor(e,t,n,o,i,r){super(e,t,n,o,i,r),this.configure({blockMouse:!1})}};Je=Me([Re(0,P.k),Re(1,R.Ot),Re(2,B.l),Re(3,I.b),Re(4,re.ez),Re(5,_.fN)],Je);var Xe;(0,Y.v)(Te.d,De.h,0),(0,Y.v)(z.rr,Qe,0),(0,Y.v)(S.pG,je,0),(0,Y.v)(v.U,Be,0),(0,Y.v)(v.J,$e,0),(0,Y.v)(W.VR,qe,0),(0,Y.v)(M.L,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,F.P8)(e)}},0),(0,Y.v)(P.k,class{publicLog2(){}},0),(0,Y.v)(E.X,class{async confirm(e){return{confirmed:this.doConfirm(e.message,e.detail),checkboxChecked:!1}}doConfirm(e,t){let n=e;return t&&(n=n+"\n\n"+t),Ee.G.confirm(n)}async prompt(e){let t;if(this.doConfirm(e.message,e.detail)){const n=[...e.buttons??[]];e.cancelButton&&"string"!==typeof e.cancelButton&&"boolean"!==typeof e.cancelButton&&n.push(e.cancelButton),t=await(n[0]?.run({checkboxChecked:!1}))}return{result:t}}async error(e,t){await this.prompt({type:d.A.Error,message:e,detail:t})}},0),(0,Y.v)(_e.k,class{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}},0),(0,Y.v)(R.Ot,Ve,0),(0,Y.v)(me.DR,pe.m,0),(0,Y.v)(Z.L,Ze,0),(0,Y.v)(ne.L,te.Sx,0),(0,Y.v)(y.S,X.J,0),(0,Y.v)(J.A,Q.D,0),(0,Y.v)(_.fN,ce.i7,0),(0,Y.v)(N.G5,class{withProgress(e,t,n){return t({report:()=>{}})}},0),(0,Y.v)(N.N8,We,0),(0,Y.v)(ye.CS,ye.pc,0),(0,Y.v)(g.nu,Ye,0),(0,Y.v)(j.L,class{constructor(){this._neverEmitter=new s.vl,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},0),(0,Y.v)(b.b,Pe,0),(0,Y.v)(ie.j,oe.s,0),(0,Y.v)(ge.PE,ge.aG,0),(0,Y.v)(k.d,He,0),(0,Y.v)(I.b,Fe,0),(0,Y.v)(we.GK,ee.oC,0),(0,Y.v)(B.l,Ge,0),(0,Y.v)(fe.Cr,G.J,0),(0,Y.v)(le.h,ae.w,0),(0,Y.v)(B.Z,Je,0),(0,Y.v)(re.ez,se.$,0),(0,Y.v)(ve.Nt,class{async playSignal(e,t){}},0),(0,Y.v)(xe.t,Ie.h,0),(0,Y.v)(z.xd,z.DA,0),(0,Y.v)(Le.a,Le.w,0),(0,Y.v)(Oe.x,class{constructor(){this.onDidChangeDefaultAccount=s.Jh.None}async getDefaultAccount(){return null}},0),(0,Y.v)(h.h,h.J,0),function(e){const t=new he.a;function n(){for(const[e,n]of(0,Y.N)())t.get(e)||t.set(e,n)}n();const o="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{},i="__emailmaker__.monacoEnvironment",r=i.lastIndexOf(".")>0?i.slice(0,i.lastIndexOf(".")):"";r?(o[r]=o[r]||{}).mergeLateSingletons=n:o.__monacoMergeLateSingletons=n;const a=new ue.n(t,!0);t.set(A._Y,a),e.get=function(e){c||u({});const n=t.get(e);if(!n)throw new Error("Missing service "+e);return n instanceof de.d?a.invokeFunction(t=>t.get(e)):n};let c=!1;const d=new s.vl;function u(e){if(n(),c)return a;c=!0;for(const n in e)if(e.hasOwnProperty(n)){const o=(0,A.u1)(n);t.get(o)instanceof de.d&&t.set(o,e[n])}const o=(0,Se.T)();for(const t of o)try{a.createInstance(t)}catch(i){(0,Ce.dz)(i)}return d.fire(),a}e.initialize=u,e.withServices=function(e){if(c)return e();const t=new l.Cm,n=t.add(d.event(()=>{n.dispose(),t.add(e())}));return t}}(Xe||(Xe={}))},9392:(e,t,n)=>{var o;n.d(t,{_$:()=>o,_Y:()=>i,u1:()=>r}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(o||(o={}));const i=r("instantiationService");function r(e){if(o.serviceIds.has(e))return o.serviceIds.get(e);const t=function(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[o.DI_TARGET]===t?t[o.DI_DEPENDENCIES].push({id:e,index:n}):(t[o.DI_DEPENDENCIES]=[{id:e,index:n}],t[o.DI_TARGET]=t)}(t,e,i)};return t.toString=()=>e,o.serviceIds.set(e,t),t}},58392:(e,t,n)=>{n.d(t,{f:()=>d});var o=n(40424),i=n(60742),r=n(10208),s=n(4144),a=n(99109),l=n(33548);class c{constructor(){this._coreKeybindings=new l.w,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===i.OS){if(e&&e.win)return e.win}else if(2===i.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=c.bindToCurrentPlatform(e),n=new a.Cm;if(t&&t.primary){const r=(0,o.Zv)(t.primary,i.OS);r&&n.add(this._registerDefaultKeybinding(r,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let r=0,s=t.secondary.length;r<s;r++){const s=t.secondary[r],a=(0,o.Zv)(s,i.OS);a&&n.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-r-1,e.when))}return n}registerCommandAndKeybindingRule(e){return(0,a.qE)(this.registerKeybindingRule(e),r.w.registerCommand(e))}_registerDefaultKeybinding(e,t,n,o,i,r){const s=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:n,when:r,weight1:o,weight2:i,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,(0,a.s)(()=>{s(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(u)),this._cachedMergedKeybindings.slice(0)}}const d=new c;function u(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.command<t.command)return-1;if(e.command>t.command)return 1}return e.weight2-t.weight2}s.O.add("platform.keybindingsRegistry",d)},51236:(e,t,n)=>{n.r(t),n.d(t,{Keyframes:()=>a.A,NaNLinter:()=>l.cH,StyleContext:()=>c.Ay,StyleProvider:()=>c.N7,Theme:()=>d.Sx,_experimental:()=>p,createCache:()=>c.VC,createTheme:()=>d.an,extractStyle:()=>o.A,genCalc:()=>d.Q7,getComputedToken:()=>i.lO,legacyLogicalPropertiesTransformer:()=>u.A,legacyNotSelectorLinter:()=>l.Qn,logicalPropertiesLinter:()=>l.bM,parentSelectorLinter:()=>l.QY,px2remTransformer:()=>h.A,token2CSSVar:()=>m.Ki,unit:()=>g.zA,useCSSVarRegister:()=>r.Ay,useCacheToken:()=>i.Ay,useStyleRegister:()=>s.Ay});var o=n(37660),i=n(79195),r=n(40737),s=n(59966),a=n(88189),l=n(1294),c=n(27726),d=n(79467),u=n(64210),h=n(10887),g=n(30005),m=n(16362),p={supportModernCSS:function(){return(0,g.n6)()&&(0,g.kZ)()}}},69969:(e,t,n)=>{n.d(t,{BD:()=>m});var o=n(60598),i=n(47752);const r="data-rc-order",s="data-rc-priority",a="rc-util-key",l=new Map;function c({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:a}function d(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function u(e){return Array.from((l.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function h(e,t={}){if(!(0,o.A)())return null;const{csp:n,prepend:i,priority:a=0}=t,l=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(i),c="prependQueue"===l,h=document.createElement("style");h.setAttribute(r,l),c&&a&&h.setAttribute(s,`${a}`),n?.nonce&&(h.nonce=n?.nonce),h.innerHTML=e;const g=d(t),{firstChild:m}=g;if(i){if(c){const e=(t.styles||u(g)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(r)))return!1;const t=Number(e.getAttribute(s)||0);return a>=t});if(e.length)return g.insertBefore(h,e[e.length-1].nextSibling),h}g.insertBefore(h,m)}else g.appendChild(h);return h}function g(e,t={}){let{styles:n}=t;return n||=u(d(t)),n.find(n=>n.getAttribute(c(t))===e)}function m(e,t,n={}){const o=d(n),r=u(o),s={...n,styles:r};!function(e,t){const n=l.get(e);if(!n||!(0,i.A)(document,n)){const n=h("",t),{parentNode:o}=n;l.set(e,o),e.removeChild(n)}}(o,s);const a=g(t,s);if(a)return s.csp?.nonce&&a.nonce!==s.csp?.nonce&&(a.nonce=s.csp?.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const m=h(e,s);return m.setAttribute(c(s),t),m}},39138:(e,t,n)=>{n.d(t,{kw:()=>l});let o={};const i=[];function r(e,t){0}function s(e,t){0}function a(e,t,n){t||o[n]||(e(!1,n),o[n]=!0)}function l(e,t){a(r,e,t)}l.preMessage=e=>{i.push(e)},l.resetWarned=function(){o={}},l.noteOnce=function(e,t){a(s,e,t)}},41208:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(82284),i=n(28776);const r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,s){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=r.has(t);if((0,i.Ay)(!l,"Warning: There may be circular references"),l)return!1;if(t===s)return!0;if(n&&a>1)return!1;r.add(t);var c=a+1;if(Array.isArray(t)){if(!Array.isArray(s)||t.length!==s.length)return!1;for(var d=0;d<t.length;d++)if(!e(t[d],s[d],c))return!1;return!0}if(t&&s&&"object"===(0,o.A)(t)&&"object"===(0,o.A)(s)){var u=Object.keys(t);return u.length===Object.keys(s).length&&u.every(function(n){return e(t[n],s[n],c)})}return!1}(e,t)}},37666:(e,t,n)=>{var o,i;n.d(t,{N_:()=>p,ok:()=>y});var r=n(25366),s=n(85095),a=n(33637),l=n(75426);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}function u(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let o=e[n];return t.concat(Array.isArray(o)?o.map(e=>[n,e]):[[n,o]])},[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const h=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(b){}new Map;(o||(o=n.t(r,2))).startTransition,(i||(i=n.t(s,2))).flushSync,(o||(o=n.t(r,2))).useId;const g="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,m=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,p=r.forwardRef(function(e,t){let n,{onClick:o,relative:i,reloadDocument:s,replace:u,state:p,target:f,to:w,preventScrollReset:y,viewTransition:v}=e,k=d(e,h),{basename:S}=r.useContext(a.jb),C=!1;if("string"===typeof w&&m.test(w)&&(n=w,g))try{let e=new URL(window.location.href),t=w.startsWith("//")?new URL(e.protocol+w):new URL(w),n=(0,l.pb)(t.pathname,S);t.origin===e.origin&&null!=n?w=n+t.search+t.hash:C=!0}catch(b){}let _=(0,a.$P)(w,{relative:i}),E=function(e,t){let{target:n,replace:o,state:i,preventScrollReset:s,relative:c,viewTransition:d}=void 0===t?{}:t,u=(0,a.Zp)(),h=(0,a.zy)(),g=(0,a.x$)(e,{relative:c});return r.useCallback(t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==o?o:(0,l.AO)(h)===(0,l.AO)(g);u(e,{replace:n,state:i,preventScrollReset:s,relative:c,viewTransition:d})}},[h,u,g,o,i,n,e,s,c,d])}(w,{replace:u,state:p,target:f,preventScrollReset:y,relative:i,viewTransition:v});return r.createElement("a",c({},k,{href:n||_,onClick:C||s?o:function(e){o&&o(e),e.defaultPrevented||E(e)},ref:t,target:f}))});var f,w;function y(e){let t=r.useRef(u(e)),n=r.useRef(!1),o=(0,a.zy)(),i=r.useMemo(()=>function(e,t){let n=u(e);return t&&t.forEach((e,o)=>{n.has(o)||t.getAll(o).forEach(e=>{n.append(o,e)})}),n}(o.search,n.current?null:t.current),[o.search]),s=(0,a.Zp)(),l=r.useCallback((e,t)=>{const o=u("function"===typeof e?e(i):e);n.current=!0,s("?"+o,t)},[s,i]);return[i,l]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(f||(f={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(w||(w={}))},43930:(e,t,n)=>{n.d(t,{A6:()=>c,AH:()=>p,BF:()=>u,Cn:()=>w,K8:()=>m,Lv:()=>S,M6:()=>d,ST:()=>h,Sb:()=>y,TM:()=>i,b6:()=>_,d1:()=>A,ih:()=>v,ir:()=>k,rq:()=>C,uE:()=>l,uL:()=>E,vq:()=>a,wz:()=>g});var o=n(73841);function i(e){return"<!DOCTYPE "+e.name+(e.publicId?' PUBLIC "'+e.publicId+'"':"")+(!e.publicId&&e.systemId?" SYSTEM":"")+(e.systemId?' "'+e.systemId+'"':"")+">"}const r=Object.create(null);function s(e,t){const n=r[e]||(r[e]=Object.create(null));let o=n[t];if("boolean"!==typeof o){const i=document.createElement(e)[t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(e,t)=>t.toUpperCase())];o=n[t]="undefined"!==typeof i&&"boolean"!==typeof i}return o}function a(e){return e.nodeType===Node.ELEMENT_NODE}function l(e){return a(e)&&!e.ownerSVGElement}function c(e){return"IMG"===e.tagName}function d(e){return"AMP-IMG"===e.tagName}function u(e){return"FORM"===e.tagName}function h(e){return"STYLE"===e.tagName}function g(e){return e.nodeType===Node.DOCUMENT_NODE}function m(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}let p;var f;function w(e){return e.nodeType===Node.COMMENT_NODE}function y(e){const t=e.getRootNode()||window.document;return function(e){return e&&!!e.host&&!!e.mode}(t)?t:null}(f=p||(p={})).isStyleRule=function(e){return"CSSStyleRule"===e.constructor.name},f.isImportRule=function(e){return"CSSImportRule"===e.constructor.name},f.isMediaRule=function(e){return"CSSMediaRule"===e.constructor.name},f.isFontFaceRule=function(e){return"CSSFontFaceRule"===e.constructor.name},f.isPageRule=function(e){return"CSSPageRule"===e.constructor.name},f.isKeyframesRule=function(e){return"CSSKeyframesRule"===e.constructor.name},f.isKeyframeRuleRule=function(e){return"CSSKeyframeRule"===e.constructor.name},f.isNamespaceRule=function(e){return"CSSNamespaceRule"===e.constructor.name},f.isCounterStyleRule=function(e){return"CSSCounterStyleRule"===e.constructor.name},f.isSupportsRule=function(e){return"CSSSupportsRule"===e.constructor.name},f.isFontFeatureValuesRuleRule=function(e){return"CSSFontFeatureValuesRule"===e.constructor.name};const b=/(<!(--)?\[if\s[()\w\s|&!]+\]>(?:<!--+>)?)((?:.|\r|\n)*?)((?:<!--)?<!\[endif\]\2>)/gi;function v(e){const t=_(e).matchAll(b);if(t)for(const n of t){const[,e,,t,o]=n;return{open:e,close:o,content:t}}}function k(e){return e.nodeType===Node.TEXT_NODE}function S(e){return"TABLE"===e.tagName}async function C(e,t=5e3){return"undefined"===typeof e.complete||e.complete?getComputedStyle(e):new Promise((n,o)=>{setTimeout(n,t),e.onload=()=>n(getComputedStyle(e)),e.onerror=e=>{}})}function _(e){if(a(e))return function(e){var t;const n=(null===(t=Object.getOwnPropertyDescriptor(e,"$$tagName"))||void 0===t?void 0:t.value)||e.tagName.toLowerCase(),i=function(e){const t=e.tagName.toLowerCase();let n="";for(const o of e.attributes){const e=o.name,i=o.value;n+=""!==i||"em"===e||s(t,e)?` ${e}="${i.replaceAll('"',"'")}"`:` ${e}`}return n}(e);return o.n1.has(n.toLowerCase())?"vk-snippet-end"===n?`<${n}${i}/>`:`<${n}${i}>`:h(e)?`<${n}${i}>${e.innerHTML}</${n}>`:`<${n}${i}>${E(e)}</${n}>`}(e);if(g(e))return[...e.childNodes].map(e=>_(e)).join("");if(function(e){return e.nodeType===Node.DOCUMENT_TYPE_NODE}(e))return i(e);const t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function E(e){let t="";for(const n of e.childNodes)t+=_(n);return t}function A(e,t){for(const r of[...e.childNodes])r.remove();let n=t.find(e=>function(e){return"HTML"===e.tagName}(e)),o=t.find(e=>function(e){return"BODY"===e.tagName}(e)),i=e;n||(n=document.createElement("html"),e.appendChild(n),i=n,o||(o=document.createElement("body"),n.appendChild(o),i=o));for(const r of t)i===e&&k(r)?i.appendChild(document.createComment(`%%%{{{${r.data}}}}%%%`)):i.appendChild(r)}},46638:(e,t,n)=>{n.d(t,{$$:()=>p,Os:()=>g});var o=n(46168),i=n(15471),r=n(75038);const s=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr","vk-snippet-end"],a=new o.H(s),l=new i.X(a);const c=new Set(["onclick","onload","onchange","onsubmit","onmouseover","onkeydown","onerror"]),d=new Set(["script","style","xmp"]);const u=e=>{let t=e.indexOf("&");for(;-1!==t;){if(-1!==e.indexOf(";",t))return!0;t=e.indexOf("&",t+1)}return!1};function h(e,t,n){let o=e.tagName.toLowerCase();"html"===o&&(o="div");const i=`<${o} ${t}="${n}"/>`,r=function(e){let t;switch(null===e||void 0===e?void 0:e.toLowerCase()){case"tr":t=document.createElement("table");break;case"td":t=document.createElement("tr");break;case"head":case"body":t=document.createElement("html");break;case"documenttype":case"html":{const e=document.implementation.createHTMLDocument();for(const t of[...e.childNodes])t.remove();return e}default:t=document.createElement("div")}return t}(o);if(r instanceof Document)return;r.innerHTML=i;const s=r.querySelector(o);if(!s)throw new Error("targetElement is not defined");const a=s.getAttributeNode(t);a&&e.setAttributeNode(a.cloneNode())}function g(e,t,n){try{o=t,(i=e.tagName)&&d.has(i.toLowerCase())||c.has(o.toLowerCase())||u(n)?h(e,t,n):e.setAttribute(t,n)}catch{h(e,t,n)}var o,i}function m(e,t=!0){const n=e.content;switch(e.type){case r.Z.ROOT:{const n=document.implementation.createHTMLDocument();for(const e of[...n.childNodes])n.removeChild(e);if(t)for(const t of e.children)n.appendChild(m(t));return n}case r.Z.DOCTYPE:return(new DOMParser).parseFromString(`<!DOCTYPE${e.content}>`,"text/html").doctype;case r.Z.COMMENT:return document.createComment(n||"");case r.Z.ELEMENT:if(e.tag){const n=document.createElement(e.tag);if(Object.defineProperty(n,"$$tagName",{enumerable:!1,configurable:!1,value:e.tag}),e.attributes)for(const t of e.attributeNames){const i=e.attributes[t];try{g(n,t,"string"===typeof i?i:"")}catch(o){}}if(t)for(const t of e.children)n.appendChild(m(t));return n}return document.createTextNode("<");case r.Z.HTML:return function(e){if(e){const t=document.createElement("div");return t.insertAdjacentHTML("afterbegin",e),t.firstChild||document.createTextNode("")}return document.createTextNode("")}(n||"");default:throw new Error("unsupported node")}}function p(e){var t;return(t=e,l.parse(t)).roots.map(e=>m(e))}},12384:(e,t,n)=>{n.d(t,{Km:()=>L,Sc:()=>I,Nh:()=>_});var o=n(43930),i=n(46638),r=n(37704),s=n(74662);const a="amp-custom";function l(e,t,n){for(const i of t)if(o.AH.isStyleRule(i)){const t=i.selectorText.split(/\+>~/).flatMap(e=>e.trim().split(" "));if(1===t.length&&t[0].trim().startsWith(".em-"))for(const r of i.style){if("important"===i.style.getPropertyPriority(r))for(const t of e.querySelectorAll(i.selectorText))if((0,o.uE)(t)){const e=t.style;for(const o of[...e])if(o.startsWith(r)){const i=n(o,e.getPropertyValue(o)),r=t.getAttribute("class");t.setAttribute("class",r?`${i} ${r}`:i),e.removeProperty(o)}}}}else o.AH.isMediaRule(i)&&l(e,i.cssRules,n)}function c(e,t){const n=t.sheet;if(n){const i=new Set;l(e,n.cssRules,(e,r)=>{const s=function(e,t){return`em-${e.replaceAll("-","_")}-${t.toLowerCase()}`}(e,r),a=[...n.cssRules],l=`.${s} { ${e}: ${r} }`;return a.find(e=>o.AH.isStyleRule(e)&&e.selectorText===`.${s}`)||i.has(l)||(i.add(l),t.innerHTML=`\n.${s} { ${e}: ${r} };\n${t.innerHTML}`),s}),i.size&&(t.innerHTML=`\n${[...i].join("\n")};\n${t.innerHTML}`)}else;const i=t.innerHTML,r=i.replace(/!important/g,"");i!==r&&(t.innerHTML=r)}const d='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',u="<!doctype html>";async function h(e,t={}){const n=document.createElement("amp-img"),r=await(0,o.rq)(e)||void 0,a=[];try{let l=e;for(;l&&(0,o.uE)(l);){const e=getComputedStyle(l);"none"===(null===e||void 0===e?void 0:e.display)&&(l.style.display="initial",a.push([l,l.style.display])),l=l.parentElement}const c=null!==r&&void 0!==r&&r.height?`${parseInt(r.height)}`:"",d=null!==r&&void 0!==r&&r.width?`${parseInt(r.width)}`:"",u=(0,s.xm)(e);let h=!1;if(u){const t=u.getAttribute("width");try{let n=d?`${d}px`:"";t||(u.setAttribute("width","720px"),n=getComputedStyle(e).width||""),u.setAttribute("width",!t||parseInt(t)>320?"320px":"720px"),n!==(getComputedStyle(e).width||"")&&(h=!0)}finally{t&&u.setAttribute("width",t||"")}}const g=e.src||e.srcset.split(",")[0];"100%"===e.style.width&&e.style.removeProperty("width"),"100%"===e.style.maxWidth&&e.style.removeProperty("max-width"),t={...(0,s.gu)(e),alt:e.alt,width:d,height:c,src:g,layout:h?"responsive":"fixed",...t};for(const e of Object.keys(t))(0,i.Os)(n,e,t[e])}finally{for(const[e,t]of a)e.style.display=t}return n}function g(e){const t=document.createElement("img"),{layout:n,height:o,...r}=(0,s.gu)(e),a="responsive"===n;for(const s of Object.keys(r))(0,i.Os)(t,s,r[s]);return a&&(t.style.maxWidth=r.width||"0px",t.style.width="100%"),t}var m=n(42597),p=n(96624),f=n(28464);function w(e,t){return`${f.gP}/${e.toLowerCase()}-${t}.js`}var y=n(96513);const b=new Map;const v=new Map;const k="$GLOBAL_ATTRS",S=new Map;async function C(){if(!S.size){var e;const t=null===(e=(await(0,y.F)()).attrLists.find(e=>e.name===k))||void 0===e?void 0:e.attrs;if(t)for(const e of t)S.set(e.name,e)}return S}function _(e){var t;return(0,o.vq)(e)&&(e.tagName.startsWith("AMP")||"FORM"===e.tagName||"TEMPLATE"===e.tagName&&"amp-mustache"===(null===(t=e.getAttribute("type"))||void 0===t?void 0:t.toLowerCase()))}function E(e,t,n){var i,r,s;if(t)if((0,o.vq)(e))switch(e.tagName.toLowerCase()){case"body":case n("script"):case"style":case"meta":case"title":return;case"head":case"html":l();break;default:a()||l()}else(0,o.wz)(e)?l():(0,o.ir)(e)&&(null!==(i=e.textContent)&&void 0!==i&&i.trim()||null!==(r=e.nextSibling)&&void 0!==r&&null!==(s=r.textContent)&&void 0!==s&&s.trim()&&(0,o.ir)(e.nextSibling))&&a();function a(){const n=t.compareDocumentPosition(e);if(!(8&n)){if(2&n)return t.insertBefore(e,t.firstChild),!0;if(4&n)return t.appendChild(e),!0}return!1}function l(){const o=[...e.childNodes];for(let e=o.length-1;e>=0;e--)E(o[e],t,n)}}async function A(e,t){const n=new Set,l=t.commit,d=e=>t.replaceSelectors(e.toLowerCase());if(t.replaceImages&&await async function(e,t){const n=[...e.querySelectorAll("img")],o=[];for(const r of n)o.push(h(r).then(e=>[r,e],()=>[r,void 0]));const i=[...e.querySelectorAll("picture")];for(const r of i){const e=r.querySelector("img");e?o.push(h(e).then(e=>[r,e],()=>[r,void 0])):o.push([r,void 0])}if(o.length){const e=await Promise.all(o);for(const[t,n]of e)n?t.replaceWith(n):t.remove();null===t||void 0===t||t()}}(e,l),t.injectExtensions){const A=t.replaceSelectors(f.Vq);if(!e.querySelector(A)){const x=t.createElementFn("script");x.setAttribute("src",f.zq),x.setAttribute("async","");(0,s.xy)(e).appendChild(x),null===l||void 0===l||l()}}t.injectRequiredTags&&((0,p.y)(e,t.createElementFn,d),function(e){const t=e.doctype;if(t){if((0,o.TM)(t)===u)return;const n=(new DOMParser).parseFromString(u,"text/html").doctype;e.replaceChild(n,t)}else{const t=(new DOMParser).parseFromString(u,"text/html").doctype;e.insertBefore(t,e.firstChild)}}(e),(0,r.R)(e),(0,m.C)(e),null===l||void 0===l||l()),t.replaceStylesAndLinks&&(!function(e){const t=(0,s.xy)(e),n=e.querySelectorAll('link[rel="stylesheet"]'),o=[...e.querySelectorAll("style")].filter(e=>!e.hasAttribute("amp4email-boilerplate"));if(1===o.length){const n=o[0];if(n.parentElement===t&&""===n.getAttribute(a))return void c(e,n)}const i=[];for(const r of o)i.push(r.innerHTML),r.remove();if(i.length){const n=e.createElement("style");n.innerHTML=`\n${i.join("")}\n`,n.setAttribute(a,""),t.append(n),c(e,n)}for(const r of n)r.remove()}(e),null===l||void 0===l||l());const g=await(0,y.F)(),k=await async function(){if(!b.size){const e=await(0,y.F)(),t=e.tags;for(let n=0;n<t.length;n++){const o=t[n],{selector:i,attrs:r,attrLists:s}=o,a=(null===s||void 0===s?void 0:s.flatMap(t=>e.attrLists.filter(({name:e})=>e===t).flatMap(e=>e.attrs)))||[];b.set(i,{...o,priority:n,attrs:new Map([...r,...a].map(e=>[e.name,e]))})}}return b}(),S=new Set(t.removeUnsupportedTags?e.querySelectorAll("*"):[]),_=new Map;for(let[I,L]of k)if(!L.deprecation){I=d(I);let T=[...e.querySelectorAll(I)].filter(e=>!_.has(e));L.unique&&T.length&&(T=[T[0]]),t.injectRequiredTags&&L.required&&!T.length&&(T=[...T,t.createElementFn(L.name)]);for(const D of T){if(t.injectRequiredAttributes&&D.getAttribute("on")&&!D.getAttribute("tabindex")&&D.setAttribute("tabindex","0"),t.removeUnsupportedStyles){let M=!1;for(const R of[...D.classList])R.startsWith("i-amphtml")&&(M=!0,D.classList.remove(R));M&&!D.classList.length&&D.removeAttribute("class")}const O=_.get(D);O&&O.priority>L.priority||_.set(D,L)}}null===l||void 0===l||l();for(const[N,P]of _){if(t.injectExtensions&&P.requiresExtension)for(const H of P.requiresExtension)n.add(H);const W=P.requiredParent?"$ROOT"===P.requiredParent?e:e.querySelector(P.requiredParent):null;!W||N.parentNode&&!t.moveInvalidTagPosition?N.parentNode||e.body.appendChild(N):W!==N.parentNode&&("HEAD"===P.name||(0,o.vq)(W)&&"HEAD"===W.tagName?W.insertBefore(N,W.firstChild):W.appendChild(N)),t.removeUnsupportedTags&&S.delete(N),null===l||void 0===l||l();const V=await C();if(t.removeUnsupportedAttributes||t.injectRequiredAttributes){const F=P.attrs,U=t.injectRequiredAttributes?new Set([...F].map(([e,t])=>t).filter(e=>e.required&&e.value)):void 0,z=N.getAttributeNames();for(const j of z){const B=F.get(j)||V.get(j);if(B){if("id"===j||"class"===j||"style"===j){null===U||void 0===U||U.delete(B);continue}if(t.removeUnsupportedAttributes){const $=N.getAttribute(j);if(B.value&&B.value.indexOf($)<0){N.removeAttribute(j);continue}if(B.valueRegex){if(!new RegExp(B.valueRegex).test($)){N.removeAttribute(j);continue}}if(B.disallowedValueRegex){if(new RegExp(B.disallowedValueRegex).test($)){N.removeAttribute(j);continue}}const q=B.valueUrl;if(q)if(""===$){if(!q.allowEmpty){N.removeAttribute(j);continue}}else if($.indexOf("\x3c!--")>0&&$.indexOf("--\x3e")>0);else if(!q.allowRelative){if($.startsWith("#")||$.startsWith("/")){N.removeAttribute(j);continue}{const K=q.protocol.length?q.protocol:["https"],Y=$.substring(0,$.indexOf(":"));if(Y){if(K.indexOf(Y)<0){const G=K[0]+$.substring($.indexOf(":"));if(!URL.canParse(G)){N.removeAttribute(j);continue}(0,i.Os)(N,j,G)}else if(!URL.canParse($)){N.removeAttribute(j);continue}}else{const Z=K[0]+$;if(!URL.canParse(Z)){N.removeAttribute(j);continue}(0,i.Os)(N,j,Z)}}}}null===U||void 0===U||U.delete(B)}else{if("id"===j||"class"===j||"style"===j)continue;t.removeUnsupportedAttributes&&N.removeAttribute(j)}}if(U)for(const Q of U)(0,i.Os)(N,Q.name,Q.value[0])}null===l||void 0===l||l()}t.moveInvalidTagPosition&&(E(e,e.body,d),null===l||void 0===l||l());for(const J of S)J.remove();if(null===l||void 0===l||l(),t.removeUnsupportedStyles){const X=e.querySelectorAll("*"),ee=await async function(){if(!v.size){const e=await(0,y.F)();for(const t of e.declarations)v.set(t.name,t)}return v}();function te(e){const t=e.cssText.replaceAll(/\".*\"/g,"").replaceAll(/\'.*\'/g,"").replaceAll(/\/\*.*\*\/|(-moz-|-ms-|-o-|-webkit-)+\w+(?=:)/g,"").match(/[a-z-]+(?=:[^before|after|hover])/gi)||[];for(const n of t){if(!n)continue;const t=e.getPropertyValue(n);"important"===e.getPropertyPriority(n)&&e.setProperty(n,t);const o=ee.get(n);if(o){if(o.value)o.value.indexOf(t)<0&&e.removeProperty(n);else if(o.valueRegex){new RegExp(o.valueRegex).test(t)||e.removeProperty(n)}}else e.removeProperty(n)}null===l||void 0===l||l()}function ne(e){return"CSSStyleRule"===e.constructor.name}function oe(e){return"CSSMediaRule"===e.constructor.name}function ie(e){const t=e.cssRules;for(let n=t.length-1;n>=0;n--){const o=t[n];ne(o)?o.selectorText.indexOf("[")>=0||o.selectorText.indexOf(":")>=0?e.deleteRule(n):(te(o.style),o.style.cssText||e.deleteRule(n)):oe(o)?(ie(o),o.cssRules.length||e.deleteRule(n)):e.deleteRule(n)}}for(const se of X)if((0,o.uE)(se)){const ae=se.getAttribute("style");ae&&(te(se.style),se.style.length?se.style.cssText!==ae&&se.setAttribute("style",se.style.cssText):se.removeAttribute("style"))}const re=e.querySelector("style[amp-custom]");if(re){const le=re.sheet;le&&(ie(le),re.innerHTML=[...le.cssRules].map(e=>e.cssText).join("\n")),null===l||void 0===l||l()}}await async function(e,t,n){for(const{name:o,versions:i}of t){const t=n.replaceSelectors("amp-mustache"===o?`script[async][custom-template='${o}']`:`script[async][custom-element='${o}']`);if(!e.querySelector(t)){const t=(0,s.xy)(e),r=n.createElementFn("script"),a=w(o,i.findLast(e=>"latest"!==e)||"v0");r.setAttribute("async",""),r.setAttribute("amp-mustache"===o?"custom-template":"custom-element",o),r.setAttribute("src",a),t.appendChild(r),t.appendChild(e.createTextNode("\n"))}}}(e,g.extensions.filter(({name:e})=>n.has(e)),t)}function x(e,t){return Object.keys(t).reduce((e,n)=>e.replaceAll(n,t[n]),e)}function I(e,t={}){const{correct:n=!0,injectExtensions:o=!0,mappedTags:i={}}=t;return A(e,{replaceImages:n,replaceStylesAndLinks:n,injectRequiredTags:n,injectExtensions:o,formsAsAmpForms:o,injectRequiredAttributes:n,moveInvalidTagPosition:n,removeUnsupportedTags:n,removeUnsupportedAttributes:n,removeUnsupportedStyles:n,createElementFn:t=>e.createElement(i[t.toLowerCase()]||t),replaceSelectors:e=>x(e.toLowerCase(),i),commit:t.commit})}function L(e,t={}){const{correct:n=!0,removeExtensions:i=!0,mappedTags:l={}}=t,c=t.commit,h=t=>e.createElement(l[t.toLowerCase()]||t),m=e=>x(e,l);if(n){!function(e,t){const n=[...e.querySelectorAll("amp-img")];for(const o of n)o.replaceWith(g(o));n.length&&(null===t||void 0===t||t())}(e),function(e){const t=e.doctype;if(t&&(0,o.TM)(t).toLowerCase()===u){const n=(new DOMParser).parseFromString(d,"text/html").doctype;e.replaceChild(n,t)}}(e),function(e){const t=e.querySelector(`style[${a}]`);t&&t.removeAttribute(a)}(e),(0,r.C)(e);const t=(0,s.ep)(e);t.removeAttribute("\u26a14email"),t.removeAttribute("data-css-strict"),null===c||void 0===c||c()}i&&(!function(e,t){const n=e.querySelectorAll("*"),o=e.querySelectorAll(t.replaceSelectors("script[src]"));for(const r of o){var i;null!==(i=r.getAttribute("src"))&&void 0!==i&&i.startsWith(f.gP)&&r.remove()}for(const r of n)_(r)&&"FORM"!==r.tagName&&r.remove()}(e,{formsAsAmpForms:t.removeExtensions,createElementFn:h,replaceSelectors:m}),null===c||void 0===c||c())}},86350:(e,t,n)=>{n.d(t,{Ay:()=>s,oK:()=>l});const o=(e,t)=>t.some(t=>t instanceof RegExp?t.test(e):t===e),i=new Set(["https:","http:","file:"]),r=e=>{const t=e.indexOf(":");if(t<=0)return!1;const n=e.substring(0,t+1);return!!/^[a-zA-Z][a-zA-Z0-9+\-.]*:$/.test(n)&&(n.endsWith(":")&&!n.includes(".")&&!i.has(n))};function s(e,t){if(t={defaultProtocol:"http",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,...t},!e)return"";if(a(e)&&(e=l(e)),"string"!==typeof t.defaultProtocol||t.defaultProtocol.endsWith(":")||(t.defaultProtocol=`${t.defaultProtocol}:`),e=e.trim(),/^data:/i.test(e)||r(e))return e;const n=e.startsWith("//"),i=!n&&/^\.*\//.test(e);let s,c;try{s=i?new URL(e,"undefined"!==typeof document?document.baseURI:"http://localhost/").toString():e}catch{s=e}try{c=new URL(s)}catch{const t=document.createElement("a");t.href=e,c=new URL(t.href)}if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===c.protocol&&(c.protocol="http:"),t.forceHttps&&"http:"===c.protocol&&(c.protocol="https:"),t.stripAuthentication&&(c.username="",c.password=""),t.stripHash?c.hash="":t.stripTextFragment&&(c.hash=c.hash.replace(/#?:~:text.*?$/i,"")),c.pathname){const e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g;let t=0,n="";for(;;){const o=e.exec(c.pathname);if(!o)break;const i=o.index;n+=c.pathname.slice(t,i).replace(/\/{2,}/g,"/"),n+=o[0],t=i+o[0].length}n+=c.pathname.slice(t).replace(/\/{2,}/g,"/"),c.pathname=n;try{c.pathname=decodeURI(c.pathname)}catch{}}if(t.removeDirectoryIndex){let e=c.pathname.split("/");const n=e[e.length-1];Array.isArray(t.removeDirectoryIndex)&&o(n,t.removeDirectoryIndex)&&(e=e.slice(0,-1),c.pathname=e.join("/")+"/")}if(t.stripWWW&&/^www\.(?!www\.)[a-z\d\-]+(\.[a-z.\-]{2,63})+$/.test(c.hostname||"")&&(c.hostname=c.hostname.replace(/^www\./,"")),Array.isArray(t.removeQueryParameters))for(const r of[...c.searchParams.keys()])o(r,t.removeQueryParameters)&&c.searchParams.delete(r);if(t.sortQueryParameters){c.searchParams.sort();try{c.search=decodeURIComponent(c.search)}catch{}}t.removeTrailingSlash&&(c.pathname=c.pathname.replace(/\/$/,"")),t.removeExplicitPort&&c.port&&(c.port="");let d=c.toString();return t.removeSingleSlash||"/"!==c.pathname||e.endsWith("/")||""!==c.hash||(d=d.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===c.pathname)&&""===c.hash&&t.removeSingleSlash&&(d=d.replace(/\/$/,"")),n&&!t.normalizeProtocol&&(d=d.replace(/^https?:\/\//,"//")),d}function a(e){if(!e)return!1;const t=e[0];return e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||function(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}(t)}function l(e){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")||!a(e)||/^(mailto:|tel:|fax:|sms:|geo:|blob:|data:|javascript:)/i.test(e))return e;if(e.startsWith("/"))return window.location.origin+e;const t=window.location.href,n=t.lastIndexOf("/");return(-1!==n?t.slice(0,n+1):t+"/")+e}},14365:(e,t,n)=>{n.d(t,{Fc:()=>$.A,qw:()=>a.A,eu:()=>T,Qp:()=>F.A,$n:()=>l.A,Zp:()=>D.A,FN:()=>ne.A,vx:()=>u.A,Xl:()=>H.X,Sc:()=>h.A,fv:()=>J.A,tL:()=>me.t,it:()=>me.A,Mw:()=>O.A,LW:()=>pe.A,lr:()=>g.A,cG:()=>X.A,FQ:()=>ge.A,ms:()=>U.A,HQ:()=>c.A,Sv:()=>M.Ay,so:()=>ee.A,lV:()=>d.A,BK:()=>ve.A,Qx:()=>ke.A,Qm:()=>Se.A,Ok:()=>ye.Ok,sQ:()=>ye.sQ,nD:()=>ye.nD,eZ:()=>ye.eZ,vp:()=>ye.vp,mw:()=>ye.mw,v6:()=>ye.v6,L1:()=>ye.L1,y9:()=>ye.y9,n6:()=>ye.n6,Pr:()=>ye.Pr,H6:()=>ye.H6,VX:()=>be.A,_V:()=>R.A,pd:()=>m.A,YI:()=>p.A,$k:()=>ue.A,CN:()=>N.C,Layout:()=>te.A,xl:()=>he.A,N_:()=>oe.A,B8:()=>N.A,W1:()=>z.A,aF:()=>q.A,dK:()=>V.dK,T8:()=>fe.A,fz:()=>ie.A,_2:()=>w.A,iS:()=>K.A,sx:()=>k.A,XD:()=>we.A,Q7:()=>P.A,fI:()=>Q.A,DO:()=>f.A,$q:()=>j.A,Select:()=>b.A,EA:()=>W.A,$x:()=>Z.A,tK:()=>Y.A,N7:()=>i.StyleProvider,dO:()=>v.A,bs:()=>V.bs,zj:()=>V.zj,XI:()=>V.Ay,tU:()=>B.A,vw:()=>H.A,EY:()=>re.A,fs:()=>y.A,NP:()=>o.Ay,hE:()=>se.A,m_:()=>G.A,Typography:()=>ae.A,Upload:()=>S.A,ti:()=>s.default,Aj:()=>r.A,tS:()=>o.tS,tN:()=>o.tN,rd:()=>o.rd});var o=n(71482),i=n(51236),r=n(29770),s=n(9817),a=n(13891),l=n(84586),c=n(16834),d=(n(77627),n(77155)),u=(n(52989),n(49679)),h=n(73378),g=(n(84661),n(727)),m=n(62113),p=n(38912),f=n(32483),w=n(7099),y=(n(21244),n(43083)),b=n(96912),v=n(76980),k=n(91722),S=n(31374),C=n(25366),_=n(49922),E=n(74572),A=n.n(E);n(46177),n(78892);const x=({children:e,padding:t,className:n,...o})=>C.createElement("div",Object.assign({className:A()("avatar-actions",{"avatar-actions--padding":t},n)},o),e);x.displayName="AvatarActions";const I=C.forwardRef(({selected:e,className:t,...n},o)=>C.createElement(_.A,Object.assign({ref:o,className:A()({"avatar--selected":e},t)},n)));I.displayName="Avatar";const L=I;L.Group=_.A.Group;const T=L;n(69028);var D=n(23404),O=(n(35501),n(73538)),M=n(64676),R=n(18126),N=n(98044),P=n(10720),W=n(43938),V=n(21502),H=n(33350),F=n(63332),U=n(12179),z=(n(1331),n(35256)),j=n(49573),B=n(96923),$=n(17733),q=n(20702),K=n(4451),Y=(n(56827),n(20092)),G=n(25914),Z=n(82836),Q=n(85684),J=n(97531),X=n(83910),ee=n(49778),te=n(70005),ne=n(1703),oe=n(41467),ie=n(32622),re=n(29682),se=n(88337),ae=n(99888),le=n(94616);const ce=["SliderGroup","SliderTemplates","SliderBlocks","SliderAdaptive","SliderMagic"],de=(0,C.forwardRef)(({data:e=[],sliderStyle:t,customDots:n=!1,...o},i)=>{const r=(0,C.useRef)(null);return C.createElement(C.Fragment,null,C.createElement(le.A,{items:ce,onChange:e=>{var t;return null===(t=r.current)||void 0===t?void 0:t.goTo(e)}}),C.createElement(ne.A,Object.assign({data:e,carouselRef:r,dots:!1,header:!0},o)))});de.displayName="CustomCarousel";var ue=n(66872),he=n(1172),ge=n(79975),me=n(83306),pe=n(22582),fe=n(38344),we=n(86682),ye=n(73277),be=n(57572),ve=n(75563),ke=n(61200),Se=n(25151);n(998)},76281:(e,t,n)=>{n.r(t),n.d(t,{FileManagerApiError:()=>o});class o extends Error{constructor(e,t,n,i){super(e),this.code=void 0,this.httpStatus=void 0,this.details=void 0,this.name="FileManagerApiError",this.code=t,this.httpStatus=n,this.details=i,Error.captureStackTrace&&Error.captureStackTrace(this,o)}}},6472:(e,t,n)=>{n.d(t,{D3:()=>u,RS:()=>d});var o=n(85472),i=n(25366),r=n(10331),s=n(26e3),a=n(9417),l=n(85677);const c=(0,r.Q)();function d(e,t,n){e instanceof l.m||(e=(0,a.My)(e));e.getOrCreateInstance(c,()=>new s.v).fire({id:t,payload:n})}const u=(e,t)=>{const n=function(e){return(0,a.My)(e).getOrCreateInstance(c,()=>new s.v).addEventListener}((0,o.Pj)());(0,i.useEffect)(()=>{const o=n(({id:n,payload:o})=>{n===e&&t(o)});return()=>o.dispose()},[n,e,t])}},67815:(e,t,n)=>{n.d(t,{Zc:()=>d,_q:()=>u,cZ:()=>l,dB:()=>c,ml:()=>h});var o=n(85472),i=n(10331),r=n(9417),s=n(97993),a=n(25366);function l(e){return(0,i.Q)(e)}function c(e,t){return(0,r.My)(e).getOrCreateInstance(t,()=>new s.lt)}function d(e,t){return(0,r.My)(e).getOrCreateInstance(t,()=>new s.lt).event}function u(e){return h(e).event}function h(e){const t=(0,o.Pj)();return(0,a.useMemo)(()=>c(t,e),[t,e])}},92221:(e,t,n)=>{n.d(t,{qy:()=>M,An:()=>T,T5:()=>B,pH:()=>_,Ay:()=>A,$l:()=>E,SR:()=>U,hs:()=>F,Ce:()=>H,gZ:()=>z,CM:()=>L,PJ:()=>N,bc:()=>O});var o=n(33616),i=n.n(o),r=n(66606),s=n(42054),a=n(43930),l=n(46638),c=n(24375);const d=Symbol("Error");function u(e){return Promise.all(e.map(e=>e instanceof Promise?e.catch(e=>d):e)).then(e=>e.filter(e=>e!==d))}var h=n(21559),g=n(68268),m=n(48124),p=n(22278),f=n(97114);class w extends g.j{constructor(e){super(),this._commitPromise=void 0,this._mutationCollector=void 0,this._onLostSummaries=e=>{try{this._mutationCollector.stop(),(0,p.f)(e)}finally{this._mutationCollector.start()}},this._mutationCollector=this.addDisposable(new m.R({rootNode:e,oldPreviousSibling:!0})),this._mutationCollector.onLost(this._onLostSummaries)}commit(){if(this._commitPromise)return this._commitPromise;{const e=()=>new Promise(e=>{const t=this._mutationCollector.onMutate(n=>{this._commitPromise=void 0,e(),t.dispose()});(0,f.A)(()=>{this._commitPromise=void 0,e(),t.dispose()})});return this._commitPromise=e().catch(e=>{})}}}var y=n(97993);function b(e,t){const n=new y.lt,o=new y.lt;try{const i=(0,l.$$)(e),r=document.implementation.createHTMLDocument();return(0,a.d1)(r,i),{document:r,handleRender:o.event,handleReadHtml:n.event,async run(){if(o.hasListeners()){const i=document.createElement("iframe");i.style.position="absolute",i.style.left="-10000px",document.body.appendChild(i);const s=i.contentWindow.document,l=new w(i.contentDocument);try{if(t){const[e,n]=t;void 0!==e&&i.setAttribute("width",String(e)),void 0!==n&&i.setAttribute("height",String(n))}(0,a.d1)(s,[...r.childNodes]),l.commit()}catch(e){throw e}finally{try{try{await o.fire({managedNodeController:l,contentDocument:s})}catch(e){}const t={contentDocument:s,html:(0,a.b6)(s)};try{await n.fire(t)}finally{return t.html}}finally{i.parentNode===document.body&&document.body.removeChild(i)}}}else{const e={contentDocument:r,html:(0,a.b6)(r)};try{await n.fire(e)}finally{return e.html}}}}}catch(i){throw i}}const v=/url(?:\((['|"]?))(.*?\.(png|jpg|gif|jpeg|tiff){1})(?:['|"]?\))/gi;function k(e){return e.arrayBuffer().then(e=>{const t=new Uint8Array(e);let n="";for(let o=0;o<t.length;o++)n+=String.fromCharCode(t[o]);return btoa(n)})}function S(e,t=76){if(!(e=e.replace(/[\r\n\s]/g,"")))return e;const n=[];for(let o=0;o<e.length;o+=t)n.push(e.slice(o,o+t));return n.join("\n")}function C(e){return e.replaceAll(/[\\\/:*?"<>|]/g,"_")}async function _(e,t,n,o,i,r){const s=[];r&&(r.attachments=s);let a="";a="function"===typeof i?await P(t,n,o,i,r):(await u(Object.keys(i).map(async e=>`\r\n--boundary-string\r\nContent-Type: ${e}\r\n\r\n${await P(t,n,o,i[e],r)}\r\n\r\n`))).join("")+"----boundary_string--";const l=[`Subject: ${e}`,"X-Unsent: 1","MIME-Version: 1.0"];if(s.length>0){let e=`\r\n--boundary-related\r\nContent-Type: ${"function"===typeof i?"text/html; charset=utf-8":'multipart/alternative; boundary="boundary-string"'}\r\n\r\n${a}\r\n`;for(const t of s)e+=`\r\n--boundary-related\r\nContent-Type: ${t.mimeType}\r\nContent-Transfer-Encoding: base64\r\nContent-ID: <${t.cid}>\r\n\r\n${t.base64}\r\n`;e+="\r\n--boundary-related--\r\n",a=e,l.push('Content-Type: multipart/related; boundary="boundary-related"')}else l.push("Content-Type: "+("function"===typeof i?"text/html; charset=utf-8":'multipart/alternative; boundary="boundary-string"'));return`${l.join("\r\n")}\r\n\r\n${a}`}function E(e,t=!0){const n=e.replace("\\","/").split("/"),o=n[n.length-1];return t?C(o):o}function A(e){const t=e.replace("\\","/").split("/"),n=t[t.length-1],o=n.lastIndexOf("."),i=n.slice(o+1);return-1!==o&&function(e){return!(e.length>8||e.length<1)&&!/[^\x00-\x7F]/.test(e)&&!/[\\\/:*?"<>|&=%]/.test(e)&&!!/[a-zA-Z]/.test(e)&&!/^\d+$/.test(e)}(i)?[C(n.slice(0,o)),i]:[C(n),""]}function x(e){return U(e).then(e=>z(e))}function I(e){return e.replace("<script","<___script").replace("<\/script>","</___script>")}const L=new s.uI(e=>{e.escape("<script","<\/script>",e=>I(e)).unescape("<___script","</___script>",e=>e.replace("<___script","<script").replace("</___script>","<\/script>")),e.escape("<script","/>",e=>I(e)).unescape("<___script","/>",e=>e.replace("<___script","<script")),(0,s.Hk)(e)});async function T(e,t,n){const o=b(e=L.getEscapedText(e),n);try{const n=o.document,r=n.querySelectorAll("tbody");for(const e of r)e.replaceWith(...e.childNodes);n.querySelectorAll("em-replace").forEach(e=>{if(e.hasAttribute("text")&&(e.insertAdjacentHTML("beforebegin",e.getAttribute("text")),e.parentNode.removeChild(e)),e.hasAttribute("src")){const t=e.querySelector("img");t.setAttribute("src",e.getAttribute("src")),e.replaceWith(t)}});try{await t(o,e)}catch(i){}e=await o.run()}catch(i){throw i}return L.getUnescapedText(e)}function D(e,t,n){try{if("function"===typeof n){const o=[];return String.prototype.replace.call(e,t,function(){return o.push(n.apply(void 0,arguments)),""}),u(o).then(function(n){return String.prototype.replace.call(e,t,function(){return n.shift()})})}return Promise.resolve(String.prototype.replace.call(e,t,n))}catch(o){return Promise.reject(o)}}async function O(e,t,n=new Map,o){await async function(e,t,n=new Map,o){var i,r;const s=e=>{let o=n.get(e);return o||(o=t(e),n.set(e,o)),o instanceof Promise?o:Promise.resolve(o)};function c(e){return D(e,v,async(e,t="",n)=>`url(${t}${await s(n)}${t})`)}async function d(e){const t=e.getAttribute("style");if(t){const n=await c(t);t!==n&&(e.setAttribute("style",n),o&&o())}}const h=e instanceof Document?e:e.ownerDocument;if(!h)return u([]);const g=e instanceof Document&&null!==(i=null!==(r=e.body)&&void 0!==r?r:e.documentElement)&&void 0!==i?i:e;if(!g)return u([]);const m=h.createNodeIterator(g,NodeFilter.SHOW_ALL),p=[];for(;;){const e=m.nextNode();if(null===e)break;if((0,a.vq)(e)){p.push(d(e));const t=e.getAttribute("background");if(t&&p.push(s(t).then(n=>{e.setAttribute("background",n||t),o&&o()})),(0,a.A6)(e)||(0,a.M6)(e)){const t=e.getAttribute("src"),n=t&&L.hasDetectedMappings(t,!0,!0)?t:("src"in e?e.src:"")||t;n&&p.push(s(n).then(t=>{t||(t=n),e.setAttribute("src",t),o&&o()}))}if((0,a.ST)(e)){const t=e.innerHTML;t&&p.push(c(t).then(n=>{n!==t&&(e.innerHTML=n,o&&o())}))}}else if((0,a.Cn)(e)){const t=(0,a.ih)(e),n=null===t||void 0===t?void 0:t.content;n&&p.push(D(n,/<v:fill.*>/gi,async e=>{const t=await D(e,/src="([^"]*)"/gi,async(e,t)=>`src="${await s(t)||t}"`);return D(t,/src='([^']*)'/gi,async(e,t)=>`src='${await s(t)||t}'`)}).then(i=>{n!==i&&(e.replaceWith((0,l.$$)(`${t.open}${i}${t.close}`)[0]),o&&o())}))}}return u(p)}(e,t,n,o)}const M=800;function R(e,t,n){let o=e.href;if(o=(0,h.o)(o),o&&e.protocol.startsWith("http")){const i=function(e){const t=new Map;let n=0;for(;n>=0;)if(n=e.indexOf("\x3c!--",n),n>=0){const o=e.indexOf("--\x3e",n);t.set(e.substring(n,o+3),(0,c.l)()),n=o}return t}(o);i.forEach((e,t)=>{o=o.replaceAll(t,e)});const r=o.indexOf("#");let s=r>=0?o.substring(0,r):o;const a=r>=0?o.substring(r+1):"",l=o.indexOf("?"),d=l>=0?s.substring(l+1):"";if(s=l>=0?s.substring(0,l):s,e.host!==document.location.host){const r=new Map(d.split("&").filter(e=>e.indexOf("=")>=0).map(e=>e.split("=")));let l=d;if(t){const e=Object.keys(t);for(const n of e)t[n]&&!r.has(n)&&(l=l+(l?"&":"")+`${n}=${t[n]}`)}l!==d&&(o=s+(l?`?${l}`:"")+(a?`#${a}`:""),i.forEach((e,t)=>{o=o.replaceAll(e,t)}),e.setAttribute("href",o),n&&n())}}}async function N(e,t,n,o){let[i,r]=t||[M];return"number"===typeof i&&(i+="px"),"number"===typeof r&&(r+="px"),e=await T(e,async e=>{const t=e.document;await O(t,e=>L.getEscapedText(e)!==e?e:(0,h.o)(e));const i=t.querySelectorAll("a");for(const o of i)R(o,n);if(o)return o(e)},[i,r])}async function P(e,t,n,o,i){let[r,s]=t||[M];return"number"===typeof r&&(r+="px"),"number"===typeof s&&(s+="px"),e=(e=await T(e,async e=>{const t=e.document;if(await O(t,e=>L.getEscapedText(e)!==e?e:(0,h.o)(e)),e.handleRender(async({contentDocument:e,managedNodeController:t})=>{const o=e.querySelectorAll("*");for(const i of o)if((0,a.A6)(i)){const e=await(0,a.rq)(i);if(e){const t=parseInt(e.height),n=parseInt(e.width);isNaN(t)||i.setAttribute("height",String(t)),isNaN(n)||i.getAttribute("width")||i.setAttribute("width",String(n))}t.commit()}else if((0,a.Lv)(i)){const e=parseInt(getComputedStyle(i).width);isNaN(e)||"BODY"===i.parentElement.tagName||i.setAttribute("width",String(e)),t.commit()}else"TD"===i.tagName||"A"===i.tagName&&R(i,n,()=>t.commit())}),null!==i&&void 0!==i&&i.embedImagesAsBase64&&i.getImageBlob){const t=i.getImageBlob,n=i.attachments||[];e.handleReadHtml(async e=>{var o;const i=(new DOMParser).parseFromString(e.html,"text/html"),r=null!==(o=i.body)&&void 0!==o?o:i.documentElement;if(!r)return;await O(r,async e=>{if(L.getEscapedText(e)!==e)return e;const o=e.trim();if(!o||/^cid:/i.test(o))return e;if(o.startsWith("data:")){const t=/^data:([^;]+);base64,(.+)$/i.exec(o);if(t){const e=`img-${(0,c.l)()}@emailmaker`;return n.push({cid:e,mimeType:t[1]||"application/octet-stream",base64:S(t[2])}),`cid:${e}`}return e}const i=(0,h.o)(e);if(i.startsWith("data:")){const e=/^data:([^;]+);base64,(.+)$/i.exec(i);if(e){const t=`img-${(0,c.l)()}@emailmaker`;return n.push({cid:t,mimeType:e[1]||"application/octet-stream",base64:S(e[2])}),`cid:${t}`}return i}try{const e=await t(i),o=`img-${(0,c.l)()}@emailmaker`,r=await k(e);return n.push({cid:o,mimeType:e.type||"application/octet-stream",base64:S(r)}),`cid:${o}`}catch{return i}});const s=i.documentElement;e.html=s?(0,a.b6)(s):e.html})}if(o)return o(e)},[r,s])).replaceAll(/<tbody>/gi,"").replaceAll(/<\/tbody>/gi,"")}const W="images",V=40;async function H(e,t,n,o=x,i){const s=Object.create(null);let[a,l]=t||[M];"number"===typeof a&&(a+="px"),"number"===typeof l&&(l+="px");const c=new Set,d=await T(e,async e=>{const t=e.document;await O(t,async e=>{L.getEscapedText(e)===e&&(e=(0,h.o)(e));const t=await o(e);let[n,i]=A(e);if(n.length>V&&(n=function(){const e=new Date;return`${e.toISOString().slice(2,10).replace(/-/g,"").concat("_",e.toTimeString().slice(0,5).replace(/:/g,""))}_${Array.from({length:8},()=>"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()))).join("")}`}()),!i||!r.A.getType(i))try{i=r.A.getExtension(t.type)}catch(u){}let a=`${n}.${i}`,l=1;for(;c.has(a);)a=`${n}(${++l}).${i}`;c.add(a);const d=`${W}/${a}`;return s[d]=t,d});const a=t.querySelectorAll("a");for(const o of a)R(o,n);if(i)return i(e)},[a,l]);return s["index.html"]=new Blob([d],{type:"text/html;charset=utf-8"}),s}function F(e){const t=new(i());for(const n of Object.keys(e)){let o=t;const i=n.split("/"),r=i.length-1;for(let e=0;e<r;e++)o=t.folder(i[e]);o.file(i[r],e[n])}return t.generateAsync({type:"blob",compression:"DEFLATE"})}function U(e){const t=new Image;return t.crossOrigin="anonymous",new Promise((n,o)=>{t.onload=()=>n(t),t.onerror=o,t.src=e})}function z(e,t="image/png",n){const o=document.createElement("canvas");o.width=e.width,o.height=e.height;return o.getContext("2d").drawImage(e,0,0),new Promise((e,i)=>o.toBlob(t=>t?e(t):i("blob is null"),t,Number(n)||0))}function j(e){var t;const n=null===(t=e.ownerDocument)||void 0===t?void 0:t.body;if(n&&function(e,t){do{if(e===t)return!0;e=e.parentNode}while(e);return!1}(e,n)){if((0,a.vq)(e)){if("IMG"===e.tagName)return"";if("SPAN"===e.tagName&&e.classList.contains("preheader"))return""}if("#text"===e.nodeName)return e.textContent}return e.childNodes?[...e.childNodes].map(j).join(""):""}function B(e){const t=b(e),{document:n}=t;try{return j(n).replace(/\u2800/g,"").replace(/(\r\n|\r|\n){2,}/g,"\n").trim()}catch(o){return""}}},54913:(e,t,n)=>{n.d(t,{kx:()=>u,$Z:()=>w,Xb:()=>h,VA:()=>p,fn:()=>y,aD:()=>f,TW:()=>g});var o=n(87868),i=n(25366),r=n(95363),s=n(69181),a=n(28911),l=n(17055);function c(e,t,n,o){return e.createModel(t,n,o)}function d(e,t,n){const o=s.QE.get(l.L),i=o.getLanguageIdByMimeType(t)||t;return function(e,t,n,o,i){if(n=n||"",!o){const o=n.indexOf("\n");let r=n;return-1!==o&&(r=n.substring(0,o)),c(e,n,t.createByFilepathOrFirstLine(i||null,r),i)}return c(e,n,t.createById(o),i)}(s.QE.get(a.S),o,e,i,n)}const u=(0,i.createContext)(null);function h(){(0,o.OI)()._updateThemeOrColorMap()}function g(e){const t=(0,o.yc)(),[n,r]=(0,i.useState)({canUndo:t.canUndo(e.uri),canRedo:t.canRedo(e.uri)});return(0,i.useEffect)(()=>{const n=e.onDidChangeContent(()=>{setTimeout(()=>r({canUndo:t.canUndo(e.uri),canRedo:t.canRedo(e.uri)}))});return()=>{n.dispose()}},[e,t]),n}function m(e){var t;const n=(null===e||void 0===e||null===(t=e.actual)||void 0===t?void 0:t._data)||new r.Ov;return n instanceof r.Ov?n:r.Ov.deserialize(n)}function p(e){const t=(0,o.yc)();return{undo:()=>t.undo(e.uri),redo:()=>t.redo(e.uri),clear:()=>t.removeElements(e.uri),getPast:()=>{var n,o;return(null===(n=t._editStacks.get(e.uri.toString()))||void 0===n||null===(o=n._past)||void 0===o?void 0:o.map(m))||[]},getFuture:()=>{var n,o;return(null===(n=t._editStacks.get(e.uri.toString()))||void 0===n||null===(o=n._future)||void 0===o?void 0:o.map(m))||[]},canUndo:()=>t.canUndo(e.uri),canRedo:()=>t.canRedo(e.uri),createSnapshot:()=>t.createSnapshot(e.uri),restoreSnapshot:e=>t.restoreSnapshot(e)}}function f(e){return(0,i.useMemo)(()=>p(e),[e])}function w(e=""){const t=d(e,"text");return t.setEOL(0),t}function y(){return(0,i.useContext)(u)}},21559:(e,t,n)=>{n.d(t,{o:()=>o.oK});var o=n(86350)},65160:(e,t,n)=>{n.d(t,{A:()=>C});var o=n(25366),i=n(14365),r=n(1246),s=n(93149),a=n(85472),l=n(33637),c=n(76508),d=n(64172),u=n(60538),h=n(44239),g=n(78019),m=n(22376),p=n(1382),f=n(69064),w=(n(69480),n(2519));const{name:y,type:b,tags:v,group:k}={name:"name",type:"type",tags:"tags",group:"group"},S={[y]:"",[b]:[],[v]:[],[k]:[]},C=({isBlocks:e=!1,templateEmailId:t=!1,showBlockTypeSelect:n=!0})=>{const{__:C}=(0,c.s9)(),{projectId:_}=(0,l.g)(),[E]=i.lV.useForm(),{data:A}=(0,h.h1)(),x=(0,a.wA)(),I=(0,a.d4)(g.b9),L=(0,a.d4)(m.CT),T=(0,a.d4)(w.GD),{token:D}=(0,i.rd)(),O=(0,s.rD)(),M=(0,a.Pj)(),R=e?I:L,{isSuccess:N,data:P}=d.Nq.endpoints.getProject.select(+_)(M.getState(),{skip:t}),{isSuccess:W,data:V}=(0,u.sl)(+t,{skip:!t}),H=(0,o.useCallback)(()=>{x(e?(0,g.om)({}):(0,m.om)({}))},[x,e]);(0,o.useEffect)(()=>{H()},[H]),(0,o.useEffect)(()=>{},[W,V,t]),(0,o.useEffect)(()=>{},[N,P,e,t]);const[F,U]=(0,o.useState)([]);let z;(0,o.useEffect)(()=>{if(A){const e=A.schema.properties.acf.properties.type.items.enum;let t=[];for(let n in e)t.push({label:C(f.jg[e[n]]),value:e[n]});U(t)}},[A,C]);const[j,B]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{const n=t?W&&(0,p._q)(V,f.zh).filter(e=>{var t;return null===R||void 0===R||null===(t=R.tags)||void 0===t?void 0:t.includes(e.id)}).map(e=>e.name)||[]:N&&(0,p._q)(P,e?f.YY:f.zh).filter(e=>{var t;return null===R||void 0===R||null===(t=R.tags)||void 0===t?void 0:t.includes(e.id)}).map(e=>e.name)||[];E.setFieldsValue({tags:n})},[N,R,e,E,P,W,V,t]),(0,o.useEffect)(()=>{E.setFieldsValue({group:T})},[E,T]),o.createElement("div",{className:"cards-search"},o.createElement(i.lV,{form:E,name:"cards_search_form",initialValues:{...S},onValuesChange:n=>{const o=Object.keys(n)[0],i=E.getFieldsValue(!0);switch(o){case v:const r=t?(0,p._q)(V,f.zh).filter(e=>n[o].includes(e.name)).map(e=>e.id)||null:(0,p._q)(P,e?f.YY:f.zh).filter(e=>n[o].includes(e.name)).map(e=>e.id)||null;x(e?(0,g.om)({...R,tags:r}):(0,m.om)({...R,tags:r}));break;case b:x(e?(0,g.om)({...R,type:i.type||null}):(0,m.om)({...R,type:i.type||null}));break;case y:z&&window.clearTimeout(z),z=window.setTimeout(function(){x(e?(0,g.om)({...R,name:i.name}):(0,m.om)({...R,name:i.name}))},100);break;case k:x(e?(0,g.om)({...R,group:i.group||null}):(0,m.om)({...R,group:i.group||null}))}},autoComplete:"off"},o.createElement(i.fI,{wrap:!1,gutter:0},o.createElement(i.lV.Item,{className:"cards-search__by-title",name:y},o.createElement(i.pd,{placeholder:C("Search by title"),allowClear:!0,variant:"outlined",size:"large",prefix:o.createElement(r.Ay,{icon:"SearchSmIcon",size:22,strokeWidth:null===O||void 0===O?void 0:O.iconStrokeWidth,className:"cards-search__search-icon",style:{cursor:"pointer"}})})),e&&n&&o.createElement(i.lV.Item,{className:"cards-search__type-select",name:b,rules:[{message:C("Please choose the block type")}]},o.createElement(i.Select,{placeholder:C("Filter by type"),options:F,suffixIcon:o.createElement(r.Ay,{icon:"BuildOutlined",style:{fontSize:"16px",color:D.colorText},onClick:()=>B(!j),className:"input-icon"}),allowClear:!0,open:j,onDropdownVisibleChange:e=>{B(e)}})))))}},89040:(e,t,n)=>{n.d(t,{rG:()=>s.rG,pw:()=>o.p,Xl:()=>i.X,QO:()=>l.Q,OY:()=>c.O,gM:()=>a.gM,Si:()=>r.Si,hO:()=>r.hO});n(25366),n(76508),n(17623);n(96771),n(1246),n(74572),n(2828);n(1610);var o=n(92467),i=(n(73087),n(3928)),r=n(81317),s=n(34869),a=n(50161),l=n(65427),c=n(55919)},17623:(e,t,n)=>{n.d(t,{XL:()=>i,h2:()=>o,w6:()=>a});const o={MONTHLY:"Monthly",EARLY:"Early"},i={CLOUDPAYMENT:"cloudpayment",STRIPE:"stripe"},r={FREE:3891,PERSONAL:{MONTHLY:13719,YEARLY:13720},STANDARD:{MONTHLY:3892,YEARLY:5295},PROFESSIONAL:{MONTHLY:3893,YEARLY:5294},ENTERPRISE:{MONTHLY:3894,YEARLY:5296}},s={FREE:3891,PERSONAL:{MONTHLY:4965,YEARLY:4966},ADVANCED:{MONTHLY:3892,YEARLY:4953},PRO:{MONTHLY:3893,YEARLY:4952},ENTERPRISE:{MONTHLY:3894,YEARLY:4954}},a=(i.CLOUDPAYMENT,i.STRIPE,(e,t)=>{const n=t===o.MONTHLY;return e===i.CLOUDPAYMENT?[r.FREE,n?r.PERSONAL.MONTHLY:r.PERSONAL.YEARLY,n?r.STANDARD.MONTHLY:r.STANDARD.YEARLY,n?r.PROFESSIONAL.MONTHLY:r.PROFESSIONAL.YEARLY,n?r.ENTERPRISE.MONTHLY:r.ENTERPRISE.YEARLY]:e===i.STRIPE?[s.FREE,n?s.PERSONAL.MONTHLY:s.PERSONAL.YEARLY,n?s.ADVANCED.MONTHLY:s.ADVANCED.YEARLY,n?s.PRO.MONTHLY:s.PRO.YEARLY,n?s.ENTERPRISE.MONTHLY:s.ENTERPRISE.YEARLY]:[]})},2828:(e,t,n)=>{var o=n(16268);o.w.projects,o.w.emails,o.w.blocks,o.w.users,o.w.ai,o.w.email_generate,o.w.image_generate,o.w.preview,o.w.link_check,o.w.image_check,o.w.spam_check,o.w.preview,o.w.image_generate,o.w.email_generate},42010:(e,t,n)=>{n.d(t,{mr:()=>i});const o={ai:[{units:100,priceRub:990},{units:500,priceRub:3990},{units:1e3,priceRub:6990}],email_generate:[{units:50,priceRub:490},{units:200,priceRub:1490}],image_generate:[{units:50,priceRub:490},{units:200,priceRub:1490}],optimization:[{units:50,priceRub:490},{units:200,priceRub:1490}],preview:[{units:50,priceRub:290},{units:200,priceRub:990}],link_check:[{units:100,priceRub:290},{units:500,priceRub:990}],image_check:[{units:100,priceRub:290},{units:500,priceRub:990}],spam_check:[{units:50,priceRub:390},{units:200,priceRub:1190}],users:[],emails:[],blocks:[],projects:[]};function i(e){if(null==e)return[];switch(e){case"ai":return o.ai;case"email_generate":return o.email_generate;case"image_generate":return o.image_generate;case"optimization":return o.optimization;case"preview":return o.preview;case"link_check":return o.link_check;case"image_check":return o.image_check;case"spam_check":return o.spam_check;case"users":case"emails":case"blocks":case"projects":return[];default:return e}}},57782:(e,t,n)=>{n.d(t,{U:()=>h});var o=n(25366),i=n(96208),r=n(99614),s=n(93119),a=n(58525),l=n(69064),c=n(17623),d=n(10763),u=n(1610);const h=e=>{const{currentUser:t,payPeriod:n,promoData:h,onPaymentStart:g,onPaymentSuccess:m}=e,p="cloudpayment",[f,w]=(0,i.O)(),[y]=(0,s.on)(),b=(0,r.u)(),v=(0,a.p)(),k=w.isLoading||w.isSuccess;(0,o.useEffect)(()=>{if(p===c.XL.CLOUDPAYMENT){const e=document.createElement("script");e.src="https://widget.cloudpayments.ru/bundles/cloudpayments.js",e.async=!0,document.body.appendChild(e)}},[p]);const S=(0,o.useCallback)((e,o,i,r)=>{const s=v.get(l.A9.em_token),a=new window.cp.CloudPayments,d={},g=new Date;g.setMonth(g.getMonth()+(n===c.h2.EARLY?12:1)),g.setDate(g.getDate()-1);const p=(0,u.BS)(),f=n===c.h2.EARLY?` (${i}${p} x 12)`:"",w=h.promocode?` with promo code ${h.promocode}`:"",k=`Payment for ${n===c.h2.EARLY?"annual":"monthly"} subscription ${o}${f}${w}`,S=n===c.h2.EARLY?12*i:+i,C=(0,u.w_)(S,h.discount,r),_={Items:[{label:k,price:S,quantity:1,amount:C,vat:0}],calculationPlace:"https://emailmaker.ru",taxationSystem:1,email:t.email,amounts:{electronic:C}},E={Items:[{label:k,price:S,quantity:1,amount:S,vat:0}],calculationPlace:"https://emailmaker.ru",taxationSystem:1,email:t.email,amounts:{electronic:S}},A={interval:"Month",period:n===c.h2.EARLY?12:1,customerReceipt:E,PersonalDate:g},x={..._,Items:[{..._.Items[0],amount:S}],amounts:{electronic:S}};d.CloudPayments={CustomerReceipt:x,recurrent:A,subscription:e,token:s,promocode:h.promocode||""},a.pay("charge",{publicId:"pk_e8c7c303759283dc35cf4ad7b396c",description:k,amount:C,currency:(0,u.Wk)(),accountId:t.email,email:t.email,data:d,promocode:h.promocode||null},{onSuccess:function(){},onFail:function(){},onComplete:function(e){e.success&&setTimeout(()=>{y(void 0).then(e=>{b({event:"payment",action:"payment_success",data:e.data})}),null===m||void 0===m||m();try{window.dispatchEvent(new CustomEvent("em-billing-plan-payment-success"))}catch{}},3e3)}})},[t,n,h,v,y,b,m]),C=(0,o.useCallback)((e,o)=>{const i=v.get(l.A9.em_token),r={email:t.email,subscription:e,price:+o,amount:n===c.h2.EARLY?12*o:+o,token:i,discount:h.discount};f(JSON.stringify(r)).then(e=>{var t,n;if(200===(null===e||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.status)){try{sessionStorage.setItem(d.rn,"1")}catch{}window.location.href=e.data.checkout_url}else e.error})},[t,n,h,v,f]),_=(0,o.useCallback)((e,t,n,o,i,r,s)=>{null===g||void 0===g||g(e);(0,u.i5)(t,o,i,h,r)?p===c.XL.CLOUDPAYMENT?S(e,t,n,r):p===c.XL.STRIPE&&C(e,n):s()},[p,S,C,g,h]),E=(0,o.useCallback)((e,t,n,o,i,r)=>!!(0,u.i5)(t,o,i,h,r)&&(p===c.XL.CLOUDPAYMENT?(S(e,t,n,r),!0):p===c.XL.STRIPE&&(C(e,n),!0)),[p,S,C,h]);return{gateway:p,initiatePayment:_,startPlanCardPayment:E,isPaymentLoading:k}}},79594:(e,t,n)=>{function o(e){if(!e||"string"!==typeof e)return"";const t=e.trim();if(/^\d{2}\.\d{2}\.\d{4}/.test(t))return t.slice(0,10);if(/^\d{4}-\d{2}-\d{2}/.test(t)){const[e,n,o]=t.slice(0,10).split("-");return`${o}.${n}.${e}`}return t}function i(e,t,n){const o=Math.floor(Math.max(0,e));return n(t("%d day","%d days",o),o)}function r(e){if(!e||"string"!==typeof e)return 0;const t=e.trim();let n;if(/^\d{4}-\d{2}-\d{2}/.test(t))n=new Date(t);else{const[e,o,i]=t.split(/[.\-/]/);n=e&&o&&i?new Date(Number(i),Number(o)-1,Number(e)):new Date(t)}if(Number.isNaN(n.getTime()))return 0;const o=new Date;o.setHours(0,0,0,0),n.setHours(0,0,0,0);const i=Math.ceil((n.getTime()-o.getTime())/864e5);return Math.max(0,i)}n.d(t,{Kh:()=>o,WU:()=>r,XQ:()=>i})},11824:(e,t,n)=>{function o(e){if(""===e||null===e||void 0===e)return 0;const t=Number(e);return Number.isNaN(t)?0:t}n.d(t,{o:()=>o})},1610:(e,t,n)=>{n.d(t,{BS:()=>r,EP:()=>i,Wk:()=>s,i5:()=>l,ku:()=>d,w_:()=>c});var o=n(69064);function i(){return"emailmaker"===o.oy}function r(){return i()?"$":"\u20bd"}function s(){return i()?"USD":"RUB"}function a(){return i()?"en-US":"ru-RU"}function l(e,t,n,o,i){const r=null!==n&&void 0!==n?n:"";return("Personal"===e||"Advanced"===e||"Pro"===e||t)&&("Community"===r||"Free"===r||o.is_for_hard_pay&&i)}new Set(["Free","Community","Personal"]);const c=(e,t,n)=>{if(!t||!n)return e;const o=e-e*t/100;return 10*Math.floor(o/10)};function d(e){return`${e.toLocaleString(a())} ${r()}`}},53485:(e,t,n)=>{function o(e){return Object.prototype.hasOwnProperty.call(e,"meta")}function i(e,t){var n;const o={...e};return void 0===t?(delete o.meta,o):(o.meta={...null!==(n=e.meta)&&void 0!==n?n:{},...t},o)}function r(e,t,n){return e&&!o(t)&&o(e)?{...n,meta:e.meta}:n}n.d(t,{Su:()=>i,WV:()=>r,k1:()=>o})},24149:(e,t,n)=>{n.d(t,{E:()=>s,I:()=>r});var o=n(17855),i=n(24375);function r({code:e,...t},n){var o,r;const s=n.getState();return{...t,...e?{html:e}:{},renderGuid:(0,i.l)(),project:null===(o=s.projectSlice)||void 0===o||null===(r=o.project)||void 0===r?void 0:r.id,utm_parameters:t.utm_parameters||{},_embedded:void 0}}function s({html:e,renderGuid:t,...n},i){const r=i.getState(),{project:s,config:a}=r.configSlice;return(0,o.TB)({...n,code:e,project:void 0===s?n.project:s,utm_parameters:a.UTMEnabled?n.utm_parameters:void 0,tags:void 0,template:void 0,guid:void 0,emailtags:void 0,project_title:void 0,project_author:void 0,is_template:void 0,is_inited:void 0})}},49340:(e,t,n)=>{n.r(t),n.d(t,{default:()=>vt});var o=n(16565),i=(n(59687),n(96839)),r=n(14365),s=n(25366),a=n(85472),l=n(93119);const c=({onLoad:e,children:t})=>{(0,s.useEffect)(()=>{e&&e()},[e]);const n=(0,a.wA)();return(0,s.useMemo)(()=>n(l.Q2.endpoints.getMe.initiate({})),[n]),t};var d=n(60832),u=n(33637),h=n(13541),g=n(1382),m=n(29749),p=n(42018),f=n(43930);const w={height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},y=({children:e,handleBeforeRender:t})=>{const[n,o]=(0,s.useState)(),i=(0,m.ZU)(),l=(0,a.d4)(p.p5),c=(0,s.useRef)(!1),d=(0,m.cR)();return(0,s.useLayoutEffect)(()=>{c.current||(c.current=!0,t&&t())},[]),s.createElement(r.N7,{container:(0,f.Sb)(d)||document.head},s.createElement("div",{className:"App blocks-app blocks-plugin",style:i?{}:{visibility:"hidden"}},l&&s.createElement("style",{dangerouslySetInnerHTML:{__html:l}}),s.createElement(m.fh.Provider,{value:n},e),s.createElement("div",{ref:o,className:"blocks-modal-container"})),!i&&s.createElement(r.$x,{size:"large",style:w},s.createElement(r.tK,{size:"large"})))};var b=n(69613),v=n(46975),k=n(33292),S=n(31487),C=n(36654),_=n(43585),E=n(5931);var A=n(22339),x=n(33087),I=n(67815);var L=n(7412);var T=n(13196);var D=n(44239),O=n(73653),M=n(53485);const R=(0,O.Qq)(),N=(0,O.Qq)(),P=(0,I.cZ)(),W=(0,I.cZ)();var V=n(60538),H=n(24375);function F(e,t){const n=`${e}\0${null!==t&&void 0!==t?t:""}`;let o=5381;for(let i=0;i<n.length;i++)o=Math.imul(o,33)+n.charCodeAt(i);return o>>>0||1}const U=(0,O.Qq)(),z=(0,O.Qq)();var j=n(10430);var B=n(89394);b.di.createIdentifier();var $=n(105);var q=n(97877),K=n(82284),Y=n(56549);function G(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return n+o}function Z(e,t){var n,o;(0,Y.A)(1,arguments);var i=function(e){(0,Y.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,K.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):new Date(NaN)}(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var r=String(null!==(n=null===t||void 0===t?void 0:t.format)&&void 0!==n?n:"extended"),s=String(null!==(o=null===t||void 0===t?void 0:t.representation)&&void 0!==o?o:"complete");if("extended"!==r&&"basic"!==r)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==s&&"time"!==s&&"complete"!==s)throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",l="",c="extended"===r?"-":"",d="extended"===r?":":"";if("time"!==s){var u=G(i.getDate(),2),h=G(i.getMonth()+1,2),g=G(i.getFullYear(),4);a="".concat(g).concat(c).concat(h).concat(c).concat(u)}if("date"!==s){var m=i.getTimezoneOffset();if(0!==m){var p=Math.abs(m),f=G(Math.floor(p/60),2),w=G(p%60,2);l="".concat(m<0?"+":"-").concat(f,":").concat(w)}else l="Z";var y=""===a?"":"T",b=[G(i.getHours(),2),G(i.getMinutes(),2),G(i.getSeconds(),2)].join(d);a="".concat(a).concat(y).concat(b).concat(l)}return a}const Q=(0,O.Qq)();var J=n(64172);var X=n(69905);var ee=n(49136);var te=n(36169);const ne={addUserToProjectApiMock:function(e){(0,E.l)(e)(te.B,{addUserToProject:()=>{}})},AiApiMock:function(e){(0,E.l)(e)(_.Zs,{sendMessage:({body:e})=>t=>t({body:e}).catch(()=>new Promise(e=>setTimeout(e,1e3))),getDialog:e=>t=>t(e)})},authorizationApiMock:function(e){let t={id:"0",username:"",email:"",password:"",code_editor:{},theme:"light",locale:(0,O.KA)(e).getState().userSlice.currentUser.locale,counters:{},avatar_urls:{},autosaves:!0};(0,E.l)(e)(l.Q2,{userRegistration:()=>{},getSchema:()=>e=>e({}),getMe:()=>t,editMe:e=>t={...t,...e},getSubscriptions:()=>[]})},blocksApiMock:function(e){const t=(0,E.l)(e),n=R(e),o=n.byForeignKey("project"),i=N(e),r=i.byForeignKey("parent"),{dispatch:s,getState:a}=(0,O.KA)(e),l=(0,O.PL)(e);l.addDisposable(n.onChange(()=>s(D.VM.util.invalidateTags(["Blocks"])))),l.addDisposable(n.onSave(({prev:e,patch:t,value:n})=>{const o=e?{...e,...t}:t;let i=(0,M.WV)(e,t,n);return o&&i.html===o.html&&i.title===o.title&&(i={...i,renderGuid:o.renderGuid}),i},Number.MIN_VALUE));const c=(0,I.dB)(e,W),d=(0,I.dB)(e,P);t(D.VM,{async getBlocks(e){const t={};e.name&&(t.title=e.name),e.type&&(t.type=e.type);return await o.get(e.projectId,{filter:t,page:e.page,pageSize:e.pageSize,order:e.order,orderBy:e.orderby}).then(({data:e})=>e)},getBlocksSchema:()=>e=>e({}),getParentEmailBlocks:e=>async t=>{try{const t=a().configSlice.project||"",n=(await d.fire({project:t,emailId:e.emailId||""})).filter(e=>e);if(n.length)return n.flat()}catch(n){}return t(e)},getTemplateBlocks:e=>async t=>{try{const t=a().configSlice.project||"",n=(await c.fire({project:t,emailId:e.emailId||""})).filter(e=>e);if(n.length)return n.flat()}catch(n){}return t(e)},async getBlock(e){const t=a().projectSlice.project.id;return o.first(t,{filter:{id:e}})},getBlockHistory:async({blockId:e,page:t=1})=>({...await r.get(e,{page:t}),args:{blockId:e,page:t}}),addBlock:e=>async t=>{const o=await n.create(e);return a().configSlice.config.preventSendDataToEM||t(o).catch(e=>{}),o},editBlock:({blockId:e,...t})=>n.update(e,t),deleteBlock:e=>n.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveBlock:({blockId:e,body:t})=>i.create({...t,parent:e})})},commentsApiMock:function(e){const t=(0,E.l)(e),n=Q(e),o=n.byForeignKey("post"),{dispatch:i}=(0,O.KA)(e);(0,O.PL)(e).addDisposable(n.onChange(()=>i(q.Jg.util.invalidateTags(["Comments"])))),t(q.Jg,{getComments:e=>o.get(e).then(({data:e})=>e),addComment({subjectId:e,author:t,parent:o,content:i,author_name:r,author_email:s,targetId:a}){const l={post:e,author:t,author_name:r,author_email:s,content:i,parent:o,target_id:a,date:Z(new Date),author_avatar_urls:{}};return n.create(l)},deleteComment:e=>n.remove(e),editComment:({commentId:e,...t})=>n.update(e,t),deleteTarget:e=>n.update(e,{target_id:""})})},emailsApiMock:function(e){const t=U(e),n=z(e),o=n.byForeignKey("parent"),{dispatch:i,getState:r}=(0,O.KA)(e),s=(0,O.PL)(e),a=(0,E.l)(e);s.addDisposable(t.onChange(async()=>{i(V.GY.util.invalidateTags(["Email"]))})),s.addDisposable(n.onChange(()=>{i(V.GY.util.invalidateTags(["EmailAutosaves"]))})),s.addDisposable(t.onSave(({prev:e,patch:t,value:n})=>{const o=e?{...e,...t}:t;let i=(0,M.WV)(e,t,n);return o&&i.subject===o.subject&&i.html===o.html&&i.preheader===o.preheader&&i.title===o.title&&(i={...i,renderGuid:o.renderGuid}),i},Number.MIN_VALUE)),a(V.GY,{getEmails:e=>[],getTemplateEmails:e=>t=>t(e),getEmail:async e=>await t.get(e),getEmailHistory:({emailId:e,page:t=1})=>(o.clear(),async i=>{if(r().configSlice.config.revisionService){const o=await i({emailId:e,page:t});for(const e of o.data)n.cache.add(e.id,e);return o}return{...await o.get(e,{page:t}),args:{emailId:e,page:t}}}),async addEmail({source:e,...n}){const o=await t.create(n,{source:e});return o.renderGuid||(o.renderGuid=(0,H.l)()),o},editEmail:e=>async n=>{const{emailId:o,source:i,...s}=e;return r().configSlice.config.revisionService&&await n(e),t.update(o,s,{source:i})},deleteEmail:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>({...e,id:F(e.name,e.parent),taxonomy:"emailtags"}),getDeletableTag:([e,t])=>[],autoSaveEmail:({emailId:e,body:t})=>async o=>(r().configSlice.config.revisionService&&await o({emailId:e,body:t}),await n.create({...t,parent:e,modified:(new Date).toString()}))})},emailRawApiMock:function(e){(0,E.l)(e)($.f,{getEmailRaw({emailId:e,secret_hash:t}){throw new Error(v.f5)}})},imageApiMock:function(e){(0,E.l)(e)(T.CL,{sendAiImageRequest:function({body:e}){return t=>t({body:e})},getAiImage:e=>t=>t(e)})},localesApiMock:function(e){(0,E.l)(e)(j.Ad,{getLocale:async({id:e})=>t=>t({id:e}),getLocales:()=>async e=>e()})},notificationsApiMock:function(e){(0,E.l)(e)(X.vx,{getNotifications:e=>[],notificationShown({id:e,datetime:t}){throw new Error(v.f5)}})},projectsApiMock:function(e){let t;(0,E.l)(e)(J.Nq,{getProjects:(e={page:1})=>[],getProject:e=>n=>t||(t=n(e).then(t=>({...t,id:e}))),addProject(e){throw new Error},editProject:({projectId:e,...n})=>t=t.then(t=>({...t,...n,id:e})),deleteProject(e){throw new Error}})},proxyApiMock:function(e){const t=(0,E.l)(e),n=(0,I.dB)(e,x.AZ.FILE_PROXY_EVENT_ID);t(A.Z8,{getFile:async({url:t,tryFetch:o=!0,type:i})=>async r=>{const s=e.getState(),{project:a}=s.configSlice,l=(await n.fire({url:t,project:a})).filter(e=>e instanceof Blob)[0];if(!l)return r({url:t,tryFetch:o,type:i});switch(i){case"json":return JSON.parse(await l.text());case"text":return l.text();default:return l}}})},recoverPasswordApiMock:function(e){(0,E.l)(e)(ee.yR,{resetPassword(e){throw new Error(v.f5)},setPassword(e){throw new Error(v.f5)},validateRecoverPasswordCode(e){throw new Error(v.f5)}})},saveFileApiMock:function(e){const t=(0,E.l)(e);if(!b.di.getInstance(e,v.Lz))throw new Error("Something was wrong");const n=(0,I.dB)(e,x.AZ.UPLOAD_EVENT_ID),o=(0,I.dB)(e,x.AZ.ON_SEND_TESTEMAIL_ID),i=(0,I.dB)(e,x.AZ.ON_SEND_LIVEPREVIEW_ID);t(B.yH,{uploadImage:t=>async o=>{const i=e.getState(),{project:r}=i.configSlice,s="tmp"===t.folder?null:await n.fire({file:t.file,project:r}),a=s?s.find(e=>e):null;return a?[{file_url:a,project:r}]:o({...t,user_id:String((await b.di.getInstanceAsync(e,v.sZ)).app_id)})},sendTestEmail:t=>async n=>{const i=e.getState(),{project:r}=i.configSlice;(await o.fire({project:r,email_id:t.email_id,subject:t.subject,email:t.email,html:t.html,from_name:t.from_name})).some(e=>!1===e)&&await n({...t,user_id:String((await b.di.getInstanceAsync(e,v.sZ)).app_id)})},async sendLivePreview(t){const n=e.getState(),{project:o}=n.configSlice;(await i.fire({project:o,id:t.email,subject:t.subject,html:t.content})).some(e=>!1===e)},sendShortLink:e=>t=>t(e)})},tokenApiMock:function(e){(0,E.l)(e)(L.OV,{tokenCreate:e=>t=>t(e),tokenValidate:()=>e=>e({})})}},oe=ne;var ie=n(89879);function re(e){return se(async t=>e(t))}function se(e){return(0,C.y)(async t=>{const n=await t.getInstanceAsync(v.ax);return await e(n)})}const ae=(0,C.y)(async e=>{const t=(0,S.y)(e);e.inject(v.ax,t);const n=e.getInstance(v.Ef);return n&&(await(0,ie.qT)(t,n),await(0,ie.tF)(t)),(0,E.B)(t,oe),{instance:{}}});var le=n(85483),ce=n(52565),de=n(92238),ue=n(342),he=n(56223),ge=n(64408),me=n(30420),pe=n(58803),fe=n(34809),we=n(87538),ye=n(15466),be=n(65751),ve=n(69064),ke=n(93149),Se=n(58525),Ce=n(90701);const _e=()=>{const e=(0,a.wA)(),t=(0,Se.p)(),n=(0,a.d4)(be.C1);(0,s.useEffect)(()=>{const t=null===n||void 0===n?void 0:n.code_editor;t&&e((0,be.ww)(t))},[n,e]),(0,s.useEffect)(()=>{const n=t.get(ve.A9.em_token),o=t.get(ve.A9.promocode);n&&o&&(e(ye.So.endpoints.checkPromo.initiate({code:o,type:"by_link"})),t.remove(ve.A9.promocode))},[e,t]);const o=(0,a.d4)(p.s0),i=o.project?(0,ke.Mu)(o):void 0;return(0,Ce.O5)(),ve.EW.isPlugin&&void 0===i?s.createElement(s.Fragment,null):s.createElement(s.Fragment,null,s.createElement(we.A,null),s.createElement(u.BV,null,s.createElement(u.qh,{path:"/",element:s.createElement(me.A,null,s.createElement(de.A,null))},s.createElement(u.qh,{index:!0,element:s.createElement(pe.A,{to:i||"error"})}),s.createElement(u.qh,{path:"emails"},s.createElement(u.qh,{index:!0,element:s.createElement(fe.A,null)}),s.createElement(u.qh,{path:"new",element:s.createElement(fe.A,null)})),s.createElement(u.qh,{path:"projects"},s.createElement(u.qh,{path:":projectId",element:s.createElement(ge.A,null)},s.createElement(u.qh,{path:"emails"},s.createElement(u.qh,{path:":emailId",element:s.createElement(ue.A,null)},s.createElement(u.qh,{path:":preview",element:s.createElement(ue.A,null)})),s.createElement(u.qh,{path:"new",element:s.createElement(ue.A,null)}),s.createElement(u.qh,{path:"new_from"},s.createElement(u.qh,{path:":emailId",element:s.createElement(he.A,null)}))))),s.createElement(u.qh,{path:"*",element:s.createElement(ce.A,null)}))))};class Ee{constructor({shadowRoot:e,markerAttr:t="data-emailmaker"}){this.shadowRoot=void 0,this.markerAttr=void 0,this.observer=void 0,this.addedKeys=new Set,this.handleMutations=e=>{for(const t of e)for(const e of t.addedNodes)1===e.nodeType&&(e instanceof HTMLStyleElement||e instanceof HTMLLinkElement)&&e.hasAttribute(this.markerAttr)&&this.cloneAndInjectNode(e)},this.shadowRoot=e,this.markerAttr=t,this.observer=new MutationObserver(this.handleMutations),this.observer.observe(document.head,{childList:!0,subtree:!1}),this.syncExistingStyles()}syncExistingStyles(){const e=document.querySelectorAll(`style[${this.markerAttr}], link[${this.markerAttr}]`);for(let t=e.length-1;t>=0;t--)this.cloneAndInjectNode(e[t])}getNodeKey(e){return"STYLE"===e.tagName?(e.textContent||"").trim():"LINK"===e.tagName?e.href:null}cloneAndInjectNode(e){const t=this.getNodeKey(e);if(!t||this.addedKeys.has(t))return;const n=e.cloneNode(!0);this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild),this.addedKeys.add(t)}dispose(){this.observer.disconnect(),this.addedKeys.clear()}}Symbol("ElementCloneSymb");const Ae=re(e=>{let t=null;const n=(0,le.My)(e),o=(0,x.dB)(n,x.AZ.ON_CHUNKS_LOADED),l=b.di.getInstance(e,v.Lz);let p,w=!1;const S=()=>{w||(w=!0,o.fire())};return{instance:{getElement:()=>t},async setOptions(n){let w=await(0,k.x)(n.element,l);const{instance:C}=b.di.getInstance(e,v.Cd)||{};if(t!==w){if(l.addDisposable(o.event(()=>{n.handleChunkLoaded&&n.handleChunkLoaded()})),t&&k.s.delete(t),w&&k.s.has(w),p&&p.dispose(),p=l.addDisposable(new g.jG),w){const e=(0,f.Sb)(w);e&&p.addDisposable(new Ee({shadowRoot:e}))}else{const e=document.createElement("div");e.style.position="absolute",e.style.left="-10000px",document.body.appendChild(e);const t=()=>{e.isConnected&&document.body.removeChild(e)};p.addDispose(t),w=e}return t=w,(t=>new Promise((n,o)=>{var l;if(null!==(l=p)&&void 0!==l&&l.isDisposed())n();else{const o=(0,d.H)(t),l=s.createElement(a.Kq,{store:e},s.createElement(c,{onLoad:n},s.createElement(m.or.Provider,{value:{element:t}},s.createElement(u.fS,null,s.createElement(r.N7,{container:(0,f.K8)(t)?document.head:t},s.createElement(h.Y,null,s.createElement(y,{handleBeforeRender:S},s.createElement(i.A,null,s.createElement(_e,null)))))))));o.render(ve.EW.isPlugin?l:s.createElement(s.StrictMode,null,l)),p.addDispose(n),p.addDispose(()=>o.unmount()),p.addDispose(()=>{k.s.delete(t)})}}))(w)}},dispose(){var e;null===(e=p)||void 0===e||e.dispose()}}});function xe(e){return{emails:U(e),blocks:R(e),emailRevisions:z(e),blocksRevision:N(e),comments:Q(e)}}var Ie=n(88147),Le=n(22376),Te=n(96680);function De(e,t){var n;return{severity:Number(t.severity),message:t.message,source:t.source,startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn,get startOffset(){return e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn})},get endOffset(){return e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn})},tags:null===(n=t.tags)||void 0===n?void 0:n.map(e=>Number(e))}}var Oe=n(17855);function Me({code:e,...t},n){var o,i;const r=n.getState();return{...t,...e?{html:e}:{},renderGuid:(0,H.l)(),project:null===(o=r.projectSlice)||void 0===o||null===(i=o.project)||void 0===i?void 0:i.id}}function Re({html:e,renderGuid:t,...n},o){const i=o.getState(),{project:r}=i.configSlice;return(0,Oe.TB)({...n,code:e,project:void 0===r?n.project:r,guid:void 0,link:void 0,status:void 0,slug:void 0,password:void 0,comment_status:void 0,template:void 0,blocktags:void 0,project_title:void 0,ping_status:void 0,lock:void 0,tag:void 0,is_template:void 0})}var Ne=n(24149);function Pe(e,t,n){const o=t.getState();var i,r;void 0===n&&(n=void 0===e.post?null===(i=o.emailSlice)||void 0===i||null===(r=i.email)||void 0===r?void 0:r.id:e.post);return{...e,content:e.content?`<p>${e.content}</p>`:"",post:n}}function We(e,t){return(0,Oe.TB)({...e,link:void 0,comment_status:void 0})}function Ve({code:e,...t},n,o){const i=n.getState();var r,s;void 0===o&&(o=void 0===t.parent?null===(r=i.emailSlice)||void 0===r||null===(s=r.email)||void 0===s?void 0:s.id:t.parent);return{...t,...e?{html:e}:{},parent:o}}function He({html:e,...t},n){return(0,Oe.TB)({...t,code:e,guid:void 0,compiled:(0,Oe.TB)({html:e,ampHtml:e&&""})})}var Fe=n(47325),Ue=n(39711),ze=n(12384),je=n(28464),Be=n(39689),$e=n(78081),qe=n(92221);const Ke=e=>function(e){var t;return function(e){return"___SCRIPT"===e.tagName}(e)&&(null===(t=e.src)||void 0===t?void 0:t.startsWith(je.gP))}(e)||(0,ze.Nh)(e)||(0,f.BF)(e);async function Ye(e,t={amp:!0,text:!1}){const n=!0===t||"object"===typeof t&&t.amp,o=!0===t||"object"===typeof t&&t.text;let i;"string"===typeof e&&(e={code:e});const r={html:"",ampHtml:"",text:""};try{r.html=e.code?await(0,qe.PJ)(e.code||"",[qe.qy],e.utm_parameters,async e=>{i=(e=>{if(Ke(e))return!0;if((0,f.vq)(e)||(0,f.wz)(e))for(const t of e.querySelectorAll("*"))if(Ke(t))return!0;return!1})(e.document),i&&await(0,$e.e)(e,"html")}):""}catch(s){}try{r.ampHtml=n&&e.code&&i?await(0,qe.PJ)(e.code||"",[qe.qy],e.utm_parameters,async e=>{await(0,$e.e)(e,"amp")}):""}catch(s){}try{r.text=o&&e.code?await(0,qe.PJ)(e.code||"",[qe.qy],e.utm_parameters,async e=>{e.handleReadHtml(e=>{e.html=(0,Ue.G9)(e.contentDocument,Be.l)})}):""}catch(s){}return{...e,compiled:r}}var Ge=n(9417),Ze=n(49330),Qe=n(6472),Je=n(23734);const Xe="EXTERNAL";class et extends g.jG{constructor(e){super(),this._store=e,this._emailTemplateCache=Object.create(null),this._prevCommand=void 0,this._prevContent=void 0,this._dataSources=void 0,this._eventLock=void 0,this._queue=(0,Fe.y)(),this._model=void 0,this._currentEmail=void 0,this.show=this._queue.decorate(this._show,this),this.save=this._queue.decorate(this._save,this);const t=(0,Ge.My)(e);this._dataSources=xe(t),this._eventLock=function(e){const t=Object.values(xe(e));return{suspendChange(){t.forEach(e=>e.suspendChange())},resumeChange(){t.forEach(e=>e.resumeChange())}}}(t);const n=(0,I.Zc)(e,x.AZ.ON_MODEL_CHANGE),o=(0,I.Zc)(e,x.AZ.ON_EMAIL_CHANGED_ID);this.addDisposable(n(e=>{this._model=e})),this.addDisposable(o(e=>{this._currentEmail=e})),this.addDisposable(b.di.addService(e,Je.jY,{execute:e=>{var t;null!==(t=this._currentEmail)&&void 0!==t&&t.id&&!this._currentEmail.isNew&&e.headers.append("email_id",this._currentEmail.id)}}))}async getProject(){const e=await b.di.getInstanceAsync(this._store,v.sZ);return null===e||void 0===e?void 0:e.project}async getTemplateEmail(e){e=String(e);let t=this._emailTemplateCache[e];if(!t){const n=await this._store.dispatch(V.GY.endpoints.getTemplateEmail.initiate(e));n.error||(t={...n.data,lock:!1,parent_email:e},delete t.id)}return t}async getBlocks(){const{cache:e}=this._dataSources.blocks,t=await this.getProject();return(await e.values()).filter(e=>e.project===t).map(e=>Re(e,this._store))}async getComments(){const{cache:e}=this._dataSources.comments,t=await this.getEmail();return(await e.values()).filter(e=>e.post===t.id).map(e=>We(e,this._store))}async getEmailRevisions(){const{cache:e}=this._dataSources.emailRevisions,t=await this.getEmail();return(await e.values()).filter(e=>e.parent===t.id).map(e=>He(e,this._store))}async setBlocks(e=[]){const{cache:t}=this._dataSources.blocks;await t.setAll(e.filter(e=>void 0!==e.id).map(e=>[e.id,Me(e,this._store)]))}async setEmailRevisions(e=[],t){const{cache:n}=this._dataSources.emailRevisions,o=e.filter(e=>void 0!==e.id).map(e=>[e.id,Ve(e,this._store,t)]);await n.setAll(o)}async setComments(e=[],t){const{cache:n}=this._dataSources.comments,o=e.filter(e=>void 0!==e.id).map(e=>[e.id,Pe(e,this._store,t)]);await n.setAll(o)}async getEmail(e=!0){const t=this._store.getState(),n=t.emailSlice.email.id?t.emailSlice.email:t.newEmailSlice.email;return Ye((0,Ne.E)({...n,html:this._model?this._model.getValue():n.html},this._store),e)}async compileEmail(e=!0){const t=this._store.getState(),n=t.emailSlice.email.id?t.emailSlice.email:t.newEmailSlice.email;return Ye((0,Ne.E)({...n,html:this._model?this._model.getValue():n.html},this._store),e)}setEmailMeta(e){const t=this._store.getState();if(Boolean(t.emailSlice.email.id)){const n=t.emailSlice.email.id;void 0!==n&&this._dataSources.emails.cache.addOrUpdate(n,t=>t?(0,M.Su)(t,e):t),this._store.dispatch((0,Le.QV)(e))}else this._store.dispatch((0,Te.Qx)(e))}setBlockMeta(e,t){this._dataSources.blocks.cache.addOrUpdate(e,e=>e?(0,M.Su)(e,t):e)}async setEmail(e,t,n=!1){const o=this._dataSources.emails,i=o.cache,r=await this.getProject();e="string"===typeof e?{code:e}:{...e};let s=(0,Ne.I)(e,this._store);const a=s.id;let l=a;if(void 0!==a?s={...await o.get(a),...s,project:r}:(s={...s,project:r},l=(0,H.l)(),delete s.project),t){const e=await this.getTemplateEmail(String(t));e&&(s={...e,id:String(t),...s})}await i.setAll([[l,s]]),n&&this._runShowCommand({isNew:void 0===a,id:l,project:r})}_runShowCommand(e){const t={...e,type:"email"};this._prevCommand&&!(0,Ze.b)(this._prevCommand,e)?(0,Qe.RS)(this._store,Ie._1,t):this._store.dispatch((0,p.Ir)(t)),this._prevCommand=e}async _show(e){try{if(!e)return;if(this._eventLock.suspendChange(),e!==this._prevContent){this._prevContent=e;const{email:n,blocks:o,autosaves:i,comments:r,templateId:s}="string"===typeof(t=e)?{email:{code:t}}:function(e){return!e.hasOwnProperty("email")&&!e.hasOwnProperty("block")&&!e.hasOwnProperty("templateId")}(t)?{email:t}:{...t,email:"string"===typeof t.email?{code:t.email}:t.email||{}},a=[];a.push(this.setBlocks(o)),void 0!==n.id&&(a.push(this.setComments(r)),a.push(this.setEmailRevisions(i))),a.push(this.setEmail(n,Number(s),!0)),await Promise.all(a)}}catch(n){}finally{this._eventLock.resumeChange()}var t;return new Promise(e=>{const t=(0,I.Zc)(this._store,x.AZ.ON_EMAIL_INIT_ID)(()=>{t.dispose(),e()})})}_save(){return new Promise(async e=>{const t=this._dataSources.emails,n=this.addDisposable(t.onSave(({value:t,source:o})=>{o===Xe&&(n.dispose(),e((0,Ne.E)(t,this._store)))},Number.MIN_VALUE));(0,Qe.RS)(this._store,Ie.Kp,Xe)})}getCodeErrors(){var e;const t=this._store.getState(),n=this._model;return n?null===(e=t.emailSlice.problemsList)||void 0===e?void 0:e.map(e=>De(n,e)):void 0}}var tt=n(35043),nt=n(97993),ot=n(53353),it=n(90388);const rt=new WeakSet;var st=n(11342);class at extends g.jG{constructor(e){super(),this._store=e,this._events=void 0,this._model=void 0,this._listenersUpdaters=void 0;const t=function(e){const t=(0,Ge.My)(e);if(rt.has(t))return;rt.add(t);const n=new g.jG,o=(0,it.h)(t),i=(0,I.dB)(e,x.AZ.ON_GLOBAL_BLOCK_PROPAGATE_UPDATE_ID);return n.addDisposable(o.addListener(e=>{const t=e.data;if(!t||t.operation!==ve.Ru.APPLICATION_EBLOCK_PROPAGATE_UPDATE)return;const n=t.settings,o=null===n||void 0===n?void 0:n.emBlockId,r=null===n||void 0===n?void 0:n.blockHtml;null!=o&&""!==o&&"string"===typeof r&&r.trim()&&i.fire({emBlockId:String(o),blockHtml:r})})),n}(e);t&&this.addDisposable(t);const n=(0,I.Zc)(e,x.AZ.ON_MODEL_CHANGE);this.addDisposable(n(e=>{this._model=e}))}_get(){const e=this._store,t=(0,Ge.My)(e),{blocks:n,emails:o,comments:i,emailRevisions:r}=xe(t),s=(0,I.Zc)(e,x.AZ.ON_SHARE_ID),a=(0,I.Zc)(e,x.AZ.ON_SHOW_PREVIEW_ID),l=(0,I.Zc)(e,x.AZ.ON_EMAIL_CLONE_ID),c=(0,I.Zc)(e,x.AZ.ON_CODE_VALIDATE_ID),d=(0,I.Zc)(e,x.AZ.ON_SUBJECT_CHANGED_ID),u=(0,I.Zc)(e,x.AZ.ON_EMAIL_CHANGED_ID),h=(0,I.Zc)(e,x.AZ.ON_PREHEADER_CHANGED_ID),g=(0,I.Zc)(e,x.AZ.ON_SAVEBUTTON_CLICK_ID),m=(0,I.Zc)(e,x.AZ.ON_NEXTBUTTON_CLICK_ID),f=(0,I.Zc)(e,x.AZ.ON_SEND_LIVEPREVIEW_ID),w=(0,I.Zc)(e,x.AZ.ON_SEND_TESTEMAIL_ID),y=(0,I.Zc)(e,W),b=(0,I.Zc)(e,x.AZ.ON_CONTENT_CHANGED_ID),v=(0,I.Zc)(e,P),k=(0,I.Zc)(e,x.AZ.ON_GLOBAL_BLOCK_PROPAGATE_UPDATE_ID),S=(0,I.Zc)(e,x.AZ.ON_PREVIOUSBUTTON_CLICK_ID),C=(0,I.Zc)(e,x.AZ.ON_SEND_EMAIL_MODAL_ID),_=(0,nt.pb)((0,I.Zc)(e,x.AZ.ON_EMAIL_INIT_ID),e=>!e.reset);return{handlePreheaderChanged:(0,ot.m)(h),handleSubjectChanged:(0,ot.m)(d),handleValidate:(0,ot.m)(c,e=>this._model?e.map(e=>De(this._model,e)):[]),handleReadEmail:(0,ot.m)(o.handlerRead,e=>e,t=>t&&(0,Ne.I)(t,e)),handleSaveEmail:(0,ot.m)(o.onSave,function({prev:t,patch:n,value:o,source:i}){const r=t?(0,Ne.E)(t,e):void 0;return{prev:r,patch:(0,st.g)(r,(0,Ne.E)(n,e)),value:(0,Ne.E)(o,e),source:i}},t=>t?(0,Ne.I)(t,e):void 0),handleRemoveEmail:(0,ot.m)(o.onRemove,({value:t,source:n})=>({value:(0,Ne.E)(t,e),source:n}),()=>{}),handleReadCommonBlocks:(0,ot.m)(y,e=>e.project,t=>null===t||void 0===t?void 0:t.map(t=>Me(t,e))),handleReadTemplateBlocks:(0,ot.m)(v,e=>e,t=>null===t||void 0===t?void 0:t.map(t=>Me(t,e))),handleReadBlocks:(0,ot.m)(n.byForeignKey("project").handleRead,t=>(0,p.jY)(e.getState())||String(t),t=>null===t||void 0===t?void 0:t.map(t=>Me(t,e))),handleSaveBlock:(0,ot.m)(n.onSave,function({prev:t,patch:n,value:o,source:i}){const r=!0===o.global_block&&o.id&&"string"===typeof o.html?{...o,html:(0,tt.g)(o.html,String(o.id))}:o,s=t?Re(t,e):void 0;return{prev:s,patch:(0,st.g)(s,Re(n,e)),value:Re(r,e),source:i}},t=>t?Me(t,e):void 0),handleRemoveBlock:(0,ot.m)(n.onRemove,({value:t,source:n})=>({value:Re(t,e),source:n}),()=>{}),handlePropagateGlobalBlock:(0,ot.m)(k),handleReadComments:(0,ot.m)(i.byForeignKey("post").handleRead,e=>e,t=>null===t||void 0===t?void 0:t.map(t=>Pe(t,e))),handleSaveComment:(0,ot.m)(i.onSave,function({prev:e,patch:t,value:n,source:o}){const i=e?We(e):void 0;return{prev:i,patch:(0,st.g)(i,We(t)),value:We(n),source:o}},t=>t?Pe(t,e):void 0),handleRemoveComment:(0,ot.m)(i.onRemove,({value:e,source:t})=>({value:We(e),source:t}),()=>{}),handleReadEmailRevisions:(0,ot.m)(r.byForeignKey("parent").handleRead,e=>e,t=>null===t||void 0===t?void 0:t.map(t=>Ve(t,e))),handleEmailAutosave:(0,ot.m)(r.onSave,function({prev:e,patch:t,value:n,source:o}){return{value:He(n),source:o}},t=>t?Ve(t,e):void 0),handleRemoveEmailAutoSave:(0,ot.m)(r.onRemove,({value:e,source:t})=>({value:He(e),source:t}),()=>{}),handleEmailChanged:(0,ot.m)((0,nt.sg)(u,100),t=>(0,Ne.E)(t,e)),handleEmailInit:(0,ot.m)(_,t=>(0,Ne.E)(t,e)),handlePreviousButtonClick:(0,ot.m)(S,t=>(0,Ne.E)(t,e)),handleNextButtonClick:(0,ot.m)(m,t=>(0,Ne.E)(t,e)),handleSaveButtonClick:(0,ot.m)(g,t=>(0,Ne.E)(t,e)),handleHtmlChanged:(0,ot.m)((0,nt.sg)(b,100)),handleTestEmailSend:(0,ot.m)(w,({html:e,...t})=>({...t,code:e,compiled:{html:e,ampHtml:""}})),handleTestEmailModal:(0,ot.m)(C,t=>(0,Ne.E)(t,e)),handleCloneEmail:(0,ot.m)(l,t=>(0,Ne.E)(t,e)),handleShareEmail:(0,ot.m)(s),handlePreviewEmail:(0,ot.m)(a),handleLivePreviewEmail:(0,ot.m)(f)}}get(){return this._events||(this._events=this._get())}setOptions(e={}){const t=this.get();let n=this._listenersUpdaters;if(!n){n=this._listenersUpdaters={};for(const e of Object.keys(t))n[e]=this.addDisposable(new ot.U(t[e]))}for(const o of Object.keys(t))n[o].setListener(e[o])}}const lt=se(e=>{const t=new et(e),n=new at(e);return{async setOptions(e){n.setOptions(e),await t.show(e.content)},instance:{...n.get(),show:e=>t.show(e),save:()=>t.save(),getEmail:()=>t.getEmail(),setEmailMeta(e){t.setEmailMeta(e)},setBlockMeta(e,n){t.setBlockMeta(e,n)},getBlocks:()=>t.getBlocks(),getEmailRevisions:()=>t.getEmailRevisions(),getComments:()=>t.getComments(),compileEmail:async(e,n=!0)=>e?Ye(e,n):await t.compileEmail(n),getCodeErrors:()=>t.getCodeErrors()}}});var ct=n(54913);const dt=(0,o.l)(e=>{let t;const n=(0,O.PL)(e),o=(0,x.Zc)(e,x.AZ.ON_MODEL_CHANGE);return n.addDisposable(o(e=>{t=(0,ct.VA)(e)})),{instance:{undoRedoService:{undo:()=>t.undo(),redo:()=>t.redo(),clear:()=>t.clear(),getPast:()=>t.getPast(),getFuture:()=>t.getFuture(),canUndo:()=>t.canUndo(),canRedo:()=>t.canRedo(),createSnapshot:()=>t.createSnapshot(),restoreSnapshot:e=>t.restoreSnapshot(e)}}}});var ut=n(71686),ht=n(54501);function gt(e){var t;return{fontSize:e.fontSize,fontFamily:e.fontFamily,tabSize:e.tabSize,wordWrap:"off"!==e.wordWrap,minimap:null===(t=e.minimap)||void 0===t?void 0:t.enabled,insertSpaces:e.insertSpaces}}function mt(e){return e.getState()[p.Ay.name]}const pt=re(e=>{const t=(0,O.PL)(e),n=(0,ot.m)((0,I.Zc)(e,x.AZ.ON_LIMIT_ID)),o=t.addDisposable(new ot.U(n)),i=(0,ot.m)((0,I.Zc)(e,x.AZ.READ_LOCALE)),r=t.addDisposable(new ot.U(i)),s=(0,ot.m)((0,I.Zc)(e,x.AZ.ON_TRANSLATE_ID)),a=t.addDisposable(new ot.U(s)),c=e.dispatch,d=b.di.getInstanceAsync(e,v.sZ).then(e=>(null===e||void 0===e?void 0:e.app_config)||{},e=>({})),u=(0,Fe.y)(),h=(0,Fe.y)();let m;const f=e=>"number"===typeof e?String(e):"string"===typeof e?e:void 0,w=async t=>{c((0,p.rh)(t));const{locale:n,theme:o,codeModeDirection:i,editor:r}=mt(e).config;void 0!==i&&("none"===i?c((0,ht.N6)(!1)):(c((0,ht.N6)(!0)),c((0,ht.Uf)(i))));const s=await(0,O.wz)(e);var a;await c(l.Q2.endpoints.editMe.initiate({...s,code_editor:r?(a=r,{font_size:a.fontSize,font_family:a.fontFamily,tab_size:a.tabSize,word_wrap:a.wordWrap,minimap:a.minimap,insert_spaces:a.insertSpaces}):s.code_editor,locale:("string"===typeof n?n:s.locale)||"ru_RU",theme:"string"===typeof o?o:s.theme}))};let y;const k=u.decorate(async({config:n={},project:o,user:i,advancedConfigs:r},s)=>{await w({advancedConfigs:r,user:n,serverSide:await d}),(e=>{void 0!==e&&c((0,p.bn)(String(e)))})(o),s&&"commonStyles"in s&&c((0,p.a$)(void 0===s.commonStyles?void 0:s.commonStyles));const{didReset:a}=await(async(n,o)=>{if(!n){const t=await(0,O.wz)(e);return m=f(null===t||void 0===t?void 0:t.id),{didReset:!1}}const i=await(0,O.wz)(e),r=void 0!==n.id?f(n.id):f(null===i||void 0===i?void 0:i.id),s=void 0!==m?String(m):void 0,a=void 0!==r?String(r):void 0,d=void 0!==s&&void 0!==a&&s!==a,u={...i,email:"",password:"",...n,id:r};if(void 0!==n.id||null!==i&&void 0!==i&&i.id||delete u.id,await c(l.Q2.endpoints.editMe.initiate(u)),d&&o){var h;const t=b.di.getInstance(e,v.Cd);if(null!==t&&void 0!==t&&null!==(h=t.instance)&&void 0!==h&&h.reset)return await t.instance.reset(o),{didReset:!0}}return m=a,u.id&&t.addDisposable(b.di.addService(e,Je.jY,{execute(e){e.headers.append("user_id",u.id)}})),{didReset:!1}})(i,s);a||(n=>{n&&t.addDisposable(b.di.addService(e,Je.jY,{execute(e){e.headers.append("project_id",String(n))}}))})(o)});return{setOptions:h.decorate(async t=>{const{config:n={},project:i,user:s,advancedConfigs:l,handleReadLocale:c,handleLimitUsage:d,handleTranslate:u,storageProvider:h}=t;b.di.inject(e,ut.M4,h),r.setListener(c),o.setListener(d),a.setListener(u),await k({config:n,project:i,user:s,advancedConfigs:l},t).catch(e=>{}),y&&y.dispose(),y=new g.jG}),instance:{setConfig:h.decorate(async t=>{const n=t,{commonStyles:o,...i}=n;"commonStyles"in n&&c((0,p.a$)(void 0===o?void 0:o)),await w({advancedConfigs:mt(e).advancedConfigs,serverSide:await d,user:i})}),getConfig:()=>function(e){var t,n;const o=e.getState(),i=o[be.Ay.name],r=o[p.Ay.name],s=o[ht.Ay.name];return{...r.config,theme:null===(t=i.currentUser)||void 0===t?void 0:t.theme,locale:null===(n=i.currentUser)||void 0===n?void 0:n.locale,codeModeDirection:s.isCodeMode?s.codeModeDirection:"none",editor:gt(i.monacoOptions)}}(e),updateConfig:h.decorate(async t=>{const n=t,{commonStyles:o,...i}=n;"commonStyles"in n&&c((0,p.a$)(void 0===o?void 0:o)),await w({advancedConfigs:mt(e).advancedConfigs,serverSide:await d,user:{...mt(e).user,...i}})}),handleReadLocale:i,handleLimitUsage:n,handleTranslate:s}}});function ft(e){return"string"===typeof e?e:e?s.createElement("div",{ref:t=>null===t||void 0===t?void 0:t.replaceWith(e)}):void 0}function wt(e,t="success"){return"string"===typeof e&&(e={message:e}),(0,Oe.TB)({type:e.type||t,data:e.data,innerException:e.innerException,message:ft(e.message),description:ft(e.description),btn:ft(e.btn),onClose:e.onClose,duration:e.duration,icon:ft(e.icon),placement:e.placement,style:e.style,closeIcon:"boolean"===typeof e.closeIcon||"undefined"===typeof e.closeIcon?e.closeIcon:ft(e.closeIcon),props:e.props,role:e.role})}const yt=(0,o.l)(e=>{const t=e.getInstance(v.Lz),n=(0,x.Zc)(e,x.AZ.ON_NOTIFICATION),o=(0,nt.pb)(n,e=>"error"===e.type),i=(0,nt.pb)(n,e=>"success"===e.type),r=(0,ot.m)(n,e=>e,e=>"string"===typeof e||"object"===typeof e?wt(e):e),s=(0,ot.m)(o,e=>e,e=>"string"===typeof e||"object"===typeof e?wt(e,"error"):e),a=(0,ot.m)(i,e=>e,e=>"string"===typeof e||"object"===typeof e?wt(e):e),l=t.addDisposable(new ot.U(r)),c=t.addDisposable(new ot.U(s)),d=t.addDisposable(new ot.U(a));return{setOptions({handleNotify:e,handleSuccess:t,handleError:n}){l.setListener(e),c.setListener(n),d.setListener(t)},instance:{notify(t){(0,Qe.RS)(e,Ie.Sb,{placement:"bottomRight",...wt(t)})},handleNotify:r,handleError:s,handleSuccess:a}}}),bt=(0,o.l)(e=>{const t=e.getInstance(v.Lz),n=(0,x.Zc)(e,x.AZ.UPLOAD_EVENT_ID),o=(0,x.Zc)(e,x.AZ.FILE_PROXY_EVENT_ID),i=(0,x.dB)(e,x.AZ.PROXY_URL_EVENT_ID).event,r=(0,ot.m)(n),s=(0,ot.m)(i),a=(0,ot.m)(o),l=t.addDisposable(new ot.U(r)),c=t.addDisposable(new ot.U(a)),d=t.addDisposable(new ot.U(s));return{setOptions(e){l.setListener(e.handleLoadImage),c.setListener(e.handleFileProxy),d.setListener(e.handleUrlProxy)},instance:{handleLoadImage:r,handleFileProxy:a,handleUrlProxy:s}}}),vt=(0,o.E)([ae,yt,pt,bt,Ae,dt,lt])},27937:(e,t,n)=>{n.d(t,{rm:()=>r});var o=n(14120),i=n(69301);function r(){const e=(0,i.EU)();return(0,o.h)(e).getIsolationScope()}},95074:(e,t,n)=>{n.d(t,{gV:()=>i});var o=n(27937);function i(e){(0,o.rm)().setUser(e)}},39745:(e,t,n)=>{n.d(t,{qO:()=>r});var o=n(84399),i=n(41706);function r(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,o.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"===typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"===typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}},91317:(e,t,n)=>{n.d(t,{Yz:()=>d});var o=n(69301),i=n(87679),r=n(91696);const s={};function a(){return c().enabled}function l(e,...t){i.T&&a()&&function(e){if(!("console"in r.O))return e();const t=r.O.console,n={},o=Object.keys(s);o.forEach(e=>{const o=s[e];n[e]=t[e],t[e]=o});try{return e()}finally{o.forEach(e=>{t[e]=n[e]})}}(()=>{r.O.console[e](`Sentry Logger [${e}]:`,...t)})}function c(){return i.T?(0,o.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const d={enable:function(){c().enabled=!0},disable:function(){c().enabled=!1},isEnabled:a,log:function(...e){l("log",...e)},warn:function(...e){l("warn",...e)},error:function(...e){l("error",...e)}}},4743:(e,t,n)=>{n.d(t,{Qd:()=>r,Qg:()=>s});const o=Object.prototype.toString;function i(e,t){return o.call(e)===`[object ${t}]`}function r(e){return i(e,"Object")}function s(e){return Boolean(e?.then&&"function"===typeof e.then)}},84399:(e,t,n)=>{n.d(t,{eJ:()=>s});var o=n(34222),i=n(91696);let r;function s(e=function(){const e=i.O;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,o.Qw)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return r||(r=[1e7]+1e3+4e3+8e3+1e11),r.replace(/[018]/g,e=>(e^(16*(0,o.hY)()&15)>>e/4).toString(16))}},28044:(e,t,n)=>{n.d(t,{my:()=>r});var o=n(87679),i=n(91317);function r(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{o.T&&i.Yz.log(`Failed to add non-enumerable property "${t}" to object`,e)}}},75922:(e,t,n)=>{n.d(t,{e:()=>i});var o=n(84399);function i(){return(0,o.eJ)()}},37034:(e,t,n)=>{function o(e,t=0){return"string"!==typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}n.d(t,{xv:()=>o})},41706:(e,t,n)=>{n.d(t,{lu:()=>s,zf:()=>l});var o=n(34222),i=n(91696);const r=1e3;function s(){return(0,o.Wk)()/r}let a;function l(){return(a??(a=function(){const{performance:e}=i.O;if(!e?.now||!e.timeOrigin)return s;const t=e.timeOrigin;return()=>(t+(0,o.Qw)(()=>e.now()))/r}()))()}},66606:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(87259),i=n(4212);const r=new(n(60844).A)(i.A,o.A)._freeze()}}]);
|
|
3
|
-
//# sourceMappingURL=2527.e0380bd2.js.map
|